@quoreadmin/ui 1.10.25 → 1.10.26

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 (172) hide show
  1. package/dist/index.css +1 -1
  2. package/dist/index10.js +209 -180
  3. package/dist/index149.js +11 -5
  4. package/dist/index15.js +26 -26
  5. package/dist/index16.js +32 -22
  6. package/dist/index186.js +4 -4
  7. package/dist/index193.js +8 -8
  8. package/dist/index195.js +8 -8
  9. package/dist/index198.js +17 -17
  10. package/dist/index201.js +26 -26
  11. package/dist/index202.js +1 -1
  12. package/dist/index203.js +1 -1
  13. package/dist/index206.js +2 -2
  14. package/dist/index208.js +14 -14
  15. package/dist/index209.js +1 -1
  16. package/dist/index210.js +1 -1
  17. package/dist/index211.js +3 -3
  18. package/dist/index212.js +6 -6
  19. package/dist/index213.js +2 -2
  20. package/dist/index214.js +2 -2
  21. package/dist/index215.js +1 -1
  22. package/dist/index219.js +2 -2
  23. package/dist/index230.js +121 -155
  24. package/dist/index231.js +37 -19
  25. package/dist/index232.js +80 -20
  26. package/dist/index233.js +13 -15
  27. package/dist/index234.js +19 -198
  28. package/dist/index235.js +18 -68
  29. package/dist/index236.js +20 -34
  30. package/dist/index237.js +19 -39
  31. package/dist/index238.js +160 -21
  32. package/dist/index239.js +228 -22
  33. package/dist/index240.js +36 -19
  34. package/dist/index241.js +9 -835
  35. package/dist/index242.js +104 -645
  36. package/dist/index243.js +20 -176
  37. package/dist/index244.js +15 -13
  38. package/dist/index245.js +198 -19
  39. package/dist/index246.js +69 -21
  40. package/dist/index247.js +34 -20
  41. package/dist/index248.js +39 -19
  42. package/dist/index249.js +3709 -3
  43. package/dist/index250.js +54 -181
  44. package/dist/index251.js +77 -127
  45. package/dist/index252.js +45 -1216
  46. package/dist/index253.js +207 -119
  47. package/dist/index254.js +10 -20
  48. package/dist/index255.js +57 -22
  49. package/dist/index256.js +61 -22
  50. package/dist/index257.js +49 -33
  51. package/dist/index258.js +81 -29
  52. package/dist/index259.js +727 -19
  53. package/dist/index260.js +47 -20
  54. package/dist/index261.js +64 -2
  55. package/dist/index262.js +11 -2
  56. package/dist/index263.js +637 -3641
  57. package/dist/index264.js +819 -59
  58. package/dist/index265.js +22 -83
  59. package/dist/index266.js +22 -52
  60. package/dist/index267.js +20 -215
  61. package/dist/index268.js +836 -10
  62. package/dist/index269.js +695 -50
  63. package/dist/index270.js +174 -59
  64. package/dist/index271.js +22 -54
  65. package/dist/index272.js +20 -81
  66. package/dist/index273.js +19 -727
  67. package/dist/index274.js +3 -47
  68. package/dist/index275.js +181 -58
  69. package/dist/index276.js +133 -11
  70. package/dist/index277.js +1189 -671
  71. package/dist/index278.js +20 -820
  72. package/dist/index279.js +22 -253
  73. package/dist/index280.js +21 -7
  74. package/dist/index281.js +29 -138
  75. package/dist/index282.js +20 -83
  76. package/dist/index283.js +19 -53
  77. package/dist/index284.js +2 -79
  78. package/dist/index285.js +2 -26
  79. package/dist/index286.js +253 -22
  80. package/dist/index287.js +8 -22
  81. package/dist/index288.js +137 -15
  82. package/dist/index289.js +83 -17
  83. package/dist/index290.js +2 -23
  84. package/dist/index291.js +78 -79
  85. package/dist/index292.js +3 -20
  86. package/dist/index293.js +26 -19
  87. package/dist/index294.js +49 -156
  88. package/dist/index295.js +26 -228
  89. package/dist/index296.js +21 -36
  90. package/dist/index297.js +22 -10
  91. package/dist/index298.js +16 -3
  92. package/dist/index299.js +17 -27
  93. package/dist/index300.js +22 -264
  94. package/dist/index301.js +1533 -5
  95. package/dist/index302.js +372 -136
  96. package/dist/index303.js +2729 -67
  97. package/dist/index304.js +84 -89
  98. package/dist/index305.js +3795 -26
  99. package/dist/index306.js +58 -14
  100. package/dist/index307.js +15 -75
  101. package/dist/index308.js +83 -3
  102. package/dist/index309.js +202 -2
  103. package/dist/index310.js +237 -75
  104. package/dist/index311.js +77 -56
  105. package/dist/index312.js +21 -5
  106. package/dist/index313.js +934 -4
  107. package/dist/index314.js +21 -185
  108. package/dist/index315.js +19 -62
  109. package/dist/index316.js +20 -75
  110. package/dist/index317.js +69 -1534
  111. package/dist/index318.js +19 -386
  112. package/dist/index319.js +19 -2731
  113. package/dist/index320.js +21 -85
  114. package/dist/index321.js +22 -3798
  115. package/dist/index322.js +63 -60
  116. package/dist/index323.js +37 -15
  117. package/dist/index324.js +257 -76
  118. package/dist/index325.js +4 -200
  119. package/dist/index326.js +139 -235
  120. package/dist/index327.js +67 -77
  121. package/dist/index328.js +90 -21
  122. package/dist/index329.js +26 -932
  123. package/dist/index330.js +14 -20
  124. package/dist/index331.js +74 -19
  125. package/dist/index332.js +3 -19
  126. package/dist/index333.js +2 -69
  127. package/dist/index334.js +83 -18
  128. package/dist/index335.js +58 -19
  129. package/dist/index336.js +5 -21
  130. package/dist/index337.js +4 -21
  131. package/dist/index338.js +185 -62
  132. package/dist/index339.js +63 -2
  133. package/dist/index340.js +74 -36
  134. package/dist/index364.js +19 -18
  135. package/dist/index365.js +19 -56
  136. package/dist/index366.js +61 -22
  137. package/dist/index367.js +37 -7
  138. package/dist/index368.js +16 -52
  139. package/dist/index369.js +57 -7
  140. package/dist/index370.js +23 -10
  141. package/dist/index371.js +7 -7
  142. package/dist/index372.js +54 -27
  143. package/dist/index373.js +7 -2
  144. package/dist/index374.js +11 -81
  145. package/dist/index375.js +6 -179
  146. package/dist/index376.js +28 -20
  147. package/dist/index377.js +2 -20
  148. package/dist/index378.js +79 -61
  149. package/dist/index379.js +179 -36
  150. package/dist/index380.js +97 -30
  151. package/dist/index381.js +100 -10
  152. package/dist/index382.js +90 -3
  153. package/dist/index383.js +17 -4
  154. package/dist/index384.js +30 -12
  155. package/dist/index385.js +11 -7
  156. package/dist/index386.js +3 -13
  157. package/dist/index387.js +3 -4
  158. package/dist/index388.js +13 -36
  159. package/dist/index389.js +7 -37
  160. package/dist/index390.js +14 -30
  161. package/dist/index391.js +5 -64
  162. package/dist/index392.js +36 -98
  163. package/dist/index393.js +36 -16
  164. package/dist/index394.js +28 -99
  165. package/dist/index395.js +64 -91
  166. package/dist/index396.js +1 -1
  167. package/dist/index401.js +1 -1
  168. package/dist/index402.js +2 -2
  169. package/dist/index79.js +218 -129
  170. package/dist/src/components/calendar/calendar.d.ts +18 -1
  171. package/package.json +1 -1
  172. package/src/assets/illustrations/pending-to-do.png +0 -0
package/dist/index322.js CHANGED
@@ -1,62 +1,65 @@
1
- import { keyName as u, base as c } from "./index395.js";
2
- import { Plugin as d } from "./index278.js";
3
- const p = typeof navigator < "u" && /Mac|iP(hone|[oa]d)/.test(navigator.platform), y = typeof navigator < "u" && /Win/.test(navigator.platform);
4
- function m(e) {
5
- let r = e.split(/-(?!$)/), t = r[r.length - 1];
6
- t == "Space" && (t = " ");
7
- let i, f, o, a;
8
- for (let l = 0; l < r.length - 1; l++) {
9
- let s = r[l];
10
- if (/^(cmd|meta|m)$/i.test(s))
11
- a = !0;
12
- else if (/^a(lt)?$/i.test(s))
13
- i = !0;
14
- else if (/^(c|ctrl|control)$/i.test(s))
15
- f = !0;
16
- else if (/^s(hift)?$/i.test(s))
17
- o = !0;
18
- else if (/^mod$/i.test(s))
19
- p ? a = !0 : f = !0;
20
- else
21
- throw new Error("Unrecognized modifier name: " + s);
22
- }
23
- return i && (t = "Alt-" + t), f && (t = "Ctrl-" + t), a && (t = "Meta-" + t), o && (t = "Shift-" + t), t;
24
- }
25
- function h(e) {
26
- let r = /* @__PURE__ */ Object.create(null);
27
- for (let t in e)
28
- r[m(t)] = e[t];
29
- return r;
30
- }
31
- function n(e, r, t = !0) {
32
- return r.altKey && (e = "Alt-" + e), r.ctrlKey && (e = "Ctrl-" + e), r.metaKey && (e = "Meta-" + e), t && r.shiftKey && (e = "Shift-" + e), e;
33
- }
34
- function k(e) {
35
- return new d({ props: { handleKeyDown: K(e) } });
36
- }
37
- function K(e) {
38
- let r = h(e);
39
- return function(t, i) {
40
- let f = u(i), o, a = r[n(f, i)];
41
- if (a && a(t.state, t.dispatch, t))
42
- return !0;
43
- if (f.length == 1 && f != " ") {
44
- if (i.shiftKey) {
45
- let l = r[n(f, i, !1)];
46
- if (l && l(t.state, t.dispatch, t))
47
- return !0;
48
- }
49
- if ((i.altKey || i.metaKey || i.ctrlKey) && // Ctrl-Alt may be used for AltGr on Windows
50
- !(y && i.ctrlKey && i.altKey) && (o = c[i.keyCode]) && o != f) {
51
- let l = r[n(o, i)];
52
- if (l && l(t.state, t.dispatch, t))
53
- return !0;
54
- }
55
- }
56
- return !1;
57
- };
58
- }
1
+ import a from "./index288.js";
2
+ var l = {
3
+ root: function(e) {
4
+ var p = e.instance, n = e.props, o = e.state;
5
+ return ["p-dropdown p-component p-inputwrapper", {
6
+ "p-disabled": n.disabled,
7
+ "p-invalid": n.invalid,
8
+ "p-variant-filled": n.variant ? n.variant === "filled" : p.$primevue.config.inputStyle === "filled",
9
+ "p-dropdown-clearable": n.showClear,
10
+ "p-focus": o.focused,
11
+ "p-inputwrapper-filled": p.hasSelectedOption,
12
+ "p-inputwrapper-focus": o.focused || o.overlayVisible,
13
+ "p-overlay-open": o.overlayVisible
14
+ }];
15
+ },
16
+ input: function(e) {
17
+ var p, n = e.instance, o = e.props;
18
+ return ["p-dropdown-label p-inputtext", {
19
+ "p-placeholder": !o.editable && n.label === o.placeholder,
20
+ "p-dropdown-label-empty": !o.editable && !n.$slots.value && (n.label === "p-emptylabel" || ((p = n.label) === null || p === void 0 ? void 0 : p.length) === 0)
21
+ }];
22
+ },
23
+ clearIcon: "p-dropdown-clear-icon",
24
+ trigger: "p-dropdown-trigger",
25
+ loadingicon: "p-dropdown-trigger-icon",
26
+ dropdownIcon: "p-dropdown-trigger-icon",
27
+ panel: function(e) {
28
+ e.props;
29
+ var p = e.instance;
30
+ return ["p-dropdown-panel p-component", {
31
+ "p-ripple-disabled": p.$primevue.config.ripple === !1
32
+ }];
33
+ },
34
+ header: "p-dropdown-header",
35
+ filterContainer: "p-dropdown-filter-container",
36
+ filterInput: function(e) {
37
+ var p = e.props, n = e.instance;
38
+ return ["p-dropdown-filter p-inputtext p-component", {
39
+ "p-variant-filled": p.variant ? p.variant === "filled" : n.$primevue.config.inputStyle === "filled"
40
+ }];
41
+ },
42
+ filterIcon: "p-dropdown-filter-icon",
43
+ wrapper: "p-dropdown-items-wrapper",
44
+ list: "p-dropdown-items",
45
+ itemGroup: "p-dropdown-item-group",
46
+ itemGroupLabel: "p-dropdown-item-group-label",
47
+ item: function(e) {
48
+ var p = e.instance, n = e.props, o = e.state, t = e.option, r = e.focusedOption;
49
+ return ["p-dropdown-item", {
50
+ "p-highlight": p.isSelected(t) && n.highlightOnSelect,
51
+ "p-focus": o.focusedOptionIndex === r,
52
+ "p-disabled": p.isOptionDisabled(t)
53
+ }];
54
+ },
55
+ itemLabel: "p-dropdown-item-label",
56
+ checkIcon: "p-dropdown-check-icon",
57
+ blankIcon: "p-dropdown-blank-icon",
58
+ emptyMessage: "p-dropdown-empty-message"
59
+ }, s = a.extend({
60
+ name: "dropdown",
61
+ classes: l
62
+ });
59
63
  export {
60
- K as keydownHandler,
61
- k as keymap
64
+ s as default
62
65
  };
package/dist/index323.js CHANGED
@@ -1,17 +1,39 @@
1
- var t = (e, n) => {
2
- if (e === "slot")
3
- return 0;
4
- if (e instanceof Function)
5
- return e(n);
6
- const { children: r, ...s } = n ?? {};
7
- if (e === "svg")
8
- throw new Error("SVG elements are not supported in the JSX syntax, use the array syntax instead");
9
- return [e, s, r];
10
- };
1
+ import n from "./index288.js";
2
+ var e = `
3
+ .p-icon {
4
+ display: inline-block;
5
+ }
6
+
7
+ .p-icon-spin {
8
+ -webkit-animation: p-icon-spin 2s infinite linear;
9
+ animation: p-icon-spin 2s infinite linear;
10
+ }
11
+
12
+ @-webkit-keyframes p-icon-spin {
13
+ 0% {
14
+ -webkit-transform: rotate(0deg);
15
+ transform: rotate(0deg);
16
+ }
17
+ 100% {
18
+ -webkit-transform: rotate(359deg);
19
+ transform: rotate(359deg);
20
+ }
21
+ }
22
+
23
+ @keyframes p-icon-spin {
24
+ 0% {
25
+ -webkit-transform: rotate(0deg);
26
+ transform: rotate(0deg);
27
+ }
28
+ 100% {
29
+ -webkit-transform: rotate(359deg);
30
+ transform: rotate(359deg);
31
+ }
32
+ }
33
+ `, i = n.extend({
34
+ name: "baseicon",
35
+ css: e
36
+ });
11
37
  export {
12
- t as createElement,
13
- t as h,
14
- t as jsx,
15
- t as jsxDEV,
16
- t as jsxs
38
+ i as default
17
39
  };
package/dist/index324.js CHANGED
@@ -1,86 +1,267 @@
1
- import { Plugin as w } from "./index278.js";
2
- import { dropPoint as v } from "./index317.js";
3
- function y(m = {}) {
4
- return new w({
5
- view(e) {
6
- return new C(e, m);
7
- }
8
- });
1
+ import M from "./index325.js";
2
+ const { toString: N } = Object.prototype, { getPrototypeOf: F } = Object, { iterator: g, toStringTag: S } = Symbol, b = /* @__PURE__ */ ((e) => (t) => {
3
+ const n = N.call(t);
4
+ return e[n] || (e[n] = n.slice(8, -1).toLowerCase());
5
+ })(/* @__PURE__ */ Object.create(null)), c = (e) => (e = e.toLowerCase(), (t) => b(t) === e), O = (e) => (t) => typeof t === e, { isArray: d } = Array, a = O("undefined");
6
+ function p(e) {
7
+ return e !== null && !a(e) && e.constructor !== null && !a(e.constructor) && f(e.constructor.isBuffer) && e.constructor.isBuffer(e);
9
8
  }
10
- class C {
11
- constructor(e, t) {
12
- var i;
13
- this.editorView = e, this.cursorPos = null, this.element = null, this.timeout = -1, this.width = (i = t.width) !== null && i !== void 0 ? i : 1, this.color = t.color === !1 ? void 0 : t.color || "black", this.class = t.class, this.handlers = ["dragover", "dragend", "drop", "dragleave"].map((s) => {
14
- let d = (r) => {
15
- this[s](r);
16
- };
17
- return e.dom.addEventListener(s, d), { name: s, handler: d };
18
- });
19
- }
20
- destroy() {
21
- this.handlers.forEach(({ name: e, handler: t }) => this.editorView.dom.removeEventListener(e, t));
9
+ const C = c("ArrayBuffer");
10
+ function _(e) {
11
+ let t;
12
+ return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? t = ArrayBuffer.isView(e) : t = e && e.buffer && C(e.buffer), t;
13
+ }
14
+ const U = O("string"), f = O("function"), E = O("number"), y = (e) => e !== null && typeof e == "object", I = (e) => e === !0 || e === !1, w = (e) => {
15
+ if (b(e) !== "object")
16
+ return !1;
17
+ const t = F(e);
18
+ return (t === null || t === Object.prototype || Object.getPrototypeOf(t) === null) && !(S in e) && !(g in e);
19
+ }, k = (e) => {
20
+ if (!y(e) || p(e))
21
+ return !1;
22
+ try {
23
+ return Object.keys(e).length === 0 && Object.getPrototypeOf(e) === Object.prototype;
24
+ } catch {
25
+ return !1;
22
26
  }
23
- update(e, t) {
24
- this.cursorPos != null && t.doc != e.state.doc && (this.cursorPos > e.state.doc.content.size ? this.setCursor(null) : this.updateOverlay());
27
+ }, V = c("Date"), q = c("File"), H = (e) => !!(e && typeof e.uri < "u"), z = (e) => e && typeof e.getParts < "u", G = c("Blob"), J = c("FileList"), K = (e) => y(e) && f(e.pipe);
28
+ function $() {
29
+ return typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : typeof global < "u" ? global : {};
30
+ }
31
+ const P = $(), x = typeof P.FormData < "u" ? P.FormData : void 0, W = (e) => {
32
+ let t;
33
+ return e && (x && e instanceof x || f(e.append) && ((t = b(e)) === "formdata" || // detect form-data instance
34
+ t === "object" && f(e.toString) && e.toString() === "[object FormData]"));
35
+ }, Q = c("URLSearchParams"), [X, Y, Z, j] = [
36
+ "ReadableStream",
37
+ "Request",
38
+ "Response",
39
+ "Headers"
40
+ ].map(c), v = (e) => e.trim ? e.trim() : e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
41
+ function m(e, t, { allOwnKeys: n = !1 } = {}) {
42
+ if (e === null || typeof e > "u")
43
+ return;
44
+ let r, s;
45
+ if (typeof e != "object" && (e = [e]), d(e))
46
+ for (r = 0, s = e.length; r < s; r++)
47
+ t.call(null, e[r], r, e);
48
+ else {
49
+ if (p(e))
50
+ return;
51
+ const o = n ? Object.getOwnPropertyNames(e) : Object.keys(e), i = o.length;
52
+ let u;
53
+ for (r = 0; r < i; r++)
54
+ u = o[r], t.call(null, e[u], u, e);
25
55
  }
26
- setCursor(e) {
27
- e != this.cursorPos && (this.cursorPos = e, e == null ? (this.element.parentNode.removeChild(this.element), this.element = null) : this.updateOverlay());
56
+ }
57
+ function L(e, t) {
58
+ if (p(e))
59
+ return null;
60
+ t = t.toLowerCase();
61
+ const n = Object.keys(e);
62
+ let r = n.length, s;
63
+ for (; r-- > 0; )
64
+ if (s = n[r], t === s.toLowerCase())
65
+ return s;
66
+ return null;
67
+ }
68
+ const l = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global, R = (e) => !a(e) && e !== l;
69
+ function h() {
70
+ const { caseless: e, skipUndefined: t } = R(this) && this || {}, n = {}, r = (s, o) => {
71
+ if (o === "__proto__" || o === "constructor" || o === "prototype")
72
+ return;
73
+ const i = e && L(n, o) || o;
74
+ w(n[i]) && w(s) ? n[i] = h(n[i], s) : w(s) ? n[i] = h({}, s) : d(s) ? n[i] = s.slice() : (!t || !a(s)) && (n[i] = s);
75
+ };
76
+ for (let s = 0, o = arguments.length; s < o; s++)
77
+ arguments[s] && m(arguments[s], r);
78
+ return n;
79
+ }
80
+ const ee = (e, t, n, { allOwnKeys: r } = {}) => (m(
81
+ t,
82
+ (s, o) => {
83
+ n && f(s) ? Object.defineProperty(e, o, {
84
+ value: M(s, n),
85
+ writable: !0,
86
+ enumerable: !0,
87
+ configurable: !0
88
+ }) : Object.defineProperty(e, o, {
89
+ value: s,
90
+ writable: !0,
91
+ enumerable: !0,
92
+ configurable: !0
93
+ });
94
+ },
95
+ { allOwnKeys: r }
96
+ ), e), te = (e) => (e.charCodeAt(0) === 65279 && (e = e.slice(1)), e), ne = (e, t, n, r) => {
97
+ e.prototype = Object.create(t.prototype, r), Object.defineProperty(e.prototype, "constructor", {
98
+ value: e,
99
+ writable: !0,
100
+ enumerable: !1,
101
+ configurable: !0
102
+ }), Object.defineProperty(e, "super", {
103
+ value: t.prototype
104
+ }), n && Object.assign(e.prototype, n);
105
+ }, re = (e, t, n, r) => {
106
+ let s, o, i;
107
+ const u = {};
108
+ if (t = t || {}, e == null) return t;
109
+ do {
110
+ for (s = Object.getOwnPropertyNames(e), o = s.length; o-- > 0; )
111
+ i = s[o], (!r || r(i, e, t)) && !u[i] && (t[i] = e[i], u[i] = !0);
112
+ e = n !== !1 && F(e);
113
+ } while (e && (!n || n(e, t)) && e !== Object.prototype);
114
+ return t;
115
+ }, se = (e, t, n) => {
116
+ e = String(e), (n === void 0 || n > e.length) && (n = e.length), n -= t.length;
117
+ const r = e.indexOf(t, n);
118
+ return r !== -1 && r === n;
119
+ }, oe = (e) => {
120
+ if (!e) return null;
121
+ if (d(e)) return e;
122
+ let t = e.length;
123
+ if (!E(t)) return null;
124
+ const n = new Array(t);
125
+ for (; t-- > 0; )
126
+ n[t] = e[t];
127
+ return n;
128
+ }, ie = /* @__PURE__ */ ((e) => (t) => e && t instanceof e)(typeof Uint8Array < "u" && F(Uint8Array)), fe = (e, t) => {
129
+ const r = (e && e[g]).call(e);
130
+ let s;
131
+ for (; (s = r.next()) && !s.done; ) {
132
+ const o = s.value;
133
+ t.call(e, o[0], o[1]);
28
134
  }
29
- updateOverlay() {
30
- let e = this.editorView.state.doc.resolve(this.cursorPos), t = !e.parent.inlineContent, i, s = this.editorView.dom, d = s.getBoundingClientRect(), r = d.width / s.offsetWidth, h = d.height / s.offsetHeight;
31
- if (t) {
32
- let o = e.nodeBefore, n = e.nodeAfter;
33
- if (o || n) {
34
- let a = this.editorView.nodeDOM(this.cursorPos - (o ? o.nodeSize : 0));
35
- if (a) {
36
- let c = a.getBoundingClientRect(), u = o ? c.bottom : c.top;
37
- o && n && (u = (u + this.editorView.nodeDOM(this.cursorPos).getBoundingClientRect().top) / 2);
38
- let g = this.width / 2 * h;
39
- i = { left: c.left, right: c.right, top: u - g, bottom: u + g };
40
- }
135
+ }, ce = (e, t) => {
136
+ let n;
137
+ const r = [];
138
+ for (; (n = e.exec(t)) !== null; )
139
+ r.push(n);
140
+ return r;
141
+ }, ue = c("HTMLFormElement"), le = (e) => e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g, function(n, r, s) {
142
+ return r.toUpperCase() + s;
143
+ }), B = (({ hasOwnProperty: e }) => (t, n) => e.call(t, n))(Object.prototype), ae = c("RegExp"), T = (e, t) => {
144
+ const n = Object.getOwnPropertyDescriptors(e), r = {};
145
+ m(n, (s, o) => {
146
+ let i;
147
+ (i = t(s, o, e)) !== !1 && (r[o] = i || s);
148
+ }), Object.defineProperties(e, r);
149
+ }, de = (e) => {
150
+ T(e, (t, n) => {
151
+ if (f(e) && ["arguments", "caller", "callee"].indexOf(n) !== -1)
152
+ return !1;
153
+ const r = e[n];
154
+ if (f(r)) {
155
+ if (t.enumerable = !1, "writable" in t) {
156
+ t.writable = !1;
157
+ return;
41
158
  }
159
+ t.set || (t.set = () => {
160
+ throw Error("Can not rewrite read-only method '" + n + "'");
161
+ });
42
162
  }
43
- if (!i) {
44
- let o = this.editorView.coordsAtPos(this.cursorPos), n = this.width / 2 * r;
45
- i = { left: o.left - n, right: o.left + n, top: o.top, bottom: o.bottom };
46
- }
47
- let l = this.editorView.dom.offsetParent;
48
- this.element || (this.element = l.appendChild(document.createElement("div")), this.class && (this.element.className = this.class), this.element.style.cssText = "position: absolute; z-index: 50; pointer-events: none;", this.color && (this.element.style.backgroundColor = this.color)), this.element.classList.toggle("prosemirror-dropcursor-block", t), this.element.classList.toggle("prosemirror-dropcursor-inline", !t);
49
- let f, p;
50
- if (!l || l == document.body && getComputedStyle(l).position == "static")
51
- f = -pageXOffset, p = -pageYOffset;
52
- else {
53
- let o = l.getBoundingClientRect(), n = o.width / l.offsetWidth, a = o.height / l.offsetHeight;
54
- f = o.left - l.scrollLeft * n, p = o.top - l.scrollTop * a;
55
- }
56
- this.element.style.left = (i.left - f) / r + "px", this.element.style.top = (i.top - p) / h + "px", this.element.style.width = (i.right - i.left) / r + "px", this.element.style.height = (i.bottom - i.top) / h + "px";
57
- }
58
- scheduleRemoval(e) {
59
- clearTimeout(this.timeout), this.timeout = setTimeout(() => this.setCursor(null), e);
60
- }
61
- dragover(e) {
62
- if (!this.editorView.editable)
63
- return;
64
- let t = this.editorView.posAtCoords({ left: e.clientX, top: e.clientY }), i = t && t.inside >= 0 && this.editorView.state.doc.nodeAt(t.inside), s = i && i.type.spec.disableDropCursor, d = typeof s == "function" ? s(this.editorView, t, e) : s;
65
- if (t && !d) {
66
- let r = t.pos;
67
- if (this.editorView.dragging && this.editorView.dragging.slice) {
68
- let h = v(this.editorView.state.doc, r, this.editorView.dragging.slice);
69
- h != null && (r = h);
163
+ });
164
+ }, pe = (e, t) => {
165
+ const n = {}, r = (s) => {
166
+ s.forEach((o) => {
167
+ n[o] = !0;
168
+ });
169
+ };
170
+ return d(e) ? r(e) : r(String(e).split(t)), n;
171
+ }, ye = () => {
172
+ }, me = (e, t) => e != null && Number.isFinite(e = +e) ? e : t;
173
+ function we(e) {
174
+ return !!(e && f(e.append) && e[S] === "FormData" && e[g]);
175
+ }
176
+ const ge = (e) => {
177
+ const t = new Array(10), n = (r, s) => {
178
+ if (y(r)) {
179
+ if (t.indexOf(r) >= 0)
180
+ return;
181
+ if (p(r))
182
+ return r;
183
+ if (!("toJSON" in r)) {
184
+ t[s] = r;
185
+ const o = d(r) ? [] : {};
186
+ return m(r, (i, u) => {
187
+ const A = n(i, s + 1);
188
+ !a(A) && (o[u] = A);
189
+ }), t[s] = void 0, o;
70
190
  }
71
- this.setCursor(r), this.scheduleRemoval(5e3);
72
191
  }
73
- }
74
- dragend() {
75
- this.scheduleRemoval(20);
76
- }
77
- drop() {
78
- this.scheduleRemoval(20);
79
- }
80
- dragleave(e) {
81
- this.editorView.dom.contains(e.relatedTarget) || this.setCursor(null);
82
- }
83
- }
192
+ return r;
193
+ };
194
+ return n(e, 0);
195
+ }, be = c("AsyncFunction"), Oe = (e) => e && (y(e) || f(e)) && f(e.then) && f(e.catch), D = ((e, t) => e ? setImmediate : t ? ((n, r) => (l.addEventListener(
196
+ "message",
197
+ ({ source: s, data: o }) => {
198
+ s === l && o === n && r.length && r.shift()();
199
+ },
200
+ !1
201
+ ), (s) => {
202
+ r.push(s), l.postMessage(n, "*");
203
+ }))(`axios@${Math.random()}`, []) : (n) => setTimeout(n))(typeof setImmediate == "function", f(l.postMessage)), he = typeof queueMicrotask < "u" ? queueMicrotask.bind(l) : typeof process < "u" && process.nextTick || D, Fe = (e) => e != null && f(e[g]), Pe = {
204
+ isArray: d,
205
+ isArrayBuffer: C,
206
+ isBuffer: p,
207
+ isFormData: W,
208
+ isArrayBufferView: _,
209
+ isString: U,
210
+ isNumber: E,
211
+ isBoolean: I,
212
+ isObject: y,
213
+ isPlainObject: w,
214
+ isEmptyObject: k,
215
+ isReadableStream: X,
216
+ isRequest: Y,
217
+ isResponse: Z,
218
+ isHeaders: j,
219
+ isUndefined: a,
220
+ isDate: V,
221
+ isFile: q,
222
+ isReactNativeBlob: H,
223
+ isReactNative: z,
224
+ isBlob: G,
225
+ isRegExp: ae,
226
+ isFunction: f,
227
+ isStream: K,
228
+ isURLSearchParams: Q,
229
+ isTypedArray: ie,
230
+ isFileList: J,
231
+ forEach: m,
232
+ merge: h,
233
+ extend: ee,
234
+ trim: v,
235
+ stripBOM: te,
236
+ inherits: ne,
237
+ toFlatObject: re,
238
+ kindOf: b,
239
+ kindOfTest: c,
240
+ endsWith: se,
241
+ toArray: oe,
242
+ forEachEntry: fe,
243
+ matchAll: ce,
244
+ isHTMLForm: ue,
245
+ hasOwnProperty: B,
246
+ hasOwnProp: B,
247
+ // an alias to avoid ESLint no-prototype-builtins detection
248
+ reduceDescriptors: T,
249
+ freezeMethods: de,
250
+ toObjectSet: pe,
251
+ toCamelCase: le,
252
+ noop: ye,
253
+ toFiniteNumber: me,
254
+ findKey: L,
255
+ global: l,
256
+ isContextDefined: R,
257
+ isSpecCompliantForm: we,
258
+ toJSONObject: ge,
259
+ isAsyncFn: be,
260
+ isThenable: Oe,
261
+ setImmediate: D,
262
+ asap: he,
263
+ isIterable: Fe
264
+ };
84
265
  export {
85
- y as dropCursor
266
+ Pe as default
86
267
  };