@tanstack/query-devtools 5.0.0-beta.33 → 5.0.0-beta.34

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.
@@ -424,8 +424,8 @@ var characterMap = {
424
424
  var chars = Object.keys(characterMap).join("|");
425
425
  var allAccents = new RegExp(chars, "g");
426
426
  function removeAccents(str) {
427
- return str.replace(allAccents, (match2) => {
428
- return characterMap[match2];
427
+ return str.replace(allAccents, (match) => {
428
+ return characterMap[match];
429
429
  });
430
430
  }
431
431
  var rankings = {
@@ -461,8 +461,8 @@ function rankItem(item, value, options) {
461
461
  accessorThreshold: options.threshold,
462
462
  passed: false
463
463
  };
464
- for (let i = 0; i < valuesToRank.length; i++) {
465
- const rankValue = valuesToRank[i];
464
+ for (let i2 = 0; i2 < valuesToRank.length; i2++) {
465
+ const rankValue = valuesToRank[i2];
466
466
  let newRank = getMatchRanking(rankValue.itemValue, value, options);
467
467
  const {
468
468
  minRanking,
@@ -478,7 +478,7 @@ function rankItem(item, value, options) {
478
478
  if (newRank >= threshold && newRank > rankingInfo.rank) {
479
479
  rankingInfo.rank = newRank;
480
480
  rankingInfo.passed = true;
481
- rankingInfo.accessorIndex = i;
481
+ rankingInfo.accessorIndex = i2;
482
482
  rankingInfo.accessorThreshold = threshold;
483
483
  rankingInfo.rankedValue = rankValue.itemValue;
484
484
  }
@@ -550,8 +550,8 @@ function getClosenessRanking(testString, stringToRank) {
550
550
  return rankings.NO_MATCH;
551
551
  }
552
552
  charNumber = firstIndex;
553
- for (let i = 1, I = stringToRank.length; i < I; i++) {
554
- const matchChar = stringToRank[i];
553
+ for (let i2 = 1, I = stringToRank.length; i2 < I; i2++) {
554
+ const matchChar = stringToRank[i2];
555
555
  charNumber = findMatchingCharacter(matchChar, testString, charNumber);
556
556
  const found = charNumber > -1;
557
557
  if (!found) {
@@ -591,9 +591,9 @@ function getAllValuesToRank(item, accessors) {
591
591
  const accessor = accessors[j];
592
592
  const attributes = getAccessorAttributes(accessor);
593
593
  const itemValues = getItemValues(item, accessor);
594
- for (let i = 0, I = itemValues.length; i < I; i++) {
594
+ for (let i2 = 0, I = itemValues.length; i2 < I; i2++) {
595
595
  allValues.push({
596
- itemValue: itemValues[i],
596
+ itemValue: itemValues[i2],
597
597
  attributes
598
598
  });
599
599
  }
@@ -614,1287 +614,85 @@ function getAccessorAttributes(accessor) {
614
614
  };
615
615
  }
616
616
 
617
- // ../../node_modules/.pnpm/@emotion+sheet@1.2.2/node_modules/@emotion/sheet/dist/emotion-sheet.browser.esm.js
618
- function sheetForTag(tag) {
619
- if (tag.sheet) {
620
- return tag.sheet;
617
+ // ../../node_modules/.pnpm/goober@2.1.13_csstype@3.1.2/node_modules/goober/dist/goober.modern.js
618
+ var e = { data: "" };
619
+ var t = (t2) => "object" == typeof window ? ((t2 ? t2.querySelector("#_goober") : window._goober) || Object.assign((t2 || document.head).appendChild(document.createElement("style")), { innerHTML: " ", id: "_goober" })).firstChild : t2 || e;
620
+ var l = /(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g;
621
+ var a = /\/\*[^]*?\*\/| +/g;
622
+ var n = /\n+/g;
623
+ var o = (e2, t2) => {
624
+ let r2 = "", l2 = "", a2 = "";
625
+ for (let n2 in e2) {
626
+ let c2 = e2[n2];
627
+ "@" == n2[0] ? "i" == n2[1] ? r2 = n2 + " " + c2 + ";" : l2 += "f" == n2[1] ? o(c2, n2) : n2 + "{" + o(c2, "k" == n2[1] ? "" : t2) + "}" : "object" == typeof c2 ? l2 += o(c2, t2 ? t2.replace(/([^,])+/g, (e3) => n2.replace(/(^:.*)|([^,])+/g, (t3) => /&/.test(t3) ? t3.replace(/&/g, e3) : e3 ? e3 + " " + t3 : t3)) : n2) : null != c2 && (n2 = /^--/.test(n2) ? n2 : n2.replace(/[A-Z]/g, "-$&").toLowerCase(), a2 += o.p ? o.p(n2, c2) : n2 + ":" + c2 + ";");
621
628
  }
622
- for (var i = 0; i < document.styleSheets.length; i++) {
623
- if (document.styleSheets[i].ownerNode === tag) {
624
- return document.styleSheets[i];
625
- }
626
- }
627
- }
628
- function createStyleElement(options) {
629
- var tag = document.createElement("style");
630
- tag.setAttribute("data-emotion", options.key);
631
- if (options.nonce !== void 0) {
632
- tag.setAttribute("nonce", options.nonce);
633
- }
634
- tag.appendChild(document.createTextNode(""));
635
- tag.setAttribute("data-s", "");
636
- return tag;
637
- }
638
- var StyleSheet = /* @__PURE__ */ function() {
639
- function StyleSheet2(options) {
640
- var _this = this;
641
- this._insertTag = function(tag) {
642
- var before;
643
- if (_this.tags.length === 0) {
644
- if (_this.insertionPoint) {
645
- before = _this.insertionPoint.nextSibling;
646
- } else if (_this.prepend) {
647
- before = _this.container.firstChild;
648
- } else {
649
- before = _this.before;
650
- }
651
- } else {
652
- before = _this.tags[_this.tags.length - 1].nextSibling;
653
- }
654
- _this.container.insertBefore(tag, before);
655
- _this.tags.push(tag);
656
- };
657
- this.isSpeedy = options.speedy === void 0 ? true : options.speedy;
658
- this.tags = [];
659
- this.ctr = 0;
660
- this.nonce = options.nonce;
661
- this.key = options.key;
662
- this.container = options.container;
663
- this.prepend = options.prepend;
664
- this.insertionPoint = options.insertionPoint;
665
- this.before = null;
666
- }
667
- var _proto = StyleSheet2.prototype;
668
- _proto.hydrate = function hydrate2(nodes) {
669
- nodes.forEach(this._insertTag);
670
- };
671
- _proto.insert = function insert(rule) {
672
- if (this.ctr % (this.isSpeedy ? 65e3 : 1) === 0) {
673
- this._insertTag(createStyleElement(this));
674
- }
675
- var tag = this.tags[this.tags.length - 1];
676
- if (false) {
677
- var isImportRule = rule.charCodeAt(0) === 64 && rule.charCodeAt(1) === 105;
678
- if (isImportRule && this._alreadyInsertedOrderInsensitiveRule) {
679
- }
680
- this._alreadyInsertedOrderInsensitiveRule = this._alreadyInsertedOrderInsensitiveRule || !isImportRule;
681
- }
682
- if (this.isSpeedy) {
683
- var sheet2 = sheetForTag(tag);
684
- try {
685
- sheet2.insertRule(rule, sheet2.cssRules.length);
686
- } catch (e) {
687
- if (false) {
688
- }
689
- }
690
- } else {
691
- tag.appendChild(document.createTextNode(rule));
692
- }
693
- this.ctr++;
694
- };
695
- _proto.flush = function flush2() {
696
- this.tags.forEach(function(tag) {
697
- return tag.parentNode && tag.parentNode.removeChild(tag);
698
- });
699
- this.tags = [];
700
- this.ctr = 0;
701
- if (false) {
702
- this._alreadyInsertedOrderInsensitiveRule = false;
703
- }
704
- };
705
- return StyleSheet2;
706
- }();
707
-
708
- // ../../node_modules/.pnpm/stylis@4.2.0/node_modules/stylis/src/Enum.js
709
- var MS = "-ms-";
710
- var MOZ = "-moz-";
711
- var WEBKIT = "-webkit-";
712
- var COMMENT = "comm";
713
- var RULESET = "rule";
714
- var DECLARATION = "decl";
715
- var IMPORT = "@import";
716
- var KEYFRAMES = "@keyframes";
717
- var LAYER = "@layer";
718
-
719
- // ../../node_modules/.pnpm/stylis@4.2.0/node_modules/stylis/src/Utility.js
720
- var abs = Math.abs;
721
- var from = String.fromCharCode;
722
- var assign = Object.assign;
723
- function hash(value, length2) {
724
- return charat(value, 0) ^ 45 ? (((length2 << 2 ^ charat(value, 0)) << 2 ^ charat(value, 1)) << 2 ^ charat(value, 2)) << 2 ^ charat(value, 3) : 0;
725
- }
726
- function trim(value) {
727
- return value.trim();
728
- }
729
- function match(value, pattern) {
730
- return (value = pattern.exec(value)) ? value[0] : value;
731
- }
732
- function replace(value, pattern, replacement) {
733
- return value.replace(pattern, replacement);
734
- }
735
- function indexof(value, search) {
736
- return value.indexOf(search);
737
- }
738
- function charat(value, index) {
739
- return value.charCodeAt(index) | 0;
740
- }
741
- function substr(value, begin, end) {
742
- return value.slice(begin, end);
743
- }
744
- function strlen(value) {
745
- return value.length;
746
- }
747
- function sizeof(value) {
748
- return value.length;
749
- }
750
- function append(value, array) {
751
- return array.push(value), value;
752
- }
753
- function combine(array, callback) {
754
- return array.map(callback).join("");
755
- }
756
-
757
- // ../../node_modules/.pnpm/stylis@4.2.0/node_modules/stylis/src/Tokenizer.js
758
- var line = 1;
759
- var column = 1;
760
- var length = 0;
761
- var position = 0;
762
- var character = 0;
763
- var characters = "";
764
- function node(value, root, parent, type, props, children2, length2) {
765
- return { value, root, parent, type, props, children: children2, line, column, length: length2, return: "" };
766
- }
767
- function copy(root, props) {
768
- return assign(node("", null, null, "", null, null, 0), root, { length: -root.length }, props);
769
- }
770
- function char() {
771
- return character;
772
- }
773
- function prev() {
774
- character = position > 0 ? charat(characters, --position) : 0;
775
- if (column--, character === 10)
776
- column = 1, line--;
777
- return character;
778
- }
779
- function next() {
780
- character = position < length ? charat(characters, position++) : 0;
781
- if (column++, character === 10)
782
- column = 1, line++;
783
- return character;
784
- }
785
- function peek() {
786
- return charat(characters, position);
787
- }
788
- function caret() {
789
- return position;
790
- }
791
- function slice(begin, end) {
792
- return substr(characters, begin, end);
793
- }
794
- function token(type) {
795
- switch (type) {
796
- case 0:
797
- case 9:
798
- case 10:
799
- case 13:
800
- case 32:
801
- return 5;
802
- case 33:
803
- case 43:
804
- case 44:
805
- case 47:
806
- case 62:
807
- case 64:
808
- case 126:
809
- case 59:
810
- case 123:
811
- case 125:
812
- return 4;
813
- case 58:
814
- return 3;
815
- case 34:
816
- case 39:
817
- case 40:
818
- case 91:
819
- return 2;
820
- case 41:
821
- case 93:
822
- return 1;
823
- }
824
- return 0;
825
- }
826
- function alloc(value) {
827
- return line = column = 1, length = strlen(characters = value), position = 0, [];
828
- }
829
- function dealloc(value) {
830
- return characters = "", value;
831
- }
832
- function delimit(type) {
833
- return trim(slice(position - 1, delimiter(type === 91 ? type + 2 : type === 40 ? type + 1 : type)));
834
- }
835
- function whitespace(type) {
836
- while (character = peek())
837
- if (character < 33)
838
- next();
839
- else
840
- break;
841
- return token(type) > 2 || token(character) > 3 ? "" : " ";
842
- }
843
- function escaping(index, count) {
844
- while (--count && next())
845
- if (character < 48 || character > 102 || character > 57 && character < 65 || character > 70 && character < 97)
846
- break;
847
- return slice(index, caret() + (count < 6 && peek() == 32 && next() == 32));
848
- }
849
- function delimiter(type) {
850
- while (next())
851
- switch (character) {
852
- case type:
853
- return position;
854
- case 34:
855
- case 39:
856
- if (type !== 34 && type !== 39)
857
- delimiter(character);
858
- break;
859
- case 40:
860
- if (type === 41)
861
- delimiter(type);
862
- break;
863
- case 92:
864
- next();
865
- break;
866
- }
867
- return position;
868
- }
869
- function commenter(type, index) {
870
- while (next())
871
- if (type + character === 47 + 10)
872
- break;
873
- else if (type + character === 42 + 42 && peek() === 47)
874
- break;
875
- return "/*" + slice(index, position - 1) + "*" + from(type === 47 ? type : next());
876
- }
877
- function identifier(index) {
878
- while (!token(peek()))
879
- next();
880
- return slice(index, position);
881
- }
882
-
883
- // ../../node_modules/.pnpm/stylis@4.2.0/node_modules/stylis/src/Parser.js
884
- function compile(value) {
885
- return dealloc(parse("", null, null, null, [""], value = alloc(value), 0, [0], value));
886
- }
887
- function parse(value, root, parent, rule, rules, rulesets, pseudo, points, declarations) {
888
- var index = 0;
889
- var offset = 0;
890
- var length2 = pseudo;
891
- var atrule = 0;
892
- var property = 0;
893
- var previous = 0;
894
- var variable = 1;
895
- var scanning = 1;
896
- var ampersand = 1;
897
- var character2 = 0;
898
- var type = "";
899
- var props = rules;
900
- var children2 = rulesets;
901
- var reference = rule;
902
- var characters2 = type;
903
- while (scanning)
904
- switch (previous = character2, character2 = next()) {
905
- case 40:
906
- if (previous != 108 && charat(characters2, length2 - 1) == 58) {
907
- if (indexof(characters2 += replace(delimit(character2), "&", "&\f"), "&\f") != -1)
908
- ampersand = -1;
909
- break;
910
- }
911
- case 34:
912
- case 39:
913
- case 91:
914
- characters2 += delimit(character2);
915
- break;
916
- case 9:
917
- case 10:
918
- case 13:
919
- case 32:
920
- characters2 += whitespace(previous);
921
- break;
922
- case 92:
923
- characters2 += escaping(caret() - 1, 7);
924
- continue;
925
- case 47:
926
- switch (peek()) {
927
- case 42:
928
- case 47:
929
- append(comment(commenter(next(), caret()), root, parent), declarations);
930
- break;
931
- default:
932
- characters2 += "/";
933
- }
934
- break;
935
- case 123 * variable:
936
- points[index++] = strlen(characters2) * ampersand;
937
- case 125 * variable:
938
- case 59:
939
- case 0:
940
- switch (character2) {
941
- case 0:
942
- case 125:
943
- scanning = 0;
944
- case 59 + offset:
945
- if (ampersand == -1)
946
- characters2 = replace(characters2, /\f/g, "");
947
- if (property > 0 && strlen(characters2) - length2)
948
- append(property > 32 ? declaration(characters2 + ";", rule, parent, length2 - 1) : declaration(replace(characters2, " ", "") + ";", rule, parent, length2 - 2), declarations);
949
- break;
950
- case 59:
951
- characters2 += ";";
952
- default:
953
- append(reference = ruleset(characters2, root, parent, index, offset, rules, points, type, props = [], children2 = [], length2), rulesets);
954
- if (character2 === 123)
955
- if (offset === 0)
956
- parse(characters2, root, reference, reference, props, rulesets, length2, points, children2);
957
- else
958
- switch (atrule === 99 && charat(characters2, 3) === 110 ? 100 : atrule) {
959
- case 100:
960
- case 108:
961
- case 109:
962
- case 115:
963
- parse(value, reference, reference, rule && append(ruleset(value, reference, reference, 0, 0, rules, points, type, rules, props = [], length2), children2), rules, children2, length2, points, rule ? props : children2);
964
- break;
965
- default:
966
- parse(characters2, reference, reference, reference, [""], children2, 0, points, children2);
967
- }
968
- }
969
- index = offset = property = 0, variable = ampersand = 1, type = characters2 = "", length2 = pseudo;
970
- break;
971
- case 58:
972
- length2 = 1 + strlen(characters2), property = previous;
973
- default:
974
- if (variable < 1) {
975
- if (character2 == 123)
976
- --variable;
977
- else if (character2 == 125 && variable++ == 0 && prev() == 125)
978
- continue;
979
- }
980
- switch (characters2 += from(character2), character2 * variable) {
981
- case 38:
982
- ampersand = offset > 0 ? 1 : (characters2 += "\f", -1);
983
- break;
984
- case 44:
985
- points[index++] = (strlen(characters2) - 1) * ampersand, ampersand = 1;
986
- break;
987
- case 64:
988
- if (peek() === 45)
989
- characters2 += delimit(next());
990
- atrule = peek(), offset = length2 = strlen(type = characters2 += identifier(caret())), character2++;
991
- break;
992
- case 45:
993
- if (previous === 45 && strlen(characters2) == 2)
994
- variable = 0;
995
- }
996
- }
997
- return rulesets;
998
- }
999
- function ruleset(value, root, parent, index, offset, rules, points, type, props, children2, length2) {
1000
- var post = offset - 1;
1001
- var rule = offset === 0 ? rules : [""];
1002
- var size = sizeof(rule);
1003
- for (var i = 0, j = 0, k = 0; i < index; ++i)
1004
- for (var x = 0, y = substr(value, post + 1, post = abs(j = points[i])), z = value; x < size; ++x)
1005
- if (z = trim(j > 0 ? rule[x] + " " + y : replace(y, /&\f/g, rule[x])))
1006
- props[k++] = z;
1007
- return node(value, root, parent, offset === 0 ? RULESET : type, props, children2, length2);
1008
- }
1009
- function comment(value, root, parent) {
1010
- return node(value, root, parent, COMMENT, from(char()), substr(value, 2, -2), 0);
1011
- }
1012
- function declaration(value, root, parent, length2) {
1013
- return node(value, root, parent, DECLARATION, substr(value, 0, length2), substr(value, length2 + 1, -1), length2);
1014
- }
1015
-
1016
- // ../../node_modules/.pnpm/stylis@4.2.0/node_modules/stylis/src/Serializer.js
1017
- function serialize(children2, callback) {
1018
- var output = "";
1019
- var length2 = sizeof(children2);
1020
- for (var i = 0; i < length2; i++)
1021
- output += callback(children2[i], i, children2, callback) || "";
1022
- return output;
1023
- }
1024
- function stringify(element, index, children2, callback) {
1025
- switch (element.type) {
1026
- case LAYER:
1027
- if (element.children.length)
1028
- break;
1029
- case IMPORT:
1030
- case DECLARATION:
1031
- return element.return = element.return || element.value;
1032
- case COMMENT:
1033
- return "";
1034
- case KEYFRAMES:
1035
- return element.return = element.value + "{" + serialize(element.children, callback) + "}";
1036
- case RULESET:
1037
- element.value = element.props.join(",");
1038
- }
1039
- return strlen(children2 = serialize(element.children, callback)) ? element.return = element.value + "{" + children2 + "}" : "";
1040
- }
1041
-
1042
- // ../../node_modules/.pnpm/stylis@4.2.0/node_modules/stylis/src/Middleware.js
1043
- function middleware(collection) {
1044
- var length2 = sizeof(collection);
1045
- return function(element, index, children2, callback) {
1046
- var output = "";
1047
- for (var i = 0; i < length2; i++)
1048
- output += collection[i](element, index, children2, callback) || "";
1049
- return output;
1050
- };
1051
- }
1052
- function rulesheet(callback) {
1053
- return function(element) {
1054
- if (!element.root) {
1055
- if (element = element.return)
1056
- callback(element);
1057
- }
1058
- };
1059
- }
1060
-
1061
- // ../../node_modules/.pnpm/@emotion+memoize@0.8.1/node_modules/@emotion/memoize/dist/emotion-memoize.esm.js
1062
- function memoize(fn) {
1063
- var cache2 = /* @__PURE__ */ Object.create(null);
1064
- return function(arg) {
1065
- if (cache2[arg] === void 0)
1066
- cache2[arg] = fn(arg);
1067
- return cache2[arg];
1068
- };
1069
- }
1070
-
1071
- // ../../node_modules/.pnpm/@emotion+cache@11.11.0/node_modules/@emotion/cache/dist/emotion-cache.browser.esm.js
1072
- var identifierWithPointTracking = function identifierWithPointTracking2(begin, points, index) {
1073
- var previous = 0;
1074
- var character2 = 0;
1075
- while (true) {
1076
- previous = character2;
1077
- character2 = peek();
1078
- if (previous === 38 && character2 === 12) {
1079
- points[index] = 1;
1080
- }
1081
- if (token(character2)) {
1082
- break;
1083
- }
1084
- next();
1085
- }
1086
- return slice(begin, position);
1087
- };
1088
- var toRules = function toRules2(parsed, points) {
1089
- var index = -1;
1090
- var character2 = 44;
1091
- do {
1092
- switch (token(character2)) {
1093
- case 0:
1094
- if (character2 === 38 && peek() === 12) {
1095
- points[index] = 1;
1096
- }
1097
- parsed[index] += identifierWithPointTracking(position - 1, points, index);
1098
- break;
1099
- case 2:
1100
- parsed[index] += delimit(character2);
1101
- break;
1102
- case 4:
1103
- if (character2 === 44) {
1104
- parsed[++index] = peek() === 58 ? "&\f" : "";
1105
- points[index] = parsed[index].length;
1106
- break;
1107
- }
1108
- default:
1109
- parsed[index] += from(character2);
1110
- }
1111
- } while (character2 = next());
1112
- return parsed;
1113
- };
1114
- var getRules = function getRules2(value, points) {
1115
- return dealloc(toRules(alloc(value), points));
1116
- };
1117
- var fixedElements = /* @__PURE__ */ new WeakMap();
1118
- var compat = function compat2(element) {
1119
- if (element.type !== "rule" || !element.parent || // positive .length indicates that this rule contains pseudo
1120
- // negative .length indicates that this rule has been already prefixed
1121
- element.length < 1) {
1122
- return;
1123
- }
1124
- var value = element.value, parent = element.parent;
1125
- var isImplicitRule = element.column === parent.column && element.line === parent.line;
1126
- while (parent.type !== "rule") {
1127
- parent = parent.parent;
1128
- if (!parent)
1129
- return;
1130
- }
1131
- if (element.props.length === 1 && value.charCodeAt(0) !== 58 && !fixedElements.get(parent)) {
1132
- return;
1133
- }
1134
- if (isImplicitRule) {
1135
- return;
1136
- }
1137
- fixedElements.set(element, true);
1138
- var points = [];
1139
- var rules = getRules(value, points);
1140
- var parentRules = parent.props;
1141
- for (var i = 0, k = 0; i < rules.length; i++) {
1142
- for (var j = 0; j < parentRules.length; j++, k++) {
1143
- element.props[k] = points[i] ? rules[i].replace(/&\f/g, parentRules[j]) : parentRules[j] + " " + rules[i];
1144
- }
1145
- }
1146
- };
1147
- var removeLabel = function removeLabel2(element) {
1148
- if (element.type === "decl") {
1149
- var value = element.value;
1150
- if (
1151
- // charcode for l
1152
- value.charCodeAt(0) === 108 && // charcode for b
1153
- value.charCodeAt(2) === 98
1154
- ) {
1155
- element["return"] = "";
1156
- element.value = "";
1157
- }
1158
- }
1159
- };
1160
- function prefix(value, length2) {
1161
- switch (hash(value, length2)) {
1162
- case 5103:
1163
- return WEBKIT + "print-" + value + value;
1164
- case 5737:
1165
- case 4201:
1166
- case 3177:
1167
- case 3433:
1168
- case 1641:
1169
- case 4457:
1170
- case 2921:
1171
- case 5572:
1172
- case 6356:
1173
- case 5844:
1174
- case 3191:
1175
- case 6645:
1176
- case 3005:
1177
- case 6391:
1178
- case 5879:
1179
- case 5623:
1180
- case 6135:
1181
- case 4599:
1182
- case 4855:
1183
- case 4215:
1184
- case 6389:
1185
- case 5109:
1186
- case 5365:
1187
- case 5621:
1188
- case 3829:
1189
- return WEBKIT + value + value;
1190
- case 5349:
1191
- case 4246:
1192
- case 4810:
1193
- case 6968:
1194
- case 2756:
1195
- return WEBKIT + value + MOZ + value + MS + value + value;
1196
- case 6828:
1197
- case 4268:
1198
- return WEBKIT + value + MS + value + value;
1199
- case 6165:
1200
- return WEBKIT + value + MS + "flex-" + value + value;
1201
- case 5187:
1202
- return WEBKIT + value + replace(value, /(\w+).+(:[^]+)/, WEBKIT + "box-$1$2" + MS + "flex-$1$2") + value;
1203
- case 5443:
1204
- return WEBKIT + value + MS + "flex-item-" + replace(value, /flex-|-self/, "") + value;
1205
- case 4675:
1206
- return WEBKIT + value + MS + "flex-line-pack" + replace(value, /align-content|flex-|-self/, "") + value;
1207
- case 5548:
1208
- return WEBKIT + value + MS + replace(value, "shrink", "negative") + value;
1209
- case 5292:
1210
- return WEBKIT + value + MS + replace(value, "basis", "preferred-size") + value;
1211
- case 6060:
1212
- return WEBKIT + "box-" + replace(value, "-grow", "") + WEBKIT + value + MS + replace(value, "grow", "positive") + value;
1213
- case 4554:
1214
- return WEBKIT + replace(value, /([^-])(transform)/g, "$1" + WEBKIT + "$2") + value;
1215
- case 6187:
1216
- return replace(replace(replace(value, /(zoom-|grab)/, WEBKIT + "$1"), /(image-set)/, WEBKIT + "$1"), value, "") + value;
1217
- case 5495:
1218
- case 3959:
1219
- return replace(value, /(image-set\([^]*)/, WEBKIT + "$1$`$1");
1220
- case 4968:
1221
- return replace(replace(value, /(.+:)(flex-)?(.*)/, WEBKIT + "box-pack:$3" + MS + "flex-pack:$3"), /s.+-b[^;]+/, "justify") + WEBKIT + value + value;
1222
- case 4095:
1223
- case 3583:
1224
- case 4068:
1225
- case 2532:
1226
- return replace(value, /(.+)-inline(.+)/, WEBKIT + "$1$2") + value;
1227
- case 8116:
1228
- case 7059:
1229
- case 5753:
1230
- case 5535:
1231
- case 5445:
1232
- case 5701:
1233
- case 4933:
1234
- case 4677:
1235
- case 5533:
1236
- case 5789:
1237
- case 5021:
1238
- case 4765:
1239
- if (strlen(value) - 1 - length2 > 6)
1240
- switch (charat(value, length2 + 1)) {
1241
- case 109:
1242
- if (charat(value, length2 + 4) !== 45)
1243
- break;
1244
- case 102:
1245
- return replace(value, /(.+:)(.+)-([^]+)/, "$1" + WEBKIT + "$2-$3$1" + MOZ + (charat(value, length2 + 3) == 108 ? "$3" : "$2-$3")) + value;
1246
- case 115:
1247
- return ~indexof(value, "stretch") ? prefix(replace(value, "stretch", "fill-available"), length2) + value : value;
1248
- }
1249
- break;
1250
- case 4949:
1251
- if (charat(value, length2 + 1) !== 115)
1252
- break;
1253
- case 6444:
1254
- switch (charat(value, strlen(value) - 3 - (~indexof(value, "!important") && 10))) {
1255
- case 107:
1256
- return replace(value, ":", ":" + WEBKIT) + value;
1257
- case 101:
1258
- return replace(value, /(.+:)([^;!]+)(;|!.+)?/, "$1" + WEBKIT + (charat(value, 14) === 45 ? "inline-" : "") + "box$3$1" + WEBKIT + "$2$3$1" + MS + "$2box$3") + value;
1259
- }
1260
- break;
1261
- case 5936:
1262
- switch (charat(value, length2 + 11)) {
1263
- case 114:
1264
- return WEBKIT + value + MS + replace(value, /[svh]\w+-[tblr]{2}/, "tb") + value;
1265
- case 108:
1266
- return WEBKIT + value + MS + replace(value, /[svh]\w+-[tblr]{2}/, "tb-rl") + value;
1267
- case 45:
1268
- return WEBKIT + value + MS + replace(value, /[svh]\w+-[tblr]{2}/, "lr") + value;
1269
- }
1270
- return WEBKIT + value + MS + value + value;
1271
- }
1272
- return value;
1273
- }
1274
- var prefixer = function prefixer2(element, index, children2, callback) {
1275
- if (element.length > -1) {
1276
- if (!element["return"])
1277
- switch (element.type) {
1278
- case DECLARATION:
1279
- element["return"] = prefix(element.value, element.length);
1280
- break;
1281
- case KEYFRAMES:
1282
- return serialize([copy(element, {
1283
- value: replace(element.value, "@", "@" + WEBKIT)
1284
- })], callback);
1285
- case RULESET:
1286
- if (element.length)
1287
- return combine(element.props, function(value) {
1288
- switch (match(value, /(::plac\w+|:read-\w+)/)) {
1289
- case ":read-only":
1290
- case ":read-write":
1291
- return serialize([copy(element, {
1292
- props: [replace(value, /:(read-\w+)/, ":" + MOZ + "$1")]
1293
- })], callback);
1294
- case "::placeholder":
1295
- return serialize([copy(element, {
1296
- props: [replace(value, /:(plac\w+)/, ":" + WEBKIT + "input-$1")]
1297
- }), copy(element, {
1298
- props: [replace(value, /:(plac\w+)/, ":" + MOZ + "$1")]
1299
- }), copy(element, {
1300
- props: [replace(value, /:(plac\w+)/, MS + "input-$1")]
1301
- })], callback);
1302
- }
1303
- return "";
1304
- });
1305
- }
1306
- }
1307
- };
1308
- var defaultStylisPlugins = [prefixer];
1309
- var createCache = function createCache2(options) {
1310
- var key = options.key;
1311
- if (false) {
1312
- throw new Error("You have to configure `key` for your cache. Please make sure it's unique (and not equal to 'css') as it's used for linking styles to your cache.\nIf multiple caches share the same key they might \"fight\" for each other's style elements.");
1313
- }
1314
- if (key === "css") {
1315
- var ssrStyles = document.querySelectorAll("style[data-emotion]:not([data-s])");
1316
- Array.prototype.forEach.call(ssrStyles, function(node2) {
1317
- var dataEmotionAttribute = node2.getAttribute("data-emotion");
1318
- if (dataEmotionAttribute.indexOf(" ") === -1) {
1319
- return;
1320
- }
1321
- document.head.appendChild(node2);
1322
- node2.setAttribute("data-s", "");
1323
- });
1324
- }
1325
- var stylisPlugins = options.stylisPlugins || defaultStylisPlugins;
1326
- if (false) {
1327
- if (/[^a-z-]/.test(key)) {
1328
- throw new Error('Emotion key must only contain lower case alphabetical characters and - but "' + key + '" was passed');
1329
- }
1330
- }
1331
- var inserted = {};
1332
- var container;
1333
- var nodesToHydrate = [];
1334
- {
1335
- container = options.container || document.head;
1336
- Array.prototype.forEach.call(
1337
- // this means we will ignore elements which don't have a space in them which
1338
- // means that the style elements we're looking at are only Emotion 11 server-rendered style elements
1339
- document.querySelectorAll('style[data-emotion^="' + key + ' "]'),
1340
- function(node2) {
1341
- var attrib = node2.getAttribute("data-emotion").split(" ");
1342
- for (var i = 1; i < attrib.length; i++) {
1343
- inserted[attrib[i]] = true;
1344
- }
1345
- nodesToHydrate.push(node2);
1346
- }
1347
- );
1348
- }
1349
- var _insert;
1350
- var omnipresentPlugins = [compat, removeLabel];
1351
- if (false) {
1352
- omnipresentPlugins.push(createUnsafeSelectorsAlarm({
1353
- get compat() {
1354
- return cache2.compat;
1355
- }
1356
- }), incorrectImportAlarm);
1357
- }
1358
- {
1359
- var currentSheet;
1360
- var finalizingPlugins = [stringify, false ? function(element) {
1361
- if (!element.root) {
1362
- if (element["return"]) {
1363
- currentSheet.insert(element["return"]);
1364
- } else if (element.value && element.type !== COMMENT) {
1365
- currentSheet.insert(element.value + "{}");
1366
- }
1367
- }
1368
- } : rulesheet(function(rule) {
1369
- currentSheet.insert(rule);
1370
- })];
1371
- var serializer = middleware(omnipresentPlugins.concat(stylisPlugins, finalizingPlugins));
1372
- var stylis = function stylis2(styles) {
1373
- return serialize(compile(styles), serializer);
1374
- };
1375
- _insert = function insert(selector, serialized, sheet2, shouldCache) {
1376
- currentSheet = sheet2;
1377
- if (false) {
1378
- currentSheet = {
1379
- insert: function insert2(rule) {
1380
- sheet2.insert(rule + serialized.map);
1381
- }
1382
- };
1383
- }
1384
- stylis(selector ? selector + "{" + serialized.styles + "}" : serialized.styles);
1385
- if (shouldCache) {
1386
- cache2.inserted[serialized.name] = true;
1387
- }
1388
- };
1389
- }
1390
- var cache2 = {
1391
- key,
1392
- sheet: new StyleSheet({
1393
- key,
1394
- container,
1395
- nonce: options.nonce,
1396
- speedy: options.speedy,
1397
- prepend: options.prepend,
1398
- insertionPoint: options.insertionPoint
1399
- }),
1400
- nonce: options.nonce,
1401
- inserted,
1402
- registered: {},
1403
- insert: _insert
1404
- };
1405
- cache2.sheet.hydrate(nodesToHydrate);
1406
- return cache2;
629
+ return r2 + (t2 && a2 ? t2 + "{" + a2 + "}" : a2) + l2;
1407
630
  };
1408
-
1409
- // ../../node_modules/.pnpm/@emotion+hash@0.9.1/node_modules/@emotion/hash/dist/emotion-hash.esm.js
1410
- function murmur2(str) {
1411
- var h = 0;
1412
- var k, i = 0, len = str.length;
1413
- for (; len >= 4; ++i, len -= 4) {
1414
- k = str.charCodeAt(i) & 255 | (str.charCodeAt(++i) & 255) << 8 | (str.charCodeAt(++i) & 255) << 16 | (str.charCodeAt(++i) & 255) << 24;
1415
- k = /* Math.imul(k, m): */
1416
- (k & 65535) * 1540483477 + ((k >>> 16) * 59797 << 16);
1417
- k ^= /* k >>> r: */
1418
- k >>> 24;
1419
- h = /* Math.imul(k, m): */
1420
- (k & 65535) * 1540483477 + ((k >>> 16) * 59797 << 16) ^ /* Math.imul(h, m): */
1421
- (h & 65535) * 1540483477 + ((h >>> 16) * 59797 << 16);
1422
- }
1423
- switch (len) {
1424
- case 3:
1425
- h ^= (str.charCodeAt(i + 2) & 255) << 16;
1426
- case 2:
1427
- h ^= (str.charCodeAt(i + 1) & 255) << 8;
1428
- case 1:
1429
- h ^= str.charCodeAt(i) & 255;
1430
- h = /* Math.imul(h, m): */
1431
- (h & 65535) * 1540483477 + ((h >>> 16) * 59797 << 16);
631
+ var c = {};
632
+ var s = (e2) => {
633
+ if ("object" == typeof e2) {
634
+ let t2 = "";
635
+ for (let r2 in e2)
636
+ t2 += r2 + s(e2[r2]);
637
+ return t2;
1432
638
  }
1433
- h ^= h >>> 13;
1434
- h = /* Math.imul(h, m): */
1435
- (h & 65535) * 1540483477 + ((h >>> 16) * 59797 << 16);
1436
- return ((h ^ h >>> 15) >>> 0).toString(36);
1437
- }
1438
-
1439
- // ../../node_modules/.pnpm/@emotion+unitless@0.8.1/node_modules/@emotion/unitless/dist/emotion-unitless.esm.js
1440
- var unitlessKeys = {
1441
- animationIterationCount: 1,
1442
- aspectRatio: 1,
1443
- borderImageOutset: 1,
1444
- borderImageSlice: 1,
1445
- borderImageWidth: 1,
1446
- boxFlex: 1,
1447
- boxFlexGroup: 1,
1448
- boxOrdinalGroup: 1,
1449
- columnCount: 1,
1450
- columns: 1,
1451
- flex: 1,
1452
- flexGrow: 1,
1453
- flexPositive: 1,
1454
- flexShrink: 1,
1455
- flexNegative: 1,
1456
- flexOrder: 1,
1457
- gridRow: 1,
1458
- gridRowEnd: 1,
1459
- gridRowSpan: 1,
1460
- gridRowStart: 1,
1461
- gridColumn: 1,
1462
- gridColumnEnd: 1,
1463
- gridColumnSpan: 1,
1464
- gridColumnStart: 1,
1465
- msGridRow: 1,
1466
- msGridRowSpan: 1,
1467
- msGridColumn: 1,
1468
- msGridColumnSpan: 1,
1469
- fontWeight: 1,
1470
- lineHeight: 1,
1471
- opacity: 1,
1472
- order: 1,
1473
- orphans: 1,
1474
- tabSize: 1,
1475
- widows: 1,
1476
- zIndex: 1,
1477
- zoom: 1,
1478
- WebkitLineClamp: 1,
1479
- // SVG-related properties
1480
- fillOpacity: 1,
1481
- floodOpacity: 1,
1482
- stopOpacity: 1,
1483
- strokeDasharray: 1,
1484
- strokeDashoffset: 1,
1485
- strokeMiterlimit: 1,
1486
- strokeOpacity: 1,
1487
- strokeWidth: 1
639
+ return e2;
1488
640
  };
1489
-
1490
- // ../../node_modules/.pnpm/@emotion+serialize@1.1.2/node_modules/@emotion/serialize/dist/emotion-serialize.browser.esm.js
1491
- var hyphenateRegex = /[A-Z]|^ms/g;
1492
- var animationRegex = /_EMO_([^_]+?)_([^]*?)_EMO_/g;
1493
- var isCustomProperty = function isCustomProperty2(property) {
1494
- return property.charCodeAt(1) === 45;
1495
- };
1496
- var isProcessableValue = function isProcessableValue2(value) {
1497
- return value != null && typeof value !== "boolean";
1498
- };
1499
- var processStyleName = /* @__PURE__ */ memoize(function(styleName) {
1500
- return isCustomProperty(styleName) ? styleName : styleName.replace(hyphenateRegex, "-$&").toLowerCase();
1501
- });
1502
- var processStyleValue = function processStyleValue2(key, value) {
1503
- switch (key) {
1504
- case "animation":
1505
- case "animationName": {
1506
- if (typeof value === "string") {
1507
- return value.replace(animationRegex, function(match2, p1, p2) {
1508
- cursor = {
1509
- name: p1,
1510
- styles: p2,
1511
- next: cursor
1512
- };
1513
- return p1;
1514
- });
1515
- }
1516
- }
1517
- }
1518
- if (unitlessKeys[key] !== 1 && !isCustomProperty(key) && typeof value === "number" && value !== 0) {
1519
- return value + "px";
641
+ var i = (e2, t2, r2, i2, p2) => {
642
+ let u2 = s(e2), d = c[u2] || (c[u2] = ((e3) => {
643
+ let t3 = 0, r3 = 11;
644
+ for (; t3 < e3.length; )
645
+ r3 = 101 * r3 + e3.charCodeAt(t3++) >>> 0;
646
+ return "go" + r3;
647
+ })(u2));
648
+ if (!c[d]) {
649
+ let t3 = u2 !== e2 ? e2 : ((e3) => {
650
+ let t4, r3, o2 = [{}];
651
+ for (; t4 = l.exec(e3.replace(a, "")); )
652
+ t4[4] ? o2.shift() : t4[3] ? (r3 = t4[3].replace(n, " ").trim(), o2.unshift(o2[0][r3] = o2[0][r3] || {})) : o2[0][t4[1]] = t4[2].replace(n, " ").trim();
653
+ return o2[0];
654
+ })(e2);
655
+ c[d] = o(p2 ? { ["@keyframes " + d]: t3 } : t3, r2 ? "" : "." + d);
1520
656
  }
1521
- return value;
657
+ let f = r2 && c.g ? c.g : null;
658
+ return r2 && (c.g = c[d]), ((e3, t3, r3, l2) => {
659
+ l2 ? t3.data = t3.data.replace(l2, e3) : -1 === t3.data.indexOf(e3) && (t3.data = r3 ? e3 + t3.data : t3.data + e3);
660
+ })(c[d], t2, i2, f), d;
1522
661
  };
1523
- if (false) {
1524
- contentValuePattern = /(var|attr|counters?|url|element|(((repeating-)?(linear|radial))|conic)-gradient)\(|(no-)?(open|close)-quote/;
1525
- contentValues = ["normal", "none", "initial", "inherit", "unset"];
1526
- oldProcessStyleValue = processStyleValue;
1527
- msPattern = /^-ms-/;
1528
- hyphenPattern = /-(.)/g;
1529
- hyphenatedCache = {};
1530
- processStyleValue = function processStyleValue3(key, value) {
1531
- if (key === "content") {
1532
- if (typeof value !== "string" || contentValues.indexOf(value) === -1 && !contentValuePattern.test(value) && (value.charAt(0) !== value.charAt(value.length - 1) || value.charAt(0) !== '"' && value.charAt(0) !== "'")) {
1533
- throw new Error("You seem to be using a value for 'content' without quotes, try replacing it with `content: '\"" + value + "\"'`");
1534
- }
1535
- }
1536
- var processed = oldProcessStyleValue(key, value);
1537
- if (processed !== "" && !isCustomProperty(key) && key.indexOf("-") !== -1 && hyphenatedCache[key] === void 0) {
1538
- hyphenatedCache[key] = true;
1539
- }
1540
- return processed;
1541
- };
1542
- }
1543
- var contentValuePattern;
1544
- var contentValues;
1545
- var oldProcessStyleValue;
1546
- var msPattern;
1547
- var hyphenPattern;
1548
- var hyphenatedCache;
1549
- function handleInterpolation(mergedProps, registered, interpolation) {
1550
- if (interpolation == null) {
1551
- return "";
1552
- }
1553
- if (interpolation.__emotion_styles !== void 0) {
1554
- if (false) {
1555
- throw new Error(noComponentSelectorMessage);
1556
- }
1557
- return interpolation;
1558
- }
1559
- switch (typeof interpolation) {
1560
- case "boolean": {
1561
- return "";
1562
- }
1563
- case "object": {
1564
- if (interpolation.anim === 1) {
1565
- cursor = {
1566
- name: interpolation.name,
1567
- styles: interpolation.styles,
1568
- next: cursor
1569
- };
1570
- return interpolation.name;
1571
- }
1572
- if (interpolation.styles !== void 0) {
1573
- var next2 = interpolation.next;
1574
- if (next2 !== void 0) {
1575
- while (next2 !== void 0) {
1576
- cursor = {
1577
- name: next2.name,
1578
- styles: next2.styles,
1579
- next: cursor
1580
- };
1581
- next2 = next2.next;
1582
- }
1583
- }
1584
- var styles = interpolation.styles + ";";
1585
- if (false) {
1586
- styles += interpolation.map;
1587
- }
1588
- return styles;
1589
- }
1590
- return createStringFromObject(mergedProps, registered, interpolation);
1591
- }
1592
- case "function": {
1593
- if (mergedProps !== void 0) {
1594
- var previousCursor = cursor;
1595
- var result = interpolation(mergedProps);
1596
- cursor = previousCursor;
1597
- return handleInterpolation(mergedProps, registered, result);
1598
- } else if (false) {
1599
- }
1600
- break;
1601
- }
1602
- case "string":
1603
- if (false) {
1604
- var matched = [];
1605
- var replaced = interpolation.replace(animationRegex, function(match2, p1, p2) {
1606
- var fakeVarName = "animation" + matched.length;
1607
- matched.push("const " + fakeVarName + " = keyframes`" + p2.replace(/^@keyframes animation-\w+/, "") + "`");
1608
- return "${" + fakeVarName + "}";
1609
- });
1610
- if (matched.length) {
1611
- }
1612
- }
1613
- break;
1614
- }
1615
- if (registered == null) {
1616
- return interpolation;
1617
- }
1618
- var cached = registered[interpolation];
1619
- return cached !== void 0 ? cached : interpolation;
1620
- }
1621
- function createStringFromObject(mergedProps, registered, obj) {
1622
- var string = "";
1623
- if (Array.isArray(obj)) {
1624
- for (var i = 0; i < obj.length; i++) {
1625
- string += handleInterpolation(mergedProps, registered, obj[i]) + ";";
1626
- }
1627
- } else {
1628
- for (var _key in obj) {
1629
- var value = obj[_key];
1630
- if (typeof value !== "object") {
1631
- if (registered != null && registered[value] !== void 0) {
1632
- string += _key + "{" + registered[value] + "}";
1633
- } else if (isProcessableValue(value)) {
1634
- string += processStyleName(_key) + ":" + processStyleValue(_key, value) + ";";
1635
- }
1636
- } else {
1637
- if (_key === "NO_COMPONENT_SELECTOR" && false) {
1638
- throw new Error(noComponentSelectorMessage);
1639
- }
1640
- if (Array.isArray(value) && typeof value[0] === "string" && (registered == null || registered[value[0]] === void 0)) {
1641
- for (var _i = 0; _i < value.length; _i++) {
1642
- if (isProcessableValue(value[_i])) {
1643
- string += processStyleName(_key) + ":" + processStyleValue(_key, value[_i]) + ";";
1644
- }
1645
- }
1646
- } else {
1647
- var interpolated = handleInterpolation(mergedProps, registered, value);
1648
- switch (_key) {
1649
- case "animation":
1650
- case "animationName": {
1651
- string += processStyleName(_key) + ":" + interpolated + ";";
1652
- break;
1653
- }
1654
- default: {
1655
- if (false) {
1656
- }
1657
- string += _key + "{" + interpolated + "}";
1658
- }
1659
- }
1660
- }
1661
- }
1662
- }
662
+ var p = (e2, t2, r2) => e2.reduce((e3, l2, a2) => {
663
+ let n2 = t2[a2];
664
+ if (n2 && n2.call) {
665
+ let e4 = n2(r2), t3 = e4 && e4.props && e4.props.className || /^go/.test(e4) && e4;
666
+ n2 = t3 ? "." + t3 : e4 && "object" == typeof e4 ? e4.props ? "" : o(e4, "") : false === e4 ? "" : e4;
1663
667
  }
1664
- return string;
668
+ return e3 + l2 + (null == n2 ? "" : n2);
669
+ }, "");
670
+ function u(e2) {
671
+ let r2 = this || {}, l2 = e2.call ? e2(r2.p) : e2;
672
+ return i(l2.unshift ? l2.raw ? p(l2, [].slice.call(arguments, 1), r2.p) : l2.reduce((e3, t2) => Object.assign(e3, t2 && t2.call ? t2(r2.p) : t2), {}) : l2, t(r2.target), r2.g, r2.o, r2.k);
1665
673
  }
1666
- var labelPattern = /label:\s*([^\s;\n{]+)\s*(;|$)/g;
1667
- if (false) {
1668
- sourceMapPattern = /\/\*#\ssourceMappingURL=data:application\/json;\S+\s+\*\//g;
1669
- }
1670
- var cursor;
1671
- var serializeStyles = function serializeStyles2(args, registered, mergedProps) {
1672
- if (args.length === 1 && typeof args[0] === "object" && args[0] !== null && args[0].styles !== void 0) {
1673
- return args[0];
1674
- }
1675
- var stringMode = true;
1676
- var styles = "";
1677
- cursor = void 0;
1678
- var strings = args[0];
1679
- if (strings == null || strings.raw === void 0) {
1680
- stringMode = false;
1681
- styles += handleInterpolation(mergedProps, registered, strings);
1682
- } else {
1683
- if (false) {
1684
- }
1685
- styles += strings[0];
1686
- }
1687
- for (var i = 1; i < args.length; i++) {
1688
- styles += handleInterpolation(mergedProps, registered, args[i]);
1689
- if (stringMode) {
1690
- if (false) {
1691
- }
1692
- styles += strings[i];
1693
- }
1694
- }
1695
- var sourceMap;
1696
- if (false) {
1697
- styles = styles.replace(sourceMapPattern, function(match3) {
1698
- sourceMap = match3;
1699
- return "";
1700
- });
1701
- }
1702
- labelPattern.lastIndex = 0;
1703
- var identifierName = "";
1704
- var match2;
1705
- while ((match2 = labelPattern.exec(styles)) !== null) {
1706
- identifierName += "-" + // $FlowFixMe we know it's not null
1707
- match2[1];
1708
- }
1709
- var name = murmur2(styles) + identifierName;
1710
- if (false) {
1711
- return {
1712
- name,
1713
- styles,
1714
- map: sourceMap,
1715
- next: cursor,
1716
- toString: function toString() {
1717
- return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop).";
1718
- }
1719
- };
1720
- }
1721
- return {
1722
- name,
1723
- styles,
1724
- next: cursor
1725
- };
1726
- };
1727
-
1728
- // ../../node_modules/.pnpm/@emotion+utils@1.2.1/node_modules/@emotion/utils/dist/emotion-utils.browser.esm.js
1729
- var isBrowser = true;
1730
- function getRegisteredStyles(registered, registeredStyles, classNames) {
1731
- var rawClassName = "";
1732
- classNames.split(" ").forEach(function(className) {
1733
- if (registered[className] !== void 0) {
1734
- registeredStyles.push(registered[className] + ";");
1735
- } else {
1736
- rawClassName += className + " ";
1737
- }
1738
- });
1739
- return rawClassName;
1740
- }
1741
- var registerStyles = function registerStyles2(cache2, serialized, isStringTag) {
1742
- var className = cache2.key + "-" + serialized.name;
1743
- if (
1744
- // we only need to add the styles to the registered cache if the
1745
- // class name could be used further down
1746
- // the tree but if it's a string tag, we know it won't
1747
- // so we don't have to add it to registered cache.
1748
- // this improves memory usage since we can avoid storing the whole style string
1749
- (isStringTag === false || // we need to always store it if we're in compat mode and
1750
- // in node since emotion-server relies on whether a style is in
1751
- // the registered cache to know whether a style is global or not
1752
- // also, note that this check will be dead code eliminated in the browser
1753
- isBrowser === false) && cache2.registered[className] === void 0
1754
- ) {
1755
- cache2.registered[className] = serialized.styles;
1756
- }
1757
- };
1758
- var insertStyles = function insertStyles2(cache2, serialized, isStringTag) {
1759
- registerStyles(cache2, serialized, isStringTag);
1760
- var className = cache2.key + "-" + serialized.name;
1761
- if (cache2.inserted[serialized.name] === void 0) {
1762
- var current = serialized;
1763
- do {
1764
- cache2.insert(serialized === current ? "." + className : "", current, cache2.sheet, true);
1765
- current = current.next;
1766
- } while (current !== void 0);
1767
- }
1768
- };
674
+ var b = u.bind({ g: 1 });
675
+ var h = u.bind({ k: 1 });
1769
676
 
1770
- // ../../node_modules/.pnpm/@emotion+css@11.11.0/node_modules/@emotion/css/create-instance/dist/emotion-css-create-instance.esm.js
1771
- function insertWithoutScoping(cache2, serialized) {
1772
- if (cache2.inserted[serialized.name] === void 0) {
1773
- return cache2.insert("", serialized, cache2.sheet, true);
1774
- }
677
+ // ../../node_modules/.pnpm/clsx@2.0.0/node_modules/clsx/dist/clsx.mjs
678
+ function r(e2) {
679
+ var t2, f, n2 = "";
680
+ if ("string" == typeof e2 || "number" == typeof e2)
681
+ n2 += e2;
682
+ else if ("object" == typeof e2)
683
+ if (Array.isArray(e2))
684
+ for (t2 = 0; t2 < e2.length; t2++)
685
+ e2[t2] && (f = r(e2[t2])) && (n2 && (n2 += " "), n2 += f);
686
+ else
687
+ for (t2 in e2)
688
+ e2[t2] && (n2 && (n2 += " "), n2 += t2);
689
+ return n2;
1775
690
  }
1776
- function merge(registered, css2, className) {
1777
- var registeredStyles = [];
1778
- var rawClassName = getRegisteredStyles(registered, registeredStyles, className);
1779
- if (registeredStyles.length < 2) {
1780
- return className;
1781
- }
1782
- return rawClassName + css2(registeredStyles);
691
+ function clsx() {
692
+ for (var e2, t2, f = 0, n2 = ""; f < arguments.length; )
693
+ (e2 = arguments[f++]) && (t2 = r(e2)) && (n2 && (n2 += " "), n2 += t2);
694
+ return n2;
1783
695
  }
1784
- var createEmotion = function createEmotion2(options) {
1785
- var cache2 = createCache(options);
1786
- cache2.sheet.speedy = function(value) {
1787
- if (false) {
1788
- throw new Error("speedy must be changed before any rules are inserted");
1789
- }
1790
- this.isSpeedy = value;
1791
- };
1792
- cache2.compat = true;
1793
- var css2 = function css3() {
1794
- for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
1795
- args[_key] = arguments[_key];
1796
- }
1797
- var serialized = serializeStyles(args, cache2.registered, void 0);
1798
- insertStyles(cache2, serialized, false);
1799
- return cache2.key + "-" + serialized.name;
1800
- };
1801
- var keyframes2 = function keyframes3() {
1802
- for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
1803
- args[_key2] = arguments[_key2];
1804
- }
1805
- var serialized = serializeStyles(args, cache2.registered);
1806
- var animation = "animation-" + serialized.name;
1807
- insertWithoutScoping(cache2, {
1808
- name: serialized.name,
1809
- styles: "@keyframes " + animation + "{" + serialized.styles + "}"
1810
- });
1811
- return animation;
1812
- };
1813
- var injectGlobal2 = function injectGlobal3() {
1814
- for (var _len3 = arguments.length, args = new Array(_len3), _key3 = 0; _key3 < _len3; _key3++) {
1815
- args[_key3] = arguments[_key3];
1816
- }
1817
- var serialized = serializeStyles(args, cache2.registered);
1818
- insertWithoutScoping(cache2, serialized);
1819
- };
1820
- var cx2 = function cx3() {
1821
- for (var _len4 = arguments.length, args = new Array(_len4), _key4 = 0; _key4 < _len4; _key4++) {
1822
- args[_key4] = arguments[_key4];
1823
- }
1824
- return merge(cache2.registered, css2, classnames(args));
1825
- };
1826
- return {
1827
- css: css2,
1828
- cx: cx2,
1829
- injectGlobal: injectGlobal2,
1830
- keyframes: keyframes2,
1831
- hydrate: function hydrate2(ids) {
1832
- ids.forEach(function(key) {
1833
- cache2.inserted[key] = true;
1834
- });
1835
- },
1836
- flush: function flush2() {
1837
- cache2.registered = {};
1838
- cache2.inserted = {};
1839
- cache2.sheet.flush();
1840
- },
1841
- // $FlowFixMe
1842
- sheet: cache2.sheet,
1843
- cache: cache2,
1844
- getRegisteredStyles: getRegisteredStyles.bind(null, cache2.registered),
1845
- merge: merge.bind(null, cache2.registered, css2)
1846
- };
1847
- };
1848
- var classnames = function classnames2(args) {
1849
- var cls = "";
1850
- for (var i = 0; i < args.length; i++) {
1851
- var arg = args[i];
1852
- if (arg == null)
1853
- continue;
1854
- var toAdd = void 0;
1855
- switch (typeof arg) {
1856
- case "boolean":
1857
- break;
1858
- case "object": {
1859
- if (Array.isArray(arg)) {
1860
- toAdd = classnames2(arg);
1861
- } else {
1862
- toAdd = "";
1863
- for (var k in arg) {
1864
- if (arg[k] && k) {
1865
- toAdd && (toAdd += " ");
1866
- toAdd += k;
1867
- }
1868
- }
1869
- }
1870
- break;
1871
- }
1872
- default: {
1873
- toAdd = arg;
1874
- }
1875
- }
1876
- if (toAdd) {
1877
- cls && (cls += " ");
1878
- cls += toAdd;
1879
- }
1880
- }
1881
- return cls;
1882
- };
1883
-
1884
- // ../../node_modules/.pnpm/@emotion+css@11.11.0/node_modules/@emotion/css/dist/emotion-css.esm.js
1885
- var _createEmotion = createEmotion({
1886
- key: "css"
1887
- });
1888
- var flush = _createEmotion.flush;
1889
- var hydrate = _createEmotion.hydrate;
1890
- var cx = _createEmotion.cx;
1891
- var merge2 = _createEmotion.merge;
1892
- var getRegisteredStyles2 = _createEmotion.getRegisteredStyles;
1893
- var injectGlobal = _createEmotion.injectGlobal;
1894
- var keyframes = _createEmotion.keyframes;
1895
- var css = _createEmotion.css;
1896
- var sheet = _createEmotion.sheet;
1897
- var cache = _createEmotion.cache;
1898
696
 
1899
697
  // ../../node_modules/.pnpm/@solid-primitives+transition-group@1.0.2_solid-js@1.7.8/node_modules/@solid-primitives/transition-group/dist/index.js
1900
698
  var noop = () => {
@@ -1902,8 +700,8 @@ var noop = () => {
1902
700
  function createListTransition(source, options) {
1903
701
  const initSource = untrack(source);
1904
702
  if (isServer) {
1905
- const copy3 = initSource.slice();
1906
- return () => copy3;
703
+ const copy2 = initSource.slice();
704
+ return () => copy2;
1907
705
  }
1908
706
  const { onChange } = options;
1909
707
  let prevSet = new Set(options.appear ? void 0 : initSource);
@@ -1911,29 +709,29 @@ function createListTransition(source, options) {
1911
709
  const [toRemove, setToRemove] = createSignal([], { equals: false });
1912
710
  const [isTransitionPending] = useTransition();
1913
711
  const finishRemoved = options.exitMethod === "remove" ? noop : (els) => {
1914
- setToRemove((p) => (p.push.apply(p, els), p));
712
+ setToRemove((p2) => (p2.push.apply(p2, els), p2));
1915
713
  for (const el of els)
1916
714
  exiting.delete(el);
1917
715
  };
1918
- const handleRemoved = options.exitMethod === "remove" ? noop : options.exitMethod === "keep-index" ? (els, el, i) => els.splice(i, 0, el) : (els, el) => els.push(el);
716
+ const handleRemoved = options.exitMethod === "remove" ? noop : options.exitMethod === "keep-index" ? (els, el, i2) => els.splice(i2, 0, el) : (els, el) => els.push(el);
1919
717
  return createMemo(
1920
- (prev2) => {
718
+ (prev) => {
1921
719
  const elsToRemove = toRemove();
1922
720
  const sourceList = source();
1923
721
  sourceList[$TRACK];
1924
722
  if (untrack(isTransitionPending)) {
1925
723
  isTransitionPending();
1926
- return prev2;
724
+ return prev;
1927
725
  }
1928
726
  if (elsToRemove.length) {
1929
- const next2 = prev2.filter((e) => !elsToRemove.includes(e));
727
+ const next = prev.filter((e2) => !elsToRemove.includes(e2));
1930
728
  elsToRemove.length = 0;
1931
- onChange({ list: next2, added: [], removed: [], unchanged: next2, finishRemoved });
1932
- return next2;
729
+ onChange({ list: next, added: [], removed: [], unchanged: next, finishRemoved });
730
+ return next;
1933
731
  }
1934
732
  return untrack(() => {
1935
733
  const nextSet = new Set(sourceList);
1936
- const next2 = sourceList.slice();
734
+ const next = sourceList.slice();
1937
735
  const added = [];
1938
736
  const removed = [];
1939
737
  const unchanged = [];
@@ -1941,23 +739,23 @@ function createListTransition(source, options) {
1941
739
  (prevSet.has(el) ? unchanged : added).push(el);
1942
740
  }
1943
741
  let nothingChanged = !added.length;
1944
- for (let i = 0; i < prev2.length; i++) {
1945
- const el = prev2[i];
742
+ for (let i2 = 0; i2 < prev.length; i2++) {
743
+ const el = prev[i2];
1946
744
  if (!nextSet.has(el)) {
1947
745
  if (!exiting.has(el)) {
1948
746
  removed.push(el);
1949
747
  exiting.add(el);
1950
748
  }
1951
- handleRemoved(next2, el, i);
749
+ handleRemoved(next, el, i2);
1952
750
  }
1953
- if (nothingChanged && el !== next2[i])
751
+ if (nothingChanged && el !== next[i2])
1954
752
  nothingChanged = false;
1955
753
  }
1956
754
  if (!removed.length && nothingChanged)
1957
- return prev2;
1958
- onChange({ list: next2, added, removed, unchanged, finishRemoved });
755
+ return prev;
756
+ onChange({ list: next, added, removed, unchanged, finishRemoved });
1959
757
  prevSet = nextSet;
1960
- return next2;
758
+ return next;
1961
759
  });
1962
760
  },
1963
761
  options.appear ? [] : initSource.slice()
@@ -1966,38 +764,38 @@ function createListTransition(source, options) {
1966
764
 
1967
765
  // ../../node_modules/.pnpm/@solid-primitives+utils@6.2.0_solid-js@1.7.8/node_modules/@solid-primitives/utils/dist/chunk/APG4HSEJ.js
1968
766
  var noop2 = () => void 0;
1969
- var isNonNullable = (i) => i != null;
767
+ var isNonNullable = (i2) => i2 != null;
1970
768
  var filterNonNullable = (arr) => arr.filter(isNonNullable);
1971
769
  var access = (v) => typeof v === "function" && !v.length ? v() : v;
1972
770
  var asArray = (value) => Array.isArray(value) ? value : value ? [value] : [];
1973
- function handleDiffArray(current, prev2, handleAdded, handleRemoved) {
771
+ function handleDiffArray(current, prev, handleAdded, handleRemoved) {
1974
772
  const currLength = current.length;
1975
- const prevLength = prev2.length;
1976
- let i = 0;
773
+ const prevLength = prev.length;
774
+ let i2 = 0;
1977
775
  if (!prevLength) {
1978
- for (; i < currLength; i++)
1979
- handleAdded(current[i]);
776
+ for (; i2 < currLength; i2++)
777
+ handleAdded(current[i2]);
1980
778
  return;
1981
779
  }
1982
780
  if (!currLength) {
1983
- for (; i < prevLength; i++)
1984
- handleRemoved(prev2[i]);
781
+ for (; i2 < prevLength; i2++)
782
+ handleRemoved(prev[i2]);
1985
783
  return;
1986
784
  }
1987
- for (; i < prevLength; i++) {
1988
- if (prev2[i] !== current[i])
785
+ for (; i2 < prevLength; i2++) {
786
+ if (prev[i2] !== current[i2])
1989
787
  break;
1990
788
  }
1991
789
  let prevEl;
1992
790
  let currEl;
1993
- prev2 = prev2.slice(i);
1994
- current = current.slice(i);
1995
- for (prevEl of prev2) {
791
+ prev = prev.slice(i2);
792
+ current = current.slice(i2);
793
+ for (prevEl of prev) {
1996
794
  if (!current.includes(prevEl))
1997
795
  handleRemoved(prevEl);
1998
796
  }
1999
797
  for (currEl of current) {
2000
- if (!prev2.includes(currEl))
798
+ if (!prev.includes(currEl))
2001
799
  handleAdded(currEl);
2002
800
  }
2003
801
  }
@@ -2050,8 +848,8 @@ function createClassnames(props) {
2050
848
  function nextFrame(fn) {
2051
849
  requestAnimationFrame(() => requestAnimationFrame(fn));
2052
850
  }
2053
- function enterTransition(classnames3, events, el, done) {
2054
- const { enterClasses, enterActiveClasses, enterToClasses } = classnames3, { onBeforeEnter, onEnter, onAfterEnter } = events;
851
+ function enterTransition(classnames, events, el, done) {
852
+ const { enterClasses, enterActiveClasses, enterToClasses } = classnames, { onBeforeEnter, onEnter, onAfterEnter } = events;
2055
853
  onBeforeEnter?.(el);
2056
854
  el.classList.add(...enterClasses);
2057
855
  el.classList.add(...enterActiveClasses);
@@ -2068,8 +866,8 @@ function enterTransition(classnames3, events, el, done) {
2068
866
  el.addEventListener("animationend", endTransition);
2069
867
  }
2070
868
  });
2071
- function endTransition(e) {
2072
- if (!e || e.target === el) {
869
+ function endTransition(e2) {
870
+ if (!e2 || e2.target === el) {
2073
871
  done?.();
2074
872
  el.removeEventListener("transitionend", endTransition);
2075
873
  el.removeEventListener("animationend", endTransition);
@@ -2079,8 +877,8 @@ function enterTransition(classnames3, events, el, done) {
2079
877
  }
2080
878
  }
2081
879
  }
2082
- function exitTransition(classnames3, events, el, done) {
2083
- const { exitClasses, exitActiveClasses, exitToClasses } = classnames3, { onBeforeExit, onExit, onAfterExit } = events;
880
+ function exitTransition(classnames, events, el, done) {
881
+ const { exitClasses, exitActiveClasses, exitToClasses } = classnames, { onBeforeExit, onExit, onAfterExit } = events;
2084
882
  if (!el.parentNode)
2085
883
  return done?.();
2086
884
  onBeforeExit?.(el);
@@ -2095,8 +893,8 @@ function exitTransition(classnames3, events, el, done) {
2095
893
  el.addEventListener("animationend", endTransition);
2096
894
  }
2097
895
  });
2098
- function endTransition(e) {
2099
- if (!e || e.target === el) {
896
+ function endTransition(e2) {
897
+ if (!e2 || e2.target === el) {
2100
898
  done?.();
2101
899
  el.removeEventListener("transitionend", endTransition);
2102
900
  el.removeEventListener("animationend", endTransition);
@@ -2107,12 +905,12 @@ function exitTransition(classnames3, events, el, done) {
2107
905
  }
2108
906
  }
2109
907
  var TransitionGroup = (props) => {
2110
- const classnames3 = createClassnames(props);
908
+ const classnames = createClassnames(props);
2111
909
  return createListTransition(resolveElements(() => props.children).toArray, {
2112
910
  appear: props.appear,
2113
911
  exitMethod: "keep-index",
2114
912
  onChange({ added, removed, finishRemoved, list }) {
2115
- const classes = classnames3();
913
+ const classes = classnames();
2116
914
  for (const el of added) {
2117
915
  enterTransition(classes, props, el);
2118
916
  }
@@ -2136,8 +934,8 @@ var TransitionGroup = (props) => {
2136
934
  }
2137
935
  document.body.offsetHeight;
2138
936
  for (const el of moved) {
2139
- let endTransition2 = function(e) {
2140
- if (e.target === el || /transform$/.test(e.propertyName)) {
937
+ let endTransition2 = function(e2) {
938
+ if (e2.target === el || /transform$/.test(e2.propertyName)) {
2141
939
  el.removeEventListener("transitionend", endTransition2);
2142
940
  el.classList.remove(...classes.moveClasses);
2143
941
  }
@@ -2158,86 +956,86 @@ var TransitionGroup = (props) => {
2158
956
  // ../../node_modules/.pnpm/@solid-primitives+keyed@1.2.0_solid-js@1.7.8/node_modules/@solid-primitives/keyed/dist/index.js
2159
957
  var FALLBACK = Symbol("fallback");
2160
958
  function dispose(list) {
2161
- for (const o of list)
2162
- o.dispose();
959
+ for (const o2 of list)
960
+ o2.dispose();
2163
961
  }
2164
962
  function keyArray(items, keyFn, mapFn, options = {}) {
2165
963
  if (isServer) {
2166
964
  const itemsRef = items();
2167
- let s = [];
965
+ let s2 = [];
2168
966
  if (itemsRef && itemsRef.length) {
2169
- for (let i = 0, len = itemsRef.length; i < len; i++)
2170
- s.push(
967
+ for (let i2 = 0, len = itemsRef.length; i2 < len; i2++)
968
+ s2.push(
2171
969
  mapFn(
2172
- () => itemsRef[i],
2173
- () => i
970
+ () => itemsRef[i2],
971
+ () => i2
2174
972
  )
2175
973
  );
2176
974
  } else if (options.fallback)
2177
- s = [options.fallback()];
2178
- return () => s;
975
+ s2 = [options.fallback()];
976
+ return () => s2;
2179
977
  }
2180
- const prev2 = /* @__PURE__ */ new Map();
2181
- onCleanup(() => dispose(prev2.values()));
978
+ const prev = /* @__PURE__ */ new Map();
979
+ onCleanup(() => dispose(prev.values()));
2182
980
  return () => {
2183
981
  const list = items() || [];
2184
982
  list[$TRACK];
2185
983
  return untrack(() => {
2186
984
  if (!list.length) {
2187
- dispose(prev2.values());
2188
- prev2.clear();
985
+ dispose(prev.values());
986
+ prev.clear();
2189
987
  if (!options.fallback)
2190
988
  return [];
2191
989
  const fb2 = createRoot((dispose2) => {
2192
- prev2.set(FALLBACK, { dispose: dispose2 });
990
+ prev.set(FALLBACK, { dispose: dispose2 });
2193
991
  return options.fallback();
2194
992
  });
2195
993
  return [fb2];
2196
994
  }
2197
995
  const result = new Array(list.length);
2198
- const fb = prev2.get(FALLBACK);
2199
- if (!prev2.size || fb) {
996
+ const fb = prev.get(FALLBACK);
997
+ if (!prev.size || fb) {
2200
998
  fb?.dispose();
2201
- prev2.delete(FALLBACK);
2202
- for (let i = 0; i < list.length; i++) {
2203
- const item = list[i];
2204
- const key = keyFn(item, i);
2205
- addNewItem(result, item, i, key);
999
+ prev.delete(FALLBACK);
1000
+ for (let i2 = 0; i2 < list.length; i2++) {
1001
+ const item = list[i2];
1002
+ const key = keyFn(item, i2);
1003
+ addNewItem(result, item, i2, key);
2206
1004
  }
2207
1005
  return result;
2208
1006
  }
2209
- const prevKeys = new Set(prev2.keys());
2210
- for (let i = 0; i < list.length; i++) {
2211
- const item = list[i];
2212
- const key = keyFn(item, i);
1007
+ const prevKeys = new Set(prev.keys());
1008
+ for (let i2 = 0; i2 < list.length; i2++) {
1009
+ const item = list[i2];
1010
+ const key = keyFn(item, i2);
2213
1011
  prevKeys.delete(key);
2214
- const lookup = prev2.get(key);
1012
+ const lookup = prev.get(key);
2215
1013
  if (lookup) {
2216
- result[i] = lookup.mapped;
2217
- lookup.setIndex?.(i);
1014
+ result[i2] = lookup.mapped;
1015
+ lookup.setIndex?.(i2);
2218
1016
  lookup.setItem(() => item);
2219
1017
  } else
2220
- addNewItem(result, item, i, key);
1018
+ addNewItem(result, item, i2, key);
2221
1019
  }
2222
1020
  for (const key of prevKeys) {
2223
- prev2.get(key)?.dispose();
2224
- prev2.delete(key);
1021
+ prev.get(key)?.dispose();
1022
+ prev.delete(key);
2225
1023
  }
2226
1024
  return result;
2227
1025
  });
2228
1026
  };
2229
- function addNewItem(list, item, i, key) {
1027
+ function addNewItem(list, item, i2, key) {
2230
1028
  createRoot((dispose2) => {
2231
1029
  const [getItem, setItem] = createSignal(item);
2232
1030
  const save = { setItem, dispose: dispose2 };
2233
1031
  if (mapFn.length > 1) {
2234
- const [index, setIndex] = createSignal(i);
1032
+ const [index, setIndex] = createSignal(i2);
2235
1033
  save.setIndex = setIndex;
2236
1034
  save.mapped = mapFn(getItem, index);
2237
1035
  } else
2238
1036
  save.mapped = mapFn(getItem);
2239
- prev2.set(key, save);
2240
- list[i] = save.mapped;
1037
+ prev.set(key, save);
1038
+ list[i2] = save.mapped;
2241
1039
  });
2242
1040
  }
2243
1041
  }
@@ -2263,27 +1061,27 @@ function createStorage(props) {
2263
1061
  setError(err instanceof Error ? err : new Error(fallback));
2264
1062
  };
2265
1063
  const apis = props?.api ? Array.isArray(props.api) ? props.api : [props.api] : [globalThis.localStorage].filter(Boolean);
2266
- const prefix2 = props?.prefix ? `${props.prefix}.` : "";
1064
+ const prefix = props?.prefix ? `${props.prefix}.` : "";
2267
1065
  const signals = /* @__PURE__ */ new Map();
2268
1066
  const store = new Proxy(
2269
1067
  {},
2270
1068
  {
2271
1069
  get(_, key) {
2272
- let node2 = signals.get(key);
2273
- if (!node2) {
2274
- node2 = createSignal(void 0, { equals: false });
2275
- signals.set(key, node2);
1070
+ let node = signals.get(key);
1071
+ if (!node) {
1072
+ node = createSignal(void 0, { equals: false });
1073
+ signals.set(key, node);
2276
1074
  }
2277
- node2[0]();
1075
+ node[0]();
2278
1076
  const value = apis.reduce(
2279
1077
  (result, api) => {
2280
1078
  if (result !== null || !api) {
2281
1079
  return result;
2282
1080
  }
2283
1081
  try {
2284
- return api.getItem(`${prefix2}${key}`);
1082
+ return api.getItem(`${prefix}${key}`);
2285
1083
  } catch (err) {
2286
- handleError(err, `Error reading ${prefix2}${key} from ${api["name"]}`);
1084
+ handleError(err, `Error reading ${prefix}${key} from ${api["name"]}`);
2287
1085
  return null;
2288
1086
  }
2289
1087
  },
@@ -2298,22 +1096,22 @@ function createStorage(props) {
2298
1096
  );
2299
1097
  const setter = (key, value, options) => {
2300
1098
  const filteredValue = props?.serializer ? props.serializer(value, key, options ?? props.options) : value;
2301
- const apiKey = `${prefix2}${key}`;
1099
+ const apiKey = `${prefix}${key}`;
2302
1100
  apis.forEach((api) => {
2303
1101
  try {
2304
1102
  api.getItem(apiKey) !== filteredValue && api.setItem(apiKey, filteredValue);
2305
1103
  } catch (err) {
2306
- handleError(err, `Error setting ${prefix2}${key} to ${filteredValue} in ${api.name}`);
1104
+ handleError(err, `Error setting ${prefix}${key} to ${filteredValue} in ${api.name}`);
2307
1105
  }
2308
1106
  });
2309
- const node2 = signals.get(key);
2310
- node2 && node2[1]();
1107
+ const node = signals.get(key);
1108
+ node && node[1]();
2311
1109
  };
2312
1110
  const remove = (key) => apis.forEach((api) => {
2313
1111
  try {
2314
- api.removeItem(`${prefix2}${key}`);
1112
+ api.removeItem(`${prefix}${key}`);
2315
1113
  } catch (err) {
2316
- handleError(err, `Error removing ${prefix2}${key} from ${api.name}`);
1114
+ handleError(err, `Error removing ${prefix}${key} from ${api.name}`);
2317
1115
  }
2318
1116
  });
2319
1117
  const clear = () => apis.forEach((api) => {
@@ -2460,15 +1258,15 @@ var cookieStorage = addClearMethod({
2460
1258
  return key;
2461
1259
  },
2462
1260
  get length() {
2463
- let length2 = 0;
1261
+ let length = 0;
2464
1262
  cookieStorage._cookies[0][cookieStorage._cookies[1]].replace(
2465
1263
  /(?:^|;)\s*.+?\s*=\s*[^;]+/g,
2466
1264
  (found) => {
2467
- length2 += found ? 1 : 0;
1265
+ length += found ? 1 : 0;
2468
1266
  return "";
2469
1267
  }
2470
1268
  );
2471
- return length2;
1269
+ return length;
2472
1270
  }
2473
1271
  });
2474
1272
 
@@ -2496,9 +1294,9 @@ function createResizeObserver(targets, onResize, options) {
2496
1294
  }
2497
1295
  }
2498
1296
  }, options);
2499
- createEffect((prev2) => {
1297
+ createEffect((prev) => {
2500
1298
  const refs = filterNonNullable(asArray(access(targets)));
2501
- handleDiffArray(refs, prev2, observe, unobserve);
1299
+ handleDiffArray(refs, prev, observe, unobserve);
2502
1300
  return refs;
2503
1301
  }, []);
2504
1302
  }
@@ -2843,14 +1641,14 @@ var Registry = (
2843
1641
  this.generateIdentifier = generateIdentifier;
2844
1642
  this.kv = new DoubleIndexedKV();
2845
1643
  }
2846
- Registry2.prototype.register = function(value, identifier2) {
1644
+ Registry2.prototype.register = function(value, identifier) {
2847
1645
  if (this.kv.getByValue(value)) {
2848
1646
  return;
2849
1647
  }
2850
- if (!identifier2) {
2851
- identifier2 = this.generateIdentifier(value);
1648
+ if (!identifier) {
1649
+ identifier = this.generateIdentifier(value);
2852
1650
  }
2853
- this.kv.set(identifier2, value);
1651
+ this.kv.set(identifier, value);
2854
1652
  };
2855
1653
  Registry2.prototype.clear = function() {
2856
1654
  this.kv.clear();
@@ -2858,8 +1656,8 @@ var Registry = (
2858
1656
  Registry2.prototype.getIdentifier = function(value) {
2859
1657
  return this.kv.getByValue(value);
2860
1658
  };
2861
- Registry2.prototype.getValue = function(identifier2) {
2862
- return this.kv.getByKey(identifier2);
1659
+ Registry2.prototype.getValue = function(identifier) {
1660
+ return this.kv.getByKey(identifier);
2863
1661
  };
2864
1662
  return Registry2;
2865
1663
  }()
@@ -2867,24 +1665,24 @@ var Registry = (
2867
1665
 
2868
1666
  // ../../node_modules/.pnpm/superjson@1.12.4/node_modules/superjson/dist/esm/class-registry.js
2869
1667
  var __extends = function() {
2870
- var extendStatics = function(d, b) {
2871
- extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d2, b2) {
2872
- d2.__proto__ = b2;
2873
- } || function(d2, b2) {
2874
- for (var p in b2)
2875
- if (Object.prototype.hasOwnProperty.call(b2, p))
2876
- d2[p] = b2[p];
1668
+ var extendStatics = function(d, b2) {
1669
+ extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d2, b3) {
1670
+ d2.__proto__ = b3;
1671
+ } || function(d2, b3) {
1672
+ for (var p2 in b3)
1673
+ if (Object.prototype.hasOwnProperty.call(b3, p2))
1674
+ d2[p2] = b3[p2];
2877
1675
  };
2878
- return extendStatics(d, b);
1676
+ return extendStatics(d, b2);
2879
1677
  };
2880
- return function(d, b) {
2881
- if (typeof b !== "function" && b !== null)
2882
- throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
2883
- extendStatics(d, b);
1678
+ return function(d, b2) {
1679
+ if (typeof b2 !== "function" && b2 !== null)
1680
+ throw new TypeError("Class extends value " + String(b2) + " is not a constructor or null");
1681
+ extendStatics(d, b2);
2884
1682
  function __() {
2885
1683
  this.constructor = d;
2886
1684
  }
2887
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
1685
+ d.prototype = b2 === null ? Object.create(b2) : (__.prototype = b2.prototype, new __());
2888
1686
  };
2889
1687
  }();
2890
1688
  var ClassRegistry = (
@@ -2892,8 +1690,8 @@ var ClassRegistry = (
2892
1690
  function(_super) {
2893
1691
  __extends(ClassRegistry2, _super);
2894
1692
  function ClassRegistry2() {
2895
- var _this = _super.call(this, function(c) {
2896
- return c.name;
1693
+ var _this = _super.call(this, function(c2) {
1694
+ return c2.name;
2897
1695
  }) || this;
2898
1696
  _this.classToAllowedProps = /* @__PURE__ */ new Map();
2899
1697
  return _this;
@@ -2916,23 +1714,23 @@ var ClassRegistry = (
2916
1714
  );
2917
1715
 
2918
1716
  // ../../node_modules/.pnpm/superjson@1.12.4/node_modules/superjson/dist/esm/util.js
2919
- var __read = function(o, n) {
2920
- var m = typeof Symbol === "function" && o[Symbol.iterator];
1717
+ var __read = function(o2, n2) {
1718
+ var m = typeof Symbol === "function" && o2[Symbol.iterator];
2921
1719
  if (!m)
2922
- return o;
2923
- var i = m.call(o), r, ar = [], e;
1720
+ return o2;
1721
+ var i2 = m.call(o2), r2, ar = [], e2;
2924
1722
  try {
2925
- while ((n === void 0 || n-- > 0) && !(r = i.next()).done)
2926
- ar.push(r.value);
1723
+ while ((n2 === void 0 || n2-- > 0) && !(r2 = i2.next()).done)
1724
+ ar.push(r2.value);
2927
1725
  } catch (error) {
2928
- e = { error };
1726
+ e2 = { error };
2929
1727
  } finally {
2930
1728
  try {
2931
- if (r && !r.done && (m = i["return"]))
2932
- m.call(i);
1729
+ if (r2 && !r2.done && (m = i2["return"]))
1730
+ m.call(i2);
2933
1731
  } finally {
2934
- if (e)
2935
- throw e.error;
1732
+ if (e2)
1733
+ throw e2.error;
2936
1734
  }
2937
1735
  }
2938
1736
  return ar;
@@ -2955,8 +1753,8 @@ function find(record, predicate) {
2955
1753
  return values.find(predicate);
2956
1754
  }
2957
1755
  var valuesNotNever = values;
2958
- for (var i = 0; i < valuesNotNever.length; i++) {
2959
- var value = valuesNotNever[i];
1756
+ for (var i2 = 0; i2 < valuesNotNever.length; i2++) {
1757
+ var value = valuesNotNever[i2];
2960
1758
  if (predicate(value)) {
2961
1759
  return value;
2962
1760
  }
@@ -2973,8 +1771,8 @@ function includes(arr, value) {
2973
1771
  return arr.indexOf(value) !== -1;
2974
1772
  }
2975
1773
  function findArr(record, predicate) {
2976
- for (var i = 0; i < record.length; i++) {
2977
- var value = record[i];
1774
+ for (var i2 = 0; i2 < record.length; i2++) {
1775
+ var value = record[i2];
2978
1776
  if (predicate(value)) {
2979
1777
  return value;
2980
1778
  }
@@ -3085,21 +1883,21 @@ var stringifyPath = function(path) {
3085
1883
  var parsePath = function(string) {
3086
1884
  var result = [];
3087
1885
  var segment = "";
3088
- for (var i = 0; i < string.length; i++) {
3089
- var char2 = string.charAt(i);
3090
- var isEscapedDot = char2 === "\\" && string.charAt(i + 1) === ".";
1886
+ for (var i2 = 0; i2 < string.length; i2++) {
1887
+ var char = string.charAt(i2);
1888
+ var isEscapedDot = char === "\\" && string.charAt(i2 + 1) === ".";
3091
1889
  if (isEscapedDot) {
3092
1890
  segment += ".";
3093
- i++;
1891
+ i2++;
3094
1892
  continue;
3095
1893
  }
3096
- var isEndOfSegment = char2 === ".";
1894
+ var isEndOfSegment = char === ".";
3097
1895
  if (isEndOfSegment) {
3098
1896
  result.push(segment);
3099
1897
  segment = "";
3100
1898
  continue;
3101
1899
  }
3102
- segment += char2;
1900
+ segment += char;
3103
1901
  }
3104
1902
  var lastSegment = segment;
3105
1903
  result.push(lastSegment);
@@ -3108,41 +1906,41 @@ var parsePath = function(string) {
3108
1906
 
3109
1907
  // ../../node_modules/.pnpm/superjson@1.12.4/node_modules/superjson/dist/esm/transformer.js
3110
1908
  var __assign = function() {
3111
- __assign = Object.assign || function(t) {
3112
- for (var s, i = 1, n = arguments.length; i < n; i++) {
3113
- s = arguments[i];
3114
- for (var p in s)
3115
- if (Object.prototype.hasOwnProperty.call(s, p))
3116
- t[p] = s[p];
1909
+ __assign = Object.assign || function(t2) {
1910
+ for (var s2, i2 = 1, n2 = arguments.length; i2 < n2; i2++) {
1911
+ s2 = arguments[i2];
1912
+ for (var p2 in s2)
1913
+ if (Object.prototype.hasOwnProperty.call(s2, p2))
1914
+ t2[p2] = s2[p2];
3117
1915
  }
3118
- return t;
1916
+ return t2;
3119
1917
  };
3120
1918
  return __assign.apply(this, arguments);
3121
1919
  };
3122
- var __read2 = function(o, n) {
3123
- var m = typeof Symbol === "function" && o[Symbol.iterator];
1920
+ var __read2 = function(o2, n2) {
1921
+ var m = typeof Symbol === "function" && o2[Symbol.iterator];
3124
1922
  if (!m)
3125
- return o;
3126
- var i = m.call(o), r, ar = [], e;
1923
+ return o2;
1924
+ var i2 = m.call(o2), r2, ar = [], e2;
3127
1925
  try {
3128
- while ((n === void 0 || n-- > 0) && !(r = i.next()).done)
3129
- ar.push(r.value);
1926
+ while ((n2 === void 0 || n2-- > 0) && !(r2 = i2.next()).done)
1927
+ ar.push(r2.value);
3130
1928
  } catch (error) {
3131
- e = { error };
1929
+ e2 = { error };
3132
1930
  } finally {
3133
1931
  try {
3134
- if (r && !r.done && (m = i["return"]))
3135
- m.call(i);
1932
+ if (r2 && !r2.done && (m = i2["return"]))
1933
+ m.call(i2);
3136
1934
  } finally {
3137
- if (e)
3138
- throw e.error;
1935
+ if (e2)
1936
+ throw e2.error;
3139
1937
  }
3140
1938
  }
3141
1939
  return ar;
3142
1940
  };
3143
- var __spreadArray = function(to, from2) {
3144
- for (var i = 0, il = from2.length, j = to.length; i < il; i++, j++)
3145
- to[j] = from2[i];
1941
+ var __spreadArray = function(to, from) {
1942
+ for (var i2 = 0, il = from.length, j = to.length; i2 < il; i2++, j++)
1943
+ to[j] = from[i2];
3146
1944
  return to;
3147
1945
  };
3148
1946
  function simpleTransformation(isApplicable, annotation, transform, untransform) {
@@ -3182,13 +1980,13 @@ var simpleRules = [
3182
1980
  });
3183
1981
  return baseError;
3184
1982
  }, function(v, superJson) {
3185
- var e = new Error(v.message);
3186
- e.name = v.name;
3187
- e.stack = v.stack;
1983
+ var e2 = new Error(v.message);
1984
+ e2.name = v.name;
1985
+ e2.stack = v.stack;
3188
1986
  superJson.allowedErrorProps.forEach(function(prop) {
3189
- e[prop] = v[prop];
1987
+ e2[prop] = v[prop];
3190
1988
  });
3191
- return e;
1989
+ return e2;
3192
1990
  }),
3193
1991
  simpleTransformation(isRegExp, "regexp", function(v) {
3194
1992
  return "" + v;
@@ -3245,19 +2043,19 @@ function compositeTransformation(isApplicable, annotation, transform, untransfor
3245
2043
  untransform
3246
2044
  };
3247
2045
  }
3248
- var symbolRule = compositeTransformation(function(s, superJson) {
3249
- if (isSymbol(s)) {
3250
- var isRegistered = !!superJson.symbolRegistry.getIdentifier(s);
2046
+ var symbolRule = compositeTransformation(function(s2, superJson) {
2047
+ if (isSymbol(s2)) {
2048
+ var isRegistered = !!superJson.symbolRegistry.getIdentifier(s2);
3251
2049
  return isRegistered;
3252
2050
  }
3253
2051
  return false;
3254
- }, function(s, superJson) {
3255
- var identifier2 = superJson.symbolRegistry.getIdentifier(s);
3256
- return ["symbol", identifier2];
2052
+ }, function(s2, superJson) {
2053
+ var identifier = superJson.symbolRegistry.getIdentifier(s2);
2054
+ return ["symbol", identifier];
3257
2055
  }, function(v) {
3258
2056
  return v.description;
3259
- }, function(_, a, superJson) {
3260
- var value = superJson.symbolRegistry.getValue(a[1]);
2057
+ }, function(_, a2, superJson) {
2058
+ var value = superJson.symbolRegistry.getValue(a2[1]);
3261
2059
  if (!value) {
3262
2060
  throw new Error("Trying to deserialize unknown symbol");
3263
2061
  }
@@ -3281,8 +2079,8 @@ var typedArrayRule = compositeTransformation(isTypedArray, function(v) {
3281
2079
  return ["typed-array", v.constructor.name];
3282
2080
  }, function(v) {
3283
2081
  return __spreadArray([], __read2(v));
3284
- }, function(v, a) {
3285
- var ctor = constructorToName[a[1]];
2082
+ }, function(v, a2) {
2083
+ var ctor = constructorToName[a2[1]];
3286
2084
  if (!ctor) {
3287
2085
  throw new Error("Trying to deserialize unknown typed array");
3288
2086
  }
@@ -3296,8 +2094,8 @@ function isInstanceOfRegisteredClass(potentialClass, superJson) {
3296
2094
  return false;
3297
2095
  }
3298
2096
  var classRule = compositeTransformation(isInstanceOfRegisteredClass, function(clazz, superJson) {
3299
- var identifier2 = superJson.classRegistry.getIdentifier(clazz.constructor);
3300
- return ["class", identifier2];
2097
+ var identifier = superJson.classRegistry.getIdentifier(clazz.constructor);
2098
+ return ["class", identifier];
3301
2099
  }, function(clazz, superJson) {
3302
2100
  var allowedProps = superJson.classRegistry.getAllowedProps(clazz.constructor);
3303
2101
  if (!allowedProps) {
@@ -3308,8 +2106,8 @@ var classRule = compositeTransformation(isInstanceOfRegisteredClass, function(cl
3308
2106
  result[prop] = clazz[prop];
3309
2107
  });
3310
2108
  return result;
3311
- }, function(v, a, superJson) {
3312
- var clazz = superJson.classRegistry.getValue(a[1]);
2109
+ }, function(v, a2, superJson) {
2110
+ var clazz = superJson.classRegistry.getValue(a2[1]);
3313
2111
  if (!clazz) {
3314
2112
  throw new Error("Trying to deserialize unknown class - check https://github.com/blitz-js/superjson/issues/116#issuecomment-773996564");
3315
2113
  }
@@ -3323,8 +2121,8 @@ var customRule = compositeTransformation(function(value, superJson) {
3323
2121
  }, function(value, superJson) {
3324
2122
  var transformer = superJson.customTransformerRegistry.findApplicable(value);
3325
2123
  return transformer.serialize(value);
3326
- }, function(v, a, superJson) {
3327
- var transformer = superJson.customTransformerRegistry.findByName(a[1]);
2124
+ }, function(v, a2, superJson) {
2125
+ var transformer = superJson.customTransformerRegistry.findByName(a2[1]);
3328
2126
  if (!transformer) {
3329
2127
  throw new Error("Trying to deserialize unknown custom value");
3330
2128
  }
@@ -3380,11 +2178,11 @@ var untransformValue = function(json, type, superJson) {
3380
2178
  };
3381
2179
 
3382
2180
  // ../../node_modules/.pnpm/superjson@1.12.4/node_modules/superjson/dist/esm/accessDeep.js
3383
- var getNthKey = function(value, n) {
2181
+ var getNthKey = function(value, n2) {
3384
2182
  var keys2 = value.keys();
3385
- while (n > 0) {
2183
+ while (n2 > 0) {
3386
2184
  keys2.next();
3387
- n--;
2185
+ n2--;
3388
2186
  }
3389
2187
  return keys2.next().value;
3390
2188
  };
@@ -3401,13 +2199,13 @@ function validatePath(path) {
3401
2199
  }
3402
2200
  var getDeep = function(object, path) {
3403
2201
  validatePath(path);
3404
- for (var i = 0; i < path.length; i++) {
3405
- var key = path[i];
2202
+ for (var i2 = 0; i2 < path.length; i2++) {
2203
+ var key = path[i2];
3406
2204
  if (isSet(object)) {
3407
2205
  object = getNthKey(object, +key);
3408
2206
  } else if (isMap(object)) {
3409
2207
  var row = +key;
3410
- var type = +path[++i] === 0 ? "key" : "value";
2208
+ var type = +path[++i2] === 0 ? "key" : "value";
3411
2209
  var keyOfRow = getNthKey(object, row);
3412
2210
  switch (type) {
3413
2211
  case "key":
@@ -3429,8 +2227,8 @@ var setDeep = function(object, path, mapper) {
3429
2227
  return mapper(object);
3430
2228
  }
3431
2229
  var parent = object;
3432
- for (var i = 0; i < path.length - 1; i++) {
3433
- var key = path[i];
2230
+ for (var i2 = 0; i2 < path.length - 1; i2++) {
2231
+ var key = path[i2];
3434
2232
  if (isArray(parent)) {
3435
2233
  var index = +key;
3436
2234
  parent = parent[index];
@@ -3440,12 +2238,12 @@ var setDeep = function(object, path, mapper) {
3440
2238
  var row = +key;
3441
2239
  parent = getNthKey(parent, row);
3442
2240
  } else if (isMap(parent)) {
3443
- var isEnd = i === path.length - 2;
2241
+ var isEnd = i2 === path.length - 2;
3444
2242
  if (isEnd) {
3445
2243
  break;
3446
2244
  }
3447
2245
  var row = +key;
3448
- var type = +path[++i] === 0 ? "key" : "value";
2246
+ var type = +path[++i2] === 0 ? "key" : "value";
3449
2247
  var keyOfRow = getNthKey(parent, row);
3450
2248
  switch (type) {
3451
2249
  case "key":
@@ -3494,30 +2292,30 @@ var setDeep = function(object, path, mapper) {
3494
2292
  };
3495
2293
 
3496
2294
  // ../../node_modules/.pnpm/superjson@1.12.4/node_modules/superjson/dist/esm/plainer.js
3497
- var __read3 = function(o, n) {
3498
- var m = typeof Symbol === "function" && o[Symbol.iterator];
2295
+ var __read3 = function(o2, n2) {
2296
+ var m = typeof Symbol === "function" && o2[Symbol.iterator];
3499
2297
  if (!m)
3500
- return o;
3501
- var i = m.call(o), r, ar = [], e;
2298
+ return o2;
2299
+ var i2 = m.call(o2), r2, ar = [], e2;
3502
2300
  try {
3503
- while ((n === void 0 || n-- > 0) && !(r = i.next()).done)
3504
- ar.push(r.value);
2301
+ while ((n2 === void 0 || n2-- > 0) && !(r2 = i2.next()).done)
2302
+ ar.push(r2.value);
3505
2303
  } catch (error) {
3506
- e = { error };
2304
+ e2 = { error };
3507
2305
  } finally {
3508
2306
  try {
3509
- if (r && !r.done && (m = i["return"]))
3510
- m.call(i);
2307
+ if (r2 && !r2.done && (m = i2["return"]))
2308
+ m.call(i2);
3511
2309
  } finally {
3512
- if (e)
3513
- throw e.error;
2310
+ if (e2)
2311
+ throw e2.error;
3514
2312
  }
3515
2313
  }
3516
2314
  return ar;
3517
2315
  };
3518
- var __spreadArray2 = function(to, from2) {
3519
- for (var i = 0, il = from2.length, j = to.length; i < il; i++, j++)
3520
- to[j] = from2[i];
2316
+ var __spreadArray2 = function(to, from) {
2317
+ for (var i2 = 0, il = from.length, j = to.length; i2 < il; i2++, j++)
2318
+ to[j] = from[i2];
3521
2319
  return to;
3522
2320
  };
3523
2321
  function traverse(tree, walker2, origin) {
@@ -3593,8 +2391,8 @@ function generateReferentialEqualityAnnotations(identitites) {
3593
2391
  }
3594
2392
  var _a = __read3(paths.map(function(path) {
3595
2393
  return path.map(String);
3596
- }).sort(function(a, b) {
3597
- return a.length - b.length;
2394
+ }).sort(function(a2, b2) {
2395
+ return a2.length - b2.length;
3598
2396
  })), shortestPath = _a[0], identicalPaths = _a.slice(1);
3599
2397
  if (shortestPath.length === 0) {
3600
2398
  rootEqualityPaths = identicalPaths.map(stringifyPath);
@@ -3692,8 +2490,8 @@ function isArray2(payload) {
3692
2490
  return getType2(payload) === "Array";
3693
2491
  }
3694
2492
  var isNullOrUndefined = isOneOf(isNull2, isUndefined2);
3695
- function isOneOf(a, b, c, d, e) {
3696
- return (value) => a(value) || b(value) || !!c && c(value) || !!d && d(value) || !!e && e(value);
2493
+ function isOneOf(a2, b2, c2, d, e2) {
2494
+ return (value) => a2(value) || b2(value) || !!c2 && c2(value) || !!d && d(value) || !!e2 && e2(value);
3697
2495
  }
3698
2496
 
3699
2497
  // ../../node_modules/.pnpm/copy-anything@3.0.2/node_modules/copy-anything/dist/index.es.js
@@ -3710,9 +2508,9 @@ function assignProp(carry, key, newVal, originalObject, includeNonenumerable) {
3710
2508
  });
3711
2509
  }
3712
2510
  }
3713
- function copy2(target, options = {}) {
2511
+ function copy(target, options = {}) {
3714
2512
  if (isArray2(target)) {
3715
- return target.map((item) => copy2(item, options));
2513
+ return target.map((item) => copy(item, options));
3716
2514
  }
3717
2515
  if (!isPlainObject2(target)) {
3718
2516
  return target;
@@ -3724,7 +2522,7 @@ function copy2(target, options = {}) {
3724
2522
  return carry;
3725
2523
  }
3726
2524
  const val = target[key];
3727
- const newVal = copy2(val, options);
2525
+ const newVal = copy(val, options);
3728
2526
  assignProp(carry, key, newVal, target, options.nonenumerable);
3729
2527
  return carry;
3730
2528
  }, {});
@@ -3732,41 +2530,41 @@ function copy2(target, options = {}) {
3732
2530
 
3733
2531
  // ../../node_modules/.pnpm/superjson@1.12.4/node_modules/superjson/dist/esm/index.js
3734
2532
  var __assign2 = function() {
3735
- __assign2 = Object.assign || function(t) {
3736
- for (var s, i = 1, n = arguments.length; i < n; i++) {
3737
- s = arguments[i];
3738
- for (var p in s)
3739
- if (Object.prototype.hasOwnProperty.call(s, p))
3740
- t[p] = s[p];
2533
+ __assign2 = Object.assign || function(t2) {
2534
+ for (var s2, i2 = 1, n2 = arguments.length; i2 < n2; i2++) {
2535
+ s2 = arguments[i2];
2536
+ for (var p2 in s2)
2537
+ if (Object.prototype.hasOwnProperty.call(s2, p2))
2538
+ t2[p2] = s2[p2];
3741
2539
  }
3742
- return t;
2540
+ return t2;
3743
2541
  };
3744
2542
  return __assign2.apply(this, arguments);
3745
2543
  };
3746
- var __read4 = function(o, n) {
3747
- var m = typeof Symbol === "function" && o[Symbol.iterator];
2544
+ var __read4 = function(o2, n2) {
2545
+ var m = typeof Symbol === "function" && o2[Symbol.iterator];
3748
2546
  if (!m)
3749
- return o;
3750
- var i = m.call(o), r, ar = [], e;
2547
+ return o2;
2548
+ var i2 = m.call(o2), r2, ar = [], e2;
3751
2549
  try {
3752
- while ((n === void 0 || n-- > 0) && !(r = i.next()).done)
3753
- ar.push(r.value);
2550
+ while ((n2 === void 0 || n2-- > 0) && !(r2 = i2.next()).done)
2551
+ ar.push(r2.value);
3754
2552
  } catch (error) {
3755
- e = { error };
2553
+ e2 = { error };
3756
2554
  } finally {
3757
2555
  try {
3758
- if (r && !r.done && (m = i["return"]))
3759
- m.call(i);
2556
+ if (r2 && !r2.done && (m = i2["return"]))
2557
+ m.call(i2);
3760
2558
  } finally {
3761
- if (e)
3762
- throw e.error;
2559
+ if (e2)
2560
+ throw e2.error;
3763
2561
  }
3764
2562
  }
3765
2563
  return ar;
3766
2564
  };
3767
- var __spreadArray3 = function(to, from2) {
3768
- for (var i = 0, il = from2.length, j = to.length; i < il; i++, j++)
3769
- to[j] = from2[i];
2565
+ var __spreadArray3 = function(to, from) {
2566
+ for (var i2 = 0, il = from.length, j = to.length; i2 < il; i2++, j++)
2567
+ to[j] = from[i2];
3770
2568
  return to;
3771
2569
  };
3772
2570
  var SuperJSON = (
@@ -3774,9 +2572,9 @@ var SuperJSON = (
3774
2572
  function() {
3775
2573
  function SuperJSON2() {
3776
2574
  this.classRegistry = new ClassRegistry();
3777
- this.symbolRegistry = new Registry(function(s) {
2575
+ this.symbolRegistry = new Registry(function(s2) {
3778
2576
  var _a;
3779
- return (_a = s.description) !== null && _a !== void 0 ? _a : "";
2577
+ return (_a = s2.description) !== null && _a !== void 0 ? _a : "";
3780
2578
  });
3781
2579
  this.customTransformerRegistry = new CustomTransformerRegistry();
3782
2580
  this.allowedErrorProps = [];
@@ -3798,7 +2596,7 @@ var SuperJSON = (
3798
2596
  };
3799
2597
  SuperJSON2.prototype.deserialize = function(payload) {
3800
2598
  var json = payload.json, meta = payload.meta;
3801
- var result = copy2(json);
2599
+ var result = copy(json);
3802
2600
  if (meta === null || meta === void 0 ? void 0 : meta.values) {
3803
2601
  result = applyValueAnnotations(result, meta.values, this);
3804
2602
  }
@@ -3816,8 +2614,8 @@ var SuperJSON = (
3816
2614
  SuperJSON2.prototype.registerClass = function(v, options) {
3817
2615
  this.classRegistry.register(v, options);
3818
2616
  };
3819
- SuperJSON2.prototype.registerSymbol = function(v, identifier2) {
3820
- this.symbolRegistry.register(v, identifier2);
2617
+ SuperJSON2.prototype.registerSymbol = function(v, identifier) {
2618
+ this.symbolRegistry.register(v, identifier);
3821
2619
  };
3822
2620
  SuperJSON2.prototype.registerCustom = function(transformer, name) {
3823
2621
  this.customTransformerRegistry.register(__assign2({ name }, transformer));
@@ -3842,10 +2640,10 @@ var SuperJSON = (
3842
2640
  return SuperJSON2;
3843
2641
  }()
3844
2642
  );
3845
- var serialize2 = SuperJSON.serialize;
2643
+ var serialize = SuperJSON.serialize;
3846
2644
  var deserialize = SuperJSON.deserialize;
3847
- var stringify2 = SuperJSON.stringify;
3848
- var parse2 = SuperJSON.parse;
2645
+ var stringify = SuperJSON.stringify;
2646
+ var parse = SuperJSON.parse;
3849
2647
  var registerClass = SuperJSON.registerClass;
3850
2648
  var registerCustom = SuperJSON.registerCustom;
3851
2649
  var registerSymbol = SuperJSON.registerSymbol;
@@ -3869,17 +2667,17 @@ function getQueryStatusColorByLabel(label) {
3869
2667
  return label === "fresh" ? "green" : label === "stale" ? "yellow" : label === "paused" ? "purple" : label === "inactive" ? "gray" : "blue";
3870
2668
  }
3871
2669
  var displayValue = (value, beautify = false) => {
3872
- const { json } = serialize2(value);
2670
+ const { json } = serialize(value);
3873
2671
  return JSON.stringify(json, null, beautify ? 2 : void 0);
3874
2672
  };
3875
2673
  var getStatusRank = (q) => q.state.fetchStatus !== "idle" ? 0 : !q.getObserversCount() ? 3 : q.isStale() ? 2 : 1;
3876
- var queryHashSort = (a, b) => a.queryHash.localeCompare(b.queryHash);
3877
- var dateSort = (a, b) => a.state.dataUpdatedAt < b.state.dataUpdatedAt ? 1 : -1;
3878
- var statusAndDateSort = (a, b) => {
3879
- if (getStatusRank(a) === getStatusRank(b)) {
3880
- return dateSort(a, b);
2674
+ var queryHashSort = (a2, b2) => a2.queryHash.localeCompare(b2.queryHash);
2675
+ var dateSort = (a2, b2) => a2.state.dataUpdatedAt < b2.state.dataUpdatedAt ? 1 : -1;
2676
+ var statusAndDateSort = (a2, b2) => {
2677
+ if (getStatusRank(a2) === getStatusRank(b2)) {
2678
+ return dateSort(a2, b2);
3881
2679
  }
3882
- return getStatusRank(a) > getStatusRank(b) ? 1 : -1;
2680
+ return getStatusRank(a2) > getStatusRank(b2) ? 1 : -1;
3883
2681
  };
3884
2682
  var sortFns = {
3885
2683
  status: statusAndDateSort,
@@ -4772,20 +3570,20 @@ function TanstackLogo() {
4772
3570
  function chunkArray(array, size) {
4773
3571
  if (size < 1)
4774
3572
  return [];
4775
- let i = 0;
3573
+ let i2 = 0;
4776
3574
  const result = [];
4777
- while (i < array.length) {
4778
- result.push(array.slice(i, i + size));
4779
- i = i + size;
3575
+ while (i2 < array.length) {
3576
+ result.push(array.slice(i2, i2 + size));
3577
+ i2 = i2 + size;
4780
3578
  }
4781
3579
  return result;
4782
3580
  }
4783
3581
  var Expander = (props) => {
4784
3582
  const styles = getStyles();
4785
3583
  return <span
4786
- class={cx(
3584
+ class={clsx(
4787
3585
  styles.expander,
4788
- css`
3586
+ u`
4789
3587
  transform: rotate(${props.expanded ? 90 : 0}deg);
4790
3588
  `
4791
3589
  )}
@@ -4809,7 +3607,7 @@ var CopyButton = (props) => {
4809
3607
  class={styles.copyButton}
4810
3608
  aria-label={`${copyState() === "NoCopy" ? "Copy object to clipboard" : copyState() === "SuccessCopy" ? "Object copied to clipboard" : "Error copying object to clipboard"}`}
4811
3609
  onClick={copyState() === "NoCopy" ? () => {
4812
- navigator.clipboard.writeText(stringify2(props.value)).then(
3610
+ navigator.clipboard.writeText(stringify(props.value)).then(
4813
3611
  () => {
4814
3612
  setCopyState("SuccessCopy");
4815
3613
  setTimeout(() => {
@@ -4842,8 +3640,8 @@ function Explorer(props) {
4842
3640
  const [expandedPages, setExpandedPages] = createSignal([]);
4843
3641
  const subEntries = createMemo(() => {
4844
3642
  if (Array.isArray(props.value)) {
4845
- return props.value.map((d, i) => ({
4846
- label: i.toString(),
3643
+ return props.value.map((d, i2) => ({
3644
+ label: i2.toString(),
4847
3645
  value: d
4848
3646
  }));
4849
3647
  } else if (props.value !== null && typeof props.value === "object" && isIterable(props.value) && typeof props.value[Symbol.iterator] === "function") {
@@ -4853,8 +3651,8 @@ function Explorer(props) {
4853
3651
  value: val
4854
3652
  }));
4855
3653
  }
4856
- return Array.from(props.value, (val, i) => ({
4857
- label: i.toString(),
3654
+ return Array.from(props.value, (val, i2) => ({
3655
+ label: i2.toString(),
4858
3656
  value: val
4859
3657
  }));
4860
3658
  } else if (typeof props.value === "object" && props.value !== null) {
@@ -4937,7 +3735,7 @@ function Explorer(props) {
4937
3735
  var getStyles = () => {
4938
3736
  const { colors, font, size, border } = tokens;
4939
3737
  return {
4940
- entry: css`
3738
+ entry: u`
4941
3739
  & * {
4942
3740
  font-size: ${font.size.sm};
4943
3741
  font-family: 'Menlo', 'Fira Code', monospace;
@@ -4947,12 +3745,12 @@ var getStyles = () => {
4947
3745
  outline: none;
4948
3746
  word-break: break-word;
4949
3747
  `,
4950
- subEntry: css`
3748
+ subEntry: u`
4951
3749
  margin: 0 0 0 0.5em;
4952
3750
  padding-left: 0.75em;
4953
3751
  border-left: 2px solid ${colors.darkGray[400]};
4954
3752
  `,
4955
- expander: css`
3753
+ expander: u`
4956
3754
  & path {
4957
3755
  stroke: ${colors.gray[400]};
4958
3756
  }
@@ -4960,7 +3758,7 @@ var getStyles = () => {
4960
3758
  align-items: center;
4961
3759
  transition: all 0.1s ease;
4962
3760
  `,
4963
- expanderButton: css`
3761
+ expanderButton: u`
4964
3762
  cursor: pointer;
4965
3763
  color: inherit;
4966
3764
  font: inherit;
@@ -4978,19 +3776,19 @@ var getStyles = () => {
4978
3776
  outline: 2px solid ${colors.blue[800]};
4979
3777
  }
4980
3778
  `,
4981
- info: css`
3779
+ info: u`
4982
3780
  color: ${colors.gray[500]};
4983
3781
  font-size: ${font.size.xs};
4984
3782
  line-height: ${font.size.xs};
4985
3783
  margin-left: ${size[1]};
4986
3784
  `,
4987
- label: css`
3785
+ label: u`
4988
3786
  color: ${colors.gray[300]};
4989
3787
  `,
4990
- value: css`
3788
+ value: u`
4991
3789
  color: ${colors.purple[400]};
4992
3790
  `,
4993
- copyButton: css`
3791
+ copyButton: u`
4994
3792
  background-color: transparent;
4995
3793
  border: none;
4996
3794
  display: inline-flex;
@@ -5068,46 +3866,55 @@ var Devtools = () => {
5068
3866
  const isOpen = createMemo(() => {
5069
3867
  return localStore.open === "true" ? true : localStore.open === "false" ? false : useQueryDevtoolsContext().initialIsOpen || INITIAL_IS_OPEN;
5070
3868
  });
5071
- const position2 = createMemo(() => {
3869
+ const position = createMemo(() => {
5072
3870
  return localStore.position || useQueryDevtoolsContext().position || POSITION;
5073
3871
  });
3872
+ createEffect(() => {
3873
+ const root = document.querySelector(".tsqd-parent-container");
3874
+ const height = localStore.height || DEFAULT_HEIGHT;
3875
+ const width = localStore.width || DEFAULT_WIDTH;
3876
+ const panelPosition = position();
3877
+ root.style.setProperty(
3878
+ "--tsqd-panel-height",
3879
+ `${panelPosition === "top" ? "-" : ""}${height}px`
3880
+ );
3881
+ root.style.setProperty(
3882
+ "--tsqd-panel-width",
3883
+ `${panelPosition === "left" ? "-" : ""}${width}px`
3884
+ );
3885
+ });
5074
3886
  return <div
5075
- class={css`
5076
- & .TSQD-panel-exit-active,
5077
- & .TSQD-panel-enter-active {
5078
- transition: opacity 0.3s, transform 0.3s;
5079
- }
3887
+ class={clsx(
3888
+ u`
3889
+ & .tsqd-panel-transition-exit-active,
3890
+ & .tsqd-panel-transition-enter-active {
3891
+ transition: opacity 0.3s, transform 0.3s;
3892
+ }
5080
3893
 
5081
- & .TSQD-panel-exit-to,
5082
- & .TSQD-panel-enter {
5083
- ${position2() === "top" ? `transform: translateY(-${Number(
5084
- localStore.height || DEFAULT_HEIGHT
5085
- )}px);` : position2() === "left" ? `transform: translateX(-${Number(
5086
- localStore.width || DEFAULT_WIDTH
5087
- )}px);` : position2() === "right" ? `transform: translateX(${Number(
5088
- localStore.width || DEFAULT_WIDTH
5089
- )}px);` : `transform: translateY(${Number(
5090
- localStore.height || DEFAULT_HEIGHT
5091
- )}px);`}
5092
- }
3894
+ & .tsqd-panel-transition-exit-to,
3895
+ & .tsqd-panel-transition-enter {
3896
+ ${position() === "top" || position() === "bottom" ? `transform: translateY(var(--tsqd-panel-height));` : `transform: translateX(var(--tsqd-panel-width));`}
3897
+ }
5093
3898
 
5094
- & .TSQD-button-exit-active,
5095
- & .TSQD-button-enter-active {
5096
- transition: opacity 0.3s, transform 0.3s;
5097
- }
3899
+ & .tsqd-button-transition-exit-active,
3900
+ & .tsqd-button-transition-enter-active {
3901
+ transition: opacity 0.3s, transform 0.3s;
3902
+ }
5098
3903
 
5099
- & .TSQD-button-exit-to,
5100
- & .TSQD-button-enter {
5101
- transform: ${buttonPosition() === "top-left" ? `translateX(-72px);` : buttonPosition() === "top-right" ? `translateX(72px);` : `translateY(72px);`};
5102
- }
5103
- `}
3904
+ & .tsqd-button-transition-exit-to,
3905
+ & .tsqd-button-transition-enter {
3906
+ transform: ${buttonPosition() === "top-left" ? `translateX(-72px);` : buttonPosition() === "top-right" ? `translateX(72px);` : `translateY(72px);`};
3907
+ }
3908
+ `,
3909
+ "tsqd-transitions-container"
3910
+ )}
5104
3911
  >
5105
- <TransitionGroup name="TSQD-panel"><Show when={isOpen()}><DevtoolsPanel
3912
+ <TransitionGroup name="tsqd-panel-transition"><Show when={isOpen()}><DevtoolsPanel
5106
3913
  localStore={localStore}
5107
3914
  setLocalStore={setLocalStore}
5108
3915
  /></Show></TransitionGroup>
5109
- <TransitionGroup name="TSQD-button"><Show when={!isOpen()}><div
5110
- class={cx(
3916
+ <TransitionGroup name="tsqd-button-transition"><Show when={!isOpen()}><div
3917
+ class={clsx(
5111
3918
  styles.devtoolsBtn,
5112
3919
  styles[`devtoolsBtn-position-${buttonPosition()}`]
5113
3920
  )}
@@ -5129,14 +3936,14 @@ var DevtoolsPanel = (props) => {
5129
3936
  );
5130
3937
  const [offline, setOffline] = createSignal(false);
5131
3938
  const [settingsOpen, setSettingsOpen] = createSignal(false);
5132
- const position2 = createMemo(
3939
+ const position = createMemo(
5133
3940
  () => props.localStore.position || useQueryDevtoolsContext().position || POSITION
5134
3941
  );
5135
3942
  const sortFn = createMemo(() => sortFns[sort()]);
5136
3943
  const onlineManager = createMemo(
5137
3944
  () => useQueryDevtoolsContext().onlineManager
5138
3945
  );
5139
- const cache2 = createMemo(() => {
3946
+ const cache = createMemo(() => {
5140
3947
  return useQueryDevtoolsContext().client.getQueryCache();
5141
3948
  });
5142
3949
  const queryCount = createSubscribeToQueryCacheBatcher((queryCache) => {
@@ -5146,11 +3953,11 @@ var DevtoolsPanel = (props) => {
5146
3953
  on(
5147
3954
  () => [queryCount(), props.localStore.filter, sort(), sortOrder()],
5148
3955
  () => {
5149
- const curr = cache2().getAll();
3956
+ const curr = cache().getAll();
5150
3957
  const filtered = props.localStore.filter ? curr.filter(
5151
3958
  (item) => rankItem(item.queryHash, props.localStore.filter || "").passed
5152
3959
  ) : [...curr];
5153
- const sorted = sortFn() ? filtered.sort((a, b) => sortFn()(a, b) * sortOrder()) : filtered;
3960
+ const sorted = sortFn() ? filtered.sort((a2, b2) => sortFn()(a2, b2) * sortOrder()) : filtered;
5154
3961
  return sorted;
5155
3962
  }
5156
3963
  )
@@ -5168,8 +3975,8 @@ var DevtoolsPanel = (props) => {
5168
3975
  const minWidth = convertRemToPixels(12);
5169
3976
  const runDrag = (moveEvent) => {
5170
3977
  moveEvent.preventDefault();
5171
- if (position2() === "left" || position2() === "right") {
5172
- const valToAdd = position2() === "right" ? startX - moveEvent.clientX : moveEvent.clientX - startX;
3978
+ if (position() === "left" || position() === "right") {
3979
+ const valToAdd = position() === "right" ? startX - moveEvent.clientX : moveEvent.clientX - startX;
5173
3980
  newSize = Math.round(width + valToAdd);
5174
3981
  if (newSize < minWidth) {
5175
3982
  newSize = minWidth;
@@ -5180,7 +3987,7 @@ var DevtoolsPanel = (props) => {
5180
3987
  props.setLocalStore("width", String(newWidth));
5181
3988
  }
5182
3989
  } else {
5183
- const valToAdd = position2() === "bottom" ? startY - moveEvent.clientY : moveEvent.clientY - startY;
3990
+ const valToAdd = position() === "bottom" ? startY - moveEvent.clientY : moveEvent.clientY - startY;
5184
3991
  newSize = Math.round(height + valToAdd);
5185
3992
  if (newSize < minHeight) {
5186
3993
  newSize = minHeight;
@@ -5241,49 +4048,65 @@ var DevtoolsPanel = (props) => {
5241
4048
  });
5242
4049
  });
5243
4050
  return <aside
5244
- class={`${styles.panel} ${styles[`panel-position-${position2()}`]} ${css`
5245
- flex-direction: ${panelWidth() < secondBreakpoint ? "column" : "row"};
5246
- background-color: ${panelWidth() < secondBreakpoint ? tokens.colors.gray[600] : tokens.colors.darkGray[900]};
5247
- ${panelWidth() < thirdBreakpoint && (position2() === "right" || position2() === "left") ? `
4051
+ class={clsx(
4052
+ styles.panel,
4053
+ styles[`panel-position-${position()}`],
4054
+ u`
4055
+ flex-direction: ${panelWidth() < secondBreakpoint ? "column" : "row"};
4056
+ background-color: ${panelWidth() < secondBreakpoint ? tokens.colors.gray[600] : tokens.colors.darkGray[900]};
4057
+ `,
4058
+ {
4059
+ [u`
5248
4060
  min-width: min-content;
5249
- ` : ""}
5250
- `}`}
4061
+ `]: panelWidth() < thirdBreakpoint && (position() === "right" || position() === "left")
4062
+ },
4063
+ "tsqd-main-panel"
4064
+ )}
5251
4065
  style={{
5252
- height: position2() === "bottom" || position2() === "top" ? `${props.localStore.height || DEFAULT_HEIGHT}px` : "auto",
5253
- width: position2() === "right" || position2() === "left" ? `${props.localStore.width || DEFAULT_WIDTH}px` : "auto"
4066
+ height: position() === "bottom" || position() === "top" ? `${props.localStore.height || DEFAULT_HEIGHT}px` : "auto",
4067
+ width: position() === "right" || position() === "left" ? `${props.localStore.width || DEFAULT_WIDTH}px` : "auto"
5254
4068
  }}
5255
4069
  ref={panelRef}
5256
4070
  aria-label="Tanstack query devtools"
5257
4071
  >
5258
4072
  <div
5259
- class={cx(
4073
+ class={clsx(
5260
4074
  styles.dragHandle,
5261
- styles[`dragHandle-position-${position2()}`]
4075
+ styles[`dragHandle-position-${position()}`],
4076
+ "tsqd-drag-handle"
5262
4077
  )}
5263
4078
  onMouseDown={handleDragStart}
5264
4079
  />
5265
4080
  <button
5266
4081
  aria-label="Close tanstack query devtools"
5267
- class={cx(styles.closeBtn, styles[`closeBtn-position-${position2()}`])}
4082
+ class={clsx(
4083
+ styles.closeBtn,
4084
+ styles[`closeBtn-position-${position()}`],
4085
+ "tsqd-minimize-btn"
4086
+ )}
5268
4087
  onClick={() => props.setLocalStore("open", "false")}
5269
4088
  ><ChevronDown /></button>
5270
4089
  <div
5271
4090
  ref={queriesContainerRef}
5272
- class={`${styles.queriesContainer} ${css`
5273
- ${panelWidth() < secondBreakpoint && selectedQueryHash() ? `
5274
- height: 50%;
5275
- max-height: 50%;
5276
- ` : ""}
5277
- `}`}
4091
+ class={clsx(
4092
+ styles.queriesContainer,
4093
+ panelWidth() < secondBreakpoint && selectedQueryHash() && u`
4094
+ height: 50%;
4095
+ max-height: 50%;
4096
+ `,
4097
+ "tsqd-queries-container"
4098
+ )}
5278
4099
  >
5279
- <div class={cx(styles.row)}>
4100
+ <div class={clsx(styles.row, "tsqd-header")}>
5280
4101
  <button
5281
- class={styles.logo}
4102
+ class={clsx(styles.logo, "tsqd-text-logo-container")}
5282
4103
  onClick={() => props.setLocalStore("open", "false")}
5283
4104
  aria-label="Close Tanstack query devtools"
5284
4105
  >
5285
- <span class={styles.tanstackLogo}>TANSTACK</span>
5286
- <span class={styles.queryFlavorLogo}>
4106
+ <span class={clsx(styles.tanstackLogo, "tsqd-text-logo-tanstack")}>TANSTACK</span>
4107
+ <span
4108
+ class={clsx(styles.queryFlavorLogo, "tsqd-text-logo-query-flavor")}
4109
+ >
5287
4110
  {useQueryDevtoolsContext().queryFlavor}
5288
4111
  {" v"}
5289
4112
  {useQueryDevtoolsContext().version}
@@ -5292,28 +4115,40 @@ var DevtoolsPanel = (props) => {
5292
4115
  <QueryStatusCount />
5293
4116
  </div>
5294
4117
  <div
5295
- class={cx(
4118
+ class={clsx(
5296
4119
  styles.row,
5297
- css`
4120
+ u`
5298
4121
  gap: ${tokens.size[2.5]};
5299
- `
4122
+ `,
4123
+ "tsqd-filters-actions-container"
5300
4124
  )}
5301
4125
  >
5302
- <div class={styles.filtersContainer}>
5303
- <div class={styles.filterInput}>
4126
+ <div class={clsx(styles.filtersContainer, "tsqd-filters-container")}>
4127
+ <div
4128
+ class={clsx(
4129
+ styles.filterInput,
4130
+ "tsqd-query-filter-textfield-container"
4131
+ )}
4132
+ >
5304
4133
  <Search />
5305
4134
  <input
5306
4135
  aria-label="Filter queries by query key"
5307
4136
  type="text"
5308
4137
  placeholder="Filter"
5309
- onInput={(e) => props.setLocalStore("filter", e.currentTarget.value)}
4138
+ onInput={(e2) => props.setLocalStore("filter", e2.currentTarget.value)}
4139
+ class="tsqd-query-filter-textfield"
5310
4140
  value={props.localStore.filter || ""}
5311
4141
  />
5312
4142
  </div>
5313
- <div class={styles.filterSelect}>
4143
+ <div
4144
+ class={clsx(
4145
+ styles.filterSelect,
4146
+ "tsqd-query-filter-sort-container"
4147
+ )}
4148
+ >
5314
4149
  <select
5315
4150
  value={sort()}
5316
- onChange={(e) => props.setLocalStore("sort", e.currentTarget.value)}
4151
+ onChange={(e2) => props.setLocalStore("sort", e2.currentTarget.value)}
5317
4152
  >{Object.keys(sortFns).map((key) => <option value={key}>
5318
4153
  {"Sort by "}
5319
4154
  {key}
@@ -5326,6 +4161,7 @@ var DevtoolsPanel = (props) => {
5326
4161
  }}
5327
4162
  aria-label={`Sort order ${sortOrder() === -1 ? "descending" : "ascending"}`}
5328
4163
  aria-pressed={sortOrder() === -1}
4164
+ class="tsqd-query-filter-sort-order-btn"
5329
4165
  >
5330
4166
  <Show when={sortOrder() === 1}>
5331
4167
  <span>Asc</span>
@@ -5337,7 +4173,7 @@ var DevtoolsPanel = (props) => {
5337
4173
  </Show>
5338
4174
  </button>
5339
4175
  </div>
5340
- <div class={styles.actionsContainer}>
4176
+ <div class={clsx(styles.actionsContainer, "tsqd-actions-container")}>
5341
4177
  <button
5342
4178
  onClick={() => {
5343
4179
  if (offline()) {
@@ -5348,33 +4184,52 @@ var DevtoolsPanel = (props) => {
5348
4184
  setOffline(true);
5349
4185
  }
5350
4186
  }}
5351
- class={styles.actionsBtn}
4187
+ class={clsx(
4188
+ styles.actionsBtn,
4189
+ "tsqd-actions-btn",
4190
+ "tsqd-action-mock-offline-behavior"
4191
+ )}
5352
4192
  aria-label={`${offline() ? "Unset offline mocking behavior" : "Mock offline behavior"}`}
5353
4193
  aria-pressed={offline()}
5354
4194
  >{offline() ? <Offline /> : <Wifi />}</button>
5355
4195
  <div style={{ position: "relative" }}>
5356
4196
  <button
5357
- onClick={() => setSettingsOpen((prev2) => !prev2)}
5358
- class={styles.actionsBtn}
5359
- id="TSQD-settings-menu-btn"
4197
+ onClick={() => setSettingsOpen((prev) => !prev)}
4198
+ class={clsx(
4199
+ styles.actionsBtn,
4200
+ "tsqd-actions-btn",
4201
+ "tsqd-action-settings"
4202
+ )}
4203
+ id="tsqd-settings-menu-btn"
5360
4204
  aria-label={`${settingsOpen() ? "Close" : "Open"} settings menu`}
5361
4205
  aria-haspopup="true"
5362
- aria-controls="TSQD-settings-menu"
4206
+ aria-controls="tsqd-settings-menu"
5363
4207
  ><Settings /></button>
5364
4208
  <Show when={settingsOpen()}><div
5365
4209
  role="menu"
5366
4210
  tabindex="-1"
5367
- aria-labelledby="TSQD-settings-menu-btn"
5368
- id="TSQD-settings-menu"
5369
- class={styles.settingsMenu}
4211
+ aria-labelledby="tsqd-settings-menu-btn"
4212
+ id="tsqd-settings-menu"
4213
+ class={clsx(styles.settingsMenu, "tsqd-settings-menu")}
5370
4214
  >
5371
- <div class={styles.settingsMenuHeader}>Position</div>
5372
- <div class={styles.settingsMenuSection}>
4215
+ <div
4216
+ class={clsx(
4217
+ styles.settingsMenuHeader,
4218
+ "tsqd-settings-menu-header"
4219
+ )}
4220
+ >Position</div>
4221
+ <div
4222
+ class={clsx(
4223
+ styles.settingsMenuSection,
4224
+ "tsqd-settings-menu-section"
4225
+ )}
4226
+ >
5373
4227
  <button
5374
4228
  onClick={() => {
5375
4229
  setDevtoolsPosition("top");
5376
4230
  }}
5377
4231
  aria-label="Position top"
4232
+ class="tsqd-settings-menu-position-btn tsqd-settings-menu-position-btn-top"
5378
4233
  >
5379
4234
  <ArrowUp />
5380
4235
  <span>Top</span>
@@ -5384,6 +4239,7 @@ var DevtoolsPanel = (props) => {
5384
4239
  setDevtoolsPosition("bottom");
5385
4240
  }}
5386
4241
  aria-label="Position bottom"
4242
+ class="tsqd-settings-menu-position-btn tsqd-settings-menu-position-btn-bottom"
5387
4243
  >
5388
4244
  <ArrowDown />
5389
4245
  <span>Bottom</span>
@@ -5393,6 +4249,7 @@ var DevtoolsPanel = (props) => {
5393
4249
  setDevtoolsPosition("left");
5394
4250
  }}
5395
4251
  aria-label="Position left"
4252
+ class="tsqd-settings-menu-position-btn tsqd-settings-menu-position-btn-left"
5396
4253
  >
5397
4254
  <ArrowDown />
5398
4255
  <span>Left</span>
@@ -5402,6 +4259,7 @@ var DevtoolsPanel = (props) => {
5402
4259
  setDevtoolsPosition("right");
5403
4260
  }}
5404
4261
  aria-label="Position right"
4262
+ class="tsqd-settings-menu-position-btn tsqd-settings-menu-position-btn-right"
5405
4263
  >
5406
4264
  <ArrowDown />
5407
4265
  <span>Right</span>
@@ -5411,7 +4269,12 @@ var DevtoolsPanel = (props) => {
5411
4269
  </div>
5412
4270
  </div>
5413
4271
  </div>
5414
- <div class={styles.overflowQueryContainer}><div><Key by={(q) => q.queryHash} each={queries()}>{(query) => <QueryRow query={query()} />}</Key></div></div>
4272
+ <div
4273
+ class={clsx(
4274
+ styles.overflowQueryContainer,
4275
+ "tsqd-queries-overflow-container"
4276
+ )}
4277
+ ><div class="tsqd-queries-container"><Key by={(q) => q.queryHash} each={queries()}>{(query) => <QueryRow query={query()} />}</Key></div></div>
5415
4278
  </div>
5416
4279
  <Show when={selectedQueryHash()}><QueryDetails /></Show>
5417
4280
  </aside>;
@@ -5449,26 +4312,27 @@ var QueryRow = (props) => {
5449
4312
  onClick={() => setSelectedQueryHash(
5450
4313
  props.query.queryHash === selectedQueryHash() ? null : props.query.queryHash
5451
4314
  )}
5452
- class={cx(
4315
+ class={clsx(
5453
4316
  styles.queryRow,
5454
- selectedQueryHash() === props.query.queryHash && styles.selectedQueryRow
4317
+ selectedQueryHash() === props.query.queryHash && styles.selectedQueryRow,
4318
+ "tsqd-query-row"
5455
4319
  )}
5456
4320
  aria-label={`Query key ${props.query.queryHash}`}
5457
4321
  >
5458
4322
  <div
5459
- class={cx(
5460
- "TSQDObserverCount",
5461
- color() === "gray" ? css`
4323
+ class={clsx(
4324
+ color() === "gray" ? u`
5462
4325
  background-color: ${tokens.colors[color()][700]};
5463
4326
  color: ${tokens.colors[color()][300]};
5464
- ` : css`
4327
+ ` : u`
5465
4328
  background-color: ${tokens.colors[color()][900]};
5466
- color: ${tokens.colors[color()][300]} !important;
5467
- `
4329
+ color: ${tokens.colors[color()][300]};
4330
+ `,
4331
+ "tsqd-query-observer-count"
5468
4332
  )}
5469
4333
  >{observers()}</div>
5470
- <code class="TSQDQueryHash">{props.query.queryHash}</code>
5471
- <Show when={isDisabled()}><div class="TSQDQueryDisabled">disabled</div></Show>
4334
+ <code class="tsqd-query-hash">{props.query.queryHash}</code>
4335
+ <Show when={isDisabled()}><div class="tsqd-query-disabled-indicator">disabled</div></Show>
5472
4336
  </button></Show>;
5473
4337
  };
5474
4338
  var QueryStatusCount = () => {
@@ -5488,7 +4352,7 @@ var QueryStatusCount = () => {
5488
4352
  (queryCache) => queryCache().getAll().filter((q) => getQueryStatusLabel(q) === "inactive").length
5489
4353
  );
5490
4354
  const styles = getStyles2();
5491
- return <div class={styles.queryStatusContainer}>
4355
+ return <div class={clsx(styles.queryStatusContainer, "tsqd-query-status-container")}>
5492
4356
  <QueryStatus label="Fresh" color="green" count={fresh()} />
5493
4357
  <QueryStatus label="Fetching" color="blue" count={fetching()} />
5494
4358
  <QueryStatus label="Paused" color="purple" count={paused()} />
@@ -5522,42 +4386,48 @@ var QueryStatus = (props) => {
5522
4386
  }}
5523
4387
  disabled={showLabel()}
5524
4388
  ref={tagRef}
5525
- class={cx(
4389
+ class={clsx(
5526
4390
  styles.queryStatusTag,
5527
- !showLabel() ? css`
5528
- cursor: pointer;
5529
- &:hover {
5530
- background: ${tokens.colors.darkGray[400]}${tokens.alpha[80]};
5531
- }
5532
- ` : null
4391
+ !showLabel() && u`
4392
+ cursor: pointer;
4393
+ &:hover {
4394
+ background: ${tokens.colors.darkGray[400]}${tokens.alpha[80]};
4395
+ }
4396
+ `,
4397
+ "tsqd-query-status-tag",
4398
+ `tsqd-query-status-tag-${props.label.toLowerCase()}`
5533
4399
  )}
5534
4400
  {...mouseOver() || focused() ? {
5535
- "aria-describedby": "TSQD-status-tooltip"
4401
+ "aria-describedby": "tsqd-status-tooltip"
5536
4402
  } : {}}
5537
4403
  >
5538
4404
  <Show when={!showLabel() && (mouseOver() || focused())}><div
5539
4405
  role="tooltip"
5540
- id="TSQD-status-tooltip"
5541
- class={cx(styles.statusTooltip)}
4406
+ id="tsqd-status-tooltip"
4407
+ class={clsx(styles.statusTooltip, "tsqd-query-status-tooltip")}
5542
4408
  >{props.label}</div></Show>
5543
4409
  <span
5544
- class={css`
5545
- width: ${tokens.size[2]};
5546
- height: ${tokens.size[2]};
5547
- border-radius: ${tokens.border.radius.full};
5548
- background-color: ${tokens.colors[props.color][500]};
5549
- `}
4410
+ class={clsx(
4411
+ u`
4412
+ width: ${tokens.size[2]};
4413
+ height: ${tokens.size[2]};
4414
+ border-radius: ${tokens.border.radius.full};
4415
+ background-color: ${tokens.colors[props.color][500]};
4416
+ `,
4417
+ "tsqd-query-status-tag-dot"
4418
+ )}
5550
4419
  />
5551
- <Show when={showLabel()}><span>{props.label}</span></Show>
4420
+ <Show when={showLabel()}><span class="tsqd-query-status-tag-label">{props.label}</span></Show>
5552
4421
  <span
5553
- class={cx(
4422
+ class={clsx(
5554
4423
  styles.queryStatusCount,
5555
- props.count > 0 && props.color !== "gray" ? css`
4424
+ props.count > 0 && props.color !== "gray" ? u`
5556
4425
  background-color: ${tokens.colors[props.color][900]};
5557
- color: ${tokens.colors[props.color][300]} !important;
5558
- ` : css`
5559
- color: ${tokens.colors["gray"][400]} !important;
5560
- `
4426
+ color: ${tokens.colors[props.color][300]};
4427
+ ` : u`
4428
+ color: ${tokens.colors["gray"][400]};
4429
+ `,
4430
+ "tsqd-query-status-tag-count"
5561
4431
  )}
5562
4432
  >{props.count}</span>
5563
4433
  </button>;
@@ -5634,19 +4504,21 @@ var QueryDetails = () => {
5634
4504
  setRestoringLoading(false);
5635
4505
  }
5636
4506
  });
5637
- return <Show when={activeQuery() && activeQueryState()}><div class={styles.detailsContainer}>
5638
- <div class={styles.detailsHeader}>Query Details</div>
5639
- <div class={styles.detailsBody}>
5640
- <div>
4507
+ return <Show when={activeQuery() && activeQueryState()}><div class={clsx(styles.detailsContainer, "tsqd-query-details-container")}>
4508
+ <div class={clsx(styles.detailsHeader, "tsqd-query-details-header")}>Query Details</div>
4509
+ <div
4510
+ class={clsx(styles.detailsBody, "tsqd-query-details-summary-container")}
4511
+ >
4512
+ <div class="tsqd-query-details-summary">
5641
4513
  <pre><code>{displayValue(activeQuery().queryKey, true)}</code></pre>
5642
4514
  <span
5643
- class={cx(
4515
+ class={clsx(
5644
4516
  styles.queryDetailsStatus,
5645
- color() === "gray" ? css`
4517
+ color() === "gray" ? u`
5646
4518
  background-color: ${tokens.colors[color()][700]};
5647
4519
  color: ${tokens.colors[color()][300]};
5648
4520
  border-color: ${tokens.colors[color()][600]};
5649
- ` : css`
4521
+ ` : u`
5650
4522
  background-color: ${tokens.colors[color()][900]};
5651
4523
  color: ${tokens.colors[color()][300]};
5652
4524
  border-color: ${tokens.colors[color()][600]};
@@ -5654,63 +4526,81 @@ var QueryDetails = () => {
5654
4526
  )}
5655
4527
  >{statusLabel()}</span>
5656
4528
  </div>
5657
- <div>
4529
+ <div class="tsqd-query-details-observers-count">
5658
4530
  <span>Observers:</span>
5659
4531
  <span>{observerCount()}</span>
5660
4532
  </div>
5661
- <div>
4533
+ <div class="tsqd-query-details-last-updated">
5662
4534
  <span>Last Updated:</span>
5663
4535
  <span>{new Date(activeQueryState().dataUpdatedAt).toLocaleTimeString()}</span>
5664
4536
  </div>
5665
4537
  </div>
5666
- <div class={styles.detailsHeader}>Actions</div>
5667
- <div class={styles.actionsBody}>
4538
+ <div class={clsx(styles.detailsHeader, "tsqd-query-details-header")}>Actions</div>
4539
+ <div
4540
+ class={clsx(styles.actionsBody, "tsqd-query-details-actions-container")}
4541
+ >
5668
4542
  <button
5669
- class={css`
5670
- color: ${tokens.colors.blue[400]};
5671
- `}
4543
+ class={clsx(
4544
+ u`
4545
+ color: ${tokens.colors.blue[400]};
4546
+ `,
4547
+ "tsqd-query-details-actions-btn",
4548
+ "tsqd-query-details-action-refetch"
4549
+ )}
5672
4550
  onClick={handleRefetch}
5673
4551
  disabled={statusLabel() === "fetching"}
5674
4552
  >
5675
4553
  <span
5676
- class={css`
4554
+ class={u`
5677
4555
  background-color: ${tokens.colors.blue[400]};
5678
4556
  `}
5679
4557
  />
5680
4558
  {"Refetch"}
5681
4559
  </button>
5682
4560
  <button
5683
- class={css`
5684
- color: ${tokens.colors.yellow[400]};
5685
- `}
4561
+ class={clsx(
4562
+ u`
4563
+ color: ${tokens.colors.yellow[400]};
4564
+ `,
4565
+ "tsqd-query-details-actions-btn",
4566
+ "tsqd-query-details-action-invalidate"
4567
+ )}
5686
4568
  onClick={() => queryClient.invalidateQueries(activeQuery())}
5687
4569
  disabled={queryStatus() === "pending"}
5688
4570
  >
5689
4571
  <span
5690
- class={css`
4572
+ class={u`
5691
4573
  background-color: ${tokens.colors.yellow[400]};
5692
4574
  `}
5693
4575
  />
5694
4576
  {"Invalidate"}
5695
4577
  </button>
5696
4578
  <button
5697
- class={css`
5698
- color: ${tokens.colors.gray[300]};
5699
- `}
4579
+ class={clsx(
4580
+ u`
4581
+ color: ${tokens.colors.gray[300]};
4582
+ `,
4583
+ "tsqd-query-details-actions-btn",
4584
+ "tsqd-query-details-action-reset"
4585
+ )}
5700
4586
  onClick={() => queryClient.resetQueries(activeQuery())}
5701
4587
  disabled={queryStatus() === "pending"}
5702
4588
  >
5703
4589
  <span
5704
- class={css`
4590
+ class={u`
5705
4591
  background-color: ${tokens.colors.gray[400]};
5706
4592
  `}
5707
4593
  />
5708
4594
  {"Reset"}
5709
4595
  </button>
5710
4596
  <button
5711
- class={css`
5712
- color: ${tokens.colors.cyan[400]};
5713
- `}
4597
+ class={clsx(
4598
+ u`
4599
+ color: ${tokens.colors.cyan[400]};
4600
+ `,
4601
+ "tsqd-query-details-actions-btn",
4602
+ "tsqd-query-details-action-loading"
4603
+ )}
5714
4604
  disabled={restoringLoading()}
5715
4605
  onClick={() => {
5716
4606
  if (activeQuery()?.state.data === void 0) {
@@ -5742,7 +4632,7 @@ var QueryDetails = () => {
5742
4632
  }}
5743
4633
  >
5744
4634
  <span
5745
- class={css`
4635
+ class={u`
5746
4636
  background-color: ${tokens.colors.cyan[400]};
5747
4637
  `}
5748
4638
  />
@@ -5750,9 +4640,13 @@ var QueryDetails = () => {
5750
4640
  {" Loading"}
5751
4641
  </button>
5752
4642
  <Show when={errorTypes().length === 0 || queryStatus() === "error"}><button
5753
- class={css`
5754
- color: ${tokens.colors.red[400]};
5755
- `}
4643
+ class={clsx(
4644
+ u`
4645
+ color: ${tokens.colors.red[400]};
4646
+ `,
4647
+ "tsqd-query-details-actions-btn",
4648
+ "tsqd-query-details-action-error"
4649
+ )}
5756
4650
  onClick={() => {
5757
4651
  if (!activeQuery().state.error) {
5758
4652
  triggerError();
@@ -5763,7 +4657,7 @@ var QueryDetails = () => {
5763
4657
  disabled={queryStatus() === "pending"}
5764
4658
  >
5765
4659
  <span
5766
- class={css`
4660
+ class={u`
5767
4661
  background-color: ${tokens.colors.red[400]};
5768
4662
  `}
5769
4663
  />
@@ -5772,18 +4666,24 @@ var QueryDetails = () => {
5772
4666
  </button></Show>
5773
4667
  <Show
5774
4668
  when={!(errorTypes().length === 0 || queryStatus() === "error")}
5775
- ><div class={styles.actionsSelect}>
4669
+ ><div
4670
+ class={clsx(
4671
+ styles.actionsSelect,
4672
+ "tsqd-query-details-actions-btn",
4673
+ "tsqd-query-details-action-error-multiple"
4674
+ )}
4675
+ >
5776
4676
  <span
5777
- class={css`
4677
+ class={u`
5778
4678
  background-color: ${tokens.colors.red[400]};
5779
4679
  `}
5780
4680
  />
5781
4681
  {"Trigger Error"}
5782
4682
  <select
5783
4683
  disabled={queryStatus() === "pending"}
5784
- onChange={(e) => {
4684
+ onChange={(e2) => {
5785
4685
  const errorType = errorTypes().find(
5786
- (t) => t.name === e.currentTarget.value
4686
+ (t2) => t2.name === e2.currentTarget.value
5787
4687
  );
5788
4688
  triggerError(errorType);
5789
4689
  }}
@@ -5794,22 +4694,24 @@ var QueryDetails = () => {
5794
4694
  <ChevronDown />
5795
4695
  </div></Show>
5796
4696
  </div>
5797
- <div class={styles.detailsHeader}>Data Explorer</div>
4697
+ <div class={clsx(styles.detailsHeader, "tsqd-query-details-header")}>Data Explorer</div>
5798
4698
  <div
5799
4699
  style={{
5800
4700
  padding: "0.5rem"
5801
4701
  }}
4702
+ class="tsqd-query-details-explorer-container tsqd-query-details-data-explorer"
5802
4703
  ><Explorer
5803
4704
  label="Data"
5804
4705
  defaultExpanded={["Data"]}
5805
4706
  value={activeQueryStateData()}
5806
4707
  copyable={true}
5807
4708
  /></div>
5808
- <div class={styles.detailsHeader}>Query Explorer</div>
4709
+ <div class={clsx(styles.detailsHeader, "tsqd-query-details-header")}>Query Explorer</div>
5809
4710
  <div
5810
4711
  style={{
5811
4712
  padding: "0.5rem"
5812
4713
  }}
4714
+ class="tsqd-query-details-explorer-container tsqd-query-details-query-explorer"
5813
4715
  ><Explorer
5814
4716
  label="Query"
5815
4717
  defaultExpanded={["Query", "queryKey"]}
@@ -5857,10 +4759,11 @@ var createSubscribeToQueryCacheBatcher = (callback, equalityCheck = true) => {
5857
4759
  var getStyles2 = () => {
5858
4760
  const { colors, font, size, alpha, shadow, border } = tokens;
5859
4761
  return {
5860
- devtoolsBtn: css`
4762
+ devtoolsBtn: u`
5861
4763
  z-index: 100000;
5862
4764
  position: fixed;
5863
4765
  padding: 4px;
4766
+ text-align: left;
5864
4767
 
5865
4768
  display: flex;
5866
4769
  align-items: center;
@@ -5910,7 +4813,7 @@ var getStyles2 = () => {
5910
4813
  }
5911
4814
  }
5912
4815
  `,
5913
- panel: css`
4816
+ panel: u`
5914
4817
  position: fixed;
5915
4818
  z-index: 9999;
5916
4819
  display: flex;
@@ -5922,23 +4825,23 @@ var getStyles2 = () => {
5922
4825
  text-transform: none;
5923
4826
  }
5924
4827
  `,
5925
- "devtoolsBtn-position-bottom-right": css`
4828
+ "devtoolsBtn-position-bottom-right": u`
5926
4829
  bottom: 12px;
5927
4830
  right: 12px;
5928
4831
  `,
5929
- "devtoolsBtn-position-bottom-left": css`
4832
+ "devtoolsBtn-position-bottom-left": u`
5930
4833
  bottom: 12px;
5931
4834
  left: 12px;
5932
4835
  `,
5933
- "devtoolsBtn-position-top-left": css`
4836
+ "devtoolsBtn-position-top-left": u`
5934
4837
  top: 12px;
5935
4838
  left: 12px;
5936
4839
  `,
5937
- "devtoolsBtn-position-top-right": css`
4840
+ "devtoolsBtn-position-top-right": u`
5938
4841
  top: 12px;
5939
4842
  right: 12px;
5940
4843
  `,
5941
- "panel-position-top": css`
4844
+ "panel-position-top": u`
5942
4845
  top: 0;
5943
4846
  right: 0;
5944
4847
  left: 0;
@@ -5946,7 +4849,7 @@ var getStyles2 = () => {
5946
4849
  min-height: 3.5rem;
5947
4850
  border-bottom: ${colors.darkGray[300]} 1px solid;
5948
4851
  `,
5949
- "panel-position-bottom": css`
4852
+ "panel-position-bottom": u`
5950
4853
  bottom: 0;
5951
4854
  right: 0;
5952
4855
  left: 0;
@@ -5954,21 +4857,21 @@ var getStyles2 = () => {
5954
4857
  min-height: 3.5rem;
5955
4858
  border-top: ${colors.darkGray[300]} 1px solid;
5956
4859
  `,
5957
- "panel-position-right": css`
4860
+ "panel-position-right": u`
5958
4861
  bottom: 0;
5959
4862
  right: 0;
5960
4863
  top: 0;
5961
4864
  border-left: ${colors.darkGray[300]} 1px solid;
5962
4865
  max-width: 90%;
5963
4866
  `,
5964
- "panel-position-left": css`
4867
+ "panel-position-left": u`
5965
4868
  bottom: 0;
5966
4869
  left: 0;
5967
4870
  top: 0;
5968
4871
  border-right: ${colors.darkGray[300]} 1px solid;
5969
4872
  max-width: 90%;
5970
4873
  `,
5971
- closeBtn: css`
4874
+ closeBtn: u`
5972
4875
  position: absolute;
5973
4876
  cursor: pointer;
5974
4877
  z-index: 5;
@@ -5983,7 +4886,7 @@ var getStyles2 = () => {
5983
4886
  outline: 2px solid ${colors.blue[600]};
5984
4887
  }
5985
4888
  `,
5986
- "closeBtn-position-top": css`
4889
+ "closeBtn-position-top": u`
5987
4890
  bottom: 0;
5988
4891
  right: ${size[3]};
5989
4892
  transform: translate(0, 100%);
@@ -6008,7 +4911,7 @@ var getStyles2 = () => {
6008
4911
  transform: rotate(180deg);
6009
4912
  }
6010
4913
  `,
6011
- "closeBtn-position-bottom": css`
4914
+ "closeBtn-position-bottom": u`
6012
4915
  top: 0;
6013
4916
  right: ${size[3]};
6014
4917
  transform: translate(0, -100%);
@@ -6029,7 +4932,7 @@ var getStyles2 = () => {
6029
4932
  width: calc(100% + ${size[5]});
6030
4933
  }
6031
4934
  `,
6032
- "closeBtn-position-right": css`
4935
+ "closeBtn-position-right": u`
6033
4936
  bottom: ${size[3]};
6034
4937
  left: 0;
6035
4938
  transform: translate(-100%, 0);
@@ -6053,7 +4956,7 @@ var getStyles2 = () => {
6053
4956
  transform: rotate(-90deg);
6054
4957
  }
6055
4958
  `,
6056
- "closeBtn-position-left": css`
4959
+ "closeBtn-position-left": u`
6057
4960
  bottom: ${size[3]};
6058
4961
  right: 0;
6059
4962
  transform: translate(100%, 0);
@@ -6077,13 +4980,13 @@ var getStyles2 = () => {
6077
4980
  transform: rotate(90deg);
6078
4981
  }
6079
4982
  `,
6080
- queriesContainer: css`
4983
+ queriesContainer: u`
6081
4984
  flex: 1 1 700px;
6082
4985
  background-color: ${colors.darkGray[700]};
6083
4986
  display: flex;
6084
4987
  flex-direction: column;
6085
4988
  `,
6086
- dragHandle: css`
4989
+ dragHandle: u`
6087
4990
  position: absolute;
6088
4991
  transition: background-color 0.125s ease;
6089
4992
  &:hover {
@@ -6091,31 +4994,31 @@ var getStyles2 = () => {
6091
4994
  }
6092
4995
  z-index: 4;
6093
4996
  `,
6094
- "dragHandle-position-top": css`
4997
+ "dragHandle-position-top": u`
6095
4998
  bottom: 0;
6096
4999
  width: 100%;
6097
5000
  height: ${tokens.size[1]};
6098
5001
  cursor: ns-resize;
6099
5002
  `,
6100
- "dragHandle-position-bottom": css`
5003
+ "dragHandle-position-bottom": u`
6101
5004
  top: 0;
6102
5005
  width: 100%;
6103
5006
  height: ${tokens.size[1]};
6104
5007
  cursor: ns-resize;
6105
5008
  `,
6106
- "dragHandle-position-right": css`
5009
+ "dragHandle-position-right": u`
6107
5010
  left: 0;
6108
5011
  width: ${tokens.size[1]};
6109
5012
  height: 100%;
6110
5013
  cursor: ew-resize;
6111
5014
  `,
6112
- "dragHandle-position-left": css`
5015
+ "dragHandle-position-left": u`
6113
5016
  right: 0;
6114
5017
  width: ${tokens.size[1]};
6115
5018
  height: 100%;
6116
5019
  cursor: ew-resize;
6117
5020
  `,
6118
- row: css`
5021
+ row: u`
6119
5022
  display: flex;
6120
5023
  justify-content: space-between;
6121
5024
  padding: ${tokens.size[2.5]} ${tokens.size[3]};
@@ -6130,7 +5033,7 @@ var getStyles2 = () => {
6130
5033
  flex-direction: column;
6131
5034
  }
6132
5035
  `,
6133
- logo: css`
5036
+ logo: u`
6134
5037
  cursor: pointer;
6135
5038
  &:hover {
6136
5039
  opacity: 0.7;
@@ -6141,27 +5044,28 @@ var getStyles2 = () => {
6141
5044
  outline: 2px solid ${colors.blue[800]};
6142
5045
  }
6143
5046
  `,
6144
- tanstackLogo: css`
5047
+ tanstackLogo: u`
6145
5048
  font-size: ${font.size.lg};
6146
5049
  font-weight: ${font.weight.extrabold};
6147
5050
  line-height: ${font.lineHeight.sm};
6148
5051
  white-space: nowrap;
6149
5052
  `,
6150
- queryFlavorLogo: css`
5053
+ queryFlavorLogo: u`
6151
5054
  font-weight: ${font.weight.semibold};
6152
5055
  font-size: ${font.size.sm};
6153
5056
  background: linear-gradient(to right, #dd524b, #e9a03b);
6154
5057
  background-clip: text;
5058
+ -webkit-background-clip: text;
6155
5059
  line-height: ${font.lineHeight.xs};
6156
5060
  -webkit-text-fill-color: transparent;
6157
5061
  white-space: nowrap;
6158
5062
  `,
6159
- queryStatusContainer: css`
5063
+ queryStatusContainer: u`
6160
5064
  display: flex;
6161
5065
  gap: ${tokens.size[2]};
6162
5066
  height: min-content;
6163
5067
  `,
6164
- queryStatusTag: css`
5068
+ queryStatusTag: u`
6165
5069
  display: flex;
6166
5070
  gap: ${tokens.size[1.5]};
6167
5071
  background: ${colors.darkGray[500]};
@@ -6183,7 +5087,7 @@ var getStyles2 = () => {
6183
5087
  color: ${colors.gray[300]}${alpha[80]};
6184
5088
  }
6185
5089
  `,
6186
- statusTooltip: css`
5090
+ statusTooltip: u`
6187
5091
  position: absolute;
6188
5092
  z-index: 1;
6189
5093
  background-color: ${colors.darkGray[500]};
@@ -6222,10 +5126,10 @@ var getStyles2 = () => {
6222
5126
  border-width: 7px;
6223
5127
  }
6224
5128
  `,
6225
- selectedQueryRow: css`
5129
+ selectedQueryRow: u`
6226
5130
  background-color: ${colors.darkGray[500]};
6227
5131
  `,
6228
- queryStatusCount: css`
5132
+ queryStatusCount: u`
6229
5133
  padding: 0 8px;
6230
5134
  display: flex;
6231
5135
  align-items: center;
@@ -6235,7 +5139,7 @@ var getStyles2 = () => {
6235
5139
  border-radius: 3px;
6236
5140
  font-variant-numeric: tabular-nums;
6237
5141
  `,
6238
- filtersContainer: css`
5142
+ filtersContainer: u`
6239
5143
  display: flex;
6240
5144
  gap: ${tokens.size[2.5]};
6241
5145
  & > button {
@@ -6258,7 +5162,7 @@ var getStyles2 = () => {
6258
5162
  }
6259
5163
  }
6260
5164
  `,
6261
- filterInput: css`
5165
+ filterInput: u`
6262
5166
  padding: ${tokens.size[1.5]} ${tokens.size[2.5]};
6263
5167
  border-radius: ${tokens.border.radius.md};
6264
5168
  background-color: ${colors.darkGray[400]};
@@ -6296,7 +5200,7 @@ var getStyles2 = () => {
6296
5200
  outline: 2px solid ${colors.blue[800]};
6297
5201
  }
6298
5202
  `,
6299
- filterSelect: css`
5203
+ filterSelect: u`
6300
5204
  padding: ${tokens.size[1.5]} ${tokens.size[2.5]};
6301
5205
  border-radius: ${tokens.border.radius.md};
6302
5206
  background-color: ${colors.darkGray[400]};
@@ -6328,15 +5232,15 @@ var getStyles2 = () => {
6328
5232
  outline: 2px solid ${colors.blue[800]};
6329
5233
  }
6330
5234
  `,
6331
- actionsContainer: css`
5235
+ actionsContainer: u`
6332
5236
  display: flex;
6333
5237
  gap: ${tokens.size[2.5]};
6334
5238
  `,
6335
- actionsBtn: css`
5239
+ actionsBtn: u`
6336
5240
  border-radius: ${tokens.border.radius.md};
6337
5241
  background-color: ${colors.darkGray[400]};
6338
- width: 2.125rem; // 34px
6339
- height: 2.125rem; // 34px
5242
+ width: 2.125rem;
5243
+ height: 2.125rem;
6340
5244
  justify-content: center;
6341
5245
  display: flex;
6342
5246
  align-items: center;
@@ -6358,7 +5262,7 @@ var getStyles2 = () => {
6358
5262
  outline: 2px solid ${colors.blue[800]};
6359
5263
  }
6360
5264
  `,
6361
- overflowQueryContainer: css`
5265
+ overflowQueryContainer: u`
6362
5266
  flex: 1;
6363
5267
  overflow-y: auto;
6364
5268
  & > div {
@@ -6366,27 +5270,30 @@ var getStyles2 = () => {
6366
5270
  flex-direction: column;
6367
5271
  }
6368
5272
  `,
6369
- queryRow: css`
5273
+ queryRow: u`
6370
5274
  display: flex;
6371
5275
  align-items: center;
6372
5276
  padding: 0;
6373
5277
  background-color: inherit;
6374
5278
  border: none;
6375
5279
  cursor: pointer;
5280
+ &:focus {
5281
+ outline: none;
5282
+ }
6376
5283
  &:focus-visible {
6377
5284
  outline-offset: -2px;
6378
5285
  border-radius: ${border.radius.xs};
6379
5286
  outline: 2px solid ${colors.blue[800]};
6380
5287
  }
6381
- &:hover .TSQDQueryHash {
5288
+ &:hover .tsqd-query-hash {
6382
5289
  background-color: ${colors.darkGray[600]};
6383
5290
  }
6384
5291
 
6385
- & .TSQDObserverCount {
5292
+ & .tsqd-query-observer-count {
6386
5293
  padding: 0 ${tokens.size[1]};
6387
5294
  user-select: none;
6388
5295
  min-width: ${tokens.size[8]};
6389
- align-self: stretch !important;
5296
+ align-self: stretch;
6390
5297
  display: flex;
6391
5298
  align-items: center;
6392
5299
  justify-content: center;
@@ -6394,7 +5301,7 @@ var getStyles2 = () => {
6394
5301
  font-weight: ${font.weight.medium};
6395
5302
  border-bottom: 1px solid ${colors.darkGray[700]};
6396
5303
  }
6397
- & .TSQDQueryHash {
5304
+ & .tsqd-query-hash {
6398
5305
  user-select: text;
6399
5306
  font-size: ${font.size.sm};
6400
5307
  display: flex;
@@ -6402,16 +5309,15 @@ var getStyles2 = () => {
6402
5309
  min-height: ${tokens.size[8]};
6403
5310
  flex: 1;
6404
5311
  padding: ${tokens.size[1]} ${tokens.size[2]};
6405
- font-family: 'Menlo', 'Fira Code', monospace !important;
5312
+ font-family: 'Menlo', 'Fira Code', monospace;
6406
5313
  border-bottom: 1px solid ${colors.darkGray[400]};
6407
5314
  text-align: left;
6408
5315
  text-overflow: clip;
6409
5316
  word-break: break-word;
6410
5317
  }
6411
5318
 
6412
- & .TSQDQueryDisabled {
5319
+ & .tsqd-query-disabled-indicator {
6413
5320
  align-self: stretch;
6414
- align-self: stretch !important;
6415
5321
  display: flex;
6416
5322
  align-items: center;
6417
5323
  padding: 0 ${tokens.size[3]};
@@ -6421,15 +5327,16 @@ var getStyles2 = () => {
6421
5327
  font-size: ${font.size.sm};
6422
5328
  }
6423
5329
  `,
6424
- detailsContainer: css`
5330
+ detailsContainer: u`
6425
5331
  flex: 1 1 700px;
6426
5332
  background-color: ${colors.darkGray[700]};
6427
5333
  display: flex;
6428
5334
  flex-direction: column;
6429
5335
  overflow-y: auto;
6430
5336
  display: flex;
5337
+ text-align: left;
6431
5338
  `,
6432
- detailsHeader: css`
5339
+ detailsHeader: u`
6433
5340
  position: sticky;
6434
5341
  top: 0;
6435
5342
  z-index: 2;
@@ -6437,8 +5344,9 @@ var getStyles2 = () => {
6437
5344
  padding: ${tokens.size[2]} ${tokens.size[2]};
6438
5345
  font-weight: ${font.weight.medium};
6439
5346
  font-size: ${font.size.sm};
5347
+ text-align: left;
6440
5348
  `,
6441
- detailsBody: css`
5349
+ detailsBody: u`
6442
5350
  margin: ${tokens.size[2]} 0px ${tokens.size[3]} 0px;
6443
5351
  & > div {
6444
5352
  display: flex;
@@ -6459,19 +5367,19 @@ var getStyles2 = () => {
6459
5367
  }
6460
5368
 
6461
5369
  & code {
6462
- font-family: 'Menlo', 'Fira Code', monospace !important;
5370
+ font-family: 'Menlo', 'Fira Code', monospace;
6463
5371
  margin: 0;
6464
5372
  font-size: ${font.size.sm};
6465
5373
  line-height: ${font.lineHeight.sm};
6466
5374
  }
6467
5375
  `,
6468
- queryDetailsStatus: css`
5376
+ queryDetailsStatus: u`
6469
5377
  border: 1px solid ${colors.darkGray[200]};
6470
5378
  border-radius: ${tokens.border.radius.md};
6471
5379
  font-weight: ${font.weight.medium};
6472
5380
  padding: ${tokens.size[1]} ${tokens.size[2.5]};
6473
5381
  `,
6474
- actionsBody: css`
5382
+ actionsBody: u`
6475
5383
  flex-wrap: wrap;
6476
5384
  margin: ${tokens.size[3]} 0px ${tokens.size[3]} 0px;
6477
5385
  display: flex;
@@ -6510,7 +5418,7 @@ var getStyles2 = () => {
6510
5418
  }
6511
5419
  }
6512
5420
  `,
6513
- actionsSelect: css`
5421
+ actionsSelect: u`
6514
5422
  font-size: ${font.size.sm};
6515
5423
  padding: ${tokens.size[2]} ${tokens.size[2]};
6516
5424
  display: flex;
@@ -6552,10 +5460,10 @@ var getStyles2 = () => {
6552
5460
  }
6553
5461
 
6554
5462
  & svg path {
6555
- stroke: ${tokens.colors.red[400]} !important;
5463
+ stroke: ${tokens.colors.red[400]};
6556
5464
  }
6557
5465
  `,
6558
- settingsMenu: css`
5466
+ settingsMenu: u`
6559
5467
  position: absolute;
6560
5468
  top: calc(100% + ${tokens.size[2]});
6561
5469
  border-radius: ${tokens.border.radius.lg};
@@ -6567,12 +5475,12 @@ var getStyles2 = () => {
6567
5475
  color: ${colors.gray[500]};
6568
5476
  z-index: 7;
6569
5477
  `,
6570
- settingsMenuHeader: css`
5478
+ settingsMenuHeader: u`
6571
5479
  padding: ${tokens.size[1.5]} ${tokens.size[2.5]};
6572
5480
  color: ${colors.gray[300]};
6573
5481
  font-weight: ${font.weight.medium};
6574
5482
  `,
6575
- settingsMenuSection: css`
5483
+ settingsMenuSection: u`
6576
5484
  border-top: 1px solid ${colors.gray[600]};
6577
5485
  display: flex;
6578
5486
  flex-direction: column;