@viji-dev/core 0.11.5 → 0.11.7

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.
@@ -2877,30 +2877,30 @@ ${c}`);
2877
2877
  this.setUniform("u_face0Neutral", "float", _.neutral || 0), this.setUniform("u_face0Happy", "float", _.happy || 0), this.setUniform("u_face0Sad", "float", _.sad || 0), this.setUniform("u_face0Angry", "float", _.angry || 0), this.setUniform("u_face0Surprised", "float", _.surprised || 0), this.setUniform("u_face0Disgusted", "float", _.disgusted || 0), this.setUniform("u_face0Fearful", "float", _.fearful || 0), this.setUniform("u_face0BrowDownLeft", "float", b.browDownLeft || 0), this.setUniform("u_face0BrowDownRight", "float", b.browDownRight || 0), this.setUniform("u_face0BrowInnerUp", "float", b.browInnerUp || 0), this.setUniform("u_face0BrowOuterUpLeft", "float", b.browOuterUpLeft || 0), this.setUniform("u_face0BrowOuterUpRight", "float", b.browOuterUpRight || 0), this.setUniform("u_face0CheekPuff", "float", b.cheekPuff || 0), this.setUniform("u_face0CheekSquintLeft", "float", b.cheekSquintLeft || 0), this.setUniform("u_face0CheekSquintRight", "float", b.cheekSquintRight || 0), this.setUniform("u_face0EyeBlinkLeft", "float", b.eyeBlinkLeft || 0), this.setUniform("u_face0EyeBlinkRight", "float", b.eyeBlinkRight || 0), this.setUniform("u_face0EyeLookDownLeft", "float", b.eyeLookDownLeft || 0), this.setUniform("u_face0EyeLookDownRight", "float", b.eyeLookDownRight || 0), this.setUniform("u_face0EyeLookInLeft", "float", b.eyeLookInLeft || 0), this.setUniform("u_face0EyeLookInRight", "float", b.eyeLookInRight || 0), this.setUniform("u_face0EyeLookOutLeft", "float", b.eyeLookOutLeft || 0), this.setUniform("u_face0EyeLookOutRight", "float", b.eyeLookOutRight || 0), this.setUniform("u_face0EyeLookUpLeft", "float", b.eyeLookUpLeft || 0), this.setUniform("u_face0EyeLookUpRight", "float", b.eyeLookUpRight || 0), this.setUniform("u_face0EyeSquintLeft", "float", b.eyeSquintLeft || 0), this.setUniform("u_face0EyeSquintRight", "float", b.eyeSquintRight || 0), this.setUniform("u_face0EyeWideLeft", "float", b.eyeWideLeft || 0), this.setUniform("u_face0EyeWideRight", "float", b.eyeWideRight || 0), this.setUniform("u_face0JawForward", "float", b.jawForward || 0), this.setUniform("u_face0JawLeft", "float", b.jawLeft || 0), this.setUniform("u_face0JawOpen", "float", b.jawOpen || 0), this.setUniform("u_face0JawRight", "float", b.jawRight || 0), this.setUniform("u_face0MouthClose", "float", b.mouthClose || 0), this.setUniform("u_face0MouthDimpleLeft", "float", b.mouthDimpleLeft || 0), this.setUniform("u_face0MouthDimpleRight", "float", b.mouthDimpleRight || 0), this.setUniform("u_face0MouthFrownLeft", "float", b.mouthFrownLeft || 0), this.setUniform("u_face0MouthFrownRight", "float", b.mouthFrownRight || 0), this.setUniform("u_face0MouthFunnel", "float", b.mouthFunnel || 0), this.setUniform("u_face0MouthLeft", "float", b.mouthLeft || 0), this.setUniform("u_face0MouthLowerDownLeft", "float", b.mouthLowerDownLeft || 0), this.setUniform("u_face0MouthLowerDownRight", "float", b.mouthLowerDownRight || 0), this.setUniform("u_face0MouthPressLeft", "float", b.mouthPressLeft || 0), this.setUniform("u_face0MouthPressRight", "float", b.mouthPressRight || 0), this.setUniform("u_face0MouthPucker", "float", b.mouthPucker || 0), this.setUniform("u_face0MouthRight", "float", b.mouthRight || 0), this.setUniform("u_face0MouthRollLower", "float", b.mouthRollLower || 0), this.setUniform("u_face0MouthRollUpper", "float", b.mouthRollUpper || 0), this.setUniform("u_face0MouthShrugLower", "float", b.mouthShrugLower || 0), this.setUniform("u_face0MouthShrugUpper", "float", b.mouthShrugUpper || 0), this.setUniform("u_face0MouthSmileLeft", "float", b.mouthSmileLeft || 0), this.setUniform("u_face0MouthSmileRight", "float", b.mouthSmileRight || 0), this.setUniform("u_face0MouthStretchLeft", "float", b.mouthStretchLeft || 0), this.setUniform("u_face0MouthStretchRight", "float", b.mouthStretchRight || 0), this.setUniform("u_face0MouthUpperUpLeft", "float", b.mouthUpperUpLeft || 0), this.setUniform("u_face0MouthUpperUpRight", "float", b.mouthUpperUpRight || 0), this.setUniform("u_face0NoseSneerLeft", "float", b.noseSneerLeft || 0), this.setUniform("u_face0NoseSneerRight", "float", b.noseSneerRight || 0), this.setUniform("u_face0TongueOut", "float", b.tongueOut || 0);
2878
2878
  } else
2879
2879
  this.setUniform("u_face0Neutral", "float", 0), this.setUniform("u_face0Happy", "float", 0), this.setUniform("u_face0Sad", "float", 0), this.setUniform("u_face0Angry", "float", 0), this.setUniform("u_face0Surprised", "float", 0), this.setUniform("u_face0Disgusted", "float", 0), this.setUniform("u_face0Fearful", "float", 0), this.setUniform("u_face0BrowDownLeft", "float", 0), this.setUniform("u_face0BrowDownRight", "float", 0), this.setUniform("u_face0BrowInnerUp", "float", 0), this.setUniform("u_face0BrowOuterUpLeft", "float", 0), this.setUniform("u_face0BrowOuterUpRight", "float", 0), this.setUniform("u_face0CheekPuff", "float", 0), this.setUniform("u_face0CheekSquintLeft", "float", 0), this.setUniform("u_face0CheekSquintRight", "float", 0), this.setUniform("u_face0EyeBlinkLeft", "float", 0), this.setUniform("u_face0EyeBlinkRight", "float", 0), this.setUniform("u_face0EyeLookDownLeft", "float", 0), this.setUniform("u_face0EyeLookDownRight", "float", 0), this.setUniform("u_face0EyeLookInLeft", "float", 0), this.setUniform("u_face0EyeLookInRight", "float", 0), this.setUniform("u_face0EyeLookOutLeft", "float", 0), this.setUniform("u_face0EyeLookOutRight", "float", 0), this.setUniform("u_face0EyeLookUpLeft", "float", 0), this.setUniform("u_face0EyeLookUpRight", "float", 0), this.setUniform("u_face0EyeSquintLeft", "float", 0), this.setUniform("u_face0EyeSquintRight", "float", 0), this.setUniform("u_face0EyeWideLeft", "float", 0), this.setUniform("u_face0EyeWideRight", "float", 0), this.setUniform("u_face0JawForward", "float", 0), this.setUniform("u_face0JawLeft", "float", 0), this.setUniform("u_face0JawOpen", "float", 0), this.setUniform("u_face0JawRight", "float", 0), this.setUniform("u_face0MouthClose", "float", 0), this.setUniform("u_face0MouthDimpleLeft", "float", 0), this.setUniform("u_face0MouthDimpleRight", "float", 0), this.setUniform("u_face0MouthFrownLeft", "float", 0), this.setUniform("u_face0MouthFrownRight", "float", 0), this.setUniform("u_face0MouthFunnel", "float", 0), this.setUniform("u_face0MouthLeft", "float", 0), this.setUniform("u_face0MouthLowerDownLeft", "float", 0), this.setUniform("u_face0MouthLowerDownRight", "float", 0), this.setUniform("u_face0MouthPressLeft", "float", 0), this.setUniform("u_face0MouthPressRight", "float", 0), this.setUniform("u_face0MouthPucker", "float", 0), this.setUniform("u_face0MouthRight", "float", 0), this.setUniform("u_face0MouthRollLower", "float", 0), this.setUniform("u_face0MouthRollUpper", "float", 0), this.setUniform("u_face0MouthShrugLower", "float", 0), this.setUniform("u_face0MouthShrugUpper", "float", 0), this.setUniform("u_face0MouthSmileLeft", "float", 0), this.setUniform("u_face0MouthSmileRight", "float", 0), this.setUniform("u_face0MouthStretchLeft", "float", 0), this.setUniform("u_face0MouthStretchRight", "float", 0), this.setUniform("u_face0MouthUpperUpLeft", "float", 0), this.setUniform("u_face0MouthUpperUpRight", "float", 0), this.setUniform("u_face0NoseSneerLeft", "float", 0), this.setUniform("u_face0NoseSneerRight", "float", 0), this.setUniform("u_face0TongueOut", "float", 0);
2880
- const O = s.cv?.hands || [], H = this.visibleFeatures.has("handTracking");
2881
- this.setUniform("u_handCount", "int", H ? O.length : 0);
2882
- const K = H ? O.find((_) => _.handedness === "left") : void 0, P = H ? O.find((_) => _.handedness === "right") : void 0;
2880
+ const N = s.cv?.hands || [], q = this.visibleFeatures.has("handTracking");
2881
+ this.setUniform("u_handCount", "int", q ? N.length : 0);
2882
+ const K = q ? N.find((_) => _.handedness === "left") : void 0, C = q ? N.find((_) => _.handedness === "right") : void 0;
2883
2883
  if (K) {
2884
2884
  const _ = K.palm || K.landmarks?.[9], b = K.gestures || {}, v = K.bounds;
2885
2885
  this.setUniform("u_leftHandPalm", "vec3", [_?.x || 0, 1 - (_?.y || 0), _?.z || 0]), this.setUniform("u_leftHandConfidence", "float", K.confidence || 0), this.setUniform("u_leftHandBounds", "vec4", [v?.x || 0, 1 - (v?.y || 0) - (v?.height || 0), v?.width || 0, v?.height || 0]), this.setUniform("u_leftHandFist", "float", b.fist || 0), this.setUniform("u_leftHandOpen", "float", b.openPalm || 0), this.setUniform("u_leftHandPeace", "float", b.peace || 0), this.setUniform("u_leftHandThumbsUp", "float", b.thumbsUp || 0), this.setUniform("u_leftHandThumbsDown", "float", b.thumbsDown || 0), this.setUniform("u_leftHandPointing", "float", b.pointing || 0), this.setUniform("u_leftHandILoveYou", "float", b.iLoveYou || 0);
2886
2886
  } else
2887
2887
  this.setUniform("u_leftHandPalm", "vec3", [0, 0, 0]), this.setUniform("u_leftHandConfidence", "float", 0), this.setUniform("u_leftHandBounds", "vec4", [0, 0, 0, 0]), this.setUniform("u_leftHandFist", "float", 0), this.setUniform("u_leftHandOpen", "float", 0), this.setUniform("u_leftHandPeace", "float", 0), this.setUniform("u_leftHandThumbsUp", "float", 0), this.setUniform("u_leftHandThumbsDown", "float", 0), this.setUniform("u_leftHandPointing", "float", 0), this.setUniform("u_leftHandILoveYou", "float", 0);
2888
- if (P) {
2889
- const _ = P.palm || P.landmarks?.[9], b = P.gestures || {}, v = P.bounds;
2890
- this.setUniform("u_rightHandPalm", "vec3", [_?.x || 0, 1 - (_?.y || 0), _?.z || 0]), this.setUniform("u_rightHandConfidence", "float", P.confidence || 0), this.setUniform("u_rightHandBounds", "vec4", [v?.x || 0, 1 - (v?.y || 0) - (v?.height || 0), v?.width || 0, v?.height || 0]), this.setUniform("u_rightHandFist", "float", b.fist || 0), this.setUniform("u_rightHandOpen", "float", b.openPalm || 0), this.setUniform("u_rightHandPeace", "float", b.peace || 0), this.setUniform("u_rightHandThumbsUp", "float", b.thumbsUp || 0), this.setUniform("u_rightHandThumbsDown", "float", b.thumbsDown || 0), this.setUniform("u_rightHandPointing", "float", b.pointing || 0), this.setUniform("u_rightHandILoveYou", "float", b.iLoveYou || 0);
2888
+ if (C) {
2889
+ const _ = C.palm || C.landmarks?.[9], b = C.gestures || {}, v = C.bounds;
2890
+ this.setUniform("u_rightHandPalm", "vec3", [_?.x || 0, 1 - (_?.y || 0), _?.z || 0]), this.setUniform("u_rightHandConfidence", "float", C.confidence || 0), this.setUniform("u_rightHandBounds", "vec4", [v?.x || 0, 1 - (v?.y || 0) - (v?.height || 0), v?.width || 0, v?.height || 0]), this.setUniform("u_rightHandFist", "float", b.fist || 0), this.setUniform("u_rightHandOpen", "float", b.openPalm || 0), this.setUniform("u_rightHandPeace", "float", b.peace || 0), this.setUniform("u_rightHandThumbsUp", "float", b.thumbsUp || 0), this.setUniform("u_rightHandThumbsDown", "float", b.thumbsDown || 0), this.setUniform("u_rightHandPointing", "float", b.pointing || 0), this.setUniform("u_rightHandILoveYou", "float", b.iLoveYou || 0);
2891
2891
  } else
2892
2892
  this.setUniform("u_rightHandPalm", "vec3", [0, 0, 0]), this.setUniform("u_rightHandConfidence", "float", 0), this.setUniform("u_rightHandBounds", "vec4", [0, 0, 0, 0]), this.setUniform("u_rightHandFist", "float", 0), this.setUniform("u_rightHandOpen", "float", 0), this.setUniform("u_rightHandPeace", "float", 0), this.setUniform("u_rightHandThumbsUp", "float", 0), this.setUniform("u_rightHandThumbsDown", "float", 0), this.setUniform("u_rightHandPointing", "float", 0), this.setUniform("u_rightHandILoveYou", "float", 0);
2893
- const M = this.visibleFeatures.has("poseDetection") ? s.cv?.pose ?? null : null;
2894
- if (this.setUniform("u_poseDetected", "bool", M !== null), M && M.landmarks) {
2895
- const _ = M.landmarks, b = (v) => 1 - (_[v]?.y || 0);
2896
- this.setUniform("u_poseConfidence", "float", M.confidence || 0), this.setUniform("u_nosePosition", "vec2", [_[0]?.x || 0, b(0)]), this.setUniform("u_leftShoulderPosition", "vec2", [_[11]?.x || 0, b(11)]), this.setUniform("u_rightShoulderPosition", "vec2", [_[12]?.x || 0, b(12)]), this.setUniform("u_leftElbowPosition", "vec2", [_[13]?.x || 0, b(13)]), this.setUniform("u_rightElbowPosition", "vec2", [_[14]?.x || 0, b(14)]), this.setUniform("u_leftWristPosition", "vec2", [_[15]?.x || 0, b(15)]), this.setUniform("u_rightWristPosition", "vec2", [_[16]?.x || 0, b(16)]), this.setUniform("u_leftHipPosition", "vec2", [_[23]?.x || 0, b(23)]), this.setUniform("u_rightHipPosition", "vec2", [_[24]?.x || 0, b(24)]), this.setUniform("u_leftKneePosition", "vec2", [_[25]?.x || 0, b(25)]), this.setUniform("u_rightKneePosition", "vec2", [_[26]?.x || 0, b(26)]), this.setUniform("u_leftAnklePosition", "vec2", [_[27]?.x || 0, b(27)]), this.setUniform("u_rightAnklePosition", "vec2", [_[28]?.x || 0, b(28)]);
2893
+ const B = this.visibleFeatures.has("poseDetection") ? s.cv?.pose ?? null : null;
2894
+ if (this.setUniform("u_poseDetected", "bool", B !== null), B && B.landmarks) {
2895
+ const _ = B.landmarks, b = (v) => 1 - (_[v]?.y || 0);
2896
+ this.setUniform("u_poseConfidence", "float", B.confidence || 0), this.setUniform("u_nosePosition", "vec2", [_[0]?.x || 0, b(0)]), this.setUniform("u_leftShoulderPosition", "vec2", [_[11]?.x || 0, b(11)]), this.setUniform("u_rightShoulderPosition", "vec2", [_[12]?.x || 0, b(12)]), this.setUniform("u_leftElbowPosition", "vec2", [_[13]?.x || 0, b(13)]), this.setUniform("u_rightElbowPosition", "vec2", [_[14]?.x || 0, b(14)]), this.setUniform("u_leftWristPosition", "vec2", [_[15]?.x || 0, b(15)]), this.setUniform("u_rightWristPosition", "vec2", [_[16]?.x || 0, b(16)]), this.setUniform("u_leftHipPosition", "vec2", [_[23]?.x || 0, b(23)]), this.setUniform("u_rightHipPosition", "vec2", [_[24]?.x || 0, b(24)]), this.setUniform("u_leftKneePosition", "vec2", [_[25]?.x || 0, b(25)]), this.setUniform("u_rightKneePosition", "vec2", [_[26]?.x || 0, b(26)]), this.setUniform("u_leftAnklePosition", "vec2", [_[27]?.x || 0, b(27)]), this.setUniform("u_rightAnklePosition", "vec2", [_[28]?.x || 0, b(28)]);
2897
2897
  } else
2898
2898
  this.setUniform("u_poseConfidence", "float", 0), this.setUniform("u_nosePosition", "vec2", [0, 0]), this.setUniform("u_leftShoulderPosition", "vec2", [0, 0]), this.setUniform("u_rightShoulderPosition", "vec2", [0, 0]), this.setUniform("u_leftElbowPosition", "vec2", [0, 0]), this.setUniform("u_rightElbowPosition", "vec2", [0, 0]), this.setUniform("u_leftWristPosition", "vec2", [0, 0]), this.setUniform("u_rightWristPosition", "vec2", [0, 0]), this.setUniform("u_leftHipPosition", "vec2", [0, 0]), this.setUniform("u_rightHipPosition", "vec2", [0, 0]), this.setUniform("u_leftKneePosition", "vec2", [0, 0]), this.setUniform("u_rightKneePosition", "vec2", [0, 0]), this.setUniform("u_leftAnklePosition", "vec2", [0, 0]), this.setUniform("u_rightAnklePosition", "vec2", [0, 0]);
2899
2899
  const oe = this.visibleFeatures.has("bodySegmentation") ? s.cv?.segmentation ?? null : null;
2900
2900
  oe ? (this.updateSegmentationTexture(oe.mask, oe.width, oe.height), this.setUniform("u_segmentationRes", "vec2", [oe.width, oe.height])) : this.setUniform("u_segmentationRes", "vec2", [0, 0]);
2901
- const ee = e.device;
2902
- if (ee) {
2903
- const _ = ee.motion;
2901
+ const se = e.device;
2902
+ if (se) {
2903
+ const _ = se.motion;
2904
2904
  _?.acceleration ? this.setUniform("u_deviceAcceleration", "vec3", [
2905
2905
  _.acceleration.x ?? 0,
2906
2906
  _.acceleration.y ?? 0,
@@ -2914,7 +2914,7 @@ ${c}`);
2914
2914
  _.rotationRate.beta ?? 0,
2915
2915
  _.rotationRate.gamma ?? 0
2916
2916
  ]) : this.setUniform("u_deviceRotationRate", "vec3", [0, 0, 0]);
2917
- const b = ee.orientation;
2917
+ const b = se.orientation;
2918
2918
  b ? (this.setUniform("u_deviceOrientation", "vec3", [
2919
2919
  b.alpha ?? 0,
2920
2920
  b.beta ?? 0,
@@ -2922,10 +2922,10 @@ ${c}`);
2922
2922
  ]), this.setUniform("u_deviceOrientationAbsolute", "bool", b.absolute)) : (this.setUniform("u_deviceOrientation", "vec3", [0, 0, 0]), this.setUniform("u_deviceOrientationAbsolute", "bool", !1));
2923
2923
  } else
2924
2924
  this.setUniform("u_deviceAcceleration", "vec3", [0, 0, 0]), this.setUniform("u_deviceAccelerationGravity", "vec3", [0, 0, 0]), this.setUniform("u_deviceRotationRate", "vec3", [0, 0, 0]), this.setUniform("u_deviceOrientation", "vec3", [0, 0, 0]), this.setUniform("u_deviceOrientationAbsolute", "bool", !1);
2925
- const Y = e.devices || [], me = Math.min(Y.length, Fe.MAX_EXTERNAL_DEVICES);
2926
- this.setUniform("u_externalDeviceCount", "int", me);
2925
+ const Y = e.devices || [], de = Math.min(Y.length, Fe.MAX_EXTERNAL_DEVICES);
2926
+ this.setUniform("u_externalDeviceCount", "int", de);
2927
2927
  for (let _ = 0; _ < Fe.MAX_EXTERNAL_DEVICES; _++)
2928
- if (_ < me) {
2928
+ if (_ < de) {
2929
2929
  const b = Y[_], v = b.motion;
2930
2930
  v?.acceleration ? this.setUniform(`u_device${_}Acceleration`, "vec3", [
2931
2931
  v.acceleration.x ?? 0,
@@ -3580,13 +3580,13 @@ class Jc extends Kc {
3580
3580
  for (let g = 0; g < 16; g++, n += 4)
3581
3581
  ut[g] = e.getUint32(n, !1);
3582
3582
  for (let g = 16; g < 64; g++) {
3583
- const x = ut[g - 15], T = ut[g - 2], L = Ze(x, 7) ^ Ze(x, 18) ^ x >>> 3, O = Ze(T, 17) ^ Ze(T, 19) ^ T >>> 10;
3584
- ut[g] = O + ut[g - 7] + L + ut[g - 16] | 0;
3583
+ const x = ut[g - 15], T = ut[g - 2], L = Ze(x, 7) ^ Ze(x, 18) ^ x >>> 3, N = Ze(T, 17) ^ Ze(T, 19) ^ T >>> 10;
3584
+ ut[g] = N + ut[g - 7] + L + ut[g - 16] | 0;
3585
3585
  }
3586
3586
  let { A: s, B: i, C: o, D: c, E: u, F: h, G: f, H: m } = this;
3587
3587
  for (let g = 0; g < 64; g++) {
3588
- const x = Ze(u, 6) ^ Ze(u, 11) ^ Ze(u, 25), T = m + x + Yc(u, h, f) + Zc[g] + ut[g] | 0, O = (Ze(s, 2) ^ Ze(s, 13) ^ Ze(s, 22)) + zc(s, i, o) | 0;
3589
- m = f, f = h, h = u, u = c + T | 0, c = o, o = i, i = s, s = T + O | 0;
3588
+ const x = Ze(u, 6) ^ Ze(u, 11) ^ Ze(u, 25), T = m + x + Yc(u, h, f) + Zc[g] + ut[g] | 0, N = (Ze(s, 2) ^ Ze(s, 13) ^ Ze(s, 22)) + zc(s, i, o) | 0;
3589
+ m = f, f = h, h = u, u = c + T | 0, c = o, o = i, i = s, s = T + N | 0;
3590
3590
  }
3591
3591
  s = s + this.A | 0, i = i + this.B | 0, o = o + this.C | 0, c = c + this.D | 0, u = u + this.E | 0, h = h + this.F | 0, f = f + this.G | 0, m = m + this.H | 0, this.set(s, i, o, c, u, h, f, m);
3592
3592
  }
@@ -3693,30 +3693,30 @@ const Rr = (t) => (lr << BigInt(t)) - lr;
3693
3693
  function s1(t, e, n) {
3694
3694
  if (St(t, "hashLen"), St(e, "qByteLen"), typeof n != "function")
3695
3695
  throw new TypeError("hmacFn must be a function");
3696
- const s = (H) => new Uint8Array(H), i = Uint8Array.of(), o = Uint8Array.of(0), c = Uint8Array.of(1), u = 1e3;
3696
+ const s = (q) => new Uint8Array(q), i = Uint8Array.of(), o = Uint8Array.of(0), c = Uint8Array.of(1), u = 1e3;
3697
3697
  let h = s(t), f = s(t), m = 0;
3698
3698
  const g = () => {
3699
3699
  h.fill(1), f.fill(0), m = 0;
3700
- }, x = (...H) => n(f, ft(h, ...H)), T = (H = i) => {
3701
- f = x(o, H), h = x(), H.length !== 0 && (f = x(c, H), h = x());
3700
+ }, x = (...q) => n(f, ft(h, ...q)), T = (q = i) => {
3701
+ f = x(o, q), h = x(), q.length !== 0 && (f = x(c, q), h = x());
3702
3702
  }, L = () => {
3703
3703
  if (m++ >= u)
3704
3704
  throw new Error("drbg: tried max amount of iterations");
3705
- let H = 0;
3705
+ let q = 0;
3706
3706
  const K = [];
3707
- for (; H < e; ) {
3707
+ for (; q < e; ) {
3708
3708
  h = x();
3709
- const P = h.slice();
3710
- K.push(P), H += h.length;
3709
+ const C = h.slice();
3710
+ K.push(C), q += h.length;
3711
3711
  }
3712
3712
  return ft(...K);
3713
3713
  };
3714
- return (H, K) => {
3715
- g(), T(H);
3716
- let P;
3717
- for (; (P = K(L())) === void 0; )
3714
+ return (q, K) => {
3715
+ g(), T(q);
3716
+ let C;
3717
+ for (; (C = K(L())) === void 0; )
3718
3718
  T();
3719
- return g(), P;
3719
+ return g(), C;
3720
3720
  };
3721
3721
  }
3722
3722
  function qn(t, e = {}, n = {}) {
@@ -3775,9 +3775,9 @@ function a1(t) {
3775
3775
  return (u, h) => {
3776
3776
  const f = u;
3777
3777
  let m = f.pow(h, c), g = f.mul(m, s);
3778
- const x = f.mul(m, i), T = f.mul(m, o), L = f.eql(f.sqr(g), h), O = f.eql(f.sqr(x), h);
3779
- m = f.cmov(m, g, L), g = f.cmov(T, x, O);
3780
- const H = f.eql(f.sqr(g), h), K = f.cmov(m, g, H);
3778
+ const x = f.mul(m, i), T = f.mul(m, o), L = f.eql(f.sqr(g), h), N = f.eql(f.sqr(x), h);
3779
+ m = f.cmov(m, g, L), g = f.cmov(T, x, N);
3780
+ const q = f.eql(f.sqr(g), h), K = f.cmov(m, g, q);
3781
3781
  return Cr(f, K, h), K;
3782
3782
  };
3783
3783
  }
@@ -3806,12 +3806,12 @@ function Do(t) {
3806
3806
  for (; !m.eql(T, m.ONE); ) {
3807
3807
  if (m.is0(T))
3808
3808
  return m.ZERO;
3809
- let O = 1, H = m.sqr(T);
3810
- for (; !m.eql(H, m.ONE); )
3811
- if (O++, H = m.sqr(H), O === g)
3809
+ let N = 1, q = m.sqr(T);
3810
+ for (; !m.eql(q, m.ONE); )
3811
+ if (N++, q = m.sqr(q), N === g)
3812
3812
  throw new Error("Cannot find square root");
3813
- const K = Ee << BigInt(g - O - 1), P = m.pow(x, K);
3814
- g = O, x = m.sqr(P), T = m.mul(T, x), L = m.mul(L, P);
3813
+ const K = Ee << BigInt(g - N - 1), C = m.pow(x, K);
3814
+ g = N, x = m.sqr(C), T = m.mul(T, x), L = m.mul(L, C);
3815
3815
  }
3816
3816
  return L;
3817
3817
  };
@@ -4384,8 +4384,8 @@ function w1(t, e = {}) {
4384
4384
  const { x: X, y: U } = v.toAffine(), R = s.toBytes(X);
4385
4385
  if (Qt($, "isCompressed"), $) {
4386
4386
  g();
4387
- const N = !s.isOdd(U);
4388
- return ft($o(N), R);
4387
+ const M = !s.isOdd(U);
4388
+ return ft($o(M), R);
4389
4389
  } else
4390
4390
  return ft(Uint8Array.of(4), R, s.toBytes(U));
4391
4391
  }
@@ -4395,48 +4395,48 @@ function w1(t, e = {}) {
4395
4395
  if (f && X === 1 && U === 0)
4396
4396
  return { x: s.ZERO, y: s.ZERO };
4397
4397
  if (X === v && (U === 2 || U === 3)) {
4398
- const N = s.fromBytes(R);
4399
- if (!s.isValid(N))
4398
+ const M = s.fromBytes(R);
4399
+ if (!s.isValid(M))
4400
4400
  throw new Error("bad point: is not on curve, wrong x");
4401
- const F = H(N);
4402
- let B;
4401
+ const F = q(M);
4402
+ let O;
4403
4403
  try {
4404
- B = s.sqrt(F);
4404
+ O = s.sqrt(F);
4405
4405
  } catch (ue) {
4406
4406
  const ae = ue instanceof Error ? ": " + ue.message : "";
4407
4407
  throw new Error("bad point: is not on curve, sqrt error" + ae);
4408
4408
  }
4409
4409
  g();
4410
- const V = s.isOdd(B);
4411
- return (U & 1) === 1 !== V && (B = s.neg(B)), { x: N, y: B };
4410
+ const j = s.isOdd(O);
4411
+ return (U & 1) === 1 !== j && (O = s.neg(O)), { x: M, y: O };
4412
4412
  } else if (X === $ && U === 4) {
4413
- const N = s.BYTES, F = s.fromBytes(R.subarray(0, N)), B = s.fromBytes(R.subarray(N, N * 2));
4414
- if (!K(F, B))
4413
+ const M = s.BYTES, F = s.fromBytes(R.subarray(0, M)), O = s.fromBytes(R.subarray(M, M * 2));
4414
+ if (!K(F, O))
4415
4415
  throw new Error("bad point: is not on curve");
4416
- return { x: F, y: B };
4416
+ return { x: F, y: O };
4417
4417
  } else
4418
4418
  throw new Error(`bad point: got length ${X}, expected compressed=${v} or uncompressed=${$}`);
4419
4419
  }
4420
- const L = e.toBytes === void 0 ? x : e.toBytes, O = e.fromBytes === void 0 ? T : e.fromBytes;
4421
- function H(b) {
4420
+ const L = e.toBytes === void 0 ? x : e.toBytes, N = e.fromBytes === void 0 ? T : e.fromBytes;
4421
+ function q(b) {
4422
4422
  const v = s.sqr(b), $ = s.mul(v, b);
4423
4423
  return s.add(s.add($, s.mul(b, o.a)), o.b);
4424
4424
  }
4425
4425
  function K(b, v) {
4426
- const $ = s.sqr(v), X = H(b);
4426
+ const $ = s.sqr(v), X = q(b);
4427
4427
  return s.eql($, X);
4428
4428
  }
4429
4429
  if (!K(o.Gx, o.Gy))
4430
4430
  throw new Error("bad curve params: generator point");
4431
- const P = s.mul(s.pow(o.a, bn), v1), j = s.mul(s.sqr(o.b), BigInt(27));
4432
- if (s.is0(s.add(P, j)))
4431
+ const C = s.mul(s.pow(o.a, bn), v1), H = s.mul(s.sqr(o.b), BigInt(27));
4432
+ if (s.is0(s.add(C, H)))
4433
4433
  throw new Error("bad curve params: a or b");
4434
- function M(b, v, $ = !1) {
4434
+ function B(b, v, $ = !1) {
4435
4435
  if (!s.isValid(v) || $ && s.is0(v))
4436
4436
  throw new Error(`bad point coordinate ${b}`);
4437
4437
  return v;
4438
4438
  }
4439
- function Q(b) {
4439
+ function J(b) {
4440
4440
  if (!(b instanceof Y))
4441
4441
  throw new Error("Weierstrass Point expected");
4442
4442
  }
@@ -4445,7 +4445,7 @@ function w1(t, e = {}) {
4445
4445
  throw new Error("no endo");
4446
4446
  return y1(b, h.basises, i.ORDER);
4447
4447
  }
4448
- function ee(b, v, $, X, U) {
4448
+ function se(b, v, $, X, U) {
4449
4449
  return $ = new Y(s.mul($.X, b), $.Y, $.Z), v = Rn(X, v), $ = Rn(U, $), v.add($);
4450
4450
  }
4451
4451
  class Y {
@@ -4463,7 +4463,7 @@ function w1(t, e = {}) {
4463
4463
  Z;
4464
4464
  /** Does NOT validate if the point is valid. Use `.assertValidity()`. */
4465
4465
  constructor(v, $, X) {
4466
- this.X = M("x", v), this.Y = M("y", $, !0), this.Z = M("z", X), Object.freeze(this);
4466
+ this.X = B("x", v), this.Y = B("y", $, !0), this.Z = B("z", X), Object.freeze(this);
4467
4467
  }
4468
4468
  static CURVE() {
4469
4469
  return o;
@@ -4478,7 +4478,7 @@ function w1(t, e = {}) {
4478
4478
  return s.is0($) && s.is0(X) ? Y.ZERO : new Y($, X, s.ONE);
4479
4479
  }
4480
4480
  static fromBytes(v) {
4481
- const $ = Y.fromAffine(O(Ce(v, void 0, "point")));
4481
+ const $ = Y.fromAffine(N(Ce(v, void 0, "point")));
4482
4482
  return $.assertValidity(), $;
4483
4483
  }
4484
4484
  static fromHex(v) {
@@ -4524,9 +4524,9 @@ function w1(t, e = {}) {
4524
4524
  }
4525
4525
  /** Compare one point to another. */
4526
4526
  equals(v) {
4527
- Q(v);
4528
- const { X: $, Y: X, Z: U } = this, { X: R, Y: N, Z: F } = v, B = s.eql(s.mul($, F), s.mul(R, U)), V = s.eql(s.mul(X, F), s.mul(N, U));
4529
- return B && V;
4527
+ J(v);
4528
+ const { X: $, Y: X, Z: U } = this, { X: R, Y: M, Z: F } = v, O = s.eql(s.mul($, F), s.mul(R, U)), j = s.eql(s.mul(X, F), s.mul(M, U));
4529
+ return O && j;
4530
4530
  }
4531
4531
  /** Flips point to one corresponding to (x, -y) in Affine coordinates. */
4532
4532
  negate() {
@@ -4537,26 +4537,26 @@ function w1(t, e = {}) {
4537
4537
  // https://eprint.iacr.org/2015/1060, algorithm 3
4538
4538
  // Cost: 8M + 3S + 3*a + 2*b3 + 15add.
4539
4539
  double() {
4540
- const { a: v, b: $ } = o, X = s.mul($, bn), { X: U, Y: R, Z: N } = this;
4541
- let F = s.ZERO, B = s.ZERO, V = s.ZERO, z = s.mul(U, U), ue = s.mul(R, R), ae = s.mul(N, N), ie = s.mul(U, R);
4542
- return ie = s.add(ie, ie), V = s.mul(U, N), V = s.add(V, V), F = s.mul(v, V), B = s.mul(X, ae), B = s.add(F, B), F = s.sub(ue, B), B = s.add(ue, B), B = s.mul(F, B), F = s.mul(ie, F), V = s.mul(X, V), ae = s.mul(v, ae), ie = s.sub(z, ae), ie = s.mul(v, ie), ie = s.add(ie, V), V = s.add(z, z), z = s.add(V, z), z = s.add(z, ae), z = s.mul(z, ie), B = s.add(B, z), ae = s.mul(R, N), ae = s.add(ae, ae), z = s.mul(ae, ie), F = s.sub(F, z), V = s.mul(ae, ue), V = s.add(V, V), V = s.add(V, V), new Y(F, B, V);
4540
+ const { a: v, b: $ } = o, X = s.mul($, bn), { X: U, Y: R, Z: M } = this;
4541
+ let F = s.ZERO, O = s.ZERO, j = s.ZERO, z = s.mul(U, U), ue = s.mul(R, R), ae = s.mul(M, M), ie = s.mul(U, R);
4542
+ return ie = s.add(ie, ie), j = s.mul(U, M), j = s.add(j, j), F = s.mul(v, j), O = s.mul(X, ae), O = s.add(F, O), F = s.sub(ue, O), O = s.add(ue, O), O = s.mul(F, O), F = s.mul(ie, F), j = s.mul(X, j), ae = s.mul(v, ae), ie = s.sub(z, ae), ie = s.mul(v, ie), ie = s.add(ie, j), j = s.add(z, z), z = s.add(j, z), z = s.add(z, ae), z = s.mul(z, ie), O = s.add(O, z), ae = s.mul(R, M), ae = s.add(ae, ae), z = s.mul(ae, ie), F = s.sub(F, z), j = s.mul(ae, ue), j = s.add(j, j), j = s.add(j, j), new Y(F, O, j);
4543
4543
  }
4544
4544
  // Renes-Costello-Batina exception-free addition formula.
4545
4545
  // There is 30% faster Jacobian formula, but it is not complete.
4546
4546
  // https://eprint.iacr.org/2015/1060, algorithm 1
4547
4547
  // Cost: 12M + 0S + 3*a + 3*b3 + 23add.
4548
4548
  add(v) {
4549
- Q(v);
4550
- const { X: $, Y: X, Z: U } = this, { X: R, Y: N, Z: F } = v;
4551
- let B = s.ZERO, V = s.ZERO, z = s.ZERO;
4549
+ J(v);
4550
+ const { X: $, Y: X, Z: U } = this, { X: R, Y: M, Z: F } = v;
4551
+ let O = s.ZERO, j = s.ZERO, z = s.ZERO;
4552
4552
  const ue = o.a, ae = s.mul(o.b, bn);
4553
- let ie = s.mul($, R), k = s.mul(X, N), S = s.mul(U, F), A = s.add($, X), I = s.add(R, N);
4553
+ let ie = s.mul($, R), k = s.mul(X, M), S = s.mul(U, F), A = s.add($, X), I = s.add(R, M);
4554
4554
  A = s.mul(A, I), I = s.add(ie, k), A = s.sub(A, I), I = s.add($, U);
4555
4555
  let D = s.add(R, F);
4556
- return I = s.mul(I, D), D = s.add(ie, S), I = s.sub(I, D), D = s.add(X, U), B = s.add(N, F), D = s.mul(D, B), B = s.add(k, S), D = s.sub(D, B), z = s.mul(ue, I), B = s.mul(ae, S), z = s.add(B, z), B = s.sub(k, z), z = s.add(k, z), V = s.mul(B, z), k = s.add(ie, ie), k = s.add(k, ie), S = s.mul(ue, S), I = s.mul(ae, I), k = s.add(k, S), S = s.sub(ie, S), S = s.mul(ue, S), I = s.add(I, S), ie = s.mul(k, I), V = s.add(V, ie), ie = s.mul(D, I), B = s.mul(A, B), B = s.sub(B, ie), ie = s.mul(A, k), z = s.mul(D, z), z = s.add(z, ie), new Y(B, V, z);
4556
+ return I = s.mul(I, D), D = s.add(ie, S), I = s.sub(I, D), D = s.add(X, U), O = s.add(M, F), D = s.mul(D, O), O = s.add(k, S), D = s.sub(D, O), z = s.mul(ue, I), O = s.mul(ae, S), z = s.add(O, z), O = s.sub(k, z), z = s.add(k, z), j = s.mul(O, z), k = s.add(ie, ie), k = s.add(k, ie), S = s.mul(ue, S), I = s.mul(ae, I), k = s.add(k, S), S = s.sub(ie, S), S = s.mul(ue, S), I = s.add(I, S), ie = s.mul(k, I), j = s.add(j, ie), ie = s.mul(D, I), O = s.mul(A, O), O = s.sub(O, ie), ie = s.mul(A, k), z = s.mul(D, z), z = s.add(z, ie), new Y(O, j, z);
4557
4557
  }
4558
4558
  subtract(v) {
4559
- return Q(v), this.add(v.negate());
4559
+ return J(v), this.add(v.negate());
4560
4560
  }
4561
4561
  is0() {
4562
4562
  return this.equals(Y.ZERO);
@@ -4575,13 +4575,13 @@ function w1(t, e = {}) {
4575
4575
  if (!i.isValidNot0(v))
4576
4576
  throw new RangeError("invalid scalar: out of range");
4577
4577
  let X, U;
4578
- const R = (N) => _.cached(this, N, (F) => xi(Y, F));
4578
+ const R = (M) => _.cached(this, M, (F) => xi(Y, F));
4579
4579
  if ($) {
4580
- const { k1neg: N, k1: F, k2neg: B, k2: V } = oe(v), { p: z, f: ue } = R(F), { p: ae, f: ie } = R(V);
4581
- U = ue.add(ie), X = ee($.beta, z, ae, N, B);
4580
+ const { k1neg: M, k1: F, k2neg: O, k2: j } = oe(v), { p: z, f: ue } = R(F), { p: ae, f: ie } = R(j);
4581
+ U = ue.add(ie), X = se($.beta, z, ae, M, O);
4582
4582
  } else {
4583
- const { p: N, f: F } = R(v);
4584
- X = N, U = F;
4583
+ const { p: M, f: F } = R(v);
4584
+ X = M, U = F;
4585
4585
  }
4586
4586
  return xi(Y, [X, U])[0];
4587
4587
  }
@@ -4601,8 +4601,8 @@ function w1(t, e = {}) {
4601
4601
  if (_.hasCache(this))
4602
4602
  return this.multiply(U);
4603
4603
  if ($) {
4604
- const { k1neg: R, k1: N, k2neg: F, k2: B } = oe(U), { p1: V, p2: z } = p1(Y, X, N, B);
4605
- return ee($.beta, V, z, R, F);
4604
+ const { k1neg: R, k1: M, k2neg: F, k2: O } = oe(U), { p1: j, p2: z } = p1(Y, X, M, O);
4605
+ return se($.beta, j, z, R, F);
4606
4606
  } else
4607
4607
  return _.unsafe(X, U);
4608
4608
  }
@@ -4614,17 +4614,17 @@ function w1(t, e = {}) {
4614
4614
  toAffine(v) {
4615
4615
  const $ = this;
4616
4616
  let X = v;
4617
- const { X: U, Y: R, Z: N } = $;
4618
- if (s.eql(N, s.ONE))
4617
+ const { X: U, Y: R, Z: M } = $;
4618
+ if (s.eql(M, s.ONE))
4619
4619
  return { x: U, y: R };
4620
4620
  const F = $.is0();
4621
- X == null && (X = F ? s.ONE : s.inv(N));
4622
- const B = s.mul(U, X), V = s.mul(R, X), z = s.mul(N, X);
4621
+ X == null && (X = F ? s.ONE : s.inv(M));
4622
+ const O = s.mul(U, X), j = s.mul(R, X), z = s.mul(M, X);
4623
4623
  if (F)
4624
4624
  return { x: s.ZERO, y: s.ZERO };
4625
4625
  if (!s.eql(z, s.ONE))
4626
4626
  throw new Error("invZ was invalid");
4627
- return { x: B, y: V };
4627
+ return { x: O, y: j };
4628
4628
  }
4629
4629
  /**
4630
4630
  * Checks whether Point is free of torsion elements (is in prime subgroup).
@@ -4651,8 +4651,8 @@ function w1(t, e = {}) {
4651
4651
  return `<Point ${this.is0() ? "ZERO" : this.toHex()}>`;
4652
4652
  }
4653
4653
  }
4654
- const me = i.BITS, _ = new m1(Y, e.endo ? Math.ceil(me / 2) : me);
4655
- return me >= 8 && Y.BASE.precompute(8), Object.freeze(Y.prototype), Object.freeze(Y), Y;
4654
+ const de = i.BITS, _ = new m1(Y, e.endo ? Math.ceil(de / 2) : de);
4655
+ return de >= 8 && Y.BASE.precompute(8), Object.freeze(Y.prototype), Object.freeze(Y), Y;
4656
4656
  }
4657
4657
  function $o(t) {
4658
4658
  return Uint8Array.of(t ? 2 : 3);
@@ -4681,10 +4681,10 @@ function x1(t, e = {}) {
4681
4681
  }
4682
4682
  }
4683
4683
  function c(T, L) {
4684
- const { publicKey: O, publicKeyUncompressed: H } = i;
4684
+ const { publicKey: N, publicKeyUncompressed: q } = i;
4685
4685
  try {
4686
4686
  const K = T.length;
4687
- return L === !0 && K !== O || L === !1 && K !== H ? !1 : !!t.fromBytes(T);
4687
+ return L === !0 && K !== N || L === !1 && K !== q ? !1 : !!t.fromBytes(T);
4688
4688
  } catch {
4689
4689
  return !1;
4690
4690
  }
@@ -4696,20 +4696,20 @@ function x1(t, e = {}) {
4696
4696
  return t.BASE.multiply(n.fromBytes(T)).toBytes(L);
4697
4697
  }
4698
4698
  function f(T) {
4699
- const { secretKey: L, publicKey: O, publicKeyUncompressed: H } = i, K = n._lengths;
4699
+ const { secretKey: L, publicKey: N, publicKeyUncompressed: q } = i, K = n._lengths;
4700
4700
  if (!ko(T))
4701
4701
  return;
4702
- const P = Ce(T, void 0, "key").length, j = P === O || P === H, M = P === L || !!K?.includes(P);
4703
- if (!(j && M))
4704
- return j;
4702
+ const C = Ce(T, void 0, "key").length, H = C === N || C === q, B = C === L || !!K?.includes(C);
4703
+ if (!(H && B))
4704
+ return H;
4705
4705
  }
4706
- function m(T, L, O = !0) {
4706
+ function m(T, L, N = !0) {
4707
4707
  if (f(T) === !0)
4708
4708
  throw new Error("first arg must be private key");
4709
4709
  if (f(L) === !1)
4710
4710
  throw new Error("second arg must be public key");
4711
- const H = n.fromBytes(T);
4712
- return t.fromBytes(L).multiply(H).toBytes(O);
4711
+ const q = n.fromBytes(T);
4712
+ return t.fromBytes(L).multiply(q).toBytes(N);
4713
4713
  }
4714
4714
  const g = {
4715
4715
  isValidSecretKey: o,
@@ -4727,55 +4727,55 @@ function E1(t, e, n = {}) {
4727
4727
  bits2int: "function",
4728
4728
  bits2int_modN: "function"
4729
4729
  }), n = Object.assign({}, n);
4730
- const i = n.randomBytes === void 0 ? vo : n.randomBytes, o = n.hmac === void 0 ? (U, R) => _1(s, U, R) : n.hmac, { Fp: c, Fn: u } = t, { ORDER: h, BITS: f } = u, { keygen: m, getPublicKey: g, getSharedSecret: x, utils: T, lengths: L } = x1(t, n), O = {
4730
+ const i = n.randomBytes === void 0 ? vo : n.randomBytes, o = n.hmac === void 0 ? (U, R) => _1(s, U, R) : n.hmac, { Fp: c, Fn: u } = t, { ORDER: h, BITS: f } = u, { keygen: m, getPublicKey: g, getSharedSecret: x, utils: T, lengths: L } = x1(t, n), N = {
4731
4731
  prehash: !0,
4732
4732
  lowS: typeof n.lowS == "boolean" ? n.lowS : !0,
4733
4733
  format: "compact",
4734
4734
  extraEntropy: !1
4735
- }, H = h * Oo + ht < c.ORDER;
4735
+ }, q = h * Oo + ht < c.ORDER;
4736
4736
  function K(U) {
4737
4737
  const R = h >> ht;
4738
4738
  return U > R;
4739
4739
  }
4740
- function P(U, R) {
4740
+ function C(U, R) {
4741
4741
  if (!u.isValidNot0(R))
4742
4742
  throw new Error(`invalid signature ${U}: out of range 1..Point.Fn.ORDER`);
4743
4743
  return R;
4744
4744
  }
4745
- function j() {
4746
- if (H)
4745
+ function H() {
4746
+ if (q)
4747
4747
  throw new Error('"recovered" sig type is not supported for cofactor >2 curves');
4748
4748
  }
4749
- function M(U, R) {
4749
+ function B(U, R) {
4750
4750
  hr(R);
4751
- const N = L.signature, F = R === "compact" ? N : R === "recovered" ? N + 1 : void 0;
4751
+ const M = L.signature, F = R === "compact" ? M : R === "recovered" ? M + 1 : void 0;
4752
4752
  return Ce(U, F);
4753
4753
  }
4754
- class Q {
4754
+ class J {
4755
4755
  r;
4756
4756
  s;
4757
4757
  recovery;
4758
- constructor(R, N, F) {
4759
- if (this.r = P("r", R), this.s = P("s", N), F != null) {
4760
- if (j(), ![0, 1, 2, 3].includes(F))
4758
+ constructor(R, M, F) {
4759
+ if (this.r = C("r", R), this.s = C("s", M), F != null) {
4760
+ if (H(), ![0, 1, 2, 3].includes(F))
4761
4761
  throw new Error("invalid recovery id");
4762
4762
  this.recovery = F;
4763
4763
  }
4764
4764
  Object.freeze(this);
4765
4765
  }
4766
- static fromBytes(R, N = O.format) {
4767
- M(R, N);
4766
+ static fromBytes(R, M = N.format) {
4767
+ B(R, M);
4768
4768
  let F;
4769
- if (N === "der") {
4769
+ if (M === "der") {
4770
4770
  const { r: ue, s: ae } = He.toSig(Ce(R));
4771
- return new Q(ue, ae);
4771
+ return new J(ue, ae);
4772
4772
  }
4773
- N === "recovered" && (F = R[0], N = "compact", R = R.subarray(1));
4774
- const B = L.signature / 2, V = R.subarray(0, B), z = R.subarray(B, B * 2);
4775
- return new Q(u.fromBytes(V), u.fromBytes(z), F);
4773
+ M === "recovered" && (F = R[0], M = "compact", R = R.subarray(1));
4774
+ const O = L.signature / 2, j = R.subarray(0, O), z = R.subarray(O, O * 2);
4775
+ return new J(u.fromBytes(j), u.fromBytes(z), F);
4776
4776
  }
4777
- static fromHex(R, N) {
4778
- return this.fromBytes(ur(R), N);
4777
+ static fromHex(R, M) {
4778
+ return this.fromBytes(ur(R), M);
4779
4779
  }
4780
4780
  assertRecovery() {
4781
4781
  const { recovery: R } = this;
@@ -4784,15 +4784,15 @@ function E1(t, e, n = {}) {
4784
4784
  return R;
4785
4785
  }
4786
4786
  addRecoveryBit(R) {
4787
- return new Q(this.r, this.s, R);
4787
+ return new J(this.r, this.s, R);
4788
4788
  }
4789
4789
  // Unlike the top-level helper below, this method expects a digest that has
4790
4790
  // already been hashed to the curve's message representative.
4791
4791
  recoverPublicKey(R) {
4792
- const { r: N, s: F } = this, B = this.assertRecovery(), V = B === 2 || B === 3 ? N + h : N;
4793
- if (!c.isValid(V))
4792
+ const { r: M, s: F } = this, O = this.assertRecovery(), j = O === 2 || O === 3 ? M + h : M;
4793
+ if (!c.isValid(j))
4794
4794
  throw new Error("invalid recovery id: sig.r+curve.n != R.x");
4795
- const z = c.toBytes(V), ue = t.fromBytes(ft($o((B & 1) === 0), z)), ae = u.inv(V), ie = ee(Ce(R, void 0, "msgHash")), k = u.create(-ie * ae), S = u.create(F * ae), A = t.BASE.multiplyUnsafe(k).add(ue.multiplyUnsafe(S));
4795
+ const z = c.toBytes(j), ue = t.fromBytes(ft($o((O & 1) === 0), z)), ae = u.inv(j), ie = se(Ce(R, void 0, "msgHash")), k = u.create(-ie * ae), S = u.create(F * ae), A = t.BASE.multiplyUnsafe(k).add(ue.multiplyUnsafe(S));
4796
4796
  if (A.is0())
4797
4797
  throw new Error("invalid recovery: point at infinify");
4798
4798
  return A.assertValidity(), A;
@@ -4801,40 +4801,40 @@ function E1(t, e, n = {}) {
4801
4801
  hasHighS() {
4802
4802
  return K(this.s);
4803
4803
  }
4804
- toBytes(R = O.format) {
4804
+ toBytes(R = N.format) {
4805
4805
  if (hr(R), R === "der")
4806
4806
  return ur(He.hexFromSig(this));
4807
- const { r: N, s: F } = this, B = u.toBytes(N), V = u.toBytes(F);
4808
- return R === "recovered" ? (j(), ft(Uint8Array.of(this.assertRecovery()), B, V)) : ft(B, V);
4807
+ const { r: M, s: F } = this, O = u.toBytes(M), j = u.toBytes(F);
4808
+ return R === "recovered" ? (H(), ft(Uint8Array.of(this.assertRecovery()), O, j)) : ft(O, j);
4809
4809
  }
4810
4810
  toHex(R) {
4811
4811
  return yo(this.toBytes(R));
4812
4812
  }
4813
4813
  }
4814
- Object.freeze(Q.prototype), Object.freeze(Q);
4814
+ Object.freeze(J.prototype), Object.freeze(J);
4815
4815
  const oe = n.bits2int === void 0 ? function(R) {
4816
4816
  if (R.length > 8192)
4817
4817
  throw new Error("input is too large");
4818
- const N = Vn(R), F = R.length * 8 - f;
4819
- return F > 0 ? N >> BigInt(F) : N;
4820
- } : n.bits2int, ee = n.bits2int_modN === void 0 ? function(R) {
4818
+ const M = Vn(R), F = R.length * 8 - f;
4819
+ return F > 0 ? M >> BigInt(F) : M;
4820
+ } : n.bits2int, se = n.bits2int_modN === void 0 ? function(R) {
4821
4821
  return u.create(oe(R));
4822
4822
  } : n.bits2int_modN, Y = Rr(f);
4823
- function me(U) {
4823
+ function de(U) {
4824
4824
  return So("num < 2^" + f, U, Je, Y), u.toBytes(U);
4825
4825
  }
4826
4826
  function _(U, R) {
4827
4827
  return Ce(U, void 0, "message"), R ? Ce(s(U), void 0, "prehashed message") : U;
4828
4828
  }
4829
- function b(U, R, N) {
4830
- const { lowS: F, prehash: B, extraEntropy: V } = Js(N, O);
4831
- U = _(U, B);
4832
- const z = ee(U), ue = u.fromBytes(R);
4829
+ function b(U, R, M) {
4830
+ const { lowS: F, prehash: O, extraEntropy: j } = Js(M, N);
4831
+ U = _(U, O);
4832
+ const z = se(U), ue = u.fromBytes(R);
4833
4833
  if (!u.isValidNot0(ue))
4834
4834
  throw new Error("invalid private key");
4835
- const ae = [me(ue), me(z)];
4836
- if (V != null && V !== !1) {
4837
- const A = V === !0 ? i(L.secretKey) : V;
4835
+ const ae = [de(ue), de(z)];
4836
+ if (j != null && j !== !1) {
4837
+ const A = j === !0 ? i(L.secretKey) : j;
4838
4838
  ae.push(Ce(A, void 0, "extraEntropy"));
4839
4839
  }
4840
4840
  const ie = ft(...ae), k = z;
@@ -4848,35 +4848,35 @@ function E1(t, e, n = {}) {
4848
4848
  const ce = u.create(D * u.create(k + Z * ue));
4849
4849
  if (ce === Je)
4850
4850
  return;
4851
- let ge = (W.x === Z ? 0 : 2) | Number(W.y & ht), de = ce;
4852
- return F && K(ce) && (de = u.neg(ce), ge ^= 1), new Q(Z, de, H ? void 0 : ge);
4851
+ let ge = (W.x === Z ? 0 : 2) | Number(W.y & ht), me = ce;
4852
+ return F && K(ce) && (me = u.neg(ce), ge ^= 1), new J(Z, me, q ? void 0 : ge);
4853
4853
  }
4854
4854
  return { seed: ie, k2sig: S };
4855
4855
  }
4856
- function v(U, R, N = {}) {
4857
- const { seed: F, k2sig: B } = b(U, R, N);
4858
- return s1(s.outputLen, u.BYTES, o)(F, B).toBytes(N.format);
4856
+ function v(U, R, M = {}) {
4857
+ const { seed: F, k2sig: O } = b(U, R, M);
4858
+ return s1(s.outputLen, u.BYTES, o)(F, O).toBytes(M.format);
4859
4859
  }
4860
- function $(U, R, N, F = {}) {
4861
- const { lowS: B, prehash: V, format: z } = Js(F, O);
4862
- if (N = Ce(N, void 0, "publicKey"), R = _(R, V), !ko(U)) {
4863
- const ue = U instanceof Q ? ", use sig.toBytes()" : "";
4860
+ function $(U, R, M, F = {}) {
4861
+ const { lowS: O, prehash: j, format: z } = Js(F, N);
4862
+ if (M = Ce(M, void 0, "publicKey"), R = _(R, j), !ko(U)) {
4863
+ const ue = U instanceof J ? ", use sig.toBytes()" : "";
4864
4864
  throw new Error("verify expects Uint8Array signature" + ue);
4865
4865
  }
4866
- M(U, z);
4866
+ B(U, z);
4867
4867
  try {
4868
- const ue = Q.fromBytes(U, z), ae = t.fromBytes(N);
4869
- if (B && ue.hasHighS())
4868
+ const ue = J.fromBytes(U, z), ae = t.fromBytes(M);
4869
+ if (O && ue.hasHighS())
4870
4870
  return !1;
4871
- const { r: ie, s: k } = ue, S = ee(R), A = u.inv(k), I = u.create(S * A), D = u.create(ie * A), W = t.BASE.multiplyUnsafe(I).add(ae.multiplyUnsafe(D));
4871
+ const { r: ie, s: k } = ue, S = se(R), A = u.inv(k), I = u.create(S * A), D = u.create(ie * A), W = t.BASE.multiplyUnsafe(I).add(ae.multiplyUnsafe(D));
4872
4872
  return W.is0() ? !1 : u.create(W.x) === ie;
4873
4873
  } catch {
4874
4874
  return !1;
4875
4875
  }
4876
4876
  }
4877
- function X(U, R, N = {}) {
4878
- const { prehash: F } = Js(N, O);
4879
- return R = _(R, F), Q.fromBytes(U, "recovered").recoverPublicKey(R).toBytes();
4877
+ function X(U, R, M = {}) {
4878
+ const { prehash: F } = Js(M, N);
4879
+ return R = _(R, F), J.fromBytes(U, "recovered").recoverPublicKey(R).toBytes();
4880
4880
  }
4881
4881
  return Object.freeze({
4882
4882
  keygen: m,
@@ -4888,7 +4888,7 @@ function E1(t, e, n = {}) {
4888
4888
  sign: v,
4889
4889
  verify: $,
4890
4890
  recoverPublicKey: X,
4891
- Signature: Q,
4891
+ Signature: J,
4892
4892
  hash: s
4893
4893
  });
4894
4894
  }
@@ -5109,9 +5109,9 @@ function q1(t, e, n) {
5109
5109
  if (j1(t), !Ue || !Kt) return;
5110
5110
  const s = n.vertical ? qo : Vo;
5111
5111
  if (!s) return;
5112
- const i = e.width, o = e.height, c = n.px, u = n.py, h = n.w, f = n.h, m = c / i * 2 - 1, g = 1 - (u + f) / o * 2, x = (c + h) / i * 2 - 1, T = 1 - u / o * 2, L = !!(lt && Pn), O = t.getParameter(t.CURRENT_PROGRAM), H = t.getParameter(t.ACTIVE_TEXTURE);
5112
+ const i = e.width, o = e.height, c = n.px, u = n.py, h = n.w, f = n.h, m = c / i * 2 - 1, g = 1 - (u + f) / o * 2, x = (c + h) / i * 2 - 1, T = 1 - u / o * 2, L = !!(lt && Pn), N = t.getParameter(t.CURRENT_PROGRAM), q = t.getParameter(t.ACTIVE_TEXTURE);
5113
5113
  t.activeTexture(t.TEXTURE0);
5114
- const K = t.getParameter(t.TEXTURE_BINDING_2D), P = t.getParameter(t.ARRAY_BUFFER_BINDING), j = t.getParameter(t.FRAMEBUFFER_BINDING), M = t.getParameter(t.VIEWPORT), Q = t.isEnabled(t.BLEND), oe = t.getParameter(t.BLEND_SRC_RGB), ee = t.getParameter(t.BLEND_DST_RGB), Y = t.getParameter(t.BLEND_SRC_ALPHA), me = t.getParameter(t.BLEND_DST_ALPHA), _ = t.getParameter(t.BLEND_EQUATION_RGB), b = t.getParameter(t.BLEND_EQUATION_ALPHA), v = t.isEnabled(t.DEPTH_TEST), $ = t.isEnabled(t.SCISSOR_TEST), X = t.isEnabled(t.STENCIL_TEST), U = t.isEnabled(t.CULL_FACE), R = t.getParameter(t.COLOR_WRITEMASK), N = t.getParameter(t.UNPACK_FLIP_Y_WEBGL), F = L ? t.getParameter(Xo) : null, B = !L && it >= 0 ? Ni(t, it) : null, V = !L && ot >= 0 ? Ni(t, ot) : null;
5114
+ const K = t.getParameter(t.TEXTURE_BINDING_2D), C = t.getParameter(t.ARRAY_BUFFER_BINDING), H = t.getParameter(t.FRAMEBUFFER_BINDING), B = t.getParameter(t.VIEWPORT), J = t.isEnabled(t.BLEND), oe = t.getParameter(t.BLEND_SRC_RGB), se = t.getParameter(t.BLEND_DST_RGB), Y = t.getParameter(t.BLEND_SRC_ALPHA), de = t.getParameter(t.BLEND_DST_ALPHA), _ = t.getParameter(t.BLEND_EQUATION_RGB), b = t.getParameter(t.BLEND_EQUATION_ALPHA), v = t.isEnabled(t.DEPTH_TEST), $ = t.isEnabled(t.SCISSOR_TEST), X = t.isEnabled(t.STENCIL_TEST), U = t.isEnabled(t.CULL_FACE), R = t.getParameter(t.COLOR_WRITEMASK), M = t.getParameter(t.UNPACK_FLIP_Y_WEBGL), F = L ? t.getParameter(Xo) : null, O = !L && it >= 0 ? Ni(t, it) : null, j = !L && ot >= 0 ? Ni(t, ot) : null;
5115
5115
  t.bindFramebuffer(t.FRAMEBUFFER, null), t.viewport(0, 0, i, o), t.useProgram(Ue), t.enable(t.BLEND), t.blendEquation(t.FUNC_ADD), t.blendFunc(t.SRC_ALPHA, t.ONE_MINUS_SRC_ALPHA), t.disable(t.DEPTH_TEST), t.disable(t.SCISSOR_TEST), t.disable(t.STENCIL_TEST), t.disable(t.CULL_FACE), t.colorMask(!0, !0, !0, !0), t.pixelStorei(t.UNPACK_FLIP_Y_WEBGL, 0), t.bindTexture(t.TEXTURE_2D, s), t.uniform1i(t.getUniformLocation(Ue, "u_tex"), 0), t.uniform1f(t.getUniformLocation(Ue, "u_alpha"), 1);
5116
5116
  const z = new Float32Array([
5117
5117
  m,
@@ -5139,7 +5139,7 @@ function q1(t, e, n) {
5139
5139
  1,
5140
5140
  1
5141
5141
  ]);
5142
- L ? (lt.bind(Pn), t.bindBuffer(t.ARRAY_BUFFER, Kt), t.bufferData(t.ARRAY_BUFFER, z, t.DYNAMIC_DRAW)) : (t.bindBuffer(t.ARRAY_BUFFER, Kt), t.bufferData(t.ARRAY_BUFFER, z, t.DYNAMIC_DRAW), it >= 0 && (t.enableVertexAttribArray(it), t.vertexAttribPointer(it, 2, t.FLOAT, !1, 16, 0)), ot >= 0 && (t.enableVertexAttribArray(ot), t.vertexAttribPointer(ot, 2, t.FLOAT, !1, 16, 8))), t.drawArrays(t.TRIANGLES, 0, 6), L ? lt.bind(F) : (V && Mi(t, V), B && Mi(t, B)), t.bindFramebuffer(t.FRAMEBUFFER, j), t.viewport(M[0], M[1], M[2], M[3]), t.bindBuffer(t.ARRAY_BUFFER, P), t.colorMask(R[0], R[1], R[2], R[3]), t.pixelStorei(t.UNPACK_FLIP_Y_WEBGL, N ? 1 : 0), $ ? t.enable(t.SCISSOR_TEST) : t.disable(t.SCISSOR_TEST), X ? t.enable(t.STENCIL_TEST) : t.disable(t.STENCIL_TEST), U ? t.enable(t.CULL_FACE) : t.disable(t.CULL_FACE), v ? t.enable(t.DEPTH_TEST) : t.disable(t.DEPTH_TEST), Q ? t.enable(t.BLEND) : t.disable(t.BLEND), t.blendFuncSeparate(oe, ee, Y, me), t.blendEquationSeparate(_, b), t.activeTexture(t.TEXTURE0), t.bindTexture(t.TEXTURE_2D, K), t.activeTexture(H), t.useProgram(O);
5142
+ L ? (lt.bind(Pn), t.bindBuffer(t.ARRAY_BUFFER, Kt), t.bufferData(t.ARRAY_BUFFER, z, t.DYNAMIC_DRAW)) : (t.bindBuffer(t.ARRAY_BUFFER, Kt), t.bufferData(t.ARRAY_BUFFER, z, t.DYNAMIC_DRAW), it >= 0 && (t.enableVertexAttribArray(it), t.vertexAttribPointer(it, 2, t.FLOAT, !1, 16, 0)), ot >= 0 && (t.enableVertexAttribArray(ot), t.vertexAttribPointer(ot, 2, t.FLOAT, !1, 16, 8))), t.drawArrays(t.TRIANGLES, 0, 6), L ? lt.bind(F) : (j && Mi(t, j), O && Mi(t, O)), t.bindFramebuffer(t.FRAMEBUFFER, H), t.viewport(B[0], B[1], B[2], B[3]), t.bindBuffer(t.ARRAY_BUFFER, C), t.colorMask(R[0], R[1], R[2], R[3]), t.pixelStorei(t.UNPACK_FLIP_Y_WEBGL, M ? 1 : 0), $ ? t.enable(t.SCISSOR_TEST) : t.disable(t.SCISSOR_TEST), X ? t.enable(t.STENCIL_TEST) : t.disable(t.STENCIL_TEST), U ? t.enable(t.CULL_FACE) : t.disable(t.CULL_FACE), v ? t.enable(t.DEPTH_TEST) : t.disable(t.DEPTH_TEST), J ? t.enable(t.BLEND) : t.disable(t.BLEND), t.blendFuncSeparate(oe, se, Y, de), t.blendEquationSeparate(_, b), t.activeTexture(t.TEXTURE0), t.bindTexture(t.TEXTURE_2D, K), t.activeTexture(q), t.useProgram(N);
5143
5143
  }
5144
5144
  class H1 {
5145
5145
  canvas = null;
@@ -5237,8 +5237,8 @@ class H1 {
5237
5237
  videoSystems = [];
5238
5238
  // Auto-capture for frame sources
5239
5239
  autoCaptureEnabled = !1;
5240
- autoCaptureFormat = { flipY: !0 };
5241
- // Default: flip for WebGL compatibility
5240
+ // Default: flip for WebGL compatibility; plate = pre-overlay frame (VJ/thumbnail role)
5241
+ autoCaptureFormat = { flipY: !0, frame: "plate" };
5242
5242
  // Audio raw data buffers (referenced by closures in viji.audio)
5243
5243
  audioFrequencyData = new Uint8Array(0);
5244
5244
  audioWaveformData = new Float32Array(0);
@@ -5744,7 +5744,7 @@ class H1 {
5744
5744
  this.handleVideoFrameDirect(e);
5745
5745
  break;
5746
5746
  case "enable-auto-capture":
5747
- this.autoCaptureEnabled = e.data.enabled, e.data.flipY !== void 0 ? (this.autoCaptureFormat.flipY = e.data.flipY, this.debugLog(`[AutoCapture] ${e.data.enabled ? "ENABLED" : "DISABLED"} with flipY=${e.data.flipY}`)) : this.debugLog(`[AutoCapture] ${e.data.enabled ? "ENABLED" : "DISABLED"}`);
5747
+ this.autoCaptureEnabled = e.data.enabled, e.data.flipY !== void 0 && (this.autoCaptureFormat.flipY = e.data.flipY), e.data.frame !== void 0 && (this.autoCaptureFormat.frame = e.data.frame === "display" ? "display" : "plate"), this.debugLog(`[AutoCapture] ${e.data.enabled ? "ENABLED" : "DISABLED"} (flipY=${this.autoCaptureFormat.flipY}, frame=${this.autoCaptureFormat.frame})`);
5748
5748
  break;
5749
5749
  case "enable-capability-reporting":
5750
5750
  this.capabilityMonitor.setEnabled(e.data.enabled);
@@ -6072,41 +6072,45 @@ class H1 {
6072
6072
  if (!this.canvas)
6073
6073
  throw new Error("Canvas not initialized");
6074
6074
  if ((e.data.format || "blob") === "bitmap") {
6075
- const j = this.canvas.transferToImageBitmap();
6076
- this.postMessage("capture-frame-result", { id: e.id, bitmap: j }, [j]);
6075
+ const J = this.canvas.transferToImageBitmap();
6076
+ this.postMessage("capture-frame-result", { id: e.id, bitmap: J }, [J]);
6077
6077
  return;
6078
6078
  }
6079
6079
  const s = e.data.type || "image/jpeg", i = this.canvas.width, o = this.canvas.height;
6080
6080
  let c = i, u = o;
6081
6081
  if (typeof e.data.resolution == "number") {
6082
- const j = e.data.resolution > 0 ? e.data.resolution : 1;
6083
- c = Math.max(1, Math.floor(i * j)), u = Math.max(1, Math.floor(o * j));
6082
+ const J = e.data.resolution > 0 ? e.data.resolution : 1;
6083
+ c = Math.max(1, Math.floor(i * J)), u = Math.max(1, Math.floor(o * J));
6084
6084
  } else e.data.resolution && typeof e.data.resolution == "object" && (c = Math.max(1, Math.floor(e.data.resolution.width)), u = Math.max(1, Math.floor(e.data.resolution.height)));
6085
6085
  const h = i / o, f = c / u;
6086
6086
  let m = 0, g = 0, x = i, T = o;
6087
6087
  Math.abs(h - f) > 1e-6 && (f > h ? (T = Math.floor(i / f), g = Math.floor((o - T) / 2)) : (x = Math.floor(o * f), m = Math.floor((i - x) / 2)));
6088
6088
  let L;
6089
- const O = this.getContextAndFinish();
6090
- if (O) {
6091
- const j = new Uint8Array(i * o * 4);
6092
- O.readPixels(0, 0, i, o, O.RGBA, O.UNSIGNED_BYTE, j);
6093
- const M = new Uint8ClampedArray(i * o * 4);
6094
- for (let ee = 0; ee < o; ee++) {
6095
- const Y = (o - 1 - ee) * i * 4, me = ee * i * 4;
6096
- M.set(j.subarray(Y, Y + i * 4), me);
6089
+ const N = this.getContextAndFinish();
6090
+ if (N) {
6091
+ const J = e.data.frame === "display", oe = J ? N.getParameter(N.FRAMEBUFFER_BINDING) : null;
6092
+ J && N.bindFramebuffer(N.FRAMEBUFFER, null);
6093
+ const se = new Uint8Array(i * o * 4);
6094
+ N.readPixels(0, 0, i, o, N.RGBA, N.UNSIGNED_BYTE, se), J && N.bindFramebuffer(N.FRAMEBUFFER, oe);
6095
+ const Y = new Uint8ClampedArray(i * o * 4);
6096
+ for (let b = 0; b < o; b++) {
6097
+ const v = (o - 1 - b) * i * 4, $ = b * i * 4;
6098
+ Y.set(se.subarray(v, v + i * 4), $);
6097
6099
  }
6098
6100
  L = new OffscreenCanvas(i, o);
6099
- const Q = L.getContext("2d");
6100
- if (!Q) throw new Error("Failed to create source context");
6101
- const oe = new ImageData(M, i, o);
6102
- Q.putImageData(oe, 0, 0), this.debugLog("Captured frame from WebGL using readPixels (post-render)");
6101
+ const de = L.getContext("2d");
6102
+ if (!de) throw new Error("Failed to create source context");
6103
+ const _ = new ImageData(Y, i, o);
6104
+ de.putImageData(_, 0, 0), this.debugLog("Captured frame from WebGL using readPixels (post-render)");
6103
6105
  } else
6104
6106
  L = this.canvas, this.debugLog("Captured frame from 2D canvas (post-render)");
6105
- const H = new OffscreenCanvas(c, u), K = H.getContext("2d");
6107
+ const q = new OffscreenCanvas(c, u), K = q.getContext("2d");
6106
6108
  if (!K) throw new Error("Failed to get 2D context");
6107
6109
  K.drawImage(L, m, g, x, T, 0, 0, c, u);
6108
- const P = await H.convertToBlob({ type: s });
6109
- this.postMessage("capture-frame-result", { id: e.id, blob: P });
6110
+ const C = e.data.quality, H = typeof C == "number" && Number.isFinite(C) ? Math.min(1, Math.max(0, C)) : void 0, B = await q.convertToBlob(
6111
+ H !== void 0 ? { type: s, quality: H } : { type: s }
6112
+ );
6113
+ this.postMessage("capture-frame-result", { id: e.id, blob: B });
6110
6114
  } catch (n) {
6111
6115
  this.postMessage("error", {
6112
6116
  id: e.id,
@@ -6121,6 +6125,41 @@ class H1 {
6121
6125
  startRenderLoop() {
6122
6126
  this.isRunning = !0, this.startTime = performance.now(), this.lastTime = this.startTime, this.renderFrame();
6123
6127
  }
6128
+ /**
6129
+ * Execute a batch of drained capture requests (fire-and-forget; each
6130
+ * capture snapshots its pixels synchronously before its first await).
6131
+ */
6132
+ runCaptures(e) {
6133
+ for (const n of e)
6134
+ this.executeCaptureFrame(n).catch((s) => {
6135
+ console.error("Capture execution error:", s);
6136
+ });
6137
+ }
6138
+ /**
6139
+ * Auto-capture for frame sources. Called from exactly one frame-tail slot
6140
+ * per frame, chosen by `autoCaptureFormat.frame` (plate = pre-overlay,
6141
+ * display = post-overlay).
6142
+ */
6143
+ runAutoCapture() {
6144
+ if (!(!this.autoCaptureEnabled || !this.canvas))
6145
+ try {
6146
+ if (this.gl ?? this.ctx) {
6147
+ const n = this.autoCaptureFormat.flipY ? { imageOrientation: "flipY" } : {};
6148
+ createImageBitmap(this.canvas, n).then((s) => {
6149
+ this.postMessage(
6150
+ "auto-capture-result",
6151
+ { bitmap: s, timestamp: performance.now() },
6152
+ [s]
6153
+ );
6154
+ }).catch((s) => {
6155
+ console.warn("[AutoCapture] ImageBitmap creation failed:", s);
6156
+ });
6157
+ } else
6158
+ this.debugMode && this.frameCount % 60 === 0 && this.debugLog("[AutoCapture] No context yet, skipping capture");
6159
+ } catch (e) {
6160
+ console.warn("[AutoCapture] Failed:", e);
6161
+ }
6162
+ }
6124
6163
  renderFrame() {
6125
6164
  if (!this.isRunning) return;
6126
6165
  const e = performance.now();
@@ -6135,65 +6174,44 @@ class H1 {
6135
6174
  let c = !1;
6136
6175
  try {
6137
6176
  if (this.shaderAdapter && this.rendererType === "shader") {
6138
- const u = this.parameterSystem.getAllParameterObjects();
6139
- this.shaderAdapter.render(this.viji, u);
6177
+ const m = this.parameterSystem.getAllParameterObjects();
6178
+ this.shaderAdapter.render(this.viji, m);
6140
6179
  } else if (this.p5Adapter && this.rendererType === "p5") {
6141
- const u = this.parameterSystem.getAllParameterObjects();
6142
- this.p5Adapter.tick(this.viji, u);
6180
+ const m = this.parameterSystem.getAllParameterObjects();
6181
+ this.p5Adapter.tick(this.viji, m);
6143
6182
  } else {
6144
- const u = self.renderFunction;
6145
- u && typeof u == "function" && u(this.viji);
6183
+ const m = self.renderFunction;
6184
+ m && typeof m == "function" && m(this.viji);
6146
6185
  }
6147
6186
  c = !0;
6148
- } catch (u) {
6149
- const h = u;
6150
- console.error("Render error:", h), this.sceneErrorReporter ? this.sceneErrorReporter.reportSceneError({
6151
- message: h.message,
6152
- ...h.stack !== void 0 && { stack: h.stack },
6187
+ } catch (m) {
6188
+ const g = m;
6189
+ console.error("Render error:", g), this.sceneErrorReporter ? this.sceneErrorReporter.reportSceneError({
6190
+ message: g.message,
6191
+ ...g.stack !== void 0 && { stack: g.stack },
6153
6192
  code: "RENDER_ERROR"
6154
6193
  }) : this.postMessage("error", {
6155
- message: h.message,
6194
+ message: g.message,
6156
6195
  code: "RENDER_ERROR",
6157
- stack: h.stack
6196
+ stack: g.stack
6158
6197
  });
6159
6198
  }
6160
6199
  if (c && this.sceneErrorReporter && this.sceneErrorReporter.markFirstFrameProduced(), this.benchmark) {
6161
- const u = performance.now() - o;
6162
- this.recordBenchmarkFrame(e, u);
6200
+ const m = performance.now() - o;
6201
+ this.recordBenchmarkFrame(e, m);
6163
6202
  } else if (this.capabilityMonitor.isEnabled()) {
6164
- const u = performance.now() - o;
6165
- this.recordCapabilityFrame(e, u, i);
6203
+ const m = performance.now() - o;
6204
+ this.recordCapabilityFrame(e, m, i);
6166
6205
  }
6167
- if (this.parameterSystem.resetButtonParameters(), this.pendingCaptures.length > 0) {
6168
- const u = [...this.pendingCaptures];
6169
- this.pendingCaptures = [];
6170
- for (const h of u)
6171
- this.executeCaptureFrame(h).catch((f) => {
6172
- console.error("Capture execution error:", f);
6173
- });
6174
- }
6175
- if (this.autoCaptureEnabled && this.canvas)
6176
- try {
6177
- if (this.gl ?? this.ctx) {
6178
- const h = this.autoCaptureFormat.flipY ? { imageOrientation: "flipY" } : {};
6179
- createImageBitmap(this.canvas, h).then((f) => {
6180
- this.postMessage(
6181
- "auto-capture-result",
6182
- { bitmap: f, timestamp: performance.now() },
6183
- [f]
6184
- );
6185
- }).catch((f) => {
6186
- console.warn("[AutoCapture] ImageBitmap creation failed:", f);
6187
- });
6188
- } else
6189
- this.debugMode && this.frameCount % 60 === 0 && this.debugLog("[AutoCapture] No context yet, skipping capture");
6190
- } catch (u) {
6191
- console.warn("[AutoCapture] Failed:", u);
6192
- }
6193
- if (!this._isHeadless && this.canvas) {
6194
- const u = C1("b", 0);
6195
- O1(this.canvas, this.ctx, this.gl, u, this._displayScale);
6206
+ this.parameterSystem.resetButtonParameters();
6207
+ const u = this.pendingCaptures;
6208
+ this.pendingCaptures = [];
6209
+ const h = u.filter((m) => m.data.frame === "display"), f = u.filter((m) => m.data.frame !== "display");
6210
+ if (this.runCaptures(f), this.autoCaptureFormat.frame !== "display" && this.runAutoCapture(), !this._isHeadless && this.canvas) {
6211
+ const m = C1("b", 0);
6212
+ O1(this.canvas, this.ctx, this.gl, m, this._displayScale);
6196
6213
  }
6214
+ this.runCaptures(h), this.autoCaptureFormat.frame === "display" && this.runAutoCapture();
6197
6215
  }
6198
6216
  this.benchmark || this.reportPerformanceStats(e), this.interactionSystem.frameStart(), this.resetAudioFrameEvents(), this.scheduleNextFrame();
6199
6217
  }
@@ -6829,29 +6847,29 @@ var d;
6829
6847
  t[t._exports = T] = "_exports";
6830
6848
  const L = T + 1;
6831
6849
  t[t._from = L] = "_from";
6832
- const O = L + 1;
6833
- t[t._get = O] = "_get";
6834
- const H = O + 1;
6835
- t[t._global = H] = "_global";
6836
- const K = H + 1;
6850
+ const N = L + 1;
6851
+ t[t._get = N] = "_get";
6852
+ const q = N + 1;
6853
+ t[t._global = q] = "_global";
6854
+ const K = q + 1;
6837
6855
  t[t._implements = K] = "_implements";
6838
- const P = K + 1;
6839
- t[t._infer = P] = "_infer";
6840
- const j = P + 1;
6841
- t[t._interface = j] = "_interface";
6842
- const M = j + 1;
6843
- t[t._is = M] = "_is";
6844
- const Q = M + 1;
6845
- t[t._keyof = Q] = "_keyof";
6846
- const oe = Q + 1;
6856
+ const C = K + 1;
6857
+ t[t._infer = C] = "_infer";
6858
+ const H = C + 1;
6859
+ t[t._interface = H] = "_interface";
6860
+ const B = H + 1;
6861
+ t[t._is = B] = "_is";
6862
+ const J = B + 1;
6863
+ t[t._keyof = J] = "_keyof";
6864
+ const oe = J + 1;
6847
6865
  t[t._mixins = oe] = "_mixins";
6848
- const ee = oe + 1;
6849
- t[t._module = ee] = "_module";
6850
- const Y = ee + 1;
6866
+ const se = oe + 1;
6867
+ t[t._module = se] = "_module";
6868
+ const Y = se + 1;
6851
6869
  t[t._namespace = Y] = "_namespace";
6852
- const me = Y + 1;
6853
- t[t._of = me] = "_of";
6854
- const _ = me + 1;
6870
+ const de = Y + 1;
6871
+ t[t._of = de] = "_of";
6872
+ const _ = de + 1;
6855
6873
  t[t._opaque = _] = "_opaque";
6856
6874
  const b = _ + 1;
6857
6875
  t[t._out = b] = "_out";
@@ -6865,15 +6883,15 @@ var d;
6865
6883
  t[t._proto = U] = "_proto";
6866
6884
  const R = U + 1;
6867
6885
  t[t._public = R] = "_public";
6868
- const N = R + 1;
6869
- t[t._readonly = N] = "_readonly";
6870
- const F = N + 1;
6886
+ const M = R + 1;
6887
+ t[t._readonly = M] = "_readonly";
6888
+ const F = M + 1;
6871
6889
  t[t._require = F] = "_require";
6872
- const B = F + 1;
6873
- t[t._satisfies = B] = "_satisfies";
6874
- const V = B + 1;
6875
- t[t._set = V] = "_set";
6876
- const z = V + 1;
6890
+ const O = F + 1;
6891
+ t[t._satisfies = O] = "_satisfies";
6892
+ const j = O + 1;
6893
+ t[t._set = j] = "_set";
6894
+ const z = j + 1;
6877
6895
  t[t._static = z] = "_static";
6878
6896
  const ue = z + 1;
6879
6897
  t[t._symbol = ue] = "_symbol";
@@ -6913,28 +6931,28 @@ var r;
6913
6931
  t[t.name = T] = "name";
6914
6932
  const L = 6144;
6915
6933
  t[t.eof = L] = "eof";
6916
- const O = 7680;
6917
- t[t.bracketL = O] = "bracketL";
6918
- const H = 8192;
6919
- t[t.bracketR = H] = "bracketR";
6934
+ const N = 7680;
6935
+ t[t.bracketL = N] = "bracketL";
6936
+ const q = 8192;
6937
+ t[t.bracketR = q] = "bracketR";
6920
6938
  const K = 9728;
6921
6939
  t[t.braceL = K] = "braceL";
6922
- const P = 10752;
6923
- t[t.braceBarL = P] = "braceBarL";
6924
- const j = 11264;
6925
- t[t.braceR = j] = "braceR";
6926
- const M = 12288;
6927
- t[t.braceBarR = M] = "braceBarR";
6928
- const Q = 13824;
6929
- t[t.parenL = Q] = "parenL";
6940
+ const C = 10752;
6941
+ t[t.braceBarL = C] = "braceBarL";
6942
+ const H = 11264;
6943
+ t[t.braceR = H] = "braceR";
6944
+ const B = 12288;
6945
+ t[t.braceBarR = B] = "braceBarR";
6946
+ const J = 13824;
6947
+ t[t.parenL = J] = "parenL";
6930
6948
  const oe = 14336;
6931
6949
  t[t.parenR = oe] = "parenR";
6932
- const ee = 15360;
6933
- t[t.comma = ee] = "comma";
6950
+ const se = 15360;
6951
+ t[t.comma = se] = "comma";
6934
6952
  const Y = 16384;
6935
6953
  t[t.semi = Y] = "semi";
6936
- const me = 17408;
6937
- t[t.colon = me] = "colon";
6954
+ const de = 17408;
6955
+ t[t.colon = de] = "colon";
6938
6956
  const _ = 18432;
6939
6957
  t[t.doubleColon = _] = "doubleColon";
6940
6958
  const b = 19456;
@@ -6949,14 +6967,14 @@ var r;
6949
6967
  t[t.template = U] = "template";
6950
6968
  const R = 24576;
6951
6969
  t[t.ellipsis = R] = "ellipsis";
6952
- const N = 25600;
6953
- t[t.backQuote = N] = "backQuote";
6970
+ const M = 25600;
6971
+ t[t.backQuote = M] = "backQuote";
6954
6972
  const F = 27136;
6955
6973
  t[t.dollarBraceL = F] = "dollarBraceL";
6956
- const B = 27648;
6957
- t[t.at = B] = "at";
6958
- const V = 29184;
6959
- t[t.hash = V] = "hash";
6974
+ const O = 27648;
6975
+ t[t.at = O] = "at";
6976
+ const j = 29184;
6977
+ t[t.hash = j] = "hash";
6960
6978
  const z = 29728;
6961
6979
  t[t.eq = z] = "eq";
6962
6980
  const ue = 30752;
@@ -6983,8 +7001,8 @@ var r;
6983
7001
  t[t.bitwiseXOR = ce] = "bitwiseXOR";
6984
7002
  const ge = 41990;
6985
7003
  t[t.bitwiseAND = ge] = "bitwiseAND";
6986
- const de = 43015;
6987
- t[t.equality = de] = "equality";
7004
+ const me = 43015;
7005
+ t[t.equality = me] = "equality";
6988
7006
  const Se = 44040;
6989
7007
  t[t.lessThan = Se] = "lessThan";
6990
7008
  const Le = 45064;
@@ -7476,28 +7494,28 @@ var p;
7476
7494
  t[t.apostrophe = T] = "apostrophe";
7477
7495
  const L = 40;
7478
7496
  t[t.leftParenthesis = L] = "leftParenthesis";
7479
- const O = 41;
7480
- t[t.rightParenthesis = O] = "rightParenthesis";
7481
- const H = 42;
7482
- t[t.asterisk = H] = "asterisk";
7497
+ const N = 41;
7498
+ t[t.rightParenthesis = N] = "rightParenthesis";
7499
+ const q = 42;
7500
+ t[t.asterisk = q] = "asterisk";
7483
7501
  const K = 43;
7484
7502
  t[t.plusSign = K] = "plusSign";
7485
- const P = 44;
7486
- t[t.comma = P] = "comma";
7487
- const j = 45;
7488
- t[t.dash = j] = "dash";
7489
- const M = 46;
7490
- t[t.dot = M] = "dot";
7491
- const Q = 47;
7492
- t[t.slash = Q] = "slash";
7503
+ const C = 44;
7504
+ t[t.comma = C] = "comma";
7505
+ const H = 45;
7506
+ t[t.dash = H] = "dash";
7507
+ const B = 46;
7508
+ t[t.dot = B] = "dot";
7509
+ const J = 47;
7510
+ t[t.slash = J] = "slash";
7493
7511
  const oe = 48;
7494
7512
  t[t.digit0 = oe] = "digit0";
7495
- const ee = 49;
7496
- t[t.digit1 = ee] = "digit1";
7513
+ const se = 49;
7514
+ t[t.digit1 = se] = "digit1";
7497
7515
  const Y = 50;
7498
7516
  t[t.digit2 = Y] = "digit2";
7499
- const me = 51;
7500
- t[t.digit3 = me] = "digit3";
7517
+ const de = 51;
7518
+ t[t.digit3 = de] = "digit3";
7501
7519
  const _ = 52;
7502
7520
  t[t.digit4 = _] = "digit4";
7503
7521
  const b = 53;
@@ -7512,14 +7530,14 @@ var p;
7512
7530
  t[t.digit9 = U] = "digit9";
7513
7531
  const R = 58;
7514
7532
  t[t.colon = R] = "colon";
7515
- const N = 59;
7516
- t[t.semicolon = N] = "semicolon";
7533
+ const M = 59;
7534
+ t[t.semicolon = M] = "semicolon";
7517
7535
  const F = 60;
7518
7536
  t[t.lessThan = F] = "lessThan";
7519
- const B = 61;
7520
- t[t.equalsTo = B] = "equalsTo";
7521
- const V = 62;
7522
- t[t.greaterThan = V] = "greaterThan";
7537
+ const O = 61;
7538
+ t[t.equalsTo = O] = "equalsTo";
7539
+ const j = 62;
7540
+ t[t.greaterThan = j] = "greaterThan";
7523
7541
  const z = 63;
7524
7542
  t[t.questionMark = z] = "questionMark";
7525
7543
  const ue = 64;
@@ -7546,8 +7564,8 @@ var p;
7546
7564
  t[t.uppercaseJ = ce] = "uppercaseJ";
7547
7565
  const ge = 75;
7548
7566
  t[t.uppercaseK = ge] = "uppercaseK";
7549
- const de = 76;
7550
- t[t.uppercaseL = de] = "uppercaseL";
7567
+ const me = 76;
7568
+ t[t.uppercaseL = me] = "uppercaseL";
7551
7569
  const Se = 77;
7552
7570
  t[t.uppercaseM = Se] = "uppercaseM";
7553
7571
  const Le = 78;
@@ -7657,7 +7675,7 @@ var p;
7657
7675
  const qs = 8233;
7658
7676
  t[t.paragraphSeparator = qs] = "paragraphSeparator";
7659
7677
  })(p || (p = {}));
7660
- let Hn, le, fe, a, C, Wo;
7678
+ let Hn, le, fe, a, P, Wo;
7661
7679
  function en() {
7662
7680
  return Wo++;
7663
7681
  }
@@ -7676,13 +7694,13 @@ class ru {
7676
7694
  function iu(t) {
7677
7695
  let e = 1, n = 1;
7678
7696
  for (let s = 0; s < t; s++)
7679
- C.charCodeAt(s) === p.lineFeed ? (e++, n = 1) : n++;
7697
+ P.charCodeAt(s) === p.lineFeed ? (e++, n = 1) : n++;
7680
7698
  return new ru(e, n);
7681
7699
  }
7682
7700
  function ou(t, e, n, s) {
7683
- C = t, a = new Pe(), Wo = 1, Hn = e, le = n, fe = s;
7701
+ P = t, a = new Pe(), Wo = 1, Hn = e, le = n, fe = s;
7684
7702
  }
7685
- function q(t) {
7703
+ function V(t) {
7686
7704
  return a.contextualKeyword === t;
7687
7705
  }
7688
7706
  function Nr(t) {
@@ -7693,7 +7711,7 @@ function xe(t) {
7693
7711
  return a.contextualKeyword === t && y(r.name);
7694
7712
  }
7695
7713
  function ve(t) {
7696
- xe(t) || ne();
7714
+ xe(t) || te();
7697
7715
  }
7698
7716
  function Be() {
7699
7717
  return l(r.eof) || l(r.braceR) || De();
@@ -7701,7 +7719,7 @@ function Be() {
7701
7719
  function De() {
7702
7720
  const t = a.tokens[a.tokens.length - 1], e = t ? t.end : 0;
7703
7721
  for (let n = e; n < a.start; n++) {
7704
- const s = C.charCodeAt(n);
7722
+ const s = P.charCodeAt(n);
7705
7723
  if (s === p.lineFeed || s === p.carriageReturn || s === 8232 || s === 8233)
7706
7724
  return !0;
7707
7725
  }
@@ -7710,7 +7728,7 @@ function De() {
7710
7728
  function Go() {
7711
7729
  const t = Mr();
7712
7730
  for (let e = a.end; e < t; e++) {
7713
- const n = C.charCodeAt(e);
7731
+ const n = P.charCodeAt(e);
7714
7732
  if (n === p.lineFeed || n === p.carriageReturn || n === 8232 || n === 8233)
7715
7733
  return !0;
7716
7734
  }
@@ -7720,16 +7738,16 @@ function Qe() {
7720
7738
  return y(r.semi) || Be();
7721
7739
  }
7722
7740
  function be() {
7723
- Qe() || ne('Unexpected token, expected ";"');
7741
+ Qe() || te('Unexpected token, expected ";"');
7724
7742
  }
7725
7743
  function w(t) {
7726
- y(t) || ne(`Unexpected token, expected "${tu(t)}"`);
7744
+ y(t) || te(`Unexpected token, expected "${tu(t)}"`);
7727
7745
  }
7728
- function ne(t = "Unexpected token", e = a.start) {
7746
+ function te(t = "Unexpected token", e = a.start) {
7729
7747
  if (a.error)
7730
7748
  return;
7731
7749
  const n = new SyntaxError(t);
7732
- n.pos = e, a.error = n, a.pos = C.length, te(r.eof);
7750
+ n.pos = e, a.error = n, a.pos = P.length, ee(r.eof);
7733
7751
  }
7734
7752
  const Yo = [
7735
7753
  9,
@@ -17093,7 +17111,7 @@ const ji = new Int32Array([
17093
17111
  ]);
17094
17112
  function cu() {
17095
17113
  let t = 0, e = 0, n = a.pos;
17096
- for (; n < C.length && (e = C.charCodeAt(n), !(e < p.lowercaseA || e > p.lowercaseZ)); ) {
17114
+ for (; n < P.length && (e = P.charCodeAt(n), !(e < p.lowercaseA || e > p.lowercaseZ)); ) {
17097
17115
  const i = ji[t + (e - p.lowercaseA) + 1];
17098
17116
  if (i === -1)
17099
17117
  break;
@@ -17101,25 +17119,25 @@ function cu() {
17101
17119
  }
17102
17120
  const s = ji[t];
17103
17121
  if (s > -1 && !Ge[e]) {
17104
- a.pos = n, s & 1 ? te(s >>> 1) : te(r.name, s >>> 1);
17122
+ a.pos = n, s & 1 ? ee(s >>> 1) : ee(r.name, s >>> 1);
17105
17123
  return;
17106
17124
  }
17107
- for (; n < C.length; ) {
17108
- const i = C.charCodeAt(n);
17125
+ for (; n < P.length; ) {
17126
+ const i = P.charCodeAt(n);
17109
17127
  if (Ge[i])
17110
17128
  n++;
17111
17129
  else if (i === p.backslash) {
17112
- if (n += 2, C.charCodeAt(n) === p.leftCurlyBrace) {
17113
- for (; n < C.length && C.charCodeAt(n) !== p.rightCurlyBrace; )
17130
+ if (n += 2, P.charCodeAt(n) === p.leftCurlyBrace) {
17131
+ for (; n < P.length && P.charCodeAt(n) !== p.rightCurlyBrace; )
17114
17132
  n++;
17115
17133
  n++;
17116
17134
  }
17117
- } else if (i === p.atSign && C.charCodeAt(n + 1) === p.atSign)
17135
+ } else if (i === p.atSign && P.charCodeAt(n + 1) === p.atSign)
17118
17136
  n += 2;
17119
17137
  else
17120
17138
  break;
17121
17139
  }
17122
- a.pos = n, te(r.name);
17140
+ a.pos = n, ee(r.name);
17123
17141
  }
17124
17142
  var G;
17125
17143
  (function(t) {
@@ -17213,7 +17231,7 @@ function re(t) {
17213
17231
  const e = a.isType;
17214
17232
  return a.isType = !0, e;
17215
17233
  }
17216
- function se(t) {
17234
+ function ne(t) {
17217
17235
  a.isType = t;
17218
17236
  }
17219
17237
  function y(t) {
@@ -17248,50 +17266,50 @@ function Mr() {
17248
17266
  }
17249
17267
  function Qo(t) {
17250
17268
  $i.lastIndex = t;
17251
- const e = $i.exec(C);
17269
+ const e = $i.exec(P);
17252
17270
  return t + e[0].length;
17253
17271
  }
17254
17272
  function ea() {
17255
- return C.charCodeAt(Mr());
17273
+ return P.charCodeAt(Mr());
17256
17274
  }
17257
17275
  function ta() {
17258
- if (sa(), a.start = a.pos, a.pos >= C.length) {
17276
+ if (sa(), a.start = a.pos, a.pos >= P.length) {
17259
17277
  const t = a.tokens;
17260
- t.length >= 2 && t[t.length - 1].start >= C.length && t[t.length - 2].start >= C.length && ne("Unexpectedly reached the end of input."), te(r.eof);
17278
+ t.length >= 2 && t[t.length - 1].start >= P.length && t[t.length - 2].start >= P.length && te("Unexpectedly reached the end of input."), ee(r.eof);
17261
17279
  return;
17262
17280
  }
17263
- pu(C.charCodeAt(a.pos));
17281
+ pu(P.charCodeAt(a.pos));
17264
17282
  }
17265
17283
  function pu(t) {
17266
- un[t] || t === p.backslash || t === p.atSign && C.charCodeAt(a.pos + 1) === p.atSign ? cu() : oa(t);
17284
+ un[t] || t === p.backslash || t === p.atSign && P.charCodeAt(a.pos + 1) === p.atSign ? cu() : oa(t);
17267
17285
  }
17268
17286
  function gu() {
17269
- for (; C.charCodeAt(a.pos) !== p.asterisk || C.charCodeAt(a.pos + 1) !== p.slash; )
17270
- if (a.pos++, a.pos > C.length) {
17271
- ne("Unterminated comment", a.pos - 2);
17287
+ for (; P.charCodeAt(a.pos) !== p.asterisk || P.charCodeAt(a.pos + 1) !== p.slash; )
17288
+ if (a.pos++, a.pos > P.length) {
17289
+ te("Unterminated comment", a.pos - 2);
17272
17290
  return;
17273
17291
  }
17274
17292
  a.pos += 2;
17275
17293
  }
17276
17294
  function na(t) {
17277
- let e = C.charCodeAt(a.pos += t);
17278
- if (a.pos < C.length)
17279
- for (; e !== p.lineFeed && e !== p.carriageReturn && e !== p.lineSeparator && e !== p.paragraphSeparator && ++a.pos < C.length; )
17280
- e = C.charCodeAt(a.pos);
17295
+ let e = P.charCodeAt(a.pos += t);
17296
+ if (a.pos < P.length)
17297
+ for (; e !== p.lineFeed && e !== p.carriageReturn && e !== p.lineSeparator && e !== p.paragraphSeparator && ++a.pos < P.length; )
17298
+ e = P.charCodeAt(a.pos);
17281
17299
  }
17282
17300
  function sa() {
17283
- for (; a.pos < C.length; ) {
17284
- const t = C.charCodeAt(a.pos);
17301
+ for (; a.pos < P.length; ) {
17302
+ const t = P.charCodeAt(a.pos);
17285
17303
  switch (t) {
17286
17304
  case p.carriageReturn:
17287
- C.charCodeAt(a.pos + 1) === p.lineFeed && ++a.pos;
17305
+ P.charCodeAt(a.pos + 1) === p.lineFeed && ++a.pos;
17288
17306
  case p.lineFeed:
17289
17307
  case p.lineSeparator:
17290
17308
  case p.paragraphSeparator:
17291
17309
  ++a.pos;
17292
17310
  break;
17293
17311
  case p.slash:
17294
- switch (C.charCodeAt(a.pos + 1)) {
17312
+ switch (P.charCodeAt(a.pos + 1)) {
17295
17313
  case p.asterisk:
17296
17314
  a.pos += 2, gu();
17297
17315
  break;
@@ -17310,28 +17328,28 @@ function sa() {
17310
17328
  }
17311
17329
  }
17312
17330
  }
17313
- function te(t, e = d.NONE) {
17331
+ function ee(t, e = d.NONE) {
17314
17332
  a.end = a.pos, a.type = t, a.contextualKeyword = e;
17315
17333
  }
17316
17334
  function bu() {
17317
- const t = C.charCodeAt(a.pos + 1);
17335
+ const t = P.charCodeAt(a.pos + 1);
17318
17336
  if (t >= p.digit0 && t <= p.digit9) {
17319
17337
  aa(!0);
17320
17338
  return;
17321
17339
  }
17322
- t === p.dot && C.charCodeAt(a.pos + 2) === p.dot ? (a.pos += 3, te(r.ellipsis)) : (++a.pos, te(r.dot));
17340
+ t === p.dot && P.charCodeAt(a.pos + 2) === p.dot ? (a.pos += 3, ee(r.ellipsis)) : (++a.pos, ee(r.dot));
17323
17341
  }
17324
17342
  function _u() {
17325
- C.charCodeAt(a.pos + 1) === p.equalsTo ? he(r.assign, 2) : he(r.slash, 1);
17343
+ P.charCodeAt(a.pos + 1) === p.equalsTo ? he(r.assign, 2) : he(r.slash, 1);
17326
17344
  }
17327
17345
  function yu(t) {
17328
- let e = t === p.asterisk ? r.star : r.modulo, n = 1, s = C.charCodeAt(a.pos + 1);
17329
- t === p.asterisk && s === p.asterisk && (n++, s = C.charCodeAt(a.pos + 2), e = r.exponent), s === p.equalsTo && C.charCodeAt(a.pos + 2) !== p.greaterThan && (n++, e = r.assign), he(e, n);
17346
+ let e = t === p.asterisk ? r.star : r.modulo, n = 1, s = P.charCodeAt(a.pos + 1);
17347
+ t === p.asterisk && s === p.asterisk && (n++, s = P.charCodeAt(a.pos + 2), e = r.exponent), s === p.equalsTo && P.charCodeAt(a.pos + 2) !== p.greaterThan && (n++, e = r.assign), he(e, n);
17330
17348
  }
17331
17349
  function ku(t) {
17332
- const e = C.charCodeAt(a.pos + 1);
17350
+ const e = P.charCodeAt(a.pos + 1);
17333
17351
  if (e === t) {
17334
- C.charCodeAt(a.pos + 2) === p.equalsTo ? he(r.assign, 3) : he(t === p.verticalBar ? r.logicalOR : r.logicalAND, 2);
17352
+ P.charCodeAt(a.pos + 2) === p.equalsTo ? he(r.assign, 3) : he(t === p.verticalBar ? r.logicalOR : r.logicalAND, 2);
17335
17353
  return;
17336
17354
  }
17337
17355
  if (t === p.verticalBar) {
@@ -17350,10 +17368,10 @@ function ku(t) {
17350
17368
  he(t === p.verticalBar ? r.bitwiseOR : r.bitwiseAND, 1);
17351
17369
  }
17352
17370
  function vu() {
17353
- C.charCodeAt(a.pos + 1) === p.equalsTo ? he(r.assign, 2) : he(r.bitwiseXOR, 1);
17371
+ P.charCodeAt(a.pos + 1) === p.equalsTo ? he(r.assign, 2) : he(r.bitwiseXOR, 1);
17354
17372
  }
17355
17373
  function wu(t) {
17356
- const e = C.charCodeAt(a.pos + 1);
17374
+ const e = P.charCodeAt(a.pos + 1);
17357
17375
  if (e === t) {
17358
17376
  he(r.preIncDec, 2);
17359
17377
  return;
@@ -17361,9 +17379,9 @@ function wu(t) {
17361
17379
  e === p.equalsTo ? he(r.assign, 2) : t === p.plusSign ? he(r.plus, 1) : he(r.minus, 1);
17362
17380
  }
17363
17381
  function xu() {
17364
- const t = C.charCodeAt(a.pos + 1);
17382
+ const t = P.charCodeAt(a.pos + 1);
17365
17383
  if (t === p.lessThan) {
17366
- if (C.charCodeAt(a.pos + 2) === p.equalsTo) {
17384
+ if (P.charCodeAt(a.pos + 2) === p.equalsTo) {
17367
17385
  he(r.assign, 3);
17368
17386
  return;
17369
17387
  }
@@ -17377,10 +17395,10 @@ function ra() {
17377
17395
  he(r.greaterThan, 1);
17378
17396
  return;
17379
17397
  }
17380
- const t = C.charCodeAt(a.pos + 1);
17398
+ const t = P.charCodeAt(a.pos + 1);
17381
17399
  if (t === p.greaterThan) {
17382
- const e = C.charCodeAt(a.pos + 2) === p.greaterThan ? 3 : 2;
17383
- if (C.charCodeAt(a.pos + e) === p.equalsTo) {
17400
+ const e = P.charCodeAt(a.pos + 2) === p.greaterThan ? 3 : 2;
17401
+ if (P.charCodeAt(a.pos + e) === p.equalsTo) {
17384
17402
  he(r.assign, e + 1);
17385
17403
  return;
17386
17404
  }
@@ -17393,69 +17411,69 @@ function ia() {
17393
17411
  a.type === r.greaterThan && (a.pos -= 1, ra());
17394
17412
  }
17395
17413
  function Eu(t) {
17396
- const e = C.charCodeAt(a.pos + 1);
17414
+ const e = P.charCodeAt(a.pos + 1);
17397
17415
  if (e === p.equalsTo) {
17398
- he(r.equality, C.charCodeAt(a.pos + 2) === p.equalsTo ? 3 : 2);
17416
+ he(r.equality, P.charCodeAt(a.pos + 2) === p.equalsTo ? 3 : 2);
17399
17417
  return;
17400
17418
  }
17401
17419
  if (t === p.equalsTo && e === p.greaterThan) {
17402
- a.pos += 2, te(r.arrow);
17420
+ a.pos += 2, ee(r.arrow);
17403
17421
  return;
17404
17422
  }
17405
17423
  he(t === p.equalsTo ? r.eq : r.bang, 1);
17406
17424
  }
17407
17425
  function Su() {
17408
- const t = C.charCodeAt(a.pos + 1), e = C.charCodeAt(a.pos + 2);
17426
+ const t = P.charCodeAt(a.pos + 1), e = P.charCodeAt(a.pos + 2);
17409
17427
  t === p.questionMark && // In Flow (but not TypeScript), ??string is a valid type that should be
17410
17428
  // tokenized as two individual ? tokens.
17411
- !(fe && a.isType) ? e === p.equalsTo ? he(r.assign, 3) : he(r.nullishCoalescing, 2) : t === p.dot && !(e >= p.digit0 && e <= p.digit9) ? (a.pos += 2, te(r.questionDot)) : (++a.pos, te(r.question));
17429
+ !(fe && a.isType) ? e === p.equalsTo ? he(r.assign, 3) : he(r.nullishCoalescing, 2) : t === p.dot && !(e >= p.digit0 && e <= p.digit9) ? (a.pos += 2, ee(r.questionDot)) : (++a.pos, ee(r.question));
17412
17430
  }
17413
17431
  function oa(t) {
17414
17432
  switch (t) {
17415
17433
  case p.numberSign:
17416
- ++a.pos, te(r.hash);
17434
+ ++a.pos, ee(r.hash);
17417
17435
  return;
17418
17436
  case p.dot:
17419
17437
  bu();
17420
17438
  return;
17421
17439
  case p.leftParenthesis:
17422
- ++a.pos, te(r.parenL);
17440
+ ++a.pos, ee(r.parenL);
17423
17441
  return;
17424
17442
  case p.rightParenthesis:
17425
- ++a.pos, te(r.parenR);
17443
+ ++a.pos, ee(r.parenR);
17426
17444
  return;
17427
17445
  case p.semicolon:
17428
- ++a.pos, te(r.semi);
17446
+ ++a.pos, ee(r.semi);
17429
17447
  return;
17430
17448
  case p.comma:
17431
- ++a.pos, te(r.comma);
17449
+ ++a.pos, ee(r.comma);
17432
17450
  return;
17433
17451
  case p.leftSquareBracket:
17434
- ++a.pos, te(r.bracketL);
17452
+ ++a.pos, ee(r.bracketL);
17435
17453
  return;
17436
17454
  case p.rightSquareBracket:
17437
- ++a.pos, te(r.bracketR);
17455
+ ++a.pos, ee(r.bracketR);
17438
17456
  return;
17439
17457
  case p.leftCurlyBrace:
17440
- fe && C.charCodeAt(a.pos + 1) === p.verticalBar ? he(r.braceBarL, 2) : (++a.pos, te(r.braceL));
17458
+ fe && P.charCodeAt(a.pos + 1) === p.verticalBar ? he(r.braceBarL, 2) : (++a.pos, ee(r.braceL));
17441
17459
  return;
17442
17460
  case p.rightCurlyBrace:
17443
- ++a.pos, te(r.braceR);
17461
+ ++a.pos, ee(r.braceR);
17444
17462
  return;
17445
17463
  case p.colon:
17446
- C.charCodeAt(a.pos + 1) === p.colon ? he(r.doubleColon, 2) : (++a.pos, te(r.colon));
17464
+ P.charCodeAt(a.pos + 1) === p.colon ? he(r.doubleColon, 2) : (++a.pos, ee(r.colon));
17447
17465
  return;
17448
17466
  case p.questionMark:
17449
17467
  Su();
17450
17468
  return;
17451
17469
  case p.atSign:
17452
- ++a.pos, te(r.at);
17470
+ ++a.pos, ee(r.at);
17453
17471
  return;
17454
17472
  case p.graveAccent:
17455
- ++a.pos, te(r.backQuote);
17473
+ ++a.pos, ee(r.backQuote);
17456
17474
  return;
17457
17475
  case p.digit0: {
17458
- const e = C.charCodeAt(a.pos + 1);
17476
+ const e = P.charCodeAt(a.pos + 1);
17459
17477
  if (e === p.lowercaseX || e === p.uppercaseX || e === p.lowercaseO || e === p.uppercaseO || e === p.lowercaseB || e === p.uppercaseB) {
17460
17478
  Iu();
17461
17479
  return;
@@ -17508,20 +17526,20 @@ function oa(t) {
17508
17526
  he(r.tilde, 1);
17509
17527
  return;
17510
17528
  }
17511
- ne(`Unexpected character '${String.fromCharCode(t)}'`, a.pos);
17529
+ te(`Unexpected character '${String.fromCharCode(t)}'`, a.pos);
17512
17530
  }
17513
17531
  function he(t, e) {
17514
- a.pos += e, te(t);
17532
+ a.pos += e, ee(t);
17515
17533
  }
17516
17534
  function Tu() {
17517
17535
  const t = a.pos;
17518
17536
  let e = !1, n = !1;
17519
17537
  for (; ; ) {
17520
- if (a.pos >= C.length) {
17521
- ne("Unterminated regular expression", t);
17538
+ if (a.pos >= P.length) {
17539
+ te("Unterminated regular expression", t);
17522
17540
  return;
17523
17541
  }
17524
- const s = C.charCodeAt(a.pos);
17542
+ const s = P.charCodeAt(a.pos);
17525
17543
  if (e)
17526
17544
  e = !1;
17527
17545
  else {
@@ -17535,11 +17553,11 @@ function Tu() {
17535
17553
  }
17536
17554
  ++a.pos;
17537
17555
  }
17538
- ++a.pos, Cu(), te(r.regexp);
17556
+ ++a.pos, Cu(), ee(r.regexp);
17539
17557
  }
17540
17558
  function tr() {
17541
17559
  for (; ; ) {
17542
- const t = C.charCodeAt(a.pos);
17560
+ const t = P.charCodeAt(a.pos);
17543
17561
  if (t >= p.digit0 && t <= p.digit9 || t === p.underscore)
17544
17562
  a.pos++;
17545
17563
  else
@@ -17548,73 +17566,73 @@ function tr() {
17548
17566
  }
17549
17567
  function Iu() {
17550
17568
  for (a.pos += 2; ; ) {
17551
- const e = C.charCodeAt(a.pos);
17569
+ const e = P.charCodeAt(a.pos);
17552
17570
  if (e >= p.digit0 && e <= p.digit9 || e >= p.lowercaseA && e <= p.lowercaseF || e >= p.uppercaseA && e <= p.uppercaseF || e === p.underscore)
17553
17571
  a.pos++;
17554
17572
  else
17555
17573
  break;
17556
17574
  }
17557
- C.charCodeAt(a.pos) === p.lowercaseN ? (++a.pos, te(r.bigint)) : te(r.num);
17575
+ P.charCodeAt(a.pos) === p.lowercaseN ? (++a.pos, ee(r.bigint)) : ee(r.num);
17558
17576
  }
17559
17577
  function aa(t) {
17560
17578
  let e = !1, n = !1;
17561
17579
  t || tr();
17562
- let s = C.charCodeAt(a.pos);
17563
- if (s === p.dot && (++a.pos, tr(), s = C.charCodeAt(a.pos)), (s === p.uppercaseE || s === p.lowercaseE) && (s = C.charCodeAt(++a.pos), (s === p.plusSign || s === p.dash) && ++a.pos, tr(), s = C.charCodeAt(a.pos)), s === p.lowercaseN ? (++a.pos, e = !0) : s === p.lowercaseM && (++a.pos, n = !0), e) {
17564
- te(r.bigint);
17580
+ let s = P.charCodeAt(a.pos);
17581
+ if (s === p.dot && (++a.pos, tr(), s = P.charCodeAt(a.pos)), (s === p.uppercaseE || s === p.lowercaseE) && (s = P.charCodeAt(++a.pos), (s === p.plusSign || s === p.dash) && ++a.pos, tr(), s = P.charCodeAt(a.pos)), s === p.lowercaseN ? (++a.pos, e = !0) : s === p.lowercaseM && (++a.pos, n = !0), e) {
17582
+ ee(r.bigint);
17565
17583
  return;
17566
17584
  }
17567
17585
  if (n) {
17568
- te(r.decimal);
17586
+ ee(r.decimal);
17569
17587
  return;
17570
17588
  }
17571
- te(r.num);
17589
+ ee(r.num);
17572
17590
  }
17573
17591
  function Au(t) {
17574
17592
  for (a.pos++; ; ) {
17575
- if (a.pos >= C.length) {
17576
- ne("Unterminated string constant");
17593
+ if (a.pos >= P.length) {
17594
+ te("Unterminated string constant");
17577
17595
  return;
17578
17596
  }
17579
- const e = C.charCodeAt(a.pos);
17597
+ const e = P.charCodeAt(a.pos);
17580
17598
  if (e === p.backslash)
17581
17599
  a.pos++;
17582
17600
  else if (e === t)
17583
17601
  break;
17584
17602
  a.pos++;
17585
17603
  }
17586
- a.pos++, te(r.string);
17604
+ a.pos++, ee(r.string);
17587
17605
  }
17588
17606
  function Ru() {
17589
17607
  for (; ; ) {
17590
- if (a.pos >= C.length) {
17591
- ne("Unterminated template");
17608
+ if (a.pos >= P.length) {
17609
+ te("Unterminated template");
17592
17610
  return;
17593
17611
  }
17594
- const t = C.charCodeAt(a.pos);
17595
- if (t === p.graveAccent || t === p.dollarSign && C.charCodeAt(a.pos + 1) === p.leftCurlyBrace) {
17612
+ const t = P.charCodeAt(a.pos);
17613
+ if (t === p.graveAccent || t === p.dollarSign && P.charCodeAt(a.pos + 1) === p.leftCurlyBrace) {
17596
17614
  if (a.pos === a.start && l(r.template))
17597
17615
  if (t === p.dollarSign) {
17598
- a.pos += 2, te(r.dollarBraceL);
17616
+ a.pos += 2, ee(r.dollarBraceL);
17599
17617
  return;
17600
17618
  } else {
17601
- ++a.pos, te(r.backQuote);
17619
+ ++a.pos, ee(r.backQuote);
17602
17620
  return;
17603
17621
  }
17604
- te(r.template);
17622
+ ee(r.template);
17605
17623
  return;
17606
17624
  }
17607
17625
  t === p.backslash && a.pos++, a.pos++;
17608
17626
  }
17609
17627
  }
17610
17628
  function Cu() {
17611
- for (; a.pos < C.length; ) {
17612
- const t = C.charCodeAt(a.pos);
17629
+ for (; a.pos < P.length; ) {
17630
+ const t = P.charCodeAt(a.pos);
17613
17631
  if (Ge[t])
17614
17632
  a.pos++;
17615
17633
  else if (t === p.backslash) {
17616
- if (a.pos += 2, C.charCodeAt(a.pos) === p.leftCurlyBrace) {
17617
- for (; a.pos < C.length && C.charCodeAt(a.pos) !== p.rightCurlyBrace; )
17634
+ if (a.pos += 2, P.charCodeAt(a.pos) === p.leftCurlyBrace) {
17635
+ for (; a.pos < P.length && P.charCodeAt(a.pos) !== p.rightCurlyBrace; )
17618
17636
  a.pos++;
17619
17637
  a.pos++;
17620
17638
  }
@@ -18624,124 +18642,124 @@ var Tt = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
18624
18642
  t.exports = s();
18625
18643
  })(Tt, function() {
18626
18644
  const n = /^[\w+.-]+:\/\//, s = /^([\w+.-]+:)\/\/([^@/#?]*@)?([^:/#?]*)(:\d+)?(\/[^#?]*)?(\?[^#]*)?(#.*)?/, i = /^file:(?:\/\/((?![a-z]:)[^/#?]*)?)?(\/?[^#?]*)(\?[^#]*)?(#.*)?/i;
18627
- function o(P) {
18628
- return n.test(P);
18645
+ function o(C) {
18646
+ return n.test(C);
18629
18647
  }
18630
- function c(P) {
18631
- return P.startsWith("//");
18648
+ function c(C) {
18649
+ return C.startsWith("//");
18632
18650
  }
18633
- function u(P) {
18634
- return P.startsWith("/");
18651
+ function u(C) {
18652
+ return C.startsWith("/");
18635
18653
  }
18636
- function h(P) {
18637
- return P.startsWith("file:");
18654
+ function h(C) {
18655
+ return C.startsWith("file:");
18638
18656
  }
18639
- function f(P) {
18640
- return /^[.?#]/.test(P);
18657
+ function f(C) {
18658
+ return /^[.?#]/.test(C);
18641
18659
  }
18642
- function m(P) {
18643
- const j = s.exec(P);
18644
- return x(j[1], j[2] || "", j[3], j[4] || "", j[5] || "/", j[6] || "", j[7] || "");
18660
+ function m(C) {
18661
+ const H = s.exec(C);
18662
+ return x(H[1], H[2] || "", H[3], H[4] || "", H[5] || "/", H[6] || "", H[7] || "");
18645
18663
  }
18646
- function g(P) {
18647
- const j = i.exec(P), M = j[2];
18648
- return x("file:", "", j[1] || "", "", u(M) ? M : "/" + M, j[3] || "", j[4] || "");
18664
+ function g(C) {
18665
+ const H = i.exec(C), B = H[2];
18666
+ return x("file:", "", H[1] || "", "", u(B) ? B : "/" + B, H[3] || "", H[4] || "");
18649
18667
  }
18650
- function x(P, j, M, Q, oe, ee, Y) {
18668
+ function x(C, H, B, J, oe, se, Y) {
18651
18669
  return {
18652
- scheme: P,
18653
- user: j,
18654
- host: M,
18655
- port: Q,
18670
+ scheme: C,
18671
+ user: H,
18672
+ host: B,
18673
+ port: J,
18656
18674
  path: oe,
18657
- query: ee,
18675
+ query: se,
18658
18676
  hash: Y,
18659
18677
  type: 7
18660
18678
  };
18661
18679
  }
18662
- function T(P) {
18663
- if (c(P)) {
18664
- const M = m("http:" + P);
18665
- return M.scheme = "", M.type = 6, M;
18680
+ function T(C) {
18681
+ if (c(C)) {
18682
+ const B = m("http:" + C);
18683
+ return B.scheme = "", B.type = 6, B;
18666
18684
  }
18667
- if (u(P)) {
18668
- const M = m("http://foo.com" + P);
18669
- return M.scheme = "", M.host = "", M.type = 5, M;
18685
+ if (u(C)) {
18686
+ const B = m("http://foo.com" + C);
18687
+ return B.scheme = "", B.host = "", B.type = 5, B;
18670
18688
  }
18671
- if (h(P))
18672
- return g(P);
18673
- if (o(P))
18674
- return m(P);
18675
- const j = m("http://foo.com/" + P);
18676
- return j.scheme = "", j.host = "", j.type = P ? P.startsWith("?") ? 3 : P.startsWith("#") ? 2 : 4 : 1, j;
18677
- }
18678
- function L(P) {
18679
- if (P.endsWith("/.."))
18680
- return P;
18681
- const j = P.lastIndexOf("/");
18682
- return P.slice(0, j + 1);
18683
- }
18684
- function O(P, j) {
18685
- H(j, j.type), P.path === "/" ? P.path = j.path : P.path = L(j.path) + P.path;
18686
- }
18687
- function H(P, j) {
18688
- const M = j <= 4, Q = P.path.split("/");
18689
- let oe = 1, ee = 0, Y = !1;
18690
- for (let _ = 1; _ < Q.length; _++) {
18691
- const b = Q[_];
18689
+ if (h(C))
18690
+ return g(C);
18691
+ if (o(C))
18692
+ return m(C);
18693
+ const H = m("http://foo.com/" + C);
18694
+ return H.scheme = "", H.host = "", H.type = C ? C.startsWith("?") ? 3 : C.startsWith("#") ? 2 : 4 : 1, H;
18695
+ }
18696
+ function L(C) {
18697
+ if (C.endsWith("/.."))
18698
+ return C;
18699
+ const H = C.lastIndexOf("/");
18700
+ return C.slice(0, H + 1);
18701
+ }
18702
+ function N(C, H) {
18703
+ q(H, H.type), C.path === "/" ? C.path = H.path : C.path = L(H.path) + C.path;
18704
+ }
18705
+ function q(C, H) {
18706
+ const B = H <= 4, J = C.path.split("/");
18707
+ let oe = 1, se = 0, Y = !1;
18708
+ for (let _ = 1; _ < J.length; _++) {
18709
+ const b = J[_];
18692
18710
  if (!b) {
18693
18711
  Y = !0;
18694
18712
  continue;
18695
18713
  }
18696
18714
  if (Y = !1, b !== ".") {
18697
18715
  if (b === "..") {
18698
- ee ? (Y = !0, ee--, oe--) : M && (Q[oe++] = b);
18716
+ se ? (Y = !0, se--, oe--) : B && (J[oe++] = b);
18699
18717
  continue;
18700
18718
  }
18701
- Q[oe++] = b, ee++;
18719
+ J[oe++] = b, se++;
18702
18720
  }
18703
18721
  }
18704
- let me = "";
18722
+ let de = "";
18705
18723
  for (let _ = 1; _ < oe; _++)
18706
- me += "/" + Q[_];
18707
- (!me || Y && !me.endsWith("/..")) && (me += "/"), P.path = me;
18724
+ de += "/" + J[_];
18725
+ (!de || Y && !de.endsWith("/..")) && (de += "/"), C.path = de;
18708
18726
  }
18709
- function K(P, j) {
18710
- if (!P && !j)
18727
+ function K(C, H) {
18728
+ if (!C && !H)
18711
18729
  return "";
18712
- const M = T(P);
18713
- let Q = M.type;
18714
- if (j && Q !== 7) {
18715
- const ee = T(j), Y = ee.type;
18716
- switch (Q) {
18730
+ const B = T(C);
18731
+ let J = B.type;
18732
+ if (H && J !== 7) {
18733
+ const se = T(H), Y = se.type;
18734
+ switch (J) {
18717
18735
  case 1:
18718
- M.hash = ee.hash;
18736
+ B.hash = se.hash;
18719
18737
  case 2:
18720
- M.query = ee.query;
18738
+ B.query = se.query;
18721
18739
  case 3:
18722
18740
  case 4:
18723
- O(M, ee);
18741
+ N(B, se);
18724
18742
  case 5:
18725
- M.user = ee.user, M.host = ee.host, M.port = ee.port;
18743
+ B.user = se.user, B.host = se.host, B.port = se.port;
18726
18744
  case 6:
18727
- M.scheme = ee.scheme;
18745
+ B.scheme = se.scheme;
18728
18746
  }
18729
- Y > Q && (Q = Y);
18747
+ Y > J && (J = Y);
18730
18748
  }
18731
- H(M, Q);
18732
- const oe = M.query + M.hash;
18733
- switch (Q) {
18749
+ q(B, J);
18750
+ const oe = B.query + B.hash;
18751
+ switch (J) {
18734
18752
  case 2:
18735
18753
  case 3:
18736
18754
  return oe;
18737
18755
  case 4: {
18738
- const ee = M.path.slice(1);
18739
- return ee ? f(j || P) && !f(ee) ? "./" + ee + oe : ee + oe : oe || ".";
18756
+ const se = B.path.slice(1);
18757
+ return se ? f(H || C) && !f(se) ? "./" + se + oe : se + oe : oe || ".";
18740
18758
  }
18741
18759
  case 5:
18742
- return M.path + oe;
18760
+ return B.path + oe;
18743
18761
  default:
18744
- return M.scheme + "//" + M.user + M.host + M.port + M.path + oe;
18762
+ return B.scheme + "//" + B.user + B.host + B.port + B.path + oe;
18745
18763
  }
18746
18764
  }
18747
18765
  return K;
@@ -18816,12 +18834,12 @@ function Ju(t, e, n, s, i, o, c, u, h) {
18816
18834
  } = e, T = Qu(f, n), L = el(T, s);
18817
18835
  if (!i)
18818
18836
  return nl(T, L) ? void 0 : Gi(T, L, [s]);
18819
- const O = qu(m, i), H = da;
18820
- if (O === g.length && (g[O] = null), !sl(T, L, O, o, c, H))
18837
+ const N = qu(m, i), q = da;
18838
+ if (N === g.length && (g[N] = null), !sl(T, L, N, o, c, q))
18821
18839
  return Gi(
18822
18840
  T,
18823
18841
  L,
18824
- [s, O, o, c]
18842
+ [s, N, o, c]
18825
18843
  );
18826
18844
  }
18827
18845
  function Qu(t, e) {
@@ -18864,13 +18882,13 @@ function rl({ code: t, mappings: e }, n, s, i, o) {
18864
18882
  h++, f = e[h];
18865
18883
  let m = 0, g = 0;
18866
18884
  f !== g && sr(u, m, 0, n, m, 0);
18867
- for (let O = 0; O < t.length; O++) {
18868
- if (O === f) {
18869
- const H = f - g, K = c[h];
18870
- for (sr(u, m, H, n, m, K); (f === O || f === void 0) && h < e.length - 1; )
18885
+ for (let N = 0; N < t.length; N++) {
18886
+ if (N === f) {
18887
+ const q = f - g, K = c[h];
18888
+ for (sr(u, m, q, n, m, K); (f === N || f === void 0) && h < e.length - 1; )
18871
18889
  h++, f = e[h];
18872
18890
  }
18873
- t.charCodeAt(O) === p.lineFeed && (m++, g = O + 1, f !== g && sr(u, m, 0, n, m, 0));
18891
+ t.charCodeAt(N) === p.lineFeed && (m++, g = N + 1, f !== g && sr(u, m, 0, n, m, 0));
18874
18892
  }
18875
18893
  const { sourceRoot: x, sourcesContent: T, ...L } = Zu(u);
18876
18894
  return L;
@@ -19250,8 +19268,8 @@ var hl = (
19250
19268
  }
19251
19269
  return S.prototype.getChecker = function(A, I, D) {
19252
19270
  var W = this, Z = o(A, this.name), ce = Z.getChecker(A, I, D);
19253
- return Z instanceof F || Z instanceof S ? ce : function(ge, de) {
19254
- return ce(ge, de) ? !0 : de.fail(null, W._failMsg, 0);
19271
+ return Z instanceof F || Z instanceof S ? ce : function(ge, me) {
19272
+ return ce(ge, me) ? !0 : me.fail(null, W._failMsg, 0);
19255
19273
  };
19256
19274
  }, S;
19257
19275
  }(s)
@@ -19329,8 +19347,8 @@ var hl = (
19329
19347
  if (!Array.isArray(Z))
19330
19348
  return ce.fail(null, "is not an array", 0);
19331
19349
  for (var ge = 0; ge < D.length; ge++) {
19332
- var de = D[ge](Z[ge], ce);
19333
- if (!de)
19350
+ var me = D[ge](Z[ge], ce);
19351
+ if (!me)
19334
19352
  return ce.fail(ge, null, 1);
19335
19353
  }
19336
19354
  return !0;
@@ -19345,12 +19363,12 @@ var hl = (
19345
19363
  function L() {
19346
19364
  for (var k = [], S = 0; S < arguments.length; S++)
19347
19365
  k[S] = arguments[S];
19348
- return new O(k.map(function(A) {
19366
+ return new N(k.map(function(A) {
19349
19367
  return i(A);
19350
19368
  }));
19351
19369
  }
19352
19370
  t.union = L;
19353
- var O = (
19371
+ var N = (
19354
19372
  /** @class */
19355
19373
  function(k) {
19356
19374
  e(S, k);
@@ -19369,8 +19387,8 @@ var hl = (
19369
19387
  return Z.getChecker(A, I);
19370
19388
  });
19371
19389
  return function(Z, ce) {
19372
- for (var ge = ce.unionResolver(), de = 0; de < W.length; de++) {
19373
- var Se = W[de](Z, ge.createContext());
19390
+ for (var ge = ce.unionResolver(), me = 0; me < W.length; me++) {
19391
+ var Se = W[me](Z, ge.createContext());
19374
19392
  if (Se)
19375
19393
  return !0;
19376
19394
  }
@@ -19379,15 +19397,15 @@ var hl = (
19379
19397
  }, S;
19380
19398
  }(s)
19381
19399
  );
19382
- t.TUnion = O;
19383
- function H() {
19400
+ t.TUnion = N;
19401
+ function q() {
19384
19402
  for (var k = [], S = 0; S < arguments.length; S++)
19385
19403
  k[S] = arguments[S];
19386
19404
  return new K(k.map(function(A) {
19387
19405
  return i(A);
19388
19406
  }));
19389
19407
  }
19390
- t.intersection = H;
19408
+ t.intersection = q;
19391
19409
  var K = (
19392
19410
  /** @class */
19393
19411
  function(k) {
@@ -19401,8 +19419,8 @@ var hl = (
19401
19419
  return Z.getChecker(A, I, D);
19402
19420
  });
19403
19421
  return function(Z, ce) {
19404
- var ge = W.every(function(de) {
19405
- return de(Z, ce);
19422
+ var ge = W.every(function(me) {
19423
+ return me(Z, ce);
19406
19424
  });
19407
19425
  return ge ? !0 : ce.fail(null, null, 0);
19408
19426
  };
@@ -19410,11 +19428,11 @@ var hl = (
19410
19428
  }(s)
19411
19429
  );
19412
19430
  t.TIntersection = K;
19413
- function P(k) {
19414
- return new j(k);
19431
+ function C(k) {
19432
+ return new H(k);
19415
19433
  }
19416
- t.enumtype = P;
19417
- var j = (
19434
+ t.enumtype = C;
19435
+ var H = (
19418
19436
  /** @class */
19419
19437
  function(k) {
19420
19438
  e(S, k);
@@ -19432,12 +19450,12 @@ var hl = (
19432
19450
  }, S;
19433
19451
  }(s)
19434
19452
  );
19435
- t.TEnumType = j;
19436
- function M(k, S) {
19437
- return new Q(k, S);
19453
+ t.TEnumType = H;
19454
+ function B(k, S) {
19455
+ return new J(k, S);
19438
19456
  }
19439
- t.enumlit = M;
19440
- var Q = (
19457
+ t.enumlit = B;
19458
+ var J = (
19441
19459
  /** @class */
19442
19460
  function(k) {
19443
19461
  e(S, k);
@@ -19447,7 +19465,7 @@ var hl = (
19447
19465
  }
19448
19466
  return S.prototype.getChecker = function(A, I) {
19449
19467
  var D = this, W = o(A, this.enumName);
19450
- if (!(W instanceof j))
19468
+ if (!(W instanceof H))
19451
19469
  throw new Error("Type " + this.enumName + " used in enumlit is not an enum type");
19452
19470
  var Z = W.members[this.prop];
19453
19471
  if (!W.members.hasOwnProperty(this.prop))
@@ -19458,20 +19476,20 @@ var hl = (
19458
19476
  }, S;
19459
19477
  }(s)
19460
19478
  );
19461
- t.TEnumLiteral = Q;
19479
+ t.TEnumLiteral = J;
19462
19480
  function oe(k) {
19463
19481
  return Object.keys(k).map(function(S) {
19464
- return ee(S, k[S]);
19482
+ return se(S, k[S]);
19465
19483
  });
19466
19484
  }
19467
- function ee(k, S) {
19485
+ function se(k, S) {
19468
19486
  return S instanceof b ? new v(k, S.ttype, !0) : new v(k, i(S), !1);
19469
19487
  }
19470
19488
  function Y(k, S) {
19471
- return new me(k, oe(S));
19489
+ return new de(k, oe(S));
19472
19490
  }
19473
19491
  t.iface = Y;
19474
- var me = (
19492
+ var de = (
19475
19493
  /** @class */
19476
19494
  function(k) {
19477
19495
  e(S, k);
@@ -19486,7 +19504,7 @@ var hl = (
19486
19504
  return o(A, ke).getChecker(A, I);
19487
19505
  }), ce = this.props.map(function(ke) {
19488
19506
  return ke.ttype.getChecker(A, I);
19489
- }), ge = new n.NoopContext(), de = this.props.map(function(ke, Ae) {
19507
+ }), ge = new n.NoopContext(), me = this.props.map(function(ke, Ae) {
19490
19508
  return !ke.isOpt && !ce[Ae](void 0, ge);
19491
19509
  }), Se = function(ke, Ae) {
19492
19510
  if (typeof ke != "object" || ke === null)
@@ -19497,7 +19515,7 @@ var hl = (
19497
19515
  for (var Re = 0; Re < ce.length; Re++) {
19498
19516
  var _t = W.props[Re].name, Lt = ke[_t];
19499
19517
  if (Lt === void 0) {
19500
- if (de[Re])
19518
+ if (me[Re])
19501
19519
  return Ae.fail(_t, "is missing", 1);
19502
19520
  } else {
19503
19521
  var Ht = ce[Re](Lt, Ae);
@@ -19523,7 +19541,7 @@ var hl = (
19523
19541
  }, S;
19524
19542
  }(s)
19525
19543
  );
19526
- t.TIface = me;
19544
+ t.TIface = de;
19527
19545
  function _(k) {
19528
19546
  return new b(i(k));
19529
19547
  }
@@ -19558,7 +19576,7 @@ var hl = (
19558
19576
  function $(k) {
19559
19577
  for (var S = [], A = 1; A < arguments.length; A++)
19560
19578
  S[A - 1] = arguments[A];
19561
- return new X(new N(S), i(k));
19579
+ return new X(new M(S), i(k));
19562
19580
  }
19563
19581
  t.func = $;
19564
19582
  var X = (
@@ -19591,7 +19609,7 @@ var hl = (
19591
19609
  }()
19592
19610
  );
19593
19611
  t.TParam = R;
19594
- var N = (
19612
+ var M = (
19595
19613
  /** @class */
19596
19614
  function(k) {
19597
19615
  e(S, k);
@@ -19600,33 +19618,33 @@ var hl = (
19600
19618
  return I.params = A, I;
19601
19619
  }
19602
19620
  return S.prototype.getChecker = function(A, I) {
19603
- var D = this, W = this.params.map(function(de) {
19604
- return de.ttype.getChecker(A, I);
19605
- }), Z = new n.NoopContext(), ce = this.params.map(function(de, Se) {
19606
- return !de.isOpt && !W[Se](void 0, Z);
19607
- }), ge = function(de, Se) {
19608
- if (!Array.isArray(de))
19621
+ var D = this, W = this.params.map(function(me) {
19622
+ return me.ttype.getChecker(A, I);
19623
+ }), Z = new n.NoopContext(), ce = this.params.map(function(me, Se) {
19624
+ return !me.isOpt && !W[Se](void 0, Z);
19625
+ }), ge = function(me, Se) {
19626
+ if (!Array.isArray(me))
19609
19627
  return Se.fail(null, "is not an array", 0);
19610
19628
  for (var Le = 0; Le < W.length; Le++) {
19611
19629
  var ke = D.params[Le];
19612
- if (de[Le] === void 0) {
19630
+ if (me[Le] === void 0) {
19613
19631
  if (ce[Le])
19614
19632
  return Se.fail(ke.name, "is missing", 1);
19615
19633
  } else {
19616
- var Ae = W[Le](de[Le], Se);
19634
+ var Ae = W[Le](me[Le], Se);
19617
19635
  if (!Ae)
19618
19636
  return Se.fail(ke.name, null, 1);
19619
19637
  }
19620
19638
  }
19621
19639
  return !0;
19622
19640
  };
19623
- return I ? function(de, Se) {
19624
- return ge(de, Se) ? de.length <= W.length ? !0 : Se.fail(W.length, "is extraneous", 2) : !1;
19641
+ return I ? function(me, Se) {
19642
+ return ge(me, Se) ? me.length <= W.length ? !0 : Se.fail(W.length, "is extraneous", 2) : !1;
19625
19643
  } : ge;
19626
19644
  }, S;
19627
19645
  }(s)
19628
19646
  );
19629
- t.TParamList = N;
19647
+ t.TParamList = M;
19630
19648
  var F = (
19631
19649
  /** @class */
19632
19650
  function(k) {
@@ -19674,13 +19692,13 @@ var hl = (
19674
19692
  never: new F(function(k) {
19675
19693
  return !1;
19676
19694
  }, "is unexpected"),
19677
- Date: new F(V("[object Date]"), "is not a Date"),
19678
- RegExp: new F(V("[object RegExp]"), "is not a RegExp")
19695
+ Date: new F(j("[object Date]"), "is not a Date"),
19696
+ RegExp: new F(j("[object RegExp]"), "is not a RegExp")
19679
19697
  };
19680
- var B = Object.prototype.toString;
19681
- function V(k) {
19698
+ var O = Object.prototype.toString;
19699
+ function j(k) {
19682
19700
  return function(S) {
19683
- return typeof S == "object" && S && B.call(S) === k;
19701
+ return typeof S == "object" && S && O.call(S) === k;
19684
19702
  };
19685
19703
  }
19686
19704
  typeof Buffer < "u" && (t.basicTypes.Buffer = new F(function(k) {
@@ -19710,7 +19728,7 @@ var hl = (
19710
19728
  var e = Tt && Tt.__spreadArrays || function() {
19711
19729
  for (var h = 0, f = 0, m = arguments.length; f < m; f++) h += arguments[f].length;
19712
19730
  for (var g = Array(h), x = 0, f = 0; f < m; f++)
19713
- for (var T = arguments[f], L = 0, O = T.length; L < O; L++, x++)
19731
+ for (var T = arguments[f], L = 0, N = T.length; L < N; L++, x++)
19714
19732
  g[x] = T[L];
19715
19733
  return g;
19716
19734
  };
@@ -19781,8 +19799,8 @@ var hl = (
19781
19799
  for (var h = [], f = 0; f < arguments.length; f++)
19782
19800
  h[f] = arguments[f];
19783
19801
  for (var m = Object.assign.apply(Object, e([{}, n.basicTypes], h)), g = {}, x = 0, T = h; x < T.length; x++)
19784
- for (var L = T[x], O = 0, H = Object.keys(L); O < H.length; O++) {
19785
- var K = H[O];
19802
+ for (var L = T[x], N = 0, q = Object.keys(L); N < q.length; N++) {
19803
+ var K = q[N];
19786
19804
  g[K] = new u(m, L[K]);
19787
19805
  }
19788
19806
  return g;
@@ -19897,10 +19915,10 @@ function ba(t) {
19897
19915
  E(), Wn(t);
19898
19916
  }
19899
19917
  function bt(t) {
19900
- J(), Or(t);
19918
+ Q(), Or(t);
19901
19919
  }
19902
19920
  function Ln() {
19903
- J(), a.tokens[a.tokens.length - 1].identifierRole = G.ImportDeclaration;
19921
+ Q(), a.tokens[a.tokens.length - 1].identifierRole = G.ImportDeclaration;
19904
19922
  }
19905
19923
  function Or(t) {
19906
19924
  let e;
@@ -19910,7 +19928,7 @@ function Wn(t) {
19910
19928
  switch (a.type) {
19911
19929
  case r._this: {
19912
19930
  const e = re(0);
19913
- E(), se(e);
19931
+ E(), ne(e);
19914
19932
  return;
19915
19933
  }
19916
19934
  case r._yield:
@@ -19931,7 +19949,7 @@ function Wn(t) {
19931
19949
  Zr(!0, t);
19932
19950
  return;
19933
19951
  default:
19934
- ne();
19952
+ te();
19935
19953
  }
19936
19954
  }
19937
19955
  function $r(t, e, n = !1, s = !1, i = 0) {
@@ -20020,8 +20038,8 @@ function ka(t) {
20020
20038
  return null;
20021
20039
  }
20022
20040
  function fn() {
20023
- for (J(); y(r.dot); )
20024
- J();
20041
+ for (Q(); y(r.dot); )
20042
+ Q();
20025
20043
  }
20026
20044
  function vl() {
20027
20045
  fn(), !De() && l(r.lessThan) && Vt();
@@ -20041,16 +20059,16 @@ function va() {
20041
20059
  function Sl() {
20042
20060
  y(r._const);
20043
20061
  const t = y(r._in), e = xe(d._out);
20044
- y(r._const), (t || e) && !l(r.name) ? a.tokens[a.tokens.length - 1].type = r.name : J(), y(r._extends) && ye(), y(r.eq) && ye();
20062
+ y(r._const), (t || e) && !l(r.name) ? a.tokens[a.tokens.length - 1].type = r.name : Q(), y(r._extends) && ye(), y(r.eq) && ye();
20045
20063
  }
20046
20064
  function Pt() {
20047
20065
  l(r.lessThan) && Gn();
20048
20066
  }
20049
20067
  function Gn() {
20050
20068
  const t = re(0);
20051
- for (l(r.lessThan) || l(r.typeParameterStart) ? E() : ne(); !y(r.greaterThan) && !a.error; )
20069
+ for (l(r.lessThan) || l(r.typeParameterStart) ? E() : te(); !y(r.greaterThan) && !a.error; )
20052
20070
  Sl(), y(r.comma);
20053
- se(t);
20071
+ ne(t);
20054
20072
  }
20055
20073
  function Vr(t) {
20056
20074
  const e = t === r.arrow;
@@ -20078,7 +20096,7 @@ function wa() {
20078
20096
  if (!(l(r.bracketL) && Il()))
20079
20097
  return !1;
20080
20098
  const t = re(0);
20081
- return w(r.bracketL), J(), hn(), w(r.bracketR), jt(), Un(), se(t), !0;
20099
+ return w(r.bracketL), Q(), hn(), w(r.bracketR), jt(), Un(), ne(t), !0;
20082
20100
  }
20083
20101
  function Zi(t) {
20084
20102
  y(r.question), !t && (l(r.parenL) || l(r.lessThan)) ? (Vr(r.colon), Un()) : (jt(), Un());
@@ -20093,7 +20111,7 @@ function Al() {
20093
20111
  return;
20094
20112
  }
20095
20113
  const t = !!ka([d._readonly]);
20096
- wa() || ((q(d._get) || q(d._set)) && ya(), sn(
20114
+ wa() || ((V(d._get) || V(d._set)) && ya(), sn(
20097
20115
  -1
20098
20116
  /* Types don't need context IDs. */
20099
20117
  ), Zi(t));
@@ -20110,10 +20128,10 @@ function Cl() {
20110
20128
  return a.restoreFromSnapshot(t), e;
20111
20129
  }
20112
20130
  function Pl() {
20113
- return E(), y(r.plus) || y(r.minus) ? q(d._readonly) : (q(d._readonly) && E(), !l(r.bracketL) || (E(), !pr()) ? !1 : (E(), l(r._in)));
20131
+ return E(), y(r.plus) || y(r.minus) ? V(d._readonly) : (V(d._readonly) && E(), !l(r.bracketL) || (E(), !pr()) ? !1 : (E(), l(r._in)));
20114
20132
  }
20115
20133
  function Dl() {
20116
- J(), w(r._in), ye();
20134
+ Q(), w(r._in), ye();
20117
20135
  }
20118
20136
  function Ll() {
20119
20137
  w(r.braceL), l(r.plus) || l(r.minus) ? (E(), ve(d._readonly)) : xe(d._readonly), w(r.bracketL), Dl(), xe(d._as) && ye(), w(r.bracketR), l(r.plus) || l(r.minus) ? (E(), w(r.question)) : y(r.question), Gl(), be(), w(r.braceR);
@@ -20167,7 +20185,7 @@ function Bl() {
20167
20185
  E(), $t();
20168
20186
  return;
20169
20187
  case r._this: {
20170
- xl(), q(d._is) && !De() && wl();
20188
+ xl(), V(d._is) && !De() && wl();
20171
20189
  return;
20172
20190
  }
20173
20191
  case r._typeof:
@@ -20195,14 +20213,14 @@ function Bl() {
20195
20213
  }
20196
20214
  break;
20197
20215
  }
20198
- ne();
20216
+ te();
20199
20217
  }
20200
20218
  function Ol() {
20201
20219
  for (Bl(); !De() && y(r.bracketL); )
20202
20220
  y(r.bracketR) || (ye(), w(r.bracketR));
20203
20221
  }
20204
20222
  function $l() {
20205
- if (ve(d._infer), J(), l(r._extends)) {
20223
+ if (ve(d._infer), Q(), l(r._extends)) {
20206
20224
  const t = a.snapshot();
20207
20225
  w(r._extends);
20208
20226
  const e = a.inDisallowConditionalTypesContext;
@@ -20210,9 +20228,9 @@ function $l() {
20210
20228
  }
20211
20229
  }
20212
20230
  function gr() {
20213
- if (q(d._keyof) || q(d._unique) || q(d._readonly))
20231
+ if (V(d._keyof) || V(d._unique) || V(d._readonly))
20214
20232
  E(), gr();
20215
- else if (q(d._infer))
20233
+ else if (V(d._infer))
20216
20234
  $l();
20217
20235
  else {
20218
20236
  const t = a.inDisallowConditionalTypesContext;
@@ -20252,7 +20270,7 @@ function Xl() {
20252
20270
  }
20253
20271
  function nn(t) {
20254
20272
  const e = re(0);
20255
- w(t), Yl() || ye(), se(e);
20273
+ w(t), Yl() || ye(), ne(e);
20256
20274
  }
20257
20275
  function Wl() {
20258
20276
  l(r.colon) && nn(r.colon);
@@ -20265,11 +20283,11 @@ function Gl() {
20265
20283
  }
20266
20284
  function Yl() {
20267
20285
  const t = a.snapshot();
20268
- return q(d._asserts) ? (E(), xe(d._is) ? (ye(), !0) : pr() || l(r._this) ? (E(), xe(d._is) && ye(), !0) : (a.restoreFromSnapshot(t), !1)) : pr() || l(r._this) ? (E(), q(d._is) && !De() ? (E(), ye(), !0) : (a.restoreFromSnapshot(t), !1)) : !1;
20286
+ return V(d._asserts) ? (E(), xe(d._is) ? (ye(), !0) : pr() || l(r._this) ? (E(), xe(d._is) && ye(), !0) : (a.restoreFromSnapshot(t), !1)) : pr() || l(r._this) ? (E(), V(d._is) && !De() ? (E(), ye(), !0) : (a.restoreFromSnapshot(t), !1)) : !1;
20269
20287
  }
20270
20288
  function hn() {
20271
20289
  const t = re(0);
20272
- w(r.colon), ye(), se(t);
20290
+ w(r.colon), ye(), ne(t);
20273
20291
  }
20274
20292
  function ye() {
20275
20293
  if (Qi(), a.inDisallowConditionalTypesContext || De() || !y(r._extends))
@@ -20278,7 +20296,7 @@ function ye() {
20278
20296
  a.inDisallowConditionalTypesContext = !0, Qi(), a.inDisallowConditionalTypesContext = t, w(r.question), ye(), w(r.colon), ye();
20279
20297
  }
20280
20298
  function zl() {
20281
- return q(d._abstract) && _e() === r._new;
20299
+ return V(d._abstract) && _e() === r._new;
20282
20300
  }
20283
20301
  function Qi() {
20284
20302
  if (Vl()) {
@@ -20296,7 +20314,7 @@ function Qi() {
20296
20314
  }
20297
20315
  function Kl() {
20298
20316
  const t = re(1);
20299
- ye(), w(r.greaterThan), se(t), dn();
20317
+ ye(), w(r.greaterThan), ne(t), dn();
20300
20318
  }
20301
20319
  function Zl() {
20302
20320
  if (y(r.jsxTagStart)) {
@@ -20304,7 +20322,7 @@ function Zl() {
20304
20322
  const t = re(1);
20305
20323
  for (; !l(r.greaterThan) && !a.error; )
20306
20324
  ye(), y(r.comma);
20307
- je(), se(t);
20325
+ je(), ne(t);
20308
20326
  }
20309
20327
  }
20310
20328
  function Ea() {
@@ -20321,7 +20339,7 @@ function ef() {
20321
20339
  bt(!1), Pt(), w(r.eq), ye(), be();
20322
20340
  }
20323
20341
  function tf() {
20324
- if (l(r.string) ? $t() : J(), y(r.eq)) {
20342
+ if (l(r.string) ? $t() : Q(), y(r.eq)) {
20325
20343
  const t = a.tokens.length - 1;
20326
20344
  Ie(), a.tokens[t].rhsEndIndex = a.tokens.length;
20327
20345
  }
@@ -20340,19 +20358,19 @@ function br() {
20340
20358
  bt(!1), y(r.dot) ? br() : Hr();
20341
20359
  }
20342
20360
  function Sa() {
20343
- q(d._global) ? J() : l(r.string) ? at() : ne(), l(r.braceL) ? Hr() : be();
20361
+ V(d._global) ? Q() : l(r.string) ? at() : te(), l(r.braceL) ? Hr() : be();
20344
20362
  }
20345
20363
  function _r() {
20346
20364
  Ln(), w(r.eq), sf(), be();
20347
20365
  }
20348
20366
  function nf() {
20349
- return q(d._require) && _e() === r.parenL;
20367
+ return V(d._require) && _e() === r.parenL;
20350
20368
  }
20351
20369
  function sf() {
20352
20370
  nf() ? rf() : fn();
20353
20371
  }
20354
20372
  function rf() {
20355
- ve(d._require), w(r.parenL), l(r.string) || ne(), $t(), w(r.parenR);
20373
+ ve(d._require), w(r.parenL), l(r.string) || te(), $t(), w(r.parenR);
20356
20374
  }
20357
20375
  function of() {
20358
20376
  if (Qe())
@@ -20366,7 +20384,7 @@ function of() {
20366
20384
  e,
20367
20385
  /* isStatement */
20368
20386
  !0
20369
- ), se(t), !0;
20387
+ ), ne(t), !0;
20370
20388
  }
20371
20389
  case r._class: {
20372
20390
  const t = re(1);
@@ -20375,17 +20393,17 @@ function of() {
20375
20393
  !0,
20376
20394
  /* optionalId */
20377
20395
  !1
20378
- ), se(t), !0;
20396
+ ), ne(t), !0;
20379
20397
  }
20380
20398
  case r._const:
20381
20399
  if (l(r._const) && Nr(d._enum)) {
20382
20400
  const t = re(1);
20383
- return w(r._const), ve(d._enum), a.tokens[a.tokens.length - 1].type = r._enum, qr(), se(t), !0;
20401
+ return w(r._const), ve(d._enum), a.tokens[a.tokens.length - 1].type = r._enum, qr(), ne(t), !0;
20384
20402
  }
20385
20403
  case r._var:
20386
20404
  case r._let: {
20387
20405
  const t = re(1);
20388
- return xn(a.type !== r._var), se(t), !0;
20406
+ return xn(a.type !== r._var), ne(t), !0;
20389
20407
  }
20390
20408
  case r.name: {
20391
20409
  const t = re(1), e = a.contextualKeyword;
@@ -20394,7 +20412,7 @@ function of() {
20394
20412
  e,
20395
20413
  /* isBeforeToken */
20396
20414
  !0
20397
- ), se(t), n;
20415
+ ), ne(t), n;
20398
20416
  }
20399
20417
  default:
20400
20418
  return !1;
@@ -20446,30 +20464,30 @@ function Yn(t, e) {
20446
20464
  case d._interface:
20447
20465
  if (Ft(e) && l(r.name)) {
20448
20466
  const n = re(e ? 2 : 1);
20449
- return Ql(), se(n), !0;
20467
+ return Ql(), ne(n), !0;
20450
20468
  }
20451
20469
  break;
20452
20470
  case d._module:
20453
20471
  if (Ft(e)) {
20454
20472
  if (l(r.string)) {
20455
20473
  const n = re(e ? 2 : 1);
20456
- return Sa(), se(n), !0;
20474
+ return Sa(), ne(n), !0;
20457
20475
  } else if (l(r.name)) {
20458
20476
  const n = re(e ? 2 : 1);
20459
- return br(), se(n), !0;
20477
+ return br(), ne(n), !0;
20460
20478
  }
20461
20479
  }
20462
20480
  break;
20463
20481
  case d._namespace:
20464
20482
  if (Ft(e) && l(r.name)) {
20465
20483
  const n = re(e ? 2 : 1);
20466
- return br(), se(n), !0;
20484
+ return br(), ne(n), !0;
20467
20485
  }
20468
20486
  break;
20469
20487
  case d._type:
20470
20488
  if (Ft(e) && l(r.name)) {
20471
20489
  const n = re(e ? 2 : 1);
20472
- return ef(), se(n), !0;
20490
+ return ef(), ne(n), !0;
20473
20491
  }
20474
20492
  break;
20475
20493
  }
@@ -20483,13 +20501,13 @@ function cf() {
20483
20501
  return Gn(), qt(), Wl(), w(r.arrow), a.error ? (a.restoreFromSnapshot(t), !1) : (mn(!0), !0);
20484
20502
  }
20485
20503
  function Xr() {
20486
- a.type === r.bitShiftL && (a.pos -= 1, te(r.lessThan)), Vt();
20504
+ a.type === r.bitShiftL && (a.pos -= 1, ee(r.lessThan)), Vt();
20487
20505
  }
20488
20506
  function Vt() {
20489
20507
  const t = re(0);
20490
20508
  for (w(r.lessThan); !l(r.greaterThan) && !a.error; )
20491
20509
  ye(), y(r.comma);
20492
- t ? (w(r.greaterThan), se(t)) : (se(t), ia(), w(r.greaterThan), a.tokens[a.tokens.length - 1].isType = !0);
20510
+ t ? (w(r.greaterThan), ne(t)) : (ne(t), ia(), w(r.greaterThan), a.tokens[a.tokens.length - 1].isType = !0);
20493
20511
  }
20494
20512
  function Ta() {
20495
20513
  if (l(r.name))
@@ -20529,7 +20547,7 @@ function lf(t, e, n) {
20529
20547
  // cause us to bail out.
20530
20548
  // a<b>>c is not (a<b>)>c, but a<(b>>c)
20531
20549
  (a.type === r.greaterThan || // a<b>c is (a<b)>c
20532
- a.type !== r.parenL && a.type & r.IS_EXPRESSION_START && !De()) && ne()
20550
+ a.type !== r.parenL && a.type & r.IS_EXPRESSION_START && !De()) && te()
20533
20551
  ), a.error)
20534
20552
  a.restoreFromSnapshot(s);
20535
20553
  else
@@ -20539,53 +20557,53 @@ function lf(t, e, n) {
20539
20557
  }
20540
20558
  function ff() {
20541
20559
  if (y(r._import))
20542
- return q(d._type) && _e() !== r.eq && ve(d._type), _r(), !0;
20560
+ return V(d._type) && _e() !== r.eq && ve(d._type), _r(), !0;
20543
20561
  if (y(r.eq))
20544
20562
  return Te(), be(), !0;
20545
20563
  if (xe(d._as))
20546
- return ve(d._namespace), J(), be(), !0;
20547
- if (q(d._type)) {
20564
+ return ve(d._namespace), Q(), be(), !0;
20565
+ if (V(d._type)) {
20548
20566
  const t = _e();
20549
20567
  (t === r.braceL || t === r.star) && E();
20550
20568
  }
20551
20569
  return !1;
20552
20570
  }
20553
20571
  function hf() {
20554
- if (J(), l(r.comma) || l(r.braceR)) {
20572
+ if (Q(), l(r.comma) || l(r.braceR)) {
20555
20573
  a.tokens[a.tokens.length - 1].identifierRole = G.ImportDeclaration;
20556
20574
  return;
20557
20575
  }
20558
- if (J(), l(r.comma) || l(r.braceR)) {
20576
+ if (Q(), l(r.comma) || l(r.braceR)) {
20559
20577
  a.tokens[a.tokens.length - 1].identifierRole = G.ImportDeclaration, a.tokens[a.tokens.length - 2].isType = !0, a.tokens[a.tokens.length - 1].isType = !0;
20560
20578
  return;
20561
20579
  }
20562
- if (J(), l(r.comma) || l(r.braceR)) {
20580
+ if (Q(), l(r.comma) || l(r.braceR)) {
20563
20581
  a.tokens[a.tokens.length - 3].identifierRole = G.ImportAccess, a.tokens[a.tokens.length - 1].identifierRole = G.ImportDeclaration;
20564
20582
  return;
20565
20583
  }
20566
- J(), a.tokens[a.tokens.length - 3].identifierRole = G.ImportAccess, a.tokens[a.tokens.length - 1].identifierRole = G.ImportDeclaration, a.tokens[a.tokens.length - 4].isType = !0, a.tokens[a.tokens.length - 3].isType = !0, a.tokens[a.tokens.length - 2].isType = !0, a.tokens[a.tokens.length - 1].isType = !0;
20584
+ Q(), a.tokens[a.tokens.length - 3].identifierRole = G.ImportAccess, a.tokens[a.tokens.length - 1].identifierRole = G.ImportDeclaration, a.tokens[a.tokens.length - 4].isType = !0, a.tokens[a.tokens.length - 3].isType = !0, a.tokens[a.tokens.length - 2].isType = !0, a.tokens[a.tokens.length - 1].isType = !0;
20567
20585
  }
20568
20586
  function df() {
20569
- if (J(), l(r.comma) || l(r.braceR)) {
20587
+ if (Q(), l(r.comma) || l(r.braceR)) {
20570
20588
  a.tokens[a.tokens.length - 1].identifierRole = G.ExportAccess;
20571
20589
  return;
20572
20590
  }
20573
- if (J(), l(r.comma) || l(r.braceR)) {
20591
+ if (Q(), l(r.comma) || l(r.braceR)) {
20574
20592
  a.tokens[a.tokens.length - 1].identifierRole = G.ExportAccess, a.tokens[a.tokens.length - 2].isType = !0, a.tokens[a.tokens.length - 1].isType = !0;
20575
20593
  return;
20576
20594
  }
20577
- if (J(), l(r.comma) || l(r.braceR)) {
20595
+ if (Q(), l(r.comma) || l(r.braceR)) {
20578
20596
  a.tokens[a.tokens.length - 3].identifierRole = G.ExportAccess;
20579
20597
  return;
20580
20598
  }
20581
- J(), a.tokens[a.tokens.length - 3].identifierRole = G.ExportAccess, a.tokens[a.tokens.length - 4].isType = !0, a.tokens[a.tokens.length - 3].isType = !0, a.tokens[a.tokens.length - 2].isType = !0, a.tokens[a.tokens.length - 1].isType = !0;
20599
+ Q(), a.tokens[a.tokens.length - 3].identifierRole = G.ExportAccess, a.tokens[a.tokens.length - 4].isType = !0, a.tokens[a.tokens.length - 3].isType = !0, a.tokens[a.tokens.length - 2].isType = !0, a.tokens[a.tokens.length - 1].isType = !0;
20582
20600
  }
20583
20601
  function mf() {
20584
- if (q(d._abstract) && _e() === r._class)
20602
+ if (V(d._abstract) && _e() === r._class)
20585
20603
  return a.type = r._abstract, E(), Rt(!0, !0), !0;
20586
- if (q(d._interface)) {
20604
+ if (V(d._interface)) {
20587
20605
  const t = re(2);
20588
- return Yn(d._interface, !0), se(t), !0;
20606
+ return Yn(d._interface, !0), ne(t), !0;
20589
20607
  }
20590
20608
  return !1;
20591
20609
  }
@@ -20625,13 +20643,13 @@ function _f() {
20625
20643
  if (l(r.name))
20626
20644
  if (t) {
20627
20645
  const n = re(2);
20628
- e = eo(), se(n);
20646
+ e = eo(), ne(n);
20629
20647
  } else
20630
20648
  e = eo();
20631
20649
  if (!e)
20632
20650
  if (t) {
20633
20651
  const n = re(2);
20634
- Oe(!0), se(n);
20652
+ Oe(!0), ne(n);
20635
20653
  } else
20636
20654
  Oe(!0);
20637
20655
  }
@@ -20639,7 +20657,7 @@ function yf(t) {
20639
20657
  if (t && (l(r.lessThan) || l(r.bitShiftL)) && Xr(), xe(d._implements)) {
20640
20658
  a.tokens[a.tokens.length - 1].type = r._implements;
20641
20659
  const e = re(1);
20642
- Ea(), se(e);
20660
+ Ea(), ne(e);
20643
20661
  }
20644
20662
  }
20645
20663
  function kf() {
@@ -20650,7 +20668,7 @@ function vf() {
20650
20668
  }
20651
20669
  function wf() {
20652
20670
  const t = re(0);
20653
- De() || y(r.bang), jt(), se(t);
20671
+ De() || y(r.bang), jt(), ne(t);
20654
20672
  }
20655
20673
  function xf() {
20656
20674
  l(r.colon) && hn();
@@ -20667,7 +20685,7 @@ function Sf(t, e) {
20667
20685
  a.restoreFromSnapshot(n);
20668
20686
  else
20669
20687
  return s;
20670
- return a.type = r.typeParameterStart, Gn(), s = tt(t, e), s || ne(), s;
20688
+ return a.type = r.typeParameterStart, Gn(), s = tt(t, e), s || te(), s;
20671
20689
  }
20672
20690
  function Tf(t, e) {
20673
20691
  if (!l(r.lessThan))
@@ -20675,7 +20693,7 @@ function Tf(t, e) {
20675
20693
  const n = a.snapshot();
20676
20694
  Gn();
20677
20695
  const s = tt(t, e);
20678
- if (s || ne(), a.error)
20696
+ if (s || te(), a.error)
20679
20697
  a.restoreFromSnapshot(n);
20680
20698
  else
20681
20699
  return s;
@@ -20684,13 +20702,13 @@ function Tf(t, e) {
20684
20702
  function If() {
20685
20703
  if (l(r.colon)) {
20686
20704
  const t = a.snapshot();
20687
- nn(r.colon), Be() && ne(), l(r.arrow) || ne(), a.error && a.restoreFromSnapshot(t);
20705
+ nn(r.colon), Be() && te(), l(r.arrow) || te(), a.error && a.restoreFromSnapshot(t);
20688
20706
  }
20689
20707
  return y(r.arrow);
20690
20708
  }
20691
20709
  function Af() {
20692
20710
  const t = re(0);
20693
- y(r.question), jt(), se(t);
20711
+ y(r.question), jt(), ne(t);
20694
20712
  }
20695
20713
  function Rf() {
20696
20714
  (l(r.lessThan) || l(r.bitShiftL)) && Xr(), Wa();
@@ -20698,21 +20716,21 @@ function Rf() {
20698
20716
  function Cf() {
20699
20717
  let t = !1, e = !1;
20700
20718
  for (; ; ) {
20701
- if (a.pos >= C.length) {
20702
- ne("Unterminated JSX contents");
20719
+ if (a.pos >= P.length) {
20720
+ te("Unterminated JSX contents");
20703
20721
  return;
20704
20722
  }
20705
- const n = C.charCodeAt(a.pos);
20723
+ const n = P.charCodeAt(a.pos);
20706
20724
  if (n === p.lessThan || n === p.leftCurlyBrace) {
20707
20725
  if (a.pos === a.start) {
20708
20726
  if (n === p.lessThan) {
20709
- a.pos++, te(r.jsxTagStart);
20727
+ a.pos++, ee(r.jsxTagStart);
20710
20728
  return;
20711
20729
  }
20712
20730
  oa(n);
20713
20731
  return;
20714
20732
  }
20715
- te(t && !e ? r.jsxEmptyText : r.jsxText);
20733
+ ee(t && !e ? r.jsxEmptyText : r.jsxText);
20716
20734
  return;
20717
20735
  }
20718
20736
  n === p.lineFeed ? t = !0 : n !== p.space && n !== p.carriageReturn && n !== p.tab && (e = !0), a.pos++;
@@ -20720,28 +20738,28 @@ function Cf() {
20720
20738
  }
20721
20739
  function Pf(t) {
20722
20740
  for (a.pos++; ; ) {
20723
- if (a.pos >= C.length) {
20724
- ne("Unterminated string constant");
20741
+ if (a.pos >= P.length) {
20742
+ te("Unterminated string constant");
20725
20743
  return;
20726
20744
  }
20727
- if (C.charCodeAt(a.pos) === t) {
20745
+ if (P.charCodeAt(a.pos) === t) {
20728
20746
  a.pos++;
20729
20747
  break;
20730
20748
  }
20731
20749
  a.pos++;
20732
20750
  }
20733
- te(r.string);
20751
+ ee(r.string);
20734
20752
  }
20735
20753
  function Df() {
20736
20754
  let t;
20737
20755
  do {
20738
- if (a.pos > C.length) {
20739
- ne("Unexpectedly reached the end of input.");
20756
+ if (a.pos > P.length) {
20757
+ te("Unexpectedly reached the end of input.");
20740
20758
  return;
20741
20759
  }
20742
- t = C.charCodeAt(++a.pos);
20760
+ t = P.charCodeAt(++a.pos);
20743
20761
  } while (Ge[t] || t === p.dash);
20744
- te(r.jsxName);
20762
+ ee(r.jsxName);
20745
20763
  }
20746
20764
  function yr() {
20747
20765
  je();
@@ -20760,7 +20778,7 @@ function Aa() {
20760
20778
  for (; l(r.dot); )
20761
20779
  e = !0, je(), yr();
20762
20780
  if (!e) {
20763
- const n = a.tokens[t], s = C.charCodeAt(n.start);
20781
+ const n = a.tokens[t], s = P.charCodeAt(n.start);
20764
20782
  s >= p.lowercaseA && s <= p.lowercaseZ && (n.identifierRole = null);
20765
20783
  }
20766
20784
  }
@@ -20776,7 +20794,7 @@ function Lf() {
20776
20794
  je();
20777
20795
  return;
20778
20796
  default:
20779
- ne("JSX value should be either an expression or a quoted JSX text");
20797
+ te("JSX value should be either an expression or a quoted JSX text");
20780
20798
  }
20781
20799
  }
20782
20800
  function Ff() {
@@ -20792,7 +20810,7 @@ function Uf(t) {
20792
20810
  e = !0, w(r.ellipsis), Ie(), je();
20793
20811
  continue;
20794
20812
  }
20795
- e && a.end - a.start === 3 && C.charCodeAt(a.start) === p.lowercaseK && C.charCodeAt(a.start + 1) === p.lowercaseE && C.charCodeAt(a.start + 2) === p.lowercaseY && (a.tokens[t].jsxRole = Xe.KeyAfterPropSpread), Ia(G.ObjectKey), l(r.eq) && (je(), Lf());
20813
+ e && a.end - a.start === 3 && P.charCodeAt(a.start) === p.lowercaseK && P.charCodeAt(a.start + 1) === p.lowercaseE && P.charCodeAt(a.start + 2) === p.lowercaseY && (a.tokens[t].jsxRole = Xe.KeyAfterPropSpread), Ia(G.ObjectKey), l(r.eq) && (je(), Lf());
20796
20814
  }
20797
20815
  const n = l(r.slash);
20798
20816
  return n && je(), n;
@@ -20824,7 +20842,7 @@ function Ra() {
20824
20842
  E(), l(r.ellipsis) ? (Ff(), Ut(), e += 2) : (l(r.braceR) || (e++, Te()), Ut());
20825
20843
  break;
20826
20844
  default:
20827
- ne();
20845
+ te();
20828
20846
  return;
20829
20847
  }
20830
20848
  }
@@ -20833,7 +20851,7 @@ function Ca() {
20833
20851
  }
20834
20852
  function je() {
20835
20853
  a.tokens.push(new Xn()), sa(), a.start = a.pos;
20836
- const t = C.charCodeAt(a.pos);
20854
+ const t = P.charCodeAt(a.pos);
20837
20855
  if (un[t])
20838
20856
  Df();
20839
20857
  else if (t === p.quotationMark || t === p.apostrophe)
@@ -20841,28 +20859,28 @@ function je() {
20841
20859
  else
20842
20860
  switch (++a.pos, t) {
20843
20861
  case p.greaterThan:
20844
- te(r.jsxTagEnd);
20862
+ ee(r.jsxTagEnd);
20845
20863
  break;
20846
20864
  case p.lessThan:
20847
- te(r.jsxTagStart);
20865
+ ee(r.jsxTagStart);
20848
20866
  break;
20849
20867
  case p.slash:
20850
- te(r.slash);
20868
+ ee(r.slash);
20851
20869
  break;
20852
20870
  case p.equalsTo:
20853
- te(r.eq);
20871
+ ee(r.eq);
20854
20872
  break;
20855
20873
  case p.leftCurlyBrace:
20856
- te(r.braceL);
20874
+ ee(r.braceL);
20857
20875
  break;
20858
20876
  case p.dot:
20859
- te(r.dot);
20877
+ ee(r.dot);
20860
20878
  break;
20861
20879
  case p.colon:
20862
- te(r.colon);
20880
+ ee(r.colon);
20863
20881
  break;
20864
20882
  default:
20865
- ne();
20883
+ te();
20866
20884
  }
20867
20885
  }
20868
20886
  function Ut() {
@@ -20915,7 +20933,7 @@ function Vf(t) {
20915
20933
  function vn(t, e, n) {
20916
20934
  if (le && (r._in & r.PRECEDENCE_MASK) > e && !De() && (xe(d._as) || xe(d._satisfies))) {
20917
20935
  const i = re(1);
20918
- ye(), se(i), ia(), vn(t, e, n);
20936
+ ye(), ne(i), ia(), vn(t, e, n);
20919
20937
  return;
20920
20938
  }
20921
20939
  const s = a.type & r.PRECEDENCE_MASK;
@@ -20929,7 +20947,7 @@ function vn(t, e, n) {
20929
20947
  function dn() {
20930
20948
  if (le && !Hn && y(r.lessThan))
20931
20949
  return Kl(), !1;
20932
- if (q(d._module) && ea() === p.leftCurlyBrace && !Go())
20950
+ if (V(d._module) && ea() === p.leftCurlyBrace && !Go())
20933
20951
  return nh(), !1;
20934
20952
  if (a.type & r.IS_PREFIX)
20935
20953
  return E(), dn(), !1;
@@ -21006,7 +21024,7 @@ function Yr() {
21006
21024
  }
21007
21025
  function at() {
21008
21026
  if (y(r.modulo))
21009
- return J(), !1;
21027
+ return Q(), !1;
21010
21028
  if (l(r.jsxText) || l(r.jsxEmptyText))
21011
21029
  return $t(), !1;
21012
21030
  if (l(r.lessThan) && Hn)
@@ -21028,10 +21046,10 @@ function at() {
21028
21046
  case r._false:
21029
21047
  return E(), !1;
21030
21048
  case r._import:
21031
- return E(), l(r.dot) && (a.tokens[a.tokens.length - 1].type = r.name, E(), J()), !1;
21049
+ return E(), l(r.dot) && (a.tokens[a.tokens.length - 1].type = r.name, E(), Q()), !1;
21032
21050
  case r.name: {
21033
21051
  const e = a.tokens.length, n = a.start, s = a.contextualKeyword;
21034
- return J(), s === d._await ? (eh(), !1) : s === d._async && l(r._function) && !Be() ? (E(), At(n, !1), !1) : t && s === d._async && !Be() && l(r.name) ? (a.scopeDepth++, bt(!1), w(r.arrow), rn(e), !0) : l(r._do) && !Be() ? (E(), gt(), !1) : t && !Be() && l(r.arrow) ? (a.scopeDepth++, Or(!1), w(r.arrow), rn(e), !0) : (a.tokens[a.tokens.length - 1].identifierRole = G.Access, !1);
21052
+ return Q(), s === d._await ? (eh(), !1) : s === d._async && l(r._function) && !Be() ? (E(), At(n, !1), !1) : t && s === d._async && !Be() && l(r.name) ? (a.scopeDepth++, bt(!1), w(r.arrow), rn(e), !0) : l(r._do) && !Be() ? (E(), gt(), !1) : t && !Be() && l(r.arrow) ? (a.scopeDepth++, Or(!1), w(r.arrow), rn(e), !0) : (a.tokens[a.tokens.length - 1].identifierRole = G.Access, !1);
21035
21053
  }
21036
21054
  case r._do:
21037
21055
  return E(), gt(), !1;
@@ -21058,15 +21076,15 @@ function at() {
21058
21076
  return un[e] || e === p.backslash ? Nn() : E(), !1;
21059
21077
  }
21060
21078
  default:
21061
- return ne(), !1;
21079
+ return te(), !1;
21062
21080
  }
21063
21081
  }
21064
21082
  function Nn() {
21065
- y(r.hash), J();
21083
+ y(r.hash), Q();
21066
21084
  }
21067
21085
  function Wf() {
21068
21086
  const t = a.start;
21069
- J(), y(r.dot) && J(), At(t, !1);
21087
+ Q(), y(r.dot) && Q(), At(t, !1);
21070
21088
  }
21071
21089
  function $t() {
21072
21090
  E();
@@ -21105,7 +21123,7 @@ function zr() {
21105
21123
  }
21106
21124
  function Yf() {
21107
21125
  if (w(r._new), y(r.dot)) {
21108
- J();
21126
+ Q();
21109
21127
  return;
21110
21128
  }
21111
21129
  zf(), fe && Ih(), y(r.parenL) && Ma(r.parenR);
@@ -21133,7 +21151,7 @@ function Zr(t, e) {
21133
21151
  break;
21134
21152
  continue;
21135
21153
  }
21136
- t || (i = y(r.star)), !t && q(d._async) ? (i && ne(), J(), l(r.colon) || l(r.parenL) || l(r.braceR) || l(r.eq) || l(r.comma) || (l(r.star) && (E(), i = !0), sn(n))) : sn(n), Qf(t, e, n);
21154
+ t || (i = y(r.star)), !t && V(d._async) ? (i && te(), Q(), l(r.colon) || l(r.parenL) || l(r.braceR) || l(r.eq) || l(r.comma) || (l(r.star) && (E(), i = !0), sn(n))) : sn(n), Qf(t, e, n);
21137
21155
  }
21138
21156
  a.tokens[a.tokens.length - 1].contextId = n;
21139
21157
  }
@@ -21146,7 +21164,7 @@ function Kf(t) {
21146
21164
  }
21147
21165
  function Zf(t, e) {
21148
21166
  const n = a.start;
21149
- return l(r.parenL) ? (t && ne(), vr(
21167
+ return l(r.parenL) ? (t && te(), vr(
21150
21168
  n,
21151
21169
  /* isConstructor */
21152
21170
  !1
@@ -21201,7 +21219,7 @@ function Ma(t, e = !1) {
21201
21219
  function Ba(t) {
21202
21220
  t && l(r.comma) || (l(r.ellipsis) ? (ga(), zr()) : l(r.question) ? E() : Ie(!1, !0));
21203
21221
  }
21204
- function J() {
21222
+ function Q() {
21205
21223
  E(), a.tokens[a.tokens.length - 1].type = r.name;
21206
21224
  }
21207
21225
  function eh() {
@@ -21218,14 +21236,14 @@ function sh(t) {
21218
21236
  }
21219
21237
  function st(t) {
21220
21238
  const e = re(0);
21221
- w(t || r.colon), Me(), se(e);
21239
+ w(t || r.colon), Me(), ne(e);
21222
21240
  }
21223
21241
  function to() {
21224
21242
  w(r.modulo), ve(d._checks), y(r.parenL) && (Te(), w(r.parenR));
21225
21243
  }
21226
21244
  function Jr() {
21227
21245
  const t = re(0);
21228
- w(r.colon), l(r.modulo) ? to() : (Me(), l(r.modulo) && to()), se(t);
21246
+ w(r.colon), l(r.modulo) ? to() : (Me(), l(r.modulo) && to()), ne(t);
21229
21247
  }
21230
21248
  function rh() {
21231
21249
  E(), Qr(
@@ -21234,28 +21252,28 @@ function rh() {
21234
21252
  );
21235
21253
  }
21236
21254
  function ih() {
21237
- E(), J(), l(r.lessThan) && ze(), w(r.parenL), xr(), w(r.parenR), Jr(), be();
21255
+ E(), Q(), l(r.lessThan) && ze(), w(r.parenL), xr(), w(r.parenR), Jr(), be();
21238
21256
  }
21239
21257
  function wr() {
21240
- l(r._class) ? rh() : l(r._function) ? ih() : l(r._var) ? oh() : xe(d._module) ? y(r.dot) ? uh() : ah() : q(d._type) ? lh() : q(d._opaque) ? fh() : q(d._interface) ? hh() : l(r._export) ? ch() : ne();
21258
+ l(r._class) ? rh() : l(r._function) ? ih() : l(r._var) ? oh() : xe(d._module) ? y(r.dot) ? uh() : ah() : V(d._type) ? lh() : V(d._opaque) ? fh() : V(d._interface) ? hh() : l(r._export) ? ch() : te();
21241
21259
  }
21242
21260
  function oh() {
21243
21261
  E(), Va(), be();
21244
21262
  }
21245
21263
  function ah() {
21246
- for (l(r.string) ? at() : J(), w(r.braceL); !l(r.braceR) && !a.error; )
21247
- l(r._import) ? (E(), Ja()) : ne();
21264
+ for (l(r.string) ? at() : Q(), w(r.braceL); !l(r.braceR) && !a.error; )
21265
+ l(r._import) ? (E(), Ja()) : te();
21248
21266
  w(r.braceR);
21249
21267
  }
21250
21268
  function ch() {
21251
21269
  w(r._export), y(r._default) ? l(r._function) || l(r._class) ? wr() : (Me(), be()) : l(r._var) || // declare export var ...
21252
21270
  l(r._function) || // declare export function ...
21253
21271
  l(r._class) || // declare export class ...
21254
- q(d._opaque) ? wr() : l(r.star) || // declare export * from ''
21272
+ V(d._opaque) ? wr() : l(r.star) || // declare export * from ''
21255
21273
  l(r.braceL) || // declare export {} ...
21256
- q(d._interface) || // declare export interface ...
21257
- q(d._type) || // declare export type ...
21258
- q(d._opaque) ? Ka() : ne();
21274
+ V(d._interface) || // declare export interface ...
21275
+ V(d._type) || // declare export type ...
21276
+ V(d._opaque) ? Ka() : te();
21259
21277
  }
21260
21278
  function uh() {
21261
21279
  ve(d._exports), Dt(), be();
@@ -21274,13 +21292,13 @@ function Qr(t = !1) {
21274
21292
  do
21275
21293
  wn();
21276
21294
  while (!t && y(r.comma));
21277
- if (q(d._mixins)) {
21295
+ if (V(d._mixins)) {
21278
21296
  E();
21279
21297
  do
21280
21298
  wn();
21281
21299
  while (y(r.comma));
21282
21300
  }
21283
- if (q(d._implements)) {
21301
+ if (V(d._implements)) {
21284
21302
  E();
21285
21303
  do
21286
21304
  wn();
@@ -21295,7 +21313,7 @@ function ei() {
21295
21313
  Qr();
21296
21314
  }
21297
21315
  function Kn() {
21298
- J();
21316
+ Q();
21299
21317
  }
21300
21318
  function ti() {
21301
21319
  Kn(), l(r.lessThan) && ze(), st(r.eq), be();
@@ -21308,17 +21326,17 @@ function dh() {
21308
21326
  }
21309
21327
  function ze() {
21310
21328
  const t = re(0);
21311
- l(r.lessThan) || l(r.typeParameterStart) ? E() : ne();
21329
+ l(r.lessThan) || l(r.typeParameterStart) ? E() : te();
21312
21330
  do
21313
21331
  dh(), l(r.greaterThan) || w(r.comma);
21314
21332
  while (!l(r.greaterThan) && !a.error);
21315
- w(r.greaterThan), se(t);
21333
+ w(r.greaterThan), ne(t);
21316
21334
  }
21317
21335
  function It() {
21318
21336
  const t = re(0);
21319
21337
  for (w(r.lessThan); !l(r.greaterThan) && !a.error; )
21320
21338
  Me(), l(r.greaterThan) || w(r.comma);
21321
- w(r.greaterThan), se(t);
21339
+ w(r.greaterThan), ne(t);
21322
21340
  }
21323
21341
  function mh() {
21324
21342
  if (ve(d._interface), y(r._extends))
@@ -21328,7 +21346,7 @@ function mh() {
21328
21346
  Mn(!1, !1, !1);
21329
21347
  }
21330
21348
  function si() {
21331
- l(r.num) || l(r.string) ? at() : J();
21349
+ l(r.num) || l(r.string) ? at() : Q();
21332
21350
  }
21333
21351
  function ph() {
21334
21352
  _e() === r.colon ? (si(), st()) : Me(), w(r.bracketR), st();
@@ -21347,11 +21365,11 @@ function bh() {
21347
21365
  function Mn(t, e, n) {
21348
21366
  let s;
21349
21367
  for (e && l(r.braceBarL) ? (w(r.braceBarL), s = r.braceBarR) : (w(r.braceL), s = r.braceR); !l(s) && !a.error; ) {
21350
- if (n && q(d._proto)) {
21368
+ if (n && V(d._proto)) {
21351
21369
  const i = _e();
21352
21370
  i !== r.colon && i !== r.question && (E(), t = !1);
21353
21371
  }
21354
- if (t && q(d._static)) {
21372
+ if (t && V(d._static)) {
21355
21373
  const i = _e();
21356
21374
  i !== r.colon && i !== r.question && E();
21357
21375
  }
@@ -21360,7 +21378,7 @@ function Mn(t, e, n) {
21360
21378
  else if (l(r.parenL) || l(r.lessThan))
21361
21379
  bh();
21362
21380
  else {
21363
- if (q(d._get) || q(d._set)) {
21381
+ if (V(d._get) || V(d._set)) {
21364
21382
  const i = _e();
21365
21383
  (i === r.name || i === r.string || i === r.num) && E();
21366
21384
  }
@@ -21379,11 +21397,11 @@ function _h() {
21379
21397
  si(), l(r.lessThan) || l(r.parenL) ? ri() : (y(r.question), st());
21380
21398
  }
21381
21399
  function yh() {
21382
- !y(r.semi) && !y(r.comma) && !l(r.braceR) && !l(r.braceBarR) && ne();
21400
+ !y(r.semi) && !y(r.comma) && !l(r.braceR) && !l(r.braceBarR) && te();
21383
21401
  }
21384
21402
  function Oa(t) {
21385
- for (t || J(); y(r.dot); )
21386
- J();
21403
+ for (t || Q(); y(r.dot); )
21404
+ Q();
21387
21405
  }
21388
21406
  function kh() {
21389
21407
  Oa(!0), l(r.lessThan) && It();
@@ -21392,13 +21410,13 @@ function vh() {
21392
21410
  w(r._typeof), $a();
21393
21411
  }
21394
21412
  function wh() {
21395
- for (w(r.bracketL); a.pos < C.length && !l(r.bracketR) && (Me(), !l(r.bracketR)); )
21413
+ for (w(r.bracketL); a.pos < P.length && !l(r.bracketR) && (Me(), !l(r.bracketR)); )
21396
21414
  w(r.comma);
21397
21415
  w(r.bracketR);
21398
21416
  }
21399
21417
  function Bn() {
21400
21418
  const t = _e();
21401
- t === r.colon || t === r.question ? (J(), y(r.question), st()) : Me();
21419
+ t === r.colon || t === r.question ? (Q(), y(r.question), st()) : Me();
21402
21420
  }
21403
21421
  function xr() {
21404
21422
  for (; !l(r.parenR) && !l(r.ellipsis) && !a.error; )
@@ -21410,11 +21428,11 @@ function $a() {
21410
21428
  const e = a.noAnonFunctionType;
21411
21429
  switch (a.type) {
21412
21430
  case r.name: {
21413
- if (q(d._interface)) {
21431
+ if (V(d._interface)) {
21414
21432
  mh();
21415
21433
  return;
21416
21434
  }
21417
- J(), kh();
21435
+ Q(), kh();
21418
21436
  return;
21419
21437
  }
21420
21438
  case r.braceL:
@@ -21466,7 +21484,7 @@ function $a() {
21466
21484
  return;
21467
21485
  }
21468
21486
  }
21469
- ne();
21487
+ te();
21470
21488
  }
21471
21489
  function xh() {
21472
21490
  for ($a(); !Be() && (l(r.bracketL) || l(r.questionDot)); )
@@ -21493,7 +21511,7 @@ function Dt() {
21493
21511
  st();
21494
21512
  }
21495
21513
  function Va() {
21496
- J(), l(r.colon) && Dt();
21514
+ Q(), l(r.colon) && Dt();
21497
21515
  }
21498
21516
  function ii() {
21499
21517
  (l(r.plus) || l(r.minus)) && (E(), a.tokens[a.tokens.length - 1].isType = !0);
@@ -21527,94 +21545,94 @@ function Ih() {
21527
21545
  function Ah() {
21528
21546
  if (l(r.name) && a.contextualKeyword === d._interface) {
21529
21547
  const t = re(0);
21530
- return E(), ei(), se(t), !0;
21531
- } else if (q(d._enum))
21548
+ return E(), ei(), ne(t), !0;
21549
+ } else if (V(d._enum))
21532
21550
  return qa(), !0;
21533
21551
  return !1;
21534
21552
  }
21535
21553
  function Rh() {
21536
- return q(d._enum) ? (qa(), !0) : !1;
21554
+ return V(d._enum) ? (qa(), !0) : !1;
21537
21555
  }
21538
21556
  function Ch(t) {
21539
21557
  if (t === d._declare) {
21540
21558
  if (l(r._class) || l(r.name) || l(r._function) || l(r._var) || l(r._export)) {
21541
21559
  const e = re(1);
21542
- wr(), se(e);
21560
+ wr(), ne(e);
21543
21561
  }
21544
21562
  } else if (l(r.name)) {
21545
21563
  if (t === d._interface) {
21546
21564
  const e = re(1);
21547
- ei(), se(e);
21565
+ ei(), ne(e);
21548
21566
  } else if (t === d._type) {
21549
21567
  const e = re(1);
21550
- ti(), se(e);
21568
+ ti(), ne(e);
21551
21569
  } else if (t === d._opaque) {
21552
21570
  const e = re(1);
21553
- ni(!1), se(e);
21571
+ ni(!1), ne(e);
21554
21572
  }
21555
21573
  }
21556
21574
  be();
21557
21575
  }
21558
21576
  function Ph() {
21559
- return q(d._type) || q(d._interface) || q(d._opaque) || q(d._enum);
21577
+ return V(d._type) || V(d._interface) || V(d._opaque) || V(d._enum);
21560
21578
  }
21561
21579
  function Dh() {
21562
21580
  return l(r.name) && (a.contextualKeyword === d._type || a.contextualKeyword === d._interface || a.contextualKeyword === d._opaque || a.contextualKeyword === d._enum);
21563
21581
  }
21564
21582
  function Lh() {
21565
- if (q(d._type)) {
21583
+ if (V(d._type)) {
21566
21584
  const t = re(1);
21567
- E(), l(r.braceL) ? (ai(), on()) : ti(), se(t);
21568
- } else if (q(d._opaque)) {
21585
+ E(), l(r.braceL) ? (ai(), on()) : ti(), ne(t);
21586
+ } else if (V(d._opaque)) {
21569
21587
  const t = re(1);
21570
- E(), ni(!1), se(t);
21571
- } else if (q(d._interface)) {
21588
+ E(), ni(!1), ne(t);
21589
+ } else if (V(d._interface)) {
21572
21590
  const t = re(1);
21573
- E(), ei(), se(t);
21591
+ E(), ei(), ne(t);
21574
21592
  } else
21575
21593
  Oe(!0);
21576
21594
  }
21577
21595
  function Fh() {
21578
- return l(r.star) || q(d._type) && _e() === r.star;
21596
+ return l(r.star) || V(d._type) && _e() === r.star;
21579
21597
  }
21580
21598
  function Uh() {
21581
21599
  if (xe(d._type)) {
21582
21600
  const t = re(2);
21583
- Er(), se(t);
21601
+ Er(), ne(t);
21584
21602
  } else
21585
21603
  Er();
21586
21604
  }
21587
21605
  function Nh(t) {
21588
- if (t && l(r.lessThan) && It(), q(d._implements)) {
21606
+ if (t && l(r.lessThan) && It(), V(d._implements)) {
21589
21607
  const e = re(0);
21590
21608
  E(), a.tokens[a.tokens.length - 1].type = r._implements;
21591
21609
  do
21592
21610
  Kn(), l(r.lessThan) && It();
21593
21611
  while (y(r.comma));
21594
- se(e);
21612
+ ne(e);
21595
21613
  }
21596
21614
  }
21597
21615
  function Mh() {
21598
- l(r.lessThan) && (ze(), l(r.parenL) || ne());
21616
+ l(r.lessThan) && (ze(), l(r.parenL) || te());
21599
21617
  }
21600
21618
  function Bh() {
21601
21619
  const t = re(0);
21602
- y(r.question), l(r.colon) && Dt(), se(t);
21620
+ y(r.question), l(r.colon) && Dt(), ne(t);
21603
21621
  }
21604
21622
  function Oh() {
21605
- if (l(r._typeof) || q(d._type)) {
21623
+ if (l(r._typeof) || V(d._type)) {
21606
21624
  const t = ln();
21607
21625
  (sh(t) || t.type === r.braceL || t.type === r.star) && E();
21608
21626
  }
21609
21627
  }
21610
21628
  function $h() {
21611
21629
  const t = a.contextualKeyword === d._type || a.type === r._typeof;
21612
- t ? E() : J(), q(d._as) && !Nr(d._as) ? (J(), t && !l(r.name) && !(a.type & r.IS_KEYWORD) || J()) : (t && (l(r.name) || a.type & r.IS_KEYWORD) && J(), xe(d._as) && J());
21630
+ t ? E() : Q(), V(d._as) && !Nr(d._as) ? (Q(), t && !l(r.name) && !(a.type & r.IS_KEYWORD) || Q()) : (t && (l(r.name) || a.type & r.IS_KEYWORD) && Q(), xe(d._as) && Q());
21613
21631
  }
21614
21632
  function jh() {
21615
21633
  if (l(r.lessThan)) {
21616
21634
  const t = re(0);
21617
- ze(), se(t);
21635
+ ze(), ne(t);
21618
21636
  }
21619
21637
  }
21620
21638
  function Vh() {
@@ -21635,16 +21653,16 @@ function Hh(t, e) {
21635
21653
  else
21636
21654
  return s;
21637
21655
  const i = re(0);
21638
- if (ze(), se(i), s = tt(t, e), s)
21656
+ if (ze(), ne(i), s = tt(t, e), s)
21639
21657
  return !0;
21640
- ne();
21658
+ te();
21641
21659
  }
21642
21660
  return tt(t, e);
21643
21661
  }
21644
21662
  function Xh() {
21645
21663
  if (l(r.colon)) {
21646
21664
  const t = re(0), e = a.snapshot(), n = a.noAnonFunctionType;
21647
- a.noAnonFunctionType = !0, Jr(), a.noAnonFunctionType = n, Be() && ne(), l(r.arrow) || ne(), a.error && a.restoreFromSnapshot(e), se(t);
21665
+ a.noAnonFunctionType = !0, Jr(), a.noAnonFunctionType = n, Be() && te(), l(r.arrow) || te(), a.error && a.restoreFromSnapshot(e), ne(t);
21648
21666
  }
21649
21667
  return y(r.arrow);
21650
21668
  }
@@ -21663,7 +21681,7 @@ function Gh() {
21663
21681
  return qt(), kr() ? (rn(t), !0) : !1;
21664
21682
  }
21665
21683
  function qa() {
21666
- ve(d._enum), a.tokens[a.tokens.length - 1].type = r._enum, J(), Yh();
21684
+ ve(d._enum), a.tokens[a.tokens.length - 1].type = r._enum, Q(), Yh();
21667
21685
  }
21668
21686
  function Yh() {
21669
21687
  xe(d._of) && E(), w(r.braceL), zh(), w(r.braceR);
@@ -21673,7 +21691,7 @@ function zh() {
21673
21691
  Kh(), l(r.braceR) || w(r.comma);
21674
21692
  }
21675
21693
  function Kh() {
21676
- J(), y(r.eq) && E();
21694
+ Q(), y(r.eq) && E();
21677
21695
  }
21678
21696
  function Zh() {
21679
21697
  if (Zn(r.eof), a.scopes.push(new nt(0, a.tokens.length, !0)), a.scopeDepth !== 0)
@@ -21703,10 +21721,10 @@ function Jh(t) {
21703
21721
  return;
21704
21722
  case r._function:
21705
21723
  if (_e() === r.dot) break;
21706
- t || ne(), od();
21724
+ t || te(), od();
21707
21725
  return;
21708
21726
  case r._class:
21709
- t || ne(), Rt(!0);
21727
+ t || te(), Rt(!0);
21710
21728
  return;
21711
21729
  case r._if:
21712
21730
  ad();
@@ -21725,7 +21743,7 @@ function Jh(t) {
21725
21743
  return;
21726
21744
  case r._let:
21727
21745
  case r._const:
21728
- t || ne();
21746
+ t || te();
21729
21747
  case r._var:
21730
21748
  xn(e !== r._var);
21731
21749
  return;
@@ -21778,10 +21796,10 @@ function Jh(t) {
21778
21796
  y(r.colon) ? pd() : gd(s);
21779
21797
  }
21780
21798
  function Ha() {
21781
- if (!q(d._await))
21799
+ if (!V(d._await))
21782
21800
  return !1;
21783
21801
  const t = a.snapshot();
21784
- return E(), !q(d._using) || De() || (E(), !l(r.name) || De()) ? (a.restoreFromSnapshot(t), !1) : (a.restoreFromSnapshot(t), !0);
21802
+ return E(), !V(d._using) || De() || (E(), !l(r.name) || De()) ? (a.restoreFromSnapshot(t), !1) : (a.restoreFromSnapshot(t), !0);
21785
21803
  }
21786
21804
  function oi() {
21787
21805
  for (; l(r.at); )
@@ -21791,8 +21809,8 @@ function Xa() {
21791
21809
  if (E(), y(r.parenL))
21792
21810
  Te(), w(r.parenR);
21793
21811
  else {
21794
- for (J(); y(r.dot); )
21795
- J();
21812
+ for (Q(); y(r.dot); )
21813
+ Q();
21796
21814
  Qh();
21797
21815
  }
21798
21816
  }
@@ -21803,7 +21821,7 @@ function Wa() {
21803
21821
  y(r.parenL) && pt();
21804
21822
  }
21805
21823
  function ed() {
21806
- E(), Qe() || (J(), be());
21824
+ E(), Qe() || (Q(), be());
21807
21825
  }
21808
21826
  function td() {
21809
21827
  E(), be();
@@ -21819,29 +21837,29 @@ function sd() {
21819
21837
  a.scopes.push(new nt(t, e, !1)), a.scopeDepth--;
21820
21838
  }
21821
21839
  function rd() {
21822
- return !(!q(d._using) || Nr(d._of));
21840
+ return !(!V(d._using) || Nr(d._of));
21823
21841
  }
21824
21842
  function id() {
21825
21843
  E();
21826
21844
  let t = !1;
21827
- if (q(d._await) && (t = !0, E()), w(r.parenL), l(r.semi)) {
21828
- t && ne(), ir();
21845
+ if (V(d._await) && (t = !0, E()), w(r.parenL), l(r.semi)) {
21846
+ t && te(), ir();
21829
21847
  return;
21830
21848
  }
21831
21849
  const e = Ha();
21832
21850
  if (e || l(r._var) || l(r._let) || l(r._const) || rd()) {
21833
- if (e && ve(d._await), E(), Ga(!0, a.type !== r._var), l(r._in) || q(d._of)) {
21851
+ if (e && ve(d._await), E(), Ga(!0, a.type !== r._var), l(r._in) || V(d._of)) {
21834
21852
  ro(t);
21835
21853
  return;
21836
21854
  }
21837
21855
  ir();
21838
21856
  return;
21839
21857
  }
21840
- if (Te(!0), l(r._in) || q(d._of)) {
21858
+ if (Te(!0), l(r._in) || V(d._of)) {
21841
21859
  ro(t);
21842
21860
  return;
21843
21861
  }
21844
- t && ne(), ir();
21862
+ t && te(), ir();
21845
21863
  }
21846
21864
  function od() {
21847
21865
  const t = a.start;
@@ -21931,7 +21949,7 @@ function bd(t) {
21931
21949
  Wn(t), le ? wf() : fe && Vh();
21932
21950
  }
21933
21951
  function At(t, e, n = !1) {
21934
- l(r.star) && E(), e && !n && !l(r.name) && !l(r._yield) && ne();
21952
+ l(r.star) && E(), e && !n && !l(r.name) && !l(r._yield) && te();
21935
21953
  let s = null;
21936
21954
  l(r.name) && (e || (s = a.tokens.length, a.scopeDepth++), bt(!1));
21937
21955
  const i = a.tokens.length;
@@ -21987,7 +22005,7 @@ function yd(t, e) {
21987
22005
  ]);
21988
22006
  let n = !1;
21989
22007
  if (l(r.name) && a.contextualKeyword === d._static) {
21990
- if (J(), za()) {
22008
+ if (Q(), za()) {
21991
22009
  zt(
21992
22010
  t,
21993
22011
  /* isConstructor */
@@ -22027,7 +22045,7 @@ function kd(t, e, n) {
22027
22045
  t,
22028
22046
  /* isConstructor */
22029
22047
  !1
22030
- )) : i.contextualKeyword === d._accessor && !Qe() ? (Yt(n), En()) : Qe() ? En() : ne();
22048
+ )) : i.contextualKeyword === d._accessor && !Qe() ? (Yt(n), En()) : Qe() ? En() : te();
22031
22049
  }
22032
22050
  function zt(t, e) {
22033
22051
  le ? Pt() : fe && l(r.lessThan) && ze(), vr(t, e);
@@ -22038,7 +22056,7 @@ function Yt(t) {
22038
22056
  function io() {
22039
22057
  if (le) {
22040
22058
  const t = re(0);
22041
- y(r.question), se(t);
22059
+ y(r.question), ne(t);
22042
22060
  }
22043
22061
  }
22044
22062
  function En() {
@@ -22049,7 +22067,7 @@ function En() {
22049
22067
  be();
22050
22068
  }
22051
22069
  function vd(t, e = !1) {
22052
- le && (!t || e) && q(d._implements) || (l(r.name) && bt(!0), le ? Pt() : fe && l(r.lessThan) && ze());
22070
+ le && (!t || e) && V(d._implements) || (l(r.name) && bt(!0), le ? Pt() : fe && l(r.lessThan) && ze());
22053
22071
  }
22054
22072
  function wd() {
22055
22073
  let t = !1;
@@ -22057,13 +22075,13 @@ function wd() {
22057
22075
  }
22058
22076
  function Ka() {
22059
22077
  const t = a.tokens.length - 1;
22060
- le && ff() || (Td() ? Id() : Sd() ? (J(), l(r.comma) && _e() === r.star ? (w(r.comma), w(r.star), ve(d._as), J()) : Za(), on()) : y(r._default) ? xd() : Rd() ? Ed() : (ai(), on()), a.tokens[t].rhsEndIndex = a.tokens.length);
22078
+ le && ff() || (Td() ? Id() : Sd() ? (Q(), l(r.comma) && _e() === r.star ? (w(r.comma), w(r.star), ve(d._as), Q()) : Za(), on()) : y(r._default) ? xd() : Rd() ? Ed() : (ai(), on()), a.tokens[t].rhsEndIndex = a.tokens.length);
22061
22079
  }
22062
22080
  function xd() {
22063
22081
  if (le && mf() || fe && Rh())
22064
22082
  return;
22065
22083
  const t = a.start;
22066
- y(r._function) ? At(t, !0, !0) : q(d._async) && _e() === r._function ? (xe(d._async), y(r._function), At(t, !0, !0)) : l(r._class) ? Rt(!0, !0) : l(r.at) ? (oi(), Rt(!0, !0)) : (Ie(), be());
22084
+ y(r._function) ? At(t, !0, !0) : V(d._async) && _e() === r._function ? (xe(d._async), y(r._function), At(t, !0, !0)) : l(r._class) ? Rt(!0, !0) : l(r.at) ? (oi(), Rt(!0, !0)) : (Ie(), be());
22067
22085
  }
22068
22086
  function Ed() {
22069
22087
  le ? _f() : fe ? Lh() : Oe(!0);
@@ -22081,7 +22099,7 @@ function Sd() {
22081
22099
  if (e.type === r.comma)
22082
22100
  return !0;
22083
22101
  if (n) {
22084
- const s = C.charCodeAt(Qo(t + 4));
22102
+ const s = P.charCodeAt(Qo(t + 4));
22085
22103
  return s === p.quotationMark || s === p.apostrophe;
22086
22104
  }
22087
22105
  return !1;
@@ -22099,13 +22117,13 @@ function Id() {
22099
22117
  fe ? Uh() : Er();
22100
22118
  }
22101
22119
  function Er() {
22102
- w(r.star), q(d._as) ? Ad() : on();
22120
+ w(r.star), V(d._as) ? Ad() : on();
22103
22121
  }
22104
22122
  function Ad() {
22105
- E(), a.tokens[a.tokens.length - 1].type = r._as, J(), Za(), on();
22123
+ E(), a.tokens[a.tokens.length - 1].type = r._as, Q(), Za(), on();
22106
22124
  }
22107
22125
  function Rd() {
22108
- return le && Ta() || fe && Ph() || a.type === r._var || a.type === r._const || a.type === r._let || a.type === r._function || a.type === r._class || q(d._async) || l(r.at);
22126
+ return le && Ta() || fe && Ph() || a.type === r._var || a.type === r._const || a.type === r._let || a.type === r._function || a.type === r._class || V(d._async) || l(r.at);
22109
22127
  }
22110
22128
  function ai() {
22111
22129
  let t = !0;
@@ -22122,21 +22140,21 @@ function Cd() {
22122
22140
  df();
22123
22141
  return;
22124
22142
  }
22125
- J(), a.tokens[a.tokens.length - 1].identifierRole = G.ExportAccess, xe(d._as) && J();
22143
+ Q(), a.tokens[a.tokens.length - 1].identifierRole = G.ExportAccess, xe(d._as) && Q();
22126
22144
  }
22127
22145
  function Pd() {
22128
22146
  const t = a.snapshot();
22129
- return ve(d._module), xe(d._from) ? q(d._from) ? (a.restoreFromSnapshot(t), !0) : (a.restoreFromSnapshot(t), !1) : l(r.comma) ? (a.restoreFromSnapshot(t), !1) : (a.restoreFromSnapshot(t), !0);
22147
+ return ve(d._module), xe(d._from) ? V(d._from) ? (a.restoreFromSnapshot(t), !0) : (a.restoreFromSnapshot(t), !1) : l(r.comma) ? (a.restoreFromSnapshot(t), !1) : (a.restoreFromSnapshot(t), !0);
22130
22148
  }
22131
22149
  function Dd() {
22132
- q(d._module) && Pd() && E();
22150
+ V(d._module) && Pd() && E();
22133
22151
  }
22134
22152
  function Ja() {
22135
22153
  if (le && l(r.name) && _e() === r.eq) {
22136
22154
  _r();
22137
22155
  return;
22138
22156
  }
22139
- if (le && q(d._type)) {
22157
+ if (le && V(d._type)) {
22140
22158
  const t = ln();
22141
22159
  if (t.type === r.name && t.contextualKeyword !== d._from) {
22142
22160
  if (ve(d._type), _e() === r.eq) {
@@ -22164,7 +22182,7 @@ function Fd() {
22164
22182
  for (w(r.braceL); !y(r.braceR) && !a.error; ) {
22165
22183
  if (t)
22166
22184
  t = !1;
22167
- else if (y(r.colon) && ne(
22185
+ else if (y(r.colon) && te(
22168
22186
  "ES2015 named imports do not destructure. Use another statement for destructuring after the import."
22169
22187
  ), w(r.comma), y(r.braceR))
22170
22188
  break;
@@ -22181,13 +22199,13 @@ function Ud() {
22181
22199
  $h();
22182
22200
  return;
22183
22201
  }
22184
- Ln(), q(d._as) && (a.tokens[a.tokens.length - 1].identifierRole = G.ImportAccess, E(), Ln());
22202
+ Ln(), V(d._as) && (a.tokens[a.tokens.length - 1].identifierRole = G.ImportAccess, E(), Ln());
22185
22203
  }
22186
22204
  function Qa() {
22187
- (l(r._with) || q(d._assert) && !De()) && (E(), Zr(!1, !1));
22205
+ (l(r._with) || V(d._assert) && !De()) && (E(), Zr(!1, !1));
22188
22206
  }
22189
22207
  function Nd() {
22190
- return a.pos === 0 && C.charCodeAt(0) === p.numberSign && C.charCodeAt(1) === p.exclamationMark && na(2), ta(), Zh();
22208
+ return a.pos === 0 && P.charCodeAt(0) === p.numberSign && P.charCodeAt(1) === p.exclamationMark && na(2), ta(), Zh();
22191
22209
  }
22192
22210
  class Md {
22193
22211
  constructor(e, n) {
@@ -22437,14 +22455,14 @@ function $d(t, e, n, s) {
22437
22455
  e.nextToken();
22438
22456
  else {
22439
22457
  const T = e.currentIndex();
22440
- let L = !1, O = !1, H = !1;
22458
+ let L = !1, N = !1, q = !1;
22441
22459
  for (; On(e.currentToken()); )
22442
- e.matches1(r._static) && (L = !0), e.matches1(r.hash) && (O = !0), (e.matches1(r._declare) || e.matches1(r._abstract)) && (H = !0), e.nextToken();
22460
+ e.matches1(r._static) && (L = !0), e.matches1(r.hash) && (N = !0), (e.matches1(r._declare) || e.matches1(r._abstract)) && (q = !0), e.nextToken();
22443
22461
  if (L && e.matches1(r.braceL)) {
22444
22462
  or(e, x);
22445
22463
  continue;
22446
22464
  }
22447
- if (O) {
22465
+ if (N) {
22448
22466
  or(e, x);
22449
22467
  continue;
22450
22468
  }
@@ -22460,19 +22478,19 @@ function $d(t, e, n, s) {
22460
22478
  for (; e.currentToken().isType; )
22461
22479
  e.nextToken();
22462
22480
  if (e.matches1(r.eq)) {
22463
- const P = e.currentIndex(), j = e.currentToken().rhsEndIndex;
22464
- if (j == null)
22481
+ const C = e.currentIndex(), H = e.currentToken().rhsEndIndex;
22482
+ if (H == null)
22465
22483
  throw new Error("Expected rhsEndIndex on class field assignment.");
22466
- for (e.nextToken(); e.currentIndex() < j; )
22484
+ for (e.nextToken(); e.currentIndex() < H; )
22467
22485
  t.processToken();
22468
- let M;
22469
- L ? (M = n.claimFreeName("__initStatic"), h.push(M)) : (M = n.claimFreeName("__init"), u.push(M)), m.push({
22470
- initializerName: M,
22471
- equalsIndex: P,
22486
+ let B;
22487
+ L ? (B = n.claimFreeName("__initStatic"), h.push(B)) : (B = n.claimFreeName("__init"), u.push(B)), m.push({
22488
+ initializerName: B,
22489
+ equalsIndex: C,
22472
22490
  start: K,
22473
22491
  end: e.currentIndex()
22474
22492
  });
22475
- } else (!s || H) && g.push({ start: T, end: e.currentIndex() });
22493
+ } else (!s || q) && g.push({ start: T, end: e.currentIndex() });
22476
22494
  }
22477
22495
  return e.restoreToSnapshot(i), s ? {
22478
22496
  headerInfo: o,
@@ -24266,4 +24284,4 @@ throw new Error("Scene code must define a render function");`, c = Object.getPro
24266
24284
  }
24267
24285
  }
24268
24286
  self.setSceneCode = im;
24269
- //# sourceMappingURL=viji.worker-Dz7THSog.js.map
24287
+ //# sourceMappingURL=viji.worker-BKg5vsqf.js.map