@likec4/core 1.18.0 → 1.19.0

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 (176) hide show
  1. package/LICENSE +1 -1
  2. package/dist/builder/index.d.mts +502 -0
  3. package/dist/builder/index.d.ts +502 -0
  4. package/dist/builder/index.js +871 -0
  5. package/dist/compute-view/index.d.mts +9 -78
  6. package/dist/compute-view/index.d.ts +9 -78
  7. package/dist/compute-view/index.js +78 -0
  8. package/dist/index.d.mts +9 -730
  9. package/dist/index.d.ts +9 -730
  10. package/dist/{index.mjs → index.js} +7 -784
  11. package/dist/model/index.d.mts +218 -606
  12. package/dist/model/index.d.ts +218 -606
  13. package/dist/model/index.js +1 -0
  14. package/dist/shared/chunk-RAAYCPUM.M-JWF7SS.js +21 -0
  15. package/dist/shared/core.BIfgabEw.d.ts +719 -0
  16. package/dist/shared/core.BZ9Msq7w.d.mts +719 -0
  17. package/dist/shared/{core.DMYY7C8s.d.mts → core.C05RDLhi.d.ts} +179 -230
  18. package/dist/shared/{core.DMYY7C8s.d.ts → core.CmYMqgha.d.mts} +179 -230
  19. package/dist/shared/core.D6-fWbM3.d.ts +127 -0
  20. package/dist/shared/core.D74xkKkG.d.mts +148 -0
  21. package/dist/shared/core.D74xkKkG.d.ts +148 -0
  22. package/dist/shared/core.sLaWHBjR.d.mts +127 -0
  23. package/dist/shared/index.-BdzdI2C.js +7443 -0
  24. package/dist/shared/object_hash.CE_oF3I3.js +1222 -0
  25. package/dist/shared/view.CyZrG8BJ.js +354 -0
  26. package/dist/types/index.d.mts +4 -2
  27. package/dist/types/index.d.ts +4 -2
  28. package/dist/types/index.js +20 -0
  29. package/dist/utils/index.d.mts +404 -0
  30. package/dist/utils/index.d.ts +404 -0
  31. package/dist/utils/index.js +330 -0
  32. package/package.json +47 -33
  33. package/src/builder/Builder-style1.test-d.ts +190 -0
  34. package/src/builder/Builder-style2.test-d.ts +175 -0
  35. package/src/builder/Builder.deployment.ts +25 -20
  36. package/src/builder/Builder.deploymentModel.ts +80 -55
  37. package/src/builder/Builder.element.ts +2 -0
  38. package/src/builder/Builder.model.ts +57 -43
  39. package/src/builder/Builder.ts +412 -431
  40. package/src/builder/Builder.view-common.ts +234 -0
  41. package/src/builder/Builder.view-deployment.ts +135 -0
  42. package/src/builder/Builder.view-element.ts +189 -0
  43. package/src/builder/Builder.views.ts +109 -33
  44. package/src/builder/Builder.with.ts +475 -0
  45. package/src/builder/__snapshots__/Builder-style1.spec.ts.snap +374 -0
  46. package/src/builder/__snapshots__/Builder-style2.spec.ts.snap +183 -0
  47. package/src/builder/__snapshots__/Builder.spec.ts.snap +374 -0
  48. package/src/builder/_types.ts +28 -5
  49. package/src/builder/index.ts +10 -4
  50. package/src/colors/index.ts +2 -2
  51. package/src/compute-view/compute-view.ts +45 -54
  52. package/src/compute-view/deployment-view/__test__/TestHelper.ts +236 -0
  53. package/src/compute-view/deployment-view/__test__/fixture.ts +50 -62
  54. package/src/compute-view/deployment-view/_types.ts +26 -18
  55. package/src/compute-view/deployment-view/clean-connections.ts +173 -164
  56. package/src/compute-view/deployment-view/compute.ts +51 -37
  57. package/src/compute-view/deployment-view/memory/index.ts +9 -0
  58. package/src/compute-view/deployment-view/memory/memory.ts +97 -0
  59. package/src/compute-view/deployment-view/predicates/elements.ts +144 -0
  60. package/src/compute-view/deployment-view/predicates/relation-direct.ts +183 -76
  61. package/src/compute-view/deployment-view/predicates/relation-in-out.ts +38 -20
  62. package/src/compute-view/deployment-view/predicates/relation-incoming.ts +72 -23
  63. package/src/compute-view/deployment-view/predicates/relation-outgoing.ts +61 -22
  64. package/src/compute-view/deployment-view/predicates/wildcard.ts +15 -15
  65. package/src/compute-view/deployment-view/stages/stage-exclude.ts +5 -0
  66. package/src/compute-view/deployment-view/stages/stage-final.ts +245 -0
  67. package/src/compute-view/deployment-view/stages/stage-include.ts +95 -0
  68. package/src/compute-view/deployment-view/utils.ts +95 -31
  69. package/src/compute-view/dynamic-view/__test__/fixture.ts +4 -4
  70. package/src/compute-view/dynamic-view/compute.ts +59 -45
  71. package/src/compute-view/element-view/__test__/TestHelper.ts +258 -0
  72. package/src/compute-view/element-view/__test__/__snapshots__/legacy.spec.ts.snap +64 -62
  73. package/src/compute-view/element-view/__test__/fixture.ts +147 -117
  74. package/src/compute-view/element-view/_types.ts +48 -0
  75. package/src/compute-view/element-view/clean-connections.ts +113 -0
  76. package/src/compute-view/element-view/compute.ts +264 -683
  77. package/src/compute-view/element-view/memory/NodeGroup.ts +31 -0
  78. package/src/compute-view/element-view/memory/index.ts +10 -0
  79. package/src/compute-view/element-view/memory/memory.ts +177 -0
  80. package/src/compute-view/element-view/memory/stage-exclude.ts +59 -0
  81. package/src/compute-view/element-view/memory/stage-final.ts +129 -0
  82. package/src/compute-view/element-view/memory/stage-include.ts +128 -0
  83. package/src/compute-view/element-view/predicates/_utils.ts +86 -0
  84. package/src/compute-view/element-view/predicates/element-expand.ts +33 -0
  85. package/src/compute-view/element-view/predicates/element-kind-tag.ts +26 -0
  86. package/src/compute-view/element-view/predicates/element-ref.ts +37 -0
  87. package/src/compute-view/element-view/predicates/relation-direct.ts +309 -0
  88. package/src/compute-view/element-view/predicates/relation-in-out.ts +66 -0
  89. package/src/compute-view/element-view/predicates/relation-in.ts +118 -0
  90. package/src/compute-view/element-view/predicates/relation-out.ts +116 -0
  91. package/src/compute-view/element-view/predicates/wildcard.ts +88 -0
  92. package/src/compute-view/element-view/utils.ts +59 -0
  93. package/src/compute-view/index.ts +3 -4
  94. package/src/compute-view/memory/AbstractMemory.ts +45 -0
  95. package/src/compute-view/memory/AbstractStageExclude.ts +216 -0
  96. package/src/compute-view/memory/AbstractStageInclude.ts +200 -0
  97. package/src/compute-view/memory/_types.ts +147 -0
  98. package/src/compute-view/memory/index.ts +5 -0
  99. package/src/compute-view/memory/ops.ts +43 -0
  100. package/src/compute-view/utils/buildComputedNodes.ts +4 -4
  101. package/src/compute-view/utils/elementExpressionToPredicate.ts +1 -3
  102. package/src/compute-view/utils/link-nodes-with-edges.ts +3 -7
  103. package/src/compute-view/utils/{derive-edge-props-from-relationships.ts → merge-props-from-relationships.ts} +54 -23
  104. package/src/compute-view/utils/relationExpressionToPredicates.ts +2 -2
  105. package/src/compute-view/utils/resolve-extended-views.ts +44 -40
  106. package/src/compute-view/utils/resolve-global-rules.ts +6 -6
  107. package/src/compute-view/utils/topological-sort.ts +167 -71
  108. package/src/compute-view/utils/with-readable-edges.ts +14 -9
  109. package/src/index.ts +22 -16
  110. package/src/model/DeploymentElementModel.ts +150 -85
  111. package/src/model/DeploymentModel.ts +27 -21
  112. package/src/model/ElementModel.ts +51 -25
  113. package/src/model/LikeC4Model.test-d.ts +4 -3
  114. package/src/model/LikeC4Model.ts +98 -42
  115. package/src/model/RelationModel.ts +5 -4
  116. package/src/model/__test__/fixture.ts +5 -9
  117. package/src/model/connection/Connection.ts +72 -0
  118. package/src/model/connection/deployment/DeploymentConnectionModel.ts +178 -0
  119. package/src/model/connection/{deployment.ts → deployment/find.ts} +14 -18
  120. package/src/model/connection/deployment/index.ts +8 -0
  121. package/src/model/connection/index.ts +22 -0
  122. package/src/model/connection/model/ConnectionModel.ts +157 -0
  123. package/src/model/connection/{model.ts → model/find.ts} +43 -49
  124. package/src/model/connection/model/index.ts +8 -0
  125. package/src/model/connection/ops.ts +274 -0
  126. package/src/model/guards.ts +9 -0
  127. package/src/model/index.ts +45 -3
  128. package/src/model/types.ts +35 -18
  129. package/src/model/view/EdgeModel.ts +6 -6
  130. package/src/model/view/LikeC4ViewModel.ts +14 -8
  131. package/src/model/view/NodeModel.ts +6 -5
  132. package/src/types/_common.ts +53 -1
  133. package/src/types/deployments.ts +88 -156
  134. package/src/types/element.ts +2 -2
  135. package/src/types/expression-v2.ts +172 -0
  136. package/src/types/expression.ts +9 -5
  137. package/src/types/global.ts +3 -3
  138. package/src/types/index.ts +220 -13
  139. package/src/types/model.ts +28 -24
  140. package/src/types/operators.ts +1 -1
  141. package/src/types/relation.ts +14 -10
  142. package/src/types/theme.ts +0 -1
  143. package/src/types/view.ts +20 -18
  144. package/src/utils/const.ts +1 -0
  145. package/src/utils/fqn.ts +140 -49
  146. package/src/utils/getOrCreate.ts +1 -1
  147. package/src/utils/index.ts +74 -9
  148. package/src/utils/iterable/_types.ts +5 -0
  149. package/src/utils/iterable/filter.ts +55 -0
  150. package/src/utils/iterable/flat.ts +17 -0
  151. package/src/utils/iterable/index.ts +12 -0
  152. package/src/utils/iterable/map.ts +40 -0
  153. package/src/utils/iterable/reduce.ts +24 -0
  154. package/src/utils/iterable/some.ts +36 -0
  155. package/src/utils/iterable/to.ts +19 -0
  156. package/src/utils/iterable/unique.ts +29 -0
  157. package/src/utils/relations.ts +3 -64
  158. package/src/utils/set.ts +11 -9
  159. package/src/utils/string-hash.ts +1 -1
  160. package/dist/compute-view/index.mjs +0 -79
  161. package/dist/model/index.mjs +0 -2
  162. package/dist/shared/core.BBgiAAv1.mjs +0 -144
  163. package/dist/shared/core.BPyJvuMU.mjs +0 -2420
  164. package/dist/shared/core.BQ4AbfvB.mjs +0 -9228
  165. package/dist/shared/core.k12s_keD.mjs +0 -203
  166. package/dist/types/index.mjs +0 -21
  167. package/src/builder/Builder.test-d.ts +0 -124
  168. package/src/builder/Builder.view.ts +0 -543
  169. package/src/compute-view/LikeC4ModelGraph.ts +0 -330
  170. package/src/compute-view/deployment-view/Memory.ts +0 -108
  171. package/src/compute-view/deployment-view/Stage.ts +0 -145
  172. package/src/compute-view/deployment-view/predicates/deployment-ref.ts +0 -146
  173. package/src/compute-view/element-view/predicates.ts +0 -517
  174. package/src/compute-view/utils/sortNodes.ts +0 -101
  175. package/src/model/connection/ConnectionModel.ts +0 -94
  176. package/src/model/connection/DeploymentConnectionModel.ts +0 -99
@@ -0,0 +1,1222 @@
1
+ import { u as u$1, i as invariant } from './chunk-RAAYCPUM.M-JWF7SS.js';
2
+
3
+ function d(...e){return u$1(a$1,e,o$1)}var a$1=(e,n)=>e.length<n.length?e.map((t,r)=>[t,n[r]]):n.map((t,r)=>[e[r],t]),o$1=e=>(n,t)=>({hasNext:!0,next:[n,e[t]],done:t>=e.length-1});
4
+
5
+ var e={done:!0,hasNext:!1},s={done:!1,hasNext:!1},a=()=>e;
6
+
7
+ function x(t,...o){let n=t,u=o.map(e=>"lazy"in e?f(e):void 0),p=0;for(;p<o.length;){if(u[p]===void 0||!B(n)){let i=o[p];n=i(n),p+=1;continue}let r=[];for(let i=p;i<o.length;i++){let l=u[i];if(l===void 0||(r.push(l),l.isSingle))break}let a=[];for(let i of n)if(A(i,a,r))break;let{isSingle:y}=r.at(-1);n=y?a[0]:a,p+=r.length;}return n}function A(t,o,n){if(n.length===0)return o.push(t),!1;let u=t,p=s,e=!1;for(let[r,a]of n.entries()){let{index:y,items:i}=a;if(i.push(u),p=a(u,y,i),a.index+=1,p.hasNext){if(p.hasMany??!1){for(let l of p.next)if(A(l,o,n.slice(r+1)))return !0;return e}u=p.next;}if(!p.hasNext)break;p.done&&(e=!0);}return p.hasNext&&o.push(u),e}function f(t){let{lazy:o,lazyArgs:n}=t,u=o(...n);return Object.assign(u,{isSingle:o.single??!1,index:0,items:[]})}function B(t){return typeof t=="string"||typeof t=="object"&&t!==null&&Symbol.iterator in t}
8
+
9
+ function i$1(...e){return u$1(r,e)}var r=(e,t)=>e.length>=t;
10
+
11
+ function u(...e){return u$1(i,e)}function i(e,a){let n=[];for(let[o,r]of e.entries()){if(!a(r,o,e))break;n.push(r);}return n}
12
+
13
+ function m(...a){return u$1(o,a,p)}var o=(a,e)=>a.map(e),p=a=>(e,t,r)=>({done:!1,hasNext:!0,next:a(e,t,r)});
14
+
15
+ function t$1(r){return typeof r=="string"}
16
+
17
+ function t(n){return typeof n=="function"}
18
+
19
+ function l(n){return n!=null}
20
+
21
+ function n(e){return e!==void 0}
22
+
23
+ function getDefaultExportFromCjs (x) {
24
+ return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
25
+ }
26
+
27
+ /**
28
+ * Mnemonist DefaultMap
29
+ * =====================
30
+ *
31
+ * JavaScript implementation of a default map that will return a constructed
32
+ * value any time one tries to access an inexisting key. It's quite similar
33
+ * to python's defaultdict.
34
+ */
35
+
36
+ var defaultMap;
37
+ var hasRequiredDefaultMap;
38
+
39
+ function requireDefaultMap () {
40
+ if (hasRequiredDefaultMap) return defaultMap;
41
+ hasRequiredDefaultMap = 1;
42
+ /**
43
+ * DefaultMap.
44
+ *
45
+ * @constructor
46
+ */
47
+ function DefaultMap(factory) {
48
+ if (typeof factory !== 'function')
49
+ throw new Error('mnemonist/DefaultMap.constructor: expecting a function.');
50
+
51
+ this.items = new Map();
52
+ this.factory = factory;
53
+ this.size = 0;
54
+ }
55
+
56
+ /**
57
+ * Method used to clear the structure.
58
+ *
59
+ * @return {undefined}
60
+ */
61
+ DefaultMap.prototype.clear = function() {
62
+
63
+ // Properties
64
+ this.items.clear();
65
+ this.size = 0;
66
+ };
67
+
68
+ /**
69
+ * Method used to get the value set for given key. If the key does not exist,
70
+ * the value will be created using the provided factory.
71
+ *
72
+ * @param {any} key - Target key.
73
+ * @return {any}
74
+ */
75
+ DefaultMap.prototype.get = function(key) {
76
+ var value = this.items.get(key);
77
+
78
+ if (typeof value === 'undefined') {
79
+ value = this.factory(key, this.size);
80
+ this.items.set(key, value);
81
+ this.size++;
82
+ }
83
+
84
+ return value;
85
+ };
86
+
87
+ /**
88
+ * Method used to get the value set for given key. If the key does not exist,
89
+ * a value won't be created.
90
+ *
91
+ * @param {any} key - Target key.
92
+ * @return {any}
93
+ */
94
+ DefaultMap.prototype.peek = function(key) {
95
+ return this.items.get(key);
96
+ };
97
+
98
+ /**
99
+ * Method used to set a value for given key.
100
+ *
101
+ * @param {any} key - Target key.
102
+ * @param {any} value - Value.
103
+ * @return {DefaultMap}
104
+ */
105
+ DefaultMap.prototype.set = function(key, value) {
106
+ this.items.set(key, value);
107
+ this.size = this.items.size;
108
+
109
+ return this;
110
+ };
111
+
112
+ /**
113
+ * Method used to test the existence of a key in the map.
114
+ *
115
+ * @param {any} key - Target key.
116
+ * @return {boolean}
117
+ */
118
+ DefaultMap.prototype.has = function(key) {
119
+ return this.items.has(key);
120
+ };
121
+
122
+ /**
123
+ * Method used to delete target key.
124
+ *
125
+ * @param {any} key - Target key.
126
+ * @return {boolean}
127
+ */
128
+ DefaultMap.prototype.delete = function(key) {
129
+ var deleted = this.items.delete(key);
130
+
131
+ this.size = this.items.size;
132
+
133
+ return deleted;
134
+ };
135
+
136
+ /**
137
+ * Method used to iterate over each of the key/value pairs.
138
+ *
139
+ * @param {function} callback - Function to call for each item.
140
+ * @param {object} scope - Optional scope.
141
+ * @return {undefined}
142
+ */
143
+ DefaultMap.prototype.forEach = function(callback, scope) {
144
+ scope = arguments.length > 1 ? scope : this;
145
+
146
+ this.items.forEach(callback, scope);
147
+ };
148
+
149
+ /**
150
+ * Iterators.
151
+ */
152
+ DefaultMap.prototype.entries = function() {
153
+ return this.items.entries();
154
+ };
155
+
156
+ DefaultMap.prototype.keys = function() {
157
+ return this.items.keys();
158
+ };
159
+
160
+ DefaultMap.prototype.values = function() {
161
+ return this.items.values();
162
+ };
163
+
164
+ /**
165
+ * Attaching the #.entries method to Symbol.iterator if possible.
166
+ */
167
+ if (typeof Symbol !== 'undefined')
168
+ DefaultMap.prototype[Symbol.iterator] = DefaultMap.prototype.entries;
169
+
170
+ /**
171
+ * Convenience known methods.
172
+ */
173
+ DefaultMap.prototype.inspect = function() {
174
+ return this.items;
175
+ };
176
+
177
+ if (typeof Symbol !== 'undefined')
178
+ DefaultMap.prototype[Symbol.for('nodejs.util.inspect.custom')] = DefaultMap.prototype.inspect;
179
+
180
+ /**
181
+ * Typical factories.
182
+ */
183
+ DefaultMap.autoIncrement = function() {
184
+ var i = 0;
185
+
186
+ return function() {
187
+ return i++;
188
+ };
189
+ };
190
+
191
+ /**
192
+ * Exporting.
193
+ */
194
+ defaultMap = DefaultMap;
195
+ return defaultMap;
196
+ }
197
+
198
+ var defaultMapExports = requireDefaultMap();
199
+ const DefaultMap = /*@__PURE__*/getDefaultExportFromCjs(defaultMapExports);
200
+
201
+ /**
202
+ * Obliterator Iterator Class
203
+ * ===========================
204
+ *
205
+ * Simple class representing the library's iterators.
206
+ */
207
+
208
+ var iterator;
209
+ var hasRequiredIterator;
210
+
211
+ function requireIterator () {
212
+ if (hasRequiredIterator) return iterator;
213
+ hasRequiredIterator = 1;
214
+ /**
215
+ * Iterator class.
216
+ *
217
+ * @constructor
218
+ * @param {function} next - Next function.
219
+ */
220
+ function Iterator(next) {
221
+ if (typeof next !== 'function')
222
+ throw new Error('obliterator/iterator: expecting a function!');
223
+
224
+ this.next = next;
225
+ }
226
+
227
+ /**
228
+ * If symbols are supported, we add `next` to `Symbol.iterator`.
229
+ */
230
+ if (typeof Symbol !== 'undefined')
231
+ Iterator.prototype[Symbol.iterator] = function () {
232
+ return this;
233
+ };
234
+
235
+ /**
236
+ * Returning an iterator of the given values.
237
+ *
238
+ * @param {any...} values - Values.
239
+ * @return {Iterator}
240
+ */
241
+ Iterator.of = function () {
242
+ var args = arguments,
243
+ l = args.length,
244
+ i = 0;
245
+
246
+ return new Iterator(function () {
247
+ if (i >= l) return {done: true};
248
+
249
+ return {done: false, value: args[i++]};
250
+ });
251
+ };
252
+
253
+ /**
254
+ * Returning an empty iterator.
255
+ *
256
+ * @return {Iterator}
257
+ */
258
+ Iterator.empty = function () {
259
+ var iterator = new Iterator(function () {
260
+ return {done: true};
261
+ });
262
+
263
+ return iterator;
264
+ };
265
+
266
+ /**
267
+ * Returning an iterator over the given indexed sequence.
268
+ *
269
+ * @param {string|Array} sequence - Target sequence.
270
+ * @return {Iterator}
271
+ */
272
+ Iterator.fromSequence = function (sequence) {
273
+ var i = 0,
274
+ l = sequence.length;
275
+
276
+ return new Iterator(function () {
277
+ if (i >= l) return {done: true};
278
+
279
+ return {done: false, value: sequence[i++]};
280
+ });
281
+ };
282
+
283
+ /**
284
+ * Returning whether the given value is an iterator.
285
+ *
286
+ * @param {any} value - Value.
287
+ * @return {boolean}
288
+ */
289
+ Iterator.is = function (value) {
290
+ if (value instanceof Iterator) return true;
291
+
292
+ return (
293
+ typeof value === 'object' &&
294
+ value !== null &&
295
+ typeof value.next === 'function'
296
+ );
297
+ };
298
+
299
+ /**
300
+ * Exporting.
301
+ */
302
+ iterator = Iterator;
303
+ return iterator;
304
+ }
305
+
306
+ var support = {};
307
+
308
+ var hasRequiredSupport;
309
+
310
+ function requireSupport () {
311
+ if (hasRequiredSupport) return support;
312
+ hasRequiredSupport = 1;
313
+ support.ARRAY_BUFFER_SUPPORT = typeof ArrayBuffer !== 'undefined';
314
+ support.SYMBOL_SUPPORT = typeof Symbol !== 'undefined';
315
+ return support;
316
+ }
317
+
318
+ /**
319
+ * Obliterator ForEach Function
320
+ * =============================
321
+ *
322
+ * Helper function used to easily iterate over mixed values.
323
+ */
324
+
325
+ var foreach;
326
+ var hasRequiredForeach;
327
+
328
+ function requireForeach () {
329
+ if (hasRequiredForeach) return foreach;
330
+ hasRequiredForeach = 1;
331
+ var support = requireSupport();
332
+
333
+ var ARRAY_BUFFER_SUPPORT = support.ARRAY_BUFFER_SUPPORT;
334
+ var SYMBOL_SUPPORT = support.SYMBOL_SUPPORT;
335
+
336
+ /**
337
+ * Function able to iterate over almost any iterable JS value.
338
+ *
339
+ * @param {any} iterable - Iterable value.
340
+ * @param {function} callback - Callback function.
341
+ */
342
+ foreach = function forEach(iterable, callback) {
343
+ var iterator, k, i, l, s;
344
+
345
+ if (!iterable) throw new Error('obliterator/forEach: invalid iterable.');
346
+
347
+ if (typeof callback !== 'function')
348
+ throw new Error('obliterator/forEach: expecting a callback.');
349
+
350
+ // The target is an array or a string or function arguments
351
+ if (
352
+ Array.isArray(iterable) ||
353
+ (ARRAY_BUFFER_SUPPORT && ArrayBuffer.isView(iterable)) ||
354
+ typeof iterable === 'string' ||
355
+ iterable.toString() === '[object Arguments]'
356
+ ) {
357
+ for (i = 0, l = iterable.length; i < l; i++) callback(iterable[i], i);
358
+ return;
359
+ }
360
+
361
+ // The target has a #.forEach method
362
+ if (typeof iterable.forEach === 'function') {
363
+ iterable.forEach(callback);
364
+ return;
365
+ }
366
+
367
+ // The target is iterable
368
+ if (
369
+ SYMBOL_SUPPORT &&
370
+ Symbol.iterator in iterable &&
371
+ typeof iterable.next !== 'function'
372
+ ) {
373
+ iterable = iterable[Symbol.iterator]();
374
+ }
375
+
376
+ // The target is an iterator
377
+ if (typeof iterable.next === 'function') {
378
+ iterator = iterable;
379
+ i = 0;
380
+
381
+ while (((s = iterator.next()), s.done !== true)) {
382
+ callback(s.value, i);
383
+ i++;
384
+ }
385
+
386
+ return;
387
+ }
388
+
389
+ // The target is a plain object
390
+ for (k in iterable) {
391
+ if (iterable.hasOwnProperty(k)) {
392
+ callback(iterable[k], k);
393
+ }
394
+ }
395
+
396
+ return;
397
+ };
398
+ return foreach;
399
+ }
400
+
401
+ function commonHead(sources, targets, equals) {
402
+ if (sources.length === 0 || targets.length === 0) {
403
+ return [];
404
+ }
405
+ equals ??= Object.is;
406
+ return x(
407
+ d(sources, targets),
408
+ u(([source, target]) => equals(source, target)),
409
+ m(([source, _]) => source)
410
+ );
411
+ }
412
+
413
+ var naturalCompareLite = {exports: {}};
414
+
415
+ var hasRequiredNaturalCompareLite;
416
+
417
+ function requireNaturalCompareLite () {
418
+ if (hasRequiredNaturalCompareLite) return naturalCompareLite.exports;
419
+ hasRequiredNaturalCompareLite = 1;
420
+ /*
421
+ * @version 1.4.0
422
+ * @date 2015-10-26
423
+ * @stability 3 - Stable
424
+ * @author Lauri Rooden (https://github.com/litejs/natural-compare-lite)
425
+ * @license MIT License
426
+ */
427
+
428
+
429
+ var naturalCompare = function(a, b) {
430
+ var i, codeA
431
+ , codeB = 1
432
+ , posA = 0
433
+ , posB = 0
434
+ , alphabet = String.alphabet;
435
+
436
+ function getCode(str, pos, code) {
437
+ if (code) {
438
+ for (i = pos; code = getCode(str, i), code < 76 && code > 65;) ++i;
439
+ return +str.slice(pos - 1, i)
440
+ }
441
+ code = alphabet && alphabet.indexOf(str.charAt(pos));
442
+ return code > -1 ? code + 76 : ((code = str.charCodeAt(pos) || 0), code < 45 || code > 127) ? code
443
+ : code < 46 ? 65 // -
444
+ : code < 48 ? code - 1
445
+ : code < 58 ? code + 18 // 0-9
446
+ : code < 65 ? code - 11
447
+ : code < 91 ? code + 11 // A-Z
448
+ : code < 97 ? code - 37
449
+ : code < 123 ? code + 5 // a-z
450
+ : code - 63
451
+ }
452
+
453
+
454
+ if ((a+="") != (b+="")) for (;codeB;) {
455
+ codeA = getCode(a, posA++);
456
+ codeB = getCode(b, posB++);
457
+
458
+ if (codeA < 76 && codeB < 76 && codeA > 66 && codeB > 66) {
459
+ codeA = getCode(a, posA, posA);
460
+ codeB = getCode(b, posB, posA = i);
461
+ posB = i;
462
+ }
463
+
464
+ if (codeA != codeB) return (codeA < codeB) ? -1 : 1
465
+ }
466
+ return 0
467
+ };
468
+
469
+ try {
470
+ naturalCompareLite.exports = naturalCompare;
471
+ } catch (e) {
472
+ String.naturalCompare = naturalCompare;
473
+ }
474
+ return naturalCompareLite.exports;
475
+ }
476
+
477
+ var naturalCompareLiteExports = requireNaturalCompareLite();
478
+ const compare = /*@__PURE__*/getDefaultExportFromCjs(naturalCompareLiteExports);
479
+
480
+ function compareNatural(a, b) {
481
+ if (a === b) return 0;
482
+ if (t$1(a)) {
483
+ if (t$1(b)) {
484
+ return compare(a, b);
485
+ }
486
+ return 1;
487
+ }
488
+ return t$1(b) ? -1 : 0;
489
+ }
490
+
491
+ function isString(value) {
492
+ return value != null && typeof value === "string";
493
+ }
494
+ function isNonEmptyArray(arr) {
495
+ return !!arr && Array.isArray(arr) && arr.length > 0;
496
+ }
497
+
498
+ function parentFqn(fqn) {
499
+ const lastDot = fqn.lastIndexOf(".");
500
+ if (lastDot > 0) {
501
+ return fqn.slice(0, lastDot);
502
+ }
503
+ return null;
504
+ }
505
+ function nameFromFqn(fqn) {
506
+ const lastDot = fqn.lastIndexOf(".");
507
+ if (lastDot > 0) {
508
+ return fqn.slice(lastDot + 1);
509
+ } else {
510
+ return fqn;
511
+ }
512
+ }
513
+ const asString = (e) => isString(e) ? e : e.id;
514
+ function isAncestor(arg1, arg2) {
515
+ const arg1Id = asString(arg1);
516
+ if (arg2) {
517
+ const arg2Id = asString(arg2);
518
+ return arg2Id.startsWith(arg1Id + ".");
519
+ }
520
+ return (ancestor) => {
521
+ const ancestorId = asString(ancestor);
522
+ return arg1Id.startsWith(ancestorId + ".");
523
+ };
524
+ }
525
+ function isSameHierarchy(one, another) {
526
+ if (!another) {
527
+ return (b) => isSameHierarchy(one, b);
528
+ }
529
+ const first = asString(one);
530
+ const second = asString(another);
531
+ return first === second || second.startsWith(first + ".") || first.startsWith(second + ".");
532
+ }
533
+ function isDescendantOf(descedant, ancestor) {
534
+ if (!ancestor) {
535
+ return (d) => isAncestor(descedant, d);
536
+ }
537
+ return isAncestor(ancestor, descedant);
538
+ }
539
+ function hierarchyLevel(elementOfFqn) {
540
+ const first = isString(elementOfFqn) ? elementOfFqn : elementOfFqn.id;
541
+ return first.split(".").length;
542
+ }
543
+ function hierarchyDistance(one, another) {
544
+ const first = isString(one) ? one : one.id;
545
+ const second = isString(another) ? another : another.id;
546
+ if (first === second) {
547
+ return 0;
548
+ }
549
+ const firstDepth = hierarchyLevel(first);
550
+ const secondDepth = hierarchyLevel(second);
551
+ if (isSameHierarchy(first, second)) {
552
+ return Math.abs(firstDepth - secondDepth);
553
+ }
554
+ const ancestor = commonAncestor(first, second);
555
+ const ancestorDepth = ancestor ? hierarchyLevel(ancestor) : 0;
556
+ return firstDepth + secondDepth - (2 * ancestorDepth + 1);
557
+ }
558
+ function commonAncestor(first, second) {
559
+ const a = first.split(".");
560
+ if (a.length < 2) {
561
+ return null;
562
+ }
563
+ const b = second.split(".");
564
+ if (b.length < 2) {
565
+ return null;
566
+ }
567
+ let ancestor = [];
568
+ for (let i = 0; i < Math.min(a.length, b.length) - 1 && a[i] === b[i]; i++) {
569
+ ancestor.push(a[i]);
570
+ }
571
+ if (ancestor.length === 0) {
572
+ return null;
573
+ }
574
+ return ancestor.join(".");
575
+ }
576
+ function ancestorsFqn(fqn) {
577
+ const path = fqn.split(".");
578
+ path.pop();
579
+ if (path.length === 0) {
580
+ return [];
581
+ }
582
+ return path.reduce((acc, part, idx) => {
583
+ if (idx === 0) {
584
+ acc.push(part);
585
+ return acc;
586
+ }
587
+ acc.unshift(`${acc[0]}.${part}`);
588
+ return acc;
589
+ }, []);
590
+ }
591
+ function compareFqnHierarchically(a, b) {
592
+ const depthA = a.split(".").length;
593
+ const depthB = b.split(".").length;
594
+ switch (true) {
595
+ case depthA > depthB: {
596
+ return 1;
597
+ }
598
+ case depthA < depthB: {
599
+ return -1;
600
+ }
601
+ default: {
602
+ return 0;
603
+ }
604
+ }
605
+ }
606
+ function compareByFqnHierarchically(a, b) {
607
+ return compareFqnHierarchically(a.id, b.id);
608
+ }
609
+ function sortByFqnHierarchically(array) {
610
+ return array.map((item) => ({ item, fqn: item.id.split(".") })).sort((a, b) => {
611
+ return a.fqn.length - b.fqn.length;
612
+ }).map(({ item }) => item);
613
+ }
614
+ function findTopAncestor(items, item) {
615
+ let parent = item;
616
+ for (const e of items) {
617
+ if (isAncestor(e, parent)) {
618
+ parent = e;
619
+ }
620
+ }
621
+ return parent !== item ? parent : null;
622
+ }
623
+ function sortParentsFirst(array) {
624
+ const result = [];
625
+ const items = [...array];
626
+ let item;
627
+ while (item = items.shift()) {
628
+ let parent;
629
+ while (parent = findTopAncestor(items, item)) {
630
+ result.push(items.splice(items.indexOf(parent), 1)[0]);
631
+ }
632
+ result.push(item);
633
+ }
634
+ return result;
635
+ }
636
+ function sortNaturalByFqn(array, sort) {
637
+ if (!array || isString(array)) {
638
+ const dir2 = array ?? "asc";
639
+ return (arr) => sortNaturalByFqn(arr, dir2);
640
+ }
641
+ const dir = sort === "desc" ? -1 : 1;
642
+ return array.map((item) => ({ item, fqn: item.id.split(".") })).sort((a, b) => {
643
+ if (a.fqn.length !== b.fqn.length) {
644
+ return (a.fqn.length - b.fqn.length) * dir;
645
+ }
646
+ for (let i = 0; i < a.fqn.length; i++) {
647
+ const compare = compareNatural(a.fqn[i], b.fqn[i]);
648
+ if (compare !== 0) {
649
+ return compare;
650
+ }
651
+ }
652
+ return 0;
653
+ }).map(({ item }) => item);
654
+ }
655
+
656
+ function getOrCreate(map, key, create) {
657
+ let entry = map.get(key);
658
+ if (!entry) {
659
+ entry = create(key);
660
+ map.set(key, entry);
661
+ }
662
+ return entry;
663
+ }
664
+
665
+ function isIterable(something) {
666
+ return l(something) && typeof something === "object" && Symbol.iterator in something;
667
+ }
668
+
669
+ function ifilter(arg1, arg2) {
670
+ const pred = arg2 ?? arg1;
671
+ invariant(t(pred));
672
+ function* _filter(iter) {
673
+ for (const value of iter) {
674
+ if (pred(value)) {
675
+ yield value;
676
+ }
677
+ }
678
+ return;
679
+ }
680
+ if (!arg2) {
681
+ return _filter;
682
+ }
683
+ return _filter(arg1);
684
+ }
685
+
686
+ function iflat(iterable) {
687
+ return iterable ? _iflat(iterable) : _iflat;
688
+ }
689
+ function* _iflat(iterable) {
690
+ for (const inner of iterable) {
691
+ yield* inner;
692
+ }
693
+ return;
694
+ }
695
+
696
+ function imap(arg1, arg2) {
697
+ const mapper = arg2 ?? arg1;
698
+ invariant(t(mapper));
699
+ function* _map(iter) {
700
+ for (const value of iter) {
701
+ yield mapper(value);
702
+ }
703
+ return;
704
+ }
705
+ if (!arg2) {
706
+ return _map;
707
+ }
708
+ return _map(arg1);
709
+ }
710
+
711
+ function isome(arg1, arg2) {
712
+ const pred = arg2 ?? arg1;
713
+ invariant(t(pred));
714
+ function _some(iter) {
715
+ for (const value of iter) {
716
+ if (pred(value)) {
717
+ return true;
718
+ }
719
+ }
720
+ return false;
721
+ }
722
+ if (!arg2) {
723
+ return _some;
724
+ }
725
+ return _some(arg1);
726
+ }
727
+
728
+ function toArray(iterable) {
729
+ if (iterable) {
730
+ return Array.from(iterable);
731
+ }
732
+ return (it) => Array.from(it);
733
+ }
734
+ function toSet(iterable) {
735
+ if (iterable) {
736
+ return new Set(iterable);
737
+ }
738
+ return (it) => new Set(it);
739
+ }
740
+
741
+ function iunique(iterable) {
742
+ if (iterable) {
743
+ return function* () {
744
+ yield* _iunique(iterable);
745
+ return;
746
+ }();
747
+ }
748
+ return _iunique;
749
+ }
750
+ function* _iunique(iterable) {
751
+ const seen = /* @__PURE__ */ new Set();
752
+ for (const item of iterable) {
753
+ if (!seen.has(item)) {
754
+ seen.add(item);
755
+ yield item;
756
+ }
757
+ }
758
+ return;
759
+ }
760
+
761
+ var set = {};
762
+
763
+ /**
764
+ * Mnemonist Set
765
+ * ==============
766
+ *
767
+ * Useful function related to sets such as union, intersection and so on...
768
+ */
769
+
770
+ var hasRequiredSet;
771
+
772
+ function requireSet () {
773
+ if (hasRequiredSet) return set;
774
+ hasRequiredSet = 1;
775
+ (function (exports) {
776
+ // TODO: optimize versions for less variadicities
777
+
778
+ /**
779
+ * Variadic function computing the intersection of multiple sets.
780
+ *
781
+ * @param {...Set} sets - Sets to intersect.
782
+ * @return {Set} - The intesection.
783
+ */
784
+ exports.intersection = function() {
785
+ if (arguments.length < 2)
786
+ throw new Error('mnemonist/Set.intersection: needs at least two arguments.');
787
+
788
+ var I = new Set();
789
+
790
+ // First we need to find the smallest set
791
+ var smallestSize = Infinity,
792
+ smallestSet = null;
793
+
794
+ var s, i, l = arguments.length;
795
+
796
+ for (i = 0; i < l; i++) {
797
+ s = arguments[i];
798
+
799
+ // If one of the set has no items, we can stop right there
800
+ if (s.size === 0)
801
+ return I;
802
+
803
+ if (s.size < smallestSize) {
804
+ smallestSize = s.size;
805
+ smallestSet = s;
806
+ }
807
+ }
808
+
809
+ // Now we need to intersect this set with the others
810
+ var iterator = smallestSet.values(),
811
+ step,
812
+ item,
813
+ add,
814
+ set;
815
+
816
+ // TODO: we can optimize by iterating each next time over the current intersection
817
+ // but this probably means more RAM to consume since we'll create n-1 sets rather than
818
+ // only the one.
819
+ while ((step = iterator.next(), !step.done)) {
820
+ item = step.value;
821
+ add = true;
822
+
823
+ for (i = 0; i < l; i++) {
824
+ set = arguments[i];
825
+
826
+ if (set === smallestSet)
827
+ continue;
828
+
829
+ if (!set.has(item)) {
830
+ add = false;
831
+ break;
832
+ }
833
+ }
834
+
835
+ if (add)
836
+ I.add(item);
837
+ }
838
+
839
+ return I;
840
+ };
841
+
842
+ /**
843
+ * Variadic function computing the union of multiple sets.
844
+ *
845
+ * @param {...Set} sets - Sets to unite.
846
+ * @return {Set} - The union.
847
+ */
848
+ exports.union = function() {
849
+ if (arguments.length < 2)
850
+ throw new Error('mnemonist/Set.union: needs at least two arguments.');
851
+
852
+ var U = new Set();
853
+
854
+ var i, l = arguments.length;
855
+
856
+ var iterator,
857
+ step;
858
+
859
+ for (i = 0; i < l; i++) {
860
+ iterator = arguments[i].values();
861
+
862
+ while ((step = iterator.next(), !step.done))
863
+ U.add(step.value);
864
+ }
865
+
866
+ return U;
867
+ };
868
+
869
+ /**
870
+ * Function computing the difference between two sets.
871
+ *
872
+ * @param {Set} A - First set.
873
+ * @param {Set} B - Second set.
874
+ * @return {Set} - The difference.
875
+ */
876
+ exports.difference = function(A, B) {
877
+
878
+ // If first set is empty
879
+ if (!A.size)
880
+ return new Set();
881
+
882
+ if (!B.size)
883
+ return new Set(A);
884
+
885
+ var D = new Set();
886
+
887
+ var iterator = A.values(),
888
+ step;
889
+
890
+ while ((step = iterator.next(), !step.done)) {
891
+ if (!B.has(step.value))
892
+ D.add(step.value);
893
+ }
894
+
895
+ return D;
896
+ };
897
+
898
+ /**
899
+ * Function computing the symmetric difference between two sets.
900
+ *
901
+ * @param {Set} A - First set.
902
+ * @param {Set} B - Second set.
903
+ * @return {Set} - The symmetric difference.
904
+ */
905
+ exports.symmetricDifference = function(A, B) {
906
+ var S = new Set();
907
+
908
+ var iterator = A.values(),
909
+ step;
910
+
911
+ while ((step = iterator.next(), !step.done)) {
912
+ if (!B.has(step.value))
913
+ S.add(step.value);
914
+ }
915
+
916
+ iterator = B.values();
917
+
918
+ while ((step = iterator.next(), !step.done)) {
919
+ if (!A.has(step.value))
920
+ S.add(step.value);
921
+ }
922
+
923
+ return S;
924
+ };
925
+
926
+ /**
927
+ * Function returning whether A is a subset of B.
928
+ *
929
+ * @param {Set} A - First set.
930
+ * @param {Set} B - Second set.
931
+ * @return {boolean}
932
+ */
933
+ exports.isSubset = function(A, B) {
934
+ var iterator = A.values(),
935
+ step;
936
+
937
+ // Shortcuts
938
+ if (A === B)
939
+ return true;
940
+
941
+ if (A.size > B.size)
942
+ return false;
943
+
944
+ while ((step = iterator.next(), !step.done)) {
945
+ if (!B.has(step.value))
946
+ return false;
947
+ }
948
+
949
+ return true;
950
+ };
951
+
952
+ /**
953
+ * Function returning whether A is a superset of B.
954
+ *
955
+ * @param {Set} A - First set.
956
+ * @param {Set} B - Second set.
957
+ * @return {boolean}
958
+ */
959
+ exports.isSuperset = function(A, B) {
960
+ return exports.isSubset(B, A);
961
+ };
962
+
963
+ /**
964
+ * Function adding the items of set B to the set A.
965
+ *
966
+ * @param {Set} A - First set.
967
+ * @param {Set} B - Second set.
968
+ */
969
+ exports.add = function(A, B) {
970
+ var iterator = B.values(),
971
+ step;
972
+
973
+ while ((step = iterator.next(), !step.done))
974
+ A.add(step.value);
975
+
976
+ return;
977
+ };
978
+
979
+ /**
980
+ * Function subtracting the items of set B from the set A.
981
+ *
982
+ * @param {Set} A - First set.
983
+ * @param {Set} B - Second set.
984
+ */
985
+ exports.subtract = function(A, B) {
986
+ var iterator = B.values(),
987
+ step;
988
+
989
+ while ((step = iterator.next(), !step.done))
990
+ A.delete(step.value);
991
+
992
+ return;
993
+ };
994
+
995
+ /**
996
+ * Function intersecting the items of A & B.
997
+ *
998
+ * @param {Set} A - First set.
999
+ * @param {Set} B - Second set.
1000
+ */
1001
+ exports.intersect = function(A, B) {
1002
+ var iterator = A.values(),
1003
+ step;
1004
+
1005
+ while ((step = iterator.next(), !step.done)) {
1006
+ if (!B.has(step.value))
1007
+ A.delete(step.value);
1008
+ }
1009
+
1010
+ return;
1011
+ };
1012
+
1013
+ /**
1014
+ * Function disjuncting the items of A & B.
1015
+ *
1016
+ * @param {Set} A - First set.
1017
+ * @param {Set} B - Second set.
1018
+ */
1019
+ exports.disjunct = function(A, B) {
1020
+ var iterator = A.values(),
1021
+ step;
1022
+
1023
+ var toRemove = [];
1024
+
1025
+ while ((step = iterator.next(), !step.done)) {
1026
+ if (B.has(step.value))
1027
+ toRemove.push(step.value);
1028
+ }
1029
+
1030
+ iterator = B.values();
1031
+
1032
+ while ((step = iterator.next(), !step.done)) {
1033
+ if (!A.has(step.value))
1034
+ A.add(step.value);
1035
+ }
1036
+
1037
+ for (var i = 0, l = toRemove.length; i < l; i++)
1038
+ A.delete(toRemove[i]);
1039
+
1040
+ return;
1041
+ };
1042
+
1043
+ /**
1044
+ * Function returning the size of the intersection of A & B.
1045
+ *
1046
+ * @param {Set} A - First set.
1047
+ * @param {Set} B - Second set.
1048
+ * @return {number}
1049
+ */
1050
+ exports.intersectionSize = function(A, B) {
1051
+ var tmp;
1052
+
1053
+ // We need to know the smallest set
1054
+ if (A.size > B.size) {
1055
+ tmp = A;
1056
+ A = B;
1057
+ B = tmp;
1058
+ }
1059
+
1060
+ if (A.size === 0)
1061
+ return 0;
1062
+
1063
+ if (A === B)
1064
+ return A.size;
1065
+
1066
+ var iterator = A.values(),
1067
+ step;
1068
+
1069
+ var I = 0;
1070
+
1071
+ while ((step = iterator.next(), !step.done)) {
1072
+ if (B.has(step.value))
1073
+ I++;
1074
+ }
1075
+
1076
+ return I;
1077
+ };
1078
+
1079
+ /**
1080
+ * Function returning the size of the union of A & B.
1081
+ *
1082
+ * @param {Set} A - First set.
1083
+ * @param {Set} B - Second set.
1084
+ * @return {number}
1085
+ */
1086
+ exports.unionSize = function(A, B) {
1087
+ var I = exports.intersectionSize(A, B);
1088
+
1089
+ return A.size + B.size - I;
1090
+ };
1091
+
1092
+ /**
1093
+ * Function returning the Jaccard similarity between A & B.
1094
+ *
1095
+ * @param {Set} A - First set.
1096
+ * @param {Set} B - Second set.
1097
+ * @return {number}
1098
+ */
1099
+ exports.jaccard = function(A, B) {
1100
+ var I = exports.intersectionSize(A, B);
1101
+
1102
+ if (I === 0)
1103
+ return 0;
1104
+
1105
+ var U = A.size + B.size - I;
1106
+
1107
+ return I / U;
1108
+ };
1109
+
1110
+ /**
1111
+ * Function returning the overlap coefficient between A & B.
1112
+ *
1113
+ * @param {Set} A - First set.
1114
+ * @param {Set} B - Second set.
1115
+ * @return {number}
1116
+ */
1117
+ exports.overlap = function(A, B) {
1118
+ var I = exports.intersectionSize(A, B);
1119
+
1120
+ if (I === 0)
1121
+ return 0;
1122
+
1123
+ return I / Math.min(A.size, B.size);
1124
+ };
1125
+ } (set));
1126
+ return set;
1127
+ }
1128
+
1129
+ var setExports = requireSet();
1130
+
1131
+ function union(...sets) {
1132
+ let result = /* @__PURE__ */ new Set();
1133
+ for (const set of sets) {
1134
+ for (const value of set) {
1135
+ result.add(value);
1136
+ }
1137
+ }
1138
+ return result;
1139
+ }
1140
+ function intersection(first, ...sets) {
1141
+ let result = /* @__PURE__ */ new Set();
1142
+ if (first.size === 0) {
1143
+ return result;
1144
+ }
1145
+ let other = sets.length > 1 ? setExports.intersection(...sets) : sets[0];
1146
+ if (other.size === 0) {
1147
+ return result;
1148
+ }
1149
+ for (const value of first) {
1150
+ if (other.has(value)) {
1151
+ result.add(value);
1152
+ }
1153
+ }
1154
+ return result;
1155
+ }
1156
+ function difference(a, b) {
1157
+ if (a.size === 0) {
1158
+ return /* @__PURE__ */ new Set();
1159
+ }
1160
+ if (b.size === 0) {
1161
+ return new Set(a);
1162
+ }
1163
+ let result = /* @__PURE__ */ new Set();
1164
+ for (const value of a) {
1165
+ if (!b.has(value)) {
1166
+ result.add(value);
1167
+ }
1168
+ }
1169
+ return result;
1170
+ }
1171
+ function equals(a, b) {
1172
+ return a.size === b.size && [...a].every((value) => b.has(value));
1173
+ }
1174
+ function symmetricDifference(a, b) {
1175
+ return setExports.symmetricDifference(a, b);
1176
+ }
1177
+ function hasIntersection(a, b) {
1178
+ if (a.size === 0 || b.size === 0) {
1179
+ return false;
1180
+ }
1181
+ if (b.size < a.size) {
1182
+ [a, b] = [b, a];
1183
+ }
1184
+ for (const value of a) {
1185
+ if (b.has(value)) {
1186
+ return true;
1187
+ }
1188
+ }
1189
+ return false;
1190
+ }
1191
+
1192
+ function stringHash(str) {
1193
+ let hash = 5381;
1194
+ const len = str.length;
1195
+ invariant(len > 0, "stringHash: empty string");
1196
+ for (let i = 0; i < len; i++) {
1197
+ hash = hash * 33 ^ str.charCodeAt(i);
1198
+ }
1199
+ return (hash >>> 0).toString(36);
1200
+ }
1201
+
1202
+ function commonjsRequire(path) {
1203
+ throw new Error('Could not dynamically require "' + path + '". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.');
1204
+ }
1205
+
1206
+ var object_hash = {exports: {}};
1207
+
1208
+ var hasRequiredObject_hash;
1209
+
1210
+ function requireObject_hash () {
1211
+ if (hasRequiredObject_hash) return object_hash.exports;
1212
+ hasRequiredObject_hash = 1;
1213
+ (function (module, exports) {
1214
+ !function(e){module.exports=e();}(function(){return function r(o,i,u){function s(n,e){if(!i[n]){if(!o[n]){var t="function"==typeof commonjsRequire&&commonjsRequire;if(!e&&t)return t(n,!0);if(a)return a(n,!0);throw new Error("Cannot find module '"+n+"'")}e=i[n]={exports:{}};o[n][0].call(e.exports,function(e){var t=o[n][1][e];return s(t||e)},e,e.exports,r,o,i,u);}return i[n].exports}for(var a="function"==typeof commonjsRequire&&commonjsRequire,e=0;e<u.length;e++)s(u[e]);return s}({1:[function(w,b,m){!function(e,n,s,c,d,h,p,g,y){var r=w("crypto");function t(e,t){t=u(e,t);var n;return void 0===(n="passthrough"!==t.algorithm?r.createHash(t.algorithm):new l).write&&(n.write=n.update,n.end=n.update),f(t,n).dispatch(e),n.update||n.end(""),n.digest?n.digest("buffer"===t.encoding?void 0:t.encoding):(e=n.read(),"buffer"!==t.encoding?e.toString(t.encoding):e)}(m=b.exports=t).sha1=function(e){return t(e)},m.keys=function(e){return t(e,{excludeValues:!0,algorithm:"sha1",encoding:"hex"})},m.MD5=function(e){return t(e,{algorithm:"md5",encoding:"hex"})},m.keysMD5=function(e){return t(e,{algorithm:"md5",encoding:"hex",excludeValues:!0})};var o=r.getHashes?r.getHashes().slice():["sha1","md5"],i=(o.push("passthrough"),["buffer","hex","binary","base64"]);function u(e,t){var n={};if(n.algorithm=(t=t||{}).algorithm||"sha1",n.encoding=t.encoding||"hex",n.excludeValues=!!t.excludeValues,n.algorithm=n.algorithm.toLowerCase(),n.encoding=n.encoding.toLowerCase(),n.ignoreUnknown=!0===t.ignoreUnknown,n.respectType=!1!==t.respectType,n.respectFunctionNames=!1!==t.respectFunctionNames,n.respectFunctionProperties=!1!==t.respectFunctionProperties,n.unorderedArrays=!0===t.unorderedArrays,n.unorderedSets=!1!==t.unorderedSets,n.unorderedObjects=!1!==t.unorderedObjects,n.replacer=t.replacer||void 0,n.excludeKeys=t.excludeKeys||void 0,void 0===e)throw new Error("Object argument required.");for(var r=0;r<o.length;++r)o[r].toLowerCase()===n.algorithm.toLowerCase()&&(n.algorithm=o[r]);if(-1===o.indexOf(n.algorithm))throw new Error('Algorithm "'+n.algorithm+'" not supported. supported values: '+o.join(", "));if(-1===i.indexOf(n.encoding)&&"passthrough"!==n.algorithm)throw new Error('Encoding "'+n.encoding+'" not supported. supported values: '+i.join(", "));return n}function a(e){if("function"==typeof e)return null!=/^function\s+\w*\s*\(\s*\)\s*{\s+\[native code\]\s+}$/i.exec(Function.prototype.toString.call(e))}function f(o,t,i){i=i||[];function u(e){return t.update?t.update(e,"utf8"):t.write(e,"utf8")}return {dispatch:function(e){return this["_"+(null===(e=o.replacer?o.replacer(e):e)?"null":typeof e)](e)},_object:function(t){var n,e=Object.prototype.toString.call(t),r=/\[object (.*)\]/i.exec(e);r=(r=r?r[1]:"unknown:["+e+"]").toLowerCase();if(0<=(e=i.indexOf(t)))return this.dispatch("[CIRCULAR:"+e+"]");if(i.push(t),void 0!==s&&s.isBuffer&&s.isBuffer(t))return u("buffer:"),u(t);if("object"===r||"function"===r||"asyncfunction"===r)return e=Object.keys(t),o.unorderedObjects&&(e=e.sort()),!1===o.respectType||a(t)||e.splice(0,0,"prototype","__proto__","constructor"),o.excludeKeys&&(e=e.filter(function(e){return !o.excludeKeys(e)})),u("object:"+e.length+":"),n=this,e.forEach(function(e){n.dispatch(e),u(":"),o.excludeValues||n.dispatch(t[e]),u(",");});if(!this["_"+r]){if(o.ignoreUnknown)return u("["+r+"]");throw new Error('Unknown object type "'+r+'"')}this["_"+r](t);},_array:function(e,t){t=void 0!==t?t:!1!==o.unorderedArrays;var n=this;if(u("array:"+e.length+":"),!t||e.length<=1)return e.forEach(function(e){return n.dispatch(e)});var r=[],t=e.map(function(e){var t=new l,n=i.slice();return f(o,t,n).dispatch(e),r=r.concat(n.slice(i.length)),t.read().toString()});return i=i.concat(r),t.sort(),this._array(t,!1)},_date:function(e){return u("date:"+e.toJSON())},_symbol:function(e){return u("symbol:"+e.toString())},_error:function(e){return u("error:"+e.toString())},_boolean:function(e){return u("bool:"+e.toString())},_string:function(e){u("string:"+e.length+":"),u(e.toString());},_function:function(e){u("fn:"),a(e)?this.dispatch("[native]"):this.dispatch(e.toString()),!1!==o.respectFunctionNames&&this.dispatch("function-name:"+String(e.name)),o.respectFunctionProperties&&this._object(e);},_number:function(e){return u("number:"+e.toString())},_xml:function(e){return u("xml:"+e.toString())},_null:function(){return u("Null")},_undefined:function(){return u("Undefined")},_regexp:function(e){return u("regex:"+e.toString())},_uint8array:function(e){return u("uint8array:"),this.dispatch(Array.prototype.slice.call(e))},_uint8clampedarray:function(e){return u("uint8clampedarray:"),this.dispatch(Array.prototype.slice.call(e))},_int8array:function(e){return u("int8array:"),this.dispatch(Array.prototype.slice.call(e))},_uint16array:function(e){return u("uint16array:"),this.dispatch(Array.prototype.slice.call(e))},_int16array:function(e){return u("int16array:"),this.dispatch(Array.prototype.slice.call(e))},_uint32array:function(e){return u("uint32array:"),this.dispatch(Array.prototype.slice.call(e))},_int32array:function(e){return u("int32array:"),this.dispatch(Array.prototype.slice.call(e))},_float32array:function(e){return u("float32array:"),this.dispatch(Array.prototype.slice.call(e))},_float64array:function(e){return u("float64array:"),this.dispatch(Array.prototype.slice.call(e))},_arraybuffer:function(e){return u("arraybuffer:"),this.dispatch(new Uint8Array(e))},_url:function(e){return u("url:"+e.toString())},_map:function(e){u("map:");e=Array.from(e);return this._array(e,!1!==o.unorderedSets)},_set:function(e){u("set:");e=Array.from(e);return this._array(e,!1!==o.unorderedSets)},_file:function(e){return u("file:"),this.dispatch([e.name,e.size,e.type,e.lastModfied])},_blob:function(){if(o.ignoreUnknown)return u("[blob]");throw Error('Hashing Blob objects is currently not supported\n(see https://github.com/puleos/object-hash/issues/26)\nUse "options.replacer" or "options.ignoreUnknown"\n')},_domwindow:function(){return u("domwindow")},_bigint:function(e){return u("bigint:"+e.toString())},_process:function(){return u("process")},_timer:function(){return u("timer")},_pipe:function(){return u("pipe")},_tcp:function(){return u("tcp")},_udp:function(){return u("udp")},_tty:function(){return u("tty")},_statwatcher:function(){return u("statwatcher")},_securecontext:function(){return u("securecontext")},_connection:function(){return u("connection")},_zlib:function(){return u("zlib")},_context:function(){return u("context")},_nodescript:function(){return u("nodescript")},_httpparser:function(){return u("httpparser")},_dataview:function(){return u("dataview")},_signal:function(){return u("signal")},_fsevent:function(){return u("fsevent")},_tlswrap:function(){return u("tlswrap")}}}function l(){return {buf:"",write:function(e){this.buf+=e;},end:function(e){this.buf+=e;},read:function(){return this.buf}}}m.writeToStream=function(e,t,n){return void 0===n&&(n=t,t={}),f(t=u(e,t),n).dispatch(e)};}.call(this,w("lYpoI2"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},w("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/fake_9a5aa49d.js","/");},{buffer:3,crypto:5,lYpoI2:11}],2:[function(e,t,f){!function(e,t,n,r,o,i,u,s,a){!function(e){var a="undefined"!=typeof Uint8Array?Uint8Array:Array,t="+".charCodeAt(0),n="/".charCodeAt(0),r="0".charCodeAt(0),o="a".charCodeAt(0),i="A".charCodeAt(0),u="-".charCodeAt(0),s="_".charCodeAt(0);function f(e){e=e.charCodeAt(0);return e===t||e===u?62:e===n||e===s?63:e<r?-1:e<r+10?e-r+26+26:e<i+26?e-i:e<o+26?e-o+26:void 0}e.toByteArray=function(e){var t,n;if(0<e.length%4)throw new Error("Invalid string. Length must be a multiple of 4");var r=e.length,r="="===e.charAt(r-2)?2:"="===e.charAt(r-1)?1:0,o=new a(3*e.length/4-r),i=0<r?e.length-4:e.length,u=0;function s(e){o[u++]=e;}for(t=0;t<i;t+=4,0)s((16711680&(n=f(e.charAt(t))<<18|f(e.charAt(t+1))<<12|f(e.charAt(t+2))<<6|f(e.charAt(t+3))))>>16),s((65280&n)>>8),s(255&n);return 2==r?s(255&(n=f(e.charAt(t))<<2|f(e.charAt(t+1))>>4)):1==r&&(s((n=f(e.charAt(t))<<10|f(e.charAt(t+1))<<4|f(e.charAt(t+2))>>2)>>8&255),s(255&n)),o},e.fromByteArray=function(e){var t,n,r,o,i=e.length%3,u="";function s(e){return "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(e)}for(t=0,r=e.length-i;t<r;t+=3)n=(e[t]<<16)+(e[t+1]<<8)+e[t+2],u+=s((o=n)>>18&63)+s(o>>12&63)+s(o>>6&63)+s(63&o);switch(i){case 1:u=(u+=s((n=e[e.length-1])>>2))+s(n<<4&63)+"==";break;case 2:u=(u=(u+=s((n=(e[e.length-2]<<8)+e[e.length-1])>>10))+s(n>>4&63))+s(n<<2&63)+"=";}return u};}(void 0===f?this.base64js={}:f);}.call(this,e("lYpoI2"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},e("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/base64-js/lib/b64.js","/node_modules/gulp-browserify/node_modules/base64-js/lib");},{buffer:3,lYpoI2:11}],3:[function(O,e,H){!function(e,n,f,r,h,p,g,y,w){var a=O("base64-js"),i=O("ieee754");function f(e,t,n){if(!(this instanceof f))return new f(e,t,n);var r,o,i,u,s=typeof e;if("base64"===t&&"string"==s)for(e=(u=e).trim?u.trim():u.replace(/^\s+|\s+$/g,"");e.length%4!=0;)e+="=";if("number"==s)r=j(e);else if("string"==s)r=f.byteLength(e,t);else {if("object"!=s)throw new Error("First argument needs to be a number, array or string.");r=j(e.length);}if(f._useTypedArrays?o=f._augment(new Uint8Array(r)):((o=this).length=r,o._isBuffer=!0),f._useTypedArrays&&"number"==typeof e.byteLength)o._set(e);else if(C(u=e)||f.isBuffer(u)||u&&"object"==typeof u&&"number"==typeof u.length)for(i=0;i<r;i++)f.isBuffer(e)?o[i]=e.readUInt8(i):o[i]=e[i];else if("string"==s)o.write(e,0,t);else if("number"==s&&!f._useTypedArrays&&!n)for(i=0;i<r;i++)o[i]=0;return o}function b(e,t,n,r){return f._charsWritten=c(function(e){for(var t=[],n=0;n<e.length;n++)t.push(255&e.charCodeAt(n));return t}(t),e,n,r)}function m(e,t,n,r){return f._charsWritten=c(function(e){for(var t,n,r=[],o=0;o<e.length;o++)n=e.charCodeAt(o),t=n>>8,n=n%256,r.push(n),r.push(t);return r}(t),e,n,r)}function v(e,t,n){var r="";n=Math.min(e.length,n);for(var o=t;o<n;o++)r+=String.fromCharCode(e[o]);return r}function o(e,t,n,r){r||(d("boolean"==typeof n,"missing or invalid endian"),d(null!=t,"missing offset"),d(t+1<e.length,"Trying to read beyond buffer length"));var o,r=e.length;if(!(r<=t))return n?(o=e[t],t+1<r&&(o|=e[t+1]<<8)):(o=e[t]<<8,t+1<r&&(o|=e[t+1])),o}function u(e,t,n,r){r||(d("boolean"==typeof n,"missing or invalid endian"),d(null!=t,"missing offset"),d(t+3<e.length,"Trying to read beyond buffer length"));var o,r=e.length;if(!(r<=t))return n?(t+2<r&&(o=e[t+2]<<16),t+1<r&&(o|=e[t+1]<<8),o|=e[t],t+3<r&&(o+=e[t+3]<<24>>>0)):(t+1<r&&(o=e[t+1]<<16),t+2<r&&(o|=e[t+2]<<8),t+3<r&&(o|=e[t+3]),o+=e[t]<<24>>>0),o}function _(e,t,n,r){if(r||(d("boolean"==typeof n,"missing or invalid endian"),d(null!=t,"missing offset"),d(t+1<e.length,"Trying to read beyond buffer length")),!(e.length<=t))return r=o(e,t,n,!0),32768&r?-1*(65535-r+1):r}function E(e,t,n,r){if(r||(d("boolean"==typeof n,"missing or invalid endian"),d(null!=t,"missing offset"),d(t+3<e.length,"Trying to read beyond buffer length")),!(e.length<=t))return r=u(e,t,n,!0),2147483648&r?-1*(4294967295-r+1):r}function I(e,t,n,r){return r||(d("boolean"==typeof n,"missing or invalid endian"),d(t+3<e.length,"Trying to read beyond buffer length")),i.read(e,t,n,23,4)}function A(e,t,n,r){return r||(d("boolean"==typeof n,"missing or invalid endian"),d(t+7<e.length,"Trying to read beyond buffer length")),i.read(e,t,n,52,8)}function s(e,t,n,r,o){o||(d(null!=t,"missing value"),d("boolean"==typeof r,"missing or invalid endian"),d(null!=n,"missing offset"),d(n+1<e.length,"trying to write beyond buffer length"),Y(t,65535));o=e.length;if(!(o<=n))for(var i=0,u=Math.min(o-n,2);i<u;i++)e[n+i]=(t&255<<8*(r?i:1-i))>>>8*(r?i:1-i);}function l(e,t,n,r,o){o||(d(null!=t,"missing value"),d("boolean"==typeof r,"missing or invalid endian"),d(null!=n,"missing offset"),d(n+3<e.length,"trying to write beyond buffer length"),Y(t,4294967295));o=e.length;if(!(o<=n))for(var i=0,u=Math.min(o-n,4);i<u;i++)e[n+i]=t>>>8*(r?i:3-i)&255;}function B(e,t,n,r,o){o||(d(null!=t,"missing value"),d("boolean"==typeof r,"missing or invalid endian"),d(null!=n,"missing offset"),d(n+1<e.length,"Trying to write beyond buffer length"),F(t,32767,-32768)),e.length<=n||s(e,0<=t?t:65535+t+1,n,r,o);}function L(e,t,n,r,o){o||(d(null!=t,"missing value"),d("boolean"==typeof r,"missing or invalid endian"),d(null!=n,"missing offset"),d(n+3<e.length,"Trying to write beyond buffer length"),F(t,2147483647,-2147483648)),e.length<=n||l(e,0<=t?t:4294967295+t+1,n,r,o);}function U(e,t,n,r,o){o||(d(null!=t,"missing value"),d("boolean"==typeof r,"missing or invalid endian"),d(null!=n,"missing offset"),d(n+3<e.length,"Trying to write beyond buffer length"),D(t,34028234663852886e22,-34028234663852886e22)),e.length<=n||i.write(e,t,n,r,23,4);}function x(e,t,n,r,o){o||(d(null!=t,"missing value"),d("boolean"==typeof r,"missing or invalid endian"),d(null!=n,"missing offset"),d(n+7<e.length,"Trying to write beyond buffer length"),D(t,17976931348623157e292,-17976931348623157e292)),e.length<=n||i.write(e,t,n,r,52,8);}H.Buffer=f,H.SlowBuffer=f,H.INSPECT_MAX_BYTES=50,f.poolSize=8192,f._useTypedArrays=function(){try{var e=new ArrayBuffer(0),t=new Uint8Array(e);return t.foo=function(){return 42},42===t.foo()&&"function"==typeof t.subarray}catch(e){return !1}}(),f.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"raw":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return !0;default:return !1}},f.isBuffer=function(e){return !(null==e||!e._isBuffer)},f.byteLength=function(e,t){var n;switch(e+="",t||"utf8"){case"hex":n=e.length/2;break;case"utf8":case"utf-8":n=T(e).length;break;case"ascii":case"binary":case"raw":n=e.length;break;case"base64":n=M(e).length;break;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":n=2*e.length;break;default:throw new Error("Unknown encoding")}return n},f.concat=function(e,t){if(d(C(e),"Usage: Buffer.concat(list, [totalLength])\nlist should be an Array."),0===e.length)return new f(0);if(1===e.length)return e[0];if("number"!=typeof t)for(o=t=0;o<e.length;o++)t+=e[o].length;for(var n=new f(t),r=0,o=0;o<e.length;o++){var i=e[o];i.copy(n,r),r+=i.length;}return n},f.prototype.write=function(e,t,n,r){isFinite(t)?isFinite(n)||(r=n,n=void 0):(a=r,r=t,t=n,n=a),t=Number(t)||0;var o,i,u,s,a=this.length-t;switch((!n||a<(n=Number(n)))&&(n=a),r=String(r||"utf8").toLowerCase()){case"hex":o=function(e,t,n,r){n=Number(n)||0;var o=e.length-n;(!r||o<(r=Number(r)))&&(r=o),d((o=t.length)%2==0,"Invalid hex string"),o/2<r&&(r=o/2);for(var i=0;i<r;i++){var u=parseInt(t.substr(2*i,2),16);d(!isNaN(u),"Invalid hex string"),e[n+i]=u;}return f._charsWritten=2*i,i}(this,e,t,n);break;case"utf8":case"utf-8":i=this,u=t,s=n,o=f._charsWritten=c(T(e),i,u,s);break;case"ascii":case"binary":o=b(this,e,t,n);break;case"base64":i=this,u=t,s=n,o=f._charsWritten=c(M(e),i,u,s);break;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":o=m(this,e,t,n);break;default:throw new Error("Unknown encoding")}return o},f.prototype.toString=function(e,t,n){var r,o,i,u,s=this;if(e=String(e||"utf8").toLowerCase(),t=Number(t)||0,(n=void 0!==n?Number(n):s.length)===t)return "";switch(e){case"hex":r=function(e,t,n){var r=e.length;(!t||t<0)&&(t=0);(!n||n<0||r<n)&&(n=r);for(var o="",i=t;i<n;i++)o+=k(e[i]);return o}(s,t,n);break;case"utf8":case"utf-8":r=function(e,t,n){var r="",o="";n=Math.min(e.length,n);for(var i=t;i<n;i++)e[i]<=127?(r+=N(o)+String.fromCharCode(e[i]),o=""):o+="%"+e[i].toString(16);return r+N(o)}(s,t,n);break;case"ascii":case"binary":r=v(s,t,n);break;case"base64":o=s,u=n,r=0===(i=t)&&u===o.length?a.fromByteArray(o):a.fromByteArray(o.slice(i,u));break;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":r=function(e,t,n){for(var r=e.slice(t,n),o="",i=0;i<r.length;i+=2)o+=String.fromCharCode(r[i]+256*r[i+1]);return o}(s,t,n);break;default:throw new Error("Unknown encoding")}return r},f.prototype.toJSON=function(){return {type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},f.prototype.copy=function(e,t,n,r){if(t=t||0,(r=r||0===r?r:this.length)!==(n=n||0)&&0!==e.length&&0!==this.length){d(n<=r,"sourceEnd < sourceStart"),d(0<=t&&t<e.length,"targetStart out of bounds"),d(0<=n&&n<this.length,"sourceStart out of bounds"),d(0<=r&&r<=this.length,"sourceEnd out of bounds"),r>this.length&&(r=this.length);var o=(r=e.length-t<r-n?e.length-t+n:r)-n;if(o<100||!f._useTypedArrays)for(var i=0;i<o;i++)e[i+t]=this[i+n];else e._set(this.subarray(n,n+o),t);}},f.prototype.slice=function(e,t){var n=this.length;if(e=S(e,n,0),t=S(t,n,n),f._useTypedArrays)return f._augment(this.subarray(e,t));for(var r=t-e,o=new f(r,void 0,!0),i=0;i<r;i++)o[i]=this[i+e];return o},f.prototype.get=function(e){return console.log(".get() is deprecated. Access using array indexes instead."),this.readUInt8(e)},f.prototype.set=function(e,t){return console.log(".set() is deprecated. Access using array indexes instead."),this.writeUInt8(e,t)},f.prototype.readUInt8=function(e,t){if(t||(d(null!=e,"missing offset"),d(e<this.length,"Trying to read beyond buffer length")),!(e>=this.length))return this[e]},f.prototype.readUInt16LE=function(e,t){return o(this,e,!0,t)},f.prototype.readUInt16BE=function(e,t){return o(this,e,!1,t)},f.prototype.readUInt32LE=function(e,t){return u(this,e,!0,t)},f.prototype.readUInt32BE=function(e,t){return u(this,e,!1,t)},f.prototype.readInt8=function(e,t){if(t||(d(null!=e,"missing offset"),d(e<this.length,"Trying to read beyond buffer length")),!(e>=this.length))return 128&this[e]?-1*(255-this[e]+1):this[e]},f.prototype.readInt16LE=function(e,t){return _(this,e,!0,t)},f.prototype.readInt16BE=function(e,t){return _(this,e,!1,t)},f.prototype.readInt32LE=function(e,t){return E(this,e,!0,t)},f.prototype.readInt32BE=function(e,t){return E(this,e,!1,t)},f.prototype.readFloatLE=function(e,t){return I(this,e,!0,t)},f.prototype.readFloatBE=function(e,t){return I(this,e,!1,t)},f.prototype.readDoubleLE=function(e,t){return A(this,e,!0,t)},f.prototype.readDoubleBE=function(e,t){return A(this,e,!1,t)},f.prototype.writeUInt8=function(e,t,n){n||(d(null!=e,"missing value"),d(null!=t,"missing offset"),d(t<this.length,"trying to write beyond buffer length"),Y(e,255)),t>=this.length||(this[t]=e);},f.prototype.writeUInt16LE=function(e,t,n){s(this,e,t,!0,n);},f.prototype.writeUInt16BE=function(e,t,n){s(this,e,t,!1,n);},f.prototype.writeUInt32LE=function(e,t,n){l(this,e,t,!0,n);},f.prototype.writeUInt32BE=function(e,t,n){l(this,e,t,!1,n);},f.prototype.writeInt8=function(e,t,n){n||(d(null!=e,"missing value"),d(null!=t,"missing offset"),d(t<this.length,"Trying to write beyond buffer length"),F(e,127,-128)),t>=this.length||(0<=e?this.writeUInt8(e,t,n):this.writeUInt8(255+e+1,t,n));},f.prototype.writeInt16LE=function(e,t,n){B(this,e,t,!0,n);},f.prototype.writeInt16BE=function(e,t,n){B(this,e,t,!1,n);},f.prototype.writeInt32LE=function(e,t,n){L(this,e,t,!0,n);},f.prototype.writeInt32BE=function(e,t,n){L(this,e,t,!1,n);},f.prototype.writeFloatLE=function(e,t,n){U(this,e,t,!0,n);},f.prototype.writeFloatBE=function(e,t,n){U(this,e,t,!1,n);},f.prototype.writeDoubleLE=function(e,t,n){x(this,e,t,!0,n);},f.prototype.writeDoubleBE=function(e,t,n){x(this,e,t,!1,n);},f.prototype.fill=function(e,t,n){if(t=t||0,n=n||this.length,d("number"==typeof(e="string"==typeof(e=e||0)?e.charCodeAt(0):e)&&!isNaN(e),"value is not a number"),d(t<=n,"end < start"),n!==t&&0!==this.length){d(0<=t&&t<this.length,"start out of bounds"),d(0<=n&&n<=this.length,"end out of bounds");for(var r=t;r<n;r++)this[r]=e;}},f.prototype.inspect=function(){for(var e=[],t=this.length,n=0;n<t;n++)if(e[n]=k(this[n]),n===H.INSPECT_MAX_BYTES){e[n+1]="...";break}return "<Buffer "+e.join(" ")+">"},f.prototype.toArrayBuffer=function(){if("undefined"==typeof Uint8Array)throw new Error("Buffer.toArrayBuffer not supported in this browser");if(f._useTypedArrays)return new f(this).buffer;for(var e=new Uint8Array(this.length),t=0,n=e.length;t<n;t+=1)e[t]=this[t];return e.buffer};var t=f.prototype;function S(e,t,n){return "number"!=typeof e?n:t<=(e=~~e)?t:0<=e||0<=(e+=t)?e:0}function j(e){return (e=~~Math.ceil(+e))<0?0:e}function C(e){return (Array.isArray||function(e){return "[object Array]"===Object.prototype.toString.call(e)})(e)}function k(e){return e<16?"0"+e.toString(16):e.toString(16)}function T(e){for(var t=[],n=0;n<e.length;n++){var r=e.charCodeAt(n);if(r<=127)t.push(e.charCodeAt(n));else for(var o=n,i=(55296<=r&&r<=57343&&n++,encodeURIComponent(e.slice(o,n+1)).substr(1).split("%")),u=0;u<i.length;u++)t.push(parseInt(i[u],16));}return t}function M(e){return a.toByteArray(e)}function c(e,t,n,r){for(var o=0;o<r&&!(o+n>=t.length||o>=e.length);o++)t[o+n]=e[o];return o}function N(e){try{return decodeURIComponent(e)}catch(e){return String.fromCharCode(65533)}}function Y(e,t){d("number"==typeof e,"cannot write a non-number as a number"),d(0<=e,"specified a negative value for writing an unsigned value"),d(e<=t,"value is larger than maximum value for type"),d(Math.floor(e)===e,"value has a fractional component");}function F(e,t,n){d("number"==typeof e,"cannot write a non-number as a number"),d(e<=t,"value larger than maximum allowed value"),d(n<=e,"value smaller than minimum allowed value"),d(Math.floor(e)===e,"value has a fractional component");}function D(e,t,n){d("number"==typeof e,"cannot write a non-number as a number"),d(e<=t,"value larger than maximum allowed value"),d(n<=e,"value smaller than minimum allowed value");}function d(e,t){if(!e)throw new Error(t||"Failed assertion")}f._augment=function(e){return e._isBuffer=!0,e._get=e.get,e._set=e.set,e.get=t.get,e.set=t.set,e.write=t.write,e.toString=t.toString,e.toLocaleString=t.toString,e.toJSON=t.toJSON,e.copy=t.copy,e.slice=t.slice,e.readUInt8=t.readUInt8,e.readUInt16LE=t.readUInt16LE,e.readUInt16BE=t.readUInt16BE,e.readUInt32LE=t.readUInt32LE,e.readUInt32BE=t.readUInt32BE,e.readInt8=t.readInt8,e.readInt16LE=t.readInt16LE,e.readInt16BE=t.readInt16BE,e.readInt32LE=t.readInt32LE,e.readInt32BE=t.readInt32BE,e.readFloatLE=t.readFloatLE,e.readFloatBE=t.readFloatBE,e.readDoubleLE=t.readDoubleLE,e.readDoubleBE=t.readDoubleBE,e.writeUInt8=t.writeUInt8,e.writeUInt16LE=t.writeUInt16LE,e.writeUInt16BE=t.writeUInt16BE,e.writeUInt32LE=t.writeUInt32LE,e.writeUInt32BE=t.writeUInt32BE,e.writeInt8=t.writeInt8,e.writeInt16LE=t.writeInt16LE,e.writeInt16BE=t.writeInt16BE,e.writeInt32LE=t.writeInt32LE,e.writeInt32BE=t.writeInt32BE,e.writeFloatLE=t.writeFloatLE,e.writeFloatBE=t.writeFloatBE,e.writeDoubleLE=t.writeDoubleLE,e.writeDoubleBE=t.writeDoubleBE,e.fill=t.fill,e.inspect=t.inspect,e.toArrayBuffer=t.toArrayBuffer,e};}.call(this,O("lYpoI2"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},O("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/buffer/index.js","/node_modules/gulp-browserify/node_modules/buffer");},{"base64-js":2,buffer:3,ieee754:10,lYpoI2:11}],4:[function(c,d,e){!function(e,t,a,n,r,o,i,u,s){var a=c("buffer").Buffer,f=4,l=new a(f);l.fill(0);d.exports={hash:function(e,t,n,r){for(var o=t(function(e,t){e.length%f!=0&&(n=e.length+(f-e.length%f),e=a.concat([e,l],n));for(var n,r=[],o=t?e.readInt32BE:e.readInt32LE,i=0;i<e.length;i+=f)r.push(o.call(e,i));return r}(e=a.isBuffer(e)?e:new a(e),r),8*e.length),t=r,i=new a(n),u=t?i.writeInt32BE:i.writeInt32LE,s=0;s<o.length;s++)u.call(i,o[s],4*s,!0);return i}};}.call(this,c("lYpoI2"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},c("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/crypto-browserify/helpers.js","/node_modules/gulp-browserify/node_modules/crypto-browserify");},{buffer:3,lYpoI2:11}],5:[function(v,e,_){!function(l,c,u,d,h,p,g,y,w){var u=v("buffer").Buffer,e=v("./sha"),t=v("./sha256"),n=v("./rng"),b={sha1:e,sha256:t,md5:v("./md5")},s=64,a=new u(s);function r(e,n){var r=b[e=e||"sha1"],o=[];return r||i("algorithm:",e,"is not yet supported"),{update:function(e){return u.isBuffer(e)||(e=new u(e)),o.push(e),e.length,this},digest:function(e){var t=u.concat(o),t=n?function(e,t,n){u.isBuffer(t)||(t=new u(t)),u.isBuffer(n)||(n=new u(n)),t.length>s?t=e(t):t.length<s&&(t=u.concat([t,a],s));for(var r=new u(s),o=new u(s),i=0;i<s;i++)r[i]=54^t[i],o[i]=92^t[i];return n=e(u.concat([r,n])),e(u.concat([o,n]))}(r,n,t):r(t);return o=null,e?t.toString(e):t}}}function i(){var e=[].slice.call(arguments).join(" ");throw new Error([e,"we accept pull requests","http://github.com/dominictarr/crypto-browserify"].join("\n"))}a.fill(0),_.createHash=function(e){return r(e)},_.createHmac=r,_.randomBytes=function(e,t){if(!t||!t.call)return new u(n(e));try{t.call(this,void 0,new u(n(e)));}catch(e){t(e);}};var o,f=["createCredentials","createCipher","createCipheriv","createDecipher","createDecipheriv","createSign","createVerify","createDiffieHellman","pbkdf2"],m=function(e){_[e]=function(){i("sorry,",e,"is not implemented yet");};};for(o in f)m(f[o]);}.call(this,v("lYpoI2"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},v("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/crypto-browserify/index.js","/node_modules/gulp-browserify/node_modules/crypto-browserify");},{"./md5":6,"./rng":7,"./sha":8,"./sha256":9,buffer:3,lYpoI2:11}],6:[function(w,b,e){!function(e,r,o,i,u,a,f,l,y){var t=w("./helpers");function n(e,t){e[t>>5]|=128<<t%32,e[14+(t+64>>>9<<4)]=t;for(var n=1732584193,r=-271733879,o=-1732584194,i=271733878,u=0;u<e.length;u+=16){var s=n,a=r,f=o,l=i,n=c(n,r,o,i,e[u+0],7,-680876936),i=c(i,n,r,o,e[u+1],12,-389564586),o=c(o,i,n,r,e[u+2],17,606105819),r=c(r,o,i,n,e[u+3],22,-1044525330);n=c(n,r,o,i,e[u+4],7,-176418897),i=c(i,n,r,o,e[u+5],12,1200080426),o=c(o,i,n,r,e[u+6],17,-1473231341),r=c(r,o,i,n,e[u+7],22,-45705983),n=c(n,r,o,i,e[u+8],7,1770035416),i=c(i,n,r,o,e[u+9],12,-1958414417),o=c(o,i,n,r,e[u+10],17,-42063),r=c(r,o,i,n,e[u+11],22,-1990404162),n=c(n,r,o,i,e[u+12],7,1804603682),i=c(i,n,r,o,e[u+13],12,-40341101),o=c(o,i,n,r,e[u+14],17,-1502002290),n=d(n,r=c(r,o,i,n,e[u+15],22,1236535329),o,i,e[u+1],5,-165796510),i=d(i,n,r,o,e[u+6],9,-1069501632),o=d(o,i,n,r,e[u+11],14,643717713),r=d(r,o,i,n,e[u+0],20,-373897302),n=d(n,r,o,i,e[u+5],5,-701558691),i=d(i,n,r,o,e[u+10],9,38016083),o=d(o,i,n,r,e[u+15],14,-660478335),r=d(r,o,i,n,e[u+4],20,-405537848),n=d(n,r,o,i,e[u+9],5,568446438),i=d(i,n,r,o,e[u+14],9,-1019803690),o=d(o,i,n,r,e[u+3],14,-187363961),r=d(r,o,i,n,e[u+8],20,1163531501),n=d(n,r,o,i,e[u+13],5,-1444681467),i=d(i,n,r,o,e[u+2],9,-51403784),o=d(o,i,n,r,e[u+7],14,1735328473),n=h(n,r=d(r,o,i,n,e[u+12],20,-1926607734),o,i,e[u+5],4,-378558),i=h(i,n,r,o,e[u+8],11,-2022574463),o=h(o,i,n,r,e[u+11],16,1839030562),r=h(r,o,i,n,e[u+14],23,-35309556),n=h(n,r,o,i,e[u+1],4,-1530992060),i=h(i,n,r,o,e[u+4],11,1272893353),o=h(o,i,n,r,e[u+7],16,-155497632),r=h(r,o,i,n,e[u+10],23,-1094730640),n=h(n,r,o,i,e[u+13],4,681279174),i=h(i,n,r,o,e[u+0],11,-358537222),o=h(o,i,n,r,e[u+3],16,-722521979),r=h(r,o,i,n,e[u+6],23,76029189),n=h(n,r,o,i,e[u+9],4,-640364487),i=h(i,n,r,o,e[u+12],11,-421815835),o=h(o,i,n,r,e[u+15],16,530742520),n=p(n,r=h(r,o,i,n,e[u+2],23,-995338651),o,i,e[u+0],6,-198630844),i=p(i,n,r,o,e[u+7],10,1126891415),o=p(o,i,n,r,e[u+14],15,-1416354905),r=p(r,o,i,n,e[u+5],21,-57434055),n=p(n,r,o,i,e[u+12],6,1700485571),i=p(i,n,r,o,e[u+3],10,-1894986606),o=p(o,i,n,r,e[u+10],15,-1051523),r=p(r,o,i,n,e[u+1],21,-2054922799),n=p(n,r,o,i,e[u+8],6,1873313359),i=p(i,n,r,o,e[u+15],10,-30611744),o=p(o,i,n,r,e[u+6],15,-1560198380),r=p(r,o,i,n,e[u+13],21,1309151649),n=p(n,r,o,i,e[u+4],6,-145523070),i=p(i,n,r,o,e[u+11],10,-1120210379),o=p(o,i,n,r,e[u+2],15,718787259),r=p(r,o,i,n,e[u+9],21,-343485551),n=g(n,s),r=g(r,a),o=g(o,f),i=g(i,l);}return Array(n,r,o,i)}function s(e,t,n,r,o,i){return g((t=g(g(t,e),g(r,i)))<<o|t>>>32-o,n)}function c(e,t,n,r,o,i,u){return s(t&n|~t&r,e,t,o,i,u)}function d(e,t,n,r,o,i,u){return s(t&r|n&~r,e,t,o,i,u)}function h(e,t,n,r,o,i,u){return s(t^n^r,e,t,o,i,u)}function p(e,t,n,r,o,i,u){return s(n^(t|~r),e,t,o,i,u)}function g(e,t){var n=(65535&e)+(65535&t);return (e>>16)+(t>>16)+(n>>16)<<16|65535&n}b.exports=function(e){return t.hash(e,n,16)};}.call(this,w("lYpoI2"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},w("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/crypto-browserify/md5.js","/node_modules/gulp-browserify/node_modules/crypto-browserify");},{"./helpers":4,buffer:3,lYpoI2:11}],7:[function(e,l,t){!function(e,t,n,r,o,i,u,s,f){l.exports=function(e){for(var t,n=new Array(e),r=0;r<e;r++)0==(3&r)&&(t=4294967296*Math.random()),n[r]=t>>>((3&r)<<3)&255;return n};}.call(this,e("lYpoI2"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},e("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/crypto-browserify/rng.js","/node_modules/gulp-browserify/node_modules/crypto-browserify");},{buffer:3,lYpoI2:11}],8:[function(c,d,e){!function(e,t,n,r,o,s,a,f,l){var i=c("./helpers");function u(l,c){l[c>>5]|=128<<24-c%32,l[15+(c+64>>9<<4)]=c;for(var e,t,n,r=Array(80),o=1732584193,i=-271733879,u=-1732584194,s=271733878,d=-1009589776,h=0;h<l.length;h+=16){for(var p=o,g=i,y=u,w=s,b=d,a=0;a<80;a++){r[a]=a<16?l[h+a]:v(r[a-3]^r[a-8]^r[a-14]^r[a-16],1);var f=m(m(v(o,5),(f=i,t=u,n=s,(e=a)<20?f&t|~f&n:!(e<40)&&e<60?f&t|f&n|t&n:f^t^n)),m(m(d,r[a]),(e=a)<20?1518500249:e<40?1859775393:e<60?-1894007588:-899497514)),d=s,s=u,u=v(i,30),i=o,o=f;}o=m(o,p),i=m(i,g),u=m(u,y),s=m(s,w),d=m(d,b);}return Array(o,i,u,s,d)}function m(e,t){var n=(65535&e)+(65535&t);return (e>>16)+(t>>16)+(n>>16)<<16|65535&n}function v(e,t){return e<<t|e>>>32-t}d.exports=function(e){return i.hash(e,u,20,!0)};}.call(this,c("lYpoI2"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},c("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/crypto-browserify/sha.js","/node_modules/gulp-browserify/node_modules/crypto-browserify");},{"./helpers":4,buffer:3,lYpoI2:11}],9:[function(c,d,e){!function(e,t,n,r,u,s,a,f,l){function b(e,t){var n=(65535&e)+(65535&t);return (e>>16)+(t>>16)+(n>>16)<<16|65535&n}function o(e,l){var c,d=new Array(1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298),t=new Array(1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225),n=new Array(64);e[l>>5]|=128<<24-l%32,e[15+(l+64>>9<<4)]=l;for(var r,o,h=0;h<e.length;h+=16){for(var i=t[0],u=t[1],s=t[2],p=t[3],a=t[4],g=t[5],y=t[6],w=t[7],f=0;f<64;f++)n[f]=f<16?e[f+h]:b(b(b((o=n[f-2],m(o,17)^m(o,19)^v(o,10)),n[f-7]),(o=n[f-15],m(o,7)^m(o,18)^v(o,3))),n[f-16]),c=b(b(b(b(w,m(o=a,6)^m(o,11)^m(o,25)),a&g^~a&y),d[f]),n[f]),r=b(m(r=i,2)^m(r,13)^m(r,22),i&u^i&s^u&s),w=y,y=g,g=a,a=b(p,c),p=s,s=u,u=i,i=b(c,r);t[0]=b(i,t[0]),t[1]=b(u,t[1]),t[2]=b(s,t[2]),t[3]=b(p,t[3]),t[4]=b(a,t[4]),t[5]=b(g,t[5]),t[6]=b(y,t[6]),t[7]=b(w,t[7]);}return t}var i=c("./helpers"),m=function(e,t){return e>>>t|e<<32-t},v=function(e,t){return e>>>t};d.exports=function(e){return i.hash(e,o,32,!0)};}.call(this,c("lYpoI2"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},c("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/crypto-browserify/sha256.js","/node_modules/gulp-browserify/node_modules/crypto-browserify");},{"./helpers":4,buffer:3,lYpoI2:11}],10:[function(e,t,f){!function(e,t,n,r,o,i,u,s,a){f.read=function(e,t,n,r,o){var i,u,l=8*o-r-1,c=(1<<l)-1,d=c>>1,s=-7,a=n?o-1:0,f=n?-1:1,o=e[t+a];for(a+=f,i=o&(1<<-s)-1,o>>=-s,s+=l;0<s;i=256*i+e[t+a],a+=f,s-=8);for(u=i&(1<<-s)-1,i>>=-s,s+=r;0<s;u=256*u+e[t+a],a+=f,s-=8);if(0===i)i=1-d;else {if(i===c)return u?NaN:1/0*(o?-1:1);u+=Math.pow(2,r),i-=d;}return (o?-1:1)*u*Math.pow(2,i-r)},f.write=function(e,t,l,n,r,c){var o,i,u=8*c-r-1,s=(1<<u)-1,a=s>>1,d=23===r?Math.pow(2,-24)-Math.pow(2,-77):0,f=n?0:c-1,h=n?1:-1,c=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(i=isNaN(t)?1:0,o=s):(o=Math.floor(Math.log(t)/Math.LN2),t*(n=Math.pow(2,-o))<1&&(o--,n*=2),2<=(t+=1<=o+a?d/n:d*Math.pow(2,1-a))*n&&(o++,n/=2),s<=o+a?(i=0,o=s):1<=o+a?(i=(t*n-1)*Math.pow(2,r),o+=a):(i=t*Math.pow(2,a-1)*Math.pow(2,r),o=0));8<=r;e[l+f]=255&i,f+=h,i/=256,r-=8);for(o=o<<r|i,u+=r;0<u;e[l+f]=255&o,f+=h,o/=256,u-=8);e[l+f-h]|=128*c;};}.call(this,e("lYpoI2"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},e("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/ieee754/index.js","/node_modules/gulp-browserify/node_modules/ieee754");},{buffer:3,lYpoI2:11}],11:[function(e,h,t){!function(e,t,n,r,o,f,l,c,d){var i,u,s;function a(){}(e=h.exports={}).nextTick=(u="undefined"!=typeof window&&window.setImmediate,s="undefined"!=typeof window&&window.postMessage&&window.addEventListener,u?function(e){return window.setImmediate(e)}:s?(i=[],window.addEventListener("message",function(e){var t=e.source;t!==window&&null!==t||"process-tick"!==e.data||(e.stopPropagation(),0<i.length&&i.shift()());},!0),function(e){i.push(e),window.postMessage("process-tick","*");}):function(e){setTimeout(e,0);}),e.title="browser",e.browser=!0,e.env={},e.argv=[],e.on=a,e.addListener=a,e.once=a,e.off=a,e.removeListener=a,e.removeAllListeners=a,e.emit=a,e.binding=function(e){throw new Error("process.binding is not supported")},e.cwd=function(){return "/"},e.chdir=function(e){throw new Error("process.chdir is not supported")};}.call(this,e("lYpoI2"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},e("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/process/browser.js","/node_modules/gulp-browserify/node_modules/process");},{buffer:3,lYpoI2:11}]},{},[1])(1)});
1215
+ } (object_hash));
1216
+ return object_hash.exports;
1217
+ }
1218
+
1219
+ var object_hashExports = requireObject_hash();
1220
+ const objectHash = /*@__PURE__*/getDefaultExportFromCjs(object_hashExports);
1221
+
1222
+ export { imap as A, isIterable as B, isome as C, DefaultMap as D, iunique as E, toArray as F, toSet as G, difference as H, equals as I, intersection as J, symmetricDifference as K, union as L, stringHash as M, objectHash as N, x as O, s as P, a as Q, getDefaultExportFromCjs as R, requireForeach as S, requireIterator as T, u as U, d as V, n as W, hasIntersection as X, isSameHierarchy as a, t as b, commonHead as c, compareNatural as d, ancestorsFqn as e, commonAncestor as f, compareByFqnHierarchically as g, compareFqnHierarchically as h, i$1 as i, hierarchyDistance as j, hierarchyLevel as k, l, m, nameFromFqn as n, isAncestor as o, parentFqn as p, isDescendantOf as q, sortNaturalByFqn as r, sortByFqnHierarchically as s, t$1 as t, sortParentsFirst as u, getOrCreate as v, isNonEmptyArray as w, isString as x, ifilter as y, iflat as z };