@netless/fastboard-ui 1.1.3 → 1.1.4

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.
@@ -2013,6 +2013,154 @@ var PencilFilled = class extends SvelteComponent {
2013
2013
  };
2014
2014
  var PencilFilled_default = PencilFilled;
2015
2015
  function create_fragment26(ctx) {
2016
+ let svg;
2017
+ let g;
2018
+ let path;
2019
+ let svg_class_value;
2020
+ return {
2021
+ c() {
2022
+ svg = svg_element("svg");
2023
+ g = svg_element("g");
2024
+ path = svg_element("path");
2025
+ attr(path, "class", "fastboard-icon-fill-color");
2026
+ attr(path, "d", "M7 16c.55 0 1 .45 1 1c0 1.1-.9 2-2 2c-.17 0-.33 0-.5-.05c.31-.55.5-1.21.5-1.95c0-.55.45-1 1-1M18.67 3c-.26 0-.51.1-.71.29L9 12.25L11.75 15l8.96-8.96c.39-.39.39-1.04 0-1.41l-1.34-1.34c-.2-.2-.45-.29-.7-.29M7 14c-1.66 0-3 1.34-3 3c0 1.31-1.16 2-2 2c.92 1.22 2.5 2 4 2c2.21 0 4-1.79 4-4c0-1.66-1.34-3-3-3");
2027
+ attr(g, "stroke-width", "1");
2028
+ attr(g, "stroke-linecap", "round");
2029
+ attr(g, "stroke-linejoin", "round");
2030
+ attr(g, "transform", "scale(1 0.85)");
2031
+ attr(svg, "fill", "none");
2032
+ attr(svg, "viewBox", "0 0 24 24");
2033
+ attr(svg, "class", svg_class_value = "fastboard-icon " + /*theme*/
2034
+ ctx[0]);
2035
+ toggle_class(
2036
+ svg,
2037
+ "is-active",
2038
+ /*active*/
2039
+ ctx[1]
2040
+ );
2041
+ },
2042
+ m(target, anchor) {
2043
+ insert(target, svg, anchor);
2044
+ append(svg, g);
2045
+ append(g, path);
2046
+ },
2047
+ p(ctx2, [dirty]) {
2048
+ if (dirty & /*theme*/
2049
+ 1 && svg_class_value !== (svg_class_value = "fastboard-icon " + /*theme*/
2050
+ ctx2[0])) {
2051
+ attr(svg, "class", svg_class_value);
2052
+ }
2053
+ if (dirty & /*theme, active*/
2054
+ 3) {
2055
+ toggle_class(
2056
+ svg,
2057
+ "is-active",
2058
+ /*active*/
2059
+ ctx2[1]
2060
+ );
2061
+ }
2062
+ },
2063
+ i: noop,
2064
+ o: noop,
2065
+ d(detaching) {
2066
+ if (detaching)
2067
+ detach(svg);
2068
+ }
2069
+ };
2070
+ }
2071
+ function instance26($$self, $$props, $$invalidate) {
2072
+ let { theme = "light" } = $$props;
2073
+ let { active = false } = $$props;
2074
+ $$self.$$set = ($$props2) => {
2075
+ if ("theme" in $$props2)
2076
+ $$invalidate(0, theme = $$props2.theme);
2077
+ if ("active" in $$props2)
2078
+ $$invalidate(1, active = $$props2.active);
2079
+ };
2080
+ return [theme, active];
2081
+ }
2082
+ var BrushPen = class extends SvelteComponent {
2083
+ constructor(options) {
2084
+ super();
2085
+ init(this, options, instance26, create_fragment26, safe_not_equal, { theme: 0, active: 1 });
2086
+ }
2087
+ };
2088
+ var BrushPen_default = BrushPen;
2089
+ function create_fragment27(ctx) {
2090
+ let svg;
2091
+ let g;
2092
+ let path;
2093
+ let svg_class_value;
2094
+ return {
2095
+ c() {
2096
+ svg = svg_element("svg");
2097
+ g = svg_element("g");
2098
+ path = svg_element("path");
2099
+ attr(path, "class", "fastboard-icon-fill-color");
2100
+ attr(path, "d", "m20.71 4.63l-1.34-1.34c-.37-.39-1.02-.39-1.41 0L9 12.25L11.75 15l8.96-8.96c.39-.39.39-1.04 0-1.41M7 14a3 3 0 0 0-3 3c0 1.31-1.16 2-2 2c.92 1.22 2.5 2 4 2a4 4 0 0 0 4-4a3 3 0 0 0-3-3");
2101
+ attr(g, "stroke-width", "1");
2102
+ attr(g, "stroke-linecap", "round");
2103
+ attr(g, "stroke-linejoin", "round");
2104
+ attr(g, "transform", "scale(1 0.85)");
2105
+ attr(svg, "fill", "none");
2106
+ attr(svg, "viewBox", "0 0 24 24");
2107
+ attr(svg, "class", svg_class_value = "fastboard-icon " + /*theme*/
2108
+ ctx[0]);
2109
+ toggle_class(
2110
+ svg,
2111
+ "is-active",
2112
+ /*active*/
2113
+ ctx[1]
2114
+ );
2115
+ },
2116
+ m(target, anchor) {
2117
+ insert(target, svg, anchor);
2118
+ append(svg, g);
2119
+ append(g, path);
2120
+ },
2121
+ p(ctx2, [dirty]) {
2122
+ if (dirty & /*theme*/
2123
+ 1 && svg_class_value !== (svg_class_value = "fastboard-icon " + /*theme*/
2124
+ ctx2[0])) {
2125
+ attr(svg, "class", svg_class_value);
2126
+ }
2127
+ if (dirty & /*theme, active*/
2128
+ 3) {
2129
+ toggle_class(
2130
+ svg,
2131
+ "is-active",
2132
+ /*active*/
2133
+ ctx2[1]
2134
+ );
2135
+ }
2136
+ },
2137
+ i: noop,
2138
+ o: noop,
2139
+ d(detaching) {
2140
+ if (detaching)
2141
+ detach(svg);
2142
+ }
2143
+ };
2144
+ }
2145
+ function instance27($$self, $$props, $$invalidate) {
2146
+ let { theme = "light" } = $$props;
2147
+ let { active = false } = $$props;
2148
+ $$self.$$set = ($$props2) => {
2149
+ if ("theme" in $$props2)
2150
+ $$invalidate(0, theme = $$props2.theme);
2151
+ if ("active" in $$props2)
2152
+ $$invalidate(1, active = $$props2.active);
2153
+ };
2154
+ return [theme, active];
2155
+ }
2156
+ var BrushPenFilled = class extends SvelteComponent {
2157
+ constructor(options) {
2158
+ super();
2159
+ init(this, options, instance27, create_fragment27, safe_not_equal, { theme: 0, active: 1 });
2160
+ }
2161
+ };
2162
+ var BrushPenFilled_default = BrushPenFilled;
2163
+ function create_fragment28(ctx) {
2016
2164
  let svg;
2017
2165
  let path;
2018
2166
  let svg_class_value;
@@ -2064,7 +2212,7 @@ function create_fragment26(ctx) {
2064
2212
  }
2065
2213
  };
2066
2214
  }
2067
- function instance26($$self, $$props, $$invalidate) {
2215
+ function instance28($$self, $$props, $$invalidate) {
2068
2216
  let { theme = "light" } = $$props;
2069
2217
  let { active = false } = $$props;
2070
2218
  $$self.$$set = ($$props2) => {
@@ -2078,11 +2226,11 @@ function instance26($$self, $$props, $$invalidate) {
2078
2226
  var Plus = class extends SvelteComponent {
2079
2227
  constructor(options) {
2080
2228
  super();
2081
- init(this, options, instance26, create_fragment26, safe_not_equal, { theme: 0, active: 1 });
2229
+ init(this, options, instance28, create_fragment28, safe_not_equal, { theme: 0, active: 1 });
2082
2230
  }
2083
2231
  };
2084
2232
  var Plus_default = Plus;
2085
- function create_fragment27(ctx) {
2233
+ function create_fragment29(ctx) {
2086
2234
  let svg;
2087
2235
  let path;
2088
2236
  let svg_class_value;
@@ -2134,7 +2282,7 @@ function create_fragment27(ctx) {
2134
2282
  }
2135
2283
  };
2136
2284
  }
2137
- function instance27($$self, $$props, $$invalidate) {
2285
+ function instance29($$self, $$props, $$invalidate) {
2138
2286
  let { theme = "light" } = $$props;
2139
2287
  let { active = false } = $$props;
2140
2288
  $$self.$$set = ($$props2) => {
@@ -2148,11 +2296,11 @@ function instance27($$self, $$props, $$invalidate) {
2148
2296
  var Rectangle = class extends SvelteComponent {
2149
2297
  constructor(options) {
2150
2298
  super();
2151
- init(this, options, instance27, create_fragment27, safe_not_equal, { theme: 0, active: 1 });
2299
+ init(this, options, instance29, create_fragment29, safe_not_equal, { theme: 0, active: 1 });
2152
2300
  }
2153
2301
  };
2154
2302
  var Rectangle_default = Rectangle;
2155
- function create_fragment28(ctx) {
2303
+ function create_fragment30(ctx) {
2156
2304
  let svg;
2157
2305
  let path;
2158
2306
  let svg_class_value;
@@ -2204,7 +2352,7 @@ function create_fragment28(ctx) {
2204
2352
  }
2205
2353
  };
2206
2354
  }
2207
- function instance28($$self, $$props, $$invalidate) {
2355
+ function instance30($$self, $$props, $$invalidate) {
2208
2356
  let { theme = "light" } = $$props;
2209
2357
  let { active = false } = $$props;
2210
2358
  $$self.$$set = ($$props2) => {
@@ -2218,11 +2366,11 @@ function instance28($$self, $$props, $$invalidate) {
2218
2366
  var RectangleBolded = class extends SvelteComponent {
2219
2367
  constructor(options) {
2220
2368
  super();
2221
- init(this, options, instance28, create_fragment28, safe_not_equal, { theme: 0, active: 1 });
2369
+ init(this, options, instance30, create_fragment30, safe_not_equal, { theme: 0, active: 1 });
2222
2370
  }
2223
2371
  };
2224
2372
  var RectangleBolded_default = RectangleBolded;
2225
- function create_fragment29(ctx) {
2373
+ function create_fragment31(ctx) {
2226
2374
  let svg;
2227
2375
  let path0;
2228
2376
  let path1;
@@ -2278,7 +2426,7 @@ function create_fragment29(ctx) {
2278
2426
  }
2279
2427
  };
2280
2428
  }
2281
- function instance29($$self, $$props, $$invalidate) {
2429
+ function instance31($$self, $$props, $$invalidate) {
2282
2430
  let { theme = "light" } = $$props;
2283
2431
  let { active = false } = $$props;
2284
2432
  $$self.$$set = ($$props2) => {
@@ -2292,11 +2440,11 @@ function instance29($$self, $$props, $$invalidate) {
2292
2440
  var Redo = class extends SvelteComponent {
2293
2441
  constructor(options) {
2294
2442
  super();
2295
- init(this, options, instance29, create_fragment29, safe_not_equal, { theme: 0, active: 1 });
2443
+ init(this, options, instance31, create_fragment31, safe_not_equal, { theme: 0, active: 1 });
2296
2444
  }
2297
2445
  };
2298
2446
  var Redo_default = Redo;
2299
- function create_fragment30(ctx) {
2447
+ function create_fragment32(ctx) {
2300
2448
  let svg;
2301
2449
  let circle0;
2302
2450
  let path;
@@ -2366,7 +2514,7 @@ function create_fragment30(ctx) {
2366
2514
  }
2367
2515
  };
2368
2516
  }
2369
- function instance30($$self, $$props, $$invalidate) {
2517
+ function instance32($$self, $$props, $$invalidate) {
2370
2518
  let { theme = "light" } = $$props;
2371
2519
  let { active = false } = $$props;
2372
2520
  $$self.$$set = ($$props2) => {
@@ -2380,11 +2528,11 @@ function instance30($$self, $$props, $$invalidate) {
2380
2528
  var Reset = class extends SvelteComponent {
2381
2529
  constructor(options) {
2382
2530
  super();
2383
- init(this, options, instance30, create_fragment30, safe_not_equal, { theme: 0, active: 1 });
2531
+ init(this, options, instance32, create_fragment32, safe_not_equal, { theme: 0, active: 1 });
2384
2532
  }
2385
2533
  };
2386
2534
  var Reset_default = Reset;
2387
- function create_fragment31(ctx) {
2535
+ function create_fragment33(ctx) {
2388
2536
  let svg;
2389
2537
  let path;
2390
2538
  let svg_class_value;
@@ -2436,7 +2584,7 @@ function create_fragment31(ctx) {
2436
2584
  }
2437
2585
  };
2438
2586
  }
2439
- function instance31($$self, $$props, $$invalidate) {
2587
+ function instance33($$self, $$props, $$invalidate) {
2440
2588
  let { theme = "light" } = $$props;
2441
2589
  let { active = false } = $$props;
2442
2590
  $$self.$$set = ($$props2) => {
@@ -2450,11 +2598,11 @@ function instance31($$self, $$props, $$invalidate) {
2450
2598
  var Rhombus = class extends SvelteComponent {
2451
2599
  constructor(options) {
2452
2600
  super();
2453
- init(this, options, instance31, create_fragment31, safe_not_equal, { theme: 0, active: 1 });
2601
+ init(this, options, instance33, create_fragment33, safe_not_equal, { theme: 0, active: 1 });
2454
2602
  }
2455
2603
  };
2456
2604
  var Rhombus_default = Rhombus;
2457
- function create_fragment32(ctx) {
2605
+ function create_fragment34(ctx) {
2458
2606
  let svg;
2459
2607
  let path;
2460
2608
  let svg_class_value;
@@ -2506,7 +2654,7 @@ function create_fragment32(ctx) {
2506
2654
  }
2507
2655
  };
2508
2656
  }
2509
- function instance32($$self, $$props, $$invalidate) {
2657
+ function instance34($$self, $$props, $$invalidate) {
2510
2658
  let { theme = "light" } = $$props;
2511
2659
  let { active = false } = $$props;
2512
2660
  $$self.$$set = ($$props2) => {
@@ -2520,11 +2668,11 @@ function instance32($$self, $$props, $$invalidate) {
2520
2668
  var RhombusBolded = class extends SvelteComponent {
2521
2669
  constructor(options) {
2522
2670
  super();
2523
- init(this, options, instance32, create_fragment32, safe_not_equal, { theme: 0, active: 1 });
2671
+ init(this, options, instance34, create_fragment34, safe_not_equal, { theme: 0, active: 1 });
2524
2672
  }
2525
2673
  };
2526
2674
  var RhombusBolded_default = RhombusBolded;
2527
- function create_fragment33(ctx) {
2675
+ function create_fragment35(ctx) {
2528
2676
  let svg;
2529
2677
  let path;
2530
2678
  let svg_class_value;
@@ -2576,7 +2724,7 @@ function create_fragment33(ctx) {
2576
2724
  }
2577
2725
  };
2578
2726
  }
2579
- function instance33($$self, $$props, $$invalidate) {
2727
+ function instance35($$self, $$props, $$invalidate) {
2580
2728
  let { theme = "light" } = $$props;
2581
2729
  let { active = false } = $$props;
2582
2730
  $$self.$$set = ($$props2) => {
@@ -2590,11 +2738,11 @@ function instance33($$self, $$props, $$invalidate) {
2590
2738
  var Right = class extends SvelteComponent {
2591
2739
  constructor(options) {
2592
2740
  super();
2593
- init(this, options, instance33, create_fragment33, safe_not_equal, { theme: 0, active: 1 });
2741
+ init(this, options, instance35, create_fragment35, safe_not_equal, { theme: 0, active: 1 });
2594
2742
  }
2595
2743
  };
2596
2744
  var Right_default = Right;
2597
- function create_fragment34(ctx) {
2745
+ function create_fragment36(ctx) {
2598
2746
  let svg;
2599
2747
  let path0;
2600
2748
  let path1;
@@ -2655,7 +2803,7 @@ function create_fragment34(ctx) {
2655
2803
  }
2656
2804
  };
2657
2805
  }
2658
- function instance34($$self, $$props, $$invalidate) {
2806
+ function instance36($$self, $$props, $$invalidate) {
2659
2807
  let { theme = "light" } = $$props;
2660
2808
  let { active = false } = $$props;
2661
2809
  $$self.$$set = ($$props2) => {
@@ -2669,11 +2817,11 @@ function instance34($$self, $$props, $$invalidate) {
2669
2817
  var Selector = class extends SvelteComponent {
2670
2818
  constructor(options) {
2671
2819
  super();
2672
- init(this, options, instance34, create_fragment34, safe_not_equal, { theme: 0, active: 1 });
2820
+ init(this, options, instance36, create_fragment36, safe_not_equal, { theme: 0, active: 1 });
2673
2821
  }
2674
2822
  };
2675
2823
  var Selector_default = Selector;
2676
- function create_fragment35(ctx) {
2824
+ function create_fragment37(ctx) {
2677
2825
  let svg;
2678
2826
  let path0;
2679
2827
  let path1;
@@ -2732,7 +2880,7 @@ function create_fragment35(ctx) {
2732
2880
  }
2733
2881
  };
2734
2882
  }
2735
- function instance35($$self, $$props, $$invalidate) {
2883
+ function instance37($$self, $$props, $$invalidate) {
2736
2884
  let { theme = "light" } = $$props;
2737
2885
  let { active = false } = $$props;
2738
2886
  $$self.$$set = ($$props2) => {
@@ -2746,11 +2894,11 @@ function instance35($$self, $$props, $$invalidate) {
2746
2894
  var SelectorFilled = class extends SvelteComponent {
2747
2895
  constructor(options) {
2748
2896
  super();
2749
- init(this, options, instance35, create_fragment35, safe_not_equal, { theme: 0, active: 1 });
2897
+ init(this, options, instance37, create_fragment37, safe_not_equal, { theme: 0, active: 1 });
2750
2898
  }
2751
2899
  };
2752
2900
  var SelectorFilled_default = SelectorFilled;
2753
- function create_fragment36(ctx) {
2901
+ function create_fragment38(ctx) {
2754
2902
  let svg;
2755
2903
  let path;
2756
2904
  let svg_class_value;
@@ -2802,7 +2950,7 @@ function create_fragment36(ctx) {
2802
2950
  }
2803
2951
  };
2804
2952
  }
2805
- function instance36($$self, $$props, $$invalidate) {
2953
+ function instance38($$self, $$props, $$invalidate) {
2806
2954
  let { theme = "light" } = $$props;
2807
2955
  let { active = false } = $$props;
2808
2956
  $$self.$$set = ($$props2) => {
@@ -2816,11 +2964,11 @@ function instance36($$self, $$props, $$invalidate) {
2816
2964
  var SpeechBalloon = class extends SvelteComponent {
2817
2965
  constructor(options) {
2818
2966
  super();
2819
- init(this, options, instance36, create_fragment36, safe_not_equal, { theme: 0, active: 1 });
2967
+ init(this, options, instance38, create_fragment38, safe_not_equal, { theme: 0, active: 1 });
2820
2968
  }
2821
2969
  };
2822
2970
  var SpeechBalloon_default = SpeechBalloon;
2823
- function create_fragment37(ctx) {
2971
+ function create_fragment39(ctx) {
2824
2972
  let svg;
2825
2973
  let path;
2826
2974
  let svg_class_value;
@@ -2872,7 +3020,7 @@ function create_fragment37(ctx) {
2872
3020
  }
2873
3021
  };
2874
3022
  }
2875
- function instance37($$self, $$props, $$invalidate) {
3023
+ function instance39($$self, $$props, $$invalidate) {
2876
3024
  let { theme = "light" } = $$props;
2877
3025
  let { active = false } = $$props;
2878
3026
  $$self.$$set = ($$props2) => {
@@ -2886,11 +3034,11 @@ function instance37($$self, $$props, $$invalidate) {
2886
3034
  var Star = class extends SvelteComponent {
2887
3035
  constructor(options) {
2888
3036
  super();
2889
- init(this, options, instance37, create_fragment37, safe_not_equal, { theme: 0, active: 1 });
3037
+ init(this, options, instance39, create_fragment39, safe_not_equal, { theme: 0, active: 1 });
2890
3038
  }
2891
3039
  };
2892
3040
  var Star_default = Star;
2893
- function create_fragment38(ctx) {
3041
+ function create_fragment40(ctx) {
2894
3042
  let svg;
2895
3043
  let path;
2896
3044
  let svg_class_value;
@@ -2942,7 +3090,7 @@ function create_fragment38(ctx) {
2942
3090
  }
2943
3091
  };
2944
3092
  }
2945
- function instance38($$self, $$props, $$invalidate) {
3093
+ function instance40($$self, $$props, $$invalidate) {
2946
3094
  let { theme = "light" } = $$props;
2947
3095
  let { active = false } = $$props;
2948
3096
  $$self.$$set = ($$props2) => {
@@ -2956,11 +3104,11 @@ function instance38($$self, $$props, $$invalidate) {
2956
3104
  var StarBolded = class extends SvelteComponent {
2957
3105
  constructor(options) {
2958
3106
  super();
2959
- init(this, options, instance38, create_fragment38, safe_not_equal, { theme: 0, active: 1 });
3107
+ init(this, options, instance40, create_fragment40, safe_not_equal, { theme: 0, active: 1 });
2960
3108
  }
2961
3109
  };
2962
3110
  var StarBolded_default = StarBolded;
2963
- function create_fragment39(ctx) {
3111
+ function create_fragment41(ctx) {
2964
3112
  let svg;
2965
3113
  let path;
2966
3114
  let svg_class_value;
@@ -3012,7 +3160,7 @@ function create_fragment39(ctx) {
3012
3160
  }
3013
3161
  };
3014
3162
  }
3015
- function instance39($$self, $$props, $$invalidate) {
3163
+ function instance41($$self, $$props, $$invalidate) {
3016
3164
  let { theme = "light" } = $$props;
3017
3165
  let { active = false } = $$props;
3018
3166
  $$self.$$set = ($$props2) => {
@@ -3026,11 +3174,11 @@ function instance39($$self, $$props, $$invalidate) {
3026
3174
  var Text = class extends SvelteComponent {
3027
3175
  constructor(options) {
3028
3176
  super();
3029
- init(this, options, instance39, create_fragment39, safe_not_equal, { theme: 0, active: 1 });
3177
+ init(this, options, instance41, create_fragment41, safe_not_equal, { theme: 0, active: 1 });
3030
3178
  }
3031
3179
  };
3032
3180
  var Text_default = Text;
3033
- function create_fragment40(ctx) {
3181
+ function create_fragment42(ctx) {
3034
3182
  let svg;
3035
3183
  let path0;
3036
3184
  let path1;
@@ -3089,7 +3237,7 @@ function create_fragment40(ctx) {
3089
3237
  }
3090
3238
  };
3091
3239
  }
3092
- function instance40($$self, $$props, $$invalidate) {
3240
+ function instance42($$self, $$props, $$invalidate) {
3093
3241
  let { theme = "light" } = $$props;
3094
3242
  let { active = false } = $$props;
3095
3243
  $$self.$$set = ($$props2) => {
@@ -3103,11 +3251,11 @@ function instance40($$self, $$props, $$invalidate) {
3103
3251
  var TextFilled = class extends SvelteComponent {
3104
3252
  constructor(options) {
3105
3253
  super();
3106
- init(this, options, instance40, create_fragment40, safe_not_equal, { theme: 0, active: 1 });
3254
+ init(this, options, instance42, create_fragment42, safe_not_equal, { theme: 0, active: 1 });
3107
3255
  }
3108
3256
  };
3109
3257
  var TextFilled_default = TextFilled;
3110
- function create_fragment41(ctx) {
3258
+ function create_fragment43(ctx) {
3111
3259
  let svg;
3112
3260
  let path;
3113
3261
  let svg_class_value;
@@ -3159,7 +3307,7 @@ function create_fragment41(ctx) {
3159
3307
  }
3160
3308
  };
3161
3309
  }
3162
- function instance41($$self, $$props, $$invalidate) {
3310
+ function instance43($$self, $$props, $$invalidate) {
3163
3311
  let { theme = "light" } = $$props;
3164
3312
  let { active = false } = $$props;
3165
3313
  $$self.$$set = ($$props2) => {
@@ -3173,11 +3321,11 @@ function instance41($$self, $$props, $$invalidate) {
3173
3321
  var Triangle = class extends SvelteComponent {
3174
3322
  constructor(options) {
3175
3323
  super();
3176
- init(this, options, instance41, create_fragment41, safe_not_equal, { theme: 0, active: 1 });
3324
+ init(this, options, instance43, create_fragment43, safe_not_equal, { theme: 0, active: 1 });
3177
3325
  }
3178
3326
  };
3179
3327
  var Triangle_default = Triangle;
3180
- function create_fragment42(ctx) {
3328
+ function create_fragment44(ctx) {
3181
3329
  let svg;
3182
3330
  let path;
3183
3331
  let svg_class_value;
@@ -3229,7 +3377,7 @@ function create_fragment42(ctx) {
3229
3377
  }
3230
3378
  };
3231
3379
  }
3232
- function instance42($$self, $$props, $$invalidate) {
3380
+ function instance44($$self, $$props, $$invalidate) {
3233
3381
  let { theme = "light" } = $$props;
3234
3382
  let { active = false } = $$props;
3235
3383
  $$self.$$set = ($$props2) => {
@@ -3243,11 +3391,11 @@ function instance42($$self, $$props, $$invalidate) {
3243
3391
  var TriangleBolded = class extends SvelteComponent {
3244
3392
  constructor(options) {
3245
3393
  super();
3246
- init(this, options, instance42, create_fragment42, safe_not_equal, { theme: 0, active: 1 });
3394
+ init(this, options, instance44, create_fragment44, safe_not_equal, { theme: 0, active: 1 });
3247
3395
  }
3248
3396
  };
3249
3397
  var TriangleBolded_default = TriangleBolded;
3250
- function create_fragment43(ctx) {
3398
+ function create_fragment45(ctx) {
3251
3399
  let svg;
3252
3400
  let path0;
3253
3401
  let path1;
@@ -3303,7 +3451,7 @@ function create_fragment43(ctx) {
3303
3451
  }
3304
3452
  };
3305
3453
  }
3306
- function instance43($$self, $$props, $$invalidate) {
3454
+ function instance45($$self, $$props, $$invalidate) {
3307
3455
  let { theme = "light" } = $$props;
3308
3456
  let { active = false } = $$props;
3309
3457
  $$self.$$set = ($$props2) => {
@@ -3317,11 +3465,11 @@ function instance43($$self, $$props, $$invalidate) {
3317
3465
  var Undo = class extends SvelteComponent {
3318
3466
  constructor(options) {
3319
3467
  super();
3320
- init(this, options, instance43, create_fragment43, safe_not_equal, { theme: 0, active: 1 });
3468
+ init(this, options, instance45, create_fragment45, safe_not_equal, { theme: 0, active: 1 });
3321
3469
  }
3322
3470
  };
3323
3471
  var Undo_default = Undo;
3324
- function create_fragment44(ctx) {
3472
+ function create_fragment46(ctx) {
3325
3473
  let svg;
3326
3474
  let path;
3327
3475
  let svg_class_value;
@@ -3373,7 +3521,7 @@ function create_fragment44(ctx) {
3373
3521
  }
3374
3522
  };
3375
3523
  }
3376
- function instance44($$self, $$props, $$invalidate) {
3524
+ function instance46($$self, $$props, $$invalidate) {
3377
3525
  let { theme = "light" } = $$props;
3378
3526
  let { active = false } = $$props;
3379
3527
  $$self.$$set = ($$props2) => {
@@ -3387,11 +3535,11 @@ function instance44($$self, $$props, $$invalidate) {
3387
3535
  var Up = class extends SvelteComponent {
3388
3536
  constructor(options) {
3389
3537
  super();
3390
- init(this, options, instance44, create_fragment44, safe_not_equal, { theme: 0, active: 1 });
3538
+ init(this, options, instance46, create_fragment46, safe_not_equal, { theme: 0, active: 1 });
3391
3539
  }
3392
3540
  };
3393
3541
  var Up_default = Up;
3394
- function create_fragment45(ctx) {
3542
+ function create_fragment47(ctx) {
3395
3543
  let svg;
3396
3544
  let path0;
3397
3545
  let rect;
@@ -3463,7 +3611,7 @@ function create_fragment45(ctx) {
3463
3611
  }
3464
3612
  };
3465
3613
  }
3466
- function instance45($$self, $$props, $$invalidate) {
3614
+ function instance47($$self, $$props, $$invalidate) {
3467
3615
  let { theme = "light" } = $$props;
3468
3616
  let { active = false } = $$props;
3469
3617
  $$self.$$set = ($$props2) => {
@@ -3477,11 +3625,11 @@ function instance45($$self, $$props, $$invalidate) {
3477
3625
  var WhiteboardAdd = class extends SvelteComponent {
3478
3626
  constructor(options) {
3479
3627
  super();
3480
- init(this, options, instance45, create_fragment45, safe_not_equal, { theme: 0, active: 1 });
3628
+ init(this, options, instance47, create_fragment47, safe_not_equal, { theme: 0, active: 1 });
3481
3629
  }
3482
3630
  };
3483
3631
  var WhiteboardAdd_default = WhiteboardAdd;
3484
- function create_fragment46(ctx) {
3632
+ function create_fragment48(ctx) {
3485
3633
  let svg;
3486
3634
  let path;
3487
3635
  let svg_class_value;
@@ -3531,7 +3679,7 @@ function create_fragment46(ctx) {
3531
3679
  }
3532
3680
  };
3533
3681
  }
3534
- function instance46($$self, $$props, $$invalidate) {
3682
+ function instance48($$self, $$props, $$invalidate) {
3535
3683
  let { theme = "light" } = $$props;
3536
3684
  let { active = false } = $$props;
3537
3685
  $$self.$$set = ($$props2) => {
@@ -3545,11 +3693,11 @@ function instance46($$self, $$props, $$invalidate) {
3545
3693
  var Play = class extends SvelteComponent {
3546
3694
  constructor(options) {
3547
3695
  super();
3548
- init(this, options, instance46, create_fragment46, safe_not_equal, { theme: 0, active: 1 });
3696
+ init(this, options, instance48, create_fragment48, safe_not_equal, { theme: 0, active: 1 });
3549
3697
  }
3550
3698
  };
3551
3699
  var Play_default = Play;
3552
- function create_fragment47(ctx) {
3700
+ function create_fragment49(ctx) {
3553
3701
  let svg;
3554
3702
  let path;
3555
3703
  let svg_class_value;
@@ -3599,7 +3747,7 @@ function create_fragment47(ctx) {
3599
3747
  }
3600
3748
  };
3601
3749
  }
3602
- function instance47($$self, $$props, $$invalidate) {
3750
+ function instance49($$self, $$props, $$invalidate) {
3603
3751
  let { theme = "light" } = $$props;
3604
3752
  let { active = false } = $$props;
3605
3753
  $$self.$$set = ($$props2) => {
@@ -3613,11 +3761,11 @@ function instance47($$self, $$props, $$invalidate) {
3613
3761
  var Pause = class extends SvelteComponent {
3614
3762
  constructor(options) {
3615
3763
  super();
3616
- init(this, options, instance47, create_fragment47, safe_not_equal, { theme: 0, active: 1 });
3764
+ init(this, options, instance49, create_fragment49, safe_not_equal, { theme: 0, active: 1 });
3617
3765
  }
3618
3766
  };
3619
3767
  var Pause_default = Pause;
3620
- function create_fragment48(ctx) {
3768
+ function create_fragment50(ctx) {
3621
3769
  let svg;
3622
3770
  let path;
3623
3771
  let svg_class_value;
@@ -3667,7 +3815,7 @@ function create_fragment48(ctx) {
3667
3815
  }
3668
3816
  };
3669
3817
  }
3670
- function instance48($$self, $$props, $$invalidate) {
3818
+ function instance50($$self, $$props, $$invalidate) {
3671
3819
  let { theme = "light" } = $$props;
3672
3820
  let { active = false } = $$props;
3673
3821
  $$self.$$set = ($$props2) => {
@@ -3681,11 +3829,11 @@ function instance48($$self, $$props, $$invalidate) {
3681
3829
  var Loading = class extends SvelteComponent {
3682
3830
  constructor(options) {
3683
3831
  super();
3684
- init(this, options, instance48, create_fragment48, safe_not_equal, { theme: 0, active: 1 });
3832
+ init(this, options, instance50, create_fragment50, safe_not_equal, { theme: 0, active: 1 });
3685
3833
  }
3686
3834
  };
3687
3835
  var Loading_default = Loading;
3688
- function create_fragment49(ctx) {
3836
+ function create_fragment51(ctx) {
3689
3837
  let svg;
3690
3838
  let g;
3691
3839
  let path0;
@@ -3705,7 +3853,7 @@ function create_fragment49(ctx) {
3705
3853
  attr(g, "stroke-width", "1.25");
3706
3854
  attr(g, "stroke-linecap", "round");
3707
3855
  attr(g, "stroke-linejoin", "round");
3708
- attr(g, "transform", "rotate(0 10 10)");
3856
+ attr(g, "transform", "rotate(0 10 10) translate(3 2)");
3709
3857
  attr(svg, "fill", "none");
3710
3858
  attr(svg, "viewBox", "0 0 24 24");
3711
3859
  attr(svg, "class", svg_class_value = "fastboard-icon " + /*theme*/
@@ -3747,7 +3895,7 @@ function create_fragment49(ctx) {
3747
3895
  }
3748
3896
  };
3749
3897
  }
3750
- function instance49($$self, $$props, $$invalidate) {
3898
+ function instance51($$self, $$props, $$invalidate) {
3751
3899
  let { theme = "light" } = $$props;
3752
3900
  let { active = false } = $$props;
3753
3901
  $$self.$$set = ($$props2) => {
@@ -3761,11 +3909,11 @@ function instance49($$self, $$props, $$invalidate) {
3761
3909
  var LaserPen = class extends SvelteComponent {
3762
3910
  constructor(options) {
3763
3911
  super();
3764
- init(this, options, instance49, create_fragment49, safe_not_equal, { theme: 0, active: 1 });
3912
+ init(this, options, instance51, create_fragment51, safe_not_equal, { theme: 0, active: 1 });
3765
3913
  }
3766
3914
  };
3767
3915
  var LaserPen_default = LaserPen;
3768
- function create_fragment50(ctx) {
3916
+ function create_fragment52(ctx) {
3769
3917
  let svg;
3770
3918
  let g;
3771
3919
  let path0;
@@ -3785,7 +3933,7 @@ function create_fragment50(ctx) {
3785
3933
  attr(g, "stroke-width", "1.25");
3786
3934
  attr(g, "stroke-linecap", "round");
3787
3935
  attr(g, "stroke-linejoin", "round");
3788
- attr(g, "transform", "rotate(0 10 10)");
3936
+ attr(g, "transform", "rotate(0 10 10) translate(3 2)");
3789
3937
  attr(svg, "fill", "none");
3790
3938
  attr(svg, "viewBox", "0 0 24 24");
3791
3939
  attr(svg, "class", svg_class_value = "fastboard-icon " + /*theme*/
@@ -3827,7 +3975,7 @@ function create_fragment50(ctx) {
3827
3975
  }
3828
3976
  };
3829
3977
  }
3830
- function instance50($$self, $$props, $$invalidate) {
3978
+ function instance52($$self, $$props, $$invalidate) {
3831
3979
  let { theme = "light" } = $$props;
3832
3980
  let { active = false } = $$props;
3833
3981
  $$self.$$set = ($$props2) => {
@@ -3841,11 +3989,11 @@ function instance50($$self, $$props, $$invalidate) {
3841
3989
  var LaserPenFilled = class extends SvelteComponent {
3842
3990
  constructor(options) {
3843
3991
  super();
3844
- init(this, options, instance50, create_fragment50, safe_not_equal, { theme: 0, active: 1 });
3992
+ init(this, options, instance52, create_fragment52, safe_not_equal, { theme: 0, active: 1 });
3845
3993
  }
3846
3994
  };
3847
3995
  var LaserPenFilled_default = LaserPenFilled;
3848
- function create_fragment51(ctx) {
3996
+ function create_fragment53(ctx) {
3849
3997
  let svg;
3850
3998
  let g;
3851
3999
  let path;
@@ -3901,7 +4049,7 @@ function create_fragment51(ctx) {
3901
4049
  }
3902
4050
  };
3903
4051
  }
3904
- function instance51($$self, $$props, $$invalidate) {
4052
+ function instance53($$self, $$props, $$invalidate) {
3905
4053
  let { theme = "light" } = $$props;
3906
4054
  let { active = false } = $$props;
3907
4055
  $$self.$$set = ($$props2) => {
@@ -3915,11 +4063,11 @@ function instance51($$self, $$props, $$invalidate) {
3915
4063
  var MarkPen = class extends SvelteComponent {
3916
4064
  constructor(options) {
3917
4065
  super();
3918
- init(this, options, instance51, create_fragment51, safe_not_equal, { theme: 0, active: 1 });
4066
+ init(this, options, instance53, create_fragment53, safe_not_equal, { theme: 0, active: 1 });
3919
4067
  }
3920
4068
  };
3921
4069
  var MarkPen_default = MarkPen;
3922
- function create_fragment52(ctx) {
4070
+ function create_fragment54(ctx) {
3923
4071
  let svg;
3924
4072
  let g;
3925
4073
  let path;
@@ -3975,7 +4123,7 @@ function create_fragment52(ctx) {
3975
4123
  }
3976
4124
  };
3977
4125
  }
3978
- function instance52($$self, $$props, $$invalidate) {
4126
+ function instance54($$self, $$props, $$invalidate) {
3979
4127
  let { theme = "light" } = $$props;
3980
4128
  let { active = false } = $$props;
3981
4129
  $$self.$$set = ($$props2) => {
@@ -3989,11 +4137,11 @@ function instance52($$self, $$props, $$invalidate) {
3989
4137
  var MarkPenFilled = class extends SvelteComponent {
3990
4138
  constructor(options) {
3991
4139
  super();
3992
- init(this, options, instance52, create_fragment52, safe_not_equal, { theme: 0, active: 1 });
4140
+ init(this, options, instance54, create_fragment54, safe_not_equal, { theme: 0, active: 1 });
3993
4141
  }
3994
4142
  };
3995
4143
  var MarkPenFilled_default = MarkPenFilled;
3996
- function create_fragment53(ctx) {
4144
+ function create_fragment55(ctx) {
3997
4145
  let svg;
3998
4146
  let g;
3999
4147
  let path0;
@@ -4014,6 +4162,7 @@ function create_fragment53(ctx) {
4014
4162
  attr(path1, "d", "M9 21h12");
4015
4163
  attr(path1, "class", "fastboard-icon-stroke-color");
4016
4164
  attr(g, "fill", "none");
4165
+ attr(g, "transform", "scale(0.8 0.8) translate(3 1)");
4017
4166
  attr(svg, "width", "24");
4018
4167
  attr(svg, "height", "24");
4019
4168
  attr(svg, "viewBox", "0 0 24 24");
@@ -4056,7 +4205,7 @@ function create_fragment53(ctx) {
4056
4205
  }
4057
4206
  };
4058
4207
  }
4059
- function instance53($$self, $$props, $$invalidate) {
4208
+ function instance55($$self, $$props, $$invalidate) {
4060
4209
  let { theme = "light" } = $$props;
4061
4210
  let { active = false } = $$props;
4062
4211
  $$self.$$set = ($$props2) => {
@@ -4070,11 +4219,11 @@ function instance53($$self, $$props, $$invalidate) {
4070
4219
  var EraserBitmap = class extends SvelteComponent {
4071
4220
  constructor(options) {
4072
4221
  super();
4073
- init(this, options, instance53, create_fragment53, safe_not_equal, { theme: 0, active: 1 });
4222
+ init(this, options, instance55, create_fragment55, safe_not_equal, { theme: 0, active: 1 });
4074
4223
  }
4075
4224
  };
4076
4225
  var EraserBitmap_default = EraserBitmap;
4077
- function create_fragment54(ctx) {
4226
+ function create_fragment56(ctx) {
4078
4227
  let svg;
4079
4228
  let g;
4080
4229
  let path0;
@@ -4095,6 +4244,7 @@ function create_fragment54(ctx) {
4095
4244
  attr(path1, "d", "M9 21h12");
4096
4245
  attr(path1, "class", "fastboard-icon-stroke-color");
4097
4246
  attr(g, "fill", "none");
4247
+ attr(g, "transform", "scale(0.8 0.8) translate(3 1)");
4098
4248
  attr(svg, "width", "24");
4099
4249
  attr(svg, "height", "24");
4100
4250
  attr(svg, "viewBox", "0 0 24 24");
@@ -4137,7 +4287,7 @@ function create_fragment54(ctx) {
4137
4287
  }
4138
4288
  };
4139
4289
  }
4140
- function instance54($$self, $$props, $$invalidate) {
4290
+ function instance56($$self, $$props, $$invalidate) {
4141
4291
  let { theme = "light" } = $$props;
4142
4292
  let { active = false } = $$props;
4143
4293
  $$self.$$set = ($$props2) => {
@@ -4151,7 +4301,7 @@ function instance54($$self, $$props, $$invalidate) {
4151
4301
  var EraserBitmapFilled = class extends SvelteComponent {
4152
4302
  constructor(options) {
4153
4303
  super();
4154
- init(this, options, instance54, create_fragment54, safe_not_equal, { theme: 0, active: 1 });
4304
+ init(this, options, instance56, create_fragment56, safe_not_equal, { theme: 0, active: 1 });
4155
4305
  }
4156
4306
  };
4157
4307
  var EraserBitmapFilled_default = EraserBitmapFilled;
@@ -4210,7 +4360,9 @@ var Icons = {
4210
4360
  MarkPen: MarkPen_default,
4211
4361
  MarkPenFilled: MarkPenFilled_default,
4212
4362
  EraserBitmap: EraserBitmap_default,
4213
- EraserBitmapFilled: EraserBitmapFilled_default
4363
+ EraserBitmapFilled: EraserBitmapFilled_default,
4364
+ StrokePencil: BrushPen_default,
4365
+ StrokePencilFilled: BrushPenFilled_default
4214
4366
  };
4215
4367
  var Icons_default = Icons;
4216
4368
  if (typeof window !== "undefined") {
@@ -4223,12 +4375,12 @@ if (typeof window !== "undefined") {
4223
4375
  {
4224
4376
  name: "className",
4225
4377
  defaultValue: "",
4226
- fn(instance79) {
4378
+ fn(instance81) {
4227
4379
  function add() {
4228
- const el = instance79.popper.firstElementChild;
4380
+ const el = instance81.popper.firstElementChild;
4229
4381
  if (el) {
4230
4382
  el.classList.add("fastboard-tip");
4231
- const extra = (instance79.props.className || "").trim();
4383
+ const extra = (instance81.props.className || "").trim();
4232
4384
  if (extra) {
4233
4385
  el.classList.add(extra);
4234
4386
  }
@@ -4236,7 +4388,7 @@ if (typeof window !== "undefined") {
4236
4388
  }
4237
4389
  function remove() {
4238
4390
  var _a;
4239
- (_a = instance79.popper.firstElementChild) == null ? void 0 : _a.classList.remove("fastboard-tip");
4391
+ (_a = instance81.popper.firstElementChild) == null ? void 0 : _a.classList.remove("fastboard-tip");
4240
4392
  }
4241
4393
  return {
4242
4394
  onCreate: add,
@@ -4249,21 +4401,21 @@ if (typeof window !== "undefined") {
4249
4401
  });
4250
4402
  }
4251
4403
  var tippy = function(node, props) {
4252
- const instance79 = Tippy(node, props);
4404
+ const instance81 = Tippy(node, props);
4253
4405
  return {
4254
4406
  update(props2) {
4255
- instance79.setProps(props2);
4407
+ instance81.setProps(props2);
4256
4408
  },
4257
4409
  destroy() {
4258
- instance79.destroy();
4410
+ instance81.destroy();
4259
4411
  }
4260
4412
  };
4261
4413
  };
4262
4414
  function tippy_hide_all() {
4263
4415
  document.querySelectorAll("[data-tippy-root]").forEach((el) => {
4264
- const instance79 = el._tippy;
4265
- if (instance79)
4266
- instance79.hide();
4416
+ const instance81 = el._tippy;
4417
+ if (instance81)
4418
+ instance81.hide();
4267
4419
  });
4268
4420
  }
4269
4421
  var tippy_menu = {
@@ -4777,7 +4929,7 @@ function create_if_block_1(ctx) {
4777
4929
  }
4778
4930
  };
4779
4931
  }
4780
- function create_fragment55(ctx) {
4932
+ function create_fragment57(ctx) {
4781
4933
  let current_block_type_index;
4782
4934
  let if_block;
4783
4935
  let if_block_anchor;
@@ -4843,7 +4995,7 @@ function create_fragment55(ctx) {
4843
4995
  }
4844
4996
  };
4845
4997
  }
4846
- function instance55($$self, $$props, $$invalidate) {
4998
+ function instance57($$self, $$props, $$invalidate) {
4847
4999
  let { $$slots: slots = {}, $$scope } = $$props;
4848
5000
  let { class: className = "" } = $$props;
4849
5001
  let { name: name10 = "fastboard-ui" } = $$props;
@@ -4901,7 +5053,7 @@ function instance55($$self, $$props, $$invalidate) {
4901
5053
  var Button = class extends SvelteComponent {
4902
5054
  constructor(options) {
4903
5055
  super();
4904
- init(this, options, instance55, create_fragment55, safe_not_equal, {
5056
+ init(this, options, instance57, create_fragment57, safe_not_equal, {
4905
5057
  class: 0,
4906
5058
  name: 1,
4907
5059
  theme: 2,
@@ -5106,7 +5258,7 @@ function create_default_slot(ctx) {
5106
5258
  }
5107
5259
  };
5108
5260
  }
5109
- function create_fragment56(ctx) {
5261
+ function create_fragment58(ctx) {
5110
5262
  let div;
5111
5263
  let button0;
5112
5264
  let t_1;
@@ -5247,7 +5399,7 @@ var i18n = {
5247
5399
  "zh-CN": { redo: "\u91CD\u505A", undo: "\u64A4\u9500" }
5248
5400
  };
5249
5401
  var name = "fastboard-redo-undo";
5250
- function instance56($$self, $$props, $$invalidate) {
5402
+ function instance58($$self, $$props, $$invalidate) {
5251
5403
  let writable2;
5252
5404
  let phase;
5253
5405
  let disabled;
@@ -5348,7 +5500,7 @@ function instance56($$self, $$props, $$invalidate) {
5348
5500
  var RedoUndo = class extends SvelteComponent {
5349
5501
  constructor(options) {
5350
5502
  super();
5351
- init(this, options, instance56, create_fragment56, safe_not_equal, {
5503
+ init(this, options, instance58, create_fragment58, safe_not_equal, {
5352
5504
  app: 12,
5353
5505
  theme: 0,
5354
5506
  language: 13,
@@ -5703,7 +5855,7 @@ function create_default_slot2(ctx) {
5703
5855
  }
5704
5856
  };
5705
5857
  }
5706
- function create_fragment57(ctx) {
5858
+ function create_fragment59(ctx) {
5707
5859
  let div;
5708
5860
  let button0;
5709
5861
  let t0;
@@ -5938,7 +6090,7 @@ var i18n2 = {
5938
6090
  "zh-CN": { prev: "\u4E0A\u4E00\u9875", next: "\u4E0B\u4E00\u9875", add: "\u6DFB\u52A0\u9875\u9762" }
5939
6091
  };
5940
6092
  var name2 = "fastboard-page-control";
5941
- function instance57($$self, $$props, $$invalidate) {
6093
+ function instance59($$self, $$props, $$invalidate) {
5942
6094
  let writable2;
5943
6095
  let phase;
5944
6096
  let disabled;
@@ -6044,7 +6196,7 @@ function instance57($$self, $$props, $$invalidate) {
6044
6196
  var PageControl = class extends SvelteComponent {
6045
6197
  constructor(options) {
6046
6198
  super();
6047
- init(this, options, instance57, create_fragment57, safe_not_equal, {
6199
+ init(this, options, instance59, create_fragment59, safe_not_equal, {
6048
6200
  app: 16,
6049
6201
  theme: 0,
6050
6202
  language: 17,
@@ -6393,7 +6545,7 @@ function create_default_slot3(ctx) {
6393
6545
  }
6394
6546
  };
6395
6547
  }
6396
- function create_fragment58(ctx) {
6548
+ function create_fragment60(ctx) {
6397
6549
  let div;
6398
6550
  let button0;
6399
6551
  let t0;
@@ -6656,7 +6808,7 @@ function next_scale(scale, delta) {
6656
6808
  return 1;
6657
6809
  }
6658
6810
  var name3 = "fastboard-zoom-control";
6659
- function instance58($$self, $$props, $$invalidate) {
6811
+ function instance60($$self, $$props, $$invalidate) {
6660
6812
  let writable2;
6661
6813
  let phase;
6662
6814
  let disabled;
@@ -6767,7 +6919,7 @@ function instance58($$self, $$props, $$invalidate) {
6767
6919
  var ZoomControl = class extends SvelteComponent {
6768
6920
  constructor(options) {
6769
6921
  super();
6770
- init(this, options, instance58, create_fragment58, safe_not_equal, {
6922
+ init(this, options, instance60, create_fragment60, safe_not_equal, {
6771
6923
  app: 15,
6772
6924
  theme: 0,
6773
6925
  language: 16,
@@ -7021,7 +7173,7 @@ function hexToRgb(hex) {
7021
7173
  const b = parseInt(hex.slice(4, 6), 16);
7022
7174
  return [r, g, b];
7023
7175
  }
7024
- function create_fragment59(ctx) {
7176
+ function create_fragment61(ctx) {
7025
7177
  let div;
7026
7178
  let input;
7027
7179
  let input_class_value;
@@ -7236,7 +7388,7 @@ function create_fragment59(ctx) {
7236
7388
  };
7237
7389
  }
7238
7390
  var name4 = "fastboard-slider";
7239
- function instance59($$self, $$props, $$invalidate) {
7391
+ function instance61($$self, $$props, $$invalidate) {
7240
7392
  let percent;
7241
7393
  const dispatch = createEventDispatcher();
7242
7394
  let { class: className = "" } = $$props;
@@ -7307,7 +7459,7 @@ function instance59($$self, $$props, $$invalidate) {
7307
7459
  var Slider = class extends SvelteComponent {
7308
7460
  constructor(options) {
7309
7461
  super();
7310
- init(this, options, instance59, create_fragment59, safe_not_equal, {
7462
+ init(this, options, instance61, create_fragment61, safe_not_equal, {
7311
7463
  class: 1,
7312
7464
  theme: 2,
7313
7465
  min: 3,
@@ -7321,7 +7473,7 @@ var Slider = class extends SvelteComponent {
7321
7473
  var Slider_default = Slider;
7322
7474
 
7323
7475
  // src/components/Toolbar/components/StrokeWidth.svelte
7324
- function create_fragment60(ctx) {
7476
+ function create_fragment62(ctx) {
7325
7477
  let slider;
7326
7478
  let current;
7327
7479
  const slider_spread_levels = [
@@ -7377,7 +7529,7 @@ function create_fragment60(ctx) {
7377
7529
  }
7378
7530
  };
7379
7531
  }
7380
- function instance60($$self, $$props, $$invalidate) {
7532
+ function instance62($$self, $$props, $$invalidate) {
7381
7533
  let memberState;
7382
7534
  let value;
7383
7535
  let props;
@@ -7426,7 +7578,7 @@ function instance60($$self, $$props, $$invalidate) {
7426
7578
  var StrokeWidth = class extends SvelteComponent {
7427
7579
  constructor(options) {
7428
7580
  super();
7429
- init(this, options, instance60, create_fragment60, safe_not_equal, { app: 3, theme: 4, disabled: 5 });
7581
+ init(this, options, instance62, create_fragment62, safe_not_equal, { app: 3, theme: 4, disabled: 5 });
7430
7582
  }
7431
7583
  };
7432
7584
  var StrokeWidth_default = StrokeWidth;
@@ -7528,7 +7680,7 @@ function create_each_block(ctx) {
7528
7680
  }
7529
7681
  };
7530
7682
  }
7531
- function create_fragment61(ctx) {
7683
+ function create_fragment63(ctx) {
7532
7684
  let div;
7533
7685
  let div_class_value;
7534
7686
  let mounted;
@@ -7608,7 +7760,7 @@ function create_fragment61(ctx) {
7608
7760
  function is_equal_color(a, b) {
7609
7761
  return a && b && a.every((v, i) => v === b[i]);
7610
7762
  }
7611
- function instance61($$self, $$props, $$invalidate) {
7763
+ function instance63($$self, $$props, $$invalidate) {
7612
7764
  let memberState;
7613
7765
  let strokeColor;
7614
7766
  let $memberState, $$unsubscribe_memberState = noop, $$subscribe_memberState = () => ($$unsubscribe_memberState(), $$unsubscribe_memberState = subscribe(memberState, ($$value) => $$invalidate(7, $memberState = $$value)), memberState);
@@ -7660,7 +7812,7 @@ function instance61($$self, $$props, $$invalidate) {
7660
7812
  var StrokeColor = class extends SvelteComponent {
7661
7813
  constructor(options) {
7662
7814
  super();
7663
- init(this, options, instance61, create_fragment61, safe_not_equal, { app: 6, theme: 0, disabled: 1, colors: 2 });
7815
+ init(this, options, instance63, create_fragment63, safe_not_equal, { app: 6, theme: 0, disabled: 1, colors: 2 });
7664
7816
  }
7665
7817
  };
7666
7818
  var StrokeColor_default = StrokeColor;
@@ -7762,7 +7914,7 @@ function create_each_block2(ctx) {
7762
7914
  }
7763
7915
  };
7764
7916
  }
7765
- function create_fragment62(ctx) {
7917
+ function create_fragment64(ctx) {
7766
7918
  let div;
7767
7919
  let div_class_value;
7768
7920
  let mounted;
@@ -7842,7 +7994,7 @@ function create_fragment62(ctx) {
7842
7994
  function is_equal_color2(a, b) {
7843
7995
  return a && b && a.every((v, i) => v === b[i]);
7844
7996
  }
7845
- function instance62($$self, $$props, $$invalidate) {
7997
+ function instance64($$self, $$props, $$invalidate) {
7846
7998
  let memberState;
7847
7999
  let textColor;
7848
8000
  let $memberState, $$unsubscribe_memberState = noop, $$subscribe_memberState = () => ($$unsubscribe_memberState(), $$unsubscribe_memberState = subscribe(memberState, ($$value) => $$invalidate(7, $memberState = $$value)), memberState);
@@ -7894,7 +8046,7 @@ function instance62($$self, $$props, $$invalidate) {
7894
8046
  var TextColor = class extends SvelteComponent {
7895
8047
  constructor(options) {
7896
8048
  super();
7897
- init(this, options, instance62, create_fragment62, safe_not_equal, { app: 6, theme: 0, disabled: 1, colors: 2 });
8049
+ init(this, options, instance64, create_fragment64, safe_not_equal, { app: 6, theme: 0, disabled: 1, colors: 2 });
7898
8050
  }
7899
8051
  };
7900
8052
  var TextColor_default = TextColor;
@@ -8223,7 +8375,7 @@ function create_each_block3(key_1, ctx) {
8223
8375
  }
8224
8376
  };
8225
8377
  }
8226
- function create_fragment63(ctx) {
8378
+ function create_fragment65(ctx) {
8227
8379
  let div;
8228
8380
  let each_blocks = [];
8229
8381
  let each_1_lookup = /* @__PURE__ */ new Map();
@@ -8329,7 +8481,7 @@ var i18n5 = {
8329
8481
  speechBalloon: "\u6C14\u6CE1"
8330
8482
  }
8331
8483
  };
8332
- function instance63($$self, $$props, $$invalidate) {
8484
+ function instance65($$self, $$props, $$invalidate) {
8333
8485
  let t;
8334
8486
  let memberState;
8335
8487
  let appliance;
@@ -8414,7 +8566,7 @@ function instance63($$self, $$props, $$invalidate) {
8414
8566
  var SelectShapes = class extends SvelteComponent {
8415
8567
  constructor(options) {
8416
8568
  super();
8417
- init(this, options, instance63, create_fragment63, safe_not_equal, {
8569
+ init(this, options, instance65, create_fragment65, safe_not_equal, {
8418
8570
  app: 8,
8419
8571
  theme: 0,
8420
8572
  language: 9,
@@ -8567,7 +8719,7 @@ function create_default_slot4(ctx) {
8567
8719
  }
8568
8720
  };
8569
8721
  }
8570
- function create_fragment64(ctx) {
8722
+ function create_fragment66(ctx) {
8571
8723
  let button;
8572
8724
  let current;
8573
8725
  const button_spread_levels = [
@@ -8636,7 +8788,7 @@ function create_fragment64(ctx) {
8636
8788
  }
8637
8789
  };
8638
8790
  }
8639
- function instance64($$self, $$props, $$invalidate) {
8791
+ function instance66($$self, $$props, $$invalidate) {
8640
8792
  let { btn_props = {} } = $$props;
8641
8793
  let { content } = $$props;
8642
8794
  let { appliance } = $$props;
@@ -8659,7 +8811,7 @@ function instance64($$self, $$props, $$invalidate) {
8659
8811
  var Clicker = class extends SvelteComponent {
8660
8812
  constructor(options) {
8661
8813
  super();
8662
- init(this, options, instance64, create_fragment64, safe_not_equal, {
8814
+ init(this, options, instance66, create_fragment66, safe_not_equal, {
8663
8815
  btn_props: 0,
8664
8816
  content: 1,
8665
8817
  appliance: 2,
@@ -8812,7 +8964,7 @@ function create_default_slot5(ctx) {
8812
8964
  }
8813
8965
  };
8814
8966
  }
8815
- function create_fragment65(ctx) {
8967
+ function create_fragment67(ctx) {
8816
8968
  let button;
8817
8969
  let current;
8818
8970
  const button_spread_levels = [
@@ -8881,7 +9033,7 @@ function create_fragment65(ctx) {
8881
9033
  }
8882
9034
  };
8883
9035
  }
8884
- function instance65($$self, $$props, $$invalidate) {
9036
+ function instance67($$self, $$props, $$invalidate) {
8885
9037
  let { btn_props = {} } = $$props;
8886
9038
  let { content } = $$props;
8887
9039
  let { appliance } = $$props;
@@ -8904,7 +9056,7 @@ function instance65($$self, $$props, $$invalidate) {
8904
9056
  var Selector2 = class extends SvelteComponent {
8905
9057
  constructor(options) {
8906
9058
  super();
8907
- init(this, options, instance65, create_fragment65, safe_not_equal, {
9059
+ init(this, options, instance67, create_fragment67, safe_not_equal, {
8908
9060
  btn_props: 0,
8909
9061
  content: 1,
8910
9062
  appliance: 2,
@@ -8913,6 +9065,72 @@ var Selector2 = class extends SvelteComponent {
8913
9065
  }
8914
9066
  };
8915
9067
  var Selector_default2 = Selector2;
9068
+ function create_if_block_6(ctx) {
9069
+ let current_block_type_index;
9070
+ let if_block;
9071
+ let if_block_anchor;
9072
+ let current;
9073
+ const if_block_creators = [create_if_block_7, create_else_block_3];
9074
+ const if_blocks = [];
9075
+ function select_block_type_4(ctx2, dirty) {
9076
+ if (
9077
+ /*appliance*/
9078
+ ctx2[3] === "pencil"
9079
+ )
9080
+ return 0;
9081
+ return 1;
9082
+ }
9083
+ current_block_type_index = select_block_type_4(ctx);
9084
+ if_block = if_blocks[current_block_type_index] = if_block_creators[current_block_type_index](ctx);
9085
+ return {
9086
+ c() {
9087
+ if_block.c();
9088
+ if_block_anchor = empty();
9089
+ },
9090
+ m(target, anchor) {
9091
+ if_blocks[current_block_type_index].m(target, anchor);
9092
+ insert(target, if_block_anchor, anchor);
9093
+ current = true;
9094
+ },
9095
+ p(ctx2, dirty) {
9096
+ let previous_block_index = current_block_type_index;
9097
+ current_block_type_index = select_block_type_4(ctx2);
9098
+ if (current_block_type_index === previous_block_index) {
9099
+ if_blocks[current_block_type_index].p(ctx2, dirty);
9100
+ } else {
9101
+ group_outros();
9102
+ transition_out(if_blocks[previous_block_index], 1, 1, () => {
9103
+ if_blocks[previous_block_index] = null;
9104
+ });
9105
+ check_outros();
9106
+ if_block = if_blocks[current_block_type_index];
9107
+ if (!if_block) {
9108
+ if_block = if_blocks[current_block_type_index] = if_block_creators[current_block_type_index](ctx2);
9109
+ if_block.c();
9110
+ } else {
9111
+ if_block.p(ctx2, dirty);
9112
+ }
9113
+ transition_in(if_block, 1);
9114
+ if_block.m(if_block_anchor.parentNode, if_block_anchor);
9115
+ }
9116
+ },
9117
+ i(local) {
9118
+ if (current)
9119
+ return;
9120
+ transition_in(if_block);
9121
+ current = true;
9122
+ },
9123
+ o(local) {
9124
+ transition_out(if_block);
9125
+ current = false;
9126
+ },
9127
+ d(detaching) {
9128
+ if_blocks[current_block_type_index].d(detaching);
9129
+ if (detaching)
9130
+ detach(if_block_anchor);
9131
+ }
9132
+ };
9133
+ }
8916
9134
  function create_if_block_4(ctx) {
8917
9135
  let current_block_type_index;
8918
9136
  let if_block;
@@ -9111,7 +9329,7 @@ function create_if_block8(ctx) {
9111
9329
  }
9112
9330
  };
9113
9331
  }
9114
- function create_else_block_2(ctx) {
9332
+ function create_else_block_3(ctx) {
9115
9333
  let icons_pencil;
9116
9334
  let current;
9117
9335
  icons_pencil = new Icons_default.Pencil({ props: { theme: (
@@ -9149,7 +9367,7 @@ function create_else_block_2(ctx) {
9149
9367
  }
9150
9368
  };
9151
9369
  }
9152
- function create_if_block_5(ctx) {
9370
+ function create_if_block_7(ctx) {
9153
9371
  let icons_pencilfilled;
9154
9372
  let current;
9155
9373
  icons_pencilfilled = new Icons_default.PencilFilled({
@@ -9189,6 +9407,84 @@ function create_if_block_5(ctx) {
9189
9407
  }
9190
9408
  };
9191
9409
  }
9410
+ function create_else_block_2(ctx) {
9411
+ let icons_strokepencil;
9412
+ let current;
9413
+ icons_strokepencil = new Icons_default.StrokePencil({ props: { theme: (
9414
+ /*theme*/
9415
+ ctx[4]
9416
+ ) } });
9417
+ return {
9418
+ c() {
9419
+ create_component(icons_strokepencil.$$.fragment);
9420
+ },
9421
+ m(target, anchor) {
9422
+ mount_component(icons_strokepencil, target, anchor);
9423
+ current = true;
9424
+ },
9425
+ p(ctx2, dirty) {
9426
+ const icons_strokepencil_changes = {};
9427
+ if (dirty & /*theme*/
9428
+ 16)
9429
+ icons_strokepencil_changes.theme = /*theme*/
9430
+ ctx2[4];
9431
+ icons_strokepencil.$set(icons_strokepencil_changes);
9432
+ },
9433
+ i(local) {
9434
+ if (current)
9435
+ return;
9436
+ transition_in(icons_strokepencil.$$.fragment, local);
9437
+ current = true;
9438
+ },
9439
+ o(local) {
9440
+ transition_out(icons_strokepencil.$$.fragment, local);
9441
+ current = false;
9442
+ },
9443
+ d(detaching) {
9444
+ destroy_component(icons_strokepencil, detaching);
9445
+ }
9446
+ };
9447
+ }
9448
+ function create_if_block_5(ctx) {
9449
+ let icons_strokepencilfilled;
9450
+ let current;
9451
+ icons_strokepencilfilled = new Icons_default.StrokePencilFilled({
9452
+ props: { theme: (
9453
+ /*theme*/
9454
+ ctx[4]
9455
+ ), active: true }
9456
+ });
9457
+ return {
9458
+ c() {
9459
+ create_component(icons_strokepencilfilled.$$.fragment);
9460
+ },
9461
+ m(target, anchor) {
9462
+ mount_component(icons_strokepencilfilled, target, anchor);
9463
+ current = true;
9464
+ },
9465
+ p(ctx2, dirty) {
9466
+ const icons_strokepencilfilled_changes = {};
9467
+ if (dirty & /*theme*/
9468
+ 16)
9469
+ icons_strokepencilfilled_changes.theme = /*theme*/
9470
+ ctx2[4];
9471
+ icons_strokepencilfilled.$set(icons_strokepencilfilled_changes);
9472
+ },
9473
+ i(local) {
9474
+ if (current)
9475
+ return;
9476
+ transition_in(icons_strokepencilfilled.$$.fragment, local);
9477
+ current = true;
9478
+ },
9479
+ o(local) {
9480
+ transition_out(icons_strokepencilfilled.$$.fragment, local);
9481
+ current = false;
9482
+ },
9483
+ d(detaching) {
9484
+ destroy_component(icons_strokepencilfilled, detaching);
9485
+ }
9486
+ };
9487
+ }
9192
9488
  function create_else_block_12(ctx) {
9193
9489
  let icons_laserpen;
9194
9490
  let current;
@@ -9350,7 +9646,7 @@ function create_default_slot6(ctx) {
9350
9646
  let if_block;
9351
9647
  let if_block_anchor;
9352
9648
  let current;
9353
- const if_block_creators = [create_if_block8, create_if_block_2, create_if_block_4];
9649
+ const if_block_creators = [create_if_block8, create_if_block_2, create_if_block_4, create_if_block_6];
9354
9650
  const if_blocks = [];
9355
9651
  function select_block_type(ctx2, dirty) {
9356
9652
  if (
@@ -9365,9 +9661,14 @@ function create_default_slot6(ctx) {
9365
9661
  return 1;
9366
9662
  if (
9367
9663
  /*pencilType*/
9368
- ctx2[5] === "pencil"
9664
+ ctx2[5] === "stroke"
9369
9665
  )
9370
9666
  return 2;
9667
+ if (
9668
+ /*pencilType*/
9669
+ ctx2[5] === "pencil"
9670
+ )
9671
+ return 3;
9371
9672
  return -1;
9372
9673
  }
9373
9674
  if (~(current_block_type_index = select_block_type(ctx))) {
@@ -9435,7 +9736,7 @@ function create_default_slot6(ctx) {
9435
9736
  }
9436
9737
  };
9437
9738
  }
9438
- function create_fragment66(ctx) {
9739
+ function create_fragment68(ctx) {
9439
9740
  let button;
9440
9741
  let current;
9441
9742
  const button_spread_levels = [
@@ -9513,7 +9814,7 @@ function create_fragment66(ctx) {
9513
9814
  }
9514
9815
  };
9515
9816
  }
9516
- function instance66($$self, $$props, $$invalidate) {
9817
+ function instance68($$self, $$props, $$invalidate) {
9517
9818
  let { btn_props = {} } = $$props;
9518
9819
  let { content } = $$props;
9519
9820
  let { menu } = $$props;
@@ -9542,7 +9843,7 @@ function instance66($$self, $$props, $$invalidate) {
9542
9843
  var Pencil2 = class extends SvelteComponent {
9543
9844
  constructor(options) {
9544
9845
  super();
9545
- init(this, options, instance66, create_fragment66, safe_not_equal, {
9846
+ init(this, options, instance68, create_fragment68, safe_not_equal, {
9546
9847
  btn_props: 0,
9547
9848
  content: 1,
9548
9849
  menu: 2,
@@ -9697,7 +9998,7 @@ function create_default_slot7(ctx) {
9697
9998
  }
9698
9999
  };
9699
10000
  }
9700
- function create_fragment67(ctx) {
10001
+ function create_fragment69(ctx) {
9701
10002
  let button;
9702
10003
  let current;
9703
10004
  const button_spread_levels = [
@@ -9775,7 +10076,7 @@ function create_fragment67(ctx) {
9775
10076
  }
9776
10077
  };
9777
10078
  }
9778
- function instance67($$self, $$props, $$invalidate) {
10079
+ function instance69($$self, $$props, $$invalidate) {
9779
10080
  let { btn_props = {} } = $$props;
9780
10081
  let { content } = $$props;
9781
10082
  let { menu } = $$props;
@@ -9801,7 +10102,7 @@ function instance67($$self, $$props, $$invalidate) {
9801
10102
  var Text2 = class extends SvelteComponent {
9802
10103
  constructor(options) {
9803
10104
  super();
9804
- init(this, options, instance67, create_fragment67, safe_not_equal, {
10105
+ init(this, options, instance69, create_fragment69, safe_not_equal, {
9805
10106
  btn_props: 0,
9806
10107
  content: 1,
9807
10108
  menu: 2,
@@ -10043,7 +10344,7 @@ function create_default_slot8(ctx) {
10043
10344
  }
10044
10345
  };
10045
10346
  }
10046
- function create_fragment68(ctx) {
10347
+ function create_fragment70(ctx) {
10047
10348
  let button;
10048
10349
  let current;
10049
10350
  const button_spread_levels = [
@@ -10121,7 +10422,7 @@ function create_fragment68(ctx) {
10121
10422
  }
10122
10423
  };
10123
10424
  }
10124
- function instance68($$self, $$props, $$invalidate) {
10425
+ function instance70($$self, $$props, $$invalidate) {
10125
10426
  let memberState;
10126
10427
  let shape;
10127
10428
  let $memberState, $$unsubscribe_memberState = noop, $$subscribe_memberState = () => ($$unsubscribe_memberState(), $$unsubscribe_memberState = subscribe(memberState, ($$value) => $$invalidate(10, $memberState = $$value)), memberState);
@@ -10193,7 +10494,7 @@ function instance68($$self, $$props, $$invalidate) {
10193
10494
  var Shapes = class extends SvelteComponent {
10194
10495
  constructor(options) {
10195
10496
  super();
10196
- init(this, options, instance68, create_fragment68, safe_not_equal, {
10497
+ init(this, options, instance70, create_fragment70, safe_not_equal, {
10197
10498
  app: 9,
10198
10499
  btn_props: 1,
10199
10500
  content: 2,
@@ -10577,7 +10878,7 @@ function create_default_slot9(ctx) {
10577
10878
  }
10578
10879
  };
10579
10880
  }
10580
- function create_fragment69(ctx) {
10881
+ function create_fragment71(ctx) {
10581
10882
  let button;
10582
10883
  let current;
10583
10884
  const button_spread_levels = [
@@ -10655,7 +10956,7 @@ function create_fragment69(ctx) {
10655
10956
  }
10656
10957
  };
10657
10958
  }
10658
- function instance69($$self, $$props, $$invalidate) {
10959
+ function instance71($$self, $$props, $$invalidate) {
10659
10960
  let { btn_props = {} } = $$props;
10660
10961
  let { content } = $$props;
10661
10962
  let { appliance } = $$props;
@@ -10684,7 +10985,7 @@ function instance69($$self, $$props, $$invalidate) {
10684
10985
  var Eraser2 = class extends SvelteComponent {
10685
10986
  constructor(options) {
10686
10987
  super();
10687
- init(this, options, instance69, create_fragment69, safe_not_equal, {
10988
+ init(this, options, instance71, create_fragment71, safe_not_equal, {
10688
10989
  btn_props: 0,
10689
10990
  content: 1,
10690
10991
  appliance: 2,
@@ -10733,7 +11034,7 @@ function create_default_slot10(ctx) {
10733
11034
  }
10734
11035
  };
10735
11036
  }
10736
- function create_fragment70(ctx) {
11037
+ function create_fragment72(ctx) {
10737
11038
  let button;
10738
11039
  let current;
10739
11040
  const button_spread_levels = [
@@ -10802,7 +11103,7 @@ function create_fragment70(ctx) {
10802
11103
  }
10803
11104
  };
10804
11105
  }
10805
- function instance70($$self, $$props, $$invalidate) {
11106
+ function instance72($$self, $$props, $$invalidate) {
10806
11107
  let { btn_props = {} } = $$props;
10807
11108
  let { content } = $$props;
10808
11109
  let { theme = "light" } = $$props;
@@ -10822,7 +11123,7 @@ function instance70($$self, $$props, $$invalidate) {
10822
11123
  var Clear2 = class extends SvelteComponent {
10823
11124
  constructor(options) {
10824
11125
  super();
10825
- init(this, options, instance70, create_fragment70, safe_not_equal, { btn_props: 0, content: 1, theme: 2 });
11126
+ init(this, options, instance72, create_fragment72, safe_not_equal, { btn_props: 0, content: 1, theme: 2 });
10826
11127
  }
10827
11128
  };
10828
11129
  var Clear_default2 = Clear2;
@@ -10970,7 +11271,7 @@ function create_default_slot11(ctx) {
10970
11271
  }
10971
11272
  };
10972
11273
  }
10973
- function create_fragment71(ctx) {
11274
+ function create_fragment73(ctx) {
10974
11275
  let button;
10975
11276
  let current;
10976
11277
  const button_spread_levels = [
@@ -11039,7 +11340,7 @@ function create_fragment71(ctx) {
11039
11340
  }
11040
11341
  };
11041
11342
  }
11042
- function instance71($$self, $$props, $$invalidate) {
11343
+ function instance73($$self, $$props, $$invalidate) {
11043
11344
  let { btn_props = {} } = $$props;
11044
11345
  let { content } = $$props;
11045
11346
  let { appliance } = $$props;
@@ -11062,7 +11363,7 @@ function instance71($$self, $$props, $$invalidate) {
11062
11363
  var Hand = class extends SvelteComponent {
11063
11364
  constructor(options) {
11064
11365
  super();
11065
- init(this, options, instance71, create_fragment71, safe_not_equal, {
11366
+ init(this, options, instance73, create_fragment73, safe_not_equal, {
11066
11367
  btn_props: 0,
11067
11368
  content: 1,
11068
11369
  appliance: 2,
@@ -11215,7 +11516,7 @@ function create_default_slot12(ctx) {
11215
11516
  }
11216
11517
  };
11217
11518
  }
11218
- function create_fragment72(ctx) {
11519
+ function create_fragment74(ctx) {
11219
11520
  let button;
11220
11521
  let current;
11221
11522
  const button_spread_levels = [
@@ -11284,7 +11585,7 @@ function create_fragment72(ctx) {
11284
11585
  }
11285
11586
  };
11286
11587
  }
11287
- function instance72($$self, $$props, $$invalidate) {
11588
+ function instance74($$self, $$props, $$invalidate) {
11288
11589
  let { btn_props = {} } = $$props;
11289
11590
  let { content } = $$props;
11290
11591
  let { appliance } = $$props;
@@ -11307,7 +11608,7 @@ function instance72($$self, $$props, $$invalidate) {
11307
11608
  var Laser2 = class extends SvelteComponent {
11308
11609
  constructor(options) {
11309
11610
  super();
11310
- init(this, options, instance72, create_fragment72, safe_not_equal, {
11611
+ init(this, options, instance74, create_fragment74, safe_not_equal, {
11311
11612
  btn_props: 0,
11312
11613
  content: 1,
11313
11614
  appliance: 2,
@@ -11316,7 +11617,7 @@ var Laser2 = class extends SvelteComponent {
11316
11617
  }
11317
11618
  };
11318
11619
  var Laser_default2 = Laser2;
11319
- function create_fragment73(ctx) {
11620
+ function create_fragment75(ctx) {
11320
11621
  let slider;
11321
11622
  let current;
11322
11623
  const slider_spread_levels = [
@@ -11372,7 +11673,7 @@ function create_fragment73(ctx) {
11372
11673
  }
11373
11674
  };
11374
11675
  }
11375
- function instance73($$self, $$props, $$invalidate) {
11676
+ function instance75($$self, $$props, $$invalidate) {
11376
11677
  let memberState;
11377
11678
  let value;
11378
11679
  let props;
@@ -11413,7 +11714,7 @@ function instance73($$self, $$props, $$invalidate) {
11413
11714
  var EraserSize = class extends SvelteComponent {
11414
11715
  constructor(options) {
11415
11716
  super();
11416
- init(this, options, instance73, create_fragment73, safe_not_equal, { app: 3, theme: 4, disabled: 5 });
11717
+ init(this, options, instance75, create_fragment75, safe_not_equal, { app: 3, theme: 4, disabled: 5 });
11417
11718
  }
11418
11719
  };
11419
11720
  var EraserSize_default = EraserSize;
@@ -11421,42 +11722,42 @@ var EraserSize_default = EraserSize;
11421
11722
  // src/components/Toolbar/components/Contents.svelte
11422
11723
  function get_each_context4(ctx, list, i) {
11423
11724
  const child_ctx = ctx.slice();
11424
- child_ctx[58] = list[i];
11725
+ child_ctx[60] = list[i];
11425
11726
  const constants_0 = (
11426
11727
  /*netless_app*/
11427
- child_ctx[58]
11728
+ child_ctx[60]
11428
11729
  );
11429
- child_ctx[59] = constants_0.icon;
11430
- child_ctx[60] = constants_0.label;
11431
- child_ctx[61] = constants_0.kind;
11432
- child_ctx[62] = constants_0.onClick;
11730
+ child_ctx[61] = constants_0.icon;
11731
+ child_ctx[62] = constants_0.label;
11732
+ child_ctx[63] = constants_0.kind;
11733
+ child_ctx[64] = constants_0.onClick;
11433
11734
  const constants_1 = (
11434
11735
  /*$status*/
11435
11736
  child_ctx[26] && /*$status*/
11436
11737
  child_ctx[26][
11437
11738
  /*kind*/
11438
- child_ctx[61]
11739
+ child_ctx[63]
11439
11740
  ]
11440
11741
  );
11441
- child_ctx[63] = constants_1;
11742
+ child_ctx[65] = constants_1;
11442
11743
  const constants_2 = function func() {
11443
11744
  return (
11444
11745
  /*func*/
11445
- ctx[54](
11746
+ ctx[56](
11446
11747
  /*onClick*/
11447
- child_ctx[62]
11748
+ child_ctx[64]
11448
11749
  )
11449
11750
  );
11450
11751
  };
11451
- child_ctx[64] = constants_2;
11752
+ child_ctx[66] = constants_2;
11452
11753
  return child_ctx;
11453
11754
  }
11454
11755
  function get_each_context_1(ctx, list, i) {
11455
11756
  const child_ctx = ctx.slice();
11456
- child_ctx[67] = list[i];
11757
+ child_ctx[69] = list[i];
11457
11758
  return child_ctx;
11458
11759
  }
11459
- function create_if_block_23(ctx) {
11760
+ function create_if_block_25(ctx) {
11460
11761
  let button;
11461
11762
  let current;
11462
11763
  const button_spread_levels = [
@@ -11465,7 +11766,7 @@ function create_if_block_23(ctx) {
11465
11766
  ctx[17]
11466
11767
  ];
11467
11768
  let button_props = {
11468
- $$slots: { default: [create_default_slot_122] },
11769
+ $$slots: { default: [create_default_slot_14] },
11469
11770
  $$scope: { ctx }
11470
11771
  };
11471
11772
  for (let i = 0; i < button_spread_levels.length; i += 1) {
@@ -11493,7 +11794,7 @@ function create_if_block_23(ctx) {
11493
11794
  )]) : {};
11494
11795
  if (dirty[0] & /*theme*/
11495
11796
  2 | dirty[2] & /*$$scope*/
11496
- 256) {
11797
+ 1024) {
11497
11798
  button_changes.$$scope = { dirty, ctx: ctx2 };
11498
11799
  }
11499
11800
  button.$set(button_changes);
@@ -11513,7 +11814,7 @@ function create_if_block_23(ctx) {
11513
11814
  }
11514
11815
  };
11515
11816
  }
11516
- function create_default_slot_122(ctx) {
11817
+ function create_default_slot_14(ctx) {
11517
11818
  let icons_up;
11518
11819
  let current;
11519
11820
  icons_up = new Icons_default.Up({ props: { theme: (
@@ -11551,7 +11852,7 @@ function create_default_slot_122(ctx) {
11551
11852
  }
11552
11853
  };
11553
11854
  }
11554
- function create_if_block_222(ctx) {
11855
+ function create_if_block_24(ctx) {
11555
11856
  let laser;
11556
11857
  let current;
11557
11858
  laser = new Laser_default2({
@@ -11622,7 +11923,7 @@ function create_if_block_222(ctx) {
11622
11923
  }
11623
11924
  };
11624
11925
  }
11625
- function create_if_block_21(ctx) {
11926
+ function create_if_block_23(ctx) {
11626
11927
  let hand_1;
11627
11928
  let current;
11628
11929
  hand_1 = new Hand_default({
@@ -11693,7 +11994,7 @@ function create_if_block_21(ctx) {
11693
11994
  }
11694
11995
  };
11695
11996
  }
11696
- function create_if_block_20(ctx) {
11997
+ function create_if_block_222(ctx) {
11697
11998
  let clear_1;
11698
11999
  let current;
11699
12000
  clear_1 = new Clear_default2({
@@ -11756,7 +12057,7 @@ function create_if_block_20(ctx) {
11756
12057
  }
11757
12058
  };
11758
12059
  }
11759
- function create_if_block_19(ctx) {
12060
+ function create_if_block_21(ctx) {
11760
12061
  let eraser_1;
11761
12062
  let current;
11762
12063
  eraser_1 = new Eraser_default2({
@@ -11849,7 +12150,7 @@ function create_if_block_19(ctx) {
11849
12150
  }
11850
12151
  };
11851
12152
  }
11852
- function create_if_block_18(ctx) {
12153
+ function create_if_block_20(ctx) {
11853
12154
  let shapes2;
11854
12155
  let current;
11855
12156
  shapes2 = new Shapes_default({
@@ -11931,7 +12232,7 @@ function create_if_block_18(ctx) {
11931
12232
  }
11932
12233
  };
11933
12234
  }
11934
- function create_if_block_17(ctx) {
12235
+ function create_if_block_19(ctx) {
11935
12236
  let text_1;
11936
12237
  let current;
11937
12238
  text_1 = new Text_default2({
@@ -12010,7 +12311,7 @@ function create_if_block_17(ctx) {
12010
12311
  }
12011
12312
  };
12012
12313
  }
12013
- function create_if_block_16(ctx) {
12314
+ function create_if_block_18(ctx) {
12014
12315
  let pencil_1;
12015
12316
  let current;
12016
12317
  pencil_1 = new Pencil_default2({
@@ -12097,7 +12398,7 @@ function create_if_block_16(ctx) {
12097
12398
  }
12098
12399
  };
12099
12400
  }
12100
- function create_if_block_15(ctx) {
12401
+ function create_if_block_17(ctx) {
12101
12402
  let selector_1;
12102
12403
  let current;
12103
12404
  selector_1 = new Selector_default2({
@@ -12168,7 +12469,7 @@ function create_if_block_15(ctx) {
12168
12469
  }
12169
12470
  };
12170
12471
  }
12171
- function create_if_block_14(ctx) {
12472
+ function create_if_block_16(ctx) {
12172
12473
  let clicker_1;
12173
12474
  let current;
12174
12475
  clicker_1 = new Clicker_default({
@@ -12245,61 +12546,61 @@ function create_each_block_1(ctx) {
12245
12546
  let if_block_anchor;
12246
12547
  let current;
12247
12548
  const if_block_creators = [
12248
- create_if_block_14,
12249
- create_if_block_15,
12250
12549
  create_if_block_16,
12251
12550
  create_if_block_17,
12252
12551
  create_if_block_18,
12253
12552
  create_if_block_19,
12254
12553
  create_if_block_20,
12255
12554
  create_if_block_21,
12256
- create_if_block_222
12555
+ create_if_block_222,
12556
+ create_if_block_23,
12557
+ create_if_block_24
12257
12558
  ];
12258
12559
  const if_blocks = [];
12259
12560
  function select_block_type(ctx2, dirty) {
12260
12561
  if (
12261
12562
  /*item*/
12262
- ctx2[67] === "clicker"
12563
+ ctx2[69] === "clicker"
12263
12564
  )
12264
12565
  return 0;
12265
12566
  if (
12266
12567
  /*item*/
12267
- ctx2[67] === "selector"
12568
+ ctx2[69] === "selector"
12268
12569
  )
12269
12570
  return 1;
12270
12571
  if (
12271
12572
  /*item*/
12272
- ctx2[67] === "pencil"
12573
+ ctx2[69] === "pencil"
12273
12574
  )
12274
12575
  return 2;
12275
12576
  if (
12276
12577
  /*item*/
12277
- ctx2[67] === "text"
12578
+ ctx2[69] === "text"
12278
12579
  )
12279
12580
  return 3;
12280
12581
  if (
12281
12582
  /*item*/
12282
- ctx2[67] === "shapes"
12583
+ ctx2[69] === "shapes"
12283
12584
  )
12284
12585
  return 4;
12285
12586
  if (
12286
12587
  /*item*/
12287
- ctx2[67] === "eraser"
12588
+ ctx2[69] === "eraser"
12288
12589
  )
12289
12590
  return 5;
12290
12591
  if (
12291
12592
  /*item*/
12292
- ctx2[67] === "clear"
12593
+ ctx2[69] === "clear"
12293
12594
  )
12294
12595
  return 6;
12295
12596
  if (
12296
12597
  /*item*/
12297
- ctx2[67] === "hand"
12598
+ ctx2[69] === "hand"
12298
12599
  )
12299
12600
  return 7;
12300
12601
  if (
12301
12602
  /*item*/
12302
- ctx2[67] === "laserPointer"
12603
+ ctx2[69] === "laserPointer"
12303
12604
  )
12304
12605
  return 8;
12305
12606
  return -1;
@@ -12369,7 +12670,7 @@ function create_each_block_1(ctx) {
12369
12670
  }
12370
12671
  };
12371
12672
  }
12372
- function create_if_block_132(ctx) {
12673
+ function create_if_block_15(ctx) {
12373
12674
  let button;
12374
12675
  let current;
12375
12676
  const button_spread_levels = [
@@ -12392,7 +12693,7 @@ function create_if_block_132(ctx) {
12392
12693
  }
12393
12694
  ];
12394
12695
  let button_props = {
12395
- $$slots: { default: [create_default_slot_11] },
12696
+ $$slots: { default: [create_default_slot_132] },
12396
12697
  $$scope: { ctx }
12397
12698
  };
12398
12699
  for (let i = 0; i < button_spread_levels.length; i += 1) {
@@ -12436,7 +12737,7 @@ function create_if_block_132(ctx) {
12436
12737
  ]) : {};
12437
12738
  if (dirty[0] & /*theme*/
12438
12739
  2 | dirty[2] & /*$$scope*/
12439
- 256) {
12740
+ 1024) {
12440
12741
  button_changes.$$scope = { dirty, ctx: ctx2 };
12441
12742
  }
12442
12743
  button.$set(button_changes);
@@ -12456,7 +12757,7 @@ function create_if_block_132(ctx) {
12456
12757
  }
12457
12758
  };
12458
12759
  }
12459
- function create_default_slot_11(ctx) {
12760
+ function create_default_slot_132(ctx) {
12460
12761
  let icons_apps;
12461
12762
  let current;
12462
12763
  icons_apps = new Icons_default.Apps({ props: { theme: (
@@ -12494,7 +12795,7 @@ function create_default_slot_11(ctx) {
12494
12795
  }
12495
12796
  };
12496
12797
  }
12497
- function create_if_block_122(ctx) {
12798
+ function create_if_block_14(ctx) {
12498
12799
  let button;
12499
12800
  let current;
12500
12801
  button = new Button_default({
@@ -12509,7 +12810,7 @@ function create_if_block_122(ctx) {
12509
12810
  /*disabled*/
12510
12811
  ctx[3]
12511
12812
  ),
12512
- $$slots: { default: [create_default_slot_10] },
12813
+ $$slots: { default: [create_default_slot_122] },
12513
12814
  $$scope: { ctx }
12514
12815
  }
12515
12816
  });
@@ -12538,7 +12839,7 @@ function create_if_block_122(ctx) {
12538
12839
  ctx2[3];
12539
12840
  if (dirty[0] & /*theme*/
12540
12841
  2 | dirty[2] & /*$$scope*/
12541
- 256) {
12842
+ 1024) {
12542
12843
  button_changes.$$scope = { dirty, ctx: ctx2 };
12543
12844
  }
12544
12845
  button.$set(button_changes);
@@ -12558,7 +12859,7 @@ function create_if_block_122(ctx) {
12558
12859
  }
12559
12860
  };
12560
12861
  }
12561
- function create_default_slot_10(ctx) {
12862
+ function create_default_slot_122(ctx) {
12562
12863
  let icons_down;
12563
12864
  let current;
12564
12865
  icons_down = new Icons_default.Down({ props: { theme: (
@@ -12605,9 +12906,12 @@ function create_if_block_52(ctx) {
12605
12906
  let t1;
12606
12907
  let current_block_type_index_2;
12607
12908
  let if_block2;
12608
- let if_block2_anchor;
12909
+ let t2;
12910
+ let current_block_type_index_3;
12911
+ let if_block3;
12912
+ let if_block3_anchor;
12609
12913
  let current;
12610
- const if_block_creators = [create_if_block_10, create_if_block_11];
12914
+ const if_block_creators = [create_if_block_122, create_if_block_132];
12611
12915
  const if_blocks = [];
12612
12916
  function select_block_type_1(ctx2, dirty) {
12613
12917
  if (
@@ -12625,9 +12929,27 @@ function create_if_block_52(ctx) {
12625
12929
  if (~(current_block_type_index = select_block_type_1(ctx))) {
12626
12930
  if_block0 = if_blocks[current_block_type_index] = if_block_creators[current_block_type_index](ctx);
12627
12931
  }
12628
- const if_block_creators_1 = [create_if_block_8, create_if_block_9];
12932
+ const if_block_creators_1 = [create_if_block_10, create_if_block_11];
12629
12933
  const if_blocks_1 = [];
12630
12934
  function select_block_type_2(ctx2, dirty) {
12935
+ if (
12936
+ /*pencilType*/
12937
+ ctx2[20] === "stroke"
12938
+ )
12939
+ return 0;
12940
+ if (
12941
+ /*pencilType*/
12942
+ ctx2[20] !== "stroke"
12943
+ )
12944
+ return 1;
12945
+ return -1;
12946
+ }
12947
+ if (~(current_block_type_index_1 = select_block_type_2(ctx))) {
12948
+ if_block1 = if_blocks_1[current_block_type_index_1] = if_block_creators_1[current_block_type_index_1](ctx);
12949
+ }
12950
+ const if_block_creators_2 = [create_if_block_8, create_if_block_9];
12951
+ const if_blocks_2 = [];
12952
+ function select_block_type_3(ctx2, dirty) {
12631
12953
  if (
12632
12954
  /*showLaserPen*/
12633
12955
  ctx2[21] && /*pencilType*/
@@ -12642,12 +12964,12 @@ function create_if_block_52(ctx) {
12642
12964
  return 1;
12643
12965
  return -1;
12644
12966
  }
12645
- if (~(current_block_type_index_1 = select_block_type_2(ctx))) {
12646
- if_block1 = if_blocks_1[current_block_type_index_1] = if_block_creators_1[current_block_type_index_1](ctx);
12967
+ if (~(current_block_type_index_2 = select_block_type_3(ctx))) {
12968
+ if_block2 = if_blocks_2[current_block_type_index_2] = if_block_creators_2[current_block_type_index_2](ctx);
12647
12969
  }
12648
- const if_block_creators_2 = [create_if_block_6, create_if_block_7];
12649
- const if_blocks_2 = [];
12650
- function select_block_type_3(ctx2, dirty) {
12970
+ const if_block_creators_3 = [create_if_block_62, create_if_block_72];
12971
+ const if_blocks_3 = [];
12972
+ function select_block_type_4(ctx2, dirty) {
12651
12973
  if (
12652
12974
  /*pencilType*/
12653
12975
  ctx2[20] === "mark"
@@ -12660,8 +12982,8 @@ function create_if_block_52(ctx) {
12660
12982
  return 1;
12661
12983
  return -1;
12662
12984
  }
12663
- if (~(current_block_type_index_2 = select_block_type_3(ctx))) {
12664
- if_block2 = if_blocks_2[current_block_type_index_2] = if_block_creators_2[current_block_type_index_2](ctx);
12985
+ if (~(current_block_type_index_3 = select_block_type_4(ctx))) {
12986
+ if_block3 = if_blocks_3[current_block_type_index_3] = if_block_creators_3[current_block_type_index_3](ctx);
12665
12987
  }
12666
12988
  return {
12667
12989
  c() {
@@ -12673,7 +12995,10 @@ function create_if_block_52(ctx) {
12673
12995
  t1 = space();
12674
12996
  if (if_block2)
12675
12997
  if_block2.c();
12676
- if_block2_anchor = empty();
12998
+ t2 = space();
12999
+ if (if_block3)
13000
+ if_block3.c();
13001
+ if_block3_anchor = empty();
12677
13002
  },
12678
13003
  m(target, anchor) {
12679
13004
  if (~current_block_type_index) {
@@ -12687,7 +13012,11 @@ function create_if_block_52(ctx) {
12687
13012
  if (~current_block_type_index_2) {
12688
13013
  if_blocks_2[current_block_type_index_2].m(target, anchor);
12689
13014
  }
12690
- insert(target, if_block2_anchor, anchor);
13015
+ insert(target, t2, anchor);
13016
+ if (~current_block_type_index_3) {
13017
+ if_blocks_3[current_block_type_index_3].m(target, anchor);
13018
+ }
13019
+ insert(target, if_block3_anchor, anchor);
12691
13020
  current = true;
12692
13021
  },
12693
13022
  p(ctx2, dirty) {
@@ -12770,42 +13099,274 @@ function create_if_block_52(ctx) {
12770
13099
  if_block2.p(ctx2, dirty);
12771
13100
  }
12772
13101
  transition_in(if_block2, 1);
12773
- if_block2.m(if_block2_anchor.parentNode, if_block2_anchor);
13102
+ if_block2.m(t2.parentNode, t2);
12774
13103
  } else {
12775
13104
  if_block2 = null;
12776
13105
  }
12777
13106
  }
13107
+ let previous_block_index_3 = current_block_type_index_3;
13108
+ current_block_type_index_3 = select_block_type_4(ctx2);
13109
+ if (current_block_type_index_3 === previous_block_index_3) {
13110
+ if (~current_block_type_index_3) {
13111
+ if_blocks_3[current_block_type_index_3].p(ctx2, dirty);
13112
+ }
13113
+ } else {
13114
+ if (if_block3) {
13115
+ group_outros();
13116
+ transition_out(if_blocks_3[previous_block_index_3], 1, 1, () => {
13117
+ if_blocks_3[previous_block_index_3] = null;
13118
+ });
13119
+ check_outros();
13120
+ }
13121
+ if (~current_block_type_index_3) {
13122
+ if_block3 = if_blocks_3[current_block_type_index_3];
13123
+ if (!if_block3) {
13124
+ if_block3 = if_blocks_3[current_block_type_index_3] = if_block_creators_3[current_block_type_index_3](ctx2);
13125
+ if_block3.c();
13126
+ } else {
13127
+ if_block3.p(ctx2, dirty);
13128
+ }
13129
+ transition_in(if_block3, 1);
13130
+ if_block3.m(if_block3_anchor.parentNode, if_block3_anchor);
13131
+ } else {
13132
+ if_block3 = null;
13133
+ }
13134
+ }
13135
+ },
13136
+ i(local) {
13137
+ if (current)
13138
+ return;
13139
+ transition_in(if_block0);
13140
+ transition_in(if_block1);
13141
+ transition_in(if_block2);
13142
+ transition_in(if_block3);
13143
+ current = true;
13144
+ },
13145
+ o(local) {
13146
+ transition_out(if_block0);
13147
+ transition_out(if_block1);
13148
+ transition_out(if_block2);
13149
+ transition_out(if_block3);
13150
+ current = false;
13151
+ },
13152
+ d(detaching) {
13153
+ if (~current_block_type_index) {
13154
+ if_blocks[current_block_type_index].d(detaching);
13155
+ }
13156
+ if (detaching)
13157
+ detach(t0);
13158
+ if (~current_block_type_index_1) {
13159
+ if_blocks_1[current_block_type_index_1].d(detaching);
13160
+ }
13161
+ if (detaching)
13162
+ detach(t1);
13163
+ if (~current_block_type_index_2) {
13164
+ if_blocks_2[current_block_type_index_2].d(detaching);
13165
+ }
13166
+ if (detaching)
13167
+ detach(t2);
13168
+ if (~current_block_type_index_3) {
13169
+ if_blocks_3[current_block_type_index_3].d(detaching);
13170
+ }
13171
+ if (detaching)
13172
+ detach(if_block3_anchor);
13173
+ }
13174
+ };
13175
+ }
13176
+ function create_if_block_132(ctx) {
13177
+ let button;
13178
+ let current;
13179
+ const button_spread_levels = [
13180
+ { class: name5 + "-panel-switch-btn" },
13181
+ /*btn_props*/
13182
+ ctx[17]
13183
+ ];
13184
+ let button_props = {
13185
+ $$slots: { default: [create_default_slot_11] },
13186
+ $$scope: { ctx }
13187
+ };
13188
+ for (let i = 0; i < button_spread_levels.length; i += 1) {
13189
+ button_props = assign(button_props, button_spread_levels[i]);
13190
+ }
13191
+ button = new Button_default({ props: button_props });
13192
+ return {
13193
+ c() {
13194
+ create_component(button.$$.fragment);
13195
+ },
13196
+ m(target, anchor) {
13197
+ mount_component(button, target, anchor);
13198
+ current = true;
13199
+ },
13200
+ p(ctx2, dirty) {
13201
+ const button_changes = dirty[0] & /*btn_props*/
13202
+ 131072 ? get_spread_update(button_spread_levels, [
13203
+ dirty & /*name*/
13204
+ 0 && { class: name5 + "-panel-switch-btn" },
13205
+ dirty[0] & /*btn_props*/
13206
+ 131072 && get_spread_object(
13207
+ /*btn_props*/
13208
+ ctx2[17]
13209
+ )
13210
+ ]) : {};
13211
+ if (dirty[0] & /*theme*/
13212
+ 2 | dirty[2] & /*$$scope*/
13213
+ 1024) {
13214
+ button_changes.$$scope = { dirty, ctx: ctx2 };
13215
+ }
13216
+ button.$set(button_changes);
13217
+ },
13218
+ i(local) {
13219
+ if (current)
13220
+ return;
13221
+ transition_in(button.$$.fragment, local);
13222
+ current = true;
13223
+ },
13224
+ o(local) {
13225
+ transition_out(button.$$.fragment, local);
13226
+ current = false;
13227
+ },
13228
+ d(detaching) {
13229
+ destroy_component(button, detaching);
13230
+ }
13231
+ };
13232
+ }
13233
+ function create_if_block_122(ctx) {
13234
+ let button;
13235
+ let current;
13236
+ const button_spread_levels = [
13237
+ { class: name5 + "-panel-switch-btn" },
13238
+ /*btn_props*/
13239
+ ctx[17]
13240
+ ];
13241
+ let button_props = {
13242
+ $$slots: { default: [create_default_slot_10] },
13243
+ $$scope: { ctx }
13244
+ };
13245
+ for (let i = 0; i < button_spread_levels.length; i += 1) {
13246
+ button_props = assign(button_props, button_spread_levels[i]);
13247
+ }
13248
+ button = new Button_default({ props: button_props });
13249
+ button.$on(
13250
+ "click",
13251
+ /*useNormalPencil*/
13252
+ ctx[38]
13253
+ );
13254
+ return {
13255
+ c() {
13256
+ create_component(button.$$.fragment);
13257
+ },
13258
+ m(target, anchor) {
13259
+ mount_component(button, target, anchor);
13260
+ current = true;
13261
+ },
13262
+ p(ctx2, dirty) {
13263
+ const button_changes = dirty[0] & /*btn_props*/
13264
+ 131072 ? get_spread_update(button_spread_levels, [
13265
+ dirty & /*name*/
13266
+ 0 && { class: name5 + "-panel-switch-btn" },
13267
+ dirty[0] & /*btn_props*/
13268
+ 131072 && get_spread_object(
13269
+ /*btn_props*/
13270
+ ctx2[17]
13271
+ )
13272
+ ]) : {};
13273
+ if (dirty[0] & /*theme*/
13274
+ 2 | dirty[2] & /*$$scope*/
13275
+ 1024) {
13276
+ button_changes.$$scope = { dirty, ctx: ctx2 };
13277
+ }
13278
+ button.$set(button_changes);
13279
+ },
13280
+ i(local) {
13281
+ if (current)
13282
+ return;
13283
+ transition_in(button.$$.fragment, local);
13284
+ current = true;
13285
+ },
13286
+ o(local) {
13287
+ transition_out(button.$$.fragment, local);
13288
+ current = false;
13289
+ },
13290
+ d(detaching) {
13291
+ destroy_component(button, detaching);
13292
+ }
13293
+ };
13294
+ }
13295
+ function create_default_slot_11(ctx) {
13296
+ let icons_pencilfilled;
13297
+ let current;
13298
+ icons_pencilfilled = new Icons_default.PencilFilled({
13299
+ props: { theme: (
13300
+ /*theme*/
13301
+ ctx[1]
13302
+ ), active: true }
13303
+ });
13304
+ return {
13305
+ c() {
13306
+ create_component(icons_pencilfilled.$$.fragment);
13307
+ },
13308
+ m(target, anchor) {
13309
+ mount_component(icons_pencilfilled, target, anchor);
13310
+ current = true;
13311
+ },
13312
+ p(ctx2, dirty) {
13313
+ const icons_pencilfilled_changes = {};
13314
+ if (dirty[0] & /*theme*/
13315
+ 2)
13316
+ icons_pencilfilled_changes.theme = /*theme*/
13317
+ ctx2[1];
13318
+ icons_pencilfilled.$set(icons_pencilfilled_changes);
13319
+ },
13320
+ i(local) {
13321
+ if (current)
13322
+ return;
13323
+ transition_in(icons_pencilfilled.$$.fragment, local);
13324
+ current = true;
13325
+ },
13326
+ o(local) {
13327
+ transition_out(icons_pencilfilled.$$.fragment, local);
13328
+ current = false;
13329
+ },
13330
+ d(detaching) {
13331
+ destroy_component(icons_pencilfilled, detaching);
13332
+ }
13333
+ };
13334
+ }
13335
+ function create_default_slot_10(ctx) {
13336
+ let icons_pencil;
13337
+ let current;
13338
+ icons_pencil = new Icons_default.Pencil({ props: { theme: (
13339
+ /*theme*/
13340
+ ctx[1]
13341
+ ) } });
13342
+ return {
13343
+ c() {
13344
+ create_component(icons_pencil.$$.fragment);
13345
+ },
13346
+ m(target, anchor) {
13347
+ mount_component(icons_pencil, target, anchor);
13348
+ current = true;
13349
+ },
13350
+ p(ctx2, dirty) {
13351
+ const icons_pencil_changes = {};
13352
+ if (dirty[0] & /*theme*/
13353
+ 2)
13354
+ icons_pencil_changes.theme = /*theme*/
13355
+ ctx2[1];
13356
+ icons_pencil.$set(icons_pencil_changes);
12778
13357
  },
12779
13358
  i(local) {
12780
13359
  if (current)
12781
13360
  return;
12782
- transition_in(if_block0);
12783
- transition_in(if_block1);
12784
- transition_in(if_block2);
13361
+ transition_in(icons_pencil.$$.fragment, local);
12785
13362
  current = true;
12786
13363
  },
12787
13364
  o(local) {
12788
- transition_out(if_block0);
12789
- transition_out(if_block1);
12790
- transition_out(if_block2);
13365
+ transition_out(icons_pencil.$$.fragment, local);
12791
13366
  current = false;
12792
13367
  },
12793
13368
  d(detaching) {
12794
- if (~current_block_type_index) {
12795
- if_blocks[current_block_type_index].d(detaching);
12796
- }
12797
- if (detaching)
12798
- detach(t0);
12799
- if (~current_block_type_index_1) {
12800
- if_blocks_1[current_block_type_index_1].d(detaching);
12801
- }
12802
- if (detaching)
12803
- detach(t1);
12804
- if (~current_block_type_index_2) {
12805
- if_blocks_2[current_block_type_index_2].d(detaching);
12806
- }
12807
- if (detaching)
12808
- detach(if_block2_anchor);
13369
+ destroy_component(icons_pencil, detaching);
12809
13370
  }
12810
13371
  };
12811
13372
  }
@@ -12825,6 +13386,11 @@ function create_if_block_11(ctx) {
12825
13386
  button_props = assign(button_props, button_spread_levels[i]);
12826
13387
  }
12827
13388
  button = new Button_default({ props: button_props });
13389
+ button.$on(
13390
+ "click",
13391
+ /*useStrokePencil*/
13392
+ ctx[39]
13393
+ );
12828
13394
  return {
12829
13395
  c() {
12830
13396
  create_component(button.$$.fragment);
@@ -12846,7 +13412,7 @@ function create_if_block_11(ctx) {
12846
13412
  ]) : {};
12847
13413
  if (dirty[0] & /*theme*/
12848
13414
  2 | dirty[2] & /*$$scope*/
12849
- 256) {
13415
+ 1024) {
12850
13416
  button_changes.$$scope = { dirty, ctx: ctx2 };
12851
13417
  }
12852
13418
  button.$set(button_changes);
@@ -12882,11 +13448,6 @@ function create_if_block_10(ctx) {
12882
13448
  button_props = assign(button_props, button_spread_levels[i]);
12883
13449
  }
12884
13450
  button = new Button_default({ props: button_props });
12885
- button.$on(
12886
- "click",
12887
- /*usePencil*/
12888
- ctx[38]
12889
- );
12890
13451
  return {
12891
13452
  c() {
12892
13453
  create_component(button.$$.fragment);
@@ -12908,7 +13469,7 @@ function create_if_block_10(ctx) {
12908
13469
  ]) : {};
12909
13470
  if (dirty[0] & /*theme*/
12910
13471
  2 | dirty[2] & /*$$scope*/
12911
- 256) {
13472
+ 1024) {
12912
13473
  button_changes.$$scope = { dirty, ctx: ctx2 };
12913
13474
  }
12914
13475
  button.$set(button_changes);
@@ -12929,80 +13490,80 @@ function create_if_block_10(ctx) {
12929
13490
  };
12930
13491
  }
12931
13492
  function create_default_slot_9(ctx) {
12932
- let icons_pencilfilled;
13493
+ let icons_strokepencil;
12933
13494
  let current;
12934
- icons_pencilfilled = new Icons_default.PencilFilled({
12935
- props: { theme: (
12936
- /*theme*/
12937
- ctx[1]
12938
- ), active: true }
12939
- });
13495
+ icons_strokepencil = new Icons_default.StrokePencil({ props: { theme: (
13496
+ /*theme*/
13497
+ ctx[1]
13498
+ ) } });
12940
13499
  return {
12941
13500
  c() {
12942
- create_component(icons_pencilfilled.$$.fragment);
13501
+ create_component(icons_strokepencil.$$.fragment);
12943
13502
  },
12944
13503
  m(target, anchor) {
12945
- mount_component(icons_pencilfilled, target, anchor);
13504
+ mount_component(icons_strokepencil, target, anchor);
12946
13505
  current = true;
12947
13506
  },
12948
13507
  p(ctx2, dirty) {
12949
- const icons_pencilfilled_changes = {};
13508
+ const icons_strokepencil_changes = {};
12950
13509
  if (dirty[0] & /*theme*/
12951
13510
  2)
12952
- icons_pencilfilled_changes.theme = /*theme*/
13511
+ icons_strokepencil_changes.theme = /*theme*/
12953
13512
  ctx2[1];
12954
- icons_pencilfilled.$set(icons_pencilfilled_changes);
13513
+ icons_strokepencil.$set(icons_strokepencil_changes);
12955
13514
  },
12956
13515
  i(local) {
12957
13516
  if (current)
12958
13517
  return;
12959
- transition_in(icons_pencilfilled.$$.fragment, local);
13518
+ transition_in(icons_strokepencil.$$.fragment, local);
12960
13519
  current = true;
12961
13520
  },
12962
13521
  o(local) {
12963
- transition_out(icons_pencilfilled.$$.fragment, local);
13522
+ transition_out(icons_strokepencil.$$.fragment, local);
12964
13523
  current = false;
12965
13524
  },
12966
13525
  d(detaching) {
12967
- destroy_component(icons_pencilfilled, detaching);
13526
+ destroy_component(icons_strokepencil, detaching);
12968
13527
  }
12969
13528
  };
12970
13529
  }
12971
13530
  function create_default_slot_8(ctx) {
12972
- let icons_pencil;
13531
+ let icons_strokepencilfilled;
12973
13532
  let current;
12974
- icons_pencil = new Icons_default.Pencil({ props: { theme: (
12975
- /*theme*/
12976
- ctx[1]
12977
- ) } });
13533
+ icons_strokepencilfilled = new Icons_default.StrokePencilFilled({
13534
+ props: { theme: (
13535
+ /*theme*/
13536
+ ctx[1]
13537
+ ), active: true }
13538
+ });
12978
13539
  return {
12979
13540
  c() {
12980
- create_component(icons_pencil.$$.fragment);
13541
+ create_component(icons_strokepencilfilled.$$.fragment);
12981
13542
  },
12982
13543
  m(target, anchor) {
12983
- mount_component(icons_pencil, target, anchor);
13544
+ mount_component(icons_strokepencilfilled, target, anchor);
12984
13545
  current = true;
12985
13546
  },
12986
13547
  p(ctx2, dirty) {
12987
- const icons_pencil_changes = {};
13548
+ const icons_strokepencilfilled_changes = {};
12988
13549
  if (dirty[0] & /*theme*/
12989
13550
  2)
12990
- icons_pencil_changes.theme = /*theme*/
13551
+ icons_strokepencilfilled_changes.theme = /*theme*/
12991
13552
  ctx2[1];
12992
- icons_pencil.$set(icons_pencil_changes);
13553
+ icons_strokepencilfilled.$set(icons_strokepencilfilled_changes);
12993
13554
  },
12994
13555
  i(local) {
12995
13556
  if (current)
12996
13557
  return;
12997
- transition_in(icons_pencil.$$.fragment, local);
13558
+ transition_in(icons_strokepencilfilled.$$.fragment, local);
12998
13559
  current = true;
12999
13560
  },
13000
13561
  o(local) {
13001
- transition_out(icons_pencil.$$.fragment, local);
13562
+ transition_out(icons_strokepencilfilled.$$.fragment, local);
13002
13563
  current = false;
13003
13564
  },
13004
13565
  d(detaching) {
13005
- destroy_component(icons_pencil, detaching);
13566
+ destroy_component(icons_strokepencilfilled, detaching);
13006
13567
  }
13007
13568
  };
13008
13569
  }
@@ -13025,7 +13586,7 @@ function create_if_block_9(ctx) {
13025
13586
  button.$on(
13026
13587
  "click",
13027
13588
  /*useLaserPen*/
13028
- ctx[39]
13589
+ ctx[40]
13029
13590
  );
13030
13591
  return {
13031
13592
  c() {
@@ -13048,7 +13609,7 @@ function create_if_block_9(ctx) {
13048
13609
  ]) : {};
13049
13610
  if (dirty[0] & /*theme*/
13050
13611
  2 | dirty[2] & /*$$scope*/
13051
- 256) {
13612
+ 1024) {
13052
13613
  button_changes.$$scope = { dirty, ctx: ctx2 };
13053
13614
  }
13054
13615
  button.$set(button_changes);
@@ -13105,7 +13666,7 @@ function create_if_block_8(ctx) {
13105
13666
  ]) : {};
13106
13667
  if (dirty[0] & /*theme*/
13107
13668
  2 | dirty[2] & /*$$scope*/
13108
- 256) {
13669
+ 1024) {
13109
13670
  button_changes.$$scope = { dirty, ctx: ctx2 };
13110
13671
  }
13111
13672
  button.$set(button_changes);
@@ -13203,7 +13764,7 @@ function create_default_slot_6(ctx) {
13203
13764
  }
13204
13765
  };
13205
13766
  }
13206
- function create_if_block_7(ctx) {
13767
+ function create_if_block_72(ctx) {
13207
13768
  let button;
13208
13769
  let current;
13209
13770
  const button_spread_levels = [
@@ -13222,7 +13783,7 @@ function create_if_block_7(ctx) {
13222
13783
  button.$on(
13223
13784
  "click",
13224
13785
  /*useMarkPen*/
13225
- ctx[40]
13786
+ ctx[41]
13226
13787
  );
13227
13788
  return {
13228
13789
  c() {
@@ -13245,7 +13806,7 @@ function create_if_block_7(ctx) {
13245
13806
  ]) : {};
13246
13807
  if (dirty[0] & /*theme*/
13247
13808
  2 | dirty[2] & /*$$scope*/
13248
- 256) {
13809
+ 1024) {
13249
13810
  button_changes.$$scope = { dirty, ctx: ctx2 };
13250
13811
  }
13251
13812
  button.$set(button_changes);
@@ -13265,7 +13826,7 @@ function create_if_block_7(ctx) {
13265
13826
  }
13266
13827
  };
13267
13828
  }
13268
- function create_if_block_6(ctx) {
13829
+ function create_if_block_62(ctx) {
13269
13830
  let button;
13270
13831
  let current;
13271
13832
  const button_spread_levels = [
@@ -13302,7 +13863,7 @@ function create_if_block_6(ctx) {
13302
13863
  ]) : {};
13303
13864
  if (dirty[0] & /*theme*/
13304
13865
  2 | dirty[2] & /*$$scope*/
13305
- 256) {
13866
+ 1024) {
13306
13867
  button_changes.$$scope = { dirty, ctx: ctx2 };
13307
13868
  }
13308
13869
  button.$set(button_changes);
@@ -13410,7 +13971,7 @@ function create_if_block14(ctx) {
13410
13971
  let current;
13411
13972
  const if_block_creators = [create_if_block_33, create_if_block_42];
13412
13973
  const if_blocks = [];
13413
- function select_block_type_4(ctx2, dirty) {
13974
+ function select_block_type_5(ctx2, dirty) {
13414
13975
  if (
13415
13976
  /*eraserType*/
13416
13977
  ctx2[18] !== "eraser"
@@ -13423,12 +13984,12 @@ function create_if_block14(ctx) {
13423
13984
  return 1;
13424
13985
  return -1;
13425
13986
  }
13426
- if (~(current_block_type_index = select_block_type_4(ctx))) {
13987
+ if (~(current_block_type_index = select_block_type_5(ctx))) {
13427
13988
  if_block0 = if_blocks[current_block_type_index] = if_block_creators[current_block_type_index](ctx);
13428
13989
  }
13429
- const if_block_creators_1 = [create_if_block_110, create_if_block_24];
13990
+ const if_block_creators_1 = [create_if_block_110, create_if_block_26];
13430
13991
  const if_blocks_1 = [];
13431
- function select_block_type_5(ctx2, dirty) {
13992
+ function select_block_type_6(ctx2, dirty) {
13432
13993
  if (
13433
13994
  /*eraserType*/
13434
13995
  ctx2[18] === "pencilEraser"
@@ -13441,7 +14002,7 @@ function create_if_block14(ctx) {
13441
14002
  return 1;
13442
14003
  return -1;
13443
14004
  }
13444
- if (~(current_block_type_index_1 = select_block_type_5(ctx))) {
14005
+ if (~(current_block_type_index_1 = select_block_type_6(ctx))) {
13445
14006
  if_block1 = if_blocks_1[current_block_type_index_1] = if_block_creators_1[current_block_type_index_1](ctx);
13446
14007
  }
13447
14008
  return {
@@ -13466,7 +14027,7 @@ function create_if_block14(ctx) {
13466
14027
  },
13467
14028
  p(ctx2, dirty) {
13468
14029
  let previous_block_index = current_block_type_index;
13469
- current_block_type_index = select_block_type_4(ctx2);
14030
+ current_block_type_index = select_block_type_5(ctx2);
13470
14031
  if (current_block_type_index === previous_block_index) {
13471
14032
  if (~current_block_type_index) {
13472
14033
  if_blocks[current_block_type_index].p(ctx2, dirty);
@@ -13494,7 +14055,7 @@ function create_if_block14(ctx) {
13494
14055
  }
13495
14056
  }
13496
14057
  let previous_block_index_1 = current_block_type_index_1;
13497
- current_block_type_index_1 = select_block_type_5(ctx2);
14058
+ current_block_type_index_1 = select_block_type_6(ctx2);
13498
14059
  if (current_block_type_index_1 === previous_block_index_1) {
13499
14060
  if (~current_block_type_index_1) {
13500
14061
  if_blocks_1[current_block_type_index_1].p(ctx2, dirty);
@@ -13585,7 +14146,7 @@ function create_if_block_42(ctx) {
13585
14146
  ]) : {};
13586
14147
  if (dirty[0] & /*theme*/
13587
14148
  2 | dirty[2] & /*$$scope*/
13588
- 256) {
14149
+ 1024) {
13589
14150
  button_changes.$$scope = { dirty, ctx: ctx2 };
13590
14151
  }
13591
14152
  button.$set(button_changes);
@@ -13624,7 +14185,7 @@ function create_if_block_33(ctx) {
13624
14185
  button.$on(
13625
14186
  "click",
13626
14187
  /*useEraser*/
13627
- ctx[41]
14188
+ ctx[42]
13628
14189
  );
13629
14190
  return {
13630
14191
  c() {
@@ -13647,7 +14208,7 @@ function create_if_block_33(ctx) {
13647
14208
  ]) : {};
13648
14209
  if (dirty[0] & /*theme*/
13649
14210
  2 | dirty[2] & /*$$scope*/
13650
- 256) {
14211
+ 1024) {
13651
14212
  button_changes.$$scope = { dirty, ctx: ctx2 };
13652
14213
  }
13653
14214
  button.$set(button_changes);
@@ -13745,7 +14306,7 @@ function create_default_slot_24(ctx) {
13745
14306
  }
13746
14307
  };
13747
14308
  }
13748
- function create_if_block_24(ctx) {
14309
+ function create_if_block_26(ctx) {
13749
14310
  let button;
13750
14311
  let current;
13751
14312
  const button_spread_levels = [
@@ -13754,7 +14315,7 @@ function create_if_block_24(ctx) {
13754
14315
  ctx[17]
13755
14316
  ];
13756
14317
  let button_props = {
13757
- $$slots: { default: [create_default_slot_14] },
14318
+ $$slots: { default: [create_default_slot_15] },
13758
14319
  $$scope: { ctx }
13759
14320
  };
13760
14321
  for (let i = 0; i < button_spread_levels.length; i += 1) {
@@ -13764,7 +14325,7 @@ function create_if_block_24(ctx) {
13764
14325
  button.$on(
13765
14326
  "click",
13766
14327
  /*useEraserBitmap*/
13767
- ctx[42]
14328
+ ctx[43]
13768
14329
  );
13769
14330
  return {
13770
14331
  c() {
@@ -13787,7 +14348,7 @@ function create_if_block_24(ctx) {
13787
14348
  ]) : {};
13788
14349
  if (dirty[0] & /*theme*/
13789
14350
  2 | dirty[2] & /*$$scope*/
13790
- 256) {
14351
+ 1024) {
13791
14352
  button_changes.$$scope = { dirty, ctx: ctx2 };
13792
14353
  }
13793
14354
  button.$set(button_changes);
@@ -13844,7 +14405,7 @@ function create_if_block_110(ctx) {
13844
14405
  ]) : {};
13845
14406
  if (dirty[0] & /*theme*/
13846
14407
  2 | dirty[2] & /*$$scope*/
13847
- 256) {
14408
+ 1024) {
13848
14409
  button_changes.$$scope = { dirty, ctx: ctx2 };
13849
14410
  }
13850
14411
  button.$set(button_changes);
@@ -13864,7 +14425,7 @@ function create_if_block_110(ctx) {
13864
14425
  }
13865
14426
  };
13866
14427
  }
13867
- function create_default_slot_14(ctx) {
14428
+ function create_default_slot_15(ctx) {
13868
14429
  let icons_eraserbitmapfilled;
13869
14430
  let current;
13870
14431
  icons_eraserbitmapfilled = new Icons_default.EraserBitmapFilled({ props: { theme: (
@@ -13953,7 +14514,7 @@ function create_each_block4(ctx) {
13953
14514
  let span;
13954
14515
  let t1_value = (
13955
14516
  /*label*/
13956
- ctx[60] + ""
14517
+ ctx[62] + ""
13957
14518
  );
13958
14519
  let t1;
13959
14520
  let span_class_value;
@@ -13975,40 +14536,40 @@ function create_each_block4(ctx) {
13975
14536
  attr(img, "class", img_class_value = name5 + "-app-btn-icon " + /*theme*/
13976
14537
  ctx[1]);
13977
14538
  if (!src_url_equal(img.src, img_src_value = /*icon*/
13978
- ctx[59]))
14539
+ ctx[61]))
13979
14540
  attr(img, "src", img_src_value);
13980
14541
  attr(img, "alt", img_alt_value = /*kind*/
13981
- ctx[61]);
14542
+ ctx[63]);
13982
14543
  attr(img, "title", img_title_value = /*label*/
13983
- ctx[60]);
14544
+ ctx[62]);
13984
14545
  attr(span, "class", span_class_value = name5 + "-app-btn-text " + /*theme*/
13985
14546
  ctx[1]);
13986
14547
  attr(button, "class", button_class_value = name5 + "-app-btn " + /*kind*/
13987
- ctx[61] + " " + /*theme*/
14548
+ ctx[63] + " " + /*theme*/
13988
14549
  ctx[1]);
13989
14550
  attr(button, "title", button_title_value = /*label*/
13990
- ctx[60] + /*state*/
13991
- (ctx[63] && /*state*/
13992
- ctx[63].reason ? ": " + /*state*/
13993
- ctx[63].reason : ""));
14551
+ ctx[62] + /*state*/
14552
+ (ctx[65] && /*state*/
14553
+ ctx[65].reason ? ": " + /*state*/
14554
+ ctx[65].reason : ""));
13994
14555
  attr(button, "data-app-kind", button_data_app_kind_value = /*netless_app*/
13995
- ctx[58].kind);
14556
+ ctx[60].kind);
13996
14557
  button.disabled = button_disabled_value = /*state*/
13997
- ctx[63] && /*state*/
13998
- ctx[63].status !== "idle";
14558
+ ctx[65] && /*state*/
14559
+ ctx[65].status !== "idle";
13999
14560
  toggle_class(
14000
14561
  button,
14001
14562
  "is-loading",
14002
14563
  /*state*/
14003
- ctx[63] && /*state*/
14004
- ctx[63].status === "loading"
14564
+ ctx[65] && /*state*/
14565
+ ctx[65].status === "loading"
14005
14566
  );
14006
14567
  toggle_class(
14007
14568
  button,
14008
14569
  "is-failed",
14009
14570
  /*state*/
14010
- ctx[63] && /*state*/
14011
- ctx[63].status === "failed"
14571
+ ctx[65] && /*state*/
14572
+ ctx[65].status === "failed"
14012
14573
  );
14013
14574
  },
14014
14575
  m(target, anchor) {
@@ -14022,9 +14583,9 @@ function create_each_block4(ctx) {
14022
14583
  dispose = listen(button, "click", function() {
14023
14584
  if (is_function(
14024
14585
  /*on_click*/
14025
- ctx[64]
14586
+ ctx[66]
14026
14587
  ))
14027
- ctx[64].apply(this, arguments);
14588
+ ctx[66].apply(this, arguments);
14028
14589
  });
14029
14590
  mounted = true;
14030
14591
  }
@@ -14038,22 +14599,22 @@ function create_each_block4(ctx) {
14038
14599
  }
14039
14600
  if (dirty[0] & /*$apps*/
14040
14601
  33554432 && !src_url_equal(img.src, img_src_value = /*icon*/
14041
- ctx[59])) {
14602
+ ctx[61])) {
14042
14603
  attr(img, "src", img_src_value);
14043
14604
  }
14044
14605
  if (dirty[0] & /*$apps*/
14045
14606
  33554432 && img_alt_value !== (img_alt_value = /*kind*/
14046
- ctx[61])) {
14607
+ ctx[63])) {
14047
14608
  attr(img, "alt", img_alt_value);
14048
14609
  }
14049
14610
  if (dirty[0] & /*$apps*/
14050
14611
  33554432 && img_title_value !== (img_title_value = /*label*/
14051
- ctx[60])) {
14612
+ ctx[62])) {
14052
14613
  attr(img, "title", img_title_value);
14053
14614
  }
14054
14615
  if (dirty[0] & /*$apps*/
14055
14616
  33554432 && t1_value !== (t1_value = /*label*/
14056
- ctx[60] + ""))
14617
+ ctx[62] + ""))
14057
14618
  set_data(t1, t1_value);
14058
14619
  if (dirty[0] & /*theme*/
14059
14620
  2 && span_class_value !== (span_class_value = name5 + "-app-btn-text " + /*theme*/
@@ -14062,27 +14623,27 @@ function create_each_block4(ctx) {
14062
14623
  }
14063
14624
  if (dirty[0] & /*$apps, theme*/
14064
14625
  33554434 && button_class_value !== (button_class_value = name5 + "-app-btn " + /*kind*/
14065
- ctx[61] + " " + /*theme*/
14626
+ ctx[63] + " " + /*theme*/
14066
14627
  ctx[1])) {
14067
14628
  attr(button, "class", button_class_value);
14068
14629
  }
14069
14630
  if (dirty[0] & /*$apps, $status*/
14070
14631
  100663296 && button_title_value !== (button_title_value = /*label*/
14071
- ctx[60] + /*state*/
14072
- (ctx[63] && /*state*/
14073
- ctx[63].reason ? ": " + /*state*/
14074
- ctx[63].reason : ""))) {
14632
+ ctx[62] + /*state*/
14633
+ (ctx[65] && /*state*/
14634
+ ctx[65].reason ? ": " + /*state*/
14635
+ ctx[65].reason : ""))) {
14075
14636
  attr(button, "title", button_title_value);
14076
14637
  }
14077
14638
  if (dirty[0] & /*$apps*/
14078
14639
  33554432 && button_data_app_kind_value !== (button_data_app_kind_value = /*netless_app*/
14079
- ctx[58].kind)) {
14640
+ ctx[60].kind)) {
14080
14641
  attr(button, "data-app-kind", button_data_app_kind_value);
14081
14642
  }
14082
14643
  if (dirty[0] & /*$status, $apps*/
14083
14644
  100663296 && button_disabled_value !== (button_disabled_value = /*state*/
14084
- ctx[63] && /*state*/
14085
- ctx[63].status !== "idle")) {
14645
+ ctx[65] && /*state*/
14646
+ ctx[65].status !== "idle")) {
14086
14647
  button.disabled = button_disabled_value;
14087
14648
  }
14088
14649
  if (dirty[0] & /*$apps, theme, $status, $apps*/
@@ -14091,8 +14652,8 @@ function create_each_block4(ctx) {
14091
14652
  button,
14092
14653
  "is-loading",
14093
14654
  /*state*/
14094
- ctx[63] && /*state*/
14095
- ctx[63].status === "loading"
14655
+ ctx[65] && /*state*/
14656
+ ctx[65].status === "loading"
14096
14657
  );
14097
14658
  }
14098
14659
  if (dirty[0] & /*$apps, theme, $status, $apps*/
@@ -14101,8 +14662,8 @@ function create_each_block4(ctx) {
14101
14662
  button,
14102
14663
  "is-failed",
14103
14664
  /*state*/
14104
- ctx[63] && /*state*/
14105
- ctx[63].status === "failed"
14665
+ ctx[65] && /*state*/
14666
+ ctx[65].status === "failed"
14106
14667
  );
14107
14668
  }
14108
14669
  },
@@ -14114,7 +14675,7 @@ function create_each_block4(ctx) {
14114
14675
  }
14115
14676
  };
14116
14677
  }
14117
- function create_fragment74(ctx) {
14678
+ function create_fragment76(ctx) {
14118
14679
  var _a, _b;
14119
14680
  let t0;
14120
14681
  let div0;
@@ -14122,42 +14683,44 @@ function create_fragment74(ctx) {
14122
14683
  let scrollHeight_action;
14123
14684
  let t2;
14124
14685
  let t3;
14125
- let div11;
14126
- let div3;
14686
+ let div12;
14687
+ let div4;
14127
14688
  let div1;
14128
14689
  let t4;
14129
- let strokewidth0;
14130
- let t5;
14131
14690
  let div2;
14691
+ let t5;
14692
+ let strokewidth0;
14132
14693
  let t6;
14133
- let strokecolor0;
14694
+ let div3;
14134
14695
  let t7;
14135
- let div4;
14136
- let textcolor;
14696
+ let strokecolor0;
14137
14697
  let t8;
14138
- let div7;
14139
- let selectshapes;
14140
- let t9;
14141
14698
  let div5;
14699
+ let textcolor;
14700
+ let t9;
14701
+ let div8;
14702
+ let selectshapes;
14142
14703
  let t10;
14143
- let strokewidth1;
14144
- let t11;
14145
14704
  let div6;
14705
+ let t11;
14706
+ let strokewidth1;
14146
14707
  let t12;
14147
- let strokecolor1;
14708
+ let div7;
14148
14709
  let t13;
14149
- let div9;
14150
- let div8;
14710
+ let strokecolor1;
14151
14711
  let t14;
14152
- let erasersize;
14153
- let t15;
14154
14712
  let div10;
14713
+ let div9;
14714
+ let t15;
14715
+ let erasersize;
14716
+ let t16;
14717
+ let div11;
14155
14718
  let current;
14156
14719
  let mounted;
14157
14720
  let dispose;
14158
14721
  let if_block0 = (
14159
14722
  /*scrollable*/
14160
- ctx[5] && create_if_block_23(ctx)
14723
+ ctx[5] && create_if_block_25(ctx)
14161
14724
  );
14162
14725
  let each_value_1 = (
14163
14726
  /*items*/
@@ -14171,10 +14734,10 @@ function create_fragment74(ctx) {
14171
14734
  each_blocks_1[i] = null;
14172
14735
  });
14173
14736
  let if_block1 = !/*hide_apps*/
14174
- ctx[8] && create_if_block_132(ctx);
14737
+ ctx[8] && create_if_block_15(ctx);
14175
14738
  let if_block2 = (
14176
14739
  /*scrollable*/
14177
- ctx[5] && create_if_block_122(ctx)
14740
+ ctx[5] && create_if_block_14(ctx)
14178
14741
  );
14179
14742
  let if_block3 = !!/*app*/
14180
14743
  ((_a = ctx[0]) == null ? void 0 : _a.appliancePlugin) && create_if_block_52(ctx);
@@ -14332,40 +14895,42 @@ function create_fragment74(ctx) {
14332
14895
  if (if_block2)
14333
14896
  if_block2.c();
14334
14897
  t3 = space();
14335
- div11 = element("div");
14336
- div3 = element("div");
14898
+ div12 = element("div");
14899
+ div4 = element("div");
14337
14900
  div1 = element("div");
14338
14901
  if (if_block3)
14339
14902
  if_block3.c();
14340
14903
  t4 = space();
14341
- create_component(strokewidth0.$$.fragment);
14342
- t5 = space();
14343
14904
  div2 = element("div");
14905
+ t5 = space();
14906
+ create_component(strokewidth0.$$.fragment);
14344
14907
  t6 = space();
14345
- create_component(strokecolor0.$$.fragment);
14908
+ div3 = element("div");
14346
14909
  t7 = space();
14347
- div4 = element("div");
14348
- create_component(textcolor.$$.fragment);
14910
+ create_component(strokecolor0.$$.fragment);
14349
14911
  t8 = space();
14350
- div7 = element("div");
14351
- create_component(selectshapes.$$.fragment);
14352
- t9 = space();
14353
14912
  div5 = element("div");
14913
+ create_component(textcolor.$$.fragment);
14914
+ t9 = space();
14915
+ div8 = element("div");
14916
+ create_component(selectshapes.$$.fragment);
14354
14917
  t10 = space();
14355
- create_component(strokewidth1.$$.fragment);
14356
- t11 = space();
14357
14918
  div6 = element("div");
14919
+ t11 = space();
14920
+ create_component(strokewidth1.$$.fragment);
14358
14921
  t12 = space();
14359
- create_component(strokecolor1.$$.fragment);
14922
+ div7 = element("div");
14360
14923
  t13 = space();
14924
+ create_component(strokecolor1.$$.fragment);
14925
+ t14 = space();
14926
+ div10 = element("div");
14361
14927
  div9 = element("div");
14362
- div8 = element("div");
14363
14928
  if (if_block4)
14364
14929
  if_block4.c();
14365
- t14 = space();
14366
- create_component(erasersize.$$.fragment);
14367
14930
  t15 = space();
14368
- div10 = element("div");
14931
+ create_component(erasersize.$$.fragment);
14932
+ t16 = space();
14933
+ div11 = element("div");
14369
14934
  for (let i = 0; i < each_blocks.length; i += 1) {
14370
14935
  each_blocks[i].c();
14371
14936
  }
@@ -14378,22 +14943,23 @@ function create_fragment74(ctx) {
14378
14943
  );
14379
14944
  attr(div1, "class", name5 + "-panel-switch-pencil");
14380
14945
  attr(div2, "class", name5 + "-panel-divider");
14381
- attr(div3, "class", name5 + "-panel pencil");
14382
- attr(div4, "class", name5 + "-panel text");
14383
- attr(div5, "class", name5 + "-panel-divider");
14946
+ attr(div3, "class", name5 + "-panel-divider");
14947
+ attr(div4, "class", name5 + "-panel pencil");
14948
+ attr(div5, "class", name5 + "-panel text");
14384
14949
  attr(div6, "class", name5 + "-panel-divider");
14385
- attr(div7, "class", name5 + "-panel shapes");
14386
- attr(div8, "class", name5 + "-panel-switch-earser");
14387
- attr(div9, "class", name5 + "-panel earser");
14388
- attr(div10, "class", name5 + "-panel apps");
14950
+ attr(div7, "class", name5 + "-panel-divider");
14951
+ attr(div8, "class", name5 + "-panel shapes");
14952
+ attr(div9, "class", name5 + "-panel-switch-earser");
14953
+ attr(div10, "class", name5 + "-panel earser");
14954
+ attr(div11, "class", name5 + "-panel apps");
14389
14955
  set_style(
14390
- div10,
14956
+ div11,
14391
14957
  "--n",
14392
14958
  /*$apps*/
14393
14959
  ctx[25].length
14394
14960
  );
14395
- attr(div11, "class", name5 + "-panel-wrapper");
14396
- set_style(div11, "display", "none");
14961
+ attr(div12, "class", name5 + "-panel-wrapper");
14962
+ set_style(div12, "display", "none");
14397
14963
  },
14398
14964
  m(target, anchor) {
14399
14965
  if (if_block0)
@@ -14412,50 +14978,52 @@ function create_fragment74(ctx) {
14412
14978
  if (if_block2)
14413
14979
  if_block2.m(target, anchor);
14414
14980
  insert(target, t3, anchor);
14415
- insert(target, div11, anchor);
14416
- append(div11, div3);
14417
- append(div3, div1);
14981
+ insert(target, div12, anchor);
14982
+ append(div12, div4);
14983
+ append(div4, div1);
14418
14984
  if (if_block3)
14419
14985
  if_block3.m(div1, null);
14420
- append(div3, t4);
14421
- mount_component(strokewidth0, div3, null);
14422
- append(div3, t5);
14423
- append(div3, div2);
14424
- append(div3, t6);
14425
- mount_component(strokecolor0, div3, null);
14426
- ctx[50](div3);
14427
- append(div11, t7);
14428
- append(div11, div4);
14429
- mount_component(textcolor, div4, null);
14430
- ctx[51](div4);
14431
- append(div11, t8);
14432
- append(div11, div7);
14433
- mount_component(selectshapes, div7, null);
14434
- append(div7, t9);
14435
- append(div7, div5);
14436
- append(div7, t10);
14437
- mount_component(strokewidth1, div7, null);
14438
- append(div7, t11);
14439
- append(div7, div6);
14440
- append(div7, t12);
14441
- mount_component(strokecolor1, div7, null);
14442
- ctx[52](div7);
14443
- append(div11, t13);
14444
- append(div11, div9);
14445
- append(div9, div8);
14986
+ append(div4, t4);
14987
+ append(div4, div2);
14988
+ append(div4, t5);
14989
+ mount_component(strokewidth0, div4, null);
14990
+ append(div4, t6);
14991
+ append(div4, div3);
14992
+ append(div4, t7);
14993
+ mount_component(strokecolor0, div4, null);
14994
+ ctx[52](div4);
14995
+ append(div12, t8);
14996
+ append(div12, div5);
14997
+ mount_component(textcolor, div5, null);
14998
+ ctx[53](div5);
14999
+ append(div12, t9);
15000
+ append(div12, div8);
15001
+ mount_component(selectshapes, div8, null);
15002
+ append(div8, t10);
15003
+ append(div8, div6);
15004
+ append(div8, t11);
15005
+ mount_component(strokewidth1, div8, null);
15006
+ append(div8, t12);
15007
+ append(div8, div7);
15008
+ append(div8, t13);
15009
+ mount_component(strokecolor1, div8, null);
15010
+ ctx[54](div8);
15011
+ append(div12, t14);
15012
+ append(div12, div10);
15013
+ append(div10, div9);
14446
15014
  if (if_block4)
14447
- if_block4.m(div8, null);
14448
- append(div9, t14);
14449
- mount_component(erasersize, div9, null);
14450
- ctx[53](div9);
14451
- append(div11, t15);
14452
- append(div11, div10);
15015
+ if_block4.m(div9, null);
15016
+ append(div10, t15);
15017
+ mount_component(erasersize, div10, null);
15018
+ ctx[55](div10);
15019
+ append(div12, t16);
15020
+ append(div12, div11);
14453
15021
  for (let i = 0; i < each_blocks.length; i += 1) {
14454
15022
  if (each_blocks[i]) {
14455
- each_blocks[i].m(div10, null);
15023
+ each_blocks[i].m(div11, null);
14456
15024
  }
14457
15025
  }
14458
- ctx[55](div10);
15026
+ ctx[57](div11);
14459
15027
  current = true;
14460
15028
  if (!mounted) {
14461
15029
  dispose = [
@@ -14488,7 +15056,7 @@ function create_fragment74(ctx) {
14488
15056
  transition_in(if_block0, 1);
14489
15057
  }
14490
15058
  } else {
14491
- if_block0 = create_if_block_23(ctx2);
15059
+ if_block0 = create_if_block_25(ctx2);
14492
15060
  if_block0.c();
14493
15061
  transition_in(if_block0, 1);
14494
15062
  if_block0.m(t0.parentNode, t0);
@@ -14533,7 +15101,7 @@ function create_fragment74(ctx) {
14533
15101
  transition_in(if_block1, 1);
14534
15102
  }
14535
15103
  } else {
14536
- if_block1 = create_if_block_132(ctx2);
15104
+ if_block1 = create_if_block_15(ctx2);
14537
15105
  if_block1.c();
14538
15106
  transition_in(if_block1, 1);
14539
15107
  if_block1.m(div0, null);
@@ -14572,7 +15140,7 @@ function create_fragment74(ctx) {
14572
15140
  transition_in(if_block2, 1);
14573
15141
  }
14574
15142
  } else {
14575
- if_block2 = create_if_block_122(ctx2);
15143
+ if_block2 = create_if_block_14(ctx2);
14576
15144
  if_block2.c();
14577
15145
  transition_in(if_block2, 1);
14578
15146
  if_block2.m(t3.parentNode, t3);
@@ -14717,7 +15285,7 @@ function create_fragment74(ctx) {
14717
15285
  if_block4 = create_if_block14(ctx2);
14718
15286
  if_block4.c();
14719
15287
  transition_in(if_block4, 1);
14720
- if_block4.m(div8, null);
15288
+ if_block4.m(div9, null);
14721
15289
  }
14722
15290
  } else if (if_block4) {
14723
15291
  group_outros();
@@ -14752,7 +15320,7 @@ function create_fragment74(ctx) {
14752
15320
  } else {
14753
15321
  each_blocks[i] = create_each_block4(child_ctx);
14754
15322
  each_blocks[i].c();
14755
- each_blocks[i].m(div10, null);
15323
+ each_blocks[i].m(div11, null);
14756
15324
  }
14757
15325
  }
14758
15326
  for (; i < each_blocks.length; i += 1) {
@@ -14763,7 +15331,7 @@ function create_fragment74(ctx) {
14763
15331
  if (!current || dirty[0] & /*$apps*/
14764
15332
  33554432) {
14765
15333
  set_style(
14766
- div10,
15334
+ div11,
14767
15335
  "--n",
14768
15336
  /*$apps*/
14769
15337
  ctx2[25].length
@@ -14826,31 +15394,31 @@ function create_fragment74(ctx) {
14826
15394
  if (detaching)
14827
15395
  detach(t3);
14828
15396
  if (detaching)
14829
- detach(div11);
15397
+ detach(div12);
14830
15398
  if (if_block3)
14831
15399
  if_block3.d();
14832
15400
  destroy_component(strokewidth0);
14833
15401
  destroy_component(strokecolor0);
14834
- ctx[50](null);
15402
+ ctx[52](null);
14835
15403
  destroy_component(textcolor);
14836
- ctx[51](null);
15404
+ ctx[53](null);
14837
15405
  destroy_component(selectshapes);
14838
15406
  destroy_component(strokewidth1);
14839
15407
  destroy_component(strokecolor1);
14840
- ctx[52](null);
15408
+ ctx[54](null);
14841
15409
  if (if_block4)
14842
15410
  if_block4.d();
14843
15411
  destroy_component(erasersize);
14844
- ctx[53](null);
14845
- destroy_each(each_blocks, detaching);
14846
15412
  ctx[55](null);
15413
+ destroy_each(each_blocks, detaching);
15414
+ ctx[57](null);
14847
15415
  mounted = false;
14848
15416
  run_all(dispose);
14849
15417
  }
14850
15418
  };
14851
15419
  }
14852
15420
  var name5 = "fastboard-toolbar";
14853
- function instance74($$self, $$props, $$invalidate) {
15421
+ function instance76($$self, $$props, $$invalidate) {
14854
15422
  let t;
14855
15423
  let hotkeys;
14856
15424
  let c;
@@ -14862,12 +15430,13 @@ function instance74($$self, $$props, $$invalidate) {
14862
15430
  let showLaserPen;
14863
15431
  let hasUseLaserPen;
14864
15432
  let hasUseMarkPen;
15433
+ let hasUseStroke;
14865
15434
  let pencilType;
14866
15435
  let hasUseEraserBitmap;
14867
15436
  let eraserType;
14868
15437
  let $top;
14869
- let $memberState, $$unsubscribe_memberState = noop, $$subscribe_memberState = () => ($$unsubscribe_memberState(), $$unsubscribe_memberState = subscribe(memberState, ($$value) => $$invalidate(48, $memberState = $$value)), memberState);
14870
- let $scroll_height, $$unsubscribe_scroll_height = noop, $$subscribe_scroll_height = () => ($$unsubscribe_scroll_height(), $$unsubscribe_scroll_height = subscribe(scroll_height, ($$value) => $$invalidate(49, $scroll_height = $$value)), scroll_height);
15438
+ let $memberState, $$unsubscribe_memberState = noop, $$subscribe_memberState = () => ($$unsubscribe_memberState(), $$unsubscribe_memberState = subscribe(memberState, ($$value) => $$invalidate(50, $memberState = $$value)), memberState);
15439
+ let $scroll_height, $$unsubscribe_scroll_height = noop, $$subscribe_scroll_height = () => ($$unsubscribe_scroll_height(), $$unsubscribe_scroll_height = subscribe(scroll_height, ($$value) => $$invalidate(51, $scroll_height = $$value)), scroll_height);
14871
15440
  let $apps;
14872
15441
  let $status, $$unsubscribe_status = noop, $$subscribe_status = () => ($$unsubscribe_status(), $$unsubscribe_status = subscribe(status, ($$value) => $$invalidate(26, $status = $$value)), status);
14873
15442
  component_subscribe($$self, apps, ($$value) => $$invalidate(25, $apps = $$value));
@@ -14893,7 +15462,7 @@ function instance74($$self, $$props, $$invalidate) {
14893
15462
  let eraser_panel;
14894
15463
  let btn_props;
14895
15464
  let top = writable(0);
14896
- component_subscribe($$self, top, (value) => $$invalidate(57, $top = value));
15465
+ component_subscribe($$self, top, (value) => $$invalidate(59, $top = value));
14897
15466
  function scroll_up() {
14898
15467
  set_store_value(top, $top = clamp($top - 32 - 4, 0, max_scroll), $top);
14899
15468
  }
@@ -14913,12 +15482,14 @@ function instance74($$self, $$props, $$invalidate) {
14913
15482
  useMarkPen();
14914
15483
  } else if (pencilType === "laser") {
14915
15484
  useLaserPen();
15485
+ } else if (pencilType === "stroke") {
15486
+ useStrokePencil();
14916
15487
  } else {
14917
- usePencil();
15488
+ useNormalPencil();
14918
15489
  }
14919
15490
  }
14920
15491
  } else {
14921
- usePencil();
15492
+ useNormalPencil();
14922
15493
  }
14923
15494
  }
14924
15495
  function text4() {
@@ -14946,12 +15517,12 @@ function instance74($$self, $$props, $$invalidate) {
14946
15517
  function clear() {
14947
15518
  app == null ? void 0 : app.cleanCurrentScene();
14948
15519
  }
14949
- function usePencil() {
15520
+ function useNormalPencil() {
14950
15521
  var _a;
14951
15522
  if (hasAppliancePlugin) {
14952
15523
  (_a = app == null ? void 0 : app.appliancePlugin) == null ? void 0 : _a.setMemberState({
14953
15524
  currentApplianceName: "pencil",
14954
- strokeType: "Stroke",
15525
+ strokeType: "Normal",
14955
15526
  useLaserPen: false,
14956
15527
  strokeOpacity: 1
14957
15528
  });
@@ -14959,6 +15530,15 @@ function instance74($$self, $$props, $$invalidate) {
14959
15530
  app == null ? void 0 : app.setAppliance("pencil");
14960
15531
  }
14961
15532
  }
15533
+ function useStrokePencil() {
15534
+ var _a;
15535
+ (_a = app == null ? void 0 : app.appliancePlugin) == null ? void 0 : _a.setMemberState({
15536
+ currentApplianceName: "pencil",
15537
+ strokeType: "Stroke",
15538
+ useLaserPen: false,
15539
+ strokeOpacity: 1
15540
+ });
15541
+ }
14962
15542
  function useLaserPen() {
14963
15543
  var _a;
14964
15544
  (_a = app == null ? void 0 : app.appliancePlugin) == null ? void 0 : _a.setMemberState({
@@ -14993,25 +15573,25 @@ function instance74($$self, $$props, $$invalidate) {
14993
15573
  isLine: false
14994
15574
  });
14995
15575
  }
14996
- function div3_binding($$value) {
15576
+ function div4_binding($$value) {
14997
15577
  binding_callbacks[$$value ? "unshift" : "push"](() => {
14998
15578
  pencil_panel = $$value;
14999
15579
  $$invalidate(12, pencil_panel);
15000
15580
  });
15001
15581
  }
15002
- function div4_binding($$value) {
15582
+ function div5_binding($$value) {
15003
15583
  binding_callbacks[$$value ? "unshift" : "push"](() => {
15004
15584
  text_panel = $$value;
15005
15585
  $$invalidate(13, text_panel);
15006
15586
  });
15007
15587
  }
15008
- function div7_binding($$value) {
15588
+ function div8_binding($$value) {
15009
15589
  binding_callbacks[$$value ? "unshift" : "push"](() => {
15010
15590
  shapes_panel = $$value;
15011
15591
  $$invalidate(14, shapes_panel);
15012
15592
  });
15013
15593
  }
15014
- function div9_binding($$value) {
15594
+ function div10_binding($$value) {
15015
15595
  binding_callbacks[$$value ? "unshift" : "push"](() => {
15016
15596
  eraser_panel = $$value;
15017
15597
  $$invalidate(16, eraser_panel);
@@ -15021,7 +15601,7 @@ function instance74($$self, $$props, $$invalidate) {
15021
15601
  app && onClick(app);
15022
15602
  tippy_hide_all();
15023
15603
  };
15024
- function div10_binding($$value) {
15604
+ function div11_binding($$value) {
15025
15605
  binding_callbacks[$$value ? "unshift" : "push"](() => {
15026
15606
  apps_panel = $$value;
15027
15607
  $$invalidate(15, apps_panel);
@@ -15039,7 +15619,7 @@ function instance74($$self, $$props, $$invalidate) {
15039
15619
  if ("scroll_height" in $$props2)
15040
15620
  $$subscribe_scroll_height($$invalidate(4, scroll_height = $$props2.scroll_height));
15041
15621
  if ("computed_height" in $$props2)
15042
- $$invalidate(43, computed_height = $$props2.computed_height);
15622
+ $$invalidate(44, computed_height = $$props2.computed_height);
15043
15623
  if ("scrollable" in $$props2)
15044
15624
  $$invalidate(5, scrollable = $$props2.scrollable);
15045
15625
  if ("placement" in $$props2)
@@ -15069,11 +15649,11 @@ function instance74($$self, $$props, $$invalidate) {
15069
15649
  }
15070
15650
  if ($$self.$$.dirty[0] & /*app*/
15071
15651
  1) {
15072
- $$invalidate(47, hotkeys = app == null ? void 0 : app.hotKeys);
15652
+ $$invalidate(49, hotkeys = app == null ? void 0 : app.hotKeys);
15073
15653
  }
15074
15654
  if ($$self.$$.dirty[0] & /*t*/
15075
15655
  2048 | $$self.$$.dirty[1] & /*hotkeys*/
15076
- 65536) {
15656
+ 262144) {
15077
15657
  $$invalidate(24, c = {
15078
15658
  clicker: tooltip(t.clicker, hotkeys == null ? void 0 : hotkeys.changeToClick),
15079
15659
  selector: tooltip(t.selector, hotkeys == null ? void 0 : hotkeys.changeToSelector),
@@ -15089,7 +15669,7 @@ function instance74($$self, $$props, $$invalidate) {
15089
15669
  $$subscribe_memberState($$invalidate(23, memberState = app == null ? void 0 : app.memberState));
15090
15670
  }
15091
15671
  if ($$self.$$.dirty[1] & /*$memberState*/
15092
- 131072) {
15672
+ 524288) {
15093
15673
  $$invalidate(19, appliance = $memberState == null ? void 0 : $memberState.currentApplianceName);
15094
15674
  }
15095
15675
  if ($$self.$$.dirty[0] & /*app*/
@@ -15098,7 +15678,7 @@ function instance74($$self, $$props, $$invalidate) {
15098
15678
  }
15099
15679
  if ($$self.$$.dirty[0] & /*scrollable*/
15100
15680
  32 | $$self.$$.dirty[1] & /*$scroll_height, computed_height*/
15101
- 266240) {
15681
+ 1056768) {
15102
15682
  max_scroll = scrollable ? $scroll_height + (32 + 8) * 2 - computed_height : 0;
15103
15683
  }
15104
15684
  if ($$self.$$.dirty[0] & /*app*/
@@ -15111,25 +15691,30 @@ function instance74($$self, $$props, $$invalidate) {
15111
15691
  }
15112
15692
  if ($$self.$$.dirty[0] & /*hasAppliancePlugin*/
15113
15693
  1024 | $$self.$$.dirty[1] & /*$memberState*/
15114
- 131072) {
15115
- $$invalidate(46, hasUseLaserPen = hasAppliancePlugin && ($memberState == null ? void 0 : $memberState.useLaserPen) || false);
15694
+ 524288) {
15695
+ $$invalidate(48, hasUseLaserPen = hasAppliancePlugin && ($memberState == null ? void 0 : $memberState.useLaserPen) || false);
15116
15696
  }
15117
15697
  if ($$self.$$.dirty[0] & /*hasAppliancePlugin*/
15118
15698
  1024 | $$self.$$.dirty[1] & /*$memberState*/
15119
- 131072) {
15120
- $$invalidate(45, hasUseMarkPen = hasAppliancePlugin && ($memberState == null ? void 0 : $memberState.strokeOpacity) === 0.5 || false);
15699
+ 524288) {
15700
+ $$invalidate(47, hasUseMarkPen = hasAppliancePlugin && ($memberState == null ? void 0 : $memberState.strokeOpacity) === 0.5 || false);
15121
15701
  }
15122
- if ($$self.$$.dirty[1] & /*hasUseLaserPen, hasUseMarkPen*/
15123
- 49152) {
15124
- $$invalidate(20, pencilType = hasUseLaserPen ? "laser" : hasUseMarkPen ? "mark" : "pencil");
15702
+ if ($$self.$$.dirty[0] & /*hasAppliancePlugin*/
15703
+ 1024 | $$self.$$.dirty[1] & /*$memberState*/
15704
+ 524288) {
15705
+ $$invalidate(46, hasUseStroke = hasAppliancePlugin && ($memberState == null ? void 0 : $memberState.strokeType) === "Stroke" || false);
15706
+ }
15707
+ if ($$self.$$.dirty[1] & /*hasUseLaserPen, hasUseMarkPen, hasUseStroke*/
15708
+ 229376) {
15709
+ $$invalidate(20, pencilType = hasUseLaserPen ? "laser" : hasUseMarkPen ? "mark" : hasUseStroke ? "stroke" : "pencil");
15125
15710
  }
15126
15711
  if ($$self.$$.dirty[0] & /*hasAppliancePlugin*/
15127
15712
  1024 | $$self.$$.dirty[1] & /*$memberState*/
15128
- 131072) {
15129
- $$invalidate(44, hasUseEraserBitmap = hasAppliancePlugin && ($memberState == null ? void 0 : $memberState.isLine) === false);
15713
+ 524288) {
15714
+ $$invalidate(45, hasUseEraserBitmap = hasAppliancePlugin && ($memberState == null ? void 0 : $memberState.isLine) === false);
15130
15715
  }
15131
15716
  if ($$self.$$.dirty[1] & /*hasUseEraserBitmap*/
15132
- 8192) {
15717
+ 16384) {
15133
15718
  $$invalidate(18, eraserType = hasUseEraserBitmap ? "pencilEraser" : "eraser");
15134
15719
  }
15135
15720
  };
@@ -15172,24 +15757,26 @@ function instance74($$self, $$props, $$invalidate) {
15172
15757
  hand,
15173
15758
  laserPointer,
15174
15759
  clear,
15175
- usePencil,
15760
+ useNormalPencil,
15761
+ useStrokePencil,
15176
15762
  useLaserPen,
15177
15763
  useMarkPen,
15178
15764
  useEraser,
15179
15765
  useEraserBitmap,
15180
15766
  computed_height,
15181
15767
  hasUseEraserBitmap,
15768
+ hasUseStroke,
15182
15769
  hasUseMarkPen,
15183
15770
  hasUseLaserPen,
15184
15771
  hotkeys,
15185
15772
  $memberState,
15186
15773
  $scroll_height,
15187
- div3_binding,
15188
15774
  div4_binding,
15189
- div7_binding,
15190
- div9_binding,
15775
+ div5_binding,
15776
+ div8_binding,
15777
+ div10_binding,
15191
15778
  func,
15192
- div10_binding
15779
+ div11_binding
15193
15780
  ];
15194
15781
  }
15195
15782
  var Contents = class extends SvelteComponent {
@@ -15198,8 +15785,8 @@ var Contents = class extends SvelteComponent {
15198
15785
  init(
15199
15786
  this,
15200
15787
  options,
15201
- instance74,
15202
- create_fragment74,
15788
+ instance76,
15789
+ create_fragment76,
15203
15790
  safe_not_equal,
15204
15791
  {
15205
15792
  app: 0,
@@ -15207,7 +15794,7 @@ var Contents = class extends SvelteComponent {
15207
15794
  language: 2,
15208
15795
  disabled: 3,
15209
15796
  scroll_height: 4,
15210
- computed_height: 43,
15797
+ computed_height: 44,
15211
15798
  scrollable: 5,
15212
15799
  placement: 6,
15213
15800
  items: 7,
@@ -15278,7 +15865,7 @@ function create_if_block15(ctx) {
15278
15865
  }
15279
15866
  };
15280
15867
  }
15281
- function create_fragment75(ctx) {
15868
+ function create_fragment77(ctx) {
15282
15869
  let div1;
15283
15870
  let div0;
15284
15871
  let contents;
@@ -15548,7 +16135,7 @@ function create_fragment75(ctx) {
15548
16135
  };
15549
16136
  }
15550
16137
  var name6 = "fastboard-toolbar";
15551
- function instance75($$self, $$props, $$invalidate) {
16138
+ function instance77($$self, $$props, $$invalidate) {
15552
16139
  let writable2;
15553
16140
  let phase;
15554
16141
  let disabled;
@@ -15667,7 +16254,7 @@ function instance75($$self, $$props, $$invalidate) {
15667
16254
  var Toolbar = class extends SvelteComponent {
15668
16255
  constructor(options) {
15669
16256
  super();
15670
- init(this, options, instance75, create_fragment75, safe_not_equal, {
16257
+ init(this, options, instance77, create_fragment77, safe_not_equal, {
15671
16258
  app: 1,
15672
16259
  theme: 2,
15673
16260
  language: 3,
@@ -15739,7 +16326,7 @@ function create_else_block_14(ctx) {
15739
16326
  }
15740
16327
  };
15741
16328
  }
15742
- function create_if_block_25(ctx) {
16329
+ function create_if_block_27(ctx) {
15743
16330
  var _a;
15744
16331
  let icon;
15745
16332
  let current;
@@ -15972,7 +16559,7 @@ function create_default_slot_25(ctx) {
15972
16559
  let if_block;
15973
16560
  let if_block_anchor;
15974
16561
  let current;
15975
- const if_block_creators = [create_if_block_111, create_if_block_25, create_else_block_14];
16562
+ const if_block_creators = [create_if_block_111, create_if_block_27, create_else_block_14];
15976
16563
  const if_blocks = [];
15977
16564
  function select_block_type(ctx2, dirty) {
15978
16565
  if (
@@ -16208,7 +16795,7 @@ function create_if_block16(ctx) {
16208
16795
  }
16209
16796
  };
16210
16797
  }
16211
- function create_default_slot_15(ctx) {
16798
+ function create_default_slot_16(ctx) {
16212
16799
  let span;
16213
16800
  let t0_value = (
16214
16801
  /*$playbackRate*/
@@ -16349,7 +16936,7 @@ function create_each_block5(key_1, ctx) {
16349
16936
  }
16350
16937
  };
16351
16938
  }
16352
- function create_fragment76(ctx) {
16939
+ function create_fragment78(ctx) {
16353
16940
  let div0;
16354
16941
  let button0;
16355
16942
  let t0;
@@ -16436,7 +17023,7 @@ function create_fragment76(ctx) {
16436
17023
  ctx[6]
16437
17024
  ),
16438
17025
  menu_placement: "top-end",
16439
- $$slots: { default: [create_default_slot_15] },
17026
+ $$slots: { default: [create_default_slot_16] },
16440
17027
  $$scope: { ctx }
16441
17028
  }
16442
17029
  });
@@ -16626,7 +17213,7 @@ function format(ms) {
16626
17213
  return String(m).padStart(2, "0") + ":" + String(s % 60).padStart(2, "0");
16627
17214
  }
16628
17215
  var name7 = "fastboard-player-control";
16629
- function instance76($$self, $$props, $$invalidate) {
17216
+ function instance78($$self, $$props, $$invalidate) {
16630
17217
  let t;
16631
17218
  let canPlay;
16632
17219
  let disabled;
@@ -16771,7 +17358,7 @@ function instance76($$self, $$props, $$invalidate) {
16771
17358
  var PlayerControl = class extends SvelteComponent {
16772
17359
  constructor(options) {
16773
17360
  super();
16774
- init(this, options, instance76, create_fragment76, safe_not_equal, {
17361
+ init(this, options, instance78, create_fragment78, safe_not_equal, {
16775
17362
  player: 19,
16776
17363
  theme: 0,
16777
17364
  language: 20,
@@ -16838,7 +17425,7 @@ function create_if_block17(ctx) {
16838
17425
  }
16839
17426
  };
16840
17427
  }
16841
- function create_fragment77(ctx) {
17428
+ function create_fragment79(ctx) {
16842
17429
  var _a;
16843
17430
  let div2;
16844
17431
  let div0;
@@ -16938,7 +17525,7 @@ function create_fragment77(ctx) {
16938
17525
  };
16939
17526
  }
16940
17527
  var name8 = "fastboard";
16941
- function instance77($$self, $$props, $$invalidate) {
17528
+ function instance79($$self, $$props, $$invalidate) {
16942
17529
  let { player = null } = $$props;
16943
17530
  let { theme = "light" } = $$props;
16944
17531
  let { language = "en" } = $$props;
@@ -17013,7 +17600,7 @@ function instance77($$self, $$props, $$invalidate) {
17013
17600
  var ReplayFastboard = class extends SvelteComponent {
17014
17601
  constructor(options) {
17015
17602
  super();
17016
- init(this, options, instance77, create_fragment77, not_equal, {
17603
+ init(this, options, instance79, create_fragment79, not_equal, {
17017
17604
  player: 0,
17018
17605
  theme: 1,
17019
17606
  language: 2,
@@ -17089,7 +17676,7 @@ function create_if_block_34(ctx) {
17089
17676
  }
17090
17677
  };
17091
17678
  }
17092
- function create_if_block_26(ctx) {
17679
+ function create_if_block_28(ctx) {
17093
17680
  let redoundo;
17094
17681
  let current;
17095
17682
  redoundo = new RedoUndo_default({
@@ -17263,7 +17850,7 @@ function create_if_block18(ctx) {
17263
17850
  }
17264
17851
  };
17265
17852
  }
17266
- function create_fragment78(ctx) {
17853
+ function create_fragment80(ctx) {
17267
17854
  var _a, _b, _c, _d;
17268
17855
  let div4;
17269
17856
  let div0;
@@ -17285,7 +17872,7 @@ function create_fragment78(ctx) {
17285
17872
  let if_block1 = (
17286
17873
  /*config*/
17287
17874
  ((_b = ctx[3].redo_undo) == null ? void 0 : _b.enable) !== false && !/*hidden_redo_undo*/
17288
- ctx[6] && create_if_block_26(ctx)
17875
+ ctx[6] && create_if_block_28(ctx)
17289
17876
  );
17290
17877
  let if_block2 = (
17291
17878
  /*config*/
@@ -17426,7 +18013,7 @@ function create_fragment78(ctx) {
17426
18013
  transition_in(if_block1, 1);
17427
18014
  }
17428
18015
  } else {
17429
- if_block1 = create_if_block_26(ctx2);
18016
+ if_block1 = create_if_block_28(ctx2);
17430
18017
  if_block1.c();
17431
18018
  transition_in(if_block1, 1);
17432
18019
  if_block1.m(div2, t2);
@@ -17544,7 +18131,7 @@ function create_fragment78(ctx) {
17544
18131
  };
17545
18132
  }
17546
18133
  var name9 = "fastboard";
17547
- function instance78($$self, $$props, $$invalidate) {
18134
+ function instance80($$self, $$props, $$invalidate) {
17548
18135
  let writable2;
17549
18136
  let boxState;
17550
18137
  let focusedApp;
@@ -17756,7 +18343,7 @@ function instance78($$self, $$props, $$invalidate) {
17756
18343
  var Fastboard = class extends SvelteComponent {
17757
18344
  constructor(options) {
17758
18345
  super();
17759
- init(this, options, instance78, create_fragment78, not_equal, {
18346
+ init(this, options, instance80, create_fragment80, not_equal, {
17760
18347
  app: 0,
17761
18348
  theme: 1,
17762
18349
  language: 2,