@nexxtmove/ui 1.2.1 → 1.2.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/nuxt.js CHANGED
@@ -21,7 +21,7 @@ var o = Object.create, s = Object.defineProperty, c = Object.getOwnPropertyDescr
21
21
  enumerable: !(r = c(t, u)) || r.enumerable
22
22
  });
23
23
  return e;
24
- }, g = (e, t, n) => (n = e == null ? {} : o(u(e)), h(t || !e || !e.__esModule ? s(n, "default", {
24
+ }, g = (e, t, n) => (n = e == null ? {} : o(u(e)), h(t || !e || !e.__esModule || !d.call(e, "default") ? s(n, "default", {
25
25
  value: e,
26
26
  enumerable: !0
27
27
  }) : n, e)), _ = (e) => d.call(e, "module.exports") ? e["module.exports"] : h(s({}, "__esModule", { value: !0 }), e), v = /* @__PURE__ */ ((e) => typeof require < "u" ? require : typeof Proxy < "u" ? new Proxy(e, { get: (e, t) => (typeof require < "u" ? require : e)[t] }) : e)(function(e) {
@@ -102,7 +102,8 @@ function T(e) {
102
102
  if (i) for (let e in i) t[e] = i[e];
103
103
  }
104
104
  return t;
105
- } else if (K(e) || Qu(e)) return e;
105
+ }
106
+ if (K(e) || Qu(e)) return e;
106
107
  }
107
108
  function E(e) {
108
109
  let t = {};
@@ -508,8 +509,10 @@ function Fe(e, t, n, r, i) {
508
509
  if (typeof n == "string" ? (r = n, n = 0) : n > 2147483647 ? n = 2147483647 : n < -2147483648 && (n = -2147483648), n = +n, isNaN(n) && (n = i ? 0 : e.length - 1), n < 0 && (n = e.length + n), n >= e.length) {
509
510
  if (i) return -1;
510
511
  n = e.length - 1;
511
- } else if (n < 0) if (i) n = 0;
512
- else return -1;
512
+ } else if (n < 0) {
513
+ if (i) n = 0;
514
+ else return -1;
515
+ }
513
516
  if (typeof t == "string" && (t = H.from(t, r)), je(t)) return t.length === 0 ? -1 : Ie(e, t, n, r, i);
514
517
  if (typeof t == "number") return t &= 255, H.TYPED_ARRAY_SUPPORT && typeof Uint8Array.prototype.indexOf == "function" ? i ? Uint8Array.prototype.indexOf.call(e, t, n) : Uint8Array.prototype.lastIndexOf.call(e, t, n) : Ie(e, [t], n, r, i);
515
518
  throw TypeError("val must be string, number or Buffer");
@@ -666,7 +669,8 @@ function at(e, t) {
666
669
  if (n > 56319) {
667
670
  (t -= 3) > -1 && a.push(239, 191, 189);
668
671
  continue;
669
- } else if (o + 1 === r) {
672
+ }
673
+ if (o + 1 === r) {
670
674
  (t -= 3) > -1 && a.push(239, 191, 189);
671
675
  continue;
672
676
  }
@@ -1355,12 +1359,10 @@ function Pt() {
1355
1359
  r.exported = null;
1356
1360
  break;
1357
1361
  case "ExportNamedDeclaration": r.specifiers.length === 1 && r.specifiers[0].type === "ExportNamespaceSpecifier" && (this.castNodeTo(r, "ExportAllDeclaration"), r.exported = r.specifiers[0].exported, delete r.specifiers);
1358
- case "ExportDefaultDeclaration":
1359
- {
1360
- let { declaration: e } = r;
1361
- e?.type === "ClassDeclaration" && e.decorators?.length > 0 && e.start === r.start && this.resetStartLocation(r, n);
1362
- }
1363
- break;
1362
+ case "ExportDefaultDeclaration": {
1363
+ let { declaration: e } = r;
1364
+ e?.type === "ClassDeclaration" && e.decorators?.length > 0 && e.start === r.start && this.resetStartLocation(r, n);
1365
+ }
1364
1366
  }
1365
1367
  return r;
1366
1368
  }
@@ -2788,7 +2790,7 @@ function Pt() {
2788
2790
  }
2789
2791
  get inClassAndNotInNonArrowFunction() {
2790
2792
  let e = this.currentThisScopeFlags();
2791
- return (e & 64) > 0 && (e & 2) == 0;
2793
+ return (e & 64) > 0 && !(e & 2);
2792
2794
  }
2793
2795
  get inStaticBlock() {
2794
2796
  for (let e = this.scopeStack.length - 1;; e--) {
@@ -2823,7 +2825,7 @@ function Pt() {
2823
2825
  if (t & 8 || t & 16) {
2824
2826
  this.checkRedeclarationInScope(r, e, t, n);
2825
2827
  let i = r.names.get(e) || 0;
2826
- t & 16 ? i |= 4 : (r.firstLexicalName ||= e, i |= 2), r.names.set(e, i), t & 8 && this.maybeExportDefined(r, e);
2828
+ t & 16 ? i |= 4 : (r.firstLexicalName || (r.firstLexicalName = e), i |= 2), r.names.set(e, i), t & 8 && this.maybeExportDefined(r, e);
2827
2829
  } else if (t & 4) for (let i = this.scopeStack.length - 1; i >= 0 && (r = this.scopeStack[i], this.checkRedeclarationInScope(r, e, t, n), r.names.set(e, (r.names.get(e) || 0) | 1), this.maybeExportDefined(r, e), !(r.flags & 1667)); --i);
2828
2830
  this.parser.inModule && r.flags & 1 && this.undefinedExports.delete(e);
2829
2831
  }
@@ -2989,9 +2991,11 @@ function Pt() {
2989
2991
  addComment(e) {
2990
2992
  if (this.flowPragma === void 0) {
2991
2993
  let t = qe.exec(e.value);
2992
- if (t) if (t[1] === "flow") this.flowPragma = "flow";
2993
- else if (t[1] === "noflow") this.flowPragma = "noflow";
2994
- else throw Error("Unexpected flow pragma");
2994
+ if (t) {
2995
+ if (t[1] === "flow") this.flowPragma = "flow";
2996
+ else if (t[1] === "noflow") this.flowPragma = "noflow";
2997
+ else throw Error("Unexpected flow pragma");
2998
+ }
2995
2999
  }
2996
3000
  super.addComment(e);
2997
3001
  }
@@ -3017,7 +3021,7 @@ function Pt() {
3017
3021
  flowParseDeclareFunction(e) {
3018
3022
  this.next();
3019
3023
  let t = e.id = this.parseIdentifier(), n = this.startNode(), r = this.startNode();
3020
- this.match(47) ? n.typeParameters = this.flowParseTypeParameterDeclaration() : n.typeParameters = null, this.expect(10);
3024
+ n.typeParameters = this.match(47) ? this.flowParseTypeParameterDeclaration() : null, this.expect(10);
3021
3025
  let i = this.flowParseFunctionTypeParams();
3022
3026
  return n.params = i.params, n.rest = i.rest, n.this = i._this, this.expect(11), [n.returnType, e.predicate] = this.flowParseTypeAndPredicateInitialiser(), r.typeAnnotation = this.finishNode(n, "FunctionTypeAnnotation"), t.typeAnnotation = this.finishNode(r, "TypeAnnotation"), this.resetEndLocation(t), this.semicolon(), this.scope.declareName(e.id.name, 2048, e.id.loc.start), this.finishNode(e, "DeclareFunction");
3023
3027
  }
@@ -3036,7 +3040,7 @@ function Pt() {
3036
3040
  return this.next(), e.id = this.flowParseTypeAnnotatableIdentifier(!0), this.scope.declareName(e.id.name, 5, e.id.loc.start), this.semicolon(), this.finishNode(e, "DeclareVariable");
3037
3041
  }
3038
3042
  flowParseDeclareModule(e) {
3039
- this.scope.enter(0), this.match(134) ? e.id = super.parseExprAtom() : e.id = this.parseIdentifier();
3043
+ this.scope.enter(0), e.id = this.match(134) ? super.parseExprAtom() : this.parseIdentifier();
3040
3044
  let t = e.body = this.startNode(), n = t.body = [];
3041
3045
  for (this.expect(5); !this.match(8);) {
3042
3046
  let e = this.startNode();
@@ -3078,7 +3082,7 @@ function Pt() {
3078
3082
  return this.next(), this.flowParseInterfaceish(e, !1), this.finishNode(e, "DeclareInterface");
3079
3083
  }
3080
3084
  flowParseInterfaceish(e, t) {
3081
- if (e.id = this.flowParseRestrictedIdentifier(!t, !0), this.scope.declareName(e.id.name, t ? 17 : 8201, e.id.loc.start), this.match(47) ? e.typeParameters = this.flowParseTypeParameterDeclaration() : e.typeParameters = null, e.extends = [], this.eat(81)) do
3085
+ if (e.id = this.flowParseRestrictedIdentifier(!t, !0), this.scope.declareName(e.id.name, t ? 17 : 8201, e.id.loc.start), e.typeParameters = this.match(47) ? this.flowParseTypeParameterDeclaration() : null, e.extends = [], this.eat(81)) do
3082
3086
  e.extends.push(this.flowParseInterfaceExtends());
3083
3087
  while (!t && this.eat(12));
3084
3088
  if (t) {
@@ -3099,7 +3103,7 @@ function Pt() {
3099
3103
  }
3100
3104
  flowParseInterfaceExtends() {
3101
3105
  let e = this.startNode();
3102
- return e.id = this.flowParseQualifiedTypeIdentifier(), this.match(47) ? e.typeParameters = this.flowParseTypeParameterInstantiation() : e.typeParameters = null, this.finishNode(e, "InterfaceExtends");
3106
+ return e.id = this.flowParseQualifiedTypeIdentifier(), e.typeParameters = this.match(47) ? this.flowParseTypeParameterInstantiation() : null, this.finishNode(e, "InterfaceExtends");
3103
3107
  }
3104
3108
  flowParseInterface(e) {
3105
3109
  return this.flowParseInterfaceish(e, !1), this.finishNode(e, "InterfaceDeclaration");
@@ -3114,10 +3118,10 @@ function Pt() {
3114
3118
  return this.checkReservedType(this.state.value, this.state.startLoc, t), this.parseIdentifier(e);
3115
3119
  }
3116
3120
  flowParseTypeAlias(e) {
3117
- return e.id = this.flowParseRestrictedIdentifier(!1, !0), this.scope.declareName(e.id.name, 8201, e.id.loc.start), this.match(47) ? e.typeParameters = this.flowParseTypeParameterDeclaration() : e.typeParameters = null, e.right = this.flowParseTypeInitialiser(29), this.semicolon(), this.finishNode(e, "TypeAlias");
3121
+ return e.id = this.flowParseRestrictedIdentifier(!1, !0), this.scope.declareName(e.id.name, 8201, e.id.loc.start), e.typeParameters = this.match(47) ? this.flowParseTypeParameterDeclaration() : null, e.right = this.flowParseTypeInitialiser(29), this.semicolon(), this.finishNode(e, "TypeAlias");
3118
3122
  }
3119
3123
  flowParseOpaqueType(e, t) {
3120
- return this.expectContextual(130), e.id = this.flowParseRestrictedIdentifier(!0, !0), this.scope.declareName(e.id.name, 8201, e.id.loc.start), this.match(47) ? e.typeParameters = this.flowParseTypeParameterDeclaration() : e.typeParameters = null, e.supertype = null, this.match(14) && (e.supertype = this.flowParseTypeInitialiser(14)), e.impltype = null, t || (e.impltype = this.flowParseTypeInitialiser(29)), this.semicolon(), this.finishNode(e, "OpaqueType");
3124
+ return this.expectContextual(130), e.id = this.flowParseRestrictedIdentifier(!0, !0), this.scope.declareName(e.id.name, 8201, e.id.loc.start), e.typeParameters = this.match(47) ? this.flowParseTypeParameterDeclaration() : null, e.supertype = null, this.match(14) && (e.supertype = this.flowParseTypeInitialiser(14)), e.impltype = null, t || (e.impltype = this.flowParseTypeInitialiser(29)), this.semicolon(), this.finishNode(e, "OpaqueType");
3121
3125
  }
3122
3126
  flowParseTypeParameter(e = !1) {
3123
3127
  let t = this.state.startLoc, n = this.startNode(), r = this.flowParseVariance(), i = this.flowParseTypeAnnotatableIdentifier();
@@ -3142,7 +3146,8 @@ function Pt() {
3142
3146
  } finally {
3143
3147
  this.state.context = t;
3144
3148
  }
3145
- } else return e();
3149
+ }
3150
+ return e();
3146
3151
  }
3147
3152
  flowParseTypeParameterInstantiationInExpression() {
3148
3153
  if (this.reScan_lt() === 47) return this.flowParseTypeParameterInstantiation();
@@ -3314,10 +3319,12 @@ function Pt() {
3314
3319
  }
3315
3320
  case 10: {
3316
3321
  let e = this.startNode();
3317
- if (this.next(), !this.match(11) && !this.match(21)) if (z(this.state.type) || this.match(78)) {
3318
- let e = this.lookahead().type;
3319
- i = e !== 17 && e !== 14;
3320
- } else i = !0;
3322
+ if (this.next(), !this.match(11) && !this.match(21)) {
3323
+ if (z(this.state.type) || this.match(78)) {
3324
+ let e = this.lookahead().type;
3325
+ i = e !== 17 && e !== 14;
3326
+ } else i = !0;
3327
+ }
3321
3328
  if (i) {
3322
3329
  if (this.state.noAnonFunctionType = !1, r = this.flowParseType(), this.state.noAnonFunctionType = a, this.state.noAnonFunctionType || !(this.match(12) || this.match(11) && this.lookahead().type === 19)) return this.expect(11), r;
3323
3330
  this.eat(12);
@@ -3341,10 +3348,12 @@ function Pt() {
3341
3348
  case 78: return this.next(), this.finishNode(t, "ThisTypeAnnotation");
3342
3349
  case 55: return this.next(), this.finishNode(t, "ExistsTypeAnnotation");
3343
3350
  case 87: return this.flowParseTypeofType();
3344
- default: if (se(this.state.type)) {
3345
- let e = pe(this.state.type);
3346
- return this.next(), super.createIdentifier(t, e);
3347
- } else if (z(this.state.type)) return this.isContextual(129) ? this.flowParseInterfaceType() : this.flowIdentToTypeAnnotation(e, t, this.parseIdentifier());
3351
+ default:
3352
+ if (se(this.state.type)) {
3353
+ let e = pe(this.state.type);
3354
+ return this.next(), super.createIdentifier(t, e);
3355
+ }
3356
+ if (z(this.state.type)) return this.isContextual(129) ? this.flowParseInterfaceType() : this.flowIdentToTypeAnnotation(e, t, this.parseIdentifier());
3348
3357
  }
3349
3358
  throw this.unexpected();
3350
3359
  }
@@ -3392,7 +3401,8 @@ function Pt() {
3392
3401
  if (this.state.type === 132 && this.state.value === "_") {
3393
3402
  let e = this.state.startLoc, t = this.parseIdentifier();
3394
3403
  return this.flowParseGenericType(e, t);
3395
- } else return this.flowParseType();
3404
+ }
3405
+ return this.flowParseType();
3396
3406
  }
3397
3407
  flowParseTypeAnnotation() {
3398
3408
  let e = this.startNode();
@@ -3521,19 +3531,23 @@ function Pt() {
3521
3531
  e.exportKind = "type";
3522
3532
  let t = this.startNode();
3523
3533
  return this.next(), this.match(5) ? (e.specifiers = this.parseExportSpecifiers(!0), super.parseExportFrom(e), null) : this.flowParseTypeAlias(t);
3524
- } else if (this.isContextual(131)) {
3534
+ }
3535
+ if (this.isContextual(131)) {
3525
3536
  e.exportKind = "type";
3526
3537
  let t = this.startNode();
3527
3538
  return this.next(), this.flowParseOpaqueType(t, !1);
3528
- } else if (this.isContextual(129)) {
3539
+ }
3540
+ if (this.isContextual(129)) {
3529
3541
  e.exportKind = "type";
3530
3542
  let t = this.startNode();
3531
3543
  return this.next(), this.flowParseInterface(t);
3532
- } else if (this.isContextual(126)) {
3544
+ }
3545
+ if (this.isContextual(126)) {
3533
3546
  e.exportKind = "value";
3534
3547
  let t = this.startNode();
3535
3548
  return this.next(), this.flowParseEnumDeclaration(t);
3536
- } else return super.parseExportDeclaration(e);
3549
+ }
3550
+ return super.parseExportDeclaration(e);
3537
3551
  }
3538
3552
  eatExportStar(e) {
3539
3553
  return super.eatExportStar(e) ? !0 : this.isContextual(130) && this.lookahead().type === 55 ? (e.exportKind = "type", this.next(), this.next(), !0) : !1;
@@ -3625,7 +3639,7 @@ function Pt() {
3625
3639
  let t = e.implements = [];
3626
3640
  do {
3627
3641
  let e = this.startNode();
3628
- e.id = this.flowParseRestrictedIdentifier(!0), this.match(47) ? e.typeParameters = this.flowParseTypeParameterInstantiation() : e.typeParameters = null, t.push(this.finishNode(e, "ClassImplements"));
3642
+ e.id = this.flowParseRestrictedIdentifier(!0), e.typeParameters = this.match(47) ? this.flowParseTypeParameterInstantiation() : null, t.push(this.finishNode(e, "ClassImplements"));
3629
3643
  } while (this.eat(12));
3630
3644
  }
3631
3645
  }
@@ -3798,7 +3812,8 @@ function Pt() {
3798
3812
  this.next();
3799
3813
  let i = this.startNodeAt(t);
3800
3814
  return i.callee = e, i.typeArguments = this.flowParseTypeParameterInstantiationInExpression(), this.expect(10), i.arguments = this.parseCallExpressionArguments(), i.optional = !0, this.finishCallExpression(i, !0);
3801
- } else if (!n && this.shouldParseTypes() && (this.match(47) || this.match(51))) {
3815
+ }
3816
+ if (!n && this.shouldParseTypes() && (this.match(47) || this.match(51))) {
3802
3817
  let n = this.startNodeAt(t);
3803
3818
  n.callee = e;
3804
3819
  let i = this.tryParse(() => (n.typeArguments = this.flowParseTypeParameterInstantiationCallOrNew(), this.expect(10), n.arguments = super.parseCallExpressionArguments(), r.optionalChainMember && (n.optional = !1), this.finishCallExpression(n, r.optionalChainMember)));
@@ -3849,7 +3864,7 @@ function Pt() {
3849
3864
  let { pos: e } = this.state, t = 2;
3850
3865
  for (; [32, 9].includes(this.input.charCodeAt(e + t));) t++;
3851
3866
  let n = this.input.charCodeAt(t + e), r = this.input.charCodeAt(t + e + 1);
3852
- return n === 58 && r === 58 ? t + 2 : this.input.slice(t + e, t + e + 12) === "flow-include" ? t + 12 : n === 58 && r !== 58 ? t : !1;
3867
+ return n === 58 && r === 58 ? t + 2 : this.input.slice(t + e, t + e + 12) === "flow-include" ? t + 12 : n === 58 && r !== 58 && t;
3853
3868
  }
3854
3869
  hasFlowCommentCompletion() {
3855
3870
  if (this.input.indexOf("*/", this.state.pos) === -1) throw this.raise(_.UnterminatedComment, this.state.curPosition());
@@ -3987,10 +4002,9 @@ function Pt() {
3987
4002
  if (t.length > e.length) {
3988
4003
  for (let t of e) this.flowEnumErrorStringMemberInconsistentlyInitialized(t, { enumName: n });
3989
4004
  return t;
3990
- } else {
3991
- for (let e of t) this.flowEnumErrorStringMemberInconsistentlyInitialized(e, { enumName: n });
3992
- return e;
3993
4005
  }
4006
+ for (let e of t) this.flowEnumErrorStringMemberInconsistentlyInitialized(e, { enumName: n });
4007
+ return e;
3994
4008
  }
3995
4009
  flowEnumParseExplicitType({ enumName: e }) {
3996
4010
  if (!this.eatContextual(102)) return null;
@@ -4025,13 +4039,15 @@ function Pt() {
4025
4039
  memberName: e.id.name
4026
4040
  });
4027
4041
  return e.members = a.booleanMembers, this.expect(8), this.finishNode(e, "EnumBooleanBody");
4028
- } else if (!i && !s && o >= c) {
4042
+ }
4043
+ if (!i && !s && o >= c) {
4029
4044
  for (let e of a.defaultedMembers) this.flowEnumErrorNumberMemberNotInitialized(e.loc.start, {
4030
4045
  enumName: n,
4031
4046
  memberName: e.id.name
4032
4047
  });
4033
4048
  return e.members = a.numberMembers, this.expect(8), this.finishNode(e, "EnumNumberBody");
4034
- } else return this.raise(U.EnumInconsistentMemberValues, r, { enumName: n }), t();
4049
+ }
4050
+ return this.raise(U.EnumInconsistentMemberValues, r, { enumName: n }), t();
4035
4051
  }
4036
4052
  }
4037
4053
  }
@@ -4425,8 +4441,8 @@ function Pt() {
4425
4441
  let t = 0, n = !1;
4426
4442
  for (; t++ < 10 && this.state.pos < this.length && !(n = this.codePointAtPos(this.state.pos) === 59);) ++this.state.pos;
4427
4443
  if (n) {
4428
- let t = Ye[this.input.slice(e, this.state.pos)];
4429
- if (++this.state.pos, t) return t;
4444
+ let t = this.input.slice(e, this.state.pos), n = Ye[t];
4445
+ if (++this.state.pos, n) return n;
4430
4446
  }
4431
4447
  }
4432
4448
  return this.state.pos = e, "&";
@@ -4474,7 +4490,7 @@ function Pt() {
4474
4490
  return this.next(), e.expression = this.parseExpression(), this.setContext(T.j_expr), this.state.canStartJSXElement = !0, this.expect(8), this.finishNode(e, "JSXSpreadChild");
4475
4491
  }
4476
4492
  jsxParseExpressionContainer(e, t) {
4477
- return this.match(8) ? e.expression = this.jsxParseEmptyExpression() : e.expression = this.parseExpression(), this.setContext(t), this.state.canStartJSXElement = !0, this.expect(8), this.finishNode(e, "JSXExpressionContainer");
4493
+ return e.expression = this.match(8) ? this.jsxParseEmptyExpression() : this.parseExpression(), this.setContext(t), this.state.canStartJSXElement = !0, this.expect(8), this.finishNode(e, "JSXExpressionContainer");
4478
4494
  }
4479
4495
  jsxParseAttribute() {
4480
4496
  let e = this.startNode();
@@ -4794,7 +4810,7 @@ function Pt() {
4794
4810
  e ? this.flags |= 1 : this.flags &= -2;
4795
4811
  }
4796
4812
  init({ strictMode: e, sourceType: n, startIndex: r, startLine: i, startColumn: a }) {
4797
- this.strict = e === !1 ? !1 : e === !0 ? !0 : n === "module", this.startIndex = r, this.curLine = i, this.lineStart = -a, this.startLoc = this.endLoc = new t(i, a, r);
4813
+ this.strict = e === !1 ? !1 : e === !0 || n === "module", this.startIndex = r, this.curLine = i, this.lineStart = -a, this.startLoc = this.endLoc = new t(i, a, r);
4798
4814
  }
4799
4815
  get maybeInArrowParameters() {
4800
4816
  return (this.flags & 2) > 0;
@@ -5033,11 +5049,13 @@ function Pt() {
5033
5049
  function Tt(e, t, n, r, i, a) {
5034
5050
  let o = e.charCodeAt(t), s;
5035
5051
  if (o === 123) {
5036
- if (++t, {code: s, pos: t} = Ct(e, t, n, r, e.indexOf("}", t) - t, !0, i, a), ++t, s !== null && s > 1114111) if (i) a.invalidCodePoint(t, n, r);
5037
- else return {
5038
- code: null,
5039
- pos: t
5040
- };
5052
+ if (++t, {code: s, pos: t} = Ct(e, t, n, r, e.indexOf("}", t) - t, !0, i, a), ++t, s !== null && s > 1114111) {
5053
+ if (i) a.invalidCodePoint(t, n, r);
5054
+ else return {
5055
+ code: null,
5056
+ pos: t
5057
+ };
5058
+ }
5041
5059
  } else ({code: s, pos: t} = Ct(e, t, n, r, 4, !1, i, a));
5042
5060
  return {
5043
5061
  code: s,
@@ -6021,9 +6039,7 @@ function Pt() {
6021
6039
  case "AssignmentExpression":
6022
6040
  e.operator !== "=" && this.raise(_.MissingEqInAssignment, e.left.loc.end), this.castNodeTo(e, "AssignmentPattern"), delete e.operator, e.left.type === "VoidPattern" && this.raise(_.VoidPatternInitializer, e.left), this.toAssignable(e.left, t);
6023
6041
  break;
6024
- case "ParenthesizedExpression":
6025
- this.toAssignable(r, t);
6026
- break;
6042
+ case "ParenthesizedExpression": this.toAssignable(r, t);
6027
6043
  }
6028
6044
  }
6029
6045
  toAssignableObjectExpressionProp(e, t, n) {
@@ -6167,7 +6183,8 @@ function Pt() {
6167
6183
  let { name: t } = e;
6168
6184
  r && (r.has(t) ? this.raise(_.ParamDupe, e) : r.add(t));
6169
6185
  return;
6170
- } else c === "VoidPattern" && t.type === "CatchClause" && this.raise(_.VoidPatternCatchClauseParam, e);
6186
+ }
6187
+ c === "VoidPattern" && t.type === "CatchClause" && this.raise(_.VoidPatternCatchClauseParam, e);
6171
6188
  let u = Ut(e);
6172
6189
  o ||= u.type === "CallExpression" && (u.callee.type === "Import" || u.callee.type === "Super");
6173
6190
  let d = this.isValidLVal(c, o, !(a || (s = e.extra) != null && s.parenthesized) && t.type === "AssignmentExpression", n);
@@ -6348,7 +6365,7 @@ function Pt() {
6348
6365
  return this.match(0) || this.match(5) || this.match(55) || this.match(21) || this.match(139) || this.isLiteralPropertyName();
6349
6366
  }
6350
6367
  tsNextTokenOnSameLineAndCanFollowModifier() {
6351
- return this.next(), this.hasPrecedingLineBreak() ? !1 : this.tsTokenCanFollowModifier();
6368
+ return this.next(), !this.hasPrecedingLineBreak() && this.tsTokenCanFollowModifier();
6352
6369
  }
6353
6370
  tsNextTokenCanFollowModifier() {
6354
6371
  return this.match(106) ? (this.next(), this.tsTokenCanFollowModifier()) : this.tsNextTokenOnSameLineAndCanFollowModifier();
@@ -6413,7 +6430,7 @@ function Pt() {
6413
6430
  }
6414
6431
  tsParseImportType() {
6415
6432
  let e = this.startNode();
6416
- return this.expect(83), this.expect(10), this.match(134) ? e.argument = this.parseStringLiteral(this.state.value) : (this.raise(G.UnsupportedImportTypeArgument, this.state.startLoc), e.argument = super.parseExprAtom()), this.eat(12) ? e.options = this.tsParseImportTypeOptions() : e.options = null, this.expect(11), this.eat(16) && (e.qualifier = this.tsParseEntityName(3)), this.match(47) && (e.typeParameters = this.tsParseTypeArguments()), this.finishNode(e, "TSImportType");
6433
+ return this.expect(83), this.expect(10), this.match(134) ? e.argument = this.parseStringLiteral(this.state.value) : (this.raise(G.UnsupportedImportTypeArgument, this.state.startLoc), e.argument = super.parseExprAtom()), e.options = this.eat(12) ? this.tsParseImportTypeOptions() : null, this.expect(11), this.eat(16) && (e.qualifier = this.tsParseEntityName(3)), this.match(47) && (e.typeParameters = this.tsParseTypeArguments()), this.finishNode(e, "TSImportType");
6417
6434
  }
6418
6435
  tsParseImportTypeOptions() {
6419
6436
  let e = this.startNode();
@@ -6431,12 +6448,13 @@ function Pt() {
6431
6448
  }
6432
6449
  tsParseEntityName(e) {
6433
6450
  let t;
6434
- if (e & 1 && this.match(78)) if (e & 2) t = this.parseIdentifier(!0);
6435
- else {
6436
- let e = this.startNode();
6437
- this.next(), t = this.finishNode(e, "ThisExpression");
6438
- }
6439
- else t = this.parseIdentifier(!!(e & 1));
6451
+ if (e & 1 && this.match(78)) {
6452
+ if (e & 2) t = this.parseIdentifier(!0);
6453
+ else {
6454
+ let e = this.startNode();
6455
+ this.next(), t = this.finishNode(e, "ThisExpression");
6456
+ }
6457
+ } else t = this.parseIdentifier(!!(e & 1));
6440
6458
  for (; this.eat(16);) {
6441
6459
  let n = this.startNodeAtNode(t);
6442
6460
  n.left = t, n.right = this.parseIdentifier(!!(e & 1)), t = this.finishNode(n, "TSQualifiedName");
@@ -6458,7 +6476,7 @@ function Pt() {
6458
6476
  }
6459
6477
  tsParseTypeQuery() {
6460
6478
  let e = this.startNode();
6461
- return this.expect(87), this.match(83) ? e.exprName = this.tsParseImportType() : e.exprName = this.tsParseEntityName(3), !this.hasPrecedingLineBreak() && this.match(47) && (e.typeParameters = this.tsParseTypeArguments()), this.finishNode(e, "TSTypeQuery");
6479
+ return this.expect(87), e.exprName = this.match(83) ? this.tsParseImportType() : this.tsParseEntityName(3), !this.hasPrecedingLineBreak() && this.match(47) && (e.typeParameters = this.tsParseTypeArguments()), this.finishNode(e, "TSTypeQuery");
6462
6480
  }
6463
6481
  tsParseTypeParameter(e) {
6464
6482
  let t = this.startNode();
@@ -6518,7 +6536,8 @@ function Pt() {
6518
6536
  n[i] && this.raise(G.SetAccessorCannotHaveReturnType, n[i]);
6519
6537
  } else n.kind = "method";
6520
6538
  return this.finishNode(n, "TSMethodSignature");
6521
- } else {
6539
+ }
6540
+ {
6522
6541
  let n = e;
6523
6542
  t && (n.readonly = !0);
6524
6543
  let r = this.tsTryParseTypeAnnotation();
@@ -6832,7 +6851,8 @@ function Pt() {
6832
6851
  } finally {
6833
6852
  this.state.context = t;
6834
6853
  }
6835
- } else return e();
6854
+ }
6855
+ return e();
6836
6856
  }
6837
6857
  tsInType(e) {
6838
6858
  let t = this.state.inType;
@@ -6969,13 +6989,11 @@ function Pt() {
6969
6989
  case 128:
6970
6990
  if (this.tsCheckLineTerminator(n) && z(this.state.type)) return e.kind = "namespace", this.tsParseModuleOrNamespaceDeclaration(e);
6971
6991
  break;
6972
- case 130:
6973
- if (this.tsCheckLineTerminator(n) && z(this.state.type)) return this.tsParseTypeAliasDeclaration(e);
6974
- break;
6992
+ case 130: if (this.tsCheckLineTerminator(n) && z(this.state.type)) return this.tsParseTypeAliasDeclaration(e);
6975
6993
  }
6976
6994
  }
6977
6995
  tsCheckLineTerminator(e) {
6978
- return e ? this.hasFollowingLineBreak() ? !1 : (this.next(), !0) : !this.isLineTerminator();
6996
+ return e ? !this.hasFollowingLineBreak() && (this.next(), !0) : !this.isLineTerminator();
6979
6997
  }
6980
6998
  tsTryParseGenericAsyncArrowFunction(e) {
6981
6999
  if (!this.match(47)) return;
@@ -6998,7 +7016,7 @@ function Pt() {
6998
7016
  return fe(this.state.type);
6999
7017
  }
7000
7018
  isExportDefaultSpecifier() {
7001
- return this.tsIsDeclarationStart() ? !1 : super.isExportDefaultSpecifier();
7019
+ return !this.tsIsDeclarationStart() && super.isExportDefaultSpecifier();
7002
7020
  }
7003
7021
  parseBindingElement(e, t) {
7004
7022
  let n = t.length ? t[0].loc.start : this.state.startLoc, r = {};
@@ -7138,13 +7156,16 @@ function Pt() {
7138
7156
  this.next();
7139
7157
  let n = null;
7140
7158
  return this.isContextual(130) && this.isPotentialImportPhase(!1) ? n = this.parseMaybeImportPhase(t, !1) : t.importKind = "value", this.tsParseImportEqualsDeclaration(t, n, !0);
7141
- } else if (this.eat(29)) {
7159
+ }
7160
+ if (this.eat(29)) {
7142
7161
  let t = e;
7143
7162
  return t.expression = super.parseExpression(), this.semicolon(), this.sawUnambiguousESM = !0, this.finishNode(t, "TSExportAssignment");
7144
- } else if (this.eatContextual(93)) {
7163
+ }
7164
+ if (this.eatContextual(93)) {
7145
7165
  let t = e;
7146
7166
  return this.expectContextual(128), t.id = this.parseIdentifier(), this.semicolon(), this.finishNode(t, "TSNamespaceExportDeclaration");
7147
- } else return super.parseExport(e, t);
7167
+ }
7168
+ return super.parseExport(e, t);
7148
7169
  }
7149
7170
  isAbstractClass() {
7150
7171
  return this.isContextual(124) && this.isLookaheadContextual("class");
@@ -7208,12 +7229,10 @@ function Pt() {
7208
7229
  return this.next(), this.tsParseDeclaration(e, 128, !1, t);
7209
7230
  }
7210
7231
  break;
7211
- case 130:
7212
- if (this.nextTokenIsIdentifierOnSameLine()) {
7213
- let e = this.startNode();
7214
- return this.next(), this.tsParseTypeAliasDeclaration(e);
7215
- }
7216
- break;
7232
+ case 130: if (this.nextTokenIsIdentifierOnSameLine()) {
7233
+ let e = this.startNode();
7234
+ return this.next(), this.tsParseTypeAliasDeclaration(e);
7235
+ }
7217
7236
  }
7218
7237
  return super.parseStatementContent(e, t);
7219
7238
  }
@@ -7324,7 +7343,7 @@ function Pt() {
7324
7343
  i && (t.typeParameters = i), super.pushClassPrivateMethod(e, t, n, r);
7325
7344
  }
7326
7345
  declareClassPrivateMethodInScope(e, t) {
7327
- e.type !== "TSDeclareMethod" && (e.type === "MethodDefinition" && e.value.body == null || super.declareClassPrivateMethodInScope(e, t));
7346
+ e.type !== "TSDeclareMethod" && (e.type !== "MethodDefinition" || e.value.body != null) && super.declareClassPrivateMethodInScope(e, t);
7328
7347
  }
7329
7348
  parseClassSuper(e) {
7330
7349
  super.parseClassSuper(e), e.superClass && (this.match(47) || this.match(51)) && (e.superTypeParameters = this.tsParseTypeArgumentsInExpression()), this.eatContextual(113) && (e.implements = this.tsParseHeritageClause("implements"));
@@ -7668,8 +7687,8 @@ function Pt() {
7668
7687
  if (!Te(e) && e !== 92) return !1;
7669
7688
  }
7670
7689
  return !0;
7671
- } else if (e === 92) return !0;
7672
- else return !1;
7690
+ }
7691
+ return e === 92;
7673
7692
  }
7674
7693
  nextTokenIsIdentifierAndNotTSRelationalOperatorOnSameLine() {
7675
7694
  let e = this.nextTokenInLineStart(), t = this.codePointAtPos(e);
@@ -7782,10 +7801,11 @@ function Pt() {
7782
7801
  let r = t ? "ClassDeclaration" : "ClassExpression";
7783
7802
  this.next();
7784
7803
  let i = this.state.strict, a = this.parsePlaceholder("Identifier");
7785
- if (a) if (this.match(81) || this.match(133) || this.match(5)) e.id = a;
7786
- else if (n || !t) return e.id = null, e.body = this.finishPlaceholder(a, "ClassBody"), this.finishNode(e, r);
7787
- else throw this.raise(rn.ClassNameIsRequired, this.state.startLoc);
7788
- else this.parseClassId(e, t, n);
7804
+ if (a) {
7805
+ if (this.match(81) || this.match(133) || this.match(5)) e.id = a;
7806
+ else if (n || !t) return e.id = null, e.body = this.finishPlaceholder(a, "ClassBody"), this.finishNode(e, r);
7807
+ else throw this.raise(rn.ClassNameIsRequired, this.state.startLoc);
7808
+ } else this.parseClassId(e, t, n);
7789
7809
  return super.parseClassSuper(e), e.body = this.parsePlaceholder("ClassBody") || super.parseClassBody(!!e.superClass, i), this.finishNode(e, r);
7790
7810
  }
7791
7811
  parseExport(e, t) {
@@ -7962,8 +7982,8 @@ function Pt() {
7962
7982
  e.doubleProtoLoc != null && e.doubleProtoLoc.index >= r && (e.doubleProtoLoc = null), e.shorthandAssignLoc != null && e.shorthandAssignLoc.index >= r && (e.shorthandAssignLoc = null), e.privateKeyLoc != null && e.privateKeyLoc.index >= r && (this.checkDestructuringPrivate(e), e.privateKeyLoc = null), e.voidPatternLoc != null && e.voidPatternLoc.index >= r && (e.voidPatternLoc = null);
7963
7983
  } else t.left = o;
7964
7984
  return this.next(), t.right = this.parseMaybeAssign(), this.checkLVal(o, this.finishNode(t, "AssignmentExpression"), void 0, void 0, void 0, void 0, r === "||=" || r === "&&=" || r === "??="), t;
7965
- } else i && this.checkExpressionErrors(e, !0);
7966
- if (r) {
7985
+ }
7986
+ if (i && this.checkExpressionErrors(e, !0), r) {
7967
7987
  let { type: e } = this.state;
7968
7988
  if ((this.hasPlugin("v8intrinsic") ? re(e) : re(e) && !this.match(54)) && !this.isAmbiguousPrefixOrIdentifier()) return this.raiseOverwrite(_.YieldNotInGeneratorFunction, n), this.parseYield(n);
7969
7989
  }
@@ -8123,7 +8143,7 @@ function Pt() {
8123
8143
  let o = this.startNodeAt(t);
8124
8144
  o.callee = e;
8125
8145
  let { maybeAsyncArrow: s, optionalChainMember: c } = n;
8126
- s && (this.expressionScope.enter(It()), a = new zt()), c && (o.optional = r), r ? o.arguments = this.parseCallExpressionArguments() : o.arguments = this.parseCallExpressionArguments(e.type !== "Super", o, a);
8146
+ s && (this.expressionScope.enter(It()), a = new zt()), c && (o.optional = r), o.arguments = r ? this.parseCallExpressionArguments() : this.parseCallExpressionArguments(e.type !== "Super", o, a);
8127
8147
  let l = this.finishCallExpression(o, c);
8128
8148
  return s && this.shouldParseAsyncArrow() && !r ? (n.stop = !0, this.checkDestructuringPrivate(a), this.expressionScope.validateAsPattern(), this.expressionScope.exit(), l = this.parseAsyncArrowFromCallExpression(this.startNodeAt(t), l)) : (s && (this.checkExpressionErrors(a, !0), this.expressionScope.exit()), this.toReferencedArguments(l)), this.state.maybeInArrowParameters = i, l;
8129
8149
  }
@@ -8138,8 +8158,10 @@ function Pt() {
8138
8158
  return e.type === "Identifier" && e.name === "async" && this.state.lastTokEndLoc.index === e.end && !this.canInsertSemicolon() && e.end - e.start === 5 && this.offsetToSourcePos(e.start) === this.state.potentialArrowAt;
8139
8159
  }
8140
8160
  finishCallExpression(e, t) {
8141
- if (e.callee.type === "Import") if (e.arguments.length === 0 || e.arguments.length > 2) this.raise(_.ImportCallArity, e);
8142
- else for (let t of e.arguments) t.type === "SpreadElement" && this.raise(_.ImportCallSpreadArgument, t);
8161
+ if (e.callee.type === "Import") {
8162
+ if (e.arguments.length === 0 || e.arguments.length > 2) this.raise(_.ImportCallArity, e);
8163
+ else for (let t of e.arguments) t.type === "SpreadElement" && this.raise(_.ImportCallSpreadArgument, t);
8164
+ }
8143
8165
  return this.finishNode(e, t ? "OptionalCallExpression" : "CallExpression");
8144
8166
  }
8145
8167
  parseCallExpressionArguments(e, t, n) {
@@ -8231,7 +8253,8 @@ function Pt() {
8231
8253
  if (e === 90) return this.resetPreviousNodeTrailingComments(n), this.parseDo(this.startNodeAtNode(n), !0);
8232
8254
  }
8233
8255
  return e && this.match(19) && !this.canInsertSemicolon() ? (this.next(), this.parseArrowExpression(this.startNodeAtNode(n), [n], !1)) : n;
8234
- } else throw this.unexpected();
8256
+ }
8257
+ throw this.unexpected();
8235
8258
  }
8236
8259
  }
8237
8260
  parseTopicReferenceThenEqualsSign(e, t) {
@@ -8292,7 +8315,8 @@ function Pt() {
8292
8315
  if (this.next(), this.isContextual(105) || this.isContextual(97)) {
8293
8316
  let t = this.isContextual(105);
8294
8317
  return this.expectPlugin(t ? "sourcePhaseImports" : "deferredImportEvaluation"), this.next(), e.phase = t ? "source" : "defer", this.parseImportCall(e);
8295
- } else {
8318
+ }
8319
+ {
8296
8320
  let t = this.createIdentifierAt(this.startNodeAtNode(e), "import", this.state.lastTokStartLoc);
8297
8321
  return this.isContextual(101) && (this.inModule || this.raise(_.ImportMetaOutsideModule, t), this.sawUnambiguousESM = !0), this.parseMetaProperty(e, t, "meta");
8298
8322
  }
@@ -8611,7 +8635,8 @@ function Pt() {
8611
8635
  if ((this.state.strict ? r ? Ne : je : Ae)(e, this.inModule)) {
8612
8636
  this.raise(_.UnexpectedReservedWord, t, { reservedWord: e });
8613
8637
  return;
8614
- } else if (e === "yield") {
8638
+ }
8639
+ if (e === "yield") {
8615
8640
  if (this.prodParam.hasYield) {
8616
8641
  this.raise(_.YieldBindingIdentifier, t);
8617
8642
  return;
@@ -8681,7 +8706,8 @@ function Pt() {
8681
8706
  if (this.isSimpleReference(e)) {
8682
8707
  let n = this.startNodeAt(t);
8683
8708
  return n.callee = e, this.finishNode(n, "PipelineBareFunction");
8684
- } else {
8709
+ }
8710
+ {
8685
8711
  let n = this.startNodeAt(t);
8686
8712
  return this.checkSmartPipeTopicBodyEarlyErrors(t), n.expression = e, this.finishNode(n, "PipelineTopicExpression");
8687
8713
  }
@@ -8721,7 +8747,8 @@ function Pt() {
8721
8747
  } finally {
8722
8748
  this.state.topicContext = t;
8723
8749
  }
8724
- } else return e();
8750
+ }
8751
+ return e();
8725
8752
  }
8726
8753
  withSoloAwaitPermittingContext(e) {
8727
8754
  let t = this.state.soloAwait;
@@ -8930,8 +8957,8 @@ function Pt() {
8930
8957
  if (!Te(e) && e !== 92) return !1;
8931
8958
  }
8932
8959
  return !0;
8933
- } else if (e === 92) return !0;
8934
- else return !1;
8960
+ }
8961
+ return e === 92;
8935
8962
  }
8936
8963
  chStartsBindingPattern(e) {
8937
8964
  return e === 91 || e === 123;
@@ -9111,8 +9138,8 @@ function Pt() {
9111
9138
  this.checkDestructuringPrivate(i), this.toAssignable(a, !0);
9112
9139
  let n = o ? "ForOfStatement" : "ForInStatement";
9113
9140
  return this.checkLVal(a, { type: n }), this.parseForIn(e, a, t);
9114
- } else this.checkExpressionErrors(i, !0);
9115
- return t !== null && this.unexpected(t), this.parseFor(e, a);
9141
+ }
9142
+ return this.checkExpressionErrors(i, !0), t !== null && this.unexpected(t), this.parseFor(e, a);
9116
9143
  }
9117
9144
  parseFunctionStatement(e, t, n) {
9118
9145
  return this.next(), this.parseFunction(e, 1 | (n ? 2 : 0) | (t ? 8 : 0));
@@ -9287,7 +9314,8 @@ function Pt() {
9287
9314
  if (this.isClassMethod()) {
9288
9315
  let r = t;
9289
9316
  return r.kind = "method", r.computed = !1, r.key = n, r.static = !1, this.pushClassMethod(e, r, !1, !1, !1, !1), !0;
9290
- } else if (this.isClassProperty()) {
9317
+ }
9318
+ if (this.isClassProperty()) {
9291
9319
  let r = t;
9292
9320
  return r.computed = !1, r.key = n, r.static = !1, e.body.push(this.parseClassProperty(r)), !0;
9293
9321
  }
@@ -9563,7 +9591,7 @@ function Pt() {
9563
9591
  return this.parseIdentifier(!0);
9564
9592
  }
9565
9593
  isJSONModuleImport(e) {
9566
- return e.assertions == null ? !1 : e.assertions.some(({ key: e, value: t }) => t.value === "json" && (e.type === "Identifier" ? e.name === "type" : e.value === "type"));
9594
+ return e.assertions != null && e.assertions.some(({ key: e, value: t }) => t.value === "json" && (e.type === "Identifier" ? e.name === "type" : e.value === "type"));
9567
9595
  }
9568
9596
  checkImportReflection(e) {
9569
9597
  let { specifiers: t } = e, n = t.length === 1 ? t[0].type : null;
@@ -9622,7 +9650,7 @@ function Pt() {
9622
9650
  do {
9623
9651
  if (this.match(8)) break;
9624
9652
  let n = this.startNode(), r = this.state.value;
9625
- if (t.has(r) && this.raise(_.ModuleAttributesWithDuplicateKeys, this.state.startLoc, { key: r }), t.add(r), this.match(134) ? n.key = this.parseStringLiteral(r) : n.key = this.parseIdentifier(!0), this.expect(14), !this.match(134)) throw this.raise(_.ModuleAttributeInvalidValue, this.state.startLoc);
9653
+ if (t.has(r) && this.raise(_.ModuleAttributesWithDuplicateKeys, this.state.startLoc, { key: r }), t.add(r), n.key = this.match(134) ? this.parseStringLiteral(r) : this.parseIdentifier(!0), this.expect(14), !this.match(134)) throw this.raise(_.ModuleAttributeInvalidValue, this.state.startLoc);
9626
9654
  n.value = this.parseStringLiteral(this.state.value), e.push(this.finishNode(n, "ImportAttribute"));
9627
9655
  } while (this.eat(12));
9628
9656
  return this.expect(8), e;
@@ -9649,8 +9677,8 @@ function Pt() {
9649
9677
  if (t) {
9650
9678
  let n = this.startNodeAtNode(t);
9651
9679
  return n.local = t, e.specifiers.push(this.finishImportSpecifier(n, "ImportDefaultSpecifier")), !0;
9652
- } else if (V(this.state.type)) return this.parseImportSpecifierLocal(e, this.startNode(), "ImportDefaultSpecifier"), !0;
9653
- return !1;
9680
+ }
9681
+ return V(this.state.type) ? (this.parseImportSpecifierLocal(e, this.startNode(), "ImportDefaultSpecifier"), !0) : !1;
9654
9682
  }
9655
9683
  maybeParseStarImportSpecifier(e) {
9656
9684
  if (this.match(55)) {
@@ -9722,7 +9750,8 @@ function Pt() {
9722
9750
  } catch {}
9723
9751
  throw n;
9724
9752
  }
9725
- } else return wn(t, e).parse();
9753
+ }
9754
+ return wn(t, e).parse();
9726
9755
  }
9727
9756
  function xn(e, t) {
9728
9757
  let n = wn(t, e);
@@ -9774,9 +9803,10 @@ function It(e, t, n = !1, r = [], i = /* @__PURE__ */ Object.create(null)) {
9774
9803
  else if (dp(e)) e.scopeIds ? e.scopeIds.forEach((e) => Kt(e, i)) : Bt(e, (t) => qt(e, t, i));
9775
9804
  else if (e.type === "BlockStatement") e.scopeIds ? e.scopeIds.forEach((e) => Kt(e, i)) : Vt(e, (t) => qt(e, t, i));
9776
9805
  else if (e.type === "SwitchStatement") e.scopeIds ? e.scopeIds.forEach((e) => Kt(e, i)) : Wt(e, !1, (t) => qt(e, t, i));
9777
- else if (e.type === "CatchClause" && e.param) if (e.scopeIds) e.scopeIds.forEach((e) => Kt(e, i));
9778
- else for (let t of Gt(e.param)) qt(e, t, i);
9779
- else Ht(e) && (e.scopeIds ? e.scopeIds.forEach((e) => Kt(e, i)) : Ut(e, !1, (t) => qt(e, t, i)));
9806
+ else if (e.type === "CatchClause" && e.param) {
9807
+ if (e.scopeIds) e.scopeIds.forEach((e) => Kt(e, i));
9808
+ else for (let t of Gt(e.param)) qt(e, t, i);
9809
+ } else Ht(e) && (e.scopeIds ? e.scopeIds.forEach((e) => Kt(e, i)) : Ut(e, !1, (t) => qt(e, t, i)));
9780
9810
  },
9781
9811
  leave(e, t) {
9782
9812
  if (t && r.pop(), e !== a && e.scopeIds) for (let t of e.scopeIds) i[t]--, i[t] === 0 && delete i[t];
@@ -9862,9 +9892,7 @@ function Gt(e, t = []) {
9862
9892
  case "RestElement":
9863
9893
  Gt(e.argument, t);
9864
9894
  break;
9865
- case "AssignmentPattern":
9866
- Gt(e.left, t);
9867
- break;
9895
+ case "AssignmentPattern": Gt(e.left, t);
9868
9896
  }
9869
9897
  return t;
9870
9898
  }
@@ -9885,9 +9913,9 @@ function G(e, t, n) {
9885
9913
  case "PrivateName": return !1;
9886
9914
  case "ClassMethod":
9887
9915
  case "ClassPrivateMethod":
9888
- case "ObjectMethod": return t.key === e ? !!t.computed : !1;
9916
+ case "ObjectMethod": return t.key === e && !!t.computed;
9889
9917
  case "ObjectProperty": return t.key === e ? !!t.computed : !n || n.type !== "ObjectPattern";
9890
- case "ClassProperty": return t.key === e ? !!t.computed : !0;
9918
+ case "ClassProperty": return t.key !== e || !!t.computed;
9891
9919
  case "ClassPrivateProperty": return t.key !== e;
9892
9920
  case "ClassDeclaration":
9893
9921
  case "ClassExpression": return t.superClass === e;
@@ -9902,7 +9930,7 @@ function G(e, t, n) {
9902
9930
  case "FunctionExpression": return !1;
9903
9931
  case "ExportNamespaceSpecifier":
9904
9932
  case "ExportDefaultSpecifier": return !1;
9905
- case "ExportSpecifier": return n?.source ? !1 : t.local === e;
9933
+ case "ExportSpecifier": return !n?.source && t.local === e;
9906
9934
  case "ImportDefaultSpecifier":
9907
9935
  case "ImportNamespaceSpecifier":
9908
9936
  case "ImportSpecifier": return !1;
@@ -9913,7 +9941,7 @@ function G(e, t, n) {
9913
9941
  case "MetaProperty": return !1;
9914
9942
  case "ObjectTypeProperty": return t.key !== e;
9915
9943
  case "TSEnumMember": return t.id !== e;
9916
- case "TSPropertySignature": return t.key === e ? !!t.computed : !0;
9944
+ case "TSPropertySignature": return t.key !== e || !!t.computed;
9917
9945
  }
9918
9946
  return !0;
9919
9947
  }
@@ -10129,11 +10157,13 @@ function On(e) {
10129
10157
  let t = Mp.whitespace !== "preserve", n = !1;
10130
10158
  for (let r = 0; r < e.length; r++) {
10131
10159
  let i = e[r];
10132
- if (i.type === 2) if (zp) i.content = i.content.replace(qp, "\n");
10133
- else if (hn(i.content)) {
10134
- let a = e[r - 1] && e[r - 1].type, o = e[r + 1] && e[r + 1].type;
10135
- !a || !o || t && (a === 3 && (o === 3 || o === 1) || a === 1 && (o === 3 || o === 1 && kn(i.content))) ? (n = !0, e[r] = null) : i.content = " ";
10136
- } else t && (i.content = An(i.content));
10160
+ if (i.type === 2) {
10161
+ if (zp) i.content = i.content.replace(qp, "\n");
10162
+ else if (hn(i.content)) {
10163
+ let a = e[r - 1] && e[r - 1].type, o = e[r + 1] && e[r + 1].type;
10164
+ !a || !o || t && (a === 3 && (o === 3 || o === 1) || a === 1 && (o === 3 || o === 1 && kn(i.content))) ? (n = !0, e[r] = null) : i.content = " ";
10165
+ } else t && (i.content = An(i.content));
10166
+ }
10137
10167
  }
10138
10168
  return n ? e.filter(Boolean) : e;
10139
10169
  }
@@ -10189,7 +10219,7 @@ function In(e, t = !1, n, r = 0, i = 0) {
10189
10219
  if (_p(e)) return a.ast = null, a;
10190
10220
  try {
10191
10221
  let t = Mp.expressionPlugins, n = { plugins: t ? [...t, "typescript"] : ["typescript"] };
10192
- i === 2 ? a.ast = cp.parse(` ${e} `, n).program : i === 1 ? a.ast = cp.parseExpression(`(${e})=>{}`, n) : a.ast = cp.parseExpression(`(${e})`, n);
10222
+ a.ast = i === 2 ? cp.parse(` ${e} `, n).program : i === 1 ? cp.parseExpression(`(${e})=>{}`, n) : cp.parseExpression(`(${e})`, n);
10193
10223
  } catch (e) {
10194
10224
  a.ast = !1, Ln(46, n.start.offset, e.message);
10195
10225
  }
@@ -10307,7 +10337,8 @@ function Un(e, t) {
10307
10337
  t.removeHelper(Gd), t.removeHelper(ue(t.inSSR, i.isComponent)), i.isBlock = !1, t.helper(le(t.inSSR, i.isComponent));
10308
10338
  }
10309
10339
  return n.set(e, r), r;
10310
- } else return n.set(e, 0), 0;
10340
+ }
10341
+ return n.set(e, 0), 0;
10311
10342
  case 2:
10312
10343
  case 3: return 3;
10313
10344
  case 9:
@@ -10501,9 +10532,7 @@ function Zn(e, t) {
10501
10532
  case 10:
10502
10533
  case 11:
10503
10534
  case 1:
10504
- case 0:
10505
- Xn(e, t);
10506
- break;
10535
+ case 0: Xn(e, t);
10507
10536
  }
10508
10537
  t.currentNode = e;
10509
10538
  let i = r.length;
@@ -10613,10 +10642,13 @@ function tr() {
10613
10642
  if (!r.path) return t;
10614
10643
  n = r.path;
10615
10644
  }
10616
- for (var o = e.isAbsolute(n), s = [], c = 0, l = 0;;) if (c = l, l = n.indexOf("/", c), l === -1) {
10617
- s.push(n.slice(c));
10618
- break;
10619
- } else for (s.push(n.slice(c, l)); l < n.length && n[l] === "/";) l++;
10645
+ for (var o = e.isAbsolute(n), s = [], c = 0, l = 0;;) {
10646
+ if (c = l, l = n.indexOf("/", c), l === -1) {
10647
+ s.push(n.slice(c));
10648
+ break;
10649
+ }
10650
+ for (s.push(n.slice(c, l)); l < n.length && n[l] === "/";) l++;
10651
+ }
10620
10652
  for (var u, d = 0, l = s.length - 1; l >= 0; l--) u = s[l], u === "." ? s.splice(l, 1) : u === ".." ? d++ : d > 0 && (u === "" ? (s.splice(l + 1, d), d = 0) : (s.splice(l, 2), d--));
10621
10653
  return n = s.join("/"), n === "" && (n = o ? "/" : "."), r ? (r.path = n, a(r)) : n;
10622
10654
  });
@@ -11035,15 +11067,17 @@ function sr() {
11035
11067
  let c = e.compareByGeneratedPositionsDeflatedNoLine;
11036
11068
  function l(e, t) {
11037
11069
  let n = e.length, r = e.length - t;
11038
- if (!(r <= 1)) if (r == 2) {
11039
- let n = e[t], r = e[t + 1];
11040
- c(n, r) > 0 && (e[t] = r, e[t + 1] = n);
11041
- } else if (r < 20) for (let r = t; r < n; r++) for (let n = r; n > t; n--) {
11042
- let t = e[n - 1], r = e[n];
11043
- if (c(t, r) <= 0) break;
11044
- e[n - 1] = r, e[n] = t;
11070
+ if (!(r <= 1)) {
11071
+ if (r == 2) {
11072
+ let n = e[t], r = e[t + 1];
11073
+ c(n, r) > 0 && (e[t] = r, e[t + 1] = n);
11074
+ } else if (r < 20) for (let r = t; r < n; r++) for (let n = r; n > t; n--) {
11075
+ let t = e[n - 1], r = e[n];
11076
+ if (c(t, r) <= 0) break;
11077
+ e[n - 1] = r, e[n] = t;
11078
+ }
11079
+ else i(e, c, t);
11045
11080
  }
11046
- else i(e, c, t);
11047
11081
  }
11048
11082
  o.prototype._parseMappings = function(t, n) {
11049
11083
  var a = 1, o = 0, c = 0, u = 0, d = 0, f = 0, p = t.length, m = 0, h = {}, g = [], _ = [], v, y, b, x;
@@ -11253,11 +11287,13 @@ function cr() {
11253
11287
  }
11254
11288
  }, u = 1, d = 0, f = null;
11255
11289
  return r.eachMapping(function(e) {
11256
- if (f !== null) if (u < e.generatedLine) p(f, l()), u++, d = 0;
11257
- else {
11258
- var t = s[c] || "", n = t.substr(0, e.generatedColumn - d);
11259
- s[c] = t.substr(e.generatedColumn - d), d = e.generatedColumn, p(f, n), f = e;
11260
- return;
11290
+ if (f !== null) {
11291
+ if (u < e.generatedLine) p(f, l()), u++, d = 0;
11292
+ else {
11293
+ var t = s[c] || "", n = t.substr(0, e.generatedColumn - d);
11294
+ s[c] = t.substr(e.generatedColumn - d), d = e.generatedColumn, p(f, n), f = e;
11295
+ return;
11296
+ }
11261
11297
  }
11262
11298
  for (; u < e.generatedLine;) o.add(l()), u++;
11263
11299
  if (d < e.generatedColumn) {
@@ -11705,17 +11741,20 @@ function Br(e, t, n = !1, r = !1, i = Object.create(t.identifiers)) {
11705
11741
  if (Ur(s) || s === "setup-reactive-const" || i[e]) return e;
11706
11742
  if (s === "setup-ref") return `${e}.value`;
11707
11743
  if (s === "setup-maybe-ref") return a || l || u ? `${e}.value` : m(e);
11708
- if (s === "setup-let") if (a) {
11709
- let { right: r, operator: i } = n, a = Hr(Br(R(c.slice(r.start - 1, r.end - 1), !1), t, !1, !1, f));
11710
- return `${t.helperString(Cf)}(${e})${t.isTS ? " //@ts-ignore\n" : ""} ? ${e}.value ${i} ${a} : ${e}`;
11711
- } else if (l) {
11712
- r.start = n.start, r.end = n.end;
11713
- let { prefix: i, operator: a } = n, o = i ? a : "", s = i ? "" : a;
11714
- return `${t.helperString(Cf)}(${e})${t.isTS ? " //@ts-ignore\n" : ""} ? ${o}${e}.value${s} : ${o}${e}${s}`;
11715
- } else if (u) return e;
11716
- else return m(e);
11717
- else if (s === "props") return S(e);
11718
- else if (s === "props-aliased") return S(o.__propsAliases[e]);
11744
+ if (s === "setup-let") {
11745
+ if (a) {
11746
+ let { right: r, operator: i } = n, a = Hr(Br(R(c.slice(r.start - 1, r.end - 1), !1), t, !1, !1, f));
11747
+ return `${t.helperString(Cf)}(${e})${t.isTS ? " //@ts-ignore\n" : ""} ? ${e}.value ${i} ${a} : ${e}`;
11748
+ }
11749
+ if (l) {
11750
+ r.start = n.start, r.end = n.end;
11751
+ let { prefix: i, operator: a } = n, o = i ? a : "", s = i ? "" : a;
11752
+ return `${t.helperString(Cf)}(${e})${t.isTS ? " //@ts-ignore\n" : ""} ? ${o}${e}.value${s} : ${o}${e}${s}`;
11753
+ }
11754
+ return u ? e : m(e);
11755
+ }
11756
+ if (s === "props") return S(e);
11757
+ if (s === "props-aliased") return S(o.__propsAliases[e]);
11719
11758
  } else if (s && s.startsWith("setup") || s === "literal-const") return `$setup.${e}`;
11720
11759
  else if (s === "props-aliased") return `$props['${o.__propsAliases[e]}']`;
11721
11760
  else if (s) return `$${s}.${e}`;
@@ -11724,7 +11763,7 @@ function Br(e, t, n = !1, r = !1, i = Object.create(t.identifiers)) {
11724
11763
  if (l === !1) return e;
11725
11764
  if (l === null || !l && _p(c)) {
11726
11765
  let r = t.identifiers[c], i = md(c), a = bm(c);
11727
- return !n && !r && !a && (!i || o[c]) ? (Ur(o[c]) && (e.constType = 1), e.content = s(c)) : r || (a ? e.constType = 3 : e.constType = 2), e;
11766
+ return !n && !r && !a && (!i || o[c]) ? (Ur(o[c]) && (e.constType = 1), e.content = s(c)) : r || (e.constType = a ? 3 : 2), e;
11728
11767
  }
11729
11768
  if (!l) {
11730
11769
  let i = r ? ` ${c} ` : `(${c})${n ? "=>{}" : ""}`;
@@ -11820,14 +11859,17 @@ function Kr(e, t, n) {
11820
11859
  }
11821
11860
  function qr(e, t, n) {
11822
11861
  let { helper: r } = n, i = L("key", R(`${t}`, !1, jf, 2)), { children: a } = e, o = a[0];
11823
- if (a.length !== 1 || o.type !== 1) if (a.length === 1 && o.type === 11) {
11824
- let e = o.codegenNode;
11825
- return un(e, i, n), e;
11826
- } else {
11827
- let t = 64;
11828
- return !e.isTemplateIf && a.filter((e) => e.type !== 3).length === 1 && (t |= 2048), P(n, r(Bd), I([i]), a, t, void 0, void 0, !0, !1, !1, e.loc);
11862
+ if (a.length !== 1 || o.type !== 1) {
11863
+ if (a.length === 1 && o.type === 11) {
11864
+ let e = o.codegenNode;
11865
+ return un(e, i, n), e;
11866
+ }
11867
+ {
11868
+ let t = 64;
11869
+ return !e.isTemplateIf && a.filter((e) => e.type !== 3).length === 1 && (t |= 2048), P(n, r(Bd), I([i]), a, t, void 0, void 0, !0, !1, !1, e.loc);
11870
+ }
11829
11871
  }
11830
- else {
11872
+ {
11831
11873
  let e = o.codegenNode, t = mn(e);
11832
11874
  return t.type === 13 && de(t, n), un(t, i, n), e;
11833
11875
  }
@@ -11843,9 +11885,10 @@ function Jr(e, t) {
11843
11885
  return !0;
11844
11886
  }
11845
11887
  function Yr(e) {
11846
- for (;;) if (e.type === 19) if (e.alternate.type === 19) e = e.alternate;
11847
- else return e;
11848
- else e.type === 20 && (e = e.value);
11888
+ for (;;) if (e.type === 19) {
11889
+ if (e.alternate.type === 19) e = e.alternate;
11890
+ else return e;
11891
+ } else e.type === 20 && (e = e.value);
11849
11892
  }
11850
11893
  function Xr(e, t, n, r) {
11851
11894
  if (!t.exp) {
@@ -11963,19 +12006,19 @@ function ni(e) {
11963
12006
  if (ni(n.branches)) return !0;
11964
12007
  break;
11965
12008
  case 10:
11966
- case 11:
11967
- if (ni(n.children)) return !0;
11968
- break;
12009
+ case 11: if (ni(n.children)) return !0;
11969
12010
  }
11970
12011
  }
11971
12012
  return !1;
11972
12013
  }
11973
12014
  function ri(e, t, n = !1) {
11974
12015
  let { tag: r } = e, i = ui(r), a = en(e, "is", !1, !0);
11975
- if (a) if (i) {
11976
- let e;
11977
- if (a.type === 6 ? e = a.value && R(a.value.content, !0) : (e = a.exp, e ||= (e = R("is", !1, a.arg.loc), a.exp = Br(e, t))), e) return B(t.helper(ef), [e]);
11978
- } else a.type === 6 && a.value.content.startsWith("vue:") && (r = a.value.content.slice(4));
12016
+ if (a) {
12017
+ if (i) {
12018
+ let e;
12019
+ if (a.type === 6 ? e = a.value && R(a.value.content, !0) : (e = a.exp, e ||= (e = R("is", !1, a.arg.loc), a.exp = Br(e, t))), e) return B(t.helper(ef), [e]);
12020
+ } else a.type === 6 && a.value.content.startsWith("vue:") && (r = a.value.content.slice(4));
12021
+ }
11979
12022
  let o = Yt(r) || t.isBuiltInComponent(r);
11980
12023
  if (o) return n || t.helper(o), o;
11981
12024
  {
@@ -12061,9 +12104,7 @@ function ai(e, t, n = e.props, r, i, a = !1) {
12061
12104
  r ? T = B(t.helper(ff), [T]) : (i && !hp(i.value) && (i.value = B(t.helper(uf), [i.value])), a && (_ || a.value.type === 4 && a.value.content.trim()[0] === "[" || a.value.type === 17) && (a.value = B(t.helper(df), [a.value])));
12062
12105
  break;
12063
12106
  case 14: break;
12064
- default:
12065
- T = B(t.helper(ff), [B(t.helper(pf), [T])]);
12066
- break;
12107
+ default: T = B(t.helper(ff), [B(t.helper(pf), [T])]);
12067
12108
  }
12068
12109
  return {
12069
12110
  props: T,
@@ -12205,19 +12246,21 @@ function yi(e, t) {
12205
12246
  for (let t = 0; t < e.props.length; t++) {
12206
12247
  let i = e.props[t];
12207
12248
  if (i.type === 6) n += ` ${i.name}`, i.value && (n += `="${A(i.value.content)}"`);
12208
- else if (i.type === 7) if (i.name === "bind") {
12209
- let e = i.exp;
12210
- if (e.content[0] === "_") {
12211
- n += ` ${i.arg.content}="__VUE_EXP_START__${e.content}__VUE_EXP_END__"`;
12212
- continue;
12213
- }
12214
- if (Dd(i.arg.content) && e.content === "false") continue;
12215
- let t = bi(e);
12216
- if (t != null) {
12217
- let e = i.arg && i.arg.content;
12218
- e === "class" ? t = O(t) : e === "style" && (t = D(T(t))), n += ` ${i.arg.content}="${A(t)}"`;
12219
- }
12220
- } else i.name === "html" ? r = bi(i.exp) : i.name === "text" && (r = A(Ld(bi(i.exp))));
12249
+ else if (i.type === 7) {
12250
+ if (i.name === "bind") {
12251
+ let e = i.exp;
12252
+ if (e.content[0] === "_") {
12253
+ n += ` ${i.arg.content}="__VUE_EXP_START__${e.content}__VUE_EXP_END__"`;
12254
+ continue;
12255
+ }
12256
+ if (Dd(i.arg.content) && e.content === "false") continue;
12257
+ let t = bi(e);
12258
+ if (t != null) {
12259
+ let e = i.arg && i.arg.content;
12260
+ e === "class" ? t = O(t) : e === "style" && (t = D(T(t))), n += ` ${i.arg.content}="${A(t)}"`;
12261
+ }
12262
+ } else i.name === "html" ? r = bi(i.exp) : i.name === "text" && (r = A(Ld(bi(i.exp))));
12263
+ }
12221
12264
  }
12222
12265
  if (t.scopeId && (n += ` ${t.scopeId}`), n += ">", r) n += r;
12223
12266
  else for (let r = 0; r < e.children.length; r++) n += vi(e.children[r], t);
@@ -12326,15 +12369,15 @@ function ki(e, t) {
12326
12369
  if (t === "'") n = 1;
12327
12370
  else if (t === "\"") n = 2;
12328
12371
  else if (t === "(") r++;
12329
- else if (t === ")") if (r > 0) r--;
12330
- else return i;
12372
+ else if (t === ")") {
12373
+ if (r > 0) r--;
12374
+ else return i;
12375
+ }
12331
12376
  break;
12332
12377
  case 1:
12333
12378
  t === "'" && (n = 0);
12334
12379
  break;
12335
- case 2:
12336
- t === "\"" && (n = 0);
12337
- break;
12380
+ case 2: t === "\"" && (n = 0);
12338
12381
  }
12339
12382
  }
12340
12383
  return null;
@@ -12344,8 +12387,8 @@ function Ai(e, t, n, r) {
12344
12387
  prefixIdentifiers: !0,
12345
12388
  inline: !0,
12346
12389
  bindingMetadata: t.__isScriptSetup === !1 ? void 0 : t
12347
- }));
12348
- return `_${Ih}(_ctx => (${i.type === 4 ? i.content : i.children.map((e) => typeof e == "string" ? e : e.content).join("")}))`;
12390
+ })), a = i.type === 4 ? i.content : i.children.map((e) => typeof e == "string" ? e : e.content).join("");
12391
+ return `_${Ih}(_ctx => (${a}))`;
12349
12392
  }
12350
12393
  function ji(e, t, n, r, i) {
12351
12394
  return `
@@ -12470,9 +12513,7 @@ function Zi(e, t = !0) {
12470
12513
  }
12471
12514
  e.children.forEach(s);
12472
12515
  break;
12473
- case 5:
12474
- a && Qi(a, e.content);
12475
- break;
12516
+ case 5: a && Qi(a, e.content);
12476
12517
  }
12477
12518
  }
12478
12519
  let c = {
@@ -12532,9 +12573,7 @@ function $i(e, t = {}) {
12532
12573
  let i = ta(t, e, s);
12533
12574
  i.attrs.vars && f.push(/* @__PURE__ */ SyntaxError("<style vars> has been replaced by a new proposal: https://github.com/vuejs/rfcs/pull/231")), d.styles.push(i);
12534
12575
  break;
12535
- default:
12536
- d.customBlocks.push(ta(t, e, s));
12537
- break;
12576
+ default: d.customBlocks.push(ta(t, e, s));
12538
12577
  }
12539
12578
  }), !d.template && !d.script && !d.scriptSetup && f.push(/* @__PURE__ */ SyntaxError(`At least one <template> or <script> is required in a single file component. ${d.filename}`)), d.scriptSetup && (d.scriptSetup.src && (f.push(/* @__PURE__ */ SyntaxError("<script setup> cannot use the \"src\" attribute because its syntax will be ambiguous outside of the component.")), d.scriptSetup = null), d.script && d.script.src && (f.push(/* @__PURE__ */ SyntaxError("<script> cannot use the \"src\" attribute when <script setup> is also present because they must be processed together.")), d.script = null));
12540
12579
  let p = 0;
@@ -12598,7 +12637,7 @@ function ra(e, t, n) {
12598
12637
  }
12599
12638
  }
12600
12639
  function ia(e) {
12601
- return e.props.some((e) => e.type === 6 ? e.name === "src" : !1);
12640
+ return e.props.some((e) => e.type === 6 && e.name === "src");
12602
12641
  }
12603
12642
  function aa(e) {
12604
12643
  for (let t = 0; t < e.children.length; t++) {
@@ -12765,13 +12804,15 @@ function Da(e, t) {
12765
12804
  return r;
12766
12805
  }
12767
12806
  function Oa(e) {
12768
- if (Ka(Qg) && (Qg = ug.env.NODE_DEBUG || ""), e = e.toUpperCase(), !Zg[e]) if (RegExp("\\b" + e + "\\b", "i").test(Qg)) {
12769
- var t = 0;
12770
- Zg[e] = function() {
12771
- var n = Ea.apply(null, arguments);
12772
- console.error("%s %d: %s", e, t, n);
12773
- };
12774
- } else Zg[e] = function() {};
12807
+ if (Ka(Qg) && (Qg = ug.env.NODE_DEBUG || ""), e = e.toUpperCase(), !Zg[e]) {
12808
+ if (RegExp("\\b" + e + "\\b", "i").test(Qg)) {
12809
+ var t = 0;
12810
+ Zg[e] = function() {
12811
+ var n = Ea.apply(null, arguments);
12812
+ console.error("%s %d: %s", e, t, n);
12813
+ };
12814
+ } else Zg[e] = function() {};
12815
+ }
12775
12816
  return Zg[e];
12776
12817
  }
12777
12818
  function ka(e, t) {
@@ -13043,7 +13084,7 @@ function _o(e, t, n, r) {
13043
13084
  var s = t;
13044
13085
  if (s = s.trim(), !r && t.split("#").length === 1) {
13045
13086
  var c = l_.exec(s);
13046
- if (c) return e.path = s, e.href = s, e.pathname = c[1], c[2] ? (e.search = c[2], n ? e.query = mo(e.search.substr(1)) : e.query = e.search.substr(1)) : n && (e.search = "", e.query = {}), e;
13087
+ if (c) return e.path = s, e.href = s, e.pathname = c[1], c[2] ? (e.search = c[2], e.query = n ? mo(e.search.substr(1)) : e.search.substr(1)) : n && (e.search = "", e.query = {}), e;
13047
13088
  }
13048
13089
  var l = s_.exec(s);
13049
13090
  if (l) {
@@ -13077,7 +13118,7 @@ function _o(e, t, n, r) {
13077
13118
  }
13078
13119
  }
13079
13120
  }
13080
- e.hostname.length > m_ ? e.hostname = "" : e.hostname = e.hostname.toLowerCase(), y || (e.hostname = Ta(e.hostname)), h = e.port ? ":" + e.port : "", e.host = (e.hostname || "") + h, e.href += e.host, y && (e.hostname = e.hostname.substr(1, e.hostname.length - 2), s[0] !== "/" && (s = "/" + s));
13121
+ e.hostname = e.hostname.length > m_ ? "" : e.hostname.toLowerCase(), y || (e.hostname = Ta(e.hostname)), h = e.port ? ":" + e.port : "", e.host = (e.hostname || "") + h, e.href += e.host, y && (e.hostname = e.hostname.substr(1, e.hostname.length - 2), s[0] !== "/" && (s = "/" + s));
13081
13122
  }
13082
13123
  if (!__[u]) for (f = 0, m = d_.length; f < m; f++) {
13083
13124
  var O = d_[f];
@@ -13164,7 +13205,8 @@ function Ao(e, t, n, r) {
13164
13205
  if (!r.hoistStatic) return c;
13165
13206
  let l = r.hoists.findIndex((e) => e && e.type === 4 && !e.isStatic && e.content === s);
13166
13207
  return l > -1 ? R(`_hoisted_${l + 1}`, !1, n, 3) : r.hoist(c);
13167
- } else return R("''", !1, n, 3);
13208
+ }
13209
+ return R("''", !1, n, 3);
13168
13210
  }
13169
13211
  function jo(e, t, n = !1, r = !1) {
13170
13212
  let [i] = e.branches, a = ae(i.condition, Mo(i, t, n));
@@ -13178,7 +13220,7 @@ function jo(e, t, n = !1, r = !1) {
13178
13220
  }
13179
13221
  function Mo(e, t, n = !1) {
13180
13222
  let { children: r } = e;
13181
- return as(e, t, !n && (r.length !== 1 || r[0].type !== 1) && !(r.length === 1 && r[0].type === 11));
13223
+ return as(e, t, !n && (r.length !== 1 || r[0].type !== 1) && (r.length !== 1 || r[0].type !== 11));
13182
13224
  }
13183
13225
  function No(e, t, n = !1) {
13184
13226
  let r = !n && (e.children.length !== 1 || e.children[0].type !== 1), i = V(Qr(e.parseResult));
@@ -13368,7 +13410,8 @@ function es(e) {
13368
13410
  let t = {};
13369
13411
  for (let n in e) t[n] = es(e[n]);
13370
13412
  return t;
13371
- } else return e;
13413
+ }
13414
+ return e;
13372
13415
  }
13373
13416
  function ts(e, t) {
13374
13417
  let n = ns(e, t);
@@ -13477,15 +13520,17 @@ function ss(e) {
13477
13520
  });
13478
13521
  }
13479
13522
  function cs(e) {
13480
- if (e.type === 1 && (e.tagType === 0 || e.tagType === 1) && !$t(e, "for")) if (e.tag === "suspense" || e.tag === "Suspense") for (let t of e.children) t.type === 1 && t.tagType === 3 ? t.children.forEach(cs) : cs(t);
13481
- else e.props.push({
13482
- type: 7,
13483
- name: "bind",
13484
- arg: void 0,
13485
- exp: R("_cssVars", !1),
13486
- modifiers: [],
13487
- loc: jf
13488
- });
13523
+ if (e.type === 1 && (e.tagType === 0 || e.tagType === 1) && !$t(e, "for")) {
13524
+ if (e.tag === "suspense" || e.tag === "Suspense") for (let t of e.children) t.type === 1 && t.tagType === 3 ? t.children.forEach(cs) : cs(t);
13525
+ else e.props.push({
13526
+ type: 7,
13527
+ name: "bind",
13528
+ arg: void 0,
13529
+ exp: R("_cssVars", !1),
13530
+ modifiers: [],
13531
+ loc: jf
13532
+ });
13533
+ }
13489
13534
  }
13490
13535
  function ls(e, t = {}) {
13491
13536
  t = qv(Kv(Kv({}, t), $m), {
@@ -13556,13 +13601,12 @@ function ps(e) {
13556
13601
  errors: [t]
13557
13602
  };
13558
13603
  }
13559
- else if (t) return {
13604
+ return t ? {
13560
13605
  code: "export default function render() {}",
13561
13606
  source: e.source,
13562
13607
  tips: [`Component ${e.filename} uses lang ${t} for template. Please install the language preprocessor.`],
13563
13608
  errors: [`Component ${e.filename} uses lang ${t} for template, however it is not installed.`]
13564
- };
13565
- else return ms(e);
13609
+ } : ms(e);
13566
13610
  }
13567
13611
  function ms({ filename: e, id: t, scoped: n, slotted: r, inMap: i, source: a, ast: o, ssr: s = !1, ssrCssVars: c, isProd: l = !1, compiler: u, compilerOptions: d = {}, transformAssetUrls: f }) {
13568
13612
  let p = [], m = [], h = [];
@@ -13753,10 +13797,13 @@ function vs() {
13753
13797
  if (_ = b.length ? b.pop()[1] : "", g = o.charCodeAt(y + 1), _ === "url" && g !== 39 && g !== 34 && g !== 32 && g !== 10 && g !== 9 && g !== 12 && g !== 13) {
13754
13798
  d = y;
13755
13799
  do {
13756
- if (m = !1, d = o.indexOf(")", d + 1), d === -1) if (s || a) {
13757
- d = y;
13758
- break;
13759
- } else C("bracket");
13800
+ if (m = !1, d = o.indexOf(")", d + 1), d === -1) {
13801
+ if (s || a) {
13802
+ d = y;
13803
+ break;
13804
+ }
13805
+ C("bracket");
13806
+ }
13760
13807
  for (h = d; o.charCodeAt(h - 1) === 92;) --h, m = !m;
13761
13808
  } while (m);
13762
13809
  p = [
@@ -13780,10 +13827,13 @@ function vs() {
13780
13827
  case 34:
13781
13828
  f = c === 39 ? "'" : "\"", d = y;
13782
13829
  do {
13783
- if (m = !1, d = o.indexOf(f, d + 1), d === -1) if (s || a) {
13784
- d = y + 1;
13785
- break;
13786
- } else C("string");
13830
+ if (m = !1, d = o.indexOf(f, d + 1), d === -1) {
13831
+ if (s || a) {
13832
+ d = y + 1;
13833
+ break;
13834
+ }
13835
+ C("string");
13836
+ }
13787
13837
  for (h = d; o.charCodeAt(h - 1) === 92;) --h, m = !m;
13788
13838
  } while (m);
13789
13839
  p = [
@@ -13814,19 +13864,17 @@ function vs() {
13814
13864
  d
13815
13865
  ], y = d;
13816
13866
  break;
13817
- default:
13818
- c === 47 && o.charCodeAt(y + 1) === 42 ? (d = o.indexOf("*/", y + 2) + 1, d === 0 && (s || a ? d = o.length : C("comment")), p = [
13819
- "comment",
13820
- o.slice(y, d + 1),
13821
- y,
13822
- d
13823
- ], y = d) : (t.lastIndex = y + 1, t.test(o), d = t.lastIndex === 0 ? o.length - 1 : t.lastIndex - 2, p = [
13824
- "word",
13825
- o.slice(y, d + 1),
13826
- y,
13827
- d
13828
- ], b.push(p), y = d);
13829
- break;
13867
+ default: c === 47 && o.charCodeAt(y + 1) === 42 ? (d = o.indexOf("*/", y + 2) + 1, d === 0 && (s || a ? d = o.length : C("comment")), p = [
13868
+ "comment",
13869
+ o.slice(y, d + 1),
13870
+ y,
13871
+ d
13872
+ ], y = d) : (t.lastIndex = y + 1, t.test(o), d = t.lastIndex === 0 ? o.length - 1 : t.lastIndex - 2, p = [
13873
+ "word",
13874
+ o.slice(y, d + 1),
13875
+ y,
13876
+ d
13877
+ ], b.push(p), y = d);
13830
13878
  }
13831
13879
  return y++, p;
13832
13880
  }
@@ -13880,7 +13928,7 @@ function ys() {
13880
13928
  let r = t(new n(e), { ignoreErrors: !0 }), o = "";
13881
13929
  for (; !r.endOfFile();) {
13882
13930
  let e = r.nextToken(), t = i[a(e, r)];
13883
- t ? o += e[1].split(/\r?\n/).map((e) => t(e)).join("\n") : o += e[1];
13931
+ o += t ? e[1].split(/\r?\n/).map((e) => t(e)).join("\n") : e[1];
13884
13932
  }
13885
13933
  return o;
13886
13934
  }
@@ -14191,7 +14239,9 @@ function ws() {
14191
14239
  return t === "proxyOf" ? e : t === "root" ? () => e.root().toProxy() : e[t];
14192
14240
  },
14193
14241
  set(e, t, n) {
14194
- return e[t] === n ? !0 : (e[t] = n, (t === "prop" || t === "value" || t === "name" || t === "params" || t === "important" || t === "text") && e.markDirty(), !0);
14242
+ return e[t] === n || (e[t] = n, (t === "prop" || t === "value" || t === "name" || t === "params" || t === "important" ||
14243
+ /* c8 ignore next */
14244
+ t === "text") && e.markDirty(), !0);
14195
14245
  }
14196
14246
  };
14197
14247
  }
@@ -14402,7 +14452,7 @@ function Ds() {
14402
14452
  return t === "proxyOf" ? e : e[t] ? t === "each" || typeof t == "string" && t.startsWith("walk") ? (...n) => e[t](...n.map((e) => typeof e == "function" ? (t, n) => e(t.toProxy(), n) : e)) : t === "every" || t === "some" ? (n) => e[t]((e, ...t) => n(e.toProxy(), ...t)) : t === "root" ? () => e.root().toProxy() : t === "nodes" ? e.nodes.map((e) => e.toProxy()) : t === "first" || t === "last" ? e[t].toProxy() : e[t] : e[t];
14403
14453
  },
14404
14454
  set(e, t, n) {
14405
- return e[t] === n ? !0 : (e[t] = n, (t === "name" || t === "params" || t === "selector") && e.markDirty(), !0);
14455
+ return e[t] === n || (e[t] = n, (t === "name" || t === "params" || t === "selector") && e.markDirty(), !0);
14406
14456
  }
14407
14457
  };
14408
14458
  }
@@ -14418,7 +14468,7 @@ function Ds() {
14418
14468
  return this.markDirty(), this;
14419
14469
  }
14420
14470
  insertBefore(e, t) {
14421
- let n = this.index(e), r = n === 0 ? "prepend" : !1, i = this.normalize(t, this.proxyOf.nodes[n], r).reverse();
14471
+ let n = this.index(e), r = n === 0 && "prepend", i = this.normalize(t, this.proxyOf.nodes[n], r).reverse();
14422
14472
  n = this.index(e);
14423
14473
  for (let e of i) this.proxyOf.nodes.splice(n, 0, e);
14424
14474
  let a;
@@ -14442,7 +14492,7 @@ function Ds() {
14442
14492
  else if (n.name) n = [new a(n)];
14443
14493
  else if (n.text) n = [new e(n)];
14444
14494
  else throw Error("Unknown node type in node creation");
14445
- return n.map((e) => (e[i] || d.rebuild(e), e = e.proxyOf, e.parent && e.parent.removeChild(e), e[r] && u(e), e.raws ||= {}, e.raws.before === void 0 && s && s.raws.before !== void 0 && (e.raws.before = s.raws.before.replace(/\S/g, "")), e.parent = this.proxyOf, e));
14495
+ return n.map((e) => (e[i] || d.rebuild(e), e = e.proxyOf, e.parent && e.parent.removeChild(e), e[r] && u(e), e.raws || (e.raws = {}), e.raws.before === void 0 && s && s.raws.before !== void 0 && (e.raws.before = s.raws.before.replace(/\S/g, "")), e.parent = this.proxyOf, e));
14446
14496
  }
14447
14497
  prepend(...e) {
14448
14498
  e = e.reverse();
@@ -14672,7 +14722,7 @@ function Ms() {
14672
14722
  }
14673
14723
  constructor(r, i = {}) {
14674
14724
  if (r == null || typeof r == "object" && !r.toString) throw Error(`PostCSS received ${r} instead of CSS string`);
14675
- if (this.css = r.toString(), this.css[0] === "" || this.css[0] === "￾" ? (this.hasBOM = !0, this.css = this.css.slice(1)) : this.hasBOM = !1, this.document = this.css, i.document && (this.document = i.document.toString()), i.from && (!f || /^\w+:\/\//.test(i.from) || t(i.from) ? this.file = i.from : this.file = n(i.from)), f && d) {
14725
+ if (this.css = r.toString(), this.css[0] === "" || this.css[0] === "￾" ? (this.hasBOM = !0, this.css = this.css.slice(1)) : this.hasBOM = !1, this.document = this.css, i.document && (this.document = i.document.toString()), i.from && (this.file = !f || /^\w+:\/\//.test(i.from) || t(i.from) ? i.from : n(i.from)), f && d) {
14676
14726
  let e = new c(this.css, i);
14677
14727
  if (e.text) {
14678
14728
  this.map = e;
@@ -14769,10 +14819,12 @@ function Ms() {
14769
14819
  line: c.line,
14770
14820
  url: u.toString()
14771
14821
  };
14772
- if (u.protocol === "file:") if (a) d.file = a(u);
14773
- else
14822
+ if (u.protocol === "file:") {
14823
+ if (a) d.file = a(u);
14824
+ else
14774
14825
  /* c8 ignore next 2 */
14775
- throw Error("file: protocol is not available in this PostCSS build");
14826
+ throw Error("file: protocol is not available in this PostCSS build");
14827
+ }
14776
14828
  let f = s.sourceContentFor(c.source);
14777
14829
  return f && (d.source = f), d;
14778
14830
  }
@@ -14909,14 +14961,16 @@ function Ls() {
14909
14961
  applyPrevMaps() {
14910
14962
  for (let t of this.previous()) {
14911
14963
  let n = this.toUrl(this.path(t.file)), r = t.root || e(t.file), a;
14912
- this.mapOpts.sourcesContent === !1 ? (a = new i(t.text), a.sourcesContent &&= null) : a = t.consumer(), this.map.applySourceMap(a, n, this.toUrl(this.path(r)));
14964
+ this.mapOpts.sourcesContent === !1 ? (a = new i(t.text), a.sourcesContent && (a.sourcesContent = null)) : a = t.consumer(), this.map.applySourceMap(a, n, this.toUrl(this.path(r)));
14913
14965
  }
14914
14966
  }
14915
14967
  clearAnnotation() {
14916
- if (this.mapOpts.annotation !== !1) if (this.root) {
14917
- let e;
14918
- for (let t = this.root.nodes.length - 1; t >= 0; t--) e = this.root.nodes[t], e.type === "comment" && e.text.startsWith("# sourceMappingURL=") && this.root.removeChild(t);
14919
- } else this.css &&= this.css.replace(/\n*\/\*#[\S\s]*?\*\/$/gm, "");
14968
+ if (this.mapOpts.annotation !== !1) {
14969
+ if (this.root) {
14970
+ let e;
14971
+ for (let t = this.root.nodes.length - 1; t >= 0; t--) e = this.root.nodes[t], e.type === "comment" && e.text.startsWith("# sourceMappingURL=") && this.root.removeChild(t);
14972
+ } else this.css &&= this.css.replace(/\n*\/\*#[\S\s]*?\*\/$/gm, "");
14973
+ }
14920
14974
  }
14921
14975
  generate() {
14922
14976
  if (this.clearAnnotation(), l && c && this.isMap()) return this.generateMap();
@@ -14972,18 +15026,18 @@ function Ls() {
14972
15026
  });
14973
15027
  }
14974
15028
  isAnnotation() {
14975
- return this.isInline() ? !0 : this.mapOpts.annotation === void 0 ? this.previous().length ? this.previous().some((e) => e.annotation) : !0 : this.mapOpts.annotation;
15029
+ return this.isInline() ? !0 : this.mapOpts.annotation === void 0 ? !this.previous().length || this.previous().some((e) => e.annotation) : this.mapOpts.annotation;
14976
15030
  }
14977
15031
  isInline() {
14978
15032
  if (this.mapOpts.inline !== void 0) return this.mapOpts.inline;
14979
15033
  let e = this.mapOpts.annotation;
14980
- return e !== void 0 && e !== !0 ? !1 : this.previous().length ? this.previous().some((e) => e.inline) : !0;
15034
+ return e !== void 0 && e !== !0 ? !1 : !this.previous().length || this.previous().some((e) => e.inline);
14981
15035
  }
14982
15036
  isMap() {
14983
15037
  return this.opts.map === void 0 ? this.previous().length > 0 : !!this.opts.map;
14984
15038
  }
14985
15039
  isSourcesContent() {
14986
- return this.mapOpts.sourcesContent === void 0 ? this.previous().length ? this.previous().some((e) => e.withContent()) : !0 : this.mapOpts.sourcesContent;
15040
+ return this.mapOpts.sourcesContent === void 0 ? !this.previous().length || this.previous().some((e) => e.withContent()) : this.mapOpts.sourcesContent;
14987
15041
  }
14988
15042
  outputFile() {
14989
15043
  return this.opts.to ? this.path(this.opts.to) : this.opts.from ? this.path(this.opts.from) : "to.css";
@@ -14998,15 +15052,17 @@ function Ls() {
14998
15052
  return this.memoizedPaths.set(r, o), o;
14999
15053
  }
15000
15054
  previous() {
15001
- if (!this.previousMaps) if (this.previousMaps = [], this.root) this.root.walk((e) => {
15002
- if (e.source && e.source.input.map) {
15003
- let t = e.source.input.map;
15004
- this.previousMaps.includes(t) || this.previousMaps.push(t);
15055
+ if (!this.previousMaps) {
15056
+ if (this.previousMaps = [], this.root) this.root.walk((e) => {
15057
+ if (e.source && e.source.input.map) {
15058
+ let t = e.source.input.map;
15059
+ this.previousMaps.includes(t) || this.previousMaps.push(t);
15060
+ }
15061
+ });
15062
+ else {
15063
+ let e = new s(this.originalCSS, this.opts);
15064
+ e.map && this.previousMaps.push(e.map);
15005
15065
  }
15006
- });
15007
- else {
15008
- let e = new s(this.originalCSS, this.opts);
15009
- e.map && this.previousMaps.push(e.map);
15010
15066
  }
15011
15067
  return this.previousMaps;
15012
15068
  }
@@ -15039,7 +15095,8 @@ function Ls() {
15039
15095
  if (o) {
15040
15096
  let t = o(e).toString();
15041
15097
  return this.memoizedFileURLs.set(e, t), t;
15042
- } else throw Error("`map.absolute` option is not available in this PostCSS build");
15098
+ }
15099
+ throw Error("`map.absolute` option is not available in this PostCSS build");
15043
15100
  }
15044
15101
  toUrl(e) {
15045
15102
  let t = this.memoizedURLs.get(e);
@@ -15080,21 +15137,25 @@ function Rs() {
15080
15137
  n.name = t[1].slice(1), n.name === "" && this.unnamedAtrule(n, t), this.init(n, t[2]);
15081
15138
  let r, i, a, o = !1, s = !1, c = [], l = [];
15082
15139
  for (; !this.tokenizer.endOfFile();) {
15083
- if (t = this.tokenizer.nextToken(), r = t[0], r === "(" || r === "[" ? l.push(r === "(" ? ")" : "]") : r === "{" && l.length > 0 ? l.push("}") : r === l[l.length - 1] && l.pop(), l.length === 0) if (r === ";") {
15084
- n.source.end = this.getPosition(t[2]), n.source.end.offset++, this.semicolon = !0;
15085
- break;
15086
- } else if (r === "{") {
15087
- s = !0;
15088
- break;
15089
- } else if (r === "}") {
15090
- if (c.length > 0) {
15091
- for (a = c.length - 1, i = c[a]; i && i[0] === "space";) i = c[--a];
15092
- i && (n.source.end = this.getPosition(i[3] || i[2]), n.source.end.offset++);
15140
+ if (t = this.tokenizer.nextToken(), r = t[0], r === "(" || r === "[" ? l.push(r === "(" ? ")" : "]") : r === "{" && l.length > 0 ? l.push("}") : r === l[l.length - 1] && l.pop(), l.length === 0) {
15141
+ if (r === ";") {
15142
+ n.source.end = this.getPosition(t[2]), n.source.end.offset++, this.semicolon = !0;
15143
+ break;
15093
15144
  }
15094
- this.end(t);
15095
- break;
15145
+ if (r === "{") {
15146
+ s = !0;
15147
+ break;
15148
+ }
15149
+ if (r === "}") {
15150
+ if (c.length > 0) {
15151
+ for (a = c.length - 1, i = c[a]; i && i[0] === "space";) i = c[--a];
15152
+ i && (n.source.end = this.getPosition(i[3] || i[2]), n.source.end.offset++);
15153
+ }
15154
+ this.end(t);
15155
+ break;
15156
+ }
15157
+ c.push(t);
15096
15158
  } else c.push(t);
15097
- else c.push(t);
15098
15159
  if (this.tokenizer.endOfFile()) {
15099
15160
  o = !0;
15100
15161
  break;
@@ -15112,9 +15173,11 @@ function Rs() {
15112
15173
  colon(e) {
15113
15174
  let t = 0, n, r, i;
15114
15175
  for (let [a, o] of e.entries()) {
15115
- if (r = o, i = r[0], i === "(" && (t += 1), i === ")" && --t, t === 0 && i === ":") if (!n) this.doubleColon(r);
15116
- else if (n[0] === "word" && n[1] === "progid") continue;
15117
- else return a;
15176
+ if (r = o, i = r[0], i === "(" && (t += 1), i === ")" && --t, t === 0 && i === ":") {
15177
+ if (!n) this.doubleColon(r);
15178
+ else if (n[0] === "word" && n[1] === "progid") continue;
15179
+ else return a;
15180
+ }
15118
15181
  n = r;
15119
15182
  }
15120
15183
  return !1;
@@ -15144,13 +15207,16 @@ function Rs() {
15144
15207
  }
15145
15208
  r.raws.between = "";
15146
15209
  let a;
15147
- for (; e.length;) if (a = e.shift(), a[0] === ":") {
15148
- r.raws.between += a[1];
15149
- break;
15150
- } else a[0] === "word" && /\w/.test(a[1]) && this.unknownWord([a]), r.raws.between += a[1];
15210
+ for (; e.length;) {
15211
+ if (a = e.shift(), a[0] === ":") {
15212
+ r.raws.between += a[1];
15213
+ break;
15214
+ }
15215
+ a[0] === "word" && /\w/.test(a[1]) && this.unknownWord([a]), r.raws.between += a[1];
15216
+ }
15151
15217
  (r.prop[0] === "_" || r.prop[0] === "*") && (r.raws.before += r.prop[0], r.prop = r.prop.slice(1));
15152
15218
  let o = [], c;
15153
- for (; e.length && (c = e[0][0], !(c !== "space" && c !== "comment"));) o.push(e.shift());
15219
+ for (; e.length && (c = e[0][0], c === "space" || c === "comment");) o.push(e.shift());
15154
15220
  this.precheckMissedSemicolon(e);
15155
15221
  for (let t = e.length - 1; t >= 0; t--) {
15156
15222
  if (a = e[t], a[1].toLowerCase() === "!important") {
@@ -15158,7 +15224,8 @@ function Rs() {
15158
15224
  let n = this.stringFrom(e, t);
15159
15225
  n = this.spacesFromEnd(e) + n, n !== " !important" && (r.raws.important = n);
15160
15226
  break;
15161
- } else if (a[1].toLowerCase() === "important") {
15227
+ }
15228
+ if (a[1].toLowerCase() === "important") {
15162
15229
  let n = e.slice(0), i = "";
15163
15230
  for (let e = t; e > 0; e--) {
15164
15231
  let t = n[e][0];
@@ -15209,22 +15276,28 @@ function Rs() {
15209
15276
  for (; c;) {
15210
15277
  if (n = c[0], s.push(c), n === "(" || n === "[") i ||= c, a.push(n === "(" ? ")" : "]");
15211
15278
  else if (o && r && n === "{") i ||= c, a.push("}");
15212
- else if (a.length === 0) if (n === ";") if (r) {
15213
- this.decl(s, o);
15214
- return;
15215
- } else break;
15216
- else if (n === "{") {
15217
- this.rule(s);
15218
- return;
15219
- } else if (n === "}") {
15220
- this.tokenizer.back(s.pop()), t = !0;
15221
- break;
15222
- } else n === ":" && (r = !0);
15223
- else n === a[a.length - 1] && (a.pop(), a.length === 0 && (i = null));
15279
+ else if (a.length === 0) {
15280
+ if (n === ";") {
15281
+ if (r) {
15282
+ this.decl(s, o);
15283
+ return;
15284
+ }
15285
+ break;
15286
+ }
15287
+ if (n === "{") {
15288
+ this.rule(s);
15289
+ return;
15290
+ }
15291
+ if (n === "}") {
15292
+ this.tokenizer.back(s.pop()), t = !0;
15293
+ break;
15294
+ }
15295
+ n === ":" && (r = !0);
15296
+ } else n === a[a.length - 1] && (a.pop(), a.length === 0 && (i = null));
15224
15297
  c = this.tokenizer.nextToken();
15225
15298
  }
15226
15299
  if (this.tokenizer.endOfFile() && (t = !0), a.length > 0 && this.unclosedBracket(i), t && r) {
15227
- if (!o) for (; s.length && (c = s[s.length - 1][0], !(c !== "space" && c !== "comment"));) this.tokenizer.back(s.pop());
15300
+ if (!o) for (; s.length && (c = s[s.length - 1][0], c === "space" || c === "comment");) this.tokenizer.back(s.pop());
15228
15301
  this.decl(s, o);
15229
15302
  } else this.unknownWord(s);
15230
15303
  }
@@ -15249,9 +15322,7 @@ function Rs() {
15249
15322
  case "{":
15250
15323
  this.emptyRule(e);
15251
15324
  break;
15252
- default:
15253
- this.other(e);
15254
- break;
15325
+ default: this.other(e);
15255
15326
  }
15256
15327
  this.endFile();
15257
15328
  }
@@ -15275,12 +15346,12 @@ function Rs() {
15275
15346
  }
15276
15347
  spacesAndCommentsFromEnd(e) {
15277
15348
  let t, n = "";
15278
- for (; e.length && (t = e[e.length - 1][0], !(t !== "space" && t !== "comment"));) n = e.pop()[1] + n;
15349
+ for (; e.length && (t = e[e.length - 1][0], t === "space" || t === "comment");) n = e.pop()[1] + n;
15279
15350
  return n;
15280
15351
  }
15281
15352
  spacesAndCommentsFromStart(e) {
15282
15353
  let t, n = "";
15283
- for (; e.length && (t = e[0][0], !(t !== "space" && t !== "comment"));) n += e.shift()[1];
15354
+ for (; e.length && (t = e[0][0], t === "space" || t === "comment");) n += e.shift()[1];
15284
15355
  return n;
15285
15356
  }
15286
15357
  spacesFromEnd(e) {
@@ -15317,13 +15388,13 @@ function zs() {
15317
15388
  eb = 1;
15318
15389
  let e = /*@__PURE__*/ Ds(), t = /*@__PURE__*/ Ms(), n = /*@__PURE__*/ Rs();
15319
15390
  function r(e, r) {
15320
- let i = new n(new t(e, r));
15391
+ let i = new t(e, r), a = new n(i);
15321
15392
  try {
15322
- i.parse();
15393
+ a.parse();
15323
15394
  } catch (e) {
15324
15395
  throw ug.env.NODE_ENV !== "production" && e.name === "CssSyntaxError" && r && r.from && (/\.scss$/i.test(r.from) ? e.message += "\nYou tried to parse SCSS with the standard CSS parser; try again with the postcss-scss parser" : /\.sass/i.test(r.from) ? e.message += "\nYou tried to parse Sass with the standard CSS parser; try again with the postcss-sass parser" : /\.less$/i.test(r.from) && (e.message += "\nYou tried to parse Less with the standard CSS parser; try again with the postcss-less parser")), e;
15325
15396
  }
15326
- return i.root;
15397
+ return a.root;
15327
15398
  }
15328
15399
  return $y = r, r.default = r, e.registerParse(r), $y;
15329
15400
  }
@@ -15496,7 +15567,9 @@ function Us() {
15496
15567
  } catch (e) {
15497
15568
  this.processed = !0, this.error = e;
15498
15569
  }
15499
- o && !o[c] && e.rebuild(o);
15570
+ o && !o[c] &&
15571
+ /* c8 ignore next 2 */
15572
+ e.rebuild(o);
15500
15573
  }
15501
15574
  this.result = new i(t, o, a), this.helpers = {
15502
15575
  ..._,
@@ -15540,8 +15613,10 @@ function Us() {
15540
15613
  };
15541
15614
  for (let t of this.plugins) if (typeof t == "object") for (let n in t) {
15542
15615
  if (!d[n] && /^[A-Z]/.test(n)) throw Error(`Unknown event ${n} in ${t.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);
15543
- if (!f[n]) if (typeof t[n] == "object") for (let r in t[n]) r === "*" ? e(t, n, t[n][r]) : e(t, n + "-" + r.toLowerCase(), t[n][r]);
15544
- else typeof t[n] == "function" && e(t, n, t[n]);
15616
+ if (!f[n]) {
15617
+ if (typeof t[n] == "object") for (let r in t[n]) r === "*" ? e(t, n, t[n][r]) : e(t, n + "-" + r.toLowerCase(), t[n][r]);
15618
+ else typeof t[n] == "function" && e(t, n, t[n]);
15619
+ }
15545
15620
  }
15546
15621
  this.hasListener = Object.keys(this.listeners).length > 0;
15547
15622
  }
@@ -15593,7 +15668,8 @@ function Us() {
15593
15668
  return p(t[0]) ? Promise.all(t) : t;
15594
15669
  }
15595
15670
  return e.Once(this.result.root, this.helpers);
15596
- } else if (typeof e == "function") return e(this.result.root, this.result);
15671
+ }
15672
+ if (typeof e == "function") return e(this.result.root, this.result);
15597
15673
  } catch (e) {
15598
15674
  throw this.handleError(e);
15599
15675
  }
@@ -15615,8 +15691,10 @@ function Us() {
15615
15691
  if (this.prepareVisitors(), this.hasListener) {
15616
15692
  let e = this.result.root;
15617
15693
  for (; !e[s];) e[s] = !0, this.walkSync(e);
15618
- if (this.listeners.OnceExit) if (e.type === "document") for (let t of e.nodes) this.visitSync(this.listeners.OnceExit, t);
15619
- else this.visitSync(this.listeners.OnceExit, e);
15694
+ if (this.listeners.OnceExit) {
15695
+ if (e.type === "document") for (let t of e.nodes) this.visitSync(this.listeners.OnceExit, t);
15696
+ else this.visitSync(this.listeners.OnceExit, e);
15697
+ }
15620
15698
  }
15621
15699
  return this.result;
15622
15700
  }
@@ -15668,7 +15746,8 @@ function Us() {
15668
15746
  if (t.eventIndex += 1, e === 0) {
15669
15747
  n.nodes && n.nodes.length && (n[s] = !0, t.iterator = n.getIterator());
15670
15748
  return;
15671
- } else if (this.listeners[e]) {
15749
+ }
15750
+ if (this.listeners[e]) {
15672
15751
  t.visitors = this.listeners[e];
15673
15752
  return;
15674
15753
  }
@@ -15733,17 +15812,17 @@ function Ws() {
15733
15812
  }
15734
15813
  constructor(t, i, a) {
15735
15814
  i = i.toString(), this.stringified = !1, this._processor = t, this._css = i, this._opts = a, this._map = void 0;
15736
- let o = r;
15737
- this.result = new n(this._processor, void 0, this._opts), this.result.css = i;
15738
- let s = this;
15815
+ let o, s = r;
15816
+ this.result = new n(this._processor, o, this._opts), this.result.css = i;
15817
+ let c = this;
15739
15818
  Object.defineProperty(this.result, "root", { get() {
15740
- return s.root;
15819
+ return c.root;
15741
15820
  } });
15742
- let c = new e(o, void 0, this._opts, i);
15743
- if (c.isMap()) {
15744
- let [e, t] = c.generate();
15821
+ let l = new e(s, o, this._opts, i);
15822
+ if (l.isMap()) {
15823
+ let [e, t] = l.generate();
15745
15824
  e && (this.result.css = e), t && (this.result.map = t);
15746
- } else c.clearAnnotation(), this.result.css = c.css;
15825
+ } else l.clearAnnotation(), this.result.css = l.css;
15747
15826
  }
15748
15827
  async() {
15749
15828
  return this.error ? Promise.reject(this.error) : Promise.resolve(this.result);
@@ -15807,7 +15886,9 @@ function Ks() {
15807
15886
  return v.plugin = function(e, t) {
15808
15887
  let n = !1;
15809
15888
  function r(...r) {
15810
- console && console.warn && !n && (n = !0, console.warn(e + ": postcss.plugin was deprecated. Migration guide:\nhttps://evilmartians.com/chronicles/postcss-8-plugin-migration"), ug.env.LANG && ug.env.LANG.startsWith("cn") && console.warn(e + ": 里面 postcss.plugin 被弃用. 迁移指南:\nhttps://www.w3ctech.com/topic/2226"));
15889
+ console && console.warn && !n && (n = !0, console.warn(e + ": postcss.plugin was deprecated. Migration guide:\nhttps://evilmartians.com/chronicles/postcss-8-plugin-migration"), ug.env.LANG && ug.env.LANG.startsWith("cn") &&
15890
+ /* c8 ignore next 7 */
15891
+ console.warn(e + ": 里面 postcss.plugin 被弃用. 迁移指南:\nhttps://www.w3ctech.com/topic/2226"));
15811
15892
  let i = t(...r);
15812
15893
  return i.postcssPlugin = e, i.postcssVersion = new f().version, i;
15813
15894
  }
@@ -15924,9 +16005,9 @@ function Qs() {
15924
16005
  var r = new t.constructor();
15925
16006
  for (var i in t) if (t.hasOwnProperty(i)) {
15926
16007
  var a = t[i];
15927
- i === "parent" && typeof a == "object" ? n && (r[i] = n) : a instanceof Array ? r[i] = a.map(function(t) {
16008
+ i === "parent" && typeof a == "object" ? n && (r[i] = n) : r[i] = a instanceof Array ? a.map(function(t) {
15928
16009
  return e(t, r);
15929
- }) : r[i] = e(a, r);
16010
+ }) : e(a, r);
15930
16011
  }
15931
16012
  return r;
15932
16013
  };
@@ -16503,7 +16584,8 @@ function sc() {
16503
16584
  if (this.namespace) {
16504
16585
  var e = this.stringifyProperty("namespace");
16505
16586
  return e === !0 ? "" : e;
16506
- } else return "";
16587
+ }
16588
+ return "";
16507
16589
  }
16508
16590
  }
16509
16591
  ]), t;
@@ -16669,9 +16751,8 @@ function fc() {
16669
16751
  if ((0, t.default)(r, l).length < o.length) return c;
16670
16752
  }
16671
16753
  return s;
16672
- } else if (a === i) return this.preferredQuoteMark(e);
16673
- else if (a < i) return n.DOUBLE_QUOTE;
16674
- else return n.SINGLE_QUOTE;
16754
+ }
16755
+ return a === i ? this.preferredQuoteMark(e) : a < i ? n.DOUBLE_QUOTE : n.SINGLE_QUOTE;
16675
16756
  }, r.preferredQuoteMark = function(e) {
16676
16757
  var t = e.preferCurrentQuoteMark ? this.quoteMark : e.quoteMark;
16677
16758
  return t === void 0 && (t = e.preferCurrentQuoteMark ? e.quoteMark : this.quoteMark), t === void 0 && (t = n.DOUBLE_QUOTE), t;
@@ -16926,13 +17007,15 @@ function vc() {
16926
17007
  }
16927
17008
  function f(e, n) {
16928
17009
  var r = n, i = e.charCodeAt(r + 1);
16929
- if (!o[i]) if (c[i]) {
16930
- var a = 0;
16931
- do
16932
- r++, a++, i = e.charCodeAt(r + 1);
16933
- while (c[i] && a < 6);
16934
- a < 6 && i === t.space && r++;
16935
- } else r++;
17010
+ if (!o[i]) {
17011
+ if (c[i]) {
17012
+ var a = 0;
17013
+ do
17014
+ r++, a++, i = e.charCodeAt(r + 1);
17015
+ while (c[i] && a < 6);
17016
+ a < 6 && i === t.space && r++;
17017
+ } else r++;
17018
+ }
16936
17019
  return r;
16937
17020
  }
16938
17021
  e.FIELDS = {
@@ -16996,9 +17079,7 @@ function vc() {
16996
17079
  while (m);
16997
17080
  S = t.str, p = o, f = s - a, c = v + 1;
16998
17081
  break;
16999
- default:
17000
- l === t.slash && r.charCodeAt(s + 1) === t.asterisk ? (v = r.indexOf("*/", s + 2) + 1, v === 0 && C("comment", "*/"), u = r.slice(s, v + 1), _ = u.split("\n"), g = _.length - 1, g > 0 ? (y = o + g, b = v - _[g].length) : (y = o, b = a), S = t.comment, o = y, p = y, f = v - b) : l === t.slash ? (v = s, S = l, p = o, f = s - a, c = v + 1) : (v = d(r, s), S = t.word, p = o, f = v - a), c = v + 1;
17001
- break;
17082
+ default: l === t.slash && r.charCodeAt(s + 1) === t.asterisk ? (v = r.indexOf("*/", s + 2) + 1, v === 0 && C("comment", "*/"), u = r.slice(s, v + 1), _ = u.split("\n"), g = _.length - 1, g > 0 ? (y = o + g, b = v - _[g].length) : (y = o, b = a), S = t.comment, o = y, p = y, f = v - b) : l === t.slash ? (v = s, S = l, p = o, f = s - a, c = v + 1) : (v = d(r, s), S = t.word, p = o, f = v - a), c = v + 1;
17002
17083
  }
17003
17084
  n.push([
17004
17085
  S,
@@ -17184,14 +17265,15 @@ function yc() {
17184
17265
  r.operator = r.operator ? r.operator + d : d, s = "operator", c = !1;
17185
17266
  break;
17186
17267
  case g.comment:
17187
- if (s) if (c || f && f[h.FIELDS.TYPE] === g.space || s === "insensitive") {
17188
- var E = (0, v.getProp)(r, "spaces", s, "after") || "", D = (0, v.getProp)(r, "raws", "spaces", s, "after") || E;
17189
- (0, v.ensureObject)(r, "raws", "spaces", s), r.raws.spaces[s].after = D + d;
17190
- } else {
17191
- var O = r[s] || "", k = (0, v.getProp)(r, "raws", s) || O;
17192
- (0, v.ensureObject)(r, "raws"), r.raws[s] = k + d;
17193
- }
17194
- else o += d;
17268
+ if (s) {
17269
+ if (c || f && f[h.FIELDS.TYPE] === g.space || s === "insensitive") {
17270
+ var E = (0, v.getProp)(r, "spaces", s, "after") || "", D = (0, v.getProp)(r, "raws", "spaces", s, "after") || E;
17271
+ (0, v.ensureObject)(r, "raws", "spaces", s), r.raws.spaces[s].after = D + d;
17272
+ } else {
17273
+ var O = r[s] || "", k = (0, v.getProp)(r, "raws", s) || O;
17274
+ (0, v.ensureObject)(r, "raws"), r.raws[s] = k + d;
17275
+ }
17276
+ } else o += d;
17195
17277
  break;
17196
17278
  default: return this.error("Unexpected \"" + d + "\" found.", { index: l[h.FIELDS.START_POS] });
17197
17279
  }
@@ -17253,7 +17335,8 @@ function yc() {
17253
17335
  raws: n
17254
17336
  });
17255
17337
  return this.position += 3, r;
17256
- } else this.unexpected();
17338
+ }
17339
+ this.unexpected();
17257
17340
  }, t.combinator = function() {
17258
17341
  var e = this;
17259
17342
  if (this.content() === "|") return this.namespace();
@@ -17560,7 +17643,7 @@ function bc() {
17560
17643
  }
17561
17644
  var t = e.prototype;
17562
17645
  return t._shouldUpdateSelector = function(e, t) {
17563
- return t === void 0 && (t = {}), Object.assign({}, this.options, t).updateSelector === !1 ? !1 : typeof e != "string";
17646
+ return t === void 0 && (t = {}), Object.assign({}, this.options, t).updateSelector !== !1 && typeof e != "string";
17564
17647
  }, t._isLossy = function(e) {
17565
17648
  return e === void 0 && (e = {}), Object.assign({}, this.options, e).lossless === !1;
17566
17649
  }, t._root = function(e, t) {
@@ -17686,15 +17769,15 @@ function Cc() {
17686
17769
  e.__esModule = !0;
17687
17770
  var t = /*@__PURE__*/ $s();
17688
17771
  Object.keys(t).forEach(function(n) {
17689
- n === "default" || n === "__esModule" || n in e && e[n] === t[n] || (e[n] = t[n]);
17772
+ n !== "default" && n !== "__esModule" && (n in e && e[n] === t[n] || (e[n] = t[n]));
17690
17773
  });
17691
17774
  var n = /*@__PURE__*/ xc();
17692
17775
  Object.keys(n).forEach(function(t) {
17693
- t === "default" || t === "__esModule" || t in e && e[t] === n[t] || (e[t] = n[t]);
17776
+ t !== "default" && t !== "__esModule" && (t in e && e[t] === n[t] || (e[t] = n[t]));
17694
17777
  });
17695
17778
  var r = /*@__PURE__*/ Sc();
17696
17779
  Object.keys(r).forEach(function(t) {
17697
- t === "default" || t === "__esModule" || t in e && e[t] === r[t] || (e[t] = r[t]);
17780
+ t !== "default" && t !== "__esModule" && (t in e && e[t] === r[t] || (e[t] = r[t]));
17698
17781
  });
17699
17782
  })(bx), bx);
17700
17783
  }
@@ -17779,10 +17862,13 @@ function Ec(e, t, n, r, i, a = !1) {
17779
17862
  }
17780
17863
  if (a.type === "universal") {
17781
17864
  let e = n.at(n.index(a) - 1), t = n.at(n.index(a) + 1);
17782
- if (!e) if (t) {
17783
- t.type === "combinator" && t.value === " " && n.removeChild(t), n.removeChild(a);
17784
- return;
17785
- } else return o = Ex.combinator({ value: "" }), n.insertBefore(a, o), n.removeChild(a), !1;
17865
+ if (!e) {
17866
+ if (t) {
17867
+ t.type === "combinator" && t.value === " " && n.removeChild(t), n.removeChild(a);
17868
+ return;
17869
+ }
17870
+ return o = Ex.combinator({ value: "" }), n.insertBefore(a, o), n.removeChild(a), !1;
17871
+ }
17786
17872
  if (o) return;
17787
17873
  }
17788
17874
  (a.type !== "pseudo" && a.type !== "combinator" || a.type === "pseudo" && (a.value === ":is" || a.value === ":where") && !o) && (o = a);
@@ -18487,11 +18573,13 @@ function Rc() {
18487
18573
  }
18488
18574
  }, u = 1, d = 0, f = null;
18489
18575
  return r.eachMapping(function(e) {
18490
- if (f !== null) if (u < e.generatedLine) p(f, l()), u++, d = 0;
18491
- else {
18492
- var t = s[c] || "", n = t.substr(0, e.generatedColumn - d);
18493
- s[c] = t.substr(e.generatedColumn - d), d = e.generatedColumn, p(f, n), f = e;
18494
- return;
18576
+ if (f !== null) {
18577
+ if (u < e.generatedLine) p(f, l()), u++, d = 0;
18578
+ else {
18579
+ var t = s[c] || "", n = t.substr(0, e.generatedColumn - d);
18580
+ s[c] = t.substr(e.generatedColumn - d), d = e.generatedColumn, p(f, n), f = e;
18581
+ return;
18582
+ }
18495
18583
  }
18496
18584
  for (; u < e.generatedLine;) o.add(l()), u++;
18497
18585
  if (d < e.generatedColumn) {
@@ -18643,51 +18731,53 @@ function Uc(e) {
18643
18731
  }
18644
18732
  function Wc(e) {
18645
18733
  let { filename: t, id: n, scoped: r = !1, trim: i = !0, isProd: a = !1, modules: o = !1, modulesOptions: s = {}, preprocessLang: c, postcssOptions: l, postcssPlugins: u } = e, d = c && gS[c], f = d && Gc(e, d), p = f ? f.map : e.inMap || e.map, m = f ? f.code : e.source, h = n.replace(/^data-v-/, ""), g = `data-v-${h}`, _ = (u || []).slice();
18646
- if (_.unshift(Rh({
18734
+ _.unshift(Rh({
18647
18735
  id: h,
18648
18736
  isProd: a
18649
- })), i && _.push(_b()), r && _.push(Ax(g)), o) throw Error("[@vue/compiler-sfc] `modules` option is not supported in the browser build.");
18650
- let v = TS(wS({}, l), {
18737
+ })), i && _.push(_b()), r && _.push(Ax(g));
18738
+ let v;
18739
+ if (o) throw Error("[@vue/compiler-sfc] `modules` option is not supported in the browser build.");
18740
+ let y = TS(wS({}, l), {
18651
18741
  to: t,
18652
18742
  from: t
18653
18743
  });
18654
- p && (v.map = {
18744
+ p && (y.map = {
18655
18745
  inline: !1,
18656
18746
  annotation: !1,
18657
18747
  prev: p
18658
18748
  });
18659
- let y, b, x, S = new Set(f ? f.dependencies : []);
18660
- S.delete(t);
18661
- let C = [];
18662
- f && f.errors.length && C.push(...f.errors);
18663
- let w = (e) => (e.forEach((e) => {
18664
- e.type === "dependency" && S.add(e.file);
18665
- }), S);
18749
+ let b, x, S, C = new Set(f ? f.dependencies : []);
18750
+ C.delete(t);
18751
+ let w = [];
18752
+ f && f.errors.length && w.push(...f.errors);
18753
+ let T = (e) => (e.forEach((e) => {
18754
+ e.type === "dependency" && C.add(e.file);
18755
+ }), C);
18666
18756
  try {
18667
- if (y = hb(_).process(m, v), e.isAsync) return y.then((e) => ({
18757
+ if (b = hb(_).process(m, y), e.isAsync) return b.then((e) => ({
18668
18758
  code: e.css || "",
18669
18759
  map: e.map && e.map.toJSON(),
18670
- errors: C,
18671
- modules: void 0,
18760
+ errors: w,
18761
+ modules: v,
18672
18762
  rawResult: e,
18673
- dependencies: w(e.messages)
18763
+ dependencies: T(e.messages)
18674
18764
  })).catch((e) => ({
18675
18765
  code: "",
18676
18766
  map: void 0,
18677
- errors: [...C, e],
18767
+ errors: [...w, e],
18678
18768
  rawResult: void 0,
18679
- dependencies: S
18769
+ dependencies: C
18680
18770
  }));
18681
- w(y.messages), b = y.css, x = y.map;
18771
+ T(b.messages), x = b.css, S = b.map;
18682
18772
  } catch (e) {
18683
- C.push(e);
18773
+ w.push(e);
18684
18774
  }
18685
18775
  return {
18686
- code: b || "",
18687
- map: x && x.toJSON(),
18688
- errors: C,
18689
- rawResult: y,
18690
- dependencies: S
18776
+ code: x || "",
18777
+ map: S && S.toJSON(),
18778
+ errors: w,
18779
+ rawResult: b,
18780
+ dependencies: C
18691
18781
  };
18692
18782
  }
18693
18783
  function Gc(e, t) {
@@ -18854,27 +18944,31 @@ const ${n} = {}`);
18854
18944
  return;
18855
18945
  }
18856
18946
  e.forEach((e) => {
18857
- if (e.type === "ExportDefaultDeclaration") if (e.declaration.type === "ClassDeclaration" && e.declaration.id) {
18858
- let r = e.declaration.decorators && e.declaration.decorators.length > 0 ? e.declaration.decorators[e.declaration.decorators.length - 1].end : e.start;
18859
- t.overwrite(r, e.declaration.id.start, " class "), t.append(`
18947
+ if (e.type === "ExportDefaultDeclaration") {
18948
+ if (e.declaration.type === "ClassDeclaration" && e.declaration.id) {
18949
+ let r = e.declaration.decorators && e.declaration.decorators.length > 0 ? e.declaration.decorators[e.declaration.decorators.length - 1].end : e.start;
18950
+ t.overwrite(r, e.declaration.id.start, " class "), t.append(`
18860
18951
  const ${n} = ${e.declaration.id.name}`);
18861
- } else t.overwrite(e.start, e.declaration.start, `const ${n} = `);
18862
- else if (e.type === "ExportNamedDeclaration") {
18952
+ } else t.overwrite(e.start, e.declaration.start, `const ${n} = `);
18953
+ } else if (e.type === "ExportNamedDeclaration") {
18863
18954
  for (let r of e.specifiers) if (r.type === "ExportSpecifier" && r.exported.type === "Identifier" && r.exported.name === "default") {
18864
- if (e.source) if (r.local.name === "default") {
18865
- t.prepend(`import { default as __VUE_DEFAULT__ } from '${e.source.value}'
18955
+ if (e.source) {
18956
+ if (r.local.name === "default") {
18957
+ t.prepend(`import { default as __VUE_DEFAULT__ } from '${e.source.value}'
18866
18958
  `);
18867
- let i = yl(t, r.local.end, e.end);
18868
- t.remove(r.start, i), t.append(`
18959
+ let i = yl(t, r.local.end, e.end);
18960
+ t.remove(r.start, i), t.append(`
18869
18961
  const ${n} = __VUE_DEFAULT__`);
18870
- continue;
18871
- } else {
18872
- t.prepend(`import { ${t.slice(r.local.start, r.local.end)} as __VUE_DEFAULT__ } from '${e.source.value}'
18962
+ continue;
18963
+ }
18964
+ {
18965
+ t.prepend(`import { ${t.slice(r.local.start, r.local.end)} as __VUE_DEFAULT__ } from '${e.source.value}'
18873
18966
  `);
18874
- let i = yl(t, r.exported.end, e.end);
18875
- t.remove(r.start, i), t.append(`
18967
+ let i = yl(t, r.exported.end, e.end);
18968
+ t.remove(r.start, i), t.append(`
18876
18969
  const ${n} = __VUE_DEFAULT__`);
18877
- continue;
18970
+ continue;
18971
+ }
18878
18972
  }
18879
18973
  let i = yl(t, r.end, e.end);
18880
18974
  t.remove(r.start, i), t.append(`
@@ -18949,17 +19043,16 @@ function Sl(e, t, n, r) {
18949
19043
  let a = r && r[e.name];
18950
19044
  a ||= t.typeParameters.params[i], n[e.name] = a;
18951
19045
  })), xl(e, a, a._ownerScope, n);
18952
- } else {
18953
- if (typeof i == "string") {
18954
- if (r && r[i]) return xl(e, r[i], n, r);
18955
- if (vC.has(i)) return Ml(e, t, i, n, r);
18956
- if (i === "ReturnType" && t.typeParameters) {
18957
- let r = cu(e, t.typeParameters.params[0], n);
18958
- if (r) return xl(e, r, n);
18959
- }
19046
+ }
19047
+ if (typeof i == "string") {
19048
+ if (r && r[i]) return xl(e, r[i], n, r);
19049
+ if (vC.has(i)) return Ml(e, t, i, n, r);
19050
+ if (i === "ReturnType" && t.typeParameters) {
19051
+ let r = cu(e, t.typeParameters.params[0], n);
19052
+ if (r) return xl(e, r, n);
18960
19053
  }
18961
- return e.error("Unresolvable type reference or unsupported built-in utility type", t, n);
18962
19054
  }
19055
+ return e.error("Unresolvable type reference or unsupported built-in utility type", t, n);
18963
19056
  }
18964
19057
  case "TSImportType": {
18965
19058
  if (Qc(t.argument) === "vue" && t.qualifier?.type === "Identifier" && t.qualifier.name === "ExtractPropTypes" && t.typeParameters) return iu(xl(e, t.typeParameters.params[0], n), n);
@@ -18967,12 +19060,10 @@ function Sl(e, t, n, r) {
18967
19060
  if (r) return xl(e, r, r._ownerScope);
18968
19061
  break;
18969
19062
  }
18970
- case "TSTypeQuery":
18971
- {
18972
- let r = Nl(e, t, n);
18973
- if (r) return xl(e, r, r._ownerScope);
18974
- }
18975
- break;
19063
+ case "TSTypeQuery": {
19064
+ let r = Nl(e, t, n);
19065
+ if (r) return xl(e, r, r._ownerScope);
19066
+ }
18976
19067
  }
18977
19068
  return e.error(`Unresolvable type: ${t.type}`, t, n);
18978
19069
  }
@@ -18989,10 +19080,10 @@ function wl(e, t) {
18989
19080
  if (e.length === 1) return e[0];
18990
19081
  let n = { props: {} }, { props: r } = n;
18991
19082
  for (let { props: i, calls: a } of e) {
18992
- for (let e in i) Ku(r, e) ? r[e] = Tl(r[e].key, {
19083
+ for (let e in i) r[e] = Ku(r, e) ? Tl(r[e].key, {
18993
19084
  type: t,
18994
19085
  types: [r[e], i[e]]
18995
- }, r[e]._ownerScope, r[e].optional || i[e].optional) : r[e] = i[e];
19086
+ }, r[e]._ownerScope, r[e].optional || i[e].optional) : i[e];
18996
19087
  a && (n.calls ||= []).push(...a);
18997
19088
  }
18998
19089
  return n;
@@ -19337,9 +19428,7 @@ function Xl(e, t, n, r) {
19337
19428
  case "TSDeclareFunction":
19338
19429
  e.id && (n[e.id.name] = e);
19339
19430
  break;
19340
- case "VariableDeclaration":
19341
- if (e.declare) for (let t of e.declarations) t.id.type === "Identifier" && t.id.typeAnnotation && (n[t.id.name] = t.id.typeAnnotation.typeAnnotation);
19342
- break;
19431
+ case "VariableDeclaration": if (e.declare) for (let t of e.declarations) t.id.type === "Identifier" && t.id.typeAnnotation && (n[t.id.name] = t.id.typeAnnotation.typeAnnotation);
19343
19432
  }
19344
19433
  }
19345
19434
  function Zl(e, t) {
@@ -19382,16 +19471,17 @@ function tu(e, t, n = t._ownerScope || Kl(e), r = !1, i) {
19382
19471
  case "TSTypeLiteral":
19383
19472
  case "TSInterfaceDeclaration": {
19384
19473
  let i = /* @__PURE__ */ new Set(), a = t.type === "TSTypeLiteral" ? t.members : t.body.body;
19385
- for (let t of a) if (r) if (t.type === "TSPropertySignature" && t.key.type === "NumericLiteral") i.add("Number");
19386
- else if (t.type === "TSIndexSignature") {
19387
- let r = t.parameters[0].typeAnnotation;
19388
- if (r && r.type !== "Noop") {
19389
- let t = tu(e, r.typeAnnotation, n)[0];
19390
- if (t === ES) return [ES];
19391
- i.add(t);
19392
- }
19393
- } else i.add("String");
19394
- else t.type === "TSCallSignatureDeclaration" || t.type === "TSConstructSignatureDeclaration" ? i.add("Function") : i.add("Object");
19474
+ for (let t of a) if (r) {
19475
+ if (t.type === "TSPropertySignature" && t.key.type === "NumericLiteral") i.add("Number");
19476
+ else if (t.type === "TSIndexSignature") {
19477
+ let r = t.parameters[0].typeAnnotation;
19478
+ if (r && r.type !== "Noop") {
19479
+ let t = tu(e, r.typeAnnotation, n)[0];
19480
+ if (t === ES) return [ES];
19481
+ i.add(t);
19482
+ }
19483
+ } else i.add("String");
19484
+ } else t.type === "TSCallSignatureDeclaration" || t.type === "TSConstructSignatureDeclaration" ? i.add("Function") : i.add("Object");
19395
19485
  return i.size ? Array.from(i) : [r ? ES : "Object"];
19396
19486
  }
19397
19487
  case "TSPropertySignature":
@@ -19491,9 +19581,7 @@ function tu(e, t, n = t._ownerScope || Kl(e), r = !1, i) {
19491
19581
  if (t.typeParameters && t.typeParameters.params[1]) return tu(e, t.typeParameters.params[1], n);
19492
19582
  break;
19493
19583
  case "Exclude":
19494
- case "OmitThisParameter":
19495
- if (t.typeParameters && t.typeParameters.params[0]) return tu(e, t.typeParameters.params[0], n);
19496
- break;
19584
+ case "OmitThisParameter": if (t.typeParameters && t.typeParameters.params[0]) return tu(e, t.typeParameters.params[0], n);
19497
19585
  }
19498
19586
  }
19499
19587
  break;
@@ -19533,13 +19621,11 @@ function tu(e, t, n = t._ownerScope || Kl(e), r = !1, i) {
19533
19621
  break;
19534
19622
  }
19535
19623
  case "TSTypeOperator": return tu(e, t.typeAnnotation, n, t.operator === "keyof");
19536
- case "TSAnyKeyword":
19537
- if (r) return [
19538
- "String",
19539
- "Number",
19540
- "Symbol"
19541
- ];
19542
- break;
19624
+ case "TSAnyKeyword": if (r) return [
19625
+ "String",
19626
+ "Number",
19627
+ "Symbol"
19628
+ ];
19543
19629
  }
19544
19630
  } catch {}
19545
19631
  return [ES];
@@ -19553,9 +19639,7 @@ function ru(e) {
19553
19639
  case "StringLiteral":
19554
19640
  t.add("String");
19555
19641
  break;
19556
- case "NumericLiteral":
19557
- t.add("Number");
19558
- break;
19642
+ case "NumericLiteral": t.add("Number");
19559
19643
  }
19560
19644
  return t.size ? [...t] : ["Number"];
19561
19645
  }
@@ -19721,7 +19805,7 @@ function _u(e, { key: t, required: n, type: r, skipCheck: i }, a) {
19721
19805
  let o, s = yu(e, t, r);
19722
19806
  if (s) o = `default: ${s.valueString}${s.needSkipFactory ? ", skipFactory: true" : ""}`;
19723
19807
  else if (a) {
19724
- let n = e.propsRuntimeDefaults.properties.find((e) => e.type === "SpreadElement" ? !1 : Kc(e.key, e.computed) === t);
19808
+ let n = e.propsRuntimeDefaults.properties.find((e) => e.type !== "SpreadElement" && Kc(e.key, e.computed) === t);
19725
19809
  n && (o = n.type === "ObjectProperty" ? `default: ${e.getString(n.value)}` : `${n.async ? "async " : ""}${n.kind === "method" ? "" : `${n.kind} `}default() ${e.getString(n.body)}`);
19726
19810
  }
19727
19811
  let c = tl(t);
@@ -19895,9 +19979,7 @@ function ku(e, t) {
19895
19979
  case "expose":
19896
19980
  i = t;
19897
19981
  break;
19898
- case "slots":
19899
- a = t;
19900
- break;
19982
+ case "slots": a = t;
19901
19983
  }
19902
19984
  }
19903
19985
  return n && e.error(`${jC}() cannot be used to declare props. Use ${EC}() instead.`, n), r && e.error(`${jC}() cannot be used to declare emits. Use ${OC}() instead.`, r), i && e.error(`${jC}() cannot be used to declare expose. Use ${kC}() instead.`, i), a && e.error(`${jC}() cannot be used to declare slots. Use ${AC}() instead.`, a), !0;
@@ -20002,12 +20084,13 @@ const ${sC} = ${t.local.name}
20002
20084
  let s = fu(d, o, a.id);
20003
20085
  d.propsDestructureRestId && (p[d.propsDestructureRestId] = "setup-reactive-const");
20004
20086
  let c = !s && Cu(d, o, a.id);
20005
- if (!c && (Ou(d, o, a.id) || uu(d, o, a.id)), s && !d.propsDestructureRestId && d.propsDestructureDecl) if (n === 1) d.s.remove(e.start + _, e.end + _);
20006
- else {
20007
- let o = a.start + _, s = a.end + _;
20008
- i === t - 1 ? o = e.declarations[r].end + _ : s = e.declarations[i + 1].start + _, d.s.remove(o, s), n--;
20009
- }
20010
- else c ? d.s.overwrite(_ + o.start, _ + o.end, "__emit") : r = i;
20087
+ if (!c && (Ou(d, o, a.id) || uu(d, o, a.id)), s && !d.propsDestructureRestId && d.propsDestructureDecl) {
20088
+ if (n === 1) d.s.remove(e.start + _, e.end + _);
20089
+ else {
20090
+ let o = a.start + _, s = a.end + _;
20091
+ i === t - 1 ? o = e.declarations[r].end + _ : s = e.declarations[i + 1].start + _, d.s.remove(o, s), n--;
20092
+ }
20093
+ } else c ? d.s.overwrite(_ + o.start, _ + o.end, "__emit") : r = i;
20011
20094
  }
20012
20095
  }
20013
20096
  }
@@ -20016,7 +20099,11 @@ const ${sC} = ${t.local.name}
20016
20099
  let t = [E.body];
20017
20100
  Ft(e, {
20018
20101
  enter(e, n) {
20019
- dp(e) && this.skip(), e.type === "BlockStatement" && t.push(e.body), e.type === "AwaitExpression" && (h = !0, Au(d, e, t[t.length - 1].some((n, r) => (t.length === 1 || r > 0) && n.type === "ExpressionStatement" && n.start === e.start), n.type === "ExpressionStatement"));
20102
+ if (dp(e) && this.skip(), e.type === "BlockStatement" && t.push(e.body), e.type === "AwaitExpression") {
20103
+ h = !0;
20104
+ let r = t[t.length - 1].some((n, r) => (t.length === 1 || r > 0) && n.type === "ExpressionStatement" && n.start === e.start);
20105
+ Au(d, e, r, n.type === "ExpressionStatement");
20106
+ }
20020
20107
  },
20021
20108
  exit(e) {
20022
20109
  e.type === "BlockStatement" && t.pop();
@@ -20181,11 +20268,12 @@ function Nu(e, t, n, r, i, a = !1) {
20181
20268
  return o;
20182
20269
  }
20183
20270
  function Pu(e, t, n, r = !1) {
20184
- for (let i of e.properties) if (i.type === "ObjectProperty") if (i.key.type === "Identifier" && i.key === i.value) {
20185
- let e = r ? "setup-const" : n ? "setup-maybe-ref" : "setup-let";
20186
- Mu(t, i.key, e);
20187
- } else Iu(i.value, t, n, r);
20188
- else {
20271
+ for (let i of e.properties) if (i.type === "ObjectProperty") {
20272
+ if (i.key.type === "Identifier" && i.key === i.value) {
20273
+ let e = r ? "setup-const" : n ? "setup-maybe-ref" : "setup-let";
20274
+ Mu(t, i.key, e);
20275
+ } else Iu(i.value, t, n, r);
20276
+ } else {
20189
20277
  let e = n ? "setup-const" : "setup-let";
20190
20278
  Mu(t, i.argument, e);
20191
20279
  }
@@ -20200,10 +20288,12 @@ function Iu(e, t, n, r = !1) {
20200
20288
  Mu(t, e.argument, r);
20201
20289
  } else if (e.type === "ObjectPattern") Pu(e, t, n);
20202
20290
  else if (e.type === "ArrayPattern") Fu(e, t, n);
20203
- else if (e.type === "AssignmentPattern") if (e.left.type === "Identifier") {
20204
- let i = r ? "setup-const" : n ? "setup-maybe-ref" : "setup-let";
20205
- Mu(t, e.left, i);
20206
- } else Iu(e.left, t, n);
20291
+ else if (e.type === "AssignmentPattern") {
20292
+ if (e.left.type === "Identifier") {
20293
+ let i = r ? "setup-const" : n ? "setup-maybe-ref" : "setup-let";
20294
+ Mu(t, e.left, i);
20295
+ } else Iu(e.left, t, n);
20296
+ }
20207
20297
  }
20208
20298
  function Lu(e, t) {
20209
20299
  if (Yc(e, t)) return !0;
@@ -20456,7 +20546,7 @@ var Bu, Vu, Hu, Uu, Wu, Gu, Ku, qu, Ju, Yu, Xu, K, Zu, Qu, $u, ed, td, nd, rd, i
20456
20546
  return e > 65535 && (e -= 65536, t += String.fromCharCode(e >>> 10 & 1023 | 55296), e = 56320 | e & 1023), t += String.fromCharCode(e), t;
20457
20547
  }), Pf = typeof global < "u" ? global : typeof self < "u" ? self : typeof window < "u" ? window : {}, Ff = [], If = [], Lf = typeof Uint8Array < "u" ? Uint8Array : Array, Rf = !1, zf = {}.toString, Bf = Array.isArray || function(e) {
20458
20548
  return zf.call(e) == "[object Array]";
20459
- }, Vf = 50, H.TYPED_ARRAY_SUPPORT = Pf.TYPED_ARRAY_SUPPORT === void 0 ? !0 : Pf.TYPED_ARRAY_SUPPORT, be(), H.poolSize = 8192, H._augment = function(e) {
20549
+ }, Vf = 50, H.TYPED_ARRAY_SUPPORT = Pf.TYPED_ARRAY_SUPPORT === void 0 || Pf.TYPED_ARRAY_SUPPORT, be(), H.poolSize = 8192, H._augment = function(e) {
20460
20550
  return e.__proto__ = H.prototype, e;
20461
20551
  }, H.from = function(e, t, n) {
20462
20552
  return Se(null, e, t, n);
@@ -20521,7 +20611,7 @@ var Bu, Vu, Hu, Uu, Wu, Gu, Ku, qu, Ju, Yu, Xu, K, Zu, Qu, $u, ed, td, nd, rd, i
20521
20611
  return e === 0 ? "" : arguments.length === 0 ? Ue(this, 0, e) : Ne.apply(this, arguments);
20522
20612
  }, H.prototype.equals = function(e) {
20523
20613
  if (!je(e)) throw TypeError("Argument must be a Buffer");
20524
- return this === e ? !0 : H.compare(this, e) === 0;
20614
+ return this === e || H.compare(this, e) === 0;
20525
20615
  }, H.prototype.inspect = function() {
20526
20616
  var e = "", t = Vf;
20527
20617
  return this.length > 0 && (e = this.toString("hex", 0, t).match(/.{2}/g).join(" "), this.length > t && (e += " ... ")), "<Buffer " + e + ">";
@@ -20920,17 +21010,18 @@ var Bu, Vu, Hu, Uu, Wu, Gu, Ku, qu, Ju, Yu, Xu, K, Zu, Qu, $u, ed, td, nd, rd, i
20920
21010
  e === 60 ? (this.index > this.sectionStart && this.cbs.ontext(this.sectionStart, this.index), this.state = 5, this.sectionStart = this.index) : e === 38 ? this.startEntity() : !this.inVPre && e === this.delimiterOpen[0] && (this.state = 2, this.delimiterIndex = 0, this.stateInterpolationOpen(e));
20921
21011
  }
20922
21012
  stateInterpolationOpen(e) {
20923
- if (e === this.delimiterOpen[this.delimiterIndex]) if (this.delimiterIndex === this.delimiterOpen.length - 1) {
20924
- let e = this.index + 1 - this.delimiterOpen.length;
20925
- e > this.sectionStart && this.cbs.ontext(this.sectionStart, e), this.state = 3, this.sectionStart = e;
20926
- } else this.delimiterIndex++;
20927
- else this.inRCDATA ? (this.state = 32, this.stateInRCDATA(e)) : (this.state = 1, this.stateText(e));
21013
+ if (e === this.delimiterOpen[this.delimiterIndex]) {
21014
+ if (this.delimiterIndex === this.delimiterOpen.length - 1) {
21015
+ let e = this.index + 1 - this.delimiterOpen.length;
21016
+ e > this.sectionStart && this.cbs.ontext(this.sectionStart, e), this.state = 3, this.sectionStart = e;
21017
+ } else this.delimiterIndex++;
21018
+ } else this.inRCDATA ? (this.state = 32, this.stateInRCDATA(e)) : (this.state = 1, this.stateText(e));
20928
21019
  }
20929
21020
  stateInterpolation(e) {
20930
21021
  e === this.delimiterClose[0] && (this.state = 4, this.delimiterIndex = 0, this.stateInterpolationClose(e));
20931
21022
  }
20932
21023
  stateInterpolationClose(e) {
20933
- e === this.delimiterClose[this.delimiterIndex] ? this.delimiterIndex === this.delimiterClose.length - 1 ? (this.cbs.oninterpolation(this.sectionStart, this.index + 1), this.inRCDATA ? this.state = 32 : this.state = 1, this.sectionStart = this.index + 1) : this.delimiterIndex++ : (this.state = 3, this.stateInterpolation(e));
21024
+ e === this.delimiterClose[this.delimiterIndex] ? this.delimiterIndex === this.delimiterClose.length - 1 ? (this.cbs.oninterpolation(this.sectionStart, this.index + 1), this.state = this.inRCDATA ? 32 : 1, this.sectionStart = this.index + 1) : this.delimiterIndex++ : (this.state = 3, this.stateInterpolation(e));
20934
21025
  }
20935
21026
  stateSpecialStartSequence(e) {
20936
21027
  let t = this.sequenceIndex === this.currentSequence.length;
@@ -20976,7 +21067,7 @@ var Bu, Vu, Hu, Uu, Wu, Gu, Ku, qu, Ju, Yu, Xu, K, Zu, Qu, $u, ed, td, nd, rd, i
20976
21067
  this.inRCDATA = !0, this.currentSequence = e, this.sequenceIndex = t;
20977
21068
  }
20978
21069
  stateBeforeTagName(e) {
20979
- e === 33 ? (this.state = 22, this.sectionStart = this.index + 1) : e === 63 ? (this.state = 24, this.sectionStart = this.index + 1) : St(e) ? (this.sectionStart = this.index, this.mode === 0 ? this.state = 6 : this.inSFCRoot ? this.state = 34 : this.inXML ? this.state = 6 : e === 116 ? this.state = 30 : this.state = e === 115 ? 29 : 6) : e === 47 ? this.state = 8 : (this.state = 1, this.stateText(e));
21070
+ e === 33 ? (this.state = 22, this.sectionStart = this.index + 1) : e === 63 ? (this.state = 24, this.sectionStart = this.index + 1) : St(e) ? (this.sectionStart = this.index, this.state = this.mode === 0 ? 6 : this.inSFCRoot ? 34 : this.inXML ? 6 : e === 116 ? 30 : e === 115 ? 29 : 6) : e === 47 ? this.state = 8 : (this.state = 1, this.stateText(e));
20980
21071
  }
20981
21072
  stateInTagName(e) {
20982
21073
  wt(e) && this.handleTagName(e);
@@ -21000,7 +21091,7 @@ var Bu, Vu, Hu, Uu, Wu, Gu, Ku, qu, Ju, Yu, Xu, K, Zu, Qu, $u, ed, td, nd, rd, i
21000
21091
  e === 62 && (this.state = 1, this.sectionStart = this.index + 1);
21001
21092
  }
21002
21093
  stateBeforeAttrName(e) {
21003
- e === 62 ? (this.cbs.onopentagend(this.index), this.inRCDATA ? this.state = 32 : this.state = 1, this.sectionStart = this.index + 1) : e === 47 ? (this.state = 7, this.peek() !== 62 && this.cbs.onerr(22, this.index)) : e === 60 && this.peek() === 47 ? (this.cbs.onopentagend(this.index), this.state = 5, this.sectionStart = this.index) : Ct(e) || (e === 61 && this.cbs.onerr(19, this.index), this.handleAttrStart(e));
21094
+ e === 62 ? (this.cbs.onopentagend(this.index), this.state = this.inRCDATA ? 32 : 1, this.sectionStart = this.index + 1) : e === 47 ? (this.state = 7, this.peek() !== 62 && this.cbs.onerr(22, this.index)) : e === 60 && this.peek() === 47 ? (this.cbs.onopentagend(this.index), this.state = 5, this.sectionStart = this.index) : Ct(e) || (e === 61 && this.cbs.onerr(19, this.index), this.handleAttrStart(e));
21004
21095
  }
21005
21096
  handleAttrStart(e) {
21006
21097
  e === 118 && this.peek() === 45 ? (this.state = 13, this.sectionStart = this.index) : e === 46 || e === 58 || e === 64 || e === 35 ? (this.cbs.ondirname(this.index, this.index + 1), this.state = 14, this.sectionStart = this.index + 1) : (this.state = 12, this.sectionStart = this.index);
@@ -21177,9 +21268,7 @@ var Bu, Vu, Hu, Uu, Wu, Gu, Ku, qu, Ju, Yu, Xu, K, Zu, Qu, $u, ed, td, nd, rd, i
21177
21268
  case 24:
21178
21269
  this.stateInProcessingInstruction(e);
21179
21270
  break;
21180
- case 33:
21181
- this.stateInEntity();
21182
- break;
21271
+ case 33: this.stateInEntity();
21183
21272
  }
21184
21273
  this.index++;
21185
21274
  }
@@ -21433,8 +21522,10 @@ var Bu, Vu, Hu, Uu, Wu, Gu, Ku, qu, Ju, Yu, Xu, K, Zu, Qu, $u, ed, td, nd, rd, i
21433
21522
  }
21434
21523
  for (let t in e) {
21435
21524
  let n = e[t];
21436
- if (typeof n == "object") if (Array.isArray(n)) for (let r = 0; r < n.length; r += 1) n[r] !== null && typeof n[r].type == "string" && (this.visit(n[r], e, t, r) || r--);
21437
- else n !== null && typeof n.type == "string" && this.visit(n, e, t, null);
21525
+ if (typeof n == "object") {
21526
+ if (Array.isArray(n)) for (let r = 0; r < n.length; r += 1) n[r] !== null && typeof n[r].type == "string" && (this.visit(n[r], e, t, r) || r--);
21527
+ else n !== null && typeof n.type == "string" && this.visit(n, e, t, null);
21528
+ }
21438
21529
  }
21439
21530
  if (this.leave) {
21440
21531
  let i = this.replacement, a = this.should_remove;
@@ -21472,9 +21563,7 @@ var Bu, Vu, Hu, Uu, Wu, Gu, Ku, qu, Ju, Yu, Xu, K, Zu, Qu, $u, ed, td, nd, rd, i
21472
21563
  --a || (n = r.pop());
21473
21564
  }
21474
21565
  break;
21475
- case 3:
21476
- s === o && (n = r.pop(), o = null);
21477
- break;
21566
+ case 3: s === o && (n = r.pop(), o = null);
21478
21567
  }
21479
21568
  }
21480
21569
  return !i && !a;
@@ -21621,14 +21710,16 @@ var Bu, Vu, Hu, Uu, Wu, Gu, Ku, qu, Ju, Yu, Xu, K, Zu, Qu, $u, ed, td, nd, rd, i
21621
21710
  },
21622
21711
  onattribend(e, t) {
21623
21712
  if (Fp && q) {
21624
- if (Pn(q.loc, t), e !== 0) if (q.type === 6) q.name === "class" && (Ip = An(Ip).trim()), e === 1 && !Ip && Ln(13, t), q.value = {
21625
- type: 2,
21626
- content: Ip,
21627
- loc: e === 1 ? Mn(Lp, Rp) : Mn(Lp - 1, Rp + 1)
21628
- }, Up.inSFCRoot && Fp.tag === "template" && q.name === "lang" && Ip && Ip !== "html" && Up.enterRCDATA(Tt("</template"), 0);
21629
- else {
21630
- let e = 0;
21631
- q.name === "for" ? e = 3 : q.name === "slot" ? e = 1 : q.name === "on" && Ip.includes(";") && (e = 2), q.exp = In(Ip, !1, Mn(Lp, Rp), 0, e), q.name === "for" && (q.forParseResult = vn(q.exp));
21713
+ if (Pn(q.loc, t), e !== 0) {
21714
+ if (q.type === 6) q.name === "class" && (Ip = An(Ip).trim()), e === 1 && !Ip && Ln(13, t), q.value = {
21715
+ type: 2,
21716
+ content: Ip,
21717
+ loc: e === 1 ? Mn(Lp, Rp) : Mn(Lp - 1, Rp + 1)
21718
+ }, Up.inSFCRoot && Fp.tag === "template" && q.name === "lang" && Ip && Ip !== "html" && Up.enterRCDATA(Tt("</template"), 0);
21719
+ else {
21720
+ let e = 0;
21721
+ q.name === "for" ? e = 3 : q.name === "slot" ? e = 1 : q.name === "on" && Ip.includes(";") && (e = 2), q.exp = In(Ip, !1, Mn(Lp, Rp), 0, e), q.name === "for" && (q.forParseResult = vn(q.exp));
21722
+ }
21632
21723
  }
21633
21724
  (q.type !== 7 || q.name !== "pre") && Fp.props.push(q);
21634
21725
  }
@@ -21668,9 +21759,7 @@ var Bu, Vu, Hu, Uu, Wu, Gu, Ku, qu, Ju, Yu, Xu, K, Zu, Qu, $u, ed, td, nd, rd, i
21668
21759
  case 18:
21669
21760
  case 19:
21670
21761
  case 20:
21671
- case 21:
21672
- Ln(9, e);
21673
- break;
21762
+ case 21: Ln(9, e);
21674
21763
  }
21675
21764
  for (let t = 0; t < Hp.length; t++) Sn(Hp[t], e - 1), Ln(24, Hp[t].loc.start.offset);
21676
21765
  },
@@ -21776,7 +21865,7 @@ var Bu, Vu, Hu, Uu, Wu, Gu, Ku, qu, Ju, Yu, Xu, K, Zu, Qu, $u, ed, td, nd, rd, i
21776
21865
  }
21777
21866
  }
21778
21867
  }, Dm = (e, t, n, r) => V(e, n, !1, !0, n.length ? n[0].loc : r), Om = /* @__PURE__ */ new WeakMap(), km = (e, t) => function() {
21779
- if (e = t.currentNode, !(e.type === 1 && (e.tagType === 0 || e.tagType === 1))) return;
21868
+ if (e = t.currentNode, e.type !== 1 || e.tagType !== 0 && e.tagType !== 1) return;
21780
21869
  let { tag: n, props: r } = e, i = e.tagType === 1, a = i ? ri(e, t) : `"${n}"`, o = Qu(a) && a.callee === ef, s, c, l = 0, u, d, f, p = o || a === Vd || a === Hd || !i && (n === "svg" || n === "foreignObject" || n === "math");
21781
21870
  if (r.length > 0) {
21782
21871
  let n = ai(e, t, void 0, i, o);
@@ -21784,17 +21873,19 @@ var Bu, Vu, Hu, Uu, Wu, Gu, Ku, qu, Ju, Yu, Xu, K, Zu, Qu, $u, ed, td, nd, rd, i
21784
21873
  let r = n.directives;
21785
21874
  f = r && r.length ? F(r.map((e) => ci(e, t))) : void 0, n.shouldUseBlock && (p = !0);
21786
21875
  }
21787
- if (e.children.length > 0) if (a === Ud && (p = !0, l |= 1024, e.children.length > 1 && t.onError(W(47, {
21788
- start: e.children[0].loc.start,
21789
- end: e.children[e.children.length - 1].loc.end,
21790
- source: ""
21791
- }))), i && a !== Vd && a !== Ud) {
21792
- let { slots: n, hasDynamicSlots: r } = ei(e, t);
21793
- c = n, r && (l |= 1024);
21794
- } else if (e.children.length === 1 && a !== Vd) {
21795
- let n = e.children[0], r = n.type, i = r === 5 || r === 8;
21796
- i && Un(n, t) === 0 && (l |= 1), c = i || r === 2 ? n : e.children;
21797
- } else c = e.children;
21876
+ if (e.children.length > 0) {
21877
+ if (a === Ud && (p = !0, l |= 1024, e.children.length > 1 && t.onError(W(47, {
21878
+ start: e.children[0].loc.start,
21879
+ end: e.children[e.children.length - 1].loc.end,
21880
+ source: ""
21881
+ }))), i && a !== Vd && a !== Ud) {
21882
+ let { slots: n, hasDynamicSlots: r } = ei(e, t);
21883
+ c = n, r && (l |= 1024);
21884
+ } else if (e.children.length === 1 && a !== Vd) {
21885
+ let n = e.children[0], r = n.type, i = r === 5 || r === 8;
21886
+ i && Un(n, t) === 0 && (l |= 1), c = i || r === 2 ? n : e.children;
21887
+ } else c = e.children;
21888
+ }
21798
21889
  d && d.length && (u = li(d)), e.codegenNode = P(t, a, s, c, l === 0 ? void 0 : l, u, f, !!p, !1, i, e.loc);
21799
21890
  }, Am = (e, t) => {
21800
21891
  if (cn(e)) {
@@ -21811,15 +21902,16 @@ var Bu, Vu, Hu, Uu, Wu, Gu, Ku, qu, Ju, Yu, Xu, K, Zu, Qu, $u, ed, td, nd, rd, i
21811
21902
  let { loc: i, modifiers: a, arg: o } = e;
21812
21903
  !e.exp && !a.length && n.onError(W(35, i));
21813
21904
  let s;
21814
- if (o.type === 4) if (o.isStatic) {
21815
- let e = o.content;
21816
- e.startsWith("vnode") && n.onError(W(52, o.loc)), e.startsWith("vue:") && (e = `vnode-${e.slice(4)}`), s = R(t.tagType !== 0 || e.startsWith("vnode") || !/[A-Z]/.test(e) ? ud(od(e)) : `on:${e}`, !0, o.loc);
21817
- } else s = z([
21818
- `${n.helperString(_f)}(`,
21819
- o,
21820
- ")"
21821
- ]);
21822
- else s = o, s.children.unshift(`${n.helperString(_f)}(`), s.children.push(")");
21905
+ if (o.type === 4) {
21906
+ if (o.isStatic) {
21907
+ let e = o.content;
21908
+ e.startsWith("vnode") && n.onError(W(52, o.loc)), e.startsWith("vue:") && (e = `vnode-${e.slice(4)}`), s = R(t.tagType !== 0 || e.startsWith("vnode") || !/[A-Z]/.test(e) ? ud(od(e)) : `on:${e}`, !0, o.loc);
21909
+ } else s = z([
21910
+ `${n.helperString(_f)}(`,
21911
+ o,
21912
+ ")"
21913
+ ]);
21914
+ } else s = o, s.children.unshift(`${n.helperString(_f)}(`), s.children.push(")");
21823
21915
  let c = e.exp;
21824
21916
  c && !c.content.trim() && (c = void 0);
21825
21917
  let l = n.cacheHandlers && !c && !n.inVOnce;
@@ -21840,9 +21932,9 @@ var Bu, Vu, Hu, Uu, Wu, Gu, Ku, qu, Ju, Yu, Xu, K, Zu, Qu, $u, ed, td, nd, rd, i
21840
21932
  return r && (u = r(u)), l && (u.props[0].value = n.cache(u.props[0].value)), u.props.forEach((e) => e.key.isHandlerKey = !0), u;
21841
21933
  }, Mm = (e, t, n) => {
21842
21934
  let { modifiers: r, loc: i } = e, a = e.arg, { exp: o } = e;
21843
- return o && o.type === 4 && !o.content.trim() ? (n.onError(W(34, i)), { props: [L(a, R("", !0, i))] }) : (a.type === 4 ? a.isStatic || (a.content = a.content ? `${a.content} || ""` : "\"\"") : (a.children.unshift("("), a.children.push(") || \"\"")), r.some((e) => e.content === "camel") && (a.type === 4 ? a.isStatic ? a.content = od(a.content) : a.content = `${n.helperString(hf)}(${a.content})` : (a.children.unshift(`${n.helperString(hf)}(`), a.children.push(")"))), n.inSSR || (r.some((e) => e.content === "prop") && Nm(a, "."), r.some((e) => e.content === "attr") && Nm(a, "^")), { props: [L(a, o)] });
21935
+ return o && o.type === 4 && !o.content.trim() ? (n.onError(W(34, i)), { props: [L(a, R("", !0, i))] }) : (a.type === 4 ? a.isStatic || (a.content = a.content ? `${a.content} || ""` : "\"\"") : (a.children.unshift("("), a.children.push(") || \"\"")), r.some((e) => e.content === "camel") && (a.type === 4 ? a.content = a.isStatic ? od(a.content) : `${n.helperString(hf)}(${a.content})` : (a.children.unshift(`${n.helperString(hf)}(`), a.children.push(")"))), n.inSSR || (r.some((e) => e.content === "prop") && Nm(a, "."), r.some((e) => e.content === "attr") && Nm(a, "^")), { props: [L(a, o)] });
21844
21936
  }, Nm = (e, t) => {
21845
- e.type === 4 ? e.isStatic ? e.content = t + e.content : e.content = `\`${t}\${${e.content}}\`` : (e.children.unshift(`'${t}' + (`), e.children.push(")"));
21937
+ e.type === 4 ? e.content = e.isStatic ? t + e.content : `\`${t}\${${e.content}}\`` : (e.children.unshift(`'${t}' + (`), e.children.push(")"));
21846
21938
  }, Pm = (e, t) => {
21847
21939
  if (e.type === 0 || e.type === 1 || e.type === 11 || e.type === 10) return () => {
21848
21940
  let n = e.children, r, i = !1;
@@ -21889,20 +21981,21 @@ var Bu, Vu, Hu, Uu, Wu, Gu, Ku, qu, Ju, Yu, Xu, K, Zu, Qu, $u, ed, td, nd, rd, i
21889
21981
  if (!o.trim() || !wp(r, n) && !c) return n.onError(W(42, r.loc)), fi();
21890
21982
  if (n.prefixIdentifiers && _p(o) && n.identifiers[o]) return n.onError(W(43, r.loc)), fi();
21891
21983
  let l = i || R("modelValue", !0), u = i ? hp(i) ? `onUpdate:${od(i.content)}` : z(["\"onUpdate:\" + ", i]) : "onUpdate:modelValue", d, f = n.isTS ? "($event: any)" : "$event";
21892
- if (c) if (s === "setup-ref") d = z([
21893
- `${f} => ((`,
21894
- R(a, !1, r.loc),
21895
- ").value = $event)"
21896
- ]);
21897
- else {
21898
- let e = s === "setup-let" ? `${a} = $event` : "null";
21899
- d = z([
21900
- `${f} => (${n.helperString(Cf)}(${a}) ? (`,
21984
+ if (c) {
21985
+ if (s === "setup-ref") d = z([
21986
+ `${f} => ((`,
21901
21987
  R(a, !1, r.loc),
21902
- `).value = $event : ${e})`
21988
+ ").value = $event)"
21903
21989
  ]);
21904
- }
21905
- else d = z([
21990
+ else {
21991
+ let e = s === "setup-let" ? `${a} = $event` : "null";
21992
+ d = z([
21993
+ `${f} => (${n.helperString(Cf)}(${a}) ? (`,
21994
+ R(a, !1, r.loc),
21995
+ `).value = $event : ${e})`
21996
+ ]);
21997
+ }
21998
+ } else d = z([
21906
21999
  `${f} => ((`,
21907
22000
  r,
21908
22001
  ") = $event)"
@@ -21972,11 +22065,12 @@ var Bu, Vu, Hu, Uu, Wu, Gu, Ku, qu, Ju, Yu, Xu, K, Zu, Qu, $u, ed, td, nd, rd, i
21972
22065
  },
21973
22066
  getNamespace(e, t, n) {
21974
22067
  let r = t ? t.ns : n;
21975
- if (t && r === 2) if (t.tag === "annotation-xml") {
21976
- if (e === "svg") return 1;
21977
- t.props.some((e) => e.type === 6 && e.name === "encoding" && e.value != null && (e.value.content === "text/html" || e.value.content === "application/xhtml+xml")) && (r = 0);
21978
- } else /^m(?:[ions]|text)$/.test(t.tag) && e !== "mglyph" && e !== "malignmark" && (r = 0);
21979
- else t && r === 1 && (t.tag === "foreignObject" || t.tag === "desc" || t.tag === "title") && (r = 0);
22068
+ if (t && r === 2) {
22069
+ if (t.tag === "annotation-xml") {
22070
+ if (e === "svg") return 1;
22071
+ t.props.some((e) => e.type === 6 && e.name === "encoding" && e.value != null && (e.value.content === "text/html" || e.value.content === "application/xhtml+xml")) && (r = 0);
22072
+ } else /^m(?:[ions]|text)$/.test(t.tag) && e !== "mglyph" && e !== "malignmark" && (r = 0);
22073
+ } else t && r === 1 && (t.tag === "foreignObject" || t.tag === "desc" || t.tag === "title") && (r = 0);
21980
22074
  if (r === 0) {
21981
22075
  if (e === "svg") return 1;
21982
22076
  if (e === "math") return 2;
@@ -22065,15 +22159,13 @@ var Bu, Vu, Hu, Uu, Wu, Gu, Ku, qu, Ju, Yu, Xu, K, Zu, Qu, $u, ed, td, nd, rd, i
22065
22159
  case "file":
22066
22160
  c = !0, n.onError(hi(60, e.loc));
22067
22161
  break;
22068
- default:
22069
- i();
22070
- break;
22162
+ default: i();
22071
22163
  }
22072
22164
  } else nn(t) ? s = qm : i();
22073
22165
  } else a === "select" ? s = Km : i();
22074
22166
  c || (r.needRuntime = n.helper(s));
22075
22167
  } else n.onError(hi(58, e.loc));
22076
- return r.props = r.props.filter((e) => !(e.key.type === 4 && e.key.content === "modelValue")), r;
22168
+ return r.props = r.props.filter((e) => e.key.type !== 4 || e.key.content !== "modelValue"), r;
22077
22169
  }, sh = /* @__PURE__ */ x("passive,once,capture"), ch = /* @__PURE__ */ x("stop,prevent,self,ctrl,shift,alt,meta,exact,middle"), lh = /* @__PURE__ */ x("left,right"), uh = /* @__PURE__ */ x("onkeyup,onkeydown,onkeypress"), dh = (e, t, n, r) => {
22078
22170
  let i = [], a = [], o = [];
22079
22171
  for (let n = 0; n < t.length; n++) {
@@ -22162,7 +22254,7 @@ var Bu, Vu, Hu, Uu, Wu, Gu, Ku, qu, Ju, Yu, Xu, K, Zu, Qu, $u, ed, td, nd, rd, i
22162
22254
  s(c);
22163
22255
  }, vh = (e) => {
22164
22256
  if ((e.type === 1 && e.tagType === 0 || e.type === 12) && e.codegenNode && e.codegenNode.type === 20) return e.codegenNode;
22165
- }, yh = /^(?:data|aria)-/, bh = (e, t) => (t === 0 ? jd(e) : t === 1 ? Md(e) : t === 2 ? Nd(e) : !1) || yh.test(e), xh = /* @__PURE__ */ x("caption,thead,tr,th,tbody,td,tfoot,colgroup,col"), Sh = (e, t) => {
22257
+ }, yh = /^(?:data|aria)-/, bh = (e, t) => (t === 0 ? jd(e) : t === 1 ? Md(e) : t === 2 && Nd(e)) || yh.test(e), xh = /* @__PURE__ */ x("caption,thead,tr,th,tbody,td,tfoot,colgroup,col"), Sh = (e, t) => {
22166
22258
  e.type === 1 && e.tagType === 0 && (e.tag === "script" || e.tag === "style") && (t.onError(hi(64, e.loc)), t.removeNode());
22167
22259
  }, Ch = /* @__PURE__ */ new Set([
22168
22260
  "h1",
@@ -22713,7 +22805,7 @@ var Bu, Vu, Hu, Uu, Wu, Gu, Ku, qu, Ju, Yu, Xu, K, Zu, Qu, $u, ed, td, nd, rd, i
22713
22805
  }
22714
22806
  if (n.protocol = e.protocol, !e.host && !v_[e.protocol]) {
22715
22807
  for (l = (e.pathname || "").split("/"); l.length && !(e.host = l.shift()););
22716
- e.host ||= "", e.hostname ||= "", l[0] !== "" && l.unshift(""), l.length < 2 && l.unshift(""), n.pathname = l.join("/");
22808
+ e.host || (e.host = ""), e.hostname || (e.hostname = ""), l[0] !== "" && l.unshift(""), l.length < 2 && l.unshift(""), n.pathname = l.join("/");
22717
22809
  } else n.pathname = e.pathname;
22718
22810
  return n.search = e.search, n.query = e.query, n.host = e.host || "", n.auth = e.auth, n.hostname = e.hostname || e.host, n.port = e.port, (n.pathname || n.search) && (n.path = (n.pathname || "") + (n.search || "")), n.slashes = n.slashes || e.slashes, n.href = n.format(), n;
22719
22811
  }
@@ -22723,7 +22815,7 @@ var Bu, Vu, Hu, Uu, Wu, Gu, Ku, qu, Ju, Yu, Xu, K, Zu, Qu, $u, ed, td, nd, rd, i
22723
22815
  if (m) n.host = e.host || e.host === "" ? e.host : n.host, n.hostname = e.hostname || e.hostname === "" ? e.hostname : n.hostname, n.search = e.search, n.query = e.query, _ = l;
22724
22816
  else if (l.length) _ ||= [], _.pop(), _ = _.concat(l), n.search = e.search, n.query = e.query;
22725
22817
  else if (!Ha(e.search)) return v && (n.hostname = n.host = _.shift(), y = n.host && n.host.indexOf("@") > 0 ? n.host.split("@") : !1, y && (n.auth = y.shift(), n.host = n.hostname = y.shift())), n.search = e.search, n.query = e.query, (!Va(n.pathname) || !Va(n.search)) && (n.path = (n.pathname ? n.pathname : "") + (n.search ? n.search : "")), n.href = n.format(), n;
22726
- if (!_.length) return n.pathname = null, n.search ? n.path = "/" + n.search : n.path = null, n.href = n.format(), n;
22818
+ if (!_.length) return n.pathname = null, n.path = n.search ? "/" + n.search : null, n.href = n.format(), n;
22727
22819
  for (var b = _.slice(-1)[0], x = (n.host || e.host || _.length > 1) && (b === "." || b === "..") || b === "", S = 0, C = _.length; C >= 0; C--) b = _[C], b === "." ? _.splice(C, 1) : b === ".." ? (_.splice(C, 1), S++) : S && (_.splice(C, 1), S--);
22728
22820
  if (!h && !g) for (; S--;) _.unshift("..");
22729
22821
  h && _[0] !== "" && (!_[0] || _[0].charAt(0) !== "/") && _.unshift(""), x && _.join("/").substr(-1) !== "/" && _.push("");
@@ -22889,7 +22981,7 @@ var Bu, Vu, Hu, Uu, Wu, Gu, Ku, qu, Ju, Yu, Xu, K, Zu, Qu, $u, ed, td, nd, rd, i
22889
22981
  66: "Missing the 'to' prop on teleport element.",
22890
22982
  67: "Invalid AST node during SSR transform."
22891
22983
  }, uv = /* @__PURE__ */ new WeakMap(), dv = /* @__PURE__ */ new WeakMap(), fv = (e, t) => {
22892
- if (!(e.type !== 1 || e.tagType !== 0)) return function() {
22984
+ if (e.type === 1 && e.tagType === 0) return function() {
22893
22985
  let n = [`<${e.tag}`], r = e.tag === "textarea" || e.tag.indexOf("-") > 0, i = nn(e), a = e.props.some((e) => e.type === 7 && !rd(e.name)), o = e.props.findIndex((e) => e.type === 7 && e.name === "show");
22894
22986
  if (o !== -1) {
22895
22987
  let t = e.props[o];
@@ -22922,39 +23014,41 @@ var Bu, Vu, Hu, Uu, Wu, Gu, Ku, qu, Ju, Yu, Xu, K, Zu, Qu, $u, ed, td, nd, rd, i
22922
23014
  let c, l, u;
22923
23015
  for (let i = 0; i < e.props.length; i++) {
22924
23016
  let a = e.props[i];
22925
- if (!(e.tag === "input" && Bo(a))) if (a.type === 7) {
22926
- if (a.name === "html" && a.exp) dv.set(e, z([
22927
- "(",
22928
- a.exp,
22929
- ") ?? ''"
22930
- ]));
22931
- else if (a.name === "text" && a.exp) e.children = [ee(a.exp, a.loc)];
22932
- else if (a.name === "slot") t.onError(W(40, a.loc));
22933
- else if (Vo(e, a) && a.exp) s || (e.children = [ee(a.exp, a.loc)]);
22934
- else if (!s && a.name !== "on") {
22935
- let i = t.directiveTransforms[a.name];
22936
- if (i) {
22937
- let { props: o, ssrTagParts: s } = i(a, e, t);
22938
- s && n.push(...s);
22939
- for (let i = 0; i < o.length; i++) {
22940
- let { key: a, value: s } = o[i];
22941
- if (hp(a)) {
22942
- let r = a.content;
22943
- if (r === "key" || r === "ref") continue;
22944
- r === "class" ? n.push(" class=\"", c = B(t.helper(G_), [s]), "\"") : r === "style" ? u ? Ho(u, s) : n.push(" style=\"", u = B(t.helper(K_), [s]), "\"") : (r = e.tag.indexOf("-") > 0 ? r : Ad[r] || r.toLowerCase(), Dd(r) ? n.push(te(B(t.helper(Z_), [s]), R(" " + r, !0), R("", !0), !1)) : k(r) ? n.push(B(t.helper(J_), [a, s])) : t.onError(Fo(65, a.loc)));
22945
- } else {
22946
- let i = [a, s];
22947
- r && i.push(`"${e.tag}"`), n.push(B(t.helper(Y_), i));
23017
+ if (!(e.tag === "input" && Bo(a))) {
23018
+ if (a.type === 7) {
23019
+ if (a.name === "html" && a.exp) dv.set(e, z([
23020
+ "(",
23021
+ a.exp,
23022
+ ") ?? ''"
23023
+ ]));
23024
+ else if (a.name === "text" && a.exp) e.children = [ee(a.exp, a.loc)];
23025
+ else if (a.name === "slot") t.onError(W(40, a.loc));
23026
+ else if (Vo(e, a) && a.exp) s || (e.children = [ee(a.exp, a.loc)]);
23027
+ else if (!s && a.name !== "on") {
23028
+ let i = t.directiveTransforms[a.name];
23029
+ if (i) {
23030
+ let { props: o, ssrTagParts: s } = i(a, e, t);
23031
+ s && n.push(...s);
23032
+ for (let i = 0; i < o.length; i++) {
23033
+ let { key: a, value: s } = o[i];
23034
+ if (hp(a)) {
23035
+ let r = a.content;
23036
+ if (r === "key" || r === "ref") continue;
23037
+ r === "class" ? n.push(" class=\"", c = B(t.helper(G_), [s]), "\"") : r === "style" ? u ? Ho(u, s) : n.push(" style=\"", u = B(t.helper(K_), [s]), "\"") : (r = e.tag.indexOf("-") > 0 ? r : Ad[r] || r.toLowerCase(), Dd(r) ? n.push(te(B(t.helper(Z_), [s]), R(" " + r, !0), R("", !0), !1)) : k(r) ? n.push(B(t.helper(J_), [a, s])) : t.onError(Fo(65, a.loc)));
23038
+ } else {
23039
+ let i = [a, s];
23040
+ r && i.push(`"${e.tag}"`), n.push(B(t.helper(Y_), i));
23041
+ }
22948
23042
  }
22949
23043
  }
22950
23044
  }
22951
- }
22952
- } else {
22953
- let t = a.name;
22954
- if (e.tag === "textarea" && t === "value" && a.value) dv.set(e, A(a.value.content));
22955
- else if (!s) {
22956
- if (t === "key" || t === "ref") continue;
22957
- t === "class" && a.value && (l = JSON.stringify(a.value.content)), n.push(` ${a.name}` + (a.value ? `="${A(a.value.content)}"` : ""));
23045
+ } else {
23046
+ let t = a.name;
23047
+ if (e.tag === "textarea" && t === "value" && a.value) dv.set(e, A(a.value.content));
23048
+ else if (!s) {
23049
+ if (t === "key" || t === "ref") continue;
23050
+ t === "class" && a.value && (l = JSON.stringify(a.value.content)), n.push(` ${a.name}` + (a.value ? `="${A(a.value.content)}"` : ""));
23051
+ }
22958
23052
  }
22959
23053
  }
22960
23054
  }
@@ -22997,12 +23091,12 @@ var Bu, Vu, Hu, Uu, Wu, Gu, Ku, qu, Ju, Yu, Xu, K, Zu, Qu, $u, ed, td, nd, rd, i
22997
23091
  vnodeBranch: i[s.length]
22998
23092
  }), a;
22999
23093
  }).slots : "null";
23000
- typeof n == "string" ? e.ssrCodegenNode = B(t.helper(H_), [
23094
+ e.ssrCodegenNode = typeof n == "string" ? B(t.helper(H_), [
23001
23095
  n,
23002
23096
  o,
23003
23097
  c,
23004
23098
  "_parent"
23005
- ]) : e.ssrCodegenNode = B(t.helper(V_), [
23099
+ ]) : B(t.helper(V_), [
23006
23100
  "_push",
23007
23101
  B(t.helper(Jd), [
23008
23102
  n,
@@ -23056,14 +23150,13 @@ var Bu, Vu, Hu, Uu, Wu, Gu, Ku, qu, Ju, Yu, Xu, K, Zu, Qu, $u, ed, td, nd, rd, i
23056
23150
  case "file":
23057
23151
  n.onError(hi(60, e.loc));
23058
23152
  break;
23059
- default:
23060
- i(), o.props = a;
23061
- break;
23153
+ default: i(), o.props = a;
23062
23154
  }
23063
23155
  } else nn(t) || (i(), o.props = a);
23064
23156
  } else t.tag === "textarea" ? (i(), t.children = [ee(r, r.loc)]) : t.tag === "select" ? a(t.children) : n.onError(hi(58, e.loc));
23065
23157
  return o;
23066
- } else return Lm(e, t, n);
23158
+ }
23159
+ return Lm(e, t, n);
23067
23160
  }, Pv = (e, t, n) => (e.exp || n.onError(hi(62)), { props: [L("style", te(e.exp, R("null", !1), I([L("display", R("none", !0))]), !1))] }), Fv = (e) => e.children.filter((e) => !_n(e)), Iv = (e) => Fv(e).length === 1, Lv = (e, t) => {
23068
23161
  if (e.type === 0 && (t.identifiers._attrs = 1), e.type === 1 && e.tagType === 1 && (e.tag === "transition" || e.tag === "Transition" || e.tag === "KeepAlive" || e.tag === "keep-alive")) {
23069
23162
  let n = Fv(t.root);
@@ -23073,20 +23166,24 @@ var Bu, Vu, Hu, Uu, Wu, Gu, Ku, qu, Ju, Yu, Xu, K, Zu, Qu, $u, ed, td, nd, rd, i
23073
23166
  }
23074
23167
  }
23075
23168
  let n = t.parent;
23076
- if (!(!n || n.type !== 0)) if (e.type === 10 && Iv(e)) {
23077
- let t = !1;
23078
- for (let e of Fv(n)) if (e.type === 9 || e.type === 1 && $t(e, "if")) {
23079
- if (t) return;
23080
- t = !0;
23081
- } else if (!t || !(e.type === 1 && $t(e, /else/, !0))) return;
23082
- ss(e.children[0]);
23083
- } else Iv(n) && ss(e);
23169
+ if (!(!n || n.type !== 0)) {
23170
+ if (e.type === 10 && Iv(e)) {
23171
+ let t = !1;
23172
+ for (let e of Fv(n)) if (e.type === 9 || e.type === 1 && $t(e, "if")) {
23173
+ if (t) return;
23174
+ t = !0;
23175
+ } else if (!t || !(e.type === 1 && $t(e, /else/, !0))) return;
23176
+ ss(e.children[0]);
23177
+ } else Iv(n) && ss(e);
23178
+ }
23084
23179
  }, Rv = (e, t) => {
23085
23180
  if (!t.ssrCssVars) return;
23086
23181
  e.type === 0 && (t.identifiers._cssVars = 1);
23087
23182
  let n = t.parent;
23088
- if (!(!n || n.type !== 0)) if (e.type === 10) for (let t of e.children) cs(t);
23089
- else cs(e);
23183
+ if (!(!n || n.type !== 0)) {
23184
+ if (e.type === 10) for (let t of e.children) cs(t);
23185
+ else cs(e);
23186
+ }
23090
23187
  }, zv = Object.defineProperty, Bv = Object.defineProperties, Vv = Object.getOwnPropertyDescriptors, Hv = Object.getOwnPropertySymbols, Uv = Object.prototype.hasOwnProperty, Wv = Object.prototype.propertyIsEnumerable, Gv = (e, t, n) => t in e ? zv(e, t, {
23091
23188
  enumerable: !0,
23092
23189
  configurable: !0,
@@ -23247,7 +23344,7 @@ var Bu, Vu, Hu, Uu, Wu, Gu, Ku, qu, Ju, Yu, Xu, K, Zu, Qu, $u, ed, td, nd, rd, i
23247
23344
  let t = FS.charCodeAt(e);
23248
23345
  IS[e] = t, LS[t] = e;
23249
23346
  }
23250
- RS = 1024 * 16, zS = typeof TextDecoder < "u" ? /* @__PURE__ */ new TextDecoder() : typeof Buffer < "u" ? { decode(e) {
23347
+ RS = 16384, zS = typeof TextDecoder < "u" ? /* @__PURE__ */ new TextDecoder() : typeof Buffer < "u" ? { decode(e) {
23251
23348
  return Buffer.from(e.buffer, e.byteOffset, e.byteLength).toString();
23252
23349
  } } : { decode(e) {
23253
23350
  let t = "";
@@ -23336,7 +23433,8 @@ var Bu, Vu, Hu, Uu, Wu, Gu, Ku, qu, Ju, Yu, Xu, K, Zu, Qu, $u, ed, td, nd, rd, i
23336
23433
  this.edited && e.edit(t, this.storeName, !0), this.edit("", void 0, !0);
23337
23434
  }
23338
23435
  return !0;
23339
- } else if (this.edit("", void 0, !0), this.outro = this.outro.replace(e, ""), this.outro.length) return !0;
23436
+ }
23437
+ if (this.edit("", void 0, !0), this.outro = this.outro.replace(e, ""), this.outro.length) return !0;
23340
23438
  }
23341
23439
  }, US = /*#__PURE__*/ ll(), WS = class {
23342
23440
  constructor(e) {
@@ -23588,7 +23686,7 @@ var Bu, Vu, Hu, Uu, Wu, Gu, Ku, qu, Ju, Yu, Xu, K, Zu, Qu, $u, ed, td, nd, rd, i
23588
23686
  if (t > this.original.length) throw Error("end is out of bounds");
23589
23687
  if (e === t) throw Error("Cannot overwrite a zero-length range – use appendLeft or prependRight instead");
23590
23688
  this._split(e), this._split(t), r === !0 && (YS.storeName || (console.warn("The final argument to magicString.overwrite(...) should be an options object. See https://github.com/rich-harris/magic-string"), YS.storeName = !0), r = { storeName: !0 });
23591
- let i = r === void 0 ? !1 : r.storeName, a = r === void 0 ? !1 : r.overwrite;
23689
+ let i = r !== void 0 && r.storeName, a = r !== void 0 && r.overwrite;
23592
23690
  if (i) {
23593
23691
  let n = this.original.slice(e, t);
23594
23692
  Object.defineProperty(this.storedNames, n, {
@@ -23922,7 +24020,7 @@ ${w(e.source, t.pos + n, t.pos + n + 1)}`, t;
23922
24020
  (function(e) {
23923
24021
  e.parser = function(e, t) {
23924
24022
  return new n(e, t);
23925
- }, e.SAXParser = n, e.SAXStream = u, e.createStream = c, e.MAX_BUFFER_LENGTH = 64 * 1024;
24023
+ }, e.SAXParser = n, e.SAXStream = u, e.createStream = c, e.MAX_BUFFER_LENGTH = 65536;
23926
24024
  var t = [
23927
24025
  "comment",
23928
24026
  "sgmlDecl",
@@ -24465,11 +24563,13 @@ ${w(e.source, t.pos + n, t.pos + n + 1)}`, t;
24465
24563
  }
24466
24564
  if (e.opt.xmlns) {
24467
24565
  var t = z(e.attribName, !0), n = t.prefix, r = t.local;
24468
- if (n === "xmlns") if (r === "xml" && e.attribValue !== p) R(e, "xml: prefix must be bound to " + p + "\nActual: " + e.attribValue);
24469
- else if (r === "xmlns" && e.attribValue !== m) R(e, "xmlns: prefix must be bound to " + m + "\nActual: " + e.attribValue);
24470
- else {
24471
- var i = e.tag, a = e.tags[e.tags.length - 1] || e;
24472
- i.ns === a.ns && (i.ns = Object.create(a.ns)), i.ns[r] = e.attribValue;
24566
+ if (n === "xmlns") {
24567
+ if (r === "xml" && e.attribValue !== p) R(e, "xml: prefix must be bound to " + p + "\nActual: " + e.attribValue);
24568
+ else if (r === "xmlns" && e.attribValue !== m) R(e, "xmlns: prefix must be bound to " + m + "\nActual: " + e.attribValue);
24569
+ else {
24570
+ var i = e.tag, a = e.tags[e.tags.length - 1] || e;
24571
+ i.ns === a.ns && (i.ns = Object.create(a.ns)), i.ns[r] = e.attribValue;
24572
+ }
24473
24573
  }
24474
24574
  e.attribList.push([e.attribName, e.attribValue]);
24475
24575
  } else e.tag.attributes[e.attribName] = e.attribValue, N(e, "onattribute", {
@@ -24501,7 +24601,7 @@ ${w(e.source, t.pos + n, t.pos + n + 1)}`, t;
24501
24601
  }
24502
24602
  e.attribList.length = 0;
24503
24603
  }
24504
- e.tag.isSelfClosing = !!t, e.sawRoot = !0, e.tags.push(e.tag), N(e, "onopentag", e.tag), t || (!e.noscript && e.tagName.toLowerCase() === "script" ? e.state = E.SCRIPT : e.state = E.TEXT, e.tag = null, e.tagName = ""), e.attribName = e.attribValue = "", e.attribList.length = 0;
24604
+ e.tag.isSelfClosing = !!t, e.sawRoot = !0, e.tags.push(e.tag), N(e, "onopentag", e.tag), t || (e.state = !e.noscript && e.tagName.toLowerCase() === "script" ? E.SCRIPT : E.TEXT, e.tag = null, e.tagName = ""), e.attribName = e.attribValue = "", e.attribList.length = 0;
24505
24605
  }
24506
24606
  function te(e) {
24507
24607
  if (!e.tagName) {
@@ -24579,15 +24679,17 @@ ${w(e.source, t.pos + n, t.pos + n + 1)}`, t;
24579
24679
  continue;
24580
24680
  case E.OPEN_WAKA:
24581
24681
  if (a === "!") n.state = E.SGML_DECL, n.sgmlDecl = "";
24582
- else if (!x(a)) if (w(g, a)) n.state = E.OPEN_TAG, n.tagName = a;
24583
- else if (a === "/") n.state = E.CLOSE_TAG, n.tagName = "";
24584
- else if (a === "?") n.state = E.PROC_INST, n.procInstName = n.procInstBody = "";
24585
- else {
24586
- if (R(n, "Unencoded <"), n.startTagPosition + 1 < n.position) {
24587
- var s = n.position - n.startTagPosition;
24588
- a = Array(s).join(" ") + a;
24682
+ else if (!x(a)) {
24683
+ if (w(g, a)) n.state = E.OPEN_TAG, n.tagName = a;
24684
+ else if (a === "/") n.state = E.CLOSE_TAG, n.tagName = "";
24685
+ else if (a === "?") n.state = E.PROC_INST, n.procInstName = n.procInstBody = "";
24686
+ else {
24687
+ if (R(n, "Unencoded <"), n.startTagPosition + 1 < n.position) {
24688
+ var s = n.position - n.startTagPosition;
24689
+ a = Array(s).join(" ") + a;
24690
+ }
24691
+ n.textNode += "<" + a, n.state = E.TEXT;
24589
24692
  }
24590
- n.textNode += "<" + a, n.state = E.TEXT;
24591
24693
  }
24592
24694
  continue;
24593
24695
  case E.SGML_DECL:
@@ -24619,7 +24721,7 @@ ${w(e.source, t.pos + n, t.pos + n + 1)}`, t;
24619
24721
  a === "-" ? (n.state = E.COMMENT_ENDED, n.comment = F(n.opt, n.comment), n.comment && N(n, "oncomment", n.comment), n.comment = "") : (n.comment += "-" + a, n.state = E.COMMENT);
24620
24722
  continue;
24621
24723
  case E.COMMENT_ENDED:
24622
- a === ">" ? n.doctype && n.doctype !== !0 ? n.state = E.DOCTYPE_DTD : n.state = E.TEXT : (R(n, "Malformed comment"), n.comment += "--" + a, n.state = E.COMMENT);
24724
+ a === ">" ? n.state = n.doctype && n.doctype !== !0 ? E.DOCTYPE_DTD : E.TEXT : (R(n, "Malformed comment"), n.comment += "--" + a, n.state = E.COMMENT);
24623
24725
  continue;
24624
24726
  case E.CDATA:
24625
24727
  for (var o = i - 1; a && a !== "]";) a = ie(t, i++), a && n.trackPosition && (n.position++, a === "\n" ? (n.line++, n.column = 0) : n.column++);
@@ -24711,9 +24813,7 @@ ${w(e.source, t.pos + n, t.pos + n + 1)}`, t;
24711
24813
  case E.ATTRIB_VALUE_ENTITY_Q:
24712
24814
  c = E.ATTRIB_VALUE_QUOTED, l = "attribValue";
24713
24815
  break;
24714
- case E.ATTRIB_VALUE_ENTITY_U:
24715
- c = E.ATTRIB_VALUE_UNQUOTED, l = "attribValue";
24716
- break;
24816
+ case E.ATTRIB_VALUE_ENTITY_U: c = E.ATTRIB_VALUE_UNQUOTED, l = "attribValue";
24717
24817
  }
24718
24818
  if (a === ";") {
24719
24819
  var u = ne(n);
@@ -27114,16 +27214,18 @@ ${w(e.source, t.pos + n, t.pos + n + 1)}`, t;
27114
27214
  for (; t != null;) s.ENTITIES[t[1]] = t[2] || t[3], t = i.exec(e);
27115
27215
  }
27116
27216
  }, s.onprocessinginstruction = (e) => {
27117
- d({
27217
+ let t = {
27118
27218
  type: "instruction",
27119
27219
  name: e.name,
27120
27220
  value: e.body
27121
- });
27221
+ };
27222
+ d(t);
27122
27223
  }, s.oncomment = (e) => {
27123
- d({
27224
+ let t = {
27124
27225
  type: "comment",
27125
27226
  value: e.trim()
27126
- });
27227
+ };
27228
+ d(t);
27127
27229
  }, s.oncdata = (e) => {
27128
27230
  d({
27129
27231
  type: "cdata",
@@ -27139,13 +27241,19 @@ ${w(e.source, t.pos + n, t.pos + n + 1)}`, t;
27139
27241
  for (let [n, r] of Object.entries(e.attributes)) t.attributes[n] = r.value;
27140
27242
  d(t), l = t, u.push(t);
27141
27243
  }, s.ontext = (e) => {
27142
- l.type === "element" && (n.has(l.name) ? d({
27143
- type: "text",
27144
- value: e
27145
- }) : /\S/.test(e) && d({
27146
- type: "text",
27147
- value: e.trim()
27148
- }));
27244
+ if (l.type === "element") {
27245
+ if (n.has(l.name)) d({
27246
+ type: "text",
27247
+ value: e
27248
+ });
27249
+ else if (/\S/.test(e)) {
27250
+ let t = {
27251
+ type: "text",
27252
+ value: e.trim()
27253
+ };
27254
+ d(t);
27255
+ }
27256
+ }
27149
27257
  }, s.onclosetag = () => {
27150
27258
  u.pop(), l = u[u.length - 1];
27151
27259
  }, s.onerror = (t) => {
@@ -30087,7 +30195,7 @@ ${w(e.source, t.pos + n, t.pos + n + 1)}`, t;
30087
30195
  }
30088
30196
  function s(e, t) {
30089
30197
  var n = o(e);
30090
- return n ? n(t) : !0;
30198
+ return !n || n(t);
30091
30199
  }
30092
30200
  function c(e, t, r, i) {
30093
30201
  i === void 0 && (i = Infinity);
@@ -30455,16 +30563,18 @@ function Lw(e, t, n) {
30455
30563
  continue;
30456
30564
  }
30457
30565
  let e = i(1).toLowerCase(), a = null;
30458
- if (t.charCodeAt(n) === 40) if (Vw.has(e)) {
30459
- if (Pw(t.charCodeAt(n + 1))) throw Error(`Pseudo-selector ${e} cannot be quoted`);
30460
- if (a = [], n = Lw(a, t, n + 1), t.charCodeAt(n) !== 41) throw Error(`Missing closing parenthesis in :${e} (${t})`);
30461
- n += 1;
30462
- } else {
30463
- if (a = o(), Hw.has(e)) {
30464
- let e = a.charCodeAt(0);
30465
- e === a.charCodeAt(a.length - 1) && Pw(e) && (a = a.slice(1, -1));
30566
+ if (t.charCodeAt(n) === 40) {
30567
+ if (Vw.has(e)) {
30568
+ if (Pw(t.charCodeAt(n + 1))) throw Error(`Pseudo-selector ${e} cannot be quoted`);
30569
+ if (a = [], n = Lw(a, t, n + 1), t.charCodeAt(n) !== 41) throw Error(`Missing closing parenthesis in :${e} (${t})`);
30570
+ n += 1;
30571
+ } else {
30572
+ if (a = o(), Hw.has(e)) {
30573
+ let e = a.charCodeAt(0);
30574
+ e === a.charCodeAt(a.length - 1) && Pw(e) && (a = a.slice(1, -1));
30575
+ }
30576
+ a = Nw(a);
30466
30577
  }
30467
- a = Nw(a);
30468
30578
  }
30469
30579
  r.push({
30470
30580
  type: X.Pseudo,
@@ -31056,7 +31166,7 @@ var Xw, Zw, Qw, $w, eT, tT = f((() => {
31056
31166
  if (h === r.default.falseFunc) return r.default.falseFunc;
31057
31167
  var g = a(h, f);
31058
31168
  if (m && h !== r.default.trueFunc) {
31059
- var _ = h.shouldTestNextSiblings, v = _ === void 0 ? !1 : _;
31169
+ var _ = h.shouldTestNextSiblings, v = _ !== void 0 && _;
31060
31170
  return function(e) {
31061
31171
  if (!n(e)) return !1;
31062
31172
  m[0] = e;
@@ -31248,8 +31358,10 @@ var Xw, Zw, Qw, $w, eT, tT = f((() => {
31248
31358
  return e === l.PLACEHOLDER_ELEMENT || t && r.isTag(t);
31249
31359
  }), o = 0, c = e; o < c.length; o++) {
31250
31360
  var u = c[o];
31251
- if (!(u.length > 0 && (0, s.isTraversal)(u[0]) && u[0].type !== a.SelectorType.Descendant)) if (i && !u.some(f)) u.unshift(p);
31252
- else continue;
31361
+ if (!(u.length > 0 && (0, s.isTraversal)(u[0]) && u[0].type !== a.SelectorType.Descendant)) {
31362
+ if (i && !u.some(f)) u.unshift(p);
31363
+ else continue;
31364
+ }
31253
31365
  u.unshift(h);
31254
31366
  }
31255
31367
  }
@@ -31579,7 +31691,7 @@ var Xw, Zw, Qw, $w, eT, tT = f((() => {
31579
31691
  return !(e !== 92 || u(t) || t === 0);
31580
31692
  }
31581
31693
  function p(e, t, n) {
31582
- return e === 45 ? s(t) || t === 45 || f(t, n) : s(e) ? !0 : e === 92 ? f(e, t) : !1;
31694
+ return e === 45 ? s(t) || t === 45 || f(t, n) : s(e) ? !0 : e === 92 && f(e, t);
31583
31695
  }
31584
31696
  function m(e, n, r) {
31585
31697
  return e === 43 || e === 45 ? t(n) ? 2 : n === 46 && t(r) ? 3 : 0 : e === 46 ? t(n) ? 2 : 0 : +!!t(e);
@@ -31775,9 +31887,7 @@ var Xw, Zw, Qw, $w, eT, tT = f((() => {
31775
31887
  case i.LeftParenthesis:
31776
31888
  case i.Function:
31777
31889
  case i.LeftSquareBracket:
31778
- case i.LeftCurlyBracket:
31779
- l[u] = f, d = s.get(e), f = d << o | u;
31780
- break;
31890
+ case i.LeftCurlyBracket: l[u] = f, d = s.get(e), f = d << o | u;
31781
31891
  }
31782
31892
  c[u++] = e << o | n, p === -1 && (p = t);
31783
31893
  }), c[u] = i.EOF << o | r, l[u] = r, l[r] = r; f !== 0;) {
@@ -31793,7 +31903,7 @@ var Xw, Zw, Qw, $w, eT, tT = f((() => {
31793
31903
  return e += this.tokenIndex, e < this.tokenCount ? this.offsetAndType[e - 1] & a : this.source.length;
31794
31904
  }
31795
31905
  lookupValue(e, t) {
31796
- return e += this.tokenIndex, e < this.tokenCount ? n.cmpStr(this.source, this.offsetAndType[e - 1] & a, this.offsetAndType[e] & a, t) : !1;
31906
+ return e += this.tokenIndex, e < this.tokenCount && n.cmpStr(this.source, this.offsetAndType[e - 1] & a, this.offsetAndType[e] & a, t);
31797
31907
  }
31798
31908
  getTokenStart(e) {
31799
31909
  return e === this.tokenIndex ? this.tokenStart : e > 0 ? e < this.tokenCount ? this.offsetAndType[e - 1] & a : this.offsetAndType[this.tokenCount] & a : this.firstCharOffset;
@@ -31900,7 +32010,6 @@ var Xw, Zw, Qw, $w, eT, tT = f((() => {
31900
32010
  if (f === e.length - 1) break;
31901
32011
  let s = a(f + 1);
31902
32012
  n.isNewline(s) ? f += r.getNewlineLength(e, f + 1, s) : n.isValidEscape(o, s) && (f = r.consumeEscaped(e, f) - 1);
31903
- break;
31904
32013
  }
31905
32014
  }
31906
32015
  }
@@ -32154,11 +32263,12 @@ var Xw, Zw, Qw, $w, eT, tT = f((() => {
32154
32263
  return this.insert(e.createItem(t));
32155
32264
  }
32156
32265
  insert(e, t = null) {
32157
- if (t !== null) if (this.updateCursors(t.prev, e, t, e), t.prev === null) {
32158
- if (this.head !== t) throw Error("before doesn't belong to list");
32159
- this.head = e, t.prev = e, e.next = t, this.updateCursors(null, e);
32160
- } else t.prev.next = e, e.prev = t.prev, t.prev = e, e.next = t;
32161
- else this.updateCursors(this.tail, e, null, e), this.tail === null ? this.head = e : (this.tail.next = e, e.prev = this.tail), this.tail = e;
32266
+ if (t !== null) {
32267
+ if (this.updateCursors(t.prev, e, t, e), t.prev === null) {
32268
+ if (this.head !== t) throw Error("before doesn't belong to list");
32269
+ this.head = e, t.prev = e, e.next = t, this.updateCursors(null, e);
32270
+ } else t.prev.next = e, e.prev = t.prev, t.prev = e, e.next = t;
32271
+ } else this.updateCursors(this.tail, e, null, e), this.tail === null ? this.head = e : (this.tail.next = e, e.prev = this.tail), this.tail = e;
32162
32272
  return this;
32163
32273
  }
32164
32274
  insertData(t, n) {
@@ -32221,8 +32331,8 @@ var Xw, Zw, Qw, $w, eT, tT = f((() => {
32221
32331
  return c.slice(e, t).map((t, n) => String(e + n + 1).padStart(d) + " |" + t).join("\n");
32222
32332
  }
32223
32333
  let c = e.split(/\r\n?|\n|\f/), l = Math.max(1, t - o) - 1, u = Math.min(t + o, c.length + 1), d = Math.max(4, String(u).length) + 1, f = 0;
32224
- a += 3 * (c[t - 1].substr(0, a - 1).match(/\t/g) || []).length, a > n && (f = a - r + 3, a = r - 2);
32225
- for (let e = l; e <= u; e++) e >= 0 && e < c.length && (c[e] = c[e].replace(/\t/g, i), c[e] = (f > 0 && c[e].length > f ? "…" : "") + c[e].substr(f, n - 2) + (c[e].length > f + n - 1 ? "…" : ""));
32334
+ a += 3 * (c[t - 1].substr(0, a - 1).match(/\t/g) || []).length, a > n && (f = a - r + 3, a = 58);
32335
+ for (let e = l; e <= u; e++) e >= 0 && e < c.length && (c[e] = c[e].replace(/\t/g, i), c[e] = (f > 0 && c[e].length > f ? "…" : "") + c[e].substr(f, 98) + (c[e].length > f + n - 1 ? "…" : ""));
32226
32336
  return [
32227
32337
  s(l, t),
32228
32338
  Array(a + d + 2).join("-") + "^",
@@ -32299,9 +32409,7 @@ var Xw, Zw, Qw, $w, eT, tT = f((() => {
32299
32409
  case "function":
32300
32410
  t.context[n] = e.parseContext[n];
32301
32411
  break;
32302
- case "string":
32303
- t.context[n] = g(e.parseContext[n]);
32304
- break;
32412
+ case "string": t.context[n] = g(e.parseContext[n]);
32305
32413
  }
32306
32414
  return {
32307
32415
  config: t,
@@ -32395,9 +32503,7 @@ var Xw, Zw, Qw, $w, eT, tT = f((() => {
32395
32503
  case c.Hash:
32396
32504
  this.isDelim(f) && (this.next(), r++, n = "Name is expected");
32397
32505
  break;
32398
- case c.Percentage:
32399
- this.tokenType === c.Number && (r = this.tokenEnd, n = "Percent sign is expected");
32400
- break;
32506
+ case c.Percentage: this.tokenType === c.Number && (r = this.tokenEnd, n = "Percent sign is expected");
32401
32507
  }
32402
32508
  this.error(n, r);
32403
32509
  }
@@ -32425,13 +32531,13 @@ var Xw, Zw, Qw, $w, eT, tT = f((() => {
32425
32531
  }
32426
32532
  });
32427
32533
  return Object.assign(function(e, t) {
32428
- g = e, t ||= {}, C.setSource(g, r.tokenize), S.setSource(g, t.offset, t.line, t.column), _ = t.filename || "<unknown>", y = !!t.positions, b = typeof t.onParseError == "function" ? t.onParseError : u, x = !1, C.parseAtrulePrelude = "parseAtrulePrelude" in t ? !!t.parseAtrulePrelude : !0, C.parseRulePrelude = "parseRulePrelude" in t ? !!t.parseRulePrelude : !0, C.parseValue = "parseValue" in t ? !!t.parseValue : !0, C.parseCustomProperty = "parseCustomProperty" in t ? !!t.parseCustomProperty : !1;
32534
+ g = e, t ||= {}, C.setSource(g, r.tokenize), S.setSource(g, t.offset, t.line, t.column), _ = t.filename || "<unknown>", y = !!t.positions, b = typeof t.onParseError == "function" ? t.onParseError : u, x = !1, C.parseAtrulePrelude = "parseAtrulePrelude" in t ? !!t.parseAtrulePrelude : !0, C.parseRulePrelude = "parseRulePrelude" in t ? !!t.parseRulePrelude : !0, C.parseValue = "parseValue" in t ? !!t.parseValue : !0, C.parseCustomProperty = "parseCustomProperty" in t && !!t.parseCustomProperty;
32429
32535
  let { context: n = "default", onComment: i } = t;
32430
32536
  if (!(n in C.context)) throw Error("Unknown context `" + n + "`");
32431
32537
  typeof i == "function" && C.forEachToken((e, t, n) => {
32432
32538
  if (e === c.Comment) {
32433
- let e = C.getLocation(t, n);
32434
- i(s.cmpStr(g, n - 2, n, "*/") ? g.slice(t + 2, n - 2) : g.slice(t + 2, n), e);
32539
+ let e = C.getLocation(t, n), r = s.cmpStr(g, n - 2, n, "*/") ? g.slice(t + 2, n - 2) : g.slice(t + 2, n);
32540
+ i(r, e);
32435
32541
  }
32436
32542
  });
32437
32543
  let a = C.context[n].call(C, t);
@@ -32520,10 +32626,13 @@ var Xw, Zw, Qw, $w, eT, tT = f((() => {
32520
32626
  if (!r.path) return t;
32521
32627
  n = r.path;
32522
32628
  }
32523
- for (var o = e.isAbsolute(n), s = [], c = 0, l = 0;;) if (c = l, l = n.indexOf("/", c), l === -1) {
32524
- s.push(n.slice(c));
32525
- break;
32526
- } else for (s.push(n.slice(c, l)); l < n.length && n[l] === "/";) l++;
32629
+ for (var o = e.isAbsolute(n), s = [], c = 0, l = 0;;) {
32630
+ if (c = l, l = n.indexOf("/", c), l === -1) {
32631
+ s.push(n.slice(c));
32632
+ break;
32633
+ }
32634
+ for (s.push(n.slice(c, l)); l < n.length && n[l] === "/";) l++;
32635
+ }
32527
32636
  for (var u, d = 0, l = s.length - 1; l >= 0; l--) u = s[l], u === "." ? s.splice(l, 1) : u === ".." ? d++ : d > 0 && (u === "" ? (s.splice(l + 1, d), d = 0) : (s.splice(l, 2), d--));
32528
32637
  return n = s.join("/"), n === "" && (n = o ? "/" : "."), r ? (r.path = n, a(r)) : n;
32529
32638
  });
@@ -33078,7 +33187,7 @@ var Xw, Zw, Qw, $w, eT, tT = f((() => {
33078
33187
  let p = c(l), m = c(u), h = function(e, t) {
33079
33188
  function o(e, t, n) {
33080
33189
  let r = s.call(_, e, t, n);
33081
- return r === d ? !0 : r === f ? !1 : !!(h.hasOwnProperty(e.type) && h[e.type](e, _, o, g) || c.call(_, e, t, n) === d);
33190
+ return r === d || r !== f && !!(h.hasOwnProperty(e.type) && h[e.type](e, _, o, g) || c.call(_, e, t, n) === d);
33082
33191
  }
33083
33192
  let s = n, c = n, h = l, g = (e, t, n, r) => e || o(t, n, r), _ = {
33084
33193
  break: d,
@@ -33303,9 +33412,11 @@ var Xw, Zw, Qw, $w, eT, tT = f((() => {
33303
33412
  function p(e, t, n) {
33304
33413
  let i = !1, s = d(e, t, n);
33305
33414
  if (e = n(s), e === null) return t;
33306
- if (e.type !== r.Number) if (u(e, a) || u(e, o)) {
33307
- if (i = !0, s = d(n(++s), s, n), e = n(s), e === null || e.type !== r.Number) return 0;
33308
- } else return t;
33415
+ if (e.type !== r.Number) {
33416
+ if (u(e, a) || u(e, o)) {
33417
+ if (i = !0, s = d(n(++s), s, n), e = n(s), e === null || e.type !== r.Number) return 0;
33418
+ } else return t;
33419
+ }
33309
33420
  if (!i) {
33310
33421
  let t = e.value.charCodeAt(0);
33311
33422
  if (t !== a && t !== o) return 0;
@@ -33396,7 +33507,7 @@ var Xw, Zw, Qw, $w, eT, tT = f((() => {
33396
33507
  return !1;
33397
33508
  }
33398
33509
  function f(e, t) {
33399
- return t === e.length - 2 ? l(e, t) === 92 && a.isDigit(l(e, t + 1)) : !1;
33510
+ return t === e.length - 2 && l(e, t) === 92 && a.isDigit(l(e, t + 1));
33400
33511
  }
33401
33512
  function p(e, t, n) {
33402
33513
  if (e && e.type === "Range") {
@@ -33421,9 +33532,7 @@ var Xw, Zw, Qw, $w, eT, tT = f((() => {
33421
33532
  case i.Function:
33422
33533
  case i.LeftParenthesis:
33423
33534
  case i.LeftSquareBracket:
33424
- case i.LeftCurlyBracket:
33425
- r.push(n), n = c.get(e.type);
33426
- break;
33535
+ case i.LeftCurlyBracket: r.push(n), n = c.get(e.type);
33427
33536
  }
33428
33537
  a++;
33429
33538
  } while (e = t(a));
@@ -33479,9 +33588,7 @@ var Xw, Zw, Qw, $w, eT, tT = f((() => {
33479
33588
  case i.Function:
33480
33589
  case i.LeftParenthesis:
33481
33590
  case i.LeftSquareBracket:
33482
- case i.LeftCurlyBracket:
33483
- r.push(n), n = c.get(e.type);
33484
- break;
33591
+ case i.LeftCurlyBracket: r.push(n), n = c.get(e.type);
33485
33592
  }
33486
33593
  a++;
33487
33594
  } while (e = t(a));
@@ -33503,9 +33610,7 @@ var Xw, Zw, Qw, $w, eT, tT = f((() => {
33503
33610
  case i.Function:
33504
33611
  case i.LeftParenthesis:
33505
33612
  case i.LeftSquareBracket:
33506
- case i.LeftCurlyBracket:
33507
- r.push(n), n = c.get(e.type);
33508
- break;
33613
+ case i.LeftCurlyBracket: r.push(n), n = c.get(e.type);
33509
33614
  }
33510
33615
  a++;
33511
33616
  } while (e = t(a));
@@ -34084,13 +34189,13 @@ var Xw, Zw, Qw, $w, eT, tT = f((() => {
34084
34189
  return !0;
34085
34190
  }
34086
34191
  function m(e) {
34087
- return e.type === n.Delim ? e.value !== "?" : !1;
34192
+ return e.type === n.Delim && e.value !== "?";
34088
34193
  }
34089
34194
  function h(e) {
34090
- return e === null ? !0 : e.type === n.Comma || e.type === n.Function || e.type === n.LeftParenthesis || e.type === n.LeftSquareBracket || e.type === n.LeftCurlyBracket || m(e);
34195
+ return e === null || e.type === n.Comma || e.type === n.Function || e.type === n.LeftParenthesis || e.type === n.LeftSquareBracket || e.type === n.LeftCurlyBracket || m(e);
34091
34196
  }
34092
34197
  function g(e) {
34093
- return e === null ? !0 : e.type === n.RightParenthesis || e.type === n.RightSquareBracket || e.type === n.RightCurlyBracket || e.type === n.Delim && e.value === "/";
34198
+ return e === null || e.type === n.RightParenthesis || e.type === n.RightSquareBracket || e.type === n.RightCurlyBracket || e.type === n.Delim && e.value === "/";
34094
34199
  }
34095
34200
  function _(e, f, m) {
34096
34201
  function _() {
@@ -34167,10 +34272,13 @@ var Xw, Zw, Qw, $w, eT, tT = f((() => {
34167
34272
  A = c;
34168
34273
  break;
34169
34274
  }
34170
- if (f = E.nextState, f === t.DISALLOW_EMPTY) if (E.matchStack === P) {
34171
- f = t.MISMATCH;
34172
- break;
34173
- } else f = t.MATCH;
34275
+ if (f = E.nextState, f === t.DISALLOW_EMPTY) {
34276
+ if (E.matchStack === P) {
34277
+ f = t.MISMATCH;
34278
+ break;
34279
+ }
34280
+ f = t.MATCH;
34281
+ }
34174
34282
  for (; E.syntaxStack !== T;) w();
34175
34283
  E = E.prev;
34176
34284
  break;
@@ -34330,12 +34438,10 @@ var Xw, Zw, Qw, $w, eT, tT = f((() => {
34330
34438
  syntax: e.syntax
34331
34439
  });
34332
34440
  break;
34333
- default:
34334
- r.match.push({
34335
- token: e.token.value,
34336
- node: e.token.node
34337
- });
34338
- break;
34441
+ default: r.match.push({
34442
+ token: e.token.value,
34443
+ node: e.token.node
34444
+ });
34339
34445
  }
34340
34446
  e = e.prev;
34341
34447
  }
@@ -34396,7 +34502,7 @@ var Xw, Zw, Qw, $w, eT, tT = f((() => {
34396
34502
  }
34397
34503
  function a(e, n, r) {
34398
34504
  let i = t.call(e, n);
34399
- return i === null ? !1 : i.some(r);
34505
+ return i !== null && i.some(r);
34400
34506
  }
34401
34507
  e.getTrace = t, e.isKeyword = i, e.isProperty = r, e.isType = n;
34402
34508
  })), uE = /* @__PURE__ */ p(((e) => {
@@ -34448,10 +34554,12 @@ var Xw, Zw, Qw, $w, eT, tT = f((() => {
34448
34554
  if (s === "type") a.type !== e && o(a, "Wrong node type `" + a.type + "`, expected `" + e + "`");
34449
34555
  else if (s === "loc") {
34450
34556
  if (a.loc === null) continue;
34451
- if (a.loc && a.loc.constructor === Object) if (typeof a.loc.source != "string") s += ".source";
34452
- else if (!i(a.loc.start)) s += ".start";
34453
- else if (!i(a.loc.end)) s += ".end";
34454
- else continue;
34557
+ if (a.loc && a.loc.constructor === Object) {
34558
+ if (typeof a.loc.source != "string") s += ".source";
34559
+ else if (!i(a.loc.start)) s += ".start";
34560
+ else if (!i(a.loc.end)) s += ".end";
34561
+ else continue;
34562
+ }
34455
34563
  c = !1;
34456
34564
  } else if (r.hasOwnProperty(s)) {
34457
34565
  c = !1;
@@ -34802,18 +34910,16 @@ var Xw, Zw, Qw, $w, eT, tT = f((() => {
34802
34910
  ...r(o, ["parse"])
34803
34911
  };
34804
34912
  break;
34805
- case "node":
34806
- i[a] = {
34807
- ...e[a],
34808
- ...r(o, [
34809
- "name",
34810
- "structure",
34811
- "parse",
34812
- "generate",
34813
- "walkContext"
34814
- ])
34815
- };
34816
- break;
34913
+ case "node": i[a] = {
34914
+ ...e[a],
34915
+ ...r(o, [
34916
+ "name",
34917
+ "structure",
34918
+ "parse",
34919
+ "generate",
34920
+ "walkContext"
34921
+ ])
34922
+ };
34817
34923
  }
34818
34924
  return i;
34819
34925
  }
@@ -35948,9 +36054,7 @@ var Xw, Zw, Qw, $w, eT, tT = f((() => {
35948
36054
  case a:
35949
36055
  n = "N is expected";
35950
36056
  break;
35951
- case i:
35952
- n = "HyphenMinus is expected";
35953
- break;
36057
+ case i: n = "HyphenMinus is expected";
35954
36058
  }
35955
36059
  this.error(n, this.tokenStart + e);
35956
36060
  }
@@ -35958,13 +36062,15 @@ var Xw, Zw, Qw, $w, eT, tT = f((() => {
35958
36062
  function d() {
35959
36063
  let e = 0, n = 0, a = this.tokenType;
35960
36064
  for (; a === t.WhiteSpace || a === t.Comment;) a = this.lookupType(++e);
35961
- if (a !== t.Number) if (this.isDelim(r, e) || this.isDelim(i, e)) {
35962
- n = this.isDelim(r, e) ? r : i;
35963
- do
35964
- a = this.lookupType(++e);
35965
- while (a === t.WhiteSpace || a === t.Comment);
35966
- a !== t.Number && (this.skip(e), l.call(this, o));
35967
- } else return null;
36065
+ if (a !== t.Number) {
36066
+ if (this.isDelim(r, e) || this.isDelim(i, e)) {
36067
+ n = this.isDelim(r, e) ? r : i;
36068
+ do
36069
+ a = this.lookupType(++e);
36070
+ while (a === t.WhiteSpace || a === t.Comment);
36071
+ a !== t.Number && (this.skip(e), l.call(this, o));
36072
+ } else return null;
36073
+ }
35968
36074
  return e > 0 && this.skip(e), n === 0 && (a = this.charCodeAt(this.tokenStart), a !== r && a !== i && this.error("Number sign is expected")), l.call(this, n !== 0), n === i ? "-" + this.consume(t.Number) : this.consume(t.Number);
35969
36075
  }
35970
36076
  var f = "AnPlusB", p = {
@@ -36043,9 +36149,7 @@ var Xw, Zw, Qw, $w, eT, tT = f((() => {
36043
36149
  case t.Semicolon:
36044
36150
  this.next();
36045
36151
  break;
36046
- case t.LeftCurlyBracket:
36047
- c = hasOwnProperty.call(this.atrule, o) && typeof this.atrule[o].block == "function" ? this.atrule[o].block.call(this, e) : this.Block(r.call(this));
36048
- break;
36152
+ case t.LeftCurlyBracket: c = hasOwnProperty.call(this.atrule, o) && typeof this.atrule[o].block == "function" ? this.atrule[o].block.call(this, e) : this.Block(r.call(this));
36049
36153
  }
36050
36154
  return {
36051
36155
  type: "Atrule",
@@ -36234,7 +36338,6 @@ var Xw, Zw, Qw, $w, eT, tT = f((() => {
36234
36338
  default: this.error("Combinator is expected");
36235
36339
  }
36236
36340
  o = this.substrToCursor(e);
36237
- break;
36238
36341
  }
36239
36342
  return {
36240
36343
  type: "Combinator",
@@ -36312,16 +36415,14 @@ var Xw, Zw, Qw, $w, eT, tT = f((() => {
36312
36415
  case o:
36313
36416
  this.next();
36314
36417
  break;
36315
- case l:
36316
- this.next(), this.isDelim(l) && this.next();
36317
- break;
36418
+ case l: this.next(), this.isDelim(l) && this.next();
36318
36419
  }
36319
36420
  return this.tokenType === n.Hash ? this.eat(n.Hash) : this.eat(n.Ident), this.substrToCursor(e);
36320
36421
  }
36321
36422
  function y() {
36322
36423
  this.eat(n.Delim), this.skipSC();
36323
36424
  let e = this.consume(n.Ident);
36324
- return e === "important" ? !0 : e;
36425
+ return e === "important" || e;
36325
36426
  }
36326
36427
  e.generate = _, e.name = p, e.parse = g, e.structure = h, e.walkContext = m;
36327
36428
  })), kE = /* @__PURE__ */ p(((e) => {
@@ -37083,19 +37184,17 @@ var Xw, Zw, Qw, $w, eT, tT = f((() => {
37083
37184
  case n.Dimension:
37084
37185
  this.charCodeAt(this.tokenStart) === c && this.error("Identifier is expected", this.tokenStart + 1);
37085
37186
  break;
37086
- case n.Delim:
37087
- switch (this.charCodeAt(this.tokenStart)) {
37088
- case o:
37089
- case l:
37090
- case d:
37091
- case s: return this.Combinator();
37092
- case c: return this.ClassSelector();
37093
- case a:
37094
- case u: return this.TypeSelector();
37095
- case r: return this.IdSelector();
37096
- case i: return this.NestingSelector();
37097
- }
37098
- break;
37187
+ case n.Delim: switch (this.charCodeAt(this.tokenStart)) {
37188
+ case o:
37189
+ case l:
37190
+ case d:
37191
+ case s: return this.Combinator();
37192
+ case c: return this.ClassSelector();
37193
+ case a:
37194
+ case u: return this.TypeSelector();
37195
+ case r: return this.IdSelector();
37196
+ case i: return this.NestingSelector();
37197
+ }
37099
37198
  }
37100
37199
  }
37101
37200
  t.exports = {
@@ -37409,7 +37508,7 @@ var Xw, Zw, Qw, $w, eT, tT = f((() => {
37409
37508
  return !(e !== 92 || u(t) || t === 0);
37410
37509
  }
37411
37510
  function p(e, t, n) {
37412
- return e === 45 ? s(t) || t === 45 || f(t, n) : s(e) ? !0 : e === 92 ? f(e, t) : !1;
37511
+ return e === 45 ? s(t) || t === 45 || f(t, n) : s(e) ? !0 : e === 92 && f(e, t);
37413
37512
  }
37414
37513
  function m(e, n, r) {
37415
37514
  return e === 43 || e === 45 ? t(n) ? 2 : n === 46 && t(r) ? 3 : 0 : e === 46 ? t(n) ? 2 : 0 : +!!t(e);
@@ -37605,9 +37704,7 @@ var Xw, Zw, Qw, $w, eT, tT = f((() => {
37605
37704
  case i.LeftParenthesis:
37606
37705
  case i.Function:
37607
37706
  case i.LeftSquareBracket:
37608
- case i.LeftCurlyBracket:
37609
- l[u] = f, d = s.get(e), f = d << o | u;
37610
- break;
37707
+ case i.LeftCurlyBracket: l[u] = f, d = s.get(e), f = d << o | u;
37611
37708
  }
37612
37709
  c[u++] = e << o | n, p === -1 && (p = t);
37613
37710
  }), c[u] = i.EOF << o | r, l[u] = r, l[r] = r; f !== 0;) {
@@ -37623,7 +37720,7 @@ var Xw, Zw, Qw, $w, eT, tT = f((() => {
37623
37720
  return e += this.tokenIndex, e < this.tokenCount ? this.offsetAndType[e - 1] & a : this.source.length;
37624
37721
  }
37625
37722
  lookupValue(e, t) {
37626
- return e += this.tokenIndex, e < this.tokenCount ? n.cmpStr(this.source, this.offsetAndType[e - 1] & a, this.offsetAndType[e] & a, t) : !1;
37723
+ return e += this.tokenIndex, e < this.tokenCount && n.cmpStr(this.source, this.offsetAndType[e - 1] & a, this.offsetAndType[e] & a, t);
37627
37724
  }
37628
37725
  getTokenStart(e) {
37629
37726
  return e === this.tokenIndex ? this.tokenStart : e > 0 ? e < this.tokenCount ? this.offsetAndType[e - 1] & a : this.offsetAndType[this.tokenCount] & a : this.firstCharOffset;
@@ -37730,7 +37827,6 @@ var Xw, Zw, Qw, $w, eT, tT = f((() => {
37730
37827
  if (f === e.length - 1) break;
37731
37828
  let s = a(f + 1);
37732
37829
  n.isNewline(s) ? f += r.getNewlineLength(e, f + 1, s) : n.isValidEscape(o, s) && (f = r.consumeEscaped(e, f) - 1);
37733
- break;
37734
37830
  }
37735
37831
  }
37736
37832
  }
@@ -37984,11 +38080,12 @@ var Xw, Zw, Qw, $w, eT, tT = f((() => {
37984
38080
  return this.insert(e.createItem(t));
37985
38081
  }
37986
38082
  insert(e, t = null) {
37987
- if (t !== null) if (this.updateCursors(t.prev, e, t, e), t.prev === null) {
37988
- if (this.head !== t) throw Error("before doesn't belong to list");
37989
- this.head = e, t.prev = e, e.next = t, this.updateCursors(null, e);
37990
- } else t.prev.next = e, e.prev = t.prev, t.prev = e, e.next = t;
37991
- else this.updateCursors(this.tail, e, null, e), this.tail === null ? this.head = e : (this.tail.next = e, e.prev = this.tail), this.tail = e;
38083
+ if (t !== null) {
38084
+ if (this.updateCursors(t.prev, e, t, e), t.prev === null) {
38085
+ if (this.head !== t) throw Error("before doesn't belong to list");
38086
+ this.head = e, t.prev = e, e.next = t, this.updateCursors(null, e);
38087
+ } else t.prev.next = e, e.prev = t.prev, t.prev = e, e.next = t;
38088
+ } else this.updateCursors(this.tail, e, null, e), this.tail === null ? this.head = e : (this.tail.next = e, e.prev = this.tail), this.tail = e;
37992
38089
  return this;
37993
38090
  }
37994
38091
  insertData(t, n) {
@@ -38051,8 +38148,8 @@ var Xw, Zw, Qw, $w, eT, tT = f((() => {
38051
38148
  return c.slice(e, t).map((t, n) => String(e + n + 1).padStart(d) + " |" + t).join("\n");
38052
38149
  }
38053
38150
  let c = e.split(/\r\n?|\n|\f/), l = Math.max(1, t - o) - 1, u = Math.min(t + o, c.length + 1), d = Math.max(4, String(u).length) + 1, f = 0;
38054
- a += 3 * (c[t - 1].substr(0, a - 1).match(/\t/g) || []).length, a > n && (f = a - r + 3, a = r - 2);
38055
- for (let e = l; e <= u; e++) e >= 0 && e < c.length && (c[e] = c[e].replace(/\t/g, i), c[e] = (f > 0 && c[e].length > f ? "…" : "") + c[e].substr(f, n - 2) + (c[e].length > f + n - 1 ? "…" : ""));
38151
+ a += 3 * (c[t - 1].substr(0, a - 1).match(/\t/g) || []).length, a > n && (f = a - r + 3, a = 58);
38152
+ for (let e = l; e <= u; e++) e >= 0 && e < c.length && (c[e] = c[e].replace(/\t/g, i), c[e] = (f > 0 && c[e].length > f ? "…" : "") + c[e].substr(f, 98) + (c[e].length > f + n - 1 ? "…" : ""));
38056
38153
  return [
38057
38154
  s(l, t),
38058
38155
  Array(a + d + 2).join("-") + "^",
@@ -38129,9 +38226,7 @@ var Xw, Zw, Qw, $w, eT, tT = f((() => {
38129
38226
  case "function":
38130
38227
  t.context[n] = e.parseContext[n];
38131
38228
  break;
38132
- case "string":
38133
- t.context[n] = g(e.parseContext[n]);
38134
- break;
38229
+ case "string": t.context[n] = g(e.parseContext[n]);
38135
38230
  }
38136
38231
  return {
38137
38232
  config: t,
@@ -38225,9 +38320,7 @@ var Xw, Zw, Qw, $w, eT, tT = f((() => {
38225
38320
  case c.Hash:
38226
38321
  this.isDelim(f) && (this.next(), r++, n = "Name is expected");
38227
38322
  break;
38228
- case c.Percentage:
38229
- this.tokenType === c.Number && (r = this.tokenEnd, n = "Percent sign is expected");
38230
- break;
38323
+ case c.Percentage: this.tokenType === c.Number && (r = this.tokenEnd, n = "Percent sign is expected");
38231
38324
  }
38232
38325
  this.error(n, r);
38233
38326
  }
@@ -38255,13 +38348,13 @@ var Xw, Zw, Qw, $w, eT, tT = f((() => {
38255
38348
  }
38256
38349
  });
38257
38350
  return Object.assign(function(e, t) {
38258
- g = e, t ||= {}, C.setSource(g, r.tokenize), S.setSource(g, t.offset, t.line, t.column), _ = t.filename || "<unknown>", y = !!t.positions, b = typeof t.onParseError == "function" ? t.onParseError : u, x = !1, C.parseAtrulePrelude = "parseAtrulePrelude" in t ? !!t.parseAtrulePrelude : !0, C.parseRulePrelude = "parseRulePrelude" in t ? !!t.parseRulePrelude : !0, C.parseValue = "parseValue" in t ? !!t.parseValue : !0, C.parseCustomProperty = "parseCustomProperty" in t ? !!t.parseCustomProperty : !1;
38351
+ g = e, t ||= {}, C.setSource(g, r.tokenize), S.setSource(g, t.offset, t.line, t.column), _ = t.filename || "<unknown>", y = !!t.positions, b = typeof t.onParseError == "function" ? t.onParseError : u, x = !1, C.parseAtrulePrelude = "parseAtrulePrelude" in t ? !!t.parseAtrulePrelude : !0, C.parseRulePrelude = "parseRulePrelude" in t ? !!t.parseRulePrelude : !0, C.parseValue = "parseValue" in t ? !!t.parseValue : !0, C.parseCustomProperty = "parseCustomProperty" in t && !!t.parseCustomProperty;
38259
38352
  let { context: n = "default", onComment: i } = t;
38260
38353
  if (!(n in C.context)) throw Error("Unknown context `" + n + "`");
38261
38354
  typeof i == "function" && C.forEachToken((e, t, n) => {
38262
38355
  if (e === c.Comment) {
38263
- let e = C.getLocation(t, n);
38264
- i(s.cmpStr(g, n - 2, n, "*/") ? g.slice(t + 2, n - 2) : g.slice(t + 2, n), e);
38356
+ let e = C.getLocation(t, n), r = s.cmpStr(g, n - 2, n, "*/") ? g.slice(t + 2, n - 2) : g.slice(t + 2, n);
38357
+ i(r, e);
38265
38358
  }
38266
38359
  });
38267
38360
  let a = C.context[n].call(C, t);
@@ -38576,7 +38669,7 @@ var Xw, Zw, Qw, $w, eT, tT = f((() => {
38576
38669
  let p = c(l), m = c(u), h = function(e, t) {
38577
38670
  function o(e, t, n) {
38578
38671
  let r = s.call(_, e, t, n);
38579
- return r === d ? !0 : r === f ? !1 : !!(h.hasOwnProperty(e.type) && h[e.type](e, _, o, g) || c.call(_, e, t, n) === d);
38672
+ return r === d || r !== f && !!(h.hasOwnProperty(e.type) && h[e.type](e, _, o, g) || c.call(_, e, t, n) === d);
38580
38673
  }
38581
38674
  let s = n, c = n, h = l, g = (e, t, n, r) => e || o(t, n, r), _ = {
38582
38675
  break: d,
@@ -38801,9 +38894,11 @@ var Xw, Zw, Qw, $w, eT, tT = f((() => {
38801
38894
  function p(e, t, n) {
38802
38895
  let i = !1, s = d(e, t, n);
38803
38896
  if (e = n(s), e === null) return t;
38804
- if (e.type !== r.Number) if (u(e, a) || u(e, o)) {
38805
- if (i = !0, s = d(n(++s), s, n), e = n(s), e === null || e.type !== r.Number) return 0;
38806
- } else return t;
38897
+ if (e.type !== r.Number) {
38898
+ if (u(e, a) || u(e, o)) {
38899
+ if (i = !0, s = d(n(++s), s, n), e = n(s), e === null || e.type !== r.Number) return 0;
38900
+ } else return t;
38901
+ }
38807
38902
  if (!i) {
38808
38903
  let t = e.value.charCodeAt(0);
38809
38904
  if (t !== a && t !== o) return 0;
@@ -38904,7 +38999,7 @@ var Xw, Zw, Qw, $w, eT, tT = f((() => {
38904
38999
  return !1;
38905
39000
  }
38906
39001
  function x(e, t) {
38907
- return t === e.length - 2 ? v(e, t) === 92 && o.isDigit(v(e, t + 1)) : !1;
39002
+ return t === e.length - 2 && v(e, t) === 92 && o.isDigit(v(e, t + 1));
38908
39003
  }
38909
39004
  function S(e, t, n) {
38910
39005
  if (e && e.type === "Range") {
@@ -38929,9 +39024,7 @@ var Xw, Zw, Qw, $w, eT, tT = f((() => {
38929
39024
  case a.Function:
38930
39025
  case a.LeftParenthesis:
38931
39026
  case a.LeftSquareBracket:
38932
- case a.LeftCurlyBracket:
38933
- r.push(n), n = l.get(e.type);
38934
- break;
39027
+ case a.LeftCurlyBracket: r.push(n), n = l.get(e.type);
38935
39028
  }
38936
39029
  i++;
38937
39030
  } while (e = t(i));
@@ -38987,9 +39080,7 @@ var Xw, Zw, Qw, $w, eT, tT = f((() => {
38987
39080
  case a.Function:
38988
39081
  case a.LeftParenthesis:
38989
39082
  case a.LeftSquareBracket:
38990
- case a.LeftCurlyBracket:
38991
- r.push(n), n = l.get(e.type);
38992
- break;
39083
+ case a.LeftCurlyBracket: r.push(n), n = l.get(e.type);
38993
39084
  }
38994
39085
  i++;
38995
39086
  } while (e = t(i));
@@ -39011,9 +39102,7 @@ var Xw, Zw, Qw, $w, eT, tT = f((() => {
39011
39102
  case a.Function:
39012
39103
  case a.LeftParenthesis:
39013
39104
  case a.LeftSquareBracket:
39014
- case a.LeftCurlyBracket:
39015
- r.push(n), n = l.get(e.type);
39016
- break;
39105
+ case a.LeftCurlyBracket: r.push(n), n = l.get(e.type);
39017
39106
  }
39018
39107
  i++;
39019
39108
  } while (e = t(i));
@@ -39565,13 +39654,13 @@ var Xw, Zw, Qw, $w, eT, tT = f((() => {
39565
39654
  return !0;
39566
39655
  }
39567
39656
  function m(e) {
39568
- return e.type === n.Delim ? e.value !== "?" : !1;
39657
+ return e.type === n.Delim && e.value !== "?";
39569
39658
  }
39570
39659
  function h(e) {
39571
- return e === null ? !0 : e.type === n.Comma || e.type === n.Function || e.type === n.LeftParenthesis || e.type === n.LeftSquareBracket || e.type === n.LeftCurlyBracket || m(e);
39660
+ return e === null || e.type === n.Comma || e.type === n.Function || e.type === n.LeftParenthesis || e.type === n.LeftSquareBracket || e.type === n.LeftCurlyBracket || m(e);
39572
39661
  }
39573
39662
  function g(e) {
39574
- return e === null ? !0 : e.type === n.RightParenthesis || e.type === n.RightSquareBracket || e.type === n.RightCurlyBracket || e.type === n.Delim && e.value === "/";
39663
+ return e === null || e.type === n.RightParenthesis || e.type === n.RightSquareBracket || e.type === n.RightCurlyBracket || e.type === n.Delim && e.value === "/";
39575
39664
  }
39576
39665
  function _(e, f, m) {
39577
39666
  function _() {
@@ -39648,10 +39737,13 @@ var Xw, Zw, Qw, $w, eT, tT = f((() => {
39648
39737
  A = c;
39649
39738
  break;
39650
39739
  }
39651
- if (f = E.nextState, f === t.DISALLOW_EMPTY) if (E.matchStack === P) {
39652
- f = t.MISMATCH;
39653
- break;
39654
- } else f = t.MATCH;
39740
+ if (f = E.nextState, f === t.DISALLOW_EMPTY) {
39741
+ if (E.matchStack === P) {
39742
+ f = t.MISMATCH;
39743
+ break;
39744
+ }
39745
+ f = t.MATCH;
39746
+ }
39655
39747
  for (; E.syntaxStack !== T;) w();
39656
39748
  E = E.prev;
39657
39749
  break;
@@ -39811,12 +39903,10 @@ var Xw, Zw, Qw, $w, eT, tT = f((() => {
39811
39903
  syntax: e.syntax
39812
39904
  });
39813
39905
  break;
39814
- default:
39815
- r.match.push({
39816
- token: e.token.value,
39817
- node: e.token.node
39818
- });
39819
- break;
39906
+ default: r.match.push({
39907
+ token: e.token.value,
39908
+ node: e.token.node
39909
+ });
39820
39910
  }
39821
39911
  e = e.prev;
39822
39912
  }
@@ -39877,7 +39967,7 @@ var Xw, Zw, Qw, $w, eT, tT = f((() => {
39877
39967
  }
39878
39968
  function a(e, n, r) {
39879
39969
  let i = t.call(e, n);
39880
- return i === null ? !1 : i.some(r);
39970
+ return i !== null && i.some(r);
39881
39971
  }
39882
39972
  e.getTrace = t, e.isKeyword = i, e.isProperty = r, e.isType = n;
39883
39973
  })), uO = /* @__PURE__ */ p(((e) => {
@@ -39929,10 +40019,12 @@ var Xw, Zw, Qw, $w, eT, tT = f((() => {
39929
40019
  if (s === "type") a.type !== e && o(a, "Wrong node type `" + a.type + "`, expected `" + e + "`");
39930
40020
  else if (s === "loc") {
39931
40021
  if (a.loc === null) continue;
39932
- if (a.loc && a.loc.constructor === Object) if (typeof a.loc.source != "string") s += ".source";
39933
- else if (!i(a.loc.start)) s += ".start";
39934
- else if (!i(a.loc.end)) s += ".end";
39935
- else continue;
40022
+ if (a.loc && a.loc.constructor === Object) {
40023
+ if (typeof a.loc.source != "string") s += ".source";
40024
+ else if (!i(a.loc.start)) s += ".start";
40025
+ else if (!i(a.loc.end)) s += ".end";
40026
+ else continue;
40027
+ }
39936
40028
  c = !1;
39937
40029
  } else if (r.hasOwnProperty(s)) {
39938
40030
  c = !1;
@@ -41366,9 +41458,7 @@ var Xw, Zw, Qw, $w, eT, tT = f((() => {
41366
41458
  case a:
41367
41459
  n = "N is expected";
41368
41460
  break;
41369
- case i:
41370
- n = "HyphenMinus is expected";
41371
- break;
41461
+ case i: n = "HyphenMinus is expected";
41372
41462
  }
41373
41463
  this.error(n, this.tokenStart + e);
41374
41464
  }
@@ -41376,13 +41466,15 @@ var Xw, Zw, Qw, $w, eT, tT = f((() => {
41376
41466
  function d() {
41377
41467
  let e = 0, n = 0, a = this.tokenType;
41378
41468
  for (; a === t.WhiteSpace || a === t.Comment;) a = this.lookupType(++e);
41379
- if (a !== t.Number) if (this.isDelim(r, e) || this.isDelim(i, e)) {
41380
- n = this.isDelim(r, e) ? r : i;
41381
- do
41382
- a = this.lookupType(++e);
41383
- while (a === t.WhiteSpace || a === t.Comment);
41384
- a !== t.Number && (this.skip(e), l.call(this, o));
41385
- } else return null;
41469
+ if (a !== t.Number) {
41470
+ if (this.isDelim(r, e) || this.isDelim(i, e)) {
41471
+ n = this.isDelim(r, e) ? r : i;
41472
+ do
41473
+ a = this.lookupType(++e);
41474
+ while (a === t.WhiteSpace || a === t.Comment);
41475
+ a !== t.Number && (this.skip(e), l.call(this, o));
41476
+ } else return null;
41477
+ }
41386
41478
  return e > 0 && this.skip(e), n === 0 && (a = this.charCodeAt(this.tokenStart), a !== r && a !== i && this.error("Number sign is expected")), l.call(this, n !== 0), n === i ? "-" + this.consume(t.Number) : this.consume(t.Number);
41387
41479
  }
41388
41480
  var f = "AnPlusB", p = {
@@ -41461,9 +41553,7 @@ var Xw, Zw, Qw, $w, eT, tT = f((() => {
41461
41553
  case t.Semicolon:
41462
41554
  this.next();
41463
41555
  break;
41464
- case t.LeftCurlyBracket:
41465
- s = hasOwnProperty.call(this.atrule, a) && typeof this.atrule[a].block == "function" ? this.atrule[a].block.call(this) : this.Block(r.call(this));
41466
- break;
41556
+ case t.LeftCurlyBracket: s = hasOwnProperty.call(this.atrule, a) && typeof this.atrule[a].block == "function" ? this.atrule[a].block.call(this) : this.Block(r.call(this));
41467
41557
  }
41468
41558
  return {
41469
41559
  type: "Atrule",
@@ -41652,7 +41742,6 @@ var Xw, Zw, Qw, $w, eT, tT = f((() => {
41652
41742
  default: this.error("Combinator is expected");
41653
41743
  }
41654
41744
  o = this.substrToCursor(e);
41655
- break;
41656
41745
  }
41657
41746
  return {
41658
41747
  type: "Combinator",
@@ -41730,16 +41819,14 @@ var Xw, Zw, Qw, $w, eT, tT = f((() => {
41730
41819
  case o:
41731
41820
  this.next();
41732
41821
  break;
41733
- case l:
41734
- this.next(), this.isDelim(l) && this.next();
41735
- break;
41822
+ case l: this.next(), this.isDelim(l) && this.next();
41736
41823
  }
41737
41824
  return this.tokenType === n.Hash ? this.eat(n.Hash) : this.eat(n.Ident), this.substrToCursor(e);
41738
41825
  }
41739
41826
  function y() {
41740
41827
  this.eat(n.Delim), this.skipSC();
41741
41828
  let e = this.consume(n.Ident);
41742
- return e === "important" ? !0 : e;
41829
+ return e === "important" || e;
41743
41830
  }
41744
41831
  e.generate = _, e.name = p, e.parse = g, e.structure = h, e.walkContext = m;
41745
41832
  })), kO = /* @__PURE__ */ p(((e) => {
@@ -42481,18 +42568,16 @@ var Xw, Zw, Qw, $w, eT, tT = f((() => {
42481
42568
  case n.Dimension:
42482
42569
  this.charCodeAt(this.tokenStart) === s && this.error("Identifier is expected", this.tokenStart + 1);
42483
42570
  break;
42484
- case n.Delim:
42485
- switch (this.charCodeAt(this.tokenStart)) {
42486
- case a:
42487
- case c:
42488
- case u:
42489
- case o: return this.Combinator();
42490
- case s: return this.ClassSelector();
42491
- case i:
42492
- case l: return this.TypeSelector();
42493
- case r: return this.IdSelector();
42494
- }
42495
- break;
42571
+ case n.Delim: switch (this.charCodeAt(this.tokenStart)) {
42572
+ case a:
42573
+ case c:
42574
+ case u:
42575
+ case o: return this.Combinator();
42576
+ case s: return this.ClassSelector();
42577
+ case i:
42578
+ case l: return this.TypeSelector();
42579
+ case r: return this.IdSelector();
42580
+ }
42496
42581
  }
42497
42582
  }
42498
42583
  t.exports = {
@@ -42821,7 +42906,7 @@ var Xw, Zw, Qw, $w, eT, tT = f((() => {
42821
42906
  return;
42822
42907
  }
42823
42908
  i.prevUntil(t.prev, function(e) {
42824
- if (!(e.type === "Atrule" && (e.name === "import" || e.name === "charset"))) return this.root.firstAtrulesAllowed = !1, i.remove(t), !0;
42909
+ if (e.type !== "Atrule" || e.name !== "import" && e.name !== "charset") return this.root.firstAtrulesAllowed = !1, i.remove(t), !0;
42825
42910
  }, this);
42826
42911
  break;
42827
42912
  default: {
@@ -42868,9 +42953,7 @@ var Xw, Zw, Qw, $w, eT, tT = f((() => {
42868
42953
  case "IdSelector":
42869
42954
  t.whitelist !== null && t.whitelist.ids !== null && !i.call(t.whitelist.ids, n.name) && (c = !0), t.blacklist !== null && t.blacklist.ids !== null && i.call(t.blacklist.ids, n.name) && (c = !0);
42870
42955
  break;
42871
- case "TypeSelector":
42872
- n.name.charAt(n.name.length - 1) !== "*" && (t.whitelist !== null && t.whitelist.tags !== null && !i.call(t.whitelist.tags, n.name.toLowerCase()) && (c = !0), t.blacklist !== null && t.blacklist.tags !== null && i.call(t.blacklist.tags, n.name.toLowerCase()) && (c = !0));
42873
- break;
42956
+ case "TypeSelector": n.name.charAt(n.name.length - 1) !== "*" && (t.whitelist !== null && t.whitelist.tags !== null && !i.call(t.whitelist.tags, n.name.toLowerCase()) && (c = !0), t.blacklist !== null && t.blacklist.tags !== null && i.call(t.blacklist.tags, n.name.toLowerCase()) && (c = !0));
42874
42957
  }
42875
42958
  }), c && s.remove(a);
42876
42959
  }), e.children.isEmpty;
@@ -42987,13 +43070,11 @@ var Xw, Zw, Qw, $w, eT, tT = f((() => {
42987
43070
  value: "400"
42988
43071
  };
42989
43072
  break;
42990
- case "bold":
42991
- e.children.head.data = {
42992
- type: "Number",
42993
- loc: t.loc,
42994
- value: "700"
42995
- };
42996
- break;
43073
+ case "bold": e.children.head.data = {
43074
+ type: "Number",
43075
+ loc: t.loc,
43076
+ value: "700"
43077
+ };
42997
43078
  }
42998
43079
  }
42999
43080
  t.exports = n;
@@ -43017,7 +43098,7 @@ var Xw, Zw, Qw, $w, eT, tT = f((() => {
43017
43098
  t(), r.push(e);
43018
43099
  return;
43019
43100
  }
43020
- e.type === "Identifier" && (e.name === "transparent" || e.name === "none" || e.name === "repeat" || e.name === "scroll") || i.push(e);
43101
+ (e.type !== "Identifier" || e.name !== "transparent" && e.name !== "none" && e.name !== "repeat" && e.name !== "scroll") && i.push(e);
43021
43102
  }), t(), e.children = new n.List().fromArray(r);
43022
43103
  }
43023
43104
  t.exports = r;
@@ -43547,9 +43628,7 @@ var Xw, Zw, Qw, $w, eT, tT = f((() => {
43547
43628
  case "TypeSelector":
43548
43629
  e.name.endsWith("*") || r++;
43549
43630
  break;
43550
- case "PseudoElementSelector":
43551
- r++;
43552
- break;
43631
+ case "PseudoElementSelector": r++;
43553
43632
  }
43554
43633
  }), [
43555
43634
  t,
@@ -43603,12 +43682,10 @@ var Xw, Zw, Qw, $w, eT, tT = f((() => {
43603
43682
  case "AttributeSelector":
43604
43683
  r.flags && o.add(`[${r.flags.toLowerCase()}]`);
43605
43684
  break;
43606
- case "Combinator":
43607
- s = "*";
43608
- break;
43685
+ case "Combinator": s = "*";
43609
43686
  }
43610
43687
  }), e.compareMarker = r(e).toString(), e.id = null, e.id = n.generate(e), c && (e.compareMarker += ":" + c), s !== "*" && (e.compareMarker += "," + s);
43611
- }), e.pseudoSignature = o.size > 0 ? [...o].sort().join(",") : !1;
43688
+ }), e.pseudoSignature = o.size > 0 && [...o].sort().join(",");
43612
43689
  }
43613
43690
  t.exports = o;
43614
43691
  })), rA = /* @__PURE__ */ p(((e, t) => {
@@ -43647,12 +43724,10 @@ var Xw, Zw, Qw, $w, eT, tT = f((() => {
43647
43724
  case "keyframes":
43648
43725
  i(r, o, s, !0);
43649
43726
  return;
43650
- case "media":
43651
- if (t.forceMediaMerge) {
43652
- i(r, o, s, !1);
43653
- return;
43654
- }
43655
- break;
43727
+ case "media": if (t.forceMediaMerge) {
43728
+ i(r, o, s, !1);
43729
+ return;
43730
+ }
43656
43731
  }
43657
43732
  a === null && c !== "charset" && c !== "import" && (a = o);
43658
43733
  } else a === null && (a = o);
@@ -43868,9 +43943,7 @@ var Xw, Zw, Qw, $w, eT, tT = f((() => {
43868
43943
  case "inherit":
43869
43944
  case "initial":
43870
43945
  case "unset":
43871
- case "revert":
43872
- i = t.name;
43873
- break;
43946
+ case "revert": i = t.name;
43874
43947
  }
43875
43948
  break;
43876
43949
  case "Dimension":
@@ -43880,9 +43953,7 @@ var Xw, Zw, Qw, $w, eT, tT = f((() => {
43880
43953
  case "vh":
43881
43954
  case "vmin":
43882
43955
  case "vmax":
43883
- case "vm":
43884
- i = t.unit;
43885
- break;
43956
+ case "vm": i = t.unit;
43886
43957
  }
43887
43958
  break;
43888
43959
  case "Hash":
@@ -43914,7 +43985,8 @@ var Xw, Zw, Qw, $w, eT, tT = f((() => {
43914
43985
  if (!e || !e.length) return !1;
43915
43986
  for (let t in n) if (n[t] !== null && n[t].special !== e[0].special) return !1;
43916
43987
  return this.canOverride(r, e[0]) && (n[r] = e[0]), !0;
43917
- } else if (e === this.name) {
43988
+ }
43989
+ if (e === this.name) {
43918
43990
  let e = this.getValueSequence(t, 4);
43919
43991
  if (!e || !e.length) return !1;
43920
43992
  switch (e.length) {
@@ -43924,9 +43996,7 @@ var Xw, Zw, Qw, $w, eT, tT = f((() => {
43924
43996
  case 2:
43925
43997
  e[s] = e[a], e[c] = e[o];
43926
43998
  break;
43927
- case 3:
43928
- e[c] = e[o];
43929
- break;
43999
+ case 3: e[c] = e[o];
43930
44000
  }
43931
44001
  for (let t = 0; t < 4; t++) for (let r in n) if (n[r] !== null && n[r].special !== e[t].special) return !1;
43932
44002
  for (let t = 0; t < 4; t++) this.canOverride(l[t], e[t]) && (n[l[t]] = e[t]);
@@ -44176,9 +44246,7 @@ var Xw, Zw, Qw, $w, eT, tT = f((() => {
44176
44246
  case "vh":
44177
44247
  case "vmin":
44178
44248
  case "vmax":
44179
- case "vm":
44180
- e[t] = !0;
44181
- break;
44249
+ case "vm": e[t] = !0;
44182
44250
  }
44183
44251
  break;
44184
44252
  }
@@ -44245,7 +44313,8 @@ var Xw, Zw, Qw, $w, eT, tT = f((() => {
44245
44313
  if (r.isEqualDeclarations(a, u)) {
44246
44314
  let e = l.data.id;
44247
44315
  i.some((t, n) => {
44248
- if (e < t.id) return i.insert(l, n), !0;
44316
+ let r = t.id;
44317
+ if (e < r) return i.insert(l, n), !0;
44249
44318
  if (!n.next) return i.insert(l), !0;
44250
44319
  }), n.remove(c);
44251
44320
  return;
@@ -44272,7 +44341,7 @@ var Xw, Zw, Qw, $w, eT, tT = f((() => {
44272
44341
  return t + e.length - 1;
44273
44342
  }
44274
44343
  function o(e, t, o) {
44275
- let s = this.block === null ? !1 : this.block.avoidRulesMerge, c = e.prelude.children, l = e.block, u = Object.create(null), d = !0, f = !0;
44344
+ let s = this.block !== null && this.block.avoidRulesMerge, c = e.prelude.children, l = e.block, u = Object.create(null), d = !0, f = !0;
44276
44345
  o.prevUntil(t.prev, function(p, m) {
44277
44346
  let h = p.block, g = p.type;
44278
44347
  if (g !== "Rule") {
@@ -44293,31 +44362,33 @@ var Xw, Zw, Qw, $w, eT, tT = f((() => {
44293
44362
  let v = r.compareDeclarations(l.children, h.children);
44294
44363
  if (v.eq.length) {
44295
44364
  if (!v.ne1.length && !v.ne2.length) return f && (r.addSelectors(c, _), o.remove(m)), !0;
44296
- if (!s) if (v.ne1.length && !v.ne2.length) {
44297
- let e = i(c), t = a(v.eq);
44298
- d && e < t && (r.addSelectors(_, c), l.children.fromArray(v.ne1));
44299
- } else if (!v.ne1.length && v.ne2.length) {
44300
- let e = i(_), t = a(v.eq);
44301
- f && e < t && (r.addSelectors(c, _), h.children.fromArray(v.ne2));
44302
- } else {
44303
- let s = {
44304
- type: "SelectorList",
44305
- loc: null,
44306
- children: r.addSelectors(_.copy(), c)
44307
- }, u = i(s.children) + 2;
44308
- if (a(v.eq) >= u) {
44309
- let r = o.createItem({
44310
- type: "Rule",
44365
+ if (!s) {
44366
+ if (v.ne1.length && !v.ne2.length) {
44367
+ let e = i(c), t = a(v.eq);
44368
+ d && e < t && (r.addSelectors(_, c), l.children.fromArray(v.ne1));
44369
+ } else if (!v.ne1.length && v.ne2.length) {
44370
+ let e = i(_), t = a(v.eq);
44371
+ f && e < t && (r.addSelectors(c, _), h.children.fromArray(v.ne2));
44372
+ } else {
44373
+ let s = {
44374
+ type: "SelectorList",
44311
44375
  loc: null,
44312
- prelude: s,
44313
- block: {
44314
- type: "Block",
44376
+ children: r.addSelectors(_.copy(), c)
44377
+ }, u = i(s.children) + 2;
44378
+ if (a(v.eq) >= u) {
44379
+ let r = o.createItem({
44380
+ type: "Rule",
44315
44381
  loc: null,
44316
- children: new n.List().fromArray(v.eq)
44317
- },
44318
- pseudoSignature: e.pseudoSignature
44319
- });
44320
- return l.children.fromArray(v.ne1), h.children.fromArray(v.ne2overrided), d ? o.insert(r, m) : o.insert(r, t), !0;
44382
+ prelude: s,
44383
+ block: {
44384
+ type: "Block",
44385
+ loc: null,
44386
+ children: new n.List().fromArray(v.eq)
44387
+ },
44388
+ pseudoSignature: e.pseudoSignature
44389
+ });
44390
+ return l.children.fromArray(v.ne1), h.children.fromArray(v.ne2overrided), d ? o.insert(r, m) : o.insert(r, t), !0;
44391
+ }
44321
44392
  }
44322
44393
  }
44323
44394
  }
@@ -44606,7 +44677,7 @@ var Xw, Zw, Qw, $w, eT, tT = f((() => {
44606
44677
  return r;
44607
44678
  }, e.includesAttrSelector = (e, r, i = null, a = !1) => {
44608
44679
  let o = typeof e == "string" ? n.parse(e) : n.parse(t.generate(e.data));
44609
- for (let e of o) if (e.some((t, o) => a && (o === e.length - 1 || !n.isTraversal(e[o + 1])) || t.type !== "attribute" || t.name !== r ? !1 : i == null ? !0 : t.value === i)) return !0;
44680
+ for (let e of o) if (e.some((t, o) => a && (o === e.length - 1 || !n.isTraversal(e[o + 1])) || t.type !== "attribute" || t.name !== r ? !1 : i == null || t.value === i)) return !0;
44610
44681
  return !1;
44611
44682
  };
44612
44683
  })), vA = /* @__PURE__ */ p(((e) => {
@@ -44774,7 +44845,7 @@ var Xw, Zw, Qw, $w, eT, tT = f((() => {
44774
44845
  var t = gA(), { detachNodeFromParent: n } = Z(), { hasScripts: r } = yA();
44775
44846
  e.name = "minifyStyles", e.description = "minifies styles and removes unused styles", e.fn = (e, { usage: i, ...a }) => {
44776
44847
  let o = /* @__PURE__ */ new Map(), s = [], c = /* @__PURE__ */ new Set(), l = /* @__PURE__ */ new Set(), u = /* @__PURE__ */ new Set(), d = !0, f = !0, p = !0, m = !1;
44777
- typeof i == "boolean" ? (d = i, f = i, p = i) : i && (d = i.tags == null ? !0 : i.tags, f = i.ids == null ? !0 : i.ids, p = i.classes == null ? !0 : i.classes, m = i.force == null ? !1 : i.force);
44848
+ typeof i == "boolean" ? (d = i, f = i, p = i) : i && (d = i.tags == null || i.tags, f = i.ids == null || i.ids, p = i.classes == null || i.classes, m = i.force != null && i.force);
44778
44849
  let h = !1;
44779
44850
  return {
44780
44851
  element: { enter: (e, t) => {
@@ -45124,7 +45195,7 @@ var Xw, Zw, Qw, $w, eT, tT = f((() => {
45124
45195
  return t === 32 || t === 9 || t === 13 || t === 10;
45125
45196
  }, o = (e) => {
45126
45197
  let t = e.codePointAt(0);
45127
- return t == null ? !1 : 48 <= t && t <= 57;
45198
+ return t != null && 48 <= t && t <= 57;
45128
45199
  }, s = (e, t) => {
45129
45200
  let n = t, r = "", i = "none";
45130
45201
  for (; n < e.length; n += 1) {
@@ -45208,7 +45279,7 @@ var Xw, Zw, Qw, $w, eT, tT = f((() => {
45208
45279
  let i = "", a;
45209
45280
  for (let o = 0; o < t.length; o++) {
45210
45281
  let { roundedStr: s, rounded: l } = c(t[o], n);
45211
- r && (e === "A" || e === "a") && (o % 7 == 4 || o % 7 == 5) || o === 0 || l < 0 || !Number.isInteger(a) && l != 0 && l < 1 && l > -1 ? i += s : i += ` ${s}`, a = l;
45282
+ r && (e === "A" || e === "a") && (o % 7 == 4 || o % 7 == 5) ? i += s : i += o === 0 || l < 0 || !Number.isInteger(a) && l != 0 && l < 1 && l > -1 ? s : ` ${s}`, a = l;
45212
45283
  }
45213
45284
  return i;
45214
45285
  };
@@ -45524,10 +45595,12 @@ var Xw, Zw, Qw, $w, eT, tT = f((() => {
45524
45595
  } } }), { element: { exit: (e) => {
45525
45596
  if (e.name !== "g" || e.children.length <= 1 || i) return;
45526
45597
  let t = /* @__PURE__ */ new Map(), a = !0, o = !0;
45527
- for (let i of e.children) if (i.type === "element") if (r.has(i.name) || (o = !1), a) {
45528
- a = !1;
45529
- for (let [e, r] of Object.entries(i.attributes)) n.has(e) && t.set(e, r);
45530
- } else for (let [e, n] of t) i.attributes[e] !== n && t.delete(e);
45598
+ for (let i of e.children) if (i.type === "element") {
45599
+ if (r.has(i.name) || (o = !1), a) {
45600
+ a = !1;
45601
+ for (let [e, r] of Object.entries(i.attributes)) n.has(e) && t.set(e, r);
45602
+ } else for (let [e, n] of t) i.attributes[e] !== n && t.delete(e);
45603
+ }
45531
45604
  (e.attributes["clip-path"] != null || e.attributes.mask != null) && t.delete("transform"), o && t.delete("transform");
45532
45605
  for (let [n, r] of t) n === "transform" ? e.attributes.transform == null ? e.attributes.transform = r : e.attributes.transform = `${e.attributes.transform} ${r}` : e.attributes[n] = r;
45533
45606
  for (let n of e.children) if (n.type === "element") for (let [e] of t) delete n.attributes[e];
@@ -45561,7 +45634,7 @@ var Xw, Zw, Qw, $w, eT, tT = f((() => {
45561
45634
  return !1;
45562
45635
  };
45563
45636
  e.fn = () => ({ element: { exit: (e, i) => {
45564
- if (!(i.type === "root" || i.name === "switch") && !(e.name !== "g" || e.children.length === 0)) {
45637
+ if (i.type !== "root" && i.name !== "switch" && e.name === "g" && e.children.length !== 0) {
45565
45638
  if (Object.keys(e.attributes).length !== 0 && e.children.length === 1) {
45566
45639
  let n = e.children[0];
45567
45640
  if (n.type === "element" && n.attributes.id == null && e.attributes.filter == null && (e.attributes.class == null || n.attributes.class == null) && (e.attributes["clip-path"] == null && e.attributes.mask == null || n.name === "g" && e.attributes.transform == null && n.attributes.transform == null)) for (let [i, a] of Object.entries(e.attributes)) {
@@ -45718,9 +45791,7 @@ var Xw, Zw, Qw, $w, eT, tT = f((() => {
45718
45791
  case "S":
45719
45792
  u != null && l != null && (l.command == "C" || l.command == "S") && (n(c, [u[0] + .5 * r[0], u[1] + .5 * r[1]]), f = [u[0] + r[0], u[1] + r[1]]), f != null && n(c, [.5 * (f[0] + d[0]), .5 * (f[1] + d[1])]), n(c, [.5 * (d[0] + d[2]), .5 * (d[1] + d[3])]), r = [d[2] - d[0], d[3] - d[1]];
45720
45793
  break;
45721
- case "A":
45722
- if (u != null) for (var i = m.apply(0, u.concat(d)), a; (a = i.splice(0, 6).map(p)).length;) u != null && n(c, [.5 * (u[0] + a[0]), .5 * (u[1] + a[1])]), n(c, [.5 * (a[0] + a[2]), .5 * (a[1] + a[3])]), n(c, [.5 * (a[2] + a[4]), .5 * (a[3] + a[5])]), i.length && n(c, u = a.slice(-2));
45723
- break;
45794
+ case "A": if (u != null) for (var i = m.apply(0, u.concat(d)), a; (a = i.splice(0, 6).map(p)).length;) u != null && n(c, [.5 * (u[0] + a[0]), .5 * (u[1] + a[1])]), n(c, [.5 * (a[0] + a[2]), .5 * (a[1] + a[3])]), n(c, [.5 * (a[2] + a[4]), .5 * (a[3] + a[5])]), i.length && n(c, u = a.slice(-2));
45724
45795
  }
45725
45796
  d.length >= 2 && n(c, d.slice(-2));
45726
45797
  }
@@ -45798,13 +45869,15 @@ var Xw, Zw, Qw, $w, eT, tT = f((() => {
45798
45869
  ]), r = /\s*(matrix|translate|scale|rotate|skewX|skewY)\s*\(\s*(.+?)\s*\)[\s,]*/, i = /[-+]?(?:\d*\.\d+|\d+\.?)(?:[eE][-+]?\d+)?/g;
45799
45870
  e.transform2js = (e) => {
45800
45871
  let t = [], a = null;
45801
- for (let o of e.split(r)) if (o) if (n.has(o)) a = {
45802
- name: o,
45803
- data: []
45804
- }, t.push(a);
45805
- else {
45806
- let e;
45807
- for (; e = i.exec(o);) e = Number(e), a?.data.push(e);
45872
+ for (let o of e.split(r)) if (o) {
45873
+ if (n.has(o)) a = {
45874
+ name: o,
45875
+ data: []
45876
+ }, t.push(a);
45877
+ else {
45878
+ let e;
45879
+ for (; e = i.exec(o);) e = Number(e), a?.data.push(e);
45880
+ }
45808
45881
  }
45809
45882
  return a == null || a.data.length == 0 ? [] : t;
45810
45883
  }, e.transformsMultiply = (e) => {
@@ -46077,7 +46150,7 @@ var Xw, Zw, Qw, $w, eT, tT = f((() => {
46077
46150
  if (i.has(e.name) && e.attributes.d != null) {
46078
46151
  let r = n(R, e);
46079
46152
  d = D, f = d === !1 ? .01 : +(.1 ** d).toFixed(d), u = d && d > 0 && d < 20 ? b : x, y && (p = y.threshold, m = y.tolerance);
46080
- let i = r["marker-mid"] != null, s = r.stroke && (r.stroke.type === "dynamic" || r.stroke.value !== "none"), c = r["stroke-linecap"] && (r["stroke-linecap"].type === "dynamic" || r["stroke-linecap"].value !== "butt"), l = s && c, v = s ? r["stroke-linecap"]?.type === "static" && r["stroke-linecap"].value === "round" && r["stroke-linejoin"]?.type === "static" && r["stroke-linejoin"].value === "round" : !0;
46153
+ let i = r["marker-mid"] != null, s = r.stroke && (r.stroke.type === "dynamic" || r.stroke.value !== "none"), c = r["stroke-linecap"] && (r["stroke-linecap"].type === "dynamic" || r["stroke-linecap"].value !== "butt"), l = s && c, v = !s || r["stroke-linecap"]?.type === "static" && r["stroke-linecap"].value === "round" && r["stroke-linejoin"]?.type === "static" && r["stroke-linejoin"].value === "round";
46081
46154
  var t = a(e);
46082
46155
  t.length && (h(t), t = g(t, L, {
46083
46156
  isSafeToUseZ: v,
@@ -46283,9 +46356,7 @@ var Xw, Zw, Qw, $w, eT, tT = f((() => {
46283
46356
  case "s":
46284
46357
  e.command = "c";
46285
46358
  break;
46286
- case "t":
46287
- e.command = "q";
46288
- break;
46359
+ case "t": e.command = "q";
46289
46360
  }
46290
46361
  return e.args.unshift(t[t.length - 2] - t[t.length - 4], t[t.length - 1] - t[t.length - 3]), e;
46291
46362
  }
@@ -46414,9 +46485,7 @@ var Xw, Zw, Qw, $w, eT, tT = f((() => {
46414
46485
  case "scale":
46415
46486
  e.data = u(e.data, t);
46416
46487
  break;
46417
- case "matrix":
46418
- e.data = [...u(e.data.slice(0, 4), t), ...l(e.data.slice(4), t)];
46419
- break;
46488
+ case "matrix": e.data = [...u(e.data.slice(0, 4), t), ...l(e.data.slice(4), t)];
46420
46489
  }
46421
46490
  return e;
46422
46491
  }, g = (e) => e.map(Math.round), _ = (e, t) => {
@@ -46434,7 +46503,7 @@ var Xw, Zw, Qw, $w, eT, tT = f((() => {
46434
46503
  })), WA = /* @__PURE__ */ p(((e) => {
46435
46504
  var { detachNodeFromParent: t } = Z(), { elemsGroups: n } = rw();
46436
46505
  e.name = "removeEmptyContainers", e.description = "removes empty container elements", e.fn = () => ({ element: { exit: (e, r) => {
46437
- e.name === "svg" || !n.container.has(e.name) || e.children.length !== 0 || e.name === "pattern" && Object.keys(e.attributes).length !== 0 || e.name === "g" && e.attributes.filter != null || e.name === "mask" && e.attributes.id != null || r.type === "element" && r.name === "switch" || t(e, r);
46506
+ e.name === "svg" || !n.container.has(e.name) || e.children.length !== 0 || (e.name !== "pattern" || Object.keys(e.attributes).length === 0) && (e.name !== "g" || e.attributes.filter == null) && (e.name !== "mask" || e.attributes.id == null) && (r.type !== "element" || r.name !== "switch") && t(e, r);
46438
46507
  } } });
46439
46508
  })), GA = /* @__PURE__ */ p(((e) => {
46440
46509
  var { collectStylesheet: t, computeStyle: n } = _A(), { path2js: r, js2path: i, intersects: a } = RA();
@@ -46819,8 +46888,10 @@ var Xw, Zw, Qw, $w, eT, tT = f((() => {
46819
46888
  let r = Array.isArray(n.selectors) ? n.selectors : [n];
46820
46889
  for (let { selector: n, attributes: i } of r) {
46821
46890
  let r = t(e, n);
46822
- for (let e of r) if (e.type === "element") if (Array.isArray(i)) for (let t of i) delete e.attributes[t];
46823
- else delete e.attributes[i];
46891
+ for (let e of r) if (e.type === "element") {
46892
+ if (Array.isArray(i)) for (let t of i) delete e.attributes[t];
46893
+ else delete e.attributes[i];
46894
+ }
46824
46895
  }
46825
46896
  return {};
46826
46897
  };
@@ -46829,7 +46900,7 @@ var Xw, Zw, Qw, $w, eT, tT = f((() => {
46829
46900
  var t = ":", n = "Warning: The plugin \"removeAttrs\" requires the \"attrs\" parameter.\nIt should have a pattern to remove, otherwise the plugin is a noop.\nConfig example:\n\nplugins: [\n {\n name: \"removeAttrs\",\n params: {\n attrs: \"(fill|stroke)\"\n }\n }\n]\n";
46830
46901
  e.fn = (e, r) => {
46831
46902
  if (r.attrs === void 0) return console.warn(n), null;
46832
- let i = typeof r.elemSeparator == "string" ? r.elemSeparator : t, a = typeof r.preserveCurrentColor == "boolean" ? r.preserveCurrentColor : !1, o = Array.isArray(r.attrs) ? r.attrs : [r.attrs];
46903
+ let i = typeof r.elemSeparator == "string" ? r.elemSeparator : t, a = typeof r.preserveCurrentColor == "boolean" && r.preserveCurrentColor, o = Array.isArray(r.attrs) ? r.attrs : [r.attrs];
46833
46904
  return { element: { enter: (e) => {
46834
46905
  for (let t of o) {
46835
46906
  t.includes(i) ? t.split(i).length < 3 && (t = [t, ".*"].join(i)) : t = [