@a4anthony/proctorkit-vue 0.1.4 → 0.2.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/README.md +176 -8
- package/dist/ProctoredAssessment.vue.d.ts +70 -2
- package/dist/ProctoredAssessment.vue.d.ts.map +1 -1
- package/dist/ProctoringDeviceSettings.vue.d.ts +27 -1
- package/dist/ProctoringDeviceSettings.vue.d.ts.map +1 -1
- package/dist/ProctoringSystemCheck.vue.d.ts +39 -11
- package/dist/ProctoringSystemCheck.vue.d.ts.map +1 -1
- package/dist/browser-face-detector.d.ts +59 -0
- package/dist/browser-face-detector.d.ts.map +1 -0
- package/dist/check-cards/system/DisplayPermissionDialog.vue.d.ts +24 -0
- package/dist/check-cards/system/DisplayPermissionDialog.vue.d.ts.map +1 -0
- package/dist/check-cards/system/DisplayRecovery.vue.d.ts +25 -0
- package/dist/check-cards/system/DisplayRecovery.vue.d.ts.map +1 -0
- package/dist/check-cards/system/SystemCheckCard.vue.d.ts +13 -1
- package/dist/check-cards/system/SystemCheckCard.vue.d.ts.map +1 -1
- package/dist/check-cards/system/display-progress-story.d.ts +468 -0
- package/dist/check-cards/system/display-progress-story.d.ts.map +1 -0
- package/dist/check-cards/system/display-recovery-story.d.ts +290 -0
- package/dist/check-cards/system/display-recovery-story.d.ts.map +1 -0
- package/dist/demo-runner/QuestionCard.vue.d.ts.map +1 -1
- package/dist/detect-face.d.ts +22 -95
- package/dist/detect-face.d.ts.map +1 -1
- package/dist/i18n/merge.d.ts.map +1 -1
- package/dist/index.d.ts +19 -8
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +9637 -2485
- package/dist/media-controls/AudioPlayer.vue.d.ts +43 -20
- package/dist/media-controls/AudioPlayer.vue.d.ts.map +1 -1
- package/dist/media-controls/AudioRecorder.vue.d.ts +171 -11
- package/dist/media-controls/AudioRecorder.vue.d.ts.map +1 -1
- package/dist/media-controls/RecorderUploadIndicator.vue.d.ts +17 -0
- package/dist/media-controls/RecorderUploadIndicator.vue.d.ts.map +1 -0
- package/dist/media-controls/VideoPlayer.vue.d.ts +36 -13
- package/dist/media-controls/VideoPlayer.vue.d.ts.map +1 -1
- package/dist/media-controls/VideoRecorder.vue.d.ts +90 -10
- package/dist/media-controls/VideoRecorder.vue.d.ts.map +1 -1
- package/dist/media-controls/audio-recorder-messages.d.ts +15 -0
- package/dist/media-controls/audio-recorder-messages.d.ts.map +1 -0
- package/dist/media-controls/local-media-playback-client.d.ts +2 -6
- package/dist/media-controls/local-media-playback-client.d.ts.map +1 -1
- package/dist/media-controls/local-media-recording-client.d.ts.map +1 -1
- package/dist/media-controls/media-recovery-story.d.ts +9 -0
- package/dist/media-controls/media-recovery-story.d.ts.map +1 -0
- package/dist/media-controls/storybook-mock-client.d.ts +2 -0
- package/dist/media-controls/storybook-mock-client.d.ts.map +1 -1
- package/dist/media-controls/types.d.ts +63 -7
- package/dist/media-controls/types.d.ts.map +1 -1
- package/dist/media-controls/ui-config.d.ts +2 -2
- package/dist/media-controls/ui-config.d.ts.map +1 -1
- package/dist/media-controls/useLiveInputCheck.d.ts +18 -0
- package/dist/media-controls/useLiveInputCheck.d.ts.map +1 -0
- package/dist/media-controls/useMediaClipRecorder.d.ts +90 -12
- package/dist/media-controls/useMediaClipRecorder.d.ts.map +1 -1
- package/dist/media-controls/useMediaFilePlayback.d.ts +8 -1
- package/dist/media-controls/useMediaFilePlayback.d.ts.map +1 -1
- package/dist/media-controls/useMinimumVisibleUpload.d.ts +18 -0
- package/dist/media-controls/useMinimumVisibleUpload.d.ts.map +1 -0
- package/dist/proctored-assessment/PreparationGate.vue.d.ts +16 -0
- package/dist/proctored-assessment/PreparationGate.vue.d.ts.map +1 -0
- package/dist/proctored-assessment/preparation-feedback.d.ts +7 -0
- package/dist/proctored-assessment/preparation-feedback.d.ts.map +1 -0
- package/dist/proctored-assessment/replay-failure-queue.d.ts +18 -0
- package/dist/proctored-assessment/replay-failure-queue.d.ts.map +1 -0
- package/dist/proctored-assessment/replay-failure-queue.test.d.ts +2 -0
- package/dist/proctored-assessment/replay-failure-queue.test.d.ts.map +1 -0
- package/dist/proctored-assessment/request-deadline.d.ts +1 -0
- package/dist/proctored-assessment/request-deadline.d.ts.map +1 -1
- package/dist/proctored-assessment/resume-microphone-route.d.ts +13 -0
- package/dist/proctored-assessment/resume-microphone-route.d.ts.map +1 -0
- package/dist/proctored-assessment/resume-microphone-route.test.d.ts +2 -0
- package/dist/proctored-assessment/resume-microphone-route.test.d.ts.map +1 -0
- package/dist/proctored-assessment/resume-probe.d.ts +13 -0
- package/dist/proctored-assessment/resume-probe.d.ts.map +1 -1
- package/dist/proctored-assessment/resume-speaker-confirmation.d.ts +27 -0
- package/dist/proctored-assessment/resume-speaker-confirmation.d.ts.map +1 -0
- package/dist/proctored-assessment/resume-speaker-route.d.ts +32 -0
- package/dist/proctored-assessment/resume-speaker-route.d.ts.map +1 -0
- package/dist/proctored-assessment/session-start.d.ts +2 -2
- package/dist/proctored-assessment/types.d.ts +14 -4
- package/dist/proctored-assessment/types.d.ts.map +1 -1
- package/dist/proctored-assessment/usePreparationRetryTiming.d.ts +13 -0
- package/dist/proctored-assessment/usePreparationRetryTiming.d.ts.map +1 -0
- package/dist/proctored-assessment/useResumeDisplayGuard.d.ts +20 -0
- package/dist/proctored-assessment/useResumeDisplayGuard.d.ts.map +1 -0
- package/dist/proctoring-client.d.ts +6 -2
- package/dist/proctoring-client.d.ts.map +1 -1
- package/dist/proctoring-system-check-contract.d.ts +2 -0
- package/dist/proctoring-system-check-contract.d.ts.map +1 -1
- package/dist/runtime-devices/DevicePickerItem.vue.d.ts +58 -0
- package/dist/runtime-devices/DevicePickerItem.vue.d.ts.map +1 -0
- package/dist/runtime-devices/PickerMessage.vue.d.ts +17 -0
- package/dist/runtime-devices/PickerMessage.vue.d.ts.map +1 -0
- package/dist/runtime-devices/ProctoringDevicePicker.vue.d.ts +89 -0
- package/dist/runtime-devices/ProctoringDevicePicker.vue.d.ts.map +1 -0
- package/dist/runtime-devices/device-picker-messages.d.ts +42 -0
- package/dist/runtime-devices/device-picker-messages.d.ts.map +1 -0
- package/dist/runtime-devices/microphone-attention.d.ts +48 -0
- package/dist/runtime-devices/microphone-attention.d.ts.map +1 -0
- package/dist/runtime-devices/microphone-check-messages.d.ts +13 -0
- package/dist/runtime-devices/microphone-check-messages.d.ts.map +1 -0
- package/dist/runtime-devices/runtime-device-activity.d.ts +16 -0
- package/dist/runtime-devices/runtime-device-activity.d.ts.map +1 -0
- package/dist/runtime-devices/runtime-device-selection.d.ts +11 -0
- package/dist/runtime-devices/runtime-device-selection.d.ts.map +1 -0
- package/dist/runtime-devices/useRuntimeDevice.d.ts +72 -0
- package/dist/runtime-devices/useRuntimeDevice.d.ts.map +1 -0
- package/dist/runtime-devices/useTrackLoss.d.ts +15 -0
- package/dist/runtime-devices/useTrackLoss.d.ts.map +1 -0
- package/dist/style.css +367 -14
- package/dist/text-answer/ProctoredTextarea.vue.d.ts +8 -1
- package/dist/text-answer/ProctoredTextarea.vue.d.ts.map +1 -1
- package/dist/text-answer/useProctoredText.d.ts +5 -2
- package/dist/text-answer/useProctoredText.d.ts.map +1 -1
- package/dist/ui/ProctoringAlert.vue.d.ts.map +1 -1
- package/dist/ui/ProctoringFileUpload.vue.d.ts +3 -3
- package/dist/ui/ProctoringFileUpload.vue.d.ts.map +1 -1
- package/dist/ui/ProctoringInput.vue.d.ts +3 -3
- package/dist/ui/ProctoringInput.vue.d.ts.map +1 -1
- package/dist/ui/ProctoringSelect.vue.d.ts +2 -2
- package/dist/ui/ProctoringSelect.vue.d.ts.map +1 -1
- package/dist/usePreflightCheck.d.ts +4 -3
- package/dist/usePreflightCheck.d.ts.map +1 -1
- package/dist/vision_bundle-8xEDyfqS.js +4160 -0
- package/dist/wizard/BrowserDisplayPermissionGuide.vue.d.ts +11 -0
- package/dist/wizard/BrowserDisplayPermissionGuide.vue.d.ts.map +1 -0
- package/dist/wizard/BrowserPermissionLocation.vue.d.ts +9 -0
- package/dist/wizard/BrowserPermissionLocation.vue.d.ts.map +1 -0
- package/dist/wizard/CameraStep.vue.d.ts +10 -1
- package/dist/wizard/CameraStep.vue.d.ts.map +1 -1
- package/dist/wizard/CandidateHeadshotField.vue.d.ts.map +1 -1
- package/dist/wizard/CandidateIntakeStep.vue.d.ts +3 -0
- package/dist/wizard/CandidateIntakeStep.vue.d.ts.map +1 -1
- package/dist/wizard/ChecklistShell.vue.d.ts +3 -0
- package/dist/wizard/ChecklistShell.vue.d.ts.map +1 -1
- package/dist/wizard/FinalStep.vue.d.ts +6 -2
- package/dist/wizard/FinalStep.vue.d.ts.map +1 -1
- package/dist/wizard/MediaDeviceSelect.vue.d.ts +11 -1
- package/dist/wizard/MediaDeviceSelect.vue.d.ts.map +1 -1
- package/dist/wizard/MicStep.vue.d.ts +24 -3
- package/dist/wizard/MicStep.vue.d.ts.map +1 -1
- package/dist/wizard/PermissionDeniedPanel.vue.d.ts +9 -4
- package/dist/wizard/PermissionDeniedPanel.vue.d.ts.map +1 -1
- package/dist/wizard/ResumeCheck.vue.d.ts +16 -2
- package/dist/wizard/ResumeCheck.vue.d.ts.map +1 -1
- package/dist/wizard/SpeakerStep.vue.d.ts +17 -4
- package/dist/wizard/SpeakerStep.vue.d.ts.map +1 -1
- package/dist/wizard/SystemStep.vue.d.ts +9 -0
- package/dist/wizard/SystemStep.vue.d.ts.map +1 -1
- package/dist/wizard/WizardShell.vue.d.ts +3 -3
- package/dist/wizard/WizardShell.vue.d.ts.map +1 -1
- package/dist/wizard/candidate-intake-draft.d.ts +9 -0
- package/dist/wizard/candidate-intake-draft.d.ts.map +1 -0
- package/dist/wizard/display-diagnostics.d.ts +21 -0
- package/dist/wizard/display-diagnostics.d.ts.map +1 -0
- package/dist/wizard/event-telemetry.d.ts +24 -0
- package/dist/wizard/event-telemetry.d.ts.map +1 -0
- package/dist/wizard/media-device-list.d.ts +8 -1
- package/dist/wizard/media-device-list.d.ts.map +1 -1
- package/dist/wizard/microphone-preflight-trace.d.ts +10 -0
- package/dist/wizard/microphone-preflight-trace.d.ts.map +1 -0
- package/dist/wizard/microphone-preflight-trace.test.d.ts +2 -0
- package/dist/wizard/microphone-preflight-trace.test.d.ts.map +1 -0
- package/dist/wizard/resume-check-stories/shared.d.ts +35 -11
- package/dist/wizard/resume-check-stories/shared.d.ts.map +1 -1
- package/dist/wizard/speaker-test-tone.d.ts +29 -4
- package/dist/wizard/speaker-test-tone.d.ts.map +1 -1
- package/dist/wizard/useCandidateIssues.d.ts +30 -0
- package/dist/wizard/useCandidateIssues.d.ts.map +1 -0
- package/dist/wizard/useCandidateIssues.test.d.ts +2 -0
- package/dist/wizard/useCandidateIssues.test.d.ts.map +1 -0
- package/dist/wizard/useLiveDisplayCheck.d.ts +8 -0
- package/dist/wizard/useLiveDisplayCheck.d.ts.map +1 -0
- package/dist/wizard/usePreflightTelemetry.d.ts +6 -26
- package/dist/wizard/usePreflightTelemetry.d.ts.map +1 -1
- package/dist/wizard/useWizardSteps.d.ts +10 -1
- package/dist/wizard/useWizardSteps.d.ts.map +1 -1
- package/package.json +4 -3
|
@@ -0,0 +1,4160 @@
|
|
|
1
|
+
var t = "undefined" != typeof self ? self : {};
|
|
2
|
+
function e(e2, r2) {
|
|
3
|
+
t: {
|
|
4
|
+
for (var n2 = ["CLOSURE_FLAGS"], i2 = t, s2 = 0; s2 < n2.length; s2++) if (null == (i2 = i2[n2[s2]])) {
|
|
5
|
+
n2 = null;
|
|
6
|
+
break t;
|
|
7
|
+
}
|
|
8
|
+
n2 = i2;
|
|
9
|
+
}
|
|
10
|
+
return null != (e2 = n2 && n2[e2]) ? e2 : r2;
|
|
11
|
+
}
|
|
12
|
+
function r(e2, r2) {
|
|
13
|
+
e2 = e2.split(".");
|
|
14
|
+
for (var n2, i2 = t; e2.length && (n2 = e2.shift()); ) e2.length || void 0 === r2 ? i2 = i2[n2] && i2[n2] !== Object.prototype[n2] ? i2[n2] : i2[n2] = {} : i2[n2] = r2;
|
|
15
|
+
}
|
|
16
|
+
function n() {
|
|
17
|
+
throw Error("Invalid UTF8");
|
|
18
|
+
}
|
|
19
|
+
function i(t2, e2) {
|
|
20
|
+
return e2 = String.fromCharCode.apply(null, e2), null == t2 ? e2 : t2 + e2;
|
|
21
|
+
}
|
|
22
|
+
var s, o, a = void 0, h = "undefined" != typeof TextDecoder, u = "undefined" != typeof TextEncoder;
|
|
23
|
+
function c(t2) {
|
|
24
|
+
if (u) t2 = (o ||= new TextEncoder()).encode(t2);
|
|
25
|
+
else {
|
|
26
|
+
let r2 = 0, n2 = new Uint8Array(3 * t2.length);
|
|
27
|
+
for (let i2 = 0; i2 < t2.length; i2++) {
|
|
28
|
+
var e2 = t2.charCodeAt(i2);
|
|
29
|
+
if (e2 < 128) n2[r2++] = e2;
|
|
30
|
+
else {
|
|
31
|
+
if (e2 < 2048) n2[r2++] = e2 >> 6 | 192;
|
|
32
|
+
else {
|
|
33
|
+
if (e2 >= 55296 && e2 <= 57343) {
|
|
34
|
+
if (e2 <= 56319 && i2 < t2.length) {
|
|
35
|
+
let s2 = t2.charCodeAt(++i2);
|
|
36
|
+
if (s2 >= 56320 && s2 <= 57343) {
|
|
37
|
+
e2 = 1024 * (e2 - 55296) + s2 - 56320 + 65536, n2[r2++] = e2 >> 18 | 240, n2[r2++] = e2 >> 12 & 63 | 128, n2[r2++] = e2 >> 6 & 63 | 128, n2[r2++] = 63 & e2 | 128;
|
|
38
|
+
continue;
|
|
39
|
+
}
|
|
40
|
+
i2--;
|
|
41
|
+
}
|
|
42
|
+
e2 = 65533;
|
|
43
|
+
}
|
|
44
|
+
n2[r2++] = e2 >> 12 | 224, n2[r2++] = e2 >> 6 & 63 | 128;
|
|
45
|
+
}
|
|
46
|
+
n2[r2++] = 63 & e2 | 128;
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
t2 = r2 === n2.length ? n2 : n2.subarray(0, r2);
|
|
50
|
+
}
|
|
51
|
+
return t2;
|
|
52
|
+
}
|
|
53
|
+
function l(e2) {
|
|
54
|
+
t.setTimeout(() => {
|
|
55
|
+
throw e2;
|
|
56
|
+
}, 0);
|
|
57
|
+
}
|
|
58
|
+
var d = e(610401301, false), f = e(748402147, true);
|
|
59
|
+
function p() {
|
|
60
|
+
var e2 = t.navigator;
|
|
61
|
+
return e2 && (e2 = e2.userAgent) ? e2 : "";
|
|
62
|
+
}
|
|
63
|
+
var g, m = t.navigator;
|
|
64
|
+
function v(t2) {
|
|
65
|
+
return v[" "](t2), t2;
|
|
66
|
+
}
|
|
67
|
+
g = m && m.userAgentData || null, v[" "] = function() {
|
|
68
|
+
};
|
|
69
|
+
var _ = {}, y = null;
|
|
70
|
+
function E(t2) {
|
|
71
|
+
var e2 = t2.length, r2 = 3 * e2 / 4;
|
|
72
|
+
r2 % 3 ? r2 = Math.floor(r2) : -1 != "=.".indexOf(t2[e2 - 1]) && (r2 = -1 != "=.".indexOf(t2[e2 - 2]) ? r2 - 2 : r2 - 1);
|
|
73
|
+
var n2 = new Uint8Array(r2), i2 = 0;
|
|
74
|
+
return function(t3, e3) {
|
|
75
|
+
function r3(e4) {
|
|
76
|
+
for (; n3 < t3.length; ) {
|
|
77
|
+
let e5 = t3.charAt(n3++), r4 = y[e5];
|
|
78
|
+
if (null != r4) return r4;
|
|
79
|
+
if (!/^[\s\xa0]*$/.test(e5)) throw Error("Unknown base64 encoding at char: " + e5);
|
|
80
|
+
}
|
|
81
|
+
return e4;
|
|
82
|
+
}
|
|
83
|
+
A();
|
|
84
|
+
for (var n3 = 0; ; ) {
|
|
85
|
+
let t4 = r3(-1), n4 = r3(0), i3 = r3(64), s2 = r3(64);
|
|
86
|
+
if (64 === s2 && -1 === t4) break;
|
|
87
|
+
e3(t4 << 2 | n4 >> 4), 64 != i3 && (e3(n4 << 4 & 240 | i3 >> 2), 64 != s2 && e3(i3 << 6 & 192 | s2));
|
|
88
|
+
}
|
|
89
|
+
}(t2, function(t3) {
|
|
90
|
+
n2[i2++] = t3;
|
|
91
|
+
}), i2 !== r2 ? n2.subarray(0, i2) : n2;
|
|
92
|
+
}
|
|
93
|
+
function A() {
|
|
94
|
+
if (!y) {
|
|
95
|
+
y = {};
|
|
96
|
+
var t2 = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".split(""), e2 = ["+/=", "+/", "-_=", "-_.", "-_"];
|
|
97
|
+
for (let r2 = 0; r2 < 5; r2++) {
|
|
98
|
+
let n2 = t2.concat(e2[r2].split(""));
|
|
99
|
+
_[r2] = n2;
|
|
100
|
+
for (let t3 = 0; t3 < n2.length; t3++) {
|
|
101
|
+
let e3 = n2[t3];
|
|
102
|
+
void 0 === y[e3] && (y[e3] = t3);
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
var w = "undefined" != typeof Uint8Array, b = !(!(d && g && g.brands.length > 0) && (-1 != p().indexOf("Trident") || -1 != p().indexOf("MSIE"))) && "function" == typeof btoa, T = /[-_.]/g, k = { "-": "+", _: "/", ".": "=" };
|
|
108
|
+
function S(t2) {
|
|
109
|
+
return k[t2] || "";
|
|
110
|
+
}
|
|
111
|
+
function L(t2) {
|
|
112
|
+
if (!b) return E(t2);
|
|
113
|
+
t2 = T.test(t2) ? t2.replace(T, S) : t2, t2 = atob(t2);
|
|
114
|
+
var e2 = new Uint8Array(t2.length);
|
|
115
|
+
for (let r2 = 0; r2 < t2.length; r2++) e2[r2] = t2.charCodeAt(r2);
|
|
116
|
+
return e2;
|
|
117
|
+
}
|
|
118
|
+
function x(t2) {
|
|
119
|
+
return w && null != t2 && t2 instanceof Uint8Array;
|
|
120
|
+
}
|
|
121
|
+
var R = {};
|
|
122
|
+
function I() {
|
|
123
|
+
return C ||= new N(null, R);
|
|
124
|
+
}
|
|
125
|
+
function F(t2) {
|
|
126
|
+
M(R);
|
|
127
|
+
var e2 = t2.g;
|
|
128
|
+
return null == (e2 = null == e2 || x(e2) ? e2 : "string" == typeof e2 ? L(e2) : null) ? e2 : t2.g = e2;
|
|
129
|
+
}
|
|
130
|
+
var C, N = class {
|
|
131
|
+
h() {
|
|
132
|
+
return new Uint8Array(F(this) || 0);
|
|
133
|
+
}
|
|
134
|
+
constructor(t2, e2) {
|
|
135
|
+
if (M(e2), this.g = t2, null != t2 && 0 === t2.length) throw Error("ByteString should be constructed with non-empty values");
|
|
136
|
+
}
|
|
137
|
+
};
|
|
138
|
+
function M(t2) {
|
|
139
|
+
if (t2 !== R) throw Error("illegal external caller");
|
|
140
|
+
}
|
|
141
|
+
function O(t2, e2) {
|
|
142
|
+
t2.__closure__error__context__984382 || (t2.__closure__error__context__984382 = {}), t2.__closure__error__context__984382.severity = e2;
|
|
143
|
+
}
|
|
144
|
+
var D = void 0;
|
|
145
|
+
function P(t2) {
|
|
146
|
+
return O(t2 = Error(t2), "warning"), t2;
|
|
147
|
+
}
|
|
148
|
+
function $(t2, e2) {
|
|
149
|
+
if (null != t2) {
|
|
150
|
+
var r2 = D ??= {}, n2 = r2[t2] || 0;
|
|
151
|
+
n2 >= e2 || (r2[t2] = n2 + 1, O(t2 = Error(), "incident"), l(t2));
|
|
152
|
+
}
|
|
153
|
+
}
|
|
154
|
+
function U() {
|
|
155
|
+
return "function" == typeof BigInt;
|
|
156
|
+
}
|
|
157
|
+
var B = "function" == typeof Symbol && "symbol" == typeof Symbol();
|
|
158
|
+
function G(t2, e2, r2 = false) {
|
|
159
|
+
return "function" == typeof Symbol && "symbol" == typeof Symbol() ? r2 && Symbol.for && t2 ? Symbol.for(t2) : null != t2 ? Symbol(t2) : Symbol() : e2;
|
|
160
|
+
}
|
|
161
|
+
var j, V = G("jas", void 0, true), H = G(void 0, "0di"), K = G(void 0, "1oa"), X = G(void 0, Symbol()), W = G(void 0, "0ub"), z = G(void 0, "0ubs"), Y = G(void 0, "0ubsb"), q = G(void 0, "0actk"), J = G("m_m", "kb", true), Z = G(), Q = { Va: { value: 0, configurable: true, writable: true, enumerable: false } }, tt = Object.defineProperties, et = B ? V : "Va", rt = [];
|
|
162
|
+
function nt(t2, e2) {
|
|
163
|
+
B || et in t2 || tt(t2, Q), t2[et] |= e2;
|
|
164
|
+
}
|
|
165
|
+
function it(t2, e2) {
|
|
166
|
+
B || et in t2 || tt(t2, Q), t2[et] = e2;
|
|
167
|
+
}
|
|
168
|
+
function st(t2) {
|
|
169
|
+
return nt(t2, 34), t2;
|
|
170
|
+
}
|
|
171
|
+
function ot(t2) {
|
|
172
|
+
return nt(t2, 8192), t2;
|
|
173
|
+
}
|
|
174
|
+
it(rt, 7), j = Object.freeze(rt);
|
|
175
|
+
var at = {};
|
|
176
|
+
function ht(t2, e2) {
|
|
177
|
+
return void 0 === e2 ? t2.h !== ut && !!(2 & t2.A[et]) : !!(2 & e2) && t2.h !== ut;
|
|
178
|
+
}
|
|
179
|
+
var ut = {};
|
|
180
|
+
function ct(t2, e2) {
|
|
181
|
+
if (null != t2) {
|
|
182
|
+
if ("string" == typeof t2) t2 = t2 ? new N(t2, R) : I();
|
|
183
|
+
else if (t2.constructor !== N) if (x(t2)) t2 = t2.length ? new N(new Uint8Array(t2), R) : I();
|
|
184
|
+
else {
|
|
185
|
+
if (!e2) throw Error();
|
|
186
|
+
t2 = void 0;
|
|
187
|
+
}
|
|
188
|
+
}
|
|
189
|
+
return t2;
|
|
190
|
+
}
|
|
191
|
+
class lt {
|
|
192
|
+
constructor(t2, e2, r2) {
|
|
193
|
+
this.g = t2, this.h = e2, this.j = r2;
|
|
194
|
+
}
|
|
195
|
+
next() {
|
|
196
|
+
var t2 = this.g.next();
|
|
197
|
+
return t2.done || (t2.value = this.h.call(this.j, t2.value)), t2;
|
|
198
|
+
}
|
|
199
|
+
[Symbol.iterator]() {
|
|
200
|
+
return this;
|
|
201
|
+
}
|
|
202
|
+
}
|
|
203
|
+
var dt = Object.freeze({});
|
|
204
|
+
function ft(t2, e2, r2) {
|
|
205
|
+
var n2, i2 = 128 & e2 ? 0 : -1, s2 = t2.length;
|
|
206
|
+
(n2 = !!s2) && (n2 = null != (n2 = t2[s2 - 1]) && "object" == typeof n2 && n2.constructor === Object);
|
|
207
|
+
var o2 = s2 + (n2 ? -1 : 0);
|
|
208
|
+
for (e2 = 128 & e2 ? 1 : 0; e2 < o2; e2++) r2(e2 - i2, t2[e2]);
|
|
209
|
+
if (n2) {
|
|
210
|
+
t2 = t2[s2 - 1];
|
|
211
|
+
for (let e3 in t2) !isNaN(e3) && r2(+e3, t2[e3]);
|
|
212
|
+
}
|
|
213
|
+
}
|
|
214
|
+
var pt = {};
|
|
215
|
+
function gt(t2) {
|
|
216
|
+
return 128 & t2 ? pt : void 0;
|
|
217
|
+
}
|
|
218
|
+
function mt(t2) {
|
|
219
|
+
return t2.ib = true, t2;
|
|
220
|
+
}
|
|
221
|
+
var vt = mt((t2) => "number" == typeof t2), _t = mt((t2) => "string" == typeof t2), yt = mt((t2) => "boolean" == typeof t2), Et = "function" == typeof t.BigInt && "bigint" == typeof t.BigInt(0);
|
|
222
|
+
function At(t2) {
|
|
223
|
+
var e2 = t2;
|
|
224
|
+
if (_t(e2)) {
|
|
225
|
+
if (!/^\s*(?:-?[1-9]\d*|0)?\s*$/.test(e2)) throw Error(String(e2));
|
|
226
|
+
} else if (vt(e2) && !Number.isSafeInteger(e2)) throw Error(String(e2));
|
|
227
|
+
return Et ? BigInt(t2) : t2 = yt(t2) ? t2 ? "1" : "0" : _t(t2) ? t2.trim() || "0" : String(t2);
|
|
228
|
+
}
|
|
229
|
+
var wt = mt((t2) => Et ? t2 >= Tt && t2 <= St : "-" === t2[0] ? Lt(t2, bt) : Lt(t2, kt)), bt = Number.MIN_SAFE_INTEGER.toString(), Tt = Et ? BigInt(Number.MIN_SAFE_INTEGER) : void 0, kt = Number.MAX_SAFE_INTEGER.toString(), St = Et ? BigInt(Number.MAX_SAFE_INTEGER) : void 0;
|
|
230
|
+
function Lt(t2, e2) {
|
|
231
|
+
if (t2.length > e2.length) return false;
|
|
232
|
+
if (t2.length < e2.length || t2 === e2) return true;
|
|
233
|
+
for (let r2 = 0; r2 < t2.length; r2++) {
|
|
234
|
+
let n2 = t2[r2], i2 = e2[r2];
|
|
235
|
+
if (n2 > i2) return false;
|
|
236
|
+
if (n2 < i2) return true;
|
|
237
|
+
}
|
|
238
|
+
}
|
|
239
|
+
var xt, Rt = "function" == typeof Uint8Array.prototype.slice, It = 0, Ft = 0;
|
|
240
|
+
function Ct(t2) {
|
|
241
|
+
var e2 = t2 >>> 0;
|
|
242
|
+
It = e2, Ft = (t2 - e2) / 4294967296 >>> 0;
|
|
243
|
+
}
|
|
244
|
+
function Nt(t2) {
|
|
245
|
+
if (t2 < 0) {
|
|
246
|
+
Ct(-t2);
|
|
247
|
+
let [e2, r2] = jt(It, Ft);
|
|
248
|
+
It = e2 >>> 0, Ft = r2 >>> 0;
|
|
249
|
+
} else Ct(t2);
|
|
250
|
+
}
|
|
251
|
+
function Mt(t2) {
|
|
252
|
+
var e2 = xt ||= new DataView(new ArrayBuffer(8));
|
|
253
|
+
e2.setFloat32(0, +t2, true), Ft = 0, It = e2.getUint32(0, true);
|
|
254
|
+
}
|
|
255
|
+
function Ot(t2, e2) {
|
|
256
|
+
var r2 = 4294967296 * e2 + (t2 >>> 0);
|
|
257
|
+
return Number.isSafeInteger(r2) ? r2 : $t(t2, e2);
|
|
258
|
+
}
|
|
259
|
+
function Dt(t2, e2) {
|
|
260
|
+
return At(U() ? BigInt.asUintN(64, (BigInt(e2 >>> 0) << BigInt(32)) + BigInt(t2 >>> 0)) : $t(t2, e2));
|
|
261
|
+
}
|
|
262
|
+
function Pt(t2, e2) {
|
|
263
|
+
return U() ? At(BigInt.asIntN(64, (BigInt.asUintN(32, BigInt(e2)) << BigInt(32)) + BigInt.asUintN(32, BigInt(t2)))) : At(Bt(t2, e2));
|
|
264
|
+
}
|
|
265
|
+
function $t(t2, e2) {
|
|
266
|
+
if (t2 >>>= 0, (e2 >>>= 0) <= 2097151) var r2 = "" + (4294967296 * e2 + t2);
|
|
267
|
+
else U() ? r2 = "" + (BigInt(e2) << BigInt(32) | BigInt(t2)) : (t2 = (16777215 & t2) + 6777216 * (r2 = 16777215 & (t2 >>> 24 | e2 << 8)) + 6710656 * (e2 = e2 >> 16 & 65535), r2 += 8147497 * e2, e2 *= 2, t2 >= 1e7 && (r2 += t2 / 1e7 >>> 0, t2 %= 1e7), r2 >= 1e7 && (e2 += r2 / 1e7 >>> 0, r2 %= 1e7), r2 = e2 + Ut(r2) + Ut(t2));
|
|
268
|
+
return r2;
|
|
269
|
+
}
|
|
270
|
+
function Ut(t2) {
|
|
271
|
+
return t2 = String(t2), "0000000".slice(t2.length) + t2;
|
|
272
|
+
}
|
|
273
|
+
function Bt(t2, e2) {
|
|
274
|
+
if (2147483648 & e2) if (U()) t2 = "" + (BigInt(0 | e2) << BigInt(32) | BigInt(t2 >>> 0));
|
|
275
|
+
else {
|
|
276
|
+
let [r2, n2] = jt(t2, e2);
|
|
277
|
+
t2 = "-" + $t(r2, n2);
|
|
278
|
+
}
|
|
279
|
+
else t2 = $t(t2, e2);
|
|
280
|
+
return t2;
|
|
281
|
+
}
|
|
282
|
+
function Gt(t2) {
|
|
283
|
+
if (t2.length < 16) Nt(Number(t2));
|
|
284
|
+
else if (U()) t2 = BigInt(t2), It = Number(t2 & BigInt(4294967295)) >>> 0, Ft = Number(t2 >> BigInt(32) & BigInt(4294967295));
|
|
285
|
+
else {
|
|
286
|
+
let e2 = +("-" === t2[0]);
|
|
287
|
+
Ft = It = 0;
|
|
288
|
+
let r2 = t2.length;
|
|
289
|
+
for (let n2 = e2, i2 = (r2 - e2) % 6 + e2; i2 <= r2; n2 = i2, i2 += 6) {
|
|
290
|
+
let e3 = Number(t2.slice(n2, i2));
|
|
291
|
+
Ft *= 1e6, (It = 1e6 * It + e3) >= 4294967296 && (Ft += Math.trunc(It / 4294967296), Ft >>>= 0, It >>>= 0);
|
|
292
|
+
}
|
|
293
|
+
if (e2) {
|
|
294
|
+
let [t3, e3] = jt(It, Ft);
|
|
295
|
+
It = t3, Ft = e3;
|
|
296
|
+
}
|
|
297
|
+
}
|
|
298
|
+
}
|
|
299
|
+
function jt(t2, e2) {
|
|
300
|
+
return e2 = ~e2, t2 ? t2 = 1 + ~t2 : e2 += 1, [t2, e2];
|
|
301
|
+
}
|
|
302
|
+
function Vt(t2) {
|
|
303
|
+
return Array.prototype.slice.call(t2);
|
|
304
|
+
}
|
|
305
|
+
var Ht = "function" == typeof BigInt ? BigInt.asIntN : void 0, Kt = "function" == typeof BigInt ? BigInt.asUintN : void 0, Xt = Number.isSafeInteger, Wt = Number.isFinite, zt = Math.trunc, Yt = At(0);
|
|
306
|
+
function qt(t2) {
|
|
307
|
+
if ("number" != typeof t2) throw Error(`Value of float/double field must be a number, found ${typeof t2}: ${t2}`);
|
|
308
|
+
return t2;
|
|
309
|
+
}
|
|
310
|
+
function Jt(t2) {
|
|
311
|
+
return null == t2 || "number" == typeof t2 ? t2 : "NaN" === t2 || "Infinity" === t2 || "-Infinity" === t2 ? Number(t2) : void 0;
|
|
312
|
+
}
|
|
313
|
+
function Zt(t2) {
|
|
314
|
+
if ("boolean" != typeof t2) {
|
|
315
|
+
var e2 = typeof t2;
|
|
316
|
+
throw Error(`Expected boolean but got ${"object" != e2 ? e2 : t2 ? Array.isArray(t2) ? "array" : e2 : "null"}: ${t2}`);
|
|
317
|
+
}
|
|
318
|
+
return t2;
|
|
319
|
+
}
|
|
320
|
+
var Qt = /^-?([1-9][0-9]*|0)(\.[0-9]+)?$/;
|
|
321
|
+
function te(t2) {
|
|
322
|
+
switch (typeof t2) {
|
|
323
|
+
case "bigint":
|
|
324
|
+
return true;
|
|
325
|
+
case "number":
|
|
326
|
+
return Wt(t2);
|
|
327
|
+
case "string":
|
|
328
|
+
return Qt.test(t2);
|
|
329
|
+
default:
|
|
330
|
+
return false;
|
|
331
|
+
}
|
|
332
|
+
}
|
|
333
|
+
function ee(t2) {
|
|
334
|
+
if (null != t2) {
|
|
335
|
+
if (!Wt(t2)) throw P("enum");
|
|
336
|
+
t2 |= 0;
|
|
337
|
+
}
|
|
338
|
+
return t2;
|
|
339
|
+
}
|
|
340
|
+
function re(t2) {
|
|
341
|
+
if (null == t2) return t2;
|
|
342
|
+
if ("string" == typeof t2 && t2) t2 = +t2;
|
|
343
|
+
else if ("number" != typeof t2) return;
|
|
344
|
+
return Wt(t2) ? 0 | t2 : void 0;
|
|
345
|
+
}
|
|
346
|
+
function ne(t2) {
|
|
347
|
+
if (null == t2) return t2;
|
|
348
|
+
if ("string" == typeof t2 && t2) t2 = +t2;
|
|
349
|
+
else if ("number" != typeof t2) return;
|
|
350
|
+
return Wt(t2) ? t2 >>> 0 : void 0;
|
|
351
|
+
}
|
|
352
|
+
function ie(t2, e2) {
|
|
353
|
+
if (e2 ??= 1024, !te(t2)) throw P("int64");
|
|
354
|
+
var r2 = typeof t2;
|
|
355
|
+
switch (e2) {
|
|
356
|
+
case 512:
|
|
357
|
+
switch (r2) {
|
|
358
|
+
case "string":
|
|
359
|
+
return ce(t2);
|
|
360
|
+
case "bigint":
|
|
361
|
+
return String(Ht(64, t2));
|
|
362
|
+
default:
|
|
363
|
+
return ue(t2);
|
|
364
|
+
}
|
|
365
|
+
case 1024:
|
|
366
|
+
switch (r2) {
|
|
367
|
+
case "string":
|
|
368
|
+
return le(t2);
|
|
369
|
+
case "bigint":
|
|
370
|
+
return At(Ht(64, t2));
|
|
371
|
+
default:
|
|
372
|
+
return de(t2);
|
|
373
|
+
}
|
|
374
|
+
case 0:
|
|
375
|
+
switch (r2) {
|
|
376
|
+
case "string":
|
|
377
|
+
return ce(t2);
|
|
378
|
+
case "bigint":
|
|
379
|
+
return At(Ht(64, t2));
|
|
380
|
+
default:
|
|
381
|
+
return ae(t2);
|
|
382
|
+
}
|
|
383
|
+
default:
|
|
384
|
+
return function(t3, e3 = `unexpected value ${t3}!`) {
|
|
385
|
+
throw Error(e3);
|
|
386
|
+
}(e2, "Unknown format requested type for int64");
|
|
387
|
+
}
|
|
388
|
+
}
|
|
389
|
+
function se(t2) {
|
|
390
|
+
var e2 = t2.length;
|
|
391
|
+
return ("-" === t2[0] ? e2 < 20 || 20 === e2 && t2 <= "-9223372036854775808" : e2 < 19 || 19 === e2 && t2 <= "9223372036854775807") ? t2 : (Gt(t2), Bt(It, Ft));
|
|
392
|
+
}
|
|
393
|
+
function oe(t2) {
|
|
394
|
+
if ("-" === t2[0]) var e2 = false;
|
|
395
|
+
else e2 = (e2 = t2.length) < 20 || 20 === e2 && t2 <= "18446744073709551615";
|
|
396
|
+
return e2 ? t2 : (Gt(t2), $t(It, Ft));
|
|
397
|
+
}
|
|
398
|
+
function ae(t2) {
|
|
399
|
+
if (t2 = zt(t2), !Xt(t2)) {
|
|
400
|
+
Nt(t2);
|
|
401
|
+
var e2 = It, r2 = Ft;
|
|
402
|
+
(t2 = 2147483648 & r2) && (r2 = ~r2 >>> 0, 0 == (e2 = 1 + ~e2 >>> 0) && (r2 = r2 + 1 >>> 0)), t2 = "number" == typeof (e2 = Ot(e2, r2)) ? t2 ? -e2 : e2 : t2 ? "-" + e2 : e2;
|
|
403
|
+
}
|
|
404
|
+
return t2;
|
|
405
|
+
}
|
|
406
|
+
function he(t2) {
|
|
407
|
+
return (t2 = zt(t2)) >= 0 && Xt(t2) || (Nt(t2), t2 = Ot(It, Ft)), t2;
|
|
408
|
+
}
|
|
409
|
+
function ue(t2) {
|
|
410
|
+
return t2 = zt(t2), Xt(t2) ? t2 = String(t2) : (Nt(t2), t2 = Bt(It, Ft)), t2;
|
|
411
|
+
}
|
|
412
|
+
function ce(t2) {
|
|
413
|
+
var e2 = zt(Number(t2));
|
|
414
|
+
return Xt(e2) ? String(e2) : (-1 !== (e2 = t2.indexOf(".")) && (t2 = t2.substring(0, e2)), se(t2));
|
|
415
|
+
}
|
|
416
|
+
function le(t2) {
|
|
417
|
+
var e2 = zt(Number(t2));
|
|
418
|
+
return Xt(e2) ? At(e2) : (-1 !== (e2 = t2.indexOf(".")) && (t2 = t2.substring(0, e2)), U() ? At(Ht(64, BigInt(t2))) : At(se(t2)));
|
|
419
|
+
}
|
|
420
|
+
function de(t2) {
|
|
421
|
+
return Xt(t2) ? At(ae(t2)) : At(ue(t2));
|
|
422
|
+
}
|
|
423
|
+
function fe(t2) {
|
|
424
|
+
var e2 = typeof t2;
|
|
425
|
+
return null == t2 ? t2 : "bigint" === e2 ? At(Ht(64, t2)) : te(t2) ? "string" === e2 ? le(t2) : de(t2) : void 0;
|
|
426
|
+
}
|
|
427
|
+
function pe(t2) {
|
|
428
|
+
if (null == t2) return t2;
|
|
429
|
+
var e2 = typeof t2;
|
|
430
|
+
if ("bigint" === e2) return String(Ht(64, t2));
|
|
431
|
+
if (te(t2)) {
|
|
432
|
+
if ("string" === e2) return ce(t2);
|
|
433
|
+
if ("number" === e2) return ae(t2);
|
|
434
|
+
}
|
|
435
|
+
}
|
|
436
|
+
function ge(t2) {
|
|
437
|
+
if (null == t2 || "string" == typeof t2 || t2 instanceof N) return t2;
|
|
438
|
+
}
|
|
439
|
+
function me(t2) {
|
|
440
|
+
if ("string" != typeof t2) throw Error();
|
|
441
|
+
return t2;
|
|
442
|
+
}
|
|
443
|
+
function ve(t2) {
|
|
444
|
+
if (null != t2 && "string" != typeof t2) throw Error();
|
|
445
|
+
return t2;
|
|
446
|
+
}
|
|
447
|
+
function _e(t2) {
|
|
448
|
+
return null == t2 || "string" == typeof t2 ? t2 : void 0;
|
|
449
|
+
}
|
|
450
|
+
function ye(t2, e2, r2, n2) {
|
|
451
|
+
return null != t2 && t2[J] === at ? t2 : Array.isArray(t2) ? ((n2 = (r2 = 0 | t2[et]) | 32 & n2 | 2 & n2) !== r2 && it(t2, n2), new e2(t2)) : (r2 ? 2 & n2 ? ((t2 = e2[H]) || (st((t2 = new e2()).A), t2 = e2[H] = t2), e2 = t2) : e2 = new e2() : e2 = void 0, e2);
|
|
452
|
+
}
|
|
453
|
+
function Ee(t2, e2, r2) {
|
|
454
|
+
return null == (t2 = e2 ? ie(t2, 1024) : fe(t2)) ? r2 ? Yt : void 0 : t2;
|
|
455
|
+
}
|
|
456
|
+
function Ae(t2) {
|
|
457
|
+
return t2;
|
|
458
|
+
}
|
|
459
|
+
var we = {}, be = function() {
|
|
460
|
+
try {
|
|
461
|
+
return v(new class extends Map {
|
|
462
|
+
constructor() {
|
|
463
|
+
super();
|
|
464
|
+
}
|
|
465
|
+
}()), false;
|
|
466
|
+
} catch {
|
|
467
|
+
return true;
|
|
468
|
+
}
|
|
469
|
+
}();
|
|
470
|
+
class Te {
|
|
471
|
+
constructor() {
|
|
472
|
+
this.g = /* @__PURE__ */ new Map();
|
|
473
|
+
}
|
|
474
|
+
get(t2) {
|
|
475
|
+
return this.g.get(t2);
|
|
476
|
+
}
|
|
477
|
+
set(t2, e2) {
|
|
478
|
+
return this.g.set(t2, e2), this.size = this.g.size, this;
|
|
479
|
+
}
|
|
480
|
+
delete(t2) {
|
|
481
|
+
return t2 = this.g.delete(t2), this.size = this.g.size, t2;
|
|
482
|
+
}
|
|
483
|
+
clear() {
|
|
484
|
+
this.g.clear(), this.size = this.g.size;
|
|
485
|
+
}
|
|
486
|
+
has(t2) {
|
|
487
|
+
return this.g.has(t2);
|
|
488
|
+
}
|
|
489
|
+
entries() {
|
|
490
|
+
return this.g.entries();
|
|
491
|
+
}
|
|
492
|
+
keys() {
|
|
493
|
+
return this.g.keys();
|
|
494
|
+
}
|
|
495
|
+
values() {
|
|
496
|
+
return this.g.values();
|
|
497
|
+
}
|
|
498
|
+
forEach(t2, e2) {
|
|
499
|
+
return this.g.forEach(t2, e2);
|
|
500
|
+
}
|
|
501
|
+
[Symbol.iterator]() {
|
|
502
|
+
return this.entries();
|
|
503
|
+
}
|
|
504
|
+
}
|
|
505
|
+
var ke = be ? (Object.setPrototypeOf(Te.prototype, Map.prototype), Object.defineProperties(Te.prototype, { size: { value: 0, configurable: true, enumerable: true, writable: true } }), Te) : class extends Map {
|
|
506
|
+
constructor() {
|
|
507
|
+
super();
|
|
508
|
+
}
|
|
509
|
+
};
|
|
510
|
+
function Se(t2) {
|
|
511
|
+
return t2;
|
|
512
|
+
}
|
|
513
|
+
function Le(t2) {
|
|
514
|
+
if (2 & t2.M) throw Error("Cannot mutate an immutable Map");
|
|
515
|
+
}
|
|
516
|
+
var xe, Re = class extends ke {
|
|
517
|
+
constructor(t2, e2, r2 = Se, n2 = Se) {
|
|
518
|
+
super(), this.M = 0 | t2[et], this.N = e2, this.ba = r2, this.na = this.N ? Ie : n2;
|
|
519
|
+
for (let i2 = 0; i2 < t2.length; i2++) {
|
|
520
|
+
let s2 = t2[i2], o2 = r2(s2[0], false, true), a2 = s2[1];
|
|
521
|
+
e2 ? void 0 === a2 && (a2 = null) : a2 = n2(s2[1], false, true, void 0, void 0, this.M), super.set(o2, a2);
|
|
522
|
+
}
|
|
523
|
+
}
|
|
524
|
+
ea(t2) {
|
|
525
|
+
return ot(Array.from(super.entries(), t2));
|
|
526
|
+
}
|
|
527
|
+
clear() {
|
|
528
|
+
Le(this), super.clear();
|
|
529
|
+
}
|
|
530
|
+
delete(t2) {
|
|
531
|
+
return Le(this), super.delete(this.ba(t2, true, false));
|
|
532
|
+
}
|
|
533
|
+
entries() {
|
|
534
|
+
if (this.N) {
|
|
535
|
+
var t2 = super.keys();
|
|
536
|
+
t2 = new lt(t2, Fe, this);
|
|
537
|
+
} else t2 = super.entries();
|
|
538
|
+
return t2;
|
|
539
|
+
}
|
|
540
|
+
values() {
|
|
541
|
+
if (this.N) {
|
|
542
|
+
var t2 = super.keys();
|
|
543
|
+
t2 = new lt(t2, Re.prototype.get, this);
|
|
544
|
+
} else t2 = super.values();
|
|
545
|
+
return t2;
|
|
546
|
+
}
|
|
547
|
+
forEach(t2, e2) {
|
|
548
|
+
this.N ? super.forEach((r2, n2, i2) => {
|
|
549
|
+
t2.call(e2, i2.get(n2), n2, i2);
|
|
550
|
+
}) : super.forEach(t2, e2);
|
|
551
|
+
}
|
|
552
|
+
set(t2, e2) {
|
|
553
|
+
return Le(this), null == (t2 = this.ba(t2, true, false)) ? this : null == e2 ? (super.delete(t2), this) : super.set(t2, this.na(e2, true, true, this.N, false, this.M));
|
|
554
|
+
}
|
|
555
|
+
gb(t2) {
|
|
556
|
+
var e2 = this.ba(t2[0], false, true);
|
|
557
|
+
t2 = t2[1], t2 = this.N ? void 0 === t2 ? null : t2 : this.na(t2, false, true, void 0, false, this.M), super.set(e2, t2);
|
|
558
|
+
}
|
|
559
|
+
has(t2) {
|
|
560
|
+
return super.has(this.ba(t2, false, false));
|
|
561
|
+
}
|
|
562
|
+
get(t2) {
|
|
563
|
+
t2 = this.ba(t2, false, false);
|
|
564
|
+
var e2 = super.get(t2);
|
|
565
|
+
if (void 0 !== e2) {
|
|
566
|
+
var r2 = this.N;
|
|
567
|
+
return r2 ? ((r2 = this.na(e2, false, true, r2, this.Fa, this.M)) !== e2 && super.set(t2, r2), r2) : e2;
|
|
568
|
+
}
|
|
569
|
+
}
|
|
570
|
+
[Symbol.iterator]() {
|
|
571
|
+
return this.entries();
|
|
572
|
+
}
|
|
573
|
+
};
|
|
574
|
+
function Ie(t2, e2, r2, n2, i2, s2) {
|
|
575
|
+
return t2 = ye(t2, n2, r2, s2), i2 && (t2 = Ze(t2)), t2;
|
|
576
|
+
}
|
|
577
|
+
function Fe(t2) {
|
|
578
|
+
return [t2, this.get(t2)];
|
|
579
|
+
}
|
|
580
|
+
function Ce() {
|
|
581
|
+
return xe ||= new Re(st([]), void 0, void 0, void 0, we);
|
|
582
|
+
}
|
|
583
|
+
function Ne(t2) {
|
|
584
|
+
return X ? t2[X] : void 0;
|
|
585
|
+
}
|
|
586
|
+
function Me(t2, e2) {
|
|
587
|
+
for (let r2 in t2) !isNaN(r2) && e2(t2, +r2, t2[r2]);
|
|
588
|
+
}
|
|
589
|
+
Re.prototype.toJSON = void 0;
|
|
590
|
+
var De, Pe, $e = class {
|
|
591
|
+
}, Ue = { cb: true };
|
|
592
|
+
function Be(t2, e2) {
|
|
593
|
+
e2 < 100 || $(z, 1);
|
|
594
|
+
}
|
|
595
|
+
function Ge(t2, e2, r2, n2) {
|
|
596
|
+
var i2 = void 0 !== n2;
|
|
597
|
+
n2 = !!n2;
|
|
598
|
+
var s2, o2 = X;
|
|
599
|
+
!i2 && B && o2 && (s2 = t2[o2]) && Me(s2, Be), o2 = [];
|
|
600
|
+
var a2 = t2.length;
|
|
601
|
+
s2 = 4294967295;
|
|
602
|
+
var h2 = false, u2 = !!(64 & e2), c2 = u2 ? 128 & e2 ? 0 : -1 : void 0;
|
|
603
|
+
if (!(1 & e2)) {
|
|
604
|
+
var l2 = a2 && t2[a2 - 1];
|
|
605
|
+
null != l2 && "object" == typeof l2 && l2.constructor === Object ? s2 = --a2 : l2 = void 0, !u2 || 128 & e2 || i2 || (h2 = true, s2 = Ae(s2 - c2, c2, t2, l2, void 0) + c2);
|
|
606
|
+
}
|
|
607
|
+
e2 = void 0;
|
|
608
|
+
for (var d2 = 0; d2 < a2; d2++) {
|
|
609
|
+
let i3 = t2[d2];
|
|
610
|
+
if (null != i3 && null != (i3 = r2(i3, n2))) if (u2 && d2 >= s2) {
|
|
611
|
+
let t3 = d2 - c2;
|
|
612
|
+
(e2 ??= {})[t3] = i3;
|
|
613
|
+
} else o2[d2] = i3;
|
|
614
|
+
}
|
|
615
|
+
if (l2) for (let t3 in l2) {
|
|
616
|
+
if (null == (a2 = l2[t3]) || null == (a2 = r2(a2, n2))) continue;
|
|
617
|
+
let i3;
|
|
618
|
+
d2 = +t3, u2 && !Number.isNaN(d2) && (i3 = d2 + c2) < s2 ? o2[i3] = a2 : (e2 ??= {})[t3] = a2;
|
|
619
|
+
}
|
|
620
|
+
return e2 && (h2 ? o2.push(e2) : o2[s2] = e2), i2 && X && (t2 = Ne(t2)) && t2 instanceof $e && (o2[X] = function(t3) {
|
|
621
|
+
var e3 = new $e();
|
|
622
|
+
return Me(t3, (t4, r3, n3) => {
|
|
623
|
+
e3[r3] = Vt(n3);
|
|
624
|
+
}), e3.ka = t3.ka, e3;
|
|
625
|
+
}(t2)), o2;
|
|
626
|
+
}
|
|
627
|
+
function je(t2) {
|
|
628
|
+
return t2[0] = Ve(t2[0]), t2[1] = Ve(t2[1]), t2;
|
|
629
|
+
}
|
|
630
|
+
function Ve(t2) {
|
|
631
|
+
switch (typeof t2) {
|
|
632
|
+
case "number":
|
|
633
|
+
return Number.isFinite(t2) ? t2 : "" + t2;
|
|
634
|
+
case "bigint":
|
|
635
|
+
return wt(t2) ? Number(t2) : "" + t2;
|
|
636
|
+
case "boolean":
|
|
637
|
+
return t2 ? 1 : 0;
|
|
638
|
+
case "object":
|
|
639
|
+
if (Array.isArray(t2)) {
|
|
640
|
+
var e2 = 0 | t2[et];
|
|
641
|
+
return 0 === t2.length && 1 & e2 ? void 0 : Ge(t2, e2, Ve);
|
|
642
|
+
}
|
|
643
|
+
if (null != t2 && t2[J] === at) return He(t2);
|
|
644
|
+
if (t2 instanceof N) {
|
|
645
|
+
if (null == (e2 = t2.g)) t2 = "";
|
|
646
|
+
else if ("string" == typeof e2) t2 = e2;
|
|
647
|
+
else {
|
|
648
|
+
if (b) {
|
|
649
|
+
for (var r2 = "", n2 = 0, i2 = e2.length - 10240; n2 < i2; ) r2 += String.fromCharCode.apply(null, e2.subarray(n2, n2 += 10240));
|
|
650
|
+
r2 += String.fromCharCode.apply(null, n2 ? e2.subarray(n2) : e2), e2 = btoa(r2);
|
|
651
|
+
} else {
|
|
652
|
+
void 0 === r2 && (r2 = 0), A(), r2 = _[r2], n2 = Array(Math.floor(e2.length / 3)), i2 = r2[64] || "";
|
|
653
|
+
let t3 = 0, u2 = 0;
|
|
654
|
+
for (; t3 < e2.length - 2; t3 += 3) {
|
|
655
|
+
var s2 = e2[t3], o2 = e2[t3 + 1], a2 = e2[t3 + 2], h2 = r2[s2 >> 2];
|
|
656
|
+
s2 = r2[(3 & s2) << 4 | o2 >> 4], o2 = r2[(15 & o2) << 2 | a2 >> 6], a2 = r2[63 & a2], n2[u2++] = h2 + s2 + o2 + a2;
|
|
657
|
+
}
|
|
658
|
+
switch (h2 = 0, a2 = i2, e2.length - t3) {
|
|
659
|
+
case 2:
|
|
660
|
+
a2 = r2[(15 & (h2 = e2[t3 + 1])) << 2] || i2;
|
|
661
|
+
case 1:
|
|
662
|
+
e2 = e2[t3], n2[u2] = r2[e2 >> 2] + r2[(3 & e2) << 4 | h2 >> 4] + a2 + i2;
|
|
663
|
+
}
|
|
664
|
+
e2 = n2.join("");
|
|
665
|
+
}
|
|
666
|
+
t2 = t2.g = e2;
|
|
667
|
+
}
|
|
668
|
+
return t2;
|
|
669
|
+
}
|
|
670
|
+
return t2 instanceof Re ? t2 = 0 !== t2.size ? t2.ea(je) : void 0 : void 0;
|
|
671
|
+
}
|
|
672
|
+
return t2;
|
|
673
|
+
}
|
|
674
|
+
function He(t2) {
|
|
675
|
+
return Ge(t2 = t2.A, 0 | t2[et], Ve);
|
|
676
|
+
}
|
|
677
|
+
function Ke(t2, e2) {
|
|
678
|
+
return Xe(t2, e2[0], e2[1]);
|
|
679
|
+
}
|
|
680
|
+
function Xe(t2, e2, r2, n2 = 0) {
|
|
681
|
+
if (null == t2) {
|
|
682
|
+
var i2 = 32;
|
|
683
|
+
r2 ? (t2 = [r2], i2 |= 128) : t2 = [], e2 && (i2 = -16760833 & i2 | (1023 & e2) << 14);
|
|
684
|
+
} else {
|
|
685
|
+
if (!Array.isArray(t2)) throw Error("narr");
|
|
686
|
+
if (i2 = 0 | t2[et], f && 1 & i2) throw Error("rfarr");
|
|
687
|
+
if (2048 & i2 && !(2 & i2) && function() {
|
|
688
|
+
if (f) throw Error("carr");
|
|
689
|
+
$(q, 5);
|
|
690
|
+
}(), 256 & i2) throw Error("farr");
|
|
691
|
+
if (64 & i2) return (i2 | n2) !== i2 && it(t2, i2 | n2), t2;
|
|
692
|
+
if (r2 && (i2 |= 128, r2 !== t2[0])) throw Error("mid");
|
|
693
|
+
t: {
|
|
694
|
+
i2 |= 64;
|
|
695
|
+
var s2 = (r2 = t2).length;
|
|
696
|
+
if (s2) {
|
|
697
|
+
var o2 = s2 - 1;
|
|
698
|
+
let t3 = r2[o2];
|
|
699
|
+
if (null != t3 && "object" == typeof t3 && t3.constructor === Object) {
|
|
700
|
+
if ((o2 -= e2 = 128 & i2 ? 0 : -1) >= 1024) throw Error("pvtlmt");
|
|
701
|
+
for (var a2 in t3) (s2 = +a2) < o2 && (r2[s2 + e2] = t3[a2], delete t3[a2]);
|
|
702
|
+
i2 = -16760833 & i2 | (1023 & o2) << 14;
|
|
703
|
+
break t;
|
|
704
|
+
}
|
|
705
|
+
}
|
|
706
|
+
if (e2) {
|
|
707
|
+
if ((a2 = Math.max(e2, s2 - (128 & i2 ? 0 : -1))) > 1024) throw Error("spvt");
|
|
708
|
+
i2 = -16760833 & i2 | (1023 & a2) << 14;
|
|
709
|
+
}
|
|
710
|
+
}
|
|
711
|
+
}
|
|
712
|
+
return it(t2, 64 | i2 | n2), t2;
|
|
713
|
+
}
|
|
714
|
+
function We(t2, e2) {
|
|
715
|
+
if ("object" != typeof t2) return t2;
|
|
716
|
+
if (Array.isArray(t2)) {
|
|
717
|
+
var r2 = 0 | t2[et];
|
|
718
|
+
return 0 === t2.length && 1 & r2 ? void 0 : ze(t2, r2, e2);
|
|
719
|
+
}
|
|
720
|
+
if (null != t2 && t2[J] === at) return qe(t2);
|
|
721
|
+
if (t2 instanceof Re) {
|
|
722
|
+
if (2 & (e2 = t2.M)) return t2;
|
|
723
|
+
if (!t2.size) return;
|
|
724
|
+
if (r2 = st(t2.ea()), t2.N) for (t2 = 0; t2 < r2.length; t2++) {
|
|
725
|
+
let n2 = r2[t2], i2 = n2[1];
|
|
726
|
+
i2 = null == i2 || "object" != typeof i2 ? void 0 : null != i2 && i2[J] === at ? qe(i2) : Array.isArray(i2) ? ze(i2, 0 | i2[et], !!(32 & e2)) : void 0, n2[1] = i2;
|
|
727
|
+
}
|
|
728
|
+
return r2;
|
|
729
|
+
}
|
|
730
|
+
return t2 instanceof N ? t2 : void 0;
|
|
731
|
+
}
|
|
732
|
+
function ze(t2, e2, r2) {
|
|
733
|
+
return 2 & e2 || (!r2 || 4096 & e2 || 16 & e2 ? t2 = Je(t2, e2, false, r2 && !(16 & e2)) : (nt(t2, 34), 4 & e2 && Object.freeze(t2))), t2;
|
|
734
|
+
}
|
|
735
|
+
function Ye(t2, e2, r2) {
|
|
736
|
+
return t2 = new t2.constructor(e2), r2 && (t2.h = ut), t2.m = ut, t2;
|
|
737
|
+
}
|
|
738
|
+
function qe(t2) {
|
|
739
|
+
var e2 = t2.A, r2 = 0 | e2[et];
|
|
740
|
+
return ht(t2, r2) ? t2 : rr(t2, e2, r2) ? Ye(t2, e2) : Je(e2, r2);
|
|
741
|
+
}
|
|
742
|
+
function Je(t2, e2, r2, n2) {
|
|
743
|
+
return n2 ??= !!(34 & e2), t2 = Ge(t2, e2, We, n2), n2 = 32, r2 && (n2 |= 2), it(t2, e2 = 16769217 & e2 | n2), t2;
|
|
744
|
+
}
|
|
745
|
+
function Ze(t2) {
|
|
746
|
+
var e2 = t2.A, r2 = 0 | e2[et];
|
|
747
|
+
return ht(t2, r2) ? rr(t2, e2, r2) ? Ye(t2, e2, true) : new t2.constructor(Je(e2, r2, false)) : t2;
|
|
748
|
+
}
|
|
749
|
+
function Qe(t2) {
|
|
750
|
+
if (t2.h !== ut) return false;
|
|
751
|
+
var e2 = t2.A;
|
|
752
|
+
return nt(e2 = Je(e2, 0 | e2[et]), 2048), t2.A = e2, t2.h = void 0, t2.m = void 0, true;
|
|
753
|
+
}
|
|
754
|
+
function tr(t2) {
|
|
755
|
+
if (!Qe(t2) && ht(t2, 0 | t2.A[et])) throw Error();
|
|
756
|
+
}
|
|
757
|
+
function er(t2, e2) {
|
|
758
|
+
void 0 === e2 && (e2 = 0 | t2[et]), 32 & e2 && !(4096 & e2) && it(t2, 4096 | e2);
|
|
759
|
+
}
|
|
760
|
+
function rr(t2, e2, r2) {
|
|
761
|
+
return !!(2 & r2) || !(!(32 & r2) || 4096 & r2) && (it(e2, 2 | r2), t2.h = ut, true);
|
|
762
|
+
}
|
|
763
|
+
var nr = At(0), ir = {};
|
|
764
|
+
function sr(t2, e2, r2, n2) {
|
|
765
|
+
if (null !== (e2 = or(t2.A, e2, void 0, n2)) || r2 && t2.m !== ut) return e2;
|
|
766
|
+
}
|
|
767
|
+
function or(t2, e2, r2, n2) {
|
|
768
|
+
if (-1 === e2) return null;
|
|
769
|
+
var i2 = e2 + (r2 ? 0 : -1), s2 = t2.length - 1;
|
|
770
|
+
if (!(s2 < 1 + (r2 ? 0 : -1))) {
|
|
771
|
+
if (i2 >= s2) {
|
|
772
|
+
var o2 = t2[s2];
|
|
773
|
+
if (null != o2 && "object" == typeof o2 && o2.constructor === Object) {
|
|
774
|
+
r2 = o2[e2];
|
|
775
|
+
var a2 = true;
|
|
776
|
+
} else {
|
|
777
|
+
if (i2 !== s2) return;
|
|
778
|
+
r2 = o2;
|
|
779
|
+
}
|
|
780
|
+
} else r2 = t2[i2];
|
|
781
|
+
if (n2 && null != r2) {
|
|
782
|
+
if (null == (n2 = n2(r2))) return n2;
|
|
783
|
+
if (!Object.is(n2, r2)) return a2 ? o2[e2] = n2 : t2[i2] = n2, n2;
|
|
784
|
+
}
|
|
785
|
+
return r2;
|
|
786
|
+
}
|
|
787
|
+
}
|
|
788
|
+
function ar(t2, e2, r2, n2) {
|
|
789
|
+
tr(t2);
|
|
790
|
+
var i2 = t2.A;
|
|
791
|
+
return hr(i2, 0 | i2[et], e2, r2, n2), t2;
|
|
792
|
+
}
|
|
793
|
+
function hr(t2, e2, r2, n2, i2) {
|
|
794
|
+
var s2 = r2 + (i2 ? 0 : -1), o2 = t2.length - 1;
|
|
795
|
+
if (o2 >= 1 + (i2 ? 0 : -1) && s2 >= o2) {
|
|
796
|
+
let i3 = t2[o2];
|
|
797
|
+
if (null != i3 && "object" == typeof i3 && i3.constructor === Object) return i3[r2] = n2, e2;
|
|
798
|
+
}
|
|
799
|
+
return s2 <= o2 ? (t2[s2] = n2, e2) : (void 0 !== n2 && (r2 >= (o2 = (e2 ??= 0 | t2[et]) >> 14 & 1023 || 536870912) ? null != n2 && (t2[o2 + (i2 ? 0 : -1)] = { [r2]: n2 }) : t2[s2] = n2), e2);
|
|
800
|
+
}
|
|
801
|
+
function ur(t2, e2, r2, n2) {
|
|
802
|
+
var i2 = t2.A;
|
|
803
|
+
return void 0 !== kr(i2, 0 | i2[et], e2, t2 = Er(t2, n2) === r2 ? r2 : -1);
|
|
804
|
+
}
|
|
805
|
+
function cr() {
|
|
806
|
+
return void 0 === dt ? 2 : 4;
|
|
807
|
+
}
|
|
808
|
+
function lr(t2, e2, r2, n2, i2) {
|
|
809
|
+
var s2 = t2.A, o2 = 0 | s2[et];
|
|
810
|
+
n2 = ht(t2, o2) ? 1 : n2, i2 = !!i2 || 3 === n2, 2 === n2 && Qe(t2) && (o2 = 0 | (s2 = t2.A)[et]);
|
|
811
|
+
var a2 = (t2 = fr(s2, e2)) === j ? 7 : 0 | t2[et], h2 = pr(a2, o2), u2 = !(4 & h2);
|
|
812
|
+
if (u2) {
|
|
813
|
+
4 & h2 && (t2 = Vt(t2), a2 = 0, h2 = Nr(h2, o2), o2 = hr(s2, o2, e2, t2));
|
|
814
|
+
let n3 = 0, i3 = 0;
|
|
815
|
+
for (; n3 < t2.length; n3++) {
|
|
816
|
+
let e3 = r2(t2[n3]);
|
|
817
|
+
null != e3 && (t2[i3++] = e3);
|
|
818
|
+
}
|
|
819
|
+
i3 < n3 && (t2.length = i3), r2 = -513 & h2 | 4, h2 = r2 &= -1025, h2 &= -4097;
|
|
820
|
+
}
|
|
821
|
+
return h2 !== a2 && (it(t2, h2), 2 & h2 && Object.freeze(t2)), dr(t2, h2, s2, o2, e2, n2, u2, i2);
|
|
822
|
+
}
|
|
823
|
+
function dr(t2, e2, r2, n2, i2, s2, o2, a2) {
|
|
824
|
+
var h2 = e2;
|
|
825
|
+
return 1 === s2 || 4 === s2 && (2 & e2 || !(16 & e2) && 32 & n2) ? gr(e2) || ((e2 |= !t2.length || o2 && !(4096 & e2) || 32 & n2 && !(4096 & e2 || 16 & e2) ? 2 : 256) !== h2 && it(t2, e2), Object.freeze(t2)) : (2 === s2 && gr(e2) && (t2 = Vt(t2), h2 = 0, e2 = Nr(e2, n2), n2 = hr(r2, n2, i2, t2)), gr(e2) || (a2 || (e2 |= 16), e2 !== h2 && it(t2, e2))), 2 & e2 || !(4096 & e2 || 16 & e2) || er(r2, n2), t2;
|
|
826
|
+
}
|
|
827
|
+
function fr(t2, e2, r2) {
|
|
828
|
+
return t2 = or(t2, e2, r2), Array.isArray(t2) ? t2 : j;
|
|
829
|
+
}
|
|
830
|
+
function pr(t2, e2) {
|
|
831
|
+
return 2 & e2 && (t2 |= 2), 1 | t2;
|
|
832
|
+
}
|
|
833
|
+
function gr(t2) {
|
|
834
|
+
return !!(2 & t2) && !!(4 & t2) || !!(256 & t2);
|
|
835
|
+
}
|
|
836
|
+
function mr(t2) {
|
|
837
|
+
return ct(t2, true);
|
|
838
|
+
}
|
|
839
|
+
function vr(t2) {
|
|
840
|
+
t2 = Vt(t2);
|
|
841
|
+
for (let e2 = 0; e2 < t2.length; e2++) {
|
|
842
|
+
let r2 = t2[e2] = Vt(t2[e2]);
|
|
843
|
+
Array.isArray(r2[1]) && (r2[1] = st(r2[1]));
|
|
844
|
+
}
|
|
845
|
+
return ot(t2);
|
|
846
|
+
}
|
|
847
|
+
function _r(t2, e2, r2, n2) {
|
|
848
|
+
tr(t2), hr(t2 = t2.A, 0 | t2[et], e2, ("0" === n2 ? 0 === Number(r2) : r2 === n2) ? void 0 : r2);
|
|
849
|
+
}
|
|
850
|
+
function yr(t2, e2, r2) {
|
|
851
|
+
if (2 & e2) throw Error();
|
|
852
|
+
var n2 = gt(e2), i2 = fr(t2, r2, n2), s2 = i2 === j ? 7 : 0 | i2[et], o2 = pr(s2, e2);
|
|
853
|
+
return (2 & o2 || gr(o2) || 16 & o2) && (o2 === s2 || gr(o2) || it(i2, o2), i2 = Vt(i2), s2 = 0, o2 = Nr(o2, e2), hr(t2, e2, r2, i2, n2)), (o2 &= -13) !== s2 && it(i2, o2), i2;
|
|
854
|
+
}
|
|
855
|
+
function Er(t2, e2) {
|
|
856
|
+
return br(Ar(t2 = t2.A), t2, void 0, e2);
|
|
857
|
+
}
|
|
858
|
+
function Ar(t2) {
|
|
859
|
+
if (B) return t2[K] ?? (t2[K] = /* @__PURE__ */ new Map());
|
|
860
|
+
if (K in t2) return t2[K];
|
|
861
|
+
var e2 = /* @__PURE__ */ new Map();
|
|
862
|
+
return Object.defineProperty(t2, K, { value: e2 }), e2;
|
|
863
|
+
}
|
|
864
|
+
function wr(t2, e2, r2, n2, i2) {
|
|
865
|
+
var s2 = Ar(t2), o2 = br(s2, t2, e2, r2, i2);
|
|
866
|
+
return o2 !== n2 && (o2 && (e2 = hr(t2, e2, o2, void 0, i2)), s2.set(r2, n2)), e2;
|
|
867
|
+
}
|
|
868
|
+
function br(t2, e2, r2, n2, i2) {
|
|
869
|
+
var s2 = t2.get(n2);
|
|
870
|
+
if (null != s2) return s2;
|
|
871
|
+
s2 = 0;
|
|
872
|
+
for (let t3 = 0; t3 < n2.length; t3++) {
|
|
873
|
+
let o2 = n2[t3];
|
|
874
|
+
null != or(e2, o2, i2) && (0 !== s2 && (r2 = hr(e2, r2, s2, void 0, i2)), s2 = o2);
|
|
875
|
+
}
|
|
876
|
+
return t2.set(n2, s2), s2;
|
|
877
|
+
}
|
|
878
|
+
function Tr(t2, e2, r2) {
|
|
879
|
+
var n2 = 0 | t2[et], i2 = gt(n2), s2 = or(t2, r2, i2);
|
|
880
|
+
if (null != s2 && s2[J] === at) {
|
|
881
|
+
if (!ht(s2)) return Qe(s2), s2.A;
|
|
882
|
+
var o2 = s2.A;
|
|
883
|
+
} else Array.isArray(s2) && (o2 = s2);
|
|
884
|
+
if (o2) {
|
|
885
|
+
let t3 = 0 | o2[et];
|
|
886
|
+
2 & t3 && (o2 = Je(o2, t3));
|
|
887
|
+
}
|
|
888
|
+
return (o2 = Ke(o2, e2)) !== s2 && hr(t2, n2, r2, o2, i2), o2;
|
|
889
|
+
}
|
|
890
|
+
function kr(t2, e2, r2, n2, i2) {
|
|
891
|
+
var s2 = false;
|
|
892
|
+
if (null != (n2 = or(t2, n2, i2, (t3) => {
|
|
893
|
+
var n3 = ye(t3, r2, false, e2);
|
|
894
|
+
return s2 = n3 !== t3 && null != n3, n3;
|
|
895
|
+
}))) return s2 && !ht(n2) && er(t2, e2), n2;
|
|
896
|
+
}
|
|
897
|
+
function Sr(t2, e2, r2, n2) {
|
|
898
|
+
var i2 = t2.A, s2 = 0 | i2[et];
|
|
899
|
+
if (null == (e2 = kr(i2, s2, e2, r2, n2))) return e2;
|
|
900
|
+
if (!ht(t2, s2 = 0 | i2[et])) {
|
|
901
|
+
let o2 = Ze(e2);
|
|
902
|
+
o2 !== e2 && (Qe(t2) && (s2 = 0 | (i2 = t2.A)[et]), er(i2, s2 = hr(i2, s2, r2, e2 = o2, n2)));
|
|
903
|
+
}
|
|
904
|
+
return e2;
|
|
905
|
+
}
|
|
906
|
+
function Lr(t2, e2, r2, n2, i2, s2, o2, a2) {
|
|
907
|
+
var h2 = ht(t2, r2);
|
|
908
|
+
s2 = h2 ? 1 : s2, o2 = !!o2 || 3 === s2, h2 = a2 && !h2, (2 === s2 || h2) && Qe(t2) && (r2 = 0 | (e2 = t2.A)[et]);
|
|
909
|
+
var u2 = (t2 = fr(e2, i2)) === j ? 7 : 0 | t2[et], c2 = pr(u2, r2);
|
|
910
|
+
if (a2 = !(4 & c2)) {
|
|
911
|
+
var l2 = t2, d2 = r2;
|
|
912
|
+
let e3 = !!(2 & c2);
|
|
913
|
+
e3 && (d2 |= 2);
|
|
914
|
+
let i3 = !e3, s3 = true, o3 = 0, a3 = 0;
|
|
915
|
+
for (; o3 < l2.length; o3++) {
|
|
916
|
+
let t3 = ye(l2[o3], n2, false, d2);
|
|
917
|
+
if (t3 instanceof n2) {
|
|
918
|
+
if (!e3) {
|
|
919
|
+
let e4 = ht(t3);
|
|
920
|
+
i3 &&= !e4, s3 &&= e4;
|
|
921
|
+
}
|
|
922
|
+
l2[a3++] = t3;
|
|
923
|
+
}
|
|
924
|
+
}
|
|
925
|
+
a3 < o3 && (l2.length = a3), c2 |= 4, c2 = s3 ? -4097 & c2 : 4096 | c2, c2 = i3 ? 8 | c2 : -9 & c2;
|
|
926
|
+
}
|
|
927
|
+
if (c2 !== u2 && (it(t2, c2), 2 & c2 && Object.freeze(t2)), h2 && !(8 & c2 || !t2.length && (1 === s2 || 4 === s2 && (2 & c2 || !(16 & c2) && 32 & r2)))) {
|
|
928
|
+
for (gr(c2) && (t2 = Vt(t2), c2 = Nr(c2, r2), r2 = hr(e2, r2, i2, t2)), n2 = t2, h2 = c2, u2 = 0; u2 < n2.length; u2++) (l2 = n2[u2]) !== (c2 = Ze(l2)) && (n2[u2] = c2);
|
|
929
|
+
h2 |= 8, it(t2, c2 = h2 = n2.length ? 4096 | h2 : -4097 & h2);
|
|
930
|
+
}
|
|
931
|
+
return dr(t2, c2, e2, r2, i2, s2, a2, o2);
|
|
932
|
+
}
|
|
933
|
+
function xr(t2, e2, r2) {
|
|
934
|
+
var n2 = t2.A;
|
|
935
|
+
return Lr(t2, n2, 0 | n2[et], e2, r2, cr(), false, true);
|
|
936
|
+
}
|
|
937
|
+
function Rr(t2) {
|
|
938
|
+
return null == t2 && (t2 = void 0), t2;
|
|
939
|
+
}
|
|
940
|
+
function Ir(t2, e2, r2, n2, i2) {
|
|
941
|
+
return ar(t2, r2, n2 = Rr(n2), i2), n2 && !ht(n2) && er(t2.A), t2;
|
|
942
|
+
}
|
|
943
|
+
function Fr(t2, e2, r2, n2) {
|
|
944
|
+
t: {
|
|
945
|
+
var i2 = n2 = Rr(n2);
|
|
946
|
+
tr(t2);
|
|
947
|
+
let s2 = t2.A, o2 = 0 | s2[et];
|
|
948
|
+
if (null == i2) {
|
|
949
|
+
let t3 = Ar(s2);
|
|
950
|
+
if (br(t3, s2, o2, r2) !== e2) break t;
|
|
951
|
+
t3.set(r2, 0);
|
|
952
|
+
} else o2 = wr(s2, o2, r2, e2);
|
|
953
|
+
hr(s2, o2, e2, i2);
|
|
954
|
+
}
|
|
955
|
+
return n2 && !ht(n2) && er(t2.A), t2;
|
|
956
|
+
}
|
|
957
|
+
function Cr(t2, e2, r2) {
|
|
958
|
+
tr(t2);
|
|
959
|
+
var n2 = t2.A, i2 = 0 | n2[et];
|
|
960
|
+
if (null == r2) return hr(n2, i2, e2), t2;
|
|
961
|
+
var s2 = r2 === j ? 7 : 0 | r2[et], o2 = s2, a2 = gr(s2), h2 = a2 || Object.isFrozen(r2), u2 = true, c2 = true;
|
|
962
|
+
for (let t3 = 0; t3 < r2.length; t3++) {
|
|
963
|
+
var l2 = r2[t3];
|
|
964
|
+
a2 || (l2 = ht(l2), u2 &&= !l2, c2 &&= l2);
|
|
965
|
+
}
|
|
966
|
+
return a2 || (s2 = u2 ? 13 : 5, s2 = c2 ? -4097 & s2 : 4096 | s2), h2 && s2 === o2 || (r2 = Vt(r2), o2 = 0, s2 = Nr(s2, i2)), s2 !== o2 && it(r2, s2), i2 = hr(n2, i2, e2, r2), 2 & s2 || !(4096 & s2 || 16 & s2) || er(n2, i2), t2;
|
|
967
|
+
}
|
|
968
|
+
function Nr(t2, e2) {
|
|
969
|
+
return -273 & (2 & e2 ? 2 | t2 : -3 & t2);
|
|
970
|
+
}
|
|
971
|
+
function Mr(t2, e2, r2, n2) {
|
|
972
|
+
var i2 = n2;
|
|
973
|
+
tr(t2), t2 = Lr(t2, n2 = t2.A, 0 | n2[et], r2, e2, 2, true), i2 = null != i2 ? i2 : new r2(), t2.push(i2), e2 = r2 = t2 === j ? 7 : 0 | t2[et], (i2 = ht(i2)) ? (r2 &= -9, 1 === t2.length && (r2 &= -4097)) : r2 |= 4096, r2 !== e2 && it(t2, r2), i2 || er(n2);
|
|
974
|
+
}
|
|
975
|
+
function Or(t2, e2, r2) {
|
|
976
|
+
return re(sr(t2, e2, r2));
|
|
977
|
+
}
|
|
978
|
+
function Dr(t2, e2) {
|
|
979
|
+
return sr(t2, e2, void 0, Jt) ?? 0;
|
|
980
|
+
}
|
|
981
|
+
function Pr(t2, e2, r2) {
|
|
982
|
+
return Sr(t2, e2, r2 = Er(t2, Uo) === r2 ? r2 : -1, void 0);
|
|
983
|
+
}
|
|
984
|
+
function $r(t2, e2) {
|
|
985
|
+
_r(t2, 3, null == e2 ? e2 : Zt(e2), false);
|
|
986
|
+
}
|
|
987
|
+
function Ur(t2, e2, r2) {
|
|
988
|
+
if (null != r2) {
|
|
989
|
+
if ("number" != typeof r2) throw P("int32");
|
|
990
|
+
if (!Wt(r2)) throw P("int32");
|
|
991
|
+
r2 |= 0;
|
|
992
|
+
}
|
|
993
|
+
ar(t2, e2, r2);
|
|
994
|
+
}
|
|
995
|
+
function Br(t2, e2, r2) {
|
|
996
|
+
return ar(t2, e2, null == r2 ? r2 : ie(r2));
|
|
997
|
+
}
|
|
998
|
+
function Gr(t2, e2, r2) {
|
|
999
|
+
return ar(t2, e2, null == r2 ? r2 : function(t3) {
|
|
1000
|
+
if (!te(t3)) throw P("uint64");
|
|
1001
|
+
switch (typeof t3) {
|
|
1002
|
+
case "string":
|
|
1003
|
+
var e3 = zt(Number(t3));
|
|
1004
|
+
return Xt(e3) && e3 >= 0 ? t3 = At(e3) : (-1 !== (e3 = t3.indexOf(".")) && (t3 = t3.substring(0, e3)), t3 = U() ? At(Kt(64, BigInt(t3))) : At(oe(t3))), t3;
|
|
1005
|
+
case "bigint":
|
|
1006
|
+
return At(Kt(64, t3));
|
|
1007
|
+
default:
|
|
1008
|
+
return Xt(t3) ? t3 = At(he(t3)) : ((t3 = zt(t3)) >= 0 && Xt(t3) ? t3 = String(t3) : (Nt(t3), t3 = $t(It, Ft)), t3 = At(t3)), t3;
|
|
1009
|
+
}
|
|
1010
|
+
}(r2));
|
|
1011
|
+
}
|
|
1012
|
+
function jr(t2, e2, r2) {
|
|
1013
|
+
ar(t2, e2, null == r2 ? r2 : qt(r2));
|
|
1014
|
+
}
|
|
1015
|
+
function Vr(t2, e2, r2) {
|
|
1016
|
+
_r(t2, e2, null == r2 ? r2 : qt(r2), 0);
|
|
1017
|
+
}
|
|
1018
|
+
function Hr(t2, e2, r2) {
|
|
1019
|
+
_r(t2, e2, ve(r2), "");
|
|
1020
|
+
}
|
|
1021
|
+
function Kr(t2, e2, r2) {
|
|
1022
|
+
{
|
|
1023
|
+
tr(t2);
|
|
1024
|
+
let o2 = t2.A, a2 = 0 | o2[et];
|
|
1025
|
+
if (null == r2) hr(o2, a2, e2);
|
|
1026
|
+
else {
|
|
1027
|
+
var n2 = t2 = r2 === j ? 7 : 0 | r2[et], i2 = gr(t2), s2 = i2 || Object.isFrozen(r2);
|
|
1028
|
+
for (i2 || (t2 = 0), s2 || (r2 = Vt(r2), n2 = 0, t2 = Nr(t2, a2), s2 = false), t2 |= 5, t2 |= (4 & t2 ? 512 & t2 ? 512 : 1024 & t2 ? 1024 : 0 : void 0) ?? 1024, i2 = 0; i2 < r2.length; i2++) {
|
|
1029
|
+
let e3 = r2[i2], o3 = me(e3);
|
|
1030
|
+
Object.is(e3, o3) || (s2 && (r2 = Vt(r2), n2 = 0, t2 = Nr(t2, a2), s2 = false), r2[i2] = o3);
|
|
1031
|
+
}
|
|
1032
|
+
t2 !== n2 && (s2 && (r2 = Vt(r2), t2 = Nr(t2, a2)), it(r2, t2)), hr(o2, a2, e2, r2);
|
|
1033
|
+
}
|
|
1034
|
+
}
|
|
1035
|
+
}
|
|
1036
|
+
function Xr(t2, e2, r2) {
|
|
1037
|
+
tr(t2), lr(t2, e2, _e, 2, true).push(me(r2));
|
|
1038
|
+
}
|
|
1039
|
+
var Wr = class {
|
|
1040
|
+
constructor(t2, e2, r2) {
|
|
1041
|
+
if (this.buffer = t2, r2 && !e2) throw Error();
|
|
1042
|
+
this.g = e2;
|
|
1043
|
+
}
|
|
1044
|
+
};
|
|
1045
|
+
function zr(t2, e2) {
|
|
1046
|
+
if ("string" == typeof t2) return new Wr(L(t2), e2);
|
|
1047
|
+
if (Array.isArray(t2)) return new Wr(new Uint8Array(t2), e2);
|
|
1048
|
+
if (t2.constructor === Uint8Array) return new Wr(t2, false);
|
|
1049
|
+
if (t2.constructor === ArrayBuffer) return t2 = new Uint8Array(t2), new Wr(t2, false);
|
|
1050
|
+
if (t2.constructor === N) return e2 = F(t2) || new Uint8Array(0), new Wr(e2, true, t2);
|
|
1051
|
+
if (t2 instanceof Uint8Array) return t2 = t2.constructor === Uint8Array ? t2 : new Uint8Array(t2.buffer, t2.byteOffset, t2.byteLength), new Wr(t2, false);
|
|
1052
|
+
throw Error();
|
|
1053
|
+
}
|
|
1054
|
+
function Yr(t2, e2) {
|
|
1055
|
+
var r2 = 0, n2 = 0, i2 = 0, s2 = t2.h, o2 = t2.g;
|
|
1056
|
+
do {
|
|
1057
|
+
var a2 = s2[o2++];
|
|
1058
|
+
r2 |= (127 & a2) << i2, i2 += 7;
|
|
1059
|
+
} while (i2 < 32 && 128 & a2);
|
|
1060
|
+
if (i2 > 32) for (n2 |= (127 & a2) >> 4, i2 = 3; i2 < 32 && 128 & a2; i2 += 7) n2 |= (127 & (a2 = s2[o2++])) << i2;
|
|
1061
|
+
if (nn(t2, o2), !(128 & a2)) return e2(r2 >>> 0, n2 >>> 0);
|
|
1062
|
+
throw Error();
|
|
1063
|
+
}
|
|
1064
|
+
function qr(t2) {
|
|
1065
|
+
for (var e2 = 0, r2 = t2.g, n2 = r2 + 10, i2 = t2.h; r2 < n2; ) {
|
|
1066
|
+
let n3 = i2[r2++];
|
|
1067
|
+
if (e2 |= n3, !(128 & n3)) return nn(t2, r2), !!(127 & e2);
|
|
1068
|
+
}
|
|
1069
|
+
throw Error();
|
|
1070
|
+
}
|
|
1071
|
+
function Jr(t2) {
|
|
1072
|
+
var e2 = t2.h, r2 = t2.g, n2 = e2[r2++], i2 = 127 & n2;
|
|
1073
|
+
if (128 & n2 && (i2 |= (127 & (n2 = e2[r2++])) << 7, 128 & n2 && (i2 |= (127 & (n2 = e2[r2++])) << 14, 128 & n2 && (i2 |= (127 & (n2 = e2[r2++])) << 21, 128 & n2 && (i2 |= (n2 = e2[r2++]) << 28, 128 & n2 && 128 & e2[r2++] && 128 & e2[r2++] && 128 & e2[r2++] && 128 & e2[r2++] && 128 & e2[r2++]))))) throw Error();
|
|
1074
|
+
return nn(t2, r2), i2;
|
|
1075
|
+
}
|
|
1076
|
+
function Zr(t2) {
|
|
1077
|
+
return Jr(t2) >>> 0;
|
|
1078
|
+
}
|
|
1079
|
+
function Qr(t2) {
|
|
1080
|
+
return Yr(t2, Pt);
|
|
1081
|
+
}
|
|
1082
|
+
function tn(t2) {
|
|
1083
|
+
var e2 = t2.h, r2 = t2.g, n2 = e2[r2], i2 = e2[r2 + 1], s2 = e2[r2 + 2];
|
|
1084
|
+
return e2 = e2[r2 + 3], nn(t2, t2.g + 4), (n2 | i2 << 8 | s2 << 16 | e2 << 24) >>> 0;
|
|
1085
|
+
}
|
|
1086
|
+
function en(t2) {
|
|
1087
|
+
var e2 = tn(t2);
|
|
1088
|
+
t2 = 2 * (e2 >> 31) + 1;
|
|
1089
|
+
var r2 = e2 >>> 23 & 255;
|
|
1090
|
+
return e2 &= 8388607, 255 == r2 ? e2 ? NaN : t2 * (1 / 0) : 0 == r2 ? 1401298464324817e-60 * t2 * e2 : t2 * Math.pow(2, r2 - 150) * (e2 + 8388608);
|
|
1091
|
+
}
|
|
1092
|
+
function rn(t2) {
|
|
1093
|
+
return Jr(t2);
|
|
1094
|
+
}
|
|
1095
|
+
function nn(t2, e2) {
|
|
1096
|
+
if (t2.g = e2, e2 > t2.j) throw Error();
|
|
1097
|
+
}
|
|
1098
|
+
function sn(t2, e2) {
|
|
1099
|
+
if (e2 < 0) throw Error();
|
|
1100
|
+
var r2 = t2.g;
|
|
1101
|
+
if ((e2 = r2 + e2) > t2.j) throw Error();
|
|
1102
|
+
return t2.g = e2, r2;
|
|
1103
|
+
}
|
|
1104
|
+
function on(t2, e2) {
|
|
1105
|
+
if (0 == e2) return I();
|
|
1106
|
+
var r2 = sn(t2, e2);
|
|
1107
|
+
return t2.fa && t2.o ? r2 = t2.h.subarray(r2, r2 + e2) : (t2 = t2.h, r2 = r2 === (e2 = r2 + e2) ? new Uint8Array(0) : Rt ? t2.slice(r2, e2) : new Uint8Array(t2.subarray(r2, e2))), 0 == r2.length ? I() : new N(r2, R);
|
|
1108
|
+
}
|
|
1109
|
+
var an = class {
|
|
1110
|
+
constructor(t2, e2, r2, n2) {
|
|
1111
|
+
this.h = null, this.o = false, this.g = this.j = this.m = 0, this.init(t2, e2, r2, n2);
|
|
1112
|
+
}
|
|
1113
|
+
init(t2, e2, r2, { fa: n2 = false, ma: i2 = false } = {}) {
|
|
1114
|
+
this.fa = n2, this.ma = i2, t2 && (t2 = zr(t2, this.ma), this.h = t2.buffer, this.o = t2.g, this.m = e2 || 0, this.j = void 0 !== r2 ? this.m + r2 : this.h.length, this.g = this.m);
|
|
1115
|
+
}
|
|
1116
|
+
clear() {
|
|
1117
|
+
this.h = null, this.o = false, this.g = this.j = this.m = 0, this.fa = false;
|
|
1118
|
+
}
|
|
1119
|
+
}, hn = [], un = 0;
|
|
1120
|
+
function cn(t2, e2, r2, n2) {
|
|
1121
|
+
if (En.length) {
|
|
1122
|
+
let i2 = En.pop();
|
|
1123
|
+
return i2.v(n2), i2.g.init(t2, e2, r2, n2), i2;
|
|
1124
|
+
}
|
|
1125
|
+
return new yn(t2, e2, r2, n2);
|
|
1126
|
+
}
|
|
1127
|
+
function ln(t2) {
|
|
1128
|
+
t2.g.clear(), t2.j = -1, t2.h = -1, En.length < 100 && En.push(t2);
|
|
1129
|
+
}
|
|
1130
|
+
function dn(t2) {
|
|
1131
|
+
var e2 = t2.g;
|
|
1132
|
+
if (e2.g == e2.j) return false;
|
|
1133
|
+
t2.m = t2.g.g;
|
|
1134
|
+
var r2 = Zr(t2.g);
|
|
1135
|
+
if (e2 = r2 >>> 3, !((r2 &= 7) >= 0 && r2 <= 5)) throw Error();
|
|
1136
|
+
if (e2 < 1) throw Error();
|
|
1137
|
+
return t2.j = e2, t2.h = r2, true;
|
|
1138
|
+
}
|
|
1139
|
+
function fn(t2) {
|
|
1140
|
+
try {
|
|
1141
|
+
switch (t2.h) {
|
|
1142
|
+
case 0:
|
|
1143
|
+
0 != t2.h ? fn(t2) : qr(t2.g);
|
|
1144
|
+
break;
|
|
1145
|
+
case 1:
|
|
1146
|
+
var e2 = t2.g;
|
|
1147
|
+
nn(e2, e2.g + 8);
|
|
1148
|
+
break;
|
|
1149
|
+
case 2:
|
|
1150
|
+
if (2 != t2.h) fn(t2);
|
|
1151
|
+
else {
|
|
1152
|
+
var r2 = Zr(t2.g), n2 = t2.g;
|
|
1153
|
+
nn(n2, n2.g + r2);
|
|
1154
|
+
}
|
|
1155
|
+
break;
|
|
1156
|
+
case 5:
|
|
1157
|
+
var i2 = t2.g;
|
|
1158
|
+
nn(i2, i2.g + 4);
|
|
1159
|
+
break;
|
|
1160
|
+
case 3:
|
|
1161
|
+
pn();
|
|
1162
|
+
let s2 = t2.j;
|
|
1163
|
+
try {
|
|
1164
|
+
for (; ; ) {
|
|
1165
|
+
if (!dn(t2)) throw Error();
|
|
1166
|
+
if (4 == t2.h) {
|
|
1167
|
+
if (t2.j != s2) throw Error();
|
|
1168
|
+
break;
|
|
1169
|
+
}
|
|
1170
|
+
fn(t2);
|
|
1171
|
+
}
|
|
1172
|
+
} catch (t3) {
|
|
1173
|
+
if (t3 instanceof RangeError) throw new SyntaxError();
|
|
1174
|
+
throw t3;
|
|
1175
|
+
} finally {
|
|
1176
|
+
un > 0 && un--;
|
|
1177
|
+
}
|
|
1178
|
+
break;
|
|
1179
|
+
default:
|
|
1180
|
+
throw Error();
|
|
1181
|
+
}
|
|
1182
|
+
} catch (t3) {
|
|
1183
|
+
if (t3 instanceof RangeError) throw new SyntaxError();
|
|
1184
|
+
throw t3;
|
|
1185
|
+
}
|
|
1186
|
+
}
|
|
1187
|
+
function pn() {
|
|
1188
|
+
if (un >= 100) throw new SyntaxError();
|
|
1189
|
+
un++;
|
|
1190
|
+
}
|
|
1191
|
+
function gn(t2, e2, r2) {
|
|
1192
|
+
var n2 = t2.g.j, i2 = Zr(t2.g), s2 = (i2 = t2.g.g + i2) - n2;
|
|
1193
|
+
if (s2 <= 0 && (t2.g.j = i2, r2(e2, t2, void 0, void 0, void 0), s2 = i2 - t2.g.g), s2) throw Error();
|
|
1194
|
+
return t2.g.g = i2, t2.g.j = n2, e2;
|
|
1195
|
+
}
|
|
1196
|
+
function mn(t2) {
|
|
1197
|
+
var e2 = Zr(t2.g), r2 = sn(t2 = t2.g, e2);
|
|
1198
|
+
if (t2 = t2.h, h) {
|
|
1199
|
+
var o2, u2 = t2;
|
|
1200
|
+
(o2 = s) || (o2 = s = new TextDecoder("utf-8", { fatal: true })), e2 = r2 + e2, u2 = 0 === r2 && e2 === u2.length ? u2 : u2.subarray(r2, e2);
|
|
1201
|
+
try {
|
|
1202
|
+
var c2 = o2.decode(u2);
|
|
1203
|
+
} catch (t3) {
|
|
1204
|
+
if (void 0 === a) {
|
|
1205
|
+
try {
|
|
1206
|
+
o2.decode(new Uint8Array([128]));
|
|
1207
|
+
} catch (t4) {
|
|
1208
|
+
}
|
|
1209
|
+
try {
|
|
1210
|
+
o2.decode(new Uint8Array([97])), a = true;
|
|
1211
|
+
} catch (t4) {
|
|
1212
|
+
a = false;
|
|
1213
|
+
}
|
|
1214
|
+
}
|
|
1215
|
+
throw !a && (s = void 0), t3;
|
|
1216
|
+
}
|
|
1217
|
+
} else {
|
|
1218
|
+
e2 = (c2 = r2) + e2, r2 = [];
|
|
1219
|
+
let s2, a2 = null;
|
|
1220
|
+
for (; c2 < e2; ) {
|
|
1221
|
+
var l2 = t2[c2++];
|
|
1222
|
+
l2 < 128 ? r2.push(l2) : l2 < 224 ? c2 >= e2 ? n() : (s2 = t2[c2++], l2 < 194 || 128 != (192 & s2) ? (c2--, n()) : r2.push((31 & l2) << 6 | 63 & s2)) : l2 < 240 ? c2 >= e2 - 1 ? n() : (s2 = t2[c2++], 128 != (192 & s2) || 224 === l2 && s2 < 160 || 237 === l2 && s2 >= 160 || 128 != (192 & (o2 = t2[c2++])) ? (c2--, n()) : r2.push((15 & l2) << 12 | (63 & s2) << 6 | 63 & o2)) : l2 <= 244 ? c2 >= e2 - 2 ? n() : (s2 = t2[c2++], 128 != (192 & s2) || s2 - 144 + (l2 << 28) >> 30 || 128 != (192 & (o2 = t2[c2++])) || 128 != (192 & (u2 = t2[c2++])) ? (c2--, n()) : (l2 = (7 & l2) << 18 | (63 & s2) << 12 | (63 & o2) << 6 | 63 & u2, l2 -= 65536, r2.push(55296 + (l2 >> 10 & 1023), 56320 + (1023 & l2)))) : n(), r2.length >= 8192 && (a2 = i(a2, r2), r2.length = 0);
|
|
1223
|
+
}
|
|
1224
|
+
c2 = i(a2, r2);
|
|
1225
|
+
}
|
|
1226
|
+
return c2;
|
|
1227
|
+
}
|
|
1228
|
+
function vn(t2) {
|
|
1229
|
+
var e2 = Zr(t2.g);
|
|
1230
|
+
return on(t2.g, e2);
|
|
1231
|
+
}
|
|
1232
|
+
function _n(t2, e2, r2) {
|
|
1233
|
+
var n2 = Zr(t2.g);
|
|
1234
|
+
for (n2 = t2.g.g + n2; t2.g.g < n2; ) r2.push(e2(t2.g));
|
|
1235
|
+
}
|
|
1236
|
+
var yn = class {
|
|
1237
|
+
constructor(t2, e2, r2, n2) {
|
|
1238
|
+
if (hn.length) {
|
|
1239
|
+
let i2 = hn.pop();
|
|
1240
|
+
i2.init(t2, e2, r2, n2), t2 = i2;
|
|
1241
|
+
} else t2 = new an(t2, e2, r2, n2);
|
|
1242
|
+
this.g = t2, this.m = this.g.g, this.h = this.j = -1, this.v(n2);
|
|
1243
|
+
}
|
|
1244
|
+
v({ ra: t2 = false } = {}) {
|
|
1245
|
+
this.ra = t2;
|
|
1246
|
+
}
|
|
1247
|
+
}, En = [];
|
|
1248
|
+
function An(t2) {
|
|
1249
|
+
return new Tn(4294967295 & t2, Math.floor(t2 / 4294967296));
|
|
1250
|
+
}
|
|
1251
|
+
function wn(t2) {
|
|
1252
|
+
return t2 ? /^\d+$/.test(t2) ? (Gt(t2), new Tn(It, Ft)) : null : bn ||= new Tn(0, 0);
|
|
1253
|
+
}
|
|
1254
|
+
var bn, Tn = class {
|
|
1255
|
+
constructor(t2, e2) {
|
|
1256
|
+
this.h = t2 >>> 0, this.g = e2 >>> 0;
|
|
1257
|
+
}
|
|
1258
|
+
};
|
|
1259
|
+
function kn(t2) {
|
|
1260
|
+
return new On(4294967295 & t2, Math.floor(t2 / 4294967296));
|
|
1261
|
+
}
|
|
1262
|
+
function Sn(t2) {
|
|
1263
|
+
return t2 ? /^-?\d+$/.test(t2) ? (Gt(t2), new On(It, Ft)) : null : Ln ||= new On(0, 0);
|
|
1264
|
+
}
|
|
1265
|
+
var Ln, xn, Rn, In, Fn, Cn, Nn, Mn, On = class {
|
|
1266
|
+
constructor(t2, e2) {
|
|
1267
|
+
this.h = t2 >>> 0, this.g = e2 >>> 0;
|
|
1268
|
+
}
|
|
1269
|
+
};
|
|
1270
|
+
function Dn(t2, e2, r2) {
|
|
1271
|
+
return "undefined" != typeof BigInt64Array ? (Nn || (Nn = new BigInt64Array(1), Mn = new Uint32Array(Nn.buffer), Nn[0] = BigInt(1), Cn = 1 === Mn[0]), Nn[0] = t2, new e2(Mn[t2 = Cn ? 0 : 1], Mn[1 - t2])) : (Fn || (xn = BigInt(Number.MIN_SAFE_INTEGER), Rn = BigInt(Number.MAX_SAFE_INTEGER), In = BigInt(4294967295), Fn = BigInt(32)), t2 >= xn && t2 <= Rn ? r2(Number(t2)) : (t2 = BigInt.asUintN(64, t2), new e2(Number(t2 & In), Number(t2 >> Fn))));
|
|
1272
|
+
}
|
|
1273
|
+
function Pn(t2, e2, r2) {
|
|
1274
|
+
for (; r2 > 0 || e2 > 127; ) t2.g.push(127 & e2 | 128), e2 = (e2 >>> 7 | r2 << 25) >>> 0, r2 >>>= 7;
|
|
1275
|
+
t2.g.push(e2);
|
|
1276
|
+
}
|
|
1277
|
+
function $n(t2, e2) {
|
|
1278
|
+
for (; e2 > 127; ) t2.g.push(127 & e2 | 128), e2 >>>= 7;
|
|
1279
|
+
t2.g.push(e2);
|
|
1280
|
+
}
|
|
1281
|
+
function Un(t2, e2) {
|
|
1282
|
+
if (e2 >= 0) $n(t2, e2);
|
|
1283
|
+
else {
|
|
1284
|
+
for (let r2 = 0; r2 < 9; r2++) t2.g.push(127 & e2 | 128), e2 >>= 7;
|
|
1285
|
+
t2.g.push(1);
|
|
1286
|
+
}
|
|
1287
|
+
}
|
|
1288
|
+
function Bn(t2, e2) {
|
|
1289
|
+
Gt(e2), function(t3) {
|
|
1290
|
+
var e3 = Ft >> 31;
|
|
1291
|
+
t3(It << 1 ^ e3, (Ft << 1 | It >>> 31) ^ e3);
|
|
1292
|
+
}((e3, r2) => {
|
|
1293
|
+
Pn(t2, e3 >>> 0, r2 >>> 0);
|
|
1294
|
+
});
|
|
1295
|
+
}
|
|
1296
|
+
function Gn(t2, e2) {
|
|
1297
|
+
t2.g.push(e2 >>> 0 & 255), t2.g.push(e2 >>> 8 & 255), t2.g.push(e2 >>> 16 & 255), t2.g.push(e2 >>> 24 & 255);
|
|
1298
|
+
}
|
|
1299
|
+
var jn = class {
|
|
1300
|
+
constructor() {
|
|
1301
|
+
this.g = [];
|
|
1302
|
+
}
|
|
1303
|
+
length() {
|
|
1304
|
+
return this.g.length;
|
|
1305
|
+
}
|
|
1306
|
+
end() {
|
|
1307
|
+
var t2 = this.g;
|
|
1308
|
+
return this.g = [], t2;
|
|
1309
|
+
}
|
|
1310
|
+
};
|
|
1311
|
+
function Vn(t2, e2) {
|
|
1312
|
+
0 !== e2.length && (t2.j.push(e2), t2.h += e2.length);
|
|
1313
|
+
}
|
|
1314
|
+
function Hn(t2, e2, r2) {
|
|
1315
|
+
$n(t2.g, 8 * e2 + r2);
|
|
1316
|
+
}
|
|
1317
|
+
function Kn(t2, e2) {
|
|
1318
|
+
return Hn(t2, e2, 2), e2 = t2.g.end(), Vn(t2, e2), e2.push(t2.h), e2;
|
|
1319
|
+
}
|
|
1320
|
+
function Xn(t2, e2) {
|
|
1321
|
+
var r2 = e2.pop();
|
|
1322
|
+
for (r2 = t2.h + t2.g.length() - r2; r2 > 127; ) e2.push(127 & r2 | 128), r2 >>>= 7, t2.h++;
|
|
1323
|
+
e2.push(r2), t2.h++;
|
|
1324
|
+
}
|
|
1325
|
+
function Wn(t2, e2, r2) {
|
|
1326
|
+
if (null != r2) switch (Hn(t2, e2, 0), typeof r2) {
|
|
1327
|
+
case "number":
|
|
1328
|
+
t2 = t2.g, Nt(r2), Pn(t2, It, Ft);
|
|
1329
|
+
break;
|
|
1330
|
+
case "bigint":
|
|
1331
|
+
r2 = Dn(r2, On, kn), Pn(t2.g, r2.h, r2.g);
|
|
1332
|
+
break;
|
|
1333
|
+
default:
|
|
1334
|
+
r2 = Sn(r2), Pn(t2.g, r2.h, r2.g);
|
|
1335
|
+
}
|
|
1336
|
+
}
|
|
1337
|
+
function zn(t2, e2, r2) {
|
|
1338
|
+
Hn(t2, e2, 2), $n(t2.g, r2.length), Vn(t2, t2.g.end()), Vn(t2, r2);
|
|
1339
|
+
}
|
|
1340
|
+
function Yn(t2, e2, r2, n2) {
|
|
1341
|
+
null != r2 && (e2 = Kn(t2, e2), n2(r2, t2), Xn(t2, e2));
|
|
1342
|
+
}
|
|
1343
|
+
var qn = class {
|
|
1344
|
+
constructor() {
|
|
1345
|
+
this.j = [], this.h = 0, this.g = new jn();
|
|
1346
|
+
}
|
|
1347
|
+
};
|
|
1348
|
+
function Jn(t2) {
|
|
1349
|
+
if ("string" == typeof t2) Sn(t2);
|
|
1350
|
+
}
|
|
1351
|
+
function Zn() {
|
|
1352
|
+
var t2 = class {
|
|
1353
|
+
constructor() {
|
|
1354
|
+
throw Error();
|
|
1355
|
+
}
|
|
1356
|
+
};
|
|
1357
|
+
return Object.setPrototypeOf(t2, t2.prototype), t2;
|
|
1358
|
+
}
|
|
1359
|
+
var Qn = Zn(), ti = Zn(), ei = Zn(), ri = Zn(), ni = Zn(), ii = Zn(), si = Zn(), oi = Zn(), ai = Zn(), hi = Zn(), ui = Zn(), ci = Zn();
|
|
1360
|
+
function li(t2, e2, r2) {
|
|
1361
|
+
var n2 = t2.A;
|
|
1362
|
+
X && X in n2 && (n2 = n2[X]) && delete n2[e2.g], e2.h ? e2.o(t2, e2.h, e2.g, r2, e2.j) : e2.o(t2, e2.g, r2, e2.j);
|
|
1363
|
+
}
|
|
1364
|
+
var di = class {
|
|
1365
|
+
constructor(t2, e2) {
|
|
1366
|
+
this.A = Xe(t2, e2, void 0, 2048);
|
|
1367
|
+
}
|
|
1368
|
+
toJSON() {
|
|
1369
|
+
return He(this);
|
|
1370
|
+
}
|
|
1371
|
+
o() {
|
|
1372
|
+
var t2 = Ca, e2 = this.A, r2 = t2.g, n2 = X;
|
|
1373
|
+
if (B && n2 && null != e2[n2]?.[r2] && $(W, 3), e2 = t2.g, Z && X && void 0 === Z && (n2 = (r2 = this.A)[X]) && (n2 = n2.ka)) try {
|
|
1374
|
+
n2(r2, e2, Ue);
|
|
1375
|
+
} catch (t3) {
|
|
1376
|
+
l(t3);
|
|
1377
|
+
}
|
|
1378
|
+
return t2.h ? t2.m(this, t2.h, t2.g, t2.j) : t2.m(this, t2.g, t2.defaultValue, t2.j);
|
|
1379
|
+
}
|
|
1380
|
+
clone() {
|
|
1381
|
+
var t2 = this.A, e2 = 0 | t2[et];
|
|
1382
|
+
return rr(this, t2, e2) ? Ye(this, t2, true) : new this.constructor(Je(t2, e2, false));
|
|
1383
|
+
}
|
|
1384
|
+
};
|
|
1385
|
+
di.prototype[J] = at, di.prototype.toString = function() {
|
|
1386
|
+
return this.A.toString();
|
|
1387
|
+
};
|
|
1388
|
+
var fi = class {
|
|
1389
|
+
constructor(t2, e2, r2) {
|
|
1390
|
+
this.g = t2, this.h = e2, t2 = Qn, this.j = !!t2 && r2 === t2 || false;
|
|
1391
|
+
}
|
|
1392
|
+
};
|
|
1393
|
+
function pi(t2, e2) {
|
|
1394
|
+
return new fi(t2, e2, Qn);
|
|
1395
|
+
}
|
|
1396
|
+
function gi(t2, e2, r2, n2, i2) {
|
|
1397
|
+
Yn(t2, r2, Li(e2, n2), i2);
|
|
1398
|
+
}
|
|
1399
|
+
var mi, vi, _i = pi(function(t2, e2, r2, n2, i2) {
|
|
1400
|
+
return 2 === t2.h && (gn(t2, Tr(e2, n2, r2), i2), true);
|
|
1401
|
+
}, gi), yi = pi(function(t2, e2, r2, n2, i2) {
|
|
1402
|
+
return 2 === t2.h && (gn(t2, Tr(e2, n2, r2), i2), true);
|
|
1403
|
+
}, gi), Ei = Symbol(), Ai = Symbol(), wi = Symbol(), bi = Symbol(), Ti = Symbol();
|
|
1404
|
+
function ki(t2, e2, r2, n2) {
|
|
1405
|
+
var i2 = n2[t2];
|
|
1406
|
+
if (i2) return i2;
|
|
1407
|
+
(i2 = {}).Ea = n2, i2.ca = function(t3) {
|
|
1408
|
+
switch (typeof t3) {
|
|
1409
|
+
case "boolean":
|
|
1410
|
+
return De ||= [0, void 0, true];
|
|
1411
|
+
case "number":
|
|
1412
|
+
return t3 > 0 ? void 0 : 0 === t3 ? Pe ||= [0, void 0] : [-t3, void 0];
|
|
1413
|
+
case "string":
|
|
1414
|
+
return [0, t3];
|
|
1415
|
+
case "object":
|
|
1416
|
+
return t3;
|
|
1417
|
+
}
|
|
1418
|
+
}(n2[0]);
|
|
1419
|
+
var s2 = n2[1], o2 = 1;
|
|
1420
|
+
s2 && s2.constructor === Object && (i2.ia = s2, "function" == typeof (s2 = n2[++o2]) && (i2.wa = true, mi ??= s2, vi ??= n2[o2 + 1], s2 = n2[o2 += 2]));
|
|
1421
|
+
for (var a2 = {}; s2 && Array.isArray(s2) && s2.length && "number" == typeof s2[0] && s2[0] > 0; ) {
|
|
1422
|
+
for (var h2 = 0; h2 < s2.length; h2++) a2[s2[h2]] = s2;
|
|
1423
|
+
s2 = n2[++o2];
|
|
1424
|
+
}
|
|
1425
|
+
for (h2 = 1; void 0 !== s2; ) {
|
|
1426
|
+
let t3;
|
|
1427
|
+
"number" == typeof s2 && (h2 += s2, s2 = n2[++o2]);
|
|
1428
|
+
var u2 = void 0;
|
|
1429
|
+
if (s2 instanceof fi ? t3 = s2 : (t3 = _i, o2--), t3?.j) {
|
|
1430
|
+
s2 = n2[++o2], u2 = n2;
|
|
1431
|
+
var c2 = o2;
|
|
1432
|
+
"function" == typeof s2 && (s2 = s2(), u2[c2] = s2), u2 = s2;
|
|
1433
|
+
}
|
|
1434
|
+
for (c2 = h2 + 1, "number" == typeof (s2 = n2[++o2]) && s2 < 0 && (c2 -= s2, s2 = n2[++o2]); h2 < c2; h2++) {
|
|
1435
|
+
let n3 = a2[h2];
|
|
1436
|
+
u2 ? r2(i2, h2, t3, u2, n3) : e2(i2, h2, t3, n3);
|
|
1437
|
+
}
|
|
1438
|
+
}
|
|
1439
|
+
return n2[t2] = i2;
|
|
1440
|
+
}
|
|
1441
|
+
function Si(t2) {
|
|
1442
|
+
return Array.isArray(t2) ? t2[0] instanceof fi ? t2 : [yi, t2] : [t2, void 0];
|
|
1443
|
+
}
|
|
1444
|
+
function Li(t2, e2) {
|
|
1445
|
+
return t2 instanceof di ? t2.A : Array.isArray(t2) ? Ke(t2, e2) : void 0;
|
|
1446
|
+
}
|
|
1447
|
+
function xi(t2, e2, r2, n2) {
|
|
1448
|
+
var i2 = r2.g;
|
|
1449
|
+
t2[e2] = n2 ? (t3, e3, r3) => i2(t3, e3, r3, n2) : i2;
|
|
1450
|
+
}
|
|
1451
|
+
function Ri(t2, e2, r2, n2, i2) {
|
|
1452
|
+
var s2, o2, a2 = r2.g;
|
|
1453
|
+
t2[e2] = (t3, e3, r3) => a2(t3, e3, r3, o2 ||= ki(Ai, xi, Ri, n2).ca, s2 ||= Ii(n2), i2);
|
|
1454
|
+
}
|
|
1455
|
+
function Ii(t2) {
|
|
1456
|
+
var e2 = t2[wi];
|
|
1457
|
+
if (null != e2) return e2;
|
|
1458
|
+
var r2 = ki(Ai, xi, Ri, t2);
|
|
1459
|
+
return e2 = r2.wa ? (t3, e3) => mi(t3, e3, r2) : (t3, e3) => {
|
|
1460
|
+
t: {
|
|
1461
|
+
pn();
|
|
1462
|
+
try {
|
|
1463
|
+
for (; dn(e3) && 4 != e3.h; ) {
|
|
1464
|
+
let h3 = e3.j, u3 = r2[h3];
|
|
1465
|
+
if (null == u3) {
|
|
1466
|
+
let t4 = r2.ia;
|
|
1467
|
+
if (t4) {
|
|
1468
|
+
let e4 = t4[h3];
|
|
1469
|
+
if (e4) {
|
|
1470
|
+
let t5 = Ci(e4);
|
|
1471
|
+
null != t5 && (u3 = r2[h3] = t5);
|
|
1472
|
+
}
|
|
1473
|
+
}
|
|
1474
|
+
}
|
|
1475
|
+
if (null == u3 || !u3(e3, t3, h3)) {
|
|
1476
|
+
var n2 = e3;
|
|
1477
|
+
let r3 = n2.m;
|
|
1478
|
+
if (fn(n2), n2.ra) var i2 = void 0;
|
|
1479
|
+
else {
|
|
1480
|
+
let t4 = n2.g.g - r3;
|
|
1481
|
+
n2.g.g = r3, i2 = on(n2.g, t4);
|
|
1482
|
+
}
|
|
1483
|
+
n2 = void 0;
|
|
1484
|
+
var s2 = t3, o2 = h3, a2 = i2;
|
|
1485
|
+
a2 && ((n2 = s2[X] ?? (s2[X] = new $e()))[o2] ?? (n2[o2] = [])).push(a2);
|
|
1486
|
+
}
|
|
1487
|
+
}
|
|
1488
|
+
let u2 = Ne(t3);
|
|
1489
|
+
u2 && (u2.ka = r2.Ea[Ti]);
|
|
1490
|
+
var h2 = true;
|
|
1491
|
+
break t;
|
|
1492
|
+
} catch (t4) {
|
|
1493
|
+
if (t4 instanceof RangeError) throw new SyntaxError();
|
|
1494
|
+
throw t4;
|
|
1495
|
+
} finally {
|
|
1496
|
+
un > 0 && un--;
|
|
1497
|
+
}
|
|
1498
|
+
h2 = void 0;
|
|
1499
|
+
}
|
|
1500
|
+
return h2;
|
|
1501
|
+
}, t2[wi] = e2, t2[Ti] = Fi.bind(t2), e2;
|
|
1502
|
+
}
|
|
1503
|
+
function Fi(t2, e2, r2, n2) {
|
|
1504
|
+
var i2 = this[Ai], s2 = this[wi], o2 = Ke(void 0, i2.ca), a2 = Ne(t2);
|
|
1505
|
+
if (a2) {
|
|
1506
|
+
var h2 = false, u2 = i2.ia;
|
|
1507
|
+
if (u2) {
|
|
1508
|
+
if (i2 = (e3, r3, i3) => {
|
|
1509
|
+
if (0 !== i3.length) if (u2[r3]) for (let t3 of i3) {
|
|
1510
|
+
e3 = cn(t3);
|
|
1511
|
+
try {
|
|
1512
|
+
h2 = true, s2(o2, e3);
|
|
1513
|
+
} finally {
|
|
1514
|
+
ln(e3);
|
|
1515
|
+
}
|
|
1516
|
+
}
|
|
1517
|
+
else n2?.(t2, r3, i3);
|
|
1518
|
+
}, null == e2) Me(a2, i2);
|
|
1519
|
+
else if (null != a2) {
|
|
1520
|
+
let t3 = a2[e2];
|
|
1521
|
+
t3 && i2(a2, e2, t3);
|
|
1522
|
+
}
|
|
1523
|
+
if (h2) {
|
|
1524
|
+
let n3 = 0 | t2[et];
|
|
1525
|
+
if (2 & n3 && 2048 & n3 && !r2?.cb) throw Error();
|
|
1526
|
+
let i3 = gt(n3), s3 = (e3, s4) => {
|
|
1527
|
+
if (null != or(t2, e3, i3)) {
|
|
1528
|
+
if (1 === r2?.lb) return;
|
|
1529
|
+
throw Error();
|
|
1530
|
+
}
|
|
1531
|
+
null != s4 && (n3 = hr(t2, n3, e3, s4, i3)), delete a2[e3];
|
|
1532
|
+
};
|
|
1533
|
+
null == e2 ? ft(o2, 0 | o2[et], (t3, e3) => {
|
|
1534
|
+
s3(t3, e3);
|
|
1535
|
+
}) : s3(e2, or(o2, e2, i3));
|
|
1536
|
+
}
|
|
1537
|
+
}
|
|
1538
|
+
}
|
|
1539
|
+
}
|
|
1540
|
+
function Ci(t2) {
|
|
1541
|
+
var e2 = (t2 = Si(t2))[0].g;
|
|
1542
|
+
if (t2 = t2[1]) {
|
|
1543
|
+
let r2 = Ii(t2), n2 = ki(Ai, xi, Ri, t2).ca;
|
|
1544
|
+
return (t3, i2, s2) => e2(t3, i2, s2, n2, r2);
|
|
1545
|
+
}
|
|
1546
|
+
return e2;
|
|
1547
|
+
}
|
|
1548
|
+
function Ni(t2, e2, r2) {
|
|
1549
|
+
t2[e2] = r2.h;
|
|
1550
|
+
}
|
|
1551
|
+
function Mi(t2, e2, r2, n2) {
|
|
1552
|
+
var i2, s2, o2 = r2.h;
|
|
1553
|
+
t2[e2] = (t3, e3, r3) => o2(t3, e3, r3, s2 ||= ki(Ei, Ni, Mi, n2).ca, i2 ||= Oi(n2));
|
|
1554
|
+
}
|
|
1555
|
+
function Oi(t2) {
|
|
1556
|
+
var e2 = t2[bi];
|
|
1557
|
+
if (!e2) {
|
|
1558
|
+
let r2 = ki(Ei, Ni, Mi, t2);
|
|
1559
|
+
e2 = (t3, e3) => Di(t3, e3, r2), t2[bi] = e2;
|
|
1560
|
+
}
|
|
1561
|
+
return e2;
|
|
1562
|
+
}
|
|
1563
|
+
function Di(t2, e2, r2) {
|
|
1564
|
+
ft(t2, 0 | t2[et], (t3, n2) => {
|
|
1565
|
+
if (null != n2) {
|
|
1566
|
+
var i2 = function(t4, e3) {
|
|
1567
|
+
var r3 = t4[e3];
|
|
1568
|
+
if (r3) return r3;
|
|
1569
|
+
if ((r3 = t4.ia) && (r3 = r3[e3])) {
|
|
1570
|
+
var n3 = (r3 = Si(r3))[0].h;
|
|
1571
|
+
if (r3 = r3[1]) {
|
|
1572
|
+
let e4 = Oi(r3), i3 = ki(Ei, Ni, Mi, r3).ca;
|
|
1573
|
+
r3 = t4.wa ? vi(i3, e4) : (t5, r4, s2) => n3(t5, r4, s2, i3, e4);
|
|
1574
|
+
} else r3 = n3;
|
|
1575
|
+
return t4[e3] = r3;
|
|
1576
|
+
}
|
|
1577
|
+
}(r2, t3);
|
|
1578
|
+
i2 ? i2(e2, n2, t3) : t3 < 500 || $(Y, 3);
|
|
1579
|
+
}
|
|
1580
|
+
}), (t2 = Ne(t2)) && Me(t2, (t3, r3, n2) => {
|
|
1581
|
+
for (Vn(e2, e2.g.end()), t3 = 0; t3 < n2.length; t3++) Vn(e2, F(n2[t3]) || new Uint8Array(0));
|
|
1582
|
+
});
|
|
1583
|
+
}
|
|
1584
|
+
var Pi = At(0);
|
|
1585
|
+
function $i(t2, e2, r2) {
|
|
1586
|
+
if (Array.isArray(e2)) {
|
|
1587
|
+
var n2 = 0 | e2[et];
|
|
1588
|
+
if (4 & n2) return e2;
|
|
1589
|
+
for (var i2 = 0, s2 = 0; i2 < e2.length; i2++) {
|
|
1590
|
+
let r3 = t2(e2[i2]);
|
|
1591
|
+
null != r3 && (e2[s2++] = r3);
|
|
1592
|
+
}
|
|
1593
|
+
return s2 < i2 && (e2.length = s2), t2 = 1 | n2, r2 && (t2 = -1537 & t2 | 4), t2 !== n2 && it(e2, t2), r2 && 2 & t2 && Object.freeze(e2), e2;
|
|
1594
|
+
}
|
|
1595
|
+
}
|
|
1596
|
+
var Ui = (t2, e2) => {
|
|
1597
|
+
var r2 = new qn();
|
|
1598
|
+
Di(t2.A, r2, ki(Ei, Ni, Mi, e2)), Vn(r2, r2.g.end()), t2 = new Uint8Array(r2.h);
|
|
1599
|
+
var n2 = (e2 = r2.j).length, i2 = 0;
|
|
1600
|
+
for (let r3 = 0; r3 < n2; r3++) {
|
|
1601
|
+
let n3 = e2[r3];
|
|
1602
|
+
t2.set(n3, i2), i2 += n3.length;
|
|
1603
|
+
}
|
|
1604
|
+
return r2.j = [t2], t2;
|
|
1605
|
+
};
|
|
1606
|
+
function Bi(t2, e2, r2) {
|
|
1607
|
+
return new fi(t2, e2, r2);
|
|
1608
|
+
}
|
|
1609
|
+
function Gi(t2, e2, r2) {
|
|
1610
|
+
return new fi(t2, e2, r2);
|
|
1611
|
+
}
|
|
1612
|
+
function ji(t2, e2, r2) {
|
|
1613
|
+
hr(t2, 0 | t2[et], e2, r2, gt(0 | t2[et]));
|
|
1614
|
+
}
|
|
1615
|
+
var Vi = pi(function(t2, e2, r2, n2, i2) {
|
|
1616
|
+
if (2 !== t2.h) return false;
|
|
1617
|
+
if (t2 = Vt(t2 = gn(t2, Ke([void 0, void 0], n2), i2)), i2 = gt(n2 = 0 | e2[et]), 2 & n2) throw Error();
|
|
1618
|
+
var s2 = or(e2, r2, i2);
|
|
1619
|
+
if (s2 instanceof Re) 2 & s2.M ? ((s2 = s2.ea()).push(t2), hr(e2, n2, r2, s2, i2)) : s2.gb(t2);
|
|
1620
|
+
else if (Array.isArray(s2)) {
|
|
1621
|
+
var o2 = 0 | s2[et];
|
|
1622
|
+
8192 & o2 || it(s2, o2 |= 8192), 2 & o2 && hr(e2, n2, r2, s2 = vr(s2), i2), s2.push(t2);
|
|
1623
|
+
} else hr(e2, n2, r2, ot([t2]), i2);
|
|
1624
|
+
return true;
|
|
1625
|
+
}, function(t2, e2, r2, n2, i2) {
|
|
1626
|
+
if (e2 instanceof Re) e2.forEach((e3, s2) => {
|
|
1627
|
+
Yn(t2, r2, Ke([s2, e3], n2), i2);
|
|
1628
|
+
});
|
|
1629
|
+
else if (Array.isArray(e2)) {
|
|
1630
|
+
for (let s2 = 0; s2 < e2.length; s2++) {
|
|
1631
|
+
let o2 = e2[s2];
|
|
1632
|
+
Array.isArray(o2) && Yn(t2, r2, Ke(o2, n2), i2);
|
|
1633
|
+
}
|
|
1634
|
+
ot(e2);
|
|
1635
|
+
}
|
|
1636
|
+
});
|
|
1637
|
+
function Hi(t2, e2, r2) {
|
|
1638
|
+
null != (e2 = Jt(e2)) && (Hn(t2, r2, 5), t2 = t2.g, Mt(e2), Gn(t2, It));
|
|
1639
|
+
}
|
|
1640
|
+
function Ki(t2, e2, r2) {
|
|
1641
|
+
null != (e2 = pe(e2)) && (Jn(e2), Wn(t2, r2, e2));
|
|
1642
|
+
}
|
|
1643
|
+
function Xi(t2, e2, r2) {
|
|
1644
|
+
null != (e2 = re(e2)) && null != e2 && (Hn(t2, r2, 0), Un(t2.g, e2));
|
|
1645
|
+
}
|
|
1646
|
+
function Wi(t2, e2, r2) {
|
|
1647
|
+
null != (e2 = null == e2 || "boolean" == typeof e2 ? e2 : "number" == typeof e2 ? !!e2 : void 0) && (Hn(t2, r2, 0), t2.g.g.push(e2 ? 1 : 0));
|
|
1648
|
+
}
|
|
1649
|
+
function zi(t2, e2, r2) {
|
|
1650
|
+
null != (e2 = _e(e2)) && zn(t2, r2, c(e2));
|
|
1651
|
+
}
|
|
1652
|
+
function Yi(t2, e2, r2, n2, i2) {
|
|
1653
|
+
Yn(t2, r2, Li(e2, n2), i2);
|
|
1654
|
+
}
|
|
1655
|
+
function qi(t2, e2, r2) {
|
|
1656
|
+
null != (e2 = ge(e2)) && zn(t2, r2, zr(e2, true).buffer);
|
|
1657
|
+
}
|
|
1658
|
+
function Ji(t2, e2, r2) {
|
|
1659
|
+
null != (e2 = ne(e2)) && null != e2 && (Hn(t2, r2, 0), $n(t2.g, e2));
|
|
1660
|
+
}
|
|
1661
|
+
function Zi(t2, e2, r2) {
|
|
1662
|
+
null != (e2 = re(e2)) && (e2 = parseInt(e2, 10), Hn(t2, r2, 0), Un(t2.g, e2));
|
|
1663
|
+
}
|
|
1664
|
+
function Qi(t2, e2, r2) {
|
|
1665
|
+
return (5 === t2.h || 2 === t2.h) && (e2 = yr(e2, 0 | e2[et], r2), 2 == t2.h ? _n(t2, en, e2) : e2.push(en(t2.g)), true);
|
|
1666
|
+
}
|
|
1667
|
+
function ts(t2, e2, r2) {
|
|
1668
|
+
return 0 === t2.h && (ji(e2, r2, Qr(t2.g)), true);
|
|
1669
|
+
}
|
|
1670
|
+
function es(t2, e2, r2) {
|
|
1671
|
+
return (0 === t2.h || 2 === t2.h) && (e2 = yr(e2, 0 | e2[et], r2), 2 == t2.h ? _n(t2, Jr, e2) : e2.push(Jr(t2.g)), true);
|
|
1672
|
+
}
|
|
1673
|
+
function rs(t2, e2, r2) {
|
|
1674
|
+
return 2 === t2.h && (ji(e2, r2, (t2 = vn(t2)) === I() ? void 0 : t2), true);
|
|
1675
|
+
}
|
|
1676
|
+
var ns = Bi(function(t2, e2, r2) {
|
|
1677
|
+
if (1 !== t2.h) return false;
|
|
1678
|
+
var n2 = t2.g;
|
|
1679
|
+
t2 = tn(n2);
|
|
1680
|
+
var i2 = tn(n2);
|
|
1681
|
+
n2 = 2 * (i2 >> 31) + 1;
|
|
1682
|
+
var s2 = i2 >>> 20 & 2047;
|
|
1683
|
+
return t2 = 4294967296 * (1048575 & i2) + t2, ji(e2, r2, 2047 == s2 ? t2 ? NaN : n2 * (1 / 0) : 0 == s2 ? 5e-324 * n2 * t2 : n2 * Math.pow(2, s2 - 1075) * (t2 + 4503599627370496)), true;
|
|
1684
|
+
}, function(t2, e2, r2) {
|
|
1685
|
+
null != (e2 = Jt(e2)) && (Hn(t2, r2, 1), t2 = t2.g, (r2 = xt ||= new DataView(new ArrayBuffer(8))).setFloat64(0, +e2, true), It = r2.getUint32(0, true), Ft = r2.getUint32(4, true), Gn(t2, It), Gn(t2, Ft));
|
|
1686
|
+
}, hi), is = Bi(function(t2, e2, r2) {
|
|
1687
|
+
return 5 === t2.h && (ji(e2, r2, en(t2.g)), true);
|
|
1688
|
+
}, Hi, ai), ss = Gi(Qi, function(t2, e2, r2) {
|
|
1689
|
+
if (null != (e2 = $i(Jt, e2, true))) for (let o2 = 0; o2 < e2.length; o2++) {
|
|
1690
|
+
var n2 = t2, i2 = r2, s2 = e2[o2];
|
|
1691
|
+
null != s2 && (Hn(n2, i2, 5), n2 = n2.g, Mt(s2), Gn(n2, It));
|
|
1692
|
+
}
|
|
1693
|
+
}, ai), os = Gi(Qi, function(t2, e2, r2) {
|
|
1694
|
+
if (null != (e2 = $i(Jt, e2, true)) && e2.length) {
|
|
1695
|
+
Hn(t2, r2, 2), $n(t2.g, 4 * e2.length);
|
|
1696
|
+
for (let n2 = 0; n2 < e2.length; n2++) r2 = t2.g, Mt(e2[n2]), Gn(r2, It);
|
|
1697
|
+
}
|
|
1698
|
+
}, ai), as = Bi(function(t2, e2, r2) {
|
|
1699
|
+
return 5 === t2.h && (ji(e2, r2, 0 === (t2 = en(t2.g)) ? void 0 : t2), true);
|
|
1700
|
+
}, Hi, ai), hs = Bi(function(t2, e2, r2) {
|
|
1701
|
+
return ts(t2, e2, r2);
|
|
1702
|
+
}, Ki, ii), us = Bi(function(t2, e2, r2) {
|
|
1703
|
+
return ts(t2, e2, r2);
|
|
1704
|
+
}, Ki, ii), cs = Gi(function(t2, e2, r2) {
|
|
1705
|
+
return 0 !== t2.h && 2 !== t2.h ? t2 = false : (e2 = yr(e2, 0 | e2[et], r2), 2 == t2.h ? _n(t2, Qr, e2) : e2.push(Qr(t2.g)), t2 = true), t2;
|
|
1706
|
+
}, function(t2, e2, r2) {
|
|
1707
|
+
if (null != (e2 = $i(pe, e2, false))) for (let n2 = 0; n2 < e2.length; n2++) Wn(t2, r2, e2[n2]);
|
|
1708
|
+
}, ii), ls = Bi(function(t2, e2, r2) {
|
|
1709
|
+
return 0 !== t2.h ? e2 = false : (ji(e2, r2, (t2 = Qr(t2.g)) === Pi ? void 0 : t2), e2 = true), e2;
|
|
1710
|
+
}, Ki, ii), ds = Bi(function(t2, e2, r2) {
|
|
1711
|
+
return 0 !== t2.h ? t2 = false : (ji(e2, r2, Yr(t2.g, Dt)), t2 = true), t2;
|
|
1712
|
+
}, function(t2, e2, r2) {
|
|
1713
|
+
if (e2 = function(t3) {
|
|
1714
|
+
if (null == t3) return t3;
|
|
1715
|
+
var e3 = typeof t3;
|
|
1716
|
+
if ("bigint" === e3) return String(Kt(64, t3));
|
|
1717
|
+
if (te(t3)) {
|
|
1718
|
+
if ("string" === e3) return e3 = zt(Number(t3)), Xt(e3) && e3 >= 0 ? t3 = String(e3) : (-1 !== (e3 = t3.indexOf(".")) && (t3 = t3.substring(0, e3)), t3 = oe(t3)), t3;
|
|
1719
|
+
if ("number" === e3) return he(t3);
|
|
1720
|
+
}
|
|
1721
|
+
}(e2), null != e2) {
|
|
1722
|
+
if ("string" == typeof e2) wn(e2);
|
|
1723
|
+
if (null != e2) switch (Hn(t2, r2, 0), typeof e2) {
|
|
1724
|
+
case "number":
|
|
1725
|
+
t2 = t2.g, Nt(e2), Pn(t2, It, Ft);
|
|
1726
|
+
break;
|
|
1727
|
+
case "bigint":
|
|
1728
|
+
r2 = Dn(e2, Tn, An), Pn(t2.g, r2.h, r2.g);
|
|
1729
|
+
break;
|
|
1730
|
+
default:
|
|
1731
|
+
r2 = wn(e2), Pn(t2.g, r2.h, r2.g);
|
|
1732
|
+
}
|
|
1733
|
+
}
|
|
1734
|
+
}, si), fs = Bi(function(t2, e2, r2) {
|
|
1735
|
+
return 0 === t2.h && (ji(e2, r2, Jr(t2.g)), true);
|
|
1736
|
+
}, Xi, ri), ps = Gi(es, function(t2, e2, r2) {
|
|
1737
|
+
if (null != (e2 = $i(re, e2, true))) for (let o2 = 0; o2 < e2.length; o2++) {
|
|
1738
|
+
var n2 = t2, i2 = r2, s2 = e2[o2];
|
|
1739
|
+
null != s2 && (Hn(n2, i2, 0), Un(n2.g, s2));
|
|
1740
|
+
}
|
|
1741
|
+
}, ri), gs = Gi(es, function(t2, e2, r2) {
|
|
1742
|
+
if (null != (e2 = $i(re, e2, true)) && e2.length) {
|
|
1743
|
+
r2 = Kn(t2, r2);
|
|
1744
|
+
for (let r3 = 0; r3 < e2.length; r3++) Un(t2.g, e2[r3]);
|
|
1745
|
+
Xn(t2, r2);
|
|
1746
|
+
}
|
|
1747
|
+
}, ri), ms = Bi(function(t2, e2, r2) {
|
|
1748
|
+
return 0 === t2.h && (ji(e2, r2, 0 === (t2 = Jr(t2.g)) ? void 0 : t2), true);
|
|
1749
|
+
}, Xi, ri), vs = Bi(function(t2, e2, r2) {
|
|
1750
|
+
return 0 === t2.h && (ji(e2, r2, qr(t2.g)), true);
|
|
1751
|
+
}, Wi, ti), _s = Bi(function(t2, e2, r2) {
|
|
1752
|
+
return 0 === t2.h && (ji(e2, r2, false === (t2 = qr(t2.g)) ? void 0 : t2), true);
|
|
1753
|
+
}, Wi, ti), ys = Gi(function(t2, e2, r2) {
|
|
1754
|
+
return 2 === t2.h && (t2 = mn(t2), yr(e2, 0 | e2[et], r2).push(t2), true);
|
|
1755
|
+
}, function(t2, e2, r2) {
|
|
1756
|
+
if (null != (e2 = $i(_e, e2, true))) for (let o2 = 0; o2 < e2.length; o2++) {
|
|
1757
|
+
var n2 = t2, i2 = r2, s2 = e2[o2];
|
|
1758
|
+
null != s2 && zn(n2, i2, c(s2));
|
|
1759
|
+
}
|
|
1760
|
+
}, ei), Es = Bi(function(t2, e2, r2) {
|
|
1761
|
+
return 2 === t2.h && (ji(e2, r2, "" === (t2 = mn(t2)) ? void 0 : t2), true);
|
|
1762
|
+
}, zi, ei), As = Bi(function(t2, e2, r2) {
|
|
1763
|
+
return 2 === t2.h && (ji(e2, r2, mn(t2)), true);
|
|
1764
|
+
}, zi, ei), ws = function(t2, e2, r2 = Qn) {
|
|
1765
|
+
return new fi(t2, e2, r2);
|
|
1766
|
+
}(function(t2, e2, r2, n2, i2) {
|
|
1767
|
+
return 2 === t2.h && (n2 = Ke(void 0, n2), yr(e2, 0 | e2[et], r2).push(n2), gn(t2, n2, i2), true);
|
|
1768
|
+
}, function(t2, e2, r2, n2, i2) {
|
|
1769
|
+
if (Array.isArray(e2)) {
|
|
1770
|
+
for (let s2 = 0; s2 < e2.length; s2++) Yi(t2, e2[s2], r2, n2, i2);
|
|
1771
|
+
1 & (t2 = 0 | e2[et]) || it(e2, 1 | t2);
|
|
1772
|
+
}
|
|
1773
|
+
}), bs = pi(function(t2, e2, r2, n2, i2, s2) {
|
|
1774
|
+
if (2 !== t2.h) return false;
|
|
1775
|
+
var o2 = 0 | e2[et];
|
|
1776
|
+
return wr(e2, o2, s2, r2, gt(o2)), gn(t2, e2 = Tr(e2, n2, r2), i2), true;
|
|
1777
|
+
}, Yi), Ts = Bi(function(t2, e2, r2) {
|
|
1778
|
+
return 2 === t2.h && (ji(e2, r2, vn(t2)), true);
|
|
1779
|
+
}, qi, ui), ks = Gi(function(t2, e2, r2) {
|
|
1780
|
+
return 2 === t2.h && (t2 = vn(t2), yr(e2, 0 | e2[et], r2).push(t2), true);
|
|
1781
|
+
}, function(t2, e2, r2) {
|
|
1782
|
+
if (null != (e2 = $i(ge, e2, false))) for (let o2 = 0; o2 < e2.length; o2++) {
|
|
1783
|
+
var n2 = t2, i2 = r2, s2 = e2[o2];
|
|
1784
|
+
null != s2 && zn(n2, i2, zr(s2, true).buffer);
|
|
1785
|
+
}
|
|
1786
|
+
}, ui), Ss = Bi(function(t2, e2, r2) {
|
|
1787
|
+
return 0 === t2.h && (ji(e2, r2, Zr(t2.g)), true);
|
|
1788
|
+
}, Ji, ni), Ls = Gi(function(t2, e2, r2) {
|
|
1789
|
+
return (0 === t2.h || 2 === t2.h) && (e2 = yr(e2, 0 | e2[et], r2), 2 == t2.h ? _n(t2, Zr, e2) : e2.push(Zr(t2.g)), true);
|
|
1790
|
+
}, function(t2, e2, r2) {
|
|
1791
|
+
if (null != (e2 = $i(ne, e2, true))) for (let o2 = 0; o2 < e2.length; o2++) {
|
|
1792
|
+
var n2 = t2, i2 = r2, s2 = e2[o2];
|
|
1793
|
+
null != s2 && (Hn(n2, i2, 0), $n(n2.g, s2));
|
|
1794
|
+
}
|
|
1795
|
+
}, ni), xs = Bi(function(t2, e2, r2) {
|
|
1796
|
+
return 0 === t2.h && (ji(e2, r2, 0 === (t2 = Zr(t2.g)) ? void 0 : t2), true);
|
|
1797
|
+
}, Ji, ni), Rs = Bi(function(t2, e2, r2) {
|
|
1798
|
+
return 0 === t2.h && (ji(e2, r2, Jr(t2.g)), true);
|
|
1799
|
+
}, Zi, ci), Is = Bi(function(t2, e2, r2) {
|
|
1800
|
+
return 0 === t2.h && (ji(e2, r2, 0 === (t2 = Jr(t2.g)) ? void 0 : t2), true);
|
|
1801
|
+
}, Zi, ci), Fs = Bi(function(t2, e2, r2) {
|
|
1802
|
+
return 0 !== t2.h ? t2 = false : (ji(e2, r2, function(t3) {
|
|
1803
|
+
return Yr(t3, (t4, e3) => {
|
|
1804
|
+
var r3 = -(1 & t4);
|
|
1805
|
+
return Pt(t4 = (t4 >>> 1 | e3 << 31) ^ r3, e3 >>> 1 ^ r3);
|
|
1806
|
+
});
|
|
1807
|
+
}(t2.g)), t2 = true), t2;
|
|
1808
|
+
}, function(t2, e2, r2) {
|
|
1809
|
+
if (null != (e2 = pe(e2)) && (Jn(e2), null != e2)) switch (Hn(t2, r2, 0), typeof e2) {
|
|
1810
|
+
case "number":
|
|
1811
|
+
t2 = t2.g, e2 = (r2 = e2) < 0, Ct(r2 = 2 * Math.abs(r2)), r2 = It;
|
|
1812
|
+
let n2 = Ft;
|
|
1813
|
+
e2 && (0 == r2 ? 0 == n2 ? n2 = r2 = 4294967295 : (n2--, r2 = 4294967295) : r2--), Pn(t2, It = r2, Ft = n2);
|
|
1814
|
+
break;
|
|
1815
|
+
case "bigint":
|
|
1816
|
+
t2 = t2.g, e2 = e2 << BigInt(1) ^ e2 >> BigInt(63), It = Number(BigInt.asUintN(32, e2)), Ft = Number(BigInt.asUintN(32, e2 >> BigInt(32))), Pn(t2, It, Ft);
|
|
1817
|
+
break;
|
|
1818
|
+
default:
|
|
1819
|
+
Bn(t2.g, e2);
|
|
1820
|
+
}
|
|
1821
|
+
}, oi);
|
|
1822
|
+
class Cs {
|
|
1823
|
+
constructor(t2, e2) {
|
|
1824
|
+
var r2 = no;
|
|
1825
|
+
this.g = t2, this.h = e2, this.m = Sr, this.o = Ir, this.defaultValue = void 0, this.j = null != r2.jb ? pt : void 0;
|
|
1826
|
+
}
|
|
1827
|
+
register() {
|
|
1828
|
+
v(this);
|
|
1829
|
+
}
|
|
1830
|
+
}
|
|
1831
|
+
function Ns(t2, e2) {
|
|
1832
|
+
return new Cs(t2, e2);
|
|
1833
|
+
}
|
|
1834
|
+
function Ms(t2, e2) {
|
|
1835
|
+
return (r2, n2) => {
|
|
1836
|
+
t: {
|
|
1837
|
+
let s2 = { ma: true };
|
|
1838
|
+
n2 && Object.assign(s2, n2), r2 = cn(r2, void 0, void 0, s2);
|
|
1839
|
+
try {
|
|
1840
|
+
let n3 = new t2(), s3 = n3.A;
|
|
1841
|
+
Ii(e2)(s3, r2);
|
|
1842
|
+
var i2 = n3;
|
|
1843
|
+
break t;
|
|
1844
|
+
} catch (t3) {
|
|
1845
|
+
if (t3 instanceof RangeError) throw new SyntaxError();
|
|
1846
|
+
throw t3;
|
|
1847
|
+
} finally {
|
|
1848
|
+
ln(r2);
|
|
1849
|
+
}
|
|
1850
|
+
i2 = void 0;
|
|
1851
|
+
}
|
|
1852
|
+
return i2;
|
|
1853
|
+
};
|
|
1854
|
+
}
|
|
1855
|
+
function Os(t2) {
|
|
1856
|
+
return (e2) => Ui(e2, t2);
|
|
1857
|
+
}
|
|
1858
|
+
function Ds(t2) {
|
|
1859
|
+
return function() {
|
|
1860
|
+
return Ui(this, t2);
|
|
1861
|
+
};
|
|
1862
|
+
}
|
|
1863
|
+
var Ps = [0, Ts, ks, vs, As], $s = [0, Es, [0, Is, [0, ls, ms], Is, -1, [0, Rs], Is, -1], Bi(rs, qi, ui)];
|
|
1864
|
+
var Us, Bs = class extends di {
|
|
1865
|
+
constructor(t2) {
|
|
1866
|
+
super(t2);
|
|
1867
|
+
}
|
|
1868
|
+
}, Gs = [0, Es, Bi(rs, function(t2, e2, r2) {
|
|
1869
|
+
if (null != e2) {
|
|
1870
|
+
if (e2 instanceof di) {
|
|
1871
|
+
let n2 = e2.mb;
|
|
1872
|
+
return void (n2 ? (e2 = n2(e2), null != e2 && zn(t2, r2, zr(e2, true).buffer)) : $(Y, 3));
|
|
1873
|
+
}
|
|
1874
|
+
if (Array.isArray(e2)) return void $(Y, 3);
|
|
1875
|
+
}
|
|
1876
|
+
qi(t2, e2, r2);
|
|
1877
|
+
}, ui)], js = [0, 1, [0, 12, fs, 10, vs], [0, 7, [0, fs, -1]]], Vs = globalThis.trustedTypes;
|
|
1878
|
+
var Hs = class {
|
|
1879
|
+
constructor(t2) {
|
|
1880
|
+
this.g = t2;
|
|
1881
|
+
}
|
|
1882
|
+
toString() {
|
|
1883
|
+
return this.g + "";
|
|
1884
|
+
}
|
|
1885
|
+
};
|
|
1886
|
+
function Ks(t2) {
|
|
1887
|
+
var e2;
|
|
1888
|
+
return void 0 === Us && (Us = function() {
|
|
1889
|
+
var t3 = null;
|
|
1890
|
+
if (!Vs) return t3;
|
|
1891
|
+
try {
|
|
1892
|
+
let e3 = (t4) => t4;
|
|
1893
|
+
t3 = Vs.createPolicy("goog#html", { createHTML: e3, createScript: e3, createScriptURL: e3 });
|
|
1894
|
+
} catch (t4) {
|
|
1895
|
+
}
|
|
1896
|
+
return t3;
|
|
1897
|
+
}()), t2 = (e2 = Us) ? e2.createScriptURL(t2) : t2, new Hs(t2);
|
|
1898
|
+
}
|
|
1899
|
+
function Xs(t2, ...e2) {
|
|
1900
|
+
if (0 === e2.length) return Ks(t2[0]);
|
|
1901
|
+
var r2 = t2[0];
|
|
1902
|
+
for (let n2 = 0; n2 < e2.length; n2++) r2 += encodeURIComponent(e2[n2]) + t2[n2 + 1];
|
|
1903
|
+
return Ks(r2);
|
|
1904
|
+
}
|
|
1905
|
+
var Ws = [0, fs, Rs, vs, -1, gs, Rs, -1, vs, -1], zs = [0, Rs, -1, vs], Ys = class extends di {
|
|
1906
|
+
constructor(t2) {
|
|
1907
|
+
super(t2);
|
|
1908
|
+
}
|
|
1909
|
+
}, qs = [0, vs, As, vs, Rs, -1, Gi(function(t2, e2, r2) {
|
|
1910
|
+
return (0 === t2.h || 2 === t2.h) && (e2 = yr(e2, 0 | e2[et], r2), 2 == t2.h ? _n(t2, rn, e2) : e2.push(Jr(t2.g)), true);
|
|
1911
|
+
}, function(t2, e2, r2) {
|
|
1912
|
+
if (null != (e2 = $i(re, e2, true)) && e2.length) {
|
|
1913
|
+
r2 = Kn(t2, r2);
|
|
1914
|
+
for (let r3 = 0; r3 < e2.length; r3++) Un(t2.g, e2[r3]);
|
|
1915
|
+
Xn(t2, r2);
|
|
1916
|
+
}
|
|
1917
|
+
}, ci), As, -1, [0, vs, -1], Rs, vs, -1, zs], Js = [0, 3, vs, -1, 2, [0, [2], fs, bs, [0, Ss]], [0, Rs, vs, Rs, vs, Rs, 4, [0, vs, As, -1, vs]], [0, [3, 4], As, -1, bs, [0, fs], bs, [0, Rs, -1]], [0]], Zs = [0, As, -2], Qs = class extends di {
|
|
1918
|
+
constructor(t2) {
|
|
1919
|
+
super(t2);
|
|
1920
|
+
}
|
|
1921
|
+
}, to = [0], eo = class extends di {
|
|
1922
|
+
constructor(t2) {
|
|
1923
|
+
super(t2);
|
|
1924
|
+
}
|
|
1925
|
+
}, ro = [0, fs, vs, 1, vs, -4], no = class extends di {
|
|
1926
|
+
constructor(t2) {
|
|
1927
|
+
super(t2, 2);
|
|
1928
|
+
}
|
|
1929
|
+
}, io = {};
|
|
1930
|
+
io[336783863] = [0, As, vs, -1, fs, [0, [1, 2, 3, 4, 5, 6, 7, 8, 9], bs, to, bs, qs, bs, Zs, bs, ro, bs, Ws, bs, [0, As, -2], bs, [0, As, Rs], bs, Js, bs, zs], [0, As], vs, [0, [1, 3], [2, 4], bs, [0, gs], -1, bs, [0, ys], -1, ws, [0, As, -1]], As];
|
|
1931
|
+
var so = [0, ls, -1, _s, -3, ls, gs, Es, ms, ls, -1, _s, ms, _s, -2, Es];
|
|
1932
|
+
function oo(t2, e2) {
|
|
1933
|
+
Xr(t2, 3, e2);
|
|
1934
|
+
}
|
|
1935
|
+
function ao(t2, e2) {
|
|
1936
|
+
Xr(t2, 4, e2);
|
|
1937
|
+
}
|
|
1938
|
+
var ho = class extends di {
|
|
1939
|
+
constructor(t2) {
|
|
1940
|
+
super(t2, 500);
|
|
1941
|
+
}
|
|
1942
|
+
v(t2) {
|
|
1943
|
+
return Ir(this, 0, 7, t2);
|
|
1944
|
+
}
|
|
1945
|
+
}, uo = [-1, {}], co = [0, As, 1, uo], lo = [0, As, ys, uo];
|
|
1946
|
+
function fo(t2, e2) {
|
|
1947
|
+
Mr(t2, 1, ho, e2);
|
|
1948
|
+
}
|
|
1949
|
+
function po(t2, e2) {
|
|
1950
|
+
Xr(t2, 10, e2);
|
|
1951
|
+
}
|
|
1952
|
+
function go(t2, e2) {
|
|
1953
|
+
Xr(t2, 15, e2);
|
|
1954
|
+
}
|
|
1955
|
+
var mo = class extends di {
|
|
1956
|
+
constructor(t2) {
|
|
1957
|
+
super(t2, 500);
|
|
1958
|
+
}
|
|
1959
|
+
v(t2) {
|
|
1960
|
+
return Ir(this, 0, 1001, t2);
|
|
1961
|
+
}
|
|
1962
|
+
}, vo = [-500, ws, [-500, Es, -1, ys, -3, [-2, io, vs], ws, Gs, ms, -1, co, lo, ws, [0, Es, _s], Es, so, ms, ys, 987, ys], 4, ws, [-500, As, -1, [-1, {}], 998, As], ws, [-500, As, ys, -1, [-2, {}, vs], 997, ys, -1], ms, ws, [-500, As, ys, uo, 998, ys], ys, ms, co, lo, ws, [0, Es, -1, uo], ys, -2, so, Es, -1, _s, [0, _s, xs], 978, uo, ws, Gs];
|
|
1963
|
+
mo.prototype.g = Ds(vo);
|
|
1964
|
+
var _o = Ms(mo, vo), yo = class extends di {
|
|
1965
|
+
constructor(t2) {
|
|
1966
|
+
super(t2);
|
|
1967
|
+
}
|
|
1968
|
+
}, Eo = class extends di {
|
|
1969
|
+
constructor(t2) {
|
|
1970
|
+
super(t2);
|
|
1971
|
+
}
|
|
1972
|
+
g() {
|
|
1973
|
+
return xr(this, yo, 1);
|
|
1974
|
+
}
|
|
1975
|
+
}, Ao = [0, ws, [0, fs, is, As, -1]], wo = Ms(Eo, Ao), bo = class extends di {
|
|
1976
|
+
constructor(t2) {
|
|
1977
|
+
super(t2);
|
|
1978
|
+
}
|
|
1979
|
+
}, To = class extends di {
|
|
1980
|
+
constructor(t2) {
|
|
1981
|
+
super(t2);
|
|
1982
|
+
}
|
|
1983
|
+
}, ko = class extends di {
|
|
1984
|
+
constructor(t2) {
|
|
1985
|
+
super(t2);
|
|
1986
|
+
}
|
|
1987
|
+
j() {
|
|
1988
|
+
return Sr(this, bo, 2);
|
|
1989
|
+
}
|
|
1990
|
+
g() {
|
|
1991
|
+
return xr(this, To, 5);
|
|
1992
|
+
}
|
|
1993
|
+
}, So = Ms(class extends di {
|
|
1994
|
+
constructor(t2) {
|
|
1995
|
+
super(t2);
|
|
1996
|
+
}
|
|
1997
|
+
}, [0, ys, gs, os, [0, Rs, [0, fs, -3], [0, is, -3], [0, fs, -1, [0, ws, [0, fs, -2]]], ws, [0, is, -1, As, is]], As, -1, us, ws, [0, fs, is], ys, us]), Lo = class extends di {
|
|
1998
|
+
constructor(t2) {
|
|
1999
|
+
super(t2);
|
|
2000
|
+
}
|
|
2001
|
+
}, xo = Ms(class extends di {
|
|
2002
|
+
constructor(t2) {
|
|
2003
|
+
super(t2);
|
|
2004
|
+
}
|
|
2005
|
+
}, [0, ws, [0, is, -4]]), Ro = class extends di {
|
|
2006
|
+
constructor(t2) {
|
|
2007
|
+
super(t2);
|
|
2008
|
+
}
|
|
2009
|
+
}, Io = Ms(class extends di {
|
|
2010
|
+
constructor(t2) {
|
|
2011
|
+
super(t2);
|
|
2012
|
+
}
|
|
2013
|
+
}, [0, ws, [0, is, -4]]), Fo = class extends di {
|
|
2014
|
+
constructor(t2) {
|
|
2015
|
+
super(t2);
|
|
2016
|
+
}
|
|
2017
|
+
}, Co = [0, fs, -1, os, Rs], No = class extends di {
|
|
2018
|
+
constructor(t2) {
|
|
2019
|
+
super(t2);
|
|
2020
|
+
}
|
|
2021
|
+
};
|
|
2022
|
+
No.prototype.g = Ds([0, is, -4, us]);
|
|
2023
|
+
var Mo = class extends di {
|
|
2024
|
+
constructor(t2) {
|
|
2025
|
+
super(t2);
|
|
2026
|
+
}
|
|
2027
|
+
}, Oo = Ms(class extends di {
|
|
2028
|
+
constructor(t2) {
|
|
2029
|
+
super(t2);
|
|
2030
|
+
}
|
|
2031
|
+
}, [0, ws, [0, 1, fs, As, Ao], us]), Do = class extends di {
|
|
2032
|
+
constructor(t2) {
|
|
2033
|
+
super(t2);
|
|
2034
|
+
}
|
|
2035
|
+
}, Po = class extends di {
|
|
2036
|
+
constructor(t2) {
|
|
2037
|
+
super(t2);
|
|
2038
|
+
}
|
|
2039
|
+
g() {
|
|
2040
|
+
var t2 = sr(this, 1, void 0, mr);
|
|
2041
|
+
return null == t2 ? I() : t2;
|
|
2042
|
+
}
|
|
2043
|
+
}, $o = class extends di {
|
|
2044
|
+
constructor(t2) {
|
|
2045
|
+
super(t2);
|
|
2046
|
+
}
|
|
2047
|
+
}, Uo = [1, 2], Bo = Ms(class extends di {
|
|
2048
|
+
constructor(t2) {
|
|
2049
|
+
super(t2);
|
|
2050
|
+
}
|
|
2051
|
+
}, [0, ws, [0, Uo, bs, [0, os], bs, [0, Ts], fs, As], us]), Go = class extends di {
|
|
2052
|
+
constructor(t2) {
|
|
2053
|
+
super(t2);
|
|
2054
|
+
}
|
|
2055
|
+
}, jo = [0, As, fs, is, ys, -1], Vo = class extends di {
|
|
2056
|
+
constructor(t2) {
|
|
2057
|
+
super(t2);
|
|
2058
|
+
}
|
|
2059
|
+
}, Ho = [0, vs, -1], Ko = class extends di {
|
|
2060
|
+
constructor(t2) {
|
|
2061
|
+
super(t2);
|
|
2062
|
+
}
|
|
2063
|
+
g() {
|
|
2064
|
+
return ur(this, Ys, 2, Xo);
|
|
2065
|
+
}
|
|
2066
|
+
}, Xo = [1, 2, 3, 4, 5, 6], Wo = class extends di {
|
|
2067
|
+
constructor(t2) {
|
|
2068
|
+
super(t2);
|
|
2069
|
+
}
|
|
2070
|
+
g() {
|
|
2071
|
+
return null != sr(this, 1, void 0, mr);
|
|
2072
|
+
}
|
|
2073
|
+
j() {
|
|
2074
|
+
return null != _e(sr(this, 2));
|
|
2075
|
+
}
|
|
2076
|
+
}, zo = class extends di {
|
|
2077
|
+
constructor(t2) {
|
|
2078
|
+
super(t2);
|
|
2079
|
+
}
|
|
2080
|
+
}, Yo = [0, Ts, As, [0, fs, us, -1], [0, ds, us]], qo = [0, Yo, vs, [0, Xo, bs, ro, bs, qs, bs, Ws, bs, to, bs, Zs, bs, Js], Rs], Jo = Os(qo), Zo = class extends di {
|
|
2081
|
+
constructor(t2) {
|
|
2082
|
+
super(t2);
|
|
2083
|
+
}
|
|
2084
|
+
}, Qo = [0, qo, is, -1, fs], ta = Ns(502141897, Zo);
|
|
2085
|
+
io[502141897] = Qo;
|
|
2086
|
+
var ea = Ms(class extends di {
|
|
2087
|
+
constructor(t2) {
|
|
2088
|
+
super(t2);
|
|
2089
|
+
}
|
|
2090
|
+
}, [0, [0, Rs, -1, ss, Ls], Co]), ra = class extends di {
|
|
2091
|
+
constructor(t2) {
|
|
2092
|
+
super(t2);
|
|
2093
|
+
}
|
|
2094
|
+
}, na = class extends di {
|
|
2095
|
+
constructor(t2) {
|
|
2096
|
+
super(t2);
|
|
2097
|
+
}
|
|
2098
|
+
}, ia = [0, qo, is, [0, qo], vs], sa = Ns(508968150, na);
|
|
2099
|
+
io[508968150] = [0, qo, Qo, ia, is, [0, [0, Yo]]], io[508968149] = ia;
|
|
2100
|
+
var oa = class extends di {
|
|
2101
|
+
constructor(t2) {
|
|
2102
|
+
super(t2);
|
|
2103
|
+
}
|
|
2104
|
+
j() {
|
|
2105
|
+
return Sr(this, Go, 2);
|
|
2106
|
+
}
|
|
2107
|
+
g() {
|
|
2108
|
+
ar(this, 2);
|
|
2109
|
+
}
|
|
2110
|
+
}, aa = [0, qo, jo];
|
|
2111
|
+
io[478825465] = aa;
|
|
2112
|
+
var ha = class extends di {
|
|
2113
|
+
constructor(t2) {
|
|
2114
|
+
super(t2);
|
|
2115
|
+
}
|
|
2116
|
+
}, ua = class extends di {
|
|
2117
|
+
constructor(t2) {
|
|
2118
|
+
super(t2);
|
|
2119
|
+
}
|
|
2120
|
+
}, ca = class extends di {
|
|
2121
|
+
constructor(t2) {
|
|
2122
|
+
super(t2);
|
|
2123
|
+
}
|
|
2124
|
+
}, la = class extends di {
|
|
2125
|
+
constructor(t2) {
|
|
2126
|
+
super(t2);
|
|
2127
|
+
}
|
|
2128
|
+
}, da = class extends di {
|
|
2129
|
+
constructor(t2) {
|
|
2130
|
+
super(t2);
|
|
2131
|
+
}
|
|
2132
|
+
}, fa = [0, qo, [0, qo], aa, -1], pa = [0, qo, is, fs], ga = [0, qo, is], ma = [0, qo, pa, ga, is], va = Ns(479097054, da);
|
|
2133
|
+
io[479097054] = [0, qo, ma, fa], io[463370452] = fa, io[464864288] = pa;
|
|
2134
|
+
var _a = Ns(462713202, la);
|
|
2135
|
+
io[462713202] = ma, io[474472470] = ga;
|
|
2136
|
+
var ya = class extends di {
|
|
2137
|
+
constructor(t2) {
|
|
2138
|
+
super(t2);
|
|
2139
|
+
}
|
|
2140
|
+
}, Ea = class extends di {
|
|
2141
|
+
constructor(t2) {
|
|
2142
|
+
super(t2);
|
|
2143
|
+
}
|
|
2144
|
+
}, Aa = class extends di {
|
|
2145
|
+
constructor(t2) {
|
|
2146
|
+
super(t2);
|
|
2147
|
+
}
|
|
2148
|
+
}, wa = class extends di {
|
|
2149
|
+
constructor(t2) {
|
|
2150
|
+
super(t2);
|
|
2151
|
+
}
|
|
2152
|
+
}, ba = [0, qo, is, -1, fs], Ta = [0, qo, is, vs];
|
|
2153
|
+
wa.prototype.g = Ds([0, qo, ga, [0, qo], Qo, ia, ba, Ta]);
|
|
2154
|
+
var ka = class extends di {
|
|
2155
|
+
constructor(t2) {
|
|
2156
|
+
super(t2);
|
|
2157
|
+
}
|
|
2158
|
+
}, Sa = Ns(456383383, ka);
|
|
2159
|
+
io[456383383] = [0, qo, jo];
|
|
2160
|
+
var La = class extends di {
|
|
2161
|
+
constructor(t2) {
|
|
2162
|
+
super(t2);
|
|
2163
|
+
}
|
|
2164
|
+
}, xa = Ns(476348187, La);
|
|
2165
|
+
io[476348187] = [0, qo, Ho];
|
|
2166
|
+
var Ra = class extends di {
|
|
2167
|
+
constructor(t2) {
|
|
2168
|
+
super(t2);
|
|
2169
|
+
}
|
|
2170
|
+
}, Ia = class extends di {
|
|
2171
|
+
constructor(t2) {
|
|
2172
|
+
super(t2);
|
|
2173
|
+
}
|
|
2174
|
+
}, Fa = [0, Rs, -1], Ca = Ns(458105876, class extends di {
|
|
2175
|
+
constructor(t2) {
|
|
2176
|
+
super(t2);
|
|
2177
|
+
}
|
|
2178
|
+
g() {
|
|
2179
|
+
var t2 = this.A, e2 = 0 | t2[et], r2 = ht(this, e2);
|
|
2180
|
+
return t2 = function(t3, e3, r3, n2) {
|
|
2181
|
+
var i2 = Ia;
|
|
2182
|
+
!n2 && Qe(t3) && (r3 = 0 | (e3 = t3.A)[et]);
|
|
2183
|
+
var s2 = or(e3, 2);
|
|
2184
|
+
if (t3 = false, null == s2) {
|
|
2185
|
+
if (n2) return Ce();
|
|
2186
|
+
s2 = [];
|
|
2187
|
+
} else if (s2.constructor === Re) {
|
|
2188
|
+
if (!(2 & s2.M) || n2) return s2;
|
|
2189
|
+
s2 = s2.ea();
|
|
2190
|
+
} else Array.isArray(s2) ? t3 = !!(2 & s2[et]) : s2 = [];
|
|
2191
|
+
if (n2) {
|
|
2192
|
+
if (!s2.length) return Ce();
|
|
2193
|
+
t3 || (t3 = true, st(s2));
|
|
2194
|
+
} else t3 && (t3 = false, ot(s2), s2 = vr(s2));
|
|
2195
|
+
return !t3 && 32 & r3 && nt(s2, 32), r3 = hr(e3, r3, 2, n2 = new Re(s2, i2, Ee, void 0)), t3 || er(e3, r3), n2;
|
|
2196
|
+
}(this, t2, e2, r2), !r2 && Ia && (t2.Fa = true), t2;
|
|
2197
|
+
}
|
|
2198
|
+
});
|
|
2199
|
+
io[458105876] = [0, Fa, Vi, [true, us, [0, As, -1, ys]], [0, gs, vs, Rs], vs];
|
|
2200
|
+
var Na = class extends di {
|
|
2201
|
+
constructor(t2) {
|
|
2202
|
+
super(t2);
|
|
2203
|
+
}
|
|
2204
|
+
}, Ma = Ns(458105758, Na);
|
|
2205
|
+
io[458105758] = [0, qo, As, Fa];
|
|
2206
|
+
var Oa = class extends di {
|
|
2207
|
+
constructor(t2) {
|
|
2208
|
+
super(t2);
|
|
2209
|
+
}
|
|
2210
|
+
}, Da = class extends di {
|
|
2211
|
+
constructor(t2) {
|
|
2212
|
+
super(t2);
|
|
2213
|
+
}
|
|
2214
|
+
}, Pa = class extends di {
|
|
2215
|
+
constructor(t2) {
|
|
2216
|
+
super(t2);
|
|
2217
|
+
}
|
|
2218
|
+
}, $a = Os([0, ws, [0, Is, ws, [0, as, -1], _s]]), Ua = class extends di {
|
|
2219
|
+
constructor(t2) {
|
|
2220
|
+
super(t2);
|
|
2221
|
+
}
|
|
2222
|
+
}, Ba = [0, as, -1, _s], Ga = class extends di {
|
|
2223
|
+
constructor(t2) {
|
|
2224
|
+
super(t2);
|
|
2225
|
+
}
|
|
2226
|
+
}, ja = class extends di {
|
|
2227
|
+
constructor(t2) {
|
|
2228
|
+
super(t2);
|
|
2229
|
+
}
|
|
2230
|
+
}, Va = [1, 2];
|
|
2231
|
+
ja.prototype.g = Ds([0, Va, bs, Ba, bs, [0, ws, Ba]]);
|
|
2232
|
+
var Ha = class extends di {
|
|
2233
|
+
constructor(t2) {
|
|
2234
|
+
super(t2);
|
|
2235
|
+
}
|
|
2236
|
+
}, Ka = Ns(443442058, Ha);
|
|
2237
|
+
io[443442058] = [0, qo, As, fs, is, ys, -1, vs, is], io[514774813] = ba;
|
|
2238
|
+
var Xa = class extends di {
|
|
2239
|
+
constructor(t2) {
|
|
2240
|
+
super(t2);
|
|
2241
|
+
}
|
|
2242
|
+
}, Wa = Ns(516587230, Xa);
|
|
2243
|
+
function za(t2, e2) {
|
|
2244
|
+
return e2 = e2 ? e2.clone() : new Go(), void 0 !== t2.displayNamesLocale ? ar(e2, 1, ve(t2.displayNamesLocale)) : void 0 === t2.displayNamesLocale && ar(e2, 1), void 0 !== t2.maxResults ? Ur(e2, 2, t2.maxResults) : "maxResults" in t2 && ar(e2, 2), void 0 !== t2.scoreThreshold ? jr(e2, 3, t2.scoreThreshold) : "scoreThreshold" in t2 && ar(e2, 3), void 0 !== t2.categoryAllowlist ? Kr(e2, 4, t2.categoryAllowlist) : "categoryAllowlist" in t2 && ar(e2, 4), void 0 !== t2.categoryDenylist ? Kr(e2, 5, t2.categoryDenylist) : "categoryDenylist" in t2 && ar(e2, 5), e2;
|
|
2245
|
+
}
|
|
2246
|
+
function Ya(t2) {
|
|
2247
|
+
var e2 = Number(t2);
|
|
2248
|
+
return Number.isSafeInteger(e2) ? e2 : String(t2);
|
|
2249
|
+
}
|
|
2250
|
+
function qa(t2, e2 = -1, r2 = "") {
|
|
2251
|
+
return { categories: t2.map((t3) => ({ index: Or(t3, 1) ?? 0 ?? -1, score: Dr(t3, 2) ?? 0, categoryName: _e(sr(t3, 3)) ?? "" ?? "", displayName: _e(sr(t3, 4)) ?? "" ?? "" })), headIndex: e2, headName: r2 };
|
|
2252
|
+
}
|
|
2253
|
+
function Ja(t2) {
|
|
2254
|
+
var e2 = { classifications: xr(t2, Mo, 1).map((t3) => qa(Sr(t3, Eo, 4)?.g() ?? [], Or(t3, 2) ?? 0, _e(sr(t3, 3)) ?? "")) };
|
|
2255
|
+
return null != function(t3) {
|
|
2256
|
+
return null == t3 ? t3 : "bigint" == typeof t3 ? (wt(t3) ? t3 = Number(t3) : (t3 = Ht(64, t3), t3 = wt(t3) ? Number(t3) : String(t3)), t3) : te(t3) ? "number" == typeof t3 ? ae(t3) : ce(t3) : void 0;
|
|
2257
|
+
}(sr(t2, 2, void 0, fe)) && (e2.timestampMs = Ya(sr(t2, 2, void 0, fe) ?? nr)), e2;
|
|
2258
|
+
}
|
|
2259
|
+
function Za(t2) {
|
|
2260
|
+
var e2 = lr(t2, 3, Jt, cr()), r2 = lr(t2, 2, re, cr()), n2 = lr(t2, 1, _e, cr()), i2 = lr(t2, 9, _e, cr()), s2 = { categories: [], keypoints: [] };
|
|
2261
|
+
for (let t3 = 0; t3 < e2.length; t3++) s2.categories.push({ score: e2[t3], index: r2[t3] ?? -1, categoryName: n2[t3] ?? "", displayName: i2[t3] ?? "" });
|
|
2262
|
+
if ((e2 = Sr(t2, ko, 4)?.j()) && (s2.boundingBox = { originX: Or(e2, 1, ir) ?? 0, originY: Or(e2, 2, ir) ?? 0, width: Or(e2, 3, ir) ?? 0, height: Or(e2, 4, ir) ?? 0, angle: 0 }), Sr(t2, ko, 4)?.g().length) for (let e3 of Sr(t2, ko, 4).g()) s2.keypoints.push({ x: sr(e3, 1, ir, Jt) ?? 0, y: sr(e3, 2, ir, Jt) ?? 0, score: sr(e3, 4, ir, Jt) ?? 0, label: _e(sr(e3, 3, ir)) ?? "" });
|
|
2263
|
+
return s2;
|
|
2264
|
+
}
|
|
2265
|
+
function Qa(t2) {
|
|
2266
|
+
var e2 = [];
|
|
2267
|
+
for (let r2 of xr(t2, Ro, 1)) e2.push({ x: Dr(r2, 1) ?? 0, y: Dr(r2, 2) ?? 0, z: Dr(r2, 3) ?? 0, visibility: Dr(r2, 4) ?? 0 });
|
|
2268
|
+
return e2;
|
|
2269
|
+
}
|
|
2270
|
+
function th(t2) {
|
|
2271
|
+
var e2 = [];
|
|
2272
|
+
for (let r2 of xr(t2, Lo, 1)) e2.push({ x: Dr(r2, 1) ?? 0, y: Dr(r2, 2) ?? 0, z: Dr(r2, 3) ?? 0, visibility: Dr(r2, 4) ?? 0 });
|
|
2273
|
+
return e2;
|
|
2274
|
+
}
|
|
2275
|
+
function eh(t2) {
|
|
2276
|
+
return Array.from(t2, (t3) => t3 > 127 ? t3 - 256 : t3);
|
|
2277
|
+
}
|
|
2278
|
+
function rh(t2, e2) {
|
|
2279
|
+
if (t2.length !== e2.length) throw Error(`Cannot compute cosine similarity between embeddings of different sizes (${t2.length} vs. ${e2.length}).`);
|
|
2280
|
+
var r2 = 0, n2 = 0, i2 = 0;
|
|
2281
|
+
for (let s2 = 0; s2 < t2.length; s2++) r2 += t2[s2] * e2[s2], n2 += t2[s2] * t2[s2], i2 += e2[s2] * e2[s2];
|
|
2282
|
+
if (n2 <= 0 || i2 <= 0) throw Error("Cannot compute cosine similarity on embedding with 0 norm.");
|
|
2283
|
+
return r2 / Math.sqrt(n2 * i2);
|
|
2284
|
+
}
|
|
2285
|
+
io[516587230] = [0, qo, ba, Ta, is], io[518928384] = Ta;
|
|
2286
|
+
var nh, ih = new Uint8Array([0, 97, 115, 109, 1, 0, 0, 0, 1, 5, 1, 96, 0, 1, 123, 3, 2, 1, 0, 10, 10, 1, 8, 0, 65, 0, 253, 15, 253, 98, 11]);
|
|
2287
|
+
async function sh(t2) {
|
|
2288
|
+
if (t2) return true;
|
|
2289
|
+
if (void 0 === nh) try {
|
|
2290
|
+
await WebAssembly.instantiate(ih), nh = true;
|
|
2291
|
+
} catch {
|
|
2292
|
+
nh = false;
|
|
2293
|
+
}
|
|
2294
|
+
return nh;
|
|
2295
|
+
}
|
|
2296
|
+
async function oh(t2, e2, r2) {
|
|
2297
|
+
return { wasmLoaderPath: `${e2}/${t2}_${r2 = `wasm${r2 ? "_module" : ""}${await sh(r2) ? "" : "_nosimd"}_internal`}.js`, wasmBinaryPath: `${e2}/${t2}_${r2}.wasm` };
|
|
2298
|
+
}
|
|
2299
|
+
var ah = class {
|
|
2300
|
+
};
|
|
2301
|
+
function hh(t2) {
|
|
2302
|
+
return ar(new uh(), 1, ee(t2));
|
|
2303
|
+
}
|
|
2304
|
+
ah.forVisionTasks = function(t2, e2 = false) {
|
|
2305
|
+
return oh("vision", t2 ?? Xs``, e2);
|
|
2306
|
+
}, ah.forTextTasks = function(t2, e2 = false) {
|
|
2307
|
+
return oh("text", t2 ?? Xs``, e2);
|
|
2308
|
+
}, ah.forGenAiTasks = function(t2, e2 = false) {
|
|
2309
|
+
return oh("genai", t2 ?? Xs``, e2);
|
|
2310
|
+
}, ah.forAudioTasks = function(t2, e2 = false) {
|
|
2311
|
+
return oh("audio", t2 ?? Xs``, e2);
|
|
2312
|
+
}, ah.isSimdSupported = function(t2 = false) {
|
|
2313
|
+
return sh(t2);
|
|
2314
|
+
};
|
|
2315
|
+
var uh = class extends di {
|
|
2316
|
+
constructor(t2) {
|
|
2317
|
+
super(t2);
|
|
2318
|
+
}
|
|
2319
|
+
}, ch = class extends di {
|
|
2320
|
+
constructor(t2) {
|
|
2321
|
+
super(t2);
|
|
2322
|
+
}
|
|
2323
|
+
}, lh = [0, Rs, 2, ds, -2, us, ws, [0, Rs, us]], dh = class extends di {
|
|
2324
|
+
constructor(t2) {
|
|
2325
|
+
super(t2);
|
|
2326
|
+
}
|
|
2327
|
+
}, fh = class extends di {
|
|
2328
|
+
constructor(t2) {
|
|
2329
|
+
super(t2);
|
|
2330
|
+
}
|
|
2331
|
+
};
|
|
2332
|
+
function ph(t2, e2) {
|
|
2333
|
+
return ar(t2, 1, ee(e2));
|
|
2334
|
+
}
|
|
2335
|
+
function gh(t2, e2) {
|
|
2336
|
+
return ar(t2, 2, ee(e2));
|
|
2337
|
+
}
|
|
2338
|
+
var mh = class extends di {
|
|
2339
|
+
constructor(t2) {
|
|
2340
|
+
super(t2);
|
|
2341
|
+
}
|
|
2342
|
+
}, vh = [3, 4, 5, 6, 7], _h = class extends di {
|
|
2343
|
+
constructor(t2) {
|
|
2344
|
+
super(t2);
|
|
2345
|
+
}
|
|
2346
|
+
}, yh = class extends di {
|
|
2347
|
+
constructor(t2) {
|
|
2348
|
+
super(t2);
|
|
2349
|
+
}
|
|
2350
|
+
};
|
|
2351
|
+
yh.prototype.g = Ds([0, [0, Rs, As, -3, Rs], [0, vh, Rs, -1, bs, [0, Rs, As, ds], bs, lh, bs, [0, 1, lh], bs, [0, Rs], bs, [0, Rs, As, ds]]]);
|
|
2352
|
+
var Eh = class {
|
|
2353
|
+
constructor() {
|
|
2354
|
+
this.g = "undefined" != typeof AbortController;
|
|
2355
|
+
}
|
|
2356
|
+
async send(t2, e2, r2) {
|
|
2357
|
+
var n2 = this.g ? new AbortController() : void 0, i2 = n2 && t2.la > 0 ? setTimeout(() => {
|
|
2358
|
+
n2.abort();
|
|
2359
|
+
}, t2.la) : void 0;
|
|
2360
|
+
try {
|
|
2361
|
+
let i3 = await fetch(t2.url, { method: t2.bb, headers: { ...t2.ab }, ...t2.body && { body: t2.body }, ...t2.withCredentials && { credentials: "include" }, signal: t2.la && n2 ? n2.signal : null });
|
|
2362
|
+
200 === i3.status ? e2?.(await i3.text()) : r2?.(i3.status);
|
|
2363
|
+
} catch (t3) {
|
|
2364
|
+
if ("AbortError" === t3?.name) r2?.(408);
|
|
2365
|
+
else r2?.(400);
|
|
2366
|
+
} finally {
|
|
2367
|
+
clearTimeout(i2);
|
|
2368
|
+
}
|
|
2369
|
+
}
|
|
2370
|
+
}, Ah = class extends di {
|
|
2371
|
+
constructor(t2) {
|
|
2372
|
+
super(t2, 37);
|
|
2373
|
+
}
|
|
2374
|
+
}, wh = [-4, {}, js, Rs, $s], bh = [0, As, Rs, 1, As, -1, Rs, 1, Rs, 1, us], Th = [0, Rs, As, -2], kh = [0, As, Rs], Sh = [0, As, Rs], Lh = [0, vs, -3], xh = [0, Rs, As, -1, us, fs, -1, As, -5, ws, [0, As, -4], -1, vs, [0, vs, -3], Rs];
|
|
2375
|
+
var Rh = class extends di {
|
|
2376
|
+
constructor(t2) {
|
|
2377
|
+
super(t2, 19);
|
|
2378
|
+
}
|
|
2379
|
+
}, Ih = Os([-19, {}, [0, Rs, 1, [0, As, -6, us, fs, As, -1, us], 1, [0, As, 1, As, -5], As, -1, [0, Rs, As, -8], [0, As, -3], [0, As, Rs, As, -2], [0, As, -1, Rs, As, -1, Rs, As, -1, [0, ws, [0, As, -1], vs, As, -5], [0, Rs, vs, fs, -2]], us, [0, As, -3, us, fs, As, -1], [0, Rs, As, -1], [0, As, -9], [0, As, -6, Rs, As, 1, As, vs, Rs, -1, vs, As, -2, Rs, As, Rs, As, fs, -1], 1, [0, Rs], 1, [0, As, -4], 1, bh, [0, [1, 2, 3, 4, 5, 6], bs, bh, bs, kh, bs, Sh, bs, [0, Rs], bs, xh, bs, Th], kh, Sh, xh, [0, [0, Rs, As, -1, us, fs, -1, As, -4, ws, [0, As, -4], -1, 1, Lh], [0, Rs, As, -1, us, fs, -1, As, -4, Lh]], Th, [0, As, [0, fs, -3, Rs], Rs, -2, [0, fs, -1], vs], 4, [0, As, Rs, As, -1, us, Rs, As, -1, Rs, fs, -1]], Rs, ws, [-37, {}, hs, As, ws, [0, As, -1], Ts, 1, Ts, [0, ys, -1, ps, cs, -1], As, [0, fs, As, -1], vs, fs, us, As, -1, Fs, Ps, hs, Ts, Rs, ps, us, -1, [0, Rs, -1], As, vs, As, gs, As, -1, ns, 1, ns, wh, vs, [0, Rs, [0, is, fs, -2], [0, is]], [0, Rs, us]], hs, ks, As, -1, hs, Rs, -1, [0, vs, -1, Rs, vs], [0, us, -1, As], [0, hs, vs, us], us, 1, Ss, 1, wh]), Fh = class {
|
|
2380
|
+
constructor(t2) {
|
|
2381
|
+
this.h = [], this.m = new Eh(), this.j = t2 ?? "", this.g = setInterval(() => {
|
|
2382
|
+
this.flush();
|
|
2383
|
+
}, 6e4);
|
|
2384
|
+
}
|
|
2385
|
+
close() {
|
|
2386
|
+
void 0 !== this.g && (clearInterval(this.g), this.g = void 0), this.flush();
|
|
2387
|
+
}
|
|
2388
|
+
flush(t2, e2) {
|
|
2389
|
+
if (this.error) e2?.("net-send-failed");
|
|
2390
|
+
else if (0 === this.h.length) t2?.();
|
|
2391
|
+
else {
|
|
2392
|
+
var r2 = this.h;
|
|
2393
|
+
this.h = [], r2 = function(t3) {
|
|
2394
|
+
var e3 = new Rh();
|
|
2395
|
+
return Cr(e3 = ar(e3, 2, ee(1786)), 3, t3);
|
|
2396
|
+
}(r2), r2 = Ih(r2), this.m.send({ url: "https://odml.pa.googleapis.com/v1/log", bb: "POST", la: 1e4, body: r2, hb: 2, ab: { "Content-Type": "application/x-protobuf", "x-goog-api-key": this.j }, withCredentials: false }, () => {
|
|
2397
|
+
t2?.();
|
|
2398
|
+
}, (t3) => {
|
|
2399
|
+
this.error = Error(`Logging failed with HTTP error: ${t3}`), this.h = [], void 0 !== this.g && (clearInterval(this.g), this.g = void 0), e2?.("net-send-failed", t3);
|
|
2400
|
+
});
|
|
2401
|
+
}
|
|
2402
|
+
}
|
|
2403
|
+
};
|
|
2404
|
+
class Ch {
|
|
2405
|
+
constructor() {
|
|
2406
|
+
this.aa = this.U = this.X = this.R = this.V = this.T = this.P = 0;
|
|
2407
|
+
}
|
|
2408
|
+
}
|
|
2409
|
+
function Nh(t2, e2) {
|
|
2410
|
+
var r2 = new yh();
|
|
2411
|
+
r2 = Ir(r2, 0, 1, t2.B), r2 = Ir(r2, 0, 2, e2), e2 = ar(e2 = new Ah(), 6, ct(r2 = r2.g(), false)), (t2 = t2.l).error || t2.h.push(e2);
|
|
2412
|
+
}
|
|
2413
|
+
function Mh(t2, e2) {
|
|
2414
|
+
var r2 = { P: e2.P - t2.j.P, T: e2.T - t2.j.T, V: e2.V - t2.j.V, R: e2.R - t2.j.R, X: e2.X - t2.j.X, U: e2.U, aa: e2.aa }, n2 = gh(ph(new mh(), t2.C), 1);
|
|
2415
|
+
r2 = Oh(t2, r2), Nh(t2, n2 = Fr(n2, 4, vh, r2)), t2.j = e2;
|
|
2416
|
+
}
|
|
2417
|
+
function Oh(t2, e2) {
|
|
2418
|
+
var r2 = new ch();
|
|
2419
|
+
return t2 = Gr(t2 = Br(t2 = ar(r2, 1, ee(t2.D)), 7, e2.R), 5, e2.U), t2 = Gr(t2, 6, e2.aa), e2.V > 0 && Gr(t2, 4, e2.X / e2.V), 0 !== e2.P && (r2 = Br(r2 = hh(3), 2, e2.P), Mr(t2, 8, uh, r2)), 0 !== e2.T && (e2 = Br(r2 = hh(4), 2, e2.T), Mr(t2, 8, uh, e2)), t2;
|
|
2420
|
+
}
|
|
2421
|
+
var Dh = class {
|
|
2422
|
+
constructor(t2, e2, r2) {
|
|
2423
|
+
this.u = performance.now(), this.m = performance.now(), this.h = /* @__PURE__ */ new Map(), this.o = 0, this.g = new Ch(), this.j = new Ch(), this.l = new Fh(r2), this.C = function(t3) {
|
|
2424
|
+
switch (t3) {
|
|
2425
|
+
case "AudioClassifier":
|
|
2426
|
+
return 4;
|
|
2427
|
+
case "AudioEmbedder":
|
|
2428
|
+
return 5;
|
|
2429
|
+
case "TextClassifier":
|
|
2430
|
+
return 6;
|
|
2431
|
+
case "TextEmbedder":
|
|
2432
|
+
return 7;
|
|
2433
|
+
case "GestureRecognizer":
|
|
2434
|
+
return 8;
|
|
2435
|
+
case "HandDetector":
|
|
2436
|
+
return 9;
|
|
2437
|
+
case "HandLandmarker":
|
|
2438
|
+
return 10;
|
|
2439
|
+
case "ImageClassifier":
|
|
2440
|
+
return 11;
|
|
2441
|
+
case "ImageEmbedder":
|
|
2442
|
+
return 12;
|
|
2443
|
+
case "ImageSegmenter":
|
|
2444
|
+
return 13;
|
|
2445
|
+
case "ObjectDetector":
|
|
2446
|
+
return 14;
|
|
2447
|
+
case "FaceDetector":
|
|
2448
|
+
return 15;
|
|
2449
|
+
case "FaceLandmarker":
|
|
2450
|
+
return 16;
|
|
2451
|
+
case "InteractiveSegmenter":
|
|
2452
|
+
case "InteractiveSegmenterLegacy":
|
|
2453
|
+
return 18;
|
|
2454
|
+
case "HolisticLandmarker":
|
|
2455
|
+
return 20;
|
|
2456
|
+
case "LlmInference":
|
|
2457
|
+
return 21;
|
|
2458
|
+
case "LanguageDetector":
|
|
2459
|
+
return 22;
|
|
2460
|
+
case "PoseLandmarker":
|
|
2461
|
+
return 23;
|
|
2462
|
+
default:
|
|
2463
|
+
return 0;
|
|
2464
|
+
}
|
|
2465
|
+
}(t2), this.D = function(t3) {
|
|
2466
|
+
switch (t3) {
|
|
2467
|
+
case "IMAGE":
|
|
2468
|
+
return 11;
|
|
2469
|
+
case "VIDEO":
|
|
2470
|
+
return 12;
|
|
2471
|
+
case "LIVE_STREAM":
|
|
2472
|
+
return 13;
|
|
2473
|
+
case "AUDIO_CLIPS":
|
|
2474
|
+
return 14;
|
|
2475
|
+
case "AUDIO_STREAM":
|
|
2476
|
+
return 15;
|
|
2477
|
+
default:
|
|
2478
|
+
return 10;
|
|
2479
|
+
}
|
|
2480
|
+
}(e2), t2 = new _h(), "undefined" == typeof window ? e2 = 0 : (e2 = navigator.userAgent, e2 = /Android/i.test(e2) ? 1 : /iPhone|iPad|iPod/i.test(e2) ? 2 : /Windows/i.test(e2) ? 5 : /Macintosh/i.test(e2) ? 4 : /Linux/i.test(e2) ? 3 : 0), t2 = ar(t2, 1, ee(e2)), t2 = ar(t2, 2, ve("")), t2 = ar(t2, 3, ve("")), t2 = ar(t2, 4, ve("1.0.1")), t2 = ar(t2, 5, ve("")), this.B = ar(t2, 6, ee(4));
|
|
2481
|
+
}
|
|
2482
|
+
ya() {
|
|
2483
|
+
var t2 = new fh();
|
|
2484
|
+
t2 = Gr(t2 = ar(t2, 1, ee(this.D)), 3, performance.now() - this.u), Nh(this, t2 = Fr(gh(ph(new mh(), this.C), 0), 3, vh, t2)), this.m = performance.now();
|
|
2485
|
+
}
|
|
2486
|
+
za(t2) {
|
|
2487
|
+
var e2 = this.h.get(t2);
|
|
2488
|
+
if (void 0 !== e2 && (this.h.delete(t2), t2 = performance.now() - e2, ++this.g.V, this.g.X += t2, this.g.U = Math.max(this.g.U, t2), this.o = Math.max(this.o, t2), performance.now() > this.m + 3e4)) {
|
|
2489
|
+
for (let [r2, n2] of this.h.entries()) t2 = r2, n2 < e2 && (this.g.R++, this.h.delete(t2));
|
|
2490
|
+
e2 = { ...this.g, aa: performance.now() - this.m }, this.g.U = 0, this.m = performance.now(), Mh(this, e2);
|
|
2491
|
+
}
|
|
2492
|
+
}
|
|
2493
|
+
xa() {
|
|
2494
|
+
var t2 = { ...this.g, R: this.g.R + this.h.size, U: this.o, aa: performance.now() - this.u };
|
|
2495
|
+
Mh(this, t2);
|
|
2496
|
+
var e2 = new dh();
|
|
2497
|
+
e2 = Ir(e2, 0, 2, t2 = Oh(this, t2)), Nh(this, e2 = Fr(t2 = gh(ph(new mh(), this.C), 2), 5, vh, e2));
|
|
2498
|
+
}
|
|
2499
|
+
close() {
|
|
2500
|
+
var t2 = this.l;
|
|
2501
|
+
"function" == typeof t2.close ? t2.close() : t2.flush();
|
|
2502
|
+
}
|
|
2503
|
+
};
|
|
2504
|
+
function Ph() {
|
|
2505
|
+
var t2 = navigator;
|
|
2506
|
+
return "undefined" != typeof OffscreenCanvas && (!function(t3 = navigator) {
|
|
2507
|
+
return (t3 = t3.userAgent).includes("Safari") && !t3.includes("Chrome");
|
|
2508
|
+
}(t2) || !!((t2 = t2.userAgent.match(/Version\/([\d]+).*Safari/)) && t2.length >= 1 && Number(t2[1]) >= 17));
|
|
2509
|
+
}
|
|
2510
|
+
async function $h(t2) {
|
|
2511
|
+
if ("function" != typeof importScripts) {
|
|
2512
|
+
let e2 = document.createElement("script");
|
|
2513
|
+
return e2.src = t2.toString(), e2.crossOrigin = "anonymous", new Promise((t3, r2) => {
|
|
2514
|
+
e2.addEventListener("load", () => {
|
|
2515
|
+
t3();
|
|
2516
|
+
}, false), e2.addEventListener("error", (t4) => {
|
|
2517
|
+
r2(t4);
|
|
2518
|
+
}, false), document.body.appendChild(e2);
|
|
2519
|
+
});
|
|
2520
|
+
}
|
|
2521
|
+
try {
|
|
2522
|
+
importScripts(t2.toString());
|
|
2523
|
+
} catch (e2) {
|
|
2524
|
+
if (!(e2 instanceof TypeError)) throw e2;
|
|
2525
|
+
{
|
|
2526
|
+
let e3 = self.import;
|
|
2527
|
+
e3 ? await e3(t2.toString()) : await import(t2.toString());
|
|
2528
|
+
}
|
|
2529
|
+
}
|
|
2530
|
+
}
|
|
2531
|
+
function Uh(t2) {
|
|
2532
|
+
return void 0 !== t2.videoWidth ? [t2.videoWidth, t2.videoHeight] : void 0 !== t2.naturalWidth ? [t2.naturalWidth, t2.naturalHeight] : void 0 !== t2.displayWidth ? [t2.displayWidth, t2.displayHeight] : [t2.width, t2.height];
|
|
2533
|
+
}
|
|
2534
|
+
function Bh(t2, e2, r2) {
|
|
2535
|
+
t2.m || console.error("No wasm multistream support detected: ensure dependency inclusion of :gl_graph_runner_internal_multi_input target"), r2(e2 = t2.i.stringToNewUTF8(e2)), t2.i._free(e2);
|
|
2536
|
+
}
|
|
2537
|
+
function Gh(t2, e2, r2) {
|
|
2538
|
+
if (!t2.i.canvas) throw Error("No OpenGL canvas configured.");
|
|
2539
|
+
if (r2 ? t2.i._bindTextureToStream(r2) : t2.i._bindTextureToCanvas(), !(r2 = t2.i.canvas.getContext("webgl2") || t2.i.canvas.getContext("webgl"))) throw Error("Failed to obtain WebGL context from the provided canvas. `getContext()` should only be invoked with `webgl` or `webgl2`.");
|
|
2540
|
+
t2.i.gpuOriginForWebTexturesIsBottomLeft && r2.pixelStorei(r2.UNPACK_FLIP_Y_WEBGL, true), r2.texImage2D(r2.TEXTURE_2D, 0, r2.RGBA, r2.RGBA, r2.UNSIGNED_BYTE, e2), t2.i.gpuOriginForWebTexturesIsBottomLeft && r2.pixelStorei(r2.UNPACK_FLIP_Y_WEBGL, false);
|
|
2541
|
+
var [n2, i2] = Uh(e2);
|
|
2542
|
+
return !t2.j || n2 === t2.i.canvas.width && i2 === t2.i.canvas.height || (t2.i.canvas.width = n2, t2.i.canvas.height = i2), [n2, i2];
|
|
2543
|
+
}
|
|
2544
|
+
function jh(t2, e2, r2) {
|
|
2545
|
+
t2.m || console.error("No wasm multistream support detected: ensure dependency inclusion of :gl_graph_runner_internal_multi_input target");
|
|
2546
|
+
var n2 = new Uint32Array(e2.length);
|
|
2547
|
+
for (let r3 = 0; r3 < e2.length; r3++) n2[r3] = t2.i.stringToNewUTF8(e2[r3]);
|
|
2548
|
+
e2 = t2.i._malloc(4 * n2.length), t2.i.HEAPU32.set(n2, e2 >> 2), r2(e2);
|
|
2549
|
+
for (let e3 of n2) t2.i._free(e3);
|
|
2550
|
+
t2.i._free(e2);
|
|
2551
|
+
}
|
|
2552
|
+
function Vh(t2, e2, r2) {
|
|
2553
|
+
t2.i.simpleListeners = t2.i.simpleListeners || {}, t2.i.simpleListeners[e2] = r2;
|
|
2554
|
+
}
|
|
2555
|
+
function Hh(t2, e2, r2) {
|
|
2556
|
+
var n2 = [];
|
|
2557
|
+
t2.i.simpleListeners = t2.i.simpleListeners || {}, t2.i.simpleListeners[e2] = (t3, e3, i2) => {
|
|
2558
|
+
e3 ? (r2(n2, i2), n2 = []) : n2.push(t3);
|
|
2559
|
+
};
|
|
2560
|
+
}
|
|
2561
|
+
var Kh = class {
|
|
2562
|
+
constructor(t2, e2) {
|
|
2563
|
+
this.j = true, this.i = t2, this.g = null, this.h = 0, this.m = "function" == typeof this.i._addIntToInputStream, void 0 !== e2 ? this.i.canvas = e2 : Ph() ? this.i.canvas = new OffscreenCanvas(1, 1) : (console.warn("OffscreenCanvas not supported and GraphRunner constructor glCanvas parameter is undefined. Creating backup canvas."), this.i.canvas = document.createElement("canvas"));
|
|
2564
|
+
}
|
|
2565
|
+
async initializeGraph(t2) {
|
|
2566
|
+
var e2 = await (await fetch(t2)).arrayBuffer();
|
|
2567
|
+
t2 = !(t2.endsWith(".pbtxt") || t2.endsWith(".textproto")), this.setGraph(new Uint8Array(e2), t2);
|
|
2568
|
+
}
|
|
2569
|
+
setGraphFromString(t2) {
|
|
2570
|
+
this.setGraph(new TextEncoder().encode(t2), false);
|
|
2571
|
+
}
|
|
2572
|
+
setGraph(t2, e2) {
|
|
2573
|
+
var r2 = t2.length, n2 = this.i._malloc(r2);
|
|
2574
|
+
this.i.HEAPU8.set(t2, n2), e2 ? this.i._changeBinaryGraph(r2, n2) : this.i._changeTextGraph(r2, n2), this.i._free(n2);
|
|
2575
|
+
}
|
|
2576
|
+
configureAudio(t2, e2, r2, n2, i2) {
|
|
2577
|
+
this.i._configureAudio || console.warn('Attempting to use configureAudio without support for input audio. Is build dep ":gl_graph_runner_audio" missing?'), Bh(this, n2 || "input_audio", (n3) => {
|
|
2578
|
+
Bh(this, i2 = i2 || "audio_header", (i3) => {
|
|
2579
|
+
this.i._configureAudio(n3, i3, t2, e2 ?? 0, r2);
|
|
2580
|
+
});
|
|
2581
|
+
});
|
|
2582
|
+
}
|
|
2583
|
+
setAutoResizeCanvas(t2) {
|
|
2584
|
+
this.j = t2;
|
|
2585
|
+
}
|
|
2586
|
+
setAutoRenderToScreen(t2) {
|
|
2587
|
+
this.i._setAutoRenderToScreen(t2);
|
|
2588
|
+
}
|
|
2589
|
+
setGpuBufferVerticalFlip(t2) {
|
|
2590
|
+
this.i.gpuOriginForWebTexturesIsBottomLeft = t2;
|
|
2591
|
+
}
|
|
2592
|
+
ja(t2) {
|
|
2593
|
+
Vh(this, "__graph_config__", (e2) => {
|
|
2594
|
+
t2(e2);
|
|
2595
|
+
}), Bh(this, "__graph_config__", (t3) => {
|
|
2596
|
+
this.i._getGraphConfig(t3, void 0);
|
|
2597
|
+
}), delete this.i.simpleListeners.__graph_config__;
|
|
2598
|
+
}
|
|
2599
|
+
attachErrorListener(t2) {
|
|
2600
|
+
this.i.errorListener = t2;
|
|
2601
|
+
}
|
|
2602
|
+
attachEmptyPacketListener(t2, e2) {
|
|
2603
|
+
this.i.emptyPacketListeners = this.i.emptyPacketListeners || {}, this.i.emptyPacketListeners[t2] = e2;
|
|
2604
|
+
}
|
|
2605
|
+
addAudioToStream(t2, e2, r2) {
|
|
2606
|
+
this.addAudioToStreamWithShape(t2, 0, 0, e2, r2);
|
|
2607
|
+
}
|
|
2608
|
+
addAudioToStreamWithShape(t2, e2, r2, n2, i2) {
|
|
2609
|
+
var s2 = 4 * t2.length;
|
|
2610
|
+
this.h !== s2 && (this.g && this.i._free(this.g), this.g = this.i._malloc(s2), this.h = s2), this.i.HEAPF32.set(t2, this.g / 4), Bh(this, n2, (t3) => {
|
|
2611
|
+
this.i._addAudioToInputStream(this.g, e2, r2, t3, i2);
|
|
2612
|
+
});
|
|
2613
|
+
}
|
|
2614
|
+
addGpuBufferToStream(t2, e2, r2) {
|
|
2615
|
+
Bh(this, e2, (e3) => {
|
|
2616
|
+
var [n2, i2] = Gh(this, t2, e3);
|
|
2617
|
+
this.i._addBoundTextureToStream(e3, n2, i2, r2);
|
|
2618
|
+
});
|
|
2619
|
+
}
|
|
2620
|
+
addBoolToStream(t2, e2, r2) {
|
|
2621
|
+
Bh(this, e2, (e3) => {
|
|
2622
|
+
this.i._addBoolToInputStream(t2, e3, r2);
|
|
2623
|
+
});
|
|
2624
|
+
}
|
|
2625
|
+
addDoubleToStream(t2, e2, r2) {
|
|
2626
|
+
Bh(this, e2, (e3) => {
|
|
2627
|
+
this.i._addDoubleToInputStream(t2, e3, r2);
|
|
2628
|
+
});
|
|
2629
|
+
}
|
|
2630
|
+
addFloatToStream(t2, e2, r2) {
|
|
2631
|
+
Bh(this, e2, (e3) => {
|
|
2632
|
+
this.i._addFloatToInputStream(t2, e3, r2);
|
|
2633
|
+
});
|
|
2634
|
+
}
|
|
2635
|
+
addIntToStream(t2, e2, r2) {
|
|
2636
|
+
Bh(this, e2, (e3) => {
|
|
2637
|
+
this.i._addIntToInputStream(t2, e3, r2);
|
|
2638
|
+
});
|
|
2639
|
+
}
|
|
2640
|
+
addUintToStream(t2, e2, r2) {
|
|
2641
|
+
Bh(this, e2, (e3) => {
|
|
2642
|
+
this.i._addUintToInputStream(t2, e3, r2);
|
|
2643
|
+
});
|
|
2644
|
+
}
|
|
2645
|
+
addStringToStream(t2, e2, r2) {
|
|
2646
|
+
Bh(this, e2, (e3) => {
|
|
2647
|
+
Bh(this, t2, (t3) => {
|
|
2648
|
+
this.i._addStringToInputStream(t3, e3, r2);
|
|
2649
|
+
});
|
|
2650
|
+
});
|
|
2651
|
+
}
|
|
2652
|
+
addStringRecordToStream(t2, e2, r2) {
|
|
2653
|
+
Bh(this, e2, (e3) => {
|
|
2654
|
+
jh(this, Object.keys(t2), (n2) => {
|
|
2655
|
+
jh(this, Object.values(t2), (i2) => {
|
|
2656
|
+
this.i._addFlatHashMapToInputStream(n2, i2, Object.keys(t2).length, e3, r2);
|
|
2657
|
+
});
|
|
2658
|
+
});
|
|
2659
|
+
});
|
|
2660
|
+
}
|
|
2661
|
+
addProtoToStream(t2, e2, r2, n2) {
|
|
2662
|
+
Bh(this, r2, (r3) => {
|
|
2663
|
+
Bh(this, e2, (e3) => {
|
|
2664
|
+
var i2 = this.i._malloc(t2.length);
|
|
2665
|
+
this.i.HEAPU8.set(t2, i2), this.i._addProtoToInputStream(i2, t2.length, e3, r3, n2), this.i._free(i2);
|
|
2666
|
+
});
|
|
2667
|
+
});
|
|
2668
|
+
}
|
|
2669
|
+
addEmptyPacketToStream(t2, e2) {
|
|
2670
|
+
Bh(this, t2, (t3) => {
|
|
2671
|
+
this.i._addEmptyPacketToInputStream(t3, e2);
|
|
2672
|
+
});
|
|
2673
|
+
}
|
|
2674
|
+
addBoolVectorToStream(t2, e2, r2) {
|
|
2675
|
+
Bh(this, e2, (e3) => {
|
|
2676
|
+
var n2 = this.i._allocateBoolVector(t2.length);
|
|
2677
|
+
if (!n2) throw Error("Unable to allocate new bool vector on heap.");
|
|
2678
|
+
for (let e4 of t2) this.i._addBoolVectorEntry(n2, e4);
|
|
2679
|
+
this.i._addBoolVectorToInputStream(n2, e3, r2);
|
|
2680
|
+
});
|
|
2681
|
+
}
|
|
2682
|
+
addDoubleVectorToStream(t2, e2, r2) {
|
|
2683
|
+
Bh(this, e2, (e3) => {
|
|
2684
|
+
var n2 = this.i._allocateDoubleVector(t2.length);
|
|
2685
|
+
if (!n2) throw Error("Unable to allocate new double vector on heap.");
|
|
2686
|
+
for (let e4 of t2) this.i._addDoubleVectorEntry(n2, e4);
|
|
2687
|
+
this.i._addDoubleVectorToInputStream(n2, e3, r2);
|
|
2688
|
+
});
|
|
2689
|
+
}
|
|
2690
|
+
addFloatVectorToStream(t2, e2, r2) {
|
|
2691
|
+
Bh(this, e2, (e3) => {
|
|
2692
|
+
var n2 = this.i._allocateFloatVector(t2.length);
|
|
2693
|
+
if (!n2) throw Error("Unable to allocate new float vector on heap.");
|
|
2694
|
+
for (let e4 of t2) this.i._addFloatVectorEntry(n2, e4);
|
|
2695
|
+
this.i._addFloatVectorToInputStream(n2, e3, r2);
|
|
2696
|
+
});
|
|
2697
|
+
}
|
|
2698
|
+
addIntVectorToStream(t2, e2, r2) {
|
|
2699
|
+
Bh(this, e2, (e3) => {
|
|
2700
|
+
var n2 = this.i._allocateIntVector(t2.length);
|
|
2701
|
+
if (!n2) throw Error("Unable to allocate new int vector on heap.");
|
|
2702
|
+
for (let e4 of t2) this.i._addIntVectorEntry(n2, e4);
|
|
2703
|
+
this.i._addIntVectorToInputStream(n2, e3, r2);
|
|
2704
|
+
});
|
|
2705
|
+
}
|
|
2706
|
+
addUintVectorToStream(t2, e2, r2) {
|
|
2707
|
+
Bh(this, e2, (e3) => {
|
|
2708
|
+
var n2 = this.i._allocateUintVector(t2.length);
|
|
2709
|
+
if (!n2) throw Error("Unable to allocate new unsigned int vector on heap.");
|
|
2710
|
+
for (let e4 of t2) this.i._addUintVectorEntry(n2, e4);
|
|
2711
|
+
this.i._addUintVectorToInputStream(n2, e3, r2);
|
|
2712
|
+
});
|
|
2713
|
+
}
|
|
2714
|
+
addStringVectorToStream(t2, e2, r2) {
|
|
2715
|
+
Bh(this, e2, (e3) => {
|
|
2716
|
+
var n2 = this.i._allocateStringVector(t2.length);
|
|
2717
|
+
if (!n2) throw Error("Unable to allocate new string vector on heap.");
|
|
2718
|
+
for (let e4 of t2) Bh(this, e4, (t3) => {
|
|
2719
|
+
this.i._addStringVectorEntry(n2, t3);
|
|
2720
|
+
});
|
|
2721
|
+
this.i._addStringVectorToInputStream(n2, e3, r2);
|
|
2722
|
+
});
|
|
2723
|
+
}
|
|
2724
|
+
addBoolToInputSidePacket(t2, e2) {
|
|
2725
|
+
Bh(this, e2, (e3) => {
|
|
2726
|
+
this.i._addBoolToInputSidePacket(t2, e3);
|
|
2727
|
+
});
|
|
2728
|
+
}
|
|
2729
|
+
addDoubleToInputSidePacket(t2, e2) {
|
|
2730
|
+
Bh(this, e2, (e3) => {
|
|
2731
|
+
this.i._addDoubleToInputSidePacket(t2, e3);
|
|
2732
|
+
});
|
|
2733
|
+
}
|
|
2734
|
+
addFloatToInputSidePacket(t2, e2) {
|
|
2735
|
+
Bh(this, e2, (e3) => {
|
|
2736
|
+
this.i._addFloatToInputSidePacket(t2, e3);
|
|
2737
|
+
});
|
|
2738
|
+
}
|
|
2739
|
+
addIntToInputSidePacket(t2, e2) {
|
|
2740
|
+
Bh(this, e2, (e3) => {
|
|
2741
|
+
this.i._addIntToInputSidePacket(t2, e3);
|
|
2742
|
+
});
|
|
2743
|
+
}
|
|
2744
|
+
addUintToInputSidePacket(t2, e2) {
|
|
2745
|
+
Bh(this, e2, (e3) => {
|
|
2746
|
+
this.i._addUintToInputSidePacket(t2, e3);
|
|
2747
|
+
});
|
|
2748
|
+
}
|
|
2749
|
+
addStringToInputSidePacket(t2, e2) {
|
|
2750
|
+
Bh(this, e2, (e3) => {
|
|
2751
|
+
Bh(this, t2, (t3) => {
|
|
2752
|
+
this.i._addStringToInputSidePacket(t3, e3);
|
|
2753
|
+
});
|
|
2754
|
+
});
|
|
2755
|
+
}
|
|
2756
|
+
addProtoToInputSidePacket(t2, e2, r2) {
|
|
2757
|
+
Bh(this, r2, (r3) => {
|
|
2758
|
+
Bh(this, e2, (e3) => {
|
|
2759
|
+
var n2 = this.i._malloc(t2.length);
|
|
2760
|
+
this.i.HEAPU8.set(t2, n2), this.i._addProtoToInputSidePacket(n2, t2.length, e3, r3), this.i._free(n2);
|
|
2761
|
+
});
|
|
2762
|
+
});
|
|
2763
|
+
}
|
|
2764
|
+
addBoolVectorToInputSidePacket(t2, e2) {
|
|
2765
|
+
Bh(this, e2, (e3) => {
|
|
2766
|
+
var r2 = this.i._allocateBoolVector(t2.length);
|
|
2767
|
+
if (!r2) throw Error("Unable to allocate new bool vector on heap.");
|
|
2768
|
+
for (let e4 of t2) this.i._addBoolVectorEntry(r2, e4);
|
|
2769
|
+
this.i._addBoolVectorToInputSidePacket(r2, e3);
|
|
2770
|
+
});
|
|
2771
|
+
}
|
|
2772
|
+
addDoubleVectorToInputSidePacket(t2, e2) {
|
|
2773
|
+
Bh(this, e2, (e3) => {
|
|
2774
|
+
var r2 = this.i._allocateDoubleVector(t2.length);
|
|
2775
|
+
if (!r2) throw Error("Unable to allocate new double vector on heap.");
|
|
2776
|
+
for (let e4 of t2) this.i._addDoubleVectorEntry(r2, e4);
|
|
2777
|
+
this.i._addDoubleVectorToInputSidePacket(r2, e3);
|
|
2778
|
+
});
|
|
2779
|
+
}
|
|
2780
|
+
addFloatVectorToInputSidePacket(t2, e2) {
|
|
2781
|
+
Bh(this, e2, (e3) => {
|
|
2782
|
+
var r2 = this.i._allocateFloatVector(t2.length);
|
|
2783
|
+
if (!r2) throw Error("Unable to allocate new float vector on heap.");
|
|
2784
|
+
for (let e4 of t2) this.i._addFloatVectorEntry(r2, e4);
|
|
2785
|
+
this.i._addFloatVectorToInputSidePacket(r2, e3);
|
|
2786
|
+
});
|
|
2787
|
+
}
|
|
2788
|
+
addIntVectorToInputSidePacket(t2, e2) {
|
|
2789
|
+
Bh(this, e2, (e3) => {
|
|
2790
|
+
var r2 = this.i._allocateIntVector(t2.length);
|
|
2791
|
+
if (!r2) throw Error("Unable to allocate new int vector on heap.");
|
|
2792
|
+
for (let e4 of t2) this.i._addIntVectorEntry(r2, e4);
|
|
2793
|
+
this.i._addIntVectorToInputSidePacket(r2, e3);
|
|
2794
|
+
});
|
|
2795
|
+
}
|
|
2796
|
+
addUintVectorToInputSidePacket(t2, e2) {
|
|
2797
|
+
Bh(this, e2, (e3) => {
|
|
2798
|
+
var r2 = this.i._allocateUintVector(t2.length);
|
|
2799
|
+
if (!r2) throw Error("Unable to allocate new unsigned int vector on heap.");
|
|
2800
|
+
for (let e4 of t2) this.i._addUintVectorEntry(r2, e4);
|
|
2801
|
+
this.i._addUintVectorToInputSidePacket(r2, e3);
|
|
2802
|
+
});
|
|
2803
|
+
}
|
|
2804
|
+
addStringVectorToInputSidePacket(t2, e2) {
|
|
2805
|
+
Bh(this, e2, (e3) => {
|
|
2806
|
+
var r2 = this.i._allocateStringVector(t2.length);
|
|
2807
|
+
if (!r2) throw Error("Unable to allocate new string vector on heap.");
|
|
2808
|
+
for (let e4 of t2) Bh(this, e4, (t3) => {
|
|
2809
|
+
this.i._addStringVectorEntry(r2, t3);
|
|
2810
|
+
});
|
|
2811
|
+
this.i._addStringVectorToInputSidePacket(r2, e3);
|
|
2812
|
+
});
|
|
2813
|
+
}
|
|
2814
|
+
attachBoolListener(t2, e2) {
|
|
2815
|
+
Vh(this, t2, e2), Bh(this, t2, (t3) => {
|
|
2816
|
+
this.i._attachBoolListener(t3);
|
|
2817
|
+
});
|
|
2818
|
+
}
|
|
2819
|
+
attachBoolVectorListener(t2, e2) {
|
|
2820
|
+
Hh(this, t2, e2), Bh(this, t2, (t3) => {
|
|
2821
|
+
this.i._attachBoolVectorListener(t3);
|
|
2822
|
+
});
|
|
2823
|
+
}
|
|
2824
|
+
attachIntListener(t2, e2) {
|
|
2825
|
+
Vh(this, t2, e2), Bh(this, t2, (t3) => {
|
|
2826
|
+
this.i._attachIntListener(t3);
|
|
2827
|
+
});
|
|
2828
|
+
}
|
|
2829
|
+
attachIntVectorListener(t2, e2) {
|
|
2830
|
+
Hh(this, t2, e2), Bh(this, t2, (t3) => {
|
|
2831
|
+
this.i._attachIntVectorListener(t3);
|
|
2832
|
+
});
|
|
2833
|
+
}
|
|
2834
|
+
attachUintListener(t2, e2) {
|
|
2835
|
+
Vh(this, t2, e2), Bh(this, t2, (t3) => {
|
|
2836
|
+
this.i._attachUintListener(t3);
|
|
2837
|
+
});
|
|
2838
|
+
}
|
|
2839
|
+
attachUintVectorListener(t2, e2) {
|
|
2840
|
+
Hh(this, t2, e2), Bh(this, t2, (t3) => {
|
|
2841
|
+
this.i._attachUintVectorListener(t3);
|
|
2842
|
+
});
|
|
2843
|
+
}
|
|
2844
|
+
attachDoubleListener(t2, e2) {
|
|
2845
|
+
Vh(this, t2, e2), Bh(this, t2, (t3) => {
|
|
2846
|
+
this.i._attachDoubleListener(t3);
|
|
2847
|
+
});
|
|
2848
|
+
}
|
|
2849
|
+
attachDoubleVectorListener(t2, e2) {
|
|
2850
|
+
Hh(this, t2, e2), Bh(this, t2, (t3) => {
|
|
2851
|
+
this.i._attachDoubleVectorListener(t3);
|
|
2852
|
+
});
|
|
2853
|
+
}
|
|
2854
|
+
attachFloatListener(t2, e2) {
|
|
2855
|
+
Vh(this, t2, e2), Bh(this, t2, (t3) => {
|
|
2856
|
+
this.i._attachFloatListener(t3);
|
|
2857
|
+
});
|
|
2858
|
+
}
|
|
2859
|
+
attachFloatVectorListener(t2, e2) {
|
|
2860
|
+
Hh(this, t2, e2), Bh(this, t2, (t3) => {
|
|
2861
|
+
this.i._attachFloatVectorListener(t3);
|
|
2862
|
+
});
|
|
2863
|
+
}
|
|
2864
|
+
attachStringListener(t2, e2) {
|
|
2865
|
+
Vh(this, t2, e2), Bh(this, t2, (t3) => {
|
|
2866
|
+
this.i._attachStringListener(t3);
|
|
2867
|
+
});
|
|
2868
|
+
}
|
|
2869
|
+
attachStringVectorListener(t2, e2) {
|
|
2870
|
+
Hh(this, t2, e2), Bh(this, t2, (t3) => {
|
|
2871
|
+
this.i._attachStringVectorListener(t3);
|
|
2872
|
+
});
|
|
2873
|
+
}
|
|
2874
|
+
attachProtoListener(t2, e2, r2) {
|
|
2875
|
+
Vh(this, t2, e2), Bh(this, t2, (t3) => {
|
|
2876
|
+
this.i._attachProtoListener(t3, r2 || false);
|
|
2877
|
+
});
|
|
2878
|
+
}
|
|
2879
|
+
attachProtoVectorListener(t2, e2, r2) {
|
|
2880
|
+
Hh(this, t2, e2), Bh(this, t2, (t3) => {
|
|
2881
|
+
this.i._attachProtoVectorListener(t3, r2 || false);
|
|
2882
|
+
});
|
|
2883
|
+
}
|
|
2884
|
+
attachAudioListener(t2, e2, r2) {
|
|
2885
|
+
this.i._attachAudioListener || console.warn('Attempting to use attachAudioListener without support for output audio. Is build dep ":gl_graph_runner_audio_out" missing?'), Vh(this, t2, (t3, r3) => {
|
|
2886
|
+
t3 = new Float32Array(t3.buffer, t3.byteOffset, t3.length / 4), e2(t3, r3);
|
|
2887
|
+
}), Bh(this, t2, (t3) => {
|
|
2888
|
+
this.i._attachAudioListener(t3, r2 || false);
|
|
2889
|
+
});
|
|
2890
|
+
}
|
|
2891
|
+
finishProcessing() {
|
|
2892
|
+
this.i._waitUntilIdle();
|
|
2893
|
+
}
|
|
2894
|
+
closeGraph() {
|
|
2895
|
+
this.i._closeGraph(), this.i.simpleListeners = void 0, this.i.emptyPacketListeners = void 0;
|
|
2896
|
+
}
|
|
2897
|
+
};
|
|
2898
|
+
function Xh(t2) {
|
|
2899
|
+
return class extends t2 {
|
|
2900
|
+
get pa() {
|
|
2901
|
+
return this.i;
|
|
2902
|
+
}
|
|
2903
|
+
Sa() {
|
|
2904
|
+
if ("function" == typeof this.pa._mediapipeLoggerGetEncodedApiKey) {
|
|
2905
|
+
let t3 = this.pa._mediapipeLoggerGetEncodedApiKey();
|
|
2906
|
+
return this.pa._decodeBase64(t3);
|
|
2907
|
+
}
|
|
2908
|
+
}
|
|
2909
|
+
};
|
|
2910
|
+
}
|
|
2911
|
+
function Wh(t2) {
|
|
2912
|
+
return class extends t2 {
|
|
2913
|
+
Za() {
|
|
2914
|
+
this.i._registerModelResourcesGraphService();
|
|
2915
|
+
}
|
|
2916
|
+
};
|
|
2917
|
+
}
|
|
2918
|
+
var zh = Xh(Wh(Kh)), Yh = class extends zh {
|
|
2919
|
+
};
|
|
2920
|
+
async function qh(t2, e2, r2, n2) {
|
|
2921
|
+
return t2 = await (async (t3, e3, r3, n3, i2) => {
|
|
2922
|
+
if (e3 && await $h(e3), !self.ModuleFactory) throw Error("ModuleFactory not set.");
|
|
2923
|
+
if (r3 && (await $h(r3), !self.ModuleFactory)) throw Error("ModuleFactory not set.");
|
|
2924
|
+
return self.Module && i2 && ((e3 = self.Module).locateFile = i2.locateFile, i2.mainScriptUrlOrBlob && (e3.mainScriptUrlOrBlob = i2.mainScriptUrlOrBlob)), i2 = await self.ModuleFactory(self.Module || i2), self.ModuleFactory = self.Module = void 0, new t3(i2, n3);
|
|
2925
|
+
})(t2, r2.wasmLoaderPath, r2.assetLoaderPath, e2, { locateFile: (t3) => t3.endsWith(".wasm") ? r2.wasmBinaryPath.toString() : r2.assetBinaryPath && t3.endsWith(".data") ? r2.assetBinaryPath.toString() : t3 }), function(t3, e3) {
|
|
2926
|
+
e3 = e3.runningMode ?? "";
|
|
2927
|
+
var r3 = t3.g.Sa();
|
|
2928
|
+
t3.m = new Dh(t3.C(), e3, r3);
|
|
2929
|
+
}(t2, n2), await t2.v(n2), t2;
|
|
2930
|
+
}
|
|
2931
|
+
async function Jh(t2, e2, r2, n2) {
|
|
2932
|
+
return qh(t2, e2, r2, n2);
|
|
2933
|
+
}
|
|
2934
|
+
function Zh(t2, e2) {
|
|
2935
|
+
var r2 = Sr(t2.baseOptions, Wo, 1) || new Wo();
|
|
2936
|
+
"string" == typeof e2 ? (ar(r2, 2, ve(e2)), ar(r2, 1)) : e2 instanceof Uint8Array && (ar(r2, 1, ct(e2, false)), ar(r2, 2)), Ir(t2.baseOptions, 0, 1, r2);
|
|
2937
|
+
}
|
|
2938
|
+
function Qh(t2) {
|
|
2939
|
+
try {
|
|
2940
|
+
let e2 = t2.K.length;
|
|
2941
|
+
if (1 === e2) throw Error(t2.K[0].message);
|
|
2942
|
+
if (e2 > 1) throw Error("Encountered multiple errors: " + t2.K.map((t3) => t3.message).join(", "));
|
|
2943
|
+
} finally {
|
|
2944
|
+
t2.K = [];
|
|
2945
|
+
}
|
|
2946
|
+
}
|
|
2947
|
+
function tu(t2, e2) {
|
|
2948
|
+
t2.I = Math.max(t2.I, e2);
|
|
2949
|
+
}
|
|
2950
|
+
function eu(t2, e2) {
|
|
2951
|
+
t2.D = new ho(), Hr(t2.D, 2, "PassThroughCalculator"), oo(t2.D, "free_memory"), ao(t2.D, "free_memory_unused_out"), po(e2, "free_memory"), fo(e2, t2.D);
|
|
2952
|
+
}
|
|
2953
|
+
function ru(t2, e2) {
|
|
2954
|
+
oo(t2.D, e2), ao(t2.D, e2 + "_unused_out");
|
|
2955
|
+
}
|
|
2956
|
+
function nu(t2) {
|
|
2957
|
+
t2.g.addBoolToStream(true, "free_memory", t2.I);
|
|
2958
|
+
}
|
|
2959
|
+
var iu = class {
|
|
2960
|
+
constructor(t2) {
|
|
2961
|
+
this.g = t2, this.K = [], this.I = 0, this.g.setAutoRenderToScreen(false);
|
|
2962
|
+
}
|
|
2963
|
+
j(t2, e2 = true) {
|
|
2964
|
+
if (e2) {
|
|
2965
|
+
let e3 = t2.baseOptions || {};
|
|
2966
|
+
if (t2.baseOptions?.modelAssetBuffer && t2.baseOptions?.modelAssetPath) throw Error("Cannot set both baseOptions.modelAssetPath and baseOptions.modelAssetBuffer");
|
|
2967
|
+
if (!(Sr(this.baseOptions, Wo, 1)?.g() || Sr(this.baseOptions, Wo, 1)?.j() || t2.baseOptions?.modelAssetBuffer || t2.baseOptions?.modelAssetPath)) throw Error("Either baseOptions.modelAssetPath or baseOptions.modelAssetBuffer must be set");
|
|
2968
|
+
if (function(t3, e4) {
|
|
2969
|
+
var r2 = Sr(t3.baseOptions, Ko, 3);
|
|
2970
|
+
if (!r2) {
|
|
2971
|
+
var n2 = r2 = new Ko(), i2 = new Qs();
|
|
2972
|
+
Fr(n2, 4, Xo, i2);
|
|
2973
|
+
}
|
|
2974
|
+
"delegate" in e4 && ("GPU" === e4.delegate ? (e4 = r2, n2 = new Ys(), Fr(e4, 2, Xo, n2)) : (e4 = r2, n2 = new Qs(), Fr(e4, 4, Xo, n2))), Ir(t3.baseOptions, 0, 3, r2);
|
|
2975
|
+
}(this, e3), e3.modelAssetPath) return fetch(e3.modelAssetPath.toString()).then((t3) => {
|
|
2976
|
+
if (t3.ok) return t3.arrayBuffer();
|
|
2977
|
+
throw Error(`Failed to fetch model: ${e3.modelAssetPath} (${t3.status})`);
|
|
2978
|
+
}).then((t3) => {
|
|
2979
|
+
try {
|
|
2980
|
+
this.g.i.FS_unlink("/model.dat");
|
|
2981
|
+
} catch {
|
|
2982
|
+
}
|
|
2983
|
+
this.g.i.FS_createDataFile("/", "model.dat", new Uint8Array(t3), true, false, false), Zh(this, "/model.dat"), this.o(), this.L();
|
|
2984
|
+
});
|
|
2985
|
+
if (e3.modelAssetBuffer instanceof Uint8Array) Zh(this, e3.modelAssetBuffer);
|
|
2986
|
+
else if (e3.modelAssetBuffer) return async function(t3) {
|
|
2987
|
+
for (var e4 = [], r2 = 0; ; ) {
|
|
2988
|
+
let { done: n2, value: i2 } = await t3.read();
|
|
2989
|
+
if (n2) break;
|
|
2990
|
+
e4.push(i2), r2 += i2.length;
|
|
2991
|
+
}
|
|
2992
|
+
if (0 === e4.length) return new Uint8Array(0);
|
|
2993
|
+
if (1 === e4.length) return e4[0];
|
|
2994
|
+
t3 = new Uint8Array(r2), r2 = 0;
|
|
2995
|
+
for (let n2 of e4) t3.set(n2, r2), r2 += n2.length;
|
|
2996
|
+
return t3;
|
|
2997
|
+
}(e3.modelAssetBuffer).then((t3) => {
|
|
2998
|
+
Zh(this, t3), this.o(), this.L();
|
|
2999
|
+
});
|
|
3000
|
+
}
|
|
3001
|
+
return this.o(), this.L(), Promise.resolve();
|
|
3002
|
+
}
|
|
3003
|
+
L() {
|
|
3004
|
+
}
|
|
3005
|
+
ja() {
|
|
3006
|
+
var t2;
|
|
3007
|
+
if (this.g.ja((e2) => {
|
|
3008
|
+
t2 = _o(e2);
|
|
3009
|
+
}), !t2) throw Error("Failed to retrieve CalculatorGraphConfig");
|
|
3010
|
+
return t2;
|
|
3011
|
+
}
|
|
3012
|
+
setGraph(t2, e2) {
|
|
3013
|
+
this.g.attachErrorListener((t3, e3) => {
|
|
3014
|
+
this.K.push(Error(e3));
|
|
3015
|
+
}), this.g.Za(), this.g.setGraph(t2, e2), this.m?.ya(), this.D = void 0, Qh(this);
|
|
3016
|
+
}
|
|
3017
|
+
finishProcessing(t2) {
|
|
3018
|
+
this.g.finishProcessing(), Qh(this), this.m && void 0 !== t2 && this.m.za(t2);
|
|
3019
|
+
}
|
|
3020
|
+
close() {
|
|
3021
|
+
this.D = void 0, this.m?.xa(), this.m?.close(), this.g.closeGraph();
|
|
3022
|
+
}
|
|
3023
|
+
};
|
|
3024
|
+
function su(t2, e2) {
|
|
3025
|
+
if (!t2) throw Error(`Unable to obtain required WebGL resource: ${e2}`);
|
|
3026
|
+
return t2;
|
|
3027
|
+
}
|
|
3028
|
+
iu.prototype.close = iu.prototype.close;
|
|
3029
|
+
class ou {
|
|
3030
|
+
constructor(t2, e2, r2, n2) {
|
|
3031
|
+
this.g = t2, this.h = e2, this.m = r2, this.j = n2;
|
|
3032
|
+
}
|
|
3033
|
+
bind() {
|
|
3034
|
+
this.g.bindVertexArray(this.h);
|
|
3035
|
+
}
|
|
3036
|
+
close() {
|
|
3037
|
+
this.g.deleteVertexArray(this.h), this.g.deleteBuffer(this.m), this.g.deleteBuffer(this.j);
|
|
3038
|
+
}
|
|
3039
|
+
}
|
|
3040
|
+
function au(t2, e2, r2) {
|
|
3041
|
+
var n2 = t2.g;
|
|
3042
|
+
if (r2 = su(n2.createShader(r2), "Failed to create WebGL shader"), n2.shaderSource(r2, e2), n2.compileShader(r2), !n2.getShaderParameter(r2, n2.COMPILE_STATUS)) throw Error(`Could not compile WebGL shader: ${n2.getShaderInfoLog(r2)}`);
|
|
3043
|
+
return n2.attachShader(t2.h, r2), r2;
|
|
3044
|
+
}
|
|
3045
|
+
function hu(t2, e2) {
|
|
3046
|
+
var r2 = t2.g, n2 = su(r2.createVertexArray(), "Failed to create vertex array");
|
|
3047
|
+
r2.bindVertexArray(n2);
|
|
3048
|
+
var i2 = su(r2.createBuffer(), "Failed to create buffer");
|
|
3049
|
+
r2.bindBuffer(r2.ARRAY_BUFFER, i2), r2.enableVertexAttribArray(t2.F), r2.vertexAttribPointer(t2.F, 2, r2.FLOAT, false, 0, 0), r2.bufferData(r2.ARRAY_BUFFER, new Float32Array([-1, -1, -1, 1, 1, 1, 1, -1]), r2.STATIC_DRAW);
|
|
3050
|
+
var s2 = su(r2.createBuffer(), "Failed to create buffer");
|
|
3051
|
+
return r2.bindBuffer(r2.ARRAY_BUFFER, s2), r2.enableVertexAttribArray(t2.K), r2.vertexAttribPointer(t2.K, 2, r2.FLOAT, false, 0, 0), r2.bufferData(r2.ARRAY_BUFFER, new Float32Array(e2 ? [0, 1, 0, 0, 1, 0, 1, 1] : [0, 0, 0, 1, 1, 1, 1, 0]), r2.STATIC_DRAW), r2.bindBuffer(r2.ARRAY_BUFFER, null), r2.bindVertexArray(null), new ou(r2, n2, i2, s2);
|
|
3052
|
+
}
|
|
3053
|
+
function uu(t2, e2) {
|
|
3054
|
+
if (t2.g) {
|
|
3055
|
+
if (e2 !== t2.g) throw Error("Cannot change GL context once initialized");
|
|
3056
|
+
} else t2.g = e2;
|
|
3057
|
+
}
|
|
3058
|
+
function cu(t2, e2, r2, n2) {
|
|
3059
|
+
return uu(t2, e2), t2.h || (t2.m(), t2.I()), r2 ? (t2.l || (t2.l = hu(t2, true)), r2 = t2.l) : (t2.D || (t2.D = hu(t2, false)), r2 = t2.D), e2.useProgram(t2.h), r2.bind(), t2.j(), t2 = n2(), r2.g.bindVertexArray(null), t2;
|
|
3060
|
+
}
|
|
3061
|
+
function lu(t2, e2, r2) {
|
|
3062
|
+
return uu(t2, e2), t2 = su(e2.createTexture(), "Failed to create texture"), e2.bindTexture(e2.TEXTURE_2D, t2), e2.texParameteri(e2.TEXTURE_2D, e2.TEXTURE_WRAP_S, e2.CLAMP_TO_EDGE), e2.texParameteri(e2.TEXTURE_2D, e2.TEXTURE_WRAP_T, e2.CLAMP_TO_EDGE), e2.texParameteri(e2.TEXTURE_2D, e2.TEXTURE_MIN_FILTER, r2 ?? e2.LINEAR), e2.texParameteri(e2.TEXTURE_2D, e2.TEXTURE_MAG_FILTER, r2 ?? e2.LINEAR), e2.bindTexture(e2.TEXTURE_2D, null), t2;
|
|
3063
|
+
}
|
|
3064
|
+
function du(t2, e2, r2) {
|
|
3065
|
+
uu(t2, e2), t2.C || (t2.C = su(e2.createFramebuffer(), "Failed to create framebuffe.")), e2.bindFramebuffer(e2.FRAMEBUFFER, t2.C), e2.framebufferTexture2D(e2.FRAMEBUFFER, e2.COLOR_ATTACHMENT0, e2.TEXTURE_2D, r2, 0);
|
|
3066
|
+
}
|
|
3067
|
+
function fu(t2) {
|
|
3068
|
+
t2.g?.bindFramebuffer(t2.g.FRAMEBUFFER, null);
|
|
3069
|
+
}
|
|
3070
|
+
var pu = class {
|
|
3071
|
+
B() {
|
|
3072
|
+
return "\n precision mediump float;\n varying vec2 vTex;\n uniform sampler2D inputTexture;\n void main() {\n gl_FragColor = texture2D(inputTexture, vTex);\n }\n ";
|
|
3073
|
+
}
|
|
3074
|
+
m() {
|
|
3075
|
+
var t2 = this.g;
|
|
3076
|
+
if (this.h = su(t2.createProgram(), "Failed to create WebGL program"), this.da = au(this, "\n attribute vec2 aVertex;\n attribute vec2 aTex;\n varying vec2 vTex;\n void main(void) {\n gl_Position = vec4(aVertex, 0.0, 1.0);\n vTex = aTex;\n }", t2.VERTEX_SHADER), this.Z = au(this, this.B(), t2.FRAGMENT_SHADER), t2.linkProgram(this.h), !t2.getProgramParameter(this.h, t2.LINK_STATUS)) throw Error(`Error during program linking: ${t2.getProgramInfoLog(this.h)}`);
|
|
3077
|
+
this.F = t2.getAttribLocation(this.h, "aVertex"), this.K = t2.getAttribLocation(this.h, "aTex");
|
|
3078
|
+
}
|
|
3079
|
+
I() {
|
|
3080
|
+
}
|
|
3081
|
+
j() {
|
|
3082
|
+
}
|
|
3083
|
+
close() {
|
|
3084
|
+
if (this.h) {
|
|
3085
|
+
let t2 = this.g;
|
|
3086
|
+
t2.deleteProgram(this.h), t2.deleteShader(this.da), t2.deleteShader(this.Z);
|
|
3087
|
+
}
|
|
3088
|
+
this.C && this.g.deleteFramebuffer(this.C), this.D && this.D.close(), this.l && this.l.close();
|
|
3089
|
+
}
|
|
3090
|
+
};
|
|
3091
|
+
function vu(t2, e2) {
|
|
3092
|
+
switch (e2) {
|
|
3093
|
+
case 0:
|
|
3094
|
+
return t2.g.find((t3) => t3 instanceof Uint8Array);
|
|
3095
|
+
case 1:
|
|
3096
|
+
return t2.g.find((t3) => t3 instanceof Float32Array);
|
|
3097
|
+
case 2:
|
|
3098
|
+
return t2.g.find((t3) => "undefined" != typeof WebGLTexture && t3 instanceof WebGLTexture);
|
|
3099
|
+
default:
|
|
3100
|
+
throw Error(`Type is not supported: ${e2}`);
|
|
3101
|
+
}
|
|
3102
|
+
}
|
|
3103
|
+
function _u(t2) {
|
|
3104
|
+
var e2 = vu(t2, 1);
|
|
3105
|
+
if (!e2) {
|
|
3106
|
+
if (e2 = vu(t2, 0)) e2 = new Float32Array(e2).map((t3) => t3 / 255);
|
|
3107
|
+
else {
|
|
3108
|
+
e2 = new Float32Array(t2.width * t2.height);
|
|
3109
|
+
let n2 = Eu(t2);
|
|
3110
|
+
var r2 = wu(t2);
|
|
3111
|
+
if (du(r2, n2, yu(t2)), "iPad Simulator;iPhone Simulator;iPod Simulator;iPad;iPhone;iPod".split(";").includes(navigator.platform) || navigator.userAgent.includes("Mac") && "document" in self && "ontouchend" in self.document) {
|
|
3112
|
+
r2 = new Float32Array(t2.width * t2.height * 4), n2.readPixels(0, 0, t2.width, t2.height, n2.RGBA, n2.FLOAT, r2);
|
|
3113
|
+
for (let t3 = 0, n3 = 0; t3 < e2.length; ++t3, n3 += 4) e2[t3] = r2[n3];
|
|
3114
|
+
} else n2.readPixels(0, 0, t2.width, t2.height, n2.RED, n2.FLOAT, e2);
|
|
3115
|
+
}
|
|
3116
|
+
t2.g.push(e2);
|
|
3117
|
+
}
|
|
3118
|
+
return e2;
|
|
3119
|
+
}
|
|
3120
|
+
function yu(t2) {
|
|
3121
|
+
var e2 = vu(t2, 2);
|
|
3122
|
+
if (!e2) {
|
|
3123
|
+
let r2 = Eu(t2);
|
|
3124
|
+
e2 = bu(t2);
|
|
3125
|
+
let n2 = _u(t2), i2 = Au(t2);
|
|
3126
|
+
r2.texImage2D(r2.TEXTURE_2D, 0, i2, t2.width, t2.height, 0, r2.RED, r2.FLOAT, n2), Tu(t2);
|
|
3127
|
+
}
|
|
3128
|
+
return e2;
|
|
3129
|
+
}
|
|
3130
|
+
function Eu(t2) {
|
|
3131
|
+
if (!t2.canvas) throw Error("Conversion to different image formats require that a canvas is passed when initializing the image.");
|
|
3132
|
+
return t2.h || (t2.h = su(t2.canvas.getContext("webgl2"), "You cannot use a canvas that is already bound to a different type of rendering context.")), t2.h;
|
|
3133
|
+
}
|
|
3134
|
+
function Au(t2) {
|
|
3135
|
+
if (t2 = Eu(t2), !ku) if (t2.getExtension("EXT_color_buffer_float") && t2.getExtension("OES_texture_float_linear") && t2.getExtension("EXT_float_blend")) ku = t2.R32F;
|
|
3136
|
+
else {
|
|
3137
|
+
if (!t2.getExtension("EXT_color_buffer_half_float")) throw Error("GPU does not fully support 4-channel float32 or float16 formats");
|
|
3138
|
+
ku = t2.R16F;
|
|
3139
|
+
}
|
|
3140
|
+
return ku;
|
|
3141
|
+
}
|
|
3142
|
+
function wu(t2) {
|
|
3143
|
+
return t2.j || (t2.j = new pu()), t2.j;
|
|
3144
|
+
}
|
|
3145
|
+
function bu(t2) {
|
|
3146
|
+
var e2 = Eu(t2);
|
|
3147
|
+
e2.viewport(0, 0, t2.width, t2.height), e2.activeTexture(e2.TEXTURE0);
|
|
3148
|
+
var r2 = vu(t2, 2);
|
|
3149
|
+
return r2 || (r2 = lu(wu(t2), e2, t2.m ? e2.LINEAR : e2.NEAREST), t2.g.push(r2), t2.o = true), e2.bindTexture(e2.TEXTURE_2D, r2), r2;
|
|
3150
|
+
}
|
|
3151
|
+
function Tu(t2) {
|
|
3152
|
+
t2.h.bindTexture(t2.h.TEXTURE_2D, null);
|
|
3153
|
+
}
|
|
3154
|
+
var ku, Su = class {
|
|
3155
|
+
constructor(t2, e2, r2, n2, i2, s2, o2) {
|
|
3156
|
+
this.g = t2, this.m = e2, this.o = r2, this.canvas = n2, this.j = i2, this.width = s2, this.height = o2, this.o && (0 === --Lu && console.error("You seem to be creating MPMask instances without invoking .close(). This leaks resources."));
|
|
3157
|
+
}
|
|
3158
|
+
Ua() {
|
|
3159
|
+
return !!vu(this, 0);
|
|
3160
|
+
}
|
|
3161
|
+
ua() {
|
|
3162
|
+
return !!vu(this, 1);
|
|
3163
|
+
}
|
|
3164
|
+
W() {
|
|
3165
|
+
return !!vu(this, 2);
|
|
3166
|
+
}
|
|
3167
|
+
ta() {
|
|
3168
|
+
return (e2 = vu(t2 = this, 0)) || (e2 = _u(t2), e2 = new Uint8Array(e2.map((t3) => Math.round(255 * t3))), t2.g.push(e2)), e2;
|
|
3169
|
+
var t2, e2;
|
|
3170
|
+
}
|
|
3171
|
+
sa() {
|
|
3172
|
+
return _u(this);
|
|
3173
|
+
}
|
|
3174
|
+
S() {
|
|
3175
|
+
return yu(this);
|
|
3176
|
+
}
|
|
3177
|
+
clone() {
|
|
3178
|
+
var t2 = [];
|
|
3179
|
+
for (let e2 of this.g) {
|
|
3180
|
+
let r2;
|
|
3181
|
+
if (e2 instanceof Uint8Array) r2 = new Uint8Array(e2);
|
|
3182
|
+
else if (e2 instanceof Float32Array) r2 = new Float32Array(e2);
|
|
3183
|
+
else {
|
|
3184
|
+
if (!(e2 instanceof WebGLTexture)) throw Error(`Type is not supported: ${e2}`);
|
|
3185
|
+
{
|
|
3186
|
+
let t3 = Eu(this), e3 = wu(this);
|
|
3187
|
+
t3.activeTexture(t3.TEXTURE1), r2 = lu(e3, t3, this.m ? t3.LINEAR : t3.NEAREST), t3.bindTexture(t3.TEXTURE_2D, r2);
|
|
3188
|
+
let n2 = Au(this);
|
|
3189
|
+
t3.texImage2D(t3.TEXTURE_2D, 0, n2, this.width, this.height, 0, t3.RED, t3.FLOAT, null), t3.bindTexture(t3.TEXTURE_2D, null), du(e3, t3, r2), cu(e3, t3, false, () => {
|
|
3190
|
+
bu(this), t3.clearColor(0, 0, 0, 0), t3.clear(t3.COLOR_BUFFER_BIT), t3.drawArrays(t3.TRIANGLE_FAN, 0, 4), Tu(this);
|
|
3191
|
+
}), fu(e3), Tu(this);
|
|
3192
|
+
}
|
|
3193
|
+
}
|
|
3194
|
+
t2.push(r2);
|
|
3195
|
+
}
|
|
3196
|
+
return new Su(t2, this.m, this.W(), this.canvas, this.j, this.width, this.height);
|
|
3197
|
+
}
|
|
3198
|
+
close() {
|
|
3199
|
+
this.o && Eu(this).deleteTexture(vu(this, 2)), Lu = -1;
|
|
3200
|
+
}
|
|
3201
|
+
};
|
|
3202
|
+
Su.prototype.close = Su.prototype.close, Su.prototype.clone = Su.prototype.clone, Su.prototype.getAsWebGLTexture = Su.prototype.S, Su.prototype.getAsFloat32Array = Su.prototype.sa, Su.prototype.getAsUint8Array = Su.prototype.ta, Su.prototype.hasWebGLTexture = Su.prototype.W, Su.prototype.hasFloat32Array = Su.prototype.ua, Su.prototype.hasUint8Array = Su.prototype.Ua;
|
|
3203
|
+
var Lu = 250;
|
|
3204
|
+
function zu(...t2) {
|
|
3205
|
+
return t2.map(([t3, e2]) => ({ start: t3, end: e2 }));
|
|
3206
|
+
}
|
|
3207
|
+
var Yu, qu = Wh((Yu = Xh(Kh), class extends Yu {
|
|
3208
|
+
get oa() {
|
|
3209
|
+
return this.i;
|
|
3210
|
+
}
|
|
3211
|
+
Da(t2, e2, r2) {
|
|
3212
|
+
Bh(this, e2, (e3) => {
|
|
3213
|
+
var [n2, i2] = Gh(this, t2, e3);
|
|
3214
|
+
this.oa._addBoundTextureAsImageToStream(e3, n2, i2, r2);
|
|
3215
|
+
});
|
|
3216
|
+
}
|
|
3217
|
+
ga(t2, e2) {
|
|
3218
|
+
Vh(this, t2, e2), Bh(this, t2, (t3) => {
|
|
3219
|
+
this.oa._attachImageListener(t3);
|
|
3220
|
+
});
|
|
3221
|
+
}
|
|
3222
|
+
ha(t2, e2) {
|
|
3223
|
+
Hh(this, t2, e2), Bh(this, t2, (t3) => {
|
|
3224
|
+
this.oa._attachImageVectorListener(t3);
|
|
3225
|
+
});
|
|
3226
|
+
}
|
|
3227
|
+
})), Ju = class extends qu {
|
|
3228
|
+
};
|
|
3229
|
+
async function Zu(t2, e2, r2) {
|
|
3230
|
+
return Jh(t2, r2.canvas ?? (Ph() ? void 0 : document.createElement("canvas")), e2, r2);
|
|
3231
|
+
}
|
|
3232
|
+
function Qu(t2, e2, r2, n2) {
|
|
3233
|
+
if (t2.m && void 0 !== n2) if (Sr(t2.baseOptions, Ko, 3)?.g()) {
|
|
3234
|
+
var i2 = t2.m;
|
|
3235
|
+
++i2.g.T, i2.h.set(n2, performance.now());
|
|
3236
|
+
} else ++(i2 = t2.m).g.P, i2.h.set(n2, performance.now());
|
|
3237
|
+
if (t2.qa) {
|
|
3238
|
+
if (i2 = new No(), r2?.regionOfInterest) {
|
|
3239
|
+
if (!t2.Ca) throw Error("This task doesn't support region-of-interest.");
|
|
3240
|
+
var s2 = r2.regionOfInterest;
|
|
3241
|
+
if (s2.left >= s2.right || s2.top >= s2.bottom) throw Error("Expected RectF with left < right and top < bottom.");
|
|
3242
|
+
if (s2.left < 0 || s2.top < 0 || s2.right > 1 || s2.bottom > 1) throw Error("Expected RectF values to be in [0,1].");
|
|
3243
|
+
jr(i2, 1, (s2.left + s2.right) / 2), jr(i2, 2, (s2.top + s2.bottom) / 2), jr(i2, 4, s2.right - s2.left), jr(i2, 3, s2.bottom - s2.top);
|
|
3244
|
+
} else jr(i2, 1, 0.5), jr(i2, 2, 0.5), jr(i2, 4, 1), jr(i2, 3, 1);
|
|
3245
|
+
if (r2?.rotationDegrees) {
|
|
3246
|
+
if (r2?.rotationDegrees % 90 != 0) throw Error("Expected rotation to be a multiple of 90°.");
|
|
3247
|
+
if (jr(i2, 5, -Math.PI * r2.rotationDegrees / 180), r2?.rotationDegrees % 180 != 0) {
|
|
3248
|
+
let [t3, n3] = Uh(e2);
|
|
3249
|
+
r2 = Dr(i2, 3) * n3 / t3, s2 = Dr(i2, 4) * t3 / n3, jr(i2, 4, r2), jr(i2, 3, s2);
|
|
3250
|
+
}
|
|
3251
|
+
}
|
|
3252
|
+
t2.g.addProtoToStream(i2.g(), "mediapipe.NormalizedRect", t2.qa, n2);
|
|
3253
|
+
}
|
|
3254
|
+
t2.g.Da(e2, t2.Ba, n2 ?? performance.now()), t2.finishProcessing(n2);
|
|
3255
|
+
}
|
|
3256
|
+
function tc(t2, e2, r2) {
|
|
3257
|
+
if (t2.J) throw Error("Task is not initialized with image mode. 'runningMode' must be set to 'IMAGE'.");
|
|
3258
|
+
Qu(t2, e2, r2, t2.I + 1);
|
|
3259
|
+
}
|
|
3260
|
+
function ec(t2, e2, r2, n2) {
|
|
3261
|
+
if (!t2.J) throw Error("Task is not initialized with video mode. 'runningMode' must be set to 'VIDEO'.");
|
|
3262
|
+
Qu(t2, e2, r2, n2);
|
|
3263
|
+
}
|
|
3264
|
+
function rc(t2, e2, r2, n2) {
|
|
3265
|
+
var i2 = e2.data, s2 = e2.width, o2 = s2 * (e2 = e2.height);
|
|
3266
|
+
if ((i2 instanceof Uint8Array || i2 instanceof Float32Array) && i2.length !== o2) throw Error("Unsupported channel count: " + i2.length / o2);
|
|
3267
|
+
return t2 = new Su([i2], r2, false, t2.g.i.canvas, t2.da, s2, e2), n2 ? t2.clone() : t2;
|
|
3268
|
+
}
|
|
3269
|
+
var nc = class extends iu {
|
|
3270
|
+
constructor(t2, e2, r2, n2) {
|
|
3271
|
+
super(t2), this.g = t2, this.Ba = e2, this.qa = r2, this.Ca = n2, this.da = new pu(), this.J = false;
|
|
3272
|
+
}
|
|
3273
|
+
j(t2, e2 = true) {
|
|
3274
|
+
if ("runningMode" in t2) {
|
|
3275
|
+
var r2 = this.J = !!t2.runningMode && "IMAGE" !== t2.runningMode;
|
|
3276
|
+
ar(this.baseOptions, 2, null == r2 ? r2 : Zt(r2));
|
|
3277
|
+
}
|
|
3278
|
+
if (void 0 !== t2.canvas && this.g.i.canvas !== t2.canvas) throw Error("You must create a new task to reset the canvas.");
|
|
3279
|
+
return super.j(t2, e2);
|
|
3280
|
+
}
|
|
3281
|
+
close() {
|
|
3282
|
+
this.da.close(), super.close();
|
|
3283
|
+
}
|
|
3284
|
+
};
|
|
3285
|
+
nc.prototype.close = nc.prototype.close;
|
|
3286
|
+
var ic = class extends nc {
|
|
3287
|
+
constructor(t2, e2) {
|
|
3288
|
+
super(new Ju(t2, e2), "image_in", "norm_rect_in", false), this.l = { detections: [] }, Ir(t2 = this.h = new Zo(), 0, 1, e2 = new zo()), jr(this.h, 2, 0.5), jr(this.h, 3, 0.3);
|
|
3289
|
+
}
|
|
3290
|
+
C() {
|
|
3291
|
+
return "FaceDetector";
|
|
3292
|
+
}
|
|
3293
|
+
get baseOptions() {
|
|
3294
|
+
return Sr(this.h, zo, 1);
|
|
3295
|
+
}
|
|
3296
|
+
set baseOptions(t2) {
|
|
3297
|
+
Ir(this.h, 0, 1, t2);
|
|
3298
|
+
}
|
|
3299
|
+
v(t2) {
|
|
3300
|
+
return "minDetectionConfidence" in t2 && jr(this.h, 2, t2.minDetectionConfidence ?? 0.5), "minSuppressionThreshold" in t2 && jr(this.h, 3, t2.minSuppressionThreshold ?? 0.3), this.j(t2);
|
|
3301
|
+
}
|
|
3302
|
+
G(t2, e2) {
|
|
3303
|
+
return this.l = { detections: [] }, tc(this, t2, e2), this.l;
|
|
3304
|
+
}
|
|
3305
|
+
H(t2, e2, r2) {
|
|
3306
|
+
return this.l = { detections: [] }, ec(this, t2, r2, e2), this.l;
|
|
3307
|
+
}
|
|
3308
|
+
o() {
|
|
3309
|
+
var t2 = new mo();
|
|
3310
|
+
po(t2, "image_in"), po(t2, "norm_rect_in"), go(t2, "detections");
|
|
3311
|
+
var e2 = new no();
|
|
3312
|
+
li(e2, ta, this.h);
|
|
3313
|
+
var r2 = new ho();
|
|
3314
|
+
Hr(r2, 2, "mediapipe.tasks.vision.face_detector.FaceDetectorGraph"), oo(r2, "IMAGE:image_in"), oo(r2, "NORM_RECT:norm_rect_in"), ao(r2, "DETECTIONS:detections"), r2.v(e2), fo(t2, r2), this.g.attachProtoVectorListener("detections", (t3, e3) => {
|
|
3315
|
+
for (let e4 of t3) t3 = So(e4), this.l.detections.push(Za(t3));
|
|
3316
|
+
tu(this, e3);
|
|
3317
|
+
}), this.g.attachEmptyPacketListener("detections", (t3) => {
|
|
3318
|
+
tu(this, t3);
|
|
3319
|
+
}), t2 = t2.g(), this.setGraph(new Uint8Array(t2), true);
|
|
3320
|
+
}
|
|
3321
|
+
};
|
|
3322
|
+
ic.prototype.detectForVideo = ic.prototype.H, ic.prototype.detect = ic.prototype.G, ic.prototype.setOptions = ic.prototype.v, ic.createFromModelPath = async function(t2, e2) {
|
|
3323
|
+
return Zu(ic, t2, { baseOptions: { modelAssetPath: e2 } });
|
|
3324
|
+
}, ic.createFromModelBuffer = function(t2, e2) {
|
|
3325
|
+
return Zu(ic, t2, { baseOptions: { modelAssetBuffer: e2 } });
|
|
3326
|
+
}, ic.createFromOptions = function(t2, e2) {
|
|
3327
|
+
return Zu(ic, t2, e2);
|
|
3328
|
+
};
|
|
3329
|
+
var sc = zu([61, 146], [146, 91], [91, 181], [181, 84], [84, 17], [17, 314], [314, 405], [405, 321], [321, 375], [375, 291], [61, 185], [185, 40], [40, 39], [39, 37], [37, 0], [0, 267], [267, 269], [269, 270], [270, 409], [409, 291], [78, 95], [95, 88], [88, 178], [178, 87], [87, 14], [14, 317], [317, 402], [402, 318], [318, 324], [324, 308], [78, 191], [191, 80], [80, 81], [81, 82], [82, 13], [13, 312], [312, 311], [311, 310], [310, 415], [415, 308]), oc = zu([263, 249], [249, 390], [390, 373], [373, 374], [374, 380], [380, 381], [381, 382], [382, 362], [263, 466], [466, 388], [388, 387], [387, 386], [386, 385], [385, 384], [384, 398], [398, 362]), ac = zu([276, 283], [283, 282], [282, 295], [295, 285], [300, 293], [293, 334], [334, 296], [296, 336]), hc = zu([474, 475], [475, 476], [476, 477], [477, 474]), uc = zu([33, 7], [7, 163], [163, 144], [144, 145], [145, 153], [153, 154], [154, 155], [155, 133], [33, 246], [246, 161], [161, 160], [160, 159], [159, 158], [158, 157], [157, 173], [173, 133]), cc = zu([46, 53], [53, 52], [52, 65], [65, 55], [70, 63], [63, 105], [105, 66], [66, 107]), lc = zu([469, 470], [470, 471], [471, 472], [472, 469]), dc = zu([10, 338], [338, 297], [297, 332], [332, 284], [284, 251], [251, 389], [389, 356], [356, 454], [454, 323], [323, 361], [361, 288], [288, 397], [397, 365], [365, 379], [379, 378], [378, 400], [400, 377], [377, 152], [152, 148], [148, 176], [176, 149], [149, 150], [150, 136], [136, 172], [172, 58], [58, 132], [132, 93], [93, 234], [234, 127], [127, 162], [162, 21], [21, 54], [54, 103], [103, 67], [67, 109], [109, 10]), fc = [...sc, ...oc, ...ac, ...uc, ...cc, ...dc], pc = zu([127, 34], [34, 139], [139, 127], [11, 0], [0, 37], [37, 11], [232, 231], [231, 120], [120, 232], [72, 37], [37, 39], [39, 72], [128, 121], [121, 47], [47, 128], [232, 121], [121, 128], [128, 232], [104, 69], [69, 67], [67, 104], [175, 171], [171, 148], [148, 175], [118, 50], [50, 101], [101, 118], [73, 39], [39, 40], [40, 73], [9, 151], [151, 108], [108, 9], [48, 115], [115, 131], [131, 48], [194, 204], [204, 211], [211, 194], [74, 40], [40, 185], [185, 74], [80, 42], [42, 183], [183, 80], [40, 92], [92, 186], [186, 40], [230, 229], [229, 118], [118, 230], [202, 212], [212, 214], [214, 202], [83, 18], [18, 17], [17, 83], [76, 61], [61, 146], [146, 76], [160, 29], [29, 30], [30, 160], [56, 157], [157, 173], [173, 56], [106, 204], [204, 194], [194, 106], [135, 214], [214, 192], [192, 135], [203, 165], [165, 98], [98, 203], [21, 71], [71, 68], [68, 21], [51, 45], [45, 4], [4, 51], [144, 24], [24, 23], [23, 144], [77, 146], [146, 91], [91, 77], [205, 50], [50, 187], [187, 205], [201, 200], [200, 18], [18, 201], [91, 106], [106, 182], [182, 91], [90, 91], [91, 181], [181, 90], [85, 84], [84, 17], [17, 85], [206, 203], [203, 36], [36, 206], [148, 171], [171, 140], [140, 148], [92, 40], [40, 39], [39, 92], [193, 189], [189, 244], [244, 193], [159, 158], [158, 28], [28, 159], [247, 246], [246, 161], [161, 247], [236, 3], [3, 196], [196, 236], [54, 68], [68, 104], [104, 54], [193, 168], [168, 8], [8, 193], [117, 228], [228, 31], [31, 117], [189, 193], [193, 55], [55, 189], [98, 97], [97, 99], [99, 98], [126, 47], [47, 100], [100, 126], [166, 79], [79, 218], [218, 166], [155, 154], [154, 26], [26, 155], [209, 49], [49, 131], [131, 209], [135, 136], [136, 150], [150, 135], [47, 126], [126, 217], [217, 47], [223, 52], [52, 53], [53, 223], [45, 51], [51, 134], [134, 45], [211, 170], [170, 140], [140, 211], [67, 69], [69, 108], [108, 67], [43, 106], [106, 91], [91, 43], [230, 119], [119, 120], [120, 230], [226, 130], [130, 247], [247, 226], [63, 53], [53, 52], [52, 63], [238, 20], [20, 242], [242, 238], [46, 70], [70, 156], [156, 46], [78, 62], [62, 96], [96, 78], [46, 53], [53, 63], [63, 46], [143, 34], [34, 227], [227, 143], [123, 117], [117, 111], [111, 123], [44, 125], [125, 19], [19, 44], [236, 134], [134, 51], [51, 236], [216, 206], [206, 205], [205, 216], [154, 153], [153, 22], [22, 154], [39, 37], [37, 167], [167, 39], [200, 201], [201, 208], [208, 200], [36, 142], [142, 100], [100, 36], [57, 212], [212, 202], [202, 57], [20, 60], [60, 99], [99, 20], [28, 158], [158, 157], [157, 28], [35, 226], [226, 113], [113, 35], [160, 159], [159, 27], [27, 160], [204, 202], [202, 210], [210, 204], [113, 225], [225, 46], [46, 113], [43, 202], [202, 204], [204, 43], [62, 76], [76, 77], [77, 62], [137, 123], [123, 116], [116, 137], [41, 38], [38, 72], [72, 41], [203, 129], [129, 142], [142, 203], [64, 98], [98, 240], [240, 64], [49, 102], [102, 64], [64, 49], [41, 73], [73, 74], [74, 41], [212, 216], [216, 207], [207, 212], [42, 74], [74, 184], [184, 42], [169, 170], [170, 211], [211, 169], [170, 149], [149, 176], [176, 170], [105, 66], [66, 69], [69, 105], [122, 6], [6, 168], [168, 122], [123, 147], [147, 187], [187, 123], [96, 77], [77, 90], [90, 96], [65, 55], [55, 107], [107, 65], [89, 90], [90, 180], [180, 89], [101, 100], [100, 120], [120, 101], [63, 105], [105, 104], [104, 63], [93, 137], [137, 227], [227, 93], [15, 86], [86, 85], [85, 15], [129, 102], [102, 49], [49, 129], [14, 87], [87, 86], [86, 14], [55, 8], [8, 9], [9, 55], [100, 47], [47, 121], [121, 100], [145, 23], [23, 22], [22, 145], [88, 89], [89, 179], [179, 88], [6, 122], [122, 196], [196, 6], [88, 95], [95, 96], [96, 88], [138, 172], [172, 136], [136, 138], [215, 58], [58, 172], [172, 215], [115, 48], [48, 219], [219, 115], [42, 80], [80, 81], [81, 42], [195, 3], [3, 51], [51, 195], [43, 146], [146, 61], [61, 43], [171, 175], [175, 199], [199, 171], [81, 82], [82, 38], [38, 81], [53, 46], [46, 225], [225, 53], [144, 163], [163, 110], [110, 144], [52, 65], [65, 66], [66, 52], [229, 228], [228, 117], [117, 229], [34, 127], [127, 234], [234, 34], [107, 108], [108, 69], [69, 107], [109, 108], [108, 151], [151, 109], [48, 64], [64, 235], [235, 48], [62, 78], [78, 191], [191, 62], [129, 209], [209, 126], [126, 129], [111, 35], [35, 143], [143, 111], [117, 123], [123, 50], [50, 117], [222, 65], [65, 52], [52, 222], [19, 125], [125, 141], [141, 19], [221, 55], [55, 65], [65, 221], [3, 195], [195, 197], [197, 3], [25, 7], [7, 33], [33, 25], [220, 237], [237, 44], [44, 220], [70, 71], [71, 139], [139, 70], [122, 193], [193, 245], [245, 122], [247, 130], [130, 33], [33, 247], [71, 21], [21, 162], [162, 71], [170, 169], [169, 150], [150, 170], [188, 174], [174, 196], [196, 188], [216, 186], [186, 92], [92, 216], [2, 97], [97, 167], [167, 2], [141, 125], [125, 241], [241, 141], [164, 167], [167, 37], [37, 164], [72, 38], [38, 12], [12, 72], [38, 82], [82, 13], [13, 38], [63, 68], [68, 71], [71, 63], [226, 35], [35, 111], [111, 226], [101, 50], [50, 205], [205, 101], [206, 92], [92, 165], [165, 206], [209, 198], [198, 217], [217, 209], [165, 167], [167, 97], [97, 165], [220, 115], [115, 218], [218, 220], [133, 112], [112, 243], [243, 133], [239, 238], [238, 241], [241, 239], [214, 135], [135, 169], [169, 214], [190, 173], [173, 133], [133, 190], [171, 208], [208, 32], [32, 171], [125, 44], [44, 237], [237, 125], [86, 87], [87, 178], [178, 86], [85, 86], [86, 179], [179, 85], [84, 85], [85, 180], [180, 84], [83, 84], [84, 181], [181, 83], [201, 83], [83, 182], [182, 201], [137, 93], [93, 132], [132, 137], [76, 62], [62, 183], [183, 76], [61, 76], [76, 184], [184, 61], [57, 61], [61, 185], [185, 57], [212, 57], [57, 186], [186, 212], [214, 207], [207, 187], [187, 214], [34, 143], [143, 156], [156, 34], [79, 239], [239, 237], [237, 79], [123, 137], [137, 177], [177, 123], [44, 1], [1, 4], [4, 44], [201, 194], [194, 32], [32, 201], [64, 102], [102, 129], [129, 64], [213, 215], [215, 138], [138, 213], [59, 166], [166, 219], [219, 59], [242, 99], [99, 97], [97, 242], [2, 94], [94, 141], [141, 2], [75, 59], [59, 235], [235, 75], [24, 110], [110, 228], [228, 24], [25, 130], [130, 226], [226, 25], [23, 24], [24, 229], [229, 23], [22, 23], [23, 230], [230, 22], [26, 22], [22, 231], [231, 26], [112, 26], [26, 232], [232, 112], [189, 190], [190, 243], [243, 189], [221, 56], [56, 190], [190, 221], [28, 56], [56, 221], [221, 28], [27, 28], [28, 222], [222, 27], [29, 27], [27, 223], [223, 29], [30, 29], [29, 224], [224, 30], [247, 30], [30, 225], [225, 247], [238, 79], [79, 20], [20, 238], [166, 59], [59, 75], [75, 166], [60, 75], [75, 240], [240, 60], [147, 177], [177, 215], [215, 147], [20, 79], [79, 166], [166, 20], [187, 147], [147, 213], [213, 187], [112, 233], [233, 244], [244, 112], [233, 128], [128, 245], [245, 233], [128, 114], [114, 188], [188, 128], [114, 217], [217, 174], [174, 114], [131, 115], [115, 220], [220, 131], [217, 198], [198, 236], [236, 217], [198, 131], [131, 134], [134, 198], [177, 132], [132, 58], [58, 177], [143, 35], [35, 124], [124, 143], [110, 163], [163, 7], [7, 110], [228, 110], [110, 25], [25, 228], [356, 389], [389, 368], [368, 356], [11, 302], [302, 267], [267, 11], [452, 350], [350, 349], [349, 452], [302, 303], [303, 269], [269, 302], [357, 343], [343, 277], [277, 357], [452, 453], [453, 357], [357, 452], [333, 332], [332, 297], [297, 333], [175, 152], [152, 377], [377, 175], [347, 348], [348, 330], [330, 347], [303, 304], [304, 270], [270, 303], [9, 336], [336, 337], [337, 9], [278, 279], [279, 360], [360, 278], [418, 262], [262, 431], [431, 418], [304, 408], [408, 409], [409, 304], [310, 415], [415, 407], [407, 310], [270, 409], [409, 410], [410, 270], [450, 348], [348, 347], [347, 450], [422, 430], [430, 434], [434, 422], [313, 314], [314, 17], [17, 313], [306, 307], [307, 375], [375, 306], [387, 388], [388, 260], [260, 387], [286, 414], [414, 398], [398, 286], [335, 406], [406, 418], [418, 335], [364, 367], [367, 416], [416, 364], [423, 358], [358, 327], [327, 423], [251, 284], [284, 298], [298, 251], [281, 5], [5, 4], [4, 281], [373, 374], [374, 253], [253, 373], [307, 320], [320, 321], [321, 307], [425, 427], [427, 411], [411, 425], [421, 313], [313, 18], [18, 421], [321, 405], [405, 406], [406, 321], [320, 404], [404, 405], [405, 320], [315, 16], [16, 17], [17, 315], [426, 425], [425, 266], [266, 426], [377, 400], [400, 369], [369, 377], [322, 391], [391, 269], [269, 322], [417, 465], [465, 464], [464, 417], [386, 257], [257, 258], [258, 386], [466, 260], [260, 388], [388, 466], [456, 399], [399, 419], [419, 456], [284, 332], [332, 333], [333, 284], [417, 285], [285, 8], [8, 417], [346, 340], [340, 261], [261, 346], [413, 441], [441, 285], [285, 413], [327, 460], [460, 328], [328, 327], [355, 371], [371, 329], [329, 355], [392, 439], [439, 438], [438, 392], [382, 341], [341, 256], [256, 382], [429, 420], [420, 360], [360, 429], [364, 394], [394, 379], [379, 364], [277, 343], [343, 437], [437, 277], [443, 444], [444, 283], [283, 443], [275, 440], [440, 363], [363, 275], [431, 262], [262, 369], [369, 431], [297, 338], [338, 337], [337, 297], [273, 375], [375, 321], [321, 273], [450, 451], [451, 349], [349, 450], [446, 342], [342, 467], [467, 446], [293, 334], [334, 282], [282, 293], [458, 461], [461, 462], [462, 458], [276, 353], [353, 383], [383, 276], [308, 324], [324, 325], [325, 308], [276, 300], [300, 293], [293, 276], [372, 345], [345, 447], [447, 372], [352, 345], [345, 340], [340, 352], [274, 1], [1, 19], [19, 274], [456, 248], [248, 281], [281, 456], [436, 427], [427, 425], [425, 436], [381, 256], [256, 252], [252, 381], [269, 391], [391, 393], [393, 269], [200, 199], [199, 428], [428, 200], [266, 330], [330, 329], [329, 266], [287, 273], [273, 422], [422, 287], [250, 462], [462, 328], [328, 250], [258, 286], [286, 384], [384, 258], [265, 353], [353, 342], [342, 265], [387, 259], [259, 257], [257, 387], [424, 431], [431, 430], [430, 424], [342, 353], [353, 276], [276, 342], [273, 335], [335, 424], [424, 273], [292, 325], [325, 307], [307, 292], [366, 447], [447, 345], [345, 366], [271, 303], [303, 302], [302, 271], [423, 266], [266, 371], [371, 423], [294, 455], [455, 460], [460, 294], [279, 278], [278, 294], [294, 279], [271, 272], [272, 304], [304, 271], [432, 434], [434, 427], [427, 432], [272, 407], [407, 408], [408, 272], [394, 430], [430, 431], [431, 394], [395, 369], [369, 400], [400, 395], [334, 333], [333, 299], [299, 334], [351, 417], [417, 168], [168, 351], [352, 280], [280, 411], [411, 352], [325, 319], [319, 320], [320, 325], [295, 296], [296, 336], [336, 295], [319, 403], [403, 404], [404, 319], [330, 348], [348, 349], [349, 330], [293, 298], [298, 333], [333, 293], [323, 454], [454, 447], [447, 323], [15, 16], [16, 315], [315, 15], [358, 429], [429, 279], [279, 358], [14, 15], [15, 316], [316, 14], [285, 336], [336, 9], [9, 285], [329, 349], [349, 350], [350, 329], [374, 380], [380, 252], [252, 374], [318, 402], [402, 403], [403, 318], [6, 197], [197, 419], [419, 6], [318, 319], [319, 325], [325, 318], [367, 364], [364, 365], [365, 367], [435, 367], [367, 397], [397, 435], [344, 438], [438, 439], [439, 344], [272, 271], [271, 311], [311, 272], [195, 5], [5, 281], [281, 195], [273, 287], [287, 291], [291, 273], [396, 428], [428, 199], [199, 396], [311, 271], [271, 268], [268, 311], [283, 444], [444, 445], [445, 283], [373, 254], [254, 339], [339, 373], [282, 334], [334, 296], [296, 282], [449, 347], [347, 346], [346, 449], [264, 447], [447, 454], [454, 264], [336, 296], [296, 299], [299, 336], [338, 10], [10, 151], [151, 338], [278, 439], [439, 455], [455, 278], [292, 407], [407, 415], [415, 292], [358, 371], [371, 355], [355, 358], [340, 345], [345, 372], [372, 340], [346, 347], [347, 280], [280, 346], [442, 443], [443, 282], [282, 442], [19, 94], [94, 370], [370, 19], [441, 442], [442, 295], [295, 441], [248, 419], [419, 197], [197, 248], [263, 255], [255, 359], [359, 263], [440, 275], [275, 274], [274, 440], [300, 383], [383, 368], [368, 300], [351, 412], [412, 465], [465, 351], [263, 467], [467, 466], [466, 263], [301, 368], [368, 389], [389, 301], [395, 378], [378, 379], [379, 395], [412, 351], [351, 419], [419, 412], [436, 426], [426, 322], [322, 436], [2, 164], [164, 393], [393, 2], [370, 462], [462, 461], [461, 370], [164, 0], [0, 267], [267, 164], [302, 11], [11, 12], [12, 302], [268, 12], [12, 13], [13, 268], [293, 300], [300, 301], [301, 293], [446, 261], [261, 340], [340, 446], [330, 266], [266, 425], [425, 330], [426, 423], [423, 391], [391, 426], [429, 355], [355, 437], [437, 429], [391, 327], [327, 326], [326, 391], [440, 457], [457, 438], [438, 440], [341, 382], [382, 362], [362, 341], [459, 457], [457, 461], [461, 459], [434, 430], [430, 394], [394, 434], [414, 463], [463, 362], [362, 414], [396, 369], [369, 262], [262, 396], [354, 461], [461, 457], [457, 354], [316, 403], [403, 402], [402, 316], [315, 404], [404, 403], [403, 315], [314, 405], [405, 404], [404, 314], [313, 406], [406, 405], [405, 313], [421, 418], [418, 406], [406, 421], [366, 401], [401, 361], [361, 366], [306, 408], [408, 407], [407, 306], [291, 409], [409, 408], [408, 291], [287, 410], [410, 409], [409, 287], [432, 436], [436, 410], [410, 432], [434, 416], [416, 411], [411, 434], [264, 368], [368, 383], [383, 264], [309, 438], [438, 457], [457, 309], [352, 376], [376, 401], [401, 352], [274, 275], [275, 4], [4, 274], [421, 428], [428, 262], [262, 421], [294, 327], [327, 358], [358, 294], [433, 416], [416, 367], [367, 433], [289, 455], [455, 439], [439, 289], [462, 370], [370, 326], [326, 462], [2, 326], [326, 370], [370, 2], [305, 460], [460, 455], [455, 305], [254, 449], [449, 448], [448, 254], [255, 261], [261, 446], [446, 255], [253, 450], [450, 449], [449, 253], [252, 451], [451, 450], [450, 252], [256, 452], [452, 451], [451, 256], [341, 453], [453, 452], [452, 341], [413, 464], [464, 463], [463, 413], [441, 413], [413, 414], [414, 441], [258, 442], [442, 441], [441, 258], [257, 443], [443, 442], [442, 257], [259, 444], [444, 443], [443, 259], [260, 445], [445, 444], [444, 260], [467, 342], [342, 445], [445, 467], [459, 458], [458, 250], [250, 459], [289, 392], [392, 290], [290, 289], [290, 328], [328, 460], [460, 290], [376, 433], [433, 435], [435, 376], [250, 290], [290, 392], [392, 250], [411, 416], [416, 433], [433, 411], [341, 463], [463, 464], [464, 341], [453, 464], [464, 465], [465, 453], [357, 465], [465, 412], [412, 357], [343, 412], [412, 399], [399, 343], [360, 363], [363, 440], [440, 360], [437, 399], [399, 456], [456, 437], [420, 456], [456, 363], [363, 420], [401, 435], [435, 288], [288, 401], [372, 383], [383, 353], [353, 372], [339, 255], [255, 249], [249, 339], [448, 261], [261, 255], [255, 448], [133, 243], [243, 190], [190, 133], [133, 155], [155, 112], [112, 133], [33, 246], [246, 247], [247, 33], [33, 130], [130, 25], [25, 33], [398, 384], [384, 286], [286, 398], [362, 398], [398, 414], [414, 362], [362, 463], [463, 341], [341, 362], [263, 359], [359, 467], [467, 263], [263, 249], [249, 255], [255, 263], [466, 467], [467, 260], [260, 466], [75, 60], [60, 166], [166, 75], [238, 239], [239, 79], [79, 238], [162, 127], [127, 139], [139, 162], [72, 11], [11, 37], [37, 72], [121, 232], [232, 120], [120, 121], [73, 72], [72, 39], [39, 73], [114, 128], [128, 47], [47, 114], [233, 232], [232, 128], [128, 233], [103, 104], [104, 67], [67, 103], [152, 175], [175, 148], [148, 152], [119, 118], [118, 101], [101, 119], [74, 73], [73, 40], [40, 74], [107, 9], [9, 108], [108, 107], [49, 48], [48, 131], [131, 49], [32, 194], [194, 211], [211, 32], [184, 74], [74, 185], [185, 184], [191, 80], [80, 183], [183, 191], [185, 40], [40, 186], [186, 185], [119, 230], [230, 118], [118, 119], [210, 202], [202, 214], [214, 210], [84, 83], [83, 17], [17, 84], [77, 76], [76, 146], [146, 77], [161, 160], [160, 30], [30, 161], [190, 56], [56, 173], [173, 190], [182, 106], [106, 194], [194, 182], [138, 135], [135, 192], [192, 138], [129, 203], [203, 98], [98, 129], [54, 21], [21, 68], [68, 54], [5, 51], [51, 4], [4, 5], [145, 144], [144, 23], [23, 145], [90, 77], [77, 91], [91, 90], [207, 205], [205, 187], [187, 207], [83, 201], [201, 18], [18, 83], [181, 91], [91, 182], [182, 181], [180, 90], [90, 181], [181, 180], [16, 85], [85, 17], [17, 16], [205, 206], [206, 36], [36, 205], [176, 148], [148, 140], [140, 176], [165, 92], [92, 39], [39, 165], [245, 193], [193, 244], [244, 245], [27, 159], [159, 28], [28, 27], [30, 247], [247, 161], [161, 30], [174, 236], [236, 196], [196, 174], [103, 54], [54, 104], [104, 103], [55, 193], [193, 8], [8, 55], [111, 117], [117, 31], [31, 111], [221, 189], [189, 55], [55, 221], [240, 98], [98, 99], [99, 240], [142, 126], [126, 100], [100, 142], [219, 166], [166, 218], [218, 219], [112, 155], [155, 26], [26, 112], [198, 209], [209, 131], [131, 198], [169, 135], [135, 150], [150, 169], [114, 47], [47, 217], [217, 114], [224, 223], [223, 53], [53, 224], [220, 45], [45, 134], [134, 220], [32, 211], [211, 140], [140, 32], [109, 67], [67, 108], [108, 109], [146, 43], [43, 91], [91, 146], [231, 230], [230, 120], [120, 231], [113, 226], [226, 247], [247, 113], [105, 63], [63, 52], [52, 105], [241, 238], [238, 242], [242, 241], [124, 46], [46, 156], [156, 124], [95, 78], [78, 96], [96, 95], [70, 46], [46, 63], [63, 70], [116, 143], [143, 227], [227, 116], [116, 123], [123, 111], [111, 116], [1, 44], [44, 19], [19, 1], [3, 236], [236, 51], [51, 3], [207, 216], [216, 205], [205, 207], [26, 154], [154, 22], [22, 26], [165, 39], [39, 167], [167, 165], [199, 200], [200, 208], [208, 199], [101, 36], [36, 100], [100, 101], [43, 57], [57, 202], [202, 43], [242, 20], [20, 99], [99, 242], [56, 28], [28, 157], [157, 56], [124, 35], [35, 113], [113, 124], [29, 160], [160, 27], [27, 29], [211, 204], [204, 210], [210, 211], [124, 113], [113, 46], [46, 124], [106, 43], [43, 204], [204, 106], [96, 62], [62, 77], [77, 96], [227, 137], [137, 116], [116, 227], [73, 41], [41, 72], [72, 73], [36, 203], [203, 142], [142, 36], [235, 64], [64, 240], [240, 235], [48, 49], [49, 64], [64, 48], [42, 41], [41, 74], [74, 42], [214, 212], [212, 207], [207, 214], [183, 42], [42, 184], [184, 183], [210, 169], [169, 211], [211, 210], [140, 170], [170, 176], [176, 140], [104, 105], [105, 69], [69, 104], [193, 122], [122, 168], [168, 193], [50, 123], [123, 187], [187, 50], [89, 96], [96, 90], [90, 89], [66, 65], [65, 107], [107, 66], [179, 89], [89, 180], [180, 179], [119, 101], [101, 120], [120, 119], [68, 63], [63, 104], [104, 68], [234, 93], [93, 227], [227, 234], [16, 15], [15, 85], [85, 16], [209, 129], [129, 49], [49, 209], [15, 14], [14, 86], [86, 15], [107, 55], [55, 9], [9, 107], [120, 100], [100, 121], [121, 120], [153, 145], [145, 22], [22, 153], [178, 88], [88, 179], [179, 178], [197, 6], [6, 196], [196, 197], [89, 88], [88, 96], [96, 89], [135, 138], [138, 136], [136, 135], [138, 215], [215, 172], [172, 138], [218, 115], [115, 219], [219, 218], [41, 42], [42, 81], [81, 41], [5, 195], [195, 51], [51, 5], [57, 43], [43, 61], [61, 57], [208, 171], [171, 199], [199, 208], [41, 81], [81, 38], [38, 41], [224, 53], [53, 225], [225, 224], [24, 144], [144, 110], [110, 24], [105, 52], [52, 66], [66, 105], [118, 229], [229, 117], [117, 118], [227, 34], [34, 234], [234, 227], [66, 107], [107, 69], [69, 66], [10, 109], [109, 151], [151, 10], [219, 48], [48, 235], [235, 219], [183, 62], [62, 191], [191, 183], [142, 129], [129, 126], [126, 142], [116, 111], [111, 143], [143, 116], [118, 117], [117, 50], [50, 118], [223, 222], [222, 52], [52, 223], [94, 19], [19, 141], [141, 94], [222, 221], [221, 65], [65, 222], [196, 3], [3, 197], [197, 196], [45, 220], [220, 44], [44, 45], [156, 70], [70, 139], [139, 156], [188, 122], [122, 245], [245, 188], [139, 71], [71, 162], [162, 139], [149, 170], [170, 150], [150, 149], [122, 188], [188, 196], [196, 122], [206, 216], [216, 92], [92, 206], [164, 2], [2, 167], [167, 164], [242, 141], [141, 241], [241, 242], [0, 164], [164, 37], [37, 0], [11, 72], [72, 12], [12, 11], [12, 38], [38, 13], [13, 12], [70, 63], [63, 71], [71, 70], [31, 226], [226, 111], [111, 31], [36, 101], [101, 205], [205, 36], [203, 206], [206, 165], [165, 203], [126, 209], [209, 217], [217, 126], [98, 165], [165, 97], [97, 98], [237, 220], [220, 218], [218, 237], [237, 239], [239, 241], [241, 237], [210, 214], [214, 169], [169, 210], [140, 171], [171, 32], [32, 140], [241, 125], [125, 237], [237, 241], [179, 86], [86, 178], [178, 179], [180, 85], [85, 179], [179, 180], [181, 84], [84, 180], [180, 181], [182, 83], [83, 181], [181, 182], [194, 201], [201, 182], [182, 194], [177, 137], [137, 132], [132, 177], [184, 76], [76, 183], [183, 184], [185, 61], [61, 184], [184, 185], [186, 57], [57, 185], [185, 186], [216, 212], [212, 186], [186, 216], [192, 214], [214, 187], [187, 192], [139, 34], [34, 156], [156, 139], [218, 79], [79, 237], [237, 218], [147, 123], [123, 177], [177, 147], [45, 44], [44, 4], [4, 45], [208, 201], [201, 32], [32, 208], [98, 64], [64, 129], [129, 98], [192, 213], [213, 138], [138, 192], [235, 59], [59, 219], [219, 235], [141, 242], [242, 97], [97, 141], [97, 2], [2, 141], [141, 97], [240, 75], [75, 235], [235, 240], [229, 24], [24, 228], [228, 229], [31, 25], [25, 226], [226, 31], [230, 23], [23, 229], [229, 230], [231, 22], [22, 230], [230, 231], [232, 26], [26, 231], [231, 232], [233, 112], [112, 232], [232, 233], [244, 189], [189, 243], [243, 244], [189, 221], [221, 190], [190, 189], [222, 28], [28, 221], [221, 222], [223, 27], [27, 222], [222, 223], [224, 29], [29, 223], [223, 224], [225, 30], [30, 224], [224, 225], [113, 247], [247, 225], [225, 113], [99, 60], [60, 240], [240, 99], [213, 147], [147, 215], [215, 213], [60, 20], [20, 166], [166, 60], [192, 187], [187, 213], [213, 192], [243, 112], [112, 244], [244, 243], [244, 233], [233, 245], [245, 244], [245, 128], [128, 188], [188, 245], [188, 114], [114, 174], [174, 188], [134, 131], [131, 220], [220, 134], [174, 217], [217, 236], [236, 174], [236, 198], [198, 134], [134, 236], [215, 177], [177, 58], [58, 215], [156, 143], [143, 124], [124, 156], [25, 110], [110, 7], [7, 25], [31, 228], [228, 25], [25, 31], [264, 356], [356, 368], [368, 264], [0, 11], [11, 267], [267, 0], [451, 452], [452, 349], [349, 451], [267, 302], [302, 269], [269, 267], [350, 357], [357, 277], [277, 350], [350, 452], [452, 357], [357, 350], [299, 333], [333, 297], [297, 299], [396, 175], [175, 377], [377, 396], [280, 347], [347, 330], [330, 280], [269, 303], [303, 270], [270, 269], [151, 9], [9, 337], [337, 151], [344, 278], [278, 360], [360, 344], [424, 418], [418, 431], [431, 424], [270, 304], [304, 409], [409, 270], [272, 310], [310, 407], [407, 272], [322, 270], [270, 410], [410, 322], [449, 450], [450, 347], [347, 449], [432, 422], [422, 434], [434, 432], [18, 313], [313, 17], [17, 18], [291, 306], [306, 375], [375, 291], [259, 387], [387, 260], [260, 259], [424, 335], [335, 418], [418, 424], [434, 364], [364, 416], [416, 434], [391, 423], [423, 327], [327, 391], [301, 251], [251, 298], [298, 301], [275, 281], [281, 4], [4, 275], [254, 373], [373, 253], [253, 254], [375, 307], [307, 321], [321, 375], [280, 425], [425, 411], [411, 280], [200, 421], [421, 18], [18, 200], [335, 321], [321, 406], [406, 335], [321, 320], [320, 405], [405, 321], [314, 315], [315, 17], [17, 314], [423, 426], [426, 266], [266, 423], [396, 377], [377, 369], [369, 396], [270, 322], [322, 269], [269, 270], [413, 417], [417, 464], [464, 413], [385, 386], [386, 258], [258, 385], [248, 456], [456, 419], [419, 248], [298, 284], [284, 333], [333, 298], [168, 417], [417, 8], [8, 168], [448, 346], [346, 261], [261, 448], [417, 413], [413, 285], [285, 417], [326, 327], [327, 328], [328, 326], [277, 355], [355, 329], [329, 277], [309, 392], [392, 438], [438, 309], [381, 382], [382, 256], [256, 381], [279, 429], [429, 360], [360, 279], [365, 364], [364, 379], [379, 365], [355, 277], [277, 437], [437, 355], [282, 443], [443, 283], [283, 282], [281, 275], [275, 363], [363, 281], [395, 431], [431, 369], [369, 395], [299, 297], [297, 337], [337, 299], [335, 273], [273, 321], [321, 335], [348, 450], [450, 349], [349, 348], [359, 446], [446, 467], [467, 359], [283, 293], [293, 282], [282, 283], [250, 458], [458, 462], [462, 250], [300, 276], [276, 383], [383, 300], [292, 308], [308, 325], [325, 292], [283, 276], [276, 293], [293, 283], [264, 372], [372, 447], [447, 264], [346, 352], [352, 340], [340, 346], [354, 274], [274, 19], [19, 354], [363, 456], [456, 281], [281, 363], [426, 436], [436, 425], [425, 426], [380, 381], [381, 252], [252, 380], [267, 269], [269, 393], [393, 267], [421, 200], [200, 428], [428, 421], [371, 266], [266, 329], [329, 371], [432, 287], [287, 422], [422, 432], [290, 250], [250, 328], [328, 290], [385, 258], [258, 384], [384, 385], [446, 265], [265, 342], [342, 446], [386, 387], [387, 257], [257, 386], [422, 424], [424, 430], [430, 422], [445, 342], [342, 276], [276, 445], [422, 273], [273, 424], [424, 422], [306, 292], [292, 307], [307, 306], [352, 366], [366, 345], [345, 352], [268, 271], [271, 302], [302, 268], [358, 423], [423, 371], [371, 358], [327, 294], [294, 460], [460, 327], [331, 279], [279, 294], [294, 331], [303, 271], [271, 304], [304, 303], [436, 432], [432, 427], [427, 436], [304, 272], [272, 408], [408, 304], [395, 394], [394, 431], [431, 395], [378, 395], [395, 400], [400, 378], [296, 334], [334, 299], [299, 296], [6, 351], [351, 168], [168, 6], [376, 352], [352, 411], [411, 376], [307, 325], [325, 320], [320, 307], [285, 295], [295, 336], [336, 285], [320, 319], [319, 404], [404, 320], [329, 330], [330, 349], [349, 329], [334, 293], [293, 333], [333, 334], [366, 323], [323, 447], [447, 366], [316, 15], [15, 315], [315, 316], [331, 358], [358, 279], [279, 331], [317, 14], [14, 316], [316, 317], [8, 285], [285, 9], [9, 8], [277, 329], [329, 350], [350, 277], [253, 374], [374, 252], [252, 253], [319, 318], [318, 403], [403, 319], [351, 6], [6, 419], [419, 351], [324, 318], [318, 325], [325, 324], [397, 367], [367, 365], [365, 397], [288, 435], [435, 397], [397, 288], [278, 344], [344, 439], [439, 278], [310, 272], [272, 311], [311, 310], [248, 195], [195, 281], [281, 248], [375, 273], [273, 291], [291, 375], [175, 396], [396, 199], [199, 175], [312, 311], [311, 268], [268, 312], [276, 283], [283, 445], [445, 276], [390, 373], [373, 339], [339, 390], [295, 282], [282, 296], [296, 295], [448, 449], [449, 346], [346, 448], [356, 264], [264, 454], [454, 356], [337, 336], [336, 299], [299, 337], [337, 338], [338, 151], [151, 337], [294, 278], [278, 455], [455, 294], [308, 292], [292, 415], [415, 308], [429, 358], [358, 355], [355, 429], [265, 340], [340, 372], [372, 265], [352, 346], [346, 280], [280, 352], [295, 442], [442, 282], [282, 295], [354, 19], [19, 370], [370, 354], [285, 441], [441, 295], [295, 285], [195, 248], [248, 197], [197, 195], [457, 440], [440, 274], [274, 457], [301, 300], [300, 368], [368, 301], [417, 351], [351, 465], [465, 417], [251, 301], [301, 389], [389, 251], [394, 395], [395, 379], [379, 394], [399, 412], [412, 419], [419, 399], [410, 436], [436, 322], [322, 410], [326, 2], [2, 393], [393, 326], [354, 370], [370, 461], [461, 354], [393, 164], [164, 267], [267, 393], [268, 302], [302, 12], [12, 268], [312, 268], [268, 13], [13, 312], [298, 293], [293, 301], [301, 298], [265, 446], [446, 340], [340, 265], [280, 330], [330, 425], [425, 280], [322, 426], [426, 391], [391, 322], [420, 429], [429, 437], [437, 420], [393, 391], [391, 326], [326, 393], [344, 440], [440, 438], [438, 344], [458, 459], [459, 461], [461, 458], [364, 434], [434, 394], [394, 364], [428, 396], [396, 262], [262, 428], [274, 354], [354, 457], [457, 274], [317, 316], [316, 402], [402, 317], [316, 315], [315, 403], [403, 316], [315, 314], [314, 404], [404, 315], [314, 313], [313, 405], [405, 314], [313, 421], [421, 406], [406, 313], [323, 366], [366, 361], [361, 323], [292, 306], [306, 407], [407, 292], [306, 291], [291, 408], [408, 306], [291, 287], [287, 409], [409, 291], [287, 432], [432, 410], [410, 287], [427, 434], [434, 411], [411, 427], [372, 264], [264, 383], [383, 372], [459, 309], [309, 457], [457, 459], [366, 352], [352, 401], [401, 366], [1, 274], [274, 4], [4, 1], [418, 421], [421, 262], [262, 418], [331, 294], [294, 358], [358, 331], [435, 433], [433, 367], [367, 435], [392, 289], [289, 439], [439, 392], [328, 462], [462, 326], [326, 328], [94, 2], [2, 370], [370, 94], [289, 305], [305, 455], [455, 289], [339, 254], [254, 448], [448, 339], [359, 255], [255, 446], [446, 359], [254, 253], [253, 449], [449, 254], [253, 252], [252, 450], [450, 253], [252, 256], [256, 451], [451, 252], [256, 341], [341, 452], [452, 256], [414, 413], [413, 463], [463, 414], [286, 441], [441, 414], [414, 286], [286, 258], [258, 441], [441, 286], [258, 257], [257, 442], [442, 258], [257, 259], [259, 443], [443, 257], [259, 260], [260, 444], [444, 259], [260, 467], [467, 445], [445, 260], [309, 459], [459, 250], [250, 309], [305, 289], [289, 290], [290, 305], [305, 290], [290, 460], [460, 305], [401, 376], [376, 435], [435, 401], [309, 250], [250, 392], [392, 309], [376, 411], [411, 433], [433, 376], [453, 341], [341, 464], [464, 453], [357, 453], [453, 465], [465, 357], [343, 357], [357, 412], [412, 343], [437, 343], [343, 399], [399, 437], [344, 360], [360, 440], [440, 344], [420, 437], [437, 456], [456, 420], [360, 420], [420, 363], [363, 360], [361, 401], [401, 288], [288, 361], [265, 372], [372, 353], [353, 265], [390, 339], [339, 249], [249, 390], [339, 448], [448, 255], [255, 339]);
|
|
3330
|
+
function gc(t2) {
|
|
3331
|
+
t2.l = { faceLandmarks: [], faceBlendshapes: [], facialTransformationMatrixes: [] };
|
|
3332
|
+
}
|
|
3333
|
+
var mc = class extends nc {
|
|
3334
|
+
constructor(t2, e2) {
|
|
3335
|
+
super(new Ju(t2, e2), "image_in", "norm_rect", false), this.l = { faceLandmarks: [], faceBlendshapes: [], facialTransformationMatrixes: [] }, this.outputFacialTransformationMatrixes = this.outputFaceBlendshapes = false, Ir(t2 = this.h = new na(), 0, 1, e2 = new zo()), this.B = new ra(), Ir(this.h, 0, 3, this.B), this.u = new Zo(), Ir(this.h, 0, 2, this.u), Ur(this.u, 4, 1), jr(this.u, 2, 0.5), jr(this.B, 2, 0.5), jr(this.h, 4, 0.5);
|
|
3336
|
+
}
|
|
3337
|
+
C() {
|
|
3338
|
+
return "FaceLandmarker";
|
|
3339
|
+
}
|
|
3340
|
+
get baseOptions() {
|
|
3341
|
+
return Sr(this.h, zo, 1);
|
|
3342
|
+
}
|
|
3343
|
+
set baseOptions(t2) {
|
|
3344
|
+
Ir(this.h, 0, 1, t2);
|
|
3345
|
+
}
|
|
3346
|
+
v(t2) {
|
|
3347
|
+
return "numFaces" in t2 && Ur(this.u, 4, t2.numFaces ?? 1), "minFaceDetectionConfidence" in t2 && jr(this.u, 2, t2.minFaceDetectionConfidence ?? 0.5), "minTrackingConfidence" in t2 && jr(this.h, 4, t2.minTrackingConfidence ?? 0.5), "minFacePresenceConfidence" in t2 && jr(this.B, 2, t2.minFacePresenceConfidence ?? 0.5), "outputFaceBlendshapes" in t2 && (this.outputFaceBlendshapes = !!t2.outputFaceBlendshapes), "outputFacialTransformationMatrixes" in t2 && (this.outputFacialTransformationMatrixes = !!t2.outputFacialTransformationMatrixes), this.j(t2);
|
|
3348
|
+
}
|
|
3349
|
+
G(t2, e2) {
|
|
3350
|
+
return gc(this), tc(this, t2, e2), this.l;
|
|
3351
|
+
}
|
|
3352
|
+
H(t2, e2, r2) {
|
|
3353
|
+
return gc(this), ec(this, t2, r2, e2), this.l;
|
|
3354
|
+
}
|
|
3355
|
+
o() {
|
|
3356
|
+
var t2 = new mo();
|
|
3357
|
+
po(t2, "image_in"), po(t2, "norm_rect"), go(t2, "face_landmarks");
|
|
3358
|
+
var e2 = new no();
|
|
3359
|
+
li(e2, sa, this.h);
|
|
3360
|
+
var r2 = new ho();
|
|
3361
|
+
Hr(r2, 2, "mediapipe.tasks.vision.face_landmarker.FaceLandmarkerGraph"), oo(r2, "IMAGE:image_in"), oo(r2, "NORM_RECT:norm_rect"), ao(r2, "NORM_LANDMARKS:face_landmarks"), r2.v(e2), fo(t2, r2), this.g.attachProtoVectorListener("face_landmarks", (t3, e3) => {
|
|
3362
|
+
for (let e4 of t3) t3 = Io(e4), this.l.faceLandmarks.push(Qa(t3));
|
|
3363
|
+
tu(this, e3);
|
|
3364
|
+
}), this.g.attachEmptyPacketListener("face_landmarks", (t3) => {
|
|
3365
|
+
tu(this, t3);
|
|
3366
|
+
}), this.outputFaceBlendshapes && (go(t2, "blendshapes"), ao(r2, "BLENDSHAPES:blendshapes"), this.g.attachProtoVectorListener("blendshapes", (t3, e3) => {
|
|
3367
|
+
if (this.outputFaceBlendshapes) for (let e4 of t3) t3 = wo(e4), this.l.faceBlendshapes.push(qa(t3.g() ?? []));
|
|
3368
|
+
tu(this, e3);
|
|
3369
|
+
}), this.g.attachEmptyPacketListener("blendshapes", (t3) => {
|
|
3370
|
+
tu(this, t3);
|
|
3371
|
+
})), this.outputFacialTransformationMatrixes && (go(t2, "face_geometry"), ao(r2, "FACE_GEOMETRY:face_geometry"), this.g.attachProtoVectorListener("face_geometry", (t3, e3) => {
|
|
3372
|
+
if (this.outputFacialTransformationMatrixes) for (let e4 of t3) (t3 = Sr(t3 = ea(e4), Fo, 2)) && this.l.facialTransformationMatrixes.push({ rows: Or(t3, 1) ?? 0 ?? 0, columns: Or(t3, 2) ?? 0 ?? 0, data: lr(t3, 3, Jt, cr()).slice() ?? [] });
|
|
3373
|
+
tu(this, e3);
|
|
3374
|
+
}), this.g.attachEmptyPacketListener("face_geometry", (t3) => {
|
|
3375
|
+
tu(this, t3);
|
|
3376
|
+
})), t2 = t2.g(), this.setGraph(new Uint8Array(t2), true);
|
|
3377
|
+
}
|
|
3378
|
+
};
|
|
3379
|
+
mc.prototype.detectForVideo = mc.prototype.H, mc.prototype.detect = mc.prototype.G, mc.prototype.setOptions = mc.prototype.v, mc.createFromModelPath = function(t2, e2) {
|
|
3380
|
+
return Zu(mc, t2, { baseOptions: { modelAssetPath: e2 } });
|
|
3381
|
+
}, mc.createFromModelBuffer = function(t2, e2) {
|
|
3382
|
+
return Zu(mc, t2, { baseOptions: { modelAssetBuffer: e2 } });
|
|
3383
|
+
}, mc.createFromOptions = function(t2, e2) {
|
|
3384
|
+
return Zu(mc, t2, e2);
|
|
3385
|
+
}, mc.FACE_LANDMARKS_LIPS = sc, r("module$exports$google3$third_party$mediapipe$tasks$web$vision$face_landmarker$face_landmarker.FaceLandmarker.FACE_LANDMARKS_LIPS", mc.FACE_LANDMARKS_LIPS), mc.FACE_LANDMARKS_LEFT_EYE = oc, r("module$exports$google3$third_party$mediapipe$tasks$web$vision$face_landmarker$face_landmarker.FaceLandmarker.FACE_LANDMARKS_LEFT_EYE", mc.FACE_LANDMARKS_LEFT_EYE), mc.FACE_LANDMARKS_LEFT_EYEBROW = ac, r("module$exports$google3$third_party$mediapipe$tasks$web$vision$face_landmarker$face_landmarker.FaceLandmarker.FACE_LANDMARKS_LEFT_EYEBROW", mc.FACE_LANDMARKS_LEFT_EYEBROW), mc.FACE_LANDMARKS_LEFT_IRIS = hc, r("module$exports$google3$third_party$mediapipe$tasks$web$vision$face_landmarker$face_landmarker.FaceLandmarker.FACE_LANDMARKS_LEFT_IRIS", mc.FACE_LANDMARKS_LEFT_IRIS), mc.FACE_LANDMARKS_RIGHT_EYE = uc, r("module$exports$google3$third_party$mediapipe$tasks$web$vision$face_landmarker$face_landmarker.FaceLandmarker.FACE_LANDMARKS_RIGHT_EYE", mc.FACE_LANDMARKS_RIGHT_EYE), mc.FACE_LANDMARKS_RIGHT_EYEBROW = cc, r("module$exports$google3$third_party$mediapipe$tasks$web$vision$face_landmarker$face_landmarker.FaceLandmarker.FACE_LANDMARKS_RIGHT_EYEBROW", mc.FACE_LANDMARKS_RIGHT_EYEBROW), mc.FACE_LANDMARKS_RIGHT_IRIS = lc, r("module$exports$google3$third_party$mediapipe$tasks$web$vision$face_landmarker$face_landmarker.FaceLandmarker.FACE_LANDMARKS_RIGHT_IRIS", mc.FACE_LANDMARKS_RIGHT_IRIS), mc.FACE_LANDMARKS_FACE_OVAL = dc, r("module$exports$google3$third_party$mediapipe$tasks$web$vision$face_landmarker$face_landmarker.FaceLandmarker.FACE_LANDMARKS_FACE_OVAL", mc.FACE_LANDMARKS_FACE_OVAL), mc.FACE_LANDMARKS_CONTOURS = fc, r("module$exports$google3$third_party$mediapipe$tasks$web$vision$face_landmarker$face_landmarker.FaceLandmarker.FACE_LANDMARKS_CONTOURS", mc.FACE_LANDMARKS_CONTOURS), mc.FACE_LANDMARKS_TESSELATION = pc, r("module$exports$google3$third_party$mediapipe$tasks$web$vision$face_landmarker$face_landmarker.FaceLandmarker.FACE_LANDMARKS_TESSELATION", mc.FACE_LANDMARKS_TESSELATION);
|
|
3386
|
+
var vc = zu([0, 1], [1, 2], [2, 3], [3, 4], [0, 5], [5, 6], [6, 7], [7, 8], [5, 9], [9, 10], [10, 11], [11, 12], [9, 13], [13, 14], [14, 15], [15, 16], [13, 17], [0, 17], [17, 18], [18, 19], [19, 20]);
|
|
3387
|
+
function _c(t2) {
|
|
3388
|
+
t2.gestures = [], t2.landmarks = [], t2.worldLandmarks = [], t2.handedness = [];
|
|
3389
|
+
}
|
|
3390
|
+
function yc(t2) {
|
|
3391
|
+
return 0 === t2.gestures.length ? { gestures: [], landmarks: [], worldLandmarks: [], handedness: [], handednesses: [] } : { gestures: t2.gestures, landmarks: t2.landmarks, worldLandmarks: t2.worldLandmarks, handedness: t2.handedness, handednesses: t2.handedness };
|
|
3392
|
+
}
|
|
3393
|
+
function Ec(t2, e2 = true) {
|
|
3394
|
+
var r2 = [];
|
|
3395
|
+
for (let i2 of t2) {
|
|
3396
|
+
var n2 = wo(i2);
|
|
3397
|
+
t2 = [];
|
|
3398
|
+
for (let r3 of n2.g()) n2 = e2 && null != Or(r3, 1) ? Or(r3, 1) ?? 0 : -1, t2.push({ score: Dr(r3, 2) ?? 0, index: n2, categoryName: _e(sr(r3, 3)) ?? "" ?? "", displayName: _e(sr(r3, 4)) ?? "" ?? "" });
|
|
3399
|
+
r2.push(t2);
|
|
3400
|
+
}
|
|
3401
|
+
return r2;
|
|
3402
|
+
}
|
|
3403
|
+
var Ac = class extends nc {
|
|
3404
|
+
constructor(t2, e2) {
|
|
3405
|
+
super(new Ju(t2, e2), "image_in", "norm_rect", false), this.gestures = [], this.landmarks = [], this.worldLandmarks = [], this.handedness = [], Ir(t2 = this.l = new da(), 0, 1, e2 = new zo()), this.u = new la(), Ir(this.l, 0, 2, this.u), this.F = new ca(), Ir(this.u, 0, 3, this.F), this.B = new ua(), Ir(this.u, 0, 2, this.B), this.h = new ha(), Ir(this.l, 0, 3, this.h), jr(this.B, 2, 0.5), jr(this.u, 4, 0.5), jr(this.F, 2, 0.5);
|
|
3406
|
+
}
|
|
3407
|
+
C() {
|
|
3408
|
+
return "GestureRecognizer";
|
|
3409
|
+
}
|
|
3410
|
+
get baseOptions() {
|
|
3411
|
+
return Sr(this.l, zo, 1);
|
|
3412
|
+
}
|
|
3413
|
+
set baseOptions(t2) {
|
|
3414
|
+
Ir(this.l, 0, 1, t2);
|
|
3415
|
+
}
|
|
3416
|
+
v(t2) {
|
|
3417
|
+
if (Ur(this.B, 3, t2.numHands ?? 1), "minHandDetectionConfidence" in t2 && jr(this.B, 2, t2.minHandDetectionConfidence ?? 0.5), "minTrackingConfidence" in t2 && jr(this.u, 4, t2.minTrackingConfidence ?? 0.5), "minHandPresenceConfidence" in t2 && jr(this.F, 2, t2.minHandPresenceConfidence ?? 0.5), t2.cannedGesturesClassifierOptions) {
|
|
3418
|
+
var e2 = new oa(), r2 = e2, n2 = za(t2.cannedGesturesClassifierOptions, Sr(this.h, oa, 3)?.j());
|
|
3419
|
+
Ir(r2, 0, 2, n2), Ir(this.h, 0, 3, e2);
|
|
3420
|
+
} else void 0 === t2.cannedGesturesClassifierOptions && Sr(this.h, oa, 3)?.g();
|
|
3421
|
+
return t2.customGesturesClassifierOptions ? (Ir(r2 = e2 = new oa(), 0, 2, n2 = za(t2.customGesturesClassifierOptions, Sr(this.h, oa, 4)?.j())), Ir(this.h, 0, 4, e2)) : void 0 === t2.customGesturesClassifierOptions && Sr(this.h, oa, 4)?.g(), this.j(t2);
|
|
3422
|
+
}
|
|
3423
|
+
Xa(t2, e2) {
|
|
3424
|
+
return _c(this), tc(this, t2, e2), yc(this);
|
|
3425
|
+
}
|
|
3426
|
+
Ya(t2, e2, r2) {
|
|
3427
|
+
return _c(this), ec(this, t2, r2, e2), yc(this);
|
|
3428
|
+
}
|
|
3429
|
+
o() {
|
|
3430
|
+
var t2 = new mo();
|
|
3431
|
+
po(t2, "image_in"), po(t2, "norm_rect"), go(t2, "hand_gestures"), go(t2, "hand_landmarks"), go(t2, "world_hand_landmarks"), go(t2, "handedness");
|
|
3432
|
+
var e2 = new no();
|
|
3433
|
+
li(e2, va, this.l);
|
|
3434
|
+
var r2 = new ho();
|
|
3435
|
+
Hr(r2, 2, "mediapipe.tasks.vision.gesture_recognizer.GestureRecognizerGraph"), oo(r2, "IMAGE:image_in"), oo(r2, "NORM_RECT:norm_rect"), ao(r2, "HAND_GESTURES:hand_gestures"), ao(r2, "LANDMARKS:hand_landmarks"), ao(r2, "WORLD_LANDMARKS:world_hand_landmarks"), ao(r2, "HANDEDNESS:handedness"), r2.v(e2), fo(t2, r2), this.g.attachProtoVectorListener("hand_landmarks", (t3, e3) => {
|
|
3436
|
+
for (let e4 of t3) {
|
|
3437
|
+
t3 = Io(e4);
|
|
3438
|
+
let r3 = [];
|
|
3439
|
+
for (let e5 of xr(t3, Ro, 1)) r3.push({ x: Dr(e5, 1) ?? 0, y: Dr(e5, 2) ?? 0, z: Dr(e5, 3) ?? 0, visibility: Dr(e5, 4) ?? 0 });
|
|
3440
|
+
this.landmarks.push(r3);
|
|
3441
|
+
}
|
|
3442
|
+
tu(this, e3);
|
|
3443
|
+
}), this.g.attachEmptyPacketListener("hand_landmarks", (t3) => {
|
|
3444
|
+
tu(this, t3);
|
|
3445
|
+
}), this.g.attachProtoVectorListener("world_hand_landmarks", (t3, e3) => {
|
|
3446
|
+
for (let e4 of t3) {
|
|
3447
|
+
t3 = xo(e4);
|
|
3448
|
+
let r3 = [];
|
|
3449
|
+
for (let e5 of xr(t3, Lo, 1)) r3.push({ x: Dr(e5, 1) ?? 0, y: Dr(e5, 2) ?? 0, z: Dr(e5, 3) ?? 0, visibility: Dr(e5, 4) ?? 0 });
|
|
3450
|
+
this.worldLandmarks.push(r3);
|
|
3451
|
+
}
|
|
3452
|
+
tu(this, e3);
|
|
3453
|
+
}), this.g.attachEmptyPacketListener("world_hand_landmarks", (t3) => {
|
|
3454
|
+
tu(this, t3);
|
|
3455
|
+
}), this.g.attachProtoVectorListener("hand_gestures", (t3, e3) => {
|
|
3456
|
+
this.gestures.push(...Ec(t3, false)), tu(this, e3);
|
|
3457
|
+
}), this.g.attachEmptyPacketListener("hand_gestures", (t3) => {
|
|
3458
|
+
tu(this, t3);
|
|
3459
|
+
}), this.g.attachProtoVectorListener("handedness", (t3, e3) => {
|
|
3460
|
+
this.handedness.push(...Ec(t3)), tu(this, e3);
|
|
3461
|
+
}), this.g.attachEmptyPacketListener("handedness", (t3) => {
|
|
3462
|
+
tu(this, t3);
|
|
3463
|
+
}), t2 = t2.g(), this.setGraph(new Uint8Array(t2), true);
|
|
3464
|
+
}
|
|
3465
|
+
};
|
|
3466
|
+
function wc(t2) {
|
|
3467
|
+
return { landmarks: t2.landmarks, worldLandmarks: t2.worldLandmarks, handednesses: t2.handedness, handedness: t2.handedness };
|
|
3468
|
+
}
|
|
3469
|
+
Ac.prototype.recognizeForVideo = Ac.prototype.Ya, Ac.prototype.recognize = Ac.prototype.Xa, Ac.prototype.setOptions = Ac.prototype.v, Ac.createFromModelPath = function(t2, e2) {
|
|
3470
|
+
return Zu(Ac, t2, { baseOptions: { modelAssetPath: e2 } });
|
|
3471
|
+
}, Ac.createFromModelBuffer = function(t2, e2) {
|
|
3472
|
+
return Zu(Ac, t2, { baseOptions: { modelAssetBuffer: e2 } });
|
|
3473
|
+
}, Ac.createFromOptions = function(t2, e2) {
|
|
3474
|
+
return Zu(Ac, t2, e2);
|
|
3475
|
+
}, Ac.HAND_CONNECTIONS = vc, r("module$exports$google3$third_party$mediapipe$tasks$web$vision$gesture_recognizer$gesture_recognizer.GestureRecognizer.HAND_CONNECTIONS", Ac.HAND_CONNECTIONS);
|
|
3476
|
+
var bc = class extends nc {
|
|
3477
|
+
constructor(t2, e2) {
|
|
3478
|
+
super(new Ju(t2, e2), "image_in", "norm_rect", false), this.landmarks = [], this.worldLandmarks = [], this.handedness = [], Ir(t2 = this.h = new la(), 0, 1, e2 = new zo()), this.u = new ca(), Ir(this.h, 0, 3, this.u), this.l = new ua(), Ir(this.h, 0, 2, this.l), Ur(this.l, 3, 1), jr(this.l, 2, 0.5), jr(this.u, 2, 0.5), jr(this.h, 4, 0.5);
|
|
3479
|
+
}
|
|
3480
|
+
C() {
|
|
3481
|
+
return "HandLandmarker";
|
|
3482
|
+
}
|
|
3483
|
+
get baseOptions() {
|
|
3484
|
+
return Sr(this.h, zo, 1);
|
|
3485
|
+
}
|
|
3486
|
+
set baseOptions(t2) {
|
|
3487
|
+
Ir(this.h, 0, 1, t2);
|
|
3488
|
+
}
|
|
3489
|
+
v(t2) {
|
|
3490
|
+
return "numHands" in t2 && Ur(this.l, 3, t2.numHands ?? 1), "minHandDetectionConfidence" in t2 && jr(this.l, 2, t2.minHandDetectionConfidence ?? 0.5), "minTrackingConfidence" in t2 && jr(this.h, 4, t2.minTrackingConfidence ?? 0.5), "minHandPresenceConfidence" in t2 && jr(this.u, 2, t2.minHandPresenceConfidence ?? 0.5), this.j(t2);
|
|
3491
|
+
}
|
|
3492
|
+
G(t2, e2) {
|
|
3493
|
+
return this.landmarks = [], this.worldLandmarks = [], this.handedness = [], tc(this, t2, e2), wc(this);
|
|
3494
|
+
}
|
|
3495
|
+
H(t2, e2, r2) {
|
|
3496
|
+
return this.landmarks = [], this.worldLandmarks = [], this.handedness = [], ec(this, t2, r2, e2), wc(this);
|
|
3497
|
+
}
|
|
3498
|
+
o() {
|
|
3499
|
+
var t2 = new mo();
|
|
3500
|
+
po(t2, "image_in"), po(t2, "norm_rect"), go(t2, "hand_landmarks"), go(t2, "world_hand_landmarks"), go(t2, "handedness");
|
|
3501
|
+
var e2 = new no();
|
|
3502
|
+
li(e2, _a, this.h);
|
|
3503
|
+
var r2 = new ho();
|
|
3504
|
+
Hr(r2, 2, "mediapipe.tasks.vision.hand_landmarker.HandLandmarkerGraph"), oo(r2, "IMAGE:image_in"), oo(r2, "NORM_RECT:norm_rect"), ao(r2, "LANDMARKS:hand_landmarks"), ao(r2, "WORLD_LANDMARKS:world_hand_landmarks"), ao(r2, "HANDEDNESS:handedness"), r2.v(e2), fo(t2, r2), this.g.attachProtoVectorListener("hand_landmarks", (t3, e3) => {
|
|
3505
|
+
for (let e4 of t3) t3 = Io(e4), this.landmarks.push(Qa(t3));
|
|
3506
|
+
tu(this, e3);
|
|
3507
|
+
}), this.g.attachEmptyPacketListener("hand_landmarks", (t3) => {
|
|
3508
|
+
tu(this, t3);
|
|
3509
|
+
}), this.g.attachProtoVectorListener("world_hand_landmarks", (t3, e3) => {
|
|
3510
|
+
for (let e4 of t3) t3 = xo(e4), this.worldLandmarks.push(th(t3));
|
|
3511
|
+
tu(this, e3);
|
|
3512
|
+
}), this.g.attachEmptyPacketListener("world_hand_landmarks", (t3) => {
|
|
3513
|
+
tu(this, t3);
|
|
3514
|
+
}), this.g.attachProtoVectorListener("handedness", (t3, e3) => {
|
|
3515
|
+
var r3 = this.handedness, n2 = r3.push, i2 = [];
|
|
3516
|
+
for (let e4 of t3) {
|
|
3517
|
+
t3 = wo(e4);
|
|
3518
|
+
let r4 = [];
|
|
3519
|
+
for (let e5 of t3.g()) r4.push({ score: Dr(e5, 2) ?? 0, index: Or(e5, 1) ?? 0 ?? -1, categoryName: _e(sr(e5, 3)) ?? "" ?? "", displayName: _e(sr(e5, 4)) ?? "" ?? "" });
|
|
3520
|
+
i2.push(r4);
|
|
3521
|
+
}
|
|
3522
|
+
n2.call(r3, ...i2), tu(this, e3);
|
|
3523
|
+
}), this.g.attachEmptyPacketListener("handedness", (t3) => {
|
|
3524
|
+
tu(this, t3);
|
|
3525
|
+
}), t2 = t2.g(), this.setGraph(new Uint8Array(t2), true);
|
|
3526
|
+
}
|
|
3527
|
+
};
|
|
3528
|
+
bc.prototype.detectForVideo = bc.prototype.H, bc.prototype.detect = bc.prototype.G, bc.prototype.setOptions = bc.prototype.v, bc.createFromModelPath = function(t2, e2) {
|
|
3529
|
+
return Zu(bc, t2, { baseOptions: { modelAssetPath: e2 } });
|
|
3530
|
+
}, bc.createFromModelBuffer = function(t2, e2) {
|
|
3531
|
+
return Zu(bc, t2, { baseOptions: { modelAssetBuffer: e2 } });
|
|
3532
|
+
}, bc.createFromOptions = function(t2, e2) {
|
|
3533
|
+
return Zu(bc, t2, e2);
|
|
3534
|
+
}, bc.HAND_CONNECTIONS = vc, r("module$exports$google3$third_party$mediapipe$tasks$web$vision$hand_landmarker$hand_landmarker.HandLandmarker.HAND_CONNECTIONS", bc.HAND_CONNECTIONS);
|
|
3535
|
+
var Tc = zu([0, 1], [1, 2], [2, 3], [3, 7], [0, 4], [4, 5], [5, 6], [6, 8], [9, 10], [11, 12], [11, 13], [13, 15], [15, 17], [15, 19], [15, 21], [17, 19], [12, 14], [14, 16], [16, 18], [16, 20], [16, 22], [18, 20], [11, 23], [12, 24], [23, 24], [23, 25], [24, 26], [25, 27], [26, 28], [27, 29], [28, 30], [29, 31], [30, 32], [27, 31], [28, 32]);
|
|
3536
|
+
function kc(t2) {
|
|
3537
|
+
t2.h = { faceLandmarks: [], faceBlendshapes: [], poseLandmarks: [], poseWorldLandmarks: [], poseSegmentationMasks: [], leftHandLandmarks: [], leftHandWorldLandmarks: [], rightHandLandmarks: [], rightHandWorldLandmarks: [] };
|
|
3538
|
+
}
|
|
3539
|
+
function Sc(t2) {
|
|
3540
|
+
try {
|
|
3541
|
+
if (!t2.F) return t2.h;
|
|
3542
|
+
t2.F(t2.h);
|
|
3543
|
+
} finally {
|
|
3544
|
+
nu(t2);
|
|
3545
|
+
}
|
|
3546
|
+
}
|
|
3547
|
+
function Lc(t2, e2) {
|
|
3548
|
+
t2 = Io(t2), e2.push(Qa(t2));
|
|
3549
|
+
}
|
|
3550
|
+
var xc = class extends nc {
|
|
3551
|
+
constructor(t2, e2) {
|
|
3552
|
+
super(new Ju(t2, e2), "input_frames_image", null, false), this.h = { faceLandmarks: [], faceBlendshapes: [], poseLandmarks: [], poseWorldLandmarks: [], poseSegmentationMasks: [], leftHandLandmarks: [], leftHandWorldLandmarks: [], rightHandLandmarks: [], rightHandWorldLandmarks: [] }, this.outputPoseSegmentationMasks = this.outputFaceBlendshapes = false, Ir(t2 = this.l = new wa(), 0, 1, e2 = new zo()), this.Y = new ca(), Ir(this.l, 0, 2, this.Y), this.Aa = new ya(), Ir(this.l, 0, 3, this.Aa), this.u = new Zo(), Ir(this.l, 0, 4, this.u), this.O = new ra(), Ir(this.l, 0, 5, this.O), this.B = new Ea(), Ir(this.l, 0, 6, this.B), this.Z = new Aa(), Ir(this.l, 0, 7, this.Z), jr(this.u, 2, 0.5), jr(this.u, 3, 0.3), jr(this.O, 2, 0.5), jr(this.B, 2, 0.5), jr(this.B, 3, 0.3), jr(this.Z, 2, 0.5), jr(this.Y, 2, 0.5);
|
|
3553
|
+
}
|
|
3554
|
+
C() {
|
|
3555
|
+
return "HolisticLandmarker";
|
|
3556
|
+
}
|
|
3557
|
+
get baseOptions() {
|
|
3558
|
+
return Sr(this.l, zo, 1);
|
|
3559
|
+
}
|
|
3560
|
+
set baseOptions(t2) {
|
|
3561
|
+
Ir(this.l, 0, 1, t2);
|
|
3562
|
+
}
|
|
3563
|
+
v(t2) {
|
|
3564
|
+
return "minFaceDetectionConfidence" in t2 && jr(this.u, 2, t2.minFaceDetectionConfidence ?? 0.5), "minFaceSuppressionThreshold" in t2 && jr(this.u, 3, t2.minFaceSuppressionThreshold ?? 0.3), "minFacePresenceConfidence" in t2 && jr(this.O, 2, t2.minFacePresenceConfidence ?? 0.5), "outputFaceBlendshapes" in t2 && (this.outputFaceBlendshapes = !!t2.outputFaceBlendshapes), "minPoseDetectionConfidence" in t2 && jr(this.B, 2, t2.minPoseDetectionConfidence ?? 0.5), "minPoseSuppressionThreshold" in t2 && jr(this.B, 3, t2.minPoseSuppressionThreshold ?? 0.3), "minPosePresenceConfidence" in t2 && jr(this.Z, 2, t2.minPosePresenceConfidence ?? 0.5), "outputPoseSegmentationMasks" in t2 && (this.outputPoseSegmentationMasks = !!t2.outputPoseSegmentationMasks), "minHandLandmarksConfidence" in t2 && jr(this.Y, 2, t2.minHandLandmarksConfidence ?? 0.5), this.j(t2);
|
|
3565
|
+
}
|
|
3566
|
+
G(t2, e2, r2) {
|
|
3567
|
+
var n2 = "function" != typeof e2 ? e2 : {};
|
|
3568
|
+
return this.F = "function" == typeof e2 ? e2 : r2, kc(this), tc(this, t2, n2), Sc(this);
|
|
3569
|
+
}
|
|
3570
|
+
H(t2, e2, r2, n2) {
|
|
3571
|
+
var i2 = "function" != typeof r2 ? r2 : {};
|
|
3572
|
+
return this.F = "function" == typeof r2 ? r2 : n2, kc(this), ec(this, t2, i2, e2), Sc(this);
|
|
3573
|
+
}
|
|
3574
|
+
o() {
|
|
3575
|
+
var t2 = new mo();
|
|
3576
|
+
po(t2, "input_frames_image"), go(t2, "pose_landmarks"), go(t2, "pose_world_landmarks"), go(t2, "face_landmarks"), go(t2, "left_hand_landmarks"), go(t2, "left_hand_world_landmarks"), go(t2, "right_hand_landmarks"), go(t2, "right_hand_world_landmarks");
|
|
3577
|
+
var e2 = new no(), r2 = new Bs();
|
|
3578
|
+
Hr(r2, 1, "type.googleapis.com/mediapipe.tasks.vision.holistic_landmarker.proto.HolisticLandmarkerGraphOptions"), function(t3, e3) {
|
|
3579
|
+
if (null != e3) if (Array.isArray(e3)) ar(t3, 2, Ge(e3, 0, Ve));
|
|
3580
|
+
else {
|
|
3581
|
+
if (!("string" == typeof e3 || e3 instanceof N || x(e3))) throw Error("invalid value in Any.value field: " + e3 + " expected a ByteString, a base64 encoded string, a Uint8Array or a jspb array");
|
|
3582
|
+
_r(t3, 2, ct(e3, false), I());
|
|
3583
|
+
}
|
|
3584
|
+
}(r2, this.l.g());
|
|
3585
|
+
var n2 = new ho();
|
|
3586
|
+
Hr(n2, 2, "mediapipe.tasks.vision.holistic_landmarker.HolisticLandmarkerGraph"), Mr(n2, 8, Bs, r2), oo(n2, "IMAGE:input_frames_image"), ao(n2, "POSE_LANDMARKS:pose_landmarks"), ao(n2, "POSE_WORLD_LANDMARKS:pose_world_landmarks"), ao(n2, "FACE_LANDMARKS:face_landmarks"), ao(n2, "LEFT_HAND_LANDMARKS:left_hand_landmarks"), ao(n2, "LEFT_HAND_WORLD_LANDMARKS:left_hand_world_landmarks"), ao(n2, "RIGHT_HAND_LANDMARKS:right_hand_landmarks"), ao(n2, "RIGHT_HAND_WORLD_LANDMARKS:right_hand_world_landmarks"), n2.v(e2), fo(t2, n2), eu(this, t2), this.g.attachProtoListener("pose_landmarks", (t3, e3) => {
|
|
3587
|
+
Lc(t3, this.h.poseLandmarks), tu(this, e3);
|
|
3588
|
+
}), this.g.attachEmptyPacketListener("pose_landmarks", (t3) => {
|
|
3589
|
+
tu(this, t3);
|
|
3590
|
+
}), this.g.attachProtoListener("pose_world_landmarks", (t3, e3) => {
|
|
3591
|
+
var r3 = this.h.poseWorldLandmarks;
|
|
3592
|
+
t3 = xo(t3), r3.push(th(t3)), tu(this, e3);
|
|
3593
|
+
}), this.g.attachEmptyPacketListener("pose_world_landmarks", (t3) => {
|
|
3594
|
+
tu(this, t3);
|
|
3595
|
+
}), this.outputPoseSegmentationMasks && (ao(n2, "POSE_SEGMENTATION_MASK:pose_segmentation_mask"), ru(this, "pose_segmentation_mask"), this.g.ga("pose_segmentation_mask", (t3, e3) => {
|
|
3596
|
+
this.h.poseSegmentationMasks = [rc(this, t3, true, !this.F)], tu(this, e3);
|
|
3597
|
+
}), this.g.attachEmptyPacketListener("pose_segmentation_mask", (t3) => {
|
|
3598
|
+
this.h.poseSegmentationMasks = [], tu(this, t3);
|
|
3599
|
+
})), this.g.attachProtoListener("face_landmarks", (t3, e3) => {
|
|
3600
|
+
Lc(t3, this.h.faceLandmarks), tu(this, e3);
|
|
3601
|
+
}), this.g.attachEmptyPacketListener("face_landmarks", (t3) => {
|
|
3602
|
+
tu(this, t3);
|
|
3603
|
+
}), this.outputFaceBlendshapes && (go(t2, "extra_blendshapes"), ao(n2, "FACE_BLENDSHAPES:extra_blendshapes"), this.g.attachProtoListener("extra_blendshapes", (t3, e3) => {
|
|
3604
|
+
var r3 = this.h.faceBlendshapes;
|
|
3605
|
+
this.outputFaceBlendshapes && (t3 = wo(t3), r3.push(qa(t3.g() ?? []))), tu(this, e3);
|
|
3606
|
+
}), this.g.attachEmptyPacketListener("extra_blendshapes", (t3) => {
|
|
3607
|
+
tu(this, t3);
|
|
3608
|
+
})), this.g.attachProtoListener("left_hand_landmarks", (t3, e3) => {
|
|
3609
|
+
Lc(t3, this.h.leftHandLandmarks), tu(this, e3);
|
|
3610
|
+
}), this.g.attachEmptyPacketListener("left_hand_landmarks", (t3) => {
|
|
3611
|
+
tu(this, t3);
|
|
3612
|
+
}), this.g.attachProtoListener("left_hand_world_landmarks", (t3, e3) => {
|
|
3613
|
+
var r3 = this.h.leftHandWorldLandmarks;
|
|
3614
|
+
t3 = xo(t3), r3.push(th(t3)), tu(this, e3);
|
|
3615
|
+
}), this.g.attachEmptyPacketListener("left_hand_world_landmarks", (t3) => {
|
|
3616
|
+
tu(this, t3);
|
|
3617
|
+
}), this.g.attachProtoListener("right_hand_landmarks", (t3, e3) => {
|
|
3618
|
+
Lc(t3, this.h.rightHandLandmarks), tu(this, e3);
|
|
3619
|
+
}), this.g.attachEmptyPacketListener("right_hand_landmarks", (t3) => {
|
|
3620
|
+
tu(this, t3);
|
|
3621
|
+
}), this.g.attachProtoListener("right_hand_world_landmarks", (t3, e3) => {
|
|
3622
|
+
var r3 = this.h.rightHandWorldLandmarks;
|
|
3623
|
+
t3 = xo(t3), r3.push(th(t3)), tu(this, e3);
|
|
3624
|
+
}), this.g.attachEmptyPacketListener("right_hand_world_landmarks", (t3) => {
|
|
3625
|
+
tu(this, t3);
|
|
3626
|
+
}), t2 = t2.g(), this.setGraph(new Uint8Array(t2), true);
|
|
3627
|
+
}
|
|
3628
|
+
};
|
|
3629
|
+
xc.prototype.detectForVideo = xc.prototype.H, xc.prototype.detect = xc.prototype.G, xc.prototype.setOptions = xc.prototype.v, xc.createFromModelPath = function(t2, e2) {
|
|
3630
|
+
return Zu(xc, t2, { baseOptions: { modelAssetPath: e2 } });
|
|
3631
|
+
}, xc.createFromModelBuffer = function(t2, e2) {
|
|
3632
|
+
return Zu(xc, t2, { baseOptions: { modelAssetBuffer: e2 } });
|
|
3633
|
+
}, xc.createFromOptions = function(t2, e2) {
|
|
3634
|
+
return Zu(xc, t2, e2);
|
|
3635
|
+
}, xc.HAND_CONNECTIONS = vc, r("module$exports$google3$third_party$mediapipe$tasks$web$vision$holistic_landmarker$holistic_landmarker.HolisticLandmarker.HAND_CONNECTIONS", xc.HAND_CONNECTIONS), xc.POSE_CONNECTIONS = Tc, r("module$exports$google3$third_party$mediapipe$tasks$web$vision$holistic_landmarker$holistic_landmarker.HolisticLandmarker.POSE_CONNECTIONS", xc.POSE_CONNECTIONS), xc.FACE_LANDMARKS_LIPS = sc, r("module$exports$google3$third_party$mediapipe$tasks$web$vision$holistic_landmarker$holistic_landmarker.HolisticLandmarker.FACE_LANDMARKS_LIPS", xc.FACE_LANDMARKS_LIPS), xc.FACE_LANDMARKS_LEFT_EYE = oc, r("module$exports$google3$third_party$mediapipe$tasks$web$vision$holistic_landmarker$holistic_landmarker.HolisticLandmarker.FACE_LANDMARKS_LEFT_EYE", xc.FACE_LANDMARKS_LEFT_EYE), xc.FACE_LANDMARKS_LEFT_EYEBROW = ac, r("module$exports$google3$third_party$mediapipe$tasks$web$vision$holistic_landmarker$holistic_landmarker.HolisticLandmarker.FACE_LANDMARKS_LEFT_EYEBROW", xc.FACE_LANDMARKS_LEFT_EYEBROW), xc.FACE_LANDMARKS_LEFT_IRIS = hc, r("module$exports$google3$third_party$mediapipe$tasks$web$vision$holistic_landmarker$holistic_landmarker.HolisticLandmarker.FACE_LANDMARKS_LEFT_IRIS", xc.FACE_LANDMARKS_LEFT_IRIS), xc.FACE_LANDMARKS_RIGHT_EYE = uc, r("module$exports$google3$third_party$mediapipe$tasks$web$vision$holistic_landmarker$holistic_landmarker.HolisticLandmarker.FACE_LANDMARKS_RIGHT_EYE", xc.FACE_LANDMARKS_RIGHT_EYE), xc.FACE_LANDMARKS_RIGHT_EYEBROW = cc, r("module$exports$google3$third_party$mediapipe$tasks$web$vision$holistic_landmarker$holistic_landmarker.HolisticLandmarker.FACE_LANDMARKS_RIGHT_EYEBROW", xc.FACE_LANDMARKS_RIGHT_EYEBROW), xc.FACE_LANDMARKS_RIGHT_IRIS = lc, r("module$exports$google3$third_party$mediapipe$tasks$web$vision$holistic_landmarker$holistic_landmarker.HolisticLandmarker.FACE_LANDMARKS_RIGHT_IRIS", xc.FACE_LANDMARKS_RIGHT_IRIS), xc.FACE_LANDMARKS_FACE_OVAL = dc, r("module$exports$google3$third_party$mediapipe$tasks$web$vision$holistic_landmarker$holistic_landmarker.HolisticLandmarker.FACE_LANDMARKS_FACE_OVAL", xc.FACE_LANDMARKS_FACE_OVAL), xc.FACE_LANDMARKS_CONTOURS = fc, r("module$exports$google3$third_party$mediapipe$tasks$web$vision$holistic_landmarker$holistic_landmarker.HolisticLandmarker.FACE_LANDMARKS_CONTOURS", xc.FACE_LANDMARKS_CONTOURS), xc.FACE_LANDMARKS_TESSELATION = pc, r("module$exports$google3$third_party$mediapipe$tasks$web$vision$holistic_landmarker$holistic_landmarker.HolisticLandmarker.FACE_LANDMARKS_TESSELATION", xc.FACE_LANDMARKS_TESSELATION);
|
|
3636
|
+
var Rc = class extends nc {
|
|
3637
|
+
constructor(t2, e2) {
|
|
3638
|
+
super(new Ju(t2, e2), "input_image", "norm_rect", true), this.l = { classifications: [] }, Ir(t2 = this.h = new ka(), 0, 1, e2 = new zo());
|
|
3639
|
+
}
|
|
3640
|
+
C() {
|
|
3641
|
+
return "ImageClassifier";
|
|
3642
|
+
}
|
|
3643
|
+
get baseOptions() {
|
|
3644
|
+
return Sr(this.h, zo, 1);
|
|
3645
|
+
}
|
|
3646
|
+
set baseOptions(t2) {
|
|
3647
|
+
Ir(this.h, 0, 1, t2);
|
|
3648
|
+
}
|
|
3649
|
+
v(t2) {
|
|
3650
|
+
return Ir(this.h, 0, 2, za(t2, Sr(this.h, Go, 2))), this.j(t2);
|
|
3651
|
+
}
|
|
3652
|
+
Ga(t2, e2) {
|
|
3653
|
+
return this.l = { classifications: [] }, tc(this, t2, e2), this.l;
|
|
3654
|
+
}
|
|
3655
|
+
Ha(t2, e2, r2) {
|
|
3656
|
+
return this.l = { classifications: [] }, ec(this, t2, r2, e2), this.l;
|
|
3657
|
+
}
|
|
3658
|
+
o() {
|
|
3659
|
+
var t2 = new mo();
|
|
3660
|
+
po(t2, "input_image"), po(t2, "norm_rect"), go(t2, "classifications");
|
|
3661
|
+
var e2 = new no();
|
|
3662
|
+
li(e2, Sa, this.h);
|
|
3663
|
+
var r2 = new ho();
|
|
3664
|
+
Hr(r2, 2, "mediapipe.tasks.vision.image_classifier.ImageClassifierGraph"), oo(r2, "IMAGE:input_image"), oo(r2, "NORM_RECT:norm_rect"), ao(r2, "CLASSIFICATIONS:classifications"), r2.v(e2), fo(t2, r2), this.g.attachProtoListener("classifications", (t3, e3) => {
|
|
3665
|
+
this.l = Ja(Oo(t3)), tu(this, e3);
|
|
3666
|
+
}), this.g.attachEmptyPacketListener("classifications", (t3) => {
|
|
3667
|
+
tu(this, t3);
|
|
3668
|
+
}), t2 = t2.g(), this.setGraph(new Uint8Array(t2), true);
|
|
3669
|
+
}
|
|
3670
|
+
};
|
|
3671
|
+
Rc.prototype.classifyForVideo = Rc.prototype.Ha, Rc.prototype.classify = Rc.prototype.Ga, Rc.prototype.setOptions = Rc.prototype.v, Rc.createFromModelPath = function(t2, e2) {
|
|
3672
|
+
return Zu(Rc, t2, { baseOptions: { modelAssetPath: e2 } });
|
|
3673
|
+
}, Rc.createFromModelBuffer = function(t2, e2) {
|
|
3674
|
+
return Zu(Rc, t2, { baseOptions: { modelAssetBuffer: e2 } });
|
|
3675
|
+
}, Rc.createFromOptions = function(t2, e2) {
|
|
3676
|
+
return Zu(Rc, t2, e2);
|
|
3677
|
+
};
|
|
3678
|
+
var Ic = class extends nc {
|
|
3679
|
+
constructor(t2, e2) {
|
|
3680
|
+
super(new Ju(t2, e2), "image_in", "norm_rect", true), this.h = new La(), this.embeddings = { embeddings: [] }, Ir(t2 = this.h, 0, 1, e2 = new zo());
|
|
3681
|
+
}
|
|
3682
|
+
C() {
|
|
3683
|
+
return "ImageEmbedder";
|
|
3684
|
+
}
|
|
3685
|
+
get baseOptions() {
|
|
3686
|
+
return Sr(this.h, zo, 1);
|
|
3687
|
+
}
|
|
3688
|
+
set baseOptions(t2) {
|
|
3689
|
+
Ir(this.h, 0, 1, t2);
|
|
3690
|
+
}
|
|
3691
|
+
v(t2) {
|
|
3692
|
+
var e2 = this.h, r2 = Sr(this.h, Vo, 2);
|
|
3693
|
+
if (r2 = r2 ? r2.clone() : new Vo(), void 0 !== t2.l2Normalize) {
|
|
3694
|
+
var n2 = t2.l2Normalize;
|
|
3695
|
+
ar(r2, 1, null == n2 ? n2 : Zt(n2));
|
|
3696
|
+
} else "l2Normalize" in t2 && ar(r2, 1);
|
|
3697
|
+
return void 0 !== t2.quantize ? ar(r2, 2, null == (n2 = t2.quantize) ? n2 : Zt(n2)) : "quantize" in t2 && ar(r2, 2), Ir(e2, 0, 2, r2), this.j(t2);
|
|
3698
|
+
}
|
|
3699
|
+
Na(t2, e2) {
|
|
3700
|
+
return tc(this, t2, e2), this.embeddings;
|
|
3701
|
+
}
|
|
3702
|
+
Oa(t2, e2, r2) {
|
|
3703
|
+
return ec(this, t2, r2, e2), this.embeddings;
|
|
3704
|
+
}
|
|
3705
|
+
o() {
|
|
3706
|
+
var t2 = new mo();
|
|
3707
|
+
po(t2, "image_in"), po(t2, "norm_rect"), go(t2, "embeddings_out");
|
|
3708
|
+
var e2 = new no();
|
|
3709
|
+
li(e2, xa, this.h);
|
|
3710
|
+
var r2 = new ho();
|
|
3711
|
+
Hr(r2, 2, "mediapipe.tasks.vision.image_embedder.ImageEmbedderGraph"), oo(r2, "IMAGE:image_in"), oo(r2, "NORM_RECT:norm_rect"), ao(r2, "EMBEDDINGS:embeddings_out"), r2.v(e2), fo(t2, r2), this.g.attachProtoListener("embeddings_out", (t3, e3) => {
|
|
3712
|
+
t3 = Bo(t3), this.embeddings = function(t4) {
|
|
3713
|
+
return { embeddings: xr(t4, $o, 1).map((t5) => {
|
|
3714
|
+
var e4 = { headIndex: Or(t5, 3) ?? 0 ?? -1, headName: _e(sr(t5, 4)) ?? "" ?? "" };
|
|
3715
|
+
if (ur(t5, Do, 1, Uo)) t5 = lr(t5 = Pr(t5, Do, 1), 1, Jt, cr()), e4.floatEmbedding = t5.slice();
|
|
3716
|
+
else {
|
|
3717
|
+
let r3 = new Uint8Array(0);
|
|
3718
|
+
e4.quantizedEmbedding = Pr(t5, Po, 2)?.g()?.h() ?? r3;
|
|
3719
|
+
}
|
|
3720
|
+
return e4;
|
|
3721
|
+
}), timestampMs: Ya(sr(t4, 2, void 0, fe) ?? nr) };
|
|
3722
|
+
}(t3), tu(this, e3);
|
|
3723
|
+
}), this.g.attachEmptyPacketListener("embeddings_out", (t3) => {
|
|
3724
|
+
tu(this, t3);
|
|
3725
|
+
}), t2 = t2.g(), this.setGraph(new Uint8Array(t2), true);
|
|
3726
|
+
}
|
|
3727
|
+
};
|
|
3728
|
+
Ic.cosineSimilarity = function(t2, e2) {
|
|
3729
|
+
if (t2.floatEmbedding && e2.floatEmbedding) t2 = rh(t2.floatEmbedding, e2.floatEmbedding);
|
|
3730
|
+
else {
|
|
3731
|
+
if (!t2.quantizedEmbedding || !e2.quantizedEmbedding) throw Error("Cannot compute cosine similarity between quantized and float embeddings.");
|
|
3732
|
+
t2 = rh(eh(t2.quantizedEmbedding), eh(e2.quantizedEmbedding));
|
|
3733
|
+
}
|
|
3734
|
+
return t2;
|
|
3735
|
+
}, Ic.prototype.embedForVideo = Ic.prototype.Oa, Ic.prototype.embed = Ic.prototype.Na, Ic.prototype.setOptions = Ic.prototype.v, Ic.createFromModelPath = function(t2, e2) {
|
|
3736
|
+
return Zu(Ic, t2, { baseOptions: { modelAssetPath: e2 } });
|
|
3737
|
+
}, Ic.createFromModelBuffer = function(t2, e2) {
|
|
3738
|
+
return Zu(Ic, t2, { baseOptions: { modelAssetBuffer: e2 } });
|
|
3739
|
+
}, Ic.createFromOptions = function(t2, e2) {
|
|
3740
|
+
return Zu(Ic, t2, e2);
|
|
3741
|
+
};
|
|
3742
|
+
var Fc = class {
|
|
3743
|
+
constructor(t2, e2, r2) {
|
|
3744
|
+
this.confidenceMasks = t2, this.categoryMask = e2, this.qualityScores = r2;
|
|
3745
|
+
}
|
|
3746
|
+
close() {
|
|
3747
|
+
this.confidenceMasks?.forEach((t2) => {
|
|
3748
|
+
t2.close();
|
|
3749
|
+
}), this.categoryMask?.close();
|
|
3750
|
+
}
|
|
3751
|
+
};
|
|
3752
|
+
function Cc(t2) {
|
|
3753
|
+
var e2 = function(t3) {
|
|
3754
|
+
return xr(t3, ho, 1);
|
|
3755
|
+
}(t2.ja()).filter((t3) => (_e(sr(t3, 1)) ?? "").includes("mediapipe.tasks.TensorsToSegmentationCalculator"));
|
|
3756
|
+
if (t2.u = [], e2.length > 1) throw Error("The graph has more than one mediapipe.tasks.TensorsToSegmentationCalculator.");
|
|
3757
|
+
1 === e2.length && (Sr(e2[0], no, 7)?.o()?.g() ?? /* @__PURE__ */ new Map()).forEach((e3, r2) => {
|
|
3758
|
+
t2.u[Number(r2)] = _e(sr(e3, 1)) ?? "";
|
|
3759
|
+
});
|
|
3760
|
+
}
|
|
3761
|
+
function Nc(t2) {
|
|
3762
|
+
t2.categoryMask = void 0, t2.confidenceMasks = void 0, t2.qualityScores = void 0;
|
|
3763
|
+
}
|
|
3764
|
+
function Mc(t2) {
|
|
3765
|
+
try {
|
|
3766
|
+
let e2 = new Fc(t2.confidenceMasks, t2.categoryMask, t2.qualityScores);
|
|
3767
|
+
if (!t2.l) return e2;
|
|
3768
|
+
t2.l(e2);
|
|
3769
|
+
} finally {
|
|
3770
|
+
nu(t2);
|
|
3771
|
+
}
|
|
3772
|
+
}
|
|
3773
|
+
Fc.prototype.close = Fc.prototype.close;
|
|
3774
|
+
var Oc = class extends nc {
|
|
3775
|
+
constructor(t2, e2) {
|
|
3776
|
+
super(new Ju(t2, e2), "image_in", "norm_rect", false), this.u = [], this.outputCategoryMask = false, this.outputConfidenceMasks = true, this.h = new Na(), this.B = new Ra(), Ir(this.h, 0, 3, this.B), Ir(t2 = this.h, 0, 1, e2 = new zo());
|
|
3777
|
+
}
|
|
3778
|
+
C() {
|
|
3779
|
+
return "ImageSegmenter";
|
|
3780
|
+
}
|
|
3781
|
+
get baseOptions() {
|
|
3782
|
+
return Sr(this.h, zo, 1);
|
|
3783
|
+
}
|
|
3784
|
+
set baseOptions(t2) {
|
|
3785
|
+
Ir(this.h, 0, 1, t2);
|
|
3786
|
+
}
|
|
3787
|
+
v(t2) {
|
|
3788
|
+
return void 0 !== t2.displayNamesLocale ? ar(this.h, 2, ve(t2.displayNamesLocale)) : "displayNamesLocale" in t2 && ar(this.h, 2), "outputCategoryMask" in t2 && (this.outputCategoryMask = t2.outputCategoryMask ?? false), "outputConfidenceMasks" in t2 && (this.outputConfidenceMasks = t2.outputConfidenceMasks ?? true), super.j(t2);
|
|
3789
|
+
}
|
|
3790
|
+
L() {
|
|
3791
|
+
Cc(this);
|
|
3792
|
+
}
|
|
3793
|
+
segment(t2, e2, r2) {
|
|
3794
|
+
var n2 = "function" != typeof e2 ? e2 : {};
|
|
3795
|
+
return this.l = "function" == typeof e2 ? e2 : r2, Nc(this), tc(this, t2, n2), Mc(this);
|
|
3796
|
+
}
|
|
3797
|
+
eb(t2, e2, r2, n2) {
|
|
3798
|
+
var i2 = "function" != typeof r2 ? r2 : {};
|
|
3799
|
+
return this.l = "function" == typeof r2 ? r2 : n2, Nc(this), ec(this, t2, i2, e2), Mc(this);
|
|
3800
|
+
}
|
|
3801
|
+
Ra() {
|
|
3802
|
+
return this.u;
|
|
3803
|
+
}
|
|
3804
|
+
o() {
|
|
3805
|
+
var t2 = new mo();
|
|
3806
|
+
po(t2, "image_in"), po(t2, "norm_rect");
|
|
3807
|
+
var e2 = new no();
|
|
3808
|
+
li(e2, Ma, this.h);
|
|
3809
|
+
var r2 = new ho();
|
|
3810
|
+
Hr(r2, 2, "mediapipe.tasks.vision.image_segmenter.ImageSegmenterGraph"), oo(r2, "IMAGE:image_in"), oo(r2, "NORM_RECT:norm_rect"), r2.v(e2), fo(t2, r2), eu(this, t2), this.outputConfidenceMasks && (go(t2, "confidence_masks"), ao(r2, "CONFIDENCE_MASKS:confidence_masks"), ru(this, "confidence_masks"), this.g.ha("confidence_masks", (t3, e3) => {
|
|
3811
|
+
this.confidenceMasks = t3.map((t4) => rc(this, t4, true, !this.l)), tu(this, e3);
|
|
3812
|
+
}), this.g.attachEmptyPacketListener("confidence_masks", (t3) => {
|
|
3813
|
+
this.confidenceMasks = [], tu(this, t3);
|
|
3814
|
+
})), this.outputCategoryMask && (go(t2, "category_mask"), ao(r2, "CATEGORY_MASK:category_mask"), ru(this, "category_mask"), this.g.ga("category_mask", (t3, e3) => {
|
|
3815
|
+
this.categoryMask = rc(this, t3, false, !this.l), tu(this, e3);
|
|
3816
|
+
}), this.g.attachEmptyPacketListener("category_mask", (t3) => {
|
|
3817
|
+
this.categoryMask = void 0, tu(this, t3);
|
|
3818
|
+
})), go(t2, "quality_scores"), ao(r2, "QUALITY_SCORES:quality_scores"), this.g.attachFloatVectorListener("quality_scores", (t3, e3) => {
|
|
3819
|
+
this.qualityScores = t3, tu(this, e3);
|
|
3820
|
+
}), this.g.attachEmptyPacketListener("quality_scores", (t3) => {
|
|
3821
|
+
this.categoryMask = void 0, tu(this, t3);
|
|
3822
|
+
}), t2 = t2.g(), this.setGraph(new Uint8Array(t2), true);
|
|
3823
|
+
}
|
|
3824
|
+
};
|
|
3825
|
+
Oc.prototype.getLabels = Oc.prototype.Ra, Oc.prototype.segmentForVideo = Oc.prototype.eb, Oc.prototype.segment = Oc.prototype.segment, Oc.prototype.setOptions = Oc.prototype.v, Oc.createFromModelPath = function(t2, e2) {
|
|
3826
|
+
return Zu(Oc, t2, { baseOptions: { modelAssetPath: e2 } });
|
|
3827
|
+
}, Oc.createFromModelBuffer = function(t2, e2) {
|
|
3828
|
+
return Zu(Oc, t2, { baseOptions: { modelAssetBuffer: e2 } });
|
|
3829
|
+
}, Oc.createFromOptions = function(t2, e2) {
|
|
3830
|
+
return Zu(Oc, t2, e2);
|
|
3831
|
+
};
|
|
3832
|
+
var Dc = { 0: 0, 1: 1, 2: 2, 3: 3 };
|
|
3833
|
+
function Pc() {
|
|
3834
|
+
return Ph() ? void 0 : document.createElement("canvas");
|
|
3835
|
+
}
|
|
3836
|
+
var $c = class extends iu {
|
|
3837
|
+
constructor(t2, e2) {
|
|
3838
|
+
super(new Yh(t2, e2)), this.u = new pu(), this.delegate = "CPU", this.h = 0, this.baseOptions = new zo(), this.B = this.l = 0;
|
|
3839
|
+
}
|
|
3840
|
+
C() {
|
|
3841
|
+
return "InteractiveSegmenter";
|
|
3842
|
+
}
|
|
3843
|
+
get i() {
|
|
3844
|
+
return this.g.i;
|
|
3845
|
+
}
|
|
3846
|
+
v(t2) {
|
|
3847
|
+
return this.delegate = t2.baseOptions?.delegate ?? "CPU", super.j(t2);
|
|
3848
|
+
}
|
|
3849
|
+
fb(t2) {
|
|
3850
|
+
if (0 === this.h) throw Error("Segmenter is not initialized.");
|
|
3851
|
+
var e2;
|
|
3852
|
+
if (0 !== this.l && (this.i._free(this.l), this.l = 0), !(e2 = "undefined" != typeof ImageData && t2 instanceof ImageData)) if ("object" != typeof t2 || null === t2) e2 = false;
|
|
3853
|
+
else {
|
|
3854
|
+
e2 = t2.data;
|
|
3855
|
+
var r2 = t2.width, n2 = t2.height;
|
|
3856
|
+
e2 = Number.isInteger(r2) && r2 > 0 && Number.isInteger(n2) && n2 > 0 && (e2 instanceof Uint8ClampedArray || e2 instanceof Uint8Array);
|
|
3857
|
+
}
|
|
3858
|
+
if (e2) e2 = t2.width, r2 = t2.height, t2 = t2.data;
|
|
3859
|
+
else {
|
|
3860
|
+
if ([e2, r2] = Uh(t2), "undefined" != typeof OffscreenCanvas) n2 = new OffscreenCanvas(e2, r2);
|
|
3861
|
+
else {
|
|
3862
|
+
if ("undefined" == typeof document) throw Error("Canvas is not supported in this environment.");
|
|
3863
|
+
n2 = document.createElement("canvas");
|
|
3864
|
+
}
|
|
3865
|
+
if (n2.width = e2, n2.height = r2, !(n2 = n2.getContext("2d"))) throw Error("Canvas 2D context is not supported in this environment.");
|
|
3866
|
+
n2.drawImage(t2, 0, 0), t2 = n2.getImageData(0, 0, e2, r2).data;
|
|
3867
|
+
}
|
|
3868
|
+
if (!t2) throw Error("Unsupported image source or failed to extract image pixels.");
|
|
3869
|
+
n2 = function({ Wa: t3, width: e3, height: r3 }) {
|
|
3870
|
+
if (e3 <= 0 || r3 <= 0) throw Error(`Invalid image dimensions: ${e3}x${r3}. Dimensions must be positive.`);
|
|
3871
|
+
if (t3 % (e3 * r3) !== 0) throw Error(`Invalid image dimensions or pixel data length. Pixel data length ${t3} is not a multiple of the number of pixels (${e3 * r3}).`);
|
|
3872
|
+
if (4 !== (t3 /= e3 * r3) && 3 !== t3 && 1 !== t3) throw Error(`Invalid image dimensions or pixel data length. Calculated channels: ${t3}. Expected 1, 3, or 4.`);
|
|
3873
|
+
return t3;
|
|
3874
|
+
}({ Wa: t2.length, width: e2, height: r2 });
|
|
3875
|
+
var i2 = this.i._malloc(t2.length);
|
|
3876
|
+
if (this.i.HEAPU8.set(t2, i2), this.l = i2, !this.i._interactive_segmenter_set_image(this.h, i2, e2, r2, n2)) throw Error("Failed to set image on native engine.");
|
|
3877
|
+
}
|
|
3878
|
+
segment(t2) {
|
|
3879
|
+
if (0 === this.h) throw Error("Segmenter is not initialized.");
|
|
3880
|
+
var e2 = function(t3) {
|
|
3881
|
+
t3 = t3.map(({ isCompleted: t4, brushMode: e4, point: r3 }) => {
|
|
3882
|
+
e4 = Dc[e4] ?? 0, r3 = r3.map(({ x: t5, y: e5 }) => {
|
|
3883
|
+
var r4 = new Oa();
|
|
3884
|
+
return Vr(r4, 1, t5), Vr(r4, 2, e5), r4;
|
|
3885
|
+
});
|
|
3886
|
+
var n3 = new Da();
|
|
3887
|
+
return $r(n3, t4), _r(n3, 1, ee(e4), 0), Cr(n3, 2, r3), n3;
|
|
3888
|
+
});
|
|
3889
|
+
var e3 = new Pa();
|
|
3890
|
+
return Cr(e3, 1, t3), $a(e3);
|
|
3891
|
+
}(t2);
|
|
3892
|
+
t2 = this.i._malloc(e2.length), this.i.HEAPU8.set(e2, t2);
|
|
3893
|
+
var r2 = this.i._malloc(12), n2 = r2 + 4, i2 = r2 + 8, s2 = 0, o2 = this.B++;
|
|
3894
|
+
try {
|
|
3895
|
+
if (this.m) if ("GPU" === this.delegate) {
|
|
3896
|
+
var a2 = this.m;
|
|
3897
|
+
++a2.g.T, a2.h.set(o2, performance.now());
|
|
3898
|
+
} else {
|
|
3899
|
+
var h2 = this.m;
|
|
3900
|
+
++h2.g.P, h2.h.set(o2, performance.now());
|
|
3901
|
+
}
|
|
3902
|
+
if (0 === (s2 = this.i._interactive_segmenter_segment(this.h, t2, e2.length, r2, n2, i2))) throw Error("Segmentation failed.");
|
|
3903
|
+
this.m?.za(o2);
|
|
3904
|
+
let c2 = this.i.HEAPU32[r2 / 4], l2 = this.i.HEAPU32[n2 / 4], d2 = new Float32Array(this.i.HEAPU8.buffer, s2, this.i.HEAPU32[i2 / 4] / 4);
|
|
3905
|
+
var u2 = new Float32Array(d2);
|
|
3906
|
+
if (a2 = c2 * l2, (u2 instanceof Uint8Array || u2 instanceof Float32Array) && u2.length !== a2) throw Error("Unsupported channel count: " + u2.length / a2);
|
|
3907
|
+
return new Su([u2], true, false, this.g.i.canvas ?? void 0, this.u, c2, l2);
|
|
3908
|
+
} finally {
|
|
3909
|
+
0 !== t2 && this.i._free(t2), 0 !== r2 && this.i._free(r2), 0 !== s2 && this.i._free(s2);
|
|
3910
|
+
}
|
|
3911
|
+
}
|
|
3912
|
+
o() {
|
|
3913
|
+
0 !== this.h && (this.m?.xa(), this.i._interactive_segmenter_close(this.h), this.h = 0), 0 !== this.l && (this.i._free(this.l), this.l = 0);
|
|
3914
|
+
var t2 = new Ko();
|
|
3915
|
+
if ("GPU" === this.delegate) {
|
|
3916
|
+
var e2 = new Ys();
|
|
3917
|
+
Fr(t2, 2, Xo, e2);
|
|
3918
|
+
} else Ur(e2 = new eo(), 1, 4), Fr(t2, 1, Xo, e2);
|
|
3919
|
+
if (Ir(this.baseOptions, 0, 3, t2), t2 = Jo(this.baseOptions), e2 = this.i._malloc(t2.length), this.i.HEAPU8.set(t2, e2), this.h = this.i._interactive_segmenter_create(e2, t2.length), this.i._free(e2), 0 === this.h) throw Error("Failed to create native InteractiveSegmenter engine.");
|
|
3920
|
+
this.m?.ya();
|
|
3921
|
+
}
|
|
3922
|
+
close() {
|
|
3923
|
+
0 !== this.h && (this.i._interactive_segmenter_close(this.h), this.h = 0), 0 !== this.l && (this.i._free(this.l), this.l = 0), this.u.close(), super.close();
|
|
3924
|
+
}
|
|
3925
|
+
};
|
|
3926
|
+
$c.prototype.close = $c.prototype.close, $c.prototype.segment = $c.prototype.segment, $c.prototype.setImage = $c.prototype.fb, $c.prototype.setOptions = $c.prototype.v, $c.createFromModelPath = function(t2, e2) {
|
|
3927
|
+
return Jh($c, Pc(), t2, { baseOptions: { modelAssetPath: e2 } });
|
|
3928
|
+
}, $c.createFromModelBuffer = function(t2, e2) {
|
|
3929
|
+
return Jh($c, Pc(), t2, { baseOptions: { modelAssetBuffer: e2 } });
|
|
3930
|
+
}, $c.createFromOptions = function(t2, e2) {
|
|
3931
|
+
var r2 = e2.canvas ?? Pc();
|
|
3932
|
+
return Jh($c, r2, t2, e2);
|
|
3933
|
+
};
|
|
3934
|
+
var Uc = class {
|
|
3935
|
+
constructor(t2, e2, r2) {
|
|
3936
|
+
this.confidenceMasks = t2, this.categoryMask = e2, this.qualityScores = r2;
|
|
3937
|
+
}
|
|
3938
|
+
close() {
|
|
3939
|
+
this.confidenceMasks?.forEach((t2) => {
|
|
3940
|
+
t2.close();
|
|
3941
|
+
}), this.categoryMask?.close();
|
|
3942
|
+
}
|
|
3943
|
+
};
|
|
3944
|
+
Uc.prototype.close = Uc.prototype.close;
|
|
3945
|
+
var Bc = class extends nc {
|
|
3946
|
+
constructor(t2, e2) {
|
|
3947
|
+
super(new Ju(t2, e2), "image_in", "norm_rect_in", false), this.outputCategoryMask = false, this.outputConfidenceMasks = true, this.h = new Na(), this.u = new Ra(), Ir(this.h, 0, 3, this.u), Ir(t2 = this.h, 0, 1, e2 = new zo());
|
|
3948
|
+
}
|
|
3949
|
+
C() {
|
|
3950
|
+
return "InteractiveSegmenterLegacy";
|
|
3951
|
+
}
|
|
3952
|
+
get baseOptions() {
|
|
3953
|
+
return Sr(this.h, zo, 1);
|
|
3954
|
+
}
|
|
3955
|
+
set baseOptions(t2) {
|
|
3956
|
+
Ir(this.h, 0, 1, t2);
|
|
3957
|
+
}
|
|
3958
|
+
v(t2) {
|
|
3959
|
+
return "outputCategoryMask" in t2 && (this.outputCategoryMask = t2.outputCategoryMask ?? false), "outputConfidenceMasks" in t2 && (this.outputConfidenceMasks = t2.outputConfidenceMasks ?? true), super.j(t2);
|
|
3960
|
+
}
|
|
3961
|
+
segment(t2, e2, r2, n2) {
|
|
3962
|
+
var i2 = "function" != typeof r2 ? r2 : {};
|
|
3963
|
+
if (this.l = "function" == typeof r2 ? r2 : n2, this.qualityScores = this.categoryMask = this.confidenceMasks = void 0, r2 = this.I + 1, n2 = new ja(), e2.keypoint && e2.scribble) throw Error("Cannot provide both keypoint and scribble.");
|
|
3964
|
+
if (e2.keypoint) {
|
|
3965
|
+
var s2 = new Ua();
|
|
3966
|
+
$r(s2, true), Vr(s2, 1, e2.keypoint.x), Vr(s2, 2, e2.keypoint.y), Fr(n2, 1, Va, s2);
|
|
3967
|
+
} else {
|
|
3968
|
+
if (!e2.scribble) throw Error("Must provide either a keypoint or a scribble.");
|
|
3969
|
+
{
|
|
3970
|
+
let t3 = new Ga();
|
|
3971
|
+
for (s2 of e2.scribble) $r(e2 = new Ua(), true), Vr(e2, 1, s2.x), Vr(e2, 2, s2.y), Mr(t3, 1, Ua, e2);
|
|
3972
|
+
Fr(n2, 2, Va, t3);
|
|
3973
|
+
}
|
|
3974
|
+
}
|
|
3975
|
+
this.g.addProtoToStream(n2.g(), "mediapipe.tasks.vision.interactive_segmenter_legacy.proto.RegionOfInterest", "roi_in", r2), tc(this, t2, i2);
|
|
3976
|
+
t: {
|
|
3977
|
+
try {
|
|
3978
|
+
let t3 = new Uc(this.confidenceMasks, this.categoryMask, this.qualityScores);
|
|
3979
|
+
if (!this.l) {
|
|
3980
|
+
var o2 = t3;
|
|
3981
|
+
break t;
|
|
3982
|
+
}
|
|
3983
|
+
this.l(t3);
|
|
3984
|
+
} finally {
|
|
3985
|
+
nu(this);
|
|
3986
|
+
}
|
|
3987
|
+
o2 = void 0;
|
|
3988
|
+
}
|
|
3989
|
+
return o2;
|
|
3990
|
+
}
|
|
3991
|
+
o() {
|
|
3992
|
+
var t2 = new mo();
|
|
3993
|
+
po(t2, "image_in"), po(t2, "roi_in"), po(t2, "norm_rect_in");
|
|
3994
|
+
var e2 = new no();
|
|
3995
|
+
li(e2, Ma, this.h);
|
|
3996
|
+
var r2 = new ho();
|
|
3997
|
+
Hr(r2, 2, "mediapipe.tasks.vision.interactive_segmenter_legacy.InteractiveSegmenterGraphV2"), oo(r2, "IMAGE:image_in"), oo(r2, "ROI:roi_in"), oo(r2, "NORM_RECT:norm_rect_in"), r2.v(e2), fo(t2, r2), eu(this, t2), this.outputConfidenceMasks && (go(t2, "confidence_masks"), ao(r2, "CONFIDENCE_MASKS:confidence_masks"), ru(this, "confidence_masks"), this.g.ha("confidence_masks", (t3, e3) => {
|
|
3998
|
+
this.confidenceMasks = t3.map((t4) => rc(this, t4, true, !this.l)), tu(this, e3);
|
|
3999
|
+
}), this.g.attachEmptyPacketListener("confidence_masks", (t3) => {
|
|
4000
|
+
this.confidenceMasks = [], tu(this, t3);
|
|
4001
|
+
})), this.outputCategoryMask && (go(t2, "category_mask"), ao(r2, "CATEGORY_MASK:category_mask"), ru(this, "category_mask"), this.g.ga("category_mask", (t3, e3) => {
|
|
4002
|
+
this.categoryMask = rc(this, t3, false, !this.l), tu(this, e3);
|
|
4003
|
+
}), this.g.attachEmptyPacketListener("category_mask", (t3) => {
|
|
4004
|
+
this.categoryMask = void 0, tu(this, t3);
|
|
4005
|
+
})), go(t2, "quality_scores"), ao(r2, "QUALITY_SCORES:quality_scores"), this.g.attachFloatVectorListener("quality_scores", (t3, e3) => {
|
|
4006
|
+
this.qualityScores = t3, tu(this, e3);
|
|
4007
|
+
}), this.g.attachEmptyPacketListener("quality_scores", (t3) => {
|
|
4008
|
+
this.categoryMask = void 0, tu(this, t3);
|
|
4009
|
+
}), t2 = t2.g(), this.setGraph(new Uint8Array(t2), true);
|
|
4010
|
+
}
|
|
4011
|
+
};
|
|
4012
|
+
Bc.prototype.segment = Bc.prototype.segment, Bc.prototype.setOptions = Bc.prototype.v, Bc.createFromModelPath = function(t2, e2) {
|
|
4013
|
+
return Zu(Bc, t2, { baseOptions: { modelAssetPath: e2 } });
|
|
4014
|
+
}, Bc.createFromModelBuffer = function(t2, e2) {
|
|
4015
|
+
return Zu(Bc, t2, { baseOptions: { modelAssetBuffer: e2 } });
|
|
4016
|
+
}, Bc.createFromOptions = function(t2, e2) {
|
|
4017
|
+
return Zu(Bc, t2, e2);
|
|
4018
|
+
};
|
|
4019
|
+
var Gc = class extends nc {
|
|
4020
|
+
constructor(t2, e2) {
|
|
4021
|
+
super(new Ju(t2, e2), "input_frame_gpu", "norm_rect", false), this.l = { detections: [] }, Ir(t2 = this.h = new Ha(), 0, 1, e2 = new zo());
|
|
4022
|
+
}
|
|
4023
|
+
C() {
|
|
4024
|
+
return "ObjectDetector";
|
|
4025
|
+
}
|
|
4026
|
+
get baseOptions() {
|
|
4027
|
+
return Sr(this.h, zo, 1);
|
|
4028
|
+
}
|
|
4029
|
+
set baseOptions(t2) {
|
|
4030
|
+
Ir(this.h, 0, 1, t2);
|
|
4031
|
+
}
|
|
4032
|
+
v(t2) {
|
|
4033
|
+
return void 0 !== t2.displayNamesLocale ? ar(this.h, 2, ve(t2.displayNamesLocale)) : "displayNamesLocale" in t2 && ar(this.h, 2), void 0 !== t2.maxResults ? Ur(this.h, 3, t2.maxResults) : "maxResults" in t2 && ar(this.h, 3), void 0 !== t2.scoreThreshold ? jr(this.h, 4, t2.scoreThreshold) : "scoreThreshold" in t2 && ar(this.h, 4), void 0 !== t2.categoryAllowlist ? Kr(this.h, 5, t2.categoryAllowlist) : "categoryAllowlist" in t2 && ar(this.h, 5), void 0 !== t2.categoryDenylist ? Kr(this.h, 6, t2.categoryDenylist) : "categoryDenylist" in t2 && ar(this.h, 6), this.j(t2);
|
|
4034
|
+
}
|
|
4035
|
+
G(t2, e2) {
|
|
4036
|
+
return this.l = { detections: [] }, tc(this, t2, e2), this.l;
|
|
4037
|
+
}
|
|
4038
|
+
H(t2, e2, r2) {
|
|
4039
|
+
return this.l = { detections: [] }, ec(this, t2, r2, e2), this.l;
|
|
4040
|
+
}
|
|
4041
|
+
o() {
|
|
4042
|
+
var t2 = new mo();
|
|
4043
|
+
po(t2, "input_frame_gpu"), po(t2, "norm_rect"), go(t2, "detections");
|
|
4044
|
+
var e2 = new no();
|
|
4045
|
+
li(e2, Ka, this.h);
|
|
4046
|
+
var r2 = new ho();
|
|
4047
|
+
Hr(r2, 2, "mediapipe.tasks.vision.ObjectDetectorGraph"), oo(r2, "IMAGE:input_frame_gpu"), oo(r2, "NORM_RECT:norm_rect"), ao(r2, "DETECTIONS:detections"), r2.v(e2), fo(t2, r2), this.g.attachProtoVectorListener("detections", (t3, e3) => {
|
|
4048
|
+
for (let e4 of t3) t3 = So(e4), this.l.detections.push(Za(t3));
|
|
4049
|
+
tu(this, e3);
|
|
4050
|
+
}), this.g.attachEmptyPacketListener("detections", (t3) => {
|
|
4051
|
+
tu(this, t3);
|
|
4052
|
+
}), t2 = t2.g(), this.setGraph(new Uint8Array(t2), true);
|
|
4053
|
+
}
|
|
4054
|
+
};
|
|
4055
|
+
Gc.prototype.detectForVideo = Gc.prototype.H, Gc.prototype.detect = Gc.prototype.G, Gc.prototype.setOptions = Gc.prototype.v, Gc.createFromModelPath = async function(t2, e2) {
|
|
4056
|
+
return Zu(Gc, t2, { baseOptions: { modelAssetPath: e2 } });
|
|
4057
|
+
}, Gc.createFromModelBuffer = function(t2, e2) {
|
|
4058
|
+
return Zu(Gc, t2, { baseOptions: { modelAssetBuffer: e2 } });
|
|
4059
|
+
}, Gc.createFromOptions = function(t2, e2) {
|
|
4060
|
+
return Zu(Gc, t2, e2);
|
|
4061
|
+
};
|
|
4062
|
+
var jc = class {
|
|
4063
|
+
constructor(t2, e2, r2) {
|
|
4064
|
+
this.landmarks = t2, this.worldLandmarks = e2, this.segmentationMasks = r2;
|
|
4065
|
+
}
|
|
4066
|
+
close() {
|
|
4067
|
+
this.segmentationMasks?.forEach((t2) => {
|
|
4068
|
+
t2.close();
|
|
4069
|
+
});
|
|
4070
|
+
}
|
|
4071
|
+
};
|
|
4072
|
+
function Vc(t2) {
|
|
4073
|
+
t2.landmarks = [], t2.worldLandmarks = [], t2.segmentationMasks = void 0;
|
|
4074
|
+
}
|
|
4075
|
+
function Hc(t2) {
|
|
4076
|
+
try {
|
|
4077
|
+
let e2 = new jc(t2.landmarks, t2.worldLandmarks, t2.segmentationMasks);
|
|
4078
|
+
if (!t2.u) return e2;
|
|
4079
|
+
t2.u(e2);
|
|
4080
|
+
} finally {
|
|
4081
|
+
nu(t2);
|
|
4082
|
+
}
|
|
4083
|
+
}
|
|
4084
|
+
jc.prototype.close = jc.prototype.close;
|
|
4085
|
+
var Kc = class extends nc {
|
|
4086
|
+
constructor(t2, e2) {
|
|
4087
|
+
super(new Ju(t2, e2), "image_in", "norm_rect", false), this.landmarks = [], this.worldLandmarks = [], this.outputSegmentationMasks = false, Ir(t2 = this.h = new Xa(), 0, 1, e2 = new zo()), this.B = new Aa(), Ir(this.h, 0, 3, this.B), this.l = new Ea(), Ir(this.h, 0, 2, this.l), Ur(this.l, 4, 1), jr(this.l, 2, 0.5), jr(this.B, 2, 0.5), jr(this.h, 4, 0.5);
|
|
4088
|
+
}
|
|
4089
|
+
C() {
|
|
4090
|
+
return "PoseLandmarker";
|
|
4091
|
+
}
|
|
4092
|
+
get baseOptions() {
|
|
4093
|
+
return Sr(this.h, zo, 1);
|
|
4094
|
+
}
|
|
4095
|
+
set baseOptions(t2) {
|
|
4096
|
+
Ir(this.h, 0, 1, t2);
|
|
4097
|
+
}
|
|
4098
|
+
v(t2) {
|
|
4099
|
+
return "numPoses" in t2 && Ur(this.l, 4, t2.numPoses ?? 1), "minPoseDetectionConfidence" in t2 && jr(this.l, 2, t2.minPoseDetectionConfidence ?? 0.5), "minTrackingConfidence" in t2 && jr(this.h, 4, t2.minTrackingConfidence ?? 0.5), "minPosePresenceConfidence" in t2 && jr(this.B, 2, t2.minPosePresenceConfidence ?? 0.5), "outputSegmentationMasks" in t2 && (this.outputSegmentationMasks = t2.outputSegmentationMasks ?? false), this.j(t2);
|
|
4100
|
+
}
|
|
4101
|
+
G(t2, e2, r2) {
|
|
4102
|
+
var n2 = "function" != typeof e2 ? e2 : {};
|
|
4103
|
+
return this.u = "function" == typeof e2 ? e2 : r2, Vc(this), tc(this, t2, n2), Hc(this);
|
|
4104
|
+
}
|
|
4105
|
+
H(t2, e2, r2, n2) {
|
|
4106
|
+
var i2 = "function" != typeof r2 ? r2 : {};
|
|
4107
|
+
return this.u = "function" == typeof r2 ? r2 : n2, Vc(this), ec(this, t2, i2, e2), Hc(this);
|
|
4108
|
+
}
|
|
4109
|
+
o() {
|
|
4110
|
+
var t2 = new mo();
|
|
4111
|
+
po(t2, "image_in"), po(t2, "norm_rect"), go(t2, "normalized_landmarks"), go(t2, "world_landmarks"), go(t2, "segmentation_masks");
|
|
4112
|
+
var e2 = new no();
|
|
4113
|
+
li(e2, Wa, this.h);
|
|
4114
|
+
var r2 = new ho();
|
|
4115
|
+
Hr(r2, 2, "mediapipe.tasks.vision.pose_landmarker.PoseLandmarkerGraph"), oo(r2, "IMAGE:image_in"), oo(r2, "NORM_RECT:norm_rect"), ao(r2, "NORM_LANDMARKS:normalized_landmarks"), ao(r2, "WORLD_LANDMARKS:world_landmarks"), r2.v(e2), fo(t2, r2), eu(this, t2), this.g.attachProtoVectorListener("normalized_landmarks", (t3, e3) => {
|
|
4116
|
+
this.landmarks = [];
|
|
4117
|
+
for (let e4 of t3) t3 = Io(e4), this.landmarks.push(Qa(t3));
|
|
4118
|
+
tu(this, e3);
|
|
4119
|
+
}), this.g.attachEmptyPacketListener("normalized_landmarks", (t3) => {
|
|
4120
|
+
this.landmarks = [], tu(this, t3);
|
|
4121
|
+
}), this.g.attachProtoVectorListener("world_landmarks", (t3, e3) => {
|
|
4122
|
+
this.worldLandmarks = [];
|
|
4123
|
+
for (let e4 of t3) t3 = xo(e4), this.worldLandmarks.push(th(t3));
|
|
4124
|
+
tu(this, e3);
|
|
4125
|
+
}), this.g.attachEmptyPacketListener("world_landmarks", (t3) => {
|
|
4126
|
+
this.worldLandmarks = [], tu(this, t3);
|
|
4127
|
+
}), this.outputSegmentationMasks && (ao(r2, "SEGMENTATION_MASK:segmentation_masks"), ru(this, "segmentation_masks"), this.g.ha("segmentation_masks", (t3, e3) => {
|
|
4128
|
+
this.segmentationMasks = t3.map((t4) => rc(this, t4, true, !this.u)), tu(this, e3);
|
|
4129
|
+
}), this.g.attachEmptyPacketListener("segmentation_masks", (t3) => {
|
|
4130
|
+
this.segmentationMasks = [], tu(this, t3);
|
|
4131
|
+
})), t2 = t2.g(), this.setGraph(new Uint8Array(t2), true);
|
|
4132
|
+
}
|
|
4133
|
+
};
|
|
4134
|
+
Kc.prototype.detectForVideo = Kc.prototype.H, Kc.prototype.detect = Kc.prototype.G, Kc.prototype.setOptions = Kc.prototype.v, Kc.createFromModelPath = function(t2, e2) {
|
|
4135
|
+
return Zu(Kc, t2, { baseOptions: { modelAssetPath: e2 } });
|
|
4136
|
+
}, Kc.createFromModelBuffer = function(t2, e2) {
|
|
4137
|
+
return Zu(Kc, t2, { baseOptions: { modelAssetBuffer: e2 } });
|
|
4138
|
+
}, Kc.createFromOptions = function(t2, e2) {
|
|
4139
|
+
return Zu(Kc, t2, e2);
|
|
4140
|
+
}, Kc.POSE_CONNECTIONS = Tc, r("module$exports$google3$third_party$mediapipe$tasks$web$vision$pose_landmarker$pose_landmarker.PoseLandmarker.POSE_CONNECTIONS", Kc.POSE_CONNECTIONS);
|
|
4141
|
+
export {
|
|
4142
|
+
ic as FaceDetector,
|
|
4143
|
+
mc as FaceLandmarker,
|
|
4144
|
+
ah as FilesetResolver,
|
|
4145
|
+
Ac as GestureRecognizer,
|
|
4146
|
+
bc as HandLandmarker,
|
|
4147
|
+
xc as HolisticLandmarker,
|
|
4148
|
+
Rc as ImageClassifier,
|
|
4149
|
+
Ic as ImageEmbedder,
|
|
4150
|
+
Oc as ImageSegmenter,
|
|
4151
|
+
Fc as ImageSegmenterResult,
|
|
4152
|
+
$c as InteractiveSegmenter,
|
|
4153
|
+
Bc as InteractiveSegmenterLegacy,
|
|
4154
|
+
Uc as InteractiveSegmenterLegacyResult,
|
|
4155
|
+
Su as MPMask,
|
|
4156
|
+
Gc as ObjectDetector,
|
|
4157
|
+
Kc as PoseLandmarker,
|
|
4158
|
+
iu as TaskRunner,
|
|
4159
|
+
nc as VisionTaskRunner
|
|
4160
|
+
};
|