@annotorious/react 3.0.21 → 3.1.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.
- package/dist/annotorious-react.es11.js +3 -6
- package/dist/annotorious-react.es11.js.map +1 -1
- package/dist/annotorious-react.es12.js +7 -7
- package/dist/annotorious-react.es12.js.map +1 -1
- package/dist/annotorious-react.es13.js +2 -2
- package/dist/annotorious-react.es16.js +3 -3
- package/dist/annotorious-react.es17.js +7 -10
- package/dist/annotorious-react.es17.js.map +1 -1
- package/dist/annotorious-react.es18.js +8 -2
- package/dist/annotorious-react.es18.js.map +1 -1
- package/dist/annotorious-react.es19.js +2 -33
- package/dist/annotorious-react.es19.js.map +1 -1
- package/dist/annotorious-react.es20.js +23 -396
- package/dist/annotorious-react.es20.js.map +1 -1
- package/dist/annotorious-react.es21.js +404 -127
- package/dist/annotorious-react.es21.js.map +1 -1
- package/dist/annotorious-react.es22.js +129 -2
- package/dist/annotorious-react.es22.js.map +1 -1
- package/dist/annotorious-react.es23.js +2 -2
- package/dist/annotorious-react.es24.js +2 -7
- package/dist/annotorious-react.es24.js.map +1 -1
- package/dist/annotorious-react.es25.js +7 -2
- package/dist/annotorious-react.es25.js.map +1 -1
- package/dist/annotorious-react.es26.js +2 -11
- package/dist/annotorious-react.es26.js.map +1 -1
- package/dist/annotorious-react.es27.js +9 -124
- package/dist/annotorious-react.es27.js.map +1 -1
- package/dist/annotorious-react.es28.js +112 -452
- package/dist/annotorious-react.es28.js.map +1 -1
- package/dist/annotorious-react.es29.js +469 -0
- package/dist/annotorious-react.es29.js.map +1 -0
- package/package.json +9 -9
|
@@ -1,9 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
import { __require as o } from "./annotorious-react.es20.js";
|
|
4
|
-
process.env.NODE_ENV === "production" ? e.exports = r() : e.exports = o();
|
|
5
|
-
var m = e.exports;
|
|
1
|
+
import { __require as r } from "./annotorious-react.es18.js";
|
|
2
|
+
var i = r();
|
|
6
3
|
export {
|
|
7
|
-
|
|
4
|
+
i as j
|
|
8
5
|
};
|
|
9
6
|
//# sourceMappingURL=annotorious-react.es11.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"annotorious-react.es11.js","sources":[
|
|
1
|
+
{"version":3,"file":"annotorious-react.es11.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;"}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { useState as
|
|
2
|
-
const
|
|
3
|
-
const [
|
|
4
|
-
return s(() => (
|
|
5
|
-
clearTimeout(
|
|
6
|
-
}), [e, t]),
|
|
1
|
+
import { useState as o, useRef as c, useEffect as s } from "react";
|
|
2
|
+
const i = (e, t) => {
|
|
3
|
+
const [r, n] = o(e), u = c(void 0);
|
|
4
|
+
return s(() => (u.current = setTimeout(() => n(e), t), () => {
|
|
5
|
+
clearTimeout(u.current);
|
|
6
|
+
}), [e, t]), r;
|
|
7
7
|
};
|
|
8
8
|
export {
|
|
9
|
-
|
|
9
|
+
i as useDebounce
|
|
10
10
|
};
|
|
11
11
|
//# sourceMappingURL=annotorious-react.es12.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"annotorious-react.es12.js","sources":["../src/useDebounce.ts"],"sourcesContent":["import { useEffect, useRef, useState } from 'react';\n\nexport const useDebounce = (value: any, delay: number) => {\n const [debouncedValue, setDebouncedValue] = useState<any>(value);\n\n const timerRef = useRef<ReturnType<typeof setTimeout>>();\n\n useEffect(() => {\n timerRef.current = \n setTimeout(() => setDebouncedValue(value), delay);\n\n return () => {\n clearTimeout(timerRef.current);\n };\n }, [value, delay]);\n\n return debouncedValue;\n}"],"names":["useDebounce","value","delay","debouncedValue","setDebouncedValue","useState","timerRef","useRef","useEffect"],"mappings":";AAEa,MAAAA,IAAc,CAACC,GAAYC,MAAkB;AACxD,QAAM,CAACC,GAAgBC,CAAiB,IAAIC,EAAcJ,CAAK,GAEzDK,IAAWC,EAAsC;
|
|
1
|
+
{"version":3,"file":"annotorious-react.es12.js","sources":["../src/useDebounce.ts"],"sourcesContent":["import { useEffect, useRef, useState } from 'react';\n\nexport const useDebounce = (value: any, delay: number) => {\n const [debouncedValue, setDebouncedValue] = useState<any>(value);\n\n const timerRef = useRef<ReturnType<typeof setTimeout>>(undefined);\n\n useEffect(() => {\n timerRef.current = \n setTimeout(() => setDebouncedValue(value), delay);\n\n return () => {\n clearTimeout(timerRef.current);\n };\n }, [value, delay]);\n\n return debouncedValue;\n}"],"names":["useDebounce","value","delay","debouncedValue","setDebouncedValue","useState","timerRef","useRef","useEffect"],"mappings":";AAEa,MAAAA,IAAc,CAACC,GAAYC,MAAkB;AACxD,QAAM,CAACC,GAAgBC,CAAiB,IAAIC,EAAcJ,CAAK,GAEzDK,IAAWC,EAAsC,MAAS;AAEhE,SAAAC,EAAU,OACRF,EAAS,UACP,WAAW,MAAMF,EAAkBH,CAAK,GAAGC,CAAK,GAE3C,MAAM;AACX,iBAAaI,EAAS,OAAO;AAAA,EAC/B,IACC,CAACL,GAAOC,CAAK,CAAC,GAEVC;AACT;"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import * as s from "react";
|
|
2
2
|
import { useLayoutEffect as k, useEffect as q } from "react";
|
|
3
3
|
import { j as F } from "./annotorious-react.es11.js";
|
|
4
|
-
import { getComputedStyle as Q, isElement as P } from "./annotorious-react.
|
|
5
|
-
import { getOverflowAncestors as xe } from "./annotorious-react.
|
|
4
|
+
import { getComputedStyle as Q, isElement as P } from "./annotorious-react.es22.js";
|
|
5
|
+
import { getOverflowAncestors as xe } from "./annotorious-react.es22.js";
|
|
6
6
|
import "react-dom";
|
|
7
7
|
import { useFloating as Z } from "./annotorious-react.es15.js";
|
|
8
8
|
import { arrow as ve, flip as we, inline as Ee, offset as Se, shift as Ie } from "./annotorious-react.es15.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { offset as ot, shift as st, flip as rt, inline as ct, arrow as lt, computePosition as ft } from "./annotorious-react.
|
|
2
|
-
import { createCoords as m, rectToClientRect as J, round as H, floor as A, max as E, min as z } from "./annotorious-react.
|
|
3
|
-
import { getOverflowAncestors as $, isElement as v, getWindow as L, getFrameElement as K, getComputedStyle as R, getDocumentElement as O, isHTMLElement as b, isWebKit as Q, isTopLayer as M, getNodeName as S, isOverflowElement as _, getNodeScroll as I, getParentNode as W, isLastTraversableNode as N, isTableElement as ut, isContainingBlock as Y, getContainingBlock as ht } from "./annotorious-react.
|
|
1
|
+
import { offset as ot, shift as st, flip as rt, inline as ct, arrow as lt, computePosition as ft } from "./annotorious-react.es29.js";
|
|
2
|
+
import { createCoords as m, rectToClientRect as J, round as H, floor as A, max as E, min as z } from "./annotorious-react.es28.js";
|
|
3
|
+
import { getOverflowAncestors as $, isElement as v, getWindow as L, getFrameElement as K, getComputedStyle as R, getDocumentElement as O, isHTMLElement as b, isWebKit as Q, isTopLayer as M, getNodeName as S, isOverflowElement as _, getNodeScroll as I, getParentNode as W, isLastTraversableNode as N, isTableElement as ut, isContainingBlock as Y, getContainingBlock as ht } from "./annotorious-react.es22.js";
|
|
4
4
|
function Z(t) {
|
|
5
5
|
const e = R(t);
|
|
6
6
|
let n = parseFloat(e.width) || 0, i = parseFloat(e.height) || 0;
|
|
@@ -1,17 +1,14 @@
|
|
|
1
|
-
import m from "./annotorious-react.es25.js";
|
|
2
1
|
import n from "./annotorious-react.es26.js";
|
|
3
|
-
import
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
if (
|
|
7
|
-
return
|
|
2
|
+
import m from "./annotorious-react.es27.js";
|
|
3
|
+
import { unsafeStringify as t } from "./annotorious-react.es25.js";
|
|
4
|
+
function x(r, e, a) {
|
|
5
|
+
if (n.randomUUID && !r)
|
|
6
|
+
return n.randomUUID();
|
|
8
7
|
r = r || {};
|
|
9
|
-
const f = r.random
|
|
10
|
-
if (f.length < 16)
|
|
11
|
-
throw new Error("Random bytes length must be >= 16");
|
|
8
|
+
const f = r.random || (r.rng || m)();
|
|
12
9
|
return f[6] = f[6] & 15 | 64, f[8] = f[8] & 63 | 128, t(f);
|
|
13
10
|
}
|
|
14
11
|
export {
|
|
15
|
-
|
|
12
|
+
x as default
|
|
16
13
|
};
|
|
17
14
|
//# sourceMappingURL=annotorious-react.es17.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"annotorious-react.es17.js","sources":["
|
|
1
|
+
{"version":3,"file":"annotorious-react.es17.js","sources":["../node_modules/uuid/dist/esm-browser/v4.js"],"sourcesContent":["import native from './native.js';\nimport rng from './rng.js';\nimport { unsafeStringify } from './stringify.js';\nfunction v4(options, buf, offset) {\n if (native.randomUUID && !buf && !options) {\n return native.randomUUID();\n }\n options = options || {};\n const rnds = options.random || (options.rng || rng)();\n rnds[6] = (rnds[6] & 0x0f) | 0x40;\n rnds[8] = (rnds[8] & 0x3f) | 0x80;\n if (buf) {\n offset = offset || 0;\n for (let i = 0; i < 16; ++i) {\n buf[offset + i] = rnds[i];\n }\n return buf;\n }\n return unsafeStringify(rnds);\n}\nexport default v4;\n"],"names":["v4","options","buf","offset","native","rnds","rng","unsafeStringify"],"mappings":";;;AAGA,SAASA,EAAGC,GAASC,GAAKC,GAAQ;AAC9B,MAAIC,EAAO,cAAsB,CAACH;AAC9B,WAAOG,EAAO,WAAY;AAE9B,EAAAH,IAAUA,KAAW,CAAE;AACvB,QAAMI,IAAOJ,EAAQ,WAAWA,EAAQ,OAAOK,GAAM;AACrD,SAAAD,EAAK,CAAC,IAAKA,EAAK,CAAC,IAAI,KAAQ,IAC7BA,EAAK,CAAC,IAAKA,EAAK,CAAC,IAAI,KAAQ,KAQtBE,EAAgBF,CAAI;AAC/B;","x_google_ignoreList":[0]}
|
|
@@ -1,5 +1,11 @@
|
|
|
1
|
-
|
|
1
|
+
import { __module as e } from "./annotorious-react.es19.js";
|
|
2
|
+
import { __require as t } from "./annotorious-react.es20.js";
|
|
3
|
+
import { __require as i } from "./annotorious-react.es21.js";
|
|
4
|
+
var r;
|
|
5
|
+
function m() {
|
|
6
|
+
return r ? e.exports : (r = 1, process.env.NODE_ENV === "production" ? e.exports = t() : e.exports = i(), e.exports);
|
|
7
|
+
}
|
|
2
8
|
export {
|
|
3
|
-
|
|
9
|
+
m as __require
|
|
4
10
|
};
|
|
5
11
|
//# sourceMappingURL=annotorious-react.es18.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"annotorious-react.es18.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"annotorious-react.es18.js","sources":["../../../node_modules/react/jsx-runtime.js"],"sourcesContent":["'use strict';\n\nif (process.env.NODE_ENV === 'production') {\n module.exports = require('./cjs/react-jsx-runtime.production.js');\n} else {\n module.exports = require('./cjs/react-jsx-runtime.development.js');\n}\n"],"names":["jsxRuntimeModule","require$$0","require$$1"],"mappings":";;;;;iCAEI,QAAQ,IAAI,aAAa,eAC3BA,EAAA,UAAiBC,EAAgD,IAEjED,EAAA,UAAiBE,EAAiD;;","x_google_ignoreList":[0]}
|
|
@@ -1,36 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
/**
|
|
3
|
-
* @license React
|
|
4
|
-
* react-jsx-runtime.production.js
|
|
5
|
-
*
|
|
6
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
7
|
-
*
|
|
8
|
-
* This source code is licensed under the MIT license found in the
|
|
9
|
-
* LICENSE file in the root directory of this source tree.
|
|
10
|
-
*/
|
|
11
|
-
var i;
|
|
12
|
-
function R() {
|
|
13
|
-
if (i) return t;
|
|
14
|
-
i = 1;
|
|
15
|
-
var d = Symbol.for("react.transitional.element"), o = Symbol.for("react.fragment");
|
|
16
|
-
function s(_, r, e) {
|
|
17
|
-
var n = null;
|
|
18
|
-
if (e !== void 0 && (n = "" + e), r.key !== void 0 && (n = "" + r.key), "key" in r) {
|
|
19
|
-
e = {};
|
|
20
|
-
for (var u in r)
|
|
21
|
-
u !== "key" && (e[u] = r[u]);
|
|
22
|
-
} else e = r;
|
|
23
|
-
return r = e.ref, {
|
|
24
|
-
$$typeof: d,
|
|
25
|
-
type: _,
|
|
26
|
-
key: n,
|
|
27
|
-
ref: r !== void 0 ? r : null,
|
|
28
|
-
props: e
|
|
29
|
-
};
|
|
30
|
-
}
|
|
31
|
-
return t.Fragment = o, t.jsx = s, t.jsxs = s, t;
|
|
32
|
-
}
|
|
1
|
+
var e = { exports: {} };
|
|
33
2
|
export {
|
|
34
|
-
|
|
3
|
+
e as __module
|
|
35
4
|
};
|
|
36
5
|
//# sourceMappingURL=annotorious-react.es19.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"annotorious-react.es19.js","sources":[
|
|
1
|
+
{"version":3,"file":"annotorious-react.es19.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
|
|
@@ -1,409 +1,36 @@
|
|
|
1
|
-
import { __exports as
|
|
2
|
-
import we from "react";
|
|
1
|
+
import { __exports as t } from "./annotorious-react.es23.js";
|
|
3
2
|
/**
|
|
4
3
|
* @license React
|
|
5
|
-
* react-jsx-runtime.
|
|
4
|
+
* react-jsx-runtime.production.js
|
|
6
5
|
*
|
|
7
6
|
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
8
7
|
*
|
|
9
8
|
* This source code is licensed under the MIT license found in the
|
|
10
9
|
* LICENSE file in the root directory of this source tree.
|
|
11
10
|
*/
|
|
12
|
-
var
|
|
13
|
-
function
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
return "Suspense";
|
|
31
|
-
case R:
|
|
32
|
-
return "SuspenseList";
|
|
33
|
-
}
|
|
34
|
-
if (typeof e == "object")
|
|
35
|
-
switch (typeof e.tag == "number" && console.error(
|
|
36
|
-
"Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."
|
|
37
|
-
), e.$$typeof) {
|
|
38
|
-
case q:
|
|
39
|
-
return (e.displayName || "Context") + ".Provider";
|
|
40
|
-
case X:
|
|
41
|
-
return (e._context.displayName || "Context") + ".Consumer";
|
|
42
|
-
case S:
|
|
43
|
-
var r = e.render;
|
|
44
|
-
return e = e.displayName, e || (e = r.displayName || r.name || "", e = e !== "" ? "ForwardRef(" + e + ")" : "ForwardRef"), e;
|
|
45
|
-
case k:
|
|
46
|
-
return r = e.displayName || null, r !== null ? r : s(e.type) || "Memo";
|
|
47
|
-
case p:
|
|
48
|
-
r = e._payload, e = e._init;
|
|
49
|
-
try {
|
|
50
|
-
return s(e(r));
|
|
51
|
-
} catch {
|
|
52
|
-
}
|
|
53
|
-
}
|
|
54
|
-
return null;
|
|
55
|
-
}
|
|
56
|
-
function M(e) {
|
|
57
|
-
return "" + e;
|
|
58
|
-
}
|
|
59
|
-
function W(e) {
|
|
60
|
-
try {
|
|
61
|
-
M(e);
|
|
62
|
-
var r = !1;
|
|
63
|
-
} catch {
|
|
64
|
-
r = !0;
|
|
65
|
-
}
|
|
66
|
-
if (r) {
|
|
67
|
-
r = console;
|
|
68
|
-
var t = r.error, n = typeof Symbol == "function" && Symbol.toStringTag && e[Symbol.toStringTag] || e.constructor.name || "Object";
|
|
69
|
-
return t.call(
|
|
70
|
-
r,
|
|
71
|
-
"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
|
|
72
|
-
n
|
|
73
|
-
), M(e);
|
|
74
|
-
}
|
|
75
|
-
}
|
|
76
|
-
function $() {
|
|
77
|
-
}
|
|
78
|
-
function le() {
|
|
79
|
-
if (v === 0) {
|
|
80
|
-
Z = console.log, F = console.info, I = console.warn, L = console.error, Q = console.group, D = console.groupCollapsed, ee = console.groupEnd;
|
|
81
|
-
var e = {
|
|
82
|
-
configurable: !0,
|
|
83
|
-
enumerable: !0,
|
|
84
|
-
value: $,
|
|
85
|
-
writable: !0
|
|
86
|
-
};
|
|
87
|
-
Object.defineProperties(console, {
|
|
88
|
-
info: e,
|
|
89
|
-
log: e,
|
|
90
|
-
warn: e,
|
|
91
|
-
error: e,
|
|
92
|
-
group: e,
|
|
93
|
-
groupCollapsed: e,
|
|
94
|
-
groupEnd: e
|
|
95
|
-
});
|
|
96
|
-
}
|
|
97
|
-
v++;
|
|
98
|
-
}
|
|
99
|
-
function fe() {
|
|
100
|
-
if (v--, v === 0) {
|
|
101
|
-
var e = { configurable: !0, enumerable: !0, writable: !0 };
|
|
102
|
-
Object.defineProperties(console, {
|
|
103
|
-
log: E({}, e, { value: Z }),
|
|
104
|
-
info: E({}, e, { value: F }),
|
|
105
|
-
warn: E({}, e, { value: I }),
|
|
106
|
-
error: E({}, e, { value: L }),
|
|
107
|
-
group: E({}, e, { value: Q }),
|
|
108
|
-
groupCollapsed: E({}, e, { value: D }),
|
|
109
|
-
groupEnd: E({}, e, { value: ee })
|
|
110
|
-
});
|
|
111
|
-
}
|
|
112
|
-
0 > v && console.error(
|
|
113
|
-
"disabledDepth fell below zero. This is a bug in React. Please file an issue."
|
|
114
|
-
);
|
|
115
|
-
}
|
|
116
|
-
function y(e) {
|
|
117
|
-
if (x === void 0)
|
|
118
|
-
try {
|
|
119
|
-
throw Error();
|
|
120
|
-
} catch (t) {
|
|
121
|
-
var r = t.stack.trim().match(/\n( *(at )?)/);
|
|
122
|
-
x = r && r[1] || "", re = -1 < t.stack.indexOf(`
|
|
123
|
-
at`) ? " (<anonymous>)" : -1 < t.stack.indexOf("@") ? "@unknown:0:0" : "";
|
|
124
|
-
}
|
|
125
|
-
return `
|
|
126
|
-
` + x + e + re;
|
|
127
|
-
}
|
|
128
|
-
function U(e, r) {
|
|
129
|
-
if (!e || P) return "";
|
|
130
|
-
var t = Y.get(e);
|
|
131
|
-
if (t !== void 0) return t;
|
|
132
|
-
P = !0, t = Error.prepareStackTrace, Error.prepareStackTrace = void 0;
|
|
133
|
-
var n = null;
|
|
134
|
-
n = d.H, d.H = null, le();
|
|
135
|
-
try {
|
|
136
|
-
var u = {
|
|
137
|
-
DetermineComponentFrameRoot: function() {
|
|
138
|
-
try {
|
|
139
|
-
if (r) {
|
|
140
|
-
var i = function() {
|
|
141
|
-
throw Error();
|
|
142
|
-
};
|
|
143
|
-
if (Object.defineProperty(i.prototype, "props", {
|
|
144
|
-
set: function() {
|
|
145
|
-
throw Error();
|
|
146
|
-
}
|
|
147
|
-
}), typeof Reflect == "object" && Reflect.construct) {
|
|
148
|
-
try {
|
|
149
|
-
Reflect.construct(i, []);
|
|
150
|
-
} catch (c) {
|
|
151
|
-
var w = c;
|
|
152
|
-
}
|
|
153
|
-
Reflect.construct(e, [], i);
|
|
154
|
-
} else {
|
|
155
|
-
try {
|
|
156
|
-
i.call();
|
|
157
|
-
} catch (c) {
|
|
158
|
-
w = c;
|
|
159
|
-
}
|
|
160
|
-
e.call(i.prototype);
|
|
161
|
-
}
|
|
162
|
-
} else {
|
|
163
|
-
try {
|
|
164
|
-
throw Error();
|
|
165
|
-
} catch (c) {
|
|
166
|
-
w = c;
|
|
167
|
-
}
|
|
168
|
-
(i = e()) && typeof i.catch == "function" && i.catch(function() {
|
|
169
|
-
});
|
|
170
|
-
}
|
|
171
|
-
} catch (c) {
|
|
172
|
-
if (c && w && typeof c.stack == "string")
|
|
173
|
-
return [c.stack, w.stack];
|
|
174
|
-
}
|
|
175
|
-
return [null, null];
|
|
176
|
-
}
|
|
177
|
-
};
|
|
178
|
-
u.DetermineComponentFrameRoot.displayName = "DetermineComponentFrameRoot";
|
|
179
|
-
var a = Object.getOwnPropertyDescriptor(
|
|
180
|
-
u.DetermineComponentFrameRoot,
|
|
181
|
-
"name"
|
|
182
|
-
);
|
|
183
|
-
a && a.configurable && Object.defineProperty(
|
|
184
|
-
u.DetermineComponentFrameRoot,
|
|
185
|
-
"name",
|
|
186
|
-
{ value: "DetermineComponentFrameRoot" }
|
|
187
|
-
);
|
|
188
|
-
var o = u.DetermineComponentFrameRoot(), f = o[0], g = o[1];
|
|
189
|
-
if (f && g) {
|
|
190
|
-
var l = f.split(`
|
|
191
|
-
`), b = g.split(`
|
|
192
|
-
`);
|
|
193
|
-
for (o = a = 0; a < l.length && !l[a].includes(
|
|
194
|
-
"DetermineComponentFrameRoot"
|
|
195
|
-
); )
|
|
196
|
-
a++;
|
|
197
|
-
for (; o < b.length && !b[o].includes(
|
|
198
|
-
"DetermineComponentFrameRoot"
|
|
199
|
-
); )
|
|
200
|
-
o++;
|
|
201
|
-
if (a === l.length || o === b.length)
|
|
202
|
-
for (a = l.length - 1, o = b.length - 1; 1 <= a && 0 <= o && l[a] !== b[o]; )
|
|
203
|
-
o--;
|
|
204
|
-
for (; 1 <= a && 0 <= o; a--, o--)
|
|
205
|
-
if (l[a] !== b[o]) {
|
|
206
|
-
if (a !== 1 || o !== 1)
|
|
207
|
-
do
|
|
208
|
-
if (a--, o--, 0 > o || l[a] !== b[o]) {
|
|
209
|
-
var m = `
|
|
210
|
-
` + l[a].replace(
|
|
211
|
-
" at new ",
|
|
212
|
-
" at "
|
|
213
|
-
);
|
|
214
|
-
return e.displayName && m.includes("<anonymous>") && (m = m.replace("<anonymous>", e.displayName)), typeof e == "function" && Y.set(e, m), m;
|
|
215
|
-
}
|
|
216
|
-
while (1 <= a && 0 <= o);
|
|
217
|
-
break;
|
|
218
|
-
}
|
|
219
|
-
}
|
|
220
|
-
} finally {
|
|
221
|
-
P = !1, d.H = n, fe(), Error.prepareStackTrace = t;
|
|
222
|
-
}
|
|
223
|
-
return l = (l = e ? e.displayName || e.name : "") ? y(l) : "", typeof e == "function" && Y.set(e, l), l;
|
|
224
|
-
}
|
|
225
|
-
function T(e) {
|
|
226
|
-
if (e == null) return "";
|
|
227
|
-
if (typeof e == "function") {
|
|
228
|
-
var r = e.prototype;
|
|
229
|
-
return U(
|
|
230
|
-
e,
|
|
231
|
-
!(!r || !r.isReactComponent)
|
|
232
|
-
);
|
|
233
|
-
}
|
|
234
|
-
if (typeof e == "string") return y(e);
|
|
235
|
-
switch (e) {
|
|
236
|
-
case A:
|
|
237
|
-
return y("Suspense");
|
|
238
|
-
case R:
|
|
239
|
-
return y("SuspenseList");
|
|
240
|
-
}
|
|
241
|
-
if (typeof e == "object")
|
|
242
|
-
switch (e.$$typeof) {
|
|
243
|
-
case S:
|
|
244
|
-
return e = U(e.render, !1), e;
|
|
245
|
-
case k:
|
|
246
|
-
return T(e.type);
|
|
247
|
-
case p:
|
|
248
|
-
r = e._payload, e = e._init;
|
|
249
|
-
try {
|
|
250
|
-
return T(e(r));
|
|
251
|
-
} catch {
|
|
252
|
-
}
|
|
253
|
-
}
|
|
254
|
-
return "";
|
|
255
|
-
}
|
|
256
|
-
function C() {
|
|
257
|
-
var e = d.A;
|
|
258
|
-
return e === null ? null : e.getOwner();
|
|
259
|
-
}
|
|
260
|
-
function ce(e) {
|
|
261
|
-
if (J.call(e, "key")) {
|
|
262
|
-
var r = Object.getOwnPropertyDescriptor(e, "key").get;
|
|
263
|
-
if (r && r.isReactWarning) return !1;
|
|
264
|
-
}
|
|
265
|
-
return e.key !== void 0;
|
|
266
|
-
}
|
|
267
|
-
function se(e, r) {
|
|
268
|
-
function t() {
|
|
269
|
-
te || (te = !0, console.error(
|
|
270
|
-
"%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://react.dev/link/special-props)",
|
|
271
|
-
r
|
|
272
|
-
));
|
|
273
|
-
}
|
|
274
|
-
t.isReactWarning = !0, Object.defineProperty(e, "key", {
|
|
275
|
-
get: t,
|
|
276
|
-
configurable: !0
|
|
277
|
-
});
|
|
278
|
-
}
|
|
279
|
-
function ie() {
|
|
280
|
-
var e = s(this.type);
|
|
281
|
-
return oe[e] || (oe[e] = !0, console.error(
|
|
282
|
-
"Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release."
|
|
283
|
-
)), e = this.props.ref, e !== void 0 ? e : null;
|
|
284
|
-
}
|
|
285
|
-
function de(e, r, t, n, u, a) {
|
|
286
|
-
return t = a.ref, e = {
|
|
287
|
-
$$typeof: O,
|
|
288
|
-
type: e,
|
|
289
|
-
key: r,
|
|
290
|
-
props: a,
|
|
291
|
-
_owner: u
|
|
292
|
-
}, (t !== void 0 ? t : null) !== null ? Object.defineProperty(e, "ref", {
|
|
293
|
-
enumerable: !1,
|
|
294
|
-
get: ie
|
|
295
|
-
}) : Object.defineProperty(e, "ref", { enumerable: !1, value: null }), e._store = {}, Object.defineProperty(e._store, "validated", {
|
|
296
|
-
configurable: !1,
|
|
297
|
-
enumerable: !1,
|
|
298
|
-
writable: !0,
|
|
299
|
-
value: 0
|
|
300
|
-
}), Object.defineProperty(e, "_debugInfo", {
|
|
301
|
-
configurable: !1,
|
|
302
|
-
enumerable: !1,
|
|
303
|
-
writable: !0,
|
|
304
|
-
value: null
|
|
305
|
-
}), Object.freeze && (Object.freeze(e.props), Object.freeze(e)), e;
|
|
306
|
-
}
|
|
307
|
-
function z(e, r, t, n, u, a) {
|
|
308
|
-
if (typeof e == "string" || typeof e == "function" || e === j || e === K || e === H || e === A || e === R || e === ve || typeof e == "object" && e !== null && (e.$$typeof === p || e.$$typeof === k || e.$$typeof === q || e.$$typeof === X || e.$$typeof === S || e.$$typeof === _e || e.getModuleId !== void 0)) {
|
|
309
|
-
var o = r.children;
|
|
310
|
-
if (o !== void 0)
|
|
311
|
-
if (n)
|
|
312
|
-
if (N(o)) {
|
|
313
|
-
for (n = 0; n < o.length; n++)
|
|
314
|
-
V(o[n], e);
|
|
315
|
-
Object.freeze && Object.freeze(o);
|
|
316
|
-
} else
|
|
317
|
-
console.error(
|
|
318
|
-
"React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead."
|
|
319
|
-
);
|
|
320
|
-
else V(o, e);
|
|
321
|
-
} else
|
|
322
|
-
o = "", (e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (o += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports."), e === null ? n = "null" : N(e) ? n = "array" : e !== void 0 && e.$$typeof === O ? (n = "<" + (s(e.type) || "Unknown") + " />", o = " Did you accidentally export a JSX literal instead of a component?") : n = typeof e, console.error(
|
|
323
|
-
"React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",
|
|
324
|
-
n,
|
|
325
|
-
o
|
|
326
|
-
);
|
|
327
|
-
if (J.call(r, "key")) {
|
|
328
|
-
o = s(e);
|
|
329
|
-
var f = Object.keys(r).filter(function(l) {
|
|
330
|
-
return l !== "key";
|
|
331
|
-
});
|
|
332
|
-
n = 0 < f.length ? "{key: someKey, " + f.join(": ..., ") + ": ...}" : "{key: someKey}", ne[o + n] || (f = 0 < f.length ? "{" + f.join(": ..., ") + ": ...}" : "{}", console.error(
|
|
333
|
-
`A props object containing a "key" prop is being spread into JSX:
|
|
334
|
-
let props = %s;
|
|
335
|
-
<%s {...props} />
|
|
336
|
-
React keys must be passed directly to JSX without using spread:
|
|
337
|
-
let props = %s;
|
|
338
|
-
<%s key={someKey} {...props} />`,
|
|
339
|
-
n,
|
|
340
|
-
o,
|
|
341
|
-
f,
|
|
342
|
-
o
|
|
343
|
-
), ne[o + n] = !0);
|
|
344
|
-
}
|
|
345
|
-
if (o = null, t !== void 0 && (W(t), o = "" + t), ce(r) && (W(r.key), o = "" + r.key), "key" in r) {
|
|
346
|
-
t = {};
|
|
347
|
-
for (var g in r)
|
|
348
|
-
g !== "key" && (t[g] = r[g]);
|
|
349
|
-
} else t = r;
|
|
350
|
-
return o && se(
|
|
351
|
-
t,
|
|
352
|
-
typeof e == "function" ? e.displayName || e.name || "Unknown" : e
|
|
353
|
-
), de(e, o, a, u, C(), t);
|
|
354
|
-
}
|
|
355
|
-
function V(e, r) {
|
|
356
|
-
if (typeof e == "object" && e && e.$$typeof !== ye) {
|
|
357
|
-
if (N(e))
|
|
358
|
-
for (var t = 0; t < e.length; t++) {
|
|
359
|
-
var n = e[t];
|
|
360
|
-
h(n) && G(n, r);
|
|
361
|
-
}
|
|
362
|
-
else if (h(e))
|
|
363
|
-
e._store && (e._store.validated = 1);
|
|
364
|
-
else if (e === null || typeof e != "object" ? t = null : (t = B && e[B] || e["@@iterator"], t = typeof t == "function" ? t : null), typeof t == "function" && t !== e.entries && (t = t.call(e), t !== e))
|
|
365
|
-
for (; !(e = t.next()).done; )
|
|
366
|
-
h(e.value) && G(e.value, r);
|
|
367
|
-
}
|
|
368
|
-
}
|
|
369
|
-
function h(e) {
|
|
370
|
-
return typeof e == "object" && e !== null && e.$$typeof === O;
|
|
371
|
-
}
|
|
372
|
-
function G(e, r) {
|
|
373
|
-
if (e._store && !e._store.validated && e.key == null && (e._store.validated = 1, r = Ee(r), !ae[r])) {
|
|
374
|
-
ae[r] = !0;
|
|
375
|
-
var t = "";
|
|
376
|
-
e && e._owner != null && e._owner !== C() && (t = null, typeof e._owner.tag == "number" ? t = s(e._owner.type) : typeof e._owner.name == "string" && (t = e._owner.name), t = " It was passed a child from " + t + ".");
|
|
377
|
-
var n = d.getCurrentStack;
|
|
378
|
-
d.getCurrentStack = function() {
|
|
379
|
-
var u = T(e.type);
|
|
380
|
-
return n && (u += n() || ""), u;
|
|
381
|
-
}, console.error(
|
|
382
|
-
'Each child in a list should have a unique "key" prop.%s%s See https://react.dev/link/warning-keys for more information.',
|
|
383
|
-
r,
|
|
384
|
-
t
|
|
385
|
-
), d.getCurrentStack = n;
|
|
386
|
-
}
|
|
387
|
-
}
|
|
388
|
-
function Ee(e) {
|
|
389
|
-
var r = "", t = C();
|
|
390
|
-
return t && (t = s(t.type)) && (r = `
|
|
391
|
-
|
|
392
|
-
Check the render method of \`` + t + "`."), r || (e = s(e)) && (r = `
|
|
393
|
-
|
|
394
|
-
Check the top-level render call using <` + e + ">."), r;
|
|
395
|
-
}
|
|
396
|
-
var be = we, O = Symbol.for("react.transitional.element"), ge = Symbol.for("react.portal"), j = Symbol.for("react.fragment"), H = Symbol.for("react.strict_mode"), K = Symbol.for("react.profiler"), X = Symbol.for("react.consumer"), q = Symbol.for("react.context"), S = Symbol.for("react.forward_ref"), A = Symbol.for("react.suspense"), R = Symbol.for("react.suspense_list"), k = Symbol.for("react.memo"), p = Symbol.for("react.lazy"), ve = Symbol.for("react.offscreen"), B = Symbol.iterator, me = Symbol.for("react.client.reference"), d = be.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, J = Object.prototype.hasOwnProperty, E = Object.assign, _e = Symbol.for("react.client.reference"), N = Array.isArray, v = 0, Z, F, I, L, Q, D, ee;
|
|
397
|
-
$.__reactDisabledLog = !0;
|
|
398
|
-
var x, re, P = !1, Y = new (typeof WeakMap == "function" ? WeakMap : Map)(), ye = Symbol.for("react.client.reference"), te, oe = {}, ne = {}, ae = {};
|
|
399
|
-
_.Fragment = j, _.jsx = function(e, r, t, n, u) {
|
|
400
|
-
return z(e, r, t, !1, n, u);
|
|
401
|
-
}, _.jsxs = function(e, r, t, n, u) {
|
|
402
|
-
return z(e, r, t, !0, n, u);
|
|
11
|
+
var i;
|
|
12
|
+
function R() {
|
|
13
|
+
if (i) return t;
|
|
14
|
+
i = 1;
|
|
15
|
+
var d = Symbol.for("react.transitional.element"), o = Symbol.for("react.fragment");
|
|
16
|
+
function s(_, r, e) {
|
|
17
|
+
var n = null;
|
|
18
|
+
if (e !== void 0 && (n = "" + e), r.key !== void 0 && (n = "" + r.key), "key" in r) {
|
|
19
|
+
e = {};
|
|
20
|
+
for (var u in r)
|
|
21
|
+
u !== "key" && (e[u] = r[u]);
|
|
22
|
+
} else e = r;
|
|
23
|
+
return r = e.ref, {
|
|
24
|
+
$$typeof: d,
|
|
25
|
+
type: _,
|
|
26
|
+
key: n,
|
|
27
|
+
ref: r !== void 0 ? r : null,
|
|
28
|
+
props: e
|
|
403
29
|
};
|
|
404
|
-
}
|
|
30
|
+
}
|
|
31
|
+
return t.Fragment = o, t.jsx = s, t.jsxs = s, t;
|
|
405
32
|
}
|
|
406
33
|
export {
|
|
407
|
-
|
|
34
|
+
R as __require
|
|
408
35
|
};
|
|
409
36
|
//# sourceMappingURL=annotorious-react.es20.js.map
|