@annotorious/react 3.0.0-rc.9 → 3.0.1

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 (83) hide show
  1. package/dist/Annotorious.d.ts +14 -43
  2. package/dist/Annotorious.d.ts.map +1 -1
  3. package/dist/AnnotoriousPlugin.d.ts +12 -6
  4. package/dist/AnnotoriousPlugin.d.ts.map +1 -1
  5. package/dist/AnnotoriousPopupProps.d.ts +10 -0
  6. package/dist/AnnotoriousPopupProps.d.ts.map +1 -0
  7. package/dist/ImageAnnotationPopup.d.ts +9 -0
  8. package/dist/ImageAnnotationPopup.d.ts.map +1 -0
  9. package/dist/ImageAnnotator.d.ts +2 -3
  10. package/dist/ImageAnnotator.d.ts.map +1 -1
  11. package/dist/annotorious-react.css +1 -1
  12. package/dist/annotorious-react.es.js +37 -34
  13. package/dist/annotorious-react.es.js.map +1 -1
  14. package/dist/annotorious-react.es10.js +15 -35
  15. package/dist/annotorious-react.es10.js.map +1 -1
  16. package/dist/annotorious-react.es11.js +6 -16
  17. package/dist/annotorious-react.es11.js.map +1 -1
  18. package/dist/annotorious-react.es12.js +8 -4
  19. package/dist/annotorious-react.es12.js.map +1 -1
  20. package/dist/annotorious-react.es13.js +272 -8
  21. package/dist/annotorious-react.es13.js.map +1 -1
  22. package/dist/annotorious-react.es14.js +9 -153
  23. package/dist/annotorious-react.es14.js.map +1 -1
  24. package/dist/annotorious-react.es15.js +193 -6
  25. package/dist/annotorious-react.es15.js.map +1 -1
  26. package/dist/annotorious-react.es16.js +327 -22113
  27. package/dist/annotorious-react.es16.js.map +1 -1
  28. package/dist/annotorious-react.es17.js +11 -32
  29. package/dist/annotorious-react.es17.js.map +1 -1
  30. package/dist/annotorious-react.es19.js +6 -10
  31. package/dist/annotorious-react.es19.js.map +1 -1
  32. package/dist/annotorious-react.es2.js +87 -68
  33. package/dist/annotorious-react.es2.js.map +1 -1
  34. package/dist/annotorious-react.es20.js +214 -207
  35. package/dist/annotorious-react.es20.js.map +1 -1
  36. package/dist/annotorious-react.es21.js +126 -2
  37. package/dist/annotorious-react.es21.js.map +1 -1
  38. package/dist/annotorious-react.es22.js +2 -2
  39. package/dist/annotorious-react.es23.js +5 -0
  40. package/dist/annotorious-react.es23.js.map +1 -0
  41. package/dist/annotorious-react.es24.js +10 -0
  42. package/dist/annotorious-react.es24.js.map +1 -0
  43. package/dist/annotorious-react.es25.js +8 -0
  44. package/dist/annotorious-react.es25.js.map +1 -0
  45. package/dist/annotorious-react.es26.js +10 -0
  46. package/dist/annotorious-react.es26.js.map +1 -0
  47. package/dist/annotorious-react.es27.js +129 -0
  48. package/dist/annotorious-react.es27.js.map +1 -0
  49. package/dist/annotorious-react.es28.js +466 -0
  50. package/dist/annotorious-react.es28.js.map +1 -0
  51. package/dist/annotorious-react.es3.js +10 -11
  52. package/dist/annotorious-react.es3.js.map +1 -1
  53. package/dist/annotorious-react.es4.js +90 -12
  54. package/dist/annotorious-react.es4.js.map +1 -1
  55. package/dist/annotorious-react.es5.js +21 -20
  56. package/dist/annotorious-react.es5.js.map +1 -1
  57. package/dist/annotorious-react.es8.js +27 -80
  58. package/dist/annotorious-react.es8.js.map +1 -1
  59. package/dist/annotorious-react.es9.js +103 -26
  60. package/dist/annotorious-react.es9.js.map +1 -1
  61. package/dist/index.d.ts +10 -10
  62. package/dist/index.d.ts.map +1 -1
  63. package/dist/openseadragon/OpenSeadragonAnnotationPopup.d.ts +9 -0
  64. package/dist/openseadragon/OpenSeadragonAnnotationPopup.d.ts.map +1 -0
  65. package/dist/openseadragon/OpenSeadragonAnnotator.d.ts +7 -8
  66. package/dist/openseadragon/OpenSeadragonAnnotator.d.ts.map +1 -1
  67. package/dist/openseadragon/OpenSeadragonViewer.d.ts +2 -3
  68. package/dist/openseadragon/OpenSeadragonViewer.d.ts.map +1 -1
  69. package/dist/openseadragon/index.d.ts +1 -1
  70. package/dist/openseadragon/index.d.ts.map +1 -1
  71. package/dist/openseadragon/setPosition.d.ts +1 -1
  72. package/dist/openseadragon/setPosition.d.ts.map +1 -1
  73. package/dist/utils/toClientRects.d.ts +6 -0
  74. package/dist/utils/toClientRects.d.ts.map +1 -0
  75. package/package.json +15 -13
  76. package/dist/AnnotoriousPopup.d.ts +0 -16
  77. package/dist/AnnotoriousPopup.d.ts.map +0 -1
  78. package/dist/annotorious-react.es6.js +0 -5
  79. package/dist/annotorious-react.es6.js.map +0 -1
  80. package/dist/annotorious-react.es7.js +0 -5
  81. package/dist/annotorious-react.es7.js.map +0 -1
  82. package/dist/openseadragon/OpenSeadragonPopup.d.ts +0 -11
  83. package/dist/openseadragon/OpenSeadragonPopup.d.ts.map +0 -1
@@ -1,5 +1,5 @@
1
- import { __exports as R } from "./annotorious-react.es22.js";
2
- import tr from "react";
1
+ import { __exports as T } from "./annotorious-react.es23.js";
2
+ import or from "react";
3
3
  /**
4
4
  * @license React
5
5
  * react-jsx-runtime.development.js
@@ -9,27 +9,27 @@ import tr from "react";
9
9
  * This source code is licensed under the MIT license found in the
10
10
  * LICENSE file in the root directory of this source tree.
11
11
  */
12
- var he;
13
- function ir() {
14
- return he ? R : (he = 1, process.env.NODE_ENV !== "production" && function() {
15
- var Ee = tr, x = Symbol.for("react.element"), ye = Symbol.for("react.portal"), _ = Symbol.for("react.fragment"), U = Symbol.for("react.strict_mode"), N = Symbol.for("react.profiler"), B = Symbol.for("react.provider"), q = Symbol.for("react.context"), T = Symbol.for("react.forward_ref"), k = Symbol.for("react.suspense"), D = Symbol.for("react.suspense_list"), C = Symbol.for("react.memo"), F = Symbol.for("react.lazy"), me = Symbol.for("react.offscreen"), G = Symbol.iterator, Re = "@@iterator";
16
- function _e(e) {
12
+ var Ee;
13
+ function lr() {
14
+ return Ee ? T : (Ee = 1, process.env.NODE_ENV !== "production" && function() {
15
+ var Re = or, x = Symbol.for("react.element"), _e = Symbol.for("react.portal"), C = Symbol.for("react.fragment"), K = Symbol.for("react.strict_mode"), N = Symbol.for("react.profiler"), G = Symbol.for("react.provider"), J = Symbol.for("react.context"), S = Symbol.for("react.forward_ref"), A = Symbol.for("react.suspense"), D = Symbol.for("react.suspense_list"), w = Symbol.for("react.memo"), F = Symbol.for("react.lazy"), me = Symbol.for("react.offscreen"), q = Symbol.iterator, Te = "@@iterator";
16
+ function Ce(e) {
17
17
  if (e === null || typeof e != "object")
18
18
  return null;
19
- var r = G && e[G] || e[Re];
19
+ var r = q && e[q] || e[Te];
20
20
  return typeof r == "function" ? r : null;
21
21
  }
22
- var b = Ee.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
23
- function l(e) {
22
+ var h = Re.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
23
+ function f(e) {
24
24
  {
25
25
  for (var r = arguments.length, t = new Array(r > 1 ? r - 1 : 0), n = 1; n < r; n++)
26
26
  t[n - 1] = arguments[n];
27
- Te("error", e, t);
27
+ Se("error", e, t);
28
28
  }
29
29
  }
30
- function Te(e, r, t) {
30
+ function Se(e, r, t) {
31
31
  {
32
- var n = b.ReactDebugCurrentFrame, o = n.getStackAddendum();
32
+ var n = h.ReactDebugCurrentFrame, o = n.getStackAddendum();
33
33
  o !== "" && (r += "%s", t = t.concat([o]));
34
34
  var u = t.map(function(i) {
35
35
  return String(i);
@@ -37,63 +37,63 @@ function ir() {
37
37
  u.unshift("Warning: " + r), Function.prototype.apply.call(console[e], console, u);
38
38
  }
39
39
  }
40
- var Ce = !1, Pe = !1, we = !1, Oe = !1, Se = !1, z;
40
+ var we = !1, Oe = !1, Pe = !1, je = !1, ke = !1, z;
41
41
  z = Symbol.for("react.module.reference");
42
- function je(e) {
43
- return !!(typeof e == "string" || typeof e == "function" || e === _ || e === N || Se || e === U || e === k || e === D || Oe || e === me || Ce || Pe || we || typeof e == "object" && e !== null && (e.$$typeof === F || e.$$typeof === C || e.$$typeof === B || e.$$typeof === q || e.$$typeof === T || // This needs to include all possible module reference object
42
+ function xe(e) {
43
+ return !!(typeof e == "string" || typeof e == "function" || e === C || e === N || ke || e === K || e === A || e === D || je || e === me || we || Oe || Pe || typeof e == "object" && e !== null && (e.$$typeof === F || e.$$typeof === w || e.$$typeof === G || e.$$typeof === J || e.$$typeof === S || // This needs to include all possible module reference object
44
44
  // types supported by any Flight configuration anywhere since
45
45
  // we don't know which Flight build this will end up being used
46
46
  // with.
47
47
  e.$$typeof === z || e.getModuleId !== void 0));
48
48
  }
49
- function xe(e, r, t) {
49
+ function Ae(e, r, t) {
50
50
  var n = e.displayName;
51
51
  if (n)
52
52
  return n;
53
53
  var o = r.displayName || r.name || "";
54
54
  return o !== "" ? t + "(" + o + ")" : t;
55
55
  }
56
- function J(e) {
56
+ function X(e) {
57
57
  return e.displayName || "Context";
58
58
  }
59
- function d(e) {
59
+ function p(e) {
60
60
  if (e == null)
61
61
  return null;
62
- if (typeof e.tag == "number" && l("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof e == "function")
62
+ if (typeof e.tag == "number" && f("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof e == "function")
63
63
  return e.displayName || e.name || null;
64
64
  if (typeof e == "string")
65
65
  return e;
66
66
  switch (e) {
67
- case _:
67
+ case C:
68
68
  return "Fragment";
69
- case ye:
69
+ case _e:
70
70
  return "Portal";
71
71
  case N:
72
72
  return "Profiler";
73
- case U:
73
+ case K:
74
74
  return "StrictMode";
75
- case k:
75
+ case A:
76
76
  return "Suspense";
77
77
  case D:
78
78
  return "SuspenseList";
79
79
  }
80
80
  if (typeof e == "object")
81
81
  switch (e.$$typeof) {
82
- case q:
82
+ case J:
83
83
  var r = e;
84
- return J(r) + ".Consumer";
85
- case B:
84
+ return X(r) + ".Consumer";
85
+ case G:
86
86
  var t = e;
87
- return J(t._context) + ".Provider";
88
- case T:
89
- return xe(e, e.render, "ForwardRef");
90
- case C:
87
+ return X(t._context) + ".Provider";
88
+ case S:
89
+ return Ae(e, e.render, "ForwardRef");
90
+ case w:
91
91
  var n = e.displayName || null;
92
- return n !== null ? n : d(e.type) || "Memo";
92
+ return n !== null ? n : p(e.type) || "Memo";
93
93
  case F: {
94
94
  var o = e, u = o._payload, i = o._init;
95
95
  try {
96
- return d(i(u));
96
+ return p(i(u));
97
97
  } catch {
98
98
  return null;
99
99
  }
@@ -101,18 +101,18 @@ function ir() {
101
101
  }
102
102
  return null;
103
103
  }
104
- var g = Object.assign, y = 0, K, H, X, Z, Q, ee, re;
105
- function te() {
104
+ var g = Object.assign, R = 0, H, Z, Q, ee, re, te, ne;
105
+ function ae() {
106
106
  }
107
- te.__reactDisabledLog = !0;
108
- function ke() {
107
+ ae.__reactDisabledLog = !0;
108
+ function De() {
109
109
  {
110
- if (y === 0) {
111
- K = console.log, H = console.info, X = console.warn, Z = console.error, Q = console.group, ee = console.groupCollapsed, re = console.groupEnd;
110
+ if (R === 0) {
111
+ H = console.log, Z = console.info, Q = console.warn, ee = console.error, re = console.group, te = console.groupCollapsed, ne = console.groupEnd;
112
112
  var e = {
113
113
  configurable: !0,
114
114
  enumerable: !0,
115
- value: te,
115
+ value: ae,
116
116
  writable: !0
117
117
  };
118
118
  Object.defineProperties(console, {
@@ -125,12 +125,12 @@ function ir() {
125
125
  groupEnd: e
126
126
  });
127
127
  }
128
- y++;
128
+ R++;
129
129
  }
130
130
  }
131
- function De() {
131
+ function Fe() {
132
132
  {
133
- if (y--, y === 0) {
133
+ if (R--, R === 0) {
134
134
  var e = {
135
135
  configurable: !0,
136
136
  enumerable: !0,
@@ -138,64 +138,64 @@ function ir() {
138
138
  };
139
139
  Object.defineProperties(console, {
140
140
  log: g({}, e, {
141
- value: K
141
+ value: H
142
142
  }),
143
143
  info: g({}, e, {
144
- value: H
144
+ value: Z
145
145
  }),
146
146
  warn: g({}, e, {
147
- value: X
147
+ value: Q
148
148
  }),
149
149
  error: g({}, e, {
150
- value: Z
150
+ value: ee
151
151
  }),
152
152
  group: g({}, e, {
153
- value: Q
153
+ value: re
154
154
  }),
155
155
  groupCollapsed: g({}, e, {
156
- value: ee
156
+ value: te
157
157
  }),
158
158
  groupEnd: g({}, e, {
159
- value: re
159
+ value: ne
160
160
  })
161
161
  });
162
162
  }
163
- y < 0 && l("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
163
+ R < 0 && f("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
164
164
  }
165
165
  }
166
- var A = b.ReactCurrentDispatcher, I;
167
- function P(e, r, t) {
166
+ var I = h.ReactCurrentDispatcher, W;
167
+ function O(e, r, t) {
168
168
  {
169
- if (I === void 0)
169
+ if (W === void 0)
170
170
  try {
171
171
  throw Error();
172
172
  } catch (o) {
173
173
  var n = o.stack.trim().match(/\n( *(at )?)/);
174
- I = n && n[1] || "";
174
+ W = n && n[1] || "";
175
175
  }
176
176
  return `
177
- ` + I + e;
177
+ ` + W + e;
178
178
  }
179
179
  }
180
- var W = !1, w;
180
+ var Y = !1, P;
181
181
  {
182
- var Fe = typeof WeakMap == "function" ? WeakMap : Map;
183
- w = new Fe();
182
+ var Ie = typeof WeakMap == "function" ? WeakMap : Map;
183
+ P = new Ie();
184
184
  }
185
- function ne(e, r) {
186
- if (!e || W)
185
+ function ie(e, r) {
186
+ if (!e || Y)
187
187
  return "";
188
188
  {
189
- var t = w.get(e);
189
+ var t = P.get(e);
190
190
  if (t !== void 0)
191
191
  return t;
192
192
  }
193
193
  var n;
194
- W = !0;
194
+ Y = !0;
195
195
  var o = Error.prepareStackTrace;
196
196
  Error.prepareStackTrace = void 0;
197
197
  var u;
198
- u = A.current, A.current = null, ke();
198
+ u = I.current, I.current = null, De();
199
199
  try {
200
200
  if (r) {
201
201
  var i = function() {
@@ -208,98 +208,98 @@ function ir() {
208
208
  }), typeof Reflect == "object" && Reflect.construct) {
209
209
  try {
210
210
  Reflect.construct(i, []);
211
- } catch (p) {
212
- n = p;
211
+ } catch (v) {
212
+ n = v;
213
213
  }
214
214
  Reflect.construct(e, [], i);
215
215
  } else {
216
216
  try {
217
217
  i.call();
218
- } catch (p) {
219
- n = p;
218
+ } catch (v) {
219
+ n = v;
220
220
  }
221
221
  e.call(i.prototype);
222
222
  }
223
223
  } else {
224
224
  try {
225
225
  throw Error();
226
- } catch (p) {
227
- n = p;
226
+ } catch (v) {
227
+ n = v;
228
228
  }
229
229
  e();
230
230
  }
231
- } catch (p) {
232
- if (p && n && typeof p.stack == "string") {
233
- for (var a = p.stack.split(`
231
+ } catch (v) {
232
+ if (v && n && typeof v.stack == "string") {
233
+ for (var a = v.stack.split(`
234
234
  `), c = n.stack.split(`
235
- `), s = a.length - 1, f = c.length - 1; s >= 1 && f >= 0 && a[s] !== c[f]; )
236
- f--;
237
- for (; s >= 1 && f >= 0; s--, f--)
238
- if (a[s] !== c[f]) {
239
- if (s !== 1 || f !== 1)
235
+ `), s = a.length - 1, l = c.length - 1; s >= 1 && l >= 0 && a[s] !== c[l]; )
236
+ l--;
237
+ for (; s >= 1 && l >= 0; s--, l--)
238
+ if (a[s] !== c[l]) {
239
+ if (s !== 1 || l !== 1)
240
240
  do
241
- if (s--, f--, f < 0 || a[s] !== c[f]) {
242
- var v = `
241
+ if (s--, l--, l < 0 || a[s] !== c[l]) {
242
+ var d = `
243
243
  ` + a[s].replace(" at new ", " at ");
244
- return e.displayName && v.includes("<anonymous>") && (v = v.replace("<anonymous>", e.displayName)), typeof e == "function" && w.set(e, v), v;
244
+ return e.displayName && d.includes("<anonymous>") && (d = d.replace("<anonymous>", e.displayName)), typeof e == "function" && P.set(e, d), d;
245
245
  }
246
- while (s >= 1 && f >= 0);
246
+ while (s >= 1 && l >= 0);
247
247
  break;
248
248
  }
249
249
  }
250
250
  } finally {
251
- W = !1, A.current = u, De(), Error.prepareStackTrace = o;
251
+ Y = !1, I.current = u, Fe(), Error.prepareStackTrace = o;
252
252
  }
253
- var E = e ? e.displayName || e.name : "", be = E ? P(E) : "";
254
- return typeof e == "function" && w.set(e, be), be;
253
+ var E = e ? e.displayName || e.name : "", b = E ? O(E) : "";
254
+ return typeof e == "function" && P.set(e, b), b;
255
255
  }
256
- function Ae(e, r, t) {
257
- return ne(e, !1);
256
+ function We(e, r, t) {
257
+ return ie(e, !1);
258
258
  }
259
- function Ie(e) {
259
+ function Ye(e) {
260
260
  var r = e.prototype;
261
261
  return !!(r && r.isReactComponent);
262
262
  }
263
- function O(e, r, t) {
263
+ function j(e, r, t) {
264
264
  if (e == null)
265
265
  return "";
266
266
  if (typeof e == "function")
267
- return ne(e, Ie(e));
267
+ return ie(e, Ye(e));
268
268
  if (typeof e == "string")
269
- return P(e);
269
+ return O(e);
270
270
  switch (e) {
271
- case k:
272
- return P("Suspense");
271
+ case A:
272
+ return O("Suspense");
273
273
  case D:
274
- return P("SuspenseList");
274
+ return O("SuspenseList");
275
275
  }
276
276
  if (typeof e == "object")
277
277
  switch (e.$$typeof) {
278
- case T:
279
- return Ae(e.render);
280
- case C:
281
- return O(e.type, r, t);
278
+ case S:
279
+ return We(e.render);
280
+ case w:
281
+ return j(e.type, r, t);
282
282
  case F: {
283
283
  var n = e, o = n._payload, u = n._init;
284
284
  try {
285
- return O(u(o), r, t);
285
+ return j(u(o), r, t);
286
286
  } catch {
287
287
  }
288
288
  }
289
289
  }
290
290
  return "";
291
291
  }
292
- var S = Object.prototype.hasOwnProperty, ae = {}, ie = b.ReactDebugCurrentFrame;
293
- function j(e) {
292
+ var _ = Object.prototype.hasOwnProperty, oe = {}, ue = h.ReactDebugCurrentFrame;
293
+ function k(e) {
294
294
  if (e) {
295
- var r = e._owner, t = O(e.type, e._source, r ? r.type : null);
296
- ie.setExtraStackFrame(t);
295
+ var r = e._owner, t = j(e.type, e._source, r ? r.type : null);
296
+ ue.setExtraStackFrame(t);
297
297
  } else
298
- ie.setExtraStackFrame(null);
298
+ ue.setExtraStackFrame(null);
299
299
  }
300
- function We(e, r, t, n, o) {
300
+ function $e(e, r, t, n, o) {
301
301
  {
302
- var u = Function.call.bind(S);
302
+ var u = Function.call.bind(_);
303
303
  for (var i in e)
304
304
  if (u(e, i)) {
305
305
  var a = void 0;
@@ -312,51 +312,51 @@ function ir() {
312
312
  } catch (s) {
313
313
  a = s;
314
314
  }
315
- a && !(a instanceof Error) && (j(o), l("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", n || "React class", t, i, typeof a), j(null)), a instanceof Error && !(a.message in ae) && (ae[a.message] = !0, j(o), l("Failed %s type: %s", t, a.message), j(null));
315
+ a && !(a instanceof Error) && (k(o), f("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", n || "React class", t, i, typeof a), k(null)), a instanceof Error && !(a.message in oe) && (oe[a.message] = !0, k(o), f("Failed %s type: %s", t, a.message), k(null));
316
316
  }
317
317
  }
318
318
  }
319
- var $e = Array.isArray;
319
+ var Me = Array.isArray;
320
320
  function $(e) {
321
- return $e(e);
321
+ return Me(e);
322
322
  }
323
- function Ye(e) {
323
+ function Ve(e) {
324
324
  {
325
325
  var r = typeof Symbol == "function" && Symbol.toStringTag, t = r && e[Symbol.toStringTag] || e.constructor.name || "Object";
326
326
  return t;
327
327
  }
328
328
  }
329
- function Me(e) {
329
+ function Le(e) {
330
330
  try {
331
- return oe(e), !1;
331
+ return se(e), !1;
332
332
  } catch {
333
333
  return !0;
334
334
  }
335
335
  }
336
- function oe(e) {
336
+ function se(e) {
337
337
  return "" + e;
338
338
  }
339
- function ue(e) {
340
- if (Me(e))
341
- return l("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Ye(e)), oe(e);
339
+ function le(e) {
340
+ if (Le(e))
341
+ return f("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Ve(e)), se(e);
342
342
  }
343
- var m = b.ReactCurrentOwner, Ve = {
343
+ var m = h.ReactCurrentOwner, Ue = {
344
344
  key: !0,
345
345
  ref: !0,
346
346
  __self: !0,
347
347
  __source: !0
348
- }, se, fe, Y;
349
- Y = {};
350
- function Le(e) {
351
- if (S.call(e, "ref")) {
348
+ }, fe, ce, M;
349
+ M = {};
350
+ function Be(e) {
351
+ if (_.call(e, "ref")) {
352
352
  var r = Object.getOwnPropertyDescriptor(e, "ref").get;
353
353
  if (r && r.isReactWarning)
354
354
  return !1;
355
355
  }
356
356
  return e.ref !== void 0;
357
357
  }
358
- function Ue(e) {
359
- if (S.call(e, "key")) {
358
+ function Ke(e) {
359
+ if (_.call(e, "key")) {
360
360
  var r = Object.getOwnPropertyDescriptor(e, "key").get;
361
361
  if (r && r.isReactWarning)
362
362
  return !1;
@@ -365,14 +365,14 @@ function ir() {
365
365
  }
366
366
  function Ne(e, r) {
367
367
  if (typeof e.ref == "string" && m.current && r && m.current.stateNode !== r) {
368
- var t = d(m.current.type);
369
- Y[t] || (l('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', d(m.current.type), e.ref), Y[t] = !0);
368
+ var t = p(m.current.type);
369
+ M[t] || (f('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', p(m.current.type), e.ref), M[t] = !0);
370
370
  }
371
371
  }
372
- function Be(e, r) {
372
+ function Ge(e, r) {
373
373
  {
374
374
  var t = function() {
375
- se || (se = !0, l("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", r));
375
+ fe || (fe = !0, f("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", r));
376
376
  };
377
377
  t.isReactWarning = !0, Object.defineProperty(e, "key", {
378
378
  get: t,
@@ -380,10 +380,10 @@ function ir() {
380
380
  });
381
381
  }
382
382
  }
383
- function qe(e, r) {
383
+ function Je(e, r) {
384
384
  {
385
385
  var t = function() {
386
- fe || (fe = !0, l("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", r));
386
+ ce || (ce = !0, f("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", r));
387
387
  };
388
388
  t.isReactWarning = !0, Object.defineProperty(e, "ref", {
389
389
  get: t,
@@ -391,7 +391,7 @@ function ir() {
391
391
  });
392
392
  }
393
393
  }
394
- var Ge = function(e, r, t, n, o, u, i) {
394
+ var qe = function(e, r, t, n, o, u, i) {
395
395
  var a = {
396
396
  // This tag allows us to uniquely identify this as a React Element
397
397
  $$typeof: x,
@@ -423,38 +423,38 @@ function ir() {
423
423
  function ze(e, r, t, n, o) {
424
424
  {
425
425
  var u, i = {}, a = null, c = null;
426
- t !== void 0 && (ue(t), a = "" + t), Ue(r) && (ue(r.key), a = "" + r.key), Le(r) && (c = r.ref, Ne(r, o));
426
+ t !== void 0 && (le(t), a = "" + t), Ke(r) && (le(r.key), a = "" + r.key), Be(r) && (c = r.ref, Ne(r, o));
427
427
  for (u in r)
428
- S.call(r, u) && !Ve.hasOwnProperty(u) && (i[u] = r[u]);
428
+ _.call(r, u) && !Ue.hasOwnProperty(u) && (i[u] = r[u]);
429
429
  if (e && e.defaultProps) {
430
430
  var s = e.defaultProps;
431
431
  for (u in s)
432
432
  i[u] === void 0 && (i[u] = s[u]);
433
433
  }
434
434
  if (a || c) {
435
- var f = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
436
- a && Be(i, f), c && qe(i, f);
435
+ var l = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
436
+ a && Ge(i, l), c && Je(i, l);
437
437
  }
438
- return Ge(e, a, c, o, n, m.current, i);
438
+ return qe(e, a, c, o, n, m.current, i);
439
439
  }
440
440
  }
441
- var M = b.ReactCurrentOwner, le = b.ReactDebugCurrentFrame;
442
- function h(e) {
441
+ var V = h.ReactCurrentOwner, ve = h.ReactDebugCurrentFrame;
442
+ function y(e) {
443
443
  if (e) {
444
- var r = e._owner, t = O(e.type, e._source, r ? r.type : null);
445
- le.setExtraStackFrame(t);
444
+ var r = e._owner, t = j(e.type, e._source, r ? r.type : null);
445
+ ve.setExtraStackFrame(t);
446
446
  } else
447
- le.setExtraStackFrame(null);
447
+ ve.setExtraStackFrame(null);
448
448
  }
449
- var V;
450
- V = !1;
451
- function L(e) {
449
+ var L;
450
+ L = !1;
451
+ function U(e) {
452
452
  return typeof e == "object" && e !== null && e.$$typeof === x;
453
453
  }
454
- function ce() {
454
+ function de() {
455
455
  {
456
- if (M.current) {
457
- var e = d(M.current.type);
456
+ if (V.current) {
457
+ var e = p(V.current.type);
458
458
  if (e)
459
459
  return `
460
460
 
@@ -463,21 +463,13 @@ Check the render method of \`` + e + "`.";
463
463
  return "";
464
464
  }
465
465
  }
466
- function Je(e) {
467
- {
468
- if (e !== void 0) {
469
- var r = e.fileName.replace(/^.*[\\\/]/, ""), t = e.lineNumber;
470
- return `
471
-
472
- Check your code at ` + r + ":" + t + ".";
473
- }
474
- return "";
475
- }
466
+ function Xe(e) {
467
+ return "";
476
468
  }
477
- var ve = {};
478
- function Ke(e) {
469
+ var pe = {};
470
+ function He(e) {
479
471
  {
480
- var r = ce();
472
+ var r = de();
481
473
  if (!r) {
482
474
  var t = typeof e == "string" ? e : e.displayName || e.name;
483
475
  t && (r = `
@@ -487,39 +479,39 @@ Check the top-level render call using <` + t + ">.");
487
479
  return r;
488
480
  }
489
481
  }
490
- function de(e, r) {
482
+ function ge(e, r) {
491
483
  {
492
484
  if (!e._store || e._store.validated || e.key != null)
493
485
  return;
494
486
  e._store.validated = !0;
495
- var t = Ke(r);
496
- if (ve[t])
487
+ var t = He(r);
488
+ if (pe[t])
497
489
  return;
498
- ve[t] = !0;
490
+ pe[t] = !0;
499
491
  var n = "";
500
- e && e._owner && e._owner !== M.current && (n = " It was passed a child from " + d(e._owner.type) + "."), h(e), l('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', t, n), h(null);
492
+ e && e._owner && e._owner !== V.current && (n = " It was passed a child from " + p(e._owner.type) + "."), y(e), f('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', t, n), y(null);
501
493
  }
502
494
  }
503
- function pe(e, r) {
495
+ function be(e, r) {
504
496
  {
505
497
  if (typeof e != "object")
506
498
  return;
507
499
  if ($(e))
508
500
  for (var t = 0; t < e.length; t++) {
509
501
  var n = e[t];
510
- L(n) && de(n, r);
502
+ U(n) && ge(n, r);
511
503
  }
512
- else if (L(e))
504
+ else if (U(e))
513
505
  e._store && (e._store.validated = !0);
514
506
  else if (e) {
515
- var o = _e(e);
507
+ var o = Ce(e);
516
508
  if (typeof o == "function" && o !== e.entries)
517
509
  for (var u = o.call(e), i; !(i = u.next()).done; )
518
- L(i.value) && de(i.value, r);
510
+ U(i.value) && ge(i.value, r);
519
511
  }
520
512
  }
521
513
  }
522
- function He(e) {
514
+ function Ze(e) {
523
515
  {
524
516
  var r = e.type;
525
517
  if (r == null || typeof r == "string")
@@ -527,76 +519,91 @@ Check the top-level render call using <` + t + ">.");
527
519
  var t;
528
520
  if (typeof r == "function")
529
521
  t = r.propTypes;
530
- else if (typeof r == "object" && (r.$$typeof === T || // Note: Memo only checks outer props here.
522
+ else if (typeof r == "object" && (r.$$typeof === S || // Note: Memo only checks outer props here.
531
523
  // Inner props are checked in the reconciler.
532
- r.$$typeof === C))
524
+ r.$$typeof === w))
533
525
  t = r.propTypes;
534
526
  else
535
527
  return;
536
528
  if (t) {
537
- var n = d(r);
538
- We(t, e.props, "prop", n, e);
539
- } else if (r.PropTypes !== void 0 && !V) {
540
- V = !0;
541
- var o = d(r);
542
- l("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", o || "Unknown");
529
+ var n = p(r);
530
+ $e(t, e.props, "prop", n, e);
531
+ } else if (r.PropTypes !== void 0 && !L) {
532
+ L = !0;
533
+ var o = p(r);
534
+ f("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", o || "Unknown");
543
535
  }
544
- typeof r.getDefaultProps == "function" && !r.getDefaultProps.isReactClassApproved && l("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
536
+ typeof r.getDefaultProps == "function" && !r.getDefaultProps.isReactClassApproved && f("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
545
537
  }
546
538
  }
547
- function Xe(e) {
539
+ function Qe(e) {
548
540
  {
549
541
  for (var r = Object.keys(e.props), t = 0; t < r.length; t++) {
550
542
  var n = r[t];
551
543
  if (n !== "children" && n !== "key") {
552
- h(e), l("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", n), h(null);
544
+ y(e), f("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", n), y(null);
553
545
  break;
554
546
  }
555
547
  }
556
- e.ref !== null && (h(e), l("Invalid attribute `ref` supplied to `React.Fragment`."), h(null));
548
+ e.ref !== null && (y(e), f("Invalid attribute `ref` supplied to `React.Fragment`."), y(null));
557
549
  }
558
550
  }
559
- function ge(e, r, t, n, o, u) {
551
+ var he = {};
552
+ function ye(e, r, t, n, o, u) {
560
553
  {
561
- var i = je(e);
554
+ var i = xe(e);
562
555
  if (!i) {
563
556
  var a = "";
564
557
  (e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (a += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
565
- var c = Je(o);
566
- c ? a += c : a += ce();
558
+ var c = Xe();
559
+ c ? a += c : a += de();
567
560
  var s;
568
- e === null ? s = "null" : $(e) ? s = "array" : e !== void 0 && e.$$typeof === x ? (s = "<" + (d(e.type) || "Unknown") + " />", a = " Did you accidentally export a JSX literal instead of a component?") : s = typeof e, l("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", s, a);
561
+ e === null ? s = "null" : $(e) ? s = "array" : e !== void 0 && e.$$typeof === x ? (s = "<" + (p(e.type) || "Unknown") + " />", a = " Did you accidentally export a JSX literal instead of a component?") : s = typeof e, f("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", s, a);
569
562
  }
570
- var f = ze(e, r, t, o, u);
571
- if (f == null)
572
- return f;
563
+ var l = ze(e, r, t, o, u);
564
+ if (l == null)
565
+ return l;
573
566
  if (i) {
574
- var v = r.children;
575
- if (v !== void 0)
567
+ var d = r.children;
568
+ if (d !== void 0)
576
569
  if (n)
577
- if ($(v)) {
578
- for (var E = 0; E < v.length; E++)
579
- pe(v[E], e);
580
- Object.freeze && Object.freeze(v);
570
+ if ($(d)) {
571
+ for (var E = 0; E < d.length; E++)
572
+ be(d[E], e);
573
+ Object.freeze && Object.freeze(d);
581
574
  } else
582
- l("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
575
+ f("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
583
576
  else
584
- pe(v, e);
577
+ be(d, e);
578
+ }
579
+ if (_.call(r, "key")) {
580
+ var b = p(e), v = Object.keys(r).filter(function(ir) {
581
+ return ir !== "key";
582
+ }), B = v.length > 0 ? "{key: someKey, " + v.join(": ..., ") + ": ...}" : "{key: someKey}";
583
+ if (!he[b + B]) {
584
+ var ar = v.length > 0 ? "{" + v.join(": ..., ") + ": ...}" : "{}";
585
+ f(`A props object containing a "key" prop is being spread into JSX:
586
+ let props = %s;
587
+ <%s {...props} />
588
+ React keys must be passed directly to JSX without using spread:
589
+ let props = %s;
590
+ <%s key={someKey} {...props} />`, B, b, ar, b), he[b + B] = !0;
591
+ }
585
592
  }
586
- return e === _ ? Xe(f) : He(f), f;
593
+ return e === C ? Qe(l) : Ze(l), l;
587
594
  }
588
595
  }
589
- function Ze(e, r, t) {
590
- return ge(e, r, t, !0);
596
+ function er(e, r, t) {
597
+ return ye(e, r, t, !0);
591
598
  }
592
- function Qe(e, r, t) {
593
- return ge(e, r, t, !1);
599
+ function rr(e, r, t) {
600
+ return ye(e, r, t, !1);
594
601
  }
595
- var er = Qe, rr = Ze;
596
- R.Fragment = _, R.jsx = er, R.jsxs = rr;
597
- }(), R);
602
+ var tr = rr, nr = er;
603
+ T.Fragment = C, T.jsx = tr, T.jsxs = nr;
604
+ }(), T);
598
605
  }
599
606
  export {
600
- ir as __require
607
+ lr as __require
601
608
  };
602
609
  //# sourceMappingURL=annotorious-react.es20.js.map