fluid-dnd 1.0.0-beta.0 → 1.0.1-beta.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.
@@ -1,30 +1,7 @@
1
- var pe = Object.defineProperty;
2
- var he = (t, e, n) => e in t ? pe(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n;
3
- var J = (t, e, n) => he(t, typeof e != "symbol" ? e + "" : e, n);
4
- const H = "horizontal", U = "vertical", Q = "draggable", Wt = "droppable", Ot = "handler-class", _t = "dragging", Xt = "dragging-handler-class", Yt = "dropping", ne = "grabbing", me = "grab", Zt = "disable-transition", Se = (t, e) => {
5
- const n = (c) => t.removeAtEvent(c), s = (c, l) => t.insertEvent(c, l), o = () => t.getLength(), i = (c) => t.getValue(c);
6
- return {
7
- direction: (e == null ? void 0 : e.direction) ?? U,
8
- handlerSelector: (e == null ? void 0 : e.handlerSelector) ?? Q,
9
- draggingClass: (e == null ? void 0 : e.draggingClass) ?? "dragging",
10
- droppableClass: (e == null ? void 0 : e.droppableClass) ?? "droppable-hover",
11
- isDraggable: (e == null ? void 0 : e.isDraggable) ?? (() => !0),
12
- onDragStart: (e == null ? void 0 : e.onDragStart) ?? (() => {
13
- }),
14
- onDragEnd: (e == null ? void 0 : e.onDragEnd) ?? (() => {
15
- }),
16
- droppableGroup: e == null ? void 0 : e.droppableGroup,
17
- onRemoveAtEvent: n,
18
- onInsertEvent: s,
19
- onGetLegth: o,
20
- onGetValue: i,
21
- animationDuration: (e == null ? void 0 : e.animationDuration) ?? 150,
22
- removingClass: (e == null ? void 0 : e.removingClass) ?? "removing",
23
- insertingFromClass: (e == null ? void 0 : e.insertingFromClass) ?? "from-inserting",
24
- delayBeforeRemove: (e == null ? void 0 : e.delayBeforeRemove) ?? 200,
25
- delayBeforeInsert: (e == null ? void 0 : e.delayBeforeInsert) ?? 200
26
- };
27
- }, et = (t, e) => t.classList.contains(e), vt = (t, e, n = !1) => {
1
+ var he = Object.defineProperty;
2
+ var me = (t, e, n) => e in t ? he(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n;
3
+ var J = (t, e, n) => me(t, typeof e != "symbol" ? e + "" : e, n);
4
+ const Q = "draggable", It = "droppable", Ot = "handler-class", _t = "dragging", Wt = "dragging-handler-class", Xt = "dropping", ne = "grabbing", Se = "grab", Zt = "disable-transition", et = (t, e) => t.classList.contains(e), bt = (t, e, n = !1) => {
28
5
  t.classList.toggle(e, n);
29
6
  }, nt = (t, e) => {
30
7
  t.classList.add(e);
@@ -32,12 +9,12 @@ const H = "horizontal", U = "vertical", Q = "draggable", Wt = "droppable", Ot =
32
9
  t.classList.remove(e);
33
10
  }, De = (t, e) => Ct(e).every(
34
11
  (n) => et(t, n)
35
- ), gt = (t) => t ? `.${Ct(t).join(".")}` : "", be = (t, e) => {
12
+ ), gt = (t) => t ? `.${Ct(t).join(".")}` : "", ve = (t, e) => {
36
13
  if (!e)
37
14
  return;
38
15
  const n = Ct(e);
39
16
  t.classList.add(...n);
40
- }, Ct = (t) => t ? t.split(" ").filter((e) => e) : [], ve = () => {
17
+ }, Ct = (t) => t ? t.split(" ").filter((e) => e) : [], H = "horizontal", U = "vertical", be = () => {
41
18
  const { scrollX: t, scrollY: e } = window;
42
19
  return { scrollX: t, scrollY: e };
43
20
  }, qt = (t) => !t || t.trim().length == 0 || t == "normal" ? 0 : parseFloat(t), Te = (t) => t ? parseInt(t) : -1, Ee = (t) => {
@@ -113,7 +90,7 @@ const H = "horizontal", U = "vertical", Q = "draggable", Wt = "droppable", Ot =
113
90
  borderBeforeWidth: s
114
91
  } = w(e), o = Ae(t);
115
92
  return o ? Mt(o)[n] + L(o, s) : 0;
116
- }, It = (t) => window.TouchEvent && t instanceof TouchEvent, at = (t) => t instanceof HTMLElement, ie = (t) => t instanceof MouseEvent, xe = ["onmouseup", "onmousedown", "onmousemove"], we = (t, e, n) => {
93
+ }, Yt = (t) => window.TouchEvent && t instanceof TouchEvent, at = (t) => t instanceof HTMLElement, ie = (t) => t instanceof MouseEvent, xe = ["onmouseup", "onmousedown", "onmousemove"], we = (t, e, n) => {
117
94
  t && (t.style.height = `${e}px`, t.style.width = `${n}px`);
118
95
  }, Tt = (t, e, n) => {
119
96
  !t || !at(t) || (n == 0 && e == 0 ? t.style.transform = "" : t.style.transform = `translate(${n}px,${e}px)`);
@@ -168,7 +145,7 @@ const H = "horizontal", U = "vertical", Q = "draggable", Wt = "droppable", Ot =
168
145
  offsetY: s
169
146
  };
170
147
  }, Me = (t) => {
171
- if (It(t))
148
+ if (Yt(t))
172
149
  return t.touches[0] ?? t.changedTouches[0];
173
150
  if (ie(t))
174
151
  return t;
@@ -207,95 +184,9 @@ const H = "horizontal", U = "vertical", Q = "draggable", Wt = "droppable", Ot =
207
184
  }, ae = (t, e = {}) => {
208
185
  for (const n of Object.keys(e)) {
209
186
  const s = e[n];
210
- s != null && We(t, `--${n}`, s);
187
+ s != null && Ie(t, `--${n}`, s);
211
188
  }
212
- }, We = (t, e, n) => t && t.style.setProperty(e, n), Xe = (t, e, n) => {
213
- n != 0 && (e === "vertical" ? t.scrollBy(0, n) : t.scrollBy(n, 0));
214
- }, Ye = (t, e, n) => {
215
- const { scrollDistance: s, clientDistance: o, scrollElement: i } = w(t);
216
- return n[i] / (e[s] - e[o]);
217
- }, Ie = (t) => {
218
- let e = { offsetX: 0, offsetY: 0 }, n = { top: 0, left: 0 }, s = { x: 0, y: 0 };
219
- const o = (f) => {
220
- t.style.transform = `translate( ${f.x}px, ${f.y}px)`;
221
- }, i = (f) => {
222
- t.style.top = `${f.top}px`, t.style.left = `${f.left}px`;
223
- };
224
- return [
225
- (f, p, h, v) => {
226
- const B = (D) => {
227
- const {
228
- beforeMargin: b,
229
- borderBeforeWidth: R,
230
- before: N,
231
- offset: W,
232
- scroll: X,
233
- page: Y,
234
- inner: F,
235
- distance: st,
236
- axis: _,
237
- getRect: P
238
- } = w(D), k = h[Y], q = window[X], z = window[F], I = P(f)[st], j = L(f, R), V = L(f, b), $ = k - e[W], tt = re(f, D);
239
- if ($ >= q - I / 2 && $ <= q + z) {
240
- const lt = $ - n[N] - j - V - q - tt;
241
- return M(D), lt;
242
- }
243
- return s[_];
244
- }, M = (D) => {
245
- if (f && et(f, _t) && D === v) {
246
- const { before: b, distance: R, axis: N, getRect: W } = w(v), X = W(f)[R], Y = W(p), F = n[b] - Y[b] + s[N], _ = Y[R] - X, P = F / _, k = X / _, q = 0.1, z = 0.2, I = 0.8;
247
- let j = 0;
248
- const V = dt(f, p);
249
- !V && P < z && P > -k ? j = P / z - 1 : !V && P > I && P < 1 + k && (j = 1 / (1 - I) * (P - I));
250
- const $ = q * X * j;
251
- Xe(p, v, $);
252
- }
253
- }, S = (D) => {
254
- const { axis: b } = w(D);
255
- s[b] = B(D), o(s);
256
- };
257
- S(H), S(U);
258
- },
259
- (f, p) => {
260
- const [h, v, B, M] = _e(
261
- f,
262
- p,
263
- t
264
- );
265
- n = {
266
- top: h,
267
- left: v
268
- }, i(n), e = { offsetX: B, offsetY: M };
269
- }
270
- ];
271
- }, Lt = (t, e, n) => {
272
- const { borderBeforeWidth: s, before: o, getRect: i } = w(t);
273
- return i(e)[o] - i(n)[o] - L(n, s);
274
- }, Ve = (t, e) => {
275
- let { offsetX: n, offsetY: s, target: o } = t, i = He(o, e);
276
- const c = o;
277
- return c && i && !c.isSameNode(i) && (n += Lt(H, c, i), s += Lt(U, c, i)), i && e != o && (n += Lt(H, i, e), s += Lt(U, i, e)), [n, s];
278
- }, He = (t, e) => {
279
- const n = t == null ? void 0 : t.closest(`.${Ot}`);
280
- return n && n.isSameNode(e) ? t : n;
281
- }, Qt = (t, e, n, s) => {
282
- const { offset: o, beforeMargin: i, page: c, borderBeforeWidth: l, scroll: f } = w(t), p = re(n, t);
283
- return e[c] - s[o] - L(n, i) - L(n, l) - window[f] - p;
284
- }, _e = (t, e, n) => {
285
- const [s, o] = Ve(t, n);
286
- return [
287
- Qt(U, t, e, {
288
- offsetX: s,
289
- offsetY: o
290
- }),
291
- Qt(H, t, e, {
292
- offsetX: s,
293
- offsetY: o
294
- }),
295
- s,
296
- o
297
- ];
298
- }, le = "startDrag", Pt = "drag", zt = "startDrop", qe = "drop", pt = "temp-child", ue = "cubic-bezier(0.2, 0, 0, 1)", ze = (t) => t === qe || t === zt, Ht = (t) => !t || t.length == 0 ? 0 : qt(t.replace("px", "")), je = (t, e) => {
189
+ }, Ie = (t, e, n) => t && t.style.setProperty(e, n), le = "startDrag", Pt = "drag", zt = "startDrop", We = "drop", pt = "temp-child", ue = "cubic-bezier(0.2, 0, 0, 1)", Xe = (t) => t === We || t === zt, Ht = (t) => !t || t.length == 0 ? 0 : qt(t.replace("px", "")), Ye = (t, e) => {
299
190
  const n = getComputedStyle(t)[e];
300
191
  if (n.match("%")) {
301
192
  const o = qt(n.replace("%", "")), { width: i } = t.getBoundingClientRect();
@@ -308,17 +199,17 @@ const H = "horizontal", U = "vertical", Q = "draggable", Wt = "droppable", Ot =
308
199
  0,
309
200
  !1
310
201
  ];
311
- const n = je(t, e), s = getComputedStyle(t).display, o = n > 0 || s === "flex";
202
+ const n = Ye(t, e), s = getComputedStyle(t).display, o = n > 0 || s === "flex";
312
203
  return [n, o];
313
- }, ke = (t) => {
204
+ }, Ve = (t) => {
314
205
  const { top: e, left: n } = getComputedStyle(t);
315
206
  return [Ht(e), Ht(n)];
316
- }, Ze = (t, e) => {
207
+ }, He = (t, e) => {
317
208
  const { gap: n } = w(e), [s, o] = jt(t, n);
318
209
  return o ? s : 0;
319
210
  };
320
211
  function Et(t, e, n, s, o = t.previousElementSibling, i = t.nextElementSibling) {
321
- let { height: c, width: l } = Je(
212
+ let { height: c, width: l } = _e(
322
213
  n,
323
214
  t,
324
215
  o,
@@ -326,28 +217,28 @@ function Et(t, e, n, s, o = t.previousElementSibling, i = t.nextElementSibling)
326
217
  );
327
218
  return dt(t, s) && e == Pt && (c = 0, l = 0), { height: c, width: l };
328
219
  }
329
- const Je = (t, e, n, s) => {
220
+ const _e = (t, e, n, s) => {
330
221
  const {
331
222
  afterMargin: o,
332
223
  beforeMargin: i,
333
224
  distance: c,
334
225
  gap: l,
335
226
  getRect: f
336
- } = w(t), p = L(e, o), h = L(e, i), v = L(s, i), [B, M] = jt(
227
+ } = w(t), p = L(e, o), h = L(e, i), b = L(s, i), [B, M] = jt(
337
228
  e.parentElement,
338
229
  l
339
230
  ), S = f(e)[c];
340
231
  if (M)
341
- return Ut(S, h, p, B, 0, t);
342
- const [D, b, R] = Ke(
232
+ return Qt(S, h, p, B, 0, t);
233
+ const [D, v, R] = qe(
343
234
  n,
344
- v,
235
+ b,
345
236
  p,
346
237
  h,
347
238
  o
348
239
  );
349
- return Ut(S, b, D, 0, R, t);
350
- }, Ke = (t, e, n, s, o) => {
240
+ return Qt(S, v, D, 0, R, t);
241
+ }, qe = (t, e, n, s, o) => {
351
242
  const i = Math.max(e, n);
352
243
  let c = s, l = e;
353
244
  if (t) {
@@ -358,7 +249,7 @@ const Je = (t, e, n, s) => {
358
249
  c = Math.max(f, s), l = Math.max(l, f);
359
250
  }
360
251
  return [i, c, l];
361
- }, Ut = (t, e, n, s, o, i) => Qe(i, t + e + n + s - o), Qe = (t, e) => t == H ? { width: e, height: 0 } : { width: 0, height: e }, te = (t, e) => {
252
+ }, Qt = (t, e, n, s, o, i) => ze(i, t + e + n + s - o), ze = (t, e) => t == H ? { width: e, height: 0 } : { width: 0, height: e }, Ut = (t, e) => {
362
253
  const {
363
254
  borderBeforeWidth: n,
364
255
  paddingBefore: s,
@@ -366,79 +257,79 @@ const Je = (t, e, n, s) => {
366
257
  getRect: i
367
258
  } = w(t), c = L(e, n), l = L(e, s), f = i(e)[o];
368
259
  return c + l + f;
369
- }, Ue = (t, e) => {
370
- const [n, s] = ke(e), o = te(U, t);
260
+ }, je = (t, e) => {
261
+ const [n, s] = Ve(e), o = Ut(U, t);
371
262
  return [
372
- te(H, t) - s,
263
+ Ut(H, t) - s,
373
264
  o - n
374
265
  ];
375
266
  };
376
- function tn(t, e, n, s, o, i, c, l, f) {
267
+ function ke(t, e, n, s, o, i, c, l, f) {
377
268
  let p = 0, h = 0;
378
- const v = !!(n < 0 && f);
379
- if (n === s && !v)
380
- return ee(
269
+ const b = !!(n < 0 && f);
270
+ if (n === s && !b)
271
+ return te(
381
272
  { height: p, width: h },
382
273
  t,
383
274
  o,
384
275
  c,
385
- v
276
+ b
386
277
  );
387
- const [B, M, S, D] = sn(e, n, s, f);
388
- if (v) {
389
- const [tt, ot] = Ue(l, f);
278
+ const [B, M, S, D] = Ke(e, n, s, f);
279
+ if (b) {
280
+ const [tt, ot] = je(l, f);
390
281
  p += ot, h += tt;
391
282
  }
392
283
  const {
393
- scrollElement: b,
284
+ scrollElement: v,
394
285
  beforeMargin: R,
395
286
  afterMargin: N,
396
- distance: W,
397
- gap: X
398
- } = w(t), [Y, F] = jt(l, X), [
287
+ distance: I,
288
+ gap: W
289
+ } = w(t), [X, F] = jt(l, W), [
399
290
  st,
400
291
  _,
401
292
  P
402
- ] = rn(
293
+ ] = Ue(
403
294
  R,
404
295
  N,
405
296
  B,
406
297
  M == null ? void 0 : M.previousElementSibling,
407
298
  D,
408
299
  F,
409
- v
410
- ), [k, q, z] = on(
300
+ b
301
+ ), [k, q, z] = Qe(
411
302
  R,
412
303
  N,
413
- W,
304
+ I,
414
305
  S,
415
- Y,
306
+ X,
416
307
  F
417
- ), I = nn(
308
+ ), Y = Je(
418
309
  q,
419
310
  k,
420
311
  z,
421
312
  _,
422
313
  st,
423
- Y
424
- ), j = v ? l[b] : en(b, l, i), $ = (D ? I - P : P - I) - j;
425
- return t === U ? p += $ : t === H && (h += $), ee(
314
+ X
315
+ ), j = b ? l[v] : Ze(v, l, i), $ = (D ? Y - P : P - Y) - j;
316
+ return t === U ? p += $ : t === H && (h += $), te(
426
317
  { height: p, width: h },
427
318
  t,
428
319
  o,
429
320
  c,
430
- v
321
+ b
431
322
  );
432
323
  }
433
- const en = (t, e, n) => {
324
+ const Ze = (t, e, n) => {
434
325
  const s = e[t], o = n[t];
435
326
  return s - o;
436
- }, nn = (t, e, n, s, o, i) => {
327
+ }, Je = (t, e, n, s, o, i) => {
437
328
  const c = Math.max(e, o);
438
329
  return Math.max(n, s) + t + c + i;
439
- }, sn = (t, e, n, s) => {
330
+ }, Ke = (t, e, n, s) => {
440
331
  const o = e < n, [i, c] = [e, n].toSorted(
441
- (h, v) => h - v
332
+ (h, b) => h - b
442
333
  ), l = t[e] ?? s, f = t[n];
443
334
  let p = o ? t.slice(i + 1, c + 1) : t.slice(i, c);
444
335
  return i < 0 && s && (p = t.slice(i + 1, c)), [
@@ -447,22 +338,22 @@ const en = (t, e, n) => {
447
338
  p,
448
339
  o
449
340
  ];
450
- }, on = (t, e, n, s, o, i) => {
341
+ }, Qe = (t, e, n, s, o, i) => {
451
342
  if (s.length == 0)
452
343
  return [0, 0, 0];
453
344
  const c = L(s[0], t);
454
345
  let l = 0, f = -c;
455
346
  for (const [p, h] of s.entries()) {
456
- const v = h.getBoundingClientRect()[n], B = L(h, t);
457
- i && (l += B), i && p > 0 ? l += o : l = Math.max(l, B), f += l + v, l = L(h, e);
347
+ const b = h.getBoundingClientRect()[n], B = L(h, t);
348
+ i && (l += B), i && p > 0 ? l += o : l = Math.max(l, B), f += l + b, l = L(h, e);
458
349
  }
459
350
  return [c, f, l];
460
- }, ee = (t, e, n, s, o) => {
351
+ }, te = (t, e, n, s, o) => {
461
352
  const { scroll: i, distance: c } = w(e), l = window[i], f = n[i], p = o ? 0 : f - 2 * l + s[i];
462
353
  return t[c] += p, t;
463
- }, rn = (t, e, n, s, o, i, c) => {
354
+ }, Ue = (t, e, n, s, o, i, c) => {
464
355
  const l = o ? n.previousElementSibling : s;
465
- return cn(
356
+ return tn(
466
357
  t,
467
358
  e,
468
359
  l,
@@ -470,7 +361,7 @@ const en = (t, e, n) => {
470
361
  i,
471
362
  c
472
363
  );
473
- }, cn = (t, e, n, s, o, i) => {
364
+ }, tn = (t, e, n, s, o, i) => {
474
365
  if (o)
475
366
  return [0, 0, 0];
476
367
  const c = L(
@@ -486,18 +377,23 @@ const en = (t, e, n) => {
486
377
  });
487
378
  });
488
379
  return s.observe(e, n), s;
489
- }, an = "startDrag", fe = "cubic-bezier(0.2, 0, 0, 1)", ln = (t, e, n) => {
380
+ }, en = (t, e, n) => {
381
+ n != 0 && (e === "vertical" ? t.scrollBy(0, n) : t.scrollBy(n, 0));
382
+ }, nn = (t, e, n) => {
383
+ const { scrollDistance: s, clientDistance: o, scrollElement: i } = w(t);
384
+ return n[i] / (e[s] - e[o]);
385
+ }, sn = "startDrag", fe = "cubic-bezier(0.2, 0, 0, 1)", on = (t, e, n) => {
490
386
  let s = Et(
491
387
  e,
492
- an,
388
+ sn,
493
389
  n,
494
390
  t
495
391
  );
496
- const o = Ze(t, n), { distance: i } = w(n);
392
+ const o = He(t, n), { distance: i } = w(n);
497
393
  s[i] -= o;
498
- const [c, l] = un(n, e);
394
+ const [c, l] = rn(n, e);
499
395
  return s[l] = c, s;
500
- }, un = (t, e) => {
396
+ }, rn = (t, e) => {
501
397
  const n = t == H ? U : H, { distance: s, getRect: o } = w(n);
502
398
  return [
503
399
  o(e)[s],
@@ -505,22 +401,22 @@ const en = (t, e, n) => {
505
401
  ];
506
402
  }, ht = (t, e, n) => {
507
403
  we(t, e, n), t.style.minWidth = `${n}px`;
508
- }, fn = (t, e, n) => (s) => {
404
+ }, cn = (t, e, n) => (s) => {
509
405
  e.contains(t) && (ht(t, n.height, n.width), s.disconnect());
510
- }, gn = (t, e) => {
406
+ }, an = (t, e) => {
511
407
  if (!e)
512
408
  return;
513
- const { droppable: n, config: s, scroll: o } = t, { direction: i } = s, c = Ye(s.direction, n, o) > 0.99, { scrollDistance: l, clientDistance: f, scrollElement: p } = w(i);
409
+ const { droppable: n, config: s, scroll: o } = t, { direction: i } = s, c = nn(s.direction, n, o) > 0.99, { scrollDistance: l, clientDistance: f, scrollElement: p } = w(i);
514
410
  c && (n[p] = n[l] - n[f]);
515
411
  }, ge = (t, e, n, s) => {
516
412
  if (!n)
517
413
  return;
518
414
  const { droppable: o, config: i } = n, { direction: c, animationDuration: l } = i;
519
- if (gn(n, e), o.querySelector(`.${pt}`) || !t)
415
+ if (an(n, e), o.querySelector(`.${pt}`) || !t)
520
416
  return;
521
417
  var f = t.tagName == "LI" ? "DIV" : t.tagName, p = document.createElement(f);
522
418
  nt(p, pt), ht(p, 0, 0);
523
- const h = ln(o, t, c);
419
+ const h = on(o, t, c);
524
420
  return Nt(
525
421
  p,
526
422
  l,
@@ -533,20 +429,20 @@ const en = (t, e, n) => {
533
429
  return;
534
430
  const [c, l, f] = i;
535
431
  e.isSameNode(f) && ht(c, l.height, l.width), kt(
536
- fn(c, f, l),
432
+ cn(c, f, l),
537
433
  f,
538
434
  {
539
435
  childList: !0,
540
436
  subtree: !0
541
437
  }
542
438
  ), f.appendChild(c);
543
- }, dn = (t, e, n) => {
439
+ }, ln = (t, e, n) => {
544
440
  const s = ge(t, e, n);
545
441
  if (!s)
546
442
  return;
547
443
  const [o, i, c] = s;
548
- c.appendChild(o), pn(o, i);
549
- }, pn = (t, e) => requestAnimationFrame(() => {
444
+ c.appendChild(o), un(o, i);
445
+ }, un = (t, e) => requestAnimationFrame(() => {
550
446
  ht(t, e.height, e.width), requestAnimationFrame(() => {
551
447
  Nt(
552
448
  t,
@@ -555,7 +451,7 @@ const en = (t, e, n) => {
555
451
  "width, min-width, height"
556
452
  );
557
453
  });
558
- }), hn = (t, e, n, s, o = !0) => {
454
+ }), fn = (t, e, n, s, o = !0) => {
559
455
  if (n) {
560
456
  var i = document.querySelectorAll(
561
457
  `${gt(n)} > .${pt}`
@@ -570,22 +466,22 @@ const en = (t, e, n) => {
570
466
  }, s);
571
467
  });
572
468
  }
573
- }, bt = (t, e, n = !1) => {
469
+ }, vt = (t, e, n = !1) => {
574
470
  var s = t.querySelectorAll(`.${pt}`);
575
471
  s.forEach((o) => {
576
472
  n ? (ht(o, 0, 0), setTimeout(() => {
577
473
  t.contains(o) && t.removeChild(o);
578
474
  }, e)) : t.removeChild(o);
579
475
  });
580
- }, mn = 50;
581
- function Sn(t, e, n, s, o, i) {
476
+ }, gn = 50;
477
+ function dn(t, e, n, s, o, i) {
582
478
  let c = e;
583
479
  const {
584
480
  direction: l,
585
481
  handlerSelector: f,
586
482
  onRemoveAtEvent: p,
587
483
  animationDuration: h,
588
- delayBeforeInsert: v,
484
+ delayBeforeInsert: b,
589
485
  draggingClass: B
590
486
  } = t, M = (r, u, g, m, C) => {
591
487
  if (!m)
@@ -596,7 +492,7 @@ function Sn(t, e, n, s, o, i) {
596
492
  E.direction,
597
493
  T
598
494
  );
599
- ze(u) ? F(
495
+ Xe(u) ? F(
600
496
  r,
601
497
  u,
602
498
  A,
@@ -617,10 +513,10 @@ function Sn(t, e, n, s, o, i) {
617
513
  g
618
514
  ), { onInsertEvent: E } = t, A = oe(g);
619
515
  for (const [O, x] of A.entries())
620
- et(x, Q) && O >= r && Y(x, T);
516
+ et(x, Q) && O >= r && X(x, T);
621
517
  C(), setTimeout(() => {
622
- E(r, m), bt(n, 0, !0), Dn(r, g, t), tt(u), V(u, n);
623
- }, v);
518
+ E(r, m), vt(n, 0, !0), de(r, g, t), tt(u), V(u, n);
519
+ }, b);
624
520
  }, D = (r, u, g, m) => {
625
521
  if (!g || !g.droppable || !g.config)
626
522
  return;
@@ -634,16 +530,16 @@ function Sn(t, e, n, s, o, i) {
634
530
  C
635
531
  );
636
532
  for (const [O, x] of E.entries())
637
- O >= r && (X(x, A), setTimeout(() => {
533
+ O >= r && (W(x, A), setTimeout(() => {
638
534
  m(x);
639
535
  }, h));
640
- }, b = (r) => {
641
- bt(n, h, !0), setTimeout(() => {
536
+ }, v = (r) => {
537
+ vt(n, h, !0), setTimeout(() => {
642
538
  tt(r), V(r, n);
643
539
  }, h);
644
540
  }, R = (r, u, g, m) => {
645
541
  const { config: C, droppable: T } = m, [E] = Rt(r, T), A = dt(r, T);
646
- E.length == 0 && W(
542
+ E.length == 0 && I(
647
543
  g,
648
544
  1,
649
545
  C.direction,
@@ -663,25 +559,25 @@ function Sn(t, e, n, s, o, i) {
663
559
  else if (!A)
664
560
  continue;
665
561
  const Z = E.length - O;
666
- W(
562
+ I(
667
563
  g,
668
564
  Z,
669
565
  C.direction,
670
566
  E
671
- ), u === le ? X(x, g) : u === Pt && Y(x, g);
567
+ ), u === le ? W(x, g) : u === Pt && X(x, g);
672
568
  }
673
569
  }, N = (r, u, g, m) => {
674
570
  const { before: C, distance: T, axis: E, getRect: A } = w(r), O = A(u), x = A(g), G = O[C], Z = x[C], ut = x[T], mt = Z + ut / 2, St = Ee(g)[E], ct = mt - St;
675
571
  return G > ct ? { height: 0, width: 0 } : m;
676
- }, W = (r, u, g, m) => {
572
+ }, I = (r, u, g, m) => {
677
573
  const C = m.filter(
678
574
  (E) => et(E, Q)
679
575
  ).length, { distance: T } = w(g);
680
576
  r[T] == 0 ? c = Math.max(c, u) : c = Math.min(c, u - 1), c = Math.min(c, C);
681
- }, X = (r, u) => {
577
+ }, W = (r, u) => {
682
578
  const { width: g, height: m } = u;
683
579
  Tt(r, m, g);
684
- }, Y = (r, u) => {
580
+ }, X = (r, u) => {
685
581
  const { width: g, height: m } = u;
686
582
  Tt(r, m, g), Nt(r, h, ue);
687
583
  }, F = (r, u, g, m, C, T) => {
@@ -704,7 +600,7 @@ function Sn(t, e, n, s, o, i) {
704
600
  mt,
705
601
  St
706
602
  );
707
- const Ft = ve(), At = tn(
603
+ const Ft = be(), At = ke(
708
604
  O.direction,
709
605
  Z,
710
606
  G,
@@ -752,8 +648,8 @@ function Sn(t, e, n, s, o, i) {
752
648
  );
753
649
  }, P = (r, u, g, m, C) => {
754
650
  const { onInsertEvent: T, onDragEnd: E } = g;
755
- nt(u, Yt), z(u, n, m, () => {
756
- if (yt(u, Yt), C != null) {
651
+ nt(u, Xt), z(u, n, m, () => {
652
+ if (yt(u, Xt), C != null) {
757
653
  const A = p(C);
758
654
  A != null && (T(r, A), E({ value: A, index: r })), q(u), k();
759
655
  }
@@ -769,13 +665,13 @@ function Sn(t, e, n, s, o, i) {
769
665
  }, q = (r) => {
770
666
  setTimeout(() => {
771
667
  yt(r, B);
772
- }, mn);
668
+ }, gn);
773
669
  }, z = (r, u, g, m) => {
774
670
  setTimeout(() => {
775
- m && m(), I(u, g), j(g), tt(r), V(r, u), V(r, g);
671
+ m && m(), Y(u, g), j(g), tt(r), V(r, u), V(r, g);
776
672
  }, h);
777
- }, I = (r, u) => {
778
- r.isSameNode(u) ? bt(r, h) : (bt(r, h, !0), bt(u, h));
673
+ }, Y = (r, u) => {
674
+ r.isSameNode(u) ? vt(r, h) : (vt(r, h, !0), vt(u, h));
779
675
  }, j = (r) => {
780
676
  if (n.isSameNode(r))
781
677
  return;
@@ -797,19 +693,19 @@ function Sn(t, e, n, s, o, i) {
797
693
  });
798
694
  }, ot = (r, u) => {
799
695
  const g = u.querySelector(f);
800
- vt(document.body, ne, r), vt(g || u, Xt, r);
696
+ bt(document.body, ne, r), bt(g || u, Wt, r);
801
697
  }, lt = (r, u) => {
802
- vt(r, _t, u), ot(u, r), o.toggleGrabClass(!u);
698
+ bt(r, _t, u), ot(u, r), o.toggleGrabClass(!u);
803
699
  };
804
700
  return [
805
701
  M,
806
702
  D,
807
703
  S,
808
- b,
704
+ v,
809
705
  lt
810
706
  ];
811
707
  }
812
- const Dn = (t, e, n) => {
708
+ const de = (t, e, n) => {
813
709
  const { insertingFromClass: s, animationDuration: o } = n, i = kt(() => {
814
710
  const l = oe(e)[t];
815
711
  nt(l, s), nt(l, Zt), setTimeout(() => {
@@ -818,6 +714,117 @@ const Dn = (t, e, n) => {
818
714
  }, e, {
819
715
  childList: !0
820
716
  });
717
+ }, Cn = (t, e, n, s) => {
718
+ if (!e)
719
+ return;
720
+ const { onInsertEvent: o, delayBeforeInsert: i } = t;
721
+ setTimeout(() => {
722
+ o(n, s), de(n, e, t);
723
+ }, i);
724
+ }, pn = (t, e) => {
725
+ const n = (c) => t.removeAtEvent(c), s = (c, l) => t.insertEvent(c, l), o = () => t.getLength(), i = (c) => t.getValue(c);
726
+ return {
727
+ direction: (e == null ? void 0 : e.direction) ?? U,
728
+ handlerSelector: (e == null ? void 0 : e.handlerSelector) ?? Q,
729
+ draggingClass: (e == null ? void 0 : e.draggingClass) ?? "dragging",
730
+ droppableClass: (e == null ? void 0 : e.droppableClass) ?? "droppable-hover",
731
+ isDraggable: (e == null ? void 0 : e.isDraggable) ?? (() => !0),
732
+ onDragStart: (e == null ? void 0 : e.onDragStart) ?? (() => {
733
+ }),
734
+ onDragEnd: (e == null ? void 0 : e.onDragEnd) ?? (() => {
735
+ }),
736
+ droppableGroup: e == null ? void 0 : e.droppableGroup,
737
+ onRemoveAtEvent: n,
738
+ onInsertEvent: s,
739
+ onGetLegth: o,
740
+ onGetValue: i,
741
+ animationDuration: (e == null ? void 0 : e.animationDuration) ?? 150,
742
+ removingClass: (e == null ? void 0 : e.removingClass) ?? "removing",
743
+ insertingFromClass: (e == null ? void 0 : e.insertingFromClass) ?? "from-inserting",
744
+ delayBeforeRemove: (e == null ? void 0 : e.delayBeforeRemove) ?? 200,
745
+ delayBeforeInsert: (e == null ? void 0 : e.delayBeforeInsert) ?? 200
746
+ };
747
+ }, hn = (t) => {
748
+ let e = { offsetX: 0, offsetY: 0 }, n = { top: 0, left: 0 }, s = { x: 0, y: 0 };
749
+ const o = (f) => {
750
+ t.style.transform = `translate( ${f.x}px, ${f.y}px)`;
751
+ }, i = (f) => {
752
+ t.style.top = `${f.top}px`, t.style.left = `${f.left}px`;
753
+ };
754
+ return [
755
+ (f, p, h, b) => {
756
+ const B = (D) => {
757
+ const {
758
+ beforeMargin: v,
759
+ borderBeforeWidth: R,
760
+ before: N,
761
+ offset: I,
762
+ scroll: W,
763
+ page: X,
764
+ inner: F,
765
+ distance: st,
766
+ axis: _,
767
+ getRect: P
768
+ } = w(D), k = h[X], q = window[W], z = window[F], Y = P(f)[st], j = L(f, R), V = L(f, v), $ = k - e[I], tt = re(f, D);
769
+ if ($ >= q - Y / 2 && $ <= q + z) {
770
+ const lt = $ - n[N] - j - V - q - tt;
771
+ return M(D), lt;
772
+ }
773
+ return s[_];
774
+ }, M = (D) => {
775
+ if (f && et(f, _t) && D === b) {
776
+ const { before: v, distance: R, axis: N, getRect: I } = w(b), W = I(f)[R], X = I(p), F = n[v] - X[v] + s[N], _ = X[R] - W, P = F / _, k = W / _, q = 0.1, z = 0.2, Y = 0.8;
777
+ let j = 0;
778
+ const V = dt(f, p);
779
+ !V && P < z && P > -k ? j = P / z - 1 : !V && P > Y && P < 1 + k && (j = 1 / (1 - Y) * (P - Y));
780
+ const $ = q * W * j;
781
+ en(p, b, $);
782
+ }
783
+ }, S = (D) => {
784
+ const { axis: v } = w(D);
785
+ s[v] = B(D), o(s);
786
+ };
787
+ S(H), S(U);
788
+ },
789
+ (f, p) => {
790
+ const [h, b, B, M] = Dn(
791
+ f,
792
+ p,
793
+ t
794
+ );
795
+ n = {
796
+ top: h,
797
+ left: b
798
+ }, i(n), e = { offsetX: B, offsetY: M };
799
+ }
800
+ ];
801
+ }, Lt = (t, e, n) => {
802
+ const { borderBeforeWidth: s, before: o, getRect: i } = w(t);
803
+ return i(e)[o] - i(n)[o] - L(n, s);
804
+ }, mn = (t, e) => {
805
+ let { offsetX: n, offsetY: s, target: o } = t, i = Sn(o, e);
806
+ const c = o;
807
+ return c && i && !c.isSameNode(i) && (n += Lt(H, c, i), s += Lt(U, c, i)), i && e != o && (n += Lt(H, i, e), s += Lt(U, i, e)), [n, s];
808
+ }, Sn = (t, e) => {
809
+ const n = t == null ? void 0 : t.closest(`.${Ot}`);
810
+ return n && n.isSameNode(e) ? t : n;
811
+ }, ee = (t, e, n, s) => {
812
+ const { offset: o, beforeMargin: i, page: c, borderBeforeWidth: l, scroll: f } = w(t), p = re(n, t);
813
+ return e[c] - s[o] - L(n, i) - L(n, l) - window[f] - p;
814
+ }, Dn = (t, e, n) => {
815
+ const [s, o] = mn(t, n);
816
+ return [
817
+ ee(U, t, e, {
818
+ offsetX: s,
819
+ offsetY: o
820
+ }),
821
+ ee(H, t, e, {
822
+ offsetX: s,
823
+ offsetY: o
824
+ }),
825
+ s,
826
+ o
827
+ ];
821
828
  }, K = class K {
822
829
  static addConfig(e, n) {
823
830
  const s = K.configs.filter(
@@ -848,7 +855,7 @@ J(K, "configs", []), J(K, "removeObsoleteConfigs", () => {
848
855
  K.configs = e;
849
856
  });
850
857
  let it = K;
851
- class bn {
858
+ class vn {
852
859
  constructor(e, n, s, o, i) {
853
860
  J(this, "initial");
854
861
  J(this, "current");
@@ -918,7 +925,7 @@ class bn {
918
925
  return !this.getCurrent(s, e, n);
919
926
  }
920
927
  }
921
- function vn(t, e, n, s, o) {
928
+ function bn(t, e, n, s, o) {
922
929
  const {
923
930
  handlerSelector: i,
924
931
  isDraggable: c,
@@ -926,16 +933,16 @@ function vn(t, e, n, s, o) {
926
933
  animationDuration: f,
927
934
  delayBeforeRemove: p,
928
935
  draggingClass: h,
929
- removingClass: v,
936
+ removingClass: b,
930
937
  onRemoveAtEvent: B,
931
938
  droppableClass: M,
932
939
  onDragStart: S
933
940
  } = n, D = Ct(l).map((a) => `droppable-group-${a}`).join(" ");
934
- let b = 0, R = {
941
+ let v = 0, R = {
935
942
  scrollX: 0,
936
943
  scrollY: 0
937
- }, N = { pageX: 0, pageY: 0 }, W;
938
- const [X, Y] = Ie(
944
+ }, N = { pageX: 0, pageY: 0 }, I;
945
+ const [W, X] = hn(
939
946
  t
940
947
  ), [
941
948
  F,
@@ -943,19 +950,19 @@ function vn(t, e, n, s, o) {
943
950
  _,
944
951
  P,
945
952
  k
946
- ] = Sn(
953
+ ] = dn(
947
954
  n,
948
955
  e,
949
956
  s,
950
957
  D,
951
958
  o,
952
- () => b = 0
959
+ () => v = 0
953
960
  /* NOT_DRAGGING */
954
961
  ), q = () => {
955
962
  nt(t, Q);
956
963
  }, z = (a) => {
957
964
  nt(a, Ot), o.addSubscriber(a);
958
- }, I = () => {
965
+ }, Y = () => {
959
966
  if (c(t)) {
960
967
  const a = t.querySelector(i);
961
968
  z(a || t);
@@ -964,18 +971,18 @@ function vn(t, e, n, s, o) {
964
971
  $e(document.body, [
965
972
  `.${Q}{touch-action:manipulation;user-select:none;box-sizing:border-box!important;-webkit-user-select:none;}`,
966
973
  `.${Ot}{pointer-events:auto!important;}`,
967
- `.${me}{cursor:grab;}`,
974
+ `.${Se}{cursor:grab;}`,
968
975
  ".temp-child{touch-action:none;pointer-events:none;box-sizing:border-box!important;}",
969
976
  ".droppable{box-sizing:border-box!important;}",
970
977
  `.${_t}{position:fixed;z-index:5000;width:var(--fixedWidth)!important;height:var(--fixedHeight)!important;}`,
978
+ `.${Wt}{pointer-events:none!important;}`,
971
979
  `.${Xt}{pointer-events:none!important;}`,
972
- `.${Yt}{pointer-events:none!important;}`,
973
980
  `.${ne}{cursor:grabbing;}`,
974
981
  ".disable-transition{transition:none!important;}"
975
- ]), I(), q();
982
+ ]), Y(), q();
976
983
  }, V = (a) => {
977
984
  const d = a == null ? void 0 : a.querySelector(`.${Ot}`), y = d == null ? void 0 : d.parentElement;
978
- return d && y && et(y, Wt) && !y.isSameNode(s) ? null : d;
985
+ return d && y && et(y, It) && !y.isSameNode(s) ? null : d;
979
986
  }, $ = (a) => {
980
987
  const d = V(a) ?? a;
981
988
  d && c(a) && ($t(
@@ -986,7 +993,7 @@ function vn(t, e, n, s, o) {
986
993
  d,
987
994
  "ontouchstart",
988
995
  O("touchmove", "touchend")
989
- ), tt(d)), a != null && a.isSameNode(d) || $t(a, "onmousedown", x), nt(s, Wt);
996
+ ), tt(d)), a != null && a.isSameNode(d) || $t(a, "onmousedown", x), nt(s, It);
990
997
  }, tt = (a) => {
991
998
  const d = a.querySelectorAll("img");
992
999
  Array.from(d).forEach((y) => {
@@ -996,20 +1003,20 @@ function vn(t, e, n, s, o) {
996
1003
  if (N.pageX == 0 && N.pageY == 0 || !r.current)
997
1004
  return;
998
1005
  const { droppable: a, config: d } = r.current;
999
- X(t, a, N, d.direction), F(
1006
+ W(t, a, N, d.direction), F(
1000
1007
  t,
1001
1008
  Pt,
1002
1009
  R,
1003
1010
  r.current
1004
1011
  );
1005
1012
  }, lt = (a, d) => {
1006
- d && b == 2 && !(a != null && a.droppable.isSameNode(d.droppable)) && F(
1013
+ d && v == 2 && !(a != null && a.droppable.isSameNode(d.droppable)) && F(
1007
1014
  t,
1008
1015
  Pt,
1009
1016
  R,
1010
1017
  d
1011
1018
  );
1012
- }, r = new bn(
1019
+ }, r = new vn(
1013
1020
  t,
1014
1021
  D,
1015
1022
  s,
@@ -1029,12 +1036,12 @@ function vn(t, e, n, s, o) {
1029
1036
  }, g = (a) => {
1030
1037
  r.updateConfig(a);
1031
1038
  const d = r.isOutside(a);
1032
- u(d), b === 1 ? ut(a) : b === 2 && (m(d), St(a));
1039
+ u(d), v === 1 ? ut(a) : v === 2 && (m(d), St(a));
1033
1040
  }, m = (a = !0) => {
1034
1041
  if (!r.current)
1035
1042
  return;
1036
1043
  const { droppable: d } = r.current;
1037
- hn(
1044
+ fn(
1038
1045
  d,
1039
1046
  s,
1040
1047
  D,
@@ -1043,18 +1050,18 @@ function vn(t, e, n, s, o) {
1043
1050
  ), !a && Gt(
1044
1051
  t,
1045
1052
  s,
1046
- b == 1,
1053
+ v == 1,
1047
1054
  r.current
1048
1055
  );
1049
1056
  }, C = (a) => {
1050
- if (It(a) && a.cancelable)
1057
+ if (Yt(a) && a.cancelable)
1051
1058
  a.preventDefault();
1052
- else if (It(a))
1059
+ else if (Yt(a))
1053
1060
  return;
1054
1061
  const d = Vt(a);
1055
1062
  g(d);
1056
1063
  }, T = (a, d) => {
1057
- a == "touchmove" ? W = setTimeout(() => {
1064
+ a == "touchmove" ? I = setTimeout(() => {
1058
1065
  d();
1059
1066
  }, 200) : d();
1060
1067
  }, E = (a, d) => {
@@ -1068,8 +1075,8 @@ function vn(t, e, n, s, o) {
1068
1075
  return;
1069
1076
  it.updateScrolls(s, D);
1070
1077
  const { scrollX: ft, scrollY: rt } = window;
1071
- if (R = { scrollX: ft, scrollY: rt }, b === 0) {
1072
- b = 1;
1078
+ if (R = { scrollX: ft, scrollY: rt }, v === 0) {
1079
+ v = 1;
1073
1080
  const Dt = A(t);
1074
1081
  Dt && S(Dt), T(a, () => {
1075
1082
  a == "touchmove" && (r.updateConfig(y), u(r.isOutside(y)), ut(y)), document.addEventListener(a, C, {
@@ -1082,7 +1089,7 @@ function vn(t, e, n, s, o) {
1082
1089
  }, x = (a) => r.updateConfig(a), G = (a) => (d) => {
1083
1090
  u(!0);
1084
1091
  const y = Vt(d);
1085
- clearTimeout(W), At(r.isOutside(y, !1)), document.removeEventListener(a, C), r.updateConfig(y);
1092
+ clearTimeout(I), At(r.isOutside(y, !1)), document.removeEventListener(a, C), r.updateConfig(y);
1086
1093
  const ft = r.getCurrentConfig(y);
1087
1094
  if (ft) {
1088
1095
  const { droppable: rt } = ft;
@@ -1101,25 +1108,25 @@ function vn(t, e, n, s, o) {
1101
1108
  Gt(
1102
1109
  t,
1103
1110
  s,
1104
- b == 1,
1111
+ v == 1,
1105
1112
  r.current
1106
1113
  ), mt(), F(
1107
1114
  t,
1108
1115
  le,
1109
1116
  R,
1110
1117
  r.current
1111
- ), wt(t), Y(a, t);
1118
+ ), wt(t), X(a, t);
1112
1119
  }, mt = () => {
1113
- b = 2;
1120
+ v = 2;
1114
1121
  }, St = (a) => {
1115
1122
  const { pageX: d, pageY: y } = a;
1116
1123
  N = { pageX: d, pageY: y }, ot();
1117
1124
  }, ct = (a) => ce(a, "onscroll", Ft), Ft = () => ot(), At = (a) => {
1118
- if (b !== 2) {
1119
- b = 0;
1125
+ if (v !== 2) {
1126
+ v = 0;
1120
1127
  return;
1121
1128
  }
1122
- b = 3, xt(t), F(
1129
+ v = 3, xt(t), F(
1123
1130
  t,
1124
1131
  zt,
1125
1132
  R,
@@ -1133,16 +1140,16 @@ function vn(t, e, n, s, o) {
1133
1140
  ae(a, {
1134
1141
  fixedHeight: `${d}px`,
1135
1142
  fixedWidth: `${y}px`
1136
- }), k(a, !0), vt(a, h, !0), a.style.transition = "";
1143
+ }), k(a, !0), bt(a, h, !0), a.style.transition = "";
1137
1144
  }, Bt = (a) => {
1138
1145
  if (!r.initial)
1139
1146
  return;
1140
1147
  const d = r.initial;
1141
- a == e && (nt(t, v), setTimeout(() => {
1142
- B(e), yt(t, v), Gt(
1148
+ a == e && (nt(t, b), setTimeout(() => {
1149
+ B(e), yt(t, b), Gt(
1143
1150
  t,
1144
1151
  s,
1145
- b == 1,
1152
+ v == 1,
1146
1153
  r.initial
1147
1154
  ), st(
1148
1155
  a,
@@ -1153,25 +1160,25 @@ function vn(t, e, n, s, o) {
1153
1160
  }
1154
1161
  );
1155
1162
  }, p));
1156
- }, de = (a, d) => {
1163
+ }, pe = (a, d) => {
1157
1164
  (a === e || a === n.onGetLegth() && e === a - 1) && _(
1158
1165
  a,
1159
1166
  t,
1160
1167
  s,
1161
1168
  d,
1162
1169
  () => {
1163
- dn(
1170
+ ln(
1164
1171
  t,
1165
- b == 1,
1172
+ v == 1,
1166
1173
  r.initial
1167
1174
  );
1168
1175
  }
1169
1176
  );
1170
1177
  };
1171
- return j(), $(t), [Bt, de];
1178
+ return j(), $(t), [Bt, pe];
1172
1179
  }
1173
1180
  const Tn = (t, e) => {
1174
- t && be(e, t);
1181
+ t && ve(e, t);
1175
1182
  };
1176
1183
  function En(t, e, n, s = "index") {
1177
1184
  const o = s;
@@ -1185,11 +1192,11 @@ function En(t, e, n, s = "index") {
1185
1192
  const f = Ct(l).map((p) => `droppable-group-${p}`).join(" ");
1186
1193
  Tn(f, n);
1187
1194
  for (const p of n.children) {
1188
- const h = p.getAttribute(o), v = Te(h), B = p;
1189
- if (B && v >= 0) {
1190
- const [M, S] = vn(
1195
+ const h = p.getAttribute(o), b = Te(h), B = p;
1196
+ if (B && b >= 0) {
1197
+ const [M, S] = bn(
1191
1198
  B,
1192
- v,
1199
+ b,
1193
1200
  t,
1194
1201
  n,
1195
1202
  e
@@ -1202,9 +1209,9 @@ function En(t, e, n, s = "index") {
1202
1209
  c
1203
1210
  ];
1204
1211
  }
1205
- function Cn(t, e, n, s = "index") {
1212
+ function An(t, e, n, s = "index") {
1206
1213
  let o = [], i = [];
1207
- const c = Se(t, n), l = (S) => {
1214
+ const c = pn(t, n), l = (S) => {
1208
1215
  for (const D of o)
1209
1216
  D(S);
1210
1217
  }, f = (S, D) => {
@@ -1214,8 +1221,8 @@ function Cn(t, e, n, s = "index") {
1214
1221
  for (const R of i)
1215
1222
  R(S, D);
1216
1223
  }, p = (S) => {
1217
- const [D, b] = En(c, e, S, s);
1218
- o = D, i = b;
1224
+ const [D, v] = En(c, e, S, s);
1225
+ o = D, i = v;
1219
1226
  }, h = (S) => {
1220
1227
  kt(
1221
1228
  () => {
@@ -1224,8 +1231,8 @@ function Cn(t, e, n, s = "index") {
1224
1231
  S,
1225
1232
  { childList: !0 }
1226
1233
  );
1227
- }, v = (S) => {
1228
- nt(S, Wt);
1234
+ }, b = (S) => {
1235
+ nt(S, It);
1229
1236
  }, B = (S) => {
1230
1237
  it.addConfig(
1231
1238
  S,
@@ -1233,9 +1240,13 @@ function Cn(t, e, n, s = "index") {
1233
1240
  );
1234
1241
  };
1235
1242
  return [l, f, (S) => {
1236
- S && (v(S), B(S), h(S), p(S), it.removeObsoleteConfigs());
1243
+ S && (b(S), B(S), h(S), p(S), it.removeObsoleteConfigs());
1237
1244
  }];
1238
1245
  }
1239
1246
  export {
1240
- Cn as dragAndDrop
1247
+ Se as G,
1248
+ nt as a,
1249
+ An as d,
1250
+ Cn as i,
1251
+ bt as t
1241
1252
  };