@eclass/ui-kit 1.5.0 → 1.5.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -83,7 +83,7 @@ var StyleSheet = /* @__PURE__ */ function() {
83
83
  };
84
84
  _proto.flush = function flush() {
85
85
  this.tags.forEach(function(tag) {
86
- return tag.parentNode.removeChild(tag);
86
+ return tag.parentNode && tag.parentNode.removeChild(tag);
87
87
  });
88
88
  this.tags = [];
89
89
  this.ctr = 0;
@@ -569,6 +569,22 @@ function memoize$1(fn) {
569
569
  return cache[arg];
570
570
  };
571
571
  }
572
+ var identifierWithPointTracking = function identifierWithPointTracking2(begin, points, index) {
573
+ var previous = 0;
574
+ var character2 = 0;
575
+ while (true) {
576
+ previous = character2;
577
+ character2 = peek();
578
+ if (previous === 38 && character2 === 12) {
579
+ points[index] = 1;
580
+ }
581
+ if (token(character2)) {
582
+ break;
583
+ }
584
+ next();
585
+ }
586
+ return slice(begin, position$1);
587
+ };
572
588
  var toRules = function toRules2(parsed, points) {
573
589
  var index = -1;
574
590
  var character2 = 44;
@@ -578,7 +594,7 @@ var toRules = function toRules2(parsed, points) {
578
594
  if (character2 === 38 && peek() === 12) {
579
595
  points[index] = 1;
580
596
  }
581
- parsed[index] += identifier(position$1 - 1);
597
+ parsed[index] += identifierWithPointTracking(position$1 - 1, points, index);
582
598
  break;
583
599
  case 2:
584
600
  parsed[index] += delimit(character2);