var e = "lenso.console-module.v1", t = (e) => typeof e == "string" && e.trim().length > 0, n = (e) => typeof e == "string" && e.startsWith("/") && !e.includes("\\") && !e.includes("?") && !e.includes("#") && !e.split("/").some((e) => e === ".."), r = (e) => e === "runtime" || e === "operations" || e === "data" || e === "configuration", i = (e, i, a) => {
	if (!e || typeof e != "object" || !t(e.id) || !t(e.label) || !r(e.area) || i.has(e.id)) {
		let t = e && typeof e == "object" && "id" in e ? String(e.id) : "<unknown>";
		throw TypeError(`Console surface id is empty or duplicated: ${t}`);
	}
	if (!n(e.path) || a.has(e.path)) throw TypeError(`Console surface path is invalid or duplicated: ${e.path}`);
	i.add(e.id), a.add(e.path);
}, a = (e) => {
	if (!e || typeof e != "object") throw TypeError("Console Module manifest is required");
	if (e.protocol !== "lenso.console-module.v1") throw TypeError(`Unsupported Console Module protocol: ${e.protocol}`);
	if (!t(e.moduleId)) throw TypeError("Console Module id must be non-empty");
	if (!t(e.hostApi) || !t(e.consoleUi)) throw TypeError("Console Module API and UI versions are required");
	if (!Array.isArray(e.surfaces) || e.surfaces.length === 0) throw TypeError("Console Module must declare at least one surface");
	let n = /* @__PURE__ */ new Set(), r = /* @__PURE__ */ new Set();
	for (let t of e.surfaces) i(t, n, r);
}, o = (e) => (a(e), e), s = () => {
	let e = globalThis.__LENSO_CONSOLE_REACT_RUNTIME__;
	if (!e) throw Error("Lenso Console React runtime is not initialized");
	return e;
}, c = () => {
	let e = globalThis.__LENSO_CONSOLE_REACT_JSX_RUNTIME__;
	if (!e) throw Error("Lenso Console React JSX runtime is not initialized");
	return e;
};
new Proxy({}, { get: (e, t) => s().Children[t] });
var { Component: l } = s(), u = Symbol.for("react.fragment"), { PureComponent: d } = s(), f = (...e) => s().createContext(...e), p = (...e) => s().createElement(...e), m = (...e) => s().useCallback(...e), h = (...e) => s().useContext(...e), g = (...e) => s().useEffect(...e), _ = (...e) => s().useMemo(...e), v = (...e) => s().useState(...e), y = (...e) => c().jsx(...e), b = (...e) => c().jsxs(...e);
new Proxy({}, { get: (e, t) => s()[t] });
//#endregion
//#region ../../node_modules/.pnpm/@stylexjs+stylex@0.19.0/node_modules/@stylexjs/stylex/lib/es/stylex.mjs
var x = {}, S;
function C() {
	if (S) return x;
	S = 1, Object.defineProperty(x, "__esModule", { value: !0 }), x.styleq = void 0;
	var e = /* @__PURE__ */ new WeakMap(), t = "$$css";
	function n(n) {
		var r, i, a;
		return n != null && (r = n.disableCache === !0, i = n.disableMix === !0, a = n.transform), function() {
			for (var n = [], o = "", s = null, c = "", l = r ? null : e, u = Array(arguments.length), d = 0; d < arguments.length; d++) u[d] = arguments[d];
			for (; u.length > 0;) {
				var f = u.pop();
				if (!(f == null || f === !1)) {
					if (Array.isArray(f)) {
						for (var p = 0; p < f.length; p++) u.push(f[p]);
						continue;
					}
					var m = a == null ? f : a(f);
					if (m.$$css != null) {
						var h = "";
						if (l != null && l.has(m)) {
							var g = l.get(m);
							g != null && (h = g[0], c = g[2], n.push.apply(n, g[1]), l = g[3]);
						} else {
							var _ = [];
							for (var v in m) {
								var y = m[v];
								if (v === t) {
									var b = m[v];
									b !== !0 && (c = c ? b + "; " + c : b);
									continue;
								}
								typeof y == "string" || y === null ? n.includes(v) || (n.push(v), l != null && _.push(v), typeof y == "string" && (h += h ? " " + y : y)) : console.error(`styleq: ${v} typeof ${String(y)} is not "string" or "null".`);
							}
							if (l != null) {
								var x = /* @__PURE__ */ new WeakMap();
								l.set(m, [
									h,
									_,
									c,
									x
								]), l = x;
							}
						}
						h && (o = o ? h + " " + o : h);
					} else if (i) s ??= {}, s = Object.assign({}, m, s);
					else {
						var S = null;
						for (var C in m) {
							var w = m[C];
							w !== void 0 && (n.includes(C) || (w != null && (s ??= {}, S ??= {}, S[C] = w), n.push(C), l = null));
						}
						S != null && (s = Object.assign(S, s));
					}
				}
			}
			return [
				o,
				s,
				c
			];
		};
	}
	var r = x.styleq = n();
	return r.factory = n, x;
}
var w = /*@__PURE__*/ C();
function T(...e) {
	let [t, n, r] = w.styleq(e), i = {};
	return t != null && t !== "" && (i.className = t), n != null && Object.keys(n).length > 0 && (i.style = n), r != null && r !== "" && (i["data-style-src"] = r), i;
}
Object.freeze({}), f({
	locale: "en",
	preference: "system",
	setPreference: () => null
});
var E = {
	surfaceRoot: {
		kZKoxP: "x5yr21d",
		kAzted: "x2lwn1j",
		k7Eaqz: "xeuugli",
		$$css: !0
	},
	page: {
		kWkggS: "xdt2kll",
		kMwMTN: "x1hptmox",
		k1xSpc: "x1lliihq",
		kZKoxP: "x5yr21d",
		kAzted: "x1us19tq",
		kVQacm: "xysyzu8",
		$$css: !0
	},
	pageHeader: {
		kGNEyG: "x1cy8zhl",
		kWkggS: "xdt2kll",
		kL6WhQ: "x11ra1e",
		kfdmCh: "x1q0q8m5",
		kt9PQ7: "xso031l",
		k1xSpc: "x78zum5",
		kOIVth: "xfrlg7z",
		kAzted: "x1edz59j",
		kGO01o: "x1ykpatu",
		kLKAdn: "xletpwz",
		kg3NbH: "xtql9rp",
		kzqmXN: "xh8yej3",
		krbiMz: "x1g3ag0e",
		$$css: !0
	},
	pageHeading: {
		k7Eaqz: "xeuugli",
		$$css: !0
	},
	pageEyebrow: {
		kMwMTN: "x1by9co",
		kGuDYH: "xvwhms9",
		k63SB2: "x1s688f",
		kb6lSQ: "x7447wj",
		kLWn49: "x37zpob",
		k1K539: "x1ty9z65",
		keoZOQ: "xdj266r",
		kP9fke: "xtvhhri",
		$$css: !0
	},
	pageTitle: {
		kMwMTN: "x1hptmox",
		kGuDYH: "x1pvqxga",
		k63SB2: "x1s688f",
		kb6lSQ: "xjat59b",
		kLWn49: "xcgk4ki",
		kogj98: "x1ghz6dp",
		$$css: !0
	},
	pageDescription: {
		kMwMTN: "x1by9co",
		kGuDYH: "x4z9k3i",
		kLWn49: "x1fc57z9",
		k1K539: "xat24cr",
		keoZOQ: "x1gslohp",
		ks0D6T: "xapjn7j",
		$$css: !0
	},
	pageActions: {
		kGNEyG: "x6s0dn4",
		k1xSpc: "x78zum5",
		kwnvtZ: "x1a02dak",
		kOIVth: "x17d4w8g",
		keTefX: "xvc5jky",
		kTKWF: "x16hppn0",
		$$css: !0
	},
	pageBody: {
		kAzted: "x2lwn1j",
		kVQacm: "xb3r6kr",
		kGO01o: "x1sgudl8",
		kg3NbH: "xtql9rp",
		kzqmXN: "xh8yej3",
		$$css: !0
	},
	pageFilters: {
		kGNEyG: "x6s0dn4",
		k1xSpc: "x78zum5",
		kOIVth: "x1bxt2l2",
		kZKoxP: "xsdox4t",
		$$css: !0
	},
	pageNoData: {
		kMwMTN: "x1by9co",
		kGuDYH: "xfifm61",
		k8WAf4: "x1ayu1wy",
		$$css: !0
	}
}, D = {
	button: {
		kGNEyG: "x6s0dn4",
		kWkggS: "x11q31d3",
		kVAM5u: "x1c8z64c",
		kaIpWk: "x16o2al3",
		ksu8eU: "x1y0btm7",
		kMzoRj: "xmkeg23",
		kGVxlE: "xit2rpj",
		kMwMTN: "x1hptmox",
		k1xSpc: "x3nfvp2",
		kMv6JI: "xjb2p0i",
		kGuDYH: "xfifm61",
		k63SB2: "xk50ysn",
		kOIVth: "xg4yfn",
		kjj79g: "xl56j7k",
		kLWn49: "xo5v014",
		kAzted: "x18mun1o",
		kg3NbH: "x1awh872",
		kIyJzY: "xgdialr",
		k1ekBW: "x1eaenvl",
		kAMwcw: "xwji4o3",
		khDVqt: "xuxw1ft",
		kDKVdO: "xo9hfff",
		kWCcOm: "x1t5pwa4",
		kZs9gx: "x1qao4oa",
		kiEn40: "x13iak60",
		k7shQP: "x9v5kkp",
		kPJHz1: "x784prv",
		kIa11j: "x1pfq648",
		$$css: !0
	},
	buttonMd: {
		kGuDYH: "x4z9k3i",
		kAzted: "xxjnprz",
		kg3NbH: "xaope02",
		$$css: !0
	},
	buttonPrimary: {
		kWkggS: "x1hie3xq",
		kVAM5u: "x1sl5o4w",
		kMwMTN: "x1j9fuk9",
		kIa11j: "xrhzia",
		kLmhY5: "x1ld8pzy",
		$$css: !0
	},
	buttonGhost: {
		kWkggS: "xjbqb8w",
		kVAM5u: "x9r1u3d",
		kGVxlE: "x1gnnqk1",
		kMwMTN: "x1us42qq",
		kIa11j: "xjylsjg",
		kf7JFr: "x4mcwgy",
		$$css: !0
	},
	buttonDanger: {
		kWkggS: "x1g89vfo",
		kVAM5u: "xwohm5h",
		kMwMTN: "xt9bkd2",
		$$css: !0
	},
	iconButton: {
		k7Eaqz: "x1c0o5t8",
		kg3NbH: "xnjsko4",
		kzqmXN: "x1ullq96",
		$$css: !0
	},
	iconButtonMd: {
		k7Eaqz: "x1qt9h6g",
		kzqmXN: "x7nxej4",
		$$css: !0
	},
	badge: {
		kGNEyG: "x6s0dn4",
		kWkggS: "xswa4b9",
		kVAM5u: "x63xwg4",
		kaIpWk: "x16o2al3",
		ksu8eU: "x1y0btm7",
		kMzoRj: "xmkeg23",
		kMwMTN: "xt4quad",
		k1xSpc: "x3nfvp2",
		kGuDYH: "x1j6dyjg",
		k63SB2: "xk50ysn",
		kOIVth: "xg4yfn",
		kLWn49: "x1u7k74",
		kAzted: "xe0957l",
		k8WAf4: "xj8oexa",
		kg3NbH: "xlkn9b3",
		$$css: !0
	},
	badgeInfo: {
		kWkggS: "x1ykdjz6",
		kVAM5u: "x1g3n0ep",
		kMwMTN: "x1wfwos1",
		$$css: !0
	},
	badgeSuccess: {
		kWkggS: "xi9to31",
		kVAM5u: "x13ihl7r",
		kMwMTN: "x83xlqj",
		$$css: !0
	},
	badgeWarning: {
		kWkggS: "xwrobfh",
		kVAM5u: "x1mf92vl",
		kMwMTN: "xewiark",
		$$css: !0
	},
	badgeDanger: {
		kWkggS: "x1g89vfo",
		kVAM5u: "xwohm5h",
		kMwMTN: "xt9bkd2",
		$$css: !0
	},
	inlineStatus: {
		kGNEyG: "x6s0dn4",
		kMwMTN: "x1us42qq",
		k1C7PZ: "xfex06f",
		k1xSpc: "xwz0xwf",
		kGuDYH: "x1j6dyjg",
		kumcoG: "xtl5sm4",
		kLWn49: "x1d3mw78",
		kAzted: "x1hshjfz",
		khDVqt: "xuxw1ft",
		$$css: !0
	},
	inlineStatusTop: {
		kGNEyG: "x7a106z",
		$$css: !0
	},
	inlineStatusDot: {
		kWkggS: "xcidspv",
		kaIpWk: "xb8qbg4",
		kUk6DE: "x1okw0bk",
		kZKoxP: "xols6we",
		kzqmXN: "x1v4s8kt",
		$$css: !0
	},
	inlineStatusDotTop: {
		keoZOQ: "x1ok221b",
		$$css: !0
	},
	inlineStatusDotInfo: {
		kWkggS: "xvphqha",
		$$css: !0
	},
	inlineStatusDotSuccess: {
		kWkggS: "x15vvx5m",
		$$css: !0
	},
	inlineStatusDotWarning: {
		kWkggS: "xerfsn4",
		$$css: !0
	},
	inlineStatusDotDanger: {
		kWkggS: "x19y0t9e",
		$$css: !0
	},
	inlineStatusLabel: {
		k7Eaqz: "xeuugli",
		kVQacm: "xb3r6kr",
		kg5iWk: "xlyipyv",
		$$css: !0
	},
	iconSlot: {
		kGNEyG: "x6s0dn4",
		k1xSpc: "xwz0xwf",
		kUk6DE: "xvyo3e",
		kZKoxP: "xlup9mm",
		kjj79g: "xl56j7k",
		kzqmXN: "x1kky2od",
		$$css: !0
	},
	iconSlot12: {
		kCS8Yb: "x1ptkvgd",
		kZKoxP: "x1kpxq89",
		kzqmXN: "xsmyaan",
		$$css: !0
	},
	iconSlot20: {
		kCS8Yb: "x1wkpsv1",
		kZKoxP: "x1qx5ct2",
		kzqmXN: "xw4jnvo",
		$$css: !0
	},
	filterControl: {
		kGNEyG: "x6s0dn4",
		kWkggS: "x11q31d3",
		kVAM5u: "xuafy4m",
		kaIpWk: "x16o2al3",
		ksu8eU: "x1y0btm7",
		kMzoRj: "xmkeg23",
		kMwMTN: "x1us42qq",
		k1xSpc: "x3nfvp2",
		kMv6JI: "xjb2p0i",
		kGuDYH: "x1j6dyjg",
		k63SB2: "xk50ysn",
		kOIVth: "x1bxt2l2",
		kZKoxP: "xgh3c6q",
		kLWn49: "x1d3mw78",
		kAzted: "x18mun1o",
		kg3NbH: "x1awh872",
		khDVqt: "xuxw1ft",
		kIa11j: "x1pfq648",
		kf7JFr: "x4mcwgy",
		kZs9gx: "x1qao4oa",
		kiEn40: "x13iak60",
		k7shQP: "x9v5kkp",
		kPJHz1: "x784prv",
		$$css: !0
	},
	filterControlLabel: {
		kVQacm: "xb3r6kr",
		kg5iWk: "xlyipyv",
		$$css: !0
	},
	filterSelectRoot: {
		k1xSpc: "x3nfvp2",
		kZKoxP: "xgh3c6q",
		kAzted: "x18mun1o",
		k7Eaqz: "xeuugli",
		kVAEAm: "x1n2onr6",
		$$css: !0
	},
	filterSelect: {
		kysU6D: "xjyslct",
		kWkggS: "x11q31d3",
		kVAM5u: "xuafy4m",
		kaIpWk: "x16o2al3",
		ksu8eU: "x1y0btm7",
		kMzoRj: "xmkeg23",
		kMwMTN: "x1us42qq",
		kMv6JI: "xjb2p0i",
		kGuDYH: "x1j6dyjg",
		k63SB2: "xk50ysn",
		kZKoxP: "xgh3c6q",
		kLWn49: "x1d3mw78",
		kAzted: "x18mun1o",
		k7Eaqz: "xeuugli",
		k8WAf4: "xt970qd",
		kwRFfy: "xziim83",
		kZCmMZ: "xe2zdcy",
		kzqmXN: "xh8yej3",
		khDVqt: "xuxw1ft",
		kIa11j: "x1pfq648",
		kf7JFr: "x4mcwgy",
		kZs9gx: "x1qao4oa",
		kiEn40: "x13iak60",
		k7shQP: "x9v5kkp",
		kPJHz1: "x784prv",
		$$css: !0
	},
	filterSelectIcon: {
		kMwMTN: "x1by9co",
		kfzvcC: "x47corl",
		kVAEAm: "x10l6tqk",
		kCIrl2: "x19up5dg",
		k87sOh: "xfr5jun",
		$$css: !0
	}
}, O = {
	paneHeader: {
		kGNEyG: "x6s0dn4",
		k1xSpc: "x78zum5",
		kOIVth: "x1bxt2l2",
		kZKoxP: "xql93kk",
		kjj79g: "x1qughib",
		kAzted: "x7nmtmp",
		kVQacm: "xb3r6kr",
		kg3NbH: "x1awh872",
		khDVqt: "xuxw1ft",
		$$css: !0
	},
	paneHeaderTitle: {
		kMwMTN: "x1hptmox",
		kGuDYH: "x4z9k3i",
		k63SB2: "xk50ysn",
		kLWn49: "xuy8w9f",
		kVQacm: "xb3r6kr",
		kg5iWk: "xlyipyv",
		$$css: !0
	},
	paneHeaderMeta: {
		kMwMTN: "x1by9co",
		kUk6DE: "x1okw0bk",
		kGuDYH: "x1k6wstc",
		kLWn49: "x1xxsxie",
		$$css: !0
	},
	surfaceGroupLabel: {
		kGNEyG: "x6s0dn4",
		kMwMTN: "x1by9co",
		k1xSpc: "x78zum5",
		kOIVth: "x17d4w8g",
		kZKoxP: "x10w6t97",
		kAzted: "x21xpn4",
		kVQacm: "xb3r6kr",
		k8WAf4: "xt970qd",
		kwRFfy: "xf159sx",
		kZCmMZ: "xe2zdcy",
		$$css: !0
	},
	surfaceGroupLabelText: {
		kGuDYH: "x1k6wstc",
		k63SB2: "x1s688f",
		kb6lSQ: "xcheg63",
		kLWn49: "x1xxsxie",
		kVQacm: "xb3r6kr",
		kg5iWk: "xlyipyv",
		khDVqt: "xuxw1ft",
		$$css: !0
	},
	tableHeader: {
		kGNEyG: "x6s0dn4",
		kMwMTN: "x1by9co",
		k1xSpc: "xrvj5dj",
		kGuDYH: "x1k6wstc",
		k63SB2: "xk50ysn",
		kumcoG: "x1rz0015",
		kZKoxP: "xk4nwmm",
		kLWn49: "x1xxsxie",
		kAzted: "xmmxyt",
		k7Eaqz: "x1kyrz78",
		khDVqt: "xuxw1ft",
		$$css: !0
	},
	tableHeaderProvider: {
		kumcoG: "x1lzu5mx",
		$$css: !0
	},
	tableHeaderRuntime: {
		kumcoG: "x66dt14",
		k7Eaqz: "x1wsf7c7",
		$$css: !0
	},
	tableHeaderCell: {
		k7Eaqz: "xeuugli",
		kVQacm: "xb3r6kr",
		kZCmMZ: "x1c1uobl",
		kg5iWk: "xlyipyv",
		$$css: !0
	},
	tableHeaderCellFirst: {
		kZCmMZ: "xe2zdcy",
		$$css: !0
	},
	dataRow: {
		kGNEyG: "x6s0dn4",
		kMwMTN: "x1us42qq",
		k1xSpc: "xrvj5dj",
		kGuDYH: "x1j6dyjg",
		kumcoG: "x1rz0015",
		kZKoxP: "xm66k3b",
		kLWn49: "x1d3mw78",
		kAzted: "x7ggjjr",
		k7Eaqz: "x1kyrz78",
		kVQacm: "xb3r6kr",
		k9WMMc: "xdpxx8g",
		$$css: !0
	},
	dataRowProvider: {
		kumcoG: "x1lzu5mx",
		$$css: !0
	},
	dataRowRuntime: {
		kumcoG: "x66dt14",
		k7Eaqz: "x1wsf7c7",
		$$css: !0
	},
	dataRowSelected: {
		kWkggS: "x2swgdw",
		$$css: !0
	},
	dataRowInteractive: {
		kGzVvX: "xod8ybr",
		kJX3Yn: "x1wowsdf",
		kZs9gx: "x1qao4oa",
		kiEn40: "x1bqaal",
		k7shQP: "x9v5kkp",
		kPJHz1: "x784prv",
		$$css: !0
	},
	dataRowPrimary: {
		k1xSpc: "x78zum5",
		kXwgrk: "xdt5ytf",
		kOIVth: "x12mrbbr",
		kjj79g: "xl56j7k",
		kAzted: "xu0aao5",
		k7Eaqz: "xeuugli",
		kVQacm: "xb3r6kr",
		kZCmMZ: "xe2zdcy",
		kg5iWk: "xlyipyv",
		khDVqt: "xuxw1ft",
		$$css: !0
	},
	dataRowPrimaryText: {
		kMwMTN: "x1hptmox",
		kGuDYH: "xfifm61",
		k63SB2: "xk50ysn",
		kLWn49: "x1d3mw78",
		kVQacm: "xb3r6kr",
		kg5iWk: "xlyipyv",
		khDVqt: "xuxw1ft",
		$$css: !0
	},
	dataRowSecondaryText: {
		kMwMTN: "x1by9co",
		kMv6JI: "x1kjnwmw",
		kGuDYH: "x1k6wstc",
		kLWn49: "x1xxsxie",
		kVQacm: "xb3r6kr",
		kg5iWk: "xlyipyv",
		khDVqt: "xuxw1ft",
		$$css: !0
	},
	dataRowCell: {
		k7Eaqz: "xeuugli",
		kVQacm: "xb3r6kr",
		kZCmMZ: "x1c1uobl",
		kg5iWk: "xlyipyv",
		khDVqt: "xuxw1ft",
		$$css: !0
	},
	dataGrid: {
		kWkggS: "x2ra5wt",
		k1xSpc: "x78zum5",
		kXwgrk: "xdt5ytf",
		kOIVth: "x12mrbbr",
		k7Eaqz: "xeuugli",
		kXHlph: "xw2csxc",
		$$css: !0
	},
	panel: {
		kWkggS: "x161zu4a",
		kVAM5u: "x1c8z64c",
		kaIpWk: "x2u8bby",
		ksu8eU: "x1y0btm7",
		kMzoRj: "xmkeg23",
		kGVxlE: "x11qoj1j",
		kVQacm: "xb3r6kr",
		$$css: !0
	},
	panelHeader: {
		kGNEyG: "x6s0dn4",
		kWkggS: "x1u4mfw5",
		kL6WhQ: "x11ra1e",
		kfdmCh: "x1q0q8m5",
		kt9PQ7: "xso031l",
		k1xSpc: "x78zum5",
		kOIVth: "xfrlg7z",
		kjj79g: "x1qughib",
		kAzted: "x1ba4aug",
		k8WAf4: "x1t0vds8",
		kg3NbH: "x1awh872",
		$$css: !0
	},
	panelTitle: {
		kMwMTN: "x1hptmox",
		kGuDYH: "x1j6dyjg",
		k63SB2: "x1s688f",
		kLWn49: "x37zpob",
		kogj98: "x1ghz6dp",
		$$css: !0
	},
	panelDescription: {
		kMwMTN: "x1by9co",
		kGuDYH: "xfifm61",
		kLWn49: "x1evy7pa",
		k1K539: "xat24cr",
		keoZOQ: "xr9ek0c",
		$$css: !0
	},
	panelContentSm: {
		kmVPX3: "x13d371k",
		$$css: !0
	},
	panelContentMd: {
		kmVPX3: "xbjxyjv",
		$$css: !0
	},
	summary: {
		kWkggS: "x161zu4a",
		kL6WhQ: "x11ra1e",
		kfdmCh: "x1q0q8m5",
		kt9PQ7: "xso031l",
		k1xSpc: "xrvj5dj",
		klIVar: "x1fmebrb",
		kprqdN: "x1mt1orb",
		kXHlph: "xw2csxc",
		$$css: !0
	},
	summaryItem: {
		kfiyM8: "xc26acl",
		k26BEO: "x7pw23f",
		kSWEuD: "x32b0ac",
		kWqL5O: "xs1s249",
		k1xSpc: "xrvj5dj",
		kOIVth: "x1tppwok",
		kumcoG: "xju1xpo",
		kAzted: "x1wiwyrm",
		k8WAf4: "xknfcqp",
		kg3NbH: "xaope02",
		kJ9way: "x1lpyac",
		$$css: !0
	},
	summaryLabel: {
		kMwMTN: "x1by9co",
		kGuDYH: "xvwhms9",
		kb6lSQ: "x9pfba7",
		kVQacm: "xb3r6kr",
		kg5iWk: "xlyipyv",
		kP9fke: "xtvhhri",
		khDVqt: "xuxw1ft",
		$$css: !0
	},
	summaryValue: {
		kMwMTN: "x1hptmox",
		kGuDYH: "xif65rj",
		k63SB2: "x1s688f",
		kLWn49: "x1u7k74",
		$$css: !0
	},
	summaryValueWarning: {
		kMwMTN: "xewiark",
		$$css: !0
	},
	summaryValueDanger: {
		kMwMTN: "xt9bkd2",
		$$css: !0
	},
	summaryValueSuccess: {
		kMwMTN: "x83xlqj",
		$$css: !0
	},
	summaryNote: {
		kMwMTN: "x1by9co",
		kGuDYH: "x1k6wstc",
		kBCFzs: "x1osaytk",
		kVQacm: "xb3r6kr",
		kg5iWk: "xlyipyv",
		khDVqt: "xuxw1ft",
		$$css: !0
	}
}, k = {
	kumcoG: "xqketvx",
	$$css: !0
}, A = {
	splitView: {
		k1xSpc: "xrvj5dj",
		kumcoG: "x1mzqnzw",
		kAzted: "x2lwn1j",
		kVQacm: "xb3r6kr",
		kHqN4L: "x1oysyvg",
		kHGpj3: "x1wpo24y",
		$$css: !0
	},
	splitViewDynamic: (e) => [k, { "--x-gridTemplateColumns": `minmax(0, 1fr) ${e}px` == null ? void 0 : `minmax(0, 1fr) ${e}px` }],
	splitViewPane: {
		kWkggS: "xdt2kll",
		kAzted: "x2lwn1j",
		k7Eaqz: "xeuugli",
		kVQacm: "xysyzu8",
		$$css: !0
	},
	splitViewMain: {
		kwRFfy: "xziim83",
		$$css: !0
	},
	splitViewInspector: {
		kGJrpR: "x62chb6",
		kVhnKS: "x1t7ytsu",
		k2ei4v: "xpilrb4",
		kLKAdn: "x7sb2j6",
		kZCmMZ: "x1wjr2jv",
		k2Xzrm: "x11cddhz",
		kyqaOf: "x1lagx6j",
		k3MOAm: "xnc2tav",
		kiL7mN: "xls36sb",
		k33tG3: "xfwmvw9",
		kUlm7x: "x1xiu4pk",
		$$css: !0
	},
	splitViewNone: {
		kmVPX3: "x1717udv",
		$$css: !0
	},
	inspector: {
		kGNEyG: "x1qjc9v5",
		kWkggS: "xdt2kll",
		k1xSpc: "x78zum5",
		kXwgrk: "xdt5ytf",
		kAzted: "x1us19tq",
		k7Eaqz: "xeuugli",
		kVQacm: "x1rea2x4",
		kzqmXN: "xh8yej3",
		$$css: !0
	},
	inspectorHeader: {
		k1xSpc: "x78zum5",
		kXwgrk: "xdt5ytf",
		k7Eaqz: "xeuugli",
		kzqmXN: "xh8yej3",
		$$css: !0
	},
	inspectorHeaderWithAction: {
		kGNEyG: "x1cy8zhl",
		k1xSpc: "x78zum5",
		kXwgrk: "x1q0g3np",
		kOIVth: "x1o53p5v",
		kZKoxP: "xwa7hi",
		kjj79g: "x1qughib",
		$$css: !0
	},
	inspectorHeaderContent: {
		k1xSpc: "x78zum5",
		kXwgrk: "xdt5ytf",
		kUk6DE: "x12lumcd",
		k7Eaqz: "xeuugli",
		$$css: !0
	},
	inspectorHeaderContentWithAction: {
		kOIVth: "x195vfkc",
		$$css: !0
	},
	inspectorHeaderAction: {
		kUk6DE: "x1okw0bk",
		$$css: !0
	},
	inspectorTitle: {
		kMwMTN: "x1hptmox",
		kGuDYH: "xosj86m",
		k63SB2: "x1s688f",
		kLWn49: "xeqr9p9",
		kogj98: "x1ghz6dp",
		kVQacm: "xb3r6kr",
		kg5iWk: "xlyipyv",
		khDVqt: "xuxw1ft",
		$$css: !0
	},
	inspectorSubtitle: {
		kMwMTN: "x1by9co",
		kMv6JI: "x1kjnwmw",
		kGuDYH: "x1k6wstc",
		kLWn49: "x1xxsxie",
		kogj98: "x1ghz6dp",
		kVQacm: "xb3r6kr",
		kg5iWk: "xlyipyv",
		khDVqt: "xuxw1ft",
		$$css: !0
	},
	inspectorStatus: {
		kGNEyG: "x1cy8zhl",
		k1xSpc: "x78zum5",
		kAzted: "x1wxaq2x",
		kGO01o: "x1hhzuzn",
		kLKAdn: "xyinxu5",
		kzqmXN: "xh8yej3",
		$$css: !0
	},
	inspectorSection: {
		kLZC3w: "x64gf64",
		kPef9Z: "x13fuv20",
		kEafiO: "x178xt8z",
		k1xSpc: "x78zum5",
		kXwgrk: "xdt5ytf",
		kOIVth: "x1nejdyq",
		k7Eaqz: "xeuugli",
		k8WAf4: "xhyosrm",
		kg3NbH: "xnjsko4",
		kzqmXN: "xh8yej3",
		kdIrg8: "x1nynrek",
		kTFOXF: "x1l1angv",
		kx8K5S: "x1p5c90x",
		$$css: !0
	},
	inspectorSectionWithAction: {
		kOIVth: "x17d4w8g",
		k8WAf4: "xxlmvz2",
		$$css: !0
	},
	inspectorSectionTitle: {
		kMwMTN: "x1by9co",
		kGuDYH: "x1j6dyjg",
		k63SB2: "xk50ysn",
		kLWn49: "x1d3mw78",
		kogj98: "x1ghz6dp",
		$$css: !0
	},
	inspectorSectionBody: {
		kMwMTN: "x1hptmox",
		k1xSpc: "x78zum5",
		kXwgrk: "xdt5ytf",
		kGuDYH: "xfifm61",
		kOIVth: "x1nejdyq",
		kLWn49: "xd4r4e8",
		$$css: !0
	},
	inspectorSectionBodyWithAction: {
		kOIVth: "xxhr3t",
		kLWn49: "x17fgdl5",
		$$css: !0
	},
	inspectorActions: {
		kLZC3w: "x64gf64",
		kPef9Z: "x13fuv20",
		kEafiO: "x178xt8z",
		k1xSpc: "x78zum5",
		kwnvtZ: "x1a02dak",
		kOIVth: "x1bxt2l2",
		k8WAf4: "x1qlqaqx",
		kg3NbH: "xnjsko4",
		$$css: !0
	},
	section: {
		kWkggS: "xdt2kll",
		kL6WhQ: "x11ra1e",
		kfdmCh: "x1q0q8m5",
		kt9PQ7: "xso031l",
		k7Eaqz: "xeuugli",
		$$css: !0
	},
	sectionHeader: {
		kGNEyG: "x6s0dn4",
		kWkggS: "xdt2kll",
		kL6WhQ: "x11ra1e",
		kfdmCh: "x1q0q8m5",
		kt9PQ7: "xso031l",
		k1xSpc: "x78zum5",
		kOIVth: "x1bxt2l2",
		kAzted: "x7ywyr2",
		kg3NbH: "x1awh872",
		$$css: !0
	},
	sectionTitle: {
		kMwMTN: "x1hptmox",
		kGuDYH: "xif65rj",
		k63SB2: "x1s688f",
		kb6lSQ: "x12oo3zp",
		kogj98: "x1ghz6dp",
		$$css: !0
	},
	sectionMeta: {
		kMwMTN: "x1by9co",
		kGuDYH: "x1k6wstc",
		keTefX: "xvc5jky",
		k7Eaqz: "xeuugli",
		kVQacm: "xb3r6kr",
		kg5iWk: "xlyipyv",
		khDVqt: "xuxw1ft",
		$$css: !0
	},
	sectionBody: {
		k7Eaqz: "xeuugli",
		$$css: !0
	},
	keyValuesRow: {
		kGNEyG: "x6s0dn4",
		kL6WhQ: "x1t50xtr",
		kfdmCh: "x1q0q8m5",
		kt9PQ7: "xso031l",
		k1xSpc: "xrvj5dj",
		kGuDYH: "x1j6dyjg",
		kOIVth: "x883omv",
		kumcoG: "x1d87h53",
		kAzted: "xu97haq",
		k8WAf4: "xifx94n",
		kg3NbH: "x1awh872",
		kx8K5S: "x1t1lzn6",
		$$css: !0
	},
	keyValuesLabel: {
		kMwMTN: "x1by9co",
		$$css: !0
	},
	keyValuesValue: {
		kMwMTN: "x1us42qq",
		kogj98: "x1ghz6dp",
		k7Eaqz: "xeuugli",
		kHjlTd: "xj0a0fe",
		$$css: !0
	},
	state: {
		kfiyM8: "xc26acl",
		kMwMTN: "x1by9co",
		k1xSpc: "xrvj5dj",
		kOIVth: "x17d4w8g",
		kAPf3g: "x1o2pa38",
		kAzted: "x1shn012",
		kmVPX3: "x1th63m9",
		k9WMMc: "x2b8uid",
		$$css: !0
	},
	stateIcon: {
		k1xSpc: "xrvj5dj",
		kZKoxP: "xxk0z11",
		kgQiWS: "x1ku5rj1",
		kzqmXN: "xvy4d1p",
		$$css: !0
	},
	stateTitle: {
		kMwMTN: "x1hptmox",
		kGuDYH: "xfifm61",
		k63SB2: "x1s688f",
		$$css: !0
	},
	stateDescription: {
		kGuDYH: "x1j6dyjg",
		kLWn49: "x1evy7pa",
		kogj98: "x1ghz6dp",
		ks0D6T: "x1pfbilc",
		$$css: !0
	},
	stateAction: {
		keoZOQ: "x1gslohp",
		$$css: !0
	},
	tabsList: {
		kGNEyG: "x1qjc9v5",
		kL6WhQ: "x11ra1e",
		kfdmCh: "x1q0q8m5",
		kt9PQ7: "xso031l",
		k1xSpc: "x78zum5",
		kOIVth: "x1jnr06f",
		k7Eaqz: "xeuugli",
		$$css: !0
	},
	tabsListPage: {
		kOIVth: "x1o53p5v",
		kZKoxP: "xneyujy",
		$$css: !0
	},
	tabsListInspector: {
		kOIVth: "xfrlg7z",
		kZKoxP: "xneyujy",
		$$css: !0
	},
	tabsListInsetSm: {
		kg3NbH: "x157u0y2",
		$$css: !0
	},
	tabsTab: {
		kGNEyG: "x6s0dn4",
		kWkggS: "xjbqb8w",
		kMwMTN: "x1by9co",
		k1xSpc: "x3nfvp2",
		kMv6JI: "xjb2p0i",
		kGuDYH: "xfifm61",
		k63SB2: "xk50ysn",
		kOIVth: "xg4yfn",
		kjj79g: "xl56j7k",
		kAzted: "x21xpn4",
		kg3NbH: "xfn1xvj",
		kVAEAm: "x1n2onr6",
		khDVqt: "xuxw1ft",
		khY8VJ: "xmi3gmm",
		kZs9gx: "x1qao4oa",
		kiEn40: "xhfxdjs",
		k7shQP: "x9v5kkp",
		kPJHz1: "x784prv",
		kDPRdz: "xq31x5",
		$$css: !0
	},
	tabsTabDense: {
		kAzted: "x4992c7",
		kg3NbH: "xnjsko4",
		$$css: !0
	},
	tabsTabSelected: {
		kMwMTN: "x1hptmox",
		kWgbpV: "xfe64gy",
		ktxKPG: "x1todpm3",
		k76hwX: "x5l10my",
		kHYQlX: "x1ylxpli",
		kERgzV: "x1x824oc",
		khtWIy: "xe8cyzk",
		k90Mbm: "x1w1e30c",
		kSboNq: "xfkgqci",
		$$css: !0
	},
	tabsTabSelectedDense: {
		khtWIy: "x2m4spn",
		k90Mbm: "xprqbvu",
		$$css: !0
	},
	tabsTabSelectedLeadingIcon: {
		kSboNq: "x12ohcuu",
		$$css: !0
	},
	tabsPanel: {
		k7Eaqz: "xeuugli",
		$$css: !0
	}
}, ee = {
	settingsGroup: {
		kLZC3w: "x13z5btk",
		kPef9Z: "x13fuv20",
		kEafiO: "x178xt8z",
		$$css: !0
	},
	settingsGroupHeader: {
		kGO01o: "xkhdypq",
		kLKAdn: "x1hgzpf9",
		kg3NbH: "x6hiw3m",
		$$css: !0
	},
	settingsGroupTitle: {
		kMwMTN: "x1hptmox",
		kGuDYH: "x4z9k3i",
		k63SB2: "x1s688f",
		kLWn49: "x37zpob",
		kogj98: "x1ghz6dp",
		$$css: !0
	},
	settingsGroupDescription: {
		kMwMTN: "x1by9co",
		kGuDYH: "xfifm61",
		kLWn49: "x1evy7pa",
		k1K539: "xat24cr",
		keoZOQ: "x2ruk18",
		$$css: !0
	},
	settingsRow: {
		kGNEyG: "x6s0dn4",
		kLZC3w: "x64gf64",
		kPef9Z: "x13fuv20",
		kEafiO: "x178xt8z",
		k1xSpc: "xrvj5dj",
		kOIVth: "xeghufk",
		kumcoG: "x7rkdv8",
		kAzted: "xt55aet",
		k8WAf4: "x6l1j6o",
		kg3NbH: "x6hiw3m",
		kqJkrk: "x1d04ro8",
		kHqN4L: "x1oysyvg",
		kn6OCU: "x9b67y7",
		$$css: !0
	},
	settingsRowCopy: {
		k7Eaqz: "xeuugli",
		$$css: !0
	},
	settingsRowLabel: {
		kMwMTN: "x1hptmox",
		kGuDYH: "xfifm61",
		k63SB2: "xk50ysn",
		kLWn49: "x37zpob",
		$$css: !0
	},
	settingsRowDescription: {
		kMwMTN: "x1by9co",
		kGuDYH: "x1j6dyjg",
		kLWn49: "xfrs9s4",
		keoZOQ: "xr9ek0c",
		$$css: !0
	},
	settingsRowControl: {
		k7Eaqz: "xeuugli",
		$$css: !0
	},
	settingsToggle: {
		kaIpWk: "xb8qbg4",
		ksu8eU: "x1y0btm7",
		kMzoRj: "xmkeg23",
		kZKoxP: "xlup9mm",
		kVAEAm: "x1n2onr6",
		kIyJzY: "xgdialr",
		k1ekBW: "xts7igz",
		kAMwcw: "xwji4o3",
		kzqmXN: "xgd8bvy",
		kZs9gx: "x1qao4oa",
		kiEn40: "x13iak60",
		k7shQP: "x9v5kkp",
		kPJHz1: "x784prv",
		$$css: !0
	},
	settingsToggleOn: {
		kWkggS: "xk9jlal",
		kVAM5u: "xsazgwg",
		$$css: !0
	},
	settingsToggleOff: {
		kWkggS: "x11q31d3",
		kVAM5u: "xuafy4m",
		$$css: !0
	},
	settingsToggleKnob: {
		kaIpWk: "xb8qbg4",
		kZKoxP: "x170jfvy",
		kbCHJM: "x54rlcq",
		kVAEAm: "x10l6tqk",
		k87sOh: "xs7f9wi",
		kIyJzY: "xgdialr",
		k1ekBW: "xuo13n2",
		kAMwcw: "xwji4o3",
		kzqmXN: "x1fsd2vl",
		$$css: !0
	},
	settingsToggleKnobOn: {
		kWkggS: "xdt2kll",
		k3aq6I: "x378cnq",
		$$css: !0
	},
	settingsToggleKnobOff: {
		kWkggS: "xcidspv",
		k3aq6I: "x1ikck70",
		$$css: !0
	}
}, te = {
	field: {
		k1xSpc: "xrvj5dj",
		kOIVth: "x17d4w8g",
		$$css: !0
	},
	fieldLabel: {
		kMwMTN: "x1us42qq",
		kGuDYH: "xfifm61",
		k63SB2: "xk50ysn",
		kLWn49: "x37zpob",
		$$css: !0
	},
	fieldHint: {
		kMwMTN: "x1by9co",
		kGuDYH: "x1j6dyjg",
		kLWn49: "x1evy7pa",
		kogj98: "x1ghz6dp",
		$$css: !0
	},
	fieldError: {
		kMwMTN: "xt9bkd2",
		kGuDYH: "x1j6dyjg",
		kLWn49: "x1evy7pa",
		kogj98: "x1ghz6dp",
		$$css: !0
	},
	input: {
		kWkggS: "x11q31d3",
		kVAM5u: "x1c8z64c",
		kaIpWk: "x16o2al3",
		ksu8eU: "x1y0btm7",
		kMzoRj: "xmkeg23",
		kGVxlE: "xit2rpj",
		kMwMTN: "x1hptmox",
		kMv6JI: "xjb2p0i",
		kGuDYH: "x4z9k3i",
		kAzted: "xxjnprz",
		kg3NbH: "x1awh872",
		kzqmXN: "xh8yej3",
		k8Qsv1: "xt9hdbr",
		kOJeXU: "xd4jb4b",
		kEtg5x: "x1q78su0",
		k3Woio: "xk2swo9",
		$$css: !0
	},
	textarea: {
		kLWn49: "x1evy7pa",
		kAzted: "xefclja",
		k8WAf4: "x6l1j6o",
		kHenm0: "x288g5",
		$$css: !0
	},
	emptyState: {
		kfiyM8: "xc26acl",
		kMwMTN: "x1by9co",
		k1xSpc: "xrvj5dj",
		kOIVth: "x1bxt2l2",
		kAPf3g: "x1o2pa38",
		kAzted: "x1shn012",
		kmVPX3: "x1fg6sy8",
		k9WMMc: "x2b8uid",
		$$css: !0
	},
	emptyStateIcon: {
		kMwMTN: "x1by9co",
		k1xSpc: "xrvj5dj",
		kZKoxP: "x10w6t97",
		kgQiWS: "x1ku5rj1",
		kzqmXN: "x1td3qas",
		$$css: !0
	},
	emptyStateTitle: {
		kMwMTN: "x1hptmox",
		kGuDYH: "xif65rj",
		k63SB2: "x1s688f",
		kogj98: "x1ghz6dp",
		$$css: !0
	},
	emptyStateDescription: {
		kMwMTN: "x1by9co",
		kGuDYH: "xfifm61",
		kLWn49: "x1jjo3f5",
		kogj98: "x1ghz6dp",
		ks0D6T: "xq2pcee",
		$$css: !0
	}
}, ne = {
	tableWrap: {
		kXHlph: "xw2csxc",
		$$css: !0
	},
	table: {
		kLvRdT: "x1mwwwfo",
		kMwMTN: "x1us42qq",
		kGuDYH: "xfifm61",
		k9WMMc: "xdpxx8g",
		kzqmXN: "xh8yej3",
		$$css: !0
	},
	tableHead: {
		kL6WhQ: "x11ra1e",
		kfdmCh: "x1q0q8m5",
		kt9PQ7: "xso031l",
		kMwMTN: "x1by9co",
		$$css: !0
	},
	tableRow: {
		kL6WhQ: "x1t50xtr",
		kfdmCh: "x1q0q8m5",
		kt9PQ7: "xso031l",
		kGzVvX: "xod8ybr",
		kx8K5S: "x1t1lzn6",
		$$css: !0
	},
	dataTableHeaderCell: {
		kGuDYH: "x1k6wstc",
		k63SB2: "xk50ysn",
		kZKoxP: "x16wdlz0",
		kg3NbH: "x1awh872",
		$$css: !0
	},
	dataTableCell: {
		kZKoxP: "x1peatla",
		kg3NbH: "x1awh872",
		$$css: !0
	}
}, j = {
	...E,
	...D,
	...O,
	...A,
	...ee,
	...te,
	...ne
};
function re({ children: e, moduleId: t, stylex: n, surfaceId: r, ...i }) {
	return /* @__PURE__ */ y("div", {
		...T(n, j.surfaceRoot),
		"data-ui": "surface-root",
		"data-lenso-surface-root": "true",
		"data-module-id": t,
		"data-surface-id": r,
		...i,
		children: e
	});
}
function ie({ children: e, scroll: t = !0, stylex: n, ...r }) {
	return /* @__PURE__ */ y("main", {
		...T(n, j.page),
		"data-ui": "page",
		"data-scroll": t ? "true" : "false",
		...r,
		children: e
	});
}
function ae({ children: e, stylex: t, ...n }) {
	return /* @__PURE__ */ y("header", {
		...T(t, j.pageHeader),
		"data-ui": "page__header",
		...n,
		children: e
	});
}
function oe({ children: e, stylex: t, ...n }) {
	return /* @__PURE__ */ y("div", {
		...T(t, j.pageHeading),
		"data-ui": "page__heading",
		...n,
		children: e
	});
}
function se({ children: e, stylex: t, ...n }) {
	return /* @__PURE__ */ y("p", {
		...T(t, j.pageEyebrow),
		"data-ui": "page__eyebrow",
		...n,
		children: e
	});
}
function ce({ children: e, stylex: t, ...n }) {
	return /* @__PURE__ */ y("h1", {
		...T(t, j.pageTitle),
		"data-ui": "page__title",
		...n,
		children: e
	});
}
function le({ children: e, stylex: t, ...n }) {
	return /* @__PURE__ */ y("p", {
		...T(t, j.pageDescription),
		"data-ui": "page__description",
		...n,
		children: e
	});
}
function ue({ children: e, stylex: t, ...n }) {
	return /* @__PURE__ */ y("div", {
		...T(t, j.pageActions),
		"data-ui": "page__actions",
		...n,
		children: e
	});
}
function de({ children: e, stylex: t, ...n }) {
	return /* @__PURE__ */ y("div", {
		...T(t, j.pageBody),
		"data-ui": "page__body",
		...n,
		children: e
	});
}
var M = Object.assign(ie, {
	Actions: ue,
	Body: de,
	Description: le,
	Eyebrow: se,
	Header: ae,
	Heading: oe,
	Title: ce
});
function N({ children: e, size: t = "sm", stylex: n, type: r = "button", variant: i = "default", ...a }) {
	return /* @__PURE__ */ y("button", {
		...T(n, j.button, t === "md" ? j.buttonMd : null, i === "primary" ? j.buttonPrimary : null, i === "ghost" ? j.buttonGhost : null, i === "danger" ? j.buttonDanger : null),
		"data-ui": "button",
		"data-size": t,
		"data-variant": i === "default" ? "secondary" : i,
		type: r,
		...a,
		children: e
	});
}
function fe({ children: e, size: t = 16, stylex: n, ...r }) {
	return /* @__PURE__ */ y("span", {
		...T(n, j.iconSlot, t === 12 ? j.iconSlot12 : null, t === 20 ? j.iconSlot20 : null),
		"data-ui": "icon-slot",
		"data-size": t,
		...r,
		children: e
	});
}
function pe({ align: e = "center", children: t, tone: n = "neutral", ...r }) {
	return /* @__PURE__ */ b("span", {
		...{
			0: { className: "x6s0dn4 x1us42qq xfex06f xwz0xwf x1j6dyjg xtl5sm4 x1d3mw78 x1hshjfz xuxw1ft" },
			1: { className: "x1us42qq xfex06f xwz0xwf x1j6dyjg xtl5sm4 x1d3mw78 x1hshjfz xuxw1ft x7a106z" }
		}[(e !== "center") << 0],
		"data-ui": "inline-status",
		"data-align": e,
		"data-tone": n,
		...r,
		children: [/* @__PURE__ */ y("span", {
			...T(j.inlineStatusDot, e === "center" ? null : j.inlineStatusDotTop, n === "info" ? j.inlineStatusDotInfo : null, n === "success" ? j.inlineStatusDotSuccess : null, n === "warning" ? j.inlineStatusDotWarning : null, n === "danger" ? j.inlineStatusDotDanger : null),
			"data-ui": "inline-status__dot",
			"aria-hidden": "true"
		}), /* @__PURE__ */ y("span", {
			className: "xeuugli xb3r6kr xlyipyv",
			"data-ui": "inline-status__label",
			children: t
		})]
	});
}
function P({ align: e = "center", children: t, tone: n = "neutral", ...r }) {
	return pe({
		align: e,
		children: t,
		tone: n,
		...r
	});
}
function me({ children: e, icon: t, stylex: n, ...r }) {
	return /* @__PURE__ */ b("label", {
		...T(n, j.filterSelectRoot),
		"data-ui": "filter-select",
		children: [/* @__PURE__ */ y("select", {
			className: "xjyslct x11q31d3 xuafy4m x16o2al3 x1y0btm7 xmkeg23 x1us42qq xjb2p0i x1j6dyjg xk50ysn xgh3c6q x1d3mw78 x18mun1o xeuugli xt970qd xziim83 xe2zdcy xh8yej3 xuxw1ft x1pfq648 x4mcwgy x1qao4oa x13iak60 x9v5kkp x784prv",
			"data-ui": "filter-select__select",
			...r,
			children: e
		}), /* @__PURE__ */ y(fe, {
			"aria-hidden": "true",
			size: 12,
			stylex: j.filterSelectIcon,
			children: t
		})]
	});
}
function he({ children: e, meta: t, title: n, ...r }) {
	return /* @__PURE__ */ b("header", {
		className: "x6s0dn4 x78zum5 x1bxt2l2 xql93kk x1qughib x7nmtmp xb3r6kr x1awh872 xuxw1ft",
		"data-ui": "pane-header",
		...r,
		children: [/* @__PURE__ */ y("span", {
			className: "x1hptmox x4z9k3i xk50ysn xuy8w9f xb3r6kr xlyipyv",
			"data-ui": "pane-header__title",
			children: n ?? e
		}), t === void 0 ? null : /* @__PURE__ */ y("span", {
			className: "x1by9co x1okw0bk x1k6wstc x1xxsxie",
			"data-ui": "pane-header__meta",
			children: t
		})]
	});
}
var ge = [
	"Capability",
	"Kind",
	"Owner",
	"State"
];
function F({ children: e, columns: t = ge, variant: n = "generic", ...r }) {
	let i = e ? [e] : t;
	return /* @__PURE__ */ y("div", {
		...{
			0: { className: "x6s0dn4 x1by9co xrvj5dj x1k6wstc xk50ysn x1rz0015 xk4nwmm x1xxsxie xmmxyt x1kyrz78 xuxw1ft" },
			2: { className: "x6s0dn4 x1by9co xrvj5dj x1k6wstc xk50ysn xk4nwmm x1xxsxie xmmxyt x1kyrz78 xuxw1ft x1lzu5mx" },
			1: { className: "x6s0dn4 x1by9co xrvj5dj x1k6wstc xk50ysn xk4nwmm x1xxsxie xmmxyt xuxw1ft x66dt14 x1wsf7c7" },
			3: { className: "x6s0dn4 x1by9co xrvj5dj x1k6wstc xk50ysn xk4nwmm x1xxsxie xmmxyt xuxw1ft x66dt14 x1wsf7c7" }
		}[(n === "provider") << 1 | (n === "runtime") << 0],
		"data-ui": "table-header",
		"data-variant": n,
		role: "row",
		...r,
		children: i.map((e, t) => /* @__PURE__ */ p("span", {
			...{
				0: { className: "xeuugli xb3r6kr x1c1uobl xlyipyv" },
				1: { className: "xeuugli xb3r6kr xlyipyv xe2zdcy" }
			}[(t === 0) << 0],
			"data-ui": "table-header__cell",
			key: `table-header-${t}`
		}, e))
	});
}
function I({ cells: e, children: t, column2: n, column3: r, interactive: i = !1, onClick: a, onActivate: o, onKeyDown: s, primary: c, secondary: l, selected: u = !1, status: d, variant: f = "generic", ...p }) {
	let m = e ?? [
		n,
		r,
		d ?? t
	], h = (e) => {
		i && o && (e.key === "Enter" || e.key === " ") && (e.preventDefault(), o()), s?.(e);
	}, g = (e) => {
		i && o && o(), a?.(e);
	};
	return /* @__PURE__ */ b("div", {
		...{
			0: { className: "x6s0dn4 x1us42qq xrvj5dj x1j6dyjg x1rz0015 xm66k3b x1d3mw78 x7ggjjr x1kyrz78 xb3r6kr xdpxx8g" },
			8: { className: "x6s0dn4 x1us42qq xrvj5dj x1j6dyjg xm66k3b x1d3mw78 x7ggjjr x1kyrz78 xb3r6kr xdpxx8g x1lzu5mx" },
			4: { className: "x6s0dn4 x1us42qq xrvj5dj x1j6dyjg xm66k3b x1d3mw78 x7ggjjr xb3r6kr xdpxx8g x66dt14 x1wsf7c7" },
			12: { className: "x6s0dn4 x1us42qq xrvj5dj x1j6dyjg xm66k3b x1d3mw78 x7ggjjr xb3r6kr xdpxx8g x66dt14 x1wsf7c7" },
			2: { className: "x6s0dn4 x1us42qq xrvj5dj x1j6dyjg x1rz0015 xm66k3b x1d3mw78 x7ggjjr x1kyrz78 xb3r6kr xdpxx8g x2swgdw" },
			10: { className: "x6s0dn4 x1us42qq xrvj5dj x1j6dyjg xm66k3b x1d3mw78 x7ggjjr x1kyrz78 xb3r6kr xdpxx8g x1lzu5mx x2swgdw" },
			6: { className: "x6s0dn4 x1us42qq xrvj5dj x1j6dyjg xm66k3b x1d3mw78 x7ggjjr xb3r6kr xdpxx8g x66dt14 x1wsf7c7 x2swgdw" },
			14: { className: "x6s0dn4 x1us42qq xrvj5dj x1j6dyjg xm66k3b x1d3mw78 x7ggjjr xb3r6kr xdpxx8g x66dt14 x1wsf7c7 x2swgdw" },
			1: { className: "x6s0dn4 x1us42qq xrvj5dj x1j6dyjg x1rz0015 xm66k3b x1d3mw78 x7ggjjr x1kyrz78 xb3r6kr xdpxx8g xod8ybr x1wowsdf x1qao4oa x1bqaal x9v5kkp x784prv" },
			9: { className: "x6s0dn4 x1us42qq xrvj5dj x1j6dyjg xm66k3b x1d3mw78 x7ggjjr x1kyrz78 xb3r6kr xdpxx8g x1lzu5mx xod8ybr x1wowsdf x1qao4oa x1bqaal x9v5kkp x784prv" },
			5: { className: "x6s0dn4 x1us42qq xrvj5dj x1j6dyjg xm66k3b x1d3mw78 x7ggjjr xb3r6kr xdpxx8g x66dt14 x1wsf7c7 xod8ybr x1wowsdf x1qao4oa x1bqaal x9v5kkp x784prv" },
			13: { className: "x6s0dn4 x1us42qq xrvj5dj x1j6dyjg xm66k3b x1d3mw78 x7ggjjr xb3r6kr xdpxx8g x66dt14 x1wsf7c7 xod8ybr x1wowsdf x1qao4oa x1bqaal x9v5kkp x784prv" },
			3: { className: "x6s0dn4 x1us42qq xrvj5dj x1j6dyjg x1rz0015 xm66k3b x1d3mw78 x7ggjjr x1kyrz78 xb3r6kr xdpxx8g x2swgdw xod8ybr x1wowsdf x1qao4oa x1bqaal x9v5kkp x784prv" },
			11: { className: "x6s0dn4 x1us42qq xrvj5dj x1j6dyjg xm66k3b x1d3mw78 x7ggjjr x1kyrz78 xb3r6kr xdpxx8g x1lzu5mx x2swgdw xod8ybr x1wowsdf x1qao4oa x1bqaal x9v5kkp x784prv" },
			7: { className: "x6s0dn4 x1us42qq xrvj5dj x1j6dyjg xm66k3b x1d3mw78 x7ggjjr xb3r6kr xdpxx8g x66dt14 x1wsf7c7 x2swgdw xod8ybr x1wowsdf x1qao4oa x1bqaal x9v5kkp x784prv" },
			15: { className: "x6s0dn4 x1us42qq xrvj5dj x1j6dyjg xm66k3b x1d3mw78 x7ggjjr xb3r6kr xdpxx8g x66dt14 x1wsf7c7 x2swgdw xod8ybr x1wowsdf x1qao4oa x1bqaal x9v5kkp x784prv" }
		}[(f === "provider") << 3 | (f === "runtime") << 2 | !!u << 1 | !!i << 0],
		"data-ui": "data-row",
		"aria-selected": u,
		"data-selected": u ? "true" : "false",
		"data-variant": f,
		role: "row",
		tabIndex: i ? 0 : void 0,
		onClick: g,
		onKeyDown: h,
		...p,
		children: [/* @__PURE__ */ b("span", {
			className: "x78zum5 xdt5ytf x12mrbbr xl56j7k xu0aao5 xeuugli xb3r6kr xe2zdcy xlyipyv xuxw1ft",
			"data-ui": "data-row__primary",
			children: [/* @__PURE__ */ y("strong", {
				className: "x1hptmox xfifm61 xk50ysn x1d3mw78 xb3r6kr xlyipyv xuxw1ft",
				children: c
			}), l === void 0 ? null : /* @__PURE__ */ y("small", {
				className: "x1by9co x1kjnwmw x1k6wstc x1xxsxie xb3r6kr xlyipyv xuxw1ft",
				children: l
			})]
		}), m.map((e, t) => /* @__PURE__ */ y("span", {
			className: "xeuugli xb3r6kr x1c1uobl xlyipyv xuxw1ft",
			"data-ui": "data-row__cell",
			children: e
		}, `data-row-${t}`))]
	});
}
function _e({ children: e, stylex: t, ...n }) {
	return /* @__PURE__ */ y("div", {
		...T(t, j.dataGrid),
		"data-ui": "data-grid",
		...n,
		children: e
	});
}
function ve({ children: e, stylex: t, ...n }) {
	return /* @__PURE__ */ y("section", {
		...T(t, j.panel),
		"data-ui": "panel",
		...n,
		children: e
	});
}
function ye({ children: e, stylex: t, ...n }) {
	return /* @__PURE__ */ y("header", {
		...T(t, j.panelHeader),
		"data-ui": "panel__header",
		...n,
		children: e
	});
}
function be({ children: e, stylex: t, ...n }) {
	return /* @__PURE__ */ y("h2", {
		...T(t, j.panelTitle),
		"data-ui": "panel__title",
		...n,
		children: e
	});
}
function xe({ children: e, stylex: t, ...n }) {
	return /* @__PURE__ */ y("p", {
		...T(t, j.panelDescription),
		"data-ui": "panel__description",
		...n,
		children: e
	});
}
function Se({ children: e, padding: t = "none", stylex: n, ...r }) {
	return /* @__PURE__ */ y("div", {
		...T(n, t === "sm" ? j.panelContentSm : null, t === "md" ? j.panelContentMd : null),
		"data-ui": "panel__content",
		"data-padding": t,
		...r,
		children: e
	});
}
Object.assign(ve, {
	Content: Se,
	Description: xe,
	Header: ye,
	Title: be
});
function Ce({ children: e, stylex: t, ...n }) {
	return /* @__PURE__ */ y("div", {
		...T(t, j.summary),
		"data-ui": "summary",
		...n,
		children: e
	});
}
function we({ children: e, label: t, note: n, stylex: r, tone: i = "neutral", value: a, ...o }) {
	return /* @__PURE__ */ b("div", {
		...T(r, j.summaryItem),
		"data-ui": "summary__item",
		"data-tone": i,
		...o,
		children: [
			/* @__PURE__ */ y("span", {
				className: "x1by9co xvwhms9 x9pfba7 xb3r6kr xlyipyv xtvhhri xuxw1ft",
				"data-ui": "summary__label",
				children: t
			}),
			/* @__PURE__ */ y("strong", {
				...{
					0: { className: "x1hptmox xif65rj x1s688f x1u7k74" },
					4: { className: "xif65rj x1s688f x1u7k74 xewiark" },
					2: { className: "xif65rj x1s688f x1u7k74 xt9bkd2" },
					6: { className: "xif65rj x1s688f x1u7k74 xt9bkd2" },
					1: { className: "xif65rj x1s688f x1u7k74 x83xlqj" },
					5: { className: "xif65rj x1s688f x1u7k74 x83xlqj" },
					3: { className: "xif65rj x1s688f x1u7k74 x83xlqj" },
					7: { className: "xif65rj x1s688f x1u7k74 x83xlqj" }
				}[(i === "warning") << 2 | (i === "danger") << 1 | (i === "success") << 0],
				"data-ui": "summary__value",
				children: a
			}),
			n ? /* @__PURE__ */ y("span", {
				className: "x1by9co x1k6wstc x1osaytk xb3r6kr xlyipyv xuxw1ft",
				"data-ui": "summary__note",
				children: n
			}) : null,
			e
		]
	});
}
Object.assign(Ce, { Item: we });
function Te({ children: e, inset: t = "default", inspectorWidth: n, stylex: r, ...i }) {
	return /* @__PURE__ */ y("div", {
		...T(r, j.splitView, t === "none" ? j.splitViewNone : null, n === void 0 ? null : j.splitViewDynamic(n)),
		"data-ui": "split-view",
		"data-inset": t,
		...i,
		children: e
	});
}
function Ee({ children: e, stylex: t, ...n }) {
	return /* @__PURE__ */ y("section", {
		...T(t, j.splitViewPane, j.splitViewMain),
		"data-ui": "split-view__main",
		...n,
		children: e
	});
}
function De({ children: e, stylex: t, ...n }) {
	return /* @__PURE__ */ y("aside", {
		...T(t, j.splitViewPane, j.splitViewInspector),
		"data-ui": "split-view__inspector",
		...n,
		children: e
	});
}
var L = Object.assign(Te, {
	Inspector: De,
	Main: Ee
}), Oe = f({ hasHeaderAction: !1 });
function ke({ children: e, headerAction: t, status: n, subtitle: r, title: i, stylex: a, ...o }) {
	let s = !!t;
	return /* @__PURE__ */ y(Oe.Provider, {
		value: { hasHeaderAction: s },
		children: /* @__PURE__ */ b("div", {
			...T(a, j.inspector),
			"data-ui": "inspector",
			...o,
			children: [i === void 0 && r === void 0 && !n && !t ? null : /* @__PURE__ */ b("header", {
				...{
					0: { className: "x78zum5 xdt5ytf xeuugli xh8yej3" },
					1: { className: "xeuugli xh8yej3 x1cy8zhl x78zum5 x1q0g3np x1o53p5v xwa7hi x1qughib" }
				}[!!t << 0],
				"data-ui": "inspector__header",
				"data-has-action": t ? "true" : void 0,
				children: [/* @__PURE__ */ b("div", {
					...{
						0: { className: "x78zum5 xdt5ytf x12lumcd xeuugli" },
						1: { className: "x78zum5 xdt5ytf x12lumcd xeuugli x195vfkc" }
					}[!!t << 0],
					"data-ui": "inspector__header-content",
					children: [
						i === void 0 ? null : /* @__PURE__ */ y("h2", {
							className: "x1hptmox xosj86m x1s688f xeqr9p9 x1ghz6dp xb3r6kr xlyipyv xuxw1ft",
							"data-ui": "inspector__title",
							children: i
						}),
						r === void 0 ? null : /* @__PURE__ */ y("p", {
							className: "x1by9co x1kjnwmw x1k6wstc x1xxsxie x1ghz6dp xb3r6kr xlyipyv xuxw1ft",
							"data-ui": "inspector__subtitle",
							children: r
						}),
						n ? /* @__PURE__ */ y("div", {
							className: "x1cy8zhl x78zum5 x1wxaq2x x1hhzuzn xyinxu5 xh8yej3",
							"data-ui": "inspector__status",
							children: n
						}) : null
					]
				}), t ? /* @__PURE__ */ y("div", {
					className: "x1okw0bk",
					"data-ui": "inspector__header-action",
					children: t
				}) : null]
			}), e]
		})
	});
}
function Ae({ children: e, title: t, stylex: n, ...r }) {
	let { hasHeaderAction: i } = h(Oe);
	return /* @__PURE__ */ b("section", {
		...T(n, j.inspectorSection, i ? j.inspectorSectionWithAction : null),
		"data-ui": "inspector__section",
		...r,
		children: [t === void 0 ? null : /* @__PURE__ */ y("h3", {
			className: "x1by9co x1j6dyjg xk50ysn x1d3mw78 x1ghz6dp",
			"data-ui": "inspector__section-title",
			children: t
		}), /* @__PURE__ */ y("div", {
			...{
				0: { className: "x1hptmox x78zum5 xdt5ytf xfifm61 x1nejdyq xd4r4e8" },
				1: { className: "x1hptmox x78zum5 xdt5ytf xfifm61 xxhr3t x17fgdl5" }
			}[!!i << 0],
			"data-ui": "inspector__section-body",
			children: e
		})]
	});
}
function je({ children: e, stylex: t, ...n }) {
	return /* @__PURE__ */ y("div", {
		...T(t, j.inspectorActions),
		"data-ui": "inspector__actions",
		...n,
		children: e
	});
}
var R = Object.assign(ke, {
	Actions: je,
	Section: Ae
});
function Me({ children: e, stylex: t, ...n }) {
	return /* @__PURE__ */ y("section", {
		...T(t, j.section),
		"data-ui": "section",
		...n,
		children: e
	});
}
function Ne({ children: e, stylex: t, ...n }) {
	return /* @__PURE__ */ y("header", {
		...T(t, j.sectionHeader),
		"data-ui": "section__header",
		...n,
		children: e
	});
}
function Pe({ children: e, stylex: t, ...n }) {
	return /* @__PURE__ */ y("h2", {
		...T(t, j.sectionTitle),
		"data-ui": "section__title",
		...n,
		children: e
	});
}
function Fe({ children: e, stylex: t, ...n }) {
	return /* @__PURE__ */ y("span", {
		...T(t, j.sectionMeta),
		"data-ui": "section__meta",
		...n,
		children: e
	});
}
function Ie({ children: e, stylex: t, ...n }) {
	return /* @__PURE__ */ y("div", {
		...T(t, j.sectionBody),
		"data-ui": "section__body",
		...n,
		children: e
	});
}
Object.assign(Me, {
	Body: Ie,
	Header: Ne,
	Meta: Fe,
	Title: Pe
});
function Le({ children: e, stylex: t, ...n }) {
	return /* @__PURE__ */ y("dl", {
		...T(t),
		"data-ui": "key-values",
		...n,
		children: e
	});
}
function Re({ label: e, value: t, stylex: n, ...r }) {
	return /* @__PURE__ */ b("div", {
		...T(n, j.keyValuesRow),
		"data-ui": "key-values__row",
		...r,
		children: [/* @__PURE__ */ y("dt", {
			className: "x1by9co",
			"data-ui": "key-values__label",
			children: e
		}), /* @__PURE__ */ y("dd", {
			className: "x1us42qq x1ghz6dp xeuugli xj0a0fe",
			"data-ui": "key-values__value",
			children: t
		})]
	});
}
var z = Object.assign(Le, { Row: Re });
function ze({ action: e, description: t, icon: n, stylex: r, title: i, ...a }) {
	return /* @__PURE__ */ b("div", {
		...T(r, j.state),
		"data-ui": "state",
		...a,
		children: [
			n ? /* @__PURE__ */ y("span", {
				className: "xrvj5dj xxk0z11 x1ku5rj1 xvy4d1p",
				"data-ui": "state__icon",
				children: n
			}) : null,
			/* @__PURE__ */ y("strong", {
				className: "x1hptmox xfifm61 x1s688f",
				"data-ui": "state__title",
				children: i
			}),
			/* @__PURE__ */ y("p", {
				className: "x1j6dyjg x1evy7pa x1ghz6dp x1pfbilc",
				"data-ui": "state__description",
				children: t
			}),
			e ? /* @__PURE__ */ y("div", {
				className: "x1gslohp",
				"data-ui": "state__action",
				children: e
			}) : null
		]
	});
}
var B = f({
	density: "default",
	leadingIcon: !1
});
function Be({ children: e, density: t = "default", inset: n = "default", stylex: r, ...i }) {
	let a = {
		density: t,
		leadingIcon: !1
	};
	return /* @__PURE__ */ y(B.Provider, {
		value: a,
		children: /* @__PURE__ */ y("div", {
			...T(r),
			"data-ui": "tabs",
			"data-density": t,
			"data-inset": n,
			...i,
			children: e
		})
	});
}
function Ve({ children: e, inset: t, leadingIcon: n, stylex: r, ...i }) {
	let a = h(B);
	return /* @__PURE__ */ y(B.Provider, {
		value: {
			...a,
			leadingIcon: !!n
		},
		children: /* @__PURE__ */ y("div", {
			...T(r, j.tabsList, a.density === "page" ? j.tabsListPage : null, a.density === "inspector" ? j.tabsListInspector : null, t === "sm" ? j.tabsListInsetSm : null),
			"data-ui": "tabs__list",
			"data-inset": t,
			"data-leading": n ? "icon" : void 0,
			role: "tablist",
			...i,
			children: e
		})
	});
}
function He({ children: e, onKeyDown: t, selected: n, stylex: r, type: i = "button", ...a }) {
	let { density: o, leadingIcon: s } = h(B), c = (e) => {
		if (t?.(e), e.defaultPrevented) return;
		let n = [...e.currentTarget.parentElement?.querySelectorAll("[role=\"tab\"]") ?? []], r = n.indexOf(e.currentTarget);
		if (r === -1 || n.length < 2) return;
		let i = null;
		e.key === "ArrowRight" ? i = (r + 1) % n.length : e.key === "ArrowLeft" ? i = (r - 1 + n.length) % n.length : e.key === "Home" ? i = 0 : e.key === "End" && (i = n.length - 1), i !== null && (e.preventDefault(), n[i]?.focus(), n[i]?.click());
	};
	return /* @__PURE__ */ y("button", {
		"aria-selected": n,
		...T(r, j.tabsTab, o === "default" ? null : j.tabsTabDense, n ? j.tabsTabSelected : null, n && o !== "default" ? j.tabsTabSelectedDense : null, n && s ? j.tabsTabSelectedLeadingIcon : null),
		"data-ui": "tabs__tab",
		role: "tab",
		type: i,
		onKeyDown: c,
		...a,
		children: e
	});
}
function Ue({ children: e, stylex: t, ...n }) {
	return /* @__PURE__ */ y("div", {
		...T(t, j.tabsPanel),
		"data-ui": "tabs__panel",
		role: "tabpanel",
		...n,
		children: e
	});
}
var V = Object.assign(Be, {
	List: Ve,
	Panel: Ue,
	Tab: He
});
function We({ children: e, stylex: t, ...n }) {
	return /* @__PURE__ */ y("section", {
		...T(t, j.settingsGroup),
		"data-ui": "settings-group",
		...n,
		children: e
	});
}
function Ge({ children: e, stylex: t, ...n }) {
	return /* @__PURE__ */ y("header", {
		...T(t, j.settingsGroupHeader),
		"data-ui": "settings-group__header",
		...n,
		children: e
	});
}
function Ke({ children: e, stylex: t, ...n }) {
	return /* @__PURE__ */ y("h2", {
		...T(t, j.settingsGroupTitle),
		"data-ui": "settings-group__title",
		...n,
		children: e
	});
}
function qe({ children: e, stylex: t, ...n }) {
	return /* @__PURE__ */ y("p", {
		...T(t, j.settingsGroupDescription),
		"data-ui": "settings-group__description",
		...n,
		children: e
	});
}
Object.assign(We, {
	Description: qe,
	Header: Ge,
	Title: Ke
});
function Je({ children: e, stylex: t, ...n }) {
	return /* @__PURE__ */ y("div", {
		...T(t, j.field),
		"data-ui": "field",
		...n,
		children: e
	});
}
function Ye({ children: e, stylex: t, ...n }) {
	return /* @__PURE__ */ y("label", {
		...T(t, j.fieldLabel),
		"data-ui": "field__label",
		...n,
		children: e
	});
}
function Xe({ children: e, stylex: t, ...n }) {
	return /* @__PURE__ */ y("p", {
		...T(t, j.fieldHint),
		"data-ui": "field__hint",
		...n,
		children: e
	});
}
function Ze({ children: e, stylex: t, ...n }) {
	return /* @__PURE__ */ y("p", {
		...T(t, j.fieldError),
		"data-ui": "field__error",
		role: "alert",
		...n,
		children: e
	});
}
var H = Object.assign(Je, {
	Error: Ze,
	Hint: Xe,
	Label: Ye
});
function Qe({ stylex: e, ...t }) {
	return /* @__PURE__ */ y("input", {
		...T(e, j.input),
		"data-ui": "input",
		...t
	});
}
function $e({ children: e, stylex: t, ...n }) {
	return /* @__PURE__ */ y("div", {
		...T(t, j.emptyState),
		"data-ui": "empty-state",
		...n,
		children: e
	});
}
function et({ children: e, stylex: t }) {
	return /* @__PURE__ */ y("div", {
		...T(t, j.emptyStateIcon),
		"data-ui": "empty-state__icon",
		children: e
	});
}
function tt({ children: e, stylex: t, ...n }) {
	return /* @__PURE__ */ y("h2", {
		...T(t, j.emptyStateTitle),
		"data-ui": "empty-state__title",
		...n,
		children: e
	});
}
function nt({ children: e, stylex: t, ...n }) {
	return /* @__PURE__ */ y("p", {
		...T(t, j.emptyStateDescription),
		"data-ui": "empty-state__description",
		...n,
		children: e
	});
}
Object.assign($e, {
	Description: nt,
	Icon: et,
	Title: tt
});
function rt({ children: e, stylex: t, ...n }) {
	return /* @__PURE__ */ y("div", {
		className: "xw2csxc",
		"data-ui": "table-wrap",
		children: /* @__PURE__ */ y("table", {
			...T(t, j.table),
			"data-ui": "table",
			...n,
			children: e
		})
	});
}
function it({ children: e, stylex: t, ...n }) {
	return /* @__PURE__ */ y("thead", {
		...T(t, j.tableHead),
		"data-ui": "table__head",
		...n,
		children: e
	});
}
function at({ children: e, stylex: t, ...n }) {
	return /* @__PURE__ */ y("tbody", {
		...T(t),
		"data-ui": "table__body",
		...n,
		children: e
	});
}
function ot({ children: e, stylex: t, ...n }) {
	return /* @__PURE__ */ y("tr", {
		...T(t, j.tableRow),
		"data-ui": "table__row",
		...n,
		children: e
	});
}
function st({ children: e, stylex: t, ...n }) {
	return /* @__PURE__ */ y("th", {
		...T(t, j.dataTableHeaderCell),
		"data-ui": "table__header",
		...n,
		children: e
	});
}
function ct({ children: e, stylex: t, ...n }) {
	return /* @__PURE__ */ y("td", {
		...T(t, j.dataTableCell),
		"data-ui": "table__cell",
		...n,
		children: e
	});
}
Object.assign(rt, {
	Body: at,
	Cell: ct,
	Head: it,
	Header: st,
	Row: ot
});
var lt = null, ut = "__LENSO_CONSOLE_HOST_API__", dt = () => {
	let e = globalThis[ut];
	return e && typeof e == "object" ? e : null;
}, ft = () => {
	throw Error("Console host API is only available inside Lenso Console.");
}, pt = new Proxy({}, { get: (e, t) => {
	let n = lt ?? dt();
	return n ? Reflect.get(n, t) : ft();
} }), mt = ({ manifest: e, surfaces: t }) => (a(e), {
	manifest: e,
	surfaces: e.surfaces.map((e) => {
		let n = t[e.id];
		if (!n) throw TypeError(`Console surface component is missing: ${e.id}`);
		return {
			...e,
			component: n
		};
	})
}), ht = Symbol.for("@lenso/console-ui.ConsoleClientContext.v1"), gt = globalThis, _t = gt[ht] ??= f(null), vt = () => {
	let e = h(_t);
	if (!e) throw Error("useConsoleClient must be used inside ConsoleModuleProvider");
	return e;
}, yt = "sha256:b57f7626fb6eac67b0595c17894671f08782ec4ca7d8c69990769048570999ed", U = {
	disableUser: "auth/http/POST:/users/{id}/disable",
	enableUser: "auth/http/POST:/users/{id}/enable",
	listSessions: "auth/http/GET:/sessions",
	listUsers: "auth/http/GET:/users",
	revokeSession: "auth/http/POST:/sessions/{id}/revoke"
}, bt = (e) => ({
	...e?.tenantId ? { tenantId: e.tenantId } : {},
	deadlineUnixMs: e?.deadlineUnixMs ?? Date.now() + 1e4,
	...e?.story ? { story: e.story } : {}
}), xt = (e) => {
	let t = async (t, n, r) => (await e.surfaceApi.invoke({
		context: e.managedServiceContext,
		contractDigest: yt,
		input: n,
		moduleId: e.identity.moduleId,
		moduleReleaseDigest: e.identity.moduleReleaseDigest,
		operationId: t,
		protocol: "lenso.console-surface-gateway.v1",
		requestContext: bt(r),
		uiArtifactDigest: e.identity.uiArtifactDigest
	})).output;
	return {
		disableUser: (e, n, r) => t(U.disableUser, {
			userId: e,
			...n ?? {}
		}, r),
		enableUser: (e, n) => t(U.enableUser, { userId: e }, n),
		listSessions: (e, n) => t(U.listSessions, e ?? {}, n),
		listUsers: (e, n) => t(U.listUsers, e ?? {}, n),
		revokeSession: (e, n) => t(U.revokeSession, { sessionId: e }, n)
	};
}, W = (e) => typeof e == "string" && e.length > 0 ? e : "-", St = (e, t = /* @__PURE__ */ new Date()) => e.map((e) => {
	let n = W(e.disabled_at), r = W(e.disabled_until);
	return {
		createdAt: W(e.created_at),
		disabledAt: n,
		disabledReason: W(e.disabled_reason),
		disabledUntil: r,
		id: W(e.id),
		isAnonymous: e.is_anonymous,
		status: wt(n, r, t)
	};
});
function Ct(e, t, n) {
	return e.filter((e) => (t === "all" || (t === "anonymous" ? e.isAnonymous : !e.isAnonymous)) && (n === "all" || e.status === n));
}
function wt(e, t, n) {
	if (e === "-") return "active";
	let r = Date.parse(t);
	return Number.isFinite(r) && r <= n.getTime() ? "active" : "disabled";
}
var Tt = (e, t = /* @__PURE__ */ new Date()) => e.map((e) => {
	let n = W(e.revoked_at), r = W(e.expires_at);
	return {
		clientIp: W(e.client_ip),
		createdAt: W(e.created_at),
		deviceId: W(e.device_id),
		expiresAt: r,
		id: W(e.id),
		revokedAt: n,
		status: Dt(r, n, t),
		userAgent: W(e.user_agent),
		userId: W(e.user_id)
	};
});
function Et(e, t, n = "all", r = /* @__PURE__ */ new Date()) {
	return e.filter((e) => (t === "all" || e.status === t) && (n === "all" || (n === "expired" ? G(e, r) : !G(e, r))));
}
function G(e, t) {
	let n = Date.parse(e.expiresAt);
	return Number.isFinite(n) && n <= t.getTime();
}
function Dt(e, t, n) {
	if (t !== "-") return "revoked";
	let r = Date.parse(e);
	return Number.isFinite(r) && r <= n.getTime() ? "expired" : "active";
}
function K(e) {
	if (e === "-") return e;
	let t = Date.parse(e);
	return Number.isFinite(t) ? new Date(t).toISOString().slice(0, 16).replace("T", " ") : e;
}
//#endregion
//#region src/page.tsx
var Ot = "auth.users.detail.actions", kt = "auth.users.manage", At = "auth.sessions.revoke", q = {
	filters: {
		kwnvtZ: "x1a02dak",
		$$css: !0
	},
	state: {
		kWkggS: "xrw0hqm",
		$$css: !0
	},
	tabs: {
		keoZOQ: "xr9ek0c",
		$$css: !0
	}
};
function jt() {
	let e = vt(), t = _(() => xt(e), [e]), n = Lt(m(() => t.listUsers({ limit: 200 }), [t])), [r, i] = v("all"), [a, o] = v("all"), [s, c] = v(null), [l, d] = v(null), [f, p] = v("details"), h = n.data?.records, g = _(() => St(h ?? []), [h]), x = _(() => Ct(g, r, a), [
		r,
		g,
		a
	]), S = x.find((e) => e.id === s) ?? x[0] ?? g.find((e) => e.id === s) ?? null, C = pt.contributions.useSlot(Ot, { selected_user: S ?? {} }), w = e.capabilities.has(kt), D = zt(S, w, C, e.capabilities), O = D.find((e) => e.id === l) ?? D[0] ?? null, k = f === "actions", A = Rt(m(async (e) => {
		if (S) {
			if (e.kind === "enable") {
				await t.enableUser(S.id);
				return;
			}
			await t.disableUser(S.id, {
				...e.reason ? { reason: e.reason } : {},
				...e.until ? { disabled_until: e.until } : {}
			});
		}
	}, [t, S]), n.refetch), ee = (e) => {
		if (e.preventDefault(), !S || !w) return;
		let t = new FormData(e.currentTarget), n = String(t.get("reason") ?? "").trim(), r = String(t.get("disabled_until") ?? "").trim(), i = r ? new Date(r).toISOString() : void 0;
		A.mutate({
			kind: "disable",
			...n ? { reason: n } : {},
			...i ? { until: i } : {}
		});
	};
	return /* @__PURE__ */ y(re, {
		moduleId: "lenso/auth",
		surfaceId: "users",
		children: /* @__PURE__ */ b(M, {
			"data-page": "auth-users-page",
			children: [/* @__PURE__ */ b(M.Header, { children: [/* @__PURE__ */ b(M.Heading, { children: [/* @__PURE__ */ y(M.Title, { children: k ? "User actions" : "Users" }), /* @__PURE__ */ y(M.Description, { children: k ? "Core Auth operations and module-contributed actions for the selected identity." : "User identities registered by Auth, with actions contributed by password and phone modules." })] }), /* @__PURE__ */ y(M.Actions, { children: k ? `Selected user · ${S?.id ?? "none"}` : "Schema-admin surface  ·  live runtime data" })] }), /* @__PURE__ */ b(M.Body, {
				"data-page-slot": "auth-users-page__body",
				children: [/* @__PURE__ */ y("div", {
					...T(E.pageFilters, q.filters),
					"data-page-slot": "auth-users-page__filters",
					children: k ? /* @__PURE__ */ b(u, { children: [
						/* @__PURE__ */ y(J, {
							ariaLabel: "Action view",
							value: "all",
							children: /* @__PURE__ */ y("option", {
								value: "all",
								children: "All actions"
							})
						}),
						/* @__PURE__ */ y(J, {
							ariaLabel: "Action owner",
							value: "all",
							children: /* @__PURE__ */ y("option", {
								value: "all",
								children: "Core + extensions"
							})
						}),
						/* @__PURE__ */ y(J, {
							ariaLabel: "Action state",
							value: "available",
							children: /* @__PURE__ */ y("option", {
								value: "available",
								children: "Available now"
							})
						})
					] }) : /* @__PURE__ */ b(u, { children: [
						/* @__PURE__ */ y(J, {
							ariaLabel: "User view",
							value: "all",
							children: /* @__PURE__ */ y("option", {
								value: "all",
								children: "All users"
							})
						}),
						/* @__PURE__ */ b(J, {
							ariaLabel: "Identity type",
							onChange: (e) => i(e),
							value: r,
							children: [
								/* @__PURE__ */ y("option", {
									value: "all",
									children: "Any identity"
								}),
								/* @__PURE__ */ y("option", {
									value: "registered",
									children: "Registered"
								}),
								/* @__PURE__ */ y("option", {
									value: "anonymous",
									children: "Anonymous"
								})
							]
						}),
						/* @__PURE__ */ b(J, {
							ariaLabel: "User state",
							onChange: (e) => o(e),
							value: a,
							children: [
								/* @__PURE__ */ y("option", {
									value: "all",
									children: "Any state"
								}),
								/* @__PURE__ */ y("option", {
									value: "active",
									children: "Active"
								}),
								/* @__PURE__ */ y("option", {
									value: "disabled",
									children: "Disabled"
								})
							]
						})
					] })
				}), n.isPending ? /* @__PURE__ */ y(X, {
					description: "Reading users from the selected Managed Service.",
					title: "Loading Auth users"
				}) : n.isError ? /* @__PURE__ */ y(X, {
					description: Z(n.error),
					title: "Auth users could not be loaded"
				}) : /* @__PURE__ */ b(L, {
					"data-page-slot": "auth-users-page__workspace",
					inspectorWidth: 376,
					children: [/* @__PURE__ */ b(L.Main, { children: [/* @__PURE__ */ y(he, {
						meta: k ? `${D.length} registered` : "Latest records",
						title: k ? "Action registry" : "User directory"
					}), /* @__PURE__ */ y(_e, { children: k ? /* @__PURE__ */ y(Mt, {
						actions: D,
						onSelect: d,
						selectedAction: O
					}) : /* @__PURE__ */ b(u, { children: [/* @__PURE__ */ y(F, { columns: [
						"User",
						"Anonymous",
						"Created",
						"State"
					] }), x.length === 0 ? /* @__PURE__ */ y(X, {
						description: "Adjust the identity or state filters to see other users.",
						title: "No users match these filters"
					}) : x.map((e) => /* @__PURE__ */ y(I, {
						cells: [
							e.isAnonymous ? "Yes" : "No",
							K(e.createdAt),
							/* @__PURE__ */ y(P, {
								tone: Q(e.status),
								children: $(e.status)
							}, `${e.id}-state`)
						],
						interactive: !0,
						onActivate: () => c(e.id),
						primary: e.id,
						secondary: e.isAnonymous ? "Anonymous identity" : "Registered identity",
						selected: S?.id === e.id
					}, e.id))] }) })] }), /* @__PURE__ */ y(L.Inspector, { children: /* @__PURE__ */ y(Pt, {
						actionRegistry: D,
						canManage: w,
						extensionActions: C,
						inspectorTab: f,
						mutation: A,
						onChangeTab: p,
						onDisable: ee,
						onEnable: () => A.mutate({ kind: "enable" }),
						selectedAction: O,
						user: S
					}) })]
				})]
			})]
		})
	});
}
function Mt({ actions: e, onSelect: t, selectedAction: n }) {
	return /* @__PURE__ */ b(u, { children: [/* @__PURE__ */ y(F, { columns: [
		"Action",
		"Kind",
		"Effect",
		"State"
	] }), e.map((e) => /* @__PURE__ */ y(I, {
		cells: [
			e.kind,
			e.effect,
			/* @__PURE__ */ y(P, {
				tone: e.available ? "success" : "neutral",
				children: e.available ? "Available" : "Unavailable"
			}, `${e.id}-state`)
		],
		interactive: !0,
		onActivate: () => t(e.id),
		primary: e.label,
		secondary: e.owner,
		selected: n?.id === e.id
	}, e.id))] });
}
function Nt() {
	let e = vt(), t = _(() => xt(e), [e]), n = Lt(m(() => t.listSessions({ limit: 200 }), [t])), [r, i] = v("all"), [a, o] = v("all"), [s, c] = v(null), l = n.data?.records, u = _(() => Tt(l ?? []), [l]), d = _(() => Et(u, r, a), [
		a,
		u,
		r
	]), f = d.find((e) => e.id === s) ?? d[0] ?? u.find((e) => e.id === s) ?? null, p = e.capabilities.has(At), h = Rt(m(async () => {
		f && await t.revokeSession(f.id);
	}, [t, f]), n.refetch);
	return /* @__PURE__ */ y(re, {
		moduleId: "lenso/auth",
		surfaceId: "sessions",
		children: /* @__PURE__ */ b(M, {
			"data-page": "auth-sessions-page",
			children: [/* @__PURE__ */ b(M.Header, { children: [/* @__PURE__ */ b(M.Heading, { children: [/* @__PURE__ */ y(M.Title, { children: "Sessions" }), /* @__PURE__ */ y(M.Description, { children: "Authentication sessions, expiry state, and revocation evidence owned by Auth." })] }), /* @__PURE__ */ y(M.Actions, { children: "Runtime surface · revocation is auditable" })] }), /* @__PURE__ */ b(M.Body, {
				"data-page-slot": "auth-sessions-page__body",
				children: [/* @__PURE__ */ b("div", {
					...T(E.pageFilters, q.filters),
					"data-page-slot": "auth-sessions-page__filters",
					children: [
						/* @__PURE__ */ y(J, {
							ariaLabel: "Session view",
							value: "all",
							children: /* @__PURE__ */ y("option", {
								value: "all",
								children: "All sessions"
							})
						}),
						/* @__PURE__ */ b(J, {
							ariaLabel: "Session expiry",
							onChange: (e) => o(e),
							value: a,
							children: [
								/* @__PURE__ */ y("option", {
									value: "all",
									children: "Any expiry"
								}),
								/* @__PURE__ */ y("option", {
									value: "unexpired",
									children: "Not expired"
								}),
								/* @__PURE__ */ y("option", {
									value: "expired",
									children: "Expired"
								})
							]
						}),
						/* @__PURE__ */ b(J, {
							ariaLabel: "Session state",
							onChange: (e) => i(e),
							value: r,
							children: [
								/* @__PURE__ */ y("option", {
									value: "all",
									children: "Any state"
								}),
								/* @__PURE__ */ y("option", {
									value: "active",
									children: "Active"
								}),
								/* @__PURE__ */ y("option", {
									value: "expired",
									children: "Expired"
								}),
								/* @__PURE__ */ y("option", {
									value: "revoked",
									children: "Revoked"
								})
							]
						})
					]
				}), n.isPending ? /* @__PURE__ */ y(X, {
					description: "Reading sessions from the selected Managed Service.",
					title: "Loading Auth sessions"
				}) : n.isError ? /* @__PURE__ */ y(X, {
					description: Z(n.error),
					title: "Auth sessions could not be loaded"
				}) : /* @__PURE__ */ b(L, {
					"data-page-slot": "auth-sessions-page__workspace",
					inspectorWidth: 376,
					children: [/* @__PURE__ */ b(L.Main, { children: [/* @__PURE__ */ y(he, {
						meta: "Latest records",
						title: "Session registry"
					}), /* @__PURE__ */ b(_e, { children: [/* @__PURE__ */ y(F, { columns: [
						"Session",
						"Device",
						"Expires",
						"State"
					] }), d.length === 0 ? /* @__PURE__ */ y(X, {
						description: "Adjust the state filter to see other sessions.",
						title: "No sessions match this filter"
					}) : d.map((e) => /* @__PURE__ */ y(I, {
						cells: [
							e.deviceId === "-" ? "No device" : e.deviceId,
							K(e.expiresAt),
							/* @__PURE__ */ y(P, {
								tone: Q(e.status),
								children: $(e.status)
							}, `${e.id}-state`)
						],
						interactive: !0,
						onActivate: () => c(e.id),
						primary: e.id,
						secondary: e.userId,
						selected: f?.id === e.id
					}, e.id))] })] }), /* @__PURE__ */ y(L.Inspector, { children: /* @__PURE__ */ y(It, {
						canRevoke: p,
						onRevoke: () => h.mutate(void 0),
						revokeSession: h,
						session: f
					}) })]
				})]
			})]
		})
	});
}
function Pt({ actionRegistry: e, canManage: t, extensionActions: n, inspectorTab: r, mutation: i, onChangeTab: a, onDisable: o, onEnable: s, selectedAction: c, user: l }) {
	if (!l) return /* @__PURE__ */ y(X, {
		description: "Choose a user from the directory to inspect it.",
		title: "No user selected"
	});
	let d = r === "actions";
	return /* @__PURE__ */ y(R, {
		status: /* @__PURE__ */ y(P, {
			tone: d ? c?.available ? "success" : "neutral" : Q(l.status),
			children: d ? c?.available ? "Available for selected user" : "Unavailable for selected user" : `${$(l.status)} · created ${Bt(l.createdAt)}`
		}),
		subtitle: d ? l.id : l.isAnonymous ? "Anonymous identity" : "Registered identity",
		title: d ? "Actions" : l.id,
		children: /* @__PURE__ */ b(V, {
			density: "inspector",
			stylex: q.tabs,
			children: [/* @__PURE__ */ y(V.List, { children: [
				"details",
				"sessions",
				"actions"
			].map((e) => /* @__PURE__ */ y(V.Tab, {
				onClick: () => a(e),
				selected: r === e,
				children: $(e)
			}, e)) }), /* @__PURE__ */ y(V.Panel, { children: r === "details" ? /* @__PURE__ */ b(u, { children: [
				/* @__PURE__ */ y(R.Section, {
					title: "Identity",
					children: /* @__PURE__ */ y(Y, { items: [
						`Anonymous: ${l.isAnonymous ? "yes" : "no"}`,
						"Device: -",
						`Created: ${K(l.createdAt)}`
					] })
				}),
				/* @__PURE__ */ y(R.Section, {
					title: "Access state",
					children: /* @__PURE__ */ y(Y, { items: [
						`Disabled: ${l.status === "disabled" ? "yes" : "no"}`,
						`Reason: ${l.disabledReason}`,
						`Until: ${K(l.disabledUntil)}`
					] })
				}),
				/* @__PURE__ */ y(R.Section, {
					title: "Surface",
					children: /* @__PURE__ */ y(Y, { items: [
						"Workspace: Auth",
						"Group: Directory",
						"Surface: Users"
					] })
				}),
				/* @__PURE__ */ y(R.Section, {
					title: "Extension actions",
					children: /* @__PURE__ */ y(Y, { items: n.length > 0 ? [...n.map((e) => e.label), `Slot: ${Ot}`] : ["No installed Auth module contributes an operation."] })
				})
			] }) : r === "sessions" ? /* @__PURE__ */ y(ze, {
				action: /* @__PURE__ */ y("span", {
					className: "xbhfiaw",
					children: "Open Sessions from the Auth workspace."
				}),
				description: "Session records remain independently capability-gated.",
				title: "Related sessions"
			}) : /* @__PURE__ */ y(Ft, {
				actions: e,
				canManage: t,
				mutation: i,
				onDisable: o,
				onEnable: s,
				selectedAction: c,
				user: l
			}) })]
		})
	});
}
function Ft({ actions: e, canManage: t, mutation: n, onDisable: r, onEnable: i, selectedAction: a, user: o }) {
	let [s, c] = v(null), l = e.filter((e) => e.kind === "Extension");
	return g(() => {
		c(null);
	}, [a?.id]), a ? /* @__PURE__ */ b("div", {
		className: "x78zum5 xdt5ytf x883omv",
		children: [
			/* @__PURE__ */ y(R.Section, {
				title: "Core controls",
				children: /* @__PURE__ */ y(Y, { items: [
					"Disable user",
					"Enable user",
					"Capability-gated"
				] })
			}),
			l.map((e) => /* @__PURE__ */ y(R.Section, {
				title: `${Vt(e.owner)} extension`,
				children: /* @__PURE__ */ y(Y, { items: [
					e.label,
					`Owner: ${e.owner}`,
					"Slot contribution"
				] })
			}, e.id)),
			s === "disable" && o.status === "active" ? /* @__PURE__ */ y(R.Section, {
				title: "Confirm disable user",
				children: /* @__PURE__ */ b("form", {
					className: "xrvj5dj x883omv x12ulsxz",
					onSubmit: r,
					children: [
						/* @__PURE__ */ b(H, { children: [/* @__PURE__ */ y(H.Label, { children: "Reason" }), /* @__PURE__ */ y(Qe, {
							name: "reason",
							placeholder: "Optional operator reason"
						})] }),
						/* @__PURE__ */ b(H, { children: [/* @__PURE__ */ y(H.Label, { children: "Disable until" }), /* @__PURE__ */ y(Qe, {
							name: "disabled_until",
							type: "datetime-local"
						})] }),
						/* @__PURE__ */ y(N, {
							disabled: !t || n.isPending,
							type: "submit",
							variant: "danger",
							children: n.isPending ? "Disabling…" : "Disable user"
						})
					]
				})
			}) : null,
			/* @__PURE__ */ b(R.Section, {
				title: "Execution",
				children: [
					/* @__PURE__ */ y(Y, { items: [
						"Confirmation required",
						"Receipts retained",
						"Effects owned by modules"
					] }),
					n.isError ? /* @__PURE__ */ y("p", {
						className: "xy6l0hh xbhfiaw x1k6wstc x1xxsxie x1ghz6dp xj0a0fe",
						children: Z(n.error)
					}) : null,
					!t && a.kind === "Core" ? "This operator cannot manage Auth users." : null
				]
			}),
			/* @__PURE__ */ b(R.Actions, { children: [o.status === "active" ? /* @__PURE__ */ y(N, {
				disabled: !t || n.isPending,
				onClick: () => c("disable"),
				variant: "danger",
				children: "Disable user"
			}) : /* @__PURE__ */ y(N, {
				disabled: !t || n.isPending,
				onClick: i,
				variant: "primary",
				children: n.isPending ? "Enabling…" : "Enable user"
			}), l.map((e) => /* @__PURE__ */ y(N, {
				disabled: !0,
				title: "This contribution is registered, but generic contribution execution is not exposed by the current Console Surface API.",
				children: e.label
			}, e.id))] })
		]
	}) : /* @__PURE__ */ y(X, {
		description: "No core or module-contributed action is registered for this user.",
		title: "No action selected"
	});
}
function It({ canRevoke: e, onRevoke: t, revokeSession: n, session: r }) {
	let [i, a] = v("details");
	return r ? /* @__PURE__ */ b(R, {
		status: /* @__PURE__ */ y(P, {
			tone: Q(r.status),
			children: `${$(r.status)} · expires ${Bt(r.expiresAt)}`
		}),
		subtitle: r.userId,
		title: r.id,
		children: [/* @__PURE__ */ b(V, {
			density: "inspector",
			stylex: q.tabs,
			children: [/* @__PURE__ */ b(V.List, { children: [/* @__PURE__ */ y(V.Tab, {
				onClick: () => a("details"),
				selected: i === "details",
				children: "Details"
			}), /* @__PURE__ */ y(V.Tab, {
				onClick: () => a("evidence"),
				selected: i === "evidence",
				children: "Evidence"
			})] }), /* @__PURE__ */ y(V.Panel, { children: i === "details" ? /* @__PURE__ */ b(u, { children: [
				/* @__PURE__ */ y(R.Section, {
					title: "Session",
					children: /* @__PURE__ */ y(Y, { items: [
						`User: ${r.userId}`,
						`Device: ${r.deviceId}`,
						`Created: ${K(r.createdAt)}`
					] })
				}),
				/* @__PURE__ */ y(R.Section, {
					title: "Client",
					children: /* @__PURE__ */ y(Y, { items: [
						`IP: ${r.clientIp}`,
						`Agent: ${r.userAgent}`,
						r.deviceId === "-" ? "No device" : "Device bound"
					] })
				}),
				/* @__PURE__ */ y(R.Section, {
					title: "Lifecycle",
					children: /* @__PURE__ */ y(Y, { items: [
						`Expires: ${K(r.expiresAt)}`,
						`Revoked: ${K(r.revokedAt)}`,
						`State: ${r.status}`
					] })
				}),
				/* @__PURE__ */ y(R.Section, {
					title: "Evidence",
					children: /* @__PURE__ */ y(Y, { items: [
						"Action: revoke_session",
						"Owner: auth",
						"Receipt retained"
					] })
				})
			] }) : /* @__PURE__ */ y(R.Section, {
				title: "Revocation evidence",
				children: /* @__PURE__ */ b(z, { children: [
					/* @__PURE__ */ y(z.Row, {
						label: "Action",
						value: "revoke_session"
					}),
					/* @__PURE__ */ y(z.Row, {
						label: "Owner",
						value: "auth"
					}),
					/* @__PURE__ */ y(z.Row, {
						label: "Revoked",
						value: K(r.revokedAt)
					}),
					/* @__PURE__ */ y(z.Row, {
						label: "Receipt",
						value: "Retained"
					})
				] })
			}) })]
		}), r.status === "active" ? /* @__PURE__ */ b(R.Actions, { children: [
			/* @__PURE__ */ y(N, {
				disabled: !e || n.isPending,
				onClick: t,
				variant: "danger",
				children: n.isPending ? "Revoking…" : "Revoke session"
			}),
			e ? null : "This operator cannot revoke Auth sessions.",
			n.isError ? /* @__PURE__ */ y("p", {
				className: "xy6l0hh xbhfiaw x1k6wstc x1xxsxie x1ghz6dp xj0a0fe",
				children: Z(n.error)
			}) : null
		] }) : null]
	}) : /* @__PURE__ */ y(X, {
		description: "Choose a session from the directory to inspect it.",
		title: "No session selected"
	});
}
function J({ ariaLabel: e, children: t, onChange: n, value: r }) {
	return /* @__PURE__ */ y(me, {
		"aria-label": e,
		icon: /* @__PURE__ */ y("span", {
			className: "x1rg5ohu x1k6wstc xo5v014 x1uqg51p",
			children: "⌄"
		}),
		onChange: (e) => n?.(e.currentTarget.value),
		value: r,
		children: t
	});
}
function Y({ items: e }) {
	return /* @__PURE__ */ y("div", {
		className: "xrvj5dj x1nejdyq",
		children: e.map((e, t) => /* @__PURE__ */ y("span", { children: e }, t))
	});
}
function X({ description: e, title: t }) {
	return /* @__PURE__ */ y(ze, {
		description: e,
		stylex: q.state,
		title: t
	});
}
function Lt(e) {
	let [t, n] = v(0), [r, i] = v({
		error: null,
		isError: !1,
		isPending: !0
	});
	g(() => {
		let t = !0;
		return i((e) => ({
			...e,
			error: null,
			isError: !1,
			isPending: !0
		})), e().then((e) => {
			t && i({
				data: e,
				error: null,
				isError: !1,
				isPending: !1
			});
		}).catch((e) => {
			t && i({
				error: e,
				isError: !0,
				isPending: !1
			});
		}), () => {
			t = !1;
		};
	}, [e, t]);
	let a = m(() => n((e) => e + 1), []);
	return {
		...r,
		refetch: a
	};
}
function Rt(e, t) {
	let [n, r] = v({
		error: null,
		isError: !1,
		isPending: !1
	}), i = m((n) => {
		r({
			error: null,
			isError: !1,
			isPending: !0
		}), e(n).then(() => {
			r({
				error: null,
				isError: !1,
				isPending: !1
			}), t();
		}).catch((e) => {
			r({
				error: e,
				isError: !0,
				isPending: !1
			});
		});
	}, [e, t]);
	return {
		...n,
		mutate: i
	};
}
function zt(e, t, n, r) {
	let i = [{
		available: !!(e && e.status === "active" && t),
		effect: "Blocks new sessions",
		id: "auth:disable-user",
		kind: "Core",
		label: "Disable user",
		operationId: "auth/disable-user",
		owner: "auth"
	}, {
		available: !!(e && e.status === "disabled" && t),
		effect: "Restores access",
		id: "auth:enable-user",
		kind: "Core",
		label: "Enable user",
		operationId: "auth/enable-user",
		owner: "auth"
	}], a = n.map((t) => ({
		available: !!(e && t.requiredCapabilities.every((e) => r.has(e))),
		effect: t.label.toLowerCase().includes("password") ? "Rotates credential" : "Module-contributed effect",
		id: t.key,
		kind: "Extension",
		label: t.label,
		operationId: t.operationId,
		owner: t.key.split(/[.:]/u)[0] || "auth-extension"
	}));
	return [...i, ...a];
}
function Z(e) {
	return e instanceof Error ? e.message : String(e);
}
function Q(e) {
	return e === "active" ? "success" : "danger";
}
function Bt(e) {
	if (e === "-") return e;
	let t = Date.parse(e);
	return Number.isFinite(t) ? new Intl.DateTimeFormat("en", {
		day: "numeric",
		month: "short",
		timeZone: "UTC"
	}).format(new Date(t)) : e;
}
function Vt(e) {
	return $(e.replace(/^auth-/u, ""));
}
function $(e) {
	return e.charAt(0).toUpperCase() + e.slice(1);
}
//#endregion
//#region src/index.tsx
var Ht = mt({
	manifest: o({
		consoleUi: "^2.0.0",
		hostApi: "^2.1.0",
		moduleId: "lenso/auth",
		protocol: e,
		surfaces: [{
			area: "runtime",
			icon: "activity",
			id: "sessions",
			label: "Sessions",
			navigation: {
				group: {
					icon: "users",
					id: "directory",
					label: "Directory",
					order: 10
				},
				order: 60,
				workspace: {
					icon: "shield",
					id: "auth",
					label: "Auth"
				}
			},
			path: "/auth/sessions",
			requiredCapabilities: ["auth.sessions.read"]
		}, {
			area: "runtime",
			icon: "users",
			id: "users",
			label: "Users",
			navigation: {
				group: {
					icon: "users",
					id: "directory",
					label: "Directory",
					order: 10
				},
				order: 50,
				workspace: {
					icon: "shield",
					id: "auth",
					label: "Auth"
				}
			},
			path: "/auth/users",
			requiredCapabilities: ["auth.users.read"]
		}]
	}),
	surfaces: {
		sessions: Nt,
		users: jt
	}
});
//#endregion
export { Nt as AuthSessionsPage, jt as AuthUsersPage, Ht as authConsoleUiModule, Ht as default };
