@sencha/reext
Advanced tools
Comparing version 1.0.215 to 1.0.300
@@ -1,5 +0,5 @@ | ||
import { jsxs as E, jsx as f, Fragment as se } from "react/jsx-runtime"; | ||
import J, { useState as K, useRef as ee, useEffect as L } from "react"; | ||
import { jsxs as S, jsx as f, Fragment as se } from "react/jsx-runtime"; | ||
import H, { useState as K, useRef as ee, useEffect as L } from "react"; | ||
import { createPortal as le } from "react-dom"; | ||
const ke = "1.0.215", Le = (e, t) => { | ||
const ke = "1.0.300", Le = (e, t) => { | ||
for (var r in e) typeof e[r] == "function" && function(i, n) { | ||
@@ -16,12 +16,12 @@ var s = r; | ||
}, Me = (e, t, r) => { | ||
const [i, n] = J.useReducer(e, t), s = J.useRef(null); | ||
const [i, n] = H.useReducer(e, t), s = H.useRef(null); | ||
var a = r.middleware; | ||
a === void 0 && (a = []); | ||
var o = r.middlewareafter; | ||
return o === void 0 && (o = []), J.useEffect(() => { | ||
return o === void 0 && (o = []), H.useEffect(() => { | ||
o.map((l) => l(s.current, i)); | ||
}, [o, i]), [i, (l) => { | ||
a.map((y) => y(l, i, r)), s.current = l, n(l); | ||
a.map((p) => p(l, i, r)), s.current = l, n(l); | ||
}]; | ||
}, Re = J.createContext(), Ce = () => J.useContext(Re), Ue = (e, t) => { | ||
}, Re = H.createContext(), Ce = () => H.useContext(Re), Ue = (e, t) => { | ||
var r = { ...e }; | ||
@@ -35,11 +35,11 @@ return r[t.type.toLowerCase()] = t.payload, window.vscodeapi !== void 0 && vscodeapi.setState(r), r; | ||
for (let o in t) t.hasOwnProperty(o) && (i[o.toLowerCase()] = t[o].value); | ||
J.useEffect(() => { | ||
H.useEffect(() => { | ||
e.dispatchTrace && e.middleware.push(ze); | ||
}, [e]), e.actionTrace && Le(r, e.actionStack); | ||
const [n, s] = Me(Ue, i, e), a = (o, l) => { | ||
var y = {}; | ||
for (const [c] of Object.entries(l)) y[c] = o[c]; | ||
return y; | ||
var p = {}; | ||
for (const [c] of Object.entries(l)) p[c] = o[c]; | ||
return p; | ||
}; | ||
return J.createElement(Re.Provider, { value: { ...a(n, i), ...r } }, e.children); | ||
return H.createElement(Re.Provider, { value: { ...a(n, i), ...r } }, e.children); | ||
}; | ||
@@ -84,11 +84,11 @@ function re(e, t) { | ||
} | ||
function Fe({ reextplugin: e, rid: t, reactversion: r, extver: i, extlocation: n, exttoolkit: s, exttheme: a, type: o, packageversion: l, style: y, flexdirection: c, ...v }) { | ||
return /* @__PURE__ */ E("div", { name: "ReExtRootLogo", "data-rid": v.rid, style: { display: "flex", flexDirection: c, alignItems: "center", color: "black", padding: 5, ...y }, children: [ | ||
function Fe({ reextplugin: e, rid: t, reactversion: r, extver: i, extlocation: n, exttoolkit: s, exttheme: a, type: o, packageversion: l, style: p, flexdirection: c, ...m }) { | ||
return /* @__PURE__ */ S("div", { name: "ReExtRootLogo", "data-rid": m.rid, style: { display: "flex", flexDirection: c, alignItems: "center", color: "black", padding: 5, ...p }, children: [ | ||
/* @__PURE__ */ f("img", { style: { height: 40, width: 80 }, src: "../ReExt/ReExt.png" }), | ||
/* @__PURE__ */ E("div", { style: { margin: "0 0 0 3px" }, children: [ | ||
/* @__PURE__ */ f("div", { style: { margin: "0 0 0 1px", fontSize: 12, color: "black" }, children: /* @__PURE__ */ f("a", { style: v.style, target: "_blank", rel: "noreferrer", href: "https://www.npmjs.com/package/@sencha/reext", children: /* @__PURE__ */ E("i", { children: [ | ||
/* @__PURE__ */ S("div", { style: { margin: "0 0 0 3px" }, children: [ | ||
/* @__PURE__ */ f("div", { style: { margin: "0 0 0 1px", fontSize: 12, color: "black" }, children: /* @__PURE__ */ f("a", { style: m.style, target: "_blank", rel: "noreferrer", href: "https://www.npmjs.com/package/@sencha/reext", children: /* @__PURE__ */ S("i", { children: [ | ||
"ReExt ", | ||
l | ||
] }) }) }), | ||
/* @__PURE__ */ f("div", { style: { fontSize: "10px", margin: "2px 0 0 0" }, children: /* @__PURE__ */ E("span", { style: { margin: "0 0 0 0" }, children: [ | ||
/* @__PURE__ */ f("div", { style: { fontSize: "10px", margin: "2px 0 0 0" }, children: /* @__PURE__ */ S("span", { style: { margin: "0 0 0 0" }, children: [ | ||
o, | ||
@@ -98,9 +98,9 @@ ", reextplugin: ", | ||
] }) }), | ||
/* @__PURE__ */ f("div", { style: { fontSize: "10px", margin: "2px 0 0 0" }, children: /* @__PURE__ */ E("span", { style: { margin: "0 0 0 0" }, children: [ | ||
/* @__PURE__ */ f("div", { style: { fontSize: "10px", margin: "2px 0 0 0" }, children: /* @__PURE__ */ S("span", { style: { margin: "0 0 0 0" }, children: [ | ||
"React: ", | ||
/* @__PURE__ */ f("b", { children: r }) | ||
] }) }), | ||
/* @__PURE__ */ f("div", { style: { fontSize: "10px", margin: "2px 0 0 0" }, children: /* @__PURE__ */ E("span", { style: { margin: "0 0 0 0" }, children: [ | ||
/* @__PURE__ */ f("div", { style: { fontSize: "10px", margin: "2px 0 0 0" }, children: /* @__PURE__ */ S("span", { style: { margin: "0 0 0 0" }, children: [ | ||
"ExtJS: ", | ||
/* @__PURE__ */ E("b", { children: [ | ||
/* @__PURE__ */ S("b", { children: [ | ||
i, | ||
@@ -112,8 +112,8 @@ " (", | ||
] }) }), | ||
/* @__PURE__ */ E("div", { style: { fontSize: "10px", margin: "2px 0 0 0" }, children: [ | ||
/* @__PURE__ */ E("span", { style: { margin: "0 0 0 0" }, children: [ | ||
/* @__PURE__ */ S("div", { style: { fontSize: "10px", margin: "2px 0 0 0" }, children: [ | ||
/* @__PURE__ */ S("span", { style: { margin: "0 0 0 0" }, children: [ | ||
"toolkit: ", | ||
/* @__PURE__ */ f("b", { children: s }) | ||
] }), | ||
/* @__PURE__ */ E("span", { style: { margin: "0 0 0 5px" }, children: [ | ||
/* @__PURE__ */ S("span", { style: { margin: "0 0 0 5px" }, children: [ | ||
"theme: ", | ||
@@ -168,23 +168,23 @@ /* @__PURE__ */ f("b", { children: a }) | ||
s.map((o) => { | ||
var l, y; | ||
var l, p; | ||
if (t.xtype == "tabpanel") { | ||
var c; | ||
window.Ext.ReExtTheme === "classic" ? c = "Ext.panel.Panel" : c = "Ext.Panel", l = window.Ext.create(c, { layout: "fit", title: o.props.title, cls: "ReExtTabChildRoot", items: [{ xtype: "component", listeners: { activate: (u) => { | ||
y = le(o, u.el.dom), n.push(y); | ||
var S = u.el.dom.parentNode; | ||
r.observe(S); | ||
p = le(o, u.el.dom), n.push(p); | ||
var $ = u.el.dom.parentNode; | ||
r.observe($); | ||
}, render: (u) => { | ||
y = le(o, u.el.dom), n.push(y); | ||
var S = u.el.dom.parentNode; | ||
r.observe(S); | ||
p = le(o, u.el.dom), n.push(p); | ||
var $ = u.el.dom.parentNode; | ||
r.observe($); | ||
} }, style: { backgroundColor: "transparent", display: "flex", height: "100%", width: "100%" } }] }), i.push(l); | ||
} else { | ||
let { flex: u, region: S, split: R, width: _, height: j, minWidth: b, maxWidth: I, minHeight: d, maxHeight: A } = o.props.config || {}, m = {}; | ||
u !== void 0 && (m.flex = u), S !== void 0 && (m.region = S), R !== void 0 && (m.split = R), _ !== void 0 && (m.width = _), j !== void 0 && (m.height = j), b !== void 0 && (m.minWidth = b), I !== void 0 && (m.maxWidth = I), d !== void 0 && (m.minHeight = d), A !== void 0 && (m.maxHeight = A); | ||
var v = { items: [{ xtype: "component", listeners: { render: (h) => { | ||
y = le(o, h.el.dom), n.push(y); | ||
var H = h.el.dom.parentNode; | ||
r.observe(H); | ||
} }, style: { flex: 1, backgroundColor: "transparent", display: "flex", height: "100%", width: "100%" } }], ...m }; | ||
l = { xtype: "container", layout: "fit", ...v }, i.push(l); | ||
let { flex: u, region: $, split: P, width: j, height: I, minWidth: b, maxWidth: J, minHeight: O, maxHeight: d } = o.props.config || {}, R = {}; | ||
u !== void 0 && (R.flex = u), $ !== void 0 && (R.region = $), P !== void 0 && (R.split = P), j !== void 0 && (R.width = j), I !== void 0 && (R.height = I), b !== void 0 && (R.minWidth = b), J !== void 0 && (R.maxWidth = J), O !== void 0 && (R.minHeight = O), d !== void 0 && (R.maxHeight = d), console.log("filteredConfig:", R), console.log(o); | ||
var m = { items: [{ xtype: "component", listeners: { render: (g) => { | ||
p = le(o, g.el.dom), n.push(p); | ||
var h = g.el.dom.parentNode; | ||
r.observe(h); | ||
} }, style: { flex: 1, backgroundColor: "transparent", display: "flex", height: "100%", width: "100%" } }], ...R }; | ||
l = { xtype: "container", layout: "fit", ...m }, i.push(l); | ||
} | ||
@@ -246,37 +246,37 @@ }); | ||
a.current = n; | ||
const o = () => a.current, [l, y] = K(null), c = ee(null); | ||
const o = () => a.current, [l, p] = K(null), c = ee(null); | ||
c.current = l; | ||
const v = () => c.current, u = ee(null); | ||
var S = Ye(); | ||
const [R, _] = K(!1); | ||
const m = () => c.current, u = ee(null); | ||
var $ = Ye(); | ||
const [P, j] = K(!1); | ||
L(() => { | ||
try { | ||
var w = __IS_REEXT_RUNNING__; | ||
_(!0); | ||
j(!0); | ||
} catch { | ||
_(!1); | ||
j(!1); | ||
} | ||
}, []), L(() => { | ||
var w, g = "false"; | ||
var w, x = "false"; | ||
if (!(typeof window === void 0 || typeof window > "u")) | ||
return (async () => { | ||
if (await Qe(), e.children !== void 0 && e.config.items === void 0 && (e.config.items = []), g === "false" && e.xtype !== "logo") { | ||
var $; | ||
v() == null ? $ = e.config : $ = v(); | ||
if (await Qe(), e.children !== void 0 && e.config.items === void 0 && (e.config.items = []), x === "false" && e.xtype !== "logo") { | ||
var E; | ||
m() == null ? E = e.config : E = m(); | ||
try { | ||
var p = qe(e.xtype, $, e, o), O = Ext.ClassManager.getByAlias("widget." + p.xtype); | ||
if (O === void 0) { | ||
var M = "ReExt " + p.xtype + " could not be created"; | ||
p = { xtype: "label", text: M, style: { color: "red", background: "lightgray" } }; | ||
var y = qe(e.xtype, E, e, o), T = Ext.ClassManager.getByAlias("widget." + y.xtype); | ||
if (T === void 0) { | ||
var k = "ReExt " + y.xtype + " could not be created"; | ||
y = { xtype: "label", text: k, style: { color: "red", background: "lightgray" } }; | ||
} | ||
if (p.height === void 0 && p.xtype !== "window" && (window.Ext.isClassic === !0 && p.xtype === "grid" ? p.height = 0 : p.height = "100%"), p.width === void 0 && p.xtype !== "window" && (window.Ext.isClassic === !0 && p.xtype === "grid" ? p.width = 0 : p.width = "100%"), window.Ext.isClassic === !0) { | ||
if (y.height === void 0 && y.xtype !== "window" && (window.Ext.isClassic === !0 && y.xtype === "grid" ? y.height = 0 : y.height = "100%"), y.width === void 0 && y.xtype !== "window" && (window.Ext.isClassic === !0 && y.xtype === "grid" ? y.width = 0 : y.width = "100%"), window.Ext.isClassic === !0) { | ||
const N = (oe) => { | ||
var V = oe.el.dom.parentNode; | ||
S.observe(V); | ||
$.observe(V); | ||
}; | ||
p.listeners === void 0 ? p.listeners = { boxready: N } : p.listeners.boxready = N; | ||
y.listeners === void 0 ? y.listeners = { boxready: N } : y.listeners.boxready = N; | ||
} | ||
p.xtype !== "window" && (p.renderTo = u.current), p.xtype === "tabpanel" && (p.deferredRender = !1); | ||
var T = ve(e.children, p, S); | ||
i(T.cpArray), T.childarray.length > 0 && (p.items = T.childarray), w = window.Ext.create(p), s(w), a.current = w, e.config !== void 0 && e.config.reference !== void 0 && e.ReExtParent !== void 0 && (e.ReExtParent.ReExtChildren === void 0 && (e.ReExtParent.ReExtChildren = []), e.ReExtParent.ReExtChildren.push(w)), u.current === null ? console.warn("ReExtRootRef.current,props", u.current, e) : (u.current.style.background = "transparent", u.current.firstChild.remove()), t.type !== null && t.type !== "production" && Ze(w, p.xtype, u.current), e.ready !== void 0 && e.ready(w); | ||
y.xtype !== "window" && (y.renderTo = u.current), y.xtype === "tabpanel" && (y.deferredRender = !1); | ||
var C = ve(e.children, y, $); | ||
i(C.cpArray), C.childarray.length > 0 && (y.items = C.childarray), w = window.Ext.create(y), s(w), a.current = w, e.config !== void 0 && e.config.reference !== void 0 && e.ReExtParent !== void 0 && (e.ReExtParent.ReExtChildren === void 0 && (e.ReExtParent.ReExtChildren = []), e.ReExtParent.ReExtChildren.push(w)), u.current === null ? console.warn("ReExtRootRef.current,props", u.current, e) : (u.current.style.background = "transparent", u.current.firstChild.remove()), t.type !== null && t.type !== "production" && Ze(w, y.xtype, u.current), e.ready !== void 0 && e.ready(w); | ||
} catch (N) { | ||
@@ -287,3 +287,3 @@ console.error("ReExt.jsx:", N); | ||
})(), () => { | ||
g = "true", !(typeof window === void 0 || typeof window > "u") && window.Ext !== void 0 && window.Ext.destroy !== void 0 && w != null && (s(null), window.Ext.destroy(w)); | ||
x = "true", !(typeof window === void 0 || typeof window > "u") && window.Ext !== void 0 && window.Ext.destroy !== void 0 && w != null && (s(null), window.Ext.destroy(w)); | ||
}; | ||
@@ -294,6 +294,6 @@ }, [t.type]), L(() => { | ||
e.children !== void 0 && e.config.items === void 0 && (e.config.items = []); | ||
for (const [T] of Object.entries(c.current)) { | ||
if (Ge(T) != null || T === "xtype") return; | ||
var w = re(c.current[T], "root"), g = re(e.config[T], "root"); | ||
w != null && delete w.listeners, g !== void 0 && w !== null && delete g.listeners; | ||
for (const [C] of Object.entries(c.current)) { | ||
if (Ge(C) != null || C === "xtype") return; | ||
var w = re(c.current[C], "root"), x = re(e.config[C], "root"); | ||
w != null && delete w.listeners, x !== void 0 && w !== null && delete x.listeners; | ||
const N = (oe) => { | ||
@@ -310,33 +310,33 @@ let V = [], Ke = JSON.stringify(oe, function(lr, q) { | ||
}; | ||
var $ = N(w), p = N(g), O = he($, p); | ||
if (!O && (Xe(a.current, T, g), T === "items")) { | ||
var M = ve(e.children, a.current, S); | ||
i(M); | ||
var E = N(w), y = N(x), T = he(E, y); | ||
if (!T && (Xe(a.current, C, x), C === "items")) { | ||
var k = ve(e.children, a.current, $); | ||
i(k); | ||
} | ||
} | ||
} | ||
y(e.config), c.current = e.config; | ||
p(e.config), c.current = e.config; | ||
} | ||
}, [e.config]); | ||
var j = "", b = "", I = "", d = ""; | ||
var I = "", b = "", J = "", O = ""; | ||
if (!(typeof window === void 0 || typeof window > "u")) { | ||
if (window.Ext !== void 0 && window.Ext.versions !== null && window.Ext.versions !== void 0) { | ||
b = window.Ext.versions.core.version, d = window.Ext.ReExtTheme, j = window.Ext.ReExtLocation; | ||
var A = window.Ext.isClassic; | ||
A === !0 ? I = "classic" : I = "modern"; | ||
b = window.Ext.versions.core.version, O = window.Ext.ReExtTheme, I = window.Ext.ReExtLocation; | ||
var d = window.Ext.isClassic; | ||
d === !0 ? J = "classic" : J = "modern"; | ||
} | ||
if (!(typeof window === void 0 || typeof window > "u")) { | ||
var m = ""; | ||
if (t.type === "production" || t.type === null ? m = "production" : m = `${t.type} - ${t.daysleft} days left`, e.xtype === "logo") | ||
var R = ""; | ||
if (t.type === "production" || t.type === null ? R = "production" : R = `${t.type} - ${t.daysleft} days left`, e.xtype === "logo") | ||
return /* @__PURE__ */ f( | ||
Fe, | ||
{ | ||
reextplugin: R, | ||
reextplugin: P, | ||
rid: e.rid, | ||
reactversion: J.version, | ||
reactversion: H.version, | ||
extver: b, | ||
extlocation: j, | ||
exttoolkit: I, | ||
exttheme: d, | ||
type: m, | ||
extlocation: I, | ||
exttoolkit: J, | ||
exttheme: O, | ||
type: R, | ||
packageversion: ke, | ||
@@ -347,9 +347,9 @@ flexdirection: e.flexdirection, | ||
); | ||
var h; | ||
e.style === void 0 || e.style.height === void 0 ? h = 1 : h = "none"; | ||
var H = ""; | ||
if (e.className !== void 0 && (H = e.className), e.xtype === "window") | ||
var g; | ||
e.style === void 0 || e.style.height === void 0 ? g = 1 : g = "none"; | ||
var h = ""; | ||
if (e.className !== void 0 && (h = e.className), e.xtype === "window") | ||
return null; | ||
var z, x, C = {}; | ||
return r == null ? (z = { ...e.style, ...C, flex: h, position: "relative", display: "flex", overflow: "hidden" }, x = H + " fill") : r.length === 0 ? (z = { ...e.style, ...C, flex: h, position: "relative", display: "flex", overflow: "hidden" }, x = H + " fill") : (z = { ...e.style, flex: h, position: "relative", display: "flex", overflow: "hidden" }, x = H), /* @__PURE__ */ f( | ||
var z, M, v = {}; | ||
return r == null ? (z = { ...e.style, ...v, flex: g, position: "relative", display: "flex", overflow: "hidden" }, M = h + " fill") : r.length === 0 ? (z = { ...e.style, ...v, flex: g, position: "relative", display: "flex", overflow: "hidden" }, M = h + " fill") : (z = { ...e.style, flex: g, position: "relative", display: "flex", overflow: "hidden" }, M = h), /* @__PURE__ */ f( | ||
"div", | ||
@@ -359,3 +359,3 @@ { | ||
"data-rid": e.rid, | ||
className: x, | ||
className: M, | ||
style: z, | ||
@@ -417,7 +417,7 @@ ref: u, | ||
} | ||
constructor(t) { | ||
var r; | ||
super(t), this.code = "ERR_JOSE_GENERIC", this.name = this.constructor.name, (r = Error.captureStackTrace) == null || r.call(Error, this, this.constructor); | ||
constructor(e) { | ||
var t; | ||
super(e), this.code = "ERR_JOSE_GENERIC", this.name = this.constructor.name, (t = Error.captureStackTrace) == null || t.call(Error, this, this.constructor); | ||
} | ||
}, P = class extends F { | ||
}, _ = class extends F { | ||
static get code() { | ||
@@ -443,3 +443,3 @@ return "ERR_JWT_CLAIM_VALIDATION_FAILED"; | ||
} | ||
}, k = class extends F { | ||
}, A = class extends F { | ||
constructor() { | ||
@@ -748,46 +748,46 @@ super(...arguments), this.code = "ERR_JWS_INVALID"; | ||
async function Tt(e, t, r) { | ||
if (!ne(e)) throw new k("Flattened JWS must be an object"); | ||
if (e.protected === void 0 && e.header === void 0) throw new k('Flattened JWS must have either of the "protected" or "header" members'); | ||
if (e.protected !== void 0 && typeof e.protected != "string") throw new k("JWS Protected Header incorrect type"); | ||
if (e.payload === void 0) throw new k("JWS Payload missing"); | ||
if (typeof e.signature != "string") throw new k("JWS Signature missing or incorrect type"); | ||
if (e.header !== void 0 && !ne(e.header)) throw new k("JWS Unprotected Header incorrect type"); | ||
if (!ne(e)) throw new A("Flattened JWS must be an object"); | ||
if (e.protected === void 0 && e.header === void 0) throw new A('Flattened JWS must have either of the "protected" or "header" members'); | ||
if (e.protected !== void 0 && typeof e.protected != "string") throw new A("JWS Protected Header incorrect type"); | ||
if (e.payload === void 0) throw new A("JWS Payload missing"); | ||
if (typeof e.signature != "string") throw new A("JWS Signature missing or incorrect type"); | ||
if (e.header !== void 0 && !ne(e.header)) throw new A("JWS Unprotected Header incorrect type"); | ||
let i = {}; | ||
if (e.protected) try { | ||
let S = G(e.protected); | ||
i = JSON.parse(Y.decode(S)); | ||
let $ = G(e.protected); | ||
i = JSON.parse(Y.decode($)); | ||
} catch { | ||
throw new k("JWS Protected Header is invalid"); | ||
throw new A("JWS Protected Header is invalid"); | ||
} | ||
if (!dt(i, e.header)) throw new k("JWS Protected and JWS Unprotected Header Parameter names must be disjoint"); | ||
let n = { ...i, ...e.header }, s = $t(k, /* @__PURE__ */ new Map([["b64", !0]]), r == null ? void 0 : r.crit, i, n), a = !0; | ||
if (s.has("b64") && (a = i.b64, typeof a != "boolean")) throw new k('The "b64" (base64url-encode payload) Header Parameter must be a boolean'); | ||
if (!dt(i, e.header)) throw new A("JWS Protected and JWS Unprotected Header Parameter names must be disjoint"); | ||
let n = { ...i, ...e.header }, s = $t(A, /* @__PURE__ */ new Map([["b64", !0]]), r == null ? void 0 : r.crit, i, n), a = !0; | ||
if (s.has("b64") && (a = i.b64, typeof a != "boolean")) throw new A('The "b64" (base64url-encode payload) Header Parameter must be a boolean'); | ||
let { alg: o } = n; | ||
if (typeof o != "string" || !o) throw new k('JWS "alg" (Algorithm) Header Parameter missing or invalid'); | ||
if (typeof o != "string" || !o) throw new A('JWS "alg" (Algorithm) Header Parameter missing or invalid'); | ||
if (a) { | ||
if (typeof e.payload != "string") throw new k("JWS Payload must be a string"); | ||
} else if (typeof e.payload != "string" && !(e.payload instanceof Uint8Array)) throw new k("JWS Payload must be a string or an Uint8Array instance"); | ||
if (typeof e.payload != "string") throw new A("JWS Payload must be a string"); | ||
} else if (typeof e.payload != "string" && !(e.payload instanceof Uint8Array)) throw new A("JWS Payload must be a string or an Uint8Array instance"); | ||
let l = !1; | ||
typeof t == "function" && (t = await t(i, e), l = !0), Et(o, t, "verify"); | ||
let y = it(Q.encode(e.protected ?? ""), Q.encode("."), typeof e.payload == "string" ? Q.encode(e.payload) : e.payload), c; | ||
let p = it(Q.encode(e.protected ?? ""), Q.encode("."), typeof e.payload == "string" ? Q.encode(e.payload) : e.payload), c; | ||
try { | ||
c = G(e.signature); | ||
} catch { | ||
throw new k("Failed to base64url decode the signature"); | ||
throw new A("Failed to base64url decode the signature"); | ||
} | ||
if (!await At(o, t, c, y)) throw new at(); | ||
let v; | ||
if (!await At(o, t, c, p)) throw new at(); | ||
let m; | ||
if (a) try { | ||
v = G(e.payload); | ||
m = G(e.payload); | ||
} catch { | ||
throw new k("Failed to base64url decode the payload"); | ||
throw new A("Failed to base64url decode the payload"); | ||
} | ||
else typeof e.payload == "string" ? v = Q.encode(e.payload) : v = e.payload; | ||
let u = { payload: v }; | ||
else typeof e.payload == "string" ? m = Q.encode(e.payload) : m = e.payload; | ||
let u = { payload: m }; | ||
return e.protected !== void 0 && (u.protectedHeader = i), e.header !== void 0 && (u.unprotectedHeader = e.header), l ? { ...u, key: t } : u; | ||
} | ||
async function Pt(e, t, r) { | ||
if (e instanceof Uint8Array && (e = Y.decode(e)), typeof e != "string") throw new k("Compact JWS must be a string or Uint8Array"); | ||
if (e instanceof Uint8Array && (e = Y.decode(e)), typeof e != "string") throw new A("Compact JWS must be a string or Uint8Array"); | ||
let { 0: i, 1: n, 2: s, length: a } = e.split("."); | ||
if (a !== 3) throw new k("Invalid Compact JWS"); | ||
if (a !== 3) throw new A("Invalid Compact JWS"); | ||
let o = await Tt({ payload: n, protected: i, signature: s }, t, r), l = { payload: o.payload, protectedHeader: o.protectedHeader }; | ||
@@ -845,19 +845,19 @@ return typeof t == "function" ? { ...l, key: o.key } : l; | ||
let { typ: n } = r; | ||
if (n && (typeof e.typ != "string" || Ee(e.typ) !== Ee(n))) throw new P('unexpected "typ" JWT header value', i, "typ", "check_failed"); | ||
let { requiredClaims: s = [], issuer: a, subject: o, audience: l, maxTokenAge: y } = r, c = [...s]; | ||
y !== void 0 && c.push("iat"), l !== void 0 && c.push("aud"), o !== void 0 && c.push("sub"), a !== void 0 && c.push("iss"); | ||
for (let R of new Set(c.reverse())) if (!(R in i)) throw new P(`missing required "${R}" claim`, i, R, "missing"); | ||
if (a && !(Array.isArray(a) ? a : [a]).includes(i.iss)) throw new P('unexpected "iss" claim value', i, "iss", "check_failed"); | ||
if (o && i.sub !== o) throw new P('unexpected "sub" claim value', i, "sub", "check_failed"); | ||
if (l && !It(i.aud, typeof l == "string" ? [l] : l)) throw new P('unexpected "aud" claim value', i, "aud", "check_failed"); | ||
let v; | ||
if (n && (typeof e.typ != "string" || Ee(e.typ) !== Ee(n))) throw new _('unexpected "typ" JWT header value', i, "typ", "check_failed"); | ||
let { requiredClaims: s = [], issuer: a, subject: o, audience: l, maxTokenAge: p } = r, c = [...s]; | ||
p !== void 0 && c.push("iat"), l !== void 0 && c.push("aud"), o !== void 0 && c.push("sub"), a !== void 0 && c.push("iss"); | ||
for (let P of new Set(c.reverse())) if (!(P in i)) throw new _(`missing required "${P}" claim`, i, P, "missing"); | ||
if (a && !(Array.isArray(a) ? a : [a]).includes(i.iss)) throw new _('unexpected "iss" claim value', i, "iss", "check_failed"); | ||
if (o && i.sub !== o) throw new _('unexpected "sub" claim value', i, "sub", "check_failed"); | ||
if (l && !It(i.aud, typeof l == "string" ? [l] : l)) throw new _('unexpected "aud" claim value', i, "aud", "check_failed"); | ||
let m; | ||
switch (typeof r.clockTolerance) { | ||
case "string": | ||
v = be(r.clockTolerance); | ||
m = be(r.clockTolerance); | ||
break; | ||
case "number": | ||
v = r.clockTolerance; | ||
m = r.clockTolerance; | ||
break; | ||
case "undefined": | ||
v = 0; | ||
m = 0; | ||
break; | ||
@@ -867,16 +867,16 @@ default: | ||
} | ||
let { currentDate: u } = r, S = _t(u || /* @__PURE__ */ new Date()); | ||
if ((i.iat !== void 0 || y) && typeof i.iat != "number") throw new P('"iat" claim must be a number', i, "iat", "invalid"); | ||
let { currentDate: u } = r, $ = _t(u || /* @__PURE__ */ new Date()); | ||
if ((i.iat !== void 0 || p) && typeof i.iat != "number") throw new _('"iat" claim must be a number', i, "iat", "invalid"); | ||
if (i.nbf !== void 0) { | ||
if (typeof i.nbf != "number") throw new P('"nbf" claim must be a number', i, "nbf", "invalid"); | ||
if (i.nbf > S + v) throw new P('"nbf" claim timestamp check failed', i, "nbf", "check_failed"); | ||
if (typeof i.nbf != "number") throw new _('"nbf" claim must be a number', i, "nbf", "invalid"); | ||
if (i.nbf > $ + m) throw new _('"nbf" claim timestamp check failed', i, "nbf", "check_failed"); | ||
} | ||
if (i.exp !== void 0) { | ||
if (typeof i.exp != "number") throw new P('"exp" claim must be a number', i, "exp", "invalid"); | ||
if (i.exp <= S - v) throw new ge('"exp" claim timestamp check failed', i, "exp", "check_failed"); | ||
if (typeof i.exp != "number") throw new _('"exp" claim must be a number', i, "exp", "invalid"); | ||
if (i.exp <= $ - m) throw new ge('"exp" claim timestamp check failed', i, "exp", "check_failed"); | ||
} | ||
if (y) { | ||
let R = S - i.iat, _ = typeof y == "number" ? y : be(y); | ||
if (R - v > _) throw new ge('"iat" claim timestamp check failed (too far in the past)', i, "iat", "check_failed"); | ||
if (R < 0 - v) throw new P('"iat" claim timestamp check failed (it should be in the past)', i, "iat", "check_failed"); | ||
if (p) { | ||
let P = $ - i.iat, j = typeof p == "number" ? p : be(p); | ||
if (P - m > j) throw new ge('"iat" claim timestamp check failed (too far in the past)', i, "iat", "check_failed"); | ||
if (P < 0 - m) throw new _('"iat" claim timestamp check failed (it should be in the past)', i, "iat", "check_failed"); | ||
} | ||
@@ -892,4 +892,4 @@ return i; | ||
} | ||
var Ht = G; | ||
function Ot(e) { | ||
var Ot = G; | ||
function Ht(e) { | ||
if (typeof e != "string") throw new W("JWTs must use Compact JWS serialization, JWT must be a string"); | ||
@@ -902,3 +902,3 @@ let { 1: t, length: r } = e.split("."); | ||
try { | ||
i = Ht(t); | ||
i = Ot(t); | ||
} catch { | ||
@@ -988,4 +988,4 @@ throw new W("Failed to base64url decode the payload"); | ||
function ae(e, t, r, i, n) { | ||
let s = n && "input" in n ? n.input : r.value, a = (n == null ? void 0 : n.expected) ?? e.expects ?? null, o = (n == null ? void 0 : n.received) ?? qt(s), l = { kind: e.kind, type: e.type, input: s, expected: a, received: o, message: `Invalid ${t}: ${a ? `Expected ${a} but r` : "R"}eceived ${o}`, requirement: e.requirement, path: n == null ? void 0 : n.path, issues: n == null ? void 0 : n.issues, lang: i.lang, abortEarly: i.abortEarly, abortPipeEarly: i.abortPipeEarly }, y = e.kind === "schema", c = (n == null ? void 0 : n.message) ?? e.message ?? Vt(e.reference, l.lang) ?? (y ? Ft(l.lang) : null) ?? i.message ?? Bt(l.lang); | ||
c && (l.message = typeof c == "function" ? c(l) : c), y && (r.typed = !1), r.issues ? r.issues.push(l) : r.issues = [l]; | ||
let s = n && "input" in n ? n.input : r.value, a = (n == null ? void 0 : n.expected) ?? e.expects ?? null, o = (n == null ? void 0 : n.received) ?? qt(s), l = { kind: e.kind, type: e.type, input: s, expected: a, received: o, message: `Invalid ${t}: ${a ? `Expected ${a} but r` : "R"}eceived ${o}`, requirement: e.requirement, path: n == null ? void 0 : n.path, issues: n == null ? void 0 : n.issues, lang: i.lang, abortEarly: i.abortEarly, abortPipeEarly: i.abortPipeEarly }, p = e.kind === "schema", c = (n == null ? void 0 : n.message) ?? e.message ?? Vt(e.reference, l.lang) ?? (p ? Ft(l.lang) : null) ?? i.message ?? Bt(l.lang); | ||
c && (l.message = typeof c == "function" ? c(l) : c), p && (r.typed = !1), r.issues ? r.issues.push(l) : r.issues = [l]; | ||
} | ||
@@ -1000,9 +1000,9 @@ function We(e) { | ||
} | ||
function He(e) { | ||
return { kind: "schema", type: "number", reference: He, expects: "number", async: !1, message: e, _run(t, r) { | ||
function Oe(e) { | ||
return { kind: "schema", type: "number", reference: Oe, expects: "number", async: !1, message: e, _run(t, r) { | ||
return typeof t.value == "number" && !isNaN(t.value) ? t.typed = !0 : ae(this, "type", t, r), t; | ||
} }; | ||
} | ||
function Oe(e, ...t) { | ||
let r = { kind: "schema", type: "optional", reference: Oe, expects: `${e.expects} | undefined`, async: !1, wrapped: e, _run(i, n) { | ||
function He(e, ...t) { | ||
let r = { kind: "schema", type: "optional", reference: He, expects: `${e.expects} | undefined`, async: !1, wrapped: e, _run(i, n) { | ||
return i.value === void 0 && ("default" in this && (i.value = Gt(this, i, n)), i.value === void 0) ? (i.typed = !0, i) : this.wrapped._run(i, n); | ||
@@ -1021,4 +1021,4 @@ } }; | ||
if (l.issues) { | ||
let y = { type: "object", origin: "value", input: n, key: a, value: o }; | ||
for (let c of l.issues) c.path ? c.path.unshift(y) : c.path = [y], (s = r.issues) == null || s.push(c); | ||
let p = { type: "object", origin: "value", input: n, key: a, value: o }; | ||
for (let c of l.issues) c.path ? c.path.unshift(p) : c.path = [p], (s = r.issues) == null || s.push(c); | ||
if (r.issues || (r.issues = l.issues), i.abortEarly) { | ||
@@ -1060,3 +1060,3 @@ r.typed = !1; | ||
var Yt = Xt(Ne(), We("lid")); | ||
Je({ id: Yt, ver: Oe(He()) }); | ||
Je({ id: Yt, ver: He(Oe()) }); | ||
var Qt = (e) => () => e * 48271 % 2147483647 / 2147483647, Zt = (e) => typeof Buffer < "u" ? Buffer.from(e).toString("base64") : btoa(typeof e == "string" ? e : String.fromCharCode(...e)), er = (e) => typeof Buffer < "u" ? Buffer.from(e, "base64").toString() : atob(e), tr = (e, t) => { | ||
@@ -1067,3 +1067,3 @@ let r = Qt(t), i = new TextEncoder().encode(e).map((n) => n ^ Math.floor(r() * 256)); | ||
let t = rr(er(e)); | ||
return { decoded: Ot(t), jwt: t }; | ||
return { decoded: Ht(t), jwt: t }; | ||
}, ar = async (e) => { | ||
@@ -1084,4 +1084,4 @@ let { decoded: t, jwt: r } = await nr(e); | ||
try { | ||
const o = await ar(a), c = new Date(o.exp * 1e3) - /* @__PURE__ */ new Date(), v = Math.floor(c / (1e3 * 60 * 60 * 24)); | ||
return v > 0 ? { type: "trial", daysleft: v } : { type: "expired", daysleft: 0 }; | ||
const o = await ar(a), c = new Date(o.exp * 1e3) - /* @__PURE__ */ new Date(), m = Math.floor(c / (1e3 * 60 * 60 * 24)); | ||
return m > 0 ? { type: "trial", daysleft: m } : { type: "expired", daysleft: 0 }; | ||
} catch (o) { | ||
@@ -1121,3 +1121,3 @@ return o.message.includes("claim timestamp check failed") ? { type: "expired", daysleft: 0 } : { type: "invalidkey", daysleft: 0 }; | ||
border: "1px solid black" | ||
}, children: /* @__PURE__ */ E("div", { style: { | ||
}, children: /* @__PURE__ */ S("div", { style: { | ||
height: "100%", | ||
@@ -1132,5 +1132,5 @@ display: "flex", | ||
}, children: [ | ||
/* @__PURE__ */ E("div", { style: { display: "flex", flexDirection: "row", alignItems: "center" }, children: [ | ||
/* @__PURE__ */ S("div", { style: { display: "flex", flexDirection: "row", alignItems: "center" }, children: [ | ||
/* @__PURE__ */ f("img", { style: { width: 160 }, src: "../ReExt/ReExt.png" }), | ||
/* @__PURE__ */ E("div", { style: { margin: "0 0 0 20px" }, children: [ | ||
/* @__PURE__ */ S("div", { style: { margin: "0 0 0 20px" }, children: [ | ||
"Welcome to the ReExt v", | ||
@@ -1141,4 +1141,4 @@ t, | ||
] }), | ||
i.type === "trial" || i.type === "nokey" && /* @__PURE__ */ E(se, { children: [ | ||
/* @__PURE__ */ E("div", { style: { margin: "10px 0 10px 0", fontSize: "18px" }, children: [ | ||
i.type === "trial" || i.type === "nokey" && /* @__PURE__ */ S(se, { children: [ | ||
/* @__PURE__ */ S("div", { style: { margin: "10px 0 10px 0", fontSize: "18px" }, children: [ | ||
"This is a 30 day trial version of ReExt.", | ||
@@ -1152,3 +1152,3 @@ /* @__PURE__ */ f("br", {}), | ||
/* @__PURE__ */ f("div", { style: { xwidth: "100%", flex: 1, display: "flex", border: "0px solid red" }, children: /* @__PURE__ */ f("iframe", { style: { width: "100%", margin: "0 0 10px 0", flex: 1, border: "0px solid lightgray" }, src: "https://www.sencha.com/forms/reext/trial-reext.php" }) }), | ||
/* @__PURE__ */ E("div", { style: { display: "flex", flexDirection: "row", justifyContent: "space-between", alignItems: "flex-end" }, children: [ | ||
/* @__PURE__ */ S("div", { style: { display: "flex", flexDirection: "row", justifyContent: "space-between", alignItems: "flex-end" }, children: [ | ||
/* @__PURE__ */ f("div", { style: { fontSize: "12px" }, children: i.type }), | ||
@@ -1167,3 +1167,3 @@ /* @__PURE__ */ f( | ||
] }), | ||
i.type === "expired" && /* @__PURE__ */ f(se, { children: /* @__PURE__ */ E("div", { style: { display: "flex", flexDirection: "column", justifyContent: "center", alignItems: "center", margin: "10px 0 10px 0", fontSize: "18px", height: "100%" }, children: [ | ||
i.type === "expired" && /* @__PURE__ */ f(se, { children: /* @__PURE__ */ S("div", { style: { display: "flex", flexDirection: "column", justifyContent: "center", alignItems: "center", margin: "10px 0 10px 0", fontSize: "18px", height: "100%" }, children: [ | ||
/* @__PURE__ */ f("div", { style: { margin: "0 0 20px 0", fontSize: "24px" }, children: "Your ReExt trial key has expired" }), | ||
@@ -1173,3 +1173,3 @@ /* @__PURE__ */ f("div", { children: "Contact Sencha Sales" }), | ||
] }) }), | ||
i.type === "invalidkey" && /* @__PURE__ */ f(se, { children: /* @__PURE__ */ E("div", { style: { display: "flex", flexDirection: "column", justifyContent: "center", alignItems: "center", margin: "10px 0 10px 0", fontSize: "18px", height: "100%" }, children: [ | ||
i.type === "invalidkey" && /* @__PURE__ */ f(se, { children: /* @__PURE__ */ S("div", { style: { display: "flex", flexDirection: "column", justifyContent: "center", alignItems: "center", margin: "10px 0 10px 0", fontSize: "18px", height: "100%" }, children: [ | ||
/* @__PURE__ */ f("div", { style: { margin: "0 0 20px 0", fontSize: "24px" }, children: "Your ReExt trial key is invalid" }), | ||
@@ -1182,30 +1182,51 @@ /* @__PURE__ */ f("div", { children: "Contact Sencha Sales" }), | ||
async function sr(e) { | ||
console.log("loadextjsfiles start"); | ||
try { | ||
let A = async (x, C, w) => await new Promise((g) => { | ||
let R = async (v, w, x) => new Promise((E) => { | ||
window.Ext.onReady(function() { | ||
return window.Ext.ReExtLocation = w, window.Ext.ReExtTheme = x, window.Ext.ReExtLi = !0, g(1); | ||
return window.Ext.ReExtLocation = x, window.Ext.ReExtTheme = v, window.Ext.ReExtLi = !0, E(1); | ||
}); | ||
}), m = async (x) => typeof window === void 0 || typeof window > "u" ? void 0 : await new Promise((C, w) => { | ||
let g = document.getElementsByTagName("HEAD")[0]; | ||
var $ = !1; | ||
for (let p = 0; p < g.childNodes.length; p++) g.childNodes[p].src === window.location.origin + "/" + x && ($ = !0); | ||
if ($ === !1) { | ||
let p = document.createElement("script"); | ||
p.addEventListener("load", () => C(1)), p.addEventListener("error", () => { | ||
var O = `${x} (js) | ||
}), g = async (v) => typeof window === void 0 || typeof window > "u" ? void 0 : new Promise((w, x) => { | ||
let E = document.getElementsByTagName("HEAD")[0]; | ||
var y = !1; | ||
for (let T = 0; T < E.childNodes.length; T++) E.childNodes[T].src === v && (y = !0); | ||
if (y === !1) { | ||
let T = document.createElement("script"); | ||
T.src = v, E.appendChild(T), T.addEventListener("load", () => { | ||
if (window.Ext === void 0) return console.log("src2 loaded", v), w(1); | ||
window.Ext.onReady(function() { | ||
return console.log("src loaded", v), w(1); | ||
}); | ||
}), T.addEventListener("error", () => { | ||
var k = `${v} (js) | ||
- did you download the SDK from the support portal? | ||
- are you trying to download a file without an enterprise license?`; | ||
console.error(O), w(O); | ||
}), p.src = x, g.appendChild(p); | ||
- are you trying to download a file without an enterprise license? | ||
- do you have debug: true for ReExtData in a production build?`; | ||
console.error(k), x(k); | ||
}); | ||
} | ||
}), h = async (x) => typeof window === void 0 || typeof window > "u" ? void 0 : await new Promise((C, w) => { | ||
let g = document.getElementsByTagName("HEAD")[0], $ = document.createElement("link"); | ||
$.rel = "stylesheet", $.type = "text/css", $.href = x, $.addEventListener("error", () => { | ||
var p = `${x} (css) | ||
}), h = async (v) => typeof window === void 0 || typeof window > "u" ? void 0 : new Promise((w, x) => { | ||
let E = document.getElementsByTagName("HEAD")[0]; | ||
var y = !1; | ||
for (let k = 0; k < E.childNodes.length; k++) { | ||
let C = E.childNodes[k]; | ||
var T = window.location.origin + "/" + v; | ||
C.href === v && (y = !0); | ||
} | ||
if (y === !1) { | ||
let k = document.createElement("link"); | ||
k.rel = "stylesheet", k.type = "text/css", k.href = v, E.appendChild(k), k.addEventListener("load", () => { | ||
if (window.Ext === void 0) return console.log("css2 loaded", v), w(1); | ||
window.Ext.onReady(function() { | ||
return console.log("css loaded", v), w(1); | ||
}); | ||
}), k.addEventListener("error", () => { | ||
var C = `${v} (css) | ||
- did you download the SDK from the support portal? | ||
- are you trying to download a file without an enterprise license?`; | ||
return console.error(p), w(p); | ||
}), $.addEventListener("load", () => C(1)), g.appendChild($); | ||
- did you download the SDK from the support portal? | ||
- are you trying to download a file without an enterprise license?`; | ||
return console.error(C), x(C); | ||
}); | ||
} | ||
}); | ||
@@ -1222,4 +1243,4 @@ var t = e.toolkit; | ||
l === !1 || l === void 0 ? l = "" : l = "-rtl"; | ||
var y = e.locale; | ||
y === void 0 && (y = "en"); | ||
var p = e.locale; | ||
p === void 0 && (p = "en"); | ||
var c = e.sdkversion; | ||
@@ -1246,37 +1267,37 @@ switch (c) { | ||
} | ||
var v = a + "ext-" + c, u = a + "ext-addons-" + c; | ||
var m = a + "ext-" + c, u = a + "ext-addons-" + c; | ||
n === !0 ? n = "-debug" : n = ""; | ||
var S = ""; | ||
t === "modern" && (S = "-modern"); | ||
var R = ["ios", "material", "neptune", "triton"]; | ||
if (t === "modern" && !R.includes(r)) throw `${r} theme is not in ${t} toolkit for SDK version ${c}`; | ||
var _ = ["classic", "crisp", "graphite", "gray", "material", "neptune", "triton"]; | ||
t === "classic" && !_.includes(r) && console.warn(`${r} is a custom theme in ${t} toolkit for SDK version ${c}`); | ||
var j = !1; | ||
(i.calendar === !0 || i.d3 === !0 || i.exporter === !0 || i.pivot === !0 || i.pivotd3 === !0 || i.pivotlocale === !0 || i.froalaeditor === !0) && (j = !0), e.debug === !0 && await m("node_modules/@sencha/reext/dist/ReExt/debug.js"); | ||
var b = v + "/build"; | ||
var $ = ""; | ||
t === "modern" && ($ = "-modern"); | ||
var P = ["ios", "material", "neptune", "triton"]; | ||
if (t === "modern" && !P.includes(r)) throw `${r} theme is not in ${t} toolkit for SDK version ${c}`; | ||
var j = ["classic", "crisp", "graphite", "gray", "material", "neptune", "triton"]; | ||
t === "classic" && !j.includes(r) && console.warn(`${r} is a custom theme in ${t} toolkit for SDK version ${c}`); | ||
var I = !1; | ||
(i.calendar === !0 || i.d3 === !0 || i.exporter === !0 || i.pivot === !0 || i.pivotd3 === !0 || i.pivotlocale === !0 || i.froalaeditor === !0) && (I = !0); | ||
var b = m + "/build"; | ||
if (c.slice(-1) === "c") { | ||
await m(`${b}/ext-${c}-toolkit-${t}-sdk.js`), await h(`${b}/ext-${c}-theme-${r}-sdk.css`), j === !0 && (await m(`${v}/ext-${c}-toolkit-${t}-addons.js`), await h(`${v}/ext-${c}-theme-${r}-addons.css`)), await A(r, s, o); | ||
await g(`${b}/ext-${c}-toolkit-${t}-sdk.js`), await h(`${b}/ext-${c}-theme-${r}-sdk.css`), I === !0 && (await g(`${m}/ext-${c}-toolkit-${t}-addons.js`), await h(`${m}/ext-${c}-theme-${r}-addons.css`)), await R(r, s, o); | ||
return; | ||
} | ||
if (await m(`${b}/ext${S}-all${l}${n}.js`), await h(`${b}/${t}/theme-${r}/resources/theme-${r}-all${l}.css`), i.fontawesome === !0 && await h(`${b}/packages/font-awesome/resources/font-awesome-all${n}.css`), m(`${b}/${t}/locale/locale-${y}${n}.js`), i.ux === !0 && (await m(`${b}/packages/ux/${t}/ux${n}.js`), c === "7.0.0" && t === "modern" && r === "neptune" && await h(`${b}/packages/ux/${t}/${t}-${r}/resources/ux-all${n}.css`), c === "7.0.0" && t === "classic" && await h(`${b}/packages/ux/${t}/${r}/resources/ux-all${n}.css`), c !== "7.0.0" && t === "classic" && r === "material" && await h(`${b}/packages/ux/${t}/${t}-${r}/resources/ux-all${n}.css`), c !== "7.0.0" && t === "classic" && r !== "material" && r !== "gray" && await h(`${b}/packages/ux/${t}/${r}/resources/ux-all${n}.css`)), i.charts === !0) { | ||
await m(`${b}/packages/charts/${t}/charts${n}.js`); | ||
var I = !0; | ||
(t === "modern" && r === "ios" && c === "7.0.0" || r === "gray") && (I = !1), I === !0 && (t === "classic" && r !== "material" ? await h(`${b}/packages/charts/${t}/${r}/resources/charts-all${n}.css`) : await h(`${b}/packages/charts/${t}/${t}-${r}/resources/charts-all${n}.css`)); | ||
var J = await g(`${b}/ext${$}-all${l}${n}.js`); | ||
if (await h(`${b}/${t}/theme-${r}/resources/theme-${r}-all${l}.css`), i.fontawesome === !0 && await h(`${b}/packages/font-awesome/resources/font-awesome-all${n}.css`), await g(`${b}/${t}/locale/locale-${p}${n}.js`), i.ux === !0 && (await g(`${b}/packages/ux/${t}/ux${n}.js`), c === "7.0.0" && t === "modern" && r === "neptune" && await h(`${b}/packages/ux/${t}/${t}-${r}/resources/ux-all${n}.css`), c === "7.0.0" && t === "classic" && await h(`${b}/packages/ux/${t}/${r}/resources/ux-all${n}.css`), c !== "7.0.0" && t === "classic" && r === "material" && await h(`${b}/packages/ux/${t}/${t}-${r}/resources/ux-all${n}.css`), c !== "7.0.0" && t === "classic" && r !== "material" && r !== "gray" && await h(`${b}/packages/ux/${t}/${r}/resources/ux-all${n}.css`)), i.charts === !0) { | ||
await g(`${b}/packages/charts/${t}/charts${n}.js`); | ||
var O = !0; | ||
(t === "modern" && r === "ios" && c === "7.0.0" || r === "gray") && (O = !1), O === !0 && (t === "classic" && r !== "material" ? await h(`${b}/packages/charts/${t}/${r}/resources/charts-all${n}.css`) : await h(`${b}/packages/charts/${t}/${t}-${r}/resources/charts-all${n}.css`)); | ||
} | ||
if (j === !0) { | ||
if (I === !0) { | ||
var d; | ||
u = u + "/packages", i.calendar === !0 && (d = "calendar", await m(`${u}/${d}/build/${t}/${d}${n}.js`), t === "modern" && r === "ios" || c === "7.0.0.156" ? await h(`${u}/${d}/build/${t}/${r}/resources/${d}-all${n}.css`) : r !== "gray" && r !== "graphite" && (t === "classic" && r !== "material" ? await h(`${u}/${d}/build/${t}/${r}/resources/${d}-all${n}.css`) : await h(`${u}/${d}/build/${t}/${t}-${r}/resources/${d}-all${n}.css`))), i.d3 === !0 && (d = "d3", await m(`${u}/${d}/build/${t}/${d}${n}.js`), t === "modern" && (r === "ios" || r === "material") ? await h(`${u}/${d}/build/${t}/${r}/resources/${d}-all${n}.css`) : r !== "gray" && r !== "graphite" && (t === "classic" && r !== "material" ? await h(`${u}/${d}/build/${t}/${r}/resources/${d}-all${n}.css`) : await h(`${u}/${d}/build/${t}/${t}-${r}/resources/${d}-all${n}.css`))), i.exporter === !0 && (d = "exporter", await m(`${u}/${d}/build/${t}/${d}${n}.js`), await h(`${u}/${d}/build/${t}/resources/${d}-all${n}.css`)), i.pivot === !0 && (d = "pivot", await m(`${u}/${d}/build/${t}/${d}${n}.js`), t === "modern" && (r === "ios" || r === "material") ? await h(`${u}/${d}/build/${t}/${r}/resources/${d}-all${n}.css`) : r !== "gray" && r !== "graphite" && (t === "classic" && r !== "material" ? await h(`${u}/${d}/build/${t}/${r}/resources/${d}-all${n}.css`) : await h(`${u}/${d}/build/${t}/${t}-${r}/resources/${d}-all${n}.css`))), i.pivotd3 === !0 && (d = "pivot-d3", await m(`${u}/${d}/build/${t}/${d}${n}.js`), t === "modern" && (r === "ios" || r === "material") ? await h(`${u}/${d}/build/${t}/${r}/resources/${d}-all${n}.css`) : r !== "gray" && r !== "graphite" && (t === "classic" && r !== "material" ? await h(`${u}/${d}/build/${t}/${r}/resources/${d}-all${n}.css`) : await h(`${u}/${d}/build/${t}/${t}-${r}/resources/${d}-all${n}.css`))), i.froalaeditor === !0 && (d = "froala-editor", await m(`${u}/${d}/build/${t}/${d}${n}.js`), await h(`${u}/${d}/build/${t}/${r}/resources/${d}-all${n}.css`), await m(`${u}/${d}/development/froalaeditor.pkgd.js`), await h(`${u}/${d}/development/froalaeditor.pkgd.css`)), i.pivotlocale; | ||
u = u + "/packages", i.calendar === !0 && (d = "calendar", await g(`${u}/${d}/build/${t}/${d}${n}.js`), t === "modern" && r === "ios" || c === "7.0.0.156" ? await h(`${u}/${d}/build/${t}/${r}/resources/${d}-all${n}.css`) : r !== "gray" && r !== "graphite" && (t === "classic" && r !== "material" ? await h(`${u}/${d}/build/${t}/${r}/resources/${d}-all${n}.css`) : await h(`${u}/${d}/build/${t}/${t}-${r}/resources/${d}-all${n}.css`))), i.d3 === !0 && (d = "d3", await g(`${u}/${d}/build/${t}/${d}${n}.js`), t === "modern" && (r === "ios" || r === "material") ? await h(`${u}/${d}/build/${t}/${r}/resources/${d}-all${n}.css`) : r !== "gray" && r !== "graphite" && (t === "classic" && r !== "material" ? await h(`${u}/${d}/build/${t}/${r}/resources/${d}-all${n}.css`) : await h(`${u}/${d}/build/${t}/${t}-${r}/resources/${d}-all${n}.css`))), i.exporter === !0 && (d = "exporter", await g(`${u}/${d}/build/${t}/${d}${n}.js`), await h(`${u}/${d}/build/${t}/resources/${d}-all${n}.css`)), i.pivot === !0 && (d = "pivot", await g(`${u}/${d}/build/${t}/${d}${n}.js`), t === "modern" && (r === "ios" || r === "material") ? await h(`${u}/${d}/build/${t}/${r}/resources/${d}-all${n}.css`) : r !== "gray" && r !== "graphite" && (t === "classic" && r !== "material" ? await h(`${u}/${d}/build/${t}/${r}/resources/${d}-all${n}.css`) : await h(`${u}/${d}/build/${t}/${t}-${r}/resources/${d}-all${n}.css`))), i.pivotd3 === !0 && (d = "pivot-d3", await g(`${u}/${d}/build/${t}/${d}${n}.js`), t === "modern" && (r === "ios" || r === "material") ? await h(`${u}/${d}/build/${t}/${r}/resources/${d}-all${n}.css`) : r !== "gray" && r !== "graphite" && (t === "classic" && r !== "material" ? await h(`${u}/${d}/build/${t}/${r}/resources/${d}-all${n}.css`) : await h(`${u}/${d}/build/${t}/${t}-${r}/resources/${d}-all${n}.css`))), i.froalaeditor === !0 && (d = "froala-editor", await g(`${u}/${d}/build/${t}/${d}${n}.js`), await h(`${u}/${d}/build/${t}/${r}/resources/${d}-all${n}.css`), await g(`${u}/${d}/development/froalaeditor.pkgd.js`), await h(`${u}/${d}/development/froalaeditor.pkgd.css`)), i.pivotlocale; | ||
} | ||
async function H(x) { | ||
var C = x.location; | ||
if (C === "local") { | ||
var w = x.overrides; | ||
if (w === void 0 && (w = !1), w !== !0 && (w = !1), w === !0) { | ||
var g = `${x.urlbase}ext-${x.sdkversion}/${t}overrides.js`; | ||
console.log("overridefile", g); | ||
async function p(O) { | ||
async function z(v) { | ||
var w = v.location; | ||
if (w === "local") { | ||
var x = v.overrides; | ||
if (x === void 0 && (x = !1), x !== !0 && (x = !1), x === !0) { | ||
var E = `${v.urlbase}ext-${v.sdkversion}/${t}overrides.js`; | ||
async function T(k) { | ||
try { | ||
let M = await fetch(O, { method: "HEAD" }); | ||
return M.status === 404 ? (console.error("ReExtData.overrides is true but no overrides file exists"), !1) : M.status === 200; | ||
let C = await fetch(k, { method: "HEAD" }); | ||
return C.status === 404 ? (console.error("ReExtData.overrides is true but no overrides file exists"), !1) : C.status === 200; | ||
} catch { | ||
@@ -1286,22 +1307,25 @@ return !1; | ||
} | ||
var $ = await p(g); | ||
$ && await m(g); | ||
var y = await T(E); | ||
y && await g(E); | ||
} | ||
} | ||
} | ||
await H(e); | ||
async function z(x, C) { | ||
x !== void 0 && C !== void 0 && C.forEach(async (w) => { | ||
let g = `${x}/${w}`; | ||
await m(g); | ||
}); | ||
if (await z(e), e.debug === !0) try { | ||
await g("node_modules/@sencha/reext/dist/ReExt/debug.js"); | ||
} catch (v) { | ||
console.warn("debug not loaded... " + v.toString()); | ||
} | ||
await z(e.customfolder, e.customfiles), await A(r, s, o); | ||
} catch (A) { | ||
console.warn("fail", A), alert(`Loading Failed: | ||
` + A.toString()); | ||
async function M(v, w) { | ||
if (v !== void 0 && w !== void 0) for (let x of w) { | ||
let E = `${window.location.origin}/${v}/${x}`; | ||
await g(E); | ||
} | ||
} | ||
await M(e.customfolder, e.customfiles), await R(r, s, o), console.log("loadextjsfiles end"); | ||
} catch { | ||
console.log("fail"); | ||
} | ||
} | ||
var $e = "trial"; | ||
function hr({ children: e, ReExtData: t, reextkey: r, splash: i }) { | ||
function yr({ children: e, ReExtData: t, reextkey: r, splash: i }) { | ||
if (typeof window === void 0 || typeof window > "u") | ||
@@ -1312,3 +1336,3 @@ return; | ||
try { | ||
var y = __IS_REEXT_RUNNING__; | ||
var p = __IS_REEXT_RUNNING__; | ||
o(!0); | ||
@@ -1336,5 +1360,5 @@ } catch { | ||
try { | ||
await sr(t), s(!0); | ||
} catch (v) { | ||
console.error("fail", v); | ||
console.log("before loadextjsfiles"), await sr(t), console.log("after loadextjsfiles"), s(!0); | ||
} catch (m) { | ||
console.error("fail", m); | ||
} | ||
@@ -1347,9 +1371,9 @@ })(); | ||
TrialDialog: { value: null }, | ||
Version: { value: "2024-10-30-b" }, | ||
Version: { value: "2024-11-26-b" }, | ||
Type: { value: null }, | ||
DaysLeft: { value: null } | ||
}; | ||
return /* @__PURE__ */ E(Be, { types: l, actionTrace: !1, actionStack: !1, dispatchTrace: !1, dispatchStack: !1, middleware: [], middlewareafter: [], children: [ | ||
return /* @__PURE__ */ S(Be, { types: l, actionTrace: !1, actionStack: !1, dispatchTrace: !1, dispatchStack: !1, middleware: [], middlewareafter: [], children: [ | ||
$e !== "production" && /* @__PURE__ */ f(or, { r, v: ke, t: $e }), | ||
a === !1 && /* @__PURE__ */ E( | ||
a === !1 && /* @__PURE__ */ S( | ||
"div", | ||
@@ -1402,7 +1426,7 @@ { | ||
} | ||
} catch (y) { | ||
return /* @__PURE__ */ f("div", { children: y.toString() }); | ||
} catch (p) { | ||
return /* @__PURE__ */ f("div", { children: p.toString() }); | ||
} | ||
} | ||
const wr = (e) => { | ||
const hr = (e) => { | ||
if (typeof window === void 0 || typeof window > "u") | ||
@@ -1414,3 +1438,3 @@ return; | ||
}; | ||
function mr(e) { | ||
function wr(e) { | ||
if (!(typeof window === void 0 || typeof window > "u")) { | ||
@@ -1427,6 +1451,6 @@ for (var t, r = e.getController(), i = e; r === void 0; ) | ||
pr as Fill, | ||
hr as ReExtProvider, | ||
mr as ReExtReferences, | ||
yr as ReExtProvider, | ||
wr as ReExtReferences, | ||
fr as default, | ||
wr as useReExtState | ||
hr as useReExtState | ||
}; |
@@ -1,9 +0,9 @@ | ||
(function(C,s){typeof exports=="object"&&typeof module<"u"?s(exports,require("react/jsx-runtime"),require("react"),require("react-dom")):typeof define=="function"&&define.amd?define(["exports","react/jsx-runtime","react","react-dom"],s):(C=typeof globalThis<"u"?globalThis:C||self,s(C.ReExt={},C.jsxRuntime,C.React,C.ReactDOM))})(this,function(C,s,m,ie){"use strict";const ye="1.0.215",We=(e,t)=>{for(var r in e)typeof e[r]=="function"&&function(i,a){var l=r;e[r]=function(){t===!0&&console.log("---"),console.log("globalState."+l+" payload:",arguments[0]),t===!0&&console.log(new Error().stack),t===!0&&console.log("---");var n=a.apply(this,arguments);return n}}(r,e[r])},He=async(e,t,r)=>{console.log("dispatch:",e.type,e.payload),r.dispatchStack&&console.log(new Error().stack)},Je=(e,t,r)=>{const[i,a]=m.useReducer(e,t),l=m.useRef(null);var n=r.middleware;n===void 0&&(n=[]);var o=r.middlewareafter;return o===void 0&&(o=[]),m.useEffect(()=>{o.map(c=>c(l.current,i))},[o,i]),[i,c=>{n.map(y=>y(c,i,r)),l.current=c,a(c)}]},he=m.createContext(),we=()=>m.useContext(he),Ne=(e,t)=>{var r={...e};return r[t.type.toLowerCase()]=t.payload,window.vscodeapi!==void 0&&vscodeapi.setState(r),r},Ke=e=>{if(e===void 0)return;var t=e.types,r={};for(let o in t)t.hasOwnProperty(o)&&(r["set"+o]=c=>l({type:o,payload:c}));var i={};for(let o in t)t.hasOwnProperty(o)&&(i[o.toLowerCase()]=t[o].value);m.useEffect(()=>{e.dispatchTrace&&e.middleware.push(He)},[e]),e.actionTrace&&We(r,e.actionStack);const[a,l]=Je(Ne,i,e),n=(o,c)=>{var y={};for(const[d]of Object.entries(c))y[d]=o[d];return y};return m.createElement(he.Provider,{value:{...n(a,i),...r}},e.children)};function X(e,t){try{if(e===null||typeof e!="object")return e;if(e instanceof Date)return new Date(e);if(Array.isArray(e)){let r=[];for(let i=0;i<e.length;i++)r[i]=X(e[i],"array");return r}if(e instanceof Object){delete e.$initParent;let r={};for(let i in e)e.hasOwnProperty(i)&&(r[i]=X(e[i],"object"));return r}return e}catch{return console.error("error - cloneDeep node:",t),""}}function ae(e,t){if(e===t)return!0;if(e==null||t==null)return e===t;if(typeof e!=typeof t)return!1;if(e instanceof Date&&t instanceof Date)return e.getTime()===t.getTime();if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return!1;for(let r=0;r<e.length;r++)if(!ae(e[r],t[r]))return!1;return!0}if(e instanceof Object&&t instanceof Object){let r=Object.keys(e),i=Object.keys(t);if(r.length!==i.length)return!1;for(let a of r)if(!t.hasOwnProperty(a)||!ae(e[a],t[a]))return!1;return!0}return!1}function Le({reextplugin:e,rid:t,reactversion:r,extver:i,extlocation:a,exttoolkit:l,exttheme:n,type:o,packageversion:c,style:y,flexdirection:d,...g}){return s.jsxs("div",{name:"ReExtRootLogo","data-rid":g.rid,style:{display:"flex",flexDirection:d,alignItems:"center",color:"black",padding:5,...y},children:[s.jsx("img",{style:{height:40,width:80},src:"../ReExt/ReExt.png"}),s.jsxs("div",{style:{margin:"0 0 0 3px"},children:[s.jsx("div",{style:{margin:"0 0 0 1px",fontSize:12,color:"black"},children:s.jsx("a",{style:g.style,target:"_blank",rel:"noreferrer",href:"https://www.npmjs.com/package/@sencha/reext",children:s.jsxs("i",{children:["ReExt ",c]})})}),s.jsx("div",{style:{fontSize:"10px",margin:"2px 0 0 0"},children:s.jsxs("span",{style:{margin:"0 0 0 0"},children:[o,", reextplugin: ",e.toString()]})}),s.jsx("div",{style:{fontSize:"10px",margin:"2px 0 0 0"},children:s.jsxs("span",{style:{margin:"0 0 0 0"},children:["React: ",s.jsx("b",{children:r})]})}),s.jsx("div",{style:{fontSize:"10px",margin:"2px 0 0 0"},children:s.jsxs("span",{style:{margin:"0 0 0 0"},children:["ExtJS: ",s.jsxs("b",{children:[i," (",a,")"]})]})}),s.jsxs("div",{style:{fontSize:"10px",margin:"2px 0 0 0"},children:[s.jsxs("span",{style:{margin:"0 0 0 0"},children:["toolkit: ",s.jsx("b",{children:l})]}),s.jsxs("span",{style:{margin:"0 0 0 5px"},children:["theme: ",s.jsx("b",{children:n})]})]})]})]})}var Me=e=>{var t=null,r=e.slice(0,2);if(r==="on"){var i=e.charAt(2),a=e.charAt(2).toUpperCase();i===a&&(t=e.slice(2).toLowerCase())}return window.Ext.isClassic===!0&&t==="tap"&&(t="click"),t},ze=(e,t,r,i)=>{if(!(typeof window===void 0||typeof window>"u")){var a={};if(a.xtype=e,t!==void 0)for(let[n,o]of Object.entries(t))a[n]=o;if(r.references===!0&&(a.controller=window.Ext.create("Ext.app.ViewController")),a.store!==void 0&&(a.store.listeners!==void 0?a.store.listeners.load===void 0&&(a.store.listeners.load=n=>{r.storeloaded!==void 0&&r.storeloaded(n,i())}):a.store.listeners={load:n=>{r.storeloaded!==void 0&&r.storeloaded(n,i())}}),a.listeners===void 0){a.listeners={};for(let[n,o]of Object.entries(r)){var l=Me(n);l!==null&&(a.listeners[l]=function(){o(...arguments)})}Object.keys(a.listeners).length===0&&delete a.listeners}return a}},Ue=e=>{var t=null,r=e.slice(0,2);if(r==="on"){var i=e.charAt(2),a=e.charAt(2).toUpperCase();i===a&&(t=e.slice(2).toLowerCase())}return window.Ext.isClassic===!0&&t==="tap"&&(t="click"),t},ve=(e,t,r)=>{var i=[];if(!(typeof window===void 0||typeof window>"u")){var a=[],l=[];if(e===void 0)return{childarray:[],cpArray:[]};e.length===void 0?l.push(e):l=e;try{l.map(o=>{var c,y;if(t.xtype=="tabpanel"){var d;window.Ext.ReExtTheme==="classic"?d="Ext.panel.Panel":d="Ext.Panel",c=window.Ext.create(d,{layout:"fit",title:o.props.title,cls:"ReExtTabChildRoot",items:[{xtype:"component",listeners:{activate:u=>{y=ie.createPortal(o,u.el.dom),a.push(y);var S=u.el.dom.parentNode;r.observe(S)},render:u=>{y=ie.createPortal(o,u.el.dom),a.push(y);var S=u.el.dom.parentNode;r.observe(S)}},style:{backgroundColor:"transparent",display:"flex",height:"100%",width:"100%"}}]}),i.push(c)}else{let{flex:u,region:S,split:A,width:D,height:O,minWidth:E,maxWidth:W,minHeight:f,maxHeight:P}=o.props.config||{},v={};u!==void 0&&(v.flex=u),S!==void 0&&(v.region=S),A!==void 0&&(v.split=A),D!==void 0&&(v.width=D),O!==void 0&&(v.height=O),E!==void 0&&(v.minWidth=E),W!==void 0&&(v.maxWidth=W),f!==void 0&&(v.minHeight=f),P!==void 0&&(v.maxHeight=P);var g={items:[{xtype:"component",listeners:{render:h=>{y=ie.createPortal(o,h.el.dom),a.push(y);var H=h.el.dom.parentNode;r.observe(H)}},style:{flex:1,backgroundColor:"transparent",display:"flex",height:"100%",width:"100%"}}],...v};c={xtype:"container",layout:"fit",...g},i.push(c)}});var n={childarray:i,cpArray:a};return n}catch(o){return console.error("iteratechldren:",o.toString()),[]}}},Fe=(e,t,r)=>{if(!(typeof window===void 0||typeof window>"u")){var i=l=>{let n=l.charAt(0).toUpperCase(),o=l.slice(1);var c="set"+(n+o);return c},a;window.Ext.isClassic===!0?t==="items"?(e.removeAll(!0),e.add(r)):t!=="layout"&&(a=i(t),e[a]!==void 0?e[a](r):e[t]=r):(a=i(t),e[a]!==void 0&&e[a](r))}},Be=()=>{var e;return typeof ResizeObserver<"u"?(e=new ResizeObserver(t=>{if(!(typeof window===void 0||typeof window>"u"))for(let o of t){var r=0,i=o.target.children.item(r);if(i!==null&&o.contentBoxSize){let c=o.contentBoxSize[0];var a=c.inlineSize,l=window.Ext.getCmp(i.id);if(l!==void 0)window.Ext.getCmp(i.id).setWidth(a),window.Ext.getCmp(i.id).setHeight(c.blockSize);else if(!i.classList.contains("wm")){console.log("child not found",i.id);var n=i.getAttribute("w");n!=="w"&&console.warn("child not resized",i)}}}}),e):null};async function Ve(){return await new Promise(e=>{function t(){window.Ext!==void 0&&window.Ext.onReady(function(){return clearInterval(r),e(1)})}var r=setInterval(t,5)})}var qe=(e,t,r)=>{if(typeof window>"u")return;let i=document.createElement("div");i.classList.add("wm"),i.style.zIndex=2e4,i.style.position="absolute",i.style.bottom="0px",i.style.right="0px",i.style.color="white",i.style.fontSize="10px",i.style.fontWeight="bold",i.style.fontStyle="italic",i.style.background="#B87333",i.style.padding="1px 3px 1px 1px",i.style.border="1px solid lightgray",i.style.borderRadius="3px 3px 3px 3px",i.innerText="ReExt "+t,r!==null?r.appendChild(i):e.el!==void 0&&e.el.dom.appendChild(i)};function Ge(e){const t=we();if(typeof window===void 0||typeof window>"u")return;const[r,i]=m.useState(null),[a,l]=m.useState(null),n=m.useRef(null);n.current=a;const o=()=>n.current,[c,y]=m.useState(null),d=m.useRef(null);d.current=c;const g=()=>d.current,u=m.useRef(null);var S=Be();const[A,D]=m.useState(!1);m.useEffect(()=>{try{var w=__IS_REEXT_RUNNING__;D(!0)}catch{D(!1)}},[]),m.useEffect(()=>{var w,x="false";if(!(typeof window===void 0||typeof window>"u"))return(async()=>{if(await Ve(),e.children!==void 0&&e.config.items===void 0&&(e.config.items=[]),x==="false"&&e.xtype!=="logo"){var $;g()==null?$=e.config:$=g();try{var p=ze(e.xtype,$,e,o),J=Ext.ClassManager.getByAlias("widget."+p.xtype);if(J===void 0){var U="ReExt "+p.xtype+" could not be created";p={xtype:"label",text:U,style:{color:"red",background:"lightgray"}}}if(p.height===void 0&&p.xtype!=="window"&&(window.Ext.isClassic===!0&&p.xtype==="grid"?p.height=0:p.height="100%"),p.width===void 0&&p.xtype!=="window"&&(window.Ext.isClassic===!0&&p.xtype==="grid"?p.width=0:p.width="100%"),window.Ext.isClassic===!0){const N=pe=>{var q=pe.el.dom.parentNode;S.observe(q)};p.listeners===void 0?p.listeners={boxready:N}:p.listeners.boxready=N}p.xtype!=="window"&&(p.renderTo=u.current),p.xtype==="tabpanel"&&(p.deferredRender=!1);var _=ve(e.children,p,S);i(_.cpArray),_.childarray.length>0&&(p.items=_.childarray),w=window.Ext.create(p),l(w),n.current=w,e.config!==void 0&&e.config.reference!==void 0&&e.ReExtParent!==void 0&&(e.ReExtParent.ReExtChildren===void 0&&(e.ReExtParent.ReExtChildren=[]),e.ReExtParent.ReExtChildren.push(w)),u.current===null?console.warn("ReExtRootRef.current,props",u.current,e):(u.current.style.background="transparent",u.current.firstChild.remove()),t.type!==null&&t.type!=="production"&&qe(w,p.xtype,u.current),e.ready!==void 0&&e.ready(w)}catch(N){console.error("ReExt.jsx:",N)}}})(),()=>{x="true",!(typeof window===void 0||typeof window>"u")&&window.Ext!==void 0&&window.Ext.destroy!==void 0&&w!=null&&(l(null),window.Ext.destroy(w))}},[t.type]),m.useEffect(()=>{if(!(typeof window===void 0||typeof window>"u")&&e.config!==void 0){if(n.current!==null){e.children!==void 0&&e.config.items===void 0&&(e.config.items=[]);for(const[_]of Object.entries(d.current)){if(Ue(_)!=null||_==="xtype")return;var w=X(d.current[_],"root"),x=X(e.config[_],"root");w!=null&&delete w.listeners,x!==void 0&&w!==null&&delete x.listeners;const N=pe=>{let q=[],lr=JSON.stringify(pe,function(cr,G){if(typeof G=="object"&&G!==null){if(q.indexOf(G)!==-1)return;q.push(G)}return G});return q=null,lr};var $=N(w),p=N(x),J=ae($,p);if(!J&&(Fe(n.current,_,x),_==="items")){var U=ve(e.children,n.current,S);i(U)}}}y(e.config),d.current=e.config}},[e.config]);var O="",E="",W="",f="";if(!(typeof window===void 0||typeof window>"u")){if(window.Ext!==void 0&&window.Ext.versions!==null&&window.Ext.versions!==void 0){E=window.Ext.versions.core.version,f=window.Ext.ReExtTheme,O=window.Ext.ReExtLocation;var P=window.Ext.isClassic;P===!0?W="classic":W="modern"}if(!(typeof window===void 0||typeof window>"u")){var v="";if(t.type==="production"||t.type===null?v="production":v=`${t.type} - ${t.daysleft} days left`,e.xtype==="logo")return s.jsx(Le,{reextplugin:A,rid:e.rid,reactversion:m.version,extver:E,extlocation:O,exttoolkit:W,exttheme:f,type:v,packageversion:ye,flexdirection:e.flexdirection,style:e.style});var h;e.style===void 0||e.style.height===void 0?h=1:h="none";var H="";if(e.className!==void 0&&(H=e.className),e.xtype==="window")return null;var z,b,T={};return r==null?(z={...e.style,...T,flex:h,position:"relative",display:"flex",overflow:"hidden"},b=H+" fill"):r.length===0?(z={...e.style,...T,flex:h,position:"relative",display:"flex",overflow:"hidden"},b=H+" fill"):(z={...e.style,flex:h,position:"relative",display:"flex",overflow:"hidden"},b=H),s.jsx("div",{name:"ReExtRoot-"+e.xtype,"data-rid":e.rid,className:b,style:z,ref:u,children:s.jsx("div",{className:"portalroot",style:{display:"flex",flex:1,alignItems:"center",justifyContent:"center"},children:r!==null&&r.map(w=>w)})})}}}async function Xe(){if(typeof window===void 0||typeof window>"u")return;function e(t){t.style.width="100%",t.style.height="100%",t.style.margin="0",t.style.padding="0",t.style.padding="0",t.style.boxSizing="border-box",t.style.overflow="hidden"}document.documentElement&&e(document.documentElement),document.body&&e(document.body),document.getElementById("root")&&e(document.getElementById("root"))}function Ye(){if(!(typeof window===void 0||typeof window>"u"))return s.jsx("div",{className:"splash",style:{fontSize:"36px",border:"10px solid #0960a5",width:"100%",height:"100%",margin:0,padding:0,boxSizing:"border-box",overflow:"hidden",display:"flex",flexDirection:"column",flex:1,justifyContent:"center",alignItems:"center"},children:s.jsx("img",{style:{height:500,width:1e3},src:"../ReExt/ReExt.png"})})}var Qe=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Ze=Qe(()=>{}),ne=crypto,ge=e=>e instanceof CryptoKey,Y=new TextEncoder,F=new TextDecoder;function et(...e){let t=e.reduce((a,{length:l})=>a+l,0),r=new Uint8Array(t),i=0;for(let a of e)r.set(a,i),i+=a.length;return r}var tt=e=>{let t=atob(e),r=new Uint8Array(t.length);for(let i=0;i<t.length;i++)r[i]=t.charCodeAt(i);return r},B=e=>{let t=e;t instanceof Uint8Array&&(t=F.decode(t)),t=t.replace(/-/g,"+").replace(/_/g,"/").replace(/\s/g,"");try{return tt(t)}catch{throw new TypeError("The input to be decoded is not correctly encoded.")}},K=class extends Error{static get code(){return"ERR_JOSE_GENERIC"}constructor(t){var r;super(t),this.code="ERR_JOSE_GENERIC",this.name=this.constructor.name,(r=Error.captureStackTrace)==null||r.call(Error,this,this.constructor)}},R=class extends K{static get code(){return"ERR_JWT_CLAIM_VALIDATION_FAILED"}constructor(e,t,r="unspecified",i="unspecified"){super(e),this.code="ERR_JWT_CLAIM_VALIDATION_FAILED",this.claim=r,this.reason=i,this.payload=t}},me=class extends K{static get code(){return"ERR_JWT_EXPIRED"}constructor(e,t,r="unspecified",i="unspecified"){super(e),this.code="ERR_JWT_EXPIRED",this.claim=r,this.reason=i,this.payload=t}},L=class extends K{constructor(){super(...arguments),this.code="ERR_JOSE_NOT_SUPPORTED"}static get code(){return"ERR_JOSE_NOT_SUPPORTED"}},k=class extends K{constructor(){super(...arguments),this.code="ERR_JWS_INVALID"}static get code(){return"ERR_JWS_INVALID"}},j=class extends K{constructor(){super(...arguments),this.code="ERR_JWT_INVALID"}static get code(){return"ERR_JWT_INVALID"}},rt=class extends K{constructor(){super(...arguments),this.code="ERR_JWS_SIGNATURE_VERIFICATION_FAILED",this.message="signature verification failed"}static get code(){return"ERR_JWS_SIGNATURE_VERIFICATION_FAILED"}};function I(e,t="algorithm.name"){return new TypeError(`CryptoKey does not support this operation, its ${t} must be ${e}`)}function Q(e,t){return e.name===t}function oe(e){return parseInt(e.name.slice(4),10)}function it(e){switch(e){case"ES256":return"P-256";case"ES384":return"P-384";case"ES512":return"P-521";default:throw new Error("unreachable")}}function at(e,t){if(t.length&&!t.some(r=>e.usages.includes(r))){let r="CryptoKey does not support this operation, its usages must include ";if(t.length>2){let i=t.pop();r+=`one of ${t.join(", ")}, or ${i}.`}else t.length===2?r+=`one of ${t[0]} or ${t[1]}.`:r+=`${t[0]}.`;throw new TypeError(r)}}function nt(e,t,...r){switch(t){case"HS256":case"HS384":case"HS512":{if(!Q(e.algorithm,"HMAC"))throw I("HMAC");let i=parseInt(t.slice(2),10);if(oe(e.algorithm.hash)!==i)throw I(`SHA-${i}`,"algorithm.hash");break}case"RS256":case"RS384":case"RS512":{if(!Q(e.algorithm,"RSASSA-PKCS1-v1_5"))throw I("RSASSA-PKCS1-v1_5");let i=parseInt(t.slice(2),10);if(oe(e.algorithm.hash)!==i)throw I(`SHA-${i}`,"algorithm.hash");break}case"PS256":case"PS384":case"PS512":{if(!Q(e.algorithm,"RSA-PSS"))throw I("RSA-PSS");let i=parseInt(t.slice(2),10);if(oe(e.algorithm.hash)!==i)throw I(`SHA-${i}`,"algorithm.hash");break}case"EdDSA":{if(e.algorithm.name!=="Ed25519"&&e.algorithm.name!=="Ed448")throw I("Ed25519 or Ed448");break}case"ES256":case"ES384":case"ES512":{if(!Q(e.algorithm,"ECDSA"))throw I("ECDSA");let i=it(t);if(e.algorithm.namedCurve!==i)throw I(i,"algorithm.namedCurve");break}default:throw new TypeError("CryptoKey does not support this operation")}at(e,r)}function xe(e,t,...r){var i;if(r.length>2){let a=r.pop();e+=`one of type ${r.join(", ")}, or ${a}.`}else r.length===2?e+=`one of type ${r[0]} or ${r[1]}.`:e+=`of type ${r[0]}.`;return t==null?e+=` Received ${t}`:typeof t=="function"&&t.name?e+=` Received function ${t.name}`:typeof t=="object"&&t!=null&&((i=t.constructor)!=null&&i.name)&&(e+=` Received an instance of ${t.constructor.name}`),e}var be=(e,...t)=>xe("Key must be ",e,...t);function Ee(e,t,...r){return xe(`Key for the ${e} algorithm must be `,t,...r)}var Se=e=>ge(e)?!0:(e==null?void 0:e[Symbol.toStringTag])==="KeyObject",Z=["CryptoKey"],ot=(...e)=>{let t=e.filter(Boolean);if(t.length===0||t.length===1)return!0;let r;for(let i of t){let a=Object.keys(i);if(!r||r.size===0){r=new Set(a);continue}for(let l of a){if(r.has(l))return!1;r.add(l)}}return!0},st=ot;function lt(e){return typeof e=="object"&&e!==null}function ee(e){if(!lt(e)||Object.prototype.toString.call(e)!=="[object Object]")return!1;if(Object.getPrototypeOf(e)===null)return!0;let t=e;for(;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}var ct=(e,t)=>{if(e.startsWith("RS")||e.startsWith("PS")){let{modulusLength:r}=t.algorithm;if(typeof r!="number"||r<2048)throw new TypeError(`${e} requires key modulusLength to be 2048 bits or larger`)}};function dt(e){let t,r;switch(e.kty){case"RSA":{switch(e.alg){case"PS256":case"PS384":case"PS512":t={name:"RSA-PSS",hash:`SHA-${e.alg.slice(-3)}`},r=e.d?["sign"]:["verify"];break;case"RS256":case"RS384":case"RS512":t={name:"RSASSA-PKCS1-v1_5",hash:`SHA-${e.alg.slice(-3)}`},r=e.d?["sign"]:["verify"];break;case"RSA-OAEP":case"RSA-OAEP-256":case"RSA-OAEP-384":case"RSA-OAEP-512":t={name:"RSA-OAEP",hash:`SHA-${parseInt(e.alg.slice(-3),10)||1}`},r=e.d?["decrypt","unwrapKey"]:["encrypt","wrapKey"];break;default:throw new L('Invalid or unsupported JWK "alg" (Algorithm) Parameter value')}break}case"EC":{switch(e.alg){case"ES256":t={name:"ECDSA",namedCurve:"P-256"},r=e.d?["sign"]:["verify"];break;case"ES384":t={name:"ECDSA",namedCurve:"P-384"},r=e.d?["sign"]:["verify"];break;case"ES512":t={name:"ECDSA",namedCurve:"P-521"},r=e.d?["sign"]:["verify"];break;case"ECDH-ES":case"ECDH-ES+A128KW":case"ECDH-ES+A192KW":case"ECDH-ES+A256KW":t={name:"ECDH",namedCurve:e.crv},r=e.d?["deriveBits"]:[];break;default:throw new L('Invalid or unsupported JWK "alg" (Algorithm) Parameter value')}break}case"OKP":{switch(e.alg){case"EdDSA":t={name:e.crv},r=e.d?["sign"]:["verify"];break;case"ECDH-ES":case"ECDH-ES+A128KW":case"ECDH-ES+A192KW":case"ECDH-ES+A256KW":t={name:e.crv},r=e.d?["deriveBits"]:[];break;default:throw new L('Invalid or unsupported JWK "alg" (Algorithm) Parameter value')}break}default:throw new L('Invalid or unsupported JWK "kty" (Key Type) Parameter value')}return{algorithm:t,keyUsages:r}}var ft=async e=>{if(!e.alg)throw new TypeError('"alg" argument is required when "jwk.alg" is not present');let{algorithm:t,keyUsages:r}=dt(e),i=[t,e.ext??!1,e.key_ops??r],a={...e};return delete a.alg,delete a.use,ne.subtle.importKey("jwk",a,...i)},ut=ft,ke=e=>B(e),se,le,$e=e=>(e==null?void 0:e[Symbol.toStringTag])==="KeyObject",Ce=async(e,t,r,i)=>{let a=e.get(t);if(a!=null&&a[i])return a[i];let l=await ut({...r,alg:i});return a?a[i]=l:e.set(t,{[i]:l}),l},pt=(e,t)=>{if($e(e)){let r=e.export({format:"jwk"});return delete r.d,delete r.dp,delete r.dq,delete r.p,delete r.q,delete r.qi,r.k?ke(r.k):(le||(le=new WeakMap),Ce(le,e,r,t))}return e},yt=(e,t)=>{if($e(e)){let r=e.export({format:"jwk"});return r.k?ke(r.k):(se||(se=new WeakMap),Ce(se,e,r,t))}return e},ht={normalizePublicKey:pt,normalizePrivateKey:yt},M=e=>e==null?void 0:e[Symbol.toStringTag],wt=(e,t)=>{if(!(t instanceof Uint8Array)){if(!Se(t))throw new TypeError(Ee(e,t,...Z,"Uint8Array"));if(t.type!=="secret")throw new TypeError(`${M(t)} instances for symmetric algorithms must be of type "secret"`)}},vt=(e,t,r)=>{if(!Se(t))throw new TypeError(Ee(e,t,...Z));if(t.type==="secret")throw new TypeError(`${M(t)} instances for asymmetric algorithms must not be of type "secret"`);if(r==="sign"&&t.type==="public")throw new TypeError(`${M(t)} instances for asymmetric algorithm signing must be of type "private"`);if(r==="decrypt"&&t.type==="public")throw new TypeError(`${M(t)} instances for asymmetric algorithm decryption must be of type "private"`);if(t.algorithm&&r==="verify"&&t.type==="private")throw new TypeError(`${M(t)} instances for asymmetric algorithm verifying must be of type "public"`);if(t.algorithm&&r==="encrypt"&&t.type==="private")throw new TypeError(`${M(t)} instances for asymmetric algorithm encryption must be of type "public"`)},gt=(e,t,r)=>{e.startsWith("HS")||e==="dir"||e.startsWith("PBES2")||/^A\d{3}(?:GCM)?KW$/.test(e)?wt(e,t):vt(e,t,r)},mt=gt;function xt(e,t,r,i,a){if(a.crit!==void 0&&(i==null?void 0:i.crit)===void 0)throw new e('"crit" (Critical) Header Parameter MUST be integrity protected');if(!i||i.crit===void 0)return new Set;if(!Array.isArray(i.crit)||i.crit.length===0||i.crit.some(n=>typeof n!="string"||n.length===0))throw new e('"crit" (Critical) Header Parameter MUST be an array of non-empty strings when present');let l;r!==void 0?l=new Map([...Object.entries(r),...t.entries()]):l=t;for(let n of i.crit){if(!l.has(n))throw new L(`Extension Header Parameter "${n}" is not recognized`);if(a[n]===void 0)throw new e(`Extension Header Parameter "${n}" is missing`);if(l.get(n)&&i[n]===void 0)throw new e(`Extension Header Parameter "${n}" MUST be integrity protected`)}return new Set(i.crit)}var bt=xt;function Et(e,t){let r=`SHA-${e.slice(-3)}`;switch(e){case"HS256":case"HS384":case"HS512":return{hash:r,name:"HMAC"};case"PS256":case"PS384":case"PS512":return{hash:r,name:"RSA-PSS",saltLength:e.slice(-3)>>3};case"RS256":case"RS384":case"RS512":return{hash:r,name:"RSASSA-PKCS1-v1_5"};case"ES256":case"ES384":case"ES512":return{hash:r,name:"ECDSA",namedCurve:t.namedCurve};case"EdDSA":return{name:t.name};default:throw new L(`alg ${e} is not supported either by JOSE or your javascript runtime`)}}async function St(e,t,r){if(t=await ht.normalizePublicKey(t,e),ge(t))return nt(t,e,r),t;if(t instanceof Uint8Array){if(!e.startsWith("HS"))throw new TypeError(be(t,...Z));return ne.subtle.importKey("raw",t,{hash:`SHA-${e.slice(-3)}`,name:"HMAC"},!1,[r])}throw new TypeError(be(t,...Z,"Uint8Array"))}var kt=async(e,t,r,i)=>{let a=await St(e,t,"verify");ct(e,a);let l=Et(e,a.algorithm);try{return await ne.subtle.verify(l,a,r,i)}catch{return!1}},$t=kt;async function Ct(e,t,r){if(!ee(e))throw new k("Flattened JWS must be an object");if(e.protected===void 0&&e.header===void 0)throw new k('Flattened JWS must have either of the "protected" or "header" members');if(e.protected!==void 0&&typeof e.protected!="string")throw new k("JWS Protected Header incorrect type");if(e.payload===void 0)throw new k("JWS Payload missing");if(typeof e.signature!="string")throw new k("JWS Signature missing or incorrect type");if(e.header!==void 0&&!ee(e.header))throw new k("JWS Unprotected Header incorrect type");let i={};if(e.protected)try{let S=B(e.protected);i=JSON.parse(F.decode(S))}catch{throw new k("JWS Protected Header is invalid")}if(!st(i,e.header))throw new k("JWS Protected and JWS Unprotected Header Parameter names must be disjoint");let a={...i,...e.header},l=bt(k,new Map([["b64",!0]]),r==null?void 0:r.crit,i,a),n=!0;if(l.has("b64")&&(n=i.b64,typeof n!="boolean"))throw new k('The "b64" (base64url-encode payload) Header Parameter must be a boolean');let{alg:o}=a;if(typeof o!="string"||!o)throw new k('JWS "alg" (Algorithm) Header Parameter missing or invalid');if(n){if(typeof e.payload!="string")throw new k("JWS Payload must be a string")}else if(typeof e.payload!="string"&&!(e.payload instanceof Uint8Array))throw new k("JWS Payload must be a string or an Uint8Array instance");let c=!1;typeof t=="function"&&(t=await t(i,e),c=!0),mt(o,t,"verify");let y=et(Y.encode(e.protected??""),Y.encode("."),typeof e.payload=="string"?Y.encode(e.payload):e.payload),d;try{d=B(e.signature)}catch{throw new k("Failed to base64url decode the signature")}if(!await $t(o,t,d,y))throw new rt;let g;if(n)try{g=B(e.payload)}catch{throw new k("Failed to base64url decode the payload")}else typeof e.payload=="string"?g=Y.encode(e.payload):g=e.payload;let u={payload:g};return e.protected!==void 0&&(u.protectedHeader=i),e.header!==void 0&&(u.unprotectedHeader=e.header),c?{...u,key:t}:u}async function At(e,t,r){if(e instanceof Uint8Array&&(e=F.decode(e)),typeof e!="string")throw new k("Compact JWS must be a string or Uint8Array");let{0:i,1:a,2:l,length:n}=e.split(".");if(n!==3)throw new k("Invalid Compact JWS");let o=await Ct({payload:a,protected:i,signature:l},t,r),c={payload:o.payload,protectedHeader:o.protectedHeader};return typeof t=="function"?{...c,key:o.key}:c}var Tt=e=>Math.floor(e.getTime()/1e3),Rt=/^(\+|\-)? ?(\d+|\d+\.\d+) ?(seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)(?: (ago|from now))?$/i,Ae=e=>{let t=Rt.exec(e);if(!t||t[4]&&t[1])throw new TypeError("Invalid time period format");let r=parseFloat(t[2]),i=t[3].toLowerCase(),a;switch(i){case"sec":case"secs":case"second":case"seconds":case"s":a=Math.round(r);break;case"minute":case"minutes":case"min":case"mins":case"m":a=Math.round(r*60);break;case"hour":case"hours":case"hr":case"hrs":case"h":a=Math.round(r*3600);break;case"day":case"days":case"d":a=Math.round(r*86400);break;case"week":case"weeks":case"w":a=Math.round(r*604800);break;default:a=Math.round(r*31557600);break}return t[1]==="-"||t[4]==="ago"?-a:a},Te=e=>e.toLowerCase().replace(/^application\//,""),Pt=(e,t)=>typeof e=="string"?t.includes(e):Array.isArray(e)?t.some(Set.prototype.has.bind(new Set(e))):!1,_t=(e,t,r={})=>{let i;try{i=JSON.parse(F.decode(t))}catch{}if(!ee(i))throw new j("JWT Claims Set must be a top-level JSON object");let{typ:a}=r;if(a&&(typeof e.typ!="string"||Te(e.typ)!==Te(a)))throw new R('unexpected "typ" JWT header value',i,"typ","check_failed");let{requiredClaims:l=[],issuer:n,subject:o,audience:c,maxTokenAge:y}=r,d=[...l];y!==void 0&&d.push("iat"),c!==void 0&&d.push("aud"),o!==void 0&&d.push("sub"),n!==void 0&&d.push("iss");for(let A of new Set(d.reverse()))if(!(A in i))throw new R(`missing required "${A}" claim`,i,A,"missing");if(n&&!(Array.isArray(n)?n:[n]).includes(i.iss))throw new R('unexpected "iss" claim value',i,"iss","check_failed");if(o&&i.sub!==o)throw new R('unexpected "sub" claim value',i,"sub","check_failed");if(c&&!Pt(i.aud,typeof c=="string"?[c]:c))throw new R('unexpected "aud" claim value',i,"aud","check_failed");let g;switch(typeof r.clockTolerance){case"string":g=Ae(r.clockTolerance);break;case"number":g=r.clockTolerance;break;case"undefined":g=0;break;default:throw new TypeError("Invalid clockTolerance option type")}let{currentDate:u}=r,S=Tt(u||new Date);if((i.iat!==void 0||y)&&typeof i.iat!="number")throw new R('"iat" claim must be a number',i,"iat","invalid");if(i.nbf!==void 0){if(typeof i.nbf!="number")throw new R('"nbf" claim must be a number',i,"nbf","invalid");if(i.nbf>S+g)throw new R('"nbf" claim timestamp check failed',i,"nbf","check_failed")}if(i.exp!==void 0){if(typeof i.exp!="number")throw new R('"exp" claim must be a number',i,"exp","invalid");if(i.exp<=S-g)throw new me('"exp" claim timestamp check failed',i,"exp","check_failed")}if(y){let A=S-i.iat,D=typeof y=="number"?y:Ae(y);if(A-g>D)throw new me('"iat" claim timestamp check failed (too far in the past)',i,"iat","check_failed");if(A<0-g)throw new R('"iat" claim timestamp check failed (it should be in the past)',i,"iat","check_failed")}return i};async function jt(e,t,r){var l;let i=await At(e,t,r);if((l=i.protectedHeader.crit)!=null&&l.includes("b64")&&i.protectedHeader.b64===!1)throw new j("JWTs MUST NOT use unencoded payload");let a={payload:_t(i.protectedHeader,i.payload,r),protectedHeader:i.protectedHeader};return typeof t=="function"?{...a,key:i.key}:a}var It=B;function Dt(e){if(typeof e!="string")throw new j("JWTs must use Compact JWS serialization, JWT must be a string");let{1:t,length:r}=e.split(".");if(r===5)throw new j("Only JWTs using Compact JWS serialization can be decoded");if(r!==3)throw new j("Invalid JWT");if(!t)throw new j("JWTs must contain a payload");let i;try{i=It(t)}catch{throw new j("Failed to base64url decode the payload")}let a;try{a=JSON.parse(F.decode(i))}catch{throw new j("Failed to parse the decoded payload as JSON")}if(!ee(a))throw new j("Invalid JWT Claims Set");return a}function te(e){var t=new Error(e);return t.source="ulid",t}var ce="0123456789ABCDEFGHJKMNPQRSTVWXYZ",V=ce.length,Re=Math.pow(2,48)-1,Ot=10,Wt=16;function Ht(e){var t=Math.floor(e()*V);return t===V&&(t=V-1),ce.charAt(t)}function Jt(e,t){if(isNaN(e))throw new Error(e+" must be a number");if(e>Re)throw te("cannot encode time greater than "+Re);if(e<0)throw te("time must be positive");if(Number.isInteger(e)===!1)throw te("time must be an integer");for(var r=void 0,i="";t>0;t--)r=e%V,i=ce.charAt(r)+i,e=(e-r)/V;return i}function Nt(e,t){for(var r="";e>0;e--)r=Ht(t)+r;return r}function Kt(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,t=arguments[1];t||(t=typeof window<"u"?window:null);var r=t&&(t.crypto||t.msCrypto);if(r)return function(){var a=new Uint8Array(1);return r.getRandomValues(a),a[0]/255};try{var i=Ze();return function(){return i.randomBytes(1).readUInt8()/255}}catch{}if(e){try{console.error("secure crypto unusable, falling back to insecure Math.random()!")}catch{}return function(){return Math.random()}}throw te("secure crypto unusable, insecure Math.random not allowed")}function Lt(e){return e||(e=Kt()),function(t){return isNaN(t)&&(t=Date.now()),Jt(t,Ot)+Nt(Wt,e)}}Lt();var de;function Mt(e){return de==null?void 0:de.get(e)}var fe;function zt(e){return fe==null?void 0:fe.get(e)}var ue;function Ut(e,t){var r;return(r=ue==null?void 0:ue.get(e))==null?void 0:r.get(t)}function Ft(e){var r,i;let t=typeof e;return t==="string"?`"${e}"`:t==="number"||t==="bigint"||t==="boolean"?`${e}`:t==="object"||t==="function"?(e&&((i=(r=Object.getPrototypeOf(e))==null?void 0:r.constructor)==null?void 0:i.name))??"null":t}function re(e,t,r,i,a){let l=a&&"input"in a?a.input:r.value,n=(a==null?void 0:a.expected)??e.expects??null,o=(a==null?void 0:a.received)??Ft(l),c={kind:e.kind,type:e.type,input:l,expected:n,received:o,message:`Invalid ${t}: ${n?`Expected ${n} but r`:"R"}eceived ${o}`,requirement:e.requirement,path:a==null?void 0:a.path,issues:a==null?void 0:a.issues,lang:i.lang,abortEarly:i.abortEarly,abortPipeEarly:i.abortPipeEarly},y=e.kind==="schema",d=(a==null?void 0:a.message)??e.message??Ut(e.reference,c.lang)??(y?zt(c.lang):null)??i.message??Mt(c.lang);d&&(c.message=typeof d=="function"?d(c):d),y&&(r.typed=!1),r.issues?r.issues.push(c):r.issues=[c]}function Pe(e){return{kind:"transformation",type:"brand",reference:Pe,async:!1,name:e,_run(t){return t}}}function Bt(e,t,r){return typeof e.default=="function"?e.default(t,r):e.default}function _e(e){return{kind:"schema",type:"number",reference:_e,expects:"number",async:!1,message:e,_run(t,r){return typeof t.value=="number"&&!isNaN(t.value)?t.typed=!0:re(this,"type",t,r),t}}}function je(e,...t){let r={kind:"schema",type:"optional",reference:je,expects:`${e.expects} | undefined`,async:!1,wrapped:e,_run(i,a){return i.value===void 0&&("default"in this&&(i.value=Bt(this,i,a)),i.value===void 0)?(i.typed=!0,i):this.wrapped._run(i,a)}};return 0 in t&&(r.default=t[0]),r}function Ie(e,t){return{kind:"schema",type:"strict_object",reference:Ie,expects:"Object",async:!1,entries:e,message:t,_run(r,i){var l;let a=r.value;if(a&&typeof a=="object"){r.typed=!0,r.value={};for(let n in this.entries){let o=a[n],c=this.entries[n]._run({typed:!1,value:o},i);if(c.issues){let y={type:"object",origin:"value",input:a,key:n,value:o};for(let d of c.issues)d.path?d.path.unshift(y):d.path=[y],(l=r.issues)==null||l.push(d);if(r.issues||(r.issues=c.issues),i.abortEarly){r.typed=!1;break}}c.typed||(r.typed=!1),(c.value!==void 0||n in a)&&(r.value[n]=c.value)}if(!r.issues||!i.abortEarly){for(let n in a)if(!(n in this.entries)){let o=a[n];re(this,"type",r,i,{input:o,expected:"never",path:[{type:"object",origin:"value",input:a,key:n,value:o}]});break}}}else re(this,"type",r,i);return r}}}function De(e){return{kind:"schema",type:"string",reference:De,expects:"string",async:!1,message:e,_run(t,r){return typeof t.value=="string"?t.typed=!0:re(this,"type",t,r),t}}}function Vt(...e){return{...e[0],pipe:e,_run(t,r){for(let i of e)if(i.kind!=="metadata"){if(t.issues&&(i.kind==="schema"||i.kind==="transformation")){t.typed=!1;break}(!t.issues||!r.abortEarly&&!r.abortPipeEarly)&&(t=i._run(t,r))}return t}}}var qt=Vt(De(),Pe("lid"));Ie({id:qt,ver:je(_e())});var Gt=e=>()=>e*48271%2147483647/2147483647,Xt=e=>typeof Buffer<"u"?Buffer.from(e).toString("base64"):btoa(typeof e=="string"?e:String.fromCharCode(...e)),Yt=e=>typeof Buffer<"u"?Buffer.from(e,"base64").toString():atob(e),Qt=(e,t)=>{let r=Gt(t),i=new TextEncoder().encode(e).map(a=>a^Math.floor(r()*256));return Xt(i)},Zt=e=>e.split("").reverse().join(""),er=e=>typeof e=="object"&&!!e&&"sub"in e&&"exp"in e&&typeof e.sub=="string"&&typeof e.exp=="number",tr=async e=>{let t=Zt(Yt(e));return{decoded:Dt(t),jwt:t}},rr=async e=>{let{decoded:t,jwt:r}=await tr(e);if(!er(t))throw new Error("Invalid license key");let{sub:i,exp:a}=t,l=new TextEncoder().encode(Qt(i,a));return await jt(r,l),t};function ir({r:e,v:t,t:r}){const i=we();if(m.useEffect(()=>{e!==void 0&&e.toLowerCase().includes("ehsug")?i.setType("production"):i.setType(r)},[]),m.useEffect(()=>{const a=async n=>{if(n===void 0)return{type:"nokey",daysleft:0};try{const o=await rr(n),d=new Date(o.exp*1e3)-new Date,g=Math.floor(d/(1e3*60*60*24));return g>0?{type:"trial",daysleft:g}:{type:"expired",daysleft:0}}catch(o){return o.message.includes("claim timestamp check failed")?{type:"expired",daysleft:0}:{type:"invalidkey",daysleft:0}}},l=async()=>{var n=await a(e);switch(i.setType(n.type),i.setDaysLeft(n.daysleft),n.type){case"production":case"trial":i.setTrialDialog(!1);break;case"nokey":case"expired":case"invalidkey":default:i.setTrialDialog(!0);break}};i.type!==null&&i.type!=="production"&&l()},[i.type]),i.type!=="production"&&i.trialdialog===!0)return s.jsx("div",{style:{zIndex:2e5,fontSize:"22px",background:"rgb(211,211,211,.4)",color:"black",display:"flex",flexDirection:"column",position:"absolute",left:"50%",width:"100%",height:"100%",transform:"translateX(-50%)",padding:"10px 10px 10px 10px",border:"1px solid black"},children:s.jsxs("div",{style:{height:"100%",display:"flex",padding:"10px 10px 10px 10px",flexDirection:"column",margin:"40px",borderRadius:"5px",border:"1px solid gray",background:"white"},children:[s.jsxs("div",{style:{display:"flex",flexDirection:"row",alignItems:"center"},children:[s.jsx("img",{style:{width:160},src:"../ReExt/ReExt.png"}),s.jsxs("div",{style:{margin:"0 0 0 20px"},children:["Welcome to the ReExt v",t," Trial"]})]}),i.type==="trial"||i.type==="nokey"&&s.jsxs(s.Fragment,{children:[s.jsxs("div",{style:{margin:"10px 0 10px 0",fontSize:"18px"},children:["This is a 30 day trial version of ReExt.",s.jsx("br",{}),"Without a valid trial key, this dialog will appear.",s.jsx("br",{}),s.jsx("br",{}),"To have a trial key emailed to you, fill in this form and click 'Get Trial Key'."]}),s.jsx("div",{style:{xwidth:"100%",flex:1,display:"flex",border:"0px solid red"},children:s.jsx("iframe",{style:{width:"100%",margin:"0 0 10px 0",flex:1,border:"0px solid lightgray"},src:"https://www.sencha.com/forms/reext/trial-reext.php"})}),s.jsxs("div",{style:{display:"flex",flexDirection:"row",justifyContent:"space-between",alignItems:"flex-end"},children:[s.jsx("div",{style:{fontSize:"12px"},children:i.type}),s.jsx("button",{style:{fontSize:"18px",padding:"5px 5px 5px 5px"},onClick:()=>{i.setTrialDialog(!1)},children:"Close"})]})]}),i.type==="expired"&&s.jsx(s.Fragment,{children:s.jsxs("div",{style:{display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",margin:"10px 0 10px 0",fontSize:"18px",height:"100%"},children:[s.jsx("div",{style:{margin:"0 0 20px 0",fontSize:"24px"},children:"Your ReExt trial key has expired"}),s.jsx("div",{children:"Contact Sencha Sales"}),s.jsx("div",{children:s.jsx("a",{href:"https://www.sencha.com/company/contact/",target:"_blank",rel:"noopener noreferrer",children:"https://www.sencha.com/company/contact/"})})]})}),i.type==="invalidkey"&&s.jsx(s.Fragment,{children:s.jsxs("div",{style:{display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",margin:"10px 0 10px 0",fontSize:"18px",height:"100%"},children:[s.jsx("div",{style:{margin:"0 0 20px 0",fontSize:"24px"},children:"Your ReExt trial key is invalid"}),s.jsx("div",{children:"Contact Sencha Sales"}),s.jsx("div",{children:s.jsx("a",{href:"https://www.sencha.com/company/contact/",target:"_blank",rel:"noopener noreferrer",children:"https://www.sencha.com/company/contact/"})})]})})]})})}async function ar(e){try{let P=async(b,T,w)=>await new Promise(x=>{window.Ext.onReady(function(){return window.Ext.ReExtLocation=w,window.Ext.ReExtTheme=b,window.Ext.ReExtLi=!0,x(1)})}),v=async b=>typeof window===void 0||typeof window>"u"?void 0:await new Promise((T,w)=>{let x=document.getElementsByTagName("HEAD")[0];var $=!1;for(let p=0;p<x.childNodes.length;p++)x.childNodes[p].src===window.location.origin+"/"+b&&($=!0);if($===!1){let p=document.createElement("script");p.addEventListener("load",()=>T(1)),p.addEventListener("error",()=>{var J=`${b} (js) | ||
(function(P,s){typeof exports=="object"&&typeof module<"u"?s(exports,require("react/jsx-runtime"),require("react"),require("react-dom")):typeof define=="function"&&define.amd?define(["exports","react/jsx-runtime","react","react-dom"],s):(P=typeof globalThis<"u"?globalThis:P||self,s(P.ReExt={},P.jsxRuntime,P.React,P.ReactDOM))})(this,function(P,s,m,ie){"use strict";const ye="1.0.300",We=(e,t)=>{for(var r in e)typeof e[r]=="function"&&function(i,a){var l=r;e[r]=function(){t===!0&&console.log("---"),console.log("globalState."+l+" payload:",arguments[0]),t===!0&&console.log(new Error().stack),t===!0&&console.log("---");var n=a.apply(this,arguments);return n}}(r,e[r])},He=async(e,t,r)=>{console.log("dispatch:",e.type,e.payload),r.dispatchStack&&console.log(new Error().stack)},Je=(e,t,r)=>{const[i,a]=m.useReducer(e,t),l=m.useRef(null);var n=r.middleware;n===void 0&&(n=[]);var o=r.middlewareafter;return o===void 0&&(o=[]),m.useEffect(()=>{o.map(c=>c(l.current,i))},[o,i]),[i,c=>{n.map(p=>p(c,i,r)),l.current=c,a(c)}]},he=m.createContext(),we=()=>m.useContext(he),Ne=(e,t)=>{var r={...e};return r[t.type.toLowerCase()]=t.payload,window.vscodeapi!==void 0&&vscodeapi.setState(r),r},Ke=e=>{if(e===void 0)return;var t=e.types,r={};for(let o in t)t.hasOwnProperty(o)&&(r["set"+o]=c=>l({type:o,payload:c}));var i={};for(let o in t)t.hasOwnProperty(o)&&(i[o.toLowerCase()]=t[o].value);m.useEffect(()=>{e.dispatchTrace&&e.middleware.push(He)},[e]),e.actionTrace&&We(r,e.actionStack);const[a,l]=Je(Ne,i,e),n=(o,c)=>{var p={};for(const[d]of Object.entries(c))p[d]=o[d];return p};return m.createElement(he.Provider,{value:{...n(a,i),...r}},e.children)};function X(e,t){try{if(e===null||typeof e!="object")return e;if(e instanceof Date)return new Date(e);if(Array.isArray(e)){let r=[];for(let i=0;i<e.length;i++)r[i]=X(e[i],"array");return r}if(e instanceof Object){delete e.$initParent;let r={};for(let i in e)e.hasOwnProperty(i)&&(r[i]=X(e[i],"object"));return r}return e}catch{return console.error("error - cloneDeep node:",t),""}}function ae(e,t){if(e===t)return!0;if(e==null||t==null)return e===t;if(typeof e!=typeof t)return!1;if(e instanceof Date&&t instanceof Date)return e.getTime()===t.getTime();if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return!1;for(let r=0;r<e.length;r++)if(!ae(e[r],t[r]))return!1;return!0}if(e instanceof Object&&t instanceof Object){let r=Object.keys(e),i=Object.keys(t);if(r.length!==i.length)return!1;for(let a of r)if(!t.hasOwnProperty(a)||!ae(e[a],t[a]))return!1;return!0}return!1}function Le({reextplugin:e,rid:t,reactversion:r,extver:i,extlocation:a,exttoolkit:l,exttheme:n,type:o,packageversion:c,style:p,flexdirection:d,...v}){return s.jsxs("div",{name:"ReExtRootLogo","data-rid":v.rid,style:{display:"flex",flexDirection:d,alignItems:"center",color:"black",padding:5,...p},children:[s.jsx("img",{style:{height:40,width:80},src:"../ReExt/ReExt.png"}),s.jsxs("div",{style:{margin:"0 0 0 3px"},children:[s.jsx("div",{style:{margin:"0 0 0 1px",fontSize:12,color:"black"},children:s.jsx("a",{style:v.style,target:"_blank",rel:"noreferrer",href:"https://www.npmjs.com/package/@sencha/reext",children:s.jsxs("i",{children:["ReExt ",c]})})}),s.jsx("div",{style:{fontSize:"10px",margin:"2px 0 0 0"},children:s.jsxs("span",{style:{margin:"0 0 0 0"},children:[o,", reextplugin: ",e.toString()]})}),s.jsx("div",{style:{fontSize:"10px",margin:"2px 0 0 0"},children:s.jsxs("span",{style:{margin:"0 0 0 0"},children:["React: ",s.jsx("b",{children:r})]})}),s.jsx("div",{style:{fontSize:"10px",margin:"2px 0 0 0"},children:s.jsxs("span",{style:{margin:"0 0 0 0"},children:["ExtJS: ",s.jsxs("b",{children:[i," (",a,")"]})]})}),s.jsxs("div",{style:{fontSize:"10px",margin:"2px 0 0 0"},children:[s.jsxs("span",{style:{margin:"0 0 0 0"},children:["toolkit: ",s.jsx("b",{children:l})]}),s.jsxs("span",{style:{margin:"0 0 0 5px"},children:["theme: ",s.jsx("b",{children:n})]})]})]})]})}var Me=e=>{var t=null,r=e.slice(0,2);if(r==="on"){var i=e.charAt(2),a=e.charAt(2).toUpperCase();i===a&&(t=e.slice(2).toLowerCase())}return window.Ext.isClassic===!0&&t==="tap"&&(t="click"),t},ze=(e,t,r,i)=>{if(!(typeof window===void 0||typeof window>"u")){var a={};if(a.xtype=e,t!==void 0)for(let[n,o]of Object.entries(t))a[n]=o;if(r.references===!0&&(a.controller=window.Ext.create("Ext.app.ViewController")),a.store!==void 0&&(a.store.listeners!==void 0?a.store.listeners.load===void 0&&(a.store.listeners.load=n=>{r.storeloaded!==void 0&&r.storeloaded(n,i())}):a.store.listeners={load:n=>{r.storeloaded!==void 0&&r.storeloaded(n,i())}}),a.listeners===void 0){a.listeners={};for(let[n,o]of Object.entries(r)){var l=Me(n);l!==null&&(a.listeners[l]=function(){o(...arguments)})}Object.keys(a.listeners).length===0&&delete a.listeners}return a}},Ue=e=>{var t=null,r=e.slice(0,2);if(r==="on"){var i=e.charAt(2),a=e.charAt(2).toUpperCase();i===a&&(t=e.slice(2).toLowerCase())}return window.Ext.isClassic===!0&&t==="tap"&&(t="click"),t},ve=(e,t,r)=>{var i=[];if(!(typeof window===void 0||typeof window>"u")){var a=[],l=[];if(e===void 0)return{childarray:[],cpArray:[]};e.length===void 0?l.push(e):l=e;try{l.map(o=>{var c,p;if(t.xtype=="tabpanel"){var d;window.Ext.ReExtTheme==="classic"?d="Ext.panel.Panel":d="Ext.Panel",c=window.Ext.create(d,{layout:"fit",title:o.props.title,cls:"ReExtTabChildRoot",items:[{xtype:"component",listeners:{activate:u=>{p=ie.createPortal(o,u.el.dom),a.push(p);var k=u.el.dom.parentNode;r.observe(k)},render:u=>{p=ie.createPortal(o,u.el.dom),a.push(p);var k=u.el.dom.parentNode;r.observe(k)}},style:{backgroundColor:"transparent",display:"flex",height:"100%",width:"100%"}}]}),i.push(c)}else{let{flex:u,region:k,split:_,width:O,height:W,minWidth:E,maxWidth:J,minHeight:H,maxHeight:f}=o.props.config||{},C={};u!==void 0&&(C.flex=u),k!==void 0&&(C.region=k),_!==void 0&&(C.split=_),O!==void 0&&(C.width=O),W!==void 0&&(C.height=W),E!==void 0&&(C.minWidth=E),J!==void 0&&(C.maxWidth=J),H!==void 0&&(C.minHeight=H),f!==void 0&&(C.maxHeight=f),console.log("filteredConfig:",C),console.log(o);var v={items:[{xtype:"component",listeners:{render:x=>{p=ie.createPortal(o,x.el.dom),a.push(p);var h=x.el.dom.parentNode;r.observe(h)}},style:{flex:1,backgroundColor:"transparent",display:"flex",height:"100%",width:"100%"}}],...C};c={xtype:"container",layout:"fit",...v},i.push(c)}});var n={childarray:i,cpArray:a};return n}catch(o){return console.error("iteratechldren:",o.toString()),[]}}},Fe=(e,t,r)=>{if(!(typeof window===void 0||typeof window>"u")){var i=l=>{let n=l.charAt(0).toUpperCase(),o=l.slice(1);var c="set"+(n+o);return c},a;window.Ext.isClassic===!0?t==="items"?(e.removeAll(!0),e.add(r)):t!=="layout"&&(a=i(t),e[a]!==void 0?e[a](r):e[t]=r):(a=i(t),e[a]!==void 0&&e[a](r))}},Be=()=>{var e;return typeof ResizeObserver<"u"?(e=new ResizeObserver(t=>{if(!(typeof window===void 0||typeof window>"u"))for(let o of t){var r=0,i=o.target.children.item(r);if(i!==null&&o.contentBoxSize){let c=o.contentBoxSize[0];var a=c.inlineSize,l=window.Ext.getCmp(i.id);if(l!==void 0)window.Ext.getCmp(i.id).setWidth(a),window.Ext.getCmp(i.id).setHeight(c.blockSize);else if(!i.classList.contains("wm")){console.log("child not found",i.id);var n=i.getAttribute("w");n!=="w"&&console.warn("child not resized",i)}}}}),e):null};async function Ve(){return await new Promise(e=>{function t(){window.Ext!==void 0&&window.Ext.onReady(function(){return clearInterval(r),e(1)})}var r=setInterval(t,5)})}var qe=(e,t,r)=>{if(typeof window>"u")return;let i=document.createElement("div");i.classList.add("wm"),i.style.zIndex=2e4,i.style.position="absolute",i.style.bottom="0px",i.style.right="0px",i.style.color="white",i.style.fontSize="10px",i.style.fontWeight="bold",i.style.fontStyle="italic",i.style.background="#B87333",i.style.padding="1px 3px 1px 1px",i.style.border="1px solid lightgray",i.style.borderRadius="3px 3px 3px 3px",i.innerText="ReExt "+t,r!==null?r.appendChild(i):e.el!==void 0&&e.el.dom.appendChild(i)};function Ge(e){const t=we();if(typeof window===void 0||typeof window>"u")return;const[r,i]=m.useState(null),[a,l]=m.useState(null),n=m.useRef(null);n.current=a;const o=()=>n.current,[c,p]=m.useState(null),d=m.useRef(null);d.current=c;const v=()=>d.current,u=m.useRef(null);var k=Be();const[_,O]=m.useState(!1);m.useEffect(()=>{try{var w=__IS_REEXT_RUNNING__;O(!0)}catch{O(!1)}},[]),m.useEffect(()=>{var w,b="false";if(!(typeof window===void 0||typeof window>"u"))return(async()=>{if(await Ve(),e.children!==void 0&&e.config.items===void 0&&(e.config.items=[]),b==="false"&&e.xtype!=="logo"){var S;v()==null?S=e.config:S=v();try{var y=ze(e.xtype,S,e,o),R=Ext.ClassManager.getByAlias("widget."+y.xtype);if(R===void 0){var $="ReExt "+y.xtype+" could not be created";y={xtype:"label",text:$,style:{color:"red",background:"lightgray"}}}if(y.height===void 0&&y.xtype!=="window"&&(window.Ext.isClassic===!0&&y.xtype==="grid"?y.height=0:y.height="100%"),y.width===void 0&&y.xtype!=="window"&&(window.Ext.isClassic===!0&&y.xtype==="grid"?y.width=0:y.width="100%"),window.Ext.isClassic===!0){const N=pe=>{var q=pe.el.dom.parentNode;k.observe(q)};y.listeners===void 0?y.listeners={boxready:N}:y.listeners.boxready=N}y.xtype!=="window"&&(y.renderTo=u.current),y.xtype==="tabpanel"&&(y.deferredRender=!1);var A=ve(e.children,y,k);i(A.cpArray),A.childarray.length>0&&(y.items=A.childarray),w=window.Ext.create(y),l(w),n.current=w,e.config!==void 0&&e.config.reference!==void 0&&e.ReExtParent!==void 0&&(e.ReExtParent.ReExtChildren===void 0&&(e.ReExtParent.ReExtChildren=[]),e.ReExtParent.ReExtChildren.push(w)),u.current===null?console.warn("ReExtRootRef.current,props",u.current,e):(u.current.style.background="transparent",u.current.firstChild.remove()),t.type!==null&&t.type!=="production"&&qe(w,y.xtype,u.current),e.ready!==void 0&&e.ready(w)}catch(N){console.error("ReExt.jsx:",N)}}})(),()=>{b="true",!(typeof window===void 0||typeof window>"u")&&window.Ext!==void 0&&window.Ext.destroy!==void 0&&w!=null&&(l(null),window.Ext.destroy(w))}},[t.type]),m.useEffect(()=>{if(!(typeof window===void 0||typeof window>"u")&&e.config!==void 0){if(n.current!==null){e.children!==void 0&&e.config.items===void 0&&(e.config.items=[]);for(const[A]of Object.entries(d.current)){if(Ue(A)!=null||A==="xtype")return;var w=X(d.current[A],"root"),b=X(e.config[A],"root");w!=null&&delete w.listeners,b!==void 0&&w!==null&&delete b.listeners;const N=pe=>{let q=[],lr=JSON.stringify(pe,function(cr,G){if(typeof G=="object"&&G!==null){if(q.indexOf(G)!==-1)return;q.push(G)}return G});return q=null,lr};var S=N(w),y=N(b),R=ae(S,y);if(!R&&(Fe(n.current,A,b),A==="items")){var $=ve(e.children,n.current,k);i($)}}}p(e.config),d.current=e.config}},[e.config]);var W="",E="",J="",H="";if(!(typeof window===void 0||typeof window>"u")){if(window.Ext!==void 0&&window.Ext.versions!==null&&window.Ext.versions!==void 0){E=window.Ext.versions.core.version,H=window.Ext.ReExtTheme,W=window.Ext.ReExtLocation;var f=window.Ext.isClassic;f===!0?J="classic":J="modern"}if(!(typeof window===void 0||typeof window>"u")){var C="";if(t.type==="production"||t.type===null?C="production":C=`${t.type} - ${t.daysleft} days left`,e.xtype==="logo")return s.jsx(Le,{reextplugin:_,rid:e.rid,reactversion:m.version,extver:E,extlocation:W,exttoolkit:J,exttheme:H,type:C,packageversion:ye,flexdirection:e.flexdirection,style:e.style});var x;e.style===void 0||e.style.height===void 0?x=1:x="none";var h="";if(e.className!==void 0&&(h=e.className),e.xtype==="window")return null;var z,U,g={};return r==null?(z={...e.style,...g,flex:x,position:"relative",display:"flex",overflow:"hidden"},U=h+" fill"):r.length===0?(z={...e.style,...g,flex:x,position:"relative",display:"flex",overflow:"hidden"},U=h+" fill"):(z={...e.style,flex:x,position:"relative",display:"flex",overflow:"hidden"},U=h),s.jsx("div",{name:"ReExtRoot-"+e.xtype,"data-rid":e.rid,className:U,style:z,ref:u,children:s.jsx("div",{className:"portalroot",style:{display:"flex",flex:1,alignItems:"center",justifyContent:"center"},children:r!==null&&r.map(w=>w)})})}}}async function Xe(){if(typeof window===void 0||typeof window>"u")return;function e(t){t.style.width="100%",t.style.height="100%",t.style.margin="0",t.style.padding="0",t.style.padding="0",t.style.boxSizing="border-box",t.style.overflow="hidden"}document.documentElement&&e(document.documentElement),document.body&&e(document.body),document.getElementById("root")&&e(document.getElementById("root"))}function Ye(){if(!(typeof window===void 0||typeof window>"u"))return s.jsx("div",{className:"splash",style:{fontSize:"36px",border:"10px solid #0960a5",width:"100%",height:"100%",margin:0,padding:0,boxSizing:"border-box",overflow:"hidden",display:"flex",flexDirection:"column",flex:1,justifyContent:"center",alignItems:"center"},children:s.jsx("img",{style:{height:500,width:1e3},src:"../ReExt/ReExt.png"})})}var Qe=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Ze=Qe(()=>{}),ne=crypto,ge=e=>e instanceof CryptoKey,Y=new TextEncoder,F=new TextDecoder;function et(...e){let t=e.reduce((a,{length:l})=>a+l,0),r=new Uint8Array(t),i=0;for(let a of e)r.set(a,i),i+=a.length;return r}var tt=e=>{let t=atob(e),r=new Uint8Array(t.length);for(let i=0;i<t.length;i++)r[i]=t.charCodeAt(i);return r},B=e=>{let t=e;t instanceof Uint8Array&&(t=F.decode(t)),t=t.replace(/-/g,"+").replace(/_/g,"/").replace(/\s/g,"");try{return tt(t)}catch{throw new TypeError("The input to be decoded is not correctly encoded.")}},K=class extends Error{static get code(){return"ERR_JOSE_GENERIC"}constructor(e){var t;super(e),this.code="ERR_JOSE_GENERIC",this.name=this.constructor.name,(t=Error.captureStackTrace)==null||t.call(Error,this,this.constructor)}},j=class extends K{static get code(){return"ERR_JWT_CLAIM_VALIDATION_FAILED"}constructor(e,t,r="unspecified",i="unspecified"){super(e),this.code="ERR_JWT_CLAIM_VALIDATION_FAILED",this.claim=r,this.reason=i,this.payload=t}},me=class extends K{static get code(){return"ERR_JWT_EXPIRED"}constructor(e,t,r="unspecified",i="unspecified"){super(e),this.code="ERR_JWT_EXPIRED",this.claim=r,this.reason=i,this.payload=t}},L=class extends K{constructor(){super(...arguments),this.code="ERR_JOSE_NOT_SUPPORTED"}static get code(){return"ERR_JOSE_NOT_SUPPORTED"}},T=class extends K{constructor(){super(...arguments),this.code="ERR_JWS_INVALID"}static get code(){return"ERR_JWS_INVALID"}},I=class extends K{constructor(){super(...arguments),this.code="ERR_JWT_INVALID"}static get code(){return"ERR_JWT_INVALID"}},rt=class extends K{constructor(){super(...arguments),this.code="ERR_JWS_SIGNATURE_VERIFICATION_FAILED",this.message="signature verification failed"}static get code(){return"ERR_JWS_SIGNATURE_VERIFICATION_FAILED"}};function D(e,t="algorithm.name"){return new TypeError(`CryptoKey does not support this operation, its ${t} must be ${e}`)}function Q(e,t){return e.name===t}function oe(e){return parseInt(e.name.slice(4),10)}function it(e){switch(e){case"ES256":return"P-256";case"ES384":return"P-384";case"ES512":return"P-521";default:throw new Error("unreachable")}}function at(e,t){if(t.length&&!t.some(r=>e.usages.includes(r))){let r="CryptoKey does not support this operation, its usages must include ";if(t.length>2){let i=t.pop();r+=`one of ${t.join(", ")}, or ${i}.`}else t.length===2?r+=`one of ${t[0]} or ${t[1]}.`:r+=`${t[0]}.`;throw new TypeError(r)}}function nt(e,t,...r){switch(t){case"HS256":case"HS384":case"HS512":{if(!Q(e.algorithm,"HMAC"))throw D("HMAC");let i=parseInt(t.slice(2),10);if(oe(e.algorithm.hash)!==i)throw D(`SHA-${i}`,"algorithm.hash");break}case"RS256":case"RS384":case"RS512":{if(!Q(e.algorithm,"RSASSA-PKCS1-v1_5"))throw D("RSASSA-PKCS1-v1_5");let i=parseInt(t.slice(2),10);if(oe(e.algorithm.hash)!==i)throw D(`SHA-${i}`,"algorithm.hash");break}case"PS256":case"PS384":case"PS512":{if(!Q(e.algorithm,"RSA-PSS"))throw D("RSA-PSS");let i=parseInt(t.slice(2),10);if(oe(e.algorithm.hash)!==i)throw D(`SHA-${i}`,"algorithm.hash");break}case"EdDSA":{if(e.algorithm.name!=="Ed25519"&&e.algorithm.name!=="Ed448")throw D("Ed25519 or Ed448");break}case"ES256":case"ES384":case"ES512":{if(!Q(e.algorithm,"ECDSA"))throw D("ECDSA");let i=it(t);if(e.algorithm.namedCurve!==i)throw D(i,"algorithm.namedCurve");break}default:throw new TypeError("CryptoKey does not support this operation")}at(e,r)}function xe(e,t,...r){var i;if(r.length>2){let a=r.pop();e+=`one of type ${r.join(", ")}, or ${a}.`}else r.length===2?e+=`one of type ${r[0]} or ${r[1]}.`:e+=`of type ${r[0]}.`;return t==null?e+=` Received ${t}`:typeof t=="function"&&t.name?e+=` Received function ${t.name}`:typeof t=="object"&&t!=null&&((i=t.constructor)!=null&&i.name)&&(e+=` Received an instance of ${t.constructor.name}`),e}var be=(e,...t)=>xe("Key must be ",e,...t);function Ee(e,t,...r){return xe(`Key for the ${e} algorithm must be `,t,...r)}var Se=e=>ge(e)?!0:(e==null?void 0:e[Symbol.toStringTag])==="KeyObject",Z=["CryptoKey"],ot=(...e)=>{let t=e.filter(Boolean);if(t.length===0||t.length===1)return!0;let r;for(let i of t){let a=Object.keys(i);if(!r||r.size===0){r=new Set(a);continue}for(let l of a){if(r.has(l))return!1;r.add(l)}}return!0},st=ot;function lt(e){return typeof e=="object"&&e!==null}function ee(e){if(!lt(e)||Object.prototype.toString.call(e)!=="[object Object]")return!1;if(Object.getPrototypeOf(e)===null)return!0;let t=e;for(;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}var ct=(e,t)=>{if(e.startsWith("RS")||e.startsWith("PS")){let{modulusLength:r}=t.algorithm;if(typeof r!="number"||r<2048)throw new TypeError(`${e} requires key modulusLength to be 2048 bits or larger`)}};function dt(e){let t,r;switch(e.kty){case"RSA":{switch(e.alg){case"PS256":case"PS384":case"PS512":t={name:"RSA-PSS",hash:`SHA-${e.alg.slice(-3)}`},r=e.d?["sign"]:["verify"];break;case"RS256":case"RS384":case"RS512":t={name:"RSASSA-PKCS1-v1_5",hash:`SHA-${e.alg.slice(-3)}`},r=e.d?["sign"]:["verify"];break;case"RSA-OAEP":case"RSA-OAEP-256":case"RSA-OAEP-384":case"RSA-OAEP-512":t={name:"RSA-OAEP",hash:`SHA-${parseInt(e.alg.slice(-3),10)||1}`},r=e.d?["decrypt","unwrapKey"]:["encrypt","wrapKey"];break;default:throw new L('Invalid or unsupported JWK "alg" (Algorithm) Parameter value')}break}case"EC":{switch(e.alg){case"ES256":t={name:"ECDSA",namedCurve:"P-256"},r=e.d?["sign"]:["verify"];break;case"ES384":t={name:"ECDSA",namedCurve:"P-384"},r=e.d?["sign"]:["verify"];break;case"ES512":t={name:"ECDSA",namedCurve:"P-521"},r=e.d?["sign"]:["verify"];break;case"ECDH-ES":case"ECDH-ES+A128KW":case"ECDH-ES+A192KW":case"ECDH-ES+A256KW":t={name:"ECDH",namedCurve:e.crv},r=e.d?["deriveBits"]:[];break;default:throw new L('Invalid or unsupported JWK "alg" (Algorithm) Parameter value')}break}case"OKP":{switch(e.alg){case"EdDSA":t={name:e.crv},r=e.d?["sign"]:["verify"];break;case"ECDH-ES":case"ECDH-ES+A128KW":case"ECDH-ES+A192KW":case"ECDH-ES+A256KW":t={name:e.crv},r=e.d?["deriveBits"]:[];break;default:throw new L('Invalid or unsupported JWK "alg" (Algorithm) Parameter value')}break}default:throw new L('Invalid or unsupported JWK "kty" (Key Type) Parameter value')}return{algorithm:t,keyUsages:r}}var ft=async e=>{if(!e.alg)throw new TypeError('"alg" argument is required when "jwk.alg" is not present');let{algorithm:t,keyUsages:r}=dt(e),i=[t,e.ext??!1,e.key_ops??r],a={...e};return delete a.alg,delete a.use,ne.subtle.importKey("jwk",a,...i)},ut=ft,ke=e=>B(e),se,le,$e=e=>(e==null?void 0:e[Symbol.toStringTag])==="KeyObject",Ce=async(e,t,r,i)=>{let a=e.get(t);if(a!=null&&a[i])return a[i];let l=await ut({...r,alg:i});return a?a[i]=l:e.set(t,{[i]:l}),l},pt=(e,t)=>{if($e(e)){let r=e.export({format:"jwk"});return delete r.d,delete r.dp,delete r.dq,delete r.p,delete r.q,delete r.qi,r.k?ke(r.k):(le||(le=new WeakMap),Ce(le,e,r,t))}return e},yt=(e,t)=>{if($e(e)){let r=e.export({format:"jwk"});return r.k?ke(r.k):(se||(se=new WeakMap),Ce(se,e,r,t))}return e},ht={normalizePublicKey:pt,normalizePrivateKey:yt},M=e=>e==null?void 0:e[Symbol.toStringTag],wt=(e,t)=>{if(!(t instanceof Uint8Array)){if(!Se(t))throw new TypeError(Ee(e,t,...Z,"Uint8Array"));if(t.type!=="secret")throw new TypeError(`${M(t)} instances for symmetric algorithms must be of type "secret"`)}},vt=(e,t,r)=>{if(!Se(t))throw new TypeError(Ee(e,t,...Z));if(t.type==="secret")throw new TypeError(`${M(t)} instances for asymmetric algorithms must not be of type "secret"`);if(r==="sign"&&t.type==="public")throw new TypeError(`${M(t)} instances for asymmetric algorithm signing must be of type "private"`);if(r==="decrypt"&&t.type==="public")throw new TypeError(`${M(t)} instances for asymmetric algorithm decryption must be of type "private"`);if(t.algorithm&&r==="verify"&&t.type==="private")throw new TypeError(`${M(t)} instances for asymmetric algorithm verifying must be of type "public"`);if(t.algorithm&&r==="encrypt"&&t.type==="private")throw new TypeError(`${M(t)} instances for asymmetric algorithm encryption must be of type "public"`)},gt=(e,t,r)=>{e.startsWith("HS")||e==="dir"||e.startsWith("PBES2")||/^A\d{3}(?:GCM)?KW$/.test(e)?wt(e,t):vt(e,t,r)},mt=gt;function xt(e,t,r,i,a){if(a.crit!==void 0&&(i==null?void 0:i.crit)===void 0)throw new e('"crit" (Critical) Header Parameter MUST be integrity protected');if(!i||i.crit===void 0)return new Set;if(!Array.isArray(i.crit)||i.crit.length===0||i.crit.some(n=>typeof n!="string"||n.length===0))throw new e('"crit" (Critical) Header Parameter MUST be an array of non-empty strings when present');let l;r!==void 0?l=new Map([...Object.entries(r),...t.entries()]):l=t;for(let n of i.crit){if(!l.has(n))throw new L(`Extension Header Parameter "${n}" is not recognized`);if(a[n]===void 0)throw new e(`Extension Header Parameter "${n}" is missing`);if(l.get(n)&&i[n]===void 0)throw new e(`Extension Header Parameter "${n}" MUST be integrity protected`)}return new Set(i.crit)}var bt=xt;function Et(e,t){let r=`SHA-${e.slice(-3)}`;switch(e){case"HS256":case"HS384":case"HS512":return{hash:r,name:"HMAC"};case"PS256":case"PS384":case"PS512":return{hash:r,name:"RSA-PSS",saltLength:e.slice(-3)>>3};case"RS256":case"RS384":case"RS512":return{hash:r,name:"RSASSA-PKCS1-v1_5"};case"ES256":case"ES384":case"ES512":return{hash:r,name:"ECDSA",namedCurve:t.namedCurve};case"EdDSA":return{name:t.name};default:throw new L(`alg ${e} is not supported either by JOSE or your javascript runtime`)}}async function St(e,t,r){if(t=await ht.normalizePublicKey(t,e),ge(t))return nt(t,e,r),t;if(t instanceof Uint8Array){if(!e.startsWith("HS"))throw new TypeError(be(t,...Z));return ne.subtle.importKey("raw",t,{hash:`SHA-${e.slice(-3)}`,name:"HMAC"},!1,[r])}throw new TypeError(be(t,...Z,"Uint8Array"))}var kt=async(e,t,r,i)=>{let a=await St(e,t,"verify");ct(e,a);let l=Et(e,a.algorithm);try{return await ne.subtle.verify(l,a,r,i)}catch{return!1}},$t=kt;async function Ct(e,t,r){if(!ee(e))throw new T("Flattened JWS must be an object");if(e.protected===void 0&&e.header===void 0)throw new T('Flattened JWS must have either of the "protected" or "header" members');if(e.protected!==void 0&&typeof e.protected!="string")throw new T("JWS Protected Header incorrect type");if(e.payload===void 0)throw new T("JWS Payload missing");if(typeof e.signature!="string")throw new T("JWS Signature missing or incorrect type");if(e.header!==void 0&&!ee(e.header))throw new T("JWS Unprotected Header incorrect type");let i={};if(e.protected)try{let k=B(e.protected);i=JSON.parse(F.decode(k))}catch{throw new T("JWS Protected Header is invalid")}if(!st(i,e.header))throw new T("JWS Protected and JWS Unprotected Header Parameter names must be disjoint");let a={...i,...e.header},l=bt(T,new Map([["b64",!0]]),r==null?void 0:r.crit,i,a),n=!0;if(l.has("b64")&&(n=i.b64,typeof n!="boolean"))throw new T('The "b64" (base64url-encode payload) Header Parameter must be a boolean');let{alg:o}=a;if(typeof o!="string"||!o)throw new T('JWS "alg" (Algorithm) Header Parameter missing or invalid');if(n){if(typeof e.payload!="string")throw new T("JWS Payload must be a string")}else if(typeof e.payload!="string"&&!(e.payload instanceof Uint8Array))throw new T("JWS Payload must be a string or an Uint8Array instance");let c=!1;typeof t=="function"&&(t=await t(i,e),c=!0),mt(o,t,"verify");let p=et(Y.encode(e.protected??""),Y.encode("."),typeof e.payload=="string"?Y.encode(e.payload):e.payload),d;try{d=B(e.signature)}catch{throw new T("Failed to base64url decode the signature")}if(!await $t(o,t,d,p))throw new rt;let v;if(n)try{v=B(e.payload)}catch{throw new T("Failed to base64url decode the payload")}else typeof e.payload=="string"?v=Y.encode(e.payload):v=e.payload;let u={payload:v};return e.protected!==void 0&&(u.protectedHeader=i),e.header!==void 0&&(u.unprotectedHeader=e.header),c?{...u,key:t}:u}async function At(e,t,r){if(e instanceof Uint8Array&&(e=F.decode(e)),typeof e!="string")throw new T("Compact JWS must be a string or Uint8Array");let{0:i,1:a,2:l,length:n}=e.split(".");if(n!==3)throw new T("Invalid Compact JWS");let o=await Ct({payload:a,protected:i,signature:l},t,r),c={payload:o.payload,protectedHeader:o.protectedHeader};return typeof t=="function"?{...c,key:o.key}:c}var Tt=e=>Math.floor(e.getTime()/1e3),Rt=/^(\+|\-)? ?(\d+|\d+\.\d+) ?(seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)(?: (ago|from now))?$/i,Ae=e=>{let t=Rt.exec(e);if(!t||t[4]&&t[1])throw new TypeError("Invalid time period format");let r=parseFloat(t[2]),i=t[3].toLowerCase(),a;switch(i){case"sec":case"secs":case"second":case"seconds":case"s":a=Math.round(r);break;case"minute":case"minutes":case"min":case"mins":case"m":a=Math.round(r*60);break;case"hour":case"hours":case"hr":case"hrs":case"h":a=Math.round(r*3600);break;case"day":case"days":case"d":a=Math.round(r*86400);break;case"week":case"weeks":case"w":a=Math.round(r*604800);break;default:a=Math.round(r*31557600);break}return t[1]==="-"||t[4]==="ago"?-a:a},Te=e=>e.toLowerCase().replace(/^application\//,""),Pt=(e,t)=>typeof e=="string"?t.includes(e):Array.isArray(e)?t.some(Set.prototype.has.bind(new Set(e))):!1,_t=(e,t,r={})=>{let i;try{i=JSON.parse(F.decode(t))}catch{}if(!ee(i))throw new I("JWT Claims Set must be a top-level JSON object");let{typ:a}=r;if(a&&(typeof e.typ!="string"||Te(e.typ)!==Te(a)))throw new j('unexpected "typ" JWT header value',i,"typ","check_failed");let{requiredClaims:l=[],issuer:n,subject:o,audience:c,maxTokenAge:p}=r,d=[...l];p!==void 0&&d.push("iat"),c!==void 0&&d.push("aud"),o!==void 0&&d.push("sub"),n!==void 0&&d.push("iss");for(let _ of new Set(d.reverse()))if(!(_ in i))throw new j(`missing required "${_}" claim`,i,_,"missing");if(n&&!(Array.isArray(n)?n:[n]).includes(i.iss))throw new j('unexpected "iss" claim value',i,"iss","check_failed");if(o&&i.sub!==o)throw new j('unexpected "sub" claim value',i,"sub","check_failed");if(c&&!Pt(i.aud,typeof c=="string"?[c]:c))throw new j('unexpected "aud" claim value',i,"aud","check_failed");let v;switch(typeof r.clockTolerance){case"string":v=Ae(r.clockTolerance);break;case"number":v=r.clockTolerance;break;case"undefined":v=0;break;default:throw new TypeError("Invalid clockTolerance option type")}let{currentDate:u}=r,k=Tt(u||new Date);if((i.iat!==void 0||p)&&typeof i.iat!="number")throw new j('"iat" claim must be a number',i,"iat","invalid");if(i.nbf!==void 0){if(typeof i.nbf!="number")throw new j('"nbf" claim must be a number',i,"nbf","invalid");if(i.nbf>k+v)throw new j('"nbf" claim timestamp check failed',i,"nbf","check_failed")}if(i.exp!==void 0){if(typeof i.exp!="number")throw new j('"exp" claim must be a number',i,"exp","invalid");if(i.exp<=k-v)throw new me('"exp" claim timestamp check failed',i,"exp","check_failed")}if(p){let _=k-i.iat,O=typeof p=="number"?p:Ae(p);if(_-v>O)throw new me('"iat" claim timestamp check failed (too far in the past)',i,"iat","check_failed");if(_<0-v)throw new j('"iat" claim timestamp check failed (it should be in the past)',i,"iat","check_failed")}return i};async function jt(e,t,r){var l;let i=await At(e,t,r);if((l=i.protectedHeader.crit)!=null&&l.includes("b64")&&i.protectedHeader.b64===!1)throw new I("JWTs MUST NOT use unencoded payload");let a={payload:_t(i.protectedHeader,i.payload,r),protectedHeader:i.protectedHeader};return typeof t=="function"?{...a,key:i.key}:a}var It=B;function Dt(e){if(typeof e!="string")throw new I("JWTs must use Compact JWS serialization, JWT must be a string");let{1:t,length:r}=e.split(".");if(r===5)throw new I("Only JWTs using Compact JWS serialization can be decoded");if(r!==3)throw new I("Invalid JWT");if(!t)throw new I("JWTs must contain a payload");let i;try{i=It(t)}catch{throw new I("Failed to base64url decode the payload")}let a;try{a=JSON.parse(F.decode(i))}catch{throw new I("Failed to parse the decoded payload as JSON")}if(!ee(a))throw new I("Invalid JWT Claims Set");return a}function te(e){var t=new Error(e);return t.source="ulid",t}var ce="0123456789ABCDEFGHJKMNPQRSTVWXYZ",V=ce.length,Re=Math.pow(2,48)-1,Ot=10,Wt=16;function Ht(e){var t=Math.floor(e()*V);return t===V&&(t=V-1),ce.charAt(t)}function Jt(e,t){if(isNaN(e))throw new Error(e+" must be a number");if(e>Re)throw te("cannot encode time greater than "+Re);if(e<0)throw te("time must be positive");if(Number.isInteger(e)===!1)throw te("time must be an integer");for(var r=void 0,i="";t>0;t--)r=e%V,i=ce.charAt(r)+i,e=(e-r)/V;return i}function Nt(e,t){for(var r="";e>0;e--)r=Ht(t)+r;return r}function Kt(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,t=arguments[1];t||(t=typeof window<"u"?window:null);var r=t&&(t.crypto||t.msCrypto);if(r)return function(){var a=new Uint8Array(1);return r.getRandomValues(a),a[0]/255};try{var i=Ze();return function(){return i.randomBytes(1).readUInt8()/255}}catch{}if(e){try{console.error("secure crypto unusable, falling back to insecure Math.random()!")}catch{}return function(){return Math.random()}}throw te("secure crypto unusable, insecure Math.random not allowed")}function Lt(e){return e||(e=Kt()),function(t){return isNaN(t)&&(t=Date.now()),Jt(t,Ot)+Nt(Wt,e)}}Lt();var de;function Mt(e){return de==null?void 0:de.get(e)}var fe;function zt(e){return fe==null?void 0:fe.get(e)}var ue;function Ut(e,t){var r;return(r=ue==null?void 0:ue.get(e))==null?void 0:r.get(t)}function Ft(e){var r,i;let t=typeof e;return t==="string"?`"${e}"`:t==="number"||t==="bigint"||t==="boolean"?`${e}`:t==="object"||t==="function"?(e&&((i=(r=Object.getPrototypeOf(e))==null?void 0:r.constructor)==null?void 0:i.name))??"null":t}function re(e,t,r,i,a){let l=a&&"input"in a?a.input:r.value,n=(a==null?void 0:a.expected)??e.expects??null,o=(a==null?void 0:a.received)??Ft(l),c={kind:e.kind,type:e.type,input:l,expected:n,received:o,message:`Invalid ${t}: ${n?`Expected ${n} but r`:"R"}eceived ${o}`,requirement:e.requirement,path:a==null?void 0:a.path,issues:a==null?void 0:a.issues,lang:i.lang,abortEarly:i.abortEarly,abortPipeEarly:i.abortPipeEarly},p=e.kind==="schema",d=(a==null?void 0:a.message)??e.message??Ut(e.reference,c.lang)??(p?zt(c.lang):null)??i.message??Mt(c.lang);d&&(c.message=typeof d=="function"?d(c):d),p&&(r.typed=!1),r.issues?r.issues.push(c):r.issues=[c]}function Pe(e){return{kind:"transformation",type:"brand",reference:Pe,async:!1,name:e,_run(t){return t}}}function Bt(e,t,r){return typeof e.default=="function"?e.default(t,r):e.default}function _e(e){return{kind:"schema",type:"number",reference:_e,expects:"number",async:!1,message:e,_run(t,r){return typeof t.value=="number"&&!isNaN(t.value)?t.typed=!0:re(this,"type",t,r),t}}}function je(e,...t){let r={kind:"schema",type:"optional",reference:je,expects:`${e.expects} | undefined`,async:!1,wrapped:e,_run(i,a){return i.value===void 0&&("default"in this&&(i.value=Bt(this,i,a)),i.value===void 0)?(i.typed=!0,i):this.wrapped._run(i,a)}};return 0 in t&&(r.default=t[0]),r}function Ie(e,t){return{kind:"schema",type:"strict_object",reference:Ie,expects:"Object",async:!1,entries:e,message:t,_run(r,i){var l;let a=r.value;if(a&&typeof a=="object"){r.typed=!0,r.value={};for(let n in this.entries){let o=a[n],c=this.entries[n]._run({typed:!1,value:o},i);if(c.issues){let p={type:"object",origin:"value",input:a,key:n,value:o};for(let d of c.issues)d.path?d.path.unshift(p):d.path=[p],(l=r.issues)==null||l.push(d);if(r.issues||(r.issues=c.issues),i.abortEarly){r.typed=!1;break}}c.typed||(r.typed=!1),(c.value!==void 0||n in a)&&(r.value[n]=c.value)}if(!r.issues||!i.abortEarly){for(let n in a)if(!(n in this.entries)){let o=a[n];re(this,"type",r,i,{input:o,expected:"never",path:[{type:"object",origin:"value",input:a,key:n,value:o}]});break}}}else re(this,"type",r,i);return r}}}function De(e){return{kind:"schema",type:"string",reference:De,expects:"string",async:!1,message:e,_run(t,r){return typeof t.value=="string"?t.typed=!0:re(this,"type",t,r),t}}}function Vt(...e){return{...e[0],pipe:e,_run(t,r){for(let i of e)if(i.kind!=="metadata"){if(t.issues&&(i.kind==="schema"||i.kind==="transformation")){t.typed=!1;break}(!t.issues||!r.abortEarly&&!r.abortPipeEarly)&&(t=i._run(t,r))}return t}}}var qt=Vt(De(),Pe("lid"));Ie({id:qt,ver:je(_e())});var Gt=e=>()=>e*48271%2147483647/2147483647,Xt=e=>typeof Buffer<"u"?Buffer.from(e).toString("base64"):btoa(typeof e=="string"?e:String.fromCharCode(...e)),Yt=e=>typeof Buffer<"u"?Buffer.from(e,"base64").toString():atob(e),Qt=(e,t)=>{let r=Gt(t),i=new TextEncoder().encode(e).map(a=>a^Math.floor(r()*256));return Xt(i)},Zt=e=>e.split("").reverse().join(""),er=e=>typeof e=="object"&&!!e&&"sub"in e&&"exp"in e&&typeof e.sub=="string"&&typeof e.exp=="number",tr=async e=>{let t=Zt(Yt(e));return{decoded:Dt(t),jwt:t}},rr=async e=>{let{decoded:t,jwt:r}=await tr(e);if(!er(t))throw new Error("Invalid license key");let{sub:i,exp:a}=t,l=new TextEncoder().encode(Qt(i,a));return await jt(r,l),t};function ir({r:e,v:t,t:r}){const i=we();if(m.useEffect(()=>{e!==void 0&&e.toLowerCase().includes("ehsug")?i.setType("production"):i.setType(r)},[]),m.useEffect(()=>{const a=async n=>{if(n===void 0)return{type:"nokey",daysleft:0};try{const o=await rr(n),d=new Date(o.exp*1e3)-new Date,v=Math.floor(d/(1e3*60*60*24));return v>0?{type:"trial",daysleft:v}:{type:"expired",daysleft:0}}catch(o){return o.message.includes("claim timestamp check failed")?{type:"expired",daysleft:0}:{type:"invalidkey",daysleft:0}}},l=async()=>{var n=await a(e);switch(i.setType(n.type),i.setDaysLeft(n.daysleft),n.type){case"production":case"trial":i.setTrialDialog(!1);break;case"nokey":case"expired":case"invalidkey":default:i.setTrialDialog(!0);break}};i.type!==null&&i.type!=="production"&&l()},[i.type]),i.type!=="production"&&i.trialdialog===!0)return s.jsx("div",{style:{zIndex:2e5,fontSize:"22px",background:"rgb(211,211,211,.4)",color:"black",display:"flex",flexDirection:"column",position:"absolute",left:"50%",width:"100%",height:"100%",transform:"translateX(-50%)",padding:"10px 10px 10px 10px",border:"1px solid black"},children:s.jsxs("div",{style:{height:"100%",display:"flex",padding:"10px 10px 10px 10px",flexDirection:"column",margin:"40px",borderRadius:"5px",border:"1px solid gray",background:"white"},children:[s.jsxs("div",{style:{display:"flex",flexDirection:"row",alignItems:"center"},children:[s.jsx("img",{style:{width:160},src:"../ReExt/ReExt.png"}),s.jsxs("div",{style:{margin:"0 0 0 20px"},children:["Welcome to the ReExt v",t," Trial"]})]}),i.type==="trial"||i.type==="nokey"&&s.jsxs(s.Fragment,{children:[s.jsxs("div",{style:{margin:"10px 0 10px 0",fontSize:"18px"},children:["This is a 30 day trial version of ReExt.",s.jsx("br",{}),"Without a valid trial key, this dialog will appear.",s.jsx("br",{}),s.jsx("br",{}),"To have a trial key emailed to you, fill in this form and click 'Get Trial Key'."]}),s.jsx("div",{style:{xwidth:"100%",flex:1,display:"flex",border:"0px solid red"},children:s.jsx("iframe",{style:{width:"100%",margin:"0 0 10px 0",flex:1,border:"0px solid lightgray"},src:"https://www.sencha.com/forms/reext/trial-reext.php"})}),s.jsxs("div",{style:{display:"flex",flexDirection:"row",justifyContent:"space-between",alignItems:"flex-end"},children:[s.jsx("div",{style:{fontSize:"12px"},children:i.type}),s.jsx("button",{style:{fontSize:"18px",padding:"5px 5px 5px 5px"},onClick:()=>{i.setTrialDialog(!1)},children:"Close"})]})]}),i.type==="expired"&&s.jsx(s.Fragment,{children:s.jsxs("div",{style:{display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",margin:"10px 0 10px 0",fontSize:"18px",height:"100%"},children:[s.jsx("div",{style:{margin:"0 0 20px 0",fontSize:"24px"},children:"Your ReExt trial key has expired"}),s.jsx("div",{children:"Contact Sencha Sales"}),s.jsx("div",{children:s.jsx("a",{href:"https://www.sencha.com/company/contact/",target:"_blank",rel:"noopener noreferrer",children:"https://www.sencha.com/company/contact/"})})]})}),i.type==="invalidkey"&&s.jsx(s.Fragment,{children:s.jsxs("div",{style:{display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",margin:"10px 0 10px 0",fontSize:"18px",height:"100%"},children:[s.jsx("div",{style:{margin:"0 0 20px 0",fontSize:"24px"},children:"Your ReExt trial key is invalid"}),s.jsx("div",{children:"Contact Sencha Sales"}),s.jsx("div",{children:s.jsx("a",{href:"https://www.sencha.com/company/contact/",target:"_blank",rel:"noopener noreferrer",children:"https://www.sencha.com/company/contact/"})})]})})]})})}async function ar(e){console.log("loadextjsfiles start");try{let C=async(g,w,b)=>new Promise(S=>{window.Ext.onReady(function(){return window.Ext.ReExtLocation=b,window.Ext.ReExtTheme=g,window.Ext.ReExtLi=!0,S(1)})}),x=async g=>typeof window===void 0||typeof window>"u"?void 0:new Promise((w,b)=>{let S=document.getElementsByTagName("HEAD")[0];var y=!1;for(let R=0;R<S.childNodes.length;R++)S.childNodes[R].src===g&&(y=!0);if(y===!1){let R=document.createElement("script");R.src=g,S.appendChild(R),R.addEventListener("load",()=>{if(window.Ext===void 0)return console.log("src2 loaded",g),w(1);window.Ext.onReady(function(){return console.log("src loaded",g),w(1)})}),R.addEventListener("error",()=>{var $=`${g} (js) | ||
- did you download the SDK from the support portal? | ||
- are you trying to download a file without an enterprise license?`;console.error(J),w(J)}),p.src=b,x.appendChild(p)}}),h=async b=>typeof window===void 0||typeof window>"u"?void 0:await new Promise((T,w)=>{let x=document.getElementsByTagName("HEAD")[0],$=document.createElement("link");$.rel="stylesheet",$.type="text/css",$.href=b,$.addEventListener("error",()=>{var p=`${b} (css) | ||
- are you trying to download a file without an enterprise license? | ||
- do you have debug: true for ReExtData in a production build?`;console.error($),b($)})}}),h=async g=>typeof window===void 0||typeof window>"u"?void 0:new Promise((w,b)=>{let S=document.getElementsByTagName("HEAD")[0];var y=!1;for(let $=0;$<S.childNodes.length;$++){let A=S.childNodes[$];var R=window.location.origin+"/"+g;A.href===g&&(y=!0)}if(y===!1){let $=document.createElement("link");$.rel="stylesheet",$.type="text/css",$.href=g,S.appendChild($),$.addEventListener("load",()=>{if(window.Ext===void 0)return console.log("css2 loaded",g),w(1);window.Ext.onReady(function(){return console.log("css loaded",g),w(1)})}),$.addEventListener("error",()=>{var A=`${g} (css) | ||
- did you download the SDK from the support portal? | ||
- are you trying to download a file without an enterprise license?`;return console.error(p),w(p)}),$.addEventListener("load",()=>T(1)),x.appendChild($)});var t=e.toolkit;(t==null||t==="")&&(t="modern");var r=e.theme;(r==null||r==="")&&(r="material");var i=e.packages;i===void 0&&(i={charts:!1,fontawesome:!1,ux:!1,calendar:!1,d3:!1,exporter:!1,pivot:!1,pivotd3:!1,pivotlocale:!1,froalaeditor:!1});var a=e.debug,l=e.license,n=e.urlbase,o=e.location;(o==="remote"||o===null)&&(n="https://cdn.sencha.com/reext/ext/");var c=e.rtl;c===!1||c===void 0?c="":c="-rtl";var y=e.locale;y===void 0&&(y="en");var d=e.sdkversion;switch(d){case"7.0.0":d=d+".156";break;case"7.1.0":d=d+".46";break;case"7.2.0":case"7.3.0":case"7.3.1":case"7.4.0":case"7.5.0":case"7.5.1":case"7.6.0":case"7.7.0":case"7.8.0":break;default:throw`SDK version ${d} is not valid`}var g=n+"ext-"+d,u=n+"ext-addons-"+d;a===!0?a="-debug":a="";var S="";t==="modern"&&(S="-modern");var A=["ios","material","neptune","triton"];if(t==="modern"&&!A.includes(r))throw`${r} theme is not in ${t} toolkit for SDK version ${d}`;var D=["classic","crisp","graphite","gray","material","neptune","triton"];t==="classic"&&!D.includes(r)&&console.warn(`${r} is a custom theme in ${t} toolkit for SDK version ${d}`);var O=!1;(i.calendar===!0||i.d3===!0||i.exporter===!0||i.pivot===!0||i.pivotd3===!0||i.pivotlocale===!0||i.froalaeditor===!0)&&(O=!0),e.debug===!0&&await v("node_modules/@sencha/reext/dist/ReExt/debug.js");var E=g+"/build";if(d.slice(-1)==="c"){await v(`${E}/ext-${d}-toolkit-${t}-sdk.js`),await h(`${E}/ext-${d}-theme-${r}-sdk.css`),O===!0&&(await v(`${g}/ext-${d}-toolkit-${t}-addons.js`),await h(`${g}/ext-${d}-theme-${r}-addons.css`)),await P(r,l,o);return}if(await v(`${E}/ext${S}-all${c}${a}.js`),await h(`${E}/${t}/theme-${r}/resources/theme-${r}-all${c}.css`),i.fontawesome===!0&&await h(`${E}/packages/font-awesome/resources/font-awesome-all${a}.css`),v(`${E}/${t}/locale/locale-${y}${a}.js`),i.ux===!0&&(await v(`${E}/packages/ux/${t}/ux${a}.js`),d==="7.0.0"&&t==="modern"&&r==="neptune"&&await h(`${E}/packages/ux/${t}/${t}-${r}/resources/ux-all${a}.css`),d==="7.0.0"&&t==="classic"&&await h(`${E}/packages/ux/${t}/${r}/resources/ux-all${a}.css`),d!=="7.0.0"&&t==="classic"&&r==="material"&&await h(`${E}/packages/ux/${t}/${t}-${r}/resources/ux-all${a}.css`),d!=="7.0.0"&&t==="classic"&&r!=="material"&&r!=="gray"&&await h(`${E}/packages/ux/${t}/${r}/resources/ux-all${a}.css`)),i.charts===!0){await v(`${E}/packages/charts/${t}/charts${a}.js`);var W=!0;(t==="modern"&&r==="ios"&&d==="7.0.0"||r==="gray")&&(W=!1),W===!0&&(t==="classic"&&r!=="material"?await h(`${E}/packages/charts/${t}/${r}/resources/charts-all${a}.css`):await h(`${E}/packages/charts/${t}/${t}-${r}/resources/charts-all${a}.css`))}if(O===!0){var f;u=u+"/packages",i.calendar===!0&&(f="calendar",await v(`${u}/${f}/build/${t}/${f}${a}.js`),t==="modern"&&r==="ios"||d==="7.0.0.156"?await h(`${u}/${f}/build/${t}/${r}/resources/${f}-all${a}.css`):r!=="gray"&&r!=="graphite"&&(t==="classic"&&r!=="material"?await h(`${u}/${f}/build/${t}/${r}/resources/${f}-all${a}.css`):await h(`${u}/${f}/build/${t}/${t}-${r}/resources/${f}-all${a}.css`))),i.d3===!0&&(f="d3",await v(`${u}/${f}/build/${t}/${f}${a}.js`),t==="modern"&&(r==="ios"||r==="material")?await h(`${u}/${f}/build/${t}/${r}/resources/${f}-all${a}.css`):r!=="gray"&&r!=="graphite"&&(t==="classic"&&r!=="material"?await h(`${u}/${f}/build/${t}/${r}/resources/${f}-all${a}.css`):await h(`${u}/${f}/build/${t}/${t}-${r}/resources/${f}-all${a}.css`))),i.exporter===!0&&(f="exporter",await v(`${u}/${f}/build/${t}/${f}${a}.js`),await h(`${u}/${f}/build/${t}/resources/${f}-all${a}.css`)),i.pivot===!0&&(f="pivot",await v(`${u}/${f}/build/${t}/${f}${a}.js`),t==="modern"&&(r==="ios"||r==="material")?await h(`${u}/${f}/build/${t}/${r}/resources/${f}-all${a}.css`):r!=="gray"&&r!=="graphite"&&(t==="classic"&&r!=="material"?await h(`${u}/${f}/build/${t}/${r}/resources/${f}-all${a}.css`):await h(`${u}/${f}/build/${t}/${t}-${r}/resources/${f}-all${a}.css`))),i.pivotd3===!0&&(f="pivot-d3",await v(`${u}/${f}/build/${t}/${f}${a}.js`),t==="modern"&&(r==="ios"||r==="material")?await h(`${u}/${f}/build/${t}/${r}/resources/${f}-all${a}.css`):r!=="gray"&&r!=="graphite"&&(t==="classic"&&r!=="material"?await h(`${u}/${f}/build/${t}/${r}/resources/${f}-all${a}.css`):await h(`${u}/${f}/build/${t}/${t}-${r}/resources/${f}-all${a}.css`))),i.froalaeditor===!0&&(f="froala-editor",await v(`${u}/${f}/build/${t}/${f}${a}.js`),await h(`${u}/${f}/build/${t}/${r}/resources/${f}-all${a}.css`),await v(`${u}/${f}/development/froalaeditor.pkgd.js`),await h(`${u}/${f}/development/froalaeditor.pkgd.css`)),i.pivotlocale}async function H(b){var T=b.location;if(T==="local"){var w=b.overrides;if(w===void 0&&(w=!1),w!==!0&&(w=!1),w===!0){var x=`${b.urlbase}ext-${b.sdkversion}/${t}overrides.js`;console.log("overridefile",x);async function p(J){try{let U=await fetch(J,{method:"HEAD"});return U.status===404?(console.error("ReExtData.overrides is true but no overrides file exists"),!1):U.status===200}catch{return!1}}var $=await p(x);$&&await v(x)}}}await H(e);async function z(b,T){b!==void 0&&T!==void 0&&T.forEach(async w=>{let x=`${b}/${w}`;await v(x)})}await z(e.customfolder,e.customfiles),await P(r,l,o)}catch(P){console.warn("fail",P),alert(`Loading Failed: | ||
`+P.toString())}}var Oe="trial";function nr({children:e,ReExtData:t,reextkey:r,splash:i}){if(typeof window===void 0||typeof window>"u")return;const[a,l]=m.useState(!1),[n,o]=m.useState(!1);m.useEffect(()=>{try{var y=__IS_REEXT_RUNNING__;o(!0)}catch{console.error("Vite or Next.js plugin not installed"),o(!1)}},[]);try{if(m.useEffect(()=>{(async()=>{var d={sdkversion:"7.8.0",toolkit:"classic",theme:"classic",packages:{charts:!1,fontawesome:!1,ux:!1,calendar:!1,d3:!1,exporter:!1,pivot:!1,pivotd3:!1,pivotlocale:!1,froalaeditor:!1},rtl:!1,locale:"en",debug:!1,urlbase:"./",location:"remote",overrides:!1};t===void 0&&(t=d);try{await ar(t),l(!0)}catch(g){console.error("fail",g)}})()},[]),!a)return i===!0||i==="true"?s.jsx(Ye,{}):null;if(a){var c={TrialDialog:{value:null},Version:{value:"2024-10-30-b"},Type:{value:null},DaysLeft:{value:null}};return s.jsxs(Ke,{types:c,actionTrace:!1,actionStack:!1,dispatchTrace:!1,dispatchStack:!1,middleware:[],middlewareafter:[],children:[Oe!=="production"&&s.jsx(ir,{r,v:ye,t:Oe}),n===!1&&s.jsxs("div",{style:{border:"10px solid red",boxSizing:"border-box",display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",height:"100vh",width:"100vw",fontSize:24,color:"red"},children:[s.jsx("div",{style:{margin:"0 0 10px 0"},children:"The Vite or Next.js ReExt plugin is needed to run this app"}),s.jsx("div",{children:"for Vite, modify vite.config.js like this"}),s.jsx("div",{dangerouslySetInnerHTML:{__html:` | ||
- did you download the SDK from the support portal? | ||
- are you trying to download a file without an enterprise license?`;return console.error(A),b(A)})}});var t=e.toolkit;(t==null||t==="")&&(t="modern");var r=e.theme;(r==null||r==="")&&(r="material");var i=e.packages;i===void 0&&(i={charts:!1,fontawesome:!1,ux:!1,calendar:!1,d3:!1,exporter:!1,pivot:!1,pivotd3:!1,pivotlocale:!1,froalaeditor:!1});var a=e.debug,l=e.license,n=e.urlbase,o=e.location;(o==="remote"||o===null)&&(n="https://cdn.sencha.com/reext/ext/");var c=e.rtl;c===!1||c===void 0?c="":c="-rtl";var p=e.locale;p===void 0&&(p="en");var d=e.sdkversion;switch(d){case"7.0.0":d=d+".156";break;case"7.1.0":d=d+".46";break;case"7.2.0":case"7.3.0":case"7.3.1":case"7.4.0":case"7.5.0":case"7.5.1":case"7.6.0":case"7.7.0":case"7.8.0":break;default:throw`SDK version ${d} is not valid`}var v=n+"ext-"+d,u=n+"ext-addons-"+d;a===!0?a="-debug":a="";var k="";t==="modern"&&(k="-modern");var _=["ios","material","neptune","triton"];if(t==="modern"&&!_.includes(r))throw`${r} theme is not in ${t} toolkit for SDK version ${d}`;var O=["classic","crisp","graphite","gray","material","neptune","triton"];t==="classic"&&!O.includes(r)&&console.warn(`${r} is a custom theme in ${t} toolkit for SDK version ${d}`);var W=!1;(i.calendar===!0||i.d3===!0||i.exporter===!0||i.pivot===!0||i.pivotd3===!0||i.pivotlocale===!0||i.froalaeditor===!0)&&(W=!0);var E=v+"/build";if(d.slice(-1)==="c"){await x(`${E}/ext-${d}-toolkit-${t}-sdk.js`),await h(`${E}/ext-${d}-theme-${r}-sdk.css`),W===!0&&(await x(`${v}/ext-${d}-toolkit-${t}-addons.js`),await h(`${v}/ext-${d}-theme-${r}-addons.css`)),await C(r,l,o);return}var J=await x(`${E}/ext${k}-all${c}${a}.js`);if(await h(`${E}/${t}/theme-${r}/resources/theme-${r}-all${c}.css`),i.fontawesome===!0&&await h(`${E}/packages/font-awesome/resources/font-awesome-all${a}.css`),await x(`${E}/${t}/locale/locale-${p}${a}.js`),i.ux===!0&&(await x(`${E}/packages/ux/${t}/ux${a}.js`),d==="7.0.0"&&t==="modern"&&r==="neptune"&&await h(`${E}/packages/ux/${t}/${t}-${r}/resources/ux-all${a}.css`),d==="7.0.0"&&t==="classic"&&await h(`${E}/packages/ux/${t}/${r}/resources/ux-all${a}.css`),d!=="7.0.0"&&t==="classic"&&r==="material"&&await h(`${E}/packages/ux/${t}/${t}-${r}/resources/ux-all${a}.css`),d!=="7.0.0"&&t==="classic"&&r!=="material"&&r!=="gray"&&await h(`${E}/packages/ux/${t}/${r}/resources/ux-all${a}.css`)),i.charts===!0){await x(`${E}/packages/charts/${t}/charts${a}.js`);var H=!0;(t==="modern"&&r==="ios"&&d==="7.0.0"||r==="gray")&&(H=!1),H===!0&&(t==="classic"&&r!=="material"?await h(`${E}/packages/charts/${t}/${r}/resources/charts-all${a}.css`):await h(`${E}/packages/charts/${t}/${t}-${r}/resources/charts-all${a}.css`))}if(W===!0){var f;u=u+"/packages",i.calendar===!0&&(f="calendar",await x(`${u}/${f}/build/${t}/${f}${a}.js`),t==="modern"&&r==="ios"||d==="7.0.0.156"?await h(`${u}/${f}/build/${t}/${r}/resources/${f}-all${a}.css`):r!=="gray"&&r!=="graphite"&&(t==="classic"&&r!=="material"?await h(`${u}/${f}/build/${t}/${r}/resources/${f}-all${a}.css`):await h(`${u}/${f}/build/${t}/${t}-${r}/resources/${f}-all${a}.css`))),i.d3===!0&&(f="d3",await x(`${u}/${f}/build/${t}/${f}${a}.js`),t==="modern"&&(r==="ios"||r==="material")?await h(`${u}/${f}/build/${t}/${r}/resources/${f}-all${a}.css`):r!=="gray"&&r!=="graphite"&&(t==="classic"&&r!=="material"?await h(`${u}/${f}/build/${t}/${r}/resources/${f}-all${a}.css`):await h(`${u}/${f}/build/${t}/${t}-${r}/resources/${f}-all${a}.css`))),i.exporter===!0&&(f="exporter",await x(`${u}/${f}/build/${t}/${f}${a}.js`),await h(`${u}/${f}/build/${t}/resources/${f}-all${a}.css`)),i.pivot===!0&&(f="pivot",await x(`${u}/${f}/build/${t}/${f}${a}.js`),t==="modern"&&(r==="ios"||r==="material")?await h(`${u}/${f}/build/${t}/${r}/resources/${f}-all${a}.css`):r!=="gray"&&r!=="graphite"&&(t==="classic"&&r!=="material"?await h(`${u}/${f}/build/${t}/${r}/resources/${f}-all${a}.css`):await h(`${u}/${f}/build/${t}/${t}-${r}/resources/${f}-all${a}.css`))),i.pivotd3===!0&&(f="pivot-d3",await x(`${u}/${f}/build/${t}/${f}${a}.js`),t==="modern"&&(r==="ios"||r==="material")?await h(`${u}/${f}/build/${t}/${r}/resources/${f}-all${a}.css`):r!=="gray"&&r!=="graphite"&&(t==="classic"&&r!=="material"?await h(`${u}/${f}/build/${t}/${r}/resources/${f}-all${a}.css`):await h(`${u}/${f}/build/${t}/${t}-${r}/resources/${f}-all${a}.css`))),i.froalaeditor===!0&&(f="froala-editor",await x(`${u}/${f}/build/${t}/${f}${a}.js`),await h(`${u}/${f}/build/${t}/${r}/resources/${f}-all${a}.css`),await x(`${u}/${f}/development/froalaeditor.pkgd.js`),await h(`${u}/${f}/development/froalaeditor.pkgd.css`)),i.pivotlocale}async function z(g){var w=g.location;if(w==="local"){var b=g.overrides;if(b===void 0&&(b=!1),b!==!0&&(b=!1),b===!0){var S=`${g.urlbase}ext-${g.sdkversion}/${t}overrides.js`;async function R($){try{let A=await fetch($,{method:"HEAD"});return A.status===404?(console.error("ReExtData.overrides is true but no overrides file exists"),!1):A.status===200}catch{return!1}}var y=await R(S);y&&await x(S)}}}if(await z(e),e.debug===!0)try{await x("node_modules/@sencha/reext/dist/ReExt/debug.js")}catch(g){console.warn("debug not loaded... "+g.toString())}async function U(g,w){if(g!==void 0&&w!==void 0)for(let b of w){let S=`${window.location.origin}/${g}/${b}`;await x(S)}}await U(e.customfolder,e.customfiles),await C(r,l,o),console.log("loadextjsfiles end")}catch{console.log("fail")}}var Oe="trial";function nr({children:e,ReExtData:t,reextkey:r,splash:i}){if(typeof window===void 0||typeof window>"u")return;const[a,l]=m.useState(!1),[n,o]=m.useState(!1);m.useEffect(()=>{try{var p=__IS_REEXT_RUNNING__;o(!0)}catch{console.error("Vite or Next.js plugin not installed"),o(!1)}},[]);try{if(m.useEffect(()=>{(async()=>{var d={sdkversion:"7.8.0",toolkit:"classic",theme:"classic",packages:{charts:!1,fontawesome:!1,ux:!1,calendar:!1,d3:!1,exporter:!1,pivot:!1,pivotd3:!1,pivotlocale:!1,froalaeditor:!1},rtl:!1,locale:"en",debug:!1,urlbase:"./",location:"remote",overrides:!1};t===void 0&&(t=d);try{console.log("before loadextjsfiles"),await ar(t),console.log("after loadextjsfiles"),l(!0)}catch(v){console.error("fail",v)}})()},[]),!a)return i===!0||i==="true"?s.jsx(Ye,{}):null;if(a){var c={TrialDialog:{value:null},Version:{value:"2024-11-26-b"},Type:{value:null},DaysLeft:{value:null}};return s.jsxs(Ke,{types:c,actionTrace:!1,actionStack:!1,dispatchTrace:!1,dispatchStack:!1,middleware:[],middlewareafter:[],children:[Oe!=="production"&&s.jsx(ir,{r,v:ye,t:Oe}),n===!1&&s.jsxs("div",{style:{border:"10px solid red",boxSizing:"border-box",display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",height:"100vh",width:"100vw",fontSize:24,color:"red"},children:[s.jsx("div",{style:{margin:"0 0 10px 0"},children:"The Vite or Next.js ReExt plugin is needed to run this app"}),s.jsx("div",{children:"for Vite, modify vite.config.js like this"}),s.jsx("div",{dangerouslySetInnerHTML:{__html:` | ||
<pre> | ||
@@ -25,2 +25,2 @@ import { defineConfig } from 'vite'; | ||
export default withReExtPlugin(nextConfig); | ||
</pre>`}})]}),n===!0&&e]})}}catch(y){return s.jsx("div",{children:y.toString()})}}const or=e=>{if(typeof window===void 0||typeof window>"u")return;const[t,r]=m.useState(e);var i=m.useRef();return i.current=t,[()=>i.current,r]};function sr(e){if(!(typeof window===void 0||typeof window>"u")){for(var t,r=e.getController(),i=e;r===void 0;)r=e.parent.getController(),i=e.parent;if(t=r.getReferences(),t===null&&(t={}),i.ReExtChildren!==void 0)for(var a=0;a<i.ReExtChildren.length;a++)i.ReExtChildren[a].reference!==null&&(t[i.ReExtChildren[a].reference]=i.ReExtChildren[a]);return t}}C.Fill=Xe,C.ReExtProvider=nr,C.ReExtReferences=sr,C.default=Ge,C.useReExtState=or,Object.defineProperties(C,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})}); | ||
</pre>`}})]}),n===!0&&e]})}}catch(p){return s.jsx("div",{children:p.toString()})}}const or=e=>{if(typeof window===void 0||typeof window>"u")return;const[t,r]=m.useState(e);var i=m.useRef();return i.current=t,[()=>i.current,r]};function sr(e){if(!(typeof window===void 0||typeof window>"u")){for(var t,r=e.getController(),i=e;r===void 0;)r=e.parent.getController(),i=e.parent;if(t=r.getReferences(),t===null&&(t={}),i.ReExtChildren!==void 0)for(var a=0;a<i.ReExtChildren.length;a++)i.ReExtChildren[a].reference!==null&&(t[i.ReExtChildren[a].reference]=i.ReExtChildren[a]);return t}}P.Fill=Xe,P.ReExtProvider=nr,P.ReExtReferences=sr,P.default=Ge,P.useReExtState=or,Object.defineProperties(P,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})}); |
{ | ||
"name": "@sencha/reext", | ||
"version": "1.0.215", | ||
"version": "1.0.300", | ||
"description": "ReExt - Sencha Ext JS components in React", | ||
@@ -5,0 +5,0 @@ "types": "./dist/ReExt/types.d.ts", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
2008749
2422