Spaces:
Running
Running
kwabs22
commited on
Commit
·
ac0a593
1
Parent(s):
a04936b
Counter and Copy Paste
Browse files- bundle.css +2 -0
- bundle.js +933 -236
bundle.css
CHANGED
@@ -5,4 +5,6 @@
|
|
5 |
#overlayText.svelte-c2nwl9{position:absolute;top:3%;left:3%;color:black;background-color:white;font:bold 15;border:black solid}
|
6 |
.button.svelte-cpjgti{cursor:allowed}.button-at-end.svelte-cpjgti{background-color:red;color:white;cursor:not-allowed}
|
7 |
.component-containter.svelte-bsj1sx{background-color:rgba(113, 239, 97, 0.626)}.comment.svelte-bsj1sx{border:1px solid #2e7f41;padding:8px;margin-top:8px}.top-level-comment.svelte-bsj1sx{border:1px solid blue;background-color:rgba(42, 114, 215, 0.5);margin-bottom:15px}
|
|
|
|
|
8 |
main.svelte-1tky8bj{text-align:center;padding:1em;max-width:240px;margin:0 auto}h1.svelte-1tky8bj{color:#ff3e00;text-transform:uppercase;font-size:4em;font-weight:100}@media(min-width: 640px){main.svelte-1tky8bj{max-width:none}}
|
|
|
5 |
#overlayText.svelte-c2nwl9{position:absolute;top:3%;left:3%;color:black;background-color:white;font:bold 15;border:black solid}
|
6 |
.button.svelte-cpjgti{cursor:allowed}.button-at-end.svelte-cpjgti{background-color:red;color:white;cursor:not-allowed}
|
7 |
.component-containter.svelte-bsj1sx{background-color:rgba(113, 239, 97, 0.626)}.comment.svelte-bsj1sx{border:1px solid #2e7f41;padding:8px;margin-top:8px}.top-level-comment.svelte-bsj1sx{border:1px solid blue;background-color:rgba(42, 114, 215, 0.5);margin-bottom:15px}
|
8 |
+
.item.svelte-bmbf24{cursor:pointer;margin:5px;padding:5px;border:1px solid #ccc;border-radius:4px;background-color:white}textarea.svelte-bmbf24{width:100%;height:100px;margin-bottom:10px}
|
9 |
+
.word-button.svelte-13vjncp{margin:2px;padding:5px;color:wheat}input.svelte-13vjncp,button.svelte-13vjncp{margin:5px}
|
10 |
main.svelte-1tky8bj{text-align:center;padding:1em;max-width:240px;margin:0 auto}h1.svelte-1tky8bj{color:#ff3e00;text-transform:uppercase;font-size:4em;font-weight:100}@media(min-width: 640px){main.svelte-1tky8bj{max-width:none}}
|
bundle.js
CHANGED
@@ -340,6 +340,11 @@ var app = (function () {
|
|
340 |
callback();
|
341 |
}
|
342 |
}
|
|
|
|
|
|
|
|
|
|
|
343 |
function outro_and_destroy_block(block, lookup) {
|
344 |
transition_out(block, 1, 1, () => {
|
345 |
lookup.delete(block.key);
|
@@ -655,17 +660,17 @@ var app = (function () {
|
|
655 |
|
656 |
/* src\VideoGradioComponentBrainstorming.svelte generated by Svelte v3.59.2 */
|
657 |
|
658 |
-
const { console: console_1$
|
659 |
-
const file$
|
660 |
|
661 |
-
function get_each_context$
|
662 |
const child_ctx = ctx.slice();
|
663 |
child_ctx[15] = list[i];
|
664 |
return child_ctx;
|
665 |
}
|
666 |
|
667 |
// (85:4) {#each kitchenOptions as option}
|
668 |
-
function create_each_block$
|
669 |
let option;
|
670 |
let t_value = /*option*/ ctx[15] + "";
|
671 |
let t;
|
@@ -676,7 +681,7 @@ var app = (function () {
|
|
676 |
t = text(t_value);
|
677 |
option.__value = /*option*/ ctx[15];
|
678 |
option.value = option.__value;
|
679 |
-
add_location(option, file$
|
680 |
},
|
681 |
m: function mount(target, anchor) {
|
682 |
insert_dev(target, option, anchor);
|
@@ -690,7 +695,7 @@ var app = (function () {
|
|
690 |
|
691 |
dispatch_dev("SvelteRegisterBlock", {
|
692 |
block,
|
693 |
-
id: create_each_block$
|
694 |
type: "each",
|
695 |
source: "(85:4) {#each kitchenOptions as option}",
|
696 |
ctx
|
@@ -699,7 +704,7 @@ var app = (function () {
|
|
699 |
return block;
|
700 |
}
|
701 |
|
702 |
-
function create_fragment$
|
703 |
let h1;
|
704 |
let t1;
|
705 |
let div1;
|
@@ -726,7 +731,7 @@ var app = (function () {
|
|
726 |
let each_blocks = [];
|
727 |
|
728 |
for (let i = 0; i < each_value.length; i += 1) {
|
729 |
-
each_blocks[i] = create_each_block$
|
730 |
}
|
731 |
|
732 |
const block = {
|
@@ -756,34 +761,34 @@ var app = (function () {
|
|
756 |
each_blocks[i].c();
|
757 |
}
|
758 |
|
759 |
-
add_location(h1, file$
|
760 |
attr_dev(track, "kind", "captions");
|
761 |
if (!src_url_equal(track.src, track_src_value = "path/to/your/captions/file.vtt")) attr_dev(track, "src", track_src_value);
|
762 |
attr_dev(track, "srclang", "en");
|
763 |
attr_dev(track, "label", "English");
|
764 |
-
add_location(track, file$
|
765 |
attr_dev(video, "id", "videoCanvas");
|
766 |
video.autoplay = true;
|
767 |
attr_dev(video, "class", "svelte-ufd3fo");
|
768 |
-
add_location(video, file$
|
769 |
attr_dev(div0, "id", "overlayText");
|
770 |
attr_dev(div0, "class", "svelte-ufd3fo");
|
771 |
-
add_location(div0, file$
|
772 |
attr_dev(div1, "id", "videoContainer");
|
773 |
attr_dev(div1, "class", "svelte-ufd3fo");
|
774 |
-
add_location(div1, file$
|
775 |
attr_dev(canvas_1, "id", "myCanvas");
|
776 |
set_style(canvas_1, "border", "2px solid black");
|
777 |
attr_dev(canvas_1, "width", "500");
|
778 |
attr_dev(canvas_1, "height", "500");
|
779 |
-
add_location(canvas_1, file$
|
780 |
attr_dev(input, "type", "text");
|
781 |
-
add_location(input, file$
|
782 |
-
add_location(button, file$
|
783 |
if (/*selectedOption*/ ctx[0] === void 0) add_render_callback(() => /*select_change_handler*/ ctx[9].call(select));
|
784 |
-
add_location(select, file$
|
785 |
attr_dev(div2, "id", "frameForButtons");
|
786 |
-
add_location(div2, file$
|
787 |
},
|
788 |
l: function claim(nodes) {
|
789 |
throw new Error("options.hydrate only works if the component was compiled with the `hydratable: true` option");
|
@@ -842,12 +847,12 @@ var app = (function () {
|
|
842 |
let i;
|
843 |
|
844 |
for (i = 0; i < each_value.length; i += 1) {
|
845 |
-
const child_ctx = get_each_context$
|
846 |
|
847 |
if (each_blocks[i]) {
|
848 |
each_blocks[i].p(child_ctx, dirty);
|
849 |
} else {
|
850 |
-
each_blocks[i] = create_each_block$
|
851 |
each_blocks[i].c();
|
852 |
each_blocks[i].m(select, null);
|
853 |
}
|
@@ -885,7 +890,7 @@ var app = (function () {
|
|
885 |
|
886 |
dispatch_dev("SvelteRegisterBlock", {
|
887 |
block,
|
888 |
-
id: create_fragment$
|
889 |
type: "component",
|
890 |
source: "",
|
891 |
ctx
|
@@ -898,7 +903,7 @@ var app = (function () {
|
|
898 |
|
899 |
} // Logic for 'Test OCR' button
|
900 |
|
901 |
-
function instance$
|
902 |
let { $$slots: slots = {}, $$scope } = $$props;
|
903 |
validate_slots('VideoGradioComponentBrainstorming', slots, []);
|
904 |
let selectedOption = 'Stove - lu'; // default value
|
@@ -960,7 +965,7 @@ var app = (function () {
|
|
960 |
const writable_props = [];
|
961 |
|
962 |
Object.keys($$props).forEach(key => {
|
963 |
-
if (!~writable_props.indexOf(key) && key.slice(0, 2) !== '$$' && key !== 'slot') console_1$
|
964 |
});
|
965 |
|
966 |
function canvas_1_binding($$value) {
|
@@ -1031,13 +1036,13 @@ var app = (function () {
|
|
1031 |
class VideoGradioComponentBrainstorming extends SvelteComponentDev {
|
1032 |
constructor(options) {
|
1033 |
super(options);
|
1034 |
-
init(this, options, instance$
|
1035 |
|
1036 |
dispatch_dev("SvelteRegisterComponent", {
|
1037 |
component: this,
|
1038 |
tagName: "VideoGradioComponentBrainstorming",
|
1039 |
options,
|
1040 |
-
id: create_fragment$
|
1041 |
});
|
1042 |
}
|
1043 |
}
|
@@ -1091,9 +1096,9 @@ var app = (function () {
|
|
1091 |
}
|
1092 |
|
1093 |
/* src\MovingDotPortfromReact.svelte generated by Svelte v3.59.2 */
|
1094 |
-
const file$
|
1095 |
|
1096 |
-
function create_fragment$
|
1097 |
let button;
|
1098 |
|
1099 |
const block = {
|
@@ -1103,7 +1108,7 @@ var app = (function () {
|
|
1103 |
set_style(button, "left", /*position*/ ctx[0].x + "px");
|
1104 |
set_style(button, "top", /*position*/ ctx[0].y + "px");
|
1105 |
attr_dev(button, "tabindex", "0");
|
1106 |
-
add_location(button, file$
|
1107 |
},
|
1108 |
l: function claim(nodes) {
|
1109 |
throw new Error("options.hydrate only works if the component was compiled with the `hydratable: true` option");
|
@@ -1131,7 +1136,7 @@ var app = (function () {
|
|
1131 |
|
1132 |
dispatch_dev("SvelteRegisterBlock", {
|
1133 |
block,
|
1134 |
-
id: create_fragment$
|
1135 |
type: "component",
|
1136 |
source: "",
|
1137 |
ctx
|
@@ -1142,7 +1147,7 @@ var app = (function () {
|
|
1142 |
|
1143 |
const step = 10;
|
1144 |
|
1145 |
-
function instance$
|
1146 |
let { $$slots: slots = {}, $$scope } = $$props;
|
1147 |
validate_slots('MovingDotPortfromReact', slots, []);
|
1148 |
let { position = { x: 0, y: 0 } } = $$props;
|
@@ -1247,13 +1252,13 @@ var app = (function () {
|
|
1247 |
class MovingDotPortfromReact extends SvelteComponentDev {
|
1248 |
constructor(options) {
|
1249 |
super(options);
|
1250 |
-
init(this, options, instance$
|
1251 |
|
1252 |
dispatch_dev("SvelteRegisterComponent", {
|
1253 |
component: this,
|
1254 |
tagName: "MovingDotPortfromReact",
|
1255 |
options,
|
1256 |
-
id: create_fragment$
|
1257 |
});
|
1258 |
}
|
1259 |
|
@@ -1284,9 +1289,9 @@ var app = (function () {
|
|
1284 |
|
1285 |
/* src\MovingDotTargetPortfromReact.svelte generated by Svelte v3.59.2 */
|
1286 |
|
1287 |
-
const file$
|
1288 |
|
1289 |
-
function create_fragment$
|
1290 |
let div;
|
1291 |
|
1292 |
const block = {
|
@@ -1295,7 +1300,7 @@ var app = (function () {
|
|
1295 |
attr_dev(div, "class", "target svelte-4yc66h");
|
1296 |
set_style(div, "left", /*position*/ ctx[0].x + "px");
|
1297 |
set_style(div, "top", /*position*/ ctx[0].y + "px");
|
1298 |
-
add_location(div, file$
|
1299 |
},
|
1300 |
l: function claim(nodes) {
|
1301 |
throw new Error("options.hydrate only works if the component was compiled with the `hydratable: true` option");
|
@@ -1321,7 +1326,7 @@ var app = (function () {
|
|
1321 |
|
1322 |
dispatch_dev("SvelteRegisterBlock", {
|
1323 |
block,
|
1324 |
-
id: create_fragment$
|
1325 |
type: "component",
|
1326 |
source: "",
|
1327 |
ctx
|
@@ -1330,7 +1335,7 @@ var app = (function () {
|
|
1330 |
return block;
|
1331 |
}
|
1332 |
|
1333 |
-
function instance$
|
1334 |
let { $$slots: slots = {}, $$scope } = $$props;
|
1335 |
validate_slots('MovingDotTargetPortfromReact', slots, []);
|
1336 |
let { position } = $$props;
|
@@ -1367,13 +1372,13 @@ var app = (function () {
|
|
1367 |
class MovingDotTargetPortfromReact extends SvelteComponentDev {
|
1368 |
constructor(options) {
|
1369 |
super(options);
|
1370 |
-
init(this, options, instance$
|
1371 |
|
1372 |
dispatch_dev("SvelteRegisterComponent", {
|
1373 |
component: this,
|
1374 |
tagName: "MovingDotTargetPortfromReact",
|
1375 |
options,
|
1376 |
-
id: create_fragment$
|
1377 |
});
|
1378 |
}
|
1379 |
|
@@ -1388,17 +1393,17 @@ var app = (function () {
|
|
1388 |
|
1389 |
/* src\SimpleModal.svelte generated by Svelte v3.59.2 */
|
1390 |
|
1391 |
-
const { console: console_1$
|
1392 |
-
const file$
|
1393 |
|
1394 |
-
function get_each_context$
|
1395 |
const child_ctx = ctx.slice();
|
1396 |
child_ctx[8] = list[i];
|
1397 |
return child_ctx;
|
1398 |
}
|
1399 |
|
1400 |
// (22:0) {#if isOpen}
|
1401 |
-
function create_if_block$
|
1402 |
let div3;
|
1403 |
let div2;
|
1404 |
let div0;
|
@@ -1418,7 +1423,7 @@ var app = (function () {
|
|
1418 |
let each_blocks = [];
|
1419 |
|
1420 |
for (let i = 0; i < each_value.length; i += 1) {
|
1421 |
-
each_blocks[i] = create_each_block$
|
1422 |
}
|
1423 |
|
1424 |
const block = {
|
@@ -1441,18 +1446,18 @@ var app = (function () {
|
|
1441 |
each_blocks[i].c();
|
1442 |
}
|
1443 |
|
1444 |
-
add_location(h2, file$
|
1445 |
-
add_location(button, file$
|
1446 |
attr_dev(div0, "class", "modal-header svelte-m51ous");
|
1447 |
-
add_location(div0, file$
|
1448 |
attr_dev(ul, "class", "modal-items");
|
1449 |
-
add_location(ul, file$
|
1450 |
attr_dev(div1, "class", "modal-content svelte-m51ous");
|
1451 |
-
add_location(div1, file$
|
1452 |
attr_dev(div2, "class", "modal svelte-m51ous");
|
1453 |
-
add_location(div2, file$
|
1454 |
attr_dev(div3, "class", "modal-overlay svelte-m51ous");
|
1455 |
-
add_location(div3, file$
|
1456 |
},
|
1457 |
m: function mount(target, anchor) {
|
1458 |
insert_dev(target, div3, anchor);
|
@@ -1489,12 +1494,12 @@ var app = (function () {
|
|
1489 |
let i;
|
1490 |
|
1491 |
for (i = 0; i < each_value.length; i += 1) {
|
1492 |
-
const child_ctx = get_each_context$
|
1493 |
|
1494 |
if (each_blocks[i]) {
|
1495 |
each_blocks[i].p(child_ctx, dirty);
|
1496 |
} else {
|
1497 |
-
each_blocks[i] = create_each_block$
|
1498 |
each_blocks[i].c();
|
1499 |
each_blocks[i].m(ul, null);
|
1500 |
}
|
@@ -1517,7 +1522,7 @@ var app = (function () {
|
|
1517 |
|
1518 |
dispatch_dev("SvelteRegisterBlock", {
|
1519 |
block,
|
1520 |
-
id: create_if_block$
|
1521 |
type: "if",
|
1522 |
source: "(22:0) {#if isOpen}",
|
1523 |
ctx
|
@@ -1527,7 +1532,7 @@ var app = (function () {
|
|
1527 |
}
|
1528 |
|
1529 |
// (32:10) {#each items as item}
|
1530 |
-
function create_each_block$
|
1531 |
let button;
|
1532 |
let t_value = /*item*/ ctx[8].label + "";
|
1533 |
let t;
|
@@ -1542,7 +1547,7 @@ var app = (function () {
|
|
1542 |
c: function create() {
|
1543 |
button = element("button");
|
1544 |
t = text(t_value);
|
1545 |
-
add_location(button, file$
|
1546 |
},
|
1547 |
m: function mount(target, anchor) {
|
1548 |
insert_dev(target, button, anchor);
|
@@ -1566,7 +1571,7 @@ var app = (function () {
|
|
1566 |
|
1567 |
dispatch_dev("SvelteRegisterBlock", {
|
1568 |
block,
|
1569 |
-
id: create_each_block$
|
1570 |
type: "each",
|
1571 |
source: "(32:10) {#each items as item}",
|
1572 |
ctx
|
@@ -1575,9 +1580,9 @@ var app = (function () {
|
|
1575 |
return block;
|
1576 |
}
|
1577 |
|
1578 |
-
function create_fragment$
|
1579 |
let if_block_anchor;
|
1580 |
-
let if_block = /*isOpen*/ ctx[0] && create_if_block$
|
1581 |
|
1582 |
const block = {
|
1583 |
c: function create() {
|
@@ -1596,7 +1601,7 @@ var app = (function () {
|
|
1596 |
if (if_block) {
|
1597 |
if_block.p(ctx, dirty);
|
1598 |
} else {
|
1599 |
-
if_block = create_if_block$
|
1600 |
if_block.c();
|
1601 |
if_block.m(if_block_anchor.parentNode, if_block_anchor);
|
1602 |
}
|
@@ -1615,7 +1620,7 @@ var app = (function () {
|
|
1615 |
|
1616 |
dispatch_dev("SvelteRegisterBlock", {
|
1617 |
block,
|
1618 |
-
id: create_fragment$
|
1619 |
type: "component",
|
1620 |
source: "",
|
1621 |
ctx
|
@@ -1624,7 +1629,7 @@ var app = (function () {
|
|
1624 |
return block;
|
1625 |
}
|
1626 |
|
1627 |
-
function instance$
|
1628 |
let { $$slots: slots = {}, $$scope } = $$props;
|
1629 |
validate_slots('SimpleModal', slots, []);
|
1630 |
let { isOpen = false } = $$props;
|
@@ -1648,14 +1653,14 @@ var app = (function () {
|
|
1648 |
|
1649 |
$$self.$$.on_mount.push(function () {
|
1650 |
if (onClose === undefined && !('onClose' in $$props || $$self.$$.bound[$$self.$$.props['onClose']])) {
|
1651 |
-
console_1$
|
1652 |
}
|
1653 |
});
|
1654 |
|
1655 |
const writable_props = ['isOpen', 'title', 'content', 'items', 'onClose'];
|
1656 |
|
1657 |
Object.keys($$props).forEach(key => {
|
1658 |
-
if (!~writable_props.indexOf(key) && key.slice(0, 2) !== '$$' && key !== 'slot') console_1$
|
1659 |
});
|
1660 |
|
1661 |
const click_handler = item => handleItemClick(item);
|
@@ -1706,7 +1711,7 @@ var app = (function () {
|
|
1706 |
constructor(options) {
|
1707 |
super(options);
|
1708 |
|
1709 |
-
init(this, options, instance$
|
1710 |
isOpen: 0,
|
1711 |
title: 1,
|
1712 |
content: 2,
|
@@ -1718,7 +1723,7 @@ var app = (function () {
|
|
1718 |
component: this,
|
1719 |
tagName: "SimpleModal",
|
1720 |
options,
|
1721 |
-
id: create_fragment$
|
1722 |
});
|
1723 |
}
|
1724 |
|
@@ -1765,17 +1770,17 @@ var app = (function () {
|
|
1765 |
|
1766 |
/* src\MovingDotSpacePortfromReact.svelte generated by Svelte v3.59.2 */
|
1767 |
|
1768 |
-
const { console: console_1$
|
1769 |
-
const file$
|
1770 |
|
1771 |
-
function get_each_context$
|
1772 |
const child_ctx = ctx.slice();
|
1773 |
child_ctx[19] = list[i];
|
1774 |
return child_ctx;
|
1775 |
}
|
1776 |
|
1777 |
// (155:4) {#each $targets as target (target.name)}
|
1778 |
-
function create_each_block$
|
1779 |
let first;
|
1780 |
let target;
|
1781 |
let t0;
|
@@ -1801,7 +1806,7 @@ var app = (function () {
|
|
1801 |
set_style(span, "position", "absolute");
|
1802 |
set_style(span, "left", /*target*/ ctx[19].x + "px");
|
1803 |
set_style(span, "top", /*target*/ ctx[19].y + "px");
|
1804 |
-
add_location(span, file$
|
1805 |
this.first = first;
|
1806 |
},
|
1807 |
m: function mount(target$1, anchor) {
|
@@ -1846,7 +1851,7 @@ var app = (function () {
|
|
1846 |
|
1847 |
dispatch_dev("SvelteRegisterBlock", {
|
1848 |
block,
|
1849 |
-
id: create_each_block$
|
1850 |
type: "each",
|
1851 |
source: "(155:4) {#each $targets as target (target.name)}",
|
1852 |
ctx
|
@@ -1856,7 +1861,7 @@ var app = (function () {
|
|
1856 |
}
|
1857 |
|
1858 |
// (161:4) {#if isModalOpen}
|
1859 |
-
function create_if_block$
|
1860 |
let modal;
|
1861 |
let current;
|
1862 |
|
@@ -1902,7 +1907,7 @@ var app = (function () {
|
|
1902 |
|
1903 |
dispatch_dev("SvelteRegisterBlock", {
|
1904 |
block,
|
1905 |
-
id: create_if_block$
|
1906 |
type: "if",
|
1907 |
source: "(161:4) {#if isModalOpen}",
|
1908 |
ctx
|
@@ -1911,7 +1916,7 @@ var app = (function () {
|
|
1911 |
return block;
|
1912 |
}
|
1913 |
|
1914 |
-
function create_fragment$
|
1915 |
let div1;
|
1916 |
let canvas_1;
|
1917 |
let t0;
|
@@ -1943,15 +1948,15 @@ var app = (function () {
|
|
1943 |
let each_value = /*$targets*/ ctx[6];
|
1944 |
validate_each_argument(each_value);
|
1945 |
const get_key = ctx => /*target*/ ctx[19].name;
|
1946 |
-
validate_each_keys(ctx, each_value, get_each_context$
|
1947 |
|
1948 |
for (let i = 0; i < each_value.length; i += 1) {
|
1949 |
-
let child_ctx = get_each_context$
|
1950 |
let key = get_key(child_ctx);
|
1951 |
-
each_1_lookup.set(key, each_blocks[i] = create_each_block$
|
1952 |
}
|
1953 |
|
1954 |
-
let if_block = /*isModalOpen*/ ctx[2] && create_if_block$
|
1955 |
|
1956 |
const block = {
|
1957 |
c: function create() {
|
@@ -1976,13 +1981,13 @@ var app = (function () {
|
|
1976 |
set_style(canvas_1, "width", "100%");
|
1977 |
set_style(canvas_1, "height", "100%");
|
1978 |
attr_dev(canvas_1, "tabindex", "0");
|
1979 |
-
add_location(canvas_1, file$
|
1980 |
attr_dev(div0, "id", "overlayText");
|
1981 |
attr_dev(div0, "class", "svelte-c2nwl9");
|
1982 |
-
add_location(div0, file$
|
1983 |
attr_dev(div1, "id", "game-container");
|
1984 |
attr_dev(div1, "style", /*spaceStyle*/ ctx[13]);
|
1985 |
-
add_location(div1, file$
|
1986 |
},
|
1987 |
l: function claim(nodes) {
|
1988 |
throw new Error("options.hydrate only works if the component was compiled with the `hydratable: true` option");
|
@@ -2027,8 +2032,8 @@ var app = (function () {
|
|
2027 |
each_value = /*$targets*/ ctx[6];
|
2028 |
validate_each_argument(each_value);
|
2029 |
group_outros();
|
2030 |
-
validate_each_keys(ctx, each_value, get_each_context$
|
2031 |
-
each_blocks = update_keyed_each(each_blocks, dirty, get_key, 1, ctx, each_value, each_1_lookup, div1, outro_and_destroy_block, create_each_block$
|
2032 |
check_outros();
|
2033 |
}
|
2034 |
|
@@ -2040,7 +2045,7 @@ var app = (function () {
|
|
2040 |
transition_in(if_block, 1);
|
2041 |
}
|
2042 |
} else {
|
2043 |
-
if_block = create_if_block$
|
2044 |
if_block.c();
|
2045 |
transition_in(if_block, 1);
|
2046 |
if_block.m(div1, null);
|
@@ -2094,7 +2099,7 @@ var app = (function () {
|
|
2094 |
|
2095 |
dispatch_dev("SvelteRegisterBlock", {
|
2096 |
block,
|
2097 |
-
id: create_fragment$
|
2098 |
type: "component",
|
2099 |
source: "",
|
2100 |
ctx
|
@@ -2103,7 +2108,7 @@ var app = (function () {
|
|
2103 |
return block;
|
2104 |
}
|
2105 |
|
2106 |
-
function instance$
|
2107 |
let $dotPosition;
|
2108 |
let $targets;
|
2109 |
let { $$slots: slots = {}, $$scope } = $$props;
|
@@ -2264,7 +2269,7 @@ var app = (function () {
|
|
2264 |
const writable_props = [];
|
2265 |
|
2266 |
Object.keys($$props).forEach(key => {
|
2267 |
-
if (!~writable_props.indexOf(key) && key.slice(0, 2) !== '$$' && key !== 'slot') console_1$
|
2268 |
});
|
2269 |
|
2270 |
function canvas_1_binding($$value) {
|
@@ -2394,23 +2399,23 @@ var app = (function () {
|
|
2394 |
class MovingDotSpacePortfromReact extends SvelteComponentDev {
|
2395 |
constructor(options) {
|
2396 |
super(options);
|
2397 |
-
init(this, options, instance$
|
2398 |
|
2399 |
dispatch_dev("SvelteRegisterComponent", {
|
2400 |
component: this,
|
2401 |
tagName: "MovingDotSpacePortfromReact",
|
2402 |
options,
|
2403 |
-
id: create_fragment$
|
2404 |
});
|
2405 |
}
|
2406 |
}
|
2407 |
|
2408 |
/* src\YoutubeIframeAPICustomInterface.svelte generated by Svelte v3.59.2 */
|
2409 |
|
2410 |
-
const { console: console_1$
|
2411 |
-
const file$
|
2412 |
|
2413 |
-
function create_fragment$
|
2414 |
let h1;
|
2415 |
let t1;
|
2416 |
let label;
|
@@ -2558,53 +2563,53 @@ var app = (function () {
|
|
2558 |
button7.textContent = "Export Round 2 Timestamps";
|
2559 |
t50 = text(" Import Timestamps (Incomplete) ");
|
2560 |
input2 = element("input");
|
2561 |
-
add_location(h1, file$
|
2562 |
attr_dev(input0, "type", "text");
|
2563 |
-
add_location(input0, file$
|
2564 |
attr_dev(input1, "type", "checkbox");
|
2565 |
-
add_location(input1, file$
|
2566 |
-
add_location(label, file$
|
2567 |
attr_dev(div0, "id", "youtube-player");
|
2568 |
set_style(div0, "height", "90vh");
|
2569 |
set_style(div0, "width", "90%");
|
2570 |
-
add_location(div0, file$
|
2571 |
set_style(div1, "position", "absolute");
|
2572 |
set_style(div1, "top", "0%");
|
2573 |
set_style(div1, "left", "40%");
|
2574 |
set_style(div1, "color", "white");
|
2575 |
set_style(div1, "background-color", "rgba(0, 0, 0, 0.5)");
|
2576 |
-
add_location(div1, file$
|
2577 |
-
add_location(br0, file$
|
2578 |
set_style(div2, "position", "absolute");
|
2579 |
set_style(div2, "top", "50%");
|
2580 |
set_style(div2, "left", "20%");
|
2581 |
set_style(div2, "color", "white");
|
2582 |
set_style(div2, "background-color", "rgba(0, 0, 0, 0.5)");
|
2583 |
set_style(div2, "font-size", "100px");
|
2584 |
-
add_location(div2, file$
|
2585 |
set_style(div3, "position", "relative");
|
2586 |
-
add_location(div3, file$
|
2587 |
-
add_location(button0, file$
|
2588 |
-
add_location(button1, file$
|
2589 |
-
add_location(br1, file$
|
2590 |
-
add_location(button2, file$
|
2591 |
attr_dev(button3, "class", button3_class_value = "" + (null_to_empty(/*currentindexButtonClass*/ ctx[10]) + " svelte-cpjgti"));
|
2592 |
button3.disabled = button3_disabled_value = /*currentuserIndex*/ ctx[0] <= 0;
|
2593 |
-
add_location(button3, file$
|
2594 |
attr_dev(button4, "class", button4_class_value = "" + (null_to_empty(/*previousindexButtonClass*/ ctx[11]) + " svelte-cpjgti"));
|
2595 |
button4.disabled = button4_disabled_value = /*currentuserIndex*/ ctx[0] <= 0;
|
2596 |
-
add_location(button4, file$
|
2597 |
attr_dev(button5, "class", button5_class_value = "" + (null_to_empty(/*nextindexButtonClass*/ ctx[12]) + " svelte-cpjgti"));
|
2598 |
button5.disabled = button5_disabled_value = /*currentuserIndex*/ ctx[0] >= /*userTimestamps*/ ctx[1].length - 1;
|
2599 |
-
add_location(button5, file$
|
2600 |
-
add_location(br2, file$
|
2601 |
-
add_location(br3, file$
|
2602 |
-
add_location(br4, file$
|
2603 |
-
add_location(button6, file$
|
2604 |
-
add_location(button7, file$
|
2605 |
attr_dev(input2, "type", "file");
|
2606 |
attr_dev(input2, "accept", ".json");
|
2607 |
-
add_location(input2, file$
|
2608 |
},
|
2609 |
l: function claim(nodes) {
|
2610 |
throw new Error("options.hydrate only works if the component was compiled with the `hydratable: true` option");
|
@@ -2792,7 +2797,7 @@ var app = (function () {
|
|
2792 |
|
2793 |
dispatch_dev("SvelteRegisterBlock", {
|
2794 |
block,
|
2795 |
-
id: create_fragment$
|
2796 |
type: "component",
|
2797 |
source: "",
|
2798 |
ctx
|
@@ -2806,7 +2811,7 @@ var app = (function () {
|
|
2806 |
return words[Math.floor(Math.random() * words.length)];
|
2807 |
}
|
2808 |
|
2809 |
-
function instance$
|
2810 |
let nextindexButtonClass;
|
2811 |
let previousindexButtonClass;
|
2812 |
let currentindexButtonClass;
|
@@ -3096,7 +3101,7 @@ var app = (function () {
|
|
3096 |
const writable_props = [];
|
3097 |
|
3098 |
Object.keys($$props).forEach(key => {
|
3099 |
-
if (!~writable_props.indexOf(key) && key.slice(0, 2) !== '$$' && key !== 'slot') console_1$
|
3100 |
});
|
3101 |
|
3102 |
function input0_input_handler() {
|
@@ -3239,13 +3244,13 @@ var app = (function () {
|
|
3239 |
class YoutubeIframeAPICustomInterface extends SvelteComponentDev {
|
3240 |
constructor(options) {
|
3241 |
super(options);
|
3242 |
-
init(this, options, instance$
|
3243 |
|
3244 |
dispatch_dev("SvelteRegisterComponent", {
|
3245 |
component: this,
|
3246 |
tagName: "YoutubeIframeAPICustomInterface",
|
3247 |
options,
|
3248 |
-
id: create_fragment$
|
3249 |
});
|
3250 |
}
|
3251 |
}
|
@@ -3317,10 +3322,10 @@ var app = (function () {
|
|
3317 |
|
3318 |
/* src\RecursiveNestedCommentsElement.svelte generated by Svelte v3.59.2 */
|
3319 |
|
3320 |
-
const { console: console_1 } = globals;
|
3321 |
-
const file$
|
3322 |
|
3323 |
-
function get_each_context(ctx, list, i) {
|
3324 |
const child_ctx = ctx.slice();
|
3325 |
child_ctx[14] = list[i];
|
3326 |
child_ctx[15] = list;
|
@@ -3329,7 +3334,7 @@ var app = (function () {
|
|
3329 |
}
|
3330 |
|
3331 |
// (123:16) {#if showReplyInput[comment.id]}
|
3332 |
-
function create_if_block(ctx) {
|
3333 |
let div;
|
3334 |
let input;
|
3335 |
let t0;
|
@@ -3353,10 +3358,10 @@ var app = (function () {
|
|
3353 |
button = element("button");
|
3354 |
button.textContent = "Post Reply";
|
3355 |
attr_dev(input, "placeholder", "Write a reply...");
|
3356 |
-
add_location(input, file$
|
3357 |
-
add_location(button, file$
|
3358 |
attr_dev(div, "class", "reply-input");
|
3359 |
-
add_location(div, file$
|
3360 |
},
|
3361 |
m: function mount(target, anchor) {
|
3362 |
insert_dev(target, div, anchor);
|
@@ -3390,7 +3395,7 @@ var app = (function () {
|
|
3390 |
|
3391 |
dispatch_dev("SvelteRegisterBlock", {
|
3392 |
block,
|
3393 |
-
id: create_if_block.name,
|
3394 |
type: "if",
|
3395 |
source: "(123:16) {#if showReplyInput[comment.id]}",
|
3396 |
ctx
|
@@ -3400,7 +3405,7 @@ var app = (function () {
|
|
3400 |
}
|
3401 |
|
3402 |
// (119:8) {#each flattenedComments as comment}
|
3403 |
-
function create_each_block(ctx) {
|
3404 |
let div;
|
3405 |
let span;
|
3406 |
let t0_value = /*comment*/ ctx[14].title + "";
|
@@ -3417,7 +3422,7 @@ var app = (function () {
|
|
3417 |
return /*click_handler*/ ctx[10](/*comment*/ ctx[14]);
|
3418 |
}
|
3419 |
|
3420 |
-
let if_block = /*showReplyInput*/ ctx[3][/*comment*/ ctx[14].id] && create_if_block(ctx);
|
3421 |
|
3422 |
const block = {
|
3423 |
c: function create() {
|
@@ -3430,15 +3435,15 @@ var app = (function () {
|
|
3430 |
t3 = space();
|
3431 |
if (if_block) if_block.c();
|
3432 |
t4 = space();
|
3433 |
-
add_location(span, file$
|
3434 |
-
add_location(button, file$
|
3435 |
|
3436 |
attr_dev(div, "class", div_class_value = "" + (null_to_empty(/*comment*/ ctx[14].level === 0
|
3437 |
? 'top-level-comment'
|
3438 |
: 'comment') + " svelte-bsj1sx"));
|
3439 |
|
3440 |
set_style(div, "margin-left", /*comment*/ ctx[14].level * 20 + "px");
|
3441 |
-
add_location(div, file$
|
3442 |
},
|
3443 |
m: function mount(target, anchor) {
|
3444 |
insert_dev(target, div, anchor);
|
@@ -3463,7 +3468,7 @@ var app = (function () {
|
|
3463 |
if (if_block) {
|
3464 |
if_block.p(ctx, dirty);
|
3465 |
} else {
|
3466 |
-
if_block = create_if_block(ctx);
|
3467 |
if_block.c();
|
3468 |
if_block.m(div, t4);
|
3469 |
}
|
@@ -3492,7 +3497,7 @@ var app = (function () {
|
|
3492 |
|
3493 |
dispatch_dev("SvelteRegisterBlock", {
|
3494 |
block,
|
3495 |
-
id: create_each_block.name,
|
3496 |
type: "each",
|
3497 |
source: "(119:8) {#each flattenedComments as comment}",
|
3498 |
ctx
|
@@ -3501,7 +3506,7 @@ var app = (function () {
|
|
3501 |
return block;
|
3502 |
}
|
3503 |
|
3504 |
-
function create_fragment$
|
3505 |
let h1;
|
3506 |
let t1;
|
3507 |
let h4;
|
@@ -3526,7 +3531,7 @@ var app = (function () {
|
|
3526 |
let each_blocks = [];
|
3527 |
|
3528 |
for (let i = 0; i < each_value.length; i += 1) {
|
3529 |
-
each_blocks[i] = create_each_block(get_each_context(ctx, each_value, i));
|
3530 |
}
|
3531 |
|
3532 |
const block = {
|
@@ -3557,22 +3562,22 @@ var app = (function () {
|
|
3557 |
each_blocks[i].c();
|
3558 |
}
|
3559 |
|
3560 |
-
add_location(h1, file$
|
3561 |
-
add_location(h4, file$
|
3562 |
-
add_location(button0, file$
|
3563 |
attr_dev(input0, "type", "file");
|
3564 |
-
add_location(input0, file$
|
3565 |
attr_dev(input1, "placeholder", "Add a comment...");
|
3566 |
-
add_location(input1, file$
|
3567 |
-
add_location(button1, file$
|
3568 |
-
add_location(div0, file$
|
3569 |
-
add_location(br, file$
|
3570 |
attr_dev(div1, "id", "comment-container");
|
3571 |
-
add_location(div1, file$
|
3572 |
attr_dev(div2, "class", "component-containter svelte-bsj1sx");
|
3573 |
set_style(div2, "border", "1px solid black");
|
3574 |
set_style(div2, "padding", "4px");
|
3575 |
-
add_location(div2, file$
|
3576 |
},
|
3577 |
l: function claim(nodes) {
|
3578 |
throw new Error("options.hydrate only works if the component was compiled with the `hydratable: true` option");
|
@@ -3625,12 +3630,12 @@ var app = (function () {
|
|
3625 |
let i;
|
3626 |
|
3627 |
for (i = 0; i < each_value.length; i += 1) {
|
3628 |
-
const child_ctx = get_each_context(ctx, each_value, i);
|
3629 |
|
3630 |
if (each_blocks[i]) {
|
3631 |
each_blocks[i].p(child_ctx, dirty);
|
3632 |
} else {
|
3633 |
-
each_blocks[i] = create_each_block(child_ctx);
|
3634 |
each_blocks[i].c();
|
3635 |
each_blocks[i].m(div1, null);
|
3636 |
}
|
@@ -3659,7 +3664,7 @@ var app = (function () {
|
|
3659 |
|
3660 |
dispatch_dev("SvelteRegisterBlock", {
|
3661 |
block,
|
3662 |
-
id: create_fragment$
|
3663 |
type: "component",
|
3664 |
source: "",
|
3665 |
ctx
|
@@ -3685,7 +3690,7 @@ var app = (function () {
|
|
3685 |
return result;
|
3686 |
}
|
3687 |
|
3688 |
-
function instance$
|
3689 |
let { $$slots: slots = {}, $$scope } = $$props;
|
3690 |
validate_slots('RecursiveNestedCommentsElement', slots, []);
|
3691 |
let comments = [];
|
@@ -3770,7 +3775,7 @@ var app = (function () {
|
|
3770 |
const writable_props = [];
|
3771 |
|
3772 |
Object.keys($$props).forEach(key => {
|
3773 |
-
if (!~writable_props.indexOf(key) && key.slice(0, 2) !== '$$' && key !== 'slot') console_1.warn(`<RecursiveNestedCommentsElement> was created with unknown prop '${key}'`);
|
3774 |
});
|
3775 |
|
3776 |
function input1_input_handler() {
|
@@ -3837,114 +3842,797 @@ var app = (function () {
|
|
3837 |
class RecursiveNestedCommentsElement extends SvelteComponentDev {
|
3838 |
constructor(options) {
|
3839 |
super(options);
|
3840 |
-
init(this, options, instance$
|
3841 |
|
3842 |
dispatch_dev("SvelteRegisterComponent", {
|
3843 |
component: this,
|
3844 |
tagName: "RecursiveNestedCommentsElement",
|
3845 |
options,
|
3846 |
-
id: create_fragment$
|
3847 |
});
|
3848 |
}
|
3849 |
}
|
3850 |
|
3851 |
-
/* src\
|
3852 |
-
const file = "src\\App.svelte";
|
3853 |
|
3854 |
-
|
3855 |
-
|
3856 |
-
|
3857 |
-
|
3858 |
-
|
3859 |
-
|
3860 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3861 |
let p;
|
3862 |
-
let t4;
|
3863 |
-
let a;
|
3864 |
-
let t6;
|
3865 |
-
let t7;
|
3866 |
-
let h11;
|
3867 |
-
let t9;
|
3868 |
-
let h3;
|
3869 |
-
let t11;
|
3870 |
-
let nestedcommentssvelte;
|
3871 |
-
let t12;
|
3872 |
-
let myyoutube;
|
3873 |
-
let t13;
|
3874 |
-
let h12;
|
3875 |
-
let t15;
|
3876 |
-
let dotgame;
|
3877 |
-
let current;
|
3878 |
-
nestedcommentssvelte = new RecursiveNestedCommentsElement({ $$inline: true });
|
3879 |
-
myyoutube = new YoutubeIframeAPICustomInterface({ $$inline: true });
|
3880 |
-
dotgame = new MovingDotSpacePortfromReact({ $$inline: true });
|
3881 |
|
3882 |
const block = {
|
3883 |
c: function create() {
|
3884 |
-
main = element("main");
|
3885 |
-
h10 = element("h1");
|
3886 |
-
t0 = text("Hello ");
|
3887 |
-
t1 = text(/*name*/ ctx[0]);
|
3888 |
-
t2 = text("!");
|
3889 |
-
t3 = space();
|
3890 |
p = element("p");
|
3891 |
-
|
3892 |
-
|
3893 |
-
a.textContent = "Svelte tutorial";
|
3894 |
-
t6 = text(" to learn how to build Svelte apps.");
|
3895 |
-
t7 = space();
|
3896 |
-
h11 = element("h1");
|
3897 |
-
h11.textContent = "Brainstorm for Educational Interfaces to add LLM and other models into";
|
3898 |
-
t9 = space();
|
3899 |
-
h3 = element("h3");
|
3900 |
-
h3.textContent = "(Through Gradio and Custom Components)";
|
3901 |
-
t11 = space();
|
3902 |
-
create_component(nestedcommentssvelte.$$.fragment);
|
3903 |
-
t12 = space();
|
3904 |
-
create_component(myyoutube.$$.fragment);
|
3905 |
-
t13 = space();
|
3906 |
-
h12 = element("h1");
|
3907 |
-
h12.textContent = "Themeable Game Brainstorm - Image + Lists";
|
3908 |
-
t15 = space();
|
3909 |
-
create_component(dotgame.$$.fragment);
|
3910 |
-
attr_dev(h10, "class", "svelte-1tky8bj");
|
3911 |
-
add_location(h10, file, 21, 1, 467);
|
3912 |
-
attr_dev(a, "href", "https://svelte.dev/tutorial");
|
3913 |
-
add_location(a, file, 22, 14, 504);
|
3914 |
-
add_location(p, file, 22, 1, 491);
|
3915 |
-
attr_dev(h11, "class", "svelte-1tky8bj");
|
3916 |
-
add_location(h11, file, 24, 1, 603);
|
3917 |
-
add_location(h3, file, 25, 1, 686);
|
3918 |
-
attr_dev(h12, "class", "svelte-1tky8bj");
|
3919 |
-
add_location(h12, file, 32, 1, 830);
|
3920 |
-
attr_dev(main, "class", "svelte-1tky8bj");
|
3921 |
-
add_location(main, file, 19, 0, 458);
|
3922 |
},
|
3923 |
-
|
3924 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3925 |
},
|
3926 |
m: function mount(target, anchor) {
|
3927 |
-
insert_dev(target,
|
3928 |
-
append_dev(
|
3929 |
-
append_dev(
|
3930 |
-
|
3931 |
-
|
3932 |
-
|
3933 |
-
|
3934 |
-
|
3935 |
-
|
3936 |
-
|
3937 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3938 |
append_dev(main, h11);
|
3939 |
append_dev(main, t9);
|
3940 |
-
append_dev(main,
|
3941 |
append_dev(main, t11);
|
|
|
|
|
|
|
|
|
|
|
|
|
3942 |
mount_component(nestedcommentssvelte, main, null);
|
3943 |
-
append_dev(main,
|
3944 |
mount_component(myyoutube, main, null);
|
3945 |
-
append_dev(main,
|
3946 |
append_dev(main, h12);
|
3947 |
-
append_dev(main,
|
3948 |
mount_component(dotgame, main, null);
|
3949 |
current = true;
|
3950 |
},
|
@@ -3953,12 +4641,16 @@ var app = (function () {
|
|
3953 |
},
|
3954 |
i: function intro(local) {
|
3955 |
if (current) return;
|
|
|
|
|
3956 |
transition_in(nestedcommentssvelte.$$.fragment, local);
|
3957 |
transition_in(myyoutube.$$.fragment, local);
|
3958 |
transition_in(dotgame.$$.fragment, local);
|
3959 |
current = true;
|
3960 |
},
|
3961 |
o: function outro(local) {
|
|
|
|
|
3962 |
transition_out(nestedcommentssvelte.$$.fragment, local);
|
3963 |
transition_out(myyoutube.$$.fragment, local);
|
3964 |
transition_out(dotgame.$$.fragment, local);
|
@@ -3966,6 +4658,8 @@ var app = (function () {
|
|
3966 |
},
|
3967 |
d: function destroy(detaching) {
|
3968 |
if (detaching) detach_dev(main);
|
|
|
|
|
3969 |
destroy_component(nestedcommentssvelte);
|
3970 |
destroy_component(myyoutube);
|
3971 |
destroy_component(dotgame);
|
@@ -4019,6 +4713,9 @@ var app = (function () {
|
|
4019 |
DotGame: MovingDotSpacePortfromReact,
|
4020 |
MyYoutube: YoutubeIframeAPICustomInterface,
|
4021 |
NestedCommentsSvelte: RecursiveNestedCommentsElement,
|
|
|
|
|
|
|
4022 |
showModal,
|
4023 |
openModal,
|
4024 |
closeModal
|
|
|
340 |
callback();
|
341 |
}
|
342 |
}
|
343 |
+
|
344 |
+
function destroy_block(block, lookup) {
|
345 |
+
block.d(1);
|
346 |
+
lookup.delete(block.key);
|
347 |
+
}
|
348 |
function outro_and_destroy_block(block, lookup) {
|
349 |
transition_out(block, 1, 1, () => {
|
350 |
lookup.delete(block.key);
|
|
|
660 |
|
661 |
/* src\VideoGradioComponentBrainstorming.svelte generated by Svelte v3.59.2 */
|
662 |
|
663 |
+
const { console: console_1$5 } = globals;
|
664 |
+
const file$9 = "src\\VideoGradioComponentBrainstorming.svelte";
|
665 |
|
666 |
+
function get_each_context$5(ctx, list, i) {
|
667 |
const child_ctx = ctx.slice();
|
668 |
child_ctx[15] = list[i];
|
669 |
return child_ctx;
|
670 |
}
|
671 |
|
672 |
// (85:4) {#each kitchenOptions as option}
|
673 |
+
function create_each_block$5(ctx) {
|
674 |
let option;
|
675 |
let t_value = /*option*/ ctx[15] + "";
|
676 |
let t;
|
|
|
681 |
t = text(t_value);
|
682 |
option.__value = /*option*/ ctx[15];
|
683 |
option.value = option.__value;
|
684 |
+
add_location(option, file$9, 85, 6, 2561);
|
685 |
},
|
686 |
m: function mount(target, anchor) {
|
687 |
insert_dev(target, option, anchor);
|
|
|
695 |
|
696 |
dispatch_dev("SvelteRegisterBlock", {
|
697 |
block,
|
698 |
+
id: create_each_block$5.name,
|
699 |
type: "each",
|
700 |
source: "(85:4) {#each kitchenOptions as option}",
|
701 |
ctx
|
|
|
704 |
return block;
|
705 |
}
|
706 |
|
707 |
+
function create_fragment$9(ctx) {
|
708 |
let h1;
|
709 |
let t1;
|
710 |
let div1;
|
|
|
731 |
let each_blocks = [];
|
732 |
|
733 |
for (let i = 0; i < each_value.length; i += 1) {
|
734 |
+
each_blocks[i] = create_each_block$5(get_each_context$5(ctx, each_value, i));
|
735 |
}
|
736 |
|
737 |
const block = {
|
|
|
761 |
each_blocks[i].c();
|
762 |
}
|
763 |
|
764 |
+
add_location(h1, file$9, 66, 0, 1800);
|
765 |
attr_dev(track, "kind", "captions");
|
766 |
if (!src_url_equal(track.src, track_src_value = "path/to/your/captions/file.vtt")) attr_dev(track, "src", track_src_value);
|
767 |
attr_dev(track, "srclang", "en");
|
768 |
attr_dev(track, "label", "English");
|
769 |
+
add_location(track, file$9, 72, 4, 2006);
|
770 |
attr_dev(video, "id", "videoCanvas");
|
771 |
video.autoplay = true;
|
772 |
attr_dev(video, "class", "svelte-ufd3fo");
|
773 |
+
add_location(video, file$9, 70, 2, 1965);
|
774 |
attr_dev(div0, "id", "overlayText");
|
775 |
attr_dev(div0, "class", "svelte-ufd3fo");
|
776 |
+
add_location(div0, file$9, 74, 2, 2111);
|
777 |
attr_dev(div1, "id", "videoContainer");
|
778 |
attr_dev(div1, "class", "svelte-ufd3fo");
|
779 |
+
add_location(div1, file$9, 68, 0, 1911);
|
780 |
attr_dev(canvas_1, "id", "myCanvas");
|
781 |
set_style(canvas_1, "border", "2px solid black");
|
782 |
attr_dev(canvas_1, "width", "500");
|
783 |
attr_dev(canvas_1, "height", "500");
|
784 |
+
add_location(canvas_1, file$9, 77, 0, 2186);
|
785 |
attr_dev(input, "type", "text");
|
786 |
+
add_location(input, file$9, 78, 0, 2294);
|
787 |
+
add_location(button, file$9, 82, 2, 2429);
|
788 |
if (/*selectedOption*/ ctx[0] === void 0) add_render_callback(() => /*select_change_handler*/ ctx[9].call(select));
|
789 |
+
add_location(select, file$9, 83, 2, 2479);
|
790 |
attr_dev(div2, "id", "frameForButtons");
|
791 |
+
add_location(div2, file$9, 81, 0, 2399);
|
792 |
},
|
793 |
l: function claim(nodes) {
|
794 |
throw new Error("options.hydrate only works if the component was compiled with the `hydratable: true` option");
|
|
|
847 |
let i;
|
848 |
|
849 |
for (i = 0; i < each_value.length; i += 1) {
|
850 |
+
const child_ctx = get_each_context$5(ctx, each_value, i);
|
851 |
|
852 |
if (each_blocks[i]) {
|
853 |
each_blocks[i].p(child_ctx, dirty);
|
854 |
} else {
|
855 |
+
each_blocks[i] = create_each_block$5(child_ctx);
|
856 |
each_blocks[i].c();
|
857 |
each_blocks[i].m(select, null);
|
858 |
}
|
|
|
890 |
|
891 |
dispatch_dev("SvelteRegisterBlock", {
|
892 |
block,
|
893 |
+
id: create_fragment$9.name,
|
894 |
type: "component",
|
895 |
source: "",
|
896 |
ctx
|
|
|
903 |
|
904 |
} // Logic for 'Test OCR' button
|
905 |
|
906 |
+
function instance$9($$self, $$props, $$invalidate) {
|
907 |
let { $$slots: slots = {}, $$scope } = $$props;
|
908 |
validate_slots('VideoGradioComponentBrainstorming', slots, []);
|
909 |
let selectedOption = 'Stove - lu'; // default value
|
|
|
965 |
const writable_props = [];
|
966 |
|
967 |
Object.keys($$props).forEach(key => {
|
968 |
+
if (!~writable_props.indexOf(key) && key.slice(0, 2) !== '$$' && key !== 'slot') console_1$5.warn(`<VideoGradioComponentBrainstorming> was created with unknown prop '${key}'`);
|
969 |
});
|
970 |
|
971 |
function canvas_1_binding($$value) {
|
|
|
1036 |
class VideoGradioComponentBrainstorming extends SvelteComponentDev {
|
1037 |
constructor(options) {
|
1038 |
super(options);
|
1039 |
+
init(this, options, instance$9, create_fragment$9, safe_not_equal, {});
|
1040 |
|
1041 |
dispatch_dev("SvelteRegisterComponent", {
|
1042 |
component: this,
|
1043 |
tagName: "VideoGradioComponentBrainstorming",
|
1044 |
options,
|
1045 |
+
id: create_fragment$9.name
|
1046 |
});
|
1047 |
}
|
1048 |
}
|
|
|
1096 |
}
|
1097 |
|
1098 |
/* src\MovingDotPortfromReact.svelte generated by Svelte v3.59.2 */
|
1099 |
+
const file$8 = "src\\MovingDotPortfromReact.svelte";
|
1100 |
|
1101 |
+
function create_fragment$8(ctx) {
|
1102 |
let button;
|
1103 |
|
1104 |
const block = {
|
|
|
1108 |
set_style(button, "left", /*position*/ ctx[0].x + "px");
|
1109 |
set_style(button, "top", /*position*/ ctx[0].y + "px");
|
1110 |
attr_dev(button, "tabindex", "0");
|
1111 |
+
add_location(button, file$8, 48, 0, 1573);
|
1112 |
},
|
1113 |
l: function claim(nodes) {
|
1114 |
throw new Error("options.hydrate only works if the component was compiled with the `hydratable: true` option");
|
|
|
1136 |
|
1137 |
dispatch_dev("SvelteRegisterBlock", {
|
1138 |
block,
|
1139 |
+
id: create_fragment$8.name,
|
1140 |
type: "component",
|
1141 |
source: "",
|
1142 |
ctx
|
|
|
1147 |
|
1148 |
const step = 10;
|
1149 |
|
1150 |
+
function instance$8($$self, $$props, $$invalidate) {
|
1151 |
let { $$slots: slots = {}, $$scope } = $$props;
|
1152 |
validate_slots('MovingDotPortfromReact', slots, []);
|
1153 |
let { position = { x: 0, y: 0 } } = $$props;
|
|
|
1252 |
class MovingDotPortfromReact extends SvelteComponentDev {
|
1253 |
constructor(options) {
|
1254 |
super(options);
|
1255 |
+
init(this, options, instance$8, create_fragment$8, safe_not_equal, { position: 0, boundaries: 2, focusDot: 3 });
|
1256 |
|
1257 |
dispatch_dev("SvelteRegisterComponent", {
|
1258 |
component: this,
|
1259 |
tagName: "MovingDotPortfromReact",
|
1260 |
options,
|
1261 |
+
id: create_fragment$8.name
|
1262 |
});
|
1263 |
}
|
1264 |
|
|
|
1289 |
|
1290 |
/* src\MovingDotTargetPortfromReact.svelte generated by Svelte v3.59.2 */
|
1291 |
|
1292 |
+
const file$7 = "src\\MovingDotTargetPortfromReact.svelte";
|
1293 |
|
1294 |
+
function create_fragment$7(ctx) {
|
1295 |
let div;
|
1296 |
|
1297 |
const block = {
|
|
|
1300 |
attr_dev(div, "class", "target svelte-4yc66h");
|
1301 |
set_style(div, "left", /*position*/ ctx[0].x + "px");
|
1302 |
set_style(div, "top", /*position*/ ctx[0].y + "px");
|
1303 |
+
add_location(div, file$7, 4, 0, 49);
|
1304 |
},
|
1305 |
l: function claim(nodes) {
|
1306 |
throw new Error("options.hydrate only works if the component was compiled with the `hydratable: true` option");
|
|
|
1326 |
|
1327 |
dispatch_dev("SvelteRegisterBlock", {
|
1328 |
block,
|
1329 |
+
id: create_fragment$7.name,
|
1330 |
type: "component",
|
1331 |
source: "",
|
1332 |
ctx
|
|
|
1335 |
return block;
|
1336 |
}
|
1337 |
|
1338 |
+
function instance$7($$self, $$props, $$invalidate) {
|
1339 |
let { $$slots: slots = {}, $$scope } = $$props;
|
1340 |
validate_slots('MovingDotTargetPortfromReact', slots, []);
|
1341 |
let { position } = $$props;
|
|
|
1372 |
class MovingDotTargetPortfromReact extends SvelteComponentDev {
|
1373 |
constructor(options) {
|
1374 |
super(options);
|
1375 |
+
init(this, options, instance$7, create_fragment$7, safe_not_equal, { position: 0 });
|
1376 |
|
1377 |
dispatch_dev("SvelteRegisterComponent", {
|
1378 |
component: this,
|
1379 |
tagName: "MovingDotTargetPortfromReact",
|
1380 |
options,
|
1381 |
+
id: create_fragment$7.name
|
1382 |
});
|
1383 |
}
|
1384 |
|
|
|
1393 |
|
1394 |
/* src\SimpleModal.svelte generated by Svelte v3.59.2 */
|
1395 |
|
1396 |
+
const { console: console_1$4 } = globals;
|
1397 |
+
const file$6 = "src\\SimpleModal.svelte";
|
1398 |
|
1399 |
+
function get_each_context$4(ctx, list, i) {
|
1400 |
const child_ctx = ctx.slice();
|
1401 |
child_ctx[8] = list[i];
|
1402 |
return child_ctx;
|
1403 |
}
|
1404 |
|
1405 |
// (22:0) {#if isOpen}
|
1406 |
+
function create_if_block$3(ctx) {
|
1407 |
let div3;
|
1408 |
let div2;
|
1409 |
let div0;
|
|
|
1423 |
let each_blocks = [];
|
1424 |
|
1425 |
for (let i = 0; i < each_value.length; i += 1) {
|
1426 |
+
each_blocks[i] = create_each_block$4(get_each_context$4(ctx, each_value, i));
|
1427 |
}
|
1428 |
|
1429 |
const block = {
|
|
|
1446 |
each_blocks[i].c();
|
1447 |
}
|
1448 |
|
1449 |
+
add_location(h2, file$6, 25, 8, 651);
|
1450 |
+
add_location(button, file$6, 26, 8, 677);
|
1451 |
attr_dev(div0, "class", "modal-header svelte-m51ous");
|
1452 |
+
add_location(div0, file$6, 24, 6, 615);
|
1453 |
attr_dev(ul, "class", "modal-items");
|
1454 |
+
add_location(ul, file$6, 30, 8, 801);
|
1455 |
attr_dev(div1, "class", "modal-content svelte-m51ous");
|
1456 |
+
add_location(div1, file$6, 28, 6, 745);
|
1457 |
attr_dev(div2, "class", "modal svelte-m51ous");
|
1458 |
+
add_location(div2, file$6, 23, 4, 588);
|
1459 |
attr_dev(div3, "class", "modal-overlay svelte-m51ous");
|
1460 |
+
add_location(div3, file$6, 22, 2, 555);
|
1461 |
},
|
1462 |
m: function mount(target, anchor) {
|
1463 |
insert_dev(target, div3, anchor);
|
|
|
1494 |
let i;
|
1495 |
|
1496 |
for (i = 0; i < each_value.length; i += 1) {
|
1497 |
+
const child_ctx = get_each_context$4(ctx, each_value, i);
|
1498 |
|
1499 |
if (each_blocks[i]) {
|
1500 |
each_blocks[i].p(child_ctx, dirty);
|
1501 |
} else {
|
1502 |
+
each_blocks[i] = create_each_block$4(child_ctx);
|
1503 |
each_blocks[i].c();
|
1504 |
each_blocks[i].m(ul, null);
|
1505 |
}
|
|
|
1522 |
|
1523 |
dispatch_dev("SvelteRegisterBlock", {
|
1524 |
block,
|
1525 |
+
id: create_if_block$3.name,
|
1526 |
type: "if",
|
1527 |
source: "(22:0) {#if isOpen}",
|
1528 |
ctx
|
|
|
1532 |
}
|
1533 |
|
1534 |
// (32:10) {#each items as item}
|
1535 |
+
function create_each_block$4(ctx) {
|
1536 |
let button;
|
1537 |
let t_value = /*item*/ ctx[8].label + "";
|
1538 |
let t;
|
|
|
1547 |
c: function create() {
|
1548 |
button = element("button");
|
1549 |
t = text(t_value);
|
1550 |
+
add_location(button, file$6, 32, 12, 872);
|
1551 |
},
|
1552 |
m: function mount(target, anchor) {
|
1553 |
insert_dev(target, button, anchor);
|
|
|
1571 |
|
1572 |
dispatch_dev("SvelteRegisterBlock", {
|
1573 |
block,
|
1574 |
+
id: create_each_block$4.name,
|
1575 |
type: "each",
|
1576 |
source: "(32:10) {#each items as item}",
|
1577 |
ctx
|
|
|
1580 |
return block;
|
1581 |
}
|
1582 |
|
1583 |
+
function create_fragment$6(ctx) {
|
1584 |
let if_block_anchor;
|
1585 |
+
let if_block = /*isOpen*/ ctx[0] && create_if_block$3(ctx);
|
1586 |
|
1587 |
const block = {
|
1588 |
c: function create() {
|
|
|
1601 |
if (if_block) {
|
1602 |
if_block.p(ctx, dirty);
|
1603 |
} else {
|
1604 |
+
if_block = create_if_block$3(ctx);
|
1605 |
if_block.c();
|
1606 |
if_block.m(if_block_anchor.parentNode, if_block_anchor);
|
1607 |
}
|
|
|
1620 |
|
1621 |
dispatch_dev("SvelteRegisterBlock", {
|
1622 |
block,
|
1623 |
+
id: create_fragment$6.name,
|
1624 |
type: "component",
|
1625 |
source: "",
|
1626 |
ctx
|
|
|
1629 |
return block;
|
1630 |
}
|
1631 |
|
1632 |
+
function instance$6($$self, $$props, $$invalidate) {
|
1633 |
let { $$slots: slots = {}, $$scope } = $$props;
|
1634 |
validate_slots('SimpleModal', slots, []);
|
1635 |
let { isOpen = false } = $$props;
|
|
|
1653 |
|
1654 |
$$self.$$.on_mount.push(function () {
|
1655 |
if (onClose === undefined && !('onClose' in $$props || $$self.$$.bound[$$self.$$.props['onClose']])) {
|
1656 |
+
console_1$4.warn("<SimpleModal> was created without expected prop 'onClose'");
|
1657 |
}
|
1658 |
});
|
1659 |
|
1660 |
const writable_props = ['isOpen', 'title', 'content', 'items', 'onClose'];
|
1661 |
|
1662 |
Object.keys($$props).forEach(key => {
|
1663 |
+
if (!~writable_props.indexOf(key) && key.slice(0, 2) !== '$$' && key !== 'slot') console_1$4.warn(`<SimpleModal> was created with unknown prop '${key}'`);
|
1664 |
});
|
1665 |
|
1666 |
const click_handler = item => handleItemClick(item);
|
|
|
1711 |
constructor(options) {
|
1712 |
super(options);
|
1713 |
|
1714 |
+
init(this, options, instance$6, create_fragment$6, safe_not_equal, {
|
1715 |
isOpen: 0,
|
1716 |
title: 1,
|
1717 |
content: 2,
|
|
|
1723 |
component: this,
|
1724 |
tagName: "SimpleModal",
|
1725 |
options,
|
1726 |
+
id: create_fragment$6.name
|
1727 |
});
|
1728 |
}
|
1729 |
|
|
|
1770 |
|
1771 |
/* src\MovingDotSpacePortfromReact.svelte generated by Svelte v3.59.2 */
|
1772 |
|
1773 |
+
const { console: console_1$3 } = globals;
|
1774 |
+
const file$5 = "src\\MovingDotSpacePortfromReact.svelte";
|
1775 |
|
1776 |
+
function get_each_context$3(ctx, list, i) {
|
1777 |
const child_ctx = ctx.slice();
|
1778 |
child_ctx[19] = list[i];
|
1779 |
return child_ctx;
|
1780 |
}
|
1781 |
|
1782 |
// (155:4) {#each $targets as target (target.name)}
|
1783 |
+
function create_each_block$3(key_1, ctx) {
|
1784 |
let first;
|
1785 |
let target;
|
1786 |
let t0;
|
|
|
1806 |
set_style(span, "position", "absolute");
|
1807 |
set_style(span, "left", /*target*/ ctx[19].x + "px");
|
1808 |
set_style(span, "top", /*target*/ ctx[19].y + "px");
|
1809 |
+
add_location(span, file$5, 156, 8, 7641);
|
1810 |
this.first = first;
|
1811 |
},
|
1812 |
m: function mount(target$1, anchor) {
|
|
|
1851 |
|
1852 |
dispatch_dev("SvelteRegisterBlock", {
|
1853 |
block,
|
1854 |
+
id: create_each_block$3.name,
|
1855 |
type: "each",
|
1856 |
source: "(155:4) {#each $targets as target (target.name)}",
|
1857 |
ctx
|
|
|
1861 |
}
|
1862 |
|
1863 |
// (161:4) {#if isModalOpen}
|
1864 |
+
function create_if_block$2(ctx) {
|
1865 |
let modal;
|
1866 |
let current;
|
1867 |
|
|
|
1907 |
|
1908 |
dispatch_dev("SvelteRegisterBlock", {
|
1909 |
block,
|
1910 |
+
id: create_if_block$2.name,
|
1911 |
type: "if",
|
1912 |
source: "(161:4) {#if isModalOpen}",
|
1913 |
ctx
|
|
|
1916 |
return block;
|
1917 |
}
|
1918 |
|
1919 |
+
function create_fragment$5(ctx) {
|
1920 |
let div1;
|
1921 |
let canvas_1;
|
1922 |
let t0;
|
|
|
1948 |
let each_value = /*$targets*/ ctx[6];
|
1949 |
validate_each_argument(each_value);
|
1950 |
const get_key = ctx => /*target*/ ctx[19].name;
|
1951 |
+
validate_each_keys(ctx, each_value, get_each_context$3, get_key);
|
1952 |
|
1953 |
for (let i = 0; i < each_value.length; i += 1) {
|
1954 |
+
let child_ctx = get_each_context$3(ctx, each_value, i);
|
1955 |
let key = get_key(child_ctx);
|
1956 |
+
each_1_lookup.set(key, each_blocks[i] = create_each_block$3(key, child_ctx));
|
1957 |
}
|
1958 |
|
1959 |
+
let if_block = /*isModalOpen*/ ctx[2] && create_if_block$2(ctx);
|
1960 |
|
1961 |
const block = {
|
1962 |
c: function create() {
|
|
|
1981 |
set_style(canvas_1, "width", "100%");
|
1982 |
set_style(canvas_1, "height", "100%");
|
1983 |
attr_dev(canvas_1, "tabindex", "0");
|
1984 |
+
add_location(canvas_1, file$5, 151, 4, 7167);
|
1985 |
attr_dev(div0, "id", "overlayText");
|
1986 |
attr_dev(div0, "class", "svelte-c2nwl9");
|
1987 |
+
add_location(div0, file$5, 153, 4, 7425);
|
1988 |
attr_dev(div1, "id", "game-container");
|
1989 |
attr_dev(div1, "style", /*spaceStyle*/ ctx[13]);
|
1990 |
+
add_location(div1, file$5, 150, 0, 7081);
|
1991 |
},
|
1992 |
l: function claim(nodes) {
|
1993 |
throw new Error("options.hydrate only works if the component was compiled with the `hydratable: true` option");
|
|
|
2032 |
each_value = /*$targets*/ ctx[6];
|
2033 |
validate_each_argument(each_value);
|
2034 |
group_outros();
|
2035 |
+
validate_each_keys(ctx, each_value, get_each_context$3, get_key);
|
2036 |
+
each_blocks = update_keyed_each(each_blocks, dirty, get_key, 1, ctx, each_value, each_1_lookup, div1, outro_and_destroy_block, create_each_block$3, t7, get_each_context$3);
|
2037 |
check_outros();
|
2038 |
}
|
2039 |
|
|
|
2045 |
transition_in(if_block, 1);
|
2046 |
}
|
2047 |
} else {
|
2048 |
+
if_block = create_if_block$2(ctx);
|
2049 |
if_block.c();
|
2050 |
transition_in(if_block, 1);
|
2051 |
if_block.m(div1, null);
|
|
|
2099 |
|
2100 |
dispatch_dev("SvelteRegisterBlock", {
|
2101 |
block,
|
2102 |
+
id: create_fragment$5.name,
|
2103 |
type: "component",
|
2104 |
source: "",
|
2105 |
ctx
|
|
|
2108 |
return block;
|
2109 |
}
|
2110 |
|
2111 |
+
function instance$5($$self, $$props, $$invalidate) {
|
2112 |
let $dotPosition;
|
2113 |
let $targets;
|
2114 |
let { $$slots: slots = {}, $$scope } = $$props;
|
|
|
2269 |
const writable_props = [];
|
2270 |
|
2271 |
Object.keys($$props).forEach(key => {
|
2272 |
+
if (!~writable_props.indexOf(key) && key.slice(0, 2) !== '$$' && key !== 'slot') console_1$3.warn(`<MovingDotSpacePortfromReact> was created with unknown prop '${key}'`);
|
2273 |
});
|
2274 |
|
2275 |
function canvas_1_binding($$value) {
|
|
|
2399 |
class MovingDotSpacePortfromReact extends SvelteComponentDev {
|
2400 |
constructor(options) {
|
2401 |
super(options);
|
2402 |
+
init(this, options, instance$5, create_fragment$5, safe_not_equal, {});
|
2403 |
|
2404 |
dispatch_dev("SvelteRegisterComponent", {
|
2405 |
component: this,
|
2406 |
tagName: "MovingDotSpacePortfromReact",
|
2407 |
options,
|
2408 |
+
id: create_fragment$5.name
|
2409 |
});
|
2410 |
}
|
2411 |
}
|
2412 |
|
2413 |
/* src\YoutubeIframeAPICustomInterface.svelte generated by Svelte v3.59.2 */
|
2414 |
|
2415 |
+
const { console: console_1$2 } = globals;
|
2416 |
+
const file$4 = "src\\YoutubeIframeAPICustomInterface.svelte";
|
2417 |
|
2418 |
+
function create_fragment$4(ctx) {
|
2419 |
let h1;
|
2420 |
let t1;
|
2421 |
let label;
|
|
|
2563 |
button7.textContent = "Export Round 2 Timestamps";
|
2564 |
t50 = text(" Import Timestamps (Incomplete) ");
|
2565 |
input2 = element("input");
|
2566 |
+
add_location(h1, file$4, 286, 0, 9769);
|
2567 |
attr_dev(input0, "type", "text");
|
2568 |
+
add_location(input0, file$4, 290, 4, 9927);
|
2569 |
attr_dev(input1, "type", "checkbox");
|
2570 |
+
add_location(input1, file$4, 292, 4, 10035);
|
2571 |
+
add_location(label, file$4, 288, 0, 9832);
|
2572 |
attr_dev(div0, "id", "youtube-player");
|
2573 |
set_style(div0, "height", "90vh");
|
2574 |
set_style(div0, "width", "90%");
|
2575 |
+
add_location(div0, file$4, 300, 4, 10405);
|
2576 |
set_style(div1, "position", "absolute");
|
2577 |
set_style(div1, "top", "0%");
|
2578 |
set_style(div1, "left", "40%");
|
2579 |
set_style(div1, "color", "white");
|
2580 |
set_style(div1, "background-color", "rgba(0, 0, 0, 0.5)");
|
2581 |
+
add_location(div1, file$4, 301, 4, 10475);
|
2582 |
+
add_location(br0, file$4, 305, 15, 10795);
|
2583 |
set_style(div2, "position", "absolute");
|
2584 |
set_style(div2, "top", "50%");
|
2585 |
set_style(div2, "left", "20%");
|
2586 |
set_style(div2, "color", "white");
|
2587 |
set_style(div2, "background-color", "rgba(0, 0, 0, 0.5)");
|
2588 |
set_style(div2, "font-size", "100px");
|
2589 |
+
add_location(div2, file$4, 304, 4, 10654);
|
2590 |
set_style(div3, "position", "relative");
|
2591 |
+
add_location(div3, file$4, 299, 0, 10366);
|
2592 |
+
add_location(button0, file$4, 311, 0, 10921);
|
2593 |
+
add_location(button1, file$4, 312, 0, 11014);
|
2594 |
+
add_location(br1, file$4, 315, 0, 11156);
|
2595 |
+
add_location(button2, file$4, 316, 0, 11162);
|
2596 |
attr_dev(button3, "class", button3_class_value = "" + (null_to_empty(/*currentindexButtonClass*/ ctx[10]) + " svelte-cpjgti"));
|
2597 |
button3.disabled = button3_disabled_value = /*currentuserIndex*/ ctx[0] <= 0;
|
2598 |
+
add_location(button3, file$4, 317, 0, 11222);
|
2599 |
attr_dev(button4, "class", button4_class_value = "" + (null_to_empty(/*previousindexButtonClass*/ ctx[11]) + " svelte-cpjgti"));
|
2600 |
button4.disabled = button4_disabled_value = /*currentuserIndex*/ ctx[0] <= 0;
|
2601 |
+
add_location(button4, file$4, 318, 0, 11377);
|
2602 |
attr_dev(button5, "class", button5_class_value = "" + (null_to_empty(/*nextindexButtonClass*/ ctx[12]) + " svelte-cpjgti"));
|
2603 |
button5.disabled = button5_disabled_value = /*currentuserIndex*/ ctx[0] >= /*userTimestamps*/ ctx[1].length - 1;
|
2604 |
+
add_location(button5, file$4, 319, 0, 11522);
|
2605 |
+
add_location(br2, file$4, 322, 0, 11745);
|
2606 |
+
add_location(br3, file$4, 322, 82, 11827);
|
2607 |
+
add_location(br4, file$4, 322, 192, 11937);
|
2608 |
+
add_location(button6, file$4, 323, 0, 11943);
|
2609 |
+
add_location(button7, file$4, 323, 63, 12006);
|
2610 |
attr_dev(input2, "type", "file");
|
2611 |
attr_dev(input2, "accept", ".json");
|
2612 |
+
add_location(input2, file$4, 323, 167, 12110);
|
2613 |
},
|
2614 |
l: function claim(nodes) {
|
2615 |
throw new Error("options.hydrate only works if the component was compiled with the `hydratable: true` option");
|
|
|
2797 |
|
2798 |
dispatch_dev("SvelteRegisterBlock", {
|
2799 |
block,
|
2800 |
+
id: create_fragment$4.name,
|
2801 |
type: "component",
|
2802 |
source: "",
|
2803 |
ctx
|
|
|
2811 |
return words[Math.floor(Math.random() * words.length)];
|
2812 |
}
|
2813 |
|
2814 |
+
function instance$4($$self, $$props, $$invalidate) {
|
2815 |
let nextindexButtonClass;
|
2816 |
let previousindexButtonClass;
|
2817 |
let currentindexButtonClass;
|
|
|
3101 |
const writable_props = [];
|
3102 |
|
3103 |
Object.keys($$props).forEach(key => {
|
3104 |
+
if (!~writable_props.indexOf(key) && key.slice(0, 2) !== '$$' && key !== 'slot') console_1$2.warn(`<YoutubeIframeAPICustomInterface> was created with unknown prop '${key}'`);
|
3105 |
});
|
3106 |
|
3107 |
function input0_input_handler() {
|
|
|
3244 |
class YoutubeIframeAPICustomInterface extends SvelteComponentDev {
|
3245 |
constructor(options) {
|
3246 |
super(options);
|
3247 |
+
init(this, options, instance$4, create_fragment$4, safe_not_equal, {}, null, [-1, -1]);
|
3248 |
|
3249 |
dispatch_dev("SvelteRegisterComponent", {
|
3250 |
component: this,
|
3251 |
tagName: "YoutubeIframeAPICustomInterface",
|
3252 |
options,
|
3253 |
+
id: create_fragment$4.name
|
3254 |
});
|
3255 |
}
|
3256 |
}
|
|
|
3322 |
|
3323 |
/* src\RecursiveNestedCommentsElement.svelte generated by Svelte v3.59.2 */
|
3324 |
|
3325 |
+
const { console: console_1$1 } = globals;
|
3326 |
+
const file$3 = "src\\RecursiveNestedCommentsElement.svelte";
|
3327 |
|
3328 |
+
function get_each_context$2(ctx, list, i) {
|
3329 |
const child_ctx = ctx.slice();
|
3330 |
child_ctx[14] = list[i];
|
3331 |
child_ctx[15] = list;
|
|
|
3334 |
}
|
3335 |
|
3336 |
// (123:16) {#if showReplyInput[comment.id]}
|
3337 |
+
function create_if_block$1(ctx) {
|
3338 |
let div;
|
3339 |
let input;
|
3340 |
let t0;
|
|
|
3358 |
button = element("button");
|
3359 |
button.textContent = "Post Reply";
|
3360 |
attr_dev(input, "placeholder", "Write a reply...");
|
3361 |
+
add_location(input, file$3, 124, 24, 4690);
|
3362 |
+
add_location(button, file$3, 125, 24, 4791);
|
3363 |
attr_dev(div, "class", "reply-input");
|
3364 |
+
add_location(div, file$3, 123, 20, 4639);
|
3365 |
},
|
3366 |
m: function mount(target, anchor) {
|
3367 |
insert_dev(target, div, anchor);
|
|
|
3395 |
|
3396 |
dispatch_dev("SvelteRegisterBlock", {
|
3397 |
block,
|
3398 |
+
id: create_if_block$1.name,
|
3399 |
type: "if",
|
3400 |
source: "(123:16) {#if showReplyInput[comment.id]}",
|
3401 |
ctx
|
|
|
3405 |
}
|
3406 |
|
3407 |
// (119:8) {#each flattenedComments as comment}
|
3408 |
+
function create_each_block$2(ctx) {
|
3409 |
let div;
|
3410 |
let span;
|
3411 |
let t0_value = /*comment*/ ctx[14].title + "";
|
|
|
3422 |
return /*click_handler*/ ctx[10](/*comment*/ ctx[14]);
|
3423 |
}
|
3424 |
|
3425 |
+
let if_block = /*showReplyInput*/ ctx[3][/*comment*/ ctx[14].id] && create_if_block$1(ctx);
|
3426 |
|
3427 |
const block = {
|
3428 |
c: function create() {
|
|
|
3435 |
t3 = space();
|
3436 |
if (if_block) if_block.c();
|
3437 |
t4 = space();
|
3438 |
+
add_location(span, file$3, 120, 16, 4453);
|
3439 |
+
add_location(button, file$3, 121, 16, 4499);
|
3440 |
|
3441 |
attr_dev(div, "class", div_class_value = "" + (null_to_empty(/*comment*/ ctx[14].level === 0
|
3442 |
? 'top-level-comment'
|
3443 |
: 'comment') + " svelte-bsj1sx"));
|
3444 |
|
3445 |
set_style(div, "margin-left", /*comment*/ ctx[14].level * 20 + "px");
|
3446 |
+
add_location(div, file$3, 119, 12, 4323);
|
3447 |
},
|
3448 |
m: function mount(target, anchor) {
|
3449 |
insert_dev(target, div, anchor);
|
|
|
3468 |
if (if_block) {
|
3469 |
if_block.p(ctx, dirty);
|
3470 |
} else {
|
3471 |
+
if_block = create_if_block$1(ctx);
|
3472 |
if_block.c();
|
3473 |
if_block.m(div, t4);
|
3474 |
}
|
|
|
3497 |
|
3498 |
dispatch_dev("SvelteRegisterBlock", {
|
3499 |
block,
|
3500 |
+
id: create_each_block$2.name,
|
3501 |
type: "each",
|
3502 |
source: "(119:8) {#each flattenedComments as comment}",
|
3503 |
ctx
|
|
|
3506 |
return block;
|
3507 |
}
|
3508 |
|
3509 |
+
function create_fragment$3(ctx) {
|
3510 |
let h1;
|
3511 |
let t1;
|
3512 |
let h4;
|
|
|
3531 |
let each_blocks = [];
|
3532 |
|
3533 |
for (let i = 0; i < each_value.length; i += 1) {
|
3534 |
+
each_blocks[i] = create_each_block$2(get_each_context$2(ctx, each_value, i));
|
3535 |
}
|
3536 |
|
3537 |
const block = {
|
|
|
3562 |
each_blocks[i].c();
|
3563 |
}
|
3564 |
|
3565 |
+
add_location(h1, file$3, 104, 0, 3512);
|
3566 |
+
add_location(h4, file$3, 105, 0, 3614);
|
3567 |
+
add_location(button0, file$3, 108, 8, 3897);
|
3568 |
attr_dev(input0, "type", "file");
|
3569 |
+
add_location(input0, file$3, 110, 8, 4000);
|
3570 |
attr_dev(input1, "placeholder", "Add a comment...");
|
3571 |
+
add_location(input1, file$3, 112, 8, 4072);
|
3572 |
+
add_location(button1, file$3, 113, 8, 4146);
|
3573 |
+
add_location(div0, file$3, 107, 4, 3882);
|
3574 |
+
add_location(br, file$3, 116, 4, 4225);
|
3575 |
attr_dev(div1, "id", "comment-container");
|
3576 |
+
add_location(div1, file$3, 117, 4, 4235);
|
3577 |
attr_dev(div2, "class", "component-containter svelte-bsj1sx");
|
3578 |
set_style(div2, "border", "1px solid black");
|
3579 |
set_style(div2, "padding", "4px");
|
3580 |
+
add_location(div2, file$3, 106, 0, 3795);
|
3581 |
},
|
3582 |
l: function claim(nodes) {
|
3583 |
throw new Error("options.hydrate only works if the component was compiled with the `hydratable: true` option");
|
|
|
3630 |
let i;
|
3631 |
|
3632 |
for (i = 0; i < each_value.length; i += 1) {
|
3633 |
+
const child_ctx = get_each_context$2(ctx, each_value, i);
|
3634 |
|
3635 |
if (each_blocks[i]) {
|
3636 |
each_blocks[i].p(child_ctx, dirty);
|
3637 |
} else {
|
3638 |
+
each_blocks[i] = create_each_block$2(child_ctx);
|
3639 |
each_blocks[i].c();
|
3640 |
each_blocks[i].m(div1, null);
|
3641 |
}
|
|
|
3664 |
|
3665 |
dispatch_dev("SvelteRegisterBlock", {
|
3666 |
block,
|
3667 |
+
id: create_fragment$3.name,
|
3668 |
type: "component",
|
3669 |
source: "",
|
3670 |
ctx
|
|
|
3690 |
return result;
|
3691 |
}
|
3692 |
|
3693 |
+
function instance$3($$self, $$props, $$invalidate) {
|
3694 |
let { $$slots: slots = {}, $$scope } = $$props;
|
3695 |
validate_slots('RecursiveNestedCommentsElement', slots, []);
|
3696 |
let comments = [];
|
|
|
3775 |
const writable_props = [];
|
3776 |
|
3777 |
Object.keys($$props).forEach(key => {
|
3778 |
+
if (!~writable_props.indexOf(key) && key.slice(0, 2) !== '$$' && key !== 'slot') console_1$1.warn(`<RecursiveNestedCommentsElement> was created with unknown prop '${key}'`);
|
3779 |
});
|
3780 |
|
3781 |
function input1_input_handler() {
|
|
|
3842 |
class RecursiveNestedCommentsElement extends SvelteComponentDev {
|
3843 |
constructor(options) {
|
3844 |
super(options);
|
3845 |
+
init(this, options, instance$3, create_fragment$3, safe_not_equal, {});
|
3846 |
|
3847 |
dispatch_dev("SvelteRegisterComponent", {
|
3848 |
component: this,
|
3849 |
tagName: "RecursiveNestedCommentsElement",
|
3850 |
options,
|
3851 |
+
id: create_fragment$3.name
|
3852 |
});
|
3853 |
}
|
3854 |
}
|
3855 |
|
3856 |
+
/* src\CopyandRemoveListComponent.svelte generated by Svelte v3.59.2 */
|
|
|
3857 |
|
3858 |
+
const { console: console_1 } = globals;
|
3859 |
+
const file$2 = "src\\CopyandRemoveListComponent.svelte";
|
3860 |
+
|
3861 |
+
function get_each_context$1(ctx, list, i) {
|
3862 |
+
const child_ctx = ctx.slice();
|
3863 |
+
child_ctx[6] = list[i];
|
3864 |
+
return child_ctx;
|
3865 |
+
}
|
3866 |
+
|
3867 |
+
// (26:0) {:else}
|
3868 |
+
function create_else_block(ctx) {
|
3869 |
+
let each_blocks = [];
|
3870 |
+
let each_1_lookup = new Map();
|
3871 |
+
let each_1_anchor;
|
3872 |
+
let each_value = /*items*/ ctx[1];
|
3873 |
+
validate_each_argument(each_value);
|
3874 |
+
const get_key = ctx => /*item*/ ctx[6].id;
|
3875 |
+
validate_each_keys(ctx, each_value, get_each_context$1, get_key);
|
3876 |
+
|
3877 |
+
for (let i = 0; i < each_value.length; i += 1) {
|
3878 |
+
let child_ctx = get_each_context$1(ctx, each_value, i);
|
3879 |
+
let key = get_key(child_ctx);
|
3880 |
+
each_1_lookup.set(key, each_blocks[i] = create_each_block$1(key, child_ctx));
|
3881 |
+
}
|
3882 |
+
|
3883 |
+
const block = {
|
3884 |
+
c: function create() {
|
3885 |
+
for (let i = 0; i < each_blocks.length; i += 1) {
|
3886 |
+
each_blocks[i].c();
|
3887 |
+
}
|
3888 |
+
|
3889 |
+
each_1_anchor = empty();
|
3890 |
+
},
|
3891 |
+
m: function mount(target, anchor) {
|
3892 |
+
for (let i = 0; i < each_blocks.length; i += 1) {
|
3893 |
+
if (each_blocks[i]) {
|
3894 |
+
each_blocks[i].m(target, anchor);
|
3895 |
+
}
|
3896 |
+
}
|
3897 |
+
|
3898 |
+
insert_dev(target, each_1_anchor, anchor);
|
3899 |
+
},
|
3900 |
+
p: function update(ctx, dirty) {
|
3901 |
+
if (dirty & /*copyAndRemoveItem, items*/ 10) {
|
3902 |
+
each_value = /*items*/ ctx[1];
|
3903 |
+
validate_each_argument(each_value);
|
3904 |
+
validate_each_keys(ctx, each_value, get_each_context$1, get_key);
|
3905 |
+
each_blocks = update_keyed_each(each_blocks, dirty, get_key, 1, ctx, each_value, each_1_lookup, each_1_anchor.parentNode, destroy_block, create_each_block$1, each_1_anchor, get_each_context$1);
|
3906 |
+
}
|
3907 |
+
},
|
3908 |
+
d: function destroy(detaching) {
|
3909 |
+
for (let i = 0; i < each_blocks.length; i += 1) {
|
3910 |
+
each_blocks[i].d(detaching);
|
3911 |
+
}
|
3912 |
+
|
3913 |
+
if (detaching) detach_dev(each_1_anchor);
|
3914 |
+
}
|
3915 |
+
};
|
3916 |
+
|
3917 |
+
dispatch_dev("SvelteRegisterBlock", {
|
3918 |
+
block,
|
3919 |
+
id: create_else_block.name,
|
3920 |
+
type: "else",
|
3921 |
+
source: "(26:0) {:else}",
|
3922 |
+
ctx
|
3923 |
+
});
|
3924 |
+
|
3925 |
+
return block;
|
3926 |
+
}
|
3927 |
+
|
3928 |
+
// (24:0) {#if items.length === 0}
|
3929 |
+
function create_if_block(ctx) {
|
3930 |
let p;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3931 |
|
3932 |
const block = {
|
3933 |
c: function create() {
|
|
|
|
|
|
|
|
|
|
|
|
|
3934 |
p = element("p");
|
3935 |
+
p.textContent = "All items have been copied! (or none entered yet)";
|
3936 |
+
add_location(p, file$2, 24, 4, 732);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3937 |
},
|
3938 |
+
m: function mount(target, anchor) {
|
3939 |
+
insert_dev(target, p, anchor);
|
3940 |
+
},
|
3941 |
+
p: noop,
|
3942 |
+
d: function destroy(detaching) {
|
3943 |
+
if (detaching) detach_dev(p);
|
3944 |
+
}
|
3945 |
+
};
|
3946 |
+
|
3947 |
+
dispatch_dev("SvelteRegisterBlock", {
|
3948 |
+
block,
|
3949 |
+
id: create_if_block.name,
|
3950 |
+
type: "if",
|
3951 |
+
source: "(24:0) {#if items.length === 0}",
|
3952 |
+
ctx
|
3953 |
+
});
|
3954 |
+
|
3955 |
+
return block;
|
3956 |
+
}
|
3957 |
+
|
3958 |
+
// (27:4) {#each items as item (item.id)}
|
3959 |
+
function create_each_block$1(key_1, ctx) {
|
3960 |
+
let button;
|
3961 |
+
let t0_value = /*item*/ ctx[6].text + "";
|
3962 |
+
let t0;
|
3963 |
+
let t1;
|
3964 |
+
let mounted;
|
3965 |
+
let dispose;
|
3966 |
+
|
3967 |
+
function click_handler() {
|
3968 |
+
return /*click_handler*/ ctx[5](/*item*/ ctx[6]);
|
3969 |
+
}
|
3970 |
+
|
3971 |
+
const block = {
|
3972 |
+
key: key_1,
|
3973 |
+
first: null,
|
3974 |
+
c: function create() {
|
3975 |
+
button = element("button");
|
3976 |
+
t0 = text(t0_value);
|
3977 |
+
t1 = space();
|
3978 |
+
attr_dev(button, "class", "item svelte-bmbf24");
|
3979 |
+
add_location(button, file$2, 27, 8, 844);
|
3980 |
+
this.first = button;
|
3981 |
},
|
3982 |
m: function mount(target, anchor) {
|
3983 |
+
insert_dev(target, button, anchor);
|
3984 |
+
append_dev(button, t0);
|
3985 |
+
append_dev(button, t1);
|
3986 |
+
|
3987 |
+
if (!mounted) {
|
3988 |
+
dispose = listen_dev(button, "click", click_handler, false, false, false, false);
|
3989 |
+
mounted = true;
|
3990 |
+
}
|
3991 |
+
},
|
3992 |
+
p: function update(new_ctx, dirty) {
|
3993 |
+
ctx = new_ctx;
|
3994 |
+
if (dirty & /*items*/ 2 && t0_value !== (t0_value = /*item*/ ctx[6].text + "")) set_data_dev(t0, t0_value);
|
3995 |
+
},
|
3996 |
+
d: function destroy(detaching) {
|
3997 |
+
if (detaching) detach_dev(button);
|
3998 |
+
mounted = false;
|
3999 |
+
dispose();
|
4000 |
+
}
|
4001 |
+
};
|
4002 |
+
|
4003 |
+
dispatch_dev("SvelteRegisterBlock", {
|
4004 |
+
block,
|
4005 |
+
id: create_each_block$1.name,
|
4006 |
+
type: "each",
|
4007 |
+
source: "(27:4) {#each items as item (item.id)}",
|
4008 |
+
ctx
|
4009 |
+
});
|
4010 |
+
|
4011 |
+
return block;
|
4012 |
+
}
|
4013 |
+
|
4014 |
+
function create_fragment$2(ctx) {
|
4015 |
+
let h1;
|
4016 |
+
let t1;
|
4017 |
+
let textarea;
|
4018 |
+
let t2;
|
4019 |
+
let if_block_anchor;
|
4020 |
+
let mounted;
|
4021 |
+
let dispose;
|
4022 |
+
|
4023 |
+
function select_block_type(ctx, dirty) {
|
4024 |
+
if (/*items*/ ctx[1].length === 0) return create_if_block;
|
4025 |
+
return create_else_block;
|
4026 |
+
}
|
4027 |
+
|
4028 |
+
let current_block_type = select_block_type(ctx);
|
4029 |
+
let if_block = current_block_type(ctx);
|
4030 |
+
|
4031 |
+
const block = {
|
4032 |
+
c: function create() {
|
4033 |
+
h1 = element("h1");
|
4034 |
+
h1.textContent = "Copy items for prompts by clicking buttons below";
|
4035 |
+
t1 = space();
|
4036 |
+
textarea = element("textarea");
|
4037 |
+
t2 = space();
|
4038 |
+
if_block.c();
|
4039 |
+
if_block_anchor = empty();
|
4040 |
+
add_location(h1, file$2, 19, 0, 537);
|
4041 |
+
attr_dev(textarea, "placeholder", "Enter text here...");
|
4042 |
+
attr_dev(textarea, "class", "svelte-bmbf24");
|
4043 |
+
add_location(textarea, file$2, 21, 0, 598);
|
4044 |
+
},
|
4045 |
+
l: function claim(nodes) {
|
4046 |
+
throw new Error("options.hydrate only works if the component was compiled with the `hydratable: true` option");
|
4047 |
+
},
|
4048 |
+
m: function mount(target, anchor) {
|
4049 |
+
insert_dev(target, h1, anchor);
|
4050 |
+
insert_dev(target, t1, anchor);
|
4051 |
+
insert_dev(target, textarea, anchor);
|
4052 |
+
set_input_value(textarea, /*textInput*/ ctx[0]);
|
4053 |
+
insert_dev(target, t2, anchor);
|
4054 |
+
if_block.m(target, anchor);
|
4055 |
+
insert_dev(target, if_block_anchor, anchor);
|
4056 |
+
|
4057 |
+
if (!mounted) {
|
4058 |
+
dispose = [
|
4059 |
+
listen_dev(textarea, "input", /*textarea_input_handler*/ ctx[4]),
|
4060 |
+
listen_dev(textarea, "input", /*updateItems*/ ctx[2], false, false, false, false)
|
4061 |
+
];
|
4062 |
+
|
4063 |
+
mounted = true;
|
4064 |
+
}
|
4065 |
+
},
|
4066 |
+
p: function update(ctx, [dirty]) {
|
4067 |
+
if (dirty & /*textInput*/ 1) {
|
4068 |
+
set_input_value(textarea, /*textInput*/ ctx[0]);
|
4069 |
+
}
|
4070 |
+
|
4071 |
+
if (current_block_type === (current_block_type = select_block_type(ctx)) && if_block) {
|
4072 |
+
if_block.p(ctx, dirty);
|
4073 |
+
} else {
|
4074 |
+
if_block.d(1);
|
4075 |
+
if_block = current_block_type(ctx);
|
4076 |
+
|
4077 |
+
if (if_block) {
|
4078 |
+
if_block.c();
|
4079 |
+
if_block.m(if_block_anchor.parentNode, if_block_anchor);
|
4080 |
+
}
|
4081 |
+
}
|
4082 |
+
},
|
4083 |
+
i: noop,
|
4084 |
+
o: noop,
|
4085 |
+
d: function destroy(detaching) {
|
4086 |
+
if (detaching) detach_dev(h1);
|
4087 |
+
if (detaching) detach_dev(t1);
|
4088 |
+
if (detaching) detach_dev(textarea);
|
4089 |
+
if (detaching) detach_dev(t2);
|
4090 |
+
if_block.d(detaching);
|
4091 |
+
if (detaching) detach_dev(if_block_anchor);
|
4092 |
+
mounted = false;
|
4093 |
+
run_all(dispose);
|
4094 |
+
}
|
4095 |
+
};
|
4096 |
+
|
4097 |
+
dispatch_dev("SvelteRegisterBlock", {
|
4098 |
+
block,
|
4099 |
+
id: create_fragment$2.name,
|
4100 |
+
type: "component",
|
4101 |
+
source: "",
|
4102 |
+
ctx
|
4103 |
+
});
|
4104 |
+
|
4105 |
+
return block;
|
4106 |
+
}
|
4107 |
+
|
4108 |
+
function instance$2($$self, $$props, $$invalidate) {
|
4109 |
+
let { $$slots: slots = {}, $$scope } = $$props;
|
4110 |
+
validate_slots('CopyandRemoveListComponent', slots, []);
|
4111 |
+
let textInput = '';
|
4112 |
+
let items = [];
|
4113 |
+
|
4114 |
+
function updateItems() {
|
4115 |
+
$$invalidate(1, items = textInput.split('\n').filter(line => line.trim() !== '').map((line, index) => ({ id: index + line, text: line })));
|
4116 |
+
}
|
4117 |
+
|
4118 |
+
async function copyAndRemoveItem(item) {
|
4119 |
+
try {
|
4120 |
+
await navigator.clipboard.writeText(item.text);
|
4121 |
+
$$invalidate(1, items = items.filter(i => i.id !== item.id));
|
4122 |
+
} catch(err) {
|
4123 |
+
console.error('Failed to copy text: ', err);
|
4124 |
+
}
|
4125 |
+
}
|
4126 |
+
|
4127 |
+
const writable_props = [];
|
4128 |
+
|
4129 |
+
Object.keys($$props).forEach(key => {
|
4130 |
+
if (!~writable_props.indexOf(key) && key.slice(0, 2) !== '$$' && key !== 'slot') console_1.warn(`<CopyandRemoveListComponent> was created with unknown prop '${key}'`);
|
4131 |
+
});
|
4132 |
+
|
4133 |
+
function textarea_input_handler() {
|
4134 |
+
textInput = this.value;
|
4135 |
+
$$invalidate(0, textInput);
|
4136 |
+
}
|
4137 |
+
|
4138 |
+
const click_handler = item => copyAndRemoveItem(item);
|
4139 |
+
|
4140 |
+
$$self.$capture_state = () => ({
|
4141 |
+
textInput,
|
4142 |
+
items,
|
4143 |
+
updateItems,
|
4144 |
+
copyAndRemoveItem
|
4145 |
+
});
|
4146 |
+
|
4147 |
+
$$self.$inject_state = $$props => {
|
4148 |
+
if ('textInput' in $$props) $$invalidate(0, textInput = $$props.textInput);
|
4149 |
+
if ('items' in $$props) $$invalidate(1, items = $$props.items);
|
4150 |
+
};
|
4151 |
+
|
4152 |
+
if ($$props && "$$inject" in $$props) {
|
4153 |
+
$$self.$inject_state($$props.$$inject);
|
4154 |
+
}
|
4155 |
+
|
4156 |
+
return [
|
4157 |
+
textInput,
|
4158 |
+
items,
|
4159 |
+
updateItems,
|
4160 |
+
copyAndRemoveItem,
|
4161 |
+
textarea_input_handler,
|
4162 |
+
click_handler
|
4163 |
+
];
|
4164 |
+
}
|
4165 |
+
|
4166 |
+
class CopyandRemoveListComponent extends SvelteComponentDev {
|
4167 |
+
constructor(options) {
|
4168 |
+
super(options);
|
4169 |
+
init(this, options, instance$2, create_fragment$2, safe_not_equal, {});
|
4170 |
+
|
4171 |
+
dispatch_dev("SvelteRegisterComponent", {
|
4172 |
+
component: this,
|
4173 |
+
tagName: "CopyandRemoveListComponent",
|
4174 |
+
options,
|
4175 |
+
id: create_fragment$2.name
|
4176 |
+
});
|
4177 |
+
}
|
4178 |
+
}
|
4179 |
+
|
4180 |
+
/* src\ReadingStateCounter.svelte generated by Svelte v3.59.2 */
|
4181 |
+
|
4182 |
+
const file$1 = "src\\ReadingStateCounter.svelte";
|
4183 |
+
|
4184 |
+
function get_each_context(ctx, list, i) {
|
4185 |
+
const child_ctx = ctx.slice();
|
4186 |
+
child_ctx[8] = list[i];
|
4187 |
+
child_ctx[10] = i;
|
4188 |
+
return child_ctx;
|
4189 |
+
}
|
4190 |
+
|
4191 |
+
// (66:4) {#each words as wordObj, index (wordObj.word)}
|
4192 |
+
function create_each_block(key_1, ctx) {
|
4193 |
+
let button;
|
4194 |
+
let t0_value = /*wordObj*/ ctx[8].word + "";
|
4195 |
+
let t0;
|
4196 |
+
let t1;
|
4197 |
+
let t2_value = /*wordObj*/ ctx[8].count + "";
|
4198 |
+
let t2;
|
4199 |
+
let t3;
|
4200 |
+
let mounted;
|
4201 |
+
let dispose;
|
4202 |
+
|
4203 |
+
function click_handler() {
|
4204 |
+
return /*click_handler*/ ctx[7](/*index*/ ctx[10]);
|
4205 |
+
}
|
4206 |
+
|
4207 |
+
const block = {
|
4208 |
+
key: key_1,
|
4209 |
+
first: null,
|
4210 |
+
c: function create() {
|
4211 |
+
button = element("button");
|
4212 |
+
t0 = text(t0_value);
|
4213 |
+
t1 = text(" (");
|
4214 |
+
t2 = text(t2_value);
|
4215 |
+
t3 = text(")\r\n ");
|
4216 |
+
attr_dev(button, "class", "word-button svelte-13vjncp");
|
4217 |
+
set_style(button, "background-color", getColor(/*wordObj*/ ctx[8].count));
|
4218 |
+
add_location(button, file$1, 66, 8, 1940);
|
4219 |
+
this.first = button;
|
4220 |
+
},
|
4221 |
+
m: function mount(target, anchor) {
|
4222 |
+
insert_dev(target, button, anchor);
|
4223 |
+
append_dev(button, t0);
|
4224 |
+
append_dev(button, t1);
|
4225 |
+
append_dev(button, t2);
|
4226 |
+
append_dev(button, t3);
|
4227 |
+
|
4228 |
+
if (!mounted) {
|
4229 |
+
dispose = listen_dev(button, "click", click_handler, false, false, false, false);
|
4230 |
+
mounted = true;
|
4231 |
+
}
|
4232 |
+
},
|
4233 |
+
p: function update(new_ctx, dirty) {
|
4234 |
+
ctx = new_ctx;
|
4235 |
+
if (dirty & /*words*/ 2 && t0_value !== (t0_value = /*wordObj*/ ctx[8].word + "")) set_data_dev(t0, t0_value);
|
4236 |
+
if (dirty & /*words*/ 2 && t2_value !== (t2_value = /*wordObj*/ ctx[8].count + "")) set_data_dev(t2, t2_value);
|
4237 |
+
|
4238 |
+
if (dirty & /*words*/ 2) {
|
4239 |
+
set_style(button, "background-color", getColor(/*wordObj*/ ctx[8].count));
|
4240 |
+
}
|
4241 |
+
},
|
4242 |
+
d: function destroy(detaching) {
|
4243 |
+
if (detaching) detach_dev(button);
|
4244 |
+
mounted = false;
|
4245 |
+
dispose();
|
4246 |
+
}
|
4247 |
+
};
|
4248 |
+
|
4249 |
+
dispatch_dev("SvelteRegisterBlock", {
|
4250 |
+
block,
|
4251 |
+
id: create_each_block.name,
|
4252 |
+
type: "each",
|
4253 |
+
source: "(66:4) {#each words as wordObj, index (wordObj.word)}",
|
4254 |
+
ctx
|
4255 |
+
});
|
4256 |
+
|
4257 |
+
return block;
|
4258 |
+
}
|
4259 |
+
|
4260 |
+
function create_fragment$1(ctx) {
|
4261 |
+
let div0;
|
4262 |
+
let h1;
|
4263 |
+
let t1;
|
4264 |
+
let input0;
|
4265 |
+
let t2;
|
4266 |
+
let button0;
|
4267 |
+
let t4;
|
4268 |
+
let button1;
|
4269 |
+
let t6;
|
4270 |
+
let input1;
|
4271 |
+
let t7;
|
4272 |
+
let div1;
|
4273 |
+
let each_blocks = [];
|
4274 |
+
let each_1_lookup = new Map();
|
4275 |
+
let mounted;
|
4276 |
+
let dispose;
|
4277 |
+
let each_value = /*words*/ ctx[1];
|
4278 |
+
validate_each_argument(each_value);
|
4279 |
+
const get_key = ctx => /*wordObj*/ ctx[8].word;
|
4280 |
+
validate_each_keys(ctx, each_value, get_each_context, get_key);
|
4281 |
+
|
4282 |
+
for (let i = 0; i < each_value.length; i += 1) {
|
4283 |
+
let child_ctx = get_each_context(ctx, each_value, i);
|
4284 |
+
let key = get_key(child_ctx);
|
4285 |
+
each_1_lookup.set(key, each_blocks[i] = create_each_block(key, child_ctx));
|
4286 |
+
}
|
4287 |
+
|
4288 |
+
const block = {
|
4289 |
+
c: function create() {
|
4290 |
+
div0 = element("div");
|
4291 |
+
h1 = element("h1");
|
4292 |
+
h1.textContent = "Stateful Reader Brainstorm";
|
4293 |
+
t1 = space();
|
4294 |
+
input0 = element("input");
|
4295 |
+
t2 = space();
|
4296 |
+
button0 = element("button");
|
4297 |
+
button0.textContent = "Submit Text";
|
4298 |
+
t4 = space();
|
4299 |
+
button1 = element("button");
|
4300 |
+
button1.textContent = "Export to JSON";
|
4301 |
+
t6 = space();
|
4302 |
+
input1 = element("input");
|
4303 |
+
t7 = space();
|
4304 |
+
div1 = element("div");
|
4305 |
+
|
4306 |
+
for (let i = 0; i < each_blocks.length; i += 1) {
|
4307 |
+
each_blocks[i].c();
|
4308 |
+
}
|
4309 |
+
|
4310 |
+
add_location(h1, file$1, 57, 4, 1576);
|
4311 |
+
attr_dev(input0, "type", "text");
|
4312 |
+
attr_dev(input0, "placeholder", "Enter text here");
|
4313 |
+
attr_dev(input0, "class", "svelte-13vjncp");
|
4314 |
+
add_location(input0, file$1, 58, 4, 1617);
|
4315 |
+
attr_dev(button0, "class", "svelte-13vjncp");
|
4316 |
+
add_location(button0, file$1, 59, 4, 1696);
|
4317 |
+
attr_dev(button1, "class", "svelte-13vjncp");
|
4318 |
+
add_location(button1, file$1, 60, 4, 1752);
|
4319 |
+
attr_dev(input1, "type", "file");
|
4320 |
+
attr_dev(input1, "class", "svelte-13vjncp");
|
4321 |
+
add_location(input1, file$1, 61, 4, 1813);
|
4322 |
+
add_location(div0, file$1, 56, 0, 1565);
|
4323 |
+
add_location(div1, file$1, 64, 0, 1873);
|
4324 |
+
},
|
4325 |
+
l: function claim(nodes) {
|
4326 |
+
throw new Error("options.hydrate only works if the component was compiled with the `hydratable: true` option");
|
4327 |
+
},
|
4328 |
+
m: function mount(target, anchor) {
|
4329 |
+
insert_dev(target, div0, anchor);
|
4330 |
+
append_dev(div0, h1);
|
4331 |
+
append_dev(div0, t1);
|
4332 |
+
append_dev(div0, input0);
|
4333 |
+
set_input_value(input0, /*inputText*/ ctx[0]);
|
4334 |
+
append_dev(div0, t2);
|
4335 |
+
append_dev(div0, button0);
|
4336 |
+
append_dev(div0, t4);
|
4337 |
+
append_dev(div0, button1);
|
4338 |
+
append_dev(div0, t6);
|
4339 |
+
append_dev(div0, input1);
|
4340 |
+
insert_dev(target, t7, anchor);
|
4341 |
+
insert_dev(target, div1, anchor);
|
4342 |
+
|
4343 |
+
for (let i = 0; i < each_blocks.length; i += 1) {
|
4344 |
+
if (each_blocks[i]) {
|
4345 |
+
each_blocks[i].m(div1, null);
|
4346 |
+
}
|
4347 |
+
}
|
4348 |
+
|
4349 |
+
if (!mounted) {
|
4350 |
+
dispose = [
|
4351 |
+
listen_dev(input0, "input", /*input0_input_handler*/ ctx[6]),
|
4352 |
+
listen_dev(button0, "click", /*submitText*/ ctx[2], false, false, false, false),
|
4353 |
+
listen_dev(button1, "click", /*exportToJson*/ ctx[4], false, false, false, false),
|
4354 |
+
listen_dev(input1, "change", /*importFromJson*/ ctx[5], false, false, false, false)
|
4355 |
+
];
|
4356 |
+
|
4357 |
+
mounted = true;
|
4358 |
+
}
|
4359 |
+
},
|
4360 |
+
p: function update(ctx, [dirty]) {
|
4361 |
+
if (dirty & /*inputText*/ 1 && input0.value !== /*inputText*/ ctx[0]) {
|
4362 |
+
set_input_value(input0, /*inputText*/ ctx[0]);
|
4363 |
+
}
|
4364 |
+
|
4365 |
+
if (dirty & /*getColor, words, handleClick*/ 10) {
|
4366 |
+
each_value = /*words*/ ctx[1];
|
4367 |
+
validate_each_argument(each_value);
|
4368 |
+
validate_each_keys(ctx, each_value, get_each_context, get_key);
|
4369 |
+
each_blocks = update_keyed_each(each_blocks, dirty, get_key, 1, ctx, each_value, each_1_lookup, div1, destroy_block, create_each_block, null, get_each_context);
|
4370 |
+
}
|
4371 |
+
},
|
4372 |
+
i: noop,
|
4373 |
+
o: noop,
|
4374 |
+
d: function destroy(detaching) {
|
4375 |
+
if (detaching) detach_dev(div0);
|
4376 |
+
if (detaching) detach_dev(t7);
|
4377 |
+
if (detaching) detach_dev(div1);
|
4378 |
+
|
4379 |
+
for (let i = 0; i < each_blocks.length; i += 1) {
|
4380 |
+
each_blocks[i].d();
|
4381 |
+
}
|
4382 |
+
|
4383 |
+
mounted = false;
|
4384 |
+
run_all(dispose);
|
4385 |
+
}
|
4386 |
+
};
|
4387 |
+
|
4388 |
+
dispatch_dev("SvelteRegisterBlock", {
|
4389 |
+
block,
|
4390 |
+
id: create_fragment$1.name,
|
4391 |
+
type: "component",
|
4392 |
+
source: "",
|
4393 |
+
ctx
|
4394 |
+
});
|
4395 |
+
|
4396 |
+
return block;
|
4397 |
+
}
|
4398 |
+
|
4399 |
+
function getColor(count) {
|
4400 |
+
const colors = [
|
4401 |
+
'#1a1a1a',
|
4402 |
+
'#333333',
|
4403 |
+
'#4d4d4d',
|
4404 |
+
'#666666',
|
4405 |
+
'#808080',
|
4406 |
+
'#999999',
|
4407 |
+
'#b3b3b3',
|
4408 |
+
'#cccccc',
|
4409 |
+
'#e6e6e6',
|
4410 |
+
'#ffffff'
|
4411 |
+
];
|
4412 |
+
|
4413 |
+
return colors[Math.min(Math.floor(count / 10), 9)];
|
4414 |
+
}
|
4415 |
+
|
4416 |
+
function instance$1($$self, $$props, $$invalidate) {
|
4417 |
+
let { $$slots: slots = {}, $$scope } = $$props;
|
4418 |
+
validate_slots('ReadingStateCounter', slots, []);
|
4419 |
+
let inputText = "";
|
4420 |
+
let words = [];
|
4421 |
+
|
4422 |
+
function submitText() {
|
4423 |
+
$$invalidate(1, words = inputText.split(/\s+/).map(word => ({ word, count: 0 })));
|
4424 |
+
}
|
4425 |
+
|
4426 |
+
function handleClick(index) {
|
4427 |
+
$$invalidate(1, words[index].count += 1, words);
|
4428 |
+
$$invalidate(1, words = [...words]); // Ensures Svelte detects the change
|
4429 |
+
}
|
4430 |
+
|
4431 |
+
// Function to export data to JSON
|
4432 |
+
function exportToJson() {
|
4433 |
+
const jsonData = JSON.stringify(words);
|
4434 |
+
const blob = new Blob([jsonData], { type: "application/json" });
|
4435 |
+
const url = URL.createObjectURL(blob);
|
4436 |
+
const a = document.createElement('a');
|
4437 |
+
a.href = url;
|
4438 |
+
a.download = 'statefulwords.json';
|
4439 |
+
a.click();
|
4440 |
+
URL.revokeObjectURL(url);
|
4441 |
+
}
|
4442 |
+
|
4443 |
+
// Function to handle file import
|
4444 |
+
function importFromJson(event) {
|
4445 |
+
const file = event.target.files[0];
|
4446 |
+
|
4447 |
+
if (file) {
|
4448 |
+
const reader = new FileReader();
|
4449 |
+
|
4450 |
+
reader.onload = e => {
|
4451 |
+
const json = e.target.result;
|
4452 |
+
$$invalidate(1, words = JSON.parse(json));
|
4453 |
+
};
|
4454 |
+
|
4455 |
+
reader.readAsText(file);
|
4456 |
+
}
|
4457 |
+
}
|
4458 |
+
|
4459 |
+
const writable_props = [];
|
4460 |
+
|
4461 |
+
Object.keys($$props).forEach(key => {
|
4462 |
+
if (!~writable_props.indexOf(key) && key.slice(0, 2) !== '$$' && key !== 'slot') console.warn(`<ReadingStateCounter> was created with unknown prop '${key}'`);
|
4463 |
+
});
|
4464 |
+
|
4465 |
+
function input0_input_handler() {
|
4466 |
+
inputText = this.value;
|
4467 |
+
$$invalidate(0, inputText);
|
4468 |
+
}
|
4469 |
+
|
4470 |
+
const click_handler = index => handleClick(index);
|
4471 |
+
|
4472 |
+
$$self.$capture_state = () => ({
|
4473 |
+
inputText,
|
4474 |
+
words,
|
4475 |
+
submitText,
|
4476 |
+
handleClick,
|
4477 |
+
getColor,
|
4478 |
+
exportToJson,
|
4479 |
+
importFromJson
|
4480 |
+
});
|
4481 |
+
|
4482 |
+
$$self.$inject_state = $$props => {
|
4483 |
+
if ('inputText' in $$props) $$invalidate(0, inputText = $$props.inputText);
|
4484 |
+
if ('words' in $$props) $$invalidate(1, words = $$props.words);
|
4485 |
+
};
|
4486 |
+
|
4487 |
+
if ($$props && "$$inject" in $$props) {
|
4488 |
+
$$self.$inject_state($$props.$$inject);
|
4489 |
+
}
|
4490 |
+
|
4491 |
+
return [
|
4492 |
+
inputText,
|
4493 |
+
words,
|
4494 |
+
submitText,
|
4495 |
+
handleClick,
|
4496 |
+
exportToJson,
|
4497 |
+
importFromJson,
|
4498 |
+
input0_input_handler,
|
4499 |
+
click_handler
|
4500 |
+
];
|
4501 |
+
}
|
4502 |
+
|
4503 |
+
class ReadingStateCounter extends SvelteComponentDev {
|
4504 |
+
constructor(options) {
|
4505 |
+
super(options);
|
4506 |
+
init(this, options, instance$1, create_fragment$1, safe_not_equal, {});
|
4507 |
+
|
4508 |
+
dispatch_dev("SvelteRegisterComponent", {
|
4509 |
+
component: this,
|
4510 |
+
tagName: "ReadingStateCounter",
|
4511 |
+
options,
|
4512 |
+
id: create_fragment$1.name
|
4513 |
+
});
|
4514 |
+
}
|
4515 |
+
}
|
4516 |
+
|
4517 |
+
/* src\App.svelte generated by Svelte v3.59.2 */
|
4518 |
+
const file = "src\\App.svelte";
|
4519 |
+
|
4520 |
+
function create_fragment(ctx) {
|
4521 |
+
let main;
|
4522 |
+
let h10;
|
4523 |
+
let t0;
|
4524 |
+
let t1;
|
4525 |
+
let t2;
|
4526 |
+
let t3;
|
4527 |
+
let p;
|
4528 |
+
let t4;
|
4529 |
+
let a;
|
4530 |
+
let t6;
|
4531 |
+
let t7;
|
4532 |
+
let h11;
|
4533 |
+
let t9;
|
4534 |
+
let h30;
|
4535 |
+
let t11;
|
4536 |
+
let h31;
|
4537 |
+
let t13;
|
4538 |
+
let readingstatecounter;
|
4539 |
+
let t14;
|
4540 |
+
let copyremove;
|
4541 |
+
let t15;
|
4542 |
+
let nestedcommentssvelte;
|
4543 |
+
let t16;
|
4544 |
+
let myyoutube;
|
4545 |
+
let t17;
|
4546 |
+
let h12;
|
4547 |
+
let t19;
|
4548 |
+
let dotgame;
|
4549 |
+
let current;
|
4550 |
+
readingstatecounter = new ReadingStateCounter({ $$inline: true });
|
4551 |
+
copyremove = new CopyandRemoveListComponent({ $$inline: true });
|
4552 |
+
nestedcommentssvelte = new RecursiveNestedCommentsElement({ $$inline: true });
|
4553 |
+
myyoutube = new YoutubeIframeAPICustomInterface({ $$inline: true });
|
4554 |
+
dotgame = new MovingDotSpacePortfromReact({ $$inline: true });
|
4555 |
+
|
4556 |
+
const block = {
|
4557 |
+
c: function create() {
|
4558 |
+
main = element("main");
|
4559 |
+
h10 = element("h1");
|
4560 |
+
t0 = text("Hello ");
|
4561 |
+
t1 = text(/*name*/ ctx[0]);
|
4562 |
+
t2 = text("!");
|
4563 |
+
t3 = space();
|
4564 |
+
p = element("p");
|
4565 |
+
t4 = text("Visit the ");
|
4566 |
+
a = element("a");
|
4567 |
+
a.textContent = "Svelte tutorial";
|
4568 |
+
t6 = text(" to learn how to build Svelte apps.");
|
4569 |
+
t7 = space();
|
4570 |
+
h11 = element("h1");
|
4571 |
+
h11.textContent = "Brainstorm for Educational Interfaces to add LLM and other models into";
|
4572 |
+
t9 = space();
|
4573 |
+
h30 = element("h3");
|
4574 |
+
h30.textContent = "(Through Gradio and Custom Components)";
|
4575 |
+
t11 = space();
|
4576 |
+
h31 = element("h3");
|
4577 |
+
h31.textContent = "Gradio client Test in another space due to incompatabilitiess with default svelte and @gradio/client";
|
4578 |
+
t13 = space();
|
4579 |
+
create_component(readingstatecounter.$$.fragment);
|
4580 |
+
t14 = space();
|
4581 |
+
create_component(copyremove.$$.fragment);
|
4582 |
+
t15 = space();
|
4583 |
+
create_component(nestedcommentssvelte.$$.fragment);
|
4584 |
+
t16 = space();
|
4585 |
+
create_component(myyoutube.$$.fragment);
|
4586 |
+
t17 = space();
|
4587 |
+
h12 = element("h1");
|
4588 |
+
h12.textContent = "Themeable Game Brainstorm - Image + Lists";
|
4589 |
+
t19 = space();
|
4590 |
+
create_component(dotgame.$$.fragment);
|
4591 |
+
attr_dev(h10, "class", "svelte-1tky8bj");
|
4592 |
+
add_location(h10, file, 24, 1, 651);
|
4593 |
+
attr_dev(a, "href", "https://svelte.dev/tutorial");
|
4594 |
+
add_location(a, file, 25, 14, 688);
|
4595 |
+
add_location(p, file, 25, 1, 675);
|
4596 |
+
attr_dev(h11, "class", "svelte-1tky8bj");
|
4597 |
+
add_location(h11, file, 27, 1, 787);
|
4598 |
+
add_location(h30, file, 28, 1, 870);
|
4599 |
+
add_location(h31, file, 30, 1, 922);
|
4600 |
+
attr_dev(h12, "class", "svelte-1tky8bj");
|
4601 |
+
add_location(h12, file, 41, 1, 1170);
|
4602 |
+
attr_dev(main, "class", "svelte-1tky8bj");
|
4603 |
+
add_location(main, file, 22, 0, 642);
|
4604 |
+
},
|
4605 |
+
l: function claim(nodes) {
|
4606 |
+
throw new Error("options.hydrate only works if the component was compiled with the `hydratable: true` option");
|
4607 |
+
},
|
4608 |
+
m: function mount(target, anchor) {
|
4609 |
+
insert_dev(target, main, anchor);
|
4610 |
+
append_dev(main, h10);
|
4611 |
+
append_dev(h10, t0);
|
4612 |
+
append_dev(h10, t1);
|
4613 |
+
append_dev(h10, t2);
|
4614 |
+
append_dev(main, t3);
|
4615 |
+
append_dev(main, p);
|
4616 |
+
append_dev(p, t4);
|
4617 |
+
append_dev(p, a);
|
4618 |
+
append_dev(p, t6);
|
4619 |
+
append_dev(main, t7);
|
4620 |
append_dev(main, h11);
|
4621 |
append_dev(main, t9);
|
4622 |
+
append_dev(main, h30);
|
4623 |
append_dev(main, t11);
|
4624 |
+
append_dev(main, h31);
|
4625 |
+
append_dev(main, t13);
|
4626 |
+
mount_component(readingstatecounter, main, null);
|
4627 |
+
append_dev(main, t14);
|
4628 |
+
mount_component(copyremove, main, null);
|
4629 |
+
append_dev(main, t15);
|
4630 |
mount_component(nestedcommentssvelte, main, null);
|
4631 |
+
append_dev(main, t16);
|
4632 |
mount_component(myyoutube, main, null);
|
4633 |
+
append_dev(main, t17);
|
4634 |
append_dev(main, h12);
|
4635 |
+
append_dev(main, t19);
|
4636 |
mount_component(dotgame, main, null);
|
4637 |
current = true;
|
4638 |
},
|
|
|
4641 |
},
|
4642 |
i: function intro(local) {
|
4643 |
if (current) return;
|
4644 |
+
transition_in(readingstatecounter.$$.fragment, local);
|
4645 |
+
transition_in(copyremove.$$.fragment, local);
|
4646 |
transition_in(nestedcommentssvelte.$$.fragment, local);
|
4647 |
transition_in(myyoutube.$$.fragment, local);
|
4648 |
transition_in(dotgame.$$.fragment, local);
|
4649 |
current = true;
|
4650 |
},
|
4651 |
o: function outro(local) {
|
4652 |
+
transition_out(readingstatecounter.$$.fragment, local);
|
4653 |
+
transition_out(copyremove.$$.fragment, local);
|
4654 |
transition_out(nestedcommentssvelte.$$.fragment, local);
|
4655 |
transition_out(myyoutube.$$.fragment, local);
|
4656 |
transition_out(dotgame.$$.fragment, local);
|
|
|
4658 |
},
|
4659 |
d: function destroy(detaching) {
|
4660 |
if (detaching) detach_dev(main);
|
4661 |
+
destroy_component(readingstatecounter);
|
4662 |
+
destroy_component(copyremove);
|
4663 |
destroy_component(nestedcommentssvelte);
|
4664 |
destroy_component(myyoutube);
|
4665 |
destroy_component(dotgame);
|
|
|
4713 |
DotGame: MovingDotSpacePortfromReact,
|
4714 |
MyYoutube: YoutubeIframeAPICustomInterface,
|
4715 |
NestedCommentsSvelte: RecursiveNestedCommentsElement,
|
4716 |
+
CopyRemove: CopyandRemoveListComponent,
|
4717 |
+
ReadingState: ReadingStateCounter,
|
4718 |
+
ReadingStateCounter,
|
4719 |
showModal,
|
4720 |
openModal,
|
4721 |
closeModal
|