svelte-parse
Version:
An increidbly relaxed svelte-parser
1,846 lines (1,845 loc) • 72.5 kB
JSON
{
"type": "root",
"children": [
{
"type": "svelteScript",
"tagName": "script",
"properties": [],
"selfClosing": false,
"children": [
{
"type": "text",
"value": "\n\timport { createEventDispatcher } from 'svelte';\n\n\texport let current_ease;\n\texport let current_type;\n\texport let eases;\n\texport let types;\n\texport let duration;\n\texport let playing;\n\texport let width;\n\n\tconst dispatch = createEventDispatcher();\n\n\t$: mobile = width && width < 600;\n",
"position": {
"start": {
"line": 1,
"column": 9,
"offset": 8
},
"end": {
"line": 15,
"column": 1,
"offset": 291
}
}
}
],
"position": {
"start": {
"line": 1,
"column": 1,
"offset": 0
},
"end": {
"line": 15,
"column": 10,
"offset": 300
}
}
},
{
"type": "text",
"value": "\n\n",
"position": {
"start": {
"line": 15,
"column": 10,
"offset": 300
},
"end": {
"line": 17,
"column": 1,
"offset": 302
}
}
},
{
"type": "svelteStyle",
"tagName": "style",
"properties": [],
"selfClosing": false,
"children": [
{
"type": "text",
"value": "\n\t.easing-sidebar {\n\t\twidth: 11em;\n\t}\n\n\tul {\n\t\tlist-style: none;\n\t\tpadding: 0;\n\t\tdisplay: flex;\n\t\tflex-direction: column;\n\t\talign-items: flex-start;\n\t\tfont-size: 18px;\n\t}\n\n\tli {\n\t\tpadding: 5px 10px;\n\t\tbackground: #eee;\n\t\tborder-radius: 2px;\n\t\tmargin: 3px 0;\n\t\tcursor:pointer;\n\t}\n\n\tli:hover {\n\t\tbackground: #676778;\n\t\tcolor: white;\n\t}\n\n\t.selected {\n\t\tbackground: #ff3e00;\n\t\tcolor: white;\n\t}\n\n\th3 {\n\t\tmargin: 0 10px 0 0;\n\t}\n\n\th4 {\n\t\tmargin-bottom: 0;\n\t}\n\n\tselect {\n\t\tdisplay: inline;\n\t\tpadding: 0.2em;\n\t\tmargin: 0;\n\t}\n\n\t.duration {\n\t\twidth: 100%;\n\t\tdisplay: flex;\n\t\talign-items: center;\n\t\tflex-wrap: wrap;\n\t}\n\n\t.duration span {\n\t\tdisplay: flex;\n\t}\n\n\t.duration input {\n\t\twidth: 80px;\n\t\tmargin: 10px 10px 10px 0 ;\n\t}\n\n\t.duration button {\n\t\tmargin: 10px 5px;\n\t}\n\n\t.duration .number {\n\t\twidth: 30px;\n\t}\n\n\t.duration .play {\n\t\tmargin: 0 5px 0 auto;\n\t\twidth: 100%;\n\t}\n\n\t@media (max-width:600px) {\n\t\t.easing-types {\n\t\t\tdisplay: flex;\n\t\t\talign-items: center;\n\t\t\tmargin-top: 10px;\n\t\t}\n\n\t\t.easing-sidebar {\n\t\t\twidth: 100%;\n\t\t}\n\n\t\t.duration .play {\n\t\t\tmargin-left: auto;\n\t\t\twidth: unset;\n\t\t}\n\n\t\th3 {\n\t\t\tfont-size: 0.9em;\n\t\t\tdisplay: inline;\n\t\t}\n\n\t\th3:nth-of-type(2) {\n\t\t\tmargin-left: auto;\n\t\t}\n\n\t\tul li {\n\t\t\tmargin-right: 10px;\n\t\t}\n\t}\n",
"position": {
"start": {
"line": 17,
"column": 8,
"offset": 309
},
"end": {
"line": 121,
"column": 1,
"offset": 1530
}
}
}
],
"position": {
"start": {
"line": 17,
"column": 1,
"offset": 302
},
"end": {
"line": 121,
"column": 9,
"offset": 1538
}
}
},
{
"type": "text",
"value": "\n\n",
"position": {
"start": {
"line": 121,
"column": 9,
"offset": 1538
},
"end": {
"line": 123,
"column": 1,
"offset": 1540
}
}
},
{
"type": "svelteElement",
"tagName": "div",
"properties": [
{
"type": "svelteProperty",
"name": "class",
"value": [
{
"type": "text",
"value": "easing-sidebar",
"position": {
"start": {
"line": 123,
"column": 13,
"offset": 1552
},
"end": {
"line": 123,
"column": 28,
"offset": 1567
}
}
}
],
"modifiers": [],
"shorthand": "none",
"position": {
"start": {
"line": 123,
"column": 6,
"offset": 1545
},
"end": {
"line": 123,
"column": 28,
"offset": 1567
}
}
}
],
"selfClosing": false,
"children": [
{
"type": "text",
"value": "\n\t\t",
"position": {
"start": {
"line": 123,
"column": 29,
"offset": 1568
},
"end": {
"line": 124,
"column": 3,
"offset": 1571
}
}
},
{
"type": "svelteElement",
"tagName": "div",
"properties": [
{
"type": "svelteProperty",
"name": "class",
"value": [
{
"type": "text",
"value": "easing-types",
"position": {
"start": {
"line": 124,
"column": 15,
"offset": 1583
},
"end": {
"line": 124,
"column": 28,
"offset": 1596
}
}
}
],
"modifiers": [],
"shorthand": "none",
"position": {
"start": {
"line": 124,
"column": 8,
"offset": 1576
},
"end": {
"line": 124,
"column": 28,
"offset": 1596
}
}
}
],
"selfClosing": false,
"children": [
{
"type": "text",
"value": "\n\t\t\t",
"position": {
"start": {
"line": 124,
"column": 29,
"offset": 1597
},
"end": {
"line": 125,
"column": 4,
"offset": 1601
}
}
},
{
"type": "svelteElement",
"tagName": "h3",
"properties": [],
"selfClosing": false,
"children": [
{
"type": "text",
"value": "Ease",
"position": {
"start": {
"line": 125,
"column": 8,
"offset": 1605
},
"end": {
"line": 125,
"column": 12,
"offset": 1609
}
}
}
],
"position": {
"start": {
"line": 125,
"column": 4,
"offset": 1601
},
"end": {
"line": 125,
"column": 17,
"offset": 1614
}
}
},
{
"type": "text",
"value": "\n\t\t\t",
"position": {
"start": {
"line": 125,
"column": 17,
"offset": 1614
},
"end": {
"line": 126,
"column": 4,
"offset": 1618
}
}
},
{
"type": "svelteBranchingBlock",
"name": "if",
"branches": [
{
"type": "svelteBranch",
"name": "if",
"expression": {
"type": "svelteExpression",
"value": "mobile",
"position": {
"start": {
"line": 126,
"column": 9,
"offset": 1623
},
"end": {
"line": 126,
"column": 15,
"offset": 1629
}
}
},
"children": [
{
"type": "text",
"value": "\n\t\t\t\t",
"position": {
"start": {
"line": 126,
"column": 16,
"offset": 1630
},
"end": {
"line": 127,
"column": 5,
"offset": 1635
}
}
},
{
"type": "svelteElement",
"tagName": "select",
"properties": [
{
"type": "svelteDirective",
"name": "bind",
"value": [
{
"type": "svelteDynamicContent",
"position": {
"start": {
"line": 127,
"column": 24,
"offset": 1654
},
"end": {
"line": 127,
"column": 38,
"offset": 1668
}
},
"expression": {
"type": "svelteExpression",
"value": "current_ease",
"position": {
"start": {
"line": 127,
"column": 25,
"offset": 1655
},
"end": {
"line": 127,
"column": 37,
"offset": 1667
}
}
}
}
],
"modifiers": [],
"shorthand": "none",
"position": {
"start": {
"line": 127,
"column": 13,
"offset": 1643
},
"end": {
"line": 127,
"column": 38,
"offset": 1668
}
},
"specifier": "value"
}
],
"selfClosing": false,
"children": [
{
"type": "text",
"value": "\n\t\t\t\t\t",
"position": {
"start": {
"line": 127,
"column": 39,
"offset": 1669
},
"end": {
"line": 128,
"column": 6,
"offset": 1675
}
}
},
{
"type": "svelteBranchingBlock",
"name": "each",
"branches": [
{
"type": "svelteBranch",
"name": "each",
"expression": {
"type": "svelteExpression",
"value": "[...eases] as [name]",
"position": {
"start": {
"line": 128,
"column": 13,
"offset": 1682
},
"end": {
"line": 128,
"column": 33,
"offset": 1702
}
}
},
"children": [
{
"type": "text",
"value": "\n\t\t\t\t\t\t",
"position": {
"start": {
"line": 128,
"column": 34,
"offset": 1703
},
"end": {
"line": 129,
"column": 7,
"offset": 1710
}
}
},
{
"type": "svelteElement",
"tagName": "option",
"properties": [
{
"type": "svelteProperty",
"name": "value",
"value": [
{
"type": "svelteDynamicContent",
"position": {
"start": {
"line": 130,
"column": 14,
"offset": 1731
},
"end": {
"line": 130,
"column": 20,
"offset": 1737
}
},
"expression": {
"type": "svelteExpression",
"value": "name",
"position": {
"start": {
"line": 130,
"column": 15,
"offset": 1732
},
"end": {
"line": 130,
"column": 19,
"offset": 1736
}
}
}
}
],
"modifiers": [],
"shorthand": "none",
"position": {
"start": {
"line": 130,
"column": 8,
"offset": 1725
},
"end": {
"line": 130,
"column": 20,
"offset": 1737
}
}
},
{
"type": "svelteDirective",
"name": "class",
"value": [
{
"type": "svelteDynamicContent",
"position": {
"start": {
"line": 131,
"column": 23,
"offset": 1760
},
"end": {
"line": 131,
"column": 46,
"offset": 1783
}
},
"expression": {
"type": "svelteExpression",
"value": "name === current_ease",
"position": {
"start": {
"line": 131,
"column": 24,
"offset": 1761
},
"end": {
"line": 131,
"column": 45,
"offset": 1782
}
}
}
}
],
"modifiers": [],
"shorthand": "none",
"position": {
"start": {
"line": 131,
"column": 8,
"offset": 1745
},
"end": {
"line": 131,
"column": 46,
"offset": 1783
}
},
"specifier": "selected"
}
],
"selfClosing": false,
"children": [
{
"type": "text",
"value": "\n\t\t\t\t\t\t\t",
"position": {
"start": {
"line": 132,
"column": 8,
"offset": 1791
},
"end": {
"line": 133,
"column": 8,
"offset": 1799
}
}
},
{
"type": "svelteDynamicContent",
"position": {
"start": {
"line": 133,
"column": 8,
"offset": 1799
},
"end": {
"line": 133,
"column": 14,
"offset": 1805
}
},
"expression": {
"type": "svelteExpression",
"value": "name",
"position": {
"start": {
"line": 133,
"column": 9,
"offset": 1800
},
"end": {
"line": 133,
"column": 13,
"offset": 1804
}
}
}
},
{
"type": "text",
"value": "\n\t\t\t\t\t\t",
"position": {
"start": {
"line": 133,
"column": 14,
"offset": 1805
},
"end": {
"line": 134,
"column": 7,
"offset": 1812
}
}
}
],
"position": {
"start": {
"line": 129,
"column": 7,
"offset": 1710
},
"end": {
"line": 134,
"column": 16,
"offset": 1821
}
}
},
{
"type": "text",
"value": "\n\t\t\t\t\t",
"position": {
"start": {
"line": 134,
"column": 16,
"offset": 1821
},
"end": {
"line": 135,
"column": 6,
"offset": 1827
}
}
}
],
"position": {
"start": {
"line": 128,
"column": 6,
"offset": 1675
},
"end": {
"line": 135,
"column": 6,
"offset": 1827
}
}
}
],
"position": {
"start": {
"line": 128,
"column": 6,
"offset": 1675
},
"end": {
"line": 135,
"column": 13,
"offset": 1834
}
}
},
{
"type": "text",
"value": "\n\t\t\t\t",
"position": {
"start": {
"line": 135,
"column": 13,
"offset": 1834
},
"end": {
"line": 136,
"column": 5,
"offset": 1839
}
}
}
],
"position": {
"start": {
"line": 127,
"column": 5,
"offset": 1635
},
"end": {
"line": 136,
"column": 14,
"offset": 1848
}
}
},
{
"type": "text",
"value": "\n\t\t\t",
"position": {
"start": {
"line": 136,
"column": 14,
"offset": 1848
},
"end": {
"line": 137,
"column": 4,
"offset": 1852
}
}
}
],
"position": {
"start": {
"line": 126,
"column": 4,
"offset": 1618
},
"end": {
"line": 137,
"column": 4,
"offset": 1852
}
}
},
{
"type": "svelteBranch",
"name": "else",
"expression": {
"type": "svelteExpression",
"value": ""
},
"children": [
{
"type": "text",
"value": "\n\t\t\t\t",
"position": {
"start": {
"line": 137,
"column": 11,
"offset": 1859
},
"end": {
"line": 138,
"column": 5,
"offset": 1864
}
}
},
{
"type": "svelteElement",
"tagName": "ul",
"properties": [],
"selfClosing": false,
"children": [
{
"type": "text",
"value": "\n\t\t\t\t\t",
"position": {
"start": {
"line": 138,
"column": 9,
"offset": 1868
},
"end": {
"line": 139,
"column": 6,
"offset": 1874
}
}
},
{
"type": "svelteBranchingBlock",
"name": "each",
"branches": [
{
"type": "svelteBranch",
"name": "each",
"expression": {
"type": "svelteExpression",
"value": "[...eases] as [name]",
"position": {
"start": {
"line": 139,
"column": 13,
"offset": 1881
},
"end": {
"line": 139,
"column": 33,
"offset": 1901
}
}
},
"children": [
{
"type": "text",
"value": "\n\t\t\t\t\t\t",
"position": {
"start": {
"line": 139,
"column": 34,
"offset": 1902
},
"end": {
"line": 140,
"column": 7,
"offset": 1909
}
}
},
{
"type": "svelteElement",
"tagName": "li",
"properties": [
{
"type": "svelteDirective",
"name": "class",
"value": [
{
"type": "svelteDynamicContent",
"position": {
"start": {
"line": 141,
"column": 23,
"offset": 1935
},
"end": {
"line": 141,
"column": 46,
"offset": 1958
}
},
"expression": {
"type": "svelteExpression",
"value": "name === current_ease",
"position": {
"start": {
"line": 141,
"column": 24,
"offset": 1936
},
"end": {
"line": 141,
"column": 45,
"offset": 1957
}
}
}
}
],
"modifiers": [],
"shorthand": "none",
"position": {
"start": {
"line": 141,
"column": 8,
"offset": 1920
},
"end": {
"line": 141,
"column": 46,
"offset": 1958
}
},
"specifier": "selected"
},
{
"type": "svelteDirective",
"name": "on",
"value": [
{
"type": "svelteDynamicContent",
"position": {
"start": {
"line": 142,
"column": 17,
"offset": 1975
},
"end": {
"line": 142,
"column": 44,
"offset": 2002
}
},
"expression": {
"type": "svelteExpression",
"value": "() => current_ease = name",
"position": {
"start": {
"line": 142,
"column": 18,
"offset": 1976
},
"end": {
"line": 142,
"column": 43,
"offset": 2001
}
}
}
}
],
"modifiers": [],
"shorthand": "none",
"position": {
"start": {
"line": 142,
"column": 8,
"offset": 1966
},
"end": {
"line": 142,
"column": 44,
"offset": 2002
}
},
"specifier": "click"
}
],
"selfClosing": false,
"children": [
{
"type": "text",
"value": "\n\t\t\t\t\t\t\t",
"position": {
"start": {
"line": 143,
"column": 8,
"offset": 2010
},
"end": {
"line": 144,
"column": 8,
"offset": 2018
}
}
},
{
"type": "svelteDynamicContent",
"position": {
"start": {
"line": 144,
"column": 8,
"offset": 2018
},
"end": {
"line": 144,
"column": 14,
"offset": 2024
}
},
"expression": {
"type": "svelteExpression",
"value": "name",
"position": {
"start": {
"line": 144,
"column": 9,
"offset": 2019
},
"end": {
"line": 144,
"column": 13,
"offset": 2023
}
}
}
},
{
"type": "text",
"value": "\n\t\t\t\t\t\t",
"position": {
"start": {
"line": 144,
"column": 14,
"offset": 2024
},
"end": {
"line": 145,
"column": 7,
"offset": 2031
}
}
}
],
"position": {
"start": {
"line": 140,
"column": 7,
"offset": 1909
},
"end": {
"line": 145,
"column": 12,
"offset": 2036
}
}
},
{
"type": "text",
"value": "\n\t\t\t\t\t",
"position": {
"start": {
"line": 145,
"column": 12,
"offset": 2036
},
"end": {
"line": 146,
"column": 6,
"offset": 2042
}
}
}
],
"position": {
"start": {
"line": 139,
"column": 6,
"offset": 1874
},
"end": {
"line": 146,
"column": 6,
"offset": 2042
}
}
}
],
"position": {
"start": {
"line": 139,
"column": 6,
"offset": 1874
},
"end": {
"line": 146,
"column": 13,
"offset": 2049
}
}
},
{
"type": "text",
"value": "\n\t\t\t\t",
"position": {
"start": {
"line": 146,
"column": 13,
"offset": 2049
},
"end": {
"line": 147,
"column": 5,
"offset": 2054
}
}
}
],
"position": {
"start": {
"line": 138,
"column": 5,
"offset": 1864
},
"end": {
"line": 147,
"column": 10,
"offset": 2059
}
}
},
{
"type": "text",
"value": "\n\t\t\t",
"position": {
"start": {
"line": 147,
"column": 10,
"offset": 2059
},
"end": {
"line": 148,
"column": 4,
"offset": 2063
}
}
}
],
"position": {
"start": {
"line": 137,
"column": 4,
"offset": 1852
},
"end": {
"line": 148,
"column": 4,
"offset": 2063
}
}
}
],
"position": {
"start": {
"line": 126,
"column": 4,
"offset": 1618
},
"end": {
"line": 148,
"column": 9,
"offset": 2068
}
}
},
{
"type": "text",
"value": "\n\t\t\t",
"position": {
"start": {
"line": 148,
"column": 9,
"offset": 2068
},
"end": {
"line": 149,
"column": 4,
"offset": 2072
}
}
},
{
"type": "svelteElement",
"tagName": "h3",
"properties": [],
"selfClosing": false,
"children": [
{
"type": "text",
"value": "Type",
"position": {
"start": {
"line": 149,
"column": 8,
"offset": 2076
},
"end": {
"line": 149,
"column": 12,
"offset": 2080
}
}
}
],
"position": {
"start": {
"line": 149,
"column": 4,
"offset": 2072
},
"end": {
"line": 149,
"column": 17,
"offset": 2085
}
}
},
{
"type": "text",
"value": "\n\t\t\t",
"position": {
"start": {
"line": 149,
"column": 17,
"offset": 2085
},
"end": {
"line": 150,
"column": 4,
"offset": 2089
}
}
},
{
"type": "svelteBranchingBlock",
"name": "if",
"branches": [
{
"type": "svelteBranch",
"name": "if",
"expression": {
"type": "svelteExpression",
"value": "mobile ",
"position": {
"start": {
"line": 150,
"column": 9,
"offset": 2094
},
"end": {
"line": 150,
"column": 16,
"offset": 2101
}
}
},
"children": [
{
"type": "text",
"value": "\n\t\t\t\t",
"position": {
"start": {
"line": 150,
"column": 17,
"offset": 2102
},
"end": {
"line": 151,
"column": 5,
"offset": 2107
}
}
},
{
"type": "svelteElement",
"tagName": "select",
"properties": [
{
"type": "svelteDirective",
"name": "bind",
"value": [
{
"type": "svelteDynamicContent",
"position": {
"start": {
"line": 151,
"column": 24,
"offset": 2126
},
"end": {
"line": 151,
"column": 38,
"offset": 2140
}
},
"expression": {
"type": "svelteExpression",
"value": "current_type",
"position": {
"start": {
"line": 151,
"column": 25,
"offset": 2127
},
"end": {
"line": 151,
"column": 37,
"offset": 2139
}
}
}
}
],
"modifiers": [],
"shorthand": "none",
"position": {
"start": {
"line": 151,
"column": 13,
"offset": 2115
},
"end": {
"line": 151,
"column": 38,
"offset": 2140
}
},
"specifier": "value"
}
],
"selfClosing": false,
"children": [
{
"type": "text",
"value": "\n\t\t\t\t\t",
"position": {
"start": {
"line": 151,
"column": 39,
"offset": 2141
},
"end": {
"line": 152,
"column": 6,
"offset": 2147
}
}
},
{
"type": "svelteBranchingBlock",
"name": "each",
"branches": [
{
"type": "svelteBranch",
"name": "each",
"expression": {
"type": "svelteExpression",
"value": "types as [name, type]",
"position": {
"start": {
"line": 152,
"column": 13,
"offset": 2154
},
"end": {
"line": 152,
"column": 34,
"offset": 2175
}
}
},
"children": [
{
"type": "text",
"value": "\n\t\t\t\t\t\t",
"position": {
"start": {
"line": 152,
"column": 35,
"offset": 2176
},
"end": {
"line": 153,
"column": 7,
"offset": 2183
}
}
},
{
"type": "svelteElement",
"tagName": "option",
"properties": [
{
"type": "svelteProperty",
"name": "value",
"value": [
{
"type": "svelteDynamicContent",
"position": {
"start": {
"line": 154,
"column": 14,
"offset": 2204
},
"end": {
"line": 154,
"column": 20,
"offset": 2210
}
},
"expression": {
"type": "svelteExpression",
"value": "type",
"position": {
"start": {
"line": 154,
"column": 15,
"offset": 2205
},
"end": {
"line": 154,
"column": 19,
"offset": 2209
}
}
}
}
],
"modifiers": [],
"shorthand": "none",
"position": {
"start": {
"line": 154,
"column": 8,
"offset": 2198
},
"end": {
"line": 154,
"column": 20,
"offset": 2210
}
}
}
],
"selfClosing": false,
"children": [
{
"type": "text",
"value": "\n\t\t\t\t\t\t\t",
"position": {
"start": {
"line": 155,
"column": 8,
"offset": 2218
},
"end": {
"line": 156,
"column": 8,
"offset": 2226
}
}
},
{
"type": "svelteDynamicContent",
"position": {
"start": {
"line": 156,
"column": 8,
"offset": 2226
},
"end": {
"line": 156,
"column": 14,
"offset": 2232
}
},
"expression": {
"type": "svelteExpression",
"value": "name",
"position": {
"start": {
"line": 156,
"column": 9,
"offset": 2227
},
"end": {
"line": 156,
"column": 13,
"offset": 2231
}
}
}
},
{
"type": "text",
"value": "\n\t\t\t\t\t\t",
"position": {
"start": {
"line": 156,
"column": 14,
"offset": 2232
},
"end": {
"line": 157,
"column": 7,
"offset": 2239
}
}
}
],
"position": {
"start": {
"line": 153,
"column": 7,
"offset": 2183
},
"end": {
"line": 157,
"column": 16,
"offset": 2248
}
}
},
{
"type": "text",
"value": "\n\t\t\t\t\t",
"position": {
"start": {
"line": 157,
"column": 16,
"offset": 2248
},
"end": {
"line": 158,
"column": 6,
"offset": 2254
}
}
}
],
"position": {
"start": {
"line": 152,
"column": 6,
"offset": 2147
},
"end": {
"line": 158,
"column": 6,
"offset": 2254
}
}
}
],
"position": {
"start": {
"line": 152,
"column": 6,
"offset": 2147
},
"end": {
"line": 158,
"column": 13,
"offset": 2261
}
}
},
{
"type": "text",
"value": "\n\t\t\t\t",
"position": {
"start": {
"line": 158,
"column": 13,
"offset": 2261
},
"end": {
"line": 159,
"column": 5,
"offset": 2266
}
}
}
],
"position": {
"start": {
"line": 151,
"column": 5,
"offset": 2107
},
"end": {
"line": 159,
"column": 14,
"offset": 2275
}
}
},
{
"type": "text",
"value": "\n\t\t\t",
"position": {
"start": {
"line": 159,
"column": 14,
"offset": 2275
},
"end": {
"line": 160,
"column": 4,
"offset": 2279
}
}
}
],
"position": {
"start": {
"line": 150,
"column": 4,
"offset": 2089
},
"end": {
"line": 160,
"column": 4,
"offset": 2279
}
}
},
{
"type": "svelteBranch",
"name": "else",
"expression": {
"type": "svelteExpression",
"value": ""
},
"children": [
{
"type": "text",
"value": "\n\t\t\t\t",
"position": {
"start": {
"line": 160,
"column": 11,
"offset": 2286
},
"end": {
"line": 161,
"column": 5,
"offset": 2291
}
}
},
{
"type": "svelteElement",
"tagName": "ul",
"properties": [],
"selfClosing": false,
"children": [
{
"type": "text",
"value": "\n\t\t\t\t\t",
"position": {
"start": {
"line": 161,
"column": 9,
"offset": 2295
},
"end": {
"line": 162,
"column": 6,
"offset": 2301
}
}
},
{
"type": "svelteBranchingBlock",
"name": "each",
"branches": [
{
"type": "svelteBranch",
"name": "each",
"expression": {
"type": "svelteExpression",
"value": "types as [name, type]",
"position": {
"start": {
"line": 162,
"column": 13,
"offset": 2308
},
"end": {
"line": 162,
"column": 34,
"offset": 2329
}
}
},
"children": [
{
"type": "text",
"value": "\n\t\t\t\t\t\t",
"position": {
"start": {
"line": 162,
"column": 35,
"offset": 2330
},
"end": {
"line": 163,
"column": 7,
"offset": 2337
}
}
},
{
"type": "svelteElement",
"tagName": "li",
"properties": [
{
"type": "svelteDirective",
"name": "class",
"value": [
{
"type": "svelteDynamicContent",
"position": {
"start": {
"line": 164,
"column": 23,
"offset": 2363
},
"end": {
"line": 164,
"column": 46,
"offset": 2386
}
},
"expression": {
"type": "svelteExpression",
"value": "type === current_type",
"position": {
"start": {
"line": 164,
"column": 24,
"offset": 2364
},
"end": {
"line": 164,
"column": 45,
"offset": 2385
}
}
}
}
],
"modifiers": [],
"shorthand": "none",
"position": {
"start": {
"line": 164,
"column": 8,
"offset": 2348
},
"end": {
"line": 164,
"column": 46,
"offset": 2386
}
},
"specifier": "selected"
},
{
"type": "svelteDirective",
"name": "on",
"value": [
{
"type": "svelteDynamicContent",
"position": {
"start": {
"line": 165,
"column": 17,
"offset": 2403
},
"end": {
"line": 165,
"column": 44,
"offset": 2430
}
},
"expression": {
"type": "svelteExpression",
"value": "() => current_type = type",
"position": {
"start": {
"line": 165,
"column": 18,
"offset": 2404
},
"end": {
"line": 165,
"column": 43,
"offset": 2429
}
}
}
}
],
"modifiers": [],
"shorthand": "none",
"position": {
"start": {
"line": 165,
"column": 8,
"offset": 2394
},
"end": {
"line": 165,
"column": 44,
"offset": 2430
}
},
"specifier": "click"
}
],
"selfClosing": false,
"children": [
{
"type": "text",
"value": "\n\t\t\t\t\t\t\t",
"position": {
"start": {
"line": 166,
"column": 8,
"offset": 2438
},
"end": {
"line": 167,
"column": 8,
"offset": 2446
}
}
},
{
"type": "svelteDynamicContent",
"position": {
"start": {
"line": 167,
"column": 8,
"offset": 2446
},
"end": {
"line": 167,
"column": 14,
"offset": 2452
}
},
"expression": {
"type": "svelteExpression",
"value": "name",
"position": {
"start": {
"line": 167,
"column": 9,
"offset": 2447
},
"end": {
"line": 167,
"column": 13,
"offset": 2451
}
}
}
},
{
"type": "text",
"value": "\n\t\t\t\t\t",
"position": {
"start": {
"line": 167,
"column": 14,
"offset": 2452
},
"end": {
"line": 168,
"column": 6,
"offset": 2458
}
}
}
],
"position": {
"start": {
"line": 163,
"column": 7,
"offset": 2337
},
"end": {