@netless/fastboard-ui 1.0.2 → 1.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.mjs CHANGED
@@ -9479,7 +9479,205 @@ var Selector2 = class extends SvelteComponent {
9479
9479
  var Selector_default2 = Selector2;
9480
9480
 
9481
9481
  // src/components/Toolbar/definitions/Pencil.svelte
9482
- function create_else_block8(ctx) {
9482
+ function create_if_block_4(ctx) {
9483
+ let current_block_type_index;
9484
+ let if_block;
9485
+ let if_block_anchor;
9486
+ let current;
9487
+ const if_block_creators = [create_if_block_5, create_else_block_2];
9488
+ const if_blocks = [];
9489
+ function select_block_type_3(ctx2, dirty) {
9490
+ if (
9491
+ /*appliance*/
9492
+ ctx2[3] === "pencil"
9493
+ )
9494
+ return 0;
9495
+ return 1;
9496
+ }
9497
+ current_block_type_index = select_block_type_3(ctx);
9498
+ if_block = if_blocks[current_block_type_index] = if_block_creators[current_block_type_index](ctx);
9499
+ return {
9500
+ c() {
9501
+ if_block.c();
9502
+ if_block_anchor = empty();
9503
+ },
9504
+ m(target, anchor) {
9505
+ if_blocks[current_block_type_index].m(target, anchor);
9506
+ insert(target, if_block_anchor, anchor);
9507
+ current = true;
9508
+ },
9509
+ p(ctx2, dirty) {
9510
+ let previous_block_index = current_block_type_index;
9511
+ current_block_type_index = select_block_type_3(ctx2);
9512
+ if (current_block_type_index === previous_block_index) {
9513
+ if_blocks[current_block_type_index].p(ctx2, dirty);
9514
+ } else {
9515
+ group_outros();
9516
+ transition_out(if_blocks[previous_block_index], 1, 1, () => {
9517
+ if_blocks[previous_block_index] = null;
9518
+ });
9519
+ check_outros();
9520
+ if_block = if_blocks[current_block_type_index];
9521
+ if (!if_block) {
9522
+ if_block = if_blocks[current_block_type_index] = if_block_creators[current_block_type_index](ctx2);
9523
+ if_block.c();
9524
+ } else {
9525
+ if_block.p(ctx2, dirty);
9526
+ }
9527
+ transition_in(if_block, 1);
9528
+ if_block.m(if_block_anchor.parentNode, if_block_anchor);
9529
+ }
9530
+ },
9531
+ i(local) {
9532
+ if (current)
9533
+ return;
9534
+ transition_in(if_block);
9535
+ current = true;
9536
+ },
9537
+ o(local) {
9538
+ transition_out(if_block);
9539
+ current = false;
9540
+ },
9541
+ d(detaching) {
9542
+ if_blocks[current_block_type_index].d(detaching);
9543
+ if (detaching)
9544
+ detach(if_block_anchor);
9545
+ }
9546
+ };
9547
+ }
9548
+ function create_if_block_2(ctx) {
9549
+ let current_block_type_index;
9550
+ let if_block;
9551
+ let if_block_anchor;
9552
+ let current;
9553
+ const if_block_creators = [create_if_block_3, create_else_block_12];
9554
+ const if_blocks = [];
9555
+ function select_block_type_2(ctx2, dirty) {
9556
+ if (
9557
+ /*appliance*/
9558
+ ctx2[3] === "pencil"
9559
+ )
9560
+ return 0;
9561
+ return 1;
9562
+ }
9563
+ current_block_type_index = select_block_type_2(ctx);
9564
+ if_block = if_blocks[current_block_type_index] = if_block_creators[current_block_type_index](ctx);
9565
+ return {
9566
+ c() {
9567
+ if_block.c();
9568
+ if_block_anchor = empty();
9569
+ },
9570
+ m(target, anchor) {
9571
+ if_blocks[current_block_type_index].m(target, anchor);
9572
+ insert(target, if_block_anchor, anchor);
9573
+ current = true;
9574
+ },
9575
+ p(ctx2, dirty) {
9576
+ let previous_block_index = current_block_type_index;
9577
+ current_block_type_index = select_block_type_2(ctx2);
9578
+ if (current_block_type_index === previous_block_index) {
9579
+ if_blocks[current_block_type_index].p(ctx2, dirty);
9580
+ } else {
9581
+ group_outros();
9582
+ transition_out(if_blocks[previous_block_index], 1, 1, () => {
9583
+ if_blocks[previous_block_index] = null;
9584
+ });
9585
+ check_outros();
9586
+ if_block = if_blocks[current_block_type_index];
9587
+ if (!if_block) {
9588
+ if_block = if_blocks[current_block_type_index] = if_block_creators[current_block_type_index](ctx2);
9589
+ if_block.c();
9590
+ } else {
9591
+ if_block.p(ctx2, dirty);
9592
+ }
9593
+ transition_in(if_block, 1);
9594
+ if_block.m(if_block_anchor.parentNode, if_block_anchor);
9595
+ }
9596
+ },
9597
+ i(local) {
9598
+ if (current)
9599
+ return;
9600
+ transition_in(if_block);
9601
+ current = true;
9602
+ },
9603
+ o(local) {
9604
+ transition_out(if_block);
9605
+ current = false;
9606
+ },
9607
+ d(detaching) {
9608
+ if_blocks[current_block_type_index].d(detaching);
9609
+ if (detaching)
9610
+ detach(if_block_anchor);
9611
+ }
9612
+ };
9613
+ }
9614
+ function create_if_block8(ctx) {
9615
+ let current_block_type_index;
9616
+ let if_block;
9617
+ let if_block_anchor;
9618
+ let current;
9619
+ const if_block_creators = [create_if_block_12, create_else_block8];
9620
+ const if_blocks = [];
9621
+ function select_block_type_1(ctx2, dirty) {
9622
+ if (
9623
+ /*appliance*/
9624
+ ctx2[3] === "pencil"
9625
+ )
9626
+ return 0;
9627
+ return 1;
9628
+ }
9629
+ current_block_type_index = select_block_type_1(ctx);
9630
+ if_block = if_blocks[current_block_type_index] = if_block_creators[current_block_type_index](ctx);
9631
+ return {
9632
+ c() {
9633
+ if_block.c();
9634
+ if_block_anchor = empty();
9635
+ },
9636
+ m(target, anchor) {
9637
+ if_blocks[current_block_type_index].m(target, anchor);
9638
+ insert(target, if_block_anchor, anchor);
9639
+ current = true;
9640
+ },
9641
+ p(ctx2, dirty) {
9642
+ let previous_block_index = current_block_type_index;
9643
+ current_block_type_index = select_block_type_1(ctx2);
9644
+ if (current_block_type_index === previous_block_index) {
9645
+ if_blocks[current_block_type_index].p(ctx2, dirty);
9646
+ } else {
9647
+ group_outros();
9648
+ transition_out(if_blocks[previous_block_index], 1, 1, () => {
9649
+ if_blocks[previous_block_index] = null;
9650
+ });
9651
+ check_outros();
9652
+ if_block = if_blocks[current_block_type_index];
9653
+ if (!if_block) {
9654
+ if_block = if_blocks[current_block_type_index] = if_block_creators[current_block_type_index](ctx2);
9655
+ if_block.c();
9656
+ } else {
9657
+ if_block.p(ctx2, dirty);
9658
+ }
9659
+ transition_in(if_block, 1);
9660
+ if_block.m(if_block_anchor.parentNode, if_block_anchor);
9661
+ }
9662
+ },
9663
+ i(local) {
9664
+ if (current)
9665
+ return;
9666
+ transition_in(if_block);
9667
+ current = true;
9668
+ },
9669
+ o(local) {
9670
+ transition_out(if_block);
9671
+ current = false;
9672
+ },
9673
+ d(detaching) {
9674
+ if_blocks[current_block_type_index].d(detaching);
9675
+ if (detaching)
9676
+ detach(if_block_anchor);
9677
+ }
9678
+ };
9679
+ }
9680
+ function create_else_block_2(ctx) {
9483
9681
  let icons_pencil;
9484
9682
  let current;
9485
9683
  icons_pencil = new Icons_default.Pencil({ props: { theme: (
@@ -9517,7 +9715,7 @@ function create_else_block8(ctx) {
9517
9715
  }
9518
9716
  };
9519
9717
  }
9520
- function create_if_block_2(ctx) {
9718
+ function create_if_block_5(ctx) {
9521
9719
  let icons_pencilfilled;
9522
9720
  let current;
9523
9721
  icons_pencilfilled = new Icons_default.PencilFilled({
@@ -9557,7 +9755,45 @@ function create_if_block_2(ctx) {
9557
9755
  }
9558
9756
  };
9559
9757
  }
9560
- function create_if_block_12(ctx) {
9758
+ function create_else_block_12(ctx) {
9759
+ let icons_laserpen;
9760
+ let current;
9761
+ icons_laserpen = new Icons_default.LaserPen({ props: { theme: (
9762
+ /*theme*/
9763
+ ctx[4]
9764
+ ) } });
9765
+ return {
9766
+ c() {
9767
+ create_component(icons_laserpen.$$.fragment);
9768
+ },
9769
+ m(target, anchor) {
9770
+ mount_component(icons_laserpen, target, anchor);
9771
+ current = true;
9772
+ },
9773
+ p(ctx2, dirty) {
9774
+ const icons_laserpen_changes = {};
9775
+ if (dirty & /*theme*/
9776
+ 16)
9777
+ icons_laserpen_changes.theme = /*theme*/
9778
+ ctx2[4];
9779
+ icons_laserpen.$set(icons_laserpen_changes);
9780
+ },
9781
+ i(local) {
9782
+ if (current)
9783
+ return;
9784
+ transition_in(icons_laserpen.$$.fragment, local);
9785
+ current = true;
9786
+ },
9787
+ o(local) {
9788
+ transition_out(icons_laserpen.$$.fragment, local);
9789
+ current = false;
9790
+ },
9791
+ d(detaching) {
9792
+ destroy_component(icons_laserpen, detaching);
9793
+ }
9794
+ };
9795
+ }
9796
+ function create_if_block_3(ctx) {
9561
9797
  let icons_laserpenfilled;
9562
9798
  let current;
9563
9799
  icons_laserpenfilled = new Icons_default.LaserPenFilled({
@@ -9597,7 +9833,45 @@ function create_if_block_12(ctx) {
9597
9833
  }
9598
9834
  };
9599
9835
  }
9600
- function create_if_block8(ctx) {
9836
+ function create_else_block8(ctx) {
9837
+ let icons_markpen;
9838
+ let current;
9839
+ icons_markpen = new Icons_default.MarkPen({ props: { theme: (
9840
+ /*theme*/
9841
+ ctx[4]
9842
+ ) } });
9843
+ return {
9844
+ c() {
9845
+ create_component(icons_markpen.$$.fragment);
9846
+ },
9847
+ m(target, anchor) {
9848
+ mount_component(icons_markpen, target, anchor);
9849
+ current = true;
9850
+ },
9851
+ p(ctx2, dirty) {
9852
+ const icons_markpen_changes = {};
9853
+ if (dirty & /*theme*/
9854
+ 16)
9855
+ icons_markpen_changes.theme = /*theme*/
9856
+ ctx2[4];
9857
+ icons_markpen.$set(icons_markpen_changes);
9858
+ },
9859
+ i(local) {
9860
+ if (current)
9861
+ return;
9862
+ transition_in(icons_markpen.$$.fragment, local);
9863
+ current = true;
9864
+ },
9865
+ o(local) {
9866
+ transition_out(icons_markpen.$$.fragment, local);
9867
+ current = false;
9868
+ },
9869
+ d(detaching) {
9870
+ destroy_component(icons_markpen, detaching);
9871
+ }
9872
+ };
9873
+ }
9874
+ function create_if_block_12(ctx) {
9601
9875
  let icons_markpenfilled;
9602
9876
  let current;
9603
9877
  icons_markpenfilled = new Icons_default.MarkPenFilled({
@@ -9642,38 +9916,39 @@ function create_default_slot6(ctx) {
9642
9916
  let if_block;
9643
9917
  let if_block_anchor;
9644
9918
  let current;
9645
- const if_block_creators = [create_if_block8, create_if_block_12, create_if_block_2, create_else_block8];
9919
+ const if_block_creators = [create_if_block8, create_if_block_2, create_if_block_4];
9646
9920
  const if_blocks = [];
9647
9921
  function select_block_type(ctx2, dirty) {
9648
9922
  if (
9649
- /*appliance*/
9650
- ctx2[3] === "pencil" && /*pencilType*/
9923
+ /*pencilType*/
9651
9924
  ctx2[5] === "mark"
9652
9925
  )
9653
9926
  return 0;
9654
9927
  if (
9655
- /*appliance*/
9656
- ctx2[3] === "pencil" && /*pencilType*/
9928
+ /*pencilType*/
9657
9929
  ctx2[5] === "laser"
9658
9930
  )
9659
9931
  return 1;
9660
9932
  if (
9661
- /*appliance*/
9662
- ctx2[3] === "pencil" && /*pencilType*/
9933
+ /*pencilType*/
9663
9934
  ctx2[5] === "pencil"
9664
9935
  )
9665
9936
  return 2;
9666
- return 3;
9937
+ return -1;
9938
+ }
9939
+ if (~(current_block_type_index = select_block_type(ctx))) {
9940
+ if_block = if_blocks[current_block_type_index] = if_block_creators[current_block_type_index](ctx);
9667
9941
  }
9668
- current_block_type_index = select_block_type(ctx);
9669
- if_block = if_blocks[current_block_type_index] = if_block_creators[current_block_type_index](ctx);
9670
9942
  return {
9671
9943
  c() {
9672
- if_block.c();
9944
+ if (if_block)
9945
+ if_block.c();
9673
9946
  if_block_anchor = empty();
9674
9947
  },
9675
9948
  m(target, anchor) {
9676
- if_blocks[current_block_type_index].m(target, anchor);
9949
+ if (~current_block_type_index) {
9950
+ if_blocks[current_block_type_index].m(target, anchor);
9951
+ }
9677
9952
  insert(target, if_block_anchor, anchor);
9678
9953
  current = true;
9679
9954
  },
@@ -9681,22 +9956,30 @@ function create_default_slot6(ctx) {
9681
9956
  let previous_block_index = current_block_type_index;
9682
9957
  current_block_type_index = select_block_type(ctx2);
9683
9958
  if (current_block_type_index === previous_block_index) {
9684
- if_blocks[current_block_type_index].p(ctx2, dirty);
9959
+ if (~current_block_type_index) {
9960
+ if_blocks[current_block_type_index].p(ctx2, dirty);
9961
+ }
9685
9962
  } else {
9686
- group_outros();
9687
- transition_out(if_blocks[previous_block_index], 1, 1, () => {
9688
- if_blocks[previous_block_index] = null;
9689
- });
9690
- check_outros();
9691
- if_block = if_blocks[current_block_type_index];
9692
- if (!if_block) {
9693
- if_block = if_blocks[current_block_type_index] = if_block_creators[current_block_type_index](ctx2);
9694
- if_block.c();
9963
+ if (if_block) {
9964
+ group_outros();
9965
+ transition_out(if_blocks[previous_block_index], 1, 1, () => {
9966
+ if_blocks[previous_block_index] = null;
9967
+ });
9968
+ check_outros();
9969
+ }
9970
+ if (~current_block_type_index) {
9971
+ if_block = if_blocks[current_block_type_index];
9972
+ if (!if_block) {
9973
+ if_block = if_blocks[current_block_type_index] = if_block_creators[current_block_type_index](ctx2);
9974
+ if_block.c();
9975
+ } else {
9976
+ if_block.p(ctx2, dirty);
9977
+ }
9978
+ transition_in(if_block, 1);
9979
+ if_block.m(if_block_anchor.parentNode, if_block_anchor);
9695
9980
  } else {
9696
- if_block.p(ctx2, dirty);
9981
+ if_block = null;
9697
9982
  }
9698
- transition_in(if_block, 1);
9699
- if_block.m(if_block_anchor.parentNode, if_block_anchor);
9700
9983
  }
9701
9984
  },
9702
9985
  i(local) {
@@ -9710,7 +9993,9 @@ function create_default_slot6(ctx) {
9710
9993
  current = false;
9711
9994
  },
9712
9995
  d(detaching) {
9713
- if_blocks[current_block_type_index].d(detaching);
9996
+ if (~current_block_type_index) {
9997
+ if_blocks[current_block_type_index].d(detaching);
9998
+ }
9714
9999
  if (detaching)
9715
10000
  detach(if_block_anchor);
9716
10001
  }
@@ -11367,39 +11652,39 @@ var Laser_default2 = Laser2;
11367
11652
  // src/components/Toolbar/components/Contents.svelte
11368
11653
  function get_each_context4(ctx, list, i) {
11369
11654
  const child_ctx = ctx.slice();
11370
- child_ctx[50] = list[i];
11655
+ child_ctx[51] = list[i];
11371
11656
  const constants_0 = (
11372
11657
  /*netless_app*/
11373
- child_ctx[50]
11658
+ child_ctx[51]
11374
11659
  );
11375
- child_ctx[51] = constants_0.icon;
11376
- child_ctx[52] = constants_0.label;
11377
- child_ctx[53] = constants_0.kind;
11378
- child_ctx[54] = constants_0.onClick;
11660
+ child_ctx[52] = constants_0.icon;
11661
+ child_ctx[53] = constants_0.label;
11662
+ child_ctx[54] = constants_0.kind;
11663
+ child_ctx[55] = constants_0.onClick;
11379
11664
  const constants_1 = (
11380
11665
  /*$status*/
11381
11666
  child_ctx[22] && /*$status*/
11382
11667
  child_ctx[22][
11383
11668
  /*kind*/
11384
- child_ctx[53]
11669
+ child_ctx[54]
11385
11670
  ]
11386
11671
  );
11387
- child_ctx[55] = constants_1;
11672
+ child_ctx[56] = constants_1;
11388
11673
  const constants_2 = function func() {
11389
11674
  return (
11390
11675
  /*func*/
11391
- ctx[46](
11676
+ ctx[47](
11392
11677
  /*onClick*/
11393
- child_ctx[54]
11678
+ child_ctx[55]
11394
11679
  )
11395
11680
  );
11396
11681
  };
11397
- child_ctx[56] = constants_2;
11682
+ child_ctx[57] = constants_2;
11398
11683
  return child_ctx;
11399
11684
  }
11400
11685
  function get_each_context_1(ctx, list, i) {
11401
11686
  const child_ctx = ctx.slice();
11402
- child_ctx[59] = list[i];
11687
+ child_ctx[60] = list[i];
11403
11688
  return child_ctx;
11404
11689
  }
11405
11690
  function create_if_block_18(ctx) {
@@ -11439,7 +11724,7 @@ function create_if_block_18(ctx) {
11439
11724
  )]) : {};
11440
11725
  if (dirty[0] & /*theme*/
11441
11726
  2 | dirty[2] & /*$$scope*/
11442
- 1) {
11727
+ 2) {
11443
11728
  button_changes.$$scope = { dirty, ctx: ctx2 };
11444
11729
  }
11445
11730
  button.$set(button_changes);
@@ -11504,7 +11789,7 @@ function create_if_block_17(ctx) {
11504
11789
  props: {
11505
11790
  appliance: (
11506
11791
  /*appliance*/
11507
- ctx[18]
11792
+ ctx[17]
11508
11793
  ),
11509
11794
  theme: (
11510
11795
  /*theme*/
@@ -11536,9 +11821,9 @@ function create_if_block_17(ctx) {
11536
11821
  p(ctx2, dirty) {
11537
11822
  const laser_changes = {};
11538
11823
  if (dirty[0] & /*appliance*/
11539
- 262144)
11824
+ 131072)
11540
11825
  laser_changes.appliance = /*appliance*/
11541
- ctx2[18];
11826
+ ctx2[17];
11542
11827
  if (dirty[0] & /*theme*/
11543
11828
  2)
11544
11829
  laser_changes.theme = /*theme*/
@@ -11575,7 +11860,7 @@ function create_if_block_16(ctx) {
11575
11860
  props: {
11576
11861
  appliance: (
11577
11862
  /*appliance*/
11578
- ctx[18]
11863
+ ctx[17]
11579
11864
  ),
11580
11865
  theme: (
11581
11866
  /*theme*/
@@ -11607,9 +11892,9 @@ function create_if_block_16(ctx) {
11607
11892
  p(ctx2, dirty) {
11608
11893
  const hand_1_changes = {};
11609
11894
  if (dirty[0] & /*appliance*/
11610
- 262144)
11895
+ 131072)
11611
11896
  hand_1_changes.appliance = /*appliance*/
11612
- ctx2[18];
11897
+ ctx2[17];
11613
11898
  if (dirty[0] & /*theme*/
11614
11899
  2)
11615
11900
  hand_1_changes.theme = /*theme*/
@@ -11709,7 +11994,7 @@ function create_if_block_14(ctx) {
11709
11994
  props: {
11710
11995
  appliance: (
11711
11996
  /*appliance*/
11712
- ctx[18]
11997
+ ctx[17]
11713
11998
  ),
11714
11999
  theme: (
11715
12000
  /*theme*/
@@ -11741,9 +12026,9 @@ function create_if_block_14(ctx) {
11741
12026
  p(ctx2, dirty) {
11742
12027
  const eraser_1_changes = {};
11743
12028
  if (dirty[0] & /*appliance*/
11744
- 262144)
12029
+ 131072)
11745
12030
  eraser_1_changes.appliance = /*appliance*/
11746
- ctx2[18];
12031
+ ctx2[17];
11747
12032
  if (dirty[0] & /*theme*/
11748
12033
  2)
11749
12034
  eraser_1_changes.theme = /*theme*/
@@ -11784,7 +12069,7 @@ function create_if_block_13(ctx) {
11784
12069
  ),
11785
12070
  appliance: (
11786
12071
  /*appliance*/
11787
- ctx[18]
12072
+ ctx[17]
11788
12073
  ),
11789
12074
  theme: (
11790
12075
  /*theme*/
@@ -11819,9 +12104,9 @@ function create_if_block_13(ctx) {
11819
12104
  shapes_changes.app = /*app*/
11820
12105
  ctx2[0];
11821
12106
  if (dirty[0] & /*appliance*/
11822
- 262144)
12107
+ 131072)
11823
12108
  shapes_changes.appliance = /*appliance*/
11824
- ctx2[18];
12109
+ ctx2[17];
11825
12110
  if (dirty[0] & /*theme*/
11826
12111
  2)
11827
12112
  shapes_changes.theme = /*theme*/
@@ -11862,7 +12147,7 @@ function create_if_block_122(ctx) {
11862
12147
  props: {
11863
12148
  appliance: (
11864
12149
  /*appliance*/
11865
- ctx[18]
12150
+ ctx[17]
11866
12151
  ),
11867
12152
  theme: (
11868
12153
  /*theme*/
@@ -11898,9 +12183,9 @@ function create_if_block_122(ctx) {
11898
12183
  p(ctx2, dirty) {
11899
12184
  const text_1_changes = {};
11900
12185
  if (dirty[0] & /*appliance*/
11901
- 262144)
12186
+ 131072)
11902
12187
  text_1_changes.appliance = /*appliance*/
11903
- ctx2[18];
12188
+ ctx2[17];
11904
12189
  if (dirty[0] & /*theme*/
11905
12190
  2)
11906
12191
  text_1_changes.theme = /*theme*/
@@ -11945,7 +12230,7 @@ function create_if_block_11(ctx) {
11945
12230
  ),
11946
12231
  appliance: (
11947
12232
  /*appliance*/
11948
- ctx[18]
12233
+ ctx[17]
11949
12234
  ),
11950
12235
  theme: (
11951
12236
  /*theme*/
@@ -11985,9 +12270,9 @@ function create_if_block_11(ctx) {
11985
12270
  pencil_1_changes.pencilType = /*pencilType*/
11986
12271
  ctx2[16];
11987
12272
  if (dirty[0] & /*appliance*/
11988
- 262144)
12273
+ 131072)
11989
12274
  pencil_1_changes.appliance = /*appliance*/
11990
- ctx2[18];
12275
+ ctx2[17];
11991
12276
  if (dirty[0] & /*theme*/
11992
12277
  2)
11993
12278
  pencil_1_changes.theme = /*theme*/
@@ -12028,7 +12313,7 @@ function create_if_block_10(ctx) {
12028
12313
  props: {
12029
12314
  appliance: (
12030
12315
  /*appliance*/
12031
- ctx[18]
12316
+ ctx[17]
12032
12317
  ),
12033
12318
  theme: (
12034
12319
  /*theme*/
@@ -12060,9 +12345,9 @@ function create_if_block_10(ctx) {
12060
12345
  p(ctx2, dirty) {
12061
12346
  const selector_1_changes = {};
12062
12347
  if (dirty[0] & /*appliance*/
12063
- 262144)
12348
+ 131072)
12064
12349
  selector_1_changes.appliance = /*appliance*/
12065
- ctx2[18];
12350
+ ctx2[17];
12066
12351
  if (dirty[0] & /*theme*/
12067
12352
  2)
12068
12353
  selector_1_changes.theme = /*theme*/
@@ -12099,7 +12384,7 @@ function create_if_block_9(ctx) {
12099
12384
  props: {
12100
12385
  appliance: (
12101
12386
  /*appliance*/
12102
- ctx[18]
12387
+ ctx[17]
12103
12388
  ),
12104
12389
  theme: (
12105
12390
  /*theme*/
@@ -12131,9 +12416,9 @@ function create_if_block_9(ctx) {
12131
12416
  p(ctx2, dirty) {
12132
12417
  const clicker_1_changes = {};
12133
12418
  if (dirty[0] & /*appliance*/
12134
- 262144)
12419
+ 131072)
12135
12420
  clicker_1_changes.appliance = /*appliance*/
12136
- ctx2[18];
12421
+ ctx2[17];
12137
12422
  if (dirty[0] & /*theme*/
12138
12423
  2)
12139
12424
  clicker_1_changes.theme = /*theme*/
@@ -12183,47 +12468,47 @@ function create_each_block_1(ctx) {
12183
12468
  function select_block_type(ctx2, dirty) {
12184
12469
  if (
12185
12470
  /*item*/
12186
- ctx2[59] === "clicker"
12471
+ ctx2[60] === "clicker"
12187
12472
  )
12188
12473
  return 0;
12189
12474
  if (
12190
12475
  /*item*/
12191
- ctx2[59] === "selector"
12476
+ ctx2[60] === "selector"
12192
12477
  )
12193
12478
  return 1;
12194
12479
  if (
12195
12480
  /*item*/
12196
- ctx2[59] === "pencil"
12481
+ ctx2[60] === "pencil"
12197
12482
  )
12198
12483
  return 2;
12199
12484
  if (
12200
12485
  /*item*/
12201
- ctx2[59] === "text"
12486
+ ctx2[60] === "text"
12202
12487
  )
12203
12488
  return 3;
12204
12489
  if (
12205
12490
  /*item*/
12206
- ctx2[59] === "shapes"
12491
+ ctx2[60] === "shapes"
12207
12492
  )
12208
12493
  return 4;
12209
12494
  if (
12210
12495
  /*item*/
12211
- ctx2[59] === "eraser"
12496
+ ctx2[60] === "eraser"
12212
12497
  )
12213
12498
  return 5;
12214
12499
  if (
12215
12500
  /*item*/
12216
- ctx2[59] === "clear"
12501
+ ctx2[60] === "clear"
12217
12502
  )
12218
12503
  return 6;
12219
12504
  if (
12220
12505
  /*item*/
12221
- ctx2[59] === "hand"
12506
+ ctx2[60] === "hand"
12222
12507
  )
12223
12508
  return 7;
12224
12509
  if (
12225
12510
  /*item*/
12226
- ctx2[59] === "laserPointer"
12511
+ ctx2[60] === "laserPointer"
12227
12512
  )
12228
12513
  return 8;
12229
12514
  return -1;
@@ -12360,7 +12645,7 @@ function create_if_block_8(ctx) {
12360
12645
  ]) : {};
12361
12646
  if (dirty[0] & /*theme*/
12362
12647
  2 | dirty[2] & /*$$scope*/
12363
- 1) {
12648
+ 2) {
12364
12649
  button_changes.$$scope = { dirty, ctx: ctx2 };
12365
12650
  }
12366
12651
  button.$set(button_changes);
@@ -12462,7 +12747,7 @@ function create_if_block_7(ctx) {
12462
12747
  ctx2[3];
12463
12748
  if (dirty[0] & /*theme*/
12464
12749
  2 | dirty[2] & /*$$scope*/
12465
- 1) {
12750
+ 2) {
12466
12751
  button_changes.$$scope = { dirty, ctx: ctx2 };
12467
12752
  }
12468
12753
  button.$set(button_changes);
@@ -12531,7 +12816,7 @@ function create_if_block14(ctx) {
12531
12816
  let if_block2;
12532
12817
  let if_block2_anchor;
12533
12818
  let current;
12534
- const if_block_creators = [create_if_block_5, create_if_block_6];
12819
+ const if_block_creators = [create_if_block_52, create_if_block_6];
12535
12820
  const if_blocks = [];
12536
12821
  function select_block_type_1(ctx2, dirty) {
12537
12822
  if (
@@ -12549,7 +12834,7 @@ function create_if_block14(ctx) {
12549
12834
  if (~(current_block_type_index = select_block_type_1(ctx))) {
12550
12835
  if_block0 = if_blocks[current_block_type_index] = if_block_creators[current_block_type_index](ctx);
12551
12836
  }
12552
- const if_block_creators_1 = [create_if_block_3, create_if_block_4];
12837
+ const if_block_creators_1 = [create_if_block_32, create_if_block_42];
12553
12838
  const if_blocks_1 = [];
12554
12839
  function select_block_type_2(ctx2, dirty) {
12555
12840
  if (
@@ -12768,7 +13053,7 @@ function create_if_block_6(ctx) {
12768
13053
  ]) : {};
12769
13054
  if (dirty[0] & /*theme*/
12770
13055
  2 | dirty[2] & /*$$scope*/
12771
- 1) {
13056
+ 2) {
12772
13057
  button_changes.$$scope = { dirty, ctx: ctx2 };
12773
13058
  }
12774
13059
  button.$set(button_changes);
@@ -12788,7 +13073,7 @@ function create_if_block_6(ctx) {
12788
13073
  }
12789
13074
  };
12790
13075
  }
12791
- function create_if_block_5(ctx) {
13076
+ function create_if_block_52(ctx) {
12792
13077
  let button;
12793
13078
  let current;
12794
13079
  const button_spread_levels = [
@@ -12806,8 +13091,8 @@ function create_if_block_5(ctx) {
12806
13091
  button = new Button_default({ props: button_props });
12807
13092
  button.$on(
12808
13093
  "click",
12809
- /*pencil*/
12810
- ctx[28]
13094
+ /*usePencil*/
13095
+ ctx[34]
12811
13096
  );
12812
13097
  return {
12813
13098
  c() {
@@ -12830,7 +13115,7 @@ function create_if_block_5(ctx) {
12830
13115
  ]) : {};
12831
13116
  if (dirty[0] & /*theme*/
12832
13117
  2 | dirty[2] & /*$$scope*/
12833
- 1) {
13118
+ 2) {
12834
13119
  button_changes.$$scope = { dirty, ctx: ctx2 };
12835
13120
  }
12836
13121
  button.$set(button_changes);
@@ -12928,7 +13213,7 @@ function create_default_slot_43(ctx) {
12928
13213
  }
12929
13214
  };
12930
13215
  }
12931
- function create_if_block_4(ctx) {
13216
+ function create_if_block_42(ctx) {
12932
13217
  let button;
12933
13218
  let current;
12934
13219
  const button_spread_levels = [
@@ -12947,7 +13232,7 @@ function create_if_block_4(ctx) {
12947
13232
  button.$on(
12948
13233
  "click",
12949
13234
  /*useLaserPen*/
12950
- ctx[34]
13235
+ ctx[35]
12951
13236
  );
12952
13237
  return {
12953
13238
  c() {
@@ -12970,7 +13255,7 @@ function create_if_block_4(ctx) {
12970
13255
  ]) : {};
12971
13256
  if (dirty[0] & /*theme*/
12972
13257
  2 | dirty[2] & /*$$scope*/
12973
- 1) {
13258
+ 2) {
12974
13259
  button_changes.$$scope = { dirty, ctx: ctx2 };
12975
13260
  }
12976
13261
  button.$set(button_changes);
@@ -12990,7 +13275,7 @@ function create_if_block_4(ctx) {
12990
13275
  }
12991
13276
  };
12992
13277
  }
12993
- function create_if_block_3(ctx) {
13278
+ function create_if_block_32(ctx) {
12994
13279
  let button;
12995
13280
  let current;
12996
13281
  const button_spread_levels = [
@@ -13027,7 +13312,7 @@ function create_if_block_3(ctx) {
13027
13312
  ]) : {};
13028
13313
  if (dirty[0] & /*theme*/
13029
13314
  2 | dirty[2] & /*$$scope*/
13030
- 1) {
13315
+ 2) {
13031
13316
  button_changes.$$scope = { dirty, ctx: ctx2 };
13032
13317
  }
13033
13318
  button.$set(button_changes);
@@ -13144,7 +13429,7 @@ function create_if_block_22(ctx) {
13144
13429
  button.$on(
13145
13430
  "click",
13146
13431
  /*useMarkPen*/
13147
- ctx[35]
13432
+ ctx[36]
13148
13433
  );
13149
13434
  return {
13150
13435
  c() {
@@ -13167,7 +13452,7 @@ function create_if_block_22(ctx) {
13167
13452
  ]) : {};
13168
13453
  if (dirty[0] & /*theme*/
13169
13454
  2 | dirty[2] & /*$$scope*/
13170
- 1) {
13455
+ 2) {
13171
13456
  button_changes.$$scope = { dirty, ctx: ctx2 };
13172
13457
  }
13173
13458
  button.$set(button_changes);
@@ -13224,7 +13509,7 @@ function create_if_block_19(ctx) {
13224
13509
  ]) : {};
13225
13510
  if (dirty[0] & /*theme*/
13226
13511
  2 | dirty[2] & /*$$scope*/
13227
- 1) {
13512
+ 2) {
13228
13513
  button_changes.$$scope = { dirty, ctx: ctx2 };
13229
13514
  }
13230
13515
  button.$set(button_changes);
@@ -13333,7 +13618,7 @@ function create_each_block4(ctx) {
13333
13618
  let span;
13334
13619
  let t1_value = (
13335
13620
  /*label*/
13336
- ctx[52] + ""
13621
+ ctx[53] + ""
13337
13622
  );
13338
13623
  let t1;
13339
13624
  let span_class_value;
@@ -13355,40 +13640,40 @@ function create_each_block4(ctx) {
13355
13640
  attr(img, "class", img_class_value = name5 + "-app-btn-icon " + /*theme*/
13356
13641
  ctx[1]);
13357
13642
  if (!src_url_equal(img.src, img_src_value = /*icon*/
13358
- ctx[51]))
13643
+ ctx[52]))
13359
13644
  attr(img, "src", img_src_value);
13360
13645
  attr(img, "alt", img_alt_value = /*kind*/
13361
- ctx[53]);
13646
+ ctx[54]);
13362
13647
  attr(img, "title", img_title_value = /*label*/
13363
- ctx[52]);
13648
+ ctx[53]);
13364
13649
  attr(span, "class", span_class_value = name5 + "-app-btn-text " + /*theme*/
13365
13650
  ctx[1]);
13366
13651
  attr(button, "class", button_class_value = name5 + "-app-btn " + /*kind*/
13367
- ctx[53] + " " + /*theme*/
13652
+ ctx[54] + " " + /*theme*/
13368
13653
  ctx[1]);
13369
13654
  attr(button, "title", button_title_value = /*label*/
13370
- ctx[52] + /*state*/
13371
- (ctx[55] && /*state*/
13372
- ctx[55].reason ? ": " + /*state*/
13373
- ctx[55].reason : ""));
13655
+ ctx[53] + /*state*/
13656
+ (ctx[56] && /*state*/
13657
+ ctx[56].reason ? ": " + /*state*/
13658
+ ctx[56].reason : ""));
13374
13659
  attr(button, "data-app-kind", button_data_app_kind_value = /*netless_app*/
13375
- ctx[50].kind);
13660
+ ctx[51].kind);
13376
13661
  button.disabled = button_disabled_value = /*state*/
13377
- ctx[55] && /*state*/
13378
- ctx[55].status !== "idle";
13662
+ ctx[56] && /*state*/
13663
+ ctx[56].status !== "idle";
13379
13664
  toggle_class(
13380
13665
  button,
13381
13666
  "is-loading",
13382
13667
  /*state*/
13383
- ctx[55] && /*state*/
13384
- ctx[55].status === "loading"
13668
+ ctx[56] && /*state*/
13669
+ ctx[56].status === "loading"
13385
13670
  );
13386
13671
  toggle_class(
13387
13672
  button,
13388
13673
  "is-failed",
13389
13674
  /*state*/
13390
- ctx[55] && /*state*/
13391
- ctx[55].status === "failed"
13675
+ ctx[56] && /*state*/
13676
+ ctx[56].status === "failed"
13392
13677
  );
13393
13678
  },
13394
13679
  m(target, anchor) {
@@ -13402,9 +13687,9 @@ function create_each_block4(ctx) {
13402
13687
  dispose = listen(button, "click", function() {
13403
13688
  if (is_function(
13404
13689
  /*on_click*/
13405
- ctx[56]
13690
+ ctx[57]
13406
13691
  ))
13407
- ctx[56].apply(this, arguments);
13692
+ ctx[57].apply(this, arguments);
13408
13693
  });
13409
13694
  mounted = true;
13410
13695
  }
@@ -13418,22 +13703,22 @@ function create_each_block4(ctx) {
13418
13703
  }
13419
13704
  if (dirty[0] & /*$apps*/
13420
13705
  2097152 && !src_url_equal(img.src, img_src_value = /*icon*/
13421
- ctx[51])) {
13706
+ ctx[52])) {
13422
13707
  attr(img, "src", img_src_value);
13423
13708
  }
13424
13709
  if (dirty[0] & /*$apps*/
13425
13710
  2097152 && img_alt_value !== (img_alt_value = /*kind*/
13426
- ctx[53])) {
13711
+ ctx[54])) {
13427
13712
  attr(img, "alt", img_alt_value);
13428
13713
  }
13429
13714
  if (dirty[0] & /*$apps*/
13430
13715
  2097152 && img_title_value !== (img_title_value = /*label*/
13431
- ctx[52])) {
13716
+ ctx[53])) {
13432
13717
  attr(img, "title", img_title_value);
13433
13718
  }
13434
13719
  if (dirty[0] & /*$apps*/
13435
13720
  2097152 && t1_value !== (t1_value = /*label*/
13436
- ctx[52] + ""))
13721
+ ctx[53] + ""))
13437
13722
  set_data(t1, t1_value);
13438
13723
  if (dirty[0] & /*theme*/
13439
13724
  2 && span_class_value !== (span_class_value = name5 + "-app-btn-text " + /*theme*/
@@ -13442,27 +13727,27 @@ function create_each_block4(ctx) {
13442
13727
  }
13443
13728
  if (dirty[0] & /*$apps, theme*/
13444
13729
  2097154 && button_class_value !== (button_class_value = name5 + "-app-btn " + /*kind*/
13445
- ctx[53] + " " + /*theme*/
13730
+ ctx[54] + " " + /*theme*/
13446
13731
  ctx[1])) {
13447
13732
  attr(button, "class", button_class_value);
13448
13733
  }
13449
13734
  if (dirty[0] & /*$apps, $status*/
13450
13735
  6291456 && button_title_value !== (button_title_value = /*label*/
13451
- ctx[52] + /*state*/
13452
- (ctx[55] && /*state*/
13453
- ctx[55].reason ? ": " + /*state*/
13454
- ctx[55].reason : ""))) {
13736
+ ctx[53] + /*state*/
13737
+ (ctx[56] && /*state*/
13738
+ ctx[56].reason ? ": " + /*state*/
13739
+ ctx[56].reason : ""))) {
13455
13740
  attr(button, "title", button_title_value);
13456
13741
  }
13457
13742
  if (dirty[0] & /*$apps*/
13458
13743
  2097152 && button_data_app_kind_value !== (button_data_app_kind_value = /*netless_app*/
13459
- ctx[50].kind)) {
13744
+ ctx[51].kind)) {
13460
13745
  attr(button, "data-app-kind", button_data_app_kind_value);
13461
13746
  }
13462
13747
  if (dirty[0] & /*$status, $apps*/
13463
13748
  6291456 && button_disabled_value !== (button_disabled_value = /*state*/
13464
- ctx[55] && /*state*/
13465
- ctx[55].status !== "idle")) {
13749
+ ctx[56] && /*state*/
13750
+ ctx[56].status !== "idle")) {
13466
13751
  button.disabled = button_disabled_value;
13467
13752
  }
13468
13753
  if (dirty[0] & /*$apps, theme, $status, $apps*/
@@ -13471,8 +13756,8 @@ function create_each_block4(ctx) {
13471
13756
  button,
13472
13757
  "is-loading",
13473
13758
  /*state*/
13474
- ctx[55] && /*state*/
13475
- ctx[55].status === "loading"
13759
+ ctx[56] && /*state*/
13760
+ ctx[56].status === "loading"
13476
13761
  );
13477
13762
  }
13478
13763
  if (dirty[0] & /*$apps, theme, $status, $apps*/
@@ -13481,8 +13766,8 @@ function create_each_block4(ctx) {
13481
13766
  button,
13482
13767
  "is-failed",
13483
13768
  /*state*/
13484
- ctx[55] && /*state*/
13485
- ctx[55].status === "failed"
13769
+ ctx[56] && /*state*/
13770
+ ctx[56].status === "failed"
13486
13771
  );
13487
13772
  }
13488
13773
  },
@@ -13771,11 +14056,11 @@ function create_fragment71(ctx) {
13771
14056
  append(div3, div2);
13772
14057
  append(div3, t6);
13773
14058
  mount_component(strokecolor0, div3, null);
13774
- ctx[43](div3);
14059
+ ctx[44](div3);
13775
14060
  append(div9, t7);
13776
14061
  append(div9, div4);
13777
14062
  mount_component(textcolor, div4, null);
13778
- ctx[44](div4);
14063
+ ctx[45](div4);
13779
14064
  append(div9, t8);
13780
14065
  append(div9, div7);
13781
14066
  mount_component(selectshapes, div7, null);
@@ -13787,7 +14072,7 @@ function create_fragment71(ctx) {
13787
14072
  append(div7, div6);
13788
14073
  append(div7, t12);
13789
14074
  mount_component(strokecolor1, div7, null);
13790
- ctx[45](div7);
14075
+ ctx[46](div7);
13791
14076
  append(div9, t13);
13792
14077
  append(div9, div8);
13793
14078
  for (let i = 0; i < each_blocks.length; i += 1) {
@@ -13795,7 +14080,7 @@ function create_fragment71(ctx) {
13795
14080
  each_blocks[i].m(div8, null);
13796
14081
  }
13797
14082
  }
13798
- ctx[47](div8);
14083
+ ctx[48](div8);
13799
14084
  current = true;
13800
14085
  if (!mounted) {
13801
14086
  dispose = [
@@ -13841,7 +14126,7 @@ function create_fragment71(ctx) {
13841
14126
  check_outros();
13842
14127
  }
13843
14128
  if (dirty[0] & /*appliance, theme, btn_props, c, clicker, items, selector, pencilType, pencil_panel, pencil, text_panel, text, app, t, shapes_panel, eraser*/
13844
- 2081799299 | dirty[1] & /*clear, hand, laserPointer*/
14129
+ 2081668227 | dirty[1] & /*clear, hand, laserPointer*/
13845
14130
  7) {
13846
14131
  each_value_1 = /*items*/
13847
14132
  ctx2[7];
@@ -14132,15 +14417,15 @@ function create_fragment71(ctx) {
14132
14417
  if_block3.d();
14133
14418
  destroy_component(strokewidth0);
14134
14419
  destroy_component(strokecolor0);
14135
- ctx[43](null);
14136
- destroy_component(textcolor);
14137
14420
  ctx[44](null);
14421
+ destroy_component(textcolor);
14422
+ ctx[45](null);
14138
14423
  destroy_component(selectshapes);
14139
14424
  destroy_component(strokewidth1);
14140
14425
  destroy_component(strokecolor1);
14141
- ctx[45](null);
14426
+ ctx[46](null);
14142
14427
  destroy_each(each_blocks, detaching);
14143
- ctx[47](null);
14428
+ ctx[48](null);
14144
14429
  mounted = false;
14145
14430
  run_all(dispose);
14146
14431
  }
@@ -14160,8 +14445,8 @@ function instance71($$self, $$props, $$invalidate) {
14160
14445
  let hasUseMarkPen;
14161
14446
  let pencilType;
14162
14447
  let $top;
14163
- let $memberState, $$unsubscribe_memberState = noop, $$subscribe_memberState = () => ($$unsubscribe_memberState(), $$unsubscribe_memberState = subscribe(memberState, ($$value) => $$invalidate(41, $memberState = $$value)), memberState);
14164
- let $scroll_height, $$unsubscribe_scroll_height = noop, $$subscribe_scroll_height = () => ($$unsubscribe_scroll_height(), $$unsubscribe_scroll_height = subscribe(scroll_height, ($$value) => $$invalidate(42, $scroll_height = $$value)), scroll_height);
14448
+ let $memberState, $$unsubscribe_memberState = noop, $$subscribe_memberState = () => ($$unsubscribe_memberState(), $$unsubscribe_memberState = subscribe(memberState, ($$value) => $$invalidate(42, $memberState = $$value)), memberState);
14449
+ let $scroll_height, $$unsubscribe_scroll_height = noop, $$subscribe_scroll_height = () => ($$unsubscribe_scroll_height(), $$unsubscribe_scroll_height = subscribe(scroll_height, ($$value) => $$invalidate(43, $scroll_height = $$value)), scroll_height);
14165
14450
  let $apps;
14166
14451
  let $status, $$unsubscribe_status = noop, $$subscribe_status = () => ($$unsubscribe_status(), $$unsubscribe_status = subscribe(status, ($$value) => $$invalidate(22, $status = $$value)), status);
14167
14452
  component_subscribe($$self, apps, ($$value) => $$invalidate(21, $apps = $$value));
@@ -14186,7 +14471,7 @@ function instance71($$self, $$props, $$invalidate) {
14186
14471
  let apps_panel;
14187
14472
  let btn_props;
14188
14473
  let top = writable(0);
14189
- component_subscribe($$self, top, (value) => $$invalidate(49, $top = value));
14474
+ component_subscribe($$self, top, (value) => $$invalidate(50, $top = value));
14190
14475
  function scroll_up() {
14191
14476
  set_store_value(top, $top = clamp($top - 32 - 4, 0, max_scroll), $top);
14192
14477
  }
@@ -14200,15 +14485,18 @@ function instance71($$self, $$props, $$invalidate) {
14200
14485
  app == null ? void 0 : app.setAppliance("selector");
14201
14486
  }
14202
14487
  function pencil() {
14203
- var _a;
14204
14488
  if (hasAppliancePlugin) {
14205
- (_a = app == null ? void 0 : app.appliancePlugin) == null ? void 0 : _a.setMemberState({
14206
- currentApplianceName: "pencil",
14207
- useLaserPen: false,
14208
- strokeOpacity: 1
14209
- });
14489
+ if (appliance !== "pencil") {
14490
+ if (pencilType === "mark") {
14491
+ useMarkPen();
14492
+ } else if (pencilType === "laser") {
14493
+ useLaserPen();
14494
+ } else {
14495
+ usePencil();
14496
+ }
14497
+ }
14210
14498
  } else {
14211
- app == null ? void 0 : app.setAppliance("pencil");
14499
+ usePencil();
14212
14500
  }
14213
14501
  }
14214
14502
  function text2() {
@@ -14226,6 +14514,18 @@ function instance71($$self, $$props, $$invalidate) {
14226
14514
  function clear() {
14227
14515
  app == null ? void 0 : app.cleanCurrentScene();
14228
14516
  }
14517
+ function usePencil() {
14518
+ var _a;
14519
+ if (hasAppliancePlugin) {
14520
+ (_a = app == null ? void 0 : app.appliancePlugin) == null ? void 0 : _a.setMemberState({
14521
+ currentApplianceName: "pencil",
14522
+ useLaserPen: false,
14523
+ strokeOpacity: 1
14524
+ });
14525
+ } else {
14526
+ app == null ? void 0 : app.setAppliance("pencil");
14527
+ }
14528
+ }
14229
14529
  function useLaserPen() {
14230
14530
  var _a;
14231
14531
  (_a = app == null ? void 0 : app.appliancePlugin) == null ? void 0 : _a.setMemberState({
@@ -14282,7 +14582,7 @@ function instance71($$self, $$props, $$invalidate) {
14282
14582
  if ("scroll_height" in $$props2)
14283
14583
  $$subscribe_scroll_height($$invalidate(4, scroll_height = $$props2.scroll_height));
14284
14584
  if ("computed_height" in $$props2)
14285
- $$invalidate(36, computed_height = $$props2.computed_height);
14585
+ $$invalidate(37, computed_height = $$props2.computed_height);
14286
14586
  if ("scrollable" in $$props2)
14287
14587
  $$invalidate(5, scrollable = $$props2.scrollable);
14288
14588
  if ("placement" in $$props2)
@@ -14311,11 +14611,11 @@ function instance71($$self, $$props, $$invalidate) {
14311
14611
  }
14312
14612
  if ($$self.$$.dirty[0] & /*app*/
14313
14613
  1) {
14314
- $$invalidate(40, hotkeys = app == null ? void 0 : app.hotKeys);
14614
+ $$invalidate(41, hotkeys = app == null ? void 0 : app.hotKeys);
14315
14615
  }
14316
14616
  if ($$self.$$.dirty[0] & /*t*/
14317
14617
  1024 | $$self.$$.dirty[1] & /*hotkeys*/
14318
- 512) {
14618
+ 1024) {
14319
14619
  $$invalidate(20, c = {
14320
14620
  clicker: tooltip(t.clicker, hotkeys == null ? void 0 : hotkeys.changeToClick),
14321
14621
  selector: tooltip(t.selector, hotkeys == null ? void 0 : hotkeys.changeToSelector),
@@ -14331,32 +14631,32 @@ function instance71($$self, $$props, $$invalidate) {
14331
14631
  $$subscribe_memberState($$invalidate(19, memberState = app == null ? void 0 : app.memberState));
14332
14632
  }
14333
14633
  if ($$self.$$.dirty[1] & /*$memberState*/
14334
- 1024) {
14335
- $$invalidate(18, appliance = $memberState == null ? void 0 : $memberState.currentApplianceName);
14634
+ 2048) {
14635
+ $$invalidate(17, appliance = $memberState == null ? void 0 : $memberState.currentApplianceName);
14336
14636
  }
14337
14637
  if ($$self.$$.dirty[0] & /*app*/
14338
14638
  1) {
14339
- $$subscribe_status($$invalidate(17, status = app == null ? void 0 : app.appsStatus));
14639
+ $$subscribe_status($$invalidate(18, status = app == null ? void 0 : app.appsStatus));
14340
14640
  }
14341
14641
  if ($$self.$$.dirty[0] & /*scrollable*/
14342
14642
  32 | $$self.$$.dirty[1] & /*$scroll_height, computed_height*/
14343
- 2080) {
14643
+ 4160) {
14344
14644
  max_scroll = scrollable ? $scroll_height + (32 + 8) * 2 - computed_height : 0;
14345
14645
  }
14346
14646
  if ($$self.$$.dirty[0] & /*app*/
14347
14647
  1) {
14348
- $$invalidate(37, hasAppliancePlugin = !!(app == null ? void 0 : app.appliancePlugin));
14648
+ $$invalidate(38, hasAppliancePlugin = !!(app == null ? void 0 : app.appliancePlugin));
14349
14649
  }
14350
14650
  if ($$self.$$.dirty[1] & /*hasAppliancePlugin, $memberState*/
14351
- 1088) {
14352
- $$invalidate(39, hasUseLaserPen = hasAppliancePlugin && ($memberState == null ? void 0 : $memberState.useLaserPen) || false);
14651
+ 2176) {
14652
+ $$invalidate(40, hasUseLaserPen = hasAppliancePlugin && ($memberState == null ? void 0 : $memberState.useLaserPen) || false);
14353
14653
  }
14354
14654
  if ($$self.$$.dirty[1] & /*hasAppliancePlugin, $memberState*/
14355
- 1088) {
14356
- $$invalidate(38, hasUseMarkPen = hasAppliancePlugin && ($memberState == null ? void 0 : $memberState.strokeOpacity) === 0.5 || false);
14655
+ 2176) {
14656
+ $$invalidate(39, hasUseMarkPen = hasAppliancePlugin && ($memberState == null ? void 0 : $memberState.strokeOpacity) === 0.5 || false);
14357
14657
  }
14358
14658
  if ($$self.$$.dirty[1] & /*hasUseLaserPen, hasUseMarkPen*/
14359
- 384) {
14659
+ 768) {
14360
14660
  $$invalidate(16, pencilType = hasUseLaserPen ? "laser" : hasUseMarkPen ? "mark" : "pencil");
14361
14661
  }
14362
14662
  };
@@ -14378,8 +14678,8 @@ function instance71($$self, $$props, $$invalidate) {
14378
14678
  apps_panel,
14379
14679
  btn_props,
14380
14680
  pencilType,
14381
- status,
14382
14681
  appliance,
14682
+ status,
14383
14683
  memberState,
14384
14684
  c,
14385
14685
  $apps,
@@ -14395,6 +14695,7 @@ function instance71($$self, $$props, $$invalidate) {
14395
14695
  hand,
14396
14696
  laserPointer,
14397
14697
  clear,
14698
+ usePencil,
14398
14699
  useLaserPen,
14399
14700
  useMarkPen,
14400
14701
  computed_height,
@@ -14426,7 +14727,7 @@ var Contents = class extends SvelteComponent {
14426
14727
  language: 2,
14427
14728
  disabled: 3,
14428
14729
  scroll_height: 4,
14429
- computed_height: 36,
14730
+ computed_height: 37,
14430
14731
  scrollable: 5,
14431
14732
  placement: 6,
14432
14733
  items: 7,
@@ -14903,7 +15204,7 @@ function get_each_context5(ctx, list, i) {
14903
15204
  child_ctx[25] = list[i];
14904
15205
  return child_ctx;
14905
15206
  }
14906
- function create_else_block_12(ctx) {
15207
+ function create_else_block_13(ctx) {
14907
15208
  var _a;
14908
15209
  let icon;
14909
15210
  let current;
@@ -15193,7 +15494,7 @@ function create_default_slot_25(ctx) {
15193
15494
  let if_block;
15194
15495
  let if_block_anchor;
15195
15496
  let current;
15196
- const if_block_creators = [create_if_block_110, create_if_block_23, create_else_block_12];
15497
+ const if_block_creators = [create_if_block_110, create_if_block_23, create_else_block_13];
15197
15498
  const if_blocks = [];
15198
15499
  function select_block_type(ctx2, dirty) {
15199
15500
  if (
@@ -16248,7 +16549,7 @@ var ReplayFastboard = class extends SvelteComponent {
16248
16549
  var ReplayFastboard_default = ReplayFastboard;
16249
16550
 
16250
16551
  // src/components/Fastboard/Fastboard.svelte
16251
- function create_if_block_32(ctx) {
16552
+ function create_if_block_33(ctx) {
16252
16553
  let toolbar;
16253
16554
  let current;
16254
16555
  toolbar = new Toolbar_default({
@@ -16505,7 +16806,7 @@ function create_fragment75(ctx) {
16505
16806
  let dispose;
16506
16807
  let if_block0 = (
16507
16808
  /*config*/
16508
- ((_a = ctx[3].toolbar) == null ? void 0 : _a.enable) !== false && create_if_block_32(ctx)
16809
+ ((_a = ctx[3].toolbar) == null ? void 0 : _a.enable) !== false && create_if_block_33(ctx)
16509
16810
  );
16510
16811
  let if_block1 = (
16511
16812
  /*config*/
@@ -16608,7 +16909,7 @@ function create_fragment75(ctx) {
16608
16909
  transition_in(if_block0, 1);
16609
16910
  }
16610
16911
  } else {
16611
- if_block0 = create_if_block_32(ctx2);
16912
+ if_block0 = create_if_block_33(ctx2);
16612
16913
  if_block0.c();
16613
16914
  transition_in(if_block0, 1);
16614
16915
  if_block0.m(div1, null);