@webitel/ui-sdk 26.8.67 → 26.8.69

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.
Files changed (125) hide show
  1. package/dist/clients-D5pO5FKV.js +39334 -0
  2. package/dist/{components-CXPq3d81.js → components-BH_gLkO3.js} +7 -7
  3. package/dist/{genClient-DMVlC4Uy.js → genClient-DtYJ9KWy.js} +1 -1
  4. package/dist/ui-sdk.js +3 -3
  5. package/dist/ui-sdk.umd.cjs +659 -735
  6. package/dist/{wt-button-l_CCN7zG.js → wt-button-TVtG0saz.js} +1 -1
  7. package/dist/{wt-chat-emoji-BwCLLExE.js → wt-chat-emoji-B-FoXVDr.js} +3 -3
  8. package/dist/{wt-display-chip-items-DgDn6xoK.js → wt-display-chip-items-CZzcHtcb.js} +1 -1
  9. package/dist/{wt-icon-btn-BbPNcD-O.js → wt-icon-btn-B_hS2f_v.js} +1 -1
  10. package/dist/{wt-icon-CjNYdMOP.js → wt-icon-md5nPR1T.js} +2 -2
  11. package/dist/{wt-notifications-bar-BTt1vqwz.js → wt-notifications-bar-k3Osz6gY.js} +1 -1
  12. package/dist/{wt-player-CoB2InY0.js → wt-player-R3rAiIxl.js} +2 -2
  13. package/dist/{wt-send-message-popup-TJdbzgRF.js → wt-send-message-popup-Cc92sY9q.js} +2 -2
  14. package/dist/{wt-toast-DHV4UvFz.js → wt-toast-DsIX8ZW_.js} +1 -1
  15. package/dist/wt-tree-CfvNlw7N.js +2042 -0
  16. package/dist/{wt-tree-table-9vnEJcX0.js → wt-tree-table-R02DpJ7M.js} +1 -1
  17. package/dist/{wt-type-extension-value-input-D5Y-ds9V.js → wt-type-extension-value-input-DfbrgPNa.js} +2 -2
  18. package/dist/{wt-vidstack-player-DKf1aSC7.js → wt-vidstack-player-DtbNeGgs.js} +3 -3
  19. package/package.json +1 -1
  20. package/src/api/clients/index.js +5 -66
  21. package/src/assets/icons/sprite/call--filled.svg +2 -2
  22. package/src/assets/icons/sprite/call-end--filled.svg +2 -3
  23. package/src/modules/AgentStatusSelect/api/agent-status.ts +44 -0
  24. package/src/modules/AgentStatusSelect/api/pause-cause.ts +54 -0
  25. package/src/modules/AgentStatusSelect/components/__tests__/wt-cc-agent-status-select.spec.js +4 -10
  26. package/src/modules/AgentStatusSelect/components/wt-cc-agent-status-select.vue +2 -6
  27. package/types/.tsbuildinfo +1 -1
  28. package/types/api/clients/index.d.ts +1 -33
  29. package/types/modules/AgentStatusSelect/api/agent-status.d.ts +4 -12
  30. package/types/modules/AgentStatusSelect/api/pause-cause.d.ts +7 -9
  31. package/dist/clients-DpqA006B.js +0 -40042
  32. package/dist/side-channel-M3LABDql.js +0 -833
  33. package/dist/wt-tree-DKSphRxr.js +0 -1216
  34. package/src/api/clients/agents/agentChats.js +0 -79
  35. package/src/api/clients/agents/agents.js +0 -300
  36. package/src/api/clients/buckets/buckets.js +0 -134
  37. package/src/api/clients/calendars/calendars.js +0 -239
  38. package/src/api/clients/caseCloseReasonGroups/caseCloseReasonGroups.js +0 -161
  39. package/src/api/clients/caseCloseReasons/caseCloseReasons.js +0 -165
  40. package/src/api/clients/casePriorities/casePriorities.js +0 -166
  41. package/src/api/clients/caseServiceCatalogs/serviceCatalogs.js +0 -231
  42. package/src/api/clients/caseServices/services.js +0 -221
  43. package/src/api/clients/caseSources/caseSources.ts +0 -2
  44. package/src/api/clients/caseStatusConditions/caseStatusConditions.js +0 -207
  45. package/src/api/clients/caseStatuses/caseStatuses.js +0 -152
  46. package/src/api/clients/catalog/catalog.js +0 -63
  47. package/src/api/clients/chatGateways/chatGateways.js +0 -338
  48. package/src/api/clients/chatGateways/defaults/defaultChatGateway.js +0 -18
  49. package/src/api/clients/chatGateways/defaults/webChatGateway.js +0 -72
  50. package/src/api/clients/chatGateways/enums/WebchatAlternativeChannel.enum.js +0 -14
  51. package/src/api/clients/chatGateways/scripts/generateUri.js +0 -9
  52. package/src/api/clients/communications/communications.js +0 -172
  53. package/src/api/clients/configurations/configurations.js +0 -168
  54. package/src/api/clients/contactGroups/contactGroups.js +0 -221
  55. package/src/api/clients/flows/flow.js +0 -252
  56. package/src/api/clients/gateways/defaults/defaultGateway.js +0 -9
  57. package/src/api/clients/gateways/defaults/registerGateway.js +0 -12
  58. package/src/api/clients/gateways/defaults/trunkingGateway.js +0 -16
  59. package/src/api/clients/gateways/gateways.js +0 -221
  60. package/src/api/clients/labels/labels.js +0 -69
  61. package/src/api/clients/lists/blacklists.js +0 -142
  62. package/src/api/clients/media/media.js +0 -136
  63. package/src/api/clients/object/object.js +0 -138
  64. package/src/api/clients/queues/queues.js +0 -263
  65. package/src/api/clients/quickReplies/quickReplies.ts +0 -2
  66. package/src/api/clients/skills/skills.js +0 -134
  67. package/src/api/clients/slaConditions/slaConditions.js +0 -190
  68. package/src/api/clients/slas/slas.js +0 -148
  69. package/src/api/clients/teams/teams.js +0 -161
  70. package/src/api/clients/users/__tests__/users.spec.js +0 -282
  71. package/src/api/clients/users/users.js +0 -334
  72. package/src/api/clients/wtTypes/_shared/utils/sortDynamicFields.ts +0 -38
  73. package/src/api/clients/wtTypes/sysTypes/sysTypes.ts +0 -92
  74. package/src/api/clients/wtTypes/typeExtensions/typeExtensions.ts +0 -156
  75. package/src/api/clients//321/201ontacts/contactChatMessagesHistory.js +0 -119
  76. package/src/api/clients//321/201ontacts/contacts.js +0 -449
  77. package/src/api/clients//321/201ontacts/enums/ContactsSearchMode.js +0 -9
  78. package/src/api/clients//321/201ontacts/index.js +0 -5
  79. package/src/modules/AgentStatusSelect/api/agent-status.js +0 -30
  80. package/src/modules/AgentStatusSelect/api/pause-cause.js +0 -49
  81. package/types/api/clients/agents/agentChats.d.ts +0 -10
  82. package/types/api/clients/agents/agents.d.ts +0 -55
  83. package/types/api/clients/buckets/buckets.d.ts +0 -30
  84. package/types/api/clients/calendars/calendars.d.ts +0 -35
  85. package/types/api/clients/caseCloseReasonGroups/caseCloseReasonGroups.d.ts +0 -30
  86. package/types/api/clients/caseCloseReasons/caseCloseReasons.d.ts +0 -36
  87. package/types/api/clients/casePriorities/casePriorities.d.ts +0 -30
  88. package/types/api/clients/caseServiceCatalogs/serviceCatalogs.d.ts +0 -30
  89. package/types/api/clients/caseServices/services.d.ts +0 -42
  90. package/types/api/clients/caseSources/caseSources.d.ts +0 -1
  91. package/types/api/clients/caseStatusConditions/caseStatusConditions.d.ts +0 -43
  92. package/types/api/clients/caseStatuses/caseStatuses.d.ts +0 -30
  93. package/types/api/clients/catalog/catalog.d.ts +0 -13
  94. package/types/api/clients/chatGateways/chatGateways.d.ts +0 -35
  95. package/types/api/clients/chatGateways/defaults/defaultChatGateway.d.ts +0 -15
  96. package/types/api/clients/chatGateways/defaults/webChatGateway.d.ts +0 -64
  97. package/types/api/clients/chatGateways/enums/WebchatAlternativeChannel.enum.d.ts +0 -8
  98. package/types/api/clients/chatGateways/scripts/generateUri.d.ts +0 -2
  99. package/types/api/clients/communications/communications.d.ts +0 -35
  100. package/types/api/clients/configurations/configurations.d.ts +0 -35
  101. package/types/api/clients/contactGroups/contactGroups.d.ts +0 -47
  102. package/types/api/clients/flows/flow.d.ts +0 -35
  103. package/types/api/clients/gateways/defaults/defaultGateway.d.ts +0 -8
  104. package/types/api/clients/gateways/defaults/registerGateway.d.ts +0 -13
  105. package/types/api/clients/gateways/defaults/trunkingGateway.d.ts +0 -11
  106. package/types/api/clients/gateways/gateways.d.ts +0 -35
  107. package/types/api/clients/labels/labels.d.ts +0 -13
  108. package/types/api/clients/lists/blacklists.d.ts +0 -30
  109. package/types/api/clients/media/media.d.ts +0 -24
  110. package/types/api/clients/object/object.d.ts +0 -13
  111. package/types/api/clients/queues/queues.d.ts +0 -40
  112. package/types/api/clients/quickReplies/quickReplies.d.ts +0 -1
  113. package/types/api/clients/skills/skills.d.ts +0 -30
  114. package/types/api/clients/slaConditions/slaConditions.d.ts +0 -36
  115. package/types/api/clients/slas/slas.d.ts +0 -30
  116. package/types/api/clients/teams/teams.d.ts +0 -30
  117. package/types/api/clients/users/__tests__/users.spec.d.ts +0 -1
  118. package/types/api/clients/users/users.d.ts +0 -46
  119. package/types/api/clients/wtTypes/_shared/utils/sortDynamicFields.d.ts +0 -2
  120. package/types/api/clients/wtTypes/sysTypes/sysTypes.d.ts +0 -29
  121. package/types/api/clients/wtTypes/typeExtensions/typeExtensions.d.ts +0 -33
  122. package/types/api/clients//321/201ontacts/contactChatMessagesHistory.d.ts +0 -16
  123. package/types/api/clients//321/201ontacts/contacts.d.ts +0 -29
  124. package/types/api/clients//321/201ontacts/enums/ContactsSearchMode.d.ts +0 -8
  125. package/types/api/clients//321/201ontacts/index.d.ts +0 -4
@@ -1,1216 +0,0 @@
1
- import { o as e, t } from "./rolldown-runtime-to5KK-CW.js";
2
- import { n, t as r } from "./dist-C_fngTiN.js";
3
- import { n as i, t as a } from "./dist-CugChoYz.js";
4
- import { t as o } from "./_plugin-vue_export-helper-B3ysoDQm.js";
5
- import { t as s } from "./wt-expand-transition-C2p9bR4j.js";
6
- import { _ as c, a as l, c as u, d, f, g as p, h as m, i as h, l as g, m as _, n as v, o as y, p as b, r as x, s as S, t as C, u as w } from "./side-channel-M3LABDql.js";
7
- import { Fragment as T, computed as E, createBlock as D, createCommentVNode as O, createElementBlock as k, createElementVNode as A, createSlots as j, createVNode as M, defineComponent as N, guardReactiveProps as P, normalizeClass as F, normalizeProps as I, onMounted as L, openBlock as R, ref as z, renderList as B, renderSlot as V, resolveComponent as H, toDisplayString as U, unref as W, vShow as ee, watch as te, withCtx as G, withDirectives as ne } from "vue";
8
- //#region node_modules/object-keys/isArguments.js
9
- var re = /* @__PURE__ */ t(((e, t) => {
10
- var n = Object.prototype.toString;
11
- t.exports = function(e) {
12
- var t = n.call(e), r = t === "[object Arguments]";
13
- return r ||= t !== "[object Array]" && typeof e == "object" && !!e && typeof e.length == "number" && e.length >= 0 && n.call(e.callee) === "[object Function]", r;
14
- };
15
- })), ie = /* @__PURE__ */ t(((e, t) => {
16
- var n;
17
- if (!Object.keys) {
18
- var r = Object.prototype.hasOwnProperty, i = Object.prototype.toString, a = re(), o = Object.prototype.propertyIsEnumerable, s = !o.call({ toString: null }, "toString"), c = o.call(function() {}, "prototype"), l = [
19
- "toString",
20
- "toLocaleString",
21
- "valueOf",
22
- "hasOwnProperty",
23
- "isPrototypeOf",
24
- "propertyIsEnumerable",
25
- "constructor"
26
- ], u = function(e) {
27
- var t = e.constructor;
28
- return t && t.prototype === e;
29
- }, d = {
30
- $applicationCache: !0,
31
- $console: !0,
32
- $external: !0,
33
- $frame: !0,
34
- $frameElement: !0,
35
- $frames: !0,
36
- $innerHeight: !0,
37
- $innerWidth: !0,
38
- $onmozfullscreenchange: !0,
39
- $onmozfullscreenerror: !0,
40
- $outerHeight: !0,
41
- $outerWidth: !0,
42
- $pageXOffset: !0,
43
- $pageYOffset: !0,
44
- $parent: !0,
45
- $scrollLeft: !0,
46
- $scrollTop: !0,
47
- $scrollX: !0,
48
- $scrollY: !0,
49
- $self: !0,
50
- $webkitIndexedDB: !0,
51
- $webkitStorageInfo: !0,
52
- $window: !0
53
- }, f = function() {
54
- if (typeof window > "u") return !1;
55
- for (var e in window) try {
56
- if (!d["$" + e] && r.call(window, e) && window[e] !== null && typeof window[e] == "object") try {
57
- u(window[e]);
58
- } catch {
59
- return !0;
60
- }
61
- } catch {
62
- return !0;
63
- }
64
- return !1;
65
- }(), p = function(e) {
66
- if (typeof window > "u" || !f) return u(e);
67
- try {
68
- return u(e);
69
- } catch {
70
- return !1;
71
- }
72
- };
73
- n = function(e) {
74
- var t = typeof e == "object" && !!e, n = i.call(e) === "[object Function]", o = a(e), u = t && i.call(e) === "[object String]", d = [];
75
- if (!t && !n && !o) throw TypeError("Object.keys called on a non-object");
76
- var f = c && n;
77
- if (u && e.length > 0 && !r.call(e, 0)) for (var m = 0; m < e.length; ++m) d.push(String(m));
78
- if (o && e.length > 0) for (var h = 0; h < e.length; ++h) d.push(String(h));
79
- else for (var g in e) !(f && g === "prototype") && r.call(e, g) && d.push(String(g));
80
- if (s) for (var _ = p(e), v = 0; v < l.length; ++v) !(_ && l[v] === "constructor") && r.call(e, l[v]) && d.push(l[v]);
81
- return d;
82
- };
83
- }
84
- t.exports = n;
85
- })), K = /* @__PURE__ */ t(((e, t) => {
86
- var n = Array.prototype.slice, r = re(), i = Object.keys, a = i ? function(e) {
87
- return i(e);
88
- } : ie(), o = Object.keys;
89
- a.shim = function() {
90
- return Object.keys ? function() {
91
- var e = Object.keys(arguments);
92
- return e && e.length === arguments.length;
93
- }(1, 2) || (Object.keys = function(e) {
94
- return r(e) ? o(n.call(e)) : o(e);
95
- }) : Object.keys = a, Object.keys || a;
96
- }, t.exports = a;
97
- })), q = /* @__PURE__ */ t(((e, t) => {
98
- var n = f(), r = _(), i = c(), a = b();
99
- t.exports = function(e, t, o) {
100
- if (!e || typeof e != "object" && typeof e != "function") throw new i("`obj` must be an object or a function`");
101
- if (typeof t != "string" && typeof t != "symbol") throw new i("`property` must be a string or a symbol`");
102
- if (arguments.length > 3 && typeof arguments[3] != "boolean" && arguments[3] !== null) throw new i("`nonEnumerable`, if provided, must be a boolean or null");
103
- if (arguments.length > 4 && typeof arguments[4] != "boolean" && arguments[4] !== null) throw new i("`nonWritable`, if provided, must be a boolean or null");
104
- if (arguments.length > 5 && typeof arguments[5] != "boolean" && arguments[5] !== null) throw new i("`nonConfigurable`, if provided, must be a boolean or null");
105
- if (arguments.length > 6 && typeof arguments[6] != "boolean") throw new i("`loose`, if provided, must be a boolean");
106
- var s = arguments.length > 3 ? arguments[3] : null, c = arguments.length > 4 ? arguments[4] : null, l = arguments.length > 5 ? arguments[5] : null, u = arguments.length > 6 ? arguments[6] : !1, d = !!a && a(e, t);
107
- if (n) n(e, t, {
108
- configurable: l === null && d ? d.configurable : !l,
109
- enumerable: s === null && d ? d.enumerable : !s,
110
- value: o,
111
- writable: c === null && d ? d.writable : !c
112
- });
113
- else if (u || !s && !c && !l) e[t] = o;
114
- else throw new r("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.");
115
- };
116
- })), J = /* @__PURE__ */ t(((e, t) => {
117
- var n = f(), r = function() {
118
- return !!n;
119
- };
120
- r.hasArrayLengthDefineBug = function() {
121
- if (!n) return null;
122
- try {
123
- return n([], "length", { value: 1 }).length !== 1;
124
- } catch {
125
- return !0;
126
- }
127
- }, t.exports = r;
128
- })), Y = /* @__PURE__ */ t(((e, t) => {
129
- var n = K(), r = typeof Symbol == "function" && typeof Symbol("foo") == "symbol", i = Object.prototype.toString, a = Array.prototype.concat, o = q(), s = function(e) {
130
- return typeof e == "function" && i.call(e) === "[object Function]";
131
- }, c = J()(), l = function(e, t, n, r) {
132
- if (t in e) {
133
- if (r === !0) {
134
- if (e[t] === n) return;
135
- } else if (!s(r) || !r()) return;
136
- }
137
- c ? o(e, t, n, !0) : o(e, t, n);
138
- }, u = function(e, t) {
139
- var i = arguments.length > 2 ? arguments[2] : {}, o = n(t);
140
- r && (o = a.call(o, Object.getOwnPropertySymbols(t)));
141
- for (var s = 0; s < o.length; s += 1) l(e, o[s], t[o[s]], i[o[s]]);
142
- };
143
- u.supportsDescriptors = !!c, t.exports = u;
144
- })), ae = /* @__PURE__ */ t(((e, t) => {
145
- var n = x(), r = q(), i = J()(), a = b(), o = c(), s = n("%Math.floor%");
146
- t.exports = function(e, t) {
147
- if (typeof e != "function") throw new o("`fn` is not a function");
148
- if (typeof t != "number" || t < 0 || t > 4294967295 || s(t) !== t) throw new o("`length` must be a positive 32-bit integer");
149
- var n = arguments.length > 2 && !!arguments[2], c = !0, l = !0;
150
- if ("length" in e && a) {
151
- var u = a(e, "length");
152
- u && !u.configurable && (c = !1), u && !u.writable && (l = !1);
153
- }
154
- return (c || l || !n) && (i ? r(e, "length", t, !0, !0) : r(e, "length", t)), e;
155
- };
156
- })), oe = /* @__PURE__ */ t(((e, t) => {
157
- var n = g(), r = u(), i = S();
158
- t.exports = function() {
159
- return i(n, r, arguments);
160
- };
161
- })), X = /* @__PURE__ */ t(((e, t) => {
162
- var n = ae(), r = f(), i = y(), a = oe();
163
- t.exports = function(e) {
164
- var t = i(arguments), r = 1 + e.length - (arguments.length - 1);
165
- return n(t, r > 0 ? r : 0, !0);
166
- }, r ? r(t.exports, "apply", { value: a }) : t.exports.apply = a;
167
- })), se = /* @__PURE__ */ t(((e, t) => {
168
- var n = K(), r = d()(), i = v(), a = p(), o = i("Array.prototype.push"), s = i("Object.prototype.propertyIsEnumerable"), c = r ? a.getOwnPropertySymbols : null;
169
- t.exports = function(e, t) {
170
- if (e == null) throw TypeError("target must be an object");
171
- var i = a(e);
172
- if (arguments.length === 1) return i;
173
- for (var l = 1; l < arguments.length; ++l) {
174
- var u = a(arguments[l]), d = n(u), f = r && (a.getOwnPropertySymbols || c);
175
- if (f) for (var p = f(u), m = 0; m < p.length; ++m) {
176
- var h = p[m];
177
- s(u, h) && o(d, h);
178
- }
179
- for (var g = 0; g < d.length; ++g) {
180
- var _ = d[g];
181
- s(u, _) && (i[_] = u[_]);
182
- }
183
- }
184
- return i;
185
- };
186
- })), ce = /* @__PURE__ */ t(((e, t) => {
187
- var n = se(), r = function() {
188
- if (!Object.assign) return !1;
189
- for (var e = "abcdefghijklmnopqrst", t = e.split(""), n = {}, r = 0; r < t.length; ++r) n[t[r]] = t[r];
190
- var i = Object.assign({}, n), a = "";
191
- for (var o in i) a += o;
192
- return e !== a;
193
- }, i = function() {
194
- if (!Object.assign || !Object.preventExtensions) return !1;
195
- var e = Object.preventExtensions({ 1: 2 });
196
- try {
197
- Object.assign(e, "xy");
198
- } catch {
199
- return e[1] === "y";
200
- }
201
- return !1;
202
- };
203
- t.exports = function() {
204
- return !Object.assign || r() || i() ? n : Object.assign;
205
- };
206
- })), le = /* @__PURE__ */ t(((e, t) => {
207
- var n = Y(), r = ce();
208
- t.exports = function() {
209
- var e = r();
210
- return n(Object, { assign: e }, { assign: function() {
211
- return Object.assign !== e;
212
- } }), e;
213
- };
214
- })), ue = /* @__PURE__ */ t(((e, t) => {
215
- var n = Y(), r = X(), i = se(), a = ce(), o = le(), s = r.apply(a()), c = function(e, t) {
216
- return s(Object, arguments);
217
- };
218
- n(c, {
219
- getPolyfill: a,
220
- implementation: i,
221
- shim: o
222
- }), t.exports = c;
223
- })), de = /* @__PURE__ */ t(((e, t) => {
224
- var n = x(), r = X(), i = r(n("String.prototype.indexOf"));
225
- t.exports = function(e, t) {
226
- var a = n(e, !!t);
227
- return typeof a == "function" && i(e, ".prototype.") > -1 ? r(a) : a;
228
- };
229
- })), fe = /* @__PURE__ */ t(((e, t) => {
230
- var n = function() {
231
- return typeof function() {}.name == "string";
232
- }, r = Object.getOwnPropertyDescriptor;
233
- if (r) try {
234
- r([], "length");
235
- } catch {
236
- r = null;
237
- }
238
- n.functionsHaveConfigurableNames = function() {
239
- if (!n() || !r) return !1;
240
- var e = r(function() {}, "name");
241
- return !!e && !!e.configurable;
242
- };
243
- var i = Function.prototype.bind;
244
- n.boundFunctionsHaveNames = function() {
245
- return n() && typeof i == "function" && function() {}.bind().name !== "";
246
- }, t.exports = n;
247
- })), pe = /* @__PURE__ */ t(((e, t) => {
248
- var n = q(), r = J()(), i = fe().functionsHaveConfigurableNames(), a = c();
249
- t.exports = function(e, t) {
250
- if (typeof e != "function") throw new a("`fn` is not a function");
251
- return (!(arguments.length > 2 && arguments[2]) || i) && (r ? n(e, "name", t, !0, !0) : n(e, "name", t)), e;
252
- };
253
- })), me = /* @__PURE__ */ t(((e, t) => {
254
- var n = pe(), r = c(), i = Object;
255
- t.exports = n(function() {
256
- if (this == null || this !== i(this)) throw new r("RegExp.prototype.flags getter called on non-object");
257
- var e = "";
258
- return this.hasIndices && (e += "d"), this.global && (e += "g"), this.ignoreCase && (e += "i"), this.multiline && (e += "m"), this.dotAll && (e += "s"), this.unicode && (e += "u"), this.unicodeSets && (e += "v"), this.sticky && (e += "y"), e;
259
- }, "get flags", !0);
260
- })), he = /* @__PURE__ */ t(((e, t) => {
261
- var n = me(), r = Y().supportsDescriptors, i = Object.getOwnPropertyDescriptor;
262
- t.exports = function() {
263
- if (r && /a/gim.flags === "gim") {
264
- var e = i(RegExp.prototype, "flags");
265
- if (e && typeof e.get == "function" && "dotAll" in RegExp.prototype && "hasIndices" in RegExp.prototype) {
266
- var t = "", a = {};
267
- if (Object.defineProperty(a, "hasIndices", { get: function() {
268
- t += "d";
269
- } }), Object.defineProperty(a, "sticky", { get: function() {
270
- t += "y";
271
- } }), e.get.call(a), t === "dy") return e.get;
272
- }
273
- }
274
- return n;
275
- };
276
- })), ge = /* @__PURE__ */ t(((e, t) => {
277
- var n = Y().supportsDescriptors, r = he(), i = b(), a = Object.defineProperty, o = m(), s = l(), c = /a/;
278
- t.exports = function() {
279
- if (!n || !s) throw new o("RegExp.prototype.flags requires a true ES5 environment that supports property descriptors");
280
- var e = r(), t = s(c), l = i(t, "flags");
281
- return (!l || l.get !== e) && a(t, "flags", {
282
- configurable: !0,
283
- enumerable: !1,
284
- get: e
285
- }), e;
286
- };
287
- })), _e = /* @__PURE__ */ t(((e, t) => {
288
- var n = Y(), r = X(), i = me(), a = he(), o = ge(), s = r(a());
289
- n(s, {
290
- getPolyfill: a,
291
- implementation: i,
292
- shim: o
293
- }), t.exports = s;
294
- })), Z = /* @__PURE__ */ t(((e, t) => {
295
- var n = d();
296
- t.exports = function() {
297
- return n() && !!Symbol.toStringTag;
298
- };
299
- })), ve = /* @__PURE__ */ t(((e, t) => {
300
- var n = Z()(), r = v()("Object.prototype.toString"), i = function(e) {
301
- return n && e && typeof e == "object" && Symbol.toStringTag in e ? !1 : r(e) === "[object Arguments]";
302
- }, a = function(e) {
303
- return i(e) ? !0 : typeof e == "object" && !!e && "length" in e && typeof e.length == "number" && e.length >= 0 && r(e) !== "[object Array]" && "callee" in e && r(e.callee) === "[object Function]";
304
- }, o = function() {
305
- return i(arguments);
306
- }();
307
- i.isLegacyArguments = a, t.exports = o ? i : a;
308
- })), ye = /* @__PURE__ */ t(((e, t) => {
309
- var n = h(), r = C()(), i = c(), a = {
310
- assert: function(e, t) {
311
- if (!e || typeof e != "object" && typeof e != "function") throw new i("`O` is not an object");
312
- if (typeof t != "string") throw new i("`slot` must be a string");
313
- if (r.assert(e), !a.has(e, t)) throw new i("`" + t + "` is not present on `O`");
314
- },
315
- get: function(e, t) {
316
- if (!e || typeof e != "object" && typeof e != "function") throw new i("`O` is not an object");
317
- if (typeof t != "string") throw new i("`slot` must be a string");
318
- var n = r.get(e);
319
- return n && n["$" + t];
320
- },
321
- has: function(e, t) {
322
- if (!e || typeof e != "object" && typeof e != "function") throw new i("`O` is not an object");
323
- if (typeof t != "string") throw new i("`slot` must be a string");
324
- var a = r.get(e);
325
- return !!a && n(a, "$" + t);
326
- },
327
- set: function(e, t, n) {
328
- if (!e || typeof e != "object" && typeof e != "function") throw new i("`O` is not an object");
329
- if (typeof t != "string") throw new i("`slot` must be a string");
330
- var a = r.get(e);
331
- a || (a = {}, r.set(e, a)), a["$" + t] = n;
332
- }
333
- };
334
- Object.freeze && Object.freeze(a), t.exports = a;
335
- })), be = /* @__PURE__ */ t(((e, t) => {
336
- var n = ye(), r = _(), i = typeof StopIteration == "object" ? StopIteration : null;
337
- t.exports = function(e) {
338
- if (!i) throw new r("this environment lacks StopIteration");
339
- n.set(e, "[[Done]]", !1);
340
- var t = { next: function() {
341
- var e = n.get(this, "[[Iterator]]"), t = !!n.get(e, "[[Done]]");
342
- try {
343
- return {
344
- done: t,
345
- value: t ? void 0 : e.next()
346
- };
347
- } catch (t) {
348
- if (n.set(e, "[[Done]]", !0), t !== i) throw t;
349
- return {
350
- done: !0,
351
- value: void 0
352
- };
353
- }
354
- } };
355
- return n.set(t, "[[Iterator]]", e), t;
356
- };
357
- })), xe = /* @__PURE__ */ t(((e, t) => {
358
- var n = {}.toString;
359
- t.exports = Array.isArray || function(e) {
360
- return n.call(e) == "[object Array]";
361
- };
362
- })), Se = /* @__PURE__ */ t(((e, t) => {
363
- var n = v(), r = n("String.prototype.valueOf"), i = function(e) {
364
- try {
365
- return r(e), !0;
366
- } catch {
367
- return !1;
368
- }
369
- }, a = n("Object.prototype.toString"), o = "[object String]", s = Z()();
370
- t.exports = function(e) {
371
- return typeof e == "string" ? !0 : !e || typeof e != "object" ? !1 : s ? i(e) : a(e) === o;
372
- };
373
- })), Ce = /* @__PURE__ */ t(((e, t) => {
374
- var n = typeof Map == "function" && Map.prototype ? Map : null, r = typeof Set == "function" && Set.prototype ? Set : null, i;
375
- n || (i = function(e) {
376
- return !1;
377
- });
378
- var a = n ? Map.prototype.has : null, o = r ? Set.prototype.has : null;
379
- !i && !a && (i = function(e) {
380
- return !1;
381
- }), t.exports = i || function(e) {
382
- if (!e || typeof e != "object") return !1;
383
- try {
384
- if (a.call(e), o) try {
385
- o.call(e);
386
- } catch {
387
- return !0;
388
- }
389
- return e instanceof n;
390
- } catch {}
391
- return !1;
392
- };
393
- })), we = /* @__PURE__ */ t(((e, t) => {
394
- var n = typeof Map == "function" && Map.prototype ? Map : null, r = typeof Set == "function" && Set.prototype ? Set : null, i;
395
- r || (i = function(e) {
396
- return !1;
397
- });
398
- var a = n ? Map.prototype.has : null, o = r ? Set.prototype.has : null;
399
- !i && !o && (i = function(e) {
400
- return !1;
401
- }), t.exports = i || function(e) {
402
- if (!e || typeof e != "object") return !1;
403
- try {
404
- if (o.call(e), a) try {
405
- a.call(e);
406
- } catch {
407
- return !0;
408
- }
409
- return e instanceof r;
410
- } catch {}
411
- return !1;
412
- };
413
- })), Te = /* @__PURE__ */ t(((e, t) => {
414
- a();
415
- var n = ve(), r = be();
416
- if (w()() || d()()) {
417
- var o = Symbol.iterator;
418
- t.exports = function(e) {
419
- if (e != null && e[o] !== void 0) return e[o]();
420
- if (n(e)) return Array.prototype[o].call(e);
421
- };
422
- } else {
423
- var s = xe(), c = Se(), l = x(), u = l("%Map%", !0), f = l("%Set%", !0), p = de(), m = p("Array.prototype.push"), h = p("String.prototype.charCodeAt"), g = p("String.prototype.slice"), _ = function(e, t) {
424
- var n = e.length;
425
- if (t + 1 >= n) return t + 1;
426
- var r = h(e, t);
427
- if (r < 55296 || r > 56319) return t + 1;
428
- var i = h(e, t + 1);
429
- return i < 56320 || i > 57343 ? t + 1 : t + 2;
430
- }, v = function(e) {
431
- var t = 0;
432
- return { next: function() {
433
- var n = t >= e.length, r;
434
- return n || (r = e[t], t += 1), {
435
- done: n,
436
- value: r
437
- };
438
- } };
439
- }, y = function(e, t) {
440
- if (s(e) || n(e)) return v(e);
441
- if (c(e)) {
442
- var r = 0;
443
- return { next: function() {
444
- var t = _(e, r), n = g(e, r, t);
445
- return r = t, {
446
- done: t > e.length,
447
- value: n
448
- };
449
- } };
450
- }
451
- if (t && e["_es6-shim iterator_"] !== void 0) return e["_es6-shim iterator_"]();
452
- };
453
- if (!u && !f) t.exports = function(e) {
454
- if (e != null) return y(e, !0);
455
- };
456
- else {
457
- var b = Ce(), S = we(), C = p("Map.prototype.forEach", !0), T = p("Set.prototype.forEach", !0);
458
- if (i === void 0 || !i.versions || !i.versions.node) var E = p("Map.prototype.iterator", !0), D = p("Set.prototype.iterator", !0);
459
- var O = p("Map.prototype.@@iterator", !0) || p("Map.prototype._es6-shim iterator_", !0), k = p("Set.prototype.@@iterator", !0) || p("Set.prototype._es6-shim iterator_", !0), A = function(e) {
460
- if (b(e)) {
461
- if (E) return r(E(e));
462
- if (O) return O(e);
463
- if (C) {
464
- var t = [];
465
- return C(e, function(e, n) {
466
- m(t, [n, e]);
467
- }), v(t);
468
- }
469
- }
470
- if (S(e)) {
471
- if (D) return r(D(e));
472
- if (k) return k(e);
473
- if (T) {
474
- var n = [];
475
- return T(e, function(e) {
476
- m(n, e);
477
- }), v(n);
478
- }
479
- }
480
- };
481
- t.exports = function(e) {
482
- return A(e) || y(e);
483
- };
484
- }
485
- }
486
- })), Ee = /* @__PURE__ */ t(((e, t) => {
487
- var n = function(e) {
488
- return e !== e;
489
- };
490
- t.exports = function(e, t) {
491
- return e === 0 && t === 0 ? 1 / e == 1 / t : !!(e === t || n(e) && n(t));
492
- };
493
- })), De = /* @__PURE__ */ t(((e, t) => {
494
- var n = Ee();
495
- t.exports = function() {
496
- return typeof Object.is == "function" ? Object.is : n;
497
- };
498
- })), Oe = /* @__PURE__ */ t(((e, t) => {
499
- var n = De(), r = Y();
500
- t.exports = function() {
501
- var e = n();
502
- return r(Object, { is: e }, { is: function() {
503
- return Object.is !== e;
504
- } }), e;
505
- };
506
- })), ke = /* @__PURE__ */ t(((e, t) => {
507
- var n = Y(), r = X(), i = Ee(), a = De(), o = Oe(), s = r(a(), Object);
508
- n(s, {
509
- getPolyfill: a,
510
- implementation: i,
511
- shim: o
512
- }), t.exports = s;
513
- })), Ae = /* @__PURE__ */ t(((e, t) => {
514
- var n = X(), r = v(), i = x()("%ArrayBuffer%", !0), a = r("ArrayBuffer.prototype.byteLength", !0), o = r("Object.prototype.toString"), s = !!i && !a && new i(0).slice, c = !!s && n(s);
515
- t.exports = a || c ? function(e) {
516
- if (!e || typeof e != "object") return !1;
517
- try {
518
- return a ? a(e) : c(e, 0), !0;
519
- } catch {
520
- return !1;
521
- }
522
- } : i ? function(e) {
523
- return o(e) === "[object ArrayBuffer]";
524
- } : function(e) {
525
- return !1;
526
- };
527
- })), je = /* @__PURE__ */ t(((e, t) => {
528
- var n = v(), r = n("Date.prototype.getDay"), i = function(e) {
529
- try {
530
- return r(e), !0;
531
- } catch {
532
- return !1;
533
- }
534
- }, a = n("Object.prototype.toString"), o = "[object Date]", s = Z()();
535
- t.exports = function(e) {
536
- return typeof e != "object" || !e ? !1 : s ? i(e) : a(e) === o;
537
- };
538
- })), Me = /* @__PURE__ */ t(((e, t) => {
539
- var n = v(), r = Z()(), i = h(), a = b(), o;
540
- if (r) {
541
- var s = n("RegExp.prototype.exec"), c = {}, l = function() {
542
- throw c;
543
- }, u = {
544
- toString: l,
545
- valueOf: l
546
- };
547
- typeof Symbol.toPrimitive == "symbol" && (u[Symbol.toPrimitive] = l), o = function(e) {
548
- if (!e || typeof e != "object") return !1;
549
- var t = a(e, "lastIndex");
550
- if (!(t && i(t, "value"))) return !1;
551
- try {
552
- s(e, u);
553
- } catch (e) {
554
- return e === c;
555
- }
556
- };
557
- } else {
558
- var d = n("Object.prototype.toString"), f = "[object RegExp]";
559
- o = function(e) {
560
- return !e || typeof e != "object" && typeof e != "function" ? !1 : d(e) === f;
561
- };
562
- }
563
- t.exports = o;
564
- })), Ne = /* @__PURE__ */ t(((e, t) => {
565
- var n = v()("SharedArrayBuffer.prototype.byteLength", !0);
566
- t.exports = n ? function(e) {
567
- if (!e || typeof e != "object") return !1;
568
- try {
569
- return n(e), !0;
570
- } catch {
571
- return !1;
572
- }
573
- } : function(e) {
574
- return !1;
575
- };
576
- })), Pe = /* @__PURE__ */ t(((e, t) => {
577
- var n = v(), r = n("Number.prototype.toString"), i = function(e) {
578
- try {
579
- return r(e), !0;
580
- } catch {
581
- return !1;
582
- }
583
- }, a = n("Object.prototype.toString"), o = "[object Number]", s = Z()();
584
- t.exports = function(e) {
585
- return typeof e == "number" ? !0 : !e || typeof e != "object" ? !1 : s ? i(e) : a(e) === o;
586
- };
587
- })), Fe = /* @__PURE__ */ t(((e, t) => {
588
- var n = v(), r = n("Boolean.prototype.toString"), i = n("Object.prototype.toString"), a = function(e) {
589
- try {
590
- return r(e), !0;
591
- } catch {
592
- return !1;
593
- }
594
- }, o = "[object Boolean]", s = Z()();
595
- t.exports = function(e) {
596
- return typeof e == "boolean" ? !0 : typeof e != "object" || !e ? !1 : s ? a(e) : i(e) === o;
597
- };
598
- })), Ie = /* @__PURE__ */ t(((e, t) => {
599
- var n = v(), r = Me(), i = n("RegExp.prototype.exec"), a = c();
600
- t.exports = function(e) {
601
- if (!r(e)) throw new a("`regex` must be a RegExp");
602
- return function(t) {
603
- return i(e, t) !== null;
604
- };
605
- };
606
- })), Le = /* @__PURE__ */ t(((e, t) => {
607
- var n = v(), r = n("Object.prototype.toString"), i = w()(), a = Ie();
608
- if (i) {
609
- var o = n("Symbol.prototype.toString"), s = a(/^Symbol\(.*\)$/), c = function(e) {
610
- return typeof e.valueOf() == "symbol" ? s(o(e)) : !1;
611
- };
612
- t.exports = function(e) {
613
- if (typeof e == "symbol") return !0;
614
- if (!e || typeof e != "object" || r(e) !== "[object Symbol]") return !1;
615
- try {
616
- return c(e);
617
- } catch {
618
- return !1;
619
- }
620
- };
621
- } else t.exports = function(e) {
622
- return !1;
623
- };
624
- })), Re = /* @__PURE__ */ t(((e, t) => {
625
- var n = typeof BigInt < "u" && BigInt;
626
- t.exports = function() {
627
- return typeof n == "function" && typeof BigInt == "function" && typeof n(42) == "bigint" && typeof BigInt(42) == "bigint";
628
- };
629
- })), ze = /* @__PURE__ */ t(((e, t) => {
630
- if (Re()()) {
631
- var n = BigInt.prototype.valueOf, r = function(e) {
632
- try {
633
- return n.call(e), !0;
634
- } catch {}
635
- return !1;
636
- };
637
- t.exports = function(e) {
638
- return e == null || typeof e == "boolean" || typeof e == "string" || typeof e == "number" || typeof e == "symbol" || typeof e == "function" ? !1 : typeof e == "bigint" ? !0 : r(e);
639
- };
640
- } else t.exports = function(e) {
641
- return !1;
642
- };
643
- })), Be = /* @__PURE__ */ t(((e, t) => {
644
- var n = Se(), r = Pe(), i = Fe(), a = Le(), o = ze();
645
- t.exports = function(e) {
646
- if (e == null || typeof e != "object" && typeof e != "function") return null;
647
- if (n(e)) return "String";
648
- if (r(e)) return "Number";
649
- if (i(e)) return "Boolean";
650
- if (a(e)) return "Symbol";
651
- if (o(e)) return "BigInt";
652
- };
653
- })), Ve = /* @__PURE__ */ t(((e, t) => {
654
- var n = typeof WeakMap == "function" && WeakMap.prototype ? WeakMap : null, r = typeof WeakSet == "function" && WeakSet.prototype ? WeakSet : null, i;
655
- n || (i = function(e) {
656
- return !1;
657
- });
658
- var a = n ? n.prototype.has : null, o = r ? r.prototype.has : null;
659
- !i && !a && (i = function(e) {
660
- return !1;
661
- }), t.exports = i || function(e) {
662
- if (!e || typeof e != "object") return !1;
663
- try {
664
- if (a.call(e, a), o) try {
665
- o.call(e, o);
666
- } catch {
667
- return !0;
668
- }
669
- return e instanceof n;
670
- } catch {}
671
- return !1;
672
- };
673
- })), He = /* @__PURE__ */ t(((e, t) => {
674
- var n = x(), r = v(), i = n("%WeakSet%", !0), a = r("WeakSet.prototype.has", !0);
675
- if (a) {
676
- var o = r("WeakMap.prototype.has", !0);
677
- t.exports = function(e) {
678
- if (!e || typeof e != "object") return !1;
679
- try {
680
- if (a(e, a), o) try {
681
- o(e, o);
682
- } catch {
683
- return !0;
684
- }
685
- return e instanceof i;
686
- } catch {}
687
- return !1;
688
- };
689
- } else t.exports = function(e) {
690
- return !1;
691
- };
692
- })), Ue = /* @__PURE__ */ t(((e, t) => {
693
- var n = Ce(), r = we(), i = Ve(), a = He();
694
- t.exports = function(e) {
695
- if (e && typeof e == "object") {
696
- if (n(e)) return "Map";
697
- if (r(e)) return "Set";
698
- if (i(e)) return "WeakMap";
699
- if (a(e)) return "WeakSet";
700
- }
701
- return !1;
702
- };
703
- })), We = /* @__PURE__ */ t(((e, t) => {
704
- var n = Function.prototype.toString, r = typeof Reflect == "object" && Reflect !== null && Reflect.apply, i, a;
705
- if (typeof r == "function" && typeof Object.defineProperty == "function") try {
706
- i = Object.defineProperty({}, "length", { get: function() {
707
- throw a;
708
- } }), a = {}, r(function() {
709
- throw 42;
710
- }, null, i);
711
- } catch (e) {
712
- e !== a && (r = null);
713
- }
714
- else r = null;
715
- var o = /^\s*class\b/, s = function(e) {
716
- try {
717
- var t = n.call(e);
718
- return o.test(t);
719
- } catch {
720
- return !1;
721
- }
722
- }, c = function(e) {
723
- try {
724
- return s(e) ? !1 : (n.call(e), !0);
725
- } catch {
726
- return !1;
727
- }
728
- }, l = Object.prototype.toString, u = "[object Object]", d = "[object Function]", f = "[object GeneratorFunction]", p = "[object HTMLAllCollection]", m = "[object HTML document.all class]", h = "[object HTMLCollection]", g = typeof Symbol == "function" && !!Symbol.toStringTag, _ = !(0 in [,]), v = function() {
729
- return !1;
730
- };
731
- if (typeof document == "object") {
732
- var y = document.all;
733
- l.call(y) === l.call(document.all) && (v = function(e) {
734
- if ((_ || !e) && (e === void 0 || typeof e == "object")) try {
735
- var t = l.call(e);
736
- return (t === p || t === m || t === h || t === u) && e("") == null;
737
- } catch {}
738
- return !1;
739
- });
740
- }
741
- t.exports = r ? function(e) {
742
- if (v(e)) return !0;
743
- if (!e || typeof e != "function" && typeof e != "object") return !1;
744
- try {
745
- r(e, null, i);
746
- } catch (e) {
747
- if (e !== a) return !1;
748
- }
749
- return !s(e) && c(e);
750
- } : function(e) {
751
- if (v(e)) return !0;
752
- if (!e || typeof e != "function" && typeof e != "object") return !1;
753
- if (g) return c(e);
754
- if (s(e)) return !1;
755
- var t = l.call(e);
756
- return t !== d && t !== f && !/^\[object HTML/.test(t) ? !1 : c(e);
757
- };
758
- })), Ge = /* @__PURE__ */ t(((e, t) => {
759
- var n = We(), r = Object.prototype.toString, i = Object.prototype.hasOwnProperty, a = function(e, t, n) {
760
- for (var r = 0, a = e.length; r < a; r++) i.call(e, r) && (n == null ? t(e[r], r, e) : t.call(n, e[r], r, e));
761
- }, o = function(e, t, n) {
762
- for (var r = 0, i = e.length; r < i; r++) n == null ? t(e.charAt(r), r, e) : t.call(n, e.charAt(r), r, e);
763
- }, s = function(e, t, n) {
764
- for (var r in e) i.call(e, r) && (n == null ? t(e[r], r, e) : t.call(n, e[r], r, e));
765
- };
766
- function c(e) {
767
- return r.call(e) === "[object Array]";
768
- }
769
- t.exports = function(e, t, r) {
770
- if (!n(t)) throw TypeError("iterator must be a function");
771
- var i;
772
- arguments.length >= 3 && (i = r), c(e) ? a(e, t, i) : typeof e == "string" ? o(e, t, i) : s(e, t, i);
773
- };
774
- })), Ke = /* @__PURE__ */ t(((e, t) => {
775
- t.exports = [
776
- "Float16Array",
777
- "Float32Array",
778
- "Float64Array",
779
- "Int8Array",
780
- "Int16Array",
781
- "Int32Array",
782
- "Uint8Array",
783
- "Uint8ClampedArray",
784
- "Uint16Array",
785
- "Uint32Array",
786
- "BigInt64Array",
787
- "BigUint64Array"
788
- ];
789
- })), qe = /* @__PURE__ */ t(((e, t) => {
790
- n();
791
- var i = Ke(), a = typeof globalThis > "u" ? r : globalThis;
792
- t.exports = function() {
793
- for (var e = [], t = 0; t < i.length; t++) typeof a[i[t]] == "function" && (e[e.length] = i[t]);
794
- return e;
795
- };
796
- })), Je = /* @__PURE__ */ t(((e, t) => {
797
- n();
798
- var i = Ge(), a = qe(), o = X(), s = v(), c = b(), u = l(), d = s("Object.prototype.toString"), f = Z()(), p = typeof globalThis > "u" ? r : globalThis, m = a(), h = s("String.prototype.slice"), g = s("Array.prototype.indexOf", !0) || function(e, t) {
799
- for (var n = 0; n < e.length; n += 1) if (e[n] === t) return n;
800
- return -1;
801
- }, _ = { __proto__: null };
802
- f && c && u ? i(m, function(e) {
803
- var t = new p[e]();
804
- if (Symbol.toStringTag in t && u) {
805
- var n = u(t), r = c(n, Symbol.toStringTag);
806
- if (!r && n && (r = c(u(n), Symbol.toStringTag)), r && r.get) {
807
- var i = o(r.get);
808
- _["$" + e] = i;
809
- }
810
- }
811
- }) : i(m, function(e) {
812
- var t = new p[e](), n = t.slice || t.set;
813
- if (n) {
814
- var r = o(n);
815
- _["$" + e] = r;
816
- }
817
- });
818
- function y(e) {
819
- var t = !1;
820
- return i(_, function(n, r) {
821
- if (!t) try {
822
- "$" + n(e) === r && (t = h(r, 1));
823
- } catch {}
824
- }), t;
825
- }
826
- function x(e) {
827
- var t = !1;
828
- return i(_, function(n, r) {
829
- if (!t) try {
830
- n(e), t = h(r, 1);
831
- } catch {}
832
- }), t;
833
- }
834
- function S(e) {
835
- return g(m, e) > -1;
836
- }
837
- t.exports = function(e) {
838
- if (!e || typeof e != "object") return !1;
839
- if (!f) {
840
- var t = h(d(e), 8, -1);
841
- return S(t) ? t : t === "Object" ? x(e) : !1;
842
- }
843
- return c ? y(e) : null;
844
- };
845
- })), Ye = /* @__PURE__ */ t(((e, t) => {
846
- var n = v()("ArrayBuffer.prototype.byteLength", !0), r = Ae();
847
- t.exports = function(e) {
848
- return r(e) ? n ? n(e) : e.byteLength : NaN;
849
- };
850
- })), Q = /* @__PURE__ */ e((/* @__PURE__ */ t(((e, t) => {
851
- var n = ue(), r = de(), i = _e(), a = x(), o = Te(), s = C(), c = ke(), l = ve(), u = xe(), d = Ae(), f = je(), p = Me(), m = Ne(), h = K(), g = Be(), _ = Ue(), v = Je(), y = Ye(), b = r("SharedArrayBuffer.prototype.byteLength", !0), S = r("Date.prototype.getTime"), w = Object.getPrototypeOf, T = r("Object.prototype.toString"), E = a("%Set%", !0), D = r("Map.prototype.has", !0), O = r("Map.prototype.get", !0), k = r("Map.prototype.size", !0), A = r("Set.prototype.add", !0), j = r("Set.prototype.delete", !0), M = r("Set.prototype.has", !0), N = r("Set.prototype.size", !0);
852
- function P(e, t, n, r) {
853
- for (var i = o(e), a; (a = i.next()) && !a.done;) if (z(t, a.value, n, r)) return j(e, a.value), !0;
854
- return !1;
855
- }
856
- function F(e) {
857
- if (e === void 0) return null;
858
- if (typeof e != "object") return typeof e == "symbol" ? !1 : typeof e == "string" || typeof e == "number" ? +e == +e : !0;
859
- }
860
- function I(e, t, r, i, a, o) {
861
- var s = F(r);
862
- if (s != null) return s;
863
- var c = O(t, s), l = n({}, a, { strict: !1 });
864
- return c === void 0 && !D(t, s) || !z(i, c, l, o) ? !1 : !D(e, s) && z(i, c, l, o);
865
- }
866
- function L(e, t, n) {
867
- var r = F(n);
868
- return r ?? (M(t, r) && !M(e, r));
869
- }
870
- function R(e, t, n, r, i, a) {
871
- for (var s = o(e), c, l; (c = s.next()) && !c.done;) if (l = c.value, z(n, l, i, a) && z(r, O(t, l), i, a)) return j(e, l), !0;
872
- return !1;
873
- }
874
- function z(e, t, n, r) {
875
- var i = n || {};
876
- if (i.strict ? c(e, t) : e === t) return !0;
877
- if (g(e) !== g(t)) return !1;
878
- if (!e || !t || typeof e != "object" && typeof t != "object") return i.strict ? c(e, t) : e == t;
879
- var a = r.has(e), o = r.has(t), s;
880
- if (a && o) {
881
- if (r.get(e) === r.get(t)) return !0;
882
- } else s = {};
883
- return a || r.set(e, s), o || r.set(t, s), U(e, t, i, r);
884
- }
885
- function B(e) {
886
- return !e || typeof e != "object" || typeof e.length != "number" || typeof e.copy != "function" || typeof e.slice != "function" || e.length > 0 && typeof e[0] != "number" ? !1 : !!(e.constructor && e.constructor.isBuffer && e.constructor.isBuffer(e));
887
- }
888
- function V(e, t, n, r) {
889
- if (N(e) !== N(t)) return !1;
890
- for (var i = o(e), a = o(t), s, c, l; (s = i.next()) && !s.done;) if (s.value && typeof s.value == "object") l ||= new E(), A(l, s.value);
891
- else if (!M(t, s.value)) {
892
- if (n.strict || !L(e, t, s.value)) return !1;
893
- l ||= new E(), A(l, s.value);
894
- }
895
- if (l) {
896
- for (; (c = a.next()) && !c.done;) if (c.value && typeof c.value == "object") {
897
- if (!P(l, c.value, n.strict, r)) return !1;
898
- } else if (!n.strict && !M(e, c.value) && !P(l, c.value, n.strict, r)) return !1;
899
- return N(l) === 0;
900
- }
901
- return !0;
902
- }
903
- function H(e, t, r, i) {
904
- if (k(e) !== k(t)) return !1;
905
- for (var a = o(e), s = o(t), c, l, u, d, f, p; (c = a.next()) && !c.done;) if (d = c.value[0], f = c.value[1], d && typeof d == "object") u ||= new E(), A(u, d);
906
- else if (p = O(t, d), p === void 0 && !D(t, d) || !z(f, p, r, i)) {
907
- if (r.strict || !I(e, t, d, f, r, i)) return !1;
908
- u ||= new E(), A(u, d);
909
- }
910
- if (u) {
911
- for (; (l = s.next()) && !l.done;) if (d = l.value[0], p = l.value[1], d && typeof d == "object") {
912
- if (!R(u, e, d, p, r, i)) return !1;
913
- } else if (!r.strict && (!e.has(d) || !z(O(e, d), p, r, i)) && !R(u, e, d, p, n({}, r, { strict: !1 }), i)) return !1;
914
- return N(u) === 0;
915
- }
916
- return !0;
917
- }
918
- function U(e, t, n, r) {
919
- var a, o;
920
- if (typeof e != typeof t || e == null || t == null || T(e) !== T(t) || l(e) !== l(t) || u(e) !== u(t)) return !1;
921
- var s = e instanceof Error, c = t instanceof Error;
922
- if (s !== c || (s || c) && (e.name !== t.name || e.message !== t.message)) return !1;
923
- var g = p(e), x = p(t);
924
- if (g !== x || (g || x) && (e.source !== t.source || i(e) !== i(t))) return !1;
925
- var C = f(e), E = f(t);
926
- if (C !== E || (C || E) && S(e) !== S(t) || n.strict && w && w(e) !== w(t)) return !1;
927
- var D = v(e), O = v(t);
928
- if (D !== O) return !1;
929
- if (D || O) {
930
- if (e.length !== t.length) return !1;
931
- for (a = 0; a < e.length; a++) if (e[a] !== t[a]) return !1;
932
- return !0;
933
- }
934
- var k = B(e), A = B(t);
935
- if (k !== A) return !1;
936
- if (k || A) {
937
- if (e.length !== t.length) return !1;
938
- for (a = 0; a < e.length; a++) if (e[a] !== t[a]) return !1;
939
- return !0;
940
- }
941
- var j = d(e), M = d(t);
942
- if (j !== M) return !1;
943
- if (j || M) return y(e) === y(t) ? typeof Uint8Array == "function" && z(new Uint8Array(e), new Uint8Array(t), n, r) : !1;
944
- var N = m(e), P = m(t);
945
- if (N !== P) return !1;
946
- if (N || P) return b(e) === b(t) ? typeof Uint8Array == "function" && z(new Uint8Array(e), new Uint8Array(t), n, r) : !1;
947
- if (typeof e != typeof t) return !1;
948
- var F = h(e), I = h(t);
949
- if (F.length !== I.length) return !1;
950
- for (F.sort(), I.sort(), a = F.length - 1; a >= 0; a--) if (F[a] != I[a]) return !1;
951
- for (a = F.length - 1; a >= 0; a--) if (o = F[a], !z(e[o], t[o], n, r)) return !1;
952
- var L = _(e), R = _(t);
953
- return L === R ? L === "Set" || R === "Set" ? V(e, t, n, r) : L === "Map" ? H(e, t, n, r) : !0 : !1;
954
- }
955
- t.exports = function(e, t, n) {
956
- return z(e, t, n, s());
957
- };
958
- })))(), 1), Xe = { class: "wt-tree-line" }, Ze = { class: "wt-tree-line__icon-wrapper" }, Qe = { class: "wt-tree-line__label typo-body-1" }, $e = /*#__PURE__*/ o(/* @__PURE__ */ N({
959
- __name: "wt-tree-line",
960
- props: {
961
- modelValue: {},
962
- data: {},
963
- itemLabel: {},
964
- itemData: {},
965
- childrenProp: { default: "children" },
966
- nestedLevel: { default: 0 },
967
- lastChild: {
968
- type: Boolean,
969
- default: !1
970
- },
971
- selectedParent: {
972
- type: Boolean,
973
- default: !1
974
- },
975
- nestedIcons: {},
976
- nextElement: {
977
- type: Boolean,
978
- default: !1
979
- },
980
- multiple: {
981
- type: Boolean,
982
- default: !1
983
- },
984
- allowParent: {
985
- type: Boolean,
986
- default: !1
987
- },
988
- searchedProp: { default: "searched" },
989
- rootData: {}
990
- },
991
- emits: ["openParent", "update:modelValue"],
992
- setup(e, { emit: t }) {
993
- let n = e, r = t, i = E(() => n.data?.[n.childrenProp] ?? []), a = E(() => n.itemLabel ? n.data[n.itemLabel] : n.data), o = E(() => {
994
- let e = n.nestedIcons ? [...n.nestedIcons] : [];
995
- return n.nestedLevel === 0 || e.push({
996
- icon: "tree-line",
997
- hidden: !n.nextElement
998
- }), e;
999
- }), c = () => Array.isArray(n.modelValue) ? n.itemData ? n.modelValue.includes(n.data[n.itemData]) : !!n.modelValue.find((e) => (0, Q.default)(e, n.data)) : !1, l = E(() => n.multiple ? c() : n.itemData ? n.data[n.itemData] === n.modelValue : (0, Q.default)(n.modelValue, n.data)), u = E(() => n.multiple ? l.value : l.value || n.selectedParent), d = (e, t, r) => {
1000
- let i = n.itemData ? e[n.itemData] : e;
1001
- if (t) r.some((e) => (0, Q.default)(e, i)) || r.push(i);
1002
- else {
1003
- let e = r.findIndex((e) => (0, Q.default)(e, i));
1004
- e !== -1 && r.splice(e, 1);
1005
- }
1006
- if (e && Array.isArray(e[n.childrenProp]) && e[n.childrenProp].length) for (let i of e[n.childrenProp]) d(i, t, r);
1007
- }, f = (e, t, r) => {
1008
- let i = (t, a) => {
1009
- if (t === e) {
1010
- if (a) {
1011
- let e = n.itemData ? a[n.itemData] : a, t = r.findIndex((t) => (0, Q.default)(t, e));
1012
- t !== -1 && r.splice(t, 1);
1013
- }
1014
- return !0;
1015
- }
1016
- if (t && Array.isArray(t[n.childrenProp]) && t[n.childrenProp].length) {
1017
- for (let e of t[n.childrenProp]) if (i(e, t)) return !0;
1018
- }
1019
- return !1;
1020
- };
1021
- i(t, null);
1022
- }, p = () => {
1023
- let e = l.value, t = [...n.modelValue];
1024
- d(n.data, !e, t), e && f(n.data, n.rootData, t), r("update:modelValue", t);
1025
- }, m = () => {
1026
- let e = n.itemData ? n.data[n.itemData] : n.data, t;
1027
- if (t = n.itemData ? n.modelValue.indexOf(n.data[n.itemData]) : n.modelValue.findIndex((e) => (0, Q.default)(e, n.data)), t === -1) {
1028
- let t = [...n.modelValue];
1029
- t.push(e), r("update:modelValue", t);
1030
- return;
1031
- }
1032
- let i = [...n.modelValue];
1033
- i.splice(t, 1), r("update:modelValue", i);
1034
- }, h = () => {
1035
- if (n.multiple) {
1036
- n.data[n.childrenProp]?.length ? p() : m();
1037
- return;
1038
- }
1039
- if (n.allowParent && !n.data[n.childrenProp]) return r("update:modelValue", n.itemData ? n.data[n.itemData] : n.data);
1040
- if (n.data[n.childrenProp]?.length) {
1041
- g.value = !g.value;
1042
- return;
1043
- }
1044
- r("update:modelValue", n.itemData ? n.data[n.itemData] : n.data);
1045
- }, g = z(!0), _ = () => {
1046
- n.nestedLevel > 0 && r("openParent");
1047
- }, v = () => {
1048
- g.value = !1, _();
1049
- }, y = (e, t = 0) => {
1050
- if (e[n.searchedProp] && t) return !0;
1051
- if (Array.isArray(e[n.childrenProp])) {
1052
- for (let r of e[n.childrenProp]) if (y(r, t + 1)) return !0;
1053
- }
1054
- return !1;
1055
- };
1056
- return L(() => {
1057
- l.value && _(), n.searchedProp && n.data[n.searchedProp] && _();
1058
- }), te(() => n.modelValue, () => {
1059
- l.value && _();
1060
- }), (t, c) => {
1061
- let d = H("wt-icon"), f = H("wt-icon-btn"), p = H("wt-tree-line", !0);
1062
- return R(), k(T, null, [A("div", Xe, [
1063
- A("div", Ze, [
1064
- (R(!0), k(T, null, B(e.nestedIcons, (e, t) => (R(), D(d, {
1065
- key: t,
1066
- icon: e.icon,
1067
- class: F({ hidden: e.hidden })
1068
- }, null, 8, ["icon", "class"]))), 128)),
1069
- e.nestedLevel >= 1 ? (R(), D(d, {
1070
- key: 0,
1071
- icon: e.lastChild ? "tree-corner" : "tree-cross"
1072
- }, null, 8, ["icon"])) : O("", !0),
1073
- i.value.length ? (R(), D(f, {
1074
- key: 1,
1075
- icon: g.value ? "plus" : "minus",
1076
- onClick: c[0] ||= (e) => g.value = !g.value
1077
- }, null, 8, ["icon"])) : O("", !0)
1078
- ]),
1079
- V(t.$slots, "item-prefix", {
1080
- class: "mr-1",
1081
- data: e.data,
1082
- rootData: e.rootData || e.data,
1083
- nestedLevel: e.nestedLevel,
1084
- active: u.value,
1085
- hasChildren: !!i.value.length,
1086
- selectedParent: e.selectedParent
1087
- }, void 0, !0),
1088
- A("div", {
1089
- class: F([{
1090
- active: u.value,
1091
- searched: n.data[n.searchedProp]
1092
- }, "wt-tree-line__label-wrapper"]),
1093
- onClick: h
1094
- }, [A("p", Qe, U(a.value), 1), u.value ? (R(), D(d, {
1095
- key: 0,
1096
- icon: "chat-message-status-sent"
1097
- })) : O("", !0)], 2)
1098
- ]), ne(M(s, null, {
1099
- default: G(() => [A("div", null, [(R(!0), k(T, null, B(i.value, (n, a) => (R(), D(p, {
1100
- key: a,
1101
- "model-value": e.modelValue,
1102
- data: n,
1103
- "children-prop": e.childrenProp,
1104
- "item-label": e.itemLabel,
1105
- "item-data": e.itemData,
1106
- "nested-level": e.nestedLevel + 1,
1107
- "selected-parent": l.value || e.selectedParent,
1108
- "next-element": !!i.value[a + 1],
1109
- "nested-icons": o.value,
1110
- "last-child": a === i.value.length - 1,
1111
- multiple: e.multiple,
1112
- "allow-parent": e.allowParent,
1113
- "root-data": e.rootData || e.data,
1114
- onOpenParent: v,
1115
- "onUpdate:modelValue": c[1] ||= (e) => r("update:modelValue", e)
1116
- }, j({ _: 2 }, [t.$slots["item-prefix"] ? {
1117
- name: "item-prefix",
1118
- fn: G((e) => [V(t.$slots, "item-prefix", I(P(e)), void 0, !0)]),
1119
- key: "0"
1120
- } : void 0]), 1032, [
1121
- "model-value",
1122
- "data",
1123
- "children-prop",
1124
- "item-label",
1125
- "item-data",
1126
- "nested-level",
1127
- "selected-parent",
1128
- "next-element",
1129
- "nested-icons",
1130
- "last-child",
1131
- "multiple",
1132
- "allow-parent",
1133
- "root-data"
1134
- ]))), 128))])], void 0, !0),
1135
- _: 3
1136
- }, 512), [[ee, !g.value]])], 64);
1137
- };
1138
- }
1139
- }), [["__scopeId", "data-v-2cbefb40"]]), $ = {
1140
- Tree: "tree",
1141
- List: "list"
1142
- }, et = { class: "wt-tree" }, tt = {
1143
- key: 0,
1144
- class: "wt-tree__content"
1145
- }, nt = {
1146
- key: 1,
1147
- class: "wt-tree__list-content"
1148
- }, rt = ["onClick"], it = /*#__PURE__*/ o(/* @__PURE__ */ N({
1149
- __name: "wt-tree",
1150
- props: {
1151
- modelValue: {},
1152
- data: {},
1153
- itemLabel: {},
1154
- itemData: {},
1155
- mode: { default: $.Tree },
1156
- childrenProp: { default: "children" },
1157
- multiple: { type: Boolean },
1158
- allowParent: {
1159
- type: Boolean,
1160
- default: !1
1161
- }
1162
- },
1163
- emits: ["select", "update:modelValue"],
1164
- setup(e, { emit: t }) {
1165
- let n = e, r = t, i = E(() => {
1166
- let e = [], t = (r) => {
1167
- e.push(r), r[n.childrenProp] && r[n.childrenProp].forEach((e) => {
1168
- t(e);
1169
- });
1170
- };
1171
- return n.data.forEach((e) => {
1172
- t(e);
1173
- }), e;
1174
- }), a = (e) => {
1175
- r("update:modelValue", n.itemData ? e[n.itemData] : e);
1176
- }, o = (e) => n.itemData ? e[n.itemData] === n.modelValue : (0, Q.default)(n.modelValue, e);
1177
- return (t, n) => {
1178
- let s = H("wt-icon");
1179
- return R(), k("div", et, [e.mode === W($).Tree ? (R(), k("div", tt, [(R(!0), k(T, null, B(e.data, (i, a) => (R(), D($e, {
1180
- key: a,
1181
- "model-value": e.modelValue,
1182
- "item-label": e.itemLabel,
1183
- "item-data": e.itemData,
1184
- data: i,
1185
- "children-prop": e.childrenProp,
1186
- multiple: e.multiple,
1187
- "allow-parent": e.allowParent,
1188
- "onUpdate:modelValue": n[0] ||= (e) => r("update:modelValue", e)
1189
- }, j({ _: 2 }, [t.$slots["item-prefix"] ? {
1190
- name: "item-prefix",
1191
- fn: G((e) => [V(t.$slots, "item-prefix", I(P(e)), void 0, !0)]),
1192
- key: "0"
1193
- } : void 0]), 1032, [
1194
- "model-value",
1195
- "item-label",
1196
- "item-data",
1197
- "data",
1198
- "children-prop",
1199
- "multiple",
1200
- "allow-parent"
1201
- ]))), 128))])) : O("", !0), e.mode === W($).List ? (R(), k("div", nt, [(R(!0), k(T, null, B(i.value, (t, n) => (R(), k("span", {
1202
- key: n,
1203
- class: F(["wt-tree__label-wrapper", { active: o(t) }])
1204
- }, [A("p", {
1205
- class: "wt-tree__label",
1206
- onClick: (e) => a(t)
1207
- }, U(e.itemLabel ? t[e.itemLabel] : t), 9, rt), o(t) ? (R(), D(s, {
1208
- key: 0,
1209
- icon: "chat-message-status-sent",
1210
- class: "wt-tree__label-icon"
1211
- })) : O("", !0)], 2))), 128))])) : O("", !0)]);
1212
- };
1213
- }
1214
- }), [["__scopeId", "data-v-d31aeefd"]]);
1215
- //#endregion
1216
- export { it as default };