@qwik.dev/core 2.0.0-alpha.5 → 2.0.0-alpha.6

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/server.cjs CHANGED
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * @license
3
- * @qwik.dev/core/server 2.0.0-alpha.5-dev+cb53bbd
3
+ * @qwik.dev/core/server 2.0.0-alpha.6-dev+d848ba5
4
4
  * Copyright QwikDev. All Rights Reserved.
5
5
  * Use of this source code is governed by an MIT-style license that can be
6
6
  * found in the LICENSE file at https://github.com/QwikDev/qwik/blob/main/LICENSE
@@ -269,8 +269,6 @@ See https://qwik.dev/docs/components/tasks/#use-method-rules`,
269
269
  // 43
270
270
  "Materialize error: missing element: {{0}} {{1}} {{2}}",
271
271
  // 44
272
- "SsrError: {{0}}",
273
- // 45
274
272
  "Cannot coerce a Signal, use `.value` instead",
275
273
  // 46
276
274
  "useComputedSignal$ QRL {{0}} {{1}} returned a Promise",
@@ -527,6 +525,106 @@ function assertNumber(value1, text, ...parts) {
527
525
 
528
526
  // packages/qwik/src/core/shared/platform/platform.ts
529
527
  var import_build = require("@qwik.dev/core/build");
528
+
529
+ // packages/qwik/src/core/shared/types.ts
530
+ var DEBUG_TYPE = "q:type";
531
+ var START = "\x1B[34m";
532
+ var END = "\x1B[0m";
533
+ var VirtualTypeName = {
534
+ ["V" /* Virtual */]: (
535
+ /* ********* */
536
+ START + "Virtual" + END
537
+ ),
538
+ //
539
+ ["F" /* Fragment */]: (
540
+ /* ******** */
541
+ START + "Fragment" + END
542
+ ),
543
+ //
544
+ ["S" /* WrappedSignal */]: (
545
+ /* *** */
546
+ START + "Signal" + END
547
+ ),
548
+ //
549
+ ["A" /* Awaited */]: (
550
+ /* ********* */
551
+ START + "Awaited" + END
552
+ ),
553
+ //
554
+ ["C" /* Component */]: (
555
+ /* ******* */
556
+ START + "Component" + END
557
+ ),
558
+ //
559
+ ["I" /* InlineComponent */]: (
560
+ /* * */
561
+ START + "InlineComponent" + END
562
+ ),
563
+ //
564
+ ["P" /* Projection */]: (
565
+ /* ****** */
566
+ START + "Projection" + END
567
+ )
568
+ //
569
+ };
570
+
571
+ // packages/qwik/src/core/shared/utils/markers.ts
572
+ var OnRenderProp = "q:renderFn";
573
+ var ComponentStylesPrefixContent = "\u2B50\uFE0F";
574
+ var QSlot = "q:slot";
575
+ var QSlotParent = ":";
576
+ var QSlotRef = "q:sref";
577
+ var QSlotS = "q:s";
578
+ var QStyle = "q:style";
579
+ var QStyleSelector = "style[q\\:style]";
580
+ var QStyleSSelector = "style[q\\:sstyle]";
581
+ var QStylesAllSelector = QStyleSelector + "," + QStyleSSelector;
582
+ var QScopedStyle = "q:sstyle";
583
+ var QCtxAttr = "q:ctx";
584
+ var QSubscribers = "q:subs";
585
+ var QFuncsPrefix = "qFuncs_";
586
+ var getQFuncs = (document2, hash2) => {
587
+ return document2[QFuncsPrefix + hash2] || [];
588
+ };
589
+ var QRenderAttr = "q:render";
590
+ var QRuntimeAttr = "q:runtime";
591
+ var QVersionAttr = "q:version";
592
+ var QBaseAttr = "q:base";
593
+ var QLocaleAttr = "q:locale";
594
+ var QManifestHashAttr = "q:manifest-hash";
595
+ var QInstanceAttr = "q:instance";
596
+ var QContainerIsland = "q:container-island";
597
+ var QContainerIslandEnd = "/" + QContainerIsland;
598
+ var QIgnore = "q:ignore";
599
+ var QIgnoreEnd = "/" + QIgnore;
600
+ var QContainerAttr = "q:container";
601
+ var QContainerAttrEnd = "/" + QContainerAttr;
602
+ var QTemplate = "q:template";
603
+ var QContainerSelector = "[q\\:container]:not([q\\:container=" + "html" /* HTML */ + "]):not([q\\:container=" + "text" /* TEXT */ + "])";
604
+ var HTML_NS = "http://www.w3.org/1999/xhtml";
605
+ var SVG_NS = "http://www.w3.org/2000/svg";
606
+ var MATH_NS = "http://www.w3.org/1998/Math/MathML";
607
+ var ResourceEvent = "qResource";
608
+ var RenderEvent = "qRender";
609
+ var TaskEvent = "qTask";
610
+ var QDefaultSlot = "";
611
+ var ELEMENT_ID = "q:id";
612
+ var ELEMENT_KEY = "q:key";
613
+ var ELEMENT_PROPS = "q:props";
614
+ var ELEMENT_SEQ = "q:seq";
615
+ var ELEMENT_SEQ_IDX = "q:seqIdx";
616
+ var Q_PREFIX = "q:";
617
+ var NON_SERIALIZABLE_MARKER_PREFIX = ":";
618
+ var USE_ON_LOCAL = NON_SERIALIZABLE_MARKER_PREFIX + "on";
619
+ var USE_ON_LOCAL_SEQ_IDX = NON_SERIALIZABLE_MARKER_PREFIX + "onIdx";
620
+ var USE_ON_LOCAL_FLAGS = NON_SERIALIZABLE_MARKER_PREFIX + "onFlags";
621
+ var FLUSH_COMMENT = "qkssr-f";
622
+ var STREAM_BLOCK_START_COMMENT = "qkssr-pu";
623
+ var STREAM_BLOCK_END_COMMENT = "qkssr-po";
624
+ var Q_PROPS_SEPARATOR = ":";
625
+ var dangerouslySetInnerHTML = "dangerouslySetInnerHTML";
626
+
627
+ // packages/qwik/src/core/shared/platform/platform.ts
530
628
  var createPlatform2 = () => {
531
629
  return {
532
630
  isServer: import_build.isServer,
@@ -577,7 +675,7 @@ var createPlatform2 = () => {
577
675
  };
578
676
  var toUrl = (doc, containerEl, url) => {
579
677
  const baseURI = doc.baseURI;
580
- const base = new URL(containerEl.getAttribute("q:base") ?? baseURI, baseURI);
678
+ const base = new URL(containerEl.getAttribute(QBaseAttr) ?? baseURI, baseURI);
581
679
  return new URL(url, base);
582
680
  };
583
681
  var _platform = /* @__PURE__ */ createPlatform2();
@@ -628,117 +726,26 @@ var delay = (timeout) => {
628
726
  });
629
727
  };
630
728
  function retryOnPromise(fn, retryCount = 0) {
631
- try {
632
- return fn();
633
- } catch (e) {
729
+ const retryOrThrow = (e) => {
634
730
  if (isPromise(e) && retryCount < MAX_RETRY_ON_PROMISE_COUNT) {
635
731
  return e.then(retryOnPromise.bind(null, fn, retryCount++));
636
732
  }
637
733
  throw e;
734
+ };
735
+ try {
736
+ const result = fn();
737
+ if (isPromise(result)) {
738
+ return result.catch((e) => retryOrThrow(e));
739
+ }
740
+ return result;
741
+ } catch (e) {
742
+ return retryOrThrow(e);
638
743
  }
639
744
  }
640
745
 
641
746
  // packages/qwik/src/build/index.dev.ts
642
747
  var isDev = true;
643
748
 
644
- // packages/qwik/src/core/shared/types.ts
645
- var DEBUG_TYPE = "q:type";
646
- var START = "\x1B[34m";
647
- var END = "\x1B[0m";
648
- var VirtualTypeName = {
649
- ["V" /* Virtual */]: (
650
- /* ********* */
651
- START + "Virtual" + END
652
- ),
653
- //
654
- ["F" /* Fragment */]: (
655
- /* ******** */
656
- START + "Fragment" + END
657
- ),
658
- //
659
- ["S" /* WrappedSignal */]: (
660
- /* *** */
661
- START + "Signal" + END
662
- ),
663
- //
664
- ["A" /* Awaited */]: (
665
- /* ********* */
666
- START + "Awaited" + END
667
- ),
668
- //
669
- ["C" /* Component */]: (
670
- /* ******* */
671
- START + "Component" + END
672
- ),
673
- //
674
- ["I" /* InlineComponent */]: (
675
- /* * */
676
- START + "InlineComponent" + END
677
- ),
678
- //
679
- ["P" /* Projection */]: (
680
- /* ****** */
681
- START + "Projection" + END
682
- )
683
- //
684
- };
685
-
686
- // packages/qwik/src/core/shared/utils/markers.ts
687
- var OnRenderProp = "q:renderFn";
688
- var ComponentStylesPrefixContent = "\u2B50\uFE0F";
689
- var QSlot = "q:slot";
690
- var QSlotParent = ":";
691
- var QSlotRef = "q:sref";
692
- var QSlotS = "q:s";
693
- var QStyle = "q:style";
694
- var QStyleSelector = "style[q\\:style]";
695
- var QStyleSSelector = "style[q\\:sstyle]";
696
- var QStylesAllSelector = QStyleSelector + "," + QStyleSSelector;
697
- var QScopedStyle = "q:sstyle";
698
- var QCtxAttr = "q:ctx";
699
- var QSubscribers = "q:subs";
700
- var QFuncsPrefix = "qFuncs_";
701
- var getQFuncs = (document2, hash2) => {
702
- return document2[QFuncsPrefix + hash2] || [];
703
- };
704
- var QRenderAttr = "q:render";
705
- var QRuntimeAttr = "q:runtime";
706
- var QVersionAttr = "q:version";
707
- var QBaseAttr = "q:base";
708
- var QLocaleAttr = "q:locale";
709
- var QManifestHashAttr = "q:manifest-hash";
710
- var QInstanceAttr = "q:instance";
711
- var QContainerIsland = "q:container-island";
712
- var QContainerIslandEnd = "/" + QContainerIsland;
713
- var QIgnore = "q:ignore";
714
- var QIgnoreEnd = "/" + QIgnore;
715
- var QContainerAttr = "q:container";
716
- var QContainerAttrEnd = "/" + QContainerAttr;
717
- var QTemplate = "q:template";
718
- var QContainerSelector = "[q\\:container]:not([q\\:container=" + "html" /* HTML */ + "]):not([q\\:container=" + "text" /* TEXT */ + "])";
719
- var HTML_NS = "http://www.w3.org/1999/xhtml";
720
- var SVG_NS = "http://www.w3.org/2000/svg";
721
- var MATH_NS = "http://www.w3.org/1998/Math/MathML";
722
- var ResourceEvent = "qResource";
723
- var RenderEvent = "qRender";
724
- var TaskEvent = "qTask";
725
- var QDefaultSlot = "";
726
- var ELEMENT_ID = "q:id";
727
- var ELEMENT_KEY = "q:key";
728
- var ELEMENT_PROPS = "q:props";
729
- var ELEMENT_SEQ = "q:seq";
730
- var ELEMENT_SEQ_IDX = "q:seqIdx";
731
- var Q_PREFIX = "q:";
732
- var NON_SERIALIZABLE_MARKER_PREFIX = ":";
733
- var USE_ON_LOCAL = NON_SERIALIZABLE_MARKER_PREFIX + "on";
734
- var USE_ON_LOCAL_SEQ_IDX = NON_SERIALIZABLE_MARKER_PREFIX + "onIdx";
735
- var USE_ON_LOCAL_FLAGS = NON_SERIALIZABLE_MARKER_PREFIX + "onFlags";
736
- var FLUSH_COMMENT = "qkssr-f";
737
- var STREAM_BLOCK_START_COMMENT = "qkssr-pu";
738
- var STREAM_BLOCK_END_COMMENT = "qkssr-po";
739
- var Q_PROPS_SEPARATOR = ":";
740
- var dangerouslySetInnerHTML = "dangerouslySetInnerHTML";
741
-
742
749
  // packages/qwik/src/core/use/use-locale.ts
743
750
  var _locale = void 0;
744
751
  function setLocale(locale) {
@@ -775,7 +782,7 @@ function getBuildBase(opts) {
775
782
  return `${import_meta.env.BASE_URL}build/`;
776
783
  }
777
784
  var versions = {
778
- qwik: "2.0.0-alpha.5-dev+cb53bbd",
785
+ qwik: "2.0.0-alpha.6-dev+d848ba5",
779
786
  qwikDom: "2.1.19"
780
787
  };
781
788
 
@@ -1142,6 +1149,17 @@ function clearArgEffect(arg, subscriber, seenSet) {
1142
1149
  } else if (typeof arg === "object" && arg !== null) {
1143
1150
  if (isStore(arg)) {
1144
1151
  clearStoreEffects(getStoreHandler(arg), subscriber);
1152
+ } else if (isPropsProxy(arg)) {
1153
+ const constProps = arg[_CONST_PROPS];
1154
+ const varProps = arg[_VAR_PROPS];
1155
+ if (constProps) {
1156
+ for (const key in constProps) {
1157
+ clearArgEffect(constProps[key], subscriber, seenSet);
1158
+ }
1159
+ }
1160
+ for (const key in varProps) {
1161
+ clearArgEffect(varProps[key], subscriber, seenSet);
1162
+ }
1145
1163
  } else {
1146
1164
  for (const key in arg) {
1147
1165
  clearArgEffect(arg[key], subscriber, seenSet);
@@ -2597,6 +2615,81 @@ function markVNodeAsDeleted(vCursor) {
2597
2615
  var HANDLER_PREFIX = ":";
2598
2616
  var count = 0;
2599
2617
 
2618
+ // packages/qwik/src/core/shared/scheduler-document-position.ts
2619
+ var aVNodePath = [];
2620
+ var bVNodePath = [];
2621
+ var vnode_documentPosition = (a, b, rootVNode) => {
2622
+ if (a === b) {
2623
+ return 0;
2624
+ }
2625
+ let aDepth = -1;
2626
+ let bDepth = -1;
2627
+ while (a) {
2628
+ const vNode = aVNodePath[++aDepth] = a;
2629
+ a = vNode[1 /* parent */] || rootVNode && vnode_getProp(a, QSlotParent, (id) => vnode_locate(rootVNode, id));
2630
+ }
2631
+ while (b) {
2632
+ const vNode = bVNodePath[++bDepth] = b;
2633
+ b = vNode[1 /* parent */] || rootVNode && vnode_getProp(b, QSlotParent, (id) => vnode_locate(rootVNode, id));
2634
+ }
2635
+ while (aDepth >= 0 && bDepth >= 0) {
2636
+ a = aVNodePath[aDepth];
2637
+ b = bVNodePath[bDepth];
2638
+ if (a === b) {
2639
+ aDepth--;
2640
+ bDepth--;
2641
+ } else {
2642
+ let cursor = b;
2643
+ do {
2644
+ cursor = vnode_getNextSibling(cursor);
2645
+ if (cursor === a) {
2646
+ return 1;
2647
+ }
2648
+ } while (cursor);
2649
+ cursor = b;
2650
+ do {
2651
+ cursor = vnode_getPreviousSibling(cursor);
2652
+ if (cursor === a) {
2653
+ return -1;
2654
+ }
2655
+ } while (cursor);
2656
+ if (rootVNode && vnode_getProp(b, QSlotParent, (id) => vnode_locate(rootVNode, id))) {
2657
+ return -1;
2658
+ }
2659
+ return 1;
2660
+ }
2661
+ }
2662
+ return aDepth < bDepth ? -1 : 1;
2663
+ };
2664
+ var aSsrNodePath = [];
2665
+ var bSsrNodePath = [];
2666
+ var ssrNodeDocumentPosition = (a, b) => {
2667
+ if (a === b) {
2668
+ return 0;
2669
+ }
2670
+ let aDepth = -1;
2671
+ let bDepth = -1;
2672
+ while (a) {
2673
+ const ssrNode = aSsrNodePath[++aDepth] = a;
2674
+ a = ssrNode.currentComponentNode;
2675
+ }
2676
+ while (b) {
2677
+ const ssrNode = bSsrNodePath[++bDepth] = b;
2678
+ b = ssrNode.currentComponentNode;
2679
+ }
2680
+ while (aDepth >= 0 && bDepth >= 0) {
2681
+ a = aSsrNodePath[aDepth];
2682
+ b = bSsrNodePath[bDepth];
2683
+ if (a === b) {
2684
+ aDepth--;
2685
+ bDepth--;
2686
+ } else {
2687
+ return 1;
2688
+ }
2689
+ }
2690
+ return aDepth < bDepth ? -1 : 1;
2691
+ };
2692
+
2600
2693
  // packages/qwik/src/core/shared/scheduler.ts
2601
2694
  var DEBUG2 = false;
2602
2695
  var createScheduler = (container, scheduleDrain, journalFlush) => {
@@ -2644,7 +2737,7 @@ var createScheduler = (container, scheduleDrain, journalFlush) => {
2644
2737
  }
2645
2738
  while (choreQueue.length) {
2646
2739
  const nextChore = choreQueue.shift();
2647
- const order = choreComparator(nextChore, runUptoChore, rootVNode, false);
2740
+ const order = choreComparator(nextChore, runUptoChore, rootVNode);
2648
2741
  if (order === null) {
2649
2742
  continue;
2650
2743
  }
@@ -2690,11 +2783,13 @@ var createScheduler = (container, scheduleDrain, journalFlush) => {
2690
2783
  (jsx3) => {
2691
2784
  if (chore.$type$ === 7 /* COMPONENT */) {
2692
2785
  const styleScopedId = container.getHostProp(host, QScopedStyle);
2693
- return vnode_diff(
2694
- container,
2695
- jsx3,
2696
- host,
2697
- addComponentStylePrefix(styleScopedId)
2786
+ return retryOnPromise(
2787
+ () => vnode_diff(
2788
+ container,
2789
+ jsx3,
2790
+ host,
2791
+ addComponentStylePrefix(styleScopedId)
2792
+ )
2698
2793
  );
2699
2794
  } else {
2700
2795
  return jsx3;
@@ -2723,7 +2818,9 @@ var createScheduler = (container, scheduleDrain, journalFlush) => {
2723
2818
  if (isSignal(jsx2)) {
2724
2819
  jsx2 = jsx2.value;
2725
2820
  }
2726
- returnValue = vnode_diff(container, jsx2, parentVirtualNode, null);
2821
+ returnValue = retryOnPromise(
2822
+ () => vnode_diff(container, jsx2, parentVirtualNode, null)
2823
+ );
2727
2824
  break;
2728
2825
  case 5 /* NODE_PROP */:
2729
2826
  const virtualNode = chore.$host$;
@@ -2786,7 +2883,7 @@ var choreUpdate = (existing, newChore) => {
2786
2883
  function vNodeAlreadyDeleted(chore) {
2787
2884
  return !!(chore.$host$ && vnode_isVNode(chore.$host$) && chore.$host$[0 /* flags */] & 32 /* Deleted */);
2788
2885
  }
2789
- function choreComparator(a, b, rootVNode, shouldThrowOnHostMismatch) {
2886
+ function choreComparator(a, b, rootVNode) {
2790
2887
  const macroTypeDiff = (a.$type$ & 240 /* MACRO */) - (b.$type$ & 240 /* MACRO */);
2791
2888
  if (macroTypeDiff !== 0) {
2792
2889
  return macroTypeDiff;
@@ -2805,11 +2902,11 @@ function choreComparator(a, b, rootVNode, shouldThrowOnHostMismatch) {
2805
2902
  You are attempting to change a state that has already been streamed to the client.
2806
2903
  This can lead to inconsistencies between Server-Side Rendering (SSR) and Client-Side Rendering (CSR).
2807
2904
  Problematic Node: ${aHost.toString()}`;
2808
- if (shouldThrowOnHostMismatch) {
2809
- throw qError(45 /* serverHostMismatch */, [errorMessage]);
2810
- }
2811
2905
  logWarn(errorMessage);
2812
- return null;
2906
+ const hostDiff = ssrNodeDocumentPosition(aHost, bHost);
2907
+ if (hostDiff !== 0) {
2908
+ return hostDiff;
2909
+ }
2813
2910
  }
2814
2911
  }
2815
2912
  const microTypeDiff = (a.$type$ & 15 /* MICRO */) - (b.$type$ & 15 /* MICRO */);
@@ -2832,7 +2929,7 @@ function sortedFindIndex(sortedArray, value, rootVNode) {
2832
2929
  while (bottom < top) {
2833
2930
  const middle = bottom + (top - bottom >> 1);
2834
2931
  const midChore = sortedArray[middle];
2835
- const comp = choreComparator(value, midChore, rootVNode, true);
2932
+ const comp = choreComparator(value, midChore, rootVNode);
2836
2933
  if (comp < 0) {
2837
2934
  top = middle;
2838
2935
  } else if (comp > 0) {
@@ -3057,7 +3154,7 @@ var Signal = class {
3057
3154
  // prevent accidental use as value
3058
3155
  valueOf() {
3059
3156
  if (qDev) {
3060
- throw qError(46 /* cannotCoerceSignal */);
3157
+ throw qError(45 /* cannotCoerceSignal */);
3061
3158
  }
3062
3159
  }
3063
3160
  toString() {
@@ -3224,7 +3321,7 @@ var ComputedSignal = class extends Signal {
3224
3321
  try {
3225
3322
  const untrackedValue = computeQrl.getFn(ctx)();
3226
3323
  if (isPromise(untrackedValue)) {
3227
- throw qError(47 /* computedNotSync */, [
3324
+ throw qError(46 /* computedNotSync */, [
3228
3325
  computeQrl.dev ? computeQrl.dev.file : "",
3229
3326
  computeQrl.$hash$
3230
3327
  ]);
@@ -3247,7 +3344,7 @@ var ComputedSignal = class extends Signal {
3247
3344
  return super.value;
3248
3345
  }
3249
3346
  set value(_) {
3250
- throw qError(48 /* computedReadOnly */);
3347
+ throw qError(47 /* computedReadOnly */);
3251
3348
  }
3252
3349
  };
3253
3350
  var WrappedSignal = class extends Signal {
@@ -3314,12 +3411,12 @@ var WrappedSignal = class extends Signal {
3314
3411
  return super.value;
3315
3412
  }
3316
3413
  set value(_) {
3317
- throw qError(49 /* wrappedReadOnly */);
3414
+ throw qError(48 /* wrappedReadOnly */);
3318
3415
  }
3319
3416
  };
3320
3417
 
3321
3418
  // packages/qwik/src/core/version.ts
3322
- var version = "2.0.0-alpha.5-dev+cb53bbd";
3419
+ var version = "2.0.0-alpha.6-dev+d848ba5";
3323
3420
 
3324
3421
  // packages/qwik/src/core/shared/shared-container.ts
3325
3422
  var _SharedContainer = class {
@@ -5163,51 +5260,6 @@ var vnode_getType = (vnode) => {
5163
5260
  };
5164
5261
  var isElement = (node) => node && typeof node == "object" && fastNodeType(node) === /** Node.ELEMENT_NODE* */
5165
5262
  1;
5166
- var aPath = [];
5167
- var bPath = [];
5168
- var vnode_documentPosition = (a, b, rootVNode) => {
5169
- if (a === b) {
5170
- return 0;
5171
- }
5172
- let aDepth = -1;
5173
- let bDepth = -1;
5174
- while (a) {
5175
- const vNode = aPath[++aDepth] = a;
5176
- a = vNode[1 /* parent */] || rootVNode && vnode_getProp(a, QSlotParent, (id) => vnode_locate(rootVNode, id));
5177
- }
5178
- while (b) {
5179
- const vNode = bPath[++bDepth] = b;
5180
- b = vNode[1 /* parent */] || rootVNode && vnode_getProp(b, QSlotParent, (id) => vnode_locate(rootVNode, id));
5181
- }
5182
- while (aDepth >= 0 && bDepth >= 0) {
5183
- a = aPath[aDepth];
5184
- b = bPath[bDepth];
5185
- if (a === b) {
5186
- aDepth--;
5187
- bDepth--;
5188
- } else {
5189
- let cursor = b;
5190
- do {
5191
- cursor = vnode_getNextSibling(cursor);
5192
- if (cursor === a) {
5193
- return 1;
5194
- }
5195
- } while (cursor);
5196
- cursor = b;
5197
- do {
5198
- cursor = vnode_getPreviousSibling(cursor);
5199
- if (cursor === a) {
5200
- return -1;
5201
- }
5202
- } while (cursor);
5203
- if (rootVNode && vnode_getProp(b, QSlotParent, (id) => vnode_locate(rootVNode, id))) {
5204
- return -1;
5205
- }
5206
- return 1;
5207
- }
5208
- }
5209
- return aDepth < bDepth ? -1 : 1;
5210
- };
5211
5263
  var vnode_getProjectionParentComponent = (vHost, rootVNode) => {
5212
5264
  let projectionDepth = 1;
5213
5265
  while (projectionDepth--) {
@@ -8917,7 +8969,7 @@ var SSRContainer = class extends import_core4._SharedContainer {
8917
8969
  let styleScopedId = null;
8918
8970
  if (isSSRUnsafeAttr(key)) {
8919
8971
  if (import_build10.isDev) {
8920
- throw qError(51 /* unsafeAttr */);
8972
+ throw qError(50 /* unsafeAttr */);
8921
8973
  }
8922
8974
  continue;
8923
8975
  }