@trops/dash-core 0.1.728 → 0.1.729

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.esm.js CHANGED
@@ -2792,9 +2792,9 @@ function useWidgetRegistryVersion() {
2792
2792
  return version;
2793
2793
  }
2794
2794
 
2795
- function _createForOfIteratorHelper$12(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$12(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
2796
- function _unsupportedIterableToArray$12(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$12(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$12(r, a) : void 0; } }
2797
- function _arrayLikeToArray$12(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
2795
+ function _createForOfIteratorHelper$13(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$13(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
2796
+ function _unsupportedIterableToArray$13(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$13(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$13(r, a) : void 0; } }
2797
+ function _arrayLikeToArray$13(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
2798
2798
 
2799
2799
  /**
2800
2800
  * Walk a workspace layout and collect widget component keys that are
@@ -2808,7 +2808,7 @@ function collectComponentsFromLayout(layout) {
2808
2808
 
2809
2809
  // Collect IDs of layout items that are actively referenced by grid cells
2810
2810
  var activeItemIds = new Set();
2811
- var _iterator = _createForOfIteratorHelper$12(layout),
2811
+ var _iterator = _createForOfIteratorHelper$13(layout),
2812
2812
  _step;
2813
2813
  try {
2814
2814
  for (_iterator.s(); !(_step = _iterator.n()).done;) {
@@ -2828,7 +2828,7 @@ function collectComponentsFromLayout(layout) {
2828
2828
  } finally {
2829
2829
  _iterator.f();
2830
2830
  }
2831
- var _iterator2 = _createForOfIteratorHelper$12(layout),
2831
+ var _iterator2 = _createForOfIteratorHelper$13(layout),
2832
2832
  _step2;
2833
2833
  try {
2834
2834
  for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
@@ -2967,7 +2967,7 @@ var useInstalledWidgets = function useInstalledWidgets() {
2967
2967
  _t = [];
2968
2968
  case 4:
2969
2969
  allDrafts = _t;
2970
- _iterator4 = _createForOfIteratorHelper$12(allDrafts);
2970
+ _iterator4 = _createForOfIteratorHelper$13(allDrafts);
2971
2971
  try {
2972
2972
  for (_iterator4.s(); !(_step4 = _iterator4.n()).done;) {
2973
2973
  d = _step4.value;
@@ -3136,9 +3136,9 @@ var useInstalledWidgets = function useInstalledWidgets() {
3136
3136
  };
3137
3137
  };
3138
3138
 
3139
- function _createForOfIteratorHelper$11(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$11(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
3140
- function _unsupportedIterableToArray$11(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$11(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$11(r, a) : void 0; } }
3141
- function _arrayLikeToArray$11(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
3139
+ function _createForOfIteratorHelper$12(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$12(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
3140
+ function _unsupportedIterableToArray$12(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$12(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$12(r, a) : void 0; } }
3141
+ function _arrayLikeToArray$12(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
3142
3142
  function ownKeys$1u(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
3143
3143
  function _objectSpread$1u(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$1u(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$1u(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
3144
3144
  /**
@@ -3234,7 +3234,7 @@ function normalizeRow(row, labelToType) {
3234
3234
  function unionDedupe(a, b) {
3235
3235
  var out = new Set(Array.isArray(a) ? a : []);
3236
3236
  if (Array.isArray(b)) {
3237
- var _iterator = _createForOfIteratorHelper$11(b),
3237
+ var _iterator = _createForOfIteratorHelper$12(b),
3238
3238
  _step;
3239
3239
  try {
3240
3240
  for (_iterator.s(); !(_step = _iterator.n()).done;) {
@@ -3250,9 +3250,9 @@ function unionDedupe(a, b) {
3250
3250
  return Array.from(out);
3251
3251
  }
3252
3252
 
3253
- function _createForOfIteratorHelper$10(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$10(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
3254
- function _unsupportedIterableToArray$10(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$10(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$10(r, a) : void 0; } }
3255
- function _arrayLikeToArray$10(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
3253
+ function _createForOfIteratorHelper$11(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$11(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
3254
+ function _unsupportedIterableToArray$11(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$11(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$11(r, a) : void 0; } }
3255
+ function _arrayLikeToArray$11(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
3256
3256
  function ownKeys$1t(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
3257
3257
  function _objectSpread$1t(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$1t(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$1t(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
3258
3258
 
@@ -3784,7 +3784,7 @@ function useWidgetUpdates() {
3784
3784
  // (install replaces the entire package, not just one widget)
3785
3785
  setUpdates(function (prev) {
3786
3786
  var next = new Map(prev);
3787
- var _iterator = _createForOfIteratorHelper$10(next),
3787
+ var _iterator = _createForOfIteratorHelper$11(next),
3788
3788
  _step;
3789
3789
  try {
3790
3790
  for (_iterator.s(); !(_step = _iterator.n()).done;) {
@@ -3842,7 +3842,7 @@ function useWidgetUpdates() {
3842
3842
  var liveUpdates = useMemo(function () {
3843
3843
  if (!updates || updates.size === 0) return updates;
3844
3844
  var installedVersion = new Map();
3845
- var _iterator2 = _createForOfIteratorHelper$10(installedWidgets),
3845
+ var _iterator2 = _createForOfIteratorHelper$11(installedWidgets),
3846
3846
  _step2;
3847
3847
  try {
3848
3848
  for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
@@ -3856,7 +3856,7 @@ function useWidgetUpdates() {
3856
3856
  _iterator2.f();
3857
3857
  }
3858
3858
  var live = new Map();
3859
- var _iterator3 = _createForOfIteratorHelper$10(updates),
3859
+ var _iterator3 = _createForOfIteratorHelper$11(updates),
3860
3860
  _step3;
3861
3861
  try {
3862
3862
  for (_iterator3.s(); !(_step3 = _iterator3.n()).done;) {
@@ -3884,7 +3884,7 @@ function useWidgetUpdates() {
3884
3884
  var packagesWithUpdates = useMemo(function () {
3885
3885
  if (!liveUpdates || liveUpdates.size === 0) return [];
3886
3886
  var byPackage = new Map();
3887
- var _iterator4 = _createForOfIteratorHelper$10(liveUpdates),
3887
+ var _iterator4 = _createForOfIteratorHelper$11(liveUpdates),
3888
3888
  _step4;
3889
3889
  try {
3890
3890
  for (_iterator4.s(); !(_step4 = _iterator4.n()).done;) {
@@ -3912,7 +3912,7 @@ function useWidgetUpdates() {
3912
3912
  } finally {
3913
3913
  _iterator4.f();
3914
3914
  }
3915
- var _iterator5 = _createForOfIteratorHelper$10(installedWidgets),
3915
+ var _iterator5 = _createForOfIteratorHelper$11(installedWidgets),
3916
3916
  _step5;
3917
3917
  try {
3918
3918
  for (_iterator5.s(); !(_step5 = _iterator5.n()).done;) {
@@ -4043,7 +4043,7 @@ function useWidgetUpdates() {
4043
4043
  // packageId) → grant rows (which are keyed by widgetId like
4044
4044
  // `trops.slack.SlackChannels`).
4045
4045
  rowByComponentName = new Map();
4046
- _iterator6 = _createForOfIteratorHelper$10(allRows);
4046
+ _iterator6 = _createForOfIteratorHelper$11(allRows);
4047
4047
  try {
4048
4048
  for (_iterator6.s(); !(_step6 = _iterator6.n()).done;) {
4049
4049
  r = _step6.value;
@@ -4056,7 +4056,7 @@ function useWidgetUpdates() {
4056
4056
  _iterator6.f();
4057
4057
  }
4058
4058
  widgetsWithMissing = [];
4059
- _iterator7 = _createForOfIteratorHelper$10(manifests);
4059
+ _iterator7 = _createForOfIteratorHelper$11(manifests);
4060
4060
  _context5.prev = 8;
4061
4061
  _loop = /*#__PURE__*/_regeneratorRuntime.mark(function _loop() {
4062
4062
  var _manifest$permissions, _manifest$permissions2;
@@ -4081,7 +4081,7 @@ function useWidgetUpdates() {
4081
4081
  pkgWidgets = installedWidgets.filter(function (w) {
4082
4082
  return (w.packageId || w.name) === packageId;
4083
4083
  });
4084
- _iterator8 = _createForOfIteratorHelper$10(pkgWidgets);
4084
+ _iterator8 = _createForOfIteratorHelper$11(pkgWidgets);
4085
4085
  _context4.prev = 2;
4086
4086
  _iterator8.s();
4087
4087
  case 3:
@@ -4197,7 +4197,7 @@ function useWidgetUpdates() {
4197
4197
  // Seed every selected package as pending so the modal renders
4198
4198
  // the full per-row state from the first paint.
4199
4199
  initial = new Map();
4200
- _iterator9 = _createForOfIteratorHelper$10(packageNames);
4200
+ _iterator9 = _createForOfIteratorHelper$11(packageNames);
4201
4201
  try {
4202
4202
  for (_iterator9.s(); !(_step9 = _iterator9.n()).done;) {
4203
4203
  name = _step9.value;
@@ -4257,7 +4257,7 @@ function useWidgetUpdates() {
4257
4257
  // loop so the freshly-installed code can immediately use
4258
4258
  // what was approved (and is gated from what wasn't).
4259
4259
  accepted = decision.acceptedByWidgetId || {};
4260
- _iterator0 = _createForOfIteratorHelper$10(preflight.widgets);
4260
+ _iterator0 = _createForOfIteratorHelper$11(preflight.widgets);
4261
4261
  _context7.prev = 6;
4262
4262
  _iterator0.s();
4263
4263
  case 7:
@@ -4341,7 +4341,7 @@ function useWidgetUpdates() {
4341
4341
  // e.g. a stale registry zip or a verify mismatch).
4342
4342
  failedDetails = [];
4343
4343
  _context7.prev = 19;
4344
- _iterator1 = _createForOfIteratorHelper$10(packageNames);
4344
+ _iterator1 = _createForOfIteratorHelper$11(packageNames);
4345
4345
  _context7.prev = 20;
4346
4346
  _loop2 = /*#__PURE__*/_regeneratorRuntime.mark(function _loop2() {
4347
4347
  var pkgName, msg, _t0;
@@ -4448,7 +4448,7 @@ function useWidgetUpdates() {
4448
4448
  succeededSet = new Set(succeeded);
4449
4449
  setUpdates(function (prev) {
4450
4450
  var next = new Map(prev);
4451
- var _iterator10 = _createForOfIteratorHelper$10(next),
4451
+ var _iterator10 = _createForOfIteratorHelper$11(next),
4452
4452
  _step10;
4453
4453
  try {
4454
4454
  for (_iterator10.s(); !(_step10 = _iterator10.n()).done;) {
@@ -4842,9 +4842,9 @@ function useRegistryAuth() {
4842
4842
 
4843
4843
  function ownKeys$1r(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
4844
4844
  function _objectSpread$1r(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$1r(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$1r(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
4845
- function _createForOfIteratorHelper$$(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$$(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
4846
- function _unsupportedIterableToArray$$(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$$(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$$(r, a) : void 0; } }
4847
- function _arrayLikeToArray$$(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
4845
+ function _createForOfIteratorHelper$10(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$10(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
4846
+ function _unsupportedIterableToArray$10(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$10(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$10(r, a) : void 0; } }
4847
+ function _arrayLikeToArray$10(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
4848
4848
  var secondaryBtnClass$1 = "px-3 py-2 text-sm font-medium rounded bg-gray-700 hover:bg-gray-600 disabled:bg-gray-800 disabled:text-gray-500 disabled:cursor-not-allowed text-gray-100";
4849
4849
  var primaryBtnClass$1 = "px-3 py-2 text-sm font-medium rounded bg-blue-600 hover:bg-blue-500 disabled:bg-gray-700 disabled:text-gray-500 disabled:cursor-not-allowed text-white";
4850
4850
 
@@ -4864,7 +4864,7 @@ function flattenPreflightLines(missing) {
4864
4864
  var _Object$entries$_i = _slicedToArray(_Object$entries[_i], 2),
4865
4865
  serverName = _Object$entries$_i[0],
4866
4866
  perms = _Object$entries$_i[1];
4867
- var _iterator = _createForOfIteratorHelper$$(perms.tools || []),
4867
+ var _iterator = _createForOfIteratorHelper$10(perms.tools || []),
4868
4868
  _step;
4869
4869
  try {
4870
4870
  var _loop2 = function _loop2() {
@@ -4893,7 +4893,7 @@ function flattenPreflightLines(missing) {
4893
4893
  } finally {
4894
4894
  _iterator.f();
4895
4895
  }
4896
- var _iterator2 = _createForOfIteratorHelper$$(perms.readPaths || []),
4896
+ var _iterator2 = _createForOfIteratorHelper$10(perms.readPaths || []),
4897
4897
  _step2;
4898
4898
  try {
4899
4899
  var _loop3 = function _loop3() {
@@ -4920,7 +4920,7 @@ function flattenPreflightLines(missing) {
4920
4920
  } finally {
4921
4921
  _iterator2.f();
4922
4922
  }
4923
- var _iterator3 = _createForOfIteratorHelper$$(perms.writePaths || []),
4923
+ var _iterator3 = _createForOfIteratorHelper$10(perms.writePaths || []),
4924
4924
  _step3;
4925
4925
  try {
4926
4926
  var _loop4 = function _loop4() {
@@ -4972,13 +4972,13 @@ var WidgetPreflightReview = function WidgetPreflightReview(_ref) {
4972
4972
  var _pendingPreflight$wid;
4973
4973
  if (!pendingPreflight || !((_pendingPreflight$wid = pendingPreflight.widgets) !== null && _pendingPreflight$wid !== void 0 && _pendingPreflight$wid.length)) return;
4974
4974
  var initial = {};
4975
- var _iterator4 = _createForOfIteratorHelper$$(pendingPreflight.widgets),
4975
+ var _iterator4 = _createForOfIteratorHelper$10(pendingPreflight.widgets),
4976
4976
  _step4;
4977
4977
  try {
4978
4978
  for (_iterator4.s(); !(_step4 = _iterator4.n()).done;) {
4979
4979
  var w = _step4.value;
4980
4980
  initial[w.widgetId] = {};
4981
- var _iterator5 = _createForOfIteratorHelper$$(flattenPreflightLines(w.missing)),
4981
+ var _iterator5 = _createForOfIteratorHelper$10(flattenPreflightLines(w.missing)),
4982
4982
  _step5;
4983
4983
  try {
4984
4984
  for (_iterator5.s(); !(_step5 = _iterator5.n()).done;) {
@@ -5015,7 +5015,7 @@ var WidgetPreflightReview = function WidgetPreflightReview(_ref) {
5015
5015
  // Build the per-widget addition blob from checked lines. Skip
5016
5016
  // widgets where the user unchecked everything.
5017
5017
  var acceptedByWidgetId = {};
5018
- var _iterator6 = _createForOfIteratorHelper$$(widgets),
5018
+ var _iterator6 = _createForOfIteratorHelper$10(widgets),
5019
5019
  _step6;
5020
5020
  try {
5021
5021
  for (_iterator6.s(); !(_step6 = _iterator6.n()).done;) {
@@ -5023,7 +5023,7 @@ var WidgetPreflightReview = function WidgetPreflightReview(_ref) {
5023
5023
  var _lines = flattenPreflightLines(w.missing);
5024
5024
  var acc = {};
5025
5025
  var any = false;
5026
- var _iterator7 = _createForOfIteratorHelper$$(_lines),
5026
+ var _iterator7 = _createForOfIteratorHelper$10(_lines),
5027
5027
  _step7;
5028
5028
  try {
5029
5029
  for (_iterator7.s(); !(_step7 = _iterator7.n()).done;) {
@@ -6239,7 +6239,7 @@ var Layout = function Layout(_ref) {
6239
6239
  });
6240
6240
  };
6241
6241
 
6242
- var _excluded$6 = ["id", "children", "direction", "className", "scrollable", "width", "height", "space", "grow", "debug", "onClick", "padding", "prefix", "style"];
6242
+ var _excluded$7 = ["id", "children", "direction", "className", "scrollable", "width", "height", "space", "grow", "debug", "onClick", "padding", "prefix", "style"];
6243
6243
  var LayoutContainer = function LayoutContainer(_ref) {
6244
6244
  var id = _ref.id,
6245
6245
  children = _ref.children,
@@ -6267,7 +6267,7 @@ var LayoutContainer = function LayoutContainer(_ref) {
6267
6267
  prefix = _ref$prefix === void 0 ? "layout-container" : _ref$prefix,
6268
6268
  _ref$style = _ref.style,
6269
6269
  style = _ref$style === void 0 ? undefined : _ref$style,
6270
- props = _objectWithoutProperties(_ref, _excluded$6);
6270
+ props = _objectWithoutProperties(_ref, _excluded$7);
6271
6271
  var containerId = "uuid" in props ? props["uuid"] : getUUID(id, prefix);
6272
6272
 
6273
6273
  // get the styles
@@ -6311,9 +6311,9 @@ var LayoutContainer = function LayoutContainer(_ref) {
6311
6311
 
6312
6312
  function ownKeys$1o(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
6313
6313
  function _objectSpread$1o(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$1o(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$1o(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
6314
- function _createForOfIteratorHelper$_(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$_(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
6315
- function _unsupportedIterableToArray$_(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$_(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$_(r, a) : void 0; } }
6316
- function _arrayLikeToArray$_(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
6314
+ function _createForOfIteratorHelper$$(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$$(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
6315
+ function _unsupportedIterableToArray$$(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$$(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$$(r, a) : void 0; } }
6316
+ function _arrayLikeToArray$$(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
6317
6317
  /**
6318
6318
  * Layout template definitions for the dashboard template picker.
6319
6319
  *
@@ -6587,7 +6587,7 @@ function createLayoutFromTemplate(template) {
6587
6587
  cols: template.cols,
6588
6588
  gap: "gap-2"
6589
6589
  };
6590
- var _iterator = _createForOfIteratorHelper$_(template.cells),
6590
+ var _iterator = _createForOfIteratorHelper$$(template.cells),
6591
6591
  _step;
6592
6592
  try {
6593
6593
  for (_iterator.s(); !(_step = _iterator.n()).done;) {
@@ -7609,9 +7609,9 @@ var DashboardInstallOptionsModal = function DashboardInstallOptionsModal(_ref) {
7609
7609
  });
7610
7610
  };
7611
7611
 
7612
- function _createForOfIteratorHelper$Z(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$Z(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
7613
- function _unsupportedIterableToArray$Z(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$Z(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$Z(r, a) : void 0; } }
7614
- function _arrayLikeToArray$Z(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
7612
+ function _createForOfIteratorHelper$_(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$_(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
7613
+ function _unsupportedIterableToArray$_(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$_(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$_(r, a) : void 0; } }
7614
+ function _arrayLikeToArray$_(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
7615
7615
  function ownKeys$1n(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
7616
7616
  function _objectSpread$1n(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$1n(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$1n(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
7617
7617
  var RegistryDashboardDetail = function RegistryDashboardDetail(_ref) {
@@ -7980,7 +7980,7 @@ var RegistryDashboardDetail = function RegistryDashboardDetail(_ref) {
7980
7980
  toInstall = 0,
7981
7981
  unavailable = 0,
7982
7982
  hasUnavailableRequired = false;
7983
- var _iterator = _createForOfIteratorHelper$Z(widgetDeps),
7983
+ var _iterator = _createForOfIteratorHelper$_(widgetDeps),
7984
7984
  _step;
7985
7985
  try {
7986
7986
  for (_iterator.s(); !(_step = _iterator.n()).done;) {
@@ -9683,9 +9683,9 @@ function cleanIpcError(message) {
9683
9683
  return match ? match[1] : message;
9684
9684
  }
9685
9685
 
9686
- function _createForOfIteratorHelper$Y(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$Y(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
9687
- function _unsupportedIterableToArray$Y(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$Y(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$Y(r, a) : void 0; } }
9688
- function _arrayLikeToArray$Y(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
9686
+ function _createForOfIteratorHelper$Z(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$Z(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
9687
+ function _unsupportedIterableToArray$Z(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$Z(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$Z(r, a) : void 0; } }
9688
+ function _arrayLikeToArray$Z(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
9689
9689
 
9690
9690
  /**
9691
9691
  * useRegistrySearch — shared hook for browsing and installing registry packages.
@@ -9799,13 +9799,13 @@ var useRegistrySearch = function useRegistrySearch() {
9799
9799
  return c.toLowerCase();
9800
9800
  }));
9801
9801
  widgets = [];
9802
- _iterator = _createForOfIteratorHelper$Y(pkgs);
9802
+ _iterator = _createForOfIteratorHelper$Z(pkgs);
9803
9803
  try {
9804
9804
  for (_iterator.s(); !(_step = _iterator.n()).done;) {
9805
9805
  pkg = _step.value;
9806
9806
  // Compute missing APIs for the entire package
9807
9807
  allApiProviders = [];
9808
- _iterator2 = _createForOfIteratorHelper$Y(pkg.providers || []);
9808
+ _iterator2 = _createForOfIteratorHelper$Z(pkg.providers || []);
9809
9809
  try {
9810
9810
  for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
9811
9811
  p = _step2.value;
@@ -9818,11 +9818,11 @@ var useRegistrySearch = function useRegistrySearch() {
9818
9818
  } finally {
9819
9819
  _iterator2.f();
9820
9820
  }
9821
- _iterator3 = _createForOfIteratorHelper$Y(pkg.widgets || []);
9821
+ _iterator3 = _createForOfIteratorHelper$Z(pkg.widgets || []);
9822
9822
  try {
9823
9823
  for (_iterator3.s(); !(_step3 = _iterator3.n()).done;) {
9824
9824
  w = _step3.value;
9825
- _iterator5 = _createForOfIteratorHelper$Y(w.providers || []);
9825
+ _iterator5 = _createForOfIteratorHelper$Z(w.providers || []);
9826
9826
  try {
9827
9827
  for (_iterator5.s(); !(_step5 = _iterator5.n()).done;) {
9828
9828
  _p = _step5.value;
@@ -9844,7 +9844,7 @@ var useRegistrySearch = function useRegistrySearch() {
9844
9844
  missingApis = _toConsumableArray(new Set(allApiProviders)).filter(function (api) {
9845
9845
  return !capSet.has(api.toLowerCase());
9846
9846
  });
9847
- _iterator4 = _createForOfIteratorHelper$Y(pkg.widgets || []);
9847
+ _iterator4 = _createForOfIteratorHelper$Z(pkg.widgets || []);
9848
9848
  try {
9849
9849
  for (_iterator4.s(); !(_step4 = _iterator4.n()).done;) {
9850
9850
  widget = _step4.value;
@@ -10631,9 +10631,9 @@ function WizardThemePreview(_ref) {
10631
10631
  });
10632
10632
  }
10633
10633
 
10634
- function _createForOfIteratorHelper$X(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$X(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
10635
- function _unsupportedIterableToArray$X(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$X(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$X(r, a) : void 0; } }
10636
- function _arrayLikeToArray$X(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
10634
+ function _createForOfIteratorHelper$Y(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$Y(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
10635
+ function _unsupportedIterableToArray$Y(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$Y(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$Y(r, a) : void 0; } }
10636
+ function _arrayLikeToArray$Y(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
10637
10637
  var WizardCustomizeStep = function WizardCustomizeStep(_ref) {
10638
10638
  var _state$selectedDashbo, _state$selectedDashbo2, _state$layout;
10639
10639
  var state = _ref.state,
@@ -10852,7 +10852,7 @@ var WizardCustomizeStep = function WizardCustomizeStep(_ref) {
10852
10852
  installedNames = new Set(installedList.map(function (w) {
10853
10853
  return w.name;
10854
10854
  }));
10855
- _iterator = _createForOfIteratorHelper$X(state.selectedWidgets);
10855
+ _iterator = _createForOfIteratorHelper$Y(state.selectedWidgets);
10856
10856
  _context2.prev = 12;
10857
10857
  _iterator.s();
10858
10858
  case 13:
@@ -12539,10 +12539,10 @@ function mergeDownOp(grid, row, col) {
12539
12539
  return newGrid;
12540
12540
  }
12541
12541
 
12542
- var _excluded$5 = ["rows", "cols"];
12543
- function _createForOfIteratorHelper$W(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$W(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
12544
- function _unsupportedIterableToArray$W(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$W(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$W(r, a) : void 0; } }
12545
- function _arrayLikeToArray$W(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
12542
+ var _excluded$6 = ["rows", "cols"];
12543
+ function _createForOfIteratorHelper$X(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$X(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
12544
+ function _unsupportedIterableToArray$X(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$X(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$X(r, a) : void 0; } }
12545
+ function _arrayLikeToArray$X(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
12546
12546
  function ownKeys$1k(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
12547
12547
  function _objectSpread$1k(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$1k(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$1k(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
12548
12548
  var defaultGrid = {
@@ -12664,7 +12664,7 @@ function GridEditor(_ref) {
12664
12664
  function sortObjectByKeys(obj) {
12665
12665
  var sortedKeys = Object.keys(obj).sort();
12666
12666
  var sortedObj = {};
12667
- var _iterator = _createForOfIteratorHelper$W(sortedKeys),
12667
+ var _iterator = _createForOfIteratorHelper$X(sortedKeys),
12668
12668
  _step;
12669
12669
  try {
12670
12670
  for (_iterator.s(); !(_step = _iterator.n()).done;) {
@@ -12681,7 +12681,7 @@ function GridEditor(_ref) {
12681
12681
  function resequenceGridKeys(grid) {
12682
12682
  var rows = grid.rows,
12683
12683
  cols = grid.cols,
12684
- cells = _objectWithoutProperties(grid, _excluded$5);
12684
+ cells = _objectWithoutProperties(grid, _excluded$6);
12685
12685
  var newGrid = {
12686
12686
  rows: rows,
12687
12687
  cols: cols
@@ -13137,9 +13137,9 @@ var PanelEditItemNotifications = function PanelEditItemNotifications(_ref) {
13137
13137
  });
13138
13138
  };
13139
13139
 
13140
- function _createForOfIteratorHelper$V(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$V(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
13141
- function _unsupportedIterableToArray$V(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$V(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$V(r, a) : void 0; } }
13142
- function _arrayLikeToArray$V(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
13140
+ function _createForOfIteratorHelper$W(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$W(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
13141
+ function _unsupportedIterableToArray$W(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$W(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$W(r, a) : void 0; } }
13142
+ function _arrayLikeToArray$W(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
13143
13143
  function ownKeys$1i(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
13144
13144
  function _objectSpread$1i(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$1i(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$1i(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
13145
13145
  var DAYS = [{
@@ -13468,7 +13468,7 @@ var PanelEditItemSchedule = function PanelEditItemSchedule(_ref2) {
13468
13468
  setIsLoading(true);
13469
13469
  window.mainApi.scheduler.getTasks(widgetUuid).then(function (tasks) {
13470
13470
  var stateMap = {};
13471
- var _iterator = _createForOfIteratorHelper$V(tasks || []),
13471
+ var _iterator = _createForOfIteratorHelper$W(tasks || []),
13472
13472
  _step;
13473
13473
  try {
13474
13474
  for (_iterator.s(); !(_step = _iterator.n()).done;) {
@@ -13727,9 +13727,9 @@ function isUserWidget(item) {
13727
13727
  return true;
13728
13728
  }
13729
13729
 
13730
- function _createForOfIteratorHelper$U(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$U(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
13731
- function _unsupportedIterableToArray$U(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$U(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$U(r, a) : void 0; } }
13732
- function _arrayLikeToArray$U(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
13730
+ function _createForOfIteratorHelper$V(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$V(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
13731
+ function _unsupportedIterableToArray$V(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$V(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$V(r, a) : void 0; } }
13732
+ function _arrayLikeToArray$V(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
13733
13733
 
13734
13734
  /**
13735
13735
  * Resolve which provider name a given widget instance would bind to for
@@ -13761,7 +13761,7 @@ function resolveProviderName(_ref) {
13761
13761
  // array. Support both because different callers shape it either way.
13762
13762
  if (appProviders) {
13763
13763
  if (Array.isArray(appProviders)) {
13764
- var _iterator = _createForOfIteratorHelper$U(appProviders),
13764
+ var _iterator = _createForOfIteratorHelper$V(appProviders),
13765
13765
  _step;
13766
13766
  try {
13767
13767
  for (_iterator.s(); !(_step = _iterator.n()).done;) {
@@ -13821,7 +13821,7 @@ function forEachWidget(workspace, visit) {
13821
13821
  };
13822
13822
  var _walk = function walk(items) {
13823
13823
  if (!Array.isArray(items)) return;
13824
- var _iterator2 = _createForOfIteratorHelper$U(items),
13824
+ var _iterator2 = _createForOfIteratorHelper$V(items),
13825
13825
  _step2;
13826
13826
  try {
13827
13827
  for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
@@ -13862,7 +13862,7 @@ function forEachWidget(workspace, visit) {
13862
13862
  // widgets that only live there (e.g. AI-place writes that bypass
13863
13863
  // the page handler).
13864
13864
  if (Array.isArray(workspace.pages)) {
13865
- var _iterator3 = _createForOfIteratorHelper$U(workspace.pages),
13865
+ var _iterator3 = _createForOfIteratorHelper$V(workspace.pages),
13866
13866
  _step3;
13867
13867
  try {
13868
13868
  for (_iterator3.s(); !(_step3 = _iterator3.n()).done;) {
@@ -13913,7 +13913,7 @@ function getUnresolvedProviders(_ref2) {
13913
13913
  // the same `type` listed twice (a Claude code-gen quirk), which
13914
13914
  // would otherwise produce duplicate rows in the Providers tab.
13915
13915
  var seenTypes = new Set();
13916
- var _iterator4 = _createForOfIteratorHelper$U(requirements),
13916
+ var _iterator4 = _createForOfIteratorHelper$V(requirements),
13917
13917
  _step4;
13918
13918
  try {
13919
13919
  for (_iterator4.s(); !(_step4 = _iterator4.n()).done;) {
@@ -13956,7 +13956,7 @@ function getUnresolvedProviders(_ref2) {
13956
13956
  */
13957
13957
  function groupByProviderType(unresolved) {
13958
13958
  var byType = new Map();
13959
- var _iterator5 = _createForOfIteratorHelper$U(unresolved || []),
13959
+ var _iterator5 = _createForOfIteratorHelper$V(unresolved || []),
13960
13960
  _step5;
13961
13961
  try {
13962
13962
  for (_iterator5.s(); !(_step5 = _iterator5.n()).done;) {
@@ -13998,7 +13998,7 @@ function getAllProviderBindings(_ref3) {
13998
13998
  // quirk) which would otherwise duplicate the per-widget row in
13999
13999
  // the Providers tab.
14000
14000
  var seenTypes = new Set();
14001
- var _iterator6 = _createForOfIteratorHelper$U(requirements),
14001
+ var _iterator6 = _createForOfIteratorHelper$V(requirements),
14002
14002
  _step6;
14003
14003
  try {
14004
14004
  for (_iterator6.s(); !(_step6 = _iterator6.n()).done;) {
@@ -14040,9 +14040,9 @@ function getAllProviderBindings(_ref3) {
14040
14040
 
14041
14041
  function ownKeys$1g(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
14042
14042
  function _objectSpread$1g(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$1g(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$1g(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
14043
- function _createForOfIteratorHelper$T(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$T(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
14044
- function _unsupportedIterableToArray$T(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$T(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$T(r, a) : void 0; } }
14045
- function _arrayLikeToArray$T(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
14043
+ function _createForOfIteratorHelper$U(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$U(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
14044
+ function _unsupportedIterableToArray$U(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$U(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$U(r, a) : void 0; } }
14045
+ function _arrayLikeToArray$U(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
14046
14046
  var EVENT_STRING_RE = /^([^[]+)\[([^\]]+)\]\.(.+)$/;
14047
14047
 
14048
14048
  /** Parse "Component[itemId].event" → { component, itemId, event }. */
@@ -14219,7 +14219,7 @@ function getCurrentWiring(workspace) {
14219
14219
  // Live format is array; defensive guard for legacy object
14220
14220
  // form (a single source widget keyed under the handler).
14221
14221
  var events = Array.isArray(eventList) ? eventList : typeof eventList === "string" ? [eventList] : [];
14222
- var _iterator = _createForOfIteratorHelper$T(events),
14222
+ var _iterator = _createForOfIteratorHelper$U(events),
14223
14223
  _step;
14224
14224
  try {
14225
14225
  for (_iterator.s(); !(_step = _iterator.n()).done;) {
@@ -14283,7 +14283,7 @@ function getOrphanedListeners(workspace, getWidgetConfig) {
14283
14283
  if (!byItemId.has(id)) byItemId.set(id, meta);
14284
14284
  });
14285
14285
  var orphans = [];
14286
- var _iterator2 = _createForOfIteratorHelper$T(wiring),
14286
+ var _iterator2 = _createForOfIteratorHelper$U(wiring),
14287
14287
  _step2;
14288
14288
  try {
14289
14289
  var _loop = function _loop() {
@@ -14370,7 +14370,7 @@ function pruneDeadListenerReferences(workspace) {
14370
14370
  var liveKeys = new Set();
14371
14371
  var _walkForLive = function walkForLive(items) {
14372
14372
  if (!Array.isArray(items)) return;
14373
- var _iterator3 = _createForOfIteratorHelper$T(items),
14373
+ var _iterator3 = _createForOfIteratorHelper$U(items),
14374
14374
  _step3;
14375
14375
  try {
14376
14376
  for (_iterator3.s(); !(_step3 = _iterator3.n()).done;) {
@@ -14391,7 +14391,7 @@ function pruneDeadListenerReferences(workspace) {
14391
14391
  };
14392
14392
  _walkForLive(workspace.layout);
14393
14393
  if (Array.isArray(workspace.pages)) {
14394
- var _iterator4 = _createForOfIteratorHelper$T(workspace.pages),
14394
+ var _iterator4 = _createForOfIteratorHelper$U(workspace.pages),
14395
14395
  _step4;
14396
14396
  try {
14397
14397
  for (_iterator4.s(); !(_step4 = _iterator4.n()).done;) {
@@ -14408,7 +14408,7 @@ function pruneDeadListenerReferences(workspace) {
14408
14408
  var removed = 0;
14409
14409
  var _pruneListeners = function pruneListeners(items) {
14410
14410
  if (!Array.isArray(items)) return;
14411
- var _iterator5 = _createForOfIteratorHelper$T(items),
14411
+ var _iterator5 = _createForOfIteratorHelper$U(items),
14412
14412
  _step5;
14413
14413
  try {
14414
14414
  for (_iterator5.s(); !(_step5 = _iterator5.n()).done;) {
@@ -14420,7 +14420,7 @@ function pruneDeadListenerReferences(workspace) {
14420
14420
  var events = item.listeners[handler];
14421
14421
  if (!Array.isArray(events)) continue;
14422
14422
  var kept = [];
14423
- var _iterator6 = _createForOfIteratorHelper$T(events),
14423
+ var _iterator6 = _createForOfIteratorHelper$U(events),
14424
14424
  _step6;
14425
14425
  try {
14426
14426
  for (_iterator6.s(); !(_step6 = _iterator6.n()).done;) {
@@ -14457,7 +14457,7 @@ function pruneDeadListenerReferences(workspace) {
14457
14457
  };
14458
14458
  _pruneListeners(workspace.layout);
14459
14459
  if (Array.isArray(workspace.pages)) {
14460
- var _iterator7 = _createForOfIteratorHelper$T(workspace.pages),
14460
+ var _iterator7 = _createForOfIteratorHelper$U(workspace.pages),
14461
14461
  _step7;
14462
14462
  try {
14463
14463
  for (_iterator7.s(); !(_step7 = _iterator7.n()).done;) {
@@ -14501,7 +14501,7 @@ function applyWiringChanges(workspace, _ref) {
14501
14501
  });
14502
14502
  return byReceiver.get(id);
14503
14503
  };
14504
- var _iterator8 = _createForOfIteratorHelper$T(adds),
14504
+ var _iterator8 = _createForOfIteratorHelper$U(adds),
14505
14505
  _step8;
14506
14506
  try {
14507
14507
  for (_iterator8.s(); !(_step8 = _iterator8.n()).done;) {
@@ -14514,7 +14514,7 @@ function applyWiringChanges(workspace, _ref) {
14514
14514
  } finally {
14515
14515
  _iterator8.f();
14516
14516
  }
14517
- var _iterator9 = _createForOfIteratorHelper$T(removes),
14517
+ var _iterator9 = _createForOfIteratorHelper$U(removes),
14518
14518
  _step9;
14519
14519
  try {
14520
14520
  for (_iterator9.s(); !(_step9 = _iterator9.n()).done;) {
@@ -14588,7 +14588,7 @@ function applyToItem(listeners, _ref2) {
14588
14588
  }
14589
14589
 
14590
14590
  // Removes first so a re-add (rare) lands.
14591
- var _iterator0 = _createForOfIteratorHelper$T(removes),
14591
+ var _iterator0 = _createForOfIteratorHelper$U(removes),
14592
14592
  _step0;
14593
14593
  try {
14594
14594
  var _loop2 = function _loop2() {
@@ -14617,7 +14617,7 @@ function applyToItem(listeners, _ref2) {
14617
14617
  } finally {
14618
14618
  _iterator0.f();
14619
14619
  }
14620
- var _iterator1 = _createForOfIteratorHelper$T(adds),
14620
+ var _iterator1 = _createForOfIteratorHelper$U(adds),
14621
14621
  _step1;
14622
14622
  try {
14623
14623
  for (_iterator1.s(); !(_step1 = _iterator1.n()).done;) {
@@ -14674,9 +14674,9 @@ var SectionLayout = function SectionLayout(_ref) {
14674
14674
  });
14675
14675
  };
14676
14676
 
14677
- function _createForOfIteratorHelper$S(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$S(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
14678
- function _unsupportedIterableToArray$S(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$S(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$S(r, a) : void 0; } }
14679
- function _arrayLikeToArray$S(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
14677
+ function _createForOfIteratorHelper$T(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$T(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
14678
+ function _unsupportedIterableToArray$T(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$T(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$T(r, a) : void 0; } }
14679
+ function _arrayLikeToArray$T(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
14680
14680
 
14681
14681
  /**
14682
14682
  * @param {Array<object>} workspaces dashboards (each with id, name, layout/pages)
@@ -14688,7 +14688,7 @@ function _arrayLikeToArray$S(r, a) { (null == a || a > r.length) && (a = r.lengt
14688
14688
  function buildWidgetEventCatalog(workspaces, getWidgetConfig) {
14689
14689
  if (!Array.isArray(workspaces)) return [];
14690
14690
  var out = [];
14691
- var _iterator = _createForOfIteratorHelper$S(workspaces),
14691
+ var _iterator = _createForOfIteratorHelper$T(workspaces),
14692
14692
  _step;
14693
14693
  try {
14694
14694
  for (_iterator.s(); !(_step = _iterator.n()).done;) {
@@ -14761,12 +14761,12 @@ function describeSubscription(sub, catalog) {
14761
14761
  // Bot subscriptions resolve against the bot catalog; `kind` lets the form
14762
14762
  // say "bot missing" instead of "widget missing".
14763
14763
  if (sub && sub.source && sub.source.kind === "bot") {
14764
- var _iterator2 = _createForOfIteratorHelper$S(botCatalog || []),
14764
+ var _iterator2 = _createForOfIteratorHelper$T(botCatalog || []),
14765
14765
  _step2;
14766
14766
  try {
14767
14767
  for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
14768
14768
  var b = _step2.value;
14769
- var _iterator3 = _createForOfIteratorHelper$S(b.events),
14769
+ var _iterator3 = _createForOfIteratorHelper$T(b.events),
14770
14770
  _step3;
14771
14771
  try {
14772
14772
  for (_iterator3.s(); !(_step3 = _iterator3.n()).done;) {
@@ -14797,17 +14797,17 @@ function describeSubscription(sub, catalog) {
14797
14797
  kind: "bot"
14798
14798
  };
14799
14799
  }
14800
- var _iterator4 = _createForOfIteratorHelper$S(catalog || []),
14800
+ var _iterator4 = _createForOfIteratorHelper$T(catalog || []),
14801
14801
  _step4;
14802
14802
  try {
14803
14803
  for (_iterator4.s(); !(_step4 = _iterator4.n()).done;) {
14804
14804
  var ws = _step4.value;
14805
- var _iterator5 = _createForOfIteratorHelper$S(ws.widgets),
14805
+ var _iterator5 = _createForOfIteratorHelper$T(ws.widgets),
14806
14806
  _step5;
14807
14807
  try {
14808
14808
  for (_iterator5.s(); !(_step5 = _iterator5.n()).done;) {
14809
14809
  var w = _step5.value;
14810
- var _iterator6 = _createForOfIteratorHelper$S(w.events),
14810
+ var _iterator6 = _createForOfIteratorHelper$T(w.events),
14811
14811
  _step6;
14812
14812
  try {
14813
14813
  for (_iterator6.s(); !(_step6 = _iterator6.n()).done;) {
@@ -14867,7 +14867,7 @@ function buildBotEventCatalog(bots, toolSources) {
14867
14867
  if (!Array.isArray(bots)) return [];
14868
14868
  var sources = Array.isArray(toolSources) ? toolSources : [];
14869
14869
  var out = [];
14870
- var _iterator7 = _createForOfIteratorHelper$S(bots),
14870
+ var _iterator7 = _createForOfIteratorHelper$T(bots),
14871
14871
  _step7;
14872
14872
  try {
14873
14873
  for (_iterator7.s(); !(_step7 = _iterator7.n()).done;) {
@@ -14883,7 +14883,7 @@ function buildBotEventCatalog(bots, toolSources) {
14883
14883
  event: "failed",
14884
14884
  label: "Failed"
14885
14885
  }];
14886
- var _iterator8 = _createForOfIteratorHelper$S(bot.publishes || []),
14886
+ var _iterator8 = _createForOfIteratorHelper$T(bot.publishes || []),
14887
14887
  _step8;
14888
14888
  try {
14889
14889
  for (_iterator8.s(); !(_step8 = _iterator8.n()).done;) {
@@ -14899,7 +14899,7 @@ function buildBotEventCatalog(bots, toolSources) {
14899
14899
  } finally {
14900
14900
  _iterator8.f();
14901
14901
  }
14902
- var _iterator9 = _createForOfIteratorHelper$S(bot.mcpServers || []),
14902
+ var _iterator9 = _createForOfIteratorHelper$T(bot.mcpServers || []),
14903
14903
  _step9;
14904
14904
  try {
14905
14905
  var _loop = function _loop() {
@@ -14912,7 +14912,7 @@ function buildBotEventCatalog(bots, toolSources) {
14912
14912
  var tools = Array.isArray(sel) ? src.tools.filter(function (t) {
14913
14913
  return sel.includes(t);
14914
14914
  }) : src.tools;
14915
- var _iterator0 = _createForOfIteratorHelper$S(tools),
14915
+ var _iterator0 = _createForOfIteratorHelper$T(tools),
14916
14916
  _step0;
14917
14917
  try {
14918
14918
  for (_iterator0.s(); !(_step0 = _iterator0.n()).done;) {
@@ -15016,21 +15016,21 @@ function buildTriggerOptions(_ref) {
15016
15016
  var wsList = (Array.isArray(workspaces) ? workspaces : []).filter(function (ws) {
15017
15017
  return ws && (teamKey === null || String(ws.id) === teamKey);
15018
15018
  });
15019
- var _iterator1 = _createForOfIteratorHelper$S(buildWidgetEventCatalog(wsList, getWidgetConfig)),
15019
+ var _iterator1 = _createForOfIteratorHelper$T(buildWidgetEventCatalog(wsList, getWidgetConfig)),
15020
15020
  _step1;
15021
15021
  try {
15022
15022
  for (_iterator1.s(); !(_step1 = _iterator1.n()).done;) {
15023
15023
  var ws = _step1.value;
15024
15024
  var group = "Widgets on ".concat(ws.name);
15025
15025
  var seen = {};
15026
- var _iterator11 = _createForOfIteratorHelper$S(ws.widgets),
15026
+ var _iterator11 = _createForOfIteratorHelper$T(ws.widgets),
15027
15027
  _step11;
15028
15028
  try {
15029
15029
  for (_iterator11.s(); !(_step11 = _iterator11.n()).done;) {
15030
15030
  var widget = _step11.value;
15031
15031
  seen[widget.label] = (seen[widget.label] || 0) + 1;
15032
15032
  var name = seen[widget.label] > 1 ? "".concat(widget.label, " (").concat(seen[widget.label], ")") : widget.label;
15033
- var _iterator12 = _createForOfIteratorHelper$S(widget.events),
15033
+ var _iterator12 = _createForOfIteratorHelper$T(widget.events),
15034
15034
  _step12;
15035
15035
  try {
15036
15036
  for (_iterator12.s(); !(_step12 = _iterator12.n()).done;) {
@@ -15072,13 +15072,13 @@ function buildTriggerOptions(_ref) {
15072
15072
  var wsOf = new Map(candidates.map(function (b) {
15073
15073
  return [b.id, b.workspaceId];
15074
15074
  }));
15075
- var _iterator10 = _createForOfIteratorHelper$S(buildBotEventCatalog(candidates, toolSources, botId)),
15075
+ var _iterator10 = _createForOfIteratorHelper$T(buildBotEventCatalog(candidates, toolSources, botId)),
15076
15076
  _step10;
15077
15077
  try {
15078
15078
  for (_iterator10.s(); !(_step10 = _iterator10.n()).done;) {
15079
15079
  var entry = _step10.value;
15080
15080
  var where = teamKey === null && wsOf.get(entry.botId) !== null && wsOf.get(entry.botId) !== undefined ? " (".concat(nameOfWs.get(String(wsOf.get(entry.botId))) || "another dashboard", ")") : "";
15081
- var _iterator13 = _createForOfIteratorHelper$S(entry.events),
15081
+ var _iterator13 = _createForOfIteratorHelper$T(entry.events),
15082
15082
  _step13;
15083
15083
  try {
15084
15084
  for (_iterator13.s(); !(_step13 = _iterator13.n()).done;) {
@@ -15126,7 +15126,7 @@ function groupBotEvents(events) {
15126
15126
  title: "Tools it uses",
15127
15127
  events: []
15128
15128
  }];
15129
- var _iterator14 = _createForOfIteratorHelper$S(Array.isArray(events) ? events : []),
15129
+ var _iterator14 = _createForOfIteratorHelper$T(Array.isArray(events) ? events : []),
15130
15130
  _step14;
15131
15131
  try {
15132
15132
  var _loop2 = function _loop2() {
@@ -18270,9 +18270,9 @@ function mcpJsonToFormState(jsonString, nextRowId) {
18270
18270
  return result;
18271
18271
  }
18272
18272
 
18273
- function _createForOfIteratorHelper$R(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$R(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
18274
- function _unsupportedIterableToArray$R(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$R(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$R(r, a) : void 0; } }
18275
- function _arrayLikeToArray$R(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
18273
+ function _createForOfIteratorHelper$S(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$S(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
18274
+ function _unsupportedIterableToArray$S(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$S(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$S(r, a) : void 0; } }
18275
+ function _arrayLikeToArray$S(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
18276
18276
  function ownKeys$1c(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
18277
18277
  function _objectSpread$1c(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$1c(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$1c(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
18278
18278
  var EnhancedWidgetDropdown = function EnhancedWidgetDropdown(_ref) {
@@ -18557,11 +18557,11 @@ var EnhancedWidgetDropdown = function EnhancedWidgetDropdown(_ref) {
18557
18557
 
18558
18558
  // Flatten all widgets from all packages for the widget list
18559
18559
  flatWidgets = [];
18560
- _iterator = _createForOfIteratorHelper$R(result.packages || []);
18560
+ _iterator = _createForOfIteratorHelper$S(result.packages || []);
18561
18561
  try {
18562
18562
  for (_iterator.s(); !(_step = _iterator.n()).done;) {
18563
18563
  pkg = _step.value;
18564
- _iterator2 = _createForOfIteratorHelper$R(pkg.widgets || []);
18564
+ _iterator2 = _createForOfIteratorHelper$S(pkg.widgets || []);
18565
18565
  try {
18566
18566
  for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
18567
18567
  widget = _step2.value;
@@ -20488,9 +20488,9 @@ var useWidgetSchedulerStatus = function useWidgetSchedulerStatus(widgetId) {
20488
20488
  };
20489
20489
  };
20490
20490
 
20491
- function _createForOfIteratorHelper$Q(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$Q(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
20492
- function _unsupportedIterableToArray$Q(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$Q(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$Q(r, a) : void 0; } }
20493
- function _arrayLikeToArray$Q(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
20491
+ function _createForOfIteratorHelper$R(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$R(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
20492
+ function _unsupportedIterableToArray$R(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$R(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$R(r, a) : void 0; } }
20493
+ function _arrayLikeToArray$R(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
20494
20494
  function formatCountdown(ms) {
20495
20495
  if (ms == null || ms < 0) return "--";
20496
20496
  if (ms < 1000) return "< 1s";
@@ -20619,7 +20619,7 @@ var WidgetCardStatusBar = function WidgetCardStatusBar(_ref) {
20619
20619
 
20620
20620
  // Find soonest countdown among enabled tasks
20621
20621
  var soonestMs = null;
20622
- var _iterator = _createForOfIteratorHelper$Q(enabledTasks),
20622
+ var _iterator = _createForOfIteratorHelper$R(enabledTasks),
20623
20623
  _step;
20624
20624
  try {
20625
20625
  for (_iterator.s(); !(_step = _iterator.n()).done;) {
@@ -20913,9 +20913,9 @@ WidgetCard.Body = WidgetCardBody;
20913
20913
  WidgetCard.Footer = WidgetCardFooter;
20914
20914
  WidgetCard.StatusBar = WidgetCardStatusBar;
20915
20915
 
20916
- function _createForOfIteratorHelper$P(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$P(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
20917
- function _unsupportedIterableToArray$P(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$P(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$P(r, a) : void 0; } }
20918
- function _arrayLikeToArray$P(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
20916
+ function _createForOfIteratorHelper$Q(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$Q(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
20917
+ function _unsupportedIterableToArray$Q(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$Q(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$Q(r, a) : void 0; } }
20918
+ function _arrayLikeToArray$Q(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
20919
20919
 
20920
20920
  /**
20921
20921
  * Select-to-edit in the dashboard editor (create-entry phase 1c, CRE-006).
@@ -20952,7 +20952,7 @@ function widgetsOf(layout) {
20952
20952
 
20953
20953
  /** The grid and cell holding widget `itemId`, or null. */
20954
20954
  function findWidgetCell(layout, itemId) {
20955
- var _iterator = _createForOfIteratorHelper$P(Array.isArray(layout) ? layout : []),
20955
+ var _iterator = _createForOfIteratorHelper$Q(Array.isArray(layout) ? layout : []),
20956
20956
  _step;
20957
20957
  try {
20958
20958
  for (_iterator.s(); !(_step = _iterator.n()).done;) {
@@ -20983,7 +20983,7 @@ function botsFeeding(widget) {
20983
20983
  var out = new Set();
20984
20984
  for (var _i2 = 0, _Object$values = Object.values(widget && widget.listeners || {}); _i2 < _Object$values.length; _i2++) {
20985
20985
  var events = _Object$values[_i2];
20986
- var _iterator2 = _createForOfIteratorHelper$P(Array.isArray(events) ? events : []),
20986
+ var _iterator2 = _createForOfIteratorHelper$Q(Array.isArray(events) ? events : []),
20987
20987
  _step2;
20988
20988
  try {
20989
20989
  for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
@@ -21028,7 +21028,7 @@ function relatedTo(selection) {
21028
21028
  return w.uuid === selection.uuid;
21029
21029
  });
21030
21030
  if (!widget) return related;
21031
- var _iterator3 = _createForOfIteratorHelper$P(botsFeeding(widget)),
21031
+ var _iterator3 = _createForOfIteratorHelper$Q(botsFeeding(widget)),
21032
21032
  _step3;
21033
21033
  try {
21034
21034
  for (_iterator3.s(); !(_step3 = _iterator3.n()).done;) {
@@ -21040,7 +21040,7 @@ function relatedTo(selection) {
21040
21040
  } finally {
21041
21041
  _iterator3.f();
21042
21042
  }
21043
- var _iterator4 = _createForOfIteratorHelper$P(bots),
21043
+ var _iterator4 = _createForOfIteratorHelper$Q(bots),
21044
21044
  _step4;
21045
21045
  try {
21046
21046
  for (_iterator4.s(); !(_step4 = _iterator4.n()).done;) {
@@ -21056,7 +21056,7 @@ function relatedTo(selection) {
21056
21056
  var _bot = bots.find(function (b) {
21057
21057
  return b.id === selection.botId;
21058
21058
  });
21059
- var _iterator5 = _createForOfIteratorHelper$P(widgets),
21059
+ var _iterator5 = _createForOfIteratorHelper$Q(widgets),
21060
21060
  _step5;
21061
21061
  try {
21062
21062
  for (_iterator5.s(); !(_step5 = _iterator5.n()).done;) {
@@ -22514,7 +22514,7 @@ var WidgetProviderWrapper = function WidgetProviderWrapper(_ref2) {
22514
22514
  return children;
22515
22515
  };
22516
22516
 
22517
- var _excluded$4 = ["uuid", "children", "version", "direction", "scrollable", "className", "width", "height", "space", "grow", "publishEvent", "api", "requiredProviders", "selectedProviders", "onProviderSelect"];
22517
+ var _excluded$5 = ["uuid", "children", "version", "direction", "scrollable", "className", "width", "height", "space", "grow", "publishEvent", "api", "requiredProviders", "selectedProviders", "onProviderSelect"];
22518
22518
  function _callSuper$3(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct$3() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
22519
22519
  function _isNativeReflectConstruct$3() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct$3 = function _isNativeReflectConstruct() { return !!t; })(); }
22520
22520
  var WidgetErrorBoundary$1 = /*#__PURE__*/function (_Component) {
@@ -22612,7 +22612,7 @@ var Widget = function Widget(_ref) {
22612
22612
  selectedProviders = _ref$selectedProvider === void 0 ? {} : _ref$selectedProvider,
22613
22613
  _ref$onProviderSelect = _ref.onProviderSelect,
22614
22614
  onProviderSelect = _ref$onProviderSelect === void 0 ? null : _ref$onProviderSelect;
22615
- _objectWithoutProperties(_ref, _excluded$4);
22615
+ _objectWithoutProperties(_ref, _excluded$5);
22616
22616
  var uuidString = getUUID(uuid);
22617
22617
  return /*#__PURE__*/jsx(LayoutContainer, {
22618
22618
  uuid: uuid,
@@ -23909,12 +23909,12 @@ var WidgetFactory = {
23909
23909
  }
23910
23910
  };
23911
23911
 
23912
- var _excluded$3 = ["title", "description", "icon"];
23912
+ var _excluded$4 = ["title", "description", "icon"];
23913
23913
  var ExternalWidget = function ExternalWidget(_ref) {
23914
23914
  var title = _ref.title,
23915
23915
  description = _ref.description,
23916
23916
  icon = _ref.icon;
23917
- _objectWithoutProperties(_ref, _excluded$3);
23917
+ _objectWithoutProperties(_ref, _excluded$4);
23918
23918
  return /*#__PURE__*/jsxs("div", {
23919
23919
  className: "flex flex-col h-full justify-center items-center w-full gap-2 p-4 text-center",
23920
23920
  children: [/*#__PURE__*/jsx(FontAwesomeIcon, {
@@ -24005,9 +24005,9 @@ function GridCellFrame(_ref) {
24005
24005
  var GRID_CELL_WIDGET_TYPE = "grid-cell-widget";
24006
24006
  var SIDEBAR_WIDGET_TYPE = "sidebar-widget";
24007
24007
 
24008
- function _createForOfIteratorHelper$O(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$O(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
24009
- function _unsupportedIterableToArray$O(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$O(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$O(r, a) : void 0; } }
24010
- function _arrayLikeToArray$O(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
24008
+ function _createForOfIteratorHelper$P(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$P(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
24009
+ function _unsupportedIterableToArray$P(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$P(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$P(r, a) : void 0; } }
24010
+ function _arrayLikeToArray$P(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
24011
24011
  function ownKeys$14(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
24012
24012
  function _objectSpread$14(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$14(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$14(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
24013
24013
 
@@ -24221,7 +24221,7 @@ var DroppableEmptyCell = function DroppableEmptyCell(_ref3) {
24221
24221
  });
24222
24222
  };
24223
24223
  var LayoutGridContainer = /*#__PURE__*/memo(function (_ref4) {
24224
- var _item$grid3, _item$grid4, _item$grid5;
24224
+ var _editSelection$select, _item$grid3, _item$grid4, _item$grid5;
24225
24225
  var item = _ref4.item,
24226
24226
  workspace = _ref4.workspace,
24227
24227
  _ref4$preview = _ref4.preview,
@@ -24286,6 +24286,20 @@ var LayoutGridContainer = /*#__PURE__*/memo(function (_ref4) {
24286
24286
  var editSelection = useContext(EditSelectionContext);
24287
24287
  var workspaceScope = useContext(WorkspaceScopeContext);
24288
24288
 
24289
+ // Phase 1e: a widget being moved without dragging (Move… in the panel).
24290
+ // Another cell of the same grid becomes a target: empty takes it, full
24291
+ // swaps (DashboardModel.moveWidgetToCell swaps).
24292
+ var moving = ((_editSelection$select = editSelection.selection) === null || _editSelection$select === void 0 ? void 0 : _editSelection$select.kind) === "widget" && editSelection.selection.moving && editSelection.selection.gridItemId === item.id && (editSelection.selection.scope || "main") === workspaceScope ? editSelection.selection : null;
24293
+ var moveTarget = function moveTarget(cellNumber) {
24294
+ return moving && moving.cellNumber !== cellNumber && onMoveWidgetToCell ? function () {
24295
+ onMoveWidgetToCell(item.id, moving.cellNumber, cellNumber);
24296
+ editSelection.select(_objectSpread$14(_objectSpread$14({}, moving), {}, {
24297
+ cellNumber: cellNumber,
24298
+ moving: false
24299
+ }));
24300
+ } : null;
24301
+ };
24302
+
24289
24303
  // Get providers from AppContext (not DashboardContext, which has a structural
24290
24304
  // issue where providers from AppWrapper don't flow through DashboardWrapper)
24291
24305
  var appCtx = useContext(AppContext);
@@ -24672,7 +24686,7 @@ var LayoutGridContainer = /*#__PURE__*/memo(function (_ref4) {
24672
24686
  return selectable["delete"](cn);
24673
24687
  });
24674
24688
  var resolved = new Set();
24675
- var _iterator = _createForOfIteratorHelper$O(selectable),
24689
+ var _iterator = _createForOfIteratorHelper$P(selectable),
24676
24690
  _step;
24677
24691
  try {
24678
24692
  for (_iterator.s(); !(_step = _iterator.n()).done;) {
@@ -25158,29 +25172,31 @@ var LayoutGridContainer = /*#__PURE__*/memo(function (_ref4) {
25158
25172
  onContextMenu: function onContextMenu(e) {
25159
25173
  return handleCellRightClick(e, cellNumber);
25160
25174
  },
25161
- children: [/*#__PURE__*/jsxs("div", {
25175
+ children: [/*#__PURE__*/jsxs("button", {
25176
+ type: "button",
25162
25177
  className: "flex flex-col items-center cursor-pointer hover:bg-gray-800/50 rounded-lg px-4 py-2 transition-colors",
25163
25178
  onClick: function onClick() {
25164
- return (
25165
- // In the editor (phase 1d): select the cell; the panel's Add
25166
- // tab places the next widget picked. Elsewhere: the pop-up.
25167
- editSelection.available ? editSelection.select({
25179
+ var move = moveTarget(cellNumber);
25180
+ if (move) return move();
25181
+ // In the editor (phase 1d): select the cell; the panel's Add
25182
+ // tab places the next widget picked. Elsewhere: the pop-up.
25183
+ if (editSelection.available) {
25184
+ return editSelection.select({
25168
25185
  kind: "cell",
25169
25186
  gridItemId: item.id,
25170
25187
  cellNumber: cellNumber,
25171
25188
  scope: workspaceScope,
25172
25189
  label: "Empty cell ".concat(cellNumber)
25173
- }) : handleClickAdd(cellNumber)
25174
- );
25190
+ });
25191
+ }
25192
+ handleClickAdd(cellNumber);
25175
25193
  },
25176
- children: [/*#__PURE__*/jsx(ButtonIcon, {
25177
- icon: "plus",
25178
- textColor: "text-gray-600",
25179
- hoverTextColor: "hover:text-blue-400",
25180
- backgroundColor: "bg-transparent"
25194
+ children: [/*#__PURE__*/jsx(FontAwesomeIcon, {
25195
+ icon: moving ? "arrow-down" : "plus",
25196
+ className: "h-4 w-4 text-gray-600"
25181
25197
  }), /*#__PURE__*/jsx("span", {
25182
25198
  className: "text-xs text-gray-600 mt-1",
25183
- children: "Add widget"
25199
+ children: moving ? "Move here" : "Add widget"
25184
25200
  })]
25185
25201
  }), /*#__PURE__*/jsxs("button", {
25186
25202
  onClick: function onClick() {
@@ -25203,7 +25219,7 @@ var LayoutGridContainer = /*#__PURE__*/memo(function (_ref4) {
25203
25219
 
25204
25220
  // Unified edit mode cell renderer — wraps ALL cells in WidgetCard
25205
25221
  function renderEditCell(cellNumber, cellDef, selectableSet) {
25206
- var _editSelection$select, _cellComponent;
25222
+ var _editSelection$select2, _cellComponent;
25207
25223
  var isCellSelected = selectedCellsForMerge.includes(cellNumber);
25208
25224
  var isCellSelectable = selectableSet === null || selectableSet.has(cellNumber);
25209
25225
 
@@ -25230,12 +25246,15 @@ var LayoutGridContainer = /*#__PURE__*/memo(function (_ref4) {
25230
25246
  uuid: cellComponent.uuid,
25231
25247
  id: cellComponent.id,
25232
25248
  component: cellComponent.component,
25249
+ gridItemId: item.id,
25250
+ cellNumber: cellNumber,
25251
+ scope: workspaceScope,
25233
25252
  label: pickWidgetDisplayName(cellComponent, ComponentManager.config(cellComponent.component, cellComponent))
25234
25253
  }, openTab ? {
25235
25254
  openTab: openTab
25236
25255
  } : {}));
25237
25256
  };
25238
- var isSelectedEmptyCell = !cellComponent && ((_editSelection$select = editSelection.selection) === null || _editSelection$select === void 0 ? void 0 : _editSelection$select.kind) === "cell" && editSelection.selection.gridItemId === item.id && editSelection.selection.cellNumber === cellNumber && (editSelection.selection.scope || "main") === workspaceScope;
25257
+ var isSelectedEmptyCell = !cellComponent && ((_editSelection$select2 = editSelection.selection) === null || _editSelection$select2 === void 0 ? void 0 : _editSelection$select2.kind) === "cell" && editSelection.selection.gridItemId === item.id && editSelection.selection.cellNumber === cellNumber && (editSelection.selection.scope || "main") === workspaceScope;
25239
25258
  var header = /*#__PURE__*/jsx(WidgetCard.Header, {
25240
25259
  item: cellComponent,
25241
25260
  cellNumber: cellNumber,
@@ -25301,18 +25320,20 @@ var LayoutGridContainer = /*#__PURE__*/memo(function (_ref4) {
25301
25320
  // An occupied cell uses GridCellFrame — the same element tree as view
25302
25321
  // mode — so its widget stays mounted across view ↔ edit (phase 1c).
25303
25322
  if (cellComponent && ComponentManager.config(cellComponent.component, cellComponent)) {
25304
- var _editSelection$select2, _editSelection$select3;
25323
+ var _editSelection$select3, _editSelection$select4;
25305
25324
  return /*#__PURE__*/jsx(GridCellFrame, {
25306
25325
  editing: true,
25307
25326
  header: header,
25308
25327
  footer: footer,
25309
25328
  label: pickWidgetDisplayName(cellComponent, ComponentManager.config(cellComponent.component, cellComponent)),
25310
25329
  onSelect: function onSelect() {
25311
- return selectWidget();
25330
+ // Phase 1e: while another widget is moving, choosing this one swaps them.
25331
+ var move = moveTarget(cellNumber);
25332
+ if (move) move();else selectWidget();
25312
25333
  },
25313
- selected: ((_editSelection$select2 = editSelection.selection) === null || _editSelection$select2 === void 0 ? void 0 : _editSelection$select2.kind) === "widget" && editSelection.selection.uuid === cellComponent.uuid,
25334
+ selected: ((_editSelection$select3 = editSelection.selection) === null || _editSelection$select3 === void 0 ? void 0 : _editSelection$select3.kind) === "widget" && editSelection.selection.uuid === cellComponent.uuid,
25314
25335
  related: editSelection.related.widgets.has(cellComponent.uuid),
25315
- dimmed: ((_editSelection$select3 = editSelection.selection) === null || _editSelection$select3 === void 0 ? void 0 : _editSelection$select3.kind) === "bot" && !editSelection.related.widgets.has(cellComponent.uuid),
25336
+ dimmed: ((_editSelection$select4 = editSelection.selection) === null || _editSelection$select4 === void 0 ? void 0 : _editSelection$select4.kind) === "bot" && !editSelection.related.widgets.has(cellComponent.uuid),
25316
25337
  children: /*#__PURE__*/jsx(DraggableDroppableCellBody, {
25317
25338
  enabled: true,
25318
25339
  cellNumber: cellNumber,
@@ -29695,9 +29716,9 @@ function migrateBareComponentName(componentMap, component) {
29695
29716
 
29696
29717
  function ownKeys$11(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
29697
29718
  function _objectSpread$11(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$11(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$11(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
29698
- function _createForOfIteratorHelper$N(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$N(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
29699
- function _unsupportedIterableToArray$N(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$N(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$N(r, a) : void 0; } }
29700
- function _arrayLikeToArray$N(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
29719
+ function _createForOfIteratorHelper$O(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$O(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
29720
+ function _unsupportedIterableToArray$O(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$O(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$O(r, a) : void 0; } }
29721
+ function _arrayLikeToArray$O(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
29701
29722
  /**
29702
29723
  * The model for all layout components used primarily in the renderLayout method
29703
29724
  * @param {Object} layoutItem an object containing various attributes of the layout item
@@ -29709,7 +29730,7 @@ function _arrayLikeToArray$N(r, a) { (null == a || a > r.length) && (a = r.lengt
29709
29730
  function sortObjectByKeys(obj) {
29710
29731
  var sortedKeys = Object.keys(obj).sort();
29711
29732
  var sortedObj = {};
29712
- var _iterator = _createForOfIteratorHelper$N(sortedKeys),
29733
+ var _iterator = _createForOfIteratorHelper$O(sortedKeys),
29713
29734
  _step;
29714
29735
  try {
29715
29736
  for (_iterator.s(); !(_step = _iterator.n()).done;) {
@@ -30027,9 +30048,9 @@ var SettingsModel = function SettingsModel() {
30027
30048
  return obj;
30028
30049
  };
30029
30050
 
30030
- function _createForOfIteratorHelper$M(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$M(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
30031
- function _unsupportedIterableToArray$M(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$M(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$M(r, a) : void 0; } }
30032
- function _arrayLikeToArray$M(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
30051
+ function _createForOfIteratorHelper$N(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$N(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
30052
+ function _unsupportedIterableToArray$N(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$N(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$N(r, a) : void 0; } }
30053
+ function _arrayLikeToArray$N(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
30033
30054
 
30034
30055
  /**
30035
30056
  * Workspace-level pre-pass that migrates legacy bare component
@@ -30104,7 +30125,7 @@ function migrateScopedIdsInWorkspace(workspace, componentMap) {
30104
30125
  };
30105
30126
  var _walk = function walk(items) {
30106
30127
  if (!Array.isArray(items)) return;
30107
- var _iterator = _createForOfIteratorHelper$M(items),
30128
+ var _iterator = _createForOfIteratorHelper$N(items),
30108
30129
  _step;
30109
30130
  try {
30110
30131
  for (_iterator.s(); !(_step = _iterator.n()).done;) {
@@ -30126,7 +30147,7 @@ function migrateScopedIdsInWorkspace(workspace, componentMap) {
30126
30147
  };
30127
30148
  _walk(workspace.layout);
30128
30149
  if (Array.isArray(workspace.pages)) {
30129
- var _iterator2 = _createForOfIteratorHelper$M(workspace.pages),
30150
+ var _iterator2 = _createForOfIteratorHelper$N(workspace.pages),
30130
30151
  _step2;
30131
30152
  try {
30132
30153
  for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
@@ -30143,9 +30164,9 @@ function migrateScopedIdsInWorkspace(workspace, componentMap) {
30143
30164
  return counts;
30144
30165
  }
30145
30166
 
30146
- function _createForOfIteratorHelper$L(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$L(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
30147
- function _unsupportedIterableToArray$L(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$L(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$L(r, a) : void 0; } }
30148
- function _arrayLikeToArray$L(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
30167
+ function _createForOfIteratorHelper$M(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$M(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
30168
+ function _unsupportedIterableToArray$M(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$M(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$M(r, a) : void 0; } }
30169
+ function _arrayLikeToArray$M(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
30149
30170
  /**
30150
30171
  * cleanForeignWidgetsFromWorkspace.js
30151
30172
  *
@@ -30186,7 +30207,7 @@ function cleanForeignWidgetsFromWorkspace(workspace) {
30186
30207
  var _cleanList = function cleanList(items) {
30187
30208
  if (!Array.isArray(items)) return items;
30188
30209
  var kept = [];
30189
- var _iterator = _createForOfIteratorHelper$L(items),
30210
+ var _iterator = _createForOfIteratorHelper$M(items),
30190
30211
  _step;
30191
30212
  try {
30192
30213
  for (_iterator.s(); !(_step = _iterator.n()).done;) {
@@ -30223,7 +30244,7 @@ function cleanForeignWidgetsFromWorkspace(workspace) {
30223
30244
  workspace.sidebarLayout = _cleanList(workspace.sidebarLayout);
30224
30245
  }
30225
30246
  if (Array.isArray(workspace.pages)) {
30226
- var _iterator2 = _createForOfIteratorHelper$L(workspace.pages),
30247
+ var _iterator2 = _createForOfIteratorHelper$M(workspace.pages),
30227
30248
  _step2;
30228
30249
  try {
30229
30250
  for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
@@ -30241,9 +30262,9 @@ function cleanForeignWidgetsFromWorkspace(workspace) {
30241
30262
  return summary;
30242
30263
  }
30243
30264
 
30244
- function _createForOfIteratorHelper$K(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$K(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
30245
- function _unsupportedIterableToArray$K(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$K(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$K(r, a) : void 0; } }
30246
- function _arrayLikeToArray$K(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
30265
+ function _createForOfIteratorHelper$L(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$L(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
30266
+ function _unsupportedIterableToArray$L(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$L(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$L(r, a) : void 0; } }
30267
+ function _arrayLikeToArray$L(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
30247
30268
  /**
30248
30269
  * migrateLayoutItemTypes.js
30249
30270
  *
@@ -30305,7 +30326,7 @@ function migrateLayoutItemTypes(workspace) {
30305
30326
  };
30306
30327
  var _walk = function walk(items) {
30307
30328
  if (!Array.isArray(items)) return;
30308
- var _iterator = _createForOfIteratorHelper$K(items),
30329
+ var _iterator = _createForOfIteratorHelper$L(items),
30309
30330
  _step;
30310
30331
  try {
30311
30332
  for (_iterator.s(); !(_step = _iterator.n()).done;) {
@@ -30323,7 +30344,7 @@ function migrateLayoutItemTypes(workspace) {
30323
30344
  };
30324
30345
  _walk(workspace.layout);
30325
30346
  if (Array.isArray(workspace.pages)) {
30326
- var _iterator2 = _createForOfIteratorHelper$K(workspace.pages),
30347
+ var _iterator2 = _createForOfIteratorHelper$L(workspace.pages),
30327
30348
  _step2;
30328
30349
  try {
30329
30350
  for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
@@ -30895,9 +30916,9 @@ var ThemeModel = function ThemeModel() {
30895
30916
  }
30896
30917
  };
30897
30918
 
30898
- function _createForOfIteratorHelper$J(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$J(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
30899
- function _unsupportedIterableToArray$J(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$J(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$J(r, a) : void 0; } }
30900
- function _arrayLikeToArray$J(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
30919
+ function _createForOfIteratorHelper$K(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$K(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
30920
+ function _unsupportedIterableToArray$K(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$K(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$K(r, a) : void 0; } }
30921
+ function _arrayLikeToArray$K(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
30901
30922
  /*
30902
30923
  "component": AnalyticsReportsWidget,
30903
30924
  "type":"widget",
@@ -31015,7 +31036,7 @@ var ComponentConfigModel = function ComponentConfigModel() {
31015
31036
  if ("providers" in obj && Array.isArray(obj.providers)) {
31016
31037
  var seen = new Set();
31017
31038
  var cleaned = [];
31018
- var _iterator = _createForOfIteratorHelper$J(obj.providers),
31039
+ var _iterator = _createForOfIteratorHelper$K(obj.providers),
31019
31040
  _step;
31020
31041
  try {
31021
31042
  for (_iterator.s(); !(_step = _iterator.n()).done;) {
@@ -31061,9 +31082,9 @@ var MenuItemModel = function MenuItemModel() {
31061
31082
  return m;
31062
31083
  };
31063
31084
 
31064
- function _createForOfIteratorHelper$I(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$I(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
31065
- function _unsupportedIterableToArray$I(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$I(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$I(r, a) : void 0; } }
31066
- function _arrayLikeToArray$I(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
31085
+ function _createForOfIteratorHelper$J(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$J(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
31086
+ function _unsupportedIterableToArray$J(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$J(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$J(r, a) : void 0; } }
31087
+ function _arrayLikeToArray$J(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
31067
31088
  function ownKeys$$(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
31068
31089
  function _objectSpread$$(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$$(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$$(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
31069
31090
  /**
@@ -31123,7 +31144,7 @@ function mergeGridCellsOp(grid, cellNumbers, keepComponentId) {
31123
31144
  maxRow = -Infinity;
31124
31145
  var minCol = Infinity,
31125
31146
  maxCol = -Infinity;
31126
- var _iterator = _createForOfIteratorHelper$I(cellNumbers),
31147
+ var _iterator = _createForOfIteratorHelper$J(cellNumbers),
31127
31148
  _step;
31128
31149
  try {
31129
31150
  for (_iterator.s(); !(_step = _iterator.n()).done;) {
@@ -31147,7 +31168,7 @@ function mergeGridCellsOp(grid, cellNumbers, keepComponentId) {
31147
31168
  } finally {
31148
31169
  _iterator.f();
31149
31170
  }
31150
- var _iterator2 = _createForOfIteratorHelper$I(cellNumbers),
31171
+ var _iterator2 = _createForOfIteratorHelper$J(cellNumbers),
31151
31172
  _step2;
31152
31173
  try {
31153
31174
  for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
@@ -31189,7 +31210,7 @@ function mergeGridCellsOp(grid, cellNumbers, keepComponentId) {
31189
31210
  _iterator2.f();
31190
31211
  }
31191
31212
  var componentsInRange = [];
31192
- var _iterator3 = _createForOfIteratorHelper$I(cellNumbers),
31213
+ var _iterator3 = _createForOfIteratorHelper$J(cellNumbers),
31193
31214
  _step3;
31194
31215
  try {
31195
31216
  for (_iterator3.s(); !(_step3 = _iterator3.n()).done;) {
@@ -31227,7 +31248,7 @@ function mergeGridCellsOp(grid, cellNumbers, keepComponentId) {
31227
31248
  // other selected cells get hidden and have their component refs
31228
31249
  // cleared (so a stale ref in a hidden cell never re-renders).
31229
31250
  var keepCell = cellNumbers[0];
31230
- var _iterator4 = _createForOfIteratorHelper$I(cellNumbers),
31251
+ var _iterator4 = _createForOfIteratorHelper$J(cellNumbers),
31231
31252
  _step4;
31232
31253
  try {
31233
31254
  for (_iterator4.s(); !(_step4 = _iterator4.n()).done;) {
@@ -31757,9 +31778,9 @@ function deleteGridColumnOp(grid, colNumber) {
31757
31778
  };
31758
31779
  }
31759
31780
 
31760
- function _createForOfIteratorHelper$H(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$H(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
31761
- function _unsupportedIterableToArray$H(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$H(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$H(r, a) : void 0; } }
31762
- function _arrayLikeToArray$H(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
31781
+ function _createForOfIteratorHelper$I(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$I(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
31782
+ function _unsupportedIterableToArray$I(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$I(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$I(r, a) : void 0; } }
31783
+ function _arrayLikeToArray$I(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
31763
31784
  /**
31764
31785
  * A Model for a Workspace (Dashboard)
31765
31786
  * The Dashboard in this instance is the entire Layout inclusive of the workspaces and widgets
@@ -31831,7 +31852,7 @@ var DashboardModel = /*#__PURE__*/function () {
31831
31852
 
31832
31853
  // Also normalize grids within pages
31833
31854
  if (this.pages.length > 0) {
31834
- var _iterator = _createForOfIteratorHelper$H(this.pages),
31855
+ var _iterator = _createForOfIteratorHelper$I(this.pages),
31835
31856
  _step;
31836
31857
  try {
31837
31858
  for (_iterator.s(); !(_step = _iterator.n()).done;) {
@@ -33231,7 +33252,7 @@ var DashboardModel = /*#__PURE__*/function () {
33231
33252
  // destructive-delete behavior.
33232
33253
  var result = deleteGridRowOp(gridContainer.grid, rowNumber);
33233
33254
  gridContainer.grid = result.grid;
33234
- var _iterator2 = _createForOfIteratorHelper$H(result.orphanedComponents),
33255
+ var _iterator2 = _createForOfIteratorHelper$I(result.orphanedComponents),
33235
33256
  _step2;
33236
33257
  try {
33237
33258
  for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
@@ -33330,7 +33351,7 @@ var DashboardModel = /*#__PURE__*/function () {
33330
33351
  // Slice 11: pure helper.
33331
33352
  var result = deleteGridColumnOp(gridContainer.grid, colNumber);
33332
33353
  gridContainer.grid = result.grid;
33333
- var _iterator3 = _createForOfIteratorHelper$H(result.orphanedComponents),
33354
+ var _iterator3 = _createForOfIteratorHelper$I(result.orphanedComponents),
33334
33355
  _step3;
33335
33356
  try {
33336
33357
  for (_iterator3.s(); !(_step3 = _iterator3.n()).done;) {
@@ -33425,7 +33446,7 @@ var DashboardModel = /*#__PURE__*/function () {
33425
33446
  try {
33426
33447
  // Collect all item IDs actively referenced by grid cells
33427
33448
  var activeItemIds = new Set();
33428
- var _iterator4 = _createForOfIteratorHelper$H(this.layout),
33449
+ var _iterator4 = _createForOfIteratorHelper$I(this.layout),
33429
33450
  _step4;
33430
33451
  try {
33431
33452
  for (_iterator4.s(); !(_step4 = _iterator4.n()).done;) {
@@ -33465,7 +33486,7 @@ var DashboardModel = /*#__PURE__*/function () {
33465
33486
  });
33466
33487
 
33467
33488
  // Clean listener references on remaining items for each removed orphan
33468
- var _iterator5 = _createForOfIteratorHelper$H(orphanedIds),
33489
+ var _iterator5 = _createForOfIteratorHelper$I(orphanedIds),
33469
33490
  _step5;
33470
33491
  try {
33471
33492
  for (_iterator5.s(); !(_step5 = _iterator5.n()).done;) {
@@ -33616,7 +33637,7 @@ function resolveComponentKey(componentMap, component) {
33616
33637
  return component in componentMap ? component : null;
33617
33638
  }
33618
33639
 
33619
- var _excluded$2 = ["component"];
33640
+ var _excluded$3 = ["component"];
33620
33641
  function ownKeys$Z(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
33621
33642
  function _objectSpread$Z(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$Z(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$Z(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
33622
33643
  var _componentMap = {};
@@ -33995,7 +34016,7 @@ var ComponentManager = {
33995
34016
  // and the registry's own entry must keep it.
33996
34017
  var _source$resolvedKey = source[resolvedKey],
33997
34018
  _reactComponent = _source$resolvedKey.component,
33998
- tempComponent = _objectWithoutProperties(_source$resolvedKey, _excluded$2);
34019
+ tempComponent = _objectWithoutProperties(_source$resolvedKey, _excluded$3);
33999
34020
  var c = JSON.parse(JSON.stringify(tempComponent));
34000
34021
  c["component"] = resolvedKey;
34001
34022
  if ("userConfig" in c === false) {
@@ -34238,9 +34259,9 @@ var useDashboard = function useDashboard() {
34238
34259
  });
34239
34260
  };
34240
34261
 
34241
- function _createForOfIteratorHelper$G(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$G(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
34242
- function _unsupportedIterableToArray$G(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$G(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$G(r, a) : void 0; } }
34243
- function _arrayLikeToArray$G(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
34262
+ function _createForOfIteratorHelper$H(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$H(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
34263
+ function _unsupportedIterableToArray$H(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$H(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$H(r, a) : void 0; } }
34264
+ function _arrayLikeToArray$H(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
34244
34265
 
34245
34266
  /**
34246
34267
  * useWidgetProviders Hook
@@ -34303,7 +34324,7 @@ var useWidgetProviders = function useWidgetProviders() {
34303
34324
  // 2. Workspace-level: stored as workspace.selectedProviders[widgetId][providerType]
34304
34325
  // 3. App-default: any provider in AppContext.providers flagged isDefaultForType
34305
34326
  var providers = {};
34306
- var _iterator = _createForOfIteratorHelper$G(providerDeclarations),
34327
+ var _iterator = _createForOfIteratorHelper$H(providerDeclarations),
34307
34328
  _step;
34308
34329
  try {
34309
34330
  for (_iterator.s(); !(_step = _iterator.n()).done;) {
@@ -34362,9 +34383,9 @@ var useWidgetProviders = function useWidgetProviders() {
34362
34383
  };
34363
34384
  };
34364
34385
 
34365
- function _createForOfIteratorHelper$F(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$F(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
34366
- function _unsupportedIterableToArray$F(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$F(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$F(r, a) : void 0; } }
34367
- function _arrayLikeToArray$F(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
34386
+ function _createForOfIteratorHelper$G(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$G(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
34387
+ function _unsupportedIterableToArray$G(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$G(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$G(r, a) : void 0; } }
34388
+ function _arrayLikeToArray$G(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
34368
34389
 
34369
34390
  /**
34370
34391
  * Module-level shared state for MCP server connections.
@@ -34419,7 +34440,7 @@ function unionPathScope(grants, serverName) {
34419
34440
  allowedPaths: []
34420
34441
  };
34421
34442
  }
34422
- var _iterator = _createForOfIteratorHelper$F(grants),
34443
+ var _iterator = _createForOfIteratorHelper$G(grants),
34423
34444
  _step;
34424
34445
  try {
34425
34446
  for (_iterator.s(); !(_step = _iterator.n()).done;) {
@@ -34432,7 +34453,7 @@ function unionPathScope(grants, serverName) {
34432
34453
  var serverPerms = servers[serverName];
34433
34454
  if (!serverPerms || _typeof(serverPerms) !== "object") continue;
34434
34455
  if (Array.isArray(serverPerms.readPaths)) {
34435
- var _iterator2 = _createForOfIteratorHelper$F(serverPerms.readPaths),
34456
+ var _iterator2 = _createForOfIteratorHelper$G(serverPerms.readPaths),
34436
34457
  _step2;
34437
34458
  try {
34438
34459
  for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
@@ -34446,7 +34467,7 @@ function unionPathScope(grants, serverName) {
34446
34467
  }
34447
34468
  }
34448
34469
  if (Array.isArray(serverPerms.writePaths)) {
34449
- var _iterator3 = _createForOfIteratorHelper$F(serverPerms.writePaths),
34470
+ var _iterator3 = _createForOfIteratorHelper$G(serverPerms.writePaths),
34450
34471
  _step3;
34451
34472
  try {
34452
34473
  for (_iterator3.s(); !(_step3 = _iterator3.n()).done;) {
@@ -35253,9 +35274,9 @@ var useNotifications = function useNotifications() {
35253
35274
  };
35254
35275
  };
35255
35276
 
35256
- function _createForOfIteratorHelper$E(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$E(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
35257
- function _unsupportedIterableToArray$E(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$E(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$E(r, a) : void 0; } }
35258
- function _arrayLikeToArray$E(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
35277
+ function _createForOfIteratorHelper$F(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$F(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
35278
+ function _unsupportedIterableToArray$F(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$F(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$F(r, a) : void 0; } }
35279
+ function _arrayLikeToArray$F(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
35259
35280
 
35260
35281
  /**
35261
35282
  * useScheduler Hook
@@ -35328,7 +35349,7 @@ var useScheduler = function useScheduler() {
35328
35349
  if (pending && pending.length > 0) {
35329
35350
  setPendingResults(pending);
35330
35351
  // Call handlers for each pending result
35331
- var _iterator = _createForOfIteratorHelper$E(pending),
35352
+ var _iterator = _createForOfIteratorHelper$F(pending),
35332
35353
  _step;
35333
35354
  try {
35334
35355
  for (_iterator.s(); !(_step = _iterator.n()).done;) {
@@ -36567,9 +36588,9 @@ var CustomHexColorPane = function CustomHexColorPane(_ref) {
36567
36588
  });
36568
36589
  };
36569
36590
 
36570
- function _createForOfIteratorHelper$D(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$D(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
36571
- function _unsupportedIterableToArray$D(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$D(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$D(r, a) : void 0; } }
36572
- function _arrayLikeToArray$D(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
36591
+ function _createForOfIteratorHelper$E(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$E(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
36592
+ function _unsupportedIterableToArray$E(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$E(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$E(r, a) : void 0; } }
36593
+ function _arrayLikeToArray$E(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
36573
36594
  function rgbDistSq(a, b) {
36574
36595
  var dr = a.r - b.r;
36575
36596
  var dg = a.g - b.g;
@@ -36587,13 +36608,13 @@ function nearestSwatch(hex, families) {
36587
36608
  var target = hexToRgb$1(hex);
36588
36609
  if (!target) return null;
36589
36610
  var best = null;
36590
- var _iterator = _createForOfIteratorHelper$D(families),
36611
+ var _iterator = _createForOfIteratorHelper$E(families),
36591
36612
  _step;
36592
36613
  try {
36593
36614
  for (_iterator.s(); !(_step = _iterator.n()).done;) {
36594
36615
  var family = _step.value;
36595
36616
  var grid = getCuratedColorGrid(family) || [];
36596
- var _iterator2 = _createForOfIteratorHelper$D(grid),
36617
+ var _iterator2 = _createForOfIteratorHelper$E(grid),
36597
36618
  _step2;
36598
36619
  try {
36599
36620
  for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
@@ -43383,9 +43404,9 @@ var GrantManuallyModal = function GrantManuallyModal(_ref) {
43383
43404
  });
43384
43405
  };
43385
43406
 
43386
- function _createForOfIteratorHelper$C(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$C(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
43387
- function _unsupportedIterableToArray$C(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$C(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$C(r, a) : void 0; } }
43388
- function _arrayLikeToArray$C(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
43407
+ function _createForOfIteratorHelper$D(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$D(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
43408
+ function _unsupportedIterableToArray$D(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$D(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$D(r, a) : void 0; } }
43409
+ function _arrayLikeToArray$D(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
43389
43410
  /**
43390
43411
  * groupRowsByPackage
43391
43412
  *
@@ -43437,7 +43458,7 @@ function _hasGrant(granted) {
43437
43458
  function groupRowsByPackage(rows) {
43438
43459
  if (!Array.isArray(rows)) return [];
43439
43460
  var byPackage = new Map();
43440
- var _iterator = _createForOfIteratorHelper$C(rows),
43461
+ var _iterator = _createForOfIteratorHelper$D(rows),
43441
43462
  _step;
43442
43463
  try {
43443
43464
  for (_iterator.s(); !(_step = _iterator.n()).done;) {
@@ -43709,15 +43730,15 @@ var ConfigListRow = function ConfigListRow(_ref2) {
43709
43730
  * absence), false for paths (scanner can't see them)
43710
43731
  * @returns {Set<string>} the granted items that are stale
43711
43732
  */
43712
- function _createForOfIteratorHelper$B(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$B(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
43713
- function _unsupportedIterableToArray$B(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$B(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$B(r, a) : void 0; } }
43714
- function _arrayLikeToArray$B(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
43733
+ function _createForOfIteratorHelper$C(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$C(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
43734
+ function _unsupportedIterableToArray$C(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$C(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$C(r, a) : void 0; } }
43735
+ function _arrayLikeToArray$C(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
43715
43736
  function computeStaleItems(declaredItems, grantedItems, validatesStale) {
43716
43737
  var out = new Set();
43717
43738
  if (!validatesStale) return out;
43718
43739
  var declared = new Set(Array.isArray(declaredItems) ? declaredItems : []);
43719
43740
  var granted = Array.isArray(grantedItems) ? grantedItems : [];
43720
- var _iterator = _createForOfIteratorHelper$B(granted),
43741
+ var _iterator = _createForOfIteratorHelper$C(granted),
43721
43742
  _step;
43722
43743
  try {
43723
43744
  for (_iterator.s(); !(_step = _iterator.n()).done;) {
@@ -44314,9 +44335,9 @@ var WidgetPackageDetail = function WidgetPackageDetail(_ref) {
44314
44335
  */
44315
44336
  function ownKeys$P(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
44316
44337
  function _objectSpread$P(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$P(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$P(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
44317
- function _createForOfIteratorHelper$A(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$A(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
44318
- function _unsupportedIterableToArray$A(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$A(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$A(r, a) : void 0; } }
44319
- function _arrayLikeToArray$A(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
44338
+ function _createForOfIteratorHelper$B(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$B(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
44339
+ function _unsupportedIterableToArray$B(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$B(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$B(r, a) : void 0; } }
44340
+ function _arrayLikeToArray$B(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
44320
44341
  function applyToolToggle(grant, labels, tool, on) {
44321
44342
  if (!grant || _typeof(grant) !== "object") return null;
44322
44343
  if (!Array.isArray(labels) || labels.length === 0) return null;
@@ -44337,7 +44358,7 @@ function applyToolToggle(grant, labels, tool, on) {
44337
44358
  }
44338
44359
 
44339
44360
  // Apply the toggle to each target label.
44340
- var _iterator = _createForOfIteratorHelper$A(labels),
44361
+ var _iterator = _createForOfIteratorHelper$B(labels),
44341
44362
  _step;
44342
44363
  try {
44343
44364
  for (_iterator.s(); !(_step = _iterator.n()).done;) {
@@ -44397,9 +44418,9 @@ function applyToolToggle(grant, labels, tool, on) {
44397
44418
  */
44398
44419
  function ownKeys$O(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
44399
44420
  function _objectSpread$O(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$O(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$O(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
44400
- function _createForOfIteratorHelper$z(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$z(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
44401
- function _unsupportedIterableToArray$z(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$z(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$z(r, a) : void 0; } }
44402
- function _arrayLikeToArray$z(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
44421
+ function _createForOfIteratorHelper$A(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$A(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
44422
+ function _unsupportedIterableToArray$A(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$A(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$A(r, a) : void 0; } }
44423
+ function _arrayLikeToArray$A(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
44403
44424
  var VALID_KINDS$1 = new Set(["readPaths", "writePaths"]);
44404
44425
  function applyPathRemoval(grant, labels, kind, path) {
44405
44426
  if (!grant || _typeof(grant) !== "object") return null;
@@ -44418,7 +44439,7 @@ function applyPathRemoval(grant, labels, kind, path) {
44418
44439
  };
44419
44440
  }
44420
44441
  if (VALID_KINDS$1.has(kind)) {
44421
- var _iterator = _createForOfIteratorHelper$z(labels),
44442
+ var _iterator = _createForOfIteratorHelper$A(labels),
44422
44443
  _step;
44423
44444
  try {
44424
44445
  for (_iterator.s(); !(_step = _iterator.n()).done;) {
@@ -44526,9 +44547,9 @@ function applyDomainItemRemoval(grant, domain, kind, value) {
44526
44547
 
44527
44548
  function ownKeys$M(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
44528
44549
  function _objectSpread$M(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$M(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$M(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
44529
- function _createForOfIteratorHelper$y(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$y(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
44530
- function _unsupportedIterableToArray$y(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$y(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$y(r, a) : void 0; } }
44531
- function _arrayLikeToArray$y(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
44550
+ function _createForOfIteratorHelper$z(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$z(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
44551
+ function _unsupportedIterableToArray$z(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$z(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$z(r, a) : void 0; } }
44552
+ function _arrayLikeToArray$z(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
44532
44553
  var PrivacySecuritySection = function PrivacySecuritySection() {
44533
44554
  var _useContext = useContext(AppContext),
44534
44555
  providers = _useContext.providers;
@@ -44699,7 +44720,7 @@ var PrivacySecuritySection = function PrivacySecuritySection() {
44699
44720
  }
44700
44721
  }
44701
44722
  targets = labels.length > 0 ? labels : [serverName];
44702
- _iterator = _createForOfIteratorHelper$y(targets);
44723
+ _iterator = _createForOfIteratorHelper$z(targets);
44703
44724
  _context4.prev = 1;
44704
44725
  _iterator.s();
44705
44726
  case 2:
@@ -44993,7 +45014,7 @@ var PrivacySecuritySection = function PrivacySecuritySection() {
44993
45014
  return _context9.abrupt("return");
44994
45015
  case 3:
44995
45016
  next = currentGrant;
44996
- _iterator2 = _createForOfIteratorHelper$y(declaredTools);
45017
+ _iterator2 = _createForOfIteratorHelper$z(declaredTools);
44997
45018
  try {
44998
45019
  for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
44999
45020
  tool = _step2.value;
@@ -45033,7 +45054,7 @@ var PrivacySecuritySection = function PrivacySecuritySection() {
45033
45054
  while (1) switch (_context0.prev = _context0.next) {
45034
45055
  case 0:
45035
45056
  _context0.prev = 0;
45036
- _iterator3 = _createForOfIteratorHelper$y(packageGroup.widgets);
45057
+ _iterator3 = _createForOfIteratorHelper$z(packageGroup.widgets);
45037
45058
  _context0.prev = 1;
45038
45059
  _iterator3.s();
45039
45060
  case 2:
@@ -47953,9 +47974,9 @@ function matchesSource(entry, filter) {
47953
47974
  return widgetSource(entry, username) === filter;
47954
47975
  }
47955
47976
 
47956
- function _createForOfIteratorHelper$x(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$x(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
47957
- function _unsupportedIterableToArray$x(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$x(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$x(r, a) : void 0; } }
47958
- function _arrayLikeToArray$x(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
47977
+ function _createForOfIteratorHelper$y(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$y(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
47978
+ function _unsupportedIterableToArray$y(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$y(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$y(r, a) : void 0; } }
47979
+ function _arrayLikeToArray$y(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
47959
47980
  function ownKeys$J(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
47960
47981
  function _objectSpread$J(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$J(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$J(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
47961
47982
  var DraggableWidgetItem = function DraggableWidgetItem(_ref) {
@@ -48521,7 +48542,7 @@ var WidgetSidebar = function WidgetSidebar(_ref4) {
48521
48542
  return _context2.abrupt("return");
48522
48543
  case 2:
48523
48544
  names = new Set();
48524
- _iterator = _createForOfIteratorHelper$x(widgets);
48545
+ _iterator = _createForOfIteratorHelper$y(widgets);
48525
48546
  try {
48526
48547
  for (_iterator.s(); !(_step = _iterator.n()).done;) {
48527
48548
  w = _step.value;
@@ -48936,7 +48957,9 @@ var EditPanel = function EditPanel(_ref) {
48936
48957
  _ref$onPlaceWidget = _ref.onPlaceWidget,
48937
48958
  onPlaceWidget = _ref$onPlaceWidget === void 0 ? null : _ref$onPlaceWidget,
48938
48959
  _ref$onAskAi = _ref.onAskAi,
48939
- onAskAi = _ref$onAskAi === void 0 ? null : _ref$onAskAi;
48960
+ onAskAi = _ref$onAskAi === void 0 ? null : _ref$onAskAi,
48961
+ _ref$onMoveWidget = _ref.onMoveWidget,
48962
+ onMoveWidget = _ref$onMoveWidget === void 0 ? null : _ref$onMoveWidget;
48940
48963
  var _useContext = useContext(ThemeContext),
48941
48964
  _useContext$currentTh = _useContext.currentTheme,
48942
48965
  currentTheme = _useContext$currentTh === void 0 ? {} : _useContext$currentTh,
@@ -49073,7 +49096,26 @@ var EditPanel = function EditPanel(_ref) {
49073
49096
  className: "flex flex-col gap-2",
49074
49097
  children: [/*#__PURE__*/jsx(SectionLabel, {
49075
49098
  children: "More"
49076
- }), /*#__PURE__*/jsx(Button, {
49099
+ }), onMoveWidget && (selection.moving ? /*#__PURE__*/jsxs("div", {
49100
+ className: "flex flex-col gap-2",
49101
+ children: [/*#__PURE__*/jsx("span", {
49102
+ role: "status",
49103
+ className: "text-xs ".concat(currentTheme["text-primary-light"] || ""),
49104
+ children: "Choose a cell in the same grid: click it, or Tab to it and press Enter. An empty cell takes the widget; a full one swaps with it."
49105
+ }), /*#__PURE__*/jsx(Button, {
49106
+ title: "Stop moving",
49107
+ onClick: function onClick() {
49108
+ return onMoveWidget(false);
49109
+ },
49110
+ size: "sm"
49111
+ })]
49112
+ }) : /*#__PURE__*/jsx(Button, {
49113
+ title: "Move to another cell",
49114
+ onClick: function onClick() {
49115
+ return onMoveWidget(true);
49116
+ },
49117
+ size: "sm"
49118
+ })), /*#__PURE__*/jsx(Button, {
49077
49119
  title: "Edit with AI",
49078
49120
  onClick: function onClick() {
49079
49121
  return act("edit-with-ai");
@@ -49261,7 +49303,7 @@ function _objectSpread$I(e) { for (var r = 1; r < arguments.length; r++) { var t
49261
49303
  * last saved)
49262
49304
  * @param {object|null} latest the bot as saved right now
49263
49305
  */
49264
- var same = function same(a, b) {
49306
+ var same$1 = function same(a, b) {
49265
49307
  return JSON.stringify(a) === JSON.stringify(b);
49266
49308
  };
49267
49309
  function keepLatest(edited, opened, latest) {
@@ -49270,7 +49312,7 @@ function keepLatest(edited, opened, latest) {
49270
49312
  for (var _i = 0, _Object$keys = Object.keys(edited); _i < _Object$keys.length; _i++) {
49271
49313
  var key = _Object$keys[_i];
49272
49314
  if (key === "id") continue;
49273
- if (same(edited[key], opened[key]) && key in latest) {
49315
+ if (same$1(edited[key], opened[key]) && key in latest) {
49274
49316
  out[key] = latest[key];
49275
49317
  }
49276
49318
  }
@@ -49475,9 +49517,9 @@ function parseCron(cron) {
49475
49517
  };
49476
49518
  }
49477
49519
 
49478
- function _createForOfIteratorHelper$w(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$w(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
49479
- function _unsupportedIterableToArray$w(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$w(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$w(r, a) : void 0; } }
49480
- function _arrayLikeToArray$w(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
49520
+ function _createForOfIteratorHelper$x(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$x(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
49521
+ function _unsupportedIterableToArray$x(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$x(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$x(r, a) : void 0; } }
49522
+ function _arrayLikeToArray$x(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
49481
49523
  /**
49482
49524
  * teamUtils.js
49483
49525
  *
@@ -49510,7 +49552,7 @@ function dashboardOptions(workspaces) {
49510
49552
  return w && norm(w.id) !== null;
49511
49553
  });
49512
49554
  var totals = {};
49513
- var _iterator = _createForOfIteratorHelper$w(list),
49555
+ var _iterator = _createForOfIteratorHelper$x(list),
49514
49556
  _step;
49515
49557
  try {
49516
49558
  for (_iterator.s(); !(_step = _iterator.n()).done;) {
@@ -49557,7 +49599,7 @@ function groupBotsByTeam(bots, workspaces) {
49557
49599
  label: "Unassigned",
49558
49600
  bots: []
49559
49601
  };
49560
- var _iterator2 = _createForOfIteratorHelper$w(list),
49602
+ var _iterator2 = _createForOfIteratorHelper$x(list),
49561
49603
  _step2;
49562
49604
  try {
49563
49605
  var _loop = function _loop() {
@@ -49838,7 +49880,7 @@ var ProviderSettingField = function ProviderSettingField(_ref3) {
49838
49880
  });
49839
49881
  };
49840
49882
 
49841
- var _excluded$1 = ["transport", "command", "args", "envMapping", "url", "headerTemplate", "headers", "auth", "oauth"];
49883
+ var _excluded$2 = ["transport", "command", "args", "envMapping", "url", "headerTemplate", "headers", "auth", "oauth"];
49842
49884
  function ownKeys$H(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
49843
49885
  function _objectSpread$H(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$H(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$H(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
49844
49886
  var rowIdCounter = 0;
@@ -49886,7 +49928,7 @@ function buildMcpConfig(transport, _ref) {
49886
49928
  baseConfig.headers;
49887
49929
  baseConfig.auth;
49888
49930
  baseConfig.oauth;
49889
- var passThrough = _objectWithoutProperties(baseConfig, _excluded$1);
49931
+ var passThrough = _objectWithoutProperties(baseConfig, _excluded$2);
49890
49932
  if (transport === "stdio") {
49891
49933
  var envMapping = {};
49892
49934
  envMappingRows.forEach(function (row) {
@@ -53377,9 +53419,9 @@ var useMissingWidgets = function useMissingWidgets(workspace) {
53377
53419
 
53378
53420
  function ownKeys$E(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
53379
53421
  function _objectSpread$E(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$E(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$E(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
53380
- function _createForOfIteratorHelper$v(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$v(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
53381
- function _unsupportedIterableToArray$v(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$v(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$v(r, a) : void 0; } }
53382
- function _arrayLikeToArray$v(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
53422
+ function _createForOfIteratorHelper$w(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$w(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
53423
+ function _unsupportedIterableToArray$w(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$w(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$w(r, a) : void 0; } }
53424
+ function _arrayLikeToArray$w(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
53383
53425
  var MissingWidgetsModal = function MissingWidgetsModal(_ref) {
53384
53426
  var _ref$missingComponent = _ref.missingComponents,
53385
53427
  missingComponents = _ref$missingComponent === void 0 ? [] : _ref$missingComponent,
@@ -53430,7 +53472,7 @@ var MissingWidgetsModal = function MissingWidgetsModal(_ref) {
53430
53472
  case 0:
53431
53473
  results = [];
53432
53474
  seen = new Set();
53433
- _iterator = _createForOfIteratorHelper$v(missingComponents);
53475
+ _iterator = _createForOfIteratorHelper$w(missingComponents);
53434
53476
  _context2.prev = 1;
53435
53477
  _loop = /*#__PURE__*/_regeneratorRuntime.mark(function _loop() {
53436
53478
  var componentKey, _getWidgetSearchQuery, packageName, widgetName, pkg, result;
@@ -53819,9 +53861,9 @@ function renderFormItem(displayName, key, instructions, required, value, _onChan
53819
53861
 
53820
53862
  function ownKeys$D(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
53821
53863
  function _objectSpread$D(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$D(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$D(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
53822
- function _createForOfIteratorHelper$u(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$u(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
53823
- function _unsupportedIterableToArray$u(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$u(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$u(r, a) : void 0; } }
53824
- function _arrayLikeToArray$u(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
53864
+ function _createForOfIteratorHelper$v(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$v(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
53865
+ function _unsupportedIterableToArray$v(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$v(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$v(r, a) : void 0; } }
53866
+ function _arrayLikeToArray$v(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
53825
53867
  var ALL_WIDGETS_ID = "__ALL__";
53826
53868
 
53827
53869
  /**
@@ -53909,7 +53951,7 @@ var WidgetsTab = function WidgetsTab(_ref) {
53909
53951
  // widgets from a single input.
53910
53952
  var sharedFields = useMemo(function () {
53911
53953
  var byKey = new Map();
53912
- var _iterator = _createForOfIteratorHelper$u(widgets),
53954
+ var _iterator = _createForOfIteratorHelper$v(widgets),
53913
53955
  _step;
53914
53956
  try {
53915
53957
  for (_iterator.s(); !(_step = _iterator.n()).done;) {
@@ -53950,7 +53992,7 @@ var WidgetsTab = function WidgetsTab(_ref) {
53950
53992
  }, [sharedFields.length, widgets.length]);
53951
53993
  var groupedWidgets = useMemo(function () {
53952
53994
  var groups = new Map();
53953
- var _iterator2 = _createForOfIteratorHelper$u(widgets),
53995
+ var _iterator2 = _createForOfIteratorHelper$v(widgets),
53954
53996
  _step2;
53955
53997
  try {
53956
53998
  for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
@@ -54174,9 +54216,9 @@ function SharedFieldRow(_ref6) {
54174
54216
  });
54175
54217
  }
54176
54218
 
54177
- function _createForOfIteratorHelper$t(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$t(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
54178
- function _unsupportedIterableToArray$t(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$t(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$t(r, a) : void 0; } }
54179
- function _arrayLikeToArray$t(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
54219
+ function _createForOfIteratorHelper$u(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$u(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
54220
+ function _unsupportedIterableToArray$u(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$u(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$u(r, a) : void 0; } }
54221
+ function _arrayLikeToArray$u(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
54180
54222
  var PermissionsTab = function PermissionsTab(_ref) {
54181
54223
  var workspace = _ref.workspace;
54182
54224
  var _React$useContext = React__default.useContext(AppContext),
@@ -54403,7 +54445,7 @@ var PermissionsTab = function PermissionsTab(_ref) {
54403
54445
  return _context4.abrupt("return");
54404
54446
  case 3:
54405
54447
  next = currentGrant;
54406
- _iterator = _createForOfIteratorHelper$t(declaredTools);
54448
+ _iterator = _createForOfIteratorHelper$u(declaredTools);
54407
54449
  try {
54408
54450
  for (_iterator.s(); !(_step = _iterator.n()).done;) {
54409
54451
  tool = _step.value;
@@ -54563,7 +54605,7 @@ var PermissionsTab = function PermissionsTab(_ref) {
54563
54605
  }
54564
54606
  }
54565
54607
  targets = labels.length > 0 ? labels : [serverName];
54566
- _iterator2 = _createForOfIteratorHelper$t(targets);
54608
+ _iterator2 = _createForOfIteratorHelper$u(targets);
54567
54609
  _context8.prev = 1;
54568
54610
  _iterator2.s();
54569
54611
  case 2:
@@ -54619,7 +54661,7 @@ var PermissionsTab = function PermissionsTab(_ref) {
54619
54661
  case 0:
54620
54662
  setBusy(true);
54621
54663
  _context9.prev = 1;
54622
- _iterator3 = _createForOfIteratorHelper$t(filteredRows);
54664
+ _iterator3 = _createForOfIteratorHelper$u(filteredRows);
54623
54665
  _context9.prev = 2;
54624
54666
  _iterator3.s();
54625
54667
  case 3:
@@ -54678,7 +54720,7 @@ var PermissionsTab = function PermissionsTab(_ref) {
54678
54720
  case 0:
54679
54721
  setBusy(true);
54680
54722
  _context0.prev = 1;
54681
- _iterator4 = _createForOfIteratorHelper$t(filteredRows);
54723
+ _iterator4 = _createForOfIteratorHelper$u(filteredRows);
54682
54724
  _context0.prev = 2;
54683
54725
  _iterator4.s();
54684
54726
  case 3:
@@ -55574,9 +55616,9 @@ var BotsTab = function BotsTab(_ref2) {
55574
55616
  });
55575
55617
  };
55576
55618
 
55577
- function _createForOfIteratorHelper$s(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$s(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
55578
- function _unsupportedIterableToArray$s(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$s(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$s(r, a) : void 0; } }
55579
- function _arrayLikeToArray$s(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
55619
+ function _createForOfIteratorHelper$t(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$t(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
55620
+ function _unsupportedIterableToArray$t(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$t(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$t(r, a) : void 0; } }
55621
+ function _arrayLikeToArray$t(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
55580
55622
  function ownKeys$B(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
55581
55623
  function _objectSpread$B(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$B(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$B(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
55582
55624
  var ConfigTab = function ConfigTab(_ref) {
@@ -55735,7 +55777,7 @@ var DashboardConfigModal = function DashboardConfigModal(_ref2) {
55735
55777
  };
55736
55778
  if (!appProviders) return byType;
55737
55779
  if (Array.isArray(appProviders)) {
55738
- var _iterator = _createForOfIteratorHelper$s(appProviders),
55780
+ var _iterator = _createForOfIteratorHelper$t(appProviders),
55739
55781
  _step;
55740
55782
  try {
55741
55783
  for (_iterator.s(); !(_step = _iterator.n()).done;) {
@@ -55801,7 +55843,7 @@ var DashboardConfigModal = function DashboardConfigModal(_ref2) {
55801
55843
  });
55802
55844
  }
55803
55845
  if (Array.isArray(workspace === null || workspace === void 0 ? void 0 : workspace.pages)) {
55804
- var _iterator2 = _createForOfIteratorHelper$s(workspace.pages),
55846
+ var _iterator2 = _createForOfIteratorHelper$t(workspace.pages),
55805
55847
  _step2;
55806
55848
  try {
55807
55849
  for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
@@ -55828,7 +55870,7 @@ var DashboardConfigModal = function DashboardConfigModal(_ref2) {
55828
55870
  var visitedByLocation = new WeakSet();
55829
55871
  var _collect = function collect(items, location) {
55830
55872
  if (!Array.isArray(items)) return;
55831
- var _iterator3 = _createForOfIteratorHelper$s(items),
55873
+ var _iterator3 = _createForOfIteratorHelper$t(items),
55832
55874
  _step3;
55833
55875
  try {
55834
55876
  for (_iterator3.s(); !(_step3 = _iterator3.n()).done;) {
@@ -55929,7 +55971,7 @@ var DashboardConfigModal = function DashboardConfigModal(_ref2) {
55929
55971
  }
55930
55972
  if (stagedListeners.adds.length > 0) {
55931
55973
  // Append; avoid duplicates against current state.
55932
- var _iterator4 = _createForOfIteratorHelper$s(stagedListeners.adds),
55974
+ var _iterator4 = _createForOfIteratorHelper$t(stagedListeners.adds),
55933
55975
  _step4;
55934
55976
  try {
55935
55977
  var _loop = function _loop() {
@@ -55953,7 +55995,7 @@ var DashboardConfigModal = function DashboardConfigModal(_ref2) {
55953
55995
  }
55954
55996
  if (orphans.length === 0) return next;
55955
55997
  var orphanIndex = new Map();
55956
- var _iterator5 = _createForOfIteratorHelper$s(orphans),
55998
+ var _iterator5 = _createForOfIteratorHelper$t(orphans),
55957
55999
  _step5;
55958
56000
  try {
55959
56001
  for (_iterator5.s(); !(_step5 = _iterator5.n()).done;) {
@@ -55995,7 +56037,7 @@ var DashboardConfigModal = function DashboardConfigModal(_ref2) {
55995
56037
  function stagePrefFieldForAll(targetWidgets, key, value) {
55996
56038
  setStagedPrefs(function (prev) {
55997
56039
  var next = _objectSpread$B({}, prev);
55998
- var _iterator6 = _createForOfIteratorHelper$s(targetWidgets),
56040
+ var _iterator6 = _createForOfIteratorHelper$t(targetWidgets),
55999
56041
  _step6;
56000
56042
  try {
56001
56043
  for (_iterator6.s(); !(_step6 = _iterator6.n()).done;) {
@@ -56040,7 +56082,7 @@ var DashboardConfigModal = function DashboardConfigModal(_ref2) {
56040
56082
  });
56041
56083
  setStaged(function (prev) {
56042
56084
  var next = _objectSpread$B({}, prev);
56043
- var _iterator7 = _createForOfIteratorHelper$s(affected),
56085
+ var _iterator7 = _createForOfIteratorHelper$t(affected),
56044
56086
  _step7;
56045
56087
  try {
56046
56088
  for (_iterator7.s(); !(_step7 = _iterator7.n()).done;) {
@@ -56889,7 +56931,7 @@ function ListenersTab(_ref1) {
56889
56931
  // Receiver lookup (by composite key) for label resolution in chips.
56890
56932
  var receiverByKey = useMemo(function () {
56891
56933
  var m = new Map();
56892
- var _iterator8 = _createForOfIteratorHelper$s(receivers),
56934
+ var _iterator8 = _createForOfIteratorHelper$t(receivers),
56893
56935
  _step8;
56894
56936
  try {
56895
56937
  for (_iterator8.s(); !(_step8 = _iterator8.n()).done;) {
@@ -56987,7 +57029,7 @@ function HandlersColumn(_ref11) {
56987
57029
  onSelectHandler = _ref11.onSelectHandler;
56988
57030
  var countsByHandler = useMemo(function () {
56989
57031
  var m = new Map();
56990
- var _iterator9 = _createForOfIteratorHelper$s(myWiring),
57032
+ var _iterator9 = _createForOfIteratorHelper$t(myWiring),
56991
57033
  _step9;
56992
57034
  try {
56993
57035
  for (_iterator9.s(); !(_step9 = _iterator9.n()).done;) {
@@ -57064,7 +57106,7 @@ function EventsColumn(_ref12) {
57064
57106
  var wiredHere = useMemo(function () {
57065
57107
  var seen = new Set();
57066
57108
  var out = [];
57067
- var _iterator0 = _createForOfIteratorHelper$s(myWiring),
57109
+ var _iterator0 = _createForOfIteratorHelper$t(myWiring),
57068
57110
  _step0;
57069
57111
  try {
57070
57112
  for (_iterator0.s(); !(_step0 = _iterator0.n()).done;) {
@@ -57715,9 +57757,9 @@ var BotChat = function BotChat(_ref) {
57715
57757
  });
57716
57758
  };
57717
57759
 
57718
- function _createForOfIteratorHelper$r(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$r(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
57719
- function _unsupportedIterableToArray$r(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$r(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$r(r, a) : void 0; } }
57720
- function _arrayLikeToArray$r(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
57760
+ function _createForOfIteratorHelper$s(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$s(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
57761
+ function _unsupportedIterableToArray$s(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$s(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$s(r, a) : void 0; } }
57762
+ function _arrayLikeToArray$s(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
57721
57763
  /**
57722
57764
  * botSummary — what the Bots page shows about a bot (app-navigation PRD
57723
57765
  * NAV-006): its widget-style name, avatar colour, providers + tools, each
@@ -57751,7 +57793,7 @@ function avatarColor(bot) {
57751
57793
  /** Each bot's newest run, from `listRecentRuns` (newest first). */
57752
57794
  function lastRunsByBot(recent) {
57753
57795
  var out = {};
57754
- var _iterator = _createForOfIteratorHelper$r(recent || []),
57796
+ var _iterator = _createForOfIteratorHelper$s(recent || []),
57755
57797
  _step;
57756
57798
  try {
57757
57799
  for (_iterator.s(); !(_step = _iterator.n()).done;) {
@@ -57802,9 +57844,9 @@ var BotAvatar = function BotAvatar(_ref) {
57802
57844
 
57803
57845
  function ownKeys$z(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
57804
57846
  function _objectSpread$z(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$z(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$z(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
57805
- function _createForOfIteratorHelper$q(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$q(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
57806
- function _unsupportedIterableToArray$q(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$q(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$q(r, a) : void 0; } }
57807
- function _arrayLikeToArray$q(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
57847
+ function _createForOfIteratorHelper$r(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$r(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
57848
+ function _unsupportedIterableToArray$r(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$r(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$r(r, a) : void 0; } }
57849
+ function _arrayLikeToArray$r(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
57808
57850
  var BOT_EVENT_RE = /^bot:(.+)\[([^\]]+)\]\.(.+)$/;
57809
57851
  var slugify = function slugify(name) {
57810
57852
  return String(name || "").toLowerCase().replace(/[^a-z0-9]+/g, "-").replace(/^-+|-+$/g, "") || "bot";
@@ -57862,13 +57904,13 @@ function diagramEdges() {
57862
57904
  }));
57863
57905
  if (lead) ids["delete"](lead.id);
57864
57906
  var edges = [];
57865
- var _iterator = _createForOfIteratorHelper$q(members || []),
57907
+ var _iterator = _createForOfIteratorHelper$r(members || []),
57866
57908
  _step;
57867
57909
  try {
57868
57910
  for (_iterator.s(); !(_step = _iterator.n()).done;) {
57869
57911
  var to = _step.value;
57870
57912
  if (!to || !ids.has(to.id)) continue;
57871
- var _iterator2 = _createForOfIteratorHelper$q(botSubs(to)),
57913
+ var _iterator2 = _createForOfIteratorHelper$r(botSubs(to)),
57872
57914
  _step2;
57873
57915
  try {
57874
57916
  for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
@@ -57930,12 +57972,12 @@ function runsAfter(bot) {
57930
57972
  function thenTriggers(botId) {
57931
57973
  var members = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : [];
57932
57974
  var out = [];
57933
- var _iterator3 = _createForOfIteratorHelper$q(members || []),
57975
+ var _iterator3 = _createForOfIteratorHelper$r(members || []),
57934
57976
  _step3;
57935
57977
  try {
57936
57978
  for (_iterator3.s(); !(_step3 = _iterator3.n()).done;) {
57937
57979
  var b = _step3.value;
57938
- var _iterator4 = _createForOfIteratorHelper$q(botSubs(b)),
57980
+ var _iterator4 = _createForOfIteratorHelper$r(botSubs(b)),
57939
57981
  _step4;
57940
57982
  try {
57941
57983
  for (_iterator4.s(); !(_step4 = _iterator4.n()).done;) {
@@ -58022,7 +58064,7 @@ function diagramLayout(_ref2) {
58022
58064
  function loopEdges() {
58023
58065
  var edges = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
58024
58066
  var next = new Map();
58025
- var _iterator5 = _createForOfIteratorHelper$q(edges),
58067
+ var _iterator5 = _createForOfIteratorHelper$r(edges),
58026
58068
  _step5;
58027
58069
  try {
58028
58070
  for (_iterator5.s(); !(_step5 = _iterator5.n()).done;) {
@@ -58043,7 +58085,7 @@ function loopEdges() {
58043
58085
  if (id === goal) return true;
58044
58086
  if (seen.has(id)) continue;
58045
58087
  seen.add(id);
58046
- var _iterator6 = _createForOfIteratorHelper$q(next.get(id) || []),
58088
+ var _iterator6 = _createForOfIteratorHelper$r(next.get(id) || []),
58047
58089
  _step6;
58048
58090
  try {
58049
58091
  for (_iterator6.s(); !(_step6 = _iterator6.n()).done;) {
@@ -58322,9 +58364,9 @@ var TriggerPopover = function TriggerPopover(_ref) {
58322
58364
  });
58323
58365
  };
58324
58366
 
58325
- function _createForOfIteratorHelper$p(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$p(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
58326
- function _unsupportedIterableToArray$p(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$p(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$p(r, a) : void 0; } }
58327
- function _arrayLikeToArray$p(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
58367
+ function _createForOfIteratorHelper$q(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$q(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
58368
+ function _unsupportedIterableToArray$q(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$q(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$q(r, a) : void 0; } }
58369
+ function _arrayLikeToArray$q(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
58328
58370
  function ownKeys$y(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
58329
58371
  function _objectSpread$y(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$y(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$y(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
58330
58372
  var CARD_H = 80;
@@ -58494,7 +58536,7 @@ var TeamChart = function TeamChart(_ref) {
58494
58536
  return pos[b.id].x + layout.cardW / 2;
58495
58537
  });
58496
58538
  teamLines.push("M".concat(Math.min.apply(Math, _toConsumableArray(xs).concat([lx])), ",").concat(layout.busY, " H").concat(Math.max.apply(Math, _toConsumableArray(xs).concat([lx]))));
58497
- var _iterator = _createForOfIteratorHelper$p(firstRow),
58539
+ var _iterator = _createForOfIteratorHelper$q(firstRow),
58498
58540
  _step;
58499
58541
  try {
58500
58542
  for (_iterator.s(); !(_step = _iterator.n()).done;) {
@@ -62023,9 +62065,9 @@ function usePendingApprovalCount() {
62023
62065
 
62024
62066
  function ownKeys$t(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
62025
62067
  function _objectSpread$t(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$t(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$t(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
62026
- function _createForOfIteratorHelper$o(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$o(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
62027
- function _unsupportedIterableToArray$o(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$o(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$o(r, a) : void 0; } }
62028
- function _arrayLikeToArray$o(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
62068
+ function _createForOfIteratorHelper$p(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$p(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
62069
+ function _unsupportedIterableToArray$p(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$p(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$p(r, a) : void 0; } }
62070
+ function _arrayLikeToArray$p(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
62029
62071
  function classOf(provider) {
62030
62072
  return provider && provider.providerClass || "credential";
62031
62073
  }
@@ -62147,7 +62189,7 @@ function providerUsage(name, _ref2) {
62147
62189
  bots = _ref2$bots === void 0 ? [] : _ref2$bots,
62148
62190
  bindingsFor = _ref2.bindingsFor;
62149
62191
  var dashboards = [];
62150
- var _iterator = _createForOfIteratorHelper$o(workspaces || []),
62192
+ var _iterator = _createForOfIteratorHelper$p(workspaces || []),
62151
62193
  _step;
62152
62194
  try {
62153
62195
  for (_iterator.s(); !(_step = _iterator.n()).done;) {
@@ -62230,9 +62272,9 @@ function groupProviders(providers) {
62230
62272
  });
62231
62273
  }
62232
62274
 
62233
- function _createForOfIteratorHelper$n(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$n(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
62234
- function _unsupportedIterableToArray$n(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$n(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$n(r, a) : void 0; } }
62235
- function _arrayLikeToArray$n(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
62275
+ function _createForOfIteratorHelper$o(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$o(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
62276
+ function _unsupportedIterableToArray$o(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$o(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$o(r, a) : void 0; } }
62277
+ function _arrayLikeToArray$o(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
62236
62278
  function ownKeys$s(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
62237
62279
  function _objectSpread$s(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$s(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$s(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
62238
62280
  var getWidgetRequirements$1 = function getWidgetRequirements(name) {
@@ -62310,7 +62352,7 @@ function useProviderStatus(_ref) {
62310
62352
  };
62311
62353
  var checkRunning = useCallback(function () {
62312
62354
  if (!dashApi || typeof dashApi.mcpGetServerStatus !== "function") return;
62313
- var _iterator = _createForOfIteratorHelper$n(mcpNames ? mcpNames.split("\n") : []),
62355
+ var _iterator = _createForOfIteratorHelper$o(mcpNames ? mcpNames.split("\n") : []),
62314
62356
  _step;
62315
62357
  try {
62316
62358
  var _loop = function _loop() {
@@ -62500,9 +62542,9 @@ var NewDashboardChooser = function NewDashboardChooser(_ref2) {
62500
62542
 
62501
62543
  function ownKeys$r(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
62502
62544
  function _objectSpread$r(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$r(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$r(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
62503
- function _createForOfIteratorHelper$m(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$m(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
62504
- function _unsupportedIterableToArray$m(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$m(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$m(r, a) : void 0; } }
62505
- function _arrayLikeToArray$m(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
62545
+ function _createForOfIteratorHelper$n(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$n(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
62546
+ function _unsupportedIterableToArray$n(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$n(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$n(r, a) : void 0; } }
62547
+ function _arrayLikeToArray$n(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
62506
62548
  var DASHBOARD_TAGS = ["productivity", "monitoring", "analytics", "communication", "developer", "sales", "marketing", "finance", "project-management", "social", "news", "utilities"];
62507
62549
  var BUMP_OPTIONS$1 = [{
62508
62550
  value: "patch",
@@ -62576,7 +62618,7 @@ function collectComponentConfigs() {
62576
62618
  // fixed "reference" entry.
62577
62619
  function seedSelections(plan, dashboardVisibility) {
62578
62620
  var selections = {};
62579
- var _iterator = _createForOfIteratorHelper$m(plan.widgets || []),
62621
+ var _iterator = _createForOfIteratorHelper$n(plan.widgets || []),
62580
62622
  _step;
62581
62623
  try {
62582
62624
  for (_iterator.s(); !(_step = _iterator.n()).done;) {
@@ -62921,7 +62963,7 @@ var PublishDashboardModal = function PublishDashboardModal(_ref) {
62921
62963
  useEffect(function () {
62922
62964
  if (!isOpen || step !== 5 || !plan || defaultsLoading) return;
62923
62965
  var packagesToScan = [];
62924
- var _iterator2 = _createForOfIteratorHelper$m(plan.widgets || []),
62966
+ var _iterator2 = _createForOfIteratorHelper$n(plan.widgets || []),
62925
62967
  _step2;
62926
62968
  try {
62927
62969
  for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
@@ -62960,7 +63002,7 @@ var PublishDashboardModal = function PublishDashboardModal(_ref) {
62960
63002
  })).then(function (results) {
62961
63003
  setDefaultsByPackage(function (prev) {
62962
63004
  var next = _objectSpread$r({}, prev);
62963
- var _iterator3 = _createForOfIteratorHelper$m(results),
63005
+ var _iterator3 = _createForOfIteratorHelper$n(results),
62964
63006
  _step3;
62965
63007
  try {
62966
63008
  for (_iterator3.s(); !(_step3 = _iterator3.n()).done;) {
@@ -63053,7 +63095,7 @@ var PublishDashboardModal = function PublishDashboardModal(_ref) {
63053
63095
  break;
63054
63096
  }
63055
63097
  seenPackages = new Set();
63056
- _iterator4 = _createForOfIteratorHelper$m(plan.widgets || []);
63098
+ _iterator4 = _createForOfIteratorHelper$n(plan.widgets || []);
63057
63099
  _context2.prev = 4;
63058
63100
  _iterator4.s();
63059
63101
  case 5:
@@ -63967,7 +64009,7 @@ function DependencyTable(_ref4) {
63967
64009
  // row. Each row shows the list of component widgets that live inside it
63968
64010
  // so the user knows what's getting published.
63969
64011
  var byKey = new Map();
63970
- var _iterator5 = _createForOfIteratorHelper$m(plan.widgets || []),
64012
+ var _iterator5 = _createForOfIteratorHelper$n(plan.widgets || []),
63971
64013
  _step6;
63972
64014
  try {
63973
64015
  for (_iterator5.s(); !(_step6 = _iterator5.n()).done;) {
@@ -64138,7 +64180,7 @@ function DefaultsReviewList(_ref6) {
64138
64180
  // stays aligned with Dependencies — no surprises about WHICH
64139
64181
  // package's defaults you're editing.
64140
64182
  var rows = [];
64141
- var _iterator6 = _createForOfIteratorHelper$m((plan === null || plan === void 0 ? void 0 : plan.widgets) || []),
64183
+ var _iterator6 = _createForOfIteratorHelper$n((plan === null || plan === void 0 ? void 0 : plan.widgets) || []),
64142
64184
  _step7;
64143
64185
  try {
64144
64186
  for (_iterator6.s(); !(_step7 = _iterator6.n()).done;) {
@@ -64347,9 +64389,9 @@ function dashboardSummary(workspace) {
64347
64389
  };
64348
64390
  }
64349
64391
 
64350
- function _createForOfIteratorHelper$l(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$l(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
64351
- function _unsupportedIterableToArray$l(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$l(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$l(r, a) : void 0; } }
64352
- function _arrayLikeToArray$l(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
64392
+ function _createForOfIteratorHelper$m(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$m(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
64393
+ function _unsupportedIterableToArray$m(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$m(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$m(r, a) : void 0; } }
64394
+ function _arrayLikeToArray$m(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
64353
64395
 
64354
64396
  /**
64355
64397
  * useApprovalsByDashboard — how many bot approvals are waiting on each
@@ -64392,7 +64434,7 @@ function useApprovalsByDashboard() {
64392
64434
  return [bot.id, bot.workspaceId];
64393
64435
  }));
64394
64436
  next = {};
64395
- _iterator = _createForOfIteratorHelper$l(approvals || []);
64437
+ _iterator = _createForOfIteratorHelper$m(approvals || []);
64396
64438
  _context.prev = 3;
64397
64439
  _iterator.s();
64398
64440
  case 4:
@@ -64467,13 +64509,13 @@ function useApprovalsByDashboard() {
64467
64509
  }, [counts]);
64468
64510
  }
64469
64511
 
64470
- function _createForOfIteratorHelper$k(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$k(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
64471
- function _unsupportedIterableToArray$k(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$k(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$k(r, a) : void 0; } }
64472
- function _arrayLikeToArray$k(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
64512
+ function _createForOfIteratorHelper$l(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$l(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
64513
+ function _unsupportedIterableToArray$l(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$l(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$l(r, a) : void 0; } }
64514
+ function _arrayLikeToArray$l(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
64473
64515
  function ownKeys$q(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
64474
64516
  function _objectSpread$q(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$q(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$q(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
64475
64517
  var UNCATEGORIZED = "Uncategorized";
64476
- var plural$4 = function plural(n, one) {
64518
+ var plural$5 = function plural(n, one) {
64477
64519
  var many = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : "".concat(one, "s");
64478
64520
  return "".concat(n, " ").concat(n === 1 ? one : many);
64479
64521
  };
@@ -64489,10 +64531,10 @@ var getWidgetRequirements = function getWidgetRequirements(name) {
64489
64531
  function attentionText(unresolved, approvals) {
64490
64532
  var parts = [];
64491
64533
  if (unresolved > 0) {
64492
- parts.push("".concat(plural$4(unresolved, "provider"), " need").concat(unresolved === 1 ? "s" : "", " setup"));
64534
+ parts.push("".concat(plural$5(unresolved, "provider"), " need").concat(unresolved === 1 ? "s" : "", " setup"));
64493
64535
  }
64494
64536
  if (approvals > 0) {
64495
- parts.push("".concat(plural$4(approvals, "bot"), " need").concat(approvals === 1 ? "s" : "", " approval"));
64537
+ parts.push("".concat(plural$5(approvals, "bot"), " need").concat(approvals === 1 ? "s" : "", " approval"));
64496
64538
  }
64497
64539
  return parts.join(" · ");
64498
64540
  }
@@ -64874,7 +64916,7 @@ var DashboardDetailPanel = function DashboardDetailPanel(_ref2) {
64874
64916
  children: "None"
64875
64917
  }), summary.unresolvedProviders > 0 ? /*#__PURE__*/jsxs("span", {
64876
64918
  className: "text-xs text-amber-400",
64877
- children: [plural$4(summary.unresolvedProviders, "required provider"), " not set \u2014 fix in Dashboard Config."]
64919
+ children: [plural$5(summary.unresolvedProviders, "required provider"), " not set \u2014 fix in Dashboard Config."]
64878
64920
  }) : null]
64879
64921
  })]
64880
64922
  }), /*#__PURE__*/jsxs("div", {
@@ -64992,7 +65034,7 @@ var DashboardsPage = function DashboardsPage(_ref5) {
64992
65034
  setDeleteTarget = _useState22[1];
64993
65035
  var summaries = useMemo(function () {
64994
65036
  var map = new Map();
64995
- var _iterator = _createForOfIteratorHelper$k(workspaces),
65037
+ var _iterator = _createForOfIteratorHelper$l(workspaces),
64996
65038
  _step;
64997
65039
  try {
64998
65040
  for (_iterator.s(); !(_step = _iterator.n()).done;) {
@@ -65198,7 +65240,7 @@ var DashboardsPage = function DashboardsPage(_ref5) {
65198
65240
  children: ws.name || "Untitled"
65199
65241
  }), /*#__PURE__*/jsx("span", {
65200
65242
  className: "text-xs ".concat(muted),
65201
- children: s ? "".concat(plural$4(s.pages.length, "page"), " \xB7 ").concat(plural$4(s.widgets.length, "widget")) : ""
65243
+ children: s ? "".concat(plural$5(s.pages.length, "page"), " \xB7 ").concat(plural$5(s.widgets.length, "widget")) : ""
65202
65244
  })]
65203
65245
  }), needs ? /*#__PURE__*/jsx("span", {
65204
65246
  "data-testid": "dashboard-attention",
@@ -66122,16 +66164,16 @@ function getWidgetPreviewRenderer() {
66122
66164
 
66123
66165
  function ownKeys$o(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
66124
66166
  function _objectSpread$o(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$o(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$o(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
66125
- function _createForOfIteratorHelper$j(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$j(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
66126
- function _unsupportedIterableToArray$j(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$j(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$j(r, a) : void 0; } }
66127
- function _arrayLikeToArray$j(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
66167
+ function _createForOfIteratorHelper$k(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$k(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
66168
+ function _unsupportedIterableToArray$k(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$k(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$k(r, a) : void 0; } }
66169
+ function _arrayLikeToArray$k(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
66128
66170
  function previewProviders(widget, appProviders) {
66129
66171
  var chosen = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
66130
66172
  var needs = [];
66131
66173
  var selected = {};
66132
66174
  var missing = null;
66133
66175
  var unchosen = null;
66134
- var _iterator = _createForOfIteratorHelper$j(getUserConfigurableProviders(widget && widget.providers)),
66176
+ var _iterator = _createForOfIteratorHelper$k(getUserConfigurableProviders(widget && widget.providers)),
66135
66177
  _step;
66136
66178
  try {
66137
66179
  var _loop = function _loop() {
@@ -66463,9 +66505,9 @@ var WidgetPreview = function WidgetPreview(_ref5) {
66463
66505
  });
66464
66506
  };
66465
66507
 
66466
- function _createForOfIteratorHelper$i(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$i(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
66467
- function _unsupportedIterableToArray$i(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$i(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$i(r, a) : void 0; } }
66468
- function _arrayLikeToArray$i(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
66508
+ function _createForOfIteratorHelper$j(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$j(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
66509
+ function _unsupportedIterableToArray$j(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$j(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$j(r, a) : void 0; } }
66510
+ function _arrayLikeToArray$j(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
66469
66511
 
66470
66512
  /** "@scope/name" for a registry package record ({ scope, name } or a full name). */
66471
66513
  function publishedId(pkg) {
@@ -66530,7 +66572,7 @@ function useRegistryIdentity() {
66530
66572
  case 6:
66531
66573
  result = _context.sent;
66532
66574
  versions = {};
66533
- _iterator = _createForOfIteratorHelper$i(result && result.packages || []);
66575
+ _iterator = _createForOfIteratorHelper$j(result && result.packages || []);
66534
66576
  try {
66535
66577
  for (_iterator.s(); !(_step = _iterator.n()).done;) {
66536
66578
  pkg = _step.value;
@@ -66672,9 +66714,9 @@ var InstallWidgetPicker = function InstallWidgetPicker(_ref2) {
66672
66714
 
66673
66715
  function ownKeys$n(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
66674
66716
  function _objectSpread$n(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$n(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$n(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
66675
- function _createForOfIteratorHelper$h(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$h(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
66676
- function _unsupportedIterableToArray$h(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$h(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$h(r, a) : void 0; } }
66677
- function _arrayLikeToArray$h(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
66717
+ function _createForOfIteratorHelper$i(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$i(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
66718
+ function _unsupportedIterableToArray$i(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$i(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$i(r, a) : void 0; } }
66719
+ function _arrayLikeToArray$i(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
66678
66720
  var DiscoverWidgetsDetail = function DiscoverWidgetsDetail(_ref) {
66679
66721
  var onBack = _ref.onBack;
66680
66722
  var _useContext = useContext(ThemeContext),
@@ -66781,7 +66823,7 @@ var DiscoverWidgetsDetail = function DiscoverWidgetsDetail(_ref) {
66781
66823
  case 1:
66782
66824
  widgets = _context2.sent;
66783
66825
  names = new Set();
66784
- _iterator = _createForOfIteratorHelper$h(widgets);
66826
+ _iterator = _createForOfIteratorHelper$i(widgets);
66785
66827
  try {
66786
66828
  for (_iterator.s(); !(_step = _iterator.n()).done;) {
66787
66829
  w = _step.value;
@@ -66886,12 +66928,12 @@ var DiscoverWidgetsDetail = function DiscoverWidgetsDetail(_ref) {
66886
66928
  var checkToolConflicts = function checkToolConflicts(widget) {
66887
66929
  var conflicts = [];
66888
66930
  var packageWidgets = widget.packageWidgets || [];
66889
- var _iterator2 = _createForOfIteratorHelper$h(packageWidgets),
66931
+ var _iterator2 = _createForOfIteratorHelper$i(packageWidgets),
66890
66932
  _step2;
66891
66933
  try {
66892
66934
  for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
66893
66935
  var w = _step2.value;
66894
- var _iterator3 = _createForOfIteratorHelper$h(w.providers || []),
66936
+ var _iterator3 = _createForOfIteratorHelper$i(w.providers || []),
66895
66937
  _step3;
66896
66938
  try {
66897
66939
  var _loop = function _loop() {
@@ -66904,7 +66946,7 @@ var DiscoverWidgetsDetail = function DiscoverWidgetsDetail(_ref) {
66904
66946
  prov = _ref5[1];
66905
66947
  return prov.type === p.type && prov.providerClass === "mcp" && prov.allowedTools;
66906
66948
  });
66907
- var _iterator4 = _createForOfIteratorHelper$h(matchingProviders),
66949
+ var _iterator4 = _createForOfIteratorHelper$i(matchingProviders),
66908
66950
  _step4;
66909
66951
  try {
66910
66952
  var _loop2 = function _loop2() {
@@ -68016,9 +68058,9 @@ var PublishWidgetModal = function PublishWidgetModal(_ref) {
68016
68058
  });
68017
68059
  };
68018
68060
 
68019
- function _createForOfIteratorHelper$g(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$g(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
68020
- function _unsupportedIterableToArray$g(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$g(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$g(r, a) : void 0; } }
68021
- function _arrayLikeToArray$g(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
68061
+ function _createForOfIteratorHelper$h(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$h(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
68062
+ function _unsupportedIterableToArray$h(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$h(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$h(r, a) : void 0; } }
68063
+ function _arrayLikeToArray$h(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
68022
68064
  var UpdateAllWidgetsModal = function UpdateAllWidgetsModal(_ref) {
68023
68065
  var isOpen = _ref.isOpen,
68024
68066
  setIsOpen = _ref.setIsOpen,
@@ -68132,7 +68174,7 @@ var UpdateAllWidgetsModal = function UpdateAllWidgetsModal(_ref) {
68132
68174
  if (!hasRun || isBatchUpdating) return null;
68133
68175
  var done = 0;
68134
68176
  var failed = 0;
68135
- var _iterator = _createForOfIteratorHelper$g(batchStatus),
68177
+ var _iterator = _createForOfIteratorHelper$h(batchStatus),
68136
68178
  _step;
68137
68179
  try {
68138
68180
  for (_iterator.s(); !(_step = _iterator.n()).done;) {
@@ -68642,9 +68684,9 @@ function deriveWidgetOwnership(_ref2) {
68642
68684
 
68643
68685
  function ownKeys$k(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
68644
68686
  function _objectSpread$k(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$k(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$k(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
68645
- function _createForOfIteratorHelper$f(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$f(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
68646
- function _unsupportedIterableToArray$f(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$f(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$f(r, a) : void 0; } }
68647
- function _arrayLikeToArray$f(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
68687
+ function _createForOfIteratorHelper$g(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$g(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
68688
+ function _unsupportedIterableToArray$g(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$g(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$g(r, a) : void 0; } }
68689
+ function _arrayLikeToArray$g(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
68648
68690
  var BUILT_IN = "Built-in";
68649
68691
  var AI_BUILT = "AI-built";
68650
68692
  var LOCAL = "Local";
@@ -68676,7 +68718,7 @@ function usageOf(componentNames, workspaces) {
68676
68718
  var names = new Set(componentNames || []);
68677
68719
  if (!names.size) return [];
68678
68720
  var out = [];
68679
- var _iterator = _createForOfIteratorHelper$f(workspaces || []),
68721
+ var _iterator = _createForOfIteratorHelper$g(workspaces || []),
68680
68722
  _step;
68681
68723
  try {
68682
68724
  for (_iterator.s(); !(_step = _iterator.n()).done;) {
@@ -68685,7 +68727,7 @@ function usageOf(componentNames, workspaces) {
68685
68727
  return p.layout;
68686
68728
  }) : [ws.layout];
68687
68729
  var count = 0;
68688
- var _iterator2 = _createForOfIteratorHelper$f(layouts),
68730
+ var _iterator2 = _createForOfIteratorHelper$g(layouts),
68689
68731
  _step2;
68690
68732
  try {
68691
68733
  for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
@@ -68743,7 +68785,7 @@ function widgetOrgs(widgets) {
68743
68785
  _ref$username = _ref.username,
68744
68786
  username = _ref$username === void 0 ? null : _ref$username;
68745
68787
  var packages = new Map();
68746
- var _iterator3 = _createForOfIteratorHelper$f(widgets || []),
68788
+ var _iterator3 = _createForOfIteratorHelper$g(widgets || []),
68747
68789
  _step3;
68748
68790
  try {
68749
68791
  for (_iterator3.s(); !(_step3 = _iterator3.n()).done;) {
@@ -68779,7 +68821,7 @@ function widgetOrgs(widgets) {
68779
68821
  if (!pkg.update && updates && updates.get) {
68780
68822
  pkg.update = updates.get(w.name) || null;
68781
68823
  }
68782
- var _iterator5 = _createForOfIteratorHelper$f(getUserConfigurableProviders(w.providers)),
68824
+ var _iterator5 = _createForOfIteratorHelper$g(getUserConfigurableProviders(w.providers)),
68783
68825
  _step5;
68784
68826
  try {
68785
68827
  for (_iterator5.s(); !(_step5 = _iterator5.n()).done;) {
@@ -68798,13 +68840,13 @@ function widgetOrgs(widgets) {
68798
68840
  _iterator3.f();
68799
68841
  }
68800
68842
  var orgs = new Map();
68801
- var _iterator4 = _createForOfIteratorHelper$f(packages.values()),
68843
+ var _iterator4 = _createForOfIteratorHelper$g(packages.values()),
68802
68844
  _step4;
68803
68845
  try {
68804
68846
  for (_iterator4.s(); !(_step4 = _iterator4.n()).done;) {
68805
68847
  var _pkg = _step4.value;
68806
68848
  _pkg.widgetUsage = {};
68807
- var _iterator6 = _createForOfIteratorHelper$f(_pkg.widgets),
68849
+ var _iterator6 = _createForOfIteratorHelper$g(_pkg.widgets),
68808
68850
  _step6;
68809
68851
  try {
68810
68852
  for (_iterator6.s(); !(_step6 = _iterator6.n()).done;) {
@@ -68896,7 +68938,7 @@ function filterOrgs(orgs) {
68896
68938
  });
68897
68939
  }
68898
68940
 
68899
- var plural$3 = function plural(n, one) {
68941
+ var plural$4 = function plural(n, one) {
68900
68942
  var many = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : "".concat(one, "s");
68901
68943
  return "".concat(n, " ").concat(n === 1 ? one : many);
68902
68944
  };
@@ -69090,7 +69132,7 @@ var PackageDetail = function PackageDetail(_ref2) {
69090
69132
  children: [/*#__PURE__*/jsxs("div", {
69091
69133
  className: "flex flex-col gap-2 min-w-0",
69092
69134
  children: [/*#__PURE__*/jsx(SectionLabel, {
69093
- text: "".concat(plural$3(pkg.widgets.length, "widget"), " in this package")
69135
+ text: "".concat(plural$4(pkg.widgets.length, "widget"), " in this package")
69094
69136
  }), /*#__PURE__*/jsx("div", {
69095
69137
  className: "flex flex-col gap-1",
69096
69138
  children: pkg.widgets.map(function (w) {
@@ -69106,7 +69148,7 @@ var PackageDetail = function PackageDetail(_ref2) {
69106
69148
  children: w.displayName || w.name
69107
69149
  }), /*#__PURE__*/jsx("span", {
69108
69150
  className: "text-xs flex-shrink-0 ".concat(muted),
69109
- children: used ? "on ".concat(plural$3(used, "dashboard")) : "not used"
69151
+ children: used ? "on ".concat(plural$4(used, "dashboard")) : "not used"
69110
69152
  }), pkg.isBuiltIn ? null : /*#__PURE__*/jsx(Button3, {
69111
69153
  title: "Preview",
69112
69154
  size: "xs",
@@ -69599,12 +69641,12 @@ var WidgetsPage = function WidgetsPage(_ref5) {
69599
69641
  var removeMessage = function removeMessage(pkg) {
69600
69642
  if (!pkg) return "";
69601
69643
  var n = pkg.widgets.length;
69602
- var head = pkg.isDraft ? "This permanently deletes the draft and its files." : "This removes its ".concat(plural$3(n, "widget"), ".");
69644
+ var head = pkg.isDraft ? "This permanently deletes the draft and its files." : "This removes its ".concat(plural$4(n, "widget"), ".");
69603
69645
  if (!pkg.usedOn.length) return head;
69604
69646
  var names = pkg.usedOn.map(function (u) {
69605
69647
  return u.workspaceName;
69606
69648
  }).join(", ");
69607
- return "".concat(head, " ").concat(n === 1 ? "It's" : "They're", " used on ").concat(plural$3(pkg.usedOn.length, "dashboard"), " (").concat(names, "), which will show ").concat(n === 1 ? "it" : "them", " as missing.");
69649
+ return "".concat(head, " ").concat(n === 1 ? "It's" : "They're", " used on ").concat(plural$4(pkg.usedOn.length, "dashboard"), " (").concat(names, "), which will show ").concat(n === 1 ? "it" : "them", " as missing.");
69608
69650
  };
69609
69651
  var detail;
69610
69652
  if (mode === "picker" || mode === "result" && !install.result) {
@@ -69699,13 +69741,13 @@ var WidgetsPage = function WidgetsPage(_ref5) {
69699
69741
  className: "text-xs ".concat(muted),
69700
69742
  children: "Checking for updates\u2026"
69701
69743
  }) : null, packagesWithUpdates.length ? /*#__PURE__*/jsx(Button, {
69702
- title: "".concat(plural$3(packagesWithUpdates.length, "update"), " \xB7 Update all"),
69744
+ title: "".concat(plural$4(packagesWithUpdates.length, "update"), " \xB7 Update all"),
69703
69745
  size: "sm",
69704
69746
  onClick: function onClick() {
69705
69747
  return setUpdateAllOpen(true);
69706
69748
  }
69707
69749
  }) : null, drafts.length ? /*#__PURE__*/jsx(Button3, {
69708
- title: "Clean up ".concat(plural$3(drafts.length, "draft")),
69750
+ title: "Clean up ".concat(plural$4(drafts.length, "draft")),
69709
69751
  size: "sm",
69710
69752
  onClick: function onClick() {
69711
69753
  return setDraftsTarget(drafts);
@@ -69756,7 +69798,7 @@ var WidgetsPage = function WidgetsPage(_ref5) {
69756
69798
  children: label
69757
69799
  }), /*#__PURE__*/jsxs("span", {
69758
69800
  className: "text-xs truncate ".concat(muted),
69759
- children: [plural$3(pkg.widgets.length, "widget"), pkg.version ? " \xB7 v".concat(pkg.version) : ""]
69801
+ children: [plural$4(pkg.widgets.length, "widget"), pkg.version ? " \xB7 v".concat(pkg.version) : ""]
69760
69802
  })]
69761
69803
  }), pkg.update ? /*#__PURE__*/jsx("span", {
69762
69804
  "data-testid": "package-update",
@@ -69814,10 +69856,10 @@ var WidgetsPage = function WidgetsPage(_ref5) {
69814
69856
  if (!open) setDraftsTarget(null);
69815
69857
  },
69816
69858
  title: "Clean up drafts?",
69817
- message: draftsTarget ? "This permanently deletes ".concat(plural$3(draftsTarget.length, "in-progress widget"), " and their files: ").concat(draftsTarget.map(function (d) {
69859
+ message: draftsTarget ? "This permanently deletes ".concat(plural$4(draftsTarget.length, "in-progress widget"), " and their files: ").concat(draftsTarget.map(function (d) {
69818
69860
  return d.displayName || d.name;
69819
69861
  }).join(", "), ". This can't be undone.") : "",
69820
- confirmLabel: isCleaning ? "Deleting…" : "Delete ".concat(plural$3((draftsTarget || []).length, "draft")),
69862
+ confirmLabel: isCleaning ? "Deleting…" : "Delete ".concat(plural$4((draftsTarget || []).length, "draft")),
69821
69863
  variant: "danger",
69822
69864
  onConfirm: confirmCleanup,
69823
69865
  onCancel: function onCancel() {
@@ -70918,7 +70960,7 @@ var ThemePreview = function ThemePreview(_ref) {
70918
70960
  });
70919
70961
  };
70920
70962
 
70921
- var plural$2 = function plural(n, one) {
70963
+ var plural$3 = function plural(n, one) {
70922
70964
  var many = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : "".concat(one, "s");
70923
70965
  return "".concat(n, " ").concat(n === 1 ? one : many);
70924
70966
  };
@@ -70942,7 +70984,7 @@ var VARIANTS = [{
70942
70984
 
70943
70985
  /** "App theme" / "Used by 2 dashboards" / "Not in use". */
70944
70986
  var usageText = function usageText(row) {
70945
- return row.isApp ? "App theme" : row.usedBy.length ? "Used by ".concat(plural$2(row.usedBy.length, "dashboard")) : "Not in use";
70987
+ return row.isApp ? "App theme" : row.usedBy.length ? "Used by ".concat(plural$3(row.usedBy.length, "dashboard")) : "Not in use";
70946
70988
  };
70947
70989
 
70948
70990
  /** One theme's details (the right-hand panel). */
@@ -71574,9 +71616,9 @@ var FoldersSection = function FoldersSection(_ref) {
71574
71616
 
71575
71617
  function ownKeys$i(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
71576
71618
  function _objectSpread$i(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$i(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$i(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
71577
- function _createForOfIteratorHelper$e(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$e(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
71578
- function _unsupportedIterableToArray$e(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$e(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$e(r, a) : void 0; } }
71579
- function _arrayLikeToArray$e(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
71619
+ function _createForOfIteratorHelper$f(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$f(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
71620
+ function _unsupportedIterableToArray$f(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$f(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$f(r, a) : void 0; } }
71621
+ function _arrayLikeToArray$f(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
71580
71622
  /**
71581
71623
  * applyBulkProviderBindings — pure utility for the dashboard config
71582
71624
  * bulk-edit modal's Save path.
@@ -71634,7 +71676,7 @@ function applyToLayoutArray(layout, changesByWidgetId) {
71634
71676
  var next = layout.map(function (item) {
71635
71677
  if (!item) return item;
71636
71678
  var matchedChanges = null;
71637
- var _iterator = _createForOfIteratorHelper$e(changesByWidgetId.entries()),
71679
+ var _iterator = _createForOfIteratorHelper$f(changesByWidgetId.entries()),
71638
71680
  _step;
71639
71681
  try {
71640
71682
  for (_iterator.s(); !(_step = _iterator.n()).done;) {
@@ -71684,7 +71726,7 @@ function applyBulkProviderBindings(workspace, changes) {
71684
71726
  // Group changes by widgetId so we can match each layout item once
71685
71727
  // and apply every type-level change on it in a single pass.
71686
71728
  var changesByWidgetId = new Map();
71687
- var _iterator2 = _createForOfIteratorHelper$e(changes),
71729
+ var _iterator2 = _createForOfIteratorHelper$f(changes),
71688
71730
  _step2;
71689
71731
  try {
71690
71732
  for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
@@ -71706,7 +71748,7 @@ function applyBulkProviderBindings(workspace, changes) {
71706
71748
  // ── Layer 2: workspace.selectedProviders ─────────────────────────
71707
71749
  var nextSelectedProviders = _objectSpread$i({}, workspace.selectedProviders || {});
71708
71750
  var layer2Changed = false;
71709
- var _iterator3 = _createForOfIteratorHelper$e(changesByWidgetId.entries()),
71751
+ var _iterator3 = _createForOfIteratorHelper$f(changesByWidgetId.entries()),
71710
71752
  _step3;
71711
71753
  try {
71712
71754
  for (_iterator3.s(); !(_step3 = _iterator3.n()).done;) {
@@ -72073,9 +72115,9 @@ function reconcileWorkspaceAfterLayoutChange(workspace) {
72073
72115
 
72074
72116
  function ownKeys$g(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
72075
72117
  function _objectSpread$g(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$g(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$g(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
72076
- function _createForOfIteratorHelper$d(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$d(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
72077
- function _unsupportedIterableToArray$d(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$d(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$d(r, a) : void 0; } }
72078
- function _arrayLikeToArray$d(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
72118
+ function _createForOfIteratorHelper$e(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$e(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
72119
+ function _unsupportedIterableToArray$e(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$e(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$e(r, a) : void 0; } }
72120
+ function _arrayLikeToArray$e(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
72079
72121
  var explicitBinding = function explicitBinding(workspace, binding) {
72080
72122
  return binding.layoutItem && binding.layoutItem.selectedProviders && binding.layoutItem.selectedProviders[binding.providerType] || binding.widgetId != null && workspace.selectedProviders && workspace.selectedProviders[binding.widgetId] && workspace.selectedProviders[binding.widgetId][binding.providerType] || null;
72081
72123
  };
@@ -72115,7 +72157,7 @@ function providerUseModel(_ref) {
72115
72157
  return !!(s && s.key === "needsSetup");
72116
72158
  };
72117
72159
  var dashboards = [];
72118
- var _iterator = _createForOfIteratorHelper$d(workspaces || []),
72160
+ var _iterator = _createForOfIteratorHelper$e(workspaces || []),
72119
72161
  _step;
72120
72162
  try {
72121
72163
  var _loop = function _loop() {
@@ -72201,13 +72243,13 @@ function planProviderUse(model) {
72201
72243
  };
72202
72244
  var workspaces = [];
72203
72245
  var count = 0;
72204
- var _iterator2 = _createForOfIteratorHelper$d(model.dashboards),
72246
+ var _iterator2 = _createForOfIteratorHelper$e(model.dashboards),
72205
72247
  _step2;
72206
72248
  try {
72207
72249
  for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
72208
72250
  var d = _step2.value;
72209
72251
  var changes = [];
72210
- var _iterator4 = _createForOfIteratorHelper$d(d.rows),
72252
+ var _iterator4 = _createForOfIteratorHelper$e(d.rows),
72211
72253
  _step4;
72212
72254
  try {
72213
72255
  for (_iterator4.s(); !(_step4 = _iterator4.n()).done;) {
@@ -72238,7 +72280,7 @@ function planProviderUse(model) {
72238
72280
  _iterator2.f();
72239
72281
  }
72240
72282
  var bots = [];
72241
- var _iterator3 = _createForOfIteratorHelper$d(model.bots),
72283
+ var _iterator3 = _createForOfIteratorHelper$e(model.bots),
72242
72284
  _step3;
72243
72285
  try {
72244
72286
  for (_iterator3.s(); !(_step3 = _iterator3.n()).done;) {
@@ -72301,7 +72343,7 @@ function _applyProviderUse() {
72301
72343
  bots: 0,
72302
72344
  failed: []
72303
72345
  };
72304
- _iterator5 = _createForOfIteratorHelper$d(plan.workspaces);
72346
+ _iterator5 = _createForOfIteratorHelper$e(plan.workspaces);
72305
72347
  _context3.prev = 1;
72306
72348
  _loop2 = /*#__PURE__*/_regeneratorRuntime.mark(function _loop2() {
72307
72349
  var _step5$value, workspaceId, changes, workspace, name, updated, _iterator7, _step7, c, _t;
@@ -72325,7 +72367,7 @@ function _applyProviderUse() {
72325
72367
  return saveWorkspace(dashApi, appId, updated);
72326
72368
  case 3:
72327
72369
  result.dashboards += 1;
72328
- _iterator7 = _createForOfIteratorHelper$d(changes);
72370
+ _iterator7 = _createForOfIteratorHelper$e(changes);
72329
72371
  try {
72330
72372
  for (_iterator7.s(); !(_step7 = _iterator7.n()).done;) {
72331
72373
  c = _step7.value;
@@ -72374,7 +72416,7 @@ function _applyProviderUse() {
72374
72416
  _iterator5.f();
72375
72417
  return _context3.finish(6);
72376
72418
  case 7:
72377
- _iterator6 = _createForOfIteratorHelper$d(plan.bots);
72419
+ _iterator6 = _createForOfIteratorHelper$e(plan.bots);
72378
72420
  _context3.prev = 8;
72379
72421
  _loop3 = /*#__PURE__*/_regeneratorRuntime.mark(function _loop3() {
72380
72422
  var _step6$value, botId, add, bot, name, current, mcpServers, _t2;
@@ -72453,21 +72495,21 @@ function _applyProviderUse() {
72453
72495
 
72454
72496
  function ownKeys$f(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
72455
72497
  function _objectSpread$f(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$f(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$f(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
72456
- function _createForOfIteratorHelper$c(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$c(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
72457
- function _unsupportedIterableToArray$c(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$c(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$c(r, a) : void 0; } }
72458
- function _arrayLikeToArray$c(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
72459
- var plural$1 = function plural(n, one) {
72498
+ function _createForOfIteratorHelper$d(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$d(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
72499
+ function _unsupportedIterableToArray$d(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$d(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$d(r, a) : void 0; } }
72500
+ function _arrayLikeToArray$d(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
72501
+ var plural$2 = function plural(n, one) {
72460
72502
  var many = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : "".concat(one, "s");
72461
72503
  return "".concat(n, " ").concat(n === 1 ? one : many);
72462
72504
  };
72463
72505
  var initialPicks = function initialPicks(model) {
72464
72506
  var picks = {};
72465
- var _iterator = _createForOfIteratorHelper$c(model && model.dashboards || []),
72507
+ var _iterator = _createForOfIteratorHelper$d(model && model.dashboards || []),
72466
72508
  _step;
72467
72509
  try {
72468
72510
  for (_iterator.s(); !(_step = _iterator.n()).done;) {
72469
72511
  var d = _step.value;
72470
- var _iterator3 = _createForOfIteratorHelper$c(d.rows),
72512
+ var _iterator3 = _createForOfIteratorHelper$d(d.rows),
72471
72513
  _step3;
72472
72514
  try {
72473
72515
  for (_iterator3.s(); !(_step3 = _iterator3.n()).done;) {
@@ -72485,7 +72527,7 @@ var initialPicks = function initialPicks(model) {
72485
72527
  } finally {
72486
72528
  _iterator.f();
72487
72529
  }
72488
- var _iterator2 = _createForOfIteratorHelper$c(model && model.bots || []),
72530
+ var _iterator2 = _createForOfIteratorHelper$d(model && model.bots || []),
72489
72531
  _step2;
72490
72532
  try {
72491
72533
  for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
@@ -72549,12 +72591,12 @@ var ProviderUseDialog = function ProviderUseDialog(_ref) {
72549
72591
  }, [isOpen, model]);
72550
72592
  var changes = useMemo(function () {
72551
72593
  var n = 0;
72552
- var _iterator4 = _createForOfIteratorHelper$c(model && model.dashboards || []),
72594
+ var _iterator4 = _createForOfIteratorHelper$d(model && model.dashboards || []),
72553
72595
  _step4;
72554
72596
  try {
72555
72597
  for (_iterator4.s(); !(_step4 = _iterator4.n()).done;) {
72556
72598
  var d = _step4.value;
72557
- var _iterator6 = _createForOfIteratorHelper$c(d.rows),
72599
+ var _iterator6 = _createForOfIteratorHelper$d(d.rows),
72558
72600
  _step6;
72559
72601
  try {
72560
72602
  for (_iterator6.s(); !(_step6 = _iterator6.n()).done;) {
@@ -72572,7 +72614,7 @@ var ProviderUseDialog = function ProviderUseDialog(_ref) {
72572
72614
  } finally {
72573
72615
  _iterator4.f();
72574
72616
  }
72575
- var _iterator5 = _createForOfIteratorHelper$c(model && model.bots || []),
72617
+ var _iterator5 = _createForOfIteratorHelper$d(model && model.bots || []),
72576
72618
  _step5;
72577
72619
  try {
72578
72620
  for (_iterator5.s(); !(_step5 = _iterator5.n()).done;) {
@@ -72596,7 +72638,7 @@ var ProviderUseDialog = function ProviderUseDialog(_ref) {
72596
72638
  var tickAll = function tickAll(rows) {
72597
72639
  return setPicks(function (p) {
72598
72640
  var next = _objectSpread$f({}, p);
72599
- var _iterator7 = _createForOfIteratorHelper$c(rows),
72641
+ var _iterator7 = _createForOfIteratorHelper$d(rows),
72600
72642
  _step7;
72601
72643
  try {
72602
72644
  for (_iterator7.s(); !(_step7 = _iterator7.n()).done;) {
@@ -72672,11 +72714,11 @@ var ProviderUseDialog = function ProviderUseDialog(_ref) {
72672
72714
  var summary = function summary(r) {
72673
72715
  var parts = [];
72674
72716
  if (r.widgets) {
72675
- parts.push("".concat(plural$1(r.widgets, "more widget"), " on ").concat(plural$1(r.dashboards, "dashboard")));
72717
+ parts.push("".concat(plural$2(r.widgets, "more widget"), " on ").concat(plural$2(r.dashboards, "dashboard")));
72676
72718
  }
72677
- if (r.bots) parts.push(plural$1(r.bots, "bot"));
72719
+ if (r.bots) parts.push(plural$2(r.bots, "bot"));
72678
72720
  var used = parts.length ? "".concat(model.providerName, " is now used by ").concat(parts.join(" and "), ".") : "";
72679
- var removed = r.removed ? " Removed from ".concat(plural$1(r.removed, "widget"), ".") : "";
72721
+ var removed = r.removed ? " Removed from ".concat(plural$2(r.removed, "widget"), ".") : "";
72680
72722
  return "".concat(used).concat(removed).trim() || "Nothing was changed.";
72681
72723
  };
72682
72724
  return /*#__PURE__*/jsx(Modal, {
@@ -72790,7 +72832,7 @@ var ProviderUseDialog = function ProviderUseDialog(_ref) {
72790
72832
  title: "Cancel",
72791
72833
  onClick: onClose
72792
72834
  }), /*#__PURE__*/jsx(Button, {
72793
- title: changes ? "Save \u2014 ".concat(plural$1(changes, "change")) : "Save — no changes",
72835
+ title: changes ? "Save \u2014 ".concat(plural$2(changes, "change")) : "Save — no changes",
72794
72836
  disabled: !changes || saving,
72795
72837
  onClick: save
72796
72838
  })]
@@ -73685,9 +73727,9 @@ var ProviderDetail = function ProviderDetail(_ref) {
73685
73727
 
73686
73728
  function ownKeys$d(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
73687
73729
  function _objectSpread$d(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$d(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$d(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
73688
- function _createForOfIteratorHelper$b(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$b(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
73689
- function _unsupportedIterableToArray$b(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$b(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$b(r, a) : void 0; } }
73690
- function _arrayLikeToArray$b(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
73730
+ function _createForOfIteratorHelper$c(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$c(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
73731
+ function _unsupportedIterableToArray$c(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$c(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$c(r, a) : void 0; } }
73732
+ function _arrayLikeToArray$c(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
73691
73733
  function isValidWsUrl(url) {
73692
73734
  if (!url) return false;
73693
73735
  try {
@@ -73734,7 +73776,7 @@ function extractCredentialFields(url, headerRows) {
73734
73776
  fields.add(match[1]);
73735
73777
  }
73736
73778
  }
73737
- var _iterator = _createForOfIteratorHelper$b(headerRows),
73779
+ var _iterator = _createForOfIteratorHelper$c(headerRows),
73738
73780
  _step;
73739
73781
  try {
73740
73782
  for (_iterator.s(); !(_step = _iterator.n()).done;) {
@@ -73839,7 +73881,7 @@ var WebSocketProviderForm = function WebSocketProviderForm(_ref) {
73839
73881
  if (!url.trim()) errs.url = "WebSocket URL is required";else if (!isValidWsUrl(url)) errs.url = "URL must start with ws:// or wss://";
73840
73882
 
73841
73883
  // Check required credential fields are filled
73842
- var _iterator2 = _createForOfIteratorHelper$b(credentialFields),
73884
+ var _iterator2 = _createForOfIteratorHelper$c(credentialFields),
73843
73885
  _step2;
73844
73886
  try {
73845
73887
  for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
@@ -73862,7 +73904,7 @@ var WebSocketProviderForm = function WebSocketProviderForm(_ref) {
73862
73904
 
73863
73905
  // Build headers object from rows
73864
73906
  var headers = {};
73865
- var _iterator3 = _createForOfIteratorHelper$b(headerRows),
73907
+ var _iterator3 = _createForOfIteratorHelper$c(headerRows),
73866
73908
  _step3;
73867
73909
  try {
73868
73910
  for (_iterator3.s(); !(_step3 = _iterator3.n()).done;) {
@@ -73931,7 +73973,7 @@ var WebSocketProviderForm = function WebSocketProviderForm(_ref) {
73931
73973
 
73932
73974
  // Build config from current form state (same as handleSave)
73933
73975
  headers = {};
73934
- _iterator4 = _createForOfIteratorHelper$b(headerRows);
73976
+ _iterator4 = _createForOfIteratorHelper$c(headerRows);
73935
73977
  try {
73936
73978
  for (_iterator4.s(); !(_step4 = _iterator4.n()).done;) {
73937
73979
  row = _step4.value;
@@ -74305,7 +74347,7 @@ var STATUS_DOT$1 = {
74305
74347
  connected: "bg-green-400",
74306
74348
  ready: "bg-gray-500"
74307
74349
  };
74308
- var plural = function plural(n, one) {
74350
+ var plural$1 = function plural(n, one) {
74309
74351
  return "".concat(n, " ").concat(one).concat(n === 1 ? "" : "s");
74310
74352
  };
74311
74353
 
@@ -75091,7 +75133,7 @@ var ProvidersSection = function ProvidersSection(_ref) {
75091
75133
  className: "flex flex-row items-center gap-1.5 text-xs text-amber-400",
75092
75134
  children: [/*#__PURE__*/jsx("span", {
75093
75135
  className: "inline-block h-1.5 w-1.5 rounded-full bg-amber-400"
75094
- }), plural(needsSetupCount, "provider"), " need", needsSetupCount === 1 ? "s" : "", " setup"]
75136
+ }), plural$1(needsSetupCount, "provider"), " need", needsSetupCount === 1 ? "s" : "", " setup"]
75095
75137
  }) : null]
75096
75138
  }), /*#__PURE__*/jsxs("div", {
75097
75139
  className: "flex-1 min-h-0 grid grid-cols-3 gap-4",
@@ -75318,9 +75360,9 @@ var AppPage = function AppPage(_ref) {
75318
75360
  });
75319
75361
  };
75320
75362
 
75321
- function _createForOfIteratorHelper$a(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$a(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
75322
- function _unsupportedIterableToArray$a(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$a(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$a(r, a) : void 0; } }
75323
- function _arrayLikeToArray$a(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
75363
+ function _createForOfIteratorHelper$b(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$b(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
75364
+ function _unsupportedIterableToArray$b(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$b(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$b(r, a) : void 0; } }
75365
+ function _arrayLikeToArray$b(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
75324
75366
 
75325
75367
  /** Open a page as a tab, or switch to it if it's already open. */
75326
75368
  function openPageTab(tabs, key) {
@@ -75365,7 +75407,7 @@ function closeTab(tabs, tabId, activeTabId) {
75365
75407
  function restoreTabs(savedIds) {
75366
75408
  var workspaces = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : [];
75367
75409
  var out = [];
75368
- var _iterator = _createForOfIteratorHelper$a(savedIds || []),
75410
+ var _iterator = _createForOfIteratorHelper$b(savedIds || []),
75369
75411
  _step;
75370
75412
  try {
75371
75413
  var _loop = function _loop() {
@@ -75397,9 +75439,9 @@ function restoreTabs(savedIds) {
75397
75439
 
75398
75440
  function ownKeys$b(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
75399
75441
  function _objectSpread$b(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$b(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$b(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
75400
- function _createForOfIteratorHelper$9(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$9(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
75401
- function _unsupportedIterableToArray$9(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$9(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$9(r, a) : void 0; } }
75402
- function _arrayLikeToArray$9(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
75442
+ function _createForOfIteratorHelper$a(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$a(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
75443
+ function _unsupportedIterableToArray$a(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$a(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$a(r, a) : void 0; } }
75444
+ function _arrayLikeToArray$a(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
75403
75445
  /**
75404
75446
  * Apply a bulk-edit pref change set to a workspace.
75405
75447
  *
@@ -75438,7 +75480,7 @@ function applyBulkUserPrefs(workspace, changes) {
75438
75480
  if (!workspace) return workspace;
75439
75481
  if (!Array.isArray(changes) || changes.length === 0) return workspace;
75440
75482
  var byWidget = new Map();
75441
- var _iterator = _createForOfIteratorHelper$9(changes),
75483
+ var _iterator = _createForOfIteratorHelper$a(changes),
75442
75484
  _step;
75443
75485
  try {
75444
75486
  for (_iterator.s(); !(_step = _iterator.n()).done;) {
@@ -75476,7 +75518,7 @@ function applyBulkUserPrefs(workspace, changes) {
75476
75518
  var seen = new WeakSet();
75477
75519
  var _walk = function walk(items) {
75478
75520
  if (!Array.isArray(items)) return;
75479
- var _iterator2 = _createForOfIteratorHelper$9(items),
75521
+ var _iterator2 = _createForOfIteratorHelper$a(items),
75480
75522
  _step2;
75481
75523
  try {
75482
75524
  for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
@@ -75495,7 +75537,7 @@ function applyBulkUserPrefs(workspace, changes) {
75495
75537
  };
75496
75538
  _walk(next.layout);
75497
75539
  if (Array.isArray(next.pages)) {
75498
- var _iterator3 = _createForOfIteratorHelper$9(next.pages),
75540
+ var _iterator3 = _createForOfIteratorHelper$a(next.pages),
75499
75541
  _step3;
75500
75542
  try {
75501
75543
  for (_iterator3.s(); !(_step3 = _iterator3.n()).done;) {
@@ -75548,9 +75590,9 @@ function isSavedWorkspace(savedWorkspaces, id) {
75548
75590
  });
75549
75591
  }
75550
75592
 
75551
- function _createForOfIteratorHelper$8(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$8(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
75552
- function _unsupportedIterableToArray$8(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$8(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$8(r, a) : void 0; } }
75553
- function _arrayLikeToArray$8(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
75593
+ function _createForOfIteratorHelper$9(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$9(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
75594
+ function _unsupportedIterableToArray$9(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$9(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$9(r, a) : void 0; } }
75595
+ function _arrayLikeToArray$9(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
75554
75596
  function ownKeys$a(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
75555
75597
  function _objectSpread$a(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$a(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$a(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
75556
75598
  /**
@@ -75583,7 +75625,7 @@ function syncLayoutRefs(ws, _ref) {
75583
75625
  });
75584
75626
  }
75585
75627
  if (!Array.isArray(ws.pages)) return;
75586
- var _iterator = _createForOfIteratorHelper$8(ws.pages),
75628
+ var _iterator = _createForOfIteratorHelper$9(ws.pages),
75587
75629
  _step;
75588
75630
  try {
75589
75631
  for (_iterator.s(); !(_step = _iterator.n()).done;) {
@@ -75605,6 +75647,307 @@ function syncLayoutRefs(ws, _ref) {
75605
75647
  }
75606
75648
  }
75607
75649
 
75650
+ var _excluded$1 = ["updatedAt", "lastModified", "version"];
75651
+ function _createForOfIteratorHelper$8(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$8(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
75652
+ function _unsupportedIterableToArray$8(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$8(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$8(r, a) : void 0; } }
75653
+ function _arrayLikeToArray$8(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
75654
+
75655
+ /**
75656
+ * What Cancel will discard (create-entry phase 1e, CRE-006 AC7).
75657
+ *
75658
+ * Compares the copy of the dashboard taken on entering edit mode with the
75659
+ * staged one, plus bot edits staged in the editor, and returns plain lines
75660
+ * for the Cancel confirmation:
75661
+ *
75662
+ * { discarded: ["Added Weather", ...], kept: ["Widgets you installed …"] }
75663
+ *
75664
+ * Paged dashboards are compared page by page (the top-level layout only
75665
+ * mirrors the visible page). Anything that differs but isn't recognised is
75666
+ * summed up as "Other layout changes" so nothing is silently left out.
75667
+ */
75668
+
75669
+ var MAX_LINES = 8;
75670
+ var plural = function plural(n, one, many) {
75671
+ return n === 1 ? "a ".concat(one) : "".concat(n, " ").concat(many);
75672
+ };
75673
+ var same = function same(a, b) {
75674
+ return JSON.stringify(a !== null && a !== void 0 ? a : null) === JSON.stringify(b !== null && b !== void 0 ? b : null);
75675
+ };
75676
+
75677
+ /** [{ key, layout }] — each place widgets live on the dashboard. */
75678
+ function layoutsOf(ws) {
75679
+ var pages = Array.isArray(ws === null || ws === void 0 ? void 0 : ws.pages) ? ws.pages : [];
75680
+ var out = pages.length ? pages.map(function (p) {
75681
+ return {
75682
+ key: "page:".concat(p.id),
75683
+ layout: p.layout || []
75684
+ };
75685
+ }) : [{
75686
+ key: "main",
75687
+ layout: (ws === null || ws === void 0 ? void 0 : ws.layout) || []
75688
+ }];
75689
+ out.push({
75690
+ key: "sidebar",
75691
+ layout: (ws === null || ws === void 0 ? void 0 : ws.sidebarLayout) || []
75692
+ });
75693
+ return out;
75694
+ }
75695
+
75696
+ /** uuid → { widget, where } across every layout of the dashboard. */
75697
+ function placedWidgets(ws) {
75698
+ var map = new Map();
75699
+ var _iterator = _createForOfIteratorHelper$8(layoutsOf(ws)),
75700
+ _step;
75701
+ try {
75702
+ for (_iterator.s(); !(_step = _iterator.n()).done;) {
75703
+ var _step$value = _step.value,
75704
+ key = _step$value.key,
75705
+ layout = _step$value.layout;
75706
+ var _iterator2 = _createForOfIteratorHelper$8(widgetsOf(layout)),
75707
+ _step2;
75708
+ try {
75709
+ for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
75710
+ var _w$uuid;
75711
+ var w = _step2.value;
75712
+ var cell = findWidgetCell(layout, w.id);
75713
+ map.set(String((_w$uuid = w.uuid) !== null && _w$uuid !== void 0 ? _w$uuid : w.id), {
75714
+ widget: w,
75715
+ where: cell ? "".concat(key, ":").concat(cell.gridItemId, ":").concat(cell.cellNumber) : key
75716
+ });
75717
+ }
75718
+ } catch (err) {
75719
+ _iterator2.e(err);
75720
+ } finally {
75721
+ _iterator2.f();
75722
+ }
75723
+ }
75724
+ } catch (err) {
75725
+ _iterator.e(err);
75726
+ } finally {
75727
+ _iterator.f();
75728
+ }
75729
+ return map;
75730
+ }
75731
+
75732
+ /** "key:gridId" → { rows, cols } for every grid. */
75733
+ function gridsOf(ws) {
75734
+ var map = new Map();
75735
+ var _iterator3 = _createForOfIteratorHelper$8(layoutsOf(ws)),
75736
+ _step3;
75737
+ try {
75738
+ for (_iterator3.s(); !(_step3 = _iterator3.n()).done;) {
75739
+ var _step3$value = _step3.value,
75740
+ key = _step3$value.key,
75741
+ layout = _step3$value.layout;
75742
+ var _iterator4 = _createForOfIteratorHelper$8(layout),
75743
+ _step4;
75744
+ try {
75745
+ for (_iterator4.s(); !(_step4 = _iterator4.n()).done;) {
75746
+ var item = _step4.value;
75747
+ if (item && item.grid) {
75748
+ map.set("".concat(key, ":").concat(item.id), {
75749
+ rows: Number(item.grid.rows) || 0,
75750
+ cols: Number(item.grid.cols) || 0
75751
+ });
75752
+ }
75753
+ }
75754
+ } catch (err) {
75755
+ _iterator4.e(err);
75756
+ } finally {
75757
+ _iterator4.f();
75758
+ }
75759
+ }
75760
+ } catch (err) {
75761
+ _iterator3.e(err);
75762
+ } finally {
75763
+ _iterator3.f();
75764
+ }
75765
+ return map;
75766
+ }
75767
+ function gridLines(before, after) {
75768
+ var lines = [];
75769
+ var _iterator5 = _createForOfIteratorHelper$8(before),
75770
+ _step5;
75771
+ try {
75772
+ for (_iterator5.s(); !(_step5 = _iterator5.n()).done;) {
75773
+ var _step5$value = _slicedToArray(_step5.value, 2),
75774
+ key = _step5$value[0],
75775
+ b = _step5$value[1];
75776
+ var a = after.get(key);
75777
+ if (!a) continue;
75778
+ var dr = a.rows - b.rows;
75779
+ var dc = a.cols - b.cols;
75780
+ if (dr > 0) lines.push("Added ".concat(plural(dr, "row", "rows")));
75781
+ if (dr < 0) lines.push("Removed ".concat(plural(-dr, "row", "rows")));
75782
+ if (dc > 0) lines.push("Added ".concat(plural(dc, "column", "columns")));
75783
+ if (dc < 0) lines.push("Removed ".concat(plural(-dc, "column", "columns")));
75784
+ }
75785
+ } catch (err) {
75786
+ _iterator5.e(err);
75787
+ } finally {
75788
+ _iterator5.f();
75789
+ }
75790
+ return lines;
75791
+ }
75792
+ var SETTINGS = ["userPrefs", "listeners", "providers"];
75793
+ function describeEditChanges(_ref) {
75794
+ var original = _ref.original,
75795
+ current = _ref.current,
75796
+ _ref$pendingBotEdits = _ref.pendingBotEdits,
75797
+ pendingBotEdits = _ref$pendingBotEdits === void 0 ? {} : _ref$pendingBotEdits,
75798
+ _ref$nameOf = _ref.nameOf,
75799
+ nameOf = _ref$nameOf === void 0 ? function (w) {
75800
+ return w.component;
75801
+ } : _ref$nameOf;
75802
+ var discarded = [];
75803
+ var kept = [];
75804
+ if (!original || !current) return {
75805
+ discarded: discarded,
75806
+ kept: kept
75807
+ };
75808
+ if ((current.name || "") !== (original.name || "")) {
75809
+ discarded.push("Renamed the dashboard to \"".concat(current.name, "\""));
75810
+ }
75811
+ if (!same(current.themeKey, original.themeKey)) {
75812
+ discarded.push("Changed the theme");
75813
+ }
75814
+ if (!same(current.menuId, original.menuId)) {
75815
+ discarded.push("Moved it to another folder");
75816
+ }
75817
+ var pagesBefore = new Map((original.pages || []).map(function (p) {
75818
+ return [p.id, p];
75819
+ }));
75820
+ var pagesAfter = new Map((current.pages || []).map(function (p) {
75821
+ return [p.id, p];
75822
+ }));
75823
+ var _iterator6 = _createForOfIteratorHelper$8(pagesAfter),
75824
+ _step6;
75825
+ try {
75826
+ for (_iterator6.s(); !(_step6 = _iterator6.n()).done;) {
75827
+ var _step6$value = _slicedToArray(_step6.value, 2),
75828
+ id = _step6$value[0],
75829
+ p = _step6$value[1];
75830
+ if (!pagesBefore.has(id)) discarded.push("Added page \"".concat(p.name, "\""));
75831
+ }
75832
+ } catch (err) {
75833
+ _iterator6.e(err);
75834
+ } finally {
75835
+ _iterator6.f();
75836
+ }
75837
+ var _iterator7 = _createForOfIteratorHelper$8(pagesBefore),
75838
+ _step7;
75839
+ try {
75840
+ for (_iterator7.s(); !(_step7 = _iterator7.n()).done;) {
75841
+ var _step7$value = _slicedToArray(_step7.value, 2),
75842
+ _id = _step7$value[0],
75843
+ _p = _step7$value[1];
75844
+ if (!pagesAfter.has(_id)) discarded.push("Removed page \"".concat(_p.name, "\""));
75845
+ }
75846
+ } catch (err) {
75847
+ _iterator7.e(err);
75848
+ } finally {
75849
+ _iterator7.f();
75850
+ }
75851
+ discarded.push.apply(discarded, _toConsumableArray(gridLines(gridsOf(original), gridsOf(current))));
75852
+ var before = placedWidgets(original);
75853
+ var after = placedWidgets(current);
75854
+ var added = _toConsumableArray(after.keys()).filter(function (k) {
75855
+ return !before.has(k);
75856
+ });
75857
+ var removed = _toConsumableArray(before.keys()).filter(function (k) {
75858
+ return !after.has(k);
75859
+ });
75860
+ var stillThere = _toConsumableArray(after.keys()).filter(function (k) {
75861
+ return before.has(k);
75862
+ });
75863
+ added.forEach(function (k) {
75864
+ return discarded.push("Added ".concat(nameOf(after.get(k).widget)));
75865
+ });
75866
+ removed.forEach(function (k) {
75867
+ return discarded.push("Removed ".concat(nameOf(before.get(k).widget)));
75868
+ });
75869
+ stillThere.forEach(function (k) {
75870
+ if (before.get(k).where !== after.get(k).where) {
75871
+ discarded.push("Moved ".concat(nameOf(after.get(k).widget)));
75872
+ }
75873
+ });
75874
+ stillThere.forEach(function (k) {
75875
+ var a = after.get(k).widget;
75876
+ var b = before.get(k).widget;
75877
+ if (SETTINGS.some(function (f) {
75878
+ return !same(a[f], b[f]);
75879
+ })) {
75880
+ discarded.push("Changed ".concat(nameOf(a), "'s settings"));
75881
+ }
75882
+ });
75883
+ for (var _i = 0, _Object$values = Object.values(pendingBotEdits || {}); _i < _Object$values.length; _i++) {
75884
+ var bot = _Object$values[_i];
75885
+ discarded.push("Changes to the bot \"".concat(bot.name || bot.id, "\""));
75886
+ }
75887
+
75888
+ // Nothing recognised, but the dashboard differs: say so.
75889
+ var workspaceLines = discarded.length - Object.keys(pendingBotEdits || {}).length;
75890
+ if (workspaceLines === 0 && !same(stripVolatile(current), stripVolatile(original))) {
75891
+ discarded.push("Other layout changes");
75892
+ }
75893
+ if (added.length) {
75894
+ kept.push("Widgets you installed stay installed — only their place on this dashboard is undone.");
75895
+ }
75896
+ if (discarded.length > MAX_LINES + 1) {
75897
+ var extra = discarded.length - MAX_LINES;
75898
+ discarded.splice(MAX_LINES, extra, "\u2026and ".concat(extra, " more"));
75899
+ }
75900
+ return {
75901
+ discarded: discarded,
75902
+ kept: kept
75903
+ };
75904
+ }
75905
+
75906
+ /** Fields that change without a user edit (timestamps). */
75907
+ function stripVolatile(ws) {
75908
+ // eslint-disable-next-line no-unused-vars
75909
+ var _ref2 = ws || {};
75910
+ _ref2.updatedAt;
75911
+ _ref2.lastModified;
75912
+ _ref2.version;
75913
+ var rest = _objectWithoutProperties(_ref2, _excluded$1);
75914
+ return rest;
75915
+ }
75916
+
75917
+ var DiscardList = function DiscardList(_ref) {
75918
+ var changes = _ref.changes;
75919
+ var _useContext = useContext(ThemeContext),
75920
+ _useContext$currentTh = _useContext.currentTheme,
75921
+ currentTheme = _useContext$currentTh === void 0 ? {} : _useContext$currentTh;
75922
+ var text = currentTheme["text-primary-light"] || "";
75923
+ var muted = currentTheme["text-primary-medium"] || "";
75924
+ return /*#__PURE__*/jsxs("div", {
75925
+ className: "flex flex-col gap-3 text-sm",
75926
+ children: [/*#__PURE__*/jsx("span", {
75927
+ className: text,
75928
+ children: "These changes haven't been saved:"
75929
+ }), /*#__PURE__*/jsx("ul", {
75930
+ "aria-label": "Changes that will be discarded",
75931
+ className: "flex flex-col gap-1 pl-4 list-disc ".concat(text),
75932
+ children: changes.discarded.map(function (line, i) {
75933
+ return /*#__PURE__*/jsx("li", {
75934
+ children: line
75935
+ }, i);
75936
+ })
75937
+ }), changes.kept.length > 0 && /*#__PURE__*/jsxs("div", {
75938
+ className: "flex flex-col gap-1",
75939
+ children: [/*#__PURE__*/jsx(SectionLabel, {
75940
+ children: "Kept"
75941
+ }), changes.kept.map(function (line, i) {
75942
+ return /*#__PURE__*/jsx("span", {
75943
+ className: muted,
75944
+ children: line
75945
+ }, i);
75946
+ })]
75947
+ })]
75948
+ });
75949
+ };
75950
+
75608
75951
  function ownKeys$9(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
75609
75952
  function _objectSpread$9(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$9(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$9(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
75610
75953
  var DashboardStage = function DashboardStage(_ref) {
@@ -77586,6 +77929,21 @@ var DashboardStageInner = function DashboardStageInner(_ref3) {
77586
77929
  function handleSaveMenuItemError(e, message) {
77587
77930
  }
77588
77931
 
77932
+ // What the Discard prompt will throw away (phase 1e). Computed only while
77933
+ // the prompt is open.
77934
+ var cancelChanges = useMemo(function () {
77935
+ return pendingNavigation ? describeEditChanges({
77936
+ original: originalWorkspaceRef.current,
77937
+ current: workspaceSelected,
77938
+ pendingBotEdits: pendingBotEdits,
77939
+ nameOf: function nameOf(w) {
77940
+ return pickWidgetDisplayName(w, ComponentManager.config(w.component, w));
77941
+ }
77942
+ }) : null;
77943
+ },
77944
+ // eslint-disable-next-line react-hooks/exhaustive-deps
77945
+ [pendingNavigation]);
77946
+
77589
77947
  // Internal: the unguarded cancel-edit operation. Called both from
77590
77948
  // the direct Cancel button (when nothing is dirty) and from the
77591
77949
  // confirmation modal's Discard action.
@@ -78278,6 +78636,13 @@ var DashboardStageInner = function DashboardStageInner(_ref3) {
78278
78636
  }));
78279
78637
  setEditSelection(null);
78280
78638
  },
78639
+ onMoveWidget: function onMoveWidget(on) {
78640
+ return setEditSelection(function (sel) {
78641
+ return (sel === null || sel === void 0 ? void 0 : sel.kind) === "widget" ? _objectSpread$9(_objectSpread$9({}, sel), {}, {
78642
+ moving: on
78643
+ }) : sel;
78644
+ });
78645
+ },
78281
78646
  onAskAi: function onAskAi() {
78282
78647
  if ((editSelection === null || editSelection === void 0 ? void 0 : editSelection.kind) === "cell") {
78283
78648
  window.dispatchEvent(new CustomEvent("dash:open-widget-builder", {
@@ -78527,7 +78892,12 @@ var DashboardStageInner = function DashboardStageInner(_ref3) {
78527
78892
  if (!open) setPendingNavigation(null);
78528
78893
  },
78529
78894
  title: "Discard unsaved changes?",
78530
- message: (pendingNavigation === null || pendingNavigation === void 0 ? void 0 : pendingNavigation.kind) === "cancel-edit" ? "You have edits that haven't been saved. Discard them and exit edit mode?" : "You have edits that haven't been saved. Discard them and leave this dashboard?",
78895
+ message: (pendingNavigation === null || pendingNavigation === void 0 ? void 0 : pendingNavigation.kind) === "cancel-edit" ? "You have edits that haven't been saved. Discard them and exit edit mode?" : "You have edits that haven't been saved. Discard them and leave this dashboard?"
78896
+ // Phase 1e (CRE-006 AC7): list what will be discarded and kept.
78897
+ ,
78898
+ children: cancelChanges && cancelChanges.discarded.length > 0 ? /*#__PURE__*/jsx(DiscardList, {
78899
+ changes: cancelChanges
78900
+ }) : null,
78531
78901
  confirmLabel: "Discard changes",
78532
78902
  cancelLabel: "Keep editing",
78533
78903
  variant: "danger",