@sinequa/atomic 0.0.122 → 0.0.124

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/atomic.js CHANGED
@@ -1,7 +1,7 @@
1
- var ne = Object.defineProperty;
2
- var ae = (e, t, r) => t in e ? ne(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r;
3
- var H = (e, t, r) => ae(e, typeof t != "symbol" ? t + "" : t, r);
4
- function _(e) {
1
+ var oe = Object.defineProperty;
2
+ var ce = (e, t, r) => t in e ? oe(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r;
3
+ var X = (e, t, r) => ce(e, typeof t != "symbol" ? t + "" : t, r);
4
+ function w(e) {
5
5
  const t = new CustomEvent("authenticated", {
6
6
  bubbles: !0,
7
7
  cancelable: !1,
@@ -9,33 +9,138 @@ function _(e) {
9
9
  });
10
10
  dispatchEvent(t);
11
11
  }
12
- const f = {
12
+ const d = {
13
13
  loginPath: "/login",
14
14
  createRoutes: !1
15
15
  };
16
- function m(e) {
17
- Object.assign(f, e);
16
+ function b(e) {
17
+ Object.assign(d, e);
18
18
  }
19
- function Ee(e, t, r) {
20
- var o, i, s, c;
19
+ function rt(e, t, r) {
20
+ var s, i, o, c;
21
21
  if (!e || !t) return;
22
22
  if (r) {
23
- const l = Object.keys(t.queries).find((D) => D === (r == null ? void 0 : r.toLowerCase()));
24
- let d;
25
- l && (d = t.queries[l]);
26
- const I = (i = ((o = d == null ? void 0 : d.columnsInfo) == null ? void 0 : o.columns) || []) == null ? void 0 : i.find((D) => {
27
- var j, z;
28
- return (z = (j = D.aliases) == null ? void 0 : j.split(",")) == null ? void 0 : z.includes(e);
23
+ const l = Object.keys(t.queries).find((F) => F === (r == null ? void 0 : r.toLowerCase()));
24
+ let f;
25
+ l && (f = t.queries[l]);
26
+ const N = (i = ((s = f == null ? void 0 : f.columnsInfo) == null ? void 0 : s.columns) || []) == null ? void 0 : i.find((F) => {
27
+ var J, W;
28
+ return (W = (J = F.aliases) == null ? void 0 : J.split(",")) == null ? void 0 : W.includes(e);
29
29
  });
30
- if (I) return I.name;
30
+ if (N) return N.name;
31
31
  }
32
- const n = (c = (s = t.indexes) == null ? void 0 : s._) == null ? void 0 : c.columns, a = Object.entries(n).find((l) => {
33
- var d;
34
- return (d = l[1].aliases) == null ? void 0 : d.includes(e);
32
+ const n = (c = (o = t.indexes) == null ? void 0 : o._) == null ? void 0 : c.columns, a = Object.entries(n).find((l) => {
33
+ var f;
34
+ return (f = l[1].aliases) == null ? void 0 : f.includes(e);
35
35
  });
36
36
  if (a) return a[0];
37
37
  }
38
- function Te(e, t) {
38
+ var v = /* @__PURE__ */ ((e) => (e.None = "None", e.Search_FirstPage = "Search_FirstPage", e.Search_Text = "Search_Text", e.Search_Refine = "Search_Refine", e.Search_Select_Item = "Search_Select_Item", e.Search_Select_Custom = "Search_Select_Custom", e.Search_Select_Concept = "Search_Select_Concept", e.Search_Select_Correction = "Search_Select_Correction", e.Search_GotoPage = "Search_GotoPage", e.Search_GotoTab = "Search_GotoTab", e.Search_DisplayResult = "Search_DisplayResult", e.Search_RemoveResult = "Search_RemoveResult", e.Search_RemoveAdvanced = "Search_RemoveAdvanced", e.Search_SavedQuery = "Search_SavedQuery", e.Search_WebService = "Search_WebService", e.Search_DidYouMean_Original = "Search_DidYouMean_Original", e.Search_DidYouMean_Correction = "Search_DidYouMean_Correction", e.Search_ExportCSV = "Search_ExportCSV", e.Search_SavedQuery_ExportCSV = "Search_SavedQuery_ExportCSV", e.Search_Selection_ExportCSV = "Search_Selection_ExportCSV", e.Search_AlertQuery = "Search_AlertQuery", e.Search_Select_AnalyticsItem = "Search_Select_AnalyticsItem", e.Search_Sort = "Search_Sort", e.Search_Exit_Logout = "Search_Exit_Logout", e.Search_Timeline_Usage = "Search_Timeline_Usage", e.Search_AutoComplete = "Search_Autocomplete", e.Search_Login_Success = "Login_Success_Form", e.Search_QueryIntent_Detected = "Search_QueryIntent_Detected", e.SavedQuery_Add = "SavedQuery_Add", e.SavedQuery_Delete = "SavedQuery_Delete", e.SavedQuery_DeleteAll = "SavedQuery_DeleteAll", e.SavedQuery_Rename = "SavedQuery_Rename", e.Alert_Edit = "Alert_Edit", e.Alert_Delete = "Alert_Delete", e.Alert_DeleteAll = "Alert_DeleteAll", e.Link_Display = "Link_Display", e.Link_Click = "Link_Click", e.Basket_Add = "Basket_Add", e.Basket_Delete = "Basket_Delete", e.Basket_DeleteAll = "Basket_DeleteAll", e.Basket_Rename = "Basket_Rename", e.Basket_AddDoc = "Basket_AddDoc", e.Basket_RemoveDoc = "Basket_RemoveDoc", e.Basket_Open = "Basket_Open", e.Basket_ExportCSV = "Basket_ExportCSV", e.Label_Add = "Label_Add", e.Label_Delete = "Label_Delete", e.Label_Rename = "Label_Rename", e.Label_Open = "Label_Open", e.Label_AddDoc = "Label_AddDoc", e.Label_RemoveDoc = "Label_RemoveDoc", e.Label_ExportCSV = "Label_ExportCSV", e.Label_Menu_ExportCSV = "Label_Menu_ExportCSV", e.Rating_Set = "Rating_Set", e.Rating_Delete = "Rating_Delete", e.Doc_Preview = "Doc_Preview", e.Doc_CacheHtml = "Doc_CacheHtml", e.Doc_CachePdf = "Doc_CachePdf", e.Doc_CacheOriginal = "Doc_CacheOriginal", e.Doc_Url1 = "Doc_Url1", e.Doc_Url2 = "Doc_Url2", e.Preview_Close = "Preview_Close", e.Click_ResultLink = "Click_ResultLink", e.Click_ResultLink1 = "Click_ResultLink1", e.Click_ResultLink2 = "Click_ResultLink2", e.Click_ResultLink3 = "Click_ResultLink3", e.Click_ResultLink4 = "Click_ResultLink4", e.Click_ResultLink5 = "Click_ResultLink5", e.Click_ResultLink6 = "Click_ResultLink6", e.Click_ResultLink7 = "Click_ResultLink7", e.Click_ResultLink8 = "Click_ResultLink8", e.Click_ResultLink9 = "Click_ResultLink9", e.Click_ResultLink10 = "Click_ResultLink10", e.Click_PreviewLink1 = "Click_PreviewLink1", e.Click_PreviewLink2 = "Click_PreviewLink2", e.Click_PreviewLink3 = "Click_PreviewLink3", e.Click_PreviewLink4 = "Click_PreviewLink4", e.Click_PreviewLink5 = "Click_PreviewLink5", e.Click_PreviewLink6 = "Click_PreviewLink6", e.Click_PreviewLink7 = "Click_PreviewLink7", e.Click_PreviewLink8 = "Click_PreviewLink8", e.Click_PreviewLink9 = "Click_PreviewLink9", e.Click_PreviewLink10 = "Click_PreviewLink10", e.RFM_ClickSet = "RFM_ClickSet", e.RFM_ClickReset = "RFM_ClickReset", e.RFM_Like = "RFM_Like", e.RFM_LikeReset = "RFM_LikeReset", e.RFM_Dislike = "RFM_Dislike", e.RFM_Important = "RFM_Important", e.RFM_ImportantReset = "RFM_ImportantReset", e.RFM_Ban = "RFM_Ban", e.Navigation_Exit = "Navigation_Exit", e.Navigation_Return = "Navigation_Return", e.Navigation_Route = "Navigation_Route", e.Answer_Display = "Answer_Display", e.Answer_Click = "Answer_Click", e.Answer_Result = "Answer_Result", e.Answer_Liked = "Answer_Liked", e.Answer_Disliked = "Answer_Disliked", e.Answer_Liked_Cancelled = "Answer_Liked_Cancelled", e.Answer_Disliked_Cancelled = "Answer_Disliked_Cancelled", e.TopPassages_Display = "TopPassages_Display", e.TopPassages_Click = "TopPassages_Click", e.UserSettings_Reset = "UserSettings_Reset", e))(v || {}), _ = /* @__PURE__ */ ((e) => (e[e.none = 0] = "none", e[e.bool = 1] = "bool", e[e.date = 2] = "date", e[e.dateTime = 3] = "dateTime", e[e.time = 4] = "time", e[e.unsigned = 5] = "unsigned", e[e.integer = 6] = "integer", e[e.float = 7] = "float", e[e.double = 8] = "double", e[e.dates = 9] = "dates", e[e.dateTimes = 10] = "dateTimes", e[e.times = 11] = "times", e[e.varchar = 12] = "varchar", e[e.binary = 13] = "binary", e[e.string = 14] = "string", e[e.csv = 15] = "csv", e))(_ || {}), S = /* @__PURE__ */ ((e) => (e[e.none = 0] = "none", e[e.a = 2053] = "a", e[e.c = 4] = "c", e[e.d = 8] = "d", e[e.e = 2068] = "e", e[e.i = 256] = "i", e[e.l = 2052] = "l", e[e.n = 8192] = "n", e[e.t = 524292] = "t", e[e.x = 8388608] = "x", e[e.z = 33554432] = "z", e[e.f_ordinal = 8192] = "f_ordinal", e[e.f_multidates = 8192] = "f_multidates", e[e.f_varchar = 33554432] = "f_varchar", e[e.f_binary = 33562624] = "f_binary", e[e.f_string = 33562888] = "f_string", e[e.f_csv = 42477853] = "f_csv", e[e.f_overridable = 33554696] = "f_overridable", e))(S || {});
39
+ const nt = "1.0";
40
+ var ie = /* @__PURE__ */ ((e) => (e[e.Original = 0] = "Original", e[e.Corrected = 1] = "Corrected", e))(ie || {}), le = /* @__PURE__ */ ((e) => (e[e.none = 0] = "none", e[e.positiveRate = 1] = "positiveRate", e[e.mainlyPosRate = 2] = "mainlyPosRate", e[e.unrate = 4] = "unrate", e[e.mainlyNegRate = 8] = "mainlyNegRate", e[e.negativeRate = 16] = "negativeRate", e[e.all = 31] = "all", e[e.positiveOnly = 7] = "positiveOnly", e[e.negativeOnly = 28] = "negativeOnly", e[e.personalAll = 21] = "personalAll", e[e.personalPosOnly = 5] = "personalPosOnly", e[e.personalNegOnly = 20] = "personalNegOnly", e))(le || {});
41
+ function ue(e) {
42
+ if (!e)
43
+ return _.none;
44
+ switch (e.toLocaleLowerCase()) {
45
+ case "bool":
46
+ case "boolean":
47
+ return _.bool;
48
+ case "date":
49
+ return _.date;
50
+ case "datetime":
51
+ return _.dateTime;
52
+ case "time":
53
+ return _.time;
54
+ case "unsigned":
55
+ return _.unsigned;
56
+ case "integer":
57
+ return _.integer;
58
+ case "float":
59
+ return _.float;
60
+ case "double":
61
+ return _.double;
62
+ case "dates":
63
+ return _.dates;
64
+ case "datetimes":
65
+ return _.dateTimes;
66
+ case "times":
67
+ return _.times;
68
+ case "varchar":
69
+ return _.varchar;
70
+ case "binary":
71
+ return _.binary;
72
+ case "string":
73
+ return _.string;
74
+ case "csv":
75
+ return _.csv;
76
+ default:
77
+ return _.none;
78
+ }
79
+ }
80
+ function de(e) {
81
+ switch (e) {
82
+ case "a":
83
+ return S.a;
84
+ case "c":
85
+ return S.c;
86
+ case "d":
87
+ return S.d;
88
+ case "e":
89
+ return S.e;
90
+ case "i":
91
+ return S.i;
92
+ case "l":
93
+ return S.l;
94
+ case "n":
95
+ return S.n;
96
+ case "t":
97
+ return S.t;
98
+ case "x":
99
+ return S.x;
100
+ case "z":
101
+ return S.z;
102
+ default:
103
+ return S.none;
104
+ }
105
+ }
106
+ function fe(e) {
107
+ let t = S.none;
108
+ if (e)
109
+ for (const r of e)
110
+ t |= de(r);
111
+ return t;
112
+ }
113
+ function m(e, t, r, n) {
114
+ const a = ue(t), s = fe(r || "");
115
+ return {
116
+ name: e,
117
+ type: t,
118
+ typeModifier: r,
119
+ eType: a,
120
+ eTypeModifier: s,
121
+ aliases: n
122
+ };
123
+ }
124
+ const at = {
125
+ id: m("id", "string"),
126
+ text: m("text", "varchar"),
127
+ documentlanguages: m("documentlanguages", "csv", "ci", ["language"]),
128
+ databasealias: m("databasealias", "varchar"),
129
+ globalrelevance: m("globalrelevance", "double"),
130
+ matchingpartnames: m("matchingpartnames", "csv"),
131
+ matchlocations: m("matchlocations", "csv"),
132
+ matchlocationsperpartname: m("matchlocationsperpartname", "varchar"),
133
+ // json
134
+ extracts: m("extracts", "csv"),
135
+ extractsperpartname: m("extractsperpartname", "varchar"),
136
+ // json
137
+ extractslocations: m("extractslocations", "csv"),
138
+ documentweight: m("documentweight", "varchar"),
139
+ groupcount: m("groupcount", "integer"),
140
+ accesslists: m("accesslists", "varchar", void 0, ["accessLists"])
141
+ // json
142
+ };
143
+ function st(e, t) {
39
144
  const r = e[t];
40
145
  return r === void 0 ? [] : Array.isArray(r) ? r.map((n) => {
41
146
  if (typeof n == "string")
@@ -44,29 +149,29 @@ function Te(e, t) {
44
149
  return n.display;
45
150
  }).filter((n) => n !== void 0) : [String(r)];
46
151
  }
47
- function $(e) {
152
+ function I(e) {
48
153
  return e !== null && typeof e == "object";
49
154
  }
50
- function oe(e) {
51
- return $(e) && Object.prototype.toString.call(e) === "[object ArrayBuffer]";
155
+ function he(e) {
156
+ return I(e) && Object.prototype.toString.call(e) === "[object ArrayBuffer]";
52
157
  }
53
- function se(e) {
54
- return $(e) && Object.prototype.toString.call(e) === "[object Blob]";
158
+ function _e(e) {
159
+ return I(e) && Object.prototype.toString.call(e) === "[object Blob]";
55
160
  }
56
- function ce(e) {
161
+ function me(e) {
57
162
  return typeof e == "string";
58
163
  }
59
- function et(e) {
60
- return ($(e) || Array.isArray(e)) && !oe(e) && !se(e) && !ce(e);
164
+ function ot(e) {
165
+ return (I(e) || Array.isArray(e)) && !he(e) && !_e(e) && !me(e);
61
166
  }
62
- function ie(e = !0) {
167
+ function we(e = !0) {
63
168
  let t = Date.now();
64
169
  return (e ? "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx" : "xxxxxxxxxxxx4xxxyxxxxxxxxxxxxxxx").replace(/[xy]/g, (n) => {
65
170
  const a = (t + Math.random() * 16) % 16 | 0;
66
171
  return t = Math.floor(t / 16), (n === "x" ? a : a & 3 | 8).toString(16);
67
172
  });
68
173
  }
69
- function tt(e) {
174
+ function ct(e) {
70
175
  if (!e)
71
176
  return "``";
72
177
  if (e = String(e), e.search(/[\\`]/) === -1)
@@ -78,113 +183,110 @@ function tt(e) {
78
183
  }
79
184
  return t.push("`"), t.join("");
80
185
  }
81
- function rt(e) {
186
+ function it(e) {
82
187
  if (typeof crypto < "u" && crypto.subtle && typeof crypto.subtle.digest == "function")
83
188
  try {
84
- return crypto.subtle.digest("SHA-512", new TextEncoder().encode(e)).then((t) => Array.prototype.map.call(new Uint8Array(t), (r) => ("00" + r.toString(16)).slice(-2)).join("")).catch(() => Promise.resolve(A(e)));
189
+ return crypto.subtle.digest("SHA-512", new TextEncoder().encode(e)).then((t) => Array.prototype.map.call(new Uint8Array(t), (r) => ("00" + r.toString(16)).slice(-2)).join("")).catch(() => Promise.resolve(B(e)));
85
190
  } catch {
86
- return Promise.resolve(A(e));
191
+ return Promise.resolve(B(e));
87
192
  }
88
- return Promise.resolve(A(e));
193
+ return Promise.resolve(B(e));
89
194
  }
90
- function A(e) {
195
+ function B(e) {
91
196
  let n = 2166136261;
92
- for (let d = 0; d < e.length; d++)
93
- n ^= e.charCodeAt(d), n = n * 16777619 >>> 0;
94
- const a = n.toString(16).padStart(8, "0"), o = ((n ^ 2863311530) >>> 0).toString(16).padStart(8, "0"), i = ((n ^ 1431655765) >>> 0).toString(16).padStart(8, "0"), s = ((n ^ 3435973836) >>> 0).toString(16).padStart(8, "0"), c = a + o + i + s;
197
+ for (let f = 0; f < e.length; f++)
198
+ n ^= e.charCodeAt(f), n = n * 16777619 >>> 0;
199
+ const a = n.toString(16).padStart(8, "0"), s = ((n ^ 2863311530) >>> 0).toString(16).padStart(8, "0"), i = ((n ^ 1431655765) >>> 0).toString(16).padStart(8, "0"), o = ((n ^ 3435973836) >>> 0).toString(16).padStart(8, "0"), c = a + s + i + o;
95
200
  return (c + c + c + c).substring(0, 128);
96
201
  }
97
- var k = /* @__PURE__ */ ((e) => (e.None = "None", e.Search_FirstPage = "Search_FirstPage", e.Search_Text = "Search_Text", e.Search_Refine = "Search_Refine", e.Search_Select_Item = "Search_Select_Item", e.Search_Select_Custom = "Search_Select_Custom", e.Search_Select_Concept = "Search_Select_Concept", e.Search_Select_Correction = "Search_Select_Correction", e.Search_GotoPage = "Search_GotoPage", e.Search_GotoTab = "Search_GotoTab", e.Search_DisplayResult = "Search_DisplayResult", e.Search_RemoveResult = "Search_RemoveResult", e.Search_RemoveAdvanced = "Search_RemoveAdvanced", e.Search_SavedQuery = "Search_SavedQuery", e.Search_WebService = "Search_WebService", e.Search_DidYouMean_Original = "Search_DidYouMean_Original", e.Search_DidYouMean_Correction = "Search_DidYouMean_Correction", e.Search_ExportCSV = "Search_ExportCSV", e.Search_SavedQuery_ExportCSV = "Search_SavedQuery_ExportCSV", e.Search_Selection_ExportCSV = "Search_Selection_ExportCSV", e.Search_AlertQuery = "Search_AlertQuery", e.Search_Select_AnalyticsItem = "Search_Select_AnalyticsItem", e.Search_Sort = "Search_Sort", e.Search_Exit_Logout = "Search_Exit_Logout", e.Search_Timeline_Usage = "Search_Timeline_Usage", e.Search_AutoComplete = "Search_Autocomplete", e.Search_Login_Success = "Login_Success_Form", e.Search_QueryIntent_Detected = "Search_QueryIntent_Detected", e.SavedQuery_Add = "SavedQuery_Add", e.SavedQuery_Delete = "SavedQuery_Delete", e.SavedQuery_DeleteAll = "SavedQuery_DeleteAll", e.SavedQuery_Rename = "SavedQuery_Rename", e.Alert_Edit = "Alert_Edit", e.Alert_Delete = "Alert_Delete", e.Alert_DeleteAll = "Alert_DeleteAll", e.Link_Display = "Link_Display", e.Link_Click = "Link_Click", e.Basket_Add = "Basket_Add", e.Basket_Delete = "Basket_Delete", e.Basket_DeleteAll = "Basket_DeleteAll", e.Basket_Rename = "Basket_Rename", e.Basket_AddDoc = "Basket_AddDoc", e.Basket_RemoveDoc = "Basket_RemoveDoc", e.Basket_Open = "Basket_Open", e.Basket_ExportCSV = "Basket_ExportCSV", e.Label_Add = "Label_Add", e.Label_Delete = "Label_Delete", e.Label_Rename = "Label_Rename", e.Label_Open = "Label_Open", e.Label_AddDoc = "Label_AddDoc", e.Label_RemoveDoc = "Label_RemoveDoc", e.Label_ExportCSV = "Label_ExportCSV", e.Label_Menu_ExportCSV = "Label_Menu_ExportCSV", e.Rating_Set = "Rating_Set", e.Rating_Delete = "Rating_Delete", e.Doc_Preview = "Doc_Preview", e.Doc_CacheHtml = "Doc_CacheHtml", e.Doc_CachePdf = "Doc_CachePdf", e.Doc_CacheOriginal = "Doc_CacheOriginal", e.Doc_Url1 = "Doc_Url1", e.Doc_Url2 = "Doc_Url2", e.Preview_Close = "Preview_Close", e.Click_ResultLink = "Click_ResultLink", e.Click_ResultLink1 = "Click_ResultLink1", e.Click_ResultLink2 = "Click_ResultLink2", e.Click_ResultLink3 = "Click_ResultLink3", e.Click_ResultLink4 = "Click_ResultLink4", e.Click_ResultLink5 = "Click_ResultLink5", e.Click_ResultLink6 = "Click_ResultLink6", e.Click_ResultLink7 = "Click_ResultLink7", e.Click_ResultLink8 = "Click_ResultLink8", e.Click_ResultLink9 = "Click_ResultLink9", e.Click_ResultLink10 = "Click_ResultLink10", e.Click_PreviewLink1 = "Click_PreviewLink1", e.Click_PreviewLink2 = "Click_PreviewLink2", e.Click_PreviewLink3 = "Click_PreviewLink3", e.Click_PreviewLink4 = "Click_PreviewLink4", e.Click_PreviewLink5 = "Click_PreviewLink5", e.Click_PreviewLink6 = "Click_PreviewLink6", e.Click_PreviewLink7 = "Click_PreviewLink7", e.Click_PreviewLink8 = "Click_PreviewLink8", e.Click_PreviewLink9 = "Click_PreviewLink9", e.Click_PreviewLink10 = "Click_PreviewLink10", e.RFM_ClickSet = "RFM_ClickSet", e.RFM_ClickReset = "RFM_ClickReset", e.RFM_Like = "RFM_Like", e.RFM_LikeReset = "RFM_LikeReset", e.RFM_Dislike = "RFM_Dislike", e.RFM_Important = "RFM_Important", e.RFM_ImportantReset = "RFM_ImportantReset", e.RFM_Ban = "RFM_Ban", e.Navigation_Exit = "Navigation_Exit", e.Navigation_Return = "Navigation_Return", e.Navigation_Route = "Navigation_Route", e.Answer_Display = "Answer_Display", e.Answer_Click = "Answer_Click", e.Answer_Result = "Answer_Result", e.Answer_Liked = "Answer_Liked", e.Answer_Disliked = "Answer_Disliked", e.Answer_Liked_Cancelled = "Answer_Liked_Cancelled", e.Answer_Disliked_Cancelled = "Answer_Disliked_Cancelled", e.TopPassages_Display = "TopPassages_Display", e.TopPassages_Click = "TopPassages_Click", e.UserSettings_Reset = "UserSettings_Reset", e))(k || {}), le = /* @__PURE__ */ ((e) => (e[e.none = 0] = "none", e[e.bool = 1] = "bool", e[e.date = 2] = "date", e[e.dateTime = 3] = "dateTime", e[e.time = 4] = "time", e[e.unsigned = 5] = "unsigned", e[e.integer = 6] = "integer", e[e.float = 7] = "float", e[e.double = 8] = "double", e[e.dates = 9] = "dates", e[e.dateTimes = 10] = "dateTimes", e[e.times = 11] = "times", e[e.varchar = 12] = "varchar", e[e.binary = 13] = "binary", e[e.string = 14] = "string", e[e.csv = 15] = "csv", e))(le || {}), ue = /* @__PURE__ */ ((e) => (e[e.none = 0] = "none", e[e.a = 2053] = "a", e[e.c = 4] = "c", e[e.d = 8] = "d", e[e.e = 2068] = "e", e[e.i = 256] = "i", e[e.l = 2052] = "l", e[e.n = 8192] = "n", e[e.t = 524292] = "t", e[e.x = 8388608] = "x", e[e.z = 33554432] = "z", e[e.f_ordinal = 8192] = "f_ordinal", e[e.f_multidates = 8192] = "f_multidates", e[e.f_varchar = 33554432] = "f_varchar", e[e.f_binary = 33562624] = "f_binary", e[e.f_string = 33562888] = "f_string", e[e.f_csv = 42477853] = "f_csv", e[e.f_overridable = 33554696] = "f_overridable", e))(ue || {});
98
- const nt = "1.0";
99
- var fe = /* @__PURE__ */ ((e) => (e[e.Original = 0] = "Original", e[e.Corrected = 1] = "Corrected", e))(fe || {}), de = /* @__PURE__ */ ((e) => (e[e.none = 0] = "none", e[e.positiveRate = 1] = "positiveRate", e[e.mainlyPosRate = 2] = "mainlyPosRate", e[e.unrate = 4] = "unrate", e[e.mainlyNegRate = 8] = "mainlyNegRate", e[e.negativeRate = 16] = "negativeRate", e[e.all = 31] = "all", e[e.positiveOnly = 7] = "positiveOnly", e[e.negativeOnly = 28] = "negativeOnly", e[e.personalAll = 21] = "personalAll", e[e.personalPosOnly = 5] = "personalPosOnly", e[e.personalNegOnly = 20] = "personalNegOnly", e))(de || {});
100
- class g extends Error {
202
+ class p extends Error {
101
203
  constructor(r, n) {
102
204
  super(r);
103
- H(this, "status");
205
+ X(this, "status");
104
206
  this.name = "ApiError", this.status = n;
105
207
  }
106
208
  }
107
- class Z extends g {
209
+ class ee extends p {
108
210
  constructor(t = "Unauthorized access") {
109
211
  super(t, 401), this.name = "UnauthorizedError";
110
212
  }
111
213
  }
112
- class he extends g {
214
+ class Se extends p {
113
215
  constructor(t = "Server error") {
114
216
  super(t, 500), this.name = "ServerError";
115
217
  }
116
218
  }
117
- class _e extends g {
219
+ class ge extends p {
118
220
  constructor(t = "Request timed out") {
119
221
  super(t, 408), this.name = "TimeoutError";
120
222
  }
121
223
  }
122
- function at(e) {
224
+ function lt(e) {
123
225
  const t = new AbortController(), { signal: r } = t;
124
226
  return e && setTimeout(() => {
125
- r.aborted || t.abort(new _e(`Request timed out after ${e}ms`));
227
+ r.aborted || t.abort(new ge(`Request timed out after ${e}ms`));
126
228
  }, e), { controller: t, signal: r };
127
229
  }
128
- var E = /* @__PURE__ */ ((e) => (e[e.DEBUG = 0] = "DEBUG", e[e.INFO = 1] = "INFO", e[e.WARN = 2] = "WARN", e[e.ERROR = 3] = "ERROR", e[e.NONE = 4] = "NONE", e))(E || {});
129
- let L = {
230
+ var te = /* @__PURE__ */ ((e) => (e[e.DEBUG = 0] = "DEBUG", e[e.INFO = 1] = "INFO", e[e.WARN = 2] = "WARN", e[e.ERROR = 3] = "ERROR", e[e.NONE = 4] = "NONE", e))(te || {});
231
+ let y = {
130
232
  level: 1,
131
233
  enableConsoleOutput: !0
132
234
  };
133
- function ot(e) {
134
- L = { ...L, ...e };
235
+ function ut(e) {
236
+ y = { ...y, ...e };
135
237
  }
136
- function U(e, t, r) {
137
- if (e < L.level) return;
138
- const n = (/* @__PURE__ */ new Date()).toISOString(), o = `${`[${E[e]}][${n}]`} ${t}`;
139
- if (L.enableConsoleOutput)
238
+ function D(e, t, r) {
239
+ if (e < y.level) return;
240
+ const a = `${`[${te[e]}]`} ${t}`;
241
+ if (y.enableConsoleOutput)
140
242
  switch (e) {
141
243
  case 0:
142
- console.debug(o, r || "");
244
+ console.debug(a, r || "");
143
245
  break;
144
246
  case 1:
145
- console.info(o, r || "");
247
+ console.info(a, r || "");
146
248
  break;
147
249
  case 2:
148
- console.warn(o, r || "");
250
+ console.warn(a, r || "");
149
251
  break;
150
252
  case 3:
151
- console.error(o, r || "");
253
+ console.error(a, r || "");
152
254
  break;
153
255
  }
154
256
  }
155
- function p(e, t) {
156
- U(0, e, t);
257
+ function R(e, t) {
258
+ D(0, e, t);
157
259
  }
158
- function w(e, t) {
159
- U(1, e, t);
260
+ function g(e, t) {
261
+ D(1, e, t);
160
262
  }
161
- function v(e, t) {
162
- U(2, e, t);
263
+ function L(e, t) {
264
+ D(2, e, t);
163
265
  }
164
266
  function h(e, t) {
165
- U(3, e, t);
267
+ D(3, e, t);
166
268
  }
167
- async function st(e, t = 0, r = 1e3) {
269
+ async function dt(e, t = 0, r = 1e3) {
168
270
  let n;
169
271
  for (let a = 0; a <= t; a++)
170
272
  try {
171
273
  return await e();
172
- } catch (o) {
173
- if (n = o, o instanceof g && o.status >= 400 && o.status < 500 && o.status !== 429 || o instanceof DOMException && o.name === "AbortError")
174
- throw o;
175
- a < t && (v(`Retrying request (${a + 1}/${t})`, { error: o }), await new Promise((i) => setTimeout(i, r)));
274
+ } catch (s) {
275
+ if (n = s, s instanceof p && s.status >= 400 && s.status < 500 && s.status !== 429 || s instanceof DOMException && s.name === "AbortError")
276
+ throw s;
277
+ a < t && (L(`Retrying request (${a + 1}/${t})`, { error: s }), await new Promise((i) => setTimeout(i, r)));
176
278
  }
177
279
  throw n;
178
280
  }
179
- function R(e) {
180
- const t = V(), r = new Headers(e);
281
+ function P(e) {
282
+ const t = H(), r = new Headers(e);
181
283
  r.append("Sinequa-Force-Camel-Case", "true"), r.append("accept", "application/json"), t && r.append("Sinequa-csrf-token", t);
182
- const { userOverride: n, userOverrideActive: a, bearerToken: o } = f;
183
- return o && r.append("Authorization", `Bearer ${o}`), n && a && (r.append("sinequa-override-user", n.username), r.append("sinequa-override-domain", n.domain)), r;
284
+ const { userOverride: n, userOverrideActive: a, bearerToken: s } = d;
285
+ return s && r.append("Authorization", `Bearer ${s}`), n && a && (r.append("sinequa-override-user", n.username), r.append("sinequa-override-domain", n.domain)), r;
184
286
  }
185
- async function b(e, t = "json") {
287
+ async function C(e, t = "json") {
186
288
  const r = e.headers.get("sinequa-jwt-refresh");
187
- if (r !== null && O(r), e.status === 200)
289
+ if (r !== null && U(r), e.status === 200)
188
290
  switch (t) {
189
291
  case "arraybuffer":
190
292
  return await e.arrayBuffer();
@@ -197,104 +299,104 @@ async function b(e, t = "json") {
197
299
  return await e.json();
198
300
  }
199
301
  if (e.status === 401) {
200
- if (f.userOverrideActive)
201
- throw f.userOverrideActive = !1, v("Unauthorized access attempt with user override", { endpoint: e.url }), new Z("Unauthorized... User override failed.");
202
- await J(e, 401);
302
+ if (d.userOverrideActive)
303
+ throw d.userOverrideActive = !1, L("Unauthorized access attempt with user override", { endpoint: e.url }), new ee("Unauthorized... User override failed.");
304
+ await M(e, 401);
203
305
  }
204
- throw e.status === 500 && (h("Server error occurred", { endpoint: e.url }), await J(e, 500)), v(`Unexpected response status: ${e.status}`, { endpoint: e.url }), new g(`Request failed with status ${e.status}`, e.status);
306
+ throw e.status === 500 && (h("Server error occurred", { endpoint: e.url }), await M(e, 500)), L(`Unexpected response status: ${e.status}`, { endpoint: e.url }), new p(`Request failed with status ${e.status}`, e.status);
205
307
  }
206
- async function J(e, t) {
308
+ async function M(e, t) {
207
309
  var r;
208
310
  try {
209
311
  const { done: n, value: a } = await ((r = e.body) == null ? void 0 : r.getReader().read()) || { done: !0, value: void 0 };
210
312
  if (n || !a)
211
- throw new g(`Request failed with status ${t}`, t);
212
- const o = JSON.parse(new TextDecoder().decode(a));
213
- throw o.status = t, o;
313
+ throw new p(`Request failed with status ${t}`, t);
314
+ const s = JSON.parse(new TextDecoder().decode(a));
315
+ throw s.status = t, s;
214
316
  } catch (n) {
215
- throw n instanceof g ? n : t === 401 ? new Z() : t === 500 ? new he() : new g(`Request failed with status ${t}`, t);
317
+ throw n instanceof p ? n : t === 401 ? new ee() : t === 500 ? new Se() : new p(`Request failed with status ${t}`, t);
216
318
  }
217
319
  }
218
- const we = /.*\:\(?([><=\d\-\.AND ]+)\)?/;
219
- function ct(e, t) {
320
+ const ke = /.*\:\(?([><=\d\-\.AND ]+)\)?/;
321
+ function ft(e, t) {
220
322
  var a;
221
- return !(e != null && e.items) || ((a = e == null ? void 0 : e.items) == null ? void 0 : a.length) === 0 ? [] : e.items.reduce((o, i) => {
222
- if (!i.value || i.value === "") return o;
223
- const s = Se(i, e.column);
224
- return o.push({
225
- operator: s.operator,
226
- value: s.value,
227
- display: i.display || s.display,
228
- filters: s.filters,
323
+ return !(e != null && e.items) || ((a = e == null ? void 0 : e.items) == null ? void 0 : a.length) === 0 ? [] : e.items.reduce((s, i) => {
324
+ if (!i.value || i.value === "") return s;
325
+ const o = be(i, e.column);
326
+ return s.push({
327
+ operator: o.operator,
328
+ value: o.value,
329
+ display: i.display || o.display,
330
+ filters: o.filters,
229
331
  disabled: i.count === 0,
230
332
  hidden: i.count === 0 && e.isDistribution ? !t : !1
231
- }), o;
333
+ }), s;
232
334
  }, []);
233
335
  }
234
- function Se(e, t) {
235
- const r = t, n = e.value.match(we);
336
+ function be(e, t) {
337
+ const r = t, n = e.value.match(ke);
236
338
  if (n != null && n[1]) {
237
- const o = (n == null ? void 0 : n[1].split(" AND ")).map((i) => {
238
- const s = i.indexOf(">=") !== -1 ? "gte" : "lt";
339
+ const s = (n == null ? void 0 : n[1].split(" AND ")).map((i) => {
340
+ const o = i.indexOf(">=") !== -1 ? "gte" : "lt";
239
341
  let c = i.substring(i.indexOf(" ") + 1);
240
- return { field: r, operator: s, value: c, display: e.display || e.value };
342
+ return { field: r, operator: o, value: c, display: e.display || e.value };
241
343
  });
242
- if (o.length === 2)
243
- return { field: r, operator: "and", filters: o, value: e.value, display: o[0].display || o[0].value };
244
- if (o.length === 1)
245
- return { ...o[0], field: r };
344
+ if (s.length === 2)
345
+ return { field: r, operator: "and", filters: s, value: e.value, display: s[0].display || s[0].value };
346
+ if (s.length === 1)
347
+ return { ...s[0], field: r };
246
348
  throw new Error("Failed to parse distribution expression");
247
349
  }
248
350
  return { field: r, operator: "eq", value: e.value, display: e.display };
249
351
  }
250
- function it(e, t, r) {
352
+ function ht(e, t, r) {
251
353
  return e.valuesAreExpressions ? t.display === r.display : t.value === r.value;
252
354
  }
253
- function me(e) {
254
- return e.items && (e.items = e.items.map((t) => me(t))), e.items && e.items.some((t) => t.$selected || t.$opened) && (e.$opened = !0), e;
355
+ function pe(e) {
356
+ return e.items && (e.items = e.items.map((t) => pe(t))), e.items && e.items.some((t) => t.$selected || t.$opened) && (e.$opened = !0), e;
255
357
  }
256
- function lt(e, t) {
358
+ function _t(e, t) {
257
359
  const r = [];
258
360
  if (e.length > 0) {
259
- const n = /* @__PURE__ */ new Map(), o = t.replace(/[.*+?^${}()|[\]\\]/g, "\\$&").normalize("NFD").replace(/[\u0300-\u036f]/g, ""), i = new RegExp("\\b" + o, "i");
260
- e.forEach((s) => {
261
- if (s.display.length > 1) {
262
- const c = s.display.normalize("NFD").replace(/[\u0300-\u036f]/g, ""), l = i.exec(c);
263
- T(r, n, "/", s.display, +(s.frequency || 0), 1, ((l == null ? void 0 : l.index) || 0) + t.length);
361
+ const n = /* @__PURE__ */ new Map(), s = t.replace(/[.*+?^${}()|[\]\\]/g, "\\$&").normalize("NFD").replace(/[\u0300-\u036f]/g, ""), i = new RegExp("\\b" + s, "i");
362
+ e.forEach((o) => {
363
+ if (o.display.length > 1) {
364
+ const c = o.display.normalize("NFD").replace(/[\u0300-\u036f]/g, ""), l = i.exec(c);
365
+ re(r, n, "/", o.display, +(o.frequency || 0), 1, ((l == null ? void 0 : l.index) || 0) + t.length);
264
366
  }
265
367
  });
266
368
  }
267
369
  return r;
268
370
  }
269
- function T(e, t, r, n, a, o, i) {
270
- const s = n.indexOf("/", r.length), c = n.substring(0, s + 1);
371
+ function re(e, t, r, n, a, s, i) {
372
+ const o = n.indexOf("/", r.length), c = n.substring(0, o + 1);
271
373
  let l = t.get(c);
272
374
  if (!l) {
273
- const d = c.replace(/^\/|\/$/g, "");
375
+ const f = c.replace(/^\/|\/$/g, "");
274
376
  l = {
275
- value: n.substring(r.length, s),
377
+ value: n.substring(r.length, o),
276
378
  count: a,
277
379
  items: [],
278
380
  hasChildren: !1,
279
- $level: o,
381
+ $level: s,
280
382
  $opened: i >= c.length,
281
- $path: d
383
+ $path: f
282
384
  }, t.set(c, l), e.push(l);
283
385
  }
284
- c.length < n.length && (l.hasChildren = !0, T(l.items, t, c, n, a, o + 1, i));
386
+ c.length < n.length && (l.hasChildren = !0, re(l.items, t, c, n, a, s + 1, i));
285
387
  }
286
- function ut(e, t) {
388
+ function mt(e, t) {
287
389
  return e.reduce((r, n) => (t(n) ? r.true.push(n) : r.false.push(n), r), { true: [], false: [] });
288
390
  }
289
- const ge = /(([\+\-])?\(([^\)]+)\))|(([\+\-])?\[([^\]]+)\])|(([\+\-])?\"([^\"]+)\")|(([\+\-])?\/([^\/]+)\/)|(([\+\-])?(\S+))/g, ke = 2, W = 3, be = 5, X = 6, pe = 8, M = 9, Ce = 11, Y = 12, ve = 14, K = 15;
290
- function y(e) {
391
+ const ve = /(([\+\-])?\(([^\)]+)\))|(([\+\-])?\[([^\]]+)\])|(([\+\-])?\"([^\"]+)\")|(([\+\-])?\/([^\/]+)\/)|(([\+\-])?(\S+))/g, Ce = 2, Y = 3, Re = 5, K = 6, xe = 8, Z = 9, Le = 11, E = 12, Pe = 14, T = 15;
392
+ function A(e) {
291
393
  if (!e) return [];
292
- const t = [], r = e.matchAll(ge);
394
+ const t = [], r = e.matchAll(ve);
293
395
  for (let n of r)
294
- n[W] ? t.push({ type: "group", value: n[W], op: n[ke] }) : n[X] ? t.push({ type: "adjacent", value: n[X], op: n[be] }) : n[M] ? t.push({ type: "exact", value: n[M], op: n[pe] }) : n[Y] ? t.push({ type: "regex", value: n[Y], op: n[Ce] }) : n[K] && t.push({ type: "token", value: n[K], op: n[ve] });
396
+ n[Y] ? t.push({ type: "group", value: n[Y], op: n[Ce] }) : n[K] ? t.push({ type: "adjacent", value: n[K], op: n[Re] }) : n[Z] ? t.push({ type: "exact", value: n[Z], op: n[xe] }) : n[E] ? t.push({ type: "regex", value: n[E], op: n[Le] }) : n[T] && t.push({ type: "token", value: n[T], op: n[Pe] });
295
397
  return t;
296
398
  }
297
- function B(e) {
399
+ function G(e) {
298
400
  return e.map((t) => {
299
401
  const r = t.op || "";
300
402
  switch (t.type) {
@@ -311,28 +413,28 @@ function B(e) {
311
413
  }
312
414
  }).join(" ");
313
415
  }
314
- function ft(e, t, r) {
315
- let n = y(e);
416
+ function wt(e, t, r) {
417
+ let n = A(e);
316
418
  for (let a of t)
317
419
  n.push({ type: "adjacent", value: a, op: r });
318
- return B(n);
420
+ return G(n);
319
421
  }
320
- function dt(e, t) {
321
- const r = y(t), n = r.findIndex((a) => a.value === e);
322
- return n !== -1 ? (r.splice(n, 1), t = B(r)) : t;
422
+ function St(e, t) {
423
+ const r = A(t), n = r.findIndex((a) => a.value === e);
424
+ return n !== -1 ? (r.splice(n, 1), t = G(r)) : t;
323
425
  }
324
- function ht(e) {
325
- const t = y(e).filter((r) => r.type !== "adjacent");
326
- return B(t);
426
+ function gt(e) {
427
+ const t = A(e).filter((r) => r.type !== "adjacent");
428
+ return G(t);
327
429
  }
328
- function _t(e) {
329
- return y(e).filter((t) => t.type === "adjacent").map((t) => t.value);
430
+ function kt(e) {
431
+ return A(e).filter((t) => t.type === "adjacent").map((t) => t.value);
330
432
  }
331
- function wt(e, t, r) {
332
- const n = new Intl.RelativeTimeFormat(e, { numeric: "auto" }), { offset: a, unit: o, isFuture: i } = Re(t, r);
333
- return n.format(a * (i ? 1 : -1), o);
433
+ function bt(e, t, r) {
434
+ const n = new Intl.RelativeTimeFormat(e, { numeric: "auto" }), { offset: a, unit: s, isFuture: i } = Oe(t, r);
435
+ return n.format(a * (i ? 1 : -1), s);
334
436
  }
335
- function Re(e, t) {
437
+ function Oe(e, t) {
336
438
  const r = new Date(e), n = t ? new Date(t) : /* @__PURE__ */ new Date(), a = Math.abs(n.getTime() - r.getTime());
337
439
  return {
338
440
  offset: Math.floor(a / (1e3 * 60 * 60 * 24)),
@@ -340,37 +442,37 @@ function Re(e, t) {
340
442
  isFuture: r > n
341
443
  };
342
444
  }
343
- function St(e) {
445
+ function pt(e) {
344
446
  const t = e.target;
345
447
  return t && t.nodeName !== "INPUT" && t.nodeName !== "TEXTAREA";
346
448
  }
347
- function mt(e) {
449
+ function vt(e) {
348
450
  if (e === void 0) return;
349
- const { q: t, f: r, p: n, s: a, t: o, n: i, b: s } = C(e), [c] = e.split("?");
451
+ const { q: t, f: r, p: n, s: a, t: s, n: i, b: o } = x(e), [c] = e.split("?");
350
452
  return {
351
453
  path: c,
352
454
  text: t,
353
- filters: r ? ee(r) : void 0,
455
+ filters: r ? ne(r) : void 0,
354
456
  page: n ? parseInt(n, 10) : void 0,
355
457
  sort: a,
356
- tab: o,
458
+ tab: s,
357
459
  name: i,
358
- basket: s
460
+ basket: o
359
461
  };
360
462
  }
361
- function gt(e) {
463
+ function Ct(e) {
362
464
  if (!e) return "";
363
- const { text: t, filters: r, page: n, sort: a, tab: o, name: i, basket: s } = e, c = {};
364
- t && (c.q = t), r && (c.f = JSON.stringify(r)), n && (c.p = n.toString()), a && (c.s = a), o && (c.t = o), i && (c.n = i), s && (c.b = s);
465
+ const { text: t, filters: r, page: n, sort: a, tab: s, name: i, basket: o } = e, c = {};
466
+ t && (c.q = t), r && (c.f = JSON.stringify(r)), n && (c.p = n.toString()), a && (c.s = a), s && (c.t = s), i && (c.n = i), o && (c.b = o);
365
467
  const l = new URLSearchParams(c).toString();
366
468
  return l || "";
367
469
  }
368
- function kt(e) {
470
+ function Rt(e) {
369
471
  if (e === void 0) return [];
370
- const { f: t } = C(e);
371
- return ee(t);
472
+ const { f: t } = x(e);
473
+ return ne(t);
372
474
  }
373
- function ee(e) {
475
+ function ne(e) {
374
476
  const t = decodeURIComponent(e);
375
477
  try {
376
478
  return JSON.parse(t ?? "[]");
@@ -378,29 +480,29 @@ function ee(e) {
378
480
  return console.error(`Error parsing filters from URI: ${e}`), [];
379
481
  }
380
482
  }
381
- function C(e) {
483
+ function x(e) {
382
484
  const t = e.split("?")[1];
383
485
  if (t === void 0) return {};
384
486
  const r = new URLSearchParams(t);
385
487
  return Object.fromEntries(r);
386
488
  }
387
- function bt(e) {
388
- const { q: t = "" } = C(e);
489
+ function xt(e) {
490
+ const { q: t = "" } = x(e);
389
491
  return t;
390
492
  }
391
- function pt(e) {
392
- const { id: t } = C(e);
493
+ function Lt(e) {
494
+ const { id: t } = x(e);
393
495
  return decodeURIComponent(t);
394
496
  }
395
- function Ct(e) {
396
- const { p: t = "0" } = C(e);
497
+ function Pt(e) {
498
+ const { p: t = "0" } = x(e);
397
499
  return parseInt(t, 10);
398
500
  }
399
- function vt(e) {
400
- const { t } = C(e);
501
+ function Ot(e) {
502
+ const { t } = x(e);
401
503
  return t;
402
504
  }
403
- function Rt(e, t) {
505
+ function $t(e, t) {
404
506
  if (!e)
405
507
  return e;
406
508
  let r = 0;
@@ -411,21 +513,21 @@ function Rt(e, t) {
411
513
  a++;
412
514
  e[a] === "]" && (r = a + 1);
413
515
  }
414
- const o = N(e, r, !1);
415
- if (!o)
516
+ const s = q(e, r, !1);
517
+ if (!s)
416
518
  return e;
417
- const i = t.charCodeAt(0), s = t.charCodeAt(1);
418
- let c = o;
519
+ const i = t.charCodeAt(0), o = t.charCodeAt(1);
520
+ let c = s;
419
521
  for (; c; )
420
- if (i === c.lang1 && s === c.lang2) {
421
- const d = N(e, c.end + 4, !0);
422
- return e.substring(d.start, d.end);
522
+ if (i === c.lang1 && o === c.lang2) {
523
+ const f = q(e, c.end + 4, !0);
524
+ return e.substring(f.start, f.end);
423
525
  } else
424
- c = N(e, c.end + 4, !1);
425
- const l = e.substring(o.start, o.end);
526
+ c = q(e, c.end + 4, !1);
527
+ const l = e.substring(s.start, s.end);
426
528
  return l || e;
427
529
  }
428
- function N(e, t, r) {
530
+ function q(e, t, r) {
429
531
  for (let n = t, a = e.length - 3; n < a; n++)
430
532
  if (e[n] === "[" && e[n + 3] === "]")
431
533
  return {
@@ -442,11 +544,11 @@ function N(e, t, r) {
442
544
  lang2: -1
443
545
  };
444
546
  }
445
- function xt(e, t) {
446
- const { useLocale: r, useLocaleAsPrefix: n, indexFile: a, path: o, folder: i } = t, s = r ? `${e}/` : null, c = n ? `${e}.${a}` : a ?? "";
447
- return [o, i, `${s || ""}${c}`].filter((l) => l !== void 0).join("/");
547
+ function yt(e, t) {
548
+ const { useLocale: r, useLocaleAsPrefix: n, indexFile: a, path: s, folder: i } = t, o = r ? `${e}/` : null, c = n ? `${e}.${a}` : a ?? "";
549
+ return [s, i, `${o || ""}${c}`].filter((l) => l !== void 0).join("/");
448
550
  }
449
- function P(e) {
551
+ function $(e) {
450
552
  const t = new CustomEvent("notification", {
451
553
  bubbles: !0,
452
554
  cancelable: !1,
@@ -454,30 +556,30 @@ function P(e) {
454
556
  });
455
557
  dispatchEvent(t);
456
558
  }
457
- const Pt = {
559
+ const Ut = {
458
560
  success: (e, t) => {
459
- P({
561
+ $({
460
562
  type: "success",
461
563
  message: e,
462
564
  options: t
463
565
  });
464
566
  },
465
567
  info: (e, t) => {
466
- P({
568
+ $({
467
569
  type: "info",
468
570
  message: e,
469
571
  options: t
470
572
  });
471
573
  },
472
574
  warning: (e, t) => {
473
- P({
575
+ $({
474
576
  type: "warning",
475
577
  message: e,
476
578
  options: t
477
579
  });
478
580
  },
479
581
  error: (e, t) => {
480
- P({
582
+ $({
481
583
  type: "error",
482
584
  message: e,
483
585
  options: t
@@ -485,7 +587,7 @@ const Pt = {
485
587
  }
486
588
  };
487
589
  async function u(e, t, r) {
488
- const n = R(r == null ? void 0 : r.headers), { app: a, backendUrl: o } = f, i = {
590
+ const n = P(r == null ? void 0 : r.headers), { app: a, backendUrl: s } = d, i = {
489
591
  app: a,
490
592
  ...t,
491
593
  locale: t.locale || navigator.language,
@@ -493,106 +595,106 @@ async function u(e, t, r) {
493
595
  noAutoAuthentication: !0
494
596
  };
495
597
  e.startsWith("plugin") && (e = `api/v1/${e}`);
496
- const s = o ? `${o}/${e}` : `${e}`;
497
- p(`Making POST request to: ${s}`);
598
+ const o = s ? `${s}/${e}` : `${e}`;
599
+ R(`Making POST request to: ${o}`);
498
600
  try {
499
- const c = await fetch(s, {
601
+ const c = await fetch(o, {
500
602
  method: "POST",
501
603
  headers: n,
502
604
  credentials: "include",
503
605
  body: JSON.stringify(i),
504
606
  signal: r == null ? void 0 : r.signal
505
607
  });
506
- return b(c, r == null ? void 0 : r.responseType);
608
+ return C(c, r == null ? void 0 : r.responseType);
507
609
  } catch (c) {
508
610
  throw h("Error making POST request:", c), c;
509
611
  }
510
612
  }
511
- async function S(e, t, r) {
512
- const n = R(r == null ? void 0 : r.headers), { backendUrl: a } = f, o = t ? `?${new URLSearchParams(t)}` : "";
613
+ async function k(e, t, r) {
614
+ const n = P(r == null ? void 0 : r.headers), { backendUrl: a } = d, s = t ? `?${new URLSearchParams(t)}` : "";
513
615
  e.startsWith("plugin") && (e = `api/v1/${e}`);
514
- const i = a ? `${a}/${e}${o}` : `${e}${o}`;
515
- p(`Making GET request to: ${i}`);
616
+ const i = a ? `${a}/${e}${s}` : `${e}${s}`;
617
+ R(`Making GET request to: ${i}`);
516
618
  try {
517
- const s = await fetch(i, {
619
+ const o = await fetch(i, {
518
620
  method: "GET",
519
621
  credentials: "include",
520
622
  headers: n,
521
623
  signal: r == null ? void 0 : r.signal
522
624
  });
523
- return b(s, r == null ? void 0 : r.responseType);
524
- } catch (s) {
525
- throw h("Error making GET request:", s), s;
625
+ return C(o, r == null ? void 0 : r.responseType);
626
+ } catch (o) {
627
+ throw h("Error making GET request:", o), o;
526
628
  }
527
629
  }
528
- async function Lt(e, t, r) {
529
- const n = R(r == null ? void 0 : r.headers), { app: a, backendUrl: o } = f, i = {
630
+ async function It(e, t, r) {
631
+ const n = P(r == null ? void 0 : r.headers), { app: a, backendUrl: s } = d, i = {
530
632
  app: a,
531
633
  ...t,
532
634
  locale: t.locale || navigator.language,
533
635
  noUserOverride: !0,
534
636
  noAutoAuthentication: !0
535
- }, s = `${o}/${e}`;
536
- p(`Making PUT request to: ${s}`);
637
+ }, o = `${s}/${e}`;
638
+ R(`Making PUT request to: ${o}`);
537
639
  try {
538
- const c = await fetch(s, {
640
+ const c = await fetch(o, {
539
641
  method: "PUT",
540
642
  headers: n,
541
643
  credentials: "include",
542
644
  body: JSON.stringify(i)
543
645
  });
544
- return b(c, r == null ? void 0 : r.responseType);
646
+ return C(c, r == null ? void 0 : r.responseType);
545
647
  } catch (c) {
546
648
  throw h("Error making PUT request:", c), c;
547
649
  }
548
650
  }
549
- async function Ot(e, t, r) {
550
- const n = R(r == null ? void 0 : r.headers), { backendUrl: a } = f, o = t ? `?${new URLSearchParams(t)}` : "", i = a ? `${a}/${e}${o}` : `${e}${o}`;
551
- p(`Making DELETE request to: ${i}`);
651
+ async function Dt(e, t, r) {
652
+ const n = P(r == null ? void 0 : r.headers), { backendUrl: a } = d, s = t ? `?${new URLSearchParams(t)}` : "", i = a ? `${a}/${e}${s}` : `${e}${s}`;
653
+ R(`Making DELETE request to: ${i}`);
552
654
  try {
553
- const s = await fetch(i, {
655
+ const o = await fetch(i, {
554
656
  method: "DELETE",
555
657
  credentials: "include",
556
658
  headers: n
557
659
  });
558
- return b(s, r == null ? void 0 : r.responseType);
559
- } catch (s) {
560
- throw h("Error making DELETE request:", s), s;
660
+ return C(o, r == null ? void 0 : r.responseType);
661
+ } catch (o) {
662
+ throw h("Error making DELETE request:", o), o;
561
663
  }
562
664
  }
563
- async function $t(e, t, r) {
564
- const n = R(r == null ? void 0 : r.headers), { app: a, backendUrl: o } = f, i = {
665
+ async function At(e, t, r) {
666
+ const n = P(r == null ? void 0 : r.headers), { app: a, backendUrl: s } = d, i = {
565
667
  app: a,
566
668
  ...t,
567
669
  locale: t.locale || navigator.language,
568
670
  noUserOverride: !0,
569
671
  noAutoAuthentication: !0
570
- }, s = o ? `${o}/${e}` : `${e}`;
571
- p(`Making PATCH request to: ${s}`);
672
+ }, o = s ? `${s}/${e}` : `${e}`;
673
+ R(`Making PATCH request to: ${o}`);
572
674
  try {
573
- const c = await fetch(s, {
675
+ const c = await fetch(o, {
574
676
  method: "PATCH",
575
677
  headers: n,
576
678
  credentials: "include",
577
679
  body: JSON.stringify(i)
578
680
  });
579
- return b(c, r == null ? void 0 : r.responseType);
681
+ return C(c, r == null ? void 0 : r.responseType);
580
682
  } catch (c) {
581
683
  throw h("Error making PATCH request:", c), c;
582
684
  }
583
685
  }
584
- let F, te;
585
- function x(e, t = !0) {
586
- let r = xe(e.$auditRecord);
587
- r && (Pe(r), t && Le(r)), e.$auditRecord = r;
686
+ let Q, ae;
687
+ function O(e, t = !0) {
688
+ let r = $e(e.$auditRecord);
689
+ r && (ye(r), t && Ue(r)), e.$auditRecord = r;
588
690
  }
589
- function xe(e) {
691
+ function $e(e) {
590
692
  if (!e)
591
693
  return;
592
694
  let t;
593
695
  if (Array.isArray(e))
594
696
  t = e;
595
- else if ($(e)) {
697
+ else if (I(e)) {
596
698
  const r = e;
597
699
  if (r.auditEvents || r.mlAuditEvents)
598
700
  return r;
@@ -600,57 +702,57 @@ function xe(e) {
600
702
  }
601
703
  return { auditEvents: t };
602
704
  }
603
- function Pe(e) {
705
+ function ye(e) {
604
706
  var r;
605
- const t = Oe();
707
+ const t = Ie();
606
708
  return (r = e.auditEvents) == null || r.forEach((n) => {
607
709
  n.detail || (n.detail = {}), n.detail.sessionid = t;
608
710
  }), e;
609
711
  }
610
- function Le(e) {
712
+ function Ue(e) {
611
713
  var r;
612
714
  const t = typeof window < "u" ? decodeURIComponent(window.location.href) : "http://localhost";
613
715
  return (r = e == null ? void 0 : e.auditEvents) == null || r.forEach((n) => {
614
716
  n.detail || (n.detail = {}), n.detail.url = t;
615
717
  }), e;
616
718
  }
617
- function Oe() {
618
- return (!F || $e()) && (F = ie()), te = /* @__PURE__ */ new Date(), F;
719
+ function Ie() {
720
+ return (!Q || De()) && (Q = we()), ae = /* @__PURE__ */ new Date(), Q;
619
721
  }
620
- function $e() {
621
- return (/* @__PURE__ */ new Date()).getTime() - te.getTime() > 10 * 60 * 1e3;
722
+ function De() {
723
+ return (/* @__PURE__ */ new Date()).getTime() - ae.getTime() > 10 * 60 * 1e3;
622
724
  }
623
- async function Ue(e, t = !0) {
725
+ async function Ae(e, t = !0) {
624
726
  const r = {
625
- event: k.None,
727
+ event: v.None,
626
728
  $auditRecord: e
627
729
  };
628
- return x(r, t), u("api/v1/audit.notify", r);
730
+ return O(r, t), u("api/v1/audit.notify", r);
629
731
  }
630
- const Ut = { notify: Ue };
631
- async function yt(e, t, r) {
632
- var d;
633
- const n = ((d = e.items) == null ? void 0 : d.length) || 0, a = 10, o = {
732
+ const Nt = { notify: Ae };
733
+ async function Ft(e, t, r) {
734
+ var f;
735
+ const n = ((f = e.items) == null ? void 0 : f.length) || 0, a = 10, s = {
634
736
  query: { ...t, action: "aggregate", aggregations: { [e.name]: { skip: n, count: a } } },
635
737
  $auditRecord: { auditEvents: [r] }
636
738
  };
637
- x(o);
638
- const i = await u("api/v1/query", o), s = await b(i), { aggregations: c } = s, l = c[0];
739
+ O(s);
740
+ const i = await u("api/v1/query", s), o = await C(i), { aggregations: c } = o, l = c[0];
639
741
  return l.$hasMore = l.items.length > a, l.items = [...e.items, ...l.items], Promise.resolve(l);
640
742
  }
641
- async function It() {
642
- const { app: e } = f, t = new URLSearchParams({ app: e || "" });
643
- return S("api/v1/app", t);
743
+ async function Bt() {
744
+ const { app: e } = d, t = new URLSearchParams({ app: e || "" });
745
+ return k("api/v1/app", t);
644
746
  }
645
- async function ye() {
646
- const { app: e } = f, t = new URLSearchParams({
747
+ async function Ne() {
748
+ const { app: e } = d, t = new URLSearchParams({
647
749
  app: e || "",
648
750
  preLogin: "true"
649
751
  });
650
- return S("api/v1/app", t);
752
+ return k("api/v1/app", t);
651
753
  }
652
- function Dt() {
653
- let { backendUrl: e, app: t } = f;
754
+ function qt() {
755
+ let { backendUrl: e, app: t } = d;
654
756
  if (typeof window < "u") {
655
757
  if (e || (e = window.location.origin), !t) {
656
758
  const r = window.location.pathname.match(
@@ -658,39 +760,39 @@ function Dt() {
658
760
  );
659
761
  r && (t = r[1]);
660
762
  }
661
- m({
662
- ...f,
763
+ b({
764
+ ...d,
663
765
  backendUrl: e,
664
766
  app: t
665
767
  });
666
768
  }
667
- return ye().then((r) => {
668
- const { autoOAuthProvider: n, autoSAMLProvider: a } = f, o = !n && !r.autoOAuthProvider && !a && !r.autoSAMLProvider;
669
- return m({
670
- ...f,
769
+ return Ne().then((r) => {
770
+ const { autoOAuthProvider: n, autoSAMLProvider: a } = d, s = !n && !r.autoOAuthProvider && !a && !r.autoSAMLProvider;
771
+ return b({
772
+ ...d,
671
773
  autoOAuthProvider: n || r.autoOAuthProvider,
672
774
  autoSAMLProvider: a || r.autoSAMLProvider,
673
- useCredentials: o,
674
- useSSO: o
775
+ useCredentials: s,
776
+ useSSO: s
675
777
  }), r;
676
778
  }).catch((r) => {
677
779
  throw h("atomic:fetchAppPreLogin error", r), r;
678
780
  });
679
781
  }
680
- async function At(e, t, r = {}) {
681
- const n = `api/v1/search.dataset/${e}/${t}`, a = await u(n, { parameters: r }), o = t[0].toLowerCase() + t.slice(1), i = a.datasets[o];
782
+ async function Qt(e, t, r = {}) {
783
+ const n = `api/v1/search.dataset/${e}/${t}`, a = await u(n, { parameters: r }), s = t[0].toLowerCase() + t.slice(1), i = a.datasets[s];
682
784
  if ("errorCode" in i && "errorMessage" in i)
683
785
  throw new Error(i.errorMessage);
684
786
  return i;
685
787
  }
686
- async function Nt(e, t) {
788
+ async function Gt(e, t) {
687
789
  const r = `api/v1/search.dataset/${e}`, { parameters: n = {}, datasets: a = [] } = t;
688
790
  return (await u(r, { parameters: n, datasets: a })).datasets;
689
791
  }
690
- async function Ft(e) {
691
- return await S(`api/v1/search.dataset/${e}`);
792
+ async function Vt(e) {
793
+ return await k(`api/v1/search.dataset/${e}`);
692
794
  }
693
- async function Bt(e, t = !0, r) {
795
+ async function jt(e, t = !0, r) {
694
796
  try {
695
797
  return (await u("api/v1/labels", {
696
798
  action: "list",
@@ -703,18 +805,18 @@ async function Bt(e, t = !0, r) {
703
805
  throw h("Error in fetchLabels", n), n;
704
806
  }
705
807
  }
706
- async function Ie() {
808
+ async function Fe() {
707
809
  try {
708
- const { app: e = "" } = f, t = new URLSearchParams({
810
+ const { app: e = "" } = d, t = new URLSearchParams({
709
811
  app: e,
710
812
  action: "getUserRights"
711
813
  });
712
- return S("api/v1/labels", t);
814
+ return k("api/v1/labels", t);
713
815
  } catch (e) {
714
816
  throw h("Error in getUserRights", e), e;
715
817
  }
716
818
  }
717
- async function De(e, t, r = !0) {
819
+ async function Be(e, t, r = !0) {
718
820
  try {
719
821
  const n = {
720
822
  action: "add",
@@ -724,7 +826,7 @@ async function De(e, t, r = !0) {
724
826
  $auditRecord: {
725
827
  auditEvents: [
726
828
  {
727
- type: k.Label_AddDoc,
829
+ type: v.Label_AddDoc,
728
830
  detail: {
729
831
  public: r,
730
832
  label: e ? e.toString() : null,
@@ -745,7 +847,7 @@ async function De(e, t, r = !0) {
745
847
  throw h("Error in add", n), n;
746
848
  }
747
849
  }
748
- async function Ae(e, t, r = !0) {
850
+ async function qe(e, t, r = !0) {
749
851
  try {
750
852
  const n = {
751
853
  action: "remove",
@@ -755,7 +857,7 @@ async function Ae(e, t, r = !0) {
755
857
  $auditRecord: {
756
858
  auditEvents: [
757
859
  {
758
- type: k.Label_RemoveDoc,
860
+ type: v.Label_RemoveDoc,
759
861
  detail: {
760
862
  public: r,
761
863
  label: e ? e.toString() : null,
@@ -776,7 +878,7 @@ async function Ae(e, t, r = !0) {
776
878
  throw h("Error in remove", n), n;
777
879
  }
778
880
  }
779
- async function Ne(e, t, r = !0) {
881
+ async function Qe(e, t, r = !0) {
780
882
  try {
781
883
  const n = {
782
884
  action: "rename",
@@ -784,7 +886,7 @@ async function Ne(e, t, r = !0) {
784
886
  newLabel: t,
785
887
  public: r,
786
888
  auditEvents: {
787
- type: k.Label_Rename,
889
+ type: v.Label_Rename,
788
890
  detail: {
789
891
  public: r,
790
892
  oldlabel: e ? e.toString() : null,
@@ -797,14 +899,14 @@ async function Ne(e, t, r = !0) {
797
899
  throw h("Error in rename", n), n;
798
900
  }
799
901
  }
800
- async function Fe(e, t = !0) {
902
+ async function Ge(e, t = !0) {
801
903
  try {
802
904
  const r = {
803
905
  action: "delete",
804
906
  labels: e,
805
907
  public: t,
806
908
  auditEvents: {
807
- type: k.Label_Delete,
909
+ type: v.Label_Delete,
808
910
  detail: {
809
911
  public: t,
810
912
  label: e ? e.toString() : null
@@ -816,7 +918,7 @@ async function Fe(e, t = !0) {
816
918
  throw h("Error in deleteLabels", r), r;
817
919
  }
818
920
  }
819
- async function Be(e, t, r = !0) {
921
+ async function Ve(e, t, r = !0) {
820
922
  try {
821
923
  const n = {
822
924
  action: "bulkAdd",
@@ -824,7 +926,7 @@ async function Be(e, t, r = !0) {
824
926
  query: t,
825
927
  public: r,
826
928
  auditEvents: {
827
- type: k.Label_Add,
929
+ type: v.Label_Add,
828
930
  detail: {
829
931
  public: r,
830
932
  label: e ? e.toString() : null,
@@ -837,7 +939,7 @@ async function Be(e, t, r = !0) {
837
939
  throw h("Error in bulkAdd", n), n;
838
940
  }
839
941
  }
840
- async function qe(e, t, r = !0) {
942
+ async function je(e, t, r = !0) {
841
943
  try {
842
944
  const n = {
843
945
  action: "bulkRemove",
@@ -845,7 +947,7 @@ async function qe(e, t, r = !0) {
845
947
  query: t,
846
948
  public: r,
847
949
  auditEvents: {
848
- type: k.Label_Delete,
950
+ type: v.Label_Delete,
849
951
  detail: {
850
952
  public: r,
851
953
  label: e ? e.toString() : null,
@@ -858,16 +960,16 @@ async function qe(e, t, r = !0) {
858
960
  throw h("Error in bulkRemove", n), n;
859
961
  }
860
962
  }
861
- const qt = {
862
- getUserRights: Ie,
863
- add: De,
864
- remove: Ae,
865
- rename: Ne,
866
- delete: Fe,
867
- bulkAdd: Be,
868
- bulkRemove: qe
963
+ const zt = {
964
+ getUserRights: Fe,
965
+ add: Be,
966
+ remove: qe,
967
+ rename: Qe,
968
+ delete: Ge,
969
+ bulkAdd: Ve,
970
+ bulkRemove: je
869
971
  };
870
- async function Qt(e, t) {
972
+ async function Ht(e, t) {
871
973
  if (typeof window > "u")
872
974
  return u("api/v1/preview", {
873
975
  action: "get",
@@ -882,7 +984,7 @@ async function Qt(e, t) {
882
984
  browserUrl: r
883
985
  });
884
986
  }
885
- async function Gt(e) {
987
+ async function Jt(e) {
886
988
  const t = new Headers();
887
989
  t.append("content-type", "text");
888
990
  const r = await fetch(
@@ -892,76 +994,76 @@ async function Gt(e) {
892
994
  headers: t
893
995
  }
894
996
  );
895
- b(r);
997
+ C(r);
896
998
  }
897
- async function Qe() {
999
+ async function ze() {
898
1000
  const e = new URLSearchParams({
899
1001
  action: "get",
900
1002
  noAutoAuthentication: "true"
901
1003
  });
902
- return S("api/v1/principal", e);
1004
+ return k("api/v1/principal", e);
903
1005
  }
904
- const re = 11;
905
- async function Vt(e, t, r) {
1006
+ const se = 11;
1007
+ async function Wt(e, t, r) {
906
1008
  var i;
907
1009
  const a = await u("api/v1/query", {
908
1010
  query: e,
909
1011
  $auditRecord: t,
910
1012
  queryIntentData: r
911
1013
  });
912
- a.aggregations.forEach((s) => {
913
- s.$hasMore = !1, !s.isDistribution && !s.isTree && s.items && (s.$hasMore = s.items.length === re), s.isTree && s.items && q(s);
914
- }), (i = a.records) == null || i.map((s) => Object.assign(s, { value: s.title, type: "default" }));
915
- const o = { ...a, nextPage: a.page < Math.ceil(a.rowCount / a.pageSize) ? a.page + 1 : void 0, previousPage: a.page > 1 ? a.page - 1 : void 0 };
916
- return Promise.resolve(o);
917
- }
918
- async function jt(e, t, r) {
919
- const { app: n = "" } = f, a = {
1014
+ a.aggregations.forEach((o) => {
1015
+ o.$hasMore = !1, !o.isDistribution && !o.isTree && o.items && (o.$hasMore = o.items.length === se), o.isTree && o.items && V(o);
1016
+ }), (i = a.records) == null || i.map((o) => Object.assign(o, { value: o.title, type: "default" }));
1017
+ const s = { ...a, nextPage: a.page < Math.ceil(a.rowCount / a.pageSize) ? a.page + 1 : void 0, previousPage: a.page > 1 ? a.page - 1 : void 0 };
1018
+ return Promise.resolve(s);
1019
+ }
1020
+ async function Xt(e, t, r) {
1021
+ const { app: n = "" } = d, a = {
920
1022
  methods: [],
921
1023
  mode: t,
922
1024
  propagateErrors: !0,
923
1025
  $auditRecord: { auditEvents: [r] }
924
1026
  };
925
- for (const s of e)
1027
+ for (const o of e)
926
1028
  a.methods.push({
927
1029
  method: "query",
928
1030
  app: n,
929
- query: s
1031
+ query: o
930
1032
  });
931
- const o = await u("api/v1/multi", a);
932
- o.results.forEach((s) => {
933
- s.aggregations.forEach((c) => {
934
- c.$hasMore = !1, !c.isDistribution && !c.isTree && c.items && (c.$hasMore = c.items.length === re), c.isTree && q(c);
1033
+ const s = await u("api/v1/multi", a);
1034
+ s.results.forEach((o) => {
1035
+ o.aggregations.forEach((c) => {
1036
+ c.$hasMore = !1, !c.isDistribution && !c.isTree && c.items && (c.$hasMore = c.items.length === se), c.isTree && V(c);
935
1037
  });
936
- }), o.results.forEach((s) => {
1038
+ }), s.results.forEach((o) => {
937
1039
  var c;
938
- return (c = s.records) == null ? void 0 : c.map((l) => Object.assign(l, { value: l.title, type: "default" }));
1040
+ return (c = o.records) == null ? void 0 : c.map((l) => Object.assign(l, { value: l.title, type: "default" }));
939
1041
  });
940
- const i = o.results.map((s) => ({ ...s, nextPage: s.page < Math.ceil(s.rowCount / s.pageSize) ? s.page + 1 : void 0, previousPage: s.page > 1 ? s.page - 1 : void 0 }));
1042
+ const i = s.results.map((o) => ({ ...o, nextPage: o.page < Math.ceil(o.rowCount / o.pageSize) ? o.page + 1 : void 0, previousPage: o.page > 1 ? o.page - 1 : void 0 }));
941
1043
  return Promise.resolve(i);
942
1044
  }
943
- function q(e, t = "", r = 0) {
1045
+ function V(e, t = "", r = 0) {
944
1046
  let n = [];
945
1047
  return e.items && e.items.forEach((a) => {
946
- let o = t ? `${t}/${a.value}` : a.value, i = r + 1;
947
- n.push({ path: o, level: i }), a.$path = o, a.$level = i, a.hasChildren ? n = n.concat(q(a, o, i)) : a.hasChildren = !1;
1048
+ let s = t ? `${t}/${a.value}` : a.value, i = r + 1;
1049
+ n.push({ path: s, level: i }), a.$path = s, a.$level = i, a.hasChildren ? n = n.concat(V(a, s, i)) : a.hasChildren = !1;
948
1050
  }), n;
949
1051
  }
950
- async function zt(e) {
1052
+ async function Mt(e) {
951
1053
  const r = await u("api/v1/queryintent", {
952
1054
  query: e
953
1055
  });
954
1056
  return r == null ? void 0 : r.intents;
955
1057
  }
956
- async function Ht({ model: e, appName: t, query: r, article: n }) {
957
- const { webservice: a, format: o, maxcount: i, exportedColumns: s, export: c } = e, l = {
1058
+ async function Yt({ model: e, appName: t, query: r, article: n }) {
1059
+ const { webservice: a, format: s, maxcount: i, exportedColumns: o, export: c } = e, l = {
958
1060
  app: t,
959
1061
  webservice: a,
960
1062
  query: r,
961
1063
  type: c,
962
- format: o,
1064
+ format: s,
963
1065
  maxcount: i,
964
- exportedColumns: s,
1066
+ exportedColumns: o,
965
1067
  $auditRecord: {
966
1068
  auditEvents: [{
967
1069
  type: "Search_ExportCSV",
@@ -971,9 +1073,9 @@ async function Ht({ model: e, appName: t, query: r, article: n }) {
971
1073
  }]
972
1074
  }
973
1075
  };
974
- return x(l), await u("api/v1/search.queryexport", l, { responseType: "blob" });
1076
+ return O(l), await u("api/v1/search.queryexport", l, { responseType: "blob" });
975
1077
  }
976
- async function Jt(e, t, r) {
1078
+ async function Kt(e, t, r) {
977
1079
  return (await u(
978
1080
  "api/v1/similardocuments",
979
1081
  {
@@ -985,17 +1087,17 @@ async function Jt(e, t, r) {
985
1087
  { signal: r }
986
1088
  )).data;
987
1089
  }
988
- async function Wt(e, t) {
1090
+ async function Zt(e, t) {
989
1091
  var a;
990
1092
  const n = await u("api/v1/query.links", {
991
1093
  webservice: e,
992
1094
  query: t
993
1095
  });
994
- return (a = n == null ? void 0 : n.links) == null ? void 0 : a.map((o) => ({ ...o, query: t }));
1096
+ return (a = n == null ? void 0 : n.links) == null ? void 0 : a.map((s) => ({ ...s, query: t }));
995
1097
  }
996
- async function Xt(e, t, r, n, a) {
997
- const { app: o } = f, i = {
998
- app: o || "",
1098
+ async function Et(e, t, r, n, a) {
1099
+ const { app: s } = d, i = {
1100
+ app: s || "",
999
1101
  suggestQuery: e,
1000
1102
  text: t,
1001
1103
  filter: r,
@@ -1004,12 +1106,12 @@ async function Xt(e, t, r, n, a) {
1004
1106
  };
1005
1107
  try {
1006
1108
  return (await u("api/v1/search.suggest", i)).suggests;
1007
- } catch (s) {
1008
- throw console.error("Error fetching suggestions:", s), s;
1109
+ } catch (o) {
1110
+ throw console.error("Error fetching suggestions:", o), o;
1009
1111
  }
1010
1112
  }
1011
- async function Mt(e, t, r, n) {
1012
- const { app: a } = f;
1113
+ async function Tt(e, t, r, n) {
1114
+ const { app: a } = d;
1013
1115
  return (await u("api/v1/suggestquery", {
1014
1116
  app: a || "",
1015
1117
  suggestQuery: e,
@@ -1018,9 +1120,9 @@ async function Mt(e, t, r, n) {
1018
1120
  kinds: n
1019
1121
  })).suggests;
1020
1122
  }
1021
- async function Yt(e, t) {
1123
+ async function er(e, t) {
1022
1124
  if (!t) return Promise.resolve([]);
1023
- const { app: r } = f;
1125
+ const { app: r } = d;
1024
1126
  return (await u("api/v1/suggestfield", {
1025
1127
  app: r || "",
1026
1128
  text: e,
@@ -1028,47 +1130,47 @@ async function Yt(e, t) {
1028
1130
  fields: t
1029
1131
  })).suggests;
1030
1132
  }
1031
- async function Kt(e, t, r, n, a, o) {
1133
+ async function tr(e, t, r, n, a, s) {
1032
1134
  return u("api/v1/doc.textchunks", {
1033
1135
  id: e,
1034
1136
  textChunks: t,
1035
1137
  highlights: r,
1036
1138
  query: n,
1037
1139
  leftSentencesCount: a,
1038
- rightSentencesCount: o
1140
+ rightSentencesCount: s
1039
1141
  });
1040
1142
  }
1041
- async function Zt() {
1042
- const { app: e } = f, t = new URLSearchParams({
1143
+ async function rr() {
1144
+ const { app: e } = d, t = new URLSearchParams({
1043
1145
  app: e || "",
1044
1146
  action: "load"
1045
1147
  });
1046
- return S("api/v1/usersettings", t);
1148
+ return k("api/v1/usersettings", t);
1047
1149
  }
1048
- async function Ge(e, t) {
1150
+ async function He(e, t) {
1049
1151
  const r = {
1050
1152
  action: "save",
1051
1153
  userSettings: e,
1052
1154
  $auditRecord: { auditEvents: [t] }
1053
1155
  };
1054
- return x(r), u("api/v1/usersettings", r);
1156
+ return O(r), u("api/v1/usersettings", r);
1055
1157
  }
1056
- async function Et(e, t) {
1158
+ async function nr(e, t) {
1057
1159
  const n = {
1058
1160
  action: "patch",
1059
1161
  userSettings: e,
1060
1162
  $auditRecord: t ? { auditEvents: [t] } : void 0
1061
1163
  };
1062
- return x(n), u("api/v1/usersettings", n);
1164
+ return O(n), u("api/v1/usersettings", n);
1063
1165
  }
1064
- async function Tt() {
1065
- return Ge({}, { type: "UserSettings_Reset" });
1166
+ async function ar() {
1167
+ return He({}, { type: "UserSettings_Reset" });
1066
1168
  }
1067
- async function er() {
1068
- return await S("api/v2/version");
1169
+ async function sr() {
1170
+ return await k("api/v2/version");
1069
1171
  }
1070
- const Ve = async () => {
1071
- const { autoOAuthProvider: e } = f;
1172
+ const Je = async () => {
1173
+ const { autoOAuthProvider: e } = d;
1072
1174
  if (typeof window > "u")
1073
1175
  return u("security.oauth", {
1074
1176
  action: "getcode",
@@ -1091,8 +1193,8 @@ const Ve = async () => {
1091
1193
  } catch (r) {
1092
1194
  throw console.error("Failed to authenticate with OAuth", r), r;
1093
1195
  }
1094
- }, je = async () => {
1095
- const { autoSAMLProvider: e } = f;
1196
+ }, We = async () => {
1197
+ const { autoSAMLProvider: e } = d;
1096
1198
  if (typeof window > "u")
1097
1199
  return u("security.saml", {
1098
1200
  action: "getresponse",
@@ -1115,7 +1217,7 @@ const Ve = async () => {
1115
1217
  } catch (r) {
1116
1218
  throw console.error("Failed to authenticate with SAML", r), r;
1117
1219
  }
1118
- }, Q = {
1220
+ }, j = {
1119
1221
  store: {},
1120
1222
  getItem(e) {
1121
1223
  return this.store[e] ?? null;
@@ -1129,36 +1231,36 @@ const Ve = async () => {
1129
1231
  clear() {
1130
1232
  this.store = {};
1131
1233
  }
1132
- }, G = Q;
1133
- function ze(e) {
1134
- return typeof window > "u" || !window.localStorage ? Q.getItem(e) : window.localStorage.getItem(e);
1234
+ }, z = j;
1235
+ function Xe(e) {
1236
+ return typeof window > "u" || !window.localStorage ? j.getItem(e) : window.localStorage.getItem(e);
1135
1237
  }
1136
- function He(e) {
1137
- typeof window > "u" || !window.localStorage ? Q.removeItem(e) : window.localStorage.removeItem(e);
1238
+ function Me(e) {
1239
+ typeof window > "u" || !window.localStorage ? j.removeItem(e) : window.localStorage.removeItem(e);
1138
1240
  }
1139
- function Je(e) {
1140
- return typeof window > "u" || !window.sessionStorage ? G.getItem(e) : window.sessionStorage.getItem(e);
1241
+ function Ye(e) {
1242
+ return typeof window > "u" || !window.sessionStorage ? z.getItem(e) : window.sessionStorage.getItem(e);
1141
1243
  }
1142
- function We(e, t) {
1143
- typeof window > "u" || !window.sessionStorage ? G.setItem(e, t) : window.sessionStorage.setItem(e, t);
1244
+ function Ke(e, t) {
1245
+ typeof window > "u" || !window.sessionStorage ? z.setItem(e, t) : window.sessionStorage.setItem(e, t);
1144
1246
  }
1145
- function Xe(e) {
1146
- typeof window > "u" || !window.sessionStorage ? G.removeItem(e) : window.sessionStorage.removeItem(e);
1247
+ function Ze(e) {
1248
+ typeof window > "u" || !window.sessionStorage ? z.removeItem(e) : window.sessionStorage.removeItem(e);
1147
1249
  }
1148
- const O = (e) => We(
1250
+ const U = (e) => Ke(
1149
1251
  "sinequa-credentials",
1150
1252
  JSON.stringify({ data: { csrfToken: e } })
1151
- ), Me = async () => {
1253
+ ), Ee = async () => {
1152
1254
  try {
1153
- const e = await S(
1255
+ const e = await k(
1154
1256
  "api/v1/challenge?action=getCsrfToken&suppressErrors=true"
1155
1257
  );
1156
- return e != null && e.csrfToken ? (O(e.csrfToken), e.csrfToken) : null;
1258
+ return e != null && e.csrfToken ? (U(e.csrfToken), e.csrfToken) : null;
1157
1259
  } catch (e) {
1158
1260
  throw h("Failed to get CSRF token", e), e;
1159
1261
  }
1160
1262
  };
1161
- async function Ye(e) {
1263
+ async function Te(e) {
1162
1264
  if (e) {
1163
1265
  const { username: t, password: r } = e, n = {
1164
1266
  action: "get",
@@ -1173,7 +1275,7 @@ async function Ye(e) {
1173
1275
  "api/v1/security.webtoken",
1174
1276
  n
1175
1277
  );
1176
- return a != null && a.csrfToken ? (O(a.csrfToken), a.csrfToken) : null;
1278
+ return a != null && a.csrfToken ? (U(a.csrfToken), a.csrfToken) : null;
1177
1279
  } catch (a) {
1178
1280
  throw console.error("Failed to get JWT", a), a;
1179
1281
  }
@@ -1184,7 +1286,7 @@ async function Ye(e) {
1184
1286
  noUserOverride: !0,
1185
1287
  noAutoAuthentication: !1
1186
1288
  // Allow auto authentication for credentialless requests
1187
- }, { bearerToken: r } = f;
1289
+ }, { bearerToken: r } = d;
1188
1290
  if (!r)
1189
1291
  throw new Error(
1190
1292
  "Bearer token is required in globalConfig for credentialless JWT retrieval."
@@ -1197,191 +1299,193 @@ async function Ye(e) {
1197
1299
  t,
1198
1300
  { headers: n }
1199
1301
  );
1200
- return a.csrfToken ? (O(a.csrfToken), a.csrfToken) : null;
1302
+ return a.csrfToken ? (U(a.csrfToken), a.csrfToken) : null;
1201
1303
  } catch (a) {
1202
1304
  throw console.error("Failed to get JWT without credentials", a), a;
1203
1305
  }
1204
1306
  }
1205
1307
  }
1206
- const V = () => {
1308
+ const H = () => {
1207
1309
  var r;
1208
- const e = Je("sinequa-credentials");
1310
+ const e = Ye("sinequa-credentials");
1209
1311
  if (e)
1210
1312
  try {
1211
1313
  const a = (r = JSON.parse(e).data) == null ? void 0 : r.csrfToken;
1212
1314
  if (a !== void 0) return a;
1213
1315
  } catch {
1214
1316
  }
1215
- const t = ze("csrfToken");
1317
+ const t = Xe("csrfToken");
1216
1318
  return t !== null ? t : null;
1217
- }, tr = async (e) => {
1319
+ }, or = async (e) => {
1218
1320
  if (e)
1219
- w("Attempting authentication using credentials"), m({ useCredentials: !0, useSSO: !1 });
1321
+ g("Attempting authentication using credentials"), b({ useCredentials: !0, useSSO: !1 });
1220
1322
  else {
1221
- let s = null;
1323
+ let o = null;
1222
1324
  try {
1223
- w("Attempting to retrieve CSRF token from the backend"), s = await Me(), p("CSRF token retrieval result", s ? "success" : "failed");
1325
+ g("Attempting to retrieve CSRF token from the backend"), o = await Ee(), R("CSRF token retrieval result", o ? "success" : "failed");
1224
1326
  } catch (c) {
1225
1327
  h("Failed to retrieve CSRF token", c);
1226
1328
  }
1227
1329
  try {
1228
- if (s === null) {
1229
- const { autoOAuthProvider: c, autoSAMLProvider: l, useSAML: d } = f;
1230
- if (c && !d)
1231
- return w("Initiating OAuth authentication flow"), await Ve(), v("OAuth authentication flow did not redirect as expected"), _(!1), !1;
1330
+ if (o === null) {
1331
+ const { autoOAuthProvider: c, autoSAMLProvider: l, useSAML: f } = d;
1332
+ if (c && !f)
1333
+ return g("Initiating OAuth authentication flow"), await Je(), L("OAuth authentication flow did not redirect as expected"), w(!1), !1;
1232
1334
  if (l)
1233
- return w("Initiating SAML authentication flow"), await je(), v("SAML authentication flow did not redirect as expected"), _(!1), !1;
1234
- w(
1335
+ return g("Initiating SAML authentication flow"), await We(), L("SAML authentication flow did not redirect as expected"), w(!1), !1;
1336
+ g(
1235
1337
  "No direct authentication method available, will try SSO then credentials"
1236
- ), m({ useCredentials: !0, useSSO: !0 });
1338
+ ), b({ useCredentials: !0, useSSO: !0 });
1237
1339
  } else
1238
- return w("User authenticated via existing token"), _(!0), !0;
1340
+ return g("User authenticated via existing token"), w(!0), !0;
1239
1341
  } catch (c) {
1240
- throw h("Unexpected error during authentication", c), _(!1), c;
1342
+ throw h("Unexpected error during authentication", c), w(!1), c;
1241
1343
  }
1242
1344
  }
1243
- if (f.useCredentials && f.useSSO)
1345
+ if (d.useCredentials && d.useSSO)
1244
1346
  try {
1245
- if (w("Checking if user is authenticated via SSO"), await Qe())
1246
- return w("User authenticated using SSO"), m({ useCredentials: !1, useSSO: !0 }), _(!0), !0;
1247
- } catch (s) {
1248
- if ((s == null ? void 0 : s.status) === 401)
1249
- return w("SSO authentication failed with 401, falling back to credentials"), m({ useCredentials: !0, useSSO: !1 }), !1;
1250
- throw h("SSO authentication failed with unexpected error", s), _(!1), h;
1347
+ if (g("Checking if user is authenticated via SSO"), await ze())
1348
+ return g("User authenticated using SSO"), b({ useCredentials: !1, useSSO: !0 }), w(!0), !0;
1349
+ } catch (o) {
1350
+ if ((o == null ? void 0 : o.status) === 401)
1351
+ return g("SSO authentication failed with 401, falling back to credentials"), b({ useCredentials: !0, useSSO: !1 }), !1;
1352
+ throw h("SSO authentication failed with unexpected error", o), w(!1), h;
1251
1353
  }
1252
- const { useSSO: r } = f, n = V();
1354
+ const { useSSO: r } = d, n = H();
1253
1355
  if (n && n !== null || r)
1254
- return w("user already authenticated", n), m({ isRedirectUrl: !1 }), _(!0), !0;
1255
- const { useCredentials: a } = f, { username: o, password: i } = e || {};
1256
- if (a && !o && !i)
1257
- return h("Credentials are required for authentication"), _(!1), !1;
1258
- if (o && i)
1356
+ return g("user already authenticated", n), b({ isRedirectUrl: !1 }), w(!0), !0;
1357
+ const { useCredentials: a } = d, { username: s, password: i } = e || {};
1358
+ if (a && !s && !i)
1359
+ return h("Credentials are required for authentication"), w(!1), !1;
1360
+ if (s && i)
1259
1361
  try {
1260
- return w("authentication using credentials..."), m({ useCredentials: !0, useSSO: !1 }), await Ye({ username: o, password: i }), _(!0), !0;
1261
- } catch (s) {
1262
- throw _(!1), s;
1362
+ return g("authentication using credentials..."), b({ useCredentials: !0, useSSO: !1 }), await Te({ username: s, password: i }), w(!0), !0;
1363
+ } catch (o) {
1364
+ throw w(!1), o;
1263
1365
  }
1264
- return _(!1), h(
1366
+ return w(!1), h(
1265
1367
  "No authentication method available. Please provide credentials or configure OAuth/SAML."
1266
1368
  ), !1;
1267
- }, Ke = async () => {
1369
+ }, et = async () => {
1268
1370
  const e = new URLSearchParams({
1269
1371
  action: "deleteWebTokenCookie",
1270
1372
  noUserOverride: "true",
1271
1373
  noAutoAuthentication: "true"
1272
1374
  });
1273
- return S("api/v1/challenge", e);
1274
- }, rr = async () => {
1275
- const { useCredentials: e, userOverrideActive: t } = f;
1276
- He("csrfToken"), Xe("sinequa-credentials"), e && !t ? (await Ke()).methodresult === "ok" ? _(!1) : console.error("logout failed") : _(!1);
1277
- }, nr = () => !!V();
1375
+ return k("api/v1/challenge", e);
1376
+ }, cr = async () => {
1377
+ const { useCredentials: e, userOverrideActive: t } = d;
1378
+ Me("csrfToken"), Ze("sinequa-credentials"), e && !t ? (await et()).methodresult === "ok" ? w(!1) : console.error("logout failed") : w(!1);
1379
+ }, ir = () => !!H();
1278
1380
  export {
1279
- g as ApiError,
1280
- Ut as Audit,
1281
- k as AuditEventType,
1282
- fe as DidYouMeanKind,
1283
- le as EngineType,
1284
- ue as EngineTypeModifier,
1285
- E as LogLevel,
1381
+ p as ApiError,
1382
+ Nt as Audit,
1383
+ v as AuditEventType,
1384
+ ie as DidYouMeanKind,
1385
+ _ as EngineType,
1386
+ S as EngineTypeModifier,
1387
+ te as LogLevel,
1286
1388
  nt as MINIMUM_COMPATIBLE_SERVER_API_VERSION,
1287
- de as RFMDisplay,
1288
- he as ServerError,
1289
- _e as TimeoutError,
1290
- Z as UnauthorizedError,
1291
- x as addAuditAdditionalInfo,
1292
- ft as addConcepts,
1293
- Pe as addSessionId,
1294
- Le as addUrl,
1295
- we as aggItemRegex,
1296
- it as aggregationItemStrictCompare,
1297
- Dt as appInitializerFn,
1298
- ut as bisect,
1299
- q as buildPathsAndLevels,
1300
- ot as configureLogger,
1301
- R as createHeaders,
1302
- at as createTimeoutController,
1303
- p as debug,
1304
- Ot as del,
1305
- Tt as deleteUserSettings,
1306
- Ke as deleteWebTokenCookie,
1307
- _ as emitAuthenticatedEvent,
1389
+ le as RFMDisplay,
1390
+ Se as ServerError,
1391
+ ge as TimeoutError,
1392
+ ee as UnauthorizedError,
1393
+ O as addAuditAdditionalInfo,
1394
+ wt as addConcepts,
1395
+ ye as addSessionId,
1396
+ Ue as addUrl,
1397
+ ke as aggItemRegex,
1398
+ ht as aggregationItemStrictCompare,
1399
+ qt as appInitializerFn,
1400
+ mt as bisect,
1401
+ V as buildPathsAndLevels,
1402
+ ut as configureLogger,
1403
+ P as createHeaders,
1404
+ lt as createTimeoutController,
1405
+ R as debug,
1406
+ Dt as del,
1407
+ ar as deleteUserSettings,
1408
+ et as deleteWebTokenCookie,
1409
+ w as emitAuthenticatedEvent,
1308
1410
  h as error,
1309
- tt as escapeExpr,
1310
- yt as fetchAggregation,
1311
- It as fetchApp,
1312
- ye as fetchAppPreLogin,
1313
- jt as fetchBulkQuery,
1314
- At as fetchDataset,
1315
- Ft as fetchDatasetList,
1316
- Nt as fetchDatasets,
1317
- Bt as fetchLabels,
1318
- Qt as fetchPreview,
1319
- Gt as fetchPreviewUrl,
1320
- Qe as fetchPrincipal,
1321
- Vt as fetchQuery,
1322
- Ht as fetchQueryExport,
1323
- zt as fetchQueryIntent,
1324
- Jt as fetchSimilarDocuments,
1325
- Wt as fetchSponsoredLinks,
1326
- Xt as fetchSuggest,
1327
- Yt as fetchSuggestField,
1328
- Mt as fetchSuggestQuery,
1329
- Kt as fetchTextChunks,
1330
- Zt as fetchUserSettings,
1331
- er as fetchVersion,
1332
- S as get,
1333
- _t as getConcepts,
1334
- Me as getCsrfToken,
1335
- ee as getFiltersFromURI,
1336
- kt as getFiltersFromUrl,
1337
- xt as getHelpIndexUrl,
1338
- pt as getIdFromUrl,
1339
- Ye as getJWToken,
1340
- Te as getMetadata,
1341
- Re as getOffsetFromDates,
1342
- Ct as getQueryPageFromUrl,
1343
- mt as getQueryParamsFromUrl,
1344
- vt as getQueryTabFromUrl,
1345
- bt as getQueryTextFromUrl,
1346
- wt as getRelativeDate,
1347
- V as getToken,
1348
- gt as getUrlParamsFromQueryParams,
1349
- f as globalConfig,
1350
- ie as guid,
1351
- b as handleResponse,
1352
- w as info,
1353
- oe as isArrayBuffer,
1354
- nr as isAuthenticated,
1355
- se as isBlob,
1356
- et as isJsonable,
1357
- St as isNotInputEvent,
1358
- $ as isObject,
1359
- ce as isString,
1360
- qt as labels,
1361
- tr as login,
1362
- rr as logout,
1363
- Pt as notify,
1364
- me as openParentNodes,
1365
- y as parseText,
1366
- Se as parseValueAndOperatorFromItem,
1367
- $t as patch,
1368
- Et as patchUserSettings,
1411
+ ct as escapeExpr,
1412
+ at as extraColumns,
1413
+ Ft as fetchAggregation,
1414
+ Bt as fetchApp,
1415
+ Ne as fetchAppPreLogin,
1416
+ Xt as fetchBulkQuery,
1417
+ Qt as fetchDataset,
1418
+ Vt as fetchDatasetList,
1419
+ Gt as fetchDatasets,
1420
+ jt as fetchLabels,
1421
+ Ht as fetchPreview,
1422
+ Jt as fetchPreviewUrl,
1423
+ ze as fetchPrincipal,
1424
+ Wt as fetchQuery,
1425
+ Yt as fetchQueryExport,
1426
+ Mt as fetchQueryIntent,
1427
+ Kt as fetchSimilarDocuments,
1428
+ Zt as fetchSponsoredLinks,
1429
+ Et as fetchSuggest,
1430
+ er as fetchSuggestField,
1431
+ Tt as fetchSuggestQuery,
1432
+ tr as fetchTextChunks,
1433
+ rr as fetchUserSettings,
1434
+ sr as fetchVersion,
1435
+ k as get,
1436
+ kt as getConcepts,
1437
+ Ee as getCsrfToken,
1438
+ ne as getFiltersFromURI,
1439
+ Rt as getFiltersFromUrl,
1440
+ yt as getHelpIndexUrl,
1441
+ Lt as getIdFromUrl,
1442
+ Te as getJWToken,
1443
+ st as getMetadata,
1444
+ Oe as getOffsetFromDates,
1445
+ Pt as getQueryPageFromUrl,
1446
+ vt as getQueryParamsFromUrl,
1447
+ Ot as getQueryTabFromUrl,
1448
+ xt as getQueryTextFromUrl,
1449
+ bt as getRelativeDate,
1450
+ H as getToken,
1451
+ Ct as getUrlParamsFromQueryParams,
1452
+ d as globalConfig,
1453
+ we as guid,
1454
+ C as handleResponse,
1455
+ g as info,
1456
+ he as isArrayBuffer,
1457
+ ir as isAuthenticated,
1458
+ _e as isBlob,
1459
+ ot as isJsonable,
1460
+ pt as isNotInputEvent,
1461
+ I as isObject,
1462
+ me as isString,
1463
+ zt as labels,
1464
+ or as login,
1465
+ cr as logout,
1466
+ m as makeColumn,
1467
+ Ut as notify,
1468
+ pe as openParentNodes,
1469
+ A as parseText,
1470
+ be as parseValueAndOperatorFromItem,
1471
+ At as patch,
1472
+ nr as patchUserSettings,
1369
1473
  u as post,
1370
- Lt as put,
1371
- C as queryParamsFromUrl,
1372
- dt as removeConcept,
1373
- ht as removeConcepts,
1374
- Ee as resolveToColumnName,
1375
- B as rewriteText,
1376
- Ge as saveUserSettings,
1377
- m as setGlobalConfig,
1378
- O as setToken,
1379
- rt as sha512,
1380
- lt as suggestionsToTreeAggregationNodes,
1381
- Rt as sysLang,
1382
- ct as translateAggregationToDateOptions,
1383
- Ve as tryOAuthAuthentication,
1384
- je as trySAMLAuthentication,
1385
- v as warn,
1386
- st as withRetry
1474
+ It as put,
1475
+ x as queryParamsFromUrl,
1476
+ St as removeConcept,
1477
+ gt as removeConcepts,
1478
+ rt as resolveToColumnName,
1479
+ G as rewriteText,
1480
+ He as saveUserSettings,
1481
+ b as setGlobalConfig,
1482
+ U as setToken,
1483
+ it as sha512,
1484
+ _t as suggestionsToTreeAggregationNodes,
1485
+ $t as sysLang,
1486
+ ft as translateAggregationToDateOptions,
1487
+ Je as tryOAuthAuthentication,
1488
+ We as trySAMLAuthentication,
1489
+ L as warn,
1490
+ dt as withRetry
1387
1491
  };