@tanstack/query-devtools 5.0.0-alpha.83 → 5.0.0-alpha.86
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/{Devtools-db0a46c4.cjs → Devtools-5eee2153.cjs} +2298 -2300
- package/dist/cjs/Devtools-5eee2153.cjs.map +1 -0
- package/dist/cjs/{index-ac83639f.cjs → index-94a2ab18.cjs} +2 -2
- package/dist/cjs/{index-ac83639f.cjs.map → index-94a2ab18.cjs.map} +1 -1
- package/dist/cjs/index.cjs +1 -1
- package/dist/esm/{Devtools-5d9adcd8.js → Devtools-74e35f67.js} +2298 -2300
- package/dist/esm/Devtools-74e35f67.js.map +1 -0
- package/dist/esm/{index-339c169d.js → index-7b089165.js} +3 -3
- package/dist/esm/{index-339c169d.js.map → index-7b089165.js.map} +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/source/Devtools.jsx +7 -9
- package/dist/source/Explorer.jsx +3 -3
- package/dist/types/Context.d.ts +1 -1
- package/dist/types/Devtools.d.ts +2 -2
- package/dist/types/index.d.ts +1 -1
- package/package.json +2 -2
- package/src/Context.ts +1 -1
- package/src/Devtools.tsx +18 -20
- package/src/Explorer.tsx +3 -3
- package/src/index.tsx +3 -3
- package/src/utils.tsx +1 -1
- package/dist/cjs/Devtools-db0a46c4.cjs.map +0 -1
- package/dist/esm/Devtools-5d9adcd8.js.map +0 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index = require('./index-
|
|
3
|
+
var index = require('./index-94a2ab18.cjs');
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
6
|
* match-sorter-utils
|
|
@@ -2541,1201 +2541,1009 @@ var _createEmotion = createEmotion({
|
|
|
2541
2541
|
cx = _createEmotion.cx,
|
|
2542
2542
|
css = _createEmotion.css;
|
|
2543
2543
|
|
|
2544
|
-
|
|
2545
|
-
|
|
2546
|
-
|
|
2547
|
-
|
|
2548
|
-
|
|
2549
|
-
|
|
2550
|
-
|
|
2551
|
-
|
|
2552
|
-
|
|
2553
|
-
|
|
2554
|
-
|
|
2555
|
-
return ShadowVariants[variant].replace(/color/g, color);
|
|
2556
|
-
};
|
|
2557
|
-
const Shadow = {
|
|
2558
|
-
xs: (color = 'rgb(0 0 0 / 0.1)') => getShadow('xs', color),
|
|
2559
|
-
sm: (color = 'rgb(0 0 0 / 0.1)') => getShadow('sm', color),
|
|
2560
|
-
md: (color = 'rgb(0 0 0 / 0.1)') => getShadow('md', color),
|
|
2561
|
-
lg: (color = 'rgb(0 0 0 / 0.1)') => getShadow('lg', color),
|
|
2562
|
-
xl: (color = 'rgb(0 0 0 / 0.1)') => getShadow('xl', color),
|
|
2563
|
-
'2xl': (color = 'rgb(0 0 0 / 0.25)') => getShadow('2xl', color),
|
|
2564
|
-
inner: (color = 'rgb(0 0 0 / 0.05)') => getShadow('inner', color),
|
|
2565
|
-
none: () => getShadow('none')
|
|
2566
|
-
};
|
|
2567
|
-
const tokens = {
|
|
2568
|
-
colors: {
|
|
2569
|
-
inherit: 'inherit',
|
|
2570
|
-
current: 'currentColor',
|
|
2571
|
-
transparent: 'transparent',
|
|
2572
|
-
black: '#000000',
|
|
2573
|
-
white: '#ffffff',
|
|
2574
|
-
neutral: {
|
|
2575
|
-
50: '#f9fafb',
|
|
2576
|
-
100: '#f2f4f7',
|
|
2577
|
-
200: '#eaecf0',
|
|
2578
|
-
300: '#d0d5dd',
|
|
2579
|
-
400: '#98a2b3',
|
|
2580
|
-
500: '#667085',
|
|
2581
|
-
600: '#475467',
|
|
2582
|
-
700: '#344054',
|
|
2583
|
-
800: '#1d2939',
|
|
2584
|
-
900: '#101828'
|
|
2585
|
-
},
|
|
2586
|
-
darkGray: {
|
|
2587
|
-
50: '#525c7a',
|
|
2588
|
-
100: '#49536e',
|
|
2589
|
-
200: '#414962',
|
|
2590
|
-
300: '#394056',
|
|
2591
|
-
400: '#313749',
|
|
2592
|
-
500: '#292e3d',
|
|
2593
|
-
600: '#212530',
|
|
2594
|
-
700: '#191c24',
|
|
2595
|
-
800: '#111318',
|
|
2596
|
-
900: '#0b0d10'
|
|
2597
|
-
},
|
|
2598
|
-
gray: {
|
|
2599
|
-
50: '#f9fafb',
|
|
2600
|
-
100: '#f2f4f7',
|
|
2601
|
-
200: '#eaecf0',
|
|
2602
|
-
300: '#d0d5dd',
|
|
2603
|
-
400: '#98a2b3',
|
|
2604
|
-
500: '#667085',
|
|
2605
|
-
600: '#475467',
|
|
2606
|
-
700: '#344054',
|
|
2607
|
-
800: '#1d2939',
|
|
2608
|
-
900: '#101828'
|
|
2609
|
-
},
|
|
2610
|
-
blue: {
|
|
2611
|
-
25: '#F5FAFF',
|
|
2612
|
-
50: '#EFF8FF',
|
|
2613
|
-
100: '#D1E9FF',
|
|
2614
|
-
200: '#B2DDFF',
|
|
2615
|
-
300: '#84CAFF',
|
|
2616
|
-
400: '#53B1FD',
|
|
2617
|
-
500: '#2E90FA',
|
|
2618
|
-
600: '#1570EF',
|
|
2619
|
-
700: '#175CD3',
|
|
2620
|
-
800: '#1849A9',
|
|
2621
|
-
900: '#194185'
|
|
2622
|
-
},
|
|
2623
|
-
green: {
|
|
2624
|
-
25: '#F6FEF9',
|
|
2625
|
-
50: '#ECFDF3',
|
|
2626
|
-
100: '#D1FADF',
|
|
2627
|
-
200: '#A6F4C5',
|
|
2628
|
-
300: '#6CE9A6',
|
|
2629
|
-
400: '#32D583',
|
|
2630
|
-
500: '#12B76A',
|
|
2631
|
-
600: '#039855',
|
|
2632
|
-
700: '#027A48',
|
|
2633
|
-
800: '#05603A',
|
|
2634
|
-
900: '#054F31'
|
|
2635
|
-
},
|
|
2636
|
-
red: {
|
|
2637
|
-
25: '#FFFBFA',
|
|
2638
|
-
50: '#FEF3F2',
|
|
2639
|
-
100: '#FEE4E2',
|
|
2640
|
-
200: '#FECDCA',
|
|
2641
|
-
300: '#FDA29B',
|
|
2642
|
-
400: '#F97066',
|
|
2643
|
-
500: '#F04438',
|
|
2644
|
-
600: '#D92D20',
|
|
2645
|
-
700: '#B42318',
|
|
2646
|
-
800: '#912018',
|
|
2647
|
-
900: '#7A271A'
|
|
2648
|
-
},
|
|
2649
|
-
yellow: {
|
|
2650
|
-
25: '#FFFCF5',
|
|
2651
|
-
50: '#FFFAEB',
|
|
2652
|
-
100: '#FEF0C7',
|
|
2653
|
-
200: '#FEDF89',
|
|
2654
|
-
300: '#FEC84B',
|
|
2655
|
-
400: '#FDB022',
|
|
2656
|
-
500: '#F79009',
|
|
2657
|
-
600: '#DC6803',
|
|
2658
|
-
700: '#B54708',
|
|
2659
|
-
800: '#93370D',
|
|
2660
|
-
900: '#7A2E0E'
|
|
2661
|
-
},
|
|
2662
|
-
purple: {
|
|
2663
|
-
25: '#FAFAFF',
|
|
2664
|
-
50: '#F4F3FF',
|
|
2665
|
-
100: '#EBE9FE',
|
|
2666
|
-
200: '#D9D6FE',
|
|
2667
|
-
300: '#BDB4FE',
|
|
2668
|
-
400: '#9B8AFB',
|
|
2669
|
-
500: '#7A5AF8',
|
|
2670
|
-
600: '#6938EF',
|
|
2671
|
-
700: '#5925DC',
|
|
2672
|
-
800: '#4A1FB8',
|
|
2673
|
-
900: '#3E1C96'
|
|
2674
|
-
},
|
|
2675
|
-
teal: {
|
|
2676
|
-
25: '#F6FEFC',
|
|
2677
|
-
50: '#F0FDF9',
|
|
2678
|
-
100: '#CCFBEF',
|
|
2679
|
-
200: '#99F6E0',
|
|
2680
|
-
300: '#5FE9D0',
|
|
2681
|
-
400: '#2ED3B7',
|
|
2682
|
-
500: '#15B79E',
|
|
2683
|
-
600: '#0E9384',
|
|
2684
|
-
700: '#107569',
|
|
2685
|
-
800: '#125D56',
|
|
2686
|
-
900: '#134E48'
|
|
2687
|
-
},
|
|
2688
|
-
pink: {
|
|
2689
|
-
25: '#fdf2f8',
|
|
2690
|
-
50: '#fce7f3',
|
|
2691
|
-
100: '#fbcfe8',
|
|
2692
|
-
200: '#f9a8d4',
|
|
2693
|
-
300: '#f472b6',
|
|
2694
|
-
400: '#ec4899',
|
|
2695
|
-
500: '#db2777',
|
|
2696
|
-
600: '#be185d',
|
|
2697
|
-
700: '#9d174d',
|
|
2698
|
-
800: '#831843',
|
|
2699
|
-
900: '#500724'
|
|
2700
|
-
},
|
|
2701
|
-
cyan: {
|
|
2702
|
-
25: '#ecfeff',
|
|
2703
|
-
50: '#cffafe',
|
|
2704
|
-
100: '#a5f3fc',
|
|
2705
|
-
200: '#67e8f9',
|
|
2706
|
-
300: '#22d3ee',
|
|
2707
|
-
400: '#06b6d4',
|
|
2708
|
-
500: '#0891b2',
|
|
2709
|
-
600: '#0e7490',
|
|
2710
|
-
700: '#155e75',
|
|
2711
|
-
800: '#164e63',
|
|
2712
|
-
900: '#083344'
|
|
2713
|
-
}
|
|
2714
|
-
},
|
|
2715
|
-
alpha: {
|
|
2716
|
-
100: 'ff',
|
|
2717
|
-
90: 'e5',
|
|
2718
|
-
80: 'cc',
|
|
2719
|
-
70: 'b3',
|
|
2720
|
-
60: '99',
|
|
2721
|
-
50: '80',
|
|
2722
|
-
40: '66',
|
|
2723
|
-
30: '4d',
|
|
2724
|
-
20: '33',
|
|
2725
|
-
10: '1a',
|
|
2726
|
-
0: '00'
|
|
2727
|
-
},
|
|
2728
|
-
font: {
|
|
2729
|
-
size: {
|
|
2730
|
-
'2xs': '0.625rem',
|
|
2731
|
-
xs: '0.75rem',
|
|
2732
|
-
sm: '0.875rem',
|
|
2733
|
-
md: '1rem',
|
|
2734
|
-
lg: '1.125rem',
|
|
2735
|
-
xl: '1.25rem',
|
|
2736
|
-
'2xl': '1.5rem',
|
|
2737
|
-
'3xl': '1.875rem',
|
|
2738
|
-
'4xl': '2.25rem',
|
|
2739
|
-
'5xl': '3rem',
|
|
2740
|
-
'6xl': '3.75rem',
|
|
2741
|
-
'7xl': '4.5rem',
|
|
2742
|
-
'8xl': '6rem',
|
|
2743
|
-
'9xl': '8rem'
|
|
2744
|
-
},
|
|
2745
|
-
lineHeight: {
|
|
2746
|
-
xs: '1rem',
|
|
2747
|
-
sm: '1.25rem',
|
|
2748
|
-
md: '1.5rem',
|
|
2749
|
-
lg: '1.75rem',
|
|
2750
|
-
xl: '1.75rem',
|
|
2751
|
-
'2xl': '2rem',
|
|
2752
|
-
'3xl': '2.25rem',
|
|
2753
|
-
'4xl': '2.5rem',
|
|
2754
|
-
'5xl': '1',
|
|
2755
|
-
'6xl': '1',
|
|
2756
|
-
'7xl': '1',
|
|
2757
|
-
'8xl': '1',
|
|
2758
|
-
'9xl': '1'
|
|
2759
|
-
},
|
|
2760
|
-
weight: {
|
|
2761
|
-
thin: '100',
|
|
2762
|
-
extralight: '200',
|
|
2763
|
-
light: '300',
|
|
2764
|
-
normal: '400',
|
|
2765
|
-
medium: '500',
|
|
2766
|
-
semibold: '600',
|
|
2767
|
-
bold: '700',
|
|
2768
|
-
extrabold: '800',
|
|
2769
|
-
black: '900'
|
|
2770
|
-
}
|
|
2771
|
-
},
|
|
2772
|
-
breakpoints: {
|
|
2773
|
-
xs: '320px',
|
|
2774
|
-
sm: '640px',
|
|
2775
|
-
md: '768px',
|
|
2776
|
-
lg: '1024px',
|
|
2777
|
-
xl: '1280px',
|
|
2778
|
-
'2xl': '1536px'
|
|
2779
|
-
},
|
|
2780
|
-
border: {
|
|
2781
|
-
radius: {
|
|
2782
|
-
none: '0px',
|
|
2783
|
-
xs: '0.125rem',
|
|
2784
|
-
sm: '0.25rem',
|
|
2785
|
-
md: '0.375rem',
|
|
2786
|
-
lg: '0.5rem',
|
|
2787
|
-
xl: '0.75rem',
|
|
2788
|
-
'2xl': '1rem',
|
|
2789
|
-
'3xl': '1.5rem',
|
|
2790
|
-
full: '9999px'
|
|
2791
|
-
}
|
|
2792
|
-
},
|
|
2793
|
-
size: {
|
|
2794
|
-
0: '0px',
|
|
2795
|
-
0.25: '0.0625rem',
|
|
2796
|
-
0.5: '0.125rem',
|
|
2797
|
-
1: '0.25rem',
|
|
2798
|
-
1.5: '0.375rem',
|
|
2799
|
-
2: '0.5rem',
|
|
2800
|
-
2.5: '0.625rem',
|
|
2801
|
-
3: '0.75rem',
|
|
2802
|
-
3.5: '0.875rem',
|
|
2803
|
-
4: '1rem',
|
|
2804
|
-
4.5: '1.125rem',
|
|
2805
|
-
5: '1.25rem',
|
|
2806
|
-
6: '1.5rem',
|
|
2807
|
-
7: '1.75rem',
|
|
2808
|
-
8: '2rem',
|
|
2809
|
-
9: '2.25rem',
|
|
2810
|
-
10: '2.5rem',
|
|
2811
|
-
11: '2.75rem',
|
|
2812
|
-
12: '3rem',
|
|
2813
|
-
14: '3.5rem',
|
|
2814
|
-
16: '4rem',
|
|
2815
|
-
20: '5rem',
|
|
2816
|
-
24: '6rem',
|
|
2817
|
-
28: '7rem',
|
|
2818
|
-
32: '8rem',
|
|
2819
|
-
36: '9rem',
|
|
2820
|
-
40: '10rem',
|
|
2821
|
-
44: '11rem',
|
|
2822
|
-
48: '12rem',
|
|
2823
|
-
52: '13rem',
|
|
2824
|
-
56: '14rem',
|
|
2825
|
-
60: '15rem',
|
|
2826
|
-
64: '16rem',
|
|
2827
|
-
72: '18rem',
|
|
2828
|
-
80: '20rem',
|
|
2829
|
-
96: '24rem'
|
|
2830
|
-
},
|
|
2831
|
-
shadow: Shadow,
|
|
2832
|
-
zIndices: {
|
|
2833
|
-
hide: -1,
|
|
2834
|
-
auto: 'auto',
|
|
2835
|
-
base: 0,
|
|
2836
|
-
docked: 10,
|
|
2837
|
-
dropdown: 1000,
|
|
2838
|
-
sticky: 1100,
|
|
2839
|
-
banner: 1200,
|
|
2840
|
-
overlay: 1300,
|
|
2841
|
-
modal: 1400,
|
|
2842
|
-
popover: 1500,
|
|
2843
|
-
skipLink: 1600,
|
|
2844
|
-
toast: 1700,
|
|
2845
|
-
tooltip: 1800
|
|
2846
|
-
}
|
|
2847
|
-
};
|
|
2848
|
-
|
|
2849
|
-
var DoubleIndexedKV = /** @class */function () {
|
|
2850
|
-
function DoubleIndexedKV() {
|
|
2851
|
-
this.keyToValue = new Map();
|
|
2852
|
-
this.valueToKey = new Map();
|
|
2853
|
-
}
|
|
2854
|
-
DoubleIndexedKV.prototype.set = function (key, value) {
|
|
2855
|
-
this.keyToValue.set(key, value);
|
|
2856
|
-
this.valueToKey.set(value, key);
|
|
2857
|
-
};
|
|
2858
|
-
DoubleIndexedKV.prototype.getByKey = function (key) {
|
|
2859
|
-
return this.keyToValue.get(key);
|
|
2860
|
-
};
|
|
2861
|
-
DoubleIndexedKV.prototype.getByValue = function (value) {
|
|
2862
|
-
return this.valueToKey.get(value);
|
|
2863
|
-
};
|
|
2864
|
-
DoubleIndexedKV.prototype.clear = function () {
|
|
2865
|
-
this.keyToValue.clear();
|
|
2866
|
-
this.valueToKey.clear();
|
|
2867
|
-
};
|
|
2868
|
-
return DoubleIndexedKV;
|
|
2869
|
-
}();
|
|
2870
|
-
|
|
2871
|
-
var Registry = /** @class */function () {
|
|
2872
|
-
function Registry(generateIdentifier) {
|
|
2873
|
-
this.generateIdentifier = generateIdentifier;
|
|
2874
|
-
this.kv = new DoubleIndexedKV();
|
|
2875
|
-
}
|
|
2876
|
-
Registry.prototype.register = function (value, identifier) {
|
|
2877
|
-
if (this.kv.getByValue(value)) {
|
|
2878
|
-
return;
|
|
2879
|
-
}
|
|
2880
|
-
if (!identifier) {
|
|
2881
|
-
identifier = this.generateIdentifier(value);
|
|
2882
|
-
}
|
|
2883
|
-
this.kv.set(identifier, value);
|
|
2884
|
-
};
|
|
2885
|
-
Registry.prototype.clear = function () {
|
|
2886
|
-
this.kv.clear();
|
|
2887
|
-
};
|
|
2888
|
-
Registry.prototype.getIdentifier = function (value) {
|
|
2889
|
-
return this.kv.getByValue(value);
|
|
2890
|
-
};
|
|
2891
|
-
Registry.prototype.getValue = function (identifier) {
|
|
2892
|
-
return this.kv.getByKey(identifier);
|
|
2893
|
-
};
|
|
2894
|
-
return Registry;
|
|
2895
|
-
}();
|
|
2896
|
-
|
|
2897
|
-
var __extends = undefined && undefined.__extends || function () {
|
|
2898
|
-
var extendStatics = function (d, b) {
|
|
2899
|
-
extendStatics = Object.setPrototypeOf || {
|
|
2900
|
-
__proto__: []
|
|
2901
|
-
} instanceof Array && function (d, b) {
|
|
2902
|
-
d.__proto__ = b;
|
|
2903
|
-
} || function (d, b) {
|
|
2904
|
-
for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p];
|
|
2905
|
-
};
|
|
2906
|
-
return extendStatics(d, b);
|
|
2907
|
-
};
|
|
2908
|
-
return function (d, b) {
|
|
2909
|
-
if (typeof b !== "function" && b !== null) throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
2910
|
-
extendStatics(d, b);
|
|
2911
|
-
function __() {
|
|
2912
|
-
this.constructor = d;
|
|
2913
|
-
}
|
|
2914
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
2915
|
-
};
|
|
2916
|
-
}();
|
|
2917
|
-
var ClassRegistry = /** @class */function (_super) {
|
|
2918
|
-
__extends(ClassRegistry, _super);
|
|
2919
|
-
function ClassRegistry() {
|
|
2920
|
-
var _this = _super.call(this, function (c) {
|
|
2921
|
-
return c.name;
|
|
2922
|
-
}) || this;
|
|
2923
|
-
_this.classToAllowedProps = new Map();
|
|
2924
|
-
return _this;
|
|
2925
|
-
}
|
|
2926
|
-
ClassRegistry.prototype.register = function (value, options) {
|
|
2927
|
-
if (typeof options === 'object') {
|
|
2928
|
-
if (options.allowProps) {
|
|
2929
|
-
this.classToAllowedProps.set(value, options.allowProps);
|
|
2930
|
-
}
|
|
2931
|
-
_super.prototype.register.call(this, value, options.identifier);
|
|
2932
|
-
} else {
|
|
2933
|
-
_super.prototype.register.call(this, value, options);
|
|
2934
|
-
}
|
|
2935
|
-
};
|
|
2936
|
-
ClassRegistry.prototype.getAllowedProps = function (value) {
|
|
2937
|
-
return this.classToAllowedProps.get(value);
|
|
2938
|
-
};
|
|
2939
|
-
return ClassRegistry;
|
|
2940
|
-
}(Registry);
|
|
2941
|
-
|
|
2942
|
-
var __read$3 = undefined && undefined.__read || function (o, n) {
|
|
2943
|
-
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
|
2944
|
-
if (!m) return o;
|
|
2945
|
-
var i = m.call(o),
|
|
2946
|
-
r,
|
|
2947
|
-
ar = [],
|
|
2948
|
-
e;
|
|
2949
|
-
try {
|
|
2950
|
-
while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
|
|
2951
|
-
} catch (error) {
|
|
2952
|
-
e = {
|
|
2953
|
-
error: error
|
|
2954
|
-
};
|
|
2955
|
-
} finally {
|
|
2956
|
-
try {
|
|
2957
|
-
if (r && !r.done && (m = i["return"])) m.call(i);
|
|
2958
|
-
} finally {
|
|
2959
|
-
if (e) throw e.error;
|
|
2960
|
-
}
|
|
2961
|
-
}
|
|
2962
|
-
return ar;
|
|
2963
|
-
};
|
|
2964
|
-
function valuesOfObj(record) {
|
|
2965
|
-
if ('values' in Object) {
|
|
2966
|
-
// eslint-disable-next-line es5/no-es6-methods
|
|
2967
|
-
return Object.values(record);
|
|
2968
|
-
}
|
|
2969
|
-
var values = [];
|
|
2970
|
-
// eslint-disable-next-line no-restricted-syntax
|
|
2971
|
-
for (var key in record) {
|
|
2972
|
-
if (record.hasOwnProperty(key)) {
|
|
2973
|
-
values.push(record[key]);
|
|
2974
|
-
}
|
|
2975
|
-
}
|
|
2976
|
-
return values;
|
|
2977
|
-
}
|
|
2978
|
-
function find(record, predicate) {
|
|
2979
|
-
var values = valuesOfObj(record);
|
|
2980
|
-
if ('find' in values) {
|
|
2981
|
-
// eslint-disable-next-line es5/no-es6-methods
|
|
2982
|
-
return values.find(predicate);
|
|
2983
|
-
}
|
|
2984
|
-
var valuesNotNever = values;
|
|
2985
|
-
for (var i = 0; i < valuesNotNever.length; i++) {
|
|
2986
|
-
var value = valuesNotNever[i];
|
|
2987
|
-
if (predicate(value)) {
|
|
2988
|
-
return value;
|
|
2989
|
-
}
|
|
2990
|
-
}
|
|
2991
|
-
return undefined;
|
|
2992
|
-
}
|
|
2993
|
-
function forEach(record, run) {
|
|
2994
|
-
Object.entries(record).forEach(function (_a) {
|
|
2995
|
-
var _b = __read$3(_a, 2),
|
|
2996
|
-
key = _b[0],
|
|
2997
|
-
value = _b[1];
|
|
2998
|
-
return run(value, key);
|
|
2544
|
+
// src/index.ts
|
|
2545
|
+
var noop = () => {};
|
|
2546
|
+
function createListTransition(source, options) {
|
|
2547
|
+
const initSource = index.untrack(source);
|
|
2548
|
+
const {
|
|
2549
|
+
onChange
|
|
2550
|
+
} = options;
|
|
2551
|
+
let prevSet = new Set(options.appear ? void 0 : initSource);
|
|
2552
|
+
const exiting = /* @__PURE__ */new WeakSet();
|
|
2553
|
+
const [toRemove, setToRemove] = index.createSignal([], {
|
|
2554
|
+
equals: false
|
|
2999
2555
|
});
|
|
3000
|
-
|
|
3001
|
-
|
|
3002
|
-
|
|
3003
|
-
|
|
3004
|
-
function findArr(record, predicate) {
|
|
3005
|
-
for (var i = 0; i < record.length; i++) {
|
|
3006
|
-
var value = record[i];
|
|
3007
|
-
if (predicate(value)) {
|
|
3008
|
-
return value;
|
|
3009
|
-
}
|
|
3010
|
-
}
|
|
3011
|
-
return undefined;
|
|
3012
|
-
}
|
|
3013
|
-
|
|
3014
|
-
var CustomTransformerRegistry = /** @class */function () {
|
|
3015
|
-
function CustomTransformerRegistry() {
|
|
3016
|
-
this.transfomers = {};
|
|
3017
|
-
}
|
|
3018
|
-
CustomTransformerRegistry.prototype.register = function (transformer) {
|
|
3019
|
-
this.transfomers[transformer.name] = transformer;
|
|
3020
|
-
};
|
|
3021
|
-
CustomTransformerRegistry.prototype.findApplicable = function (v) {
|
|
3022
|
-
return find(this.transfomers, function (transformer) {
|
|
3023
|
-
return transformer.isApplicable(v);
|
|
3024
|
-
});
|
|
3025
|
-
};
|
|
3026
|
-
CustomTransformerRegistry.prototype.findByName = function (name) {
|
|
3027
|
-
return this.transfomers[name];
|
|
2556
|
+
const [isTransitionPending] = index.useTransition();
|
|
2557
|
+
const finishRemoved = options.exitMethod === "remove" ? noop : els => {
|
|
2558
|
+
setToRemove(p => (p.push.apply(p, els), p));
|
|
2559
|
+
for (const el of els) exiting.delete(el);
|
|
3028
2560
|
};
|
|
3029
|
-
|
|
3030
|
-
|
|
3031
|
-
|
|
3032
|
-
|
|
3033
|
-
|
|
3034
|
-
|
|
3035
|
-
|
|
3036
|
-
|
|
3037
|
-
};
|
|
3038
|
-
var isNull = function (payload) {
|
|
3039
|
-
return payload === null;
|
|
3040
|
-
};
|
|
3041
|
-
var isPlainObject$1 = function (payload) {
|
|
3042
|
-
if (typeof payload !== 'object' || payload === null) return false;
|
|
3043
|
-
if (payload === Object.prototype) return false;
|
|
3044
|
-
if (Object.getPrototypeOf(payload) === null) return true;
|
|
3045
|
-
return Object.getPrototypeOf(payload) === Object.prototype;
|
|
3046
|
-
};
|
|
3047
|
-
var isEmptyObject = function (payload) {
|
|
3048
|
-
return isPlainObject$1(payload) && Object.keys(payload).length === 0;
|
|
3049
|
-
};
|
|
3050
|
-
var isArray$1 = function (payload) {
|
|
3051
|
-
return Array.isArray(payload);
|
|
3052
|
-
};
|
|
3053
|
-
var isString = function (payload) {
|
|
3054
|
-
return typeof payload === 'string';
|
|
3055
|
-
};
|
|
3056
|
-
var isNumber = function (payload) {
|
|
3057
|
-
return typeof payload === 'number' && !isNaN(payload);
|
|
3058
|
-
};
|
|
3059
|
-
var isBoolean = function (payload) {
|
|
3060
|
-
return typeof payload === 'boolean';
|
|
3061
|
-
};
|
|
3062
|
-
var isRegExp = function (payload) {
|
|
3063
|
-
return payload instanceof RegExp;
|
|
3064
|
-
};
|
|
3065
|
-
var isMap = function (payload) {
|
|
3066
|
-
return payload instanceof Map;
|
|
3067
|
-
};
|
|
3068
|
-
var isSet = function (payload) {
|
|
3069
|
-
return payload instanceof Set;
|
|
3070
|
-
};
|
|
3071
|
-
var isSymbol = function (payload) {
|
|
3072
|
-
return getType$1(payload) === 'Symbol';
|
|
3073
|
-
};
|
|
3074
|
-
var isDate = function (payload) {
|
|
3075
|
-
return payload instanceof Date && !isNaN(payload.valueOf());
|
|
3076
|
-
};
|
|
3077
|
-
var isError = function (payload) {
|
|
3078
|
-
return payload instanceof Error;
|
|
3079
|
-
};
|
|
3080
|
-
var isNaNValue = function (payload) {
|
|
3081
|
-
return typeof payload === 'number' && isNaN(payload);
|
|
3082
|
-
};
|
|
3083
|
-
var isPrimitive = function (payload) {
|
|
3084
|
-
return isBoolean(payload) || isNull(payload) || isUndefined(payload) || isNumber(payload) || isString(payload) || isSymbol(payload);
|
|
3085
|
-
};
|
|
3086
|
-
var isBigint = function (payload) {
|
|
3087
|
-
return typeof payload === 'bigint';
|
|
3088
|
-
};
|
|
3089
|
-
var isInfinite = function (payload) {
|
|
3090
|
-
return payload === Infinity || payload === -Infinity;
|
|
3091
|
-
};
|
|
3092
|
-
var isTypedArray = function (payload) {
|
|
3093
|
-
return ArrayBuffer.isView(payload) && !(payload instanceof DataView);
|
|
3094
|
-
};
|
|
3095
|
-
var isURL = function (payload) {
|
|
3096
|
-
return payload instanceof URL;
|
|
3097
|
-
};
|
|
3098
|
-
|
|
3099
|
-
var escapeKey = function (key) {
|
|
3100
|
-
return key.replace(/\./g, '\\.');
|
|
3101
|
-
};
|
|
3102
|
-
var stringifyPath = function (path) {
|
|
3103
|
-
return path.map(String).map(escapeKey).join('.');
|
|
3104
|
-
};
|
|
3105
|
-
var parsePath = function (string) {
|
|
3106
|
-
var result = [];
|
|
3107
|
-
var segment = '';
|
|
3108
|
-
for (var i = 0; i < string.length; i++) {
|
|
3109
|
-
var char = string.charAt(i);
|
|
3110
|
-
var isEscapedDot = char === '\\' && string.charAt(i + 1) === '.';
|
|
3111
|
-
if (isEscapedDot) {
|
|
3112
|
-
segment += '.';
|
|
3113
|
-
i++;
|
|
3114
|
-
continue;
|
|
3115
|
-
}
|
|
3116
|
-
var isEndOfSegment = char === '.';
|
|
3117
|
-
if (isEndOfSegment) {
|
|
3118
|
-
result.push(segment);
|
|
3119
|
-
segment = '';
|
|
3120
|
-
continue;
|
|
3121
|
-
}
|
|
3122
|
-
segment += char;
|
|
3123
|
-
}
|
|
3124
|
-
var lastSegment = segment;
|
|
3125
|
-
result.push(lastSegment);
|
|
3126
|
-
return result;
|
|
3127
|
-
};
|
|
3128
|
-
|
|
3129
|
-
var __assign$1 = undefined && undefined.__assign || function () {
|
|
3130
|
-
__assign$1 = Object.assign || function (t) {
|
|
3131
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
3132
|
-
s = arguments[i];
|
|
3133
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
|
|
2561
|
+
const handleRemoved = options.exitMethod === "remove" ? noop : options.exitMethod === "keep-index" ? (els, el, i) => els.splice(i, 0, el) : (els, el) => els.push(el);
|
|
2562
|
+
return index.createMemo(prev => {
|
|
2563
|
+
const elsToRemove = toRemove();
|
|
2564
|
+
const sourceList = source();
|
|
2565
|
+
sourceList[index.$TRACK];
|
|
2566
|
+
if (index.untrack(isTransitionPending)) {
|
|
2567
|
+
isTransitionPending();
|
|
2568
|
+
return prev;
|
|
3134
2569
|
}
|
|
3135
|
-
|
|
3136
|
-
|
|
3137
|
-
|
|
3138
|
-
|
|
3139
|
-
|
|
3140
|
-
|
|
3141
|
-
|
|
3142
|
-
|
|
3143
|
-
|
|
3144
|
-
|
|
3145
|
-
|
|
3146
|
-
try {
|
|
3147
|
-
while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
|
|
3148
|
-
} catch (error) {
|
|
3149
|
-
e = {
|
|
3150
|
-
error: error
|
|
3151
|
-
};
|
|
3152
|
-
} finally {
|
|
3153
|
-
try {
|
|
3154
|
-
if (r && !r.done && (m = i["return"])) m.call(i);
|
|
3155
|
-
} finally {
|
|
3156
|
-
if (e) throw e.error;
|
|
2570
|
+
if (elsToRemove.length) {
|
|
2571
|
+
const next = prev.filter(e => !elsToRemove.includes(e));
|
|
2572
|
+
elsToRemove.length = 0;
|
|
2573
|
+
onChange({
|
|
2574
|
+
list: next,
|
|
2575
|
+
added: [],
|
|
2576
|
+
removed: [],
|
|
2577
|
+
unchanged: next,
|
|
2578
|
+
finishRemoved
|
|
2579
|
+
});
|
|
2580
|
+
return next;
|
|
3157
2581
|
}
|
|
3158
|
-
|
|
3159
|
-
|
|
3160
|
-
|
|
3161
|
-
|
|
3162
|
-
|
|
3163
|
-
|
|
3164
|
-
|
|
3165
|
-
|
|
3166
|
-
|
|
3167
|
-
|
|
3168
|
-
|
|
3169
|
-
|
|
3170
|
-
|
|
3171
|
-
|
|
3172
|
-
|
|
3173
|
-
|
|
3174
|
-
|
|
3175
|
-
|
|
3176
|
-
|
|
3177
|
-
|
|
3178
|
-
|
|
3179
|
-
|
|
3180
|
-
|
|
3181
|
-
|
|
3182
|
-
|
|
3183
|
-
|
|
3184
|
-
|
|
3185
|
-
|
|
3186
|
-
|
|
3187
|
-
|
|
3188
|
-
|
|
3189
|
-
})
|
|
3190
|
-
|
|
3191
|
-
name: v.name,
|
|
3192
|
-
message: v.message
|
|
3193
|
-
};
|
|
3194
|
-
superJson.allowedErrorProps.forEach(function (prop) {
|
|
3195
|
-
baseError[prop] = v[prop];
|
|
3196
|
-
});
|
|
3197
|
-
return baseError;
|
|
3198
|
-
}, function (v, superJson) {
|
|
3199
|
-
var e = new Error(v.message);
|
|
3200
|
-
e.name = v.name;
|
|
3201
|
-
e.stack = v.stack;
|
|
3202
|
-
superJson.allowedErrorProps.forEach(function (prop) {
|
|
3203
|
-
e[prop] = v[prop];
|
|
3204
|
-
});
|
|
3205
|
-
return e;
|
|
3206
|
-
}), simpleTransformation(isRegExp, 'regexp', function (v) {
|
|
3207
|
-
return '' + v;
|
|
3208
|
-
}, function (regex) {
|
|
3209
|
-
var body = regex.slice(1, regex.lastIndexOf('/'));
|
|
3210
|
-
var flags = regex.slice(regex.lastIndexOf('/') + 1);
|
|
3211
|
-
return new RegExp(body, flags);
|
|
3212
|
-
}), simpleTransformation(isSet, 'set',
|
|
3213
|
-
// (sets only exist in es6+)
|
|
3214
|
-
// eslint-disable-next-line es5/no-es6-methods
|
|
3215
|
-
function (v) {
|
|
3216
|
-
return __spreadArray$2([], __read$2(v.values()));
|
|
3217
|
-
}, function (v) {
|
|
3218
|
-
return new Set(v);
|
|
3219
|
-
}), simpleTransformation(isMap, 'map', function (v) {
|
|
3220
|
-
return __spreadArray$2([], __read$2(v.entries()));
|
|
3221
|
-
}, function (v) {
|
|
3222
|
-
return new Map(v);
|
|
3223
|
-
}), simpleTransformation(function (v) {
|
|
3224
|
-
return isNaNValue(v) || isInfinite(v);
|
|
3225
|
-
}, 'number', function (v) {
|
|
3226
|
-
if (isNaNValue(v)) {
|
|
3227
|
-
return 'NaN';
|
|
3228
|
-
}
|
|
3229
|
-
if (v > 0) {
|
|
3230
|
-
return 'Infinity';
|
|
3231
|
-
} else {
|
|
3232
|
-
return '-Infinity';
|
|
3233
|
-
}
|
|
3234
|
-
}, Number), simpleTransformation(function (v) {
|
|
3235
|
-
return v === 0 && 1 / v === -Infinity;
|
|
3236
|
-
}, 'number', function () {
|
|
3237
|
-
return '-0';
|
|
3238
|
-
}, Number), simpleTransformation(isURL, 'URL', function (v) {
|
|
3239
|
-
return v.toString();
|
|
3240
|
-
}, function (v) {
|
|
3241
|
-
return new URL(v);
|
|
3242
|
-
})];
|
|
3243
|
-
function compositeTransformation(isApplicable, annotation, transform, untransform) {
|
|
3244
|
-
return {
|
|
3245
|
-
isApplicable: isApplicable,
|
|
3246
|
-
annotation: annotation,
|
|
3247
|
-
transform: transform,
|
|
3248
|
-
untransform: untransform
|
|
3249
|
-
};
|
|
2582
|
+
return index.untrack(() => {
|
|
2583
|
+
const nextSet = new Set(sourceList);
|
|
2584
|
+
const next = sourceList.slice();
|
|
2585
|
+
const added = [];
|
|
2586
|
+
const removed = [];
|
|
2587
|
+
const unchanged = [];
|
|
2588
|
+
for (const el of sourceList) {
|
|
2589
|
+
(prevSet.has(el) ? unchanged : added).push(el);
|
|
2590
|
+
}
|
|
2591
|
+
let nothingChanged = !added.length;
|
|
2592
|
+
for (let i = 0; i < prev.length; i++) {
|
|
2593
|
+
const el = prev[i];
|
|
2594
|
+
if (!nextSet.has(el)) {
|
|
2595
|
+
if (!exiting.has(el)) {
|
|
2596
|
+
removed.push(el);
|
|
2597
|
+
exiting.add(el);
|
|
2598
|
+
}
|
|
2599
|
+
handleRemoved(next, el, i);
|
|
2600
|
+
}
|
|
2601
|
+
if (nothingChanged && el !== next[i]) nothingChanged = false;
|
|
2602
|
+
}
|
|
2603
|
+
if (!removed.length && nothingChanged) return prev;
|
|
2604
|
+
onChange({
|
|
2605
|
+
list: next,
|
|
2606
|
+
added,
|
|
2607
|
+
removed,
|
|
2608
|
+
unchanged,
|
|
2609
|
+
finishRemoved
|
|
2610
|
+
});
|
|
2611
|
+
prevSet = nextSet;
|
|
2612
|
+
return next;
|
|
2613
|
+
});
|
|
2614
|
+
}, options.appear ? [] : initSource.slice());
|
|
3250
2615
|
}
|
|
3251
|
-
|
|
3252
|
-
|
|
3253
|
-
|
|
3254
|
-
|
|
3255
|
-
|
|
3256
|
-
|
|
3257
|
-
|
|
3258
|
-
|
|
3259
|
-
|
|
3260
|
-
|
|
3261
|
-
|
|
3262
|
-
|
|
3263
|
-
var value = superJson.symbolRegistry.getValue(a[1]);
|
|
3264
|
-
if (!value) {
|
|
3265
|
-
throw new Error('Trying to deserialize unknown symbol');
|
|
2616
|
+
|
|
2617
|
+
var isNonNullable = i => i != null;
|
|
2618
|
+
var filterNonNullable = arr => arr.filter(isNonNullable);
|
|
2619
|
+
var access = v => typeof v === "function" && !v.length ? v() : v;
|
|
2620
|
+
var asArray = value => Array.isArray(value) ? value : value ? [value] : [];
|
|
2621
|
+
function handleDiffArray(current, prev, handleAdded, handleRemoved) {
|
|
2622
|
+
const currLength = current.length;
|
|
2623
|
+
const prevLength = prev.length;
|
|
2624
|
+
let i = 0;
|
|
2625
|
+
if (!prevLength) {
|
|
2626
|
+
for (; i < currLength; i++) handleAdded(current[i]);
|
|
2627
|
+
return;
|
|
3266
2628
|
}
|
|
3267
|
-
|
|
3268
|
-
|
|
3269
|
-
|
|
3270
|
-
obj[ctor.name] = ctor;
|
|
3271
|
-
return obj;
|
|
3272
|
-
}, {});
|
|
3273
|
-
var typedArrayRule = compositeTransformation(isTypedArray, function (v) {
|
|
3274
|
-
return ['typed-array', v.constructor.name];
|
|
3275
|
-
}, function (v) {
|
|
3276
|
-
return __spreadArray$2([], __read$2(v));
|
|
3277
|
-
}, function (v, a) {
|
|
3278
|
-
var ctor = constructorToName[a[1]];
|
|
3279
|
-
if (!ctor) {
|
|
3280
|
-
throw new Error('Trying to deserialize unknown typed array');
|
|
2629
|
+
if (!currLength) {
|
|
2630
|
+
for (; i < prevLength; i++) handleRemoved(prev[i]);
|
|
2631
|
+
return;
|
|
3281
2632
|
}
|
|
3282
|
-
|
|
3283
|
-
|
|
3284
|
-
function isInstanceOfRegisteredClass(potentialClass, superJson) {
|
|
3285
|
-
if (potentialClass === null || potentialClass === void 0 ? void 0 : potentialClass.constructor) {
|
|
3286
|
-
var isRegistered = !!superJson.classRegistry.getIdentifier(potentialClass.constructor);
|
|
3287
|
-
return isRegistered;
|
|
2633
|
+
for (; i < prevLength; i++) {
|
|
2634
|
+
if (prev[i] !== current[i]) break;
|
|
3288
2635
|
}
|
|
3289
|
-
|
|
3290
|
-
|
|
3291
|
-
|
|
3292
|
-
|
|
3293
|
-
|
|
3294
|
-
|
|
3295
|
-
var allowedProps = superJson.classRegistry.getAllowedProps(clazz.constructor);
|
|
3296
|
-
if (!allowedProps) {
|
|
3297
|
-
return __assign$1({}, clazz);
|
|
2636
|
+
let prevEl;
|
|
2637
|
+
let currEl;
|
|
2638
|
+
prev = prev.slice(i);
|
|
2639
|
+
current = current.slice(i);
|
|
2640
|
+
for (prevEl of prev) {
|
|
2641
|
+
if (!current.includes(prevEl)) handleRemoved(prevEl);
|
|
3298
2642
|
}
|
|
3299
|
-
|
|
3300
|
-
|
|
3301
|
-
result[prop] = clazz[prop];
|
|
3302
|
-
});
|
|
3303
|
-
return result;
|
|
3304
|
-
}, function (v, a, superJson) {
|
|
3305
|
-
var clazz = superJson.classRegistry.getValue(a[1]);
|
|
3306
|
-
if (!clazz) {
|
|
3307
|
-
throw new Error('Trying to deserialize unknown class - check https://github.com/blitz-js/superjson/issues/116#issuecomment-773996564');
|
|
2643
|
+
for (currEl of current) {
|
|
2644
|
+
if (!prev.includes(currEl)) handleAdded(currEl);
|
|
3308
2645
|
}
|
|
3309
|
-
|
|
3310
|
-
|
|
3311
|
-
var
|
|
3312
|
-
|
|
3313
|
-
|
|
3314
|
-
|
|
3315
|
-
|
|
3316
|
-
|
|
3317
|
-
|
|
3318
|
-
|
|
3319
|
-
|
|
3320
|
-
|
|
3321
|
-
|
|
3322
|
-
throw new Error('Trying to deserialize unknown custom value');
|
|
2646
|
+
}
|
|
2647
|
+
|
|
2648
|
+
var defaultElementPredicate = item => item instanceof Element;
|
|
2649
|
+
function getResolvedElements(value, predicate) {
|
|
2650
|
+
if (predicate(value)) return value;
|
|
2651
|
+
if (typeof value === "function" && !value.length) return getResolvedElements(value(), predicate);
|
|
2652
|
+
if (Array.isArray(value)) {
|
|
2653
|
+
const results = [];
|
|
2654
|
+
for (const item of value) {
|
|
2655
|
+
const result = getResolvedElements(item, predicate);
|
|
2656
|
+
if (result) Array.isArray(result) ? results.push.apply(results, result) : results.push(result);
|
|
2657
|
+
}
|
|
2658
|
+
return results.length ? results : null;
|
|
3323
2659
|
}
|
|
3324
|
-
return
|
|
3325
|
-
}
|
|
3326
|
-
|
|
3327
|
-
|
|
3328
|
-
|
|
3329
|
-
|
|
3330
|
-
|
|
3331
|
-
|
|
2660
|
+
return null;
|
|
2661
|
+
}
|
|
2662
|
+
function resolveElements(fn, predicate = defaultElementPredicate, serverPredicate = defaultElementPredicate) {
|
|
2663
|
+
const children2 = index.createMemo(fn);
|
|
2664
|
+
const memo = index.createMemo(() => getResolvedElements(children2(), predicate));
|
|
2665
|
+
memo.toArray = () => {
|
|
2666
|
+
const value = memo();
|
|
2667
|
+
return Array.isArray(value) ? value : value ? [value] : [];
|
|
2668
|
+
};
|
|
2669
|
+
return memo;
|
|
2670
|
+
}
|
|
2671
|
+
|
|
2672
|
+
// src/common.ts
|
|
2673
|
+
function createClassnames(props) {
|
|
2674
|
+
return index.createMemo(() => {
|
|
2675
|
+
const name = props.name || "s";
|
|
3332
2676
|
return {
|
|
3333
|
-
|
|
3334
|
-
|
|
2677
|
+
enterActiveClasses: (props.enterActiveClass || name + "-enter-active").split(" "),
|
|
2678
|
+
enterClasses: (props.enterClass || name + "-enter").split(" "),
|
|
2679
|
+
enterToClasses: (props.enterToClass || name + "-enter-to").split(" "),
|
|
2680
|
+
exitActiveClasses: (props.exitActiveClass || name + "-exit-active").split(" "),
|
|
2681
|
+
exitClasses: (props.exitClass || name + "-exit").split(" "),
|
|
2682
|
+
exitToClasses: (props.exitToClass || name + "-exit-to").split(" "),
|
|
2683
|
+
moveClasses: (props.moveClass || name + "-move").split(" ")
|
|
3335
2684
|
};
|
|
3336
|
-
}
|
|
3337
|
-
var applicableSimpleRule = findArr(simpleRules, function (rule) {
|
|
3338
|
-
return rule.isApplicable(value, superJson);
|
|
3339
2685
|
});
|
|
3340
|
-
|
|
3341
|
-
|
|
3342
|
-
|
|
3343
|
-
|
|
3344
|
-
|
|
2686
|
+
}
|
|
2687
|
+
function nextFrame(fn) {
|
|
2688
|
+
requestAnimationFrame(() => requestAnimationFrame(fn));
|
|
2689
|
+
}
|
|
2690
|
+
function enterTransition(classnames, events, el, done) {
|
|
2691
|
+
const {
|
|
2692
|
+
enterClasses,
|
|
2693
|
+
enterActiveClasses,
|
|
2694
|
+
enterToClasses
|
|
2695
|
+
} = classnames,
|
|
2696
|
+
{
|
|
2697
|
+
onBeforeEnter,
|
|
2698
|
+
onEnter,
|
|
2699
|
+
onAfterEnter
|
|
2700
|
+
} = events;
|
|
2701
|
+
onBeforeEnter?.(el);
|
|
2702
|
+
el.classList.add(...enterClasses);
|
|
2703
|
+
el.classList.add(...enterActiveClasses);
|
|
2704
|
+
queueMicrotask(() => {
|
|
2705
|
+
if (!el.parentNode) return done?.();
|
|
2706
|
+
onEnter?.(el, () => endTransition());
|
|
2707
|
+
});
|
|
2708
|
+
nextFrame(() => {
|
|
2709
|
+
el.classList.remove(...enterClasses);
|
|
2710
|
+
el.classList.add(...enterToClasses);
|
|
2711
|
+
if (!onEnter || onEnter.length < 2) {
|
|
2712
|
+
el.addEventListener("transitionend", endTransition);
|
|
2713
|
+
el.addEventListener("animationend", endTransition);
|
|
2714
|
+
}
|
|
2715
|
+
});
|
|
2716
|
+
function endTransition(e) {
|
|
2717
|
+
if (!e || e.target === el) {
|
|
2718
|
+
done?.();
|
|
2719
|
+
el.removeEventListener("transitionend", endTransition);
|
|
2720
|
+
el.removeEventListener("animationend", endTransition);
|
|
2721
|
+
el.classList.remove(...enterActiveClasses);
|
|
2722
|
+
el.classList.remove(...enterToClasses);
|
|
2723
|
+
onAfterEnter?.(el);
|
|
2724
|
+
}
|
|
3345
2725
|
}
|
|
3346
|
-
|
|
3347
|
-
|
|
3348
|
-
|
|
3349
|
-
|
|
3350
|
-
|
|
3351
|
-
|
|
3352
|
-
|
|
3353
|
-
|
|
3354
|
-
|
|
3355
|
-
|
|
3356
|
-
|
|
3357
|
-
|
|
3358
|
-
|
|
3359
|
-
|
|
3360
|
-
|
|
3361
|
-
|
|
3362
|
-
|
|
3363
|
-
|
|
3364
|
-
|
|
2726
|
+
}
|
|
2727
|
+
function exitTransition(classnames, events, el, done) {
|
|
2728
|
+
const {
|
|
2729
|
+
exitClasses,
|
|
2730
|
+
exitActiveClasses,
|
|
2731
|
+
exitToClasses
|
|
2732
|
+
} = classnames,
|
|
2733
|
+
{
|
|
2734
|
+
onBeforeExit,
|
|
2735
|
+
onExit,
|
|
2736
|
+
onAfterExit
|
|
2737
|
+
} = events;
|
|
2738
|
+
if (!el.parentNode) return done?.();
|
|
2739
|
+
onBeforeExit?.(el);
|
|
2740
|
+
el.classList.add(...exitClasses);
|
|
2741
|
+
el.classList.add(...exitActiveClasses);
|
|
2742
|
+
onExit?.(el, () => endTransition());
|
|
2743
|
+
nextFrame(() => {
|
|
2744
|
+
el.classList.remove(...exitClasses);
|
|
2745
|
+
el.classList.add(...exitToClasses);
|
|
2746
|
+
if (!onExit || onExit.length < 2) {
|
|
2747
|
+
el.addEventListener("transitionend", endTransition);
|
|
2748
|
+
el.addEventListener("animationend", endTransition);
|
|
3365
2749
|
}
|
|
3366
|
-
}
|
|
3367
|
-
|
|
3368
|
-
if (!
|
|
3369
|
-
|
|
2750
|
+
});
|
|
2751
|
+
function endTransition(e) {
|
|
2752
|
+
if (!e || e.target === el) {
|
|
2753
|
+
done?.();
|
|
2754
|
+
el.removeEventListener("transitionend", endTransition);
|
|
2755
|
+
el.removeEventListener("animationend", endTransition);
|
|
2756
|
+
el.classList.remove(...exitActiveClasses);
|
|
2757
|
+
el.classList.remove(...exitToClasses);
|
|
2758
|
+
onAfterExit?.(el);
|
|
3370
2759
|
}
|
|
3371
|
-
return transformation.untransform(json, superJson);
|
|
3372
|
-
}
|
|
3373
|
-
};
|
|
3374
|
-
|
|
3375
|
-
var getNthKey = function (value, n) {
|
|
3376
|
-
var keys = value.keys();
|
|
3377
|
-
while (n > 0) {
|
|
3378
|
-
keys.next();
|
|
3379
|
-
n--;
|
|
3380
|
-
}
|
|
3381
|
-
return keys.next().value;
|
|
3382
|
-
};
|
|
3383
|
-
function validatePath(path) {
|
|
3384
|
-
if (includes(path, '__proto__')) {
|
|
3385
|
-
throw new Error('__proto__ is not allowed as a property');
|
|
3386
|
-
}
|
|
3387
|
-
if (includes(path, 'prototype')) {
|
|
3388
|
-
throw new Error('prototype is not allowed as a property');
|
|
3389
|
-
}
|
|
3390
|
-
if (includes(path, 'constructor')) {
|
|
3391
|
-
throw new Error('constructor is not allowed as a property');
|
|
3392
2760
|
}
|
|
3393
2761
|
}
|
|
3394
|
-
var
|
|
3395
|
-
|
|
3396
|
-
|
|
3397
|
-
|
|
3398
|
-
|
|
3399
|
-
|
|
3400
|
-
|
|
3401
|
-
|
|
3402
|
-
|
|
3403
|
-
|
|
3404
|
-
|
|
3405
|
-
|
|
3406
|
-
|
|
3407
|
-
|
|
3408
|
-
|
|
3409
|
-
|
|
3410
|
-
|
|
2762
|
+
var TransitionGroup = props => {
|
|
2763
|
+
const classnames = createClassnames(props);
|
|
2764
|
+
return createListTransition(resolveElements(() => props.children).toArray, {
|
|
2765
|
+
appear: props.appear,
|
|
2766
|
+
exitMethod: "keep-index",
|
|
2767
|
+
onChange({
|
|
2768
|
+
added,
|
|
2769
|
+
removed,
|
|
2770
|
+
finishRemoved,
|
|
2771
|
+
list
|
|
2772
|
+
}) {
|
|
2773
|
+
const classes = classnames();
|
|
2774
|
+
for (const el of added) {
|
|
2775
|
+
enterTransition(classes, props, el);
|
|
2776
|
+
}
|
|
2777
|
+
const toMove = [];
|
|
2778
|
+
for (const el of list) {
|
|
2779
|
+
if (el.isConnected && (el instanceof HTMLElement || el instanceof SVGElement)) {
|
|
2780
|
+
toMove.push({
|
|
2781
|
+
el,
|
|
2782
|
+
rect: el.getBoundingClientRect()
|
|
2783
|
+
});
|
|
2784
|
+
}
|
|
2785
|
+
}
|
|
2786
|
+
queueMicrotask(() => {
|
|
2787
|
+
const moved = [];
|
|
2788
|
+
for (const {
|
|
2789
|
+
el,
|
|
2790
|
+
rect
|
|
2791
|
+
} of toMove) {
|
|
2792
|
+
if (el.isConnected) {
|
|
2793
|
+
const newRect = el.getBoundingClientRect(),
|
|
2794
|
+
dX = rect.left - newRect.left,
|
|
2795
|
+
dY = rect.top - newRect.top;
|
|
2796
|
+
if (dX || dY) {
|
|
2797
|
+
el.style.transform = `translate(${dX}px, ${dY}px)`;
|
|
2798
|
+
el.style.transitionDuration = "0s";
|
|
2799
|
+
moved.push(el);
|
|
2800
|
+
}
|
|
2801
|
+
}
|
|
2802
|
+
}
|
|
2803
|
+
document.body.offsetHeight;
|
|
2804
|
+
for (const el of moved) {
|
|
2805
|
+
let endTransition2 = function (e) {
|
|
2806
|
+
if (e.target === el || /transform$/.test(e.propertyName)) {
|
|
2807
|
+
el.removeEventListener("transitionend", endTransition2);
|
|
2808
|
+
el.classList.remove(...classes.moveClasses);
|
|
2809
|
+
}
|
|
2810
|
+
};
|
|
2811
|
+
el.classList.add(...classes.moveClasses);
|
|
2812
|
+
el.style.transform = el.style.transitionDuration = "";
|
|
2813
|
+
el.addEventListener("transitionend", endTransition2);
|
|
2814
|
+
}
|
|
2815
|
+
});
|
|
2816
|
+
for (const el of removed) {
|
|
2817
|
+
exitTransition(classes, props, el, () => finishRemoved([el]));
|
|
3411
2818
|
}
|
|
3412
|
-
} else {
|
|
3413
|
-
object = object[key];
|
|
3414
2819
|
}
|
|
3415
|
-
}
|
|
3416
|
-
return object;
|
|
2820
|
+
});
|
|
3417
2821
|
};
|
|
3418
|
-
|
|
3419
|
-
|
|
3420
|
-
|
|
3421
|
-
|
|
2822
|
+
|
|
2823
|
+
// src/index.ts
|
|
2824
|
+
var FALLBACK = Symbol("fallback");
|
|
2825
|
+
function dispose(list) {
|
|
2826
|
+
for (const o of list) o.dispose();
|
|
2827
|
+
}
|
|
2828
|
+
function keyArray(items, keyFn, mapFn, options = {}) {
|
|
2829
|
+
const prev = /* @__PURE__ */new Map();
|
|
2830
|
+
index.onCleanup(() => dispose(prev.values()));
|
|
2831
|
+
return () => {
|
|
2832
|
+
const list = items() || [];
|
|
2833
|
+
list[index.$TRACK];
|
|
2834
|
+
return index.untrack(() => {
|
|
2835
|
+
if (!list.length) {
|
|
2836
|
+
dispose(prev.values());
|
|
2837
|
+
prev.clear();
|
|
2838
|
+
if (!options.fallback) return [];
|
|
2839
|
+
const fb2 = index.createRoot(dispose2 => {
|
|
2840
|
+
prev.set(FALLBACK, {
|
|
2841
|
+
dispose: dispose2
|
|
2842
|
+
});
|
|
2843
|
+
return options.fallback();
|
|
2844
|
+
});
|
|
2845
|
+
return [fb2];
|
|
2846
|
+
}
|
|
2847
|
+
const result = new Array(list.length);
|
|
2848
|
+
const fb = prev.get(FALLBACK);
|
|
2849
|
+
if (!prev.size || fb) {
|
|
2850
|
+
fb?.dispose();
|
|
2851
|
+
prev.delete(FALLBACK);
|
|
2852
|
+
for (let i = 0; i < list.length; i++) {
|
|
2853
|
+
const item = list[i];
|
|
2854
|
+
const key = keyFn(item, i);
|
|
2855
|
+
addNewItem(result, item, i, key);
|
|
2856
|
+
}
|
|
2857
|
+
return result;
|
|
2858
|
+
}
|
|
2859
|
+
const prevKeys = new Set(prev.keys());
|
|
2860
|
+
for (let i = 0; i < list.length; i++) {
|
|
2861
|
+
const item = list[i];
|
|
2862
|
+
const key = keyFn(item, i);
|
|
2863
|
+
prevKeys.delete(key);
|
|
2864
|
+
const lookup = prev.get(key);
|
|
2865
|
+
if (lookup) {
|
|
2866
|
+
result[i] = lookup.mapped;
|
|
2867
|
+
lookup.setIndex?.(i);
|
|
2868
|
+
lookup.setItem(() => item);
|
|
2869
|
+
} else addNewItem(result, item, i, key);
|
|
2870
|
+
}
|
|
2871
|
+
for (const key of prevKeys) {
|
|
2872
|
+
prev.get(key)?.dispose();
|
|
2873
|
+
prev.delete(key);
|
|
2874
|
+
}
|
|
2875
|
+
return result;
|
|
2876
|
+
});
|
|
2877
|
+
};
|
|
2878
|
+
function addNewItem(list, item, i, key) {
|
|
2879
|
+
index.createRoot(dispose2 => {
|
|
2880
|
+
const [getItem, setItem] = index.createSignal(item);
|
|
2881
|
+
const save = {
|
|
2882
|
+
setItem,
|
|
2883
|
+
dispose: dispose2
|
|
2884
|
+
};
|
|
2885
|
+
if (mapFn.length > 1) {
|
|
2886
|
+
const [index$1, setIndex] = index.createSignal(i);
|
|
2887
|
+
save.setIndex = setIndex;
|
|
2888
|
+
save.mapped = mapFn(getItem, index$1);
|
|
2889
|
+
} else save.mapped = mapFn(getItem);
|
|
2890
|
+
prev.set(key, save);
|
|
2891
|
+
list[i] = save.mapped;
|
|
2892
|
+
});
|
|
3422
2893
|
}
|
|
3423
|
-
|
|
3424
|
-
|
|
3425
|
-
|
|
3426
|
-
|
|
3427
|
-
|
|
3428
|
-
|
|
3429
|
-
|
|
3430
|
-
|
|
3431
|
-
|
|
3432
|
-
|
|
3433
|
-
|
|
3434
|
-
|
|
3435
|
-
|
|
3436
|
-
|
|
3437
|
-
|
|
2894
|
+
}
|
|
2895
|
+
function Key(props) {
|
|
2896
|
+
const {
|
|
2897
|
+
by
|
|
2898
|
+
} = props;
|
|
2899
|
+
return index.createMemo(keyArray(() => props.each, typeof by === "function" ? by : v => v[by], props.children, "fallback" in props ? {
|
|
2900
|
+
fallback: () => props.fallback
|
|
2901
|
+
} : void 0));
|
|
2902
|
+
}
|
|
2903
|
+
|
|
2904
|
+
// src/storage.ts
|
|
2905
|
+
function createStorage(props) {
|
|
2906
|
+
const [error, setError] = index.createSignal();
|
|
2907
|
+
const handleError = props?.throw ? (err, fallback) => {
|
|
2908
|
+
setError(err instanceof Error ? err : new Error(fallback));
|
|
2909
|
+
throw err;
|
|
2910
|
+
} : (err, fallback) => {
|
|
2911
|
+
setError(err instanceof Error ? err : new Error(fallback));
|
|
2912
|
+
};
|
|
2913
|
+
const apis = props?.api ? Array.isArray(props.api) ? props.api : [props.api] : [globalThis.localStorage].filter(Boolean);
|
|
2914
|
+
const prefix = props?.prefix ? `${props.prefix}.` : "";
|
|
2915
|
+
const signals = /* @__PURE__ */new Map();
|
|
2916
|
+
const store = new Proxy({}, {
|
|
2917
|
+
get(_, key) {
|
|
2918
|
+
let node = signals.get(key);
|
|
2919
|
+
if (!node) {
|
|
2920
|
+
node = index.createSignal(void 0, {
|
|
2921
|
+
equals: false
|
|
2922
|
+
});
|
|
2923
|
+
signals.set(key, node);
|
|
3438
2924
|
}
|
|
3439
|
-
|
|
3440
|
-
|
|
3441
|
-
|
|
3442
|
-
|
|
3443
|
-
|
|
3444
|
-
|
|
3445
|
-
|
|
3446
|
-
|
|
3447
|
-
|
|
3448
|
-
|
|
2925
|
+
node[0]();
|
|
2926
|
+
const value = apis.reduce((result, api) => {
|
|
2927
|
+
if (result !== null || !api) {
|
|
2928
|
+
return result;
|
|
2929
|
+
}
|
|
2930
|
+
try {
|
|
2931
|
+
return api.getItem(`${prefix}${key}`);
|
|
2932
|
+
} catch (err) {
|
|
2933
|
+
handleError(err, `Error reading ${prefix}${key} from ${api["name"]}`);
|
|
2934
|
+
return null;
|
|
2935
|
+
}
|
|
2936
|
+
}, null);
|
|
2937
|
+
if (value !== null && props?.deserializer) {
|
|
2938
|
+
return props.deserializer(value, key, props.options);
|
|
2939
|
+
}
|
|
2940
|
+
return value;
|
|
2941
|
+
}
|
|
2942
|
+
});
|
|
2943
|
+
const setter = (key, value, options) => {
|
|
2944
|
+
const filteredValue = props?.serializer ? props.serializer(value, key, options ?? props.options) : value;
|
|
2945
|
+
const apiKey = `${prefix}${key}`;
|
|
2946
|
+
apis.forEach(api => {
|
|
2947
|
+
try {
|
|
2948
|
+
api.getItem(apiKey) !== filteredValue && api.setItem(apiKey, filteredValue);
|
|
2949
|
+
} catch (err) {
|
|
2950
|
+
handleError(err, `Error setting ${prefix}${key} to ${filteredValue} in ${api.name}`);
|
|
3449
2951
|
}
|
|
2952
|
+
});
|
|
2953
|
+
const node = signals.get(key);
|
|
2954
|
+
node && node[1]();
|
|
2955
|
+
};
|
|
2956
|
+
const remove = key => apis.forEach(api => {
|
|
2957
|
+
try {
|
|
2958
|
+
api.removeItem(`${prefix}${key}`);
|
|
2959
|
+
} catch (err) {
|
|
2960
|
+
handleError(err, `Error removing ${prefix}${key} from ${api.name}`);
|
|
3450
2961
|
}
|
|
3451
|
-
}
|
|
3452
|
-
|
|
3453
|
-
|
|
3454
|
-
|
|
3455
|
-
|
|
3456
|
-
|
|
3457
|
-
}
|
|
3458
|
-
if (isSet(parent)) {
|
|
3459
|
-
var oldValue = getNthKey(parent, +lastKey);
|
|
3460
|
-
var newValue = mapper(oldValue);
|
|
3461
|
-
if (oldValue !== newValue) {
|
|
3462
|
-
parent["delete"](oldValue);
|
|
3463
|
-
parent.add(newValue);
|
|
2962
|
+
});
|
|
2963
|
+
const clear = () => apis.forEach(api => {
|
|
2964
|
+
try {
|
|
2965
|
+
api.clear();
|
|
2966
|
+
} catch (err) {
|
|
2967
|
+
handleError(err, `Error clearing ${api.name}`);
|
|
3464
2968
|
}
|
|
3465
|
-
}
|
|
3466
|
-
|
|
3467
|
-
|
|
3468
|
-
|
|
3469
|
-
|
|
3470
|
-
|
|
3471
|
-
|
|
3472
|
-
|
|
3473
|
-
|
|
3474
|
-
|
|
3475
|
-
|
|
3476
|
-
|
|
2969
|
+
});
|
|
2970
|
+
const toJSON = () => {
|
|
2971
|
+
const result = {};
|
|
2972
|
+
const addValue = (key, value) => {
|
|
2973
|
+
if (!result.hasOwnProperty(key)) {
|
|
2974
|
+
const filteredValue = value && props?.deserializer ? props.deserializer(value, key, props.options) : value;
|
|
2975
|
+
if (filteredValue) {
|
|
2976
|
+
result[key] = filteredValue;
|
|
2977
|
+
}
|
|
2978
|
+
}
|
|
2979
|
+
};
|
|
2980
|
+
apis.forEach(api => {
|
|
2981
|
+
if (typeof api.getAll === "function") {
|
|
2982
|
+
let values;
|
|
2983
|
+
try {
|
|
2984
|
+
values = api.getAll();
|
|
2985
|
+
} catch (err) {
|
|
2986
|
+
handleError(err, `Error getting all values from in ${api.name}`);
|
|
2987
|
+
}
|
|
2988
|
+
for (const key of values) {
|
|
2989
|
+
addValue(key, values[key]);
|
|
2990
|
+
}
|
|
2991
|
+
} else {
|
|
2992
|
+
let index = 0,
|
|
2993
|
+
key;
|
|
2994
|
+
try {
|
|
2995
|
+
while (key = api.key(index++)) {
|
|
2996
|
+
if (!result.hasOwnProperty(key)) {
|
|
2997
|
+
addValue(key, api.getItem(key));
|
|
2998
|
+
}
|
|
3477
2999
|
}
|
|
3478
|
-
|
|
3000
|
+
} catch (err) {
|
|
3001
|
+
handleError(err, `Error getting all values from ${api.name}`);
|
|
3479
3002
|
}
|
|
3480
|
-
|
|
3481
|
-
|
|
3482
|
-
|
|
3483
|
-
|
|
3003
|
+
}
|
|
3004
|
+
});
|
|
3005
|
+
return result;
|
|
3006
|
+
};
|
|
3007
|
+
props?.sync !== false && index.onMount(() => {
|
|
3008
|
+
const listener = ev => {
|
|
3009
|
+
let changed = false;
|
|
3010
|
+
apis.forEach(api => {
|
|
3011
|
+
try {
|
|
3012
|
+
if (api !== ev.storageArea && ev.key && ev.newValue !== api.getItem(ev.key)) {
|
|
3013
|
+
ev.newValue ? api.setItem(ev.key, ev.newValue) : api.removeItem(ev.key);
|
|
3014
|
+
changed = true;
|
|
3015
|
+
}
|
|
3016
|
+
} catch (err) {
|
|
3017
|
+
handleError(err, `Error synching api ${api.name} from storage event (${ev.key}=${ev.newValue})`);
|
|
3484
3018
|
}
|
|
3019
|
+
});
|
|
3020
|
+
changed && ev.key && signals.get(ev.key)?.[1]();
|
|
3021
|
+
};
|
|
3022
|
+
if ("addEventListener" in globalThis) {
|
|
3023
|
+
globalThis.addEventListener("storage", listener);
|
|
3024
|
+
index.onCleanup(() => globalThis.removeEventListener("storage", listener));
|
|
3025
|
+
} else {
|
|
3026
|
+
apis.forEach(api => api.addEventListener?.("storage", listener));
|
|
3027
|
+
index.onCleanup(() => apis.forEach(api => api.removeEventListener?.("storage", listener)));
|
|
3485
3028
|
}
|
|
3029
|
+
});
|
|
3030
|
+
return [store, setter, {
|
|
3031
|
+
clear,
|
|
3032
|
+
error,
|
|
3033
|
+
remove,
|
|
3034
|
+
toJSON
|
|
3035
|
+
}];
|
|
3036
|
+
}
|
|
3037
|
+
var createLocalStorage = createStorage;
|
|
3038
|
+
|
|
3039
|
+
// src/tools.ts
|
|
3040
|
+
var addClearMethod = storage => {
|
|
3041
|
+
if (typeof storage.clear === "function") {
|
|
3042
|
+
return storage;
|
|
3486
3043
|
}
|
|
3487
|
-
|
|
3044
|
+
storage.clear = () => {
|
|
3045
|
+
let key;
|
|
3046
|
+
while (key = storage.key(0)) {
|
|
3047
|
+
storage.removeItem(key);
|
|
3048
|
+
}
|
|
3049
|
+
};
|
|
3050
|
+
return storage;
|
|
3488
3051
|
};
|
|
3489
3052
|
|
|
3490
|
-
|
|
3491
|
-
|
|
3492
|
-
if (!
|
|
3493
|
-
|
|
3494
|
-
|
|
3495
|
-
|
|
3496
|
-
|
|
3497
|
-
|
|
3498
|
-
|
|
3499
|
-
} catch (error) {
|
|
3500
|
-
e = {
|
|
3501
|
-
error: error
|
|
3502
|
-
};
|
|
3503
|
-
} finally {
|
|
3504
|
-
try {
|
|
3505
|
-
if (r && !r.done && (m = i["return"])) m.call(i);
|
|
3506
|
-
} finally {
|
|
3507
|
-
if (e) throw e.error;
|
|
3053
|
+
// src/cookies.ts
|
|
3054
|
+
var serializeCookieOptions = options => {
|
|
3055
|
+
if (!options) {
|
|
3056
|
+
return "";
|
|
3057
|
+
}
|
|
3058
|
+
let memo = "";
|
|
3059
|
+
for (const key in options) {
|
|
3060
|
+
if (!options.hasOwnProperty(key)) {
|
|
3061
|
+
continue;
|
|
3508
3062
|
}
|
|
3063
|
+
const value = options[key];
|
|
3064
|
+
memo += value instanceof Date ? `; ${key}=${value.toUTCString()}` : typeof value === "boolean" ? `; ${key}` : `; ${key}=${value}`;
|
|
3509
3065
|
}
|
|
3510
|
-
return
|
|
3511
|
-
};
|
|
3512
|
-
var __spreadArray$1 = undefined && undefined.__spreadArray || function (to, from) {
|
|
3513
|
-
for (var i = 0, il = from.length, j = to.length; i < il; i++, j++) to[j] = from[i];
|
|
3514
|
-
return to;
|
|
3066
|
+
return memo;
|
|
3515
3067
|
};
|
|
3516
|
-
|
|
3517
|
-
|
|
3518
|
-
|
|
3519
|
-
|
|
3520
|
-
|
|
3521
|
-
|
|
3522
|
-
|
|
3523
|
-
|
|
3524
|
-
|
|
3525
|
-
|
|
3526
|
-
|
|
3527
|
-
|
|
3528
|
-
}
|
|
3529
|
-
var _a = __read$1(tree, 2),
|
|
3530
|
-
nodeValue = _a[0],
|
|
3531
|
-
children = _a[1];
|
|
3532
|
-
if (children) {
|
|
3533
|
-
forEach(children, function (child, key) {
|
|
3534
|
-
traverse(child, walker, __spreadArray$1(__spreadArray$1([], __read$1(origin)), __read$1(parsePath(key))));
|
|
3535
|
-
});
|
|
3536
|
-
}
|
|
3537
|
-
walker(nodeValue, origin);
|
|
3538
|
-
}
|
|
3539
|
-
function applyValueAnnotations(plain, annotations, superJson) {
|
|
3540
|
-
traverse(annotations, function (type, path) {
|
|
3541
|
-
plain = setDeep(plain, path, function (v) {
|
|
3542
|
-
return untransformValue(v, type, superJson);
|
|
3543
|
-
});
|
|
3544
|
-
});
|
|
3545
|
-
return plain;
|
|
3546
|
-
}
|
|
3547
|
-
function applyReferentialEqualityAnnotations(plain, annotations) {
|
|
3548
|
-
function apply(identicalPaths, path) {
|
|
3549
|
-
var object = getDeep(plain, parsePath(path));
|
|
3550
|
-
identicalPaths.map(parsePath).forEach(function (identicalObjectPath) {
|
|
3551
|
-
plain = setDeep(plain, identicalObjectPath, function () {
|
|
3552
|
-
return object;
|
|
3553
|
-
});
|
|
3068
|
+
var cookieStorage = addClearMethod({
|
|
3069
|
+
_cookies: [globalThis.document, "cookie"],
|
|
3070
|
+
getItem: key => cookieStorage._cookies[0][cookieStorage._cookies[1]].match("(^|;)\\s*" + key + "\\s*=\\s*([^;]+)")?.pop() ?? null,
|
|
3071
|
+
setItem: (key, value, options) => {
|
|
3072
|
+
const oldValue = cookieStorage.getItem(key);
|
|
3073
|
+
cookieStorage._cookies[0][cookieStorage._cookies[1]] = `${key}=${value}${serializeCookieOptions(options)}`;
|
|
3074
|
+
const storageEvent = Object.assign(new Event("storage"), {
|
|
3075
|
+
key,
|
|
3076
|
+
oldValue,
|
|
3077
|
+
newValue: value,
|
|
3078
|
+
url: globalThis.document.URL,
|
|
3079
|
+
storageArea: cookieStorage
|
|
3554
3080
|
});
|
|
3555
|
-
|
|
3556
|
-
|
|
3557
|
-
|
|
3558
|
-
|
|
3559
|
-
|
|
3560
|
-
|
|
3561
|
-
|
|
3562
|
-
|
|
3563
|
-
|
|
3081
|
+
window.dispatchEvent(storageEvent);
|
|
3082
|
+
},
|
|
3083
|
+
removeItem: key => {
|
|
3084
|
+
cookieStorage._cookies[0][cookieStorage._cookies[1]] = `${key}=deleted${serializeCookieOptions({
|
|
3085
|
+
expires: new Date(0)
|
|
3086
|
+
})}`;
|
|
3087
|
+
},
|
|
3088
|
+
key: index => {
|
|
3089
|
+
let key = null;
|
|
3090
|
+
let count = 0;
|
|
3091
|
+
cookieStorage._cookies[0][cookieStorage._cookies[1]].replace(/(?:^|;)\s*(.+?)\s*=\s*[^;]+/g, (_, found) => {
|
|
3092
|
+
if (!key && found && count++ === index) {
|
|
3093
|
+
key = found;
|
|
3094
|
+
}
|
|
3095
|
+
return "";
|
|
3564
3096
|
});
|
|
3565
|
-
|
|
3566
|
-
|
|
3567
|
-
|
|
3568
|
-
|
|
3569
|
-
|
|
3570
|
-
|
|
3571
|
-
|
|
3572
|
-
}
|
|
3573
|
-
|
|
3574
|
-
return isPlainObject$1(object) || isArray$1(object) || isMap(object) || isSet(object) || isInstanceOfRegisteredClass(object, superJson);
|
|
3575
|
-
};
|
|
3576
|
-
function addIdentity(object, path, identities) {
|
|
3577
|
-
var existingSet = identities.get(object);
|
|
3578
|
-
if (existingSet) {
|
|
3579
|
-
existingSet.push(path);
|
|
3580
|
-
} else {
|
|
3581
|
-
identities.set(object, [path]);
|
|
3097
|
+
return key;
|
|
3098
|
+
},
|
|
3099
|
+
get length() {
|
|
3100
|
+
let length = 0;
|
|
3101
|
+
cookieStorage._cookies[0][cookieStorage._cookies[1]].replace(/(?:^|;)\s*.+?\s*=\s*[^;]+/g, found => {
|
|
3102
|
+
length += found ? 1 : 0;
|
|
3103
|
+
return "";
|
|
3104
|
+
});
|
|
3105
|
+
return length;
|
|
3582
3106
|
}
|
|
3107
|
+
});
|
|
3108
|
+
|
|
3109
|
+
// src/index.ts
|
|
3110
|
+
function makeResizeObserver(callback, options) {
|
|
3111
|
+
const observer = new ResizeObserver(callback);
|
|
3112
|
+
index.onCleanup(observer.disconnect.bind(observer));
|
|
3113
|
+
return {
|
|
3114
|
+
observe: ref => observer.observe(ref, options),
|
|
3115
|
+
unobserve: observer.unobserve.bind(observer)
|
|
3116
|
+
};
|
|
3583
3117
|
}
|
|
3584
|
-
function
|
|
3585
|
-
|
|
3586
|
-
|
|
3587
|
-
|
|
3588
|
-
|
|
3589
|
-
|
|
3590
|
-
|
|
3591
|
-
|
|
3592
|
-
|
|
3593
|
-
|
|
3594
|
-
|
|
3595
|
-
|
|
3596
|
-
|
|
3597
|
-
|
|
3598
|
-
|
|
3599
|
-
|
|
3600
|
-
|
|
3601
|
-
|
|
3602
|
-
|
|
3603
|
-
|
|
3604
|
-
|
|
3605
|
-
|
|
3606
|
-
|
|
3607
|
-
|
|
3608
|
-
|
|
3609
|
-
|
|
3610
|
-
|
|
3611
|
-
|
|
3612
|
-
}
|
|
3118
|
+
function createResizeObserver(targets, onResize, options) {
|
|
3119
|
+
const previousMap = /* @__PURE__ */new WeakMap(),
|
|
3120
|
+
{
|
|
3121
|
+
observe,
|
|
3122
|
+
unobserve
|
|
3123
|
+
} = makeResizeObserver(entries => {
|
|
3124
|
+
for (const entry of entries) {
|
|
3125
|
+
const {
|
|
3126
|
+
contentRect,
|
|
3127
|
+
target
|
|
3128
|
+
} = entry,
|
|
3129
|
+
width = Math.round(contentRect.width),
|
|
3130
|
+
height = Math.round(contentRect.height),
|
|
3131
|
+
previous = previousMap.get(target);
|
|
3132
|
+
if (!previous || previous.width !== width || previous.height !== height) {
|
|
3133
|
+
onResize(contentRect, target, entry);
|
|
3134
|
+
previousMap.set(target, {
|
|
3135
|
+
width,
|
|
3136
|
+
height
|
|
3137
|
+
});
|
|
3138
|
+
}
|
|
3139
|
+
}
|
|
3140
|
+
}, options);
|
|
3141
|
+
index.createEffect(prev => {
|
|
3142
|
+
const refs = filterNonNullable(asArray(access(targets)));
|
|
3143
|
+
handleDiffArray(refs, prev, observe, unobserve);
|
|
3144
|
+
return refs;
|
|
3145
|
+
}, []);
|
|
3613
3146
|
}
|
|
3614
|
-
|
|
3615
|
-
|
|
3616
|
-
|
|
3617
|
-
|
|
3618
|
-
|
|
3619
|
-
|
|
3620
|
-
|
|
3621
|
-
|
|
3622
|
-
|
|
3623
|
-
|
|
3624
|
-
|
|
3625
|
-
|
|
3626
|
-
|
|
3627
|
-
|
|
3628
|
-
|
|
3629
|
-
|
|
3630
|
-
|
|
3631
|
-
|
|
3632
|
-
|
|
3633
|
-
|
|
3634
|
-
|
|
3635
|
-
|
|
3147
|
+
|
|
3148
|
+
const ShadowVariants = {
|
|
3149
|
+
xs: '0 1px 2px 0 rgb(0 0 0 / 0.05)',
|
|
3150
|
+
sm: '0 1px 3px 0 color, 0 1px 2px -1px color',
|
|
3151
|
+
md: '0 4px 6px -1px color, 0 2px 4px -2px color',
|
|
3152
|
+
lg: '0 10px 15px -3px color, 0 4px 6px -4px color',
|
|
3153
|
+
xl: '0 20px 25px -5px color, 0 8px 10px -6px color',
|
|
3154
|
+
'2xl': '0 25px 50px -12px color',
|
|
3155
|
+
inner: 'inset 0 2px 4px 0 color',
|
|
3156
|
+
none: 'none'
|
|
3157
|
+
};
|
|
3158
|
+
const getShadow = (variant, color = '') => {
|
|
3159
|
+
return ShadowVariants[variant].replace(/color/g, color);
|
|
3160
|
+
};
|
|
3161
|
+
const Shadow = {
|
|
3162
|
+
xs: (color = 'rgb(0 0 0 / 0.1)') => getShadow('xs', color),
|
|
3163
|
+
sm: (color = 'rgb(0 0 0 / 0.1)') => getShadow('sm', color),
|
|
3164
|
+
md: (color = 'rgb(0 0 0 / 0.1)') => getShadow('md', color),
|
|
3165
|
+
lg: (color = 'rgb(0 0 0 / 0.1)') => getShadow('lg', color),
|
|
3166
|
+
xl: (color = 'rgb(0 0 0 / 0.1)') => getShadow('xl', color),
|
|
3167
|
+
'2xl': (color = 'rgb(0 0 0 / 0.25)') => getShadow('2xl', color),
|
|
3168
|
+
inner: (color = 'rgb(0 0 0 / 0.05)') => getShadow('inner', color),
|
|
3169
|
+
none: () => getShadow('none')
|
|
3170
|
+
};
|
|
3171
|
+
const tokens = {
|
|
3172
|
+
colors: {
|
|
3173
|
+
inherit: 'inherit',
|
|
3174
|
+
current: 'currentColor',
|
|
3175
|
+
transparent: 'transparent',
|
|
3176
|
+
black: '#000000',
|
|
3177
|
+
white: '#ffffff',
|
|
3178
|
+
neutral: {
|
|
3179
|
+
50: '#f9fafb',
|
|
3180
|
+
100: '#f2f4f7',
|
|
3181
|
+
200: '#eaecf0',
|
|
3182
|
+
300: '#d0d5dd',
|
|
3183
|
+
400: '#98a2b3',
|
|
3184
|
+
500: '#667085',
|
|
3185
|
+
600: '#475467',
|
|
3186
|
+
700: '#344054',
|
|
3187
|
+
800: '#1d2939',
|
|
3188
|
+
900: '#101828'
|
|
3189
|
+
},
|
|
3190
|
+
darkGray: {
|
|
3191
|
+
50: '#525c7a',
|
|
3192
|
+
100: '#49536e',
|
|
3193
|
+
200: '#414962',
|
|
3194
|
+
300: '#394056',
|
|
3195
|
+
400: '#313749',
|
|
3196
|
+
500: '#292e3d',
|
|
3197
|
+
600: '#212530',
|
|
3198
|
+
700: '#191c24',
|
|
3199
|
+
800: '#111318',
|
|
3200
|
+
900: '#0b0d10'
|
|
3201
|
+
},
|
|
3202
|
+
gray: {
|
|
3203
|
+
50: '#f9fafb',
|
|
3204
|
+
100: '#f2f4f7',
|
|
3205
|
+
200: '#eaecf0',
|
|
3206
|
+
300: '#d0d5dd',
|
|
3207
|
+
400: '#98a2b3',
|
|
3208
|
+
500: '#667085',
|
|
3209
|
+
600: '#475467',
|
|
3210
|
+
700: '#344054',
|
|
3211
|
+
800: '#1d2939',
|
|
3212
|
+
900: '#101828'
|
|
3213
|
+
},
|
|
3214
|
+
blue: {
|
|
3215
|
+
25: '#F5FAFF',
|
|
3216
|
+
50: '#EFF8FF',
|
|
3217
|
+
100: '#D1E9FF',
|
|
3218
|
+
200: '#B2DDFF',
|
|
3219
|
+
300: '#84CAFF',
|
|
3220
|
+
400: '#53B1FD',
|
|
3221
|
+
500: '#2E90FA',
|
|
3222
|
+
600: '#1570EF',
|
|
3223
|
+
700: '#175CD3',
|
|
3224
|
+
800: '#1849A9',
|
|
3225
|
+
900: '#194185'
|
|
3226
|
+
},
|
|
3227
|
+
green: {
|
|
3228
|
+
25: '#F6FEF9',
|
|
3229
|
+
50: '#ECFDF3',
|
|
3230
|
+
100: '#D1FADF',
|
|
3231
|
+
200: '#A6F4C5',
|
|
3232
|
+
300: '#6CE9A6',
|
|
3233
|
+
400: '#32D583',
|
|
3234
|
+
500: '#12B76A',
|
|
3235
|
+
600: '#039855',
|
|
3236
|
+
700: '#027A48',
|
|
3237
|
+
800: '#05603A',
|
|
3238
|
+
900: '#054F31'
|
|
3239
|
+
},
|
|
3240
|
+
red: {
|
|
3241
|
+
25: '#FFFBFA',
|
|
3242
|
+
50: '#FEF3F2',
|
|
3243
|
+
100: '#FEE4E2',
|
|
3244
|
+
200: '#FECDCA',
|
|
3245
|
+
300: '#FDA29B',
|
|
3246
|
+
400: '#F97066',
|
|
3247
|
+
500: '#F04438',
|
|
3248
|
+
600: '#D92D20',
|
|
3249
|
+
700: '#B42318',
|
|
3250
|
+
800: '#912018',
|
|
3251
|
+
900: '#7A271A'
|
|
3252
|
+
},
|
|
3253
|
+
yellow: {
|
|
3254
|
+
25: '#FFFCF5',
|
|
3255
|
+
50: '#FFFAEB',
|
|
3256
|
+
100: '#FEF0C7',
|
|
3257
|
+
200: '#FEDF89',
|
|
3258
|
+
300: '#FEC84B',
|
|
3259
|
+
400: '#FDB022',
|
|
3260
|
+
500: '#F79009',
|
|
3261
|
+
600: '#DC6803',
|
|
3262
|
+
700: '#B54708',
|
|
3263
|
+
800: '#93370D',
|
|
3264
|
+
900: '#7A2E0E'
|
|
3265
|
+
},
|
|
3266
|
+
purple: {
|
|
3267
|
+
25: '#FAFAFF',
|
|
3268
|
+
50: '#F4F3FF',
|
|
3269
|
+
100: '#EBE9FE',
|
|
3270
|
+
200: '#D9D6FE',
|
|
3271
|
+
300: '#BDB4FE',
|
|
3272
|
+
400: '#9B8AFB',
|
|
3273
|
+
500: '#7A5AF8',
|
|
3274
|
+
600: '#6938EF',
|
|
3275
|
+
700: '#5925DC',
|
|
3276
|
+
800: '#4A1FB8',
|
|
3277
|
+
900: '#3E1C96'
|
|
3278
|
+
},
|
|
3279
|
+
teal: {
|
|
3280
|
+
25: '#F6FEFC',
|
|
3281
|
+
50: '#F0FDF9',
|
|
3282
|
+
100: '#CCFBEF',
|
|
3283
|
+
200: '#99F6E0',
|
|
3284
|
+
300: '#5FE9D0',
|
|
3285
|
+
400: '#2ED3B7',
|
|
3286
|
+
500: '#15B79E',
|
|
3287
|
+
600: '#0E9384',
|
|
3288
|
+
700: '#107569',
|
|
3289
|
+
800: '#125D56',
|
|
3290
|
+
900: '#134E48'
|
|
3291
|
+
},
|
|
3292
|
+
pink: {
|
|
3293
|
+
25: '#fdf2f8',
|
|
3294
|
+
50: '#fce7f3',
|
|
3295
|
+
100: '#fbcfe8',
|
|
3296
|
+
200: '#f9a8d4',
|
|
3297
|
+
300: '#f472b6',
|
|
3298
|
+
400: '#ec4899',
|
|
3299
|
+
500: '#db2777',
|
|
3300
|
+
600: '#be185d',
|
|
3301
|
+
700: '#9d174d',
|
|
3302
|
+
800: '#831843',
|
|
3303
|
+
900: '#500724'
|
|
3304
|
+
},
|
|
3305
|
+
cyan: {
|
|
3306
|
+
25: '#ecfeff',
|
|
3307
|
+
50: '#cffafe',
|
|
3308
|
+
100: '#a5f3fc',
|
|
3309
|
+
200: '#67e8f9',
|
|
3310
|
+
300: '#22d3ee',
|
|
3311
|
+
400: '#06b6d4',
|
|
3312
|
+
500: '#0891b2',
|
|
3313
|
+
600: '#0e7490',
|
|
3314
|
+
700: '#155e75',
|
|
3315
|
+
800: '#164e63',
|
|
3316
|
+
900: '#083344'
|
|
3636
3317
|
}
|
|
3637
|
-
}
|
|
3638
|
-
|
|
3639
|
-
|
|
3640
|
-
|
|
3641
|
-
|
|
3642
|
-
|
|
3643
|
-
|
|
3644
|
-
|
|
3645
|
-
|
|
3646
|
-
|
|
3647
|
-
|
|
3648
|
-
|
|
3649
|
-
|
|
3650
|
-
|
|
3651
|
-
|
|
3652
|
-
|
|
3653
|
-
|
|
3654
|
-
|
|
3655
|
-
|
|
3656
|
-
|
|
3657
|
-
|
|
3658
|
-
|
|
3318
|
+
},
|
|
3319
|
+
alpha: {
|
|
3320
|
+
100: 'ff',
|
|
3321
|
+
90: 'e5',
|
|
3322
|
+
80: 'cc',
|
|
3323
|
+
70: 'b3',
|
|
3324
|
+
60: '99',
|
|
3325
|
+
50: '80',
|
|
3326
|
+
40: '66',
|
|
3327
|
+
30: '4d',
|
|
3328
|
+
20: '33',
|
|
3329
|
+
10: '1a',
|
|
3330
|
+
0: '00'
|
|
3331
|
+
},
|
|
3332
|
+
font: {
|
|
3333
|
+
size: {
|
|
3334
|
+
'2xs': '0.625rem',
|
|
3335
|
+
xs: '0.75rem',
|
|
3336
|
+
sm: '0.875rem',
|
|
3337
|
+
md: '1rem',
|
|
3338
|
+
lg: '1.125rem',
|
|
3339
|
+
xl: '1.25rem',
|
|
3340
|
+
'2xl': '1.5rem',
|
|
3341
|
+
'3xl': '1.875rem',
|
|
3342
|
+
'4xl': '2.25rem',
|
|
3343
|
+
'5xl': '3rem',
|
|
3344
|
+
'6xl': '3.75rem',
|
|
3345
|
+
'7xl': '4.5rem',
|
|
3346
|
+
'8xl': '6rem',
|
|
3347
|
+
'9xl': '8rem'
|
|
3348
|
+
},
|
|
3349
|
+
lineHeight: {
|
|
3350
|
+
xs: '1rem',
|
|
3351
|
+
sm: '1.25rem',
|
|
3352
|
+
md: '1.5rem',
|
|
3353
|
+
lg: '1.75rem',
|
|
3354
|
+
xl: '1.75rem',
|
|
3355
|
+
'2xl': '2rem',
|
|
3356
|
+
'3xl': '2.25rem',
|
|
3357
|
+
'4xl': '2.5rem',
|
|
3358
|
+
'5xl': '1',
|
|
3359
|
+
'6xl': '1',
|
|
3360
|
+
'7xl': '1',
|
|
3361
|
+
'8xl': '1',
|
|
3362
|
+
'9xl': '1'
|
|
3363
|
+
},
|
|
3364
|
+
weight: {
|
|
3365
|
+
thin: '100',
|
|
3366
|
+
extralight: '200',
|
|
3367
|
+
light: '300',
|
|
3368
|
+
normal: '400',
|
|
3369
|
+
medium: '500',
|
|
3370
|
+
semibold: '600',
|
|
3371
|
+
bold: '700',
|
|
3372
|
+
extrabold: '800',
|
|
3373
|
+
black: '900'
|
|
3659
3374
|
}
|
|
3660
|
-
}
|
|
3661
|
-
|
|
3662
|
-
|
|
3663
|
-
|
|
3664
|
-
|
|
3665
|
-
|
|
3666
|
-
|
|
3667
|
-
|
|
3668
|
-
|
|
3669
|
-
|
|
3670
|
-
|
|
3375
|
+
},
|
|
3376
|
+
breakpoints: {
|
|
3377
|
+
xs: '320px',
|
|
3378
|
+
sm: '640px',
|
|
3379
|
+
md: '768px',
|
|
3380
|
+
lg: '1024px',
|
|
3381
|
+
xl: '1280px',
|
|
3382
|
+
'2xl': '1536px'
|
|
3383
|
+
},
|
|
3384
|
+
border: {
|
|
3385
|
+
radius: {
|
|
3386
|
+
none: '0px',
|
|
3387
|
+
xs: '0.125rem',
|
|
3388
|
+
sm: '0.25rem',
|
|
3389
|
+
md: '0.375rem',
|
|
3390
|
+
lg: '0.5rem',
|
|
3391
|
+
xl: '0.75rem',
|
|
3392
|
+
'2xl': '1rem',
|
|
3393
|
+
'3xl': '1.5rem',
|
|
3394
|
+
full: '9999px'
|
|
3395
|
+
}
|
|
3396
|
+
},
|
|
3397
|
+
size: {
|
|
3398
|
+
0: '0px',
|
|
3399
|
+
0.25: '0.0625rem',
|
|
3400
|
+
0.5: '0.125rem',
|
|
3401
|
+
1: '0.25rem',
|
|
3402
|
+
1.5: '0.375rem',
|
|
3403
|
+
2: '0.5rem',
|
|
3404
|
+
2.5: '0.625rem',
|
|
3405
|
+
3: '0.75rem',
|
|
3406
|
+
3.5: '0.875rem',
|
|
3407
|
+
4: '1rem',
|
|
3408
|
+
4.5: '1.125rem',
|
|
3409
|
+
5: '1.25rem',
|
|
3410
|
+
6: '1.5rem',
|
|
3411
|
+
7: '1.75rem',
|
|
3412
|
+
8: '2rem',
|
|
3413
|
+
9: '2.25rem',
|
|
3414
|
+
10: '2.5rem',
|
|
3415
|
+
11: '2.75rem',
|
|
3416
|
+
12: '3rem',
|
|
3417
|
+
14: '3.5rem',
|
|
3418
|
+
16: '4rem',
|
|
3419
|
+
20: '5rem',
|
|
3420
|
+
24: '6rem',
|
|
3421
|
+
28: '7rem',
|
|
3422
|
+
32: '8rem',
|
|
3423
|
+
36: '9rem',
|
|
3424
|
+
40: '10rem',
|
|
3425
|
+
44: '11rem',
|
|
3426
|
+
48: '12rem',
|
|
3427
|
+
52: '13rem',
|
|
3428
|
+
56: '14rem',
|
|
3429
|
+
60: '15rem',
|
|
3430
|
+
64: '16rem',
|
|
3431
|
+
72: '18rem',
|
|
3432
|
+
80: '20rem',
|
|
3433
|
+
96: '24rem'
|
|
3434
|
+
},
|
|
3435
|
+
shadow: Shadow,
|
|
3436
|
+
zIndices: {
|
|
3437
|
+
hide: -1,
|
|
3438
|
+
auto: 'auto',
|
|
3439
|
+
base: 0,
|
|
3440
|
+
docked: 10,
|
|
3441
|
+
dropdown: 1000,
|
|
3442
|
+
sticky: 1100,
|
|
3443
|
+
banner: 1200,
|
|
3444
|
+
overlay: 1300,
|
|
3445
|
+
modal: 1400,
|
|
3446
|
+
popover: 1500,
|
|
3447
|
+
skipLink: 1600,
|
|
3448
|
+
toast: 1700,
|
|
3449
|
+
tooltip: 1800
|
|
3671
3450
|
}
|
|
3672
3451
|
};
|
|
3673
3452
|
|
|
3674
|
-
function
|
|
3675
|
-
|
|
3676
|
-
|
|
3677
|
-
|
|
3678
|
-
if (getType(payload) !== "Object") return false;
|
|
3679
|
-
const prototype = Object.getPrototypeOf(payload);
|
|
3680
|
-
return !!prototype && prototype.constructor === Object && prototype === Object.prototype;
|
|
3681
|
-
}
|
|
3682
|
-
function isArray(payload) {
|
|
3683
|
-
return getType(payload) === "Array";
|
|
3684
|
-
}
|
|
3685
|
-
|
|
3686
|
-
function assignProp(carry, key, newVal, originalObject, includeNonenumerable) {
|
|
3687
|
-
const propType = {}.propertyIsEnumerable.call(originalObject, key) ? 'enumerable' : 'nonenumerable';
|
|
3688
|
-
if (propType === 'enumerable') carry[key] = newVal;
|
|
3689
|
-
if (includeNonenumerable && propType === 'nonenumerable') {
|
|
3690
|
-
Object.defineProperty(carry, key, {
|
|
3691
|
-
value: newVal,
|
|
3692
|
-
enumerable: false,
|
|
3693
|
-
writable: true,
|
|
3694
|
-
configurable: true
|
|
3695
|
-
});
|
|
3696
|
-
}
|
|
3697
|
-
}
|
|
3698
|
-
/**
|
|
3699
|
-
* Copy (clone) an object and all its props recursively to get rid of any prop referenced of the original object. Arrays are also cloned, however objects inside arrays are still linked.
|
|
3700
|
-
*
|
|
3701
|
-
* @export
|
|
3702
|
-
* @template T
|
|
3703
|
-
* @param {T} target Target can be anything
|
|
3704
|
-
* @param {Options} [options = {}] Options can be `props` or `nonenumerable`
|
|
3705
|
-
* @returns {T} the target with replaced values
|
|
3706
|
-
* @export
|
|
3707
|
-
*/
|
|
3708
|
-
function copy(target, options = {}) {
|
|
3709
|
-
if (isArray(target)) {
|
|
3710
|
-
return target.map(item => copy(item, options));
|
|
3453
|
+
var DoubleIndexedKV = /** @class */function () {
|
|
3454
|
+
function DoubleIndexedKV() {
|
|
3455
|
+
this.keyToValue = new Map();
|
|
3456
|
+
this.valueToKey = new Map();
|
|
3711
3457
|
}
|
|
3712
|
-
|
|
3713
|
-
|
|
3458
|
+
DoubleIndexedKV.prototype.set = function (key, value) {
|
|
3459
|
+
this.keyToValue.set(key, value);
|
|
3460
|
+
this.valueToKey.set(value, key);
|
|
3461
|
+
};
|
|
3462
|
+
DoubleIndexedKV.prototype.getByKey = function (key) {
|
|
3463
|
+
return this.keyToValue.get(key);
|
|
3464
|
+
};
|
|
3465
|
+
DoubleIndexedKV.prototype.getByValue = function (value) {
|
|
3466
|
+
return this.valueToKey.get(value);
|
|
3467
|
+
};
|
|
3468
|
+
DoubleIndexedKV.prototype.clear = function () {
|
|
3469
|
+
this.keyToValue.clear();
|
|
3470
|
+
this.valueToKey.clear();
|
|
3471
|
+
};
|
|
3472
|
+
return DoubleIndexedKV;
|
|
3473
|
+
}();
|
|
3474
|
+
|
|
3475
|
+
var Registry = /** @class */function () {
|
|
3476
|
+
function Registry(generateIdentifier) {
|
|
3477
|
+
this.generateIdentifier = generateIdentifier;
|
|
3478
|
+
this.kv = new DoubleIndexedKV();
|
|
3714
3479
|
}
|
|
3715
|
-
|
|
3716
|
-
|
|
3717
|
-
|
|
3718
|
-
if (isArray(options.props) && !options.props.includes(key)) {
|
|
3719
|
-
return carry;
|
|
3480
|
+
Registry.prototype.register = function (value, identifier) {
|
|
3481
|
+
if (this.kv.getByValue(value)) {
|
|
3482
|
+
return;
|
|
3720
3483
|
}
|
|
3721
|
-
|
|
3722
|
-
|
|
3723
|
-
|
|
3724
|
-
|
|
3725
|
-
}
|
|
3726
|
-
|
|
3484
|
+
if (!identifier) {
|
|
3485
|
+
identifier = this.generateIdentifier(value);
|
|
3486
|
+
}
|
|
3487
|
+
this.kv.set(identifier, value);
|
|
3488
|
+
};
|
|
3489
|
+
Registry.prototype.clear = function () {
|
|
3490
|
+
this.kv.clear();
|
|
3491
|
+
};
|
|
3492
|
+
Registry.prototype.getIdentifier = function (value) {
|
|
3493
|
+
return this.kv.getByValue(value);
|
|
3494
|
+
};
|
|
3495
|
+
Registry.prototype.getValue = function (identifier) {
|
|
3496
|
+
return this.kv.getByKey(identifier);
|
|
3497
|
+
};
|
|
3498
|
+
return Registry;
|
|
3499
|
+
}();
|
|
3727
3500
|
|
|
3728
|
-
var
|
|
3729
|
-
|
|
3730
|
-
|
|
3731
|
-
|
|
3732
|
-
|
|
3501
|
+
var __extends = undefined && undefined.__extends || function () {
|
|
3502
|
+
var extendStatics = function (d, b) {
|
|
3503
|
+
extendStatics = Object.setPrototypeOf || {
|
|
3504
|
+
__proto__: []
|
|
3505
|
+
} instanceof Array && function (d, b) {
|
|
3506
|
+
d.__proto__ = b;
|
|
3507
|
+
} || function (d, b) {
|
|
3508
|
+
for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p];
|
|
3509
|
+
};
|
|
3510
|
+
return extendStatics(d, b);
|
|
3511
|
+
};
|
|
3512
|
+
return function (d, b) {
|
|
3513
|
+
if (typeof b !== "function" && b !== null) throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
3514
|
+
extendStatics(d, b);
|
|
3515
|
+
function __() {
|
|
3516
|
+
this.constructor = d;
|
|
3733
3517
|
}
|
|
3734
|
-
|
|
3518
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
3735
3519
|
};
|
|
3736
|
-
|
|
3737
|
-
|
|
3738
|
-
|
|
3520
|
+
}();
|
|
3521
|
+
var ClassRegistry = /** @class */function (_super) {
|
|
3522
|
+
__extends(ClassRegistry, _super);
|
|
3523
|
+
function ClassRegistry() {
|
|
3524
|
+
var _this = _super.call(this, function (c) {
|
|
3525
|
+
return c.name;
|
|
3526
|
+
}) || this;
|
|
3527
|
+
_this.classToAllowedProps = new Map();
|
|
3528
|
+
return _this;
|
|
3529
|
+
}
|
|
3530
|
+
ClassRegistry.prototype.register = function (value, options) {
|
|
3531
|
+
if (typeof options === 'object') {
|
|
3532
|
+
if (options.allowProps) {
|
|
3533
|
+
this.classToAllowedProps.set(value, options.allowProps);
|
|
3534
|
+
}
|
|
3535
|
+
_super.prototype.register.call(this, value, options.identifier);
|
|
3536
|
+
} else {
|
|
3537
|
+
_super.prototype.register.call(this, value, options);
|
|
3538
|
+
}
|
|
3539
|
+
};
|
|
3540
|
+
ClassRegistry.prototype.getAllowedProps = function (value) {
|
|
3541
|
+
return this.classToAllowedProps.get(value);
|
|
3542
|
+
};
|
|
3543
|
+
return ClassRegistry;
|
|
3544
|
+
}(Registry);
|
|
3545
|
+
|
|
3546
|
+
var __read$3 = undefined && undefined.__read || function (o, n) {
|
|
3739
3547
|
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
|
3740
3548
|
if (!m) return o;
|
|
3741
3549
|
var i = m.call(o),
|
|
@@ -3757,1230 +3565,1422 @@ var __read = undefined && undefined.__read || function (o, n) {
|
|
|
3757
3565
|
}
|
|
3758
3566
|
return ar;
|
|
3759
3567
|
};
|
|
3760
|
-
|
|
3761
|
-
|
|
3762
|
-
|
|
3763
|
-
|
|
3764
|
-
var SuperJSON = /** @class */function () {
|
|
3765
|
-
function SuperJSON() {
|
|
3766
|
-
this.classRegistry = new ClassRegistry();
|
|
3767
|
-
this.symbolRegistry = new Registry(function (s) {
|
|
3768
|
-
var _a;
|
|
3769
|
-
return (_a = s.description) !== null && _a !== void 0 ? _a : '';
|
|
3770
|
-
});
|
|
3771
|
-
this.customTransformerRegistry = new CustomTransformerRegistry();
|
|
3772
|
-
this.allowedErrorProps = [];
|
|
3568
|
+
function valuesOfObj(record) {
|
|
3569
|
+
if ('values' in Object) {
|
|
3570
|
+
// eslint-disable-next-line es5/no-es6-methods
|
|
3571
|
+
return Object.values(record);
|
|
3773
3572
|
}
|
|
3774
|
-
|
|
3775
|
-
|
|
3776
|
-
|
|
3777
|
-
|
|
3778
|
-
|
|
3779
|
-
};
|
|
3780
|
-
if (output.annotations) {
|
|
3781
|
-
res.meta = __assign(__assign({}, res.meta), {
|
|
3782
|
-
values: output.annotations
|
|
3783
|
-
});
|
|
3784
|
-
}
|
|
3785
|
-
var equalityAnnotations = generateReferentialEqualityAnnotations(identities);
|
|
3786
|
-
if (equalityAnnotations) {
|
|
3787
|
-
res.meta = __assign(__assign({}, res.meta), {
|
|
3788
|
-
referentialEqualities: equalityAnnotations
|
|
3789
|
-
});
|
|
3573
|
+
var values = [];
|
|
3574
|
+
// eslint-disable-next-line no-restricted-syntax
|
|
3575
|
+
for (var key in record) {
|
|
3576
|
+
if (record.hasOwnProperty(key)) {
|
|
3577
|
+
values.push(record[key]);
|
|
3790
3578
|
}
|
|
3791
|
-
|
|
3792
|
-
|
|
3793
|
-
|
|
3794
|
-
|
|
3795
|
-
|
|
3796
|
-
|
|
3797
|
-
|
|
3798
|
-
|
|
3579
|
+
}
|
|
3580
|
+
return values;
|
|
3581
|
+
}
|
|
3582
|
+
function find(record, predicate) {
|
|
3583
|
+
var values = valuesOfObj(record);
|
|
3584
|
+
if ('find' in values) {
|
|
3585
|
+
// eslint-disable-next-line es5/no-es6-methods
|
|
3586
|
+
return values.find(predicate);
|
|
3587
|
+
}
|
|
3588
|
+
var valuesNotNever = values;
|
|
3589
|
+
for (var i = 0; i < valuesNotNever.length; i++) {
|
|
3590
|
+
var value = valuesNotNever[i];
|
|
3591
|
+
if (predicate(value)) {
|
|
3592
|
+
return value;
|
|
3799
3593
|
}
|
|
3800
|
-
|
|
3801
|
-
|
|
3594
|
+
}
|
|
3595
|
+
return undefined;
|
|
3596
|
+
}
|
|
3597
|
+
function forEach(record, run) {
|
|
3598
|
+
Object.entries(record).forEach(function (_a) {
|
|
3599
|
+
var _b = __read$3(_a, 2),
|
|
3600
|
+
key = _b[0],
|
|
3601
|
+
value = _b[1];
|
|
3602
|
+
return run(value, key);
|
|
3603
|
+
});
|
|
3604
|
+
}
|
|
3605
|
+
function includes(arr, value) {
|
|
3606
|
+
return arr.indexOf(value) !== -1;
|
|
3607
|
+
}
|
|
3608
|
+
function findArr(record, predicate) {
|
|
3609
|
+
for (var i = 0; i < record.length; i++) {
|
|
3610
|
+
var value = record[i];
|
|
3611
|
+
if (predicate(value)) {
|
|
3612
|
+
return value;
|
|
3802
3613
|
}
|
|
3803
|
-
|
|
3804
|
-
|
|
3805
|
-
|
|
3806
|
-
|
|
3807
|
-
|
|
3808
|
-
|
|
3809
|
-
|
|
3810
|
-
}
|
|
3811
|
-
|
|
3812
|
-
this.
|
|
3813
|
-
};
|
|
3814
|
-
SuperJSON.prototype.registerSymbol = function (v, identifier) {
|
|
3815
|
-
this.symbolRegistry.register(v, identifier);
|
|
3614
|
+
}
|
|
3615
|
+
return undefined;
|
|
3616
|
+
}
|
|
3617
|
+
|
|
3618
|
+
var CustomTransformerRegistry = /** @class */function () {
|
|
3619
|
+
function CustomTransformerRegistry() {
|
|
3620
|
+
this.transfomers = {};
|
|
3621
|
+
}
|
|
3622
|
+
CustomTransformerRegistry.prototype.register = function (transformer) {
|
|
3623
|
+
this.transfomers[transformer.name] = transformer;
|
|
3816
3624
|
};
|
|
3817
|
-
|
|
3818
|
-
this.
|
|
3819
|
-
|
|
3820
|
-
}
|
|
3625
|
+
CustomTransformerRegistry.prototype.findApplicable = function (v) {
|
|
3626
|
+
return find(this.transfomers, function (transformer) {
|
|
3627
|
+
return transformer.isApplicable(v);
|
|
3628
|
+
});
|
|
3821
3629
|
};
|
|
3822
|
-
|
|
3823
|
-
|
|
3824
|
-
var props = [];
|
|
3825
|
-
for (var _i = 0; _i < arguments.length; _i++) {
|
|
3826
|
-
props[_i] = arguments[_i];
|
|
3827
|
-
}
|
|
3828
|
-
(_a = this.allowedErrorProps).push.apply(_a, __spreadArray([], __read(props)));
|
|
3630
|
+
CustomTransformerRegistry.prototype.findByName = function (name) {
|
|
3631
|
+
return this.transfomers[name];
|
|
3829
3632
|
};
|
|
3830
|
-
|
|
3831
|
-
SuperJSON.serialize = SuperJSON.defaultInstance.serialize.bind(SuperJSON.defaultInstance);
|
|
3832
|
-
SuperJSON.deserialize = SuperJSON.defaultInstance.deserialize.bind(SuperJSON.defaultInstance);
|
|
3833
|
-
SuperJSON.stringify = SuperJSON.defaultInstance.stringify.bind(SuperJSON.defaultInstance);
|
|
3834
|
-
SuperJSON.parse = SuperJSON.defaultInstance.parse.bind(SuperJSON.defaultInstance);
|
|
3835
|
-
SuperJSON.registerClass = SuperJSON.defaultInstance.registerClass.bind(SuperJSON.defaultInstance);
|
|
3836
|
-
SuperJSON.registerSymbol = SuperJSON.defaultInstance.registerSymbol.bind(SuperJSON.defaultInstance);
|
|
3837
|
-
SuperJSON.registerCustom = SuperJSON.defaultInstance.registerCustom.bind(SuperJSON.defaultInstance);
|
|
3838
|
-
SuperJSON.allowErrorProps = SuperJSON.defaultInstance.allowErrorProps.bind(SuperJSON.defaultInstance);
|
|
3839
|
-
return SuperJSON;
|
|
3633
|
+
return CustomTransformerRegistry;
|
|
3840
3634
|
}();
|
|
3841
|
-
var serialize = SuperJSON.serialize;
|
|
3842
|
-
var stringify = SuperJSON.stringify;
|
|
3843
|
-
|
|
3844
|
-
function getQueryStatusLabel(query) {
|
|
3845
|
-
return query.state.fetchStatus === 'fetching' ? 'fetching' : !query.getObserversCount() ? 'inactive' : query.state.fetchStatus === 'paused' ? 'paused' : query.isStale() ? 'stale' : 'fresh';
|
|
3846
|
-
}
|
|
3847
|
-
function getSidedProp(prop, side) {
|
|
3848
|
-
return `${prop}${side.charAt(0).toUpperCase() + side.slice(1)}`;
|
|
3849
|
-
}
|
|
3850
|
-
function getQueryStatusColor({
|
|
3851
|
-
queryState,
|
|
3852
|
-
observerCount,
|
|
3853
|
-
isStale
|
|
3854
|
-
}) {
|
|
3855
|
-
return queryState.fetchStatus === 'fetching' ? 'blue' : !observerCount ? 'gray' : queryState.fetchStatus === 'paused' ? 'purple' : isStale ? 'yellow' : 'green';
|
|
3856
|
-
}
|
|
3857
|
-
function getQueryStatusColorByLabel(label) {
|
|
3858
|
-
return label === 'fresh' ? 'green' : label === 'stale' ? 'yellow' : label === 'paused' ? 'purple' : label === 'inactive' ? 'gray' : 'blue';
|
|
3859
|
-
}
|
|
3860
3635
|
|
|
3861
|
-
|
|
3862
|
-
|
|
3863
|
-
|
|
3864
|
-
|
|
3865
|
-
|
|
3866
|
-
|
|
3867
|
-
|
|
3868
|
-
|
|
3869
|
-
|
|
3870
|
-
|
|
3636
|
+
var getType$1 = function (payload) {
|
|
3637
|
+
return Object.prototype.toString.call(payload).slice(8, -1);
|
|
3638
|
+
};
|
|
3639
|
+
var isUndefined = function (payload) {
|
|
3640
|
+
return typeof payload === 'undefined';
|
|
3641
|
+
};
|
|
3642
|
+
var isNull = function (payload) {
|
|
3643
|
+
return payload === null;
|
|
3644
|
+
};
|
|
3645
|
+
var isPlainObject$1 = function (payload) {
|
|
3646
|
+
if (typeof payload !== 'object' || payload === null) return false;
|
|
3647
|
+
if (payload === Object.prototype) return false;
|
|
3648
|
+
if (Object.getPrototypeOf(payload) === null) return true;
|
|
3649
|
+
return Object.getPrototypeOf(payload) === Object.prototype;
|
|
3650
|
+
};
|
|
3651
|
+
var isEmptyObject = function (payload) {
|
|
3652
|
+
return isPlainObject$1(payload) && Object.keys(payload).length === 0;
|
|
3653
|
+
};
|
|
3654
|
+
var isArray$1 = function (payload) {
|
|
3655
|
+
return Array.isArray(payload);
|
|
3656
|
+
};
|
|
3657
|
+
var isString = function (payload) {
|
|
3658
|
+
return typeof payload === 'string';
|
|
3659
|
+
};
|
|
3660
|
+
var isNumber = function (payload) {
|
|
3661
|
+
return typeof payload === 'number' && !isNaN(payload);
|
|
3662
|
+
};
|
|
3663
|
+
var isBoolean = function (payload) {
|
|
3664
|
+
return typeof payload === 'boolean';
|
|
3665
|
+
};
|
|
3666
|
+
var isRegExp = function (payload) {
|
|
3667
|
+
return payload instanceof RegExp;
|
|
3668
|
+
};
|
|
3669
|
+
var isMap = function (payload) {
|
|
3670
|
+
return payload instanceof Map;
|
|
3871
3671
|
};
|
|
3872
|
-
|
|
3873
|
-
|
|
3874
|
-
|
|
3875
|
-
const getStatusRank = q => q.state.fetchStatus !== 'idle' ? 0 : !q.getObserversCount() ? 3 : q.isStale() ? 2 : 1;
|
|
3876
|
-
const queryHashSort = (a, b) => a.queryHash.localeCompare(b.queryHash);
|
|
3877
|
-
const dateSort = (a, b) => a.state.dataUpdatedAt < b.state.dataUpdatedAt ? 1 : -1;
|
|
3878
|
-
const statusAndDateSort = (a, b) => {
|
|
3879
|
-
if (getStatusRank(a) === getStatusRank(b)) {
|
|
3880
|
-
return dateSort(a, b);
|
|
3881
|
-
}
|
|
3882
|
-
return getStatusRank(a) > getStatusRank(b) ? 1 : -1;
|
|
3672
|
+
var isSet = function (payload) {
|
|
3673
|
+
return payload instanceof Set;
|
|
3883
3674
|
};
|
|
3884
|
-
|
|
3885
|
-
|
|
3886
|
-
'query hash': queryHashSort,
|
|
3887
|
-
'last updated': dateSort
|
|
3675
|
+
var isSymbol = function (payload) {
|
|
3676
|
+
return getType$1(payload) === 'Symbol';
|
|
3888
3677
|
};
|
|
3889
|
-
|
|
3890
|
-
return
|
|
3678
|
+
var isDate = function (payload) {
|
|
3679
|
+
return payload instanceof Date && !isNaN(payload.valueOf());
|
|
3680
|
+
};
|
|
3681
|
+
var isError = function (payload) {
|
|
3682
|
+
return payload instanceof Error;
|
|
3683
|
+
};
|
|
3684
|
+
var isNaNValue = function (payload) {
|
|
3685
|
+
return typeof payload === 'number' && isNaN(payload);
|
|
3686
|
+
};
|
|
3687
|
+
var isPrimitive = function (payload) {
|
|
3688
|
+
return isBoolean(payload) || isNull(payload) || isUndefined(payload) || isNumber(payload) || isString(payload) || isSymbol(payload);
|
|
3689
|
+
};
|
|
3690
|
+
var isBigint = function (payload) {
|
|
3691
|
+
return typeof payload === 'bigint';
|
|
3692
|
+
};
|
|
3693
|
+
var isInfinite = function (payload) {
|
|
3694
|
+
return payload === Infinity || payload === -Infinity;
|
|
3695
|
+
};
|
|
3696
|
+
var isTypedArray = function (payload) {
|
|
3697
|
+
return ArrayBuffer.isView(payload) && !(payload instanceof DataView);
|
|
3698
|
+
};
|
|
3699
|
+
var isURL = function (payload) {
|
|
3700
|
+
return payload instanceof URL;
|
|
3891
3701
|
};
|
|
3892
3702
|
|
|
3893
|
-
|
|
3894
|
-
|
|
3895
|
-
|
|
3896
|
-
|
|
3897
|
-
|
|
3898
|
-
|
|
3899
|
-
|
|
3900
|
-
|
|
3901
|
-
|
|
3902
|
-
|
|
3903
|
-
_tmpl$11$1 = /*#__PURE__*/index.template(`<svg version="1.0" viewBox="0 0 633 633"><linearGradient id="a" x1="-666.45" x2="-666.45" y1="163.28" y2="163.99" gradientTransform="matrix(633 0 0 633 422177 -103358)" gradientUnits="userSpaceOnUse"><stop stop-color="#6BDAFF" offset="0"></stop><stop stop-color="#F9FFB5" offset=".32"></stop><stop stop-color="#FFA770" offset=".71"></stop><stop stop-color="#FF7373" offset="1"></stop></linearGradient><circle cx="316.5" cy="316.5" r="316.5" fill="url(#a)"></circle><defs><filter id="am" x="-137.5" y="412" width="454" height="396.9" filterUnits="userSpaceOnUse"><feColorMatrix values="1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"></feColorMatrix></filter></defs><mask id="b" x="-137.5" y="412" width="454" height="396.9" maskUnits="userSpaceOnUse"><g filter="url(#am)"><circle cx="316.5" cy="316.5" r="316.5" fill="#fff"></circle></g></mask><g mask="url(#b)"><ellipse cx="89.5" cy="610.5" rx="214.5" ry="186" fill="#015064" stroke="#00CFE2" stroke-width="25"></ellipse></g><defs><filter id="ah" x="316.5" y="412" width="454" height="396.9" filterUnits="userSpaceOnUse"><feColorMatrix values="1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"></feColorMatrix></filter></defs><mask id="k" x="316.5" y="412" width="454" height="396.9" maskUnits="userSpaceOnUse"><g filter="url(#ah)"><circle cx="316.5" cy="316.5" r="316.5" fill="#fff"></circle></g></mask><g mask="url(#k)"><ellipse cx="543.5" cy="610.5" rx="214.5" ry="186" fill="#015064" stroke="#00CFE2" stroke-width="25"></ellipse></g><defs><filter id="ae" x="-137.5" y="450" width="454" height="396.9" filterUnits="userSpaceOnUse"><feColorMatrix values="1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"></feColorMatrix></filter></defs><mask id="j" x="-137.5" y="450" width="454" height="396.9" maskUnits="userSpaceOnUse"><g filter="url(#ae)"><circle cx="316.5" cy="316.5" r="316.5" fill="#fff"></circle></g></mask><g mask="url(#j)"><ellipse cx="89.5" cy="648.5" rx="214.5" ry="186" fill="#015064" stroke="#00A8B8" stroke-width="25"></ellipse></g><defs><filter id="ai" x="316.5" y="450" width="454" height="396.9" filterUnits="userSpaceOnUse"><feColorMatrix values="1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"></feColorMatrix></filter></defs><mask id="i" x="316.5" y="450" width="454" height="396.9" maskUnits="userSpaceOnUse"><g filter="url(#ai)"><circle cx="316.5" cy="316.5" r="316.5" fill="#fff"></circle></g></mask><g mask="url(#i)"><ellipse cx="543.5" cy="648.5" rx="214.5" ry="186" fill="#015064" stroke="#00A8B8" stroke-width="25"></ellipse></g><defs><filter id="aj" x="-137.5" y="486" width="454" height="396.9" filterUnits="userSpaceOnUse"><feColorMatrix values="1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"></feColorMatrix></filter></defs><mask id="h" x="-137.5" y="486" width="454" height="396.9" maskUnits="userSpaceOnUse"><g filter="url(#aj)"><circle cx="316.5" cy="316.5" r="316.5" fill="#fff"></circle></g></mask><g mask="url(#h)"><ellipse cx="89.5" cy="684.5" rx="214.5" ry="186" fill="#015064" stroke="#007782" stroke-width="25"></ellipse></g><defs><filter id="ag" x="316.5" y="486" width="454" height="396.9" filterUnits="userSpaceOnUse"><feColorMatrix values="1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"></feColorMatrix></filter></defs><mask id="g" x="316.5" y="486" width="454" height="396.9" maskUnits="userSpaceOnUse"><g filter="url(#ag)"><circle cx="316.5" cy="316.5" r="316.5" fill="#fff"></circle></g></mask><g mask="url(#g)"><ellipse cx="543.5" cy="684.5" rx="214.5" ry="186" fill="#015064" stroke="#007782" stroke-width="25"></ellipse></g><defs><filter id="af" x="272.2" y="308" width="176.9" height="129.3" filterUnits="userSpaceOnUse"><feColorMatrix values="1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"></feColorMatrix></filter></defs><mask id="f" x="272.2" y="308" width="176.9" height="129.3" maskUnits="userSpaceOnUse"><g filter="url(#af)"><circle cx="316.5" cy="316.5" r="316.5" fill="#fff"></circle></g></mask><g mask="url(#f)"><line x1="436" x2="431" y1="403.2" y2="431.8" fill="none" stroke="#000" stroke-linecap="round" stroke-linejoin="bevel" stroke-width="11"></line><line x1="291" x2="280" y1="341.5" y2="403.5" fill="none" stroke="#000" stroke-linecap="round" stroke-linejoin="bevel" stroke-width="11"></line><line x1="332.9" x2="328.6" y1="384.1" y2="411.2" fill="none" stroke="#000" stroke-linecap="round" stroke-linejoin="bevel" stroke-width="11"></line><linearGradient id="m" x1="-670.75" x2="-671.59" y1="164.4" y2="164.49" gradientTransform="matrix(-184.16 -32.472 -11.461 64.997 -121359 -32126)" gradientUnits="userSpaceOnUse"><stop stop-color="#EE2700" offset="0"></stop><stop stop-color="#FF008E" offset="1"></stop></linearGradient><path d="m344.1 363 97.7 17.2c5.8 2.1 8.2 6.1 7.1 12.1s-4.7 9.2-11 9.9l-106-18.7-57.5-59.2c-3.2-4.8-2.9-9.1 0.8-12.8s8.3-4.4 13.7-2.1l55.2 53.6z" clip-rule="evenodd" fill="url(#m)" fill-rule="evenodd"></path><line x1="428.2" x2="429.1" y1="384.5" y2="378" fill="none" stroke="#fff" stroke-linecap="round" stroke-linejoin="bevel" stroke-width="7"></line><line x1="395.2" x2="396.1" y1="379.5" y2="373" fill="none" stroke="#fff" stroke-linecap="round" stroke-linejoin="bevel" stroke-width="7"></line><line x1="362.2" x2="363.1" y1="373.5" y2="367.4" fill="none" stroke="#fff" stroke-linecap="round" stroke-linejoin="bevel" stroke-width="7"></line><line x1="324.2" x2="328.4" y1="351.3" y2="347.4" fill="none" stroke="#fff" stroke-linecap="round" stroke-linejoin="bevel" stroke-width="7"></line><line x1="303.2" x2="307.4" y1="331.3" y2="327.4" fill="none" stroke="#fff" stroke-linecap="round" stroke-linejoin="bevel" stroke-width="7"></line></g><defs><filter id="ak" x="73.2" y="113.8" width="280.6" height="317.4" filterUnits="userSpaceOnUse"><feColorMatrix values="1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"></feColorMatrix></filter></defs><mask id="e" x="73.2" y="113.8" width="280.6" height="317.4" maskUnits="userSpaceOnUse"><g filter="url(#ak)"><circle cx="316.5" cy="316.5" r="316.5" fill="#fff"></circle></g></mask><g mask="url(#e)"><linearGradient id="n" x1="-672.16" x2="-672.16" y1="165.03" y2="166.03" gradientTransform="matrix(-100.18 48.861 97.976 200.88 -83342 -93.059)" gradientUnits="userSpaceOnUse"><stop stop-color="#A17500" offset="0"></stop><stop stop-color="#5D2100" offset="1"></stop></linearGradient><path d="m192.3 203c8.1 37.3 14 73.6 17.8 109.1 3.8 35.4 2.8 75.1-3 119.2l61.2-16.7c-15.6-59-25.2-97.9-28.6-116.6s-10.8-51.9-22.1-99.6l-25.3 4.6" clip-rule="evenodd" fill="url(#n)" fill-rule="evenodd"></path><g stroke="#2F8A00"><linearGradient id="r" x1="-660.23" x2="-660.23" y1="166.72" y2="167.72" gradientTransform="matrix(92.683 4.8573 -2.0259 38.657 61680 -3088.6)" gradientUnits="userSpaceOnUse"><stop stop-color="#2F8A00" offset="0"></stop><stop stop-color="#90FF57" offset="1"></stop></linearGradient><path d="m195 183.9s-12.6-22.1-36.5-29.9c-15.9-5.2-34.4-1.5-55.5 11.1 15.9 14.3 29.5 22.6 40.7 24.9 16.8 3.6 51.3-6.1 51.3-6.1z" clip-rule="evenodd" fill="url(#r)" fill-rule="evenodd" stroke-width="13"></path><linearGradient id="s" x1="-661.36" x2="-661.36" y1="164.18" y2="165.18" gradientTransform="matrix(110 5.7648 -6.3599 121.35 73933 -15933)" gradientUnits="userSpaceOnUse"><stop stop-color="#2F8A00" offset="0"></stop><stop stop-color="#90FF57" offset="1"></stop></linearGradient><path d="m194.9 184.5s-47.5-8.5-83.2 15.7c-23.8 16.2-34.3 49.3-31.6 99.4 30.3-27.8 52.1-48.5 65.2-61.9 19.8-20.2 49.6-53.2 49.6-53.2z" clip-rule="evenodd" fill="url(#s)" fill-rule="evenodd" stroke-width="13"></path><linearGradient id="q" x1="-656.79" x2="-656.79" y1="165.15" y2="166.15" gradientTransform="matrix(62.954 3.2993 -3.5023 66.828 42156 -8754.1)" gradientUnits="userSpaceOnUse"><stop stop-color="#2F8A00" offset="0"></stop><stop stop-color="#90FF57" offset="1"></stop></linearGradient><path d="m195 183.9c-0.8-21.9 6-38 20.6-48.2s29.8-15.4 45.5-15.3c-6.1 21.4-14.5 35.8-25.2 43.4s-24.4 14.2-40.9 20.1z" clip-rule="evenodd" fill="url(#q)" fill-rule="evenodd" stroke-width="13"></path><linearGradient id="p" x1="-663.07" x2="-663.07" y1="165.44" y2="166.44" gradientTransform="matrix(152.47 7.9907 -3.0936 59.029 101884 -4318.7)" gradientUnits="userSpaceOnUse"><stop stop-color="#2F8A00" offset="0"></stop><stop stop-color="#90FF57" offset="1"></stop></linearGradient><path d="m194.9 184.5c31.9-30 64.1-39.7 96.7-29s50.8 30.4 54.6 59.1c-35.2-5.5-60.4-9.6-75.8-12.1-15.3-2.6-40.5-8.6-75.5-18z" clip-rule="evenodd" fill="url(#p)" fill-rule="evenodd" stroke-width="13"></path><linearGradient id="o" x1="-662.57" x2="-662.57" y1="164.44" y2="165.44" gradientTransform="matrix(136.46 7.1517 -5.2163 99.533 91536 -11442)" gradientUnits="userSpaceOnUse"><stop stop-color="#2F8A00" offset="0"></stop><stop stop-color="#90FF57" offset="1"></stop></linearGradient><path d="m194.9 184.5c35.8-7.6 65.6-0.2 89.2 22s37.7 49 42.3 80.3c-39.8-9.7-68.3-23.8-85.5-42.4s-32.5-38.5-46-59.9z" clip-rule="evenodd" fill="url(#o)" fill-rule="evenodd" stroke-width="13"></path><linearGradient id="l" x1="-656.43" x2="-656.43" y1="163.86" y2="164.86" gradientTransform="matrix(60.866 3.1899 -8.7773 167.48 41560 -25168)" gradientUnits="userSpaceOnUse"><stop stop-color="#2F8A00" offset="0"></stop><stop stop-color="#90FF57" offset="1"></stop></linearGradient><path d="m194.9 184.5c-33.6 13.8-53.6 35.7-60.1 65.6s-3.6 63.1 8.7 99.6c27.4-40.3 43.2-69.6 47.4-88s5.6-44.1 4-77.2z" clip-rule="evenodd" fill="url(#l)" fill-rule="evenodd" stroke-width="13"></path><path d="m196.5 182.3c-14.8 21.6-25.1 41.4-30.8 59.4s-9.5 33-11.1 45.1" fill="none" stroke-linecap="round" stroke-width="8"></path><path d="m194.9 185.7c-24.4 1.7-43.8 9-58.1 21.8s-24.7 25.4-31.3 37.8" fill="none" stroke-linecap="round" stroke-width="8"></path><path d="m204.5 176.4c29.7-6.7 52-8.4 67-5.1s26.9 8.6 35.8 15.9" fill="none" stroke-linecap="round" stroke-width="8"></path><path d="m196.5 181.4c20.3 9.9 38.2 20.5 53.9 31.9s27.4 22.1 35.1 32" fill="none" stroke-linecap="round" stroke-width="8"></path></g></g><defs><filter id="al" x="50.5" y="399" width="532" height="633" filterUnits="userSpaceOnUse"><feColorMatrix values="1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"></feColorMatrix></filter></defs><mask id="d" x="50.5" y="399" width="532" height="633" maskUnits="userSpaceOnUse"><g filter="url(#al)"><circle cx="316.5" cy="316.5" r="316.5" fill="#fff"></circle></g></mask><g mask="url(#d)"><linearGradient id="u" x1="-666.06" x2="-666.23" y1="163.36" y2="163.75" gradientTransform="matrix(532 0 0 633 354760 -102959)" gradientUnits="userSpaceOnUse"><stop stop-color="#FFF400" offset="0"></stop><stop stop-color="#3C8700" offset="1"></stop></linearGradient><ellipse cx="316.5" cy="715.5" rx="266" ry="316.5" fill="url(#u)"></ellipse></g><defs><filter id="ad" x="391" y="-24" width="288" height="283" filterUnits="userSpaceOnUse"><feColorMatrix values="1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"></feColorMatrix></filter></defs><mask id="c" x="391" y="-24" width="288" height="283" maskUnits="userSpaceOnUse"><g filter="url(#ad)"><circle cx="316.5" cy="316.5" r="316.5" fill="#fff"></circle></g></mask><g mask="url(#c)"><linearGradient id="t" x1="-664.56" x2="-664.56" y1="163.79" y2="164.79" gradientTransform="matrix(227 0 0 227 151421 -37204)" gradientUnits="userSpaceOnUse"><stop stop-color="#FFDF00" offset="0"></stop><stop stop-color="#FF9D00" offset="1"></stop></linearGradient><circle cx="565.5" cy="89.5" r="113.5" fill="url(#t)"></circle><linearGradient id="v" x1="-644.5" x2="-645.77" y1="342" y2="342" gradientTransform="matrix(30 0 0 1 19770 -253)" gradientUnits="userSpaceOnUse"><stop stop-color="#FFA400" offset="0"></stop><stop stop-color="#FF5E00" offset="1"></stop></linearGradient><line x1="427" x2="397" y1="89" y2="89" fill="none" stroke="url(#v)" stroke-linecap="round" stroke-linejoin="bevel" stroke-width="12"></line><linearGradient id="aa" x1="-641.56" x2="-642.83" y1="196.02" y2="196.07" gradientTransform="matrix(26.5 0 0 5.5 17439 -1025.5)" gradientUnits="userSpaceOnUse"><stop stop-color="#FFA400" offset="0"></stop><stop stop-color="#FF5E00" offset="1"></stop></linearGradient><line x1="430.5" x2="404" y1="55.5" y2="50" fill="none" stroke="url(#aa)" stroke-linecap="round" stroke-linejoin="bevel" stroke-width="12"></line><linearGradient id="w" x1="-643.73" x2="-645" y1="185.83" y2="185.9" gradientTransform="matrix(29 0 0 8 19107 -1361)" gradientUnits="userSpaceOnUse"><stop stop-color="#FFA400" offset="0"></stop><stop stop-color="#FF5E00" offset="1"></stop></linearGradient><line x1="431" x2="402" y1="122" y2="130" fill="none" stroke="url(#w)" stroke-linecap="round" stroke-linejoin="bevel" stroke-width="12"></line><linearGradient id="ac" x1="-638.94" x2="-640.22" y1="177.09" y2="177.39" gradientTransform="matrix(24 0 0 13 15783 -2145)" gradientUnits="userSpaceOnUse"><stop stop-color="#FFA400" offset="0"></stop><stop stop-color="#FF5E00" offset="1"></stop></linearGradient><line x1="442" x2="418" y1="153" y2="166" fill="none" stroke="url(#ac)" stroke-linecap="round" stroke-linejoin="bevel" stroke-width="12"></line><linearGradient id="ab" x1="-633.42" x2="-634.7" y1="172.41" y2="173.31" gradientTransform="matrix(20 0 0 19 13137 -3096)" gradientUnits="userSpaceOnUse"><stop stop-color="#FFA400" offset="0"></stop><stop stop-color="#FF5E00" offset="1"></stop></linearGradient><line x1="464" x2="444" y1="180" y2="199" fill="none" stroke="url(#ab)" stroke-linecap="round" stroke-linejoin="bevel" stroke-width="12"></line><linearGradient id="y" x1="-619.05" x2="-619.52" y1="170.82" y2="171.82" gradientTransform="matrix(13.83 0 0 22.85 9050 -3703.4)" gradientUnits="userSpaceOnUse"><stop stop-color="#FFA400" offset="0"></stop><stop stop-color="#FF5E00" offset="1"></stop></linearGradient><line x1="491.4" x2="477.5" y1="203" y2="225.9" fill="none" stroke="url(#y)" stroke-linecap="round" stroke-linejoin="bevel" stroke-width="12"></line><linearGradient id="x" x1="-578.5" x2="-578.63" y1="170.31" y2="171.31" gradientTransform="matrix(7.5 0 0 24.5 4860 -3953)" gradientUnits="userSpaceOnUse"><stop stop-color="#FFA400" offset="0"></stop><stop stop-color="#FF5E00" offset="1"></stop></linearGradient><line x1="524.5" x2="517" y1="219.5" y2="244" fill="none" stroke="url(#x)" stroke-linecap="round" stroke-linejoin="bevel" stroke-width="12"></line><linearGradient id="z" x1="666.5" x2="666.5" y1="170.31" y2="171.31" gradientTransform="matrix(.5 0 0 24.5 231.5 -3944)" gradientUnits="userSpaceOnUse"><stop stop-color="#FFA400" offset="0"></stop><stop stop-color="#FF5E00" offset="1"></stop></linearGradient><line x1="564.5" x2="565" y1="228.5" y2="253" fill="none" stroke="url(#z)" stroke-linecap="round" stroke-linejoin="bevel" stroke-width="12"></line></g></svg>`, 336);
|
|
3904
|
-
|
|
3905
|
-
|
|
3906
|
-
|
|
3907
|
-
|
|
3908
|
-
|
|
3909
|
-
}
|
|
3910
|
-
|
|
3911
|
-
|
|
3912
|
-
|
|
3913
|
-
|
|
3914
|
-
|
|
3915
|
-
}
|
|
3916
|
-
|
|
3917
|
-
|
|
3918
|
-
|
|
3919
|
-
|
|
3920
|
-
return
|
|
3921
|
-
|
|
3922
|
-
index.createRenderEffect(_p$ => {
|
|
3923
|
-
const _v$ = tokens.colors.yellow[500],
|
|
3924
|
-
_v$2 = tokens.colors.yellow[500];
|
|
3925
|
-
_v$ !== _p$._v$ && index.setAttribute(_el$6, "stroke", _p$._v$ = _v$);
|
|
3926
|
-
_v$2 !== _p$._v$2 && index.setAttribute(_el$6, "fill", _p$._v$2 = _v$2);
|
|
3927
|
-
return _p$;
|
|
3928
|
-
}, {
|
|
3929
|
-
_v$: undefined,
|
|
3930
|
-
_v$2: undefined
|
|
3931
|
-
});
|
|
3932
|
-
return _el$6;
|
|
3933
|
-
})();
|
|
3934
|
-
}
|
|
3935
|
-
function Settings() {
|
|
3936
|
-
return _tmpl$7$2.cloneNode(true);
|
|
3937
|
-
}
|
|
3938
|
-
function Copier() {
|
|
3939
|
-
return _tmpl$8$1.cloneNode(true);
|
|
3940
|
-
}
|
|
3941
|
-
function CopiedCopier() {
|
|
3942
|
-
return _tmpl$9$1.cloneNode(true);
|
|
3943
|
-
}
|
|
3944
|
-
function ErrorCopier() {
|
|
3945
|
-
return _tmpl$10$1.cloneNode(true);
|
|
3946
|
-
}
|
|
3947
|
-
function TanstackLogo() {
|
|
3948
|
-
return _tmpl$11$1.cloneNode(true);
|
|
3949
|
-
}
|
|
3703
|
+
var escapeKey = function (key) {
|
|
3704
|
+
return key.replace(/\./g, '\\.');
|
|
3705
|
+
};
|
|
3706
|
+
var stringifyPath = function (path) {
|
|
3707
|
+
return path.map(String).map(escapeKey).join('.');
|
|
3708
|
+
};
|
|
3709
|
+
var parsePath = function (string) {
|
|
3710
|
+
var result = [];
|
|
3711
|
+
var segment = '';
|
|
3712
|
+
for (var i = 0; i < string.length; i++) {
|
|
3713
|
+
var char = string.charAt(i);
|
|
3714
|
+
var isEscapedDot = char === '\\' && string.charAt(i + 1) === '.';
|
|
3715
|
+
if (isEscapedDot) {
|
|
3716
|
+
segment += '.';
|
|
3717
|
+
i++;
|
|
3718
|
+
continue;
|
|
3719
|
+
}
|
|
3720
|
+
var isEndOfSegment = char === '.';
|
|
3721
|
+
if (isEndOfSegment) {
|
|
3722
|
+
result.push(segment);
|
|
3723
|
+
segment = '';
|
|
3724
|
+
continue;
|
|
3725
|
+
}
|
|
3726
|
+
segment += char;
|
|
3727
|
+
}
|
|
3728
|
+
var lastSegment = segment;
|
|
3729
|
+
result.push(lastSegment);
|
|
3730
|
+
return result;
|
|
3731
|
+
};
|
|
3950
3732
|
|
|
3951
|
-
|
|
3952
|
-
|
|
3953
|
-
|
|
3954
|
-
|
|
3955
|
-
|
|
3956
|
-
|
|
3957
|
-
|
|
3958
|
-
index.onCleanup(() => dispose(prev.values()));
|
|
3959
|
-
return () => {
|
|
3960
|
-
const list = items() || [];
|
|
3961
|
-
list[index.$TRACK];
|
|
3962
|
-
return index.untrack(() => {
|
|
3963
|
-
if (!list.length) {
|
|
3964
|
-
dispose(prev.values());
|
|
3965
|
-
prev.clear();
|
|
3966
|
-
if (!options.fallback) return [];
|
|
3967
|
-
const fb2 = index.createRoot(dispose2 => {
|
|
3968
|
-
prev.set(FALLBACK, {
|
|
3969
|
-
dispose: dispose2
|
|
3970
|
-
});
|
|
3971
|
-
return options.fallback();
|
|
3972
|
-
});
|
|
3973
|
-
return [fb2];
|
|
3974
|
-
}
|
|
3975
|
-
const result = new Array(list.length);
|
|
3976
|
-
const fb = prev.get(FALLBACK);
|
|
3977
|
-
if (!prev.size || fb) {
|
|
3978
|
-
fb?.dispose();
|
|
3979
|
-
prev.delete(FALLBACK);
|
|
3980
|
-
for (let i = 0; i < list.length; i++) {
|
|
3981
|
-
const item = list[i];
|
|
3982
|
-
const key = keyFn(item, i);
|
|
3983
|
-
addNewItem(result, item, i, key);
|
|
3984
|
-
}
|
|
3985
|
-
return result;
|
|
3986
|
-
}
|
|
3987
|
-
const prevKeys = new Set(prev.keys());
|
|
3988
|
-
for (let i = 0; i < list.length; i++) {
|
|
3989
|
-
const item = list[i];
|
|
3990
|
-
const key = keyFn(item, i);
|
|
3991
|
-
prevKeys.delete(key);
|
|
3992
|
-
const lookup = prev.get(key);
|
|
3993
|
-
if (lookup) {
|
|
3994
|
-
result[i] = lookup.mapped;
|
|
3995
|
-
lookup.setIndex?.(i);
|
|
3996
|
-
lookup.setItem(() => item);
|
|
3997
|
-
} else addNewItem(result, item, i, key);
|
|
3998
|
-
}
|
|
3999
|
-
for (const key of prevKeys) {
|
|
4000
|
-
prev.get(key)?.dispose();
|
|
4001
|
-
prev.delete(key);
|
|
4002
|
-
}
|
|
4003
|
-
return result;
|
|
4004
|
-
});
|
|
3733
|
+
var __assign$1 = undefined && undefined.__assign || function () {
|
|
3734
|
+
__assign$1 = Object.assign || function (t) {
|
|
3735
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
3736
|
+
s = arguments[i];
|
|
3737
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
|
|
3738
|
+
}
|
|
3739
|
+
return t;
|
|
4005
3740
|
};
|
|
4006
|
-
|
|
4007
|
-
|
|
4008
|
-
|
|
4009
|
-
|
|
4010
|
-
|
|
4011
|
-
|
|
4012
|
-
|
|
4013
|
-
|
|
4014
|
-
|
|
4015
|
-
|
|
4016
|
-
|
|
4017
|
-
|
|
4018
|
-
|
|
4019
|
-
|
|
4020
|
-
}
|
|
3741
|
+
return __assign$1.apply(this, arguments);
|
|
3742
|
+
};
|
|
3743
|
+
var __read$2 = undefined && undefined.__read || function (o, n) {
|
|
3744
|
+
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
|
3745
|
+
if (!m) return o;
|
|
3746
|
+
var i = m.call(o),
|
|
3747
|
+
r,
|
|
3748
|
+
ar = [],
|
|
3749
|
+
e;
|
|
3750
|
+
try {
|
|
3751
|
+
while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
|
|
3752
|
+
} catch (error) {
|
|
3753
|
+
e = {
|
|
3754
|
+
error: error
|
|
3755
|
+
};
|
|
3756
|
+
} finally {
|
|
3757
|
+
try {
|
|
3758
|
+
if (r && !r.done && (m = i["return"])) m.call(i);
|
|
3759
|
+
} finally {
|
|
3760
|
+
if (e) throw e.error;
|
|
3761
|
+
}
|
|
3762
|
+
}
|
|
3763
|
+
return ar;
|
|
3764
|
+
};
|
|
3765
|
+
var __spreadArray$2 = undefined && undefined.__spreadArray || function (to, from) {
|
|
3766
|
+
for (var i = 0, il = from.length, j = to.length; i < il; i++, j++) to[j] = from[i];
|
|
3767
|
+
return to;
|
|
3768
|
+
};
|
|
3769
|
+
function simpleTransformation(isApplicable, annotation, transform, untransform) {
|
|
3770
|
+
return {
|
|
3771
|
+
isApplicable: isApplicable,
|
|
3772
|
+
annotation: annotation,
|
|
3773
|
+
transform: transform,
|
|
3774
|
+
untransform: untransform
|
|
3775
|
+
};
|
|
3776
|
+
}
|
|
3777
|
+
var simpleRules = [simpleTransformation(isUndefined, 'undefined', function () {
|
|
3778
|
+
return null;
|
|
3779
|
+
}, function () {
|
|
3780
|
+
return undefined;
|
|
3781
|
+
}), simpleTransformation(isBigint, 'bigint', function (v) {
|
|
3782
|
+
return v.toString();
|
|
3783
|
+
}, function (v) {
|
|
3784
|
+
if (typeof BigInt !== 'undefined') {
|
|
3785
|
+
return BigInt(v);
|
|
3786
|
+
}
|
|
3787
|
+
console.error('Please add a BigInt polyfill.');
|
|
3788
|
+
return v;
|
|
3789
|
+
}), simpleTransformation(isDate, 'Date', function (v) {
|
|
3790
|
+
return v.toISOString();
|
|
3791
|
+
}, function (v) {
|
|
3792
|
+
return new Date(v);
|
|
3793
|
+
}), simpleTransformation(isError, 'Error', function (v, superJson) {
|
|
3794
|
+
var baseError = {
|
|
3795
|
+
name: v.name,
|
|
3796
|
+
message: v.message
|
|
3797
|
+
};
|
|
3798
|
+
superJson.allowedErrorProps.forEach(function (prop) {
|
|
3799
|
+
baseError[prop] = v[prop];
|
|
3800
|
+
});
|
|
3801
|
+
return baseError;
|
|
3802
|
+
}, function (v, superJson) {
|
|
3803
|
+
var e = new Error(v.message);
|
|
3804
|
+
e.name = v.name;
|
|
3805
|
+
e.stack = v.stack;
|
|
3806
|
+
superJson.allowedErrorProps.forEach(function (prop) {
|
|
3807
|
+
e[prop] = v[prop];
|
|
3808
|
+
});
|
|
3809
|
+
return e;
|
|
3810
|
+
}), simpleTransformation(isRegExp, 'regexp', function (v) {
|
|
3811
|
+
return '' + v;
|
|
3812
|
+
}, function (regex) {
|
|
3813
|
+
var body = regex.slice(1, regex.lastIndexOf('/'));
|
|
3814
|
+
var flags = regex.slice(regex.lastIndexOf('/') + 1);
|
|
3815
|
+
return new RegExp(body, flags);
|
|
3816
|
+
}), simpleTransformation(isSet, 'set',
|
|
3817
|
+
// (sets only exist in es6+)
|
|
3818
|
+
// eslint-disable-next-line es5/no-es6-methods
|
|
3819
|
+
function (v) {
|
|
3820
|
+
return __spreadArray$2([], __read$2(v.values()));
|
|
3821
|
+
}, function (v) {
|
|
3822
|
+
return new Set(v);
|
|
3823
|
+
}), simpleTransformation(isMap, 'map', function (v) {
|
|
3824
|
+
return __spreadArray$2([], __read$2(v.entries()));
|
|
3825
|
+
}, function (v) {
|
|
3826
|
+
return new Map(v);
|
|
3827
|
+
}), simpleTransformation(function (v) {
|
|
3828
|
+
return isNaNValue(v) || isInfinite(v);
|
|
3829
|
+
}, 'number', function (v) {
|
|
3830
|
+
if (isNaNValue(v)) {
|
|
3831
|
+
return 'NaN';
|
|
3832
|
+
}
|
|
3833
|
+
if (v > 0) {
|
|
3834
|
+
return 'Infinity';
|
|
3835
|
+
} else {
|
|
3836
|
+
return '-Infinity';
|
|
4021
3837
|
}
|
|
3838
|
+
}, Number), simpleTransformation(function (v) {
|
|
3839
|
+
return v === 0 && 1 / v === -Infinity;
|
|
3840
|
+
}, 'number', function () {
|
|
3841
|
+
return '-0';
|
|
3842
|
+
}, Number), simpleTransformation(isURL, 'URL', function (v) {
|
|
3843
|
+
return v.toString();
|
|
3844
|
+
}, function (v) {
|
|
3845
|
+
return new URL(v);
|
|
3846
|
+
})];
|
|
3847
|
+
function compositeTransformation(isApplicable, annotation, transform, untransform) {
|
|
3848
|
+
return {
|
|
3849
|
+
isApplicable: isApplicable,
|
|
3850
|
+
annotation: annotation,
|
|
3851
|
+
transform: transform,
|
|
3852
|
+
untransform: untransform
|
|
3853
|
+
};
|
|
4022
3854
|
}
|
|
4023
|
-
function
|
|
4024
|
-
|
|
4025
|
-
|
|
4026
|
-
|
|
4027
|
-
|
|
4028
|
-
|
|
4029
|
-
|
|
3855
|
+
var symbolRule = compositeTransformation(function (s, superJson) {
|
|
3856
|
+
if (isSymbol(s)) {
|
|
3857
|
+
var isRegistered = !!superJson.symbolRegistry.getIdentifier(s);
|
|
3858
|
+
return isRegistered;
|
|
3859
|
+
}
|
|
3860
|
+
return false;
|
|
3861
|
+
}, function (s, superJson) {
|
|
3862
|
+
var identifier = superJson.symbolRegistry.getIdentifier(s);
|
|
3863
|
+
return ['symbol', identifier];
|
|
3864
|
+
}, function (v) {
|
|
3865
|
+
return v.description;
|
|
3866
|
+
}, function (_, a, superJson) {
|
|
3867
|
+
var value = superJson.symbolRegistry.getValue(a[1]);
|
|
3868
|
+
if (!value) {
|
|
3869
|
+
throw new Error('Trying to deserialize unknown symbol');
|
|
3870
|
+
}
|
|
3871
|
+
return value;
|
|
3872
|
+
});
|
|
3873
|
+
var constructorToName = [Int8Array, Uint8Array, Int16Array, Uint16Array, Int32Array, Uint32Array, Float32Array, Float64Array, Uint8ClampedArray].reduce(function (obj, ctor) {
|
|
3874
|
+
obj[ctor.name] = ctor;
|
|
3875
|
+
return obj;
|
|
3876
|
+
}, {});
|
|
3877
|
+
var typedArrayRule = compositeTransformation(isTypedArray, function (v) {
|
|
3878
|
+
return ['typed-array', v.constructor.name];
|
|
3879
|
+
}, function (v) {
|
|
3880
|
+
return __spreadArray$2([], __read$2(v));
|
|
3881
|
+
}, function (v, a) {
|
|
3882
|
+
var ctor = constructorToName[a[1]];
|
|
3883
|
+
if (!ctor) {
|
|
3884
|
+
throw new Error('Trying to deserialize unknown typed array');
|
|
3885
|
+
}
|
|
3886
|
+
return new ctor(v);
|
|
3887
|
+
});
|
|
3888
|
+
function isInstanceOfRegisteredClass(potentialClass, superJson) {
|
|
3889
|
+
if (potentialClass === null || potentialClass === void 0 ? void 0 : potentialClass.constructor) {
|
|
3890
|
+
var isRegistered = !!superJson.classRegistry.getIdentifier(potentialClass.constructor);
|
|
3891
|
+
return isRegistered;
|
|
3892
|
+
}
|
|
3893
|
+
return false;
|
|
4030
3894
|
}
|
|
4031
|
-
|
|
4032
|
-
|
|
4033
|
-
|
|
4034
|
-
|
|
4035
|
-
|
|
4036
|
-
|
|
4037
|
-
|
|
4038
|
-
_tmpl$7$1 = /*#__PURE__*/index.template(`<div><div><button> [<!>...<!>]</button></div></div>`, 8);
|
|
4039
|
-
|
|
4040
|
-
/**
|
|
4041
|
-
* Chunk elements in the array by size
|
|
4042
|
-
*
|
|
4043
|
-
* when the array cannot be chunked evenly by size, the last chunk will be
|
|
4044
|
-
* filled with the remaining elements
|
|
4045
|
-
*
|
|
4046
|
-
* @example
|
|
4047
|
-
* chunkArray(['a','b', 'c', 'd', 'e'], 2) // returns [['a','b'], ['c', 'd'], ['e']]
|
|
4048
|
-
*/
|
|
4049
|
-
function chunkArray(array, size) {
|
|
4050
|
-
if (size < 1) return [];
|
|
4051
|
-
let i = 0;
|
|
4052
|
-
const result = [];
|
|
4053
|
-
while (i < array.length) {
|
|
4054
|
-
result.push(array.slice(i, i + size));
|
|
4055
|
-
i = i + size;
|
|
3895
|
+
var classRule = compositeTransformation(isInstanceOfRegisteredClass, function (clazz, superJson) {
|
|
3896
|
+
var identifier = superJson.classRegistry.getIdentifier(clazz.constructor);
|
|
3897
|
+
return ['class', identifier];
|
|
3898
|
+
}, function (clazz, superJson) {
|
|
3899
|
+
var allowedProps = superJson.classRegistry.getAllowedProps(clazz.constructor);
|
|
3900
|
+
if (!allowedProps) {
|
|
3901
|
+
return __assign$1({}, clazz);
|
|
4056
3902
|
}
|
|
3903
|
+
var result = {};
|
|
3904
|
+
allowedProps.forEach(function (prop) {
|
|
3905
|
+
result[prop] = clazz[prop];
|
|
3906
|
+
});
|
|
4057
3907
|
return result;
|
|
4058
|
-
}
|
|
4059
|
-
|
|
4060
|
-
|
|
4061
|
-
|
|
4062
|
-
|
|
4063
|
-
|
|
4064
|
-
|
|
4065
|
-
|
|
4066
|
-
|
|
4067
|
-
|
|
4068
|
-
|
|
4069
|
-
|
|
4070
|
-
|
|
4071
|
-
|
|
4072
|
-
return (
|
|
4073
|
-
|
|
4074
|
-
|
|
4075
|
-
|
|
4076
|
-
|
|
4077
|
-
|
|
4078
|
-
|
|
4079
|
-
|
|
4080
|
-
|
|
4081
|
-
|
|
4082
|
-
|
|
4083
|
-
|
|
4084
|
-
|
|
4085
|
-
|
|
4086
|
-
|
|
4087
|
-
|
|
4088
|
-
|
|
4089
|
-
|
|
4090
|
-
|
|
4091
|
-
|
|
4092
|
-
|
|
4093
|
-
|
|
4094
|
-
|
|
4095
|
-
|
|
4096
|
-
|
|
4097
|
-
|
|
4098
|
-
|
|
4099
|
-
|
|
4100
|
-
|
|
4101
|
-
get children() {
|
|
4102
|
-
return index.createComponent(CopiedCopier, {});
|
|
4103
|
-
}
|
|
4104
|
-
}), index.createComponent(index.Match, {
|
|
4105
|
-
get when() {
|
|
4106
|
-
return copyState() === 'ErrorCopy';
|
|
4107
|
-
},
|
|
4108
|
-
get children() {
|
|
4109
|
-
return index.createComponent(ErrorCopier, {});
|
|
4110
|
-
}
|
|
4111
|
-
})];
|
|
4112
|
-
}
|
|
4113
|
-
}));
|
|
4114
|
-
index.createRenderEffect(_p$ => {
|
|
4115
|
-
const _v$ = styles.copyButton,
|
|
4116
|
-
_v$2 = `${copyState() === 'NoCopy' ? 'Copy object to clipboard' : copyState() === 'SuccessCopy' ? 'Object copied to clipboard' : 'Error copying object to clipboard'}`;
|
|
4117
|
-
_v$ !== _p$._v$ && index.className(_el$2, _p$._v$ = _v$);
|
|
4118
|
-
_v$2 !== _p$._v$2 && index.setAttribute(_el$2, "aria-label", _p$._v$2 = _v$2);
|
|
4119
|
-
return _p$;
|
|
4120
|
-
}, {
|
|
4121
|
-
_v$: undefined,
|
|
4122
|
-
_v$2: undefined
|
|
4123
|
-
});
|
|
4124
|
-
return _el$2;
|
|
4125
|
-
})();
|
|
3908
|
+
}, function (v, a, superJson) {
|
|
3909
|
+
var clazz = superJson.classRegistry.getValue(a[1]);
|
|
3910
|
+
if (!clazz) {
|
|
3911
|
+
throw new Error('Trying to deserialize unknown class - check https://github.com/blitz-js/superjson/issues/116#issuecomment-773996564');
|
|
3912
|
+
}
|
|
3913
|
+
return Object.assign(Object.create(clazz.prototype), v);
|
|
3914
|
+
});
|
|
3915
|
+
var customRule = compositeTransformation(function (value, superJson) {
|
|
3916
|
+
return !!superJson.customTransformerRegistry.findApplicable(value);
|
|
3917
|
+
}, function (value, superJson) {
|
|
3918
|
+
var transformer = superJson.customTransformerRegistry.findApplicable(value);
|
|
3919
|
+
return ['custom', transformer.name];
|
|
3920
|
+
}, function (value, superJson) {
|
|
3921
|
+
var transformer = superJson.customTransformerRegistry.findApplicable(value);
|
|
3922
|
+
return transformer.serialize(value);
|
|
3923
|
+
}, function (v, a, superJson) {
|
|
3924
|
+
var transformer = superJson.customTransformerRegistry.findByName(a[1]);
|
|
3925
|
+
if (!transformer) {
|
|
3926
|
+
throw new Error('Trying to deserialize unknown custom value');
|
|
3927
|
+
}
|
|
3928
|
+
return transformer.deserialize(v);
|
|
3929
|
+
});
|
|
3930
|
+
var compositeRules = [classRule, symbolRule, customRule, typedArrayRule];
|
|
3931
|
+
var transformValue = function (value, superJson) {
|
|
3932
|
+
var applicableCompositeRule = findArr(compositeRules, function (rule) {
|
|
3933
|
+
return rule.isApplicable(value, superJson);
|
|
3934
|
+
});
|
|
3935
|
+
if (applicableCompositeRule) {
|
|
3936
|
+
return {
|
|
3937
|
+
value: applicableCompositeRule.transform(value, superJson),
|
|
3938
|
+
type: applicableCompositeRule.annotation(value, superJson)
|
|
3939
|
+
};
|
|
3940
|
+
}
|
|
3941
|
+
var applicableSimpleRule = findArr(simpleRules, function (rule) {
|
|
3942
|
+
return rule.isApplicable(value, superJson);
|
|
3943
|
+
});
|
|
3944
|
+
if (applicableSimpleRule) {
|
|
3945
|
+
return {
|
|
3946
|
+
value: applicableSimpleRule.transform(value, superJson),
|
|
3947
|
+
type: applicableSimpleRule.annotation
|
|
3948
|
+
};
|
|
3949
|
+
}
|
|
3950
|
+
return undefined;
|
|
4126
3951
|
};
|
|
4127
|
-
|
|
4128
|
-
|
|
4129
|
-
|
|
4130
|
-
|
|
4131
|
-
|
|
4132
|
-
|
|
4133
|
-
|
|
4134
|
-
|
|
4135
|
-
|
|
4136
|
-
|
|
4137
|
-
|
|
4138
|
-
|
|
4139
|
-
|
|
4140
|
-
|
|
4141
|
-
|
|
4142
|
-
|
|
4143
|
-
|
|
4144
|
-
label: key,
|
|
4145
|
-
value: val
|
|
4146
|
-
}));
|
|
4147
|
-
}
|
|
4148
|
-
return Array.from(props.value, (val, i) => ({
|
|
4149
|
-
label: i.toString(),
|
|
4150
|
-
value: val
|
|
4151
|
-
}));
|
|
4152
|
-
} else if (typeof props.value === 'object' && props.value !== null) {
|
|
4153
|
-
return Object.entries(props.value).map(([key, val]) => ({
|
|
4154
|
-
label: key,
|
|
4155
|
-
value: val
|
|
4156
|
-
}));
|
|
3952
|
+
var simpleRulesByAnnotation = {};
|
|
3953
|
+
simpleRules.forEach(function (rule) {
|
|
3954
|
+
simpleRulesByAnnotation[rule.annotation] = rule;
|
|
3955
|
+
});
|
|
3956
|
+
var untransformValue = function (json, type, superJson) {
|
|
3957
|
+
if (isArray$1(type)) {
|
|
3958
|
+
switch (type[0]) {
|
|
3959
|
+
case 'symbol':
|
|
3960
|
+
return symbolRule.untransform(json, type, superJson);
|
|
3961
|
+
case 'class':
|
|
3962
|
+
return classRule.untransform(json, type, superJson);
|
|
3963
|
+
case 'custom':
|
|
3964
|
+
return customRule.untransform(json, type, superJson);
|
|
3965
|
+
case 'typed-array':
|
|
3966
|
+
return typedArrayRule.untransform(json, type, superJson);
|
|
3967
|
+
default:
|
|
3968
|
+
throw new Error('Unknown transformation: ' + type);
|
|
4157
3969
|
}
|
|
4158
|
-
|
|
4159
|
-
|
|
4160
|
-
|
|
4161
|
-
|
|
4162
|
-
return 'array';
|
|
4163
|
-
} else if (props.value !== null && typeof props.value === 'object' && isIterable(props.value) && typeof props.value[Symbol.iterator] === 'function') {
|
|
4164
|
-
return 'Iterable';
|
|
4165
|
-
} else if (typeof props.value === 'object' && props.value !== null) {
|
|
4166
|
-
return 'object';
|
|
3970
|
+
} else {
|
|
3971
|
+
var transformation = simpleRulesByAnnotation[type];
|
|
3972
|
+
if (!transformation) {
|
|
3973
|
+
throw new Error('Unknown transformation: ' + type);
|
|
4167
3974
|
}
|
|
4168
|
-
return
|
|
4169
|
-
}
|
|
4170
|
-
|
|
4171
|
-
|
|
4172
|
-
|
|
4173
|
-
|
|
4174
|
-
|
|
4175
|
-
|
|
4176
|
-
|
|
4177
|
-
|
|
4178
|
-
|
|
4179
|
-
|
|
4180
|
-
|
|
4181
|
-
|
|
4182
|
-
|
|
4183
|
-
|
|
4184
|
-
|
|
4185
|
-
|
|
4186
|
-
|
|
4187
|
-
|
|
4188
|
-
|
|
4189
|
-
|
|
4190
|
-
}), _el$5);
|
|
4191
|
-
index.insert(_el$6, () => props.label);
|
|
4192
|
-
index.insert(_el$8, () => String(type()).toLowerCase() === 'iterable' ? '(Iterable) ' : '', _el$9);
|
|
4193
|
-
index.insert(_el$8, () => subEntries().length, _el$9);
|
|
4194
|
-
index.insert(_el$8, () => subEntries().length > 1 ? `items` : `item`, null);
|
|
4195
|
-
index.createRenderEffect(_p$ => {
|
|
4196
|
-
const _v$3 = styles.expanderButton,
|
|
4197
|
-
_v$4 = styles.info;
|
|
4198
|
-
_v$3 !== _p$._v$3 && index.className(_el$4, _p$._v$3 = _v$3);
|
|
4199
|
-
_v$4 !== _p$._v$4 && index.className(_el$8, _p$._v$4 = _v$4);
|
|
4200
|
-
return _p$;
|
|
4201
|
-
}, {
|
|
4202
|
-
_v$3: undefined,
|
|
4203
|
-
_v$4: undefined
|
|
4204
|
-
});
|
|
4205
|
-
return _el$4;
|
|
4206
|
-
})(), index.createComponent(index.Show, {
|
|
4207
|
-
get when() {
|
|
4208
|
-
return props.copyable;
|
|
4209
|
-
},
|
|
4210
|
-
get children() {
|
|
4211
|
-
return index.createComponent(CopyButton, {
|
|
4212
|
-
get value() {
|
|
4213
|
-
return props.value;
|
|
4214
|
-
}
|
|
4215
|
-
});
|
|
4216
|
-
}
|
|
4217
|
-
}), index.createComponent(index.Show, {
|
|
4218
|
-
get when() {
|
|
4219
|
-
return expanded();
|
|
4220
|
-
},
|
|
4221
|
-
get children() {
|
|
4222
|
-
return [index.createComponent(index.Show, {
|
|
4223
|
-
get when() {
|
|
4224
|
-
return subEntryPages().length === 1;
|
|
4225
|
-
},
|
|
4226
|
-
get children() {
|
|
4227
|
-
const _el$10 = _tmpl$4$1.cloneNode(true);
|
|
4228
|
-
index.insert(_el$10, index.createComponent(Key, {
|
|
4229
|
-
get each() {
|
|
4230
|
-
return subEntries();
|
|
4231
|
-
},
|
|
4232
|
-
by: item => item.label,
|
|
4233
|
-
children: entry => {
|
|
4234
|
-
return index.createComponent(Explorer, {
|
|
4235
|
-
get defaultExpanded() {
|
|
4236
|
-
return props.defaultExpanded;
|
|
4237
|
-
},
|
|
4238
|
-
get label() {
|
|
4239
|
-
return entry().label;
|
|
4240
|
-
},
|
|
4241
|
-
get value() {
|
|
4242
|
-
return entry().value;
|
|
4243
|
-
},
|
|
4244
|
-
get copyable() {
|
|
4245
|
-
return props.copyable;
|
|
4246
|
-
}
|
|
4247
|
-
});
|
|
4248
|
-
}
|
|
4249
|
-
}));
|
|
4250
|
-
index.createRenderEffect(() => index.className(_el$10, styles.subEntry));
|
|
4251
|
-
return _el$10;
|
|
4252
|
-
}
|
|
4253
|
-
}), index.createComponent(index.Show, {
|
|
4254
|
-
get when() {
|
|
4255
|
-
return subEntryPages().length > 1;
|
|
4256
|
-
},
|
|
4257
|
-
get children() {
|
|
4258
|
-
const _el$11 = _tmpl$4$1.cloneNode(true);
|
|
4259
|
-
index.insert(_el$11, index.createComponent(index.Index, {
|
|
4260
|
-
get each() {
|
|
4261
|
-
return subEntryPages();
|
|
4262
|
-
},
|
|
4263
|
-
children: (entries, index$1) => (() => {
|
|
4264
|
-
const _el$15 = _tmpl$7$1.cloneNode(true),
|
|
4265
|
-
_el$16 = _el$15.firstChild,
|
|
4266
|
-
_el$17 = _el$16.firstChild,
|
|
4267
|
-
_el$18 = _el$17.firstChild,
|
|
4268
|
-
_el$22 = _el$18.nextSibling,
|
|
4269
|
-
_el$20 = _el$22.nextSibling,
|
|
4270
|
-
_el$23 = _el$20.nextSibling;
|
|
4271
|
-
_el$23.nextSibling;
|
|
4272
|
-
_el$17.$$click = () => setExpandedPages(old => old.includes(index$1) ? old.filter(d => d !== index$1) : [...old, index$1]);
|
|
4273
|
-
index.insert(_el$17, index.createComponent(Expander, {
|
|
4274
|
-
get expanded() {
|
|
4275
|
-
return expandedPages().includes(index$1);
|
|
4276
|
-
}
|
|
4277
|
-
}), _el$18);
|
|
4278
|
-
index.insert(_el$17, index$1 * 100, _el$22);
|
|
4279
|
-
index.insert(_el$17, index$1 * 100 + 100 - 1, _el$23);
|
|
4280
|
-
index.insert(_el$16, index.createComponent(index.Show, {
|
|
4281
|
-
get when() {
|
|
4282
|
-
return expandedPages().includes(index$1);
|
|
4283
|
-
},
|
|
4284
|
-
get children() {
|
|
4285
|
-
const _el$24 = _tmpl$4$1.cloneNode(true);
|
|
4286
|
-
index.insert(_el$24, index.createComponent(Key, {
|
|
4287
|
-
get each() {
|
|
4288
|
-
return entries();
|
|
4289
|
-
},
|
|
4290
|
-
by: entry => entry.label,
|
|
4291
|
-
children: entry => index.createComponent(Explorer, {
|
|
4292
|
-
get defaultExpanded() {
|
|
4293
|
-
return props.defaultExpanded;
|
|
4294
|
-
},
|
|
4295
|
-
get label() {
|
|
4296
|
-
return entry().label;
|
|
4297
|
-
},
|
|
4298
|
-
get value() {
|
|
4299
|
-
return entry().value;
|
|
4300
|
-
},
|
|
4301
|
-
get copyable() {
|
|
4302
|
-
return props.copyable;
|
|
4303
|
-
}
|
|
4304
|
-
})
|
|
4305
|
-
}));
|
|
4306
|
-
index.createRenderEffect(() => index.className(_el$24, styles.subEntry));
|
|
4307
|
-
return _el$24;
|
|
4308
|
-
}
|
|
4309
|
-
}), null);
|
|
4310
|
-
index.createRenderEffect(_p$ => {
|
|
4311
|
-
const _v$5 = styles.entry,
|
|
4312
|
-
_v$6 = styles.expanderButton;
|
|
4313
|
-
_v$5 !== _p$._v$5 && index.className(_el$16, _p$._v$5 = _v$5);
|
|
4314
|
-
_v$6 !== _p$._v$6 && index.className(_el$17, _p$._v$6 = _v$6);
|
|
4315
|
-
return _p$;
|
|
4316
|
-
}, {
|
|
4317
|
-
_v$5: undefined,
|
|
4318
|
-
_v$6: undefined
|
|
4319
|
-
});
|
|
4320
|
-
return _el$15;
|
|
4321
|
-
})()
|
|
4322
|
-
}));
|
|
4323
|
-
index.createRenderEffect(() => index.className(_el$11, styles.subEntry));
|
|
4324
|
-
return _el$11;
|
|
4325
|
-
}
|
|
4326
|
-
})];
|
|
4327
|
-
}
|
|
4328
|
-
})];
|
|
4329
|
-
}
|
|
4330
|
-
}), null);
|
|
4331
|
-
index.insert(_el$3, index.createComponent(index.Show, {
|
|
4332
|
-
get when() {
|
|
4333
|
-
return subEntryPages().length === 0;
|
|
4334
|
-
},
|
|
4335
|
-
get children() {
|
|
4336
|
-
return [(() => {
|
|
4337
|
-
const _el$12 = _tmpl$5$1.cloneNode(true),
|
|
4338
|
-
_el$13 = _el$12.firstChild;
|
|
4339
|
-
index.insert(_el$12, () => props.label, _el$13);
|
|
4340
|
-
index.createRenderEffect(() => index.className(_el$12, styles.label));
|
|
4341
|
-
return _el$12;
|
|
4342
|
-
})(), ' ', (() => {
|
|
4343
|
-
const _el$14 = _tmpl$6$1.cloneNode(true);
|
|
4344
|
-
index.insert(_el$14, () => displayValue(props.value));
|
|
4345
|
-
index.createRenderEffect(() => index.className(_el$14, styles.value));
|
|
4346
|
-
return _el$14;
|
|
4347
|
-
})()];
|
|
4348
|
-
}
|
|
4349
|
-
}), null);
|
|
4350
|
-
index.createRenderEffect(() => index.className(_el$3, styles.entry));
|
|
4351
|
-
return _el$3;
|
|
4352
|
-
})();
|
|
3975
|
+
return transformation.untransform(json, superJson);
|
|
3976
|
+
}
|
|
3977
|
+
};
|
|
3978
|
+
|
|
3979
|
+
var getNthKey = function (value, n) {
|
|
3980
|
+
var keys = value.keys();
|
|
3981
|
+
while (n > 0) {
|
|
3982
|
+
keys.next();
|
|
3983
|
+
n--;
|
|
3984
|
+
}
|
|
3985
|
+
return keys.next().value;
|
|
3986
|
+
};
|
|
3987
|
+
function validatePath(path) {
|
|
3988
|
+
if (includes(path, '__proto__')) {
|
|
3989
|
+
throw new Error('__proto__ is not allowed as a property');
|
|
3990
|
+
}
|
|
3991
|
+
if (includes(path, 'prototype')) {
|
|
3992
|
+
throw new Error('prototype is not allowed as a property');
|
|
3993
|
+
}
|
|
3994
|
+
if (includes(path, 'constructor')) {
|
|
3995
|
+
throw new Error('constructor is not allowed as a property');
|
|
3996
|
+
}
|
|
4353
3997
|
}
|
|
4354
|
-
|
|
4355
|
-
|
|
4356
|
-
|
|
4357
|
-
|
|
4358
|
-
|
|
4359
|
-
|
|
4360
|
-
|
|
4361
|
-
|
|
4362
|
-
|
|
4363
|
-
|
|
4364
|
-
|
|
4365
|
-
|
|
4366
|
-
|
|
4367
|
-
|
|
4368
|
-
|
|
4369
|
-
|
|
4370
|
-
|
|
4371
|
-
`,
|
|
4372
|
-
subEntry: css`
|
|
4373
|
-
margin: 0 0 0 0.5em;
|
|
4374
|
-
padding-left: 0.75em;
|
|
4375
|
-
border-left: 2px solid ${colors.darkGray[400]};
|
|
4376
|
-
`,
|
|
4377
|
-
expander: css`
|
|
4378
|
-
& path {
|
|
4379
|
-
stroke: ${colors.gray[400]};
|
|
3998
|
+
var getDeep = function (object, path) {
|
|
3999
|
+
validatePath(path);
|
|
4000
|
+
for (var i = 0; i < path.length; i++) {
|
|
4001
|
+
var key = path[i];
|
|
4002
|
+
if (isSet(object)) {
|
|
4003
|
+
object = getNthKey(object, +key);
|
|
4004
|
+
} else if (isMap(object)) {
|
|
4005
|
+
var row = +key;
|
|
4006
|
+
var type = +path[++i] === 0 ? 'key' : 'value';
|
|
4007
|
+
var keyOfRow = getNthKey(object, row);
|
|
4008
|
+
switch (type) {
|
|
4009
|
+
case 'key':
|
|
4010
|
+
object = keyOfRow;
|
|
4011
|
+
break;
|
|
4012
|
+
case 'value':
|
|
4013
|
+
object = object.get(keyOfRow);
|
|
4014
|
+
break;
|
|
4380
4015
|
}
|
|
4381
|
-
|
|
4382
|
-
|
|
4383
|
-
|
|
4384
|
-
|
|
4385
|
-
|
|
4386
|
-
|
|
4387
|
-
|
|
4388
|
-
|
|
4389
|
-
|
|
4390
|
-
|
|
4391
|
-
|
|
4392
|
-
|
|
4393
|
-
|
|
4394
|
-
|
|
4395
|
-
|
|
4396
|
-
|
|
4397
|
-
|
|
4398
|
-
|
|
4399
|
-
|
|
4400
|
-
|
|
4016
|
+
} else {
|
|
4017
|
+
object = object[key];
|
|
4018
|
+
}
|
|
4019
|
+
}
|
|
4020
|
+
return object;
|
|
4021
|
+
};
|
|
4022
|
+
var setDeep = function (object, path, mapper) {
|
|
4023
|
+
validatePath(path);
|
|
4024
|
+
if (path.length === 0) {
|
|
4025
|
+
return mapper(object);
|
|
4026
|
+
}
|
|
4027
|
+
var parent = object;
|
|
4028
|
+
for (var i = 0; i < path.length - 1; i++) {
|
|
4029
|
+
var key = path[i];
|
|
4030
|
+
if (isArray$1(parent)) {
|
|
4031
|
+
var index = +key;
|
|
4032
|
+
parent = parent[index];
|
|
4033
|
+
} else if (isPlainObject$1(parent)) {
|
|
4034
|
+
parent = parent[key];
|
|
4035
|
+
} else if (isSet(parent)) {
|
|
4036
|
+
var row = +key;
|
|
4037
|
+
parent = getNthKey(parent, row);
|
|
4038
|
+
} else if (isMap(parent)) {
|
|
4039
|
+
var isEnd = i === path.length - 2;
|
|
4040
|
+
if (isEnd) {
|
|
4041
|
+
break;
|
|
4401
4042
|
}
|
|
4402
|
-
|
|
4403
|
-
|
|
4404
|
-
|
|
4405
|
-
|
|
4406
|
-
|
|
4407
|
-
|
|
4408
|
-
|
|
4409
|
-
|
|
4410
|
-
|
|
4411
|
-
|
|
4412
|
-
value: css`
|
|
4413
|
-
color: ${colors.purple[400]};
|
|
4414
|
-
`,
|
|
4415
|
-
copyButton: css`
|
|
4416
|
-
background-color: transparent;
|
|
4417
|
-
border: none;
|
|
4418
|
-
display: inline-flex;
|
|
4419
|
-
padding: 0px;
|
|
4420
|
-
align-items: center;
|
|
4421
|
-
justify-content: center;
|
|
4422
|
-
cursor: pointer;
|
|
4423
|
-
width: ${size[3.5]};
|
|
4424
|
-
height: ${size[3.5]};
|
|
4425
|
-
position: relative;
|
|
4426
|
-
top: 4px;
|
|
4427
|
-
left: ${size[2]};
|
|
4428
|
-
z-index: 1;
|
|
4429
|
-
|
|
4430
|
-
&:hover svg .copier {
|
|
4431
|
-
stroke: ${colors.gray[500]} !important;
|
|
4043
|
+
var row = +key;
|
|
4044
|
+
var type = +path[++i] === 0 ? 'key' : 'value';
|
|
4045
|
+
var keyOfRow = getNthKey(parent, row);
|
|
4046
|
+
switch (type) {
|
|
4047
|
+
case 'key':
|
|
4048
|
+
parent = keyOfRow;
|
|
4049
|
+
break;
|
|
4050
|
+
case 'value':
|
|
4051
|
+
parent = parent.get(keyOfRow);
|
|
4052
|
+
break;
|
|
4432
4053
|
}
|
|
4054
|
+
}
|
|
4055
|
+
}
|
|
4056
|
+
var lastKey = path[path.length - 1];
|
|
4057
|
+
if (isArray$1(parent)) {
|
|
4058
|
+
parent[+lastKey] = mapper(parent[+lastKey]);
|
|
4059
|
+
} else if (isPlainObject$1(parent)) {
|
|
4060
|
+
parent[lastKey] = mapper(parent[lastKey]);
|
|
4061
|
+
}
|
|
4062
|
+
if (isSet(parent)) {
|
|
4063
|
+
var oldValue = getNthKey(parent, +lastKey);
|
|
4064
|
+
var newValue = mapper(oldValue);
|
|
4065
|
+
if (oldValue !== newValue) {
|
|
4066
|
+
parent["delete"](oldValue);
|
|
4067
|
+
parent.add(newValue);
|
|
4068
|
+
}
|
|
4069
|
+
}
|
|
4070
|
+
if (isMap(parent)) {
|
|
4071
|
+
var row = +path[path.length - 2];
|
|
4072
|
+
var keyToRow = getNthKey(parent, row);
|
|
4073
|
+
var type = +lastKey === 0 ? 'key' : 'value';
|
|
4074
|
+
switch (type) {
|
|
4075
|
+
case 'key':
|
|
4076
|
+
{
|
|
4077
|
+
var newKey = mapper(keyToRow);
|
|
4078
|
+
parent.set(newKey, parent.get(keyToRow));
|
|
4079
|
+
if (newKey !== keyToRow) {
|
|
4080
|
+
parent["delete"](keyToRow);
|
|
4081
|
+
}
|
|
4082
|
+
break;
|
|
4083
|
+
}
|
|
4084
|
+
case 'value':
|
|
4085
|
+
{
|
|
4086
|
+
parent.set(keyToRow, mapper(parent.get(keyToRow)));
|
|
4087
|
+
break;
|
|
4088
|
+
}
|
|
4089
|
+
}
|
|
4090
|
+
}
|
|
4091
|
+
return object;
|
|
4092
|
+
};
|
|
4433
4093
|
|
|
4434
|
-
|
|
4435
|
-
|
|
4436
|
-
|
|
4437
|
-
|
|
4438
|
-
|
|
4439
|
-
|
|
4440
|
-
|
|
4094
|
+
var __read$1 = undefined && undefined.__read || function (o, n) {
|
|
4095
|
+
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
|
4096
|
+
if (!m) return o;
|
|
4097
|
+
var i = m.call(o),
|
|
4098
|
+
r,
|
|
4099
|
+
ar = [],
|
|
4100
|
+
e;
|
|
4101
|
+
try {
|
|
4102
|
+
while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
|
|
4103
|
+
} catch (error) {
|
|
4104
|
+
e = {
|
|
4105
|
+
error: error
|
|
4106
|
+
};
|
|
4107
|
+
} finally {
|
|
4108
|
+
try {
|
|
4109
|
+
if (r && !r.done && (m = i["return"])) m.call(i);
|
|
4110
|
+
} finally {
|
|
4111
|
+
if (e) throw e.error;
|
|
4112
|
+
}
|
|
4113
|
+
}
|
|
4114
|
+
return ar;
|
|
4115
|
+
};
|
|
4116
|
+
var __spreadArray$1 = undefined && undefined.__spreadArray || function (to, from) {
|
|
4117
|
+
for (var i = 0, il = from.length, j = to.length; i < il; i++, j++) to[j] = from[i];
|
|
4118
|
+
return to;
|
|
4119
|
+
};
|
|
4120
|
+
function traverse(tree, walker, origin) {
|
|
4121
|
+
if (origin === void 0) {
|
|
4122
|
+
origin = [];
|
|
4123
|
+
}
|
|
4124
|
+
if (!tree) {
|
|
4125
|
+
return;
|
|
4126
|
+
}
|
|
4127
|
+
if (!isArray$1(tree)) {
|
|
4128
|
+
forEach(tree, function (subtree, key) {
|
|
4129
|
+
return traverse(subtree, walker, __spreadArray$1(__spreadArray$1([], __read$1(origin)), __read$1(parsePath(key))));
|
|
4130
|
+
});
|
|
4131
|
+
return;
|
|
4132
|
+
}
|
|
4133
|
+
var _a = __read$1(tree, 2),
|
|
4134
|
+
nodeValue = _a[0],
|
|
4135
|
+
children = _a[1];
|
|
4136
|
+
if (children) {
|
|
4137
|
+
forEach(children, function (child, key) {
|
|
4138
|
+
traverse(child, walker, __spreadArray$1(__spreadArray$1([], __read$1(origin)), __read$1(parsePath(key))));
|
|
4139
|
+
});
|
|
4140
|
+
}
|
|
4141
|
+
walker(nodeValue, origin);
|
|
4142
|
+
}
|
|
4143
|
+
function applyValueAnnotations(plain, annotations, superJson) {
|
|
4144
|
+
traverse(annotations, function (type, path) {
|
|
4145
|
+
plain = setDeep(plain, path, function (v) {
|
|
4146
|
+
return untransformValue(v, type, superJson);
|
|
4147
|
+
});
|
|
4148
|
+
});
|
|
4149
|
+
return plain;
|
|
4150
|
+
}
|
|
4151
|
+
function applyReferentialEqualityAnnotations(plain, annotations) {
|
|
4152
|
+
function apply(identicalPaths, path) {
|
|
4153
|
+
var object = getDeep(plain, parsePath(path));
|
|
4154
|
+
identicalPaths.map(parsePath).forEach(function (identicalObjectPath) {
|
|
4155
|
+
plain = setDeep(plain, identicalObjectPath, function () {
|
|
4156
|
+
return object;
|
|
4157
|
+
});
|
|
4158
|
+
});
|
|
4159
|
+
}
|
|
4160
|
+
if (isArray$1(annotations)) {
|
|
4161
|
+
var _a = __read$1(annotations, 2),
|
|
4162
|
+
root = _a[0],
|
|
4163
|
+
other = _a[1];
|
|
4164
|
+
root.forEach(function (identicalPath) {
|
|
4165
|
+
plain = setDeep(plain, parsePath(identicalPath), function () {
|
|
4166
|
+
return plain;
|
|
4167
|
+
});
|
|
4168
|
+
});
|
|
4169
|
+
if (other) {
|
|
4170
|
+
forEach(other, apply);
|
|
4171
|
+
}
|
|
4172
|
+
} else {
|
|
4173
|
+
forEach(annotations, apply);
|
|
4174
|
+
}
|
|
4175
|
+
return plain;
|
|
4176
|
+
}
|
|
4177
|
+
var isDeep = function (object, superJson) {
|
|
4178
|
+
return isPlainObject$1(object) || isArray$1(object) || isMap(object) || isSet(object) || isInstanceOfRegisteredClass(object, superJson);
|
|
4441
4179
|
};
|
|
4442
|
-
|
|
4443
|
-
|
|
4444
|
-
|
|
4445
|
-
|
|
4446
|
-
|
|
4447
|
-
|
|
4448
|
-
|
|
4449
|
-
});
|
|
4450
|
-
function useQueryDevtoolsContext() {
|
|
4451
|
-
return index.useContext(QueryDevtoolsContext);
|
|
4180
|
+
function addIdentity(object, path, identities) {
|
|
4181
|
+
var existingSet = identities.get(object);
|
|
4182
|
+
if (existingSet) {
|
|
4183
|
+
existingSet.push(path);
|
|
4184
|
+
} else {
|
|
4185
|
+
identities.set(object, [path]);
|
|
4186
|
+
}
|
|
4452
4187
|
}
|
|
4453
|
-
|
|
4454
|
-
|
|
4455
|
-
var
|
|
4456
|
-
function
|
|
4457
|
-
|
|
4458
|
-
|
|
4459
|
-
|
|
4460
|
-
|
|
4461
|
-
|
|
4462
|
-
|
|
4463
|
-
|
|
4464
|
-
|
|
4188
|
+
function generateReferentialEqualityAnnotations(identitites) {
|
|
4189
|
+
var result = {};
|
|
4190
|
+
var rootEqualityPaths = undefined;
|
|
4191
|
+
identitites.forEach(function (paths) {
|
|
4192
|
+
if (paths.length <= 1) {
|
|
4193
|
+
return;
|
|
4194
|
+
}
|
|
4195
|
+
var _a = __read$1(paths.map(function (path) {
|
|
4196
|
+
return path.map(String);
|
|
4197
|
+
}).sort(function (a, b) {
|
|
4198
|
+
return a.length - b.length;
|
|
4199
|
+
})),
|
|
4200
|
+
shortestPath = _a[0],
|
|
4201
|
+
identicalPaths = _a.slice(1);
|
|
4202
|
+
if (shortestPath.length === 0) {
|
|
4203
|
+
rootEqualityPaths = identicalPaths.map(stringifyPath);
|
|
4204
|
+
} else {
|
|
4205
|
+
result[stringifyPath(shortestPath)] = identicalPaths.map(stringifyPath);
|
|
4206
|
+
}
|
|
4465
4207
|
});
|
|
4466
|
-
|
|
4467
|
-
|
|
4468
|
-
|
|
4469
|
-
|
|
4470
|
-
|
|
4471
|
-
const handleRemoved = options.exitMethod === "remove" ? noop : options.exitMethod === "keep-index" ? (els, el, i) => els.splice(i, 0, el) : (els, el) => els.push(el);
|
|
4472
|
-
return index.createMemo(prev => {
|
|
4473
|
-
const elsToRemove = toRemove();
|
|
4474
|
-
const sourceList = source();
|
|
4475
|
-
sourceList[index.$TRACK];
|
|
4476
|
-
if (index.untrack(isTransitionPending)) {
|
|
4477
|
-
isTransitionPending();
|
|
4478
|
-
return prev;
|
|
4208
|
+
if (rootEqualityPaths) {
|
|
4209
|
+
if (isEmptyObject(result)) {
|
|
4210
|
+
return [rootEqualityPaths];
|
|
4211
|
+
} else {
|
|
4212
|
+
return [rootEqualityPaths, result];
|
|
4479
4213
|
}
|
|
4480
|
-
|
|
4481
|
-
|
|
4482
|
-
|
|
4483
|
-
|
|
4484
|
-
|
|
4485
|
-
|
|
4486
|
-
|
|
4487
|
-
|
|
4488
|
-
|
|
4489
|
-
|
|
4490
|
-
|
|
4214
|
+
} else {
|
|
4215
|
+
return isEmptyObject(result) ? undefined : result;
|
|
4216
|
+
}
|
|
4217
|
+
}
|
|
4218
|
+
var walker = function (object, identities, superJson, path, objectsInThisPath) {
|
|
4219
|
+
var _a;
|
|
4220
|
+
if (path === void 0) {
|
|
4221
|
+
path = [];
|
|
4222
|
+
}
|
|
4223
|
+
if (objectsInThisPath === void 0) {
|
|
4224
|
+
objectsInThisPath = [];
|
|
4225
|
+
}
|
|
4226
|
+
if (!isPrimitive(object)) {
|
|
4227
|
+
addIdentity(object, path, identities);
|
|
4228
|
+
}
|
|
4229
|
+
if (!isDeep(object, superJson)) {
|
|
4230
|
+
var transformed_1 = transformValue(object, superJson);
|
|
4231
|
+
if (transformed_1) {
|
|
4232
|
+
return {
|
|
4233
|
+
transformedValue: transformed_1.value,
|
|
4234
|
+
annotations: [transformed_1.type]
|
|
4235
|
+
};
|
|
4236
|
+
} else {
|
|
4237
|
+
return {
|
|
4238
|
+
transformedValue: object
|
|
4239
|
+
};
|
|
4491
4240
|
}
|
|
4492
|
-
|
|
4493
|
-
|
|
4494
|
-
|
|
4495
|
-
|
|
4496
|
-
|
|
4497
|
-
|
|
4498
|
-
|
|
4499
|
-
|
|
4500
|
-
|
|
4501
|
-
|
|
4502
|
-
|
|
4503
|
-
|
|
4504
|
-
|
|
4505
|
-
|
|
4506
|
-
|
|
4507
|
-
|
|
4508
|
-
|
|
4509
|
-
|
|
4510
|
-
|
|
4511
|
-
|
|
4512
|
-
|
|
4513
|
-
if (!removed.length && nothingChanged) return prev;
|
|
4514
|
-
onChange({
|
|
4515
|
-
list: next,
|
|
4516
|
-
added,
|
|
4517
|
-
removed,
|
|
4518
|
-
unchanged,
|
|
4519
|
-
finishRemoved
|
|
4241
|
+
}
|
|
4242
|
+
if (includes(objectsInThisPath, object)) {
|
|
4243
|
+
return {
|
|
4244
|
+
transformedValue: null
|
|
4245
|
+
};
|
|
4246
|
+
}
|
|
4247
|
+
var transformationResult = transformValue(object, superJson);
|
|
4248
|
+
var transformed = (_a = transformationResult === null || transformationResult === void 0 ? void 0 : transformationResult.value) !== null && _a !== void 0 ? _a : object;
|
|
4249
|
+
if (!isPrimitive(object)) {
|
|
4250
|
+
objectsInThisPath = __spreadArray$1(__spreadArray$1([], __read$1(objectsInThisPath)), [object]);
|
|
4251
|
+
}
|
|
4252
|
+
var transformedValue = isArray$1(transformed) ? [] : {};
|
|
4253
|
+
var innerAnnotations = {};
|
|
4254
|
+
forEach(transformed, function (value, index) {
|
|
4255
|
+
var recursiveResult = walker(value, identities, superJson, __spreadArray$1(__spreadArray$1([], __read$1(path)), [index]), objectsInThisPath);
|
|
4256
|
+
transformedValue[index] = recursiveResult.transformedValue;
|
|
4257
|
+
if (isArray$1(recursiveResult.annotations)) {
|
|
4258
|
+
innerAnnotations[index] = recursiveResult.annotations;
|
|
4259
|
+
} else if (isPlainObject$1(recursiveResult.annotations)) {
|
|
4260
|
+
forEach(recursiveResult.annotations, function (tree, key) {
|
|
4261
|
+
innerAnnotations[escapeKey(index) + '.' + key] = tree;
|
|
4520
4262
|
});
|
|
4521
|
-
|
|
4522
|
-
|
|
4523
|
-
|
|
4524
|
-
|
|
4263
|
+
}
|
|
4264
|
+
});
|
|
4265
|
+
if (isEmptyObject(innerAnnotations)) {
|
|
4266
|
+
return {
|
|
4267
|
+
transformedValue: transformedValue,
|
|
4268
|
+
annotations: !!transformationResult ? [transformationResult.type] : undefined
|
|
4269
|
+
};
|
|
4270
|
+
} else {
|
|
4271
|
+
return {
|
|
4272
|
+
transformedValue: transformedValue,
|
|
4273
|
+
annotations: !!transformationResult ? [transformationResult.type, innerAnnotations] : innerAnnotations
|
|
4274
|
+
};
|
|
4275
|
+
}
|
|
4276
|
+
};
|
|
4277
|
+
|
|
4278
|
+
function getType(payload) {
|
|
4279
|
+
return Object.prototype.toString.call(payload).slice(8, -1);
|
|
4280
|
+
}
|
|
4281
|
+
function isPlainObject(payload) {
|
|
4282
|
+
if (getType(payload) !== "Object") return false;
|
|
4283
|
+
const prototype = Object.getPrototypeOf(payload);
|
|
4284
|
+
return !!prototype && prototype.constructor === Object && prototype === Object.prototype;
|
|
4285
|
+
}
|
|
4286
|
+
function isArray(payload) {
|
|
4287
|
+
return getType(payload) === "Array";
|
|
4525
4288
|
}
|
|
4526
4289
|
|
|
4527
|
-
|
|
4528
|
-
|
|
4529
|
-
|
|
4530
|
-
|
|
4531
|
-
|
|
4532
|
-
|
|
4533
|
-
|
|
4534
|
-
|
|
4535
|
-
|
|
4536
|
-
|
|
4537
|
-
return;
|
|
4538
|
-
}
|
|
4539
|
-
if (!currLength) {
|
|
4540
|
-
for (; i < prevLength; i++) handleRemoved(prev[i]);
|
|
4541
|
-
return;
|
|
4542
|
-
}
|
|
4543
|
-
for (; i < prevLength; i++) {
|
|
4544
|
-
if (prev[i] !== current[i]) break;
|
|
4290
|
+
function assignProp(carry, key, newVal, originalObject, includeNonenumerable) {
|
|
4291
|
+
const propType = {}.propertyIsEnumerable.call(originalObject, key) ? 'enumerable' : 'nonenumerable';
|
|
4292
|
+
if (propType === 'enumerable') carry[key] = newVal;
|
|
4293
|
+
if (includeNonenumerable && propType === 'nonenumerable') {
|
|
4294
|
+
Object.defineProperty(carry, key, {
|
|
4295
|
+
value: newVal,
|
|
4296
|
+
enumerable: false,
|
|
4297
|
+
writable: true,
|
|
4298
|
+
configurable: true
|
|
4299
|
+
});
|
|
4545
4300
|
}
|
|
4546
|
-
|
|
4547
|
-
|
|
4548
|
-
|
|
4549
|
-
|
|
4550
|
-
|
|
4551
|
-
|
|
4301
|
+
}
|
|
4302
|
+
/**
|
|
4303
|
+
* Copy (clone) an object and all its props recursively to get rid of any prop referenced of the original object. Arrays are also cloned, however objects inside arrays are still linked.
|
|
4304
|
+
*
|
|
4305
|
+
* @export
|
|
4306
|
+
* @template T
|
|
4307
|
+
* @param {T} target Target can be anything
|
|
4308
|
+
* @param {Options} [options = {}] Options can be `props` or `nonenumerable`
|
|
4309
|
+
* @returns {T} the target with replaced values
|
|
4310
|
+
* @export
|
|
4311
|
+
*/
|
|
4312
|
+
function copy(target, options = {}) {
|
|
4313
|
+
if (isArray(target)) {
|
|
4314
|
+
return target.map(item => copy(item, options));
|
|
4552
4315
|
}
|
|
4553
|
-
|
|
4554
|
-
|
|
4316
|
+
if (!isPlainObject(target)) {
|
|
4317
|
+
return target;
|
|
4555
4318
|
}
|
|
4319
|
+
const props = Object.getOwnPropertyNames(target);
|
|
4320
|
+
const symbols = Object.getOwnPropertySymbols(target);
|
|
4321
|
+
return [...props, ...symbols].reduce((carry, key) => {
|
|
4322
|
+
if (isArray(options.props) && !options.props.includes(key)) {
|
|
4323
|
+
return carry;
|
|
4324
|
+
}
|
|
4325
|
+
const val = target[key];
|
|
4326
|
+
const newVal = copy(val, options);
|
|
4327
|
+
assignProp(carry, key, newVal, target, options.nonenumerable);
|
|
4328
|
+
return carry;
|
|
4329
|
+
}, {});
|
|
4556
4330
|
}
|
|
4557
4331
|
|
|
4558
|
-
var
|
|
4559
|
-
function
|
|
4560
|
-
|
|
4561
|
-
|
|
4562
|
-
|
|
4563
|
-
const results = [];
|
|
4564
|
-
for (const item of value) {
|
|
4565
|
-
const result = getResolvedElements(item, predicate);
|
|
4566
|
-
if (result) Array.isArray(result) ? results.push.apply(results, result) : results.push(result);
|
|
4332
|
+
var __assign = undefined && undefined.__assign || function () {
|
|
4333
|
+
__assign = Object.assign || function (t) {
|
|
4334
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
4335
|
+
s = arguments[i];
|
|
4336
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
|
|
4567
4337
|
}
|
|
4568
|
-
return
|
|
4569
|
-
}
|
|
4570
|
-
return null;
|
|
4571
|
-
}
|
|
4572
|
-
function resolveElements(fn, predicate = defaultElementPredicate, serverPredicate = defaultElementPredicate) {
|
|
4573
|
-
const children2 = index.createMemo(fn);
|
|
4574
|
-
const memo = index.createMemo(() => getResolvedElements(children2(), predicate));
|
|
4575
|
-
memo.toArray = () => {
|
|
4576
|
-
const value = memo();
|
|
4577
|
-
return Array.isArray(value) ? value : value ? [value] : [];
|
|
4338
|
+
return t;
|
|
4578
4339
|
};
|
|
4579
|
-
return
|
|
4580
|
-
}
|
|
4581
|
-
|
|
4582
|
-
|
|
4583
|
-
|
|
4584
|
-
|
|
4585
|
-
|
|
4586
|
-
|
|
4587
|
-
|
|
4588
|
-
|
|
4589
|
-
|
|
4590
|
-
|
|
4591
|
-
|
|
4592
|
-
|
|
4593
|
-
moveClasses: (props.moveClass || name + "-move").split(" ")
|
|
4340
|
+
return __assign.apply(this, arguments);
|
|
4341
|
+
};
|
|
4342
|
+
var __read = undefined && undefined.__read || function (o, n) {
|
|
4343
|
+
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
|
4344
|
+
if (!m) return o;
|
|
4345
|
+
var i = m.call(o),
|
|
4346
|
+
r,
|
|
4347
|
+
ar = [],
|
|
4348
|
+
e;
|
|
4349
|
+
try {
|
|
4350
|
+
while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
|
|
4351
|
+
} catch (error) {
|
|
4352
|
+
e = {
|
|
4353
|
+
error: error
|
|
4594
4354
|
};
|
|
4595
|
-
}
|
|
4596
|
-
|
|
4597
|
-
|
|
4598
|
-
|
|
4599
|
-
|
|
4600
|
-
function enterTransition(classnames, events, el, done) {
|
|
4601
|
-
const {
|
|
4602
|
-
enterClasses,
|
|
4603
|
-
enterActiveClasses,
|
|
4604
|
-
enterToClasses
|
|
4605
|
-
} = classnames,
|
|
4606
|
-
{
|
|
4607
|
-
onBeforeEnter,
|
|
4608
|
-
onEnter,
|
|
4609
|
-
onAfterEnter
|
|
4610
|
-
} = events;
|
|
4611
|
-
onBeforeEnter?.(el);
|
|
4612
|
-
el.classList.add(...enterClasses);
|
|
4613
|
-
el.classList.add(...enterActiveClasses);
|
|
4614
|
-
queueMicrotask(() => {
|
|
4615
|
-
if (!el.parentNode) return done?.();
|
|
4616
|
-
onEnter?.(el, () => endTransition());
|
|
4617
|
-
});
|
|
4618
|
-
nextFrame(() => {
|
|
4619
|
-
el.classList.remove(...enterClasses);
|
|
4620
|
-
el.classList.add(...enterToClasses);
|
|
4621
|
-
if (!onEnter || onEnter.length < 2) {
|
|
4622
|
-
el.addEventListener("transitionend", endTransition);
|
|
4623
|
-
el.addEventListener("animationend", endTransition);
|
|
4624
|
-
}
|
|
4625
|
-
});
|
|
4626
|
-
function endTransition(e) {
|
|
4627
|
-
if (!e || e.target === el) {
|
|
4628
|
-
done?.();
|
|
4629
|
-
el.removeEventListener("transitionend", endTransition);
|
|
4630
|
-
el.removeEventListener("animationend", endTransition);
|
|
4631
|
-
el.classList.remove(...enterActiveClasses);
|
|
4632
|
-
el.classList.remove(...enterToClasses);
|
|
4633
|
-
onAfterEnter?.(el);
|
|
4355
|
+
} finally {
|
|
4356
|
+
try {
|
|
4357
|
+
if (r && !r.done && (m = i["return"])) m.call(i);
|
|
4358
|
+
} finally {
|
|
4359
|
+
if (e) throw e.error;
|
|
4634
4360
|
}
|
|
4635
4361
|
}
|
|
4636
|
-
|
|
4637
|
-
|
|
4638
|
-
|
|
4639
|
-
|
|
4640
|
-
|
|
4641
|
-
|
|
4642
|
-
|
|
4643
|
-
|
|
4644
|
-
|
|
4645
|
-
|
|
4646
|
-
|
|
4647
|
-
|
|
4648
|
-
|
|
4649
|
-
|
|
4650
|
-
|
|
4651
|
-
el.classList.add(...exitActiveClasses);
|
|
4652
|
-
onExit?.(el, () => endTransition());
|
|
4653
|
-
nextFrame(() => {
|
|
4654
|
-
el.classList.remove(...exitClasses);
|
|
4655
|
-
el.classList.add(...exitToClasses);
|
|
4656
|
-
if (!onExit || onExit.length < 2) {
|
|
4657
|
-
el.addEventListener("transitionend", endTransition);
|
|
4658
|
-
el.addEventListener("animationend", endTransition);
|
|
4659
|
-
}
|
|
4660
|
-
});
|
|
4661
|
-
function endTransition(e) {
|
|
4662
|
-
if (!e || e.target === el) {
|
|
4663
|
-
done?.();
|
|
4664
|
-
el.removeEventListener("transitionend", endTransition);
|
|
4665
|
-
el.removeEventListener("animationend", endTransition);
|
|
4666
|
-
el.classList.remove(...exitActiveClasses);
|
|
4667
|
-
el.classList.remove(...exitToClasses);
|
|
4668
|
-
onAfterExit?.(el);
|
|
4669
|
-
}
|
|
4362
|
+
return ar;
|
|
4363
|
+
};
|
|
4364
|
+
var __spreadArray = undefined && undefined.__spreadArray || function (to, from) {
|
|
4365
|
+
for (var i = 0, il = from.length, j = to.length; i < il; i++, j++) to[j] = from[i];
|
|
4366
|
+
return to;
|
|
4367
|
+
};
|
|
4368
|
+
var SuperJSON = /** @class */function () {
|
|
4369
|
+
function SuperJSON() {
|
|
4370
|
+
this.classRegistry = new ClassRegistry();
|
|
4371
|
+
this.symbolRegistry = new Registry(function (s) {
|
|
4372
|
+
var _a;
|
|
4373
|
+
return (_a = s.description) !== null && _a !== void 0 ? _a : '';
|
|
4374
|
+
});
|
|
4375
|
+
this.customTransformerRegistry = new CustomTransformerRegistry();
|
|
4376
|
+
this.allowedErrorProps = [];
|
|
4670
4377
|
}
|
|
4671
|
-
|
|
4672
|
-
var
|
|
4673
|
-
|
|
4674
|
-
|
|
4675
|
-
|
|
4676
|
-
|
|
4677
|
-
|
|
4678
|
-
|
|
4679
|
-
|
|
4680
|
-
finishRemoved,
|
|
4681
|
-
list
|
|
4682
|
-
}) {
|
|
4683
|
-
const classes = classnames();
|
|
4684
|
-
for (const el of added) {
|
|
4685
|
-
enterTransition(classes, props, el);
|
|
4686
|
-
}
|
|
4687
|
-
const toMove = [];
|
|
4688
|
-
for (const el of list) {
|
|
4689
|
-
if (el.isConnected && (el instanceof HTMLElement || el instanceof SVGElement)) {
|
|
4690
|
-
toMove.push({
|
|
4691
|
-
el,
|
|
4692
|
-
rect: el.getBoundingClientRect()
|
|
4693
|
-
});
|
|
4694
|
-
}
|
|
4695
|
-
}
|
|
4696
|
-
queueMicrotask(() => {
|
|
4697
|
-
const moved = [];
|
|
4698
|
-
for (const {
|
|
4699
|
-
el,
|
|
4700
|
-
rect
|
|
4701
|
-
} of toMove) {
|
|
4702
|
-
if (el.isConnected) {
|
|
4703
|
-
const newRect = el.getBoundingClientRect(),
|
|
4704
|
-
dX = rect.left - newRect.left,
|
|
4705
|
-
dY = rect.top - newRect.top;
|
|
4706
|
-
if (dX || dY) {
|
|
4707
|
-
el.style.transform = `translate(${dX}px, ${dY}px)`;
|
|
4708
|
-
el.style.transitionDuration = "0s";
|
|
4709
|
-
moved.push(el);
|
|
4710
|
-
}
|
|
4711
|
-
}
|
|
4712
|
-
}
|
|
4713
|
-
document.body.offsetHeight;
|
|
4714
|
-
for (const el of moved) {
|
|
4715
|
-
let endTransition2 = function (e) {
|
|
4716
|
-
if (e.target === el || /transform$/.test(e.propertyName)) {
|
|
4717
|
-
el.removeEventListener("transitionend", endTransition2);
|
|
4718
|
-
el.classList.remove(...classes.moveClasses);
|
|
4719
|
-
}
|
|
4720
|
-
};
|
|
4721
|
-
el.classList.add(...classes.moveClasses);
|
|
4722
|
-
el.style.transform = el.style.transitionDuration = "";
|
|
4723
|
-
el.addEventListener("transitionend", endTransition2);
|
|
4724
|
-
}
|
|
4378
|
+
SuperJSON.prototype.serialize = function (object) {
|
|
4379
|
+
var identities = new Map();
|
|
4380
|
+
var output = walker(object, identities, this);
|
|
4381
|
+
var res = {
|
|
4382
|
+
json: output.transformedValue
|
|
4383
|
+
};
|
|
4384
|
+
if (output.annotations) {
|
|
4385
|
+
res.meta = __assign(__assign({}, res.meta), {
|
|
4386
|
+
values: output.annotations
|
|
4725
4387
|
});
|
|
4726
|
-
for (const el of removed) {
|
|
4727
|
-
exitTransition(classes, props, el, () => finishRemoved([el]));
|
|
4728
|
-
}
|
|
4729
4388
|
}
|
|
4730
|
-
|
|
4389
|
+
var equalityAnnotations = generateReferentialEqualityAnnotations(identities);
|
|
4390
|
+
if (equalityAnnotations) {
|
|
4391
|
+
res.meta = __assign(__assign({}, res.meta), {
|
|
4392
|
+
referentialEqualities: equalityAnnotations
|
|
4393
|
+
});
|
|
4394
|
+
}
|
|
4395
|
+
return res;
|
|
4396
|
+
};
|
|
4397
|
+
SuperJSON.prototype.deserialize = function (payload) {
|
|
4398
|
+
var json = payload.json,
|
|
4399
|
+
meta = payload.meta;
|
|
4400
|
+
var result = copy(json);
|
|
4401
|
+
if (meta === null || meta === void 0 ? void 0 : meta.values) {
|
|
4402
|
+
result = applyValueAnnotations(result, meta.values, this);
|
|
4403
|
+
}
|
|
4404
|
+
if (meta === null || meta === void 0 ? void 0 : meta.referentialEqualities) {
|
|
4405
|
+
result = applyReferentialEqualityAnnotations(result, meta.referentialEqualities);
|
|
4406
|
+
}
|
|
4407
|
+
return result;
|
|
4408
|
+
};
|
|
4409
|
+
SuperJSON.prototype.stringify = function (object) {
|
|
4410
|
+
return JSON.stringify(this.serialize(object));
|
|
4411
|
+
};
|
|
4412
|
+
SuperJSON.prototype.parse = function (string) {
|
|
4413
|
+
return this.deserialize(JSON.parse(string));
|
|
4414
|
+
};
|
|
4415
|
+
SuperJSON.prototype.registerClass = function (v, options) {
|
|
4416
|
+
this.classRegistry.register(v, options);
|
|
4417
|
+
};
|
|
4418
|
+
SuperJSON.prototype.registerSymbol = function (v, identifier) {
|
|
4419
|
+
this.symbolRegistry.register(v, identifier);
|
|
4420
|
+
};
|
|
4421
|
+
SuperJSON.prototype.registerCustom = function (transformer, name) {
|
|
4422
|
+
this.customTransformerRegistry.register(__assign({
|
|
4423
|
+
name: name
|
|
4424
|
+
}, transformer));
|
|
4425
|
+
};
|
|
4426
|
+
SuperJSON.prototype.allowErrorProps = function () {
|
|
4427
|
+
var _a;
|
|
4428
|
+
var props = [];
|
|
4429
|
+
for (var _i = 0; _i < arguments.length; _i++) {
|
|
4430
|
+
props[_i] = arguments[_i];
|
|
4431
|
+
}
|
|
4432
|
+
(_a = this.allowedErrorProps).push.apply(_a, __spreadArray([], __read(props)));
|
|
4433
|
+
};
|
|
4434
|
+
SuperJSON.defaultInstance = new SuperJSON();
|
|
4435
|
+
SuperJSON.serialize = SuperJSON.defaultInstance.serialize.bind(SuperJSON.defaultInstance);
|
|
4436
|
+
SuperJSON.deserialize = SuperJSON.defaultInstance.deserialize.bind(SuperJSON.defaultInstance);
|
|
4437
|
+
SuperJSON.stringify = SuperJSON.defaultInstance.stringify.bind(SuperJSON.defaultInstance);
|
|
4438
|
+
SuperJSON.parse = SuperJSON.defaultInstance.parse.bind(SuperJSON.defaultInstance);
|
|
4439
|
+
SuperJSON.registerClass = SuperJSON.defaultInstance.registerClass.bind(SuperJSON.defaultInstance);
|
|
4440
|
+
SuperJSON.registerSymbol = SuperJSON.defaultInstance.registerSymbol.bind(SuperJSON.defaultInstance);
|
|
4441
|
+
SuperJSON.registerCustom = SuperJSON.defaultInstance.registerCustom.bind(SuperJSON.defaultInstance);
|
|
4442
|
+
SuperJSON.allowErrorProps = SuperJSON.defaultInstance.allowErrorProps.bind(SuperJSON.defaultInstance);
|
|
4443
|
+
return SuperJSON;
|
|
4444
|
+
}();
|
|
4445
|
+
var serialize = SuperJSON.serialize;
|
|
4446
|
+
var stringify = SuperJSON.stringify;
|
|
4447
|
+
|
|
4448
|
+
function getQueryStatusLabel(query) {
|
|
4449
|
+
return query.state.fetchStatus === 'fetching' ? 'fetching' : !query.getObserversCount() ? 'inactive' : query.state.fetchStatus === 'paused' ? 'paused' : query.isStale() ? 'stale' : 'fresh';
|
|
4450
|
+
}
|
|
4451
|
+
function getSidedProp(prop, side) {
|
|
4452
|
+
return `${prop}${side.charAt(0).toUpperCase() + side.slice(1)}`;
|
|
4453
|
+
}
|
|
4454
|
+
function getQueryStatusColor({
|
|
4455
|
+
queryState,
|
|
4456
|
+
observerCount,
|
|
4457
|
+
isStale
|
|
4458
|
+
}) {
|
|
4459
|
+
return queryState.fetchStatus === 'fetching' ? 'blue' : !observerCount ? 'gray' : queryState.fetchStatus === 'paused' ? 'purple' : isStale ? 'yellow' : 'green';
|
|
4460
|
+
}
|
|
4461
|
+
function getQueryStatusColorByLabel(label) {
|
|
4462
|
+
return label === 'fresh' ? 'green' : label === 'stale' ? 'yellow' : label === 'paused' ? 'purple' : label === 'inactive' ? 'gray' : 'blue';
|
|
4463
|
+
}
|
|
4464
|
+
|
|
4465
|
+
/**
|
|
4466
|
+
* Displays a string regardless the type of the data
|
|
4467
|
+
* @param {unknown} value Value to be stringified
|
|
4468
|
+
* @param {boolean} beautify Formats json to multiline
|
|
4469
|
+
*/
|
|
4470
|
+
const displayValue = (value, beautify = false) => {
|
|
4471
|
+
const {
|
|
4472
|
+
json
|
|
4473
|
+
} = serialize(value);
|
|
4474
|
+
return JSON.stringify(json, null, beautify ? 2 : undefined);
|
|
4731
4475
|
};
|
|
4732
4476
|
|
|
4733
|
-
|
|
4734
|
-
|
|
4735
|
-
|
|
4736
|
-
|
|
4737
|
-
|
|
4477
|
+
// Sorting functions
|
|
4478
|
+
|
|
4479
|
+
const getStatusRank = q => q.state.fetchStatus !== 'idle' ? 0 : !q.getObserversCount() ? 3 : q.isStale() ? 2 : 1;
|
|
4480
|
+
const queryHashSort = (a, b) => a.queryHash.localeCompare(b.queryHash);
|
|
4481
|
+
const dateSort = (a, b) => a.state.dataUpdatedAt < b.state.dataUpdatedAt ? 1 : -1;
|
|
4482
|
+
const statusAndDateSort = (a, b) => {
|
|
4483
|
+
if (getStatusRank(a) === getStatusRank(b)) {
|
|
4484
|
+
return dateSort(a, b);
|
|
4485
|
+
}
|
|
4486
|
+
return getStatusRank(a) > getStatusRank(b) ? 1 : -1;
|
|
4487
|
+
};
|
|
4488
|
+
const sortFns = {
|
|
4489
|
+
status: statusAndDateSort,
|
|
4490
|
+
'query hash': queryHashSort,
|
|
4491
|
+
'last updated': dateSort
|
|
4492
|
+
};
|
|
4493
|
+
const convertRemToPixels = rem => {
|
|
4494
|
+
return rem * parseFloat(getComputedStyle(document.documentElement).fontSize);
|
|
4738
4495
|
};
|
|
4739
4496
|
|
|
4740
|
-
|
|
4741
|
-
|
|
4742
|
-
|
|
4743
|
-
|
|
4744
|
-
|
|
4745
|
-
|
|
4746
|
-
|
|
4747
|
-
|
|
4748
|
-
|
|
4749
|
-
|
|
4750
|
-
const prefix = props?.prefix ? `${props.prefix}.` : "";
|
|
4751
|
-
|
|
4752
|
-
|
|
4753
|
-
|
|
4754
|
-
|
|
4755
|
-
|
|
4756
|
-
|
|
4757
|
-
|
|
4758
|
-
|
|
4759
|
-
|
|
4760
|
-
|
|
4761
|
-
|
|
4762
|
-
|
|
4763
|
-
|
|
4764
|
-
|
|
4765
|
-
|
|
4766
|
-
|
|
4767
|
-
|
|
4768
|
-
|
|
4769
|
-
|
|
4770
|
-
|
|
4771
|
-
|
|
4772
|
-
|
|
4773
|
-
|
|
4774
|
-
|
|
4775
|
-
|
|
4776
|
-
|
|
4777
|
-
|
|
4778
|
-
|
|
4779
|
-
|
|
4780
|
-
|
|
4781
|
-
|
|
4782
|
-
|
|
4783
|
-
|
|
4784
|
-
|
|
4785
|
-
|
|
4786
|
-
|
|
4497
|
+
const _tmpl$$2 = /*#__PURE__*/index.template(`<svg width="14" height="14" viewBox="0 0 14 14" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M13 13L9.00007 9M10.3333 5.66667C10.3333 8.244 8.244 10.3333 5.66667 10.3333C3.08934 10.3333 1 8.244 1 5.66667C1 3.08934 3.08934 1 5.66667 1C8.244 1 10.3333 3.08934 10.3333 5.66667Z" stroke="#98A2B3" stroke-width="1.66667" stroke-linecap="round" stroke-linejoin="round"></path></svg>`, 4),
|
|
4498
|
+
_tmpl$2$2 = /*#__PURE__*/index.template(`<svg width="10" height="6" viewBox="0 0 10 6" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M1 1L5 5L9 1" stroke="#98A2B3" stroke-width="1.66667" stroke-linecap="round" stroke-linejoin="round"></path></svg>`, 4),
|
|
4499
|
+
_tmpl$3$2 = /*#__PURE__*/index.template(`<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M8 13.3333V2.66667M8 2.66667L4 6.66667M8 2.66667L12 6.66667" stroke="#98A2B3" stroke-width="1.66667" stroke-linecap="round" stroke-linejoin="round"></path></svg>`, 4),
|
|
4500
|
+
_tmpl$4$2 = /*#__PURE__*/index.template(`<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M8 2.66667V13.3333M8 13.3333L4 9.33333M8 13.3333L12 9.33333" stroke="#98A2B3" stroke-width="1.66667" stroke-linecap="round" stroke-linejoin="round"></path></svg>`, 4),
|
|
4501
|
+
_tmpl$5$2 = /*#__PURE__*/index.template(`<svg stroke="#98A2B3" fill="#98A2B3" stroke-width="0" viewBox="0 0 24 24" height="1em" width="1em" xmlns="http://www.w3.org/2000/svg"><path fill="none" d="M0 0h24v24H0z"></path><path d="M1 9l2 2c4.97-4.97 13.03-4.97 18 0l2-2C16.93 2.93 7.08 2.93 1 9zm8 8l3 3 3-3a4.237 4.237 0 00-6 0zm-4-4l2 2a7.074 7.074 0 0110 0l2-2C15.14 9.14 8.87 9.14 5 13z"></path></svg>`, 6),
|
|
4502
|
+
_tmpl$6$2 = /*#__PURE__*/index.template(`<svg stroke-width="0" viewBox="0 0 24 24" height="1em" width="1em" xmlns="http://www.w3.org/2000/svg"><path fill="none" d="M24 .01c0-.01 0-.01 0 0L0 0v24h24V.01zM0 0h24v24H0V0zm0 0h24v24H0V0z"></path><path d="M22.99 9C19.15 5.16 13.8 3.76 8.84 4.78l2.52 2.52c3.47-.17 6.99 1.05 9.63 3.7l2-2zm-4 4a9.793 9.793 0 00-4.49-2.56l3.53 3.53.96-.97zM2 3.05L5.07 6.1C3.6 6.82 2.22 7.78 1 9l1.99 2c1.24-1.24 2.67-2.16 4.2-2.77l2.24 2.24A9.684 9.684 0 005 13v.01L6.99 15a7.042 7.042 0 014.92-2.06L18.98 20l1.27-1.26L3.29 1.79 2 3.05zM9 17l3 3 3-3a4.237 4.237 0 00-6 0z"></path></svg>`, 6),
|
|
4503
|
+
_tmpl$7$2 = /*#__PURE__*/index.template(`<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M9.3951 19.3711L9.97955 20.6856C10.1533 21.0768 10.4368 21.4093 10.7958 21.6426C11.1547 21.8759 11.5737 22.0001 12.0018 22C12.4299 22.0001 12.8488 21.8759 13.2078 21.6426C13.5667 21.4093 13.8503 21.0768 14.024 20.6856L14.6084 19.3711C14.8165 18.9047 15.1664 18.5159 15.6084 18.26C16.0532 18.0034 16.5678 17.8941 17.0784 17.9478L18.5084 18.1C18.9341 18.145 19.3637 18.0656 19.7451 17.8713C20.1265 17.6771 20.4434 17.3763 20.6573 17.0056C20.8715 16.635 20.9735 16.2103 20.9511 15.7829C20.9286 15.3555 20.7825 14.9438 20.5307 14.5978L19.684 13.4344C19.3825 13.0171 19.2214 12.5148 19.224 12C19.2239 11.4866 19.3865 10.9864 19.6884 10.5711L20.5351 9.40778C20.787 9.06175 20.933 8.65007 20.9555 8.22267C20.978 7.79528 20.8759 7.37054 20.6618 7C20.4479 6.62923 20.131 6.32849 19.7496 6.13423C19.3681 5.93997 18.9386 5.86053 18.5129 5.90556L17.0829 6.05778C16.5722 6.11141 16.0577 6.00212 15.6129 5.74556C15.17 5.48825 14.82 5.09736 14.6129 4.62889L14.024 3.31444C13.8503 2.92317 13.5667 2.59072 13.2078 2.3574C12.8488 2.12408 12.4299 1.99993 12.0018 2C11.5737 1.99993 11.1547 2.12408 10.7958 2.3574C10.4368 2.59072 10.1533 2.92317 9.97955 3.31444L9.3951 4.62889C9.18803 5.09736 8.83798 5.48825 8.3951 5.74556C7.95032 6.00212 7.43577 6.11141 6.9251 6.05778L5.49066 5.90556C5.06499 5.86053 4.6354 5.93997 4.25397 6.13423C3.87255 6.32849 3.55567 6.62923 3.34177 7C3.12759 7.37054 3.02555 7.79528 3.04804 8.22267C3.07052 8.65007 3.21656 9.06175 3.46844 9.40778L4.3151 10.5711C4.61704 10.9864 4.77964 11.4866 4.77955 12C4.77964 12.5134 4.61704 13.0137 4.3151 13.4289L3.46844 14.5922C3.21656 14.9382 3.07052 15.3499 3.04804 15.7773C3.02555 16.2047 3.12759 16.6295 3.34177 17C3.55589 17.3706 3.8728 17.6712 4.25417 17.8654C4.63554 18.0596 5.06502 18.1392 5.49066 18.0944L6.92066 17.9422C7.43133 17.8886 7.94587 17.9979 8.39066 18.2544C8.83519 18.511 9.18687 18.902 9.3951 19.3711Z" stroke="#98A2B3" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"></path><path d="M12 15C13.6568 15 15 13.6569 15 12C15 10.3431 13.6568 9 12 9C10.3431 9 8.99998 10.3431 8.99998 12C8.99998 13.6569 10.3431 15 12 15Z" stroke="#98A2B3" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"></path></svg>`, 6),
|
|
4504
|
+
_tmpl$8$1 = /*#__PURE__*/index.template(`<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path class="copier" d="M8 8V5.2C8 4.0799 8 3.51984 8.21799 3.09202C8.40973 2.71569 8.71569 2.40973 9.09202 2.21799C9.51984 2 10.0799 2 11.2 2H18.8C19.9201 2 20.4802 2 20.908 2.21799C21.2843 2.40973 21.5903 2.71569 21.782 3.09202C22 3.51984 22 4.0799 22 5.2V12.8C22 13.9201 22 14.4802 21.782 14.908C21.5903 15.2843 21.2843 15.5903 20.908 15.782C20.4802 16 19.9201 16 18.8 16H16M5.2 22H12.8C13.9201 22 14.4802 22 14.908 21.782C15.2843 21.5903 15.5903 21.2843 15.782 20.908C16 20.4802 16 19.9201 16 18.8V11.2C16 10.0799 16 9.51984 15.782 9.09202C15.5903 8.71569 15.2843 8.40973 14.908 8.21799C14.4802 8 13.9201 8 12.8 8H5.2C4.0799 8 3.51984 8 3.09202 8.21799C2.71569 8.40973 2.40973 8.71569 2.21799 9.09202C2 9.51984 2 10.0799 2 11.2V18.8C2 19.9201 2 20.4802 2.21799 20.908C2.40973 21.2843 2.71569 21.5903 3.09202 21.782C3.51984 22 4.07989 22 5.2 22Z" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" stroke="#98A2B3"></path></svg>`, 4),
|
|
4505
|
+
_tmpl$9$1 = /*#__PURE__*/index.template(`<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M7.5 12L10.5 15L16.5 9M7.8 21H16.2C17.8802 21 18.7202 21 19.362 20.673C19.9265 20.3854 20.3854 19.9265 20.673 19.362C21 18.7202 21 17.8802 21 16.2V7.8C21 6.11984 21 5.27976 20.673 4.63803C20.3854 4.07354 19.9265 3.6146 19.362 3.32698C18.7202 3 17.8802 3 16.2 3H7.8C6.11984 3 5.27976 3 4.63803 3.32698C4.07354 3.6146 3.6146 4.07354 3.32698 4.63803C3 5.27976 3 6.11984 3 7.8V16.2C3 17.8802 3 18.7202 3.32698 19.362C3.6146 19.9265 4.07354 20.3854 4.63803 20.673C5.27976 21 6.11984 21 7.8 21Z" stroke="#12B76A" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"></path></svg>`, 4),
|
|
4506
|
+
_tmpl$10$1 = /*#__PURE__*/index.template(`<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M9 9L15 15M15 9L9 15M7.8 21H16.2C17.8802 21 18.7202 21 19.362 20.673C19.9265 20.3854 20.3854 19.9265 20.673 19.362C21 18.7202 21 17.8802 21 16.2V7.8C21 6.11984 21 5.27976 20.673 4.63803C20.3854 4.07354 19.9265 3.6146 19.362 3.32698C18.7202 3 17.8802 3 16.2 3H7.8C6.11984 3 5.27976 3 4.63803 3.32698C4.07354 3.6146 3.6146 4.07354 3.32698 4.63803C3 5.27976 3 6.11984 3 7.8V16.2C3 17.8802 3 18.7202 3.32698 19.362C3.6146 19.9265 4.07354 20.3854 4.63803 20.673C5.27976 21 6.11984 21 7.8 21Z" stroke="#F04438" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"></path></svg>`, 4),
|
|
4507
|
+
_tmpl$11$1 = /*#__PURE__*/index.template(`<svg version="1.0" viewBox="0 0 633 633"><linearGradient id="a" x1="-666.45" x2="-666.45" y1="163.28" y2="163.99" gradientTransform="matrix(633 0 0 633 422177 -103358)" gradientUnits="userSpaceOnUse"><stop stop-color="#6BDAFF" offset="0"></stop><stop stop-color="#F9FFB5" offset=".32"></stop><stop stop-color="#FFA770" offset=".71"></stop><stop stop-color="#FF7373" offset="1"></stop></linearGradient><circle cx="316.5" cy="316.5" r="316.5" fill="url(#a)"></circle><defs><filter id="am" x="-137.5" y="412" width="454" height="396.9" filterUnits="userSpaceOnUse"><feColorMatrix values="1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"></feColorMatrix></filter></defs><mask id="b" x="-137.5" y="412" width="454" height="396.9" maskUnits="userSpaceOnUse"><g filter="url(#am)"><circle cx="316.5" cy="316.5" r="316.5" fill="#fff"></circle></g></mask><g mask="url(#b)"><ellipse cx="89.5" cy="610.5" rx="214.5" ry="186" fill="#015064" stroke="#00CFE2" stroke-width="25"></ellipse></g><defs><filter id="ah" x="316.5" y="412" width="454" height="396.9" filterUnits="userSpaceOnUse"><feColorMatrix values="1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"></feColorMatrix></filter></defs><mask id="k" x="316.5" y="412" width="454" height="396.9" maskUnits="userSpaceOnUse"><g filter="url(#ah)"><circle cx="316.5" cy="316.5" r="316.5" fill="#fff"></circle></g></mask><g mask="url(#k)"><ellipse cx="543.5" cy="610.5" rx="214.5" ry="186" fill="#015064" stroke="#00CFE2" stroke-width="25"></ellipse></g><defs><filter id="ae" x="-137.5" y="450" width="454" height="396.9" filterUnits="userSpaceOnUse"><feColorMatrix values="1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"></feColorMatrix></filter></defs><mask id="j" x="-137.5" y="450" width="454" height="396.9" maskUnits="userSpaceOnUse"><g filter="url(#ae)"><circle cx="316.5" cy="316.5" r="316.5" fill="#fff"></circle></g></mask><g mask="url(#j)"><ellipse cx="89.5" cy="648.5" rx="214.5" ry="186" fill="#015064" stroke="#00A8B8" stroke-width="25"></ellipse></g><defs><filter id="ai" x="316.5" y="450" width="454" height="396.9" filterUnits="userSpaceOnUse"><feColorMatrix values="1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"></feColorMatrix></filter></defs><mask id="i" x="316.5" y="450" width="454" height="396.9" maskUnits="userSpaceOnUse"><g filter="url(#ai)"><circle cx="316.5" cy="316.5" r="316.5" fill="#fff"></circle></g></mask><g mask="url(#i)"><ellipse cx="543.5" cy="648.5" rx="214.5" ry="186" fill="#015064" stroke="#00A8B8" stroke-width="25"></ellipse></g><defs><filter id="aj" x="-137.5" y="486" width="454" height="396.9" filterUnits="userSpaceOnUse"><feColorMatrix values="1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"></feColorMatrix></filter></defs><mask id="h" x="-137.5" y="486" width="454" height="396.9" maskUnits="userSpaceOnUse"><g filter="url(#aj)"><circle cx="316.5" cy="316.5" r="316.5" fill="#fff"></circle></g></mask><g mask="url(#h)"><ellipse cx="89.5" cy="684.5" rx="214.5" ry="186" fill="#015064" stroke="#007782" stroke-width="25"></ellipse></g><defs><filter id="ag" x="316.5" y="486" width="454" height="396.9" filterUnits="userSpaceOnUse"><feColorMatrix values="1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"></feColorMatrix></filter></defs><mask id="g" x="316.5" y="486" width="454" height="396.9" maskUnits="userSpaceOnUse"><g filter="url(#ag)"><circle cx="316.5" cy="316.5" r="316.5" fill="#fff"></circle></g></mask><g mask="url(#g)"><ellipse cx="543.5" cy="684.5" rx="214.5" ry="186" fill="#015064" stroke="#007782" stroke-width="25"></ellipse></g><defs><filter id="af" x="272.2" y="308" width="176.9" height="129.3" filterUnits="userSpaceOnUse"><feColorMatrix values="1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"></feColorMatrix></filter></defs><mask id="f" x="272.2" y="308" width="176.9" height="129.3" maskUnits="userSpaceOnUse"><g filter="url(#af)"><circle cx="316.5" cy="316.5" r="316.5" fill="#fff"></circle></g></mask><g mask="url(#f)"><line x1="436" x2="431" y1="403.2" y2="431.8" fill="none" stroke="#000" stroke-linecap="round" stroke-linejoin="bevel" stroke-width="11"></line><line x1="291" x2="280" y1="341.5" y2="403.5" fill="none" stroke="#000" stroke-linecap="round" stroke-linejoin="bevel" stroke-width="11"></line><line x1="332.9" x2="328.6" y1="384.1" y2="411.2" fill="none" stroke="#000" stroke-linecap="round" stroke-linejoin="bevel" stroke-width="11"></line><linearGradient id="m" x1="-670.75" x2="-671.59" y1="164.4" y2="164.49" gradientTransform="matrix(-184.16 -32.472 -11.461 64.997 -121359 -32126)" gradientUnits="userSpaceOnUse"><stop stop-color="#EE2700" offset="0"></stop><stop stop-color="#FF008E" offset="1"></stop></linearGradient><path d="m344.1 363 97.7 17.2c5.8 2.1 8.2 6.1 7.1 12.1s-4.7 9.2-11 9.9l-106-18.7-57.5-59.2c-3.2-4.8-2.9-9.1 0.8-12.8s8.3-4.4 13.7-2.1l55.2 53.6z" clip-rule="evenodd" fill="url(#m)" fill-rule="evenodd"></path><line x1="428.2" x2="429.1" y1="384.5" y2="378" fill="none" stroke="#fff" stroke-linecap="round" stroke-linejoin="bevel" stroke-width="7"></line><line x1="395.2" x2="396.1" y1="379.5" y2="373" fill="none" stroke="#fff" stroke-linecap="round" stroke-linejoin="bevel" stroke-width="7"></line><line x1="362.2" x2="363.1" y1="373.5" y2="367.4" fill="none" stroke="#fff" stroke-linecap="round" stroke-linejoin="bevel" stroke-width="7"></line><line x1="324.2" x2="328.4" y1="351.3" y2="347.4" fill="none" stroke="#fff" stroke-linecap="round" stroke-linejoin="bevel" stroke-width="7"></line><line x1="303.2" x2="307.4" y1="331.3" y2="327.4" fill="none" stroke="#fff" stroke-linecap="round" stroke-linejoin="bevel" stroke-width="7"></line></g><defs><filter id="ak" x="73.2" y="113.8" width="280.6" height="317.4" filterUnits="userSpaceOnUse"><feColorMatrix values="1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"></feColorMatrix></filter></defs><mask id="e" x="73.2" y="113.8" width="280.6" height="317.4" maskUnits="userSpaceOnUse"><g filter="url(#ak)"><circle cx="316.5" cy="316.5" r="316.5" fill="#fff"></circle></g></mask><g mask="url(#e)"><linearGradient id="n" x1="-672.16" x2="-672.16" y1="165.03" y2="166.03" gradientTransform="matrix(-100.18 48.861 97.976 200.88 -83342 -93.059)" gradientUnits="userSpaceOnUse"><stop stop-color="#A17500" offset="0"></stop><stop stop-color="#5D2100" offset="1"></stop></linearGradient><path d="m192.3 203c8.1 37.3 14 73.6 17.8 109.1 3.8 35.4 2.8 75.1-3 119.2l61.2-16.7c-15.6-59-25.2-97.9-28.6-116.6s-10.8-51.9-22.1-99.6l-25.3 4.6" clip-rule="evenodd" fill="url(#n)" fill-rule="evenodd"></path><g stroke="#2F8A00"><linearGradient id="r" x1="-660.23" x2="-660.23" y1="166.72" y2="167.72" gradientTransform="matrix(92.683 4.8573 -2.0259 38.657 61680 -3088.6)" gradientUnits="userSpaceOnUse"><stop stop-color="#2F8A00" offset="0"></stop><stop stop-color="#90FF57" offset="1"></stop></linearGradient><path d="m195 183.9s-12.6-22.1-36.5-29.9c-15.9-5.2-34.4-1.5-55.5 11.1 15.9 14.3 29.5 22.6 40.7 24.9 16.8 3.6 51.3-6.1 51.3-6.1z" clip-rule="evenodd" fill="url(#r)" fill-rule="evenodd" stroke-width="13"></path><linearGradient id="s" x1="-661.36" x2="-661.36" y1="164.18" y2="165.18" gradientTransform="matrix(110 5.7648 -6.3599 121.35 73933 -15933)" gradientUnits="userSpaceOnUse"><stop stop-color="#2F8A00" offset="0"></stop><stop stop-color="#90FF57" offset="1"></stop></linearGradient><path d="m194.9 184.5s-47.5-8.5-83.2 15.7c-23.8 16.2-34.3 49.3-31.6 99.4 30.3-27.8 52.1-48.5 65.2-61.9 19.8-20.2 49.6-53.2 49.6-53.2z" clip-rule="evenodd" fill="url(#s)" fill-rule="evenodd" stroke-width="13"></path><linearGradient id="q" x1="-656.79" x2="-656.79" y1="165.15" y2="166.15" gradientTransform="matrix(62.954 3.2993 -3.5023 66.828 42156 -8754.1)" gradientUnits="userSpaceOnUse"><stop stop-color="#2F8A00" offset="0"></stop><stop stop-color="#90FF57" offset="1"></stop></linearGradient><path d="m195 183.9c-0.8-21.9 6-38 20.6-48.2s29.8-15.4 45.5-15.3c-6.1 21.4-14.5 35.8-25.2 43.4s-24.4 14.2-40.9 20.1z" clip-rule="evenodd" fill="url(#q)" fill-rule="evenodd" stroke-width="13"></path><linearGradient id="p" x1="-663.07" x2="-663.07" y1="165.44" y2="166.44" gradientTransform="matrix(152.47 7.9907 -3.0936 59.029 101884 -4318.7)" gradientUnits="userSpaceOnUse"><stop stop-color="#2F8A00" offset="0"></stop><stop stop-color="#90FF57" offset="1"></stop></linearGradient><path d="m194.9 184.5c31.9-30 64.1-39.7 96.7-29s50.8 30.4 54.6 59.1c-35.2-5.5-60.4-9.6-75.8-12.1-15.3-2.6-40.5-8.6-75.5-18z" clip-rule="evenodd" fill="url(#p)" fill-rule="evenodd" stroke-width="13"></path><linearGradient id="o" x1="-662.57" x2="-662.57" y1="164.44" y2="165.44" gradientTransform="matrix(136.46 7.1517 -5.2163 99.533 91536 -11442)" gradientUnits="userSpaceOnUse"><stop stop-color="#2F8A00" offset="0"></stop><stop stop-color="#90FF57" offset="1"></stop></linearGradient><path d="m194.9 184.5c35.8-7.6 65.6-0.2 89.2 22s37.7 49 42.3 80.3c-39.8-9.7-68.3-23.8-85.5-42.4s-32.5-38.5-46-59.9z" clip-rule="evenodd" fill="url(#o)" fill-rule="evenodd" stroke-width="13"></path><linearGradient id="l" x1="-656.43" x2="-656.43" y1="163.86" y2="164.86" gradientTransform="matrix(60.866 3.1899 -8.7773 167.48 41560 -25168)" gradientUnits="userSpaceOnUse"><stop stop-color="#2F8A00" offset="0"></stop><stop stop-color="#90FF57" offset="1"></stop></linearGradient><path d="m194.9 184.5c-33.6 13.8-53.6 35.7-60.1 65.6s-3.6 63.1 8.7 99.6c27.4-40.3 43.2-69.6 47.4-88s5.6-44.1 4-77.2z" clip-rule="evenodd" fill="url(#l)" fill-rule="evenodd" stroke-width="13"></path><path d="m196.5 182.3c-14.8 21.6-25.1 41.4-30.8 59.4s-9.5 33-11.1 45.1" fill="none" stroke-linecap="round" stroke-width="8"></path><path d="m194.9 185.7c-24.4 1.7-43.8 9-58.1 21.8s-24.7 25.4-31.3 37.8" fill="none" stroke-linecap="round" stroke-width="8"></path><path d="m204.5 176.4c29.7-6.7 52-8.4 67-5.1s26.9 8.6 35.8 15.9" fill="none" stroke-linecap="round" stroke-width="8"></path><path d="m196.5 181.4c20.3 9.9 38.2 20.5 53.9 31.9s27.4 22.1 35.1 32" fill="none" stroke-linecap="round" stroke-width="8"></path></g></g><defs><filter id="al" x="50.5" y="399" width="532" height="633" filterUnits="userSpaceOnUse"><feColorMatrix values="1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"></feColorMatrix></filter></defs><mask id="d" x="50.5" y="399" width="532" height="633" maskUnits="userSpaceOnUse"><g filter="url(#al)"><circle cx="316.5" cy="316.5" r="316.5" fill="#fff"></circle></g></mask><g mask="url(#d)"><linearGradient id="u" x1="-666.06" x2="-666.23" y1="163.36" y2="163.75" gradientTransform="matrix(532 0 0 633 354760 -102959)" gradientUnits="userSpaceOnUse"><stop stop-color="#FFF400" offset="0"></stop><stop stop-color="#3C8700" offset="1"></stop></linearGradient><ellipse cx="316.5" cy="715.5" rx="266" ry="316.5" fill="url(#u)"></ellipse></g><defs><filter id="ad" x="391" y="-24" width="288" height="283" filterUnits="userSpaceOnUse"><feColorMatrix values="1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"></feColorMatrix></filter></defs><mask id="c" x="391" y="-24" width="288" height="283" maskUnits="userSpaceOnUse"><g filter="url(#ad)"><circle cx="316.5" cy="316.5" r="316.5" fill="#fff"></circle></g></mask><g mask="url(#c)"><linearGradient id="t" x1="-664.56" x2="-664.56" y1="163.79" y2="164.79" gradientTransform="matrix(227 0 0 227 151421 -37204)" gradientUnits="userSpaceOnUse"><stop stop-color="#FFDF00" offset="0"></stop><stop stop-color="#FF9D00" offset="1"></stop></linearGradient><circle cx="565.5" cy="89.5" r="113.5" fill="url(#t)"></circle><linearGradient id="v" x1="-644.5" x2="-645.77" y1="342" y2="342" gradientTransform="matrix(30 0 0 1 19770 -253)" gradientUnits="userSpaceOnUse"><stop stop-color="#FFA400" offset="0"></stop><stop stop-color="#FF5E00" offset="1"></stop></linearGradient><line x1="427" x2="397" y1="89" y2="89" fill="none" stroke="url(#v)" stroke-linecap="round" stroke-linejoin="bevel" stroke-width="12"></line><linearGradient id="aa" x1="-641.56" x2="-642.83" y1="196.02" y2="196.07" gradientTransform="matrix(26.5 0 0 5.5 17439 -1025.5)" gradientUnits="userSpaceOnUse"><stop stop-color="#FFA400" offset="0"></stop><stop stop-color="#FF5E00" offset="1"></stop></linearGradient><line x1="430.5" x2="404" y1="55.5" y2="50" fill="none" stroke="url(#aa)" stroke-linecap="round" stroke-linejoin="bevel" stroke-width="12"></line><linearGradient id="w" x1="-643.73" x2="-645" y1="185.83" y2="185.9" gradientTransform="matrix(29 0 0 8 19107 -1361)" gradientUnits="userSpaceOnUse"><stop stop-color="#FFA400" offset="0"></stop><stop stop-color="#FF5E00" offset="1"></stop></linearGradient><line x1="431" x2="402" y1="122" y2="130" fill="none" stroke="url(#w)" stroke-linecap="round" stroke-linejoin="bevel" stroke-width="12"></line><linearGradient id="ac" x1="-638.94" x2="-640.22" y1="177.09" y2="177.39" gradientTransform="matrix(24 0 0 13 15783 -2145)" gradientUnits="userSpaceOnUse"><stop stop-color="#FFA400" offset="0"></stop><stop stop-color="#FF5E00" offset="1"></stop></linearGradient><line x1="442" x2="418" y1="153" y2="166" fill="none" stroke="url(#ac)" stroke-linecap="round" stroke-linejoin="bevel" stroke-width="12"></line><linearGradient id="ab" x1="-633.42" x2="-634.7" y1="172.41" y2="173.31" gradientTransform="matrix(20 0 0 19 13137 -3096)" gradientUnits="userSpaceOnUse"><stop stop-color="#FFA400" offset="0"></stop><stop stop-color="#FF5E00" offset="1"></stop></linearGradient><line x1="464" x2="444" y1="180" y2="199" fill="none" stroke="url(#ab)" stroke-linecap="round" stroke-linejoin="bevel" stroke-width="12"></line><linearGradient id="y" x1="-619.05" x2="-619.52" y1="170.82" y2="171.82" gradientTransform="matrix(13.83 0 0 22.85 9050 -3703.4)" gradientUnits="userSpaceOnUse"><stop stop-color="#FFA400" offset="0"></stop><stop stop-color="#FF5E00" offset="1"></stop></linearGradient><line x1="491.4" x2="477.5" y1="203" y2="225.9" fill="none" stroke="url(#y)" stroke-linecap="round" stroke-linejoin="bevel" stroke-width="12"></line><linearGradient id="x" x1="-578.5" x2="-578.63" y1="170.31" y2="171.31" gradientTransform="matrix(7.5 0 0 24.5 4860 -3953)" gradientUnits="userSpaceOnUse"><stop stop-color="#FFA400" offset="0"></stop><stop stop-color="#FF5E00" offset="1"></stop></linearGradient><line x1="524.5" x2="517" y1="219.5" y2="244" fill="none" stroke="url(#x)" stroke-linecap="round" stroke-linejoin="bevel" stroke-width="12"></line><linearGradient id="z" x1="666.5" x2="666.5" y1="170.31" y2="171.31" gradientTransform="matrix(.5 0 0 24.5 231.5 -3944)" gradientUnits="userSpaceOnUse"><stop stop-color="#FFA400" offset="0"></stop><stop stop-color="#FF5E00" offset="1"></stop></linearGradient><line x1="564.5" x2="565" y1="228.5" y2="253" fill="none" stroke="url(#z)" stroke-linecap="round" stroke-linejoin="bevel" stroke-width="12"></line></g></svg>`, 336);
|
|
4508
|
+
function Search() {
|
|
4509
|
+
return _tmpl$$2.cloneNode(true);
|
|
4510
|
+
}
|
|
4511
|
+
function ChevronDown() {
|
|
4512
|
+
return _tmpl$2$2.cloneNode(true);
|
|
4513
|
+
}
|
|
4514
|
+
function ArrowUp() {
|
|
4515
|
+
return _tmpl$3$2.cloneNode(true);
|
|
4516
|
+
}
|
|
4517
|
+
function ArrowDown() {
|
|
4518
|
+
return _tmpl$4$2.cloneNode(true);
|
|
4519
|
+
}
|
|
4520
|
+
function Wifi() {
|
|
4521
|
+
return _tmpl$5$2.cloneNode(true);
|
|
4522
|
+
}
|
|
4523
|
+
function Offline() {
|
|
4524
|
+
return (() => {
|
|
4525
|
+
const _el$6 = _tmpl$6$2.cloneNode(true);
|
|
4526
|
+
index.createRenderEffect(_p$ => {
|
|
4527
|
+
const _v$ = tokens.colors.yellow[500],
|
|
4528
|
+
_v$2 = tokens.colors.yellow[500];
|
|
4529
|
+
_v$ !== _p$._v$ && index.setAttribute(_el$6, "stroke", _p$._v$ = _v$);
|
|
4530
|
+
_v$2 !== _p$._v$2 && index.setAttribute(_el$6, "fill", _p$._v$2 = _v$2);
|
|
4531
|
+
return _p$;
|
|
4532
|
+
}, {
|
|
4533
|
+
_v$: undefined,
|
|
4534
|
+
_v$2: undefined
|
|
4535
|
+
});
|
|
4536
|
+
return _el$6;
|
|
4537
|
+
})();
|
|
4538
|
+
}
|
|
4539
|
+
function Settings() {
|
|
4540
|
+
return _tmpl$7$2.cloneNode(true);
|
|
4541
|
+
}
|
|
4542
|
+
function Copier() {
|
|
4543
|
+
return _tmpl$8$1.cloneNode(true);
|
|
4544
|
+
}
|
|
4545
|
+
function CopiedCopier() {
|
|
4546
|
+
return _tmpl$9$1.cloneNode(true);
|
|
4547
|
+
}
|
|
4548
|
+
function ErrorCopier() {
|
|
4549
|
+
return _tmpl$10$1.cloneNode(true);
|
|
4550
|
+
}
|
|
4551
|
+
function TanstackLogo() {
|
|
4552
|
+
return _tmpl$11$1.cloneNode(true);
|
|
4553
|
+
}
|
|
4554
|
+
|
|
4555
|
+
const _tmpl$$1 = /*#__PURE__*/index.template(`<span><svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M6 12L10 8L6 4" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"></path></svg></span>`, 6),
|
|
4556
|
+
_tmpl$2$1 = /*#__PURE__*/index.template(`<button></button>`, 2),
|
|
4557
|
+
_tmpl$3$1 = /*#__PURE__*/index.template(`<button> <span></span> <span> </span></button>`, 6),
|
|
4558
|
+
_tmpl$4$1 = /*#__PURE__*/index.template(`<div></div>`, 2),
|
|
4559
|
+
_tmpl$5$1 = /*#__PURE__*/index.template(`<span>:</span>`, 2),
|
|
4560
|
+
_tmpl$6$1 = /*#__PURE__*/index.template(`<span></span>`, 2),
|
|
4561
|
+
_tmpl$7$1 = /*#__PURE__*/index.template(`<div><div><button> [<!>...<!>]</button></div></div>`, 8);
|
|
4562
|
+
|
|
4563
|
+
/**
|
|
4564
|
+
* Chunk elements in the array by size
|
|
4565
|
+
*
|
|
4566
|
+
* when the array cannot be chunked evenly by size, the last chunk will be
|
|
4567
|
+
* filled with the remaining elements
|
|
4568
|
+
*
|
|
4569
|
+
* @example
|
|
4570
|
+
* chunkArray(['a','b', 'c', 'd', 'e'], 2) // returns [['a','b'], ['c', 'd'], ['e']]
|
|
4571
|
+
*/
|
|
4572
|
+
function chunkArray(array, size) {
|
|
4573
|
+
if (size < 1) return [];
|
|
4574
|
+
let i = 0;
|
|
4575
|
+
const result = [];
|
|
4576
|
+
while (i < array.length) {
|
|
4577
|
+
result.push(array.slice(i, i + size));
|
|
4578
|
+
i = i + size;
|
|
4579
|
+
}
|
|
4580
|
+
return result;
|
|
4581
|
+
}
|
|
4582
|
+
const Expander = props => {
|
|
4583
|
+
const styles = getStyles$1();
|
|
4584
|
+
return (() => {
|
|
4585
|
+
const _el$ = _tmpl$$1.cloneNode(true);
|
|
4586
|
+
index.createRenderEffect(() => index.className(_el$, cx(styles.expander, css`
|
|
4587
|
+
transform: rotate(${props.expanded ? 90 : 0}deg);
|
|
4588
|
+
`)));
|
|
4589
|
+
return _el$;
|
|
4590
|
+
})();
|
|
4591
|
+
};
|
|
4592
|
+
const CopyButton = props => {
|
|
4593
|
+
const styles = getStyles$1();
|
|
4594
|
+
const [copyState, setCopyState] = index.createSignal('NoCopy');
|
|
4595
|
+
return (() => {
|
|
4596
|
+
const _el$2 = _tmpl$2$1.cloneNode(true);
|
|
4597
|
+
index.addEventListener(_el$2, "click", copyState() === 'NoCopy' ? () => {
|
|
4598
|
+
navigator.clipboard.writeText(stringify(props.value)).then(() => {
|
|
4599
|
+
setCopyState('SuccessCopy');
|
|
4600
|
+
setTimeout(() => {
|
|
4601
|
+
setCopyState('NoCopy');
|
|
4602
|
+
}, 1500);
|
|
4603
|
+
}, err => {
|
|
4604
|
+
console.error('Failed to copy: ', err);
|
|
4605
|
+
setCopyState('ErrorCopy');
|
|
4606
|
+
setTimeout(() => {
|
|
4607
|
+
setCopyState('NoCopy');
|
|
4608
|
+
}, 1500);
|
|
4609
|
+
});
|
|
4610
|
+
} : undefined, true);
|
|
4611
|
+
index.insert(_el$2, index.createComponent(index.Switch, {
|
|
4612
|
+
get children() {
|
|
4613
|
+
return [index.createComponent(index.Match, {
|
|
4614
|
+
get when() {
|
|
4615
|
+
return copyState() === 'NoCopy';
|
|
4616
|
+
},
|
|
4617
|
+
get children() {
|
|
4618
|
+
return index.createComponent(Copier, {});
|
|
4619
|
+
}
|
|
4620
|
+
}), index.createComponent(index.Match, {
|
|
4621
|
+
get when() {
|
|
4622
|
+
return copyState() === 'SuccessCopy';
|
|
4623
|
+
},
|
|
4624
|
+
get children() {
|
|
4625
|
+
return index.createComponent(CopiedCopier, {});
|
|
4626
|
+
}
|
|
4627
|
+
}), index.createComponent(index.Match, {
|
|
4628
|
+
get when() {
|
|
4629
|
+
return copyState() === 'ErrorCopy';
|
|
4630
|
+
},
|
|
4631
|
+
get children() {
|
|
4632
|
+
return index.createComponent(ErrorCopier, {});
|
|
4633
|
+
}
|
|
4634
|
+
})];
|
|
4787
4635
|
}
|
|
4636
|
+
}));
|
|
4637
|
+
index.createRenderEffect(_p$ => {
|
|
4638
|
+
const _v$ = styles.copyButton,
|
|
4639
|
+
_v$2 = `${copyState() === 'NoCopy' ? 'Copy object to clipboard' : copyState() === 'SuccessCopy' ? 'Object copied to clipboard' : 'Error copying object to clipboard'}`;
|
|
4640
|
+
_v$ !== _p$._v$ && index.className(_el$2, _p$._v$ = _v$);
|
|
4641
|
+
_v$2 !== _p$._v$2 && index.setAttribute(_el$2, "aria-label", _p$._v$2 = _v$2);
|
|
4642
|
+
return _p$;
|
|
4643
|
+
}, {
|
|
4644
|
+
_v$: undefined,
|
|
4645
|
+
_v$2: undefined
|
|
4788
4646
|
});
|
|
4789
|
-
|
|
4790
|
-
|
|
4791
|
-
|
|
4792
|
-
|
|
4793
|
-
|
|
4794
|
-
|
|
4795
|
-
|
|
4796
|
-
|
|
4647
|
+
return _el$2;
|
|
4648
|
+
})();
|
|
4649
|
+
};
|
|
4650
|
+
function isIterable(x) {
|
|
4651
|
+
return Symbol.iterator in x;
|
|
4652
|
+
}
|
|
4653
|
+
function Explorer(props) {
|
|
4654
|
+
const styles = getStyles$1();
|
|
4655
|
+
const [expanded, setExpanded] = index.createSignal((props.defaultExpanded || []).includes(props.label));
|
|
4656
|
+
const toggleExpanded = () => setExpanded(old => !old);
|
|
4657
|
+
const [expandedPages, setExpandedPages] = index.createSignal([]);
|
|
4658
|
+
const subEntries = index.createMemo(() => {
|
|
4659
|
+
if (Array.isArray(props.value)) {
|
|
4660
|
+
return props.value.map((d, i) => ({
|
|
4661
|
+
label: i.toString(),
|
|
4662
|
+
value: d
|
|
4663
|
+
}));
|
|
4664
|
+
} else if (props.value !== null && typeof props.value === 'object' && isIterable(props.value) && typeof props.value[Symbol.iterator] === 'function') {
|
|
4665
|
+
if (props.value instanceof Map) {
|
|
4666
|
+
return Array.from(props.value, ([key, val]) => ({
|
|
4667
|
+
label: key,
|
|
4668
|
+
value: val
|
|
4669
|
+
}));
|
|
4670
|
+
}
|
|
4671
|
+
return Array.from(props.value, (val, i) => ({
|
|
4672
|
+
label: i.toString(),
|
|
4673
|
+
value: val
|
|
4674
|
+
}));
|
|
4675
|
+
} else if (typeof props.value === 'object' && props.value !== null) {
|
|
4676
|
+
return Object.entries(props.value).map(([key, val]) => ({
|
|
4677
|
+
label: key,
|
|
4678
|
+
value: val
|
|
4679
|
+
}));
|
|
4797
4680
|
}
|
|
4681
|
+
return [];
|
|
4798
4682
|
});
|
|
4799
|
-
const
|
|
4800
|
-
|
|
4801
|
-
|
|
4802
|
-
}
|
|
4803
|
-
|
|
4683
|
+
const type = index.createMemo(() => {
|
|
4684
|
+
if (Array.isArray(props.value)) {
|
|
4685
|
+
return 'array';
|
|
4686
|
+
} else if (props.value !== null && typeof props.value === 'object' && isIterable(props.value) && typeof props.value[Symbol.iterator] === 'function') {
|
|
4687
|
+
return 'Iterable';
|
|
4688
|
+
} else if (typeof props.value === 'object' && props.value !== null) {
|
|
4689
|
+
return 'object';
|
|
4804
4690
|
}
|
|
4691
|
+
return typeof props.value;
|
|
4805
4692
|
});
|
|
4806
|
-
const
|
|
4807
|
-
|
|
4808
|
-
const
|
|
4809
|
-
|
|
4810
|
-
|
|
4811
|
-
|
|
4812
|
-
|
|
4813
|
-
|
|
4814
|
-
|
|
4815
|
-
|
|
4816
|
-
|
|
4817
|
-
|
|
4818
|
-
|
|
4819
|
-
|
|
4820
|
-
|
|
4821
|
-
|
|
4822
|
-
|
|
4823
|
-
|
|
4824
|
-
|
|
4825
|
-
addValue(key, values[key]);
|
|
4826
|
-
}
|
|
4827
|
-
} else {
|
|
4828
|
-
let index = 0,
|
|
4829
|
-
key;
|
|
4830
|
-
try {
|
|
4831
|
-
while (key = api.key(index++)) {
|
|
4832
|
-
if (!result.hasOwnProperty(key)) {
|
|
4833
|
-
addValue(key, api.getItem(key));
|
|
4693
|
+
const subEntryPages = index.createMemo(() => chunkArray(subEntries(), 100));
|
|
4694
|
+
return (() => {
|
|
4695
|
+
const _el$3 = _tmpl$4$1.cloneNode(true);
|
|
4696
|
+
index.insert(_el$3, index.createComponent(index.Show, {
|
|
4697
|
+
get when() {
|
|
4698
|
+
return subEntryPages().length;
|
|
4699
|
+
},
|
|
4700
|
+
get children() {
|
|
4701
|
+
return [(() => {
|
|
4702
|
+
const _el$4 = _tmpl$3$1.cloneNode(true),
|
|
4703
|
+
_el$5 = _el$4.firstChild,
|
|
4704
|
+
_el$6 = _el$5.nextSibling,
|
|
4705
|
+
_el$7 = _el$6.nextSibling,
|
|
4706
|
+
_el$8 = _el$7.nextSibling,
|
|
4707
|
+
_el$9 = _el$8.firstChild;
|
|
4708
|
+
_el$4.$$click = () => toggleExpanded();
|
|
4709
|
+
index.insert(_el$4, index.createComponent(Expander, {
|
|
4710
|
+
get expanded() {
|
|
4711
|
+
return expanded();
|
|
4834
4712
|
}
|
|
4713
|
+
}), _el$5);
|
|
4714
|
+
index.insert(_el$6, () => props.label);
|
|
4715
|
+
index.insert(_el$8, () => String(type()).toLowerCase() === 'iterable' ? '(Iterable) ' : '', _el$9);
|
|
4716
|
+
index.insert(_el$8, () => subEntries().length, _el$9);
|
|
4717
|
+
index.insert(_el$8, () => subEntries().length > 1 ? `items` : `item`, null);
|
|
4718
|
+
index.createRenderEffect(_p$ => {
|
|
4719
|
+
const _v$3 = styles.expanderButton,
|
|
4720
|
+
_v$4 = styles.info;
|
|
4721
|
+
_v$3 !== _p$._v$3 && index.className(_el$4, _p$._v$3 = _v$3);
|
|
4722
|
+
_v$4 !== _p$._v$4 && index.className(_el$8, _p$._v$4 = _v$4);
|
|
4723
|
+
return _p$;
|
|
4724
|
+
}, {
|
|
4725
|
+
_v$3: undefined,
|
|
4726
|
+
_v$4: undefined
|
|
4727
|
+
});
|
|
4728
|
+
return _el$4;
|
|
4729
|
+
})(), index.createComponent(index.Show, {
|
|
4730
|
+
get when() {
|
|
4731
|
+
return props.copyable;
|
|
4732
|
+
},
|
|
4733
|
+
get children() {
|
|
4734
|
+
return index.createComponent(CopyButton, {
|
|
4735
|
+
get value() {
|
|
4736
|
+
return props.value;
|
|
4737
|
+
}
|
|
4738
|
+
});
|
|
4835
4739
|
}
|
|
4836
|
-
}
|
|
4837
|
-
|
|
4838
|
-
|
|
4839
|
-
|
|
4840
|
-
|
|
4841
|
-
|
|
4842
|
-
|
|
4843
|
-
|
|
4844
|
-
|
|
4845
|
-
|
|
4846
|
-
|
|
4847
|
-
|
|
4848
|
-
|
|
4849
|
-
|
|
4850
|
-
|
|
4740
|
+
}), index.createComponent(index.Show, {
|
|
4741
|
+
get when() {
|
|
4742
|
+
return expanded();
|
|
4743
|
+
},
|
|
4744
|
+
get children() {
|
|
4745
|
+
return [index.createComponent(index.Show, {
|
|
4746
|
+
get when() {
|
|
4747
|
+
return subEntryPages().length === 1;
|
|
4748
|
+
},
|
|
4749
|
+
get children() {
|
|
4750
|
+
const _el$10 = _tmpl$4$1.cloneNode(true);
|
|
4751
|
+
index.insert(_el$10, index.createComponent(Key, {
|
|
4752
|
+
get each() {
|
|
4753
|
+
return subEntries();
|
|
4754
|
+
},
|
|
4755
|
+
by: item => item.label,
|
|
4756
|
+
children: entry => {
|
|
4757
|
+
return index.createComponent(Explorer, {
|
|
4758
|
+
get defaultExpanded() {
|
|
4759
|
+
return props.defaultExpanded;
|
|
4760
|
+
},
|
|
4761
|
+
get label() {
|
|
4762
|
+
return entry().label;
|
|
4763
|
+
},
|
|
4764
|
+
get value() {
|
|
4765
|
+
return entry().value;
|
|
4766
|
+
},
|
|
4767
|
+
get copyable() {
|
|
4768
|
+
return props.copyable;
|
|
4769
|
+
}
|
|
4770
|
+
});
|
|
4771
|
+
}
|
|
4772
|
+
}));
|
|
4773
|
+
index.createRenderEffect(() => index.className(_el$10, styles.subEntry));
|
|
4774
|
+
return _el$10;
|
|
4775
|
+
}
|
|
4776
|
+
}), index.createComponent(index.Show, {
|
|
4777
|
+
get when() {
|
|
4778
|
+
return subEntryPages().length > 1;
|
|
4779
|
+
},
|
|
4780
|
+
get children() {
|
|
4781
|
+
const _el$11 = _tmpl$4$1.cloneNode(true);
|
|
4782
|
+
index.insert(_el$11, index.createComponent(index.Index, {
|
|
4783
|
+
get each() {
|
|
4784
|
+
return subEntryPages();
|
|
4785
|
+
},
|
|
4786
|
+
children: (entries, index$1) => (() => {
|
|
4787
|
+
const _el$15 = _tmpl$7$1.cloneNode(true),
|
|
4788
|
+
_el$16 = _el$15.firstChild,
|
|
4789
|
+
_el$17 = _el$16.firstChild,
|
|
4790
|
+
_el$18 = _el$17.firstChild,
|
|
4791
|
+
_el$22 = _el$18.nextSibling,
|
|
4792
|
+
_el$20 = _el$22.nextSibling,
|
|
4793
|
+
_el$23 = _el$20.nextSibling;
|
|
4794
|
+
_el$23.nextSibling;
|
|
4795
|
+
_el$17.$$click = () => setExpandedPages(old => old.includes(index$1) ? old.filter(d => d !== index$1) : [...old, index$1]);
|
|
4796
|
+
index.insert(_el$17, index.createComponent(Expander, {
|
|
4797
|
+
get expanded() {
|
|
4798
|
+
return expandedPages().includes(index$1);
|
|
4799
|
+
}
|
|
4800
|
+
}), _el$18);
|
|
4801
|
+
index.insert(_el$17, index$1 * 100, _el$22);
|
|
4802
|
+
index.insert(_el$17, index$1 * 100 + 100 - 1, _el$23);
|
|
4803
|
+
index.insert(_el$16, index.createComponent(index.Show, {
|
|
4804
|
+
get when() {
|
|
4805
|
+
return expandedPages().includes(index$1);
|
|
4806
|
+
},
|
|
4807
|
+
get children() {
|
|
4808
|
+
const _el$24 = _tmpl$4$1.cloneNode(true);
|
|
4809
|
+
index.insert(_el$24, index.createComponent(Key, {
|
|
4810
|
+
get each() {
|
|
4811
|
+
return entries();
|
|
4812
|
+
},
|
|
4813
|
+
by: entry => entry.label,
|
|
4814
|
+
children: entry => index.createComponent(Explorer, {
|
|
4815
|
+
get defaultExpanded() {
|
|
4816
|
+
return props.defaultExpanded;
|
|
4817
|
+
},
|
|
4818
|
+
get label() {
|
|
4819
|
+
return entry().label;
|
|
4820
|
+
},
|
|
4821
|
+
get value() {
|
|
4822
|
+
return entry().value;
|
|
4823
|
+
},
|
|
4824
|
+
get copyable() {
|
|
4825
|
+
return props.copyable;
|
|
4826
|
+
}
|
|
4827
|
+
})
|
|
4828
|
+
}));
|
|
4829
|
+
index.createRenderEffect(() => index.className(_el$24, styles.subEntry));
|
|
4830
|
+
return _el$24;
|
|
4831
|
+
}
|
|
4832
|
+
}), null);
|
|
4833
|
+
index.createRenderEffect(_p$ => {
|
|
4834
|
+
const _v$5 = styles.entry,
|
|
4835
|
+
_v$6 = styles.expanderButton;
|
|
4836
|
+
_v$5 !== _p$._v$5 && index.className(_el$16, _p$._v$5 = _v$5);
|
|
4837
|
+
_v$6 !== _p$._v$6 && index.className(_el$17, _p$._v$6 = _v$6);
|
|
4838
|
+
return _p$;
|
|
4839
|
+
}, {
|
|
4840
|
+
_v$5: undefined,
|
|
4841
|
+
_v$6: undefined
|
|
4842
|
+
});
|
|
4843
|
+
return _el$15;
|
|
4844
|
+
})()
|
|
4845
|
+
}));
|
|
4846
|
+
index.createRenderEffect(() => index.className(_el$11, styles.subEntry));
|
|
4847
|
+
return _el$11;
|
|
4848
|
+
}
|
|
4849
|
+
})];
|
|
4851
4850
|
}
|
|
4852
|
-
}
|
|
4853
|
-
|
|
4854
|
-
|
|
4855
|
-
|
|
4856
|
-
|
|
4857
|
-
|
|
4858
|
-
|
|
4859
|
-
|
|
4860
|
-
|
|
4861
|
-
|
|
4862
|
-
|
|
4863
|
-
|
|
4864
|
-
|
|
4865
|
-
|
|
4866
|
-
|
|
4867
|
-
|
|
4868
|
-
|
|
4869
|
-
|
|
4870
|
-
|
|
4871
|
-
|
|
4851
|
+
})];
|
|
4852
|
+
}
|
|
4853
|
+
}), null);
|
|
4854
|
+
index.insert(_el$3, index.createComponent(index.Show, {
|
|
4855
|
+
get when() {
|
|
4856
|
+
return subEntryPages().length === 0;
|
|
4857
|
+
},
|
|
4858
|
+
get children() {
|
|
4859
|
+
return [(() => {
|
|
4860
|
+
const _el$12 = _tmpl$5$1.cloneNode(true),
|
|
4861
|
+
_el$13 = _el$12.firstChild;
|
|
4862
|
+
index.insert(_el$12, () => props.label, _el$13);
|
|
4863
|
+
index.createRenderEffect(() => index.className(_el$12, styles.label));
|
|
4864
|
+
return _el$12;
|
|
4865
|
+
})(), ' ', (() => {
|
|
4866
|
+
const _el$14 = _tmpl$6$1.cloneNode(true);
|
|
4867
|
+
index.insert(_el$14, () => displayValue(props.value));
|
|
4868
|
+
index.createRenderEffect(() => index.className(_el$14, styles.value));
|
|
4869
|
+
return _el$14;
|
|
4870
|
+
})()];
|
|
4871
|
+
}
|
|
4872
|
+
}), null);
|
|
4873
|
+
index.createRenderEffect(() => index.className(_el$3, styles.entry));
|
|
4874
|
+
return _el$3;
|
|
4875
|
+
})();
|
|
4872
4876
|
}
|
|
4873
|
-
|
|
4877
|
+
const getStyles$1 = () => {
|
|
4878
|
+
const {
|
|
4879
|
+
colors,
|
|
4880
|
+
font,
|
|
4881
|
+
size,
|
|
4882
|
+
border
|
|
4883
|
+
} = tokens;
|
|
4884
|
+
return {
|
|
4885
|
+
entry: css`
|
|
4886
|
+
& * {
|
|
4887
|
+
font-size: ${font.size.sm};
|
|
4888
|
+
font-family: 'Menlo', 'Fira Code', monospace;
|
|
4889
|
+
line-height: 1.7;
|
|
4890
|
+
}
|
|
4891
|
+
position: relative;
|
|
4892
|
+
outline: none;
|
|
4893
|
+
word-break: break-word;
|
|
4894
|
+
`,
|
|
4895
|
+
subEntry: css`
|
|
4896
|
+
margin: 0 0 0 0.5em;
|
|
4897
|
+
padding-left: 0.75em;
|
|
4898
|
+
border-left: 2px solid ${colors.darkGray[400]};
|
|
4899
|
+
`,
|
|
4900
|
+
expander: css`
|
|
4901
|
+
& path {
|
|
4902
|
+
stroke: ${colors.gray[400]};
|
|
4903
|
+
}
|
|
4904
|
+
display: inline-flex;
|
|
4905
|
+
align-items: center;
|
|
4906
|
+
transition: all 0.1s ease;
|
|
4907
|
+
`,
|
|
4908
|
+
expanderButton: css`
|
|
4909
|
+
cursor: pointer;
|
|
4910
|
+
color: inherit;
|
|
4911
|
+
font: inherit;
|
|
4912
|
+
outline: inherit;
|
|
4913
|
+
line-height: ${font.size.sm};
|
|
4914
|
+
background: transparent;
|
|
4915
|
+
border: none;
|
|
4916
|
+
padding: 0;
|
|
4917
|
+
display: inline-flex;
|
|
4918
|
+
align-items: center;
|
|
4919
|
+
gap: ${size[1]};
|
|
4874
4920
|
|
|
4875
|
-
|
|
4876
|
-
|
|
4877
|
-
|
|
4878
|
-
|
|
4879
|
-
|
|
4880
|
-
|
|
4881
|
-
|
|
4882
|
-
|
|
4883
|
-
|
|
4884
|
-
|
|
4885
|
-
|
|
4886
|
-
|
|
4887
|
-
};
|
|
4921
|
+
&:focus-visible {
|
|
4922
|
+
border-radius: ${border.radius.xs};
|
|
4923
|
+
outline: 2px solid ${colors.blue[800]};
|
|
4924
|
+
}
|
|
4925
|
+
`,
|
|
4926
|
+
info: css`
|
|
4927
|
+
color: ${colors.gray[500]};
|
|
4928
|
+
font-size: ${font.size.xs};
|
|
4929
|
+
line-height: ${font.size.xs};
|
|
4930
|
+
margin-left: ${size[1]};
|
|
4931
|
+
`,
|
|
4932
|
+
label: css`
|
|
4933
|
+
color: ${colors.gray[300]};
|
|
4934
|
+
`,
|
|
4935
|
+
value: css`
|
|
4936
|
+
color: ${colors.purple[400]};
|
|
4937
|
+
`,
|
|
4938
|
+
copyButton: css`
|
|
4939
|
+
background-color: transparent;
|
|
4940
|
+
border: none;
|
|
4941
|
+
display: inline-flex;
|
|
4942
|
+
padding: 0px;
|
|
4943
|
+
align-items: center;
|
|
4944
|
+
justify-content: center;
|
|
4945
|
+
cursor: pointer;
|
|
4946
|
+
width: ${size[3.5]};
|
|
4947
|
+
height: ${size[3.5]};
|
|
4948
|
+
position: relative;
|
|
4949
|
+
top: 4px;
|
|
4950
|
+
left: ${size[2]};
|
|
4951
|
+
z-index: 1;
|
|
4888
4952
|
|
|
4889
|
-
|
|
4890
|
-
|
|
4891
|
-
if (!options) {
|
|
4892
|
-
return "";
|
|
4893
|
-
}
|
|
4894
|
-
let memo = "";
|
|
4895
|
-
for (const key in options) {
|
|
4896
|
-
if (!options.hasOwnProperty(key)) {
|
|
4897
|
-
continue;
|
|
4898
|
-
}
|
|
4899
|
-
const value = options[key];
|
|
4900
|
-
memo += value instanceof Date ? `; ${key}=${value.toUTCString()}` : typeof value === "boolean" ? `; ${key}` : `; ${key}=${value}`;
|
|
4901
|
-
}
|
|
4902
|
-
return memo;
|
|
4903
|
-
};
|
|
4904
|
-
var cookieStorage = addClearMethod({
|
|
4905
|
-
_cookies: [globalThis.document, "cookie"],
|
|
4906
|
-
getItem: key => cookieStorage._cookies[0][cookieStorage._cookies[1]].match("(^|;)\\s*" + key + "\\s*=\\s*([^;]+)")?.pop() ?? null,
|
|
4907
|
-
setItem: (key, value, options) => {
|
|
4908
|
-
const oldValue = cookieStorage.getItem(key);
|
|
4909
|
-
cookieStorage._cookies[0][cookieStorage._cookies[1]] = `${key}=${value}${serializeCookieOptions(options)}`;
|
|
4910
|
-
const storageEvent = Object.assign(new Event("storage"), {
|
|
4911
|
-
key,
|
|
4912
|
-
oldValue,
|
|
4913
|
-
newValue: value,
|
|
4914
|
-
url: globalThis.document.URL,
|
|
4915
|
-
storageArea: cookieStorage
|
|
4916
|
-
});
|
|
4917
|
-
window.dispatchEvent(storageEvent);
|
|
4918
|
-
},
|
|
4919
|
-
removeItem: key => {
|
|
4920
|
-
cookieStorage._cookies[0][cookieStorage._cookies[1]] = `${key}=deleted${serializeCookieOptions({
|
|
4921
|
-
expires: new Date(0)
|
|
4922
|
-
})}`;
|
|
4923
|
-
},
|
|
4924
|
-
key: index => {
|
|
4925
|
-
let key = null;
|
|
4926
|
-
let count = 0;
|
|
4927
|
-
cookieStorage._cookies[0][cookieStorage._cookies[1]].replace(/(?:^|;)\s*(.+?)\s*=\s*[^;]+/g, (_, found) => {
|
|
4928
|
-
if (!key && found && count++ === index) {
|
|
4929
|
-
key = found;
|
|
4953
|
+
&:hover svg .copier {
|
|
4954
|
+
stroke: ${colors.gray[500]} !important;
|
|
4930
4955
|
}
|
|
4931
|
-
return "";
|
|
4932
|
-
});
|
|
4933
|
-
return key;
|
|
4934
|
-
},
|
|
4935
|
-
get length() {
|
|
4936
|
-
let length = 0;
|
|
4937
|
-
cookieStorage._cookies[0][cookieStorage._cookies[1]].replace(/(?:^|;)\s*.+?\s*=\s*[^;]+/g, found => {
|
|
4938
|
-
length += found ? 1 : 0;
|
|
4939
|
-
return "";
|
|
4940
|
-
});
|
|
4941
|
-
return length;
|
|
4942
|
-
}
|
|
4943
|
-
});
|
|
4944
4956
|
|
|
4945
|
-
|
|
4946
|
-
|
|
4947
|
-
|
|
4948
|
-
|
|
4949
|
-
return {
|
|
4950
|
-
observe: ref => observer.observe(ref, options),
|
|
4951
|
-
unobserve: observer.unobserve.bind(observer)
|
|
4952
|
-
};
|
|
4953
|
-
}
|
|
4954
|
-
function createResizeObserver(targets, onResize, options) {
|
|
4955
|
-
const previousMap = /* @__PURE__ */new WeakMap(),
|
|
4956
|
-
{
|
|
4957
|
-
observe,
|
|
4958
|
-
unobserve
|
|
4959
|
-
} = makeResizeObserver(entries => {
|
|
4960
|
-
for (const entry of entries) {
|
|
4961
|
-
const {
|
|
4962
|
-
contentRect,
|
|
4963
|
-
target
|
|
4964
|
-
} = entry,
|
|
4965
|
-
width = Math.round(contentRect.width),
|
|
4966
|
-
height = Math.round(contentRect.height),
|
|
4967
|
-
previous = previousMap.get(target);
|
|
4968
|
-
if (!previous || previous.width !== width || previous.height !== height) {
|
|
4969
|
-
onResize(contentRect, target, entry);
|
|
4970
|
-
previousMap.set(target, {
|
|
4971
|
-
width,
|
|
4972
|
-
height
|
|
4973
|
-
});
|
|
4974
|
-
}
|
|
4957
|
+
&:focus-visible {
|
|
4958
|
+
border-radius: ${border.radius.xs};
|
|
4959
|
+
outline: 2px solid ${colors.blue[800]};
|
|
4960
|
+
outline-offset: 2px;
|
|
4975
4961
|
}
|
|
4976
|
-
|
|
4977
|
-
|
|
4978
|
-
|
|
4979
|
-
|
|
4980
|
-
|
|
4981
|
-
|
|
4962
|
+
`
|
|
4963
|
+
};
|
|
4964
|
+
};
|
|
4965
|
+
index.delegateEvents(["click"]);
|
|
4966
|
+
|
|
4967
|
+
const QueryDevtoolsContext = index.createContext({
|
|
4968
|
+
client: undefined,
|
|
4969
|
+
onlineManager: undefined,
|
|
4970
|
+
queryFlavor: '',
|
|
4971
|
+
version: ''
|
|
4972
|
+
});
|
|
4973
|
+
function useQueryDevtoolsContext() {
|
|
4974
|
+
return index.useContext(QueryDevtoolsContext);
|
|
4982
4975
|
}
|
|
4983
4976
|
|
|
4977
|
+
const loadFonts = () => {
|
|
4978
|
+
const link = document.createElement('link');
|
|
4979
|
+
link.href = 'https://fonts.googleapis.com/css2?family=Fira+Code&family=Inter:wght@100;200;300;400;500;600;700;800;900&family=Roboto&display=swap';
|
|
4980
|
+
link.rel = 'stylesheet';
|
|
4981
|
+
document.head.appendChild(link);
|
|
4982
|
+
};
|
|
4983
|
+
|
|
4984
4984
|
const _tmpl$ = /*#__PURE__*/index.template(`<div><div aria-hidden="true"></div><button aria-label="Open Tanstack query devtools"></button></div>`, 6),
|
|
4985
4985
|
_tmpl$2 = /*#__PURE__*/index.template(`<div></div>`, 2),
|
|
4986
4986
|
_tmpl$3 = /*#__PURE__*/index.template(`<span>Asc</span>`, 2),
|
|
@@ -5275,13 +5275,11 @@ const DevtoolsPanel = props => {
|
|
|
5275
5275
|
}), null);
|
|
5276
5276
|
_el$24.$$click = () => {
|
|
5277
5277
|
if (offline()) {
|
|
5278
|
-
onlineManager().setOnline(
|
|
5278
|
+
onlineManager().setOnline(true);
|
|
5279
5279
|
setOffline(false);
|
|
5280
|
-
window.dispatchEvent(new Event('online'));
|
|
5281
5280
|
} else {
|
|
5282
5281
|
onlineManager().setOnline(false);
|
|
5283
5282
|
setOffline(true);
|
|
5284
|
-
window.dispatchEvent(new Event('offline'));
|
|
5285
5283
|
}
|
|
5286
5284
|
};
|
|
5287
5285
|
index.insert(_el$24, (() => {
|
|
@@ -6763,4 +6761,4 @@ exports.QueryRow = QueryRow;
|
|
|
6763
6761
|
exports.QueryStatus = QueryStatus;
|
|
6764
6762
|
exports.QueryStatusCount = QueryStatusCount;
|
|
6765
6763
|
exports.default = DevtoolsComponent;
|
|
6766
|
-
//# sourceMappingURL=Devtools-
|
|
6764
|
+
//# sourceMappingURL=Devtools-5eee2153.cjs.map
|