diff --git a/.esdoc.json b/.esdoc.json new file mode 100644 index 00000000..5f2bc385 --- /dev/null +++ b/.esdoc.json @@ -0,0 +1,8 @@ +{ + "source": "./src", + "destination": "./docs", + "plugins": [ + {"name": "esdoc-standard-plugin"}, + {"name": "esdoc-ecmascript-proposal-plugin", "option": {"all": true}} + ] +} \ No newline at end of file diff --git a/.npmignore b/.npmignore index 69227a14..49ab3812 100644 --- a/.npmignore +++ b/.npmignore @@ -4,6 +4,9 @@ # testing /coverage +# docs +/docs + # misc .DS_Store .env.local diff --git a/docs/ast/source/.external-ecmascript.js.json b/docs/ast/source/.external-ecmascript.js.json new file mode 100644 index 00000000..21893b9c --- /dev/null +++ b/docs/ast/source/.external-ecmascript.js.json @@ -0,0 +1,2802 @@ +{ + "type": "File", + "start": 0, + "end": 6058, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 193, + "column": 0 + } + }, + "program": { + "type": "Program", + "start": 0, + "end": 6058, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 193, + "column": 0 + } + }, + "sourceType": "module", + "body": [], + "directives": [], + "leadingComments": null, + "innerComments": [ + { + "type": "CommentLine", + "value": " https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects", + "start": 0, + "end": 83, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 1, + "column": 83 + } + } + }, + { + "type": "CommentLine", + "value": " Value properties", + "start": 85, + "end": 104, + "loc": { + "start": { + "line": 3, + "column": 0 + }, + "end": { + "line": 3, + "column": 19 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * @external {Infinity} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Infinity\n ", + "start": 105, + "end": 226, + "loc": { + "start": { + "line": 4, + "column": 0 + }, + "end": { + "line": 6, + "column": 3 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * @external {NaN} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/NaN\n ", + "start": 228, + "end": 339, + "loc": { + "start": { + "line": 8, + "column": 0 + }, + "end": { + "line": 10, + "column": 3 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * @external {undefined} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/undefined\n ", + "start": 341, + "end": 464, + "loc": { + "start": { + "line": 12, + "column": 0 + }, + "end": { + "line": 14, + "column": 3 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * @external {null} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/null\n ", + "start": 466, + "end": 579, + "loc": { + "start": { + "line": 16, + "column": 0 + }, + "end": { + "line": 18, + "column": 3 + } + } + }, + { + "type": "CommentLine", + "value": " Fundamental objects", + "start": 581, + "end": 603, + "loc": { + "start": { + "line": 20, + "column": 0 + }, + "end": { + "line": 20, + "column": 22 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * @external {Object} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object\n ", + "start": 604, + "end": 721, + "loc": { + "start": { + "line": 21, + "column": 0 + }, + "end": { + "line": 23, + "column": 3 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * @external {object} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object\n ", + "start": 722, + "end": 839, + "loc": { + "start": { + "line": 24, + "column": 0 + }, + "end": { + "line": 26, + "column": 3 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * @external {Function} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Function\n ", + "start": 841, + "end": 962, + "loc": { + "start": { + "line": 28, + "column": 0 + }, + "end": { + "line": 30, + "column": 3 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * @external {function} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Function\n ", + "start": 963, + "end": 1084, + "loc": { + "start": { + "line": 31, + "column": 0 + }, + "end": { + "line": 33, + "column": 3 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * @external {Boolean} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Boolean\n ", + "start": 1086, + "end": 1205, + "loc": { + "start": { + "line": 35, + "column": 0 + }, + "end": { + "line": 37, + "column": 3 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * @external {boolean} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Boolean\n ", + "start": 1206, + "end": 1325, + "loc": { + "start": { + "line": 38, + "column": 0 + }, + "end": { + "line": 40, + "column": 3 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * @external {Symbol} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Symbol\n ", + "start": 1327, + "end": 1444, + "loc": { + "start": { + "line": 42, + "column": 0 + }, + "end": { + "line": 44, + "column": 3 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * @external {Error} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Error\n ", + "start": 1446, + "end": 1561, + "loc": { + "start": { + "line": 46, + "column": 0 + }, + "end": { + "line": 48, + "column": 3 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * @external {EvalError} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/EvalError\n ", + "start": 1563, + "end": 1686, + "loc": { + "start": { + "line": 50, + "column": 0 + }, + "end": { + "line": 52, + "column": 3 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * @external {InternalError} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/InternalError\n ", + "start": 1688, + "end": 1819, + "loc": { + "start": { + "line": 54, + "column": 0 + }, + "end": { + "line": 56, + "column": 3 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * @external {RangeError} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/RangeError\n ", + "start": 1821, + "end": 1946, + "loc": { + "start": { + "line": 58, + "column": 0 + }, + "end": { + "line": 60, + "column": 3 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * @external {ReferenceError} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/ReferenceError\n ", + "start": 1948, + "end": 2081, + "loc": { + "start": { + "line": 62, + "column": 0 + }, + "end": { + "line": 64, + "column": 3 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * @external {SyntaxError} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/SyntaxError\n ", + "start": 2083, + "end": 2210, + "loc": { + "start": { + "line": 66, + "column": 0 + }, + "end": { + "line": 68, + "column": 3 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * @external {TypeError} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypeError\n ", + "start": 2212, + "end": 2335, + "loc": { + "start": { + "line": 70, + "column": 0 + }, + "end": { + "line": 72, + "column": 3 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * @external {URIError} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/URIError\n ", + "start": 2337, + "end": 2458, + "loc": { + "start": { + "line": 74, + "column": 0 + }, + "end": { + "line": 76, + "column": 3 + } + } + }, + { + "type": "CommentLine", + "value": " Numbers and dates", + "start": 2460, + "end": 2480, + "loc": { + "start": { + "line": 78, + "column": 0 + }, + "end": { + "line": 78, + "column": 20 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * @external {Number} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number\n ", + "start": 2481, + "end": 2598, + "loc": { + "start": { + "line": 79, + "column": 0 + }, + "end": { + "line": 81, + "column": 3 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * @external {number} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number\n ", + "start": 2599, + "end": 2716, + "loc": { + "start": { + "line": 82, + "column": 0 + }, + "end": { + "line": 84, + "column": 3 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * @external {Date} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date\n ", + "start": 2718, + "end": 2831, + "loc": { + "start": { + "line": 86, + "column": 0 + }, + "end": { + "line": 88, + "column": 3 + } + } + }, + { + "type": "CommentLine", + "value": " Text processing", + "start": 2833, + "end": 2851, + "loc": { + "start": { + "line": 90, + "column": 0 + }, + "end": { + "line": 90, + "column": 18 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * @external {String} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String\n ", + "start": 2852, + "end": 2969, + "loc": { + "start": { + "line": 91, + "column": 0 + }, + "end": { + "line": 93, + "column": 3 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * @external {string} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String\n ", + "start": 2970, + "end": 3087, + "loc": { + "start": { + "line": 94, + "column": 0 + }, + "end": { + "line": 96, + "column": 3 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * @external {RegExp} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/RegExp\n ", + "start": 3089, + "end": 3206, + "loc": { + "start": { + "line": 98, + "column": 0 + }, + "end": { + "line": 100, + "column": 3 + } + } + }, + { + "type": "CommentLine", + "value": " Indexed collections", + "start": 3208, + "end": 3230, + "loc": { + "start": { + "line": 102, + "column": 0 + }, + "end": { + "line": 102, + "column": 22 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * @external {Array} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array\n ", + "start": 3231, + "end": 3346, + "loc": { + "start": { + "line": 103, + "column": 0 + }, + "end": { + "line": 105, + "column": 3 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * @external {Int8Array} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Int8Array\n ", + "start": 3348, + "end": 3471, + "loc": { + "start": { + "line": 107, + "column": 0 + }, + "end": { + "line": 109, + "column": 3 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * @external {Uint8Array} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Uint8Array\n ", + "start": 3472, + "end": 3597, + "loc": { + "start": { + "line": 110, + "column": 0 + }, + "end": { + "line": 112, + "column": 3 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * @external {Uint8ClampedArray} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Uint8ClampedArray\n ", + "start": 3599, + "end": 3738, + "loc": { + "start": { + "line": 114, + "column": 0 + }, + "end": { + "line": 116, + "column": 3 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * @external {Int16Array} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Int16Array\n ", + "start": 3740, + "end": 3865, + "loc": { + "start": { + "line": 118, + "column": 0 + }, + "end": { + "line": 120, + "column": 3 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * @external {Uint16Array} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Uint16Array\n ", + "start": 3867, + "end": 3994, + "loc": { + "start": { + "line": 122, + "column": 0 + }, + "end": { + "line": 124, + "column": 3 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * @external {Int32Array} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Int32Array\n ", + "start": 3996, + "end": 4121, + "loc": { + "start": { + "line": 126, + "column": 0 + }, + "end": { + "line": 128, + "column": 3 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * @external {Uint32Array} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Uint32Array\n ", + "start": 4123, + "end": 4250, + "loc": { + "start": { + "line": 130, + "column": 0 + }, + "end": { + "line": 132, + "column": 3 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * @external {Float32Array} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Float32Array\n ", + "start": 4252, + "end": 4381, + "loc": { + "start": { + "line": 134, + "column": 0 + }, + "end": { + "line": 136, + "column": 3 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * @external {Float64Array} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Float64Array\n ", + "start": 4383, + "end": 4512, + "loc": { + "start": { + "line": 138, + "column": 0 + }, + "end": { + "line": 140, + "column": 3 + } + } + }, + { + "type": "CommentLine", + "value": " Keyed collections", + "start": 4514, + "end": 4534, + "loc": { + "start": { + "line": 142, + "column": 0 + }, + "end": { + "line": 142, + "column": 20 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * @external {Map} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Map\n ", + "start": 4535, + "end": 4646, + "loc": { + "start": { + "line": 143, + "column": 0 + }, + "end": { + "line": 145, + "column": 3 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * @external {Set} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Set\n ", + "start": 4648, + "end": 4759, + "loc": { + "start": { + "line": 147, + "column": 0 + }, + "end": { + "line": 149, + "column": 3 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * @external {WeakMap} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/WeakMap\n ", + "start": 4761, + "end": 4880, + "loc": { + "start": { + "line": 151, + "column": 0 + }, + "end": { + "line": 153, + "column": 3 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * @external {WeakSet} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/WeakSet\n ", + "start": 4882, + "end": 5001, + "loc": { + "start": { + "line": 155, + "column": 0 + }, + "end": { + "line": 157, + "column": 3 + } + } + }, + { + "type": "CommentLine", + "value": " Structured data", + "start": 5003, + "end": 5021, + "loc": { + "start": { + "line": 159, + "column": 0 + }, + "end": { + "line": 159, + "column": 18 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * @external {ArrayBuffer} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/ArrayBuffer\n ", + "start": 5022, + "end": 5149, + "loc": { + "start": { + "line": 160, + "column": 0 + }, + "end": { + "line": 162, + "column": 3 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * @external {DataView} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/DataView\n ", + "start": 5151, + "end": 5272, + "loc": { + "start": { + "line": 164, + "column": 0 + }, + "end": { + "line": 166, + "column": 3 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * @external {JSON} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/JSON\n ", + "start": 5274, + "end": 5387, + "loc": { + "start": { + "line": 168, + "column": 0 + }, + "end": { + "line": 170, + "column": 3 + } + } + }, + { + "type": "CommentLine", + "value": " Control abstraction objects", + "start": 5389, + "end": 5419, + "loc": { + "start": { + "line": 172, + "column": 0 + }, + "end": { + "line": 172, + "column": 30 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * @external {Promise} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise\n ", + "start": 5420, + "end": 5539, + "loc": { + "start": { + "line": 173, + "column": 0 + }, + "end": { + "line": 175, + "column": 3 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * @external {Generator} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Generator\n ", + "start": 5541, + "end": 5664, + "loc": { + "start": { + "line": 177, + "column": 0 + }, + "end": { + "line": 179, + "column": 3 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * @external {GeneratorFunction} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/GeneratorFunction\n ", + "start": 5666, + "end": 5805, + "loc": { + "start": { + "line": 181, + "column": 0 + }, + "end": { + "line": 183, + "column": 3 + } + } + }, + { + "type": "CommentLine", + "value": " Reflection", + "start": 5807, + "end": 5820, + "loc": { + "start": { + "line": 185, + "column": 0 + }, + "end": { + "line": 185, + "column": 13 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * @external {Reflect} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Reflect\n ", + "start": 5821, + "end": 5940, + "loc": { + "start": { + "line": 186, + "column": 0 + }, + "end": { + "line": 188, + "column": 3 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * @external {Proxy} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Proxy\n ", + "start": 5942, + "end": 6057, + "loc": { + "start": { + "line": 190, + "column": 0 + }, + "end": { + "line": 192, + "column": 3 + } + } + } + ] + }, + "comments": [ + { + "type": "CommentLine", + "value": " https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects", + "start": 0, + "end": 83, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 1, + "column": 83 + } + } + }, + { + "type": "CommentLine", + "value": " Value properties", + "start": 85, + "end": 104, + "loc": { + "start": { + "line": 3, + "column": 0 + }, + "end": { + "line": 3, + "column": 19 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * @external {Infinity} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Infinity\n ", + "start": 105, + "end": 226, + "loc": { + "start": { + "line": 4, + "column": 0 + }, + "end": { + "line": 6, + "column": 3 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * @external {NaN} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/NaN\n ", + "start": 228, + "end": 339, + "loc": { + "start": { + "line": 8, + "column": 0 + }, + "end": { + "line": 10, + "column": 3 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * @external {undefined} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/undefined\n ", + "start": 341, + "end": 464, + "loc": { + "start": { + "line": 12, + "column": 0 + }, + "end": { + "line": 14, + "column": 3 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * @external {null} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/null\n ", + "start": 466, + "end": 579, + "loc": { + "start": { + "line": 16, + "column": 0 + }, + "end": { + "line": 18, + "column": 3 + } + } + }, + { + "type": "CommentLine", + "value": " Fundamental objects", + "start": 581, + "end": 603, + "loc": { + "start": { + "line": 20, + "column": 0 + }, + "end": { + "line": 20, + "column": 22 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * @external {Object} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object\n ", + "start": 604, + "end": 721, + "loc": { + "start": { + "line": 21, + "column": 0 + }, + "end": { + "line": 23, + "column": 3 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * @external {object} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object\n ", + "start": 722, + "end": 839, + "loc": { + "start": { + "line": 24, + "column": 0 + }, + "end": { + "line": 26, + "column": 3 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * @external {Function} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Function\n ", + "start": 841, + "end": 962, + "loc": { + "start": { + "line": 28, + "column": 0 + }, + "end": { + "line": 30, + "column": 3 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * @external {function} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Function\n ", + "start": 963, + "end": 1084, + "loc": { + "start": { + "line": 31, + "column": 0 + }, + "end": { + "line": 33, + "column": 3 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * @external {Boolean} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Boolean\n ", + "start": 1086, + "end": 1205, + "loc": { + "start": { + "line": 35, + "column": 0 + }, + "end": { + "line": 37, + "column": 3 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * @external {boolean} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Boolean\n ", + "start": 1206, + "end": 1325, + "loc": { + "start": { + "line": 38, + "column": 0 + }, + "end": { + "line": 40, + "column": 3 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * @external {Symbol} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Symbol\n ", + "start": 1327, + "end": 1444, + "loc": { + "start": { + "line": 42, + "column": 0 + }, + "end": { + "line": 44, + "column": 3 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * @external {Error} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Error\n ", + "start": 1446, + "end": 1561, + "loc": { + "start": { + "line": 46, + "column": 0 + }, + "end": { + "line": 48, + "column": 3 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * @external {EvalError} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/EvalError\n ", + "start": 1563, + "end": 1686, + "loc": { + "start": { + "line": 50, + "column": 0 + }, + "end": { + "line": 52, + "column": 3 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * @external {InternalError} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/InternalError\n ", + "start": 1688, + "end": 1819, + "loc": { + "start": { + "line": 54, + "column": 0 + }, + "end": { + "line": 56, + "column": 3 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * @external {RangeError} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/RangeError\n ", + "start": 1821, + "end": 1946, + "loc": { + "start": { + "line": 58, + "column": 0 + }, + "end": { + "line": 60, + "column": 3 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * @external {ReferenceError} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/ReferenceError\n ", + "start": 1948, + "end": 2081, + "loc": { + "start": { + "line": 62, + "column": 0 + }, + "end": { + "line": 64, + "column": 3 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * @external {SyntaxError} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/SyntaxError\n ", + "start": 2083, + "end": 2210, + "loc": { + "start": { + "line": 66, + "column": 0 + }, + "end": { + "line": 68, + "column": 3 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * @external {TypeError} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypeError\n ", + "start": 2212, + "end": 2335, + "loc": { + "start": { + "line": 70, + "column": 0 + }, + "end": { + "line": 72, + "column": 3 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * @external {URIError} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/URIError\n ", + "start": 2337, + "end": 2458, + "loc": { + "start": { + "line": 74, + "column": 0 + }, + "end": { + "line": 76, + "column": 3 + } + } + }, + { + "type": "CommentLine", + "value": " Numbers and dates", + "start": 2460, + "end": 2480, + "loc": { + "start": { + "line": 78, + "column": 0 + }, + "end": { + "line": 78, + "column": 20 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * @external {Number} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number\n ", + "start": 2481, + "end": 2598, + "loc": { + "start": { + "line": 79, + "column": 0 + }, + "end": { + "line": 81, + "column": 3 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * @external {number} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number\n ", + "start": 2599, + "end": 2716, + "loc": { + "start": { + "line": 82, + "column": 0 + }, + "end": { + "line": 84, + "column": 3 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * @external {Date} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date\n ", + "start": 2718, + "end": 2831, + "loc": { + "start": { + "line": 86, + "column": 0 + }, + "end": { + "line": 88, + "column": 3 + } + } + }, + { + "type": "CommentLine", + "value": " Text processing", + "start": 2833, + "end": 2851, + "loc": { + "start": { + "line": 90, + "column": 0 + }, + "end": { + "line": 90, + "column": 18 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * @external {String} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String\n ", + "start": 2852, + "end": 2969, + "loc": { + "start": { + "line": 91, + "column": 0 + }, + "end": { + "line": 93, + "column": 3 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * @external {string} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String\n ", + "start": 2970, + "end": 3087, + "loc": { + "start": { + "line": 94, + "column": 0 + }, + "end": { + "line": 96, + "column": 3 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * @external {RegExp} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/RegExp\n ", + "start": 3089, + "end": 3206, + "loc": { + "start": { + "line": 98, + "column": 0 + }, + "end": { + "line": 100, + "column": 3 + } + } + }, + { + "type": "CommentLine", + "value": " Indexed collections", + "start": 3208, + "end": 3230, + "loc": { + "start": { + "line": 102, + "column": 0 + }, + "end": { + "line": 102, + "column": 22 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * @external {Array} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array\n ", + "start": 3231, + "end": 3346, + "loc": { + "start": { + "line": 103, + "column": 0 + }, + "end": { + "line": 105, + "column": 3 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * @external {Int8Array} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Int8Array\n ", + "start": 3348, + "end": 3471, + "loc": { + "start": { + "line": 107, + "column": 0 + }, + "end": { + "line": 109, + "column": 3 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * @external {Uint8Array} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Uint8Array\n ", + "start": 3472, + "end": 3597, + "loc": { + "start": { + "line": 110, + "column": 0 + }, + "end": { + "line": 112, + "column": 3 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * @external {Uint8ClampedArray} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Uint8ClampedArray\n ", + "start": 3599, + "end": 3738, + "loc": { + "start": { + "line": 114, + "column": 0 + }, + "end": { + "line": 116, + "column": 3 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * @external {Int16Array} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Int16Array\n ", + "start": 3740, + "end": 3865, + "loc": { + "start": { + "line": 118, + "column": 0 + }, + "end": { + "line": 120, + "column": 3 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * @external {Uint16Array} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Uint16Array\n ", + "start": 3867, + "end": 3994, + "loc": { + "start": { + "line": 122, + "column": 0 + }, + "end": { + "line": 124, + "column": 3 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * @external {Int32Array} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Int32Array\n ", + "start": 3996, + "end": 4121, + "loc": { + "start": { + "line": 126, + "column": 0 + }, + "end": { + "line": 128, + "column": 3 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * @external {Uint32Array} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Uint32Array\n ", + "start": 4123, + "end": 4250, + "loc": { + "start": { + "line": 130, + "column": 0 + }, + "end": { + "line": 132, + "column": 3 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * @external {Float32Array} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Float32Array\n ", + "start": 4252, + "end": 4381, + "loc": { + "start": { + "line": 134, + "column": 0 + }, + "end": { + "line": 136, + "column": 3 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * @external {Float64Array} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Float64Array\n ", + "start": 4383, + "end": 4512, + "loc": { + "start": { + "line": 138, + "column": 0 + }, + "end": { + "line": 140, + "column": 3 + } + } + }, + { + "type": "CommentLine", + "value": " Keyed collections", + "start": 4514, + "end": 4534, + "loc": { + "start": { + "line": 142, + "column": 0 + }, + "end": { + "line": 142, + "column": 20 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * @external {Map} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Map\n ", + "start": 4535, + "end": 4646, + "loc": { + "start": { + "line": 143, + "column": 0 + }, + "end": { + "line": 145, + "column": 3 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * @external {Set} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Set\n ", + "start": 4648, + "end": 4759, + "loc": { + "start": { + "line": 147, + "column": 0 + }, + "end": { + "line": 149, + "column": 3 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * @external {WeakMap} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/WeakMap\n ", + "start": 4761, + "end": 4880, + "loc": { + "start": { + "line": 151, + "column": 0 + }, + "end": { + "line": 153, + "column": 3 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * @external {WeakSet} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/WeakSet\n ", + "start": 4882, + "end": 5001, + "loc": { + "start": { + "line": 155, + "column": 0 + }, + "end": { + "line": 157, + "column": 3 + } + } + }, + { + "type": "CommentLine", + "value": " Structured data", + "start": 5003, + "end": 5021, + "loc": { + "start": { + "line": 159, + "column": 0 + }, + "end": { + "line": 159, + "column": 18 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * @external {ArrayBuffer} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/ArrayBuffer\n ", + "start": 5022, + "end": 5149, + "loc": { + "start": { + "line": 160, + "column": 0 + }, + "end": { + "line": 162, + "column": 3 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * @external {DataView} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/DataView\n ", + "start": 5151, + "end": 5272, + "loc": { + "start": { + "line": 164, + "column": 0 + }, + "end": { + "line": 166, + "column": 3 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * @external {JSON} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/JSON\n ", + "start": 5274, + "end": 5387, + "loc": { + "start": { + "line": 168, + "column": 0 + }, + "end": { + "line": 170, + "column": 3 + } + } + }, + { + "type": "CommentLine", + "value": " Control abstraction objects", + "start": 5389, + "end": 5419, + "loc": { + "start": { + "line": 172, + "column": 0 + }, + "end": { + "line": 172, + "column": 30 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * @external {Promise} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise\n ", + "start": 5420, + "end": 5539, + "loc": { + "start": { + "line": 173, + "column": 0 + }, + "end": { + "line": 175, + "column": 3 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * @external {Generator} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Generator\n ", + "start": 5541, + "end": 5664, + "loc": { + "start": { + "line": 177, + "column": 0 + }, + "end": { + "line": 179, + "column": 3 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * @external {GeneratorFunction} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/GeneratorFunction\n ", + "start": 5666, + "end": 5805, + "loc": { + "start": { + "line": 181, + "column": 0 + }, + "end": { + "line": 183, + "column": 3 + } + } + }, + { + "type": "CommentLine", + "value": " Reflection", + "start": 5807, + "end": 5820, + "loc": { + "start": { + "line": 185, + "column": 0 + }, + "end": { + "line": 185, + "column": 13 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * @external {Reflect} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Reflect\n ", + "start": 5821, + "end": 5940, + "loc": { + "start": { + "line": 186, + "column": 0 + }, + "end": { + "line": 188, + "column": 3 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * @external {Proxy} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Proxy\n ", + "start": 5942, + "end": 6057, + "loc": { + "start": { + "line": 190, + "column": 0 + }, + "end": { + "line": 192, + "column": 3 + } + } + } + ], + "tokens": [ + { + "type": "CommentLine", + "value": " https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects", + "start": 0, + "end": 83, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 1, + "column": 83 + } + } + }, + { + "type": "CommentLine", + "value": " Value properties", + "start": 85, + "end": 104, + "loc": { + "start": { + "line": 3, + "column": 0 + }, + "end": { + "line": 3, + "column": 19 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * @external {Infinity} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Infinity\n ", + "start": 105, + "end": 226, + "loc": { + "start": { + "line": 4, + "column": 0 + }, + "end": { + "line": 6, + "column": 3 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * @external {NaN} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/NaN\n ", + "start": 228, + "end": 339, + "loc": { + "start": { + "line": 8, + "column": 0 + }, + "end": { + "line": 10, + "column": 3 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * @external {undefined} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/undefined\n ", + "start": 341, + "end": 464, + "loc": { + "start": { + "line": 12, + "column": 0 + }, + "end": { + "line": 14, + "column": 3 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * @external {null} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/null\n ", + "start": 466, + "end": 579, + "loc": { + "start": { + "line": 16, + "column": 0 + }, + "end": { + "line": 18, + "column": 3 + } + } + }, + { + "type": "CommentLine", + "value": " Fundamental objects", + "start": 581, + "end": 603, + "loc": { + "start": { + "line": 20, + "column": 0 + }, + "end": { + "line": 20, + "column": 22 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * @external {Object} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object\n ", + "start": 604, + "end": 721, + "loc": { + "start": { + "line": 21, + "column": 0 + }, + "end": { + "line": 23, + "column": 3 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * @external {object} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object\n ", + "start": 722, + "end": 839, + "loc": { + "start": { + "line": 24, + "column": 0 + }, + "end": { + "line": 26, + "column": 3 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * @external {Function} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Function\n ", + "start": 841, + "end": 962, + "loc": { + "start": { + "line": 28, + "column": 0 + }, + "end": { + "line": 30, + "column": 3 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * @external {function} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Function\n ", + "start": 963, + "end": 1084, + "loc": { + "start": { + "line": 31, + "column": 0 + }, + "end": { + "line": 33, + "column": 3 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * @external {Boolean} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Boolean\n ", + "start": 1086, + "end": 1205, + "loc": { + "start": { + "line": 35, + "column": 0 + }, + "end": { + "line": 37, + "column": 3 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * @external {boolean} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Boolean\n ", + "start": 1206, + "end": 1325, + "loc": { + "start": { + "line": 38, + "column": 0 + }, + "end": { + "line": 40, + "column": 3 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * @external {Symbol} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Symbol\n ", + "start": 1327, + "end": 1444, + "loc": { + "start": { + "line": 42, + "column": 0 + }, + "end": { + "line": 44, + "column": 3 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * @external {Error} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Error\n ", + "start": 1446, + "end": 1561, + "loc": { + "start": { + "line": 46, + "column": 0 + }, + "end": { + "line": 48, + "column": 3 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * @external {EvalError} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/EvalError\n ", + "start": 1563, + "end": 1686, + "loc": { + "start": { + "line": 50, + "column": 0 + }, + "end": { + "line": 52, + "column": 3 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * @external {InternalError} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/InternalError\n ", + "start": 1688, + "end": 1819, + "loc": { + "start": { + "line": 54, + "column": 0 + }, + "end": { + "line": 56, + "column": 3 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * @external {RangeError} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/RangeError\n ", + "start": 1821, + "end": 1946, + "loc": { + "start": { + "line": 58, + "column": 0 + }, + "end": { + "line": 60, + "column": 3 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * @external {ReferenceError} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/ReferenceError\n ", + "start": 1948, + "end": 2081, + "loc": { + "start": { + "line": 62, + "column": 0 + }, + "end": { + "line": 64, + "column": 3 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * @external {SyntaxError} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/SyntaxError\n ", + "start": 2083, + "end": 2210, + "loc": { + "start": { + "line": 66, + "column": 0 + }, + "end": { + "line": 68, + "column": 3 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * @external {TypeError} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypeError\n ", + "start": 2212, + "end": 2335, + "loc": { + "start": { + "line": 70, + "column": 0 + }, + "end": { + "line": 72, + "column": 3 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * @external {URIError} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/URIError\n ", + "start": 2337, + "end": 2458, + "loc": { + "start": { + "line": 74, + "column": 0 + }, + "end": { + "line": 76, + "column": 3 + } + } + }, + { + "type": "CommentLine", + "value": " Numbers and dates", + "start": 2460, + "end": 2480, + "loc": { + "start": { + "line": 78, + "column": 0 + }, + "end": { + "line": 78, + "column": 20 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * @external {Number} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number\n ", + "start": 2481, + "end": 2598, + "loc": { + "start": { + "line": 79, + "column": 0 + }, + "end": { + "line": 81, + "column": 3 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * @external {number} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number\n ", + "start": 2599, + "end": 2716, + "loc": { + "start": { + "line": 82, + "column": 0 + }, + "end": { + "line": 84, + "column": 3 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * @external {Date} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date\n ", + "start": 2718, + "end": 2831, + "loc": { + "start": { + "line": 86, + "column": 0 + }, + "end": { + "line": 88, + "column": 3 + } + } + }, + { + "type": "CommentLine", + "value": " Text processing", + "start": 2833, + "end": 2851, + "loc": { + "start": { + "line": 90, + "column": 0 + }, + "end": { + "line": 90, + "column": 18 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * @external {String} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String\n ", + "start": 2852, + "end": 2969, + "loc": { + "start": { + "line": 91, + "column": 0 + }, + "end": { + "line": 93, + "column": 3 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * @external {string} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String\n ", + "start": 2970, + "end": 3087, + "loc": { + "start": { + "line": 94, + "column": 0 + }, + "end": { + "line": 96, + "column": 3 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * @external {RegExp} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/RegExp\n ", + "start": 3089, + "end": 3206, + "loc": { + "start": { + "line": 98, + "column": 0 + }, + "end": { + "line": 100, + "column": 3 + } + } + }, + { + "type": "CommentLine", + "value": " Indexed collections", + "start": 3208, + "end": 3230, + "loc": { + "start": { + "line": 102, + "column": 0 + }, + "end": { + "line": 102, + "column": 22 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * @external {Array} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array\n ", + "start": 3231, + "end": 3346, + "loc": { + "start": { + "line": 103, + "column": 0 + }, + "end": { + "line": 105, + "column": 3 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * @external {Int8Array} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Int8Array\n ", + "start": 3348, + "end": 3471, + "loc": { + "start": { + "line": 107, + "column": 0 + }, + "end": { + "line": 109, + "column": 3 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * @external {Uint8Array} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Uint8Array\n ", + "start": 3472, + "end": 3597, + "loc": { + "start": { + "line": 110, + "column": 0 + }, + "end": { + "line": 112, + "column": 3 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * @external {Uint8ClampedArray} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Uint8ClampedArray\n ", + "start": 3599, + "end": 3738, + "loc": { + "start": { + "line": 114, + "column": 0 + }, + "end": { + "line": 116, + "column": 3 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * @external {Int16Array} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Int16Array\n ", + "start": 3740, + "end": 3865, + "loc": { + "start": { + "line": 118, + "column": 0 + }, + "end": { + "line": 120, + "column": 3 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * @external {Uint16Array} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Uint16Array\n ", + "start": 3867, + "end": 3994, + "loc": { + "start": { + "line": 122, + "column": 0 + }, + "end": { + "line": 124, + "column": 3 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * @external {Int32Array} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Int32Array\n ", + "start": 3996, + "end": 4121, + "loc": { + "start": { + "line": 126, + "column": 0 + }, + "end": { + "line": 128, + "column": 3 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * @external {Uint32Array} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Uint32Array\n ", + "start": 4123, + "end": 4250, + "loc": { + "start": { + "line": 130, + "column": 0 + }, + "end": { + "line": 132, + "column": 3 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * @external {Float32Array} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Float32Array\n ", + "start": 4252, + "end": 4381, + "loc": { + "start": { + "line": 134, + "column": 0 + }, + "end": { + "line": 136, + "column": 3 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * @external {Float64Array} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Float64Array\n ", + "start": 4383, + "end": 4512, + "loc": { + "start": { + "line": 138, + "column": 0 + }, + "end": { + "line": 140, + "column": 3 + } + } + }, + { + "type": "CommentLine", + "value": " Keyed collections", + "start": 4514, + "end": 4534, + "loc": { + "start": { + "line": 142, + "column": 0 + }, + "end": { + "line": 142, + "column": 20 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * @external {Map} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Map\n ", + "start": 4535, + "end": 4646, + "loc": { + "start": { + "line": 143, + "column": 0 + }, + "end": { + "line": 145, + "column": 3 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * @external {Set} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Set\n ", + "start": 4648, + "end": 4759, + "loc": { + "start": { + "line": 147, + "column": 0 + }, + "end": { + "line": 149, + "column": 3 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * @external {WeakMap} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/WeakMap\n ", + "start": 4761, + "end": 4880, + "loc": { + "start": { + "line": 151, + "column": 0 + }, + "end": { + "line": 153, + "column": 3 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * @external {WeakSet} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/WeakSet\n ", + "start": 4882, + "end": 5001, + "loc": { + "start": { + "line": 155, + "column": 0 + }, + "end": { + "line": 157, + "column": 3 + } + } + }, + { + "type": "CommentLine", + "value": " Structured data", + "start": 5003, + "end": 5021, + "loc": { + "start": { + "line": 159, + "column": 0 + }, + "end": { + "line": 159, + "column": 18 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * @external {ArrayBuffer} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/ArrayBuffer\n ", + "start": 5022, + "end": 5149, + "loc": { + "start": { + "line": 160, + "column": 0 + }, + "end": { + "line": 162, + "column": 3 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * @external {DataView} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/DataView\n ", + "start": 5151, + "end": 5272, + "loc": { + "start": { + "line": 164, + "column": 0 + }, + "end": { + "line": 166, + "column": 3 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * @external {JSON} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/JSON\n ", + "start": 5274, + "end": 5387, + "loc": { + "start": { + "line": 168, + "column": 0 + }, + "end": { + "line": 170, + "column": 3 + } + } + }, + { + "type": "CommentLine", + "value": " Control abstraction objects", + "start": 5389, + "end": 5419, + "loc": { + "start": { + "line": 172, + "column": 0 + }, + "end": { + "line": 172, + "column": 30 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * @external {Promise} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise\n ", + "start": 5420, + "end": 5539, + "loc": { + "start": { + "line": 173, + "column": 0 + }, + "end": { + "line": 175, + "column": 3 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * @external {Generator} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Generator\n ", + "start": 5541, + "end": 5664, + "loc": { + "start": { + "line": 177, + "column": 0 + }, + "end": { + "line": 179, + "column": 3 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * @external {GeneratorFunction} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/GeneratorFunction\n ", + "start": 5666, + "end": 5805, + "loc": { + "start": { + "line": 181, + "column": 0 + }, + "end": { + "line": 183, + "column": 3 + } + } + }, + { + "type": "CommentLine", + "value": " Reflection", + "start": 5807, + "end": 5820, + "loc": { + "start": { + "line": 185, + "column": 0 + }, + "end": { + "line": 185, + "column": 13 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * @external {Reflect} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Reflect\n ", + "start": 5821, + "end": 5940, + "loc": { + "start": { + "line": 186, + "column": 0 + }, + "end": { + "line": 188, + "column": 3 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * @external {Proxy} https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Proxy\n ", + "start": 5942, + "end": 6057, + "loc": { + "start": { + "line": 190, + "column": 0 + }, + "end": { + "line": 192, + "column": 3 + } + } + }, + { + "type": { + "label": "eof", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 6058, + "end": 6058, + "loc": { + "start": { + "line": 193, + "column": 0 + }, + "end": { + "line": 193, + "column": 0 + } + } + } + ] +} \ No newline at end of file diff --git a/docs/ast/source/demo/App.js.json b/docs/ast/source/demo/App.js.json new file mode 100644 index 00000000..47ad3e66 --- /dev/null +++ b/docs/ast/source/demo/App.js.json @@ -0,0 +1,13803 @@ +{ + "type": "File", + "start": 0, + "end": 1927, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 87, + "column": 19 + } + }, + "program": { + "type": "Program", + "start": 0, + "end": 1927, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 87, + "column": 19 + } + }, + "sourceType": "module", + "body": [ + { + "type": "ImportDeclaration", + "start": 0, + "end": 30, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 1, + "column": 30 + } + }, + "specifiers": [ + { + "type": "ImportDefaultSpecifier", + "start": 7, + "end": 15, + "loc": { + "start": { + "line": 1, + "column": 7 + }, + "end": { + "line": 1, + "column": 15 + } + }, + "local": { + "type": "Identifier", + "start": 7, + "end": 15, + "loc": { + "start": { + "line": 1, + "column": 7 + }, + "end": { + "line": 1, + "column": 15 + }, + "identifierName": "Keyboard" + }, + "name": "Keyboard" + } + } + ], + "source": { + "type": "StringLiteral", + "start": 21, + "end": 29, + "loc": { + "start": { + "line": 1, + "column": 21 + }, + "end": { + "line": 1, + "column": 29 + } + }, + "extra": { + "rawValue": "../lib", + "raw": "'../lib'" + }, + "value": "../lib" + } + }, + { + "type": "ImportDeclaration", + "start": 32, + "end": 55, + "loc": { + "start": { + "line": 2, + "column": 0 + }, + "end": { + "line": 2, + "column": 23 + } + }, + "specifiers": [], + "source": { + "type": "StringLiteral", + "start": 39, + "end": 54, + "loc": { + "start": { + "line": 2, + "column": 7 + }, + "end": { + "line": 2, + "column": 22 + } + }, + "extra": { + "rawValue": "./css/App.css", + "raw": "'./css/App.css'" + }, + "value": "./css/App.css" + }, + "trailingComments": [ + { + "type": "CommentBlock", + "value": "*\r\n * simple-keyboard demo\r\n ", + "start": 59, + "end": 92, + "loc": { + "start": { + "line": 4, + "column": 0 + }, + "end": { + "line": 6, + "column": 3 + } + } + } + ] + }, + { + "type": "Identifier", + "start": 94, + "end": 1904, + "loc": { + "start": { + "line": 7, + "column": 0 + }, + "end": { + "line": 85, + "column": 1 + } + }, + "id": { + "type": "Identifier", + "start": 100, + "end": 103, + "loc": { + "start": { + "line": 7, + "column": 6 + }, + "end": { + "line": 7, + "column": 9 + }, + "identifierName": "App" + }, + "name": "App", + "leadingComments": null + }, + "superClass": null, + "body": { + "type": "ClassBody", + "start": 104, + "end": 1904, + "loc": { + "start": { + "line": 7, + "column": 10 + }, + "end": { + "line": 85, + "column": 1 + } + }, + "body": [ + { + "type": "ClassMethod", + "start": 157, + "end": 350, + "loc": { + "start": { + "line": 11, + "column": 2 + }, + "end": { + "line": 19, + "column": 3 + } + }, + "static": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 157, + "end": 168, + "loc": { + "start": { + "line": 11, + "column": 2 + }, + "end": { + "line": 11, + "column": 13 + }, + "identifierName": "constructor" + }, + "name": "constructor", + "leadingComments": null + }, + "kind": "constructor", + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [], + "body": { + "type": "BlockStatement", + "start": 170, + "end": 350, + "loc": { + "start": { + "line": 11, + "column": 15 + }, + "end": { + "line": 19, + "column": 3 + } + }, + "body": [ + { + "type": "ExpressionStatement", + "start": 177, + "end": 241, + "loc": { + "start": { + "line": 12, + "column": 4 + }, + "end": { + "line": 12, + "column": 68 + } + }, + "expression": { + "type": "CallExpression", + "start": 177, + "end": 240, + "loc": { + "start": { + "line": 12, + "column": 4 + }, + "end": { + "line": 12, + "column": 67 + } + }, + "callee": { + "type": "MemberExpression", + "start": 177, + "end": 202, + "loc": { + "start": { + "line": 12, + "column": 4 + }, + "end": { + "line": 12, + "column": 29 + } + }, + "object": { + "type": "Identifier", + "start": 177, + "end": 185, + "loc": { + "start": { + "line": 12, + "column": 4 + }, + "end": { + "line": 12, + "column": 12 + }, + "identifierName": "document" + }, + "name": "document" + }, + "property": { + "type": "Identifier", + "start": 186, + "end": 202, + "loc": { + "start": { + "line": 12, + "column": 13 + }, + "end": { + "line": 12, + "column": 29 + }, + "identifierName": "addEventListener" + }, + "name": "addEventListener" + }, + "computed": false + }, + "arguments": [ + { + "type": "StringLiteral", + "start": 203, + "end": 221, + "loc": { + "start": { + "line": 12, + "column": 30 + }, + "end": { + "line": 12, + "column": 48 + } + }, + "extra": { + "rawValue": "DOMContentLoaded", + "raw": "'DOMContentLoaded'" + }, + "value": "DOMContentLoaded" + }, + { + "type": "MemberExpression", + "start": 223, + "end": 239, + "loc": { + "start": { + "line": 12, + "column": 50 + }, + "end": { + "line": 12, + "column": 66 + } + }, + "object": { + "type": "ThisExpression", + "start": 223, + "end": 227, + "loc": { + "start": { + "line": 12, + "column": 50 + }, + "end": { + "line": 12, + "column": 54 + } + } + }, + "property": { + "type": "Identifier", + "start": 228, + "end": 239, + "loc": { + "start": { + "line": 12, + "column": 55 + }, + "end": { + "line": 12, + "column": 66 + }, + "identifierName": "onDOMLoaded" + }, + "name": "onDOMLoaded" + }, + "computed": false + } + ] + }, + "trailingComments": [ + { + "type": "CommentBlock", + "value": "*\r\n * Default input name\r\n * @type {string}\r\n ", + "start": 249, + "end": 311, + "loc": { + "start": { + "line": 14, + "column": 4 + }, + "end": { + "line": 17, + "column": 7 + } + } + } + ] + }, + { + "type": "ExpressionStatement", + "start": 317, + "end": 345, + "loc": { + "start": { + "line": 18, + "column": 4 + }, + "end": { + "line": 18, + "column": 32 + } + }, + "expression": { + "type": "AssignmentExpression", + "start": 317, + "end": 344, + "loc": { + "start": { + "line": 18, + "column": 4 + }, + "end": { + "line": 18, + "column": 31 + } + }, + "operator": "=", + "left": { + "type": "MemberExpression", + "start": 317, + "end": 332, + "loc": { + "start": { + "line": 18, + "column": 4 + }, + "end": { + "line": 18, + "column": 19 + } + }, + "object": { + "type": "ThisExpression", + "start": 317, + "end": 321, + "loc": { + "start": { + "line": 18, + "column": 4 + }, + "end": { + "line": 18, + "column": 8 + } + }, + "leadingComments": null + }, + "property": { + "type": "Identifier", + "start": 322, + "end": 332, + "loc": { + "start": { + "line": 18, + "column": 9 + }, + "end": { + "line": 18, + "column": 19 + }, + "identifierName": "layoutName" + }, + "name": "layoutName" + }, + "computed": false, + "leadingComments": null + }, + "right": { + "type": "StringLiteral", + "start": 335, + "end": 344, + "loc": { + "start": { + "line": 18, + "column": 22 + }, + "end": { + "line": 18, + "column": 31 + } + }, + "extra": { + "rawValue": "default", + "raw": "\"default\"" + }, + "value": "default" + }, + "leadingComments": null + }, + "leadingComments": [ + { + "type": "CommentBlock", + "value": "*\r\n * Default input name\r\n * @type {string}\r\n ", + "start": 249, + "end": 311, + "loc": { + "start": { + "line": 14, + "column": 4 + }, + "end": { + "line": 17, + "column": 7 + } + } + } + ] + } + ], + "directives": [], + "trailingComments": null + }, + "leadingComments": [ + { + "type": "CommentBlock", + "value": "*\r\n * Instantiates the demo class\r\n ", + "start": 109, + "end": 153, + "loc": { + "start": { + "line": 8, + "column": 2 + }, + "end": { + "line": 10, + "column": 5 + } + } + } + ], + "trailingComments": [ + { + "type": "CommentBlock", + "value": "*\r\n * Executed when the DOM is ready\r\n ", + "start": 356, + "end": 403, + "loc": { + "start": { + "line": 21, + "column": 2 + }, + "end": { + "line": 23, + "column": 5 + } + } + } + ] + }, + { + "type": "ClassProperty", + "start": 407, + "end": 1195, + "loc": { + "start": { + "line": 24, + "column": 2 + }, + "end": { + "line": 51, + "column": 3 + } + }, + "static": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 407, + "end": 418, + "loc": { + "start": { + "line": 24, + "column": 2 + }, + "end": { + "line": 24, + "column": 13 + }, + "identifierName": "onDOMLoaded" + }, + "name": "onDOMLoaded", + "leadingComments": null + }, + "value": { + "type": "ArrowFunctionExpression", + "start": 421, + "end": 1195, + "loc": { + "start": { + "line": 24, + "column": 16 + }, + "end": { + "line": 51, + "column": 3 + } + }, + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [], + "body": { + "type": "BlockStatement", + "start": 427, + "end": 1195, + "loc": { + "start": { + "line": 24, + "column": 22 + }, + "end": { + "line": 51, + "column": 3 + } + }, + "body": [ + { + "type": "ExpressionStatement", + "start": 499, + "end": 765, + "loc": { + "start": { + "line": 28, + "column": 4 + }, + "end": { + "line": 35, + "column": 7 + } + }, + "expression": { + "type": "AssignmentExpression", + "start": 499, + "end": 764, + "loc": { + "start": { + "line": 28, + "column": 4 + }, + "end": { + "line": 35, + "column": 6 + } + }, + "operator": "=", + "left": { + "type": "MemberExpression", + "start": 499, + "end": 512, + "loc": { + "start": { + "line": 28, + "column": 4 + }, + "end": { + "line": 28, + "column": 17 + } + }, + "object": { + "type": "ThisExpression", + "start": 499, + "end": 503, + "loc": { + "start": { + "line": 28, + "column": 4 + }, + "end": { + "line": 28, + "column": 8 + } + }, + "leadingComments": null + }, + "property": { + "type": "Identifier", + "start": 504, + "end": 512, + "loc": { + "start": { + "line": 28, + "column": 9 + }, + "end": { + "line": 28, + "column": 17 + }, + "identifierName": "keyboard" + }, + "name": "keyboard" + }, + "computed": false, + "leadingComments": null + }, + "right": { + "type": "NewExpression", + "start": 515, + "end": 764, + "loc": { + "start": { + "line": 28, + "column": 20 + }, + "end": { + "line": 35, + "column": 6 + } + }, + "callee": { + "type": "Identifier", + "start": 519, + "end": 527, + "loc": { + "start": { + "line": 28, + "column": 24 + }, + "end": { + "line": 28, + "column": 32 + }, + "identifierName": "Keyboard" + }, + "name": "Keyboard" + }, + "arguments": [ + { + "type": "ObjectExpression", + "start": 528, + "end": 763, + "loc": { + "start": { + "line": 28, + "column": 33 + }, + "end": { + "line": 35, + "column": 5 + } + }, + "properties": [ + { + "type": "ObjectProperty", + "start": 537, + "end": 548, + "loc": { + "start": { + "line": 29, + "column": 6 + }, + "end": { + "line": 29, + "column": 17 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 537, + "end": 542, + "loc": { + "start": { + "line": 29, + "column": 6 + }, + "end": { + "line": 29, + "column": 11 + }, + "identifierName": "debug" + }, + "name": "debug" + }, + "value": { + "type": "BooleanLiteral", + "start": 544, + "end": 548, + "loc": { + "start": { + "line": 29, + "column": 13 + }, + "end": { + "line": 29, + "column": 17 + } + }, + "value": true + } + }, + { + "type": "ObjectProperty", + "start": 557, + "end": 584, + "loc": { + "start": { + "line": 30, + "column": 6 + }, + "end": { + "line": 30, + "column": 33 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 557, + "end": 567, + "loc": { + "start": { + "line": 30, + "column": 6 + }, + "end": { + "line": 30, + "column": 16 + }, + "identifierName": "layoutName" + }, + "name": "layoutName" + }, + "value": { + "type": "MemberExpression", + "start": 569, + "end": 584, + "loc": { + "start": { + "line": 30, + "column": 18 + }, + "end": { + "line": 30, + "column": 33 + } + }, + "object": { + "type": "ThisExpression", + "start": 569, + "end": 573, + "loc": { + "start": { + "line": 30, + "column": 18 + }, + "end": { + "line": 30, + "column": 22 + } + } + }, + "property": { + "type": "Identifier", + "start": 574, + "end": 584, + "loc": { + "start": { + "line": 30, + "column": 23 + }, + "end": { + "line": 30, + "column": 33 + }, + "identifierName": "layoutName" + }, + "name": "layoutName" + }, + "computed": false + } + }, + { + "type": "ObjectProperty", + "start": 593, + "end": 632, + "loc": { + "start": { + "line": 31, + "column": 6 + }, + "end": { + "line": 31, + "column": 45 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 593, + "end": 601, + "loc": { + "start": { + "line": 31, + "column": 6 + }, + "end": { + "line": 31, + "column": 14 + }, + "identifierName": "onChange" + }, + "name": "onChange" + }, + "value": { + "type": "ArrowFunctionExpression", + "start": 603, + "end": 632, + "loc": { + "start": { + "line": 31, + "column": 16 + }, + "end": { + "line": 31, + "column": 45 + } + }, + "id": null, + "generator": false, + "expression": true, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 603, + "end": 608, + "loc": { + "start": { + "line": 31, + "column": 16 + }, + "end": { + "line": 31, + "column": 21 + }, + "identifierName": "input" + }, + "name": "input" + } + ], + "body": { + "type": "CallExpression", + "start": 612, + "end": 632, + "loc": { + "start": { + "line": 31, + "column": 25 + }, + "end": { + "line": 31, + "column": 45 + } + }, + "callee": { + "type": "MemberExpression", + "start": 612, + "end": 625, + "loc": { + "start": { + "line": 31, + "column": 25 + }, + "end": { + "line": 31, + "column": 38 + } + }, + "object": { + "type": "ThisExpression", + "start": 612, + "end": 616, + "loc": { + "start": { + "line": 31, + "column": 25 + }, + "end": { + "line": 31, + "column": 29 + } + } + }, + "property": { + "type": "Identifier", + "start": 617, + "end": 625, + "loc": { + "start": { + "line": 31, + "column": 30 + }, + "end": { + "line": 31, + "column": 38 + }, + "identifierName": "onChange" + }, + "name": "onChange" + }, + "computed": false + }, + "arguments": [ + { + "type": "Identifier", + "start": 626, + "end": 631, + "loc": { + "start": { + "line": 31, + "column": 39 + }, + "end": { + "line": 31, + "column": 44 + }, + "identifierName": "input" + }, + "name": "input" + } + ] + } + } + }, + { + "type": "ObjectProperty", + "start": 641, + "end": 686, + "loc": { + "start": { + "line": 32, + "column": 6 + }, + "end": { + "line": 32, + "column": 51 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 641, + "end": 651, + "loc": { + "start": { + "line": 32, + "column": 6 + }, + "end": { + "line": 32, + "column": 16 + }, + "identifierName": "onKeyPress" + }, + "name": "onKeyPress" + }, + "value": { + "type": "ArrowFunctionExpression", + "start": 653, + "end": 686, + "loc": { + "start": { + "line": 32, + "column": 18 + }, + "end": { + "line": 32, + "column": 51 + } + }, + "id": null, + "generator": false, + "expression": true, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 653, + "end": 659, + "loc": { + "start": { + "line": 32, + "column": 18 + }, + "end": { + "line": 32, + "column": 24 + }, + "identifierName": "button" + }, + "name": "button" + } + ], + "body": { + "type": "CallExpression", + "start": 663, + "end": 686, + "loc": { + "start": { + "line": 32, + "column": 28 + }, + "end": { + "line": 32, + "column": 51 + } + }, + "callee": { + "type": "MemberExpression", + "start": 663, + "end": 678, + "loc": { + "start": { + "line": 32, + "column": 28 + }, + "end": { + "line": 32, + "column": 43 + } + }, + "object": { + "type": "ThisExpression", + "start": 663, + "end": 667, + "loc": { + "start": { + "line": 32, + "column": 28 + }, + "end": { + "line": 32, + "column": 32 + } + } + }, + "property": { + "type": "Identifier", + "start": 668, + "end": 678, + "loc": { + "start": { + "line": 32, + "column": 33 + }, + "end": { + "line": 32, + "column": 43 + }, + "identifierName": "onKeyPress" + }, + "name": "onKeyPress" + }, + "computed": false + }, + "arguments": [ + { + "type": "Identifier", + "start": 679, + "end": 685, + "loc": { + "start": { + "line": 32, + "column": 44 + }, + "end": { + "line": 32, + "column": 50 + }, + "identifierName": "button" + }, + "name": "button" + } + ] + } + } + }, + { + "type": "ObjectProperty", + "start": 695, + "end": 715, + "loc": { + "start": { + "line": 33, + "column": 6 + }, + "end": { + "line": 33, + "column": 26 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 695, + "end": 709, + "loc": { + "start": { + "line": 33, + "column": 6 + }, + "end": { + "line": 33, + "column": 20 + }, + "identifierName": "newLineOnEnter" + }, + "name": "newLineOnEnter" + }, + "value": { + "type": "BooleanLiteral", + "start": 711, + "end": 715, + "loc": { + "start": { + "line": 33, + "column": 22 + }, + "end": { + "line": 33, + "column": 26 + } + }, + "value": true + } + }, + { + "type": "ObjectProperty", + "start": 724, + "end": 755, + "loc": { + "start": { + "line": 34, + "column": 6 + }, + "end": { + "line": 34, + "column": 37 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 724, + "end": 749, + "loc": { + "start": { + "line": 34, + "column": 6 + }, + "end": { + "line": 34, + "column": 31 + }, + "identifierName": "physicalKeyboardHighlight" + }, + "name": "physicalKeyboardHighlight" + }, + "value": { + "type": "BooleanLiteral", + "start": 751, + "end": 755, + "loc": { + "start": { + "line": 34, + "column": 33 + }, + "end": { + "line": 34, + "column": 37 + } + }, + "value": true + } + } + ] + } + ] + }, + "leadingComments": null + }, + "leadingComments": [ + { + "type": "CommentBlock", + "value": "*\r\n * Creates a new simple-keyboard instance\r\n ", + "start": 434, + "end": 493, + "loc": { + "start": { + "line": 25, + "column": 4 + }, + "end": { + "line": 27, + "column": 7 + } + } + } + ], + "trailingComments": [ + { + "type": "CommentBlock", + "value": "*\r\n * Adding preview (demo only)\r\n ", + "start": 775, + "end": 822, + "loc": { + "start": { + "line": 37, + "column": 4 + }, + "end": { + "line": 39, + "column": 7 + } + } + } + ] + }, + { + "type": "ExpressionStatement", + "start": 828, + "end": 1013, + "loc": { + "start": { + "line": 40, + "column": 4 + }, + "end": { + "line": 44, + "column": 7 + } + }, + "expression": { + "type": "CallExpression", + "start": 828, + "end": 1012, + "loc": { + "start": { + "line": 40, + "column": 4 + }, + "end": { + "line": 44, + "column": 6 + } + }, + "callee": { + "type": "MemberExpression", + "start": 828, + "end": 889, + "loc": { + "start": { + "line": 40, + "column": 4 + }, + "end": { + "line": 40, + "column": 65 + } + }, + "object": { + "type": "CallExpression", + "start": 828, + "end": 870, + "loc": { + "start": { + "line": 40, + "column": 4 + }, + "end": { + "line": 40, + "column": 46 + } + }, + "callee": { + "type": "MemberExpression", + "start": 828, + "end": 850, + "loc": { + "start": { + "line": 40, + "column": 4 + }, + "end": { + "line": 40, + "column": 26 + } + }, + "object": { + "type": "Identifier", + "start": 828, + "end": 836, + "loc": { + "start": { + "line": 40, + "column": 4 + }, + "end": { + "line": 40, + "column": 12 + }, + "identifierName": "document" + }, + "name": "document", + "leadingComments": null + }, + "property": { + "type": "Identifier", + "start": 837, + "end": 850, + "loc": { + "start": { + "line": 40, + "column": 13 + }, + "end": { + "line": 40, + "column": 26 + }, + "identifierName": "querySelector" + }, + "name": "querySelector" + }, + "computed": false, + "leadingComments": null + }, + "arguments": [ + { + "type": "StringLiteral", + "start": 851, + "end": 869, + "loc": { + "start": { + "line": 40, + "column": 27 + }, + "end": { + "line": 40, + "column": 45 + } + }, + "extra": { + "rawValue": ".simple-keyboard", + "raw": "'.simple-keyboard'" + }, + "value": ".simple-keyboard" + } + ], + "leadingComments": null + }, + "property": { + "type": "Identifier", + "start": 871, + "end": 889, + "loc": { + "start": { + "line": 40, + "column": 47 + }, + "end": { + "line": 40, + "column": 65 + }, + "identifierName": "insertAdjacentHTML" + }, + "name": "insertAdjacentHTML" + }, + "computed": false, + "leadingComments": null + }, + "arguments": [ + { + "type": "StringLiteral", + "start": 890, + "end": 903, + "loc": { + "start": { + "line": 40, + "column": 66 + }, + "end": { + "line": 40, + "column": 79 + } + }, + "extra": { + "rawValue": "beforebegin", + "raw": "'beforebegin'" + }, + "value": "beforebegin" + }, + { + "type": "TemplateLiteral", + "start": 905, + "end": 1011, + "loc": { + "start": { + "line": 40, + "column": 81 + }, + "end": { + "line": 44, + "column": 5 + } + }, + "expressions": [], + "quasis": [ + { + "type": "TemplateElement", + "start": 906, + "end": 1010, + "loc": { + "start": { + "line": 40, + "column": 82 + }, + "end": { + "line": 44, + "column": 4 + } + }, + "value": { + "raw": "\n
\n \n
\n ", + "cooked": "\n
\n \n
\n " + }, + "tail": true + } + ] + } + ], + "leadingComments": null + }, + "leadingComments": [ + { + "type": "CommentBlock", + "value": "*\r\n * Adding preview (demo only)\r\n ", + "start": 775, + "end": 822, + "loc": { + "start": { + "line": 37, + "column": 4 + }, + "end": { + "line": 39, + "column": 7 + } + } + } + ] + }, + { + "type": "ExpressionStatement", + "start": 1023, + "end": 1155, + "loc": { + "start": { + "line": 46, + "column": 4 + }, + "end": { + "line": 48, + "column": 7 + } + }, + "expression": { + "type": "CallExpression", + "start": 1023, + "end": 1154, + "loc": { + "start": { + "line": 46, + "column": 4 + }, + "end": { + "line": 48, + "column": 6 + } + }, + "callee": { + "type": "MemberExpression", + "start": 1023, + "end": 1072, + "loc": { + "start": { + "line": 46, + "column": 4 + }, + "end": { + "line": 46, + "column": 53 + } + }, + "object": { + "type": "CallExpression", + "start": 1023, + "end": 1055, + "loc": { + "start": { + "line": 46, + "column": 4 + }, + "end": { + "line": 46, + "column": 36 + } + }, + "callee": { + "type": "MemberExpression", + "start": 1023, + "end": 1045, + "loc": { + "start": { + "line": 46, + "column": 4 + }, + "end": { + "line": 46, + "column": 26 + } + }, + "object": { + "type": "Identifier", + "start": 1023, + "end": 1031, + "loc": { + "start": { + "line": 46, + "column": 4 + }, + "end": { + "line": 46, + "column": 12 + }, + "identifierName": "document" + }, + "name": "document" + }, + "property": { + "type": "Identifier", + "start": 1032, + "end": 1045, + "loc": { + "start": { + "line": 46, + "column": 13 + }, + "end": { + "line": 46, + "column": 26 + }, + "identifierName": "querySelector" + }, + "name": "querySelector" + }, + "computed": false + }, + "arguments": [ + { + "type": "StringLiteral", + "start": 1046, + "end": 1054, + "loc": { + "start": { + "line": 46, + "column": 27 + }, + "end": { + "line": 46, + "column": 35 + } + }, + "extra": { + "rawValue": ".input", + "raw": "'.input'" + }, + "value": ".input" + } + ] + }, + "property": { + "type": "Identifier", + "start": 1056, + "end": 1072, + "loc": { + "start": { + "line": 46, + "column": 37 + }, + "end": { + "line": 46, + "column": 53 + }, + "identifierName": "addEventListener" + }, + "name": "addEventListener" + }, + "computed": false + }, + "arguments": [ + { + "type": "StringLiteral", + "start": 1073, + "end": 1081, + "loc": { + "start": { + "line": 46, + "column": 54 + }, + "end": { + "line": 46, + "column": 62 + } + }, + "extra": { + "rawValue": "change", + "raw": "'change'" + }, + "value": "change" + }, + { + "type": "ArrowFunctionExpression", + "start": 1083, + "end": 1153, + "loc": { + "start": { + "line": 46, + "column": 64 + }, + "end": { + "line": 48, + "column": 5 + } + }, + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 1084, + "end": 1089, + "loc": { + "start": { + "line": 46, + "column": 65 + }, + "end": { + "line": 46, + "column": 70 + }, + "identifierName": "event" + }, + "name": "event" + } + ], + "body": { + "type": "BlockStatement", + "start": 1094, + "end": 1153, + "loc": { + "start": { + "line": 46, + "column": 75 + }, + "end": { + "line": 48, + "column": 5 + } + }, + "body": [ + { + "type": "ExpressionStatement", + "start": 1103, + "end": 1146, + "loc": { + "start": { + "line": 47, + "column": 6 + }, + "end": { + "line": 47, + "column": 49 + } + }, + "expression": { + "type": "CallExpression", + "start": 1103, + "end": 1145, + "loc": { + "start": { + "line": 47, + "column": 6 + }, + "end": { + "line": 47, + "column": 48 + } + }, + "callee": { + "type": "MemberExpression", + "start": 1103, + "end": 1125, + "loc": { + "start": { + "line": 47, + "column": 6 + }, + "end": { + "line": 47, + "column": 28 + } + }, + "object": { + "type": "MemberExpression", + "start": 1103, + "end": 1116, + "loc": { + "start": { + "line": 47, + "column": 6 + }, + "end": { + "line": 47, + "column": 19 + } + }, + "object": { + "type": "ThisExpression", + "start": 1103, + "end": 1107, + "loc": { + "start": { + "line": 47, + "column": 6 + }, + "end": { + "line": 47, + "column": 10 + } + } + }, + "property": { + "type": "Identifier", + "start": 1108, + "end": 1116, + "loc": { + "start": { + "line": 47, + "column": 11 + }, + "end": { + "line": 47, + "column": 19 + }, + "identifierName": "keyboard" + }, + "name": "keyboard" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 1117, + "end": 1125, + "loc": { + "start": { + "line": 47, + "column": 20 + }, + "end": { + "line": 47, + "column": 28 + }, + "identifierName": "setInput" + }, + "name": "setInput" + }, + "computed": false + }, + "arguments": [ + { + "type": "MemberExpression", + "start": 1126, + "end": 1144, + "loc": { + "start": { + "line": 47, + "column": 29 + }, + "end": { + "line": 47, + "column": 47 + } + }, + "object": { + "type": "MemberExpression", + "start": 1126, + "end": 1138, + "loc": { + "start": { + "line": 47, + "column": 29 + }, + "end": { + "line": 47, + "column": 41 + } + }, + "object": { + "type": "Identifier", + "start": 1126, + "end": 1131, + "loc": { + "start": { + "line": 47, + "column": 29 + }, + "end": { + "line": 47, + "column": 34 + }, + "identifierName": "event" + }, + "name": "event" + }, + "property": { + "type": "Identifier", + "start": 1132, + "end": 1138, + "loc": { + "start": { + "line": 47, + "column": 35 + }, + "end": { + "line": 47, + "column": 41 + }, + "identifierName": "target" + }, + "name": "target" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 1139, + "end": 1144, + "loc": { + "start": { + "line": 47, + "column": 42 + }, + "end": { + "line": 47, + "column": 47 + }, + "identifierName": "value" + }, + "name": "value" + }, + "computed": false + } + ] + } + } + ], + "directives": [] + } + } + ] + } + }, + { + "type": "ExpressionStatement", + "start": 1163, + "end": 1190, + "loc": { + "start": { + "line": 50, + "column": 4 + }, + "end": { + "line": 50, + "column": 31 + } + }, + "expression": { + "type": "CallExpression", + "start": 1163, + "end": 1189, + "loc": { + "start": { + "line": 50, + "column": 4 + }, + "end": { + "line": 50, + "column": 30 + } + }, + "callee": { + "type": "MemberExpression", + "start": 1163, + "end": 1174, + "loc": { + "start": { + "line": 50, + "column": 4 + }, + "end": { + "line": 50, + "column": 15 + } + }, + "object": { + "type": "Identifier", + "start": 1163, + "end": 1170, + "loc": { + "start": { + "line": 50, + "column": 4 + }, + "end": { + "line": 50, + "column": 11 + }, + "identifierName": "console" + }, + "name": "console" + }, + "property": { + "type": "Identifier", + "start": 1171, + "end": 1174, + "loc": { + "start": { + "line": 50, + "column": 12 + }, + "end": { + "line": 50, + "column": 15 + }, + "identifierName": "log" + }, + "name": "log" + }, + "computed": false + }, + "arguments": [ + { + "type": "MemberExpression", + "start": 1175, + "end": 1188, + "loc": { + "start": { + "line": 50, + "column": 16 + }, + "end": { + "line": 50, + "column": 29 + } + }, + "object": { + "type": "ThisExpression", + "start": 1175, + "end": 1179, + "loc": { + "start": { + "line": 50, + "column": 16 + }, + "end": { + "line": 50, + "column": 20 + } + } + }, + "property": { + "type": "Identifier", + "start": 1180, + "end": 1188, + "loc": { + "start": { + "line": 50, + "column": 21 + }, + "end": { + "line": 50, + "column": 29 + }, + "identifierName": "keyboard" + }, + "name": "keyboard" + }, + "computed": false + } + ] + } + } + ], + "directives": [], + "trailingComments": null + }, + "trailingComments": null + }, + "leadingComments": [ + { + "type": "CommentBlock", + "value": "*\r\n * Executed when the DOM is ready\r\n ", + "start": 356, + "end": 403, + "loc": { + "start": { + "line": 21, + "column": 2 + }, + "end": { + "line": 23, + "column": 5 + } + } + } + ], + "trailingComments": [ + { + "type": "CommentBlock", + "value": "*\r\n * \r\n ", + "start": 1201, + "end": 1218, + "loc": { + "start": { + "line": 53, + "column": 2 + }, + "end": { + "line": 55, + "column": 5 + } + } + } + ] + }, + { + "type": "ClassProperty", + "start": 1222, + "end": 1458, + "loc": { + "start": { + "line": 56, + "column": 2 + }, + "end": { + "line": 63, + "column": 3 + } + }, + "static": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 1222, + "end": 1239, + "loc": { + "start": { + "line": 56, + "column": 2 + }, + "end": { + "line": 56, + "column": 19 + }, + "identifierName": "handleShiftButton" + }, + "name": "handleShiftButton", + "leadingComments": null + }, + "value": { + "type": "ArrowFunctionExpression", + "start": 1242, + "end": 1458, + "loc": { + "start": { + "line": 56, + "column": 22 + }, + "end": { + "line": 63, + "column": 3 + } + }, + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [], + "body": { + "type": "BlockStatement", + "start": 1248, + "end": 1458, + "loc": { + "start": { + "line": 56, + "column": 28 + }, + "end": { + "line": 63, + "column": 3 + } + }, + "body": [ + { + "type": "VariableDeclaration", + "start": 1255, + "end": 1288, + "loc": { + "start": { + "line": 57, + "column": 4 + }, + "end": { + "line": 57, + "column": 37 + } + }, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 1259, + "end": 1287, + "loc": { + "start": { + "line": 57, + "column": 8 + }, + "end": { + "line": 57, + "column": 36 + } + }, + "id": { + "type": "Identifier", + "start": 1259, + "end": 1269, + "loc": { + "start": { + "line": 57, + "column": 8 + }, + "end": { + "line": 57, + "column": 18 + }, + "identifierName": "layoutName" + }, + "name": "layoutName" + }, + "init": { + "type": "MemberExpression", + "start": 1272, + "end": 1287, + "loc": { + "start": { + "line": 57, + "column": 21 + }, + "end": { + "line": 57, + "column": 36 + } + }, + "object": { + "type": "ThisExpression", + "start": 1272, + "end": 1276, + "loc": { + "start": { + "line": 57, + "column": 21 + }, + "end": { + "line": 57, + "column": 25 + } + } + }, + "property": { + "type": "Identifier", + "start": 1277, + "end": 1287, + "loc": { + "start": { + "line": 57, + "column": 26 + }, + "end": { + "line": 57, + "column": 36 + }, + "identifierName": "layoutName" + }, + "name": "layoutName" + }, + "computed": false + } + } + ], + "kind": "let" + }, + { + "type": "VariableDeclaration", + "start": 1294, + "end": 1377, + "loc": { + "start": { + "line": 58, + "column": 4 + }, + "end": { + "line": 58, + "column": 87 + } + }, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 1298, + "end": 1376, + "loc": { + "start": { + "line": 58, + "column": 8 + }, + "end": { + "line": 58, + "column": 86 + } + }, + "id": { + "type": "Identifier", + "start": 1298, + "end": 1309, + "loc": { + "start": { + "line": 58, + "column": 8 + }, + "end": { + "line": 58, + "column": 19 + }, + "identifierName": "shiftToggle" + }, + "name": "shiftToggle" + }, + "init": { + "type": "AssignmentExpression", + "start": 1312, + "end": 1376, + "loc": { + "start": { + "line": 58, + "column": 22 + }, + "end": { + "line": 58, + "column": 86 + } + }, + "operator": "=", + "left": { + "type": "MemberExpression", + "start": 1312, + "end": 1327, + "loc": { + "start": { + "line": 58, + "column": 22 + }, + "end": { + "line": 58, + "column": 37 + } + }, + "object": { + "type": "ThisExpression", + "start": 1312, + "end": 1316, + "loc": { + "start": { + "line": 58, + "column": 22 + }, + "end": { + "line": 58, + "column": 26 + } + } + }, + "property": { + "type": "Identifier", + "start": 1317, + "end": 1327, + "loc": { + "start": { + "line": 58, + "column": 27 + }, + "end": { + "line": 58, + "column": 37 + }, + "identifierName": "layoutName" + }, + "name": "layoutName" + }, + "computed": false + }, + "right": { + "type": "ConditionalExpression", + "start": 1330, + "end": 1376, + "loc": { + "start": { + "line": 58, + "column": 40 + }, + "end": { + "line": 58, + "column": 86 + } + }, + "test": { + "type": "BinaryExpression", + "start": 1330, + "end": 1354, + "loc": { + "start": { + "line": 58, + "column": 40 + }, + "end": { + "line": 58, + "column": 64 + } + }, + "left": { + "type": "Identifier", + "start": 1330, + "end": 1340, + "loc": { + "start": { + "line": 58, + "column": 40 + }, + "end": { + "line": 58, + "column": 50 + }, + "identifierName": "layoutName" + }, + "name": "layoutName" + }, + "operator": "===", + "right": { + "type": "StringLiteral", + "start": 1345, + "end": 1354, + "loc": { + "start": { + "line": 58, + "column": 55 + }, + "end": { + "line": 58, + "column": 64 + } + }, + "extra": { + "rawValue": "default", + "raw": "\"default\"" + }, + "value": "default" + } + }, + "consequent": { + "type": "StringLiteral", + "start": 1357, + "end": 1364, + "loc": { + "start": { + "line": 58, + "column": 67 + }, + "end": { + "line": 58, + "column": 74 + } + }, + "extra": { + "rawValue": "shift", + "raw": "\"shift\"" + }, + "value": "shift" + }, + "alternate": { + "type": "StringLiteral", + "start": 1367, + "end": 1376, + "loc": { + "start": { + "line": 58, + "column": 77 + }, + "end": { + "line": 58, + "column": 86 + } + }, + "extra": { + "rawValue": "default", + "raw": "\"default\"" + }, + "value": "default" + } + } + } + } + ], + "kind": "let" + }, + { + "type": "ExpressionStatement", + "start": 1387, + "end": 1453, + "loc": { + "start": { + "line": 60, + "column": 4 + }, + "end": { + "line": 62, + "column": 7 + } + }, + "expression": { + "type": "CallExpression", + "start": 1387, + "end": 1452, + "loc": { + "start": { + "line": 60, + "column": 4 + }, + "end": { + "line": 62, + "column": 6 + } + }, + "callee": { + "type": "MemberExpression", + "start": 1387, + "end": 1411, + "loc": { + "start": { + "line": 60, + "column": 4 + }, + "end": { + "line": 60, + "column": 28 + } + }, + "object": { + "type": "MemberExpression", + "start": 1387, + "end": 1400, + "loc": { + "start": { + "line": 60, + "column": 4 + }, + "end": { + "line": 60, + "column": 17 + } + }, + "object": { + "type": "ThisExpression", + "start": 1387, + "end": 1391, + "loc": { + "start": { + "line": 60, + "column": 4 + }, + "end": { + "line": 60, + "column": 8 + } + } + }, + "property": { + "type": "Identifier", + "start": 1392, + "end": 1400, + "loc": { + "start": { + "line": 60, + "column": 9 + }, + "end": { + "line": 60, + "column": 17 + }, + "identifierName": "keyboard" + }, + "name": "keyboard" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 1401, + "end": 1411, + "loc": { + "start": { + "line": 60, + "column": 18 + }, + "end": { + "line": 60, + "column": 28 + }, + "identifierName": "setOptions" + }, + "name": "setOptions" + }, + "computed": false + }, + "arguments": [ + { + "type": "ObjectExpression", + "start": 1412, + "end": 1451, + "loc": { + "start": { + "line": 60, + "column": 29 + }, + "end": { + "line": 62, + "column": 5 + } + }, + "properties": [ + { + "type": "ObjectProperty", + "start": 1421, + "end": 1444, + "loc": { + "start": { + "line": 61, + "column": 6 + }, + "end": { + "line": 61, + "column": 29 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 1421, + "end": 1431, + "loc": { + "start": { + "line": 61, + "column": 6 + }, + "end": { + "line": 61, + "column": 16 + }, + "identifierName": "layoutName" + }, + "name": "layoutName" + }, + "value": { + "type": "Identifier", + "start": 1433, + "end": 1444, + "loc": { + "start": { + "line": 61, + "column": 18 + }, + "end": { + "line": 61, + "column": 29 + }, + "identifierName": "shiftToggle" + }, + "name": "shiftToggle" + } + } + ] + } + ] + } + } + ], + "directives": [], + "trailingComments": null + }, + "trailingComments": null + }, + "leadingComments": [ + { + "type": "CommentBlock", + "value": "*\r\n * \r\n ", + "start": 1201, + "end": 1218, + "loc": { + "start": { + "line": 53, + "column": 2 + }, + "end": { + "line": 55, + "column": 5 + } + } + } + ], + "trailingComments": [ + { + "type": "CommentBlock", + "value": "*\r\n * Called when simple-keyboard input has changed\r\n ", + "start": 1464, + "end": 1526, + "loc": { + "start": { + "line": 65, + "column": 2 + }, + "end": { + "line": 67, + "column": 5 + } + } + } + ] + }, + { + "type": "ClassProperty", + "start": 1530, + "end": 1609, + "loc": { + "start": { + "line": 68, + "column": 2 + }, + "end": { + "line": 70, + "column": 3 + } + }, + "static": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 1530, + "end": 1538, + "loc": { + "start": { + "line": 68, + "column": 2 + }, + "end": { + "line": 68, + "column": 10 + }, + "identifierName": "onChange" + }, + "name": "onChange", + "leadingComments": null + }, + "value": { + "type": "ArrowFunctionExpression", + "start": 1541, + "end": 1609, + "loc": { + "start": { + "line": 68, + "column": 13 + }, + "end": { + "line": 70, + "column": 3 + } + }, + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 1541, + "end": 1546, + "loc": { + "start": { + "line": 68, + "column": 13 + }, + "end": { + "line": 68, + "column": 18 + }, + "identifierName": "input" + }, + "name": "input" + } + ], + "body": { + "type": "BlockStatement", + "start": 1550, + "end": 1609, + "loc": { + "start": { + "line": 68, + "column": 22 + }, + "end": { + "line": 70, + "column": 3 + } + }, + "body": [ + { + "type": "ExpressionStatement", + "start": 1557, + "end": 1604, + "loc": { + "start": { + "line": 69, + "column": 4 + }, + "end": { + "line": 69, + "column": 51 + } + }, + "expression": { + "type": "AssignmentExpression", + "start": 1557, + "end": 1603, + "loc": { + "start": { + "line": 69, + "column": 4 + }, + "end": { + "line": 69, + "column": 50 + } + }, + "operator": "=", + "left": { + "type": "MemberExpression", + "start": 1557, + "end": 1595, + "loc": { + "start": { + "line": 69, + "column": 4 + }, + "end": { + "line": 69, + "column": 42 + } + }, + "object": { + "type": "CallExpression", + "start": 1557, + "end": 1589, + "loc": { + "start": { + "line": 69, + "column": 4 + }, + "end": { + "line": 69, + "column": 36 + } + }, + "callee": { + "type": "MemberExpression", + "start": 1557, + "end": 1579, + "loc": { + "start": { + "line": 69, + "column": 4 + }, + "end": { + "line": 69, + "column": 26 + } + }, + "object": { + "type": "Identifier", + "start": 1557, + "end": 1565, + "loc": { + "start": { + "line": 69, + "column": 4 + }, + "end": { + "line": 69, + "column": 12 + }, + "identifierName": "document" + }, + "name": "document" + }, + "property": { + "type": "Identifier", + "start": 1566, + "end": 1579, + "loc": { + "start": { + "line": 69, + "column": 13 + }, + "end": { + "line": 69, + "column": 26 + }, + "identifierName": "querySelector" + }, + "name": "querySelector" + }, + "computed": false + }, + "arguments": [ + { + "type": "StringLiteral", + "start": 1580, + "end": 1588, + "loc": { + "start": { + "line": 69, + "column": 27 + }, + "end": { + "line": 69, + "column": 35 + } + }, + "extra": { + "rawValue": ".input", + "raw": "'.input'" + }, + "value": ".input" + } + ] + }, + "property": { + "type": "Identifier", + "start": 1590, + "end": 1595, + "loc": { + "start": { + "line": 69, + "column": 37 + }, + "end": { + "line": 69, + "column": 42 + }, + "identifierName": "value" + }, + "name": "value" + }, + "computed": false + }, + "right": { + "type": "Identifier", + "start": 1598, + "end": 1603, + "loc": { + "start": { + "line": 69, + "column": 45 + }, + "end": { + "line": 69, + "column": 50 + }, + "identifierName": "input" + }, + "name": "input" + } + } + } + ], + "directives": [], + "trailingComments": null + }, + "trailingComments": null + }, + "leadingComments": [ + { + "type": "CommentBlock", + "value": "*\r\n * Called when simple-keyboard input has changed\r\n ", + "start": 1464, + "end": 1526, + "loc": { + "start": { + "line": 65, + "column": 2 + }, + "end": { + "line": 67, + "column": 5 + } + } + } + ], + "trailingComments": [ + { + "type": "CommentBlock", + "value": "*\r\n * Called when a simple-keyboard key is pressed\r\n ", + "start": 1615, + "end": 1676, + "loc": { + "start": { + "line": 72, + "column": 2 + }, + "end": { + "line": 74, + "column": 5 + } + } + } + ] + }, + { + "type": "ClassProperty", + "start": 1680, + "end": 1899, + "loc": { + "start": { + "line": 75, + "column": 2 + }, + "end": { + "line": 83, + "column": 3 + } + }, + "static": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 1680, + "end": 1690, + "loc": { + "start": { + "line": 75, + "column": 2 + }, + "end": { + "line": 75, + "column": 12 + }, + "identifierName": "onKeyPress" + }, + "name": "onKeyPress", + "leadingComments": null + }, + "value": { + "type": "ArrowFunctionExpression", + "start": 1693, + "end": 1899, + "loc": { + "start": { + "line": 75, + "column": 15 + }, + "end": { + "line": 83, + "column": 3 + } + }, + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 1693, + "end": 1699, + "loc": { + "start": { + "line": 75, + "column": 15 + }, + "end": { + "line": 75, + "column": 21 + }, + "identifierName": "button" + }, + "name": "button" + } + ], + "body": { + "type": "BlockStatement", + "start": 1703, + "end": 1899, + "loc": { + "start": { + "line": 75, + "column": 25 + }, + "end": { + "line": 83, + "column": 3 + } + }, + "body": [ + { + "type": "ExpressionStatement", + "start": 1710, + "end": 1748, + "loc": { + "start": { + "line": 76, + "column": 4 + }, + "end": { + "line": 76, + "column": 42 + } + }, + "expression": { + "type": "CallExpression", + "start": 1710, + "end": 1747, + "loc": { + "start": { + "line": 76, + "column": 4 + }, + "end": { + "line": 76, + "column": 41 + } + }, + "callee": { + "type": "MemberExpression", + "start": 1710, + "end": 1721, + "loc": { + "start": { + "line": 76, + "column": 4 + }, + "end": { + "line": 76, + "column": 15 + } + }, + "object": { + "type": "Identifier", + "start": 1710, + "end": 1717, + "loc": { + "start": { + "line": 76, + "column": 4 + }, + "end": { + "line": 76, + "column": 11 + }, + "identifierName": "console" + }, + "name": "console" + }, + "property": { + "type": "Identifier", + "start": 1718, + "end": 1721, + "loc": { + "start": { + "line": 76, + "column": 12 + }, + "end": { + "line": 76, + "column": 15 + }, + "identifierName": "log" + }, + "name": "log" + }, + "computed": false + }, + "arguments": [ + { + "type": "StringLiteral", + "start": 1722, + "end": 1738, + "loc": { + "start": { + "line": 76, + "column": 16 + }, + "end": { + "line": 76, + "column": 32 + } + }, + "extra": { + "rawValue": "Button pressed", + "raw": "\"Button pressed\"" + }, + "value": "Button pressed" + }, + { + "type": "Identifier", + "start": 1740, + "end": 1746, + "loc": { + "start": { + "line": 76, + "column": 34 + }, + "end": { + "line": 76, + "column": 40 + }, + "identifierName": "button" + }, + "name": "button" + } + ] + }, + "trailingComments": [ + { + "type": "CommentBlock", + "value": "*\r\n * Shift functionality\r\n ", + "start": 1760, + "end": 1804, + "loc": { + "start": { + "line": 78, + "column": 6 + }, + "end": { + "line": 80, + "column": 9 + } + } + } + ] + }, + { + "type": "IfStatement", + "start": 1812, + "end": 1894, + "loc": { + "start": { + "line": 81, + "column": 6 + }, + "end": { + "line": 82, + "column": 33 + } + }, + "test": { + "type": "LogicalExpression", + "start": 1815, + "end": 1858, + "loc": { + "start": { + "line": 81, + "column": 9 + }, + "end": { + "line": 81, + "column": 52 + } + }, + "left": { + "type": "BinaryExpression", + "start": 1815, + "end": 1834, + "loc": { + "start": { + "line": 81, + "column": 9 + }, + "end": { + "line": 81, + "column": 28 + } + }, + "left": { + "type": "Identifier", + "start": 1815, + "end": 1821, + "loc": { + "start": { + "line": 81, + "column": 9 + }, + "end": { + "line": 81, + "column": 15 + }, + "identifierName": "button" + }, + "name": "button", + "leadingComments": null + }, + "operator": "===", + "right": { + "type": "StringLiteral", + "start": 1826, + "end": 1834, + "loc": { + "start": { + "line": 81, + "column": 20 + }, + "end": { + "line": 81, + "column": 28 + } + }, + "extra": { + "rawValue": "{lock}", + "raw": "\"{lock}\"" + }, + "value": "{lock}" + }, + "leadingComments": null + }, + "operator": "||", + "right": { + "type": "BinaryExpression", + "start": 1838, + "end": 1858, + "loc": { + "start": { + "line": 81, + "column": 32 + }, + "end": { + "line": 81, + "column": 52 + } + }, + "left": { + "type": "Identifier", + "start": 1838, + "end": 1844, + "loc": { + "start": { + "line": 81, + "column": 32 + }, + "end": { + "line": 81, + "column": 38 + }, + "identifierName": "button" + }, + "name": "button" + }, + "operator": "===", + "right": { + "type": "StringLiteral", + "start": 1849, + "end": 1858, + "loc": { + "start": { + "line": 81, + "column": 43 + }, + "end": { + "line": 81, + "column": 52 + } + }, + "extra": { + "rawValue": "{shift}", + "raw": "\"{shift}\"" + }, + "value": "{shift}" + } + }, + "leadingComments": null + }, + "consequent": { + "type": "ExpressionStatement", + "start": 1869, + "end": 1894, + "loc": { + "start": { + "line": 82, + "column": 8 + }, + "end": { + "line": 82, + "column": 33 + } + }, + "expression": { + "type": "CallExpression", + "start": 1869, + "end": 1893, + "loc": { + "start": { + "line": 82, + "column": 8 + }, + "end": { + "line": 82, + "column": 32 + } + }, + "callee": { + "type": "MemberExpression", + "start": 1869, + "end": 1891, + "loc": { + "start": { + "line": 82, + "column": 8 + }, + "end": { + "line": 82, + "column": 30 + } + }, + "object": { + "type": "ThisExpression", + "start": 1869, + "end": 1873, + "loc": { + "start": { + "line": 82, + "column": 8 + }, + "end": { + "line": 82, + "column": 12 + } + } + }, + "property": { + "type": "Identifier", + "start": 1874, + "end": 1891, + "loc": { + "start": { + "line": 82, + "column": 13 + }, + "end": { + "line": 82, + "column": 30 + }, + "identifierName": "handleShiftButton" + }, + "name": "handleShiftButton" + }, + "computed": false + }, + "arguments": [] + } + }, + "alternate": null, + "leadingComments": [ + { + "type": "CommentBlock", + "value": "*\r\n * Shift functionality\r\n ", + "start": 1760, + "end": 1804, + "loc": { + "start": { + "line": 78, + "column": 6 + }, + "end": { + "line": 80, + "column": 9 + } + } + } + ] + } + ], + "directives": [] + } + }, + "leadingComments": [ + { + "type": "CommentBlock", + "value": "*\r\n * Called when a simple-keyboard key is pressed\r\n ", + "start": 1615, + "end": 1676, + "loc": { + "start": { + "line": 72, + "column": 2 + }, + "end": { + "line": 74, + "column": 5 + } + } + } + ] + } + ] + }, + "leadingComments": [], + "name": "_", + "trailingComments": [] + }, + { + "type": "Identifier", + "start": 1908, + "end": 1927, + "loc": { + "start": { + "line": 87, + "column": 0 + }, + "end": { + "line": 87, + "column": 19 + } + }, + "declaration": { + "type": "Identifier", + "start": 1923, + "end": 1926, + "loc": { + "start": { + "line": 87, + "column": 15 + }, + "end": { + "line": 87, + "column": 18 + }, + "identifierName": "App" + }, + "name": "App" + }, + "name": "_", + "leadingComments": [], + "trailingComments": [] + }, + { + "type": "ExportDefaultDeclaration", + "start": 1908, + "end": 1927, + "loc": { + "start": { + "line": 87, + "column": 0 + }, + "end": { + "line": 87, + "column": 19 + } + }, + "declaration": { + "type": "ClassDeclaration", + "start": 94, + "end": 1904, + "loc": { + "start": { + "line": 7, + "column": 0 + }, + "end": { + "line": 85, + "column": 1 + } + }, + "id": { + "type": "Identifier", + "start": 100, + "end": 103, + "loc": { + "start": { + "line": 7, + "column": 6 + }, + "end": { + "line": 7, + "column": 9 + }, + "identifierName": "App" + }, + "name": "App", + "leadingComments": null + }, + "superClass": null, + "body": { + "type": "ClassBody", + "start": 104, + "end": 1904, + "loc": { + "start": { + "line": 7, + "column": 10 + }, + "end": { + "line": 85, + "column": 1 + } + }, + "body": [ + { + "type": "ClassMethod", + "start": 157, + "end": 350, + "loc": { + "start": { + "line": 11, + "column": 2 + }, + "end": { + "line": 19, + "column": 3 + } + }, + "static": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 157, + "end": 168, + "loc": { + "start": { + "line": 11, + "column": 2 + }, + "end": { + "line": 11, + "column": 13 + }, + "identifierName": "constructor" + }, + "name": "constructor", + "leadingComments": null + }, + "kind": "constructor", + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [], + "body": { + "type": "BlockStatement", + "start": 170, + "end": 350, + "loc": { + "start": { + "line": 11, + "column": 15 + }, + "end": { + "line": 19, + "column": 3 + } + }, + "body": [ + { + "type": "ExpressionStatement", + "start": 177, + "end": 241, + "loc": { + "start": { + "line": 12, + "column": 4 + }, + "end": { + "line": 12, + "column": 68 + } + }, + "expression": { + "type": "CallExpression", + "start": 177, + "end": 240, + "loc": { + "start": { + "line": 12, + "column": 4 + }, + "end": { + "line": 12, + "column": 67 + } + }, + "callee": { + "type": "MemberExpression", + "start": 177, + "end": 202, + "loc": { + "start": { + "line": 12, + "column": 4 + }, + "end": { + "line": 12, + "column": 29 + } + }, + "object": { + "type": "Identifier", + "start": 177, + "end": 185, + "loc": { + "start": { + "line": 12, + "column": 4 + }, + "end": { + "line": 12, + "column": 12 + }, + "identifierName": "document" + }, + "name": "document" + }, + "property": { + "type": "Identifier", + "start": 186, + "end": 202, + "loc": { + "start": { + "line": 12, + "column": 13 + }, + "end": { + "line": 12, + "column": 29 + }, + "identifierName": "addEventListener" + }, + "name": "addEventListener" + }, + "computed": false + }, + "arguments": [ + { + "type": "StringLiteral", + "start": 203, + "end": 221, + "loc": { + "start": { + "line": 12, + "column": 30 + }, + "end": { + "line": 12, + "column": 48 + } + }, + "extra": { + "rawValue": "DOMContentLoaded", + "raw": "'DOMContentLoaded'" + }, + "value": "DOMContentLoaded" + }, + { + "type": "MemberExpression", + "start": 223, + "end": 239, + "loc": { + "start": { + "line": 12, + "column": 50 + }, + "end": { + "line": 12, + "column": 66 + } + }, + "object": { + "type": "ThisExpression", + "start": 223, + "end": 227, + "loc": { + "start": { + "line": 12, + "column": 50 + }, + "end": { + "line": 12, + "column": 54 + } + } + }, + "property": { + "type": "Identifier", + "start": 228, + "end": 239, + "loc": { + "start": { + "line": 12, + "column": 55 + }, + "end": { + "line": 12, + "column": 66 + }, + "identifierName": "onDOMLoaded" + }, + "name": "onDOMLoaded" + }, + "computed": false + } + ] + }, + "trailingComments": [ + { + "type": "CommentBlock", + "value": "*\r\n * Default input name\r\n * @type {string}\r\n ", + "start": 249, + "end": 311, + "loc": { + "start": { + "line": 14, + "column": 4 + }, + "end": { + "line": 17, + "column": 7 + } + } + } + ] + }, + { + "type": "ExpressionStatement", + "start": 317, + "end": 345, + "loc": { + "start": { + "line": 18, + "column": 4 + }, + "end": { + "line": 18, + "column": 32 + } + }, + "expression": { + "type": "AssignmentExpression", + "start": 317, + "end": 344, + "loc": { + "start": { + "line": 18, + "column": 4 + }, + "end": { + "line": 18, + "column": 31 + } + }, + "operator": "=", + "left": { + "type": "MemberExpression", + "start": 317, + "end": 332, + "loc": { + "start": { + "line": 18, + "column": 4 + }, + "end": { + "line": 18, + "column": 19 + } + }, + "object": { + "type": "ThisExpression", + "start": 317, + "end": 321, + "loc": { + "start": { + "line": 18, + "column": 4 + }, + "end": { + "line": 18, + "column": 8 + } + }, + "leadingComments": null + }, + "property": { + "type": "Identifier", + "start": 322, + "end": 332, + "loc": { + "start": { + "line": 18, + "column": 9 + }, + "end": { + "line": 18, + "column": 19 + }, + "identifierName": "layoutName" + }, + "name": "layoutName" + }, + "computed": false, + "leadingComments": null + }, + "right": { + "type": "StringLiteral", + "start": 335, + "end": 344, + "loc": { + "start": { + "line": 18, + "column": 22 + }, + "end": { + "line": 18, + "column": 31 + } + }, + "extra": { + "rawValue": "default", + "raw": "\"default\"" + }, + "value": "default" + }, + "leadingComments": null + }, + "leadingComments": [ + { + "type": "CommentBlock", + "value": "*\r\n * Default input name\r\n * @type {string}\r\n ", + "start": 249, + "end": 311, + "loc": { + "start": { + "line": 14, + "column": 4 + }, + "end": { + "line": 17, + "column": 7 + } + } + } + ] + } + ], + "directives": [], + "trailingComments": null + }, + "leadingComments": [ + { + "type": "CommentBlock", + "value": "*\r\n * Instantiates the demo class\r\n ", + "start": 109, + "end": 153, + "loc": { + "start": { + "line": 8, + "column": 2 + }, + "end": { + "line": 10, + "column": 5 + } + } + } + ], + "trailingComments": [ + { + "type": "CommentBlock", + "value": "*\r\n * Executed when the DOM is ready\r\n ", + "start": 356, + "end": 403, + "loc": { + "start": { + "line": 21, + "column": 2 + }, + "end": { + "line": 23, + "column": 5 + } + } + } + ] + }, + { + "type": "ClassProperty", + "start": 407, + "end": 1195, + "loc": { + "start": { + "line": 24, + "column": 2 + }, + "end": { + "line": 51, + "column": 3 + } + }, + "static": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 407, + "end": 418, + "loc": { + "start": { + "line": 24, + "column": 2 + }, + "end": { + "line": 24, + "column": 13 + }, + "identifierName": "onDOMLoaded" + }, + "name": "onDOMLoaded", + "leadingComments": null + }, + "value": { + "type": "ArrowFunctionExpression", + "start": 421, + "end": 1195, + "loc": { + "start": { + "line": 24, + "column": 16 + }, + "end": { + "line": 51, + "column": 3 + } + }, + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [], + "body": { + "type": "BlockStatement", + "start": 427, + "end": 1195, + "loc": { + "start": { + "line": 24, + "column": 22 + }, + "end": { + "line": 51, + "column": 3 + } + }, + "body": [ + { + "type": "ExpressionStatement", + "start": 499, + "end": 765, + "loc": { + "start": { + "line": 28, + "column": 4 + }, + "end": { + "line": 35, + "column": 7 + } + }, + "expression": { + "type": "AssignmentExpression", + "start": 499, + "end": 764, + "loc": { + "start": { + "line": 28, + "column": 4 + }, + "end": { + "line": 35, + "column": 6 + } + }, + "operator": "=", + "left": { + "type": "MemberExpression", + "start": 499, + "end": 512, + "loc": { + "start": { + "line": 28, + "column": 4 + }, + "end": { + "line": 28, + "column": 17 + } + }, + "object": { + "type": "ThisExpression", + "start": 499, + "end": 503, + "loc": { + "start": { + "line": 28, + "column": 4 + }, + "end": { + "line": 28, + "column": 8 + } + }, + "leadingComments": null + }, + "property": { + "type": "Identifier", + "start": 504, + "end": 512, + "loc": { + "start": { + "line": 28, + "column": 9 + }, + "end": { + "line": 28, + "column": 17 + }, + "identifierName": "keyboard" + }, + "name": "keyboard" + }, + "computed": false, + "leadingComments": null + }, + "right": { + "type": "NewExpression", + "start": 515, + "end": 764, + "loc": { + "start": { + "line": 28, + "column": 20 + }, + "end": { + "line": 35, + "column": 6 + } + }, + "callee": { + "type": "Identifier", + "start": 519, + "end": 527, + "loc": { + "start": { + "line": 28, + "column": 24 + }, + "end": { + "line": 28, + "column": 32 + }, + "identifierName": "Keyboard" + }, + "name": "Keyboard" + }, + "arguments": [ + { + "type": "ObjectExpression", + "start": 528, + "end": 763, + "loc": { + "start": { + "line": 28, + "column": 33 + }, + "end": { + "line": 35, + "column": 5 + } + }, + "properties": [ + { + "type": "ObjectProperty", + "start": 537, + "end": 548, + "loc": { + "start": { + "line": 29, + "column": 6 + }, + "end": { + "line": 29, + "column": 17 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 537, + "end": 542, + "loc": { + "start": { + "line": 29, + "column": 6 + }, + "end": { + "line": 29, + "column": 11 + }, + "identifierName": "debug" + }, + "name": "debug" + }, + "value": { + "type": "BooleanLiteral", + "start": 544, + "end": 548, + "loc": { + "start": { + "line": 29, + "column": 13 + }, + "end": { + "line": 29, + "column": 17 + } + }, + "value": true + } + }, + { + "type": "ObjectProperty", + "start": 557, + "end": 584, + "loc": { + "start": { + "line": 30, + "column": 6 + }, + "end": { + "line": 30, + "column": 33 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 557, + "end": 567, + "loc": { + "start": { + "line": 30, + "column": 6 + }, + "end": { + "line": 30, + "column": 16 + }, + "identifierName": "layoutName" + }, + "name": "layoutName" + }, + "value": { + "type": "MemberExpression", + "start": 569, + "end": 584, + "loc": { + "start": { + "line": 30, + "column": 18 + }, + "end": { + "line": 30, + "column": 33 + } + }, + "object": { + "type": "ThisExpression", + "start": 569, + "end": 573, + "loc": { + "start": { + "line": 30, + "column": 18 + }, + "end": { + "line": 30, + "column": 22 + } + } + }, + "property": { + "type": "Identifier", + "start": 574, + "end": 584, + "loc": { + "start": { + "line": 30, + "column": 23 + }, + "end": { + "line": 30, + "column": 33 + }, + "identifierName": "layoutName" + }, + "name": "layoutName" + }, + "computed": false + } + }, + { + "type": "ObjectProperty", + "start": 593, + "end": 632, + "loc": { + "start": { + "line": 31, + "column": 6 + }, + "end": { + "line": 31, + "column": 45 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 593, + "end": 601, + "loc": { + "start": { + "line": 31, + "column": 6 + }, + "end": { + "line": 31, + "column": 14 + }, + "identifierName": "onChange" + }, + "name": "onChange" + }, + "value": { + "type": "ArrowFunctionExpression", + "start": 603, + "end": 632, + "loc": { + "start": { + "line": 31, + "column": 16 + }, + "end": { + "line": 31, + "column": 45 + } + }, + "id": null, + "generator": false, + "expression": true, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 603, + "end": 608, + "loc": { + "start": { + "line": 31, + "column": 16 + }, + "end": { + "line": 31, + "column": 21 + }, + "identifierName": "input" + }, + "name": "input" + } + ], + "body": { + "type": "CallExpression", + "start": 612, + "end": 632, + "loc": { + "start": { + "line": 31, + "column": 25 + }, + "end": { + "line": 31, + "column": 45 + } + }, + "callee": { + "type": "MemberExpression", + "start": 612, + "end": 625, + "loc": { + "start": { + "line": 31, + "column": 25 + }, + "end": { + "line": 31, + "column": 38 + } + }, + "object": { + "type": "ThisExpression", + "start": 612, + "end": 616, + "loc": { + "start": { + "line": 31, + "column": 25 + }, + "end": { + "line": 31, + "column": 29 + } + } + }, + "property": { + "type": "Identifier", + "start": 617, + "end": 625, + "loc": { + "start": { + "line": 31, + "column": 30 + }, + "end": { + "line": 31, + "column": 38 + }, + "identifierName": "onChange" + }, + "name": "onChange" + }, + "computed": false + }, + "arguments": [ + { + "type": "Identifier", + "start": 626, + "end": 631, + "loc": { + "start": { + "line": 31, + "column": 39 + }, + "end": { + "line": 31, + "column": 44 + }, + "identifierName": "input" + }, + "name": "input" + } + ] + } + } + }, + { + "type": "ObjectProperty", + "start": 641, + "end": 686, + "loc": { + "start": { + "line": 32, + "column": 6 + }, + "end": { + "line": 32, + "column": 51 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 641, + "end": 651, + "loc": { + "start": { + "line": 32, + "column": 6 + }, + "end": { + "line": 32, + "column": 16 + }, + "identifierName": "onKeyPress" + }, + "name": "onKeyPress" + }, + "value": { + "type": "ArrowFunctionExpression", + "start": 653, + "end": 686, + "loc": { + "start": { + "line": 32, + "column": 18 + }, + "end": { + "line": 32, + "column": 51 + } + }, + "id": null, + "generator": false, + "expression": true, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 653, + "end": 659, + "loc": { + "start": { + "line": 32, + "column": 18 + }, + "end": { + "line": 32, + "column": 24 + }, + "identifierName": "button" + }, + "name": "button" + } + ], + "body": { + "type": "CallExpression", + "start": 663, + "end": 686, + "loc": { + "start": { + "line": 32, + "column": 28 + }, + "end": { + "line": 32, + "column": 51 + } + }, + "callee": { + "type": "MemberExpression", + "start": 663, + "end": 678, + "loc": { + "start": { + "line": 32, + "column": 28 + }, + "end": { + "line": 32, + "column": 43 + } + }, + "object": { + "type": "ThisExpression", + "start": 663, + "end": 667, + "loc": { + "start": { + "line": 32, + "column": 28 + }, + "end": { + "line": 32, + "column": 32 + } + } + }, + "property": { + "type": "Identifier", + "start": 668, + "end": 678, + "loc": { + "start": { + "line": 32, + "column": 33 + }, + "end": { + "line": 32, + "column": 43 + }, + "identifierName": "onKeyPress" + }, + "name": "onKeyPress" + }, + "computed": false + }, + "arguments": [ + { + "type": "Identifier", + "start": 679, + "end": 685, + "loc": { + "start": { + "line": 32, + "column": 44 + }, + "end": { + "line": 32, + "column": 50 + }, + "identifierName": "button" + }, + "name": "button" + } + ] + } + } + }, + { + "type": "ObjectProperty", + "start": 695, + "end": 715, + "loc": { + "start": { + "line": 33, + "column": 6 + }, + "end": { + "line": 33, + "column": 26 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 695, + "end": 709, + "loc": { + "start": { + "line": 33, + "column": 6 + }, + "end": { + "line": 33, + "column": 20 + }, + "identifierName": "newLineOnEnter" + }, + "name": "newLineOnEnter" + }, + "value": { + "type": "BooleanLiteral", + "start": 711, + "end": 715, + "loc": { + "start": { + "line": 33, + "column": 22 + }, + "end": { + "line": 33, + "column": 26 + } + }, + "value": true + } + }, + { + "type": "ObjectProperty", + "start": 724, + "end": 755, + "loc": { + "start": { + "line": 34, + "column": 6 + }, + "end": { + "line": 34, + "column": 37 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 724, + "end": 749, + "loc": { + "start": { + "line": 34, + "column": 6 + }, + "end": { + "line": 34, + "column": 31 + }, + "identifierName": "physicalKeyboardHighlight" + }, + "name": "physicalKeyboardHighlight" + }, + "value": { + "type": "BooleanLiteral", + "start": 751, + "end": 755, + "loc": { + "start": { + "line": 34, + "column": 33 + }, + "end": { + "line": 34, + "column": 37 + } + }, + "value": true + } + } + ] + } + ] + }, + "leadingComments": null + }, + "leadingComments": [ + { + "type": "CommentBlock", + "value": "*\r\n * Creates a new simple-keyboard instance\r\n ", + "start": 434, + "end": 493, + "loc": { + "start": { + "line": 25, + "column": 4 + }, + "end": { + "line": 27, + "column": 7 + } + } + } + ], + "trailingComments": [ + { + "type": "CommentBlock", + "value": "*\r\n * Adding preview (demo only)\r\n ", + "start": 775, + "end": 822, + "loc": { + "start": { + "line": 37, + "column": 4 + }, + "end": { + "line": 39, + "column": 7 + } + } + } + ] + }, + { + "type": "ExpressionStatement", + "start": 828, + "end": 1013, + "loc": { + "start": { + "line": 40, + "column": 4 + }, + "end": { + "line": 44, + "column": 7 + } + }, + "expression": { + "type": "CallExpression", + "start": 828, + "end": 1012, + "loc": { + "start": { + "line": 40, + "column": 4 + }, + "end": { + "line": 44, + "column": 6 + } + }, + "callee": { + "type": "MemberExpression", + "start": 828, + "end": 889, + "loc": { + "start": { + "line": 40, + "column": 4 + }, + "end": { + "line": 40, + "column": 65 + } + }, + "object": { + "type": "CallExpression", + "start": 828, + "end": 870, + "loc": { + "start": { + "line": 40, + "column": 4 + }, + "end": { + "line": 40, + "column": 46 + } + }, + "callee": { + "type": "MemberExpression", + "start": 828, + "end": 850, + "loc": { + "start": { + "line": 40, + "column": 4 + }, + "end": { + "line": 40, + "column": 26 + } + }, + "object": { + "type": "Identifier", + "start": 828, + "end": 836, + "loc": { + "start": { + "line": 40, + "column": 4 + }, + "end": { + "line": 40, + "column": 12 + }, + "identifierName": "document" + }, + "name": "document", + "leadingComments": null + }, + "property": { + "type": "Identifier", + "start": 837, + "end": 850, + "loc": { + "start": { + "line": 40, + "column": 13 + }, + "end": { + "line": 40, + "column": 26 + }, + "identifierName": "querySelector" + }, + "name": "querySelector" + }, + "computed": false, + "leadingComments": null + }, + "arguments": [ + { + "type": "StringLiteral", + "start": 851, + "end": 869, + "loc": { + "start": { + "line": 40, + "column": 27 + }, + "end": { + "line": 40, + "column": 45 + } + }, + "extra": { + "rawValue": ".simple-keyboard", + "raw": "'.simple-keyboard'" + }, + "value": ".simple-keyboard" + } + ], + "leadingComments": null + }, + "property": { + "type": "Identifier", + "start": 871, + "end": 889, + "loc": { + "start": { + "line": 40, + "column": 47 + }, + "end": { + "line": 40, + "column": 65 + }, + "identifierName": "insertAdjacentHTML" + }, + "name": "insertAdjacentHTML" + }, + "computed": false, + "leadingComments": null + }, + "arguments": [ + { + "type": "StringLiteral", + "start": 890, + "end": 903, + "loc": { + "start": { + "line": 40, + "column": 66 + }, + "end": { + "line": 40, + "column": 79 + } + }, + "extra": { + "rawValue": "beforebegin", + "raw": "'beforebegin'" + }, + "value": "beforebegin" + }, + { + "type": "TemplateLiteral", + "start": 905, + "end": 1011, + "loc": { + "start": { + "line": 40, + "column": 81 + }, + "end": { + "line": 44, + "column": 5 + } + }, + "expressions": [], + "quasis": [ + { + "type": "TemplateElement", + "start": 906, + "end": 1010, + "loc": { + "start": { + "line": 40, + "column": 82 + }, + "end": { + "line": 44, + "column": 4 + } + }, + "value": { + "raw": "\n
\n \n
\n ", + "cooked": "\n
\n \n
\n " + }, + "tail": true + } + ] + } + ], + "leadingComments": null + }, + "leadingComments": [ + { + "type": "CommentBlock", + "value": "*\r\n * Adding preview (demo only)\r\n ", + "start": 775, + "end": 822, + "loc": { + "start": { + "line": 37, + "column": 4 + }, + "end": { + "line": 39, + "column": 7 + } + } + } + ] + }, + { + "type": "ExpressionStatement", + "start": 1023, + "end": 1155, + "loc": { + "start": { + "line": 46, + "column": 4 + }, + "end": { + "line": 48, + "column": 7 + } + }, + "expression": { + "type": "CallExpression", + "start": 1023, + "end": 1154, + "loc": { + "start": { + "line": 46, + "column": 4 + }, + "end": { + "line": 48, + "column": 6 + } + }, + "callee": { + "type": "MemberExpression", + "start": 1023, + "end": 1072, + "loc": { + "start": { + "line": 46, + "column": 4 + }, + "end": { + "line": 46, + "column": 53 + } + }, + "object": { + "type": "CallExpression", + "start": 1023, + "end": 1055, + "loc": { + "start": { + "line": 46, + "column": 4 + }, + "end": { + "line": 46, + "column": 36 + } + }, + "callee": { + "type": "MemberExpression", + "start": 1023, + "end": 1045, + "loc": { + "start": { + "line": 46, + "column": 4 + }, + "end": { + "line": 46, + "column": 26 + } + }, + "object": { + "type": "Identifier", + "start": 1023, + "end": 1031, + "loc": { + "start": { + "line": 46, + "column": 4 + }, + "end": { + "line": 46, + "column": 12 + }, + "identifierName": "document" + }, + "name": "document" + }, + "property": { + "type": "Identifier", + "start": 1032, + "end": 1045, + "loc": { + "start": { + "line": 46, + "column": 13 + }, + "end": { + "line": 46, + "column": 26 + }, + "identifierName": "querySelector" + }, + "name": "querySelector" + }, + "computed": false + }, + "arguments": [ + { + "type": "StringLiteral", + "start": 1046, + "end": 1054, + "loc": { + "start": { + "line": 46, + "column": 27 + }, + "end": { + "line": 46, + "column": 35 + } + }, + "extra": { + "rawValue": ".input", + "raw": "'.input'" + }, + "value": ".input" + } + ] + }, + "property": { + "type": "Identifier", + "start": 1056, + "end": 1072, + "loc": { + "start": { + "line": 46, + "column": 37 + }, + "end": { + "line": 46, + "column": 53 + }, + "identifierName": "addEventListener" + }, + "name": "addEventListener" + }, + "computed": false + }, + "arguments": [ + { + "type": "StringLiteral", + "start": 1073, + "end": 1081, + "loc": { + "start": { + "line": 46, + "column": 54 + }, + "end": { + "line": 46, + "column": 62 + } + }, + "extra": { + "rawValue": "change", + "raw": "'change'" + }, + "value": "change" + }, + { + "type": "ArrowFunctionExpression", + "start": 1083, + "end": 1153, + "loc": { + "start": { + "line": 46, + "column": 64 + }, + "end": { + "line": 48, + "column": 5 + } + }, + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 1084, + "end": 1089, + "loc": { + "start": { + "line": 46, + "column": 65 + }, + "end": { + "line": 46, + "column": 70 + }, + "identifierName": "event" + }, + "name": "event" + } + ], + "body": { + "type": "BlockStatement", + "start": 1094, + "end": 1153, + "loc": { + "start": { + "line": 46, + "column": 75 + }, + "end": { + "line": 48, + "column": 5 + } + }, + "body": [ + { + "type": "ExpressionStatement", + "start": 1103, + "end": 1146, + "loc": { + "start": { + "line": 47, + "column": 6 + }, + "end": { + "line": 47, + "column": 49 + } + }, + "expression": { + "type": "CallExpression", + "start": 1103, + "end": 1145, + "loc": { + "start": { + "line": 47, + "column": 6 + }, + "end": { + "line": 47, + "column": 48 + } + }, + "callee": { + "type": "MemberExpression", + "start": 1103, + "end": 1125, + "loc": { + "start": { + "line": 47, + "column": 6 + }, + "end": { + "line": 47, + "column": 28 + } + }, + "object": { + "type": "MemberExpression", + "start": 1103, + "end": 1116, + "loc": { + "start": { + "line": 47, + "column": 6 + }, + "end": { + "line": 47, + "column": 19 + } + }, + "object": { + "type": "ThisExpression", + "start": 1103, + "end": 1107, + "loc": { + "start": { + "line": 47, + "column": 6 + }, + "end": { + "line": 47, + "column": 10 + } + } + }, + "property": { + "type": "Identifier", + "start": 1108, + "end": 1116, + "loc": { + "start": { + "line": 47, + "column": 11 + }, + "end": { + "line": 47, + "column": 19 + }, + "identifierName": "keyboard" + }, + "name": "keyboard" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 1117, + "end": 1125, + "loc": { + "start": { + "line": 47, + "column": 20 + }, + "end": { + "line": 47, + "column": 28 + }, + "identifierName": "setInput" + }, + "name": "setInput" + }, + "computed": false + }, + "arguments": [ + { + "type": "MemberExpression", + "start": 1126, + "end": 1144, + "loc": { + "start": { + "line": 47, + "column": 29 + }, + "end": { + "line": 47, + "column": 47 + } + }, + "object": { + "type": "MemberExpression", + "start": 1126, + "end": 1138, + "loc": { + "start": { + "line": 47, + "column": 29 + }, + "end": { + "line": 47, + "column": 41 + } + }, + "object": { + "type": "Identifier", + "start": 1126, + "end": 1131, + "loc": { + "start": { + "line": 47, + "column": 29 + }, + "end": { + "line": 47, + "column": 34 + }, + "identifierName": "event" + }, + "name": "event" + }, + "property": { + "type": "Identifier", + "start": 1132, + "end": 1138, + "loc": { + "start": { + "line": 47, + "column": 35 + }, + "end": { + "line": 47, + "column": 41 + }, + "identifierName": "target" + }, + "name": "target" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 1139, + "end": 1144, + "loc": { + "start": { + "line": 47, + "column": 42 + }, + "end": { + "line": 47, + "column": 47 + }, + "identifierName": "value" + }, + "name": "value" + }, + "computed": false + } + ] + } + } + ], + "directives": [] + } + } + ] + } + }, + { + "type": "ExpressionStatement", + "start": 1163, + "end": 1190, + "loc": { + "start": { + "line": 50, + "column": 4 + }, + "end": { + "line": 50, + "column": 31 + } + }, + "expression": { + "type": "CallExpression", + "start": 1163, + "end": 1189, + "loc": { + "start": { + "line": 50, + "column": 4 + }, + "end": { + "line": 50, + "column": 30 + } + }, + "callee": { + "type": "MemberExpression", + "start": 1163, + "end": 1174, + "loc": { + "start": { + "line": 50, + "column": 4 + }, + "end": { + "line": 50, + "column": 15 + } + }, + "object": { + "type": "Identifier", + "start": 1163, + "end": 1170, + "loc": { + "start": { + "line": 50, + "column": 4 + }, + "end": { + "line": 50, + "column": 11 + }, + "identifierName": "console" + }, + "name": "console" + }, + "property": { + "type": "Identifier", + "start": 1171, + "end": 1174, + "loc": { + "start": { + "line": 50, + "column": 12 + }, + "end": { + "line": 50, + "column": 15 + }, + "identifierName": "log" + }, + "name": "log" + }, + "computed": false + }, + "arguments": [ + { + "type": "MemberExpression", + "start": 1175, + "end": 1188, + "loc": { + "start": { + "line": 50, + "column": 16 + }, + "end": { + "line": 50, + "column": 29 + } + }, + "object": { + "type": "ThisExpression", + "start": 1175, + "end": 1179, + "loc": { + "start": { + "line": 50, + "column": 16 + }, + "end": { + "line": 50, + "column": 20 + } + } + }, + "property": { + "type": "Identifier", + "start": 1180, + "end": 1188, + "loc": { + "start": { + "line": 50, + "column": 21 + }, + "end": { + "line": 50, + "column": 29 + }, + "identifierName": "keyboard" + }, + "name": "keyboard" + }, + "computed": false + } + ] + } + } + ], + "directives": [], + "trailingComments": null + }, + "trailingComments": null + }, + "leadingComments": [ + { + "type": "CommentBlock", + "value": "*\r\n * Executed when the DOM is ready\r\n ", + "start": 356, + "end": 403, + "loc": { + "start": { + "line": 21, + "column": 2 + }, + "end": { + "line": 23, + "column": 5 + } + } + } + ], + "trailingComments": [ + { + "type": "CommentBlock", + "value": "*\r\n * \r\n ", + "start": 1201, + "end": 1218, + "loc": { + "start": { + "line": 53, + "column": 2 + }, + "end": { + "line": 55, + "column": 5 + } + } + } + ] + }, + { + "type": "ClassProperty", + "start": 1222, + "end": 1458, + "loc": { + "start": { + "line": 56, + "column": 2 + }, + "end": { + "line": 63, + "column": 3 + } + }, + "static": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 1222, + "end": 1239, + "loc": { + "start": { + "line": 56, + "column": 2 + }, + "end": { + "line": 56, + "column": 19 + }, + "identifierName": "handleShiftButton" + }, + "name": "handleShiftButton", + "leadingComments": null + }, + "value": { + "type": "ArrowFunctionExpression", + "start": 1242, + "end": 1458, + "loc": { + "start": { + "line": 56, + "column": 22 + }, + "end": { + "line": 63, + "column": 3 + } + }, + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [], + "body": { + "type": "BlockStatement", + "start": 1248, + "end": 1458, + "loc": { + "start": { + "line": 56, + "column": 28 + }, + "end": { + "line": 63, + "column": 3 + } + }, + "body": [ + { + "type": "VariableDeclaration", + "start": 1255, + "end": 1288, + "loc": { + "start": { + "line": 57, + "column": 4 + }, + "end": { + "line": 57, + "column": 37 + } + }, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 1259, + "end": 1287, + "loc": { + "start": { + "line": 57, + "column": 8 + }, + "end": { + "line": 57, + "column": 36 + } + }, + "id": { + "type": "Identifier", + "start": 1259, + "end": 1269, + "loc": { + "start": { + "line": 57, + "column": 8 + }, + "end": { + "line": 57, + "column": 18 + }, + "identifierName": "layoutName" + }, + "name": "layoutName" + }, + "init": { + "type": "MemberExpression", + "start": 1272, + "end": 1287, + "loc": { + "start": { + "line": 57, + "column": 21 + }, + "end": { + "line": 57, + "column": 36 + } + }, + "object": { + "type": "ThisExpression", + "start": 1272, + "end": 1276, + "loc": { + "start": { + "line": 57, + "column": 21 + }, + "end": { + "line": 57, + "column": 25 + } + } + }, + "property": { + "type": "Identifier", + "start": 1277, + "end": 1287, + "loc": { + "start": { + "line": 57, + "column": 26 + }, + "end": { + "line": 57, + "column": 36 + }, + "identifierName": "layoutName" + }, + "name": "layoutName" + }, + "computed": false + } + } + ], + "kind": "let" + }, + { + "type": "VariableDeclaration", + "start": 1294, + "end": 1377, + "loc": { + "start": { + "line": 58, + "column": 4 + }, + "end": { + "line": 58, + "column": 87 + } + }, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 1298, + "end": 1376, + "loc": { + "start": { + "line": 58, + "column": 8 + }, + "end": { + "line": 58, + "column": 86 + } + }, + "id": { + "type": "Identifier", + "start": 1298, + "end": 1309, + "loc": { + "start": { + "line": 58, + "column": 8 + }, + "end": { + "line": 58, + "column": 19 + }, + "identifierName": "shiftToggle" + }, + "name": "shiftToggle" + }, + "init": { + "type": "AssignmentExpression", + "start": 1312, + "end": 1376, + "loc": { + "start": { + "line": 58, + "column": 22 + }, + "end": { + "line": 58, + "column": 86 + } + }, + "operator": "=", + "left": { + "type": "MemberExpression", + "start": 1312, + "end": 1327, + "loc": { + "start": { + "line": 58, + "column": 22 + }, + "end": { + "line": 58, + "column": 37 + } + }, + "object": { + "type": "ThisExpression", + "start": 1312, + "end": 1316, + "loc": { + "start": { + "line": 58, + "column": 22 + }, + "end": { + "line": 58, + "column": 26 + } + } + }, + "property": { + "type": "Identifier", + "start": 1317, + "end": 1327, + "loc": { + "start": { + "line": 58, + "column": 27 + }, + "end": { + "line": 58, + "column": 37 + }, + "identifierName": "layoutName" + }, + "name": "layoutName" + }, + "computed": false + }, + "right": { + "type": "ConditionalExpression", + "start": 1330, + "end": 1376, + "loc": { + "start": { + "line": 58, + "column": 40 + }, + "end": { + "line": 58, + "column": 86 + } + }, + "test": { + "type": "BinaryExpression", + "start": 1330, + "end": 1354, + "loc": { + "start": { + "line": 58, + "column": 40 + }, + "end": { + "line": 58, + "column": 64 + } + }, + "left": { + "type": "Identifier", + "start": 1330, + "end": 1340, + "loc": { + "start": { + "line": 58, + "column": 40 + }, + "end": { + "line": 58, + "column": 50 + }, + "identifierName": "layoutName" + }, + "name": "layoutName" + }, + "operator": "===", + "right": { + "type": "StringLiteral", + "start": 1345, + "end": 1354, + "loc": { + "start": { + "line": 58, + "column": 55 + }, + "end": { + "line": 58, + "column": 64 + } + }, + "extra": { + "rawValue": "default", + "raw": "\"default\"" + }, + "value": "default" + } + }, + "consequent": { + "type": "StringLiteral", + "start": 1357, + "end": 1364, + "loc": { + "start": { + "line": 58, + "column": 67 + }, + "end": { + "line": 58, + "column": 74 + } + }, + "extra": { + "rawValue": "shift", + "raw": "\"shift\"" + }, + "value": "shift" + }, + "alternate": { + "type": "StringLiteral", + "start": 1367, + "end": 1376, + "loc": { + "start": { + "line": 58, + "column": 77 + }, + "end": { + "line": 58, + "column": 86 + } + }, + "extra": { + "rawValue": "default", + "raw": "\"default\"" + }, + "value": "default" + } + } + } + } + ], + "kind": "let" + }, + { + "type": "ExpressionStatement", + "start": 1387, + "end": 1453, + "loc": { + "start": { + "line": 60, + "column": 4 + }, + "end": { + "line": 62, + "column": 7 + } + }, + "expression": { + "type": "CallExpression", + "start": 1387, + "end": 1452, + "loc": { + "start": { + "line": 60, + "column": 4 + }, + "end": { + "line": 62, + "column": 6 + } + }, + "callee": { + "type": "MemberExpression", + "start": 1387, + "end": 1411, + "loc": { + "start": { + "line": 60, + "column": 4 + }, + "end": { + "line": 60, + "column": 28 + } + }, + "object": { + "type": "MemberExpression", + "start": 1387, + "end": 1400, + "loc": { + "start": { + "line": 60, + "column": 4 + }, + "end": { + "line": 60, + "column": 17 + } + }, + "object": { + "type": "ThisExpression", + "start": 1387, + "end": 1391, + "loc": { + "start": { + "line": 60, + "column": 4 + }, + "end": { + "line": 60, + "column": 8 + } + } + }, + "property": { + "type": "Identifier", + "start": 1392, + "end": 1400, + "loc": { + "start": { + "line": 60, + "column": 9 + }, + "end": { + "line": 60, + "column": 17 + }, + "identifierName": "keyboard" + }, + "name": "keyboard" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 1401, + "end": 1411, + "loc": { + "start": { + "line": 60, + "column": 18 + }, + "end": { + "line": 60, + "column": 28 + }, + "identifierName": "setOptions" + }, + "name": "setOptions" + }, + "computed": false + }, + "arguments": [ + { + "type": "ObjectExpression", + "start": 1412, + "end": 1451, + "loc": { + "start": { + "line": 60, + "column": 29 + }, + "end": { + "line": 62, + "column": 5 + } + }, + "properties": [ + { + "type": "ObjectProperty", + "start": 1421, + "end": 1444, + "loc": { + "start": { + "line": 61, + "column": 6 + }, + "end": { + "line": 61, + "column": 29 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 1421, + "end": 1431, + "loc": { + "start": { + "line": 61, + "column": 6 + }, + "end": { + "line": 61, + "column": 16 + }, + "identifierName": "layoutName" + }, + "name": "layoutName" + }, + "value": { + "type": "Identifier", + "start": 1433, + "end": 1444, + "loc": { + "start": { + "line": 61, + "column": 18 + }, + "end": { + "line": 61, + "column": 29 + }, + "identifierName": "shiftToggle" + }, + "name": "shiftToggle" + } + } + ] + } + ] + } + } + ], + "directives": [], + "trailingComments": null + }, + "trailingComments": null + }, + "leadingComments": [ + { + "type": "CommentBlock", + "value": "*\r\n * \r\n ", + "start": 1201, + "end": 1218, + "loc": { + "start": { + "line": 53, + "column": 2 + }, + "end": { + "line": 55, + "column": 5 + } + } + } + ], + "trailingComments": [ + { + "type": "CommentBlock", + "value": "*\r\n * Called when simple-keyboard input has changed\r\n ", + "start": 1464, + "end": 1526, + "loc": { + "start": { + "line": 65, + "column": 2 + }, + "end": { + "line": 67, + "column": 5 + } + } + } + ] + }, + { + "type": "ClassProperty", + "start": 1530, + "end": 1609, + "loc": { + "start": { + "line": 68, + "column": 2 + }, + "end": { + "line": 70, + "column": 3 + } + }, + "static": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 1530, + "end": 1538, + "loc": { + "start": { + "line": 68, + "column": 2 + }, + "end": { + "line": 68, + "column": 10 + }, + "identifierName": "onChange" + }, + "name": "onChange", + "leadingComments": null + }, + "value": { + "type": "ArrowFunctionExpression", + "start": 1541, + "end": 1609, + "loc": { + "start": { + "line": 68, + "column": 13 + }, + "end": { + "line": 70, + "column": 3 + } + }, + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 1541, + "end": 1546, + "loc": { + "start": { + "line": 68, + "column": 13 + }, + "end": { + "line": 68, + "column": 18 + }, + "identifierName": "input" + }, + "name": "input" + } + ], + "body": { + "type": "BlockStatement", + "start": 1550, + "end": 1609, + "loc": { + "start": { + "line": 68, + "column": 22 + }, + "end": { + "line": 70, + "column": 3 + } + }, + "body": [ + { + "type": "ExpressionStatement", + "start": 1557, + "end": 1604, + "loc": { + "start": { + "line": 69, + "column": 4 + }, + "end": { + "line": 69, + "column": 51 + } + }, + "expression": { + "type": "AssignmentExpression", + "start": 1557, + "end": 1603, + "loc": { + "start": { + "line": 69, + "column": 4 + }, + "end": { + "line": 69, + "column": 50 + } + }, + "operator": "=", + "left": { + "type": "MemberExpression", + "start": 1557, + "end": 1595, + "loc": { + "start": { + "line": 69, + "column": 4 + }, + "end": { + "line": 69, + "column": 42 + } + }, + "object": { + "type": "CallExpression", + "start": 1557, + "end": 1589, + "loc": { + "start": { + "line": 69, + "column": 4 + }, + "end": { + "line": 69, + "column": 36 + } + }, + "callee": { + "type": "MemberExpression", + "start": 1557, + "end": 1579, + "loc": { + "start": { + "line": 69, + "column": 4 + }, + "end": { + "line": 69, + "column": 26 + } + }, + "object": { + "type": "Identifier", + "start": 1557, + "end": 1565, + "loc": { + "start": { + "line": 69, + "column": 4 + }, + "end": { + "line": 69, + "column": 12 + }, + "identifierName": "document" + }, + "name": "document" + }, + "property": { + "type": "Identifier", + "start": 1566, + "end": 1579, + "loc": { + "start": { + "line": 69, + "column": 13 + }, + "end": { + "line": 69, + "column": 26 + }, + "identifierName": "querySelector" + }, + "name": "querySelector" + }, + "computed": false + }, + "arguments": [ + { + "type": "StringLiteral", + "start": 1580, + "end": 1588, + "loc": { + "start": { + "line": 69, + "column": 27 + }, + "end": { + "line": 69, + "column": 35 + } + }, + "extra": { + "rawValue": ".input", + "raw": "'.input'" + }, + "value": ".input" + } + ] + }, + "property": { + "type": "Identifier", + "start": 1590, + "end": 1595, + "loc": { + "start": { + "line": 69, + "column": 37 + }, + "end": { + "line": 69, + "column": 42 + }, + "identifierName": "value" + }, + "name": "value" + }, + "computed": false + }, + "right": { + "type": "Identifier", + "start": 1598, + "end": 1603, + "loc": { + "start": { + "line": 69, + "column": 45 + }, + "end": { + "line": 69, + "column": 50 + }, + "identifierName": "input" + }, + "name": "input" + } + } + } + ], + "directives": [], + "trailingComments": null + }, + "trailingComments": null + }, + "leadingComments": [ + { + "type": "CommentBlock", + "value": "*\r\n * Called when simple-keyboard input has changed\r\n ", + "start": 1464, + "end": 1526, + "loc": { + "start": { + "line": 65, + "column": 2 + }, + "end": { + "line": 67, + "column": 5 + } + } + } + ], + "trailingComments": [ + { + "type": "CommentBlock", + "value": "*\r\n * Called when a simple-keyboard key is pressed\r\n ", + "start": 1615, + "end": 1676, + "loc": { + "start": { + "line": 72, + "column": 2 + }, + "end": { + "line": 74, + "column": 5 + } + } + } + ] + }, + { + "type": "ClassProperty", + "start": 1680, + "end": 1899, + "loc": { + "start": { + "line": 75, + "column": 2 + }, + "end": { + "line": 83, + "column": 3 + } + }, + "static": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 1680, + "end": 1690, + "loc": { + "start": { + "line": 75, + "column": 2 + }, + "end": { + "line": 75, + "column": 12 + }, + "identifierName": "onKeyPress" + }, + "name": "onKeyPress", + "leadingComments": null + }, + "value": { + "type": "ArrowFunctionExpression", + "start": 1693, + "end": 1899, + "loc": { + "start": { + "line": 75, + "column": 15 + }, + "end": { + "line": 83, + "column": 3 + } + }, + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 1693, + "end": 1699, + "loc": { + "start": { + "line": 75, + "column": 15 + }, + "end": { + "line": 75, + "column": 21 + }, + "identifierName": "button" + }, + "name": "button" + } + ], + "body": { + "type": "BlockStatement", + "start": 1703, + "end": 1899, + "loc": { + "start": { + "line": 75, + "column": 25 + }, + "end": { + "line": 83, + "column": 3 + } + }, + "body": [ + { + "type": "ExpressionStatement", + "start": 1710, + "end": 1748, + "loc": { + "start": { + "line": 76, + "column": 4 + }, + "end": { + "line": 76, + "column": 42 + } + }, + "expression": { + "type": "CallExpression", + "start": 1710, + "end": 1747, + "loc": { + "start": { + "line": 76, + "column": 4 + }, + "end": { + "line": 76, + "column": 41 + } + }, + "callee": { + "type": "MemberExpression", + "start": 1710, + "end": 1721, + "loc": { + "start": { + "line": 76, + "column": 4 + }, + "end": { + "line": 76, + "column": 15 + } + }, + "object": { + "type": "Identifier", + "start": 1710, + "end": 1717, + "loc": { + "start": { + "line": 76, + "column": 4 + }, + "end": { + "line": 76, + "column": 11 + }, + "identifierName": "console" + }, + "name": "console" + }, + "property": { + "type": "Identifier", + "start": 1718, + "end": 1721, + "loc": { + "start": { + "line": 76, + "column": 12 + }, + "end": { + "line": 76, + "column": 15 + }, + "identifierName": "log" + }, + "name": "log" + }, + "computed": false + }, + "arguments": [ + { + "type": "StringLiteral", + "start": 1722, + "end": 1738, + "loc": { + "start": { + "line": 76, + "column": 16 + }, + "end": { + "line": 76, + "column": 32 + } + }, + "extra": { + "rawValue": "Button pressed", + "raw": "\"Button pressed\"" + }, + "value": "Button pressed" + }, + { + "type": "Identifier", + "start": 1740, + "end": 1746, + "loc": { + "start": { + "line": 76, + "column": 34 + }, + "end": { + "line": 76, + "column": 40 + }, + "identifierName": "button" + }, + "name": "button" + } + ] + }, + "trailingComments": [ + { + "type": "CommentBlock", + "value": "*\r\n * Shift functionality\r\n ", + "start": 1760, + "end": 1804, + "loc": { + "start": { + "line": 78, + "column": 6 + }, + "end": { + "line": 80, + "column": 9 + } + } + } + ] + }, + { + "type": "IfStatement", + "start": 1812, + "end": 1894, + "loc": { + "start": { + "line": 81, + "column": 6 + }, + "end": { + "line": 82, + "column": 33 + } + }, + "test": { + "type": "LogicalExpression", + "start": 1815, + "end": 1858, + "loc": { + "start": { + "line": 81, + "column": 9 + }, + "end": { + "line": 81, + "column": 52 + } + }, + "left": { + "type": "BinaryExpression", + "start": 1815, + "end": 1834, + "loc": { + "start": { + "line": 81, + "column": 9 + }, + "end": { + "line": 81, + "column": 28 + } + }, + "left": { + "type": "Identifier", + "start": 1815, + "end": 1821, + "loc": { + "start": { + "line": 81, + "column": 9 + }, + "end": { + "line": 81, + "column": 15 + }, + "identifierName": "button" + }, + "name": "button", + "leadingComments": null + }, + "operator": "===", + "right": { + "type": "StringLiteral", + "start": 1826, + "end": 1834, + "loc": { + "start": { + "line": 81, + "column": 20 + }, + "end": { + "line": 81, + "column": 28 + } + }, + "extra": { + "rawValue": "{lock}", + "raw": "\"{lock}\"" + }, + "value": "{lock}" + }, + "leadingComments": null + }, + "operator": "||", + "right": { + "type": "BinaryExpression", + "start": 1838, + "end": 1858, + "loc": { + "start": { + "line": 81, + "column": 32 + }, + "end": { + "line": 81, + "column": 52 + } + }, + "left": { + "type": "Identifier", + "start": 1838, + "end": 1844, + "loc": { + "start": { + "line": 81, + "column": 32 + }, + "end": { + "line": 81, + "column": 38 + }, + "identifierName": "button" + }, + "name": "button" + }, + "operator": "===", + "right": { + "type": "StringLiteral", + "start": 1849, + "end": 1858, + "loc": { + "start": { + "line": 81, + "column": 43 + }, + "end": { + "line": 81, + "column": 52 + } + }, + "extra": { + "rawValue": "{shift}", + "raw": "\"{shift}\"" + }, + "value": "{shift}" + } + }, + "leadingComments": null + }, + "consequent": { + "type": "ExpressionStatement", + "start": 1869, + "end": 1894, + "loc": { + "start": { + "line": 82, + "column": 8 + }, + "end": { + "line": 82, + "column": 33 + } + }, + "expression": { + "type": "CallExpression", + "start": 1869, + "end": 1893, + "loc": { + "start": { + "line": 82, + "column": 8 + }, + "end": { + "line": 82, + "column": 32 + } + }, + "callee": { + "type": "MemberExpression", + "start": 1869, + "end": 1891, + "loc": { + "start": { + "line": 82, + "column": 8 + }, + "end": { + "line": 82, + "column": 30 + } + }, + "object": { + "type": "ThisExpression", + "start": 1869, + "end": 1873, + "loc": { + "start": { + "line": 82, + "column": 8 + }, + "end": { + "line": 82, + "column": 12 + } + } + }, + "property": { + "type": "Identifier", + "start": 1874, + "end": 1891, + "loc": { + "start": { + "line": 82, + "column": 13 + }, + "end": { + "line": 82, + "column": 30 + }, + "identifierName": "handleShiftButton" + }, + "name": "handleShiftButton" + }, + "computed": false + }, + "arguments": [] + } + }, + "alternate": null, + "leadingComments": [ + { + "type": "CommentBlock", + "value": "*\r\n * Shift functionality\r\n ", + "start": 1760, + "end": 1804, + "loc": { + "start": { + "line": 78, + "column": 6 + }, + "end": { + "line": 80, + "column": 9 + } + } + } + ] + } + ], + "directives": [] + } + }, + "leadingComments": [ + { + "type": "CommentBlock", + "value": "*\r\n * Called when a simple-keyboard key is pressed\r\n ", + "start": 1615, + "end": 1676, + "loc": { + "start": { + "line": 72, + "column": 2 + }, + "end": { + "line": 74, + "column": 5 + } + } + } + ] + } + ] + }, + "leadingComments": [ + { + "type": "CommentBlock", + "value": "*\r\n * simple-keyboard demo\r\n ", + "start": 59, + "end": 92, + "loc": { + "start": { + "line": 4, + "column": 0 + }, + "end": { + "line": 6, + "column": 3 + } + } + } + ], + "__PseudoExport__": false, + "trailingComments": [] + }, + "leadingComments": null + } + ], + "directives": [] + }, + "comments": [ + { + "type": "CommentBlock", + "value": "*\r\n * simple-keyboard demo\r\n ", + "start": 59, + "end": 92, + "loc": { + "start": { + "line": 4, + "column": 0 + }, + "end": { + "line": 6, + "column": 3 + } + } + }, + { + "type": "CommentBlock", + "value": "*\r\n * Instantiates the demo class\r\n ", + "start": 109, + "end": 153, + "loc": { + "start": { + "line": 8, + "column": 2 + }, + "end": { + "line": 10, + "column": 5 + } + } + }, + { + "type": "CommentBlock", + "value": "*\r\n * Default input name\r\n * @type {string}\r\n ", + "start": 249, + "end": 311, + "loc": { + "start": { + "line": 14, + "column": 4 + }, + "end": { + "line": 17, + "column": 7 + } + } + }, + { + "type": "CommentBlock", + "value": "*\r\n * Executed when the DOM is ready\r\n ", + "start": 356, + "end": 403, + "loc": { + "start": { + "line": 21, + "column": 2 + }, + "end": { + "line": 23, + "column": 5 + } + } + }, + { + "type": "CommentBlock", + "value": "*\r\n * Creates a new simple-keyboard instance\r\n ", + "start": 434, + "end": 493, + "loc": { + "start": { + "line": 25, + "column": 4 + }, + "end": { + "line": 27, + "column": 7 + } + } + }, + { + "type": "CommentBlock", + "value": "*\r\n * Adding preview (demo only)\r\n ", + "start": 775, + "end": 822, + "loc": { + "start": { + "line": 37, + "column": 4 + }, + "end": { + "line": 39, + "column": 7 + } + } + }, + { + "type": "CommentBlock", + "value": "*\r\n * \r\n ", + "start": 1201, + "end": 1218, + "loc": { + "start": { + "line": 53, + "column": 2 + }, + "end": { + "line": 55, + "column": 5 + } + } + }, + { + "type": "CommentBlock", + "value": "*\r\n * Called when simple-keyboard input has changed\r\n ", + "start": 1464, + "end": 1526, + "loc": { + "start": { + "line": 65, + "column": 2 + }, + "end": { + "line": 67, + "column": 5 + } + } + }, + { + "type": "CommentBlock", + "value": "*\r\n * Called when a simple-keyboard key is pressed\r\n ", + "start": 1615, + "end": 1676, + "loc": { + "start": { + "line": 72, + "column": 2 + }, + "end": { + "line": 74, + "column": 5 + } + } + }, + { + "type": "CommentBlock", + "value": "*\r\n * Shift functionality\r\n ", + "start": 1760, + "end": 1804, + "loc": { + "start": { + "line": 78, + "column": 6 + }, + "end": { + "line": 80, + "column": 9 + } + } + } + ], + "tokens": [ + { + "type": { + "label": "import", + "keyword": "import", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "import", + "start": 0, + "end": 6, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 1, + "column": 6 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "Keyboard", + "start": 7, + "end": 15, + "loc": { + "start": { + "line": 1, + "column": 7 + }, + "end": { + "line": 1, + "column": 15 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "from", + "start": 16, + "end": 20, + "loc": { + "start": { + "line": 1, + "column": 16 + }, + "end": { + "line": 1, + "column": 20 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "../lib", + "start": 21, + "end": 29, + "loc": { + "start": { + "line": 1, + "column": 21 + }, + "end": { + "line": 1, + "column": 29 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 29, + "end": 30, + "loc": { + "start": { + "line": 1, + "column": 29 + }, + "end": { + "line": 1, + "column": 30 + } + } + }, + { + "type": { + "label": "import", + "keyword": "import", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "import", + "start": 32, + "end": 38, + "loc": { + "start": { + "line": 2, + "column": 0 + }, + "end": { + "line": 2, + "column": 6 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "./css/App.css", + "start": 39, + "end": 54, + "loc": { + "start": { + "line": 2, + "column": 7 + }, + "end": { + "line": 2, + "column": 22 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 54, + "end": 55, + "loc": { + "start": { + "line": 2, + "column": 22 + }, + "end": { + "line": 2, + "column": 23 + } + } + }, + { + "type": "CommentBlock", + "value": "*\r\n * simple-keyboard demo\r\n ", + "start": 59, + "end": 92, + "loc": { + "start": { + "line": 4, + "column": 0 + }, + "end": { + "line": 6, + "column": 3 + } + } + }, + { + "type": { + "label": "class", + "keyword": "class", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "class", + "start": 94, + "end": 99, + "loc": { + "start": { + "line": 7, + "column": 0 + }, + "end": { + "line": 7, + "column": 5 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "App", + "start": 100, + "end": 103, + "loc": { + "start": { + "line": 7, + "column": 6 + }, + "end": { + "line": 7, + "column": 9 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 104, + "end": 105, + "loc": { + "start": { + "line": 7, + "column": 10 + }, + "end": { + "line": 7, + "column": 11 + } + } + }, + { + "type": "CommentBlock", + "value": "*\r\n * Instantiates the demo class\r\n ", + "start": 109, + "end": 153, + "loc": { + "start": { + "line": 8, + "column": 2 + }, + "end": { + "line": 10, + "column": 5 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "constructor", + "start": 157, + "end": 168, + "loc": { + "start": { + "line": 11, + "column": 2 + }, + "end": { + "line": 11, + "column": 13 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 168, + "end": 169, + "loc": { + "start": { + "line": 11, + "column": 13 + }, + "end": { + "line": 11, + "column": 14 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 169, + "end": 170, + "loc": { + "start": { + "line": 11, + "column": 14 + }, + "end": { + "line": 11, + "column": 15 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 170, + "end": 171, + "loc": { + "start": { + "line": 11, + "column": 15 + }, + "end": { + "line": 11, + "column": 16 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "document", + "start": 177, + "end": 185, + "loc": { + "start": { + "line": 12, + "column": 4 + }, + "end": { + "line": 12, + "column": 12 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 185, + "end": 186, + "loc": { + "start": { + "line": 12, + "column": 12 + }, + "end": { + "line": 12, + "column": 13 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "addEventListener", + "start": 186, + "end": 202, + "loc": { + "start": { + "line": 12, + "column": 13 + }, + "end": { + "line": 12, + "column": 29 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 202, + "end": 203, + "loc": { + "start": { + "line": 12, + "column": 29 + }, + "end": { + "line": 12, + "column": 30 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "DOMContentLoaded", + "start": 203, + "end": 221, + "loc": { + "start": { + "line": 12, + "column": 30 + }, + "end": { + "line": 12, + "column": 48 + } + } + }, + { + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 221, + "end": 222, + "loc": { + "start": { + "line": 12, + "column": 48 + }, + "end": { + "line": 12, + "column": 49 + } + } + }, + { + "type": { + "label": "this", + "keyword": "this", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "this", + "start": 223, + "end": 227, + "loc": { + "start": { + "line": 12, + "column": 50 + }, + "end": { + "line": 12, + "column": 54 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 227, + "end": 228, + "loc": { + "start": { + "line": 12, + "column": 54 + }, + "end": { + "line": 12, + "column": 55 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "onDOMLoaded", + "start": 228, + "end": 239, + "loc": { + "start": { + "line": 12, + "column": 55 + }, + "end": { + "line": 12, + "column": 66 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 239, + "end": 240, + "loc": { + "start": { + "line": 12, + "column": 66 + }, + "end": { + "line": 12, + "column": 67 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 240, + "end": 241, + "loc": { + "start": { + "line": 12, + "column": 67 + }, + "end": { + "line": 12, + "column": 68 + } + } + }, + { + "type": "CommentBlock", + "value": "*\r\n * Default input name\r\n * @type {string}\r\n ", + "start": 249, + "end": 311, + "loc": { + "start": { + "line": 14, + "column": 4 + }, + "end": { + "line": 17, + "column": 7 + } + } + }, + { + "type": { + "label": "this", + "keyword": "this", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "this", + "start": 317, + "end": 321, + "loc": { + "start": { + "line": 18, + "column": 4 + }, + "end": { + "line": 18, + "column": 8 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 321, + "end": 322, + "loc": { + "start": { + "line": 18, + "column": 8 + }, + "end": { + "line": 18, + "column": 9 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "layoutName", + "start": 322, + "end": 332, + "loc": { + "start": { + "line": 18, + "column": 9 + }, + "end": { + "line": 18, + "column": 19 + } + } + }, + { + "type": { + "label": "=", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": true, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "=", + "start": 333, + "end": 334, + "loc": { + "start": { + "line": 18, + "column": 20 + }, + "end": { + "line": 18, + "column": 21 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "default", + "start": 335, + "end": 344, + "loc": { + "start": { + "line": 18, + "column": 22 + }, + "end": { + "line": 18, + "column": 31 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 344, + "end": 345, + "loc": { + "start": { + "line": 18, + "column": 31 + }, + "end": { + "line": 18, + "column": 32 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 349, + "end": 350, + "loc": { + "start": { + "line": 19, + "column": 2 + }, + "end": { + "line": 19, + "column": 3 + } + } + }, + { + "type": "CommentBlock", + "value": "*\r\n * Executed when the DOM is ready\r\n ", + "start": 356, + "end": 403, + "loc": { + "start": { + "line": 21, + "column": 2 + }, + "end": { + "line": 23, + "column": 5 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "onDOMLoaded", + "start": 407, + "end": 418, + "loc": { + "start": { + "line": 24, + "column": 2 + }, + "end": { + "line": 24, + "column": 13 + } + } + }, + { + "type": { + "label": "=", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": true, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "=", + "start": 419, + "end": 420, + "loc": { + "start": { + "line": 24, + "column": 14 + }, + "end": { + "line": 24, + "column": 15 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 421, + "end": 422, + "loc": { + "start": { + "line": 24, + "column": 16 + }, + "end": { + "line": 24, + "column": 17 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 422, + "end": 423, + "loc": { + "start": { + "line": 24, + "column": 17 + }, + "end": { + "line": 24, + "column": 18 + } + } + }, + { + "type": { + "label": "=>", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 424, + "end": 426, + "loc": { + "start": { + "line": 24, + "column": 19 + }, + "end": { + "line": 24, + "column": 21 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 427, + "end": 428, + "loc": { + "start": { + "line": 24, + "column": 22 + }, + "end": { + "line": 24, + "column": 23 + } + } + }, + { + "type": "CommentBlock", + "value": "*\r\n * Creates a new simple-keyboard instance\r\n ", + "start": 434, + "end": 493, + "loc": { + "start": { + "line": 25, + "column": 4 + }, + "end": { + "line": 27, + "column": 7 + } + } + }, + { + "type": { + "label": "this", + "keyword": "this", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "this", + "start": 499, + "end": 503, + "loc": { + "start": { + "line": 28, + "column": 4 + }, + "end": { + "line": 28, + "column": 8 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 503, + "end": 504, + "loc": { + "start": { + "line": 28, + "column": 8 + }, + "end": { + "line": 28, + "column": 9 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "keyboard", + "start": 504, + "end": 512, + "loc": { + "start": { + "line": 28, + "column": 9 + }, + "end": { + "line": 28, + "column": 17 + } + } + }, + { + "type": { + "label": "=", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": true, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "=", + "start": 513, + "end": 514, + "loc": { + "start": { + "line": 28, + "column": 18 + }, + "end": { + "line": 28, + "column": 19 + } + } + }, + { + "type": { + "label": "new", + "keyword": "new", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "new", + "start": 515, + "end": 518, + "loc": { + "start": { + "line": 28, + "column": 20 + }, + "end": { + "line": 28, + "column": 23 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "Keyboard", + "start": 519, + "end": 527, + "loc": { + "start": { + "line": 28, + "column": 24 + }, + "end": { + "line": 28, + "column": 32 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 527, + "end": 528, + "loc": { + "start": { + "line": 28, + "column": 32 + }, + "end": { + "line": 28, + "column": 33 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 528, + "end": 529, + "loc": { + "start": { + "line": 28, + "column": 33 + }, + "end": { + "line": 28, + "column": 34 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "debug", + "start": 537, + "end": 542, + "loc": { + "start": { + "line": 29, + "column": 6 + }, + "end": { + "line": 29, + "column": 11 + } + } + }, + { + "type": { + "label": ":", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 542, + "end": 543, + "loc": { + "start": { + "line": 29, + "column": 11 + }, + "end": { + "line": 29, + "column": 12 + } + } + }, + { + "type": { + "label": "true", + "keyword": "true", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "true", + "start": 544, + "end": 548, + "loc": { + "start": { + "line": 29, + "column": 13 + }, + "end": { + "line": 29, + "column": 17 + } + } + }, + { + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 548, + "end": 549, + "loc": { + "start": { + "line": 29, + "column": 17 + }, + "end": { + "line": 29, + "column": 18 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "layoutName", + "start": 557, + "end": 567, + "loc": { + "start": { + "line": 30, + "column": 6 + }, + "end": { + "line": 30, + "column": 16 + } + } + }, + { + "type": { + "label": ":", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 567, + "end": 568, + "loc": { + "start": { + "line": 30, + "column": 16 + }, + "end": { + "line": 30, + "column": 17 + } + } + }, + { + "type": { + "label": "this", + "keyword": "this", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "this", + "start": 569, + "end": 573, + "loc": { + "start": { + "line": 30, + "column": 18 + }, + "end": { + "line": 30, + "column": 22 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 573, + "end": 574, + "loc": { + "start": { + "line": 30, + "column": 22 + }, + "end": { + "line": 30, + "column": 23 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "layoutName", + "start": 574, + "end": 584, + "loc": { + "start": { + "line": 30, + "column": 23 + }, + "end": { + "line": 30, + "column": 33 + } + } + }, + { + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 584, + "end": 585, + "loc": { + "start": { + "line": 30, + "column": 33 + }, + "end": { + "line": 30, + "column": 34 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "onChange", + "start": 593, + "end": 601, + "loc": { + "start": { + "line": 31, + "column": 6 + }, + "end": { + "line": 31, + "column": 14 + } + } + }, + { + "type": { + "label": ":", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 601, + "end": 602, + "loc": { + "start": { + "line": 31, + "column": 14 + }, + "end": { + "line": 31, + "column": 15 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "input", + "start": 603, + "end": 608, + "loc": { + "start": { + "line": 31, + "column": 16 + }, + "end": { + "line": 31, + "column": 21 + } + } + }, + { + "type": { + "label": "=>", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 609, + "end": 611, + "loc": { + "start": { + "line": 31, + "column": 22 + }, + "end": { + "line": 31, + "column": 24 + } + } + }, + { + "type": { + "label": "this", + "keyword": "this", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "this", + "start": 612, + "end": 616, + "loc": { + "start": { + "line": 31, + "column": 25 + }, + "end": { + "line": 31, + "column": 29 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 616, + "end": 617, + "loc": { + "start": { + "line": 31, + "column": 29 + }, + "end": { + "line": 31, + "column": 30 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "onChange", + "start": 617, + "end": 625, + "loc": { + "start": { + "line": 31, + "column": 30 + }, + "end": { + "line": 31, + "column": 38 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 625, + "end": 626, + "loc": { + "start": { + "line": 31, + "column": 38 + }, + "end": { + "line": 31, + "column": 39 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "input", + "start": 626, + "end": 631, + "loc": { + "start": { + "line": 31, + "column": 39 + }, + "end": { + "line": 31, + "column": 44 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 631, + "end": 632, + "loc": { + "start": { + "line": 31, + "column": 44 + }, + "end": { + "line": 31, + "column": 45 + } + } + }, + { + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 632, + "end": 633, + "loc": { + "start": { + "line": 31, + "column": 45 + }, + "end": { + "line": 31, + "column": 46 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "onKeyPress", + "start": 641, + "end": 651, + "loc": { + "start": { + "line": 32, + "column": 6 + }, + "end": { + "line": 32, + "column": 16 + } + } + }, + { + "type": { + "label": ":", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 651, + "end": 652, + "loc": { + "start": { + "line": 32, + "column": 16 + }, + "end": { + "line": 32, + "column": 17 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "button", + "start": 653, + "end": 659, + "loc": { + "start": { + "line": 32, + "column": 18 + }, + "end": { + "line": 32, + "column": 24 + } + } + }, + { + "type": { + "label": "=>", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 660, + "end": 662, + "loc": { + "start": { + "line": 32, + "column": 25 + }, + "end": { + "line": 32, + "column": 27 + } + } + }, + { + "type": { + "label": "this", + "keyword": "this", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "this", + "start": 663, + "end": 667, + "loc": { + "start": { + "line": 32, + "column": 28 + }, + "end": { + "line": 32, + "column": 32 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 667, + "end": 668, + "loc": { + "start": { + "line": 32, + "column": 32 + }, + "end": { + "line": 32, + "column": 33 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "onKeyPress", + "start": 668, + "end": 678, + "loc": { + "start": { + "line": 32, + "column": 33 + }, + "end": { + "line": 32, + "column": 43 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 678, + "end": 679, + "loc": { + "start": { + "line": 32, + "column": 43 + }, + "end": { + "line": 32, + "column": 44 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "button", + "start": 679, + "end": 685, + "loc": { + "start": { + "line": 32, + "column": 44 + }, + "end": { + "line": 32, + "column": 50 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 685, + "end": 686, + "loc": { + "start": { + "line": 32, + "column": 50 + }, + "end": { + "line": 32, + "column": 51 + } + } + }, + { + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 686, + "end": 687, + "loc": { + "start": { + "line": 32, + "column": 51 + }, + "end": { + "line": 32, + "column": 52 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "newLineOnEnter", + "start": 695, + "end": 709, + "loc": { + "start": { + "line": 33, + "column": 6 + }, + "end": { + "line": 33, + "column": 20 + } + } + }, + { + "type": { + "label": ":", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 709, + "end": 710, + "loc": { + "start": { + "line": 33, + "column": 20 + }, + "end": { + "line": 33, + "column": 21 + } + } + }, + { + "type": { + "label": "true", + "keyword": "true", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "true", + "start": 711, + "end": 715, + "loc": { + "start": { + "line": 33, + "column": 22 + }, + "end": { + "line": 33, + "column": 26 + } + } + }, + { + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 715, + "end": 716, + "loc": { + "start": { + "line": 33, + "column": 26 + }, + "end": { + "line": 33, + "column": 27 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "physicalKeyboardHighlight", + "start": 724, + "end": 749, + "loc": { + "start": { + "line": 34, + "column": 6 + }, + "end": { + "line": 34, + "column": 31 + } + } + }, + { + "type": { + "label": ":", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 749, + "end": 750, + "loc": { + "start": { + "line": 34, + "column": 31 + }, + "end": { + "line": 34, + "column": 32 + } + } + }, + { + "type": { + "label": "true", + "keyword": "true", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "true", + "start": 751, + "end": 755, + "loc": { + "start": { + "line": 34, + "column": 33 + }, + "end": { + "line": 34, + "column": 37 + } + } + }, + { + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 755, + "end": 756, + "loc": { + "start": { + "line": 34, + "column": 37 + }, + "end": { + "line": 34, + "column": 38 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 762, + "end": 763, + "loc": { + "start": { + "line": 35, + "column": 4 + }, + "end": { + "line": 35, + "column": 5 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 763, + "end": 764, + "loc": { + "start": { + "line": 35, + "column": 5 + }, + "end": { + "line": 35, + "column": 6 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 764, + "end": 765, + "loc": { + "start": { + "line": 35, + "column": 6 + }, + "end": { + "line": 35, + "column": 7 + } + } + }, + { + "type": "CommentBlock", + "value": "*\r\n * Adding preview (demo only)\r\n ", + "start": 775, + "end": 822, + "loc": { + "start": { + "line": 37, + "column": 4 + }, + "end": { + "line": 39, + "column": 7 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "document", + "start": 828, + "end": 836, + "loc": { + "start": { + "line": 40, + "column": 4 + }, + "end": { + "line": 40, + "column": 12 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 836, + "end": 837, + "loc": { + "start": { + "line": 40, + "column": 12 + }, + "end": { + "line": 40, + "column": 13 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "querySelector", + "start": 837, + "end": 850, + "loc": { + "start": { + "line": 40, + "column": 13 + }, + "end": { + "line": 40, + "column": 26 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 850, + "end": 851, + "loc": { + "start": { + "line": 40, + "column": 26 + }, + "end": { + "line": 40, + "column": 27 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": ".simple-keyboard", + "start": 851, + "end": 869, + "loc": { + "start": { + "line": 40, + "column": 27 + }, + "end": { + "line": 40, + "column": 45 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 869, + "end": 870, + "loc": { + "start": { + "line": 40, + "column": 45 + }, + "end": { + "line": 40, + "column": 46 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 870, + "end": 871, + "loc": { + "start": { + "line": 40, + "column": 46 + }, + "end": { + "line": 40, + "column": 47 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "insertAdjacentHTML", + "start": 871, + "end": 889, + "loc": { + "start": { + "line": 40, + "column": 47 + }, + "end": { + "line": 40, + "column": 65 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 889, + "end": 890, + "loc": { + "start": { + "line": 40, + "column": 65 + }, + "end": { + "line": 40, + "column": 66 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "beforebegin", + "start": 890, + "end": 903, + "loc": { + "start": { + "line": 40, + "column": 66 + }, + "end": { + "line": 40, + "column": 79 + } + } + }, + { + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 903, + "end": 904, + "loc": { + "start": { + "line": 40, + "column": 79 + }, + "end": { + "line": 40, + "column": 80 + } + } + }, + { + "type": { + "label": "`", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 905, + "end": 906, + "loc": { + "start": { + "line": 40, + "column": 81 + }, + "end": { + "line": 40, + "column": 82 + } + } + }, + { + "type": { + "label": "template", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "\n
\n \n
\n ", + "start": 906, + "end": 1010, + "loc": { + "start": { + "line": 40, + "column": 82 + }, + "end": { + "line": 44, + "column": 4 + } + } + }, + { + "type": { + "label": "`", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 1010, + "end": 1011, + "loc": { + "start": { + "line": 44, + "column": 4 + }, + "end": { + "line": 44, + "column": 5 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 1011, + "end": 1012, + "loc": { + "start": { + "line": 44, + "column": 5 + }, + "end": { + "line": 44, + "column": 6 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1012, + "end": 1013, + "loc": { + "start": { + "line": 44, + "column": 6 + }, + "end": { + "line": 44, + "column": 7 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "document", + "start": 1023, + "end": 1031, + "loc": { + "start": { + "line": 46, + "column": 4 + }, + "end": { + "line": 46, + "column": 12 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1031, + "end": 1032, + "loc": { + "start": { + "line": 46, + "column": 12 + }, + "end": { + "line": 46, + "column": 13 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "querySelector", + "start": 1032, + "end": 1045, + "loc": { + "start": { + "line": 46, + "column": 13 + }, + "end": { + "line": 46, + "column": 26 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 1045, + "end": 1046, + "loc": { + "start": { + "line": 46, + "column": 26 + }, + "end": { + "line": 46, + "column": 27 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": ".input", + "start": 1046, + "end": 1054, + "loc": { + "start": { + "line": 46, + "column": 27 + }, + "end": { + "line": 46, + "column": 35 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 1054, + "end": 1055, + "loc": { + "start": { + "line": 46, + "column": 35 + }, + "end": { + "line": 46, + "column": 36 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1055, + "end": 1056, + "loc": { + "start": { + "line": 46, + "column": 36 + }, + "end": { + "line": 46, + "column": 37 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "addEventListener", + "start": 1056, + "end": 1072, + "loc": { + "start": { + "line": 46, + "column": 37 + }, + "end": { + "line": 46, + "column": 53 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 1072, + "end": 1073, + "loc": { + "start": { + "line": 46, + "column": 53 + }, + "end": { + "line": 46, + "column": 54 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "change", + "start": 1073, + "end": 1081, + "loc": { + "start": { + "line": 46, + "column": 54 + }, + "end": { + "line": 46, + "column": 62 + } + } + }, + { + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1081, + "end": 1082, + "loc": { + "start": { + "line": 46, + "column": 62 + }, + "end": { + "line": 46, + "column": 63 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 1083, + "end": 1084, + "loc": { + "start": { + "line": 46, + "column": 64 + }, + "end": { + "line": 46, + "column": 65 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "event", + "start": 1084, + "end": 1089, + "loc": { + "start": { + "line": 46, + "column": 65 + }, + "end": { + "line": 46, + "column": 70 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 1089, + "end": 1090, + "loc": { + "start": { + "line": 46, + "column": 70 + }, + "end": { + "line": 46, + "column": 71 + } + } + }, + { + "type": { + "label": "=>", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1091, + "end": 1093, + "loc": { + "start": { + "line": 46, + "column": 72 + }, + "end": { + "line": 46, + "column": 74 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 1094, + "end": 1095, + "loc": { + "start": { + "line": 46, + "column": 75 + }, + "end": { + "line": 46, + "column": 76 + } + } + }, + { + "type": { + "label": "this", + "keyword": "this", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "this", + "start": 1103, + "end": 1107, + "loc": { + "start": { + "line": 47, + "column": 6 + }, + "end": { + "line": 47, + "column": 10 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1107, + "end": 1108, + "loc": { + "start": { + "line": 47, + "column": 10 + }, + "end": { + "line": 47, + "column": 11 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "keyboard", + "start": 1108, + "end": 1116, + "loc": { + "start": { + "line": 47, + "column": 11 + }, + "end": { + "line": 47, + "column": 19 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1116, + "end": 1117, + "loc": { + "start": { + "line": 47, + "column": 19 + }, + "end": { + "line": 47, + "column": 20 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "setInput", + "start": 1117, + "end": 1125, + "loc": { + "start": { + "line": 47, + "column": 20 + }, + "end": { + "line": 47, + "column": 28 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 1125, + "end": 1126, + "loc": { + "start": { + "line": 47, + "column": 28 + }, + "end": { + "line": 47, + "column": 29 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "event", + "start": 1126, + "end": 1131, + "loc": { + "start": { + "line": 47, + "column": 29 + }, + "end": { + "line": 47, + "column": 34 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1131, + "end": 1132, + "loc": { + "start": { + "line": 47, + "column": 34 + }, + "end": { + "line": 47, + "column": 35 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "target", + "start": 1132, + "end": 1138, + "loc": { + "start": { + "line": 47, + "column": 35 + }, + "end": { + "line": 47, + "column": 41 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1138, + "end": 1139, + "loc": { + "start": { + "line": 47, + "column": 41 + }, + "end": { + "line": 47, + "column": 42 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "value", + "start": 1139, + "end": 1144, + "loc": { + "start": { + "line": 47, + "column": 42 + }, + "end": { + "line": 47, + "column": 47 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 1144, + "end": 1145, + "loc": { + "start": { + "line": 47, + "column": 47 + }, + "end": { + "line": 47, + "column": 48 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1145, + "end": 1146, + "loc": { + "start": { + "line": 47, + "column": 48 + }, + "end": { + "line": 47, + "column": 49 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 1152, + "end": 1153, + "loc": { + "start": { + "line": 48, + "column": 4 + }, + "end": { + "line": 48, + "column": 5 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 1153, + "end": 1154, + "loc": { + "start": { + "line": 48, + "column": 5 + }, + "end": { + "line": 48, + "column": 6 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1154, + "end": 1155, + "loc": { + "start": { + "line": 48, + "column": 6 + }, + "end": { + "line": 48, + "column": 7 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "console", + "start": 1163, + "end": 1170, + "loc": { + "start": { + "line": 50, + "column": 4 + }, + "end": { + "line": 50, + "column": 11 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1170, + "end": 1171, + "loc": { + "start": { + "line": 50, + "column": 11 + }, + "end": { + "line": 50, + "column": 12 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "log", + "start": 1171, + "end": 1174, + "loc": { + "start": { + "line": 50, + "column": 12 + }, + "end": { + "line": 50, + "column": 15 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 1174, + "end": 1175, + "loc": { + "start": { + "line": 50, + "column": 15 + }, + "end": { + "line": 50, + "column": 16 + } + } + }, + { + "type": { + "label": "this", + "keyword": "this", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "this", + "start": 1175, + "end": 1179, + "loc": { + "start": { + "line": 50, + "column": 16 + }, + "end": { + "line": 50, + "column": 20 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1179, + "end": 1180, + "loc": { + "start": { + "line": 50, + "column": 20 + }, + "end": { + "line": 50, + "column": 21 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "keyboard", + "start": 1180, + "end": 1188, + "loc": { + "start": { + "line": 50, + "column": 21 + }, + "end": { + "line": 50, + "column": 29 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 1188, + "end": 1189, + "loc": { + "start": { + "line": 50, + "column": 29 + }, + "end": { + "line": 50, + "column": 30 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1189, + "end": 1190, + "loc": { + "start": { + "line": 50, + "column": 30 + }, + "end": { + "line": 50, + "column": 31 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 1194, + "end": 1195, + "loc": { + "start": { + "line": 51, + "column": 2 + }, + "end": { + "line": 51, + "column": 3 + } + } + }, + { + "type": "CommentBlock", + "value": "*\r\n * \r\n ", + "start": 1201, + "end": 1218, + "loc": { + "start": { + "line": 53, + "column": 2 + }, + "end": { + "line": 55, + "column": 5 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "handleShiftButton", + "start": 1222, + "end": 1239, + "loc": { + "start": { + "line": 56, + "column": 2 + }, + "end": { + "line": 56, + "column": 19 + } + } + }, + { + "type": { + "label": "=", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": true, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "=", + "start": 1240, + "end": 1241, + "loc": { + "start": { + "line": 56, + "column": 20 + }, + "end": { + "line": 56, + "column": 21 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 1242, + "end": 1243, + "loc": { + "start": { + "line": 56, + "column": 22 + }, + "end": { + "line": 56, + "column": 23 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 1243, + "end": 1244, + "loc": { + "start": { + "line": 56, + "column": 23 + }, + "end": { + "line": 56, + "column": 24 + } + } + }, + { + "type": { + "label": "=>", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1245, + "end": 1247, + "loc": { + "start": { + "line": 56, + "column": 25 + }, + "end": { + "line": 56, + "column": 27 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 1248, + "end": 1249, + "loc": { + "start": { + "line": 56, + "column": 28 + }, + "end": { + "line": 56, + "column": 29 + } + } + }, + { + "type": { + "label": "let", + "keyword": "let", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "let", + "start": 1255, + "end": 1258, + "loc": { + "start": { + "line": 57, + "column": 4 + }, + "end": { + "line": 57, + "column": 7 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "layoutName", + "start": 1259, + "end": 1269, + "loc": { + "start": { + "line": 57, + "column": 8 + }, + "end": { + "line": 57, + "column": 18 + } + } + }, + { + "type": { + "label": "=", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": true, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "=", + "start": 1270, + "end": 1271, + "loc": { + "start": { + "line": 57, + "column": 19 + }, + "end": { + "line": 57, + "column": 20 + } + } + }, + { + "type": { + "label": "this", + "keyword": "this", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "this", + "start": 1272, + "end": 1276, + "loc": { + "start": { + "line": 57, + "column": 21 + }, + "end": { + "line": 57, + "column": 25 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1276, + "end": 1277, + "loc": { + "start": { + "line": 57, + "column": 25 + }, + "end": { + "line": 57, + "column": 26 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "layoutName", + "start": 1277, + "end": 1287, + "loc": { + "start": { + "line": 57, + "column": 26 + }, + "end": { + "line": 57, + "column": 36 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1287, + "end": 1288, + "loc": { + "start": { + "line": 57, + "column": 36 + }, + "end": { + "line": 57, + "column": 37 + } + } + }, + { + "type": { + "label": "let", + "keyword": "let", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "let", + "start": 1294, + "end": 1297, + "loc": { + "start": { + "line": 58, + "column": 4 + }, + "end": { + "line": 58, + "column": 7 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "shiftToggle", + "start": 1298, + "end": 1309, + "loc": { + "start": { + "line": 58, + "column": 8 + }, + "end": { + "line": 58, + "column": 19 + } + } + }, + { + "type": { + "label": "=", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": true, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "=", + "start": 1310, + "end": 1311, + "loc": { + "start": { + "line": 58, + "column": 20 + }, + "end": { + "line": 58, + "column": 21 + } + } + }, + { + "type": { + "label": "this", + "keyword": "this", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "this", + "start": 1312, + "end": 1316, + "loc": { + "start": { + "line": 58, + "column": 22 + }, + "end": { + "line": 58, + "column": 26 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1316, + "end": 1317, + "loc": { + "start": { + "line": 58, + "column": 26 + }, + "end": { + "line": 58, + "column": 27 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "layoutName", + "start": 1317, + "end": 1327, + "loc": { + "start": { + "line": 58, + "column": 27 + }, + "end": { + "line": 58, + "column": 37 + } + } + }, + { + "type": { + "label": "=", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": true, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "=", + "start": 1328, + "end": 1329, + "loc": { + "start": { + "line": 58, + "column": 38 + }, + "end": { + "line": 58, + "column": 39 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "layoutName", + "start": 1330, + "end": 1340, + "loc": { + "start": { + "line": 58, + "column": 40 + }, + "end": { + "line": 58, + "column": 50 + } + } + }, + { + "type": { + "label": "==/!=", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": 6, + "updateContext": null + }, + "value": "===", + "start": 1341, + "end": 1344, + "loc": { + "start": { + "line": 58, + "column": 51 + }, + "end": { + "line": 58, + "column": 54 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "default", + "start": 1345, + "end": 1354, + "loc": { + "start": { + "line": 58, + "column": 55 + }, + "end": { + "line": 58, + "column": 64 + } + } + }, + { + "type": { + "label": "?", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1355, + "end": 1356, + "loc": { + "start": { + "line": 58, + "column": 65 + }, + "end": { + "line": 58, + "column": 66 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "shift", + "start": 1357, + "end": 1364, + "loc": { + "start": { + "line": 58, + "column": 67 + }, + "end": { + "line": 58, + "column": 74 + } + } + }, + { + "type": { + "label": ":", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1365, + "end": 1366, + "loc": { + "start": { + "line": 58, + "column": 75 + }, + "end": { + "line": 58, + "column": 76 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "default", + "start": 1367, + "end": 1376, + "loc": { + "start": { + "line": 58, + "column": 77 + }, + "end": { + "line": 58, + "column": 86 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1376, + "end": 1377, + "loc": { + "start": { + "line": 58, + "column": 86 + }, + "end": { + "line": 58, + "column": 87 + } + } + }, + { + "type": { + "label": "this", + "keyword": "this", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "this", + "start": 1387, + "end": 1391, + "loc": { + "start": { + "line": 60, + "column": 4 + }, + "end": { + "line": 60, + "column": 8 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1391, + "end": 1392, + "loc": { + "start": { + "line": 60, + "column": 8 + }, + "end": { + "line": 60, + "column": 9 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "keyboard", + "start": 1392, + "end": 1400, + "loc": { + "start": { + "line": 60, + "column": 9 + }, + "end": { + "line": 60, + "column": 17 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1400, + "end": 1401, + "loc": { + "start": { + "line": 60, + "column": 17 + }, + "end": { + "line": 60, + "column": 18 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "setOptions", + "start": 1401, + "end": 1411, + "loc": { + "start": { + "line": 60, + "column": 18 + }, + "end": { + "line": 60, + "column": 28 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 1411, + "end": 1412, + "loc": { + "start": { + "line": 60, + "column": 28 + }, + "end": { + "line": 60, + "column": 29 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 1412, + "end": 1413, + "loc": { + "start": { + "line": 60, + "column": 29 + }, + "end": { + "line": 60, + "column": 30 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "layoutName", + "start": 1421, + "end": 1431, + "loc": { + "start": { + "line": 61, + "column": 6 + }, + "end": { + "line": 61, + "column": 16 + } + } + }, + { + "type": { + "label": ":", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1431, + "end": 1432, + "loc": { + "start": { + "line": 61, + "column": 16 + }, + "end": { + "line": 61, + "column": 17 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "shiftToggle", + "start": 1433, + "end": 1444, + "loc": { + "start": { + "line": 61, + "column": 18 + }, + "end": { + "line": 61, + "column": 29 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 1450, + "end": 1451, + "loc": { + "start": { + "line": 62, + "column": 4 + }, + "end": { + "line": 62, + "column": 5 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 1451, + "end": 1452, + "loc": { + "start": { + "line": 62, + "column": 5 + }, + "end": { + "line": 62, + "column": 6 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1452, + "end": 1453, + "loc": { + "start": { + "line": 62, + "column": 6 + }, + "end": { + "line": 62, + "column": 7 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 1457, + "end": 1458, + "loc": { + "start": { + "line": 63, + "column": 2 + }, + "end": { + "line": 63, + "column": 3 + } + } + }, + { + "type": "CommentBlock", + "value": "*\r\n * Called when simple-keyboard input has changed\r\n ", + "start": 1464, + "end": 1526, + "loc": { + "start": { + "line": 65, + "column": 2 + }, + "end": { + "line": 67, + "column": 5 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "onChange", + "start": 1530, + "end": 1538, + "loc": { + "start": { + "line": 68, + "column": 2 + }, + "end": { + "line": 68, + "column": 10 + } + } + }, + { + "type": { + "label": "=", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": true, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "=", + "start": 1539, + "end": 1540, + "loc": { + "start": { + "line": 68, + "column": 11 + }, + "end": { + "line": 68, + "column": 12 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "input", + "start": 1541, + "end": 1546, + "loc": { + "start": { + "line": 68, + "column": 13 + }, + "end": { + "line": 68, + "column": 18 + } + } + }, + { + "type": { + "label": "=>", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1547, + "end": 1549, + "loc": { + "start": { + "line": 68, + "column": 19 + }, + "end": { + "line": 68, + "column": 21 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 1550, + "end": 1551, + "loc": { + "start": { + "line": 68, + "column": 22 + }, + "end": { + "line": 68, + "column": 23 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "document", + "start": 1557, + "end": 1565, + "loc": { + "start": { + "line": 69, + "column": 4 + }, + "end": { + "line": 69, + "column": 12 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1565, + "end": 1566, + "loc": { + "start": { + "line": 69, + "column": 12 + }, + "end": { + "line": 69, + "column": 13 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "querySelector", + "start": 1566, + "end": 1579, + "loc": { + "start": { + "line": 69, + "column": 13 + }, + "end": { + "line": 69, + "column": 26 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 1579, + "end": 1580, + "loc": { + "start": { + "line": 69, + "column": 26 + }, + "end": { + "line": 69, + "column": 27 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": ".input", + "start": 1580, + "end": 1588, + "loc": { + "start": { + "line": 69, + "column": 27 + }, + "end": { + "line": 69, + "column": 35 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 1588, + "end": 1589, + "loc": { + "start": { + "line": 69, + "column": 35 + }, + "end": { + "line": 69, + "column": 36 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1589, + "end": 1590, + "loc": { + "start": { + "line": 69, + "column": 36 + }, + "end": { + "line": 69, + "column": 37 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "value", + "start": 1590, + "end": 1595, + "loc": { + "start": { + "line": 69, + "column": 37 + }, + "end": { + "line": 69, + "column": 42 + } + } + }, + { + "type": { + "label": "=", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": true, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "=", + "start": 1596, + "end": 1597, + "loc": { + "start": { + "line": 69, + "column": 43 + }, + "end": { + "line": 69, + "column": 44 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "input", + "start": 1598, + "end": 1603, + "loc": { + "start": { + "line": 69, + "column": 45 + }, + "end": { + "line": 69, + "column": 50 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1603, + "end": 1604, + "loc": { + "start": { + "line": 69, + "column": 50 + }, + "end": { + "line": 69, + "column": 51 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 1608, + "end": 1609, + "loc": { + "start": { + "line": 70, + "column": 2 + }, + "end": { + "line": 70, + "column": 3 + } + } + }, + { + "type": "CommentBlock", + "value": "*\r\n * Called when a simple-keyboard key is pressed\r\n ", + "start": 1615, + "end": 1676, + "loc": { + "start": { + "line": 72, + "column": 2 + }, + "end": { + "line": 74, + "column": 5 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "onKeyPress", + "start": 1680, + "end": 1690, + "loc": { + "start": { + "line": 75, + "column": 2 + }, + "end": { + "line": 75, + "column": 12 + } + } + }, + { + "type": { + "label": "=", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": true, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "=", + "start": 1691, + "end": 1692, + "loc": { + "start": { + "line": 75, + "column": 13 + }, + "end": { + "line": 75, + "column": 14 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "button", + "start": 1693, + "end": 1699, + "loc": { + "start": { + "line": 75, + "column": 15 + }, + "end": { + "line": 75, + "column": 21 + } + } + }, + { + "type": { + "label": "=>", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1700, + "end": 1702, + "loc": { + "start": { + "line": 75, + "column": 22 + }, + "end": { + "line": 75, + "column": 24 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 1703, + "end": 1704, + "loc": { + "start": { + "line": 75, + "column": 25 + }, + "end": { + "line": 75, + "column": 26 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "console", + "start": 1710, + "end": 1717, + "loc": { + "start": { + "line": 76, + "column": 4 + }, + "end": { + "line": 76, + "column": 11 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1717, + "end": 1718, + "loc": { + "start": { + "line": 76, + "column": 11 + }, + "end": { + "line": 76, + "column": 12 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "log", + "start": 1718, + "end": 1721, + "loc": { + "start": { + "line": 76, + "column": 12 + }, + "end": { + "line": 76, + "column": 15 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 1721, + "end": 1722, + "loc": { + "start": { + "line": 76, + "column": 15 + }, + "end": { + "line": 76, + "column": 16 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "Button pressed", + "start": 1722, + "end": 1738, + "loc": { + "start": { + "line": 76, + "column": 16 + }, + "end": { + "line": 76, + "column": 32 + } + } + }, + { + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1738, + "end": 1739, + "loc": { + "start": { + "line": 76, + "column": 32 + }, + "end": { + "line": 76, + "column": 33 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "button", + "start": 1740, + "end": 1746, + "loc": { + "start": { + "line": 76, + "column": 34 + }, + "end": { + "line": 76, + "column": 40 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 1746, + "end": 1747, + "loc": { + "start": { + "line": 76, + "column": 40 + }, + "end": { + "line": 76, + "column": 41 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1747, + "end": 1748, + "loc": { + "start": { + "line": 76, + "column": 41 + }, + "end": { + "line": 76, + "column": 42 + } + } + }, + { + "type": "CommentBlock", + "value": "*\r\n * Shift functionality\r\n ", + "start": 1760, + "end": 1804, + "loc": { + "start": { + "line": 78, + "column": 6 + }, + "end": { + "line": 80, + "column": 9 + } + } + }, + { + "type": { + "label": "if", + "keyword": "if", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "if", + "start": 1812, + "end": 1814, + "loc": { + "start": { + "line": 81, + "column": 6 + }, + "end": { + "line": 81, + "column": 8 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 1814, + "end": 1815, + "loc": { + "start": { + "line": 81, + "column": 8 + }, + "end": { + "line": 81, + "column": 9 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "button", + "start": 1815, + "end": 1821, + "loc": { + "start": { + "line": 81, + "column": 9 + }, + "end": { + "line": 81, + "column": 15 + } + } + }, + { + "type": { + "label": "==/!=", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": 6, + "updateContext": null + }, + "value": "===", + "start": 1822, + "end": 1825, + "loc": { + "start": { + "line": 81, + "column": 16 + }, + "end": { + "line": 81, + "column": 19 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "{lock}", + "start": 1826, + "end": 1834, + "loc": { + "start": { + "line": 81, + "column": 20 + }, + "end": { + "line": 81, + "column": 28 + } + } + }, + { + "type": { + "label": "||", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": 1, + "updateContext": null + }, + "value": "||", + "start": 1835, + "end": 1837, + "loc": { + "start": { + "line": 81, + "column": 29 + }, + "end": { + "line": 81, + "column": 31 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "button", + "start": 1838, + "end": 1844, + "loc": { + "start": { + "line": 81, + "column": 32 + }, + "end": { + "line": 81, + "column": 38 + } + } + }, + { + "type": { + "label": "==/!=", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": 6, + "updateContext": null + }, + "value": "===", + "start": 1845, + "end": 1848, + "loc": { + "start": { + "line": 81, + "column": 39 + }, + "end": { + "line": 81, + "column": 42 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "{shift}", + "start": 1849, + "end": 1858, + "loc": { + "start": { + "line": 81, + "column": 43 + }, + "end": { + "line": 81, + "column": 52 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 1858, + "end": 1859, + "loc": { + "start": { + "line": 81, + "column": 52 + }, + "end": { + "line": 81, + "column": 53 + } + } + }, + { + "type": { + "label": "this", + "keyword": "this", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "this", + "start": 1869, + "end": 1873, + "loc": { + "start": { + "line": 82, + "column": 8 + }, + "end": { + "line": 82, + "column": 12 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1873, + "end": 1874, + "loc": { + "start": { + "line": 82, + "column": 12 + }, + "end": { + "line": 82, + "column": 13 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "handleShiftButton", + "start": 1874, + "end": 1891, + "loc": { + "start": { + "line": 82, + "column": 13 + }, + "end": { + "line": 82, + "column": 30 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 1891, + "end": 1892, + "loc": { + "start": { + "line": 82, + "column": 30 + }, + "end": { + "line": 82, + "column": 31 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 1892, + "end": 1893, + "loc": { + "start": { + "line": 82, + "column": 31 + }, + "end": { + "line": 82, + "column": 32 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1893, + "end": 1894, + "loc": { + "start": { + "line": 82, + "column": 32 + }, + "end": { + "line": 82, + "column": 33 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 1898, + "end": 1899, + "loc": { + "start": { + "line": 83, + "column": 2 + }, + "end": { + "line": 83, + "column": 3 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 1903, + "end": 1904, + "loc": { + "start": { + "line": 85, + "column": 0 + }, + "end": { + "line": 85, + "column": 1 + } + } + }, + { + "type": { + "label": "export", + "keyword": "export", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "export", + "start": 1908, + "end": 1914, + "loc": { + "start": { + "line": 87, + "column": 0 + }, + "end": { + "line": 87, + "column": 6 + } + } + }, + { + "type": { + "label": "default", + "keyword": "default", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "default", + "start": 1915, + "end": 1922, + "loc": { + "start": { + "line": 87, + "column": 7 + }, + "end": { + "line": 87, + "column": 14 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "App", + "start": 1923, + "end": 1926, + "loc": { + "start": { + "line": 87, + "column": 15 + }, + "end": { + "line": 87, + "column": 18 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1926, + "end": 1927, + "loc": { + "start": { + "line": 87, + "column": 18 + }, + "end": { + "line": 87, + "column": 19 + } + } + }, + { + "type": { + "label": "eof", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1927, + "end": 1927, + "loc": { + "start": { + "line": 87, + "column": 19 + }, + "end": { + "line": 87, + "column": 19 + } + } + } + ] +} \ No newline at end of file diff --git a/docs/ast/source/demo/index.js.json b/docs/ast/source/demo/index.js.json new file mode 100644 index 00000000..68900645 --- /dev/null +++ b/docs/ast/source/demo/index.js.json @@ -0,0 +1,513 @@ +{ + "type": "File", + "start": 0, + "end": 70, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 6, + "column": 10 + } + }, + "program": { + "type": "Program", + "start": 0, + "end": 70, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 6, + "column": 10 + } + }, + "sourceType": "module", + "body": [ + { + "type": "ImportDeclaration", + "start": 0, + "end": 24, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 1, + "column": 24 + } + }, + "specifiers": [ + { + "type": "ImportDefaultSpecifier", + "start": 7, + "end": 10, + "loc": { + "start": { + "line": 1, + "column": 7 + }, + "end": { + "line": 1, + "column": 10 + } + }, + "local": { + "type": "Identifier", + "start": 7, + "end": 10, + "loc": { + "start": { + "line": 1, + "column": 7 + }, + "end": { + "line": 1, + "column": 10 + }, + "identifierName": "App" + }, + "name": "App" + } + } + ], + "source": { + "type": "StringLiteral", + "start": 16, + "end": 23, + "loc": { + "start": { + "line": 1, + "column": 16 + }, + "end": { + "line": 1, + "column": 23 + } + }, + "extra": { + "rawValue": "./App", + "raw": "'./App'" + }, + "value": "./App" + }, + "trailingComments": [ + { + "type": "CommentBlock", + "value": "*\r\n * Initializing demo\r\n ", + "start": 28, + "end": 58, + "loc": { + "start": { + "line": 3, + "column": 0 + }, + "end": { + "line": 5, + "column": 3 + } + } + } + ] + }, + { + "type": "ExpressionStatement", + "start": 60, + "end": 70, + "loc": { + "start": { + "line": 6, + "column": 0 + }, + "end": { + "line": 6, + "column": 10 + } + }, + "expression": { + "type": "NewExpression", + "start": 60, + "end": 69, + "loc": { + "start": { + "line": 6, + "column": 0 + }, + "end": { + "line": 6, + "column": 9 + } + }, + "callee": { + "type": "Identifier", + "start": 64, + "end": 67, + "loc": { + "start": { + "line": 6, + "column": 4 + }, + "end": { + "line": 6, + "column": 7 + }, + "identifierName": "App" + }, + "name": "App" + }, + "arguments": [], + "leadingComments": null + }, + "leadingComments": [ + { + "type": "CommentBlock", + "value": "*\r\n * Initializing demo\r\n ", + "start": 28, + "end": 58, + "loc": { + "start": { + "line": 3, + "column": 0 + }, + "end": { + "line": 5, + "column": 3 + } + } + } + ] + } + ], + "directives": [] + }, + "comments": [ + { + "type": "CommentBlock", + "value": "*\r\n * Initializing demo\r\n ", + "start": 28, + "end": 58, + "loc": { + "start": { + "line": 3, + "column": 0 + }, + "end": { + "line": 5, + "column": 3 + } + } + } + ], + "tokens": [ + { + "type": { + "label": "import", + "keyword": "import", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "import", + "start": 0, + "end": 6, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 1, + "column": 6 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "App", + "start": 7, + "end": 10, + "loc": { + "start": { + "line": 1, + "column": 7 + }, + "end": { + "line": 1, + "column": 10 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "from", + "start": 11, + "end": 15, + "loc": { + "start": { + "line": 1, + "column": 11 + }, + "end": { + "line": 1, + "column": 15 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "./App", + "start": 16, + "end": 23, + "loc": { + "start": { + "line": 1, + "column": 16 + }, + "end": { + "line": 1, + "column": 23 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 23, + "end": 24, + "loc": { + "start": { + "line": 1, + "column": 23 + }, + "end": { + "line": 1, + "column": 24 + } + } + }, + { + "type": "CommentBlock", + "value": "*\r\n * Initializing demo\r\n ", + "start": 28, + "end": 58, + "loc": { + "start": { + "line": 3, + "column": 0 + }, + "end": { + "line": 5, + "column": 3 + } + } + }, + { + "type": { + "label": "new", + "keyword": "new", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "new", + "start": 60, + "end": 63, + "loc": { + "start": { + "line": 6, + "column": 0 + }, + "end": { + "line": 6, + "column": 3 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "App", + "start": 64, + "end": 67, + "loc": { + "start": { + "line": 6, + "column": 4 + }, + "end": { + "line": 6, + "column": 7 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 67, + "end": 68, + "loc": { + "start": { + "line": 6, + "column": 7 + }, + "end": { + "line": 6, + "column": 8 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 68, + "end": 69, + "loc": { + "start": { + "line": 6, + "column": 8 + }, + "end": { + "line": 6, + "column": 9 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 69, + "end": 70, + "loc": { + "start": { + "line": 6, + "column": 9 + }, + "end": { + "line": 6, + "column": 10 + } + } + }, + { + "type": { + "label": "eof", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 70, + "end": 70, + "loc": { + "start": { + "line": 6, + "column": 10 + }, + "end": { + "line": 6, + "column": 10 + } + } + } + ] +} \ No newline at end of file diff --git a/docs/ast/source/lib/components/Keyboard.js.json b/docs/ast/source/lib/components/Keyboard.js.json new file mode 100644 index 00000000..74963620 --- /dev/null +++ b/docs/ast/source/lib/components/Keyboard.js.json @@ -0,0 +1,112061 @@ +{ + "type": "File", + "start": 0, + "end": 20040, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 597, + "column": 0 + } + }, + "program": { + "type": "Program", + "start": 0, + "end": 20040, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 597, + "column": 0 + } + }, + "sourceType": "module", + "body": [ + { + "type": "ImportDeclaration", + "start": 0, + "end": 24, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 1, + "column": 24 + } + }, + "specifiers": [], + "source": { + "type": "StringLiteral", + "start": 7, + "end": 23, + "loc": { + "start": { + "line": 1, + "column": 7 + }, + "end": { + "line": 1, + "column": 23 + } + }, + "extra": { + "rawValue": "./Keyboard.css", + "raw": "'./Keyboard.css'" + }, + "value": "./Keyboard.css" + }, + "trailingComments": [ + { + "type": "CommentLine", + "value": " Services", + "start": 28, + "end": 39, + "loc": { + "start": { + "line": 3, + "column": 0 + }, + "end": { + "line": 3, + "column": 11 + } + } + } + ] + }, + { + "type": "ImportDeclaration", + "start": 41, + "end": 101, + "loc": { + "start": { + "line": 4, + "column": 0 + }, + "end": { + "line": 4, + "column": 60 + } + }, + "specifiers": [ + { + "type": "ImportDefaultSpecifier", + "start": 48, + "end": 64, + "loc": { + "start": { + "line": 4, + "column": 7 + }, + "end": { + "line": 4, + "column": 23 + } + }, + "local": { + "type": "Identifier", + "start": 48, + "end": 64, + "loc": { + "start": { + "line": 4, + "column": 7 + }, + "end": { + "line": 4, + "column": 23 + }, + "identifierName": "PhysicalKeyboard" + }, + "name": "PhysicalKeyboard", + "leadingComments": null + }, + "leadingComments": null + } + ], + "source": { + "type": "StringLiteral", + "start": 70, + "end": 100, + "loc": { + "start": { + "line": 4, + "column": 29 + }, + "end": { + "line": 4, + "column": 59 + } + }, + "extra": { + "rawValue": "../services/PhysicalKeyboard", + "raw": "'../services/PhysicalKeyboard'" + }, + "value": "../services/PhysicalKeyboard" + }, + "leadingComments": [ + { + "type": "CommentLine", + "value": " Services", + "start": 28, + "end": 39, + "loc": { + "start": { + "line": 3, + "column": 0 + }, + "end": { + "line": 3, + "column": 11 + } + } + } + ] + }, + { + "type": "ImportDeclaration", + "start": 103, + "end": 159, + "loc": { + "start": { + "line": 5, + "column": 0 + }, + "end": { + "line": 5, + "column": 56 + } + }, + "specifiers": [ + { + "type": "ImportDefaultSpecifier", + "start": 110, + "end": 124, + "loc": { + "start": { + "line": 5, + "column": 7 + }, + "end": { + "line": 5, + "column": 21 + } + }, + "local": { + "type": "Identifier", + "start": 110, + "end": 124, + "loc": { + "start": { + "line": 5, + "column": 7 + }, + "end": { + "line": 5, + "column": 21 + }, + "identifierName": "KeyboardLayout" + }, + "name": "KeyboardLayout" + } + } + ], + "source": { + "type": "StringLiteral", + "start": 130, + "end": 158, + "loc": { + "start": { + "line": 5, + "column": 27 + }, + "end": { + "line": 5, + "column": 55 + } + }, + "extra": { + "rawValue": "../services/KeyboardLayout", + "raw": "'../services/KeyboardLayout'" + }, + "value": "../services/KeyboardLayout" + } + }, + { + "type": "ImportDeclaration", + "start": 161, + "end": 207, + "loc": { + "start": { + "line": 6, + "column": 0 + }, + "end": { + "line": 6, + "column": 46 + } + }, + "specifiers": [ + { + "type": "ImportDefaultSpecifier", + "start": 168, + "end": 177, + "loc": { + "start": { + "line": 6, + "column": 7 + }, + "end": { + "line": 6, + "column": 16 + } + }, + "local": { + "type": "Identifier", + "start": 168, + "end": 177, + "loc": { + "start": { + "line": 6, + "column": 7 + }, + "end": { + "line": 6, + "column": 16 + }, + "identifierName": "Utilities" + }, + "name": "Utilities" + } + } + ], + "source": { + "type": "StringLiteral", + "start": 183, + "end": 206, + "loc": { + "start": { + "line": 6, + "column": 22 + }, + "end": { + "line": 6, + "column": 45 + } + }, + "extra": { + "rawValue": "../services/Utilities", + "raw": "'../services/Utilities'" + }, + "value": "../services/Utilities" + }, + "trailingComments": [ + { + "type": "CommentBlock", + "value": "*\r\n * Root class for simple-keyboard\r\n * This class:\r\n * - Parses the options\r\n * - Renders the rows and buttons\r\n * - Handles button functionality\r\n ", + "start": 211, + "end": 365, + "loc": { + "start": { + "line": 8, + "column": 0 + }, + "end": { + "line": 14, + "column": 3 + } + } + } + ] + }, + { + "type": "Identifier", + "start": 367, + "end": 20004, + "loc": { + "start": { + "line": 15, + "column": 0 + }, + "end": { + "line": 594, + "column": 1 + } + }, + "id": { + "type": "Identifier", + "start": 373, + "end": 387, + "loc": { + "start": { + "line": 15, + "column": 6 + }, + "end": { + "line": 15, + "column": 20 + }, + "identifierName": "SimpleKeyboard" + }, + "name": "SimpleKeyboard", + "leadingComments": null + }, + "superClass": null, + "body": { + "type": "ClassBody", + "start": 388, + "end": 20004, + "loc": { + "start": { + "line": 15, + "column": 21 + }, + "end": { + "line": 594, + "column": 1 + } + }, + "body": [ + { + "type": "ClassMethod", + "start": 679, + "end": 5952, + "loc": { + "start": { + "line": 20, + "column": 2 + }, + "end": { + "line": 116, + "column": 3 + } + }, + "static": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 679, + "end": 690, + "loc": { + "start": { + "line": 20, + "column": 2 + }, + "end": { + "line": 20, + "column": 13 + }, + "identifierName": "constructor" + }, + "name": "constructor", + "leadingComments": null + }, + "kind": "constructor", + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [ + { + "type": "RestElement", + "start": 691, + "end": 700, + "loc": { + "start": { + "line": 20, + "column": 14 + }, + "end": { + "line": 20, + "column": 23 + } + }, + "argument": { + "type": "Identifier", + "start": 694, + "end": 700, + "loc": { + "start": { + "line": 20, + "column": 17 + }, + "end": { + "line": 20, + "column": 23 + }, + "identifierName": "params" + }, + "name": "params" + } + } + ], + "body": { + "type": "BlockStatement", + "start": 701, + "end": 5952, + "loc": { + "start": { + "line": 20, + "column": 24 + }, + "end": { + "line": 116, + "column": 3 + } + }, + "body": [ + { + "type": "VariableDeclaration", + "start": 708, + "end": 794, + "loc": { + "start": { + "line": 21, + "column": 4 + }, + "end": { + "line": 21, + "column": 90 + } + }, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 712, + "end": 793, + "loc": { + "start": { + "line": 21, + "column": 8 + }, + "end": { + "line": 21, + "column": 89 + } + }, + "id": { + "type": "Identifier", + "start": 712, + "end": 728, + "loc": { + "start": { + "line": 21, + "column": 8 + }, + "end": { + "line": 21, + "column": 24 + }, + "identifierName": "keyboardDOMQuery" + }, + "name": "keyboardDOMQuery" + }, + "init": { + "type": "ConditionalExpression", + "start": 731, + "end": 793, + "loc": { + "start": { + "line": 21, + "column": 27 + }, + "end": { + "line": 21, + "column": 89 + } + }, + "test": { + "type": "BinaryExpression", + "start": 731, + "end": 760, + "loc": { + "start": { + "line": 21, + "column": 27 + }, + "end": { + "line": 21, + "column": 56 + } + }, + "left": { + "type": "UnaryExpression", + "start": 731, + "end": 747, + "loc": { + "start": { + "line": 21, + "column": 27 + }, + "end": { + "line": 21, + "column": 43 + } + }, + "operator": "typeof", + "prefix": true, + "argument": { + "type": "MemberExpression", + "start": 738, + "end": 747, + "loc": { + "start": { + "line": 21, + "column": 34 + }, + "end": { + "line": 21, + "column": 43 + } + }, + "object": { + "type": "Identifier", + "start": 738, + "end": 744, + "loc": { + "start": { + "line": 21, + "column": 34 + }, + "end": { + "line": 21, + "column": 40 + }, + "identifierName": "params" + }, + "name": "params" + }, + "property": { + "type": "NumericLiteral", + "start": 745, + "end": 746, + "loc": { + "start": { + "line": 21, + "column": 41 + }, + "end": { + "line": 21, + "column": 42 + } + }, + "extra": { + "rawValue": 0, + "raw": "0" + }, + "value": 0 + }, + "computed": true + }, + "extra": { + "parenthesizedArgument": false + } + }, + "operator": "===", + "right": { + "type": "StringLiteral", + "start": 752, + "end": 760, + "loc": { + "start": { + "line": 21, + "column": 48 + }, + "end": { + "line": 21, + "column": 56 + } + }, + "extra": { + "rawValue": "string", + "raw": "\"string\"" + }, + "value": "string" + } + }, + "consequent": { + "type": "MemberExpression", + "start": 763, + "end": 772, + "loc": { + "start": { + "line": 21, + "column": 59 + }, + "end": { + "line": 21, + "column": 68 + } + }, + "object": { + "type": "Identifier", + "start": 763, + "end": 769, + "loc": { + "start": { + "line": 21, + "column": 59 + }, + "end": { + "line": 21, + "column": 65 + }, + "identifierName": "params" + }, + "name": "params" + }, + "property": { + "type": "NumericLiteral", + "start": 770, + "end": 771, + "loc": { + "start": { + "line": 21, + "column": 66 + }, + "end": { + "line": 21, + "column": 67 + } + }, + "extra": { + "rawValue": 0, + "raw": "0" + }, + "value": 0 + }, + "computed": true + }, + "alternate": { + "type": "StringLiteral", + "start": 775, + "end": 793, + "loc": { + "start": { + "line": 21, + "column": 71 + }, + "end": { + "line": 21, + "column": 89 + } + }, + "extra": { + "rawValue": ".simple-keyboard", + "raw": "'.simple-keyboard'" + }, + "value": ".simple-keyboard" + } + } + } + ], + "kind": "let" + }, + { + "type": "VariableDeclaration", + "start": 800, + "end": 868, + "loc": { + "start": { + "line": 22, + "column": 4 + }, + "end": { + "line": 22, + "column": 72 + } + }, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 804, + "end": 867, + "loc": { + "start": { + "line": 22, + "column": 8 + }, + "end": { + "line": 22, + "column": 71 + } + }, + "id": { + "type": "Identifier", + "start": 804, + "end": 811, + "loc": { + "start": { + "line": 22, + "column": 8 + }, + "end": { + "line": 22, + "column": 15 + }, + "identifierName": "options" + }, + "name": "options" + }, + "init": { + "type": "ConditionalExpression", + "start": 814, + "end": 867, + "loc": { + "start": { + "line": 22, + "column": 18 + }, + "end": { + "line": 22, + "column": 71 + } + }, + "test": { + "type": "BinaryExpression", + "start": 814, + "end": 843, + "loc": { + "start": { + "line": 22, + "column": 18 + }, + "end": { + "line": 22, + "column": 47 + } + }, + "left": { + "type": "UnaryExpression", + "start": 814, + "end": 830, + "loc": { + "start": { + "line": 22, + "column": 18 + }, + "end": { + "line": 22, + "column": 34 + } + }, + "operator": "typeof", + "prefix": true, + "argument": { + "type": "MemberExpression", + "start": 821, + "end": 830, + "loc": { + "start": { + "line": 22, + "column": 25 + }, + "end": { + "line": 22, + "column": 34 + } + }, + "object": { + "type": "Identifier", + "start": 821, + "end": 827, + "loc": { + "start": { + "line": 22, + "column": 25 + }, + "end": { + "line": 22, + "column": 31 + }, + "identifierName": "params" + }, + "name": "params" + }, + "property": { + "type": "NumericLiteral", + "start": 828, + "end": 829, + "loc": { + "start": { + "line": 22, + "column": 32 + }, + "end": { + "line": 22, + "column": 33 + } + }, + "extra": { + "rawValue": 0, + "raw": "0" + }, + "value": 0 + }, + "computed": true + }, + "extra": { + "parenthesizedArgument": false + } + }, + "operator": "===", + "right": { + "type": "StringLiteral", + "start": 835, + "end": 843, + "loc": { + "start": { + "line": 22, + "column": 39 + }, + "end": { + "line": 22, + "column": 47 + } + }, + "extra": { + "rawValue": "object", + "raw": "\"object\"" + }, + "value": "object" + } + }, + "consequent": { + "type": "MemberExpression", + "start": 846, + "end": 855, + "loc": { + "start": { + "line": 22, + "column": 50 + }, + "end": { + "line": 22, + "column": 59 + } + }, + "object": { + "type": "Identifier", + "start": 846, + "end": 852, + "loc": { + "start": { + "line": 22, + "column": 50 + }, + "end": { + "line": 22, + "column": 56 + }, + "identifierName": "params" + }, + "name": "params" + }, + "property": { + "type": "NumericLiteral", + "start": 853, + "end": 854, + "loc": { + "start": { + "line": 22, + "column": 57 + }, + "end": { + "line": 22, + "column": 58 + } + }, + "extra": { + "rawValue": 0, + "raw": "0" + }, + "value": 0 + }, + "computed": true + }, + "alternate": { + "type": "MemberExpression", + "start": 858, + "end": 867, + "loc": { + "start": { + "line": 22, + "column": 62 + }, + "end": { + "line": 22, + "column": 71 + } + }, + "object": { + "type": "Identifier", + "start": 858, + "end": 864, + "loc": { + "start": { + "line": 22, + "column": 62 + }, + "end": { + "line": 22, + "column": 68 + }, + "identifierName": "params" + }, + "name": "params" + }, + "property": { + "type": "NumericLiteral", + "start": 865, + "end": 866, + "loc": { + "start": { + "line": 22, + "column": 69 + }, + "end": { + "line": 22, + "column": 70 + } + }, + "extra": { + "rawValue": 1, + "raw": "1" + }, + "value": 1 + }, + "computed": true + } + } + } + ], + "kind": "let" + }, + { + "type": "IfStatement", + "start": 876, + "end": 909, + "loc": { + "start": { + "line": 24, + "column": 4 + }, + "end": { + "line": 25, + "column": 19 + } + }, + "test": { + "type": "UnaryExpression", + "start": 879, + "end": 887, + "loc": { + "start": { + "line": 24, + "column": 7 + }, + "end": { + "line": 24, + "column": 15 + } + }, + "operator": "!", + "prefix": true, + "argument": { + "type": "Identifier", + "start": 880, + "end": 887, + "loc": { + "start": { + "line": 24, + "column": 8 + }, + "end": { + "line": 24, + "column": 15 + }, + "identifierName": "options" + }, + "name": "options" + }, + "extra": { + "parenthesizedArgument": false + } + }, + "consequent": { + "type": "ExpressionStatement", + "start": 896, + "end": 909, + "loc": { + "start": { + "line": 25, + "column": 6 + }, + "end": { + "line": 25, + "column": 19 + } + }, + "expression": { + "type": "AssignmentExpression", + "start": 896, + "end": 908, + "loc": { + "start": { + "line": 25, + "column": 6 + }, + "end": { + "line": 25, + "column": 18 + } + }, + "operator": "=", + "left": { + "type": "Identifier", + "start": 896, + "end": 903, + "loc": { + "start": { + "line": 25, + "column": 6 + }, + "end": { + "line": 25, + "column": 13 + }, + "identifierName": "options" + }, + "name": "options" + }, + "right": { + "type": "ObjectExpression", + "start": 906, + "end": 908, + "loc": { + "start": { + "line": 25, + "column": 16 + }, + "end": { + "line": 25, + "column": 18 + } + }, + "properties": [] + } + }, + "trailingComments": null + }, + "alternate": null, + "trailingComments": [ + { + "type": "CommentBlock", + "value": "*\r\n * Initializing Utilities\r\n ", + "start": 917, + "end": 960, + "loc": { + "start": { + "line": 27, + "column": 4 + }, + "end": { + "line": 29, + "column": 7 + } + } + } + ] + }, + { + "type": "ExpressionStatement", + "start": 966, + "end": 1003, + "loc": { + "start": { + "line": 30, + "column": 4 + }, + "end": { + "line": 30, + "column": 41 + } + }, + "expression": { + "type": "AssignmentExpression", + "start": 966, + "end": 1002, + "loc": { + "start": { + "line": 30, + "column": 4 + }, + "end": { + "line": 30, + "column": 40 + } + }, + "operator": "=", + "left": { + "type": "MemberExpression", + "start": 966, + "end": 980, + "loc": { + "start": { + "line": 30, + "column": 4 + }, + "end": { + "line": 30, + "column": 18 + } + }, + "object": { + "type": "ThisExpression", + "start": 966, + "end": 970, + "loc": { + "start": { + "line": 30, + "column": 4 + }, + "end": { + "line": 30, + "column": 8 + } + }, + "leadingComments": null + }, + "property": { + "type": "Identifier", + "start": 971, + "end": 980, + "loc": { + "start": { + "line": 30, + "column": 9 + }, + "end": { + "line": 30, + "column": 18 + }, + "identifierName": "utilities" + }, + "name": "utilities" + }, + "computed": false, + "leadingComments": null + }, + "right": { + "type": "NewExpression", + "start": 983, + "end": 1002, + "loc": { + "start": { + "line": 30, + "column": 21 + }, + "end": { + "line": 30, + "column": 40 + } + }, + "callee": { + "type": "Identifier", + "start": 987, + "end": 996, + "loc": { + "start": { + "line": 30, + "column": 25 + }, + "end": { + "line": 30, + "column": 34 + }, + "identifierName": "Utilities" + }, + "name": "Utilities" + }, + "arguments": [ + { + "type": "ThisExpression", + "start": 997, + "end": 1001, + "loc": { + "start": { + "line": 30, + "column": 35 + }, + "end": { + "line": 30, + "column": 39 + } + } + } + ] + }, + "leadingComments": null + }, + "leadingComments": [ + { + "type": "CommentBlock", + "value": "*\r\n * Initializing Utilities\r\n ", + "start": 917, + "end": 960, + "loc": { + "start": { + "line": 27, + "column": 4 + }, + "end": { + "line": 29, + "column": 7 + } + } + } + ], + "trailingComments": [ + { + "type": "CommentBlock", + "value": "*\r\n * Processing options\r\n ", + "start": 1011, + "end": 1050, + "loc": { + "start": { + "line": 32, + "column": 4 + }, + "end": { + "line": 34, + "column": 7 + } + } + } + ] + }, + { + "type": "ExpressionStatement", + "start": 1056, + "end": 1116, + "loc": { + "start": { + "line": 35, + "column": 4 + }, + "end": { + "line": 35, + "column": 64 + } + }, + "expression": { + "type": "AssignmentExpression", + "start": 1056, + "end": 1115, + "loc": { + "start": { + "line": 35, + "column": 4 + }, + "end": { + "line": 35, + "column": 63 + } + }, + "operator": "=", + "left": { + "type": "MemberExpression", + "start": 1056, + "end": 1072, + "loc": { + "start": { + "line": 35, + "column": 4 + }, + "end": { + "line": 35, + "column": 20 + } + }, + "object": { + "type": "ThisExpression", + "start": 1056, + "end": 1060, + "loc": { + "start": { + "line": 35, + "column": 4 + }, + "end": { + "line": 35, + "column": 8 + } + }, + "leadingComments": null + }, + "property": { + "type": "Identifier", + "start": 1061, + "end": 1072, + "loc": { + "start": { + "line": 35, + "column": 9 + }, + "end": { + "line": 35, + "column": 20 + }, + "identifierName": "keyboardDOM" + }, + "name": "keyboardDOM" + }, + "computed": false, + "leadingComments": null + }, + "right": { + "type": "CallExpression", + "start": 1075, + "end": 1115, + "loc": { + "start": { + "line": 35, + "column": 23 + }, + "end": { + "line": 35, + "column": 63 + } + }, + "callee": { + "type": "MemberExpression", + "start": 1075, + "end": 1097, + "loc": { + "start": { + "line": 35, + "column": 23 + }, + "end": { + "line": 35, + "column": 45 + } + }, + "object": { + "type": "Identifier", + "start": 1075, + "end": 1083, + "loc": { + "start": { + "line": 35, + "column": 23 + }, + "end": { + "line": 35, + "column": 31 + }, + "identifierName": "document" + }, + "name": "document" + }, + "property": { + "type": "Identifier", + "start": 1084, + "end": 1097, + "loc": { + "start": { + "line": 35, + "column": 32 + }, + "end": { + "line": 35, + "column": 45 + }, + "identifierName": "querySelector" + }, + "name": "querySelector" + }, + "computed": false + }, + "arguments": [ + { + "type": "Identifier", + "start": 1098, + "end": 1114, + "loc": { + "start": { + "line": 35, + "column": 46 + }, + "end": { + "line": 35, + "column": 62 + }, + "identifierName": "keyboardDOMQuery" + }, + "name": "keyboardDOMQuery" + } + ] + }, + "leadingComments": null + }, + "leadingComments": [ + { + "type": "CommentBlock", + "value": "*\r\n * Processing options\r\n ", + "start": 1011, + "end": 1050, + "loc": { + "start": { + "line": 32, + "column": 4 + }, + "end": { + "line": 34, + "column": 7 + } + } + } + ], + "trailingComments": [ + { + "type": "CommentBlock", + "value": "*\r\n * @type {object}\r\n * @property {object} layout Modify the keyboard layout.\r\n * @property {string} layoutName Specifies which layout should be used.\r\n * @property {object} display Replaces variable buttons (such as {bksp}) with a human-friendly name (e.g.: “backspace”).\r\n * @property {boolean} mergeDisplay By default, when you set the display property, you replace the default one. This setting merges them instead.\r\n * @property {string} theme A prop to add your own css classes to the keyboard wrapper. You can add multiple classes separated by a space.\r\n * @property {Array} buttonTheme A prop to add your own css classes to one or several buttons.\r\n * @property {boolean} debug Runs a console.log every time a key is pressed. Displays the buttons pressed and the current input.\r\n * @property {boolean} newLineOnEnter Specifies whether clicking the “ENTER” button will input a newline (\\n) or not.\r\n * @property {boolean} tabCharOnTab Specifies whether clicking the “TAB” button will input a tab character (\\t) or not.\r\n * @property {string} inputName Allows you to use a single simple-keyboard instance for several inputs.\r\n * @property {number} maxLength Restrains all of simple-keyboard inputs to a certain length. This should be used in addition to the input element’s maxlengthattribute.\r\n * @property {object} maxLength Restrains simple-keyboard’s individual inputs to a certain length. This should be used in addition to the input element’s maxlengthattribute.\r\n * @property {boolean} syncInstanceInputs When set to true, this option synchronizes the internal input of every simple-keyboard instance.\r\n * @property {boolean} physicalKeyboardHighlight Enable highlighting of keys pressed on physical keyboard.\r\n * @property {string} physicalKeyboardHighlightTextColor Define the text color that the physical keyboard highlighted key should have.\r\n * @property {string} physicalKeyboardHighlightBgColor Define the background color that the physical keyboard highlighted key should have. \r\n * @property {function(button: string):string} onKeyPress Executes the callback function on key press. Returns button layout name (i.e.: “{shift}”).\r\n * @property {function(input: string):string} onChange Executes the callback function on input change. Returns the current input’s string.\r\n * @property {function} onRender Executes the callback function every time simple-keyboard is rendered (e.g: when you change layouts).\r\n * @property {function} onInit Executes the callback function once simple-keyboard is rendered for the first time (on initialization).\r\n * @property {function(inputs: object):object} onChangeAll Executes the callback function on input change. Returns the input object with all defined inputs.\r\n ", + "start": 1124, + "end": 3943, + "loc": { + "start": { + "line": 37, + "column": 4 + }, + "end": { + "line": 60, + "column": 7 + } + } + } + ] + }, + { + "type": "ExpressionStatement", + "start": 3949, + "end": 3972, + "loc": { + "start": { + "line": 61, + "column": 4 + }, + "end": { + "line": 61, + "column": 27 + } + }, + "expression": { + "type": "AssignmentExpression", + "start": 3949, + "end": 3971, + "loc": { + "start": { + "line": 61, + "column": 4 + }, + "end": { + "line": 61, + "column": 26 + } + }, + "operator": "=", + "left": { + "type": "MemberExpression", + "start": 3949, + "end": 3961, + "loc": { + "start": { + "line": 61, + "column": 4 + }, + "end": { + "line": 61, + "column": 16 + } + }, + "object": { + "type": "ThisExpression", + "start": 3949, + "end": 3953, + "loc": { + "start": { + "line": 61, + "column": 4 + }, + "end": { + "line": 61, + "column": 8 + } + }, + "leadingComments": null + }, + "property": { + "type": "Identifier", + "start": 3954, + "end": 3961, + "loc": { + "start": { + "line": 61, + "column": 9 + }, + "end": { + "line": 61, + "column": 16 + }, + "identifierName": "options" + }, + "name": "options" + }, + "computed": false, + "leadingComments": null + }, + "right": { + "type": "Identifier", + "start": 3964, + "end": 3971, + "loc": { + "start": { + "line": 61, + "column": 19 + }, + "end": { + "line": 61, + "column": 26 + }, + "identifierName": "options" + }, + "name": "options" + }, + "leadingComments": null + }, + "leadingComments": [ + { + "type": "CommentBlock", + "value": "*\r\n * @type {object}\r\n * @property {object} layout Modify the keyboard layout.\r\n * @property {string} layoutName Specifies which layout should be used.\r\n * @property {object} display Replaces variable buttons (such as {bksp}) with a human-friendly name (e.g.: “backspace”).\r\n * @property {boolean} mergeDisplay By default, when you set the display property, you replace the default one. This setting merges them instead.\r\n * @property {string} theme A prop to add your own css classes to the keyboard wrapper. You can add multiple classes separated by a space.\r\n * @property {Array} buttonTheme A prop to add your own css classes to one or several buttons.\r\n * @property {boolean} debug Runs a console.log every time a key is pressed. Displays the buttons pressed and the current input.\r\n * @property {boolean} newLineOnEnter Specifies whether clicking the “ENTER” button will input a newline (\\n) or not.\r\n * @property {boolean} tabCharOnTab Specifies whether clicking the “TAB” button will input a tab character (\\t) or not.\r\n * @property {string} inputName Allows you to use a single simple-keyboard instance for several inputs.\r\n * @property {number} maxLength Restrains all of simple-keyboard inputs to a certain length. This should be used in addition to the input element’s maxlengthattribute.\r\n * @property {object} maxLength Restrains simple-keyboard’s individual inputs to a certain length. This should be used in addition to the input element’s maxlengthattribute.\r\n * @property {boolean} syncInstanceInputs When set to true, this option synchronizes the internal input of every simple-keyboard instance.\r\n * @property {boolean} physicalKeyboardHighlight Enable highlighting of keys pressed on physical keyboard.\r\n * @property {string} physicalKeyboardHighlightTextColor Define the text color that the physical keyboard highlighted key should have.\r\n * @property {string} physicalKeyboardHighlightBgColor Define the background color that the physical keyboard highlighted key should have. \r\n * @property {function(button: string):string} onKeyPress Executes the callback function on key press. Returns button layout name (i.e.: “{shift}”).\r\n * @property {function(input: string):string} onChange Executes the callback function on input change. Returns the current input’s string.\r\n * @property {function} onRender Executes the callback function every time simple-keyboard is rendered (e.g: when you change layouts).\r\n * @property {function} onInit Executes the callback function once simple-keyboard is rendered for the first time (on initialization).\r\n * @property {function(inputs: object):object} onChangeAll Executes the callback function on input change. Returns the input object with all defined inputs.\r\n ", + "start": 1124, + "end": 3943, + "loc": { + "start": { + "line": 37, + "column": 4 + }, + "end": { + "line": 60, + "column": 7 + } + } + } + ] + }, + { + "type": "ExpressionStatement", + "start": 3978, + "end": 4041, + "loc": { + "start": { + "line": 62, + "column": 4 + }, + "end": { + "line": 62, + "column": 67 + } + }, + "expression": { + "type": "AssignmentExpression", + "start": 3978, + "end": 4040, + "loc": { + "start": { + "line": 62, + "column": 4 + }, + "end": { + "line": 62, + "column": 66 + } + }, + "operator": "=", + "left": { + "type": "MemberExpression", + "start": 3978, + "end": 4001, + "loc": { + "start": { + "line": 62, + "column": 4 + }, + "end": { + "line": 62, + "column": 27 + } + }, + "object": { + "type": "MemberExpression", + "start": 3978, + "end": 3990, + "loc": { + "start": { + "line": 62, + "column": 4 + }, + "end": { + "line": 62, + "column": 16 + } + }, + "object": { + "type": "ThisExpression", + "start": 3978, + "end": 3982, + "loc": { + "start": { + "line": 62, + "column": 4 + }, + "end": { + "line": 62, + "column": 8 + } + } + }, + "property": { + "type": "Identifier", + "start": 3983, + "end": 3990, + "loc": { + "start": { + "line": 62, + "column": 9 + }, + "end": { + "line": 62, + "column": 16 + }, + "identifierName": "options" + }, + "name": "options" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 3991, + "end": 4001, + "loc": { + "start": { + "line": 62, + "column": 17 + }, + "end": { + "line": 62, + "column": 27 + }, + "identifierName": "layoutName" + }, + "name": "layoutName" + }, + "computed": false + }, + "right": { + "type": "LogicalExpression", + "start": 4004, + "end": 4040, + "loc": { + "start": { + "line": 62, + "column": 30 + }, + "end": { + "line": 62, + "column": 66 + } + }, + "left": { + "type": "MemberExpression", + "start": 4004, + "end": 4027, + "loc": { + "start": { + "line": 62, + "column": 30 + }, + "end": { + "line": 62, + "column": 53 + } + }, + "object": { + "type": "MemberExpression", + "start": 4004, + "end": 4016, + "loc": { + "start": { + "line": 62, + "column": 30 + }, + "end": { + "line": 62, + "column": 42 + } + }, + "object": { + "type": "ThisExpression", + "start": 4004, + "end": 4008, + "loc": { + "start": { + "line": 62, + "column": 30 + }, + "end": { + "line": 62, + "column": 34 + } + } + }, + "property": { + "type": "Identifier", + "start": 4009, + "end": 4016, + "loc": { + "start": { + "line": 62, + "column": 35 + }, + "end": { + "line": 62, + "column": 42 + }, + "identifierName": "options" + }, + "name": "options" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 4017, + "end": 4027, + "loc": { + "start": { + "line": 62, + "column": 43 + }, + "end": { + "line": 62, + "column": 53 + }, + "identifierName": "layoutName" + }, + "name": "layoutName" + }, + "computed": false + }, + "operator": "||", + "right": { + "type": "StringLiteral", + "start": 4031, + "end": 4040, + "loc": { + "start": { + "line": 62, + "column": 57 + }, + "end": { + "line": 62, + "column": 66 + } + }, + "extra": { + "rawValue": "default", + "raw": "\"default\"" + }, + "value": "default" + } + } + } + }, + { + "type": "ExpressionStatement", + "start": 4047, + "end": 4109, + "loc": { + "start": { + "line": 63, + "column": 4 + }, + "end": { + "line": 63, + "column": 66 + } + }, + "expression": { + "type": "AssignmentExpression", + "start": 4047, + "end": 4108, + "loc": { + "start": { + "line": 63, + "column": 4 + }, + "end": { + "line": 63, + "column": 65 + } + }, + "operator": "=", + "left": { + "type": "MemberExpression", + "start": 4047, + "end": 4065, + "loc": { + "start": { + "line": 63, + "column": 4 + }, + "end": { + "line": 63, + "column": 22 + } + }, + "object": { + "type": "MemberExpression", + "start": 4047, + "end": 4059, + "loc": { + "start": { + "line": 63, + "column": 4 + }, + "end": { + "line": 63, + "column": 16 + } + }, + "object": { + "type": "ThisExpression", + "start": 4047, + "end": 4051, + "loc": { + "start": { + "line": 63, + "column": 4 + }, + "end": { + "line": 63, + "column": 8 + } + } + }, + "property": { + "type": "Identifier", + "start": 4052, + "end": 4059, + "loc": { + "start": { + "line": 63, + "column": 9 + }, + "end": { + "line": 63, + "column": 16 + }, + "identifierName": "options" + }, + "name": "options" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 4060, + "end": 4065, + "loc": { + "start": { + "line": 63, + "column": 17 + }, + "end": { + "line": 63, + "column": 22 + }, + "identifierName": "theme" + }, + "name": "theme" + }, + "computed": false + }, + "right": { + "type": "LogicalExpression", + "start": 4068, + "end": 4108, + "loc": { + "start": { + "line": 63, + "column": 25 + }, + "end": { + "line": 63, + "column": 65 + } + }, + "left": { + "type": "MemberExpression", + "start": 4068, + "end": 4086, + "loc": { + "start": { + "line": 63, + "column": 25 + }, + "end": { + "line": 63, + "column": 43 + } + }, + "object": { + "type": "MemberExpression", + "start": 4068, + "end": 4080, + "loc": { + "start": { + "line": 63, + "column": 25 + }, + "end": { + "line": 63, + "column": 37 + } + }, + "object": { + "type": "ThisExpression", + "start": 4068, + "end": 4072, + "loc": { + "start": { + "line": 63, + "column": 25 + }, + "end": { + "line": 63, + "column": 29 + } + } + }, + "property": { + "type": "Identifier", + "start": 4073, + "end": 4080, + "loc": { + "start": { + "line": 63, + "column": 30 + }, + "end": { + "line": 63, + "column": 37 + }, + "identifierName": "options" + }, + "name": "options" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 4081, + "end": 4086, + "loc": { + "start": { + "line": 63, + "column": 38 + }, + "end": { + "line": 63, + "column": 43 + }, + "identifierName": "theme" + }, + "name": "theme" + }, + "computed": false + }, + "operator": "||", + "right": { + "type": "StringLiteral", + "start": 4090, + "end": 4108, + "loc": { + "start": { + "line": 63, + "column": 47 + }, + "end": { + "line": 63, + "column": 65 + } + }, + "extra": { + "rawValue": "hg-theme-default", + "raw": "\"hg-theme-default\"" + }, + "value": "hg-theme-default" + } + } + } + }, + { + "type": "ExpressionStatement", + "start": 4115, + "end": 4176, + "loc": { + "start": { + "line": 64, + "column": 4 + }, + "end": { + "line": 64, + "column": 65 + } + }, + "expression": { + "type": "AssignmentExpression", + "start": 4115, + "end": 4175, + "loc": { + "start": { + "line": 64, + "column": 4 + }, + "end": { + "line": 64, + "column": 64 + } + }, + "operator": "=", + "left": { + "type": "MemberExpression", + "start": 4115, + "end": 4137, + "loc": { + "start": { + "line": 64, + "column": 4 + }, + "end": { + "line": 64, + "column": 26 + } + }, + "object": { + "type": "MemberExpression", + "start": 4115, + "end": 4127, + "loc": { + "start": { + "line": 64, + "column": 4 + }, + "end": { + "line": 64, + "column": 16 + } + }, + "object": { + "type": "ThisExpression", + "start": 4115, + "end": 4119, + "loc": { + "start": { + "line": 64, + "column": 4 + }, + "end": { + "line": 64, + "column": 8 + } + } + }, + "property": { + "type": "Identifier", + "start": 4120, + "end": 4127, + "loc": { + "start": { + "line": 64, + "column": 9 + }, + "end": { + "line": 64, + "column": 16 + }, + "identifierName": "options" + }, + "name": "options" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 4128, + "end": 4137, + "loc": { + "start": { + "line": 64, + "column": 17 + }, + "end": { + "line": 64, + "column": 26 + }, + "identifierName": "inputName" + }, + "name": "inputName" + }, + "computed": false + }, + "right": { + "type": "LogicalExpression", + "start": 4140, + "end": 4175, + "loc": { + "start": { + "line": 64, + "column": 29 + }, + "end": { + "line": 64, + "column": 64 + } + }, + "left": { + "type": "MemberExpression", + "start": 4140, + "end": 4162, + "loc": { + "start": { + "line": 64, + "column": 29 + }, + "end": { + "line": 64, + "column": 51 + } + }, + "object": { + "type": "MemberExpression", + "start": 4140, + "end": 4152, + "loc": { + "start": { + "line": 64, + "column": 29 + }, + "end": { + "line": 64, + "column": 41 + } + }, + "object": { + "type": "ThisExpression", + "start": 4140, + "end": 4144, + "loc": { + "start": { + "line": 64, + "column": 29 + }, + "end": { + "line": 64, + "column": 33 + } + } + }, + "property": { + "type": "Identifier", + "start": 4145, + "end": 4152, + "loc": { + "start": { + "line": 64, + "column": 34 + }, + "end": { + "line": 64, + "column": 41 + }, + "identifierName": "options" + }, + "name": "options" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 4153, + "end": 4162, + "loc": { + "start": { + "line": 64, + "column": 42 + }, + "end": { + "line": 64, + "column": 51 + }, + "identifierName": "inputName" + }, + "name": "inputName" + }, + "computed": false + }, + "operator": "||", + "right": { + "type": "StringLiteral", + "start": 4166, + "end": 4175, + "loc": { + "start": { + "line": 64, + "column": 55 + }, + "end": { + "line": 64, + "column": 64 + } + }, + "extra": { + "rawValue": "default", + "raw": "\"default\"" + }, + "value": "default" + } + } + }, + "trailingComments": [ + { + "type": "CommentBlock", + "value": "*\r\n * simple-keyboard uses a non-persistent internal input to keep track of the entered string (the variable `keyboard.input`).\r\n * This removes any dependency to input DOM elements. You can type and directly display the value in a div element, for example.\r\n * @example\r\n * // To get entered input\r\n * let input = keyboard.getInput();\r\n * \r\n * // To clear entered input.\r\n * keyboard.clearInput();\r\n * \r\n * @type {object}\r\n * @property {object} default Default SimpleKeyboard internal input.\r\n * @property {object} myInputName Example input that can be set through `options.inputName:\"myInputName\"`.\r\n ", + "start": 4184, + "end": 4843, + "loc": { + "start": { + "line": 66, + "column": 4 + }, + "end": { + "line": 79, + "column": 7 + } + } + } + ] + }, + { + "type": "ExpressionStatement", + "start": 4849, + "end": 4865, + "loc": { + "start": { + "line": 80, + "column": 4 + }, + "end": { + "line": 80, + "column": 20 + } + }, + "expression": { + "type": "AssignmentExpression", + "start": 4849, + "end": 4864, + "loc": { + "start": { + "line": 80, + "column": 4 + }, + "end": { + "line": 80, + "column": 19 + } + }, + "operator": "=", + "left": { + "type": "MemberExpression", + "start": 4849, + "end": 4859, + "loc": { + "start": { + "line": 80, + "column": 4 + }, + "end": { + "line": 80, + "column": 14 + } + }, + "object": { + "type": "ThisExpression", + "start": 4849, + "end": 4853, + "loc": { + "start": { + "line": 80, + "column": 4 + }, + "end": { + "line": 80, + "column": 8 + } + }, + "leadingComments": null + }, + "property": { + "type": "Identifier", + "start": 4854, + "end": 4859, + "loc": { + "start": { + "line": 80, + "column": 9 + }, + "end": { + "line": 80, + "column": 14 + }, + "identifierName": "input" + }, + "name": "input" + }, + "computed": false, + "leadingComments": null + }, + "right": { + "type": "ObjectExpression", + "start": 4862, + "end": 4864, + "loc": { + "start": { + "line": 80, + "column": 17 + }, + "end": { + "line": 80, + "column": 19 + } + }, + "properties": [] + }, + "leadingComments": null + }, + "leadingComments": [ + { + "type": "CommentBlock", + "value": "*\r\n * simple-keyboard uses a non-persistent internal input to keep track of the entered string (the variable `keyboard.input`).\r\n * This removes any dependency to input DOM elements. You can type and directly display the value in a div element, for example.\r\n * @example\r\n * // To get entered input\r\n * let input = keyboard.getInput();\r\n * \r\n * // To clear entered input.\r\n * keyboard.clearInput();\r\n * \r\n * @type {object}\r\n * @property {object} default Default SimpleKeyboard internal input.\r\n * @property {object} myInputName Example input that can be set through `options.inputName:\"myInputName\"`.\r\n ", + "start": 4184, + "end": 4843, + "loc": { + "start": { + "line": 66, + "column": 4 + }, + "end": { + "line": 79, + "column": 7 + } + } + } + ] + }, + { + "type": "ExpressionStatement", + "start": 4871, + "end": 4911, + "loc": { + "start": { + "line": 81, + "column": 4 + }, + "end": { + "line": 81, + "column": 44 + } + }, + "expression": { + "type": "AssignmentExpression", + "start": 4871, + "end": 4910, + "loc": { + "start": { + "line": 81, + "column": 4 + }, + "end": { + "line": 81, + "column": 43 + } + }, + "operator": "=", + "left": { + "type": "MemberExpression", + "start": 4871, + "end": 4905, + "loc": { + "start": { + "line": 81, + "column": 4 + }, + "end": { + "line": 81, + "column": 38 + } + }, + "object": { + "type": "MemberExpression", + "start": 4871, + "end": 4881, + "loc": { + "start": { + "line": 81, + "column": 4 + }, + "end": { + "line": 81, + "column": 14 + } + }, + "object": { + "type": "ThisExpression", + "start": 4871, + "end": 4875, + "loc": { + "start": { + "line": 81, + "column": 4 + }, + "end": { + "line": 81, + "column": 8 + } + } + }, + "property": { + "type": "Identifier", + "start": 4876, + "end": 4881, + "loc": { + "start": { + "line": 81, + "column": 9 + }, + "end": { + "line": 81, + "column": 14 + }, + "identifierName": "input" + }, + "name": "input" + }, + "computed": false + }, + "property": { + "type": "MemberExpression", + "start": 4882, + "end": 4904, + "loc": { + "start": { + "line": 81, + "column": 15 + }, + "end": { + "line": 81, + "column": 37 + } + }, + "object": { + "type": "MemberExpression", + "start": 4882, + "end": 4894, + "loc": { + "start": { + "line": 81, + "column": 15 + }, + "end": { + "line": 81, + "column": 27 + } + }, + "object": { + "type": "ThisExpression", + "start": 4882, + "end": 4886, + "loc": { + "start": { + "line": 81, + "column": 15 + }, + "end": { + "line": 81, + "column": 19 + } + } + }, + "property": { + "type": "Identifier", + "start": 4887, + "end": 4894, + "loc": { + "start": { + "line": 81, + "column": 20 + }, + "end": { + "line": 81, + "column": 27 + }, + "identifierName": "options" + }, + "name": "options" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 4895, + "end": 4904, + "loc": { + "start": { + "line": 81, + "column": 28 + }, + "end": { + "line": 81, + "column": 37 + }, + "identifierName": "inputName" + }, + "name": "inputName" + }, + "computed": false + }, + "computed": true + }, + "right": { + "type": "StringLiteral", + "start": 4908, + "end": 4910, + "loc": { + "start": { + "line": 81, + "column": 41 + }, + "end": { + "line": 81, + "column": 43 + } + }, + "extra": { + "rawValue": "", + "raw": "''" + }, + "value": "" + } + }, + "trailingComments": [ + { + "type": "CommentBlock", + "value": "*\r\n * @type {string} DOM class of the keyboard wrapper, normally \"simple-keyboard\" by default.\r\n ", + "start": 4919, + "end": 5028, + "loc": { + "start": { + "line": 83, + "column": 4 + }, + "end": { + "line": 85, + "column": 7 + } + } + } + ] + }, + { + "type": "ExpressionStatement", + "start": 5034, + "end": 5095, + "loc": { + "start": { + "line": 86, + "column": 4 + }, + "end": { + "line": 86, + "column": 65 + } + }, + "expression": { + "type": "AssignmentExpression", + "start": 5034, + "end": 5094, + "loc": { + "start": { + "line": 86, + "column": 4 + }, + "end": { + "line": 86, + "column": 64 + } + }, + "operator": "=", + "left": { + "type": "MemberExpression", + "start": 5034, + "end": 5055, + "loc": { + "start": { + "line": 86, + "column": 4 + }, + "end": { + "line": 86, + "column": 25 + } + }, + "object": { + "type": "ThisExpression", + "start": 5034, + "end": 5038, + "loc": { + "start": { + "line": 86, + "column": 4 + }, + "end": { + "line": 86, + "column": 8 + } + }, + "leadingComments": null + }, + "property": { + "type": "Identifier", + "start": 5039, + "end": 5055, + "loc": { + "start": { + "line": 86, + "column": 9 + }, + "end": { + "line": 86, + "column": 25 + }, + "identifierName": "keyboardDOMClass" + }, + "name": "keyboardDOMClass" + }, + "computed": false, + "leadingComments": null + }, + "right": { + "type": "CallExpression", + "start": 5058, + "end": 5094, + "loc": { + "start": { + "line": 86, + "column": 28 + }, + "end": { + "line": 86, + "column": 64 + } + }, + "callee": { + "type": "MemberExpression", + "start": 5058, + "end": 5090, + "loc": { + "start": { + "line": 86, + "column": 28 + }, + "end": { + "line": 86, + "column": 60 + } + }, + "object": { + "type": "CallExpression", + "start": 5058, + "end": 5085, + "loc": { + "start": { + "line": 86, + "column": 28 + }, + "end": { + "line": 86, + "column": 55 + } + }, + "callee": { + "type": "MemberExpression", + "start": 5058, + "end": 5080, + "loc": { + "start": { + "line": 86, + "column": 28 + }, + "end": { + "line": 86, + "column": 50 + } + }, + "object": { + "type": "Identifier", + "start": 5058, + "end": 5074, + "loc": { + "start": { + "line": 86, + "column": 28 + }, + "end": { + "line": 86, + "column": 44 + }, + "identifierName": "keyboardDOMQuery" + }, + "name": "keyboardDOMQuery" + }, + "property": { + "type": "Identifier", + "start": 5075, + "end": 5080, + "loc": { + "start": { + "line": 86, + "column": 45 + }, + "end": { + "line": 86, + "column": 50 + }, + "identifierName": "split" + }, + "name": "split" + }, + "computed": false + }, + "arguments": [ + { + "type": "StringLiteral", + "start": 5081, + "end": 5084, + "loc": { + "start": { + "line": 86, + "column": 51 + }, + "end": { + "line": 86, + "column": 54 + } + }, + "extra": { + "rawValue": ".", + "raw": "'.'" + }, + "value": "." + } + ] + }, + "property": { + "type": "Identifier", + "start": 5086, + "end": 5090, + "loc": { + "start": { + "line": 86, + "column": 56 + }, + "end": { + "line": 86, + "column": 60 + }, + "identifierName": "join" + }, + "name": "join" + }, + "computed": false + }, + "arguments": [ + { + "type": "StringLiteral", + "start": 5091, + "end": 5093, + "loc": { + "start": { + "line": 86, + "column": 61 + }, + "end": { + "line": 86, + "column": 63 + } + }, + "extra": { + "rawValue": "", + "raw": "\"\"" + }, + "value": "" + } + ] + }, + "leadingComments": null + }, + "leadingComments": [ + { + "type": "CommentBlock", + "value": "*\r\n * @type {string} DOM class of the keyboard wrapper, normally \"simple-keyboard\" by default.\r\n ", + "start": 4919, + "end": 5028, + "loc": { + "start": { + "line": 83, + "column": 4 + }, + "end": { + "line": 85, + "column": 7 + } + } + } + ], + "trailingComments": [ + { + "type": "CommentBlock", + "value": "*\r\n * @type {object} Contains the DOM elements of every rendered button, the key being the button's layout name (e.g.: \"{enter}\").\r\n ", + "start": 5103, + "end": 5248, + "loc": { + "start": { + "line": 88, + "column": 4 + }, + "end": { + "line": 90, + "column": 7 + } + } + } + ] + }, + { + "type": "ExpressionStatement", + "start": 5254, + "end": 5279, + "loc": { + "start": { + "line": 91, + "column": 4 + }, + "end": { + "line": 91, + "column": 29 + } + }, + "expression": { + "type": "AssignmentExpression", + "start": 5254, + "end": 5278, + "loc": { + "start": { + "line": 91, + "column": 4 + }, + "end": { + "line": 91, + "column": 28 + } + }, + "operator": "=", + "left": { + "type": "MemberExpression", + "start": 5254, + "end": 5273, + "loc": { + "start": { + "line": 91, + "column": 4 + }, + "end": { + "line": 91, + "column": 23 + } + }, + "object": { + "type": "ThisExpression", + "start": 5254, + "end": 5258, + "loc": { + "start": { + "line": 91, + "column": 4 + }, + "end": { + "line": 91, + "column": 8 + } + }, + "leadingComments": null + }, + "property": { + "type": "Identifier", + "start": 5259, + "end": 5273, + "loc": { + "start": { + "line": 91, + "column": 9 + }, + "end": { + "line": 91, + "column": 23 + }, + "identifierName": "buttonElements" + }, + "name": "buttonElements" + }, + "computed": false, + "leadingComments": null + }, + "right": { + "type": "ObjectExpression", + "start": 5276, + "end": 5278, + "loc": { + "start": { + "line": 91, + "column": 26 + }, + "end": { + "line": 91, + "column": 28 + } + }, + "properties": [] + }, + "leadingComments": null + }, + "leadingComments": [ + { + "type": "CommentBlock", + "value": "*\r\n * @type {object} Contains the DOM elements of every rendered button, the key being the button's layout name (e.g.: \"{enter}\").\r\n ", + "start": 5103, + "end": 5248, + "loc": { + "start": { + "line": 88, + "column": 4 + }, + "end": { + "line": 90, + "column": 7 + } + } + } + ], + "trailingComments": [ + { + "type": "CommentBlock", + "value": "*\r\n * Rendering keyboard\r\n ", + "start": 5287, + "end": 5326, + "loc": { + "start": { + "line": 93, + "column": 4 + }, + "end": { + "line": 95, + "column": 7 + } + } + } + ] + }, + { + "type": "IfStatement", + "start": 5332, + "end": 5511, + "loc": { + "start": { + "line": 96, + "column": 4 + }, + "end": { + "line": 101, + "column": 5 + } + }, + "test": { + "type": "MemberExpression", + "start": 5335, + "end": 5351, + "loc": { + "start": { + "line": 96, + "column": 7 + }, + "end": { + "line": 96, + "column": 23 + } + }, + "object": { + "type": "ThisExpression", + "start": 5335, + "end": 5339, + "loc": { + "start": { + "line": 96, + "column": 7 + }, + "end": { + "line": 96, + "column": 11 + } + }, + "leadingComments": null + }, + "property": { + "type": "Identifier", + "start": 5340, + "end": 5351, + "loc": { + "start": { + "line": 96, + "column": 12 + }, + "end": { + "line": 96, + "column": 23 + }, + "identifierName": "keyboardDOM" + }, + "name": "keyboardDOM" + }, + "computed": false, + "leadingComments": null + }, + "consequent": { + "type": "ExpressionStatement", + "start": 5360, + "end": 5374, + "loc": { + "start": { + "line": 97, + "column": 6 + }, + "end": { + "line": 97, + "column": 20 + } + }, + "expression": { + "type": "CallExpression", + "start": 5360, + "end": 5373, + "loc": { + "start": { + "line": 97, + "column": 6 + }, + "end": { + "line": 97, + "column": 19 + } + }, + "callee": { + "type": "MemberExpression", + "start": 5360, + "end": 5371, + "loc": { + "start": { + "line": 97, + "column": 6 + }, + "end": { + "line": 97, + "column": 17 + } + }, + "object": { + "type": "ThisExpression", + "start": 5360, + "end": 5364, + "loc": { + "start": { + "line": 97, + "column": 6 + }, + "end": { + "line": 97, + "column": 10 + } + } + }, + "property": { + "type": "Identifier", + "start": 5365, + "end": 5371, + "loc": { + "start": { + "line": 97, + "column": 11 + }, + "end": { + "line": 97, + "column": 17 + }, + "identifierName": "render" + }, + "name": "render" + }, + "computed": false + }, + "arguments": [] + } + }, + "alternate": { + "type": "BlockStatement", + "start": 5385, + "end": 5511, + "loc": { + "start": { + "line": 98, + "column": 9 + }, + "end": { + "line": 101, + "column": 5 + } + }, + "body": [ + { + "type": "ExpressionStatement", + "start": 5394, + "end": 5458, + "loc": { + "start": { + "line": 99, + "column": 6 + }, + "end": { + "line": 99, + "column": 70 + } + }, + "expression": { + "type": "CallExpression", + "start": 5394, + "end": 5457, + "loc": { + "start": { + "line": 99, + "column": 6 + }, + "end": { + "line": 99, + "column": 69 + } + }, + "callee": { + "type": "MemberExpression", + "start": 5394, + "end": 5406, + "loc": { + "start": { + "line": 99, + "column": 6 + }, + "end": { + "line": 99, + "column": 18 + } + }, + "object": { + "type": "Identifier", + "start": 5394, + "end": 5401, + "loc": { + "start": { + "line": 99, + "column": 6 + }, + "end": { + "line": 99, + "column": 13 + }, + "identifierName": "console" + }, + "name": "console" + }, + "property": { + "type": "Identifier", + "start": 5402, + "end": 5406, + "loc": { + "start": { + "line": 99, + "column": 14 + }, + "end": { + "line": 99, + "column": 18 + }, + "identifierName": "warn" + }, + "name": "warn" + }, + "computed": false + }, + "arguments": [ + { + "type": "TemplateLiteral", + "start": 5407, + "end": 5456, + "loc": { + "start": { + "line": 99, + "column": 19 + }, + "end": { + "line": 99, + "column": 68 + } + }, + "expressions": [ + { + "type": "Identifier", + "start": 5411, + "end": 5427, + "loc": { + "start": { + "line": 99, + "column": 23 + }, + "end": { + "line": 99, + "column": 39 + }, + "identifierName": "keyboardDOMQuery" + }, + "name": "keyboardDOMQuery" + } + ], + "quasis": [ + { + "type": "TemplateElement", + "start": 5408, + "end": 5409, + "loc": { + "start": { + "line": 99, + "column": 20 + }, + "end": { + "line": 99, + "column": 21 + } + }, + "value": { + "raw": "\"", + "cooked": "\"" + }, + "tail": false + }, + { + "type": "TemplateElement", + "start": 5428, + "end": 5455, + "loc": { + "start": { + "line": 99, + "column": 40 + }, + "end": { + "line": 99, + "column": 67 + } + }, + "value": { + "raw": "\" was not found in the DOM.", + "cooked": "\" was not found in the DOM." + }, + "tail": true + } + ] + } + ] + } + }, + { + "type": "ThrowStatement", + "start": 5466, + "end": 5504, + "loc": { + "start": { + "line": 100, + "column": 6 + }, + "end": { + "line": 100, + "column": 44 + } + }, + "argument": { + "type": "NewExpression", + "start": 5472, + "end": 5503, + "loc": { + "start": { + "line": 100, + "column": 12 + }, + "end": { + "line": 100, + "column": 43 + } + }, + "callee": { + "type": "Identifier", + "start": 5476, + "end": 5481, + "loc": { + "start": { + "line": 100, + "column": 16 + }, + "end": { + "line": 100, + "column": 21 + }, + "identifierName": "Error" + }, + "name": "Error" + }, + "arguments": [ + { + "type": "StringLiteral", + "start": 5482, + "end": 5502, + "loc": { + "start": { + "line": 100, + "column": 22 + }, + "end": { + "line": 100, + "column": 42 + } + }, + "extra": { + "rawValue": "KEYBOARD_DOM_ERROR", + "raw": "\"KEYBOARD_DOM_ERROR\"" + }, + "value": "KEYBOARD_DOM_ERROR" + } + ] + } + } + ], + "directives": [], + "trailingComments": null + }, + "leadingComments": [ + { + "type": "CommentBlock", + "value": "*\r\n * Rendering keyboard\r\n ", + "start": 5287, + "end": 5326, + "loc": { + "start": { + "line": 93, + "column": 4 + }, + "end": { + "line": 95, + "column": 7 + } + } + } + ], + "trailingComments": [ + { + "type": "CommentBlock", + "value": "*\r\n * Saving instance\r\n * This enables multiple simple-keyboard support with easier management\r\n ", + "start": 5519, + "end": 5632, + "loc": { + "start": { + "line": 103, + "column": 4 + }, + "end": { + "line": 106, + "column": 7 + } + } + } + ] + }, + { + "type": "IfStatement", + "start": 5638, + "end": 5723, + "loc": { + "start": { + "line": 107, + "column": 4 + }, + "end": { + "line": 108, + "column": 45 + } + }, + "test": { + "type": "UnaryExpression", + "start": 5641, + "end": 5675, + "loc": { + "start": { + "line": 107, + "column": 7 + }, + "end": { + "line": 107, + "column": 41 + } + }, + "operator": "!", + "prefix": true, + "argument": { + "type": "MemberExpression", + "start": 5642, + "end": 5675, + "loc": { + "start": { + "line": 107, + "column": 8 + }, + "end": { + "line": 107, + "column": 41 + } + }, + "object": { + "type": "Identifier", + "start": 5642, + "end": 5648, + "loc": { + "start": { + "line": 107, + "column": 8 + }, + "end": { + "line": 107, + "column": 14 + }, + "identifierName": "window" + }, + "name": "window", + "leadingComments": null + }, + "property": { + "type": "StringLiteral", + "start": 5649, + "end": 5674, + "loc": { + "start": { + "line": 107, + "column": 15 + }, + "end": { + "line": 107, + "column": 40 + } + }, + "extra": { + "rawValue": "SimpleKeyboardInstances", + "raw": "'SimpleKeyboardInstances'" + }, + "value": "SimpleKeyboardInstances" + }, + "computed": true, + "leadingComments": null + }, + "extra": { + "parenthesizedArgument": false + }, + "leadingComments": null + }, + "consequent": { + "type": "ExpressionStatement", + "start": 5684, + "end": 5723, + "loc": { + "start": { + "line": 108, + "column": 6 + }, + "end": { + "line": 108, + "column": 45 + } + }, + "expression": { + "type": "AssignmentExpression", + "start": 5684, + "end": 5722, + "loc": { + "start": { + "line": 108, + "column": 6 + }, + "end": { + "line": 108, + "column": 44 + } + }, + "operator": "=", + "left": { + "type": "MemberExpression", + "start": 5684, + "end": 5717, + "loc": { + "start": { + "line": 108, + "column": 6 + }, + "end": { + "line": 108, + "column": 39 + } + }, + "object": { + "type": "Identifier", + "start": 5684, + "end": 5690, + "loc": { + "start": { + "line": 108, + "column": 6 + }, + "end": { + "line": 108, + "column": 12 + }, + "identifierName": "window" + }, + "name": "window" + }, + "property": { + "type": "StringLiteral", + "start": 5691, + "end": 5716, + "loc": { + "start": { + "line": 108, + "column": 13 + }, + "end": { + "line": 108, + "column": 38 + } + }, + "extra": { + "rawValue": "SimpleKeyboardInstances", + "raw": "'SimpleKeyboardInstances'" + }, + "value": "SimpleKeyboardInstances" + }, + "computed": true + }, + "right": { + "type": "ObjectExpression", + "start": 5720, + "end": 5722, + "loc": { + "start": { + "line": 108, + "column": 42 + }, + "end": { + "line": 108, + "column": 44 + } + }, + "properties": [] + } + } + }, + "alternate": null, + "leadingComments": [ + { + "type": "CommentBlock", + "value": "*\r\n * Saving instance\r\n * This enables multiple simple-keyboard support with easier management\r\n ", + "start": 5519, + "end": 5632, + "loc": { + "start": { + "line": 103, + "column": 4 + }, + "end": { + "line": 106, + "column": 7 + } + } + } + ] + }, + { + "type": "ExpressionStatement", + "start": 5737, + "end": 5827, + "loc": { + "start": { + "line": 110, + "column": 4 + }, + "end": { + "line": 110, + "column": 94 + } + }, + "expression": { + "type": "AssignmentExpression", + "start": 5737, + "end": 5826, + "loc": { + "start": { + "line": 110, + "column": 4 + }, + "end": { + "line": 110, + "column": 93 + } + }, + "operator": "=", + "left": { + "type": "MemberExpression", + "start": 5737, + "end": 5819, + "loc": { + "start": { + "line": 110, + "column": 4 + }, + "end": { + "line": 110, + "column": 86 + } + }, + "object": { + "type": "MemberExpression", + "start": 5737, + "end": 5770, + "loc": { + "start": { + "line": 110, + "column": 4 + }, + "end": { + "line": 110, + "column": 37 + } + }, + "object": { + "type": "Identifier", + "start": 5737, + "end": 5743, + "loc": { + "start": { + "line": 110, + "column": 4 + }, + "end": { + "line": 110, + "column": 10 + }, + "identifierName": "window" + }, + "name": "window" + }, + "property": { + "type": "StringLiteral", + "start": 5744, + "end": 5769, + "loc": { + "start": { + "line": 110, + "column": 11 + }, + "end": { + "line": 110, + "column": 36 + } + }, + "extra": { + "rawValue": "SimpleKeyboardInstances", + "raw": "'SimpleKeyboardInstances'" + }, + "value": "SimpleKeyboardInstances" + }, + "computed": true + }, + "property": { + "type": "CallExpression", + "start": 5771, + "end": 5818, + "loc": { + "start": { + "line": 110, + "column": 38 + }, + "end": { + "line": 110, + "column": 85 + } + }, + "callee": { + "type": "MemberExpression", + "start": 5771, + "end": 5795, + "loc": { + "start": { + "line": 110, + "column": 38 + }, + "end": { + "line": 110, + "column": 62 + } + }, + "object": { + "type": "MemberExpression", + "start": 5771, + "end": 5785, + "loc": { + "start": { + "line": 110, + "column": 38 + }, + "end": { + "line": 110, + "column": 52 + } + }, + "object": { + "type": "ThisExpression", + "start": 5771, + "end": 5775, + "loc": { + "start": { + "line": 110, + "column": 38 + }, + "end": { + "line": 110, + "column": 42 + } + } + }, + "property": { + "type": "Identifier", + "start": 5776, + "end": 5785, + "loc": { + "start": { + "line": 110, + "column": 43 + }, + "end": { + "line": 110, + "column": 52 + }, + "identifierName": "utilities" + }, + "name": "utilities" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 5786, + "end": 5795, + "loc": { + "start": { + "line": 110, + "column": 53 + }, + "end": { + "line": 110, + "column": 62 + }, + "identifierName": "camelCase" + }, + "name": "camelCase" + }, + "computed": false + }, + "arguments": [ + { + "type": "MemberExpression", + "start": 5796, + "end": 5817, + "loc": { + "start": { + "line": 110, + "column": 63 + }, + "end": { + "line": 110, + "column": 84 + } + }, + "object": { + "type": "ThisExpression", + "start": 5796, + "end": 5800, + "loc": { + "start": { + "line": 110, + "column": 63 + }, + "end": { + "line": 110, + "column": 67 + } + } + }, + "property": { + "type": "Identifier", + "start": 5801, + "end": 5817, + "loc": { + "start": { + "line": 110, + "column": 68 + }, + "end": { + "line": 110, + "column": 84 + }, + "identifierName": "keyboardDOMClass" + }, + "name": "keyboardDOMClass" + }, + "computed": false + } + ] + }, + "computed": true + }, + "right": { + "type": "ThisExpression", + "start": 5822, + "end": 5826, + "loc": { + "start": { + "line": 110, + "column": 89 + }, + "end": { + "line": 110, + "column": 93 + } + } + } + }, + "trailingComments": [ + { + "type": "CommentBlock", + "value": "*\r\n * Physical Keyboard support\r\n ", + "start": 5835, + "end": 5881, + "loc": { + "start": { + "line": 112, + "column": 4 + }, + "end": { + "line": 114, + "column": 7 + } + } + } + ] + }, + { + "type": "ExpressionStatement", + "start": 5887, + "end": 5947, + "loc": { + "start": { + "line": 115, + "column": 4 + }, + "end": { + "line": 115, + "column": 64 + } + }, + "expression": { + "type": "AssignmentExpression", + "start": 5887, + "end": 5946, + "loc": { + "start": { + "line": 115, + "column": 4 + }, + "end": { + "line": 115, + "column": 63 + } + }, + "operator": "=", + "left": { + "type": "MemberExpression", + "start": 5887, + "end": 5917, + "loc": { + "start": { + "line": 115, + "column": 4 + }, + "end": { + "line": 115, + "column": 34 + } + }, + "object": { + "type": "ThisExpression", + "start": 5887, + "end": 5891, + "loc": { + "start": { + "line": 115, + "column": 4 + }, + "end": { + "line": 115, + "column": 8 + } + }, + "leadingComments": null + }, + "property": { + "type": "Identifier", + "start": 5892, + "end": 5917, + "loc": { + "start": { + "line": 115, + "column": 9 + }, + "end": { + "line": 115, + "column": 34 + }, + "identifierName": "physicalKeyboardInterface" + }, + "name": "physicalKeyboardInterface" + }, + "computed": false, + "leadingComments": null + }, + "right": { + "type": "NewExpression", + "start": 5920, + "end": 5946, + "loc": { + "start": { + "line": 115, + "column": 37 + }, + "end": { + "line": 115, + "column": 63 + } + }, + "callee": { + "type": "Identifier", + "start": 5924, + "end": 5940, + "loc": { + "start": { + "line": 115, + "column": 41 + }, + "end": { + "line": 115, + "column": 57 + }, + "identifierName": "PhysicalKeyboard" + }, + "name": "PhysicalKeyboard" + }, + "arguments": [ + { + "type": "ThisExpression", + "start": 5941, + "end": 5945, + "loc": { + "start": { + "line": 115, + "column": 58 + }, + "end": { + "line": 115, + "column": 62 + } + } + } + ] + }, + "leadingComments": null + }, + "leadingComments": [ + { + "type": "CommentBlock", + "value": "*\r\n * Physical Keyboard support\r\n ", + "start": 5835, + "end": 5881, + "loc": { + "start": { + "line": 112, + "column": 4 + }, + "end": { + "line": 114, + "column": 7 + } + } + } + ] + } + ], + "directives": [], + "trailingComments": null + }, + "leadingComments": [ + { + "type": "CommentBlock", + "value": "*\r\n * Creates an instance of SimpleKeyboard\r\n * @param {Array} params If first parameter is a string, it is considered the container class. The second parameter is then considered the options object. If first parameter is an object, it is considered the options object.\r\n ", + "start": 393, + "end": 675, + "loc": { + "start": { + "line": 16, + "column": 2 + }, + "end": { + "line": 19, + "column": 5 + } + } + } + ], + "trailingComments": [ + { + "type": "CommentBlock", + "value": "*\r\n * Handles clicks made to keyboard buttons\r\n * @param {string} button The button's layout name.\r\n ", + "start": 5956, + "end": 6068, + "loc": { + "start": { + "line": 117, + "column": 2 + }, + "end": { + "line": 120, + "column": 5 + } + } + } + ] + }, + { + "type": "ClassProperty", + "start": 6072, + "end": 7466, + "loc": { + "start": { + "line": 121, + "column": 2 + }, + "end": { + "line": 171, + "column": 3 + } + }, + "static": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 6072, + "end": 6091, + "loc": { + "start": { + "line": 121, + "column": 2 + }, + "end": { + "line": 121, + "column": 21 + }, + "identifierName": "handleButtonClicked" + }, + "name": "handleButtonClicked", + "leadingComments": null + }, + "value": { + "type": "ArrowFunctionExpression", + "start": 6094, + "end": 7466, + "loc": { + "start": { + "line": 121, + "column": 24 + }, + "end": { + "line": 171, + "column": 3 + } + }, + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 6095, + "end": 6101, + "loc": { + "start": { + "line": 121, + "column": 25 + }, + "end": { + "line": 121, + "column": 31 + }, + "identifierName": "button" + }, + "name": "button" + } + ], + "body": { + "type": "BlockStatement", + "start": 6106, + "end": 7466, + "loc": { + "start": { + "line": 121, + "column": 36 + }, + "end": { + "line": 171, + "column": 3 + } + }, + "body": [ + { + "type": "VariableDeclaration", + "start": 6113, + "end": 6144, + "loc": { + "start": { + "line": 122, + "column": 4 + }, + "end": { + "line": 122, + "column": 35 + } + }, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 6117, + "end": 6143, + "loc": { + "start": { + "line": 122, + "column": 8 + }, + "end": { + "line": 122, + "column": 34 + } + }, + "id": { + "type": "Identifier", + "start": 6117, + "end": 6122, + "loc": { + "start": { + "line": 122, + "column": 8 + }, + "end": { + "line": 122, + "column": 13 + }, + "identifierName": "debug" + }, + "name": "debug" + }, + "init": { + "type": "MemberExpression", + "start": 6125, + "end": 6143, + "loc": { + "start": { + "line": 122, + "column": 16 + }, + "end": { + "line": 122, + "column": 34 + } + }, + "object": { + "type": "MemberExpression", + "start": 6125, + "end": 6137, + "loc": { + "start": { + "line": 122, + "column": 16 + }, + "end": { + "line": 122, + "column": 28 + } + }, + "object": { + "type": "ThisExpression", + "start": 6125, + "end": 6129, + "loc": { + "start": { + "line": 122, + "column": 16 + }, + "end": { + "line": 122, + "column": 20 + } + } + }, + "property": { + "type": "Identifier", + "start": 6130, + "end": 6137, + "loc": { + "start": { + "line": 122, + "column": 21 + }, + "end": { + "line": 122, + "column": 28 + }, + "identifierName": "options" + }, + "name": "options" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 6138, + "end": 6143, + "loc": { + "start": { + "line": 122, + "column": 29 + }, + "end": { + "line": 122, + "column": 34 + }, + "identifierName": "debug" + }, + "name": "debug" + }, + "computed": false + } + } + ], + "kind": "let", + "trailingComments": [ + { + "type": "CommentBlock", + "value": "*\r\n * Ignoring placeholder buttons\r\n ", + "start": 6152, + "end": 6201, + "loc": { + "start": { + "line": 124, + "column": 4 + }, + "end": { + "line": 126, + "column": 7 + } + } + } + ] + }, + { + "type": "IfStatement", + "start": 6207, + "end": 6249, + "loc": { + "start": { + "line": 127, + "column": 4 + }, + "end": { + "line": 128, + "column": 19 + } + }, + "test": { + "type": "BinaryExpression", + "start": 6210, + "end": 6227, + "loc": { + "start": { + "line": 127, + "column": 7 + }, + "end": { + "line": 127, + "column": 24 + } + }, + "left": { + "type": "Identifier", + "start": 6210, + "end": 6216, + "loc": { + "start": { + "line": 127, + "column": 7 + }, + "end": { + "line": 127, + "column": 13 + }, + "identifierName": "button" + }, + "name": "button", + "leadingComments": null + }, + "operator": "===", + "right": { + "type": "StringLiteral", + "start": 6221, + "end": 6227, + "loc": { + "start": { + "line": 127, + "column": 18 + }, + "end": { + "line": 127, + "column": 24 + } + }, + "extra": { + "rawValue": "{//}", + "raw": "'{//}'" + }, + "value": "{//}" + }, + "leadingComments": null + }, + "consequent": { + "type": "ReturnStatement", + "start": 6236, + "end": 6249, + "loc": { + "start": { + "line": 128, + "column": 6 + }, + "end": { + "line": 128, + "column": 19 + } + }, + "argument": { + "type": "BooleanLiteral", + "start": 6243, + "end": 6248, + "loc": { + "start": { + "line": 128, + "column": 13 + }, + "end": { + "line": 128, + "column": 18 + } + }, + "value": false + }, + "trailingComments": null + }, + "alternate": null, + "leadingComments": [ + { + "type": "CommentBlock", + "value": "*\r\n * Ignoring placeholder buttons\r\n ", + "start": 6152, + "end": 6201, + "loc": { + "start": { + "line": 124, + "column": 4 + }, + "end": { + "line": 126, + "column": 7 + } + } + } + ], + "trailingComments": [ + { + "type": "CommentBlock", + "value": "*\r\n * Calling onKeyPress\r\n ", + "start": 6257, + "end": 6296, + "loc": { + "start": { + "line": 130, + "column": 4 + }, + "end": { + "line": 132, + "column": 7 + } + } + } + ] + }, + { + "type": "IfStatement", + "start": 6302, + "end": 6391, + "loc": { + "start": { + "line": 133, + "column": 4 + }, + "end": { + "line": 134, + "column": 38 + } + }, + "test": { + "type": "BinaryExpression", + "start": 6305, + "end": 6350, + "loc": { + "start": { + "line": 133, + "column": 7 + }, + "end": { + "line": 133, + "column": 52 + } + }, + "left": { + "type": "UnaryExpression", + "start": 6305, + "end": 6335, + "loc": { + "start": { + "line": 133, + "column": 7 + }, + "end": { + "line": 133, + "column": 37 + } + }, + "operator": "typeof", + "prefix": true, + "argument": { + "type": "MemberExpression", + "start": 6312, + "end": 6335, + "loc": { + "start": { + "line": 133, + "column": 14 + }, + "end": { + "line": 133, + "column": 37 + } + }, + "object": { + "type": "MemberExpression", + "start": 6312, + "end": 6324, + "loc": { + "start": { + "line": 133, + "column": 14 + }, + "end": { + "line": 133, + "column": 26 + } + }, + "object": { + "type": "ThisExpression", + "start": 6312, + "end": 6316, + "loc": { + "start": { + "line": 133, + "column": 14 + }, + "end": { + "line": 133, + "column": 18 + } + }, + "leadingComments": null + }, + "property": { + "type": "Identifier", + "start": 6317, + "end": 6324, + "loc": { + "start": { + "line": 133, + "column": 19 + }, + "end": { + "line": 133, + "column": 26 + }, + "identifierName": "options" + }, + "name": "options" + }, + "computed": false, + "leadingComments": null + }, + "property": { + "type": "Identifier", + "start": 6325, + "end": 6335, + "loc": { + "start": { + "line": 133, + "column": 27 + }, + "end": { + "line": 133, + "column": 37 + }, + "identifierName": "onKeyPress" + }, + "name": "onKeyPress" + }, + "computed": false, + "leadingComments": null + }, + "extra": { + "parenthesizedArgument": false + }, + "leadingComments": null + }, + "operator": "===", + "right": { + "type": "StringLiteral", + "start": 6340, + "end": 6350, + "loc": { + "start": { + "line": 133, + "column": 42 + }, + "end": { + "line": 133, + "column": 52 + } + }, + "extra": { + "rawValue": "function", + "raw": "\"function\"" + }, + "value": "function" + }, + "leadingComments": null + }, + "consequent": { + "type": "ExpressionStatement", + "start": 6359, + "end": 6391, + "loc": { + "start": { + "line": 134, + "column": 6 + }, + "end": { + "line": 134, + "column": 38 + } + }, + "expression": { + "type": "CallExpression", + "start": 6359, + "end": 6390, + "loc": { + "start": { + "line": 134, + "column": 6 + }, + "end": { + "line": 134, + "column": 37 + } + }, + "callee": { + "type": "MemberExpression", + "start": 6359, + "end": 6382, + "loc": { + "start": { + "line": 134, + "column": 6 + }, + "end": { + "line": 134, + "column": 29 + } + }, + "object": { + "type": "MemberExpression", + "start": 6359, + "end": 6371, + "loc": { + "start": { + "line": 134, + "column": 6 + }, + "end": { + "line": 134, + "column": 18 + } + }, + "object": { + "type": "ThisExpression", + "start": 6359, + "end": 6363, + "loc": { + "start": { + "line": 134, + "column": 6 + }, + "end": { + "line": 134, + "column": 10 + } + } + }, + "property": { + "type": "Identifier", + "start": 6364, + "end": 6371, + "loc": { + "start": { + "line": 134, + "column": 11 + }, + "end": { + "line": 134, + "column": 18 + }, + "identifierName": "options" + }, + "name": "options" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 6372, + "end": 6382, + "loc": { + "start": { + "line": 134, + "column": 19 + }, + "end": { + "line": 134, + "column": 29 + }, + "identifierName": "onKeyPress" + }, + "name": "onKeyPress" + }, + "computed": false + }, + "arguments": [ + { + "type": "Identifier", + "start": 6383, + "end": 6389, + "loc": { + "start": { + "line": 134, + "column": 30 + }, + "end": { + "line": 134, + "column": 36 + }, + "identifierName": "button" + }, + "name": "button" + } + ] + } + }, + "alternate": null, + "leadingComments": [ + { + "type": "CommentBlock", + "value": "*\r\n * Calling onKeyPress\r\n ", + "start": 6257, + "end": 6296, + "loc": { + "start": { + "line": 130, + "column": 4 + }, + "end": { + "line": 132, + "column": 7 + } + } + } + ] + }, + { + "type": "IfStatement", + "start": 6403, + "end": 6490, + "loc": { + "start": { + "line": 136, + "column": 4 + }, + "end": { + "line": 137, + "column": 46 + } + }, + "test": { + "type": "UnaryExpression", + "start": 6406, + "end": 6441, + "loc": { + "start": { + "line": 136, + "column": 7 + }, + "end": { + "line": 136, + "column": 42 + } + }, + "operator": "!", + "prefix": true, + "argument": { + "type": "MemberExpression", + "start": 6407, + "end": 6441, + "loc": { + "start": { + "line": 136, + "column": 8 + }, + "end": { + "line": 136, + "column": 42 + } + }, + "object": { + "type": "MemberExpression", + "start": 6407, + "end": 6417, + "loc": { + "start": { + "line": 136, + "column": 8 + }, + "end": { + "line": 136, + "column": 18 + } + }, + "object": { + "type": "ThisExpression", + "start": 6407, + "end": 6411, + "loc": { + "start": { + "line": 136, + "column": 8 + }, + "end": { + "line": 136, + "column": 12 + } + } + }, + "property": { + "type": "Identifier", + "start": 6412, + "end": 6417, + "loc": { + "start": { + "line": 136, + "column": 13 + }, + "end": { + "line": 136, + "column": 18 + }, + "identifierName": "input" + }, + "name": "input" + }, + "computed": false + }, + "property": { + "type": "MemberExpression", + "start": 6418, + "end": 6440, + "loc": { + "start": { + "line": 136, + "column": 19 + }, + "end": { + "line": 136, + "column": 41 + } + }, + "object": { + "type": "MemberExpression", + "start": 6418, + "end": 6430, + "loc": { + "start": { + "line": 136, + "column": 19 + }, + "end": { + "line": 136, + "column": 31 + } + }, + "object": { + "type": "ThisExpression", + "start": 6418, + "end": 6422, + "loc": { + "start": { + "line": 136, + "column": 19 + }, + "end": { + "line": 136, + "column": 23 + } + } + }, + "property": { + "type": "Identifier", + "start": 6423, + "end": 6430, + "loc": { + "start": { + "line": 136, + "column": 24 + }, + "end": { + "line": 136, + "column": 31 + }, + "identifierName": "options" + }, + "name": "options" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 6431, + "end": 6440, + "loc": { + "start": { + "line": 136, + "column": 32 + }, + "end": { + "line": 136, + "column": 41 + }, + "identifierName": "inputName" + }, + "name": "inputName" + }, + "computed": false + }, + "computed": true + }, + "extra": { + "parenthesizedArgument": false + } + }, + "consequent": { + "type": "ExpressionStatement", + "start": 6450, + "end": 6490, + "loc": { + "start": { + "line": 137, + "column": 6 + }, + "end": { + "line": 137, + "column": 46 + } + }, + "expression": { + "type": "AssignmentExpression", + "start": 6450, + "end": 6489, + "loc": { + "start": { + "line": 137, + "column": 6 + }, + "end": { + "line": 137, + "column": 45 + } + }, + "operator": "=", + "left": { + "type": "MemberExpression", + "start": 6450, + "end": 6484, + "loc": { + "start": { + "line": 137, + "column": 6 + }, + "end": { + "line": 137, + "column": 40 + } + }, + "object": { + "type": "MemberExpression", + "start": 6450, + "end": 6460, + "loc": { + "start": { + "line": 137, + "column": 6 + }, + "end": { + "line": 137, + "column": 16 + } + }, + "object": { + "type": "ThisExpression", + "start": 6450, + "end": 6454, + "loc": { + "start": { + "line": 137, + "column": 6 + }, + "end": { + "line": 137, + "column": 10 + } + } + }, + "property": { + "type": "Identifier", + "start": 6455, + "end": 6460, + "loc": { + "start": { + "line": 137, + "column": 11 + }, + "end": { + "line": 137, + "column": 16 + }, + "identifierName": "input" + }, + "name": "input" + }, + "computed": false + }, + "property": { + "type": "MemberExpression", + "start": 6461, + "end": 6483, + "loc": { + "start": { + "line": 137, + "column": 17 + }, + "end": { + "line": 137, + "column": 39 + } + }, + "object": { + "type": "MemberExpression", + "start": 6461, + "end": 6473, + "loc": { + "start": { + "line": 137, + "column": 17 + }, + "end": { + "line": 137, + "column": 29 + } + }, + "object": { + "type": "ThisExpression", + "start": 6461, + "end": 6465, + "loc": { + "start": { + "line": 137, + "column": 17 + }, + "end": { + "line": 137, + "column": 21 + } + } + }, + "property": { + "type": "Identifier", + "start": 6466, + "end": 6473, + "loc": { + "start": { + "line": 137, + "column": 22 + }, + "end": { + "line": 137, + "column": 29 + }, + "identifierName": "options" + }, + "name": "options" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 6474, + "end": 6483, + "loc": { + "start": { + "line": 137, + "column": 30 + }, + "end": { + "line": 137, + "column": 39 + }, + "identifierName": "inputName" + }, + "name": "inputName" + }, + "computed": false + }, + "computed": true + }, + "right": { + "type": "StringLiteral", + "start": 6487, + "end": 6489, + "loc": { + "start": { + "line": 137, + "column": 43 + }, + "end": { + "line": 137, + "column": 45 + } + }, + "extra": { + "rawValue": "", + "raw": "''" + }, + "value": "" + } + } + }, + "alternate": null + }, + { + "type": "VariableDeclaration", + "start": 6498, + "end": 6626, + "loc": { + "start": { + "line": 139, + "column": 4 + }, + "end": { + "line": 139, + "column": 132 + } + }, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 6502, + "end": 6625, + "loc": { + "start": { + "line": 139, + "column": 8 + }, + "end": { + "line": 139, + "column": 131 + } + }, + "id": { + "type": "Identifier", + "start": 6502, + "end": 6514, + "loc": { + "start": { + "line": 139, + "column": 8 + }, + "end": { + "line": 139, + "column": 20 + }, + "identifierName": "updatedInput" + }, + "name": "updatedInput" + }, + "init": { + "type": "CallExpression", + "start": 6517, + "end": 6625, + "loc": { + "start": { + "line": 139, + "column": 23 + }, + "end": { + "line": 139, + "column": 131 + } + }, + "callee": { + "type": "MemberExpression", + "start": 6517, + "end": 6547, + "loc": { + "start": { + "line": 139, + "column": 23 + }, + "end": { + "line": 139, + "column": 53 + } + }, + "object": { + "type": "MemberExpression", + "start": 6517, + "end": 6531, + "loc": { + "start": { + "line": 139, + "column": 23 + }, + "end": { + "line": 139, + "column": 37 + } + }, + "object": { + "type": "ThisExpression", + "start": 6517, + "end": 6521, + "loc": { + "start": { + "line": 139, + "column": 23 + }, + "end": { + "line": 139, + "column": 27 + } + } + }, + "property": { + "type": "Identifier", + "start": 6522, + "end": 6531, + "loc": { + "start": { + "line": 139, + "column": 28 + }, + "end": { + "line": 139, + "column": 37 + }, + "identifierName": "utilities" + }, + "name": "utilities" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 6532, + "end": 6547, + "loc": { + "start": { + "line": 139, + "column": 38 + }, + "end": { + "line": 139, + "column": 53 + }, + "identifierName": "getUpdatedInput" + }, + "name": "getUpdatedInput" + }, + "computed": false + }, + "arguments": [ + { + "type": "Identifier", + "start": 6548, + "end": 6554, + "loc": { + "start": { + "line": 139, + "column": 54 + }, + "end": { + "line": 139, + "column": 60 + }, + "identifierName": "button" + }, + "name": "button" + }, + { + "type": "MemberExpression", + "start": 6556, + "end": 6590, + "loc": { + "start": { + "line": 139, + "column": 62 + }, + "end": { + "line": 139, + "column": 96 + } + }, + "object": { + "type": "MemberExpression", + "start": 6556, + "end": 6566, + "loc": { + "start": { + "line": 139, + "column": 62 + }, + "end": { + "line": 139, + "column": 72 + } + }, + "object": { + "type": "ThisExpression", + "start": 6556, + "end": 6560, + "loc": { + "start": { + "line": 139, + "column": 62 + }, + "end": { + "line": 139, + "column": 66 + } + } + }, + "property": { + "type": "Identifier", + "start": 6561, + "end": 6566, + "loc": { + "start": { + "line": 139, + "column": 67 + }, + "end": { + "line": 139, + "column": 72 + }, + "identifierName": "input" + }, + "name": "input" + }, + "computed": false + }, + "property": { + "type": "MemberExpression", + "start": 6567, + "end": 6589, + "loc": { + "start": { + "line": 139, + "column": 73 + }, + "end": { + "line": 139, + "column": 95 + } + }, + "object": { + "type": "MemberExpression", + "start": 6567, + "end": 6579, + "loc": { + "start": { + "line": 139, + "column": 73 + }, + "end": { + "line": 139, + "column": 85 + } + }, + "object": { + "type": "ThisExpression", + "start": 6567, + "end": 6571, + "loc": { + "start": { + "line": 139, + "column": 73 + }, + "end": { + "line": 139, + "column": 77 + } + } + }, + "property": { + "type": "Identifier", + "start": 6572, + "end": 6579, + "loc": { + "start": { + "line": 139, + "column": 78 + }, + "end": { + "line": 139, + "column": 85 + }, + "identifierName": "options" + }, + "name": "options" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 6580, + "end": 6589, + "loc": { + "start": { + "line": 139, + "column": 86 + }, + "end": { + "line": 139, + "column": 95 + }, + "identifierName": "inputName" + }, + "name": "inputName" + }, + "computed": false + }, + "computed": true + }, + { + "type": "MemberExpression", + "start": 6592, + "end": 6604, + "loc": { + "start": { + "line": 139, + "column": 98 + }, + "end": { + "line": 139, + "column": 110 + } + }, + "object": { + "type": "ThisExpression", + "start": 6592, + "end": 6596, + "loc": { + "start": { + "line": 139, + "column": 98 + }, + "end": { + "line": 139, + "column": 102 + } + } + }, + "property": { + "type": "Identifier", + "start": 6597, + "end": 6604, + "loc": { + "start": { + "line": 139, + "column": 103 + }, + "end": { + "line": 139, + "column": 110 + }, + "identifierName": "options" + }, + "name": "options" + }, + "computed": false + }, + { + "type": "MemberExpression", + "start": 6606, + "end": 6624, + "loc": { + "start": { + "line": 139, + "column": 112 + }, + "end": { + "line": 139, + "column": 130 + } + }, + "object": { + "type": "ThisExpression", + "start": 6606, + "end": 6610, + "loc": { + "start": { + "line": 139, + "column": 112 + }, + "end": { + "line": 139, + "column": 116 + } + } + }, + "property": { + "type": "Identifier", + "start": 6611, + "end": 6624, + "loc": { + "start": { + "line": 139, + "column": 117 + }, + "end": { + "line": 139, + "column": 130 + }, + "identifierName": "caretPosition" + }, + "name": "caretPosition" + }, + "computed": false + } + ] + } + } + ], + "kind": "let" + }, + { + "type": "IfStatement", + "start": 6634, + "end": 7388, + "loc": { + "start": { + "line": 141, + "column": 4 + }, + "end": { + "line": 166, + "column": 5 + } + }, + "test": { + "type": "BinaryExpression", + "start": 6637, + "end": 6688, + "loc": { + "start": { + "line": 141, + "column": 7 + }, + "end": { + "line": 141, + "column": 58 + } + }, + "left": { + "type": "MemberExpression", + "start": 6637, + "end": 6671, + "loc": { + "start": { + "line": 141, + "column": 7 + }, + "end": { + "line": 141, + "column": 41 + } + }, + "object": { + "type": "MemberExpression", + "start": 6637, + "end": 6647, + "loc": { + "start": { + "line": 141, + "column": 7 + }, + "end": { + "line": 141, + "column": 17 + } + }, + "object": { + "type": "ThisExpression", + "start": 6637, + "end": 6641, + "loc": { + "start": { + "line": 141, + "column": 7 + }, + "end": { + "line": 141, + "column": 11 + } + } + }, + "property": { + "type": "Identifier", + "start": 6642, + "end": 6647, + "loc": { + "start": { + "line": 141, + "column": 12 + }, + "end": { + "line": 141, + "column": 17 + }, + "identifierName": "input" + }, + "name": "input" + }, + "computed": false + }, + "property": { + "type": "MemberExpression", + "start": 6648, + "end": 6670, + "loc": { + "start": { + "line": 141, + "column": 18 + }, + "end": { + "line": 141, + "column": 40 + } + }, + "object": { + "type": "MemberExpression", + "start": 6648, + "end": 6660, + "loc": { + "start": { + "line": 141, + "column": 18 + }, + "end": { + "line": 141, + "column": 30 + } + }, + "object": { + "type": "ThisExpression", + "start": 6648, + "end": 6652, + "loc": { + "start": { + "line": 141, + "column": 18 + }, + "end": { + "line": 141, + "column": 22 + } + } + }, + "property": { + "type": "Identifier", + "start": 6653, + "end": 6660, + "loc": { + "start": { + "line": 141, + "column": 23 + }, + "end": { + "line": 141, + "column": 30 + }, + "identifierName": "options" + }, + "name": "options" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 6661, + "end": 6670, + "loc": { + "start": { + "line": 141, + "column": 31 + }, + "end": { + "line": 141, + "column": 40 + }, + "identifierName": "inputName" + }, + "name": "inputName" + }, + "computed": false + }, + "computed": true + }, + "operator": "!==", + "right": { + "type": "Identifier", + "start": 6676, + "end": 6688, + "loc": { + "start": { + "line": 141, + "column": 46 + }, + "end": { + "line": 141, + "column": 58 + }, + "identifierName": "updatedInput" + }, + "name": "updatedInput" + } + }, + "consequent": { + "type": "BlockStatement", + "start": 6689, + "end": 7388, + "loc": { + "start": { + "line": 141, + "column": 59 + }, + "end": { + "line": 166, + "column": 5 + } + }, + "body": [ + { + "type": "IfStatement", + "start": 6785, + "end": 6918, + "loc": { + "start": { + "line": 146, + "column": 6 + }, + "end": { + "line": 148, + "column": 7 + } + }, + "test": { + "type": "LogicalExpression", + "start": 6788, + "end": 6884, + "loc": { + "start": { + "line": 146, + "column": 9 + }, + "end": { + "line": 146, + "column": 105 + } + }, + "left": { + "type": "MemberExpression", + "start": 6788, + "end": 6810, + "loc": { + "start": { + "line": 146, + "column": 9 + }, + "end": { + "line": 146, + "column": 31 + } + }, + "object": { + "type": "MemberExpression", + "start": 6788, + "end": 6800, + "loc": { + "start": { + "line": 146, + "column": 9 + }, + "end": { + "line": 146, + "column": 21 + } + }, + "object": { + "type": "ThisExpression", + "start": 6788, + "end": 6792, + "loc": { + "start": { + "line": 146, + "column": 9 + }, + "end": { + "line": 146, + "column": 13 + } + }, + "leadingComments": null + }, + "property": { + "type": "Identifier", + "start": 6793, + "end": 6800, + "loc": { + "start": { + "line": 146, + "column": 14 + }, + "end": { + "line": 146, + "column": 21 + }, + "identifierName": "options" + }, + "name": "options" + }, + "computed": false, + "leadingComments": null + }, + "property": { + "type": "Identifier", + "start": 6801, + "end": 6810, + "loc": { + "start": { + "line": 146, + "column": 22 + }, + "end": { + "line": 146, + "column": 31 + }, + "identifierName": "maxLength" + }, + "name": "maxLength" + }, + "computed": false, + "leadingComments": null + }, + "operator": "&&", + "right": { + "type": "CallExpression", + "start": 6814, + "end": 6884, + "loc": { + "start": { + "line": 146, + "column": 35 + }, + "end": { + "line": 146, + "column": 105 + } + }, + "callee": { + "type": "MemberExpression", + "start": 6814, + "end": 6844, + "loc": { + "start": { + "line": 146, + "column": 35 + }, + "end": { + "line": 146, + "column": 65 + } + }, + "object": { + "type": "MemberExpression", + "start": 6814, + "end": 6828, + "loc": { + "start": { + "line": 146, + "column": 35 + }, + "end": { + "line": 146, + "column": 49 + } + }, + "object": { + "type": "ThisExpression", + "start": 6814, + "end": 6818, + "loc": { + "start": { + "line": 146, + "column": 35 + }, + "end": { + "line": 146, + "column": 39 + } + } + }, + "property": { + "type": "Identifier", + "start": 6819, + "end": 6828, + "loc": { + "start": { + "line": 146, + "column": 40 + }, + "end": { + "line": 146, + "column": 49 + }, + "identifierName": "utilities" + }, + "name": "utilities" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 6829, + "end": 6844, + "loc": { + "start": { + "line": 146, + "column": 50 + }, + "end": { + "line": 146, + "column": 65 + }, + "identifierName": "handleMaxLength" + }, + "name": "handleMaxLength" + }, + "computed": false + }, + "arguments": [ + { + "type": "MemberExpression", + "start": 6845, + "end": 6855, + "loc": { + "start": { + "line": 146, + "column": 66 + }, + "end": { + "line": 146, + "column": 76 + } + }, + "object": { + "type": "ThisExpression", + "start": 6845, + "end": 6849, + "loc": { + "start": { + "line": 146, + "column": 66 + }, + "end": { + "line": 146, + "column": 70 + } + } + }, + "property": { + "type": "Identifier", + "start": 6850, + "end": 6855, + "loc": { + "start": { + "line": 146, + "column": 71 + }, + "end": { + "line": 146, + "column": 76 + }, + "identifierName": "input" + }, + "name": "input" + }, + "computed": false + }, + { + "type": "MemberExpression", + "start": 6857, + "end": 6869, + "loc": { + "start": { + "line": 146, + "column": 78 + }, + "end": { + "line": 146, + "column": 90 + } + }, + "object": { + "type": "ThisExpression", + "start": 6857, + "end": 6861, + "loc": { + "start": { + "line": 146, + "column": 78 + }, + "end": { + "line": 146, + "column": 82 + } + } + }, + "property": { + "type": "Identifier", + "start": 6862, + "end": 6869, + "loc": { + "start": { + "line": 146, + "column": 83 + }, + "end": { + "line": 146, + "column": 90 + }, + "identifierName": "options" + }, + "name": "options" + }, + "computed": false + }, + { + "type": "Identifier", + "start": 6871, + "end": 6883, + "loc": { + "start": { + "line": 146, + "column": 92 + }, + "end": { + "line": 146, + "column": 104 + }, + "identifierName": "updatedInput" + }, + "name": "updatedInput" + } + ] + }, + "leadingComments": null + }, + "consequent": { + "type": "BlockStatement", + "start": 6885, + "end": 6918, + "loc": { + "start": { + "line": 146, + "column": 106 + }, + "end": { + "line": 148, + "column": 7 + } + }, + "body": [ + { + "type": "ReturnStatement", + "start": 6896, + "end": 6909, + "loc": { + "start": { + "line": 147, + "column": 8 + }, + "end": { + "line": 147, + "column": 21 + } + }, + "argument": { + "type": "BooleanLiteral", + "start": 6903, + "end": 6908, + "loc": { + "start": { + "line": 147, + "column": 15 + }, + "end": { + "line": 147, + "column": 20 + } + }, + "value": false + } + } + ], + "directives": [] + }, + "alternate": null, + "leadingComments": [ + { + "type": "CommentBlock", + "value": "*\r\n * If maxLength and handleMaxLength yield true, halting\r\n ", + "start": 6700, + "end": 6777, + "loc": { + "start": { + "line": 143, + "column": 6 + }, + "end": { + "line": 145, + "column": 9 + } + } + } + ] + }, + { + "type": "ExpressionStatement", + "start": 6928, + "end": 6978, + "loc": { + "start": { + "line": 150, + "column": 6 + }, + "end": { + "line": 150, + "column": 56 + } + }, + "expression": { + "type": "AssignmentExpression", + "start": 6928, + "end": 6977, + "loc": { + "start": { + "line": 150, + "column": 6 + }, + "end": { + "line": 150, + "column": 55 + } + }, + "operator": "=", + "left": { + "type": "MemberExpression", + "start": 6928, + "end": 6962, + "loc": { + "start": { + "line": 150, + "column": 6 + }, + "end": { + "line": 150, + "column": 40 + } + }, + "object": { + "type": "MemberExpression", + "start": 6928, + "end": 6938, + "loc": { + "start": { + "line": 150, + "column": 6 + }, + "end": { + "line": 150, + "column": 16 + } + }, + "object": { + "type": "ThisExpression", + "start": 6928, + "end": 6932, + "loc": { + "start": { + "line": 150, + "column": 6 + }, + "end": { + "line": 150, + "column": 10 + } + } + }, + "property": { + "type": "Identifier", + "start": 6933, + "end": 6938, + "loc": { + "start": { + "line": 150, + "column": 11 + }, + "end": { + "line": 150, + "column": 16 + }, + "identifierName": "input" + }, + "name": "input" + }, + "computed": false + }, + "property": { + "type": "MemberExpression", + "start": 6939, + "end": 6961, + "loc": { + "start": { + "line": 150, + "column": 17 + }, + "end": { + "line": 150, + "column": 39 + } + }, + "object": { + "type": "MemberExpression", + "start": 6939, + "end": 6951, + "loc": { + "start": { + "line": 150, + "column": 17 + }, + "end": { + "line": 150, + "column": 29 + } + }, + "object": { + "type": "ThisExpression", + "start": 6939, + "end": 6943, + "loc": { + "start": { + "line": 150, + "column": 17 + }, + "end": { + "line": 150, + "column": 21 + } + } + }, + "property": { + "type": "Identifier", + "start": 6944, + "end": 6951, + "loc": { + "start": { + "line": 150, + "column": 22 + }, + "end": { + "line": 150, + "column": 29 + }, + "identifierName": "options" + }, + "name": "options" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 6952, + "end": 6961, + "loc": { + "start": { + "line": 150, + "column": 30 + }, + "end": { + "line": 150, + "column": 39 + }, + "identifierName": "inputName" + }, + "name": "inputName" + }, + "computed": false + }, + "computed": true + }, + "right": { + "type": "Identifier", + "start": 6965, + "end": 6977, + "loc": { + "start": { + "line": 150, + "column": 43 + }, + "end": { + "line": 150, + "column": 55 + }, + "identifierName": "updatedInput" + }, + "name": "updatedInput" + } + } + }, + { + "type": "IfStatement", + "start": 6988, + "end": 7049, + "loc": { + "start": { + "line": 152, + "column": 6 + }, + "end": { + "line": 153, + "column": 50 + } + }, + "test": { + "type": "Identifier", + "start": 6991, + "end": 6996, + "loc": { + "start": { + "line": 152, + "column": 9 + }, + "end": { + "line": 152, + "column": 14 + }, + "identifierName": "debug" + }, + "name": "debug" + }, + "consequent": { + "type": "ExpressionStatement", + "start": 7007, + "end": 7049, + "loc": { + "start": { + "line": 153, + "column": 8 + }, + "end": { + "line": 153, + "column": 50 + } + }, + "expression": { + "type": "CallExpression", + "start": 7007, + "end": 7048, + "loc": { + "start": { + "line": 153, + "column": 8 + }, + "end": { + "line": 153, + "column": 49 + } + }, + "callee": { + "type": "MemberExpression", + "start": 7007, + "end": 7018, + "loc": { + "start": { + "line": 153, + "column": 8 + }, + "end": { + "line": 153, + "column": 19 + } + }, + "object": { + "type": "Identifier", + "start": 7007, + "end": 7014, + "loc": { + "start": { + "line": 153, + "column": 8 + }, + "end": { + "line": 153, + "column": 15 + }, + "identifierName": "console" + }, + "name": "console" + }, + "property": { + "type": "Identifier", + "start": 7015, + "end": 7018, + "loc": { + "start": { + "line": 153, + "column": 16 + }, + "end": { + "line": 153, + "column": 19 + }, + "identifierName": "log" + }, + "name": "log" + }, + "computed": false + }, + "arguments": [ + { + "type": "StringLiteral", + "start": 7019, + "end": 7035, + "loc": { + "start": { + "line": 153, + "column": 20 + }, + "end": { + "line": 153, + "column": 36 + } + }, + "extra": { + "rawValue": "Input changed:", + "raw": "'Input changed:'" + }, + "value": "Input changed:" + }, + { + "type": "MemberExpression", + "start": 7037, + "end": 7047, + "loc": { + "start": { + "line": 153, + "column": 38 + }, + "end": { + "line": 153, + "column": 48 + } + }, + "object": { + "type": "ThisExpression", + "start": 7037, + "end": 7041, + "loc": { + "start": { + "line": 153, + "column": 38 + }, + "end": { + "line": 153, + "column": 42 + } + } + }, + "property": { + "type": "Identifier", + "start": 7042, + "end": 7047, + "loc": { + "start": { + "line": 153, + "column": 43 + }, + "end": { + "line": 153, + "column": 48 + }, + "identifierName": "input" + }, + "name": "input" + }, + "computed": false + } + ] + }, + "trailingComments": null + }, + "alternate": null, + "trailingComments": [ + { + "type": "CommentBlock", + "value": "*\r\n * Enforce syncInstanceInputs, if set\r\n ", + "start": 7059, + "end": 7118, + "loc": { + "start": { + "line": 155, + "column": 6 + }, + "end": { + "line": 157, + "column": 9 + } + } + } + ] + }, + { + "type": "IfStatement", + "start": 7126, + "end": 7207, + "loc": { + "start": { + "line": 158, + "column": 6 + }, + "end": { + "line": 159, + "column": 44 + } + }, + "test": { + "type": "MemberExpression", + "start": 7129, + "end": 7160, + "loc": { + "start": { + "line": 158, + "column": 9 + }, + "end": { + "line": 158, + "column": 40 + } + }, + "object": { + "type": "MemberExpression", + "start": 7129, + "end": 7141, + "loc": { + "start": { + "line": 158, + "column": 9 + }, + "end": { + "line": 158, + "column": 21 + } + }, + "object": { + "type": "ThisExpression", + "start": 7129, + "end": 7133, + "loc": { + "start": { + "line": 158, + "column": 9 + }, + "end": { + "line": 158, + "column": 13 + } + }, + "leadingComments": null + }, + "property": { + "type": "Identifier", + "start": 7134, + "end": 7141, + "loc": { + "start": { + "line": 158, + "column": 14 + }, + "end": { + "line": 158, + "column": 21 + }, + "identifierName": "options" + }, + "name": "options" + }, + "computed": false, + "leadingComments": null + }, + "property": { + "type": "Identifier", + "start": 7142, + "end": 7160, + "loc": { + "start": { + "line": 158, + "column": 22 + }, + "end": { + "line": 158, + "column": 40 + }, + "identifierName": "syncInstanceInputs" + }, + "name": "syncInstanceInputs" + }, + "computed": false, + "leadingComments": null + }, + "consequent": { + "type": "ExpressionStatement", + "start": 7171, + "end": 7207, + "loc": { + "start": { + "line": 159, + "column": 8 + }, + "end": { + "line": 159, + "column": 44 + } + }, + "expression": { + "type": "CallExpression", + "start": 7171, + "end": 7206, + "loc": { + "start": { + "line": 159, + "column": 8 + }, + "end": { + "line": 159, + "column": 43 + } + }, + "callee": { + "type": "MemberExpression", + "start": 7171, + "end": 7194, + "loc": { + "start": { + "line": 159, + "column": 8 + }, + "end": { + "line": 159, + "column": 31 + } + }, + "object": { + "type": "ThisExpression", + "start": 7171, + "end": 7175, + "loc": { + "start": { + "line": 159, + "column": 8 + }, + "end": { + "line": 159, + "column": 12 + } + } + }, + "property": { + "type": "Identifier", + "start": 7176, + "end": 7194, + "loc": { + "start": { + "line": 159, + "column": 13 + }, + "end": { + "line": 159, + "column": 31 + }, + "identifierName": "syncInstanceInputs" + }, + "name": "syncInstanceInputs" + }, + "computed": false + }, + "arguments": [ + { + "type": "MemberExpression", + "start": 7195, + "end": 7205, + "loc": { + "start": { + "line": 159, + "column": 32 + }, + "end": { + "line": 159, + "column": 42 + } + }, + "object": { + "type": "ThisExpression", + "start": 7195, + "end": 7199, + "loc": { + "start": { + "line": 159, + "column": 32 + }, + "end": { + "line": 159, + "column": 36 + } + } + }, + "property": { + "type": "Identifier", + "start": 7200, + "end": 7205, + "loc": { + "start": { + "line": 159, + "column": 37 + }, + "end": { + "line": 159, + "column": 42 + }, + "identifierName": "input" + }, + "name": "input" + }, + "computed": false + } + ] + }, + "trailingComments": null + }, + "alternate": null, + "leadingComments": [ + { + "type": "CommentBlock", + "value": "*\r\n * Enforce syncInstanceInputs, if set\r\n ", + "start": 7059, + "end": 7118, + "loc": { + "start": { + "line": 155, + "column": 6 + }, + "end": { + "line": 157, + "column": 9 + } + } + } + ], + "trailingComments": [ + { + "type": "CommentBlock", + "value": "*\r\n * Calling onChange\r\n ", + "start": 7217, + "end": 7258, + "loc": { + "start": { + "line": 161, + "column": 6 + }, + "end": { + "line": 163, + "column": 9 + } + } + } + ] + }, + { + "type": "IfStatement", + "start": 7266, + "end": 7381, + "loc": { + "start": { + "line": 164, + "column": 6 + }, + "end": { + "line": 165, + "column": 66 + } + }, + "test": { + "type": "BinaryExpression", + "start": 7269, + "end": 7312, + "loc": { + "start": { + "line": 164, + "column": 9 + }, + "end": { + "line": 164, + "column": 52 + } + }, + "left": { + "type": "UnaryExpression", + "start": 7269, + "end": 7297, + "loc": { + "start": { + "line": 164, + "column": 9 + }, + "end": { + "line": 164, + "column": 37 + } + }, + "operator": "typeof", + "prefix": true, + "argument": { + "type": "MemberExpression", + "start": 7276, + "end": 7297, + "loc": { + "start": { + "line": 164, + "column": 16 + }, + "end": { + "line": 164, + "column": 37 + } + }, + "object": { + "type": "MemberExpression", + "start": 7276, + "end": 7288, + "loc": { + "start": { + "line": 164, + "column": 16 + }, + "end": { + "line": 164, + "column": 28 + } + }, + "object": { + "type": "ThisExpression", + "start": 7276, + "end": 7280, + "loc": { + "start": { + "line": 164, + "column": 16 + }, + "end": { + "line": 164, + "column": 20 + } + }, + "leadingComments": null + }, + "property": { + "type": "Identifier", + "start": 7281, + "end": 7288, + "loc": { + "start": { + "line": 164, + "column": 21 + }, + "end": { + "line": 164, + "column": 28 + }, + "identifierName": "options" + }, + "name": "options" + }, + "computed": false, + "leadingComments": null + }, + "property": { + "type": "Identifier", + "start": 7289, + "end": 7297, + "loc": { + "start": { + "line": 164, + "column": 29 + }, + "end": { + "line": 164, + "column": 37 + }, + "identifierName": "onChange" + }, + "name": "onChange" + }, + "computed": false, + "leadingComments": null + }, + "extra": { + "parenthesizedArgument": false + }, + "leadingComments": null + }, + "operator": "===", + "right": { + "type": "StringLiteral", + "start": 7302, + "end": 7312, + "loc": { + "start": { + "line": 164, + "column": 42 + }, + "end": { + "line": 164, + "column": 52 + } + }, + "extra": { + "rawValue": "function", + "raw": "\"function\"" + }, + "value": "function" + }, + "leadingComments": null + }, + "consequent": { + "type": "ExpressionStatement", + "start": 7323, + "end": 7381, + "loc": { + "start": { + "line": 165, + "column": 8 + }, + "end": { + "line": 165, + "column": 66 + } + }, + "expression": { + "type": "CallExpression", + "start": 7323, + "end": 7380, + "loc": { + "start": { + "line": 165, + "column": 8 + }, + "end": { + "line": 165, + "column": 65 + } + }, + "callee": { + "type": "MemberExpression", + "start": 7323, + "end": 7344, + "loc": { + "start": { + "line": 165, + "column": 8 + }, + "end": { + "line": 165, + "column": 29 + } + }, + "object": { + "type": "MemberExpression", + "start": 7323, + "end": 7335, + "loc": { + "start": { + "line": 165, + "column": 8 + }, + "end": { + "line": 165, + "column": 20 + } + }, + "object": { + "type": "ThisExpression", + "start": 7323, + "end": 7327, + "loc": { + "start": { + "line": 165, + "column": 8 + }, + "end": { + "line": 165, + "column": 12 + } + } + }, + "property": { + "type": "Identifier", + "start": 7328, + "end": 7335, + "loc": { + "start": { + "line": 165, + "column": 13 + }, + "end": { + "line": 165, + "column": 20 + }, + "identifierName": "options" + }, + "name": "options" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 7336, + "end": 7344, + "loc": { + "start": { + "line": 165, + "column": 21 + }, + "end": { + "line": 165, + "column": 29 + }, + "identifierName": "onChange" + }, + "name": "onChange" + }, + "computed": false + }, + "arguments": [ + { + "type": "MemberExpression", + "start": 7345, + "end": 7379, + "loc": { + "start": { + "line": 165, + "column": 30 + }, + "end": { + "line": 165, + "column": 64 + } + }, + "object": { + "type": "MemberExpression", + "start": 7345, + "end": 7355, + "loc": { + "start": { + "line": 165, + "column": 30 + }, + "end": { + "line": 165, + "column": 40 + } + }, + "object": { + "type": "ThisExpression", + "start": 7345, + "end": 7349, + "loc": { + "start": { + "line": 165, + "column": 30 + }, + "end": { + "line": 165, + "column": 34 + } + } + }, + "property": { + "type": "Identifier", + "start": 7350, + "end": 7355, + "loc": { + "start": { + "line": 165, + "column": 35 + }, + "end": { + "line": 165, + "column": 40 + }, + "identifierName": "input" + }, + "name": "input" + }, + "computed": false + }, + "property": { + "type": "MemberExpression", + "start": 7356, + "end": 7378, + "loc": { + "start": { + "line": 165, + "column": 41 + }, + "end": { + "line": 165, + "column": 63 + } + }, + "object": { + "type": "MemberExpression", + "start": 7356, + "end": 7368, + "loc": { + "start": { + "line": 165, + "column": 41 + }, + "end": { + "line": 165, + "column": 53 + } + }, + "object": { + "type": "ThisExpression", + "start": 7356, + "end": 7360, + "loc": { + "start": { + "line": 165, + "column": 41 + }, + "end": { + "line": 165, + "column": 45 + } + } + }, + "property": { + "type": "Identifier", + "start": 7361, + "end": 7368, + "loc": { + "start": { + "line": 165, + "column": 46 + }, + "end": { + "line": 165, + "column": 53 + }, + "identifierName": "options" + }, + "name": "options" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 7369, + "end": 7378, + "loc": { + "start": { + "line": 165, + "column": 54 + }, + "end": { + "line": 165, + "column": 63 + }, + "identifierName": "inputName" + }, + "name": "inputName" + }, + "computed": false + }, + "computed": true + } + ] + } + }, + "alternate": null, + "leadingComments": [ + { + "type": "CommentBlock", + "value": "*\r\n * Calling onChange\r\n ", + "start": 7217, + "end": 7258, + "loc": { + "start": { + "line": 161, + "column": 6 + }, + "end": { + "line": 163, + "column": 9 + } + } + } + ] + } + ], + "directives": [] + }, + "alternate": null + }, + { + "type": "IfStatement", + "start": 7400, + "end": 7461, + "loc": { + "start": { + "line": 168, + "column": 4 + }, + "end": { + "line": 170, + "column": 5 + } + }, + "test": { + "type": "Identifier", + "start": 7403, + "end": 7408, + "loc": { + "start": { + "line": 168, + "column": 7 + }, + "end": { + "line": 168, + "column": 12 + }, + "identifierName": "debug" + }, + "name": "debug" + }, + "consequent": { + "type": "BlockStatement", + "start": 7409, + "end": 7461, + "loc": { + "start": { + "line": 168, + "column": 13 + }, + "end": { + "line": 170, + "column": 5 + } + }, + "body": [ + { + "type": "ExpressionStatement", + "start": 7418, + "end": 7454, + "loc": { + "start": { + "line": 169, + "column": 6 + }, + "end": { + "line": 169, + "column": 42 + } + }, + "expression": { + "type": "CallExpression", + "start": 7418, + "end": 7453, + "loc": { + "start": { + "line": 169, + "column": 6 + }, + "end": { + "line": 169, + "column": 41 + } + }, + "callee": { + "type": "MemberExpression", + "start": 7418, + "end": 7429, + "loc": { + "start": { + "line": 169, + "column": 6 + }, + "end": { + "line": 169, + "column": 17 + } + }, + "object": { + "type": "Identifier", + "start": 7418, + "end": 7425, + "loc": { + "start": { + "line": 169, + "column": 6 + }, + "end": { + "line": 169, + "column": 13 + }, + "identifierName": "console" + }, + "name": "console" + }, + "property": { + "type": "Identifier", + "start": 7426, + "end": 7429, + "loc": { + "start": { + "line": 169, + "column": 14 + }, + "end": { + "line": 169, + "column": 17 + }, + "identifierName": "log" + }, + "name": "log" + }, + "computed": false + }, + "arguments": [ + { + "type": "StringLiteral", + "start": 7430, + "end": 7444, + "loc": { + "start": { + "line": 169, + "column": 18 + }, + "end": { + "line": 169, + "column": 32 + } + }, + "extra": { + "rawValue": "Key pressed:", + "raw": "\"Key pressed:\"" + }, + "value": "Key pressed:" + }, + { + "type": "Identifier", + "start": 7446, + "end": 7452, + "loc": { + "start": { + "line": 169, + "column": 34 + }, + "end": { + "line": 169, + "column": 40 + }, + "identifierName": "button" + }, + "name": "button" + } + ] + } + } + ], + "directives": [] + }, + "alternate": null + } + ], + "directives": [], + "trailingComments": null + }, + "trailingComments": null + }, + "leadingComments": [ + { + "type": "CommentBlock", + "value": "*\r\n * Handles clicks made to keyboard buttons\r\n * @param {string} button The button's layout name.\r\n ", + "start": 5956, + "end": 6068, + "loc": { + "start": { + "line": 117, + "column": 2 + }, + "end": { + "line": 120, + "column": 5 + } + } + } + ], + "trailingComments": [ + { + "type": "CommentBlock", + "value": "*\r\n * Send a command to all simple-keyboard instances (if you have several instances).\r\n ", + "start": 7472, + "end": 7569, + "loc": { + "start": { + "line": 173, + "column": 2 + }, + "end": { + "line": 175, + "column": 5 + } + } + } + ] + }, + { + "type": "ClassProperty", + "start": 7573, + "end": 7692, + "loc": { + "start": { + "line": 176, + "column": 2 + }, + "end": { + "line": 180, + "column": 3 + } + }, + "static": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 7573, + "end": 7591, + "loc": { + "start": { + "line": 176, + "column": 2 + }, + "end": { + "line": 176, + "column": 20 + }, + "identifierName": "syncInstanceInputs" + }, + "name": "syncInstanceInputs", + "leadingComments": null + }, + "value": { + "type": "ArrowFunctionExpression", + "start": 7594, + "end": 7692, + "loc": { + "start": { + "line": 176, + "column": 23 + }, + "end": { + "line": 180, + "column": 3 + } + }, + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [], + "body": { + "type": "BlockStatement", + "start": 7600, + "end": 7692, + "loc": { + "start": { + "line": 176, + "column": 29 + }, + "end": { + "line": 180, + "column": 3 + } + }, + "body": [ + { + "type": "ExpressionStatement", + "start": 7607, + "end": 7687, + "loc": { + "start": { + "line": 177, + "column": 4 + }, + "end": { + "line": 179, + "column": 7 + } + }, + "expression": { + "type": "CallExpression", + "start": 7607, + "end": 7686, + "loc": { + "start": { + "line": 177, + "column": 4 + }, + "end": { + "line": 179, + "column": 6 + } + }, + "callee": { + "type": "MemberExpression", + "start": 7607, + "end": 7620, + "loc": { + "start": { + "line": 177, + "column": 4 + }, + "end": { + "line": 177, + "column": 17 + } + }, + "object": { + "type": "ThisExpression", + "start": 7607, + "end": 7611, + "loc": { + "start": { + "line": 177, + "column": 4 + }, + "end": { + "line": 177, + "column": 8 + } + } + }, + "property": { + "type": "Identifier", + "start": 7612, + "end": 7620, + "loc": { + "start": { + "line": 177, + "column": 9 + }, + "end": { + "line": 177, + "column": 17 + }, + "identifierName": "dispatch" + }, + "name": "dispatch" + }, + "computed": false + }, + "arguments": [ + { + "type": "ArrowFunctionExpression", + "start": 7621, + "end": 7685, + "loc": { + "start": { + "line": 177, + "column": 18 + }, + "end": { + "line": 179, + "column": 5 + } + }, + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 7622, + "end": 7630, + "loc": { + "start": { + "line": 177, + "column": 19 + }, + "end": { + "line": 177, + "column": 27 + }, + "identifierName": "instance" + }, + "name": "instance" + } + ], + "body": { + "type": "BlockStatement", + "start": 7635, + "end": 7685, + "loc": { + "start": { + "line": 177, + "column": 32 + }, + "end": { + "line": 179, + "column": 5 + } + }, + "body": [ + { + "type": "ExpressionStatement", + "start": 7644, + "end": 7678, + "loc": { + "start": { + "line": 178, + "column": 6 + }, + "end": { + "line": 178, + "column": 40 + } + }, + "expression": { + "type": "CallExpression", + "start": 7644, + "end": 7677, + "loc": { + "start": { + "line": 178, + "column": 6 + }, + "end": { + "line": 178, + "column": 39 + } + }, + "callee": { + "type": "MemberExpression", + "start": 7644, + "end": 7665, + "loc": { + "start": { + "line": 178, + "column": 6 + }, + "end": { + "line": 178, + "column": 27 + } + }, + "object": { + "type": "Identifier", + "start": 7644, + "end": 7652, + "loc": { + "start": { + "line": 178, + "column": 6 + }, + "end": { + "line": 178, + "column": 14 + }, + "identifierName": "instance" + }, + "name": "instance" + }, + "property": { + "type": "Identifier", + "start": 7653, + "end": 7665, + "loc": { + "start": { + "line": 178, + "column": 15 + }, + "end": { + "line": 178, + "column": 27 + }, + "identifierName": "replaceInput" + }, + "name": "replaceInput" + }, + "computed": false + }, + "arguments": [ + { + "type": "MemberExpression", + "start": 7666, + "end": 7676, + "loc": { + "start": { + "line": 178, + "column": 28 + }, + "end": { + "line": 178, + "column": 38 + } + }, + "object": { + "type": "ThisExpression", + "start": 7666, + "end": 7670, + "loc": { + "start": { + "line": 178, + "column": 28 + }, + "end": { + "line": 178, + "column": 32 + } + } + }, + "property": { + "type": "Identifier", + "start": 7671, + "end": 7676, + "loc": { + "start": { + "line": 178, + "column": 33 + }, + "end": { + "line": 178, + "column": 38 + }, + "identifierName": "input" + }, + "name": "input" + }, + "computed": false + } + ] + } + } + ], + "directives": [] + } + } + ] + } + } + ], + "directives": [], + "trailingComments": null + }, + "trailingComments": null + }, + "leadingComments": [ + { + "type": "CommentBlock", + "value": "*\r\n * Send a command to all simple-keyboard instances (if you have several instances).\r\n ", + "start": 7472, + "end": 7569, + "loc": { + "start": { + "line": 173, + "column": 2 + }, + "end": { + "line": 175, + "column": 5 + } + } + } + ], + "trailingComments": [ + { + "type": "CommentBlock", + "value": "*\r\n * Clear the keyboard’s input.\r\n * @param {string} [inputName] optional - the internal input to select\r\n ", + "start": 7700, + "end": 7819, + "loc": { + "start": { + "line": 182, + "column": 2 + }, + "end": { + "line": 185, + "column": 5 + } + } + } + ] + }, + { + "type": "ClassProperty", + "start": 7823, + "end": 8105, + "loc": { + "start": { + "line": 186, + "column": 2 + }, + "end": { + "line": 195, + "column": 3 + } + }, + "static": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 7823, + "end": 7833, + "loc": { + "start": { + "line": 186, + "column": 2 + }, + "end": { + "line": 186, + "column": 12 + }, + "identifierName": "clearInput" + }, + "name": "clearInput", + "leadingComments": null + }, + "value": { + "type": "ArrowFunctionExpression", + "start": 7836, + "end": 8105, + "loc": { + "start": { + "line": 186, + "column": 15 + }, + "end": { + "line": 195, + "column": 3 + } + }, + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 7837, + "end": 7846, + "loc": { + "start": { + "line": 186, + "column": 16 + }, + "end": { + "line": 186, + "column": 25 + }, + "identifierName": "inputName" + }, + "name": "inputName" + } + ], + "body": { + "type": "BlockStatement", + "start": 7851, + "end": 8105, + "loc": { + "start": { + "line": 186, + "column": 30 + }, + "end": { + "line": 195, + "column": 3 + } + }, + "body": [ + { + "type": "ExpressionStatement", + "start": 7858, + "end": 7906, + "loc": { + "start": { + "line": 187, + "column": 4 + }, + "end": { + "line": 187, + "column": 52 + } + }, + "expression": { + "type": "AssignmentExpression", + "start": 7858, + "end": 7905, + "loc": { + "start": { + "line": 187, + "column": 4 + }, + "end": { + "line": 187, + "column": 51 + } + }, + "operator": "=", + "left": { + "type": "Identifier", + "start": 7858, + "end": 7867, + "loc": { + "start": { + "line": 187, + "column": 4 + }, + "end": { + "line": 187, + "column": 13 + }, + "identifierName": "inputName" + }, + "name": "inputName" + }, + "right": { + "type": "LogicalExpression", + "start": 7870, + "end": 7905, + "loc": { + "start": { + "line": 187, + "column": 16 + }, + "end": { + "line": 187, + "column": 51 + } + }, + "left": { + "type": "Identifier", + "start": 7870, + "end": 7879, + "loc": { + "start": { + "line": 187, + "column": 16 + }, + "end": { + "line": 187, + "column": 25 + }, + "identifierName": "inputName" + }, + "name": "inputName" + }, + "operator": "||", + "right": { + "type": "MemberExpression", + "start": 7883, + "end": 7905, + "loc": { + "start": { + "line": 187, + "column": 29 + }, + "end": { + "line": 187, + "column": 51 + } + }, + "object": { + "type": "MemberExpression", + "start": 7883, + "end": 7895, + "loc": { + "start": { + "line": 187, + "column": 29 + }, + "end": { + "line": 187, + "column": 41 + } + }, + "object": { + "type": "ThisExpression", + "start": 7883, + "end": 7887, + "loc": { + "start": { + "line": 187, + "column": 29 + }, + "end": { + "line": 187, + "column": 33 + } + } + }, + "property": { + "type": "Identifier", + "start": 7888, + "end": 7895, + "loc": { + "start": { + "line": 187, + "column": 34 + }, + "end": { + "line": 187, + "column": 41 + }, + "identifierName": "options" + }, + "name": "options" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 7896, + "end": 7905, + "loc": { + "start": { + "line": 187, + "column": 42 + }, + "end": { + "line": 187, + "column": 51 + }, + "identifierName": "inputName" + }, + "name": "inputName" + }, + "computed": false + } + } + } + }, + { + "type": "ExpressionStatement", + "start": 7912, + "end": 7952, + "loc": { + "start": { + "line": 188, + "column": 4 + }, + "end": { + "line": 188, + "column": 44 + } + }, + "expression": { + "type": "AssignmentExpression", + "start": 7912, + "end": 7951, + "loc": { + "start": { + "line": 188, + "column": 4 + }, + "end": { + "line": 188, + "column": 43 + } + }, + "operator": "=", + "left": { + "type": "MemberExpression", + "start": 7912, + "end": 7946, + "loc": { + "start": { + "line": 188, + "column": 4 + }, + "end": { + "line": 188, + "column": 38 + } + }, + "object": { + "type": "MemberExpression", + "start": 7912, + "end": 7922, + "loc": { + "start": { + "line": 188, + "column": 4 + }, + "end": { + "line": 188, + "column": 14 + } + }, + "object": { + "type": "ThisExpression", + "start": 7912, + "end": 7916, + "loc": { + "start": { + "line": 188, + "column": 4 + }, + "end": { + "line": 188, + "column": 8 + } + } + }, + "property": { + "type": "Identifier", + "start": 7917, + "end": 7922, + "loc": { + "start": { + "line": 188, + "column": 9 + }, + "end": { + "line": 188, + "column": 14 + }, + "identifierName": "input" + }, + "name": "input" + }, + "computed": false + }, + "property": { + "type": "MemberExpression", + "start": 7923, + "end": 7945, + "loc": { + "start": { + "line": 188, + "column": 15 + }, + "end": { + "line": 188, + "column": 37 + } + }, + "object": { + "type": "MemberExpression", + "start": 7923, + "end": 7935, + "loc": { + "start": { + "line": 188, + "column": 15 + }, + "end": { + "line": 188, + "column": 27 + } + }, + "object": { + "type": "ThisExpression", + "start": 7923, + "end": 7927, + "loc": { + "start": { + "line": 188, + "column": 15 + }, + "end": { + "line": 188, + "column": 19 + } + } + }, + "property": { + "type": "Identifier", + "start": 7928, + "end": 7935, + "loc": { + "start": { + "line": 188, + "column": 20 + }, + "end": { + "line": 188, + "column": 27 + }, + "identifierName": "options" + }, + "name": "options" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 7936, + "end": 7945, + "loc": { + "start": { + "line": 188, + "column": 28 + }, + "end": { + "line": 188, + "column": 37 + }, + "identifierName": "inputName" + }, + "name": "inputName" + }, + "computed": false + }, + "computed": true + }, + "right": { + "type": "StringLiteral", + "start": 7949, + "end": 7951, + "loc": { + "start": { + "line": 188, + "column": 41 + }, + "end": { + "line": 188, + "column": 43 + } + }, + "extra": { + "rawValue": "", + "raw": "''" + }, + "value": "" + } + }, + "trailingComments": [ + { + "type": "CommentBlock", + "value": "*\r\n * Enforce syncInstanceInputs, if set\r\n ", + "start": 7960, + "end": 8015, + "loc": { + "start": { + "line": 190, + "column": 4 + }, + "end": { + "line": 192, + "column": 7 + } + } + } + ] + }, + { + "type": "IfStatement", + "start": 8021, + "end": 8100, + "loc": { + "start": { + "line": 193, + "column": 4 + }, + "end": { + "line": 194, + "column": 42 + } + }, + "test": { + "type": "MemberExpression", + "start": 8024, + "end": 8055, + "loc": { + "start": { + "line": 193, + "column": 7 + }, + "end": { + "line": 193, + "column": 38 + } + }, + "object": { + "type": "MemberExpression", + "start": 8024, + "end": 8036, + "loc": { + "start": { + "line": 193, + "column": 7 + }, + "end": { + "line": 193, + "column": 19 + } + }, + "object": { + "type": "ThisExpression", + "start": 8024, + "end": 8028, + "loc": { + "start": { + "line": 193, + "column": 7 + }, + "end": { + "line": 193, + "column": 11 + } + }, + "leadingComments": null + }, + "property": { + "type": "Identifier", + "start": 8029, + "end": 8036, + "loc": { + "start": { + "line": 193, + "column": 12 + }, + "end": { + "line": 193, + "column": 19 + }, + "identifierName": "options" + }, + "name": "options" + }, + "computed": false, + "leadingComments": null + }, + "property": { + "type": "Identifier", + "start": 8037, + "end": 8055, + "loc": { + "start": { + "line": 193, + "column": 20 + }, + "end": { + "line": 193, + "column": 38 + }, + "identifierName": "syncInstanceInputs" + }, + "name": "syncInstanceInputs" + }, + "computed": false, + "leadingComments": null + }, + "consequent": { + "type": "ExpressionStatement", + "start": 8064, + "end": 8100, + "loc": { + "start": { + "line": 194, + "column": 6 + }, + "end": { + "line": 194, + "column": 42 + } + }, + "expression": { + "type": "CallExpression", + "start": 8064, + "end": 8099, + "loc": { + "start": { + "line": 194, + "column": 6 + }, + "end": { + "line": 194, + "column": 41 + } + }, + "callee": { + "type": "MemberExpression", + "start": 8064, + "end": 8087, + "loc": { + "start": { + "line": 194, + "column": 6 + }, + "end": { + "line": 194, + "column": 29 + } + }, + "object": { + "type": "ThisExpression", + "start": 8064, + "end": 8068, + "loc": { + "start": { + "line": 194, + "column": 6 + }, + "end": { + "line": 194, + "column": 10 + } + } + }, + "property": { + "type": "Identifier", + "start": 8069, + "end": 8087, + "loc": { + "start": { + "line": 194, + "column": 11 + }, + "end": { + "line": 194, + "column": 29 + }, + "identifierName": "syncInstanceInputs" + }, + "name": "syncInstanceInputs" + }, + "computed": false + }, + "arguments": [ + { + "type": "MemberExpression", + "start": 8088, + "end": 8098, + "loc": { + "start": { + "line": 194, + "column": 30 + }, + "end": { + "line": 194, + "column": 40 + } + }, + "object": { + "type": "ThisExpression", + "start": 8088, + "end": 8092, + "loc": { + "start": { + "line": 194, + "column": 30 + }, + "end": { + "line": 194, + "column": 34 + } + } + }, + "property": { + "type": "Identifier", + "start": 8093, + "end": 8098, + "loc": { + "start": { + "line": 194, + "column": 35 + }, + "end": { + "line": 194, + "column": 40 + }, + "identifierName": "input" + }, + "name": "input" + }, + "computed": false + } + ] + } + }, + "alternate": null, + "leadingComments": [ + { + "type": "CommentBlock", + "value": "*\r\n * Enforce syncInstanceInputs, if set\r\n ", + "start": 7960, + "end": 8015, + "loc": { + "start": { + "line": 190, + "column": 4 + }, + "end": { + "line": 192, + "column": 7 + } + } + } + ] + } + ], + "directives": [], + "trailingComments": null + }, + "trailingComments": null + }, + "leadingComments": [ + { + "type": "CommentBlock", + "value": "*\r\n * Clear the keyboard’s input.\r\n * @param {string} [inputName] optional - the internal input to select\r\n ", + "start": 7700, + "end": 7819, + "loc": { + "start": { + "line": 182, + "column": 2 + }, + "end": { + "line": 185, + "column": 5 + } + } + } + ], + "trailingComments": [ + { + "type": "CommentBlock", + "value": "*\r\n * Get the keyboard’s input (You can also get it from the onChange prop).\r\n * @param {string} [inputName] optional - the internal input to select\r\n ", + "start": 8111, + "end": 8273, + "loc": { + "start": { + "line": 197, + "column": 2 + }, + "end": { + "line": 200, + "column": 5 + } + } + } + ] + }, + { + "type": "ClassProperty", + "start": 8277, + "end": 8561, + "loc": { + "start": { + "line": 201, + "column": 2 + }, + "end": { + "line": 211, + "column": 3 + } + }, + "static": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 8277, + "end": 8285, + "loc": { + "start": { + "line": 201, + "column": 2 + }, + "end": { + "line": 201, + "column": 10 + }, + "identifierName": "getInput" + }, + "name": "getInput", + "leadingComments": null + }, + "value": { + "type": "ArrowFunctionExpression", + "start": 8288, + "end": 8561, + "loc": { + "start": { + "line": 201, + "column": 13 + }, + "end": { + "line": 211, + "column": 3 + } + }, + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 8289, + "end": 8298, + "loc": { + "start": { + "line": 201, + "column": 14 + }, + "end": { + "line": 201, + "column": 23 + }, + "identifierName": "inputName" + }, + "name": "inputName" + } + ], + "body": { + "type": "BlockStatement", + "start": 8303, + "end": 8561, + "loc": { + "start": { + "line": 201, + "column": 28 + }, + "end": { + "line": 211, + "column": 3 + } + }, + "body": [ + { + "type": "ExpressionStatement", + "start": 8310, + "end": 8358, + "loc": { + "start": { + "line": 202, + "column": 4 + }, + "end": { + "line": 202, + "column": 52 + } + }, + "expression": { + "type": "AssignmentExpression", + "start": 8310, + "end": 8357, + "loc": { + "start": { + "line": 202, + "column": 4 + }, + "end": { + "line": 202, + "column": 51 + } + }, + "operator": "=", + "left": { + "type": "Identifier", + "start": 8310, + "end": 8319, + "loc": { + "start": { + "line": 202, + "column": 4 + }, + "end": { + "line": 202, + "column": 13 + }, + "identifierName": "inputName" + }, + "name": "inputName" + }, + "right": { + "type": "LogicalExpression", + "start": 8322, + "end": 8357, + "loc": { + "start": { + "line": 202, + "column": 16 + }, + "end": { + "line": 202, + "column": 51 + } + }, + "left": { + "type": "Identifier", + "start": 8322, + "end": 8331, + "loc": { + "start": { + "line": 202, + "column": 16 + }, + "end": { + "line": 202, + "column": 25 + }, + "identifierName": "inputName" + }, + "name": "inputName" + }, + "operator": "||", + "right": { + "type": "MemberExpression", + "start": 8335, + "end": 8357, + "loc": { + "start": { + "line": 202, + "column": 29 + }, + "end": { + "line": 202, + "column": 51 + } + }, + "object": { + "type": "MemberExpression", + "start": 8335, + "end": 8347, + "loc": { + "start": { + "line": 202, + "column": 29 + }, + "end": { + "line": 202, + "column": 41 + } + }, + "object": { + "type": "ThisExpression", + "start": 8335, + "end": 8339, + "loc": { + "start": { + "line": 202, + "column": 29 + }, + "end": { + "line": 202, + "column": 33 + } + } + }, + "property": { + "type": "Identifier", + "start": 8340, + "end": 8347, + "loc": { + "start": { + "line": 202, + "column": 34 + }, + "end": { + "line": 202, + "column": 41 + }, + "identifierName": "options" + }, + "name": "options" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 8348, + "end": 8357, + "loc": { + "start": { + "line": 202, + "column": 42 + }, + "end": { + "line": 202, + "column": 51 + }, + "identifierName": "inputName" + }, + "name": "inputName" + }, + "computed": false + } + } + }, + "trailingComments": [ + { + "type": "CommentBlock", + "value": "*\r\n * Enforce syncInstanceInputs, if set\r\n ", + "start": 8366, + "end": 8421, + "loc": { + "start": { + "line": 204, + "column": 4 + }, + "end": { + "line": 206, + "column": 7 + } + } + } + ] + }, + { + "type": "IfStatement", + "start": 8427, + "end": 8506, + "loc": { + "start": { + "line": 207, + "column": 4 + }, + "end": { + "line": 208, + "column": 42 + } + }, + "test": { + "type": "MemberExpression", + "start": 8430, + "end": 8461, + "loc": { + "start": { + "line": 207, + "column": 7 + }, + "end": { + "line": 207, + "column": 38 + } + }, + "object": { + "type": "MemberExpression", + "start": 8430, + "end": 8442, + "loc": { + "start": { + "line": 207, + "column": 7 + }, + "end": { + "line": 207, + "column": 19 + } + }, + "object": { + "type": "ThisExpression", + "start": 8430, + "end": 8434, + "loc": { + "start": { + "line": 207, + "column": 7 + }, + "end": { + "line": 207, + "column": 11 + } + }, + "leadingComments": null + }, + "property": { + "type": "Identifier", + "start": 8435, + "end": 8442, + "loc": { + "start": { + "line": 207, + "column": 12 + }, + "end": { + "line": 207, + "column": 19 + }, + "identifierName": "options" + }, + "name": "options" + }, + "computed": false, + "leadingComments": null + }, + "property": { + "type": "Identifier", + "start": 8443, + "end": 8461, + "loc": { + "start": { + "line": 207, + "column": 20 + }, + "end": { + "line": 207, + "column": 38 + }, + "identifierName": "syncInstanceInputs" + }, + "name": "syncInstanceInputs" + }, + "computed": false, + "leadingComments": null + }, + "consequent": { + "type": "ExpressionStatement", + "start": 8470, + "end": 8506, + "loc": { + "start": { + "line": 208, + "column": 6 + }, + "end": { + "line": 208, + "column": 42 + } + }, + "expression": { + "type": "CallExpression", + "start": 8470, + "end": 8505, + "loc": { + "start": { + "line": 208, + "column": 6 + }, + "end": { + "line": 208, + "column": 41 + } + }, + "callee": { + "type": "MemberExpression", + "start": 8470, + "end": 8493, + "loc": { + "start": { + "line": 208, + "column": 6 + }, + "end": { + "line": 208, + "column": 29 + } + }, + "object": { + "type": "ThisExpression", + "start": 8470, + "end": 8474, + "loc": { + "start": { + "line": 208, + "column": 6 + }, + "end": { + "line": 208, + "column": 10 + } + } + }, + "property": { + "type": "Identifier", + "start": 8475, + "end": 8493, + "loc": { + "start": { + "line": 208, + "column": 11 + }, + "end": { + "line": 208, + "column": 29 + }, + "identifierName": "syncInstanceInputs" + }, + "name": "syncInstanceInputs" + }, + "computed": false + }, + "arguments": [ + { + "type": "MemberExpression", + "start": 8494, + "end": 8504, + "loc": { + "start": { + "line": 208, + "column": 30 + }, + "end": { + "line": 208, + "column": 40 + } + }, + "object": { + "type": "ThisExpression", + "start": 8494, + "end": 8498, + "loc": { + "start": { + "line": 208, + "column": 30 + }, + "end": { + "line": 208, + "column": 34 + } + } + }, + "property": { + "type": "Identifier", + "start": 8499, + "end": 8504, + "loc": { + "start": { + "line": 208, + "column": 35 + }, + "end": { + "line": 208, + "column": 40 + }, + "identifierName": "input" + }, + "name": "input" + }, + "computed": false + } + ] + } + }, + "alternate": null, + "leadingComments": [ + { + "type": "CommentBlock", + "value": "*\r\n * Enforce syncInstanceInputs, if set\r\n ", + "start": 8366, + "end": 8421, + "loc": { + "start": { + "line": 204, + "column": 4 + }, + "end": { + "line": 206, + "column": 7 + } + } + } + ] + }, + { + "type": "ReturnStatement", + "start": 8514, + "end": 8556, + "loc": { + "start": { + "line": 210, + "column": 4 + }, + "end": { + "line": 210, + "column": 46 + } + }, + "argument": { + "type": "MemberExpression", + "start": 8521, + "end": 8555, + "loc": { + "start": { + "line": 210, + "column": 11 + }, + "end": { + "line": 210, + "column": 45 + } + }, + "object": { + "type": "MemberExpression", + "start": 8521, + "end": 8531, + "loc": { + "start": { + "line": 210, + "column": 11 + }, + "end": { + "line": 210, + "column": 21 + } + }, + "object": { + "type": "ThisExpression", + "start": 8521, + "end": 8525, + "loc": { + "start": { + "line": 210, + "column": 11 + }, + "end": { + "line": 210, + "column": 15 + } + } + }, + "property": { + "type": "Identifier", + "start": 8526, + "end": 8531, + "loc": { + "start": { + "line": 210, + "column": 16 + }, + "end": { + "line": 210, + "column": 21 + }, + "identifierName": "input" + }, + "name": "input" + }, + "computed": false + }, + "property": { + "type": "MemberExpression", + "start": 8532, + "end": 8554, + "loc": { + "start": { + "line": 210, + "column": 22 + }, + "end": { + "line": 210, + "column": 44 + } + }, + "object": { + "type": "MemberExpression", + "start": 8532, + "end": 8544, + "loc": { + "start": { + "line": 210, + "column": 22 + }, + "end": { + "line": 210, + "column": 34 + } + }, + "object": { + "type": "ThisExpression", + "start": 8532, + "end": 8536, + "loc": { + "start": { + "line": 210, + "column": 22 + }, + "end": { + "line": 210, + "column": 26 + } + } + }, + "property": { + "type": "Identifier", + "start": 8537, + "end": 8544, + "loc": { + "start": { + "line": 210, + "column": 27 + }, + "end": { + "line": 210, + "column": 34 + }, + "identifierName": "options" + }, + "name": "options" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 8545, + "end": 8554, + "loc": { + "start": { + "line": 210, + "column": 35 + }, + "end": { + "line": 210, + "column": 44 + }, + "identifierName": "inputName" + }, + "name": "inputName" + }, + "computed": false + }, + "computed": true + } + } + ], + "directives": [], + "trailingComments": null + }, + "trailingComments": null + }, + "leadingComments": [ + { + "type": "CommentBlock", + "value": "*\r\n * Get the keyboard’s input (You can also get it from the onChange prop).\r\n * @param {string} [inputName] optional - the internal input to select\r\n ", + "start": 8111, + "end": 8273, + "loc": { + "start": { + "line": 197, + "column": 2 + }, + "end": { + "line": 200, + "column": 5 + } + } + } + ], + "trailingComments": [ + { + "type": "CommentBlock", + "value": "*\r\n * Set the keyboard’s input.\r\n * @param {string} input the input value\r\n * @param {string} inputName optional - the internal input to select\r\n ", + "start": 8567, + "end": 8727, + "loc": { + "start": { + "line": 213, + "column": 2 + }, + "end": { + "line": 217, + "column": 5 + } + } + } + ] + }, + { + "type": "ClassProperty", + "start": 8731, + "end": 9008, + "loc": { + "start": { + "line": 218, + "column": 2 + }, + "end": { + "line": 227, + "column": 3 + } + }, + "static": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 8731, + "end": 8739, + "loc": { + "start": { + "line": 218, + "column": 2 + }, + "end": { + "line": 218, + "column": 10 + }, + "identifierName": "setInput" + }, + "name": "setInput", + "leadingComments": null + }, + "value": { + "type": "ArrowFunctionExpression", + "start": 8742, + "end": 9008, + "loc": { + "start": { + "line": 218, + "column": 13 + }, + "end": { + "line": 227, + "column": 3 + } + }, + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 8743, + "end": 8748, + "loc": { + "start": { + "line": 218, + "column": 14 + }, + "end": { + "line": 218, + "column": 19 + }, + "identifierName": "input" + }, + "name": "input" + }, + { + "type": "Identifier", + "start": 8750, + "end": 8759, + "loc": { + "start": { + "line": 218, + "column": 21 + }, + "end": { + "line": 218, + "column": 30 + }, + "identifierName": "inputName" + }, + "name": "inputName" + } + ], + "body": { + "type": "BlockStatement", + "start": 8764, + "end": 9008, + "loc": { + "start": { + "line": 218, + "column": 35 + }, + "end": { + "line": 227, + "column": 3 + } + }, + "body": [ + { + "type": "ExpressionStatement", + "start": 8771, + "end": 8819, + "loc": { + "start": { + "line": 219, + "column": 4 + }, + "end": { + "line": 219, + "column": 52 + } + }, + "expression": { + "type": "AssignmentExpression", + "start": 8771, + "end": 8818, + "loc": { + "start": { + "line": 219, + "column": 4 + }, + "end": { + "line": 219, + "column": 51 + } + }, + "operator": "=", + "left": { + "type": "Identifier", + "start": 8771, + "end": 8780, + "loc": { + "start": { + "line": 219, + "column": 4 + }, + "end": { + "line": 219, + "column": 13 + }, + "identifierName": "inputName" + }, + "name": "inputName" + }, + "right": { + "type": "LogicalExpression", + "start": 8783, + "end": 8818, + "loc": { + "start": { + "line": 219, + "column": 16 + }, + "end": { + "line": 219, + "column": 51 + } + }, + "left": { + "type": "Identifier", + "start": 8783, + "end": 8792, + "loc": { + "start": { + "line": 219, + "column": 16 + }, + "end": { + "line": 219, + "column": 25 + }, + "identifierName": "inputName" + }, + "name": "inputName" + }, + "operator": "||", + "right": { + "type": "MemberExpression", + "start": 8796, + "end": 8818, + "loc": { + "start": { + "line": 219, + "column": 29 + }, + "end": { + "line": 219, + "column": 51 + } + }, + "object": { + "type": "MemberExpression", + "start": 8796, + "end": 8808, + "loc": { + "start": { + "line": 219, + "column": 29 + }, + "end": { + "line": 219, + "column": 41 + } + }, + "object": { + "type": "ThisExpression", + "start": 8796, + "end": 8800, + "loc": { + "start": { + "line": 219, + "column": 29 + }, + "end": { + "line": 219, + "column": 33 + } + } + }, + "property": { + "type": "Identifier", + "start": 8801, + "end": 8808, + "loc": { + "start": { + "line": 219, + "column": 34 + }, + "end": { + "line": 219, + "column": 41 + }, + "identifierName": "options" + }, + "name": "options" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 8809, + "end": 8818, + "loc": { + "start": { + "line": 219, + "column": 42 + }, + "end": { + "line": 219, + "column": 51 + }, + "identifierName": "inputName" + }, + "name": "inputName" + }, + "computed": false + } + } + } + }, + { + "type": "ExpressionStatement", + "start": 8825, + "end": 8855, + "loc": { + "start": { + "line": 220, + "column": 4 + }, + "end": { + "line": 220, + "column": 34 + } + }, + "expression": { + "type": "AssignmentExpression", + "start": 8825, + "end": 8854, + "loc": { + "start": { + "line": 220, + "column": 4 + }, + "end": { + "line": 220, + "column": 33 + } + }, + "operator": "=", + "left": { + "type": "MemberExpression", + "start": 8825, + "end": 8846, + "loc": { + "start": { + "line": 220, + "column": 4 + }, + "end": { + "line": 220, + "column": 25 + } + }, + "object": { + "type": "MemberExpression", + "start": 8825, + "end": 8835, + "loc": { + "start": { + "line": 220, + "column": 4 + }, + "end": { + "line": 220, + "column": 14 + } + }, + "object": { + "type": "ThisExpression", + "start": 8825, + "end": 8829, + "loc": { + "start": { + "line": 220, + "column": 4 + }, + "end": { + "line": 220, + "column": 8 + } + } + }, + "property": { + "type": "Identifier", + "start": 8830, + "end": 8835, + "loc": { + "start": { + "line": 220, + "column": 9 + }, + "end": { + "line": 220, + "column": 14 + }, + "identifierName": "input" + }, + "name": "input" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 8836, + "end": 8845, + "loc": { + "start": { + "line": 220, + "column": 15 + }, + "end": { + "line": 220, + "column": 24 + }, + "identifierName": "inputName" + }, + "name": "inputName" + }, + "computed": true + }, + "right": { + "type": "Identifier", + "start": 8849, + "end": 8854, + "loc": { + "start": { + "line": 220, + "column": 28 + }, + "end": { + "line": 220, + "column": 33 + }, + "identifierName": "input" + }, + "name": "input" + } + }, + "trailingComments": [ + { + "type": "CommentBlock", + "value": "*\r\n * Enforce syncInstanceInputs, if set\r\n ", + "start": 8863, + "end": 8918, + "loc": { + "start": { + "line": 222, + "column": 4 + }, + "end": { + "line": 224, + "column": 7 + } + } + } + ] + }, + { + "type": "IfStatement", + "start": 8924, + "end": 9003, + "loc": { + "start": { + "line": 225, + "column": 4 + }, + "end": { + "line": 226, + "column": 42 + } + }, + "test": { + "type": "MemberExpression", + "start": 8927, + "end": 8958, + "loc": { + "start": { + "line": 225, + "column": 7 + }, + "end": { + "line": 225, + "column": 38 + } + }, + "object": { + "type": "MemberExpression", + "start": 8927, + "end": 8939, + "loc": { + "start": { + "line": 225, + "column": 7 + }, + "end": { + "line": 225, + "column": 19 + } + }, + "object": { + "type": "ThisExpression", + "start": 8927, + "end": 8931, + "loc": { + "start": { + "line": 225, + "column": 7 + }, + "end": { + "line": 225, + "column": 11 + } + }, + "leadingComments": null + }, + "property": { + "type": "Identifier", + "start": 8932, + "end": 8939, + "loc": { + "start": { + "line": 225, + "column": 12 + }, + "end": { + "line": 225, + "column": 19 + }, + "identifierName": "options" + }, + "name": "options" + }, + "computed": false, + "leadingComments": null + }, + "property": { + "type": "Identifier", + "start": 8940, + "end": 8958, + "loc": { + "start": { + "line": 225, + "column": 20 + }, + "end": { + "line": 225, + "column": 38 + }, + "identifierName": "syncInstanceInputs" + }, + "name": "syncInstanceInputs" + }, + "computed": false, + "leadingComments": null + }, + "consequent": { + "type": "ExpressionStatement", + "start": 8967, + "end": 9003, + "loc": { + "start": { + "line": 226, + "column": 6 + }, + "end": { + "line": 226, + "column": 42 + } + }, + "expression": { + "type": "CallExpression", + "start": 8967, + "end": 9002, + "loc": { + "start": { + "line": 226, + "column": 6 + }, + "end": { + "line": 226, + "column": 41 + } + }, + "callee": { + "type": "MemberExpression", + "start": 8967, + "end": 8990, + "loc": { + "start": { + "line": 226, + "column": 6 + }, + "end": { + "line": 226, + "column": 29 + } + }, + "object": { + "type": "ThisExpression", + "start": 8967, + "end": 8971, + "loc": { + "start": { + "line": 226, + "column": 6 + }, + "end": { + "line": 226, + "column": 10 + } + } + }, + "property": { + "type": "Identifier", + "start": 8972, + "end": 8990, + "loc": { + "start": { + "line": 226, + "column": 11 + }, + "end": { + "line": 226, + "column": 29 + }, + "identifierName": "syncInstanceInputs" + }, + "name": "syncInstanceInputs" + }, + "computed": false + }, + "arguments": [ + { + "type": "MemberExpression", + "start": 8991, + "end": 9001, + "loc": { + "start": { + "line": 226, + "column": 30 + }, + "end": { + "line": 226, + "column": 40 + } + }, + "object": { + "type": "ThisExpression", + "start": 8991, + "end": 8995, + "loc": { + "start": { + "line": 226, + "column": 30 + }, + "end": { + "line": 226, + "column": 34 + } + } + }, + "property": { + "type": "Identifier", + "start": 8996, + "end": 9001, + "loc": { + "start": { + "line": 226, + "column": 35 + }, + "end": { + "line": 226, + "column": 40 + }, + "identifierName": "input" + }, + "name": "input" + }, + "computed": false + } + ] + } + }, + "alternate": null, + "leadingComments": [ + { + "type": "CommentBlock", + "value": "*\r\n * Enforce syncInstanceInputs, if set\r\n ", + "start": 8863, + "end": 8918, + "loc": { + "start": { + "line": 222, + "column": 4 + }, + "end": { + "line": 224, + "column": 7 + } + } + } + ] + } + ], + "directives": [], + "trailingComments": null + }, + "trailingComments": null + }, + "leadingComments": [ + { + "type": "CommentBlock", + "value": "*\r\n * Set the keyboard’s input.\r\n * @param {string} input the input value\r\n * @param {string} inputName optional - the internal input to select\r\n ", + "start": 8567, + "end": 8727, + "loc": { + "start": { + "line": 213, + "column": 2 + }, + "end": { + "line": 217, + "column": 5 + } + } + } + ], + "trailingComments": [ + { + "type": "CommentBlock", + "value": "*\r\n * Replace the input object (`keyboard.input`)\r\n * @param {object} inputObj The input object\r\n ", + "start": 9016, + "end": 9125, + "loc": { + "start": { + "line": 229, + "column": 2 + }, + "end": { + "line": 232, + "column": 5 + } + } + } + ] + }, + { + "type": "ClassProperty", + "start": 9129, + "end": 9192, + "loc": { + "start": { + "line": 233, + "column": 2 + }, + "end": { + "line": 235, + "column": 3 + } + }, + "static": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 9129, + "end": 9141, + "loc": { + "start": { + "line": 233, + "column": 2 + }, + "end": { + "line": 233, + "column": 14 + }, + "identifierName": "replaceInput" + }, + "name": "replaceInput", + "leadingComments": null + }, + "value": { + "type": "ArrowFunctionExpression", + "start": 9144, + "end": 9192, + "loc": { + "start": { + "line": 233, + "column": 17 + }, + "end": { + "line": 235, + "column": 3 + } + }, + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 9145, + "end": 9153, + "loc": { + "start": { + "line": 233, + "column": 18 + }, + "end": { + "line": 233, + "column": 26 + }, + "identifierName": "inputObj" + }, + "name": "inputObj" + } + ], + "body": { + "type": "BlockStatement", + "start": 9158, + "end": 9192, + "loc": { + "start": { + "line": 233, + "column": 31 + }, + "end": { + "line": 235, + "column": 3 + } + }, + "body": [ + { + "type": "ExpressionStatement", + "start": 9165, + "end": 9187, + "loc": { + "start": { + "line": 234, + "column": 4 + }, + "end": { + "line": 234, + "column": 26 + } + }, + "expression": { + "type": "AssignmentExpression", + "start": 9165, + "end": 9186, + "loc": { + "start": { + "line": 234, + "column": 4 + }, + "end": { + "line": 234, + "column": 25 + } + }, + "operator": "=", + "left": { + "type": "MemberExpression", + "start": 9165, + "end": 9175, + "loc": { + "start": { + "line": 234, + "column": 4 + }, + "end": { + "line": 234, + "column": 14 + } + }, + "object": { + "type": "ThisExpression", + "start": 9165, + "end": 9169, + "loc": { + "start": { + "line": 234, + "column": 4 + }, + "end": { + "line": 234, + "column": 8 + } + } + }, + "property": { + "type": "Identifier", + "start": 9170, + "end": 9175, + "loc": { + "start": { + "line": 234, + "column": 9 + }, + "end": { + "line": 234, + "column": 14 + }, + "identifierName": "input" + }, + "name": "input" + }, + "computed": false + }, + "right": { + "type": "Identifier", + "start": 9178, + "end": 9186, + "loc": { + "start": { + "line": 234, + "column": 17 + }, + "end": { + "line": 234, + "column": 25 + }, + "identifierName": "inputObj" + }, + "name": "inputObj" + } + } + } + ], + "directives": [], + "trailingComments": null + }, + "trailingComments": null + }, + "leadingComments": [ + { + "type": "CommentBlock", + "value": "*\r\n * Replace the input object (`keyboard.input`)\r\n * @param {object} inputObj The input object\r\n ", + "start": 9016, + "end": 9125, + "loc": { + "start": { + "line": 229, + "column": 2 + }, + "end": { + "line": 232, + "column": 5 + } + } + } + ], + "trailingComments": [ + { + "type": "CommentBlock", + "value": "*\r\n * Set new option or modify existing ones after initialization. \r\n * @param {object} option The option to set\r\n ", + "start": 9198, + "end": 9324, + "loc": { + "start": { + "line": 237, + "column": 2 + }, + "end": { + "line": 240, + "column": 5 + } + } + } + ] + }, + { + "type": "ClassProperty", + "start": 9328, + "end": 9462, + "loc": { + "start": { + "line": 241, + "column": 2 + }, + "end": { + "line": 245, + "column": 3 + } + }, + "static": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 9328, + "end": 9338, + "loc": { + "start": { + "line": 241, + "column": 2 + }, + "end": { + "line": 241, + "column": 12 + }, + "identifierName": "setOptions" + }, + "name": "setOptions", + "leadingComments": null + }, + "value": { + "type": "ArrowFunctionExpression", + "start": 9341, + "end": 9462, + "loc": { + "start": { + "line": 241, + "column": 15 + }, + "end": { + "line": 245, + "column": 3 + } + }, + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 9341, + "end": 9347, + "loc": { + "start": { + "line": 241, + "column": 15 + }, + "end": { + "line": 241, + "column": 21 + }, + "identifierName": "option" + }, + "name": "option" + } + ], + "body": { + "type": "BlockStatement", + "start": 9351, + "end": 9462, + "loc": { + "start": { + "line": 241, + "column": 25 + }, + "end": { + "line": 245, + "column": 3 + } + }, + "body": [ + { + "type": "ExpressionStatement", + "start": 9358, + "end": 9380, + "loc": { + "start": { + "line": 242, + "column": 4 + }, + "end": { + "line": 242, + "column": 26 + } + }, + "expression": { + "type": "AssignmentExpression", + "start": 9358, + "end": 9379, + "loc": { + "start": { + "line": 242, + "column": 4 + }, + "end": { + "line": 242, + "column": 25 + } + }, + "operator": "=", + "left": { + "type": "Identifier", + "start": 9358, + "end": 9364, + "loc": { + "start": { + "line": 242, + "column": 4 + }, + "end": { + "line": 242, + "column": 10 + }, + "identifierName": "option" + }, + "name": "option" + }, + "right": { + "type": "LogicalExpression", + "start": 9367, + "end": 9379, + "loc": { + "start": { + "line": 242, + "column": 13 + }, + "end": { + "line": 242, + "column": 25 + } + }, + "left": { + "type": "Identifier", + "start": 9367, + "end": 9373, + "loc": { + "start": { + "line": 242, + "column": 13 + }, + "end": { + "line": 242, + "column": 19 + }, + "identifierName": "option" + }, + "name": "option" + }, + "operator": "||", + "right": { + "type": "ObjectExpression", + "start": 9377, + "end": 9379, + "loc": { + "start": { + "line": 242, + "column": 23 + }, + "end": { + "line": 242, + "column": 25 + } + }, + "properties": [] + } + } + } + }, + { + "type": "ExpressionStatement", + "start": 9386, + "end": 9437, + "loc": { + "start": { + "line": 243, + "column": 4 + }, + "end": { + "line": 243, + "column": 55 + } + }, + "expression": { + "type": "AssignmentExpression", + "start": 9386, + "end": 9436, + "loc": { + "start": { + "line": 243, + "column": 4 + }, + "end": { + "line": 243, + "column": 54 + } + }, + "operator": "=", + "left": { + "type": "MemberExpression", + "start": 9386, + "end": 9398, + "loc": { + "start": { + "line": 243, + "column": 4 + }, + "end": { + "line": 243, + "column": 16 + } + }, + "object": { + "type": "ThisExpression", + "start": 9386, + "end": 9390, + "loc": { + "start": { + "line": 243, + "column": 4 + }, + "end": { + "line": 243, + "column": 8 + } + } + }, + "property": { + "type": "Identifier", + "start": 9391, + "end": 9398, + "loc": { + "start": { + "line": 243, + "column": 9 + }, + "end": { + "line": 243, + "column": 16 + }, + "identifierName": "options" + }, + "name": "options" + }, + "computed": false + }, + "right": { + "type": "CallExpression", + "start": 9401, + "end": 9436, + "loc": { + "start": { + "line": 243, + "column": 19 + }, + "end": { + "line": 243, + "column": 54 + } + }, + "callee": { + "type": "MemberExpression", + "start": 9401, + "end": 9414, + "loc": { + "start": { + "line": 243, + "column": 19 + }, + "end": { + "line": 243, + "column": 32 + } + }, + "object": { + "type": "Identifier", + "start": 9401, + "end": 9407, + "loc": { + "start": { + "line": 243, + "column": 19 + }, + "end": { + "line": 243, + "column": 25 + }, + "identifierName": "Object" + }, + "name": "Object" + }, + "property": { + "type": "Identifier", + "start": 9408, + "end": 9414, + "loc": { + "start": { + "line": 243, + "column": 26 + }, + "end": { + "line": 243, + "column": 32 + }, + "identifierName": "assign" + }, + "name": "assign" + }, + "computed": false + }, + "arguments": [ + { + "type": "MemberExpression", + "start": 9415, + "end": 9427, + "loc": { + "start": { + "line": 243, + "column": 33 + }, + "end": { + "line": 243, + "column": 45 + } + }, + "object": { + "type": "ThisExpression", + "start": 9415, + "end": 9419, + "loc": { + "start": { + "line": 243, + "column": 33 + }, + "end": { + "line": 243, + "column": 37 + } + } + }, + "property": { + "type": "Identifier", + "start": 9420, + "end": 9427, + "loc": { + "start": { + "line": 243, + "column": 38 + }, + "end": { + "line": 243, + "column": 45 + }, + "identifierName": "options" + }, + "name": "options" + }, + "computed": false + }, + { + "type": "Identifier", + "start": 9429, + "end": 9435, + "loc": { + "start": { + "line": 243, + "column": 47 + }, + "end": { + "line": 243, + "column": 53 + }, + "identifierName": "option" + }, + "name": "option" + } + ] + } + } + }, + { + "type": "ExpressionStatement", + "start": 9443, + "end": 9457, + "loc": { + "start": { + "line": 244, + "column": 4 + }, + "end": { + "line": 244, + "column": 18 + } + }, + "expression": { + "type": "CallExpression", + "start": 9443, + "end": 9456, + "loc": { + "start": { + "line": 244, + "column": 4 + }, + "end": { + "line": 244, + "column": 17 + } + }, + "callee": { + "type": "MemberExpression", + "start": 9443, + "end": 9454, + "loc": { + "start": { + "line": 244, + "column": 4 + }, + "end": { + "line": 244, + "column": 15 + } + }, + "object": { + "type": "ThisExpression", + "start": 9443, + "end": 9447, + "loc": { + "start": { + "line": 244, + "column": 4 + }, + "end": { + "line": 244, + "column": 8 + } + } + }, + "property": { + "type": "Identifier", + "start": 9448, + "end": 9454, + "loc": { + "start": { + "line": 244, + "column": 9 + }, + "end": { + "line": 244, + "column": 15 + }, + "identifierName": "render" + }, + "name": "render" + }, + "computed": false + }, + "arguments": [] + } + } + ], + "directives": [], + "trailingComments": null + }, + "trailingComments": null + }, + "leadingComments": [ + { + "type": "CommentBlock", + "value": "*\r\n * Set new option or modify existing ones after initialization. \r\n * @param {object} option The option to set\r\n ", + "start": 9198, + "end": 9324, + "loc": { + "start": { + "line": 237, + "column": 2 + }, + "end": { + "line": 240, + "column": 5 + } + } + } + ], + "trailingComments": [ + { + "type": "CommentBlock", + "value": "*\r\n * Remove all keyboard rows and reset keyboard values.\r\n * Used interally between re-renders.\r\n ", + "start": 9468, + "end": 9577, + "loc": { + "start": { + "line": 247, + "column": 2 + }, + "end": { + "line": 250, + "column": 5 + } + } + } + ] + }, + { + "type": "ClassProperty", + "start": 9581, + "end": 9727, + "loc": { + "start": { + "line": 251, + "column": 2 + }, + "end": { + "line": 255, + "column": 3 + } + }, + "static": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 9581, + "end": 9586, + "loc": { + "start": { + "line": 251, + "column": 2 + }, + "end": { + "line": 251, + "column": 7 + }, + "identifierName": "clear" + }, + "name": "clear", + "leadingComments": null + }, + "value": { + "type": "ArrowFunctionExpression", + "start": 9589, + "end": 9727, + "loc": { + "start": { + "line": 251, + "column": 10 + }, + "end": { + "line": 255, + "column": 3 + } + }, + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [], + "body": { + "type": "BlockStatement", + "start": 9595, + "end": 9727, + "loc": { + "start": { + "line": 251, + "column": 16 + }, + "end": { + "line": 255, + "column": 3 + } + }, + "body": [ + { + "type": "ExpressionStatement", + "start": 9602, + "end": 9634, + "loc": { + "start": { + "line": 252, + "column": 4 + }, + "end": { + "line": 252, + "column": 36 + } + }, + "expression": { + "type": "AssignmentExpression", + "start": 9602, + "end": 9633, + "loc": { + "start": { + "line": 252, + "column": 4 + }, + "end": { + "line": 252, + "column": 35 + } + }, + "operator": "=", + "left": { + "type": "MemberExpression", + "start": 9602, + "end": 9628, + "loc": { + "start": { + "line": 252, + "column": 4 + }, + "end": { + "line": 252, + "column": 30 + } + }, + "object": { + "type": "MemberExpression", + "start": 9602, + "end": 9618, + "loc": { + "start": { + "line": 252, + "column": 4 + }, + "end": { + "line": 252, + "column": 20 + } + }, + "object": { + "type": "ThisExpression", + "start": 9602, + "end": 9606, + "loc": { + "start": { + "line": 252, + "column": 4 + }, + "end": { + "line": 252, + "column": 8 + } + } + }, + "property": { + "type": "Identifier", + "start": 9607, + "end": 9618, + "loc": { + "start": { + "line": 252, + "column": 9 + }, + "end": { + "line": 252, + "column": 20 + }, + "identifierName": "keyboardDOM" + }, + "name": "keyboardDOM" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 9619, + "end": 9628, + "loc": { + "start": { + "line": 252, + "column": 21 + }, + "end": { + "line": 252, + "column": 30 + }, + "identifierName": "innerHTML" + }, + "name": "innerHTML" + }, + "computed": false + }, + "right": { + "type": "StringLiteral", + "start": 9631, + "end": 9633, + "loc": { + "start": { + "line": 252, + "column": 33 + }, + "end": { + "line": 252, + "column": 35 + } + }, + "extra": { + "rawValue": "", + "raw": "''" + }, + "value": "" + } + } + }, + { + "type": "ExpressionStatement", + "start": 9640, + "end": 9691, + "loc": { + "start": { + "line": 253, + "column": 4 + }, + "end": { + "line": 253, + "column": 55 + } + }, + "expression": { + "type": "AssignmentExpression", + "start": 9640, + "end": 9690, + "loc": { + "start": { + "line": 253, + "column": 4 + }, + "end": { + "line": 253, + "column": 54 + } + }, + "operator": "=", + "left": { + "type": "MemberExpression", + "start": 9640, + "end": 9666, + "loc": { + "start": { + "line": 253, + "column": 4 + }, + "end": { + "line": 253, + "column": 30 + } + }, + "object": { + "type": "MemberExpression", + "start": 9640, + "end": 9656, + "loc": { + "start": { + "line": 253, + "column": 4 + }, + "end": { + "line": 253, + "column": 20 + } + }, + "object": { + "type": "ThisExpression", + "start": 9640, + "end": 9644, + "loc": { + "start": { + "line": 253, + "column": 4 + }, + "end": { + "line": 253, + "column": 8 + } + } + }, + "property": { + "type": "Identifier", + "start": 9645, + "end": 9656, + "loc": { + "start": { + "line": 253, + "column": 9 + }, + "end": { + "line": 253, + "column": 20 + }, + "identifierName": "keyboardDOM" + }, + "name": "keyboardDOM" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 9657, + "end": 9666, + "loc": { + "start": { + "line": 253, + "column": 21 + }, + "end": { + "line": 253, + "column": 30 + }, + "identifierName": "className" + }, + "name": "className" + }, + "computed": false + }, + "right": { + "type": "MemberExpression", + "start": 9669, + "end": 9690, + "loc": { + "start": { + "line": 253, + "column": 33 + }, + "end": { + "line": 253, + "column": 54 + } + }, + "object": { + "type": "ThisExpression", + "start": 9669, + "end": 9673, + "loc": { + "start": { + "line": 253, + "column": 33 + }, + "end": { + "line": 253, + "column": 37 + } + } + }, + "property": { + "type": "Identifier", + "start": 9674, + "end": 9690, + "loc": { + "start": { + "line": 253, + "column": 38 + }, + "end": { + "line": 253, + "column": 54 + }, + "identifierName": "keyboardDOMClass" + }, + "name": "keyboardDOMClass" + }, + "computed": false + } + } + }, + { + "type": "ExpressionStatement", + "start": 9697, + "end": 9722, + "loc": { + "start": { + "line": 254, + "column": 4 + }, + "end": { + "line": 254, + "column": 29 + } + }, + "expression": { + "type": "AssignmentExpression", + "start": 9697, + "end": 9721, + "loc": { + "start": { + "line": 254, + "column": 4 + }, + "end": { + "line": 254, + "column": 28 + } + }, + "operator": "=", + "left": { + "type": "MemberExpression", + "start": 9697, + "end": 9716, + "loc": { + "start": { + "line": 254, + "column": 4 + }, + "end": { + "line": 254, + "column": 23 + } + }, + "object": { + "type": "ThisExpression", + "start": 9697, + "end": 9701, + "loc": { + "start": { + "line": 254, + "column": 4 + }, + "end": { + "line": 254, + "column": 8 + } + } + }, + "property": { + "type": "Identifier", + "start": 9702, + "end": 9716, + "loc": { + "start": { + "line": 254, + "column": 9 + }, + "end": { + "line": 254, + "column": 23 + }, + "identifierName": "buttonElements" + }, + "name": "buttonElements" + }, + "computed": false + }, + "right": { + "type": "ObjectExpression", + "start": 9719, + "end": 9721, + "loc": { + "start": { + "line": 254, + "column": 26 + }, + "end": { + "line": 254, + "column": 28 + } + }, + "properties": [] + } + } + } + ], + "directives": [], + "trailingComments": null + }, + "trailingComments": null + }, + "leadingComments": [ + { + "type": "CommentBlock", + "value": "*\r\n * Remove all keyboard rows and reset keyboard values.\r\n * Used interally between re-renders.\r\n ", + "start": 9468, + "end": 9577, + "loc": { + "start": { + "line": 247, + "column": 2 + }, + "end": { + "line": 250, + "column": 5 + } + } + } + ], + "trailingComments": [ + { + "type": "CommentBlock", + "value": "*\r\n * Send a command to all simple-keyboard instances at once (if you have multiple instances).\r\n * @param {function(instance: object, key: string)} callback Function to run on every instance\r\n ", + "start": 9733, + "end": 9938, + "loc": { + "start": { + "line": 257, + "column": 2 + }, + "end": { + "line": 260, + "column": 5 + } + } + } + ] + }, + { + "type": "ClassProperty", + "start": 9942, + "end": 10317, + "loc": { + "start": { + "line": 261, + "column": 2 + }, + "end": { + "line": 270, + "column": 3 + } + }, + "static": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 9942, + "end": 9950, + "loc": { + "start": { + "line": 261, + "column": 2 + }, + "end": { + "line": 261, + "column": 10 + }, + "identifierName": "dispatch" + }, + "name": "dispatch", + "leadingComments": null + }, + "value": { + "type": "ArrowFunctionExpression", + "start": 9953, + "end": 10317, + "loc": { + "start": { + "line": 261, + "column": 13 + }, + "end": { + "line": 270, + "column": 3 + } + }, + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 9954, + "end": 9962, + "loc": { + "start": { + "line": 261, + "column": 14 + }, + "end": { + "line": 261, + "column": 22 + }, + "identifierName": "callback" + }, + "name": "callback" + } + ], + "body": { + "type": "BlockStatement", + "start": 9967, + "end": 10317, + "loc": { + "start": { + "line": 261, + "column": 27 + }, + "end": { + "line": 270, + "column": 3 + } + }, + "body": [ + { + "type": "IfStatement", + "start": 9974, + "end": 10158, + "loc": { + "start": { + "line": 262, + "column": 4 + }, + "end": { + "line": 265, + "column": 5 + } + }, + "test": { + "type": "UnaryExpression", + "start": 9977, + "end": 10011, + "loc": { + "start": { + "line": 262, + "column": 7 + }, + "end": { + "line": 262, + "column": 41 + } + }, + "operator": "!", + "prefix": true, + "argument": { + "type": "MemberExpression", + "start": 9978, + "end": 10011, + "loc": { + "start": { + "line": 262, + "column": 8 + }, + "end": { + "line": 262, + "column": 41 + } + }, + "object": { + "type": "Identifier", + "start": 9978, + "end": 9984, + "loc": { + "start": { + "line": 262, + "column": 8 + }, + "end": { + "line": 262, + "column": 14 + }, + "identifierName": "window" + }, + "name": "window" + }, + "property": { + "type": "StringLiteral", + "start": 9985, + "end": 10010, + "loc": { + "start": { + "line": 262, + "column": 15 + }, + "end": { + "line": 262, + "column": 40 + } + }, + "extra": { + "rawValue": "SimpleKeyboardInstances", + "raw": "'SimpleKeyboardInstances'" + }, + "value": "SimpleKeyboardInstances" + }, + "computed": true + }, + "extra": { + "parenthesizedArgument": false + } + }, + "consequent": { + "type": "BlockStatement", + "start": 10012, + "end": 10158, + "loc": { + "start": { + "line": 262, + "column": 42 + }, + "end": { + "line": 265, + "column": 5 + } + }, + "body": [ + { + "type": "ExpressionStatement", + "start": 10021, + "end": 10104, + "loc": { + "start": { + "line": 263, + "column": 6 + }, + "end": { + "line": 263, + "column": 89 + } + }, + "expression": { + "type": "CallExpression", + "start": 10021, + "end": 10103, + "loc": { + "start": { + "line": 263, + "column": 6 + }, + "end": { + "line": 263, + "column": 88 + } + }, + "callee": { + "type": "MemberExpression", + "start": 10021, + "end": 10033, + "loc": { + "start": { + "line": 263, + "column": 6 + }, + "end": { + "line": 263, + "column": 18 + } + }, + "object": { + "type": "Identifier", + "start": 10021, + "end": 10028, + "loc": { + "start": { + "line": 263, + "column": 6 + }, + "end": { + "line": 263, + "column": 13 + }, + "identifierName": "console" + }, + "name": "console" + }, + "property": { + "type": "Identifier", + "start": 10029, + "end": 10033, + "loc": { + "start": { + "line": 263, + "column": 14 + }, + "end": { + "line": 263, + "column": 18 + }, + "identifierName": "warn" + }, + "name": "warn" + }, + "computed": false + }, + "arguments": [ + { + "type": "TemplateLiteral", + "start": 10034, + "end": 10102, + "loc": { + "start": { + "line": 263, + "column": 19 + }, + "end": { + "line": 263, + "column": 87 + } + }, + "expressions": [], + "quasis": [ + { + "type": "TemplateElement", + "start": 10035, + "end": 10101, + "loc": { + "start": { + "line": 263, + "column": 20 + }, + "end": { + "line": 263, + "column": 86 + } + }, + "value": { + "raw": "SimpleKeyboardInstances is not defined. Dispatch cannot be called.", + "cooked": "SimpleKeyboardInstances is not defined. Dispatch cannot be called." + }, + "tail": true + } + ] + } + ] + } + }, + { + "type": "ThrowStatement", + "start": 10112, + "end": 10151, + "loc": { + "start": { + "line": 264, + "column": 6 + }, + "end": { + "line": 264, + "column": 45 + } + }, + "argument": { + "type": "NewExpression", + "start": 10118, + "end": 10150, + "loc": { + "start": { + "line": 264, + "column": 12 + }, + "end": { + "line": 264, + "column": 44 + } + }, + "callee": { + "type": "Identifier", + "start": 10122, + "end": 10127, + "loc": { + "start": { + "line": 264, + "column": 16 + }, + "end": { + "line": 264, + "column": 21 + }, + "identifierName": "Error" + }, + "name": "Error" + }, + "arguments": [ + { + "type": "StringLiteral", + "start": 10128, + "end": 10149, + "loc": { + "start": { + "line": 264, + "column": 22 + }, + "end": { + "line": 264, + "column": 43 + } + }, + "extra": { + "rawValue": "INSTANCES_VAR_ERROR", + "raw": "\"INSTANCES_VAR_ERROR\"" + }, + "value": "INSTANCES_VAR_ERROR" + } + ] + } + } + ], + "directives": [] + }, + "alternate": null + }, + { + "type": "ReturnStatement", + "start": 10170, + "end": 10312, + "loc": { + "start": { + "line": 267, + "column": 4 + }, + "end": { + "line": 269, + "column": 6 + } + }, + "argument": { + "type": "CallExpression", + "start": 10177, + "end": 10312, + "loc": { + "start": { + "line": 267, + "column": 11 + }, + "end": { + "line": 269, + "column": 6 + } + }, + "callee": { + "type": "MemberExpression", + "start": 10177, + "end": 10231, + "loc": { + "start": { + "line": 267, + "column": 11 + }, + "end": { + "line": 267, + "column": 65 + } + }, + "object": { + "type": "CallExpression", + "start": 10177, + "end": 10223, + "loc": { + "start": { + "line": 267, + "column": 11 + }, + "end": { + "line": 267, + "column": 57 + } + }, + "callee": { + "type": "MemberExpression", + "start": 10177, + "end": 10188, + "loc": { + "start": { + "line": 267, + "column": 11 + }, + "end": { + "line": 267, + "column": 22 + } + }, + "object": { + "type": "Identifier", + "start": 10177, + "end": 10183, + "loc": { + "start": { + "line": 267, + "column": 11 + }, + "end": { + "line": 267, + "column": 17 + }, + "identifierName": "Object" + }, + "name": "Object" + }, + "property": { + "type": "Identifier", + "start": 10184, + "end": 10188, + "loc": { + "start": { + "line": 267, + "column": 18 + }, + "end": { + "line": 267, + "column": 22 + }, + "identifierName": "keys" + }, + "name": "keys" + }, + "computed": false + }, + "arguments": [ + { + "type": "MemberExpression", + "start": 10189, + "end": 10222, + "loc": { + "start": { + "line": 267, + "column": 23 + }, + "end": { + "line": 267, + "column": 56 + } + }, + "object": { + "type": "Identifier", + "start": 10189, + "end": 10195, + "loc": { + "start": { + "line": 267, + "column": 23 + }, + "end": { + "line": 267, + "column": 29 + }, + "identifierName": "window" + }, + "name": "window" + }, + "property": { + "type": "StringLiteral", + "start": 10196, + "end": 10221, + "loc": { + "start": { + "line": 267, + "column": 30 + }, + "end": { + "line": 267, + "column": 55 + } + }, + "extra": { + "rawValue": "SimpleKeyboardInstances", + "raw": "'SimpleKeyboardInstances'" + }, + "value": "SimpleKeyboardInstances" + }, + "computed": true + } + ] + }, + "property": { + "type": "Identifier", + "start": 10224, + "end": 10231, + "loc": { + "start": { + "line": 267, + "column": 58 + }, + "end": { + "line": 267, + "column": 65 + }, + "identifierName": "forEach" + }, + "name": "forEach" + }, + "computed": false + }, + "arguments": [ + { + "type": "ArrowFunctionExpression", + "start": 10232, + "end": 10311, + "loc": { + "start": { + "line": 267, + "column": 66 + }, + "end": { + "line": 269, + "column": 5 + } + }, + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 10233, + "end": 10236, + "loc": { + "start": { + "line": 267, + "column": 67 + }, + "end": { + "line": 267, + "column": 70 + }, + "identifierName": "key" + }, + "name": "key" + } + ], + "body": { + "type": "BlockStatement", + "start": 10241, + "end": 10311, + "loc": { + "start": { + "line": 267, + "column": 75 + }, + "end": { + "line": 269, + "column": 5 + } + }, + "body": [ + { + "type": "ExpressionStatement", + "start": 10250, + "end": 10304, + "loc": { + "start": { + "line": 268, + "column": 6 + }, + "end": { + "line": 268, + "column": 60 + } + }, + "expression": { + "type": "CallExpression", + "start": 10250, + "end": 10303, + "loc": { + "start": { + "line": 268, + "column": 6 + }, + "end": { + "line": 268, + "column": 59 + } + }, + "callee": { + "type": "Identifier", + "start": 10250, + "end": 10258, + "loc": { + "start": { + "line": 268, + "column": 6 + }, + "end": { + "line": 268, + "column": 14 + }, + "identifierName": "callback" + }, + "name": "callback" + }, + "arguments": [ + { + "type": "MemberExpression", + "start": 10259, + "end": 10297, + "loc": { + "start": { + "line": 268, + "column": 15 + }, + "end": { + "line": 268, + "column": 53 + } + }, + "object": { + "type": "MemberExpression", + "start": 10259, + "end": 10292, + "loc": { + "start": { + "line": 268, + "column": 15 + }, + "end": { + "line": 268, + "column": 48 + } + }, + "object": { + "type": "Identifier", + "start": 10259, + "end": 10265, + "loc": { + "start": { + "line": 268, + "column": 15 + }, + "end": { + "line": 268, + "column": 21 + }, + "identifierName": "window" + }, + "name": "window" + }, + "property": { + "type": "StringLiteral", + "start": 10266, + "end": 10291, + "loc": { + "start": { + "line": 268, + "column": 22 + }, + "end": { + "line": 268, + "column": 47 + } + }, + "extra": { + "rawValue": "SimpleKeyboardInstances", + "raw": "'SimpleKeyboardInstances'" + }, + "value": "SimpleKeyboardInstances" + }, + "computed": true + }, + "property": { + "type": "Identifier", + "start": 10293, + "end": 10296, + "loc": { + "start": { + "line": 268, + "column": 49 + }, + "end": { + "line": 268, + "column": 52 + }, + "identifierName": "key" + }, + "name": "key" + }, + "computed": true + }, + { + "type": "Identifier", + "start": 10299, + "end": 10302, + "loc": { + "start": { + "line": 268, + "column": 55 + }, + "end": { + "line": 268, + "column": 58 + }, + "identifierName": "key" + }, + "name": "key" + } + ] + } + } + ], + "directives": [] + } + } + ] + } + } + ], + "directives": [], + "trailingComments": null + }, + "trailingComments": null + }, + "leadingComments": [ + { + "type": "CommentBlock", + "value": "*\r\n * Send a command to all simple-keyboard instances at once (if you have multiple instances).\r\n * @param {function(instance: object, key: string)} callback Function to run on every instance\r\n ", + "start": 9733, + "end": 9938, + "loc": { + "start": { + "line": 257, + "column": 2 + }, + "end": { + "line": 260, + "column": 5 + } + } + } + ], + "trailingComments": [ + { + "type": "CommentBlock", + "value": "*\r\n * Adds/Modifies an entry to the `buttonTheme`. Basically a way to add a class to a button.\r\n * @param {string} buttons List of buttons to select (separated by a space).\r\n * @param {string} className Classes to give to the selected buttons (separated by space).\r\n ", + "start": 10323, + "end": 10604, + "loc": { + "start": { + "line": 272, + "column": 2 + }, + "end": { + "line": 276, + "column": 5 + } + } + } + ] + }, + { + "type": "ClassProperty", + "start": 10608, + "end": 11847, + "loc": { + "start": { + "line": 277, + "column": 2 + }, + "end": { + "line": 320, + "column": 3 + } + }, + "static": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 10608, + "end": 10622, + "loc": { + "start": { + "line": 277, + "column": 2 + }, + "end": { + "line": 277, + "column": 16 + }, + "identifierName": "addButtonTheme" + }, + "name": "addButtonTheme", + "leadingComments": null + }, + "value": { + "type": "ArrowFunctionExpression", + "start": 10625, + "end": 11847, + "loc": { + "start": { + "line": 277, + "column": 19 + }, + "end": { + "line": 320, + "column": 3 + } + }, + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 10626, + "end": 10633, + "loc": { + "start": { + "line": 277, + "column": 20 + }, + "end": { + "line": 277, + "column": 27 + }, + "identifierName": "buttons" + }, + "name": "buttons" + }, + { + "type": "Identifier", + "start": 10635, + "end": 10644, + "loc": { + "start": { + "line": 277, + "column": 29 + }, + "end": { + "line": 277, + "column": 38 + }, + "identifierName": "className" + }, + "name": "className" + } + ], + "body": { + "type": "BlockStatement", + "start": 10649, + "end": 11847, + "loc": { + "start": { + "line": 277, + "column": 43 + }, + "end": { + "line": 320, + "column": 3 + } + }, + "body": [ + { + "type": "IfStatement", + "start": 10656, + "end": 10703, + "loc": { + "start": { + "line": 278, + "column": 4 + }, + "end": { + "line": 279, + "column": 19 + } + }, + "test": { + "type": "LogicalExpression", + "start": 10659, + "end": 10681, + "loc": { + "start": { + "line": 278, + "column": 7 + }, + "end": { + "line": 278, + "column": 29 + } + }, + "left": { + "type": "UnaryExpression", + "start": 10659, + "end": 10669, + "loc": { + "start": { + "line": 278, + "column": 7 + }, + "end": { + "line": 278, + "column": 17 + } + }, + "operator": "!", + "prefix": true, + "argument": { + "type": "Identifier", + "start": 10660, + "end": 10669, + "loc": { + "start": { + "line": 278, + "column": 8 + }, + "end": { + "line": 278, + "column": 17 + }, + "identifierName": "className" + }, + "name": "className" + }, + "extra": { + "parenthesizedArgument": false + } + }, + "operator": "||", + "right": { + "type": "UnaryExpression", + "start": 10673, + "end": 10681, + "loc": { + "start": { + "line": 278, + "column": 21 + }, + "end": { + "line": 278, + "column": 29 + } + }, + "operator": "!", + "prefix": true, + "argument": { + "type": "Identifier", + "start": 10674, + "end": 10681, + "loc": { + "start": { + "line": 278, + "column": 22 + }, + "end": { + "line": 278, + "column": 29 + }, + "identifierName": "buttons" + }, + "name": "buttons" + }, + "extra": { + "parenthesizedArgument": false + } + } + }, + "consequent": { + "type": "ReturnStatement", + "start": 10690, + "end": 10703, + "loc": { + "start": { + "line": 279, + "column": 6 + }, + "end": { + "line": 279, + "column": 19 + } + }, + "argument": { + "type": "BooleanLiteral", + "start": 10697, + "end": 10702, + "loc": { + "start": { + "line": 279, + "column": 13 + }, + "end": { + "line": 279, + "column": 18 + } + }, + "value": false + } + }, + "alternate": null + }, + { + "type": "ExpressionStatement", + "start": 10711, + "end": 11820, + "loc": { + "start": { + "line": 281, + "column": 4 + }, + "end": { + "line": 317, + "column": 7 + } + }, + "expression": { + "type": "CallExpression", + "start": 10711, + "end": 11819, + "loc": { + "start": { + "line": 281, + "column": 4 + }, + "end": { + "line": 317, + "column": 6 + } + }, + "callee": { + "type": "MemberExpression", + "start": 10711, + "end": 10737, + "loc": { + "start": { + "line": 281, + "column": 4 + }, + "end": { + "line": 281, + "column": 30 + } + }, + "object": { + "type": "CallExpression", + "start": 10711, + "end": 10729, + "loc": { + "start": { + "line": 281, + "column": 4 + }, + "end": { + "line": 281, + "column": 22 + } + }, + "callee": { + "type": "MemberExpression", + "start": 10711, + "end": 10724, + "loc": { + "start": { + "line": 281, + "column": 4 + }, + "end": { + "line": 281, + "column": 17 + } + }, + "object": { + "type": "Identifier", + "start": 10711, + "end": 10718, + "loc": { + "start": { + "line": 281, + "column": 4 + }, + "end": { + "line": 281, + "column": 11 + }, + "identifierName": "buttons" + }, + "name": "buttons" + }, + "property": { + "type": "Identifier", + "start": 10719, + "end": 10724, + "loc": { + "start": { + "line": 281, + "column": 12 + }, + "end": { + "line": 281, + "column": 17 + }, + "identifierName": "split" + }, + "name": "split" + }, + "computed": false + }, + "arguments": [ + { + "type": "StringLiteral", + "start": 10725, + "end": 10728, + "loc": { + "start": { + "line": 281, + "column": 18 + }, + "end": { + "line": 281, + "column": 21 + } + }, + "extra": { + "rawValue": " ", + "raw": "\" \"" + }, + "value": " " + } + ] + }, + "property": { + "type": "Identifier", + "start": 10730, + "end": 10737, + "loc": { + "start": { + "line": 281, + "column": 23 + }, + "end": { + "line": 281, + "column": 30 + }, + "identifierName": "forEach" + }, + "name": "forEach" + }, + "computed": false + }, + "arguments": [ + { + "type": "ArrowFunctionExpression", + "start": 10738, + "end": 11818, + "loc": { + "start": { + "line": 281, + "column": 31 + }, + "end": { + "line": 317, + "column": 5 + } + }, + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 10738, + "end": 10744, + "loc": { + "start": { + "line": 281, + "column": 31 + }, + "end": { + "line": 281, + "column": 37 + }, + "identifierName": "button" + }, + "name": "button" + } + ], + "body": { + "type": "BlockStatement", + "start": 10748, + "end": 11818, + "loc": { + "start": { + "line": 281, + "column": 41 + }, + "end": { + "line": 317, + "column": 5 + } + }, + "body": [ + { + "type": "ExpressionStatement", + "start": 10757, + "end": 11811, + "loc": { + "start": { + "line": 282, + "column": 6 + }, + "end": { + "line": 316, + "column": 9 + } + }, + "expression": { + "type": "CallExpression", + "start": 10757, + "end": 11810, + "loc": { + "start": { + "line": 282, + "column": 6 + }, + "end": { + "line": 316, + "column": 8 + } + }, + "callee": { + "type": "MemberExpression", + "start": 10757, + "end": 10785, + "loc": { + "start": { + "line": 282, + "column": 6 + }, + "end": { + "line": 282, + "column": 34 + } + }, + "object": { + "type": "CallExpression", + "start": 10757, + "end": 10777, + "loc": { + "start": { + "line": 282, + "column": 6 + }, + "end": { + "line": 282, + "column": 26 + } + }, + "callee": { + "type": "MemberExpression", + "start": 10757, + "end": 10772, + "loc": { + "start": { + "line": 282, + "column": 6 + }, + "end": { + "line": 282, + "column": 21 + } + }, + "object": { + "type": "Identifier", + "start": 10757, + "end": 10766, + "loc": { + "start": { + "line": 282, + "column": 6 + }, + "end": { + "line": 282, + "column": 15 + }, + "identifierName": "className" + }, + "name": "className" + }, + "property": { + "type": "Identifier", + "start": 10767, + "end": 10772, + "loc": { + "start": { + "line": 282, + "column": 16 + }, + "end": { + "line": 282, + "column": 21 + }, + "identifierName": "split" + }, + "name": "split" + }, + "computed": false + }, + "arguments": [ + { + "type": "StringLiteral", + "start": 10773, + "end": 10776, + "loc": { + "start": { + "line": 282, + "column": 22 + }, + "end": { + "line": 282, + "column": 25 + } + }, + "extra": { + "rawValue": " ", + "raw": "\" \"" + }, + "value": " " + } + ] + }, + "property": { + "type": "Identifier", + "start": 10778, + "end": 10785, + "loc": { + "start": { + "line": 282, + "column": 27 + }, + "end": { + "line": 282, + "column": 34 + }, + "identifierName": "forEach" + }, + "name": "forEach" + }, + "computed": false + }, + "arguments": [ + { + "type": "ArrowFunctionExpression", + "start": 10786, + "end": 11809, + "loc": { + "start": { + "line": 282, + "column": 35 + }, + "end": { + "line": 316, + "column": 7 + } + }, + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 10786, + "end": 10799, + "loc": { + "start": { + "line": 282, + "column": 35 + }, + "end": { + "line": 282, + "column": 48 + }, + "identifierName": "classNameItem" + }, + "name": "classNameItem" + } + ], + "body": { + "type": "BlockStatement", + "start": 10803, + "end": 11809, + "loc": { + "start": { + "line": 282, + "column": 52 + }, + "end": { + "line": 316, + "column": 7 + } + }, + "body": [ + { + "type": "IfStatement", + "start": 10814, + "end": 10885, + "loc": { + "start": { + "line": 283, + "column": 8 + }, + "end": { + "line": 284, + "column": 40 + } + }, + "test": { + "type": "UnaryExpression", + "start": 10817, + "end": 10842, + "loc": { + "start": { + "line": 283, + "column": 11 + }, + "end": { + "line": 283, + "column": 36 + } + }, + "operator": "!", + "prefix": true, + "argument": { + "type": "MemberExpression", + "start": 10818, + "end": 10842, + "loc": { + "start": { + "line": 283, + "column": 12 + }, + "end": { + "line": 283, + "column": 36 + } + }, + "object": { + "type": "MemberExpression", + "start": 10818, + "end": 10830, + "loc": { + "start": { + "line": 283, + "column": 12 + }, + "end": { + "line": 283, + "column": 24 + } + }, + "object": { + "type": "ThisExpression", + "start": 10818, + "end": 10822, + "loc": { + "start": { + "line": 283, + "column": 12 + }, + "end": { + "line": 283, + "column": 16 + } + } + }, + "property": { + "type": "Identifier", + "start": 10823, + "end": 10830, + "loc": { + "start": { + "line": 283, + "column": 17 + }, + "end": { + "line": 283, + "column": 24 + }, + "identifierName": "options" + }, + "name": "options" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 10831, + "end": 10842, + "loc": { + "start": { + "line": 283, + "column": 25 + }, + "end": { + "line": 283, + "column": 36 + }, + "identifierName": "buttonTheme" + }, + "name": "buttonTheme" + }, + "computed": false + }, + "extra": { + "parenthesizedArgument": false + } + }, + "consequent": { + "type": "ExpressionStatement", + "start": 10855, + "end": 10885, + "loc": { + "start": { + "line": 284, + "column": 10 + }, + "end": { + "line": 284, + "column": 40 + } + }, + "expression": { + "type": "AssignmentExpression", + "start": 10855, + "end": 10884, + "loc": { + "start": { + "line": 284, + "column": 10 + }, + "end": { + "line": 284, + "column": 39 + } + }, + "operator": "=", + "left": { + "type": "MemberExpression", + "start": 10855, + "end": 10879, + "loc": { + "start": { + "line": 284, + "column": 10 + }, + "end": { + "line": 284, + "column": 34 + } + }, + "object": { + "type": "MemberExpression", + "start": 10855, + "end": 10867, + "loc": { + "start": { + "line": 284, + "column": 10 + }, + "end": { + "line": 284, + "column": 22 + } + }, + "object": { + "type": "ThisExpression", + "start": 10855, + "end": 10859, + "loc": { + "start": { + "line": 284, + "column": 10 + }, + "end": { + "line": 284, + "column": 14 + } + } + }, + "property": { + "type": "Identifier", + "start": 10860, + "end": 10867, + "loc": { + "start": { + "line": 284, + "column": 15 + }, + "end": { + "line": 284, + "column": 22 + }, + "identifierName": "options" + }, + "name": "options" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 10868, + "end": 10879, + "loc": { + "start": { + "line": 284, + "column": 23 + }, + "end": { + "line": 284, + "column": 34 + }, + "identifierName": "buttonTheme" + }, + "name": "buttonTheme" + }, + "computed": false + }, + "right": { + "type": "ArrayExpression", + "start": 10882, + "end": 10884, + "loc": { + "start": { + "line": 284, + "column": 37 + }, + "end": { + "line": 284, + "column": 39 + } + }, + "elements": [] + } + } + }, + "alternate": null + }, + { + "type": "VariableDeclaration", + "start": 10897, + "end": 10924, + "loc": { + "start": { + "line": 286, + "column": 8 + }, + "end": { + "line": 286, + "column": 35 + } + }, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 10901, + "end": 10923, + "loc": { + "start": { + "line": 286, + "column": 12 + }, + "end": { + "line": 286, + "column": 34 + } + }, + "id": { + "type": "Identifier", + "start": 10901, + "end": 10915, + "loc": { + "start": { + "line": 286, + "column": 12 + }, + "end": { + "line": 286, + "column": 26 + }, + "identifierName": "classNameFound" + }, + "name": "classNameFound" + }, + "init": { + "type": "BooleanLiteral", + "start": 10918, + "end": 10923, + "loc": { + "start": { + "line": 286, + "column": 29 + }, + "end": { + "line": 286, + "column": 34 + } + }, + "value": false + } + } + ], + "kind": "let", + "trailingComments": [ + { + "type": "CommentBlock", + "value": "*\r\n * If class is already defined, we add button to class definition\r\n ", + "start": 10938, + "end": 11029, + "loc": { + "start": { + "line": 288, + "column": 8 + }, + "end": { + "line": 290, + "column": 11 + } + } + } + ] + }, + { + "type": "ExpressionStatement", + "start": 11039, + "end": 11547, + "loc": { + "start": { + "line": 291, + "column": 8 + }, + "end": { + "line": 304, + "column": 11 + } + }, + "expression": { + "type": "CallExpression", + "start": 11039, + "end": 11546, + "loc": { + "start": { + "line": 291, + "column": 8 + }, + "end": { + "line": 304, + "column": 10 + } + }, + "callee": { + "type": "MemberExpression", + "start": 11039, + "end": 11067, + "loc": { + "start": { + "line": 291, + "column": 8 + }, + "end": { + "line": 291, + "column": 36 + } + }, + "object": { + "type": "MemberExpression", + "start": 11039, + "end": 11063, + "loc": { + "start": { + "line": 291, + "column": 8 + }, + "end": { + "line": 291, + "column": 32 + } + }, + "object": { + "type": "MemberExpression", + "start": 11039, + "end": 11051, + "loc": { + "start": { + "line": 291, + "column": 8 + }, + "end": { + "line": 291, + "column": 20 + } + }, + "object": { + "type": "ThisExpression", + "start": 11039, + "end": 11043, + "loc": { + "start": { + "line": 291, + "column": 8 + }, + "end": { + "line": 291, + "column": 12 + } + }, + "leadingComments": null + }, + "property": { + "type": "Identifier", + "start": 11044, + "end": 11051, + "loc": { + "start": { + "line": 291, + "column": 13 + }, + "end": { + "line": 291, + "column": 20 + }, + "identifierName": "options" + }, + "name": "options" + }, + "computed": false, + "leadingComments": null + }, + "property": { + "type": "Identifier", + "start": 11052, + "end": 11063, + "loc": { + "start": { + "line": 291, + "column": 21 + }, + "end": { + "line": 291, + "column": 32 + }, + "identifierName": "buttonTheme" + }, + "name": "buttonTheme" + }, + "computed": false, + "leadingComments": null + }, + "property": { + "type": "Identifier", + "start": 11064, + "end": 11067, + "loc": { + "start": { + "line": 291, + "column": 33 + }, + "end": { + "line": 291, + "column": 36 + }, + "identifierName": "map" + }, + "name": "map" + }, + "computed": false, + "leadingComments": null + }, + "arguments": [ + { + "type": "ArrowFunctionExpression", + "start": 11068, + "end": 11545, + "loc": { + "start": { + "line": 291, + "column": 37 + }, + "end": { + "line": 304, + "column": 9 + } + }, + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 11068, + "end": 11079, + "loc": { + "start": { + "line": 291, + "column": 37 + }, + "end": { + "line": 291, + "column": 48 + }, + "identifierName": "buttonTheme" + }, + "name": "buttonTheme" + } + ], + "body": { + "type": "BlockStatement", + "start": 11083, + "end": 11545, + "loc": { + "start": { + "line": 291, + "column": 52 + }, + "end": { + "line": 304, + "column": 9 + } + }, + "body": [ + { + "type": "IfStatement", + "start": 11098, + "end": 11503, + "loc": { + "start": { + "line": 293, + "column": 10 + }, + "end": { + "line": 302, + "column": 11 + } + }, + "test": { + "type": "CallExpression", + "start": 11101, + "end": 11153, + "loc": { + "start": { + "line": 293, + "column": 13 + }, + "end": { + "line": 293, + "column": 65 + } + }, + "callee": { + "type": "MemberExpression", + "start": 11101, + "end": 11138, + "loc": { + "start": { + "line": 293, + "column": 13 + }, + "end": { + "line": 293, + "column": 50 + } + }, + "object": { + "type": "CallExpression", + "start": 11101, + "end": 11129, + "loc": { + "start": { + "line": 293, + "column": 13 + }, + "end": { + "line": 293, + "column": 41 + } + }, + "callee": { + "type": "MemberExpression", + "start": 11101, + "end": 11124, + "loc": { + "start": { + "line": 293, + "column": 13 + }, + "end": { + "line": 293, + "column": 36 + } + }, + "object": { + "type": "MemberExpression", + "start": 11101, + "end": 11118, + "loc": { + "start": { + "line": 293, + "column": 13 + }, + "end": { + "line": 293, + "column": 30 + } + }, + "object": { + "type": "Identifier", + "start": 11101, + "end": 11112, + "loc": { + "start": { + "line": 293, + "column": 13 + }, + "end": { + "line": 293, + "column": 24 + }, + "identifierName": "buttonTheme" + }, + "name": "buttonTheme" + }, + "property": { + "type": "Identifier", + "start": 11113, + "end": 11118, + "loc": { + "start": { + "line": 293, + "column": 25 + }, + "end": { + "line": 293, + "column": 30 + }, + "identifierName": "class" + }, + "name": "class" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 11119, + "end": 11124, + "loc": { + "start": { + "line": 293, + "column": 31 + }, + "end": { + "line": 293, + "column": 36 + }, + "identifierName": "split" + }, + "name": "split" + }, + "computed": false + }, + "arguments": [ + { + "type": "StringLiteral", + "start": 11125, + "end": 11128, + "loc": { + "start": { + "line": 293, + "column": 37 + }, + "end": { + "line": 293, + "column": 40 + } + }, + "extra": { + "rawValue": " ", + "raw": "\" \"" + }, + "value": " " + } + ] + }, + "property": { + "type": "Identifier", + "start": 11130, + "end": 11138, + "loc": { + "start": { + "line": 293, + "column": 42 + }, + "end": { + "line": 293, + "column": 50 + }, + "identifierName": "includes" + }, + "name": "includes" + }, + "computed": false + }, + "arguments": [ + { + "type": "Identifier", + "start": 11139, + "end": 11152, + "loc": { + "start": { + "line": 293, + "column": 51 + }, + "end": { + "line": 293, + "column": 64 + }, + "identifierName": "classNameItem" + }, + "name": "classNameItem" + } + ] + }, + "consequent": { + "type": "BlockStatement", + "start": 11154, + "end": 11503, + "loc": { + "start": { + "line": 293, + "column": 66 + }, + "end": { + "line": 302, + "column": 11 + } + }, + "body": [ + { + "type": "ExpressionStatement", + "start": 11169, + "end": 11191, + "loc": { + "start": { + "line": 294, + "column": 12 + }, + "end": { + "line": 294, + "column": 34 + } + }, + "expression": { + "type": "AssignmentExpression", + "start": 11169, + "end": 11190, + "loc": { + "start": { + "line": 294, + "column": 12 + }, + "end": { + "line": 294, + "column": 33 + } + }, + "operator": "=", + "left": { + "type": "Identifier", + "start": 11169, + "end": 11183, + "loc": { + "start": { + "line": 294, + "column": 12 + }, + "end": { + "line": 294, + "column": 26 + }, + "identifierName": "classNameFound" + }, + "name": "classNameFound" + }, + "right": { + "type": "BooleanLiteral", + "start": 11186, + "end": 11190, + "loc": { + "start": { + "line": 294, + "column": 29 + }, + "end": { + "line": 294, + "column": 33 + } + }, + "value": true + } + } + }, + { + "type": "VariableDeclaration", + "start": 11219, + "end": 11273, + "loc": { + "start": { + "line": 296, + "column": 12 + }, + "end": { + "line": 296, + "column": 66 + } + }, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 11223, + "end": 11272, + "loc": { + "start": { + "line": 296, + "column": 16 + }, + "end": { + "line": 296, + "column": 65 + } + }, + "id": { + "type": "Identifier", + "start": 11223, + "end": 11239, + "loc": { + "start": { + "line": 296, + "column": 16 + }, + "end": { + "line": 296, + "column": 32 + }, + "identifierName": "buttonThemeArray" + }, + "name": "buttonThemeArray" + }, + "init": { + "type": "CallExpression", + "start": 11242, + "end": 11272, + "loc": { + "start": { + "line": 296, + "column": 35 + }, + "end": { + "line": 296, + "column": 65 + } + }, + "callee": { + "type": "MemberExpression", + "start": 11242, + "end": 11267, + "loc": { + "start": { + "line": 296, + "column": 35 + }, + "end": { + "line": 296, + "column": 60 + } + }, + "object": { + "type": "MemberExpression", + "start": 11242, + "end": 11261, + "loc": { + "start": { + "line": 296, + "column": 35 + }, + "end": { + "line": 296, + "column": 54 + } + }, + "object": { + "type": "Identifier", + "start": 11242, + "end": 11253, + "loc": { + "start": { + "line": 296, + "column": 35 + }, + "end": { + "line": 296, + "column": 46 + }, + "identifierName": "buttonTheme" + }, + "name": "buttonTheme" + }, + "property": { + "type": "Identifier", + "start": 11254, + "end": 11261, + "loc": { + "start": { + "line": 296, + "column": 47 + }, + "end": { + "line": 296, + "column": 54 + }, + "identifierName": "buttons" + }, + "name": "buttons" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 11262, + "end": 11267, + "loc": { + "start": { + "line": 296, + "column": 55 + }, + "end": { + "line": 296, + "column": 60 + }, + "identifierName": "split" + }, + "name": "split" + }, + "computed": false + }, + "arguments": [ + { + "type": "StringLiteral", + "start": 11268, + "end": 11271, + "loc": { + "start": { + "line": 296, + "column": 61 + }, + "end": { + "line": 296, + "column": 64 + } + }, + "extra": { + "rawValue": " ", + "raw": "\" \"" + }, + "value": " " + } + ] + } + } + ], + "kind": "let" + }, + { + "type": "IfStatement", + "start": 11287, + "end": 11490, + "loc": { + "start": { + "line": 297, + "column": 12 + }, + "end": { + "line": 301, + "column": 13 + } + }, + "test": { + "type": "UnaryExpression", + "start": 11290, + "end": 11324, + "loc": { + "start": { + "line": 297, + "column": 15 + }, + "end": { + "line": 297, + "column": 49 + } + }, + "operator": "!", + "prefix": true, + "argument": { + "type": "CallExpression", + "start": 11291, + "end": 11324, + "loc": { + "start": { + "line": 297, + "column": 16 + }, + "end": { + "line": 297, + "column": 49 + } + }, + "callee": { + "type": "MemberExpression", + "start": 11291, + "end": 11316, + "loc": { + "start": { + "line": 297, + "column": 16 + }, + "end": { + "line": 297, + "column": 41 + } + }, + "object": { + "type": "Identifier", + "start": 11291, + "end": 11307, + "loc": { + "start": { + "line": 297, + "column": 16 + }, + "end": { + "line": 297, + "column": 32 + }, + "identifierName": "buttonThemeArray" + }, + "name": "buttonThemeArray" + }, + "property": { + "type": "Identifier", + "start": 11308, + "end": 11316, + "loc": { + "start": { + "line": 297, + "column": 33 + }, + "end": { + "line": 297, + "column": 41 + }, + "identifierName": "includes" + }, + "name": "includes" + }, + "computed": false + }, + "arguments": [ + { + "type": "Identifier", + "start": 11317, + "end": 11323, + "loc": { + "start": { + "line": 297, + "column": 42 + }, + "end": { + "line": 297, + "column": 48 + }, + "identifierName": "button" + }, + "name": "button" + } + ] + }, + "extra": { + "parenthesizedArgument": false + } + }, + "consequent": { + "type": "BlockStatement", + "start": 11325, + "end": 11490, + "loc": { + "start": { + "line": 297, + "column": 50 + }, + "end": { + "line": 301, + "column": 13 + } + }, + "body": [ + { + "type": "ExpressionStatement", + "start": 11342, + "end": 11364, + "loc": { + "start": { + "line": 298, + "column": 14 + }, + "end": { + "line": 298, + "column": 36 + } + }, + "expression": { + "type": "AssignmentExpression", + "start": 11342, + "end": 11363, + "loc": { + "start": { + "line": 298, + "column": 14 + }, + "end": { + "line": 298, + "column": 35 + } + }, + "operator": "=", + "left": { + "type": "Identifier", + "start": 11342, + "end": 11356, + "loc": { + "start": { + "line": 298, + "column": 14 + }, + "end": { + "line": 298, + "column": 28 + }, + "identifierName": "classNameFound" + }, + "name": "classNameFound" + }, + "right": { + "type": "BooleanLiteral", + "start": 11359, + "end": 11363, + "loc": { + "start": { + "line": 298, + "column": 31 + }, + "end": { + "line": 298, + "column": 35 + } + }, + "value": true + } + } + }, + { + "type": "ExpressionStatement", + "start": 11380, + "end": 11410, + "loc": { + "start": { + "line": 299, + "column": 14 + }, + "end": { + "line": 299, + "column": 44 + } + }, + "expression": { + "type": "CallExpression", + "start": 11380, + "end": 11409, + "loc": { + "start": { + "line": 299, + "column": 14 + }, + "end": { + "line": 299, + "column": 43 + } + }, + "callee": { + "type": "MemberExpression", + "start": 11380, + "end": 11401, + "loc": { + "start": { + "line": 299, + "column": 14 + }, + "end": { + "line": 299, + "column": 35 + } + }, + "object": { + "type": "Identifier", + "start": 11380, + "end": 11396, + "loc": { + "start": { + "line": 299, + "column": 14 + }, + "end": { + "line": 299, + "column": 30 + }, + "identifierName": "buttonThemeArray" + }, + "name": "buttonThemeArray" + }, + "property": { + "type": "Identifier", + "start": 11397, + "end": 11401, + "loc": { + "start": { + "line": 299, + "column": 31 + }, + "end": { + "line": 299, + "column": 35 + }, + "identifierName": "push" + }, + "name": "push" + }, + "computed": false + }, + "arguments": [ + { + "type": "Identifier", + "start": 11402, + "end": 11408, + "loc": { + "start": { + "line": 299, + "column": 36 + }, + "end": { + "line": 299, + "column": 42 + }, + "identifierName": "button" + }, + "name": "button" + } + ] + } + }, + { + "type": "ExpressionStatement", + "start": 11426, + "end": 11475, + "loc": { + "start": { + "line": 300, + "column": 14 + }, + "end": { + "line": 300, + "column": 63 + } + }, + "expression": { + "type": "AssignmentExpression", + "start": 11426, + "end": 11474, + "loc": { + "start": { + "line": 300, + "column": 14 + }, + "end": { + "line": 300, + "column": 62 + } + }, + "operator": "=", + "left": { + "type": "MemberExpression", + "start": 11426, + "end": 11445, + "loc": { + "start": { + "line": 300, + "column": 14 + }, + "end": { + "line": 300, + "column": 33 + } + }, + "object": { + "type": "Identifier", + "start": 11426, + "end": 11437, + "loc": { + "start": { + "line": 300, + "column": 14 + }, + "end": { + "line": 300, + "column": 25 + }, + "identifierName": "buttonTheme" + }, + "name": "buttonTheme" + }, + "property": { + "type": "Identifier", + "start": 11438, + "end": 11445, + "loc": { + "start": { + "line": 300, + "column": 26 + }, + "end": { + "line": 300, + "column": 33 + }, + "identifierName": "buttons" + }, + "name": "buttons" + }, + "computed": false + }, + "right": { + "type": "CallExpression", + "start": 11448, + "end": 11474, + "loc": { + "start": { + "line": 300, + "column": 36 + }, + "end": { + "line": 300, + "column": 62 + } + }, + "callee": { + "type": "MemberExpression", + "start": 11448, + "end": 11469, + "loc": { + "start": { + "line": 300, + "column": 36 + }, + "end": { + "line": 300, + "column": 57 + } + }, + "object": { + "type": "Identifier", + "start": 11448, + "end": 11464, + "loc": { + "start": { + "line": 300, + "column": 36 + }, + "end": { + "line": 300, + "column": 52 + }, + "identifierName": "buttonThemeArray" + }, + "name": "buttonThemeArray" + }, + "property": { + "type": "Identifier", + "start": 11465, + "end": 11469, + "loc": { + "start": { + "line": 300, + "column": 53 + }, + "end": { + "line": 300, + "column": 57 + }, + "identifierName": "join" + }, + "name": "join" + }, + "computed": false + }, + "arguments": [ + { + "type": "StringLiteral", + "start": 11470, + "end": 11473, + "loc": { + "start": { + "line": 300, + "column": 58 + }, + "end": { + "line": 300, + "column": 61 + } + }, + "extra": { + "rawValue": " ", + "raw": "\" \"" + }, + "value": " " + } + ] + } + } + } + ], + "directives": [] + }, + "alternate": null + } + ], + "directives": [] + }, + "alternate": null + }, + { + "type": "ReturnStatement", + "start": 11515, + "end": 11534, + "loc": { + "start": { + "line": 303, + "column": 10 + }, + "end": { + "line": 303, + "column": 29 + } + }, + "argument": { + "type": "Identifier", + "start": 11522, + "end": 11533, + "loc": { + "start": { + "line": 303, + "column": 17 + }, + "end": { + "line": 303, + "column": 28 + }, + "identifierName": "buttonTheme" + }, + "name": "buttonTheme" + } + } + ], + "directives": [] + } + } + ], + "leadingComments": null + }, + "leadingComments": [ + { + "type": "CommentBlock", + "value": "*\r\n * If class is already defined, we add button to class definition\r\n ", + "start": 10938, + "end": 11029, + "loc": { + "start": { + "line": 288, + "column": 8 + }, + "end": { + "line": 290, + "column": 11 + } + } + } + ], + "trailingComments": [ + { + "type": "CommentBlock", + "value": "*\r\n * If class is not defined, we create a new entry\r\n ", + "start": 11559, + "end": 11634, + "loc": { + "start": { + "line": 306, + "column": 8 + }, + "end": { + "line": 308, + "column": 11 + } + } + } + ] + }, + { + "type": "IfStatement", + "start": 11644, + "end": 11798, + "loc": { + "start": { + "line": 309, + "column": 8 + }, + "end": { + "line": 314, + "column": 9 + } + }, + "test": { + "type": "UnaryExpression", + "start": 11647, + "end": 11662, + "loc": { + "start": { + "line": 309, + "column": 11 + }, + "end": { + "line": 309, + "column": 26 + } + }, + "operator": "!", + "prefix": true, + "argument": { + "type": "Identifier", + "start": 11648, + "end": 11662, + "loc": { + "start": { + "line": 309, + "column": 12 + }, + "end": { + "line": 309, + "column": 26 + }, + "identifierName": "classNameFound" + }, + "name": "classNameFound", + "leadingComments": null + }, + "extra": { + "parenthesizedArgument": false + }, + "leadingComments": null + }, + "consequent": { + "type": "BlockStatement", + "start": 11663, + "end": 11798, + "loc": { + "start": { + "line": 309, + "column": 27 + }, + "end": { + "line": 314, + "column": 9 + } + }, + "body": [ + { + "type": "ExpressionStatement", + "start": 11676, + "end": 11787, + "loc": { + "start": { + "line": 310, + "column": 10 + }, + "end": { + "line": 313, + "column": 13 + } + }, + "expression": { + "type": "CallExpression", + "start": 11676, + "end": 11786, + "loc": { + "start": { + "line": 310, + "column": 10 + }, + "end": { + "line": 313, + "column": 12 + } + }, + "callee": { + "type": "MemberExpression", + "start": 11676, + "end": 11705, + "loc": { + "start": { + "line": 310, + "column": 10 + }, + "end": { + "line": 310, + "column": 39 + } + }, + "object": { + "type": "MemberExpression", + "start": 11676, + "end": 11700, + "loc": { + "start": { + "line": 310, + "column": 10 + }, + "end": { + "line": 310, + "column": 34 + } + }, + "object": { + "type": "MemberExpression", + "start": 11676, + "end": 11688, + "loc": { + "start": { + "line": 310, + "column": 10 + }, + "end": { + "line": 310, + "column": 22 + } + }, + "object": { + "type": "ThisExpression", + "start": 11676, + "end": 11680, + "loc": { + "start": { + "line": 310, + "column": 10 + }, + "end": { + "line": 310, + "column": 14 + } + } + }, + "property": { + "type": "Identifier", + "start": 11681, + "end": 11688, + "loc": { + "start": { + "line": 310, + "column": 15 + }, + "end": { + "line": 310, + "column": 22 + }, + "identifierName": "options" + }, + "name": "options" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 11689, + "end": 11700, + "loc": { + "start": { + "line": 310, + "column": 23 + }, + "end": { + "line": 310, + "column": 34 + }, + "identifierName": "buttonTheme" + }, + "name": "buttonTheme" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 11701, + "end": 11705, + "loc": { + "start": { + "line": 310, + "column": 35 + }, + "end": { + "line": 310, + "column": 39 + }, + "identifierName": "push" + }, + "name": "push" + }, + "computed": false + }, + "arguments": [ + { + "type": "ObjectExpression", + "start": 11706, + "end": 11785, + "loc": { + "start": { + "line": 310, + "column": 40 + }, + "end": { + "line": 313, + "column": 11 + } + }, + "properties": [ + { + "type": "ObjectProperty", + "start": 11721, + "end": 11741, + "loc": { + "start": { + "line": 311, + "column": 12 + }, + "end": { + "line": 311, + "column": 32 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 11721, + "end": 11726, + "loc": { + "start": { + "line": 311, + "column": 12 + }, + "end": { + "line": 311, + "column": 17 + }, + "identifierName": "class" + }, + "name": "class" + }, + "value": { + "type": "Identifier", + "start": 11728, + "end": 11741, + "loc": { + "start": { + "line": 311, + "column": 19 + }, + "end": { + "line": 311, + "column": 32 + }, + "identifierName": "classNameItem" + }, + "name": "classNameItem" + } + }, + { + "type": "ObjectProperty", + "start": 11756, + "end": 11772, + "loc": { + "start": { + "line": 312, + "column": 12 + }, + "end": { + "line": 312, + "column": 28 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 11756, + "end": 11763, + "loc": { + "start": { + "line": 312, + "column": 12 + }, + "end": { + "line": 312, + "column": 19 + }, + "identifierName": "buttons" + }, + "name": "buttons" + }, + "value": { + "type": "Identifier", + "start": 11765, + "end": 11772, + "loc": { + "start": { + "line": 312, + "column": 21 + }, + "end": { + "line": 312, + "column": 28 + }, + "identifierName": "buttons" + }, + "name": "buttons" + } + } + ] + } + ] + } + } + ], + "directives": [] + }, + "alternate": null, + "leadingComments": [ + { + "type": "CommentBlock", + "value": "*\r\n * If class is not defined, we create a new entry\r\n ", + "start": 11559, + "end": 11634, + "loc": { + "start": { + "line": 306, + "column": 8 + }, + "end": { + "line": 308, + "column": 11 + } + } + } + ] + } + ], + "directives": [] + } + } + ] + } + } + ], + "directives": [] + } + } + ] + } + }, + { + "type": "ExpressionStatement", + "start": 11828, + "end": 11842, + "loc": { + "start": { + "line": 319, + "column": 4 + }, + "end": { + "line": 319, + "column": 18 + } + }, + "expression": { + "type": "CallExpression", + "start": 11828, + "end": 11841, + "loc": { + "start": { + "line": 319, + "column": 4 + }, + "end": { + "line": 319, + "column": 17 + } + }, + "callee": { + "type": "MemberExpression", + "start": 11828, + "end": 11839, + "loc": { + "start": { + "line": 319, + "column": 4 + }, + "end": { + "line": 319, + "column": 15 + } + }, + "object": { + "type": "ThisExpression", + "start": 11828, + "end": 11832, + "loc": { + "start": { + "line": 319, + "column": 4 + }, + "end": { + "line": 319, + "column": 8 + } + } + }, + "property": { + "type": "Identifier", + "start": 11833, + "end": 11839, + "loc": { + "start": { + "line": 319, + "column": 9 + }, + "end": { + "line": 319, + "column": 15 + }, + "identifierName": "render" + }, + "name": "render" + }, + "computed": false + }, + "arguments": [] + } + } + ], + "directives": [], + "trailingComments": null + }, + "trailingComments": null + }, + "leadingComments": [ + { + "type": "CommentBlock", + "value": "*\r\n * Adds/Modifies an entry to the `buttonTheme`. Basically a way to add a class to a button.\r\n * @param {string} buttons List of buttons to select (separated by a space).\r\n * @param {string} className Classes to give to the selected buttons (separated by space).\r\n ", + "start": 10323, + "end": 10604, + "loc": { + "start": { + "line": 272, + "column": 2 + }, + "end": { + "line": 276, + "column": 5 + } + } + } + ], + "trailingComments": [ + { + "type": "CommentBlock", + "value": "*\r\n * Removes/Amends an entry to the `buttonTheme`. Basically a way to remove a class previously added to a button through buttonTheme or addButtonTheme.\r\n * @param {string} buttons List of buttons to select (separated by a space).\r\n * @param {string} className Classes to give to the selected buttons (separated by space).\r\n ", + "start": 11853, + "end": 12193, + "loc": { + "start": { + "line": 322, + "column": 2 + }, + "end": { + "line": 326, + "column": 5 + } + } + } + ] + }, + { + "type": "ClassProperty", + "start": 12197, + "end": 13621, + "loc": { + "start": { + "line": 327, + "column": 2 + }, + "end": { + "line": 373, + "column": 3 + } + }, + "static": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 12197, + "end": 12214, + "loc": { + "start": { + "line": 327, + "column": 2 + }, + "end": { + "line": 327, + "column": 19 + }, + "identifierName": "removeButtonTheme" + }, + "name": "removeButtonTheme", + "leadingComments": null + }, + "value": { + "type": "ArrowFunctionExpression", + "start": 12217, + "end": 13621, + "loc": { + "start": { + "line": 327, + "column": 22 + }, + "end": { + "line": 373, + "column": 3 + } + }, + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 12218, + "end": 12225, + "loc": { + "start": { + "line": 327, + "column": 23 + }, + "end": { + "line": 327, + "column": 30 + }, + "identifierName": "buttons" + }, + "name": "buttons" + }, + { + "type": "Identifier", + "start": 12227, + "end": 12236, + "loc": { + "start": { + "line": 327, + "column": 32 + }, + "end": { + "line": 327, + "column": 41 + }, + "identifierName": "className" + }, + "name": "className" + } + ], + "body": { + "type": "BlockStatement", + "start": 12241, + "end": 13621, + "loc": { + "start": { + "line": 327, + "column": 46 + }, + "end": { + "line": 373, + "column": 3 + } + }, + "body": [ + { + "type": "IfStatement", + "start": 12334, + "end": 12449, + "loc": { + "start": { + "line": 331, + "column": 4 + }, + "end": { + "line": 335, + "column": 5 + } + }, + "test": { + "type": "LogicalExpression", + "start": 12337, + "end": 12359, + "loc": { + "start": { + "line": 331, + "column": 7 + }, + "end": { + "line": 331, + "column": 29 + } + }, + "left": { + "type": "UnaryExpression", + "start": 12337, + "end": 12345, + "loc": { + "start": { + "line": 331, + "column": 7 + }, + "end": { + "line": 331, + "column": 15 + } + }, + "operator": "!", + "prefix": true, + "argument": { + "type": "Identifier", + "start": 12338, + "end": 12345, + "loc": { + "start": { + "line": 331, + "column": 8 + }, + "end": { + "line": 331, + "column": 15 + }, + "identifierName": "buttons" + }, + "name": "buttons", + "leadingComments": null + }, + "extra": { + "parenthesizedArgument": false + }, + "leadingComments": null + }, + "operator": "&&", + "right": { + "type": "UnaryExpression", + "start": 12349, + "end": 12359, + "loc": { + "start": { + "line": 331, + "column": 19 + }, + "end": { + "line": 331, + "column": 29 + } + }, + "operator": "!", + "prefix": true, + "argument": { + "type": "Identifier", + "start": 12350, + "end": 12359, + "loc": { + "start": { + "line": 331, + "column": 20 + }, + "end": { + "line": 331, + "column": 29 + }, + "identifierName": "className" + }, + "name": "className" + }, + "extra": { + "parenthesizedArgument": false + } + }, + "leadingComments": null + }, + "consequent": { + "type": "BlockStatement", + "start": 12360, + "end": 12449, + "loc": { + "start": { + "line": 331, + "column": 30 + }, + "end": { + "line": 335, + "column": 5 + } + }, + "body": [ + { + "type": "ExpressionStatement", + "start": 12369, + "end": 12399, + "loc": { + "start": { + "line": 332, + "column": 6 + }, + "end": { + "line": 332, + "column": 36 + } + }, + "expression": { + "type": "AssignmentExpression", + "start": 12369, + "end": 12398, + "loc": { + "start": { + "line": 332, + "column": 6 + }, + "end": { + "line": 332, + "column": 35 + } + }, + "operator": "=", + "left": { + "type": "MemberExpression", + "start": 12369, + "end": 12393, + "loc": { + "start": { + "line": 332, + "column": 6 + }, + "end": { + "line": 332, + "column": 30 + } + }, + "object": { + "type": "MemberExpression", + "start": 12369, + "end": 12381, + "loc": { + "start": { + "line": 332, + "column": 6 + }, + "end": { + "line": 332, + "column": 18 + } + }, + "object": { + "type": "ThisExpression", + "start": 12369, + "end": 12373, + "loc": { + "start": { + "line": 332, + "column": 6 + }, + "end": { + "line": 332, + "column": 10 + } + } + }, + "property": { + "type": "Identifier", + "start": 12374, + "end": 12381, + "loc": { + "start": { + "line": 332, + "column": 11 + }, + "end": { + "line": 332, + "column": 18 + }, + "identifierName": "options" + }, + "name": "options" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 12382, + "end": 12393, + "loc": { + "start": { + "line": 332, + "column": 19 + }, + "end": { + "line": 332, + "column": 30 + }, + "identifierName": "buttonTheme" + }, + "name": "buttonTheme" + }, + "computed": false + }, + "right": { + "type": "ArrayExpression", + "start": 12396, + "end": 12398, + "loc": { + "start": { + "line": 332, + "column": 33 + }, + "end": { + "line": 332, + "column": 35 + } + }, + "elements": [] + } + } + }, + { + "type": "ExpressionStatement", + "start": 12407, + "end": 12421, + "loc": { + "start": { + "line": 333, + "column": 6 + }, + "end": { + "line": 333, + "column": 20 + } + }, + "expression": { + "type": "CallExpression", + "start": 12407, + "end": 12420, + "loc": { + "start": { + "line": 333, + "column": 6 + }, + "end": { + "line": 333, + "column": 19 + } + }, + "callee": { + "type": "MemberExpression", + "start": 12407, + "end": 12418, + "loc": { + "start": { + "line": 333, + "column": 6 + }, + "end": { + "line": 333, + "column": 17 + } + }, + "object": { + "type": "ThisExpression", + "start": 12407, + "end": 12411, + "loc": { + "start": { + "line": 333, + "column": 6 + }, + "end": { + "line": 333, + "column": 10 + } + } + }, + "property": { + "type": "Identifier", + "start": 12412, + "end": 12418, + "loc": { + "start": { + "line": 333, + "column": 11 + }, + "end": { + "line": 333, + "column": 17 + }, + "identifierName": "render" + }, + "name": "render" + }, + "computed": false + }, + "arguments": [] + } + }, + { + "type": "ReturnStatement", + "start": 12429, + "end": 12442, + "loc": { + "start": { + "line": 334, + "column": 6 + }, + "end": { + "line": 334, + "column": 19 + } + }, + "argument": { + "type": "BooleanLiteral", + "start": 12436, + "end": 12441, + "loc": { + "start": { + "line": 334, + "column": 13 + }, + "end": { + "line": 334, + "column": 18 + } + }, + "value": false + } + } + ], + "directives": [], + "trailingComments": null + }, + "alternate": null, + "leadingComments": [ + { + "type": "CommentBlock", + "value": "*\r\n * When called with empty parameters, remove all button themes\r\n ", + "start": 12248, + "end": 12328, + "loc": { + "start": { + "line": 328, + "column": 4 + }, + "end": { + "line": 330, + "column": 7 + } + } + } + ], + "trailingComments": [ + { + "type": "CommentBlock", + "value": "*\r\n * If buttons are passed and buttonTheme has items\r\n ", + "start": 12457, + "end": 12525, + "loc": { + "start": { + "line": 337, + "column": 4 + }, + "end": { + "line": 339, + "column": 7 + } + } + } + ] + }, + { + "type": "IfStatement", + "start": 12531, + "end": 13616, + "loc": { + "start": { + "line": 340, + "column": 4 + }, + "end": { + "line": 372, + "column": 5 + } + }, + "test": { + "type": "LogicalExpression", + "start": 12534, + "end": 12619, + "loc": { + "start": { + "line": 340, + "column": 7 + }, + "end": { + "line": 340, + "column": 92 + } + }, + "left": { + "type": "LogicalExpression", + "start": 12534, + "end": 12584, + "loc": { + "start": { + "line": 340, + "column": 7 + }, + "end": { + "line": 340, + "column": 57 + } + }, + "left": { + "type": "Identifier", + "start": 12534, + "end": 12541, + "loc": { + "start": { + "line": 340, + "column": 7 + }, + "end": { + "line": 340, + "column": 14 + }, + "identifierName": "buttons" + }, + "name": "buttons", + "leadingComments": null + }, + "operator": "&&", + "right": { + "type": "CallExpression", + "start": 12545, + "end": 12584, + "loc": { + "start": { + "line": 340, + "column": 18 + }, + "end": { + "line": 340, + "column": 57 + } + }, + "callee": { + "type": "MemberExpression", + "start": 12545, + "end": 12558, + "loc": { + "start": { + "line": 340, + "column": 18 + }, + "end": { + "line": 340, + "column": 31 + } + }, + "object": { + "type": "Identifier", + "start": 12545, + "end": 12550, + "loc": { + "start": { + "line": 340, + "column": 18 + }, + "end": { + "line": 340, + "column": 23 + }, + "identifierName": "Array" + }, + "name": "Array" + }, + "property": { + "type": "Identifier", + "start": 12551, + "end": 12558, + "loc": { + "start": { + "line": 340, + "column": 24 + }, + "end": { + "line": 340, + "column": 31 + }, + "identifierName": "isArray" + }, + "name": "isArray" + }, + "computed": false + }, + "arguments": [ + { + "type": "MemberExpression", + "start": 12559, + "end": 12583, + "loc": { + "start": { + "line": 340, + "column": 32 + }, + "end": { + "line": 340, + "column": 56 + } + }, + "object": { + "type": "MemberExpression", + "start": 12559, + "end": 12571, + "loc": { + "start": { + "line": 340, + "column": 32 + }, + "end": { + "line": 340, + "column": 44 + } + }, + "object": { + "type": "ThisExpression", + "start": 12559, + "end": 12563, + "loc": { + "start": { + "line": 340, + "column": 32 + }, + "end": { + "line": 340, + "column": 36 + } + } + }, + "property": { + "type": "Identifier", + "start": 12564, + "end": 12571, + "loc": { + "start": { + "line": 340, + "column": 37 + }, + "end": { + "line": 340, + "column": 44 + }, + "identifierName": "options" + }, + "name": "options" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 12572, + "end": 12583, + "loc": { + "start": { + "line": 340, + "column": 45 + }, + "end": { + "line": 340, + "column": 56 + }, + "identifierName": "buttonTheme" + }, + "name": "buttonTheme" + }, + "computed": false + } + ] + }, + "leadingComments": null + }, + "operator": "&&", + "right": { + "type": "MemberExpression", + "start": 12588, + "end": 12619, + "loc": { + "start": { + "line": 340, + "column": 61 + }, + "end": { + "line": 340, + "column": 92 + } + }, + "object": { + "type": "MemberExpression", + "start": 12588, + "end": 12612, + "loc": { + "start": { + "line": 340, + "column": 61 + }, + "end": { + "line": 340, + "column": 85 + } + }, + "object": { + "type": "MemberExpression", + "start": 12588, + "end": 12600, + "loc": { + "start": { + "line": 340, + "column": 61 + }, + "end": { + "line": 340, + "column": 73 + } + }, + "object": { + "type": "ThisExpression", + "start": 12588, + "end": 12592, + "loc": { + "start": { + "line": 340, + "column": 61 + }, + "end": { + "line": 340, + "column": 65 + } + } + }, + "property": { + "type": "Identifier", + "start": 12593, + "end": 12600, + "loc": { + "start": { + "line": 340, + "column": 66 + }, + "end": { + "line": 340, + "column": 73 + }, + "identifierName": "options" + }, + "name": "options" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 12601, + "end": 12612, + "loc": { + "start": { + "line": 340, + "column": 74 + }, + "end": { + "line": 340, + "column": 85 + }, + "identifierName": "buttonTheme" + }, + "name": "buttonTheme" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 12613, + "end": 12619, + "loc": { + "start": { + "line": 340, + "column": 86 + }, + "end": { + "line": 340, + "column": 92 + }, + "identifierName": "length" + }, + "name": "length" + }, + "computed": false + }, + "leadingComments": null + }, + "consequent": { + "type": "BlockStatement", + "start": 12620, + "end": 13616, + "loc": { + "start": { + "line": 340, + "column": 93 + }, + "end": { + "line": 372, + "column": 5 + } + }, + "body": [ + { + "type": "VariableDeclaration", + "start": 12629, + "end": 12666, + "loc": { + "start": { + "line": 341, + "column": 6 + }, + "end": { + "line": 341, + "column": 43 + } + }, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 12633, + "end": 12665, + "loc": { + "start": { + "line": 341, + "column": 10 + }, + "end": { + "line": 341, + "column": 42 + } + }, + "id": { + "type": "Identifier", + "start": 12633, + "end": 12644, + "loc": { + "start": { + "line": 341, + "column": 10 + }, + "end": { + "line": 341, + "column": 21 + }, + "identifierName": "buttonArray" + }, + "name": "buttonArray" + }, + "init": { + "type": "CallExpression", + "start": 12647, + "end": 12665, + "loc": { + "start": { + "line": 341, + "column": 24 + }, + "end": { + "line": 341, + "column": 42 + } + }, + "callee": { + "type": "MemberExpression", + "start": 12647, + "end": 12660, + "loc": { + "start": { + "line": 341, + "column": 24 + }, + "end": { + "line": 341, + "column": 37 + } + }, + "object": { + "type": "Identifier", + "start": 12647, + "end": 12654, + "loc": { + "start": { + "line": 341, + "column": 24 + }, + "end": { + "line": 341, + "column": 31 + }, + "identifierName": "buttons" + }, + "name": "buttons" + }, + "property": { + "type": "Identifier", + "start": 12655, + "end": 12660, + "loc": { + "start": { + "line": 341, + "column": 32 + }, + "end": { + "line": 341, + "column": 37 + }, + "identifierName": "split" + }, + "name": "split" + }, + "computed": false + }, + "arguments": [ + { + "type": "StringLiteral", + "start": 12661, + "end": 12664, + "loc": { + "start": { + "line": 341, + "column": 38 + }, + "end": { + "line": 341, + "column": 41 + } + }, + "extra": { + "rawValue": " ", + "raw": "\" \"" + }, + "value": " " + } + ] + } + } + ], + "kind": "let" + }, + { + "type": "ExpressionStatement", + "start": 12674, + "end": 13585, + "loc": { + "start": { + "line": 342, + "column": 6 + }, + "end": { + "line": 369, + "column": 9 + } + }, + "expression": { + "type": "CallExpression", + "start": 12674, + "end": 13584, + "loc": { + "start": { + "line": 342, + "column": 6 + }, + "end": { + "line": 369, + "column": 8 + } + }, + "callee": { + "type": "MemberExpression", + "start": 12674, + "end": 12693, + "loc": { + "start": { + "line": 342, + "column": 6 + }, + "end": { + "line": 342, + "column": 25 + } + }, + "object": { + "type": "Identifier", + "start": 12674, + "end": 12685, + "loc": { + "start": { + "line": 342, + "column": 6 + }, + "end": { + "line": 342, + "column": 17 + }, + "identifierName": "buttonArray" + }, + "name": "buttonArray" + }, + "property": { + "type": "Identifier", + "start": 12686, + "end": 12693, + "loc": { + "start": { + "line": 342, + "column": 18 + }, + "end": { + "line": 342, + "column": 25 + }, + "identifierName": "forEach" + }, + "name": "forEach" + }, + "computed": false + }, + "arguments": [ + { + "type": "ArrowFunctionExpression", + "start": 12694, + "end": 13583, + "loc": { + "start": { + "line": 342, + "column": 26 + }, + "end": { + "line": 369, + "column": 7 + } + }, + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 12695, + "end": 12701, + "loc": { + "start": { + "line": 342, + "column": 27 + }, + "end": { + "line": 342, + "column": 33 + }, + "identifierName": "button" + }, + "name": "button" + }, + { + "type": "Identifier", + "start": 12703, + "end": 12706, + "loc": { + "start": { + "line": 342, + "column": 35 + }, + "end": { + "line": 342, + "column": 38 + }, + "identifierName": "key" + }, + "name": "key" + } + ], + "body": { + "type": "BlockStatement", + "start": 12711, + "end": 13583, + "loc": { + "start": { + "line": 342, + "column": 43 + }, + "end": { + "line": 369, + "column": 7 + } + }, + "body": [ + { + "type": "ExpressionStatement", + "start": 12722, + "end": 13574, + "loc": { + "start": { + "line": 343, + "column": 8 + }, + "end": { + "line": 368, + "column": 11 + } + }, + "expression": { + "type": "CallExpression", + "start": 12722, + "end": 13573, + "loc": { + "start": { + "line": 343, + "column": 8 + }, + "end": { + "line": 368, + "column": 10 + } + }, + "callee": { + "type": "MemberExpression", + "start": 12722, + "end": 12750, + "loc": { + "start": { + "line": 343, + "column": 8 + }, + "end": { + "line": 343, + "column": 36 + } + }, + "object": { + "type": "MemberExpression", + "start": 12722, + "end": 12746, + "loc": { + "start": { + "line": 343, + "column": 8 + }, + "end": { + "line": 343, + "column": 32 + } + }, + "object": { + "type": "MemberExpression", + "start": 12722, + "end": 12734, + "loc": { + "start": { + "line": 343, + "column": 8 + }, + "end": { + "line": 343, + "column": 20 + } + }, + "object": { + "type": "ThisExpression", + "start": 12722, + "end": 12726, + "loc": { + "start": { + "line": 343, + "column": 8 + }, + "end": { + "line": 343, + "column": 12 + } + } + }, + "property": { + "type": "Identifier", + "start": 12727, + "end": 12734, + "loc": { + "start": { + "line": 343, + "column": 13 + }, + "end": { + "line": 343, + "column": 20 + }, + "identifierName": "options" + }, + "name": "options" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 12735, + "end": 12746, + "loc": { + "start": { + "line": 343, + "column": 21 + }, + "end": { + "line": 343, + "column": 32 + }, + "identifierName": "buttonTheme" + }, + "name": "buttonTheme" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 12747, + "end": 12750, + "loc": { + "start": { + "line": 343, + "column": 33 + }, + "end": { + "line": 343, + "column": 36 + }, + "identifierName": "map" + }, + "name": "map" + }, + "computed": false + }, + "arguments": [ + { + "type": "ArrowFunctionExpression", + "start": 12751, + "end": 13572, + "loc": { + "start": { + "line": 343, + "column": 37 + }, + "end": { + "line": 368, + "column": 9 + } + }, + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 12752, + "end": 12763, + "loc": { + "start": { + "line": 343, + "column": 38 + }, + "end": { + "line": 343, + "column": 49 + }, + "identifierName": "buttonTheme" + }, + "name": "buttonTheme" + }, + { + "type": "Identifier", + "start": 12765, + "end": 12770, + "loc": { + "start": { + "line": 343, + "column": 51 + }, + "end": { + "line": 343, + "column": 56 + }, + "identifierName": "index" + }, + "name": "index" + } + ], + "body": { + "type": "BlockStatement", + "start": 12775, + "end": 13572, + "loc": { + "start": { + "line": 343, + "column": 61 + }, + "end": { + "line": 368, + "column": 9 + } + }, + "body": [ + { + "type": "IfStatement", + "start": 12943, + "end": 13528, + "loc": { + "start": { + "line": 349, + "column": 10 + }, + "end": { + "line": 365, + "column": 11 + } + }, + "test": { + "type": "LogicalExpression", + "start": 12960, + "end": 13039, + "loc": { + "start": { + "line": 350, + "column": 12 + }, + "end": { + "line": 351, + "column": 22 + } + }, + "left": { + "type": "LogicalExpression", + "start": 12961, + "end": 13011, + "loc": { + "start": { + "line": 350, + "column": 13 + }, + "end": { + "line": 350, + "column": 63 + } + }, + "left": { + "type": "Identifier", + "start": 12961, + "end": 12970, + "loc": { + "start": { + "line": 350, + "column": 13 + }, + "end": { + "line": 350, + "column": 22 + }, + "identifierName": "className" + }, + "name": "className", + "leadingComments": null + }, + "operator": "&&", + "right": { + "type": "CallExpression", + "start": 12974, + "end": 13011, + "loc": { + "start": { + "line": 350, + "column": 26 + }, + "end": { + "line": 350, + "column": 63 + } + }, + "callee": { + "type": "MemberExpression", + "start": 12974, + "end": 12992, + "loc": { + "start": { + "line": 350, + "column": 26 + }, + "end": { + "line": 350, + "column": 44 + } + }, + "object": { + "type": "Identifier", + "start": 12974, + "end": 12983, + "loc": { + "start": { + "line": 350, + "column": 26 + }, + "end": { + "line": 350, + "column": 35 + }, + "identifierName": "className" + }, + "name": "className" + }, + "property": { + "type": "Identifier", + "start": 12984, + "end": 12992, + "loc": { + "start": { + "line": 350, + "column": 36 + }, + "end": { + "line": 350, + "column": 44 + }, + "identifierName": "includes" + }, + "name": "includes" + }, + "computed": false + }, + "arguments": [ + { + "type": "MemberExpression", + "start": 12993, + "end": 13010, + "loc": { + "start": { + "line": 350, + "column": 45 + }, + "end": { + "line": 350, + "column": 62 + } + }, + "object": { + "type": "Identifier", + "start": 12993, + "end": 13004, + "loc": { + "start": { + "line": 350, + "column": 45 + }, + "end": { + "line": 350, + "column": 56 + }, + "identifierName": "buttonTheme" + }, + "name": "buttonTheme" + }, + "property": { + "type": "Identifier", + "start": 13005, + "end": 13010, + "loc": { + "start": { + "line": 350, + "column": 57 + }, + "end": { + "line": 350, + "column": 62 + }, + "identifierName": "class" + }, + "name": "class" + }, + "computed": false + } + ] + }, + "leadingComments": null, + "extra": { + "parenthesized": true, + "parenStart": 12960 + } + }, + "operator": "||", + "right": { + "type": "UnaryExpression", + "start": 13029, + "end": 13039, + "loc": { + "start": { + "line": 351, + "column": 12 + }, + "end": { + "line": 351, + "column": 22 + } + }, + "operator": "!", + "prefix": true, + "argument": { + "type": "Identifier", + "start": 13030, + "end": 13039, + "loc": { + "start": { + "line": 351, + "column": 13 + }, + "end": { + "line": 351, + "column": 22 + }, + "identifierName": "className" + }, + "name": "className" + }, + "extra": { + "parenthesizedArgument": false + } + }, + "leadingComments": null + }, + "consequent": { + "type": "BlockStatement", + "start": 13052, + "end": 13528, + "loc": { + "start": { + "line": 352, + "column": 11 + }, + "end": { + "line": 365, + "column": 11 + } + }, + "body": [ + { + "type": "VariableDeclaration", + "start": 13067, + "end": 13156, + "loc": { + "start": { + "line": 353, + "column": 12 + }, + "end": { + "line": 353, + "column": 101 + } + }, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 13071, + "end": 13155, + "loc": { + "start": { + "line": 353, + "column": 16 + }, + "end": { + "line": 353, + "column": 100 + } + }, + "id": { + "type": "Identifier", + "start": 13071, + "end": 13090, + "loc": { + "start": { + "line": 353, + "column": 16 + }, + "end": { + "line": 353, + "column": 35 + }, + "identifierName": "filteredButtonArray" + }, + "name": "filteredButtonArray" + }, + "init": { + "type": "CallExpression", + "start": 13093, + "end": 13155, + "loc": { + "start": { + "line": 353, + "column": 38 + }, + "end": { + "line": 353, + "column": 100 + } + }, + "callee": { + "type": "MemberExpression", + "start": 13093, + "end": 13130, + "loc": { + "start": { + "line": 353, + "column": 38 + }, + "end": { + "line": 353, + "column": 75 + } + }, + "object": { + "type": "CallExpression", + "start": 13093, + "end": 13123, + "loc": { + "start": { + "line": 353, + "column": 38 + }, + "end": { + "line": 353, + "column": 68 + } + }, + "callee": { + "type": "MemberExpression", + "start": 13093, + "end": 13118, + "loc": { + "start": { + "line": 353, + "column": 38 + }, + "end": { + "line": 353, + "column": 63 + } + }, + "object": { + "type": "MemberExpression", + "start": 13093, + "end": 13112, + "loc": { + "start": { + "line": 353, + "column": 38 + }, + "end": { + "line": 353, + "column": 57 + } + }, + "object": { + "type": "Identifier", + "start": 13093, + "end": 13104, + "loc": { + "start": { + "line": 353, + "column": 38 + }, + "end": { + "line": 353, + "column": 49 + }, + "identifierName": "buttonTheme" + }, + "name": "buttonTheme" + }, + "property": { + "type": "Identifier", + "start": 13105, + "end": 13112, + "loc": { + "start": { + "line": 353, + "column": 50 + }, + "end": { + "line": 353, + "column": 57 + }, + "identifierName": "buttons" + }, + "name": "buttons" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 13113, + "end": 13118, + "loc": { + "start": { + "line": 353, + "column": 58 + }, + "end": { + "line": 353, + "column": 63 + }, + "identifierName": "split" + }, + "name": "split" + }, + "computed": false + }, + "arguments": [ + { + "type": "StringLiteral", + "start": 13119, + "end": 13122, + "loc": { + "start": { + "line": 353, + "column": 64 + }, + "end": { + "line": 353, + "column": 67 + } + }, + "extra": { + "rawValue": " ", + "raw": "\" \"" + }, + "value": " " + } + ] + }, + "property": { + "type": "Identifier", + "start": 13124, + "end": 13130, + "loc": { + "start": { + "line": 353, + "column": 69 + }, + "end": { + "line": 353, + "column": 75 + }, + "identifierName": "filter" + }, + "name": "filter" + }, + "computed": false + }, + "arguments": [ + { + "type": "ArrowFunctionExpression", + "start": 13131, + "end": 13154, + "loc": { + "start": { + "line": 353, + "column": 76 + }, + "end": { + "line": 353, + "column": 99 + } + }, + "id": null, + "generator": false, + "expression": true, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 13131, + "end": 13135, + "loc": { + "start": { + "line": 353, + "column": 76 + }, + "end": { + "line": 353, + "column": 80 + }, + "identifierName": "item" + }, + "name": "item" + } + ], + "body": { + "type": "BinaryExpression", + "start": 13139, + "end": 13154, + "loc": { + "start": { + "line": 353, + "column": 84 + }, + "end": { + "line": 353, + "column": 99 + } + }, + "left": { + "type": "Identifier", + "start": 13139, + "end": 13143, + "loc": { + "start": { + "line": 353, + "column": 84 + }, + "end": { + "line": 353, + "column": 88 + }, + "identifierName": "item" + }, + "name": "item" + }, + "operator": "!==", + "right": { + "type": "Identifier", + "start": 13148, + "end": 13154, + "loc": { + "start": { + "line": 353, + "column": 93 + }, + "end": { + "line": 353, + "column": 99 + }, + "identifierName": "button" + }, + "name": "button" + } + } + } + ] + } + } + ], + "kind": "let", + "trailingComments": [ + { + "type": "CommentBlock", + "value": "*\r\n * If buttons left, return them, otherwise, remove button Theme\r\n ", + "start": 13172, + "end": 13269, + "loc": { + "start": { + "line": 355, + "column": 12 + }, + "end": { + "line": 357, + "column": 15 + } + } + } + ] + }, + { + "type": "IfStatement", + "start": 13283, + "end": 13512, + "loc": { + "start": { + "line": 358, + "column": 12 + }, + "end": { + "line": 363, + "column": 13 + } + }, + "test": { + "type": "MemberExpression", + "start": 13286, + "end": 13312, + "loc": { + "start": { + "line": 358, + "column": 15 + }, + "end": { + "line": 358, + "column": 41 + } + }, + "object": { + "type": "Identifier", + "start": 13286, + "end": 13305, + "loc": { + "start": { + "line": 358, + "column": 15 + }, + "end": { + "line": 358, + "column": 34 + }, + "identifierName": "filteredButtonArray" + }, + "name": "filteredButtonArray", + "leadingComments": null + }, + "property": { + "type": "Identifier", + "start": 13306, + "end": 13312, + "loc": { + "start": { + "line": 358, + "column": 35 + }, + "end": { + "line": 358, + "column": 41 + }, + "identifierName": "length" + }, + "name": "length" + }, + "computed": false, + "leadingComments": null + }, + "consequent": { + "type": "BlockStatement", + "start": 13313, + "end": 13397, + "loc": { + "start": { + "line": 358, + "column": 42 + }, + "end": { + "line": 360, + "column": 13 + } + }, + "body": [ + { + "type": "ExpressionStatement", + "start": 13330, + "end": 13382, + "loc": { + "start": { + "line": 359, + "column": 14 + }, + "end": { + "line": 359, + "column": 66 + } + }, + "expression": { + "type": "AssignmentExpression", + "start": 13330, + "end": 13381, + "loc": { + "start": { + "line": 359, + "column": 14 + }, + "end": { + "line": 359, + "column": 65 + } + }, + "operator": "=", + "left": { + "type": "MemberExpression", + "start": 13330, + "end": 13349, + "loc": { + "start": { + "line": 359, + "column": 14 + }, + "end": { + "line": 359, + "column": 33 + } + }, + "object": { + "type": "Identifier", + "start": 13330, + "end": 13341, + "loc": { + "start": { + "line": 359, + "column": 14 + }, + "end": { + "line": 359, + "column": 25 + }, + "identifierName": "buttonTheme" + }, + "name": "buttonTheme" + }, + "property": { + "type": "Identifier", + "start": 13342, + "end": 13349, + "loc": { + "start": { + "line": 359, + "column": 26 + }, + "end": { + "line": 359, + "column": 33 + }, + "identifierName": "buttons" + }, + "name": "buttons" + }, + "computed": false + }, + "right": { + "type": "CallExpression", + "start": 13352, + "end": 13381, + "loc": { + "start": { + "line": 359, + "column": 36 + }, + "end": { + "line": 359, + "column": 65 + } + }, + "callee": { + "type": "MemberExpression", + "start": 13352, + "end": 13376, + "loc": { + "start": { + "line": 359, + "column": 36 + }, + "end": { + "line": 359, + "column": 60 + } + }, + "object": { + "type": "Identifier", + "start": 13352, + "end": 13371, + "loc": { + "start": { + "line": 359, + "column": 36 + }, + "end": { + "line": 359, + "column": 55 + }, + "identifierName": "filteredButtonArray" + }, + "name": "filteredButtonArray" + }, + "property": { + "type": "Identifier", + "start": 13372, + "end": 13376, + "loc": { + "start": { + "line": 359, + "column": 56 + }, + "end": { + "line": 359, + "column": 60 + }, + "identifierName": "join" + }, + "name": "join" + }, + "computed": false + }, + "arguments": [ + { + "type": "StringLiteral", + "start": 13377, + "end": 13380, + "loc": { + "start": { + "line": 359, + "column": 61 + }, + "end": { + "line": 359, + "column": 64 + } + }, + "extra": { + "rawValue": " ", + "raw": "\" \"" + }, + "value": " " + } + ] + } + } + } + ], + "directives": [] + }, + "alternate": { + "type": "BlockStatement", + "start": 13403, + "end": 13512, + "loc": { + "start": { + "line": 360, + "column": 19 + }, + "end": { + "line": 363, + "column": 13 + } + }, + "body": [ + { + "type": "ExpressionStatement", + "start": 13420, + "end": 13462, + "loc": { + "start": { + "line": 361, + "column": 14 + }, + "end": { + "line": 361, + "column": 56 + } + }, + "expression": { + "type": "CallExpression", + "start": 13420, + "end": 13461, + "loc": { + "start": { + "line": 361, + "column": 14 + }, + "end": { + "line": 361, + "column": 55 + } + }, + "callee": { + "type": "MemberExpression", + "start": 13420, + "end": 13451, + "loc": { + "start": { + "line": 361, + "column": 14 + }, + "end": { + "line": 361, + "column": 45 + } + }, + "object": { + "type": "MemberExpression", + "start": 13420, + "end": 13444, + "loc": { + "start": { + "line": 361, + "column": 14 + }, + "end": { + "line": 361, + "column": 38 + } + }, + "object": { + "type": "MemberExpression", + "start": 13420, + "end": 13432, + "loc": { + "start": { + "line": 361, + "column": 14 + }, + "end": { + "line": 361, + "column": 26 + } + }, + "object": { + "type": "ThisExpression", + "start": 13420, + "end": 13424, + "loc": { + "start": { + "line": 361, + "column": 14 + }, + "end": { + "line": 361, + "column": 18 + } + } + }, + "property": { + "type": "Identifier", + "start": 13425, + "end": 13432, + "loc": { + "start": { + "line": 361, + "column": 19 + }, + "end": { + "line": 361, + "column": 26 + }, + "identifierName": "options" + }, + "name": "options" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 13433, + "end": 13444, + "loc": { + "start": { + "line": 361, + "column": 27 + }, + "end": { + "line": 361, + "column": 38 + }, + "identifierName": "buttonTheme" + }, + "name": "buttonTheme" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 13445, + "end": 13451, + "loc": { + "start": { + "line": 361, + "column": 39 + }, + "end": { + "line": 361, + "column": 45 + }, + "identifierName": "splice" + }, + "name": "splice" + }, + "computed": false + }, + "arguments": [ + { + "type": "Identifier", + "start": 13452, + "end": 13457, + "loc": { + "start": { + "line": 361, + "column": 46 + }, + "end": { + "line": 361, + "column": 51 + }, + "identifierName": "index" + }, + "name": "index" + }, + { + "type": "NumericLiteral", + "start": 13459, + "end": 13460, + "loc": { + "start": { + "line": 361, + "column": 53 + }, + "end": { + "line": 361, + "column": 54 + } + }, + "extra": { + "rawValue": 1, + "raw": "1" + }, + "value": 1 + } + ] + } + }, + { + "type": "ExpressionStatement", + "start": 13478, + "end": 13497, + "loc": { + "start": { + "line": 362, + "column": 14 + }, + "end": { + "line": 362, + "column": 33 + } + }, + "expression": { + "type": "AssignmentExpression", + "start": 13478, + "end": 13496, + "loc": { + "start": { + "line": 362, + "column": 14 + }, + "end": { + "line": 362, + "column": 32 + } + }, + "operator": "=", + "left": { + "type": "Identifier", + "start": 13478, + "end": 13489, + "loc": { + "start": { + "line": 362, + "column": 14 + }, + "end": { + "line": 362, + "column": 25 + }, + "identifierName": "buttonTheme" + }, + "name": "buttonTheme" + }, + "right": { + "type": "NullLiteral", + "start": 13492, + "end": 13496, + "loc": { + "start": { + "line": 362, + "column": 28 + }, + "end": { + "line": 362, + "column": 32 + } + } + } + } + } + ], + "directives": [] + }, + "leadingComments": [ + { + "type": "CommentBlock", + "value": "*\r\n * If buttons left, return them, otherwise, remove button Theme\r\n ", + "start": 13172, + "end": 13269, + "loc": { + "start": { + "line": 355, + "column": 12 + }, + "end": { + "line": 357, + "column": 15 + } + } + } + ] + } + ], + "directives": [] + }, + "alternate": null, + "leadingComments": [ + { + "type": "CommentBlock", + "value": "*\r\n * If className is set, we affect the buttons only for that class\r\n * Otherwise, we afect all classes\r\n ", + "start": 12790, + "end": 12931, + "loc": { + "start": { + "line": 345, + "column": 10 + }, + "end": { + "line": 348, + "column": 13 + } + } + } + ] + }, + { + "type": "ReturnStatement", + "start": 13542, + "end": 13561, + "loc": { + "start": { + "line": 367, + "column": 10 + }, + "end": { + "line": 367, + "column": 29 + } + }, + "argument": { + "type": "Identifier", + "start": 13549, + "end": 13560, + "loc": { + "start": { + "line": 367, + "column": 17 + }, + "end": { + "line": 367, + "column": 28 + }, + "identifierName": "buttonTheme" + }, + "name": "buttonTheme" + } + } + ], + "directives": [] + } + } + ] + } + } + ], + "directives": [] + } + } + ] + } + }, + { + "type": "ExpressionStatement", + "start": 13595, + "end": 13609, + "loc": { + "start": { + "line": 371, + "column": 6 + }, + "end": { + "line": 371, + "column": 20 + } + }, + "expression": { + "type": "CallExpression", + "start": 13595, + "end": 13608, + "loc": { + "start": { + "line": 371, + "column": 6 + }, + "end": { + "line": 371, + "column": 19 + } + }, + "callee": { + "type": "MemberExpression", + "start": 13595, + "end": 13606, + "loc": { + "start": { + "line": 371, + "column": 6 + }, + "end": { + "line": 371, + "column": 17 + } + }, + "object": { + "type": "ThisExpression", + "start": 13595, + "end": 13599, + "loc": { + "start": { + "line": 371, + "column": 6 + }, + "end": { + "line": 371, + "column": 10 + } + } + }, + "property": { + "type": "Identifier", + "start": 13600, + "end": 13606, + "loc": { + "start": { + "line": 371, + "column": 11 + }, + "end": { + "line": 371, + "column": 17 + }, + "identifierName": "render" + }, + "name": "render" + }, + "computed": false + }, + "arguments": [] + } + } + ], + "directives": [] + }, + "alternate": null, + "leadingComments": [ + { + "type": "CommentBlock", + "value": "*\r\n * If buttons are passed and buttonTheme has items\r\n ", + "start": 12457, + "end": 12525, + "loc": { + "start": { + "line": 337, + "column": 4 + }, + "end": { + "line": 339, + "column": 7 + } + } + } + ] + } + ], + "directives": [], + "trailingComments": null + }, + "trailingComments": null + }, + "leadingComments": [ + { + "type": "CommentBlock", + "value": "*\r\n * Removes/Amends an entry to the `buttonTheme`. Basically a way to remove a class previously added to a button through buttonTheme or addButtonTheme.\r\n * @param {string} buttons List of buttons to select (separated by a space).\r\n * @param {string} className Classes to give to the selected buttons (separated by space).\r\n ", + "start": 11853, + "end": 12193, + "loc": { + "start": { + "line": 322, + "column": 2 + }, + "end": { + "line": 326, + "column": 5 + } + } + } + ], + "trailingComments": [ + { + "type": "CommentBlock", + "value": "*\r\n * Get the DOM Element of a button. If there are several buttons with the same name, an array of the DOM Elements is returned.\r\n * @param {string} button The button layout name to select\r\n ", + "start": 13627, + "end": 13830, + "loc": { + "start": { + "line": 375, + "column": 2 + }, + "end": { + "line": 378, + "column": 5 + } + } + } + ] + }, + { + "type": "ClassProperty", + "start": 13834, + "end": 14108, + "loc": { + "start": { + "line": 379, + "column": 2 + }, + "end": { + "line": 392, + "column": 3 + } + }, + "static": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 13834, + "end": 13850, + "loc": { + "start": { + "line": 379, + "column": 2 + }, + "end": { + "line": 379, + "column": 18 + }, + "identifierName": "getButtonElement" + }, + "name": "getButtonElement", + "leadingComments": null + }, + "value": { + "type": "ArrowFunctionExpression", + "start": 13853, + "end": 14108, + "loc": { + "start": { + "line": 379, + "column": 21 + }, + "end": { + "line": 392, + "column": 3 + } + }, + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 13854, + "end": 13860, + "loc": { + "start": { + "line": 379, + "column": 22 + }, + "end": { + "line": 379, + "column": 28 + }, + "identifierName": "button" + }, + "name": "button" + } + ], + "body": { + "type": "BlockStatement", + "start": 13865, + "end": 14108, + "loc": { + "start": { + "line": 379, + "column": 33 + }, + "end": { + "line": 392, + "column": 3 + } + }, + "body": [ + { + "type": "VariableDeclaration", + "start": 13872, + "end": 13883, + "loc": { + "start": { + "line": 380, + "column": 4 + }, + "end": { + "line": 380, + "column": 15 + } + }, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 13876, + "end": 13882, + "loc": { + "start": { + "line": 380, + "column": 8 + }, + "end": { + "line": 380, + "column": 14 + } + }, + "id": { + "type": "Identifier", + "start": 13876, + "end": 13882, + "loc": { + "start": { + "line": 380, + "column": 8 + }, + "end": { + "line": 380, + "column": 14 + }, + "identifierName": "output" + }, + "name": "output" + }, + "init": null + } + ], + "kind": "let" + }, + { + "type": "VariableDeclaration", + "start": 13891, + "end": 13935, + "loc": { + "start": { + "line": 382, + "column": 4 + }, + "end": { + "line": 382, + "column": 48 + } + }, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 13895, + "end": 13934, + "loc": { + "start": { + "line": 382, + "column": 8 + }, + "end": { + "line": 382, + "column": 47 + } + }, + "id": { + "type": "Identifier", + "start": 13895, + "end": 13904, + "loc": { + "start": { + "line": 382, + "column": 8 + }, + "end": { + "line": 382, + "column": 17 + }, + "identifierName": "buttonArr" + }, + "name": "buttonArr" + }, + "init": { + "type": "MemberExpression", + "start": 13907, + "end": 13934, + "loc": { + "start": { + "line": 382, + "column": 20 + }, + "end": { + "line": 382, + "column": 47 + } + }, + "object": { + "type": "MemberExpression", + "start": 13907, + "end": 13926, + "loc": { + "start": { + "line": 382, + "column": 20 + }, + "end": { + "line": 382, + "column": 39 + } + }, + "object": { + "type": "ThisExpression", + "start": 13907, + "end": 13911, + "loc": { + "start": { + "line": 382, + "column": 20 + }, + "end": { + "line": 382, + "column": 24 + } + } + }, + "property": { + "type": "Identifier", + "start": 13912, + "end": 13926, + "loc": { + "start": { + "line": 382, + "column": 25 + }, + "end": { + "line": 382, + "column": 39 + }, + "identifierName": "buttonElements" + }, + "name": "buttonElements" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 13927, + "end": 13933, + "loc": { + "start": { + "line": 382, + "column": 40 + }, + "end": { + "line": 382, + "column": 46 + }, + "identifierName": "button" + }, + "name": "button" + }, + "computed": true + } + } + ], + "kind": "let" + }, + { + "type": "IfStatement", + "start": 13941, + "end": 14081, + "loc": { + "start": { + "line": 383, + "column": 4 + }, + "end": { + "line": 389, + "column": 5 + } + }, + "test": { + "type": "Identifier", + "start": 13944, + "end": 13953, + "loc": { + "start": { + "line": 383, + "column": 7 + }, + "end": { + "line": 383, + "column": 16 + }, + "identifierName": "buttonArr" + }, + "name": "buttonArr" + }, + "consequent": { + "type": "BlockStatement", + "start": 13954, + "end": 14081, + "loc": { + "start": { + "line": 383, + "column": 17 + }, + "end": { + "line": 389, + "column": 5 + } + }, + "body": [ + { + "type": "IfStatement", + "start": 13963, + "end": 14074, + "loc": { + "start": { + "line": 384, + "column": 6 + }, + "end": { + "line": 388, + "column": 7 + } + }, + "test": { + "type": "BinaryExpression", + "start": 13966, + "end": 13986, + "loc": { + "start": { + "line": 384, + "column": 9 + }, + "end": { + "line": 384, + "column": 29 + } + }, + "left": { + "type": "MemberExpression", + "start": 13966, + "end": 13982, + "loc": { + "start": { + "line": 384, + "column": 9 + }, + "end": { + "line": 384, + "column": 25 + } + }, + "object": { + "type": "Identifier", + "start": 13966, + "end": 13975, + "loc": { + "start": { + "line": 384, + "column": 9 + }, + "end": { + "line": 384, + "column": 18 + }, + "identifierName": "buttonArr" + }, + "name": "buttonArr" + }, + "property": { + "type": "Identifier", + "start": 13976, + "end": 13982, + "loc": { + "start": { + "line": 384, + "column": 19 + }, + "end": { + "line": 384, + "column": 25 + }, + "identifierName": "length" + }, + "name": "length" + }, + "computed": false + }, + "operator": ">", + "right": { + "type": "NumericLiteral", + "start": 13985, + "end": 13986, + "loc": { + "start": { + "line": 384, + "column": 28 + }, + "end": { + "line": 384, + "column": 29 + } + }, + "extra": { + "rawValue": 1, + "raw": "1" + }, + "value": 1 + } + }, + "consequent": { + "type": "BlockStatement", + "start": 13987, + "end": 14026, + "loc": { + "start": { + "line": 384, + "column": 30 + }, + "end": { + "line": 386, + "column": 7 + } + }, + "body": [ + { + "type": "ExpressionStatement", + "start": 13998, + "end": 14017, + "loc": { + "start": { + "line": 385, + "column": 8 + }, + "end": { + "line": 385, + "column": 27 + } + }, + "expression": { + "type": "AssignmentExpression", + "start": 13998, + "end": 14016, + "loc": { + "start": { + "line": 385, + "column": 8 + }, + "end": { + "line": 385, + "column": 26 + } + }, + "operator": "=", + "left": { + "type": "Identifier", + "start": 13998, + "end": 14004, + "loc": { + "start": { + "line": 385, + "column": 8 + }, + "end": { + "line": 385, + "column": 14 + }, + "identifierName": "output" + }, + "name": "output" + }, + "right": { + "type": "Identifier", + "start": 14007, + "end": 14016, + "loc": { + "start": { + "line": 385, + "column": 17 + }, + "end": { + "line": 385, + "column": 26 + }, + "identifierName": "buttonArr" + }, + "name": "buttonArr" + } + } + } + ], + "directives": [] + }, + "alternate": { + "type": "BlockStatement", + "start": 14032, + "end": 14074, + "loc": { + "start": { + "line": 386, + "column": 13 + }, + "end": { + "line": 388, + "column": 7 + } + }, + "body": [ + { + "type": "ExpressionStatement", + "start": 14043, + "end": 14065, + "loc": { + "start": { + "line": 387, + "column": 8 + }, + "end": { + "line": 387, + "column": 30 + } + }, + "expression": { + "type": "AssignmentExpression", + "start": 14043, + "end": 14064, + "loc": { + "start": { + "line": 387, + "column": 8 + }, + "end": { + "line": 387, + "column": 29 + } + }, + "operator": "=", + "left": { + "type": "Identifier", + "start": 14043, + "end": 14049, + "loc": { + "start": { + "line": 387, + "column": 8 + }, + "end": { + "line": 387, + "column": 14 + }, + "identifierName": "output" + }, + "name": "output" + }, + "right": { + "type": "MemberExpression", + "start": 14052, + "end": 14064, + "loc": { + "start": { + "line": 387, + "column": 17 + }, + "end": { + "line": 387, + "column": 29 + } + }, + "object": { + "type": "Identifier", + "start": 14052, + "end": 14061, + "loc": { + "start": { + "line": 387, + "column": 17 + }, + "end": { + "line": 387, + "column": 26 + }, + "identifierName": "buttonArr" + }, + "name": "buttonArr" + }, + "property": { + "type": "NumericLiteral", + "start": 14062, + "end": 14063, + "loc": { + "start": { + "line": 387, + "column": 27 + }, + "end": { + "line": 387, + "column": 28 + } + }, + "extra": { + "rawValue": 0, + "raw": "0" + }, + "value": 0 + }, + "computed": true + } + } + } + ], + "directives": [] + } + } + ], + "directives": [] + }, + "alternate": null + }, + { + "type": "ReturnStatement", + "start": 14089, + "end": 14103, + "loc": { + "start": { + "line": 391, + "column": 4 + }, + "end": { + "line": 391, + "column": 18 + } + }, + "argument": { + "type": "Identifier", + "start": 14096, + "end": 14102, + "loc": { + "start": { + "line": 391, + "column": 11 + }, + "end": { + "line": 391, + "column": 17 + }, + "identifierName": "output" + }, + "name": "output" + } + } + ], + "directives": [], + "trailingComments": null + }, + "trailingComments": null + }, + "leadingComments": [ + { + "type": "CommentBlock", + "value": "*\r\n * Get the DOM Element of a button. If there are several buttons with the same name, an array of the DOM Elements is returned.\r\n * @param {string} button The button layout name to select\r\n ", + "start": 13627, + "end": 13830, + "loc": { + "start": { + "line": 375, + "column": 2 + }, + "end": { + "line": 378, + "column": 5 + } + } + } + ], + "trailingComments": [ + { + "type": "CommentBlock", + "value": "*\r\n * Retrieves the current cursor position within a input or textarea (if any)\r\n ", + "start": 14114, + "end": 14204, + "loc": { + "start": { + "line": 394, + "column": 2 + }, + "end": { + "line": 396, + "column": 5 + } + } + } + ] + }, + { + "type": "ClassProperty", + "start": 14208, + "end": 14518, + "loc": { + "start": { + "line": 397, + "column": 2 + }, + "end": { + "line": 405, + "column": 3 + } + }, + "static": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 14208, + "end": 14219, + "loc": { + "start": { + "line": 397, + "column": 2 + }, + "end": { + "line": 397, + "column": 13 + }, + "identifierName": "handleCaret" + }, + "name": "handleCaret", + "leadingComments": null + }, + "value": { + "type": "ArrowFunctionExpression", + "start": 14222, + "end": 14518, + "loc": { + "start": { + "line": 397, + "column": 16 + }, + "end": { + "line": 405, + "column": 3 + } + }, + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [], + "body": { + "type": "BlockStatement", + "start": 14228, + "end": 14518, + "loc": { + "start": { + "line": 397, + "column": 22 + }, + "end": { + "line": 405, + "column": 3 + } + }, + "body": [ + { + "type": "IfStatement", + "start": 14235, + "end": 14311, + "loc": { + "start": { + "line": 398, + "column": 4 + }, + "end": { + "line": 400, + "column": 5 + } + }, + "test": { + "type": "MemberExpression", + "start": 14238, + "end": 14256, + "loc": { + "start": { + "line": 398, + "column": 7 + }, + "end": { + "line": 398, + "column": 25 + } + }, + "object": { + "type": "MemberExpression", + "start": 14238, + "end": 14250, + "loc": { + "start": { + "line": 398, + "column": 7 + }, + "end": { + "line": 398, + "column": 19 + } + }, + "object": { + "type": "ThisExpression", + "start": 14238, + "end": 14242, + "loc": { + "start": { + "line": 398, + "column": 7 + }, + "end": { + "line": 398, + "column": 11 + } + } + }, + "property": { + "type": "Identifier", + "start": 14243, + "end": 14250, + "loc": { + "start": { + "line": 398, + "column": 12 + }, + "end": { + "line": 398, + "column": 19 + }, + "identifierName": "options" + }, + "name": "options" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 14251, + "end": 14256, + "loc": { + "start": { + "line": 398, + "column": 20 + }, + "end": { + "line": 398, + "column": 25 + }, + "identifierName": "debug" + }, + "name": "debug" + }, + "computed": false + }, + "consequent": { + "type": "BlockStatement", + "start": 14257, + "end": 14311, + "loc": { + "start": { + "line": 398, + "column": 26 + }, + "end": { + "line": 400, + "column": 5 + } + }, + "body": [ + { + "type": "ExpressionStatement", + "start": 14266, + "end": 14304, + "loc": { + "start": { + "line": 399, + "column": 6 + }, + "end": { + "line": 399, + "column": 44 + } + }, + "expression": { + "type": "CallExpression", + "start": 14266, + "end": 14303, + "loc": { + "start": { + "line": 399, + "column": 6 + }, + "end": { + "line": 399, + "column": 43 + } + }, + "callee": { + "type": "MemberExpression", + "start": 14266, + "end": 14277, + "loc": { + "start": { + "line": 399, + "column": 6 + }, + "end": { + "line": 399, + "column": 17 + } + }, + "object": { + "type": "Identifier", + "start": 14266, + "end": 14273, + "loc": { + "start": { + "line": 399, + "column": 6 + }, + "end": { + "line": 399, + "column": 13 + }, + "identifierName": "console" + }, + "name": "console" + }, + "property": { + "type": "Identifier", + "start": 14274, + "end": 14277, + "loc": { + "start": { + "line": 399, + "column": 14 + }, + "end": { + "line": 399, + "column": 17 + }, + "identifierName": "log" + }, + "name": "log" + }, + "computed": false + }, + "arguments": [ + { + "type": "StringLiteral", + "start": 14278, + "end": 14302, + "loc": { + "start": { + "line": 399, + "column": 18 + }, + "end": { + "line": 399, + "column": 42 + } + }, + "extra": { + "rawValue": "Caret handling started", + "raw": "\"Caret handling started\"" + }, + "value": "Caret handling started" + } + ] + } + } + ], + "directives": [] + }, + "alternate": null + }, + { + "type": "ExpressionStatement", + "start": 14319, + "end": 14378, + "loc": { + "start": { + "line": 402, + "column": 4 + }, + "end": { + "line": 402, + "column": 63 + } + }, + "expression": { + "type": "CallExpression", + "start": 14319, + "end": 14377, + "loc": { + "start": { + "line": 402, + "column": 4 + }, + "end": { + "line": 402, + "column": 62 + } + }, + "callee": { + "type": "MemberExpression", + "start": 14319, + "end": 14344, + "loc": { + "start": { + "line": 402, + "column": 4 + }, + "end": { + "line": 402, + "column": 29 + } + }, + "object": { + "type": "Identifier", + "start": 14319, + "end": 14327, + "loc": { + "start": { + "line": 402, + "column": 4 + }, + "end": { + "line": 402, + "column": 12 + }, + "identifierName": "document" + }, + "name": "document" + }, + "property": { + "type": "Identifier", + "start": 14328, + "end": 14344, + "loc": { + "start": { + "line": 402, + "column": 13 + }, + "end": { + "line": 402, + "column": 29 + }, + "identifierName": "addEventListener" + }, + "name": "addEventListener" + }, + "computed": false + }, + "arguments": [ + { + "type": "StringLiteral", + "start": 14345, + "end": 14352, + "loc": { + "start": { + "line": 402, + "column": 30 + }, + "end": { + "line": 402, + "column": 37 + } + }, + "extra": { + "rawValue": "keyup", + "raw": "\"keyup\"" + }, + "value": "keyup" + }, + { + "type": "MemberExpression", + "start": 14354, + "end": 14376, + "loc": { + "start": { + "line": 402, + "column": 39 + }, + "end": { + "line": 402, + "column": 61 + } + }, + "object": { + "type": "ThisExpression", + "start": 14354, + "end": 14358, + "loc": { + "start": { + "line": 402, + "column": 39 + }, + "end": { + "line": 402, + "column": 43 + } + } + }, + "property": { + "type": "Identifier", + "start": 14359, + "end": 14376, + "loc": { + "start": { + "line": 402, + "column": 44 + }, + "end": { + "line": 402, + "column": 61 + }, + "identifierName": "caretEventHandler" + }, + "name": "caretEventHandler" + }, + "computed": false + } + ] + } + }, + { + "type": "ExpressionStatement", + "start": 14384, + "end": 14445, + "loc": { + "start": { + "line": 403, + "column": 4 + }, + "end": { + "line": 403, + "column": 65 + } + }, + "expression": { + "type": "CallExpression", + "start": 14384, + "end": 14444, + "loc": { + "start": { + "line": 403, + "column": 4 + }, + "end": { + "line": 403, + "column": 64 + } + }, + "callee": { + "type": "MemberExpression", + "start": 14384, + "end": 14409, + "loc": { + "start": { + "line": 403, + "column": 4 + }, + "end": { + "line": 403, + "column": 29 + } + }, + "object": { + "type": "Identifier", + "start": 14384, + "end": 14392, + "loc": { + "start": { + "line": 403, + "column": 4 + }, + "end": { + "line": 403, + "column": 12 + }, + "identifierName": "document" + }, + "name": "document" + }, + "property": { + "type": "Identifier", + "start": 14393, + "end": 14409, + "loc": { + "start": { + "line": 403, + "column": 13 + }, + "end": { + "line": 403, + "column": 29 + }, + "identifierName": "addEventListener" + }, + "name": "addEventListener" + }, + "computed": false + }, + "arguments": [ + { + "type": "StringLiteral", + "start": 14410, + "end": 14419, + "loc": { + "start": { + "line": 403, + "column": 30 + }, + "end": { + "line": 403, + "column": 39 + } + }, + "extra": { + "rawValue": "mouseup", + "raw": "\"mouseup\"" + }, + "value": "mouseup" + }, + { + "type": "MemberExpression", + "start": 14421, + "end": 14443, + "loc": { + "start": { + "line": 403, + "column": 41 + }, + "end": { + "line": 403, + "column": 63 + } + }, + "object": { + "type": "ThisExpression", + "start": 14421, + "end": 14425, + "loc": { + "start": { + "line": 403, + "column": 41 + }, + "end": { + "line": 403, + "column": 45 + } + } + }, + "property": { + "type": "Identifier", + "start": 14426, + "end": 14443, + "loc": { + "start": { + "line": 403, + "column": 46 + }, + "end": { + "line": 403, + "column": 63 + }, + "identifierName": "caretEventHandler" + }, + "name": "caretEventHandler" + }, + "computed": false + } + ] + } + }, + { + "type": "ExpressionStatement", + "start": 14451, + "end": 14513, + "loc": { + "start": { + "line": 404, + "column": 4 + }, + "end": { + "line": 404, + "column": 66 + } + }, + "expression": { + "type": "CallExpression", + "start": 14451, + "end": 14512, + "loc": { + "start": { + "line": 404, + "column": 4 + }, + "end": { + "line": 404, + "column": 65 + } + }, + "callee": { + "type": "MemberExpression", + "start": 14451, + "end": 14476, + "loc": { + "start": { + "line": 404, + "column": 4 + }, + "end": { + "line": 404, + "column": 29 + } + }, + "object": { + "type": "Identifier", + "start": 14451, + "end": 14459, + "loc": { + "start": { + "line": 404, + "column": 4 + }, + "end": { + "line": 404, + "column": 12 + }, + "identifierName": "document" + }, + "name": "document" + }, + "property": { + "type": "Identifier", + "start": 14460, + "end": 14476, + "loc": { + "start": { + "line": 404, + "column": 13 + }, + "end": { + "line": 404, + "column": 29 + }, + "identifierName": "addEventListener" + }, + "name": "addEventListener" + }, + "computed": false + }, + "arguments": [ + { + "type": "StringLiteral", + "start": 14477, + "end": 14487, + "loc": { + "start": { + "line": 404, + "column": 30 + }, + "end": { + "line": 404, + "column": 40 + } + }, + "extra": { + "rawValue": "touchend", + "raw": "\"touchend\"" + }, + "value": "touchend" + }, + { + "type": "MemberExpression", + "start": 14489, + "end": 14511, + "loc": { + "start": { + "line": 404, + "column": 42 + }, + "end": { + "line": 404, + "column": 64 + } + }, + "object": { + "type": "ThisExpression", + "start": 14489, + "end": 14493, + "loc": { + "start": { + "line": 404, + "column": 42 + }, + "end": { + "line": 404, + "column": 46 + } + } + }, + "property": { + "type": "Identifier", + "start": 14494, + "end": 14511, + "loc": { + "start": { + "line": 404, + "column": 47 + }, + "end": { + "line": 404, + "column": 64 + }, + "identifierName": "caretEventHandler" + }, + "name": "caretEventHandler" + }, + "computed": false + } + ] + } + } + ], + "directives": [], + "trailingComments": null + }, + "trailingComments": null + }, + "leadingComments": [ + { + "type": "CommentBlock", + "value": "*\r\n * Retrieves the current cursor position within a input or textarea (if any)\r\n ", + "start": 14114, + "end": 14204, + "loc": { + "start": { + "line": 394, + "column": 2 + }, + "end": { + "line": 396, + "column": 5 + } + } + } + ], + "trailingComments": [ + { + "type": "CommentBlock", + "value": "*\r\n * Called by {@link handleCaret} when an event that warrants a cursor position update is triggered\r\n ", + "start": 14524, + "end": 14636, + "loc": { + "start": { + "line": 407, + "column": 2 + }, + "end": { + "line": 409, + "column": 5 + } + } + } + ] + }, + { + "type": "ClassProperty", + "start": 14640, + "end": 15197, + "loc": { + "start": { + "line": 410, + "column": 2 + }, + "end": { + "line": 427, + "column": 3 + } + }, + "static": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 14640, + "end": 14657, + "loc": { + "start": { + "line": 410, + "column": 2 + }, + "end": { + "line": 410, + "column": 19 + }, + "identifierName": "caretEventHandler" + }, + "name": "caretEventHandler", + "leadingComments": null + }, + "value": { + "type": "ArrowFunctionExpression", + "start": 14660, + "end": 15197, + "loc": { + "start": { + "line": 410, + "column": 22 + }, + "end": { + "line": 427, + "column": 3 + } + }, + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 14661, + "end": 14666, + "loc": { + "start": { + "line": 410, + "column": 23 + }, + "end": { + "line": 410, + "column": 28 + }, + "identifierName": "event" + }, + "name": "event" + } + ], + "body": { + "type": "BlockStatement", + "start": 14671, + "end": 15197, + "loc": { + "start": { + "line": 410, + "column": 33 + }, + "end": { + "line": 427, + "column": 3 + } + }, + "body": [ + { + "type": "VariableDeclaration", + "start": 14678, + "end": 14733, + "loc": { + "start": { + "line": 411, + "column": 4 + }, + "end": { + "line": 411, + "column": 59 + } + }, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 14682, + "end": 14732, + "loc": { + "start": { + "line": 411, + "column": 8 + }, + "end": { + "line": 411, + "column": 58 + } + }, + "id": { + "type": "Identifier", + "start": 14682, + "end": 14695, + "loc": { + "start": { + "line": 411, + "column": 8 + }, + "end": { + "line": 411, + "column": 21 + }, + "identifierName": "targetTagName" + }, + "name": "targetTagName" + }, + "init": { + "type": "CallExpression", + "start": 14698, + "end": 14732, + "loc": { + "start": { + "line": 411, + "column": 24 + }, + "end": { + "line": 411, + "column": 58 + } + }, + "callee": { + "type": "MemberExpression", + "start": 14698, + "end": 14730, + "loc": { + "start": { + "line": 411, + "column": 24 + }, + "end": { + "line": 411, + "column": 56 + } + }, + "object": { + "type": "MemberExpression", + "start": 14698, + "end": 14718, + "loc": { + "start": { + "line": 411, + "column": 24 + }, + "end": { + "line": 411, + "column": 44 + } + }, + "object": { + "type": "MemberExpression", + "start": 14698, + "end": 14710, + "loc": { + "start": { + "line": 411, + "column": 24 + }, + "end": { + "line": 411, + "column": 36 + } + }, + "object": { + "type": "Identifier", + "start": 14698, + "end": 14703, + "loc": { + "start": { + "line": 411, + "column": 24 + }, + "end": { + "line": 411, + "column": 29 + }, + "identifierName": "event" + }, + "name": "event" + }, + "property": { + "type": "Identifier", + "start": 14704, + "end": 14710, + "loc": { + "start": { + "line": 411, + "column": 30 + }, + "end": { + "line": 411, + "column": 36 + }, + "identifierName": "target" + }, + "name": "target" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 14711, + "end": 14718, + "loc": { + "start": { + "line": 411, + "column": 37 + }, + "end": { + "line": 411, + "column": 44 + }, + "identifierName": "tagName" + }, + "name": "tagName" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 14719, + "end": 14730, + "loc": { + "start": { + "line": 411, + "column": 45 + }, + "end": { + "line": 411, + "column": 56 + }, + "identifierName": "toLowerCase" + }, + "name": "toLowerCase" + }, + "computed": false + }, + "arguments": [] + } + } + ], + "kind": "let" + }, + { + "type": "IfStatement", + "start": 14741, + "end": 15192, + "loc": { + "start": { + "line": 413, + "column": 4 + }, + "end": { + "line": 426, + "column": 5 + } + }, + "test": { + "type": "LogicalExpression", + "start": 14752, + "end": 14816, + "loc": { + "start": { + "line": 414, + "column": 6 + }, + "end": { + "line": 415, + "column": 31 + } + }, + "left": { + "type": "BinaryExpression", + "start": 14752, + "end": 14780, + "loc": { + "start": { + "line": 414, + "column": 6 + }, + "end": { + "line": 414, + "column": 34 + } + }, + "left": { + "type": "Identifier", + "start": 14752, + "end": 14765, + "loc": { + "start": { + "line": 414, + "column": 6 + }, + "end": { + "line": 414, + "column": 19 + }, + "identifierName": "targetTagName" + }, + "name": "targetTagName" + }, + "operator": "===", + "right": { + "type": "StringLiteral", + "start": 14770, + "end": 14780, + "loc": { + "start": { + "line": 414, + "column": 24 + }, + "end": { + "line": 414, + "column": 34 + } + }, + "extra": { + "rawValue": "textarea", + "raw": "\"textarea\"" + }, + "value": "textarea" + } + }, + "operator": "||", + "right": { + "type": "BinaryExpression", + "start": 14791, + "end": 14816, + "loc": { + "start": { + "line": 415, + "column": 6 + }, + "end": { + "line": 415, + "column": 31 + } + }, + "left": { + "type": "Identifier", + "start": 14791, + "end": 14804, + "loc": { + "start": { + "line": 415, + "column": 6 + }, + "end": { + "line": 415, + "column": 19 + }, + "identifierName": "targetTagName" + }, + "name": "targetTagName" + }, + "operator": "===", + "right": { + "type": "StringLiteral", + "start": 14809, + "end": 14816, + "loc": { + "start": { + "line": 415, + "column": 24 + }, + "end": { + "line": 415, + "column": 31 + } + }, + "extra": { + "rawValue": "input", + "raw": "\"input\"" + }, + "value": "input" + } + } + }, + "consequent": { + "type": "BlockStatement", + "start": 14823, + "end": 15192, + "loc": { + "start": { + "line": 416, + "column": 5 + }, + "end": { + "line": 426, + "column": 5 + } + }, + "body": [ + { + "type": "ExpressionStatement", + "start": 14988, + "end": 15037, + "loc": { + "start": { + "line": 421, + "column": 6 + }, + "end": { + "line": 421, + "column": 55 + } + }, + "expression": { + "type": "AssignmentExpression", + "start": 14988, + "end": 15036, + "loc": { + "start": { + "line": 421, + "column": 6 + }, + "end": { + "line": 421, + "column": 54 + } + }, + "operator": "=", + "left": { + "type": "MemberExpression", + "start": 14988, + "end": 15006, + "loc": { + "start": { + "line": 421, + "column": 6 + }, + "end": { + "line": 421, + "column": 24 + } + }, + "object": { + "type": "ThisExpression", + "start": 14988, + "end": 14992, + "loc": { + "start": { + "line": 421, + "column": 6 + }, + "end": { + "line": 421, + "column": 10 + } + }, + "leadingComments": null + }, + "property": { + "type": "Identifier", + "start": 14993, + "end": 15006, + "loc": { + "start": { + "line": 421, + "column": 11 + }, + "end": { + "line": 421, + "column": 24 + }, + "identifierName": "caretPosition" + }, + "name": "caretPosition" + }, + "computed": false, + "leadingComments": null + }, + "right": { + "type": "MemberExpression", + "start": 15009, + "end": 15036, + "loc": { + "start": { + "line": 421, + "column": 27 + }, + "end": { + "line": 421, + "column": 54 + } + }, + "object": { + "type": "MemberExpression", + "start": 15009, + "end": 15021, + "loc": { + "start": { + "line": 421, + "column": 27 + }, + "end": { + "line": 421, + "column": 39 + } + }, + "object": { + "type": "Identifier", + "start": 15009, + "end": 15014, + "loc": { + "start": { + "line": 421, + "column": 27 + }, + "end": { + "line": 421, + "column": 32 + }, + "identifierName": "event" + }, + "name": "event" + }, + "property": { + "type": "Identifier", + "start": 15015, + "end": 15021, + "loc": { + "start": { + "line": 421, + "column": 33 + }, + "end": { + "line": 421, + "column": 39 + }, + "identifierName": "target" + }, + "name": "target" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 15022, + "end": 15036, + "loc": { + "start": { + "line": 421, + "column": 40 + }, + "end": { + "line": 421, + "column": 54 + }, + "identifierName": "selectionStart" + }, + "name": "selectionStart" + }, + "computed": false + }, + "leadingComments": null + }, + "leadingComments": [ + { + "type": "CommentBlock", + "value": "*\r\n * Tracks current cursor position\r\n * As keys are pressed, text will be added/removed at that position within the input.\r\n ", + "start": 14832, + "end": 14980, + "loc": { + "start": { + "line": 417, + "column": 6 + }, + "end": { + "line": 420, + "column": 9 + } + } + } + ] + }, + { + "type": "IfStatement", + "start": 15047, + "end": 15180, + "loc": { + "start": { + "line": 423, + "column": 6 + }, + "end": { + "line": 425, + "column": 7 + } + }, + "test": { + "type": "MemberExpression", + "start": 15050, + "end": 15068, + "loc": { + "start": { + "line": 423, + "column": 9 + }, + "end": { + "line": 423, + "column": 27 + } + }, + "object": { + "type": "MemberExpression", + "start": 15050, + "end": 15062, + "loc": { + "start": { + "line": 423, + "column": 9 + }, + "end": { + "line": 423, + "column": 21 + } + }, + "object": { + "type": "ThisExpression", + "start": 15050, + "end": 15054, + "loc": { + "start": { + "line": 423, + "column": 9 + }, + "end": { + "line": 423, + "column": 13 + } + } + }, + "property": { + "type": "Identifier", + "start": 15055, + "end": 15062, + "loc": { + "start": { + "line": 423, + "column": 14 + }, + "end": { + "line": 423, + "column": 21 + }, + "identifierName": "options" + }, + "name": "options" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 15063, + "end": 15068, + "loc": { + "start": { + "line": 423, + "column": 22 + }, + "end": { + "line": 423, + "column": 27 + }, + "identifierName": "debug" + }, + "name": "debug" + }, + "computed": false + }, + "consequent": { + "type": "BlockStatement", + "start": 15069, + "end": 15180, + "loc": { + "start": { + "line": 423, + "column": 28 + }, + "end": { + "line": 425, + "column": 7 + } + }, + "body": [ + { + "type": "ExpressionStatement", + "start": 15080, + "end": 15171, + "loc": { + "start": { + "line": 424, + "column": 8 + }, + "end": { + "line": 424, + "column": 99 + } + }, + "expression": { + "type": "CallExpression", + "start": 15080, + "end": 15170, + "loc": { + "start": { + "line": 424, + "column": 8 + }, + "end": { + "line": 424, + "column": 98 + } + }, + "callee": { + "type": "MemberExpression", + "start": 15080, + "end": 15091, + "loc": { + "start": { + "line": 424, + "column": 8 + }, + "end": { + "line": 424, + "column": 19 + } + }, + "object": { + "type": "Identifier", + "start": 15080, + "end": 15087, + "loc": { + "start": { + "line": 424, + "column": 8 + }, + "end": { + "line": 424, + "column": 15 + }, + "identifierName": "console" + }, + "name": "console" + }, + "property": { + "type": "Identifier", + "start": 15088, + "end": 15091, + "loc": { + "start": { + "line": 424, + "column": 16 + }, + "end": { + "line": 424, + "column": 19 + }, + "identifierName": "log" + }, + "name": "log" + }, + "computed": false + }, + "arguments": [ + { + "type": "StringLiteral", + "start": 15092, + "end": 15104, + "loc": { + "start": { + "line": 424, + "column": 20 + }, + "end": { + "line": 424, + "column": 32 + } + }, + "extra": { + "rawValue": "Caret at: ", + "raw": "'Caret at: '" + }, + "value": "Caret at: " + }, + { + "type": "MemberExpression", + "start": 15106, + "end": 15133, + "loc": { + "start": { + "line": 424, + "column": 34 + }, + "end": { + "line": 424, + "column": 61 + } + }, + "object": { + "type": "MemberExpression", + "start": 15106, + "end": 15118, + "loc": { + "start": { + "line": 424, + "column": 34 + }, + "end": { + "line": 424, + "column": 46 + } + }, + "object": { + "type": "Identifier", + "start": 15106, + "end": 15111, + "loc": { + "start": { + "line": 424, + "column": 34 + }, + "end": { + "line": 424, + "column": 39 + }, + "identifierName": "event" + }, + "name": "event" + }, + "property": { + "type": "Identifier", + "start": 15112, + "end": 15118, + "loc": { + "start": { + "line": 424, + "column": 40 + }, + "end": { + "line": 424, + "column": 46 + }, + "identifierName": "target" + }, + "name": "target" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 15119, + "end": 15133, + "loc": { + "start": { + "line": 424, + "column": 47 + }, + "end": { + "line": 424, + "column": 61 + }, + "identifierName": "selectionStart" + }, + "name": "selectionStart" + }, + "computed": false + }, + { + "type": "CallExpression", + "start": 15135, + "end": 15169, + "loc": { + "start": { + "line": 424, + "column": 63 + }, + "end": { + "line": 424, + "column": 97 + } + }, + "callee": { + "type": "MemberExpression", + "start": 15135, + "end": 15167, + "loc": { + "start": { + "line": 424, + "column": 63 + }, + "end": { + "line": 424, + "column": 95 + } + }, + "object": { + "type": "MemberExpression", + "start": 15135, + "end": 15155, + "loc": { + "start": { + "line": 424, + "column": 63 + }, + "end": { + "line": 424, + "column": 83 + } + }, + "object": { + "type": "MemberExpression", + "start": 15135, + "end": 15147, + "loc": { + "start": { + "line": 424, + "column": 63 + }, + "end": { + "line": 424, + "column": 75 + } + }, + "object": { + "type": "Identifier", + "start": 15135, + "end": 15140, + "loc": { + "start": { + "line": 424, + "column": 63 + }, + "end": { + "line": 424, + "column": 68 + }, + "identifierName": "event" + }, + "name": "event" + }, + "property": { + "type": "Identifier", + "start": 15141, + "end": 15147, + "loc": { + "start": { + "line": 424, + "column": 69 + }, + "end": { + "line": 424, + "column": 75 + }, + "identifierName": "target" + }, + "name": "target" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 15148, + "end": 15155, + "loc": { + "start": { + "line": 424, + "column": 76 + }, + "end": { + "line": 424, + "column": 83 + }, + "identifierName": "tagName" + }, + "name": "tagName" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 15156, + "end": 15167, + "loc": { + "start": { + "line": 424, + "column": 84 + }, + "end": { + "line": 424, + "column": 95 + }, + "identifierName": "toLowerCase" + }, + "name": "toLowerCase" + }, + "computed": false + }, + "arguments": [] + } + ] + } + } + ], + "directives": [] + }, + "alternate": null + } + ], + "directives": [] + }, + "alternate": null + } + ], + "directives": [], + "trailingComments": null + }, + "trailingComments": null + }, + "leadingComments": [ + { + "type": "CommentBlock", + "value": "*\r\n * Called by {@link handleCaret} when an event that warrants a cursor position update is triggered\r\n ", + "start": 14524, + "end": 14636, + "loc": { + "start": { + "line": 407, + "column": 2 + }, + "end": { + "line": 409, + "column": 5 + } + } + } + ], + "trailingComments": [ + { + "type": "CommentBlock", + "value": "*\r\n * Executes the callback function once simple-keyboard is rendered for the first time (on initialization).\r\n ", + "start": 15203, + "end": 15323, + "loc": { + "start": { + "line": 429, + "column": 2 + }, + "end": { + "line": 431, + "column": 5 + } + } + } + ] + }, + { + "type": "ClassProperty", + "start": 15327, + "end": 15570, + "loc": { + "start": { + "line": 432, + "column": 2 + }, + "end": { + "line": 444, + "column": 3 + } + }, + "static": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 15327, + "end": 15333, + "loc": { + "start": { + "line": 432, + "column": 2 + }, + "end": { + "line": 432, + "column": 8 + }, + "identifierName": "onInit" + }, + "name": "onInit", + "leadingComments": null + }, + "value": { + "type": "ArrowFunctionExpression", + "start": 15336, + "end": 15570, + "loc": { + "start": { + "line": 432, + "column": 11 + }, + "end": { + "line": 444, + "column": 3 + } + }, + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [], + "body": { + "type": "BlockStatement", + "start": 15342, + "end": 15570, + "loc": { + "start": { + "line": 432, + "column": 17 + }, + "end": { + "line": 444, + "column": 3 + } + }, + "body": [ + { + "type": "IfStatement", + "start": 15349, + "end": 15414, + "loc": { + "start": { + "line": 433, + "column": 4 + }, + "end": { + "line": 435, + "column": 5 + } + }, + "test": { + "type": "MemberExpression", + "start": 15352, + "end": 15370, + "loc": { + "start": { + "line": 433, + "column": 7 + }, + "end": { + "line": 433, + "column": 25 + } + }, + "object": { + "type": "MemberExpression", + "start": 15352, + "end": 15364, + "loc": { + "start": { + "line": 433, + "column": 7 + }, + "end": { + "line": 433, + "column": 19 + } + }, + "object": { + "type": "ThisExpression", + "start": 15352, + "end": 15356, + "loc": { + "start": { + "line": 433, + "column": 7 + }, + "end": { + "line": 433, + "column": 11 + } + } + }, + "property": { + "type": "Identifier", + "start": 15357, + "end": 15364, + "loc": { + "start": { + "line": 433, + "column": 12 + }, + "end": { + "line": 433, + "column": 19 + }, + "identifierName": "options" + }, + "name": "options" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 15365, + "end": 15370, + "loc": { + "start": { + "line": 433, + "column": 20 + }, + "end": { + "line": 433, + "column": 25 + }, + "identifierName": "debug" + }, + "name": "debug" + }, + "computed": false + }, + "consequent": { + "type": "BlockStatement", + "start": 15371, + "end": 15414, + "loc": { + "start": { + "line": 433, + "column": 26 + }, + "end": { + "line": 435, + "column": 5 + } + }, + "body": [ + { + "type": "ExpressionStatement", + "start": 15380, + "end": 15407, + "loc": { + "start": { + "line": 434, + "column": 6 + }, + "end": { + "line": 434, + "column": 33 + } + }, + "expression": { + "type": "CallExpression", + "start": 15380, + "end": 15406, + "loc": { + "start": { + "line": 434, + "column": 6 + }, + "end": { + "line": 434, + "column": 32 + } + }, + "callee": { + "type": "MemberExpression", + "start": 15380, + "end": 15391, + "loc": { + "start": { + "line": 434, + "column": 6 + }, + "end": { + "line": 434, + "column": 17 + } + }, + "object": { + "type": "Identifier", + "start": 15380, + "end": 15387, + "loc": { + "start": { + "line": 434, + "column": 6 + }, + "end": { + "line": 434, + "column": 13 + }, + "identifierName": "console" + }, + "name": "console" + }, + "property": { + "type": "Identifier", + "start": 15388, + "end": 15391, + "loc": { + "start": { + "line": 434, + "column": 14 + }, + "end": { + "line": 434, + "column": 17 + }, + "identifierName": "log" + }, + "name": "log" + }, + "computed": false + }, + "arguments": [ + { + "type": "StringLiteral", + "start": 15392, + "end": 15405, + "loc": { + "start": { + "line": 434, + "column": 18 + }, + "end": { + "line": 434, + "column": 31 + } + }, + "extra": { + "rawValue": "Initialized", + "raw": "\"Initialized\"" + }, + "value": "Initialized" + } + ] + } + } + ], + "directives": [], + "trailingComments": null + }, + "alternate": null, + "trailingComments": [ + { + "type": "CommentBlock", + "value": "*\r\n * Caret handling\r\n ", + "start": 15422, + "end": 15457, + "loc": { + "start": { + "line": 437, + "column": 4 + }, + "end": { + "line": 439, + "column": 7 + } + } + } + ] + }, + { + "type": "ExpressionStatement", + "start": 15463, + "end": 15482, + "loc": { + "start": { + "line": 440, + "column": 4 + }, + "end": { + "line": 440, + "column": 23 + } + }, + "expression": { + "type": "CallExpression", + "start": 15463, + "end": 15481, + "loc": { + "start": { + "line": 440, + "column": 4 + }, + "end": { + "line": 440, + "column": 22 + } + }, + "callee": { + "type": "MemberExpression", + "start": 15463, + "end": 15479, + "loc": { + "start": { + "line": 440, + "column": 4 + }, + "end": { + "line": 440, + "column": 20 + } + }, + "object": { + "type": "ThisExpression", + "start": 15463, + "end": 15467, + "loc": { + "start": { + "line": 440, + "column": 4 + }, + "end": { + "line": 440, + "column": 8 + } + }, + "leadingComments": null + }, + "property": { + "type": "Identifier", + "start": 15468, + "end": 15479, + "loc": { + "start": { + "line": 440, + "column": 9 + }, + "end": { + "line": 440, + "column": 20 + }, + "identifierName": "handleCaret" + }, + "name": "handleCaret" + }, + "computed": false, + "leadingComments": null + }, + "arguments": [], + "leadingComments": null + }, + "leadingComments": [ + { + "type": "CommentBlock", + "value": "*\r\n * Caret handling\r\n ", + "start": 15422, + "end": 15457, + "loc": { + "start": { + "line": 437, + "column": 4 + }, + "end": { + "line": 439, + "column": 7 + } + } + } + ] + }, + { + "type": "IfStatement", + "start": 15490, + "end": 15565, + "loc": { + "start": { + "line": 442, + "column": 4 + }, + "end": { + "line": 443, + "column": 28 + } + }, + "test": { + "type": "BinaryExpression", + "start": 15493, + "end": 15534, + "loc": { + "start": { + "line": 442, + "column": 7 + }, + "end": { + "line": 442, + "column": 48 + } + }, + "left": { + "type": "UnaryExpression", + "start": 15493, + "end": 15519, + "loc": { + "start": { + "line": 442, + "column": 7 + }, + "end": { + "line": 442, + "column": 33 + } + }, + "operator": "typeof", + "prefix": true, + "argument": { + "type": "MemberExpression", + "start": 15500, + "end": 15519, + "loc": { + "start": { + "line": 442, + "column": 14 + }, + "end": { + "line": 442, + "column": 33 + } + }, + "object": { + "type": "MemberExpression", + "start": 15500, + "end": 15512, + "loc": { + "start": { + "line": 442, + "column": 14 + }, + "end": { + "line": 442, + "column": 26 + } + }, + "object": { + "type": "ThisExpression", + "start": 15500, + "end": 15504, + "loc": { + "start": { + "line": 442, + "column": 14 + }, + "end": { + "line": 442, + "column": 18 + } + } + }, + "property": { + "type": "Identifier", + "start": 15505, + "end": 15512, + "loc": { + "start": { + "line": 442, + "column": 19 + }, + "end": { + "line": 442, + "column": 26 + }, + "identifierName": "options" + }, + "name": "options" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 15513, + "end": 15519, + "loc": { + "start": { + "line": 442, + "column": 27 + }, + "end": { + "line": 442, + "column": 33 + }, + "identifierName": "onInit" + }, + "name": "onInit" + }, + "computed": false + }, + "extra": { + "parenthesizedArgument": false + } + }, + "operator": "===", + "right": { + "type": "StringLiteral", + "start": 15524, + "end": 15534, + "loc": { + "start": { + "line": 442, + "column": 38 + }, + "end": { + "line": 442, + "column": 48 + } + }, + "extra": { + "rawValue": "function", + "raw": "\"function\"" + }, + "value": "function" + } + }, + "consequent": { + "type": "ExpressionStatement", + "start": 15543, + "end": 15565, + "loc": { + "start": { + "line": 443, + "column": 6 + }, + "end": { + "line": 443, + "column": 28 + } + }, + "expression": { + "type": "CallExpression", + "start": 15543, + "end": 15564, + "loc": { + "start": { + "line": 443, + "column": 6 + }, + "end": { + "line": 443, + "column": 27 + } + }, + "callee": { + "type": "MemberExpression", + "start": 15543, + "end": 15562, + "loc": { + "start": { + "line": 443, + "column": 6 + }, + "end": { + "line": 443, + "column": 25 + } + }, + "object": { + "type": "MemberExpression", + "start": 15543, + "end": 15555, + "loc": { + "start": { + "line": 443, + "column": 6 + }, + "end": { + "line": 443, + "column": 18 + } + }, + "object": { + "type": "ThisExpression", + "start": 15543, + "end": 15547, + "loc": { + "start": { + "line": 443, + "column": 6 + }, + "end": { + "line": 443, + "column": 10 + } + } + }, + "property": { + "type": "Identifier", + "start": 15548, + "end": 15555, + "loc": { + "start": { + "line": 443, + "column": 11 + }, + "end": { + "line": 443, + "column": 18 + }, + "identifierName": "options" + }, + "name": "options" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 15556, + "end": 15562, + "loc": { + "start": { + "line": 443, + "column": 19 + }, + "end": { + "line": 443, + "column": 25 + }, + "identifierName": "onInit" + }, + "name": "onInit" + }, + "computed": false + }, + "arguments": [] + } + }, + "alternate": null + } + ], + "directives": [], + "trailingComments": null + }, + "trailingComments": null + }, + "leadingComments": [ + { + "type": "CommentBlock", + "value": "*\r\n * Executes the callback function once simple-keyboard is rendered for the first time (on initialization).\r\n ", + "start": 15203, + "end": 15323, + "loc": { + "start": { + "line": 429, + "column": 2 + }, + "end": { + "line": 431, + "column": 5 + } + } + } + ], + "trailingComments": [ + { + "type": "CommentBlock", + "value": "*\r\n * Executes the callback function every time simple-keyboard is rendered (e.g: when you change layouts).\r\n ", + "start": 15576, + "end": 15694, + "loc": { + "start": { + "line": 446, + "column": 2 + }, + "end": { + "line": 448, + "column": 5 + } + } + } + ] + }, + { + "type": "ClassProperty", + "start": 15698, + "end": 15806, + "loc": { + "start": { + "line": 449, + "column": 2 + }, + "end": { + "line": 452, + "column": 3 + } + }, + "static": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 15698, + "end": 15706, + "loc": { + "start": { + "line": 449, + "column": 2 + }, + "end": { + "line": 449, + "column": 10 + }, + "identifierName": "onRender" + }, + "name": "onRender", + "leadingComments": null + }, + "value": { + "type": "ArrowFunctionExpression", + "start": 15709, + "end": 15806, + "loc": { + "start": { + "line": 449, + "column": 13 + }, + "end": { + "line": 452, + "column": 3 + } + }, + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [], + "body": { + "type": "BlockStatement", + "start": 15715, + "end": 15806, + "loc": { + "start": { + "line": 449, + "column": 19 + }, + "end": { + "line": 452, + "column": 3 + } + }, + "body": [ + { + "type": "IfStatement", + "start": 15722, + "end": 15801, + "loc": { + "start": { + "line": 450, + "column": 4 + }, + "end": { + "line": 451, + "column": 30 + } + }, + "test": { + "type": "BinaryExpression", + "start": 15725, + "end": 15768, + "loc": { + "start": { + "line": 450, + "column": 7 + }, + "end": { + "line": 450, + "column": 50 + } + }, + "left": { + "type": "UnaryExpression", + "start": 15725, + "end": 15753, + "loc": { + "start": { + "line": 450, + "column": 7 + }, + "end": { + "line": 450, + "column": 35 + } + }, + "operator": "typeof", + "prefix": true, + "argument": { + "type": "MemberExpression", + "start": 15732, + "end": 15753, + "loc": { + "start": { + "line": 450, + "column": 14 + }, + "end": { + "line": 450, + "column": 35 + } + }, + "object": { + "type": "MemberExpression", + "start": 15732, + "end": 15744, + "loc": { + "start": { + "line": 450, + "column": 14 + }, + "end": { + "line": 450, + "column": 26 + } + }, + "object": { + "type": "ThisExpression", + "start": 15732, + "end": 15736, + "loc": { + "start": { + "line": 450, + "column": 14 + }, + "end": { + "line": 450, + "column": 18 + } + } + }, + "property": { + "type": "Identifier", + "start": 15737, + "end": 15744, + "loc": { + "start": { + "line": 450, + "column": 19 + }, + "end": { + "line": 450, + "column": 26 + }, + "identifierName": "options" + }, + "name": "options" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 15745, + "end": 15753, + "loc": { + "start": { + "line": 450, + "column": 27 + }, + "end": { + "line": 450, + "column": 35 + }, + "identifierName": "onRender" + }, + "name": "onRender" + }, + "computed": false + }, + "extra": { + "parenthesizedArgument": false + } + }, + "operator": "===", + "right": { + "type": "StringLiteral", + "start": 15758, + "end": 15768, + "loc": { + "start": { + "line": 450, + "column": 40 + }, + "end": { + "line": 450, + "column": 50 + } + }, + "extra": { + "rawValue": "function", + "raw": "\"function\"" + }, + "value": "function" + } + }, + "consequent": { + "type": "ExpressionStatement", + "start": 15777, + "end": 15801, + "loc": { + "start": { + "line": 451, + "column": 6 + }, + "end": { + "line": 451, + "column": 30 + } + }, + "expression": { + "type": "CallExpression", + "start": 15777, + "end": 15800, + "loc": { + "start": { + "line": 451, + "column": 6 + }, + "end": { + "line": 451, + "column": 29 + } + }, + "callee": { + "type": "MemberExpression", + "start": 15777, + "end": 15798, + "loc": { + "start": { + "line": 451, + "column": 6 + }, + "end": { + "line": 451, + "column": 27 + } + }, + "object": { + "type": "MemberExpression", + "start": 15777, + "end": 15789, + "loc": { + "start": { + "line": 451, + "column": 6 + }, + "end": { + "line": 451, + "column": 18 + } + }, + "object": { + "type": "ThisExpression", + "start": 15777, + "end": 15781, + "loc": { + "start": { + "line": 451, + "column": 6 + }, + "end": { + "line": 451, + "column": 10 + } + } + }, + "property": { + "type": "Identifier", + "start": 15782, + "end": 15789, + "loc": { + "start": { + "line": 451, + "column": 11 + }, + "end": { + "line": 451, + "column": 18 + }, + "identifierName": "options" + }, + "name": "options" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 15790, + "end": 15798, + "loc": { + "start": { + "line": 451, + "column": 19 + }, + "end": { + "line": 451, + "column": 27 + }, + "identifierName": "onRender" + }, + "name": "onRender" + }, + "computed": false + }, + "arguments": [] + } + }, + "alternate": null + } + ], + "directives": [], + "trailingComments": null + }, + "trailingComments": null + }, + "leadingComments": [ + { + "type": "CommentBlock", + "value": "*\r\n * Executes the callback function every time simple-keyboard is rendered (e.g: when you change layouts).\r\n ", + "start": 15576, + "end": 15694, + "loc": { + "start": { + "line": 446, + "column": 2 + }, + "end": { + "line": 448, + "column": 5 + } + } + } + ], + "trailingComments": [ + { + "type": "CommentBlock", + "value": "*\r\n * Renders rows and buttons as per options\r\n ", + "start": 15812, + "end": 15868, + "loc": { + "start": { + "line": 454, + "column": 2 + }, + "end": { + "line": 456, + "column": 5 + } + } + } + ] + }, + { + "type": "ClassProperty", + "start": 15872, + "end": 20001, + "loc": { + "start": { + "line": 457, + "column": 2 + }, + "end": { + "line": 593, + "column": 3 + } + }, + "static": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 15872, + "end": 15878, + "loc": { + "start": { + "line": 457, + "column": 2 + }, + "end": { + "line": 457, + "column": 8 + }, + "identifierName": "render" + }, + "name": "render", + "leadingComments": null + }, + "value": { + "type": "ArrowFunctionExpression", + "start": 15881, + "end": 20001, + "loc": { + "start": { + "line": 457, + "column": 11 + }, + "end": { + "line": 593, + "column": 3 + } + }, + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [], + "body": { + "type": "BlockStatement", + "start": 15887, + "end": 20001, + "loc": { + "start": { + "line": 457, + "column": 17 + }, + "end": { + "line": 593, + "column": 3 + } + }, + "body": [ + { + "type": "ExpressionStatement", + "start": 15935, + "end": 15948, + "loc": { + "start": { + "line": 461, + "column": 4 + }, + "end": { + "line": 461, + "column": 17 + } + }, + "expression": { + "type": "CallExpression", + "start": 15935, + "end": 15947, + "loc": { + "start": { + "line": 461, + "column": 4 + }, + "end": { + "line": 461, + "column": 16 + } + }, + "callee": { + "type": "MemberExpression", + "start": 15935, + "end": 15945, + "loc": { + "start": { + "line": 461, + "column": 4 + }, + "end": { + "line": 461, + "column": 14 + } + }, + "object": { + "type": "ThisExpression", + "start": 15935, + "end": 15939, + "loc": { + "start": { + "line": 461, + "column": 4 + }, + "end": { + "line": 461, + "column": 8 + } + }, + "leadingComments": null + }, + "property": { + "type": "Identifier", + "start": 15940, + "end": 15945, + "loc": { + "start": { + "line": 461, + "column": 9 + }, + "end": { + "line": 461, + "column": 14 + }, + "identifierName": "clear" + }, + "name": "clear" + }, + "computed": false, + "leadingComments": null + }, + "arguments": [], + "leadingComments": null + }, + "leadingComments": [ + { + "type": "CommentBlock", + "value": "*\r\n * Clear keyboard\r\n ", + "start": 15894, + "end": 15929, + "loc": { + "start": { + "line": 458, + "column": 4 + }, + "end": { + "line": 460, + "column": 7 + } + } + } + ] + }, + { + "type": "VariableDeclaration", + "start": 15956, + "end": 16056, + "loc": { + "start": { + "line": 463, + "column": 4 + }, + "end": { + "line": 463, + "column": 104 + } + }, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 15960, + "end": 16055, + "loc": { + "start": { + "line": 463, + "column": 8 + }, + "end": { + "line": 463, + "column": 103 + } + }, + "id": { + "type": "Identifier", + "start": 15960, + "end": 15971, + "loc": { + "start": { + "line": 463, + "column": 8 + }, + "end": { + "line": 463, + "column": 19 + }, + "identifierName": "layoutClass" + }, + "name": "layoutClass" + }, + "init": { + "type": "ConditionalExpression", + "start": 15974, + "end": 16055, + "loc": { + "start": { + "line": 463, + "column": 22 + }, + "end": { + "line": 463, + "column": 103 + } + }, + "test": { + "type": "MemberExpression", + "start": 15974, + "end": 15993, + "loc": { + "start": { + "line": 463, + "column": 22 + }, + "end": { + "line": 463, + "column": 41 + } + }, + "object": { + "type": "MemberExpression", + "start": 15974, + "end": 15986, + "loc": { + "start": { + "line": 463, + "column": 22 + }, + "end": { + "line": 463, + "column": 34 + } + }, + "object": { + "type": "ThisExpression", + "start": 15974, + "end": 15978, + "loc": { + "start": { + "line": 463, + "column": 22 + }, + "end": { + "line": 463, + "column": 26 + } + } + }, + "property": { + "type": "Identifier", + "start": 15979, + "end": 15986, + "loc": { + "start": { + "line": 463, + "column": 27 + }, + "end": { + "line": 463, + "column": 34 + }, + "identifierName": "options" + }, + "name": "options" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 15987, + "end": 15993, + "loc": { + "start": { + "line": 463, + "column": 35 + }, + "end": { + "line": 463, + "column": 41 + }, + "identifierName": "layout" + }, + "name": "layout" + }, + "computed": false + }, + "consequent": { + "type": "StringLiteral", + "start": 15996, + "end": 16014, + "loc": { + "start": { + "line": 463, + "column": 44 + }, + "end": { + "line": 463, + "column": 62 + } + }, + "extra": { + "rawValue": "hg-layout-custom", + "raw": "\"hg-layout-custom\"" + }, + "value": "hg-layout-custom" + }, + "alternate": { + "type": "TemplateLiteral", + "start": 16017, + "end": 16055, + "loc": { + "start": { + "line": 463, + "column": 65 + }, + "end": { + "line": 463, + "column": 103 + } + }, + "expressions": [ + { + "type": "MemberExpression", + "start": 16030, + "end": 16053, + "loc": { + "start": { + "line": 463, + "column": 78 + }, + "end": { + "line": 463, + "column": 101 + } + }, + "object": { + "type": "MemberExpression", + "start": 16030, + "end": 16042, + "loc": { + "start": { + "line": 463, + "column": 78 + }, + "end": { + "line": 463, + "column": 90 + } + }, + "object": { + "type": "ThisExpression", + "start": 16030, + "end": 16034, + "loc": { + "start": { + "line": 463, + "column": 78 + }, + "end": { + "line": 463, + "column": 82 + } + } + }, + "property": { + "type": "Identifier", + "start": 16035, + "end": 16042, + "loc": { + "start": { + "line": 463, + "column": 83 + }, + "end": { + "line": 463, + "column": 90 + }, + "identifierName": "options" + }, + "name": "options" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 16043, + "end": 16053, + "loc": { + "start": { + "line": 463, + "column": 91 + }, + "end": { + "line": 463, + "column": 101 + }, + "identifierName": "layoutName" + }, + "name": "layoutName" + }, + "computed": false + } + ], + "quasis": [ + { + "type": "TemplateElement", + "start": 16018, + "end": 16028, + "loc": { + "start": { + "line": 463, + "column": 66 + }, + "end": { + "line": 463, + "column": 76 + } + }, + "value": { + "raw": "hg-layout-", + "cooked": "hg-layout-" + }, + "tail": false + }, + { + "type": "TemplateElement", + "start": 16054, + "end": 16054, + "loc": { + "start": { + "line": 463, + "column": 102 + }, + "end": { + "line": 463, + "column": 102 + } + }, + "value": { + "raw": "", + "cooked": "" + }, + "tail": true + } + ] + } + } + } + ], + "kind": "let" + }, + { + "type": "VariableDeclaration", + "start": 16062, + "end": 16132, + "loc": { + "start": { + "line": 464, + "column": 4 + }, + "end": { + "line": 464, + "column": 74 + } + }, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 16066, + "end": 16131, + "loc": { + "start": { + "line": 464, + "column": 8 + }, + "end": { + "line": 464, + "column": 73 + } + }, + "id": { + "type": "Identifier", + "start": 16066, + "end": 16072, + "loc": { + "start": { + "line": 464, + "column": 8 + }, + "end": { + "line": 464, + "column": 14 + }, + "identifierName": "layout" + }, + "name": "layout" + }, + "init": { + "type": "LogicalExpression", + "start": 16075, + "end": 16131, + "loc": { + "start": { + "line": 464, + "column": 17 + }, + "end": { + "line": 464, + "column": 73 + } + }, + "left": { + "type": "MemberExpression", + "start": 16075, + "end": 16094, + "loc": { + "start": { + "line": 464, + "column": 17 + }, + "end": { + "line": 464, + "column": 36 + } + }, + "object": { + "type": "MemberExpression", + "start": 16075, + "end": 16087, + "loc": { + "start": { + "line": 464, + "column": 17 + }, + "end": { + "line": 464, + "column": 29 + } + }, + "object": { + "type": "ThisExpression", + "start": 16075, + "end": 16079, + "loc": { + "start": { + "line": 464, + "column": 17 + }, + "end": { + "line": 464, + "column": 21 + } + } + }, + "property": { + "type": "Identifier", + "start": 16080, + "end": 16087, + "loc": { + "start": { + "line": 464, + "column": 22 + }, + "end": { + "line": 464, + "column": 29 + }, + "identifierName": "options" + }, + "name": "options" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 16088, + "end": 16094, + "loc": { + "start": { + "line": 464, + "column": 30 + }, + "end": { + "line": 464, + "column": 36 + }, + "identifierName": "layout" + }, + "name": "layout" + }, + "computed": false + }, + "operator": "||", + "right": { + "type": "CallExpression", + "start": 16098, + "end": 16131, + "loc": { + "start": { + "line": 464, + "column": 40 + }, + "end": { + "line": 464, + "column": 73 + } + }, + "callee": { + "type": "MemberExpression", + "start": 16098, + "end": 16129, + "loc": { + "start": { + "line": 464, + "column": 40 + }, + "end": { + "line": 464, + "column": 71 + } + }, + "object": { + "type": "Identifier", + "start": 16098, + "end": 16112, + "loc": { + "start": { + "line": 464, + "column": 40 + }, + "end": { + "line": 464, + "column": 54 + }, + "identifierName": "KeyboardLayout" + }, + "name": "KeyboardLayout" + }, + "property": { + "type": "Identifier", + "start": 16113, + "end": 16129, + "loc": { + "start": { + "line": 464, + "column": 55 + }, + "end": { + "line": 464, + "column": 71 + }, + "identifierName": "getDefaultLayout" + }, + "name": "getDefaultLayout" + }, + "computed": false + }, + "arguments": [] + } + } + } + ], + "kind": "let", + "trailingComments": [ + { + "type": "CommentBlock", + "value": "*\r\n * Account for buttonTheme, if set\r\n ", + "start": 16140, + "end": 16192, + "loc": { + "start": { + "line": 466, + "column": 4 + }, + "end": { + "line": 468, + "column": 7 + } + } + } + ] + }, + { + "type": "VariableDeclaration", + "start": 16198, + "end": 16226, + "loc": { + "start": { + "line": 469, + "column": 4 + }, + "end": { + "line": 469, + "column": 32 + } + }, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 16202, + "end": 16225, + "loc": { + "start": { + "line": 469, + "column": 8 + }, + "end": { + "line": 469, + "column": 31 + } + }, + "id": { + "type": "Identifier", + "start": 16202, + "end": 16220, + "loc": { + "start": { + "line": 469, + "column": 8 + }, + "end": { + "line": 469, + "column": 26 + }, + "identifierName": "buttonThemesParsed" + }, + "name": "buttonThemesParsed", + "leadingComments": null + }, + "init": { + "type": "ObjectExpression", + "start": 16223, + "end": 16225, + "loc": { + "start": { + "line": 469, + "column": 29 + }, + "end": { + "line": 469, + "column": 31 + } + }, + "properties": [] + }, + "leadingComments": null + } + ], + "kind": "let", + "leadingComments": [ + { + "type": "CommentBlock", + "value": "*\r\n * Account for buttonTheme, if set\r\n ", + "start": 16140, + "end": 16192, + "loc": { + "start": { + "line": 466, + "column": 4 + }, + "end": { + "line": 468, + "column": 7 + } + } + } + ] + }, + { + "type": "IfStatement", + "start": 16232, + "end": 17371, + "loc": { + "start": { + "line": 470, + "column": 4 + }, + "end": { + "line": 498, + "column": 5 + } + }, + "test": { + "type": "CallExpression", + "start": 16235, + "end": 16274, + "loc": { + "start": { + "line": 470, + "column": 7 + }, + "end": { + "line": 470, + "column": 46 + } + }, + "callee": { + "type": "MemberExpression", + "start": 16235, + "end": 16248, + "loc": { + "start": { + "line": 470, + "column": 7 + }, + "end": { + "line": 470, + "column": 20 + } + }, + "object": { + "type": "Identifier", + "start": 16235, + "end": 16240, + "loc": { + "start": { + "line": 470, + "column": 7 + }, + "end": { + "line": 470, + "column": 12 + }, + "identifierName": "Array" + }, + "name": "Array" + }, + "property": { + "type": "Identifier", + "start": 16241, + "end": 16248, + "loc": { + "start": { + "line": 470, + "column": 13 + }, + "end": { + "line": 470, + "column": 20 + }, + "identifierName": "isArray" + }, + "name": "isArray" + }, + "computed": false + }, + "arguments": [ + { + "type": "MemberExpression", + "start": 16249, + "end": 16273, + "loc": { + "start": { + "line": 470, + "column": 21 + }, + "end": { + "line": 470, + "column": 45 + } + }, + "object": { + "type": "MemberExpression", + "start": 16249, + "end": 16261, + "loc": { + "start": { + "line": 470, + "column": 21 + }, + "end": { + "line": 470, + "column": 33 + } + }, + "object": { + "type": "ThisExpression", + "start": 16249, + "end": 16253, + "loc": { + "start": { + "line": 470, + "column": 21 + }, + "end": { + "line": 470, + "column": 25 + } + } + }, + "property": { + "type": "Identifier", + "start": 16254, + "end": 16261, + "loc": { + "start": { + "line": 470, + "column": 26 + }, + "end": { + "line": 470, + "column": 33 + }, + "identifierName": "options" + }, + "name": "options" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 16262, + "end": 16273, + "loc": { + "start": { + "line": 470, + "column": 34 + }, + "end": { + "line": 470, + "column": 45 + }, + "identifierName": "buttonTheme" + }, + "name": "buttonTheme" + }, + "computed": false + } + ] + }, + "consequent": { + "type": "BlockStatement", + "start": 16275, + "end": 17371, + "loc": { + "start": { + "line": 470, + "column": 47 + }, + "end": { + "line": 498, + "column": 5 + } + }, + "body": [ + { + "type": "ExpressionStatement", + "start": 16284, + "end": 17364, + "loc": { + "start": { + "line": 471, + "column": 6 + }, + "end": { + "line": 497, + "column": 9 + } + }, + "expression": { + "type": "CallExpression", + "start": 16284, + "end": 17363, + "loc": { + "start": { + "line": 471, + "column": 6 + }, + "end": { + "line": 497, + "column": 8 + } + }, + "callee": { + "type": "MemberExpression", + "start": 16284, + "end": 16316, + "loc": { + "start": { + "line": 471, + "column": 6 + }, + "end": { + "line": 471, + "column": 38 + } + }, + "object": { + "type": "MemberExpression", + "start": 16284, + "end": 16308, + "loc": { + "start": { + "line": 471, + "column": 6 + }, + "end": { + "line": 471, + "column": 30 + } + }, + "object": { + "type": "MemberExpression", + "start": 16284, + "end": 16296, + "loc": { + "start": { + "line": 471, + "column": 6 + }, + "end": { + "line": 471, + "column": 18 + } + }, + "object": { + "type": "ThisExpression", + "start": 16284, + "end": 16288, + "loc": { + "start": { + "line": 471, + "column": 6 + }, + "end": { + "line": 471, + "column": 10 + } + } + }, + "property": { + "type": "Identifier", + "start": 16289, + "end": 16296, + "loc": { + "start": { + "line": 471, + "column": 11 + }, + "end": { + "line": 471, + "column": 18 + }, + "identifierName": "options" + }, + "name": "options" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 16297, + "end": 16308, + "loc": { + "start": { + "line": 471, + "column": 19 + }, + "end": { + "line": 471, + "column": 30 + }, + "identifierName": "buttonTheme" + }, + "name": "buttonTheme" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 16309, + "end": 16316, + "loc": { + "start": { + "line": 471, + "column": 31 + }, + "end": { + "line": 471, + "column": 38 + }, + "identifierName": "forEach" + }, + "name": "forEach" + }, + "computed": false + }, + "arguments": [ + { + "type": "ArrowFunctionExpression", + "start": 16317, + "end": 17362, + "loc": { + "start": { + "line": 471, + "column": 39 + }, + "end": { + "line": 497, + "column": 7 + } + }, + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 16317, + "end": 16325, + "loc": { + "start": { + "line": 471, + "column": 39 + }, + "end": { + "line": 471, + "column": 47 + }, + "identifierName": "themeObj" + }, + "name": "themeObj" + } + ], + "body": { + "type": "BlockStatement", + "start": 16329, + "end": 17362, + "loc": { + "start": { + "line": 471, + "column": 51 + }, + "end": { + "line": 497, + "column": 7 + } + }, + "body": [ + { + "type": "IfStatement", + "start": 16340, + "end": 17353, + "loc": { + "start": { + "line": 472, + "column": 8 + }, + "end": { + "line": 496, + "column": 9 + } + }, + "test": { + "type": "LogicalExpression", + "start": 16343, + "end": 16377, + "loc": { + "start": { + "line": 472, + "column": 11 + }, + "end": { + "line": 472, + "column": 45 + } + }, + "left": { + "type": "MemberExpression", + "start": 16343, + "end": 16359, + "loc": { + "start": { + "line": 472, + "column": 11 + }, + "end": { + "line": 472, + "column": 27 + } + }, + "object": { + "type": "Identifier", + "start": 16343, + "end": 16351, + "loc": { + "start": { + "line": 472, + "column": 11 + }, + "end": { + "line": 472, + "column": 19 + }, + "identifierName": "themeObj" + }, + "name": "themeObj" + }, + "property": { + "type": "Identifier", + "start": 16352, + "end": 16359, + "loc": { + "start": { + "line": 472, + "column": 20 + }, + "end": { + "line": 472, + "column": 27 + }, + "identifierName": "buttons" + }, + "name": "buttons" + }, + "computed": false + }, + "operator": "&&", + "right": { + "type": "MemberExpression", + "start": 16363, + "end": 16377, + "loc": { + "start": { + "line": 472, + "column": 31 + }, + "end": { + "line": 472, + "column": 45 + } + }, + "object": { + "type": "Identifier", + "start": 16363, + "end": 16371, + "loc": { + "start": { + "line": 472, + "column": 31 + }, + "end": { + "line": 472, + "column": 39 + }, + "identifierName": "themeObj" + }, + "name": "themeObj" + }, + "property": { + "type": "Identifier", + "start": 16372, + "end": 16377, + "loc": { + "start": { + "line": 472, + "column": 40 + }, + "end": { + "line": 472, + "column": 45 + }, + "identifierName": "class" + }, + "name": "class" + }, + "computed": false + } + }, + "consequent": { + "type": "BlockStatement", + "start": 16378, + "end": 17219, + "loc": { + "start": { + "line": 472, + "column": 46 + }, + "end": { + "line": 494, + "column": 9 + } + }, + "body": [ + { + "type": "VariableDeclaration", + "start": 16391, + "end": 16408, + "loc": { + "start": { + "line": 473, + "column": 10 + }, + "end": { + "line": 473, + "column": 27 + } + }, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 16395, + "end": 16407, + "loc": { + "start": { + "line": 473, + "column": 14 + }, + "end": { + "line": 473, + "column": 26 + } + }, + "id": { + "type": "Identifier", + "start": 16395, + "end": 16407, + "loc": { + "start": { + "line": 473, + "column": 14 + }, + "end": { + "line": 473, + "column": 26 + }, + "identifierName": "themeButtons" + }, + "name": "themeButtons" + }, + "init": null + } + ], + "kind": "let" + }, + { + "type": "IfStatement", + "start": 16422, + "end": 16533, + "loc": { + "start": { + "line": 475, + "column": 10 + }, + "end": { + "line": 477, + "column": 11 + } + }, + "test": { + "type": "BinaryExpression", + "start": 16425, + "end": 16461, + "loc": { + "start": { + "line": 475, + "column": 13 + }, + "end": { + "line": 475, + "column": 49 + } + }, + "left": { + "type": "UnaryExpression", + "start": 16425, + "end": 16448, + "loc": { + "start": { + "line": 475, + "column": 13 + }, + "end": { + "line": 475, + "column": 36 + } + }, + "operator": "typeof", + "prefix": true, + "argument": { + "type": "MemberExpression", + "start": 16432, + "end": 16448, + "loc": { + "start": { + "line": 475, + "column": 20 + }, + "end": { + "line": 475, + "column": 36 + } + }, + "object": { + "type": "Identifier", + "start": 16432, + "end": 16440, + "loc": { + "start": { + "line": 475, + "column": 20 + }, + "end": { + "line": 475, + "column": 28 + }, + "identifierName": "themeObj" + }, + "name": "themeObj" + }, + "property": { + "type": "Identifier", + "start": 16441, + "end": 16448, + "loc": { + "start": { + "line": 475, + "column": 29 + }, + "end": { + "line": 475, + "column": 36 + }, + "identifierName": "buttons" + }, + "name": "buttons" + }, + "computed": false + }, + "extra": { + "parenthesizedArgument": false + } + }, + "operator": "===", + "right": { + "type": "StringLiteral", + "start": 16453, + "end": 16461, + "loc": { + "start": { + "line": 475, + "column": 41 + }, + "end": { + "line": 475, + "column": 49 + } + }, + "extra": { + "rawValue": "string", + "raw": "\"string\"" + }, + "value": "string" + } + }, + "consequent": { + "type": "BlockStatement", + "start": 16462, + "end": 16533, + "loc": { + "start": { + "line": 475, + "column": 50 + }, + "end": { + "line": 477, + "column": 11 + } + }, + "body": [ + { + "type": "ExpressionStatement", + "start": 16477, + "end": 16520, + "loc": { + "start": { + "line": 476, + "column": 12 + }, + "end": { + "line": 476, + "column": 55 + } + }, + "expression": { + "type": "AssignmentExpression", + "start": 16477, + "end": 16519, + "loc": { + "start": { + "line": 476, + "column": 12 + }, + "end": { + "line": 476, + "column": 54 + } + }, + "operator": "=", + "left": { + "type": "Identifier", + "start": 16477, + "end": 16489, + "loc": { + "start": { + "line": 476, + "column": 12 + }, + "end": { + "line": 476, + "column": 24 + }, + "identifierName": "themeButtons" + }, + "name": "themeButtons" + }, + "right": { + "type": "CallExpression", + "start": 16492, + "end": 16519, + "loc": { + "start": { + "line": 476, + "column": 27 + }, + "end": { + "line": 476, + "column": 54 + } + }, + "callee": { + "type": "MemberExpression", + "start": 16492, + "end": 16514, + "loc": { + "start": { + "line": 476, + "column": 27 + }, + "end": { + "line": 476, + "column": 49 + } + }, + "object": { + "type": "MemberExpression", + "start": 16492, + "end": 16508, + "loc": { + "start": { + "line": 476, + "column": 27 + }, + "end": { + "line": 476, + "column": 43 + } + }, + "object": { + "type": "Identifier", + "start": 16492, + "end": 16500, + "loc": { + "start": { + "line": 476, + "column": 27 + }, + "end": { + "line": 476, + "column": 35 + }, + "identifierName": "themeObj" + }, + "name": "themeObj" + }, + "property": { + "type": "Identifier", + "start": 16501, + "end": 16508, + "loc": { + "start": { + "line": 476, + "column": 36 + }, + "end": { + "line": 476, + "column": 43 + }, + "identifierName": "buttons" + }, + "name": "buttons" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 16509, + "end": 16514, + "loc": { + "start": { + "line": 476, + "column": 44 + }, + "end": { + "line": 476, + "column": 49 + }, + "identifierName": "split" + }, + "name": "split" + }, + "computed": false + }, + "arguments": [ + { + "type": "StringLiteral", + "start": 16515, + "end": 16518, + "loc": { + "start": { + "line": 476, + "column": 50 + }, + "end": { + "line": 476, + "column": 53 + } + }, + "extra": { + "rawValue": " ", + "raw": "' '" + }, + "value": " " + } + ] + } + } + } + ], + "directives": [] + }, + "alternate": null + }, + { + "type": "IfStatement", + "start": 16547, + "end": 17208, + "loc": { + "start": { + "line": 479, + "column": 10 + }, + "end": { + "line": 493, + "column": 11 + } + }, + "test": { + "type": "Identifier", + "start": 16550, + "end": 16562, + "loc": { + "start": { + "line": 479, + "column": 13 + }, + "end": { + "line": 479, + "column": 25 + }, + "identifierName": "themeButtons" + }, + "name": "themeButtons" + }, + "consequent": { + "type": "BlockStatement", + "start": 16563, + "end": 17208, + "loc": { + "start": { + "line": 479, + "column": 26 + }, + "end": { + "line": 493, + "column": 11 + } + }, + "body": [ + { + "type": "ExpressionStatement", + "start": 16578, + "end": 17195, + "loc": { + "start": { + "line": 480, + "column": 12 + }, + "end": { + "line": 492, + "column": 15 + } + }, + "expression": { + "type": "CallExpression", + "start": 16578, + "end": 17194, + "loc": { + "start": { + "line": 480, + "column": 12 + }, + "end": { + "line": 492, + "column": 14 + } + }, + "callee": { + "type": "MemberExpression", + "start": 16578, + "end": 16598, + "loc": { + "start": { + "line": 480, + "column": 12 + }, + "end": { + "line": 480, + "column": 32 + } + }, + "object": { + "type": "Identifier", + "start": 16578, + "end": 16590, + "loc": { + "start": { + "line": 480, + "column": 12 + }, + "end": { + "line": 480, + "column": 24 + }, + "identifierName": "themeButtons" + }, + "name": "themeButtons" + }, + "property": { + "type": "Identifier", + "start": 16591, + "end": 16598, + "loc": { + "start": { + "line": 480, + "column": 25 + }, + "end": { + "line": 480, + "column": 32 + }, + "identifierName": "forEach" + }, + "name": "forEach" + }, + "computed": false + }, + "arguments": [ + { + "type": "ArrowFunctionExpression", + "start": 16599, + "end": 17193, + "loc": { + "start": { + "line": 480, + "column": 33 + }, + "end": { + "line": 492, + "column": 13 + } + }, + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 16599, + "end": 16610, + "loc": { + "start": { + "line": 480, + "column": 33 + }, + "end": { + "line": 480, + "column": 44 + }, + "identifierName": "themeButton" + }, + "name": "themeButton" + } + ], + "body": { + "type": "BlockStatement", + "start": 16614, + "end": 17193, + "loc": { + "start": { + "line": 480, + "column": 48 + }, + "end": { + "line": 492, + "column": 13 + } + }, + "body": [ + { + "type": "VariableDeclaration", + "start": 16631, + "end": 16681, + "loc": { + "start": { + "line": 481, + "column": 14 + }, + "end": { + "line": 481, + "column": 64 + } + }, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 16635, + "end": 16680, + "loc": { + "start": { + "line": 481, + "column": 18 + }, + "end": { + "line": 481, + "column": 63 + } + }, + "id": { + "type": "Identifier", + "start": 16635, + "end": 16646, + "loc": { + "start": { + "line": 481, + "column": 18 + }, + "end": { + "line": 481, + "column": 29 + }, + "identifierName": "themeParsed" + }, + "name": "themeParsed" + }, + "init": { + "type": "MemberExpression", + "start": 16649, + "end": 16680, + "loc": { + "start": { + "line": 481, + "column": 32 + }, + "end": { + "line": 481, + "column": 63 + } + }, + "object": { + "type": "Identifier", + "start": 16649, + "end": 16667, + "loc": { + "start": { + "line": 481, + "column": 32 + }, + "end": { + "line": 481, + "column": 50 + }, + "identifierName": "buttonThemesParsed" + }, + "name": "buttonThemesParsed" + }, + "property": { + "type": "Identifier", + "start": 16668, + "end": 16679, + "loc": { + "start": { + "line": 481, + "column": 51 + }, + "end": { + "line": 481, + "column": 62 + }, + "identifierName": "themeButton" + }, + "name": "themeButton" + }, + "computed": true + } + } + ], + "kind": "let", + "trailingComments": [ + { + "type": "CommentLine", + "value": " If the button has already been added", + "start": 16699, + "end": 16738, + "loc": { + "start": { + "line": 483, + "column": 14 + }, + "end": { + "line": 483, + "column": 53 + } + } + } + ] + }, + { + "type": "IfStatement", + "start": 16754, + "end": 17178, + "loc": { + "start": { + "line": 484, + "column": 14 + }, + "end": { + "line": 491, + "column": 15 + } + }, + "test": { + "type": "Identifier", + "start": 16757, + "end": 16768, + "loc": { + "start": { + "line": 484, + "column": 17 + }, + "end": { + "line": 484, + "column": 28 + }, + "identifierName": "themeParsed" + }, + "name": "themeParsed", + "leadingComments": null + }, + "consequent": { + "type": "BlockStatement", + "start": 16769, + "end": 17087, + "loc": { + "start": { + "line": 484, + "column": 29 + }, + "end": { + "line": 489, + "column": 15 + } + }, + "body": [ + { + "type": "IfStatement", + "start": 16889, + "end": 17070, + "loc": { + "start": { + "line": 486, + "column": 16 + }, + "end": { + "line": 488, + "column": 17 + } + }, + "test": { + "type": "UnaryExpression", + "start": 16892, + "end": 16960, + "loc": { + "start": { + "line": 486, + "column": 19 + }, + "end": { + "line": 486, + "column": 87 + } + }, + "operator": "!", + "prefix": true, + "argument": { + "type": "CallExpression", + "start": 16893, + "end": 16960, + "loc": { + "start": { + "line": 486, + "column": 20 + }, + "end": { + "line": 486, + "column": 87 + } + }, + "callee": { + "type": "MemberExpression", + "start": 16893, + "end": 16920, + "loc": { + "start": { + "line": 486, + "column": 20 + }, + "end": { + "line": 486, + "column": 47 + } + }, + "object": { + "type": "MemberExpression", + "start": 16893, + "end": 16907, + "loc": { + "start": { + "line": 486, + "column": 20 + }, + "end": { + "line": 486, + "column": 34 + } + }, + "object": { + "type": "ThisExpression", + "start": 16893, + "end": 16897, + "loc": { + "start": { + "line": 486, + "column": 20 + }, + "end": { + "line": 486, + "column": 24 + } + }, + "leadingComments": null + }, + "property": { + "type": "Identifier", + "start": 16898, + "end": 16907, + "loc": { + "start": { + "line": 486, + "column": 25 + }, + "end": { + "line": 486, + "column": 34 + }, + "identifierName": "utilities" + }, + "name": "utilities" + }, + "computed": false, + "leadingComments": null + }, + "property": { + "type": "Identifier", + "start": 16908, + "end": 16920, + "loc": { + "start": { + "line": 486, + "column": 35 + }, + "end": { + "line": 486, + "column": 47 + }, + "identifierName": "countInArray" + }, + "name": "countInArray" + }, + "computed": false, + "leadingComments": null + }, + "arguments": [ + { + "type": "CallExpression", + "start": 16921, + "end": 16943, + "loc": { + "start": { + "line": 486, + "column": 48 + }, + "end": { + "line": 486, + "column": 70 + } + }, + "callee": { + "type": "MemberExpression", + "start": 16921, + "end": 16938, + "loc": { + "start": { + "line": 486, + "column": 48 + }, + "end": { + "line": 486, + "column": 65 + } + }, + "object": { + "type": "Identifier", + "start": 16921, + "end": 16932, + "loc": { + "start": { + "line": 486, + "column": 48 + }, + "end": { + "line": 486, + "column": 59 + }, + "identifierName": "themeParsed" + }, + "name": "themeParsed" + }, + "property": { + "type": "Identifier", + "start": 16933, + "end": 16938, + "loc": { + "start": { + "line": 486, + "column": 60 + }, + "end": { + "line": 486, + "column": 65 + }, + "identifierName": "split" + }, + "name": "split" + }, + "computed": false + }, + "arguments": [ + { + "type": "StringLiteral", + "start": 16939, + "end": 16942, + "loc": { + "start": { + "line": 486, + "column": 66 + }, + "end": { + "line": 486, + "column": 69 + } + }, + "extra": { + "rawValue": " ", + "raw": "\" \"" + }, + "value": " " + } + ] + }, + { + "type": "MemberExpression", + "start": 16945, + "end": 16959, + "loc": { + "start": { + "line": 486, + "column": 72 + }, + "end": { + "line": 486, + "column": 86 + } + }, + "object": { + "type": "Identifier", + "start": 16945, + "end": 16953, + "loc": { + "start": { + "line": 486, + "column": 72 + }, + "end": { + "line": 486, + "column": 80 + }, + "identifierName": "themeObj" + }, + "name": "themeObj" + }, + "property": { + "type": "Identifier", + "start": 16954, + "end": 16959, + "loc": { + "start": { + "line": 486, + "column": 81 + }, + "end": { + "line": 486, + "column": 86 + }, + "identifierName": "class" + }, + "name": "class" + }, + "computed": false + } + ], + "leadingComments": null + }, + "extra": { + "parenthesizedArgument": false + }, + "leadingComments": null + }, + "consequent": { + "type": "BlockStatement", + "start": 16961, + "end": 17070, + "loc": { + "start": { + "line": 486, + "column": 88 + }, + "end": { + "line": 488, + "column": 17 + } + }, + "body": [ + { + "type": "ExpressionStatement", + "start": 16982, + "end": 17051, + "loc": { + "start": { + "line": 487, + "column": 18 + }, + "end": { + "line": 487, + "column": 87 + } + }, + "expression": { + "type": "AssignmentExpression", + "start": 16982, + "end": 17050, + "loc": { + "start": { + "line": 487, + "column": 18 + }, + "end": { + "line": 487, + "column": 86 + } + }, + "operator": "=", + "left": { + "type": "MemberExpression", + "start": 16982, + "end": 17013, + "loc": { + "start": { + "line": 487, + "column": 18 + }, + "end": { + "line": 487, + "column": 49 + } + }, + "object": { + "type": "Identifier", + "start": 16982, + "end": 17000, + "loc": { + "start": { + "line": 487, + "column": 18 + }, + "end": { + "line": 487, + "column": 36 + }, + "identifierName": "buttonThemesParsed" + }, + "name": "buttonThemesParsed" + }, + "property": { + "type": "Identifier", + "start": 17001, + "end": 17012, + "loc": { + "start": { + "line": 487, + "column": 37 + }, + "end": { + "line": 487, + "column": 48 + }, + "identifierName": "themeButton" + }, + "name": "themeButton" + }, + "computed": true + }, + "right": { + "type": "TemplateLiteral", + "start": 17016, + "end": 17050, + "loc": { + "start": { + "line": 487, + "column": 52 + }, + "end": { + "line": 487, + "column": 86 + } + }, + "expressions": [ + { + "type": "Identifier", + "start": 17019, + "end": 17030, + "loc": { + "start": { + "line": 487, + "column": 55 + }, + "end": { + "line": 487, + "column": 66 + }, + "identifierName": "themeParsed" + }, + "name": "themeParsed" + }, + { + "type": "MemberExpression", + "start": 17034, + "end": 17048, + "loc": { + "start": { + "line": 487, + "column": 70 + }, + "end": { + "line": 487, + "column": 84 + } + }, + "object": { + "type": "Identifier", + "start": 17034, + "end": 17042, + "loc": { + "start": { + "line": 487, + "column": 70 + }, + "end": { + "line": 487, + "column": 78 + }, + "identifierName": "themeObj" + }, + "name": "themeObj" + }, + "property": { + "type": "Identifier", + "start": 17043, + "end": 17048, + "loc": { + "start": { + "line": 487, + "column": 79 + }, + "end": { + "line": 487, + "column": 84 + }, + "identifierName": "class" + }, + "name": "class" + }, + "computed": false + } + ], + "quasis": [ + { + "type": "TemplateElement", + "start": 17017, + "end": 17017, + "loc": { + "start": { + "line": 487, + "column": 53 + }, + "end": { + "line": 487, + "column": 53 + } + }, + "value": { + "raw": "", + "cooked": "" + }, + "tail": false + }, + { + "type": "TemplateElement", + "start": 17031, + "end": 17032, + "loc": { + "start": { + "line": 487, + "column": 67 + }, + "end": { + "line": 487, + "column": 68 + } + }, + "value": { + "raw": " ", + "cooked": " " + }, + "tail": false + }, + { + "type": "TemplateElement", + "start": 17049, + "end": 17049, + "loc": { + "start": { + "line": 487, + "column": 85 + }, + "end": { + "line": 487, + "column": 85 + } + }, + "value": { + "raw": "", + "cooked": "" + }, + "tail": true + } + ] + } + } + } + ], + "directives": [] + }, + "alternate": null, + "leadingComments": [ + { + "type": "CommentLine", + "value": " Making sure we don't add duplicate classes, even when buttonTheme has duplicates", + "start": 16788, + "end": 16871, + "loc": { + "start": { + "line": 485, + "column": 16 + }, + "end": { + "line": 485, + "column": 99 + } + } + } + ] + } + ], + "directives": [] + }, + "alternate": { + "type": "BlockStatement", + "start": 17093, + "end": 17178, + "loc": { + "start": { + "line": 489, + "column": 21 + }, + "end": { + "line": 491, + "column": 15 + } + }, + "body": [ + { + "type": "ExpressionStatement", + "start": 17112, + "end": 17161, + "loc": { + "start": { + "line": 490, + "column": 16 + }, + "end": { + "line": 490, + "column": 65 + } + }, + "expression": { + "type": "AssignmentExpression", + "start": 17112, + "end": 17160, + "loc": { + "start": { + "line": 490, + "column": 16 + }, + "end": { + "line": 490, + "column": 64 + } + }, + "operator": "=", + "left": { + "type": "MemberExpression", + "start": 17112, + "end": 17143, + "loc": { + "start": { + "line": 490, + "column": 16 + }, + "end": { + "line": 490, + "column": 47 + } + }, + "object": { + "type": "Identifier", + "start": 17112, + "end": 17130, + "loc": { + "start": { + "line": 490, + "column": 16 + }, + "end": { + "line": 490, + "column": 34 + }, + "identifierName": "buttonThemesParsed" + }, + "name": "buttonThemesParsed" + }, + "property": { + "type": "Identifier", + "start": 17131, + "end": 17142, + "loc": { + "start": { + "line": 490, + "column": 35 + }, + "end": { + "line": 490, + "column": 46 + }, + "identifierName": "themeButton" + }, + "name": "themeButton" + }, + "computed": true + }, + "right": { + "type": "MemberExpression", + "start": 17146, + "end": 17160, + "loc": { + "start": { + "line": 490, + "column": 50 + }, + "end": { + "line": 490, + "column": 64 + } + }, + "object": { + "type": "Identifier", + "start": 17146, + "end": 17154, + "loc": { + "start": { + "line": 490, + "column": 50 + }, + "end": { + "line": 490, + "column": 58 + }, + "identifierName": "themeObj" + }, + "name": "themeObj" + }, + "property": { + "type": "Identifier", + "start": 17155, + "end": 17160, + "loc": { + "start": { + "line": 490, + "column": 59 + }, + "end": { + "line": 490, + "column": 64 + }, + "identifierName": "class" + }, + "name": "class" + }, + "computed": false + } + } + } + ], + "directives": [] + }, + "leadingComments": [ + { + "type": "CommentLine", + "value": " If the button has already been added", + "start": 16699, + "end": 16738, + "loc": { + "start": { + "line": 483, + "column": 14 + }, + "end": { + "line": 483, + "column": 53 + } + } + } + ] + } + ], + "directives": [] + } + } + ] + } + } + ], + "directives": [] + }, + "alternate": null + } + ], + "directives": [] + }, + "alternate": { + "type": "BlockStatement", + "start": 17225, + "end": 17353, + "loc": { + "start": { + "line": 494, + "column": 15 + }, + "end": { + "line": 496, + "column": 9 + } + }, + "body": [ + { + "type": "ExpressionStatement", + "start": 17238, + "end": 17342, + "loc": { + "start": { + "line": 495, + "column": 10 + }, + "end": { + "line": 495, + "column": 114 + } + }, + "expression": { + "type": "CallExpression", + "start": 17238, + "end": 17342, + "loc": { + "start": { + "line": 495, + "column": 10 + }, + "end": { + "line": 495, + "column": 114 + } + }, + "callee": { + "type": "MemberExpression", + "start": 17238, + "end": 17250, + "loc": { + "start": { + "line": 495, + "column": 10 + }, + "end": { + "line": 495, + "column": 22 + } + }, + "object": { + "type": "Identifier", + "start": 17238, + "end": 17245, + "loc": { + "start": { + "line": 495, + "column": 10 + }, + "end": { + "line": 495, + "column": 17 + }, + "identifierName": "console" + }, + "name": "console" + }, + "property": { + "type": "Identifier", + "start": 17246, + "end": 17250, + "loc": { + "start": { + "line": 495, + "column": 18 + }, + "end": { + "line": 495, + "column": 22 + }, + "identifierName": "warn" + }, + "name": "warn" + }, + "computed": false + }, + "arguments": [ + { + "type": "TemplateLiteral", + "start": 17251, + "end": 17341, + "loc": { + "start": { + "line": 495, + "column": 23 + }, + "end": { + "line": 495, + "column": 113 + } + }, + "expressions": [], + "quasis": [ + { + "type": "TemplateElement", + "start": 17252, + "end": 17340, + "loc": { + "start": { + "line": 495, + "column": 24 + }, + "end": { + "line": 495, + "column": 112 + } + }, + "value": { + "raw": "buttonTheme row is missing the \"buttons\" or the \"class\". Please check the documentation.", + "cooked": "buttonTheme row is missing the \"buttons\" or the \"class\". Please check the documentation." + }, + "tail": true + } + ] + } + ] + } + } + ], + "directives": [] + } + } + ], + "directives": [] + } + } + ] + } + } + ], + "directives": [], + "trailingComments": null + }, + "alternate": null, + "trailingComments": [ + { + "type": "CommentBlock", + "value": "*\r\n * Adding themeClass, layoutClass to keyboardDOM\r\n ", + "start": 17379, + "end": 17445, + "loc": { + "start": { + "line": 500, + "column": 4 + }, + "end": { + "line": 502, + "column": 7 + } + } + } + ] + }, + { + "type": "ExpressionStatement", + "start": 17451, + "end": 17521, + "loc": { + "start": { + "line": 503, + "column": 4 + }, + "end": { + "line": 503, + "column": 74 + } + }, + "expression": { + "type": "AssignmentExpression", + "start": 17451, + "end": 17520, + "loc": { + "start": { + "line": 503, + "column": 4 + }, + "end": { + "line": 503, + "column": 73 + } + }, + "operator": "+=", + "left": { + "type": "MemberExpression", + "start": 17451, + "end": 17477, + "loc": { + "start": { + "line": 503, + "column": 4 + }, + "end": { + "line": 503, + "column": 30 + } + }, + "object": { + "type": "MemberExpression", + "start": 17451, + "end": 17467, + "loc": { + "start": { + "line": 503, + "column": 4 + }, + "end": { + "line": 503, + "column": 20 + } + }, + "object": { + "type": "ThisExpression", + "start": 17451, + "end": 17455, + "loc": { + "start": { + "line": 503, + "column": 4 + }, + "end": { + "line": 503, + "column": 8 + } + }, + "leadingComments": null + }, + "property": { + "type": "Identifier", + "start": 17456, + "end": 17467, + "loc": { + "start": { + "line": 503, + "column": 9 + }, + "end": { + "line": 503, + "column": 20 + }, + "identifierName": "keyboardDOM" + }, + "name": "keyboardDOM" + }, + "computed": false, + "leadingComments": null + }, + "property": { + "type": "Identifier", + "start": 17468, + "end": 17477, + "loc": { + "start": { + "line": 503, + "column": 21 + }, + "end": { + "line": 503, + "column": 30 + }, + "identifierName": "className" + }, + "name": "className" + }, + "computed": false, + "leadingComments": null + }, + "right": { + "type": "TemplateLiteral", + "start": 17481, + "end": 17520, + "loc": { + "start": { + "line": 503, + "column": 34 + }, + "end": { + "line": 503, + "column": 73 + } + }, + "expressions": [ + { + "type": "MemberExpression", + "start": 17485, + "end": 17503, + "loc": { + "start": { + "line": 503, + "column": 38 + }, + "end": { + "line": 503, + "column": 56 + } + }, + "object": { + "type": "MemberExpression", + "start": 17485, + "end": 17497, + "loc": { + "start": { + "line": 503, + "column": 38 + }, + "end": { + "line": 503, + "column": 50 + } + }, + "object": { + "type": "ThisExpression", + "start": 17485, + "end": 17489, + "loc": { + "start": { + "line": 503, + "column": 38 + }, + "end": { + "line": 503, + "column": 42 + } + } + }, + "property": { + "type": "Identifier", + "start": 17490, + "end": 17497, + "loc": { + "start": { + "line": 503, + "column": 43 + }, + "end": { + "line": 503, + "column": 50 + }, + "identifierName": "options" + }, + "name": "options" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 17498, + "end": 17503, + "loc": { + "start": { + "line": 503, + "column": 51 + }, + "end": { + "line": 503, + "column": 56 + }, + "identifierName": "theme" + }, + "name": "theme" + }, + "computed": false + }, + { + "type": "Identifier", + "start": 17507, + "end": 17518, + "loc": { + "start": { + "line": 503, + "column": 60 + }, + "end": { + "line": 503, + "column": 71 + }, + "identifierName": "layoutClass" + }, + "name": "layoutClass" + } + ], + "quasis": [ + { + "type": "TemplateElement", + "start": 17482, + "end": 17483, + "loc": { + "start": { + "line": 503, + "column": 35 + }, + "end": { + "line": 503, + "column": 36 + } + }, + "value": { + "raw": " ", + "cooked": " " + }, + "tail": false + }, + { + "type": "TemplateElement", + "start": 17504, + "end": 17505, + "loc": { + "start": { + "line": 503, + "column": 57 + }, + "end": { + "line": 503, + "column": 58 + } + }, + "value": { + "raw": " ", + "cooked": " " + }, + "tail": false + }, + { + "type": "TemplateElement", + "start": 17519, + "end": 17519, + "loc": { + "start": { + "line": 503, + "column": 72 + }, + "end": { + "line": 503, + "column": 72 + } + }, + "value": { + "raw": "", + "cooked": "" + }, + "tail": true + } + ] + }, + "leadingComments": null + }, + "leadingComments": [ + { + "type": "CommentBlock", + "value": "*\r\n * Adding themeClass, layoutClass to keyboardDOM\r\n ", + "start": 17379, + "end": 17445, + "loc": { + "start": { + "line": 500, + "column": 4 + }, + "end": { + "line": 502, + "column": 7 + } + } + } + ], + "trailingComments": [ + { + "type": "CommentBlock", + "value": "*\r\n * Iterating through each row\r\n ", + "start": 17529, + "end": 17576, + "loc": { + "start": { + "line": 505, + "column": 4 + }, + "end": { + "line": 507, + "column": 7 + } + } + } + ] + }, + { + "type": "ExpressionStatement", + "start": 17582, + "end": 19699, + "loc": { + "start": { + "line": 508, + "column": 4 + }, + "end": { + "line": 575, + "column": 7 + } + }, + "expression": { + "type": "CallExpression", + "start": 17582, + "end": 19698, + "loc": { + "start": { + "line": 508, + "column": 4 + }, + "end": { + "line": 575, + "column": 6 + } + }, + "callee": { + "type": "MemberExpression", + "start": 17582, + "end": 17621, + "loc": { + "start": { + "line": 508, + "column": 4 + }, + "end": { + "line": 508, + "column": 43 + } + }, + "object": { + "type": "MemberExpression", + "start": 17582, + "end": 17613, + "loc": { + "start": { + "line": 508, + "column": 4 + }, + "end": { + "line": 508, + "column": 35 + } + }, + "object": { + "type": "Identifier", + "start": 17582, + "end": 17588, + "loc": { + "start": { + "line": 508, + "column": 4 + }, + "end": { + "line": 508, + "column": 10 + }, + "identifierName": "layout" + }, + "name": "layout", + "leadingComments": null + }, + "property": { + "type": "MemberExpression", + "start": 17589, + "end": 17612, + "loc": { + "start": { + "line": 508, + "column": 11 + }, + "end": { + "line": 508, + "column": 34 + } + }, + "object": { + "type": "MemberExpression", + "start": 17589, + "end": 17601, + "loc": { + "start": { + "line": 508, + "column": 11 + }, + "end": { + "line": 508, + "column": 23 + } + }, + "object": { + "type": "ThisExpression", + "start": 17589, + "end": 17593, + "loc": { + "start": { + "line": 508, + "column": 11 + }, + "end": { + "line": 508, + "column": 15 + } + } + }, + "property": { + "type": "Identifier", + "start": 17594, + "end": 17601, + "loc": { + "start": { + "line": 508, + "column": 16 + }, + "end": { + "line": 508, + "column": 23 + }, + "identifierName": "options" + }, + "name": "options" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 17602, + "end": 17612, + "loc": { + "start": { + "line": 508, + "column": 24 + }, + "end": { + "line": 508, + "column": 34 + }, + "identifierName": "layoutName" + }, + "name": "layoutName" + }, + "computed": false + }, + "computed": true, + "leadingComments": null + }, + "property": { + "type": "Identifier", + "start": 17614, + "end": 17621, + "loc": { + "start": { + "line": 508, + "column": 36 + }, + "end": { + "line": 508, + "column": 43 + }, + "identifierName": "forEach" + }, + "name": "forEach" + }, + "computed": false, + "leadingComments": null + }, + "arguments": [ + { + "type": "ArrowFunctionExpression", + "start": 17622, + "end": 19697, + "loc": { + "start": { + "line": 508, + "column": 44 + }, + "end": { + "line": 575, + "column": 5 + } + }, + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 17623, + "end": 17626, + "loc": { + "start": { + "line": 508, + "column": 45 + }, + "end": { + "line": 508, + "column": 48 + }, + "identifierName": "row" + }, + "name": "row" + }, + { + "type": "Identifier", + "start": 17628, + "end": 17634, + "loc": { + "start": { + "line": 508, + "column": 50 + }, + "end": { + "line": 508, + "column": 56 + }, + "identifierName": "rIndex" + }, + "name": "rIndex" + } + ], + "body": { + "type": "BlockStatement", + "start": 17639, + "end": 19697, + "loc": { + "start": { + "line": 508, + "column": 61 + }, + "end": { + "line": 575, + "column": 5 + } + }, + "body": [ + { + "type": "VariableDeclaration", + "start": 17648, + "end": 17678, + "loc": { + "start": { + "line": 509, + "column": 6 + }, + "end": { + "line": 509, + "column": 36 + } + }, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 17652, + "end": 17677, + "loc": { + "start": { + "line": 509, + "column": 10 + }, + "end": { + "line": 509, + "column": 35 + } + }, + "id": { + "type": "Identifier", + "start": 17652, + "end": 17660, + "loc": { + "start": { + "line": 509, + "column": 10 + }, + "end": { + "line": 509, + "column": 18 + }, + "identifierName": "rowArray" + }, + "name": "rowArray" + }, + "init": { + "type": "CallExpression", + "start": 17663, + "end": 17677, + "loc": { + "start": { + "line": 509, + "column": 21 + }, + "end": { + "line": 509, + "column": 35 + } + }, + "callee": { + "type": "MemberExpression", + "start": 17663, + "end": 17672, + "loc": { + "start": { + "line": 509, + "column": 21 + }, + "end": { + "line": 509, + "column": 30 + } + }, + "object": { + "type": "Identifier", + "start": 17663, + "end": 17666, + "loc": { + "start": { + "line": 509, + "column": 21 + }, + "end": { + "line": 509, + "column": 24 + }, + "identifierName": "row" + }, + "name": "row" + }, + "property": { + "type": "Identifier", + "start": 17667, + "end": 17672, + "loc": { + "start": { + "line": 509, + "column": 25 + }, + "end": { + "line": 509, + "column": 30 + }, + "identifierName": "split" + }, + "name": "split" + }, + "computed": false + }, + "arguments": [ + { + "type": "StringLiteral", + "start": 17673, + "end": 17676, + "loc": { + "start": { + "line": 509, + "column": 31 + }, + "end": { + "line": 509, + "column": 34 + } + }, + "extra": { + "rawValue": " ", + "raw": "' '" + }, + "value": " " + } + ] + } + } + ], + "kind": "let", + "trailingComments": [ + { + "type": "CommentBlock", + "value": "*\r\n * Creating empty row\r\n ", + "start": 17688, + "end": 17731, + "loc": { + "start": { + "line": 511, + "column": 6 + }, + "end": { + "line": 513, + "column": 9 + } + } + } + ] + }, + { + "type": "VariableDeclaration", + "start": 17739, + "end": 17782, + "loc": { + "start": { + "line": 514, + "column": 6 + }, + "end": { + "line": 514, + "column": 49 + } + }, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 17743, + "end": 17781, + "loc": { + "start": { + "line": 514, + "column": 10 + }, + "end": { + "line": 514, + "column": 48 + } + }, + "id": { + "type": "Identifier", + "start": 17743, + "end": 17749, + "loc": { + "start": { + "line": 514, + "column": 10 + }, + "end": { + "line": 514, + "column": 16 + }, + "identifierName": "rowDOM" + }, + "name": "rowDOM", + "leadingComments": null + }, + "init": { + "type": "CallExpression", + "start": 17752, + "end": 17781, + "loc": { + "start": { + "line": 514, + "column": 19 + }, + "end": { + "line": 514, + "column": 48 + } + }, + "callee": { + "type": "MemberExpression", + "start": 17752, + "end": 17774, + "loc": { + "start": { + "line": 514, + "column": 19 + }, + "end": { + "line": 514, + "column": 41 + } + }, + "object": { + "type": "Identifier", + "start": 17752, + "end": 17760, + "loc": { + "start": { + "line": 514, + "column": 19 + }, + "end": { + "line": 514, + "column": 27 + }, + "identifierName": "document" + }, + "name": "document" + }, + "property": { + "type": "Identifier", + "start": 17761, + "end": 17774, + "loc": { + "start": { + "line": 514, + "column": 28 + }, + "end": { + "line": 514, + "column": 41 + }, + "identifierName": "createElement" + }, + "name": "createElement" + }, + "computed": false + }, + "arguments": [ + { + "type": "StringLiteral", + "start": 17775, + "end": 17780, + "loc": { + "start": { + "line": 514, + "column": 42 + }, + "end": { + "line": 514, + "column": 47 + } + }, + "extra": { + "rawValue": "div", + "raw": "'div'" + }, + "value": "div" + } + ] + }, + "leadingComments": null + } + ], + "kind": "var", + "leadingComments": [ + { + "type": "CommentBlock", + "value": "*\r\n * Creating empty row\r\n ", + "start": 17688, + "end": 17731, + "loc": { + "start": { + "line": 511, + "column": 6 + }, + "end": { + "line": 513, + "column": 9 + } + } + } + ] + }, + { + "type": "ExpressionStatement", + "start": 17790, + "end": 17819, + "loc": { + "start": { + "line": 515, + "column": 6 + }, + "end": { + "line": 515, + "column": 35 + } + }, + "expression": { + "type": "AssignmentExpression", + "start": 17790, + "end": 17818, + "loc": { + "start": { + "line": 515, + "column": 6 + }, + "end": { + "line": 515, + "column": 34 + } + }, + "operator": "+=", + "left": { + "type": "MemberExpression", + "start": 17790, + "end": 17806, + "loc": { + "start": { + "line": 515, + "column": 6 + }, + "end": { + "line": 515, + "column": 22 + } + }, + "object": { + "type": "Identifier", + "start": 17790, + "end": 17796, + "loc": { + "start": { + "line": 515, + "column": 6 + }, + "end": { + "line": 515, + "column": 12 + }, + "identifierName": "rowDOM" + }, + "name": "rowDOM" + }, + "property": { + "type": "Identifier", + "start": 17797, + "end": 17806, + "loc": { + "start": { + "line": 515, + "column": 13 + }, + "end": { + "line": 515, + "column": 22 + }, + "identifierName": "className" + }, + "name": "className" + }, + "computed": false + }, + "right": { + "type": "StringLiteral", + "start": 17810, + "end": 17818, + "loc": { + "start": { + "line": 515, + "column": 26 + }, + "end": { + "line": 515, + "column": 34 + } + }, + "extra": { + "rawValue": "hg-row", + "raw": "\"hg-row\"" + }, + "value": "hg-row" + } + }, + "trailingComments": [ + { + "type": "CommentBlock", + "value": "*\r\n * Iterating through each button in row\r\n ", + "start": 17829, + "end": 17890, + "loc": { + "start": { + "line": 517, + "column": 6 + }, + "end": { + "line": 519, + "column": 9 + } + } + } + ] + }, + { + "type": "ExpressionStatement", + "start": 17898, + "end": 19585, + "loc": { + "start": { + "line": 520, + "column": 6 + }, + "end": { + "line": 569, + "column": 9 + } + }, + "expression": { + "type": "CallExpression", + "start": 17898, + "end": 19584, + "loc": { + "start": { + "line": 520, + "column": 6 + }, + "end": { + "line": 569, + "column": 8 + } + }, + "callee": { + "type": "MemberExpression", + "start": 17898, + "end": 17914, + "loc": { + "start": { + "line": 520, + "column": 6 + }, + "end": { + "line": 520, + "column": 22 + } + }, + "object": { + "type": "Identifier", + "start": 17898, + "end": 17906, + "loc": { + "start": { + "line": 520, + "column": 6 + }, + "end": { + "line": 520, + "column": 14 + }, + "identifierName": "rowArray" + }, + "name": "rowArray", + "leadingComments": null + }, + "property": { + "type": "Identifier", + "start": 17907, + "end": 17914, + "loc": { + "start": { + "line": 520, + "column": 15 + }, + "end": { + "line": 520, + "column": 22 + }, + "identifierName": "forEach" + }, + "name": "forEach" + }, + "computed": false, + "leadingComments": null + }, + "arguments": [ + { + "type": "ArrowFunctionExpression", + "start": 17915, + "end": 19583, + "loc": { + "start": { + "line": 520, + "column": 23 + }, + "end": { + "line": 569, + "column": 7 + } + }, + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 17916, + "end": 17922, + "loc": { + "start": { + "line": 520, + "column": 24 + }, + "end": { + "line": 520, + "column": 30 + }, + "identifierName": "button" + }, + "name": "button" + }, + { + "type": "Identifier", + "start": 17924, + "end": 17930, + "loc": { + "start": { + "line": 520, + "column": 32 + }, + "end": { + "line": 520, + "column": 38 + }, + "identifierName": "bIndex" + }, + "name": "bIndex" + } + ], + "body": { + "type": "BlockStatement", + "start": 17935, + "end": 19583, + "loc": { + "start": { + "line": 520, + "column": 43 + }, + "end": { + "line": 569, + "column": 7 + } + }, + "body": [ + { + "type": "VariableDeclaration", + "start": 17946, + "end": 18002, + "loc": { + "start": { + "line": 521, + "column": 8 + }, + "end": { + "line": 521, + "column": 64 + } + }, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 17950, + "end": 18001, + "loc": { + "start": { + "line": 521, + "column": 12 + }, + "end": { + "line": 521, + "column": 63 + } + }, + "id": { + "type": "Identifier", + "start": 17950, + "end": 17961, + "loc": { + "start": { + "line": 521, + "column": 12 + }, + "end": { + "line": 521, + "column": 23 + }, + "identifierName": "fctBtnClass" + }, + "name": "fctBtnClass" + }, + "init": { + "type": "CallExpression", + "start": 17964, + "end": 18001, + "loc": { + "start": { + "line": 521, + "column": 26 + }, + "end": { + "line": 521, + "column": 63 + } + }, + "callee": { + "type": "MemberExpression", + "start": 17964, + "end": 17993, + "loc": { + "start": { + "line": 521, + "column": 26 + }, + "end": { + "line": 521, + "column": 55 + } + }, + "object": { + "type": "MemberExpression", + "start": 17964, + "end": 17978, + "loc": { + "start": { + "line": 521, + "column": 26 + }, + "end": { + "line": 521, + "column": 40 + } + }, + "object": { + "type": "ThisExpression", + "start": 17964, + "end": 17968, + "loc": { + "start": { + "line": 521, + "column": 26 + }, + "end": { + "line": 521, + "column": 30 + } + } + }, + "property": { + "type": "Identifier", + "start": 17969, + "end": 17978, + "loc": { + "start": { + "line": 521, + "column": 31 + }, + "end": { + "line": 521, + "column": 40 + }, + "identifierName": "utilities" + }, + "name": "utilities" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 17979, + "end": 17993, + "loc": { + "start": { + "line": 521, + "column": 41 + }, + "end": { + "line": 521, + "column": 55 + }, + "identifierName": "getButtonClass" + }, + "name": "getButtonClass" + }, + "computed": false + }, + "arguments": [ + { + "type": "Identifier", + "start": 17994, + "end": 18000, + "loc": { + "start": { + "line": 521, + "column": 56 + }, + "end": { + "line": 521, + "column": 62 + }, + "identifierName": "button" + }, + "name": "button" + } + ] + } + } + ], + "kind": "let" + }, + { + "type": "VariableDeclaration", + "start": 18012, + "end": 18062, + "loc": { + "start": { + "line": 522, + "column": 8 + }, + "end": { + "line": 522, + "column": 58 + } + }, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 18016, + "end": 18061, + "loc": { + "start": { + "line": 522, + "column": 12 + }, + "end": { + "line": 522, + "column": 57 + } + }, + "id": { + "type": "Identifier", + "start": 18016, + "end": 18032, + "loc": { + "start": { + "line": 522, + "column": 12 + }, + "end": { + "line": 522, + "column": 28 + }, + "identifierName": "buttonThemeClass" + }, + "name": "buttonThemeClass" + }, + "init": { + "type": "MemberExpression", + "start": 18035, + "end": 18061, + "loc": { + "start": { + "line": 522, + "column": 31 + }, + "end": { + "line": 522, + "column": 57 + } + }, + "object": { + "type": "Identifier", + "start": 18035, + "end": 18053, + "loc": { + "start": { + "line": 522, + "column": 31 + }, + "end": { + "line": 522, + "column": 49 + }, + "identifierName": "buttonThemesParsed" + }, + "name": "buttonThemesParsed" + }, + "property": { + "type": "Identifier", + "start": 18054, + "end": 18060, + "loc": { + "start": { + "line": 522, + "column": 50 + }, + "end": { + "line": 522, + "column": 56 + }, + "identifierName": "button" + }, + "name": "button" + }, + "computed": true + } + } + ], + "kind": "let" + }, + { + "type": "VariableDeclaration", + "start": 18072, + "end": 18189, + "loc": { + "start": { + "line": 523, + "column": 8 + }, + "end": { + "line": 523, + "column": 125 + } + }, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 18076, + "end": 18188, + "loc": { + "start": { + "line": 523, + "column": 12 + }, + "end": { + "line": 523, + "column": 124 + } + }, + "id": { + "type": "Identifier", + "start": 18076, + "end": 18093, + "loc": { + "start": { + "line": 523, + "column": 12 + }, + "end": { + "line": 523, + "column": 29 + }, + "identifierName": "buttonDisplayName" + }, + "name": "buttonDisplayName" + }, + "init": { + "type": "CallExpression", + "start": 18096, + "end": 18188, + "loc": { + "start": { + "line": 523, + "column": 32 + }, + "end": { + "line": 523, + "column": 124 + } + }, + "callee": { + "type": "MemberExpression", + "start": 18096, + "end": 18131, + "loc": { + "start": { + "line": 523, + "column": 32 + }, + "end": { + "line": 523, + "column": 67 + } + }, + "object": { + "type": "MemberExpression", + "start": 18096, + "end": 18110, + "loc": { + "start": { + "line": 523, + "column": 32 + }, + "end": { + "line": 523, + "column": 46 + } + }, + "object": { + "type": "ThisExpression", + "start": 18096, + "end": 18100, + "loc": { + "start": { + "line": 523, + "column": 32 + }, + "end": { + "line": 523, + "column": 36 + } + } + }, + "property": { + "type": "Identifier", + "start": 18101, + "end": 18110, + "loc": { + "start": { + "line": 523, + "column": 37 + }, + "end": { + "line": 523, + "column": 46 + }, + "identifierName": "utilities" + }, + "name": "utilities" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 18111, + "end": 18131, + "loc": { + "start": { + "line": 523, + "column": 47 + }, + "end": { + "line": 523, + "column": 67 + }, + "identifierName": "getButtonDisplayName" + }, + "name": "getButtonDisplayName" + }, + "computed": false + }, + "arguments": [ + { + "type": "Identifier", + "start": 18132, + "end": 18138, + "loc": { + "start": { + "line": 523, + "column": 68 + }, + "end": { + "line": 523, + "column": 74 + }, + "identifierName": "button" + }, + "name": "button" + }, + { + "type": "MemberExpression", + "start": 18140, + "end": 18160, + "loc": { + "start": { + "line": 523, + "column": 76 + }, + "end": { + "line": 523, + "column": 96 + } + }, + "object": { + "type": "MemberExpression", + "start": 18140, + "end": 18152, + "loc": { + "start": { + "line": 523, + "column": 76 + }, + "end": { + "line": 523, + "column": 88 + } + }, + "object": { + "type": "ThisExpression", + "start": 18140, + "end": 18144, + "loc": { + "start": { + "line": 523, + "column": 76 + }, + "end": { + "line": 523, + "column": 80 + } + } + }, + "property": { + "type": "Identifier", + "start": 18145, + "end": 18152, + "loc": { + "start": { + "line": 523, + "column": 81 + }, + "end": { + "line": 523, + "column": 88 + }, + "identifierName": "options" + }, + "name": "options" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 18153, + "end": 18160, + "loc": { + "start": { + "line": 523, + "column": 89 + }, + "end": { + "line": 523, + "column": 96 + }, + "identifierName": "display" + }, + "name": "display" + }, + "computed": false + }, + { + "type": "MemberExpression", + "start": 18162, + "end": 18187, + "loc": { + "start": { + "line": 523, + "column": 98 + }, + "end": { + "line": 523, + "column": 123 + } + }, + "object": { + "type": "MemberExpression", + "start": 18162, + "end": 18174, + "loc": { + "start": { + "line": 523, + "column": 98 + }, + "end": { + "line": 523, + "column": 110 + } + }, + "object": { + "type": "ThisExpression", + "start": 18162, + "end": 18166, + "loc": { + "start": { + "line": 523, + "column": 98 + }, + "end": { + "line": 523, + "column": 102 + } + } + }, + "property": { + "type": "Identifier", + "start": 18167, + "end": 18174, + "loc": { + "start": { + "line": 523, + "column": 103 + }, + "end": { + "line": 523, + "column": 110 + }, + "identifierName": "options" + }, + "name": "options" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 18175, + "end": 18187, + "loc": { + "start": { + "line": 523, + "column": 111 + }, + "end": { + "line": 523, + "column": 123 + }, + "identifierName": "mergeDisplay" + }, + "name": "mergeDisplay" + }, + "computed": false + } + ] + } + } + ], + "kind": "let", + "trailingComments": [ + { + "type": "CommentBlock", + "value": "*\r\n * Creating button\r\n ", + "start": 18201, + "end": 18245, + "loc": { + "start": { + "line": 525, + "column": 8 + }, + "end": { + "line": 527, + "column": 11 + } + } + } + ] + }, + { + "type": "VariableDeclaration", + "start": 18255, + "end": 18301, + "loc": { + "start": { + "line": 528, + "column": 8 + }, + "end": { + "line": 528, + "column": 54 + } + }, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 18259, + "end": 18300, + "loc": { + "start": { + "line": 528, + "column": 12 + }, + "end": { + "line": 528, + "column": 53 + } + }, + "id": { + "type": "Identifier", + "start": 18259, + "end": 18268, + "loc": { + "start": { + "line": 528, + "column": 12 + }, + "end": { + "line": 528, + "column": 21 + }, + "identifierName": "buttonDOM" + }, + "name": "buttonDOM", + "leadingComments": null + }, + "init": { + "type": "CallExpression", + "start": 18271, + "end": 18300, + "loc": { + "start": { + "line": 528, + "column": 24 + }, + "end": { + "line": 528, + "column": 53 + } + }, + "callee": { + "type": "MemberExpression", + "start": 18271, + "end": 18293, + "loc": { + "start": { + "line": 528, + "column": 24 + }, + "end": { + "line": 528, + "column": 46 + } + }, + "object": { + "type": "Identifier", + "start": 18271, + "end": 18279, + "loc": { + "start": { + "line": 528, + "column": 24 + }, + "end": { + "line": 528, + "column": 32 + }, + "identifierName": "document" + }, + "name": "document" + }, + "property": { + "type": "Identifier", + "start": 18280, + "end": 18293, + "loc": { + "start": { + "line": 528, + "column": 33 + }, + "end": { + "line": 528, + "column": 46 + }, + "identifierName": "createElement" + }, + "name": "createElement" + }, + "computed": false + }, + "arguments": [ + { + "type": "StringLiteral", + "start": 18294, + "end": 18299, + "loc": { + "start": { + "line": 528, + "column": 47 + }, + "end": { + "line": 528, + "column": 52 + } + }, + "extra": { + "rawValue": "div", + "raw": "'div'" + }, + "value": "div" + } + ] + }, + "leadingComments": null + } + ], + "kind": "var", + "leadingComments": [ + { + "type": "CommentBlock", + "value": "*\r\n * Creating button\r\n ", + "start": 18201, + "end": 18245, + "loc": { + "start": { + "line": 525, + "column": 8 + }, + "end": { + "line": 527, + "column": 11 + } + } + } + ] + }, + { + "type": "ExpressionStatement", + "start": 18311, + "end": 18408, + "loc": { + "start": { + "line": 529, + "column": 8 + }, + "end": { + "line": 529, + "column": 105 + } + }, + "expression": { + "type": "AssignmentExpression", + "start": 18311, + "end": 18407, + "loc": { + "start": { + "line": 529, + "column": 8 + }, + "end": { + "line": 529, + "column": 104 + } + }, + "operator": "+=", + "left": { + "type": "MemberExpression", + "start": 18311, + "end": 18330, + "loc": { + "start": { + "line": 529, + "column": 8 + }, + "end": { + "line": 529, + "column": 27 + } + }, + "object": { + "type": "Identifier", + "start": 18311, + "end": 18320, + "loc": { + "start": { + "line": 529, + "column": 8 + }, + "end": { + "line": 529, + "column": 17 + }, + "identifierName": "buttonDOM" + }, + "name": "buttonDOM" + }, + "property": { + "type": "Identifier", + "start": 18321, + "end": 18330, + "loc": { + "start": { + "line": 529, + "column": 18 + }, + "end": { + "line": 529, + "column": 27 + }, + "identifierName": "className" + }, + "name": "className" + }, + "computed": false + }, + "right": { + "type": "TemplateLiteral", + "start": 18334, + "end": 18407, + "loc": { + "start": { + "line": 529, + "column": 31 + }, + "end": { + "line": 529, + "column": 104 + } + }, + "expressions": [ + { + "type": "Identifier", + "start": 18347, + "end": 18358, + "loc": { + "start": { + "line": 529, + "column": 44 + }, + "end": { + "line": 529, + "column": 55 + }, + "identifierName": "fctBtnClass" + }, + "name": "fctBtnClass" + }, + { + "type": "ConditionalExpression", + "start": 18361, + "end": 18405, + "loc": { + "start": { + "line": 529, + "column": 58 + }, + "end": { + "line": 529, + "column": 102 + } + }, + "test": { + "type": "Identifier", + "start": 18361, + "end": 18377, + "loc": { + "start": { + "line": 529, + "column": 58 + }, + "end": { + "line": 529, + "column": 74 + }, + "identifierName": "buttonThemeClass" + }, + "name": "buttonThemeClass" + }, + "consequent": { + "type": "BinaryExpression", + "start": 18380, + "end": 18400, + "loc": { + "start": { + "line": 529, + "column": 77 + }, + "end": { + "line": 529, + "column": 97 + } + }, + "left": { + "type": "StringLiteral", + "start": 18380, + "end": 18383, + "loc": { + "start": { + "line": 529, + "column": 77 + }, + "end": { + "line": 529, + "column": 80 + } + }, + "extra": { + "rawValue": " ", + "raw": "\" \"" + }, + "value": " " + }, + "operator": "+", + "right": { + "type": "Identifier", + "start": 18384, + "end": 18400, + "loc": { + "start": { + "line": 529, + "column": 81 + }, + "end": { + "line": 529, + "column": 97 + }, + "identifierName": "buttonThemeClass" + }, + "name": "buttonThemeClass" + } + }, + "alternate": { + "type": "StringLiteral", + "start": 18403, + "end": 18405, + "loc": { + "start": { + "line": 529, + "column": 100 + }, + "end": { + "line": 529, + "column": 102 + } + }, + "extra": { + "rawValue": "", + "raw": "\"\"" + }, + "value": "" + } + } + ], + "quasis": [ + { + "type": "TemplateElement", + "start": 18335, + "end": 18345, + "loc": { + "start": { + "line": 529, + "column": 32 + }, + "end": { + "line": 529, + "column": 42 + } + }, + "value": { + "raw": "hg-button ", + "cooked": "hg-button " + }, + "tail": false + }, + { + "type": "TemplateElement", + "start": 18359, + "end": 18359, + "loc": { + "start": { + "line": 529, + "column": 56 + }, + "end": { + "line": 529, + "column": 56 + } + }, + "value": { + "raw": "", + "cooked": "" + }, + "tail": false + }, + { + "type": "TemplateElement", + "start": 18406, + "end": 18406, + "loc": { + "start": { + "line": 529, + "column": 103 + }, + "end": { + "line": 529, + "column": 103 + } + }, + "value": { + "raw": "", + "cooked": "" + }, + "tail": true + } + ] + } + } + }, + { + "type": "ExpressionStatement", + "start": 18418, + "end": 18477, + "loc": { + "start": { + "line": 530, + "column": 8 + }, + "end": { + "line": 530, + "column": 67 + } + }, + "expression": { + "type": "AssignmentExpression", + "start": 18418, + "end": 18476, + "loc": { + "start": { + "line": 530, + "column": 8 + }, + "end": { + "line": 530, + "column": 66 + } + }, + "operator": "=", + "left": { + "type": "MemberExpression", + "start": 18418, + "end": 18435, + "loc": { + "start": { + "line": 530, + "column": 8 + }, + "end": { + "line": 530, + "column": 25 + } + }, + "object": { + "type": "Identifier", + "start": 18418, + "end": 18427, + "loc": { + "start": { + "line": 530, + "column": 8 + }, + "end": { + "line": 530, + "column": 17 + }, + "identifierName": "buttonDOM" + }, + "name": "buttonDOM" + }, + "property": { + "type": "Identifier", + "start": 18428, + "end": 18435, + "loc": { + "start": { + "line": 530, + "column": 18 + }, + "end": { + "line": 530, + "column": 25 + }, + "identifierName": "onclick" + }, + "name": "onclick" + }, + "computed": false + }, + "right": { + "type": "ArrowFunctionExpression", + "start": 18438, + "end": 18476, + "loc": { + "start": { + "line": 530, + "column": 28 + }, + "end": { + "line": 530, + "column": 66 + } + }, + "id": null, + "generator": false, + "expression": true, + "async": false, + "params": [], + "body": { + "type": "CallExpression", + "start": 18444, + "end": 18476, + "loc": { + "start": { + "line": 530, + "column": 34 + }, + "end": { + "line": 530, + "column": 66 + } + }, + "callee": { + "type": "MemberExpression", + "start": 18444, + "end": 18468, + "loc": { + "start": { + "line": 530, + "column": 34 + }, + "end": { + "line": 530, + "column": 58 + } + }, + "object": { + "type": "ThisExpression", + "start": 18444, + "end": 18448, + "loc": { + "start": { + "line": 530, + "column": 34 + }, + "end": { + "line": 530, + "column": 38 + } + } + }, + "property": { + "type": "Identifier", + "start": 18449, + "end": 18468, + "loc": { + "start": { + "line": 530, + "column": 39 + }, + "end": { + "line": 530, + "column": 58 + }, + "identifierName": "handleButtonClicked" + }, + "name": "handleButtonClicked" + }, + "computed": false + }, + "arguments": [ + { + "type": "Identifier", + "start": 18469, + "end": 18475, + "loc": { + "start": { + "line": 530, + "column": 59 + }, + "end": { + "line": 530, + "column": 65 + }, + "identifierName": "button" + }, + "name": "button" + } + ] + } + } + }, + "trailingComments": [ + { + "type": "CommentBlock", + "value": "*\r\n * Adding identifier\r\n ", + "start": 18489, + "end": 18535, + "loc": { + "start": { + "line": 532, + "column": 8 + }, + "end": { + "line": 534, + "column": 11 + } + } + } + ] + }, + { + "type": "ExpressionStatement", + "start": 18545, + "end": 18590, + "loc": { + "start": { + "line": 535, + "column": 8 + }, + "end": { + "line": 535, + "column": 53 + } + }, + "expression": { + "type": "CallExpression", + "start": 18545, + "end": 18589, + "loc": { + "start": { + "line": 535, + "column": 8 + }, + "end": { + "line": 535, + "column": 52 + } + }, + "callee": { + "type": "MemberExpression", + "start": 18545, + "end": 18567, + "loc": { + "start": { + "line": 535, + "column": 8 + }, + "end": { + "line": 535, + "column": 30 + } + }, + "object": { + "type": "Identifier", + "start": 18545, + "end": 18554, + "loc": { + "start": { + "line": 535, + "column": 8 + }, + "end": { + "line": 535, + "column": 17 + }, + "identifierName": "buttonDOM" + }, + "name": "buttonDOM", + "leadingComments": null + }, + "property": { + "type": "Identifier", + "start": 18555, + "end": 18567, + "loc": { + "start": { + "line": 535, + "column": 18 + }, + "end": { + "line": 535, + "column": 30 + }, + "identifierName": "setAttribute" + }, + "name": "setAttribute" + }, + "computed": false, + "leadingComments": null + }, + "arguments": [ + { + "type": "StringLiteral", + "start": 18568, + "end": 18580, + "loc": { + "start": { + "line": 535, + "column": 31 + }, + "end": { + "line": 535, + "column": 43 + } + }, + "extra": { + "rawValue": "data-skBtn", + "raw": "\"data-skBtn\"" + }, + "value": "data-skBtn" + }, + { + "type": "Identifier", + "start": 18582, + "end": 18588, + "loc": { + "start": { + "line": 535, + "column": 45 + }, + "end": { + "line": 535, + "column": 51 + }, + "identifierName": "button" + }, + "name": "button" + } + ], + "leadingComments": null + }, + "leadingComments": [ + { + "type": "CommentBlock", + "value": "*\r\n * Adding identifier\r\n ", + "start": 18489, + "end": 18535, + "loc": { + "start": { + "line": 532, + "column": 8 + }, + "end": { + "line": 534, + "column": 11 + } + } + } + ], + "trailingComments": [ + { + "type": "CommentBlock", + "value": "*\r\n * Adding unique id\r\n * Since there's no limit on spawning same buttons, the unique id ensures you can style every button\r\n ", + "start": 18602, + "end": 18757, + "loc": { + "start": { + "line": 537, + "column": 8 + }, + "end": { + "line": 540, + "column": 11 + } + } + } + ] + }, + { + "type": "VariableDeclaration", + "start": 18767, + "end": 18833, + "loc": { + "start": { + "line": 541, + "column": 8 + }, + "end": { + "line": 541, + "column": 74 + } + }, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 18771, + "end": 18832, + "loc": { + "start": { + "line": 541, + "column": 12 + }, + "end": { + "line": 541, + "column": 73 + } + }, + "id": { + "type": "Identifier", + "start": 18771, + "end": 18780, + "loc": { + "start": { + "line": 541, + "column": 12 + }, + "end": { + "line": 541, + "column": 21 + }, + "identifierName": "buttonUID" + }, + "name": "buttonUID", + "leadingComments": null + }, + "init": { + "type": "TemplateLiteral", + "start": 18783, + "end": 18832, + "loc": { + "start": { + "line": 541, + "column": 24 + }, + "end": { + "line": 541, + "column": 73 + } + }, + "expressions": [ + { + "type": "MemberExpression", + "start": 18786, + "end": 18809, + "loc": { + "start": { + "line": 541, + "column": 27 + }, + "end": { + "line": 541, + "column": 50 + } + }, + "object": { + "type": "MemberExpression", + "start": 18786, + "end": 18798, + "loc": { + "start": { + "line": 541, + "column": 27 + }, + "end": { + "line": 541, + "column": 39 + } + }, + "object": { + "type": "ThisExpression", + "start": 18786, + "end": 18790, + "loc": { + "start": { + "line": 541, + "column": 27 + }, + "end": { + "line": 541, + "column": 31 + } + } + }, + "property": { + "type": "Identifier", + "start": 18791, + "end": 18798, + "loc": { + "start": { + "line": 541, + "column": 32 + }, + "end": { + "line": 541, + "column": 39 + }, + "identifierName": "options" + }, + "name": "options" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 18799, + "end": 18809, + "loc": { + "start": { + "line": 541, + "column": 40 + }, + "end": { + "line": 541, + "column": 50 + }, + "identifierName": "layoutName" + }, + "name": "layoutName" + }, + "computed": false + }, + { + "type": "Identifier", + "start": 18814, + "end": 18820, + "loc": { + "start": { + "line": 541, + "column": 55 + }, + "end": { + "line": 541, + "column": 61 + }, + "identifierName": "rIndex" + }, + "name": "rIndex" + }, + { + "type": "Identifier", + "start": 18824, + "end": 18830, + "loc": { + "start": { + "line": 541, + "column": 65 + }, + "end": { + "line": 541, + "column": 71 + }, + "identifierName": "bIndex" + }, + "name": "bIndex" + } + ], + "quasis": [ + { + "type": "TemplateElement", + "start": 18784, + "end": 18784, + "loc": { + "start": { + "line": 541, + "column": 25 + }, + "end": { + "line": 541, + "column": 25 + } + }, + "value": { + "raw": "", + "cooked": "" + }, + "tail": false + }, + { + "type": "TemplateElement", + "start": 18810, + "end": 18812, + "loc": { + "start": { + "line": 541, + "column": 51 + }, + "end": { + "line": 541, + "column": 53 + } + }, + "value": { + "raw": "-r", + "cooked": "-r" + }, + "tail": false + }, + { + "type": "TemplateElement", + "start": 18821, + "end": 18822, + "loc": { + "start": { + "line": 541, + "column": 62 + }, + "end": { + "line": 541, + "column": 63 + } + }, + "value": { + "raw": "b", + "cooked": "b" + }, + "tail": false + }, + { + "type": "TemplateElement", + "start": 18831, + "end": 18831, + "loc": { + "start": { + "line": 541, + "column": 72 + }, + "end": { + "line": 541, + "column": 72 + } + }, + "value": { + "raw": "", + "cooked": "" + }, + "tail": true + } + ] + }, + "leadingComments": null + } + ], + "kind": "let", + "leadingComments": [ + { + "type": "CommentBlock", + "value": "*\r\n * Adding unique id\r\n * Since there's no limit on spawning same buttons, the unique id ensures you can style every button\r\n ", + "start": 18602, + "end": 18757, + "loc": { + "start": { + "line": 537, + "column": 8 + }, + "end": { + "line": 540, + "column": 11 + } + } + } + ] + }, + { + "type": "ExpressionStatement", + "start": 18843, + "end": 18894, + "loc": { + "start": { + "line": 542, + "column": 8 + }, + "end": { + "line": 542, + "column": 59 + } + }, + "expression": { + "type": "CallExpression", + "start": 18843, + "end": 18893, + "loc": { + "start": { + "line": 542, + "column": 8 + }, + "end": { + "line": 542, + "column": 58 + } + }, + "callee": { + "type": "MemberExpression", + "start": 18843, + "end": 18865, + "loc": { + "start": { + "line": 542, + "column": 8 + }, + "end": { + "line": 542, + "column": 30 + } + }, + "object": { + "type": "Identifier", + "start": 18843, + "end": 18852, + "loc": { + "start": { + "line": 542, + "column": 8 + }, + "end": { + "line": 542, + "column": 17 + }, + "identifierName": "buttonDOM" + }, + "name": "buttonDOM" + }, + "property": { + "type": "Identifier", + "start": 18853, + "end": 18865, + "loc": { + "start": { + "line": 542, + "column": 18 + }, + "end": { + "line": 542, + "column": 30 + }, + "identifierName": "setAttribute" + }, + "name": "setAttribute" + }, + "computed": false + }, + "arguments": [ + { + "type": "StringLiteral", + "start": 18866, + "end": 18881, + "loc": { + "start": { + "line": 542, + "column": 31 + }, + "end": { + "line": 542, + "column": 46 + } + }, + "extra": { + "rawValue": "data-skBtnUID", + "raw": "\"data-skBtnUID\"" + }, + "value": "data-skBtnUID" + }, + { + "type": "Identifier", + "start": 18883, + "end": 18892, + "loc": { + "start": { + "line": 542, + "column": 48 + }, + "end": { + "line": 542, + "column": 57 + }, + "identifierName": "buttonUID" + }, + "name": "buttonUID" + } + ] + }, + "trailingComments": [ + { + "type": "CommentBlock", + "value": "*\r\n * Adding display label\r\n ", + "start": 18906, + "end": 18955, + "loc": { + "start": { + "line": 544, + "column": 8 + }, + "end": { + "line": 546, + "column": 11 + } + } + } + ] + }, + { + "type": "ExpressionStatement", + "start": 18965, + "end": 19028, + "loc": { + "start": { + "line": 547, + "column": 8 + }, + "end": { + "line": 547, + "column": 71 + } + }, + "expression": { + "type": "CallExpression", + "start": 18965, + "end": 19027, + "loc": { + "start": { + "line": 547, + "column": 8 + }, + "end": { + "line": 547, + "column": 70 + } + }, + "callee": { + "type": "MemberExpression", + "start": 18965, + "end": 18987, + "loc": { + "start": { + "line": 547, + "column": 8 + }, + "end": { + "line": 547, + "column": 30 + } + }, + "object": { + "type": "Identifier", + "start": 18965, + "end": 18974, + "loc": { + "start": { + "line": 547, + "column": 8 + }, + "end": { + "line": 547, + "column": 17 + }, + "identifierName": "buttonDOM" + }, + "name": "buttonDOM", + "leadingComments": null + }, + "property": { + "type": "Identifier", + "start": 18975, + "end": 18987, + "loc": { + "start": { + "line": 547, + "column": 18 + }, + "end": { + "line": 547, + "column": 30 + }, + "identifierName": "setAttribute" + }, + "name": "setAttribute" + }, + "computed": false, + "leadingComments": null + }, + "arguments": [ + { + "type": "StringLiteral", + "start": 18988, + "end": 19007, + "loc": { + "start": { + "line": 547, + "column": 31 + }, + "end": { + "line": 547, + "column": 50 + } + }, + "extra": { + "rawValue": "data-displayLabel", + "raw": "\"data-displayLabel\"" + }, + "value": "data-displayLabel" + }, + { + "type": "Identifier", + "start": 19009, + "end": 19026, + "loc": { + "start": { + "line": 547, + "column": 52 + }, + "end": { + "line": 547, + "column": 69 + }, + "identifierName": "buttonDisplayName" + }, + "name": "buttonDisplayName" + } + ], + "leadingComments": null + }, + "leadingComments": [ + { + "type": "CommentBlock", + "value": "*\r\n * Adding display label\r\n ", + "start": 18906, + "end": 18955, + "loc": { + "start": { + "line": 544, + "column": 8 + }, + "end": { + "line": 546, + "column": 11 + } + } + } + ], + "trailingComments": [ + { + "type": "CommentBlock", + "value": "*\r\n * Adding button label to button\r\n ", + "start": 19040, + "end": 19098, + "loc": { + "start": { + "line": 549, + "column": 8 + }, + "end": { + "line": 551, + "column": 11 + } + } + } + ] + }, + { + "type": "VariableDeclaration", + "start": 19108, + "end": 19159, + "loc": { + "start": { + "line": 552, + "column": 8 + }, + "end": { + "line": 552, + "column": 59 + } + }, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 19112, + "end": 19158, + "loc": { + "start": { + "line": 552, + "column": 12 + }, + "end": { + "line": 552, + "column": 58 + } + }, + "id": { + "type": "Identifier", + "start": 19112, + "end": 19125, + "loc": { + "start": { + "line": 552, + "column": 12 + }, + "end": { + "line": 552, + "column": 25 + }, + "identifierName": "buttonSpanDOM" + }, + "name": "buttonSpanDOM", + "leadingComments": null + }, + "init": { + "type": "CallExpression", + "start": 19128, + "end": 19158, + "loc": { + "start": { + "line": 552, + "column": 28 + }, + "end": { + "line": 552, + "column": 58 + } + }, + "callee": { + "type": "MemberExpression", + "start": 19128, + "end": 19150, + "loc": { + "start": { + "line": 552, + "column": 28 + }, + "end": { + "line": 552, + "column": 50 + } + }, + "object": { + "type": "Identifier", + "start": 19128, + "end": 19136, + "loc": { + "start": { + "line": 552, + "column": 28 + }, + "end": { + "line": 552, + "column": 36 + }, + "identifierName": "document" + }, + "name": "document" + }, + "property": { + "type": "Identifier", + "start": 19137, + "end": 19150, + "loc": { + "start": { + "line": 552, + "column": 37 + }, + "end": { + "line": 552, + "column": 50 + }, + "identifierName": "createElement" + }, + "name": "createElement" + }, + "computed": false + }, + "arguments": [ + { + "type": "StringLiteral", + "start": 19151, + "end": 19157, + "loc": { + "start": { + "line": 552, + "column": 51 + }, + "end": { + "line": 552, + "column": 57 + } + }, + "extra": { + "rawValue": "span", + "raw": "'span'" + }, + "value": "span" + } + ] + }, + "leadingComments": null + } + ], + "kind": "var", + "leadingComments": [ + { + "type": "CommentBlock", + "value": "*\r\n * Adding button label to button\r\n ", + "start": 19040, + "end": 19098, + "loc": { + "start": { + "line": 549, + "column": 8 + }, + "end": { + "line": 551, + "column": 11 + } + } + } + ] + }, + { + "type": "ExpressionStatement", + "start": 19169, + "end": 19213, + "loc": { + "start": { + "line": 553, + "column": 8 + }, + "end": { + "line": 553, + "column": 52 + } + }, + "expression": { + "type": "AssignmentExpression", + "start": 19169, + "end": 19212, + "loc": { + "start": { + "line": 553, + "column": 8 + }, + "end": { + "line": 553, + "column": 51 + } + }, + "operator": "=", + "left": { + "type": "MemberExpression", + "start": 19169, + "end": 19192, + "loc": { + "start": { + "line": 553, + "column": 8 + }, + "end": { + "line": 553, + "column": 31 + } + }, + "object": { + "type": "Identifier", + "start": 19169, + "end": 19182, + "loc": { + "start": { + "line": 553, + "column": 8 + }, + "end": { + "line": 553, + "column": 21 + }, + "identifierName": "buttonSpanDOM" + }, + "name": "buttonSpanDOM" + }, + "property": { + "type": "Identifier", + "start": 19183, + "end": 19192, + "loc": { + "start": { + "line": 553, + "column": 22 + }, + "end": { + "line": 553, + "column": 31 + }, + "identifierName": "innerHTML" + }, + "name": "innerHTML" + }, + "computed": false + }, + "right": { + "type": "Identifier", + "start": 19195, + "end": 19212, + "loc": { + "start": { + "line": 553, + "column": 34 + }, + "end": { + "line": 553, + "column": 51 + }, + "identifierName": "buttonDisplayName" + }, + "name": "buttonDisplayName" + } + } + }, + { + "type": "ExpressionStatement", + "start": 19223, + "end": 19260, + "loc": { + "start": { + "line": 554, + "column": 8 + }, + "end": { + "line": 554, + "column": 45 + } + }, + "expression": { + "type": "CallExpression", + "start": 19223, + "end": 19259, + "loc": { + "start": { + "line": 554, + "column": 8 + }, + "end": { + "line": 554, + "column": 44 + } + }, + "callee": { + "type": "MemberExpression", + "start": 19223, + "end": 19244, + "loc": { + "start": { + "line": 554, + "column": 8 + }, + "end": { + "line": 554, + "column": 29 + } + }, + "object": { + "type": "Identifier", + "start": 19223, + "end": 19232, + "loc": { + "start": { + "line": 554, + "column": 8 + }, + "end": { + "line": 554, + "column": 17 + }, + "identifierName": "buttonDOM" + }, + "name": "buttonDOM" + }, + "property": { + "type": "Identifier", + "start": 19233, + "end": 19244, + "loc": { + "start": { + "line": 554, + "column": 18 + }, + "end": { + "line": 554, + "column": 29 + }, + "identifierName": "appendChild" + }, + "name": "appendChild" + }, + "computed": false + }, + "arguments": [ + { + "type": "Identifier", + "start": 19245, + "end": 19258, + "loc": { + "start": { + "line": 554, + "column": 30 + }, + "end": { + "line": 554, + "column": 43 + }, + "identifierName": "buttonSpanDOM" + }, + "name": "buttonSpanDOM" + } + ] + }, + "trailingComments": [ + { + "type": "CommentBlock", + "value": "*\r\n * Adding to buttonElements\r\n ", + "start": 19272, + "end": 19325, + "loc": { + "start": { + "line": 556, + "column": 8 + }, + "end": { + "line": 558, + "column": 11 + } + } + } + ] + }, + { + "type": "IfStatement", + "start": 19335, + "end": 19412, + "loc": { + "start": { + "line": 559, + "column": 8 + }, + "end": { + "line": 560, + "column": 43 + } + }, + "test": { + "type": "UnaryExpression", + "start": 19338, + "end": 19366, + "loc": { + "start": { + "line": 559, + "column": 11 + }, + "end": { + "line": 559, + "column": 39 + } + }, + "operator": "!", + "prefix": true, + "argument": { + "type": "MemberExpression", + "start": 19339, + "end": 19366, + "loc": { + "start": { + "line": 559, + "column": 12 + }, + "end": { + "line": 559, + "column": 39 + } + }, + "object": { + "type": "MemberExpression", + "start": 19339, + "end": 19358, + "loc": { + "start": { + "line": 559, + "column": 12 + }, + "end": { + "line": 559, + "column": 31 + } + }, + "object": { + "type": "ThisExpression", + "start": 19339, + "end": 19343, + "loc": { + "start": { + "line": 559, + "column": 12 + }, + "end": { + "line": 559, + "column": 16 + } + }, + "leadingComments": null + }, + "property": { + "type": "Identifier", + "start": 19344, + "end": 19358, + "loc": { + "start": { + "line": 559, + "column": 17 + }, + "end": { + "line": 559, + "column": 31 + }, + "identifierName": "buttonElements" + }, + "name": "buttonElements" + }, + "computed": false, + "leadingComments": null + }, + "property": { + "type": "Identifier", + "start": 19359, + "end": 19365, + "loc": { + "start": { + "line": 559, + "column": 32 + }, + "end": { + "line": 559, + "column": 38 + }, + "identifierName": "button" + }, + "name": "button" + }, + "computed": true, + "leadingComments": null + }, + "extra": { + "parenthesizedArgument": false + }, + "leadingComments": null + }, + "consequent": { + "type": "ExpressionStatement", + "start": 19379, + "end": 19412, + "loc": { + "start": { + "line": 560, + "column": 10 + }, + "end": { + "line": 560, + "column": 43 + } + }, + "expression": { + "type": "AssignmentExpression", + "start": 19379, + "end": 19411, + "loc": { + "start": { + "line": 560, + "column": 10 + }, + "end": { + "line": 560, + "column": 42 + } + }, + "operator": "=", + "left": { + "type": "MemberExpression", + "start": 19379, + "end": 19406, + "loc": { + "start": { + "line": 560, + "column": 10 + }, + "end": { + "line": 560, + "column": 37 + } + }, + "object": { + "type": "MemberExpression", + "start": 19379, + "end": 19398, + "loc": { + "start": { + "line": 560, + "column": 10 + }, + "end": { + "line": 560, + "column": 29 + } + }, + "object": { + "type": "ThisExpression", + "start": 19379, + "end": 19383, + "loc": { + "start": { + "line": 560, + "column": 10 + }, + "end": { + "line": 560, + "column": 14 + } + } + }, + "property": { + "type": "Identifier", + "start": 19384, + "end": 19398, + "loc": { + "start": { + "line": 560, + "column": 15 + }, + "end": { + "line": 560, + "column": 29 + }, + "identifierName": "buttonElements" + }, + "name": "buttonElements" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 19399, + "end": 19405, + "loc": { + "start": { + "line": 560, + "column": 30 + }, + "end": { + "line": 560, + "column": 36 + }, + "identifierName": "button" + }, + "name": "button" + }, + "computed": true + }, + "right": { + "type": "ArrayExpression", + "start": 19409, + "end": 19411, + "loc": { + "start": { + "line": 560, + "column": 40 + }, + "end": { + "line": 560, + "column": 42 + } + }, + "elements": [] + } + } + }, + "alternate": null, + "leadingComments": [ + { + "type": "CommentBlock", + "value": "*\r\n * Adding to buttonElements\r\n ", + "start": 19272, + "end": 19325, + "loc": { + "start": { + "line": 556, + "column": 8 + }, + "end": { + "line": 558, + "column": 11 + } + } + } + ] + }, + { + "type": "ExpressionStatement", + "start": 19424, + "end": 19468, + "loc": { + "start": { + "line": 562, + "column": 8 + }, + "end": { + "line": 562, + "column": 52 + } + }, + "expression": { + "type": "CallExpression", + "start": 19424, + "end": 19467, + "loc": { + "start": { + "line": 562, + "column": 8 + }, + "end": { + "line": 562, + "column": 51 + } + }, + "callee": { + "type": "MemberExpression", + "start": 19424, + "end": 19456, + "loc": { + "start": { + "line": 562, + "column": 8 + }, + "end": { + "line": 562, + "column": 40 + } + }, + "object": { + "type": "MemberExpression", + "start": 19424, + "end": 19451, + "loc": { + "start": { + "line": 562, + "column": 8 + }, + "end": { + "line": 562, + "column": 35 + } + }, + "object": { + "type": "MemberExpression", + "start": 19424, + "end": 19443, + "loc": { + "start": { + "line": 562, + "column": 8 + }, + "end": { + "line": 562, + "column": 27 + } + }, + "object": { + "type": "ThisExpression", + "start": 19424, + "end": 19428, + "loc": { + "start": { + "line": 562, + "column": 8 + }, + "end": { + "line": 562, + "column": 12 + } + } + }, + "property": { + "type": "Identifier", + "start": 19429, + "end": 19443, + "loc": { + "start": { + "line": 562, + "column": 13 + }, + "end": { + "line": 562, + "column": 27 + }, + "identifierName": "buttonElements" + }, + "name": "buttonElements" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 19444, + "end": 19450, + "loc": { + "start": { + "line": 562, + "column": 28 + }, + "end": { + "line": 562, + "column": 34 + }, + "identifierName": "button" + }, + "name": "button" + }, + "computed": true + }, + "property": { + "type": "Identifier", + "start": 19452, + "end": 19456, + "loc": { + "start": { + "line": 562, + "column": 36 + }, + "end": { + "line": 562, + "column": 40 + }, + "identifierName": "push" + }, + "name": "push" + }, + "computed": false + }, + "arguments": [ + { + "type": "Identifier", + "start": 19457, + "end": 19466, + "loc": { + "start": { + "line": 562, + "column": 41 + }, + "end": { + "line": 562, + "column": 50 + }, + "identifierName": "buttonDOM" + }, + "name": "buttonDOM" + } + ] + }, + "trailingComments": [ + { + "type": "CommentBlock", + "value": "*\r\n * Appending button to row\r\n ", + "start": 19480, + "end": 19532, + "loc": { + "start": { + "line": 564, + "column": 8 + }, + "end": { + "line": 566, + "column": 11 + } + } + } + ] + }, + { + "type": "ExpressionStatement", + "start": 19542, + "end": 19572, + "loc": { + "start": { + "line": 567, + "column": 8 + }, + "end": { + "line": 567, + "column": 38 + } + }, + "expression": { + "type": "CallExpression", + "start": 19542, + "end": 19571, + "loc": { + "start": { + "line": 567, + "column": 8 + }, + "end": { + "line": 567, + "column": 37 + } + }, + "callee": { + "type": "MemberExpression", + "start": 19542, + "end": 19560, + "loc": { + "start": { + "line": 567, + "column": 8 + }, + "end": { + "line": 567, + "column": 26 + } + }, + "object": { + "type": "Identifier", + "start": 19542, + "end": 19548, + "loc": { + "start": { + "line": 567, + "column": 8 + }, + "end": { + "line": 567, + "column": 14 + }, + "identifierName": "rowDOM" + }, + "name": "rowDOM", + "leadingComments": null + }, + "property": { + "type": "Identifier", + "start": 19549, + "end": 19560, + "loc": { + "start": { + "line": 567, + "column": 15 + }, + "end": { + "line": 567, + "column": 26 + }, + "identifierName": "appendChild" + }, + "name": "appendChild" + }, + "computed": false, + "leadingComments": null + }, + "arguments": [ + { + "type": "Identifier", + "start": 19561, + "end": 19570, + "loc": { + "start": { + "line": 567, + "column": 27 + }, + "end": { + "line": 567, + "column": 36 + }, + "identifierName": "buttonDOM" + }, + "name": "buttonDOM" + } + ], + "leadingComments": null + }, + "leadingComments": [ + { + "type": "CommentBlock", + "value": "*\r\n * Appending button to row\r\n ", + "start": 19480, + "end": 19532, + "loc": { + "start": { + "line": 564, + "column": 8 + }, + "end": { + "line": 566, + "column": 11 + } + } + } + ] + } + ], + "directives": [] + } + } + ], + "leadingComments": null + }, + "leadingComments": [ + { + "type": "CommentBlock", + "value": "*\r\n * Iterating through each button in row\r\n ", + "start": 17829, + "end": 17890, + "loc": { + "start": { + "line": 517, + "column": 6 + }, + "end": { + "line": 519, + "column": 9 + } + } + } + ], + "trailingComments": [ + { + "type": "CommentBlock", + "value": "*\r\n * Appending row to keyboard\r\n ", + "start": 19595, + "end": 19645, + "loc": { + "start": { + "line": 571, + "column": 6 + }, + "end": { + "line": 573, + "column": 9 + } + } + } + ] + }, + { + "type": "ExpressionStatement", + "start": 19653, + "end": 19690, + "loc": { + "start": { + "line": 574, + "column": 6 + }, + "end": { + "line": 574, + "column": 43 + } + }, + "expression": { + "type": "CallExpression", + "start": 19653, + "end": 19689, + "loc": { + "start": { + "line": 574, + "column": 6 + }, + "end": { + "line": 574, + "column": 42 + } + }, + "callee": { + "type": "MemberExpression", + "start": 19653, + "end": 19681, + "loc": { + "start": { + "line": 574, + "column": 6 + }, + "end": { + "line": 574, + "column": 34 + } + }, + "object": { + "type": "MemberExpression", + "start": 19653, + "end": 19669, + "loc": { + "start": { + "line": 574, + "column": 6 + }, + "end": { + "line": 574, + "column": 22 + } + }, + "object": { + "type": "ThisExpression", + "start": 19653, + "end": 19657, + "loc": { + "start": { + "line": 574, + "column": 6 + }, + "end": { + "line": 574, + "column": 10 + } + }, + "leadingComments": null + }, + "property": { + "type": "Identifier", + "start": 19658, + "end": 19669, + "loc": { + "start": { + "line": 574, + "column": 11 + }, + "end": { + "line": 574, + "column": 22 + }, + "identifierName": "keyboardDOM" + }, + "name": "keyboardDOM" + }, + "computed": false, + "leadingComments": null + }, + "property": { + "type": "Identifier", + "start": 19670, + "end": 19681, + "loc": { + "start": { + "line": 574, + "column": 23 + }, + "end": { + "line": 574, + "column": 34 + }, + "identifierName": "appendChild" + }, + "name": "appendChild" + }, + "computed": false, + "leadingComments": null + }, + "arguments": [ + { + "type": "Identifier", + "start": 19682, + "end": 19688, + "loc": { + "start": { + "line": 574, + "column": 35 + }, + "end": { + "line": 574, + "column": 41 + }, + "identifierName": "rowDOM" + }, + "name": "rowDOM" + } + ], + "leadingComments": null + }, + "leadingComments": [ + { + "type": "CommentBlock", + "value": "*\r\n * Appending row to keyboard\r\n ", + "start": 19595, + "end": 19645, + "loc": { + "start": { + "line": 571, + "column": 6 + }, + "end": { + "line": 573, + "column": 9 + } + } + } + ] + } + ], + "directives": [] + } + } + ], + "leadingComments": null + }, + "leadingComments": [ + { + "type": "CommentBlock", + "value": "*\r\n * Iterating through each row\r\n ", + "start": 17529, + "end": 17576, + "loc": { + "start": { + "line": 505, + "column": 4 + }, + "end": { + "line": 507, + "column": 7 + } + } + } + ], + "trailingComments": [ + { + "type": "CommentBlock", + "value": "*\r\n * Calling onRender\r\n ", + "start": 19707, + "end": 19744, + "loc": { + "start": { + "line": 577, + "column": 4 + }, + "end": { + "line": 579, + "column": 7 + } + } + } + ] + }, + { + "type": "ExpressionStatement", + "start": 19750, + "end": 19766, + "loc": { + "start": { + "line": 580, + "column": 4 + }, + "end": { + "line": 580, + "column": 20 + } + }, + "expression": { + "type": "CallExpression", + "start": 19750, + "end": 19765, + "loc": { + "start": { + "line": 580, + "column": 4 + }, + "end": { + "line": 580, + "column": 19 + } + }, + "callee": { + "type": "MemberExpression", + "start": 19750, + "end": 19763, + "loc": { + "start": { + "line": 580, + "column": 4 + }, + "end": { + "line": 580, + "column": 17 + } + }, + "object": { + "type": "ThisExpression", + "start": 19750, + "end": 19754, + "loc": { + "start": { + "line": 580, + "column": 4 + }, + "end": { + "line": 580, + "column": 8 + } + }, + "leadingComments": null + }, + "property": { + "type": "Identifier", + "start": 19755, + "end": 19763, + "loc": { + "start": { + "line": 580, + "column": 9 + }, + "end": { + "line": 580, + "column": 17 + }, + "identifierName": "onRender" + }, + "name": "onRender" + }, + "computed": false, + "leadingComments": null + }, + "arguments": [], + "leadingComments": null + }, + "leadingComments": [ + { + "type": "CommentBlock", + "value": "*\r\n * Calling onRender\r\n ", + "start": 19707, + "end": 19744, + "loc": { + "start": { + "line": 577, + "column": 4 + }, + "end": { + "line": 579, + "column": 7 + } + } + } + ] + }, + { + "type": "IfStatement", + "start": 19774, + "end": 19996, + "loc": { + "start": { + "line": 582, + "column": 4 + }, + "end": { + "line": 592, + "column": 5 + } + }, + "test": { + "type": "UnaryExpression", + "start": 19777, + "end": 19794, + "loc": { + "start": { + "line": 582, + "column": 7 + }, + "end": { + "line": 582, + "column": 24 + } + }, + "operator": "!", + "prefix": true, + "argument": { + "type": "MemberExpression", + "start": 19778, + "end": 19794, + "loc": { + "start": { + "line": 582, + "column": 8 + }, + "end": { + "line": 582, + "column": 24 + } + }, + "object": { + "type": "ThisExpression", + "start": 19778, + "end": 19782, + "loc": { + "start": { + "line": 582, + "column": 8 + }, + "end": { + "line": 582, + "column": 12 + } + } + }, + "property": { + "type": "Identifier", + "start": 19783, + "end": 19794, + "loc": { + "start": { + "line": 582, + "column": 13 + }, + "end": { + "line": 582, + "column": 24 + }, + "identifierName": "initialized" + }, + "name": "initialized" + }, + "computed": false + }, + "extra": { + "parenthesizedArgument": false + } + }, + "consequent": { + "type": "BlockStatement", + "start": 19795, + "end": 19996, + "loc": { + "start": { + "line": 582, + "column": 25 + }, + "end": { + "line": 592, + "column": 5 + } + }, + "body": [ + { + "type": "ExpressionStatement", + "start": 19894, + "end": 19918, + "loc": { + "start": { + "line": 586, + "column": 6 + }, + "end": { + "line": 586, + "column": 30 + } + }, + "expression": { + "type": "AssignmentExpression", + "start": 19894, + "end": 19917, + "loc": { + "start": { + "line": 586, + "column": 6 + }, + "end": { + "line": 586, + "column": 29 + } + }, + "operator": "=", + "left": { + "type": "MemberExpression", + "start": 19894, + "end": 19910, + "loc": { + "start": { + "line": 586, + "column": 6 + }, + "end": { + "line": 586, + "column": 22 + } + }, + "object": { + "type": "ThisExpression", + "start": 19894, + "end": 19898, + "loc": { + "start": { + "line": 586, + "column": 6 + }, + "end": { + "line": 586, + "column": 10 + } + }, + "leadingComments": null + }, + "property": { + "type": "Identifier", + "start": 19899, + "end": 19910, + "loc": { + "start": { + "line": 586, + "column": 11 + }, + "end": { + "line": 586, + "column": 22 + }, + "identifierName": "initialized" + }, + "name": "initialized" + }, + "computed": false, + "leadingComments": null + }, + "right": { + "type": "BooleanLiteral", + "start": 19913, + "end": 19917, + "loc": { + "start": { + "line": 586, + "column": 25 + }, + "end": { + "line": 586, + "column": 29 + } + }, + "value": true + }, + "leadingComments": null + }, + "leadingComments": [ + { + "type": "CommentBlock", + "value": "*\r\n * Ensures that onInit is only called once per instantiation\r\n ", + "start": 19804, + "end": 19886, + "loc": { + "start": { + "line": 583, + "column": 6 + }, + "end": { + "line": 585, + "column": 9 + } + } + } + ], + "trailingComments": [ + { + "type": "CommentBlock", + "value": "*\r\n * Calling onInit\r\n ", + "start": 19928, + "end": 19967, + "loc": { + "start": { + "line": 588, + "column": 6 + }, + "end": { + "line": 590, + "column": 9 + } + } + } + ] + }, + { + "type": "ExpressionStatement", + "start": 19975, + "end": 19989, + "loc": { + "start": { + "line": 591, + "column": 6 + }, + "end": { + "line": 591, + "column": 20 + } + }, + "expression": { + "type": "CallExpression", + "start": 19975, + "end": 19988, + "loc": { + "start": { + "line": 591, + "column": 6 + }, + "end": { + "line": 591, + "column": 19 + } + }, + "callee": { + "type": "MemberExpression", + "start": 19975, + "end": 19986, + "loc": { + "start": { + "line": 591, + "column": 6 + }, + "end": { + "line": 591, + "column": 17 + } + }, + "object": { + "type": "ThisExpression", + "start": 19975, + "end": 19979, + "loc": { + "start": { + "line": 591, + "column": 6 + }, + "end": { + "line": 591, + "column": 10 + } + }, + "leadingComments": null + }, + "property": { + "type": "Identifier", + "start": 19980, + "end": 19986, + "loc": { + "start": { + "line": 591, + "column": 11 + }, + "end": { + "line": 591, + "column": 17 + }, + "identifierName": "onInit" + }, + "name": "onInit" + }, + "computed": false, + "leadingComments": null + }, + "arguments": [], + "leadingComments": null + }, + "leadingComments": [ + { + "type": "CommentBlock", + "value": "*\r\n * Calling onInit\r\n ", + "start": 19928, + "end": 19967, + "loc": { + "start": { + "line": 588, + "column": 6 + }, + "end": { + "line": 590, + "column": 9 + } + } + } + ] + } + ], + "directives": [] + }, + "alternate": null + } + ], + "directives": [] + } + }, + "leadingComments": [ + { + "type": "CommentBlock", + "value": "*\r\n * Renders rows and buttons as per options\r\n ", + "start": 15812, + "end": 15868, + "loc": { + "start": { + "line": 454, + "column": 2 + }, + "end": { + "line": 456, + "column": 5 + } + } + } + ] + } + ] + }, + "leadingComments": [], + "name": "_", + "trailingComments": [] + }, + { + "type": "Identifier", + "start": 20008, + "end": 20038, + "loc": { + "start": { + "line": 596, + "column": 0 + }, + "end": { + "line": 596, + "column": 30 + } + }, + "declaration": { + "type": "Identifier", + "start": 20023, + "end": 20037, + "loc": { + "start": { + "line": 596, + "column": 15 + }, + "end": { + "line": 596, + "column": 29 + }, + "identifierName": "SimpleKeyboard" + }, + "name": "SimpleKeyboard" + }, + "name": "_", + "leadingComments": [], + "trailingComments": [] + }, + { + "type": "ExportDefaultDeclaration", + "start": 20008, + "end": 20038, + "loc": { + "start": { + "line": 596, + "column": 0 + }, + "end": { + "line": 596, + "column": 30 + } + }, + "declaration": { + "type": "ClassDeclaration", + "start": 367, + "end": 20004, + "loc": { + "start": { + "line": 15, + "column": 0 + }, + "end": { + "line": 594, + "column": 1 + } + }, + "id": { + "type": "Identifier", + "start": 373, + "end": 387, + "loc": { + "start": { + "line": 15, + "column": 6 + }, + "end": { + "line": 15, + "column": 20 + }, + "identifierName": "SimpleKeyboard" + }, + "name": "SimpleKeyboard", + "leadingComments": null + }, + "superClass": null, + "body": { + "type": "ClassBody", + "start": 388, + "end": 20004, + "loc": { + "start": { + "line": 15, + "column": 21 + }, + "end": { + "line": 594, + "column": 1 + } + }, + "body": [ + { + "type": "ClassMethod", + "start": 679, + "end": 5952, + "loc": { + "start": { + "line": 20, + "column": 2 + }, + "end": { + "line": 116, + "column": 3 + } + }, + "static": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 679, + "end": 690, + "loc": { + "start": { + "line": 20, + "column": 2 + }, + "end": { + "line": 20, + "column": 13 + }, + "identifierName": "constructor" + }, + "name": "constructor", + "leadingComments": null + }, + "kind": "constructor", + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [ + { + "type": "RestElement", + "start": 691, + "end": 700, + "loc": { + "start": { + "line": 20, + "column": 14 + }, + "end": { + "line": 20, + "column": 23 + } + }, + "argument": { + "type": "Identifier", + "start": 694, + "end": 700, + "loc": { + "start": { + "line": 20, + "column": 17 + }, + "end": { + "line": 20, + "column": 23 + }, + "identifierName": "params" + }, + "name": "params" + } + } + ], + "body": { + "type": "BlockStatement", + "start": 701, + "end": 5952, + "loc": { + "start": { + "line": 20, + "column": 24 + }, + "end": { + "line": 116, + "column": 3 + } + }, + "body": [ + { + "type": "VariableDeclaration", + "start": 708, + "end": 794, + "loc": { + "start": { + "line": 21, + "column": 4 + }, + "end": { + "line": 21, + "column": 90 + } + }, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 712, + "end": 793, + "loc": { + "start": { + "line": 21, + "column": 8 + }, + "end": { + "line": 21, + "column": 89 + } + }, + "id": { + "type": "Identifier", + "start": 712, + "end": 728, + "loc": { + "start": { + "line": 21, + "column": 8 + }, + "end": { + "line": 21, + "column": 24 + }, + "identifierName": "keyboardDOMQuery" + }, + "name": "keyboardDOMQuery" + }, + "init": { + "type": "ConditionalExpression", + "start": 731, + "end": 793, + "loc": { + "start": { + "line": 21, + "column": 27 + }, + "end": { + "line": 21, + "column": 89 + } + }, + "test": { + "type": "BinaryExpression", + "start": 731, + "end": 760, + "loc": { + "start": { + "line": 21, + "column": 27 + }, + "end": { + "line": 21, + "column": 56 + } + }, + "left": { + "type": "UnaryExpression", + "start": 731, + "end": 747, + "loc": { + "start": { + "line": 21, + "column": 27 + }, + "end": { + "line": 21, + "column": 43 + } + }, + "operator": "typeof", + "prefix": true, + "argument": { + "type": "MemberExpression", + "start": 738, + "end": 747, + "loc": { + "start": { + "line": 21, + "column": 34 + }, + "end": { + "line": 21, + "column": 43 + } + }, + "object": { + "type": "Identifier", + "start": 738, + "end": 744, + "loc": { + "start": { + "line": 21, + "column": 34 + }, + "end": { + "line": 21, + "column": 40 + }, + "identifierName": "params" + }, + "name": "params" + }, + "property": { + "type": "NumericLiteral", + "start": 745, + "end": 746, + "loc": { + "start": { + "line": 21, + "column": 41 + }, + "end": { + "line": 21, + "column": 42 + } + }, + "extra": { + "rawValue": 0, + "raw": "0" + }, + "value": 0 + }, + "computed": true + }, + "extra": { + "parenthesizedArgument": false + } + }, + "operator": "===", + "right": { + "type": "StringLiteral", + "start": 752, + "end": 760, + "loc": { + "start": { + "line": 21, + "column": 48 + }, + "end": { + "line": 21, + "column": 56 + } + }, + "extra": { + "rawValue": "string", + "raw": "\"string\"" + }, + "value": "string" + } + }, + "consequent": { + "type": "MemberExpression", + "start": 763, + "end": 772, + "loc": { + "start": { + "line": 21, + "column": 59 + }, + "end": { + "line": 21, + "column": 68 + } + }, + "object": { + "type": "Identifier", + "start": 763, + "end": 769, + "loc": { + "start": { + "line": 21, + "column": 59 + }, + "end": { + "line": 21, + "column": 65 + }, + "identifierName": "params" + }, + "name": "params" + }, + "property": { + "type": "NumericLiteral", + "start": 770, + "end": 771, + "loc": { + "start": { + "line": 21, + "column": 66 + }, + "end": { + "line": 21, + "column": 67 + } + }, + "extra": { + "rawValue": 0, + "raw": "0" + }, + "value": 0 + }, + "computed": true + }, + "alternate": { + "type": "StringLiteral", + "start": 775, + "end": 793, + "loc": { + "start": { + "line": 21, + "column": 71 + }, + "end": { + "line": 21, + "column": 89 + } + }, + "extra": { + "rawValue": ".simple-keyboard", + "raw": "'.simple-keyboard'" + }, + "value": ".simple-keyboard" + } + } + } + ], + "kind": "let" + }, + { + "type": "VariableDeclaration", + "start": 800, + "end": 868, + "loc": { + "start": { + "line": 22, + "column": 4 + }, + "end": { + "line": 22, + "column": 72 + } + }, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 804, + "end": 867, + "loc": { + "start": { + "line": 22, + "column": 8 + }, + "end": { + "line": 22, + "column": 71 + } + }, + "id": { + "type": "Identifier", + "start": 804, + "end": 811, + "loc": { + "start": { + "line": 22, + "column": 8 + }, + "end": { + "line": 22, + "column": 15 + }, + "identifierName": "options" + }, + "name": "options" + }, + "init": { + "type": "ConditionalExpression", + "start": 814, + "end": 867, + "loc": { + "start": { + "line": 22, + "column": 18 + }, + "end": { + "line": 22, + "column": 71 + } + }, + "test": { + "type": "BinaryExpression", + "start": 814, + "end": 843, + "loc": { + "start": { + "line": 22, + "column": 18 + }, + "end": { + "line": 22, + "column": 47 + } + }, + "left": { + "type": "UnaryExpression", + "start": 814, + "end": 830, + "loc": { + "start": { + "line": 22, + "column": 18 + }, + "end": { + "line": 22, + "column": 34 + } + }, + "operator": "typeof", + "prefix": true, + "argument": { + "type": "MemberExpression", + "start": 821, + "end": 830, + "loc": { + "start": { + "line": 22, + "column": 25 + }, + "end": { + "line": 22, + "column": 34 + } + }, + "object": { + "type": "Identifier", + "start": 821, + "end": 827, + "loc": { + "start": { + "line": 22, + "column": 25 + }, + "end": { + "line": 22, + "column": 31 + }, + "identifierName": "params" + }, + "name": "params" + }, + "property": { + "type": "NumericLiteral", + "start": 828, + "end": 829, + "loc": { + "start": { + "line": 22, + "column": 32 + }, + "end": { + "line": 22, + "column": 33 + } + }, + "extra": { + "rawValue": 0, + "raw": "0" + }, + "value": 0 + }, + "computed": true + }, + "extra": { + "parenthesizedArgument": false + } + }, + "operator": "===", + "right": { + "type": "StringLiteral", + "start": 835, + "end": 843, + "loc": { + "start": { + "line": 22, + "column": 39 + }, + "end": { + "line": 22, + "column": 47 + } + }, + "extra": { + "rawValue": "object", + "raw": "\"object\"" + }, + "value": "object" + } + }, + "consequent": { + "type": "MemberExpression", + "start": 846, + "end": 855, + "loc": { + "start": { + "line": 22, + "column": 50 + }, + "end": { + "line": 22, + "column": 59 + } + }, + "object": { + "type": "Identifier", + "start": 846, + "end": 852, + "loc": { + "start": { + "line": 22, + "column": 50 + }, + "end": { + "line": 22, + "column": 56 + }, + "identifierName": "params" + }, + "name": "params" + }, + "property": { + "type": "NumericLiteral", + "start": 853, + "end": 854, + "loc": { + "start": { + "line": 22, + "column": 57 + }, + "end": { + "line": 22, + "column": 58 + } + }, + "extra": { + "rawValue": 0, + "raw": "0" + }, + "value": 0 + }, + "computed": true + }, + "alternate": { + "type": "MemberExpression", + "start": 858, + "end": 867, + "loc": { + "start": { + "line": 22, + "column": 62 + }, + "end": { + "line": 22, + "column": 71 + } + }, + "object": { + "type": "Identifier", + "start": 858, + "end": 864, + "loc": { + "start": { + "line": 22, + "column": 62 + }, + "end": { + "line": 22, + "column": 68 + }, + "identifierName": "params" + }, + "name": "params" + }, + "property": { + "type": "NumericLiteral", + "start": 865, + "end": 866, + "loc": { + "start": { + "line": 22, + "column": 69 + }, + "end": { + "line": 22, + "column": 70 + } + }, + "extra": { + "rawValue": 1, + "raw": "1" + }, + "value": 1 + }, + "computed": true + } + } + } + ], + "kind": "let" + }, + { + "type": "IfStatement", + "start": 876, + "end": 909, + "loc": { + "start": { + "line": 24, + "column": 4 + }, + "end": { + "line": 25, + "column": 19 + } + }, + "test": { + "type": "UnaryExpression", + "start": 879, + "end": 887, + "loc": { + "start": { + "line": 24, + "column": 7 + }, + "end": { + "line": 24, + "column": 15 + } + }, + "operator": "!", + "prefix": true, + "argument": { + "type": "Identifier", + "start": 880, + "end": 887, + "loc": { + "start": { + "line": 24, + "column": 8 + }, + "end": { + "line": 24, + "column": 15 + }, + "identifierName": "options" + }, + "name": "options" + }, + "extra": { + "parenthesizedArgument": false + } + }, + "consequent": { + "type": "ExpressionStatement", + "start": 896, + "end": 909, + "loc": { + "start": { + "line": 25, + "column": 6 + }, + "end": { + "line": 25, + "column": 19 + } + }, + "expression": { + "type": "AssignmentExpression", + "start": 896, + "end": 908, + "loc": { + "start": { + "line": 25, + "column": 6 + }, + "end": { + "line": 25, + "column": 18 + } + }, + "operator": "=", + "left": { + "type": "Identifier", + "start": 896, + "end": 903, + "loc": { + "start": { + "line": 25, + "column": 6 + }, + "end": { + "line": 25, + "column": 13 + }, + "identifierName": "options" + }, + "name": "options" + }, + "right": { + "type": "ObjectExpression", + "start": 906, + "end": 908, + "loc": { + "start": { + "line": 25, + "column": 16 + }, + "end": { + "line": 25, + "column": 18 + } + }, + "properties": [] + } + }, + "trailingComments": null + }, + "alternate": null, + "trailingComments": [ + { + "type": "CommentBlock", + "value": "*\r\n * Initializing Utilities\r\n ", + "start": 917, + "end": 960, + "loc": { + "start": { + "line": 27, + "column": 4 + }, + "end": { + "line": 29, + "column": 7 + } + } + } + ] + }, + { + "type": "ExpressionStatement", + "start": 966, + "end": 1003, + "loc": { + "start": { + "line": 30, + "column": 4 + }, + "end": { + "line": 30, + "column": 41 + } + }, + "expression": { + "type": "AssignmentExpression", + "start": 966, + "end": 1002, + "loc": { + "start": { + "line": 30, + "column": 4 + }, + "end": { + "line": 30, + "column": 40 + } + }, + "operator": "=", + "left": { + "type": "MemberExpression", + "start": 966, + "end": 980, + "loc": { + "start": { + "line": 30, + "column": 4 + }, + "end": { + "line": 30, + "column": 18 + } + }, + "object": { + "type": "ThisExpression", + "start": 966, + "end": 970, + "loc": { + "start": { + "line": 30, + "column": 4 + }, + "end": { + "line": 30, + "column": 8 + } + }, + "leadingComments": null + }, + "property": { + "type": "Identifier", + "start": 971, + "end": 980, + "loc": { + "start": { + "line": 30, + "column": 9 + }, + "end": { + "line": 30, + "column": 18 + }, + "identifierName": "utilities" + }, + "name": "utilities" + }, + "computed": false, + "leadingComments": null + }, + "right": { + "type": "NewExpression", + "start": 983, + "end": 1002, + "loc": { + "start": { + "line": 30, + "column": 21 + }, + "end": { + "line": 30, + "column": 40 + } + }, + "callee": { + "type": "Identifier", + "start": 987, + "end": 996, + "loc": { + "start": { + "line": 30, + "column": 25 + }, + "end": { + "line": 30, + "column": 34 + }, + "identifierName": "Utilities" + }, + "name": "Utilities" + }, + "arguments": [ + { + "type": "ThisExpression", + "start": 997, + "end": 1001, + "loc": { + "start": { + "line": 30, + "column": 35 + }, + "end": { + "line": 30, + "column": 39 + } + } + } + ] + }, + "leadingComments": null + }, + "leadingComments": [ + { + "type": "CommentBlock", + "value": "*\r\n * Initializing Utilities\r\n ", + "start": 917, + "end": 960, + "loc": { + "start": { + "line": 27, + "column": 4 + }, + "end": { + "line": 29, + "column": 7 + } + } + } + ], + "trailingComments": [ + { + "type": "CommentBlock", + "value": "*\r\n * Processing options\r\n ", + "start": 1011, + "end": 1050, + "loc": { + "start": { + "line": 32, + "column": 4 + }, + "end": { + "line": 34, + "column": 7 + } + } + } + ] + }, + { + "type": "ExpressionStatement", + "start": 1056, + "end": 1116, + "loc": { + "start": { + "line": 35, + "column": 4 + }, + "end": { + "line": 35, + "column": 64 + } + }, + "expression": { + "type": "AssignmentExpression", + "start": 1056, + "end": 1115, + "loc": { + "start": { + "line": 35, + "column": 4 + }, + "end": { + "line": 35, + "column": 63 + } + }, + "operator": "=", + "left": { + "type": "MemberExpression", + "start": 1056, + "end": 1072, + "loc": { + "start": { + "line": 35, + "column": 4 + }, + "end": { + "line": 35, + "column": 20 + } + }, + "object": { + "type": "ThisExpression", + "start": 1056, + "end": 1060, + "loc": { + "start": { + "line": 35, + "column": 4 + }, + "end": { + "line": 35, + "column": 8 + } + }, + "leadingComments": null + }, + "property": { + "type": "Identifier", + "start": 1061, + "end": 1072, + "loc": { + "start": { + "line": 35, + "column": 9 + }, + "end": { + "line": 35, + "column": 20 + }, + "identifierName": "keyboardDOM" + }, + "name": "keyboardDOM" + }, + "computed": false, + "leadingComments": null + }, + "right": { + "type": "CallExpression", + "start": 1075, + "end": 1115, + "loc": { + "start": { + "line": 35, + "column": 23 + }, + "end": { + "line": 35, + "column": 63 + } + }, + "callee": { + "type": "MemberExpression", + "start": 1075, + "end": 1097, + "loc": { + "start": { + "line": 35, + "column": 23 + }, + "end": { + "line": 35, + "column": 45 + } + }, + "object": { + "type": "Identifier", + "start": 1075, + "end": 1083, + "loc": { + "start": { + "line": 35, + "column": 23 + }, + "end": { + "line": 35, + "column": 31 + }, + "identifierName": "document" + }, + "name": "document" + }, + "property": { + "type": "Identifier", + "start": 1084, + "end": 1097, + "loc": { + "start": { + "line": 35, + "column": 32 + }, + "end": { + "line": 35, + "column": 45 + }, + "identifierName": "querySelector" + }, + "name": "querySelector" + }, + "computed": false + }, + "arguments": [ + { + "type": "Identifier", + "start": 1098, + "end": 1114, + "loc": { + "start": { + "line": 35, + "column": 46 + }, + "end": { + "line": 35, + "column": 62 + }, + "identifierName": "keyboardDOMQuery" + }, + "name": "keyboardDOMQuery" + } + ] + }, + "leadingComments": null + }, + "leadingComments": [ + { + "type": "CommentBlock", + "value": "*\r\n * Processing options\r\n ", + "start": 1011, + "end": 1050, + "loc": { + "start": { + "line": 32, + "column": 4 + }, + "end": { + "line": 34, + "column": 7 + } + } + } + ], + "trailingComments": [ + { + "type": "CommentBlock", + "value": "*\r\n * @type {object}\r\n * @property {object} layout Modify the keyboard layout.\r\n * @property {string} layoutName Specifies which layout should be used.\r\n * @property {object} display Replaces variable buttons (such as {bksp}) with a human-friendly name (e.g.: “backspace”).\r\n * @property {boolean} mergeDisplay By default, when you set the display property, you replace the default one. This setting merges them instead.\r\n * @property {string} theme A prop to add your own css classes to the keyboard wrapper. You can add multiple classes separated by a space.\r\n * @property {Array} buttonTheme A prop to add your own css classes to one or several buttons.\r\n * @property {boolean} debug Runs a console.log every time a key is pressed. Displays the buttons pressed and the current input.\r\n * @property {boolean} newLineOnEnter Specifies whether clicking the “ENTER” button will input a newline (\\n) or not.\r\n * @property {boolean} tabCharOnTab Specifies whether clicking the “TAB” button will input a tab character (\\t) or not.\r\n * @property {string} inputName Allows you to use a single simple-keyboard instance for several inputs.\r\n * @property {number} maxLength Restrains all of simple-keyboard inputs to a certain length. This should be used in addition to the input element’s maxlengthattribute.\r\n * @property {object} maxLength Restrains simple-keyboard’s individual inputs to a certain length. This should be used in addition to the input element’s maxlengthattribute.\r\n * @property {boolean} syncInstanceInputs When set to true, this option synchronizes the internal input of every simple-keyboard instance.\r\n * @property {boolean} physicalKeyboardHighlight Enable highlighting of keys pressed on physical keyboard.\r\n * @property {string} physicalKeyboardHighlightTextColor Define the text color that the physical keyboard highlighted key should have.\r\n * @property {string} physicalKeyboardHighlightBgColor Define the background color that the physical keyboard highlighted key should have. \r\n * @property {function(button: string):string} onKeyPress Executes the callback function on key press. Returns button layout name (i.e.: “{shift}”).\r\n * @property {function(input: string):string} onChange Executes the callback function on input change. Returns the current input’s string.\r\n * @property {function} onRender Executes the callback function every time simple-keyboard is rendered (e.g: when you change layouts).\r\n * @property {function} onInit Executes the callback function once simple-keyboard is rendered for the first time (on initialization).\r\n * @property {function(inputs: object):object} onChangeAll Executes the callback function on input change. Returns the input object with all defined inputs.\r\n ", + "start": 1124, + "end": 3943, + "loc": { + "start": { + "line": 37, + "column": 4 + }, + "end": { + "line": 60, + "column": 7 + } + } + } + ] + }, + { + "type": "ExpressionStatement", + "start": 3949, + "end": 3972, + "loc": { + "start": { + "line": 61, + "column": 4 + }, + "end": { + "line": 61, + "column": 27 + } + }, + "expression": { + "type": "AssignmentExpression", + "start": 3949, + "end": 3971, + "loc": { + "start": { + "line": 61, + "column": 4 + }, + "end": { + "line": 61, + "column": 26 + } + }, + "operator": "=", + "left": { + "type": "MemberExpression", + "start": 3949, + "end": 3961, + "loc": { + "start": { + "line": 61, + "column": 4 + }, + "end": { + "line": 61, + "column": 16 + } + }, + "object": { + "type": "ThisExpression", + "start": 3949, + "end": 3953, + "loc": { + "start": { + "line": 61, + "column": 4 + }, + "end": { + "line": 61, + "column": 8 + } + }, + "leadingComments": null + }, + "property": { + "type": "Identifier", + "start": 3954, + "end": 3961, + "loc": { + "start": { + "line": 61, + "column": 9 + }, + "end": { + "line": 61, + "column": 16 + }, + "identifierName": "options" + }, + "name": "options" + }, + "computed": false, + "leadingComments": null + }, + "right": { + "type": "Identifier", + "start": 3964, + "end": 3971, + "loc": { + "start": { + "line": 61, + "column": 19 + }, + "end": { + "line": 61, + "column": 26 + }, + "identifierName": "options" + }, + "name": "options" + }, + "leadingComments": null + }, + "leadingComments": [ + { + "type": "CommentBlock", + "value": "*\r\n * @type {object}\r\n * @property {object} layout Modify the keyboard layout.\r\n * @property {string} layoutName Specifies which layout should be used.\r\n * @property {object} display Replaces variable buttons (such as {bksp}) with a human-friendly name (e.g.: “backspace”).\r\n * @property {boolean} mergeDisplay By default, when you set the display property, you replace the default one. This setting merges them instead.\r\n * @property {string} theme A prop to add your own css classes to the keyboard wrapper. You can add multiple classes separated by a space.\r\n * @property {Array} buttonTheme A prop to add your own css classes to one or several buttons.\r\n * @property {boolean} debug Runs a console.log every time a key is pressed. Displays the buttons pressed and the current input.\r\n * @property {boolean} newLineOnEnter Specifies whether clicking the “ENTER” button will input a newline (\\n) or not.\r\n * @property {boolean} tabCharOnTab Specifies whether clicking the “TAB” button will input a tab character (\\t) or not.\r\n * @property {string} inputName Allows you to use a single simple-keyboard instance for several inputs.\r\n * @property {number} maxLength Restrains all of simple-keyboard inputs to a certain length. This should be used in addition to the input element’s maxlengthattribute.\r\n * @property {object} maxLength Restrains simple-keyboard’s individual inputs to a certain length. This should be used in addition to the input element’s maxlengthattribute.\r\n * @property {boolean} syncInstanceInputs When set to true, this option synchronizes the internal input of every simple-keyboard instance.\r\n * @property {boolean} physicalKeyboardHighlight Enable highlighting of keys pressed on physical keyboard.\r\n * @property {string} physicalKeyboardHighlightTextColor Define the text color that the physical keyboard highlighted key should have.\r\n * @property {string} physicalKeyboardHighlightBgColor Define the background color that the physical keyboard highlighted key should have. \r\n * @property {function(button: string):string} onKeyPress Executes the callback function on key press. Returns button layout name (i.e.: “{shift}”).\r\n * @property {function(input: string):string} onChange Executes the callback function on input change. Returns the current input’s string.\r\n * @property {function} onRender Executes the callback function every time simple-keyboard is rendered (e.g: when you change layouts).\r\n * @property {function} onInit Executes the callback function once simple-keyboard is rendered for the first time (on initialization).\r\n * @property {function(inputs: object):object} onChangeAll Executes the callback function on input change. Returns the input object with all defined inputs.\r\n ", + "start": 1124, + "end": 3943, + "loc": { + "start": { + "line": 37, + "column": 4 + }, + "end": { + "line": 60, + "column": 7 + } + } + } + ] + }, + { + "type": "ExpressionStatement", + "start": 3978, + "end": 4041, + "loc": { + "start": { + "line": 62, + "column": 4 + }, + "end": { + "line": 62, + "column": 67 + } + }, + "expression": { + "type": "AssignmentExpression", + "start": 3978, + "end": 4040, + "loc": { + "start": { + "line": 62, + "column": 4 + }, + "end": { + "line": 62, + "column": 66 + } + }, + "operator": "=", + "left": { + "type": "MemberExpression", + "start": 3978, + "end": 4001, + "loc": { + "start": { + "line": 62, + "column": 4 + }, + "end": { + "line": 62, + "column": 27 + } + }, + "object": { + "type": "MemberExpression", + "start": 3978, + "end": 3990, + "loc": { + "start": { + "line": 62, + "column": 4 + }, + "end": { + "line": 62, + "column": 16 + } + }, + "object": { + "type": "ThisExpression", + "start": 3978, + "end": 3982, + "loc": { + "start": { + "line": 62, + "column": 4 + }, + "end": { + "line": 62, + "column": 8 + } + } + }, + "property": { + "type": "Identifier", + "start": 3983, + "end": 3990, + "loc": { + "start": { + "line": 62, + "column": 9 + }, + "end": { + "line": 62, + "column": 16 + }, + "identifierName": "options" + }, + "name": "options" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 3991, + "end": 4001, + "loc": { + "start": { + "line": 62, + "column": 17 + }, + "end": { + "line": 62, + "column": 27 + }, + "identifierName": "layoutName" + }, + "name": "layoutName" + }, + "computed": false + }, + "right": { + "type": "LogicalExpression", + "start": 4004, + "end": 4040, + "loc": { + "start": { + "line": 62, + "column": 30 + }, + "end": { + "line": 62, + "column": 66 + } + }, + "left": { + "type": "MemberExpression", + "start": 4004, + "end": 4027, + "loc": { + "start": { + "line": 62, + "column": 30 + }, + "end": { + "line": 62, + "column": 53 + } + }, + "object": { + "type": "MemberExpression", + "start": 4004, + "end": 4016, + "loc": { + "start": { + "line": 62, + "column": 30 + }, + "end": { + "line": 62, + "column": 42 + } + }, + "object": { + "type": "ThisExpression", + "start": 4004, + "end": 4008, + "loc": { + "start": { + "line": 62, + "column": 30 + }, + "end": { + "line": 62, + "column": 34 + } + } + }, + "property": { + "type": "Identifier", + "start": 4009, + "end": 4016, + "loc": { + "start": { + "line": 62, + "column": 35 + }, + "end": { + "line": 62, + "column": 42 + }, + "identifierName": "options" + }, + "name": "options" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 4017, + "end": 4027, + "loc": { + "start": { + "line": 62, + "column": 43 + }, + "end": { + "line": 62, + "column": 53 + }, + "identifierName": "layoutName" + }, + "name": "layoutName" + }, + "computed": false + }, + "operator": "||", + "right": { + "type": "StringLiteral", + "start": 4031, + "end": 4040, + "loc": { + "start": { + "line": 62, + "column": 57 + }, + "end": { + "line": 62, + "column": 66 + } + }, + "extra": { + "rawValue": "default", + "raw": "\"default\"" + }, + "value": "default" + } + } + } + }, + { + "type": "ExpressionStatement", + "start": 4047, + "end": 4109, + "loc": { + "start": { + "line": 63, + "column": 4 + }, + "end": { + "line": 63, + "column": 66 + } + }, + "expression": { + "type": "AssignmentExpression", + "start": 4047, + "end": 4108, + "loc": { + "start": { + "line": 63, + "column": 4 + }, + "end": { + "line": 63, + "column": 65 + } + }, + "operator": "=", + "left": { + "type": "MemberExpression", + "start": 4047, + "end": 4065, + "loc": { + "start": { + "line": 63, + "column": 4 + }, + "end": { + "line": 63, + "column": 22 + } + }, + "object": { + "type": "MemberExpression", + "start": 4047, + "end": 4059, + "loc": { + "start": { + "line": 63, + "column": 4 + }, + "end": { + "line": 63, + "column": 16 + } + }, + "object": { + "type": "ThisExpression", + "start": 4047, + "end": 4051, + "loc": { + "start": { + "line": 63, + "column": 4 + }, + "end": { + "line": 63, + "column": 8 + } + } + }, + "property": { + "type": "Identifier", + "start": 4052, + "end": 4059, + "loc": { + "start": { + "line": 63, + "column": 9 + }, + "end": { + "line": 63, + "column": 16 + }, + "identifierName": "options" + }, + "name": "options" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 4060, + "end": 4065, + "loc": { + "start": { + "line": 63, + "column": 17 + }, + "end": { + "line": 63, + "column": 22 + }, + "identifierName": "theme" + }, + "name": "theme" + }, + "computed": false + }, + "right": { + "type": "LogicalExpression", + "start": 4068, + "end": 4108, + "loc": { + "start": { + "line": 63, + "column": 25 + }, + "end": { + "line": 63, + "column": 65 + } + }, + "left": { + "type": "MemberExpression", + "start": 4068, + "end": 4086, + "loc": { + "start": { + "line": 63, + "column": 25 + }, + "end": { + "line": 63, + "column": 43 + } + }, + "object": { + "type": "MemberExpression", + "start": 4068, + "end": 4080, + "loc": { + "start": { + "line": 63, + "column": 25 + }, + "end": { + "line": 63, + "column": 37 + } + }, + "object": { + "type": "ThisExpression", + "start": 4068, + "end": 4072, + "loc": { + "start": { + "line": 63, + "column": 25 + }, + "end": { + "line": 63, + "column": 29 + } + } + }, + "property": { + "type": "Identifier", + "start": 4073, + "end": 4080, + "loc": { + "start": { + "line": 63, + "column": 30 + }, + "end": { + "line": 63, + "column": 37 + }, + "identifierName": "options" + }, + "name": "options" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 4081, + "end": 4086, + "loc": { + "start": { + "line": 63, + "column": 38 + }, + "end": { + "line": 63, + "column": 43 + }, + "identifierName": "theme" + }, + "name": "theme" + }, + "computed": false + }, + "operator": "||", + "right": { + "type": "StringLiteral", + "start": 4090, + "end": 4108, + "loc": { + "start": { + "line": 63, + "column": 47 + }, + "end": { + "line": 63, + "column": 65 + } + }, + "extra": { + "rawValue": "hg-theme-default", + "raw": "\"hg-theme-default\"" + }, + "value": "hg-theme-default" + } + } + } + }, + { + "type": "ExpressionStatement", + "start": 4115, + "end": 4176, + "loc": { + "start": { + "line": 64, + "column": 4 + }, + "end": { + "line": 64, + "column": 65 + } + }, + "expression": { + "type": "AssignmentExpression", + "start": 4115, + "end": 4175, + "loc": { + "start": { + "line": 64, + "column": 4 + }, + "end": { + "line": 64, + "column": 64 + } + }, + "operator": "=", + "left": { + "type": "MemberExpression", + "start": 4115, + "end": 4137, + "loc": { + "start": { + "line": 64, + "column": 4 + }, + "end": { + "line": 64, + "column": 26 + } + }, + "object": { + "type": "MemberExpression", + "start": 4115, + "end": 4127, + "loc": { + "start": { + "line": 64, + "column": 4 + }, + "end": { + "line": 64, + "column": 16 + } + }, + "object": { + "type": "ThisExpression", + "start": 4115, + "end": 4119, + "loc": { + "start": { + "line": 64, + "column": 4 + }, + "end": { + "line": 64, + "column": 8 + } + } + }, + "property": { + "type": "Identifier", + "start": 4120, + "end": 4127, + "loc": { + "start": { + "line": 64, + "column": 9 + }, + "end": { + "line": 64, + "column": 16 + }, + "identifierName": "options" + }, + "name": "options" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 4128, + "end": 4137, + "loc": { + "start": { + "line": 64, + "column": 17 + }, + "end": { + "line": 64, + "column": 26 + }, + "identifierName": "inputName" + }, + "name": "inputName" + }, + "computed": false + }, + "right": { + "type": "LogicalExpression", + "start": 4140, + "end": 4175, + "loc": { + "start": { + "line": 64, + "column": 29 + }, + "end": { + "line": 64, + "column": 64 + } + }, + "left": { + "type": "MemberExpression", + "start": 4140, + "end": 4162, + "loc": { + "start": { + "line": 64, + "column": 29 + }, + "end": { + "line": 64, + "column": 51 + } + }, + "object": { + "type": "MemberExpression", + "start": 4140, + "end": 4152, + "loc": { + "start": { + "line": 64, + "column": 29 + }, + "end": { + "line": 64, + "column": 41 + } + }, + "object": { + "type": "ThisExpression", + "start": 4140, + "end": 4144, + "loc": { + "start": { + "line": 64, + "column": 29 + }, + "end": { + "line": 64, + "column": 33 + } + } + }, + "property": { + "type": "Identifier", + "start": 4145, + "end": 4152, + "loc": { + "start": { + "line": 64, + "column": 34 + }, + "end": { + "line": 64, + "column": 41 + }, + "identifierName": "options" + }, + "name": "options" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 4153, + "end": 4162, + "loc": { + "start": { + "line": 64, + "column": 42 + }, + "end": { + "line": 64, + "column": 51 + }, + "identifierName": "inputName" + }, + "name": "inputName" + }, + "computed": false + }, + "operator": "||", + "right": { + "type": "StringLiteral", + "start": 4166, + "end": 4175, + "loc": { + "start": { + "line": 64, + "column": 55 + }, + "end": { + "line": 64, + "column": 64 + } + }, + "extra": { + "rawValue": "default", + "raw": "\"default\"" + }, + "value": "default" + } + } + }, + "trailingComments": [ + { + "type": "CommentBlock", + "value": "*\r\n * simple-keyboard uses a non-persistent internal input to keep track of the entered string (the variable `keyboard.input`).\r\n * This removes any dependency to input DOM elements. You can type and directly display the value in a div element, for example.\r\n * @example\r\n * // To get entered input\r\n * let input = keyboard.getInput();\r\n * \r\n * // To clear entered input.\r\n * keyboard.clearInput();\r\n * \r\n * @type {object}\r\n * @property {object} default Default SimpleKeyboard internal input.\r\n * @property {object} myInputName Example input that can be set through `options.inputName:\"myInputName\"`.\r\n ", + "start": 4184, + "end": 4843, + "loc": { + "start": { + "line": 66, + "column": 4 + }, + "end": { + "line": 79, + "column": 7 + } + } + } + ] + }, + { + "type": "ExpressionStatement", + "start": 4849, + "end": 4865, + "loc": { + "start": { + "line": 80, + "column": 4 + }, + "end": { + "line": 80, + "column": 20 + } + }, + "expression": { + "type": "AssignmentExpression", + "start": 4849, + "end": 4864, + "loc": { + "start": { + "line": 80, + "column": 4 + }, + "end": { + "line": 80, + "column": 19 + } + }, + "operator": "=", + "left": { + "type": "MemberExpression", + "start": 4849, + "end": 4859, + "loc": { + "start": { + "line": 80, + "column": 4 + }, + "end": { + "line": 80, + "column": 14 + } + }, + "object": { + "type": "ThisExpression", + "start": 4849, + "end": 4853, + "loc": { + "start": { + "line": 80, + "column": 4 + }, + "end": { + "line": 80, + "column": 8 + } + }, + "leadingComments": null + }, + "property": { + "type": "Identifier", + "start": 4854, + "end": 4859, + "loc": { + "start": { + "line": 80, + "column": 9 + }, + "end": { + "line": 80, + "column": 14 + }, + "identifierName": "input" + }, + "name": "input" + }, + "computed": false, + "leadingComments": null + }, + "right": { + "type": "ObjectExpression", + "start": 4862, + "end": 4864, + "loc": { + "start": { + "line": 80, + "column": 17 + }, + "end": { + "line": 80, + "column": 19 + } + }, + "properties": [] + }, + "leadingComments": null + }, + "leadingComments": [ + { + "type": "CommentBlock", + "value": "*\r\n * simple-keyboard uses a non-persistent internal input to keep track of the entered string (the variable `keyboard.input`).\r\n * This removes any dependency to input DOM elements. You can type and directly display the value in a div element, for example.\r\n * @example\r\n * // To get entered input\r\n * let input = keyboard.getInput();\r\n * \r\n * // To clear entered input.\r\n * keyboard.clearInput();\r\n * \r\n * @type {object}\r\n * @property {object} default Default SimpleKeyboard internal input.\r\n * @property {object} myInputName Example input that can be set through `options.inputName:\"myInputName\"`.\r\n ", + "start": 4184, + "end": 4843, + "loc": { + "start": { + "line": 66, + "column": 4 + }, + "end": { + "line": 79, + "column": 7 + } + } + } + ] + }, + { + "type": "ExpressionStatement", + "start": 4871, + "end": 4911, + "loc": { + "start": { + "line": 81, + "column": 4 + }, + "end": { + "line": 81, + "column": 44 + } + }, + "expression": { + "type": "AssignmentExpression", + "start": 4871, + "end": 4910, + "loc": { + "start": { + "line": 81, + "column": 4 + }, + "end": { + "line": 81, + "column": 43 + } + }, + "operator": "=", + "left": { + "type": "MemberExpression", + "start": 4871, + "end": 4905, + "loc": { + "start": { + "line": 81, + "column": 4 + }, + "end": { + "line": 81, + "column": 38 + } + }, + "object": { + "type": "MemberExpression", + "start": 4871, + "end": 4881, + "loc": { + "start": { + "line": 81, + "column": 4 + }, + "end": { + "line": 81, + "column": 14 + } + }, + "object": { + "type": "ThisExpression", + "start": 4871, + "end": 4875, + "loc": { + "start": { + "line": 81, + "column": 4 + }, + "end": { + "line": 81, + "column": 8 + } + } + }, + "property": { + "type": "Identifier", + "start": 4876, + "end": 4881, + "loc": { + "start": { + "line": 81, + "column": 9 + }, + "end": { + "line": 81, + "column": 14 + }, + "identifierName": "input" + }, + "name": "input" + }, + "computed": false + }, + "property": { + "type": "MemberExpression", + "start": 4882, + "end": 4904, + "loc": { + "start": { + "line": 81, + "column": 15 + }, + "end": { + "line": 81, + "column": 37 + } + }, + "object": { + "type": "MemberExpression", + "start": 4882, + "end": 4894, + "loc": { + "start": { + "line": 81, + "column": 15 + }, + "end": { + "line": 81, + "column": 27 + } + }, + "object": { + "type": "ThisExpression", + "start": 4882, + "end": 4886, + "loc": { + "start": { + "line": 81, + "column": 15 + }, + "end": { + "line": 81, + "column": 19 + } + } + }, + "property": { + "type": "Identifier", + "start": 4887, + "end": 4894, + "loc": { + "start": { + "line": 81, + "column": 20 + }, + "end": { + "line": 81, + "column": 27 + }, + "identifierName": "options" + }, + "name": "options" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 4895, + "end": 4904, + "loc": { + "start": { + "line": 81, + "column": 28 + }, + "end": { + "line": 81, + "column": 37 + }, + "identifierName": "inputName" + }, + "name": "inputName" + }, + "computed": false + }, + "computed": true + }, + "right": { + "type": "StringLiteral", + "start": 4908, + "end": 4910, + "loc": { + "start": { + "line": 81, + "column": 41 + }, + "end": { + "line": 81, + "column": 43 + } + }, + "extra": { + "rawValue": "", + "raw": "''" + }, + "value": "" + } + }, + "trailingComments": [ + { + "type": "CommentBlock", + "value": "*\r\n * @type {string} DOM class of the keyboard wrapper, normally \"simple-keyboard\" by default.\r\n ", + "start": 4919, + "end": 5028, + "loc": { + "start": { + "line": 83, + "column": 4 + }, + "end": { + "line": 85, + "column": 7 + } + } + } + ] + }, + { + "type": "ExpressionStatement", + "start": 5034, + "end": 5095, + "loc": { + "start": { + "line": 86, + "column": 4 + }, + "end": { + "line": 86, + "column": 65 + } + }, + "expression": { + "type": "AssignmentExpression", + "start": 5034, + "end": 5094, + "loc": { + "start": { + "line": 86, + "column": 4 + }, + "end": { + "line": 86, + "column": 64 + } + }, + "operator": "=", + "left": { + "type": "MemberExpression", + "start": 5034, + "end": 5055, + "loc": { + "start": { + "line": 86, + "column": 4 + }, + "end": { + "line": 86, + "column": 25 + } + }, + "object": { + "type": "ThisExpression", + "start": 5034, + "end": 5038, + "loc": { + "start": { + "line": 86, + "column": 4 + }, + "end": { + "line": 86, + "column": 8 + } + }, + "leadingComments": null + }, + "property": { + "type": "Identifier", + "start": 5039, + "end": 5055, + "loc": { + "start": { + "line": 86, + "column": 9 + }, + "end": { + "line": 86, + "column": 25 + }, + "identifierName": "keyboardDOMClass" + }, + "name": "keyboardDOMClass" + }, + "computed": false, + "leadingComments": null + }, + "right": { + "type": "CallExpression", + "start": 5058, + "end": 5094, + "loc": { + "start": { + "line": 86, + "column": 28 + }, + "end": { + "line": 86, + "column": 64 + } + }, + "callee": { + "type": "MemberExpression", + "start": 5058, + "end": 5090, + "loc": { + "start": { + "line": 86, + "column": 28 + }, + "end": { + "line": 86, + "column": 60 + } + }, + "object": { + "type": "CallExpression", + "start": 5058, + "end": 5085, + "loc": { + "start": { + "line": 86, + "column": 28 + }, + "end": { + "line": 86, + "column": 55 + } + }, + "callee": { + "type": "MemberExpression", + "start": 5058, + "end": 5080, + "loc": { + "start": { + "line": 86, + "column": 28 + }, + "end": { + "line": 86, + "column": 50 + } + }, + "object": { + "type": "Identifier", + "start": 5058, + "end": 5074, + "loc": { + "start": { + "line": 86, + "column": 28 + }, + "end": { + "line": 86, + "column": 44 + }, + "identifierName": "keyboardDOMQuery" + }, + "name": "keyboardDOMQuery" + }, + "property": { + "type": "Identifier", + "start": 5075, + "end": 5080, + "loc": { + "start": { + "line": 86, + "column": 45 + }, + "end": { + "line": 86, + "column": 50 + }, + "identifierName": "split" + }, + "name": "split" + }, + "computed": false + }, + "arguments": [ + { + "type": "StringLiteral", + "start": 5081, + "end": 5084, + "loc": { + "start": { + "line": 86, + "column": 51 + }, + "end": { + "line": 86, + "column": 54 + } + }, + "extra": { + "rawValue": ".", + "raw": "'.'" + }, + "value": "." + } + ] + }, + "property": { + "type": "Identifier", + "start": 5086, + "end": 5090, + "loc": { + "start": { + "line": 86, + "column": 56 + }, + "end": { + "line": 86, + "column": 60 + }, + "identifierName": "join" + }, + "name": "join" + }, + "computed": false + }, + "arguments": [ + { + "type": "StringLiteral", + "start": 5091, + "end": 5093, + "loc": { + "start": { + "line": 86, + "column": 61 + }, + "end": { + "line": 86, + "column": 63 + } + }, + "extra": { + "rawValue": "", + "raw": "\"\"" + }, + "value": "" + } + ] + }, + "leadingComments": null + }, + "leadingComments": [ + { + "type": "CommentBlock", + "value": "*\r\n * @type {string} DOM class of the keyboard wrapper, normally \"simple-keyboard\" by default.\r\n ", + "start": 4919, + "end": 5028, + "loc": { + "start": { + "line": 83, + "column": 4 + }, + "end": { + "line": 85, + "column": 7 + } + } + } + ], + "trailingComments": [ + { + "type": "CommentBlock", + "value": "*\r\n * @type {object} Contains the DOM elements of every rendered button, the key being the button's layout name (e.g.: \"{enter}\").\r\n ", + "start": 5103, + "end": 5248, + "loc": { + "start": { + "line": 88, + "column": 4 + }, + "end": { + "line": 90, + "column": 7 + } + } + } + ] + }, + { + "type": "ExpressionStatement", + "start": 5254, + "end": 5279, + "loc": { + "start": { + "line": 91, + "column": 4 + }, + "end": { + "line": 91, + "column": 29 + } + }, + "expression": { + "type": "AssignmentExpression", + "start": 5254, + "end": 5278, + "loc": { + "start": { + "line": 91, + "column": 4 + }, + "end": { + "line": 91, + "column": 28 + } + }, + "operator": "=", + "left": { + "type": "MemberExpression", + "start": 5254, + "end": 5273, + "loc": { + "start": { + "line": 91, + "column": 4 + }, + "end": { + "line": 91, + "column": 23 + } + }, + "object": { + "type": "ThisExpression", + "start": 5254, + "end": 5258, + "loc": { + "start": { + "line": 91, + "column": 4 + }, + "end": { + "line": 91, + "column": 8 + } + }, + "leadingComments": null + }, + "property": { + "type": "Identifier", + "start": 5259, + "end": 5273, + "loc": { + "start": { + "line": 91, + "column": 9 + }, + "end": { + "line": 91, + "column": 23 + }, + "identifierName": "buttonElements" + }, + "name": "buttonElements" + }, + "computed": false, + "leadingComments": null + }, + "right": { + "type": "ObjectExpression", + "start": 5276, + "end": 5278, + "loc": { + "start": { + "line": 91, + "column": 26 + }, + "end": { + "line": 91, + "column": 28 + } + }, + "properties": [] + }, + "leadingComments": null + }, + "leadingComments": [ + { + "type": "CommentBlock", + "value": "*\r\n * @type {object} Contains the DOM elements of every rendered button, the key being the button's layout name (e.g.: \"{enter}\").\r\n ", + "start": 5103, + "end": 5248, + "loc": { + "start": { + "line": 88, + "column": 4 + }, + "end": { + "line": 90, + "column": 7 + } + } + } + ], + "trailingComments": [ + { + "type": "CommentBlock", + "value": "*\r\n * Rendering keyboard\r\n ", + "start": 5287, + "end": 5326, + "loc": { + "start": { + "line": 93, + "column": 4 + }, + "end": { + "line": 95, + "column": 7 + } + } + } + ] + }, + { + "type": "IfStatement", + "start": 5332, + "end": 5511, + "loc": { + "start": { + "line": 96, + "column": 4 + }, + "end": { + "line": 101, + "column": 5 + } + }, + "test": { + "type": "MemberExpression", + "start": 5335, + "end": 5351, + "loc": { + "start": { + "line": 96, + "column": 7 + }, + "end": { + "line": 96, + "column": 23 + } + }, + "object": { + "type": "ThisExpression", + "start": 5335, + "end": 5339, + "loc": { + "start": { + "line": 96, + "column": 7 + }, + "end": { + "line": 96, + "column": 11 + } + }, + "leadingComments": null + }, + "property": { + "type": "Identifier", + "start": 5340, + "end": 5351, + "loc": { + "start": { + "line": 96, + "column": 12 + }, + "end": { + "line": 96, + "column": 23 + }, + "identifierName": "keyboardDOM" + }, + "name": "keyboardDOM" + }, + "computed": false, + "leadingComments": null + }, + "consequent": { + "type": "ExpressionStatement", + "start": 5360, + "end": 5374, + "loc": { + "start": { + "line": 97, + "column": 6 + }, + "end": { + "line": 97, + "column": 20 + } + }, + "expression": { + "type": "CallExpression", + "start": 5360, + "end": 5373, + "loc": { + "start": { + "line": 97, + "column": 6 + }, + "end": { + "line": 97, + "column": 19 + } + }, + "callee": { + "type": "MemberExpression", + "start": 5360, + "end": 5371, + "loc": { + "start": { + "line": 97, + "column": 6 + }, + "end": { + "line": 97, + "column": 17 + } + }, + "object": { + "type": "ThisExpression", + "start": 5360, + "end": 5364, + "loc": { + "start": { + "line": 97, + "column": 6 + }, + "end": { + "line": 97, + "column": 10 + } + } + }, + "property": { + "type": "Identifier", + "start": 5365, + "end": 5371, + "loc": { + "start": { + "line": 97, + "column": 11 + }, + "end": { + "line": 97, + "column": 17 + }, + "identifierName": "render" + }, + "name": "render" + }, + "computed": false + }, + "arguments": [] + } + }, + "alternate": { + "type": "BlockStatement", + "start": 5385, + "end": 5511, + "loc": { + "start": { + "line": 98, + "column": 9 + }, + "end": { + "line": 101, + "column": 5 + } + }, + "body": [ + { + "type": "ExpressionStatement", + "start": 5394, + "end": 5458, + "loc": { + "start": { + "line": 99, + "column": 6 + }, + "end": { + "line": 99, + "column": 70 + } + }, + "expression": { + "type": "CallExpression", + "start": 5394, + "end": 5457, + "loc": { + "start": { + "line": 99, + "column": 6 + }, + "end": { + "line": 99, + "column": 69 + } + }, + "callee": { + "type": "MemberExpression", + "start": 5394, + "end": 5406, + "loc": { + "start": { + "line": 99, + "column": 6 + }, + "end": { + "line": 99, + "column": 18 + } + }, + "object": { + "type": "Identifier", + "start": 5394, + "end": 5401, + "loc": { + "start": { + "line": 99, + "column": 6 + }, + "end": { + "line": 99, + "column": 13 + }, + "identifierName": "console" + }, + "name": "console" + }, + "property": { + "type": "Identifier", + "start": 5402, + "end": 5406, + "loc": { + "start": { + "line": 99, + "column": 14 + }, + "end": { + "line": 99, + "column": 18 + }, + "identifierName": "warn" + }, + "name": "warn" + }, + "computed": false + }, + "arguments": [ + { + "type": "TemplateLiteral", + "start": 5407, + "end": 5456, + "loc": { + "start": { + "line": 99, + "column": 19 + }, + "end": { + "line": 99, + "column": 68 + } + }, + "expressions": [ + { + "type": "Identifier", + "start": 5411, + "end": 5427, + "loc": { + "start": { + "line": 99, + "column": 23 + }, + "end": { + "line": 99, + "column": 39 + }, + "identifierName": "keyboardDOMQuery" + }, + "name": "keyboardDOMQuery" + } + ], + "quasis": [ + { + "type": "TemplateElement", + "start": 5408, + "end": 5409, + "loc": { + "start": { + "line": 99, + "column": 20 + }, + "end": { + "line": 99, + "column": 21 + } + }, + "value": { + "raw": "\"", + "cooked": "\"" + }, + "tail": false + }, + { + "type": "TemplateElement", + "start": 5428, + "end": 5455, + "loc": { + "start": { + "line": 99, + "column": 40 + }, + "end": { + "line": 99, + "column": 67 + } + }, + "value": { + "raw": "\" was not found in the DOM.", + "cooked": "\" was not found in the DOM." + }, + "tail": true + } + ] + } + ] + } + }, + { + "type": "ThrowStatement", + "start": 5466, + "end": 5504, + "loc": { + "start": { + "line": 100, + "column": 6 + }, + "end": { + "line": 100, + "column": 44 + } + }, + "argument": { + "type": "NewExpression", + "start": 5472, + "end": 5503, + "loc": { + "start": { + "line": 100, + "column": 12 + }, + "end": { + "line": 100, + "column": 43 + } + }, + "callee": { + "type": "Identifier", + "start": 5476, + "end": 5481, + "loc": { + "start": { + "line": 100, + "column": 16 + }, + "end": { + "line": 100, + "column": 21 + }, + "identifierName": "Error" + }, + "name": "Error" + }, + "arguments": [ + { + "type": "StringLiteral", + "start": 5482, + "end": 5502, + "loc": { + "start": { + "line": 100, + "column": 22 + }, + "end": { + "line": 100, + "column": 42 + } + }, + "extra": { + "rawValue": "KEYBOARD_DOM_ERROR", + "raw": "\"KEYBOARD_DOM_ERROR\"" + }, + "value": "KEYBOARD_DOM_ERROR" + } + ] + } + } + ], + "directives": [], + "trailingComments": null + }, + "leadingComments": [ + { + "type": "CommentBlock", + "value": "*\r\n * Rendering keyboard\r\n ", + "start": 5287, + "end": 5326, + "loc": { + "start": { + "line": 93, + "column": 4 + }, + "end": { + "line": 95, + "column": 7 + } + } + } + ], + "trailingComments": [ + { + "type": "CommentBlock", + "value": "*\r\n * Saving instance\r\n * This enables multiple simple-keyboard support with easier management\r\n ", + "start": 5519, + "end": 5632, + "loc": { + "start": { + "line": 103, + "column": 4 + }, + "end": { + "line": 106, + "column": 7 + } + } + } + ] + }, + { + "type": "IfStatement", + "start": 5638, + "end": 5723, + "loc": { + "start": { + "line": 107, + "column": 4 + }, + "end": { + "line": 108, + "column": 45 + } + }, + "test": { + "type": "UnaryExpression", + "start": 5641, + "end": 5675, + "loc": { + "start": { + "line": 107, + "column": 7 + }, + "end": { + "line": 107, + "column": 41 + } + }, + "operator": "!", + "prefix": true, + "argument": { + "type": "MemberExpression", + "start": 5642, + "end": 5675, + "loc": { + "start": { + "line": 107, + "column": 8 + }, + "end": { + "line": 107, + "column": 41 + } + }, + "object": { + "type": "Identifier", + "start": 5642, + "end": 5648, + "loc": { + "start": { + "line": 107, + "column": 8 + }, + "end": { + "line": 107, + "column": 14 + }, + "identifierName": "window" + }, + "name": "window", + "leadingComments": null + }, + "property": { + "type": "StringLiteral", + "start": 5649, + "end": 5674, + "loc": { + "start": { + "line": 107, + "column": 15 + }, + "end": { + "line": 107, + "column": 40 + } + }, + "extra": { + "rawValue": "SimpleKeyboardInstances", + "raw": "'SimpleKeyboardInstances'" + }, + "value": "SimpleKeyboardInstances" + }, + "computed": true, + "leadingComments": null + }, + "extra": { + "parenthesizedArgument": false + }, + "leadingComments": null + }, + "consequent": { + "type": "ExpressionStatement", + "start": 5684, + "end": 5723, + "loc": { + "start": { + "line": 108, + "column": 6 + }, + "end": { + "line": 108, + "column": 45 + } + }, + "expression": { + "type": "AssignmentExpression", + "start": 5684, + "end": 5722, + "loc": { + "start": { + "line": 108, + "column": 6 + }, + "end": { + "line": 108, + "column": 44 + } + }, + "operator": "=", + "left": { + "type": "MemberExpression", + "start": 5684, + "end": 5717, + "loc": { + "start": { + "line": 108, + "column": 6 + }, + "end": { + "line": 108, + "column": 39 + } + }, + "object": { + "type": "Identifier", + "start": 5684, + "end": 5690, + "loc": { + "start": { + "line": 108, + "column": 6 + }, + "end": { + "line": 108, + "column": 12 + }, + "identifierName": "window" + }, + "name": "window" + }, + "property": { + "type": "StringLiteral", + "start": 5691, + "end": 5716, + "loc": { + "start": { + "line": 108, + "column": 13 + }, + "end": { + "line": 108, + "column": 38 + } + }, + "extra": { + "rawValue": "SimpleKeyboardInstances", + "raw": "'SimpleKeyboardInstances'" + }, + "value": "SimpleKeyboardInstances" + }, + "computed": true + }, + "right": { + "type": "ObjectExpression", + "start": 5720, + "end": 5722, + "loc": { + "start": { + "line": 108, + "column": 42 + }, + "end": { + "line": 108, + "column": 44 + } + }, + "properties": [] + } + } + }, + "alternate": null, + "leadingComments": [ + { + "type": "CommentBlock", + "value": "*\r\n * Saving instance\r\n * This enables multiple simple-keyboard support with easier management\r\n ", + "start": 5519, + "end": 5632, + "loc": { + "start": { + "line": 103, + "column": 4 + }, + "end": { + "line": 106, + "column": 7 + } + } + } + ] + }, + { + "type": "ExpressionStatement", + "start": 5737, + "end": 5827, + "loc": { + "start": { + "line": 110, + "column": 4 + }, + "end": { + "line": 110, + "column": 94 + } + }, + "expression": { + "type": "AssignmentExpression", + "start": 5737, + "end": 5826, + "loc": { + "start": { + "line": 110, + "column": 4 + }, + "end": { + "line": 110, + "column": 93 + } + }, + "operator": "=", + "left": { + "type": "MemberExpression", + "start": 5737, + "end": 5819, + "loc": { + "start": { + "line": 110, + "column": 4 + }, + "end": { + "line": 110, + "column": 86 + } + }, + "object": { + "type": "MemberExpression", + "start": 5737, + "end": 5770, + "loc": { + "start": { + "line": 110, + "column": 4 + }, + "end": { + "line": 110, + "column": 37 + } + }, + "object": { + "type": "Identifier", + "start": 5737, + "end": 5743, + "loc": { + "start": { + "line": 110, + "column": 4 + }, + "end": { + "line": 110, + "column": 10 + }, + "identifierName": "window" + }, + "name": "window" + }, + "property": { + "type": "StringLiteral", + "start": 5744, + "end": 5769, + "loc": { + "start": { + "line": 110, + "column": 11 + }, + "end": { + "line": 110, + "column": 36 + } + }, + "extra": { + "rawValue": "SimpleKeyboardInstances", + "raw": "'SimpleKeyboardInstances'" + }, + "value": "SimpleKeyboardInstances" + }, + "computed": true + }, + "property": { + "type": "CallExpression", + "start": 5771, + "end": 5818, + "loc": { + "start": { + "line": 110, + "column": 38 + }, + "end": { + "line": 110, + "column": 85 + } + }, + "callee": { + "type": "MemberExpression", + "start": 5771, + "end": 5795, + "loc": { + "start": { + "line": 110, + "column": 38 + }, + "end": { + "line": 110, + "column": 62 + } + }, + "object": { + "type": "MemberExpression", + "start": 5771, + "end": 5785, + "loc": { + "start": { + "line": 110, + "column": 38 + }, + "end": { + "line": 110, + "column": 52 + } + }, + "object": { + "type": "ThisExpression", + "start": 5771, + "end": 5775, + "loc": { + "start": { + "line": 110, + "column": 38 + }, + "end": { + "line": 110, + "column": 42 + } + } + }, + "property": { + "type": "Identifier", + "start": 5776, + "end": 5785, + "loc": { + "start": { + "line": 110, + "column": 43 + }, + "end": { + "line": 110, + "column": 52 + }, + "identifierName": "utilities" + }, + "name": "utilities" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 5786, + "end": 5795, + "loc": { + "start": { + "line": 110, + "column": 53 + }, + "end": { + "line": 110, + "column": 62 + }, + "identifierName": "camelCase" + }, + "name": "camelCase" + }, + "computed": false + }, + "arguments": [ + { + "type": "MemberExpression", + "start": 5796, + "end": 5817, + "loc": { + "start": { + "line": 110, + "column": 63 + }, + "end": { + "line": 110, + "column": 84 + } + }, + "object": { + "type": "ThisExpression", + "start": 5796, + "end": 5800, + "loc": { + "start": { + "line": 110, + "column": 63 + }, + "end": { + "line": 110, + "column": 67 + } + } + }, + "property": { + "type": "Identifier", + "start": 5801, + "end": 5817, + "loc": { + "start": { + "line": 110, + "column": 68 + }, + "end": { + "line": 110, + "column": 84 + }, + "identifierName": "keyboardDOMClass" + }, + "name": "keyboardDOMClass" + }, + "computed": false + } + ] + }, + "computed": true + }, + "right": { + "type": "ThisExpression", + "start": 5822, + "end": 5826, + "loc": { + "start": { + "line": 110, + "column": 89 + }, + "end": { + "line": 110, + "column": 93 + } + } + } + }, + "trailingComments": [ + { + "type": "CommentBlock", + "value": "*\r\n * Physical Keyboard support\r\n ", + "start": 5835, + "end": 5881, + "loc": { + "start": { + "line": 112, + "column": 4 + }, + "end": { + "line": 114, + "column": 7 + } + } + } + ] + }, + { + "type": "ExpressionStatement", + "start": 5887, + "end": 5947, + "loc": { + "start": { + "line": 115, + "column": 4 + }, + "end": { + "line": 115, + "column": 64 + } + }, + "expression": { + "type": "AssignmentExpression", + "start": 5887, + "end": 5946, + "loc": { + "start": { + "line": 115, + "column": 4 + }, + "end": { + "line": 115, + "column": 63 + } + }, + "operator": "=", + "left": { + "type": "MemberExpression", + "start": 5887, + "end": 5917, + "loc": { + "start": { + "line": 115, + "column": 4 + }, + "end": { + "line": 115, + "column": 34 + } + }, + "object": { + "type": "ThisExpression", + "start": 5887, + "end": 5891, + "loc": { + "start": { + "line": 115, + "column": 4 + }, + "end": { + "line": 115, + "column": 8 + } + }, + "leadingComments": null + }, + "property": { + "type": "Identifier", + "start": 5892, + "end": 5917, + "loc": { + "start": { + "line": 115, + "column": 9 + }, + "end": { + "line": 115, + "column": 34 + }, + "identifierName": "physicalKeyboardInterface" + }, + "name": "physicalKeyboardInterface" + }, + "computed": false, + "leadingComments": null + }, + "right": { + "type": "NewExpression", + "start": 5920, + "end": 5946, + "loc": { + "start": { + "line": 115, + "column": 37 + }, + "end": { + "line": 115, + "column": 63 + } + }, + "callee": { + "type": "Identifier", + "start": 5924, + "end": 5940, + "loc": { + "start": { + "line": 115, + "column": 41 + }, + "end": { + "line": 115, + "column": 57 + }, + "identifierName": "PhysicalKeyboard" + }, + "name": "PhysicalKeyboard" + }, + "arguments": [ + { + "type": "ThisExpression", + "start": 5941, + "end": 5945, + "loc": { + "start": { + "line": 115, + "column": 58 + }, + "end": { + "line": 115, + "column": 62 + } + } + } + ] + }, + "leadingComments": null + }, + "leadingComments": [ + { + "type": "CommentBlock", + "value": "*\r\n * Physical Keyboard support\r\n ", + "start": 5835, + "end": 5881, + "loc": { + "start": { + "line": 112, + "column": 4 + }, + "end": { + "line": 114, + "column": 7 + } + } + } + ] + } + ], + "directives": [], + "trailingComments": null + }, + "leadingComments": [ + { + "type": "CommentBlock", + "value": "*\r\n * Creates an instance of SimpleKeyboard\r\n * @param {Array} params If first parameter is a string, it is considered the container class. The second parameter is then considered the options object. If first parameter is an object, it is considered the options object.\r\n ", + "start": 393, + "end": 675, + "loc": { + "start": { + "line": 16, + "column": 2 + }, + "end": { + "line": 19, + "column": 5 + } + } + } + ], + "trailingComments": [ + { + "type": "CommentBlock", + "value": "*\r\n * Handles clicks made to keyboard buttons\r\n * @param {string} button The button's layout name.\r\n ", + "start": 5956, + "end": 6068, + "loc": { + "start": { + "line": 117, + "column": 2 + }, + "end": { + "line": 120, + "column": 5 + } + } + } + ] + }, + { + "type": "ClassProperty", + "start": 6072, + "end": 7466, + "loc": { + "start": { + "line": 121, + "column": 2 + }, + "end": { + "line": 171, + "column": 3 + } + }, + "static": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 6072, + "end": 6091, + "loc": { + "start": { + "line": 121, + "column": 2 + }, + "end": { + "line": 121, + "column": 21 + }, + "identifierName": "handleButtonClicked" + }, + "name": "handleButtonClicked", + "leadingComments": null + }, + "value": { + "type": "ArrowFunctionExpression", + "start": 6094, + "end": 7466, + "loc": { + "start": { + "line": 121, + "column": 24 + }, + "end": { + "line": 171, + "column": 3 + } + }, + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 6095, + "end": 6101, + "loc": { + "start": { + "line": 121, + "column": 25 + }, + "end": { + "line": 121, + "column": 31 + }, + "identifierName": "button" + }, + "name": "button" + } + ], + "body": { + "type": "BlockStatement", + "start": 6106, + "end": 7466, + "loc": { + "start": { + "line": 121, + "column": 36 + }, + "end": { + "line": 171, + "column": 3 + } + }, + "body": [ + { + "type": "VariableDeclaration", + "start": 6113, + "end": 6144, + "loc": { + "start": { + "line": 122, + "column": 4 + }, + "end": { + "line": 122, + "column": 35 + } + }, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 6117, + "end": 6143, + "loc": { + "start": { + "line": 122, + "column": 8 + }, + "end": { + "line": 122, + "column": 34 + } + }, + "id": { + "type": "Identifier", + "start": 6117, + "end": 6122, + "loc": { + "start": { + "line": 122, + "column": 8 + }, + "end": { + "line": 122, + "column": 13 + }, + "identifierName": "debug" + }, + "name": "debug" + }, + "init": { + "type": "MemberExpression", + "start": 6125, + "end": 6143, + "loc": { + "start": { + "line": 122, + "column": 16 + }, + "end": { + "line": 122, + "column": 34 + } + }, + "object": { + "type": "MemberExpression", + "start": 6125, + "end": 6137, + "loc": { + "start": { + "line": 122, + "column": 16 + }, + "end": { + "line": 122, + "column": 28 + } + }, + "object": { + "type": "ThisExpression", + "start": 6125, + "end": 6129, + "loc": { + "start": { + "line": 122, + "column": 16 + }, + "end": { + "line": 122, + "column": 20 + } + } + }, + "property": { + "type": "Identifier", + "start": 6130, + "end": 6137, + "loc": { + "start": { + "line": 122, + "column": 21 + }, + "end": { + "line": 122, + "column": 28 + }, + "identifierName": "options" + }, + "name": "options" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 6138, + "end": 6143, + "loc": { + "start": { + "line": 122, + "column": 29 + }, + "end": { + "line": 122, + "column": 34 + }, + "identifierName": "debug" + }, + "name": "debug" + }, + "computed": false + } + } + ], + "kind": "let", + "trailingComments": [ + { + "type": "CommentBlock", + "value": "*\r\n * Ignoring placeholder buttons\r\n ", + "start": 6152, + "end": 6201, + "loc": { + "start": { + "line": 124, + "column": 4 + }, + "end": { + "line": 126, + "column": 7 + } + } + } + ] + }, + { + "type": "IfStatement", + "start": 6207, + "end": 6249, + "loc": { + "start": { + "line": 127, + "column": 4 + }, + "end": { + "line": 128, + "column": 19 + } + }, + "test": { + "type": "BinaryExpression", + "start": 6210, + "end": 6227, + "loc": { + "start": { + "line": 127, + "column": 7 + }, + "end": { + "line": 127, + "column": 24 + } + }, + "left": { + "type": "Identifier", + "start": 6210, + "end": 6216, + "loc": { + "start": { + "line": 127, + "column": 7 + }, + "end": { + "line": 127, + "column": 13 + }, + "identifierName": "button" + }, + "name": "button", + "leadingComments": null + }, + "operator": "===", + "right": { + "type": "StringLiteral", + "start": 6221, + "end": 6227, + "loc": { + "start": { + "line": 127, + "column": 18 + }, + "end": { + "line": 127, + "column": 24 + } + }, + "extra": { + "rawValue": "{//}", + "raw": "'{//}'" + }, + "value": "{//}" + }, + "leadingComments": null + }, + "consequent": { + "type": "ReturnStatement", + "start": 6236, + "end": 6249, + "loc": { + "start": { + "line": 128, + "column": 6 + }, + "end": { + "line": 128, + "column": 19 + } + }, + "argument": { + "type": "BooleanLiteral", + "start": 6243, + "end": 6248, + "loc": { + "start": { + "line": 128, + "column": 13 + }, + "end": { + "line": 128, + "column": 18 + } + }, + "value": false + }, + "trailingComments": null + }, + "alternate": null, + "leadingComments": [ + { + "type": "CommentBlock", + "value": "*\r\n * Ignoring placeholder buttons\r\n ", + "start": 6152, + "end": 6201, + "loc": { + "start": { + "line": 124, + "column": 4 + }, + "end": { + "line": 126, + "column": 7 + } + } + } + ], + "trailingComments": [ + { + "type": "CommentBlock", + "value": "*\r\n * Calling onKeyPress\r\n ", + "start": 6257, + "end": 6296, + "loc": { + "start": { + "line": 130, + "column": 4 + }, + "end": { + "line": 132, + "column": 7 + } + } + } + ] + }, + { + "type": "IfStatement", + "start": 6302, + "end": 6391, + "loc": { + "start": { + "line": 133, + "column": 4 + }, + "end": { + "line": 134, + "column": 38 + } + }, + "test": { + "type": "BinaryExpression", + "start": 6305, + "end": 6350, + "loc": { + "start": { + "line": 133, + "column": 7 + }, + "end": { + "line": 133, + "column": 52 + } + }, + "left": { + "type": "UnaryExpression", + "start": 6305, + "end": 6335, + "loc": { + "start": { + "line": 133, + "column": 7 + }, + "end": { + "line": 133, + "column": 37 + } + }, + "operator": "typeof", + "prefix": true, + "argument": { + "type": "MemberExpression", + "start": 6312, + "end": 6335, + "loc": { + "start": { + "line": 133, + "column": 14 + }, + "end": { + "line": 133, + "column": 37 + } + }, + "object": { + "type": "MemberExpression", + "start": 6312, + "end": 6324, + "loc": { + "start": { + "line": 133, + "column": 14 + }, + "end": { + "line": 133, + "column": 26 + } + }, + "object": { + "type": "ThisExpression", + "start": 6312, + "end": 6316, + "loc": { + "start": { + "line": 133, + "column": 14 + }, + "end": { + "line": 133, + "column": 18 + } + }, + "leadingComments": null + }, + "property": { + "type": "Identifier", + "start": 6317, + "end": 6324, + "loc": { + "start": { + "line": 133, + "column": 19 + }, + "end": { + "line": 133, + "column": 26 + }, + "identifierName": "options" + }, + "name": "options" + }, + "computed": false, + "leadingComments": null + }, + "property": { + "type": "Identifier", + "start": 6325, + "end": 6335, + "loc": { + "start": { + "line": 133, + "column": 27 + }, + "end": { + "line": 133, + "column": 37 + }, + "identifierName": "onKeyPress" + }, + "name": "onKeyPress" + }, + "computed": false, + "leadingComments": null + }, + "extra": { + "parenthesizedArgument": false + }, + "leadingComments": null + }, + "operator": "===", + "right": { + "type": "StringLiteral", + "start": 6340, + "end": 6350, + "loc": { + "start": { + "line": 133, + "column": 42 + }, + "end": { + "line": 133, + "column": 52 + } + }, + "extra": { + "rawValue": "function", + "raw": "\"function\"" + }, + "value": "function" + }, + "leadingComments": null + }, + "consequent": { + "type": "ExpressionStatement", + "start": 6359, + "end": 6391, + "loc": { + "start": { + "line": 134, + "column": 6 + }, + "end": { + "line": 134, + "column": 38 + } + }, + "expression": { + "type": "CallExpression", + "start": 6359, + "end": 6390, + "loc": { + "start": { + "line": 134, + "column": 6 + }, + "end": { + "line": 134, + "column": 37 + } + }, + "callee": { + "type": "MemberExpression", + "start": 6359, + "end": 6382, + "loc": { + "start": { + "line": 134, + "column": 6 + }, + "end": { + "line": 134, + "column": 29 + } + }, + "object": { + "type": "MemberExpression", + "start": 6359, + "end": 6371, + "loc": { + "start": { + "line": 134, + "column": 6 + }, + "end": { + "line": 134, + "column": 18 + } + }, + "object": { + "type": "ThisExpression", + "start": 6359, + "end": 6363, + "loc": { + "start": { + "line": 134, + "column": 6 + }, + "end": { + "line": 134, + "column": 10 + } + } + }, + "property": { + "type": "Identifier", + "start": 6364, + "end": 6371, + "loc": { + "start": { + "line": 134, + "column": 11 + }, + "end": { + "line": 134, + "column": 18 + }, + "identifierName": "options" + }, + "name": "options" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 6372, + "end": 6382, + "loc": { + "start": { + "line": 134, + "column": 19 + }, + "end": { + "line": 134, + "column": 29 + }, + "identifierName": "onKeyPress" + }, + "name": "onKeyPress" + }, + "computed": false + }, + "arguments": [ + { + "type": "Identifier", + "start": 6383, + "end": 6389, + "loc": { + "start": { + "line": 134, + "column": 30 + }, + "end": { + "line": 134, + "column": 36 + }, + "identifierName": "button" + }, + "name": "button" + } + ] + } + }, + "alternate": null, + "leadingComments": [ + { + "type": "CommentBlock", + "value": "*\r\n * Calling onKeyPress\r\n ", + "start": 6257, + "end": 6296, + "loc": { + "start": { + "line": 130, + "column": 4 + }, + "end": { + "line": 132, + "column": 7 + } + } + } + ] + }, + { + "type": "IfStatement", + "start": 6403, + "end": 6490, + "loc": { + "start": { + "line": 136, + "column": 4 + }, + "end": { + "line": 137, + "column": 46 + } + }, + "test": { + "type": "UnaryExpression", + "start": 6406, + "end": 6441, + "loc": { + "start": { + "line": 136, + "column": 7 + }, + "end": { + "line": 136, + "column": 42 + } + }, + "operator": "!", + "prefix": true, + "argument": { + "type": "MemberExpression", + "start": 6407, + "end": 6441, + "loc": { + "start": { + "line": 136, + "column": 8 + }, + "end": { + "line": 136, + "column": 42 + } + }, + "object": { + "type": "MemberExpression", + "start": 6407, + "end": 6417, + "loc": { + "start": { + "line": 136, + "column": 8 + }, + "end": { + "line": 136, + "column": 18 + } + }, + "object": { + "type": "ThisExpression", + "start": 6407, + "end": 6411, + "loc": { + "start": { + "line": 136, + "column": 8 + }, + "end": { + "line": 136, + "column": 12 + } + } + }, + "property": { + "type": "Identifier", + "start": 6412, + "end": 6417, + "loc": { + "start": { + "line": 136, + "column": 13 + }, + "end": { + "line": 136, + "column": 18 + }, + "identifierName": "input" + }, + "name": "input" + }, + "computed": false + }, + "property": { + "type": "MemberExpression", + "start": 6418, + "end": 6440, + "loc": { + "start": { + "line": 136, + "column": 19 + }, + "end": { + "line": 136, + "column": 41 + } + }, + "object": { + "type": "MemberExpression", + "start": 6418, + "end": 6430, + "loc": { + "start": { + "line": 136, + "column": 19 + }, + "end": { + "line": 136, + "column": 31 + } + }, + "object": { + "type": "ThisExpression", + "start": 6418, + "end": 6422, + "loc": { + "start": { + "line": 136, + "column": 19 + }, + "end": { + "line": 136, + "column": 23 + } + } + }, + "property": { + "type": "Identifier", + "start": 6423, + "end": 6430, + "loc": { + "start": { + "line": 136, + "column": 24 + }, + "end": { + "line": 136, + "column": 31 + }, + "identifierName": "options" + }, + "name": "options" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 6431, + "end": 6440, + "loc": { + "start": { + "line": 136, + "column": 32 + }, + "end": { + "line": 136, + "column": 41 + }, + "identifierName": "inputName" + }, + "name": "inputName" + }, + "computed": false + }, + "computed": true + }, + "extra": { + "parenthesizedArgument": false + } + }, + "consequent": { + "type": "ExpressionStatement", + "start": 6450, + "end": 6490, + "loc": { + "start": { + "line": 137, + "column": 6 + }, + "end": { + "line": 137, + "column": 46 + } + }, + "expression": { + "type": "AssignmentExpression", + "start": 6450, + "end": 6489, + "loc": { + "start": { + "line": 137, + "column": 6 + }, + "end": { + "line": 137, + "column": 45 + } + }, + "operator": "=", + "left": { + "type": "MemberExpression", + "start": 6450, + "end": 6484, + "loc": { + "start": { + "line": 137, + "column": 6 + }, + "end": { + "line": 137, + "column": 40 + } + }, + "object": { + "type": "MemberExpression", + "start": 6450, + "end": 6460, + "loc": { + "start": { + "line": 137, + "column": 6 + }, + "end": { + "line": 137, + "column": 16 + } + }, + "object": { + "type": "ThisExpression", + "start": 6450, + "end": 6454, + "loc": { + "start": { + "line": 137, + "column": 6 + }, + "end": { + "line": 137, + "column": 10 + } + } + }, + "property": { + "type": "Identifier", + "start": 6455, + "end": 6460, + "loc": { + "start": { + "line": 137, + "column": 11 + }, + "end": { + "line": 137, + "column": 16 + }, + "identifierName": "input" + }, + "name": "input" + }, + "computed": false + }, + "property": { + "type": "MemberExpression", + "start": 6461, + "end": 6483, + "loc": { + "start": { + "line": 137, + "column": 17 + }, + "end": { + "line": 137, + "column": 39 + } + }, + "object": { + "type": "MemberExpression", + "start": 6461, + "end": 6473, + "loc": { + "start": { + "line": 137, + "column": 17 + }, + "end": { + "line": 137, + "column": 29 + } + }, + "object": { + "type": "ThisExpression", + "start": 6461, + "end": 6465, + "loc": { + "start": { + "line": 137, + "column": 17 + }, + "end": { + "line": 137, + "column": 21 + } + } + }, + "property": { + "type": "Identifier", + "start": 6466, + "end": 6473, + "loc": { + "start": { + "line": 137, + "column": 22 + }, + "end": { + "line": 137, + "column": 29 + }, + "identifierName": "options" + }, + "name": "options" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 6474, + "end": 6483, + "loc": { + "start": { + "line": 137, + "column": 30 + }, + "end": { + "line": 137, + "column": 39 + }, + "identifierName": "inputName" + }, + "name": "inputName" + }, + "computed": false + }, + "computed": true + }, + "right": { + "type": "StringLiteral", + "start": 6487, + "end": 6489, + "loc": { + "start": { + "line": 137, + "column": 43 + }, + "end": { + "line": 137, + "column": 45 + } + }, + "extra": { + "rawValue": "", + "raw": "''" + }, + "value": "" + } + } + }, + "alternate": null + }, + { + "type": "VariableDeclaration", + "start": 6498, + "end": 6626, + "loc": { + "start": { + "line": 139, + "column": 4 + }, + "end": { + "line": 139, + "column": 132 + } + }, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 6502, + "end": 6625, + "loc": { + "start": { + "line": 139, + "column": 8 + }, + "end": { + "line": 139, + "column": 131 + } + }, + "id": { + "type": "Identifier", + "start": 6502, + "end": 6514, + "loc": { + "start": { + "line": 139, + "column": 8 + }, + "end": { + "line": 139, + "column": 20 + }, + "identifierName": "updatedInput" + }, + "name": "updatedInput" + }, + "init": { + "type": "CallExpression", + "start": 6517, + "end": 6625, + "loc": { + "start": { + "line": 139, + "column": 23 + }, + "end": { + "line": 139, + "column": 131 + } + }, + "callee": { + "type": "MemberExpression", + "start": 6517, + "end": 6547, + "loc": { + "start": { + "line": 139, + "column": 23 + }, + "end": { + "line": 139, + "column": 53 + } + }, + "object": { + "type": "MemberExpression", + "start": 6517, + "end": 6531, + "loc": { + "start": { + "line": 139, + "column": 23 + }, + "end": { + "line": 139, + "column": 37 + } + }, + "object": { + "type": "ThisExpression", + "start": 6517, + "end": 6521, + "loc": { + "start": { + "line": 139, + "column": 23 + }, + "end": { + "line": 139, + "column": 27 + } + } + }, + "property": { + "type": "Identifier", + "start": 6522, + "end": 6531, + "loc": { + "start": { + "line": 139, + "column": 28 + }, + "end": { + "line": 139, + "column": 37 + }, + "identifierName": "utilities" + }, + "name": "utilities" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 6532, + "end": 6547, + "loc": { + "start": { + "line": 139, + "column": 38 + }, + "end": { + "line": 139, + "column": 53 + }, + "identifierName": "getUpdatedInput" + }, + "name": "getUpdatedInput" + }, + "computed": false + }, + "arguments": [ + { + "type": "Identifier", + "start": 6548, + "end": 6554, + "loc": { + "start": { + "line": 139, + "column": 54 + }, + "end": { + "line": 139, + "column": 60 + }, + "identifierName": "button" + }, + "name": "button" + }, + { + "type": "MemberExpression", + "start": 6556, + "end": 6590, + "loc": { + "start": { + "line": 139, + "column": 62 + }, + "end": { + "line": 139, + "column": 96 + } + }, + "object": { + "type": "MemberExpression", + "start": 6556, + "end": 6566, + "loc": { + "start": { + "line": 139, + "column": 62 + }, + "end": { + "line": 139, + "column": 72 + } + }, + "object": { + "type": "ThisExpression", + "start": 6556, + "end": 6560, + "loc": { + "start": { + "line": 139, + "column": 62 + }, + "end": { + "line": 139, + "column": 66 + } + } + }, + "property": { + "type": "Identifier", + "start": 6561, + "end": 6566, + "loc": { + "start": { + "line": 139, + "column": 67 + }, + "end": { + "line": 139, + "column": 72 + }, + "identifierName": "input" + }, + "name": "input" + }, + "computed": false + }, + "property": { + "type": "MemberExpression", + "start": 6567, + "end": 6589, + "loc": { + "start": { + "line": 139, + "column": 73 + }, + "end": { + "line": 139, + "column": 95 + } + }, + "object": { + "type": "MemberExpression", + "start": 6567, + "end": 6579, + "loc": { + "start": { + "line": 139, + "column": 73 + }, + "end": { + "line": 139, + "column": 85 + } + }, + "object": { + "type": "ThisExpression", + "start": 6567, + "end": 6571, + "loc": { + "start": { + "line": 139, + "column": 73 + }, + "end": { + "line": 139, + "column": 77 + } + } + }, + "property": { + "type": "Identifier", + "start": 6572, + "end": 6579, + "loc": { + "start": { + "line": 139, + "column": 78 + }, + "end": { + "line": 139, + "column": 85 + }, + "identifierName": "options" + }, + "name": "options" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 6580, + "end": 6589, + "loc": { + "start": { + "line": 139, + "column": 86 + }, + "end": { + "line": 139, + "column": 95 + }, + "identifierName": "inputName" + }, + "name": "inputName" + }, + "computed": false + }, + "computed": true + }, + { + "type": "MemberExpression", + "start": 6592, + "end": 6604, + "loc": { + "start": { + "line": 139, + "column": 98 + }, + "end": { + "line": 139, + "column": 110 + } + }, + "object": { + "type": "ThisExpression", + "start": 6592, + "end": 6596, + "loc": { + "start": { + "line": 139, + "column": 98 + }, + "end": { + "line": 139, + "column": 102 + } + } + }, + "property": { + "type": "Identifier", + "start": 6597, + "end": 6604, + "loc": { + "start": { + "line": 139, + "column": 103 + }, + "end": { + "line": 139, + "column": 110 + }, + "identifierName": "options" + }, + "name": "options" + }, + "computed": false + }, + { + "type": "MemberExpression", + "start": 6606, + "end": 6624, + "loc": { + "start": { + "line": 139, + "column": 112 + }, + "end": { + "line": 139, + "column": 130 + } + }, + "object": { + "type": "ThisExpression", + "start": 6606, + "end": 6610, + "loc": { + "start": { + "line": 139, + "column": 112 + }, + "end": { + "line": 139, + "column": 116 + } + } + }, + "property": { + "type": "Identifier", + "start": 6611, + "end": 6624, + "loc": { + "start": { + "line": 139, + "column": 117 + }, + "end": { + "line": 139, + "column": 130 + }, + "identifierName": "caretPosition" + }, + "name": "caretPosition" + }, + "computed": false + } + ] + } + } + ], + "kind": "let" + }, + { + "type": "IfStatement", + "start": 6634, + "end": 7388, + "loc": { + "start": { + "line": 141, + "column": 4 + }, + "end": { + "line": 166, + "column": 5 + } + }, + "test": { + "type": "BinaryExpression", + "start": 6637, + "end": 6688, + "loc": { + "start": { + "line": 141, + "column": 7 + }, + "end": { + "line": 141, + "column": 58 + } + }, + "left": { + "type": "MemberExpression", + "start": 6637, + "end": 6671, + "loc": { + "start": { + "line": 141, + "column": 7 + }, + "end": { + "line": 141, + "column": 41 + } + }, + "object": { + "type": "MemberExpression", + "start": 6637, + "end": 6647, + "loc": { + "start": { + "line": 141, + "column": 7 + }, + "end": { + "line": 141, + "column": 17 + } + }, + "object": { + "type": "ThisExpression", + "start": 6637, + "end": 6641, + "loc": { + "start": { + "line": 141, + "column": 7 + }, + "end": { + "line": 141, + "column": 11 + } + } + }, + "property": { + "type": "Identifier", + "start": 6642, + "end": 6647, + "loc": { + "start": { + "line": 141, + "column": 12 + }, + "end": { + "line": 141, + "column": 17 + }, + "identifierName": "input" + }, + "name": "input" + }, + "computed": false + }, + "property": { + "type": "MemberExpression", + "start": 6648, + "end": 6670, + "loc": { + "start": { + "line": 141, + "column": 18 + }, + "end": { + "line": 141, + "column": 40 + } + }, + "object": { + "type": "MemberExpression", + "start": 6648, + "end": 6660, + "loc": { + "start": { + "line": 141, + "column": 18 + }, + "end": { + "line": 141, + "column": 30 + } + }, + "object": { + "type": "ThisExpression", + "start": 6648, + "end": 6652, + "loc": { + "start": { + "line": 141, + "column": 18 + }, + "end": { + "line": 141, + "column": 22 + } + } + }, + "property": { + "type": "Identifier", + "start": 6653, + "end": 6660, + "loc": { + "start": { + "line": 141, + "column": 23 + }, + "end": { + "line": 141, + "column": 30 + }, + "identifierName": "options" + }, + "name": "options" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 6661, + "end": 6670, + "loc": { + "start": { + "line": 141, + "column": 31 + }, + "end": { + "line": 141, + "column": 40 + }, + "identifierName": "inputName" + }, + "name": "inputName" + }, + "computed": false + }, + "computed": true + }, + "operator": "!==", + "right": { + "type": "Identifier", + "start": 6676, + "end": 6688, + "loc": { + "start": { + "line": 141, + "column": 46 + }, + "end": { + "line": 141, + "column": 58 + }, + "identifierName": "updatedInput" + }, + "name": "updatedInput" + } + }, + "consequent": { + "type": "BlockStatement", + "start": 6689, + "end": 7388, + "loc": { + "start": { + "line": 141, + "column": 59 + }, + "end": { + "line": 166, + "column": 5 + } + }, + "body": [ + { + "type": "IfStatement", + "start": 6785, + "end": 6918, + "loc": { + "start": { + "line": 146, + "column": 6 + }, + "end": { + "line": 148, + "column": 7 + } + }, + "test": { + "type": "LogicalExpression", + "start": 6788, + "end": 6884, + "loc": { + "start": { + "line": 146, + "column": 9 + }, + "end": { + "line": 146, + "column": 105 + } + }, + "left": { + "type": "MemberExpression", + "start": 6788, + "end": 6810, + "loc": { + "start": { + "line": 146, + "column": 9 + }, + "end": { + "line": 146, + "column": 31 + } + }, + "object": { + "type": "MemberExpression", + "start": 6788, + "end": 6800, + "loc": { + "start": { + "line": 146, + "column": 9 + }, + "end": { + "line": 146, + "column": 21 + } + }, + "object": { + "type": "ThisExpression", + "start": 6788, + "end": 6792, + "loc": { + "start": { + "line": 146, + "column": 9 + }, + "end": { + "line": 146, + "column": 13 + } + }, + "leadingComments": null + }, + "property": { + "type": "Identifier", + "start": 6793, + "end": 6800, + "loc": { + "start": { + "line": 146, + "column": 14 + }, + "end": { + "line": 146, + "column": 21 + }, + "identifierName": "options" + }, + "name": "options" + }, + "computed": false, + "leadingComments": null + }, + "property": { + "type": "Identifier", + "start": 6801, + "end": 6810, + "loc": { + "start": { + "line": 146, + "column": 22 + }, + "end": { + "line": 146, + "column": 31 + }, + "identifierName": "maxLength" + }, + "name": "maxLength" + }, + "computed": false, + "leadingComments": null + }, + "operator": "&&", + "right": { + "type": "CallExpression", + "start": 6814, + "end": 6884, + "loc": { + "start": { + "line": 146, + "column": 35 + }, + "end": { + "line": 146, + "column": 105 + } + }, + "callee": { + "type": "MemberExpression", + "start": 6814, + "end": 6844, + "loc": { + "start": { + "line": 146, + "column": 35 + }, + "end": { + "line": 146, + "column": 65 + } + }, + "object": { + "type": "MemberExpression", + "start": 6814, + "end": 6828, + "loc": { + "start": { + "line": 146, + "column": 35 + }, + "end": { + "line": 146, + "column": 49 + } + }, + "object": { + "type": "ThisExpression", + "start": 6814, + "end": 6818, + "loc": { + "start": { + "line": 146, + "column": 35 + }, + "end": { + "line": 146, + "column": 39 + } + } + }, + "property": { + "type": "Identifier", + "start": 6819, + "end": 6828, + "loc": { + "start": { + "line": 146, + "column": 40 + }, + "end": { + "line": 146, + "column": 49 + }, + "identifierName": "utilities" + }, + "name": "utilities" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 6829, + "end": 6844, + "loc": { + "start": { + "line": 146, + "column": 50 + }, + "end": { + "line": 146, + "column": 65 + }, + "identifierName": "handleMaxLength" + }, + "name": "handleMaxLength" + }, + "computed": false + }, + "arguments": [ + { + "type": "MemberExpression", + "start": 6845, + "end": 6855, + "loc": { + "start": { + "line": 146, + "column": 66 + }, + "end": { + "line": 146, + "column": 76 + } + }, + "object": { + "type": "ThisExpression", + "start": 6845, + "end": 6849, + "loc": { + "start": { + "line": 146, + "column": 66 + }, + "end": { + "line": 146, + "column": 70 + } + } + }, + "property": { + "type": "Identifier", + "start": 6850, + "end": 6855, + "loc": { + "start": { + "line": 146, + "column": 71 + }, + "end": { + "line": 146, + "column": 76 + }, + "identifierName": "input" + }, + "name": "input" + }, + "computed": false + }, + { + "type": "MemberExpression", + "start": 6857, + "end": 6869, + "loc": { + "start": { + "line": 146, + "column": 78 + }, + "end": { + "line": 146, + "column": 90 + } + }, + "object": { + "type": "ThisExpression", + "start": 6857, + "end": 6861, + "loc": { + "start": { + "line": 146, + "column": 78 + }, + "end": { + "line": 146, + "column": 82 + } + } + }, + "property": { + "type": "Identifier", + "start": 6862, + "end": 6869, + "loc": { + "start": { + "line": 146, + "column": 83 + }, + "end": { + "line": 146, + "column": 90 + }, + "identifierName": "options" + }, + "name": "options" + }, + "computed": false + }, + { + "type": "Identifier", + "start": 6871, + "end": 6883, + "loc": { + "start": { + "line": 146, + "column": 92 + }, + "end": { + "line": 146, + "column": 104 + }, + "identifierName": "updatedInput" + }, + "name": "updatedInput" + } + ] + }, + "leadingComments": null + }, + "consequent": { + "type": "BlockStatement", + "start": 6885, + "end": 6918, + "loc": { + "start": { + "line": 146, + "column": 106 + }, + "end": { + "line": 148, + "column": 7 + } + }, + "body": [ + { + "type": "ReturnStatement", + "start": 6896, + "end": 6909, + "loc": { + "start": { + "line": 147, + "column": 8 + }, + "end": { + "line": 147, + "column": 21 + } + }, + "argument": { + "type": "BooleanLiteral", + "start": 6903, + "end": 6908, + "loc": { + "start": { + "line": 147, + "column": 15 + }, + "end": { + "line": 147, + "column": 20 + } + }, + "value": false + } + } + ], + "directives": [] + }, + "alternate": null, + "leadingComments": [ + { + "type": "CommentBlock", + "value": "*\r\n * If maxLength and handleMaxLength yield true, halting\r\n ", + "start": 6700, + "end": 6777, + "loc": { + "start": { + "line": 143, + "column": 6 + }, + "end": { + "line": 145, + "column": 9 + } + } + } + ] + }, + { + "type": "ExpressionStatement", + "start": 6928, + "end": 6978, + "loc": { + "start": { + "line": 150, + "column": 6 + }, + "end": { + "line": 150, + "column": 56 + } + }, + "expression": { + "type": "AssignmentExpression", + "start": 6928, + "end": 6977, + "loc": { + "start": { + "line": 150, + "column": 6 + }, + "end": { + "line": 150, + "column": 55 + } + }, + "operator": "=", + "left": { + "type": "MemberExpression", + "start": 6928, + "end": 6962, + "loc": { + "start": { + "line": 150, + "column": 6 + }, + "end": { + "line": 150, + "column": 40 + } + }, + "object": { + "type": "MemberExpression", + "start": 6928, + "end": 6938, + "loc": { + "start": { + "line": 150, + "column": 6 + }, + "end": { + "line": 150, + "column": 16 + } + }, + "object": { + "type": "ThisExpression", + "start": 6928, + "end": 6932, + "loc": { + "start": { + "line": 150, + "column": 6 + }, + "end": { + "line": 150, + "column": 10 + } + } + }, + "property": { + "type": "Identifier", + "start": 6933, + "end": 6938, + "loc": { + "start": { + "line": 150, + "column": 11 + }, + "end": { + "line": 150, + "column": 16 + }, + "identifierName": "input" + }, + "name": "input" + }, + "computed": false + }, + "property": { + "type": "MemberExpression", + "start": 6939, + "end": 6961, + "loc": { + "start": { + "line": 150, + "column": 17 + }, + "end": { + "line": 150, + "column": 39 + } + }, + "object": { + "type": "MemberExpression", + "start": 6939, + "end": 6951, + "loc": { + "start": { + "line": 150, + "column": 17 + }, + "end": { + "line": 150, + "column": 29 + } + }, + "object": { + "type": "ThisExpression", + "start": 6939, + "end": 6943, + "loc": { + "start": { + "line": 150, + "column": 17 + }, + "end": { + "line": 150, + "column": 21 + } + } + }, + "property": { + "type": "Identifier", + "start": 6944, + "end": 6951, + "loc": { + "start": { + "line": 150, + "column": 22 + }, + "end": { + "line": 150, + "column": 29 + }, + "identifierName": "options" + }, + "name": "options" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 6952, + "end": 6961, + "loc": { + "start": { + "line": 150, + "column": 30 + }, + "end": { + "line": 150, + "column": 39 + }, + "identifierName": "inputName" + }, + "name": "inputName" + }, + "computed": false + }, + "computed": true + }, + "right": { + "type": "Identifier", + "start": 6965, + "end": 6977, + "loc": { + "start": { + "line": 150, + "column": 43 + }, + "end": { + "line": 150, + "column": 55 + }, + "identifierName": "updatedInput" + }, + "name": "updatedInput" + } + } + }, + { + "type": "IfStatement", + "start": 6988, + "end": 7049, + "loc": { + "start": { + "line": 152, + "column": 6 + }, + "end": { + "line": 153, + "column": 50 + } + }, + "test": { + "type": "Identifier", + "start": 6991, + "end": 6996, + "loc": { + "start": { + "line": 152, + "column": 9 + }, + "end": { + "line": 152, + "column": 14 + }, + "identifierName": "debug" + }, + "name": "debug" + }, + "consequent": { + "type": "ExpressionStatement", + "start": 7007, + "end": 7049, + "loc": { + "start": { + "line": 153, + "column": 8 + }, + "end": { + "line": 153, + "column": 50 + } + }, + "expression": { + "type": "CallExpression", + "start": 7007, + "end": 7048, + "loc": { + "start": { + "line": 153, + "column": 8 + }, + "end": { + "line": 153, + "column": 49 + } + }, + "callee": { + "type": "MemberExpression", + "start": 7007, + "end": 7018, + "loc": { + "start": { + "line": 153, + "column": 8 + }, + "end": { + "line": 153, + "column": 19 + } + }, + "object": { + "type": "Identifier", + "start": 7007, + "end": 7014, + "loc": { + "start": { + "line": 153, + "column": 8 + }, + "end": { + "line": 153, + "column": 15 + }, + "identifierName": "console" + }, + "name": "console" + }, + "property": { + "type": "Identifier", + "start": 7015, + "end": 7018, + "loc": { + "start": { + "line": 153, + "column": 16 + }, + "end": { + "line": 153, + "column": 19 + }, + "identifierName": "log" + }, + "name": "log" + }, + "computed": false + }, + "arguments": [ + { + "type": "StringLiteral", + "start": 7019, + "end": 7035, + "loc": { + "start": { + "line": 153, + "column": 20 + }, + "end": { + "line": 153, + "column": 36 + } + }, + "extra": { + "rawValue": "Input changed:", + "raw": "'Input changed:'" + }, + "value": "Input changed:" + }, + { + "type": "MemberExpression", + "start": 7037, + "end": 7047, + "loc": { + "start": { + "line": 153, + "column": 38 + }, + "end": { + "line": 153, + "column": 48 + } + }, + "object": { + "type": "ThisExpression", + "start": 7037, + "end": 7041, + "loc": { + "start": { + "line": 153, + "column": 38 + }, + "end": { + "line": 153, + "column": 42 + } + } + }, + "property": { + "type": "Identifier", + "start": 7042, + "end": 7047, + "loc": { + "start": { + "line": 153, + "column": 43 + }, + "end": { + "line": 153, + "column": 48 + }, + "identifierName": "input" + }, + "name": "input" + }, + "computed": false + } + ] + }, + "trailingComments": null + }, + "alternate": null, + "trailingComments": [ + { + "type": "CommentBlock", + "value": "*\r\n * Enforce syncInstanceInputs, if set\r\n ", + "start": 7059, + "end": 7118, + "loc": { + "start": { + "line": 155, + "column": 6 + }, + "end": { + "line": 157, + "column": 9 + } + } + } + ] + }, + { + "type": "IfStatement", + "start": 7126, + "end": 7207, + "loc": { + "start": { + "line": 158, + "column": 6 + }, + "end": { + "line": 159, + "column": 44 + } + }, + "test": { + "type": "MemberExpression", + "start": 7129, + "end": 7160, + "loc": { + "start": { + "line": 158, + "column": 9 + }, + "end": { + "line": 158, + "column": 40 + } + }, + "object": { + "type": "MemberExpression", + "start": 7129, + "end": 7141, + "loc": { + "start": { + "line": 158, + "column": 9 + }, + "end": { + "line": 158, + "column": 21 + } + }, + "object": { + "type": "ThisExpression", + "start": 7129, + "end": 7133, + "loc": { + "start": { + "line": 158, + "column": 9 + }, + "end": { + "line": 158, + "column": 13 + } + }, + "leadingComments": null + }, + "property": { + "type": "Identifier", + "start": 7134, + "end": 7141, + "loc": { + "start": { + "line": 158, + "column": 14 + }, + "end": { + "line": 158, + "column": 21 + }, + "identifierName": "options" + }, + "name": "options" + }, + "computed": false, + "leadingComments": null + }, + "property": { + "type": "Identifier", + "start": 7142, + "end": 7160, + "loc": { + "start": { + "line": 158, + "column": 22 + }, + "end": { + "line": 158, + "column": 40 + }, + "identifierName": "syncInstanceInputs" + }, + "name": "syncInstanceInputs" + }, + "computed": false, + "leadingComments": null + }, + "consequent": { + "type": "ExpressionStatement", + "start": 7171, + "end": 7207, + "loc": { + "start": { + "line": 159, + "column": 8 + }, + "end": { + "line": 159, + "column": 44 + } + }, + "expression": { + "type": "CallExpression", + "start": 7171, + "end": 7206, + "loc": { + "start": { + "line": 159, + "column": 8 + }, + "end": { + "line": 159, + "column": 43 + } + }, + "callee": { + "type": "MemberExpression", + "start": 7171, + "end": 7194, + "loc": { + "start": { + "line": 159, + "column": 8 + }, + "end": { + "line": 159, + "column": 31 + } + }, + "object": { + "type": "ThisExpression", + "start": 7171, + "end": 7175, + "loc": { + "start": { + "line": 159, + "column": 8 + }, + "end": { + "line": 159, + "column": 12 + } + } + }, + "property": { + "type": "Identifier", + "start": 7176, + "end": 7194, + "loc": { + "start": { + "line": 159, + "column": 13 + }, + "end": { + "line": 159, + "column": 31 + }, + "identifierName": "syncInstanceInputs" + }, + "name": "syncInstanceInputs" + }, + "computed": false + }, + "arguments": [ + { + "type": "MemberExpression", + "start": 7195, + "end": 7205, + "loc": { + "start": { + "line": 159, + "column": 32 + }, + "end": { + "line": 159, + "column": 42 + } + }, + "object": { + "type": "ThisExpression", + "start": 7195, + "end": 7199, + "loc": { + "start": { + "line": 159, + "column": 32 + }, + "end": { + "line": 159, + "column": 36 + } + } + }, + "property": { + "type": "Identifier", + "start": 7200, + "end": 7205, + "loc": { + "start": { + "line": 159, + "column": 37 + }, + "end": { + "line": 159, + "column": 42 + }, + "identifierName": "input" + }, + "name": "input" + }, + "computed": false + } + ] + }, + "trailingComments": null + }, + "alternate": null, + "leadingComments": [ + { + "type": "CommentBlock", + "value": "*\r\n * Enforce syncInstanceInputs, if set\r\n ", + "start": 7059, + "end": 7118, + "loc": { + "start": { + "line": 155, + "column": 6 + }, + "end": { + "line": 157, + "column": 9 + } + } + } + ], + "trailingComments": [ + { + "type": "CommentBlock", + "value": "*\r\n * Calling onChange\r\n ", + "start": 7217, + "end": 7258, + "loc": { + "start": { + "line": 161, + "column": 6 + }, + "end": { + "line": 163, + "column": 9 + } + } + } + ] + }, + { + "type": "IfStatement", + "start": 7266, + "end": 7381, + "loc": { + "start": { + "line": 164, + "column": 6 + }, + "end": { + "line": 165, + "column": 66 + } + }, + "test": { + "type": "BinaryExpression", + "start": 7269, + "end": 7312, + "loc": { + "start": { + "line": 164, + "column": 9 + }, + "end": { + "line": 164, + "column": 52 + } + }, + "left": { + "type": "UnaryExpression", + "start": 7269, + "end": 7297, + "loc": { + "start": { + "line": 164, + "column": 9 + }, + "end": { + "line": 164, + "column": 37 + } + }, + "operator": "typeof", + "prefix": true, + "argument": { + "type": "MemberExpression", + "start": 7276, + "end": 7297, + "loc": { + "start": { + "line": 164, + "column": 16 + }, + "end": { + "line": 164, + "column": 37 + } + }, + "object": { + "type": "MemberExpression", + "start": 7276, + "end": 7288, + "loc": { + "start": { + "line": 164, + "column": 16 + }, + "end": { + "line": 164, + "column": 28 + } + }, + "object": { + "type": "ThisExpression", + "start": 7276, + "end": 7280, + "loc": { + "start": { + "line": 164, + "column": 16 + }, + "end": { + "line": 164, + "column": 20 + } + }, + "leadingComments": null + }, + "property": { + "type": "Identifier", + "start": 7281, + "end": 7288, + "loc": { + "start": { + "line": 164, + "column": 21 + }, + "end": { + "line": 164, + "column": 28 + }, + "identifierName": "options" + }, + "name": "options" + }, + "computed": false, + "leadingComments": null + }, + "property": { + "type": "Identifier", + "start": 7289, + "end": 7297, + "loc": { + "start": { + "line": 164, + "column": 29 + }, + "end": { + "line": 164, + "column": 37 + }, + "identifierName": "onChange" + }, + "name": "onChange" + }, + "computed": false, + "leadingComments": null + }, + "extra": { + "parenthesizedArgument": false + }, + "leadingComments": null + }, + "operator": "===", + "right": { + "type": "StringLiteral", + "start": 7302, + "end": 7312, + "loc": { + "start": { + "line": 164, + "column": 42 + }, + "end": { + "line": 164, + "column": 52 + } + }, + "extra": { + "rawValue": "function", + "raw": "\"function\"" + }, + "value": "function" + }, + "leadingComments": null + }, + "consequent": { + "type": "ExpressionStatement", + "start": 7323, + "end": 7381, + "loc": { + "start": { + "line": 165, + "column": 8 + }, + "end": { + "line": 165, + "column": 66 + } + }, + "expression": { + "type": "CallExpression", + "start": 7323, + "end": 7380, + "loc": { + "start": { + "line": 165, + "column": 8 + }, + "end": { + "line": 165, + "column": 65 + } + }, + "callee": { + "type": "MemberExpression", + "start": 7323, + "end": 7344, + "loc": { + "start": { + "line": 165, + "column": 8 + }, + "end": { + "line": 165, + "column": 29 + } + }, + "object": { + "type": "MemberExpression", + "start": 7323, + "end": 7335, + "loc": { + "start": { + "line": 165, + "column": 8 + }, + "end": { + "line": 165, + "column": 20 + } + }, + "object": { + "type": "ThisExpression", + "start": 7323, + "end": 7327, + "loc": { + "start": { + "line": 165, + "column": 8 + }, + "end": { + "line": 165, + "column": 12 + } + } + }, + "property": { + "type": "Identifier", + "start": 7328, + "end": 7335, + "loc": { + "start": { + "line": 165, + "column": 13 + }, + "end": { + "line": 165, + "column": 20 + }, + "identifierName": "options" + }, + "name": "options" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 7336, + "end": 7344, + "loc": { + "start": { + "line": 165, + "column": 21 + }, + "end": { + "line": 165, + "column": 29 + }, + "identifierName": "onChange" + }, + "name": "onChange" + }, + "computed": false + }, + "arguments": [ + { + "type": "MemberExpression", + "start": 7345, + "end": 7379, + "loc": { + "start": { + "line": 165, + "column": 30 + }, + "end": { + "line": 165, + "column": 64 + } + }, + "object": { + "type": "MemberExpression", + "start": 7345, + "end": 7355, + "loc": { + "start": { + "line": 165, + "column": 30 + }, + "end": { + "line": 165, + "column": 40 + } + }, + "object": { + "type": "ThisExpression", + "start": 7345, + "end": 7349, + "loc": { + "start": { + "line": 165, + "column": 30 + }, + "end": { + "line": 165, + "column": 34 + } + } + }, + "property": { + "type": "Identifier", + "start": 7350, + "end": 7355, + "loc": { + "start": { + "line": 165, + "column": 35 + }, + "end": { + "line": 165, + "column": 40 + }, + "identifierName": "input" + }, + "name": "input" + }, + "computed": false + }, + "property": { + "type": "MemberExpression", + "start": 7356, + "end": 7378, + "loc": { + "start": { + "line": 165, + "column": 41 + }, + "end": { + "line": 165, + "column": 63 + } + }, + "object": { + "type": "MemberExpression", + "start": 7356, + "end": 7368, + "loc": { + "start": { + "line": 165, + "column": 41 + }, + "end": { + "line": 165, + "column": 53 + } + }, + "object": { + "type": "ThisExpression", + "start": 7356, + "end": 7360, + "loc": { + "start": { + "line": 165, + "column": 41 + }, + "end": { + "line": 165, + "column": 45 + } + } + }, + "property": { + "type": "Identifier", + "start": 7361, + "end": 7368, + "loc": { + "start": { + "line": 165, + "column": 46 + }, + "end": { + "line": 165, + "column": 53 + }, + "identifierName": "options" + }, + "name": "options" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 7369, + "end": 7378, + "loc": { + "start": { + "line": 165, + "column": 54 + }, + "end": { + "line": 165, + "column": 63 + }, + "identifierName": "inputName" + }, + "name": "inputName" + }, + "computed": false + }, + "computed": true + } + ] + } + }, + "alternate": null, + "leadingComments": [ + { + "type": "CommentBlock", + "value": "*\r\n * Calling onChange\r\n ", + "start": 7217, + "end": 7258, + "loc": { + "start": { + "line": 161, + "column": 6 + }, + "end": { + "line": 163, + "column": 9 + } + } + } + ] + } + ], + "directives": [] + }, + "alternate": null + }, + { + "type": "IfStatement", + "start": 7400, + "end": 7461, + "loc": { + "start": { + "line": 168, + "column": 4 + }, + "end": { + "line": 170, + "column": 5 + } + }, + "test": { + "type": "Identifier", + "start": 7403, + "end": 7408, + "loc": { + "start": { + "line": 168, + "column": 7 + }, + "end": { + "line": 168, + "column": 12 + }, + "identifierName": "debug" + }, + "name": "debug" + }, + "consequent": { + "type": "BlockStatement", + "start": 7409, + "end": 7461, + "loc": { + "start": { + "line": 168, + "column": 13 + }, + "end": { + "line": 170, + "column": 5 + } + }, + "body": [ + { + "type": "ExpressionStatement", + "start": 7418, + "end": 7454, + "loc": { + "start": { + "line": 169, + "column": 6 + }, + "end": { + "line": 169, + "column": 42 + } + }, + "expression": { + "type": "CallExpression", + "start": 7418, + "end": 7453, + "loc": { + "start": { + "line": 169, + "column": 6 + }, + "end": { + "line": 169, + "column": 41 + } + }, + "callee": { + "type": "MemberExpression", + "start": 7418, + "end": 7429, + "loc": { + "start": { + "line": 169, + "column": 6 + }, + "end": { + "line": 169, + "column": 17 + } + }, + "object": { + "type": "Identifier", + "start": 7418, + "end": 7425, + "loc": { + "start": { + "line": 169, + "column": 6 + }, + "end": { + "line": 169, + "column": 13 + }, + "identifierName": "console" + }, + "name": "console" + }, + "property": { + "type": "Identifier", + "start": 7426, + "end": 7429, + "loc": { + "start": { + "line": 169, + "column": 14 + }, + "end": { + "line": 169, + "column": 17 + }, + "identifierName": "log" + }, + "name": "log" + }, + "computed": false + }, + "arguments": [ + { + "type": "StringLiteral", + "start": 7430, + "end": 7444, + "loc": { + "start": { + "line": 169, + "column": 18 + }, + "end": { + "line": 169, + "column": 32 + } + }, + "extra": { + "rawValue": "Key pressed:", + "raw": "\"Key pressed:\"" + }, + "value": "Key pressed:" + }, + { + "type": "Identifier", + "start": 7446, + "end": 7452, + "loc": { + "start": { + "line": 169, + "column": 34 + }, + "end": { + "line": 169, + "column": 40 + }, + "identifierName": "button" + }, + "name": "button" + } + ] + } + } + ], + "directives": [] + }, + "alternate": null + } + ], + "directives": [], + "trailingComments": null + }, + "trailingComments": null + }, + "leadingComments": [ + { + "type": "CommentBlock", + "value": "*\r\n * Handles clicks made to keyboard buttons\r\n * @param {string} button The button's layout name.\r\n ", + "start": 5956, + "end": 6068, + "loc": { + "start": { + "line": 117, + "column": 2 + }, + "end": { + "line": 120, + "column": 5 + } + } + } + ], + "trailingComments": [ + { + "type": "CommentBlock", + "value": "*\r\n * Send a command to all simple-keyboard instances (if you have several instances).\r\n ", + "start": 7472, + "end": 7569, + "loc": { + "start": { + "line": 173, + "column": 2 + }, + "end": { + "line": 175, + "column": 5 + } + } + } + ] + }, + { + "type": "ClassProperty", + "start": 7573, + "end": 7692, + "loc": { + "start": { + "line": 176, + "column": 2 + }, + "end": { + "line": 180, + "column": 3 + } + }, + "static": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 7573, + "end": 7591, + "loc": { + "start": { + "line": 176, + "column": 2 + }, + "end": { + "line": 176, + "column": 20 + }, + "identifierName": "syncInstanceInputs" + }, + "name": "syncInstanceInputs", + "leadingComments": null + }, + "value": { + "type": "ArrowFunctionExpression", + "start": 7594, + "end": 7692, + "loc": { + "start": { + "line": 176, + "column": 23 + }, + "end": { + "line": 180, + "column": 3 + } + }, + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [], + "body": { + "type": "BlockStatement", + "start": 7600, + "end": 7692, + "loc": { + "start": { + "line": 176, + "column": 29 + }, + "end": { + "line": 180, + "column": 3 + } + }, + "body": [ + { + "type": "ExpressionStatement", + "start": 7607, + "end": 7687, + "loc": { + "start": { + "line": 177, + "column": 4 + }, + "end": { + "line": 179, + "column": 7 + } + }, + "expression": { + "type": "CallExpression", + "start": 7607, + "end": 7686, + "loc": { + "start": { + "line": 177, + "column": 4 + }, + "end": { + "line": 179, + "column": 6 + } + }, + "callee": { + "type": "MemberExpression", + "start": 7607, + "end": 7620, + "loc": { + "start": { + "line": 177, + "column": 4 + }, + "end": { + "line": 177, + "column": 17 + } + }, + "object": { + "type": "ThisExpression", + "start": 7607, + "end": 7611, + "loc": { + "start": { + "line": 177, + "column": 4 + }, + "end": { + "line": 177, + "column": 8 + } + } + }, + "property": { + "type": "Identifier", + "start": 7612, + "end": 7620, + "loc": { + "start": { + "line": 177, + "column": 9 + }, + "end": { + "line": 177, + "column": 17 + }, + "identifierName": "dispatch" + }, + "name": "dispatch" + }, + "computed": false + }, + "arguments": [ + { + "type": "ArrowFunctionExpression", + "start": 7621, + "end": 7685, + "loc": { + "start": { + "line": 177, + "column": 18 + }, + "end": { + "line": 179, + "column": 5 + } + }, + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 7622, + "end": 7630, + "loc": { + "start": { + "line": 177, + "column": 19 + }, + "end": { + "line": 177, + "column": 27 + }, + "identifierName": "instance" + }, + "name": "instance" + } + ], + "body": { + "type": "BlockStatement", + "start": 7635, + "end": 7685, + "loc": { + "start": { + "line": 177, + "column": 32 + }, + "end": { + "line": 179, + "column": 5 + } + }, + "body": [ + { + "type": "ExpressionStatement", + "start": 7644, + "end": 7678, + "loc": { + "start": { + "line": 178, + "column": 6 + }, + "end": { + "line": 178, + "column": 40 + } + }, + "expression": { + "type": "CallExpression", + "start": 7644, + "end": 7677, + "loc": { + "start": { + "line": 178, + "column": 6 + }, + "end": { + "line": 178, + "column": 39 + } + }, + "callee": { + "type": "MemberExpression", + "start": 7644, + "end": 7665, + "loc": { + "start": { + "line": 178, + "column": 6 + }, + "end": { + "line": 178, + "column": 27 + } + }, + "object": { + "type": "Identifier", + "start": 7644, + "end": 7652, + "loc": { + "start": { + "line": 178, + "column": 6 + }, + "end": { + "line": 178, + "column": 14 + }, + "identifierName": "instance" + }, + "name": "instance" + }, + "property": { + "type": "Identifier", + "start": 7653, + "end": 7665, + "loc": { + "start": { + "line": 178, + "column": 15 + }, + "end": { + "line": 178, + "column": 27 + }, + "identifierName": "replaceInput" + }, + "name": "replaceInput" + }, + "computed": false + }, + "arguments": [ + { + "type": "MemberExpression", + "start": 7666, + "end": 7676, + "loc": { + "start": { + "line": 178, + "column": 28 + }, + "end": { + "line": 178, + "column": 38 + } + }, + "object": { + "type": "ThisExpression", + "start": 7666, + "end": 7670, + "loc": { + "start": { + "line": 178, + "column": 28 + }, + "end": { + "line": 178, + "column": 32 + } + } + }, + "property": { + "type": "Identifier", + "start": 7671, + "end": 7676, + "loc": { + "start": { + "line": 178, + "column": 33 + }, + "end": { + "line": 178, + "column": 38 + }, + "identifierName": "input" + }, + "name": "input" + }, + "computed": false + } + ] + } + } + ], + "directives": [] + } + } + ] + } + } + ], + "directives": [], + "trailingComments": null + }, + "trailingComments": null + }, + "leadingComments": [ + { + "type": "CommentBlock", + "value": "*\r\n * Send a command to all simple-keyboard instances (if you have several instances).\r\n ", + "start": 7472, + "end": 7569, + "loc": { + "start": { + "line": 173, + "column": 2 + }, + "end": { + "line": 175, + "column": 5 + } + } + } + ], + "trailingComments": [ + { + "type": "CommentBlock", + "value": "*\r\n * Clear the keyboard’s input.\r\n * @param {string} [inputName] optional - the internal input to select\r\n ", + "start": 7700, + "end": 7819, + "loc": { + "start": { + "line": 182, + "column": 2 + }, + "end": { + "line": 185, + "column": 5 + } + } + } + ] + }, + { + "type": "ClassProperty", + "start": 7823, + "end": 8105, + "loc": { + "start": { + "line": 186, + "column": 2 + }, + "end": { + "line": 195, + "column": 3 + } + }, + "static": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 7823, + "end": 7833, + "loc": { + "start": { + "line": 186, + "column": 2 + }, + "end": { + "line": 186, + "column": 12 + }, + "identifierName": "clearInput" + }, + "name": "clearInput", + "leadingComments": null + }, + "value": { + "type": "ArrowFunctionExpression", + "start": 7836, + "end": 8105, + "loc": { + "start": { + "line": 186, + "column": 15 + }, + "end": { + "line": 195, + "column": 3 + } + }, + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 7837, + "end": 7846, + "loc": { + "start": { + "line": 186, + "column": 16 + }, + "end": { + "line": 186, + "column": 25 + }, + "identifierName": "inputName" + }, + "name": "inputName" + } + ], + "body": { + "type": "BlockStatement", + "start": 7851, + "end": 8105, + "loc": { + "start": { + "line": 186, + "column": 30 + }, + "end": { + "line": 195, + "column": 3 + } + }, + "body": [ + { + "type": "ExpressionStatement", + "start": 7858, + "end": 7906, + "loc": { + "start": { + "line": 187, + "column": 4 + }, + "end": { + "line": 187, + "column": 52 + } + }, + "expression": { + "type": "AssignmentExpression", + "start": 7858, + "end": 7905, + "loc": { + "start": { + "line": 187, + "column": 4 + }, + "end": { + "line": 187, + "column": 51 + } + }, + "operator": "=", + "left": { + "type": "Identifier", + "start": 7858, + "end": 7867, + "loc": { + "start": { + "line": 187, + "column": 4 + }, + "end": { + "line": 187, + "column": 13 + }, + "identifierName": "inputName" + }, + "name": "inputName" + }, + "right": { + "type": "LogicalExpression", + "start": 7870, + "end": 7905, + "loc": { + "start": { + "line": 187, + "column": 16 + }, + "end": { + "line": 187, + "column": 51 + } + }, + "left": { + "type": "Identifier", + "start": 7870, + "end": 7879, + "loc": { + "start": { + "line": 187, + "column": 16 + }, + "end": { + "line": 187, + "column": 25 + }, + "identifierName": "inputName" + }, + "name": "inputName" + }, + "operator": "||", + "right": { + "type": "MemberExpression", + "start": 7883, + "end": 7905, + "loc": { + "start": { + "line": 187, + "column": 29 + }, + "end": { + "line": 187, + "column": 51 + } + }, + "object": { + "type": "MemberExpression", + "start": 7883, + "end": 7895, + "loc": { + "start": { + "line": 187, + "column": 29 + }, + "end": { + "line": 187, + "column": 41 + } + }, + "object": { + "type": "ThisExpression", + "start": 7883, + "end": 7887, + "loc": { + "start": { + "line": 187, + "column": 29 + }, + "end": { + "line": 187, + "column": 33 + } + } + }, + "property": { + "type": "Identifier", + "start": 7888, + "end": 7895, + "loc": { + "start": { + "line": 187, + "column": 34 + }, + "end": { + "line": 187, + "column": 41 + }, + "identifierName": "options" + }, + "name": "options" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 7896, + "end": 7905, + "loc": { + "start": { + "line": 187, + "column": 42 + }, + "end": { + "line": 187, + "column": 51 + }, + "identifierName": "inputName" + }, + "name": "inputName" + }, + "computed": false + } + } + } + }, + { + "type": "ExpressionStatement", + "start": 7912, + "end": 7952, + "loc": { + "start": { + "line": 188, + "column": 4 + }, + "end": { + "line": 188, + "column": 44 + } + }, + "expression": { + "type": "AssignmentExpression", + "start": 7912, + "end": 7951, + "loc": { + "start": { + "line": 188, + "column": 4 + }, + "end": { + "line": 188, + "column": 43 + } + }, + "operator": "=", + "left": { + "type": "MemberExpression", + "start": 7912, + "end": 7946, + "loc": { + "start": { + "line": 188, + "column": 4 + }, + "end": { + "line": 188, + "column": 38 + } + }, + "object": { + "type": "MemberExpression", + "start": 7912, + "end": 7922, + "loc": { + "start": { + "line": 188, + "column": 4 + }, + "end": { + "line": 188, + "column": 14 + } + }, + "object": { + "type": "ThisExpression", + "start": 7912, + "end": 7916, + "loc": { + "start": { + "line": 188, + "column": 4 + }, + "end": { + "line": 188, + "column": 8 + } + } + }, + "property": { + "type": "Identifier", + "start": 7917, + "end": 7922, + "loc": { + "start": { + "line": 188, + "column": 9 + }, + "end": { + "line": 188, + "column": 14 + }, + "identifierName": "input" + }, + "name": "input" + }, + "computed": false + }, + "property": { + "type": "MemberExpression", + "start": 7923, + "end": 7945, + "loc": { + "start": { + "line": 188, + "column": 15 + }, + "end": { + "line": 188, + "column": 37 + } + }, + "object": { + "type": "MemberExpression", + "start": 7923, + "end": 7935, + "loc": { + "start": { + "line": 188, + "column": 15 + }, + "end": { + "line": 188, + "column": 27 + } + }, + "object": { + "type": "ThisExpression", + "start": 7923, + "end": 7927, + "loc": { + "start": { + "line": 188, + "column": 15 + }, + "end": { + "line": 188, + "column": 19 + } + } + }, + "property": { + "type": "Identifier", + "start": 7928, + "end": 7935, + "loc": { + "start": { + "line": 188, + "column": 20 + }, + "end": { + "line": 188, + "column": 27 + }, + "identifierName": "options" + }, + "name": "options" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 7936, + "end": 7945, + "loc": { + "start": { + "line": 188, + "column": 28 + }, + "end": { + "line": 188, + "column": 37 + }, + "identifierName": "inputName" + }, + "name": "inputName" + }, + "computed": false + }, + "computed": true + }, + "right": { + "type": "StringLiteral", + "start": 7949, + "end": 7951, + "loc": { + "start": { + "line": 188, + "column": 41 + }, + "end": { + "line": 188, + "column": 43 + } + }, + "extra": { + "rawValue": "", + "raw": "''" + }, + "value": "" + } + }, + "trailingComments": [ + { + "type": "CommentBlock", + "value": "*\r\n * Enforce syncInstanceInputs, if set\r\n ", + "start": 7960, + "end": 8015, + "loc": { + "start": { + "line": 190, + "column": 4 + }, + "end": { + "line": 192, + "column": 7 + } + } + } + ] + }, + { + "type": "IfStatement", + "start": 8021, + "end": 8100, + "loc": { + "start": { + "line": 193, + "column": 4 + }, + "end": { + "line": 194, + "column": 42 + } + }, + "test": { + "type": "MemberExpression", + "start": 8024, + "end": 8055, + "loc": { + "start": { + "line": 193, + "column": 7 + }, + "end": { + "line": 193, + "column": 38 + } + }, + "object": { + "type": "MemberExpression", + "start": 8024, + "end": 8036, + "loc": { + "start": { + "line": 193, + "column": 7 + }, + "end": { + "line": 193, + "column": 19 + } + }, + "object": { + "type": "ThisExpression", + "start": 8024, + "end": 8028, + "loc": { + "start": { + "line": 193, + "column": 7 + }, + "end": { + "line": 193, + "column": 11 + } + }, + "leadingComments": null + }, + "property": { + "type": "Identifier", + "start": 8029, + "end": 8036, + "loc": { + "start": { + "line": 193, + "column": 12 + }, + "end": { + "line": 193, + "column": 19 + }, + "identifierName": "options" + }, + "name": "options" + }, + "computed": false, + "leadingComments": null + }, + "property": { + "type": "Identifier", + "start": 8037, + "end": 8055, + "loc": { + "start": { + "line": 193, + "column": 20 + }, + "end": { + "line": 193, + "column": 38 + }, + "identifierName": "syncInstanceInputs" + }, + "name": "syncInstanceInputs" + }, + "computed": false, + "leadingComments": null + }, + "consequent": { + "type": "ExpressionStatement", + "start": 8064, + "end": 8100, + "loc": { + "start": { + "line": 194, + "column": 6 + }, + "end": { + "line": 194, + "column": 42 + } + }, + "expression": { + "type": "CallExpression", + "start": 8064, + "end": 8099, + "loc": { + "start": { + "line": 194, + "column": 6 + }, + "end": { + "line": 194, + "column": 41 + } + }, + "callee": { + "type": "MemberExpression", + "start": 8064, + "end": 8087, + "loc": { + "start": { + "line": 194, + "column": 6 + }, + "end": { + "line": 194, + "column": 29 + } + }, + "object": { + "type": "ThisExpression", + "start": 8064, + "end": 8068, + "loc": { + "start": { + "line": 194, + "column": 6 + }, + "end": { + "line": 194, + "column": 10 + } + } + }, + "property": { + "type": "Identifier", + "start": 8069, + "end": 8087, + "loc": { + "start": { + "line": 194, + "column": 11 + }, + "end": { + "line": 194, + "column": 29 + }, + "identifierName": "syncInstanceInputs" + }, + "name": "syncInstanceInputs" + }, + "computed": false + }, + "arguments": [ + { + "type": "MemberExpression", + "start": 8088, + "end": 8098, + "loc": { + "start": { + "line": 194, + "column": 30 + }, + "end": { + "line": 194, + "column": 40 + } + }, + "object": { + "type": "ThisExpression", + "start": 8088, + "end": 8092, + "loc": { + "start": { + "line": 194, + "column": 30 + }, + "end": { + "line": 194, + "column": 34 + } + } + }, + "property": { + "type": "Identifier", + "start": 8093, + "end": 8098, + "loc": { + "start": { + "line": 194, + "column": 35 + }, + "end": { + "line": 194, + "column": 40 + }, + "identifierName": "input" + }, + "name": "input" + }, + "computed": false + } + ] + } + }, + "alternate": null, + "leadingComments": [ + { + "type": "CommentBlock", + "value": "*\r\n * Enforce syncInstanceInputs, if set\r\n ", + "start": 7960, + "end": 8015, + "loc": { + "start": { + "line": 190, + "column": 4 + }, + "end": { + "line": 192, + "column": 7 + } + } + } + ] + } + ], + "directives": [], + "trailingComments": null + }, + "trailingComments": null + }, + "leadingComments": [ + { + "type": "CommentBlock", + "value": "*\r\n * Clear the keyboard’s input.\r\n * @param {string} [inputName] optional - the internal input to select\r\n ", + "start": 7700, + "end": 7819, + "loc": { + "start": { + "line": 182, + "column": 2 + }, + "end": { + "line": 185, + "column": 5 + } + } + } + ], + "trailingComments": [ + { + "type": "CommentBlock", + "value": "*\r\n * Get the keyboard’s input (You can also get it from the onChange prop).\r\n * @param {string} [inputName] optional - the internal input to select\r\n ", + "start": 8111, + "end": 8273, + "loc": { + "start": { + "line": 197, + "column": 2 + }, + "end": { + "line": 200, + "column": 5 + } + } + } + ] + }, + { + "type": "ClassProperty", + "start": 8277, + "end": 8561, + "loc": { + "start": { + "line": 201, + "column": 2 + }, + "end": { + "line": 211, + "column": 3 + } + }, + "static": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 8277, + "end": 8285, + "loc": { + "start": { + "line": 201, + "column": 2 + }, + "end": { + "line": 201, + "column": 10 + }, + "identifierName": "getInput" + }, + "name": "getInput", + "leadingComments": null + }, + "value": { + "type": "ArrowFunctionExpression", + "start": 8288, + "end": 8561, + "loc": { + "start": { + "line": 201, + "column": 13 + }, + "end": { + "line": 211, + "column": 3 + } + }, + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 8289, + "end": 8298, + "loc": { + "start": { + "line": 201, + "column": 14 + }, + "end": { + "line": 201, + "column": 23 + }, + "identifierName": "inputName" + }, + "name": "inputName" + } + ], + "body": { + "type": "BlockStatement", + "start": 8303, + "end": 8561, + "loc": { + "start": { + "line": 201, + "column": 28 + }, + "end": { + "line": 211, + "column": 3 + } + }, + "body": [ + { + "type": "ExpressionStatement", + "start": 8310, + "end": 8358, + "loc": { + "start": { + "line": 202, + "column": 4 + }, + "end": { + "line": 202, + "column": 52 + } + }, + "expression": { + "type": "AssignmentExpression", + "start": 8310, + "end": 8357, + "loc": { + "start": { + "line": 202, + "column": 4 + }, + "end": { + "line": 202, + "column": 51 + } + }, + "operator": "=", + "left": { + "type": "Identifier", + "start": 8310, + "end": 8319, + "loc": { + "start": { + "line": 202, + "column": 4 + }, + "end": { + "line": 202, + "column": 13 + }, + "identifierName": "inputName" + }, + "name": "inputName" + }, + "right": { + "type": "LogicalExpression", + "start": 8322, + "end": 8357, + "loc": { + "start": { + "line": 202, + "column": 16 + }, + "end": { + "line": 202, + "column": 51 + } + }, + "left": { + "type": "Identifier", + "start": 8322, + "end": 8331, + "loc": { + "start": { + "line": 202, + "column": 16 + }, + "end": { + "line": 202, + "column": 25 + }, + "identifierName": "inputName" + }, + "name": "inputName" + }, + "operator": "||", + "right": { + "type": "MemberExpression", + "start": 8335, + "end": 8357, + "loc": { + "start": { + "line": 202, + "column": 29 + }, + "end": { + "line": 202, + "column": 51 + } + }, + "object": { + "type": "MemberExpression", + "start": 8335, + "end": 8347, + "loc": { + "start": { + "line": 202, + "column": 29 + }, + "end": { + "line": 202, + "column": 41 + } + }, + "object": { + "type": "ThisExpression", + "start": 8335, + "end": 8339, + "loc": { + "start": { + "line": 202, + "column": 29 + }, + "end": { + "line": 202, + "column": 33 + } + } + }, + "property": { + "type": "Identifier", + "start": 8340, + "end": 8347, + "loc": { + "start": { + "line": 202, + "column": 34 + }, + "end": { + "line": 202, + "column": 41 + }, + "identifierName": "options" + }, + "name": "options" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 8348, + "end": 8357, + "loc": { + "start": { + "line": 202, + "column": 42 + }, + "end": { + "line": 202, + "column": 51 + }, + "identifierName": "inputName" + }, + "name": "inputName" + }, + "computed": false + } + } + }, + "trailingComments": [ + { + "type": "CommentBlock", + "value": "*\r\n * Enforce syncInstanceInputs, if set\r\n ", + "start": 8366, + "end": 8421, + "loc": { + "start": { + "line": 204, + "column": 4 + }, + "end": { + "line": 206, + "column": 7 + } + } + } + ] + }, + { + "type": "IfStatement", + "start": 8427, + "end": 8506, + "loc": { + "start": { + "line": 207, + "column": 4 + }, + "end": { + "line": 208, + "column": 42 + } + }, + "test": { + "type": "MemberExpression", + "start": 8430, + "end": 8461, + "loc": { + "start": { + "line": 207, + "column": 7 + }, + "end": { + "line": 207, + "column": 38 + } + }, + "object": { + "type": "MemberExpression", + "start": 8430, + "end": 8442, + "loc": { + "start": { + "line": 207, + "column": 7 + }, + "end": { + "line": 207, + "column": 19 + } + }, + "object": { + "type": "ThisExpression", + "start": 8430, + "end": 8434, + "loc": { + "start": { + "line": 207, + "column": 7 + }, + "end": { + "line": 207, + "column": 11 + } + }, + "leadingComments": null + }, + "property": { + "type": "Identifier", + "start": 8435, + "end": 8442, + "loc": { + "start": { + "line": 207, + "column": 12 + }, + "end": { + "line": 207, + "column": 19 + }, + "identifierName": "options" + }, + "name": "options" + }, + "computed": false, + "leadingComments": null + }, + "property": { + "type": "Identifier", + "start": 8443, + "end": 8461, + "loc": { + "start": { + "line": 207, + "column": 20 + }, + "end": { + "line": 207, + "column": 38 + }, + "identifierName": "syncInstanceInputs" + }, + "name": "syncInstanceInputs" + }, + "computed": false, + "leadingComments": null + }, + "consequent": { + "type": "ExpressionStatement", + "start": 8470, + "end": 8506, + "loc": { + "start": { + "line": 208, + "column": 6 + }, + "end": { + "line": 208, + "column": 42 + } + }, + "expression": { + "type": "CallExpression", + "start": 8470, + "end": 8505, + "loc": { + "start": { + "line": 208, + "column": 6 + }, + "end": { + "line": 208, + "column": 41 + } + }, + "callee": { + "type": "MemberExpression", + "start": 8470, + "end": 8493, + "loc": { + "start": { + "line": 208, + "column": 6 + }, + "end": { + "line": 208, + "column": 29 + } + }, + "object": { + "type": "ThisExpression", + "start": 8470, + "end": 8474, + "loc": { + "start": { + "line": 208, + "column": 6 + }, + "end": { + "line": 208, + "column": 10 + } + } + }, + "property": { + "type": "Identifier", + "start": 8475, + "end": 8493, + "loc": { + "start": { + "line": 208, + "column": 11 + }, + "end": { + "line": 208, + "column": 29 + }, + "identifierName": "syncInstanceInputs" + }, + "name": "syncInstanceInputs" + }, + "computed": false + }, + "arguments": [ + { + "type": "MemberExpression", + "start": 8494, + "end": 8504, + "loc": { + "start": { + "line": 208, + "column": 30 + }, + "end": { + "line": 208, + "column": 40 + } + }, + "object": { + "type": "ThisExpression", + "start": 8494, + "end": 8498, + "loc": { + "start": { + "line": 208, + "column": 30 + }, + "end": { + "line": 208, + "column": 34 + } + } + }, + "property": { + "type": "Identifier", + "start": 8499, + "end": 8504, + "loc": { + "start": { + "line": 208, + "column": 35 + }, + "end": { + "line": 208, + "column": 40 + }, + "identifierName": "input" + }, + "name": "input" + }, + "computed": false + } + ] + } + }, + "alternate": null, + "leadingComments": [ + { + "type": "CommentBlock", + "value": "*\r\n * Enforce syncInstanceInputs, if set\r\n ", + "start": 8366, + "end": 8421, + "loc": { + "start": { + "line": 204, + "column": 4 + }, + "end": { + "line": 206, + "column": 7 + } + } + } + ] + }, + { + "type": "ReturnStatement", + "start": 8514, + "end": 8556, + "loc": { + "start": { + "line": 210, + "column": 4 + }, + "end": { + "line": 210, + "column": 46 + } + }, + "argument": { + "type": "MemberExpression", + "start": 8521, + "end": 8555, + "loc": { + "start": { + "line": 210, + "column": 11 + }, + "end": { + "line": 210, + "column": 45 + } + }, + "object": { + "type": "MemberExpression", + "start": 8521, + "end": 8531, + "loc": { + "start": { + "line": 210, + "column": 11 + }, + "end": { + "line": 210, + "column": 21 + } + }, + "object": { + "type": "ThisExpression", + "start": 8521, + "end": 8525, + "loc": { + "start": { + "line": 210, + "column": 11 + }, + "end": { + "line": 210, + "column": 15 + } + } + }, + "property": { + "type": "Identifier", + "start": 8526, + "end": 8531, + "loc": { + "start": { + "line": 210, + "column": 16 + }, + "end": { + "line": 210, + "column": 21 + }, + "identifierName": "input" + }, + "name": "input" + }, + "computed": false + }, + "property": { + "type": "MemberExpression", + "start": 8532, + "end": 8554, + "loc": { + "start": { + "line": 210, + "column": 22 + }, + "end": { + "line": 210, + "column": 44 + } + }, + "object": { + "type": "MemberExpression", + "start": 8532, + "end": 8544, + "loc": { + "start": { + "line": 210, + "column": 22 + }, + "end": { + "line": 210, + "column": 34 + } + }, + "object": { + "type": "ThisExpression", + "start": 8532, + "end": 8536, + "loc": { + "start": { + "line": 210, + "column": 22 + }, + "end": { + "line": 210, + "column": 26 + } + } + }, + "property": { + "type": "Identifier", + "start": 8537, + "end": 8544, + "loc": { + "start": { + "line": 210, + "column": 27 + }, + "end": { + "line": 210, + "column": 34 + }, + "identifierName": "options" + }, + "name": "options" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 8545, + "end": 8554, + "loc": { + "start": { + "line": 210, + "column": 35 + }, + "end": { + "line": 210, + "column": 44 + }, + "identifierName": "inputName" + }, + "name": "inputName" + }, + "computed": false + }, + "computed": true + } + } + ], + "directives": [], + "trailingComments": null + }, + "trailingComments": null + }, + "leadingComments": [ + { + "type": "CommentBlock", + "value": "*\r\n * Get the keyboard’s input (You can also get it from the onChange prop).\r\n * @param {string} [inputName] optional - the internal input to select\r\n ", + "start": 8111, + "end": 8273, + "loc": { + "start": { + "line": 197, + "column": 2 + }, + "end": { + "line": 200, + "column": 5 + } + } + } + ], + "trailingComments": [ + { + "type": "CommentBlock", + "value": "*\r\n * Set the keyboard’s input.\r\n * @param {string} input the input value\r\n * @param {string} inputName optional - the internal input to select\r\n ", + "start": 8567, + "end": 8727, + "loc": { + "start": { + "line": 213, + "column": 2 + }, + "end": { + "line": 217, + "column": 5 + } + } + } + ] + }, + { + "type": "ClassProperty", + "start": 8731, + "end": 9008, + "loc": { + "start": { + "line": 218, + "column": 2 + }, + "end": { + "line": 227, + "column": 3 + } + }, + "static": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 8731, + "end": 8739, + "loc": { + "start": { + "line": 218, + "column": 2 + }, + "end": { + "line": 218, + "column": 10 + }, + "identifierName": "setInput" + }, + "name": "setInput", + "leadingComments": null + }, + "value": { + "type": "ArrowFunctionExpression", + "start": 8742, + "end": 9008, + "loc": { + "start": { + "line": 218, + "column": 13 + }, + "end": { + "line": 227, + "column": 3 + } + }, + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 8743, + "end": 8748, + "loc": { + "start": { + "line": 218, + "column": 14 + }, + "end": { + "line": 218, + "column": 19 + }, + "identifierName": "input" + }, + "name": "input" + }, + { + "type": "Identifier", + "start": 8750, + "end": 8759, + "loc": { + "start": { + "line": 218, + "column": 21 + }, + "end": { + "line": 218, + "column": 30 + }, + "identifierName": "inputName" + }, + "name": "inputName" + } + ], + "body": { + "type": "BlockStatement", + "start": 8764, + "end": 9008, + "loc": { + "start": { + "line": 218, + "column": 35 + }, + "end": { + "line": 227, + "column": 3 + } + }, + "body": [ + { + "type": "ExpressionStatement", + "start": 8771, + "end": 8819, + "loc": { + "start": { + "line": 219, + "column": 4 + }, + "end": { + "line": 219, + "column": 52 + } + }, + "expression": { + "type": "AssignmentExpression", + "start": 8771, + "end": 8818, + "loc": { + "start": { + "line": 219, + "column": 4 + }, + "end": { + "line": 219, + "column": 51 + } + }, + "operator": "=", + "left": { + "type": "Identifier", + "start": 8771, + "end": 8780, + "loc": { + "start": { + "line": 219, + "column": 4 + }, + "end": { + "line": 219, + "column": 13 + }, + "identifierName": "inputName" + }, + "name": "inputName" + }, + "right": { + "type": "LogicalExpression", + "start": 8783, + "end": 8818, + "loc": { + "start": { + "line": 219, + "column": 16 + }, + "end": { + "line": 219, + "column": 51 + } + }, + "left": { + "type": "Identifier", + "start": 8783, + "end": 8792, + "loc": { + "start": { + "line": 219, + "column": 16 + }, + "end": { + "line": 219, + "column": 25 + }, + "identifierName": "inputName" + }, + "name": "inputName" + }, + "operator": "||", + "right": { + "type": "MemberExpression", + "start": 8796, + "end": 8818, + "loc": { + "start": { + "line": 219, + "column": 29 + }, + "end": { + "line": 219, + "column": 51 + } + }, + "object": { + "type": "MemberExpression", + "start": 8796, + "end": 8808, + "loc": { + "start": { + "line": 219, + "column": 29 + }, + "end": { + "line": 219, + "column": 41 + } + }, + "object": { + "type": "ThisExpression", + "start": 8796, + "end": 8800, + "loc": { + "start": { + "line": 219, + "column": 29 + }, + "end": { + "line": 219, + "column": 33 + } + } + }, + "property": { + "type": "Identifier", + "start": 8801, + "end": 8808, + "loc": { + "start": { + "line": 219, + "column": 34 + }, + "end": { + "line": 219, + "column": 41 + }, + "identifierName": "options" + }, + "name": "options" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 8809, + "end": 8818, + "loc": { + "start": { + "line": 219, + "column": 42 + }, + "end": { + "line": 219, + "column": 51 + }, + "identifierName": "inputName" + }, + "name": "inputName" + }, + "computed": false + } + } + } + }, + { + "type": "ExpressionStatement", + "start": 8825, + "end": 8855, + "loc": { + "start": { + "line": 220, + "column": 4 + }, + "end": { + "line": 220, + "column": 34 + } + }, + "expression": { + "type": "AssignmentExpression", + "start": 8825, + "end": 8854, + "loc": { + "start": { + "line": 220, + "column": 4 + }, + "end": { + "line": 220, + "column": 33 + } + }, + "operator": "=", + "left": { + "type": "MemberExpression", + "start": 8825, + "end": 8846, + "loc": { + "start": { + "line": 220, + "column": 4 + }, + "end": { + "line": 220, + "column": 25 + } + }, + "object": { + "type": "MemberExpression", + "start": 8825, + "end": 8835, + "loc": { + "start": { + "line": 220, + "column": 4 + }, + "end": { + "line": 220, + "column": 14 + } + }, + "object": { + "type": "ThisExpression", + "start": 8825, + "end": 8829, + "loc": { + "start": { + "line": 220, + "column": 4 + }, + "end": { + "line": 220, + "column": 8 + } + } + }, + "property": { + "type": "Identifier", + "start": 8830, + "end": 8835, + "loc": { + "start": { + "line": 220, + "column": 9 + }, + "end": { + "line": 220, + "column": 14 + }, + "identifierName": "input" + }, + "name": "input" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 8836, + "end": 8845, + "loc": { + "start": { + "line": 220, + "column": 15 + }, + "end": { + "line": 220, + "column": 24 + }, + "identifierName": "inputName" + }, + "name": "inputName" + }, + "computed": true + }, + "right": { + "type": "Identifier", + "start": 8849, + "end": 8854, + "loc": { + "start": { + "line": 220, + "column": 28 + }, + "end": { + "line": 220, + "column": 33 + }, + "identifierName": "input" + }, + "name": "input" + } + }, + "trailingComments": [ + { + "type": "CommentBlock", + "value": "*\r\n * Enforce syncInstanceInputs, if set\r\n ", + "start": 8863, + "end": 8918, + "loc": { + "start": { + "line": 222, + "column": 4 + }, + "end": { + "line": 224, + "column": 7 + } + } + } + ] + }, + { + "type": "IfStatement", + "start": 8924, + "end": 9003, + "loc": { + "start": { + "line": 225, + "column": 4 + }, + "end": { + "line": 226, + "column": 42 + } + }, + "test": { + "type": "MemberExpression", + "start": 8927, + "end": 8958, + "loc": { + "start": { + "line": 225, + "column": 7 + }, + "end": { + "line": 225, + "column": 38 + } + }, + "object": { + "type": "MemberExpression", + "start": 8927, + "end": 8939, + "loc": { + "start": { + "line": 225, + "column": 7 + }, + "end": { + "line": 225, + "column": 19 + } + }, + "object": { + "type": "ThisExpression", + "start": 8927, + "end": 8931, + "loc": { + "start": { + "line": 225, + "column": 7 + }, + "end": { + "line": 225, + "column": 11 + } + }, + "leadingComments": null + }, + "property": { + "type": "Identifier", + "start": 8932, + "end": 8939, + "loc": { + "start": { + "line": 225, + "column": 12 + }, + "end": { + "line": 225, + "column": 19 + }, + "identifierName": "options" + }, + "name": "options" + }, + "computed": false, + "leadingComments": null + }, + "property": { + "type": "Identifier", + "start": 8940, + "end": 8958, + "loc": { + "start": { + "line": 225, + "column": 20 + }, + "end": { + "line": 225, + "column": 38 + }, + "identifierName": "syncInstanceInputs" + }, + "name": "syncInstanceInputs" + }, + "computed": false, + "leadingComments": null + }, + "consequent": { + "type": "ExpressionStatement", + "start": 8967, + "end": 9003, + "loc": { + "start": { + "line": 226, + "column": 6 + }, + "end": { + "line": 226, + "column": 42 + } + }, + "expression": { + "type": "CallExpression", + "start": 8967, + "end": 9002, + "loc": { + "start": { + "line": 226, + "column": 6 + }, + "end": { + "line": 226, + "column": 41 + } + }, + "callee": { + "type": "MemberExpression", + "start": 8967, + "end": 8990, + "loc": { + "start": { + "line": 226, + "column": 6 + }, + "end": { + "line": 226, + "column": 29 + } + }, + "object": { + "type": "ThisExpression", + "start": 8967, + "end": 8971, + "loc": { + "start": { + "line": 226, + "column": 6 + }, + "end": { + "line": 226, + "column": 10 + } + } + }, + "property": { + "type": "Identifier", + "start": 8972, + "end": 8990, + "loc": { + "start": { + "line": 226, + "column": 11 + }, + "end": { + "line": 226, + "column": 29 + }, + "identifierName": "syncInstanceInputs" + }, + "name": "syncInstanceInputs" + }, + "computed": false + }, + "arguments": [ + { + "type": "MemberExpression", + "start": 8991, + "end": 9001, + "loc": { + "start": { + "line": 226, + "column": 30 + }, + "end": { + "line": 226, + "column": 40 + } + }, + "object": { + "type": "ThisExpression", + "start": 8991, + "end": 8995, + "loc": { + "start": { + "line": 226, + "column": 30 + }, + "end": { + "line": 226, + "column": 34 + } + } + }, + "property": { + "type": "Identifier", + "start": 8996, + "end": 9001, + "loc": { + "start": { + "line": 226, + "column": 35 + }, + "end": { + "line": 226, + "column": 40 + }, + "identifierName": "input" + }, + "name": "input" + }, + "computed": false + } + ] + } + }, + "alternate": null, + "leadingComments": [ + { + "type": "CommentBlock", + "value": "*\r\n * Enforce syncInstanceInputs, if set\r\n ", + "start": 8863, + "end": 8918, + "loc": { + "start": { + "line": 222, + "column": 4 + }, + "end": { + "line": 224, + "column": 7 + } + } + } + ] + } + ], + "directives": [], + "trailingComments": null + }, + "trailingComments": null + }, + "leadingComments": [ + { + "type": "CommentBlock", + "value": "*\r\n * Set the keyboard’s input.\r\n * @param {string} input the input value\r\n * @param {string} inputName optional - the internal input to select\r\n ", + "start": 8567, + "end": 8727, + "loc": { + "start": { + "line": 213, + "column": 2 + }, + "end": { + "line": 217, + "column": 5 + } + } + } + ], + "trailingComments": [ + { + "type": "CommentBlock", + "value": "*\r\n * Replace the input object (`keyboard.input`)\r\n * @param {object} inputObj The input object\r\n ", + "start": 9016, + "end": 9125, + "loc": { + "start": { + "line": 229, + "column": 2 + }, + "end": { + "line": 232, + "column": 5 + } + } + } + ] + }, + { + "type": "ClassProperty", + "start": 9129, + "end": 9192, + "loc": { + "start": { + "line": 233, + "column": 2 + }, + "end": { + "line": 235, + "column": 3 + } + }, + "static": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 9129, + "end": 9141, + "loc": { + "start": { + "line": 233, + "column": 2 + }, + "end": { + "line": 233, + "column": 14 + }, + "identifierName": "replaceInput" + }, + "name": "replaceInput", + "leadingComments": null + }, + "value": { + "type": "ArrowFunctionExpression", + "start": 9144, + "end": 9192, + "loc": { + "start": { + "line": 233, + "column": 17 + }, + "end": { + "line": 235, + "column": 3 + } + }, + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 9145, + "end": 9153, + "loc": { + "start": { + "line": 233, + "column": 18 + }, + "end": { + "line": 233, + "column": 26 + }, + "identifierName": "inputObj" + }, + "name": "inputObj" + } + ], + "body": { + "type": "BlockStatement", + "start": 9158, + "end": 9192, + "loc": { + "start": { + "line": 233, + "column": 31 + }, + "end": { + "line": 235, + "column": 3 + } + }, + "body": [ + { + "type": "ExpressionStatement", + "start": 9165, + "end": 9187, + "loc": { + "start": { + "line": 234, + "column": 4 + }, + "end": { + "line": 234, + "column": 26 + } + }, + "expression": { + "type": "AssignmentExpression", + "start": 9165, + "end": 9186, + "loc": { + "start": { + "line": 234, + "column": 4 + }, + "end": { + "line": 234, + "column": 25 + } + }, + "operator": "=", + "left": { + "type": "MemberExpression", + "start": 9165, + "end": 9175, + "loc": { + "start": { + "line": 234, + "column": 4 + }, + "end": { + "line": 234, + "column": 14 + } + }, + "object": { + "type": "ThisExpression", + "start": 9165, + "end": 9169, + "loc": { + "start": { + "line": 234, + "column": 4 + }, + "end": { + "line": 234, + "column": 8 + } + } + }, + "property": { + "type": "Identifier", + "start": 9170, + "end": 9175, + "loc": { + "start": { + "line": 234, + "column": 9 + }, + "end": { + "line": 234, + "column": 14 + }, + "identifierName": "input" + }, + "name": "input" + }, + "computed": false + }, + "right": { + "type": "Identifier", + "start": 9178, + "end": 9186, + "loc": { + "start": { + "line": 234, + "column": 17 + }, + "end": { + "line": 234, + "column": 25 + }, + "identifierName": "inputObj" + }, + "name": "inputObj" + } + } + } + ], + "directives": [], + "trailingComments": null + }, + "trailingComments": null + }, + "leadingComments": [ + { + "type": "CommentBlock", + "value": "*\r\n * Replace the input object (`keyboard.input`)\r\n * @param {object} inputObj The input object\r\n ", + "start": 9016, + "end": 9125, + "loc": { + "start": { + "line": 229, + "column": 2 + }, + "end": { + "line": 232, + "column": 5 + } + } + } + ], + "trailingComments": [ + { + "type": "CommentBlock", + "value": "*\r\n * Set new option or modify existing ones after initialization. \r\n * @param {object} option The option to set\r\n ", + "start": 9198, + "end": 9324, + "loc": { + "start": { + "line": 237, + "column": 2 + }, + "end": { + "line": 240, + "column": 5 + } + } + } + ] + }, + { + "type": "ClassProperty", + "start": 9328, + "end": 9462, + "loc": { + "start": { + "line": 241, + "column": 2 + }, + "end": { + "line": 245, + "column": 3 + } + }, + "static": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 9328, + "end": 9338, + "loc": { + "start": { + "line": 241, + "column": 2 + }, + "end": { + "line": 241, + "column": 12 + }, + "identifierName": "setOptions" + }, + "name": "setOptions", + "leadingComments": null + }, + "value": { + "type": "ArrowFunctionExpression", + "start": 9341, + "end": 9462, + "loc": { + "start": { + "line": 241, + "column": 15 + }, + "end": { + "line": 245, + "column": 3 + } + }, + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 9341, + "end": 9347, + "loc": { + "start": { + "line": 241, + "column": 15 + }, + "end": { + "line": 241, + "column": 21 + }, + "identifierName": "option" + }, + "name": "option" + } + ], + "body": { + "type": "BlockStatement", + "start": 9351, + "end": 9462, + "loc": { + "start": { + "line": 241, + "column": 25 + }, + "end": { + "line": 245, + "column": 3 + } + }, + "body": [ + { + "type": "ExpressionStatement", + "start": 9358, + "end": 9380, + "loc": { + "start": { + "line": 242, + "column": 4 + }, + "end": { + "line": 242, + "column": 26 + } + }, + "expression": { + "type": "AssignmentExpression", + "start": 9358, + "end": 9379, + "loc": { + "start": { + "line": 242, + "column": 4 + }, + "end": { + "line": 242, + "column": 25 + } + }, + "operator": "=", + "left": { + "type": "Identifier", + "start": 9358, + "end": 9364, + "loc": { + "start": { + "line": 242, + "column": 4 + }, + "end": { + "line": 242, + "column": 10 + }, + "identifierName": "option" + }, + "name": "option" + }, + "right": { + "type": "LogicalExpression", + "start": 9367, + "end": 9379, + "loc": { + "start": { + "line": 242, + "column": 13 + }, + "end": { + "line": 242, + "column": 25 + } + }, + "left": { + "type": "Identifier", + "start": 9367, + "end": 9373, + "loc": { + "start": { + "line": 242, + "column": 13 + }, + "end": { + "line": 242, + "column": 19 + }, + "identifierName": "option" + }, + "name": "option" + }, + "operator": "||", + "right": { + "type": "ObjectExpression", + "start": 9377, + "end": 9379, + "loc": { + "start": { + "line": 242, + "column": 23 + }, + "end": { + "line": 242, + "column": 25 + } + }, + "properties": [] + } + } + } + }, + { + "type": "ExpressionStatement", + "start": 9386, + "end": 9437, + "loc": { + "start": { + "line": 243, + "column": 4 + }, + "end": { + "line": 243, + "column": 55 + } + }, + "expression": { + "type": "AssignmentExpression", + "start": 9386, + "end": 9436, + "loc": { + "start": { + "line": 243, + "column": 4 + }, + "end": { + "line": 243, + "column": 54 + } + }, + "operator": "=", + "left": { + "type": "MemberExpression", + "start": 9386, + "end": 9398, + "loc": { + "start": { + "line": 243, + "column": 4 + }, + "end": { + "line": 243, + "column": 16 + } + }, + "object": { + "type": "ThisExpression", + "start": 9386, + "end": 9390, + "loc": { + "start": { + "line": 243, + "column": 4 + }, + "end": { + "line": 243, + "column": 8 + } + } + }, + "property": { + "type": "Identifier", + "start": 9391, + "end": 9398, + "loc": { + "start": { + "line": 243, + "column": 9 + }, + "end": { + "line": 243, + "column": 16 + }, + "identifierName": "options" + }, + "name": "options" + }, + "computed": false + }, + "right": { + "type": "CallExpression", + "start": 9401, + "end": 9436, + "loc": { + "start": { + "line": 243, + "column": 19 + }, + "end": { + "line": 243, + "column": 54 + } + }, + "callee": { + "type": "MemberExpression", + "start": 9401, + "end": 9414, + "loc": { + "start": { + "line": 243, + "column": 19 + }, + "end": { + "line": 243, + "column": 32 + } + }, + "object": { + "type": "Identifier", + "start": 9401, + "end": 9407, + "loc": { + "start": { + "line": 243, + "column": 19 + }, + "end": { + "line": 243, + "column": 25 + }, + "identifierName": "Object" + }, + "name": "Object" + }, + "property": { + "type": "Identifier", + "start": 9408, + "end": 9414, + "loc": { + "start": { + "line": 243, + "column": 26 + }, + "end": { + "line": 243, + "column": 32 + }, + "identifierName": "assign" + }, + "name": "assign" + }, + "computed": false + }, + "arguments": [ + { + "type": "MemberExpression", + "start": 9415, + "end": 9427, + "loc": { + "start": { + "line": 243, + "column": 33 + }, + "end": { + "line": 243, + "column": 45 + } + }, + "object": { + "type": "ThisExpression", + "start": 9415, + "end": 9419, + "loc": { + "start": { + "line": 243, + "column": 33 + }, + "end": { + "line": 243, + "column": 37 + } + } + }, + "property": { + "type": "Identifier", + "start": 9420, + "end": 9427, + "loc": { + "start": { + "line": 243, + "column": 38 + }, + "end": { + "line": 243, + "column": 45 + }, + "identifierName": "options" + }, + "name": "options" + }, + "computed": false + }, + { + "type": "Identifier", + "start": 9429, + "end": 9435, + "loc": { + "start": { + "line": 243, + "column": 47 + }, + "end": { + "line": 243, + "column": 53 + }, + "identifierName": "option" + }, + "name": "option" + } + ] + } + } + }, + { + "type": "ExpressionStatement", + "start": 9443, + "end": 9457, + "loc": { + "start": { + "line": 244, + "column": 4 + }, + "end": { + "line": 244, + "column": 18 + } + }, + "expression": { + "type": "CallExpression", + "start": 9443, + "end": 9456, + "loc": { + "start": { + "line": 244, + "column": 4 + }, + "end": { + "line": 244, + "column": 17 + } + }, + "callee": { + "type": "MemberExpression", + "start": 9443, + "end": 9454, + "loc": { + "start": { + "line": 244, + "column": 4 + }, + "end": { + "line": 244, + "column": 15 + } + }, + "object": { + "type": "ThisExpression", + "start": 9443, + "end": 9447, + "loc": { + "start": { + "line": 244, + "column": 4 + }, + "end": { + "line": 244, + "column": 8 + } + } + }, + "property": { + "type": "Identifier", + "start": 9448, + "end": 9454, + "loc": { + "start": { + "line": 244, + "column": 9 + }, + "end": { + "line": 244, + "column": 15 + }, + "identifierName": "render" + }, + "name": "render" + }, + "computed": false + }, + "arguments": [] + } + } + ], + "directives": [], + "trailingComments": null + }, + "trailingComments": null + }, + "leadingComments": [ + { + "type": "CommentBlock", + "value": "*\r\n * Set new option or modify existing ones after initialization. \r\n * @param {object} option The option to set\r\n ", + "start": 9198, + "end": 9324, + "loc": { + "start": { + "line": 237, + "column": 2 + }, + "end": { + "line": 240, + "column": 5 + } + } + } + ], + "trailingComments": [ + { + "type": "CommentBlock", + "value": "*\r\n * Remove all keyboard rows and reset keyboard values.\r\n * Used interally between re-renders.\r\n ", + "start": 9468, + "end": 9577, + "loc": { + "start": { + "line": 247, + "column": 2 + }, + "end": { + "line": 250, + "column": 5 + } + } + } + ] + }, + { + "type": "ClassProperty", + "start": 9581, + "end": 9727, + "loc": { + "start": { + "line": 251, + "column": 2 + }, + "end": { + "line": 255, + "column": 3 + } + }, + "static": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 9581, + "end": 9586, + "loc": { + "start": { + "line": 251, + "column": 2 + }, + "end": { + "line": 251, + "column": 7 + }, + "identifierName": "clear" + }, + "name": "clear", + "leadingComments": null + }, + "value": { + "type": "ArrowFunctionExpression", + "start": 9589, + "end": 9727, + "loc": { + "start": { + "line": 251, + "column": 10 + }, + "end": { + "line": 255, + "column": 3 + } + }, + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [], + "body": { + "type": "BlockStatement", + "start": 9595, + "end": 9727, + "loc": { + "start": { + "line": 251, + "column": 16 + }, + "end": { + "line": 255, + "column": 3 + } + }, + "body": [ + { + "type": "ExpressionStatement", + "start": 9602, + "end": 9634, + "loc": { + "start": { + "line": 252, + "column": 4 + }, + "end": { + "line": 252, + "column": 36 + } + }, + "expression": { + "type": "AssignmentExpression", + "start": 9602, + "end": 9633, + "loc": { + "start": { + "line": 252, + "column": 4 + }, + "end": { + "line": 252, + "column": 35 + } + }, + "operator": "=", + "left": { + "type": "MemberExpression", + "start": 9602, + "end": 9628, + "loc": { + "start": { + "line": 252, + "column": 4 + }, + "end": { + "line": 252, + "column": 30 + } + }, + "object": { + "type": "MemberExpression", + "start": 9602, + "end": 9618, + "loc": { + "start": { + "line": 252, + "column": 4 + }, + "end": { + "line": 252, + "column": 20 + } + }, + "object": { + "type": "ThisExpression", + "start": 9602, + "end": 9606, + "loc": { + "start": { + "line": 252, + "column": 4 + }, + "end": { + "line": 252, + "column": 8 + } + } + }, + "property": { + "type": "Identifier", + "start": 9607, + "end": 9618, + "loc": { + "start": { + "line": 252, + "column": 9 + }, + "end": { + "line": 252, + "column": 20 + }, + "identifierName": "keyboardDOM" + }, + "name": "keyboardDOM" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 9619, + "end": 9628, + "loc": { + "start": { + "line": 252, + "column": 21 + }, + "end": { + "line": 252, + "column": 30 + }, + "identifierName": "innerHTML" + }, + "name": "innerHTML" + }, + "computed": false + }, + "right": { + "type": "StringLiteral", + "start": 9631, + "end": 9633, + "loc": { + "start": { + "line": 252, + "column": 33 + }, + "end": { + "line": 252, + "column": 35 + } + }, + "extra": { + "rawValue": "", + "raw": "''" + }, + "value": "" + } + } + }, + { + "type": "ExpressionStatement", + "start": 9640, + "end": 9691, + "loc": { + "start": { + "line": 253, + "column": 4 + }, + "end": { + "line": 253, + "column": 55 + } + }, + "expression": { + "type": "AssignmentExpression", + "start": 9640, + "end": 9690, + "loc": { + "start": { + "line": 253, + "column": 4 + }, + "end": { + "line": 253, + "column": 54 + } + }, + "operator": "=", + "left": { + "type": "MemberExpression", + "start": 9640, + "end": 9666, + "loc": { + "start": { + "line": 253, + "column": 4 + }, + "end": { + "line": 253, + "column": 30 + } + }, + "object": { + "type": "MemberExpression", + "start": 9640, + "end": 9656, + "loc": { + "start": { + "line": 253, + "column": 4 + }, + "end": { + "line": 253, + "column": 20 + } + }, + "object": { + "type": "ThisExpression", + "start": 9640, + "end": 9644, + "loc": { + "start": { + "line": 253, + "column": 4 + }, + "end": { + "line": 253, + "column": 8 + } + } + }, + "property": { + "type": "Identifier", + "start": 9645, + "end": 9656, + "loc": { + "start": { + "line": 253, + "column": 9 + }, + "end": { + "line": 253, + "column": 20 + }, + "identifierName": "keyboardDOM" + }, + "name": "keyboardDOM" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 9657, + "end": 9666, + "loc": { + "start": { + "line": 253, + "column": 21 + }, + "end": { + "line": 253, + "column": 30 + }, + "identifierName": "className" + }, + "name": "className" + }, + "computed": false + }, + "right": { + "type": "MemberExpression", + "start": 9669, + "end": 9690, + "loc": { + "start": { + "line": 253, + "column": 33 + }, + "end": { + "line": 253, + "column": 54 + } + }, + "object": { + "type": "ThisExpression", + "start": 9669, + "end": 9673, + "loc": { + "start": { + "line": 253, + "column": 33 + }, + "end": { + "line": 253, + "column": 37 + } + } + }, + "property": { + "type": "Identifier", + "start": 9674, + "end": 9690, + "loc": { + "start": { + "line": 253, + "column": 38 + }, + "end": { + "line": 253, + "column": 54 + }, + "identifierName": "keyboardDOMClass" + }, + "name": "keyboardDOMClass" + }, + "computed": false + } + } + }, + { + "type": "ExpressionStatement", + "start": 9697, + "end": 9722, + "loc": { + "start": { + "line": 254, + "column": 4 + }, + "end": { + "line": 254, + "column": 29 + } + }, + "expression": { + "type": "AssignmentExpression", + "start": 9697, + "end": 9721, + "loc": { + "start": { + "line": 254, + "column": 4 + }, + "end": { + "line": 254, + "column": 28 + } + }, + "operator": "=", + "left": { + "type": "MemberExpression", + "start": 9697, + "end": 9716, + "loc": { + "start": { + "line": 254, + "column": 4 + }, + "end": { + "line": 254, + "column": 23 + } + }, + "object": { + "type": "ThisExpression", + "start": 9697, + "end": 9701, + "loc": { + "start": { + "line": 254, + "column": 4 + }, + "end": { + "line": 254, + "column": 8 + } + } + }, + "property": { + "type": "Identifier", + "start": 9702, + "end": 9716, + "loc": { + "start": { + "line": 254, + "column": 9 + }, + "end": { + "line": 254, + "column": 23 + }, + "identifierName": "buttonElements" + }, + "name": "buttonElements" + }, + "computed": false + }, + "right": { + "type": "ObjectExpression", + "start": 9719, + "end": 9721, + "loc": { + "start": { + "line": 254, + "column": 26 + }, + "end": { + "line": 254, + "column": 28 + } + }, + "properties": [] + } + } + } + ], + "directives": [], + "trailingComments": null + }, + "trailingComments": null + }, + "leadingComments": [ + { + "type": "CommentBlock", + "value": "*\r\n * Remove all keyboard rows and reset keyboard values.\r\n * Used interally between re-renders.\r\n ", + "start": 9468, + "end": 9577, + "loc": { + "start": { + "line": 247, + "column": 2 + }, + "end": { + "line": 250, + "column": 5 + } + } + } + ], + "trailingComments": [ + { + "type": "CommentBlock", + "value": "*\r\n * Send a command to all simple-keyboard instances at once (if you have multiple instances).\r\n * @param {function(instance: object, key: string)} callback Function to run on every instance\r\n ", + "start": 9733, + "end": 9938, + "loc": { + "start": { + "line": 257, + "column": 2 + }, + "end": { + "line": 260, + "column": 5 + } + } + } + ] + }, + { + "type": "ClassProperty", + "start": 9942, + "end": 10317, + "loc": { + "start": { + "line": 261, + "column": 2 + }, + "end": { + "line": 270, + "column": 3 + } + }, + "static": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 9942, + "end": 9950, + "loc": { + "start": { + "line": 261, + "column": 2 + }, + "end": { + "line": 261, + "column": 10 + }, + "identifierName": "dispatch" + }, + "name": "dispatch", + "leadingComments": null + }, + "value": { + "type": "ArrowFunctionExpression", + "start": 9953, + "end": 10317, + "loc": { + "start": { + "line": 261, + "column": 13 + }, + "end": { + "line": 270, + "column": 3 + } + }, + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 9954, + "end": 9962, + "loc": { + "start": { + "line": 261, + "column": 14 + }, + "end": { + "line": 261, + "column": 22 + }, + "identifierName": "callback" + }, + "name": "callback" + } + ], + "body": { + "type": "BlockStatement", + "start": 9967, + "end": 10317, + "loc": { + "start": { + "line": 261, + "column": 27 + }, + "end": { + "line": 270, + "column": 3 + } + }, + "body": [ + { + "type": "IfStatement", + "start": 9974, + "end": 10158, + "loc": { + "start": { + "line": 262, + "column": 4 + }, + "end": { + "line": 265, + "column": 5 + } + }, + "test": { + "type": "UnaryExpression", + "start": 9977, + "end": 10011, + "loc": { + "start": { + "line": 262, + "column": 7 + }, + "end": { + "line": 262, + "column": 41 + } + }, + "operator": "!", + "prefix": true, + "argument": { + "type": "MemberExpression", + "start": 9978, + "end": 10011, + "loc": { + "start": { + "line": 262, + "column": 8 + }, + "end": { + "line": 262, + "column": 41 + } + }, + "object": { + "type": "Identifier", + "start": 9978, + "end": 9984, + "loc": { + "start": { + "line": 262, + "column": 8 + }, + "end": { + "line": 262, + "column": 14 + }, + "identifierName": "window" + }, + "name": "window" + }, + "property": { + "type": "StringLiteral", + "start": 9985, + "end": 10010, + "loc": { + "start": { + "line": 262, + "column": 15 + }, + "end": { + "line": 262, + "column": 40 + } + }, + "extra": { + "rawValue": "SimpleKeyboardInstances", + "raw": "'SimpleKeyboardInstances'" + }, + "value": "SimpleKeyboardInstances" + }, + "computed": true + }, + "extra": { + "parenthesizedArgument": false + } + }, + "consequent": { + "type": "BlockStatement", + "start": 10012, + "end": 10158, + "loc": { + "start": { + "line": 262, + "column": 42 + }, + "end": { + "line": 265, + "column": 5 + } + }, + "body": [ + { + "type": "ExpressionStatement", + "start": 10021, + "end": 10104, + "loc": { + "start": { + "line": 263, + "column": 6 + }, + "end": { + "line": 263, + "column": 89 + } + }, + "expression": { + "type": "CallExpression", + "start": 10021, + "end": 10103, + "loc": { + "start": { + "line": 263, + "column": 6 + }, + "end": { + "line": 263, + "column": 88 + } + }, + "callee": { + "type": "MemberExpression", + "start": 10021, + "end": 10033, + "loc": { + "start": { + "line": 263, + "column": 6 + }, + "end": { + "line": 263, + "column": 18 + } + }, + "object": { + "type": "Identifier", + "start": 10021, + "end": 10028, + "loc": { + "start": { + "line": 263, + "column": 6 + }, + "end": { + "line": 263, + "column": 13 + }, + "identifierName": "console" + }, + "name": "console" + }, + "property": { + "type": "Identifier", + "start": 10029, + "end": 10033, + "loc": { + "start": { + "line": 263, + "column": 14 + }, + "end": { + "line": 263, + "column": 18 + }, + "identifierName": "warn" + }, + "name": "warn" + }, + "computed": false + }, + "arguments": [ + { + "type": "TemplateLiteral", + "start": 10034, + "end": 10102, + "loc": { + "start": { + "line": 263, + "column": 19 + }, + "end": { + "line": 263, + "column": 87 + } + }, + "expressions": [], + "quasis": [ + { + "type": "TemplateElement", + "start": 10035, + "end": 10101, + "loc": { + "start": { + "line": 263, + "column": 20 + }, + "end": { + "line": 263, + "column": 86 + } + }, + "value": { + "raw": "SimpleKeyboardInstances is not defined. Dispatch cannot be called.", + "cooked": "SimpleKeyboardInstances is not defined. Dispatch cannot be called." + }, + "tail": true + } + ] + } + ] + } + }, + { + "type": "ThrowStatement", + "start": 10112, + "end": 10151, + "loc": { + "start": { + "line": 264, + "column": 6 + }, + "end": { + "line": 264, + "column": 45 + } + }, + "argument": { + "type": "NewExpression", + "start": 10118, + "end": 10150, + "loc": { + "start": { + "line": 264, + "column": 12 + }, + "end": { + "line": 264, + "column": 44 + } + }, + "callee": { + "type": "Identifier", + "start": 10122, + "end": 10127, + "loc": { + "start": { + "line": 264, + "column": 16 + }, + "end": { + "line": 264, + "column": 21 + }, + "identifierName": "Error" + }, + "name": "Error" + }, + "arguments": [ + { + "type": "StringLiteral", + "start": 10128, + "end": 10149, + "loc": { + "start": { + "line": 264, + "column": 22 + }, + "end": { + "line": 264, + "column": 43 + } + }, + "extra": { + "rawValue": "INSTANCES_VAR_ERROR", + "raw": "\"INSTANCES_VAR_ERROR\"" + }, + "value": "INSTANCES_VAR_ERROR" + } + ] + } + } + ], + "directives": [] + }, + "alternate": null + }, + { + "type": "ReturnStatement", + "start": 10170, + "end": 10312, + "loc": { + "start": { + "line": 267, + "column": 4 + }, + "end": { + "line": 269, + "column": 6 + } + }, + "argument": { + "type": "CallExpression", + "start": 10177, + "end": 10312, + "loc": { + "start": { + "line": 267, + "column": 11 + }, + "end": { + "line": 269, + "column": 6 + } + }, + "callee": { + "type": "MemberExpression", + "start": 10177, + "end": 10231, + "loc": { + "start": { + "line": 267, + "column": 11 + }, + "end": { + "line": 267, + "column": 65 + } + }, + "object": { + "type": "CallExpression", + "start": 10177, + "end": 10223, + "loc": { + "start": { + "line": 267, + "column": 11 + }, + "end": { + "line": 267, + "column": 57 + } + }, + "callee": { + "type": "MemberExpression", + "start": 10177, + "end": 10188, + "loc": { + "start": { + "line": 267, + "column": 11 + }, + "end": { + "line": 267, + "column": 22 + } + }, + "object": { + "type": "Identifier", + "start": 10177, + "end": 10183, + "loc": { + "start": { + "line": 267, + "column": 11 + }, + "end": { + "line": 267, + "column": 17 + }, + "identifierName": "Object" + }, + "name": "Object" + }, + "property": { + "type": "Identifier", + "start": 10184, + "end": 10188, + "loc": { + "start": { + "line": 267, + "column": 18 + }, + "end": { + "line": 267, + "column": 22 + }, + "identifierName": "keys" + }, + "name": "keys" + }, + "computed": false + }, + "arguments": [ + { + "type": "MemberExpression", + "start": 10189, + "end": 10222, + "loc": { + "start": { + "line": 267, + "column": 23 + }, + "end": { + "line": 267, + "column": 56 + } + }, + "object": { + "type": "Identifier", + "start": 10189, + "end": 10195, + "loc": { + "start": { + "line": 267, + "column": 23 + }, + "end": { + "line": 267, + "column": 29 + }, + "identifierName": "window" + }, + "name": "window" + }, + "property": { + "type": "StringLiteral", + "start": 10196, + "end": 10221, + "loc": { + "start": { + "line": 267, + "column": 30 + }, + "end": { + "line": 267, + "column": 55 + } + }, + "extra": { + "rawValue": "SimpleKeyboardInstances", + "raw": "'SimpleKeyboardInstances'" + }, + "value": "SimpleKeyboardInstances" + }, + "computed": true + } + ] + }, + "property": { + "type": "Identifier", + "start": 10224, + "end": 10231, + "loc": { + "start": { + "line": 267, + "column": 58 + }, + "end": { + "line": 267, + "column": 65 + }, + "identifierName": "forEach" + }, + "name": "forEach" + }, + "computed": false + }, + "arguments": [ + { + "type": "ArrowFunctionExpression", + "start": 10232, + "end": 10311, + "loc": { + "start": { + "line": 267, + "column": 66 + }, + "end": { + "line": 269, + "column": 5 + } + }, + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 10233, + "end": 10236, + "loc": { + "start": { + "line": 267, + "column": 67 + }, + "end": { + "line": 267, + "column": 70 + }, + "identifierName": "key" + }, + "name": "key" + } + ], + "body": { + "type": "BlockStatement", + "start": 10241, + "end": 10311, + "loc": { + "start": { + "line": 267, + "column": 75 + }, + "end": { + "line": 269, + "column": 5 + } + }, + "body": [ + { + "type": "ExpressionStatement", + "start": 10250, + "end": 10304, + "loc": { + "start": { + "line": 268, + "column": 6 + }, + "end": { + "line": 268, + "column": 60 + } + }, + "expression": { + "type": "CallExpression", + "start": 10250, + "end": 10303, + "loc": { + "start": { + "line": 268, + "column": 6 + }, + "end": { + "line": 268, + "column": 59 + } + }, + "callee": { + "type": "Identifier", + "start": 10250, + "end": 10258, + "loc": { + "start": { + "line": 268, + "column": 6 + }, + "end": { + "line": 268, + "column": 14 + }, + "identifierName": "callback" + }, + "name": "callback" + }, + "arguments": [ + { + "type": "MemberExpression", + "start": 10259, + "end": 10297, + "loc": { + "start": { + "line": 268, + "column": 15 + }, + "end": { + "line": 268, + "column": 53 + } + }, + "object": { + "type": "MemberExpression", + "start": 10259, + "end": 10292, + "loc": { + "start": { + "line": 268, + "column": 15 + }, + "end": { + "line": 268, + "column": 48 + } + }, + "object": { + "type": "Identifier", + "start": 10259, + "end": 10265, + "loc": { + "start": { + "line": 268, + "column": 15 + }, + "end": { + "line": 268, + "column": 21 + }, + "identifierName": "window" + }, + "name": "window" + }, + "property": { + "type": "StringLiteral", + "start": 10266, + "end": 10291, + "loc": { + "start": { + "line": 268, + "column": 22 + }, + "end": { + "line": 268, + "column": 47 + } + }, + "extra": { + "rawValue": "SimpleKeyboardInstances", + "raw": "'SimpleKeyboardInstances'" + }, + "value": "SimpleKeyboardInstances" + }, + "computed": true + }, + "property": { + "type": "Identifier", + "start": 10293, + "end": 10296, + "loc": { + "start": { + "line": 268, + "column": 49 + }, + "end": { + "line": 268, + "column": 52 + }, + "identifierName": "key" + }, + "name": "key" + }, + "computed": true + }, + { + "type": "Identifier", + "start": 10299, + "end": 10302, + "loc": { + "start": { + "line": 268, + "column": 55 + }, + "end": { + "line": 268, + "column": 58 + }, + "identifierName": "key" + }, + "name": "key" + } + ] + } + } + ], + "directives": [] + } + } + ] + } + } + ], + "directives": [], + "trailingComments": null + }, + "trailingComments": null + }, + "leadingComments": [ + { + "type": "CommentBlock", + "value": "*\r\n * Send a command to all simple-keyboard instances at once (if you have multiple instances).\r\n * @param {function(instance: object, key: string)} callback Function to run on every instance\r\n ", + "start": 9733, + "end": 9938, + "loc": { + "start": { + "line": 257, + "column": 2 + }, + "end": { + "line": 260, + "column": 5 + } + } + } + ], + "trailingComments": [ + { + "type": "CommentBlock", + "value": "*\r\n * Adds/Modifies an entry to the `buttonTheme`. Basically a way to add a class to a button.\r\n * @param {string} buttons List of buttons to select (separated by a space).\r\n * @param {string} className Classes to give to the selected buttons (separated by space).\r\n ", + "start": 10323, + "end": 10604, + "loc": { + "start": { + "line": 272, + "column": 2 + }, + "end": { + "line": 276, + "column": 5 + } + } + } + ] + }, + { + "type": "ClassProperty", + "start": 10608, + "end": 11847, + "loc": { + "start": { + "line": 277, + "column": 2 + }, + "end": { + "line": 320, + "column": 3 + } + }, + "static": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 10608, + "end": 10622, + "loc": { + "start": { + "line": 277, + "column": 2 + }, + "end": { + "line": 277, + "column": 16 + }, + "identifierName": "addButtonTheme" + }, + "name": "addButtonTheme", + "leadingComments": null + }, + "value": { + "type": "ArrowFunctionExpression", + "start": 10625, + "end": 11847, + "loc": { + "start": { + "line": 277, + "column": 19 + }, + "end": { + "line": 320, + "column": 3 + } + }, + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 10626, + "end": 10633, + "loc": { + "start": { + "line": 277, + "column": 20 + }, + "end": { + "line": 277, + "column": 27 + }, + "identifierName": "buttons" + }, + "name": "buttons" + }, + { + "type": "Identifier", + "start": 10635, + "end": 10644, + "loc": { + "start": { + "line": 277, + "column": 29 + }, + "end": { + "line": 277, + "column": 38 + }, + "identifierName": "className" + }, + "name": "className" + } + ], + "body": { + "type": "BlockStatement", + "start": 10649, + "end": 11847, + "loc": { + "start": { + "line": 277, + "column": 43 + }, + "end": { + "line": 320, + "column": 3 + } + }, + "body": [ + { + "type": "IfStatement", + "start": 10656, + "end": 10703, + "loc": { + "start": { + "line": 278, + "column": 4 + }, + "end": { + "line": 279, + "column": 19 + } + }, + "test": { + "type": "LogicalExpression", + "start": 10659, + "end": 10681, + "loc": { + "start": { + "line": 278, + "column": 7 + }, + "end": { + "line": 278, + "column": 29 + } + }, + "left": { + "type": "UnaryExpression", + "start": 10659, + "end": 10669, + "loc": { + "start": { + "line": 278, + "column": 7 + }, + "end": { + "line": 278, + "column": 17 + } + }, + "operator": "!", + "prefix": true, + "argument": { + "type": "Identifier", + "start": 10660, + "end": 10669, + "loc": { + "start": { + "line": 278, + "column": 8 + }, + "end": { + "line": 278, + "column": 17 + }, + "identifierName": "className" + }, + "name": "className" + }, + "extra": { + "parenthesizedArgument": false + } + }, + "operator": "||", + "right": { + "type": "UnaryExpression", + "start": 10673, + "end": 10681, + "loc": { + "start": { + "line": 278, + "column": 21 + }, + "end": { + "line": 278, + "column": 29 + } + }, + "operator": "!", + "prefix": true, + "argument": { + "type": "Identifier", + "start": 10674, + "end": 10681, + "loc": { + "start": { + "line": 278, + "column": 22 + }, + "end": { + "line": 278, + "column": 29 + }, + "identifierName": "buttons" + }, + "name": "buttons" + }, + "extra": { + "parenthesizedArgument": false + } + } + }, + "consequent": { + "type": "ReturnStatement", + "start": 10690, + "end": 10703, + "loc": { + "start": { + "line": 279, + "column": 6 + }, + "end": { + "line": 279, + "column": 19 + } + }, + "argument": { + "type": "BooleanLiteral", + "start": 10697, + "end": 10702, + "loc": { + "start": { + "line": 279, + "column": 13 + }, + "end": { + "line": 279, + "column": 18 + } + }, + "value": false + } + }, + "alternate": null + }, + { + "type": "ExpressionStatement", + "start": 10711, + "end": 11820, + "loc": { + "start": { + "line": 281, + "column": 4 + }, + "end": { + "line": 317, + "column": 7 + } + }, + "expression": { + "type": "CallExpression", + "start": 10711, + "end": 11819, + "loc": { + "start": { + "line": 281, + "column": 4 + }, + "end": { + "line": 317, + "column": 6 + } + }, + "callee": { + "type": "MemberExpression", + "start": 10711, + "end": 10737, + "loc": { + "start": { + "line": 281, + "column": 4 + }, + "end": { + "line": 281, + "column": 30 + } + }, + "object": { + "type": "CallExpression", + "start": 10711, + "end": 10729, + "loc": { + "start": { + "line": 281, + "column": 4 + }, + "end": { + "line": 281, + "column": 22 + } + }, + "callee": { + "type": "MemberExpression", + "start": 10711, + "end": 10724, + "loc": { + "start": { + "line": 281, + "column": 4 + }, + "end": { + "line": 281, + "column": 17 + } + }, + "object": { + "type": "Identifier", + "start": 10711, + "end": 10718, + "loc": { + "start": { + "line": 281, + "column": 4 + }, + "end": { + "line": 281, + "column": 11 + }, + "identifierName": "buttons" + }, + "name": "buttons" + }, + "property": { + "type": "Identifier", + "start": 10719, + "end": 10724, + "loc": { + "start": { + "line": 281, + "column": 12 + }, + "end": { + "line": 281, + "column": 17 + }, + "identifierName": "split" + }, + "name": "split" + }, + "computed": false + }, + "arguments": [ + { + "type": "StringLiteral", + "start": 10725, + "end": 10728, + "loc": { + "start": { + "line": 281, + "column": 18 + }, + "end": { + "line": 281, + "column": 21 + } + }, + "extra": { + "rawValue": " ", + "raw": "\" \"" + }, + "value": " " + } + ] + }, + "property": { + "type": "Identifier", + "start": 10730, + "end": 10737, + "loc": { + "start": { + "line": 281, + "column": 23 + }, + "end": { + "line": 281, + "column": 30 + }, + "identifierName": "forEach" + }, + "name": "forEach" + }, + "computed": false + }, + "arguments": [ + { + "type": "ArrowFunctionExpression", + "start": 10738, + "end": 11818, + "loc": { + "start": { + "line": 281, + "column": 31 + }, + "end": { + "line": 317, + "column": 5 + } + }, + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 10738, + "end": 10744, + "loc": { + "start": { + "line": 281, + "column": 31 + }, + "end": { + "line": 281, + "column": 37 + }, + "identifierName": "button" + }, + "name": "button" + } + ], + "body": { + "type": "BlockStatement", + "start": 10748, + "end": 11818, + "loc": { + "start": { + "line": 281, + "column": 41 + }, + "end": { + "line": 317, + "column": 5 + } + }, + "body": [ + { + "type": "ExpressionStatement", + "start": 10757, + "end": 11811, + "loc": { + "start": { + "line": 282, + "column": 6 + }, + "end": { + "line": 316, + "column": 9 + } + }, + "expression": { + "type": "CallExpression", + "start": 10757, + "end": 11810, + "loc": { + "start": { + "line": 282, + "column": 6 + }, + "end": { + "line": 316, + "column": 8 + } + }, + "callee": { + "type": "MemberExpression", + "start": 10757, + "end": 10785, + "loc": { + "start": { + "line": 282, + "column": 6 + }, + "end": { + "line": 282, + "column": 34 + } + }, + "object": { + "type": "CallExpression", + "start": 10757, + "end": 10777, + "loc": { + "start": { + "line": 282, + "column": 6 + }, + "end": { + "line": 282, + "column": 26 + } + }, + "callee": { + "type": "MemberExpression", + "start": 10757, + "end": 10772, + "loc": { + "start": { + "line": 282, + "column": 6 + }, + "end": { + "line": 282, + "column": 21 + } + }, + "object": { + "type": "Identifier", + "start": 10757, + "end": 10766, + "loc": { + "start": { + "line": 282, + "column": 6 + }, + "end": { + "line": 282, + "column": 15 + }, + "identifierName": "className" + }, + "name": "className" + }, + "property": { + "type": "Identifier", + "start": 10767, + "end": 10772, + "loc": { + "start": { + "line": 282, + "column": 16 + }, + "end": { + "line": 282, + "column": 21 + }, + "identifierName": "split" + }, + "name": "split" + }, + "computed": false + }, + "arguments": [ + { + "type": "StringLiteral", + "start": 10773, + "end": 10776, + "loc": { + "start": { + "line": 282, + "column": 22 + }, + "end": { + "line": 282, + "column": 25 + } + }, + "extra": { + "rawValue": " ", + "raw": "\" \"" + }, + "value": " " + } + ] + }, + "property": { + "type": "Identifier", + "start": 10778, + "end": 10785, + "loc": { + "start": { + "line": 282, + "column": 27 + }, + "end": { + "line": 282, + "column": 34 + }, + "identifierName": "forEach" + }, + "name": "forEach" + }, + "computed": false + }, + "arguments": [ + { + "type": "ArrowFunctionExpression", + "start": 10786, + "end": 11809, + "loc": { + "start": { + "line": 282, + "column": 35 + }, + "end": { + "line": 316, + "column": 7 + } + }, + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 10786, + "end": 10799, + "loc": { + "start": { + "line": 282, + "column": 35 + }, + "end": { + "line": 282, + "column": 48 + }, + "identifierName": "classNameItem" + }, + "name": "classNameItem" + } + ], + "body": { + "type": "BlockStatement", + "start": 10803, + "end": 11809, + "loc": { + "start": { + "line": 282, + "column": 52 + }, + "end": { + "line": 316, + "column": 7 + } + }, + "body": [ + { + "type": "IfStatement", + "start": 10814, + "end": 10885, + "loc": { + "start": { + "line": 283, + "column": 8 + }, + "end": { + "line": 284, + "column": 40 + } + }, + "test": { + "type": "UnaryExpression", + "start": 10817, + "end": 10842, + "loc": { + "start": { + "line": 283, + "column": 11 + }, + "end": { + "line": 283, + "column": 36 + } + }, + "operator": "!", + "prefix": true, + "argument": { + "type": "MemberExpression", + "start": 10818, + "end": 10842, + "loc": { + "start": { + "line": 283, + "column": 12 + }, + "end": { + "line": 283, + "column": 36 + } + }, + "object": { + "type": "MemberExpression", + "start": 10818, + "end": 10830, + "loc": { + "start": { + "line": 283, + "column": 12 + }, + "end": { + "line": 283, + "column": 24 + } + }, + "object": { + "type": "ThisExpression", + "start": 10818, + "end": 10822, + "loc": { + "start": { + "line": 283, + "column": 12 + }, + "end": { + "line": 283, + "column": 16 + } + } + }, + "property": { + "type": "Identifier", + "start": 10823, + "end": 10830, + "loc": { + "start": { + "line": 283, + "column": 17 + }, + "end": { + "line": 283, + "column": 24 + }, + "identifierName": "options" + }, + "name": "options" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 10831, + "end": 10842, + "loc": { + "start": { + "line": 283, + "column": 25 + }, + "end": { + "line": 283, + "column": 36 + }, + "identifierName": "buttonTheme" + }, + "name": "buttonTheme" + }, + "computed": false + }, + "extra": { + "parenthesizedArgument": false + } + }, + "consequent": { + "type": "ExpressionStatement", + "start": 10855, + "end": 10885, + "loc": { + "start": { + "line": 284, + "column": 10 + }, + "end": { + "line": 284, + "column": 40 + } + }, + "expression": { + "type": "AssignmentExpression", + "start": 10855, + "end": 10884, + "loc": { + "start": { + "line": 284, + "column": 10 + }, + "end": { + "line": 284, + "column": 39 + } + }, + "operator": "=", + "left": { + "type": "MemberExpression", + "start": 10855, + "end": 10879, + "loc": { + "start": { + "line": 284, + "column": 10 + }, + "end": { + "line": 284, + "column": 34 + } + }, + "object": { + "type": "MemberExpression", + "start": 10855, + "end": 10867, + "loc": { + "start": { + "line": 284, + "column": 10 + }, + "end": { + "line": 284, + "column": 22 + } + }, + "object": { + "type": "ThisExpression", + "start": 10855, + "end": 10859, + "loc": { + "start": { + "line": 284, + "column": 10 + }, + "end": { + "line": 284, + "column": 14 + } + } + }, + "property": { + "type": "Identifier", + "start": 10860, + "end": 10867, + "loc": { + "start": { + "line": 284, + "column": 15 + }, + "end": { + "line": 284, + "column": 22 + }, + "identifierName": "options" + }, + "name": "options" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 10868, + "end": 10879, + "loc": { + "start": { + "line": 284, + "column": 23 + }, + "end": { + "line": 284, + "column": 34 + }, + "identifierName": "buttonTheme" + }, + "name": "buttonTheme" + }, + "computed": false + }, + "right": { + "type": "ArrayExpression", + "start": 10882, + "end": 10884, + "loc": { + "start": { + "line": 284, + "column": 37 + }, + "end": { + "line": 284, + "column": 39 + } + }, + "elements": [] + } + } + }, + "alternate": null + }, + { + "type": "VariableDeclaration", + "start": 10897, + "end": 10924, + "loc": { + "start": { + "line": 286, + "column": 8 + }, + "end": { + "line": 286, + "column": 35 + } + }, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 10901, + "end": 10923, + "loc": { + "start": { + "line": 286, + "column": 12 + }, + "end": { + "line": 286, + "column": 34 + } + }, + "id": { + "type": "Identifier", + "start": 10901, + "end": 10915, + "loc": { + "start": { + "line": 286, + "column": 12 + }, + "end": { + "line": 286, + "column": 26 + }, + "identifierName": "classNameFound" + }, + "name": "classNameFound" + }, + "init": { + "type": "BooleanLiteral", + "start": 10918, + "end": 10923, + "loc": { + "start": { + "line": 286, + "column": 29 + }, + "end": { + "line": 286, + "column": 34 + } + }, + "value": false + } + } + ], + "kind": "let", + "trailingComments": [ + { + "type": "CommentBlock", + "value": "*\r\n * If class is already defined, we add button to class definition\r\n ", + "start": 10938, + "end": 11029, + "loc": { + "start": { + "line": 288, + "column": 8 + }, + "end": { + "line": 290, + "column": 11 + } + } + } + ] + }, + { + "type": "ExpressionStatement", + "start": 11039, + "end": 11547, + "loc": { + "start": { + "line": 291, + "column": 8 + }, + "end": { + "line": 304, + "column": 11 + } + }, + "expression": { + "type": "CallExpression", + "start": 11039, + "end": 11546, + "loc": { + "start": { + "line": 291, + "column": 8 + }, + "end": { + "line": 304, + "column": 10 + } + }, + "callee": { + "type": "MemberExpression", + "start": 11039, + "end": 11067, + "loc": { + "start": { + "line": 291, + "column": 8 + }, + "end": { + "line": 291, + "column": 36 + } + }, + "object": { + "type": "MemberExpression", + "start": 11039, + "end": 11063, + "loc": { + "start": { + "line": 291, + "column": 8 + }, + "end": { + "line": 291, + "column": 32 + } + }, + "object": { + "type": "MemberExpression", + "start": 11039, + "end": 11051, + "loc": { + "start": { + "line": 291, + "column": 8 + }, + "end": { + "line": 291, + "column": 20 + } + }, + "object": { + "type": "ThisExpression", + "start": 11039, + "end": 11043, + "loc": { + "start": { + "line": 291, + "column": 8 + }, + "end": { + "line": 291, + "column": 12 + } + }, + "leadingComments": null + }, + "property": { + "type": "Identifier", + "start": 11044, + "end": 11051, + "loc": { + "start": { + "line": 291, + "column": 13 + }, + "end": { + "line": 291, + "column": 20 + }, + "identifierName": "options" + }, + "name": "options" + }, + "computed": false, + "leadingComments": null + }, + "property": { + "type": "Identifier", + "start": 11052, + "end": 11063, + "loc": { + "start": { + "line": 291, + "column": 21 + }, + "end": { + "line": 291, + "column": 32 + }, + "identifierName": "buttonTheme" + }, + "name": "buttonTheme" + }, + "computed": false, + "leadingComments": null + }, + "property": { + "type": "Identifier", + "start": 11064, + "end": 11067, + "loc": { + "start": { + "line": 291, + "column": 33 + }, + "end": { + "line": 291, + "column": 36 + }, + "identifierName": "map" + }, + "name": "map" + }, + "computed": false, + "leadingComments": null + }, + "arguments": [ + { + "type": "ArrowFunctionExpression", + "start": 11068, + "end": 11545, + "loc": { + "start": { + "line": 291, + "column": 37 + }, + "end": { + "line": 304, + "column": 9 + } + }, + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 11068, + "end": 11079, + "loc": { + "start": { + "line": 291, + "column": 37 + }, + "end": { + "line": 291, + "column": 48 + }, + "identifierName": "buttonTheme" + }, + "name": "buttonTheme" + } + ], + "body": { + "type": "BlockStatement", + "start": 11083, + "end": 11545, + "loc": { + "start": { + "line": 291, + "column": 52 + }, + "end": { + "line": 304, + "column": 9 + } + }, + "body": [ + { + "type": "IfStatement", + "start": 11098, + "end": 11503, + "loc": { + "start": { + "line": 293, + "column": 10 + }, + "end": { + "line": 302, + "column": 11 + } + }, + "test": { + "type": "CallExpression", + "start": 11101, + "end": 11153, + "loc": { + "start": { + "line": 293, + "column": 13 + }, + "end": { + "line": 293, + "column": 65 + } + }, + "callee": { + "type": "MemberExpression", + "start": 11101, + "end": 11138, + "loc": { + "start": { + "line": 293, + "column": 13 + }, + "end": { + "line": 293, + "column": 50 + } + }, + "object": { + "type": "CallExpression", + "start": 11101, + "end": 11129, + "loc": { + "start": { + "line": 293, + "column": 13 + }, + "end": { + "line": 293, + "column": 41 + } + }, + "callee": { + "type": "MemberExpression", + "start": 11101, + "end": 11124, + "loc": { + "start": { + "line": 293, + "column": 13 + }, + "end": { + "line": 293, + "column": 36 + } + }, + "object": { + "type": "MemberExpression", + "start": 11101, + "end": 11118, + "loc": { + "start": { + "line": 293, + "column": 13 + }, + "end": { + "line": 293, + "column": 30 + } + }, + "object": { + "type": "Identifier", + "start": 11101, + "end": 11112, + "loc": { + "start": { + "line": 293, + "column": 13 + }, + "end": { + "line": 293, + "column": 24 + }, + "identifierName": "buttonTheme" + }, + "name": "buttonTheme" + }, + "property": { + "type": "Identifier", + "start": 11113, + "end": 11118, + "loc": { + "start": { + "line": 293, + "column": 25 + }, + "end": { + "line": 293, + "column": 30 + }, + "identifierName": "class" + }, + "name": "class" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 11119, + "end": 11124, + "loc": { + "start": { + "line": 293, + "column": 31 + }, + "end": { + "line": 293, + "column": 36 + }, + "identifierName": "split" + }, + "name": "split" + }, + "computed": false + }, + "arguments": [ + { + "type": "StringLiteral", + "start": 11125, + "end": 11128, + "loc": { + "start": { + "line": 293, + "column": 37 + }, + "end": { + "line": 293, + "column": 40 + } + }, + "extra": { + "rawValue": " ", + "raw": "\" \"" + }, + "value": " " + } + ] + }, + "property": { + "type": "Identifier", + "start": 11130, + "end": 11138, + "loc": { + "start": { + "line": 293, + "column": 42 + }, + "end": { + "line": 293, + "column": 50 + }, + "identifierName": "includes" + }, + "name": "includes" + }, + "computed": false + }, + "arguments": [ + { + "type": "Identifier", + "start": 11139, + "end": 11152, + "loc": { + "start": { + "line": 293, + "column": 51 + }, + "end": { + "line": 293, + "column": 64 + }, + "identifierName": "classNameItem" + }, + "name": "classNameItem" + } + ] + }, + "consequent": { + "type": "BlockStatement", + "start": 11154, + "end": 11503, + "loc": { + "start": { + "line": 293, + "column": 66 + }, + "end": { + "line": 302, + "column": 11 + } + }, + "body": [ + { + "type": "ExpressionStatement", + "start": 11169, + "end": 11191, + "loc": { + "start": { + "line": 294, + "column": 12 + }, + "end": { + "line": 294, + "column": 34 + } + }, + "expression": { + "type": "AssignmentExpression", + "start": 11169, + "end": 11190, + "loc": { + "start": { + "line": 294, + "column": 12 + }, + "end": { + "line": 294, + "column": 33 + } + }, + "operator": "=", + "left": { + "type": "Identifier", + "start": 11169, + "end": 11183, + "loc": { + "start": { + "line": 294, + "column": 12 + }, + "end": { + "line": 294, + "column": 26 + }, + "identifierName": "classNameFound" + }, + "name": "classNameFound" + }, + "right": { + "type": "BooleanLiteral", + "start": 11186, + "end": 11190, + "loc": { + "start": { + "line": 294, + "column": 29 + }, + "end": { + "line": 294, + "column": 33 + } + }, + "value": true + } + } + }, + { + "type": "VariableDeclaration", + "start": 11219, + "end": 11273, + "loc": { + "start": { + "line": 296, + "column": 12 + }, + "end": { + "line": 296, + "column": 66 + } + }, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 11223, + "end": 11272, + "loc": { + "start": { + "line": 296, + "column": 16 + }, + "end": { + "line": 296, + "column": 65 + } + }, + "id": { + "type": "Identifier", + "start": 11223, + "end": 11239, + "loc": { + "start": { + "line": 296, + "column": 16 + }, + "end": { + "line": 296, + "column": 32 + }, + "identifierName": "buttonThemeArray" + }, + "name": "buttonThemeArray" + }, + "init": { + "type": "CallExpression", + "start": 11242, + "end": 11272, + "loc": { + "start": { + "line": 296, + "column": 35 + }, + "end": { + "line": 296, + "column": 65 + } + }, + "callee": { + "type": "MemberExpression", + "start": 11242, + "end": 11267, + "loc": { + "start": { + "line": 296, + "column": 35 + }, + "end": { + "line": 296, + "column": 60 + } + }, + "object": { + "type": "MemberExpression", + "start": 11242, + "end": 11261, + "loc": { + "start": { + "line": 296, + "column": 35 + }, + "end": { + "line": 296, + "column": 54 + } + }, + "object": { + "type": "Identifier", + "start": 11242, + "end": 11253, + "loc": { + "start": { + "line": 296, + "column": 35 + }, + "end": { + "line": 296, + "column": 46 + }, + "identifierName": "buttonTheme" + }, + "name": "buttonTheme" + }, + "property": { + "type": "Identifier", + "start": 11254, + "end": 11261, + "loc": { + "start": { + "line": 296, + "column": 47 + }, + "end": { + "line": 296, + "column": 54 + }, + "identifierName": "buttons" + }, + "name": "buttons" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 11262, + "end": 11267, + "loc": { + "start": { + "line": 296, + "column": 55 + }, + "end": { + "line": 296, + "column": 60 + }, + "identifierName": "split" + }, + "name": "split" + }, + "computed": false + }, + "arguments": [ + { + "type": "StringLiteral", + "start": 11268, + "end": 11271, + "loc": { + "start": { + "line": 296, + "column": 61 + }, + "end": { + "line": 296, + "column": 64 + } + }, + "extra": { + "rawValue": " ", + "raw": "\" \"" + }, + "value": " " + } + ] + } + } + ], + "kind": "let" + }, + { + "type": "IfStatement", + "start": 11287, + "end": 11490, + "loc": { + "start": { + "line": 297, + "column": 12 + }, + "end": { + "line": 301, + "column": 13 + } + }, + "test": { + "type": "UnaryExpression", + "start": 11290, + "end": 11324, + "loc": { + "start": { + "line": 297, + "column": 15 + }, + "end": { + "line": 297, + "column": 49 + } + }, + "operator": "!", + "prefix": true, + "argument": { + "type": "CallExpression", + "start": 11291, + "end": 11324, + "loc": { + "start": { + "line": 297, + "column": 16 + }, + "end": { + "line": 297, + "column": 49 + } + }, + "callee": { + "type": "MemberExpression", + "start": 11291, + "end": 11316, + "loc": { + "start": { + "line": 297, + "column": 16 + }, + "end": { + "line": 297, + "column": 41 + } + }, + "object": { + "type": "Identifier", + "start": 11291, + "end": 11307, + "loc": { + "start": { + "line": 297, + "column": 16 + }, + "end": { + "line": 297, + "column": 32 + }, + "identifierName": "buttonThemeArray" + }, + "name": "buttonThemeArray" + }, + "property": { + "type": "Identifier", + "start": 11308, + "end": 11316, + "loc": { + "start": { + "line": 297, + "column": 33 + }, + "end": { + "line": 297, + "column": 41 + }, + "identifierName": "includes" + }, + "name": "includes" + }, + "computed": false + }, + "arguments": [ + { + "type": "Identifier", + "start": 11317, + "end": 11323, + "loc": { + "start": { + "line": 297, + "column": 42 + }, + "end": { + "line": 297, + "column": 48 + }, + "identifierName": "button" + }, + "name": "button" + } + ] + }, + "extra": { + "parenthesizedArgument": false + } + }, + "consequent": { + "type": "BlockStatement", + "start": 11325, + "end": 11490, + "loc": { + "start": { + "line": 297, + "column": 50 + }, + "end": { + "line": 301, + "column": 13 + } + }, + "body": [ + { + "type": "ExpressionStatement", + "start": 11342, + "end": 11364, + "loc": { + "start": { + "line": 298, + "column": 14 + }, + "end": { + "line": 298, + "column": 36 + } + }, + "expression": { + "type": "AssignmentExpression", + "start": 11342, + "end": 11363, + "loc": { + "start": { + "line": 298, + "column": 14 + }, + "end": { + "line": 298, + "column": 35 + } + }, + "operator": "=", + "left": { + "type": "Identifier", + "start": 11342, + "end": 11356, + "loc": { + "start": { + "line": 298, + "column": 14 + }, + "end": { + "line": 298, + "column": 28 + }, + "identifierName": "classNameFound" + }, + "name": "classNameFound" + }, + "right": { + "type": "BooleanLiteral", + "start": 11359, + "end": 11363, + "loc": { + "start": { + "line": 298, + "column": 31 + }, + "end": { + "line": 298, + "column": 35 + } + }, + "value": true + } + } + }, + { + "type": "ExpressionStatement", + "start": 11380, + "end": 11410, + "loc": { + "start": { + "line": 299, + "column": 14 + }, + "end": { + "line": 299, + "column": 44 + } + }, + "expression": { + "type": "CallExpression", + "start": 11380, + "end": 11409, + "loc": { + "start": { + "line": 299, + "column": 14 + }, + "end": { + "line": 299, + "column": 43 + } + }, + "callee": { + "type": "MemberExpression", + "start": 11380, + "end": 11401, + "loc": { + "start": { + "line": 299, + "column": 14 + }, + "end": { + "line": 299, + "column": 35 + } + }, + "object": { + "type": "Identifier", + "start": 11380, + "end": 11396, + "loc": { + "start": { + "line": 299, + "column": 14 + }, + "end": { + "line": 299, + "column": 30 + }, + "identifierName": "buttonThemeArray" + }, + "name": "buttonThemeArray" + }, + "property": { + "type": "Identifier", + "start": 11397, + "end": 11401, + "loc": { + "start": { + "line": 299, + "column": 31 + }, + "end": { + "line": 299, + "column": 35 + }, + "identifierName": "push" + }, + "name": "push" + }, + "computed": false + }, + "arguments": [ + { + "type": "Identifier", + "start": 11402, + "end": 11408, + "loc": { + "start": { + "line": 299, + "column": 36 + }, + "end": { + "line": 299, + "column": 42 + }, + "identifierName": "button" + }, + "name": "button" + } + ] + } + }, + { + "type": "ExpressionStatement", + "start": 11426, + "end": 11475, + "loc": { + "start": { + "line": 300, + "column": 14 + }, + "end": { + "line": 300, + "column": 63 + } + }, + "expression": { + "type": "AssignmentExpression", + "start": 11426, + "end": 11474, + "loc": { + "start": { + "line": 300, + "column": 14 + }, + "end": { + "line": 300, + "column": 62 + } + }, + "operator": "=", + "left": { + "type": "MemberExpression", + "start": 11426, + "end": 11445, + "loc": { + "start": { + "line": 300, + "column": 14 + }, + "end": { + "line": 300, + "column": 33 + } + }, + "object": { + "type": "Identifier", + "start": 11426, + "end": 11437, + "loc": { + "start": { + "line": 300, + "column": 14 + }, + "end": { + "line": 300, + "column": 25 + }, + "identifierName": "buttonTheme" + }, + "name": "buttonTheme" + }, + "property": { + "type": "Identifier", + "start": 11438, + "end": 11445, + "loc": { + "start": { + "line": 300, + "column": 26 + }, + "end": { + "line": 300, + "column": 33 + }, + "identifierName": "buttons" + }, + "name": "buttons" + }, + "computed": false + }, + "right": { + "type": "CallExpression", + "start": 11448, + "end": 11474, + "loc": { + "start": { + "line": 300, + "column": 36 + }, + "end": { + "line": 300, + "column": 62 + } + }, + "callee": { + "type": "MemberExpression", + "start": 11448, + "end": 11469, + "loc": { + "start": { + "line": 300, + "column": 36 + }, + "end": { + "line": 300, + "column": 57 + } + }, + "object": { + "type": "Identifier", + "start": 11448, + "end": 11464, + "loc": { + "start": { + "line": 300, + "column": 36 + }, + "end": { + "line": 300, + "column": 52 + }, + "identifierName": "buttonThemeArray" + }, + "name": "buttonThemeArray" + }, + "property": { + "type": "Identifier", + "start": 11465, + "end": 11469, + "loc": { + "start": { + "line": 300, + "column": 53 + }, + "end": { + "line": 300, + "column": 57 + }, + "identifierName": "join" + }, + "name": "join" + }, + "computed": false + }, + "arguments": [ + { + "type": "StringLiteral", + "start": 11470, + "end": 11473, + "loc": { + "start": { + "line": 300, + "column": 58 + }, + "end": { + "line": 300, + "column": 61 + } + }, + "extra": { + "rawValue": " ", + "raw": "\" \"" + }, + "value": " " + } + ] + } + } + } + ], + "directives": [] + }, + "alternate": null + } + ], + "directives": [] + }, + "alternate": null + }, + { + "type": "ReturnStatement", + "start": 11515, + "end": 11534, + "loc": { + "start": { + "line": 303, + "column": 10 + }, + "end": { + "line": 303, + "column": 29 + } + }, + "argument": { + "type": "Identifier", + "start": 11522, + "end": 11533, + "loc": { + "start": { + "line": 303, + "column": 17 + }, + "end": { + "line": 303, + "column": 28 + }, + "identifierName": "buttonTheme" + }, + "name": "buttonTheme" + } + } + ], + "directives": [] + } + } + ], + "leadingComments": null + }, + "leadingComments": [ + { + "type": "CommentBlock", + "value": "*\r\n * If class is already defined, we add button to class definition\r\n ", + "start": 10938, + "end": 11029, + "loc": { + "start": { + "line": 288, + "column": 8 + }, + "end": { + "line": 290, + "column": 11 + } + } + } + ], + "trailingComments": [ + { + "type": "CommentBlock", + "value": "*\r\n * If class is not defined, we create a new entry\r\n ", + "start": 11559, + "end": 11634, + "loc": { + "start": { + "line": 306, + "column": 8 + }, + "end": { + "line": 308, + "column": 11 + } + } + } + ] + }, + { + "type": "IfStatement", + "start": 11644, + "end": 11798, + "loc": { + "start": { + "line": 309, + "column": 8 + }, + "end": { + "line": 314, + "column": 9 + } + }, + "test": { + "type": "UnaryExpression", + "start": 11647, + "end": 11662, + "loc": { + "start": { + "line": 309, + "column": 11 + }, + "end": { + "line": 309, + "column": 26 + } + }, + "operator": "!", + "prefix": true, + "argument": { + "type": "Identifier", + "start": 11648, + "end": 11662, + "loc": { + "start": { + "line": 309, + "column": 12 + }, + "end": { + "line": 309, + "column": 26 + }, + "identifierName": "classNameFound" + }, + "name": "classNameFound", + "leadingComments": null + }, + "extra": { + "parenthesizedArgument": false + }, + "leadingComments": null + }, + "consequent": { + "type": "BlockStatement", + "start": 11663, + "end": 11798, + "loc": { + "start": { + "line": 309, + "column": 27 + }, + "end": { + "line": 314, + "column": 9 + } + }, + "body": [ + { + "type": "ExpressionStatement", + "start": 11676, + "end": 11787, + "loc": { + "start": { + "line": 310, + "column": 10 + }, + "end": { + "line": 313, + "column": 13 + } + }, + "expression": { + "type": "CallExpression", + "start": 11676, + "end": 11786, + "loc": { + "start": { + "line": 310, + "column": 10 + }, + "end": { + "line": 313, + "column": 12 + } + }, + "callee": { + "type": "MemberExpression", + "start": 11676, + "end": 11705, + "loc": { + "start": { + "line": 310, + "column": 10 + }, + "end": { + "line": 310, + "column": 39 + } + }, + "object": { + "type": "MemberExpression", + "start": 11676, + "end": 11700, + "loc": { + "start": { + "line": 310, + "column": 10 + }, + "end": { + "line": 310, + "column": 34 + } + }, + "object": { + "type": "MemberExpression", + "start": 11676, + "end": 11688, + "loc": { + "start": { + "line": 310, + "column": 10 + }, + "end": { + "line": 310, + "column": 22 + } + }, + "object": { + "type": "ThisExpression", + "start": 11676, + "end": 11680, + "loc": { + "start": { + "line": 310, + "column": 10 + }, + "end": { + "line": 310, + "column": 14 + } + } + }, + "property": { + "type": "Identifier", + "start": 11681, + "end": 11688, + "loc": { + "start": { + "line": 310, + "column": 15 + }, + "end": { + "line": 310, + "column": 22 + }, + "identifierName": "options" + }, + "name": "options" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 11689, + "end": 11700, + "loc": { + "start": { + "line": 310, + "column": 23 + }, + "end": { + "line": 310, + "column": 34 + }, + "identifierName": "buttonTheme" + }, + "name": "buttonTheme" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 11701, + "end": 11705, + "loc": { + "start": { + "line": 310, + "column": 35 + }, + "end": { + "line": 310, + "column": 39 + }, + "identifierName": "push" + }, + "name": "push" + }, + "computed": false + }, + "arguments": [ + { + "type": "ObjectExpression", + "start": 11706, + "end": 11785, + "loc": { + "start": { + "line": 310, + "column": 40 + }, + "end": { + "line": 313, + "column": 11 + } + }, + "properties": [ + { + "type": "ObjectProperty", + "start": 11721, + "end": 11741, + "loc": { + "start": { + "line": 311, + "column": 12 + }, + "end": { + "line": 311, + "column": 32 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 11721, + "end": 11726, + "loc": { + "start": { + "line": 311, + "column": 12 + }, + "end": { + "line": 311, + "column": 17 + }, + "identifierName": "class" + }, + "name": "class" + }, + "value": { + "type": "Identifier", + "start": 11728, + "end": 11741, + "loc": { + "start": { + "line": 311, + "column": 19 + }, + "end": { + "line": 311, + "column": 32 + }, + "identifierName": "classNameItem" + }, + "name": "classNameItem" + } + }, + { + "type": "ObjectProperty", + "start": 11756, + "end": 11772, + "loc": { + "start": { + "line": 312, + "column": 12 + }, + "end": { + "line": 312, + "column": 28 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 11756, + "end": 11763, + "loc": { + "start": { + "line": 312, + "column": 12 + }, + "end": { + "line": 312, + "column": 19 + }, + "identifierName": "buttons" + }, + "name": "buttons" + }, + "value": { + "type": "Identifier", + "start": 11765, + "end": 11772, + "loc": { + "start": { + "line": 312, + "column": 21 + }, + "end": { + "line": 312, + "column": 28 + }, + "identifierName": "buttons" + }, + "name": "buttons" + } + } + ] + } + ] + } + } + ], + "directives": [] + }, + "alternate": null, + "leadingComments": [ + { + "type": "CommentBlock", + "value": "*\r\n * If class is not defined, we create a new entry\r\n ", + "start": 11559, + "end": 11634, + "loc": { + "start": { + "line": 306, + "column": 8 + }, + "end": { + "line": 308, + "column": 11 + } + } + } + ] + } + ], + "directives": [] + } + } + ] + } + } + ], + "directives": [] + } + } + ] + } + }, + { + "type": "ExpressionStatement", + "start": 11828, + "end": 11842, + "loc": { + "start": { + "line": 319, + "column": 4 + }, + "end": { + "line": 319, + "column": 18 + } + }, + "expression": { + "type": "CallExpression", + "start": 11828, + "end": 11841, + "loc": { + "start": { + "line": 319, + "column": 4 + }, + "end": { + "line": 319, + "column": 17 + } + }, + "callee": { + "type": "MemberExpression", + "start": 11828, + "end": 11839, + "loc": { + "start": { + "line": 319, + "column": 4 + }, + "end": { + "line": 319, + "column": 15 + } + }, + "object": { + "type": "ThisExpression", + "start": 11828, + "end": 11832, + "loc": { + "start": { + "line": 319, + "column": 4 + }, + "end": { + "line": 319, + "column": 8 + } + } + }, + "property": { + "type": "Identifier", + "start": 11833, + "end": 11839, + "loc": { + "start": { + "line": 319, + "column": 9 + }, + "end": { + "line": 319, + "column": 15 + }, + "identifierName": "render" + }, + "name": "render" + }, + "computed": false + }, + "arguments": [] + } + } + ], + "directives": [], + "trailingComments": null + }, + "trailingComments": null + }, + "leadingComments": [ + { + "type": "CommentBlock", + "value": "*\r\n * Adds/Modifies an entry to the `buttonTheme`. Basically a way to add a class to a button.\r\n * @param {string} buttons List of buttons to select (separated by a space).\r\n * @param {string} className Classes to give to the selected buttons (separated by space).\r\n ", + "start": 10323, + "end": 10604, + "loc": { + "start": { + "line": 272, + "column": 2 + }, + "end": { + "line": 276, + "column": 5 + } + } + } + ], + "trailingComments": [ + { + "type": "CommentBlock", + "value": "*\r\n * Removes/Amends an entry to the `buttonTheme`. Basically a way to remove a class previously added to a button through buttonTheme or addButtonTheme.\r\n * @param {string} buttons List of buttons to select (separated by a space).\r\n * @param {string} className Classes to give to the selected buttons (separated by space).\r\n ", + "start": 11853, + "end": 12193, + "loc": { + "start": { + "line": 322, + "column": 2 + }, + "end": { + "line": 326, + "column": 5 + } + } + } + ] + }, + { + "type": "ClassProperty", + "start": 12197, + "end": 13621, + "loc": { + "start": { + "line": 327, + "column": 2 + }, + "end": { + "line": 373, + "column": 3 + } + }, + "static": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 12197, + "end": 12214, + "loc": { + "start": { + "line": 327, + "column": 2 + }, + "end": { + "line": 327, + "column": 19 + }, + "identifierName": "removeButtonTheme" + }, + "name": "removeButtonTheme", + "leadingComments": null + }, + "value": { + "type": "ArrowFunctionExpression", + "start": 12217, + "end": 13621, + "loc": { + "start": { + "line": 327, + "column": 22 + }, + "end": { + "line": 373, + "column": 3 + } + }, + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 12218, + "end": 12225, + "loc": { + "start": { + "line": 327, + "column": 23 + }, + "end": { + "line": 327, + "column": 30 + }, + "identifierName": "buttons" + }, + "name": "buttons" + }, + { + "type": "Identifier", + "start": 12227, + "end": 12236, + "loc": { + "start": { + "line": 327, + "column": 32 + }, + "end": { + "line": 327, + "column": 41 + }, + "identifierName": "className" + }, + "name": "className" + } + ], + "body": { + "type": "BlockStatement", + "start": 12241, + "end": 13621, + "loc": { + "start": { + "line": 327, + "column": 46 + }, + "end": { + "line": 373, + "column": 3 + } + }, + "body": [ + { + "type": "IfStatement", + "start": 12334, + "end": 12449, + "loc": { + "start": { + "line": 331, + "column": 4 + }, + "end": { + "line": 335, + "column": 5 + } + }, + "test": { + "type": "LogicalExpression", + "start": 12337, + "end": 12359, + "loc": { + "start": { + "line": 331, + "column": 7 + }, + "end": { + "line": 331, + "column": 29 + } + }, + "left": { + "type": "UnaryExpression", + "start": 12337, + "end": 12345, + "loc": { + "start": { + "line": 331, + "column": 7 + }, + "end": { + "line": 331, + "column": 15 + } + }, + "operator": "!", + "prefix": true, + "argument": { + "type": "Identifier", + "start": 12338, + "end": 12345, + "loc": { + "start": { + "line": 331, + "column": 8 + }, + "end": { + "line": 331, + "column": 15 + }, + "identifierName": "buttons" + }, + "name": "buttons", + "leadingComments": null + }, + "extra": { + "parenthesizedArgument": false + }, + "leadingComments": null + }, + "operator": "&&", + "right": { + "type": "UnaryExpression", + "start": 12349, + "end": 12359, + "loc": { + "start": { + "line": 331, + "column": 19 + }, + "end": { + "line": 331, + "column": 29 + } + }, + "operator": "!", + "prefix": true, + "argument": { + "type": "Identifier", + "start": 12350, + "end": 12359, + "loc": { + "start": { + "line": 331, + "column": 20 + }, + "end": { + "line": 331, + "column": 29 + }, + "identifierName": "className" + }, + "name": "className" + }, + "extra": { + "parenthesizedArgument": false + } + }, + "leadingComments": null + }, + "consequent": { + "type": "BlockStatement", + "start": 12360, + "end": 12449, + "loc": { + "start": { + "line": 331, + "column": 30 + }, + "end": { + "line": 335, + "column": 5 + } + }, + "body": [ + { + "type": "ExpressionStatement", + "start": 12369, + "end": 12399, + "loc": { + "start": { + "line": 332, + "column": 6 + }, + "end": { + "line": 332, + "column": 36 + } + }, + "expression": { + "type": "AssignmentExpression", + "start": 12369, + "end": 12398, + "loc": { + "start": { + "line": 332, + "column": 6 + }, + "end": { + "line": 332, + "column": 35 + } + }, + "operator": "=", + "left": { + "type": "MemberExpression", + "start": 12369, + "end": 12393, + "loc": { + "start": { + "line": 332, + "column": 6 + }, + "end": { + "line": 332, + "column": 30 + } + }, + "object": { + "type": "MemberExpression", + "start": 12369, + "end": 12381, + "loc": { + "start": { + "line": 332, + "column": 6 + }, + "end": { + "line": 332, + "column": 18 + } + }, + "object": { + "type": "ThisExpression", + "start": 12369, + "end": 12373, + "loc": { + "start": { + "line": 332, + "column": 6 + }, + "end": { + "line": 332, + "column": 10 + } + } + }, + "property": { + "type": "Identifier", + "start": 12374, + "end": 12381, + "loc": { + "start": { + "line": 332, + "column": 11 + }, + "end": { + "line": 332, + "column": 18 + }, + "identifierName": "options" + }, + "name": "options" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 12382, + "end": 12393, + "loc": { + "start": { + "line": 332, + "column": 19 + }, + "end": { + "line": 332, + "column": 30 + }, + "identifierName": "buttonTheme" + }, + "name": "buttonTheme" + }, + "computed": false + }, + "right": { + "type": "ArrayExpression", + "start": 12396, + "end": 12398, + "loc": { + "start": { + "line": 332, + "column": 33 + }, + "end": { + "line": 332, + "column": 35 + } + }, + "elements": [] + } + } + }, + { + "type": "ExpressionStatement", + "start": 12407, + "end": 12421, + "loc": { + "start": { + "line": 333, + "column": 6 + }, + "end": { + "line": 333, + "column": 20 + } + }, + "expression": { + "type": "CallExpression", + "start": 12407, + "end": 12420, + "loc": { + "start": { + "line": 333, + "column": 6 + }, + "end": { + "line": 333, + "column": 19 + } + }, + "callee": { + "type": "MemberExpression", + "start": 12407, + "end": 12418, + "loc": { + "start": { + "line": 333, + "column": 6 + }, + "end": { + "line": 333, + "column": 17 + } + }, + "object": { + "type": "ThisExpression", + "start": 12407, + "end": 12411, + "loc": { + "start": { + "line": 333, + "column": 6 + }, + "end": { + "line": 333, + "column": 10 + } + } + }, + "property": { + "type": "Identifier", + "start": 12412, + "end": 12418, + "loc": { + "start": { + "line": 333, + "column": 11 + }, + "end": { + "line": 333, + "column": 17 + }, + "identifierName": "render" + }, + "name": "render" + }, + "computed": false + }, + "arguments": [] + } + }, + { + "type": "ReturnStatement", + "start": 12429, + "end": 12442, + "loc": { + "start": { + "line": 334, + "column": 6 + }, + "end": { + "line": 334, + "column": 19 + } + }, + "argument": { + "type": "BooleanLiteral", + "start": 12436, + "end": 12441, + "loc": { + "start": { + "line": 334, + "column": 13 + }, + "end": { + "line": 334, + "column": 18 + } + }, + "value": false + } + } + ], + "directives": [], + "trailingComments": null + }, + "alternate": null, + "leadingComments": [ + { + "type": "CommentBlock", + "value": "*\r\n * When called with empty parameters, remove all button themes\r\n ", + "start": 12248, + "end": 12328, + "loc": { + "start": { + "line": 328, + "column": 4 + }, + "end": { + "line": 330, + "column": 7 + } + } + } + ], + "trailingComments": [ + { + "type": "CommentBlock", + "value": "*\r\n * If buttons are passed and buttonTheme has items\r\n ", + "start": 12457, + "end": 12525, + "loc": { + "start": { + "line": 337, + "column": 4 + }, + "end": { + "line": 339, + "column": 7 + } + } + } + ] + }, + { + "type": "IfStatement", + "start": 12531, + "end": 13616, + "loc": { + "start": { + "line": 340, + "column": 4 + }, + "end": { + "line": 372, + "column": 5 + } + }, + "test": { + "type": "LogicalExpression", + "start": 12534, + "end": 12619, + "loc": { + "start": { + "line": 340, + "column": 7 + }, + "end": { + "line": 340, + "column": 92 + } + }, + "left": { + "type": "LogicalExpression", + "start": 12534, + "end": 12584, + "loc": { + "start": { + "line": 340, + "column": 7 + }, + "end": { + "line": 340, + "column": 57 + } + }, + "left": { + "type": "Identifier", + "start": 12534, + "end": 12541, + "loc": { + "start": { + "line": 340, + "column": 7 + }, + "end": { + "line": 340, + "column": 14 + }, + "identifierName": "buttons" + }, + "name": "buttons", + "leadingComments": null + }, + "operator": "&&", + "right": { + "type": "CallExpression", + "start": 12545, + "end": 12584, + "loc": { + "start": { + "line": 340, + "column": 18 + }, + "end": { + "line": 340, + "column": 57 + } + }, + "callee": { + "type": "MemberExpression", + "start": 12545, + "end": 12558, + "loc": { + "start": { + "line": 340, + "column": 18 + }, + "end": { + "line": 340, + "column": 31 + } + }, + "object": { + "type": "Identifier", + "start": 12545, + "end": 12550, + "loc": { + "start": { + "line": 340, + "column": 18 + }, + "end": { + "line": 340, + "column": 23 + }, + "identifierName": "Array" + }, + "name": "Array" + }, + "property": { + "type": "Identifier", + "start": 12551, + "end": 12558, + "loc": { + "start": { + "line": 340, + "column": 24 + }, + "end": { + "line": 340, + "column": 31 + }, + "identifierName": "isArray" + }, + "name": "isArray" + }, + "computed": false + }, + "arguments": [ + { + "type": "MemberExpression", + "start": 12559, + "end": 12583, + "loc": { + "start": { + "line": 340, + "column": 32 + }, + "end": { + "line": 340, + "column": 56 + } + }, + "object": { + "type": "MemberExpression", + "start": 12559, + "end": 12571, + "loc": { + "start": { + "line": 340, + "column": 32 + }, + "end": { + "line": 340, + "column": 44 + } + }, + "object": { + "type": "ThisExpression", + "start": 12559, + "end": 12563, + "loc": { + "start": { + "line": 340, + "column": 32 + }, + "end": { + "line": 340, + "column": 36 + } + } + }, + "property": { + "type": "Identifier", + "start": 12564, + "end": 12571, + "loc": { + "start": { + "line": 340, + "column": 37 + }, + "end": { + "line": 340, + "column": 44 + }, + "identifierName": "options" + }, + "name": "options" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 12572, + "end": 12583, + "loc": { + "start": { + "line": 340, + "column": 45 + }, + "end": { + "line": 340, + "column": 56 + }, + "identifierName": "buttonTheme" + }, + "name": "buttonTheme" + }, + "computed": false + } + ] + }, + "leadingComments": null + }, + "operator": "&&", + "right": { + "type": "MemberExpression", + "start": 12588, + "end": 12619, + "loc": { + "start": { + "line": 340, + "column": 61 + }, + "end": { + "line": 340, + "column": 92 + } + }, + "object": { + "type": "MemberExpression", + "start": 12588, + "end": 12612, + "loc": { + "start": { + "line": 340, + "column": 61 + }, + "end": { + "line": 340, + "column": 85 + } + }, + "object": { + "type": "MemberExpression", + "start": 12588, + "end": 12600, + "loc": { + "start": { + "line": 340, + "column": 61 + }, + "end": { + "line": 340, + "column": 73 + } + }, + "object": { + "type": "ThisExpression", + "start": 12588, + "end": 12592, + "loc": { + "start": { + "line": 340, + "column": 61 + }, + "end": { + "line": 340, + "column": 65 + } + } + }, + "property": { + "type": "Identifier", + "start": 12593, + "end": 12600, + "loc": { + "start": { + "line": 340, + "column": 66 + }, + "end": { + "line": 340, + "column": 73 + }, + "identifierName": "options" + }, + "name": "options" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 12601, + "end": 12612, + "loc": { + "start": { + "line": 340, + "column": 74 + }, + "end": { + "line": 340, + "column": 85 + }, + "identifierName": "buttonTheme" + }, + "name": "buttonTheme" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 12613, + "end": 12619, + "loc": { + "start": { + "line": 340, + "column": 86 + }, + "end": { + "line": 340, + "column": 92 + }, + "identifierName": "length" + }, + "name": "length" + }, + "computed": false + }, + "leadingComments": null + }, + "consequent": { + "type": "BlockStatement", + "start": 12620, + "end": 13616, + "loc": { + "start": { + "line": 340, + "column": 93 + }, + "end": { + "line": 372, + "column": 5 + } + }, + "body": [ + { + "type": "VariableDeclaration", + "start": 12629, + "end": 12666, + "loc": { + "start": { + "line": 341, + "column": 6 + }, + "end": { + "line": 341, + "column": 43 + } + }, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 12633, + "end": 12665, + "loc": { + "start": { + "line": 341, + "column": 10 + }, + "end": { + "line": 341, + "column": 42 + } + }, + "id": { + "type": "Identifier", + "start": 12633, + "end": 12644, + "loc": { + "start": { + "line": 341, + "column": 10 + }, + "end": { + "line": 341, + "column": 21 + }, + "identifierName": "buttonArray" + }, + "name": "buttonArray" + }, + "init": { + "type": "CallExpression", + "start": 12647, + "end": 12665, + "loc": { + "start": { + "line": 341, + "column": 24 + }, + "end": { + "line": 341, + "column": 42 + } + }, + "callee": { + "type": "MemberExpression", + "start": 12647, + "end": 12660, + "loc": { + "start": { + "line": 341, + "column": 24 + }, + "end": { + "line": 341, + "column": 37 + } + }, + "object": { + "type": "Identifier", + "start": 12647, + "end": 12654, + "loc": { + "start": { + "line": 341, + "column": 24 + }, + "end": { + "line": 341, + "column": 31 + }, + "identifierName": "buttons" + }, + "name": "buttons" + }, + "property": { + "type": "Identifier", + "start": 12655, + "end": 12660, + "loc": { + "start": { + "line": 341, + "column": 32 + }, + "end": { + "line": 341, + "column": 37 + }, + "identifierName": "split" + }, + "name": "split" + }, + "computed": false + }, + "arguments": [ + { + "type": "StringLiteral", + "start": 12661, + "end": 12664, + "loc": { + "start": { + "line": 341, + "column": 38 + }, + "end": { + "line": 341, + "column": 41 + } + }, + "extra": { + "rawValue": " ", + "raw": "\" \"" + }, + "value": " " + } + ] + } + } + ], + "kind": "let" + }, + { + "type": "ExpressionStatement", + "start": 12674, + "end": 13585, + "loc": { + "start": { + "line": 342, + "column": 6 + }, + "end": { + "line": 369, + "column": 9 + } + }, + "expression": { + "type": "CallExpression", + "start": 12674, + "end": 13584, + "loc": { + "start": { + "line": 342, + "column": 6 + }, + "end": { + "line": 369, + "column": 8 + } + }, + "callee": { + "type": "MemberExpression", + "start": 12674, + "end": 12693, + "loc": { + "start": { + "line": 342, + "column": 6 + }, + "end": { + "line": 342, + "column": 25 + } + }, + "object": { + "type": "Identifier", + "start": 12674, + "end": 12685, + "loc": { + "start": { + "line": 342, + "column": 6 + }, + "end": { + "line": 342, + "column": 17 + }, + "identifierName": "buttonArray" + }, + "name": "buttonArray" + }, + "property": { + "type": "Identifier", + "start": 12686, + "end": 12693, + "loc": { + "start": { + "line": 342, + "column": 18 + }, + "end": { + "line": 342, + "column": 25 + }, + "identifierName": "forEach" + }, + "name": "forEach" + }, + "computed": false + }, + "arguments": [ + { + "type": "ArrowFunctionExpression", + "start": 12694, + "end": 13583, + "loc": { + "start": { + "line": 342, + "column": 26 + }, + "end": { + "line": 369, + "column": 7 + } + }, + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 12695, + "end": 12701, + "loc": { + "start": { + "line": 342, + "column": 27 + }, + "end": { + "line": 342, + "column": 33 + }, + "identifierName": "button" + }, + "name": "button" + }, + { + "type": "Identifier", + "start": 12703, + "end": 12706, + "loc": { + "start": { + "line": 342, + "column": 35 + }, + "end": { + "line": 342, + "column": 38 + }, + "identifierName": "key" + }, + "name": "key" + } + ], + "body": { + "type": "BlockStatement", + "start": 12711, + "end": 13583, + "loc": { + "start": { + "line": 342, + "column": 43 + }, + "end": { + "line": 369, + "column": 7 + } + }, + "body": [ + { + "type": "ExpressionStatement", + "start": 12722, + "end": 13574, + "loc": { + "start": { + "line": 343, + "column": 8 + }, + "end": { + "line": 368, + "column": 11 + } + }, + "expression": { + "type": "CallExpression", + "start": 12722, + "end": 13573, + "loc": { + "start": { + "line": 343, + "column": 8 + }, + "end": { + "line": 368, + "column": 10 + } + }, + "callee": { + "type": "MemberExpression", + "start": 12722, + "end": 12750, + "loc": { + "start": { + "line": 343, + "column": 8 + }, + "end": { + "line": 343, + "column": 36 + } + }, + "object": { + "type": "MemberExpression", + "start": 12722, + "end": 12746, + "loc": { + "start": { + "line": 343, + "column": 8 + }, + "end": { + "line": 343, + "column": 32 + } + }, + "object": { + "type": "MemberExpression", + "start": 12722, + "end": 12734, + "loc": { + "start": { + "line": 343, + "column": 8 + }, + "end": { + "line": 343, + "column": 20 + } + }, + "object": { + "type": "ThisExpression", + "start": 12722, + "end": 12726, + "loc": { + "start": { + "line": 343, + "column": 8 + }, + "end": { + "line": 343, + "column": 12 + } + } + }, + "property": { + "type": "Identifier", + "start": 12727, + "end": 12734, + "loc": { + "start": { + "line": 343, + "column": 13 + }, + "end": { + "line": 343, + "column": 20 + }, + "identifierName": "options" + }, + "name": "options" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 12735, + "end": 12746, + "loc": { + "start": { + "line": 343, + "column": 21 + }, + "end": { + "line": 343, + "column": 32 + }, + "identifierName": "buttonTheme" + }, + "name": "buttonTheme" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 12747, + "end": 12750, + "loc": { + "start": { + "line": 343, + "column": 33 + }, + "end": { + "line": 343, + "column": 36 + }, + "identifierName": "map" + }, + "name": "map" + }, + "computed": false + }, + "arguments": [ + { + "type": "ArrowFunctionExpression", + "start": 12751, + "end": 13572, + "loc": { + "start": { + "line": 343, + "column": 37 + }, + "end": { + "line": 368, + "column": 9 + } + }, + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 12752, + "end": 12763, + "loc": { + "start": { + "line": 343, + "column": 38 + }, + "end": { + "line": 343, + "column": 49 + }, + "identifierName": "buttonTheme" + }, + "name": "buttonTheme" + }, + { + "type": "Identifier", + "start": 12765, + "end": 12770, + "loc": { + "start": { + "line": 343, + "column": 51 + }, + "end": { + "line": 343, + "column": 56 + }, + "identifierName": "index" + }, + "name": "index" + } + ], + "body": { + "type": "BlockStatement", + "start": 12775, + "end": 13572, + "loc": { + "start": { + "line": 343, + "column": 61 + }, + "end": { + "line": 368, + "column": 9 + } + }, + "body": [ + { + "type": "IfStatement", + "start": 12943, + "end": 13528, + "loc": { + "start": { + "line": 349, + "column": 10 + }, + "end": { + "line": 365, + "column": 11 + } + }, + "test": { + "type": "LogicalExpression", + "start": 12960, + "end": 13039, + "loc": { + "start": { + "line": 350, + "column": 12 + }, + "end": { + "line": 351, + "column": 22 + } + }, + "left": { + "type": "LogicalExpression", + "start": 12961, + "end": 13011, + "loc": { + "start": { + "line": 350, + "column": 13 + }, + "end": { + "line": 350, + "column": 63 + } + }, + "left": { + "type": "Identifier", + "start": 12961, + "end": 12970, + "loc": { + "start": { + "line": 350, + "column": 13 + }, + "end": { + "line": 350, + "column": 22 + }, + "identifierName": "className" + }, + "name": "className", + "leadingComments": null + }, + "operator": "&&", + "right": { + "type": "CallExpression", + "start": 12974, + "end": 13011, + "loc": { + "start": { + "line": 350, + "column": 26 + }, + "end": { + "line": 350, + "column": 63 + } + }, + "callee": { + "type": "MemberExpression", + "start": 12974, + "end": 12992, + "loc": { + "start": { + "line": 350, + "column": 26 + }, + "end": { + "line": 350, + "column": 44 + } + }, + "object": { + "type": "Identifier", + "start": 12974, + "end": 12983, + "loc": { + "start": { + "line": 350, + "column": 26 + }, + "end": { + "line": 350, + "column": 35 + }, + "identifierName": "className" + }, + "name": "className" + }, + "property": { + "type": "Identifier", + "start": 12984, + "end": 12992, + "loc": { + "start": { + "line": 350, + "column": 36 + }, + "end": { + "line": 350, + "column": 44 + }, + "identifierName": "includes" + }, + "name": "includes" + }, + "computed": false + }, + "arguments": [ + { + "type": "MemberExpression", + "start": 12993, + "end": 13010, + "loc": { + "start": { + "line": 350, + "column": 45 + }, + "end": { + "line": 350, + "column": 62 + } + }, + "object": { + "type": "Identifier", + "start": 12993, + "end": 13004, + "loc": { + "start": { + "line": 350, + "column": 45 + }, + "end": { + "line": 350, + "column": 56 + }, + "identifierName": "buttonTheme" + }, + "name": "buttonTheme" + }, + "property": { + "type": "Identifier", + "start": 13005, + "end": 13010, + "loc": { + "start": { + "line": 350, + "column": 57 + }, + "end": { + "line": 350, + "column": 62 + }, + "identifierName": "class" + }, + "name": "class" + }, + "computed": false + } + ] + }, + "leadingComments": null, + "extra": { + "parenthesized": true, + "parenStart": 12960 + } + }, + "operator": "||", + "right": { + "type": "UnaryExpression", + "start": 13029, + "end": 13039, + "loc": { + "start": { + "line": 351, + "column": 12 + }, + "end": { + "line": 351, + "column": 22 + } + }, + "operator": "!", + "prefix": true, + "argument": { + "type": "Identifier", + "start": 13030, + "end": 13039, + "loc": { + "start": { + "line": 351, + "column": 13 + }, + "end": { + "line": 351, + "column": 22 + }, + "identifierName": "className" + }, + "name": "className" + }, + "extra": { + "parenthesizedArgument": false + } + }, + "leadingComments": null + }, + "consequent": { + "type": "BlockStatement", + "start": 13052, + "end": 13528, + "loc": { + "start": { + "line": 352, + "column": 11 + }, + "end": { + "line": 365, + "column": 11 + } + }, + "body": [ + { + "type": "VariableDeclaration", + "start": 13067, + "end": 13156, + "loc": { + "start": { + "line": 353, + "column": 12 + }, + "end": { + "line": 353, + "column": 101 + } + }, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 13071, + "end": 13155, + "loc": { + "start": { + "line": 353, + "column": 16 + }, + "end": { + "line": 353, + "column": 100 + } + }, + "id": { + "type": "Identifier", + "start": 13071, + "end": 13090, + "loc": { + "start": { + "line": 353, + "column": 16 + }, + "end": { + "line": 353, + "column": 35 + }, + "identifierName": "filteredButtonArray" + }, + "name": "filteredButtonArray" + }, + "init": { + "type": "CallExpression", + "start": 13093, + "end": 13155, + "loc": { + "start": { + "line": 353, + "column": 38 + }, + "end": { + "line": 353, + "column": 100 + } + }, + "callee": { + "type": "MemberExpression", + "start": 13093, + "end": 13130, + "loc": { + "start": { + "line": 353, + "column": 38 + }, + "end": { + "line": 353, + "column": 75 + } + }, + "object": { + "type": "CallExpression", + "start": 13093, + "end": 13123, + "loc": { + "start": { + "line": 353, + "column": 38 + }, + "end": { + "line": 353, + "column": 68 + } + }, + "callee": { + "type": "MemberExpression", + "start": 13093, + "end": 13118, + "loc": { + "start": { + "line": 353, + "column": 38 + }, + "end": { + "line": 353, + "column": 63 + } + }, + "object": { + "type": "MemberExpression", + "start": 13093, + "end": 13112, + "loc": { + "start": { + "line": 353, + "column": 38 + }, + "end": { + "line": 353, + "column": 57 + } + }, + "object": { + "type": "Identifier", + "start": 13093, + "end": 13104, + "loc": { + "start": { + "line": 353, + "column": 38 + }, + "end": { + "line": 353, + "column": 49 + }, + "identifierName": "buttonTheme" + }, + "name": "buttonTheme" + }, + "property": { + "type": "Identifier", + "start": 13105, + "end": 13112, + "loc": { + "start": { + "line": 353, + "column": 50 + }, + "end": { + "line": 353, + "column": 57 + }, + "identifierName": "buttons" + }, + "name": "buttons" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 13113, + "end": 13118, + "loc": { + "start": { + "line": 353, + "column": 58 + }, + "end": { + "line": 353, + "column": 63 + }, + "identifierName": "split" + }, + "name": "split" + }, + "computed": false + }, + "arguments": [ + { + "type": "StringLiteral", + "start": 13119, + "end": 13122, + "loc": { + "start": { + "line": 353, + "column": 64 + }, + "end": { + "line": 353, + "column": 67 + } + }, + "extra": { + "rawValue": " ", + "raw": "\" \"" + }, + "value": " " + } + ] + }, + "property": { + "type": "Identifier", + "start": 13124, + "end": 13130, + "loc": { + "start": { + "line": 353, + "column": 69 + }, + "end": { + "line": 353, + "column": 75 + }, + "identifierName": "filter" + }, + "name": "filter" + }, + "computed": false + }, + "arguments": [ + { + "type": "ArrowFunctionExpression", + "start": 13131, + "end": 13154, + "loc": { + "start": { + "line": 353, + "column": 76 + }, + "end": { + "line": 353, + "column": 99 + } + }, + "id": null, + "generator": false, + "expression": true, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 13131, + "end": 13135, + "loc": { + "start": { + "line": 353, + "column": 76 + }, + "end": { + "line": 353, + "column": 80 + }, + "identifierName": "item" + }, + "name": "item" + } + ], + "body": { + "type": "BinaryExpression", + "start": 13139, + "end": 13154, + "loc": { + "start": { + "line": 353, + "column": 84 + }, + "end": { + "line": 353, + "column": 99 + } + }, + "left": { + "type": "Identifier", + "start": 13139, + "end": 13143, + "loc": { + "start": { + "line": 353, + "column": 84 + }, + "end": { + "line": 353, + "column": 88 + }, + "identifierName": "item" + }, + "name": "item" + }, + "operator": "!==", + "right": { + "type": "Identifier", + "start": 13148, + "end": 13154, + "loc": { + "start": { + "line": 353, + "column": 93 + }, + "end": { + "line": 353, + "column": 99 + }, + "identifierName": "button" + }, + "name": "button" + } + } + } + ] + } + } + ], + "kind": "let", + "trailingComments": [ + { + "type": "CommentBlock", + "value": "*\r\n * If buttons left, return them, otherwise, remove button Theme\r\n ", + "start": 13172, + "end": 13269, + "loc": { + "start": { + "line": 355, + "column": 12 + }, + "end": { + "line": 357, + "column": 15 + } + } + } + ] + }, + { + "type": "IfStatement", + "start": 13283, + "end": 13512, + "loc": { + "start": { + "line": 358, + "column": 12 + }, + "end": { + "line": 363, + "column": 13 + } + }, + "test": { + "type": "MemberExpression", + "start": 13286, + "end": 13312, + "loc": { + "start": { + "line": 358, + "column": 15 + }, + "end": { + "line": 358, + "column": 41 + } + }, + "object": { + "type": "Identifier", + "start": 13286, + "end": 13305, + "loc": { + "start": { + "line": 358, + "column": 15 + }, + "end": { + "line": 358, + "column": 34 + }, + "identifierName": "filteredButtonArray" + }, + "name": "filteredButtonArray", + "leadingComments": null + }, + "property": { + "type": "Identifier", + "start": 13306, + "end": 13312, + "loc": { + "start": { + "line": 358, + "column": 35 + }, + "end": { + "line": 358, + "column": 41 + }, + "identifierName": "length" + }, + "name": "length" + }, + "computed": false, + "leadingComments": null + }, + "consequent": { + "type": "BlockStatement", + "start": 13313, + "end": 13397, + "loc": { + "start": { + "line": 358, + "column": 42 + }, + "end": { + "line": 360, + "column": 13 + } + }, + "body": [ + { + "type": "ExpressionStatement", + "start": 13330, + "end": 13382, + "loc": { + "start": { + "line": 359, + "column": 14 + }, + "end": { + "line": 359, + "column": 66 + } + }, + "expression": { + "type": "AssignmentExpression", + "start": 13330, + "end": 13381, + "loc": { + "start": { + "line": 359, + "column": 14 + }, + "end": { + "line": 359, + "column": 65 + } + }, + "operator": "=", + "left": { + "type": "MemberExpression", + "start": 13330, + "end": 13349, + "loc": { + "start": { + "line": 359, + "column": 14 + }, + "end": { + "line": 359, + "column": 33 + } + }, + "object": { + "type": "Identifier", + "start": 13330, + "end": 13341, + "loc": { + "start": { + "line": 359, + "column": 14 + }, + "end": { + "line": 359, + "column": 25 + }, + "identifierName": "buttonTheme" + }, + "name": "buttonTheme" + }, + "property": { + "type": "Identifier", + "start": 13342, + "end": 13349, + "loc": { + "start": { + "line": 359, + "column": 26 + }, + "end": { + "line": 359, + "column": 33 + }, + "identifierName": "buttons" + }, + "name": "buttons" + }, + "computed": false + }, + "right": { + "type": "CallExpression", + "start": 13352, + "end": 13381, + "loc": { + "start": { + "line": 359, + "column": 36 + }, + "end": { + "line": 359, + "column": 65 + } + }, + "callee": { + "type": "MemberExpression", + "start": 13352, + "end": 13376, + "loc": { + "start": { + "line": 359, + "column": 36 + }, + "end": { + "line": 359, + "column": 60 + } + }, + "object": { + "type": "Identifier", + "start": 13352, + "end": 13371, + "loc": { + "start": { + "line": 359, + "column": 36 + }, + "end": { + "line": 359, + "column": 55 + }, + "identifierName": "filteredButtonArray" + }, + "name": "filteredButtonArray" + }, + "property": { + "type": "Identifier", + "start": 13372, + "end": 13376, + "loc": { + "start": { + "line": 359, + "column": 56 + }, + "end": { + "line": 359, + "column": 60 + }, + "identifierName": "join" + }, + "name": "join" + }, + "computed": false + }, + "arguments": [ + { + "type": "StringLiteral", + "start": 13377, + "end": 13380, + "loc": { + "start": { + "line": 359, + "column": 61 + }, + "end": { + "line": 359, + "column": 64 + } + }, + "extra": { + "rawValue": " ", + "raw": "\" \"" + }, + "value": " " + } + ] + } + } + } + ], + "directives": [] + }, + "alternate": { + "type": "BlockStatement", + "start": 13403, + "end": 13512, + "loc": { + "start": { + "line": 360, + "column": 19 + }, + "end": { + "line": 363, + "column": 13 + } + }, + "body": [ + { + "type": "ExpressionStatement", + "start": 13420, + "end": 13462, + "loc": { + "start": { + "line": 361, + "column": 14 + }, + "end": { + "line": 361, + "column": 56 + } + }, + "expression": { + "type": "CallExpression", + "start": 13420, + "end": 13461, + "loc": { + "start": { + "line": 361, + "column": 14 + }, + "end": { + "line": 361, + "column": 55 + } + }, + "callee": { + "type": "MemberExpression", + "start": 13420, + "end": 13451, + "loc": { + "start": { + "line": 361, + "column": 14 + }, + "end": { + "line": 361, + "column": 45 + } + }, + "object": { + "type": "MemberExpression", + "start": 13420, + "end": 13444, + "loc": { + "start": { + "line": 361, + "column": 14 + }, + "end": { + "line": 361, + "column": 38 + } + }, + "object": { + "type": "MemberExpression", + "start": 13420, + "end": 13432, + "loc": { + "start": { + "line": 361, + "column": 14 + }, + "end": { + "line": 361, + "column": 26 + } + }, + "object": { + "type": "ThisExpression", + "start": 13420, + "end": 13424, + "loc": { + "start": { + "line": 361, + "column": 14 + }, + "end": { + "line": 361, + "column": 18 + } + } + }, + "property": { + "type": "Identifier", + "start": 13425, + "end": 13432, + "loc": { + "start": { + "line": 361, + "column": 19 + }, + "end": { + "line": 361, + "column": 26 + }, + "identifierName": "options" + }, + "name": "options" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 13433, + "end": 13444, + "loc": { + "start": { + "line": 361, + "column": 27 + }, + "end": { + "line": 361, + "column": 38 + }, + "identifierName": "buttonTheme" + }, + "name": "buttonTheme" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 13445, + "end": 13451, + "loc": { + "start": { + "line": 361, + "column": 39 + }, + "end": { + "line": 361, + "column": 45 + }, + "identifierName": "splice" + }, + "name": "splice" + }, + "computed": false + }, + "arguments": [ + { + "type": "Identifier", + "start": 13452, + "end": 13457, + "loc": { + "start": { + "line": 361, + "column": 46 + }, + "end": { + "line": 361, + "column": 51 + }, + "identifierName": "index" + }, + "name": "index" + }, + { + "type": "NumericLiteral", + "start": 13459, + "end": 13460, + "loc": { + "start": { + "line": 361, + "column": 53 + }, + "end": { + "line": 361, + "column": 54 + } + }, + "extra": { + "rawValue": 1, + "raw": "1" + }, + "value": 1 + } + ] + } + }, + { + "type": "ExpressionStatement", + "start": 13478, + "end": 13497, + "loc": { + "start": { + "line": 362, + "column": 14 + }, + "end": { + "line": 362, + "column": 33 + } + }, + "expression": { + "type": "AssignmentExpression", + "start": 13478, + "end": 13496, + "loc": { + "start": { + "line": 362, + "column": 14 + }, + "end": { + "line": 362, + "column": 32 + } + }, + "operator": "=", + "left": { + "type": "Identifier", + "start": 13478, + "end": 13489, + "loc": { + "start": { + "line": 362, + "column": 14 + }, + "end": { + "line": 362, + "column": 25 + }, + "identifierName": "buttonTheme" + }, + "name": "buttonTheme" + }, + "right": { + "type": "NullLiteral", + "start": 13492, + "end": 13496, + "loc": { + "start": { + "line": 362, + "column": 28 + }, + "end": { + "line": 362, + "column": 32 + } + } + } + } + } + ], + "directives": [] + }, + "leadingComments": [ + { + "type": "CommentBlock", + "value": "*\r\n * If buttons left, return them, otherwise, remove button Theme\r\n ", + "start": 13172, + "end": 13269, + "loc": { + "start": { + "line": 355, + "column": 12 + }, + "end": { + "line": 357, + "column": 15 + } + } + } + ] + } + ], + "directives": [] + }, + "alternate": null, + "leadingComments": [ + { + "type": "CommentBlock", + "value": "*\r\n * If className is set, we affect the buttons only for that class\r\n * Otherwise, we afect all classes\r\n ", + "start": 12790, + "end": 12931, + "loc": { + "start": { + "line": 345, + "column": 10 + }, + "end": { + "line": 348, + "column": 13 + } + } + } + ] + }, + { + "type": "ReturnStatement", + "start": 13542, + "end": 13561, + "loc": { + "start": { + "line": 367, + "column": 10 + }, + "end": { + "line": 367, + "column": 29 + } + }, + "argument": { + "type": "Identifier", + "start": 13549, + "end": 13560, + "loc": { + "start": { + "line": 367, + "column": 17 + }, + "end": { + "line": 367, + "column": 28 + }, + "identifierName": "buttonTheme" + }, + "name": "buttonTheme" + } + } + ], + "directives": [] + } + } + ] + } + } + ], + "directives": [] + } + } + ] + } + }, + { + "type": "ExpressionStatement", + "start": 13595, + "end": 13609, + "loc": { + "start": { + "line": 371, + "column": 6 + }, + "end": { + "line": 371, + "column": 20 + } + }, + "expression": { + "type": "CallExpression", + "start": 13595, + "end": 13608, + "loc": { + "start": { + "line": 371, + "column": 6 + }, + "end": { + "line": 371, + "column": 19 + } + }, + "callee": { + "type": "MemberExpression", + "start": 13595, + "end": 13606, + "loc": { + "start": { + "line": 371, + "column": 6 + }, + "end": { + "line": 371, + "column": 17 + } + }, + "object": { + "type": "ThisExpression", + "start": 13595, + "end": 13599, + "loc": { + "start": { + "line": 371, + "column": 6 + }, + "end": { + "line": 371, + "column": 10 + } + } + }, + "property": { + "type": "Identifier", + "start": 13600, + "end": 13606, + "loc": { + "start": { + "line": 371, + "column": 11 + }, + "end": { + "line": 371, + "column": 17 + }, + "identifierName": "render" + }, + "name": "render" + }, + "computed": false + }, + "arguments": [] + } + } + ], + "directives": [] + }, + "alternate": null, + "leadingComments": [ + { + "type": "CommentBlock", + "value": "*\r\n * If buttons are passed and buttonTheme has items\r\n ", + "start": 12457, + "end": 12525, + "loc": { + "start": { + "line": 337, + "column": 4 + }, + "end": { + "line": 339, + "column": 7 + } + } + } + ] + } + ], + "directives": [], + "trailingComments": null + }, + "trailingComments": null + }, + "leadingComments": [ + { + "type": "CommentBlock", + "value": "*\r\n * Removes/Amends an entry to the `buttonTheme`. Basically a way to remove a class previously added to a button through buttonTheme or addButtonTheme.\r\n * @param {string} buttons List of buttons to select (separated by a space).\r\n * @param {string} className Classes to give to the selected buttons (separated by space).\r\n ", + "start": 11853, + "end": 12193, + "loc": { + "start": { + "line": 322, + "column": 2 + }, + "end": { + "line": 326, + "column": 5 + } + } + } + ], + "trailingComments": [ + { + "type": "CommentBlock", + "value": "*\r\n * Get the DOM Element of a button. If there are several buttons with the same name, an array of the DOM Elements is returned.\r\n * @param {string} button The button layout name to select\r\n ", + "start": 13627, + "end": 13830, + "loc": { + "start": { + "line": 375, + "column": 2 + }, + "end": { + "line": 378, + "column": 5 + } + } + } + ] + }, + { + "type": "ClassProperty", + "start": 13834, + "end": 14108, + "loc": { + "start": { + "line": 379, + "column": 2 + }, + "end": { + "line": 392, + "column": 3 + } + }, + "static": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 13834, + "end": 13850, + "loc": { + "start": { + "line": 379, + "column": 2 + }, + "end": { + "line": 379, + "column": 18 + }, + "identifierName": "getButtonElement" + }, + "name": "getButtonElement", + "leadingComments": null + }, + "value": { + "type": "ArrowFunctionExpression", + "start": 13853, + "end": 14108, + "loc": { + "start": { + "line": 379, + "column": 21 + }, + "end": { + "line": 392, + "column": 3 + } + }, + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 13854, + "end": 13860, + "loc": { + "start": { + "line": 379, + "column": 22 + }, + "end": { + "line": 379, + "column": 28 + }, + "identifierName": "button" + }, + "name": "button" + } + ], + "body": { + "type": "BlockStatement", + "start": 13865, + "end": 14108, + "loc": { + "start": { + "line": 379, + "column": 33 + }, + "end": { + "line": 392, + "column": 3 + } + }, + "body": [ + { + "type": "VariableDeclaration", + "start": 13872, + "end": 13883, + "loc": { + "start": { + "line": 380, + "column": 4 + }, + "end": { + "line": 380, + "column": 15 + } + }, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 13876, + "end": 13882, + "loc": { + "start": { + "line": 380, + "column": 8 + }, + "end": { + "line": 380, + "column": 14 + } + }, + "id": { + "type": "Identifier", + "start": 13876, + "end": 13882, + "loc": { + "start": { + "line": 380, + "column": 8 + }, + "end": { + "line": 380, + "column": 14 + }, + "identifierName": "output" + }, + "name": "output" + }, + "init": null + } + ], + "kind": "let" + }, + { + "type": "VariableDeclaration", + "start": 13891, + "end": 13935, + "loc": { + "start": { + "line": 382, + "column": 4 + }, + "end": { + "line": 382, + "column": 48 + } + }, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 13895, + "end": 13934, + "loc": { + "start": { + "line": 382, + "column": 8 + }, + "end": { + "line": 382, + "column": 47 + } + }, + "id": { + "type": "Identifier", + "start": 13895, + "end": 13904, + "loc": { + "start": { + "line": 382, + "column": 8 + }, + "end": { + "line": 382, + "column": 17 + }, + "identifierName": "buttonArr" + }, + "name": "buttonArr" + }, + "init": { + "type": "MemberExpression", + "start": 13907, + "end": 13934, + "loc": { + "start": { + "line": 382, + "column": 20 + }, + "end": { + "line": 382, + "column": 47 + } + }, + "object": { + "type": "MemberExpression", + "start": 13907, + "end": 13926, + "loc": { + "start": { + "line": 382, + "column": 20 + }, + "end": { + "line": 382, + "column": 39 + } + }, + "object": { + "type": "ThisExpression", + "start": 13907, + "end": 13911, + "loc": { + "start": { + "line": 382, + "column": 20 + }, + "end": { + "line": 382, + "column": 24 + } + } + }, + "property": { + "type": "Identifier", + "start": 13912, + "end": 13926, + "loc": { + "start": { + "line": 382, + "column": 25 + }, + "end": { + "line": 382, + "column": 39 + }, + "identifierName": "buttonElements" + }, + "name": "buttonElements" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 13927, + "end": 13933, + "loc": { + "start": { + "line": 382, + "column": 40 + }, + "end": { + "line": 382, + "column": 46 + }, + "identifierName": "button" + }, + "name": "button" + }, + "computed": true + } + } + ], + "kind": "let" + }, + { + "type": "IfStatement", + "start": 13941, + "end": 14081, + "loc": { + "start": { + "line": 383, + "column": 4 + }, + "end": { + "line": 389, + "column": 5 + } + }, + "test": { + "type": "Identifier", + "start": 13944, + "end": 13953, + "loc": { + "start": { + "line": 383, + "column": 7 + }, + "end": { + "line": 383, + "column": 16 + }, + "identifierName": "buttonArr" + }, + "name": "buttonArr" + }, + "consequent": { + "type": "BlockStatement", + "start": 13954, + "end": 14081, + "loc": { + "start": { + "line": 383, + "column": 17 + }, + "end": { + "line": 389, + "column": 5 + } + }, + "body": [ + { + "type": "IfStatement", + "start": 13963, + "end": 14074, + "loc": { + "start": { + "line": 384, + "column": 6 + }, + "end": { + "line": 388, + "column": 7 + } + }, + "test": { + "type": "BinaryExpression", + "start": 13966, + "end": 13986, + "loc": { + "start": { + "line": 384, + "column": 9 + }, + "end": { + "line": 384, + "column": 29 + } + }, + "left": { + "type": "MemberExpression", + "start": 13966, + "end": 13982, + "loc": { + "start": { + "line": 384, + "column": 9 + }, + "end": { + "line": 384, + "column": 25 + } + }, + "object": { + "type": "Identifier", + "start": 13966, + "end": 13975, + "loc": { + "start": { + "line": 384, + "column": 9 + }, + "end": { + "line": 384, + "column": 18 + }, + "identifierName": "buttonArr" + }, + "name": "buttonArr" + }, + "property": { + "type": "Identifier", + "start": 13976, + "end": 13982, + "loc": { + "start": { + "line": 384, + "column": 19 + }, + "end": { + "line": 384, + "column": 25 + }, + "identifierName": "length" + }, + "name": "length" + }, + "computed": false + }, + "operator": ">", + "right": { + "type": "NumericLiteral", + "start": 13985, + "end": 13986, + "loc": { + "start": { + "line": 384, + "column": 28 + }, + "end": { + "line": 384, + "column": 29 + } + }, + "extra": { + "rawValue": 1, + "raw": "1" + }, + "value": 1 + } + }, + "consequent": { + "type": "BlockStatement", + "start": 13987, + "end": 14026, + "loc": { + "start": { + "line": 384, + "column": 30 + }, + "end": { + "line": 386, + "column": 7 + } + }, + "body": [ + { + "type": "ExpressionStatement", + "start": 13998, + "end": 14017, + "loc": { + "start": { + "line": 385, + "column": 8 + }, + "end": { + "line": 385, + "column": 27 + } + }, + "expression": { + "type": "AssignmentExpression", + "start": 13998, + "end": 14016, + "loc": { + "start": { + "line": 385, + "column": 8 + }, + "end": { + "line": 385, + "column": 26 + } + }, + "operator": "=", + "left": { + "type": "Identifier", + "start": 13998, + "end": 14004, + "loc": { + "start": { + "line": 385, + "column": 8 + }, + "end": { + "line": 385, + "column": 14 + }, + "identifierName": "output" + }, + "name": "output" + }, + "right": { + "type": "Identifier", + "start": 14007, + "end": 14016, + "loc": { + "start": { + "line": 385, + "column": 17 + }, + "end": { + "line": 385, + "column": 26 + }, + "identifierName": "buttonArr" + }, + "name": "buttonArr" + } + } + } + ], + "directives": [] + }, + "alternate": { + "type": "BlockStatement", + "start": 14032, + "end": 14074, + "loc": { + "start": { + "line": 386, + "column": 13 + }, + "end": { + "line": 388, + "column": 7 + } + }, + "body": [ + { + "type": "ExpressionStatement", + "start": 14043, + "end": 14065, + "loc": { + "start": { + "line": 387, + "column": 8 + }, + "end": { + "line": 387, + "column": 30 + } + }, + "expression": { + "type": "AssignmentExpression", + "start": 14043, + "end": 14064, + "loc": { + "start": { + "line": 387, + "column": 8 + }, + "end": { + "line": 387, + "column": 29 + } + }, + "operator": "=", + "left": { + "type": "Identifier", + "start": 14043, + "end": 14049, + "loc": { + "start": { + "line": 387, + "column": 8 + }, + "end": { + "line": 387, + "column": 14 + }, + "identifierName": "output" + }, + "name": "output" + }, + "right": { + "type": "MemberExpression", + "start": 14052, + "end": 14064, + "loc": { + "start": { + "line": 387, + "column": 17 + }, + "end": { + "line": 387, + "column": 29 + } + }, + "object": { + "type": "Identifier", + "start": 14052, + "end": 14061, + "loc": { + "start": { + "line": 387, + "column": 17 + }, + "end": { + "line": 387, + "column": 26 + }, + "identifierName": "buttonArr" + }, + "name": "buttonArr" + }, + "property": { + "type": "NumericLiteral", + "start": 14062, + "end": 14063, + "loc": { + "start": { + "line": 387, + "column": 27 + }, + "end": { + "line": 387, + "column": 28 + } + }, + "extra": { + "rawValue": 0, + "raw": "0" + }, + "value": 0 + }, + "computed": true + } + } + } + ], + "directives": [] + } + } + ], + "directives": [] + }, + "alternate": null + }, + { + "type": "ReturnStatement", + "start": 14089, + "end": 14103, + "loc": { + "start": { + "line": 391, + "column": 4 + }, + "end": { + "line": 391, + "column": 18 + } + }, + "argument": { + "type": "Identifier", + "start": 14096, + "end": 14102, + "loc": { + "start": { + "line": 391, + "column": 11 + }, + "end": { + "line": 391, + "column": 17 + }, + "identifierName": "output" + }, + "name": "output" + } + } + ], + "directives": [], + "trailingComments": null + }, + "trailingComments": null + }, + "leadingComments": [ + { + "type": "CommentBlock", + "value": "*\r\n * Get the DOM Element of a button. If there are several buttons with the same name, an array of the DOM Elements is returned.\r\n * @param {string} button The button layout name to select\r\n ", + "start": 13627, + "end": 13830, + "loc": { + "start": { + "line": 375, + "column": 2 + }, + "end": { + "line": 378, + "column": 5 + } + } + } + ], + "trailingComments": [ + { + "type": "CommentBlock", + "value": "*\r\n * Retrieves the current cursor position within a input or textarea (if any)\r\n ", + "start": 14114, + "end": 14204, + "loc": { + "start": { + "line": 394, + "column": 2 + }, + "end": { + "line": 396, + "column": 5 + } + } + } + ] + }, + { + "type": "ClassProperty", + "start": 14208, + "end": 14518, + "loc": { + "start": { + "line": 397, + "column": 2 + }, + "end": { + "line": 405, + "column": 3 + } + }, + "static": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 14208, + "end": 14219, + "loc": { + "start": { + "line": 397, + "column": 2 + }, + "end": { + "line": 397, + "column": 13 + }, + "identifierName": "handleCaret" + }, + "name": "handleCaret", + "leadingComments": null + }, + "value": { + "type": "ArrowFunctionExpression", + "start": 14222, + "end": 14518, + "loc": { + "start": { + "line": 397, + "column": 16 + }, + "end": { + "line": 405, + "column": 3 + } + }, + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [], + "body": { + "type": "BlockStatement", + "start": 14228, + "end": 14518, + "loc": { + "start": { + "line": 397, + "column": 22 + }, + "end": { + "line": 405, + "column": 3 + } + }, + "body": [ + { + "type": "IfStatement", + "start": 14235, + "end": 14311, + "loc": { + "start": { + "line": 398, + "column": 4 + }, + "end": { + "line": 400, + "column": 5 + } + }, + "test": { + "type": "MemberExpression", + "start": 14238, + "end": 14256, + "loc": { + "start": { + "line": 398, + "column": 7 + }, + "end": { + "line": 398, + "column": 25 + } + }, + "object": { + "type": "MemberExpression", + "start": 14238, + "end": 14250, + "loc": { + "start": { + "line": 398, + "column": 7 + }, + "end": { + "line": 398, + "column": 19 + } + }, + "object": { + "type": "ThisExpression", + "start": 14238, + "end": 14242, + "loc": { + "start": { + "line": 398, + "column": 7 + }, + "end": { + "line": 398, + "column": 11 + } + } + }, + "property": { + "type": "Identifier", + "start": 14243, + "end": 14250, + "loc": { + "start": { + "line": 398, + "column": 12 + }, + "end": { + "line": 398, + "column": 19 + }, + "identifierName": "options" + }, + "name": "options" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 14251, + "end": 14256, + "loc": { + "start": { + "line": 398, + "column": 20 + }, + "end": { + "line": 398, + "column": 25 + }, + "identifierName": "debug" + }, + "name": "debug" + }, + "computed": false + }, + "consequent": { + "type": "BlockStatement", + "start": 14257, + "end": 14311, + "loc": { + "start": { + "line": 398, + "column": 26 + }, + "end": { + "line": 400, + "column": 5 + } + }, + "body": [ + { + "type": "ExpressionStatement", + "start": 14266, + "end": 14304, + "loc": { + "start": { + "line": 399, + "column": 6 + }, + "end": { + "line": 399, + "column": 44 + } + }, + "expression": { + "type": "CallExpression", + "start": 14266, + "end": 14303, + "loc": { + "start": { + "line": 399, + "column": 6 + }, + "end": { + "line": 399, + "column": 43 + } + }, + "callee": { + "type": "MemberExpression", + "start": 14266, + "end": 14277, + "loc": { + "start": { + "line": 399, + "column": 6 + }, + "end": { + "line": 399, + "column": 17 + } + }, + "object": { + "type": "Identifier", + "start": 14266, + "end": 14273, + "loc": { + "start": { + "line": 399, + "column": 6 + }, + "end": { + "line": 399, + "column": 13 + }, + "identifierName": "console" + }, + "name": "console" + }, + "property": { + "type": "Identifier", + "start": 14274, + "end": 14277, + "loc": { + "start": { + "line": 399, + "column": 14 + }, + "end": { + "line": 399, + "column": 17 + }, + "identifierName": "log" + }, + "name": "log" + }, + "computed": false + }, + "arguments": [ + { + "type": "StringLiteral", + "start": 14278, + "end": 14302, + "loc": { + "start": { + "line": 399, + "column": 18 + }, + "end": { + "line": 399, + "column": 42 + } + }, + "extra": { + "rawValue": "Caret handling started", + "raw": "\"Caret handling started\"" + }, + "value": "Caret handling started" + } + ] + } + } + ], + "directives": [] + }, + "alternate": null + }, + { + "type": "ExpressionStatement", + "start": 14319, + "end": 14378, + "loc": { + "start": { + "line": 402, + "column": 4 + }, + "end": { + "line": 402, + "column": 63 + } + }, + "expression": { + "type": "CallExpression", + "start": 14319, + "end": 14377, + "loc": { + "start": { + "line": 402, + "column": 4 + }, + "end": { + "line": 402, + "column": 62 + } + }, + "callee": { + "type": "MemberExpression", + "start": 14319, + "end": 14344, + "loc": { + "start": { + "line": 402, + "column": 4 + }, + "end": { + "line": 402, + "column": 29 + } + }, + "object": { + "type": "Identifier", + "start": 14319, + "end": 14327, + "loc": { + "start": { + "line": 402, + "column": 4 + }, + "end": { + "line": 402, + "column": 12 + }, + "identifierName": "document" + }, + "name": "document" + }, + "property": { + "type": "Identifier", + "start": 14328, + "end": 14344, + "loc": { + "start": { + "line": 402, + "column": 13 + }, + "end": { + "line": 402, + "column": 29 + }, + "identifierName": "addEventListener" + }, + "name": "addEventListener" + }, + "computed": false + }, + "arguments": [ + { + "type": "StringLiteral", + "start": 14345, + "end": 14352, + "loc": { + "start": { + "line": 402, + "column": 30 + }, + "end": { + "line": 402, + "column": 37 + } + }, + "extra": { + "rawValue": "keyup", + "raw": "\"keyup\"" + }, + "value": "keyup" + }, + { + "type": "MemberExpression", + "start": 14354, + "end": 14376, + "loc": { + "start": { + "line": 402, + "column": 39 + }, + "end": { + "line": 402, + "column": 61 + } + }, + "object": { + "type": "ThisExpression", + "start": 14354, + "end": 14358, + "loc": { + "start": { + "line": 402, + "column": 39 + }, + "end": { + "line": 402, + "column": 43 + } + } + }, + "property": { + "type": "Identifier", + "start": 14359, + "end": 14376, + "loc": { + "start": { + "line": 402, + "column": 44 + }, + "end": { + "line": 402, + "column": 61 + }, + "identifierName": "caretEventHandler" + }, + "name": "caretEventHandler" + }, + "computed": false + } + ] + } + }, + { + "type": "ExpressionStatement", + "start": 14384, + "end": 14445, + "loc": { + "start": { + "line": 403, + "column": 4 + }, + "end": { + "line": 403, + "column": 65 + } + }, + "expression": { + "type": "CallExpression", + "start": 14384, + "end": 14444, + "loc": { + "start": { + "line": 403, + "column": 4 + }, + "end": { + "line": 403, + "column": 64 + } + }, + "callee": { + "type": "MemberExpression", + "start": 14384, + "end": 14409, + "loc": { + "start": { + "line": 403, + "column": 4 + }, + "end": { + "line": 403, + "column": 29 + } + }, + "object": { + "type": "Identifier", + "start": 14384, + "end": 14392, + "loc": { + "start": { + "line": 403, + "column": 4 + }, + "end": { + "line": 403, + "column": 12 + }, + "identifierName": "document" + }, + "name": "document" + }, + "property": { + "type": "Identifier", + "start": 14393, + "end": 14409, + "loc": { + "start": { + "line": 403, + "column": 13 + }, + "end": { + "line": 403, + "column": 29 + }, + "identifierName": "addEventListener" + }, + "name": "addEventListener" + }, + "computed": false + }, + "arguments": [ + { + "type": "StringLiteral", + "start": 14410, + "end": 14419, + "loc": { + "start": { + "line": 403, + "column": 30 + }, + "end": { + "line": 403, + "column": 39 + } + }, + "extra": { + "rawValue": "mouseup", + "raw": "\"mouseup\"" + }, + "value": "mouseup" + }, + { + "type": "MemberExpression", + "start": 14421, + "end": 14443, + "loc": { + "start": { + "line": 403, + "column": 41 + }, + "end": { + "line": 403, + "column": 63 + } + }, + "object": { + "type": "ThisExpression", + "start": 14421, + "end": 14425, + "loc": { + "start": { + "line": 403, + "column": 41 + }, + "end": { + "line": 403, + "column": 45 + } + } + }, + "property": { + "type": "Identifier", + "start": 14426, + "end": 14443, + "loc": { + "start": { + "line": 403, + "column": 46 + }, + "end": { + "line": 403, + "column": 63 + }, + "identifierName": "caretEventHandler" + }, + "name": "caretEventHandler" + }, + "computed": false + } + ] + } + }, + { + "type": "ExpressionStatement", + "start": 14451, + "end": 14513, + "loc": { + "start": { + "line": 404, + "column": 4 + }, + "end": { + "line": 404, + "column": 66 + } + }, + "expression": { + "type": "CallExpression", + "start": 14451, + "end": 14512, + "loc": { + "start": { + "line": 404, + "column": 4 + }, + "end": { + "line": 404, + "column": 65 + } + }, + "callee": { + "type": "MemberExpression", + "start": 14451, + "end": 14476, + "loc": { + "start": { + "line": 404, + "column": 4 + }, + "end": { + "line": 404, + "column": 29 + } + }, + "object": { + "type": "Identifier", + "start": 14451, + "end": 14459, + "loc": { + "start": { + "line": 404, + "column": 4 + }, + "end": { + "line": 404, + "column": 12 + }, + "identifierName": "document" + }, + "name": "document" + }, + "property": { + "type": "Identifier", + "start": 14460, + "end": 14476, + "loc": { + "start": { + "line": 404, + "column": 13 + }, + "end": { + "line": 404, + "column": 29 + }, + "identifierName": "addEventListener" + }, + "name": "addEventListener" + }, + "computed": false + }, + "arguments": [ + { + "type": "StringLiteral", + "start": 14477, + "end": 14487, + "loc": { + "start": { + "line": 404, + "column": 30 + }, + "end": { + "line": 404, + "column": 40 + } + }, + "extra": { + "rawValue": "touchend", + "raw": "\"touchend\"" + }, + "value": "touchend" + }, + { + "type": "MemberExpression", + "start": 14489, + "end": 14511, + "loc": { + "start": { + "line": 404, + "column": 42 + }, + "end": { + "line": 404, + "column": 64 + } + }, + "object": { + "type": "ThisExpression", + "start": 14489, + "end": 14493, + "loc": { + "start": { + "line": 404, + "column": 42 + }, + "end": { + "line": 404, + "column": 46 + } + } + }, + "property": { + "type": "Identifier", + "start": 14494, + "end": 14511, + "loc": { + "start": { + "line": 404, + "column": 47 + }, + "end": { + "line": 404, + "column": 64 + }, + "identifierName": "caretEventHandler" + }, + "name": "caretEventHandler" + }, + "computed": false + } + ] + } + } + ], + "directives": [], + "trailingComments": null + }, + "trailingComments": null + }, + "leadingComments": [ + { + "type": "CommentBlock", + "value": "*\r\n * Retrieves the current cursor position within a input or textarea (if any)\r\n ", + "start": 14114, + "end": 14204, + "loc": { + "start": { + "line": 394, + "column": 2 + }, + "end": { + "line": 396, + "column": 5 + } + } + } + ], + "trailingComments": [ + { + "type": "CommentBlock", + "value": "*\r\n * Called by {@link handleCaret} when an event that warrants a cursor position update is triggered\r\n ", + "start": 14524, + "end": 14636, + "loc": { + "start": { + "line": 407, + "column": 2 + }, + "end": { + "line": 409, + "column": 5 + } + } + } + ] + }, + { + "type": "ClassProperty", + "start": 14640, + "end": 15197, + "loc": { + "start": { + "line": 410, + "column": 2 + }, + "end": { + "line": 427, + "column": 3 + } + }, + "static": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 14640, + "end": 14657, + "loc": { + "start": { + "line": 410, + "column": 2 + }, + "end": { + "line": 410, + "column": 19 + }, + "identifierName": "caretEventHandler" + }, + "name": "caretEventHandler", + "leadingComments": null + }, + "value": { + "type": "ArrowFunctionExpression", + "start": 14660, + "end": 15197, + "loc": { + "start": { + "line": 410, + "column": 22 + }, + "end": { + "line": 427, + "column": 3 + } + }, + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 14661, + "end": 14666, + "loc": { + "start": { + "line": 410, + "column": 23 + }, + "end": { + "line": 410, + "column": 28 + }, + "identifierName": "event" + }, + "name": "event" + } + ], + "body": { + "type": "BlockStatement", + "start": 14671, + "end": 15197, + "loc": { + "start": { + "line": 410, + "column": 33 + }, + "end": { + "line": 427, + "column": 3 + } + }, + "body": [ + { + "type": "VariableDeclaration", + "start": 14678, + "end": 14733, + "loc": { + "start": { + "line": 411, + "column": 4 + }, + "end": { + "line": 411, + "column": 59 + } + }, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 14682, + "end": 14732, + "loc": { + "start": { + "line": 411, + "column": 8 + }, + "end": { + "line": 411, + "column": 58 + } + }, + "id": { + "type": "Identifier", + "start": 14682, + "end": 14695, + "loc": { + "start": { + "line": 411, + "column": 8 + }, + "end": { + "line": 411, + "column": 21 + }, + "identifierName": "targetTagName" + }, + "name": "targetTagName" + }, + "init": { + "type": "CallExpression", + "start": 14698, + "end": 14732, + "loc": { + "start": { + "line": 411, + "column": 24 + }, + "end": { + "line": 411, + "column": 58 + } + }, + "callee": { + "type": "MemberExpression", + "start": 14698, + "end": 14730, + "loc": { + "start": { + "line": 411, + "column": 24 + }, + "end": { + "line": 411, + "column": 56 + } + }, + "object": { + "type": "MemberExpression", + "start": 14698, + "end": 14718, + "loc": { + "start": { + "line": 411, + "column": 24 + }, + "end": { + "line": 411, + "column": 44 + } + }, + "object": { + "type": "MemberExpression", + "start": 14698, + "end": 14710, + "loc": { + "start": { + "line": 411, + "column": 24 + }, + "end": { + "line": 411, + "column": 36 + } + }, + "object": { + "type": "Identifier", + "start": 14698, + "end": 14703, + "loc": { + "start": { + "line": 411, + "column": 24 + }, + "end": { + "line": 411, + "column": 29 + }, + "identifierName": "event" + }, + "name": "event" + }, + "property": { + "type": "Identifier", + "start": 14704, + "end": 14710, + "loc": { + "start": { + "line": 411, + "column": 30 + }, + "end": { + "line": 411, + "column": 36 + }, + "identifierName": "target" + }, + "name": "target" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 14711, + "end": 14718, + "loc": { + "start": { + "line": 411, + "column": 37 + }, + "end": { + "line": 411, + "column": 44 + }, + "identifierName": "tagName" + }, + "name": "tagName" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 14719, + "end": 14730, + "loc": { + "start": { + "line": 411, + "column": 45 + }, + "end": { + "line": 411, + "column": 56 + }, + "identifierName": "toLowerCase" + }, + "name": "toLowerCase" + }, + "computed": false + }, + "arguments": [] + } + } + ], + "kind": "let" + }, + { + "type": "IfStatement", + "start": 14741, + "end": 15192, + "loc": { + "start": { + "line": 413, + "column": 4 + }, + "end": { + "line": 426, + "column": 5 + } + }, + "test": { + "type": "LogicalExpression", + "start": 14752, + "end": 14816, + "loc": { + "start": { + "line": 414, + "column": 6 + }, + "end": { + "line": 415, + "column": 31 + } + }, + "left": { + "type": "BinaryExpression", + "start": 14752, + "end": 14780, + "loc": { + "start": { + "line": 414, + "column": 6 + }, + "end": { + "line": 414, + "column": 34 + } + }, + "left": { + "type": "Identifier", + "start": 14752, + "end": 14765, + "loc": { + "start": { + "line": 414, + "column": 6 + }, + "end": { + "line": 414, + "column": 19 + }, + "identifierName": "targetTagName" + }, + "name": "targetTagName" + }, + "operator": "===", + "right": { + "type": "StringLiteral", + "start": 14770, + "end": 14780, + "loc": { + "start": { + "line": 414, + "column": 24 + }, + "end": { + "line": 414, + "column": 34 + } + }, + "extra": { + "rawValue": "textarea", + "raw": "\"textarea\"" + }, + "value": "textarea" + } + }, + "operator": "||", + "right": { + "type": "BinaryExpression", + "start": 14791, + "end": 14816, + "loc": { + "start": { + "line": 415, + "column": 6 + }, + "end": { + "line": 415, + "column": 31 + } + }, + "left": { + "type": "Identifier", + "start": 14791, + "end": 14804, + "loc": { + "start": { + "line": 415, + "column": 6 + }, + "end": { + "line": 415, + "column": 19 + }, + "identifierName": "targetTagName" + }, + "name": "targetTagName" + }, + "operator": "===", + "right": { + "type": "StringLiteral", + "start": 14809, + "end": 14816, + "loc": { + "start": { + "line": 415, + "column": 24 + }, + "end": { + "line": 415, + "column": 31 + } + }, + "extra": { + "rawValue": "input", + "raw": "\"input\"" + }, + "value": "input" + } + } + }, + "consequent": { + "type": "BlockStatement", + "start": 14823, + "end": 15192, + "loc": { + "start": { + "line": 416, + "column": 5 + }, + "end": { + "line": 426, + "column": 5 + } + }, + "body": [ + { + "type": "ExpressionStatement", + "start": 14988, + "end": 15037, + "loc": { + "start": { + "line": 421, + "column": 6 + }, + "end": { + "line": 421, + "column": 55 + } + }, + "expression": { + "type": "AssignmentExpression", + "start": 14988, + "end": 15036, + "loc": { + "start": { + "line": 421, + "column": 6 + }, + "end": { + "line": 421, + "column": 54 + } + }, + "operator": "=", + "left": { + "type": "MemberExpression", + "start": 14988, + "end": 15006, + "loc": { + "start": { + "line": 421, + "column": 6 + }, + "end": { + "line": 421, + "column": 24 + } + }, + "object": { + "type": "ThisExpression", + "start": 14988, + "end": 14992, + "loc": { + "start": { + "line": 421, + "column": 6 + }, + "end": { + "line": 421, + "column": 10 + } + }, + "leadingComments": null + }, + "property": { + "type": "Identifier", + "start": 14993, + "end": 15006, + "loc": { + "start": { + "line": 421, + "column": 11 + }, + "end": { + "line": 421, + "column": 24 + }, + "identifierName": "caretPosition" + }, + "name": "caretPosition" + }, + "computed": false, + "leadingComments": null + }, + "right": { + "type": "MemberExpression", + "start": 15009, + "end": 15036, + "loc": { + "start": { + "line": 421, + "column": 27 + }, + "end": { + "line": 421, + "column": 54 + } + }, + "object": { + "type": "MemberExpression", + "start": 15009, + "end": 15021, + "loc": { + "start": { + "line": 421, + "column": 27 + }, + "end": { + "line": 421, + "column": 39 + } + }, + "object": { + "type": "Identifier", + "start": 15009, + "end": 15014, + "loc": { + "start": { + "line": 421, + "column": 27 + }, + "end": { + "line": 421, + "column": 32 + }, + "identifierName": "event" + }, + "name": "event" + }, + "property": { + "type": "Identifier", + "start": 15015, + "end": 15021, + "loc": { + "start": { + "line": 421, + "column": 33 + }, + "end": { + "line": 421, + "column": 39 + }, + "identifierName": "target" + }, + "name": "target" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 15022, + "end": 15036, + "loc": { + "start": { + "line": 421, + "column": 40 + }, + "end": { + "line": 421, + "column": 54 + }, + "identifierName": "selectionStart" + }, + "name": "selectionStart" + }, + "computed": false + }, + "leadingComments": null + }, + "leadingComments": [ + { + "type": "CommentBlock", + "value": "*\r\n * Tracks current cursor position\r\n * As keys are pressed, text will be added/removed at that position within the input.\r\n ", + "start": 14832, + "end": 14980, + "loc": { + "start": { + "line": 417, + "column": 6 + }, + "end": { + "line": 420, + "column": 9 + } + } + } + ] + }, + { + "type": "IfStatement", + "start": 15047, + "end": 15180, + "loc": { + "start": { + "line": 423, + "column": 6 + }, + "end": { + "line": 425, + "column": 7 + } + }, + "test": { + "type": "MemberExpression", + "start": 15050, + "end": 15068, + "loc": { + "start": { + "line": 423, + "column": 9 + }, + "end": { + "line": 423, + "column": 27 + } + }, + "object": { + "type": "MemberExpression", + "start": 15050, + "end": 15062, + "loc": { + "start": { + "line": 423, + "column": 9 + }, + "end": { + "line": 423, + "column": 21 + } + }, + "object": { + "type": "ThisExpression", + "start": 15050, + "end": 15054, + "loc": { + "start": { + "line": 423, + "column": 9 + }, + "end": { + "line": 423, + "column": 13 + } + } + }, + "property": { + "type": "Identifier", + "start": 15055, + "end": 15062, + "loc": { + "start": { + "line": 423, + "column": 14 + }, + "end": { + "line": 423, + "column": 21 + }, + "identifierName": "options" + }, + "name": "options" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 15063, + "end": 15068, + "loc": { + "start": { + "line": 423, + "column": 22 + }, + "end": { + "line": 423, + "column": 27 + }, + "identifierName": "debug" + }, + "name": "debug" + }, + "computed": false + }, + "consequent": { + "type": "BlockStatement", + "start": 15069, + "end": 15180, + "loc": { + "start": { + "line": 423, + "column": 28 + }, + "end": { + "line": 425, + "column": 7 + } + }, + "body": [ + { + "type": "ExpressionStatement", + "start": 15080, + "end": 15171, + "loc": { + "start": { + "line": 424, + "column": 8 + }, + "end": { + "line": 424, + "column": 99 + } + }, + "expression": { + "type": "CallExpression", + "start": 15080, + "end": 15170, + "loc": { + "start": { + "line": 424, + "column": 8 + }, + "end": { + "line": 424, + "column": 98 + } + }, + "callee": { + "type": "MemberExpression", + "start": 15080, + "end": 15091, + "loc": { + "start": { + "line": 424, + "column": 8 + }, + "end": { + "line": 424, + "column": 19 + } + }, + "object": { + "type": "Identifier", + "start": 15080, + "end": 15087, + "loc": { + "start": { + "line": 424, + "column": 8 + }, + "end": { + "line": 424, + "column": 15 + }, + "identifierName": "console" + }, + "name": "console" + }, + "property": { + "type": "Identifier", + "start": 15088, + "end": 15091, + "loc": { + "start": { + "line": 424, + "column": 16 + }, + "end": { + "line": 424, + "column": 19 + }, + "identifierName": "log" + }, + "name": "log" + }, + "computed": false + }, + "arguments": [ + { + "type": "StringLiteral", + "start": 15092, + "end": 15104, + "loc": { + "start": { + "line": 424, + "column": 20 + }, + "end": { + "line": 424, + "column": 32 + } + }, + "extra": { + "rawValue": "Caret at: ", + "raw": "'Caret at: '" + }, + "value": "Caret at: " + }, + { + "type": "MemberExpression", + "start": 15106, + "end": 15133, + "loc": { + "start": { + "line": 424, + "column": 34 + }, + "end": { + "line": 424, + "column": 61 + } + }, + "object": { + "type": "MemberExpression", + "start": 15106, + "end": 15118, + "loc": { + "start": { + "line": 424, + "column": 34 + }, + "end": { + "line": 424, + "column": 46 + } + }, + "object": { + "type": "Identifier", + "start": 15106, + "end": 15111, + "loc": { + "start": { + "line": 424, + "column": 34 + }, + "end": { + "line": 424, + "column": 39 + }, + "identifierName": "event" + }, + "name": "event" + }, + "property": { + "type": "Identifier", + "start": 15112, + "end": 15118, + "loc": { + "start": { + "line": 424, + "column": 40 + }, + "end": { + "line": 424, + "column": 46 + }, + "identifierName": "target" + }, + "name": "target" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 15119, + "end": 15133, + "loc": { + "start": { + "line": 424, + "column": 47 + }, + "end": { + "line": 424, + "column": 61 + }, + "identifierName": "selectionStart" + }, + "name": "selectionStart" + }, + "computed": false + }, + { + "type": "CallExpression", + "start": 15135, + "end": 15169, + "loc": { + "start": { + "line": 424, + "column": 63 + }, + "end": { + "line": 424, + "column": 97 + } + }, + "callee": { + "type": "MemberExpression", + "start": 15135, + "end": 15167, + "loc": { + "start": { + "line": 424, + "column": 63 + }, + "end": { + "line": 424, + "column": 95 + } + }, + "object": { + "type": "MemberExpression", + "start": 15135, + "end": 15155, + "loc": { + "start": { + "line": 424, + "column": 63 + }, + "end": { + "line": 424, + "column": 83 + } + }, + "object": { + "type": "MemberExpression", + "start": 15135, + "end": 15147, + "loc": { + "start": { + "line": 424, + "column": 63 + }, + "end": { + "line": 424, + "column": 75 + } + }, + "object": { + "type": "Identifier", + "start": 15135, + "end": 15140, + "loc": { + "start": { + "line": 424, + "column": 63 + }, + "end": { + "line": 424, + "column": 68 + }, + "identifierName": "event" + }, + "name": "event" + }, + "property": { + "type": "Identifier", + "start": 15141, + "end": 15147, + "loc": { + "start": { + "line": 424, + "column": 69 + }, + "end": { + "line": 424, + "column": 75 + }, + "identifierName": "target" + }, + "name": "target" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 15148, + "end": 15155, + "loc": { + "start": { + "line": 424, + "column": 76 + }, + "end": { + "line": 424, + "column": 83 + }, + "identifierName": "tagName" + }, + "name": "tagName" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 15156, + "end": 15167, + "loc": { + "start": { + "line": 424, + "column": 84 + }, + "end": { + "line": 424, + "column": 95 + }, + "identifierName": "toLowerCase" + }, + "name": "toLowerCase" + }, + "computed": false + }, + "arguments": [] + } + ] + } + } + ], + "directives": [] + }, + "alternate": null + } + ], + "directives": [] + }, + "alternate": null + } + ], + "directives": [], + "trailingComments": null + }, + "trailingComments": null + }, + "leadingComments": [ + { + "type": "CommentBlock", + "value": "*\r\n * Called by {@link handleCaret} when an event that warrants a cursor position update is triggered\r\n ", + "start": 14524, + "end": 14636, + "loc": { + "start": { + "line": 407, + "column": 2 + }, + "end": { + "line": 409, + "column": 5 + } + } + } + ], + "trailingComments": [ + { + "type": "CommentBlock", + "value": "*\r\n * Executes the callback function once simple-keyboard is rendered for the first time (on initialization).\r\n ", + "start": 15203, + "end": 15323, + "loc": { + "start": { + "line": 429, + "column": 2 + }, + "end": { + "line": 431, + "column": 5 + } + } + } + ] + }, + { + "type": "ClassProperty", + "start": 15327, + "end": 15570, + "loc": { + "start": { + "line": 432, + "column": 2 + }, + "end": { + "line": 444, + "column": 3 + } + }, + "static": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 15327, + "end": 15333, + "loc": { + "start": { + "line": 432, + "column": 2 + }, + "end": { + "line": 432, + "column": 8 + }, + "identifierName": "onInit" + }, + "name": "onInit", + "leadingComments": null + }, + "value": { + "type": "ArrowFunctionExpression", + "start": 15336, + "end": 15570, + "loc": { + "start": { + "line": 432, + "column": 11 + }, + "end": { + "line": 444, + "column": 3 + } + }, + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [], + "body": { + "type": "BlockStatement", + "start": 15342, + "end": 15570, + "loc": { + "start": { + "line": 432, + "column": 17 + }, + "end": { + "line": 444, + "column": 3 + } + }, + "body": [ + { + "type": "IfStatement", + "start": 15349, + "end": 15414, + "loc": { + "start": { + "line": 433, + "column": 4 + }, + "end": { + "line": 435, + "column": 5 + } + }, + "test": { + "type": "MemberExpression", + "start": 15352, + "end": 15370, + "loc": { + "start": { + "line": 433, + "column": 7 + }, + "end": { + "line": 433, + "column": 25 + } + }, + "object": { + "type": "MemberExpression", + "start": 15352, + "end": 15364, + "loc": { + "start": { + "line": 433, + "column": 7 + }, + "end": { + "line": 433, + "column": 19 + } + }, + "object": { + "type": "ThisExpression", + "start": 15352, + "end": 15356, + "loc": { + "start": { + "line": 433, + "column": 7 + }, + "end": { + "line": 433, + "column": 11 + } + } + }, + "property": { + "type": "Identifier", + "start": 15357, + "end": 15364, + "loc": { + "start": { + "line": 433, + "column": 12 + }, + "end": { + "line": 433, + "column": 19 + }, + "identifierName": "options" + }, + "name": "options" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 15365, + "end": 15370, + "loc": { + "start": { + "line": 433, + "column": 20 + }, + "end": { + "line": 433, + "column": 25 + }, + "identifierName": "debug" + }, + "name": "debug" + }, + "computed": false + }, + "consequent": { + "type": "BlockStatement", + "start": 15371, + "end": 15414, + "loc": { + "start": { + "line": 433, + "column": 26 + }, + "end": { + "line": 435, + "column": 5 + } + }, + "body": [ + { + "type": "ExpressionStatement", + "start": 15380, + "end": 15407, + "loc": { + "start": { + "line": 434, + "column": 6 + }, + "end": { + "line": 434, + "column": 33 + } + }, + "expression": { + "type": "CallExpression", + "start": 15380, + "end": 15406, + "loc": { + "start": { + "line": 434, + "column": 6 + }, + "end": { + "line": 434, + "column": 32 + } + }, + "callee": { + "type": "MemberExpression", + "start": 15380, + "end": 15391, + "loc": { + "start": { + "line": 434, + "column": 6 + }, + "end": { + "line": 434, + "column": 17 + } + }, + "object": { + "type": "Identifier", + "start": 15380, + "end": 15387, + "loc": { + "start": { + "line": 434, + "column": 6 + }, + "end": { + "line": 434, + "column": 13 + }, + "identifierName": "console" + }, + "name": "console" + }, + "property": { + "type": "Identifier", + "start": 15388, + "end": 15391, + "loc": { + "start": { + "line": 434, + "column": 14 + }, + "end": { + "line": 434, + "column": 17 + }, + "identifierName": "log" + }, + "name": "log" + }, + "computed": false + }, + "arguments": [ + { + "type": "StringLiteral", + "start": 15392, + "end": 15405, + "loc": { + "start": { + "line": 434, + "column": 18 + }, + "end": { + "line": 434, + "column": 31 + } + }, + "extra": { + "rawValue": "Initialized", + "raw": "\"Initialized\"" + }, + "value": "Initialized" + } + ] + } + } + ], + "directives": [], + "trailingComments": null + }, + "alternate": null, + "trailingComments": [ + { + "type": "CommentBlock", + "value": "*\r\n * Caret handling\r\n ", + "start": 15422, + "end": 15457, + "loc": { + "start": { + "line": 437, + "column": 4 + }, + "end": { + "line": 439, + "column": 7 + } + } + } + ] + }, + { + "type": "ExpressionStatement", + "start": 15463, + "end": 15482, + "loc": { + "start": { + "line": 440, + "column": 4 + }, + "end": { + "line": 440, + "column": 23 + } + }, + "expression": { + "type": "CallExpression", + "start": 15463, + "end": 15481, + "loc": { + "start": { + "line": 440, + "column": 4 + }, + "end": { + "line": 440, + "column": 22 + } + }, + "callee": { + "type": "MemberExpression", + "start": 15463, + "end": 15479, + "loc": { + "start": { + "line": 440, + "column": 4 + }, + "end": { + "line": 440, + "column": 20 + } + }, + "object": { + "type": "ThisExpression", + "start": 15463, + "end": 15467, + "loc": { + "start": { + "line": 440, + "column": 4 + }, + "end": { + "line": 440, + "column": 8 + } + }, + "leadingComments": null + }, + "property": { + "type": "Identifier", + "start": 15468, + "end": 15479, + "loc": { + "start": { + "line": 440, + "column": 9 + }, + "end": { + "line": 440, + "column": 20 + }, + "identifierName": "handleCaret" + }, + "name": "handleCaret" + }, + "computed": false, + "leadingComments": null + }, + "arguments": [], + "leadingComments": null + }, + "leadingComments": [ + { + "type": "CommentBlock", + "value": "*\r\n * Caret handling\r\n ", + "start": 15422, + "end": 15457, + "loc": { + "start": { + "line": 437, + "column": 4 + }, + "end": { + "line": 439, + "column": 7 + } + } + } + ] + }, + { + "type": "IfStatement", + "start": 15490, + "end": 15565, + "loc": { + "start": { + "line": 442, + "column": 4 + }, + "end": { + "line": 443, + "column": 28 + } + }, + "test": { + "type": "BinaryExpression", + "start": 15493, + "end": 15534, + "loc": { + "start": { + "line": 442, + "column": 7 + }, + "end": { + "line": 442, + "column": 48 + } + }, + "left": { + "type": "UnaryExpression", + "start": 15493, + "end": 15519, + "loc": { + "start": { + "line": 442, + "column": 7 + }, + "end": { + "line": 442, + "column": 33 + } + }, + "operator": "typeof", + "prefix": true, + "argument": { + "type": "MemberExpression", + "start": 15500, + "end": 15519, + "loc": { + "start": { + "line": 442, + "column": 14 + }, + "end": { + "line": 442, + "column": 33 + } + }, + "object": { + "type": "MemberExpression", + "start": 15500, + "end": 15512, + "loc": { + "start": { + "line": 442, + "column": 14 + }, + "end": { + "line": 442, + "column": 26 + } + }, + "object": { + "type": "ThisExpression", + "start": 15500, + "end": 15504, + "loc": { + "start": { + "line": 442, + "column": 14 + }, + "end": { + "line": 442, + "column": 18 + } + } + }, + "property": { + "type": "Identifier", + "start": 15505, + "end": 15512, + "loc": { + "start": { + "line": 442, + "column": 19 + }, + "end": { + "line": 442, + "column": 26 + }, + "identifierName": "options" + }, + "name": "options" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 15513, + "end": 15519, + "loc": { + "start": { + "line": 442, + "column": 27 + }, + "end": { + "line": 442, + "column": 33 + }, + "identifierName": "onInit" + }, + "name": "onInit" + }, + "computed": false + }, + "extra": { + "parenthesizedArgument": false + } + }, + "operator": "===", + "right": { + "type": "StringLiteral", + "start": 15524, + "end": 15534, + "loc": { + "start": { + "line": 442, + "column": 38 + }, + "end": { + "line": 442, + "column": 48 + } + }, + "extra": { + "rawValue": "function", + "raw": "\"function\"" + }, + "value": "function" + } + }, + "consequent": { + "type": "ExpressionStatement", + "start": 15543, + "end": 15565, + "loc": { + "start": { + "line": 443, + "column": 6 + }, + "end": { + "line": 443, + "column": 28 + } + }, + "expression": { + "type": "CallExpression", + "start": 15543, + "end": 15564, + "loc": { + "start": { + "line": 443, + "column": 6 + }, + "end": { + "line": 443, + "column": 27 + } + }, + "callee": { + "type": "MemberExpression", + "start": 15543, + "end": 15562, + "loc": { + "start": { + "line": 443, + "column": 6 + }, + "end": { + "line": 443, + "column": 25 + } + }, + "object": { + "type": "MemberExpression", + "start": 15543, + "end": 15555, + "loc": { + "start": { + "line": 443, + "column": 6 + }, + "end": { + "line": 443, + "column": 18 + } + }, + "object": { + "type": "ThisExpression", + "start": 15543, + "end": 15547, + "loc": { + "start": { + "line": 443, + "column": 6 + }, + "end": { + "line": 443, + "column": 10 + } + } + }, + "property": { + "type": "Identifier", + "start": 15548, + "end": 15555, + "loc": { + "start": { + "line": 443, + "column": 11 + }, + "end": { + "line": 443, + "column": 18 + }, + "identifierName": "options" + }, + "name": "options" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 15556, + "end": 15562, + "loc": { + "start": { + "line": 443, + "column": 19 + }, + "end": { + "line": 443, + "column": 25 + }, + "identifierName": "onInit" + }, + "name": "onInit" + }, + "computed": false + }, + "arguments": [] + } + }, + "alternate": null + } + ], + "directives": [], + "trailingComments": null + }, + "trailingComments": null + }, + "leadingComments": [ + { + "type": "CommentBlock", + "value": "*\r\n * Executes the callback function once simple-keyboard is rendered for the first time (on initialization).\r\n ", + "start": 15203, + "end": 15323, + "loc": { + "start": { + "line": 429, + "column": 2 + }, + "end": { + "line": 431, + "column": 5 + } + } + } + ], + "trailingComments": [ + { + "type": "CommentBlock", + "value": "*\r\n * Executes the callback function every time simple-keyboard is rendered (e.g: when you change layouts).\r\n ", + "start": 15576, + "end": 15694, + "loc": { + "start": { + "line": 446, + "column": 2 + }, + "end": { + "line": 448, + "column": 5 + } + } + } + ] + }, + { + "type": "ClassProperty", + "start": 15698, + "end": 15806, + "loc": { + "start": { + "line": 449, + "column": 2 + }, + "end": { + "line": 452, + "column": 3 + } + }, + "static": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 15698, + "end": 15706, + "loc": { + "start": { + "line": 449, + "column": 2 + }, + "end": { + "line": 449, + "column": 10 + }, + "identifierName": "onRender" + }, + "name": "onRender", + "leadingComments": null + }, + "value": { + "type": "ArrowFunctionExpression", + "start": 15709, + "end": 15806, + "loc": { + "start": { + "line": 449, + "column": 13 + }, + "end": { + "line": 452, + "column": 3 + } + }, + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [], + "body": { + "type": "BlockStatement", + "start": 15715, + "end": 15806, + "loc": { + "start": { + "line": 449, + "column": 19 + }, + "end": { + "line": 452, + "column": 3 + } + }, + "body": [ + { + "type": "IfStatement", + "start": 15722, + "end": 15801, + "loc": { + "start": { + "line": 450, + "column": 4 + }, + "end": { + "line": 451, + "column": 30 + } + }, + "test": { + "type": "BinaryExpression", + "start": 15725, + "end": 15768, + "loc": { + "start": { + "line": 450, + "column": 7 + }, + "end": { + "line": 450, + "column": 50 + } + }, + "left": { + "type": "UnaryExpression", + "start": 15725, + "end": 15753, + "loc": { + "start": { + "line": 450, + "column": 7 + }, + "end": { + "line": 450, + "column": 35 + } + }, + "operator": "typeof", + "prefix": true, + "argument": { + "type": "MemberExpression", + "start": 15732, + "end": 15753, + "loc": { + "start": { + "line": 450, + "column": 14 + }, + "end": { + "line": 450, + "column": 35 + } + }, + "object": { + "type": "MemberExpression", + "start": 15732, + "end": 15744, + "loc": { + "start": { + "line": 450, + "column": 14 + }, + "end": { + "line": 450, + "column": 26 + } + }, + "object": { + "type": "ThisExpression", + "start": 15732, + "end": 15736, + "loc": { + "start": { + "line": 450, + "column": 14 + }, + "end": { + "line": 450, + "column": 18 + } + } + }, + "property": { + "type": "Identifier", + "start": 15737, + "end": 15744, + "loc": { + "start": { + "line": 450, + "column": 19 + }, + "end": { + "line": 450, + "column": 26 + }, + "identifierName": "options" + }, + "name": "options" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 15745, + "end": 15753, + "loc": { + "start": { + "line": 450, + "column": 27 + }, + "end": { + "line": 450, + "column": 35 + }, + "identifierName": "onRender" + }, + "name": "onRender" + }, + "computed": false + }, + "extra": { + "parenthesizedArgument": false + } + }, + "operator": "===", + "right": { + "type": "StringLiteral", + "start": 15758, + "end": 15768, + "loc": { + "start": { + "line": 450, + "column": 40 + }, + "end": { + "line": 450, + "column": 50 + } + }, + "extra": { + "rawValue": "function", + "raw": "\"function\"" + }, + "value": "function" + } + }, + "consequent": { + "type": "ExpressionStatement", + "start": 15777, + "end": 15801, + "loc": { + "start": { + "line": 451, + "column": 6 + }, + "end": { + "line": 451, + "column": 30 + } + }, + "expression": { + "type": "CallExpression", + "start": 15777, + "end": 15800, + "loc": { + "start": { + "line": 451, + "column": 6 + }, + "end": { + "line": 451, + "column": 29 + } + }, + "callee": { + "type": "MemberExpression", + "start": 15777, + "end": 15798, + "loc": { + "start": { + "line": 451, + "column": 6 + }, + "end": { + "line": 451, + "column": 27 + } + }, + "object": { + "type": "MemberExpression", + "start": 15777, + "end": 15789, + "loc": { + "start": { + "line": 451, + "column": 6 + }, + "end": { + "line": 451, + "column": 18 + } + }, + "object": { + "type": "ThisExpression", + "start": 15777, + "end": 15781, + "loc": { + "start": { + "line": 451, + "column": 6 + }, + "end": { + "line": 451, + "column": 10 + } + } + }, + "property": { + "type": "Identifier", + "start": 15782, + "end": 15789, + "loc": { + "start": { + "line": 451, + "column": 11 + }, + "end": { + "line": 451, + "column": 18 + }, + "identifierName": "options" + }, + "name": "options" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 15790, + "end": 15798, + "loc": { + "start": { + "line": 451, + "column": 19 + }, + "end": { + "line": 451, + "column": 27 + }, + "identifierName": "onRender" + }, + "name": "onRender" + }, + "computed": false + }, + "arguments": [] + } + }, + "alternate": null + } + ], + "directives": [], + "trailingComments": null + }, + "trailingComments": null + }, + "leadingComments": [ + { + "type": "CommentBlock", + "value": "*\r\n * Executes the callback function every time simple-keyboard is rendered (e.g: when you change layouts).\r\n ", + "start": 15576, + "end": 15694, + "loc": { + "start": { + "line": 446, + "column": 2 + }, + "end": { + "line": 448, + "column": 5 + } + } + } + ], + "trailingComments": [ + { + "type": "CommentBlock", + "value": "*\r\n * Renders rows and buttons as per options\r\n ", + "start": 15812, + "end": 15868, + "loc": { + "start": { + "line": 454, + "column": 2 + }, + "end": { + "line": 456, + "column": 5 + } + } + } + ] + }, + { + "type": "ClassProperty", + "start": 15872, + "end": 20001, + "loc": { + "start": { + "line": 457, + "column": 2 + }, + "end": { + "line": 593, + "column": 3 + } + }, + "static": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 15872, + "end": 15878, + "loc": { + "start": { + "line": 457, + "column": 2 + }, + "end": { + "line": 457, + "column": 8 + }, + "identifierName": "render" + }, + "name": "render", + "leadingComments": null + }, + "value": { + "type": "ArrowFunctionExpression", + "start": 15881, + "end": 20001, + "loc": { + "start": { + "line": 457, + "column": 11 + }, + "end": { + "line": 593, + "column": 3 + } + }, + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [], + "body": { + "type": "BlockStatement", + "start": 15887, + "end": 20001, + "loc": { + "start": { + "line": 457, + "column": 17 + }, + "end": { + "line": 593, + "column": 3 + } + }, + "body": [ + { + "type": "ExpressionStatement", + "start": 15935, + "end": 15948, + "loc": { + "start": { + "line": 461, + "column": 4 + }, + "end": { + "line": 461, + "column": 17 + } + }, + "expression": { + "type": "CallExpression", + "start": 15935, + "end": 15947, + "loc": { + "start": { + "line": 461, + "column": 4 + }, + "end": { + "line": 461, + "column": 16 + } + }, + "callee": { + "type": "MemberExpression", + "start": 15935, + "end": 15945, + "loc": { + "start": { + "line": 461, + "column": 4 + }, + "end": { + "line": 461, + "column": 14 + } + }, + "object": { + "type": "ThisExpression", + "start": 15935, + "end": 15939, + "loc": { + "start": { + "line": 461, + "column": 4 + }, + "end": { + "line": 461, + "column": 8 + } + }, + "leadingComments": null + }, + "property": { + "type": "Identifier", + "start": 15940, + "end": 15945, + "loc": { + "start": { + "line": 461, + "column": 9 + }, + "end": { + "line": 461, + "column": 14 + }, + "identifierName": "clear" + }, + "name": "clear" + }, + "computed": false, + "leadingComments": null + }, + "arguments": [], + "leadingComments": null + }, + "leadingComments": [ + { + "type": "CommentBlock", + "value": "*\r\n * Clear keyboard\r\n ", + "start": 15894, + "end": 15929, + "loc": { + "start": { + "line": 458, + "column": 4 + }, + "end": { + "line": 460, + "column": 7 + } + } + } + ] + }, + { + "type": "VariableDeclaration", + "start": 15956, + "end": 16056, + "loc": { + "start": { + "line": 463, + "column": 4 + }, + "end": { + "line": 463, + "column": 104 + } + }, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 15960, + "end": 16055, + "loc": { + "start": { + "line": 463, + "column": 8 + }, + "end": { + "line": 463, + "column": 103 + } + }, + "id": { + "type": "Identifier", + "start": 15960, + "end": 15971, + "loc": { + "start": { + "line": 463, + "column": 8 + }, + "end": { + "line": 463, + "column": 19 + }, + "identifierName": "layoutClass" + }, + "name": "layoutClass" + }, + "init": { + "type": "ConditionalExpression", + "start": 15974, + "end": 16055, + "loc": { + "start": { + "line": 463, + "column": 22 + }, + "end": { + "line": 463, + "column": 103 + } + }, + "test": { + "type": "MemberExpression", + "start": 15974, + "end": 15993, + "loc": { + "start": { + "line": 463, + "column": 22 + }, + "end": { + "line": 463, + "column": 41 + } + }, + "object": { + "type": "MemberExpression", + "start": 15974, + "end": 15986, + "loc": { + "start": { + "line": 463, + "column": 22 + }, + "end": { + "line": 463, + "column": 34 + } + }, + "object": { + "type": "ThisExpression", + "start": 15974, + "end": 15978, + "loc": { + "start": { + "line": 463, + "column": 22 + }, + "end": { + "line": 463, + "column": 26 + } + } + }, + "property": { + "type": "Identifier", + "start": 15979, + "end": 15986, + "loc": { + "start": { + "line": 463, + "column": 27 + }, + "end": { + "line": 463, + "column": 34 + }, + "identifierName": "options" + }, + "name": "options" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 15987, + "end": 15993, + "loc": { + "start": { + "line": 463, + "column": 35 + }, + "end": { + "line": 463, + "column": 41 + }, + "identifierName": "layout" + }, + "name": "layout" + }, + "computed": false + }, + "consequent": { + "type": "StringLiteral", + "start": 15996, + "end": 16014, + "loc": { + "start": { + "line": 463, + "column": 44 + }, + "end": { + "line": 463, + "column": 62 + } + }, + "extra": { + "rawValue": "hg-layout-custom", + "raw": "\"hg-layout-custom\"" + }, + "value": "hg-layout-custom" + }, + "alternate": { + "type": "TemplateLiteral", + "start": 16017, + "end": 16055, + "loc": { + "start": { + "line": 463, + "column": 65 + }, + "end": { + "line": 463, + "column": 103 + } + }, + "expressions": [ + { + "type": "MemberExpression", + "start": 16030, + "end": 16053, + "loc": { + "start": { + "line": 463, + "column": 78 + }, + "end": { + "line": 463, + "column": 101 + } + }, + "object": { + "type": "MemberExpression", + "start": 16030, + "end": 16042, + "loc": { + "start": { + "line": 463, + "column": 78 + }, + "end": { + "line": 463, + "column": 90 + } + }, + "object": { + "type": "ThisExpression", + "start": 16030, + "end": 16034, + "loc": { + "start": { + "line": 463, + "column": 78 + }, + "end": { + "line": 463, + "column": 82 + } + } + }, + "property": { + "type": "Identifier", + "start": 16035, + "end": 16042, + "loc": { + "start": { + "line": 463, + "column": 83 + }, + "end": { + "line": 463, + "column": 90 + }, + "identifierName": "options" + }, + "name": "options" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 16043, + "end": 16053, + "loc": { + "start": { + "line": 463, + "column": 91 + }, + "end": { + "line": 463, + "column": 101 + }, + "identifierName": "layoutName" + }, + "name": "layoutName" + }, + "computed": false + } + ], + "quasis": [ + { + "type": "TemplateElement", + "start": 16018, + "end": 16028, + "loc": { + "start": { + "line": 463, + "column": 66 + }, + "end": { + "line": 463, + "column": 76 + } + }, + "value": { + "raw": "hg-layout-", + "cooked": "hg-layout-" + }, + "tail": false + }, + { + "type": "TemplateElement", + "start": 16054, + "end": 16054, + "loc": { + "start": { + "line": 463, + "column": 102 + }, + "end": { + "line": 463, + "column": 102 + } + }, + "value": { + "raw": "", + "cooked": "" + }, + "tail": true + } + ] + } + } + } + ], + "kind": "let" + }, + { + "type": "VariableDeclaration", + "start": 16062, + "end": 16132, + "loc": { + "start": { + "line": 464, + "column": 4 + }, + "end": { + "line": 464, + "column": 74 + } + }, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 16066, + "end": 16131, + "loc": { + "start": { + "line": 464, + "column": 8 + }, + "end": { + "line": 464, + "column": 73 + } + }, + "id": { + "type": "Identifier", + "start": 16066, + "end": 16072, + "loc": { + "start": { + "line": 464, + "column": 8 + }, + "end": { + "line": 464, + "column": 14 + }, + "identifierName": "layout" + }, + "name": "layout" + }, + "init": { + "type": "LogicalExpression", + "start": 16075, + "end": 16131, + "loc": { + "start": { + "line": 464, + "column": 17 + }, + "end": { + "line": 464, + "column": 73 + } + }, + "left": { + "type": "MemberExpression", + "start": 16075, + "end": 16094, + "loc": { + "start": { + "line": 464, + "column": 17 + }, + "end": { + "line": 464, + "column": 36 + } + }, + "object": { + "type": "MemberExpression", + "start": 16075, + "end": 16087, + "loc": { + "start": { + "line": 464, + "column": 17 + }, + "end": { + "line": 464, + "column": 29 + } + }, + "object": { + "type": "ThisExpression", + "start": 16075, + "end": 16079, + "loc": { + "start": { + "line": 464, + "column": 17 + }, + "end": { + "line": 464, + "column": 21 + } + } + }, + "property": { + "type": "Identifier", + "start": 16080, + "end": 16087, + "loc": { + "start": { + "line": 464, + "column": 22 + }, + "end": { + "line": 464, + "column": 29 + }, + "identifierName": "options" + }, + "name": "options" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 16088, + "end": 16094, + "loc": { + "start": { + "line": 464, + "column": 30 + }, + "end": { + "line": 464, + "column": 36 + }, + "identifierName": "layout" + }, + "name": "layout" + }, + "computed": false + }, + "operator": "||", + "right": { + "type": "CallExpression", + "start": 16098, + "end": 16131, + "loc": { + "start": { + "line": 464, + "column": 40 + }, + "end": { + "line": 464, + "column": 73 + } + }, + "callee": { + "type": "MemberExpression", + "start": 16098, + "end": 16129, + "loc": { + "start": { + "line": 464, + "column": 40 + }, + "end": { + "line": 464, + "column": 71 + } + }, + "object": { + "type": "Identifier", + "start": 16098, + "end": 16112, + "loc": { + "start": { + "line": 464, + "column": 40 + }, + "end": { + "line": 464, + "column": 54 + }, + "identifierName": "KeyboardLayout" + }, + "name": "KeyboardLayout" + }, + "property": { + "type": "Identifier", + "start": 16113, + "end": 16129, + "loc": { + "start": { + "line": 464, + "column": 55 + }, + "end": { + "line": 464, + "column": 71 + }, + "identifierName": "getDefaultLayout" + }, + "name": "getDefaultLayout" + }, + "computed": false + }, + "arguments": [] + } + } + } + ], + "kind": "let", + "trailingComments": [ + { + "type": "CommentBlock", + "value": "*\r\n * Account for buttonTheme, if set\r\n ", + "start": 16140, + "end": 16192, + "loc": { + "start": { + "line": 466, + "column": 4 + }, + "end": { + "line": 468, + "column": 7 + } + } + } + ] + }, + { + "type": "VariableDeclaration", + "start": 16198, + "end": 16226, + "loc": { + "start": { + "line": 469, + "column": 4 + }, + "end": { + "line": 469, + "column": 32 + } + }, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 16202, + "end": 16225, + "loc": { + "start": { + "line": 469, + "column": 8 + }, + "end": { + "line": 469, + "column": 31 + } + }, + "id": { + "type": "Identifier", + "start": 16202, + "end": 16220, + "loc": { + "start": { + "line": 469, + "column": 8 + }, + "end": { + "line": 469, + "column": 26 + }, + "identifierName": "buttonThemesParsed" + }, + "name": "buttonThemesParsed", + "leadingComments": null + }, + "init": { + "type": "ObjectExpression", + "start": 16223, + "end": 16225, + "loc": { + "start": { + "line": 469, + "column": 29 + }, + "end": { + "line": 469, + "column": 31 + } + }, + "properties": [] + }, + "leadingComments": null + } + ], + "kind": "let", + "leadingComments": [ + { + "type": "CommentBlock", + "value": "*\r\n * Account for buttonTheme, if set\r\n ", + "start": 16140, + "end": 16192, + "loc": { + "start": { + "line": 466, + "column": 4 + }, + "end": { + "line": 468, + "column": 7 + } + } + } + ] + }, + { + "type": "IfStatement", + "start": 16232, + "end": 17371, + "loc": { + "start": { + "line": 470, + "column": 4 + }, + "end": { + "line": 498, + "column": 5 + } + }, + "test": { + "type": "CallExpression", + "start": 16235, + "end": 16274, + "loc": { + "start": { + "line": 470, + "column": 7 + }, + "end": { + "line": 470, + "column": 46 + } + }, + "callee": { + "type": "MemberExpression", + "start": 16235, + "end": 16248, + "loc": { + "start": { + "line": 470, + "column": 7 + }, + "end": { + "line": 470, + "column": 20 + } + }, + "object": { + "type": "Identifier", + "start": 16235, + "end": 16240, + "loc": { + "start": { + "line": 470, + "column": 7 + }, + "end": { + "line": 470, + "column": 12 + }, + "identifierName": "Array" + }, + "name": "Array" + }, + "property": { + "type": "Identifier", + "start": 16241, + "end": 16248, + "loc": { + "start": { + "line": 470, + "column": 13 + }, + "end": { + "line": 470, + "column": 20 + }, + "identifierName": "isArray" + }, + "name": "isArray" + }, + "computed": false + }, + "arguments": [ + { + "type": "MemberExpression", + "start": 16249, + "end": 16273, + "loc": { + "start": { + "line": 470, + "column": 21 + }, + "end": { + "line": 470, + "column": 45 + } + }, + "object": { + "type": "MemberExpression", + "start": 16249, + "end": 16261, + "loc": { + "start": { + "line": 470, + "column": 21 + }, + "end": { + "line": 470, + "column": 33 + } + }, + "object": { + "type": "ThisExpression", + "start": 16249, + "end": 16253, + "loc": { + "start": { + "line": 470, + "column": 21 + }, + "end": { + "line": 470, + "column": 25 + } + } + }, + "property": { + "type": "Identifier", + "start": 16254, + "end": 16261, + "loc": { + "start": { + "line": 470, + "column": 26 + }, + "end": { + "line": 470, + "column": 33 + }, + "identifierName": "options" + }, + "name": "options" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 16262, + "end": 16273, + "loc": { + "start": { + "line": 470, + "column": 34 + }, + "end": { + "line": 470, + "column": 45 + }, + "identifierName": "buttonTheme" + }, + "name": "buttonTheme" + }, + "computed": false + } + ] + }, + "consequent": { + "type": "BlockStatement", + "start": 16275, + "end": 17371, + "loc": { + "start": { + "line": 470, + "column": 47 + }, + "end": { + "line": 498, + "column": 5 + } + }, + "body": [ + { + "type": "ExpressionStatement", + "start": 16284, + "end": 17364, + "loc": { + "start": { + "line": 471, + "column": 6 + }, + "end": { + "line": 497, + "column": 9 + } + }, + "expression": { + "type": "CallExpression", + "start": 16284, + "end": 17363, + "loc": { + "start": { + "line": 471, + "column": 6 + }, + "end": { + "line": 497, + "column": 8 + } + }, + "callee": { + "type": "MemberExpression", + "start": 16284, + "end": 16316, + "loc": { + "start": { + "line": 471, + "column": 6 + }, + "end": { + "line": 471, + "column": 38 + } + }, + "object": { + "type": "MemberExpression", + "start": 16284, + "end": 16308, + "loc": { + "start": { + "line": 471, + "column": 6 + }, + "end": { + "line": 471, + "column": 30 + } + }, + "object": { + "type": "MemberExpression", + "start": 16284, + "end": 16296, + "loc": { + "start": { + "line": 471, + "column": 6 + }, + "end": { + "line": 471, + "column": 18 + } + }, + "object": { + "type": "ThisExpression", + "start": 16284, + "end": 16288, + "loc": { + "start": { + "line": 471, + "column": 6 + }, + "end": { + "line": 471, + "column": 10 + } + } + }, + "property": { + "type": "Identifier", + "start": 16289, + "end": 16296, + "loc": { + "start": { + "line": 471, + "column": 11 + }, + "end": { + "line": 471, + "column": 18 + }, + "identifierName": "options" + }, + "name": "options" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 16297, + "end": 16308, + "loc": { + "start": { + "line": 471, + "column": 19 + }, + "end": { + "line": 471, + "column": 30 + }, + "identifierName": "buttonTheme" + }, + "name": "buttonTheme" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 16309, + "end": 16316, + "loc": { + "start": { + "line": 471, + "column": 31 + }, + "end": { + "line": 471, + "column": 38 + }, + "identifierName": "forEach" + }, + "name": "forEach" + }, + "computed": false + }, + "arguments": [ + { + "type": "ArrowFunctionExpression", + "start": 16317, + "end": 17362, + "loc": { + "start": { + "line": 471, + "column": 39 + }, + "end": { + "line": 497, + "column": 7 + } + }, + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 16317, + "end": 16325, + "loc": { + "start": { + "line": 471, + "column": 39 + }, + "end": { + "line": 471, + "column": 47 + }, + "identifierName": "themeObj" + }, + "name": "themeObj" + } + ], + "body": { + "type": "BlockStatement", + "start": 16329, + "end": 17362, + "loc": { + "start": { + "line": 471, + "column": 51 + }, + "end": { + "line": 497, + "column": 7 + } + }, + "body": [ + { + "type": "IfStatement", + "start": 16340, + "end": 17353, + "loc": { + "start": { + "line": 472, + "column": 8 + }, + "end": { + "line": 496, + "column": 9 + } + }, + "test": { + "type": "LogicalExpression", + "start": 16343, + "end": 16377, + "loc": { + "start": { + "line": 472, + "column": 11 + }, + "end": { + "line": 472, + "column": 45 + } + }, + "left": { + "type": "MemberExpression", + "start": 16343, + "end": 16359, + "loc": { + "start": { + "line": 472, + "column": 11 + }, + "end": { + "line": 472, + "column": 27 + } + }, + "object": { + "type": "Identifier", + "start": 16343, + "end": 16351, + "loc": { + "start": { + "line": 472, + "column": 11 + }, + "end": { + "line": 472, + "column": 19 + }, + "identifierName": "themeObj" + }, + "name": "themeObj" + }, + "property": { + "type": "Identifier", + "start": 16352, + "end": 16359, + "loc": { + "start": { + "line": 472, + "column": 20 + }, + "end": { + "line": 472, + "column": 27 + }, + "identifierName": "buttons" + }, + "name": "buttons" + }, + "computed": false + }, + "operator": "&&", + "right": { + "type": "MemberExpression", + "start": 16363, + "end": 16377, + "loc": { + "start": { + "line": 472, + "column": 31 + }, + "end": { + "line": 472, + "column": 45 + } + }, + "object": { + "type": "Identifier", + "start": 16363, + "end": 16371, + "loc": { + "start": { + "line": 472, + "column": 31 + }, + "end": { + "line": 472, + "column": 39 + }, + "identifierName": "themeObj" + }, + "name": "themeObj" + }, + "property": { + "type": "Identifier", + "start": 16372, + "end": 16377, + "loc": { + "start": { + "line": 472, + "column": 40 + }, + "end": { + "line": 472, + "column": 45 + }, + "identifierName": "class" + }, + "name": "class" + }, + "computed": false + } + }, + "consequent": { + "type": "BlockStatement", + "start": 16378, + "end": 17219, + "loc": { + "start": { + "line": 472, + "column": 46 + }, + "end": { + "line": 494, + "column": 9 + } + }, + "body": [ + { + "type": "VariableDeclaration", + "start": 16391, + "end": 16408, + "loc": { + "start": { + "line": 473, + "column": 10 + }, + "end": { + "line": 473, + "column": 27 + } + }, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 16395, + "end": 16407, + "loc": { + "start": { + "line": 473, + "column": 14 + }, + "end": { + "line": 473, + "column": 26 + } + }, + "id": { + "type": "Identifier", + "start": 16395, + "end": 16407, + "loc": { + "start": { + "line": 473, + "column": 14 + }, + "end": { + "line": 473, + "column": 26 + }, + "identifierName": "themeButtons" + }, + "name": "themeButtons" + }, + "init": null + } + ], + "kind": "let" + }, + { + "type": "IfStatement", + "start": 16422, + "end": 16533, + "loc": { + "start": { + "line": 475, + "column": 10 + }, + "end": { + "line": 477, + "column": 11 + } + }, + "test": { + "type": "BinaryExpression", + "start": 16425, + "end": 16461, + "loc": { + "start": { + "line": 475, + "column": 13 + }, + "end": { + "line": 475, + "column": 49 + } + }, + "left": { + "type": "UnaryExpression", + "start": 16425, + "end": 16448, + "loc": { + "start": { + "line": 475, + "column": 13 + }, + "end": { + "line": 475, + "column": 36 + } + }, + "operator": "typeof", + "prefix": true, + "argument": { + "type": "MemberExpression", + "start": 16432, + "end": 16448, + "loc": { + "start": { + "line": 475, + "column": 20 + }, + "end": { + "line": 475, + "column": 36 + } + }, + "object": { + "type": "Identifier", + "start": 16432, + "end": 16440, + "loc": { + "start": { + "line": 475, + "column": 20 + }, + "end": { + "line": 475, + "column": 28 + }, + "identifierName": "themeObj" + }, + "name": "themeObj" + }, + "property": { + "type": "Identifier", + "start": 16441, + "end": 16448, + "loc": { + "start": { + "line": 475, + "column": 29 + }, + "end": { + "line": 475, + "column": 36 + }, + "identifierName": "buttons" + }, + "name": "buttons" + }, + "computed": false + }, + "extra": { + "parenthesizedArgument": false + } + }, + "operator": "===", + "right": { + "type": "StringLiteral", + "start": 16453, + "end": 16461, + "loc": { + "start": { + "line": 475, + "column": 41 + }, + "end": { + "line": 475, + "column": 49 + } + }, + "extra": { + "rawValue": "string", + "raw": "\"string\"" + }, + "value": "string" + } + }, + "consequent": { + "type": "BlockStatement", + "start": 16462, + "end": 16533, + "loc": { + "start": { + "line": 475, + "column": 50 + }, + "end": { + "line": 477, + "column": 11 + } + }, + "body": [ + { + "type": "ExpressionStatement", + "start": 16477, + "end": 16520, + "loc": { + "start": { + "line": 476, + "column": 12 + }, + "end": { + "line": 476, + "column": 55 + } + }, + "expression": { + "type": "AssignmentExpression", + "start": 16477, + "end": 16519, + "loc": { + "start": { + "line": 476, + "column": 12 + }, + "end": { + "line": 476, + "column": 54 + } + }, + "operator": "=", + "left": { + "type": "Identifier", + "start": 16477, + "end": 16489, + "loc": { + "start": { + "line": 476, + "column": 12 + }, + "end": { + "line": 476, + "column": 24 + }, + "identifierName": "themeButtons" + }, + "name": "themeButtons" + }, + "right": { + "type": "CallExpression", + "start": 16492, + "end": 16519, + "loc": { + "start": { + "line": 476, + "column": 27 + }, + "end": { + "line": 476, + "column": 54 + } + }, + "callee": { + "type": "MemberExpression", + "start": 16492, + "end": 16514, + "loc": { + "start": { + "line": 476, + "column": 27 + }, + "end": { + "line": 476, + "column": 49 + } + }, + "object": { + "type": "MemberExpression", + "start": 16492, + "end": 16508, + "loc": { + "start": { + "line": 476, + "column": 27 + }, + "end": { + "line": 476, + "column": 43 + } + }, + "object": { + "type": "Identifier", + "start": 16492, + "end": 16500, + "loc": { + "start": { + "line": 476, + "column": 27 + }, + "end": { + "line": 476, + "column": 35 + }, + "identifierName": "themeObj" + }, + "name": "themeObj" + }, + "property": { + "type": "Identifier", + "start": 16501, + "end": 16508, + "loc": { + "start": { + "line": 476, + "column": 36 + }, + "end": { + "line": 476, + "column": 43 + }, + "identifierName": "buttons" + }, + "name": "buttons" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 16509, + "end": 16514, + "loc": { + "start": { + "line": 476, + "column": 44 + }, + "end": { + "line": 476, + "column": 49 + }, + "identifierName": "split" + }, + "name": "split" + }, + "computed": false + }, + "arguments": [ + { + "type": "StringLiteral", + "start": 16515, + "end": 16518, + "loc": { + "start": { + "line": 476, + "column": 50 + }, + "end": { + "line": 476, + "column": 53 + } + }, + "extra": { + "rawValue": " ", + "raw": "' '" + }, + "value": " " + } + ] + } + } + } + ], + "directives": [] + }, + "alternate": null + }, + { + "type": "IfStatement", + "start": 16547, + "end": 17208, + "loc": { + "start": { + "line": 479, + "column": 10 + }, + "end": { + "line": 493, + "column": 11 + } + }, + "test": { + "type": "Identifier", + "start": 16550, + "end": 16562, + "loc": { + "start": { + "line": 479, + "column": 13 + }, + "end": { + "line": 479, + "column": 25 + }, + "identifierName": "themeButtons" + }, + "name": "themeButtons" + }, + "consequent": { + "type": "BlockStatement", + "start": 16563, + "end": 17208, + "loc": { + "start": { + "line": 479, + "column": 26 + }, + "end": { + "line": 493, + "column": 11 + } + }, + "body": [ + { + "type": "ExpressionStatement", + "start": 16578, + "end": 17195, + "loc": { + "start": { + "line": 480, + "column": 12 + }, + "end": { + "line": 492, + "column": 15 + } + }, + "expression": { + "type": "CallExpression", + "start": 16578, + "end": 17194, + "loc": { + "start": { + "line": 480, + "column": 12 + }, + "end": { + "line": 492, + "column": 14 + } + }, + "callee": { + "type": "MemberExpression", + "start": 16578, + "end": 16598, + "loc": { + "start": { + "line": 480, + "column": 12 + }, + "end": { + "line": 480, + "column": 32 + } + }, + "object": { + "type": "Identifier", + "start": 16578, + "end": 16590, + "loc": { + "start": { + "line": 480, + "column": 12 + }, + "end": { + "line": 480, + "column": 24 + }, + "identifierName": "themeButtons" + }, + "name": "themeButtons" + }, + "property": { + "type": "Identifier", + "start": 16591, + "end": 16598, + "loc": { + "start": { + "line": 480, + "column": 25 + }, + "end": { + "line": 480, + "column": 32 + }, + "identifierName": "forEach" + }, + "name": "forEach" + }, + "computed": false + }, + "arguments": [ + { + "type": "ArrowFunctionExpression", + "start": 16599, + "end": 17193, + "loc": { + "start": { + "line": 480, + "column": 33 + }, + "end": { + "line": 492, + "column": 13 + } + }, + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 16599, + "end": 16610, + "loc": { + "start": { + "line": 480, + "column": 33 + }, + "end": { + "line": 480, + "column": 44 + }, + "identifierName": "themeButton" + }, + "name": "themeButton" + } + ], + "body": { + "type": "BlockStatement", + "start": 16614, + "end": 17193, + "loc": { + "start": { + "line": 480, + "column": 48 + }, + "end": { + "line": 492, + "column": 13 + } + }, + "body": [ + { + "type": "VariableDeclaration", + "start": 16631, + "end": 16681, + "loc": { + "start": { + "line": 481, + "column": 14 + }, + "end": { + "line": 481, + "column": 64 + } + }, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 16635, + "end": 16680, + "loc": { + "start": { + "line": 481, + "column": 18 + }, + "end": { + "line": 481, + "column": 63 + } + }, + "id": { + "type": "Identifier", + "start": 16635, + "end": 16646, + "loc": { + "start": { + "line": 481, + "column": 18 + }, + "end": { + "line": 481, + "column": 29 + }, + "identifierName": "themeParsed" + }, + "name": "themeParsed" + }, + "init": { + "type": "MemberExpression", + "start": 16649, + "end": 16680, + "loc": { + "start": { + "line": 481, + "column": 32 + }, + "end": { + "line": 481, + "column": 63 + } + }, + "object": { + "type": "Identifier", + "start": 16649, + "end": 16667, + "loc": { + "start": { + "line": 481, + "column": 32 + }, + "end": { + "line": 481, + "column": 50 + }, + "identifierName": "buttonThemesParsed" + }, + "name": "buttonThemesParsed" + }, + "property": { + "type": "Identifier", + "start": 16668, + "end": 16679, + "loc": { + "start": { + "line": 481, + "column": 51 + }, + "end": { + "line": 481, + "column": 62 + }, + "identifierName": "themeButton" + }, + "name": "themeButton" + }, + "computed": true + } + } + ], + "kind": "let", + "trailingComments": [ + { + "type": "CommentLine", + "value": " If the button has already been added", + "start": 16699, + "end": 16738, + "loc": { + "start": { + "line": 483, + "column": 14 + }, + "end": { + "line": 483, + "column": 53 + } + } + } + ] + }, + { + "type": "IfStatement", + "start": 16754, + "end": 17178, + "loc": { + "start": { + "line": 484, + "column": 14 + }, + "end": { + "line": 491, + "column": 15 + } + }, + "test": { + "type": "Identifier", + "start": 16757, + "end": 16768, + "loc": { + "start": { + "line": 484, + "column": 17 + }, + "end": { + "line": 484, + "column": 28 + }, + "identifierName": "themeParsed" + }, + "name": "themeParsed", + "leadingComments": null + }, + "consequent": { + "type": "BlockStatement", + "start": 16769, + "end": 17087, + "loc": { + "start": { + "line": 484, + "column": 29 + }, + "end": { + "line": 489, + "column": 15 + } + }, + "body": [ + { + "type": "IfStatement", + "start": 16889, + "end": 17070, + "loc": { + "start": { + "line": 486, + "column": 16 + }, + "end": { + "line": 488, + "column": 17 + } + }, + "test": { + "type": "UnaryExpression", + "start": 16892, + "end": 16960, + "loc": { + "start": { + "line": 486, + "column": 19 + }, + "end": { + "line": 486, + "column": 87 + } + }, + "operator": "!", + "prefix": true, + "argument": { + "type": "CallExpression", + "start": 16893, + "end": 16960, + "loc": { + "start": { + "line": 486, + "column": 20 + }, + "end": { + "line": 486, + "column": 87 + } + }, + "callee": { + "type": "MemberExpression", + "start": 16893, + "end": 16920, + "loc": { + "start": { + "line": 486, + "column": 20 + }, + "end": { + "line": 486, + "column": 47 + } + }, + "object": { + "type": "MemberExpression", + "start": 16893, + "end": 16907, + "loc": { + "start": { + "line": 486, + "column": 20 + }, + "end": { + "line": 486, + "column": 34 + } + }, + "object": { + "type": "ThisExpression", + "start": 16893, + "end": 16897, + "loc": { + "start": { + "line": 486, + "column": 20 + }, + "end": { + "line": 486, + "column": 24 + } + }, + "leadingComments": null + }, + "property": { + "type": "Identifier", + "start": 16898, + "end": 16907, + "loc": { + "start": { + "line": 486, + "column": 25 + }, + "end": { + "line": 486, + "column": 34 + }, + "identifierName": "utilities" + }, + "name": "utilities" + }, + "computed": false, + "leadingComments": null + }, + "property": { + "type": "Identifier", + "start": 16908, + "end": 16920, + "loc": { + "start": { + "line": 486, + "column": 35 + }, + "end": { + "line": 486, + "column": 47 + }, + "identifierName": "countInArray" + }, + "name": "countInArray" + }, + "computed": false, + "leadingComments": null + }, + "arguments": [ + { + "type": "CallExpression", + "start": 16921, + "end": 16943, + "loc": { + "start": { + "line": 486, + "column": 48 + }, + "end": { + "line": 486, + "column": 70 + } + }, + "callee": { + "type": "MemberExpression", + "start": 16921, + "end": 16938, + "loc": { + "start": { + "line": 486, + "column": 48 + }, + "end": { + "line": 486, + "column": 65 + } + }, + "object": { + "type": "Identifier", + "start": 16921, + "end": 16932, + "loc": { + "start": { + "line": 486, + "column": 48 + }, + "end": { + "line": 486, + "column": 59 + }, + "identifierName": "themeParsed" + }, + "name": "themeParsed" + }, + "property": { + "type": "Identifier", + "start": 16933, + "end": 16938, + "loc": { + "start": { + "line": 486, + "column": 60 + }, + "end": { + "line": 486, + "column": 65 + }, + "identifierName": "split" + }, + "name": "split" + }, + "computed": false + }, + "arguments": [ + { + "type": "StringLiteral", + "start": 16939, + "end": 16942, + "loc": { + "start": { + "line": 486, + "column": 66 + }, + "end": { + "line": 486, + "column": 69 + } + }, + "extra": { + "rawValue": " ", + "raw": "\" \"" + }, + "value": " " + } + ] + }, + { + "type": "MemberExpression", + "start": 16945, + "end": 16959, + "loc": { + "start": { + "line": 486, + "column": 72 + }, + "end": { + "line": 486, + "column": 86 + } + }, + "object": { + "type": "Identifier", + "start": 16945, + "end": 16953, + "loc": { + "start": { + "line": 486, + "column": 72 + }, + "end": { + "line": 486, + "column": 80 + }, + "identifierName": "themeObj" + }, + "name": "themeObj" + }, + "property": { + "type": "Identifier", + "start": 16954, + "end": 16959, + "loc": { + "start": { + "line": 486, + "column": 81 + }, + "end": { + "line": 486, + "column": 86 + }, + "identifierName": "class" + }, + "name": "class" + }, + "computed": false + } + ], + "leadingComments": null + }, + "extra": { + "parenthesizedArgument": false + }, + "leadingComments": null + }, + "consequent": { + "type": "BlockStatement", + "start": 16961, + "end": 17070, + "loc": { + "start": { + "line": 486, + "column": 88 + }, + "end": { + "line": 488, + "column": 17 + } + }, + "body": [ + { + "type": "ExpressionStatement", + "start": 16982, + "end": 17051, + "loc": { + "start": { + "line": 487, + "column": 18 + }, + "end": { + "line": 487, + "column": 87 + } + }, + "expression": { + "type": "AssignmentExpression", + "start": 16982, + "end": 17050, + "loc": { + "start": { + "line": 487, + "column": 18 + }, + "end": { + "line": 487, + "column": 86 + } + }, + "operator": "=", + "left": { + "type": "MemberExpression", + "start": 16982, + "end": 17013, + "loc": { + "start": { + "line": 487, + "column": 18 + }, + "end": { + "line": 487, + "column": 49 + } + }, + "object": { + "type": "Identifier", + "start": 16982, + "end": 17000, + "loc": { + "start": { + "line": 487, + "column": 18 + }, + "end": { + "line": 487, + "column": 36 + }, + "identifierName": "buttonThemesParsed" + }, + "name": "buttonThemesParsed" + }, + "property": { + "type": "Identifier", + "start": 17001, + "end": 17012, + "loc": { + "start": { + "line": 487, + "column": 37 + }, + "end": { + "line": 487, + "column": 48 + }, + "identifierName": "themeButton" + }, + "name": "themeButton" + }, + "computed": true + }, + "right": { + "type": "TemplateLiteral", + "start": 17016, + "end": 17050, + "loc": { + "start": { + "line": 487, + "column": 52 + }, + "end": { + "line": 487, + "column": 86 + } + }, + "expressions": [ + { + "type": "Identifier", + "start": 17019, + "end": 17030, + "loc": { + "start": { + "line": 487, + "column": 55 + }, + "end": { + "line": 487, + "column": 66 + }, + "identifierName": "themeParsed" + }, + "name": "themeParsed" + }, + { + "type": "MemberExpression", + "start": 17034, + "end": 17048, + "loc": { + "start": { + "line": 487, + "column": 70 + }, + "end": { + "line": 487, + "column": 84 + } + }, + "object": { + "type": "Identifier", + "start": 17034, + "end": 17042, + "loc": { + "start": { + "line": 487, + "column": 70 + }, + "end": { + "line": 487, + "column": 78 + }, + "identifierName": "themeObj" + }, + "name": "themeObj" + }, + "property": { + "type": "Identifier", + "start": 17043, + "end": 17048, + "loc": { + "start": { + "line": 487, + "column": 79 + }, + "end": { + "line": 487, + "column": 84 + }, + "identifierName": "class" + }, + "name": "class" + }, + "computed": false + } + ], + "quasis": [ + { + "type": "TemplateElement", + "start": 17017, + "end": 17017, + "loc": { + "start": { + "line": 487, + "column": 53 + }, + "end": { + "line": 487, + "column": 53 + } + }, + "value": { + "raw": "", + "cooked": "" + }, + "tail": false + }, + { + "type": "TemplateElement", + "start": 17031, + "end": 17032, + "loc": { + "start": { + "line": 487, + "column": 67 + }, + "end": { + "line": 487, + "column": 68 + } + }, + "value": { + "raw": " ", + "cooked": " " + }, + "tail": false + }, + { + "type": "TemplateElement", + "start": 17049, + "end": 17049, + "loc": { + "start": { + "line": 487, + "column": 85 + }, + "end": { + "line": 487, + "column": 85 + } + }, + "value": { + "raw": "", + "cooked": "" + }, + "tail": true + } + ] + } + } + } + ], + "directives": [] + }, + "alternate": null, + "leadingComments": [ + { + "type": "CommentLine", + "value": " Making sure we don't add duplicate classes, even when buttonTheme has duplicates", + "start": 16788, + "end": 16871, + "loc": { + "start": { + "line": 485, + "column": 16 + }, + "end": { + "line": 485, + "column": 99 + } + } + } + ] + } + ], + "directives": [] + }, + "alternate": { + "type": "BlockStatement", + "start": 17093, + "end": 17178, + "loc": { + "start": { + "line": 489, + "column": 21 + }, + "end": { + "line": 491, + "column": 15 + } + }, + "body": [ + { + "type": "ExpressionStatement", + "start": 17112, + "end": 17161, + "loc": { + "start": { + "line": 490, + "column": 16 + }, + "end": { + "line": 490, + "column": 65 + } + }, + "expression": { + "type": "AssignmentExpression", + "start": 17112, + "end": 17160, + "loc": { + "start": { + "line": 490, + "column": 16 + }, + "end": { + "line": 490, + "column": 64 + } + }, + "operator": "=", + "left": { + "type": "MemberExpression", + "start": 17112, + "end": 17143, + "loc": { + "start": { + "line": 490, + "column": 16 + }, + "end": { + "line": 490, + "column": 47 + } + }, + "object": { + "type": "Identifier", + "start": 17112, + "end": 17130, + "loc": { + "start": { + "line": 490, + "column": 16 + }, + "end": { + "line": 490, + "column": 34 + }, + "identifierName": "buttonThemesParsed" + }, + "name": "buttonThemesParsed" + }, + "property": { + "type": "Identifier", + "start": 17131, + "end": 17142, + "loc": { + "start": { + "line": 490, + "column": 35 + }, + "end": { + "line": 490, + "column": 46 + }, + "identifierName": "themeButton" + }, + "name": "themeButton" + }, + "computed": true + }, + "right": { + "type": "MemberExpression", + "start": 17146, + "end": 17160, + "loc": { + "start": { + "line": 490, + "column": 50 + }, + "end": { + "line": 490, + "column": 64 + } + }, + "object": { + "type": "Identifier", + "start": 17146, + "end": 17154, + "loc": { + "start": { + "line": 490, + "column": 50 + }, + "end": { + "line": 490, + "column": 58 + }, + "identifierName": "themeObj" + }, + "name": "themeObj" + }, + "property": { + "type": "Identifier", + "start": 17155, + "end": 17160, + "loc": { + "start": { + "line": 490, + "column": 59 + }, + "end": { + "line": 490, + "column": 64 + }, + "identifierName": "class" + }, + "name": "class" + }, + "computed": false + } + } + } + ], + "directives": [] + }, + "leadingComments": [ + { + "type": "CommentLine", + "value": " If the button has already been added", + "start": 16699, + "end": 16738, + "loc": { + "start": { + "line": 483, + "column": 14 + }, + "end": { + "line": 483, + "column": 53 + } + } + } + ] + } + ], + "directives": [] + } + } + ] + } + } + ], + "directives": [] + }, + "alternate": null + } + ], + "directives": [] + }, + "alternate": { + "type": "BlockStatement", + "start": 17225, + "end": 17353, + "loc": { + "start": { + "line": 494, + "column": 15 + }, + "end": { + "line": 496, + "column": 9 + } + }, + "body": [ + { + "type": "ExpressionStatement", + "start": 17238, + "end": 17342, + "loc": { + "start": { + "line": 495, + "column": 10 + }, + "end": { + "line": 495, + "column": 114 + } + }, + "expression": { + "type": "CallExpression", + "start": 17238, + "end": 17342, + "loc": { + "start": { + "line": 495, + "column": 10 + }, + "end": { + "line": 495, + "column": 114 + } + }, + "callee": { + "type": "MemberExpression", + "start": 17238, + "end": 17250, + "loc": { + "start": { + "line": 495, + "column": 10 + }, + "end": { + "line": 495, + "column": 22 + } + }, + "object": { + "type": "Identifier", + "start": 17238, + "end": 17245, + "loc": { + "start": { + "line": 495, + "column": 10 + }, + "end": { + "line": 495, + "column": 17 + }, + "identifierName": "console" + }, + "name": "console" + }, + "property": { + "type": "Identifier", + "start": 17246, + "end": 17250, + "loc": { + "start": { + "line": 495, + "column": 18 + }, + "end": { + "line": 495, + "column": 22 + }, + "identifierName": "warn" + }, + "name": "warn" + }, + "computed": false + }, + "arguments": [ + { + "type": "TemplateLiteral", + "start": 17251, + "end": 17341, + "loc": { + "start": { + "line": 495, + "column": 23 + }, + "end": { + "line": 495, + "column": 113 + } + }, + "expressions": [], + "quasis": [ + { + "type": "TemplateElement", + "start": 17252, + "end": 17340, + "loc": { + "start": { + "line": 495, + "column": 24 + }, + "end": { + "line": 495, + "column": 112 + } + }, + "value": { + "raw": "buttonTheme row is missing the \"buttons\" or the \"class\". Please check the documentation.", + "cooked": "buttonTheme row is missing the \"buttons\" or the \"class\". Please check the documentation." + }, + "tail": true + } + ] + } + ] + } + } + ], + "directives": [] + } + } + ], + "directives": [] + } + } + ] + } + } + ], + "directives": [], + "trailingComments": null + }, + "alternate": null, + "trailingComments": [ + { + "type": "CommentBlock", + "value": "*\r\n * Adding themeClass, layoutClass to keyboardDOM\r\n ", + "start": 17379, + "end": 17445, + "loc": { + "start": { + "line": 500, + "column": 4 + }, + "end": { + "line": 502, + "column": 7 + } + } + } + ] + }, + { + "type": "ExpressionStatement", + "start": 17451, + "end": 17521, + "loc": { + "start": { + "line": 503, + "column": 4 + }, + "end": { + "line": 503, + "column": 74 + } + }, + "expression": { + "type": "AssignmentExpression", + "start": 17451, + "end": 17520, + "loc": { + "start": { + "line": 503, + "column": 4 + }, + "end": { + "line": 503, + "column": 73 + } + }, + "operator": "+=", + "left": { + "type": "MemberExpression", + "start": 17451, + "end": 17477, + "loc": { + "start": { + "line": 503, + "column": 4 + }, + "end": { + "line": 503, + "column": 30 + } + }, + "object": { + "type": "MemberExpression", + "start": 17451, + "end": 17467, + "loc": { + "start": { + "line": 503, + "column": 4 + }, + "end": { + "line": 503, + "column": 20 + } + }, + "object": { + "type": "ThisExpression", + "start": 17451, + "end": 17455, + "loc": { + "start": { + "line": 503, + "column": 4 + }, + "end": { + "line": 503, + "column": 8 + } + }, + "leadingComments": null + }, + "property": { + "type": "Identifier", + "start": 17456, + "end": 17467, + "loc": { + "start": { + "line": 503, + "column": 9 + }, + "end": { + "line": 503, + "column": 20 + }, + "identifierName": "keyboardDOM" + }, + "name": "keyboardDOM" + }, + "computed": false, + "leadingComments": null + }, + "property": { + "type": "Identifier", + "start": 17468, + "end": 17477, + "loc": { + "start": { + "line": 503, + "column": 21 + }, + "end": { + "line": 503, + "column": 30 + }, + "identifierName": "className" + }, + "name": "className" + }, + "computed": false, + "leadingComments": null + }, + "right": { + "type": "TemplateLiteral", + "start": 17481, + "end": 17520, + "loc": { + "start": { + "line": 503, + "column": 34 + }, + "end": { + "line": 503, + "column": 73 + } + }, + "expressions": [ + { + "type": "MemberExpression", + "start": 17485, + "end": 17503, + "loc": { + "start": { + "line": 503, + "column": 38 + }, + "end": { + "line": 503, + "column": 56 + } + }, + "object": { + "type": "MemberExpression", + "start": 17485, + "end": 17497, + "loc": { + "start": { + "line": 503, + "column": 38 + }, + "end": { + "line": 503, + "column": 50 + } + }, + "object": { + "type": "ThisExpression", + "start": 17485, + "end": 17489, + "loc": { + "start": { + "line": 503, + "column": 38 + }, + "end": { + "line": 503, + "column": 42 + } + } + }, + "property": { + "type": "Identifier", + "start": 17490, + "end": 17497, + "loc": { + "start": { + "line": 503, + "column": 43 + }, + "end": { + "line": 503, + "column": 50 + }, + "identifierName": "options" + }, + "name": "options" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 17498, + "end": 17503, + "loc": { + "start": { + "line": 503, + "column": 51 + }, + "end": { + "line": 503, + "column": 56 + }, + "identifierName": "theme" + }, + "name": "theme" + }, + "computed": false + }, + { + "type": "Identifier", + "start": 17507, + "end": 17518, + "loc": { + "start": { + "line": 503, + "column": 60 + }, + "end": { + "line": 503, + "column": 71 + }, + "identifierName": "layoutClass" + }, + "name": "layoutClass" + } + ], + "quasis": [ + { + "type": "TemplateElement", + "start": 17482, + "end": 17483, + "loc": { + "start": { + "line": 503, + "column": 35 + }, + "end": { + "line": 503, + "column": 36 + } + }, + "value": { + "raw": " ", + "cooked": " " + }, + "tail": false + }, + { + "type": "TemplateElement", + "start": 17504, + "end": 17505, + "loc": { + "start": { + "line": 503, + "column": 57 + }, + "end": { + "line": 503, + "column": 58 + } + }, + "value": { + "raw": " ", + "cooked": " " + }, + "tail": false + }, + { + "type": "TemplateElement", + "start": 17519, + "end": 17519, + "loc": { + "start": { + "line": 503, + "column": 72 + }, + "end": { + "line": 503, + "column": 72 + } + }, + "value": { + "raw": "", + "cooked": "" + }, + "tail": true + } + ] + }, + "leadingComments": null + }, + "leadingComments": [ + { + "type": "CommentBlock", + "value": "*\r\n * Adding themeClass, layoutClass to keyboardDOM\r\n ", + "start": 17379, + "end": 17445, + "loc": { + "start": { + "line": 500, + "column": 4 + }, + "end": { + "line": 502, + "column": 7 + } + } + } + ], + "trailingComments": [ + { + "type": "CommentBlock", + "value": "*\r\n * Iterating through each row\r\n ", + "start": 17529, + "end": 17576, + "loc": { + "start": { + "line": 505, + "column": 4 + }, + "end": { + "line": 507, + "column": 7 + } + } + } + ] + }, + { + "type": "ExpressionStatement", + "start": 17582, + "end": 19699, + "loc": { + "start": { + "line": 508, + "column": 4 + }, + "end": { + "line": 575, + "column": 7 + } + }, + "expression": { + "type": "CallExpression", + "start": 17582, + "end": 19698, + "loc": { + "start": { + "line": 508, + "column": 4 + }, + "end": { + "line": 575, + "column": 6 + } + }, + "callee": { + "type": "MemberExpression", + "start": 17582, + "end": 17621, + "loc": { + "start": { + "line": 508, + "column": 4 + }, + "end": { + "line": 508, + "column": 43 + } + }, + "object": { + "type": "MemberExpression", + "start": 17582, + "end": 17613, + "loc": { + "start": { + "line": 508, + "column": 4 + }, + "end": { + "line": 508, + "column": 35 + } + }, + "object": { + "type": "Identifier", + "start": 17582, + "end": 17588, + "loc": { + "start": { + "line": 508, + "column": 4 + }, + "end": { + "line": 508, + "column": 10 + }, + "identifierName": "layout" + }, + "name": "layout", + "leadingComments": null + }, + "property": { + "type": "MemberExpression", + "start": 17589, + "end": 17612, + "loc": { + "start": { + "line": 508, + "column": 11 + }, + "end": { + "line": 508, + "column": 34 + } + }, + "object": { + "type": "MemberExpression", + "start": 17589, + "end": 17601, + "loc": { + "start": { + "line": 508, + "column": 11 + }, + "end": { + "line": 508, + "column": 23 + } + }, + "object": { + "type": "ThisExpression", + "start": 17589, + "end": 17593, + "loc": { + "start": { + "line": 508, + "column": 11 + }, + "end": { + "line": 508, + "column": 15 + } + } + }, + "property": { + "type": "Identifier", + "start": 17594, + "end": 17601, + "loc": { + "start": { + "line": 508, + "column": 16 + }, + "end": { + "line": 508, + "column": 23 + }, + "identifierName": "options" + }, + "name": "options" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 17602, + "end": 17612, + "loc": { + "start": { + "line": 508, + "column": 24 + }, + "end": { + "line": 508, + "column": 34 + }, + "identifierName": "layoutName" + }, + "name": "layoutName" + }, + "computed": false + }, + "computed": true, + "leadingComments": null + }, + "property": { + "type": "Identifier", + "start": 17614, + "end": 17621, + "loc": { + "start": { + "line": 508, + "column": 36 + }, + "end": { + "line": 508, + "column": 43 + }, + "identifierName": "forEach" + }, + "name": "forEach" + }, + "computed": false, + "leadingComments": null + }, + "arguments": [ + { + "type": "ArrowFunctionExpression", + "start": 17622, + "end": 19697, + "loc": { + "start": { + "line": 508, + "column": 44 + }, + "end": { + "line": 575, + "column": 5 + } + }, + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 17623, + "end": 17626, + "loc": { + "start": { + "line": 508, + "column": 45 + }, + "end": { + "line": 508, + "column": 48 + }, + "identifierName": "row" + }, + "name": "row" + }, + { + "type": "Identifier", + "start": 17628, + "end": 17634, + "loc": { + "start": { + "line": 508, + "column": 50 + }, + "end": { + "line": 508, + "column": 56 + }, + "identifierName": "rIndex" + }, + "name": "rIndex" + } + ], + "body": { + "type": "BlockStatement", + "start": 17639, + "end": 19697, + "loc": { + "start": { + "line": 508, + "column": 61 + }, + "end": { + "line": 575, + "column": 5 + } + }, + "body": [ + { + "type": "VariableDeclaration", + "start": 17648, + "end": 17678, + "loc": { + "start": { + "line": 509, + "column": 6 + }, + "end": { + "line": 509, + "column": 36 + } + }, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 17652, + "end": 17677, + "loc": { + "start": { + "line": 509, + "column": 10 + }, + "end": { + "line": 509, + "column": 35 + } + }, + "id": { + "type": "Identifier", + "start": 17652, + "end": 17660, + "loc": { + "start": { + "line": 509, + "column": 10 + }, + "end": { + "line": 509, + "column": 18 + }, + "identifierName": "rowArray" + }, + "name": "rowArray" + }, + "init": { + "type": "CallExpression", + "start": 17663, + "end": 17677, + "loc": { + "start": { + "line": 509, + "column": 21 + }, + "end": { + "line": 509, + "column": 35 + } + }, + "callee": { + "type": "MemberExpression", + "start": 17663, + "end": 17672, + "loc": { + "start": { + "line": 509, + "column": 21 + }, + "end": { + "line": 509, + "column": 30 + } + }, + "object": { + "type": "Identifier", + "start": 17663, + "end": 17666, + "loc": { + "start": { + "line": 509, + "column": 21 + }, + "end": { + "line": 509, + "column": 24 + }, + "identifierName": "row" + }, + "name": "row" + }, + "property": { + "type": "Identifier", + "start": 17667, + "end": 17672, + "loc": { + "start": { + "line": 509, + "column": 25 + }, + "end": { + "line": 509, + "column": 30 + }, + "identifierName": "split" + }, + "name": "split" + }, + "computed": false + }, + "arguments": [ + { + "type": "StringLiteral", + "start": 17673, + "end": 17676, + "loc": { + "start": { + "line": 509, + "column": 31 + }, + "end": { + "line": 509, + "column": 34 + } + }, + "extra": { + "rawValue": " ", + "raw": "' '" + }, + "value": " " + } + ] + } + } + ], + "kind": "let", + "trailingComments": [ + { + "type": "CommentBlock", + "value": "*\r\n * Creating empty row\r\n ", + "start": 17688, + "end": 17731, + "loc": { + "start": { + "line": 511, + "column": 6 + }, + "end": { + "line": 513, + "column": 9 + } + } + } + ] + }, + { + "type": "VariableDeclaration", + "start": 17739, + "end": 17782, + "loc": { + "start": { + "line": 514, + "column": 6 + }, + "end": { + "line": 514, + "column": 49 + } + }, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 17743, + "end": 17781, + "loc": { + "start": { + "line": 514, + "column": 10 + }, + "end": { + "line": 514, + "column": 48 + } + }, + "id": { + "type": "Identifier", + "start": 17743, + "end": 17749, + "loc": { + "start": { + "line": 514, + "column": 10 + }, + "end": { + "line": 514, + "column": 16 + }, + "identifierName": "rowDOM" + }, + "name": "rowDOM", + "leadingComments": null + }, + "init": { + "type": "CallExpression", + "start": 17752, + "end": 17781, + "loc": { + "start": { + "line": 514, + "column": 19 + }, + "end": { + "line": 514, + "column": 48 + } + }, + "callee": { + "type": "MemberExpression", + "start": 17752, + "end": 17774, + "loc": { + "start": { + "line": 514, + "column": 19 + }, + "end": { + "line": 514, + "column": 41 + } + }, + "object": { + "type": "Identifier", + "start": 17752, + "end": 17760, + "loc": { + "start": { + "line": 514, + "column": 19 + }, + "end": { + "line": 514, + "column": 27 + }, + "identifierName": "document" + }, + "name": "document" + }, + "property": { + "type": "Identifier", + "start": 17761, + "end": 17774, + "loc": { + "start": { + "line": 514, + "column": 28 + }, + "end": { + "line": 514, + "column": 41 + }, + "identifierName": "createElement" + }, + "name": "createElement" + }, + "computed": false + }, + "arguments": [ + { + "type": "StringLiteral", + "start": 17775, + "end": 17780, + "loc": { + "start": { + "line": 514, + "column": 42 + }, + "end": { + "line": 514, + "column": 47 + } + }, + "extra": { + "rawValue": "div", + "raw": "'div'" + }, + "value": "div" + } + ] + }, + "leadingComments": null + } + ], + "kind": "var", + "leadingComments": [ + { + "type": "CommentBlock", + "value": "*\r\n * Creating empty row\r\n ", + "start": 17688, + "end": 17731, + "loc": { + "start": { + "line": 511, + "column": 6 + }, + "end": { + "line": 513, + "column": 9 + } + } + } + ] + }, + { + "type": "ExpressionStatement", + "start": 17790, + "end": 17819, + "loc": { + "start": { + "line": 515, + "column": 6 + }, + "end": { + "line": 515, + "column": 35 + } + }, + "expression": { + "type": "AssignmentExpression", + "start": 17790, + "end": 17818, + "loc": { + "start": { + "line": 515, + "column": 6 + }, + "end": { + "line": 515, + "column": 34 + } + }, + "operator": "+=", + "left": { + "type": "MemberExpression", + "start": 17790, + "end": 17806, + "loc": { + "start": { + "line": 515, + "column": 6 + }, + "end": { + "line": 515, + "column": 22 + } + }, + "object": { + "type": "Identifier", + "start": 17790, + "end": 17796, + "loc": { + "start": { + "line": 515, + "column": 6 + }, + "end": { + "line": 515, + "column": 12 + }, + "identifierName": "rowDOM" + }, + "name": "rowDOM" + }, + "property": { + "type": "Identifier", + "start": 17797, + "end": 17806, + "loc": { + "start": { + "line": 515, + "column": 13 + }, + "end": { + "line": 515, + "column": 22 + }, + "identifierName": "className" + }, + "name": "className" + }, + "computed": false + }, + "right": { + "type": "StringLiteral", + "start": 17810, + "end": 17818, + "loc": { + "start": { + "line": 515, + "column": 26 + }, + "end": { + "line": 515, + "column": 34 + } + }, + "extra": { + "rawValue": "hg-row", + "raw": "\"hg-row\"" + }, + "value": "hg-row" + } + }, + "trailingComments": [ + { + "type": "CommentBlock", + "value": "*\r\n * Iterating through each button in row\r\n ", + "start": 17829, + "end": 17890, + "loc": { + "start": { + "line": 517, + "column": 6 + }, + "end": { + "line": 519, + "column": 9 + } + } + } + ] + }, + { + "type": "ExpressionStatement", + "start": 17898, + "end": 19585, + "loc": { + "start": { + "line": 520, + "column": 6 + }, + "end": { + "line": 569, + "column": 9 + } + }, + "expression": { + "type": "CallExpression", + "start": 17898, + "end": 19584, + "loc": { + "start": { + "line": 520, + "column": 6 + }, + "end": { + "line": 569, + "column": 8 + } + }, + "callee": { + "type": "MemberExpression", + "start": 17898, + "end": 17914, + "loc": { + "start": { + "line": 520, + "column": 6 + }, + "end": { + "line": 520, + "column": 22 + } + }, + "object": { + "type": "Identifier", + "start": 17898, + "end": 17906, + "loc": { + "start": { + "line": 520, + "column": 6 + }, + "end": { + "line": 520, + "column": 14 + }, + "identifierName": "rowArray" + }, + "name": "rowArray", + "leadingComments": null + }, + "property": { + "type": "Identifier", + "start": 17907, + "end": 17914, + "loc": { + "start": { + "line": 520, + "column": 15 + }, + "end": { + "line": 520, + "column": 22 + }, + "identifierName": "forEach" + }, + "name": "forEach" + }, + "computed": false, + "leadingComments": null + }, + "arguments": [ + { + "type": "ArrowFunctionExpression", + "start": 17915, + "end": 19583, + "loc": { + "start": { + "line": 520, + "column": 23 + }, + "end": { + "line": 569, + "column": 7 + } + }, + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 17916, + "end": 17922, + "loc": { + "start": { + "line": 520, + "column": 24 + }, + "end": { + "line": 520, + "column": 30 + }, + "identifierName": "button" + }, + "name": "button" + }, + { + "type": "Identifier", + "start": 17924, + "end": 17930, + "loc": { + "start": { + "line": 520, + "column": 32 + }, + "end": { + "line": 520, + "column": 38 + }, + "identifierName": "bIndex" + }, + "name": "bIndex" + } + ], + "body": { + "type": "BlockStatement", + "start": 17935, + "end": 19583, + "loc": { + "start": { + "line": 520, + "column": 43 + }, + "end": { + "line": 569, + "column": 7 + } + }, + "body": [ + { + "type": "VariableDeclaration", + "start": 17946, + "end": 18002, + "loc": { + "start": { + "line": 521, + "column": 8 + }, + "end": { + "line": 521, + "column": 64 + } + }, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 17950, + "end": 18001, + "loc": { + "start": { + "line": 521, + "column": 12 + }, + "end": { + "line": 521, + "column": 63 + } + }, + "id": { + "type": "Identifier", + "start": 17950, + "end": 17961, + "loc": { + "start": { + "line": 521, + "column": 12 + }, + "end": { + "line": 521, + "column": 23 + }, + "identifierName": "fctBtnClass" + }, + "name": "fctBtnClass" + }, + "init": { + "type": "CallExpression", + "start": 17964, + "end": 18001, + "loc": { + "start": { + "line": 521, + "column": 26 + }, + "end": { + "line": 521, + "column": 63 + } + }, + "callee": { + "type": "MemberExpression", + "start": 17964, + "end": 17993, + "loc": { + "start": { + "line": 521, + "column": 26 + }, + "end": { + "line": 521, + "column": 55 + } + }, + "object": { + "type": "MemberExpression", + "start": 17964, + "end": 17978, + "loc": { + "start": { + "line": 521, + "column": 26 + }, + "end": { + "line": 521, + "column": 40 + } + }, + "object": { + "type": "ThisExpression", + "start": 17964, + "end": 17968, + "loc": { + "start": { + "line": 521, + "column": 26 + }, + "end": { + "line": 521, + "column": 30 + } + } + }, + "property": { + "type": "Identifier", + "start": 17969, + "end": 17978, + "loc": { + "start": { + "line": 521, + "column": 31 + }, + "end": { + "line": 521, + "column": 40 + }, + "identifierName": "utilities" + }, + "name": "utilities" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 17979, + "end": 17993, + "loc": { + "start": { + "line": 521, + "column": 41 + }, + "end": { + "line": 521, + "column": 55 + }, + "identifierName": "getButtonClass" + }, + "name": "getButtonClass" + }, + "computed": false + }, + "arguments": [ + { + "type": "Identifier", + "start": 17994, + "end": 18000, + "loc": { + "start": { + "line": 521, + "column": 56 + }, + "end": { + "line": 521, + "column": 62 + }, + "identifierName": "button" + }, + "name": "button" + } + ] + } + } + ], + "kind": "let" + }, + { + "type": "VariableDeclaration", + "start": 18012, + "end": 18062, + "loc": { + "start": { + "line": 522, + "column": 8 + }, + "end": { + "line": 522, + "column": 58 + } + }, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 18016, + "end": 18061, + "loc": { + "start": { + "line": 522, + "column": 12 + }, + "end": { + "line": 522, + "column": 57 + } + }, + "id": { + "type": "Identifier", + "start": 18016, + "end": 18032, + "loc": { + "start": { + "line": 522, + "column": 12 + }, + "end": { + "line": 522, + "column": 28 + }, + "identifierName": "buttonThemeClass" + }, + "name": "buttonThemeClass" + }, + "init": { + "type": "MemberExpression", + "start": 18035, + "end": 18061, + "loc": { + "start": { + "line": 522, + "column": 31 + }, + "end": { + "line": 522, + "column": 57 + } + }, + "object": { + "type": "Identifier", + "start": 18035, + "end": 18053, + "loc": { + "start": { + "line": 522, + "column": 31 + }, + "end": { + "line": 522, + "column": 49 + }, + "identifierName": "buttonThemesParsed" + }, + "name": "buttonThemesParsed" + }, + "property": { + "type": "Identifier", + "start": 18054, + "end": 18060, + "loc": { + "start": { + "line": 522, + "column": 50 + }, + "end": { + "line": 522, + "column": 56 + }, + "identifierName": "button" + }, + "name": "button" + }, + "computed": true + } + } + ], + "kind": "let" + }, + { + "type": "VariableDeclaration", + "start": 18072, + "end": 18189, + "loc": { + "start": { + "line": 523, + "column": 8 + }, + "end": { + "line": 523, + "column": 125 + } + }, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 18076, + "end": 18188, + "loc": { + "start": { + "line": 523, + "column": 12 + }, + "end": { + "line": 523, + "column": 124 + } + }, + "id": { + "type": "Identifier", + "start": 18076, + "end": 18093, + "loc": { + "start": { + "line": 523, + "column": 12 + }, + "end": { + "line": 523, + "column": 29 + }, + "identifierName": "buttonDisplayName" + }, + "name": "buttonDisplayName" + }, + "init": { + "type": "CallExpression", + "start": 18096, + "end": 18188, + "loc": { + "start": { + "line": 523, + "column": 32 + }, + "end": { + "line": 523, + "column": 124 + } + }, + "callee": { + "type": "MemberExpression", + "start": 18096, + "end": 18131, + "loc": { + "start": { + "line": 523, + "column": 32 + }, + "end": { + "line": 523, + "column": 67 + } + }, + "object": { + "type": "MemberExpression", + "start": 18096, + "end": 18110, + "loc": { + "start": { + "line": 523, + "column": 32 + }, + "end": { + "line": 523, + "column": 46 + } + }, + "object": { + "type": "ThisExpression", + "start": 18096, + "end": 18100, + "loc": { + "start": { + "line": 523, + "column": 32 + }, + "end": { + "line": 523, + "column": 36 + } + } + }, + "property": { + "type": "Identifier", + "start": 18101, + "end": 18110, + "loc": { + "start": { + "line": 523, + "column": 37 + }, + "end": { + "line": 523, + "column": 46 + }, + "identifierName": "utilities" + }, + "name": "utilities" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 18111, + "end": 18131, + "loc": { + "start": { + "line": 523, + "column": 47 + }, + "end": { + "line": 523, + "column": 67 + }, + "identifierName": "getButtonDisplayName" + }, + "name": "getButtonDisplayName" + }, + "computed": false + }, + "arguments": [ + { + "type": "Identifier", + "start": 18132, + "end": 18138, + "loc": { + "start": { + "line": 523, + "column": 68 + }, + "end": { + "line": 523, + "column": 74 + }, + "identifierName": "button" + }, + "name": "button" + }, + { + "type": "MemberExpression", + "start": 18140, + "end": 18160, + "loc": { + "start": { + "line": 523, + "column": 76 + }, + "end": { + "line": 523, + "column": 96 + } + }, + "object": { + "type": "MemberExpression", + "start": 18140, + "end": 18152, + "loc": { + "start": { + "line": 523, + "column": 76 + }, + "end": { + "line": 523, + "column": 88 + } + }, + "object": { + "type": "ThisExpression", + "start": 18140, + "end": 18144, + "loc": { + "start": { + "line": 523, + "column": 76 + }, + "end": { + "line": 523, + "column": 80 + } + } + }, + "property": { + "type": "Identifier", + "start": 18145, + "end": 18152, + "loc": { + "start": { + "line": 523, + "column": 81 + }, + "end": { + "line": 523, + "column": 88 + }, + "identifierName": "options" + }, + "name": "options" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 18153, + "end": 18160, + "loc": { + "start": { + "line": 523, + "column": 89 + }, + "end": { + "line": 523, + "column": 96 + }, + "identifierName": "display" + }, + "name": "display" + }, + "computed": false + }, + { + "type": "MemberExpression", + "start": 18162, + "end": 18187, + "loc": { + "start": { + "line": 523, + "column": 98 + }, + "end": { + "line": 523, + "column": 123 + } + }, + "object": { + "type": "MemberExpression", + "start": 18162, + "end": 18174, + "loc": { + "start": { + "line": 523, + "column": 98 + }, + "end": { + "line": 523, + "column": 110 + } + }, + "object": { + "type": "ThisExpression", + "start": 18162, + "end": 18166, + "loc": { + "start": { + "line": 523, + "column": 98 + }, + "end": { + "line": 523, + "column": 102 + } + } + }, + "property": { + "type": "Identifier", + "start": 18167, + "end": 18174, + "loc": { + "start": { + "line": 523, + "column": 103 + }, + "end": { + "line": 523, + "column": 110 + }, + "identifierName": "options" + }, + "name": "options" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 18175, + "end": 18187, + "loc": { + "start": { + "line": 523, + "column": 111 + }, + "end": { + "line": 523, + "column": 123 + }, + "identifierName": "mergeDisplay" + }, + "name": "mergeDisplay" + }, + "computed": false + } + ] + } + } + ], + "kind": "let", + "trailingComments": [ + { + "type": "CommentBlock", + "value": "*\r\n * Creating button\r\n ", + "start": 18201, + "end": 18245, + "loc": { + "start": { + "line": 525, + "column": 8 + }, + "end": { + "line": 527, + "column": 11 + } + } + } + ] + }, + { + "type": "VariableDeclaration", + "start": 18255, + "end": 18301, + "loc": { + "start": { + "line": 528, + "column": 8 + }, + "end": { + "line": 528, + "column": 54 + } + }, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 18259, + "end": 18300, + "loc": { + "start": { + "line": 528, + "column": 12 + }, + "end": { + "line": 528, + "column": 53 + } + }, + "id": { + "type": "Identifier", + "start": 18259, + "end": 18268, + "loc": { + "start": { + "line": 528, + "column": 12 + }, + "end": { + "line": 528, + "column": 21 + }, + "identifierName": "buttonDOM" + }, + "name": "buttonDOM", + "leadingComments": null + }, + "init": { + "type": "CallExpression", + "start": 18271, + "end": 18300, + "loc": { + "start": { + "line": 528, + "column": 24 + }, + "end": { + "line": 528, + "column": 53 + } + }, + "callee": { + "type": "MemberExpression", + "start": 18271, + "end": 18293, + "loc": { + "start": { + "line": 528, + "column": 24 + }, + "end": { + "line": 528, + "column": 46 + } + }, + "object": { + "type": "Identifier", + "start": 18271, + "end": 18279, + "loc": { + "start": { + "line": 528, + "column": 24 + }, + "end": { + "line": 528, + "column": 32 + }, + "identifierName": "document" + }, + "name": "document" + }, + "property": { + "type": "Identifier", + "start": 18280, + "end": 18293, + "loc": { + "start": { + "line": 528, + "column": 33 + }, + "end": { + "line": 528, + "column": 46 + }, + "identifierName": "createElement" + }, + "name": "createElement" + }, + "computed": false + }, + "arguments": [ + { + "type": "StringLiteral", + "start": 18294, + "end": 18299, + "loc": { + "start": { + "line": 528, + "column": 47 + }, + "end": { + "line": 528, + "column": 52 + } + }, + "extra": { + "rawValue": "div", + "raw": "'div'" + }, + "value": "div" + } + ] + }, + "leadingComments": null + } + ], + "kind": "var", + "leadingComments": [ + { + "type": "CommentBlock", + "value": "*\r\n * Creating button\r\n ", + "start": 18201, + "end": 18245, + "loc": { + "start": { + "line": 525, + "column": 8 + }, + "end": { + "line": 527, + "column": 11 + } + } + } + ] + }, + { + "type": "ExpressionStatement", + "start": 18311, + "end": 18408, + "loc": { + "start": { + "line": 529, + "column": 8 + }, + "end": { + "line": 529, + "column": 105 + } + }, + "expression": { + "type": "AssignmentExpression", + "start": 18311, + "end": 18407, + "loc": { + "start": { + "line": 529, + "column": 8 + }, + "end": { + "line": 529, + "column": 104 + } + }, + "operator": "+=", + "left": { + "type": "MemberExpression", + "start": 18311, + "end": 18330, + "loc": { + "start": { + "line": 529, + "column": 8 + }, + "end": { + "line": 529, + "column": 27 + } + }, + "object": { + "type": "Identifier", + "start": 18311, + "end": 18320, + "loc": { + "start": { + "line": 529, + "column": 8 + }, + "end": { + "line": 529, + "column": 17 + }, + "identifierName": "buttonDOM" + }, + "name": "buttonDOM" + }, + "property": { + "type": "Identifier", + "start": 18321, + "end": 18330, + "loc": { + "start": { + "line": 529, + "column": 18 + }, + "end": { + "line": 529, + "column": 27 + }, + "identifierName": "className" + }, + "name": "className" + }, + "computed": false + }, + "right": { + "type": "TemplateLiteral", + "start": 18334, + "end": 18407, + "loc": { + "start": { + "line": 529, + "column": 31 + }, + "end": { + "line": 529, + "column": 104 + } + }, + "expressions": [ + { + "type": "Identifier", + "start": 18347, + "end": 18358, + "loc": { + "start": { + "line": 529, + "column": 44 + }, + "end": { + "line": 529, + "column": 55 + }, + "identifierName": "fctBtnClass" + }, + "name": "fctBtnClass" + }, + { + "type": "ConditionalExpression", + "start": 18361, + "end": 18405, + "loc": { + "start": { + "line": 529, + "column": 58 + }, + "end": { + "line": 529, + "column": 102 + } + }, + "test": { + "type": "Identifier", + "start": 18361, + "end": 18377, + "loc": { + "start": { + "line": 529, + "column": 58 + }, + "end": { + "line": 529, + "column": 74 + }, + "identifierName": "buttonThemeClass" + }, + "name": "buttonThemeClass" + }, + "consequent": { + "type": "BinaryExpression", + "start": 18380, + "end": 18400, + "loc": { + "start": { + "line": 529, + "column": 77 + }, + "end": { + "line": 529, + "column": 97 + } + }, + "left": { + "type": "StringLiteral", + "start": 18380, + "end": 18383, + "loc": { + "start": { + "line": 529, + "column": 77 + }, + "end": { + "line": 529, + "column": 80 + } + }, + "extra": { + "rawValue": " ", + "raw": "\" \"" + }, + "value": " " + }, + "operator": "+", + "right": { + "type": "Identifier", + "start": 18384, + "end": 18400, + "loc": { + "start": { + "line": 529, + "column": 81 + }, + "end": { + "line": 529, + "column": 97 + }, + "identifierName": "buttonThemeClass" + }, + "name": "buttonThemeClass" + } + }, + "alternate": { + "type": "StringLiteral", + "start": 18403, + "end": 18405, + "loc": { + "start": { + "line": 529, + "column": 100 + }, + "end": { + "line": 529, + "column": 102 + } + }, + "extra": { + "rawValue": "", + "raw": "\"\"" + }, + "value": "" + } + } + ], + "quasis": [ + { + "type": "TemplateElement", + "start": 18335, + "end": 18345, + "loc": { + "start": { + "line": 529, + "column": 32 + }, + "end": { + "line": 529, + "column": 42 + } + }, + "value": { + "raw": "hg-button ", + "cooked": "hg-button " + }, + "tail": false + }, + { + "type": "TemplateElement", + "start": 18359, + "end": 18359, + "loc": { + "start": { + "line": 529, + "column": 56 + }, + "end": { + "line": 529, + "column": 56 + } + }, + "value": { + "raw": "", + "cooked": "" + }, + "tail": false + }, + { + "type": "TemplateElement", + "start": 18406, + "end": 18406, + "loc": { + "start": { + "line": 529, + "column": 103 + }, + "end": { + "line": 529, + "column": 103 + } + }, + "value": { + "raw": "", + "cooked": "" + }, + "tail": true + } + ] + } + } + }, + { + "type": "ExpressionStatement", + "start": 18418, + "end": 18477, + "loc": { + "start": { + "line": 530, + "column": 8 + }, + "end": { + "line": 530, + "column": 67 + } + }, + "expression": { + "type": "AssignmentExpression", + "start": 18418, + "end": 18476, + "loc": { + "start": { + "line": 530, + "column": 8 + }, + "end": { + "line": 530, + "column": 66 + } + }, + "operator": "=", + "left": { + "type": "MemberExpression", + "start": 18418, + "end": 18435, + "loc": { + "start": { + "line": 530, + "column": 8 + }, + "end": { + "line": 530, + "column": 25 + } + }, + "object": { + "type": "Identifier", + "start": 18418, + "end": 18427, + "loc": { + "start": { + "line": 530, + "column": 8 + }, + "end": { + "line": 530, + "column": 17 + }, + "identifierName": "buttonDOM" + }, + "name": "buttonDOM" + }, + "property": { + "type": "Identifier", + "start": 18428, + "end": 18435, + "loc": { + "start": { + "line": 530, + "column": 18 + }, + "end": { + "line": 530, + "column": 25 + }, + "identifierName": "onclick" + }, + "name": "onclick" + }, + "computed": false + }, + "right": { + "type": "ArrowFunctionExpression", + "start": 18438, + "end": 18476, + "loc": { + "start": { + "line": 530, + "column": 28 + }, + "end": { + "line": 530, + "column": 66 + } + }, + "id": null, + "generator": false, + "expression": true, + "async": false, + "params": [], + "body": { + "type": "CallExpression", + "start": 18444, + "end": 18476, + "loc": { + "start": { + "line": 530, + "column": 34 + }, + "end": { + "line": 530, + "column": 66 + } + }, + "callee": { + "type": "MemberExpression", + "start": 18444, + "end": 18468, + "loc": { + "start": { + "line": 530, + "column": 34 + }, + "end": { + "line": 530, + "column": 58 + } + }, + "object": { + "type": "ThisExpression", + "start": 18444, + "end": 18448, + "loc": { + "start": { + "line": 530, + "column": 34 + }, + "end": { + "line": 530, + "column": 38 + } + } + }, + "property": { + "type": "Identifier", + "start": 18449, + "end": 18468, + "loc": { + "start": { + "line": 530, + "column": 39 + }, + "end": { + "line": 530, + "column": 58 + }, + "identifierName": "handleButtonClicked" + }, + "name": "handleButtonClicked" + }, + "computed": false + }, + "arguments": [ + { + "type": "Identifier", + "start": 18469, + "end": 18475, + "loc": { + "start": { + "line": 530, + "column": 59 + }, + "end": { + "line": 530, + "column": 65 + }, + "identifierName": "button" + }, + "name": "button" + } + ] + } + } + }, + "trailingComments": [ + { + "type": "CommentBlock", + "value": "*\r\n * Adding identifier\r\n ", + "start": 18489, + "end": 18535, + "loc": { + "start": { + "line": 532, + "column": 8 + }, + "end": { + "line": 534, + "column": 11 + } + } + } + ] + }, + { + "type": "ExpressionStatement", + "start": 18545, + "end": 18590, + "loc": { + "start": { + "line": 535, + "column": 8 + }, + "end": { + "line": 535, + "column": 53 + } + }, + "expression": { + "type": "CallExpression", + "start": 18545, + "end": 18589, + "loc": { + "start": { + "line": 535, + "column": 8 + }, + "end": { + "line": 535, + "column": 52 + } + }, + "callee": { + "type": "MemberExpression", + "start": 18545, + "end": 18567, + "loc": { + "start": { + "line": 535, + "column": 8 + }, + "end": { + "line": 535, + "column": 30 + } + }, + "object": { + "type": "Identifier", + "start": 18545, + "end": 18554, + "loc": { + "start": { + "line": 535, + "column": 8 + }, + "end": { + "line": 535, + "column": 17 + }, + "identifierName": "buttonDOM" + }, + "name": "buttonDOM", + "leadingComments": null + }, + "property": { + "type": "Identifier", + "start": 18555, + "end": 18567, + "loc": { + "start": { + "line": 535, + "column": 18 + }, + "end": { + "line": 535, + "column": 30 + }, + "identifierName": "setAttribute" + }, + "name": "setAttribute" + }, + "computed": false, + "leadingComments": null + }, + "arguments": [ + { + "type": "StringLiteral", + "start": 18568, + "end": 18580, + "loc": { + "start": { + "line": 535, + "column": 31 + }, + "end": { + "line": 535, + "column": 43 + } + }, + "extra": { + "rawValue": "data-skBtn", + "raw": "\"data-skBtn\"" + }, + "value": "data-skBtn" + }, + { + "type": "Identifier", + "start": 18582, + "end": 18588, + "loc": { + "start": { + "line": 535, + "column": 45 + }, + "end": { + "line": 535, + "column": 51 + }, + "identifierName": "button" + }, + "name": "button" + } + ], + "leadingComments": null + }, + "leadingComments": [ + { + "type": "CommentBlock", + "value": "*\r\n * Adding identifier\r\n ", + "start": 18489, + "end": 18535, + "loc": { + "start": { + "line": 532, + "column": 8 + }, + "end": { + "line": 534, + "column": 11 + } + } + } + ], + "trailingComments": [ + { + "type": "CommentBlock", + "value": "*\r\n * Adding unique id\r\n * Since there's no limit on spawning same buttons, the unique id ensures you can style every button\r\n ", + "start": 18602, + "end": 18757, + "loc": { + "start": { + "line": 537, + "column": 8 + }, + "end": { + "line": 540, + "column": 11 + } + } + } + ] + }, + { + "type": "VariableDeclaration", + "start": 18767, + "end": 18833, + "loc": { + "start": { + "line": 541, + "column": 8 + }, + "end": { + "line": 541, + "column": 74 + } + }, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 18771, + "end": 18832, + "loc": { + "start": { + "line": 541, + "column": 12 + }, + "end": { + "line": 541, + "column": 73 + } + }, + "id": { + "type": "Identifier", + "start": 18771, + "end": 18780, + "loc": { + "start": { + "line": 541, + "column": 12 + }, + "end": { + "line": 541, + "column": 21 + }, + "identifierName": "buttonUID" + }, + "name": "buttonUID", + "leadingComments": null + }, + "init": { + "type": "TemplateLiteral", + "start": 18783, + "end": 18832, + "loc": { + "start": { + "line": 541, + "column": 24 + }, + "end": { + "line": 541, + "column": 73 + } + }, + "expressions": [ + { + "type": "MemberExpression", + "start": 18786, + "end": 18809, + "loc": { + "start": { + "line": 541, + "column": 27 + }, + "end": { + "line": 541, + "column": 50 + } + }, + "object": { + "type": "MemberExpression", + "start": 18786, + "end": 18798, + "loc": { + "start": { + "line": 541, + "column": 27 + }, + "end": { + "line": 541, + "column": 39 + } + }, + "object": { + "type": "ThisExpression", + "start": 18786, + "end": 18790, + "loc": { + "start": { + "line": 541, + "column": 27 + }, + "end": { + "line": 541, + "column": 31 + } + } + }, + "property": { + "type": "Identifier", + "start": 18791, + "end": 18798, + "loc": { + "start": { + "line": 541, + "column": 32 + }, + "end": { + "line": 541, + "column": 39 + }, + "identifierName": "options" + }, + "name": "options" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 18799, + "end": 18809, + "loc": { + "start": { + "line": 541, + "column": 40 + }, + "end": { + "line": 541, + "column": 50 + }, + "identifierName": "layoutName" + }, + "name": "layoutName" + }, + "computed": false + }, + { + "type": "Identifier", + "start": 18814, + "end": 18820, + "loc": { + "start": { + "line": 541, + "column": 55 + }, + "end": { + "line": 541, + "column": 61 + }, + "identifierName": "rIndex" + }, + "name": "rIndex" + }, + { + "type": "Identifier", + "start": 18824, + "end": 18830, + "loc": { + "start": { + "line": 541, + "column": 65 + }, + "end": { + "line": 541, + "column": 71 + }, + "identifierName": "bIndex" + }, + "name": "bIndex" + } + ], + "quasis": [ + { + "type": "TemplateElement", + "start": 18784, + "end": 18784, + "loc": { + "start": { + "line": 541, + "column": 25 + }, + "end": { + "line": 541, + "column": 25 + } + }, + "value": { + "raw": "", + "cooked": "" + }, + "tail": false + }, + { + "type": "TemplateElement", + "start": 18810, + "end": 18812, + "loc": { + "start": { + "line": 541, + "column": 51 + }, + "end": { + "line": 541, + "column": 53 + } + }, + "value": { + "raw": "-r", + "cooked": "-r" + }, + "tail": false + }, + { + "type": "TemplateElement", + "start": 18821, + "end": 18822, + "loc": { + "start": { + "line": 541, + "column": 62 + }, + "end": { + "line": 541, + "column": 63 + } + }, + "value": { + "raw": "b", + "cooked": "b" + }, + "tail": false + }, + { + "type": "TemplateElement", + "start": 18831, + "end": 18831, + "loc": { + "start": { + "line": 541, + "column": 72 + }, + "end": { + "line": 541, + "column": 72 + } + }, + "value": { + "raw": "", + "cooked": "" + }, + "tail": true + } + ] + }, + "leadingComments": null + } + ], + "kind": "let", + "leadingComments": [ + { + "type": "CommentBlock", + "value": "*\r\n * Adding unique id\r\n * Since there's no limit on spawning same buttons, the unique id ensures you can style every button\r\n ", + "start": 18602, + "end": 18757, + "loc": { + "start": { + "line": 537, + "column": 8 + }, + "end": { + "line": 540, + "column": 11 + } + } + } + ] + }, + { + "type": "ExpressionStatement", + "start": 18843, + "end": 18894, + "loc": { + "start": { + "line": 542, + "column": 8 + }, + "end": { + "line": 542, + "column": 59 + } + }, + "expression": { + "type": "CallExpression", + "start": 18843, + "end": 18893, + "loc": { + "start": { + "line": 542, + "column": 8 + }, + "end": { + "line": 542, + "column": 58 + } + }, + "callee": { + "type": "MemberExpression", + "start": 18843, + "end": 18865, + "loc": { + "start": { + "line": 542, + "column": 8 + }, + "end": { + "line": 542, + "column": 30 + } + }, + "object": { + "type": "Identifier", + "start": 18843, + "end": 18852, + "loc": { + "start": { + "line": 542, + "column": 8 + }, + "end": { + "line": 542, + "column": 17 + }, + "identifierName": "buttonDOM" + }, + "name": "buttonDOM" + }, + "property": { + "type": "Identifier", + "start": 18853, + "end": 18865, + "loc": { + "start": { + "line": 542, + "column": 18 + }, + "end": { + "line": 542, + "column": 30 + }, + "identifierName": "setAttribute" + }, + "name": "setAttribute" + }, + "computed": false + }, + "arguments": [ + { + "type": "StringLiteral", + "start": 18866, + "end": 18881, + "loc": { + "start": { + "line": 542, + "column": 31 + }, + "end": { + "line": 542, + "column": 46 + } + }, + "extra": { + "rawValue": "data-skBtnUID", + "raw": "\"data-skBtnUID\"" + }, + "value": "data-skBtnUID" + }, + { + "type": "Identifier", + "start": 18883, + "end": 18892, + "loc": { + "start": { + "line": 542, + "column": 48 + }, + "end": { + "line": 542, + "column": 57 + }, + "identifierName": "buttonUID" + }, + "name": "buttonUID" + } + ] + }, + "trailingComments": [ + { + "type": "CommentBlock", + "value": "*\r\n * Adding display label\r\n ", + "start": 18906, + "end": 18955, + "loc": { + "start": { + "line": 544, + "column": 8 + }, + "end": { + "line": 546, + "column": 11 + } + } + } + ] + }, + { + "type": "ExpressionStatement", + "start": 18965, + "end": 19028, + "loc": { + "start": { + "line": 547, + "column": 8 + }, + "end": { + "line": 547, + "column": 71 + } + }, + "expression": { + "type": "CallExpression", + "start": 18965, + "end": 19027, + "loc": { + "start": { + "line": 547, + "column": 8 + }, + "end": { + "line": 547, + "column": 70 + } + }, + "callee": { + "type": "MemberExpression", + "start": 18965, + "end": 18987, + "loc": { + "start": { + "line": 547, + "column": 8 + }, + "end": { + "line": 547, + "column": 30 + } + }, + "object": { + "type": "Identifier", + "start": 18965, + "end": 18974, + "loc": { + "start": { + "line": 547, + "column": 8 + }, + "end": { + "line": 547, + "column": 17 + }, + "identifierName": "buttonDOM" + }, + "name": "buttonDOM", + "leadingComments": null + }, + "property": { + "type": "Identifier", + "start": 18975, + "end": 18987, + "loc": { + "start": { + "line": 547, + "column": 18 + }, + "end": { + "line": 547, + "column": 30 + }, + "identifierName": "setAttribute" + }, + "name": "setAttribute" + }, + "computed": false, + "leadingComments": null + }, + "arguments": [ + { + "type": "StringLiteral", + "start": 18988, + "end": 19007, + "loc": { + "start": { + "line": 547, + "column": 31 + }, + "end": { + "line": 547, + "column": 50 + } + }, + "extra": { + "rawValue": "data-displayLabel", + "raw": "\"data-displayLabel\"" + }, + "value": "data-displayLabel" + }, + { + "type": "Identifier", + "start": 19009, + "end": 19026, + "loc": { + "start": { + "line": 547, + "column": 52 + }, + "end": { + "line": 547, + "column": 69 + }, + "identifierName": "buttonDisplayName" + }, + "name": "buttonDisplayName" + } + ], + "leadingComments": null + }, + "leadingComments": [ + { + "type": "CommentBlock", + "value": "*\r\n * Adding display label\r\n ", + "start": 18906, + "end": 18955, + "loc": { + "start": { + "line": 544, + "column": 8 + }, + "end": { + "line": 546, + "column": 11 + } + } + } + ], + "trailingComments": [ + { + "type": "CommentBlock", + "value": "*\r\n * Adding button label to button\r\n ", + "start": 19040, + "end": 19098, + "loc": { + "start": { + "line": 549, + "column": 8 + }, + "end": { + "line": 551, + "column": 11 + } + } + } + ] + }, + { + "type": "VariableDeclaration", + "start": 19108, + "end": 19159, + "loc": { + "start": { + "line": 552, + "column": 8 + }, + "end": { + "line": 552, + "column": 59 + } + }, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 19112, + "end": 19158, + "loc": { + "start": { + "line": 552, + "column": 12 + }, + "end": { + "line": 552, + "column": 58 + } + }, + "id": { + "type": "Identifier", + "start": 19112, + "end": 19125, + "loc": { + "start": { + "line": 552, + "column": 12 + }, + "end": { + "line": 552, + "column": 25 + }, + "identifierName": "buttonSpanDOM" + }, + "name": "buttonSpanDOM", + "leadingComments": null + }, + "init": { + "type": "CallExpression", + "start": 19128, + "end": 19158, + "loc": { + "start": { + "line": 552, + "column": 28 + }, + "end": { + "line": 552, + "column": 58 + } + }, + "callee": { + "type": "MemberExpression", + "start": 19128, + "end": 19150, + "loc": { + "start": { + "line": 552, + "column": 28 + }, + "end": { + "line": 552, + "column": 50 + } + }, + "object": { + "type": "Identifier", + "start": 19128, + "end": 19136, + "loc": { + "start": { + "line": 552, + "column": 28 + }, + "end": { + "line": 552, + "column": 36 + }, + "identifierName": "document" + }, + "name": "document" + }, + "property": { + "type": "Identifier", + "start": 19137, + "end": 19150, + "loc": { + "start": { + "line": 552, + "column": 37 + }, + "end": { + "line": 552, + "column": 50 + }, + "identifierName": "createElement" + }, + "name": "createElement" + }, + "computed": false + }, + "arguments": [ + { + "type": "StringLiteral", + "start": 19151, + "end": 19157, + "loc": { + "start": { + "line": 552, + "column": 51 + }, + "end": { + "line": 552, + "column": 57 + } + }, + "extra": { + "rawValue": "span", + "raw": "'span'" + }, + "value": "span" + } + ] + }, + "leadingComments": null + } + ], + "kind": "var", + "leadingComments": [ + { + "type": "CommentBlock", + "value": "*\r\n * Adding button label to button\r\n ", + "start": 19040, + "end": 19098, + "loc": { + "start": { + "line": 549, + "column": 8 + }, + "end": { + "line": 551, + "column": 11 + } + } + } + ] + }, + { + "type": "ExpressionStatement", + "start": 19169, + "end": 19213, + "loc": { + "start": { + "line": 553, + "column": 8 + }, + "end": { + "line": 553, + "column": 52 + } + }, + "expression": { + "type": "AssignmentExpression", + "start": 19169, + "end": 19212, + "loc": { + "start": { + "line": 553, + "column": 8 + }, + "end": { + "line": 553, + "column": 51 + } + }, + "operator": "=", + "left": { + "type": "MemberExpression", + "start": 19169, + "end": 19192, + "loc": { + "start": { + "line": 553, + "column": 8 + }, + "end": { + "line": 553, + "column": 31 + } + }, + "object": { + "type": "Identifier", + "start": 19169, + "end": 19182, + "loc": { + "start": { + "line": 553, + "column": 8 + }, + "end": { + "line": 553, + "column": 21 + }, + "identifierName": "buttonSpanDOM" + }, + "name": "buttonSpanDOM" + }, + "property": { + "type": "Identifier", + "start": 19183, + "end": 19192, + "loc": { + "start": { + "line": 553, + "column": 22 + }, + "end": { + "line": 553, + "column": 31 + }, + "identifierName": "innerHTML" + }, + "name": "innerHTML" + }, + "computed": false + }, + "right": { + "type": "Identifier", + "start": 19195, + "end": 19212, + "loc": { + "start": { + "line": 553, + "column": 34 + }, + "end": { + "line": 553, + "column": 51 + }, + "identifierName": "buttonDisplayName" + }, + "name": "buttonDisplayName" + } + } + }, + { + "type": "ExpressionStatement", + "start": 19223, + "end": 19260, + "loc": { + "start": { + "line": 554, + "column": 8 + }, + "end": { + "line": 554, + "column": 45 + } + }, + "expression": { + "type": "CallExpression", + "start": 19223, + "end": 19259, + "loc": { + "start": { + "line": 554, + "column": 8 + }, + "end": { + "line": 554, + "column": 44 + } + }, + "callee": { + "type": "MemberExpression", + "start": 19223, + "end": 19244, + "loc": { + "start": { + "line": 554, + "column": 8 + }, + "end": { + "line": 554, + "column": 29 + } + }, + "object": { + "type": "Identifier", + "start": 19223, + "end": 19232, + "loc": { + "start": { + "line": 554, + "column": 8 + }, + "end": { + "line": 554, + "column": 17 + }, + "identifierName": "buttonDOM" + }, + "name": "buttonDOM" + }, + "property": { + "type": "Identifier", + "start": 19233, + "end": 19244, + "loc": { + "start": { + "line": 554, + "column": 18 + }, + "end": { + "line": 554, + "column": 29 + }, + "identifierName": "appendChild" + }, + "name": "appendChild" + }, + "computed": false + }, + "arguments": [ + { + "type": "Identifier", + "start": 19245, + "end": 19258, + "loc": { + "start": { + "line": 554, + "column": 30 + }, + "end": { + "line": 554, + "column": 43 + }, + "identifierName": "buttonSpanDOM" + }, + "name": "buttonSpanDOM" + } + ] + }, + "trailingComments": [ + { + "type": "CommentBlock", + "value": "*\r\n * Adding to buttonElements\r\n ", + "start": 19272, + "end": 19325, + "loc": { + "start": { + "line": 556, + "column": 8 + }, + "end": { + "line": 558, + "column": 11 + } + } + } + ] + }, + { + "type": "IfStatement", + "start": 19335, + "end": 19412, + "loc": { + "start": { + "line": 559, + "column": 8 + }, + "end": { + "line": 560, + "column": 43 + } + }, + "test": { + "type": "UnaryExpression", + "start": 19338, + "end": 19366, + "loc": { + "start": { + "line": 559, + "column": 11 + }, + "end": { + "line": 559, + "column": 39 + } + }, + "operator": "!", + "prefix": true, + "argument": { + "type": "MemberExpression", + "start": 19339, + "end": 19366, + "loc": { + "start": { + "line": 559, + "column": 12 + }, + "end": { + "line": 559, + "column": 39 + } + }, + "object": { + "type": "MemberExpression", + "start": 19339, + "end": 19358, + "loc": { + "start": { + "line": 559, + "column": 12 + }, + "end": { + "line": 559, + "column": 31 + } + }, + "object": { + "type": "ThisExpression", + "start": 19339, + "end": 19343, + "loc": { + "start": { + "line": 559, + "column": 12 + }, + "end": { + "line": 559, + "column": 16 + } + }, + "leadingComments": null + }, + "property": { + "type": "Identifier", + "start": 19344, + "end": 19358, + "loc": { + "start": { + "line": 559, + "column": 17 + }, + "end": { + "line": 559, + "column": 31 + }, + "identifierName": "buttonElements" + }, + "name": "buttonElements" + }, + "computed": false, + "leadingComments": null + }, + "property": { + "type": "Identifier", + "start": 19359, + "end": 19365, + "loc": { + "start": { + "line": 559, + "column": 32 + }, + "end": { + "line": 559, + "column": 38 + }, + "identifierName": "button" + }, + "name": "button" + }, + "computed": true, + "leadingComments": null + }, + "extra": { + "parenthesizedArgument": false + }, + "leadingComments": null + }, + "consequent": { + "type": "ExpressionStatement", + "start": 19379, + "end": 19412, + "loc": { + "start": { + "line": 560, + "column": 10 + }, + "end": { + "line": 560, + "column": 43 + } + }, + "expression": { + "type": "AssignmentExpression", + "start": 19379, + "end": 19411, + "loc": { + "start": { + "line": 560, + "column": 10 + }, + "end": { + "line": 560, + "column": 42 + } + }, + "operator": "=", + "left": { + "type": "MemberExpression", + "start": 19379, + "end": 19406, + "loc": { + "start": { + "line": 560, + "column": 10 + }, + "end": { + "line": 560, + "column": 37 + } + }, + "object": { + "type": "MemberExpression", + "start": 19379, + "end": 19398, + "loc": { + "start": { + "line": 560, + "column": 10 + }, + "end": { + "line": 560, + "column": 29 + } + }, + "object": { + "type": "ThisExpression", + "start": 19379, + "end": 19383, + "loc": { + "start": { + "line": 560, + "column": 10 + }, + "end": { + "line": 560, + "column": 14 + } + } + }, + "property": { + "type": "Identifier", + "start": 19384, + "end": 19398, + "loc": { + "start": { + "line": 560, + "column": 15 + }, + "end": { + "line": 560, + "column": 29 + }, + "identifierName": "buttonElements" + }, + "name": "buttonElements" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 19399, + "end": 19405, + "loc": { + "start": { + "line": 560, + "column": 30 + }, + "end": { + "line": 560, + "column": 36 + }, + "identifierName": "button" + }, + "name": "button" + }, + "computed": true + }, + "right": { + "type": "ArrayExpression", + "start": 19409, + "end": 19411, + "loc": { + "start": { + "line": 560, + "column": 40 + }, + "end": { + "line": 560, + "column": 42 + } + }, + "elements": [] + } + } + }, + "alternate": null, + "leadingComments": [ + { + "type": "CommentBlock", + "value": "*\r\n * Adding to buttonElements\r\n ", + "start": 19272, + "end": 19325, + "loc": { + "start": { + "line": 556, + "column": 8 + }, + "end": { + "line": 558, + "column": 11 + } + } + } + ] + }, + { + "type": "ExpressionStatement", + "start": 19424, + "end": 19468, + "loc": { + "start": { + "line": 562, + "column": 8 + }, + "end": { + "line": 562, + "column": 52 + } + }, + "expression": { + "type": "CallExpression", + "start": 19424, + "end": 19467, + "loc": { + "start": { + "line": 562, + "column": 8 + }, + "end": { + "line": 562, + "column": 51 + } + }, + "callee": { + "type": "MemberExpression", + "start": 19424, + "end": 19456, + "loc": { + "start": { + "line": 562, + "column": 8 + }, + "end": { + "line": 562, + "column": 40 + } + }, + "object": { + "type": "MemberExpression", + "start": 19424, + "end": 19451, + "loc": { + "start": { + "line": 562, + "column": 8 + }, + "end": { + "line": 562, + "column": 35 + } + }, + "object": { + "type": "MemberExpression", + "start": 19424, + "end": 19443, + "loc": { + "start": { + "line": 562, + "column": 8 + }, + "end": { + "line": 562, + "column": 27 + } + }, + "object": { + "type": "ThisExpression", + "start": 19424, + "end": 19428, + "loc": { + "start": { + "line": 562, + "column": 8 + }, + "end": { + "line": 562, + "column": 12 + } + } + }, + "property": { + "type": "Identifier", + "start": 19429, + "end": 19443, + "loc": { + "start": { + "line": 562, + "column": 13 + }, + "end": { + "line": 562, + "column": 27 + }, + "identifierName": "buttonElements" + }, + "name": "buttonElements" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 19444, + "end": 19450, + "loc": { + "start": { + "line": 562, + "column": 28 + }, + "end": { + "line": 562, + "column": 34 + }, + "identifierName": "button" + }, + "name": "button" + }, + "computed": true + }, + "property": { + "type": "Identifier", + "start": 19452, + "end": 19456, + "loc": { + "start": { + "line": 562, + "column": 36 + }, + "end": { + "line": 562, + "column": 40 + }, + "identifierName": "push" + }, + "name": "push" + }, + "computed": false + }, + "arguments": [ + { + "type": "Identifier", + "start": 19457, + "end": 19466, + "loc": { + "start": { + "line": 562, + "column": 41 + }, + "end": { + "line": 562, + "column": 50 + }, + "identifierName": "buttonDOM" + }, + "name": "buttonDOM" + } + ] + }, + "trailingComments": [ + { + "type": "CommentBlock", + "value": "*\r\n * Appending button to row\r\n ", + "start": 19480, + "end": 19532, + "loc": { + "start": { + "line": 564, + "column": 8 + }, + "end": { + "line": 566, + "column": 11 + } + } + } + ] + }, + { + "type": "ExpressionStatement", + "start": 19542, + "end": 19572, + "loc": { + "start": { + "line": 567, + "column": 8 + }, + "end": { + "line": 567, + "column": 38 + } + }, + "expression": { + "type": "CallExpression", + "start": 19542, + "end": 19571, + "loc": { + "start": { + "line": 567, + "column": 8 + }, + "end": { + "line": 567, + "column": 37 + } + }, + "callee": { + "type": "MemberExpression", + "start": 19542, + "end": 19560, + "loc": { + "start": { + "line": 567, + "column": 8 + }, + "end": { + "line": 567, + "column": 26 + } + }, + "object": { + "type": "Identifier", + "start": 19542, + "end": 19548, + "loc": { + "start": { + "line": 567, + "column": 8 + }, + "end": { + "line": 567, + "column": 14 + }, + "identifierName": "rowDOM" + }, + "name": "rowDOM", + "leadingComments": null + }, + "property": { + "type": "Identifier", + "start": 19549, + "end": 19560, + "loc": { + "start": { + "line": 567, + "column": 15 + }, + "end": { + "line": 567, + "column": 26 + }, + "identifierName": "appendChild" + }, + "name": "appendChild" + }, + "computed": false, + "leadingComments": null + }, + "arguments": [ + { + "type": "Identifier", + "start": 19561, + "end": 19570, + "loc": { + "start": { + "line": 567, + "column": 27 + }, + "end": { + "line": 567, + "column": 36 + }, + "identifierName": "buttonDOM" + }, + "name": "buttonDOM" + } + ], + "leadingComments": null + }, + "leadingComments": [ + { + "type": "CommentBlock", + "value": "*\r\n * Appending button to row\r\n ", + "start": 19480, + "end": 19532, + "loc": { + "start": { + "line": 564, + "column": 8 + }, + "end": { + "line": 566, + "column": 11 + } + } + } + ] + } + ], + "directives": [] + } + } + ], + "leadingComments": null + }, + "leadingComments": [ + { + "type": "CommentBlock", + "value": "*\r\n * Iterating through each button in row\r\n ", + "start": 17829, + "end": 17890, + "loc": { + "start": { + "line": 517, + "column": 6 + }, + "end": { + "line": 519, + "column": 9 + } + } + } + ], + "trailingComments": [ + { + "type": "CommentBlock", + "value": "*\r\n * Appending row to keyboard\r\n ", + "start": 19595, + "end": 19645, + "loc": { + "start": { + "line": 571, + "column": 6 + }, + "end": { + "line": 573, + "column": 9 + } + } + } + ] + }, + { + "type": "ExpressionStatement", + "start": 19653, + "end": 19690, + "loc": { + "start": { + "line": 574, + "column": 6 + }, + "end": { + "line": 574, + "column": 43 + } + }, + "expression": { + "type": "CallExpression", + "start": 19653, + "end": 19689, + "loc": { + "start": { + "line": 574, + "column": 6 + }, + "end": { + "line": 574, + "column": 42 + } + }, + "callee": { + "type": "MemberExpression", + "start": 19653, + "end": 19681, + "loc": { + "start": { + "line": 574, + "column": 6 + }, + "end": { + "line": 574, + "column": 34 + } + }, + "object": { + "type": "MemberExpression", + "start": 19653, + "end": 19669, + "loc": { + "start": { + "line": 574, + "column": 6 + }, + "end": { + "line": 574, + "column": 22 + } + }, + "object": { + "type": "ThisExpression", + "start": 19653, + "end": 19657, + "loc": { + "start": { + "line": 574, + "column": 6 + }, + "end": { + "line": 574, + "column": 10 + } + }, + "leadingComments": null + }, + "property": { + "type": "Identifier", + "start": 19658, + "end": 19669, + "loc": { + "start": { + "line": 574, + "column": 11 + }, + "end": { + "line": 574, + "column": 22 + }, + "identifierName": "keyboardDOM" + }, + "name": "keyboardDOM" + }, + "computed": false, + "leadingComments": null + }, + "property": { + "type": "Identifier", + "start": 19670, + "end": 19681, + "loc": { + "start": { + "line": 574, + "column": 23 + }, + "end": { + "line": 574, + "column": 34 + }, + "identifierName": "appendChild" + }, + "name": "appendChild" + }, + "computed": false, + "leadingComments": null + }, + "arguments": [ + { + "type": "Identifier", + "start": 19682, + "end": 19688, + "loc": { + "start": { + "line": 574, + "column": 35 + }, + "end": { + "line": 574, + "column": 41 + }, + "identifierName": "rowDOM" + }, + "name": "rowDOM" + } + ], + "leadingComments": null + }, + "leadingComments": [ + { + "type": "CommentBlock", + "value": "*\r\n * Appending row to keyboard\r\n ", + "start": 19595, + "end": 19645, + "loc": { + "start": { + "line": 571, + "column": 6 + }, + "end": { + "line": 573, + "column": 9 + } + } + } + ] + } + ], + "directives": [] + } + } + ], + "leadingComments": null + }, + "leadingComments": [ + { + "type": "CommentBlock", + "value": "*\r\n * Iterating through each row\r\n ", + "start": 17529, + "end": 17576, + "loc": { + "start": { + "line": 505, + "column": 4 + }, + "end": { + "line": 507, + "column": 7 + } + } + } + ], + "trailingComments": [ + { + "type": "CommentBlock", + "value": "*\r\n * Calling onRender\r\n ", + "start": 19707, + "end": 19744, + "loc": { + "start": { + "line": 577, + "column": 4 + }, + "end": { + "line": 579, + "column": 7 + } + } + } + ] + }, + { + "type": "ExpressionStatement", + "start": 19750, + "end": 19766, + "loc": { + "start": { + "line": 580, + "column": 4 + }, + "end": { + "line": 580, + "column": 20 + } + }, + "expression": { + "type": "CallExpression", + "start": 19750, + "end": 19765, + "loc": { + "start": { + "line": 580, + "column": 4 + }, + "end": { + "line": 580, + "column": 19 + } + }, + "callee": { + "type": "MemberExpression", + "start": 19750, + "end": 19763, + "loc": { + "start": { + "line": 580, + "column": 4 + }, + "end": { + "line": 580, + "column": 17 + } + }, + "object": { + "type": "ThisExpression", + "start": 19750, + "end": 19754, + "loc": { + "start": { + "line": 580, + "column": 4 + }, + "end": { + "line": 580, + "column": 8 + } + }, + "leadingComments": null + }, + "property": { + "type": "Identifier", + "start": 19755, + "end": 19763, + "loc": { + "start": { + "line": 580, + "column": 9 + }, + "end": { + "line": 580, + "column": 17 + }, + "identifierName": "onRender" + }, + "name": "onRender" + }, + "computed": false, + "leadingComments": null + }, + "arguments": [], + "leadingComments": null + }, + "leadingComments": [ + { + "type": "CommentBlock", + "value": "*\r\n * Calling onRender\r\n ", + "start": 19707, + "end": 19744, + "loc": { + "start": { + "line": 577, + "column": 4 + }, + "end": { + "line": 579, + "column": 7 + } + } + } + ] + }, + { + "type": "IfStatement", + "start": 19774, + "end": 19996, + "loc": { + "start": { + "line": 582, + "column": 4 + }, + "end": { + "line": 592, + "column": 5 + } + }, + "test": { + "type": "UnaryExpression", + "start": 19777, + "end": 19794, + "loc": { + "start": { + "line": 582, + "column": 7 + }, + "end": { + "line": 582, + "column": 24 + } + }, + "operator": "!", + "prefix": true, + "argument": { + "type": "MemberExpression", + "start": 19778, + "end": 19794, + "loc": { + "start": { + "line": 582, + "column": 8 + }, + "end": { + "line": 582, + "column": 24 + } + }, + "object": { + "type": "ThisExpression", + "start": 19778, + "end": 19782, + "loc": { + "start": { + "line": 582, + "column": 8 + }, + "end": { + "line": 582, + "column": 12 + } + } + }, + "property": { + "type": "Identifier", + "start": 19783, + "end": 19794, + "loc": { + "start": { + "line": 582, + "column": 13 + }, + "end": { + "line": 582, + "column": 24 + }, + "identifierName": "initialized" + }, + "name": "initialized" + }, + "computed": false + }, + "extra": { + "parenthesizedArgument": false + } + }, + "consequent": { + "type": "BlockStatement", + "start": 19795, + "end": 19996, + "loc": { + "start": { + "line": 582, + "column": 25 + }, + "end": { + "line": 592, + "column": 5 + } + }, + "body": [ + { + "type": "ExpressionStatement", + "start": 19894, + "end": 19918, + "loc": { + "start": { + "line": 586, + "column": 6 + }, + "end": { + "line": 586, + "column": 30 + } + }, + "expression": { + "type": "AssignmentExpression", + "start": 19894, + "end": 19917, + "loc": { + "start": { + "line": 586, + "column": 6 + }, + "end": { + "line": 586, + "column": 29 + } + }, + "operator": "=", + "left": { + "type": "MemberExpression", + "start": 19894, + "end": 19910, + "loc": { + "start": { + "line": 586, + "column": 6 + }, + "end": { + "line": 586, + "column": 22 + } + }, + "object": { + "type": "ThisExpression", + "start": 19894, + "end": 19898, + "loc": { + "start": { + "line": 586, + "column": 6 + }, + "end": { + "line": 586, + "column": 10 + } + }, + "leadingComments": null + }, + "property": { + "type": "Identifier", + "start": 19899, + "end": 19910, + "loc": { + "start": { + "line": 586, + "column": 11 + }, + "end": { + "line": 586, + "column": 22 + }, + "identifierName": "initialized" + }, + "name": "initialized" + }, + "computed": false, + "leadingComments": null + }, + "right": { + "type": "BooleanLiteral", + "start": 19913, + "end": 19917, + "loc": { + "start": { + "line": 586, + "column": 25 + }, + "end": { + "line": 586, + "column": 29 + } + }, + "value": true + }, + "leadingComments": null + }, + "leadingComments": [ + { + "type": "CommentBlock", + "value": "*\r\n * Ensures that onInit is only called once per instantiation\r\n ", + "start": 19804, + "end": 19886, + "loc": { + "start": { + "line": 583, + "column": 6 + }, + "end": { + "line": 585, + "column": 9 + } + } + } + ], + "trailingComments": [ + { + "type": "CommentBlock", + "value": "*\r\n * Calling onInit\r\n ", + "start": 19928, + "end": 19967, + "loc": { + "start": { + "line": 588, + "column": 6 + }, + "end": { + "line": 590, + "column": 9 + } + } + } + ] + }, + { + "type": "ExpressionStatement", + "start": 19975, + "end": 19989, + "loc": { + "start": { + "line": 591, + "column": 6 + }, + "end": { + "line": 591, + "column": 20 + } + }, + "expression": { + "type": "CallExpression", + "start": 19975, + "end": 19988, + "loc": { + "start": { + "line": 591, + "column": 6 + }, + "end": { + "line": 591, + "column": 19 + } + }, + "callee": { + "type": "MemberExpression", + "start": 19975, + "end": 19986, + "loc": { + "start": { + "line": 591, + "column": 6 + }, + "end": { + "line": 591, + "column": 17 + } + }, + "object": { + "type": "ThisExpression", + "start": 19975, + "end": 19979, + "loc": { + "start": { + "line": 591, + "column": 6 + }, + "end": { + "line": 591, + "column": 10 + } + }, + "leadingComments": null + }, + "property": { + "type": "Identifier", + "start": 19980, + "end": 19986, + "loc": { + "start": { + "line": 591, + "column": 11 + }, + "end": { + "line": 591, + "column": 17 + }, + "identifierName": "onInit" + }, + "name": "onInit" + }, + "computed": false, + "leadingComments": null + }, + "arguments": [], + "leadingComments": null + }, + "leadingComments": [ + { + "type": "CommentBlock", + "value": "*\r\n * Calling onInit\r\n ", + "start": 19928, + "end": 19967, + "loc": { + "start": { + "line": 588, + "column": 6 + }, + "end": { + "line": 590, + "column": 9 + } + } + } + ] + } + ], + "directives": [] + }, + "alternate": null + } + ], + "directives": [] + } + }, + "leadingComments": [ + { + "type": "CommentBlock", + "value": "*\r\n * Renders rows and buttons as per options\r\n ", + "start": 15812, + "end": 15868, + "loc": { + "start": { + "line": 454, + "column": 2 + }, + "end": { + "line": 456, + "column": 5 + } + } + } + ] + } + ] + }, + "leadingComments": [ + { + "type": "CommentBlock", + "value": "*\r\n * Root class for simple-keyboard\r\n * This class:\r\n * - Parses the options\r\n * - Renders the rows and buttons\r\n * - Handles button functionality\r\n ", + "start": 211, + "end": 365, + "loc": { + "start": { + "line": 8, + "column": 0 + }, + "end": { + "line": 14, + "column": 3 + } + } + } + ], + "__PseudoExport__": false, + "trailingComments": [] + }, + "leadingComments": null + } + ], + "directives": [] + }, + "comments": [ + { + "type": "CommentLine", + "value": " Services", + "start": 28, + "end": 39, + "loc": { + "start": { + "line": 3, + "column": 0 + }, + "end": { + "line": 3, + "column": 11 + } + } + }, + { + "type": "CommentBlock", + "value": "*\r\n * Root class for simple-keyboard\r\n * This class:\r\n * - Parses the options\r\n * - Renders the rows and buttons\r\n * - Handles button functionality\r\n ", + "start": 211, + "end": 365, + "loc": { + "start": { + "line": 8, + "column": 0 + }, + "end": { + "line": 14, + "column": 3 + } + } + }, + { + "type": "CommentBlock", + "value": "*\r\n * Creates an instance of SimpleKeyboard\r\n * @param {Array} params If first parameter is a string, it is considered the container class. The second parameter is then considered the options object. If first parameter is an object, it is considered the options object.\r\n ", + "start": 393, + "end": 675, + "loc": { + "start": { + "line": 16, + "column": 2 + }, + "end": { + "line": 19, + "column": 5 + } + } + }, + { + "type": "CommentBlock", + "value": "*\r\n * Initializing Utilities\r\n ", + "start": 917, + "end": 960, + "loc": { + "start": { + "line": 27, + "column": 4 + }, + "end": { + "line": 29, + "column": 7 + } + } + }, + { + "type": "CommentBlock", + "value": "*\r\n * Processing options\r\n ", + "start": 1011, + "end": 1050, + "loc": { + "start": { + "line": 32, + "column": 4 + }, + "end": { + "line": 34, + "column": 7 + } + } + }, + { + "type": "CommentBlock", + "value": "*\r\n * @type {object}\r\n * @property {object} layout Modify the keyboard layout.\r\n * @property {string} layoutName Specifies which layout should be used.\r\n * @property {object} display Replaces variable buttons (such as {bksp}) with a human-friendly name (e.g.: “backspace”).\r\n * @property {boolean} mergeDisplay By default, when you set the display property, you replace the default one. This setting merges them instead.\r\n * @property {string} theme A prop to add your own css classes to the keyboard wrapper. You can add multiple classes separated by a space.\r\n * @property {Array} buttonTheme A prop to add your own css classes to one or several buttons.\r\n * @property {boolean} debug Runs a console.log every time a key is pressed. Displays the buttons pressed and the current input.\r\n * @property {boolean} newLineOnEnter Specifies whether clicking the “ENTER” button will input a newline (\\n) or not.\r\n * @property {boolean} tabCharOnTab Specifies whether clicking the “TAB” button will input a tab character (\\t) or not.\r\n * @property {string} inputName Allows you to use a single simple-keyboard instance for several inputs.\r\n * @property {number} maxLength Restrains all of simple-keyboard inputs to a certain length. This should be used in addition to the input element’s maxlengthattribute.\r\n * @property {object} maxLength Restrains simple-keyboard’s individual inputs to a certain length. This should be used in addition to the input element’s maxlengthattribute.\r\n * @property {boolean} syncInstanceInputs When set to true, this option synchronizes the internal input of every simple-keyboard instance.\r\n * @property {boolean} physicalKeyboardHighlight Enable highlighting of keys pressed on physical keyboard.\r\n * @property {string} physicalKeyboardHighlightTextColor Define the text color that the physical keyboard highlighted key should have.\r\n * @property {string} physicalKeyboardHighlightBgColor Define the background color that the physical keyboard highlighted key should have. \r\n * @property {function(button: string):string} onKeyPress Executes the callback function on key press. Returns button layout name (i.e.: “{shift}”).\r\n * @property {function(input: string):string} onChange Executes the callback function on input change. Returns the current input’s string.\r\n * @property {function} onRender Executes the callback function every time simple-keyboard is rendered (e.g: when you change layouts).\r\n * @property {function} onInit Executes the callback function once simple-keyboard is rendered for the first time (on initialization).\r\n * @property {function(inputs: object):object} onChangeAll Executes the callback function on input change. Returns the input object with all defined inputs.\r\n ", + "start": 1124, + "end": 3943, + "loc": { + "start": { + "line": 37, + "column": 4 + }, + "end": { + "line": 60, + "column": 7 + } + } + }, + { + "type": "CommentBlock", + "value": "*\r\n * simple-keyboard uses a non-persistent internal input to keep track of the entered string (the variable `keyboard.input`).\r\n * This removes any dependency to input DOM elements. You can type and directly display the value in a div element, for example.\r\n * @example\r\n * // To get entered input\r\n * let input = keyboard.getInput();\r\n * \r\n * // To clear entered input.\r\n * keyboard.clearInput();\r\n * \r\n * @type {object}\r\n * @property {object} default Default SimpleKeyboard internal input.\r\n * @property {object} myInputName Example input that can be set through `options.inputName:\"myInputName\"`.\r\n ", + "start": 4184, + "end": 4843, + "loc": { + "start": { + "line": 66, + "column": 4 + }, + "end": { + "line": 79, + "column": 7 + } + } + }, + { + "type": "CommentBlock", + "value": "*\r\n * @type {string} DOM class of the keyboard wrapper, normally \"simple-keyboard\" by default.\r\n ", + "start": 4919, + "end": 5028, + "loc": { + "start": { + "line": 83, + "column": 4 + }, + "end": { + "line": 85, + "column": 7 + } + } + }, + { + "type": "CommentBlock", + "value": "*\r\n * @type {object} Contains the DOM elements of every rendered button, the key being the button's layout name (e.g.: \"{enter}\").\r\n ", + "start": 5103, + "end": 5248, + "loc": { + "start": { + "line": 88, + "column": 4 + }, + "end": { + "line": 90, + "column": 7 + } + } + }, + { + "type": "CommentBlock", + "value": "*\r\n * Rendering keyboard\r\n ", + "start": 5287, + "end": 5326, + "loc": { + "start": { + "line": 93, + "column": 4 + }, + "end": { + "line": 95, + "column": 7 + } + } + }, + { + "type": "CommentBlock", + "value": "*\r\n * Saving instance\r\n * This enables multiple simple-keyboard support with easier management\r\n ", + "start": 5519, + "end": 5632, + "loc": { + "start": { + "line": 103, + "column": 4 + }, + "end": { + "line": 106, + "column": 7 + } + } + }, + { + "type": "CommentBlock", + "value": "*\r\n * Physical Keyboard support\r\n ", + "start": 5835, + "end": 5881, + "loc": { + "start": { + "line": 112, + "column": 4 + }, + "end": { + "line": 114, + "column": 7 + } + } + }, + { + "type": "CommentBlock", + "value": "*\r\n * Handles clicks made to keyboard buttons\r\n * @param {string} button The button's layout name.\r\n ", + "start": 5956, + "end": 6068, + "loc": { + "start": { + "line": 117, + "column": 2 + }, + "end": { + "line": 120, + "column": 5 + } + } + }, + { + "type": "CommentBlock", + "value": "*\r\n * Ignoring placeholder buttons\r\n ", + "start": 6152, + "end": 6201, + "loc": { + "start": { + "line": 124, + "column": 4 + }, + "end": { + "line": 126, + "column": 7 + } + } + }, + { + "type": "CommentBlock", + "value": "*\r\n * Calling onKeyPress\r\n ", + "start": 6257, + "end": 6296, + "loc": { + "start": { + "line": 130, + "column": 4 + }, + "end": { + "line": 132, + "column": 7 + } + } + }, + { + "type": "CommentBlock", + "value": "*\r\n * If maxLength and handleMaxLength yield true, halting\r\n ", + "start": 6700, + "end": 6777, + "loc": { + "start": { + "line": 143, + "column": 6 + }, + "end": { + "line": 145, + "column": 9 + } + } + }, + { + "type": "CommentBlock", + "value": "*\r\n * Enforce syncInstanceInputs, if set\r\n ", + "start": 7059, + "end": 7118, + "loc": { + "start": { + "line": 155, + "column": 6 + }, + "end": { + "line": 157, + "column": 9 + } + } + }, + { + "type": "CommentBlock", + "value": "*\r\n * Calling onChange\r\n ", + "start": 7217, + "end": 7258, + "loc": { + "start": { + "line": 161, + "column": 6 + }, + "end": { + "line": 163, + "column": 9 + } + } + }, + { + "type": "CommentBlock", + "value": "*\r\n * Send a command to all simple-keyboard instances (if you have several instances).\r\n ", + "start": 7472, + "end": 7569, + "loc": { + "start": { + "line": 173, + "column": 2 + }, + "end": { + "line": 175, + "column": 5 + } + } + }, + { + "type": "CommentBlock", + "value": "*\r\n * Clear the keyboard’s input.\r\n * @param {string} [inputName] optional - the internal input to select\r\n ", + "start": 7700, + "end": 7819, + "loc": { + "start": { + "line": 182, + "column": 2 + }, + "end": { + "line": 185, + "column": 5 + } + } + }, + { + "type": "CommentBlock", + "value": "*\r\n * Enforce syncInstanceInputs, if set\r\n ", + "start": 7960, + "end": 8015, + "loc": { + "start": { + "line": 190, + "column": 4 + }, + "end": { + "line": 192, + "column": 7 + } + } + }, + { + "type": "CommentBlock", + "value": "*\r\n * Get the keyboard’s input (You can also get it from the onChange prop).\r\n * @param {string} [inputName] optional - the internal input to select\r\n ", + "start": 8111, + "end": 8273, + "loc": { + "start": { + "line": 197, + "column": 2 + }, + "end": { + "line": 200, + "column": 5 + } + } + }, + { + "type": "CommentBlock", + "value": "*\r\n * Enforce syncInstanceInputs, if set\r\n ", + "start": 8366, + "end": 8421, + "loc": { + "start": { + "line": 204, + "column": 4 + }, + "end": { + "line": 206, + "column": 7 + } + } + }, + { + "type": "CommentBlock", + "value": "*\r\n * Set the keyboard’s input.\r\n * @param {string} input the input value\r\n * @param {string} inputName optional - the internal input to select\r\n ", + "start": 8567, + "end": 8727, + "loc": { + "start": { + "line": 213, + "column": 2 + }, + "end": { + "line": 217, + "column": 5 + } + } + }, + { + "type": "CommentBlock", + "value": "*\r\n * Enforce syncInstanceInputs, if set\r\n ", + "start": 8863, + "end": 8918, + "loc": { + "start": { + "line": 222, + "column": 4 + }, + "end": { + "line": 224, + "column": 7 + } + } + }, + { + "type": "CommentBlock", + "value": "*\r\n * Replace the input object (`keyboard.input`)\r\n * @param {object} inputObj The input object\r\n ", + "start": 9016, + "end": 9125, + "loc": { + "start": { + "line": 229, + "column": 2 + }, + "end": { + "line": 232, + "column": 5 + } + } + }, + { + "type": "CommentBlock", + "value": "*\r\n * Set new option or modify existing ones after initialization. \r\n * @param {object} option The option to set\r\n ", + "start": 9198, + "end": 9324, + "loc": { + "start": { + "line": 237, + "column": 2 + }, + "end": { + "line": 240, + "column": 5 + } + } + }, + { + "type": "CommentBlock", + "value": "*\r\n * Remove all keyboard rows and reset keyboard values.\r\n * Used interally between re-renders.\r\n ", + "start": 9468, + "end": 9577, + "loc": { + "start": { + "line": 247, + "column": 2 + }, + "end": { + "line": 250, + "column": 5 + } + } + }, + { + "type": "CommentBlock", + "value": "*\r\n * Send a command to all simple-keyboard instances at once (if you have multiple instances).\r\n * @param {function(instance: object, key: string)} callback Function to run on every instance\r\n ", + "start": 9733, + "end": 9938, + "loc": { + "start": { + "line": 257, + "column": 2 + }, + "end": { + "line": 260, + "column": 5 + } + } + }, + { + "type": "CommentBlock", + "value": "*\r\n * Adds/Modifies an entry to the `buttonTheme`. Basically a way to add a class to a button.\r\n * @param {string} buttons List of buttons to select (separated by a space).\r\n * @param {string} className Classes to give to the selected buttons (separated by space).\r\n ", + "start": 10323, + "end": 10604, + "loc": { + "start": { + "line": 272, + "column": 2 + }, + "end": { + "line": 276, + "column": 5 + } + } + }, + { + "type": "CommentBlock", + "value": "*\r\n * If class is already defined, we add button to class definition\r\n ", + "start": 10938, + "end": 11029, + "loc": { + "start": { + "line": 288, + "column": 8 + }, + "end": { + "line": 290, + "column": 11 + } + } + }, + { + "type": "CommentBlock", + "value": "*\r\n * If class is not defined, we create a new entry\r\n ", + "start": 11559, + "end": 11634, + "loc": { + "start": { + "line": 306, + "column": 8 + }, + "end": { + "line": 308, + "column": 11 + } + } + }, + { + "type": "CommentBlock", + "value": "*\r\n * Removes/Amends an entry to the `buttonTheme`. Basically a way to remove a class previously added to a button through buttonTheme or addButtonTheme.\r\n * @param {string} buttons List of buttons to select (separated by a space).\r\n * @param {string} className Classes to give to the selected buttons (separated by space).\r\n ", + "start": 11853, + "end": 12193, + "loc": { + "start": { + "line": 322, + "column": 2 + }, + "end": { + "line": 326, + "column": 5 + } + } + }, + { + "type": "CommentBlock", + "value": "*\r\n * When called with empty parameters, remove all button themes\r\n ", + "start": 12248, + "end": 12328, + "loc": { + "start": { + "line": 328, + "column": 4 + }, + "end": { + "line": 330, + "column": 7 + } + } + }, + { + "type": "CommentBlock", + "value": "*\r\n * If buttons are passed and buttonTheme has items\r\n ", + "start": 12457, + "end": 12525, + "loc": { + "start": { + "line": 337, + "column": 4 + }, + "end": { + "line": 339, + "column": 7 + } + } + }, + { + "type": "CommentBlock", + "value": "*\r\n * If className is set, we affect the buttons only for that class\r\n * Otherwise, we afect all classes\r\n ", + "start": 12790, + "end": 12931, + "loc": { + "start": { + "line": 345, + "column": 10 + }, + "end": { + "line": 348, + "column": 13 + } + } + }, + { + "type": "CommentBlock", + "value": "*\r\n * If buttons left, return them, otherwise, remove button Theme\r\n ", + "start": 13172, + "end": 13269, + "loc": { + "start": { + "line": 355, + "column": 12 + }, + "end": { + "line": 357, + "column": 15 + } + } + }, + { + "type": "CommentBlock", + "value": "*\r\n * Get the DOM Element of a button. If there are several buttons with the same name, an array of the DOM Elements is returned.\r\n * @param {string} button The button layout name to select\r\n ", + "start": 13627, + "end": 13830, + "loc": { + "start": { + "line": 375, + "column": 2 + }, + "end": { + "line": 378, + "column": 5 + } + } + }, + { + "type": "CommentBlock", + "value": "*\r\n * Retrieves the current cursor position within a input or textarea (if any)\r\n ", + "start": 14114, + "end": 14204, + "loc": { + "start": { + "line": 394, + "column": 2 + }, + "end": { + "line": 396, + "column": 5 + } + } + }, + { + "type": "CommentBlock", + "value": "*\r\n * Called by {@link handleCaret} when an event that warrants a cursor position update is triggered\r\n ", + "start": 14524, + "end": 14636, + "loc": { + "start": { + "line": 407, + "column": 2 + }, + "end": { + "line": 409, + "column": 5 + } + } + }, + { + "type": "CommentBlock", + "value": "*\r\n * Tracks current cursor position\r\n * As keys are pressed, text will be added/removed at that position within the input.\r\n ", + "start": 14832, + "end": 14980, + "loc": { + "start": { + "line": 417, + "column": 6 + }, + "end": { + "line": 420, + "column": 9 + } + } + }, + { + "type": "CommentBlock", + "value": "*\r\n * Executes the callback function once simple-keyboard is rendered for the first time (on initialization).\r\n ", + "start": 15203, + "end": 15323, + "loc": { + "start": { + "line": 429, + "column": 2 + }, + "end": { + "line": 431, + "column": 5 + } + } + }, + { + "type": "CommentBlock", + "value": "*\r\n * Caret handling\r\n ", + "start": 15422, + "end": 15457, + "loc": { + "start": { + "line": 437, + "column": 4 + }, + "end": { + "line": 439, + "column": 7 + } + } + }, + { + "type": "CommentBlock", + "value": "*\r\n * Executes the callback function every time simple-keyboard is rendered (e.g: when you change layouts).\r\n ", + "start": 15576, + "end": 15694, + "loc": { + "start": { + "line": 446, + "column": 2 + }, + "end": { + "line": 448, + "column": 5 + } + } + }, + { + "type": "CommentBlock", + "value": "*\r\n * Renders rows and buttons as per options\r\n ", + "start": 15812, + "end": 15868, + "loc": { + "start": { + "line": 454, + "column": 2 + }, + "end": { + "line": 456, + "column": 5 + } + } + }, + { + "type": "CommentBlock", + "value": "*\r\n * Clear keyboard\r\n ", + "start": 15894, + "end": 15929, + "loc": { + "start": { + "line": 458, + "column": 4 + }, + "end": { + "line": 460, + "column": 7 + } + } + }, + { + "type": "CommentBlock", + "value": "*\r\n * Account for buttonTheme, if set\r\n ", + "start": 16140, + "end": 16192, + "loc": { + "start": { + "line": 466, + "column": 4 + }, + "end": { + "line": 468, + "column": 7 + } + } + }, + { + "type": "CommentLine", + "value": " If the button has already been added", + "start": 16699, + "end": 16738, + "loc": { + "start": { + "line": 483, + "column": 14 + }, + "end": { + "line": 483, + "column": 53 + } + } + }, + { + "type": "CommentLine", + "value": " Making sure we don't add duplicate classes, even when buttonTheme has duplicates", + "start": 16788, + "end": 16871, + "loc": { + "start": { + "line": 485, + "column": 16 + }, + "end": { + "line": 485, + "column": 99 + } + } + }, + { + "type": "CommentBlock", + "value": "*\r\n * Adding themeClass, layoutClass to keyboardDOM\r\n ", + "start": 17379, + "end": 17445, + "loc": { + "start": { + "line": 500, + "column": 4 + }, + "end": { + "line": 502, + "column": 7 + } + } + }, + { + "type": "CommentBlock", + "value": "*\r\n * Iterating through each row\r\n ", + "start": 17529, + "end": 17576, + "loc": { + "start": { + "line": 505, + "column": 4 + }, + "end": { + "line": 507, + "column": 7 + } + } + }, + { + "type": "CommentBlock", + "value": "*\r\n * Creating empty row\r\n ", + "start": 17688, + "end": 17731, + "loc": { + "start": { + "line": 511, + "column": 6 + }, + "end": { + "line": 513, + "column": 9 + } + } + }, + { + "type": "CommentBlock", + "value": "*\r\n * Iterating through each button in row\r\n ", + "start": 17829, + "end": 17890, + "loc": { + "start": { + "line": 517, + "column": 6 + }, + "end": { + "line": 519, + "column": 9 + } + } + }, + { + "type": "CommentBlock", + "value": "*\r\n * Creating button\r\n ", + "start": 18201, + "end": 18245, + "loc": { + "start": { + "line": 525, + "column": 8 + }, + "end": { + "line": 527, + "column": 11 + } + } + }, + { + "type": "CommentBlock", + "value": "*\r\n * Adding identifier\r\n ", + "start": 18489, + "end": 18535, + "loc": { + "start": { + "line": 532, + "column": 8 + }, + "end": { + "line": 534, + "column": 11 + } + } + }, + { + "type": "CommentBlock", + "value": "*\r\n * Adding unique id\r\n * Since there's no limit on spawning same buttons, the unique id ensures you can style every button\r\n ", + "start": 18602, + "end": 18757, + "loc": { + "start": { + "line": 537, + "column": 8 + }, + "end": { + "line": 540, + "column": 11 + } + } + }, + { + "type": "CommentBlock", + "value": "*\r\n * Adding display label\r\n ", + "start": 18906, + "end": 18955, + "loc": { + "start": { + "line": 544, + "column": 8 + }, + "end": { + "line": 546, + "column": 11 + } + } + }, + { + "type": "CommentBlock", + "value": "*\r\n * Adding button label to button\r\n ", + "start": 19040, + "end": 19098, + "loc": { + "start": { + "line": 549, + "column": 8 + }, + "end": { + "line": 551, + "column": 11 + } + } + }, + { + "type": "CommentBlock", + "value": "*\r\n * Adding to buttonElements\r\n ", + "start": 19272, + "end": 19325, + "loc": { + "start": { + "line": 556, + "column": 8 + }, + "end": { + "line": 558, + "column": 11 + } + } + }, + { + "type": "CommentBlock", + "value": "*\r\n * Appending button to row\r\n ", + "start": 19480, + "end": 19532, + "loc": { + "start": { + "line": 564, + "column": 8 + }, + "end": { + "line": 566, + "column": 11 + } + } + }, + { + "type": "CommentBlock", + "value": "*\r\n * Appending row to keyboard\r\n ", + "start": 19595, + "end": 19645, + "loc": { + "start": { + "line": 571, + "column": 6 + }, + "end": { + "line": 573, + "column": 9 + } + } + }, + { + "type": "CommentBlock", + "value": "*\r\n * Calling onRender\r\n ", + "start": 19707, + "end": 19744, + "loc": { + "start": { + "line": 577, + "column": 4 + }, + "end": { + "line": 579, + "column": 7 + } + } + }, + { + "type": "CommentBlock", + "value": "*\r\n * Ensures that onInit is only called once per instantiation\r\n ", + "start": 19804, + "end": 19886, + "loc": { + "start": { + "line": 583, + "column": 6 + }, + "end": { + "line": 585, + "column": 9 + } + } + }, + { + "type": "CommentBlock", + "value": "*\r\n * Calling onInit\r\n ", + "start": 19928, + "end": 19967, + "loc": { + "start": { + "line": 588, + "column": 6 + }, + "end": { + "line": 590, + "column": 9 + } + } + } + ], + "tokens": [ + { + "type": { + "label": "import", + "keyword": "import", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "import", + "start": 0, + "end": 6, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 1, + "column": 6 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "./Keyboard.css", + "start": 7, + "end": 23, + "loc": { + "start": { + "line": 1, + "column": 7 + }, + "end": { + "line": 1, + "column": 23 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 23, + "end": 24, + "loc": { + "start": { + "line": 1, + "column": 23 + }, + "end": { + "line": 1, + "column": 24 + } + } + }, + { + "type": "CommentLine", + "value": " Services", + "start": 28, + "end": 39, + "loc": { + "start": { + "line": 3, + "column": 0 + }, + "end": { + "line": 3, + "column": 11 + } + } + }, + { + "type": { + "label": "import", + "keyword": "import", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "import", + "start": 41, + "end": 47, + "loc": { + "start": { + "line": 4, + "column": 0 + }, + "end": { + "line": 4, + "column": 6 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "PhysicalKeyboard", + "start": 48, + "end": 64, + "loc": { + "start": { + "line": 4, + "column": 7 + }, + "end": { + "line": 4, + "column": 23 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "from", + "start": 65, + "end": 69, + "loc": { + "start": { + "line": 4, + "column": 24 + }, + "end": { + "line": 4, + "column": 28 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "../services/PhysicalKeyboard", + "start": 70, + "end": 100, + "loc": { + "start": { + "line": 4, + "column": 29 + }, + "end": { + "line": 4, + "column": 59 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 100, + "end": 101, + "loc": { + "start": { + "line": 4, + "column": 59 + }, + "end": { + "line": 4, + "column": 60 + } + } + }, + { + "type": { + "label": "import", + "keyword": "import", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "import", + "start": 103, + "end": 109, + "loc": { + "start": { + "line": 5, + "column": 0 + }, + "end": { + "line": 5, + "column": 6 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "KeyboardLayout", + "start": 110, + "end": 124, + "loc": { + "start": { + "line": 5, + "column": 7 + }, + "end": { + "line": 5, + "column": 21 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "from", + "start": 125, + "end": 129, + "loc": { + "start": { + "line": 5, + "column": 22 + }, + "end": { + "line": 5, + "column": 26 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "../services/KeyboardLayout", + "start": 130, + "end": 158, + "loc": { + "start": { + "line": 5, + "column": 27 + }, + "end": { + "line": 5, + "column": 55 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 158, + "end": 159, + "loc": { + "start": { + "line": 5, + "column": 55 + }, + "end": { + "line": 5, + "column": 56 + } + } + }, + { + "type": { + "label": "import", + "keyword": "import", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "import", + "start": 161, + "end": 167, + "loc": { + "start": { + "line": 6, + "column": 0 + }, + "end": { + "line": 6, + "column": 6 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "Utilities", + "start": 168, + "end": 177, + "loc": { + "start": { + "line": 6, + "column": 7 + }, + "end": { + "line": 6, + "column": 16 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "from", + "start": 178, + "end": 182, + "loc": { + "start": { + "line": 6, + "column": 17 + }, + "end": { + "line": 6, + "column": 21 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "../services/Utilities", + "start": 183, + "end": 206, + "loc": { + "start": { + "line": 6, + "column": 22 + }, + "end": { + "line": 6, + "column": 45 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 206, + "end": 207, + "loc": { + "start": { + "line": 6, + "column": 45 + }, + "end": { + "line": 6, + "column": 46 + } + } + }, + { + "type": "CommentBlock", + "value": "*\r\n * Root class for simple-keyboard\r\n * This class:\r\n * - Parses the options\r\n * - Renders the rows and buttons\r\n * - Handles button functionality\r\n ", + "start": 211, + "end": 365, + "loc": { + "start": { + "line": 8, + "column": 0 + }, + "end": { + "line": 14, + "column": 3 + } + } + }, + { + "type": { + "label": "class", + "keyword": "class", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "class", + "start": 367, + "end": 372, + "loc": { + "start": { + "line": 15, + "column": 0 + }, + "end": { + "line": 15, + "column": 5 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "SimpleKeyboard", + "start": 373, + "end": 387, + "loc": { + "start": { + "line": 15, + "column": 6 + }, + "end": { + "line": 15, + "column": 20 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 388, + "end": 389, + "loc": { + "start": { + "line": 15, + "column": 21 + }, + "end": { + "line": 15, + "column": 22 + } + } + }, + { + "type": "CommentBlock", + "value": "*\r\n * Creates an instance of SimpleKeyboard\r\n * @param {Array} params If first parameter is a string, it is considered the container class. The second parameter is then considered the options object. If first parameter is an object, it is considered the options object.\r\n ", + "start": 393, + "end": 675, + "loc": { + "start": { + "line": 16, + "column": 2 + }, + "end": { + "line": 19, + "column": 5 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "constructor", + "start": 679, + "end": 690, + "loc": { + "start": { + "line": 20, + "column": 2 + }, + "end": { + "line": 20, + "column": 13 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 690, + "end": 691, + "loc": { + "start": { + "line": 20, + "column": 13 + }, + "end": { + "line": 20, + "column": 14 + } + } + }, + { + "type": { + "label": "...", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 691, + "end": 694, + "loc": { + "start": { + "line": 20, + "column": 14 + }, + "end": { + "line": 20, + "column": 17 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "params", + "start": 694, + "end": 700, + "loc": { + "start": { + "line": 20, + "column": 17 + }, + "end": { + "line": 20, + "column": 23 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 700, + "end": 701, + "loc": { + "start": { + "line": 20, + "column": 23 + }, + "end": { + "line": 20, + "column": 24 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 701, + "end": 702, + "loc": { + "start": { + "line": 20, + "column": 24 + }, + "end": { + "line": 20, + "column": 25 + } + } + }, + { + "type": { + "label": "let", + "keyword": "let", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "let", + "start": 708, + "end": 711, + "loc": { + "start": { + "line": 21, + "column": 4 + }, + "end": { + "line": 21, + "column": 7 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "keyboardDOMQuery", + "start": 712, + "end": 728, + "loc": { + "start": { + "line": 21, + "column": 8 + }, + "end": { + "line": 21, + "column": 24 + } + } + }, + { + "type": { + "label": "=", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": true, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "=", + "start": 729, + "end": 730, + "loc": { + "start": { + "line": 21, + "column": 25 + }, + "end": { + "line": 21, + "column": 26 + } + } + }, + { + "type": { + "label": "typeof", + "keyword": "typeof", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": true, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "typeof", + "start": 731, + "end": 737, + "loc": { + "start": { + "line": 21, + "column": 27 + }, + "end": { + "line": 21, + "column": 33 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "params", + "start": 738, + "end": 744, + "loc": { + "start": { + "line": 21, + "column": 34 + }, + "end": { + "line": 21, + "column": 40 + } + } + }, + { + "type": { + "label": "[", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 744, + "end": 745, + "loc": { + "start": { + "line": 21, + "column": 40 + }, + "end": { + "line": 21, + "column": 41 + } + } + }, + { + "type": { + "label": "num", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": 0, + "start": 745, + "end": 746, + "loc": { + "start": { + "line": 21, + "column": 41 + }, + "end": { + "line": 21, + "column": 42 + } + } + }, + { + "type": { + "label": "]", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 746, + "end": 747, + "loc": { + "start": { + "line": 21, + "column": 42 + }, + "end": { + "line": 21, + "column": 43 + } + } + }, + { + "type": { + "label": "==/!=", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": 6, + "updateContext": null + }, + "value": "===", + "start": 748, + "end": 751, + "loc": { + "start": { + "line": 21, + "column": 44 + }, + "end": { + "line": 21, + "column": 47 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "string", + "start": 752, + "end": 760, + "loc": { + "start": { + "line": 21, + "column": 48 + }, + "end": { + "line": 21, + "column": 56 + } + } + }, + { + "type": { + "label": "?", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 761, + "end": 762, + "loc": { + "start": { + "line": 21, + "column": 57 + }, + "end": { + "line": 21, + "column": 58 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "params", + "start": 763, + "end": 769, + "loc": { + "start": { + "line": 21, + "column": 59 + }, + "end": { + "line": 21, + "column": 65 + } + } + }, + { + "type": { + "label": "[", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 769, + "end": 770, + "loc": { + "start": { + "line": 21, + "column": 65 + }, + "end": { + "line": 21, + "column": 66 + } + } + }, + { + "type": { + "label": "num", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": 0, + "start": 770, + "end": 771, + "loc": { + "start": { + "line": 21, + "column": 66 + }, + "end": { + "line": 21, + "column": 67 + } + } + }, + { + "type": { + "label": "]", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 771, + "end": 772, + "loc": { + "start": { + "line": 21, + "column": 67 + }, + "end": { + "line": 21, + "column": 68 + } + } + }, + { + "type": { + "label": ":", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 773, + "end": 774, + "loc": { + "start": { + "line": 21, + "column": 69 + }, + "end": { + "line": 21, + "column": 70 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": ".simple-keyboard", + "start": 775, + "end": 793, + "loc": { + "start": { + "line": 21, + "column": 71 + }, + "end": { + "line": 21, + "column": 89 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 793, + "end": 794, + "loc": { + "start": { + "line": 21, + "column": 89 + }, + "end": { + "line": 21, + "column": 90 + } + } + }, + { + "type": { + "label": "let", + "keyword": "let", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "let", + "start": 800, + "end": 803, + "loc": { + "start": { + "line": 22, + "column": 4 + }, + "end": { + "line": 22, + "column": 7 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "options", + "start": 804, + "end": 811, + "loc": { + "start": { + "line": 22, + "column": 8 + }, + "end": { + "line": 22, + "column": 15 + } + } + }, + { + "type": { + "label": "=", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": true, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "=", + "start": 812, + "end": 813, + "loc": { + "start": { + "line": 22, + "column": 16 + }, + "end": { + "line": 22, + "column": 17 + } + } + }, + { + "type": { + "label": "typeof", + "keyword": "typeof", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": true, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "typeof", + "start": 814, + "end": 820, + "loc": { + "start": { + "line": 22, + "column": 18 + }, + "end": { + "line": 22, + "column": 24 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "params", + "start": 821, + "end": 827, + "loc": { + "start": { + "line": 22, + "column": 25 + }, + "end": { + "line": 22, + "column": 31 + } + } + }, + { + "type": { + "label": "[", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 827, + "end": 828, + "loc": { + "start": { + "line": 22, + "column": 31 + }, + "end": { + "line": 22, + "column": 32 + } + } + }, + { + "type": { + "label": "num", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": 0, + "start": 828, + "end": 829, + "loc": { + "start": { + "line": 22, + "column": 32 + }, + "end": { + "line": 22, + "column": 33 + } + } + }, + { + "type": { + "label": "]", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 829, + "end": 830, + "loc": { + "start": { + "line": 22, + "column": 33 + }, + "end": { + "line": 22, + "column": 34 + } + } + }, + { + "type": { + "label": "==/!=", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": 6, + "updateContext": null + }, + "value": "===", + "start": 831, + "end": 834, + "loc": { + "start": { + "line": 22, + "column": 35 + }, + "end": { + "line": 22, + "column": 38 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "object", + "start": 835, + "end": 843, + "loc": { + "start": { + "line": 22, + "column": 39 + }, + "end": { + "line": 22, + "column": 47 + } + } + }, + { + "type": { + "label": "?", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 844, + "end": 845, + "loc": { + "start": { + "line": 22, + "column": 48 + }, + "end": { + "line": 22, + "column": 49 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "params", + "start": 846, + "end": 852, + "loc": { + "start": { + "line": 22, + "column": 50 + }, + "end": { + "line": 22, + "column": 56 + } + } + }, + { + "type": { + "label": "[", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 852, + "end": 853, + "loc": { + "start": { + "line": 22, + "column": 56 + }, + "end": { + "line": 22, + "column": 57 + } + } + }, + { + "type": { + "label": "num", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": 0, + "start": 853, + "end": 854, + "loc": { + "start": { + "line": 22, + "column": 57 + }, + "end": { + "line": 22, + "column": 58 + } + } + }, + { + "type": { + "label": "]", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 854, + "end": 855, + "loc": { + "start": { + "line": 22, + "column": 58 + }, + "end": { + "line": 22, + "column": 59 + } + } + }, + { + "type": { + "label": ":", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 856, + "end": 857, + "loc": { + "start": { + "line": 22, + "column": 60 + }, + "end": { + "line": 22, + "column": 61 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "params", + "start": 858, + "end": 864, + "loc": { + "start": { + "line": 22, + "column": 62 + }, + "end": { + "line": 22, + "column": 68 + } + } + }, + { + "type": { + "label": "[", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 864, + "end": 865, + "loc": { + "start": { + "line": 22, + "column": 68 + }, + "end": { + "line": 22, + "column": 69 + } + } + }, + { + "type": { + "label": "num", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": 1, + "start": 865, + "end": 866, + "loc": { + "start": { + "line": 22, + "column": 69 + }, + "end": { + "line": 22, + "column": 70 + } + } + }, + { + "type": { + "label": "]", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 866, + "end": 867, + "loc": { + "start": { + "line": 22, + "column": 70 + }, + "end": { + "line": 22, + "column": 71 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 867, + "end": 868, + "loc": { + "start": { + "line": 22, + "column": 71 + }, + "end": { + "line": 22, + "column": 72 + } + } + }, + { + "type": { + "label": "if", + "keyword": "if", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "if", + "start": 876, + "end": 878, + "loc": { + "start": { + "line": 24, + "column": 4 + }, + "end": { + "line": 24, + "column": 6 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 878, + "end": 879, + "loc": { + "start": { + "line": 24, + "column": 6 + }, + "end": { + "line": 24, + "column": 7 + } + } + }, + { + "type": { + "label": "prefix", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": true, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "!", + "start": 879, + "end": 880, + "loc": { + "start": { + "line": 24, + "column": 7 + }, + "end": { + "line": 24, + "column": 8 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "options", + "start": 880, + "end": 887, + "loc": { + "start": { + "line": 24, + "column": 8 + }, + "end": { + "line": 24, + "column": 15 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 887, + "end": 888, + "loc": { + "start": { + "line": 24, + "column": 15 + }, + "end": { + "line": 24, + "column": 16 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "options", + "start": 896, + "end": 903, + "loc": { + "start": { + "line": 25, + "column": 6 + }, + "end": { + "line": 25, + "column": 13 + } + } + }, + { + "type": { + "label": "=", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": true, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "=", + "start": 904, + "end": 905, + "loc": { + "start": { + "line": 25, + "column": 14 + }, + "end": { + "line": 25, + "column": 15 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 906, + "end": 907, + "loc": { + "start": { + "line": 25, + "column": 16 + }, + "end": { + "line": 25, + "column": 17 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 907, + "end": 908, + "loc": { + "start": { + "line": 25, + "column": 17 + }, + "end": { + "line": 25, + "column": 18 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 908, + "end": 909, + "loc": { + "start": { + "line": 25, + "column": 18 + }, + "end": { + "line": 25, + "column": 19 + } + } + }, + { + "type": "CommentBlock", + "value": "*\r\n * Initializing Utilities\r\n ", + "start": 917, + "end": 960, + "loc": { + "start": { + "line": 27, + "column": 4 + }, + "end": { + "line": 29, + "column": 7 + } + } + }, + { + "type": { + "label": "this", + "keyword": "this", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "this", + "start": 966, + "end": 970, + "loc": { + "start": { + "line": 30, + "column": 4 + }, + "end": { + "line": 30, + "column": 8 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 970, + "end": 971, + "loc": { + "start": { + "line": 30, + "column": 8 + }, + "end": { + "line": 30, + "column": 9 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "utilities", + "start": 971, + "end": 980, + "loc": { + "start": { + "line": 30, + "column": 9 + }, + "end": { + "line": 30, + "column": 18 + } + } + }, + { + "type": { + "label": "=", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": true, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "=", + "start": 981, + "end": 982, + "loc": { + "start": { + "line": 30, + "column": 19 + }, + "end": { + "line": 30, + "column": 20 + } + } + }, + { + "type": { + "label": "new", + "keyword": "new", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "new", + "start": 983, + "end": 986, + "loc": { + "start": { + "line": 30, + "column": 21 + }, + "end": { + "line": 30, + "column": 24 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "Utilities", + "start": 987, + "end": 996, + "loc": { + "start": { + "line": 30, + "column": 25 + }, + "end": { + "line": 30, + "column": 34 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 996, + "end": 997, + "loc": { + "start": { + "line": 30, + "column": 34 + }, + "end": { + "line": 30, + "column": 35 + } + } + }, + { + "type": { + "label": "this", + "keyword": "this", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "this", + "start": 997, + "end": 1001, + "loc": { + "start": { + "line": 30, + "column": 35 + }, + "end": { + "line": 30, + "column": 39 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 1001, + "end": 1002, + "loc": { + "start": { + "line": 30, + "column": 39 + }, + "end": { + "line": 30, + "column": 40 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1002, + "end": 1003, + "loc": { + "start": { + "line": 30, + "column": 40 + }, + "end": { + "line": 30, + "column": 41 + } + } + }, + { + "type": "CommentBlock", + "value": "*\r\n * Processing options\r\n ", + "start": 1011, + "end": 1050, + "loc": { + "start": { + "line": 32, + "column": 4 + }, + "end": { + "line": 34, + "column": 7 + } + } + }, + { + "type": { + "label": "this", + "keyword": "this", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "this", + "start": 1056, + "end": 1060, + "loc": { + "start": { + "line": 35, + "column": 4 + }, + "end": { + "line": 35, + "column": 8 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1060, + "end": 1061, + "loc": { + "start": { + "line": 35, + "column": 8 + }, + "end": { + "line": 35, + "column": 9 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "keyboardDOM", + "start": 1061, + "end": 1072, + "loc": { + "start": { + "line": 35, + "column": 9 + }, + "end": { + "line": 35, + "column": 20 + } + } + }, + { + "type": { + "label": "=", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": true, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "=", + "start": 1073, + "end": 1074, + "loc": { + "start": { + "line": 35, + "column": 21 + }, + "end": { + "line": 35, + "column": 22 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "document", + "start": 1075, + "end": 1083, + "loc": { + "start": { + "line": 35, + "column": 23 + }, + "end": { + "line": 35, + "column": 31 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1083, + "end": 1084, + "loc": { + "start": { + "line": 35, + "column": 31 + }, + "end": { + "line": 35, + "column": 32 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "querySelector", + "start": 1084, + "end": 1097, + "loc": { + "start": { + "line": 35, + "column": 32 + }, + "end": { + "line": 35, + "column": 45 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 1097, + "end": 1098, + "loc": { + "start": { + "line": 35, + "column": 45 + }, + "end": { + "line": 35, + "column": 46 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "keyboardDOMQuery", + "start": 1098, + "end": 1114, + "loc": { + "start": { + "line": 35, + "column": 46 + }, + "end": { + "line": 35, + "column": 62 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 1114, + "end": 1115, + "loc": { + "start": { + "line": 35, + "column": 62 + }, + "end": { + "line": 35, + "column": 63 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1115, + "end": 1116, + "loc": { + "start": { + "line": 35, + "column": 63 + }, + "end": { + "line": 35, + "column": 64 + } + } + }, + { + "type": "CommentBlock", + "value": "*\r\n * @type {object}\r\n * @property {object} layout Modify the keyboard layout.\r\n * @property {string} layoutName Specifies which layout should be used.\r\n * @property {object} display Replaces variable buttons (such as {bksp}) with a human-friendly name (e.g.: “backspace”).\r\n * @property {boolean} mergeDisplay By default, when you set the display property, you replace the default one. This setting merges them instead.\r\n * @property {string} theme A prop to add your own css classes to the keyboard wrapper. You can add multiple classes separated by a space.\r\n * @property {Array} buttonTheme A prop to add your own css classes to one or several buttons.\r\n * @property {boolean} debug Runs a console.log every time a key is pressed. Displays the buttons pressed and the current input.\r\n * @property {boolean} newLineOnEnter Specifies whether clicking the “ENTER” button will input a newline (\\n) or not.\r\n * @property {boolean} tabCharOnTab Specifies whether clicking the “TAB” button will input a tab character (\\t) or not.\r\n * @property {string} inputName Allows you to use a single simple-keyboard instance for several inputs.\r\n * @property {number} maxLength Restrains all of simple-keyboard inputs to a certain length. This should be used in addition to the input element’s maxlengthattribute.\r\n * @property {object} maxLength Restrains simple-keyboard’s individual inputs to a certain length. This should be used in addition to the input element’s maxlengthattribute.\r\n * @property {boolean} syncInstanceInputs When set to true, this option synchronizes the internal input of every simple-keyboard instance.\r\n * @property {boolean} physicalKeyboardHighlight Enable highlighting of keys pressed on physical keyboard.\r\n * @property {string} physicalKeyboardHighlightTextColor Define the text color that the physical keyboard highlighted key should have.\r\n * @property {string} physicalKeyboardHighlightBgColor Define the background color that the physical keyboard highlighted key should have. \r\n * @property {function(button: string):string} onKeyPress Executes the callback function on key press. Returns button layout name (i.e.: “{shift}”).\r\n * @property {function(input: string):string} onChange Executes the callback function on input change. Returns the current input’s string.\r\n * @property {function} onRender Executes the callback function every time simple-keyboard is rendered (e.g: when you change layouts).\r\n * @property {function} onInit Executes the callback function once simple-keyboard is rendered for the first time (on initialization).\r\n * @property {function(inputs: object):object} onChangeAll Executes the callback function on input change. Returns the input object with all defined inputs.\r\n ", + "start": 1124, + "end": 3943, + "loc": { + "start": { + "line": 37, + "column": 4 + }, + "end": { + "line": 60, + "column": 7 + } + } + }, + { + "type": { + "label": "this", + "keyword": "this", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "this", + "start": 3949, + "end": 3953, + "loc": { + "start": { + "line": 61, + "column": 4 + }, + "end": { + "line": 61, + "column": 8 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 3953, + "end": 3954, + "loc": { + "start": { + "line": 61, + "column": 8 + }, + "end": { + "line": 61, + "column": 9 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "options", + "start": 3954, + "end": 3961, + "loc": { + "start": { + "line": 61, + "column": 9 + }, + "end": { + "line": 61, + "column": 16 + } + } + }, + { + "type": { + "label": "=", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": true, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "=", + "start": 3962, + "end": 3963, + "loc": { + "start": { + "line": 61, + "column": 17 + }, + "end": { + "line": 61, + "column": 18 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "options", + "start": 3964, + "end": 3971, + "loc": { + "start": { + "line": 61, + "column": 19 + }, + "end": { + "line": 61, + "column": 26 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 3971, + "end": 3972, + "loc": { + "start": { + "line": 61, + "column": 26 + }, + "end": { + "line": 61, + "column": 27 + } + } + }, + { + "type": { + "label": "this", + "keyword": "this", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "this", + "start": 3978, + "end": 3982, + "loc": { + "start": { + "line": 62, + "column": 4 + }, + "end": { + "line": 62, + "column": 8 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 3982, + "end": 3983, + "loc": { + "start": { + "line": 62, + "column": 8 + }, + "end": { + "line": 62, + "column": 9 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "options", + "start": 3983, + "end": 3990, + "loc": { + "start": { + "line": 62, + "column": 9 + }, + "end": { + "line": 62, + "column": 16 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 3990, + "end": 3991, + "loc": { + "start": { + "line": 62, + "column": 16 + }, + "end": { + "line": 62, + "column": 17 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "layoutName", + "start": 3991, + "end": 4001, + "loc": { + "start": { + "line": 62, + "column": 17 + }, + "end": { + "line": 62, + "column": 27 + } + } + }, + { + "type": { + "label": "=", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": true, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "=", + "start": 4002, + "end": 4003, + "loc": { + "start": { + "line": 62, + "column": 28 + }, + "end": { + "line": 62, + "column": 29 + } + } + }, + { + "type": { + "label": "this", + "keyword": "this", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "this", + "start": 4004, + "end": 4008, + "loc": { + "start": { + "line": 62, + "column": 30 + }, + "end": { + "line": 62, + "column": 34 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 4008, + "end": 4009, + "loc": { + "start": { + "line": 62, + "column": 34 + }, + "end": { + "line": 62, + "column": 35 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "options", + "start": 4009, + "end": 4016, + "loc": { + "start": { + "line": 62, + "column": 35 + }, + "end": { + "line": 62, + "column": 42 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 4016, + "end": 4017, + "loc": { + "start": { + "line": 62, + "column": 42 + }, + "end": { + "line": 62, + "column": 43 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "layoutName", + "start": 4017, + "end": 4027, + "loc": { + "start": { + "line": 62, + "column": 43 + }, + "end": { + "line": 62, + "column": 53 + } + } + }, + { + "type": { + "label": "||", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": 1, + "updateContext": null + }, + "value": "||", + "start": 4028, + "end": 4030, + "loc": { + "start": { + "line": 62, + "column": 54 + }, + "end": { + "line": 62, + "column": 56 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "default", + "start": 4031, + "end": 4040, + "loc": { + "start": { + "line": 62, + "column": 57 + }, + "end": { + "line": 62, + "column": 66 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 4040, + "end": 4041, + "loc": { + "start": { + "line": 62, + "column": 66 + }, + "end": { + "line": 62, + "column": 67 + } + } + }, + { + "type": { + "label": "this", + "keyword": "this", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "this", + "start": 4047, + "end": 4051, + "loc": { + "start": { + "line": 63, + "column": 4 + }, + "end": { + "line": 63, + "column": 8 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 4051, + "end": 4052, + "loc": { + "start": { + "line": 63, + "column": 8 + }, + "end": { + "line": 63, + "column": 9 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "options", + "start": 4052, + "end": 4059, + "loc": { + "start": { + "line": 63, + "column": 9 + }, + "end": { + "line": 63, + "column": 16 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 4059, + "end": 4060, + "loc": { + "start": { + "line": 63, + "column": 16 + }, + "end": { + "line": 63, + "column": 17 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "theme", + "start": 4060, + "end": 4065, + "loc": { + "start": { + "line": 63, + "column": 17 + }, + "end": { + "line": 63, + "column": 22 + } + } + }, + { + "type": { + "label": "=", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": true, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "=", + "start": 4066, + "end": 4067, + "loc": { + "start": { + "line": 63, + "column": 23 + }, + "end": { + "line": 63, + "column": 24 + } + } + }, + { + "type": { + "label": "this", + "keyword": "this", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "this", + "start": 4068, + "end": 4072, + "loc": { + "start": { + "line": 63, + "column": 25 + }, + "end": { + "line": 63, + "column": 29 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 4072, + "end": 4073, + "loc": { + "start": { + "line": 63, + "column": 29 + }, + "end": { + "line": 63, + "column": 30 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "options", + "start": 4073, + "end": 4080, + "loc": { + "start": { + "line": 63, + "column": 30 + }, + "end": { + "line": 63, + "column": 37 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 4080, + "end": 4081, + "loc": { + "start": { + "line": 63, + "column": 37 + }, + "end": { + "line": 63, + "column": 38 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "theme", + "start": 4081, + "end": 4086, + "loc": { + "start": { + "line": 63, + "column": 38 + }, + "end": { + "line": 63, + "column": 43 + } + } + }, + { + "type": { + "label": "||", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": 1, + "updateContext": null + }, + "value": "||", + "start": 4087, + "end": 4089, + "loc": { + "start": { + "line": 63, + "column": 44 + }, + "end": { + "line": 63, + "column": 46 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "hg-theme-default", + "start": 4090, + "end": 4108, + "loc": { + "start": { + "line": 63, + "column": 47 + }, + "end": { + "line": 63, + "column": 65 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 4108, + "end": 4109, + "loc": { + "start": { + "line": 63, + "column": 65 + }, + "end": { + "line": 63, + "column": 66 + } + } + }, + { + "type": { + "label": "this", + "keyword": "this", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "this", + "start": 4115, + "end": 4119, + "loc": { + "start": { + "line": 64, + "column": 4 + }, + "end": { + "line": 64, + "column": 8 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 4119, + "end": 4120, + "loc": { + "start": { + "line": 64, + "column": 8 + }, + "end": { + "line": 64, + "column": 9 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "options", + "start": 4120, + "end": 4127, + "loc": { + "start": { + "line": 64, + "column": 9 + }, + "end": { + "line": 64, + "column": 16 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 4127, + "end": 4128, + "loc": { + "start": { + "line": 64, + "column": 16 + }, + "end": { + "line": 64, + "column": 17 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "inputName", + "start": 4128, + "end": 4137, + "loc": { + "start": { + "line": 64, + "column": 17 + }, + "end": { + "line": 64, + "column": 26 + } + } + }, + { + "type": { + "label": "=", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": true, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "=", + "start": 4138, + "end": 4139, + "loc": { + "start": { + "line": 64, + "column": 27 + }, + "end": { + "line": 64, + "column": 28 + } + } + }, + { + "type": { + "label": "this", + "keyword": "this", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "this", + "start": 4140, + "end": 4144, + "loc": { + "start": { + "line": 64, + "column": 29 + }, + "end": { + "line": 64, + "column": 33 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 4144, + "end": 4145, + "loc": { + "start": { + "line": 64, + "column": 33 + }, + "end": { + "line": 64, + "column": 34 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "options", + "start": 4145, + "end": 4152, + "loc": { + "start": { + "line": 64, + "column": 34 + }, + "end": { + "line": 64, + "column": 41 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 4152, + "end": 4153, + "loc": { + "start": { + "line": 64, + "column": 41 + }, + "end": { + "line": 64, + "column": 42 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "inputName", + "start": 4153, + "end": 4162, + "loc": { + "start": { + "line": 64, + "column": 42 + }, + "end": { + "line": 64, + "column": 51 + } + } + }, + { + "type": { + "label": "||", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": 1, + "updateContext": null + }, + "value": "||", + "start": 4163, + "end": 4165, + "loc": { + "start": { + "line": 64, + "column": 52 + }, + "end": { + "line": 64, + "column": 54 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "default", + "start": 4166, + "end": 4175, + "loc": { + "start": { + "line": 64, + "column": 55 + }, + "end": { + "line": 64, + "column": 64 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 4175, + "end": 4176, + "loc": { + "start": { + "line": 64, + "column": 64 + }, + "end": { + "line": 64, + "column": 65 + } + } + }, + { + "type": "CommentBlock", + "value": "*\r\n * simple-keyboard uses a non-persistent internal input to keep track of the entered string (the variable `keyboard.input`).\r\n * This removes any dependency to input DOM elements. You can type and directly display the value in a div element, for example.\r\n * @example\r\n * // To get entered input\r\n * let input = keyboard.getInput();\r\n * \r\n * // To clear entered input.\r\n * keyboard.clearInput();\r\n * \r\n * @type {object}\r\n * @property {object} default Default SimpleKeyboard internal input.\r\n * @property {object} myInputName Example input that can be set through `options.inputName:\"myInputName\"`.\r\n ", + "start": 4184, + "end": 4843, + "loc": { + "start": { + "line": 66, + "column": 4 + }, + "end": { + "line": 79, + "column": 7 + } + } + }, + { + "type": { + "label": "this", + "keyword": "this", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "this", + "start": 4849, + "end": 4853, + "loc": { + "start": { + "line": 80, + "column": 4 + }, + "end": { + "line": 80, + "column": 8 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 4853, + "end": 4854, + "loc": { + "start": { + "line": 80, + "column": 8 + }, + "end": { + "line": 80, + "column": 9 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "input", + "start": 4854, + "end": 4859, + "loc": { + "start": { + "line": 80, + "column": 9 + }, + "end": { + "line": 80, + "column": 14 + } + } + }, + { + "type": { + "label": "=", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": true, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "=", + "start": 4860, + "end": 4861, + "loc": { + "start": { + "line": 80, + "column": 15 + }, + "end": { + "line": 80, + "column": 16 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 4862, + "end": 4863, + "loc": { + "start": { + "line": 80, + "column": 17 + }, + "end": { + "line": 80, + "column": 18 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 4863, + "end": 4864, + "loc": { + "start": { + "line": 80, + "column": 18 + }, + "end": { + "line": 80, + "column": 19 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 4864, + "end": 4865, + "loc": { + "start": { + "line": 80, + "column": 19 + }, + "end": { + "line": 80, + "column": 20 + } + } + }, + { + "type": { + "label": "this", + "keyword": "this", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "this", + "start": 4871, + "end": 4875, + "loc": { + "start": { + "line": 81, + "column": 4 + }, + "end": { + "line": 81, + "column": 8 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 4875, + "end": 4876, + "loc": { + "start": { + "line": 81, + "column": 8 + }, + "end": { + "line": 81, + "column": 9 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "input", + "start": 4876, + "end": 4881, + "loc": { + "start": { + "line": 81, + "column": 9 + }, + "end": { + "line": 81, + "column": 14 + } + } + }, + { + "type": { + "label": "[", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 4881, + "end": 4882, + "loc": { + "start": { + "line": 81, + "column": 14 + }, + "end": { + "line": 81, + "column": 15 + } + } + }, + { + "type": { + "label": "this", + "keyword": "this", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "this", + "start": 4882, + "end": 4886, + "loc": { + "start": { + "line": 81, + "column": 15 + }, + "end": { + "line": 81, + "column": 19 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 4886, + "end": 4887, + "loc": { + "start": { + "line": 81, + "column": 19 + }, + "end": { + "line": 81, + "column": 20 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "options", + "start": 4887, + "end": 4894, + "loc": { + "start": { + "line": 81, + "column": 20 + }, + "end": { + "line": 81, + "column": 27 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 4894, + "end": 4895, + "loc": { + "start": { + "line": 81, + "column": 27 + }, + "end": { + "line": 81, + "column": 28 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "inputName", + "start": 4895, + "end": 4904, + "loc": { + "start": { + "line": 81, + "column": 28 + }, + "end": { + "line": 81, + "column": 37 + } + } + }, + { + "type": { + "label": "]", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 4904, + "end": 4905, + "loc": { + "start": { + "line": 81, + "column": 37 + }, + "end": { + "line": 81, + "column": 38 + } + } + }, + { + "type": { + "label": "=", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": true, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "=", + "start": 4906, + "end": 4907, + "loc": { + "start": { + "line": 81, + "column": 39 + }, + "end": { + "line": 81, + "column": 40 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "", + "start": 4908, + "end": 4910, + "loc": { + "start": { + "line": 81, + "column": 41 + }, + "end": { + "line": 81, + "column": 43 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 4910, + "end": 4911, + "loc": { + "start": { + "line": 81, + "column": 43 + }, + "end": { + "line": 81, + "column": 44 + } + } + }, + { + "type": "CommentBlock", + "value": "*\r\n * @type {string} DOM class of the keyboard wrapper, normally \"simple-keyboard\" by default.\r\n ", + "start": 4919, + "end": 5028, + "loc": { + "start": { + "line": 83, + "column": 4 + }, + "end": { + "line": 85, + "column": 7 + } + } + }, + { + "type": { + "label": "this", + "keyword": "this", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "this", + "start": 5034, + "end": 5038, + "loc": { + "start": { + "line": 86, + "column": 4 + }, + "end": { + "line": 86, + "column": 8 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 5038, + "end": 5039, + "loc": { + "start": { + "line": 86, + "column": 8 + }, + "end": { + "line": 86, + "column": 9 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "keyboardDOMClass", + "start": 5039, + "end": 5055, + "loc": { + "start": { + "line": 86, + "column": 9 + }, + "end": { + "line": 86, + "column": 25 + } + } + }, + { + "type": { + "label": "=", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": true, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "=", + "start": 5056, + "end": 5057, + "loc": { + "start": { + "line": 86, + "column": 26 + }, + "end": { + "line": 86, + "column": 27 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "keyboardDOMQuery", + "start": 5058, + "end": 5074, + "loc": { + "start": { + "line": 86, + "column": 28 + }, + "end": { + "line": 86, + "column": 44 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 5074, + "end": 5075, + "loc": { + "start": { + "line": 86, + "column": 44 + }, + "end": { + "line": 86, + "column": 45 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "split", + "start": 5075, + "end": 5080, + "loc": { + "start": { + "line": 86, + "column": 45 + }, + "end": { + "line": 86, + "column": 50 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 5080, + "end": 5081, + "loc": { + "start": { + "line": 86, + "column": 50 + }, + "end": { + "line": 86, + "column": 51 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": ".", + "start": 5081, + "end": 5084, + "loc": { + "start": { + "line": 86, + "column": 51 + }, + "end": { + "line": 86, + "column": 54 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 5084, + "end": 5085, + "loc": { + "start": { + "line": 86, + "column": 54 + }, + "end": { + "line": 86, + "column": 55 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 5085, + "end": 5086, + "loc": { + "start": { + "line": 86, + "column": 55 + }, + "end": { + "line": 86, + "column": 56 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "join", + "start": 5086, + "end": 5090, + "loc": { + "start": { + "line": 86, + "column": 56 + }, + "end": { + "line": 86, + "column": 60 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 5090, + "end": 5091, + "loc": { + "start": { + "line": 86, + "column": 60 + }, + "end": { + "line": 86, + "column": 61 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "", + "start": 5091, + "end": 5093, + "loc": { + "start": { + "line": 86, + "column": 61 + }, + "end": { + "line": 86, + "column": 63 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 5093, + "end": 5094, + "loc": { + "start": { + "line": 86, + "column": 63 + }, + "end": { + "line": 86, + "column": 64 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 5094, + "end": 5095, + "loc": { + "start": { + "line": 86, + "column": 64 + }, + "end": { + "line": 86, + "column": 65 + } + } + }, + { + "type": "CommentBlock", + "value": "*\r\n * @type {object} Contains the DOM elements of every rendered button, the key being the button's layout name (e.g.: \"{enter}\").\r\n ", + "start": 5103, + "end": 5248, + "loc": { + "start": { + "line": 88, + "column": 4 + }, + "end": { + "line": 90, + "column": 7 + } + } + }, + { + "type": { + "label": "this", + "keyword": "this", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "this", + "start": 5254, + "end": 5258, + "loc": { + "start": { + "line": 91, + "column": 4 + }, + "end": { + "line": 91, + "column": 8 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 5258, + "end": 5259, + "loc": { + "start": { + "line": 91, + "column": 8 + }, + "end": { + "line": 91, + "column": 9 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "buttonElements", + "start": 5259, + "end": 5273, + "loc": { + "start": { + "line": 91, + "column": 9 + }, + "end": { + "line": 91, + "column": 23 + } + } + }, + { + "type": { + "label": "=", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": true, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "=", + "start": 5274, + "end": 5275, + "loc": { + "start": { + "line": 91, + "column": 24 + }, + "end": { + "line": 91, + "column": 25 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 5276, + "end": 5277, + "loc": { + "start": { + "line": 91, + "column": 26 + }, + "end": { + "line": 91, + "column": 27 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 5277, + "end": 5278, + "loc": { + "start": { + "line": 91, + "column": 27 + }, + "end": { + "line": 91, + "column": 28 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 5278, + "end": 5279, + "loc": { + "start": { + "line": 91, + "column": 28 + }, + "end": { + "line": 91, + "column": 29 + } + } + }, + { + "type": "CommentBlock", + "value": "*\r\n * Rendering keyboard\r\n ", + "start": 5287, + "end": 5326, + "loc": { + "start": { + "line": 93, + "column": 4 + }, + "end": { + "line": 95, + "column": 7 + } + } + }, + { + "type": { + "label": "if", + "keyword": "if", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "if", + "start": 5332, + "end": 5334, + "loc": { + "start": { + "line": 96, + "column": 4 + }, + "end": { + "line": 96, + "column": 6 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 5334, + "end": 5335, + "loc": { + "start": { + "line": 96, + "column": 6 + }, + "end": { + "line": 96, + "column": 7 + } + } + }, + { + "type": { + "label": "this", + "keyword": "this", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "this", + "start": 5335, + "end": 5339, + "loc": { + "start": { + "line": 96, + "column": 7 + }, + "end": { + "line": 96, + "column": 11 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 5339, + "end": 5340, + "loc": { + "start": { + "line": 96, + "column": 11 + }, + "end": { + "line": 96, + "column": 12 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "keyboardDOM", + "start": 5340, + "end": 5351, + "loc": { + "start": { + "line": 96, + "column": 12 + }, + "end": { + "line": 96, + "column": 23 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 5351, + "end": 5352, + "loc": { + "start": { + "line": 96, + "column": 23 + }, + "end": { + "line": 96, + "column": 24 + } + } + }, + { + "type": { + "label": "this", + "keyword": "this", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "this", + "start": 5360, + "end": 5364, + "loc": { + "start": { + "line": 97, + "column": 6 + }, + "end": { + "line": 97, + "column": 10 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 5364, + "end": 5365, + "loc": { + "start": { + "line": 97, + "column": 10 + }, + "end": { + "line": 97, + "column": 11 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "render", + "start": 5365, + "end": 5371, + "loc": { + "start": { + "line": 97, + "column": 11 + }, + "end": { + "line": 97, + "column": 17 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 5371, + "end": 5372, + "loc": { + "start": { + "line": 97, + "column": 17 + }, + "end": { + "line": 97, + "column": 18 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 5372, + "end": 5373, + "loc": { + "start": { + "line": 97, + "column": 18 + }, + "end": { + "line": 97, + "column": 19 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 5373, + "end": 5374, + "loc": { + "start": { + "line": 97, + "column": 19 + }, + "end": { + "line": 97, + "column": 20 + } + } + }, + { + "type": { + "label": "else", + "keyword": "else", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "else", + "start": 5380, + "end": 5384, + "loc": { + "start": { + "line": 98, + "column": 4 + }, + "end": { + "line": 98, + "column": 8 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 5385, + "end": 5386, + "loc": { + "start": { + "line": 98, + "column": 9 + }, + "end": { + "line": 98, + "column": 10 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "console", + "start": 5394, + "end": 5401, + "loc": { + "start": { + "line": 99, + "column": 6 + }, + "end": { + "line": 99, + "column": 13 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 5401, + "end": 5402, + "loc": { + "start": { + "line": 99, + "column": 13 + }, + "end": { + "line": 99, + "column": 14 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "warn", + "start": 5402, + "end": 5406, + "loc": { + "start": { + "line": 99, + "column": 14 + }, + "end": { + "line": 99, + "column": 18 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 5406, + "end": 5407, + "loc": { + "start": { + "line": 99, + "column": 18 + }, + "end": { + "line": 99, + "column": 19 + } + } + }, + { + "type": { + "label": "`", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 5407, + "end": 5408, + "loc": { + "start": { + "line": 99, + "column": 19 + }, + "end": { + "line": 99, + "column": 20 + } + } + }, + { + "type": { + "label": "template", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "\"", + "start": 5408, + "end": 5409, + "loc": { + "start": { + "line": 99, + "column": 20 + }, + "end": { + "line": 99, + "column": 21 + } + } + }, + { + "type": { + "label": "${", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 5409, + "end": 5411, + "loc": { + "start": { + "line": 99, + "column": 21 + }, + "end": { + "line": 99, + "column": 23 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "keyboardDOMQuery", + "start": 5411, + "end": 5427, + "loc": { + "start": { + "line": 99, + "column": 23 + }, + "end": { + "line": 99, + "column": 39 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 5427, + "end": 5428, + "loc": { + "start": { + "line": 99, + "column": 39 + }, + "end": { + "line": 99, + "column": 40 + } + } + }, + { + "type": { + "label": "template", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "\" was not found in the DOM.", + "start": 5428, + "end": 5455, + "loc": { + "start": { + "line": 99, + "column": 40 + }, + "end": { + "line": 99, + "column": 67 + } + } + }, + { + "type": { + "label": "`", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 5455, + "end": 5456, + "loc": { + "start": { + "line": 99, + "column": 67 + }, + "end": { + "line": 99, + "column": 68 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 5456, + "end": 5457, + "loc": { + "start": { + "line": 99, + "column": 68 + }, + "end": { + "line": 99, + "column": 69 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 5457, + "end": 5458, + "loc": { + "start": { + "line": 99, + "column": 69 + }, + "end": { + "line": 99, + "column": 70 + } + } + }, + { + "type": { + "label": "throw", + "keyword": "throw", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "throw", + "start": 5466, + "end": 5471, + "loc": { + "start": { + "line": 100, + "column": 6 + }, + "end": { + "line": 100, + "column": 11 + } + } + }, + { + "type": { + "label": "new", + "keyword": "new", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "new", + "start": 5472, + "end": 5475, + "loc": { + "start": { + "line": 100, + "column": 12 + }, + "end": { + "line": 100, + "column": 15 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "Error", + "start": 5476, + "end": 5481, + "loc": { + "start": { + "line": 100, + "column": 16 + }, + "end": { + "line": 100, + "column": 21 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 5481, + "end": 5482, + "loc": { + "start": { + "line": 100, + "column": 21 + }, + "end": { + "line": 100, + "column": 22 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "KEYBOARD_DOM_ERROR", + "start": 5482, + "end": 5502, + "loc": { + "start": { + "line": 100, + "column": 22 + }, + "end": { + "line": 100, + "column": 42 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 5502, + "end": 5503, + "loc": { + "start": { + "line": 100, + "column": 42 + }, + "end": { + "line": 100, + "column": 43 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 5503, + "end": 5504, + "loc": { + "start": { + "line": 100, + "column": 43 + }, + "end": { + "line": 100, + "column": 44 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 5510, + "end": 5511, + "loc": { + "start": { + "line": 101, + "column": 4 + }, + "end": { + "line": 101, + "column": 5 + } + } + }, + { + "type": "CommentBlock", + "value": "*\r\n * Saving instance\r\n * This enables multiple simple-keyboard support with easier management\r\n ", + "start": 5519, + "end": 5632, + "loc": { + "start": { + "line": 103, + "column": 4 + }, + "end": { + "line": 106, + "column": 7 + } + } + }, + { + "type": { + "label": "if", + "keyword": "if", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "if", + "start": 5638, + "end": 5640, + "loc": { + "start": { + "line": 107, + "column": 4 + }, + "end": { + "line": 107, + "column": 6 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 5640, + "end": 5641, + "loc": { + "start": { + "line": 107, + "column": 6 + }, + "end": { + "line": 107, + "column": 7 + } + } + }, + { + "type": { + "label": "prefix", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": true, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "!", + "start": 5641, + "end": 5642, + "loc": { + "start": { + "line": 107, + "column": 7 + }, + "end": { + "line": 107, + "column": 8 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "window", + "start": 5642, + "end": 5648, + "loc": { + "start": { + "line": 107, + "column": 8 + }, + "end": { + "line": 107, + "column": 14 + } + } + }, + { + "type": { + "label": "[", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 5648, + "end": 5649, + "loc": { + "start": { + "line": 107, + "column": 14 + }, + "end": { + "line": 107, + "column": 15 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "SimpleKeyboardInstances", + "start": 5649, + "end": 5674, + "loc": { + "start": { + "line": 107, + "column": 15 + }, + "end": { + "line": 107, + "column": 40 + } + } + }, + { + "type": { + "label": "]", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 5674, + "end": 5675, + "loc": { + "start": { + "line": 107, + "column": 40 + }, + "end": { + "line": 107, + "column": 41 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 5675, + "end": 5676, + "loc": { + "start": { + "line": 107, + "column": 41 + }, + "end": { + "line": 107, + "column": 42 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "window", + "start": 5684, + "end": 5690, + "loc": { + "start": { + "line": 108, + "column": 6 + }, + "end": { + "line": 108, + "column": 12 + } + } + }, + { + "type": { + "label": "[", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 5690, + "end": 5691, + "loc": { + "start": { + "line": 108, + "column": 12 + }, + "end": { + "line": 108, + "column": 13 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "SimpleKeyboardInstances", + "start": 5691, + "end": 5716, + "loc": { + "start": { + "line": 108, + "column": 13 + }, + "end": { + "line": 108, + "column": 38 + } + } + }, + { + "type": { + "label": "]", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 5716, + "end": 5717, + "loc": { + "start": { + "line": 108, + "column": 38 + }, + "end": { + "line": 108, + "column": 39 + } + } + }, + { + "type": { + "label": "=", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": true, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "=", + "start": 5718, + "end": 5719, + "loc": { + "start": { + "line": 108, + "column": 40 + }, + "end": { + "line": 108, + "column": 41 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 5720, + "end": 5721, + "loc": { + "start": { + "line": 108, + "column": 42 + }, + "end": { + "line": 108, + "column": 43 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 5721, + "end": 5722, + "loc": { + "start": { + "line": 108, + "column": 43 + }, + "end": { + "line": 108, + "column": 44 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 5722, + "end": 5723, + "loc": { + "start": { + "line": 108, + "column": 44 + }, + "end": { + "line": 108, + "column": 45 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "window", + "start": 5737, + "end": 5743, + "loc": { + "start": { + "line": 110, + "column": 4 + }, + "end": { + "line": 110, + "column": 10 + } + } + }, + { + "type": { + "label": "[", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 5743, + "end": 5744, + "loc": { + "start": { + "line": 110, + "column": 10 + }, + "end": { + "line": 110, + "column": 11 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "SimpleKeyboardInstances", + "start": 5744, + "end": 5769, + "loc": { + "start": { + "line": 110, + "column": 11 + }, + "end": { + "line": 110, + "column": 36 + } + } + }, + { + "type": { + "label": "]", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 5769, + "end": 5770, + "loc": { + "start": { + "line": 110, + "column": 36 + }, + "end": { + "line": 110, + "column": 37 + } + } + }, + { + "type": { + "label": "[", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 5770, + "end": 5771, + "loc": { + "start": { + "line": 110, + "column": 37 + }, + "end": { + "line": 110, + "column": 38 + } + } + }, + { + "type": { + "label": "this", + "keyword": "this", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "this", + "start": 5771, + "end": 5775, + "loc": { + "start": { + "line": 110, + "column": 38 + }, + "end": { + "line": 110, + "column": 42 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 5775, + "end": 5776, + "loc": { + "start": { + "line": 110, + "column": 42 + }, + "end": { + "line": 110, + "column": 43 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "utilities", + "start": 5776, + "end": 5785, + "loc": { + "start": { + "line": 110, + "column": 43 + }, + "end": { + "line": 110, + "column": 52 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 5785, + "end": 5786, + "loc": { + "start": { + "line": 110, + "column": 52 + }, + "end": { + "line": 110, + "column": 53 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "camelCase", + "start": 5786, + "end": 5795, + "loc": { + "start": { + "line": 110, + "column": 53 + }, + "end": { + "line": 110, + "column": 62 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 5795, + "end": 5796, + "loc": { + "start": { + "line": 110, + "column": 62 + }, + "end": { + "line": 110, + "column": 63 + } + } + }, + { + "type": { + "label": "this", + "keyword": "this", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "this", + "start": 5796, + "end": 5800, + "loc": { + "start": { + "line": 110, + "column": 63 + }, + "end": { + "line": 110, + "column": 67 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 5800, + "end": 5801, + "loc": { + "start": { + "line": 110, + "column": 67 + }, + "end": { + "line": 110, + "column": 68 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "keyboardDOMClass", + "start": 5801, + "end": 5817, + "loc": { + "start": { + "line": 110, + "column": 68 + }, + "end": { + "line": 110, + "column": 84 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 5817, + "end": 5818, + "loc": { + "start": { + "line": 110, + "column": 84 + }, + "end": { + "line": 110, + "column": 85 + } + } + }, + { + "type": { + "label": "]", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 5818, + "end": 5819, + "loc": { + "start": { + "line": 110, + "column": 85 + }, + "end": { + "line": 110, + "column": 86 + } + } + }, + { + "type": { + "label": "=", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": true, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "=", + "start": 5820, + "end": 5821, + "loc": { + "start": { + "line": 110, + "column": 87 + }, + "end": { + "line": 110, + "column": 88 + } + } + }, + { + "type": { + "label": "this", + "keyword": "this", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "this", + "start": 5822, + "end": 5826, + "loc": { + "start": { + "line": 110, + "column": 89 + }, + "end": { + "line": 110, + "column": 93 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 5826, + "end": 5827, + "loc": { + "start": { + "line": 110, + "column": 93 + }, + "end": { + "line": 110, + "column": 94 + } + } + }, + { + "type": "CommentBlock", + "value": "*\r\n * Physical Keyboard support\r\n ", + "start": 5835, + "end": 5881, + "loc": { + "start": { + "line": 112, + "column": 4 + }, + "end": { + "line": 114, + "column": 7 + } + } + }, + { + "type": { + "label": "this", + "keyword": "this", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "this", + "start": 5887, + "end": 5891, + "loc": { + "start": { + "line": 115, + "column": 4 + }, + "end": { + "line": 115, + "column": 8 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 5891, + "end": 5892, + "loc": { + "start": { + "line": 115, + "column": 8 + }, + "end": { + "line": 115, + "column": 9 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "physicalKeyboardInterface", + "start": 5892, + "end": 5917, + "loc": { + "start": { + "line": 115, + "column": 9 + }, + "end": { + "line": 115, + "column": 34 + } + } + }, + { + "type": { + "label": "=", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": true, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "=", + "start": 5918, + "end": 5919, + "loc": { + "start": { + "line": 115, + "column": 35 + }, + "end": { + "line": 115, + "column": 36 + } + } + }, + { + "type": { + "label": "new", + "keyword": "new", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "new", + "start": 5920, + "end": 5923, + "loc": { + "start": { + "line": 115, + "column": 37 + }, + "end": { + "line": 115, + "column": 40 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "PhysicalKeyboard", + "start": 5924, + "end": 5940, + "loc": { + "start": { + "line": 115, + "column": 41 + }, + "end": { + "line": 115, + "column": 57 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 5940, + "end": 5941, + "loc": { + "start": { + "line": 115, + "column": 57 + }, + "end": { + "line": 115, + "column": 58 + } + } + }, + { + "type": { + "label": "this", + "keyword": "this", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "this", + "start": 5941, + "end": 5945, + "loc": { + "start": { + "line": 115, + "column": 58 + }, + "end": { + "line": 115, + "column": 62 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 5945, + "end": 5946, + "loc": { + "start": { + "line": 115, + "column": 62 + }, + "end": { + "line": 115, + "column": 63 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 5946, + "end": 5947, + "loc": { + "start": { + "line": 115, + "column": 63 + }, + "end": { + "line": 115, + "column": 64 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 5951, + "end": 5952, + "loc": { + "start": { + "line": 116, + "column": 2 + }, + "end": { + "line": 116, + "column": 3 + } + } + }, + { + "type": "CommentBlock", + "value": "*\r\n * Handles clicks made to keyboard buttons\r\n * @param {string} button The button's layout name.\r\n ", + "start": 5956, + "end": 6068, + "loc": { + "start": { + "line": 117, + "column": 2 + }, + "end": { + "line": 120, + "column": 5 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "handleButtonClicked", + "start": 6072, + "end": 6091, + "loc": { + "start": { + "line": 121, + "column": 2 + }, + "end": { + "line": 121, + "column": 21 + } + } + }, + { + "type": { + "label": "=", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": true, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "=", + "start": 6092, + "end": 6093, + "loc": { + "start": { + "line": 121, + "column": 22 + }, + "end": { + "line": 121, + "column": 23 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 6094, + "end": 6095, + "loc": { + "start": { + "line": 121, + "column": 24 + }, + "end": { + "line": 121, + "column": 25 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "button", + "start": 6095, + "end": 6101, + "loc": { + "start": { + "line": 121, + "column": 25 + }, + "end": { + "line": 121, + "column": 31 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 6101, + "end": 6102, + "loc": { + "start": { + "line": 121, + "column": 31 + }, + "end": { + "line": 121, + "column": 32 + } + } + }, + { + "type": { + "label": "=>", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 6103, + "end": 6105, + "loc": { + "start": { + "line": 121, + "column": 33 + }, + "end": { + "line": 121, + "column": 35 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 6106, + "end": 6107, + "loc": { + "start": { + "line": 121, + "column": 36 + }, + "end": { + "line": 121, + "column": 37 + } + } + }, + { + "type": { + "label": "let", + "keyword": "let", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "let", + "start": 6113, + "end": 6116, + "loc": { + "start": { + "line": 122, + "column": 4 + }, + "end": { + "line": 122, + "column": 7 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "debug", + "start": 6117, + "end": 6122, + "loc": { + "start": { + "line": 122, + "column": 8 + }, + "end": { + "line": 122, + "column": 13 + } + } + }, + { + "type": { + "label": "=", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": true, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "=", + "start": 6123, + "end": 6124, + "loc": { + "start": { + "line": 122, + "column": 14 + }, + "end": { + "line": 122, + "column": 15 + } + } + }, + { + "type": { + "label": "this", + "keyword": "this", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "this", + "start": 6125, + "end": 6129, + "loc": { + "start": { + "line": 122, + "column": 16 + }, + "end": { + "line": 122, + "column": 20 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 6129, + "end": 6130, + "loc": { + "start": { + "line": 122, + "column": 20 + }, + "end": { + "line": 122, + "column": 21 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "options", + "start": 6130, + "end": 6137, + "loc": { + "start": { + "line": 122, + "column": 21 + }, + "end": { + "line": 122, + "column": 28 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 6137, + "end": 6138, + "loc": { + "start": { + "line": 122, + "column": 28 + }, + "end": { + "line": 122, + "column": 29 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "debug", + "start": 6138, + "end": 6143, + "loc": { + "start": { + "line": 122, + "column": 29 + }, + "end": { + "line": 122, + "column": 34 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 6143, + "end": 6144, + "loc": { + "start": { + "line": 122, + "column": 34 + }, + "end": { + "line": 122, + "column": 35 + } + } + }, + { + "type": "CommentBlock", + "value": "*\r\n * Ignoring placeholder buttons\r\n ", + "start": 6152, + "end": 6201, + "loc": { + "start": { + "line": 124, + "column": 4 + }, + "end": { + "line": 126, + "column": 7 + } + } + }, + { + "type": { + "label": "if", + "keyword": "if", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "if", + "start": 6207, + "end": 6209, + "loc": { + "start": { + "line": 127, + "column": 4 + }, + "end": { + "line": 127, + "column": 6 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 6209, + "end": 6210, + "loc": { + "start": { + "line": 127, + "column": 6 + }, + "end": { + "line": 127, + "column": 7 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "button", + "start": 6210, + "end": 6216, + "loc": { + "start": { + "line": 127, + "column": 7 + }, + "end": { + "line": 127, + "column": 13 + } + } + }, + { + "type": { + "label": "==/!=", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": 6, + "updateContext": null + }, + "value": "===", + "start": 6217, + "end": 6220, + "loc": { + "start": { + "line": 127, + "column": 14 + }, + "end": { + "line": 127, + "column": 17 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "{//}", + "start": 6221, + "end": 6227, + "loc": { + "start": { + "line": 127, + "column": 18 + }, + "end": { + "line": 127, + "column": 24 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 6227, + "end": 6228, + "loc": { + "start": { + "line": 127, + "column": 24 + }, + "end": { + "line": 127, + "column": 25 + } + } + }, + { + "type": { + "label": "return", + "keyword": "return", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "return", + "start": 6236, + "end": 6242, + "loc": { + "start": { + "line": 128, + "column": 6 + }, + "end": { + "line": 128, + "column": 12 + } + } + }, + { + "type": { + "label": "false", + "keyword": "false", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "false", + "start": 6243, + "end": 6248, + "loc": { + "start": { + "line": 128, + "column": 13 + }, + "end": { + "line": 128, + "column": 18 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 6248, + "end": 6249, + "loc": { + "start": { + "line": 128, + "column": 18 + }, + "end": { + "line": 128, + "column": 19 + } + } + }, + { + "type": "CommentBlock", + "value": "*\r\n * Calling onKeyPress\r\n ", + "start": 6257, + "end": 6296, + "loc": { + "start": { + "line": 130, + "column": 4 + }, + "end": { + "line": 132, + "column": 7 + } + } + }, + { + "type": { + "label": "if", + "keyword": "if", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "if", + "start": 6302, + "end": 6304, + "loc": { + "start": { + "line": 133, + "column": 4 + }, + "end": { + "line": 133, + "column": 6 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 6304, + "end": 6305, + "loc": { + "start": { + "line": 133, + "column": 6 + }, + "end": { + "line": 133, + "column": 7 + } + } + }, + { + "type": { + "label": "typeof", + "keyword": "typeof", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": true, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "typeof", + "start": 6305, + "end": 6311, + "loc": { + "start": { + "line": 133, + "column": 7 + }, + "end": { + "line": 133, + "column": 13 + } + } + }, + { + "type": { + "label": "this", + "keyword": "this", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "this", + "start": 6312, + "end": 6316, + "loc": { + "start": { + "line": 133, + "column": 14 + }, + "end": { + "line": 133, + "column": 18 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 6316, + "end": 6317, + "loc": { + "start": { + "line": 133, + "column": 18 + }, + "end": { + "line": 133, + "column": 19 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "options", + "start": 6317, + "end": 6324, + "loc": { + "start": { + "line": 133, + "column": 19 + }, + "end": { + "line": 133, + "column": 26 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 6324, + "end": 6325, + "loc": { + "start": { + "line": 133, + "column": 26 + }, + "end": { + "line": 133, + "column": 27 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "onKeyPress", + "start": 6325, + "end": 6335, + "loc": { + "start": { + "line": 133, + "column": 27 + }, + "end": { + "line": 133, + "column": 37 + } + } + }, + { + "type": { + "label": "==/!=", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": 6, + "updateContext": null + }, + "value": "===", + "start": 6336, + "end": 6339, + "loc": { + "start": { + "line": 133, + "column": 38 + }, + "end": { + "line": 133, + "column": 41 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "function", + "start": 6340, + "end": 6350, + "loc": { + "start": { + "line": 133, + "column": 42 + }, + "end": { + "line": 133, + "column": 52 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 6350, + "end": 6351, + "loc": { + "start": { + "line": 133, + "column": 52 + }, + "end": { + "line": 133, + "column": 53 + } + } + }, + { + "type": { + "label": "this", + "keyword": "this", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "this", + "start": 6359, + "end": 6363, + "loc": { + "start": { + "line": 134, + "column": 6 + }, + "end": { + "line": 134, + "column": 10 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 6363, + "end": 6364, + "loc": { + "start": { + "line": 134, + "column": 10 + }, + "end": { + "line": 134, + "column": 11 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "options", + "start": 6364, + "end": 6371, + "loc": { + "start": { + "line": 134, + "column": 11 + }, + "end": { + "line": 134, + "column": 18 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 6371, + "end": 6372, + "loc": { + "start": { + "line": 134, + "column": 18 + }, + "end": { + "line": 134, + "column": 19 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "onKeyPress", + "start": 6372, + "end": 6382, + "loc": { + "start": { + "line": 134, + "column": 19 + }, + "end": { + "line": 134, + "column": 29 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 6382, + "end": 6383, + "loc": { + "start": { + "line": 134, + "column": 29 + }, + "end": { + "line": 134, + "column": 30 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "button", + "start": 6383, + "end": 6389, + "loc": { + "start": { + "line": 134, + "column": 30 + }, + "end": { + "line": 134, + "column": 36 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 6389, + "end": 6390, + "loc": { + "start": { + "line": 134, + "column": 36 + }, + "end": { + "line": 134, + "column": 37 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 6390, + "end": 6391, + "loc": { + "start": { + "line": 134, + "column": 37 + }, + "end": { + "line": 134, + "column": 38 + } + } + }, + { + "type": { + "label": "if", + "keyword": "if", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "if", + "start": 6403, + "end": 6405, + "loc": { + "start": { + "line": 136, + "column": 4 + }, + "end": { + "line": 136, + "column": 6 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 6405, + "end": 6406, + "loc": { + "start": { + "line": 136, + "column": 6 + }, + "end": { + "line": 136, + "column": 7 + } + } + }, + { + "type": { + "label": "prefix", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": true, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "!", + "start": 6406, + "end": 6407, + "loc": { + "start": { + "line": 136, + "column": 7 + }, + "end": { + "line": 136, + "column": 8 + } + } + }, + { + "type": { + "label": "this", + "keyword": "this", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "this", + "start": 6407, + "end": 6411, + "loc": { + "start": { + "line": 136, + "column": 8 + }, + "end": { + "line": 136, + "column": 12 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 6411, + "end": 6412, + "loc": { + "start": { + "line": 136, + "column": 12 + }, + "end": { + "line": 136, + "column": 13 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "input", + "start": 6412, + "end": 6417, + "loc": { + "start": { + "line": 136, + "column": 13 + }, + "end": { + "line": 136, + "column": 18 + } + } + }, + { + "type": { + "label": "[", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 6417, + "end": 6418, + "loc": { + "start": { + "line": 136, + "column": 18 + }, + "end": { + "line": 136, + "column": 19 + } + } + }, + { + "type": { + "label": "this", + "keyword": "this", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "this", + "start": 6418, + "end": 6422, + "loc": { + "start": { + "line": 136, + "column": 19 + }, + "end": { + "line": 136, + "column": 23 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 6422, + "end": 6423, + "loc": { + "start": { + "line": 136, + "column": 23 + }, + "end": { + "line": 136, + "column": 24 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "options", + "start": 6423, + "end": 6430, + "loc": { + "start": { + "line": 136, + "column": 24 + }, + "end": { + "line": 136, + "column": 31 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 6430, + "end": 6431, + "loc": { + "start": { + "line": 136, + "column": 31 + }, + "end": { + "line": 136, + "column": 32 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "inputName", + "start": 6431, + "end": 6440, + "loc": { + "start": { + "line": 136, + "column": 32 + }, + "end": { + "line": 136, + "column": 41 + } + } + }, + { + "type": { + "label": "]", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 6440, + "end": 6441, + "loc": { + "start": { + "line": 136, + "column": 41 + }, + "end": { + "line": 136, + "column": 42 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 6441, + "end": 6442, + "loc": { + "start": { + "line": 136, + "column": 42 + }, + "end": { + "line": 136, + "column": 43 + } + } + }, + { + "type": { + "label": "this", + "keyword": "this", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "this", + "start": 6450, + "end": 6454, + "loc": { + "start": { + "line": 137, + "column": 6 + }, + "end": { + "line": 137, + "column": 10 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 6454, + "end": 6455, + "loc": { + "start": { + "line": 137, + "column": 10 + }, + "end": { + "line": 137, + "column": 11 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "input", + "start": 6455, + "end": 6460, + "loc": { + "start": { + "line": 137, + "column": 11 + }, + "end": { + "line": 137, + "column": 16 + } + } + }, + { + "type": { + "label": "[", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 6460, + "end": 6461, + "loc": { + "start": { + "line": 137, + "column": 16 + }, + "end": { + "line": 137, + "column": 17 + } + } + }, + { + "type": { + "label": "this", + "keyword": "this", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "this", + "start": 6461, + "end": 6465, + "loc": { + "start": { + "line": 137, + "column": 17 + }, + "end": { + "line": 137, + "column": 21 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 6465, + "end": 6466, + "loc": { + "start": { + "line": 137, + "column": 21 + }, + "end": { + "line": 137, + "column": 22 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "options", + "start": 6466, + "end": 6473, + "loc": { + "start": { + "line": 137, + "column": 22 + }, + "end": { + "line": 137, + "column": 29 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 6473, + "end": 6474, + "loc": { + "start": { + "line": 137, + "column": 29 + }, + "end": { + "line": 137, + "column": 30 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "inputName", + "start": 6474, + "end": 6483, + "loc": { + "start": { + "line": 137, + "column": 30 + }, + "end": { + "line": 137, + "column": 39 + } + } + }, + { + "type": { + "label": "]", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 6483, + "end": 6484, + "loc": { + "start": { + "line": 137, + "column": 39 + }, + "end": { + "line": 137, + "column": 40 + } + } + }, + { + "type": { + "label": "=", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": true, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "=", + "start": 6485, + "end": 6486, + "loc": { + "start": { + "line": 137, + "column": 41 + }, + "end": { + "line": 137, + "column": 42 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "", + "start": 6487, + "end": 6489, + "loc": { + "start": { + "line": 137, + "column": 43 + }, + "end": { + "line": 137, + "column": 45 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 6489, + "end": 6490, + "loc": { + "start": { + "line": 137, + "column": 45 + }, + "end": { + "line": 137, + "column": 46 + } + } + }, + { + "type": { + "label": "let", + "keyword": "let", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "let", + "start": 6498, + "end": 6501, + "loc": { + "start": { + "line": 139, + "column": 4 + }, + "end": { + "line": 139, + "column": 7 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "updatedInput", + "start": 6502, + "end": 6514, + "loc": { + "start": { + "line": 139, + "column": 8 + }, + "end": { + "line": 139, + "column": 20 + } + } + }, + { + "type": { + "label": "=", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": true, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "=", + "start": 6515, + "end": 6516, + "loc": { + "start": { + "line": 139, + "column": 21 + }, + "end": { + "line": 139, + "column": 22 + } + } + }, + { + "type": { + "label": "this", + "keyword": "this", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "this", + "start": 6517, + "end": 6521, + "loc": { + "start": { + "line": 139, + "column": 23 + }, + "end": { + "line": 139, + "column": 27 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 6521, + "end": 6522, + "loc": { + "start": { + "line": 139, + "column": 27 + }, + "end": { + "line": 139, + "column": 28 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "utilities", + "start": 6522, + "end": 6531, + "loc": { + "start": { + "line": 139, + "column": 28 + }, + "end": { + "line": 139, + "column": 37 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 6531, + "end": 6532, + "loc": { + "start": { + "line": 139, + "column": 37 + }, + "end": { + "line": 139, + "column": 38 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "getUpdatedInput", + "start": 6532, + "end": 6547, + "loc": { + "start": { + "line": 139, + "column": 38 + }, + "end": { + "line": 139, + "column": 53 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 6547, + "end": 6548, + "loc": { + "start": { + "line": 139, + "column": 53 + }, + "end": { + "line": 139, + "column": 54 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "button", + "start": 6548, + "end": 6554, + "loc": { + "start": { + "line": 139, + "column": 54 + }, + "end": { + "line": 139, + "column": 60 + } + } + }, + { + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 6554, + "end": 6555, + "loc": { + "start": { + "line": 139, + "column": 60 + }, + "end": { + "line": 139, + "column": 61 + } + } + }, + { + "type": { + "label": "this", + "keyword": "this", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "this", + "start": 6556, + "end": 6560, + "loc": { + "start": { + "line": 139, + "column": 62 + }, + "end": { + "line": 139, + "column": 66 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 6560, + "end": 6561, + "loc": { + "start": { + "line": 139, + "column": 66 + }, + "end": { + "line": 139, + "column": 67 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "input", + "start": 6561, + "end": 6566, + "loc": { + "start": { + "line": 139, + "column": 67 + }, + "end": { + "line": 139, + "column": 72 + } + } + }, + { + "type": { + "label": "[", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 6566, + "end": 6567, + "loc": { + "start": { + "line": 139, + "column": 72 + }, + "end": { + "line": 139, + "column": 73 + } + } + }, + { + "type": { + "label": "this", + "keyword": "this", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "this", + "start": 6567, + "end": 6571, + "loc": { + "start": { + "line": 139, + "column": 73 + }, + "end": { + "line": 139, + "column": 77 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 6571, + "end": 6572, + "loc": { + "start": { + "line": 139, + "column": 77 + }, + "end": { + "line": 139, + "column": 78 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "options", + "start": 6572, + "end": 6579, + "loc": { + "start": { + "line": 139, + "column": 78 + }, + "end": { + "line": 139, + "column": 85 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 6579, + "end": 6580, + "loc": { + "start": { + "line": 139, + "column": 85 + }, + "end": { + "line": 139, + "column": 86 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "inputName", + "start": 6580, + "end": 6589, + "loc": { + "start": { + "line": 139, + "column": 86 + }, + "end": { + "line": 139, + "column": 95 + } + } + }, + { + "type": { + "label": "]", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 6589, + "end": 6590, + "loc": { + "start": { + "line": 139, + "column": 95 + }, + "end": { + "line": 139, + "column": 96 + } + } + }, + { + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 6590, + "end": 6591, + "loc": { + "start": { + "line": 139, + "column": 96 + }, + "end": { + "line": 139, + "column": 97 + } + } + }, + { + "type": { + "label": "this", + "keyword": "this", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "this", + "start": 6592, + "end": 6596, + "loc": { + "start": { + "line": 139, + "column": 98 + }, + "end": { + "line": 139, + "column": 102 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 6596, + "end": 6597, + "loc": { + "start": { + "line": 139, + "column": 102 + }, + "end": { + "line": 139, + "column": 103 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "options", + "start": 6597, + "end": 6604, + "loc": { + "start": { + "line": 139, + "column": 103 + }, + "end": { + "line": 139, + "column": 110 + } + } + }, + { + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 6604, + "end": 6605, + "loc": { + "start": { + "line": 139, + "column": 110 + }, + "end": { + "line": 139, + "column": 111 + } + } + }, + { + "type": { + "label": "this", + "keyword": "this", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "this", + "start": 6606, + "end": 6610, + "loc": { + "start": { + "line": 139, + "column": 112 + }, + "end": { + "line": 139, + "column": 116 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 6610, + "end": 6611, + "loc": { + "start": { + "line": 139, + "column": 116 + }, + "end": { + "line": 139, + "column": 117 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "caretPosition", + "start": 6611, + "end": 6624, + "loc": { + "start": { + "line": 139, + "column": 117 + }, + "end": { + "line": 139, + "column": 130 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 6624, + "end": 6625, + "loc": { + "start": { + "line": 139, + "column": 130 + }, + "end": { + "line": 139, + "column": 131 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 6625, + "end": 6626, + "loc": { + "start": { + "line": 139, + "column": 131 + }, + "end": { + "line": 139, + "column": 132 + } + } + }, + { + "type": { + "label": "if", + "keyword": "if", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "if", + "start": 6634, + "end": 6636, + "loc": { + "start": { + "line": 141, + "column": 4 + }, + "end": { + "line": 141, + "column": 6 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 6636, + "end": 6637, + "loc": { + "start": { + "line": 141, + "column": 6 + }, + "end": { + "line": 141, + "column": 7 + } + } + }, + { + "type": { + "label": "this", + "keyword": "this", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "this", + "start": 6637, + "end": 6641, + "loc": { + "start": { + "line": 141, + "column": 7 + }, + "end": { + "line": 141, + "column": 11 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 6641, + "end": 6642, + "loc": { + "start": { + "line": 141, + "column": 11 + }, + "end": { + "line": 141, + "column": 12 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "input", + "start": 6642, + "end": 6647, + "loc": { + "start": { + "line": 141, + "column": 12 + }, + "end": { + "line": 141, + "column": 17 + } + } + }, + { + "type": { + "label": "[", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 6647, + "end": 6648, + "loc": { + "start": { + "line": 141, + "column": 17 + }, + "end": { + "line": 141, + "column": 18 + } + } + }, + { + "type": { + "label": "this", + "keyword": "this", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "this", + "start": 6648, + "end": 6652, + "loc": { + "start": { + "line": 141, + "column": 18 + }, + "end": { + "line": 141, + "column": 22 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 6652, + "end": 6653, + "loc": { + "start": { + "line": 141, + "column": 22 + }, + "end": { + "line": 141, + "column": 23 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "options", + "start": 6653, + "end": 6660, + "loc": { + "start": { + "line": 141, + "column": 23 + }, + "end": { + "line": 141, + "column": 30 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 6660, + "end": 6661, + "loc": { + "start": { + "line": 141, + "column": 30 + }, + "end": { + "line": 141, + "column": 31 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "inputName", + "start": 6661, + "end": 6670, + "loc": { + "start": { + "line": 141, + "column": 31 + }, + "end": { + "line": 141, + "column": 40 + } + } + }, + { + "type": { + "label": "]", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 6670, + "end": 6671, + "loc": { + "start": { + "line": 141, + "column": 40 + }, + "end": { + "line": 141, + "column": 41 + } + } + }, + { + "type": { + "label": "==/!=", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": 6, + "updateContext": null + }, + "value": "!==", + "start": 6672, + "end": 6675, + "loc": { + "start": { + "line": 141, + "column": 42 + }, + "end": { + "line": 141, + "column": 45 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "updatedInput", + "start": 6676, + "end": 6688, + "loc": { + "start": { + "line": 141, + "column": 46 + }, + "end": { + "line": 141, + "column": 58 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 6688, + "end": 6689, + "loc": { + "start": { + "line": 141, + "column": 58 + }, + "end": { + "line": 141, + "column": 59 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 6689, + "end": 6690, + "loc": { + "start": { + "line": 141, + "column": 59 + }, + "end": { + "line": 141, + "column": 60 + } + } + }, + { + "type": "CommentBlock", + "value": "*\r\n * If maxLength and handleMaxLength yield true, halting\r\n ", + "start": 6700, + "end": 6777, + "loc": { + "start": { + "line": 143, + "column": 6 + }, + "end": { + "line": 145, + "column": 9 + } + } + }, + { + "type": { + "label": "if", + "keyword": "if", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "if", + "start": 6785, + "end": 6787, + "loc": { + "start": { + "line": 146, + "column": 6 + }, + "end": { + "line": 146, + "column": 8 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 6787, + "end": 6788, + "loc": { + "start": { + "line": 146, + "column": 8 + }, + "end": { + "line": 146, + "column": 9 + } + } + }, + { + "type": { + "label": "this", + "keyword": "this", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "this", + "start": 6788, + "end": 6792, + "loc": { + "start": { + "line": 146, + "column": 9 + }, + "end": { + "line": 146, + "column": 13 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 6792, + "end": 6793, + "loc": { + "start": { + "line": 146, + "column": 13 + }, + "end": { + "line": 146, + "column": 14 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "options", + "start": 6793, + "end": 6800, + "loc": { + "start": { + "line": 146, + "column": 14 + }, + "end": { + "line": 146, + "column": 21 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 6800, + "end": 6801, + "loc": { + "start": { + "line": 146, + "column": 21 + }, + "end": { + "line": 146, + "column": 22 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "maxLength", + "start": 6801, + "end": 6810, + "loc": { + "start": { + "line": 146, + "column": 22 + }, + "end": { + "line": 146, + "column": 31 + } + } + }, + { + "type": { + "label": "&&", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": 2, + "updateContext": null + }, + "value": "&&", + "start": 6811, + "end": 6813, + "loc": { + "start": { + "line": 146, + "column": 32 + }, + "end": { + "line": 146, + "column": 34 + } + } + }, + { + "type": { + "label": "this", + "keyword": "this", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "this", + "start": 6814, + "end": 6818, + "loc": { + "start": { + "line": 146, + "column": 35 + }, + "end": { + "line": 146, + "column": 39 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 6818, + "end": 6819, + "loc": { + "start": { + "line": 146, + "column": 39 + }, + "end": { + "line": 146, + "column": 40 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "utilities", + "start": 6819, + "end": 6828, + "loc": { + "start": { + "line": 146, + "column": 40 + }, + "end": { + "line": 146, + "column": 49 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 6828, + "end": 6829, + "loc": { + "start": { + "line": 146, + "column": 49 + }, + "end": { + "line": 146, + "column": 50 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "handleMaxLength", + "start": 6829, + "end": 6844, + "loc": { + "start": { + "line": 146, + "column": 50 + }, + "end": { + "line": 146, + "column": 65 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 6844, + "end": 6845, + "loc": { + "start": { + "line": 146, + "column": 65 + }, + "end": { + "line": 146, + "column": 66 + } + } + }, + { + "type": { + "label": "this", + "keyword": "this", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "this", + "start": 6845, + "end": 6849, + "loc": { + "start": { + "line": 146, + "column": 66 + }, + "end": { + "line": 146, + "column": 70 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 6849, + "end": 6850, + "loc": { + "start": { + "line": 146, + "column": 70 + }, + "end": { + "line": 146, + "column": 71 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "input", + "start": 6850, + "end": 6855, + "loc": { + "start": { + "line": 146, + "column": 71 + }, + "end": { + "line": 146, + "column": 76 + } + } + }, + { + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 6855, + "end": 6856, + "loc": { + "start": { + "line": 146, + "column": 76 + }, + "end": { + "line": 146, + "column": 77 + } + } + }, + { + "type": { + "label": "this", + "keyword": "this", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "this", + "start": 6857, + "end": 6861, + "loc": { + "start": { + "line": 146, + "column": 78 + }, + "end": { + "line": 146, + "column": 82 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 6861, + "end": 6862, + "loc": { + "start": { + "line": 146, + "column": 82 + }, + "end": { + "line": 146, + "column": 83 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "options", + "start": 6862, + "end": 6869, + "loc": { + "start": { + "line": 146, + "column": 83 + }, + "end": { + "line": 146, + "column": 90 + } + } + }, + { + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 6869, + "end": 6870, + "loc": { + "start": { + "line": 146, + "column": 90 + }, + "end": { + "line": 146, + "column": 91 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "updatedInput", + "start": 6871, + "end": 6883, + "loc": { + "start": { + "line": 146, + "column": 92 + }, + "end": { + "line": 146, + "column": 104 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 6883, + "end": 6884, + "loc": { + "start": { + "line": 146, + "column": 104 + }, + "end": { + "line": 146, + "column": 105 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 6884, + "end": 6885, + "loc": { + "start": { + "line": 146, + "column": 105 + }, + "end": { + "line": 146, + "column": 106 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 6885, + "end": 6886, + "loc": { + "start": { + "line": 146, + "column": 106 + }, + "end": { + "line": 146, + "column": 107 + } + } + }, + { + "type": { + "label": "return", + "keyword": "return", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "return", + "start": 6896, + "end": 6902, + "loc": { + "start": { + "line": 147, + "column": 8 + }, + "end": { + "line": 147, + "column": 14 + } + } + }, + { + "type": { + "label": "false", + "keyword": "false", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "false", + "start": 6903, + "end": 6908, + "loc": { + "start": { + "line": 147, + "column": 15 + }, + "end": { + "line": 147, + "column": 20 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 6908, + "end": 6909, + "loc": { + "start": { + "line": 147, + "column": 20 + }, + "end": { + "line": 147, + "column": 21 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 6917, + "end": 6918, + "loc": { + "start": { + "line": 148, + "column": 6 + }, + "end": { + "line": 148, + "column": 7 + } + } + }, + { + "type": { + "label": "this", + "keyword": "this", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "this", + "start": 6928, + "end": 6932, + "loc": { + "start": { + "line": 150, + "column": 6 + }, + "end": { + "line": 150, + "column": 10 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 6932, + "end": 6933, + "loc": { + "start": { + "line": 150, + "column": 10 + }, + "end": { + "line": 150, + "column": 11 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "input", + "start": 6933, + "end": 6938, + "loc": { + "start": { + "line": 150, + "column": 11 + }, + "end": { + "line": 150, + "column": 16 + } + } + }, + { + "type": { + "label": "[", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 6938, + "end": 6939, + "loc": { + "start": { + "line": 150, + "column": 16 + }, + "end": { + "line": 150, + "column": 17 + } + } + }, + { + "type": { + "label": "this", + "keyword": "this", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "this", + "start": 6939, + "end": 6943, + "loc": { + "start": { + "line": 150, + "column": 17 + }, + "end": { + "line": 150, + "column": 21 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 6943, + "end": 6944, + "loc": { + "start": { + "line": 150, + "column": 21 + }, + "end": { + "line": 150, + "column": 22 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "options", + "start": 6944, + "end": 6951, + "loc": { + "start": { + "line": 150, + "column": 22 + }, + "end": { + "line": 150, + "column": 29 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 6951, + "end": 6952, + "loc": { + "start": { + "line": 150, + "column": 29 + }, + "end": { + "line": 150, + "column": 30 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "inputName", + "start": 6952, + "end": 6961, + "loc": { + "start": { + "line": 150, + "column": 30 + }, + "end": { + "line": 150, + "column": 39 + } + } + }, + { + "type": { + "label": "]", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 6961, + "end": 6962, + "loc": { + "start": { + "line": 150, + "column": 39 + }, + "end": { + "line": 150, + "column": 40 + } + } + }, + { + "type": { + "label": "=", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": true, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "=", + "start": 6963, + "end": 6964, + "loc": { + "start": { + "line": 150, + "column": 41 + }, + "end": { + "line": 150, + "column": 42 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "updatedInput", + "start": 6965, + "end": 6977, + "loc": { + "start": { + "line": 150, + "column": 43 + }, + "end": { + "line": 150, + "column": 55 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 6977, + "end": 6978, + "loc": { + "start": { + "line": 150, + "column": 55 + }, + "end": { + "line": 150, + "column": 56 + } + } + }, + { + "type": { + "label": "if", + "keyword": "if", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "if", + "start": 6988, + "end": 6990, + "loc": { + "start": { + "line": 152, + "column": 6 + }, + "end": { + "line": 152, + "column": 8 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 6990, + "end": 6991, + "loc": { + "start": { + "line": 152, + "column": 8 + }, + "end": { + "line": 152, + "column": 9 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "debug", + "start": 6991, + "end": 6996, + "loc": { + "start": { + "line": 152, + "column": 9 + }, + "end": { + "line": 152, + "column": 14 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 6996, + "end": 6997, + "loc": { + "start": { + "line": 152, + "column": 14 + }, + "end": { + "line": 152, + "column": 15 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "console", + "start": 7007, + "end": 7014, + "loc": { + "start": { + "line": 153, + "column": 8 + }, + "end": { + "line": 153, + "column": 15 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 7014, + "end": 7015, + "loc": { + "start": { + "line": 153, + "column": 15 + }, + "end": { + "line": 153, + "column": 16 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "log", + "start": 7015, + "end": 7018, + "loc": { + "start": { + "line": 153, + "column": 16 + }, + "end": { + "line": 153, + "column": 19 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 7018, + "end": 7019, + "loc": { + "start": { + "line": 153, + "column": 19 + }, + "end": { + "line": 153, + "column": 20 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "Input changed:", + "start": 7019, + "end": 7035, + "loc": { + "start": { + "line": 153, + "column": 20 + }, + "end": { + "line": 153, + "column": 36 + } + } + }, + { + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 7035, + "end": 7036, + "loc": { + "start": { + "line": 153, + "column": 36 + }, + "end": { + "line": 153, + "column": 37 + } + } + }, + { + "type": { + "label": "this", + "keyword": "this", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "this", + "start": 7037, + "end": 7041, + "loc": { + "start": { + "line": 153, + "column": 38 + }, + "end": { + "line": 153, + "column": 42 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 7041, + "end": 7042, + "loc": { + "start": { + "line": 153, + "column": 42 + }, + "end": { + "line": 153, + "column": 43 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "input", + "start": 7042, + "end": 7047, + "loc": { + "start": { + "line": 153, + "column": 43 + }, + "end": { + "line": 153, + "column": 48 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 7047, + "end": 7048, + "loc": { + "start": { + "line": 153, + "column": 48 + }, + "end": { + "line": 153, + "column": 49 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 7048, + "end": 7049, + "loc": { + "start": { + "line": 153, + "column": 49 + }, + "end": { + "line": 153, + "column": 50 + } + } + }, + { + "type": "CommentBlock", + "value": "*\r\n * Enforce syncInstanceInputs, if set\r\n ", + "start": 7059, + "end": 7118, + "loc": { + "start": { + "line": 155, + "column": 6 + }, + "end": { + "line": 157, + "column": 9 + } + } + }, + { + "type": { + "label": "if", + "keyword": "if", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "if", + "start": 7126, + "end": 7128, + "loc": { + "start": { + "line": 158, + "column": 6 + }, + "end": { + "line": 158, + "column": 8 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 7128, + "end": 7129, + "loc": { + "start": { + "line": 158, + "column": 8 + }, + "end": { + "line": 158, + "column": 9 + } + } + }, + { + "type": { + "label": "this", + "keyword": "this", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "this", + "start": 7129, + "end": 7133, + "loc": { + "start": { + "line": 158, + "column": 9 + }, + "end": { + "line": 158, + "column": 13 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 7133, + "end": 7134, + "loc": { + "start": { + "line": 158, + "column": 13 + }, + "end": { + "line": 158, + "column": 14 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "options", + "start": 7134, + "end": 7141, + "loc": { + "start": { + "line": 158, + "column": 14 + }, + "end": { + "line": 158, + "column": 21 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 7141, + "end": 7142, + "loc": { + "start": { + "line": 158, + "column": 21 + }, + "end": { + "line": 158, + "column": 22 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "syncInstanceInputs", + "start": 7142, + "end": 7160, + "loc": { + "start": { + "line": 158, + "column": 22 + }, + "end": { + "line": 158, + "column": 40 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 7160, + "end": 7161, + "loc": { + "start": { + "line": 158, + "column": 40 + }, + "end": { + "line": 158, + "column": 41 + } + } + }, + { + "type": { + "label": "this", + "keyword": "this", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "this", + "start": 7171, + "end": 7175, + "loc": { + "start": { + "line": 159, + "column": 8 + }, + "end": { + "line": 159, + "column": 12 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 7175, + "end": 7176, + "loc": { + "start": { + "line": 159, + "column": 12 + }, + "end": { + "line": 159, + "column": 13 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "syncInstanceInputs", + "start": 7176, + "end": 7194, + "loc": { + "start": { + "line": 159, + "column": 13 + }, + "end": { + "line": 159, + "column": 31 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 7194, + "end": 7195, + "loc": { + "start": { + "line": 159, + "column": 31 + }, + "end": { + "line": 159, + "column": 32 + } + } + }, + { + "type": { + "label": "this", + "keyword": "this", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "this", + "start": 7195, + "end": 7199, + "loc": { + "start": { + "line": 159, + "column": 32 + }, + "end": { + "line": 159, + "column": 36 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 7199, + "end": 7200, + "loc": { + "start": { + "line": 159, + "column": 36 + }, + "end": { + "line": 159, + "column": 37 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "input", + "start": 7200, + "end": 7205, + "loc": { + "start": { + "line": 159, + "column": 37 + }, + "end": { + "line": 159, + "column": 42 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 7205, + "end": 7206, + "loc": { + "start": { + "line": 159, + "column": 42 + }, + "end": { + "line": 159, + "column": 43 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 7206, + "end": 7207, + "loc": { + "start": { + "line": 159, + "column": 43 + }, + "end": { + "line": 159, + "column": 44 + } + } + }, + { + "type": "CommentBlock", + "value": "*\r\n * Calling onChange\r\n ", + "start": 7217, + "end": 7258, + "loc": { + "start": { + "line": 161, + "column": 6 + }, + "end": { + "line": 163, + "column": 9 + } + } + }, + { + "type": { + "label": "if", + "keyword": "if", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "if", + "start": 7266, + "end": 7268, + "loc": { + "start": { + "line": 164, + "column": 6 + }, + "end": { + "line": 164, + "column": 8 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 7268, + "end": 7269, + "loc": { + "start": { + "line": 164, + "column": 8 + }, + "end": { + "line": 164, + "column": 9 + } + } + }, + { + "type": { + "label": "typeof", + "keyword": "typeof", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": true, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "typeof", + "start": 7269, + "end": 7275, + "loc": { + "start": { + "line": 164, + "column": 9 + }, + "end": { + "line": 164, + "column": 15 + } + } + }, + { + "type": { + "label": "this", + "keyword": "this", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "this", + "start": 7276, + "end": 7280, + "loc": { + "start": { + "line": 164, + "column": 16 + }, + "end": { + "line": 164, + "column": 20 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 7280, + "end": 7281, + "loc": { + "start": { + "line": 164, + "column": 20 + }, + "end": { + "line": 164, + "column": 21 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "options", + "start": 7281, + "end": 7288, + "loc": { + "start": { + "line": 164, + "column": 21 + }, + "end": { + "line": 164, + "column": 28 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 7288, + "end": 7289, + "loc": { + "start": { + "line": 164, + "column": 28 + }, + "end": { + "line": 164, + "column": 29 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "onChange", + "start": 7289, + "end": 7297, + "loc": { + "start": { + "line": 164, + "column": 29 + }, + "end": { + "line": 164, + "column": 37 + } + } + }, + { + "type": { + "label": "==/!=", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": 6, + "updateContext": null + }, + "value": "===", + "start": 7298, + "end": 7301, + "loc": { + "start": { + "line": 164, + "column": 38 + }, + "end": { + "line": 164, + "column": 41 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "function", + "start": 7302, + "end": 7312, + "loc": { + "start": { + "line": 164, + "column": 42 + }, + "end": { + "line": 164, + "column": 52 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 7312, + "end": 7313, + "loc": { + "start": { + "line": 164, + "column": 52 + }, + "end": { + "line": 164, + "column": 53 + } + } + }, + { + "type": { + "label": "this", + "keyword": "this", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "this", + "start": 7323, + "end": 7327, + "loc": { + "start": { + "line": 165, + "column": 8 + }, + "end": { + "line": 165, + "column": 12 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 7327, + "end": 7328, + "loc": { + "start": { + "line": 165, + "column": 12 + }, + "end": { + "line": 165, + "column": 13 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "options", + "start": 7328, + "end": 7335, + "loc": { + "start": { + "line": 165, + "column": 13 + }, + "end": { + "line": 165, + "column": 20 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 7335, + "end": 7336, + "loc": { + "start": { + "line": 165, + "column": 20 + }, + "end": { + "line": 165, + "column": 21 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "onChange", + "start": 7336, + "end": 7344, + "loc": { + "start": { + "line": 165, + "column": 21 + }, + "end": { + "line": 165, + "column": 29 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 7344, + "end": 7345, + "loc": { + "start": { + "line": 165, + "column": 29 + }, + "end": { + "line": 165, + "column": 30 + } + } + }, + { + "type": { + "label": "this", + "keyword": "this", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "this", + "start": 7345, + "end": 7349, + "loc": { + "start": { + "line": 165, + "column": 30 + }, + "end": { + "line": 165, + "column": 34 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 7349, + "end": 7350, + "loc": { + "start": { + "line": 165, + "column": 34 + }, + "end": { + "line": 165, + "column": 35 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "input", + "start": 7350, + "end": 7355, + "loc": { + "start": { + "line": 165, + "column": 35 + }, + "end": { + "line": 165, + "column": 40 + } + } + }, + { + "type": { + "label": "[", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 7355, + "end": 7356, + "loc": { + "start": { + "line": 165, + "column": 40 + }, + "end": { + "line": 165, + "column": 41 + } + } + }, + { + "type": { + "label": "this", + "keyword": "this", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "this", + "start": 7356, + "end": 7360, + "loc": { + "start": { + "line": 165, + "column": 41 + }, + "end": { + "line": 165, + "column": 45 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 7360, + "end": 7361, + "loc": { + "start": { + "line": 165, + "column": 45 + }, + "end": { + "line": 165, + "column": 46 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "options", + "start": 7361, + "end": 7368, + "loc": { + "start": { + "line": 165, + "column": 46 + }, + "end": { + "line": 165, + "column": 53 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 7368, + "end": 7369, + "loc": { + "start": { + "line": 165, + "column": 53 + }, + "end": { + "line": 165, + "column": 54 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "inputName", + "start": 7369, + "end": 7378, + "loc": { + "start": { + "line": 165, + "column": 54 + }, + "end": { + "line": 165, + "column": 63 + } + } + }, + { + "type": { + "label": "]", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 7378, + "end": 7379, + "loc": { + "start": { + "line": 165, + "column": 63 + }, + "end": { + "line": 165, + "column": 64 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 7379, + "end": 7380, + "loc": { + "start": { + "line": 165, + "column": 64 + }, + "end": { + "line": 165, + "column": 65 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 7380, + "end": 7381, + "loc": { + "start": { + "line": 165, + "column": 65 + }, + "end": { + "line": 165, + "column": 66 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 7387, + "end": 7388, + "loc": { + "start": { + "line": 166, + "column": 4 + }, + "end": { + "line": 166, + "column": 5 + } + } + }, + { + "type": { + "label": "if", + "keyword": "if", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "if", + "start": 7400, + "end": 7402, + "loc": { + "start": { + "line": 168, + "column": 4 + }, + "end": { + "line": 168, + "column": 6 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 7402, + "end": 7403, + "loc": { + "start": { + "line": 168, + "column": 6 + }, + "end": { + "line": 168, + "column": 7 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "debug", + "start": 7403, + "end": 7408, + "loc": { + "start": { + "line": 168, + "column": 7 + }, + "end": { + "line": 168, + "column": 12 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 7408, + "end": 7409, + "loc": { + "start": { + "line": 168, + "column": 12 + }, + "end": { + "line": 168, + "column": 13 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 7409, + "end": 7410, + "loc": { + "start": { + "line": 168, + "column": 13 + }, + "end": { + "line": 168, + "column": 14 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "console", + "start": 7418, + "end": 7425, + "loc": { + "start": { + "line": 169, + "column": 6 + }, + "end": { + "line": 169, + "column": 13 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 7425, + "end": 7426, + "loc": { + "start": { + "line": 169, + "column": 13 + }, + "end": { + "line": 169, + "column": 14 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "log", + "start": 7426, + "end": 7429, + "loc": { + "start": { + "line": 169, + "column": 14 + }, + "end": { + "line": 169, + "column": 17 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 7429, + "end": 7430, + "loc": { + "start": { + "line": 169, + "column": 17 + }, + "end": { + "line": 169, + "column": 18 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "Key pressed:", + "start": 7430, + "end": 7444, + "loc": { + "start": { + "line": 169, + "column": 18 + }, + "end": { + "line": 169, + "column": 32 + } + } + }, + { + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 7444, + "end": 7445, + "loc": { + "start": { + "line": 169, + "column": 32 + }, + "end": { + "line": 169, + "column": 33 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "button", + "start": 7446, + "end": 7452, + "loc": { + "start": { + "line": 169, + "column": 34 + }, + "end": { + "line": 169, + "column": 40 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 7452, + "end": 7453, + "loc": { + "start": { + "line": 169, + "column": 40 + }, + "end": { + "line": 169, + "column": 41 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 7453, + "end": 7454, + "loc": { + "start": { + "line": 169, + "column": 41 + }, + "end": { + "line": 169, + "column": 42 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 7460, + "end": 7461, + "loc": { + "start": { + "line": 170, + "column": 4 + }, + "end": { + "line": 170, + "column": 5 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 7465, + "end": 7466, + "loc": { + "start": { + "line": 171, + "column": 2 + }, + "end": { + "line": 171, + "column": 3 + } + } + }, + { + "type": "CommentBlock", + "value": "*\r\n * Send a command to all simple-keyboard instances (if you have several instances).\r\n ", + "start": 7472, + "end": 7569, + "loc": { + "start": { + "line": 173, + "column": 2 + }, + "end": { + "line": 175, + "column": 5 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "syncInstanceInputs", + "start": 7573, + "end": 7591, + "loc": { + "start": { + "line": 176, + "column": 2 + }, + "end": { + "line": 176, + "column": 20 + } + } + }, + { + "type": { + "label": "=", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": true, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "=", + "start": 7592, + "end": 7593, + "loc": { + "start": { + "line": 176, + "column": 21 + }, + "end": { + "line": 176, + "column": 22 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 7594, + "end": 7595, + "loc": { + "start": { + "line": 176, + "column": 23 + }, + "end": { + "line": 176, + "column": 24 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 7595, + "end": 7596, + "loc": { + "start": { + "line": 176, + "column": 24 + }, + "end": { + "line": 176, + "column": 25 + } + } + }, + { + "type": { + "label": "=>", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 7597, + "end": 7599, + "loc": { + "start": { + "line": 176, + "column": 26 + }, + "end": { + "line": 176, + "column": 28 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 7600, + "end": 7601, + "loc": { + "start": { + "line": 176, + "column": 29 + }, + "end": { + "line": 176, + "column": 30 + } + } + }, + { + "type": { + "label": "this", + "keyword": "this", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "this", + "start": 7607, + "end": 7611, + "loc": { + "start": { + "line": 177, + "column": 4 + }, + "end": { + "line": 177, + "column": 8 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 7611, + "end": 7612, + "loc": { + "start": { + "line": 177, + "column": 8 + }, + "end": { + "line": 177, + "column": 9 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "dispatch", + "start": 7612, + "end": 7620, + "loc": { + "start": { + "line": 177, + "column": 9 + }, + "end": { + "line": 177, + "column": 17 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 7620, + "end": 7621, + "loc": { + "start": { + "line": 177, + "column": 17 + }, + "end": { + "line": 177, + "column": 18 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 7621, + "end": 7622, + "loc": { + "start": { + "line": 177, + "column": 18 + }, + "end": { + "line": 177, + "column": 19 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "instance", + "start": 7622, + "end": 7630, + "loc": { + "start": { + "line": 177, + "column": 19 + }, + "end": { + "line": 177, + "column": 27 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 7630, + "end": 7631, + "loc": { + "start": { + "line": 177, + "column": 27 + }, + "end": { + "line": 177, + "column": 28 + } + } + }, + { + "type": { + "label": "=>", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 7632, + "end": 7634, + "loc": { + "start": { + "line": 177, + "column": 29 + }, + "end": { + "line": 177, + "column": 31 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 7635, + "end": 7636, + "loc": { + "start": { + "line": 177, + "column": 32 + }, + "end": { + "line": 177, + "column": 33 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "instance", + "start": 7644, + "end": 7652, + "loc": { + "start": { + "line": 178, + "column": 6 + }, + "end": { + "line": 178, + "column": 14 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 7652, + "end": 7653, + "loc": { + "start": { + "line": 178, + "column": 14 + }, + "end": { + "line": 178, + "column": 15 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "replaceInput", + "start": 7653, + "end": 7665, + "loc": { + "start": { + "line": 178, + "column": 15 + }, + "end": { + "line": 178, + "column": 27 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 7665, + "end": 7666, + "loc": { + "start": { + "line": 178, + "column": 27 + }, + "end": { + "line": 178, + "column": 28 + } + } + }, + { + "type": { + "label": "this", + "keyword": "this", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "this", + "start": 7666, + "end": 7670, + "loc": { + "start": { + "line": 178, + "column": 28 + }, + "end": { + "line": 178, + "column": 32 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 7670, + "end": 7671, + "loc": { + "start": { + "line": 178, + "column": 32 + }, + "end": { + "line": 178, + "column": 33 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "input", + "start": 7671, + "end": 7676, + "loc": { + "start": { + "line": 178, + "column": 33 + }, + "end": { + "line": 178, + "column": 38 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 7676, + "end": 7677, + "loc": { + "start": { + "line": 178, + "column": 38 + }, + "end": { + "line": 178, + "column": 39 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 7677, + "end": 7678, + "loc": { + "start": { + "line": 178, + "column": 39 + }, + "end": { + "line": 178, + "column": 40 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 7684, + "end": 7685, + "loc": { + "start": { + "line": 179, + "column": 4 + }, + "end": { + "line": 179, + "column": 5 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 7685, + "end": 7686, + "loc": { + "start": { + "line": 179, + "column": 5 + }, + "end": { + "line": 179, + "column": 6 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 7686, + "end": 7687, + "loc": { + "start": { + "line": 179, + "column": 6 + }, + "end": { + "line": 179, + "column": 7 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 7691, + "end": 7692, + "loc": { + "start": { + "line": 180, + "column": 2 + }, + "end": { + "line": 180, + "column": 3 + } + } + }, + { + "type": "CommentBlock", + "value": "*\r\n * Clear the keyboard’s input.\r\n * @param {string} [inputName] optional - the internal input to select\r\n ", + "start": 7700, + "end": 7819, + "loc": { + "start": { + "line": 182, + "column": 2 + }, + "end": { + "line": 185, + "column": 5 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "clearInput", + "start": 7823, + "end": 7833, + "loc": { + "start": { + "line": 186, + "column": 2 + }, + "end": { + "line": 186, + "column": 12 + } + } + }, + { + "type": { + "label": "=", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": true, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "=", + "start": 7834, + "end": 7835, + "loc": { + "start": { + "line": 186, + "column": 13 + }, + "end": { + "line": 186, + "column": 14 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 7836, + "end": 7837, + "loc": { + "start": { + "line": 186, + "column": 15 + }, + "end": { + "line": 186, + "column": 16 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "inputName", + "start": 7837, + "end": 7846, + "loc": { + "start": { + "line": 186, + "column": 16 + }, + "end": { + "line": 186, + "column": 25 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 7846, + "end": 7847, + "loc": { + "start": { + "line": 186, + "column": 25 + }, + "end": { + "line": 186, + "column": 26 + } + } + }, + { + "type": { + "label": "=>", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 7848, + "end": 7850, + "loc": { + "start": { + "line": 186, + "column": 27 + }, + "end": { + "line": 186, + "column": 29 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 7851, + "end": 7852, + "loc": { + "start": { + "line": 186, + "column": 30 + }, + "end": { + "line": 186, + "column": 31 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "inputName", + "start": 7858, + "end": 7867, + "loc": { + "start": { + "line": 187, + "column": 4 + }, + "end": { + "line": 187, + "column": 13 + } + } + }, + { + "type": { + "label": "=", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": true, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "=", + "start": 7868, + "end": 7869, + "loc": { + "start": { + "line": 187, + "column": 14 + }, + "end": { + "line": 187, + "column": 15 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "inputName", + "start": 7870, + "end": 7879, + "loc": { + "start": { + "line": 187, + "column": 16 + }, + "end": { + "line": 187, + "column": 25 + } + } + }, + { + "type": { + "label": "||", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": 1, + "updateContext": null + }, + "value": "||", + "start": 7880, + "end": 7882, + "loc": { + "start": { + "line": 187, + "column": 26 + }, + "end": { + "line": 187, + "column": 28 + } + } + }, + { + "type": { + "label": "this", + "keyword": "this", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "this", + "start": 7883, + "end": 7887, + "loc": { + "start": { + "line": 187, + "column": 29 + }, + "end": { + "line": 187, + "column": 33 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 7887, + "end": 7888, + "loc": { + "start": { + "line": 187, + "column": 33 + }, + "end": { + "line": 187, + "column": 34 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "options", + "start": 7888, + "end": 7895, + "loc": { + "start": { + "line": 187, + "column": 34 + }, + "end": { + "line": 187, + "column": 41 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 7895, + "end": 7896, + "loc": { + "start": { + "line": 187, + "column": 41 + }, + "end": { + "line": 187, + "column": 42 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "inputName", + "start": 7896, + "end": 7905, + "loc": { + "start": { + "line": 187, + "column": 42 + }, + "end": { + "line": 187, + "column": 51 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 7905, + "end": 7906, + "loc": { + "start": { + "line": 187, + "column": 51 + }, + "end": { + "line": 187, + "column": 52 + } + } + }, + { + "type": { + "label": "this", + "keyword": "this", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "this", + "start": 7912, + "end": 7916, + "loc": { + "start": { + "line": 188, + "column": 4 + }, + "end": { + "line": 188, + "column": 8 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 7916, + "end": 7917, + "loc": { + "start": { + "line": 188, + "column": 8 + }, + "end": { + "line": 188, + "column": 9 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "input", + "start": 7917, + "end": 7922, + "loc": { + "start": { + "line": 188, + "column": 9 + }, + "end": { + "line": 188, + "column": 14 + } + } + }, + { + "type": { + "label": "[", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 7922, + "end": 7923, + "loc": { + "start": { + "line": 188, + "column": 14 + }, + "end": { + "line": 188, + "column": 15 + } + } + }, + { + "type": { + "label": "this", + "keyword": "this", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "this", + "start": 7923, + "end": 7927, + "loc": { + "start": { + "line": 188, + "column": 15 + }, + "end": { + "line": 188, + "column": 19 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 7927, + "end": 7928, + "loc": { + "start": { + "line": 188, + "column": 19 + }, + "end": { + "line": 188, + "column": 20 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "options", + "start": 7928, + "end": 7935, + "loc": { + "start": { + "line": 188, + "column": 20 + }, + "end": { + "line": 188, + "column": 27 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 7935, + "end": 7936, + "loc": { + "start": { + "line": 188, + "column": 27 + }, + "end": { + "line": 188, + "column": 28 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "inputName", + "start": 7936, + "end": 7945, + "loc": { + "start": { + "line": 188, + "column": 28 + }, + "end": { + "line": 188, + "column": 37 + } + } + }, + { + "type": { + "label": "]", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 7945, + "end": 7946, + "loc": { + "start": { + "line": 188, + "column": 37 + }, + "end": { + "line": 188, + "column": 38 + } + } + }, + { + "type": { + "label": "=", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": true, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "=", + "start": 7947, + "end": 7948, + "loc": { + "start": { + "line": 188, + "column": 39 + }, + "end": { + "line": 188, + "column": 40 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "", + "start": 7949, + "end": 7951, + "loc": { + "start": { + "line": 188, + "column": 41 + }, + "end": { + "line": 188, + "column": 43 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 7951, + "end": 7952, + "loc": { + "start": { + "line": 188, + "column": 43 + }, + "end": { + "line": 188, + "column": 44 + } + } + }, + { + "type": "CommentBlock", + "value": "*\r\n * Enforce syncInstanceInputs, if set\r\n ", + "start": 7960, + "end": 8015, + "loc": { + "start": { + "line": 190, + "column": 4 + }, + "end": { + "line": 192, + "column": 7 + } + } + }, + { + "type": { + "label": "if", + "keyword": "if", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "if", + "start": 8021, + "end": 8023, + "loc": { + "start": { + "line": 193, + "column": 4 + }, + "end": { + "line": 193, + "column": 6 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 8023, + "end": 8024, + "loc": { + "start": { + "line": 193, + "column": 6 + }, + "end": { + "line": 193, + "column": 7 + } + } + }, + { + "type": { + "label": "this", + "keyword": "this", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "this", + "start": 8024, + "end": 8028, + "loc": { + "start": { + "line": 193, + "column": 7 + }, + "end": { + "line": 193, + "column": 11 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 8028, + "end": 8029, + "loc": { + "start": { + "line": 193, + "column": 11 + }, + "end": { + "line": 193, + "column": 12 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "options", + "start": 8029, + "end": 8036, + "loc": { + "start": { + "line": 193, + "column": 12 + }, + "end": { + "line": 193, + "column": 19 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 8036, + "end": 8037, + "loc": { + "start": { + "line": 193, + "column": 19 + }, + "end": { + "line": 193, + "column": 20 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "syncInstanceInputs", + "start": 8037, + "end": 8055, + "loc": { + "start": { + "line": 193, + "column": 20 + }, + "end": { + "line": 193, + "column": 38 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 8055, + "end": 8056, + "loc": { + "start": { + "line": 193, + "column": 38 + }, + "end": { + "line": 193, + "column": 39 + } + } + }, + { + "type": { + "label": "this", + "keyword": "this", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "this", + "start": 8064, + "end": 8068, + "loc": { + "start": { + "line": 194, + "column": 6 + }, + "end": { + "line": 194, + "column": 10 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 8068, + "end": 8069, + "loc": { + "start": { + "line": 194, + "column": 10 + }, + "end": { + "line": 194, + "column": 11 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "syncInstanceInputs", + "start": 8069, + "end": 8087, + "loc": { + "start": { + "line": 194, + "column": 11 + }, + "end": { + "line": 194, + "column": 29 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 8087, + "end": 8088, + "loc": { + "start": { + "line": 194, + "column": 29 + }, + "end": { + "line": 194, + "column": 30 + } + } + }, + { + "type": { + "label": "this", + "keyword": "this", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "this", + "start": 8088, + "end": 8092, + "loc": { + "start": { + "line": 194, + "column": 30 + }, + "end": { + "line": 194, + "column": 34 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 8092, + "end": 8093, + "loc": { + "start": { + "line": 194, + "column": 34 + }, + "end": { + "line": 194, + "column": 35 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "input", + "start": 8093, + "end": 8098, + "loc": { + "start": { + "line": 194, + "column": 35 + }, + "end": { + "line": 194, + "column": 40 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 8098, + "end": 8099, + "loc": { + "start": { + "line": 194, + "column": 40 + }, + "end": { + "line": 194, + "column": 41 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 8099, + "end": 8100, + "loc": { + "start": { + "line": 194, + "column": 41 + }, + "end": { + "line": 194, + "column": 42 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 8104, + "end": 8105, + "loc": { + "start": { + "line": 195, + "column": 2 + }, + "end": { + "line": 195, + "column": 3 + } + } + }, + { + "type": "CommentBlock", + "value": "*\r\n * Get the keyboard’s input (You can also get it from the onChange prop).\r\n * @param {string} [inputName] optional - the internal input to select\r\n ", + "start": 8111, + "end": 8273, + "loc": { + "start": { + "line": 197, + "column": 2 + }, + "end": { + "line": 200, + "column": 5 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "getInput", + "start": 8277, + "end": 8285, + "loc": { + "start": { + "line": 201, + "column": 2 + }, + "end": { + "line": 201, + "column": 10 + } + } + }, + { + "type": { + "label": "=", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": true, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "=", + "start": 8286, + "end": 8287, + "loc": { + "start": { + "line": 201, + "column": 11 + }, + "end": { + "line": 201, + "column": 12 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 8288, + "end": 8289, + "loc": { + "start": { + "line": 201, + "column": 13 + }, + "end": { + "line": 201, + "column": 14 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "inputName", + "start": 8289, + "end": 8298, + "loc": { + "start": { + "line": 201, + "column": 14 + }, + "end": { + "line": 201, + "column": 23 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 8298, + "end": 8299, + "loc": { + "start": { + "line": 201, + "column": 23 + }, + "end": { + "line": 201, + "column": 24 + } + } + }, + { + "type": { + "label": "=>", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 8300, + "end": 8302, + "loc": { + "start": { + "line": 201, + "column": 25 + }, + "end": { + "line": 201, + "column": 27 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 8303, + "end": 8304, + "loc": { + "start": { + "line": 201, + "column": 28 + }, + "end": { + "line": 201, + "column": 29 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "inputName", + "start": 8310, + "end": 8319, + "loc": { + "start": { + "line": 202, + "column": 4 + }, + "end": { + "line": 202, + "column": 13 + } + } + }, + { + "type": { + "label": "=", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": true, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "=", + "start": 8320, + "end": 8321, + "loc": { + "start": { + "line": 202, + "column": 14 + }, + "end": { + "line": 202, + "column": 15 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "inputName", + "start": 8322, + "end": 8331, + "loc": { + "start": { + "line": 202, + "column": 16 + }, + "end": { + "line": 202, + "column": 25 + } + } + }, + { + "type": { + "label": "||", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": 1, + "updateContext": null + }, + "value": "||", + "start": 8332, + "end": 8334, + "loc": { + "start": { + "line": 202, + "column": 26 + }, + "end": { + "line": 202, + "column": 28 + } + } + }, + { + "type": { + "label": "this", + "keyword": "this", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "this", + "start": 8335, + "end": 8339, + "loc": { + "start": { + "line": 202, + "column": 29 + }, + "end": { + "line": 202, + "column": 33 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 8339, + "end": 8340, + "loc": { + "start": { + "line": 202, + "column": 33 + }, + "end": { + "line": 202, + "column": 34 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "options", + "start": 8340, + "end": 8347, + "loc": { + "start": { + "line": 202, + "column": 34 + }, + "end": { + "line": 202, + "column": 41 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 8347, + "end": 8348, + "loc": { + "start": { + "line": 202, + "column": 41 + }, + "end": { + "line": 202, + "column": 42 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "inputName", + "start": 8348, + "end": 8357, + "loc": { + "start": { + "line": 202, + "column": 42 + }, + "end": { + "line": 202, + "column": 51 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 8357, + "end": 8358, + "loc": { + "start": { + "line": 202, + "column": 51 + }, + "end": { + "line": 202, + "column": 52 + } + } + }, + { + "type": "CommentBlock", + "value": "*\r\n * Enforce syncInstanceInputs, if set\r\n ", + "start": 8366, + "end": 8421, + "loc": { + "start": { + "line": 204, + "column": 4 + }, + "end": { + "line": 206, + "column": 7 + } + } + }, + { + "type": { + "label": "if", + "keyword": "if", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "if", + "start": 8427, + "end": 8429, + "loc": { + "start": { + "line": 207, + "column": 4 + }, + "end": { + "line": 207, + "column": 6 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 8429, + "end": 8430, + "loc": { + "start": { + "line": 207, + "column": 6 + }, + "end": { + "line": 207, + "column": 7 + } + } + }, + { + "type": { + "label": "this", + "keyword": "this", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "this", + "start": 8430, + "end": 8434, + "loc": { + "start": { + "line": 207, + "column": 7 + }, + "end": { + "line": 207, + "column": 11 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 8434, + "end": 8435, + "loc": { + "start": { + "line": 207, + "column": 11 + }, + "end": { + "line": 207, + "column": 12 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "options", + "start": 8435, + "end": 8442, + "loc": { + "start": { + "line": 207, + "column": 12 + }, + "end": { + "line": 207, + "column": 19 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 8442, + "end": 8443, + "loc": { + "start": { + "line": 207, + "column": 19 + }, + "end": { + "line": 207, + "column": 20 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "syncInstanceInputs", + "start": 8443, + "end": 8461, + "loc": { + "start": { + "line": 207, + "column": 20 + }, + "end": { + "line": 207, + "column": 38 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 8461, + "end": 8462, + "loc": { + "start": { + "line": 207, + "column": 38 + }, + "end": { + "line": 207, + "column": 39 + } + } + }, + { + "type": { + "label": "this", + "keyword": "this", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "this", + "start": 8470, + "end": 8474, + "loc": { + "start": { + "line": 208, + "column": 6 + }, + "end": { + "line": 208, + "column": 10 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 8474, + "end": 8475, + "loc": { + "start": { + "line": 208, + "column": 10 + }, + "end": { + "line": 208, + "column": 11 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "syncInstanceInputs", + "start": 8475, + "end": 8493, + "loc": { + "start": { + "line": 208, + "column": 11 + }, + "end": { + "line": 208, + "column": 29 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 8493, + "end": 8494, + "loc": { + "start": { + "line": 208, + "column": 29 + }, + "end": { + "line": 208, + "column": 30 + } + } + }, + { + "type": { + "label": "this", + "keyword": "this", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "this", + "start": 8494, + "end": 8498, + "loc": { + "start": { + "line": 208, + "column": 30 + }, + "end": { + "line": 208, + "column": 34 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 8498, + "end": 8499, + "loc": { + "start": { + "line": 208, + "column": 34 + }, + "end": { + "line": 208, + "column": 35 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "input", + "start": 8499, + "end": 8504, + "loc": { + "start": { + "line": 208, + "column": 35 + }, + "end": { + "line": 208, + "column": 40 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 8504, + "end": 8505, + "loc": { + "start": { + "line": 208, + "column": 40 + }, + "end": { + "line": 208, + "column": 41 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 8505, + "end": 8506, + "loc": { + "start": { + "line": 208, + "column": 41 + }, + "end": { + "line": 208, + "column": 42 + } + } + }, + { + "type": { + "label": "return", + "keyword": "return", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "return", + "start": 8514, + "end": 8520, + "loc": { + "start": { + "line": 210, + "column": 4 + }, + "end": { + "line": 210, + "column": 10 + } + } + }, + { + "type": { + "label": "this", + "keyword": "this", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "this", + "start": 8521, + "end": 8525, + "loc": { + "start": { + "line": 210, + "column": 11 + }, + "end": { + "line": 210, + "column": 15 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 8525, + "end": 8526, + "loc": { + "start": { + "line": 210, + "column": 15 + }, + "end": { + "line": 210, + "column": 16 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "input", + "start": 8526, + "end": 8531, + "loc": { + "start": { + "line": 210, + "column": 16 + }, + "end": { + "line": 210, + "column": 21 + } + } + }, + { + "type": { + "label": "[", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 8531, + "end": 8532, + "loc": { + "start": { + "line": 210, + "column": 21 + }, + "end": { + "line": 210, + "column": 22 + } + } + }, + { + "type": { + "label": "this", + "keyword": "this", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "this", + "start": 8532, + "end": 8536, + "loc": { + "start": { + "line": 210, + "column": 22 + }, + "end": { + "line": 210, + "column": 26 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 8536, + "end": 8537, + "loc": { + "start": { + "line": 210, + "column": 26 + }, + "end": { + "line": 210, + "column": 27 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "options", + "start": 8537, + "end": 8544, + "loc": { + "start": { + "line": 210, + "column": 27 + }, + "end": { + "line": 210, + "column": 34 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 8544, + "end": 8545, + "loc": { + "start": { + "line": 210, + "column": 34 + }, + "end": { + "line": 210, + "column": 35 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "inputName", + "start": 8545, + "end": 8554, + "loc": { + "start": { + "line": 210, + "column": 35 + }, + "end": { + "line": 210, + "column": 44 + } + } + }, + { + "type": { + "label": "]", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 8554, + "end": 8555, + "loc": { + "start": { + "line": 210, + "column": 44 + }, + "end": { + "line": 210, + "column": 45 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 8555, + "end": 8556, + "loc": { + "start": { + "line": 210, + "column": 45 + }, + "end": { + "line": 210, + "column": 46 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 8560, + "end": 8561, + "loc": { + "start": { + "line": 211, + "column": 2 + }, + "end": { + "line": 211, + "column": 3 + } + } + }, + { + "type": "CommentBlock", + "value": "*\r\n * Set the keyboard’s input.\r\n * @param {string} input the input value\r\n * @param {string} inputName optional - the internal input to select\r\n ", + "start": 8567, + "end": 8727, + "loc": { + "start": { + "line": 213, + "column": 2 + }, + "end": { + "line": 217, + "column": 5 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "setInput", + "start": 8731, + "end": 8739, + "loc": { + "start": { + "line": 218, + "column": 2 + }, + "end": { + "line": 218, + "column": 10 + } + } + }, + { + "type": { + "label": "=", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": true, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "=", + "start": 8740, + "end": 8741, + "loc": { + "start": { + "line": 218, + "column": 11 + }, + "end": { + "line": 218, + "column": 12 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 8742, + "end": 8743, + "loc": { + "start": { + "line": 218, + "column": 13 + }, + "end": { + "line": 218, + "column": 14 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "input", + "start": 8743, + "end": 8748, + "loc": { + "start": { + "line": 218, + "column": 14 + }, + "end": { + "line": 218, + "column": 19 + } + } + }, + { + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 8748, + "end": 8749, + "loc": { + "start": { + "line": 218, + "column": 19 + }, + "end": { + "line": 218, + "column": 20 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "inputName", + "start": 8750, + "end": 8759, + "loc": { + "start": { + "line": 218, + "column": 21 + }, + "end": { + "line": 218, + "column": 30 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 8759, + "end": 8760, + "loc": { + "start": { + "line": 218, + "column": 30 + }, + "end": { + "line": 218, + "column": 31 + } + } + }, + { + "type": { + "label": "=>", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 8761, + "end": 8763, + "loc": { + "start": { + "line": 218, + "column": 32 + }, + "end": { + "line": 218, + "column": 34 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 8764, + "end": 8765, + "loc": { + "start": { + "line": 218, + "column": 35 + }, + "end": { + "line": 218, + "column": 36 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "inputName", + "start": 8771, + "end": 8780, + "loc": { + "start": { + "line": 219, + "column": 4 + }, + "end": { + "line": 219, + "column": 13 + } + } + }, + { + "type": { + "label": "=", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": true, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "=", + "start": 8781, + "end": 8782, + "loc": { + "start": { + "line": 219, + "column": 14 + }, + "end": { + "line": 219, + "column": 15 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "inputName", + "start": 8783, + "end": 8792, + "loc": { + "start": { + "line": 219, + "column": 16 + }, + "end": { + "line": 219, + "column": 25 + } + } + }, + { + "type": { + "label": "||", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": 1, + "updateContext": null + }, + "value": "||", + "start": 8793, + "end": 8795, + "loc": { + "start": { + "line": 219, + "column": 26 + }, + "end": { + "line": 219, + "column": 28 + } + } + }, + { + "type": { + "label": "this", + "keyword": "this", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "this", + "start": 8796, + "end": 8800, + "loc": { + "start": { + "line": 219, + "column": 29 + }, + "end": { + "line": 219, + "column": 33 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 8800, + "end": 8801, + "loc": { + "start": { + "line": 219, + "column": 33 + }, + "end": { + "line": 219, + "column": 34 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "options", + "start": 8801, + "end": 8808, + "loc": { + "start": { + "line": 219, + "column": 34 + }, + "end": { + "line": 219, + "column": 41 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 8808, + "end": 8809, + "loc": { + "start": { + "line": 219, + "column": 41 + }, + "end": { + "line": 219, + "column": 42 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "inputName", + "start": 8809, + "end": 8818, + "loc": { + "start": { + "line": 219, + "column": 42 + }, + "end": { + "line": 219, + "column": 51 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 8818, + "end": 8819, + "loc": { + "start": { + "line": 219, + "column": 51 + }, + "end": { + "line": 219, + "column": 52 + } + } + }, + { + "type": { + "label": "this", + "keyword": "this", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "this", + "start": 8825, + "end": 8829, + "loc": { + "start": { + "line": 220, + "column": 4 + }, + "end": { + "line": 220, + "column": 8 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 8829, + "end": 8830, + "loc": { + "start": { + "line": 220, + "column": 8 + }, + "end": { + "line": 220, + "column": 9 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "input", + "start": 8830, + "end": 8835, + "loc": { + "start": { + "line": 220, + "column": 9 + }, + "end": { + "line": 220, + "column": 14 + } + } + }, + { + "type": { + "label": "[", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 8835, + "end": 8836, + "loc": { + "start": { + "line": 220, + "column": 14 + }, + "end": { + "line": 220, + "column": 15 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "inputName", + "start": 8836, + "end": 8845, + "loc": { + "start": { + "line": 220, + "column": 15 + }, + "end": { + "line": 220, + "column": 24 + } + } + }, + { + "type": { + "label": "]", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 8845, + "end": 8846, + "loc": { + "start": { + "line": 220, + "column": 24 + }, + "end": { + "line": 220, + "column": 25 + } + } + }, + { + "type": { + "label": "=", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": true, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "=", + "start": 8847, + "end": 8848, + "loc": { + "start": { + "line": 220, + "column": 26 + }, + "end": { + "line": 220, + "column": 27 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "input", + "start": 8849, + "end": 8854, + "loc": { + "start": { + "line": 220, + "column": 28 + }, + "end": { + "line": 220, + "column": 33 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 8854, + "end": 8855, + "loc": { + "start": { + "line": 220, + "column": 33 + }, + "end": { + "line": 220, + "column": 34 + } + } + }, + { + "type": "CommentBlock", + "value": "*\r\n * Enforce syncInstanceInputs, if set\r\n ", + "start": 8863, + "end": 8918, + "loc": { + "start": { + "line": 222, + "column": 4 + }, + "end": { + "line": 224, + "column": 7 + } + } + }, + { + "type": { + "label": "if", + "keyword": "if", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "if", + "start": 8924, + "end": 8926, + "loc": { + "start": { + "line": 225, + "column": 4 + }, + "end": { + "line": 225, + "column": 6 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 8926, + "end": 8927, + "loc": { + "start": { + "line": 225, + "column": 6 + }, + "end": { + "line": 225, + "column": 7 + } + } + }, + { + "type": { + "label": "this", + "keyword": "this", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "this", + "start": 8927, + "end": 8931, + "loc": { + "start": { + "line": 225, + "column": 7 + }, + "end": { + "line": 225, + "column": 11 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 8931, + "end": 8932, + "loc": { + "start": { + "line": 225, + "column": 11 + }, + "end": { + "line": 225, + "column": 12 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "options", + "start": 8932, + "end": 8939, + "loc": { + "start": { + "line": 225, + "column": 12 + }, + "end": { + "line": 225, + "column": 19 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 8939, + "end": 8940, + "loc": { + "start": { + "line": 225, + "column": 19 + }, + "end": { + "line": 225, + "column": 20 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "syncInstanceInputs", + "start": 8940, + "end": 8958, + "loc": { + "start": { + "line": 225, + "column": 20 + }, + "end": { + "line": 225, + "column": 38 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 8958, + "end": 8959, + "loc": { + "start": { + "line": 225, + "column": 38 + }, + "end": { + "line": 225, + "column": 39 + } + } + }, + { + "type": { + "label": "this", + "keyword": "this", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "this", + "start": 8967, + "end": 8971, + "loc": { + "start": { + "line": 226, + "column": 6 + }, + "end": { + "line": 226, + "column": 10 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 8971, + "end": 8972, + "loc": { + "start": { + "line": 226, + "column": 10 + }, + "end": { + "line": 226, + "column": 11 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "syncInstanceInputs", + "start": 8972, + "end": 8990, + "loc": { + "start": { + "line": 226, + "column": 11 + }, + "end": { + "line": 226, + "column": 29 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 8990, + "end": 8991, + "loc": { + "start": { + "line": 226, + "column": 29 + }, + "end": { + "line": 226, + "column": 30 + } + } + }, + { + "type": { + "label": "this", + "keyword": "this", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "this", + "start": 8991, + "end": 8995, + "loc": { + "start": { + "line": 226, + "column": 30 + }, + "end": { + "line": 226, + "column": 34 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 8995, + "end": 8996, + "loc": { + "start": { + "line": 226, + "column": 34 + }, + "end": { + "line": 226, + "column": 35 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "input", + "start": 8996, + "end": 9001, + "loc": { + "start": { + "line": 226, + "column": 35 + }, + "end": { + "line": 226, + "column": 40 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 9001, + "end": 9002, + "loc": { + "start": { + "line": 226, + "column": 40 + }, + "end": { + "line": 226, + "column": 41 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 9002, + "end": 9003, + "loc": { + "start": { + "line": 226, + "column": 41 + }, + "end": { + "line": 226, + "column": 42 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 9007, + "end": 9008, + "loc": { + "start": { + "line": 227, + "column": 2 + }, + "end": { + "line": 227, + "column": 3 + } + } + }, + { + "type": "CommentBlock", + "value": "*\r\n * Replace the input object (`keyboard.input`)\r\n * @param {object} inputObj The input object\r\n ", + "start": 9016, + "end": 9125, + "loc": { + "start": { + "line": 229, + "column": 2 + }, + "end": { + "line": 232, + "column": 5 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "replaceInput", + "start": 9129, + "end": 9141, + "loc": { + "start": { + "line": 233, + "column": 2 + }, + "end": { + "line": 233, + "column": 14 + } + } + }, + { + "type": { + "label": "=", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": true, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "=", + "start": 9142, + "end": 9143, + "loc": { + "start": { + "line": 233, + "column": 15 + }, + "end": { + "line": 233, + "column": 16 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 9144, + "end": 9145, + "loc": { + "start": { + "line": 233, + "column": 17 + }, + "end": { + "line": 233, + "column": 18 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "inputObj", + "start": 9145, + "end": 9153, + "loc": { + "start": { + "line": 233, + "column": 18 + }, + "end": { + "line": 233, + "column": 26 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 9153, + "end": 9154, + "loc": { + "start": { + "line": 233, + "column": 26 + }, + "end": { + "line": 233, + "column": 27 + } + } + }, + { + "type": { + "label": "=>", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 9155, + "end": 9157, + "loc": { + "start": { + "line": 233, + "column": 28 + }, + "end": { + "line": 233, + "column": 30 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 9158, + "end": 9159, + "loc": { + "start": { + "line": 233, + "column": 31 + }, + "end": { + "line": 233, + "column": 32 + } + } + }, + { + "type": { + "label": "this", + "keyword": "this", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "this", + "start": 9165, + "end": 9169, + "loc": { + "start": { + "line": 234, + "column": 4 + }, + "end": { + "line": 234, + "column": 8 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 9169, + "end": 9170, + "loc": { + "start": { + "line": 234, + "column": 8 + }, + "end": { + "line": 234, + "column": 9 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "input", + "start": 9170, + "end": 9175, + "loc": { + "start": { + "line": 234, + "column": 9 + }, + "end": { + "line": 234, + "column": 14 + } + } + }, + { + "type": { + "label": "=", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": true, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "=", + "start": 9176, + "end": 9177, + "loc": { + "start": { + "line": 234, + "column": 15 + }, + "end": { + "line": 234, + "column": 16 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "inputObj", + "start": 9178, + "end": 9186, + "loc": { + "start": { + "line": 234, + "column": 17 + }, + "end": { + "line": 234, + "column": 25 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 9186, + "end": 9187, + "loc": { + "start": { + "line": 234, + "column": 25 + }, + "end": { + "line": 234, + "column": 26 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 9191, + "end": 9192, + "loc": { + "start": { + "line": 235, + "column": 2 + }, + "end": { + "line": 235, + "column": 3 + } + } + }, + { + "type": "CommentBlock", + "value": "*\r\n * Set new option or modify existing ones after initialization. \r\n * @param {object} option The option to set\r\n ", + "start": 9198, + "end": 9324, + "loc": { + "start": { + "line": 237, + "column": 2 + }, + "end": { + "line": 240, + "column": 5 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "setOptions", + "start": 9328, + "end": 9338, + "loc": { + "start": { + "line": 241, + "column": 2 + }, + "end": { + "line": 241, + "column": 12 + } + } + }, + { + "type": { + "label": "=", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": true, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "=", + "start": 9339, + "end": 9340, + "loc": { + "start": { + "line": 241, + "column": 13 + }, + "end": { + "line": 241, + "column": 14 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "option", + "start": 9341, + "end": 9347, + "loc": { + "start": { + "line": 241, + "column": 15 + }, + "end": { + "line": 241, + "column": 21 + } + } + }, + { + "type": { + "label": "=>", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 9348, + "end": 9350, + "loc": { + "start": { + "line": 241, + "column": 22 + }, + "end": { + "line": 241, + "column": 24 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 9351, + "end": 9352, + "loc": { + "start": { + "line": 241, + "column": 25 + }, + "end": { + "line": 241, + "column": 26 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "option", + "start": 9358, + "end": 9364, + "loc": { + "start": { + "line": 242, + "column": 4 + }, + "end": { + "line": 242, + "column": 10 + } + } + }, + { + "type": { + "label": "=", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": true, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "=", + "start": 9365, + "end": 9366, + "loc": { + "start": { + "line": 242, + "column": 11 + }, + "end": { + "line": 242, + "column": 12 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "option", + "start": 9367, + "end": 9373, + "loc": { + "start": { + "line": 242, + "column": 13 + }, + "end": { + "line": 242, + "column": 19 + } + } + }, + { + "type": { + "label": "||", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": 1, + "updateContext": null + }, + "value": "||", + "start": 9374, + "end": 9376, + "loc": { + "start": { + "line": 242, + "column": 20 + }, + "end": { + "line": 242, + "column": 22 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 9377, + "end": 9378, + "loc": { + "start": { + "line": 242, + "column": 23 + }, + "end": { + "line": 242, + "column": 24 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 9378, + "end": 9379, + "loc": { + "start": { + "line": 242, + "column": 24 + }, + "end": { + "line": 242, + "column": 25 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 9379, + "end": 9380, + "loc": { + "start": { + "line": 242, + "column": 25 + }, + "end": { + "line": 242, + "column": 26 + } + } + }, + { + "type": { + "label": "this", + "keyword": "this", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "this", + "start": 9386, + "end": 9390, + "loc": { + "start": { + "line": 243, + "column": 4 + }, + "end": { + "line": 243, + "column": 8 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 9390, + "end": 9391, + "loc": { + "start": { + "line": 243, + "column": 8 + }, + "end": { + "line": 243, + "column": 9 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "options", + "start": 9391, + "end": 9398, + "loc": { + "start": { + "line": 243, + "column": 9 + }, + "end": { + "line": 243, + "column": 16 + } + } + }, + { + "type": { + "label": "=", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": true, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "=", + "start": 9399, + "end": 9400, + "loc": { + "start": { + "line": 243, + "column": 17 + }, + "end": { + "line": 243, + "column": 18 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "Object", + "start": 9401, + "end": 9407, + "loc": { + "start": { + "line": 243, + "column": 19 + }, + "end": { + "line": 243, + "column": 25 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 9407, + "end": 9408, + "loc": { + "start": { + "line": 243, + "column": 25 + }, + "end": { + "line": 243, + "column": 26 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "assign", + "start": 9408, + "end": 9414, + "loc": { + "start": { + "line": 243, + "column": 26 + }, + "end": { + "line": 243, + "column": 32 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 9414, + "end": 9415, + "loc": { + "start": { + "line": 243, + "column": 32 + }, + "end": { + "line": 243, + "column": 33 + } + } + }, + { + "type": { + "label": "this", + "keyword": "this", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "this", + "start": 9415, + "end": 9419, + "loc": { + "start": { + "line": 243, + "column": 33 + }, + "end": { + "line": 243, + "column": 37 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 9419, + "end": 9420, + "loc": { + "start": { + "line": 243, + "column": 37 + }, + "end": { + "line": 243, + "column": 38 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "options", + "start": 9420, + "end": 9427, + "loc": { + "start": { + "line": 243, + "column": 38 + }, + "end": { + "line": 243, + "column": 45 + } + } + }, + { + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 9427, + "end": 9428, + "loc": { + "start": { + "line": 243, + "column": 45 + }, + "end": { + "line": 243, + "column": 46 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "option", + "start": 9429, + "end": 9435, + "loc": { + "start": { + "line": 243, + "column": 47 + }, + "end": { + "line": 243, + "column": 53 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 9435, + "end": 9436, + "loc": { + "start": { + "line": 243, + "column": 53 + }, + "end": { + "line": 243, + "column": 54 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 9436, + "end": 9437, + "loc": { + "start": { + "line": 243, + "column": 54 + }, + "end": { + "line": 243, + "column": 55 + } + } + }, + { + "type": { + "label": "this", + "keyword": "this", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "this", + "start": 9443, + "end": 9447, + "loc": { + "start": { + "line": 244, + "column": 4 + }, + "end": { + "line": 244, + "column": 8 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 9447, + "end": 9448, + "loc": { + "start": { + "line": 244, + "column": 8 + }, + "end": { + "line": 244, + "column": 9 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "render", + "start": 9448, + "end": 9454, + "loc": { + "start": { + "line": 244, + "column": 9 + }, + "end": { + "line": 244, + "column": 15 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 9454, + "end": 9455, + "loc": { + "start": { + "line": 244, + "column": 15 + }, + "end": { + "line": 244, + "column": 16 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 9455, + "end": 9456, + "loc": { + "start": { + "line": 244, + "column": 16 + }, + "end": { + "line": 244, + "column": 17 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 9456, + "end": 9457, + "loc": { + "start": { + "line": 244, + "column": 17 + }, + "end": { + "line": 244, + "column": 18 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 9461, + "end": 9462, + "loc": { + "start": { + "line": 245, + "column": 2 + }, + "end": { + "line": 245, + "column": 3 + } + } + }, + { + "type": "CommentBlock", + "value": "*\r\n * Remove all keyboard rows and reset keyboard values.\r\n * Used interally between re-renders.\r\n ", + "start": 9468, + "end": 9577, + "loc": { + "start": { + "line": 247, + "column": 2 + }, + "end": { + "line": 250, + "column": 5 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "clear", + "start": 9581, + "end": 9586, + "loc": { + "start": { + "line": 251, + "column": 2 + }, + "end": { + "line": 251, + "column": 7 + } + } + }, + { + "type": { + "label": "=", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": true, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "=", + "start": 9587, + "end": 9588, + "loc": { + "start": { + "line": 251, + "column": 8 + }, + "end": { + "line": 251, + "column": 9 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 9589, + "end": 9590, + "loc": { + "start": { + "line": 251, + "column": 10 + }, + "end": { + "line": 251, + "column": 11 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 9590, + "end": 9591, + "loc": { + "start": { + "line": 251, + "column": 11 + }, + "end": { + "line": 251, + "column": 12 + } + } + }, + { + "type": { + "label": "=>", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 9592, + "end": 9594, + "loc": { + "start": { + "line": 251, + "column": 13 + }, + "end": { + "line": 251, + "column": 15 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 9595, + "end": 9596, + "loc": { + "start": { + "line": 251, + "column": 16 + }, + "end": { + "line": 251, + "column": 17 + } + } + }, + { + "type": { + "label": "this", + "keyword": "this", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "this", + "start": 9602, + "end": 9606, + "loc": { + "start": { + "line": 252, + "column": 4 + }, + "end": { + "line": 252, + "column": 8 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 9606, + "end": 9607, + "loc": { + "start": { + "line": 252, + "column": 8 + }, + "end": { + "line": 252, + "column": 9 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "keyboardDOM", + "start": 9607, + "end": 9618, + "loc": { + "start": { + "line": 252, + "column": 9 + }, + "end": { + "line": 252, + "column": 20 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 9618, + "end": 9619, + "loc": { + "start": { + "line": 252, + "column": 20 + }, + "end": { + "line": 252, + "column": 21 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "innerHTML", + "start": 9619, + "end": 9628, + "loc": { + "start": { + "line": 252, + "column": 21 + }, + "end": { + "line": 252, + "column": 30 + } + } + }, + { + "type": { + "label": "=", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": true, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "=", + "start": 9629, + "end": 9630, + "loc": { + "start": { + "line": 252, + "column": 31 + }, + "end": { + "line": 252, + "column": 32 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "", + "start": 9631, + "end": 9633, + "loc": { + "start": { + "line": 252, + "column": 33 + }, + "end": { + "line": 252, + "column": 35 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 9633, + "end": 9634, + "loc": { + "start": { + "line": 252, + "column": 35 + }, + "end": { + "line": 252, + "column": 36 + } + } + }, + { + "type": { + "label": "this", + "keyword": "this", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "this", + "start": 9640, + "end": 9644, + "loc": { + "start": { + "line": 253, + "column": 4 + }, + "end": { + "line": 253, + "column": 8 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 9644, + "end": 9645, + "loc": { + "start": { + "line": 253, + "column": 8 + }, + "end": { + "line": 253, + "column": 9 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "keyboardDOM", + "start": 9645, + "end": 9656, + "loc": { + "start": { + "line": 253, + "column": 9 + }, + "end": { + "line": 253, + "column": 20 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 9656, + "end": 9657, + "loc": { + "start": { + "line": 253, + "column": 20 + }, + "end": { + "line": 253, + "column": 21 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "className", + "start": 9657, + "end": 9666, + "loc": { + "start": { + "line": 253, + "column": 21 + }, + "end": { + "line": 253, + "column": 30 + } + } + }, + { + "type": { + "label": "=", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": true, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "=", + "start": 9667, + "end": 9668, + "loc": { + "start": { + "line": 253, + "column": 31 + }, + "end": { + "line": 253, + "column": 32 + } + } + }, + { + "type": { + "label": "this", + "keyword": "this", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "this", + "start": 9669, + "end": 9673, + "loc": { + "start": { + "line": 253, + "column": 33 + }, + "end": { + "line": 253, + "column": 37 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 9673, + "end": 9674, + "loc": { + "start": { + "line": 253, + "column": 37 + }, + "end": { + "line": 253, + "column": 38 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "keyboardDOMClass", + "start": 9674, + "end": 9690, + "loc": { + "start": { + "line": 253, + "column": 38 + }, + "end": { + "line": 253, + "column": 54 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 9690, + "end": 9691, + "loc": { + "start": { + "line": 253, + "column": 54 + }, + "end": { + "line": 253, + "column": 55 + } + } + }, + { + "type": { + "label": "this", + "keyword": "this", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "this", + "start": 9697, + "end": 9701, + "loc": { + "start": { + "line": 254, + "column": 4 + }, + "end": { + "line": 254, + "column": 8 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 9701, + "end": 9702, + "loc": { + "start": { + "line": 254, + "column": 8 + }, + "end": { + "line": 254, + "column": 9 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "buttonElements", + "start": 9702, + "end": 9716, + "loc": { + "start": { + "line": 254, + "column": 9 + }, + "end": { + "line": 254, + "column": 23 + } + } + }, + { + "type": { + "label": "=", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": true, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "=", + "start": 9717, + "end": 9718, + "loc": { + "start": { + "line": 254, + "column": 24 + }, + "end": { + "line": 254, + "column": 25 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 9719, + "end": 9720, + "loc": { + "start": { + "line": 254, + "column": 26 + }, + "end": { + "line": 254, + "column": 27 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 9720, + "end": 9721, + "loc": { + "start": { + "line": 254, + "column": 27 + }, + "end": { + "line": 254, + "column": 28 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 9721, + "end": 9722, + "loc": { + "start": { + "line": 254, + "column": 28 + }, + "end": { + "line": 254, + "column": 29 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 9726, + "end": 9727, + "loc": { + "start": { + "line": 255, + "column": 2 + }, + "end": { + "line": 255, + "column": 3 + } + } + }, + { + "type": "CommentBlock", + "value": "*\r\n * Send a command to all simple-keyboard instances at once (if you have multiple instances).\r\n * @param {function(instance: object, key: string)} callback Function to run on every instance\r\n ", + "start": 9733, + "end": 9938, + "loc": { + "start": { + "line": 257, + "column": 2 + }, + "end": { + "line": 260, + "column": 5 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "dispatch", + "start": 9942, + "end": 9950, + "loc": { + "start": { + "line": 261, + "column": 2 + }, + "end": { + "line": 261, + "column": 10 + } + } + }, + { + "type": { + "label": "=", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": true, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "=", + "start": 9951, + "end": 9952, + "loc": { + "start": { + "line": 261, + "column": 11 + }, + "end": { + "line": 261, + "column": 12 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 9953, + "end": 9954, + "loc": { + "start": { + "line": 261, + "column": 13 + }, + "end": { + "line": 261, + "column": 14 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "callback", + "start": 9954, + "end": 9962, + "loc": { + "start": { + "line": 261, + "column": 14 + }, + "end": { + "line": 261, + "column": 22 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 9962, + "end": 9963, + "loc": { + "start": { + "line": 261, + "column": 22 + }, + "end": { + "line": 261, + "column": 23 + } + } + }, + { + "type": { + "label": "=>", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 9964, + "end": 9966, + "loc": { + "start": { + "line": 261, + "column": 24 + }, + "end": { + "line": 261, + "column": 26 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 9967, + "end": 9968, + "loc": { + "start": { + "line": 261, + "column": 27 + }, + "end": { + "line": 261, + "column": 28 + } + } + }, + { + "type": { + "label": "if", + "keyword": "if", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "if", + "start": 9974, + "end": 9976, + "loc": { + "start": { + "line": 262, + "column": 4 + }, + "end": { + "line": 262, + "column": 6 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 9976, + "end": 9977, + "loc": { + "start": { + "line": 262, + "column": 6 + }, + "end": { + "line": 262, + "column": 7 + } + } + }, + { + "type": { + "label": "prefix", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": true, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "!", + "start": 9977, + "end": 9978, + "loc": { + "start": { + "line": 262, + "column": 7 + }, + "end": { + "line": 262, + "column": 8 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "window", + "start": 9978, + "end": 9984, + "loc": { + "start": { + "line": 262, + "column": 8 + }, + "end": { + "line": 262, + "column": 14 + } + } + }, + { + "type": { + "label": "[", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 9984, + "end": 9985, + "loc": { + "start": { + "line": 262, + "column": 14 + }, + "end": { + "line": 262, + "column": 15 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "SimpleKeyboardInstances", + "start": 9985, + "end": 10010, + "loc": { + "start": { + "line": 262, + "column": 15 + }, + "end": { + "line": 262, + "column": 40 + } + } + }, + { + "type": { + "label": "]", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 10010, + "end": 10011, + "loc": { + "start": { + "line": 262, + "column": 40 + }, + "end": { + "line": 262, + "column": 41 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 10011, + "end": 10012, + "loc": { + "start": { + "line": 262, + "column": 41 + }, + "end": { + "line": 262, + "column": 42 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 10012, + "end": 10013, + "loc": { + "start": { + "line": 262, + "column": 42 + }, + "end": { + "line": 262, + "column": 43 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "console", + "start": 10021, + "end": 10028, + "loc": { + "start": { + "line": 263, + "column": 6 + }, + "end": { + "line": 263, + "column": 13 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 10028, + "end": 10029, + "loc": { + "start": { + "line": 263, + "column": 13 + }, + "end": { + "line": 263, + "column": 14 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "warn", + "start": 10029, + "end": 10033, + "loc": { + "start": { + "line": 263, + "column": 14 + }, + "end": { + "line": 263, + "column": 18 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 10033, + "end": 10034, + "loc": { + "start": { + "line": 263, + "column": 18 + }, + "end": { + "line": 263, + "column": 19 + } + } + }, + { + "type": { + "label": "`", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 10034, + "end": 10035, + "loc": { + "start": { + "line": 263, + "column": 19 + }, + "end": { + "line": 263, + "column": 20 + } + } + }, + { + "type": { + "label": "template", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "SimpleKeyboardInstances is not defined. Dispatch cannot be called.", + "start": 10035, + "end": 10101, + "loc": { + "start": { + "line": 263, + "column": 20 + }, + "end": { + "line": 263, + "column": 86 + } + } + }, + { + "type": { + "label": "`", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 10101, + "end": 10102, + "loc": { + "start": { + "line": 263, + "column": 86 + }, + "end": { + "line": 263, + "column": 87 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 10102, + "end": 10103, + "loc": { + "start": { + "line": 263, + "column": 87 + }, + "end": { + "line": 263, + "column": 88 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 10103, + "end": 10104, + "loc": { + "start": { + "line": 263, + "column": 88 + }, + "end": { + "line": 263, + "column": 89 + } + } + }, + { + "type": { + "label": "throw", + "keyword": "throw", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "throw", + "start": 10112, + "end": 10117, + "loc": { + "start": { + "line": 264, + "column": 6 + }, + "end": { + "line": 264, + "column": 11 + } + } + }, + { + "type": { + "label": "new", + "keyword": "new", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "new", + "start": 10118, + "end": 10121, + "loc": { + "start": { + "line": 264, + "column": 12 + }, + "end": { + "line": 264, + "column": 15 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "Error", + "start": 10122, + "end": 10127, + "loc": { + "start": { + "line": 264, + "column": 16 + }, + "end": { + "line": 264, + "column": 21 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 10127, + "end": 10128, + "loc": { + "start": { + "line": 264, + "column": 21 + }, + "end": { + "line": 264, + "column": 22 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "INSTANCES_VAR_ERROR", + "start": 10128, + "end": 10149, + "loc": { + "start": { + "line": 264, + "column": 22 + }, + "end": { + "line": 264, + "column": 43 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 10149, + "end": 10150, + "loc": { + "start": { + "line": 264, + "column": 43 + }, + "end": { + "line": 264, + "column": 44 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 10150, + "end": 10151, + "loc": { + "start": { + "line": 264, + "column": 44 + }, + "end": { + "line": 264, + "column": 45 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 10157, + "end": 10158, + "loc": { + "start": { + "line": 265, + "column": 4 + }, + "end": { + "line": 265, + "column": 5 + } + } + }, + { + "type": { + "label": "return", + "keyword": "return", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "return", + "start": 10170, + "end": 10176, + "loc": { + "start": { + "line": 267, + "column": 4 + }, + "end": { + "line": 267, + "column": 10 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "Object", + "start": 10177, + "end": 10183, + "loc": { + "start": { + "line": 267, + "column": 11 + }, + "end": { + "line": 267, + "column": 17 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 10183, + "end": 10184, + "loc": { + "start": { + "line": 267, + "column": 17 + }, + "end": { + "line": 267, + "column": 18 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "keys", + "start": 10184, + "end": 10188, + "loc": { + "start": { + "line": 267, + "column": 18 + }, + "end": { + "line": 267, + "column": 22 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 10188, + "end": 10189, + "loc": { + "start": { + "line": 267, + "column": 22 + }, + "end": { + "line": 267, + "column": 23 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "window", + "start": 10189, + "end": 10195, + "loc": { + "start": { + "line": 267, + "column": 23 + }, + "end": { + "line": 267, + "column": 29 + } + } + }, + { + "type": { + "label": "[", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 10195, + "end": 10196, + "loc": { + "start": { + "line": 267, + "column": 29 + }, + "end": { + "line": 267, + "column": 30 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "SimpleKeyboardInstances", + "start": 10196, + "end": 10221, + "loc": { + "start": { + "line": 267, + "column": 30 + }, + "end": { + "line": 267, + "column": 55 + } + } + }, + { + "type": { + "label": "]", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 10221, + "end": 10222, + "loc": { + "start": { + "line": 267, + "column": 55 + }, + "end": { + "line": 267, + "column": 56 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 10222, + "end": 10223, + "loc": { + "start": { + "line": 267, + "column": 56 + }, + "end": { + "line": 267, + "column": 57 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 10223, + "end": 10224, + "loc": { + "start": { + "line": 267, + "column": 57 + }, + "end": { + "line": 267, + "column": 58 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "forEach", + "start": 10224, + "end": 10231, + "loc": { + "start": { + "line": 267, + "column": 58 + }, + "end": { + "line": 267, + "column": 65 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 10231, + "end": 10232, + "loc": { + "start": { + "line": 267, + "column": 65 + }, + "end": { + "line": 267, + "column": 66 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 10232, + "end": 10233, + "loc": { + "start": { + "line": 267, + "column": 66 + }, + "end": { + "line": 267, + "column": 67 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "key", + "start": 10233, + "end": 10236, + "loc": { + "start": { + "line": 267, + "column": 67 + }, + "end": { + "line": 267, + "column": 70 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 10236, + "end": 10237, + "loc": { + "start": { + "line": 267, + "column": 70 + }, + "end": { + "line": 267, + "column": 71 + } + } + }, + { + "type": { + "label": "=>", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 10238, + "end": 10240, + "loc": { + "start": { + "line": 267, + "column": 72 + }, + "end": { + "line": 267, + "column": 74 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 10241, + "end": 10242, + "loc": { + "start": { + "line": 267, + "column": 75 + }, + "end": { + "line": 267, + "column": 76 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "callback", + "start": 10250, + "end": 10258, + "loc": { + "start": { + "line": 268, + "column": 6 + }, + "end": { + "line": 268, + "column": 14 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 10258, + "end": 10259, + "loc": { + "start": { + "line": 268, + "column": 14 + }, + "end": { + "line": 268, + "column": 15 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "window", + "start": 10259, + "end": 10265, + "loc": { + "start": { + "line": 268, + "column": 15 + }, + "end": { + "line": 268, + "column": 21 + } + } + }, + { + "type": { + "label": "[", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 10265, + "end": 10266, + "loc": { + "start": { + "line": 268, + "column": 21 + }, + "end": { + "line": 268, + "column": 22 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "SimpleKeyboardInstances", + "start": 10266, + "end": 10291, + "loc": { + "start": { + "line": 268, + "column": 22 + }, + "end": { + "line": 268, + "column": 47 + } + } + }, + { + "type": { + "label": "]", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 10291, + "end": 10292, + "loc": { + "start": { + "line": 268, + "column": 47 + }, + "end": { + "line": 268, + "column": 48 + } + } + }, + { + "type": { + "label": "[", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 10292, + "end": 10293, + "loc": { + "start": { + "line": 268, + "column": 48 + }, + "end": { + "line": 268, + "column": 49 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "key", + "start": 10293, + "end": 10296, + "loc": { + "start": { + "line": 268, + "column": 49 + }, + "end": { + "line": 268, + "column": 52 + } + } + }, + { + "type": { + "label": "]", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 10296, + "end": 10297, + "loc": { + "start": { + "line": 268, + "column": 52 + }, + "end": { + "line": 268, + "column": 53 + } + } + }, + { + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 10297, + "end": 10298, + "loc": { + "start": { + "line": 268, + "column": 53 + }, + "end": { + "line": 268, + "column": 54 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "key", + "start": 10299, + "end": 10302, + "loc": { + "start": { + "line": 268, + "column": 55 + }, + "end": { + "line": 268, + "column": 58 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 10302, + "end": 10303, + "loc": { + "start": { + "line": 268, + "column": 58 + }, + "end": { + "line": 268, + "column": 59 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 10303, + "end": 10304, + "loc": { + "start": { + "line": 268, + "column": 59 + }, + "end": { + "line": 268, + "column": 60 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 10310, + "end": 10311, + "loc": { + "start": { + "line": 269, + "column": 4 + }, + "end": { + "line": 269, + "column": 5 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 10311, + "end": 10312, + "loc": { + "start": { + "line": 269, + "column": 5 + }, + "end": { + "line": 269, + "column": 6 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 10316, + "end": 10317, + "loc": { + "start": { + "line": 270, + "column": 2 + }, + "end": { + "line": 270, + "column": 3 + } + } + }, + { + "type": "CommentBlock", + "value": "*\r\n * Adds/Modifies an entry to the `buttonTheme`. Basically a way to add a class to a button.\r\n * @param {string} buttons List of buttons to select (separated by a space).\r\n * @param {string} className Classes to give to the selected buttons (separated by space).\r\n ", + "start": 10323, + "end": 10604, + "loc": { + "start": { + "line": 272, + "column": 2 + }, + "end": { + "line": 276, + "column": 5 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "addButtonTheme", + "start": 10608, + "end": 10622, + "loc": { + "start": { + "line": 277, + "column": 2 + }, + "end": { + "line": 277, + "column": 16 + } + } + }, + { + "type": { + "label": "=", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": true, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "=", + "start": 10623, + "end": 10624, + "loc": { + "start": { + "line": 277, + "column": 17 + }, + "end": { + "line": 277, + "column": 18 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 10625, + "end": 10626, + "loc": { + "start": { + "line": 277, + "column": 19 + }, + "end": { + "line": 277, + "column": 20 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "buttons", + "start": 10626, + "end": 10633, + "loc": { + "start": { + "line": 277, + "column": 20 + }, + "end": { + "line": 277, + "column": 27 + } + } + }, + { + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 10633, + "end": 10634, + "loc": { + "start": { + "line": 277, + "column": 27 + }, + "end": { + "line": 277, + "column": 28 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "className", + "start": 10635, + "end": 10644, + "loc": { + "start": { + "line": 277, + "column": 29 + }, + "end": { + "line": 277, + "column": 38 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 10644, + "end": 10645, + "loc": { + "start": { + "line": 277, + "column": 38 + }, + "end": { + "line": 277, + "column": 39 + } + } + }, + { + "type": { + "label": "=>", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 10646, + "end": 10648, + "loc": { + "start": { + "line": 277, + "column": 40 + }, + "end": { + "line": 277, + "column": 42 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 10649, + "end": 10650, + "loc": { + "start": { + "line": 277, + "column": 43 + }, + "end": { + "line": 277, + "column": 44 + } + } + }, + { + "type": { + "label": "if", + "keyword": "if", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "if", + "start": 10656, + "end": 10658, + "loc": { + "start": { + "line": 278, + "column": 4 + }, + "end": { + "line": 278, + "column": 6 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 10658, + "end": 10659, + "loc": { + "start": { + "line": 278, + "column": 6 + }, + "end": { + "line": 278, + "column": 7 + } + } + }, + { + "type": { + "label": "prefix", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": true, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "!", + "start": 10659, + "end": 10660, + "loc": { + "start": { + "line": 278, + "column": 7 + }, + "end": { + "line": 278, + "column": 8 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "className", + "start": 10660, + "end": 10669, + "loc": { + "start": { + "line": 278, + "column": 8 + }, + "end": { + "line": 278, + "column": 17 + } + } + }, + { + "type": { + "label": "||", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": 1, + "updateContext": null + }, + "value": "||", + "start": 10670, + "end": 10672, + "loc": { + "start": { + "line": 278, + "column": 18 + }, + "end": { + "line": 278, + "column": 20 + } + } + }, + { + "type": { + "label": "prefix", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": true, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "!", + "start": 10673, + "end": 10674, + "loc": { + "start": { + "line": 278, + "column": 21 + }, + "end": { + "line": 278, + "column": 22 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "buttons", + "start": 10674, + "end": 10681, + "loc": { + "start": { + "line": 278, + "column": 22 + }, + "end": { + "line": 278, + "column": 29 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 10681, + "end": 10682, + "loc": { + "start": { + "line": 278, + "column": 29 + }, + "end": { + "line": 278, + "column": 30 + } + } + }, + { + "type": { + "label": "return", + "keyword": "return", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "return", + "start": 10690, + "end": 10696, + "loc": { + "start": { + "line": 279, + "column": 6 + }, + "end": { + "line": 279, + "column": 12 + } + } + }, + { + "type": { + "label": "false", + "keyword": "false", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "false", + "start": 10697, + "end": 10702, + "loc": { + "start": { + "line": 279, + "column": 13 + }, + "end": { + "line": 279, + "column": 18 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 10702, + "end": 10703, + "loc": { + "start": { + "line": 279, + "column": 18 + }, + "end": { + "line": 279, + "column": 19 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "buttons", + "start": 10711, + "end": 10718, + "loc": { + "start": { + "line": 281, + "column": 4 + }, + "end": { + "line": 281, + "column": 11 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 10718, + "end": 10719, + "loc": { + "start": { + "line": 281, + "column": 11 + }, + "end": { + "line": 281, + "column": 12 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "split", + "start": 10719, + "end": 10724, + "loc": { + "start": { + "line": 281, + "column": 12 + }, + "end": { + "line": 281, + "column": 17 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 10724, + "end": 10725, + "loc": { + "start": { + "line": 281, + "column": 17 + }, + "end": { + "line": 281, + "column": 18 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": " ", + "start": 10725, + "end": 10728, + "loc": { + "start": { + "line": 281, + "column": 18 + }, + "end": { + "line": 281, + "column": 21 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 10728, + "end": 10729, + "loc": { + "start": { + "line": 281, + "column": 21 + }, + "end": { + "line": 281, + "column": 22 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 10729, + "end": 10730, + "loc": { + "start": { + "line": 281, + "column": 22 + }, + "end": { + "line": 281, + "column": 23 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "forEach", + "start": 10730, + "end": 10737, + "loc": { + "start": { + "line": 281, + "column": 23 + }, + "end": { + "line": 281, + "column": 30 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 10737, + "end": 10738, + "loc": { + "start": { + "line": 281, + "column": 30 + }, + "end": { + "line": 281, + "column": 31 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "button", + "start": 10738, + "end": 10744, + "loc": { + "start": { + "line": 281, + "column": 31 + }, + "end": { + "line": 281, + "column": 37 + } + } + }, + { + "type": { + "label": "=>", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 10745, + "end": 10747, + "loc": { + "start": { + "line": 281, + "column": 38 + }, + "end": { + "line": 281, + "column": 40 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 10748, + "end": 10749, + "loc": { + "start": { + "line": 281, + "column": 41 + }, + "end": { + "line": 281, + "column": 42 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "className", + "start": 10757, + "end": 10766, + "loc": { + "start": { + "line": 282, + "column": 6 + }, + "end": { + "line": 282, + "column": 15 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 10766, + "end": 10767, + "loc": { + "start": { + "line": 282, + "column": 15 + }, + "end": { + "line": 282, + "column": 16 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "split", + "start": 10767, + "end": 10772, + "loc": { + "start": { + "line": 282, + "column": 16 + }, + "end": { + "line": 282, + "column": 21 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 10772, + "end": 10773, + "loc": { + "start": { + "line": 282, + "column": 21 + }, + "end": { + "line": 282, + "column": 22 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": " ", + "start": 10773, + "end": 10776, + "loc": { + "start": { + "line": 282, + "column": 22 + }, + "end": { + "line": 282, + "column": 25 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 10776, + "end": 10777, + "loc": { + "start": { + "line": 282, + "column": 25 + }, + "end": { + "line": 282, + "column": 26 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 10777, + "end": 10778, + "loc": { + "start": { + "line": 282, + "column": 26 + }, + "end": { + "line": 282, + "column": 27 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "forEach", + "start": 10778, + "end": 10785, + "loc": { + "start": { + "line": 282, + "column": 27 + }, + "end": { + "line": 282, + "column": 34 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 10785, + "end": 10786, + "loc": { + "start": { + "line": 282, + "column": 34 + }, + "end": { + "line": 282, + "column": 35 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "classNameItem", + "start": 10786, + "end": 10799, + "loc": { + "start": { + "line": 282, + "column": 35 + }, + "end": { + "line": 282, + "column": 48 + } + } + }, + { + "type": { + "label": "=>", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 10800, + "end": 10802, + "loc": { + "start": { + "line": 282, + "column": 49 + }, + "end": { + "line": 282, + "column": 51 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 10803, + "end": 10804, + "loc": { + "start": { + "line": 282, + "column": 52 + }, + "end": { + "line": 282, + "column": 53 + } + } + }, + { + "type": { + "label": "if", + "keyword": "if", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "if", + "start": 10814, + "end": 10816, + "loc": { + "start": { + "line": 283, + "column": 8 + }, + "end": { + "line": 283, + "column": 10 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 10816, + "end": 10817, + "loc": { + "start": { + "line": 283, + "column": 10 + }, + "end": { + "line": 283, + "column": 11 + } + } + }, + { + "type": { + "label": "prefix", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": true, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "!", + "start": 10817, + "end": 10818, + "loc": { + "start": { + "line": 283, + "column": 11 + }, + "end": { + "line": 283, + "column": 12 + } + } + }, + { + "type": { + "label": "this", + "keyword": "this", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "this", + "start": 10818, + "end": 10822, + "loc": { + "start": { + "line": 283, + "column": 12 + }, + "end": { + "line": 283, + "column": 16 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 10822, + "end": 10823, + "loc": { + "start": { + "line": 283, + "column": 16 + }, + "end": { + "line": 283, + "column": 17 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "options", + "start": 10823, + "end": 10830, + "loc": { + "start": { + "line": 283, + "column": 17 + }, + "end": { + "line": 283, + "column": 24 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 10830, + "end": 10831, + "loc": { + "start": { + "line": 283, + "column": 24 + }, + "end": { + "line": 283, + "column": 25 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "buttonTheme", + "start": 10831, + "end": 10842, + "loc": { + "start": { + "line": 283, + "column": 25 + }, + "end": { + "line": 283, + "column": 36 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 10842, + "end": 10843, + "loc": { + "start": { + "line": 283, + "column": 36 + }, + "end": { + "line": 283, + "column": 37 + } + } + }, + { + "type": { + "label": "this", + "keyword": "this", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "this", + "start": 10855, + "end": 10859, + "loc": { + "start": { + "line": 284, + "column": 10 + }, + "end": { + "line": 284, + "column": 14 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 10859, + "end": 10860, + "loc": { + "start": { + "line": 284, + "column": 14 + }, + "end": { + "line": 284, + "column": 15 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "options", + "start": 10860, + "end": 10867, + "loc": { + "start": { + "line": 284, + "column": 15 + }, + "end": { + "line": 284, + "column": 22 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 10867, + "end": 10868, + "loc": { + "start": { + "line": 284, + "column": 22 + }, + "end": { + "line": 284, + "column": 23 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "buttonTheme", + "start": 10868, + "end": 10879, + "loc": { + "start": { + "line": 284, + "column": 23 + }, + "end": { + "line": 284, + "column": 34 + } + } + }, + { + "type": { + "label": "=", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": true, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "=", + "start": 10880, + "end": 10881, + "loc": { + "start": { + "line": 284, + "column": 35 + }, + "end": { + "line": 284, + "column": 36 + } + } + }, + { + "type": { + "label": "[", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 10882, + "end": 10883, + "loc": { + "start": { + "line": 284, + "column": 37 + }, + "end": { + "line": 284, + "column": 38 + } + } + }, + { + "type": { + "label": "]", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 10883, + "end": 10884, + "loc": { + "start": { + "line": 284, + "column": 38 + }, + "end": { + "line": 284, + "column": 39 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 10884, + "end": 10885, + "loc": { + "start": { + "line": 284, + "column": 39 + }, + "end": { + "line": 284, + "column": 40 + } + } + }, + { + "type": { + "label": "let", + "keyword": "let", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "let", + "start": 10897, + "end": 10900, + "loc": { + "start": { + "line": 286, + "column": 8 + }, + "end": { + "line": 286, + "column": 11 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "classNameFound", + "start": 10901, + "end": 10915, + "loc": { + "start": { + "line": 286, + "column": 12 + }, + "end": { + "line": 286, + "column": 26 + } + } + }, + { + "type": { + "label": "=", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": true, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "=", + "start": 10916, + "end": 10917, + "loc": { + "start": { + "line": 286, + "column": 27 + }, + "end": { + "line": 286, + "column": 28 + } + } + }, + { + "type": { + "label": "false", + "keyword": "false", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "false", + "start": 10918, + "end": 10923, + "loc": { + "start": { + "line": 286, + "column": 29 + }, + "end": { + "line": 286, + "column": 34 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 10923, + "end": 10924, + "loc": { + "start": { + "line": 286, + "column": 34 + }, + "end": { + "line": 286, + "column": 35 + } + } + }, + { + "type": "CommentBlock", + "value": "*\r\n * If class is already defined, we add button to class definition\r\n ", + "start": 10938, + "end": 11029, + "loc": { + "start": { + "line": 288, + "column": 8 + }, + "end": { + "line": 290, + "column": 11 + } + } + }, + { + "type": { + "label": "this", + "keyword": "this", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "this", + "start": 11039, + "end": 11043, + "loc": { + "start": { + "line": 291, + "column": 8 + }, + "end": { + "line": 291, + "column": 12 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 11043, + "end": 11044, + "loc": { + "start": { + "line": 291, + "column": 12 + }, + "end": { + "line": 291, + "column": 13 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "options", + "start": 11044, + "end": 11051, + "loc": { + "start": { + "line": 291, + "column": 13 + }, + "end": { + "line": 291, + "column": 20 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 11051, + "end": 11052, + "loc": { + "start": { + "line": 291, + "column": 20 + }, + "end": { + "line": 291, + "column": 21 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "buttonTheme", + "start": 11052, + "end": 11063, + "loc": { + "start": { + "line": 291, + "column": 21 + }, + "end": { + "line": 291, + "column": 32 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 11063, + "end": 11064, + "loc": { + "start": { + "line": 291, + "column": 32 + }, + "end": { + "line": 291, + "column": 33 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "map", + "start": 11064, + "end": 11067, + "loc": { + "start": { + "line": 291, + "column": 33 + }, + "end": { + "line": 291, + "column": 36 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 11067, + "end": 11068, + "loc": { + "start": { + "line": 291, + "column": 36 + }, + "end": { + "line": 291, + "column": 37 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "buttonTheme", + "start": 11068, + "end": 11079, + "loc": { + "start": { + "line": 291, + "column": 37 + }, + "end": { + "line": 291, + "column": 48 + } + } + }, + { + "type": { + "label": "=>", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 11080, + "end": 11082, + "loc": { + "start": { + "line": 291, + "column": 49 + }, + "end": { + "line": 291, + "column": 51 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 11083, + "end": 11084, + "loc": { + "start": { + "line": 291, + "column": 52 + }, + "end": { + "line": 291, + "column": 53 + } + } + }, + { + "type": { + "label": "if", + "keyword": "if", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "if", + "start": 11098, + "end": 11100, + "loc": { + "start": { + "line": 293, + "column": 10 + }, + "end": { + "line": 293, + "column": 12 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 11100, + "end": 11101, + "loc": { + "start": { + "line": 293, + "column": 12 + }, + "end": { + "line": 293, + "column": 13 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "buttonTheme", + "start": 11101, + "end": 11112, + "loc": { + "start": { + "line": 293, + "column": 13 + }, + "end": { + "line": 293, + "column": 24 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 11112, + "end": 11113, + "loc": { + "start": { + "line": 293, + "column": 24 + }, + "end": { + "line": 293, + "column": 25 + } + } + }, + { + "type": { + "label": "class", + "keyword": "class", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "class", + "start": 11113, + "end": 11118, + "loc": { + "start": { + "line": 293, + "column": 25 + }, + "end": { + "line": 293, + "column": 30 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 11118, + "end": 11119, + "loc": { + "start": { + "line": 293, + "column": 30 + }, + "end": { + "line": 293, + "column": 31 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "split", + "start": 11119, + "end": 11124, + "loc": { + "start": { + "line": 293, + "column": 31 + }, + "end": { + "line": 293, + "column": 36 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 11124, + "end": 11125, + "loc": { + "start": { + "line": 293, + "column": 36 + }, + "end": { + "line": 293, + "column": 37 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": " ", + "start": 11125, + "end": 11128, + "loc": { + "start": { + "line": 293, + "column": 37 + }, + "end": { + "line": 293, + "column": 40 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 11128, + "end": 11129, + "loc": { + "start": { + "line": 293, + "column": 40 + }, + "end": { + "line": 293, + "column": 41 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 11129, + "end": 11130, + "loc": { + "start": { + "line": 293, + "column": 41 + }, + "end": { + "line": 293, + "column": 42 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "includes", + "start": 11130, + "end": 11138, + "loc": { + "start": { + "line": 293, + "column": 42 + }, + "end": { + "line": 293, + "column": 50 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 11138, + "end": 11139, + "loc": { + "start": { + "line": 293, + "column": 50 + }, + "end": { + "line": 293, + "column": 51 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "classNameItem", + "start": 11139, + "end": 11152, + "loc": { + "start": { + "line": 293, + "column": 51 + }, + "end": { + "line": 293, + "column": 64 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 11152, + "end": 11153, + "loc": { + "start": { + "line": 293, + "column": 64 + }, + "end": { + "line": 293, + "column": 65 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 11153, + "end": 11154, + "loc": { + "start": { + "line": 293, + "column": 65 + }, + "end": { + "line": 293, + "column": 66 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 11154, + "end": 11155, + "loc": { + "start": { + "line": 293, + "column": 66 + }, + "end": { + "line": 293, + "column": 67 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "classNameFound", + "start": 11169, + "end": 11183, + "loc": { + "start": { + "line": 294, + "column": 12 + }, + "end": { + "line": 294, + "column": 26 + } + } + }, + { + "type": { + "label": "=", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": true, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "=", + "start": 11184, + "end": 11185, + "loc": { + "start": { + "line": 294, + "column": 27 + }, + "end": { + "line": 294, + "column": 28 + } + } + }, + { + "type": { + "label": "true", + "keyword": "true", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "true", + "start": 11186, + "end": 11190, + "loc": { + "start": { + "line": 294, + "column": 29 + }, + "end": { + "line": 294, + "column": 33 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 11190, + "end": 11191, + "loc": { + "start": { + "line": 294, + "column": 33 + }, + "end": { + "line": 294, + "column": 34 + } + } + }, + { + "type": { + "label": "let", + "keyword": "let", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "let", + "start": 11219, + "end": 11222, + "loc": { + "start": { + "line": 296, + "column": 12 + }, + "end": { + "line": 296, + "column": 15 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "buttonThemeArray", + "start": 11223, + "end": 11239, + "loc": { + "start": { + "line": 296, + "column": 16 + }, + "end": { + "line": 296, + "column": 32 + } + } + }, + { + "type": { + "label": "=", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": true, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "=", + "start": 11240, + "end": 11241, + "loc": { + "start": { + "line": 296, + "column": 33 + }, + "end": { + "line": 296, + "column": 34 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "buttonTheme", + "start": 11242, + "end": 11253, + "loc": { + "start": { + "line": 296, + "column": 35 + }, + "end": { + "line": 296, + "column": 46 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 11253, + "end": 11254, + "loc": { + "start": { + "line": 296, + "column": 46 + }, + "end": { + "line": 296, + "column": 47 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "buttons", + "start": 11254, + "end": 11261, + "loc": { + "start": { + "line": 296, + "column": 47 + }, + "end": { + "line": 296, + "column": 54 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 11261, + "end": 11262, + "loc": { + "start": { + "line": 296, + "column": 54 + }, + "end": { + "line": 296, + "column": 55 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "split", + "start": 11262, + "end": 11267, + "loc": { + "start": { + "line": 296, + "column": 55 + }, + "end": { + "line": 296, + "column": 60 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 11267, + "end": 11268, + "loc": { + "start": { + "line": 296, + "column": 60 + }, + "end": { + "line": 296, + "column": 61 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": " ", + "start": 11268, + "end": 11271, + "loc": { + "start": { + "line": 296, + "column": 61 + }, + "end": { + "line": 296, + "column": 64 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 11271, + "end": 11272, + "loc": { + "start": { + "line": 296, + "column": 64 + }, + "end": { + "line": 296, + "column": 65 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 11272, + "end": 11273, + "loc": { + "start": { + "line": 296, + "column": 65 + }, + "end": { + "line": 296, + "column": 66 + } + } + }, + { + "type": { + "label": "if", + "keyword": "if", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "if", + "start": 11287, + "end": 11289, + "loc": { + "start": { + "line": 297, + "column": 12 + }, + "end": { + "line": 297, + "column": 14 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 11289, + "end": 11290, + "loc": { + "start": { + "line": 297, + "column": 14 + }, + "end": { + "line": 297, + "column": 15 + } + } + }, + { + "type": { + "label": "prefix", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": true, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "!", + "start": 11290, + "end": 11291, + "loc": { + "start": { + "line": 297, + "column": 15 + }, + "end": { + "line": 297, + "column": 16 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "buttonThemeArray", + "start": 11291, + "end": 11307, + "loc": { + "start": { + "line": 297, + "column": 16 + }, + "end": { + "line": 297, + "column": 32 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 11307, + "end": 11308, + "loc": { + "start": { + "line": 297, + "column": 32 + }, + "end": { + "line": 297, + "column": 33 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "includes", + "start": 11308, + "end": 11316, + "loc": { + "start": { + "line": 297, + "column": 33 + }, + "end": { + "line": 297, + "column": 41 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 11316, + "end": 11317, + "loc": { + "start": { + "line": 297, + "column": 41 + }, + "end": { + "line": 297, + "column": 42 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "button", + "start": 11317, + "end": 11323, + "loc": { + "start": { + "line": 297, + "column": 42 + }, + "end": { + "line": 297, + "column": 48 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 11323, + "end": 11324, + "loc": { + "start": { + "line": 297, + "column": 48 + }, + "end": { + "line": 297, + "column": 49 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 11324, + "end": 11325, + "loc": { + "start": { + "line": 297, + "column": 49 + }, + "end": { + "line": 297, + "column": 50 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 11325, + "end": 11326, + "loc": { + "start": { + "line": 297, + "column": 50 + }, + "end": { + "line": 297, + "column": 51 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "classNameFound", + "start": 11342, + "end": 11356, + "loc": { + "start": { + "line": 298, + "column": 14 + }, + "end": { + "line": 298, + "column": 28 + } + } + }, + { + "type": { + "label": "=", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": true, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "=", + "start": 11357, + "end": 11358, + "loc": { + "start": { + "line": 298, + "column": 29 + }, + "end": { + "line": 298, + "column": 30 + } + } + }, + { + "type": { + "label": "true", + "keyword": "true", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "true", + "start": 11359, + "end": 11363, + "loc": { + "start": { + "line": 298, + "column": 31 + }, + "end": { + "line": 298, + "column": 35 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 11363, + "end": 11364, + "loc": { + "start": { + "line": 298, + "column": 35 + }, + "end": { + "line": 298, + "column": 36 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "buttonThemeArray", + "start": 11380, + "end": 11396, + "loc": { + "start": { + "line": 299, + "column": 14 + }, + "end": { + "line": 299, + "column": 30 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 11396, + "end": 11397, + "loc": { + "start": { + "line": 299, + "column": 30 + }, + "end": { + "line": 299, + "column": 31 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "push", + "start": 11397, + "end": 11401, + "loc": { + "start": { + "line": 299, + "column": 31 + }, + "end": { + "line": 299, + "column": 35 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 11401, + "end": 11402, + "loc": { + "start": { + "line": 299, + "column": 35 + }, + "end": { + "line": 299, + "column": 36 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "button", + "start": 11402, + "end": 11408, + "loc": { + "start": { + "line": 299, + "column": 36 + }, + "end": { + "line": 299, + "column": 42 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 11408, + "end": 11409, + "loc": { + "start": { + "line": 299, + "column": 42 + }, + "end": { + "line": 299, + "column": 43 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 11409, + "end": 11410, + "loc": { + "start": { + "line": 299, + "column": 43 + }, + "end": { + "line": 299, + "column": 44 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "buttonTheme", + "start": 11426, + "end": 11437, + "loc": { + "start": { + "line": 300, + "column": 14 + }, + "end": { + "line": 300, + "column": 25 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 11437, + "end": 11438, + "loc": { + "start": { + "line": 300, + "column": 25 + }, + "end": { + "line": 300, + "column": 26 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "buttons", + "start": 11438, + "end": 11445, + "loc": { + "start": { + "line": 300, + "column": 26 + }, + "end": { + "line": 300, + "column": 33 + } + } + }, + { + "type": { + "label": "=", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": true, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "=", + "start": 11446, + "end": 11447, + "loc": { + "start": { + "line": 300, + "column": 34 + }, + "end": { + "line": 300, + "column": 35 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "buttonThemeArray", + "start": 11448, + "end": 11464, + "loc": { + "start": { + "line": 300, + "column": 36 + }, + "end": { + "line": 300, + "column": 52 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 11464, + "end": 11465, + "loc": { + "start": { + "line": 300, + "column": 52 + }, + "end": { + "line": 300, + "column": 53 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "join", + "start": 11465, + "end": 11469, + "loc": { + "start": { + "line": 300, + "column": 53 + }, + "end": { + "line": 300, + "column": 57 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 11469, + "end": 11470, + "loc": { + "start": { + "line": 300, + "column": 57 + }, + "end": { + "line": 300, + "column": 58 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": " ", + "start": 11470, + "end": 11473, + "loc": { + "start": { + "line": 300, + "column": 58 + }, + "end": { + "line": 300, + "column": 61 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 11473, + "end": 11474, + "loc": { + "start": { + "line": 300, + "column": 61 + }, + "end": { + "line": 300, + "column": 62 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 11474, + "end": 11475, + "loc": { + "start": { + "line": 300, + "column": 62 + }, + "end": { + "line": 300, + "column": 63 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 11489, + "end": 11490, + "loc": { + "start": { + "line": 301, + "column": 12 + }, + "end": { + "line": 301, + "column": 13 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 11502, + "end": 11503, + "loc": { + "start": { + "line": 302, + "column": 10 + }, + "end": { + "line": 302, + "column": 11 + } + } + }, + { + "type": { + "label": "return", + "keyword": "return", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "return", + "start": 11515, + "end": 11521, + "loc": { + "start": { + "line": 303, + "column": 10 + }, + "end": { + "line": 303, + "column": 16 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "buttonTheme", + "start": 11522, + "end": 11533, + "loc": { + "start": { + "line": 303, + "column": 17 + }, + "end": { + "line": 303, + "column": 28 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 11533, + "end": 11534, + "loc": { + "start": { + "line": 303, + "column": 28 + }, + "end": { + "line": 303, + "column": 29 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 11544, + "end": 11545, + "loc": { + "start": { + "line": 304, + "column": 8 + }, + "end": { + "line": 304, + "column": 9 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 11545, + "end": 11546, + "loc": { + "start": { + "line": 304, + "column": 9 + }, + "end": { + "line": 304, + "column": 10 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 11546, + "end": 11547, + "loc": { + "start": { + "line": 304, + "column": 10 + }, + "end": { + "line": 304, + "column": 11 + } + } + }, + { + "type": "CommentBlock", + "value": "*\r\n * If class is not defined, we create a new entry\r\n ", + "start": 11559, + "end": 11634, + "loc": { + "start": { + "line": 306, + "column": 8 + }, + "end": { + "line": 308, + "column": 11 + } + } + }, + { + "type": { + "label": "if", + "keyword": "if", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "if", + "start": 11644, + "end": 11646, + "loc": { + "start": { + "line": 309, + "column": 8 + }, + "end": { + "line": 309, + "column": 10 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 11646, + "end": 11647, + "loc": { + "start": { + "line": 309, + "column": 10 + }, + "end": { + "line": 309, + "column": 11 + } + } + }, + { + "type": { + "label": "prefix", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": true, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "!", + "start": 11647, + "end": 11648, + "loc": { + "start": { + "line": 309, + "column": 11 + }, + "end": { + "line": 309, + "column": 12 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "classNameFound", + "start": 11648, + "end": 11662, + "loc": { + "start": { + "line": 309, + "column": 12 + }, + "end": { + "line": 309, + "column": 26 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 11662, + "end": 11663, + "loc": { + "start": { + "line": 309, + "column": 26 + }, + "end": { + "line": 309, + "column": 27 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 11663, + "end": 11664, + "loc": { + "start": { + "line": 309, + "column": 27 + }, + "end": { + "line": 309, + "column": 28 + } + } + }, + { + "type": { + "label": "this", + "keyword": "this", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "this", + "start": 11676, + "end": 11680, + "loc": { + "start": { + "line": 310, + "column": 10 + }, + "end": { + "line": 310, + "column": 14 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 11680, + "end": 11681, + "loc": { + "start": { + "line": 310, + "column": 14 + }, + "end": { + "line": 310, + "column": 15 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "options", + "start": 11681, + "end": 11688, + "loc": { + "start": { + "line": 310, + "column": 15 + }, + "end": { + "line": 310, + "column": 22 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 11688, + "end": 11689, + "loc": { + "start": { + "line": 310, + "column": 22 + }, + "end": { + "line": 310, + "column": 23 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "buttonTheme", + "start": 11689, + "end": 11700, + "loc": { + "start": { + "line": 310, + "column": 23 + }, + "end": { + "line": 310, + "column": 34 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 11700, + "end": 11701, + "loc": { + "start": { + "line": 310, + "column": 34 + }, + "end": { + "line": 310, + "column": 35 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "push", + "start": 11701, + "end": 11705, + "loc": { + "start": { + "line": 310, + "column": 35 + }, + "end": { + "line": 310, + "column": 39 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 11705, + "end": 11706, + "loc": { + "start": { + "line": 310, + "column": 39 + }, + "end": { + "line": 310, + "column": 40 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 11706, + "end": 11707, + "loc": { + "start": { + "line": 310, + "column": 40 + }, + "end": { + "line": 310, + "column": 41 + } + } + }, + { + "type": { + "label": "class", + "keyword": "class", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "class", + "start": 11721, + "end": 11726, + "loc": { + "start": { + "line": 311, + "column": 12 + }, + "end": { + "line": 311, + "column": 17 + } + } + }, + { + "type": { + "label": ":", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 11726, + "end": 11727, + "loc": { + "start": { + "line": 311, + "column": 17 + }, + "end": { + "line": 311, + "column": 18 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "classNameItem", + "start": 11728, + "end": 11741, + "loc": { + "start": { + "line": 311, + "column": 19 + }, + "end": { + "line": 311, + "column": 32 + } + } + }, + { + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 11741, + "end": 11742, + "loc": { + "start": { + "line": 311, + "column": 32 + }, + "end": { + "line": 311, + "column": 33 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "buttons", + "start": 11756, + "end": 11763, + "loc": { + "start": { + "line": 312, + "column": 12 + }, + "end": { + "line": 312, + "column": 19 + } + } + }, + { + "type": { + "label": ":", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 11763, + "end": 11764, + "loc": { + "start": { + "line": 312, + "column": 19 + }, + "end": { + "line": 312, + "column": 20 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "buttons", + "start": 11765, + "end": 11772, + "loc": { + "start": { + "line": 312, + "column": 21 + }, + "end": { + "line": 312, + "column": 28 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 11784, + "end": 11785, + "loc": { + "start": { + "line": 313, + "column": 10 + }, + "end": { + "line": 313, + "column": 11 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 11785, + "end": 11786, + "loc": { + "start": { + "line": 313, + "column": 11 + }, + "end": { + "line": 313, + "column": 12 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 11786, + "end": 11787, + "loc": { + "start": { + "line": 313, + "column": 12 + }, + "end": { + "line": 313, + "column": 13 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 11797, + "end": 11798, + "loc": { + "start": { + "line": 314, + "column": 8 + }, + "end": { + "line": 314, + "column": 9 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 11808, + "end": 11809, + "loc": { + "start": { + "line": 316, + "column": 6 + }, + "end": { + "line": 316, + "column": 7 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 11809, + "end": 11810, + "loc": { + "start": { + "line": 316, + "column": 7 + }, + "end": { + "line": 316, + "column": 8 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 11810, + "end": 11811, + "loc": { + "start": { + "line": 316, + "column": 8 + }, + "end": { + "line": 316, + "column": 9 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 11817, + "end": 11818, + "loc": { + "start": { + "line": 317, + "column": 4 + }, + "end": { + "line": 317, + "column": 5 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 11818, + "end": 11819, + "loc": { + "start": { + "line": 317, + "column": 5 + }, + "end": { + "line": 317, + "column": 6 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 11819, + "end": 11820, + "loc": { + "start": { + "line": 317, + "column": 6 + }, + "end": { + "line": 317, + "column": 7 + } + } + }, + { + "type": { + "label": "this", + "keyword": "this", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "this", + "start": 11828, + "end": 11832, + "loc": { + "start": { + "line": 319, + "column": 4 + }, + "end": { + "line": 319, + "column": 8 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 11832, + "end": 11833, + "loc": { + "start": { + "line": 319, + "column": 8 + }, + "end": { + "line": 319, + "column": 9 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "render", + "start": 11833, + "end": 11839, + "loc": { + "start": { + "line": 319, + "column": 9 + }, + "end": { + "line": 319, + "column": 15 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 11839, + "end": 11840, + "loc": { + "start": { + "line": 319, + "column": 15 + }, + "end": { + "line": 319, + "column": 16 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 11840, + "end": 11841, + "loc": { + "start": { + "line": 319, + "column": 16 + }, + "end": { + "line": 319, + "column": 17 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 11841, + "end": 11842, + "loc": { + "start": { + "line": 319, + "column": 17 + }, + "end": { + "line": 319, + "column": 18 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 11846, + "end": 11847, + "loc": { + "start": { + "line": 320, + "column": 2 + }, + "end": { + "line": 320, + "column": 3 + } + } + }, + { + "type": "CommentBlock", + "value": "*\r\n * Removes/Amends an entry to the `buttonTheme`. Basically a way to remove a class previously added to a button through buttonTheme or addButtonTheme.\r\n * @param {string} buttons List of buttons to select (separated by a space).\r\n * @param {string} className Classes to give to the selected buttons (separated by space).\r\n ", + "start": 11853, + "end": 12193, + "loc": { + "start": { + "line": 322, + "column": 2 + }, + "end": { + "line": 326, + "column": 5 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "removeButtonTheme", + "start": 12197, + "end": 12214, + "loc": { + "start": { + "line": 327, + "column": 2 + }, + "end": { + "line": 327, + "column": 19 + } + } + }, + { + "type": { + "label": "=", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": true, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "=", + "start": 12215, + "end": 12216, + "loc": { + "start": { + "line": 327, + "column": 20 + }, + "end": { + "line": 327, + "column": 21 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 12217, + "end": 12218, + "loc": { + "start": { + "line": 327, + "column": 22 + }, + "end": { + "line": 327, + "column": 23 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "buttons", + "start": 12218, + "end": 12225, + "loc": { + "start": { + "line": 327, + "column": 23 + }, + "end": { + "line": 327, + "column": 30 + } + } + }, + { + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 12225, + "end": 12226, + "loc": { + "start": { + "line": 327, + "column": 30 + }, + "end": { + "line": 327, + "column": 31 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "className", + "start": 12227, + "end": 12236, + "loc": { + "start": { + "line": 327, + "column": 32 + }, + "end": { + "line": 327, + "column": 41 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 12236, + "end": 12237, + "loc": { + "start": { + "line": 327, + "column": 41 + }, + "end": { + "line": 327, + "column": 42 + } + } + }, + { + "type": { + "label": "=>", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 12238, + "end": 12240, + "loc": { + "start": { + "line": 327, + "column": 43 + }, + "end": { + "line": 327, + "column": 45 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 12241, + "end": 12242, + "loc": { + "start": { + "line": 327, + "column": 46 + }, + "end": { + "line": 327, + "column": 47 + } + } + }, + { + "type": "CommentBlock", + "value": "*\r\n * When called with empty parameters, remove all button themes\r\n ", + "start": 12248, + "end": 12328, + "loc": { + "start": { + "line": 328, + "column": 4 + }, + "end": { + "line": 330, + "column": 7 + } + } + }, + { + "type": { + "label": "if", + "keyword": "if", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "if", + "start": 12334, + "end": 12336, + "loc": { + "start": { + "line": 331, + "column": 4 + }, + "end": { + "line": 331, + "column": 6 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 12336, + "end": 12337, + "loc": { + "start": { + "line": 331, + "column": 6 + }, + "end": { + "line": 331, + "column": 7 + } + } + }, + { + "type": { + "label": "prefix", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": true, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "!", + "start": 12337, + "end": 12338, + "loc": { + "start": { + "line": 331, + "column": 7 + }, + "end": { + "line": 331, + "column": 8 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "buttons", + "start": 12338, + "end": 12345, + "loc": { + "start": { + "line": 331, + "column": 8 + }, + "end": { + "line": 331, + "column": 15 + } + } + }, + { + "type": { + "label": "&&", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": 2, + "updateContext": null + }, + "value": "&&", + "start": 12346, + "end": 12348, + "loc": { + "start": { + "line": 331, + "column": 16 + }, + "end": { + "line": 331, + "column": 18 + } + } + }, + { + "type": { + "label": "prefix", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": true, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "!", + "start": 12349, + "end": 12350, + "loc": { + "start": { + "line": 331, + "column": 19 + }, + "end": { + "line": 331, + "column": 20 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "className", + "start": 12350, + "end": 12359, + "loc": { + "start": { + "line": 331, + "column": 20 + }, + "end": { + "line": 331, + "column": 29 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 12359, + "end": 12360, + "loc": { + "start": { + "line": 331, + "column": 29 + }, + "end": { + "line": 331, + "column": 30 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 12360, + "end": 12361, + "loc": { + "start": { + "line": 331, + "column": 30 + }, + "end": { + "line": 331, + "column": 31 + } + } + }, + { + "type": { + "label": "this", + "keyword": "this", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "this", + "start": 12369, + "end": 12373, + "loc": { + "start": { + "line": 332, + "column": 6 + }, + "end": { + "line": 332, + "column": 10 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 12373, + "end": 12374, + "loc": { + "start": { + "line": 332, + "column": 10 + }, + "end": { + "line": 332, + "column": 11 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "options", + "start": 12374, + "end": 12381, + "loc": { + "start": { + "line": 332, + "column": 11 + }, + "end": { + "line": 332, + "column": 18 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 12381, + "end": 12382, + "loc": { + "start": { + "line": 332, + "column": 18 + }, + "end": { + "line": 332, + "column": 19 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "buttonTheme", + "start": 12382, + "end": 12393, + "loc": { + "start": { + "line": 332, + "column": 19 + }, + "end": { + "line": 332, + "column": 30 + } + } + }, + { + "type": { + "label": "=", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": true, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "=", + "start": 12394, + "end": 12395, + "loc": { + "start": { + "line": 332, + "column": 31 + }, + "end": { + "line": 332, + "column": 32 + } + } + }, + { + "type": { + "label": "[", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 12396, + "end": 12397, + "loc": { + "start": { + "line": 332, + "column": 33 + }, + "end": { + "line": 332, + "column": 34 + } + } + }, + { + "type": { + "label": "]", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 12397, + "end": 12398, + "loc": { + "start": { + "line": 332, + "column": 34 + }, + "end": { + "line": 332, + "column": 35 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 12398, + "end": 12399, + "loc": { + "start": { + "line": 332, + "column": 35 + }, + "end": { + "line": 332, + "column": 36 + } + } + }, + { + "type": { + "label": "this", + "keyword": "this", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "this", + "start": 12407, + "end": 12411, + "loc": { + "start": { + "line": 333, + "column": 6 + }, + "end": { + "line": 333, + "column": 10 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 12411, + "end": 12412, + "loc": { + "start": { + "line": 333, + "column": 10 + }, + "end": { + "line": 333, + "column": 11 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "render", + "start": 12412, + "end": 12418, + "loc": { + "start": { + "line": 333, + "column": 11 + }, + "end": { + "line": 333, + "column": 17 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 12418, + "end": 12419, + "loc": { + "start": { + "line": 333, + "column": 17 + }, + "end": { + "line": 333, + "column": 18 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 12419, + "end": 12420, + "loc": { + "start": { + "line": 333, + "column": 18 + }, + "end": { + "line": 333, + "column": 19 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 12420, + "end": 12421, + "loc": { + "start": { + "line": 333, + "column": 19 + }, + "end": { + "line": 333, + "column": 20 + } + } + }, + { + "type": { + "label": "return", + "keyword": "return", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "return", + "start": 12429, + "end": 12435, + "loc": { + "start": { + "line": 334, + "column": 6 + }, + "end": { + "line": 334, + "column": 12 + } + } + }, + { + "type": { + "label": "false", + "keyword": "false", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "false", + "start": 12436, + "end": 12441, + "loc": { + "start": { + "line": 334, + "column": 13 + }, + "end": { + "line": 334, + "column": 18 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 12441, + "end": 12442, + "loc": { + "start": { + "line": 334, + "column": 18 + }, + "end": { + "line": 334, + "column": 19 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 12448, + "end": 12449, + "loc": { + "start": { + "line": 335, + "column": 4 + }, + "end": { + "line": 335, + "column": 5 + } + } + }, + { + "type": "CommentBlock", + "value": "*\r\n * If buttons are passed and buttonTheme has items\r\n ", + "start": 12457, + "end": 12525, + "loc": { + "start": { + "line": 337, + "column": 4 + }, + "end": { + "line": 339, + "column": 7 + } + } + }, + { + "type": { + "label": "if", + "keyword": "if", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "if", + "start": 12531, + "end": 12533, + "loc": { + "start": { + "line": 340, + "column": 4 + }, + "end": { + "line": 340, + "column": 6 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 12533, + "end": 12534, + "loc": { + "start": { + "line": 340, + "column": 6 + }, + "end": { + "line": 340, + "column": 7 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "buttons", + "start": 12534, + "end": 12541, + "loc": { + "start": { + "line": 340, + "column": 7 + }, + "end": { + "line": 340, + "column": 14 + } + } + }, + { + "type": { + "label": "&&", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": 2, + "updateContext": null + }, + "value": "&&", + "start": 12542, + "end": 12544, + "loc": { + "start": { + "line": 340, + "column": 15 + }, + "end": { + "line": 340, + "column": 17 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "Array", + "start": 12545, + "end": 12550, + "loc": { + "start": { + "line": 340, + "column": 18 + }, + "end": { + "line": 340, + "column": 23 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 12550, + "end": 12551, + "loc": { + "start": { + "line": 340, + "column": 23 + }, + "end": { + "line": 340, + "column": 24 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "isArray", + "start": 12551, + "end": 12558, + "loc": { + "start": { + "line": 340, + "column": 24 + }, + "end": { + "line": 340, + "column": 31 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 12558, + "end": 12559, + "loc": { + "start": { + "line": 340, + "column": 31 + }, + "end": { + "line": 340, + "column": 32 + } + } + }, + { + "type": { + "label": "this", + "keyword": "this", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "this", + "start": 12559, + "end": 12563, + "loc": { + "start": { + "line": 340, + "column": 32 + }, + "end": { + "line": 340, + "column": 36 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 12563, + "end": 12564, + "loc": { + "start": { + "line": 340, + "column": 36 + }, + "end": { + "line": 340, + "column": 37 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "options", + "start": 12564, + "end": 12571, + "loc": { + "start": { + "line": 340, + "column": 37 + }, + "end": { + "line": 340, + "column": 44 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 12571, + "end": 12572, + "loc": { + "start": { + "line": 340, + "column": 44 + }, + "end": { + "line": 340, + "column": 45 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "buttonTheme", + "start": 12572, + "end": 12583, + "loc": { + "start": { + "line": 340, + "column": 45 + }, + "end": { + "line": 340, + "column": 56 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 12583, + "end": 12584, + "loc": { + "start": { + "line": 340, + "column": 56 + }, + "end": { + "line": 340, + "column": 57 + } + } + }, + { + "type": { + "label": "&&", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": 2, + "updateContext": null + }, + "value": "&&", + "start": 12585, + "end": 12587, + "loc": { + "start": { + "line": 340, + "column": 58 + }, + "end": { + "line": 340, + "column": 60 + } + } + }, + { + "type": { + "label": "this", + "keyword": "this", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "this", + "start": 12588, + "end": 12592, + "loc": { + "start": { + "line": 340, + "column": 61 + }, + "end": { + "line": 340, + "column": 65 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 12592, + "end": 12593, + "loc": { + "start": { + "line": 340, + "column": 65 + }, + "end": { + "line": 340, + "column": 66 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "options", + "start": 12593, + "end": 12600, + "loc": { + "start": { + "line": 340, + "column": 66 + }, + "end": { + "line": 340, + "column": 73 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 12600, + "end": 12601, + "loc": { + "start": { + "line": 340, + "column": 73 + }, + "end": { + "line": 340, + "column": 74 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "buttonTheme", + "start": 12601, + "end": 12612, + "loc": { + "start": { + "line": 340, + "column": 74 + }, + "end": { + "line": 340, + "column": 85 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 12612, + "end": 12613, + "loc": { + "start": { + "line": 340, + "column": 85 + }, + "end": { + "line": 340, + "column": 86 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "length", + "start": 12613, + "end": 12619, + "loc": { + "start": { + "line": 340, + "column": 86 + }, + "end": { + "line": 340, + "column": 92 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 12619, + "end": 12620, + "loc": { + "start": { + "line": 340, + "column": 92 + }, + "end": { + "line": 340, + "column": 93 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 12620, + "end": 12621, + "loc": { + "start": { + "line": 340, + "column": 93 + }, + "end": { + "line": 340, + "column": 94 + } + } + }, + { + "type": { + "label": "let", + "keyword": "let", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "let", + "start": 12629, + "end": 12632, + "loc": { + "start": { + "line": 341, + "column": 6 + }, + "end": { + "line": 341, + "column": 9 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "buttonArray", + "start": 12633, + "end": 12644, + "loc": { + "start": { + "line": 341, + "column": 10 + }, + "end": { + "line": 341, + "column": 21 + } + } + }, + { + "type": { + "label": "=", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": true, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "=", + "start": 12645, + "end": 12646, + "loc": { + "start": { + "line": 341, + "column": 22 + }, + "end": { + "line": 341, + "column": 23 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "buttons", + "start": 12647, + "end": 12654, + "loc": { + "start": { + "line": 341, + "column": 24 + }, + "end": { + "line": 341, + "column": 31 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 12654, + "end": 12655, + "loc": { + "start": { + "line": 341, + "column": 31 + }, + "end": { + "line": 341, + "column": 32 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "split", + "start": 12655, + "end": 12660, + "loc": { + "start": { + "line": 341, + "column": 32 + }, + "end": { + "line": 341, + "column": 37 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 12660, + "end": 12661, + "loc": { + "start": { + "line": 341, + "column": 37 + }, + "end": { + "line": 341, + "column": 38 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": " ", + "start": 12661, + "end": 12664, + "loc": { + "start": { + "line": 341, + "column": 38 + }, + "end": { + "line": 341, + "column": 41 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 12664, + "end": 12665, + "loc": { + "start": { + "line": 341, + "column": 41 + }, + "end": { + "line": 341, + "column": 42 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 12665, + "end": 12666, + "loc": { + "start": { + "line": 341, + "column": 42 + }, + "end": { + "line": 341, + "column": 43 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "buttonArray", + "start": 12674, + "end": 12685, + "loc": { + "start": { + "line": 342, + "column": 6 + }, + "end": { + "line": 342, + "column": 17 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 12685, + "end": 12686, + "loc": { + "start": { + "line": 342, + "column": 17 + }, + "end": { + "line": 342, + "column": 18 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "forEach", + "start": 12686, + "end": 12693, + "loc": { + "start": { + "line": 342, + "column": 18 + }, + "end": { + "line": 342, + "column": 25 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 12693, + "end": 12694, + "loc": { + "start": { + "line": 342, + "column": 25 + }, + "end": { + "line": 342, + "column": 26 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 12694, + "end": 12695, + "loc": { + "start": { + "line": 342, + "column": 26 + }, + "end": { + "line": 342, + "column": 27 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "button", + "start": 12695, + "end": 12701, + "loc": { + "start": { + "line": 342, + "column": 27 + }, + "end": { + "line": 342, + "column": 33 + } + } + }, + { + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 12701, + "end": 12702, + "loc": { + "start": { + "line": 342, + "column": 33 + }, + "end": { + "line": 342, + "column": 34 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "key", + "start": 12703, + "end": 12706, + "loc": { + "start": { + "line": 342, + "column": 35 + }, + "end": { + "line": 342, + "column": 38 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 12706, + "end": 12707, + "loc": { + "start": { + "line": 342, + "column": 38 + }, + "end": { + "line": 342, + "column": 39 + } + } + }, + { + "type": { + "label": "=>", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 12708, + "end": 12710, + "loc": { + "start": { + "line": 342, + "column": 40 + }, + "end": { + "line": 342, + "column": 42 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 12711, + "end": 12712, + "loc": { + "start": { + "line": 342, + "column": 43 + }, + "end": { + "line": 342, + "column": 44 + } + } + }, + { + "type": { + "label": "this", + "keyword": "this", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "this", + "start": 12722, + "end": 12726, + "loc": { + "start": { + "line": 343, + "column": 8 + }, + "end": { + "line": 343, + "column": 12 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 12726, + "end": 12727, + "loc": { + "start": { + "line": 343, + "column": 12 + }, + "end": { + "line": 343, + "column": 13 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "options", + "start": 12727, + "end": 12734, + "loc": { + "start": { + "line": 343, + "column": 13 + }, + "end": { + "line": 343, + "column": 20 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 12734, + "end": 12735, + "loc": { + "start": { + "line": 343, + "column": 20 + }, + "end": { + "line": 343, + "column": 21 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "buttonTheme", + "start": 12735, + "end": 12746, + "loc": { + "start": { + "line": 343, + "column": 21 + }, + "end": { + "line": 343, + "column": 32 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 12746, + "end": 12747, + "loc": { + "start": { + "line": 343, + "column": 32 + }, + "end": { + "line": 343, + "column": 33 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "map", + "start": 12747, + "end": 12750, + "loc": { + "start": { + "line": 343, + "column": 33 + }, + "end": { + "line": 343, + "column": 36 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 12750, + "end": 12751, + "loc": { + "start": { + "line": 343, + "column": 36 + }, + "end": { + "line": 343, + "column": 37 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 12751, + "end": 12752, + "loc": { + "start": { + "line": 343, + "column": 37 + }, + "end": { + "line": 343, + "column": 38 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "buttonTheme", + "start": 12752, + "end": 12763, + "loc": { + "start": { + "line": 343, + "column": 38 + }, + "end": { + "line": 343, + "column": 49 + } + } + }, + { + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 12763, + "end": 12764, + "loc": { + "start": { + "line": 343, + "column": 49 + }, + "end": { + "line": 343, + "column": 50 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "index", + "start": 12765, + "end": 12770, + "loc": { + "start": { + "line": 343, + "column": 51 + }, + "end": { + "line": 343, + "column": 56 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 12770, + "end": 12771, + "loc": { + "start": { + "line": 343, + "column": 56 + }, + "end": { + "line": 343, + "column": 57 + } + } + }, + { + "type": { + "label": "=>", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 12772, + "end": 12774, + "loc": { + "start": { + "line": 343, + "column": 58 + }, + "end": { + "line": 343, + "column": 60 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 12775, + "end": 12776, + "loc": { + "start": { + "line": 343, + "column": 61 + }, + "end": { + "line": 343, + "column": 62 + } + } + }, + { + "type": "CommentBlock", + "value": "*\r\n * If className is set, we affect the buttons only for that class\r\n * Otherwise, we afect all classes\r\n ", + "start": 12790, + "end": 12931, + "loc": { + "start": { + "line": 345, + "column": 10 + }, + "end": { + "line": 348, + "column": 13 + } + } + }, + { + "type": { + "label": "if", + "keyword": "if", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "if", + "start": 12943, + "end": 12945, + "loc": { + "start": { + "line": 349, + "column": 10 + }, + "end": { + "line": 349, + "column": 12 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 12945, + "end": 12946, + "loc": { + "start": { + "line": 349, + "column": 12 + }, + "end": { + "line": 349, + "column": 13 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 12960, + "end": 12961, + "loc": { + "start": { + "line": 350, + "column": 12 + }, + "end": { + "line": 350, + "column": 13 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "className", + "start": 12961, + "end": 12970, + "loc": { + "start": { + "line": 350, + "column": 13 + }, + "end": { + "line": 350, + "column": 22 + } + } + }, + { + "type": { + "label": "&&", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": 2, + "updateContext": null + }, + "value": "&&", + "start": 12971, + "end": 12973, + "loc": { + "start": { + "line": 350, + "column": 23 + }, + "end": { + "line": 350, + "column": 25 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "className", + "start": 12974, + "end": 12983, + "loc": { + "start": { + "line": 350, + "column": 26 + }, + "end": { + "line": 350, + "column": 35 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 12983, + "end": 12984, + "loc": { + "start": { + "line": 350, + "column": 35 + }, + "end": { + "line": 350, + "column": 36 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "includes", + "start": 12984, + "end": 12992, + "loc": { + "start": { + "line": 350, + "column": 36 + }, + "end": { + "line": 350, + "column": 44 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 12992, + "end": 12993, + "loc": { + "start": { + "line": 350, + "column": 44 + }, + "end": { + "line": 350, + "column": 45 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "buttonTheme", + "start": 12993, + "end": 13004, + "loc": { + "start": { + "line": 350, + "column": 45 + }, + "end": { + "line": 350, + "column": 56 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 13004, + "end": 13005, + "loc": { + "start": { + "line": 350, + "column": 56 + }, + "end": { + "line": 350, + "column": 57 + } + } + }, + { + "type": { + "label": "class", + "keyword": "class", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "class", + "start": 13005, + "end": 13010, + "loc": { + "start": { + "line": 350, + "column": 57 + }, + "end": { + "line": 350, + "column": 62 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 13010, + "end": 13011, + "loc": { + "start": { + "line": 350, + "column": 62 + }, + "end": { + "line": 350, + "column": 63 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 13011, + "end": 13012, + "loc": { + "start": { + "line": 350, + "column": 63 + }, + "end": { + "line": 350, + "column": 64 + } + } + }, + { + "type": { + "label": "||", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": 1, + "updateContext": null + }, + "value": "||", + "start": 13013, + "end": 13015, + "loc": { + "start": { + "line": 350, + "column": 65 + }, + "end": { + "line": 350, + "column": 67 + } + } + }, + { + "type": { + "label": "prefix", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": true, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "!", + "start": 13029, + "end": 13030, + "loc": { + "start": { + "line": 351, + "column": 12 + }, + "end": { + "line": 351, + "column": 13 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "className", + "start": 13030, + "end": 13039, + "loc": { + "start": { + "line": 351, + "column": 13 + }, + "end": { + "line": 351, + "column": 22 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 13051, + "end": 13052, + "loc": { + "start": { + "line": 352, + "column": 10 + }, + "end": { + "line": 352, + "column": 11 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 13052, + "end": 13053, + "loc": { + "start": { + "line": 352, + "column": 11 + }, + "end": { + "line": 352, + "column": 12 + } + } + }, + { + "type": { + "label": "let", + "keyword": "let", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "let", + "start": 13067, + "end": 13070, + "loc": { + "start": { + "line": 353, + "column": 12 + }, + "end": { + "line": 353, + "column": 15 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "filteredButtonArray", + "start": 13071, + "end": 13090, + "loc": { + "start": { + "line": 353, + "column": 16 + }, + "end": { + "line": 353, + "column": 35 + } + } + }, + { + "type": { + "label": "=", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": true, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "=", + "start": 13091, + "end": 13092, + "loc": { + "start": { + "line": 353, + "column": 36 + }, + "end": { + "line": 353, + "column": 37 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "buttonTheme", + "start": 13093, + "end": 13104, + "loc": { + "start": { + "line": 353, + "column": 38 + }, + "end": { + "line": 353, + "column": 49 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 13104, + "end": 13105, + "loc": { + "start": { + "line": 353, + "column": 49 + }, + "end": { + "line": 353, + "column": 50 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "buttons", + "start": 13105, + "end": 13112, + "loc": { + "start": { + "line": 353, + "column": 50 + }, + "end": { + "line": 353, + "column": 57 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 13112, + "end": 13113, + "loc": { + "start": { + "line": 353, + "column": 57 + }, + "end": { + "line": 353, + "column": 58 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "split", + "start": 13113, + "end": 13118, + "loc": { + "start": { + "line": 353, + "column": 58 + }, + "end": { + "line": 353, + "column": 63 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 13118, + "end": 13119, + "loc": { + "start": { + "line": 353, + "column": 63 + }, + "end": { + "line": 353, + "column": 64 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": " ", + "start": 13119, + "end": 13122, + "loc": { + "start": { + "line": 353, + "column": 64 + }, + "end": { + "line": 353, + "column": 67 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 13122, + "end": 13123, + "loc": { + "start": { + "line": 353, + "column": 67 + }, + "end": { + "line": 353, + "column": 68 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 13123, + "end": 13124, + "loc": { + "start": { + "line": 353, + "column": 68 + }, + "end": { + "line": 353, + "column": 69 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "filter", + "start": 13124, + "end": 13130, + "loc": { + "start": { + "line": 353, + "column": 69 + }, + "end": { + "line": 353, + "column": 75 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 13130, + "end": 13131, + "loc": { + "start": { + "line": 353, + "column": 75 + }, + "end": { + "line": 353, + "column": 76 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "item", + "start": 13131, + "end": 13135, + "loc": { + "start": { + "line": 353, + "column": 76 + }, + "end": { + "line": 353, + "column": 80 + } + } + }, + { + "type": { + "label": "=>", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 13136, + "end": 13138, + "loc": { + "start": { + "line": 353, + "column": 81 + }, + "end": { + "line": 353, + "column": 83 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "item", + "start": 13139, + "end": 13143, + "loc": { + "start": { + "line": 353, + "column": 84 + }, + "end": { + "line": 353, + "column": 88 + } + } + }, + { + "type": { + "label": "==/!=", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": 6, + "updateContext": null + }, + "value": "!==", + "start": 13144, + "end": 13147, + "loc": { + "start": { + "line": 353, + "column": 89 + }, + "end": { + "line": 353, + "column": 92 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "button", + "start": 13148, + "end": 13154, + "loc": { + "start": { + "line": 353, + "column": 93 + }, + "end": { + "line": 353, + "column": 99 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 13154, + "end": 13155, + "loc": { + "start": { + "line": 353, + "column": 99 + }, + "end": { + "line": 353, + "column": 100 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 13155, + "end": 13156, + "loc": { + "start": { + "line": 353, + "column": 100 + }, + "end": { + "line": 353, + "column": 101 + } + } + }, + { + "type": "CommentBlock", + "value": "*\r\n * If buttons left, return them, otherwise, remove button Theme\r\n ", + "start": 13172, + "end": 13269, + "loc": { + "start": { + "line": 355, + "column": 12 + }, + "end": { + "line": 357, + "column": 15 + } + } + }, + { + "type": { + "label": "if", + "keyword": "if", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "if", + "start": 13283, + "end": 13285, + "loc": { + "start": { + "line": 358, + "column": 12 + }, + "end": { + "line": 358, + "column": 14 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 13285, + "end": 13286, + "loc": { + "start": { + "line": 358, + "column": 14 + }, + "end": { + "line": 358, + "column": 15 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "filteredButtonArray", + "start": 13286, + "end": 13305, + "loc": { + "start": { + "line": 358, + "column": 15 + }, + "end": { + "line": 358, + "column": 34 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 13305, + "end": 13306, + "loc": { + "start": { + "line": 358, + "column": 34 + }, + "end": { + "line": 358, + "column": 35 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "length", + "start": 13306, + "end": 13312, + "loc": { + "start": { + "line": 358, + "column": 35 + }, + "end": { + "line": 358, + "column": 41 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 13312, + "end": 13313, + "loc": { + "start": { + "line": 358, + "column": 41 + }, + "end": { + "line": 358, + "column": 42 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 13313, + "end": 13314, + "loc": { + "start": { + "line": 358, + "column": 42 + }, + "end": { + "line": 358, + "column": 43 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "buttonTheme", + "start": 13330, + "end": 13341, + "loc": { + "start": { + "line": 359, + "column": 14 + }, + "end": { + "line": 359, + "column": 25 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 13341, + "end": 13342, + "loc": { + "start": { + "line": 359, + "column": 25 + }, + "end": { + "line": 359, + "column": 26 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "buttons", + "start": 13342, + "end": 13349, + "loc": { + "start": { + "line": 359, + "column": 26 + }, + "end": { + "line": 359, + "column": 33 + } + } + }, + { + "type": { + "label": "=", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": true, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "=", + "start": 13350, + "end": 13351, + "loc": { + "start": { + "line": 359, + "column": 34 + }, + "end": { + "line": 359, + "column": 35 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "filteredButtonArray", + "start": 13352, + "end": 13371, + "loc": { + "start": { + "line": 359, + "column": 36 + }, + "end": { + "line": 359, + "column": 55 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 13371, + "end": 13372, + "loc": { + "start": { + "line": 359, + "column": 55 + }, + "end": { + "line": 359, + "column": 56 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "join", + "start": 13372, + "end": 13376, + "loc": { + "start": { + "line": 359, + "column": 56 + }, + "end": { + "line": 359, + "column": 60 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 13376, + "end": 13377, + "loc": { + "start": { + "line": 359, + "column": 60 + }, + "end": { + "line": 359, + "column": 61 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": " ", + "start": 13377, + "end": 13380, + "loc": { + "start": { + "line": 359, + "column": 61 + }, + "end": { + "line": 359, + "column": 64 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 13380, + "end": 13381, + "loc": { + "start": { + "line": 359, + "column": 64 + }, + "end": { + "line": 359, + "column": 65 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 13381, + "end": 13382, + "loc": { + "start": { + "line": 359, + "column": 65 + }, + "end": { + "line": 359, + "column": 66 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 13396, + "end": 13397, + "loc": { + "start": { + "line": 360, + "column": 12 + }, + "end": { + "line": 360, + "column": 13 + } + } + }, + { + "type": { + "label": "else", + "keyword": "else", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "else", + "start": 13398, + "end": 13402, + "loc": { + "start": { + "line": 360, + "column": 14 + }, + "end": { + "line": 360, + "column": 18 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 13403, + "end": 13404, + "loc": { + "start": { + "line": 360, + "column": 19 + }, + "end": { + "line": 360, + "column": 20 + } + } + }, + { + "type": { + "label": "this", + "keyword": "this", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "this", + "start": 13420, + "end": 13424, + "loc": { + "start": { + "line": 361, + "column": 14 + }, + "end": { + "line": 361, + "column": 18 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 13424, + "end": 13425, + "loc": { + "start": { + "line": 361, + "column": 18 + }, + "end": { + "line": 361, + "column": 19 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "options", + "start": 13425, + "end": 13432, + "loc": { + "start": { + "line": 361, + "column": 19 + }, + "end": { + "line": 361, + "column": 26 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 13432, + "end": 13433, + "loc": { + "start": { + "line": 361, + "column": 26 + }, + "end": { + "line": 361, + "column": 27 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "buttonTheme", + "start": 13433, + "end": 13444, + "loc": { + "start": { + "line": 361, + "column": 27 + }, + "end": { + "line": 361, + "column": 38 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 13444, + "end": 13445, + "loc": { + "start": { + "line": 361, + "column": 38 + }, + "end": { + "line": 361, + "column": 39 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "splice", + "start": 13445, + "end": 13451, + "loc": { + "start": { + "line": 361, + "column": 39 + }, + "end": { + "line": 361, + "column": 45 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 13451, + "end": 13452, + "loc": { + "start": { + "line": 361, + "column": 45 + }, + "end": { + "line": 361, + "column": 46 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "index", + "start": 13452, + "end": 13457, + "loc": { + "start": { + "line": 361, + "column": 46 + }, + "end": { + "line": 361, + "column": 51 + } + } + }, + { + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 13457, + "end": 13458, + "loc": { + "start": { + "line": 361, + "column": 51 + }, + "end": { + "line": 361, + "column": 52 + } + } + }, + { + "type": { + "label": "num", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": 1, + "start": 13459, + "end": 13460, + "loc": { + "start": { + "line": 361, + "column": 53 + }, + "end": { + "line": 361, + "column": 54 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 13460, + "end": 13461, + "loc": { + "start": { + "line": 361, + "column": 54 + }, + "end": { + "line": 361, + "column": 55 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 13461, + "end": 13462, + "loc": { + "start": { + "line": 361, + "column": 55 + }, + "end": { + "line": 361, + "column": 56 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "buttonTheme", + "start": 13478, + "end": 13489, + "loc": { + "start": { + "line": 362, + "column": 14 + }, + "end": { + "line": 362, + "column": 25 + } + } + }, + { + "type": { + "label": "=", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": true, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "=", + "start": 13490, + "end": 13491, + "loc": { + "start": { + "line": 362, + "column": 26 + }, + "end": { + "line": 362, + "column": 27 + } + } + }, + { + "type": { + "label": "null", + "keyword": "null", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "null", + "start": 13492, + "end": 13496, + "loc": { + "start": { + "line": 362, + "column": 28 + }, + "end": { + "line": 362, + "column": 32 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 13496, + "end": 13497, + "loc": { + "start": { + "line": 362, + "column": 32 + }, + "end": { + "line": 362, + "column": 33 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 13511, + "end": 13512, + "loc": { + "start": { + "line": 363, + "column": 12 + }, + "end": { + "line": 363, + "column": 13 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 13527, + "end": 13528, + "loc": { + "start": { + "line": 365, + "column": 10 + }, + "end": { + "line": 365, + "column": 11 + } + } + }, + { + "type": { + "label": "return", + "keyword": "return", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "return", + "start": 13542, + "end": 13548, + "loc": { + "start": { + "line": 367, + "column": 10 + }, + "end": { + "line": 367, + "column": 16 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "buttonTheme", + "start": 13549, + "end": 13560, + "loc": { + "start": { + "line": 367, + "column": 17 + }, + "end": { + "line": 367, + "column": 28 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 13560, + "end": 13561, + "loc": { + "start": { + "line": 367, + "column": 28 + }, + "end": { + "line": 367, + "column": 29 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 13571, + "end": 13572, + "loc": { + "start": { + "line": 368, + "column": 8 + }, + "end": { + "line": 368, + "column": 9 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 13572, + "end": 13573, + "loc": { + "start": { + "line": 368, + "column": 9 + }, + "end": { + "line": 368, + "column": 10 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 13573, + "end": 13574, + "loc": { + "start": { + "line": 368, + "column": 10 + }, + "end": { + "line": 368, + "column": 11 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 13582, + "end": 13583, + "loc": { + "start": { + "line": 369, + "column": 6 + }, + "end": { + "line": 369, + "column": 7 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 13583, + "end": 13584, + "loc": { + "start": { + "line": 369, + "column": 7 + }, + "end": { + "line": 369, + "column": 8 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 13584, + "end": 13585, + "loc": { + "start": { + "line": 369, + "column": 8 + }, + "end": { + "line": 369, + "column": 9 + } + } + }, + { + "type": { + "label": "this", + "keyword": "this", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "this", + "start": 13595, + "end": 13599, + "loc": { + "start": { + "line": 371, + "column": 6 + }, + "end": { + "line": 371, + "column": 10 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 13599, + "end": 13600, + "loc": { + "start": { + "line": 371, + "column": 10 + }, + "end": { + "line": 371, + "column": 11 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "render", + "start": 13600, + "end": 13606, + "loc": { + "start": { + "line": 371, + "column": 11 + }, + "end": { + "line": 371, + "column": 17 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 13606, + "end": 13607, + "loc": { + "start": { + "line": 371, + "column": 17 + }, + "end": { + "line": 371, + "column": 18 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 13607, + "end": 13608, + "loc": { + "start": { + "line": 371, + "column": 18 + }, + "end": { + "line": 371, + "column": 19 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 13608, + "end": 13609, + "loc": { + "start": { + "line": 371, + "column": 19 + }, + "end": { + "line": 371, + "column": 20 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 13615, + "end": 13616, + "loc": { + "start": { + "line": 372, + "column": 4 + }, + "end": { + "line": 372, + "column": 5 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 13620, + "end": 13621, + "loc": { + "start": { + "line": 373, + "column": 2 + }, + "end": { + "line": 373, + "column": 3 + } + } + }, + { + "type": "CommentBlock", + "value": "*\r\n * Get the DOM Element of a button. If there are several buttons with the same name, an array of the DOM Elements is returned.\r\n * @param {string} button The button layout name to select\r\n ", + "start": 13627, + "end": 13830, + "loc": { + "start": { + "line": 375, + "column": 2 + }, + "end": { + "line": 378, + "column": 5 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "getButtonElement", + "start": 13834, + "end": 13850, + "loc": { + "start": { + "line": 379, + "column": 2 + }, + "end": { + "line": 379, + "column": 18 + } + } + }, + { + "type": { + "label": "=", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": true, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "=", + "start": 13851, + "end": 13852, + "loc": { + "start": { + "line": 379, + "column": 19 + }, + "end": { + "line": 379, + "column": 20 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 13853, + "end": 13854, + "loc": { + "start": { + "line": 379, + "column": 21 + }, + "end": { + "line": 379, + "column": 22 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "button", + "start": 13854, + "end": 13860, + "loc": { + "start": { + "line": 379, + "column": 22 + }, + "end": { + "line": 379, + "column": 28 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 13860, + "end": 13861, + "loc": { + "start": { + "line": 379, + "column": 28 + }, + "end": { + "line": 379, + "column": 29 + } + } + }, + { + "type": { + "label": "=>", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 13862, + "end": 13864, + "loc": { + "start": { + "line": 379, + "column": 30 + }, + "end": { + "line": 379, + "column": 32 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 13865, + "end": 13866, + "loc": { + "start": { + "line": 379, + "column": 33 + }, + "end": { + "line": 379, + "column": 34 + } + } + }, + { + "type": { + "label": "let", + "keyword": "let", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "let", + "start": 13872, + "end": 13875, + "loc": { + "start": { + "line": 380, + "column": 4 + }, + "end": { + "line": 380, + "column": 7 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "output", + "start": 13876, + "end": 13882, + "loc": { + "start": { + "line": 380, + "column": 8 + }, + "end": { + "line": 380, + "column": 14 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 13882, + "end": 13883, + "loc": { + "start": { + "line": 380, + "column": 14 + }, + "end": { + "line": 380, + "column": 15 + } + } + }, + { + "type": { + "label": "let", + "keyword": "let", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "let", + "start": 13891, + "end": 13894, + "loc": { + "start": { + "line": 382, + "column": 4 + }, + "end": { + "line": 382, + "column": 7 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "buttonArr", + "start": 13895, + "end": 13904, + "loc": { + "start": { + "line": 382, + "column": 8 + }, + "end": { + "line": 382, + "column": 17 + } + } + }, + { + "type": { + "label": "=", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": true, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "=", + "start": 13905, + "end": 13906, + "loc": { + "start": { + "line": 382, + "column": 18 + }, + "end": { + "line": 382, + "column": 19 + } + } + }, + { + "type": { + "label": "this", + "keyword": "this", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "this", + "start": 13907, + "end": 13911, + "loc": { + "start": { + "line": 382, + "column": 20 + }, + "end": { + "line": 382, + "column": 24 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 13911, + "end": 13912, + "loc": { + "start": { + "line": 382, + "column": 24 + }, + "end": { + "line": 382, + "column": 25 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "buttonElements", + "start": 13912, + "end": 13926, + "loc": { + "start": { + "line": 382, + "column": 25 + }, + "end": { + "line": 382, + "column": 39 + } + } + }, + { + "type": { + "label": "[", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 13926, + "end": 13927, + "loc": { + "start": { + "line": 382, + "column": 39 + }, + "end": { + "line": 382, + "column": 40 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "button", + "start": 13927, + "end": 13933, + "loc": { + "start": { + "line": 382, + "column": 40 + }, + "end": { + "line": 382, + "column": 46 + } + } + }, + { + "type": { + "label": "]", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 13933, + "end": 13934, + "loc": { + "start": { + "line": 382, + "column": 46 + }, + "end": { + "line": 382, + "column": 47 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 13934, + "end": 13935, + "loc": { + "start": { + "line": 382, + "column": 47 + }, + "end": { + "line": 382, + "column": 48 + } + } + }, + { + "type": { + "label": "if", + "keyword": "if", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "if", + "start": 13941, + "end": 13943, + "loc": { + "start": { + "line": 383, + "column": 4 + }, + "end": { + "line": 383, + "column": 6 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 13943, + "end": 13944, + "loc": { + "start": { + "line": 383, + "column": 6 + }, + "end": { + "line": 383, + "column": 7 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "buttonArr", + "start": 13944, + "end": 13953, + "loc": { + "start": { + "line": 383, + "column": 7 + }, + "end": { + "line": 383, + "column": 16 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 13953, + "end": 13954, + "loc": { + "start": { + "line": 383, + "column": 16 + }, + "end": { + "line": 383, + "column": 17 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 13954, + "end": 13955, + "loc": { + "start": { + "line": 383, + "column": 17 + }, + "end": { + "line": 383, + "column": 18 + } + } + }, + { + "type": { + "label": "if", + "keyword": "if", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "if", + "start": 13963, + "end": 13965, + "loc": { + "start": { + "line": 384, + "column": 6 + }, + "end": { + "line": 384, + "column": 8 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 13965, + "end": 13966, + "loc": { + "start": { + "line": 384, + "column": 8 + }, + "end": { + "line": 384, + "column": 9 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "buttonArr", + "start": 13966, + "end": 13975, + "loc": { + "start": { + "line": 384, + "column": 9 + }, + "end": { + "line": 384, + "column": 18 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 13975, + "end": 13976, + "loc": { + "start": { + "line": 384, + "column": 18 + }, + "end": { + "line": 384, + "column": 19 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "length", + "start": 13976, + "end": 13982, + "loc": { + "start": { + "line": 384, + "column": 19 + }, + "end": { + "line": 384, + "column": 25 + } + } + }, + { + "type": { + "label": "", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": 7, + "updateContext": null + }, + "value": ">", + "start": 13983, + "end": 13984, + "loc": { + "start": { + "line": 384, + "column": 26 + }, + "end": { + "line": 384, + "column": 27 + } + } + }, + { + "type": { + "label": "num", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": 1, + "start": 13985, + "end": 13986, + "loc": { + "start": { + "line": 384, + "column": 28 + }, + "end": { + "line": 384, + "column": 29 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 13986, + "end": 13987, + "loc": { + "start": { + "line": 384, + "column": 29 + }, + "end": { + "line": 384, + "column": 30 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 13987, + "end": 13988, + "loc": { + "start": { + "line": 384, + "column": 30 + }, + "end": { + "line": 384, + "column": 31 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "output", + "start": 13998, + "end": 14004, + "loc": { + "start": { + "line": 385, + "column": 8 + }, + "end": { + "line": 385, + "column": 14 + } + } + }, + { + "type": { + "label": "=", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": true, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "=", + "start": 14005, + "end": 14006, + "loc": { + "start": { + "line": 385, + "column": 15 + }, + "end": { + "line": 385, + "column": 16 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "buttonArr", + "start": 14007, + "end": 14016, + "loc": { + "start": { + "line": 385, + "column": 17 + }, + "end": { + "line": 385, + "column": 26 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 14016, + "end": 14017, + "loc": { + "start": { + "line": 385, + "column": 26 + }, + "end": { + "line": 385, + "column": 27 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 14025, + "end": 14026, + "loc": { + "start": { + "line": 386, + "column": 6 + }, + "end": { + "line": 386, + "column": 7 + } + } + }, + { + "type": { + "label": "else", + "keyword": "else", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "else", + "start": 14027, + "end": 14031, + "loc": { + "start": { + "line": 386, + "column": 8 + }, + "end": { + "line": 386, + "column": 12 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 14032, + "end": 14033, + "loc": { + "start": { + "line": 386, + "column": 13 + }, + "end": { + "line": 386, + "column": 14 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "output", + "start": 14043, + "end": 14049, + "loc": { + "start": { + "line": 387, + "column": 8 + }, + "end": { + "line": 387, + "column": 14 + } + } + }, + { + "type": { + "label": "=", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": true, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "=", + "start": 14050, + "end": 14051, + "loc": { + "start": { + "line": 387, + "column": 15 + }, + "end": { + "line": 387, + "column": 16 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "buttonArr", + "start": 14052, + "end": 14061, + "loc": { + "start": { + "line": 387, + "column": 17 + }, + "end": { + "line": 387, + "column": 26 + } + } + }, + { + "type": { + "label": "[", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 14061, + "end": 14062, + "loc": { + "start": { + "line": 387, + "column": 26 + }, + "end": { + "line": 387, + "column": 27 + } + } + }, + { + "type": { + "label": "num", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": 0, + "start": 14062, + "end": 14063, + "loc": { + "start": { + "line": 387, + "column": 27 + }, + "end": { + "line": 387, + "column": 28 + } + } + }, + { + "type": { + "label": "]", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 14063, + "end": 14064, + "loc": { + "start": { + "line": 387, + "column": 28 + }, + "end": { + "line": 387, + "column": 29 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 14064, + "end": 14065, + "loc": { + "start": { + "line": 387, + "column": 29 + }, + "end": { + "line": 387, + "column": 30 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 14073, + "end": 14074, + "loc": { + "start": { + "line": 388, + "column": 6 + }, + "end": { + "line": 388, + "column": 7 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 14080, + "end": 14081, + "loc": { + "start": { + "line": 389, + "column": 4 + }, + "end": { + "line": 389, + "column": 5 + } + } + }, + { + "type": { + "label": "return", + "keyword": "return", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "return", + "start": 14089, + "end": 14095, + "loc": { + "start": { + "line": 391, + "column": 4 + }, + "end": { + "line": 391, + "column": 10 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "output", + "start": 14096, + "end": 14102, + "loc": { + "start": { + "line": 391, + "column": 11 + }, + "end": { + "line": 391, + "column": 17 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 14102, + "end": 14103, + "loc": { + "start": { + "line": 391, + "column": 17 + }, + "end": { + "line": 391, + "column": 18 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 14107, + "end": 14108, + "loc": { + "start": { + "line": 392, + "column": 2 + }, + "end": { + "line": 392, + "column": 3 + } + } + }, + { + "type": "CommentBlock", + "value": "*\r\n * Retrieves the current cursor position within a input or textarea (if any)\r\n ", + "start": 14114, + "end": 14204, + "loc": { + "start": { + "line": 394, + "column": 2 + }, + "end": { + "line": 396, + "column": 5 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "handleCaret", + "start": 14208, + "end": 14219, + "loc": { + "start": { + "line": 397, + "column": 2 + }, + "end": { + "line": 397, + "column": 13 + } + } + }, + { + "type": { + "label": "=", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": true, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "=", + "start": 14220, + "end": 14221, + "loc": { + "start": { + "line": 397, + "column": 14 + }, + "end": { + "line": 397, + "column": 15 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 14222, + "end": 14223, + "loc": { + "start": { + "line": 397, + "column": 16 + }, + "end": { + "line": 397, + "column": 17 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 14223, + "end": 14224, + "loc": { + "start": { + "line": 397, + "column": 17 + }, + "end": { + "line": 397, + "column": 18 + } + } + }, + { + "type": { + "label": "=>", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 14225, + "end": 14227, + "loc": { + "start": { + "line": 397, + "column": 19 + }, + "end": { + "line": 397, + "column": 21 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 14228, + "end": 14229, + "loc": { + "start": { + "line": 397, + "column": 22 + }, + "end": { + "line": 397, + "column": 23 + } + } + }, + { + "type": { + "label": "if", + "keyword": "if", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "if", + "start": 14235, + "end": 14237, + "loc": { + "start": { + "line": 398, + "column": 4 + }, + "end": { + "line": 398, + "column": 6 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 14237, + "end": 14238, + "loc": { + "start": { + "line": 398, + "column": 6 + }, + "end": { + "line": 398, + "column": 7 + } + } + }, + { + "type": { + "label": "this", + "keyword": "this", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "this", + "start": 14238, + "end": 14242, + "loc": { + "start": { + "line": 398, + "column": 7 + }, + "end": { + "line": 398, + "column": 11 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 14242, + "end": 14243, + "loc": { + "start": { + "line": 398, + "column": 11 + }, + "end": { + "line": 398, + "column": 12 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "options", + "start": 14243, + "end": 14250, + "loc": { + "start": { + "line": 398, + "column": 12 + }, + "end": { + "line": 398, + "column": 19 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 14250, + "end": 14251, + "loc": { + "start": { + "line": 398, + "column": 19 + }, + "end": { + "line": 398, + "column": 20 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "debug", + "start": 14251, + "end": 14256, + "loc": { + "start": { + "line": 398, + "column": 20 + }, + "end": { + "line": 398, + "column": 25 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 14256, + "end": 14257, + "loc": { + "start": { + "line": 398, + "column": 25 + }, + "end": { + "line": 398, + "column": 26 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 14257, + "end": 14258, + "loc": { + "start": { + "line": 398, + "column": 26 + }, + "end": { + "line": 398, + "column": 27 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "console", + "start": 14266, + "end": 14273, + "loc": { + "start": { + "line": 399, + "column": 6 + }, + "end": { + "line": 399, + "column": 13 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 14273, + "end": 14274, + "loc": { + "start": { + "line": 399, + "column": 13 + }, + "end": { + "line": 399, + "column": 14 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "log", + "start": 14274, + "end": 14277, + "loc": { + "start": { + "line": 399, + "column": 14 + }, + "end": { + "line": 399, + "column": 17 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 14277, + "end": 14278, + "loc": { + "start": { + "line": 399, + "column": 17 + }, + "end": { + "line": 399, + "column": 18 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "Caret handling started", + "start": 14278, + "end": 14302, + "loc": { + "start": { + "line": 399, + "column": 18 + }, + "end": { + "line": 399, + "column": 42 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 14302, + "end": 14303, + "loc": { + "start": { + "line": 399, + "column": 42 + }, + "end": { + "line": 399, + "column": 43 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 14303, + "end": 14304, + "loc": { + "start": { + "line": 399, + "column": 43 + }, + "end": { + "line": 399, + "column": 44 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 14310, + "end": 14311, + "loc": { + "start": { + "line": 400, + "column": 4 + }, + "end": { + "line": 400, + "column": 5 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "document", + "start": 14319, + "end": 14327, + "loc": { + "start": { + "line": 402, + "column": 4 + }, + "end": { + "line": 402, + "column": 12 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 14327, + "end": 14328, + "loc": { + "start": { + "line": 402, + "column": 12 + }, + "end": { + "line": 402, + "column": 13 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "addEventListener", + "start": 14328, + "end": 14344, + "loc": { + "start": { + "line": 402, + "column": 13 + }, + "end": { + "line": 402, + "column": 29 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 14344, + "end": 14345, + "loc": { + "start": { + "line": 402, + "column": 29 + }, + "end": { + "line": 402, + "column": 30 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "keyup", + "start": 14345, + "end": 14352, + "loc": { + "start": { + "line": 402, + "column": 30 + }, + "end": { + "line": 402, + "column": 37 + } + } + }, + { + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 14352, + "end": 14353, + "loc": { + "start": { + "line": 402, + "column": 37 + }, + "end": { + "line": 402, + "column": 38 + } + } + }, + { + "type": { + "label": "this", + "keyword": "this", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "this", + "start": 14354, + "end": 14358, + "loc": { + "start": { + "line": 402, + "column": 39 + }, + "end": { + "line": 402, + "column": 43 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 14358, + "end": 14359, + "loc": { + "start": { + "line": 402, + "column": 43 + }, + "end": { + "line": 402, + "column": 44 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "caretEventHandler", + "start": 14359, + "end": 14376, + "loc": { + "start": { + "line": 402, + "column": 44 + }, + "end": { + "line": 402, + "column": 61 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 14376, + "end": 14377, + "loc": { + "start": { + "line": 402, + "column": 61 + }, + "end": { + "line": 402, + "column": 62 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 14377, + "end": 14378, + "loc": { + "start": { + "line": 402, + "column": 62 + }, + "end": { + "line": 402, + "column": 63 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "document", + "start": 14384, + "end": 14392, + "loc": { + "start": { + "line": 403, + "column": 4 + }, + "end": { + "line": 403, + "column": 12 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 14392, + "end": 14393, + "loc": { + "start": { + "line": 403, + "column": 12 + }, + "end": { + "line": 403, + "column": 13 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "addEventListener", + "start": 14393, + "end": 14409, + "loc": { + "start": { + "line": 403, + "column": 13 + }, + "end": { + "line": 403, + "column": 29 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 14409, + "end": 14410, + "loc": { + "start": { + "line": 403, + "column": 29 + }, + "end": { + "line": 403, + "column": 30 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "mouseup", + "start": 14410, + "end": 14419, + "loc": { + "start": { + "line": 403, + "column": 30 + }, + "end": { + "line": 403, + "column": 39 + } + } + }, + { + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 14419, + "end": 14420, + "loc": { + "start": { + "line": 403, + "column": 39 + }, + "end": { + "line": 403, + "column": 40 + } + } + }, + { + "type": { + "label": "this", + "keyword": "this", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "this", + "start": 14421, + "end": 14425, + "loc": { + "start": { + "line": 403, + "column": 41 + }, + "end": { + "line": 403, + "column": 45 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 14425, + "end": 14426, + "loc": { + "start": { + "line": 403, + "column": 45 + }, + "end": { + "line": 403, + "column": 46 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "caretEventHandler", + "start": 14426, + "end": 14443, + "loc": { + "start": { + "line": 403, + "column": 46 + }, + "end": { + "line": 403, + "column": 63 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 14443, + "end": 14444, + "loc": { + "start": { + "line": 403, + "column": 63 + }, + "end": { + "line": 403, + "column": 64 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 14444, + "end": 14445, + "loc": { + "start": { + "line": 403, + "column": 64 + }, + "end": { + "line": 403, + "column": 65 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "document", + "start": 14451, + "end": 14459, + "loc": { + "start": { + "line": 404, + "column": 4 + }, + "end": { + "line": 404, + "column": 12 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 14459, + "end": 14460, + "loc": { + "start": { + "line": 404, + "column": 12 + }, + "end": { + "line": 404, + "column": 13 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "addEventListener", + "start": 14460, + "end": 14476, + "loc": { + "start": { + "line": 404, + "column": 13 + }, + "end": { + "line": 404, + "column": 29 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 14476, + "end": 14477, + "loc": { + "start": { + "line": 404, + "column": 29 + }, + "end": { + "line": 404, + "column": 30 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "touchend", + "start": 14477, + "end": 14487, + "loc": { + "start": { + "line": 404, + "column": 30 + }, + "end": { + "line": 404, + "column": 40 + } + } + }, + { + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 14487, + "end": 14488, + "loc": { + "start": { + "line": 404, + "column": 40 + }, + "end": { + "line": 404, + "column": 41 + } + } + }, + { + "type": { + "label": "this", + "keyword": "this", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "this", + "start": 14489, + "end": 14493, + "loc": { + "start": { + "line": 404, + "column": 42 + }, + "end": { + "line": 404, + "column": 46 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 14493, + "end": 14494, + "loc": { + "start": { + "line": 404, + "column": 46 + }, + "end": { + "line": 404, + "column": 47 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "caretEventHandler", + "start": 14494, + "end": 14511, + "loc": { + "start": { + "line": 404, + "column": 47 + }, + "end": { + "line": 404, + "column": 64 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 14511, + "end": 14512, + "loc": { + "start": { + "line": 404, + "column": 64 + }, + "end": { + "line": 404, + "column": 65 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 14512, + "end": 14513, + "loc": { + "start": { + "line": 404, + "column": 65 + }, + "end": { + "line": 404, + "column": 66 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 14517, + "end": 14518, + "loc": { + "start": { + "line": 405, + "column": 2 + }, + "end": { + "line": 405, + "column": 3 + } + } + }, + { + "type": "CommentBlock", + "value": "*\r\n * Called by {@link handleCaret} when an event that warrants a cursor position update is triggered\r\n ", + "start": 14524, + "end": 14636, + "loc": { + "start": { + "line": 407, + "column": 2 + }, + "end": { + "line": 409, + "column": 5 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "caretEventHandler", + "start": 14640, + "end": 14657, + "loc": { + "start": { + "line": 410, + "column": 2 + }, + "end": { + "line": 410, + "column": 19 + } + } + }, + { + "type": { + "label": "=", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": true, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "=", + "start": 14658, + "end": 14659, + "loc": { + "start": { + "line": 410, + "column": 20 + }, + "end": { + "line": 410, + "column": 21 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 14660, + "end": 14661, + "loc": { + "start": { + "line": 410, + "column": 22 + }, + "end": { + "line": 410, + "column": 23 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "event", + "start": 14661, + "end": 14666, + "loc": { + "start": { + "line": 410, + "column": 23 + }, + "end": { + "line": 410, + "column": 28 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 14666, + "end": 14667, + "loc": { + "start": { + "line": 410, + "column": 28 + }, + "end": { + "line": 410, + "column": 29 + } + } + }, + { + "type": { + "label": "=>", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 14668, + "end": 14670, + "loc": { + "start": { + "line": 410, + "column": 30 + }, + "end": { + "line": 410, + "column": 32 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 14671, + "end": 14672, + "loc": { + "start": { + "line": 410, + "column": 33 + }, + "end": { + "line": 410, + "column": 34 + } + } + }, + { + "type": { + "label": "let", + "keyword": "let", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "let", + "start": 14678, + "end": 14681, + "loc": { + "start": { + "line": 411, + "column": 4 + }, + "end": { + "line": 411, + "column": 7 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "targetTagName", + "start": 14682, + "end": 14695, + "loc": { + "start": { + "line": 411, + "column": 8 + }, + "end": { + "line": 411, + "column": 21 + } + } + }, + { + "type": { + "label": "=", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": true, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "=", + "start": 14696, + "end": 14697, + "loc": { + "start": { + "line": 411, + "column": 22 + }, + "end": { + "line": 411, + "column": 23 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "event", + "start": 14698, + "end": 14703, + "loc": { + "start": { + "line": 411, + "column": 24 + }, + "end": { + "line": 411, + "column": 29 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 14703, + "end": 14704, + "loc": { + "start": { + "line": 411, + "column": 29 + }, + "end": { + "line": 411, + "column": 30 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "target", + "start": 14704, + "end": 14710, + "loc": { + "start": { + "line": 411, + "column": 30 + }, + "end": { + "line": 411, + "column": 36 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 14710, + "end": 14711, + "loc": { + "start": { + "line": 411, + "column": 36 + }, + "end": { + "line": 411, + "column": 37 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "tagName", + "start": 14711, + "end": 14718, + "loc": { + "start": { + "line": 411, + "column": 37 + }, + "end": { + "line": 411, + "column": 44 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 14718, + "end": 14719, + "loc": { + "start": { + "line": 411, + "column": 44 + }, + "end": { + "line": 411, + "column": 45 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "toLowerCase", + "start": 14719, + "end": 14730, + "loc": { + "start": { + "line": 411, + "column": 45 + }, + "end": { + "line": 411, + "column": 56 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 14730, + "end": 14731, + "loc": { + "start": { + "line": 411, + "column": 56 + }, + "end": { + "line": 411, + "column": 57 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 14731, + "end": 14732, + "loc": { + "start": { + "line": 411, + "column": 57 + }, + "end": { + "line": 411, + "column": 58 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 14732, + "end": 14733, + "loc": { + "start": { + "line": 411, + "column": 58 + }, + "end": { + "line": 411, + "column": 59 + } + } + }, + { + "type": { + "label": "if", + "keyword": "if", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "if", + "start": 14741, + "end": 14743, + "loc": { + "start": { + "line": 413, + "column": 4 + }, + "end": { + "line": 413, + "column": 6 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 14743, + "end": 14744, + "loc": { + "start": { + "line": 413, + "column": 6 + }, + "end": { + "line": 413, + "column": 7 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "targetTagName", + "start": 14752, + "end": 14765, + "loc": { + "start": { + "line": 414, + "column": 6 + }, + "end": { + "line": 414, + "column": 19 + } + } + }, + { + "type": { + "label": "==/!=", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": 6, + "updateContext": null + }, + "value": "===", + "start": 14766, + "end": 14769, + "loc": { + "start": { + "line": 414, + "column": 20 + }, + "end": { + "line": 414, + "column": 23 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "textarea", + "start": 14770, + "end": 14780, + "loc": { + "start": { + "line": 414, + "column": 24 + }, + "end": { + "line": 414, + "column": 34 + } + } + }, + { + "type": { + "label": "||", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": 1, + "updateContext": null + }, + "value": "||", + "start": 14781, + "end": 14783, + "loc": { + "start": { + "line": 414, + "column": 35 + }, + "end": { + "line": 414, + "column": 37 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "targetTagName", + "start": 14791, + "end": 14804, + "loc": { + "start": { + "line": 415, + "column": 6 + }, + "end": { + "line": 415, + "column": 19 + } + } + }, + { + "type": { + "label": "==/!=", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": 6, + "updateContext": null + }, + "value": "===", + "start": 14805, + "end": 14808, + "loc": { + "start": { + "line": 415, + "column": 20 + }, + "end": { + "line": 415, + "column": 23 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "input", + "start": 14809, + "end": 14816, + "loc": { + "start": { + "line": 415, + "column": 24 + }, + "end": { + "line": 415, + "column": 31 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 14822, + "end": 14823, + "loc": { + "start": { + "line": 416, + "column": 4 + }, + "end": { + "line": 416, + "column": 5 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 14823, + "end": 14824, + "loc": { + "start": { + "line": 416, + "column": 5 + }, + "end": { + "line": 416, + "column": 6 + } + } + }, + { + "type": "CommentBlock", + "value": "*\r\n * Tracks current cursor position\r\n * As keys are pressed, text will be added/removed at that position within the input.\r\n ", + "start": 14832, + "end": 14980, + "loc": { + "start": { + "line": 417, + "column": 6 + }, + "end": { + "line": 420, + "column": 9 + } + } + }, + { + "type": { + "label": "this", + "keyword": "this", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "this", + "start": 14988, + "end": 14992, + "loc": { + "start": { + "line": 421, + "column": 6 + }, + "end": { + "line": 421, + "column": 10 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 14992, + "end": 14993, + "loc": { + "start": { + "line": 421, + "column": 10 + }, + "end": { + "line": 421, + "column": 11 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "caretPosition", + "start": 14993, + "end": 15006, + "loc": { + "start": { + "line": 421, + "column": 11 + }, + "end": { + "line": 421, + "column": 24 + } + } + }, + { + "type": { + "label": "=", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": true, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "=", + "start": 15007, + "end": 15008, + "loc": { + "start": { + "line": 421, + "column": 25 + }, + "end": { + "line": 421, + "column": 26 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "event", + "start": 15009, + "end": 15014, + "loc": { + "start": { + "line": 421, + "column": 27 + }, + "end": { + "line": 421, + "column": 32 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 15014, + "end": 15015, + "loc": { + "start": { + "line": 421, + "column": 32 + }, + "end": { + "line": 421, + "column": 33 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "target", + "start": 15015, + "end": 15021, + "loc": { + "start": { + "line": 421, + "column": 33 + }, + "end": { + "line": 421, + "column": 39 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 15021, + "end": 15022, + "loc": { + "start": { + "line": 421, + "column": 39 + }, + "end": { + "line": 421, + "column": 40 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "selectionStart", + "start": 15022, + "end": 15036, + "loc": { + "start": { + "line": 421, + "column": 40 + }, + "end": { + "line": 421, + "column": 54 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 15036, + "end": 15037, + "loc": { + "start": { + "line": 421, + "column": 54 + }, + "end": { + "line": 421, + "column": 55 + } + } + }, + { + "type": { + "label": "if", + "keyword": "if", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "if", + "start": 15047, + "end": 15049, + "loc": { + "start": { + "line": 423, + "column": 6 + }, + "end": { + "line": 423, + "column": 8 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 15049, + "end": 15050, + "loc": { + "start": { + "line": 423, + "column": 8 + }, + "end": { + "line": 423, + "column": 9 + } + } + }, + { + "type": { + "label": "this", + "keyword": "this", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "this", + "start": 15050, + "end": 15054, + "loc": { + "start": { + "line": 423, + "column": 9 + }, + "end": { + "line": 423, + "column": 13 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 15054, + "end": 15055, + "loc": { + "start": { + "line": 423, + "column": 13 + }, + "end": { + "line": 423, + "column": 14 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "options", + "start": 15055, + "end": 15062, + "loc": { + "start": { + "line": 423, + "column": 14 + }, + "end": { + "line": 423, + "column": 21 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 15062, + "end": 15063, + "loc": { + "start": { + "line": 423, + "column": 21 + }, + "end": { + "line": 423, + "column": 22 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "debug", + "start": 15063, + "end": 15068, + "loc": { + "start": { + "line": 423, + "column": 22 + }, + "end": { + "line": 423, + "column": 27 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 15068, + "end": 15069, + "loc": { + "start": { + "line": 423, + "column": 27 + }, + "end": { + "line": 423, + "column": 28 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 15069, + "end": 15070, + "loc": { + "start": { + "line": 423, + "column": 28 + }, + "end": { + "line": 423, + "column": 29 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "console", + "start": 15080, + "end": 15087, + "loc": { + "start": { + "line": 424, + "column": 8 + }, + "end": { + "line": 424, + "column": 15 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 15087, + "end": 15088, + "loc": { + "start": { + "line": 424, + "column": 15 + }, + "end": { + "line": 424, + "column": 16 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "log", + "start": 15088, + "end": 15091, + "loc": { + "start": { + "line": 424, + "column": 16 + }, + "end": { + "line": 424, + "column": 19 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 15091, + "end": 15092, + "loc": { + "start": { + "line": 424, + "column": 19 + }, + "end": { + "line": 424, + "column": 20 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "Caret at: ", + "start": 15092, + "end": 15104, + "loc": { + "start": { + "line": 424, + "column": 20 + }, + "end": { + "line": 424, + "column": 32 + } + } + }, + { + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 15104, + "end": 15105, + "loc": { + "start": { + "line": 424, + "column": 32 + }, + "end": { + "line": 424, + "column": 33 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "event", + "start": 15106, + "end": 15111, + "loc": { + "start": { + "line": 424, + "column": 34 + }, + "end": { + "line": 424, + "column": 39 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 15111, + "end": 15112, + "loc": { + "start": { + "line": 424, + "column": 39 + }, + "end": { + "line": 424, + "column": 40 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "target", + "start": 15112, + "end": 15118, + "loc": { + "start": { + "line": 424, + "column": 40 + }, + "end": { + "line": 424, + "column": 46 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 15118, + "end": 15119, + "loc": { + "start": { + "line": 424, + "column": 46 + }, + "end": { + "line": 424, + "column": 47 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "selectionStart", + "start": 15119, + "end": 15133, + "loc": { + "start": { + "line": 424, + "column": 47 + }, + "end": { + "line": 424, + "column": 61 + } + } + }, + { + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 15133, + "end": 15134, + "loc": { + "start": { + "line": 424, + "column": 61 + }, + "end": { + "line": 424, + "column": 62 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "event", + "start": 15135, + "end": 15140, + "loc": { + "start": { + "line": 424, + "column": 63 + }, + "end": { + "line": 424, + "column": 68 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 15140, + "end": 15141, + "loc": { + "start": { + "line": 424, + "column": 68 + }, + "end": { + "line": 424, + "column": 69 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "target", + "start": 15141, + "end": 15147, + "loc": { + "start": { + "line": 424, + "column": 69 + }, + "end": { + "line": 424, + "column": 75 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 15147, + "end": 15148, + "loc": { + "start": { + "line": 424, + "column": 75 + }, + "end": { + "line": 424, + "column": 76 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "tagName", + "start": 15148, + "end": 15155, + "loc": { + "start": { + "line": 424, + "column": 76 + }, + "end": { + "line": 424, + "column": 83 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 15155, + "end": 15156, + "loc": { + "start": { + "line": 424, + "column": 83 + }, + "end": { + "line": 424, + "column": 84 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "toLowerCase", + "start": 15156, + "end": 15167, + "loc": { + "start": { + "line": 424, + "column": 84 + }, + "end": { + "line": 424, + "column": 95 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 15167, + "end": 15168, + "loc": { + "start": { + "line": 424, + "column": 95 + }, + "end": { + "line": 424, + "column": 96 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 15168, + "end": 15169, + "loc": { + "start": { + "line": 424, + "column": 96 + }, + "end": { + "line": 424, + "column": 97 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 15169, + "end": 15170, + "loc": { + "start": { + "line": 424, + "column": 97 + }, + "end": { + "line": 424, + "column": 98 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 15170, + "end": 15171, + "loc": { + "start": { + "line": 424, + "column": 98 + }, + "end": { + "line": 424, + "column": 99 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 15179, + "end": 15180, + "loc": { + "start": { + "line": 425, + "column": 6 + }, + "end": { + "line": 425, + "column": 7 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 15191, + "end": 15192, + "loc": { + "start": { + "line": 426, + "column": 4 + }, + "end": { + "line": 426, + "column": 5 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 15196, + "end": 15197, + "loc": { + "start": { + "line": 427, + "column": 2 + }, + "end": { + "line": 427, + "column": 3 + } + } + }, + { + "type": "CommentBlock", + "value": "*\r\n * Executes the callback function once simple-keyboard is rendered for the first time (on initialization).\r\n ", + "start": 15203, + "end": 15323, + "loc": { + "start": { + "line": 429, + "column": 2 + }, + "end": { + "line": 431, + "column": 5 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "onInit", + "start": 15327, + "end": 15333, + "loc": { + "start": { + "line": 432, + "column": 2 + }, + "end": { + "line": 432, + "column": 8 + } + } + }, + { + "type": { + "label": "=", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": true, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "=", + "start": 15334, + "end": 15335, + "loc": { + "start": { + "line": 432, + "column": 9 + }, + "end": { + "line": 432, + "column": 10 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 15336, + "end": 15337, + "loc": { + "start": { + "line": 432, + "column": 11 + }, + "end": { + "line": 432, + "column": 12 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 15337, + "end": 15338, + "loc": { + "start": { + "line": 432, + "column": 12 + }, + "end": { + "line": 432, + "column": 13 + } + } + }, + { + "type": { + "label": "=>", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 15339, + "end": 15341, + "loc": { + "start": { + "line": 432, + "column": 14 + }, + "end": { + "line": 432, + "column": 16 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 15342, + "end": 15343, + "loc": { + "start": { + "line": 432, + "column": 17 + }, + "end": { + "line": 432, + "column": 18 + } + } + }, + { + "type": { + "label": "if", + "keyword": "if", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "if", + "start": 15349, + "end": 15351, + "loc": { + "start": { + "line": 433, + "column": 4 + }, + "end": { + "line": 433, + "column": 6 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 15351, + "end": 15352, + "loc": { + "start": { + "line": 433, + "column": 6 + }, + "end": { + "line": 433, + "column": 7 + } + } + }, + { + "type": { + "label": "this", + "keyword": "this", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "this", + "start": 15352, + "end": 15356, + "loc": { + "start": { + "line": 433, + "column": 7 + }, + "end": { + "line": 433, + "column": 11 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 15356, + "end": 15357, + "loc": { + "start": { + "line": 433, + "column": 11 + }, + "end": { + "line": 433, + "column": 12 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "options", + "start": 15357, + "end": 15364, + "loc": { + "start": { + "line": 433, + "column": 12 + }, + "end": { + "line": 433, + "column": 19 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 15364, + "end": 15365, + "loc": { + "start": { + "line": 433, + "column": 19 + }, + "end": { + "line": 433, + "column": 20 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "debug", + "start": 15365, + "end": 15370, + "loc": { + "start": { + "line": 433, + "column": 20 + }, + "end": { + "line": 433, + "column": 25 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 15370, + "end": 15371, + "loc": { + "start": { + "line": 433, + "column": 25 + }, + "end": { + "line": 433, + "column": 26 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 15371, + "end": 15372, + "loc": { + "start": { + "line": 433, + "column": 26 + }, + "end": { + "line": 433, + "column": 27 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "console", + "start": 15380, + "end": 15387, + "loc": { + "start": { + "line": 434, + "column": 6 + }, + "end": { + "line": 434, + "column": 13 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 15387, + "end": 15388, + "loc": { + "start": { + "line": 434, + "column": 13 + }, + "end": { + "line": 434, + "column": 14 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "log", + "start": 15388, + "end": 15391, + "loc": { + "start": { + "line": 434, + "column": 14 + }, + "end": { + "line": 434, + "column": 17 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 15391, + "end": 15392, + "loc": { + "start": { + "line": 434, + "column": 17 + }, + "end": { + "line": 434, + "column": 18 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "Initialized", + "start": 15392, + "end": 15405, + "loc": { + "start": { + "line": 434, + "column": 18 + }, + "end": { + "line": 434, + "column": 31 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 15405, + "end": 15406, + "loc": { + "start": { + "line": 434, + "column": 31 + }, + "end": { + "line": 434, + "column": 32 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 15406, + "end": 15407, + "loc": { + "start": { + "line": 434, + "column": 32 + }, + "end": { + "line": 434, + "column": 33 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 15413, + "end": 15414, + "loc": { + "start": { + "line": 435, + "column": 4 + }, + "end": { + "line": 435, + "column": 5 + } + } + }, + { + "type": "CommentBlock", + "value": "*\r\n * Caret handling\r\n ", + "start": 15422, + "end": 15457, + "loc": { + "start": { + "line": 437, + "column": 4 + }, + "end": { + "line": 439, + "column": 7 + } + } + }, + { + "type": { + "label": "this", + "keyword": "this", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "this", + "start": 15463, + "end": 15467, + "loc": { + "start": { + "line": 440, + "column": 4 + }, + "end": { + "line": 440, + "column": 8 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 15467, + "end": 15468, + "loc": { + "start": { + "line": 440, + "column": 8 + }, + "end": { + "line": 440, + "column": 9 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "handleCaret", + "start": 15468, + "end": 15479, + "loc": { + "start": { + "line": 440, + "column": 9 + }, + "end": { + "line": 440, + "column": 20 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 15479, + "end": 15480, + "loc": { + "start": { + "line": 440, + "column": 20 + }, + "end": { + "line": 440, + "column": 21 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 15480, + "end": 15481, + "loc": { + "start": { + "line": 440, + "column": 21 + }, + "end": { + "line": 440, + "column": 22 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 15481, + "end": 15482, + "loc": { + "start": { + "line": 440, + "column": 22 + }, + "end": { + "line": 440, + "column": 23 + } + } + }, + { + "type": { + "label": "if", + "keyword": "if", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "if", + "start": 15490, + "end": 15492, + "loc": { + "start": { + "line": 442, + "column": 4 + }, + "end": { + "line": 442, + "column": 6 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 15492, + "end": 15493, + "loc": { + "start": { + "line": 442, + "column": 6 + }, + "end": { + "line": 442, + "column": 7 + } + } + }, + { + "type": { + "label": "typeof", + "keyword": "typeof", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": true, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "typeof", + "start": 15493, + "end": 15499, + "loc": { + "start": { + "line": 442, + "column": 7 + }, + "end": { + "line": 442, + "column": 13 + } + } + }, + { + "type": { + "label": "this", + "keyword": "this", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "this", + "start": 15500, + "end": 15504, + "loc": { + "start": { + "line": 442, + "column": 14 + }, + "end": { + "line": 442, + "column": 18 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 15504, + "end": 15505, + "loc": { + "start": { + "line": 442, + "column": 18 + }, + "end": { + "line": 442, + "column": 19 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "options", + "start": 15505, + "end": 15512, + "loc": { + "start": { + "line": 442, + "column": 19 + }, + "end": { + "line": 442, + "column": 26 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 15512, + "end": 15513, + "loc": { + "start": { + "line": 442, + "column": 26 + }, + "end": { + "line": 442, + "column": 27 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "onInit", + "start": 15513, + "end": 15519, + "loc": { + "start": { + "line": 442, + "column": 27 + }, + "end": { + "line": 442, + "column": 33 + } + } + }, + { + "type": { + "label": "==/!=", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": 6, + "updateContext": null + }, + "value": "===", + "start": 15520, + "end": 15523, + "loc": { + "start": { + "line": 442, + "column": 34 + }, + "end": { + "line": 442, + "column": 37 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "function", + "start": 15524, + "end": 15534, + "loc": { + "start": { + "line": 442, + "column": 38 + }, + "end": { + "line": 442, + "column": 48 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 15534, + "end": 15535, + "loc": { + "start": { + "line": 442, + "column": 48 + }, + "end": { + "line": 442, + "column": 49 + } + } + }, + { + "type": { + "label": "this", + "keyword": "this", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "this", + "start": 15543, + "end": 15547, + "loc": { + "start": { + "line": 443, + "column": 6 + }, + "end": { + "line": 443, + "column": 10 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 15547, + "end": 15548, + "loc": { + "start": { + "line": 443, + "column": 10 + }, + "end": { + "line": 443, + "column": 11 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "options", + "start": 15548, + "end": 15555, + "loc": { + "start": { + "line": 443, + "column": 11 + }, + "end": { + "line": 443, + "column": 18 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 15555, + "end": 15556, + "loc": { + "start": { + "line": 443, + "column": 18 + }, + "end": { + "line": 443, + "column": 19 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "onInit", + "start": 15556, + "end": 15562, + "loc": { + "start": { + "line": 443, + "column": 19 + }, + "end": { + "line": 443, + "column": 25 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 15562, + "end": 15563, + "loc": { + "start": { + "line": 443, + "column": 25 + }, + "end": { + "line": 443, + "column": 26 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 15563, + "end": 15564, + "loc": { + "start": { + "line": 443, + "column": 26 + }, + "end": { + "line": 443, + "column": 27 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 15564, + "end": 15565, + "loc": { + "start": { + "line": 443, + "column": 27 + }, + "end": { + "line": 443, + "column": 28 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 15569, + "end": 15570, + "loc": { + "start": { + "line": 444, + "column": 2 + }, + "end": { + "line": 444, + "column": 3 + } + } + }, + { + "type": "CommentBlock", + "value": "*\r\n * Executes the callback function every time simple-keyboard is rendered (e.g: when you change layouts).\r\n ", + "start": 15576, + "end": 15694, + "loc": { + "start": { + "line": 446, + "column": 2 + }, + "end": { + "line": 448, + "column": 5 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "onRender", + "start": 15698, + "end": 15706, + "loc": { + "start": { + "line": 449, + "column": 2 + }, + "end": { + "line": 449, + "column": 10 + } + } + }, + { + "type": { + "label": "=", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": true, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "=", + "start": 15707, + "end": 15708, + "loc": { + "start": { + "line": 449, + "column": 11 + }, + "end": { + "line": 449, + "column": 12 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 15709, + "end": 15710, + "loc": { + "start": { + "line": 449, + "column": 13 + }, + "end": { + "line": 449, + "column": 14 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 15710, + "end": 15711, + "loc": { + "start": { + "line": 449, + "column": 14 + }, + "end": { + "line": 449, + "column": 15 + } + } + }, + { + "type": { + "label": "=>", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 15712, + "end": 15714, + "loc": { + "start": { + "line": 449, + "column": 16 + }, + "end": { + "line": 449, + "column": 18 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 15715, + "end": 15716, + "loc": { + "start": { + "line": 449, + "column": 19 + }, + "end": { + "line": 449, + "column": 20 + } + } + }, + { + "type": { + "label": "if", + "keyword": "if", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "if", + "start": 15722, + "end": 15724, + "loc": { + "start": { + "line": 450, + "column": 4 + }, + "end": { + "line": 450, + "column": 6 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 15724, + "end": 15725, + "loc": { + "start": { + "line": 450, + "column": 6 + }, + "end": { + "line": 450, + "column": 7 + } + } + }, + { + "type": { + "label": "typeof", + "keyword": "typeof", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": true, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "typeof", + "start": 15725, + "end": 15731, + "loc": { + "start": { + "line": 450, + "column": 7 + }, + "end": { + "line": 450, + "column": 13 + } + } + }, + { + "type": { + "label": "this", + "keyword": "this", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "this", + "start": 15732, + "end": 15736, + "loc": { + "start": { + "line": 450, + "column": 14 + }, + "end": { + "line": 450, + "column": 18 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 15736, + "end": 15737, + "loc": { + "start": { + "line": 450, + "column": 18 + }, + "end": { + "line": 450, + "column": 19 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "options", + "start": 15737, + "end": 15744, + "loc": { + "start": { + "line": 450, + "column": 19 + }, + "end": { + "line": 450, + "column": 26 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 15744, + "end": 15745, + "loc": { + "start": { + "line": 450, + "column": 26 + }, + "end": { + "line": 450, + "column": 27 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "onRender", + "start": 15745, + "end": 15753, + "loc": { + "start": { + "line": 450, + "column": 27 + }, + "end": { + "line": 450, + "column": 35 + } + } + }, + { + "type": { + "label": "==/!=", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": 6, + "updateContext": null + }, + "value": "===", + "start": 15754, + "end": 15757, + "loc": { + "start": { + "line": 450, + "column": 36 + }, + "end": { + "line": 450, + "column": 39 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "function", + "start": 15758, + "end": 15768, + "loc": { + "start": { + "line": 450, + "column": 40 + }, + "end": { + "line": 450, + "column": 50 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 15768, + "end": 15769, + "loc": { + "start": { + "line": 450, + "column": 50 + }, + "end": { + "line": 450, + "column": 51 + } + } + }, + { + "type": { + "label": "this", + "keyword": "this", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "this", + "start": 15777, + "end": 15781, + "loc": { + "start": { + "line": 451, + "column": 6 + }, + "end": { + "line": 451, + "column": 10 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 15781, + "end": 15782, + "loc": { + "start": { + "line": 451, + "column": 10 + }, + "end": { + "line": 451, + "column": 11 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "options", + "start": 15782, + "end": 15789, + "loc": { + "start": { + "line": 451, + "column": 11 + }, + "end": { + "line": 451, + "column": 18 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 15789, + "end": 15790, + "loc": { + "start": { + "line": 451, + "column": 18 + }, + "end": { + "line": 451, + "column": 19 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "onRender", + "start": 15790, + "end": 15798, + "loc": { + "start": { + "line": 451, + "column": 19 + }, + "end": { + "line": 451, + "column": 27 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 15798, + "end": 15799, + "loc": { + "start": { + "line": 451, + "column": 27 + }, + "end": { + "line": 451, + "column": 28 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 15799, + "end": 15800, + "loc": { + "start": { + "line": 451, + "column": 28 + }, + "end": { + "line": 451, + "column": 29 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 15800, + "end": 15801, + "loc": { + "start": { + "line": 451, + "column": 29 + }, + "end": { + "line": 451, + "column": 30 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 15805, + "end": 15806, + "loc": { + "start": { + "line": 452, + "column": 2 + }, + "end": { + "line": 452, + "column": 3 + } + } + }, + { + "type": "CommentBlock", + "value": "*\r\n * Renders rows and buttons as per options\r\n ", + "start": 15812, + "end": 15868, + "loc": { + "start": { + "line": 454, + "column": 2 + }, + "end": { + "line": 456, + "column": 5 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "render", + "start": 15872, + "end": 15878, + "loc": { + "start": { + "line": 457, + "column": 2 + }, + "end": { + "line": 457, + "column": 8 + } + } + }, + { + "type": { + "label": "=", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": true, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "=", + "start": 15879, + "end": 15880, + "loc": { + "start": { + "line": 457, + "column": 9 + }, + "end": { + "line": 457, + "column": 10 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 15881, + "end": 15882, + "loc": { + "start": { + "line": 457, + "column": 11 + }, + "end": { + "line": 457, + "column": 12 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 15882, + "end": 15883, + "loc": { + "start": { + "line": 457, + "column": 12 + }, + "end": { + "line": 457, + "column": 13 + } + } + }, + { + "type": { + "label": "=>", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 15884, + "end": 15886, + "loc": { + "start": { + "line": 457, + "column": 14 + }, + "end": { + "line": 457, + "column": 16 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 15887, + "end": 15888, + "loc": { + "start": { + "line": 457, + "column": 17 + }, + "end": { + "line": 457, + "column": 18 + } + } + }, + { + "type": "CommentBlock", + "value": "*\r\n * Clear keyboard\r\n ", + "start": 15894, + "end": 15929, + "loc": { + "start": { + "line": 458, + "column": 4 + }, + "end": { + "line": 460, + "column": 7 + } + } + }, + { + "type": { + "label": "this", + "keyword": "this", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "this", + "start": 15935, + "end": 15939, + "loc": { + "start": { + "line": 461, + "column": 4 + }, + "end": { + "line": 461, + "column": 8 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 15939, + "end": 15940, + "loc": { + "start": { + "line": 461, + "column": 8 + }, + "end": { + "line": 461, + "column": 9 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "clear", + "start": 15940, + "end": 15945, + "loc": { + "start": { + "line": 461, + "column": 9 + }, + "end": { + "line": 461, + "column": 14 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 15945, + "end": 15946, + "loc": { + "start": { + "line": 461, + "column": 14 + }, + "end": { + "line": 461, + "column": 15 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 15946, + "end": 15947, + "loc": { + "start": { + "line": 461, + "column": 15 + }, + "end": { + "line": 461, + "column": 16 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 15947, + "end": 15948, + "loc": { + "start": { + "line": 461, + "column": 16 + }, + "end": { + "line": 461, + "column": 17 + } + } + }, + { + "type": { + "label": "let", + "keyword": "let", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "let", + "start": 15956, + "end": 15959, + "loc": { + "start": { + "line": 463, + "column": 4 + }, + "end": { + "line": 463, + "column": 7 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "layoutClass", + "start": 15960, + "end": 15971, + "loc": { + "start": { + "line": 463, + "column": 8 + }, + "end": { + "line": 463, + "column": 19 + } + } + }, + { + "type": { + "label": "=", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": true, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "=", + "start": 15972, + "end": 15973, + "loc": { + "start": { + "line": 463, + "column": 20 + }, + "end": { + "line": 463, + "column": 21 + } + } + }, + { + "type": { + "label": "this", + "keyword": "this", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "this", + "start": 15974, + "end": 15978, + "loc": { + "start": { + "line": 463, + "column": 22 + }, + "end": { + "line": 463, + "column": 26 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 15978, + "end": 15979, + "loc": { + "start": { + "line": 463, + "column": 26 + }, + "end": { + "line": 463, + "column": 27 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "options", + "start": 15979, + "end": 15986, + "loc": { + "start": { + "line": 463, + "column": 27 + }, + "end": { + "line": 463, + "column": 34 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 15986, + "end": 15987, + "loc": { + "start": { + "line": 463, + "column": 34 + }, + "end": { + "line": 463, + "column": 35 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "layout", + "start": 15987, + "end": 15993, + "loc": { + "start": { + "line": 463, + "column": 35 + }, + "end": { + "line": 463, + "column": 41 + } + } + }, + { + "type": { + "label": "?", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 15994, + "end": 15995, + "loc": { + "start": { + "line": 463, + "column": 42 + }, + "end": { + "line": 463, + "column": 43 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "hg-layout-custom", + "start": 15996, + "end": 16014, + "loc": { + "start": { + "line": 463, + "column": 44 + }, + "end": { + "line": 463, + "column": 62 + } + } + }, + { + "type": { + "label": ":", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 16015, + "end": 16016, + "loc": { + "start": { + "line": 463, + "column": 63 + }, + "end": { + "line": 463, + "column": 64 + } + } + }, + { + "type": { + "label": "`", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 16017, + "end": 16018, + "loc": { + "start": { + "line": 463, + "column": 65 + }, + "end": { + "line": 463, + "column": 66 + } + } + }, + { + "type": { + "label": "template", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "hg-layout-", + "start": 16018, + "end": 16028, + "loc": { + "start": { + "line": 463, + "column": 66 + }, + "end": { + "line": 463, + "column": 76 + } + } + }, + { + "type": { + "label": "${", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 16028, + "end": 16030, + "loc": { + "start": { + "line": 463, + "column": 76 + }, + "end": { + "line": 463, + "column": 78 + } + } + }, + { + "type": { + "label": "this", + "keyword": "this", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "this", + "start": 16030, + "end": 16034, + "loc": { + "start": { + "line": 463, + "column": 78 + }, + "end": { + "line": 463, + "column": 82 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 16034, + "end": 16035, + "loc": { + "start": { + "line": 463, + "column": 82 + }, + "end": { + "line": 463, + "column": 83 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "options", + "start": 16035, + "end": 16042, + "loc": { + "start": { + "line": 463, + "column": 83 + }, + "end": { + "line": 463, + "column": 90 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 16042, + "end": 16043, + "loc": { + "start": { + "line": 463, + "column": 90 + }, + "end": { + "line": 463, + "column": 91 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "layoutName", + "start": 16043, + "end": 16053, + "loc": { + "start": { + "line": 463, + "column": 91 + }, + "end": { + "line": 463, + "column": 101 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 16053, + "end": 16054, + "loc": { + "start": { + "line": 463, + "column": 101 + }, + "end": { + "line": 463, + "column": 102 + } + } + }, + { + "type": { + "label": "template", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "", + "start": 16054, + "end": 16054, + "loc": { + "start": { + "line": 463, + "column": 102 + }, + "end": { + "line": 463, + "column": 102 + } + } + }, + { + "type": { + "label": "`", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 16054, + "end": 16055, + "loc": { + "start": { + "line": 463, + "column": 102 + }, + "end": { + "line": 463, + "column": 103 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 16055, + "end": 16056, + "loc": { + "start": { + "line": 463, + "column": 103 + }, + "end": { + "line": 463, + "column": 104 + } + } + }, + { + "type": { + "label": "let", + "keyword": "let", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "let", + "start": 16062, + "end": 16065, + "loc": { + "start": { + "line": 464, + "column": 4 + }, + "end": { + "line": 464, + "column": 7 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "layout", + "start": 16066, + "end": 16072, + "loc": { + "start": { + "line": 464, + "column": 8 + }, + "end": { + "line": 464, + "column": 14 + } + } + }, + { + "type": { + "label": "=", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": true, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "=", + "start": 16073, + "end": 16074, + "loc": { + "start": { + "line": 464, + "column": 15 + }, + "end": { + "line": 464, + "column": 16 + } + } + }, + { + "type": { + "label": "this", + "keyword": "this", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "this", + "start": 16075, + "end": 16079, + "loc": { + "start": { + "line": 464, + "column": 17 + }, + "end": { + "line": 464, + "column": 21 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 16079, + "end": 16080, + "loc": { + "start": { + "line": 464, + "column": 21 + }, + "end": { + "line": 464, + "column": 22 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "options", + "start": 16080, + "end": 16087, + "loc": { + "start": { + "line": 464, + "column": 22 + }, + "end": { + "line": 464, + "column": 29 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 16087, + "end": 16088, + "loc": { + "start": { + "line": 464, + "column": 29 + }, + "end": { + "line": 464, + "column": 30 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "layout", + "start": 16088, + "end": 16094, + "loc": { + "start": { + "line": 464, + "column": 30 + }, + "end": { + "line": 464, + "column": 36 + } + } + }, + { + "type": { + "label": "||", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": 1, + "updateContext": null + }, + "value": "||", + "start": 16095, + "end": 16097, + "loc": { + "start": { + "line": 464, + "column": 37 + }, + "end": { + "line": 464, + "column": 39 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "KeyboardLayout", + "start": 16098, + "end": 16112, + "loc": { + "start": { + "line": 464, + "column": 40 + }, + "end": { + "line": 464, + "column": 54 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 16112, + "end": 16113, + "loc": { + "start": { + "line": 464, + "column": 54 + }, + "end": { + "line": 464, + "column": 55 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "getDefaultLayout", + "start": 16113, + "end": 16129, + "loc": { + "start": { + "line": 464, + "column": 55 + }, + "end": { + "line": 464, + "column": 71 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 16129, + "end": 16130, + "loc": { + "start": { + "line": 464, + "column": 71 + }, + "end": { + "line": 464, + "column": 72 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 16130, + "end": 16131, + "loc": { + "start": { + "line": 464, + "column": 72 + }, + "end": { + "line": 464, + "column": 73 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 16131, + "end": 16132, + "loc": { + "start": { + "line": 464, + "column": 73 + }, + "end": { + "line": 464, + "column": 74 + } + } + }, + { + "type": "CommentBlock", + "value": "*\r\n * Account for buttonTheme, if set\r\n ", + "start": 16140, + "end": 16192, + "loc": { + "start": { + "line": 466, + "column": 4 + }, + "end": { + "line": 468, + "column": 7 + } + } + }, + { + "type": { + "label": "let", + "keyword": "let", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "let", + "start": 16198, + "end": 16201, + "loc": { + "start": { + "line": 469, + "column": 4 + }, + "end": { + "line": 469, + "column": 7 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "buttonThemesParsed", + "start": 16202, + "end": 16220, + "loc": { + "start": { + "line": 469, + "column": 8 + }, + "end": { + "line": 469, + "column": 26 + } + } + }, + { + "type": { + "label": "=", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": true, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "=", + "start": 16221, + "end": 16222, + "loc": { + "start": { + "line": 469, + "column": 27 + }, + "end": { + "line": 469, + "column": 28 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 16223, + "end": 16224, + "loc": { + "start": { + "line": 469, + "column": 29 + }, + "end": { + "line": 469, + "column": 30 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 16224, + "end": 16225, + "loc": { + "start": { + "line": 469, + "column": 30 + }, + "end": { + "line": 469, + "column": 31 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 16225, + "end": 16226, + "loc": { + "start": { + "line": 469, + "column": 31 + }, + "end": { + "line": 469, + "column": 32 + } + } + }, + { + "type": { + "label": "if", + "keyword": "if", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "if", + "start": 16232, + "end": 16234, + "loc": { + "start": { + "line": 470, + "column": 4 + }, + "end": { + "line": 470, + "column": 6 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 16234, + "end": 16235, + "loc": { + "start": { + "line": 470, + "column": 6 + }, + "end": { + "line": 470, + "column": 7 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "Array", + "start": 16235, + "end": 16240, + "loc": { + "start": { + "line": 470, + "column": 7 + }, + "end": { + "line": 470, + "column": 12 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 16240, + "end": 16241, + "loc": { + "start": { + "line": 470, + "column": 12 + }, + "end": { + "line": 470, + "column": 13 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "isArray", + "start": 16241, + "end": 16248, + "loc": { + "start": { + "line": 470, + "column": 13 + }, + "end": { + "line": 470, + "column": 20 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 16248, + "end": 16249, + "loc": { + "start": { + "line": 470, + "column": 20 + }, + "end": { + "line": 470, + "column": 21 + } + } + }, + { + "type": { + "label": "this", + "keyword": "this", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "this", + "start": 16249, + "end": 16253, + "loc": { + "start": { + "line": 470, + "column": 21 + }, + "end": { + "line": 470, + "column": 25 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 16253, + "end": 16254, + "loc": { + "start": { + "line": 470, + "column": 25 + }, + "end": { + "line": 470, + "column": 26 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "options", + "start": 16254, + "end": 16261, + "loc": { + "start": { + "line": 470, + "column": 26 + }, + "end": { + "line": 470, + "column": 33 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 16261, + "end": 16262, + "loc": { + "start": { + "line": 470, + "column": 33 + }, + "end": { + "line": 470, + "column": 34 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "buttonTheme", + "start": 16262, + "end": 16273, + "loc": { + "start": { + "line": 470, + "column": 34 + }, + "end": { + "line": 470, + "column": 45 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 16273, + "end": 16274, + "loc": { + "start": { + "line": 470, + "column": 45 + }, + "end": { + "line": 470, + "column": 46 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 16274, + "end": 16275, + "loc": { + "start": { + "line": 470, + "column": 46 + }, + "end": { + "line": 470, + "column": 47 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 16275, + "end": 16276, + "loc": { + "start": { + "line": 470, + "column": 47 + }, + "end": { + "line": 470, + "column": 48 + } + } + }, + { + "type": { + "label": "this", + "keyword": "this", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "this", + "start": 16284, + "end": 16288, + "loc": { + "start": { + "line": 471, + "column": 6 + }, + "end": { + "line": 471, + "column": 10 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 16288, + "end": 16289, + "loc": { + "start": { + "line": 471, + "column": 10 + }, + "end": { + "line": 471, + "column": 11 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "options", + "start": 16289, + "end": 16296, + "loc": { + "start": { + "line": 471, + "column": 11 + }, + "end": { + "line": 471, + "column": 18 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 16296, + "end": 16297, + "loc": { + "start": { + "line": 471, + "column": 18 + }, + "end": { + "line": 471, + "column": 19 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "buttonTheme", + "start": 16297, + "end": 16308, + "loc": { + "start": { + "line": 471, + "column": 19 + }, + "end": { + "line": 471, + "column": 30 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 16308, + "end": 16309, + "loc": { + "start": { + "line": 471, + "column": 30 + }, + "end": { + "line": 471, + "column": 31 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "forEach", + "start": 16309, + "end": 16316, + "loc": { + "start": { + "line": 471, + "column": 31 + }, + "end": { + "line": 471, + "column": 38 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 16316, + "end": 16317, + "loc": { + "start": { + "line": 471, + "column": 38 + }, + "end": { + "line": 471, + "column": 39 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "themeObj", + "start": 16317, + "end": 16325, + "loc": { + "start": { + "line": 471, + "column": 39 + }, + "end": { + "line": 471, + "column": 47 + } + } + }, + { + "type": { + "label": "=>", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 16326, + "end": 16328, + "loc": { + "start": { + "line": 471, + "column": 48 + }, + "end": { + "line": 471, + "column": 50 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 16329, + "end": 16330, + "loc": { + "start": { + "line": 471, + "column": 51 + }, + "end": { + "line": 471, + "column": 52 + } + } + }, + { + "type": { + "label": "if", + "keyword": "if", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "if", + "start": 16340, + "end": 16342, + "loc": { + "start": { + "line": 472, + "column": 8 + }, + "end": { + "line": 472, + "column": 10 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 16342, + "end": 16343, + "loc": { + "start": { + "line": 472, + "column": 10 + }, + "end": { + "line": 472, + "column": 11 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "themeObj", + "start": 16343, + "end": 16351, + "loc": { + "start": { + "line": 472, + "column": 11 + }, + "end": { + "line": 472, + "column": 19 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 16351, + "end": 16352, + "loc": { + "start": { + "line": 472, + "column": 19 + }, + "end": { + "line": 472, + "column": 20 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "buttons", + "start": 16352, + "end": 16359, + "loc": { + "start": { + "line": 472, + "column": 20 + }, + "end": { + "line": 472, + "column": 27 + } + } + }, + { + "type": { + "label": "&&", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": 2, + "updateContext": null + }, + "value": "&&", + "start": 16360, + "end": 16362, + "loc": { + "start": { + "line": 472, + "column": 28 + }, + "end": { + "line": 472, + "column": 30 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "themeObj", + "start": 16363, + "end": 16371, + "loc": { + "start": { + "line": 472, + "column": 31 + }, + "end": { + "line": 472, + "column": 39 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 16371, + "end": 16372, + "loc": { + "start": { + "line": 472, + "column": 39 + }, + "end": { + "line": 472, + "column": 40 + } + } + }, + { + "type": { + "label": "class", + "keyword": "class", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "class", + "start": 16372, + "end": 16377, + "loc": { + "start": { + "line": 472, + "column": 40 + }, + "end": { + "line": 472, + "column": 45 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 16377, + "end": 16378, + "loc": { + "start": { + "line": 472, + "column": 45 + }, + "end": { + "line": 472, + "column": 46 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 16378, + "end": 16379, + "loc": { + "start": { + "line": 472, + "column": 46 + }, + "end": { + "line": 472, + "column": 47 + } + } + }, + { + "type": { + "label": "let", + "keyword": "let", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "let", + "start": 16391, + "end": 16394, + "loc": { + "start": { + "line": 473, + "column": 10 + }, + "end": { + "line": 473, + "column": 13 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "themeButtons", + "start": 16395, + "end": 16407, + "loc": { + "start": { + "line": 473, + "column": 14 + }, + "end": { + "line": 473, + "column": 26 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 16407, + "end": 16408, + "loc": { + "start": { + "line": 473, + "column": 26 + }, + "end": { + "line": 473, + "column": 27 + } + } + }, + { + "type": { + "label": "if", + "keyword": "if", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "if", + "start": 16422, + "end": 16424, + "loc": { + "start": { + "line": 475, + "column": 10 + }, + "end": { + "line": 475, + "column": 12 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 16424, + "end": 16425, + "loc": { + "start": { + "line": 475, + "column": 12 + }, + "end": { + "line": 475, + "column": 13 + } + } + }, + { + "type": { + "label": "typeof", + "keyword": "typeof", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": true, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "typeof", + "start": 16425, + "end": 16431, + "loc": { + "start": { + "line": 475, + "column": 13 + }, + "end": { + "line": 475, + "column": 19 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "themeObj", + "start": 16432, + "end": 16440, + "loc": { + "start": { + "line": 475, + "column": 20 + }, + "end": { + "line": 475, + "column": 28 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 16440, + "end": 16441, + "loc": { + "start": { + "line": 475, + "column": 28 + }, + "end": { + "line": 475, + "column": 29 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "buttons", + "start": 16441, + "end": 16448, + "loc": { + "start": { + "line": 475, + "column": 29 + }, + "end": { + "line": 475, + "column": 36 + } + } + }, + { + "type": { + "label": "==/!=", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": 6, + "updateContext": null + }, + "value": "===", + "start": 16449, + "end": 16452, + "loc": { + "start": { + "line": 475, + "column": 37 + }, + "end": { + "line": 475, + "column": 40 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "string", + "start": 16453, + "end": 16461, + "loc": { + "start": { + "line": 475, + "column": 41 + }, + "end": { + "line": 475, + "column": 49 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 16461, + "end": 16462, + "loc": { + "start": { + "line": 475, + "column": 49 + }, + "end": { + "line": 475, + "column": 50 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 16462, + "end": 16463, + "loc": { + "start": { + "line": 475, + "column": 50 + }, + "end": { + "line": 475, + "column": 51 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "themeButtons", + "start": 16477, + "end": 16489, + "loc": { + "start": { + "line": 476, + "column": 12 + }, + "end": { + "line": 476, + "column": 24 + } + } + }, + { + "type": { + "label": "=", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": true, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "=", + "start": 16490, + "end": 16491, + "loc": { + "start": { + "line": 476, + "column": 25 + }, + "end": { + "line": 476, + "column": 26 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "themeObj", + "start": 16492, + "end": 16500, + "loc": { + "start": { + "line": 476, + "column": 27 + }, + "end": { + "line": 476, + "column": 35 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 16500, + "end": 16501, + "loc": { + "start": { + "line": 476, + "column": 35 + }, + "end": { + "line": 476, + "column": 36 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "buttons", + "start": 16501, + "end": 16508, + "loc": { + "start": { + "line": 476, + "column": 36 + }, + "end": { + "line": 476, + "column": 43 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 16508, + "end": 16509, + "loc": { + "start": { + "line": 476, + "column": 43 + }, + "end": { + "line": 476, + "column": 44 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "split", + "start": 16509, + "end": 16514, + "loc": { + "start": { + "line": 476, + "column": 44 + }, + "end": { + "line": 476, + "column": 49 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 16514, + "end": 16515, + "loc": { + "start": { + "line": 476, + "column": 49 + }, + "end": { + "line": 476, + "column": 50 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": " ", + "start": 16515, + "end": 16518, + "loc": { + "start": { + "line": 476, + "column": 50 + }, + "end": { + "line": 476, + "column": 53 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 16518, + "end": 16519, + "loc": { + "start": { + "line": 476, + "column": 53 + }, + "end": { + "line": 476, + "column": 54 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 16519, + "end": 16520, + "loc": { + "start": { + "line": 476, + "column": 54 + }, + "end": { + "line": 476, + "column": 55 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 16532, + "end": 16533, + "loc": { + "start": { + "line": 477, + "column": 10 + }, + "end": { + "line": 477, + "column": 11 + } + } + }, + { + "type": { + "label": "if", + "keyword": "if", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "if", + "start": 16547, + "end": 16549, + "loc": { + "start": { + "line": 479, + "column": 10 + }, + "end": { + "line": 479, + "column": 12 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 16549, + "end": 16550, + "loc": { + "start": { + "line": 479, + "column": 12 + }, + "end": { + "line": 479, + "column": 13 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "themeButtons", + "start": 16550, + "end": 16562, + "loc": { + "start": { + "line": 479, + "column": 13 + }, + "end": { + "line": 479, + "column": 25 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 16562, + "end": 16563, + "loc": { + "start": { + "line": 479, + "column": 25 + }, + "end": { + "line": 479, + "column": 26 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 16563, + "end": 16564, + "loc": { + "start": { + "line": 479, + "column": 26 + }, + "end": { + "line": 479, + "column": 27 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "themeButtons", + "start": 16578, + "end": 16590, + "loc": { + "start": { + "line": 480, + "column": 12 + }, + "end": { + "line": 480, + "column": 24 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 16590, + "end": 16591, + "loc": { + "start": { + "line": 480, + "column": 24 + }, + "end": { + "line": 480, + "column": 25 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "forEach", + "start": 16591, + "end": 16598, + "loc": { + "start": { + "line": 480, + "column": 25 + }, + "end": { + "line": 480, + "column": 32 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 16598, + "end": 16599, + "loc": { + "start": { + "line": 480, + "column": 32 + }, + "end": { + "line": 480, + "column": 33 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "themeButton", + "start": 16599, + "end": 16610, + "loc": { + "start": { + "line": 480, + "column": 33 + }, + "end": { + "line": 480, + "column": 44 + } + } + }, + { + "type": { + "label": "=>", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 16611, + "end": 16613, + "loc": { + "start": { + "line": 480, + "column": 45 + }, + "end": { + "line": 480, + "column": 47 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 16614, + "end": 16615, + "loc": { + "start": { + "line": 480, + "column": 48 + }, + "end": { + "line": 480, + "column": 49 + } + } + }, + { + "type": { + "label": "let", + "keyword": "let", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "let", + "start": 16631, + "end": 16634, + "loc": { + "start": { + "line": 481, + "column": 14 + }, + "end": { + "line": 481, + "column": 17 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "themeParsed", + "start": 16635, + "end": 16646, + "loc": { + "start": { + "line": 481, + "column": 18 + }, + "end": { + "line": 481, + "column": 29 + } + } + }, + { + "type": { + "label": "=", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": true, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "=", + "start": 16647, + "end": 16648, + "loc": { + "start": { + "line": 481, + "column": 30 + }, + "end": { + "line": 481, + "column": 31 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "buttonThemesParsed", + "start": 16649, + "end": 16667, + "loc": { + "start": { + "line": 481, + "column": 32 + }, + "end": { + "line": 481, + "column": 50 + } + } + }, + { + "type": { + "label": "[", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 16667, + "end": 16668, + "loc": { + "start": { + "line": 481, + "column": 50 + }, + "end": { + "line": 481, + "column": 51 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "themeButton", + "start": 16668, + "end": 16679, + "loc": { + "start": { + "line": 481, + "column": 51 + }, + "end": { + "line": 481, + "column": 62 + } + } + }, + { + "type": { + "label": "]", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 16679, + "end": 16680, + "loc": { + "start": { + "line": 481, + "column": 62 + }, + "end": { + "line": 481, + "column": 63 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 16680, + "end": 16681, + "loc": { + "start": { + "line": 481, + "column": 63 + }, + "end": { + "line": 481, + "column": 64 + } + } + }, + { + "type": "CommentLine", + "value": " If the button has already been added", + "start": 16699, + "end": 16738, + "loc": { + "start": { + "line": 483, + "column": 14 + }, + "end": { + "line": 483, + "column": 53 + } + } + }, + { + "type": { + "label": "if", + "keyword": "if", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "if", + "start": 16754, + "end": 16756, + "loc": { + "start": { + "line": 484, + "column": 14 + }, + "end": { + "line": 484, + "column": 16 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 16756, + "end": 16757, + "loc": { + "start": { + "line": 484, + "column": 16 + }, + "end": { + "line": 484, + "column": 17 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "themeParsed", + "start": 16757, + "end": 16768, + "loc": { + "start": { + "line": 484, + "column": 17 + }, + "end": { + "line": 484, + "column": 28 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 16768, + "end": 16769, + "loc": { + "start": { + "line": 484, + "column": 28 + }, + "end": { + "line": 484, + "column": 29 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 16769, + "end": 16770, + "loc": { + "start": { + "line": 484, + "column": 29 + }, + "end": { + "line": 484, + "column": 30 + } + } + }, + { + "type": "CommentLine", + "value": " Making sure we don't add duplicate classes, even when buttonTheme has duplicates", + "start": 16788, + "end": 16871, + "loc": { + "start": { + "line": 485, + "column": 16 + }, + "end": { + "line": 485, + "column": 99 + } + } + }, + { + "type": { + "label": "if", + "keyword": "if", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "if", + "start": 16889, + "end": 16891, + "loc": { + "start": { + "line": 486, + "column": 16 + }, + "end": { + "line": 486, + "column": 18 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 16891, + "end": 16892, + "loc": { + "start": { + "line": 486, + "column": 18 + }, + "end": { + "line": 486, + "column": 19 + } + } + }, + { + "type": { + "label": "prefix", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": true, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "!", + "start": 16892, + "end": 16893, + "loc": { + "start": { + "line": 486, + "column": 19 + }, + "end": { + "line": 486, + "column": 20 + } + } + }, + { + "type": { + "label": "this", + "keyword": "this", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "this", + "start": 16893, + "end": 16897, + "loc": { + "start": { + "line": 486, + "column": 20 + }, + "end": { + "line": 486, + "column": 24 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 16897, + "end": 16898, + "loc": { + "start": { + "line": 486, + "column": 24 + }, + "end": { + "line": 486, + "column": 25 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "utilities", + "start": 16898, + "end": 16907, + "loc": { + "start": { + "line": 486, + "column": 25 + }, + "end": { + "line": 486, + "column": 34 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 16907, + "end": 16908, + "loc": { + "start": { + "line": 486, + "column": 34 + }, + "end": { + "line": 486, + "column": 35 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "countInArray", + "start": 16908, + "end": 16920, + "loc": { + "start": { + "line": 486, + "column": 35 + }, + "end": { + "line": 486, + "column": 47 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 16920, + "end": 16921, + "loc": { + "start": { + "line": 486, + "column": 47 + }, + "end": { + "line": 486, + "column": 48 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "themeParsed", + "start": 16921, + "end": 16932, + "loc": { + "start": { + "line": 486, + "column": 48 + }, + "end": { + "line": 486, + "column": 59 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 16932, + "end": 16933, + "loc": { + "start": { + "line": 486, + "column": 59 + }, + "end": { + "line": 486, + "column": 60 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "split", + "start": 16933, + "end": 16938, + "loc": { + "start": { + "line": 486, + "column": 60 + }, + "end": { + "line": 486, + "column": 65 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 16938, + "end": 16939, + "loc": { + "start": { + "line": 486, + "column": 65 + }, + "end": { + "line": 486, + "column": 66 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": " ", + "start": 16939, + "end": 16942, + "loc": { + "start": { + "line": 486, + "column": 66 + }, + "end": { + "line": 486, + "column": 69 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 16942, + "end": 16943, + "loc": { + "start": { + "line": 486, + "column": 69 + }, + "end": { + "line": 486, + "column": 70 + } + } + }, + { + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 16943, + "end": 16944, + "loc": { + "start": { + "line": 486, + "column": 70 + }, + "end": { + "line": 486, + "column": 71 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "themeObj", + "start": 16945, + "end": 16953, + "loc": { + "start": { + "line": 486, + "column": 72 + }, + "end": { + "line": 486, + "column": 80 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 16953, + "end": 16954, + "loc": { + "start": { + "line": 486, + "column": 80 + }, + "end": { + "line": 486, + "column": 81 + } + } + }, + { + "type": { + "label": "class", + "keyword": "class", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "class", + "start": 16954, + "end": 16959, + "loc": { + "start": { + "line": 486, + "column": 81 + }, + "end": { + "line": 486, + "column": 86 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 16959, + "end": 16960, + "loc": { + "start": { + "line": 486, + "column": 86 + }, + "end": { + "line": 486, + "column": 87 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 16960, + "end": 16961, + "loc": { + "start": { + "line": 486, + "column": 87 + }, + "end": { + "line": 486, + "column": 88 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 16961, + "end": 16962, + "loc": { + "start": { + "line": 486, + "column": 88 + }, + "end": { + "line": 486, + "column": 89 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "buttonThemesParsed", + "start": 16982, + "end": 17000, + "loc": { + "start": { + "line": 487, + "column": 18 + }, + "end": { + "line": 487, + "column": 36 + } + } + }, + { + "type": { + "label": "[", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 17000, + "end": 17001, + "loc": { + "start": { + "line": 487, + "column": 36 + }, + "end": { + "line": 487, + "column": 37 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "themeButton", + "start": 17001, + "end": 17012, + "loc": { + "start": { + "line": 487, + "column": 37 + }, + "end": { + "line": 487, + "column": 48 + } + } + }, + { + "type": { + "label": "]", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 17012, + "end": 17013, + "loc": { + "start": { + "line": 487, + "column": 48 + }, + "end": { + "line": 487, + "column": 49 + } + } + }, + { + "type": { + "label": "=", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": true, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "=", + "start": 17014, + "end": 17015, + "loc": { + "start": { + "line": 487, + "column": 50 + }, + "end": { + "line": 487, + "column": 51 + } + } + }, + { + "type": { + "label": "`", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 17016, + "end": 17017, + "loc": { + "start": { + "line": 487, + "column": 52 + }, + "end": { + "line": 487, + "column": 53 + } + } + }, + { + "type": { + "label": "template", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "", + "start": 17017, + "end": 17017, + "loc": { + "start": { + "line": 487, + "column": 53 + }, + "end": { + "line": 487, + "column": 53 + } + } + }, + { + "type": { + "label": "${", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 17017, + "end": 17019, + "loc": { + "start": { + "line": 487, + "column": 53 + }, + "end": { + "line": 487, + "column": 55 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "themeParsed", + "start": 17019, + "end": 17030, + "loc": { + "start": { + "line": 487, + "column": 55 + }, + "end": { + "line": 487, + "column": 66 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 17030, + "end": 17031, + "loc": { + "start": { + "line": 487, + "column": 66 + }, + "end": { + "line": 487, + "column": 67 + } + } + }, + { + "type": { + "label": "template", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": " ", + "start": 17031, + "end": 17032, + "loc": { + "start": { + "line": 487, + "column": 67 + }, + "end": { + "line": 487, + "column": 68 + } + } + }, + { + "type": { + "label": "${", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 17032, + "end": 17034, + "loc": { + "start": { + "line": 487, + "column": 68 + }, + "end": { + "line": 487, + "column": 70 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "themeObj", + "start": 17034, + "end": 17042, + "loc": { + "start": { + "line": 487, + "column": 70 + }, + "end": { + "line": 487, + "column": 78 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 17042, + "end": 17043, + "loc": { + "start": { + "line": 487, + "column": 78 + }, + "end": { + "line": 487, + "column": 79 + } + } + }, + { + "type": { + "label": "class", + "keyword": "class", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "class", + "start": 17043, + "end": 17048, + "loc": { + "start": { + "line": 487, + "column": 79 + }, + "end": { + "line": 487, + "column": 84 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 17048, + "end": 17049, + "loc": { + "start": { + "line": 487, + "column": 84 + }, + "end": { + "line": 487, + "column": 85 + } + } + }, + { + "type": { + "label": "template", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "", + "start": 17049, + "end": 17049, + "loc": { + "start": { + "line": 487, + "column": 85 + }, + "end": { + "line": 487, + "column": 85 + } + } + }, + { + "type": { + "label": "`", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 17049, + "end": 17050, + "loc": { + "start": { + "line": 487, + "column": 85 + }, + "end": { + "line": 487, + "column": 86 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 17050, + "end": 17051, + "loc": { + "start": { + "line": 487, + "column": 86 + }, + "end": { + "line": 487, + "column": 87 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 17069, + "end": 17070, + "loc": { + "start": { + "line": 488, + "column": 16 + }, + "end": { + "line": 488, + "column": 17 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 17086, + "end": 17087, + "loc": { + "start": { + "line": 489, + "column": 14 + }, + "end": { + "line": 489, + "column": 15 + } + } + }, + { + "type": { + "label": "else", + "keyword": "else", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "else", + "start": 17088, + "end": 17092, + "loc": { + "start": { + "line": 489, + "column": 16 + }, + "end": { + "line": 489, + "column": 20 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 17093, + "end": 17094, + "loc": { + "start": { + "line": 489, + "column": 21 + }, + "end": { + "line": 489, + "column": 22 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "buttonThemesParsed", + "start": 17112, + "end": 17130, + "loc": { + "start": { + "line": 490, + "column": 16 + }, + "end": { + "line": 490, + "column": 34 + } + } + }, + { + "type": { + "label": "[", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 17130, + "end": 17131, + "loc": { + "start": { + "line": 490, + "column": 34 + }, + "end": { + "line": 490, + "column": 35 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "themeButton", + "start": 17131, + "end": 17142, + "loc": { + "start": { + "line": 490, + "column": 35 + }, + "end": { + "line": 490, + "column": 46 + } + } + }, + { + "type": { + "label": "]", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 17142, + "end": 17143, + "loc": { + "start": { + "line": 490, + "column": 46 + }, + "end": { + "line": 490, + "column": 47 + } + } + }, + { + "type": { + "label": "=", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": true, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "=", + "start": 17144, + "end": 17145, + "loc": { + "start": { + "line": 490, + "column": 48 + }, + "end": { + "line": 490, + "column": 49 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "themeObj", + "start": 17146, + "end": 17154, + "loc": { + "start": { + "line": 490, + "column": 50 + }, + "end": { + "line": 490, + "column": 58 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 17154, + "end": 17155, + "loc": { + "start": { + "line": 490, + "column": 58 + }, + "end": { + "line": 490, + "column": 59 + } + } + }, + { + "type": { + "label": "class", + "keyword": "class", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "class", + "start": 17155, + "end": 17160, + "loc": { + "start": { + "line": 490, + "column": 59 + }, + "end": { + "line": 490, + "column": 64 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 17160, + "end": 17161, + "loc": { + "start": { + "line": 490, + "column": 64 + }, + "end": { + "line": 490, + "column": 65 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 17177, + "end": 17178, + "loc": { + "start": { + "line": 491, + "column": 14 + }, + "end": { + "line": 491, + "column": 15 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 17192, + "end": 17193, + "loc": { + "start": { + "line": 492, + "column": 12 + }, + "end": { + "line": 492, + "column": 13 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 17193, + "end": 17194, + "loc": { + "start": { + "line": 492, + "column": 13 + }, + "end": { + "line": 492, + "column": 14 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 17194, + "end": 17195, + "loc": { + "start": { + "line": 492, + "column": 14 + }, + "end": { + "line": 492, + "column": 15 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 17207, + "end": 17208, + "loc": { + "start": { + "line": 493, + "column": 10 + }, + "end": { + "line": 493, + "column": 11 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 17218, + "end": 17219, + "loc": { + "start": { + "line": 494, + "column": 8 + }, + "end": { + "line": 494, + "column": 9 + } + } + }, + { + "type": { + "label": "else", + "keyword": "else", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "else", + "start": 17220, + "end": 17224, + "loc": { + "start": { + "line": 494, + "column": 10 + }, + "end": { + "line": 494, + "column": 14 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 17225, + "end": 17226, + "loc": { + "start": { + "line": 494, + "column": 15 + }, + "end": { + "line": 494, + "column": 16 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "console", + "start": 17238, + "end": 17245, + "loc": { + "start": { + "line": 495, + "column": 10 + }, + "end": { + "line": 495, + "column": 17 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 17245, + "end": 17246, + "loc": { + "start": { + "line": 495, + "column": 17 + }, + "end": { + "line": 495, + "column": 18 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "warn", + "start": 17246, + "end": 17250, + "loc": { + "start": { + "line": 495, + "column": 18 + }, + "end": { + "line": 495, + "column": 22 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 17250, + "end": 17251, + "loc": { + "start": { + "line": 495, + "column": 22 + }, + "end": { + "line": 495, + "column": 23 + } + } + }, + { + "type": { + "label": "`", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 17251, + "end": 17252, + "loc": { + "start": { + "line": 495, + "column": 23 + }, + "end": { + "line": 495, + "column": 24 + } + } + }, + { + "type": { + "label": "template", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "buttonTheme row is missing the \"buttons\" or the \"class\". Please check the documentation.", + "start": 17252, + "end": 17340, + "loc": { + "start": { + "line": 495, + "column": 24 + }, + "end": { + "line": 495, + "column": 112 + } + } + }, + { + "type": { + "label": "`", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 17340, + "end": 17341, + "loc": { + "start": { + "line": 495, + "column": 112 + }, + "end": { + "line": 495, + "column": 113 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 17341, + "end": 17342, + "loc": { + "start": { + "line": 495, + "column": 113 + }, + "end": { + "line": 495, + "column": 114 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 17352, + "end": 17353, + "loc": { + "start": { + "line": 496, + "column": 8 + }, + "end": { + "line": 496, + "column": 9 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 17361, + "end": 17362, + "loc": { + "start": { + "line": 497, + "column": 6 + }, + "end": { + "line": 497, + "column": 7 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 17362, + "end": 17363, + "loc": { + "start": { + "line": 497, + "column": 7 + }, + "end": { + "line": 497, + "column": 8 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 17363, + "end": 17364, + "loc": { + "start": { + "line": 497, + "column": 8 + }, + "end": { + "line": 497, + "column": 9 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 17370, + "end": 17371, + "loc": { + "start": { + "line": 498, + "column": 4 + }, + "end": { + "line": 498, + "column": 5 + } + } + }, + { + "type": "CommentBlock", + "value": "*\r\n * Adding themeClass, layoutClass to keyboardDOM\r\n ", + "start": 17379, + "end": 17445, + "loc": { + "start": { + "line": 500, + "column": 4 + }, + "end": { + "line": 502, + "column": 7 + } + } + }, + { + "type": { + "label": "this", + "keyword": "this", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "this", + "start": 17451, + "end": 17455, + "loc": { + "start": { + "line": 503, + "column": 4 + }, + "end": { + "line": 503, + "column": 8 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 17455, + "end": 17456, + "loc": { + "start": { + "line": 503, + "column": 8 + }, + "end": { + "line": 503, + "column": 9 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "keyboardDOM", + "start": 17456, + "end": 17467, + "loc": { + "start": { + "line": 503, + "column": 9 + }, + "end": { + "line": 503, + "column": 20 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 17467, + "end": 17468, + "loc": { + "start": { + "line": 503, + "column": 20 + }, + "end": { + "line": 503, + "column": 21 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "className", + "start": 17468, + "end": 17477, + "loc": { + "start": { + "line": 503, + "column": 21 + }, + "end": { + "line": 503, + "column": 30 + } + } + }, + { + "type": { + "label": "_=", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": true, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "+=", + "start": 17478, + "end": 17480, + "loc": { + "start": { + "line": 503, + "column": 31 + }, + "end": { + "line": 503, + "column": 33 + } + } + }, + { + "type": { + "label": "`", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 17481, + "end": 17482, + "loc": { + "start": { + "line": 503, + "column": 34 + }, + "end": { + "line": 503, + "column": 35 + } + } + }, + { + "type": { + "label": "template", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": " ", + "start": 17482, + "end": 17483, + "loc": { + "start": { + "line": 503, + "column": 35 + }, + "end": { + "line": 503, + "column": 36 + } + } + }, + { + "type": { + "label": "${", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 17483, + "end": 17485, + "loc": { + "start": { + "line": 503, + "column": 36 + }, + "end": { + "line": 503, + "column": 38 + } + } + }, + { + "type": { + "label": "this", + "keyword": "this", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "this", + "start": 17485, + "end": 17489, + "loc": { + "start": { + "line": 503, + "column": 38 + }, + "end": { + "line": 503, + "column": 42 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 17489, + "end": 17490, + "loc": { + "start": { + "line": 503, + "column": 42 + }, + "end": { + "line": 503, + "column": 43 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "options", + "start": 17490, + "end": 17497, + "loc": { + "start": { + "line": 503, + "column": 43 + }, + "end": { + "line": 503, + "column": 50 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 17497, + "end": 17498, + "loc": { + "start": { + "line": 503, + "column": 50 + }, + "end": { + "line": 503, + "column": 51 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "theme", + "start": 17498, + "end": 17503, + "loc": { + "start": { + "line": 503, + "column": 51 + }, + "end": { + "line": 503, + "column": 56 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 17503, + "end": 17504, + "loc": { + "start": { + "line": 503, + "column": 56 + }, + "end": { + "line": 503, + "column": 57 + } + } + }, + { + "type": { + "label": "template", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": " ", + "start": 17504, + "end": 17505, + "loc": { + "start": { + "line": 503, + "column": 57 + }, + "end": { + "line": 503, + "column": 58 + } + } + }, + { + "type": { + "label": "${", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 17505, + "end": 17507, + "loc": { + "start": { + "line": 503, + "column": 58 + }, + "end": { + "line": 503, + "column": 60 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "layoutClass", + "start": 17507, + "end": 17518, + "loc": { + "start": { + "line": 503, + "column": 60 + }, + "end": { + "line": 503, + "column": 71 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 17518, + "end": 17519, + "loc": { + "start": { + "line": 503, + "column": 71 + }, + "end": { + "line": 503, + "column": 72 + } + } + }, + { + "type": { + "label": "template", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "", + "start": 17519, + "end": 17519, + "loc": { + "start": { + "line": 503, + "column": 72 + }, + "end": { + "line": 503, + "column": 72 + } + } + }, + { + "type": { + "label": "`", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 17519, + "end": 17520, + "loc": { + "start": { + "line": 503, + "column": 72 + }, + "end": { + "line": 503, + "column": 73 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 17520, + "end": 17521, + "loc": { + "start": { + "line": 503, + "column": 73 + }, + "end": { + "line": 503, + "column": 74 + } + } + }, + { + "type": "CommentBlock", + "value": "*\r\n * Iterating through each row\r\n ", + "start": 17529, + "end": 17576, + "loc": { + "start": { + "line": 505, + "column": 4 + }, + "end": { + "line": 507, + "column": 7 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "layout", + "start": 17582, + "end": 17588, + "loc": { + "start": { + "line": 508, + "column": 4 + }, + "end": { + "line": 508, + "column": 10 + } + } + }, + { + "type": { + "label": "[", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 17588, + "end": 17589, + "loc": { + "start": { + "line": 508, + "column": 10 + }, + "end": { + "line": 508, + "column": 11 + } + } + }, + { + "type": { + "label": "this", + "keyword": "this", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "this", + "start": 17589, + "end": 17593, + "loc": { + "start": { + "line": 508, + "column": 11 + }, + "end": { + "line": 508, + "column": 15 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 17593, + "end": 17594, + "loc": { + "start": { + "line": 508, + "column": 15 + }, + "end": { + "line": 508, + "column": 16 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "options", + "start": 17594, + "end": 17601, + "loc": { + "start": { + "line": 508, + "column": 16 + }, + "end": { + "line": 508, + "column": 23 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 17601, + "end": 17602, + "loc": { + "start": { + "line": 508, + "column": 23 + }, + "end": { + "line": 508, + "column": 24 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "layoutName", + "start": 17602, + "end": 17612, + "loc": { + "start": { + "line": 508, + "column": 24 + }, + "end": { + "line": 508, + "column": 34 + } + } + }, + { + "type": { + "label": "]", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 17612, + "end": 17613, + "loc": { + "start": { + "line": 508, + "column": 34 + }, + "end": { + "line": 508, + "column": 35 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 17613, + "end": 17614, + "loc": { + "start": { + "line": 508, + "column": 35 + }, + "end": { + "line": 508, + "column": 36 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "forEach", + "start": 17614, + "end": 17621, + "loc": { + "start": { + "line": 508, + "column": 36 + }, + "end": { + "line": 508, + "column": 43 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 17621, + "end": 17622, + "loc": { + "start": { + "line": 508, + "column": 43 + }, + "end": { + "line": 508, + "column": 44 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 17622, + "end": 17623, + "loc": { + "start": { + "line": 508, + "column": 44 + }, + "end": { + "line": 508, + "column": 45 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "row", + "start": 17623, + "end": 17626, + "loc": { + "start": { + "line": 508, + "column": 45 + }, + "end": { + "line": 508, + "column": 48 + } + } + }, + { + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 17626, + "end": 17627, + "loc": { + "start": { + "line": 508, + "column": 48 + }, + "end": { + "line": 508, + "column": 49 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "rIndex", + "start": 17628, + "end": 17634, + "loc": { + "start": { + "line": 508, + "column": 50 + }, + "end": { + "line": 508, + "column": 56 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 17634, + "end": 17635, + "loc": { + "start": { + "line": 508, + "column": 56 + }, + "end": { + "line": 508, + "column": 57 + } + } + }, + { + "type": { + "label": "=>", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 17636, + "end": 17638, + "loc": { + "start": { + "line": 508, + "column": 58 + }, + "end": { + "line": 508, + "column": 60 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 17639, + "end": 17640, + "loc": { + "start": { + "line": 508, + "column": 61 + }, + "end": { + "line": 508, + "column": 62 + } + } + }, + { + "type": { + "label": "let", + "keyword": "let", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "let", + "start": 17648, + "end": 17651, + "loc": { + "start": { + "line": 509, + "column": 6 + }, + "end": { + "line": 509, + "column": 9 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "rowArray", + "start": 17652, + "end": 17660, + "loc": { + "start": { + "line": 509, + "column": 10 + }, + "end": { + "line": 509, + "column": 18 + } + } + }, + { + "type": { + "label": "=", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": true, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "=", + "start": 17661, + "end": 17662, + "loc": { + "start": { + "line": 509, + "column": 19 + }, + "end": { + "line": 509, + "column": 20 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "row", + "start": 17663, + "end": 17666, + "loc": { + "start": { + "line": 509, + "column": 21 + }, + "end": { + "line": 509, + "column": 24 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 17666, + "end": 17667, + "loc": { + "start": { + "line": 509, + "column": 24 + }, + "end": { + "line": 509, + "column": 25 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "split", + "start": 17667, + "end": 17672, + "loc": { + "start": { + "line": 509, + "column": 25 + }, + "end": { + "line": 509, + "column": 30 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 17672, + "end": 17673, + "loc": { + "start": { + "line": 509, + "column": 30 + }, + "end": { + "line": 509, + "column": 31 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": " ", + "start": 17673, + "end": 17676, + "loc": { + "start": { + "line": 509, + "column": 31 + }, + "end": { + "line": 509, + "column": 34 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 17676, + "end": 17677, + "loc": { + "start": { + "line": 509, + "column": 34 + }, + "end": { + "line": 509, + "column": 35 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 17677, + "end": 17678, + "loc": { + "start": { + "line": 509, + "column": 35 + }, + "end": { + "line": 509, + "column": 36 + } + } + }, + { + "type": "CommentBlock", + "value": "*\r\n * Creating empty row\r\n ", + "start": 17688, + "end": 17731, + "loc": { + "start": { + "line": 511, + "column": 6 + }, + "end": { + "line": 513, + "column": 9 + } + } + }, + { + "type": { + "label": "var", + "keyword": "var", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "var", + "start": 17739, + "end": 17742, + "loc": { + "start": { + "line": 514, + "column": 6 + }, + "end": { + "line": 514, + "column": 9 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "rowDOM", + "start": 17743, + "end": 17749, + "loc": { + "start": { + "line": 514, + "column": 10 + }, + "end": { + "line": 514, + "column": 16 + } + } + }, + { + "type": { + "label": "=", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": true, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "=", + "start": 17750, + "end": 17751, + "loc": { + "start": { + "line": 514, + "column": 17 + }, + "end": { + "line": 514, + "column": 18 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "document", + "start": 17752, + "end": 17760, + "loc": { + "start": { + "line": 514, + "column": 19 + }, + "end": { + "line": 514, + "column": 27 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 17760, + "end": 17761, + "loc": { + "start": { + "line": 514, + "column": 27 + }, + "end": { + "line": 514, + "column": 28 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "createElement", + "start": 17761, + "end": 17774, + "loc": { + "start": { + "line": 514, + "column": 28 + }, + "end": { + "line": 514, + "column": 41 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 17774, + "end": 17775, + "loc": { + "start": { + "line": 514, + "column": 41 + }, + "end": { + "line": 514, + "column": 42 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "div", + "start": 17775, + "end": 17780, + "loc": { + "start": { + "line": 514, + "column": 42 + }, + "end": { + "line": 514, + "column": 47 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 17780, + "end": 17781, + "loc": { + "start": { + "line": 514, + "column": 47 + }, + "end": { + "line": 514, + "column": 48 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 17781, + "end": 17782, + "loc": { + "start": { + "line": 514, + "column": 48 + }, + "end": { + "line": 514, + "column": 49 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "rowDOM", + "start": 17790, + "end": 17796, + "loc": { + "start": { + "line": 515, + "column": 6 + }, + "end": { + "line": 515, + "column": 12 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 17796, + "end": 17797, + "loc": { + "start": { + "line": 515, + "column": 12 + }, + "end": { + "line": 515, + "column": 13 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "className", + "start": 17797, + "end": 17806, + "loc": { + "start": { + "line": 515, + "column": 13 + }, + "end": { + "line": 515, + "column": 22 + } + } + }, + { + "type": { + "label": "_=", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": true, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "+=", + "start": 17807, + "end": 17809, + "loc": { + "start": { + "line": 515, + "column": 23 + }, + "end": { + "line": 515, + "column": 25 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "hg-row", + "start": 17810, + "end": 17818, + "loc": { + "start": { + "line": 515, + "column": 26 + }, + "end": { + "line": 515, + "column": 34 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 17818, + "end": 17819, + "loc": { + "start": { + "line": 515, + "column": 34 + }, + "end": { + "line": 515, + "column": 35 + } + } + }, + { + "type": "CommentBlock", + "value": "*\r\n * Iterating through each button in row\r\n ", + "start": 17829, + "end": 17890, + "loc": { + "start": { + "line": 517, + "column": 6 + }, + "end": { + "line": 519, + "column": 9 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "rowArray", + "start": 17898, + "end": 17906, + "loc": { + "start": { + "line": 520, + "column": 6 + }, + "end": { + "line": 520, + "column": 14 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 17906, + "end": 17907, + "loc": { + "start": { + "line": 520, + "column": 14 + }, + "end": { + "line": 520, + "column": 15 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "forEach", + "start": 17907, + "end": 17914, + "loc": { + "start": { + "line": 520, + "column": 15 + }, + "end": { + "line": 520, + "column": 22 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 17914, + "end": 17915, + "loc": { + "start": { + "line": 520, + "column": 22 + }, + "end": { + "line": 520, + "column": 23 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 17915, + "end": 17916, + "loc": { + "start": { + "line": 520, + "column": 23 + }, + "end": { + "line": 520, + "column": 24 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "button", + "start": 17916, + "end": 17922, + "loc": { + "start": { + "line": 520, + "column": 24 + }, + "end": { + "line": 520, + "column": 30 + } + } + }, + { + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 17922, + "end": 17923, + "loc": { + "start": { + "line": 520, + "column": 30 + }, + "end": { + "line": 520, + "column": 31 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "bIndex", + "start": 17924, + "end": 17930, + "loc": { + "start": { + "line": 520, + "column": 32 + }, + "end": { + "line": 520, + "column": 38 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 17930, + "end": 17931, + "loc": { + "start": { + "line": 520, + "column": 38 + }, + "end": { + "line": 520, + "column": 39 + } + } + }, + { + "type": { + "label": "=>", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 17932, + "end": 17934, + "loc": { + "start": { + "line": 520, + "column": 40 + }, + "end": { + "line": 520, + "column": 42 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 17935, + "end": 17936, + "loc": { + "start": { + "line": 520, + "column": 43 + }, + "end": { + "line": 520, + "column": 44 + } + } + }, + { + "type": { + "label": "let", + "keyword": "let", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "let", + "start": 17946, + "end": 17949, + "loc": { + "start": { + "line": 521, + "column": 8 + }, + "end": { + "line": 521, + "column": 11 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "fctBtnClass", + "start": 17950, + "end": 17961, + "loc": { + "start": { + "line": 521, + "column": 12 + }, + "end": { + "line": 521, + "column": 23 + } + } + }, + { + "type": { + "label": "=", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": true, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "=", + "start": 17962, + "end": 17963, + "loc": { + "start": { + "line": 521, + "column": 24 + }, + "end": { + "line": 521, + "column": 25 + } + } + }, + { + "type": { + "label": "this", + "keyword": "this", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "this", + "start": 17964, + "end": 17968, + "loc": { + "start": { + "line": 521, + "column": 26 + }, + "end": { + "line": 521, + "column": 30 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 17968, + "end": 17969, + "loc": { + "start": { + "line": 521, + "column": 30 + }, + "end": { + "line": 521, + "column": 31 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "utilities", + "start": 17969, + "end": 17978, + "loc": { + "start": { + "line": 521, + "column": 31 + }, + "end": { + "line": 521, + "column": 40 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 17978, + "end": 17979, + "loc": { + "start": { + "line": 521, + "column": 40 + }, + "end": { + "line": 521, + "column": 41 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "getButtonClass", + "start": 17979, + "end": 17993, + "loc": { + "start": { + "line": 521, + "column": 41 + }, + "end": { + "line": 521, + "column": 55 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 17993, + "end": 17994, + "loc": { + "start": { + "line": 521, + "column": 55 + }, + "end": { + "line": 521, + "column": 56 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "button", + "start": 17994, + "end": 18000, + "loc": { + "start": { + "line": 521, + "column": 56 + }, + "end": { + "line": 521, + "column": 62 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 18000, + "end": 18001, + "loc": { + "start": { + "line": 521, + "column": 62 + }, + "end": { + "line": 521, + "column": 63 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 18001, + "end": 18002, + "loc": { + "start": { + "line": 521, + "column": 63 + }, + "end": { + "line": 521, + "column": 64 + } + } + }, + { + "type": { + "label": "let", + "keyword": "let", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "let", + "start": 18012, + "end": 18015, + "loc": { + "start": { + "line": 522, + "column": 8 + }, + "end": { + "line": 522, + "column": 11 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "buttonThemeClass", + "start": 18016, + "end": 18032, + "loc": { + "start": { + "line": 522, + "column": 12 + }, + "end": { + "line": 522, + "column": 28 + } + } + }, + { + "type": { + "label": "=", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": true, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "=", + "start": 18033, + "end": 18034, + "loc": { + "start": { + "line": 522, + "column": 29 + }, + "end": { + "line": 522, + "column": 30 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "buttonThemesParsed", + "start": 18035, + "end": 18053, + "loc": { + "start": { + "line": 522, + "column": 31 + }, + "end": { + "line": 522, + "column": 49 + } + } + }, + { + "type": { + "label": "[", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 18053, + "end": 18054, + "loc": { + "start": { + "line": 522, + "column": 49 + }, + "end": { + "line": 522, + "column": 50 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "button", + "start": 18054, + "end": 18060, + "loc": { + "start": { + "line": 522, + "column": 50 + }, + "end": { + "line": 522, + "column": 56 + } + } + }, + { + "type": { + "label": "]", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 18060, + "end": 18061, + "loc": { + "start": { + "line": 522, + "column": 56 + }, + "end": { + "line": 522, + "column": 57 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 18061, + "end": 18062, + "loc": { + "start": { + "line": 522, + "column": 57 + }, + "end": { + "line": 522, + "column": 58 + } + } + }, + { + "type": { + "label": "let", + "keyword": "let", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "let", + "start": 18072, + "end": 18075, + "loc": { + "start": { + "line": 523, + "column": 8 + }, + "end": { + "line": 523, + "column": 11 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "buttonDisplayName", + "start": 18076, + "end": 18093, + "loc": { + "start": { + "line": 523, + "column": 12 + }, + "end": { + "line": 523, + "column": 29 + } + } + }, + { + "type": { + "label": "=", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": true, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "=", + "start": 18094, + "end": 18095, + "loc": { + "start": { + "line": 523, + "column": 30 + }, + "end": { + "line": 523, + "column": 31 + } + } + }, + { + "type": { + "label": "this", + "keyword": "this", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "this", + "start": 18096, + "end": 18100, + "loc": { + "start": { + "line": 523, + "column": 32 + }, + "end": { + "line": 523, + "column": 36 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 18100, + "end": 18101, + "loc": { + "start": { + "line": 523, + "column": 36 + }, + "end": { + "line": 523, + "column": 37 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "utilities", + "start": 18101, + "end": 18110, + "loc": { + "start": { + "line": 523, + "column": 37 + }, + "end": { + "line": 523, + "column": 46 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 18110, + "end": 18111, + "loc": { + "start": { + "line": 523, + "column": 46 + }, + "end": { + "line": 523, + "column": 47 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "getButtonDisplayName", + "start": 18111, + "end": 18131, + "loc": { + "start": { + "line": 523, + "column": 47 + }, + "end": { + "line": 523, + "column": 67 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 18131, + "end": 18132, + "loc": { + "start": { + "line": 523, + "column": 67 + }, + "end": { + "line": 523, + "column": 68 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "button", + "start": 18132, + "end": 18138, + "loc": { + "start": { + "line": 523, + "column": 68 + }, + "end": { + "line": 523, + "column": 74 + } + } + }, + { + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 18138, + "end": 18139, + "loc": { + "start": { + "line": 523, + "column": 74 + }, + "end": { + "line": 523, + "column": 75 + } + } + }, + { + "type": { + "label": "this", + "keyword": "this", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "this", + "start": 18140, + "end": 18144, + "loc": { + "start": { + "line": 523, + "column": 76 + }, + "end": { + "line": 523, + "column": 80 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 18144, + "end": 18145, + "loc": { + "start": { + "line": 523, + "column": 80 + }, + "end": { + "line": 523, + "column": 81 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "options", + "start": 18145, + "end": 18152, + "loc": { + "start": { + "line": 523, + "column": 81 + }, + "end": { + "line": 523, + "column": 88 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 18152, + "end": 18153, + "loc": { + "start": { + "line": 523, + "column": 88 + }, + "end": { + "line": 523, + "column": 89 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "display", + "start": 18153, + "end": 18160, + "loc": { + "start": { + "line": 523, + "column": 89 + }, + "end": { + "line": 523, + "column": 96 + } + } + }, + { + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 18160, + "end": 18161, + "loc": { + "start": { + "line": 523, + "column": 96 + }, + "end": { + "line": 523, + "column": 97 + } + } + }, + { + "type": { + "label": "this", + "keyword": "this", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "this", + "start": 18162, + "end": 18166, + "loc": { + "start": { + "line": 523, + "column": 98 + }, + "end": { + "line": 523, + "column": 102 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 18166, + "end": 18167, + "loc": { + "start": { + "line": 523, + "column": 102 + }, + "end": { + "line": 523, + "column": 103 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "options", + "start": 18167, + "end": 18174, + "loc": { + "start": { + "line": 523, + "column": 103 + }, + "end": { + "line": 523, + "column": 110 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 18174, + "end": 18175, + "loc": { + "start": { + "line": 523, + "column": 110 + }, + "end": { + "line": 523, + "column": 111 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "mergeDisplay", + "start": 18175, + "end": 18187, + "loc": { + "start": { + "line": 523, + "column": 111 + }, + "end": { + "line": 523, + "column": 123 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 18187, + "end": 18188, + "loc": { + "start": { + "line": 523, + "column": 123 + }, + "end": { + "line": 523, + "column": 124 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 18188, + "end": 18189, + "loc": { + "start": { + "line": 523, + "column": 124 + }, + "end": { + "line": 523, + "column": 125 + } + } + }, + { + "type": "CommentBlock", + "value": "*\r\n * Creating button\r\n ", + "start": 18201, + "end": 18245, + "loc": { + "start": { + "line": 525, + "column": 8 + }, + "end": { + "line": 527, + "column": 11 + } + } + }, + { + "type": { + "label": "var", + "keyword": "var", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "var", + "start": 18255, + "end": 18258, + "loc": { + "start": { + "line": 528, + "column": 8 + }, + "end": { + "line": 528, + "column": 11 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "buttonDOM", + "start": 18259, + "end": 18268, + "loc": { + "start": { + "line": 528, + "column": 12 + }, + "end": { + "line": 528, + "column": 21 + } + } + }, + { + "type": { + "label": "=", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": true, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "=", + "start": 18269, + "end": 18270, + "loc": { + "start": { + "line": 528, + "column": 22 + }, + "end": { + "line": 528, + "column": 23 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "document", + "start": 18271, + "end": 18279, + "loc": { + "start": { + "line": 528, + "column": 24 + }, + "end": { + "line": 528, + "column": 32 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 18279, + "end": 18280, + "loc": { + "start": { + "line": 528, + "column": 32 + }, + "end": { + "line": 528, + "column": 33 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "createElement", + "start": 18280, + "end": 18293, + "loc": { + "start": { + "line": 528, + "column": 33 + }, + "end": { + "line": 528, + "column": 46 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 18293, + "end": 18294, + "loc": { + "start": { + "line": 528, + "column": 46 + }, + "end": { + "line": 528, + "column": 47 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "div", + "start": 18294, + "end": 18299, + "loc": { + "start": { + "line": 528, + "column": 47 + }, + "end": { + "line": 528, + "column": 52 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 18299, + "end": 18300, + "loc": { + "start": { + "line": 528, + "column": 52 + }, + "end": { + "line": 528, + "column": 53 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 18300, + "end": 18301, + "loc": { + "start": { + "line": 528, + "column": 53 + }, + "end": { + "line": 528, + "column": 54 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "buttonDOM", + "start": 18311, + "end": 18320, + "loc": { + "start": { + "line": 529, + "column": 8 + }, + "end": { + "line": 529, + "column": 17 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 18320, + "end": 18321, + "loc": { + "start": { + "line": 529, + "column": 17 + }, + "end": { + "line": 529, + "column": 18 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "className", + "start": 18321, + "end": 18330, + "loc": { + "start": { + "line": 529, + "column": 18 + }, + "end": { + "line": 529, + "column": 27 + } + } + }, + { + "type": { + "label": "_=", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": true, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "+=", + "start": 18331, + "end": 18333, + "loc": { + "start": { + "line": 529, + "column": 28 + }, + "end": { + "line": 529, + "column": 30 + } + } + }, + { + "type": { + "label": "`", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 18334, + "end": 18335, + "loc": { + "start": { + "line": 529, + "column": 31 + }, + "end": { + "line": 529, + "column": 32 + } + } + }, + { + "type": { + "label": "template", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "hg-button ", + "start": 18335, + "end": 18345, + "loc": { + "start": { + "line": 529, + "column": 32 + }, + "end": { + "line": 529, + "column": 42 + } + } + }, + { + "type": { + "label": "${", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 18345, + "end": 18347, + "loc": { + "start": { + "line": 529, + "column": 42 + }, + "end": { + "line": 529, + "column": 44 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "fctBtnClass", + "start": 18347, + "end": 18358, + "loc": { + "start": { + "line": 529, + "column": 44 + }, + "end": { + "line": 529, + "column": 55 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 18358, + "end": 18359, + "loc": { + "start": { + "line": 529, + "column": 55 + }, + "end": { + "line": 529, + "column": 56 + } + } + }, + { + "type": { + "label": "template", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "", + "start": 18359, + "end": 18359, + "loc": { + "start": { + "line": 529, + "column": 56 + }, + "end": { + "line": 529, + "column": 56 + } + } + }, + { + "type": { + "label": "${", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 18359, + "end": 18361, + "loc": { + "start": { + "line": 529, + "column": 56 + }, + "end": { + "line": 529, + "column": 58 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "buttonThemeClass", + "start": 18361, + "end": 18377, + "loc": { + "start": { + "line": 529, + "column": 58 + }, + "end": { + "line": 529, + "column": 74 + } + } + }, + { + "type": { + "label": "?", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 18378, + "end": 18379, + "loc": { + "start": { + "line": 529, + "column": 75 + }, + "end": { + "line": 529, + "column": 76 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": " ", + "start": 18380, + "end": 18383, + "loc": { + "start": { + "line": 529, + "column": 77 + }, + "end": { + "line": 529, + "column": 80 + } + } + }, + { + "type": { + "label": "+/-", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": true, + "postfix": false, + "binop": 9, + "updateContext": null + }, + "value": "+", + "start": 18383, + "end": 18384, + "loc": { + "start": { + "line": 529, + "column": 80 + }, + "end": { + "line": 529, + "column": 81 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "buttonThemeClass", + "start": 18384, + "end": 18400, + "loc": { + "start": { + "line": 529, + "column": 81 + }, + "end": { + "line": 529, + "column": 97 + } + } + }, + { + "type": { + "label": ":", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 18401, + "end": 18402, + "loc": { + "start": { + "line": 529, + "column": 98 + }, + "end": { + "line": 529, + "column": 99 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "", + "start": 18403, + "end": 18405, + "loc": { + "start": { + "line": 529, + "column": 100 + }, + "end": { + "line": 529, + "column": 102 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 18405, + "end": 18406, + "loc": { + "start": { + "line": 529, + "column": 102 + }, + "end": { + "line": 529, + "column": 103 + } + } + }, + { + "type": { + "label": "template", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "", + "start": 18406, + "end": 18406, + "loc": { + "start": { + "line": 529, + "column": 103 + }, + "end": { + "line": 529, + "column": 103 + } + } + }, + { + "type": { + "label": "`", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 18406, + "end": 18407, + "loc": { + "start": { + "line": 529, + "column": 103 + }, + "end": { + "line": 529, + "column": 104 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 18407, + "end": 18408, + "loc": { + "start": { + "line": 529, + "column": 104 + }, + "end": { + "line": 529, + "column": 105 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "buttonDOM", + "start": 18418, + "end": 18427, + "loc": { + "start": { + "line": 530, + "column": 8 + }, + "end": { + "line": 530, + "column": 17 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 18427, + "end": 18428, + "loc": { + "start": { + "line": 530, + "column": 17 + }, + "end": { + "line": 530, + "column": 18 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "onclick", + "start": 18428, + "end": 18435, + "loc": { + "start": { + "line": 530, + "column": 18 + }, + "end": { + "line": 530, + "column": 25 + } + } + }, + { + "type": { + "label": "=", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": true, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "=", + "start": 18436, + "end": 18437, + "loc": { + "start": { + "line": 530, + "column": 26 + }, + "end": { + "line": 530, + "column": 27 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 18438, + "end": 18439, + "loc": { + "start": { + "line": 530, + "column": 28 + }, + "end": { + "line": 530, + "column": 29 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 18439, + "end": 18440, + "loc": { + "start": { + "line": 530, + "column": 29 + }, + "end": { + "line": 530, + "column": 30 + } + } + }, + { + "type": { + "label": "=>", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 18441, + "end": 18443, + "loc": { + "start": { + "line": 530, + "column": 31 + }, + "end": { + "line": 530, + "column": 33 + } + } + }, + { + "type": { + "label": "this", + "keyword": "this", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "this", + "start": 18444, + "end": 18448, + "loc": { + "start": { + "line": 530, + "column": 34 + }, + "end": { + "line": 530, + "column": 38 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 18448, + "end": 18449, + "loc": { + "start": { + "line": 530, + "column": 38 + }, + "end": { + "line": 530, + "column": 39 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "handleButtonClicked", + "start": 18449, + "end": 18468, + "loc": { + "start": { + "line": 530, + "column": 39 + }, + "end": { + "line": 530, + "column": 58 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 18468, + "end": 18469, + "loc": { + "start": { + "line": 530, + "column": 58 + }, + "end": { + "line": 530, + "column": 59 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "button", + "start": 18469, + "end": 18475, + "loc": { + "start": { + "line": 530, + "column": 59 + }, + "end": { + "line": 530, + "column": 65 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 18475, + "end": 18476, + "loc": { + "start": { + "line": 530, + "column": 65 + }, + "end": { + "line": 530, + "column": 66 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 18476, + "end": 18477, + "loc": { + "start": { + "line": 530, + "column": 66 + }, + "end": { + "line": 530, + "column": 67 + } + } + }, + { + "type": "CommentBlock", + "value": "*\r\n * Adding identifier\r\n ", + "start": 18489, + "end": 18535, + "loc": { + "start": { + "line": 532, + "column": 8 + }, + "end": { + "line": 534, + "column": 11 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "buttonDOM", + "start": 18545, + "end": 18554, + "loc": { + "start": { + "line": 535, + "column": 8 + }, + "end": { + "line": 535, + "column": 17 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 18554, + "end": 18555, + "loc": { + "start": { + "line": 535, + "column": 17 + }, + "end": { + "line": 535, + "column": 18 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "setAttribute", + "start": 18555, + "end": 18567, + "loc": { + "start": { + "line": 535, + "column": 18 + }, + "end": { + "line": 535, + "column": 30 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 18567, + "end": 18568, + "loc": { + "start": { + "line": 535, + "column": 30 + }, + "end": { + "line": 535, + "column": 31 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "data-skBtn", + "start": 18568, + "end": 18580, + "loc": { + "start": { + "line": 535, + "column": 31 + }, + "end": { + "line": 535, + "column": 43 + } + } + }, + { + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 18580, + "end": 18581, + "loc": { + "start": { + "line": 535, + "column": 43 + }, + "end": { + "line": 535, + "column": 44 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "button", + "start": 18582, + "end": 18588, + "loc": { + "start": { + "line": 535, + "column": 45 + }, + "end": { + "line": 535, + "column": 51 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 18588, + "end": 18589, + "loc": { + "start": { + "line": 535, + "column": 51 + }, + "end": { + "line": 535, + "column": 52 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 18589, + "end": 18590, + "loc": { + "start": { + "line": 535, + "column": 52 + }, + "end": { + "line": 535, + "column": 53 + } + } + }, + { + "type": "CommentBlock", + "value": "*\r\n * Adding unique id\r\n * Since there's no limit on spawning same buttons, the unique id ensures you can style every button\r\n ", + "start": 18602, + "end": 18757, + "loc": { + "start": { + "line": 537, + "column": 8 + }, + "end": { + "line": 540, + "column": 11 + } + } + }, + { + "type": { + "label": "let", + "keyword": "let", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "let", + "start": 18767, + "end": 18770, + "loc": { + "start": { + "line": 541, + "column": 8 + }, + "end": { + "line": 541, + "column": 11 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "buttonUID", + "start": 18771, + "end": 18780, + "loc": { + "start": { + "line": 541, + "column": 12 + }, + "end": { + "line": 541, + "column": 21 + } + } + }, + { + "type": { + "label": "=", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": true, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "=", + "start": 18781, + "end": 18782, + "loc": { + "start": { + "line": 541, + "column": 22 + }, + "end": { + "line": 541, + "column": 23 + } + } + }, + { + "type": { + "label": "`", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 18783, + "end": 18784, + "loc": { + "start": { + "line": 541, + "column": 24 + }, + "end": { + "line": 541, + "column": 25 + } + } + }, + { + "type": { + "label": "template", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "", + "start": 18784, + "end": 18784, + "loc": { + "start": { + "line": 541, + "column": 25 + }, + "end": { + "line": 541, + "column": 25 + } + } + }, + { + "type": { + "label": "${", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 18784, + "end": 18786, + "loc": { + "start": { + "line": 541, + "column": 25 + }, + "end": { + "line": 541, + "column": 27 + } + } + }, + { + "type": { + "label": "this", + "keyword": "this", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "this", + "start": 18786, + "end": 18790, + "loc": { + "start": { + "line": 541, + "column": 27 + }, + "end": { + "line": 541, + "column": 31 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 18790, + "end": 18791, + "loc": { + "start": { + "line": 541, + "column": 31 + }, + "end": { + "line": 541, + "column": 32 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "options", + "start": 18791, + "end": 18798, + "loc": { + "start": { + "line": 541, + "column": 32 + }, + "end": { + "line": 541, + "column": 39 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 18798, + "end": 18799, + "loc": { + "start": { + "line": 541, + "column": 39 + }, + "end": { + "line": 541, + "column": 40 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "layoutName", + "start": 18799, + "end": 18809, + "loc": { + "start": { + "line": 541, + "column": 40 + }, + "end": { + "line": 541, + "column": 50 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 18809, + "end": 18810, + "loc": { + "start": { + "line": 541, + "column": 50 + }, + "end": { + "line": 541, + "column": 51 + } + } + }, + { + "type": { + "label": "template", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "-r", + "start": 18810, + "end": 18812, + "loc": { + "start": { + "line": 541, + "column": 51 + }, + "end": { + "line": 541, + "column": 53 + } + } + }, + { + "type": { + "label": "${", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 18812, + "end": 18814, + "loc": { + "start": { + "line": 541, + "column": 53 + }, + "end": { + "line": 541, + "column": 55 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "rIndex", + "start": 18814, + "end": 18820, + "loc": { + "start": { + "line": 541, + "column": 55 + }, + "end": { + "line": 541, + "column": 61 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 18820, + "end": 18821, + "loc": { + "start": { + "line": 541, + "column": 61 + }, + "end": { + "line": 541, + "column": 62 + } + } + }, + { + "type": { + "label": "template", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "b", + "start": 18821, + "end": 18822, + "loc": { + "start": { + "line": 541, + "column": 62 + }, + "end": { + "line": 541, + "column": 63 + } + } + }, + { + "type": { + "label": "${", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 18822, + "end": 18824, + "loc": { + "start": { + "line": 541, + "column": 63 + }, + "end": { + "line": 541, + "column": 65 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "bIndex", + "start": 18824, + "end": 18830, + "loc": { + "start": { + "line": 541, + "column": 65 + }, + "end": { + "line": 541, + "column": 71 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 18830, + "end": 18831, + "loc": { + "start": { + "line": 541, + "column": 71 + }, + "end": { + "line": 541, + "column": 72 + } + } + }, + { + "type": { + "label": "template", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "", + "start": 18831, + "end": 18831, + "loc": { + "start": { + "line": 541, + "column": 72 + }, + "end": { + "line": 541, + "column": 72 + } + } + }, + { + "type": { + "label": "`", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 18831, + "end": 18832, + "loc": { + "start": { + "line": 541, + "column": 72 + }, + "end": { + "line": 541, + "column": 73 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 18832, + "end": 18833, + "loc": { + "start": { + "line": 541, + "column": 73 + }, + "end": { + "line": 541, + "column": 74 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "buttonDOM", + "start": 18843, + "end": 18852, + "loc": { + "start": { + "line": 542, + "column": 8 + }, + "end": { + "line": 542, + "column": 17 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 18852, + "end": 18853, + "loc": { + "start": { + "line": 542, + "column": 17 + }, + "end": { + "line": 542, + "column": 18 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "setAttribute", + "start": 18853, + "end": 18865, + "loc": { + "start": { + "line": 542, + "column": 18 + }, + "end": { + "line": 542, + "column": 30 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 18865, + "end": 18866, + "loc": { + "start": { + "line": 542, + "column": 30 + }, + "end": { + "line": 542, + "column": 31 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "data-skBtnUID", + "start": 18866, + "end": 18881, + "loc": { + "start": { + "line": 542, + "column": 31 + }, + "end": { + "line": 542, + "column": 46 + } + } + }, + { + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 18881, + "end": 18882, + "loc": { + "start": { + "line": 542, + "column": 46 + }, + "end": { + "line": 542, + "column": 47 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "buttonUID", + "start": 18883, + "end": 18892, + "loc": { + "start": { + "line": 542, + "column": 48 + }, + "end": { + "line": 542, + "column": 57 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 18892, + "end": 18893, + "loc": { + "start": { + "line": 542, + "column": 57 + }, + "end": { + "line": 542, + "column": 58 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 18893, + "end": 18894, + "loc": { + "start": { + "line": 542, + "column": 58 + }, + "end": { + "line": 542, + "column": 59 + } + } + }, + { + "type": "CommentBlock", + "value": "*\r\n * Adding display label\r\n ", + "start": 18906, + "end": 18955, + "loc": { + "start": { + "line": 544, + "column": 8 + }, + "end": { + "line": 546, + "column": 11 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "buttonDOM", + "start": 18965, + "end": 18974, + "loc": { + "start": { + "line": 547, + "column": 8 + }, + "end": { + "line": 547, + "column": 17 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 18974, + "end": 18975, + "loc": { + "start": { + "line": 547, + "column": 17 + }, + "end": { + "line": 547, + "column": 18 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "setAttribute", + "start": 18975, + "end": 18987, + "loc": { + "start": { + "line": 547, + "column": 18 + }, + "end": { + "line": 547, + "column": 30 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 18987, + "end": 18988, + "loc": { + "start": { + "line": 547, + "column": 30 + }, + "end": { + "line": 547, + "column": 31 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "data-displayLabel", + "start": 18988, + "end": 19007, + "loc": { + "start": { + "line": 547, + "column": 31 + }, + "end": { + "line": 547, + "column": 50 + } + } + }, + { + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 19007, + "end": 19008, + "loc": { + "start": { + "line": 547, + "column": 50 + }, + "end": { + "line": 547, + "column": 51 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "buttonDisplayName", + "start": 19009, + "end": 19026, + "loc": { + "start": { + "line": 547, + "column": 52 + }, + "end": { + "line": 547, + "column": 69 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 19026, + "end": 19027, + "loc": { + "start": { + "line": 547, + "column": 69 + }, + "end": { + "line": 547, + "column": 70 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 19027, + "end": 19028, + "loc": { + "start": { + "line": 547, + "column": 70 + }, + "end": { + "line": 547, + "column": 71 + } + } + }, + { + "type": "CommentBlock", + "value": "*\r\n * Adding button label to button\r\n ", + "start": 19040, + "end": 19098, + "loc": { + "start": { + "line": 549, + "column": 8 + }, + "end": { + "line": 551, + "column": 11 + } + } + }, + { + "type": { + "label": "var", + "keyword": "var", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "var", + "start": 19108, + "end": 19111, + "loc": { + "start": { + "line": 552, + "column": 8 + }, + "end": { + "line": 552, + "column": 11 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "buttonSpanDOM", + "start": 19112, + "end": 19125, + "loc": { + "start": { + "line": 552, + "column": 12 + }, + "end": { + "line": 552, + "column": 25 + } + } + }, + { + "type": { + "label": "=", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": true, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "=", + "start": 19126, + "end": 19127, + "loc": { + "start": { + "line": 552, + "column": 26 + }, + "end": { + "line": 552, + "column": 27 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "document", + "start": 19128, + "end": 19136, + "loc": { + "start": { + "line": 552, + "column": 28 + }, + "end": { + "line": 552, + "column": 36 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 19136, + "end": 19137, + "loc": { + "start": { + "line": 552, + "column": 36 + }, + "end": { + "line": 552, + "column": 37 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "createElement", + "start": 19137, + "end": 19150, + "loc": { + "start": { + "line": 552, + "column": 37 + }, + "end": { + "line": 552, + "column": 50 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 19150, + "end": 19151, + "loc": { + "start": { + "line": 552, + "column": 50 + }, + "end": { + "line": 552, + "column": 51 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "span", + "start": 19151, + "end": 19157, + "loc": { + "start": { + "line": 552, + "column": 51 + }, + "end": { + "line": 552, + "column": 57 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 19157, + "end": 19158, + "loc": { + "start": { + "line": 552, + "column": 57 + }, + "end": { + "line": 552, + "column": 58 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 19158, + "end": 19159, + "loc": { + "start": { + "line": 552, + "column": 58 + }, + "end": { + "line": 552, + "column": 59 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "buttonSpanDOM", + "start": 19169, + "end": 19182, + "loc": { + "start": { + "line": 553, + "column": 8 + }, + "end": { + "line": 553, + "column": 21 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 19182, + "end": 19183, + "loc": { + "start": { + "line": 553, + "column": 21 + }, + "end": { + "line": 553, + "column": 22 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "innerHTML", + "start": 19183, + "end": 19192, + "loc": { + "start": { + "line": 553, + "column": 22 + }, + "end": { + "line": 553, + "column": 31 + } + } + }, + { + "type": { + "label": "=", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": true, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "=", + "start": 19193, + "end": 19194, + "loc": { + "start": { + "line": 553, + "column": 32 + }, + "end": { + "line": 553, + "column": 33 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "buttonDisplayName", + "start": 19195, + "end": 19212, + "loc": { + "start": { + "line": 553, + "column": 34 + }, + "end": { + "line": 553, + "column": 51 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 19212, + "end": 19213, + "loc": { + "start": { + "line": 553, + "column": 51 + }, + "end": { + "line": 553, + "column": 52 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "buttonDOM", + "start": 19223, + "end": 19232, + "loc": { + "start": { + "line": 554, + "column": 8 + }, + "end": { + "line": 554, + "column": 17 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 19232, + "end": 19233, + "loc": { + "start": { + "line": 554, + "column": 17 + }, + "end": { + "line": 554, + "column": 18 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "appendChild", + "start": 19233, + "end": 19244, + "loc": { + "start": { + "line": 554, + "column": 18 + }, + "end": { + "line": 554, + "column": 29 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 19244, + "end": 19245, + "loc": { + "start": { + "line": 554, + "column": 29 + }, + "end": { + "line": 554, + "column": 30 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "buttonSpanDOM", + "start": 19245, + "end": 19258, + "loc": { + "start": { + "line": 554, + "column": 30 + }, + "end": { + "line": 554, + "column": 43 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 19258, + "end": 19259, + "loc": { + "start": { + "line": 554, + "column": 43 + }, + "end": { + "line": 554, + "column": 44 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 19259, + "end": 19260, + "loc": { + "start": { + "line": 554, + "column": 44 + }, + "end": { + "line": 554, + "column": 45 + } + } + }, + { + "type": "CommentBlock", + "value": "*\r\n * Adding to buttonElements\r\n ", + "start": 19272, + "end": 19325, + "loc": { + "start": { + "line": 556, + "column": 8 + }, + "end": { + "line": 558, + "column": 11 + } + } + }, + { + "type": { + "label": "if", + "keyword": "if", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "if", + "start": 19335, + "end": 19337, + "loc": { + "start": { + "line": 559, + "column": 8 + }, + "end": { + "line": 559, + "column": 10 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 19337, + "end": 19338, + "loc": { + "start": { + "line": 559, + "column": 10 + }, + "end": { + "line": 559, + "column": 11 + } + } + }, + { + "type": { + "label": "prefix", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": true, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "!", + "start": 19338, + "end": 19339, + "loc": { + "start": { + "line": 559, + "column": 11 + }, + "end": { + "line": 559, + "column": 12 + } + } + }, + { + "type": { + "label": "this", + "keyword": "this", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "this", + "start": 19339, + "end": 19343, + "loc": { + "start": { + "line": 559, + "column": 12 + }, + "end": { + "line": 559, + "column": 16 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 19343, + "end": 19344, + "loc": { + "start": { + "line": 559, + "column": 16 + }, + "end": { + "line": 559, + "column": 17 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "buttonElements", + "start": 19344, + "end": 19358, + "loc": { + "start": { + "line": 559, + "column": 17 + }, + "end": { + "line": 559, + "column": 31 + } + } + }, + { + "type": { + "label": "[", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 19358, + "end": 19359, + "loc": { + "start": { + "line": 559, + "column": 31 + }, + "end": { + "line": 559, + "column": 32 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "button", + "start": 19359, + "end": 19365, + "loc": { + "start": { + "line": 559, + "column": 32 + }, + "end": { + "line": 559, + "column": 38 + } + } + }, + { + "type": { + "label": "]", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 19365, + "end": 19366, + "loc": { + "start": { + "line": 559, + "column": 38 + }, + "end": { + "line": 559, + "column": 39 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 19366, + "end": 19367, + "loc": { + "start": { + "line": 559, + "column": 39 + }, + "end": { + "line": 559, + "column": 40 + } + } + }, + { + "type": { + "label": "this", + "keyword": "this", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "this", + "start": 19379, + "end": 19383, + "loc": { + "start": { + "line": 560, + "column": 10 + }, + "end": { + "line": 560, + "column": 14 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 19383, + "end": 19384, + "loc": { + "start": { + "line": 560, + "column": 14 + }, + "end": { + "line": 560, + "column": 15 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "buttonElements", + "start": 19384, + "end": 19398, + "loc": { + "start": { + "line": 560, + "column": 15 + }, + "end": { + "line": 560, + "column": 29 + } + } + }, + { + "type": { + "label": "[", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 19398, + "end": 19399, + "loc": { + "start": { + "line": 560, + "column": 29 + }, + "end": { + "line": 560, + "column": 30 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "button", + "start": 19399, + "end": 19405, + "loc": { + "start": { + "line": 560, + "column": 30 + }, + "end": { + "line": 560, + "column": 36 + } + } + }, + { + "type": { + "label": "]", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 19405, + "end": 19406, + "loc": { + "start": { + "line": 560, + "column": 36 + }, + "end": { + "line": 560, + "column": 37 + } + } + }, + { + "type": { + "label": "=", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": true, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "=", + "start": 19407, + "end": 19408, + "loc": { + "start": { + "line": 560, + "column": 38 + }, + "end": { + "line": 560, + "column": 39 + } + } + }, + { + "type": { + "label": "[", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 19409, + "end": 19410, + "loc": { + "start": { + "line": 560, + "column": 40 + }, + "end": { + "line": 560, + "column": 41 + } + } + }, + { + "type": { + "label": "]", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 19410, + "end": 19411, + "loc": { + "start": { + "line": 560, + "column": 41 + }, + "end": { + "line": 560, + "column": 42 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 19411, + "end": 19412, + "loc": { + "start": { + "line": 560, + "column": 42 + }, + "end": { + "line": 560, + "column": 43 + } + } + }, + { + "type": { + "label": "this", + "keyword": "this", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "this", + "start": 19424, + "end": 19428, + "loc": { + "start": { + "line": 562, + "column": 8 + }, + "end": { + "line": 562, + "column": 12 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 19428, + "end": 19429, + "loc": { + "start": { + "line": 562, + "column": 12 + }, + "end": { + "line": 562, + "column": 13 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "buttonElements", + "start": 19429, + "end": 19443, + "loc": { + "start": { + "line": 562, + "column": 13 + }, + "end": { + "line": 562, + "column": 27 + } + } + }, + { + "type": { + "label": "[", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 19443, + "end": 19444, + "loc": { + "start": { + "line": 562, + "column": 27 + }, + "end": { + "line": 562, + "column": 28 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "button", + "start": 19444, + "end": 19450, + "loc": { + "start": { + "line": 562, + "column": 28 + }, + "end": { + "line": 562, + "column": 34 + } + } + }, + { + "type": { + "label": "]", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 19450, + "end": 19451, + "loc": { + "start": { + "line": 562, + "column": 34 + }, + "end": { + "line": 562, + "column": 35 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 19451, + "end": 19452, + "loc": { + "start": { + "line": 562, + "column": 35 + }, + "end": { + "line": 562, + "column": 36 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "push", + "start": 19452, + "end": 19456, + "loc": { + "start": { + "line": 562, + "column": 36 + }, + "end": { + "line": 562, + "column": 40 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 19456, + "end": 19457, + "loc": { + "start": { + "line": 562, + "column": 40 + }, + "end": { + "line": 562, + "column": 41 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "buttonDOM", + "start": 19457, + "end": 19466, + "loc": { + "start": { + "line": 562, + "column": 41 + }, + "end": { + "line": 562, + "column": 50 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 19466, + "end": 19467, + "loc": { + "start": { + "line": 562, + "column": 50 + }, + "end": { + "line": 562, + "column": 51 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 19467, + "end": 19468, + "loc": { + "start": { + "line": 562, + "column": 51 + }, + "end": { + "line": 562, + "column": 52 + } + } + }, + { + "type": "CommentBlock", + "value": "*\r\n * Appending button to row\r\n ", + "start": 19480, + "end": 19532, + "loc": { + "start": { + "line": 564, + "column": 8 + }, + "end": { + "line": 566, + "column": 11 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "rowDOM", + "start": 19542, + "end": 19548, + "loc": { + "start": { + "line": 567, + "column": 8 + }, + "end": { + "line": 567, + "column": 14 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 19548, + "end": 19549, + "loc": { + "start": { + "line": 567, + "column": 14 + }, + "end": { + "line": 567, + "column": 15 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "appendChild", + "start": 19549, + "end": 19560, + "loc": { + "start": { + "line": 567, + "column": 15 + }, + "end": { + "line": 567, + "column": 26 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 19560, + "end": 19561, + "loc": { + "start": { + "line": 567, + "column": 26 + }, + "end": { + "line": 567, + "column": 27 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "buttonDOM", + "start": 19561, + "end": 19570, + "loc": { + "start": { + "line": 567, + "column": 27 + }, + "end": { + "line": 567, + "column": 36 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 19570, + "end": 19571, + "loc": { + "start": { + "line": 567, + "column": 36 + }, + "end": { + "line": 567, + "column": 37 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 19571, + "end": 19572, + "loc": { + "start": { + "line": 567, + "column": 37 + }, + "end": { + "line": 567, + "column": 38 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 19582, + "end": 19583, + "loc": { + "start": { + "line": 569, + "column": 6 + }, + "end": { + "line": 569, + "column": 7 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 19583, + "end": 19584, + "loc": { + "start": { + "line": 569, + "column": 7 + }, + "end": { + "line": 569, + "column": 8 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 19584, + "end": 19585, + "loc": { + "start": { + "line": 569, + "column": 8 + }, + "end": { + "line": 569, + "column": 9 + } + } + }, + { + "type": "CommentBlock", + "value": "*\r\n * Appending row to keyboard\r\n ", + "start": 19595, + "end": 19645, + "loc": { + "start": { + "line": 571, + "column": 6 + }, + "end": { + "line": 573, + "column": 9 + } + } + }, + { + "type": { + "label": "this", + "keyword": "this", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "this", + "start": 19653, + "end": 19657, + "loc": { + "start": { + "line": 574, + "column": 6 + }, + "end": { + "line": 574, + "column": 10 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 19657, + "end": 19658, + "loc": { + "start": { + "line": 574, + "column": 10 + }, + "end": { + "line": 574, + "column": 11 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "keyboardDOM", + "start": 19658, + "end": 19669, + "loc": { + "start": { + "line": 574, + "column": 11 + }, + "end": { + "line": 574, + "column": 22 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 19669, + "end": 19670, + "loc": { + "start": { + "line": 574, + "column": 22 + }, + "end": { + "line": 574, + "column": 23 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "appendChild", + "start": 19670, + "end": 19681, + "loc": { + "start": { + "line": 574, + "column": 23 + }, + "end": { + "line": 574, + "column": 34 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 19681, + "end": 19682, + "loc": { + "start": { + "line": 574, + "column": 34 + }, + "end": { + "line": 574, + "column": 35 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "rowDOM", + "start": 19682, + "end": 19688, + "loc": { + "start": { + "line": 574, + "column": 35 + }, + "end": { + "line": 574, + "column": 41 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 19688, + "end": 19689, + "loc": { + "start": { + "line": 574, + "column": 41 + }, + "end": { + "line": 574, + "column": 42 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 19689, + "end": 19690, + "loc": { + "start": { + "line": 574, + "column": 42 + }, + "end": { + "line": 574, + "column": 43 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 19696, + "end": 19697, + "loc": { + "start": { + "line": 575, + "column": 4 + }, + "end": { + "line": 575, + "column": 5 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 19697, + "end": 19698, + "loc": { + "start": { + "line": 575, + "column": 5 + }, + "end": { + "line": 575, + "column": 6 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 19698, + "end": 19699, + "loc": { + "start": { + "line": 575, + "column": 6 + }, + "end": { + "line": 575, + "column": 7 + } + } + }, + { + "type": "CommentBlock", + "value": "*\r\n * Calling onRender\r\n ", + "start": 19707, + "end": 19744, + "loc": { + "start": { + "line": 577, + "column": 4 + }, + "end": { + "line": 579, + "column": 7 + } + } + }, + { + "type": { + "label": "this", + "keyword": "this", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "this", + "start": 19750, + "end": 19754, + "loc": { + "start": { + "line": 580, + "column": 4 + }, + "end": { + "line": 580, + "column": 8 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 19754, + "end": 19755, + "loc": { + "start": { + "line": 580, + "column": 8 + }, + "end": { + "line": 580, + "column": 9 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "onRender", + "start": 19755, + "end": 19763, + "loc": { + "start": { + "line": 580, + "column": 9 + }, + "end": { + "line": 580, + "column": 17 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 19763, + "end": 19764, + "loc": { + "start": { + "line": 580, + "column": 17 + }, + "end": { + "line": 580, + "column": 18 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 19764, + "end": 19765, + "loc": { + "start": { + "line": 580, + "column": 18 + }, + "end": { + "line": 580, + "column": 19 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 19765, + "end": 19766, + "loc": { + "start": { + "line": 580, + "column": 19 + }, + "end": { + "line": 580, + "column": 20 + } + } + }, + { + "type": { + "label": "if", + "keyword": "if", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "if", + "start": 19774, + "end": 19776, + "loc": { + "start": { + "line": 582, + "column": 4 + }, + "end": { + "line": 582, + "column": 6 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 19776, + "end": 19777, + "loc": { + "start": { + "line": 582, + "column": 6 + }, + "end": { + "line": 582, + "column": 7 + } + } + }, + { + "type": { + "label": "prefix", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": true, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "!", + "start": 19777, + "end": 19778, + "loc": { + "start": { + "line": 582, + "column": 7 + }, + "end": { + "line": 582, + "column": 8 + } + } + }, + { + "type": { + "label": "this", + "keyword": "this", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "this", + "start": 19778, + "end": 19782, + "loc": { + "start": { + "line": 582, + "column": 8 + }, + "end": { + "line": 582, + "column": 12 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 19782, + "end": 19783, + "loc": { + "start": { + "line": 582, + "column": 12 + }, + "end": { + "line": 582, + "column": 13 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "initialized", + "start": 19783, + "end": 19794, + "loc": { + "start": { + "line": 582, + "column": 13 + }, + "end": { + "line": 582, + "column": 24 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 19794, + "end": 19795, + "loc": { + "start": { + "line": 582, + "column": 24 + }, + "end": { + "line": 582, + "column": 25 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 19795, + "end": 19796, + "loc": { + "start": { + "line": 582, + "column": 25 + }, + "end": { + "line": 582, + "column": 26 + } + } + }, + { + "type": "CommentBlock", + "value": "*\r\n * Ensures that onInit is only called once per instantiation\r\n ", + "start": 19804, + "end": 19886, + "loc": { + "start": { + "line": 583, + "column": 6 + }, + "end": { + "line": 585, + "column": 9 + } + } + }, + { + "type": { + "label": "this", + "keyword": "this", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "this", + "start": 19894, + "end": 19898, + "loc": { + "start": { + "line": 586, + "column": 6 + }, + "end": { + "line": 586, + "column": 10 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 19898, + "end": 19899, + "loc": { + "start": { + "line": 586, + "column": 10 + }, + "end": { + "line": 586, + "column": 11 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "initialized", + "start": 19899, + "end": 19910, + "loc": { + "start": { + "line": 586, + "column": 11 + }, + "end": { + "line": 586, + "column": 22 + } + } + }, + { + "type": { + "label": "=", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": true, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "=", + "start": 19911, + "end": 19912, + "loc": { + "start": { + "line": 586, + "column": 23 + }, + "end": { + "line": 586, + "column": 24 + } + } + }, + { + "type": { + "label": "true", + "keyword": "true", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "true", + "start": 19913, + "end": 19917, + "loc": { + "start": { + "line": 586, + "column": 25 + }, + "end": { + "line": 586, + "column": 29 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 19917, + "end": 19918, + "loc": { + "start": { + "line": 586, + "column": 29 + }, + "end": { + "line": 586, + "column": 30 + } + } + }, + { + "type": "CommentBlock", + "value": "*\r\n * Calling onInit\r\n ", + "start": 19928, + "end": 19967, + "loc": { + "start": { + "line": 588, + "column": 6 + }, + "end": { + "line": 590, + "column": 9 + } + } + }, + { + "type": { + "label": "this", + "keyword": "this", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "this", + "start": 19975, + "end": 19979, + "loc": { + "start": { + "line": 591, + "column": 6 + }, + "end": { + "line": 591, + "column": 10 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 19979, + "end": 19980, + "loc": { + "start": { + "line": 591, + "column": 10 + }, + "end": { + "line": 591, + "column": 11 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "onInit", + "start": 19980, + "end": 19986, + "loc": { + "start": { + "line": 591, + "column": 11 + }, + "end": { + "line": 591, + "column": 17 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 19986, + "end": 19987, + "loc": { + "start": { + "line": 591, + "column": 17 + }, + "end": { + "line": 591, + "column": 18 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 19987, + "end": 19988, + "loc": { + "start": { + "line": 591, + "column": 18 + }, + "end": { + "line": 591, + "column": 19 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 19988, + "end": 19989, + "loc": { + "start": { + "line": 591, + "column": 19 + }, + "end": { + "line": 591, + "column": 20 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 19995, + "end": 19996, + "loc": { + "start": { + "line": 592, + "column": 4 + }, + "end": { + "line": 592, + "column": 5 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 20000, + "end": 20001, + "loc": { + "start": { + "line": 593, + "column": 2 + }, + "end": { + "line": 593, + "column": 3 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 20003, + "end": 20004, + "loc": { + "start": { + "line": 594, + "column": 0 + }, + "end": { + "line": 594, + "column": 1 + } + } + }, + { + "type": { + "label": "export", + "keyword": "export", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "export", + "start": 20008, + "end": 20014, + "loc": { + "start": { + "line": 596, + "column": 0 + }, + "end": { + "line": 596, + "column": 6 + } + } + }, + { + "type": { + "label": "default", + "keyword": "default", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "default", + "start": 20015, + "end": 20022, + "loc": { + "start": { + "line": 596, + "column": 7 + }, + "end": { + "line": 596, + "column": 14 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "SimpleKeyboard", + "start": 20023, + "end": 20037, + "loc": { + "start": { + "line": 596, + "column": 15 + }, + "end": { + "line": 596, + "column": 29 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 20037, + "end": 20038, + "loc": { + "start": { + "line": 596, + "column": 29 + }, + "end": { + "line": 596, + "column": 30 + } + } + }, + { + "type": { + "label": "eof", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 20040, + "end": 20040, + "loc": { + "start": { + "line": 597, + "column": 0 + }, + "end": { + "line": 597, + "column": 0 + } + } + } + ] +} \ No newline at end of file diff --git a/docs/ast/source/lib/index.js.json b/docs/ast/source/lib/index.js.json new file mode 100644 index 00000000..1dcf9555 --- /dev/null +++ b/docs/ast/source/lib/index.js.json @@ -0,0 +1,407 @@ +{ + "type": "File", + "start": 0, + "end": 85, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 3, + "column": 0 + } + }, + "program": { + "type": "Program", + "start": 0, + "end": 85, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 3, + "column": 0 + } + }, + "sourceType": "module", + "body": [ + { + "type": "ImportDeclaration", + "start": 0, + "end": 51, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 1, + "column": 51 + } + }, + "specifiers": [ + { + "type": "ImportDefaultSpecifier", + "start": 7, + "end": 21, + "loc": { + "start": { + "line": 1, + "column": 7 + }, + "end": { + "line": 1, + "column": 21 + } + }, + "local": { + "type": "Identifier", + "start": 7, + "end": 21, + "loc": { + "start": { + "line": 1, + "column": 7 + }, + "end": { + "line": 1, + "column": 21 + }, + "identifierName": "SimpleKeyboard" + }, + "name": "SimpleKeyboard" + } + } + ], + "source": { + "type": "StringLiteral", + "start": 27, + "end": 50, + "loc": { + "start": { + "line": 1, + "column": 27 + }, + "end": { + "line": 1, + "column": 50 + } + }, + "extra": { + "rawValue": "./components/Keyboard", + "raw": "'./components/Keyboard'" + }, + "value": "./components/Keyboard" + } + }, + { + "type": "ExportDefaultDeclaration", + "start": 53, + "end": 83, + "loc": { + "start": { + "line": 2, + "column": 0 + }, + "end": { + "line": 2, + "column": 30 + } + }, + "declaration": { + "type": "Identifier", + "start": 68, + "end": 82, + "loc": { + "start": { + "line": 2, + "column": 15 + }, + "end": { + "line": 2, + "column": 29 + }, + "identifierName": "SimpleKeyboard" + }, + "name": "SimpleKeyboard", + "leadingComments": [], + "trailingComments": [] + } + } + ], + "directives": [] + }, + "comments": [], + "tokens": [ + { + "type": { + "label": "import", + "keyword": "import", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "import", + "start": 0, + "end": 6, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 1, + "column": 6 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "SimpleKeyboard", + "start": 7, + "end": 21, + "loc": { + "start": { + "line": 1, + "column": 7 + }, + "end": { + "line": 1, + "column": 21 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "from", + "start": 22, + "end": 26, + "loc": { + "start": { + "line": 1, + "column": 22 + }, + "end": { + "line": 1, + "column": 26 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "./components/Keyboard", + "start": 27, + "end": 50, + "loc": { + "start": { + "line": 1, + "column": 27 + }, + "end": { + "line": 1, + "column": 50 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 50, + "end": 51, + "loc": { + "start": { + "line": 1, + "column": 50 + }, + "end": { + "line": 1, + "column": 51 + } + } + }, + { + "type": { + "label": "export", + "keyword": "export", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "export", + "start": 53, + "end": 59, + "loc": { + "start": { + "line": 2, + "column": 0 + }, + "end": { + "line": 2, + "column": 6 + } + } + }, + { + "type": { + "label": "default", + "keyword": "default", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "default", + "start": 60, + "end": 67, + "loc": { + "start": { + "line": 2, + "column": 7 + }, + "end": { + "line": 2, + "column": 14 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "SimpleKeyboard", + "start": 68, + "end": 82, + "loc": { + "start": { + "line": 2, + "column": 15 + }, + "end": { + "line": 2, + "column": 29 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 82, + "end": 83, + "loc": { + "start": { + "line": 2, + "column": 29 + }, + "end": { + "line": 2, + "column": 30 + } + } + }, + { + "type": { + "label": "eof", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 85, + "end": 85, + "loc": { + "start": { + "line": 3, + "column": 0 + }, + "end": { + "line": 3, + "column": 0 + } + } + } + ] +} \ No newline at end of file diff --git a/docs/ast/source/lib/services/KeyboardLayout.js.json b/docs/ast/source/lib/services/KeyboardLayout.js.json new file mode 100644 index 00000000..ca806f70 --- /dev/null +++ b/docs/ast/source/lib/services/KeyboardLayout.js.json @@ -0,0 +1,2377 @@ +{ + "type": "File", + "start": 0, + "end": 755, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 30, + "column": 30 + } + }, + "program": { + "type": "Program", + "start": 0, + "end": 755, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 30, + "column": 30 + } + }, + "sourceType": "module", + "body": [ + { + "type": "Identifier", + "start": 38, + "end": 721, + "loc": { + "start": { + "line": 4, + "column": 0 + }, + "end": { + "line": 28, + "column": 1 + } + }, + "id": { + "type": "Identifier", + "start": 44, + "end": 58, + "loc": { + "start": { + "line": 4, + "column": 6 + }, + "end": { + "line": 4, + "column": 20 + }, + "identifierName": "KeyboardLayout" + }, + "name": "KeyboardLayout", + "leadingComments": null + }, + "superClass": null, + "body": { + "type": "ClassBody", + "start": 59, + "end": 721, + "loc": { + "start": { + "line": 4, + "column": 21 + }, + "end": { + "line": 28, + "column": 1 + } + }, + "body": [ + { + "type": "ClassProperty", + "start": 175, + "end": 718, + "loc": { + "start": { + "line": 10, + "column": 2 + }, + "end": { + "line": 27, + "column": 3 + } + }, + "static": true, + "computed": false, + "key": { + "type": "Identifier", + "start": 182, + "end": 198, + "loc": { + "start": { + "line": 10, + "column": 9 + }, + "end": { + "line": 10, + "column": 25 + }, + "identifierName": "getDefaultLayout" + }, + "name": "getDefaultLayout" + }, + "value": { + "type": "ArrowFunctionExpression", + "start": 201, + "end": 718, + "loc": { + "start": { + "line": 10, + "column": 28 + }, + "end": { + "line": 27, + "column": 3 + } + }, + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [], + "body": { + "type": "BlockStatement", + "start": 207, + "end": 718, + "loc": { + "start": { + "line": 10, + "column": 34 + }, + "end": { + "line": 27, + "column": 3 + } + }, + "body": [ + { + "type": "ReturnStatement", + "start": 214, + "end": 712, + "loc": { + "start": { + "line": 11, + "column": 4 + }, + "end": { + "line": 26, + "column": 5 + } + }, + "argument": { + "type": "ObjectExpression", + "start": 221, + "end": 712, + "loc": { + "start": { + "line": 11, + "column": 11 + }, + "end": { + "line": 26, + "column": 5 + } + }, + "properties": [ + { + "type": "ObjectProperty", + "start": 230, + "end": 465, + "loc": { + "start": { + "line": 12, + "column": 6 + }, + "end": { + "line": 18, + "column": 7 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "StringLiteral", + "start": 230, + "end": 239, + "loc": { + "start": { + "line": 12, + "column": 6 + }, + "end": { + "line": 12, + "column": 15 + } + }, + "extra": { + "rawValue": "default", + "raw": "'default'" + }, + "value": "default" + }, + "value": { + "type": "ArrayExpression", + "start": 241, + "end": 465, + "loc": { + "start": { + "line": 12, + "column": 17 + }, + "end": { + "line": 18, + "column": 7 + } + }, + "elements": [ + { + "type": "StringLiteral", + "start": 252, + "end": 286, + "loc": { + "start": { + "line": 13, + "column": 8 + }, + "end": { + "line": 13, + "column": 42 + } + }, + "extra": { + "rawValue": "` 1 2 3 4 5 6 7 8 9 0 - = {bksp}", + "raw": "'` 1 2 3 4 5 6 7 8 9 0 - = {bksp}'" + }, + "value": "` 1 2 3 4 5 6 7 8 9 0 - = {bksp}" + }, + { + "type": "StringLiteral", + "start": 297, + "end": 331, + "loc": { + "start": { + "line": 14, + "column": 8 + }, + "end": { + "line": 14, + "column": 42 + } + }, + "extra": { + "rawValue": "{tab} q w e r t y u i o p [ ] \\", + "raw": "'{tab} q w e r t y u i o p [ ] \\\\'" + }, + "value": "{tab} q w e r t y u i o p [ ] \\" + }, + { + "type": "StringLiteral", + "start": 342, + "end": 381, + "loc": { + "start": { + "line": 15, + "column": 8 + }, + "end": { + "line": 15, + "column": 47 + } + }, + "extra": { + "rawValue": "{lock} a s d f g h j k l ; ' {enter}", + "raw": "'{lock} a s d f g h j k l ; \\' {enter}'" + }, + "value": "{lock} a s d f g h j k l ; ' {enter}" + }, + { + "type": "StringLiteral", + "start": 392, + "end": 429, + "loc": { + "start": { + "line": 16, + "column": 8 + }, + "end": { + "line": 16, + "column": 45 + } + }, + "extra": { + "rawValue": "{shift} z x c v b n m , . / {shift}", + "raw": "'{shift} z x c v b n m , . / {shift}'" + }, + "value": "{shift} z x c v b n m , . / {shift}" + }, + { + "type": "StringLiteral", + "start": 440, + "end": 456, + "loc": { + "start": { + "line": 17, + "column": 8 + }, + "end": { + "line": 17, + "column": 24 + } + }, + "extra": { + "rawValue": ".com @ {space}", + "raw": "'.com @ {space}'" + }, + "value": ".com @ {space}" + } + ] + } + }, + { + "type": "ObjectProperty", + "start": 474, + "end": 705, + "loc": { + "start": { + "line": 19, + "column": 6 + }, + "end": { + "line": 25, + "column": 7 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "StringLiteral", + "start": 474, + "end": 481, + "loc": { + "start": { + "line": 19, + "column": 6 + }, + "end": { + "line": 19, + "column": 13 + } + }, + "extra": { + "rawValue": "shift", + "raw": "'shift'" + }, + "value": "shift" + }, + "value": { + "type": "ArrayExpression", + "start": 483, + "end": 705, + "loc": { + "start": { + "line": 19, + "column": 15 + }, + "end": { + "line": 25, + "column": 7 + } + }, + "elements": [ + { + "type": "StringLiteral", + "start": 494, + "end": 528, + "loc": { + "start": { + "line": 20, + "column": 8 + }, + "end": { + "line": 20, + "column": 42 + } + }, + "extra": { + "rawValue": "~ ! @ # $ % ^ & * ( ) _ + {bksp}", + "raw": "'~ ! @ # $ % ^ & * ( ) _ + {bksp}'" + }, + "value": "~ ! @ # $ % ^ & * ( ) _ + {bksp}" + }, + { + "type": "StringLiteral", + "start": 539, + "end": 572, + "loc": { + "start": { + "line": 21, + "column": 8 + }, + "end": { + "line": 21, + "column": 41 + } + }, + "extra": { + "rawValue": "{tab} Q W E R T Y U I O P { } |", + "raw": "'{tab} Q W E R T Y U I O P { } |'" + }, + "value": "{tab} Q W E R T Y U I O P { } |" + }, + { + "type": "StringLiteral", + "start": 583, + "end": 621, + "loc": { + "start": { + "line": 22, + "column": 8 + }, + "end": { + "line": 22, + "column": 46 + } + }, + "extra": { + "rawValue": "{lock} A S D F G H J K L : \" {enter}", + "raw": "'{lock} A S D F G H J K L : \" {enter}'" + }, + "value": "{lock} A S D F G H J K L : \" {enter}" + }, + { + "type": "StringLiteral", + "start": 632, + "end": 669, + "loc": { + "start": { + "line": 23, + "column": 8 + }, + "end": { + "line": 23, + "column": 45 + } + }, + "extra": { + "rawValue": "{shift} Z X C V B N M < > ? {shift}", + "raw": "'{shift} Z X C V B N M < > ? {shift}'" + }, + "value": "{shift} Z X C V B N M < > ? {shift}" + }, + { + "type": "StringLiteral", + "start": 680, + "end": 696, + "loc": { + "start": { + "line": 24, + "column": 8 + }, + "end": { + "line": 24, + "column": 24 + } + }, + "extra": { + "rawValue": ".com @ {space}", + "raw": "'.com @ {space}'" + }, + "value": ".com @ {space}" + } + ] + } + } + ] + } + } + ], + "directives": [] + } + }, + "leadingComments": [ + { + "type": "CommentBlock", + "value": "*\r\n * Get default simple-keyboard layout\r\n * @return {object} The default layout (US-QWERTY)\r\n ", + "start": 66, + "end": 171, + "loc": { + "start": { + "line": 6, + "column": 2 + }, + "end": { + "line": 9, + "column": 5 + } + } + } + ] + } + ] + }, + "leadingComments": [], + "name": "_", + "trailingComments": [] + }, + { + "type": "Identifier", + "start": 725, + "end": 755, + "loc": { + "start": { + "line": 30, + "column": 0 + }, + "end": { + "line": 30, + "column": 30 + } + }, + "declaration": { + "type": "Identifier", + "start": 740, + "end": 754, + "loc": { + "start": { + "line": 30, + "column": 15 + }, + "end": { + "line": 30, + "column": 29 + }, + "identifierName": "KeyboardLayout" + }, + "name": "KeyboardLayout" + }, + "name": "_", + "leadingComments": [], + "trailingComments": [] + }, + { + "type": "ExportDefaultDeclaration", + "start": 725, + "end": 755, + "loc": { + "start": { + "line": 30, + "column": 0 + }, + "end": { + "line": 30, + "column": 30 + } + }, + "declaration": { + "type": "ClassDeclaration", + "start": 38, + "end": 721, + "loc": { + "start": { + "line": 4, + "column": 0 + }, + "end": { + "line": 28, + "column": 1 + } + }, + "id": { + "type": "Identifier", + "start": 44, + "end": 58, + "loc": { + "start": { + "line": 4, + "column": 6 + }, + "end": { + "line": 4, + "column": 20 + }, + "identifierName": "KeyboardLayout" + }, + "name": "KeyboardLayout", + "leadingComments": null + }, + "superClass": null, + "body": { + "type": "ClassBody", + "start": 59, + "end": 721, + "loc": { + "start": { + "line": 4, + "column": 21 + }, + "end": { + "line": 28, + "column": 1 + } + }, + "body": [ + { + "type": "ClassProperty", + "start": 175, + "end": 718, + "loc": { + "start": { + "line": 10, + "column": 2 + }, + "end": { + "line": 27, + "column": 3 + } + }, + "static": true, + "computed": false, + "key": { + "type": "Identifier", + "start": 182, + "end": 198, + "loc": { + "start": { + "line": 10, + "column": 9 + }, + "end": { + "line": 10, + "column": 25 + }, + "identifierName": "getDefaultLayout" + }, + "name": "getDefaultLayout" + }, + "value": { + "type": "ArrowFunctionExpression", + "start": 201, + "end": 718, + "loc": { + "start": { + "line": 10, + "column": 28 + }, + "end": { + "line": 27, + "column": 3 + } + }, + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [], + "body": { + "type": "BlockStatement", + "start": 207, + "end": 718, + "loc": { + "start": { + "line": 10, + "column": 34 + }, + "end": { + "line": 27, + "column": 3 + } + }, + "body": [ + { + "type": "ReturnStatement", + "start": 214, + "end": 712, + "loc": { + "start": { + "line": 11, + "column": 4 + }, + "end": { + "line": 26, + "column": 5 + } + }, + "argument": { + "type": "ObjectExpression", + "start": 221, + "end": 712, + "loc": { + "start": { + "line": 11, + "column": 11 + }, + "end": { + "line": 26, + "column": 5 + } + }, + "properties": [ + { + "type": "ObjectProperty", + "start": 230, + "end": 465, + "loc": { + "start": { + "line": 12, + "column": 6 + }, + "end": { + "line": 18, + "column": 7 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "StringLiteral", + "start": 230, + "end": 239, + "loc": { + "start": { + "line": 12, + "column": 6 + }, + "end": { + "line": 12, + "column": 15 + } + }, + "extra": { + "rawValue": "default", + "raw": "'default'" + }, + "value": "default" + }, + "value": { + "type": "ArrayExpression", + "start": 241, + "end": 465, + "loc": { + "start": { + "line": 12, + "column": 17 + }, + "end": { + "line": 18, + "column": 7 + } + }, + "elements": [ + { + "type": "StringLiteral", + "start": 252, + "end": 286, + "loc": { + "start": { + "line": 13, + "column": 8 + }, + "end": { + "line": 13, + "column": 42 + } + }, + "extra": { + "rawValue": "` 1 2 3 4 5 6 7 8 9 0 - = {bksp}", + "raw": "'` 1 2 3 4 5 6 7 8 9 0 - = {bksp}'" + }, + "value": "` 1 2 3 4 5 6 7 8 9 0 - = {bksp}" + }, + { + "type": "StringLiteral", + "start": 297, + "end": 331, + "loc": { + "start": { + "line": 14, + "column": 8 + }, + "end": { + "line": 14, + "column": 42 + } + }, + "extra": { + "rawValue": "{tab} q w e r t y u i o p [ ] \\", + "raw": "'{tab} q w e r t y u i o p [ ] \\\\'" + }, + "value": "{tab} q w e r t y u i o p [ ] \\" + }, + { + "type": "StringLiteral", + "start": 342, + "end": 381, + "loc": { + "start": { + "line": 15, + "column": 8 + }, + "end": { + "line": 15, + "column": 47 + } + }, + "extra": { + "rawValue": "{lock} a s d f g h j k l ; ' {enter}", + "raw": "'{lock} a s d f g h j k l ; \\' {enter}'" + }, + "value": "{lock} a s d f g h j k l ; ' {enter}" + }, + { + "type": "StringLiteral", + "start": 392, + "end": 429, + "loc": { + "start": { + "line": 16, + "column": 8 + }, + "end": { + "line": 16, + "column": 45 + } + }, + "extra": { + "rawValue": "{shift} z x c v b n m , . / {shift}", + "raw": "'{shift} z x c v b n m , . / {shift}'" + }, + "value": "{shift} z x c v b n m , . / {shift}" + }, + { + "type": "StringLiteral", + "start": 440, + "end": 456, + "loc": { + "start": { + "line": 17, + "column": 8 + }, + "end": { + "line": 17, + "column": 24 + } + }, + "extra": { + "rawValue": ".com @ {space}", + "raw": "'.com @ {space}'" + }, + "value": ".com @ {space}" + } + ] + } + }, + { + "type": "ObjectProperty", + "start": 474, + "end": 705, + "loc": { + "start": { + "line": 19, + "column": 6 + }, + "end": { + "line": 25, + "column": 7 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "StringLiteral", + "start": 474, + "end": 481, + "loc": { + "start": { + "line": 19, + "column": 6 + }, + "end": { + "line": 19, + "column": 13 + } + }, + "extra": { + "rawValue": "shift", + "raw": "'shift'" + }, + "value": "shift" + }, + "value": { + "type": "ArrayExpression", + "start": 483, + "end": 705, + "loc": { + "start": { + "line": 19, + "column": 15 + }, + "end": { + "line": 25, + "column": 7 + } + }, + "elements": [ + { + "type": "StringLiteral", + "start": 494, + "end": 528, + "loc": { + "start": { + "line": 20, + "column": 8 + }, + "end": { + "line": 20, + "column": 42 + } + }, + "extra": { + "rawValue": "~ ! @ # $ % ^ & * ( ) _ + {bksp}", + "raw": "'~ ! @ # $ % ^ & * ( ) _ + {bksp}'" + }, + "value": "~ ! @ # $ % ^ & * ( ) _ + {bksp}" + }, + { + "type": "StringLiteral", + "start": 539, + "end": 572, + "loc": { + "start": { + "line": 21, + "column": 8 + }, + "end": { + "line": 21, + "column": 41 + } + }, + "extra": { + "rawValue": "{tab} Q W E R T Y U I O P { } |", + "raw": "'{tab} Q W E R T Y U I O P { } |'" + }, + "value": "{tab} Q W E R T Y U I O P { } |" + }, + { + "type": "StringLiteral", + "start": 583, + "end": 621, + "loc": { + "start": { + "line": 22, + "column": 8 + }, + "end": { + "line": 22, + "column": 46 + } + }, + "extra": { + "rawValue": "{lock} A S D F G H J K L : \" {enter}", + "raw": "'{lock} A S D F G H J K L : \" {enter}'" + }, + "value": "{lock} A S D F G H J K L : \" {enter}" + }, + { + "type": "StringLiteral", + "start": 632, + "end": 669, + "loc": { + "start": { + "line": 23, + "column": 8 + }, + "end": { + "line": 23, + "column": 45 + } + }, + "extra": { + "rawValue": "{shift} Z X C V B N M < > ? {shift}", + "raw": "'{shift} Z X C V B N M < > ? {shift}'" + }, + "value": "{shift} Z X C V B N M < > ? {shift}" + }, + { + "type": "StringLiteral", + "start": 680, + "end": 696, + "loc": { + "start": { + "line": 24, + "column": 8 + }, + "end": { + "line": 24, + "column": 24 + } + }, + "extra": { + "rawValue": ".com @ {space}", + "raw": "'.com @ {space}'" + }, + "value": ".com @ {space}" + } + ] + } + } + ] + } + } + ], + "directives": [] + } + }, + "leadingComments": [ + { + "type": "CommentBlock", + "value": "*\r\n * Get default simple-keyboard layout\r\n * @return {object} The default layout (US-QWERTY)\r\n ", + "start": 66, + "end": 171, + "loc": { + "start": { + "line": 6, + "column": 2 + }, + "end": { + "line": 9, + "column": 5 + } + } + } + ] + } + ] + }, + "leadingComments": [ + { + "type": "CommentBlock", + "value": "*\r\n * Keyboard Layout Service\r\n ", + "start": 0, + "end": 36, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 3, + "column": 3 + } + } + } + ], + "__PseudoExport__": false, + "trailingComments": [] + }, + "leadingComments": null + } + ], + "directives": [] + }, + "comments": [ + { + "type": "CommentBlock", + "value": "*\r\n * Keyboard Layout Service\r\n ", + "start": 0, + "end": 36, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 3, + "column": 3 + } + } + }, + { + "type": "CommentBlock", + "value": "*\r\n * Get default simple-keyboard layout\r\n * @return {object} The default layout (US-QWERTY)\r\n ", + "start": 66, + "end": 171, + "loc": { + "start": { + "line": 6, + "column": 2 + }, + "end": { + "line": 9, + "column": 5 + } + } + } + ], + "tokens": [ + { + "type": "CommentBlock", + "value": "*\r\n * Keyboard Layout Service\r\n ", + "start": 0, + "end": 36, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 3, + "column": 3 + } + } + }, + { + "type": { + "label": "class", + "keyword": "class", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "class", + "start": 38, + "end": 43, + "loc": { + "start": { + "line": 4, + "column": 0 + }, + "end": { + "line": 4, + "column": 5 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "KeyboardLayout", + "start": 44, + "end": 58, + "loc": { + "start": { + "line": 4, + "column": 6 + }, + "end": { + "line": 4, + "column": 20 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 59, + "end": 60, + "loc": { + "start": { + "line": 4, + "column": 21 + }, + "end": { + "line": 4, + "column": 22 + } + } + }, + { + "type": "CommentBlock", + "value": "*\r\n * Get default simple-keyboard layout\r\n * @return {object} The default layout (US-QWERTY)\r\n ", + "start": 66, + "end": 171, + "loc": { + "start": { + "line": 6, + "column": 2 + }, + "end": { + "line": 9, + "column": 5 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "static", + "start": 175, + "end": 181, + "loc": { + "start": { + "line": 10, + "column": 2 + }, + "end": { + "line": 10, + "column": 8 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "getDefaultLayout", + "start": 182, + "end": 198, + "loc": { + "start": { + "line": 10, + "column": 9 + }, + "end": { + "line": 10, + "column": 25 + } + } + }, + { + "type": { + "label": "=", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": true, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "=", + "start": 199, + "end": 200, + "loc": { + "start": { + "line": 10, + "column": 26 + }, + "end": { + "line": 10, + "column": 27 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 201, + "end": 202, + "loc": { + "start": { + "line": 10, + "column": 28 + }, + "end": { + "line": 10, + "column": 29 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 202, + "end": 203, + "loc": { + "start": { + "line": 10, + "column": 29 + }, + "end": { + "line": 10, + "column": 30 + } + } + }, + { + "type": { + "label": "=>", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 204, + "end": 206, + "loc": { + "start": { + "line": 10, + "column": 31 + }, + "end": { + "line": 10, + "column": 33 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 207, + "end": 208, + "loc": { + "start": { + "line": 10, + "column": 34 + }, + "end": { + "line": 10, + "column": 35 + } + } + }, + { + "type": { + "label": "return", + "keyword": "return", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "return", + "start": 214, + "end": 220, + "loc": { + "start": { + "line": 11, + "column": 4 + }, + "end": { + "line": 11, + "column": 10 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 221, + "end": 222, + "loc": { + "start": { + "line": 11, + "column": 11 + }, + "end": { + "line": 11, + "column": 12 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "default", + "start": 230, + "end": 239, + "loc": { + "start": { + "line": 12, + "column": 6 + }, + "end": { + "line": 12, + "column": 15 + } + } + }, + { + "type": { + "label": ":", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 239, + "end": 240, + "loc": { + "start": { + "line": 12, + "column": 15 + }, + "end": { + "line": 12, + "column": 16 + } + } + }, + { + "type": { + "label": "[", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 241, + "end": 242, + "loc": { + "start": { + "line": 12, + "column": 17 + }, + "end": { + "line": 12, + "column": 18 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "` 1 2 3 4 5 6 7 8 9 0 - = {bksp}", + "start": 252, + "end": 286, + "loc": { + "start": { + "line": 13, + "column": 8 + }, + "end": { + "line": 13, + "column": 42 + } + } + }, + { + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 286, + "end": 287, + "loc": { + "start": { + "line": 13, + "column": 42 + }, + "end": { + "line": 13, + "column": 43 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "{tab} q w e r t y u i o p [ ] \\", + "start": 297, + "end": 331, + "loc": { + "start": { + "line": 14, + "column": 8 + }, + "end": { + "line": 14, + "column": 42 + } + } + }, + { + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 331, + "end": 332, + "loc": { + "start": { + "line": 14, + "column": 42 + }, + "end": { + "line": 14, + "column": 43 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "{lock} a s d f g h j k l ; ' {enter}", + "start": 342, + "end": 381, + "loc": { + "start": { + "line": 15, + "column": 8 + }, + "end": { + "line": 15, + "column": 47 + } + } + }, + { + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 381, + "end": 382, + "loc": { + "start": { + "line": 15, + "column": 47 + }, + "end": { + "line": 15, + "column": 48 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "{shift} z x c v b n m , . / {shift}", + "start": 392, + "end": 429, + "loc": { + "start": { + "line": 16, + "column": 8 + }, + "end": { + "line": 16, + "column": 45 + } + } + }, + { + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 429, + "end": 430, + "loc": { + "start": { + "line": 16, + "column": 45 + }, + "end": { + "line": 16, + "column": 46 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": ".com @ {space}", + "start": 440, + "end": 456, + "loc": { + "start": { + "line": 17, + "column": 8 + }, + "end": { + "line": 17, + "column": 24 + } + } + }, + { + "type": { + "label": "]", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 464, + "end": 465, + "loc": { + "start": { + "line": 18, + "column": 6 + }, + "end": { + "line": 18, + "column": 7 + } + } + }, + { + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 465, + "end": 466, + "loc": { + "start": { + "line": 18, + "column": 7 + }, + "end": { + "line": 18, + "column": 8 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "shift", + "start": 474, + "end": 481, + "loc": { + "start": { + "line": 19, + "column": 6 + }, + "end": { + "line": 19, + "column": 13 + } + } + }, + { + "type": { + "label": ":", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 481, + "end": 482, + "loc": { + "start": { + "line": 19, + "column": 13 + }, + "end": { + "line": 19, + "column": 14 + } + } + }, + { + "type": { + "label": "[", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 483, + "end": 484, + "loc": { + "start": { + "line": 19, + "column": 15 + }, + "end": { + "line": 19, + "column": 16 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "~ ! @ # $ % ^ & * ( ) _ + {bksp}", + "start": 494, + "end": 528, + "loc": { + "start": { + "line": 20, + "column": 8 + }, + "end": { + "line": 20, + "column": 42 + } + } + }, + { + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 528, + "end": 529, + "loc": { + "start": { + "line": 20, + "column": 42 + }, + "end": { + "line": 20, + "column": 43 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "{tab} Q W E R T Y U I O P { } |", + "start": 539, + "end": 572, + "loc": { + "start": { + "line": 21, + "column": 8 + }, + "end": { + "line": 21, + "column": 41 + } + } + }, + { + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 572, + "end": 573, + "loc": { + "start": { + "line": 21, + "column": 41 + }, + "end": { + "line": 21, + "column": 42 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "{lock} A S D F G H J K L : \" {enter}", + "start": 583, + "end": 621, + "loc": { + "start": { + "line": 22, + "column": 8 + }, + "end": { + "line": 22, + "column": 46 + } + } + }, + { + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 621, + "end": 622, + "loc": { + "start": { + "line": 22, + "column": 46 + }, + "end": { + "line": 22, + "column": 47 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "{shift} Z X C V B N M < > ? {shift}", + "start": 632, + "end": 669, + "loc": { + "start": { + "line": 23, + "column": 8 + }, + "end": { + "line": 23, + "column": 45 + } + } + }, + { + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 669, + "end": 670, + "loc": { + "start": { + "line": 23, + "column": 45 + }, + "end": { + "line": 23, + "column": 46 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": ".com @ {space}", + "start": 680, + "end": 696, + "loc": { + "start": { + "line": 24, + "column": 8 + }, + "end": { + "line": 24, + "column": 24 + } + } + }, + { + "type": { + "label": "]", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 704, + "end": 705, + "loc": { + "start": { + "line": 25, + "column": 6 + }, + "end": { + "line": 25, + "column": 7 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 711, + "end": 712, + "loc": { + "start": { + "line": 26, + "column": 4 + }, + "end": { + "line": 26, + "column": 5 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 717, + "end": 718, + "loc": { + "start": { + "line": 27, + "column": 2 + }, + "end": { + "line": 27, + "column": 3 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 720, + "end": 721, + "loc": { + "start": { + "line": 28, + "column": 0 + }, + "end": { + "line": 28, + "column": 1 + } + } + }, + { + "type": { + "label": "export", + "keyword": "export", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "export", + "start": 725, + "end": 731, + "loc": { + "start": { + "line": 30, + "column": 0 + }, + "end": { + "line": 30, + "column": 6 + } + } + }, + { + "type": { + "label": "default", + "keyword": "default", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "default", + "start": 732, + "end": 739, + "loc": { + "start": { + "line": 30, + "column": 7 + }, + "end": { + "line": 30, + "column": 14 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "KeyboardLayout", + "start": 740, + "end": 754, + "loc": { + "start": { + "line": 30, + "column": 15 + }, + "end": { + "line": 30, + "column": 29 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 754, + "end": 755, + "loc": { + "start": { + "line": 30, + "column": 29 + }, + "end": { + "line": 30, + "column": 30 + } + } + }, + { + "type": { + "label": "eof", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 755, + "end": 755, + "loc": { + "start": { + "line": 30, + "column": 30 + }, + "end": { + "line": 30, + "column": 30 + } + } + } + ] +} \ No newline at end of file diff --git a/docs/ast/source/lib/services/PhysicalKeyboard.js.json b/docs/ast/source/lib/services/PhysicalKeyboard.js.json new file mode 100644 index 00000000..8f6a809a --- /dev/null +++ b/docs/ast/source/lib/services/PhysicalKeyboard.js.json @@ -0,0 +1,21560 @@ +{ + "type": "File", + "start": 0, + "end": 2743, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 92, + "column": 32 + } + }, + "program": { + "type": "Program", + "start": 0, + "end": 2743, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 92, + "column": 32 + } + }, + "sourceType": "module", + "body": [ + { + "type": "Identifier", + "start": 40, + "end": 2707, + "loc": { + "start": { + "line": 4, + "column": 0 + }, + "end": { + "line": 90, + "column": 1 + } + }, + "id": { + "type": "Identifier", + "start": 46, + "end": 62, + "loc": { + "start": { + "line": 4, + "column": 6 + }, + "end": { + "line": 4, + "column": 22 + }, + "identifierName": "PhysicalKeyboard" + }, + "name": "PhysicalKeyboard", + "leadingComments": null + }, + "superClass": null, + "body": { + "type": "ClassBody", + "start": 63, + "end": 2707, + "loc": { + "start": { + "line": 4, + "column": 23 + }, + "end": { + "line": 90, + "column": 1 + } + }, + "body": [ + { + "type": "ClassMethod", + "start": 140, + "end": 344, + "loc": { + "start": { + "line": 8, + "column": 2 + }, + "end": { + "line": 15, + "column": 3 + } + }, + "static": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 140, + "end": 151, + "loc": { + "start": { + "line": 8, + "column": 2 + }, + "end": { + "line": 8, + "column": 13 + }, + "identifierName": "constructor" + }, + "name": "constructor", + "leadingComments": null + }, + "kind": "constructor", + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 152, + "end": 174, + "loc": { + "start": { + "line": 8, + "column": 14 + }, + "end": { + "line": 8, + "column": 36 + }, + "identifierName": "simpleKeyboardInstance" + }, + "name": "simpleKeyboardInstance" + } + ], + "body": { + "type": "BlockStatement", + "start": 175, + "end": 344, + "loc": { + "start": { + "line": 8, + "column": 37 + }, + "end": { + "line": 15, + "column": 3 + } + }, + "body": [ + { + "type": "ExpressionStatement", + "start": 250, + "end": 303, + "loc": { + "start": { + "line": 12, + "column": 4 + }, + "end": { + "line": 12, + "column": 57 + } + }, + "expression": { + "type": "AssignmentExpression", + "start": 250, + "end": 302, + "loc": { + "start": { + "line": 12, + "column": 4 + }, + "end": { + "line": 12, + "column": 56 + } + }, + "operator": "=", + "left": { + "type": "MemberExpression", + "start": 250, + "end": 277, + "loc": { + "start": { + "line": 12, + "column": 4 + }, + "end": { + "line": 12, + "column": 31 + } + }, + "object": { + "type": "ThisExpression", + "start": 250, + "end": 254, + "loc": { + "start": { + "line": 12, + "column": 4 + }, + "end": { + "line": 12, + "column": 8 + } + }, + "leadingComments": null + }, + "property": { + "type": "Identifier", + "start": 255, + "end": 277, + "loc": { + "start": { + "line": 12, + "column": 9 + }, + "end": { + "line": 12, + "column": 31 + }, + "identifierName": "simpleKeyboardInstance" + }, + "name": "simpleKeyboardInstance" + }, + "computed": false, + "leadingComments": null + }, + "right": { + "type": "Identifier", + "start": 280, + "end": 302, + "loc": { + "start": { + "line": 12, + "column": 34 + }, + "end": { + "line": 12, + "column": 56 + }, + "identifierName": "simpleKeyboardInstance" + }, + "name": "simpleKeyboardInstance" + }, + "leadingComments": null + }, + "leadingComments": [ + { + "type": "CommentBlock", + "value": "*\r\n * @type {object} A simple-keyboard instance\r\n ", + "start": 182, + "end": 244, + "loc": { + "start": { + "line": 9, + "column": 4 + }, + "end": { + "line": 11, + "column": 7 + } + } + } + ] + }, + { + "type": "ExpressionStatement", + "start": 311, + "end": 339, + "loc": { + "start": { + "line": 14, + "column": 4 + }, + "end": { + "line": 14, + "column": 32 + } + }, + "expression": { + "type": "CallExpression", + "start": 311, + "end": 338, + "loc": { + "start": { + "line": 14, + "column": 4 + }, + "end": { + "line": 14, + "column": 31 + } + }, + "callee": { + "type": "MemberExpression", + "start": 311, + "end": 336, + "loc": { + "start": { + "line": 14, + "column": 4 + }, + "end": { + "line": 14, + "column": 29 + } + }, + "object": { + "type": "ThisExpression", + "start": 311, + "end": 315, + "loc": { + "start": { + "line": 14, + "column": 4 + }, + "end": { + "line": 14, + "column": 8 + } + } + }, + "property": { + "type": "Identifier", + "start": 316, + "end": 336, + "loc": { + "start": { + "line": 14, + "column": 9 + }, + "end": { + "line": 14, + "column": 29 + }, + "identifierName": "initKeyboardListener" + }, + "name": "initKeyboardListener" + }, + "computed": false + }, + "arguments": [] + } + } + ], + "directives": [], + "trailingComments": null + }, + "leadingComments": [ + { + "type": "CommentBlock", + "value": "*\r\n * Creates an instance of the PhysicalKeyboard service\r\n ", + "start": 68, + "end": 136, + "loc": { + "start": { + "line": 5, + "column": 2 + }, + "end": { + "line": 7, + "column": 5 + } + } + } + ], + "trailingComments": [ + { + "type": "CommentBlock", + "value": "*\r\n * Initializes key event listeners\r\n ", + "start": 350, + "end": 398, + "loc": { + "start": { + "line": 17, + "column": 2 + }, + "end": { + "line": 19, + "column": 5 + } + } + } + ] + }, + { + "type": "ClassProperty", + "start": 402, + "end": 1718, + "loc": { + "start": { + "line": 20, + "column": 2 + }, + "end": { + "line": 51, + "column": 3 + } + }, + "static": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 402, + "end": 422, + "loc": { + "start": { + "line": 20, + "column": 2 + }, + "end": { + "line": 20, + "column": 22 + }, + "identifierName": "initKeyboardListener" + }, + "name": "initKeyboardListener", + "leadingComments": null + }, + "value": { + "type": "ArrowFunctionExpression", + "start": 425, + "end": 1718, + "loc": { + "start": { + "line": 20, + "column": 25 + }, + "end": { + "line": 51, + "column": 3 + } + }, + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [], + "body": { + "type": "BlockStatement", + "start": 431, + "end": 1718, + "loc": { + "start": { + "line": 20, + "column": 31 + }, + "end": { + "line": 51, + "column": 3 + } + }, + "body": [ + { + "type": "ExpressionStatement", + "start": 477, + "end": 1173, + "loc": { + "start": { + "line": 22, + "column": 4 + }, + "end": { + "line": 35, + "column": 7 + } + }, + "expression": { + "type": "CallExpression", + "start": 477, + "end": 1172, + "loc": { + "start": { + "line": 22, + "column": 4 + }, + "end": { + "line": 35, + "column": 6 + } + }, + "callee": { + "type": "MemberExpression", + "start": 477, + "end": 502, + "loc": { + "start": { + "line": 22, + "column": 4 + }, + "end": { + "line": 22, + "column": 29 + } + }, + "object": { + "type": "Identifier", + "start": 477, + "end": 485, + "loc": { + "start": { + "line": 22, + "column": 4 + }, + "end": { + "line": 22, + "column": 12 + }, + "identifierName": "document" + }, + "name": "document", + "leadingComments": null + }, + "property": { + "type": "Identifier", + "start": 486, + "end": 502, + "loc": { + "start": { + "line": 22, + "column": 13 + }, + "end": { + "line": 22, + "column": 29 + }, + "identifierName": "addEventListener" + }, + "name": "addEventListener" + }, + "computed": false, + "leadingComments": null + }, + "arguments": [ + { + "type": "StringLiteral", + "start": 503, + "end": 512, + "loc": { + "start": { + "line": 22, + "column": 30 + }, + "end": { + "line": 22, + "column": 39 + } + }, + "extra": { + "rawValue": "keydown", + "raw": "\"keydown\"" + }, + "value": "keydown" + }, + { + "type": "ArrowFunctionExpression", + "start": 514, + "end": 1171, + "loc": { + "start": { + "line": 22, + "column": 41 + }, + "end": { + "line": 35, + "column": 5 + } + }, + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 515, + "end": 520, + "loc": { + "start": { + "line": 22, + "column": 42 + }, + "end": { + "line": 22, + "column": 47 + }, + "identifierName": "event" + }, + "name": "event" + } + ], + "body": { + "type": "BlockStatement", + "start": 525, + "end": 1171, + "loc": { + "start": { + "line": 22, + "column": 52 + }, + "end": { + "line": 35, + "column": 5 + } + }, + "body": [ + { + "type": "IfStatement", + "start": 534, + "end": 1164, + "loc": { + "start": { + "line": 23, + "column": 6 + }, + "end": { + "line": 34, + "column": 7 + } + }, + "test": { + "type": "MemberExpression", + "start": 537, + "end": 598, + "loc": { + "start": { + "line": 23, + "column": 9 + }, + "end": { + "line": 23, + "column": 70 + } + }, + "object": { + "type": "MemberExpression", + "start": 537, + "end": 572, + "loc": { + "start": { + "line": 23, + "column": 9 + }, + "end": { + "line": 23, + "column": 44 + } + }, + "object": { + "type": "MemberExpression", + "start": 537, + "end": 564, + "loc": { + "start": { + "line": 23, + "column": 9 + }, + "end": { + "line": 23, + "column": 36 + } + }, + "object": { + "type": "ThisExpression", + "start": 537, + "end": 541, + "loc": { + "start": { + "line": 23, + "column": 9 + }, + "end": { + "line": 23, + "column": 13 + } + } + }, + "property": { + "type": "Identifier", + "start": 542, + "end": 564, + "loc": { + "start": { + "line": 23, + "column": 14 + }, + "end": { + "line": 23, + "column": 36 + }, + "identifierName": "simpleKeyboardInstance" + }, + "name": "simpleKeyboardInstance" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 565, + "end": 572, + "loc": { + "start": { + "line": 23, + "column": 37 + }, + "end": { + "line": 23, + "column": 44 + }, + "identifierName": "options" + }, + "name": "options" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 573, + "end": 598, + "loc": { + "start": { + "line": 23, + "column": 45 + }, + "end": { + "line": 23, + "column": 70 + }, + "identifierName": "physicalKeyboardHighlight" + }, + "name": "physicalKeyboardHighlight" + }, + "computed": false + }, + "consequent": { + "type": "BlockStatement", + "start": 599, + "end": 1164, + "loc": { + "start": { + "line": 23, + "column": 71 + }, + "end": { + "line": 34, + "column": 7 + } + }, + "body": [ + { + "type": "VariableDeclaration", + "start": 610, + "end": 669, + "loc": { + "start": { + "line": 24, + "column": 8 + }, + "end": { + "line": 24, + "column": 67 + } + }, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 614, + "end": 668, + "loc": { + "start": { + "line": 24, + "column": 12 + }, + "end": { + "line": 24, + "column": 66 + } + }, + "id": { + "type": "Identifier", + "start": 614, + "end": 627, + "loc": { + "start": { + "line": 24, + "column": 12 + }, + "end": { + "line": 24, + "column": 25 + }, + "identifierName": "buttonPressed" + }, + "name": "buttonPressed" + }, + "init": { + "type": "CallExpression", + "start": 630, + "end": 668, + "loc": { + "start": { + "line": 24, + "column": 28 + }, + "end": { + "line": 24, + "column": 66 + } + }, + "callee": { + "type": "MemberExpression", + "start": 630, + "end": 661, + "loc": { + "start": { + "line": 24, + "column": 28 + }, + "end": { + "line": 24, + "column": 59 + } + }, + "object": { + "type": "ThisExpression", + "start": 630, + "end": 634, + "loc": { + "start": { + "line": 24, + "column": 28 + }, + "end": { + "line": 24, + "column": 32 + } + } + }, + "property": { + "type": "Identifier", + "start": 635, + "end": 661, + "loc": { + "start": { + "line": 24, + "column": 33 + }, + "end": { + "line": 24, + "column": 59 + }, + "identifierName": "getSimpleKeyboardLayoutKey" + }, + "name": "getSimpleKeyboardLayoutKey" + }, + "computed": false + }, + "arguments": [ + { + "type": "Identifier", + "start": 662, + "end": 667, + "loc": { + "start": { + "line": 24, + "column": 60 + }, + "end": { + "line": 24, + "column": 65 + }, + "identifierName": "event" + }, + "name": "event" + } + ] + } + } + ], + "kind": "let" + }, + { + "type": "ExpressionStatement", + "start": 681, + "end": 1155, + "loc": { + "start": { + "line": 26, + "column": 8 + }, + "end": { + "line": 33, + "column": 11 + } + }, + "expression": { + "type": "CallExpression", + "start": 681, + "end": 1154, + "loc": { + "start": { + "line": 26, + "column": 8 + }, + "end": { + "line": 33, + "column": 10 + } + }, + "callee": { + "type": "MemberExpression", + "start": 681, + "end": 717, + "loc": { + "start": { + "line": 26, + "column": 8 + }, + "end": { + "line": 26, + "column": 44 + } + }, + "object": { + "type": "MemberExpression", + "start": 681, + "end": 708, + "loc": { + "start": { + "line": 26, + "column": 8 + }, + "end": { + "line": 26, + "column": 35 + } + }, + "object": { + "type": "ThisExpression", + "start": 681, + "end": 685, + "loc": { + "start": { + "line": 26, + "column": 8 + }, + "end": { + "line": 26, + "column": 12 + } + } + }, + "property": { + "type": "Identifier", + "start": 686, + "end": 708, + "loc": { + "start": { + "line": 26, + "column": 13 + }, + "end": { + "line": 26, + "column": 35 + }, + "identifierName": "simpleKeyboardInstance" + }, + "name": "simpleKeyboardInstance" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 709, + "end": 717, + "loc": { + "start": { + "line": 26, + "column": 36 + }, + "end": { + "line": 26, + "column": 44 + }, + "identifierName": "dispatch" + }, + "name": "dispatch" + }, + "computed": false + }, + "arguments": [ + { + "type": "ArrowFunctionExpression", + "start": 718, + "end": 1153, + "loc": { + "start": { + "line": 26, + "column": 45 + }, + "end": { + "line": 33, + "column": 9 + } + }, + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 718, + "end": 726, + "loc": { + "start": { + "line": 26, + "column": 45 + }, + "end": { + "line": 26, + "column": 53 + }, + "identifierName": "instance" + }, + "name": "instance" + } + ], + "body": { + "type": "BlockStatement", + "start": 730, + "end": 1153, + "loc": { + "start": { + "line": 26, + "column": 57 + }, + "end": { + "line": 33, + "column": 9 + } + }, + "body": [ + { + "type": "VariableDeclaration", + "start": 743, + "end": 851, + "loc": { + "start": { + "line": 27, + "column": 10 + }, + "end": { + "line": 27, + "column": 118 + } + }, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 747, + "end": 850, + "loc": { + "start": { + "line": 27, + "column": 14 + }, + "end": { + "line": 27, + "column": 117 + } + }, + "id": { + "type": "Identifier", + "start": 747, + "end": 756, + "loc": { + "start": { + "line": 27, + "column": 14 + }, + "end": { + "line": 27, + "column": 23 + }, + "identifierName": "buttonDOM" + }, + "name": "buttonDOM" + }, + "init": { + "type": "LogicalExpression", + "start": 759, + "end": 850, + "loc": { + "start": { + "line": 27, + "column": 26 + }, + "end": { + "line": 27, + "column": 117 + } + }, + "left": { + "type": "CallExpression", + "start": 759, + "end": 799, + "loc": { + "start": { + "line": 27, + "column": 26 + }, + "end": { + "line": 27, + "column": 66 + } + }, + "callee": { + "type": "MemberExpression", + "start": 759, + "end": 784, + "loc": { + "start": { + "line": 27, + "column": 26 + }, + "end": { + "line": 27, + "column": 51 + } + }, + "object": { + "type": "Identifier", + "start": 759, + "end": 767, + "loc": { + "start": { + "line": 27, + "column": 26 + }, + "end": { + "line": 27, + "column": 34 + }, + "identifierName": "instance" + }, + "name": "instance" + }, + "property": { + "type": "Identifier", + "start": 768, + "end": 784, + "loc": { + "start": { + "line": 27, + "column": 35 + }, + "end": { + "line": 27, + "column": 51 + }, + "identifierName": "getButtonElement" + }, + "name": "getButtonElement" + }, + "computed": false + }, + "arguments": [ + { + "type": "Identifier", + "start": 785, + "end": 798, + "loc": { + "start": { + "line": 27, + "column": 52 + }, + "end": { + "line": 27, + "column": 65 + }, + "identifierName": "buttonPressed" + }, + "name": "buttonPressed" + } + ] + }, + "operator": "||", + "right": { + "type": "CallExpression", + "start": 803, + "end": 850, + "loc": { + "start": { + "line": 27, + "column": 70 + }, + "end": { + "line": 27, + "column": 117 + } + }, + "callee": { + "type": "MemberExpression", + "start": 803, + "end": 828, + "loc": { + "start": { + "line": 27, + "column": 70 + }, + "end": { + "line": 27, + "column": 95 + } + }, + "object": { + "type": "Identifier", + "start": 803, + "end": 811, + "loc": { + "start": { + "line": 27, + "column": 70 + }, + "end": { + "line": 27, + "column": 78 + }, + "identifierName": "instance" + }, + "name": "instance" + }, + "property": { + "type": "Identifier", + "start": 812, + "end": 828, + "loc": { + "start": { + "line": 27, + "column": 79 + }, + "end": { + "line": 27, + "column": 95 + }, + "identifierName": "getButtonElement" + }, + "name": "getButtonElement" + }, + "computed": false + }, + "arguments": [ + { + "type": "TemplateLiteral", + "start": 829, + "end": 849, + "loc": { + "start": { + "line": 27, + "column": 96 + }, + "end": { + "line": 27, + "column": 116 + } + }, + "expressions": [ + { + "type": "Identifier", + "start": 833, + "end": 846, + "loc": { + "start": { + "line": 27, + "column": 100 + }, + "end": { + "line": 27, + "column": 113 + }, + "identifierName": "buttonPressed" + }, + "name": "buttonPressed" + } + ], + "quasis": [ + { + "type": "TemplateElement", + "start": 830, + "end": 831, + "loc": { + "start": { + "line": 27, + "column": 97 + }, + "end": { + "line": 27, + "column": 98 + } + }, + "value": { + "raw": "{", + "cooked": "{" + }, + "tail": false + }, + { + "type": "TemplateElement", + "start": 847, + "end": 848, + "loc": { + "start": { + "line": 27, + "column": 114 + }, + "end": { + "line": 27, + "column": 115 + } + }, + "value": { + "raw": "}", + "cooked": "}" + }, + "tail": true + } + ] + } + ] + } + } + } + ], + "kind": "let" + }, + { + "type": "IfStatement", + "start": 865, + "end": 1142, + "loc": { + "start": { + "line": 29, + "column": 10 + }, + "end": { + "line": 32, + "column": 11 + } + }, + "test": { + "type": "Identifier", + "start": 868, + "end": 877, + "loc": { + "start": { + "line": 29, + "column": 13 + }, + "end": { + "line": 29, + "column": 22 + }, + "identifierName": "buttonDOM" + }, + "name": "buttonDOM" + }, + "consequent": { + "type": "BlockStatement", + "start": 878, + "end": 1142, + "loc": { + "start": { + "line": 29, + "column": 23 + }, + "end": { + "line": 32, + "column": 11 + } + }, + "body": [ + { + "type": "ExpressionStatement", + "start": 893, + "end": 1009, + "loc": { + "start": { + "line": 30, + "column": 12 + }, + "end": { + "line": 30, + "column": 128 + } + }, + "expression": { + "type": "AssignmentExpression", + "start": 893, + "end": 1008, + "loc": { + "start": { + "line": 30, + "column": 12 + }, + "end": { + "line": 30, + "column": 127 + } + }, + "operator": "=", + "left": { + "type": "MemberExpression", + "start": 893, + "end": 924, + "loc": { + "start": { + "line": 30, + "column": 12 + }, + "end": { + "line": 30, + "column": 43 + } + }, + "object": { + "type": "MemberExpression", + "start": 893, + "end": 908, + "loc": { + "start": { + "line": 30, + "column": 12 + }, + "end": { + "line": 30, + "column": 27 + } + }, + "object": { + "type": "Identifier", + "start": 893, + "end": 902, + "loc": { + "start": { + "line": 30, + "column": 12 + }, + "end": { + "line": 30, + "column": 21 + }, + "identifierName": "buttonDOM" + }, + "name": "buttonDOM" + }, + "property": { + "type": "Identifier", + "start": 903, + "end": 908, + "loc": { + "start": { + "line": 30, + "column": 22 + }, + "end": { + "line": 30, + "column": 27 + }, + "identifierName": "style" + }, + "name": "style" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 909, + "end": 924, + "loc": { + "start": { + "line": 30, + "column": 28 + }, + "end": { + "line": 30, + "column": 43 + }, + "identifierName": "backgroundColor" + }, + "name": "backgroundColor" + }, + "computed": false + }, + "right": { + "type": "LogicalExpression", + "start": 927, + "end": 1008, + "loc": { + "start": { + "line": 30, + "column": 46 + }, + "end": { + "line": 30, + "column": 127 + } + }, + "left": { + "type": "MemberExpression", + "start": 927, + "end": 995, + "loc": { + "start": { + "line": 30, + "column": 46 + }, + "end": { + "line": 30, + "column": 114 + } + }, + "object": { + "type": "MemberExpression", + "start": 927, + "end": 962, + "loc": { + "start": { + "line": 30, + "column": 46 + }, + "end": { + "line": 30, + "column": 81 + } + }, + "object": { + "type": "MemberExpression", + "start": 927, + "end": 954, + "loc": { + "start": { + "line": 30, + "column": 46 + }, + "end": { + "line": 30, + "column": 73 + } + }, + "object": { + "type": "ThisExpression", + "start": 927, + "end": 931, + "loc": { + "start": { + "line": 30, + "column": 46 + }, + "end": { + "line": 30, + "column": 50 + } + } + }, + "property": { + "type": "Identifier", + "start": 932, + "end": 954, + "loc": { + "start": { + "line": 30, + "column": 51 + }, + "end": { + "line": 30, + "column": 73 + }, + "identifierName": "simpleKeyboardInstance" + }, + "name": "simpleKeyboardInstance" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 955, + "end": 962, + "loc": { + "start": { + "line": 30, + "column": 74 + }, + "end": { + "line": 30, + "column": 81 + }, + "identifierName": "options" + }, + "name": "options" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 963, + "end": 995, + "loc": { + "start": { + "line": 30, + "column": 82 + }, + "end": { + "line": 30, + "column": 114 + }, + "identifierName": "physicalKeyboardHighlightBgColor" + }, + "name": "physicalKeyboardHighlightBgColor" + }, + "computed": false + }, + "operator": "||", + "right": { + "type": "StringLiteral", + "start": 999, + "end": 1008, + "loc": { + "start": { + "line": 30, + "column": 118 + }, + "end": { + "line": 30, + "column": 127 + } + }, + "extra": { + "rawValue": "#9ab4d0", + "raw": "\"#9ab4d0\"" + }, + "value": "#9ab4d0" + } + } + } + }, + { + "type": "ExpressionStatement", + "start": 1023, + "end": 1129, + "loc": { + "start": { + "line": 31, + "column": 12 + }, + "end": { + "line": 31, + "column": 118 + } + }, + "expression": { + "type": "AssignmentExpression", + "start": 1023, + "end": 1128, + "loc": { + "start": { + "line": 31, + "column": 12 + }, + "end": { + "line": 31, + "column": 117 + } + }, + "operator": "=", + "left": { + "type": "MemberExpression", + "start": 1023, + "end": 1044, + "loc": { + "start": { + "line": 31, + "column": 12 + }, + "end": { + "line": 31, + "column": 33 + } + }, + "object": { + "type": "MemberExpression", + "start": 1023, + "end": 1038, + "loc": { + "start": { + "line": 31, + "column": 12 + }, + "end": { + "line": 31, + "column": 27 + } + }, + "object": { + "type": "Identifier", + "start": 1023, + "end": 1032, + "loc": { + "start": { + "line": 31, + "column": 12 + }, + "end": { + "line": 31, + "column": 21 + }, + "identifierName": "buttonDOM" + }, + "name": "buttonDOM" + }, + "property": { + "type": "Identifier", + "start": 1033, + "end": 1038, + "loc": { + "start": { + "line": 31, + "column": 22 + }, + "end": { + "line": 31, + "column": 27 + }, + "identifierName": "style" + }, + "name": "style" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 1039, + "end": 1044, + "loc": { + "start": { + "line": 31, + "column": 28 + }, + "end": { + "line": 31, + "column": 33 + }, + "identifierName": "color" + }, + "name": "color" + }, + "computed": false + }, + "right": { + "type": "LogicalExpression", + "start": 1047, + "end": 1128, + "loc": { + "start": { + "line": 31, + "column": 36 + }, + "end": { + "line": 31, + "column": 117 + } + }, + "left": { + "type": "MemberExpression", + "start": 1047, + "end": 1117, + "loc": { + "start": { + "line": 31, + "column": 36 + }, + "end": { + "line": 31, + "column": 106 + } + }, + "object": { + "type": "MemberExpression", + "start": 1047, + "end": 1082, + "loc": { + "start": { + "line": 31, + "column": 36 + }, + "end": { + "line": 31, + "column": 71 + } + }, + "object": { + "type": "MemberExpression", + "start": 1047, + "end": 1074, + "loc": { + "start": { + "line": 31, + "column": 36 + }, + "end": { + "line": 31, + "column": 63 + } + }, + "object": { + "type": "ThisExpression", + "start": 1047, + "end": 1051, + "loc": { + "start": { + "line": 31, + "column": 36 + }, + "end": { + "line": 31, + "column": 40 + } + } + }, + "property": { + "type": "Identifier", + "start": 1052, + "end": 1074, + "loc": { + "start": { + "line": 31, + "column": 41 + }, + "end": { + "line": 31, + "column": 63 + }, + "identifierName": "simpleKeyboardInstance" + }, + "name": "simpleKeyboardInstance" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 1075, + "end": 1082, + "loc": { + "start": { + "line": 31, + "column": 64 + }, + "end": { + "line": 31, + "column": 71 + }, + "identifierName": "options" + }, + "name": "options" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 1083, + "end": 1117, + "loc": { + "start": { + "line": 31, + "column": 72 + }, + "end": { + "line": 31, + "column": 106 + }, + "identifierName": "physicalKeyboardHighlightTextColor" + }, + "name": "physicalKeyboardHighlightTextColor" + }, + "computed": false + }, + "operator": "||", + "right": { + "type": "StringLiteral", + "start": 1121, + "end": 1128, + "loc": { + "start": { + "line": 31, + "column": 110 + }, + "end": { + "line": 31, + "column": 117 + } + }, + "extra": { + "rawValue": "white", + "raw": "\"white\"" + }, + "value": "white" + } + } + } + } + ], + "directives": [] + }, + "alternate": null + } + ], + "directives": [] + } + } + ] + } + } + ], + "directives": [] + }, + "alternate": null + } + ], + "directives": [] + } + } + ], + "leadingComments": null + }, + "leadingComments": [ + { + "type": "CommentLine", + "value": " Adding button style on keydown", + "start": 438, + "end": 471, + "loc": { + "start": { + "line": 21, + "column": 4 + }, + "end": { + "line": 21, + "column": 37 + } + } + } + ], + "trailingComments": [ + { + "type": "CommentLine", + "value": " Removing button style on keyup", + "start": 1181, + "end": 1214, + "loc": { + "start": { + "line": 37, + "column": 4 + }, + "end": { + "line": 37, + "column": 37 + } + } + } + ] + }, + { + "type": "ExpressionStatement", + "start": 1220, + "end": 1713, + "loc": { + "start": { + "line": 38, + "column": 4 + }, + "end": { + "line": 50, + "column": 7 + } + }, + "expression": { + "type": "CallExpression", + "start": 1220, + "end": 1712, + "loc": { + "start": { + "line": 38, + "column": 4 + }, + "end": { + "line": 50, + "column": 6 + } + }, + "callee": { + "type": "MemberExpression", + "start": 1220, + "end": 1245, + "loc": { + "start": { + "line": 38, + "column": 4 + }, + "end": { + "line": 38, + "column": 29 + } + }, + "object": { + "type": "Identifier", + "start": 1220, + "end": 1228, + "loc": { + "start": { + "line": 38, + "column": 4 + }, + "end": { + "line": 38, + "column": 12 + }, + "identifierName": "document" + }, + "name": "document", + "leadingComments": null + }, + "property": { + "type": "Identifier", + "start": 1229, + "end": 1245, + "loc": { + "start": { + "line": 38, + "column": 13 + }, + "end": { + "line": 38, + "column": 29 + }, + "identifierName": "addEventListener" + }, + "name": "addEventListener" + }, + "computed": false, + "leadingComments": null + }, + "arguments": [ + { + "type": "StringLiteral", + "start": 1246, + "end": 1253, + "loc": { + "start": { + "line": 38, + "column": 30 + }, + "end": { + "line": 38, + "column": 37 + } + }, + "extra": { + "rawValue": "keyup", + "raw": "\"keyup\"" + }, + "value": "keyup" + }, + { + "type": "ArrowFunctionExpression", + "start": 1255, + "end": 1711, + "loc": { + "start": { + "line": 38, + "column": 39 + }, + "end": { + "line": 50, + "column": 5 + } + }, + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 1256, + "end": 1261, + "loc": { + "start": { + "line": 38, + "column": 40 + }, + "end": { + "line": 38, + "column": 45 + }, + "identifierName": "event" + }, + "name": "event" + } + ], + "body": { + "type": "BlockStatement", + "start": 1266, + "end": 1711, + "loc": { + "start": { + "line": 38, + "column": 50 + }, + "end": { + "line": 50, + "column": 5 + } + }, + "body": [ + { + "type": "IfStatement", + "start": 1275, + "end": 1704, + "loc": { + "start": { + "line": 39, + "column": 6 + }, + "end": { + "line": 49, + "column": 7 + } + }, + "test": { + "type": "MemberExpression", + "start": 1278, + "end": 1339, + "loc": { + "start": { + "line": 39, + "column": 9 + }, + "end": { + "line": 39, + "column": 70 + } + }, + "object": { + "type": "MemberExpression", + "start": 1278, + "end": 1313, + "loc": { + "start": { + "line": 39, + "column": 9 + }, + "end": { + "line": 39, + "column": 44 + } + }, + "object": { + "type": "MemberExpression", + "start": 1278, + "end": 1305, + "loc": { + "start": { + "line": 39, + "column": 9 + }, + "end": { + "line": 39, + "column": 36 + } + }, + "object": { + "type": "ThisExpression", + "start": 1278, + "end": 1282, + "loc": { + "start": { + "line": 39, + "column": 9 + }, + "end": { + "line": 39, + "column": 13 + } + } + }, + "property": { + "type": "Identifier", + "start": 1283, + "end": 1305, + "loc": { + "start": { + "line": 39, + "column": 14 + }, + "end": { + "line": 39, + "column": 36 + }, + "identifierName": "simpleKeyboardInstance" + }, + "name": "simpleKeyboardInstance" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 1306, + "end": 1313, + "loc": { + "start": { + "line": 39, + "column": 37 + }, + "end": { + "line": 39, + "column": 44 + }, + "identifierName": "options" + }, + "name": "options" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 1314, + "end": 1339, + "loc": { + "start": { + "line": 39, + "column": 45 + }, + "end": { + "line": 39, + "column": 70 + }, + "identifierName": "physicalKeyboardHighlight" + }, + "name": "physicalKeyboardHighlight" + }, + "computed": false + }, + "consequent": { + "type": "BlockStatement", + "start": 1340, + "end": 1704, + "loc": { + "start": { + "line": 39, + "column": 71 + }, + "end": { + "line": 49, + "column": 7 + } + }, + "body": [ + { + "type": "VariableDeclaration", + "start": 1351, + "end": 1410, + "loc": { + "start": { + "line": 40, + "column": 8 + }, + "end": { + "line": 40, + "column": 67 + } + }, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 1355, + "end": 1409, + "loc": { + "start": { + "line": 40, + "column": 12 + }, + "end": { + "line": 40, + "column": 66 + } + }, + "id": { + "type": "Identifier", + "start": 1355, + "end": 1368, + "loc": { + "start": { + "line": 40, + "column": 12 + }, + "end": { + "line": 40, + "column": 25 + }, + "identifierName": "buttonPressed" + }, + "name": "buttonPressed" + }, + "init": { + "type": "CallExpression", + "start": 1371, + "end": 1409, + "loc": { + "start": { + "line": 40, + "column": 28 + }, + "end": { + "line": 40, + "column": 66 + } + }, + "callee": { + "type": "MemberExpression", + "start": 1371, + "end": 1402, + "loc": { + "start": { + "line": 40, + "column": 28 + }, + "end": { + "line": 40, + "column": 59 + } + }, + "object": { + "type": "ThisExpression", + "start": 1371, + "end": 1375, + "loc": { + "start": { + "line": 40, + "column": 28 + }, + "end": { + "line": 40, + "column": 32 + } + } + }, + "property": { + "type": "Identifier", + "start": 1376, + "end": 1402, + "loc": { + "start": { + "line": 40, + "column": 33 + }, + "end": { + "line": 40, + "column": 59 + }, + "identifierName": "getSimpleKeyboardLayoutKey" + }, + "name": "getSimpleKeyboardLayoutKey" + }, + "computed": false + }, + "arguments": [ + { + "type": "Identifier", + "start": 1403, + "end": 1408, + "loc": { + "start": { + "line": 40, + "column": 60 + }, + "end": { + "line": 40, + "column": 65 + }, + "identifierName": "event" + }, + "name": "event" + } + ] + } + } + ], + "kind": "let" + }, + { + "type": "ExpressionStatement", + "start": 1422, + "end": 1695, + "loc": { + "start": { + "line": 42, + "column": 8 + }, + "end": { + "line": 48, + "column": 11 + } + }, + "expression": { + "type": "CallExpression", + "start": 1422, + "end": 1694, + "loc": { + "start": { + "line": 42, + "column": 8 + }, + "end": { + "line": 48, + "column": 10 + } + }, + "callee": { + "type": "MemberExpression", + "start": 1422, + "end": 1458, + "loc": { + "start": { + "line": 42, + "column": 8 + }, + "end": { + "line": 42, + "column": 44 + } + }, + "object": { + "type": "MemberExpression", + "start": 1422, + "end": 1449, + "loc": { + "start": { + "line": 42, + "column": 8 + }, + "end": { + "line": 42, + "column": 35 + } + }, + "object": { + "type": "ThisExpression", + "start": 1422, + "end": 1426, + "loc": { + "start": { + "line": 42, + "column": 8 + }, + "end": { + "line": 42, + "column": 12 + } + } + }, + "property": { + "type": "Identifier", + "start": 1427, + "end": 1449, + "loc": { + "start": { + "line": 42, + "column": 13 + }, + "end": { + "line": 42, + "column": 35 + }, + "identifierName": "simpleKeyboardInstance" + }, + "name": "simpleKeyboardInstance" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 1450, + "end": 1458, + "loc": { + "start": { + "line": 42, + "column": 36 + }, + "end": { + "line": 42, + "column": 44 + }, + "identifierName": "dispatch" + }, + "name": "dispatch" + }, + "computed": false + }, + "arguments": [ + { + "type": "ArrowFunctionExpression", + "start": 1459, + "end": 1693, + "loc": { + "start": { + "line": 42, + "column": 45 + }, + "end": { + "line": 48, + "column": 9 + } + }, + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 1459, + "end": 1467, + "loc": { + "start": { + "line": 42, + "column": 45 + }, + "end": { + "line": 42, + "column": 53 + }, + "identifierName": "instance" + }, + "name": "instance" + } + ], + "body": { + "type": "BlockStatement", + "start": 1471, + "end": 1693, + "loc": { + "start": { + "line": 42, + "column": 57 + }, + "end": { + "line": 48, + "column": 9 + } + }, + "body": [ + { + "type": "VariableDeclaration", + "start": 1484, + "end": 1592, + "loc": { + "start": { + "line": 43, + "column": 10 + }, + "end": { + "line": 43, + "column": 118 + } + }, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 1488, + "end": 1591, + "loc": { + "start": { + "line": 43, + "column": 14 + }, + "end": { + "line": 43, + "column": 117 + } + }, + "id": { + "type": "Identifier", + "start": 1488, + "end": 1497, + "loc": { + "start": { + "line": 43, + "column": 14 + }, + "end": { + "line": 43, + "column": 23 + }, + "identifierName": "buttonDOM" + }, + "name": "buttonDOM" + }, + "init": { + "type": "LogicalExpression", + "start": 1500, + "end": 1591, + "loc": { + "start": { + "line": 43, + "column": 26 + }, + "end": { + "line": 43, + "column": 117 + } + }, + "left": { + "type": "CallExpression", + "start": 1500, + "end": 1540, + "loc": { + "start": { + "line": 43, + "column": 26 + }, + "end": { + "line": 43, + "column": 66 + } + }, + "callee": { + "type": "MemberExpression", + "start": 1500, + "end": 1525, + "loc": { + "start": { + "line": 43, + "column": 26 + }, + "end": { + "line": 43, + "column": 51 + } + }, + "object": { + "type": "Identifier", + "start": 1500, + "end": 1508, + "loc": { + "start": { + "line": 43, + "column": 26 + }, + "end": { + "line": 43, + "column": 34 + }, + "identifierName": "instance" + }, + "name": "instance" + }, + "property": { + "type": "Identifier", + "start": 1509, + "end": 1525, + "loc": { + "start": { + "line": 43, + "column": 35 + }, + "end": { + "line": 43, + "column": 51 + }, + "identifierName": "getButtonElement" + }, + "name": "getButtonElement" + }, + "computed": false + }, + "arguments": [ + { + "type": "Identifier", + "start": 1526, + "end": 1539, + "loc": { + "start": { + "line": 43, + "column": 52 + }, + "end": { + "line": 43, + "column": 65 + }, + "identifierName": "buttonPressed" + }, + "name": "buttonPressed" + } + ] + }, + "operator": "||", + "right": { + "type": "CallExpression", + "start": 1544, + "end": 1591, + "loc": { + "start": { + "line": 43, + "column": 70 + }, + "end": { + "line": 43, + "column": 117 + } + }, + "callee": { + "type": "MemberExpression", + "start": 1544, + "end": 1569, + "loc": { + "start": { + "line": 43, + "column": 70 + }, + "end": { + "line": 43, + "column": 95 + } + }, + "object": { + "type": "Identifier", + "start": 1544, + "end": 1552, + "loc": { + "start": { + "line": 43, + "column": 70 + }, + "end": { + "line": 43, + "column": 78 + }, + "identifierName": "instance" + }, + "name": "instance" + }, + "property": { + "type": "Identifier", + "start": 1553, + "end": 1569, + "loc": { + "start": { + "line": 43, + "column": 79 + }, + "end": { + "line": 43, + "column": 95 + }, + "identifierName": "getButtonElement" + }, + "name": "getButtonElement" + }, + "computed": false + }, + "arguments": [ + { + "type": "TemplateLiteral", + "start": 1570, + "end": 1590, + "loc": { + "start": { + "line": 43, + "column": 96 + }, + "end": { + "line": 43, + "column": 116 + } + }, + "expressions": [ + { + "type": "Identifier", + "start": 1574, + "end": 1587, + "loc": { + "start": { + "line": 43, + "column": 100 + }, + "end": { + "line": 43, + "column": 113 + }, + "identifierName": "buttonPressed" + }, + "name": "buttonPressed" + } + ], + "quasis": [ + { + "type": "TemplateElement", + "start": 1571, + "end": 1572, + "loc": { + "start": { + "line": 43, + "column": 97 + }, + "end": { + "line": 43, + "column": 98 + } + }, + "value": { + "raw": "{", + "cooked": "{" + }, + "tail": false + }, + { + "type": "TemplateElement", + "start": 1588, + "end": 1589, + "loc": { + "start": { + "line": 43, + "column": 114 + }, + "end": { + "line": 43, + "column": 115 + } + }, + "value": { + "raw": "}", + "cooked": "}" + }, + "tail": true + } + ] + } + ] + } + } + } + ], + "kind": "let" + }, + { + "type": "IfStatement", + "start": 1606, + "end": 1682, + "loc": { + "start": { + "line": 45, + "column": 10 + }, + "end": { + "line": 47, + "column": 11 + } + }, + "test": { + "type": "Identifier", + "start": 1609, + "end": 1618, + "loc": { + "start": { + "line": 45, + "column": 13 + }, + "end": { + "line": 45, + "column": 22 + }, + "identifierName": "buttonDOM" + }, + "name": "buttonDOM" + }, + "consequent": { + "type": "BlockStatement", + "start": 1619, + "end": 1682, + "loc": { + "start": { + "line": 45, + "column": 23 + }, + "end": { + "line": 47, + "column": 11 + } + }, + "body": [ + { + "type": "ExpressionStatement", + "start": 1634, + "end": 1669, + "loc": { + "start": { + "line": 46, + "column": 12 + }, + "end": { + "line": 46, + "column": 47 + } + }, + "expression": { + "type": "CallExpression", + "start": 1634, + "end": 1668, + "loc": { + "start": { + "line": 46, + "column": 12 + }, + "end": { + "line": 46, + "column": 46 + } + }, + "callee": { + "type": "MemberExpression", + "start": 1634, + "end": 1659, + "loc": { + "start": { + "line": 46, + "column": 12 + }, + "end": { + "line": 46, + "column": 37 + } + }, + "object": { + "type": "Identifier", + "start": 1634, + "end": 1643, + "loc": { + "start": { + "line": 46, + "column": 12 + }, + "end": { + "line": 46, + "column": 21 + }, + "identifierName": "buttonDOM" + }, + "name": "buttonDOM" + }, + "property": { + "type": "Identifier", + "start": 1644, + "end": 1659, + "loc": { + "start": { + "line": 46, + "column": 22 + }, + "end": { + "line": 46, + "column": 37 + }, + "identifierName": "removeAttribute" + }, + "name": "removeAttribute" + }, + "computed": false + }, + "arguments": [ + { + "type": "StringLiteral", + "start": 1660, + "end": 1667, + "loc": { + "start": { + "line": 46, + "column": 38 + }, + "end": { + "line": 46, + "column": 45 + } + }, + "extra": { + "rawValue": "style", + "raw": "\"style\"" + }, + "value": "style" + } + ] + } + } + ], + "directives": [] + }, + "alternate": null + } + ], + "directives": [] + } + } + ] + } + } + ], + "directives": [] + }, + "alternate": null + } + ], + "directives": [] + } + } + ], + "leadingComments": null + }, + "leadingComments": [ + { + "type": "CommentLine", + "value": " Removing button style on keyup", + "start": 1181, + "end": 1214, + "loc": { + "start": { + "line": 37, + "column": 4 + }, + "end": { + "line": 37, + "column": 37 + } + } + } + ] + } + ], + "directives": [], + "trailingComments": null + }, + "trailingComments": null + }, + "leadingComments": [ + { + "type": "CommentBlock", + "value": "*\r\n * Initializes key event listeners\r\n ", + "start": 350, + "end": 398, + "loc": { + "start": { + "line": 17, + "column": 2 + }, + "end": { + "line": 19, + "column": 5 + } + } + } + ], + "trailingComments": [ + { + "type": "CommentBlock", + "value": "*\r\n * Transforms a KeyboardEvent's \"key.code\" string into a simple-keyboard layout format\r\n * @param {object} event The KeyboardEvent\r\n ", + "start": 1724, + "end": 1871, + "loc": { + "start": { + "line": 53, + "column": 2 + }, + "end": { + "line": 56, + "column": 5 + } + } + } + ] + }, + { + "type": "ClassProperty", + "start": 1875, + "end": 2704, + "loc": { + "start": { + "line": 57, + "column": 2 + }, + "end": { + "line": 89, + "column": 3 + } + }, + "static": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 1875, + "end": 1901, + "loc": { + "start": { + "line": 57, + "column": 2 + }, + "end": { + "line": 57, + "column": 28 + }, + "identifierName": "getSimpleKeyboardLayoutKey" + }, + "name": "getSimpleKeyboardLayoutKey", + "leadingComments": null + }, + "value": { + "type": "ArrowFunctionExpression", + "start": 1904, + "end": 2704, + "loc": { + "start": { + "line": 57, + "column": 31 + }, + "end": { + "line": 89, + "column": 3 + } + }, + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 1905, + "end": 1910, + "loc": { + "start": { + "line": 57, + "column": 32 + }, + "end": { + "line": 57, + "column": 37 + }, + "identifierName": "event" + }, + "name": "event" + } + ], + "body": { + "type": "BlockStatement", + "start": 1915, + "end": 2704, + "loc": { + "start": { + "line": 57, + "column": 42 + }, + "end": { + "line": 89, + "column": 3 + } + }, + "body": [ + { + "type": "IfStatement", + "start": 1922, + "end": 2002, + "loc": { + "start": { + "line": 58, + "column": 4 + }, + "end": { + "line": 60, + "column": 5 + } + }, + "test": { + "type": "MemberExpression", + "start": 1925, + "end": 1966, + "loc": { + "start": { + "line": 58, + "column": 7 + }, + "end": { + "line": 58, + "column": 48 + } + }, + "object": { + "type": "MemberExpression", + "start": 1925, + "end": 1960, + "loc": { + "start": { + "line": 58, + "column": 7 + }, + "end": { + "line": 58, + "column": 42 + } + }, + "object": { + "type": "MemberExpression", + "start": 1925, + "end": 1952, + "loc": { + "start": { + "line": 58, + "column": 7 + }, + "end": { + "line": 58, + "column": 34 + } + }, + "object": { + "type": "ThisExpression", + "start": 1925, + "end": 1929, + "loc": { + "start": { + "line": 58, + "column": 7 + }, + "end": { + "line": 58, + "column": 11 + } + } + }, + "property": { + "type": "Identifier", + "start": 1930, + "end": 1952, + "loc": { + "start": { + "line": 58, + "column": 12 + }, + "end": { + "line": 58, + "column": 34 + }, + "identifierName": "simpleKeyboardInstance" + }, + "name": "simpleKeyboardInstance" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 1953, + "end": 1960, + "loc": { + "start": { + "line": 58, + "column": 35 + }, + "end": { + "line": 58, + "column": 42 + }, + "identifierName": "options" + }, + "name": "options" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 1961, + "end": 1966, + "loc": { + "start": { + "line": 58, + "column": 43 + }, + "end": { + "line": 58, + "column": 48 + }, + "identifierName": "debug" + }, + "name": "debug" + }, + "computed": false + }, + "consequent": { + "type": "BlockStatement", + "start": 1967, + "end": 2002, + "loc": { + "start": { + "line": 58, + "column": 49 + }, + "end": { + "line": 60, + "column": 5 + } + }, + "body": [ + { + "type": "ExpressionStatement", + "start": 1976, + "end": 1995, + "loc": { + "start": { + "line": 59, + "column": 6 + }, + "end": { + "line": 59, + "column": 25 + } + }, + "expression": { + "type": "CallExpression", + "start": 1976, + "end": 1994, + "loc": { + "start": { + "line": 59, + "column": 6 + }, + "end": { + "line": 59, + "column": 24 + } + }, + "callee": { + "type": "MemberExpression", + "start": 1976, + "end": 1987, + "loc": { + "start": { + "line": 59, + "column": 6 + }, + "end": { + "line": 59, + "column": 17 + } + }, + "object": { + "type": "Identifier", + "start": 1976, + "end": 1983, + "loc": { + "start": { + "line": 59, + "column": 6 + }, + "end": { + "line": 59, + "column": 13 + }, + "identifierName": "console" + }, + "name": "console" + }, + "property": { + "type": "Identifier", + "start": 1984, + "end": 1987, + "loc": { + "start": { + "line": 59, + "column": 14 + }, + "end": { + "line": 59, + "column": 17 + }, + "identifierName": "log" + }, + "name": "log" + }, + "computed": false + }, + "arguments": [ + { + "type": "Identifier", + "start": 1988, + "end": 1993, + "loc": { + "start": { + "line": 59, + "column": 18 + }, + "end": { + "line": 59, + "column": 23 + }, + "identifierName": "event" + }, + "name": "event" + } + ] + } + } + ], + "directives": [] + }, + "alternate": null + }, + { + "type": "VariableDeclaration", + "start": 2014, + "end": 2025, + "loc": { + "start": { + "line": 62, + "column": 4 + }, + "end": { + "line": 62, + "column": 15 + } + }, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 2018, + "end": 2024, + "loc": { + "start": { + "line": 62, + "column": 8 + }, + "end": { + "line": 62, + "column": 14 + } + }, + "id": { + "type": "Identifier", + "start": 2018, + "end": 2024, + "loc": { + "start": { + "line": 62, + "column": 8 + }, + "end": { + "line": 62, + "column": 14 + }, + "identifierName": "output" + }, + "name": "output" + }, + "init": null + } + ], + "kind": "let" + }, + { + "type": "IfStatement", + "start": 2033, + "end": 2394, + "loc": { + "start": { + "line": 64, + "column": 4 + }, + "end": { + "line": 76, + "column": 5 + } + }, + "test": { + "type": "LogicalExpression", + "start": 2044, + "end": 2310, + "loc": { + "start": { + "line": 65, + "column": 6 + }, + "end": { + "line": 71, + "column": 33 + } + }, + "left": { + "type": "LogicalExpression", + "start": 2044, + "end": 2272, + "loc": { + "start": { + "line": 65, + "column": 6 + }, + "end": { + "line": 70, + "column": 32 + } + }, + "left": { + "type": "LogicalExpression", + "start": 2044, + "end": 2235, + "loc": { + "start": { + "line": 65, + "column": 6 + }, + "end": { + "line": 69, + "column": 36 + } + }, + "left": { + "type": "LogicalExpression", + "start": 2044, + "end": 2194, + "loc": { + "start": { + "line": 65, + "column": 6 + }, + "end": { + "line": 68, + "column": 38 + } + }, + "left": { + "type": "LogicalExpression", + "start": 2044, + "end": 2151, + "loc": { + "start": { + "line": 65, + "column": 6 + }, + "end": { + "line": 67, + "column": 34 + } + }, + "left": { + "type": "LogicalExpression", + "start": 2044, + "end": 2112, + "loc": { + "start": { + "line": 65, + "column": 6 + }, + "end": { + "line": 66, + "column": 34 + } + }, + "left": { + "type": "CallExpression", + "start": 2044, + "end": 2073, + "loc": { + "start": { + "line": 65, + "column": 6 + }, + "end": { + "line": 65, + "column": 35 + } + }, + "callee": { + "type": "MemberExpression", + "start": 2044, + "end": 2063, + "loc": { + "start": { + "line": 65, + "column": 6 + }, + "end": { + "line": 65, + "column": 25 + } + }, + "object": { + "type": "MemberExpression", + "start": 2044, + "end": 2054, + "loc": { + "start": { + "line": 65, + "column": 6 + }, + "end": { + "line": 65, + "column": 16 + } + }, + "object": { + "type": "Identifier", + "start": 2044, + "end": 2049, + "loc": { + "start": { + "line": 65, + "column": 6 + }, + "end": { + "line": 65, + "column": 11 + }, + "identifierName": "event" + }, + "name": "event" + }, + "property": { + "type": "Identifier", + "start": 2050, + "end": 2054, + "loc": { + "start": { + "line": 65, + "column": 12 + }, + "end": { + "line": 65, + "column": 16 + }, + "identifierName": "code" + }, + "name": "code" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 2055, + "end": 2063, + "loc": { + "start": { + "line": 65, + "column": 17 + }, + "end": { + "line": 65, + "column": 25 + }, + "identifierName": "includes" + }, + "name": "includes" + }, + "computed": false + }, + "arguments": [ + { + "type": "StringLiteral", + "start": 2064, + "end": 2072, + "loc": { + "start": { + "line": 65, + "column": 26 + }, + "end": { + "line": 65, + "column": 34 + } + }, + "extra": { + "rawValue": "Numpad", + "raw": "\"Numpad\"" + }, + "value": "Numpad" + } + ] + }, + "operator": "||", + "right": { + "type": "CallExpression", + "start": 2084, + "end": 2112, + "loc": { + "start": { + "line": 66, + "column": 6 + }, + "end": { + "line": 66, + "column": 34 + } + }, + "callee": { + "type": "MemberExpression", + "start": 2084, + "end": 2103, + "loc": { + "start": { + "line": 66, + "column": 6 + }, + "end": { + "line": 66, + "column": 25 + } + }, + "object": { + "type": "MemberExpression", + "start": 2084, + "end": 2094, + "loc": { + "start": { + "line": 66, + "column": 6 + }, + "end": { + "line": 66, + "column": 16 + } + }, + "object": { + "type": "Identifier", + "start": 2084, + "end": 2089, + "loc": { + "start": { + "line": 66, + "column": 6 + }, + "end": { + "line": 66, + "column": 11 + }, + "identifierName": "event" + }, + "name": "event" + }, + "property": { + "type": "Identifier", + "start": 2090, + "end": 2094, + "loc": { + "start": { + "line": 66, + "column": 12 + }, + "end": { + "line": 66, + "column": 16 + }, + "identifierName": "code" + }, + "name": "code" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 2095, + "end": 2103, + "loc": { + "start": { + "line": 66, + "column": 17 + }, + "end": { + "line": 66, + "column": 25 + }, + "identifierName": "includes" + }, + "name": "includes" + }, + "computed": false + }, + "arguments": [ + { + "type": "StringLiteral", + "start": 2104, + "end": 2111, + "loc": { + "start": { + "line": 66, + "column": 26 + }, + "end": { + "line": 66, + "column": 33 + } + }, + "extra": { + "rawValue": "Shift", + "raw": "\"Shift\"" + }, + "value": "Shift" + } + ] + } + }, + "operator": "||", + "right": { + "type": "CallExpression", + "start": 2123, + "end": 2151, + "loc": { + "start": { + "line": 67, + "column": 6 + }, + "end": { + "line": 67, + "column": 34 + } + }, + "callee": { + "type": "MemberExpression", + "start": 2123, + "end": 2142, + "loc": { + "start": { + "line": 67, + "column": 6 + }, + "end": { + "line": 67, + "column": 25 + } + }, + "object": { + "type": "MemberExpression", + "start": 2123, + "end": 2133, + "loc": { + "start": { + "line": 67, + "column": 6 + }, + "end": { + "line": 67, + "column": 16 + } + }, + "object": { + "type": "Identifier", + "start": 2123, + "end": 2128, + "loc": { + "start": { + "line": 67, + "column": 6 + }, + "end": { + "line": 67, + "column": 11 + }, + "identifierName": "event" + }, + "name": "event" + }, + "property": { + "type": "Identifier", + "start": 2129, + "end": 2133, + "loc": { + "start": { + "line": 67, + "column": 12 + }, + "end": { + "line": 67, + "column": 16 + }, + "identifierName": "code" + }, + "name": "code" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 2134, + "end": 2142, + "loc": { + "start": { + "line": 67, + "column": 17 + }, + "end": { + "line": 67, + "column": 25 + }, + "identifierName": "includes" + }, + "name": "includes" + }, + "computed": false + }, + "arguments": [ + { + "type": "StringLiteral", + "start": 2143, + "end": 2150, + "loc": { + "start": { + "line": 67, + "column": 26 + }, + "end": { + "line": 67, + "column": 33 + } + }, + "extra": { + "rawValue": "Space", + "raw": "\"Space\"" + }, + "value": "Space" + } + ] + } + }, + "operator": "||", + "right": { + "type": "CallExpression", + "start": 2162, + "end": 2194, + "loc": { + "start": { + "line": 68, + "column": 6 + }, + "end": { + "line": 68, + "column": 38 + } + }, + "callee": { + "type": "MemberExpression", + "start": 2162, + "end": 2181, + "loc": { + "start": { + "line": 68, + "column": 6 + }, + "end": { + "line": 68, + "column": 25 + } + }, + "object": { + "type": "MemberExpression", + "start": 2162, + "end": 2172, + "loc": { + "start": { + "line": 68, + "column": 6 + }, + "end": { + "line": 68, + "column": 16 + } + }, + "object": { + "type": "Identifier", + "start": 2162, + "end": 2167, + "loc": { + "start": { + "line": 68, + "column": 6 + }, + "end": { + "line": 68, + "column": 11 + }, + "identifierName": "event" + }, + "name": "event" + }, + "property": { + "type": "Identifier", + "start": 2168, + "end": 2172, + "loc": { + "start": { + "line": 68, + "column": 12 + }, + "end": { + "line": 68, + "column": 16 + }, + "identifierName": "code" + }, + "name": "code" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 2173, + "end": 2181, + "loc": { + "start": { + "line": 68, + "column": 17 + }, + "end": { + "line": 68, + "column": 25 + }, + "identifierName": "includes" + }, + "name": "includes" + }, + "computed": false + }, + "arguments": [ + { + "type": "StringLiteral", + "start": 2182, + "end": 2193, + "loc": { + "start": { + "line": 68, + "column": 26 + }, + "end": { + "line": 68, + "column": 37 + } + }, + "extra": { + "rawValue": "Backspace", + "raw": "\"Backspace\"" + }, + "value": "Backspace" + } + ] + } + }, + "operator": "||", + "right": { + "type": "CallExpression", + "start": 2205, + "end": 2235, + "loc": { + "start": { + "line": 69, + "column": 6 + }, + "end": { + "line": 69, + "column": 36 + } + }, + "callee": { + "type": "MemberExpression", + "start": 2205, + "end": 2224, + "loc": { + "start": { + "line": 69, + "column": 6 + }, + "end": { + "line": 69, + "column": 25 + } + }, + "object": { + "type": "MemberExpression", + "start": 2205, + "end": 2215, + "loc": { + "start": { + "line": 69, + "column": 6 + }, + "end": { + "line": 69, + "column": 16 + } + }, + "object": { + "type": "Identifier", + "start": 2205, + "end": 2210, + "loc": { + "start": { + "line": 69, + "column": 6 + }, + "end": { + "line": 69, + "column": 11 + }, + "identifierName": "event" + }, + "name": "event" + }, + "property": { + "type": "Identifier", + "start": 2211, + "end": 2215, + "loc": { + "start": { + "line": 69, + "column": 12 + }, + "end": { + "line": 69, + "column": 16 + }, + "identifierName": "code" + }, + "name": "code" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 2216, + "end": 2224, + "loc": { + "start": { + "line": 69, + "column": 17 + }, + "end": { + "line": 69, + "column": 25 + }, + "identifierName": "includes" + }, + "name": "includes" + }, + "computed": false + }, + "arguments": [ + { + "type": "StringLiteral", + "start": 2225, + "end": 2234, + "loc": { + "start": { + "line": 69, + "column": 26 + }, + "end": { + "line": 69, + "column": 35 + } + }, + "extra": { + "rawValue": "Control", + "raw": "\"Control\"" + }, + "value": "Control" + } + ] + } + }, + "operator": "||", + "right": { + "type": "CallExpression", + "start": 2246, + "end": 2272, + "loc": { + "start": { + "line": 70, + "column": 6 + }, + "end": { + "line": 70, + "column": 32 + } + }, + "callee": { + "type": "MemberExpression", + "start": 2246, + "end": 2265, + "loc": { + "start": { + "line": 70, + "column": 6 + }, + "end": { + "line": 70, + "column": 25 + } + }, + "object": { + "type": "MemberExpression", + "start": 2246, + "end": 2256, + "loc": { + "start": { + "line": 70, + "column": 6 + }, + "end": { + "line": 70, + "column": 16 + } + }, + "object": { + "type": "Identifier", + "start": 2246, + "end": 2251, + "loc": { + "start": { + "line": 70, + "column": 6 + }, + "end": { + "line": 70, + "column": 11 + }, + "identifierName": "event" + }, + "name": "event" + }, + "property": { + "type": "Identifier", + "start": 2252, + "end": 2256, + "loc": { + "start": { + "line": 70, + "column": 12 + }, + "end": { + "line": 70, + "column": 16 + }, + "identifierName": "code" + }, + "name": "code" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 2257, + "end": 2265, + "loc": { + "start": { + "line": 70, + "column": 17 + }, + "end": { + "line": 70, + "column": 25 + }, + "identifierName": "includes" + }, + "name": "includes" + }, + "computed": false + }, + "arguments": [ + { + "type": "StringLiteral", + "start": 2266, + "end": 2271, + "loc": { + "start": { + "line": 70, + "column": 26 + }, + "end": { + "line": 70, + "column": 31 + } + }, + "extra": { + "rawValue": "Alt", + "raw": "\"Alt\"" + }, + "value": "Alt" + } + ] + } + }, + "operator": "||", + "right": { + "type": "CallExpression", + "start": 2283, + "end": 2310, + "loc": { + "start": { + "line": 71, + "column": 6 + }, + "end": { + "line": 71, + "column": 33 + } + }, + "callee": { + "type": "MemberExpression", + "start": 2283, + "end": 2302, + "loc": { + "start": { + "line": 71, + "column": 6 + }, + "end": { + "line": 71, + "column": 25 + } + }, + "object": { + "type": "MemberExpression", + "start": 2283, + "end": 2293, + "loc": { + "start": { + "line": 71, + "column": 6 + }, + "end": { + "line": 71, + "column": 16 + } + }, + "object": { + "type": "Identifier", + "start": 2283, + "end": 2288, + "loc": { + "start": { + "line": 71, + "column": 6 + }, + "end": { + "line": 71, + "column": 11 + }, + "identifierName": "event" + }, + "name": "event" + }, + "property": { + "type": "Identifier", + "start": 2289, + "end": 2293, + "loc": { + "start": { + "line": 71, + "column": 12 + }, + "end": { + "line": 71, + "column": 16 + }, + "identifierName": "code" + }, + "name": "code" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 2294, + "end": 2302, + "loc": { + "start": { + "line": 71, + "column": 17 + }, + "end": { + "line": 71, + "column": 25 + }, + "identifierName": "includes" + }, + "name": "includes" + }, + "computed": false + }, + "arguments": [ + { + "type": "StringLiteral", + "start": 2303, + "end": 2309, + "loc": { + "start": { + "line": 71, + "column": 26 + }, + "end": { + "line": 71, + "column": 32 + } + }, + "extra": { + "rawValue": "Meta", + "raw": "\"Meta\"" + }, + "value": "Meta" + } + ] + } + }, + "consequent": { + "type": "BlockStatement", + "start": 2317, + "end": 2353, + "loc": { + "start": { + "line": 72, + "column": 5 + }, + "end": { + "line": 74, + "column": 5 + } + }, + "body": [ + { + "type": "ExpressionStatement", + "start": 2326, + "end": 2346, + "loc": { + "start": { + "line": 73, + "column": 6 + }, + "end": { + "line": 73, + "column": 26 + } + }, + "expression": { + "type": "AssignmentExpression", + "start": 2326, + "end": 2345, + "loc": { + "start": { + "line": 73, + "column": 6 + }, + "end": { + "line": 73, + "column": 25 + } + }, + "operator": "=", + "left": { + "type": "Identifier", + "start": 2326, + "end": 2332, + "loc": { + "start": { + "line": 73, + "column": 6 + }, + "end": { + "line": 73, + "column": 12 + }, + "identifierName": "output" + }, + "name": "output" + }, + "right": { + "type": "MemberExpression", + "start": 2335, + "end": 2345, + "loc": { + "start": { + "line": 73, + "column": 15 + }, + "end": { + "line": 73, + "column": 25 + } + }, + "object": { + "type": "Identifier", + "start": 2335, + "end": 2340, + "loc": { + "start": { + "line": 73, + "column": 15 + }, + "end": { + "line": 73, + "column": 20 + }, + "identifierName": "event" + }, + "name": "event" + }, + "property": { + "type": "Identifier", + "start": 2341, + "end": 2345, + "loc": { + "start": { + "line": 73, + "column": 21 + }, + "end": { + "line": 73, + "column": 25 + }, + "identifierName": "code" + }, + "name": "code" + }, + "computed": false + } + } + } + ], + "directives": [] + }, + "alternate": { + "type": "BlockStatement", + "start": 2359, + "end": 2394, + "loc": { + "start": { + "line": 74, + "column": 11 + }, + "end": { + "line": 76, + "column": 5 + } + }, + "body": [ + { + "type": "ExpressionStatement", + "start": 2368, + "end": 2387, + "loc": { + "start": { + "line": 75, + "column": 6 + }, + "end": { + "line": 75, + "column": 25 + } + }, + "expression": { + "type": "AssignmentExpression", + "start": 2368, + "end": 2386, + "loc": { + "start": { + "line": 75, + "column": 6 + }, + "end": { + "line": 75, + "column": 24 + } + }, + "operator": "=", + "left": { + "type": "Identifier", + "start": 2368, + "end": 2374, + "loc": { + "start": { + "line": 75, + "column": 6 + }, + "end": { + "line": 75, + "column": 12 + }, + "identifierName": "output" + }, + "name": "output" + }, + "right": { + "type": "MemberExpression", + "start": 2377, + "end": 2386, + "loc": { + "start": { + "line": 75, + "column": 15 + }, + "end": { + "line": 75, + "column": 24 + } + }, + "object": { + "type": "Identifier", + "start": 2377, + "end": 2382, + "loc": { + "start": { + "line": 75, + "column": 15 + }, + "end": { + "line": 75, + "column": 20 + }, + "identifierName": "event" + }, + "name": "event" + }, + "property": { + "type": "Identifier", + "start": 2383, + "end": 2386, + "loc": { + "start": { + "line": 75, + "column": 21 + }, + "end": { + "line": 75, + "column": 24 + }, + "identifierName": "key" + }, + "name": "key" + }, + "computed": false + } + } + } + ], + "directives": [], + "trailingComments": null + }, + "trailingComments": [ + { + "type": "CommentBlock", + "value": "*\r\n * If button is not uppercase, casting to lowercase\r\n ", + "start": 2402, + "end": 2471, + "loc": { + "start": { + "line": 78, + "column": 4 + }, + "end": { + "line": 80, + "column": 7 + } + } + } + ] + }, + { + "type": "IfStatement", + "start": 2477, + "end": 2677, + "loc": { + "start": { + "line": 81, + "column": 4 + }, + "end": { + "line": 86, + "column": 5 + } + }, + "test": { + "type": "LogicalExpression", + "start": 2489, + "end": 2623, + "loc": { + "start": { + "line": 82, + "column": 6 + }, + "end": { + "line": 83, + "column": 98 + } + }, + "left": { + "type": "BinaryExpression", + "start": 2489, + "end": 2520, + "loc": { + "start": { + "line": 82, + "column": 6 + }, + "end": { + "line": 82, + "column": 37 + } + }, + "left": { + "type": "Identifier", + "start": 2489, + "end": 2495, + "loc": { + "start": { + "line": 82, + "column": 6 + }, + "end": { + "line": 82, + "column": 12 + }, + "identifierName": "output" + }, + "name": "output", + "leadingComments": null + }, + "operator": "!==", + "right": { + "type": "CallExpression", + "start": 2500, + "end": 2520, + "loc": { + "start": { + "line": 82, + "column": 17 + }, + "end": { + "line": 82, + "column": 37 + } + }, + "callee": { + "type": "MemberExpression", + "start": 2500, + "end": 2518, + "loc": { + "start": { + "line": 82, + "column": 17 + }, + "end": { + "line": 82, + "column": 35 + } + }, + "object": { + "type": "Identifier", + "start": 2500, + "end": 2506, + "loc": { + "start": { + "line": 82, + "column": 17 + }, + "end": { + "line": 82, + "column": 23 + }, + "identifierName": "output" + }, + "name": "output" + }, + "property": { + "type": "Identifier", + "start": 2507, + "end": 2518, + "loc": { + "start": { + "line": 82, + "column": 24 + }, + "end": { + "line": 82, + "column": 35 + }, + "identifierName": "toUpperCase" + }, + "name": "toUpperCase" + }, + "computed": false + }, + "arguments": [] + }, + "leadingComments": null + }, + "operator": "||", + "right": { + "type": "LogicalExpression", + "start": 2532, + "end": 2622, + "loc": { + "start": { + "line": 83, + "column": 7 + }, + "end": { + "line": 83, + "column": 97 + } + }, + "left": { + "type": "LogicalExpression", + "start": 2532, + "end": 2596, + "loc": { + "start": { + "line": 83, + "column": 7 + }, + "end": { + "line": 83, + "column": 71 + } + }, + "left": { + "type": "BinaryExpression", + "start": 2532, + "end": 2553, + "loc": { + "start": { + "line": 83, + "column": 7 + }, + "end": { + "line": 83, + "column": 28 + } + }, + "left": { + "type": "MemberExpression", + "start": 2532, + "end": 2545, + "loc": { + "start": { + "line": 83, + "column": 7 + }, + "end": { + "line": 83, + "column": 20 + } + }, + "object": { + "type": "MemberExpression", + "start": 2532, + "end": 2542, + "loc": { + "start": { + "line": 83, + "column": 7 + }, + "end": { + "line": 83, + "column": 17 + } + }, + "object": { + "type": "Identifier", + "start": 2532, + "end": 2537, + "loc": { + "start": { + "line": 83, + "column": 7 + }, + "end": { + "line": 83, + "column": 12 + }, + "identifierName": "event" + }, + "name": "event" + }, + "property": { + "type": "Identifier", + "start": 2538, + "end": 2542, + "loc": { + "start": { + "line": 83, + "column": 13 + }, + "end": { + "line": 83, + "column": 17 + }, + "identifierName": "code" + }, + "name": "code" + }, + "computed": false + }, + "property": { + "type": "NumericLiteral", + "start": 2543, + "end": 2544, + "loc": { + "start": { + "line": 83, + "column": 18 + }, + "end": { + "line": 83, + "column": 19 + } + }, + "extra": { + "rawValue": 0, + "raw": "0" + }, + "value": 0 + }, + "computed": true + }, + "operator": "===", + "right": { + "type": "StringLiteral", + "start": 2550, + "end": 2553, + "loc": { + "start": { + "line": 83, + "column": 25 + }, + "end": { + "line": 83, + "column": 28 + } + }, + "extra": { + "rawValue": "F", + "raw": "\"F\"" + }, + "value": "F" + } + }, + "operator": "&&", + "right": { + "type": "CallExpression", + "start": 2557, + "end": 2596, + "loc": { + "start": { + "line": 83, + "column": 32 + }, + "end": { + "line": 83, + "column": 71 + } + }, + "callee": { + "type": "MemberExpression", + "start": 2557, + "end": 2573, + "loc": { + "start": { + "line": 83, + "column": 32 + }, + "end": { + "line": 83, + "column": 48 + } + }, + "object": { + "type": "Identifier", + "start": 2557, + "end": 2563, + "loc": { + "start": { + "line": 83, + "column": 32 + }, + "end": { + "line": 83, + "column": 38 + }, + "identifierName": "Number" + }, + "name": "Number" + }, + "property": { + "type": "Identifier", + "start": 2564, + "end": 2573, + "loc": { + "start": { + "line": 83, + "column": 39 + }, + "end": { + "line": 83, + "column": 48 + }, + "identifierName": "isInteger" + }, + "name": "isInteger" + }, + "computed": false + }, + "arguments": [ + { + "type": "CallExpression", + "start": 2574, + "end": 2595, + "loc": { + "start": { + "line": 83, + "column": 49 + }, + "end": { + "line": 83, + "column": 70 + } + }, + "callee": { + "type": "Identifier", + "start": 2574, + "end": 2580, + "loc": { + "start": { + "line": 83, + "column": 49 + }, + "end": { + "line": 83, + "column": 55 + }, + "identifierName": "Number" + }, + "name": "Number" + }, + "arguments": [ + { + "type": "MemberExpression", + "start": 2581, + "end": 2594, + "loc": { + "start": { + "line": 83, + "column": 56 + }, + "end": { + "line": 83, + "column": 69 + } + }, + "object": { + "type": "MemberExpression", + "start": 2581, + "end": 2591, + "loc": { + "start": { + "line": 83, + "column": 56 + }, + "end": { + "line": 83, + "column": 66 + } + }, + "object": { + "type": "Identifier", + "start": 2581, + "end": 2586, + "loc": { + "start": { + "line": 83, + "column": 56 + }, + "end": { + "line": 83, + "column": 61 + }, + "identifierName": "event" + }, + "name": "event" + }, + "property": { + "type": "Identifier", + "start": 2587, + "end": 2591, + "loc": { + "start": { + "line": 83, + "column": 62 + }, + "end": { + "line": 83, + "column": 66 + }, + "identifierName": "code" + }, + "name": "code" + }, + "computed": false + }, + "property": { + "type": "NumericLiteral", + "start": 2592, + "end": 2593, + "loc": { + "start": { + "line": 83, + "column": 67 + }, + "end": { + "line": 83, + "column": 68 + } + }, + "extra": { + "rawValue": 1, + "raw": "1" + }, + "value": 1 + }, + "computed": true + } + ] + } + ] + } + }, + "operator": "&&", + "right": { + "type": "BinaryExpression", + "start": 2600, + "end": 2622, + "loc": { + "start": { + "line": 83, + "column": 75 + }, + "end": { + "line": 83, + "column": 97 + } + }, + "left": { + "type": "MemberExpression", + "start": 2600, + "end": 2617, + "loc": { + "start": { + "line": 83, + "column": 75 + }, + "end": { + "line": 83, + "column": 92 + } + }, + "object": { + "type": "MemberExpression", + "start": 2600, + "end": 2610, + "loc": { + "start": { + "line": 83, + "column": 75 + }, + "end": { + "line": 83, + "column": 85 + } + }, + "object": { + "type": "Identifier", + "start": 2600, + "end": 2605, + "loc": { + "start": { + "line": 83, + "column": 75 + }, + "end": { + "line": 83, + "column": 80 + }, + "identifierName": "event" + }, + "name": "event" + }, + "property": { + "type": "Identifier", + "start": 2606, + "end": 2610, + "loc": { + "start": { + "line": 83, + "column": 81 + }, + "end": { + "line": 83, + "column": 85 + }, + "identifierName": "code" + }, + "name": "code" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 2611, + "end": 2617, + "loc": { + "start": { + "line": 83, + "column": 86 + }, + "end": { + "line": 83, + "column": 92 + }, + "identifierName": "length" + }, + "name": "length" + }, + "computed": false + }, + "operator": "<=", + "right": { + "type": "NumericLiteral", + "start": 2621, + "end": 2622, + "loc": { + "start": { + "line": 83, + "column": 96 + }, + "end": { + "line": 83, + "column": 97 + } + }, + "extra": { + "rawValue": 3, + "raw": "3" + }, + "value": 3 + } + }, + "extra": { + "parenthesized": true, + "parenStart": 2531 + } + }, + "leadingComments": null + }, + "consequent": { + "type": "BlockStatement", + "start": 2631, + "end": 2677, + "loc": { + "start": { + "line": 84, + "column": 6 + }, + "end": { + "line": 86, + "column": 5 + } + }, + "body": [ + { + "type": "ExpressionStatement", + "start": 2640, + "end": 2670, + "loc": { + "start": { + "line": 85, + "column": 6 + }, + "end": { + "line": 85, + "column": 36 + } + }, + "expression": { + "type": "AssignmentExpression", + "start": 2640, + "end": 2669, + "loc": { + "start": { + "line": 85, + "column": 6 + }, + "end": { + "line": 85, + "column": 35 + } + }, + "operator": "=", + "left": { + "type": "Identifier", + "start": 2640, + "end": 2646, + "loc": { + "start": { + "line": 85, + "column": 6 + }, + "end": { + "line": 85, + "column": 12 + }, + "identifierName": "output" + }, + "name": "output" + }, + "right": { + "type": "CallExpression", + "start": 2649, + "end": 2669, + "loc": { + "start": { + "line": 85, + "column": 15 + }, + "end": { + "line": 85, + "column": 35 + } + }, + "callee": { + "type": "MemberExpression", + "start": 2649, + "end": 2667, + "loc": { + "start": { + "line": 85, + "column": 15 + }, + "end": { + "line": 85, + "column": 33 + } + }, + "object": { + "type": "Identifier", + "start": 2649, + "end": 2655, + "loc": { + "start": { + "line": 85, + "column": 15 + }, + "end": { + "line": 85, + "column": 21 + }, + "identifierName": "output" + }, + "name": "output" + }, + "property": { + "type": "Identifier", + "start": 2656, + "end": 2667, + "loc": { + "start": { + "line": 85, + "column": 22 + }, + "end": { + "line": 85, + "column": 33 + }, + "identifierName": "toLowerCase" + }, + "name": "toLowerCase" + }, + "computed": false + }, + "arguments": [] + } + } + } + ], + "directives": [] + }, + "alternate": null, + "leadingComments": [ + { + "type": "CommentBlock", + "value": "*\r\n * If button is not uppercase, casting to lowercase\r\n ", + "start": 2402, + "end": 2471, + "loc": { + "start": { + "line": 78, + "column": 4 + }, + "end": { + "line": 80, + "column": 7 + } + } + } + ] + }, + { + "type": "ReturnStatement", + "start": 2685, + "end": 2699, + "loc": { + "start": { + "line": 88, + "column": 4 + }, + "end": { + "line": 88, + "column": 18 + } + }, + "argument": { + "type": "Identifier", + "start": 2692, + "end": 2698, + "loc": { + "start": { + "line": 88, + "column": 11 + }, + "end": { + "line": 88, + "column": 17 + }, + "identifierName": "output" + }, + "name": "output" + } + } + ], + "directives": [] + } + }, + "leadingComments": [ + { + "type": "CommentBlock", + "value": "*\r\n * Transforms a KeyboardEvent's \"key.code\" string into a simple-keyboard layout format\r\n * @param {object} event The KeyboardEvent\r\n ", + "start": 1724, + "end": 1871, + "loc": { + "start": { + "line": 53, + "column": 2 + }, + "end": { + "line": 56, + "column": 5 + } + } + } + ] + } + ] + }, + "leadingComments": [], + "name": "_", + "trailingComments": [] + }, + { + "type": "Identifier", + "start": 2711, + "end": 2743, + "loc": { + "start": { + "line": 92, + "column": 0 + }, + "end": { + "line": 92, + "column": 32 + } + }, + "declaration": { + "type": "Identifier", + "start": 2726, + "end": 2742, + "loc": { + "start": { + "line": 92, + "column": 15 + }, + "end": { + "line": 92, + "column": 31 + }, + "identifierName": "PhysicalKeyboard" + }, + "name": "PhysicalKeyboard" + }, + "name": "_", + "leadingComments": [], + "trailingComments": [] + }, + { + "type": "ExportDefaultDeclaration", + "start": 2711, + "end": 2743, + "loc": { + "start": { + "line": 92, + "column": 0 + }, + "end": { + "line": 92, + "column": 32 + } + }, + "declaration": { + "type": "ClassDeclaration", + "start": 40, + "end": 2707, + "loc": { + "start": { + "line": 4, + "column": 0 + }, + "end": { + "line": 90, + "column": 1 + } + }, + "id": { + "type": "Identifier", + "start": 46, + "end": 62, + "loc": { + "start": { + "line": 4, + "column": 6 + }, + "end": { + "line": 4, + "column": 22 + }, + "identifierName": "PhysicalKeyboard" + }, + "name": "PhysicalKeyboard", + "leadingComments": null + }, + "superClass": null, + "body": { + "type": "ClassBody", + "start": 63, + "end": 2707, + "loc": { + "start": { + "line": 4, + "column": 23 + }, + "end": { + "line": 90, + "column": 1 + } + }, + "body": [ + { + "type": "ClassMethod", + "start": 140, + "end": 344, + "loc": { + "start": { + "line": 8, + "column": 2 + }, + "end": { + "line": 15, + "column": 3 + } + }, + "static": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 140, + "end": 151, + "loc": { + "start": { + "line": 8, + "column": 2 + }, + "end": { + "line": 8, + "column": 13 + }, + "identifierName": "constructor" + }, + "name": "constructor", + "leadingComments": null + }, + "kind": "constructor", + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 152, + "end": 174, + "loc": { + "start": { + "line": 8, + "column": 14 + }, + "end": { + "line": 8, + "column": 36 + }, + "identifierName": "simpleKeyboardInstance" + }, + "name": "simpleKeyboardInstance" + } + ], + "body": { + "type": "BlockStatement", + "start": 175, + "end": 344, + "loc": { + "start": { + "line": 8, + "column": 37 + }, + "end": { + "line": 15, + "column": 3 + } + }, + "body": [ + { + "type": "ExpressionStatement", + "start": 250, + "end": 303, + "loc": { + "start": { + "line": 12, + "column": 4 + }, + "end": { + "line": 12, + "column": 57 + } + }, + "expression": { + "type": "AssignmentExpression", + "start": 250, + "end": 302, + "loc": { + "start": { + "line": 12, + "column": 4 + }, + "end": { + "line": 12, + "column": 56 + } + }, + "operator": "=", + "left": { + "type": "MemberExpression", + "start": 250, + "end": 277, + "loc": { + "start": { + "line": 12, + "column": 4 + }, + "end": { + "line": 12, + "column": 31 + } + }, + "object": { + "type": "ThisExpression", + "start": 250, + "end": 254, + "loc": { + "start": { + "line": 12, + "column": 4 + }, + "end": { + "line": 12, + "column": 8 + } + }, + "leadingComments": null + }, + "property": { + "type": "Identifier", + "start": 255, + "end": 277, + "loc": { + "start": { + "line": 12, + "column": 9 + }, + "end": { + "line": 12, + "column": 31 + }, + "identifierName": "simpleKeyboardInstance" + }, + "name": "simpleKeyboardInstance" + }, + "computed": false, + "leadingComments": null + }, + "right": { + "type": "Identifier", + "start": 280, + "end": 302, + "loc": { + "start": { + "line": 12, + "column": 34 + }, + "end": { + "line": 12, + "column": 56 + }, + "identifierName": "simpleKeyboardInstance" + }, + "name": "simpleKeyboardInstance" + }, + "leadingComments": null + }, + "leadingComments": [ + { + "type": "CommentBlock", + "value": "*\r\n * @type {object} A simple-keyboard instance\r\n ", + "start": 182, + "end": 244, + "loc": { + "start": { + "line": 9, + "column": 4 + }, + "end": { + "line": 11, + "column": 7 + } + } + } + ] + }, + { + "type": "ExpressionStatement", + "start": 311, + "end": 339, + "loc": { + "start": { + "line": 14, + "column": 4 + }, + "end": { + "line": 14, + "column": 32 + } + }, + "expression": { + "type": "CallExpression", + "start": 311, + "end": 338, + "loc": { + "start": { + "line": 14, + "column": 4 + }, + "end": { + "line": 14, + "column": 31 + } + }, + "callee": { + "type": "MemberExpression", + "start": 311, + "end": 336, + "loc": { + "start": { + "line": 14, + "column": 4 + }, + "end": { + "line": 14, + "column": 29 + } + }, + "object": { + "type": "ThisExpression", + "start": 311, + "end": 315, + "loc": { + "start": { + "line": 14, + "column": 4 + }, + "end": { + "line": 14, + "column": 8 + } + } + }, + "property": { + "type": "Identifier", + "start": 316, + "end": 336, + "loc": { + "start": { + "line": 14, + "column": 9 + }, + "end": { + "line": 14, + "column": 29 + }, + "identifierName": "initKeyboardListener" + }, + "name": "initKeyboardListener" + }, + "computed": false + }, + "arguments": [] + } + } + ], + "directives": [], + "trailingComments": null + }, + "leadingComments": [ + { + "type": "CommentBlock", + "value": "*\r\n * Creates an instance of the PhysicalKeyboard service\r\n ", + "start": 68, + "end": 136, + "loc": { + "start": { + "line": 5, + "column": 2 + }, + "end": { + "line": 7, + "column": 5 + } + } + } + ], + "trailingComments": [ + { + "type": "CommentBlock", + "value": "*\r\n * Initializes key event listeners\r\n ", + "start": 350, + "end": 398, + "loc": { + "start": { + "line": 17, + "column": 2 + }, + "end": { + "line": 19, + "column": 5 + } + } + } + ] + }, + { + "type": "ClassProperty", + "start": 402, + "end": 1718, + "loc": { + "start": { + "line": 20, + "column": 2 + }, + "end": { + "line": 51, + "column": 3 + } + }, + "static": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 402, + "end": 422, + "loc": { + "start": { + "line": 20, + "column": 2 + }, + "end": { + "line": 20, + "column": 22 + }, + "identifierName": "initKeyboardListener" + }, + "name": "initKeyboardListener", + "leadingComments": null + }, + "value": { + "type": "ArrowFunctionExpression", + "start": 425, + "end": 1718, + "loc": { + "start": { + "line": 20, + "column": 25 + }, + "end": { + "line": 51, + "column": 3 + } + }, + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [], + "body": { + "type": "BlockStatement", + "start": 431, + "end": 1718, + "loc": { + "start": { + "line": 20, + "column": 31 + }, + "end": { + "line": 51, + "column": 3 + } + }, + "body": [ + { + "type": "ExpressionStatement", + "start": 477, + "end": 1173, + "loc": { + "start": { + "line": 22, + "column": 4 + }, + "end": { + "line": 35, + "column": 7 + } + }, + "expression": { + "type": "CallExpression", + "start": 477, + "end": 1172, + "loc": { + "start": { + "line": 22, + "column": 4 + }, + "end": { + "line": 35, + "column": 6 + } + }, + "callee": { + "type": "MemberExpression", + "start": 477, + "end": 502, + "loc": { + "start": { + "line": 22, + "column": 4 + }, + "end": { + "line": 22, + "column": 29 + } + }, + "object": { + "type": "Identifier", + "start": 477, + "end": 485, + "loc": { + "start": { + "line": 22, + "column": 4 + }, + "end": { + "line": 22, + "column": 12 + }, + "identifierName": "document" + }, + "name": "document", + "leadingComments": null + }, + "property": { + "type": "Identifier", + "start": 486, + "end": 502, + "loc": { + "start": { + "line": 22, + "column": 13 + }, + "end": { + "line": 22, + "column": 29 + }, + "identifierName": "addEventListener" + }, + "name": "addEventListener" + }, + "computed": false, + "leadingComments": null + }, + "arguments": [ + { + "type": "StringLiteral", + "start": 503, + "end": 512, + "loc": { + "start": { + "line": 22, + "column": 30 + }, + "end": { + "line": 22, + "column": 39 + } + }, + "extra": { + "rawValue": "keydown", + "raw": "\"keydown\"" + }, + "value": "keydown" + }, + { + "type": "ArrowFunctionExpression", + "start": 514, + "end": 1171, + "loc": { + "start": { + "line": 22, + "column": 41 + }, + "end": { + "line": 35, + "column": 5 + } + }, + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 515, + "end": 520, + "loc": { + "start": { + "line": 22, + "column": 42 + }, + "end": { + "line": 22, + "column": 47 + }, + "identifierName": "event" + }, + "name": "event" + } + ], + "body": { + "type": "BlockStatement", + "start": 525, + "end": 1171, + "loc": { + "start": { + "line": 22, + "column": 52 + }, + "end": { + "line": 35, + "column": 5 + } + }, + "body": [ + { + "type": "IfStatement", + "start": 534, + "end": 1164, + "loc": { + "start": { + "line": 23, + "column": 6 + }, + "end": { + "line": 34, + "column": 7 + } + }, + "test": { + "type": "MemberExpression", + "start": 537, + "end": 598, + "loc": { + "start": { + "line": 23, + "column": 9 + }, + "end": { + "line": 23, + "column": 70 + } + }, + "object": { + "type": "MemberExpression", + "start": 537, + "end": 572, + "loc": { + "start": { + "line": 23, + "column": 9 + }, + "end": { + "line": 23, + "column": 44 + } + }, + "object": { + "type": "MemberExpression", + "start": 537, + "end": 564, + "loc": { + "start": { + "line": 23, + "column": 9 + }, + "end": { + "line": 23, + "column": 36 + } + }, + "object": { + "type": "ThisExpression", + "start": 537, + "end": 541, + "loc": { + "start": { + "line": 23, + "column": 9 + }, + "end": { + "line": 23, + "column": 13 + } + } + }, + "property": { + "type": "Identifier", + "start": 542, + "end": 564, + "loc": { + "start": { + "line": 23, + "column": 14 + }, + "end": { + "line": 23, + "column": 36 + }, + "identifierName": "simpleKeyboardInstance" + }, + "name": "simpleKeyboardInstance" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 565, + "end": 572, + "loc": { + "start": { + "line": 23, + "column": 37 + }, + "end": { + "line": 23, + "column": 44 + }, + "identifierName": "options" + }, + "name": "options" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 573, + "end": 598, + "loc": { + "start": { + "line": 23, + "column": 45 + }, + "end": { + "line": 23, + "column": 70 + }, + "identifierName": "physicalKeyboardHighlight" + }, + "name": "physicalKeyboardHighlight" + }, + "computed": false + }, + "consequent": { + "type": "BlockStatement", + "start": 599, + "end": 1164, + "loc": { + "start": { + "line": 23, + "column": 71 + }, + "end": { + "line": 34, + "column": 7 + } + }, + "body": [ + { + "type": "VariableDeclaration", + "start": 610, + "end": 669, + "loc": { + "start": { + "line": 24, + "column": 8 + }, + "end": { + "line": 24, + "column": 67 + } + }, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 614, + "end": 668, + "loc": { + "start": { + "line": 24, + "column": 12 + }, + "end": { + "line": 24, + "column": 66 + } + }, + "id": { + "type": "Identifier", + "start": 614, + "end": 627, + "loc": { + "start": { + "line": 24, + "column": 12 + }, + "end": { + "line": 24, + "column": 25 + }, + "identifierName": "buttonPressed" + }, + "name": "buttonPressed" + }, + "init": { + "type": "CallExpression", + "start": 630, + "end": 668, + "loc": { + "start": { + "line": 24, + "column": 28 + }, + "end": { + "line": 24, + "column": 66 + } + }, + "callee": { + "type": "MemberExpression", + "start": 630, + "end": 661, + "loc": { + "start": { + "line": 24, + "column": 28 + }, + "end": { + "line": 24, + "column": 59 + } + }, + "object": { + "type": "ThisExpression", + "start": 630, + "end": 634, + "loc": { + "start": { + "line": 24, + "column": 28 + }, + "end": { + "line": 24, + "column": 32 + } + } + }, + "property": { + "type": "Identifier", + "start": 635, + "end": 661, + "loc": { + "start": { + "line": 24, + "column": 33 + }, + "end": { + "line": 24, + "column": 59 + }, + "identifierName": "getSimpleKeyboardLayoutKey" + }, + "name": "getSimpleKeyboardLayoutKey" + }, + "computed": false + }, + "arguments": [ + { + "type": "Identifier", + "start": 662, + "end": 667, + "loc": { + "start": { + "line": 24, + "column": 60 + }, + "end": { + "line": 24, + "column": 65 + }, + "identifierName": "event" + }, + "name": "event" + } + ] + } + } + ], + "kind": "let" + }, + { + "type": "ExpressionStatement", + "start": 681, + "end": 1155, + "loc": { + "start": { + "line": 26, + "column": 8 + }, + "end": { + "line": 33, + "column": 11 + } + }, + "expression": { + "type": "CallExpression", + "start": 681, + "end": 1154, + "loc": { + "start": { + "line": 26, + "column": 8 + }, + "end": { + "line": 33, + "column": 10 + } + }, + "callee": { + "type": "MemberExpression", + "start": 681, + "end": 717, + "loc": { + "start": { + "line": 26, + "column": 8 + }, + "end": { + "line": 26, + "column": 44 + } + }, + "object": { + "type": "MemberExpression", + "start": 681, + "end": 708, + "loc": { + "start": { + "line": 26, + "column": 8 + }, + "end": { + "line": 26, + "column": 35 + } + }, + "object": { + "type": "ThisExpression", + "start": 681, + "end": 685, + "loc": { + "start": { + "line": 26, + "column": 8 + }, + "end": { + "line": 26, + "column": 12 + } + } + }, + "property": { + "type": "Identifier", + "start": 686, + "end": 708, + "loc": { + "start": { + "line": 26, + "column": 13 + }, + "end": { + "line": 26, + "column": 35 + }, + "identifierName": "simpleKeyboardInstance" + }, + "name": "simpleKeyboardInstance" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 709, + "end": 717, + "loc": { + "start": { + "line": 26, + "column": 36 + }, + "end": { + "line": 26, + "column": 44 + }, + "identifierName": "dispatch" + }, + "name": "dispatch" + }, + "computed": false + }, + "arguments": [ + { + "type": "ArrowFunctionExpression", + "start": 718, + "end": 1153, + "loc": { + "start": { + "line": 26, + "column": 45 + }, + "end": { + "line": 33, + "column": 9 + } + }, + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 718, + "end": 726, + "loc": { + "start": { + "line": 26, + "column": 45 + }, + "end": { + "line": 26, + "column": 53 + }, + "identifierName": "instance" + }, + "name": "instance" + } + ], + "body": { + "type": "BlockStatement", + "start": 730, + "end": 1153, + "loc": { + "start": { + "line": 26, + "column": 57 + }, + "end": { + "line": 33, + "column": 9 + } + }, + "body": [ + { + "type": "VariableDeclaration", + "start": 743, + "end": 851, + "loc": { + "start": { + "line": 27, + "column": 10 + }, + "end": { + "line": 27, + "column": 118 + } + }, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 747, + "end": 850, + "loc": { + "start": { + "line": 27, + "column": 14 + }, + "end": { + "line": 27, + "column": 117 + } + }, + "id": { + "type": "Identifier", + "start": 747, + "end": 756, + "loc": { + "start": { + "line": 27, + "column": 14 + }, + "end": { + "line": 27, + "column": 23 + }, + "identifierName": "buttonDOM" + }, + "name": "buttonDOM" + }, + "init": { + "type": "LogicalExpression", + "start": 759, + "end": 850, + "loc": { + "start": { + "line": 27, + "column": 26 + }, + "end": { + "line": 27, + "column": 117 + } + }, + "left": { + "type": "CallExpression", + "start": 759, + "end": 799, + "loc": { + "start": { + "line": 27, + "column": 26 + }, + "end": { + "line": 27, + "column": 66 + } + }, + "callee": { + "type": "MemberExpression", + "start": 759, + "end": 784, + "loc": { + "start": { + "line": 27, + "column": 26 + }, + "end": { + "line": 27, + "column": 51 + } + }, + "object": { + "type": "Identifier", + "start": 759, + "end": 767, + "loc": { + "start": { + "line": 27, + "column": 26 + }, + "end": { + "line": 27, + "column": 34 + }, + "identifierName": "instance" + }, + "name": "instance" + }, + "property": { + "type": "Identifier", + "start": 768, + "end": 784, + "loc": { + "start": { + "line": 27, + "column": 35 + }, + "end": { + "line": 27, + "column": 51 + }, + "identifierName": "getButtonElement" + }, + "name": "getButtonElement" + }, + "computed": false + }, + "arguments": [ + { + "type": "Identifier", + "start": 785, + "end": 798, + "loc": { + "start": { + "line": 27, + "column": 52 + }, + "end": { + "line": 27, + "column": 65 + }, + "identifierName": "buttonPressed" + }, + "name": "buttonPressed" + } + ] + }, + "operator": "||", + "right": { + "type": "CallExpression", + "start": 803, + "end": 850, + "loc": { + "start": { + "line": 27, + "column": 70 + }, + "end": { + "line": 27, + "column": 117 + } + }, + "callee": { + "type": "MemberExpression", + "start": 803, + "end": 828, + "loc": { + "start": { + "line": 27, + "column": 70 + }, + "end": { + "line": 27, + "column": 95 + } + }, + "object": { + "type": "Identifier", + "start": 803, + "end": 811, + "loc": { + "start": { + "line": 27, + "column": 70 + }, + "end": { + "line": 27, + "column": 78 + }, + "identifierName": "instance" + }, + "name": "instance" + }, + "property": { + "type": "Identifier", + "start": 812, + "end": 828, + "loc": { + "start": { + "line": 27, + "column": 79 + }, + "end": { + "line": 27, + "column": 95 + }, + "identifierName": "getButtonElement" + }, + "name": "getButtonElement" + }, + "computed": false + }, + "arguments": [ + { + "type": "TemplateLiteral", + "start": 829, + "end": 849, + "loc": { + "start": { + "line": 27, + "column": 96 + }, + "end": { + "line": 27, + "column": 116 + } + }, + "expressions": [ + { + "type": "Identifier", + "start": 833, + "end": 846, + "loc": { + "start": { + "line": 27, + "column": 100 + }, + "end": { + "line": 27, + "column": 113 + }, + "identifierName": "buttonPressed" + }, + "name": "buttonPressed" + } + ], + "quasis": [ + { + "type": "TemplateElement", + "start": 830, + "end": 831, + "loc": { + "start": { + "line": 27, + "column": 97 + }, + "end": { + "line": 27, + "column": 98 + } + }, + "value": { + "raw": "{", + "cooked": "{" + }, + "tail": false + }, + { + "type": "TemplateElement", + "start": 847, + "end": 848, + "loc": { + "start": { + "line": 27, + "column": 114 + }, + "end": { + "line": 27, + "column": 115 + } + }, + "value": { + "raw": "}", + "cooked": "}" + }, + "tail": true + } + ] + } + ] + } + } + } + ], + "kind": "let" + }, + { + "type": "IfStatement", + "start": 865, + "end": 1142, + "loc": { + "start": { + "line": 29, + "column": 10 + }, + "end": { + "line": 32, + "column": 11 + } + }, + "test": { + "type": "Identifier", + "start": 868, + "end": 877, + "loc": { + "start": { + "line": 29, + "column": 13 + }, + "end": { + "line": 29, + "column": 22 + }, + "identifierName": "buttonDOM" + }, + "name": "buttonDOM" + }, + "consequent": { + "type": "BlockStatement", + "start": 878, + "end": 1142, + "loc": { + "start": { + "line": 29, + "column": 23 + }, + "end": { + "line": 32, + "column": 11 + } + }, + "body": [ + { + "type": "ExpressionStatement", + "start": 893, + "end": 1009, + "loc": { + "start": { + "line": 30, + "column": 12 + }, + "end": { + "line": 30, + "column": 128 + } + }, + "expression": { + "type": "AssignmentExpression", + "start": 893, + "end": 1008, + "loc": { + "start": { + "line": 30, + "column": 12 + }, + "end": { + "line": 30, + "column": 127 + } + }, + "operator": "=", + "left": { + "type": "MemberExpression", + "start": 893, + "end": 924, + "loc": { + "start": { + "line": 30, + "column": 12 + }, + "end": { + "line": 30, + "column": 43 + } + }, + "object": { + "type": "MemberExpression", + "start": 893, + "end": 908, + "loc": { + "start": { + "line": 30, + "column": 12 + }, + "end": { + "line": 30, + "column": 27 + } + }, + "object": { + "type": "Identifier", + "start": 893, + "end": 902, + "loc": { + "start": { + "line": 30, + "column": 12 + }, + "end": { + "line": 30, + "column": 21 + }, + "identifierName": "buttonDOM" + }, + "name": "buttonDOM" + }, + "property": { + "type": "Identifier", + "start": 903, + "end": 908, + "loc": { + "start": { + "line": 30, + "column": 22 + }, + "end": { + "line": 30, + "column": 27 + }, + "identifierName": "style" + }, + "name": "style" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 909, + "end": 924, + "loc": { + "start": { + "line": 30, + "column": 28 + }, + "end": { + "line": 30, + "column": 43 + }, + "identifierName": "backgroundColor" + }, + "name": "backgroundColor" + }, + "computed": false + }, + "right": { + "type": "LogicalExpression", + "start": 927, + "end": 1008, + "loc": { + "start": { + "line": 30, + "column": 46 + }, + "end": { + "line": 30, + "column": 127 + } + }, + "left": { + "type": "MemberExpression", + "start": 927, + "end": 995, + "loc": { + "start": { + "line": 30, + "column": 46 + }, + "end": { + "line": 30, + "column": 114 + } + }, + "object": { + "type": "MemberExpression", + "start": 927, + "end": 962, + "loc": { + "start": { + "line": 30, + "column": 46 + }, + "end": { + "line": 30, + "column": 81 + } + }, + "object": { + "type": "MemberExpression", + "start": 927, + "end": 954, + "loc": { + "start": { + "line": 30, + "column": 46 + }, + "end": { + "line": 30, + "column": 73 + } + }, + "object": { + "type": "ThisExpression", + "start": 927, + "end": 931, + "loc": { + "start": { + "line": 30, + "column": 46 + }, + "end": { + "line": 30, + "column": 50 + } + } + }, + "property": { + "type": "Identifier", + "start": 932, + "end": 954, + "loc": { + "start": { + "line": 30, + "column": 51 + }, + "end": { + "line": 30, + "column": 73 + }, + "identifierName": "simpleKeyboardInstance" + }, + "name": "simpleKeyboardInstance" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 955, + "end": 962, + "loc": { + "start": { + "line": 30, + "column": 74 + }, + "end": { + "line": 30, + "column": 81 + }, + "identifierName": "options" + }, + "name": "options" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 963, + "end": 995, + "loc": { + "start": { + "line": 30, + "column": 82 + }, + "end": { + "line": 30, + "column": 114 + }, + "identifierName": "physicalKeyboardHighlightBgColor" + }, + "name": "physicalKeyboardHighlightBgColor" + }, + "computed": false + }, + "operator": "||", + "right": { + "type": "StringLiteral", + "start": 999, + "end": 1008, + "loc": { + "start": { + "line": 30, + "column": 118 + }, + "end": { + "line": 30, + "column": 127 + } + }, + "extra": { + "rawValue": "#9ab4d0", + "raw": "\"#9ab4d0\"" + }, + "value": "#9ab4d0" + } + } + } + }, + { + "type": "ExpressionStatement", + "start": 1023, + "end": 1129, + "loc": { + "start": { + "line": 31, + "column": 12 + }, + "end": { + "line": 31, + "column": 118 + } + }, + "expression": { + "type": "AssignmentExpression", + "start": 1023, + "end": 1128, + "loc": { + "start": { + "line": 31, + "column": 12 + }, + "end": { + "line": 31, + "column": 117 + } + }, + "operator": "=", + "left": { + "type": "MemberExpression", + "start": 1023, + "end": 1044, + "loc": { + "start": { + "line": 31, + "column": 12 + }, + "end": { + "line": 31, + "column": 33 + } + }, + "object": { + "type": "MemberExpression", + "start": 1023, + "end": 1038, + "loc": { + "start": { + "line": 31, + "column": 12 + }, + "end": { + "line": 31, + "column": 27 + } + }, + "object": { + "type": "Identifier", + "start": 1023, + "end": 1032, + "loc": { + "start": { + "line": 31, + "column": 12 + }, + "end": { + "line": 31, + "column": 21 + }, + "identifierName": "buttonDOM" + }, + "name": "buttonDOM" + }, + "property": { + "type": "Identifier", + "start": 1033, + "end": 1038, + "loc": { + "start": { + "line": 31, + "column": 22 + }, + "end": { + "line": 31, + "column": 27 + }, + "identifierName": "style" + }, + "name": "style" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 1039, + "end": 1044, + "loc": { + "start": { + "line": 31, + "column": 28 + }, + "end": { + "line": 31, + "column": 33 + }, + "identifierName": "color" + }, + "name": "color" + }, + "computed": false + }, + "right": { + "type": "LogicalExpression", + "start": 1047, + "end": 1128, + "loc": { + "start": { + "line": 31, + "column": 36 + }, + "end": { + "line": 31, + "column": 117 + } + }, + "left": { + "type": "MemberExpression", + "start": 1047, + "end": 1117, + "loc": { + "start": { + "line": 31, + "column": 36 + }, + "end": { + "line": 31, + "column": 106 + } + }, + "object": { + "type": "MemberExpression", + "start": 1047, + "end": 1082, + "loc": { + "start": { + "line": 31, + "column": 36 + }, + "end": { + "line": 31, + "column": 71 + } + }, + "object": { + "type": "MemberExpression", + "start": 1047, + "end": 1074, + "loc": { + "start": { + "line": 31, + "column": 36 + }, + "end": { + "line": 31, + "column": 63 + } + }, + "object": { + "type": "ThisExpression", + "start": 1047, + "end": 1051, + "loc": { + "start": { + "line": 31, + "column": 36 + }, + "end": { + "line": 31, + "column": 40 + } + } + }, + "property": { + "type": "Identifier", + "start": 1052, + "end": 1074, + "loc": { + "start": { + "line": 31, + "column": 41 + }, + "end": { + "line": 31, + "column": 63 + }, + "identifierName": "simpleKeyboardInstance" + }, + "name": "simpleKeyboardInstance" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 1075, + "end": 1082, + "loc": { + "start": { + "line": 31, + "column": 64 + }, + "end": { + "line": 31, + "column": 71 + }, + "identifierName": "options" + }, + "name": "options" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 1083, + "end": 1117, + "loc": { + "start": { + "line": 31, + "column": 72 + }, + "end": { + "line": 31, + "column": 106 + }, + "identifierName": "physicalKeyboardHighlightTextColor" + }, + "name": "physicalKeyboardHighlightTextColor" + }, + "computed": false + }, + "operator": "||", + "right": { + "type": "StringLiteral", + "start": 1121, + "end": 1128, + "loc": { + "start": { + "line": 31, + "column": 110 + }, + "end": { + "line": 31, + "column": 117 + } + }, + "extra": { + "rawValue": "white", + "raw": "\"white\"" + }, + "value": "white" + } + } + } + } + ], + "directives": [] + }, + "alternate": null + } + ], + "directives": [] + } + } + ] + } + } + ], + "directives": [] + }, + "alternate": null + } + ], + "directives": [] + } + } + ], + "leadingComments": null + }, + "leadingComments": [ + { + "type": "CommentLine", + "value": " Adding button style on keydown", + "start": 438, + "end": 471, + "loc": { + "start": { + "line": 21, + "column": 4 + }, + "end": { + "line": 21, + "column": 37 + } + } + } + ], + "trailingComments": [ + { + "type": "CommentLine", + "value": " Removing button style on keyup", + "start": 1181, + "end": 1214, + "loc": { + "start": { + "line": 37, + "column": 4 + }, + "end": { + "line": 37, + "column": 37 + } + } + } + ] + }, + { + "type": "ExpressionStatement", + "start": 1220, + "end": 1713, + "loc": { + "start": { + "line": 38, + "column": 4 + }, + "end": { + "line": 50, + "column": 7 + } + }, + "expression": { + "type": "CallExpression", + "start": 1220, + "end": 1712, + "loc": { + "start": { + "line": 38, + "column": 4 + }, + "end": { + "line": 50, + "column": 6 + } + }, + "callee": { + "type": "MemberExpression", + "start": 1220, + "end": 1245, + "loc": { + "start": { + "line": 38, + "column": 4 + }, + "end": { + "line": 38, + "column": 29 + } + }, + "object": { + "type": "Identifier", + "start": 1220, + "end": 1228, + "loc": { + "start": { + "line": 38, + "column": 4 + }, + "end": { + "line": 38, + "column": 12 + }, + "identifierName": "document" + }, + "name": "document", + "leadingComments": null + }, + "property": { + "type": "Identifier", + "start": 1229, + "end": 1245, + "loc": { + "start": { + "line": 38, + "column": 13 + }, + "end": { + "line": 38, + "column": 29 + }, + "identifierName": "addEventListener" + }, + "name": "addEventListener" + }, + "computed": false, + "leadingComments": null + }, + "arguments": [ + { + "type": "StringLiteral", + "start": 1246, + "end": 1253, + "loc": { + "start": { + "line": 38, + "column": 30 + }, + "end": { + "line": 38, + "column": 37 + } + }, + "extra": { + "rawValue": "keyup", + "raw": "\"keyup\"" + }, + "value": "keyup" + }, + { + "type": "ArrowFunctionExpression", + "start": 1255, + "end": 1711, + "loc": { + "start": { + "line": 38, + "column": 39 + }, + "end": { + "line": 50, + "column": 5 + } + }, + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 1256, + "end": 1261, + "loc": { + "start": { + "line": 38, + "column": 40 + }, + "end": { + "line": 38, + "column": 45 + }, + "identifierName": "event" + }, + "name": "event" + } + ], + "body": { + "type": "BlockStatement", + "start": 1266, + "end": 1711, + "loc": { + "start": { + "line": 38, + "column": 50 + }, + "end": { + "line": 50, + "column": 5 + } + }, + "body": [ + { + "type": "IfStatement", + "start": 1275, + "end": 1704, + "loc": { + "start": { + "line": 39, + "column": 6 + }, + "end": { + "line": 49, + "column": 7 + } + }, + "test": { + "type": "MemberExpression", + "start": 1278, + "end": 1339, + "loc": { + "start": { + "line": 39, + "column": 9 + }, + "end": { + "line": 39, + "column": 70 + } + }, + "object": { + "type": "MemberExpression", + "start": 1278, + "end": 1313, + "loc": { + "start": { + "line": 39, + "column": 9 + }, + "end": { + "line": 39, + "column": 44 + } + }, + "object": { + "type": "MemberExpression", + "start": 1278, + "end": 1305, + "loc": { + "start": { + "line": 39, + "column": 9 + }, + "end": { + "line": 39, + "column": 36 + } + }, + "object": { + "type": "ThisExpression", + "start": 1278, + "end": 1282, + "loc": { + "start": { + "line": 39, + "column": 9 + }, + "end": { + "line": 39, + "column": 13 + } + } + }, + "property": { + "type": "Identifier", + "start": 1283, + "end": 1305, + "loc": { + "start": { + "line": 39, + "column": 14 + }, + "end": { + "line": 39, + "column": 36 + }, + "identifierName": "simpleKeyboardInstance" + }, + "name": "simpleKeyboardInstance" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 1306, + "end": 1313, + "loc": { + "start": { + "line": 39, + "column": 37 + }, + "end": { + "line": 39, + "column": 44 + }, + "identifierName": "options" + }, + "name": "options" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 1314, + "end": 1339, + "loc": { + "start": { + "line": 39, + "column": 45 + }, + "end": { + "line": 39, + "column": 70 + }, + "identifierName": "physicalKeyboardHighlight" + }, + "name": "physicalKeyboardHighlight" + }, + "computed": false + }, + "consequent": { + "type": "BlockStatement", + "start": 1340, + "end": 1704, + "loc": { + "start": { + "line": 39, + "column": 71 + }, + "end": { + "line": 49, + "column": 7 + } + }, + "body": [ + { + "type": "VariableDeclaration", + "start": 1351, + "end": 1410, + "loc": { + "start": { + "line": 40, + "column": 8 + }, + "end": { + "line": 40, + "column": 67 + } + }, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 1355, + "end": 1409, + "loc": { + "start": { + "line": 40, + "column": 12 + }, + "end": { + "line": 40, + "column": 66 + } + }, + "id": { + "type": "Identifier", + "start": 1355, + "end": 1368, + "loc": { + "start": { + "line": 40, + "column": 12 + }, + "end": { + "line": 40, + "column": 25 + }, + "identifierName": "buttonPressed" + }, + "name": "buttonPressed" + }, + "init": { + "type": "CallExpression", + "start": 1371, + "end": 1409, + "loc": { + "start": { + "line": 40, + "column": 28 + }, + "end": { + "line": 40, + "column": 66 + } + }, + "callee": { + "type": "MemberExpression", + "start": 1371, + "end": 1402, + "loc": { + "start": { + "line": 40, + "column": 28 + }, + "end": { + "line": 40, + "column": 59 + } + }, + "object": { + "type": "ThisExpression", + "start": 1371, + "end": 1375, + "loc": { + "start": { + "line": 40, + "column": 28 + }, + "end": { + "line": 40, + "column": 32 + } + } + }, + "property": { + "type": "Identifier", + "start": 1376, + "end": 1402, + "loc": { + "start": { + "line": 40, + "column": 33 + }, + "end": { + "line": 40, + "column": 59 + }, + "identifierName": "getSimpleKeyboardLayoutKey" + }, + "name": "getSimpleKeyboardLayoutKey" + }, + "computed": false + }, + "arguments": [ + { + "type": "Identifier", + "start": 1403, + "end": 1408, + "loc": { + "start": { + "line": 40, + "column": 60 + }, + "end": { + "line": 40, + "column": 65 + }, + "identifierName": "event" + }, + "name": "event" + } + ] + } + } + ], + "kind": "let" + }, + { + "type": "ExpressionStatement", + "start": 1422, + "end": 1695, + "loc": { + "start": { + "line": 42, + "column": 8 + }, + "end": { + "line": 48, + "column": 11 + } + }, + "expression": { + "type": "CallExpression", + "start": 1422, + "end": 1694, + "loc": { + "start": { + "line": 42, + "column": 8 + }, + "end": { + "line": 48, + "column": 10 + } + }, + "callee": { + "type": "MemberExpression", + "start": 1422, + "end": 1458, + "loc": { + "start": { + "line": 42, + "column": 8 + }, + "end": { + "line": 42, + "column": 44 + } + }, + "object": { + "type": "MemberExpression", + "start": 1422, + "end": 1449, + "loc": { + "start": { + "line": 42, + "column": 8 + }, + "end": { + "line": 42, + "column": 35 + } + }, + "object": { + "type": "ThisExpression", + "start": 1422, + "end": 1426, + "loc": { + "start": { + "line": 42, + "column": 8 + }, + "end": { + "line": 42, + "column": 12 + } + } + }, + "property": { + "type": "Identifier", + "start": 1427, + "end": 1449, + "loc": { + "start": { + "line": 42, + "column": 13 + }, + "end": { + "line": 42, + "column": 35 + }, + "identifierName": "simpleKeyboardInstance" + }, + "name": "simpleKeyboardInstance" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 1450, + "end": 1458, + "loc": { + "start": { + "line": 42, + "column": 36 + }, + "end": { + "line": 42, + "column": 44 + }, + "identifierName": "dispatch" + }, + "name": "dispatch" + }, + "computed": false + }, + "arguments": [ + { + "type": "ArrowFunctionExpression", + "start": 1459, + "end": 1693, + "loc": { + "start": { + "line": 42, + "column": 45 + }, + "end": { + "line": 48, + "column": 9 + } + }, + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 1459, + "end": 1467, + "loc": { + "start": { + "line": 42, + "column": 45 + }, + "end": { + "line": 42, + "column": 53 + }, + "identifierName": "instance" + }, + "name": "instance" + } + ], + "body": { + "type": "BlockStatement", + "start": 1471, + "end": 1693, + "loc": { + "start": { + "line": 42, + "column": 57 + }, + "end": { + "line": 48, + "column": 9 + } + }, + "body": [ + { + "type": "VariableDeclaration", + "start": 1484, + "end": 1592, + "loc": { + "start": { + "line": 43, + "column": 10 + }, + "end": { + "line": 43, + "column": 118 + } + }, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 1488, + "end": 1591, + "loc": { + "start": { + "line": 43, + "column": 14 + }, + "end": { + "line": 43, + "column": 117 + } + }, + "id": { + "type": "Identifier", + "start": 1488, + "end": 1497, + "loc": { + "start": { + "line": 43, + "column": 14 + }, + "end": { + "line": 43, + "column": 23 + }, + "identifierName": "buttonDOM" + }, + "name": "buttonDOM" + }, + "init": { + "type": "LogicalExpression", + "start": 1500, + "end": 1591, + "loc": { + "start": { + "line": 43, + "column": 26 + }, + "end": { + "line": 43, + "column": 117 + } + }, + "left": { + "type": "CallExpression", + "start": 1500, + "end": 1540, + "loc": { + "start": { + "line": 43, + "column": 26 + }, + "end": { + "line": 43, + "column": 66 + } + }, + "callee": { + "type": "MemberExpression", + "start": 1500, + "end": 1525, + "loc": { + "start": { + "line": 43, + "column": 26 + }, + "end": { + "line": 43, + "column": 51 + } + }, + "object": { + "type": "Identifier", + "start": 1500, + "end": 1508, + "loc": { + "start": { + "line": 43, + "column": 26 + }, + "end": { + "line": 43, + "column": 34 + }, + "identifierName": "instance" + }, + "name": "instance" + }, + "property": { + "type": "Identifier", + "start": 1509, + "end": 1525, + "loc": { + "start": { + "line": 43, + "column": 35 + }, + "end": { + "line": 43, + "column": 51 + }, + "identifierName": "getButtonElement" + }, + "name": "getButtonElement" + }, + "computed": false + }, + "arguments": [ + { + "type": "Identifier", + "start": 1526, + "end": 1539, + "loc": { + "start": { + "line": 43, + "column": 52 + }, + "end": { + "line": 43, + "column": 65 + }, + "identifierName": "buttonPressed" + }, + "name": "buttonPressed" + } + ] + }, + "operator": "||", + "right": { + "type": "CallExpression", + "start": 1544, + "end": 1591, + "loc": { + "start": { + "line": 43, + "column": 70 + }, + "end": { + "line": 43, + "column": 117 + } + }, + "callee": { + "type": "MemberExpression", + "start": 1544, + "end": 1569, + "loc": { + "start": { + "line": 43, + "column": 70 + }, + "end": { + "line": 43, + "column": 95 + } + }, + "object": { + "type": "Identifier", + "start": 1544, + "end": 1552, + "loc": { + "start": { + "line": 43, + "column": 70 + }, + "end": { + "line": 43, + "column": 78 + }, + "identifierName": "instance" + }, + "name": "instance" + }, + "property": { + "type": "Identifier", + "start": 1553, + "end": 1569, + "loc": { + "start": { + "line": 43, + "column": 79 + }, + "end": { + "line": 43, + "column": 95 + }, + "identifierName": "getButtonElement" + }, + "name": "getButtonElement" + }, + "computed": false + }, + "arguments": [ + { + "type": "TemplateLiteral", + "start": 1570, + "end": 1590, + "loc": { + "start": { + "line": 43, + "column": 96 + }, + "end": { + "line": 43, + "column": 116 + } + }, + "expressions": [ + { + "type": "Identifier", + "start": 1574, + "end": 1587, + "loc": { + "start": { + "line": 43, + "column": 100 + }, + "end": { + "line": 43, + "column": 113 + }, + "identifierName": "buttonPressed" + }, + "name": "buttonPressed" + } + ], + "quasis": [ + { + "type": "TemplateElement", + "start": 1571, + "end": 1572, + "loc": { + "start": { + "line": 43, + "column": 97 + }, + "end": { + "line": 43, + "column": 98 + } + }, + "value": { + "raw": "{", + "cooked": "{" + }, + "tail": false + }, + { + "type": "TemplateElement", + "start": 1588, + "end": 1589, + "loc": { + "start": { + "line": 43, + "column": 114 + }, + "end": { + "line": 43, + "column": 115 + } + }, + "value": { + "raw": "}", + "cooked": "}" + }, + "tail": true + } + ] + } + ] + } + } + } + ], + "kind": "let" + }, + { + "type": "IfStatement", + "start": 1606, + "end": 1682, + "loc": { + "start": { + "line": 45, + "column": 10 + }, + "end": { + "line": 47, + "column": 11 + } + }, + "test": { + "type": "Identifier", + "start": 1609, + "end": 1618, + "loc": { + "start": { + "line": 45, + "column": 13 + }, + "end": { + "line": 45, + "column": 22 + }, + "identifierName": "buttonDOM" + }, + "name": "buttonDOM" + }, + "consequent": { + "type": "BlockStatement", + "start": 1619, + "end": 1682, + "loc": { + "start": { + "line": 45, + "column": 23 + }, + "end": { + "line": 47, + "column": 11 + } + }, + "body": [ + { + "type": "ExpressionStatement", + "start": 1634, + "end": 1669, + "loc": { + "start": { + "line": 46, + "column": 12 + }, + "end": { + "line": 46, + "column": 47 + } + }, + "expression": { + "type": "CallExpression", + "start": 1634, + "end": 1668, + "loc": { + "start": { + "line": 46, + "column": 12 + }, + "end": { + "line": 46, + "column": 46 + } + }, + "callee": { + "type": "MemberExpression", + "start": 1634, + "end": 1659, + "loc": { + "start": { + "line": 46, + "column": 12 + }, + "end": { + "line": 46, + "column": 37 + } + }, + "object": { + "type": "Identifier", + "start": 1634, + "end": 1643, + "loc": { + "start": { + "line": 46, + "column": 12 + }, + "end": { + "line": 46, + "column": 21 + }, + "identifierName": "buttonDOM" + }, + "name": "buttonDOM" + }, + "property": { + "type": "Identifier", + "start": 1644, + "end": 1659, + "loc": { + "start": { + "line": 46, + "column": 22 + }, + "end": { + "line": 46, + "column": 37 + }, + "identifierName": "removeAttribute" + }, + "name": "removeAttribute" + }, + "computed": false + }, + "arguments": [ + { + "type": "StringLiteral", + "start": 1660, + "end": 1667, + "loc": { + "start": { + "line": 46, + "column": 38 + }, + "end": { + "line": 46, + "column": 45 + } + }, + "extra": { + "rawValue": "style", + "raw": "\"style\"" + }, + "value": "style" + } + ] + } + } + ], + "directives": [] + }, + "alternate": null + } + ], + "directives": [] + } + } + ] + } + } + ], + "directives": [] + }, + "alternate": null + } + ], + "directives": [] + } + } + ], + "leadingComments": null + }, + "leadingComments": [ + { + "type": "CommentLine", + "value": " Removing button style on keyup", + "start": 1181, + "end": 1214, + "loc": { + "start": { + "line": 37, + "column": 4 + }, + "end": { + "line": 37, + "column": 37 + } + } + } + ] + } + ], + "directives": [], + "trailingComments": null + }, + "trailingComments": null + }, + "leadingComments": [ + { + "type": "CommentBlock", + "value": "*\r\n * Initializes key event listeners\r\n ", + "start": 350, + "end": 398, + "loc": { + "start": { + "line": 17, + "column": 2 + }, + "end": { + "line": 19, + "column": 5 + } + } + } + ], + "trailingComments": [ + { + "type": "CommentBlock", + "value": "*\r\n * Transforms a KeyboardEvent's \"key.code\" string into a simple-keyboard layout format\r\n * @param {object} event The KeyboardEvent\r\n ", + "start": 1724, + "end": 1871, + "loc": { + "start": { + "line": 53, + "column": 2 + }, + "end": { + "line": 56, + "column": 5 + } + } + } + ] + }, + { + "type": "ClassProperty", + "start": 1875, + "end": 2704, + "loc": { + "start": { + "line": 57, + "column": 2 + }, + "end": { + "line": 89, + "column": 3 + } + }, + "static": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 1875, + "end": 1901, + "loc": { + "start": { + "line": 57, + "column": 2 + }, + "end": { + "line": 57, + "column": 28 + }, + "identifierName": "getSimpleKeyboardLayoutKey" + }, + "name": "getSimpleKeyboardLayoutKey", + "leadingComments": null + }, + "value": { + "type": "ArrowFunctionExpression", + "start": 1904, + "end": 2704, + "loc": { + "start": { + "line": 57, + "column": 31 + }, + "end": { + "line": 89, + "column": 3 + } + }, + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 1905, + "end": 1910, + "loc": { + "start": { + "line": 57, + "column": 32 + }, + "end": { + "line": 57, + "column": 37 + }, + "identifierName": "event" + }, + "name": "event" + } + ], + "body": { + "type": "BlockStatement", + "start": 1915, + "end": 2704, + "loc": { + "start": { + "line": 57, + "column": 42 + }, + "end": { + "line": 89, + "column": 3 + } + }, + "body": [ + { + "type": "IfStatement", + "start": 1922, + "end": 2002, + "loc": { + "start": { + "line": 58, + "column": 4 + }, + "end": { + "line": 60, + "column": 5 + } + }, + "test": { + "type": "MemberExpression", + "start": 1925, + "end": 1966, + "loc": { + "start": { + "line": 58, + "column": 7 + }, + "end": { + "line": 58, + "column": 48 + } + }, + "object": { + "type": "MemberExpression", + "start": 1925, + "end": 1960, + "loc": { + "start": { + "line": 58, + "column": 7 + }, + "end": { + "line": 58, + "column": 42 + } + }, + "object": { + "type": "MemberExpression", + "start": 1925, + "end": 1952, + "loc": { + "start": { + "line": 58, + "column": 7 + }, + "end": { + "line": 58, + "column": 34 + } + }, + "object": { + "type": "ThisExpression", + "start": 1925, + "end": 1929, + "loc": { + "start": { + "line": 58, + "column": 7 + }, + "end": { + "line": 58, + "column": 11 + } + } + }, + "property": { + "type": "Identifier", + "start": 1930, + "end": 1952, + "loc": { + "start": { + "line": 58, + "column": 12 + }, + "end": { + "line": 58, + "column": 34 + }, + "identifierName": "simpleKeyboardInstance" + }, + "name": "simpleKeyboardInstance" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 1953, + "end": 1960, + "loc": { + "start": { + "line": 58, + "column": 35 + }, + "end": { + "line": 58, + "column": 42 + }, + "identifierName": "options" + }, + "name": "options" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 1961, + "end": 1966, + "loc": { + "start": { + "line": 58, + "column": 43 + }, + "end": { + "line": 58, + "column": 48 + }, + "identifierName": "debug" + }, + "name": "debug" + }, + "computed": false + }, + "consequent": { + "type": "BlockStatement", + "start": 1967, + "end": 2002, + "loc": { + "start": { + "line": 58, + "column": 49 + }, + "end": { + "line": 60, + "column": 5 + } + }, + "body": [ + { + "type": "ExpressionStatement", + "start": 1976, + "end": 1995, + "loc": { + "start": { + "line": 59, + "column": 6 + }, + "end": { + "line": 59, + "column": 25 + } + }, + "expression": { + "type": "CallExpression", + "start": 1976, + "end": 1994, + "loc": { + "start": { + "line": 59, + "column": 6 + }, + "end": { + "line": 59, + "column": 24 + } + }, + "callee": { + "type": "MemberExpression", + "start": 1976, + "end": 1987, + "loc": { + "start": { + "line": 59, + "column": 6 + }, + "end": { + "line": 59, + "column": 17 + } + }, + "object": { + "type": "Identifier", + "start": 1976, + "end": 1983, + "loc": { + "start": { + "line": 59, + "column": 6 + }, + "end": { + "line": 59, + "column": 13 + }, + "identifierName": "console" + }, + "name": "console" + }, + "property": { + "type": "Identifier", + "start": 1984, + "end": 1987, + "loc": { + "start": { + "line": 59, + "column": 14 + }, + "end": { + "line": 59, + "column": 17 + }, + "identifierName": "log" + }, + "name": "log" + }, + "computed": false + }, + "arguments": [ + { + "type": "Identifier", + "start": 1988, + "end": 1993, + "loc": { + "start": { + "line": 59, + "column": 18 + }, + "end": { + "line": 59, + "column": 23 + }, + "identifierName": "event" + }, + "name": "event" + } + ] + } + } + ], + "directives": [] + }, + "alternate": null + }, + { + "type": "VariableDeclaration", + "start": 2014, + "end": 2025, + "loc": { + "start": { + "line": 62, + "column": 4 + }, + "end": { + "line": 62, + "column": 15 + } + }, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 2018, + "end": 2024, + "loc": { + "start": { + "line": 62, + "column": 8 + }, + "end": { + "line": 62, + "column": 14 + } + }, + "id": { + "type": "Identifier", + "start": 2018, + "end": 2024, + "loc": { + "start": { + "line": 62, + "column": 8 + }, + "end": { + "line": 62, + "column": 14 + }, + "identifierName": "output" + }, + "name": "output" + }, + "init": null + } + ], + "kind": "let" + }, + { + "type": "IfStatement", + "start": 2033, + "end": 2394, + "loc": { + "start": { + "line": 64, + "column": 4 + }, + "end": { + "line": 76, + "column": 5 + } + }, + "test": { + "type": "LogicalExpression", + "start": 2044, + "end": 2310, + "loc": { + "start": { + "line": 65, + "column": 6 + }, + "end": { + "line": 71, + "column": 33 + } + }, + "left": { + "type": "LogicalExpression", + "start": 2044, + "end": 2272, + "loc": { + "start": { + "line": 65, + "column": 6 + }, + "end": { + "line": 70, + "column": 32 + } + }, + "left": { + "type": "LogicalExpression", + "start": 2044, + "end": 2235, + "loc": { + "start": { + "line": 65, + "column": 6 + }, + "end": { + "line": 69, + "column": 36 + } + }, + "left": { + "type": "LogicalExpression", + "start": 2044, + "end": 2194, + "loc": { + "start": { + "line": 65, + "column": 6 + }, + "end": { + "line": 68, + "column": 38 + } + }, + "left": { + "type": "LogicalExpression", + "start": 2044, + "end": 2151, + "loc": { + "start": { + "line": 65, + "column": 6 + }, + "end": { + "line": 67, + "column": 34 + } + }, + "left": { + "type": "LogicalExpression", + "start": 2044, + "end": 2112, + "loc": { + "start": { + "line": 65, + "column": 6 + }, + "end": { + "line": 66, + "column": 34 + } + }, + "left": { + "type": "CallExpression", + "start": 2044, + "end": 2073, + "loc": { + "start": { + "line": 65, + "column": 6 + }, + "end": { + "line": 65, + "column": 35 + } + }, + "callee": { + "type": "MemberExpression", + "start": 2044, + "end": 2063, + "loc": { + "start": { + "line": 65, + "column": 6 + }, + "end": { + "line": 65, + "column": 25 + } + }, + "object": { + "type": "MemberExpression", + "start": 2044, + "end": 2054, + "loc": { + "start": { + "line": 65, + "column": 6 + }, + "end": { + "line": 65, + "column": 16 + } + }, + "object": { + "type": "Identifier", + "start": 2044, + "end": 2049, + "loc": { + "start": { + "line": 65, + "column": 6 + }, + "end": { + "line": 65, + "column": 11 + }, + "identifierName": "event" + }, + "name": "event" + }, + "property": { + "type": "Identifier", + "start": 2050, + "end": 2054, + "loc": { + "start": { + "line": 65, + "column": 12 + }, + "end": { + "line": 65, + "column": 16 + }, + "identifierName": "code" + }, + "name": "code" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 2055, + "end": 2063, + "loc": { + "start": { + "line": 65, + "column": 17 + }, + "end": { + "line": 65, + "column": 25 + }, + "identifierName": "includes" + }, + "name": "includes" + }, + "computed": false + }, + "arguments": [ + { + "type": "StringLiteral", + "start": 2064, + "end": 2072, + "loc": { + "start": { + "line": 65, + "column": 26 + }, + "end": { + "line": 65, + "column": 34 + } + }, + "extra": { + "rawValue": "Numpad", + "raw": "\"Numpad\"" + }, + "value": "Numpad" + } + ] + }, + "operator": "||", + "right": { + "type": "CallExpression", + "start": 2084, + "end": 2112, + "loc": { + "start": { + "line": 66, + "column": 6 + }, + "end": { + "line": 66, + "column": 34 + } + }, + "callee": { + "type": "MemberExpression", + "start": 2084, + "end": 2103, + "loc": { + "start": { + "line": 66, + "column": 6 + }, + "end": { + "line": 66, + "column": 25 + } + }, + "object": { + "type": "MemberExpression", + "start": 2084, + "end": 2094, + "loc": { + "start": { + "line": 66, + "column": 6 + }, + "end": { + "line": 66, + "column": 16 + } + }, + "object": { + "type": "Identifier", + "start": 2084, + "end": 2089, + "loc": { + "start": { + "line": 66, + "column": 6 + }, + "end": { + "line": 66, + "column": 11 + }, + "identifierName": "event" + }, + "name": "event" + }, + "property": { + "type": "Identifier", + "start": 2090, + "end": 2094, + "loc": { + "start": { + "line": 66, + "column": 12 + }, + "end": { + "line": 66, + "column": 16 + }, + "identifierName": "code" + }, + "name": "code" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 2095, + "end": 2103, + "loc": { + "start": { + "line": 66, + "column": 17 + }, + "end": { + "line": 66, + "column": 25 + }, + "identifierName": "includes" + }, + "name": "includes" + }, + "computed": false + }, + "arguments": [ + { + "type": "StringLiteral", + "start": 2104, + "end": 2111, + "loc": { + "start": { + "line": 66, + "column": 26 + }, + "end": { + "line": 66, + "column": 33 + } + }, + "extra": { + "rawValue": "Shift", + "raw": "\"Shift\"" + }, + "value": "Shift" + } + ] + } + }, + "operator": "||", + "right": { + "type": "CallExpression", + "start": 2123, + "end": 2151, + "loc": { + "start": { + "line": 67, + "column": 6 + }, + "end": { + "line": 67, + "column": 34 + } + }, + "callee": { + "type": "MemberExpression", + "start": 2123, + "end": 2142, + "loc": { + "start": { + "line": 67, + "column": 6 + }, + "end": { + "line": 67, + "column": 25 + } + }, + "object": { + "type": "MemberExpression", + "start": 2123, + "end": 2133, + "loc": { + "start": { + "line": 67, + "column": 6 + }, + "end": { + "line": 67, + "column": 16 + } + }, + "object": { + "type": "Identifier", + "start": 2123, + "end": 2128, + "loc": { + "start": { + "line": 67, + "column": 6 + }, + "end": { + "line": 67, + "column": 11 + }, + "identifierName": "event" + }, + "name": "event" + }, + "property": { + "type": "Identifier", + "start": 2129, + "end": 2133, + "loc": { + "start": { + "line": 67, + "column": 12 + }, + "end": { + "line": 67, + "column": 16 + }, + "identifierName": "code" + }, + "name": "code" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 2134, + "end": 2142, + "loc": { + "start": { + "line": 67, + "column": 17 + }, + "end": { + "line": 67, + "column": 25 + }, + "identifierName": "includes" + }, + "name": "includes" + }, + "computed": false + }, + "arguments": [ + { + "type": "StringLiteral", + "start": 2143, + "end": 2150, + "loc": { + "start": { + "line": 67, + "column": 26 + }, + "end": { + "line": 67, + "column": 33 + } + }, + "extra": { + "rawValue": "Space", + "raw": "\"Space\"" + }, + "value": "Space" + } + ] + } + }, + "operator": "||", + "right": { + "type": "CallExpression", + "start": 2162, + "end": 2194, + "loc": { + "start": { + "line": 68, + "column": 6 + }, + "end": { + "line": 68, + "column": 38 + } + }, + "callee": { + "type": "MemberExpression", + "start": 2162, + "end": 2181, + "loc": { + "start": { + "line": 68, + "column": 6 + }, + "end": { + "line": 68, + "column": 25 + } + }, + "object": { + "type": "MemberExpression", + "start": 2162, + "end": 2172, + "loc": { + "start": { + "line": 68, + "column": 6 + }, + "end": { + "line": 68, + "column": 16 + } + }, + "object": { + "type": "Identifier", + "start": 2162, + "end": 2167, + "loc": { + "start": { + "line": 68, + "column": 6 + }, + "end": { + "line": 68, + "column": 11 + }, + "identifierName": "event" + }, + "name": "event" + }, + "property": { + "type": "Identifier", + "start": 2168, + "end": 2172, + "loc": { + "start": { + "line": 68, + "column": 12 + }, + "end": { + "line": 68, + "column": 16 + }, + "identifierName": "code" + }, + "name": "code" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 2173, + "end": 2181, + "loc": { + "start": { + "line": 68, + "column": 17 + }, + "end": { + "line": 68, + "column": 25 + }, + "identifierName": "includes" + }, + "name": "includes" + }, + "computed": false + }, + "arguments": [ + { + "type": "StringLiteral", + "start": 2182, + "end": 2193, + "loc": { + "start": { + "line": 68, + "column": 26 + }, + "end": { + "line": 68, + "column": 37 + } + }, + "extra": { + "rawValue": "Backspace", + "raw": "\"Backspace\"" + }, + "value": "Backspace" + } + ] + } + }, + "operator": "||", + "right": { + "type": "CallExpression", + "start": 2205, + "end": 2235, + "loc": { + "start": { + "line": 69, + "column": 6 + }, + "end": { + "line": 69, + "column": 36 + } + }, + "callee": { + "type": "MemberExpression", + "start": 2205, + "end": 2224, + "loc": { + "start": { + "line": 69, + "column": 6 + }, + "end": { + "line": 69, + "column": 25 + } + }, + "object": { + "type": "MemberExpression", + "start": 2205, + "end": 2215, + "loc": { + "start": { + "line": 69, + "column": 6 + }, + "end": { + "line": 69, + "column": 16 + } + }, + "object": { + "type": "Identifier", + "start": 2205, + "end": 2210, + "loc": { + "start": { + "line": 69, + "column": 6 + }, + "end": { + "line": 69, + "column": 11 + }, + "identifierName": "event" + }, + "name": "event" + }, + "property": { + "type": "Identifier", + "start": 2211, + "end": 2215, + "loc": { + "start": { + "line": 69, + "column": 12 + }, + "end": { + "line": 69, + "column": 16 + }, + "identifierName": "code" + }, + "name": "code" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 2216, + "end": 2224, + "loc": { + "start": { + "line": 69, + "column": 17 + }, + "end": { + "line": 69, + "column": 25 + }, + "identifierName": "includes" + }, + "name": "includes" + }, + "computed": false + }, + "arguments": [ + { + "type": "StringLiteral", + "start": 2225, + "end": 2234, + "loc": { + "start": { + "line": 69, + "column": 26 + }, + "end": { + "line": 69, + "column": 35 + } + }, + "extra": { + "rawValue": "Control", + "raw": "\"Control\"" + }, + "value": "Control" + } + ] + } + }, + "operator": "||", + "right": { + "type": "CallExpression", + "start": 2246, + "end": 2272, + "loc": { + "start": { + "line": 70, + "column": 6 + }, + "end": { + "line": 70, + "column": 32 + } + }, + "callee": { + "type": "MemberExpression", + "start": 2246, + "end": 2265, + "loc": { + "start": { + "line": 70, + "column": 6 + }, + "end": { + "line": 70, + "column": 25 + } + }, + "object": { + "type": "MemberExpression", + "start": 2246, + "end": 2256, + "loc": { + "start": { + "line": 70, + "column": 6 + }, + "end": { + "line": 70, + "column": 16 + } + }, + "object": { + "type": "Identifier", + "start": 2246, + "end": 2251, + "loc": { + "start": { + "line": 70, + "column": 6 + }, + "end": { + "line": 70, + "column": 11 + }, + "identifierName": "event" + }, + "name": "event" + }, + "property": { + "type": "Identifier", + "start": 2252, + "end": 2256, + "loc": { + "start": { + "line": 70, + "column": 12 + }, + "end": { + "line": 70, + "column": 16 + }, + "identifierName": "code" + }, + "name": "code" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 2257, + "end": 2265, + "loc": { + "start": { + "line": 70, + "column": 17 + }, + "end": { + "line": 70, + "column": 25 + }, + "identifierName": "includes" + }, + "name": "includes" + }, + "computed": false + }, + "arguments": [ + { + "type": "StringLiteral", + "start": 2266, + "end": 2271, + "loc": { + "start": { + "line": 70, + "column": 26 + }, + "end": { + "line": 70, + "column": 31 + } + }, + "extra": { + "rawValue": "Alt", + "raw": "\"Alt\"" + }, + "value": "Alt" + } + ] + } + }, + "operator": "||", + "right": { + "type": "CallExpression", + "start": 2283, + "end": 2310, + "loc": { + "start": { + "line": 71, + "column": 6 + }, + "end": { + "line": 71, + "column": 33 + } + }, + "callee": { + "type": "MemberExpression", + "start": 2283, + "end": 2302, + "loc": { + "start": { + "line": 71, + "column": 6 + }, + "end": { + "line": 71, + "column": 25 + } + }, + "object": { + "type": "MemberExpression", + "start": 2283, + "end": 2293, + "loc": { + "start": { + "line": 71, + "column": 6 + }, + "end": { + "line": 71, + "column": 16 + } + }, + "object": { + "type": "Identifier", + "start": 2283, + "end": 2288, + "loc": { + "start": { + "line": 71, + "column": 6 + }, + "end": { + "line": 71, + "column": 11 + }, + "identifierName": "event" + }, + "name": "event" + }, + "property": { + "type": "Identifier", + "start": 2289, + "end": 2293, + "loc": { + "start": { + "line": 71, + "column": 12 + }, + "end": { + "line": 71, + "column": 16 + }, + "identifierName": "code" + }, + "name": "code" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 2294, + "end": 2302, + "loc": { + "start": { + "line": 71, + "column": 17 + }, + "end": { + "line": 71, + "column": 25 + }, + "identifierName": "includes" + }, + "name": "includes" + }, + "computed": false + }, + "arguments": [ + { + "type": "StringLiteral", + "start": 2303, + "end": 2309, + "loc": { + "start": { + "line": 71, + "column": 26 + }, + "end": { + "line": 71, + "column": 32 + } + }, + "extra": { + "rawValue": "Meta", + "raw": "\"Meta\"" + }, + "value": "Meta" + } + ] + } + }, + "consequent": { + "type": "BlockStatement", + "start": 2317, + "end": 2353, + "loc": { + "start": { + "line": 72, + "column": 5 + }, + "end": { + "line": 74, + "column": 5 + } + }, + "body": [ + { + "type": "ExpressionStatement", + "start": 2326, + "end": 2346, + "loc": { + "start": { + "line": 73, + "column": 6 + }, + "end": { + "line": 73, + "column": 26 + } + }, + "expression": { + "type": "AssignmentExpression", + "start": 2326, + "end": 2345, + "loc": { + "start": { + "line": 73, + "column": 6 + }, + "end": { + "line": 73, + "column": 25 + } + }, + "operator": "=", + "left": { + "type": "Identifier", + "start": 2326, + "end": 2332, + "loc": { + "start": { + "line": 73, + "column": 6 + }, + "end": { + "line": 73, + "column": 12 + }, + "identifierName": "output" + }, + "name": "output" + }, + "right": { + "type": "MemberExpression", + "start": 2335, + "end": 2345, + "loc": { + "start": { + "line": 73, + "column": 15 + }, + "end": { + "line": 73, + "column": 25 + } + }, + "object": { + "type": "Identifier", + "start": 2335, + "end": 2340, + "loc": { + "start": { + "line": 73, + "column": 15 + }, + "end": { + "line": 73, + "column": 20 + }, + "identifierName": "event" + }, + "name": "event" + }, + "property": { + "type": "Identifier", + "start": 2341, + "end": 2345, + "loc": { + "start": { + "line": 73, + "column": 21 + }, + "end": { + "line": 73, + "column": 25 + }, + "identifierName": "code" + }, + "name": "code" + }, + "computed": false + } + } + } + ], + "directives": [] + }, + "alternate": { + "type": "BlockStatement", + "start": 2359, + "end": 2394, + "loc": { + "start": { + "line": 74, + "column": 11 + }, + "end": { + "line": 76, + "column": 5 + } + }, + "body": [ + { + "type": "ExpressionStatement", + "start": 2368, + "end": 2387, + "loc": { + "start": { + "line": 75, + "column": 6 + }, + "end": { + "line": 75, + "column": 25 + } + }, + "expression": { + "type": "AssignmentExpression", + "start": 2368, + "end": 2386, + "loc": { + "start": { + "line": 75, + "column": 6 + }, + "end": { + "line": 75, + "column": 24 + } + }, + "operator": "=", + "left": { + "type": "Identifier", + "start": 2368, + "end": 2374, + "loc": { + "start": { + "line": 75, + "column": 6 + }, + "end": { + "line": 75, + "column": 12 + }, + "identifierName": "output" + }, + "name": "output" + }, + "right": { + "type": "MemberExpression", + "start": 2377, + "end": 2386, + "loc": { + "start": { + "line": 75, + "column": 15 + }, + "end": { + "line": 75, + "column": 24 + } + }, + "object": { + "type": "Identifier", + "start": 2377, + "end": 2382, + "loc": { + "start": { + "line": 75, + "column": 15 + }, + "end": { + "line": 75, + "column": 20 + }, + "identifierName": "event" + }, + "name": "event" + }, + "property": { + "type": "Identifier", + "start": 2383, + "end": 2386, + "loc": { + "start": { + "line": 75, + "column": 21 + }, + "end": { + "line": 75, + "column": 24 + }, + "identifierName": "key" + }, + "name": "key" + }, + "computed": false + } + } + } + ], + "directives": [], + "trailingComments": null + }, + "trailingComments": [ + { + "type": "CommentBlock", + "value": "*\r\n * If button is not uppercase, casting to lowercase\r\n ", + "start": 2402, + "end": 2471, + "loc": { + "start": { + "line": 78, + "column": 4 + }, + "end": { + "line": 80, + "column": 7 + } + } + } + ] + }, + { + "type": "IfStatement", + "start": 2477, + "end": 2677, + "loc": { + "start": { + "line": 81, + "column": 4 + }, + "end": { + "line": 86, + "column": 5 + } + }, + "test": { + "type": "LogicalExpression", + "start": 2489, + "end": 2623, + "loc": { + "start": { + "line": 82, + "column": 6 + }, + "end": { + "line": 83, + "column": 98 + } + }, + "left": { + "type": "BinaryExpression", + "start": 2489, + "end": 2520, + "loc": { + "start": { + "line": 82, + "column": 6 + }, + "end": { + "line": 82, + "column": 37 + } + }, + "left": { + "type": "Identifier", + "start": 2489, + "end": 2495, + "loc": { + "start": { + "line": 82, + "column": 6 + }, + "end": { + "line": 82, + "column": 12 + }, + "identifierName": "output" + }, + "name": "output", + "leadingComments": null + }, + "operator": "!==", + "right": { + "type": "CallExpression", + "start": 2500, + "end": 2520, + "loc": { + "start": { + "line": 82, + "column": 17 + }, + "end": { + "line": 82, + "column": 37 + } + }, + "callee": { + "type": "MemberExpression", + "start": 2500, + "end": 2518, + "loc": { + "start": { + "line": 82, + "column": 17 + }, + "end": { + "line": 82, + "column": 35 + } + }, + "object": { + "type": "Identifier", + "start": 2500, + "end": 2506, + "loc": { + "start": { + "line": 82, + "column": 17 + }, + "end": { + "line": 82, + "column": 23 + }, + "identifierName": "output" + }, + "name": "output" + }, + "property": { + "type": "Identifier", + "start": 2507, + "end": 2518, + "loc": { + "start": { + "line": 82, + "column": 24 + }, + "end": { + "line": 82, + "column": 35 + }, + "identifierName": "toUpperCase" + }, + "name": "toUpperCase" + }, + "computed": false + }, + "arguments": [] + }, + "leadingComments": null + }, + "operator": "||", + "right": { + "type": "LogicalExpression", + "start": 2532, + "end": 2622, + "loc": { + "start": { + "line": 83, + "column": 7 + }, + "end": { + "line": 83, + "column": 97 + } + }, + "left": { + "type": "LogicalExpression", + "start": 2532, + "end": 2596, + "loc": { + "start": { + "line": 83, + "column": 7 + }, + "end": { + "line": 83, + "column": 71 + } + }, + "left": { + "type": "BinaryExpression", + "start": 2532, + "end": 2553, + "loc": { + "start": { + "line": 83, + "column": 7 + }, + "end": { + "line": 83, + "column": 28 + } + }, + "left": { + "type": "MemberExpression", + "start": 2532, + "end": 2545, + "loc": { + "start": { + "line": 83, + "column": 7 + }, + "end": { + "line": 83, + "column": 20 + } + }, + "object": { + "type": "MemberExpression", + "start": 2532, + "end": 2542, + "loc": { + "start": { + "line": 83, + "column": 7 + }, + "end": { + "line": 83, + "column": 17 + } + }, + "object": { + "type": "Identifier", + "start": 2532, + "end": 2537, + "loc": { + "start": { + "line": 83, + "column": 7 + }, + "end": { + "line": 83, + "column": 12 + }, + "identifierName": "event" + }, + "name": "event" + }, + "property": { + "type": "Identifier", + "start": 2538, + "end": 2542, + "loc": { + "start": { + "line": 83, + "column": 13 + }, + "end": { + "line": 83, + "column": 17 + }, + "identifierName": "code" + }, + "name": "code" + }, + "computed": false + }, + "property": { + "type": "NumericLiteral", + "start": 2543, + "end": 2544, + "loc": { + "start": { + "line": 83, + "column": 18 + }, + "end": { + "line": 83, + "column": 19 + } + }, + "extra": { + "rawValue": 0, + "raw": "0" + }, + "value": 0 + }, + "computed": true + }, + "operator": "===", + "right": { + "type": "StringLiteral", + "start": 2550, + "end": 2553, + "loc": { + "start": { + "line": 83, + "column": 25 + }, + "end": { + "line": 83, + "column": 28 + } + }, + "extra": { + "rawValue": "F", + "raw": "\"F\"" + }, + "value": "F" + } + }, + "operator": "&&", + "right": { + "type": "CallExpression", + "start": 2557, + "end": 2596, + "loc": { + "start": { + "line": 83, + "column": 32 + }, + "end": { + "line": 83, + "column": 71 + } + }, + "callee": { + "type": "MemberExpression", + "start": 2557, + "end": 2573, + "loc": { + "start": { + "line": 83, + "column": 32 + }, + "end": { + "line": 83, + "column": 48 + } + }, + "object": { + "type": "Identifier", + "start": 2557, + "end": 2563, + "loc": { + "start": { + "line": 83, + "column": 32 + }, + "end": { + "line": 83, + "column": 38 + }, + "identifierName": "Number" + }, + "name": "Number" + }, + "property": { + "type": "Identifier", + "start": 2564, + "end": 2573, + "loc": { + "start": { + "line": 83, + "column": 39 + }, + "end": { + "line": 83, + "column": 48 + }, + "identifierName": "isInteger" + }, + "name": "isInteger" + }, + "computed": false + }, + "arguments": [ + { + "type": "CallExpression", + "start": 2574, + "end": 2595, + "loc": { + "start": { + "line": 83, + "column": 49 + }, + "end": { + "line": 83, + "column": 70 + } + }, + "callee": { + "type": "Identifier", + "start": 2574, + "end": 2580, + "loc": { + "start": { + "line": 83, + "column": 49 + }, + "end": { + "line": 83, + "column": 55 + }, + "identifierName": "Number" + }, + "name": "Number" + }, + "arguments": [ + { + "type": "MemberExpression", + "start": 2581, + "end": 2594, + "loc": { + "start": { + "line": 83, + "column": 56 + }, + "end": { + "line": 83, + "column": 69 + } + }, + "object": { + "type": "MemberExpression", + "start": 2581, + "end": 2591, + "loc": { + "start": { + "line": 83, + "column": 56 + }, + "end": { + "line": 83, + "column": 66 + } + }, + "object": { + "type": "Identifier", + "start": 2581, + "end": 2586, + "loc": { + "start": { + "line": 83, + "column": 56 + }, + "end": { + "line": 83, + "column": 61 + }, + "identifierName": "event" + }, + "name": "event" + }, + "property": { + "type": "Identifier", + "start": 2587, + "end": 2591, + "loc": { + "start": { + "line": 83, + "column": 62 + }, + "end": { + "line": 83, + "column": 66 + }, + "identifierName": "code" + }, + "name": "code" + }, + "computed": false + }, + "property": { + "type": "NumericLiteral", + "start": 2592, + "end": 2593, + "loc": { + "start": { + "line": 83, + "column": 67 + }, + "end": { + "line": 83, + "column": 68 + } + }, + "extra": { + "rawValue": 1, + "raw": "1" + }, + "value": 1 + }, + "computed": true + } + ] + } + ] + } + }, + "operator": "&&", + "right": { + "type": "BinaryExpression", + "start": 2600, + "end": 2622, + "loc": { + "start": { + "line": 83, + "column": 75 + }, + "end": { + "line": 83, + "column": 97 + } + }, + "left": { + "type": "MemberExpression", + "start": 2600, + "end": 2617, + "loc": { + "start": { + "line": 83, + "column": 75 + }, + "end": { + "line": 83, + "column": 92 + } + }, + "object": { + "type": "MemberExpression", + "start": 2600, + "end": 2610, + "loc": { + "start": { + "line": 83, + "column": 75 + }, + "end": { + "line": 83, + "column": 85 + } + }, + "object": { + "type": "Identifier", + "start": 2600, + "end": 2605, + "loc": { + "start": { + "line": 83, + "column": 75 + }, + "end": { + "line": 83, + "column": 80 + }, + "identifierName": "event" + }, + "name": "event" + }, + "property": { + "type": "Identifier", + "start": 2606, + "end": 2610, + "loc": { + "start": { + "line": 83, + "column": 81 + }, + "end": { + "line": 83, + "column": 85 + }, + "identifierName": "code" + }, + "name": "code" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 2611, + "end": 2617, + "loc": { + "start": { + "line": 83, + "column": 86 + }, + "end": { + "line": 83, + "column": 92 + }, + "identifierName": "length" + }, + "name": "length" + }, + "computed": false + }, + "operator": "<=", + "right": { + "type": "NumericLiteral", + "start": 2621, + "end": 2622, + "loc": { + "start": { + "line": 83, + "column": 96 + }, + "end": { + "line": 83, + "column": 97 + } + }, + "extra": { + "rawValue": 3, + "raw": "3" + }, + "value": 3 + } + }, + "extra": { + "parenthesized": true, + "parenStart": 2531 + } + }, + "leadingComments": null + }, + "consequent": { + "type": "BlockStatement", + "start": 2631, + "end": 2677, + "loc": { + "start": { + "line": 84, + "column": 6 + }, + "end": { + "line": 86, + "column": 5 + } + }, + "body": [ + { + "type": "ExpressionStatement", + "start": 2640, + "end": 2670, + "loc": { + "start": { + "line": 85, + "column": 6 + }, + "end": { + "line": 85, + "column": 36 + } + }, + "expression": { + "type": "AssignmentExpression", + "start": 2640, + "end": 2669, + "loc": { + "start": { + "line": 85, + "column": 6 + }, + "end": { + "line": 85, + "column": 35 + } + }, + "operator": "=", + "left": { + "type": "Identifier", + "start": 2640, + "end": 2646, + "loc": { + "start": { + "line": 85, + "column": 6 + }, + "end": { + "line": 85, + "column": 12 + }, + "identifierName": "output" + }, + "name": "output" + }, + "right": { + "type": "CallExpression", + "start": 2649, + "end": 2669, + "loc": { + "start": { + "line": 85, + "column": 15 + }, + "end": { + "line": 85, + "column": 35 + } + }, + "callee": { + "type": "MemberExpression", + "start": 2649, + "end": 2667, + "loc": { + "start": { + "line": 85, + "column": 15 + }, + "end": { + "line": 85, + "column": 33 + } + }, + "object": { + "type": "Identifier", + "start": 2649, + "end": 2655, + "loc": { + "start": { + "line": 85, + "column": 15 + }, + "end": { + "line": 85, + "column": 21 + }, + "identifierName": "output" + }, + "name": "output" + }, + "property": { + "type": "Identifier", + "start": 2656, + "end": 2667, + "loc": { + "start": { + "line": 85, + "column": 22 + }, + "end": { + "line": 85, + "column": 33 + }, + "identifierName": "toLowerCase" + }, + "name": "toLowerCase" + }, + "computed": false + }, + "arguments": [] + } + } + } + ], + "directives": [] + }, + "alternate": null, + "leadingComments": [ + { + "type": "CommentBlock", + "value": "*\r\n * If button is not uppercase, casting to lowercase\r\n ", + "start": 2402, + "end": 2471, + "loc": { + "start": { + "line": 78, + "column": 4 + }, + "end": { + "line": 80, + "column": 7 + } + } + } + ] + }, + { + "type": "ReturnStatement", + "start": 2685, + "end": 2699, + "loc": { + "start": { + "line": 88, + "column": 4 + }, + "end": { + "line": 88, + "column": 18 + } + }, + "argument": { + "type": "Identifier", + "start": 2692, + "end": 2698, + "loc": { + "start": { + "line": 88, + "column": 11 + }, + "end": { + "line": 88, + "column": 17 + }, + "identifierName": "output" + }, + "name": "output" + } + } + ], + "directives": [] + } + }, + "leadingComments": [ + { + "type": "CommentBlock", + "value": "*\r\n * Transforms a KeyboardEvent's \"key.code\" string into a simple-keyboard layout format\r\n * @param {object} event The KeyboardEvent\r\n ", + "start": 1724, + "end": 1871, + "loc": { + "start": { + "line": 53, + "column": 2 + }, + "end": { + "line": 56, + "column": 5 + } + } + } + ] + } + ] + }, + "leadingComments": [ + { + "type": "CommentBlock", + "value": "*\r\n * Physical Keyboard Service\r\n ", + "start": 0, + "end": 38, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 3, + "column": 3 + } + } + } + ], + "__PseudoExport__": false, + "trailingComments": [] + }, + "leadingComments": null + } + ], + "directives": [] + }, + "comments": [ + { + "type": "CommentBlock", + "value": "*\r\n * Physical Keyboard Service\r\n ", + "start": 0, + "end": 38, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 3, + "column": 3 + } + } + }, + { + "type": "CommentBlock", + "value": "*\r\n * Creates an instance of the PhysicalKeyboard service\r\n ", + "start": 68, + "end": 136, + "loc": { + "start": { + "line": 5, + "column": 2 + }, + "end": { + "line": 7, + "column": 5 + } + } + }, + { + "type": "CommentBlock", + "value": "*\r\n * @type {object} A simple-keyboard instance\r\n ", + "start": 182, + "end": 244, + "loc": { + "start": { + "line": 9, + "column": 4 + }, + "end": { + "line": 11, + "column": 7 + } + } + }, + { + "type": "CommentBlock", + "value": "*\r\n * Initializes key event listeners\r\n ", + "start": 350, + "end": 398, + "loc": { + "start": { + "line": 17, + "column": 2 + }, + "end": { + "line": 19, + "column": 5 + } + } + }, + { + "type": "CommentLine", + "value": " Adding button style on keydown", + "start": 438, + "end": 471, + "loc": { + "start": { + "line": 21, + "column": 4 + }, + "end": { + "line": 21, + "column": 37 + } + } + }, + { + "type": "CommentLine", + "value": " Removing button style on keyup", + "start": 1181, + "end": 1214, + "loc": { + "start": { + "line": 37, + "column": 4 + }, + "end": { + "line": 37, + "column": 37 + } + } + }, + { + "type": "CommentBlock", + "value": "*\r\n * Transforms a KeyboardEvent's \"key.code\" string into a simple-keyboard layout format\r\n * @param {object} event The KeyboardEvent\r\n ", + "start": 1724, + "end": 1871, + "loc": { + "start": { + "line": 53, + "column": 2 + }, + "end": { + "line": 56, + "column": 5 + } + } + }, + { + "type": "CommentBlock", + "value": "*\r\n * If button is not uppercase, casting to lowercase\r\n ", + "start": 2402, + "end": 2471, + "loc": { + "start": { + "line": 78, + "column": 4 + }, + "end": { + "line": 80, + "column": 7 + } + } + } + ], + "tokens": [ + { + "type": "CommentBlock", + "value": "*\r\n * Physical Keyboard Service\r\n ", + "start": 0, + "end": 38, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 3, + "column": 3 + } + } + }, + { + "type": { + "label": "class", + "keyword": "class", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "class", + "start": 40, + "end": 45, + "loc": { + "start": { + "line": 4, + "column": 0 + }, + "end": { + "line": 4, + "column": 5 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "PhysicalKeyboard", + "start": 46, + "end": 62, + "loc": { + "start": { + "line": 4, + "column": 6 + }, + "end": { + "line": 4, + "column": 22 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 63, + "end": 64, + "loc": { + "start": { + "line": 4, + "column": 23 + }, + "end": { + "line": 4, + "column": 24 + } + } + }, + { + "type": "CommentBlock", + "value": "*\r\n * Creates an instance of the PhysicalKeyboard service\r\n ", + "start": 68, + "end": 136, + "loc": { + "start": { + "line": 5, + "column": 2 + }, + "end": { + "line": 7, + "column": 5 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "constructor", + "start": 140, + "end": 151, + "loc": { + "start": { + "line": 8, + "column": 2 + }, + "end": { + "line": 8, + "column": 13 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 151, + "end": 152, + "loc": { + "start": { + "line": 8, + "column": 13 + }, + "end": { + "line": 8, + "column": 14 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "simpleKeyboardInstance", + "start": 152, + "end": 174, + "loc": { + "start": { + "line": 8, + "column": 14 + }, + "end": { + "line": 8, + "column": 36 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 174, + "end": 175, + "loc": { + "start": { + "line": 8, + "column": 36 + }, + "end": { + "line": 8, + "column": 37 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 175, + "end": 176, + "loc": { + "start": { + "line": 8, + "column": 37 + }, + "end": { + "line": 8, + "column": 38 + } + } + }, + { + "type": "CommentBlock", + "value": "*\r\n * @type {object} A simple-keyboard instance\r\n ", + "start": 182, + "end": 244, + "loc": { + "start": { + "line": 9, + "column": 4 + }, + "end": { + "line": 11, + "column": 7 + } + } + }, + { + "type": { + "label": "this", + "keyword": "this", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "this", + "start": 250, + "end": 254, + "loc": { + "start": { + "line": 12, + "column": 4 + }, + "end": { + "line": 12, + "column": 8 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 254, + "end": 255, + "loc": { + "start": { + "line": 12, + "column": 8 + }, + "end": { + "line": 12, + "column": 9 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "simpleKeyboardInstance", + "start": 255, + "end": 277, + "loc": { + "start": { + "line": 12, + "column": 9 + }, + "end": { + "line": 12, + "column": 31 + } + } + }, + { + "type": { + "label": "=", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": true, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "=", + "start": 278, + "end": 279, + "loc": { + "start": { + "line": 12, + "column": 32 + }, + "end": { + "line": 12, + "column": 33 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "simpleKeyboardInstance", + "start": 280, + "end": 302, + "loc": { + "start": { + "line": 12, + "column": 34 + }, + "end": { + "line": 12, + "column": 56 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 302, + "end": 303, + "loc": { + "start": { + "line": 12, + "column": 56 + }, + "end": { + "line": 12, + "column": 57 + } + } + }, + { + "type": { + "label": "this", + "keyword": "this", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "this", + "start": 311, + "end": 315, + "loc": { + "start": { + "line": 14, + "column": 4 + }, + "end": { + "line": 14, + "column": 8 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 315, + "end": 316, + "loc": { + "start": { + "line": 14, + "column": 8 + }, + "end": { + "line": 14, + "column": 9 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "initKeyboardListener", + "start": 316, + "end": 336, + "loc": { + "start": { + "line": 14, + "column": 9 + }, + "end": { + "line": 14, + "column": 29 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 336, + "end": 337, + "loc": { + "start": { + "line": 14, + "column": 29 + }, + "end": { + "line": 14, + "column": 30 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 337, + "end": 338, + "loc": { + "start": { + "line": 14, + "column": 30 + }, + "end": { + "line": 14, + "column": 31 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 338, + "end": 339, + "loc": { + "start": { + "line": 14, + "column": 31 + }, + "end": { + "line": 14, + "column": 32 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 343, + "end": 344, + "loc": { + "start": { + "line": 15, + "column": 2 + }, + "end": { + "line": 15, + "column": 3 + } + } + }, + { + "type": "CommentBlock", + "value": "*\r\n * Initializes key event listeners\r\n ", + "start": 350, + "end": 398, + "loc": { + "start": { + "line": 17, + "column": 2 + }, + "end": { + "line": 19, + "column": 5 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "initKeyboardListener", + "start": 402, + "end": 422, + "loc": { + "start": { + "line": 20, + "column": 2 + }, + "end": { + "line": 20, + "column": 22 + } + } + }, + { + "type": { + "label": "=", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": true, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "=", + "start": 423, + "end": 424, + "loc": { + "start": { + "line": 20, + "column": 23 + }, + "end": { + "line": 20, + "column": 24 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 425, + "end": 426, + "loc": { + "start": { + "line": 20, + "column": 25 + }, + "end": { + "line": 20, + "column": 26 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 426, + "end": 427, + "loc": { + "start": { + "line": 20, + "column": 26 + }, + "end": { + "line": 20, + "column": 27 + } + } + }, + { + "type": { + "label": "=>", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 428, + "end": 430, + "loc": { + "start": { + "line": 20, + "column": 28 + }, + "end": { + "line": 20, + "column": 30 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 431, + "end": 432, + "loc": { + "start": { + "line": 20, + "column": 31 + }, + "end": { + "line": 20, + "column": 32 + } + } + }, + { + "type": "CommentLine", + "value": " Adding button style on keydown", + "start": 438, + "end": 471, + "loc": { + "start": { + "line": 21, + "column": 4 + }, + "end": { + "line": 21, + "column": 37 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "document", + "start": 477, + "end": 485, + "loc": { + "start": { + "line": 22, + "column": 4 + }, + "end": { + "line": 22, + "column": 12 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 485, + "end": 486, + "loc": { + "start": { + "line": 22, + "column": 12 + }, + "end": { + "line": 22, + "column": 13 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "addEventListener", + "start": 486, + "end": 502, + "loc": { + "start": { + "line": 22, + "column": 13 + }, + "end": { + "line": 22, + "column": 29 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 502, + "end": 503, + "loc": { + "start": { + "line": 22, + "column": 29 + }, + "end": { + "line": 22, + "column": 30 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "keydown", + "start": 503, + "end": 512, + "loc": { + "start": { + "line": 22, + "column": 30 + }, + "end": { + "line": 22, + "column": 39 + } + } + }, + { + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 512, + "end": 513, + "loc": { + "start": { + "line": 22, + "column": 39 + }, + "end": { + "line": 22, + "column": 40 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 514, + "end": 515, + "loc": { + "start": { + "line": 22, + "column": 41 + }, + "end": { + "line": 22, + "column": 42 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "event", + "start": 515, + "end": 520, + "loc": { + "start": { + "line": 22, + "column": 42 + }, + "end": { + "line": 22, + "column": 47 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 520, + "end": 521, + "loc": { + "start": { + "line": 22, + "column": 47 + }, + "end": { + "line": 22, + "column": 48 + } + } + }, + { + "type": { + "label": "=>", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 522, + "end": 524, + "loc": { + "start": { + "line": 22, + "column": 49 + }, + "end": { + "line": 22, + "column": 51 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 525, + "end": 526, + "loc": { + "start": { + "line": 22, + "column": 52 + }, + "end": { + "line": 22, + "column": 53 + } + } + }, + { + "type": { + "label": "if", + "keyword": "if", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "if", + "start": 534, + "end": 536, + "loc": { + "start": { + "line": 23, + "column": 6 + }, + "end": { + "line": 23, + "column": 8 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 536, + "end": 537, + "loc": { + "start": { + "line": 23, + "column": 8 + }, + "end": { + "line": 23, + "column": 9 + } + } + }, + { + "type": { + "label": "this", + "keyword": "this", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "this", + "start": 537, + "end": 541, + "loc": { + "start": { + "line": 23, + "column": 9 + }, + "end": { + "line": 23, + "column": 13 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 541, + "end": 542, + "loc": { + "start": { + "line": 23, + "column": 13 + }, + "end": { + "line": 23, + "column": 14 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "simpleKeyboardInstance", + "start": 542, + "end": 564, + "loc": { + "start": { + "line": 23, + "column": 14 + }, + "end": { + "line": 23, + "column": 36 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 564, + "end": 565, + "loc": { + "start": { + "line": 23, + "column": 36 + }, + "end": { + "line": 23, + "column": 37 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "options", + "start": 565, + "end": 572, + "loc": { + "start": { + "line": 23, + "column": 37 + }, + "end": { + "line": 23, + "column": 44 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 572, + "end": 573, + "loc": { + "start": { + "line": 23, + "column": 44 + }, + "end": { + "line": 23, + "column": 45 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "physicalKeyboardHighlight", + "start": 573, + "end": 598, + "loc": { + "start": { + "line": 23, + "column": 45 + }, + "end": { + "line": 23, + "column": 70 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 598, + "end": 599, + "loc": { + "start": { + "line": 23, + "column": 70 + }, + "end": { + "line": 23, + "column": 71 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 599, + "end": 600, + "loc": { + "start": { + "line": 23, + "column": 71 + }, + "end": { + "line": 23, + "column": 72 + } + } + }, + { + "type": { + "label": "let", + "keyword": "let", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "let", + "start": 610, + "end": 613, + "loc": { + "start": { + "line": 24, + "column": 8 + }, + "end": { + "line": 24, + "column": 11 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "buttonPressed", + "start": 614, + "end": 627, + "loc": { + "start": { + "line": 24, + "column": 12 + }, + "end": { + "line": 24, + "column": 25 + } + } + }, + { + "type": { + "label": "=", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": true, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "=", + "start": 628, + "end": 629, + "loc": { + "start": { + "line": 24, + "column": 26 + }, + "end": { + "line": 24, + "column": 27 + } + } + }, + { + "type": { + "label": "this", + "keyword": "this", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "this", + "start": 630, + "end": 634, + "loc": { + "start": { + "line": 24, + "column": 28 + }, + "end": { + "line": 24, + "column": 32 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 634, + "end": 635, + "loc": { + "start": { + "line": 24, + "column": 32 + }, + "end": { + "line": 24, + "column": 33 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "getSimpleKeyboardLayoutKey", + "start": 635, + "end": 661, + "loc": { + "start": { + "line": 24, + "column": 33 + }, + "end": { + "line": 24, + "column": 59 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 661, + "end": 662, + "loc": { + "start": { + "line": 24, + "column": 59 + }, + "end": { + "line": 24, + "column": 60 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "event", + "start": 662, + "end": 667, + "loc": { + "start": { + "line": 24, + "column": 60 + }, + "end": { + "line": 24, + "column": 65 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 667, + "end": 668, + "loc": { + "start": { + "line": 24, + "column": 65 + }, + "end": { + "line": 24, + "column": 66 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 668, + "end": 669, + "loc": { + "start": { + "line": 24, + "column": 66 + }, + "end": { + "line": 24, + "column": 67 + } + } + }, + { + "type": { + "label": "this", + "keyword": "this", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "this", + "start": 681, + "end": 685, + "loc": { + "start": { + "line": 26, + "column": 8 + }, + "end": { + "line": 26, + "column": 12 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 685, + "end": 686, + "loc": { + "start": { + "line": 26, + "column": 12 + }, + "end": { + "line": 26, + "column": 13 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "simpleKeyboardInstance", + "start": 686, + "end": 708, + "loc": { + "start": { + "line": 26, + "column": 13 + }, + "end": { + "line": 26, + "column": 35 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 708, + "end": 709, + "loc": { + "start": { + "line": 26, + "column": 35 + }, + "end": { + "line": 26, + "column": 36 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "dispatch", + "start": 709, + "end": 717, + "loc": { + "start": { + "line": 26, + "column": 36 + }, + "end": { + "line": 26, + "column": 44 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 717, + "end": 718, + "loc": { + "start": { + "line": 26, + "column": 44 + }, + "end": { + "line": 26, + "column": 45 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "instance", + "start": 718, + "end": 726, + "loc": { + "start": { + "line": 26, + "column": 45 + }, + "end": { + "line": 26, + "column": 53 + } + } + }, + { + "type": { + "label": "=>", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 727, + "end": 729, + "loc": { + "start": { + "line": 26, + "column": 54 + }, + "end": { + "line": 26, + "column": 56 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 730, + "end": 731, + "loc": { + "start": { + "line": 26, + "column": 57 + }, + "end": { + "line": 26, + "column": 58 + } + } + }, + { + "type": { + "label": "let", + "keyword": "let", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "let", + "start": 743, + "end": 746, + "loc": { + "start": { + "line": 27, + "column": 10 + }, + "end": { + "line": 27, + "column": 13 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "buttonDOM", + "start": 747, + "end": 756, + "loc": { + "start": { + "line": 27, + "column": 14 + }, + "end": { + "line": 27, + "column": 23 + } + } + }, + { + "type": { + "label": "=", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": true, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "=", + "start": 757, + "end": 758, + "loc": { + "start": { + "line": 27, + "column": 24 + }, + "end": { + "line": 27, + "column": 25 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "instance", + "start": 759, + "end": 767, + "loc": { + "start": { + "line": 27, + "column": 26 + }, + "end": { + "line": 27, + "column": 34 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 767, + "end": 768, + "loc": { + "start": { + "line": 27, + "column": 34 + }, + "end": { + "line": 27, + "column": 35 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "getButtonElement", + "start": 768, + "end": 784, + "loc": { + "start": { + "line": 27, + "column": 35 + }, + "end": { + "line": 27, + "column": 51 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 784, + "end": 785, + "loc": { + "start": { + "line": 27, + "column": 51 + }, + "end": { + "line": 27, + "column": 52 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "buttonPressed", + "start": 785, + "end": 798, + "loc": { + "start": { + "line": 27, + "column": 52 + }, + "end": { + "line": 27, + "column": 65 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 798, + "end": 799, + "loc": { + "start": { + "line": 27, + "column": 65 + }, + "end": { + "line": 27, + "column": 66 + } + } + }, + { + "type": { + "label": "||", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": 1, + "updateContext": null + }, + "value": "||", + "start": 800, + "end": 802, + "loc": { + "start": { + "line": 27, + "column": 67 + }, + "end": { + "line": 27, + "column": 69 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "instance", + "start": 803, + "end": 811, + "loc": { + "start": { + "line": 27, + "column": 70 + }, + "end": { + "line": 27, + "column": 78 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 811, + "end": 812, + "loc": { + "start": { + "line": 27, + "column": 78 + }, + "end": { + "line": 27, + "column": 79 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "getButtonElement", + "start": 812, + "end": 828, + "loc": { + "start": { + "line": 27, + "column": 79 + }, + "end": { + "line": 27, + "column": 95 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 828, + "end": 829, + "loc": { + "start": { + "line": 27, + "column": 95 + }, + "end": { + "line": 27, + "column": 96 + } + } + }, + { + "type": { + "label": "`", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 829, + "end": 830, + "loc": { + "start": { + "line": 27, + "column": 96 + }, + "end": { + "line": 27, + "column": 97 + } + } + }, + { + "type": { + "label": "template", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "{", + "start": 830, + "end": 831, + "loc": { + "start": { + "line": 27, + "column": 97 + }, + "end": { + "line": 27, + "column": 98 + } + } + }, + { + "type": { + "label": "${", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 831, + "end": 833, + "loc": { + "start": { + "line": 27, + "column": 98 + }, + "end": { + "line": 27, + "column": 100 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "buttonPressed", + "start": 833, + "end": 846, + "loc": { + "start": { + "line": 27, + "column": 100 + }, + "end": { + "line": 27, + "column": 113 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 846, + "end": 847, + "loc": { + "start": { + "line": 27, + "column": 113 + }, + "end": { + "line": 27, + "column": 114 + } + } + }, + { + "type": { + "label": "template", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "}", + "start": 847, + "end": 848, + "loc": { + "start": { + "line": 27, + "column": 114 + }, + "end": { + "line": 27, + "column": 115 + } + } + }, + { + "type": { + "label": "`", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 848, + "end": 849, + "loc": { + "start": { + "line": 27, + "column": 115 + }, + "end": { + "line": 27, + "column": 116 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 849, + "end": 850, + "loc": { + "start": { + "line": 27, + "column": 116 + }, + "end": { + "line": 27, + "column": 117 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 850, + "end": 851, + "loc": { + "start": { + "line": 27, + "column": 117 + }, + "end": { + "line": 27, + "column": 118 + } + } + }, + { + "type": { + "label": "if", + "keyword": "if", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "if", + "start": 865, + "end": 867, + "loc": { + "start": { + "line": 29, + "column": 10 + }, + "end": { + "line": 29, + "column": 12 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 867, + "end": 868, + "loc": { + "start": { + "line": 29, + "column": 12 + }, + "end": { + "line": 29, + "column": 13 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "buttonDOM", + "start": 868, + "end": 877, + "loc": { + "start": { + "line": 29, + "column": 13 + }, + "end": { + "line": 29, + "column": 22 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 877, + "end": 878, + "loc": { + "start": { + "line": 29, + "column": 22 + }, + "end": { + "line": 29, + "column": 23 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 878, + "end": 879, + "loc": { + "start": { + "line": 29, + "column": 23 + }, + "end": { + "line": 29, + "column": 24 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "buttonDOM", + "start": 893, + "end": 902, + "loc": { + "start": { + "line": 30, + "column": 12 + }, + "end": { + "line": 30, + "column": 21 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 902, + "end": 903, + "loc": { + "start": { + "line": 30, + "column": 21 + }, + "end": { + "line": 30, + "column": 22 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "style", + "start": 903, + "end": 908, + "loc": { + "start": { + "line": 30, + "column": 22 + }, + "end": { + "line": 30, + "column": 27 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 908, + "end": 909, + "loc": { + "start": { + "line": 30, + "column": 27 + }, + "end": { + "line": 30, + "column": 28 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "backgroundColor", + "start": 909, + "end": 924, + "loc": { + "start": { + "line": 30, + "column": 28 + }, + "end": { + "line": 30, + "column": 43 + } + } + }, + { + "type": { + "label": "=", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": true, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "=", + "start": 925, + "end": 926, + "loc": { + "start": { + "line": 30, + "column": 44 + }, + "end": { + "line": 30, + "column": 45 + } + } + }, + { + "type": { + "label": "this", + "keyword": "this", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "this", + "start": 927, + "end": 931, + "loc": { + "start": { + "line": 30, + "column": 46 + }, + "end": { + "line": 30, + "column": 50 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 931, + "end": 932, + "loc": { + "start": { + "line": 30, + "column": 50 + }, + "end": { + "line": 30, + "column": 51 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "simpleKeyboardInstance", + "start": 932, + "end": 954, + "loc": { + "start": { + "line": 30, + "column": 51 + }, + "end": { + "line": 30, + "column": 73 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 954, + "end": 955, + "loc": { + "start": { + "line": 30, + "column": 73 + }, + "end": { + "line": 30, + "column": 74 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "options", + "start": 955, + "end": 962, + "loc": { + "start": { + "line": 30, + "column": 74 + }, + "end": { + "line": 30, + "column": 81 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 962, + "end": 963, + "loc": { + "start": { + "line": 30, + "column": 81 + }, + "end": { + "line": 30, + "column": 82 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "physicalKeyboardHighlightBgColor", + "start": 963, + "end": 995, + "loc": { + "start": { + "line": 30, + "column": 82 + }, + "end": { + "line": 30, + "column": 114 + } + } + }, + { + "type": { + "label": "||", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": 1, + "updateContext": null + }, + "value": "||", + "start": 996, + "end": 998, + "loc": { + "start": { + "line": 30, + "column": 115 + }, + "end": { + "line": 30, + "column": 117 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "#9ab4d0", + "start": 999, + "end": 1008, + "loc": { + "start": { + "line": 30, + "column": 118 + }, + "end": { + "line": 30, + "column": 127 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1008, + "end": 1009, + "loc": { + "start": { + "line": 30, + "column": 127 + }, + "end": { + "line": 30, + "column": 128 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "buttonDOM", + "start": 1023, + "end": 1032, + "loc": { + "start": { + "line": 31, + "column": 12 + }, + "end": { + "line": 31, + "column": 21 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1032, + "end": 1033, + "loc": { + "start": { + "line": 31, + "column": 21 + }, + "end": { + "line": 31, + "column": 22 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "style", + "start": 1033, + "end": 1038, + "loc": { + "start": { + "line": 31, + "column": 22 + }, + "end": { + "line": 31, + "column": 27 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1038, + "end": 1039, + "loc": { + "start": { + "line": 31, + "column": 27 + }, + "end": { + "line": 31, + "column": 28 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "color", + "start": 1039, + "end": 1044, + "loc": { + "start": { + "line": 31, + "column": 28 + }, + "end": { + "line": 31, + "column": 33 + } + } + }, + { + "type": { + "label": "=", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": true, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "=", + "start": 1045, + "end": 1046, + "loc": { + "start": { + "line": 31, + "column": 34 + }, + "end": { + "line": 31, + "column": 35 + } + } + }, + { + "type": { + "label": "this", + "keyword": "this", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "this", + "start": 1047, + "end": 1051, + "loc": { + "start": { + "line": 31, + "column": 36 + }, + "end": { + "line": 31, + "column": 40 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1051, + "end": 1052, + "loc": { + "start": { + "line": 31, + "column": 40 + }, + "end": { + "line": 31, + "column": 41 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "simpleKeyboardInstance", + "start": 1052, + "end": 1074, + "loc": { + "start": { + "line": 31, + "column": 41 + }, + "end": { + "line": 31, + "column": 63 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1074, + "end": 1075, + "loc": { + "start": { + "line": 31, + "column": 63 + }, + "end": { + "line": 31, + "column": 64 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "options", + "start": 1075, + "end": 1082, + "loc": { + "start": { + "line": 31, + "column": 64 + }, + "end": { + "line": 31, + "column": 71 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1082, + "end": 1083, + "loc": { + "start": { + "line": 31, + "column": 71 + }, + "end": { + "line": 31, + "column": 72 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "physicalKeyboardHighlightTextColor", + "start": 1083, + "end": 1117, + "loc": { + "start": { + "line": 31, + "column": 72 + }, + "end": { + "line": 31, + "column": 106 + } + } + }, + { + "type": { + "label": "||", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": 1, + "updateContext": null + }, + "value": "||", + "start": 1118, + "end": 1120, + "loc": { + "start": { + "line": 31, + "column": 107 + }, + "end": { + "line": 31, + "column": 109 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "white", + "start": 1121, + "end": 1128, + "loc": { + "start": { + "line": 31, + "column": 110 + }, + "end": { + "line": 31, + "column": 117 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1128, + "end": 1129, + "loc": { + "start": { + "line": 31, + "column": 117 + }, + "end": { + "line": 31, + "column": 118 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 1141, + "end": 1142, + "loc": { + "start": { + "line": 32, + "column": 10 + }, + "end": { + "line": 32, + "column": 11 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 1152, + "end": 1153, + "loc": { + "start": { + "line": 33, + "column": 8 + }, + "end": { + "line": 33, + "column": 9 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 1153, + "end": 1154, + "loc": { + "start": { + "line": 33, + "column": 9 + }, + "end": { + "line": 33, + "column": 10 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1154, + "end": 1155, + "loc": { + "start": { + "line": 33, + "column": 10 + }, + "end": { + "line": 33, + "column": 11 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 1163, + "end": 1164, + "loc": { + "start": { + "line": 34, + "column": 6 + }, + "end": { + "line": 34, + "column": 7 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 1170, + "end": 1171, + "loc": { + "start": { + "line": 35, + "column": 4 + }, + "end": { + "line": 35, + "column": 5 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 1171, + "end": 1172, + "loc": { + "start": { + "line": 35, + "column": 5 + }, + "end": { + "line": 35, + "column": 6 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1172, + "end": 1173, + "loc": { + "start": { + "line": 35, + "column": 6 + }, + "end": { + "line": 35, + "column": 7 + } + } + }, + { + "type": "CommentLine", + "value": " Removing button style on keyup", + "start": 1181, + "end": 1214, + "loc": { + "start": { + "line": 37, + "column": 4 + }, + "end": { + "line": 37, + "column": 37 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "document", + "start": 1220, + "end": 1228, + "loc": { + "start": { + "line": 38, + "column": 4 + }, + "end": { + "line": 38, + "column": 12 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1228, + "end": 1229, + "loc": { + "start": { + "line": 38, + "column": 12 + }, + "end": { + "line": 38, + "column": 13 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "addEventListener", + "start": 1229, + "end": 1245, + "loc": { + "start": { + "line": 38, + "column": 13 + }, + "end": { + "line": 38, + "column": 29 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 1245, + "end": 1246, + "loc": { + "start": { + "line": 38, + "column": 29 + }, + "end": { + "line": 38, + "column": 30 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "keyup", + "start": 1246, + "end": 1253, + "loc": { + "start": { + "line": 38, + "column": 30 + }, + "end": { + "line": 38, + "column": 37 + } + } + }, + { + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1253, + "end": 1254, + "loc": { + "start": { + "line": 38, + "column": 37 + }, + "end": { + "line": 38, + "column": 38 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 1255, + "end": 1256, + "loc": { + "start": { + "line": 38, + "column": 39 + }, + "end": { + "line": 38, + "column": 40 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "event", + "start": 1256, + "end": 1261, + "loc": { + "start": { + "line": 38, + "column": 40 + }, + "end": { + "line": 38, + "column": 45 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 1261, + "end": 1262, + "loc": { + "start": { + "line": 38, + "column": 45 + }, + "end": { + "line": 38, + "column": 46 + } + } + }, + { + "type": { + "label": "=>", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1263, + "end": 1265, + "loc": { + "start": { + "line": 38, + "column": 47 + }, + "end": { + "line": 38, + "column": 49 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 1266, + "end": 1267, + "loc": { + "start": { + "line": 38, + "column": 50 + }, + "end": { + "line": 38, + "column": 51 + } + } + }, + { + "type": { + "label": "if", + "keyword": "if", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "if", + "start": 1275, + "end": 1277, + "loc": { + "start": { + "line": 39, + "column": 6 + }, + "end": { + "line": 39, + "column": 8 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 1277, + "end": 1278, + "loc": { + "start": { + "line": 39, + "column": 8 + }, + "end": { + "line": 39, + "column": 9 + } + } + }, + { + "type": { + "label": "this", + "keyword": "this", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "this", + "start": 1278, + "end": 1282, + "loc": { + "start": { + "line": 39, + "column": 9 + }, + "end": { + "line": 39, + "column": 13 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1282, + "end": 1283, + "loc": { + "start": { + "line": 39, + "column": 13 + }, + "end": { + "line": 39, + "column": 14 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "simpleKeyboardInstance", + "start": 1283, + "end": 1305, + "loc": { + "start": { + "line": 39, + "column": 14 + }, + "end": { + "line": 39, + "column": 36 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1305, + "end": 1306, + "loc": { + "start": { + "line": 39, + "column": 36 + }, + "end": { + "line": 39, + "column": 37 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "options", + "start": 1306, + "end": 1313, + "loc": { + "start": { + "line": 39, + "column": 37 + }, + "end": { + "line": 39, + "column": 44 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1313, + "end": 1314, + "loc": { + "start": { + "line": 39, + "column": 44 + }, + "end": { + "line": 39, + "column": 45 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "physicalKeyboardHighlight", + "start": 1314, + "end": 1339, + "loc": { + "start": { + "line": 39, + "column": 45 + }, + "end": { + "line": 39, + "column": 70 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 1339, + "end": 1340, + "loc": { + "start": { + "line": 39, + "column": 70 + }, + "end": { + "line": 39, + "column": 71 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 1340, + "end": 1341, + "loc": { + "start": { + "line": 39, + "column": 71 + }, + "end": { + "line": 39, + "column": 72 + } + } + }, + { + "type": { + "label": "let", + "keyword": "let", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "let", + "start": 1351, + "end": 1354, + "loc": { + "start": { + "line": 40, + "column": 8 + }, + "end": { + "line": 40, + "column": 11 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "buttonPressed", + "start": 1355, + "end": 1368, + "loc": { + "start": { + "line": 40, + "column": 12 + }, + "end": { + "line": 40, + "column": 25 + } + } + }, + { + "type": { + "label": "=", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": true, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "=", + "start": 1369, + "end": 1370, + "loc": { + "start": { + "line": 40, + "column": 26 + }, + "end": { + "line": 40, + "column": 27 + } + } + }, + { + "type": { + "label": "this", + "keyword": "this", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "this", + "start": 1371, + "end": 1375, + "loc": { + "start": { + "line": 40, + "column": 28 + }, + "end": { + "line": 40, + "column": 32 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1375, + "end": 1376, + "loc": { + "start": { + "line": 40, + "column": 32 + }, + "end": { + "line": 40, + "column": 33 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "getSimpleKeyboardLayoutKey", + "start": 1376, + "end": 1402, + "loc": { + "start": { + "line": 40, + "column": 33 + }, + "end": { + "line": 40, + "column": 59 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 1402, + "end": 1403, + "loc": { + "start": { + "line": 40, + "column": 59 + }, + "end": { + "line": 40, + "column": 60 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "event", + "start": 1403, + "end": 1408, + "loc": { + "start": { + "line": 40, + "column": 60 + }, + "end": { + "line": 40, + "column": 65 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 1408, + "end": 1409, + "loc": { + "start": { + "line": 40, + "column": 65 + }, + "end": { + "line": 40, + "column": 66 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1409, + "end": 1410, + "loc": { + "start": { + "line": 40, + "column": 66 + }, + "end": { + "line": 40, + "column": 67 + } + } + }, + { + "type": { + "label": "this", + "keyword": "this", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "this", + "start": 1422, + "end": 1426, + "loc": { + "start": { + "line": 42, + "column": 8 + }, + "end": { + "line": 42, + "column": 12 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1426, + "end": 1427, + "loc": { + "start": { + "line": 42, + "column": 12 + }, + "end": { + "line": 42, + "column": 13 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "simpleKeyboardInstance", + "start": 1427, + "end": 1449, + "loc": { + "start": { + "line": 42, + "column": 13 + }, + "end": { + "line": 42, + "column": 35 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1449, + "end": 1450, + "loc": { + "start": { + "line": 42, + "column": 35 + }, + "end": { + "line": 42, + "column": 36 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "dispatch", + "start": 1450, + "end": 1458, + "loc": { + "start": { + "line": 42, + "column": 36 + }, + "end": { + "line": 42, + "column": 44 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 1458, + "end": 1459, + "loc": { + "start": { + "line": 42, + "column": 44 + }, + "end": { + "line": 42, + "column": 45 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "instance", + "start": 1459, + "end": 1467, + "loc": { + "start": { + "line": 42, + "column": 45 + }, + "end": { + "line": 42, + "column": 53 + } + } + }, + { + "type": { + "label": "=>", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1468, + "end": 1470, + "loc": { + "start": { + "line": 42, + "column": 54 + }, + "end": { + "line": 42, + "column": 56 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 1471, + "end": 1472, + "loc": { + "start": { + "line": 42, + "column": 57 + }, + "end": { + "line": 42, + "column": 58 + } + } + }, + { + "type": { + "label": "let", + "keyword": "let", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "let", + "start": 1484, + "end": 1487, + "loc": { + "start": { + "line": 43, + "column": 10 + }, + "end": { + "line": 43, + "column": 13 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "buttonDOM", + "start": 1488, + "end": 1497, + "loc": { + "start": { + "line": 43, + "column": 14 + }, + "end": { + "line": 43, + "column": 23 + } + } + }, + { + "type": { + "label": "=", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": true, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "=", + "start": 1498, + "end": 1499, + "loc": { + "start": { + "line": 43, + "column": 24 + }, + "end": { + "line": 43, + "column": 25 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "instance", + "start": 1500, + "end": 1508, + "loc": { + "start": { + "line": 43, + "column": 26 + }, + "end": { + "line": 43, + "column": 34 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1508, + "end": 1509, + "loc": { + "start": { + "line": 43, + "column": 34 + }, + "end": { + "line": 43, + "column": 35 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "getButtonElement", + "start": 1509, + "end": 1525, + "loc": { + "start": { + "line": 43, + "column": 35 + }, + "end": { + "line": 43, + "column": 51 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 1525, + "end": 1526, + "loc": { + "start": { + "line": 43, + "column": 51 + }, + "end": { + "line": 43, + "column": 52 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "buttonPressed", + "start": 1526, + "end": 1539, + "loc": { + "start": { + "line": 43, + "column": 52 + }, + "end": { + "line": 43, + "column": 65 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 1539, + "end": 1540, + "loc": { + "start": { + "line": 43, + "column": 65 + }, + "end": { + "line": 43, + "column": 66 + } + } + }, + { + "type": { + "label": "||", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": 1, + "updateContext": null + }, + "value": "||", + "start": 1541, + "end": 1543, + "loc": { + "start": { + "line": 43, + "column": 67 + }, + "end": { + "line": 43, + "column": 69 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "instance", + "start": 1544, + "end": 1552, + "loc": { + "start": { + "line": 43, + "column": 70 + }, + "end": { + "line": 43, + "column": 78 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1552, + "end": 1553, + "loc": { + "start": { + "line": 43, + "column": 78 + }, + "end": { + "line": 43, + "column": 79 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "getButtonElement", + "start": 1553, + "end": 1569, + "loc": { + "start": { + "line": 43, + "column": 79 + }, + "end": { + "line": 43, + "column": 95 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 1569, + "end": 1570, + "loc": { + "start": { + "line": 43, + "column": 95 + }, + "end": { + "line": 43, + "column": 96 + } + } + }, + { + "type": { + "label": "`", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 1570, + "end": 1571, + "loc": { + "start": { + "line": 43, + "column": 96 + }, + "end": { + "line": 43, + "column": 97 + } + } + }, + { + "type": { + "label": "template", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "{", + "start": 1571, + "end": 1572, + "loc": { + "start": { + "line": 43, + "column": 97 + }, + "end": { + "line": 43, + "column": 98 + } + } + }, + { + "type": { + "label": "${", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 1572, + "end": 1574, + "loc": { + "start": { + "line": 43, + "column": 98 + }, + "end": { + "line": 43, + "column": 100 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "buttonPressed", + "start": 1574, + "end": 1587, + "loc": { + "start": { + "line": 43, + "column": 100 + }, + "end": { + "line": 43, + "column": 113 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 1587, + "end": 1588, + "loc": { + "start": { + "line": 43, + "column": 113 + }, + "end": { + "line": 43, + "column": 114 + } + } + }, + { + "type": { + "label": "template", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "}", + "start": 1588, + "end": 1589, + "loc": { + "start": { + "line": 43, + "column": 114 + }, + "end": { + "line": 43, + "column": 115 + } + } + }, + { + "type": { + "label": "`", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 1589, + "end": 1590, + "loc": { + "start": { + "line": 43, + "column": 115 + }, + "end": { + "line": 43, + "column": 116 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 1590, + "end": 1591, + "loc": { + "start": { + "line": 43, + "column": 116 + }, + "end": { + "line": 43, + "column": 117 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1591, + "end": 1592, + "loc": { + "start": { + "line": 43, + "column": 117 + }, + "end": { + "line": 43, + "column": 118 + } + } + }, + { + "type": { + "label": "if", + "keyword": "if", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "if", + "start": 1606, + "end": 1608, + "loc": { + "start": { + "line": 45, + "column": 10 + }, + "end": { + "line": 45, + "column": 12 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 1608, + "end": 1609, + "loc": { + "start": { + "line": 45, + "column": 12 + }, + "end": { + "line": 45, + "column": 13 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "buttonDOM", + "start": 1609, + "end": 1618, + "loc": { + "start": { + "line": 45, + "column": 13 + }, + "end": { + "line": 45, + "column": 22 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 1618, + "end": 1619, + "loc": { + "start": { + "line": 45, + "column": 22 + }, + "end": { + "line": 45, + "column": 23 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 1619, + "end": 1620, + "loc": { + "start": { + "line": 45, + "column": 23 + }, + "end": { + "line": 45, + "column": 24 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "buttonDOM", + "start": 1634, + "end": 1643, + "loc": { + "start": { + "line": 46, + "column": 12 + }, + "end": { + "line": 46, + "column": 21 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1643, + "end": 1644, + "loc": { + "start": { + "line": 46, + "column": 21 + }, + "end": { + "line": 46, + "column": 22 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "removeAttribute", + "start": 1644, + "end": 1659, + "loc": { + "start": { + "line": 46, + "column": 22 + }, + "end": { + "line": 46, + "column": 37 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 1659, + "end": 1660, + "loc": { + "start": { + "line": 46, + "column": 37 + }, + "end": { + "line": 46, + "column": 38 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "style", + "start": 1660, + "end": 1667, + "loc": { + "start": { + "line": 46, + "column": 38 + }, + "end": { + "line": 46, + "column": 45 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 1667, + "end": 1668, + "loc": { + "start": { + "line": 46, + "column": 45 + }, + "end": { + "line": 46, + "column": 46 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1668, + "end": 1669, + "loc": { + "start": { + "line": 46, + "column": 46 + }, + "end": { + "line": 46, + "column": 47 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 1681, + "end": 1682, + "loc": { + "start": { + "line": 47, + "column": 10 + }, + "end": { + "line": 47, + "column": 11 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 1692, + "end": 1693, + "loc": { + "start": { + "line": 48, + "column": 8 + }, + "end": { + "line": 48, + "column": 9 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 1693, + "end": 1694, + "loc": { + "start": { + "line": 48, + "column": 9 + }, + "end": { + "line": 48, + "column": 10 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1694, + "end": 1695, + "loc": { + "start": { + "line": 48, + "column": 10 + }, + "end": { + "line": 48, + "column": 11 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 1703, + "end": 1704, + "loc": { + "start": { + "line": 49, + "column": 6 + }, + "end": { + "line": 49, + "column": 7 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 1710, + "end": 1711, + "loc": { + "start": { + "line": 50, + "column": 4 + }, + "end": { + "line": 50, + "column": 5 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 1711, + "end": 1712, + "loc": { + "start": { + "line": 50, + "column": 5 + }, + "end": { + "line": 50, + "column": 6 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1712, + "end": 1713, + "loc": { + "start": { + "line": 50, + "column": 6 + }, + "end": { + "line": 50, + "column": 7 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 1717, + "end": 1718, + "loc": { + "start": { + "line": 51, + "column": 2 + }, + "end": { + "line": 51, + "column": 3 + } + } + }, + { + "type": "CommentBlock", + "value": "*\r\n * Transforms a KeyboardEvent's \"key.code\" string into a simple-keyboard layout format\r\n * @param {object} event The KeyboardEvent\r\n ", + "start": 1724, + "end": 1871, + "loc": { + "start": { + "line": 53, + "column": 2 + }, + "end": { + "line": 56, + "column": 5 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "getSimpleKeyboardLayoutKey", + "start": 1875, + "end": 1901, + "loc": { + "start": { + "line": 57, + "column": 2 + }, + "end": { + "line": 57, + "column": 28 + } + } + }, + { + "type": { + "label": "=", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": true, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "=", + "start": 1902, + "end": 1903, + "loc": { + "start": { + "line": 57, + "column": 29 + }, + "end": { + "line": 57, + "column": 30 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 1904, + "end": 1905, + "loc": { + "start": { + "line": 57, + "column": 31 + }, + "end": { + "line": 57, + "column": 32 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "event", + "start": 1905, + "end": 1910, + "loc": { + "start": { + "line": 57, + "column": 32 + }, + "end": { + "line": 57, + "column": 37 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 1910, + "end": 1911, + "loc": { + "start": { + "line": 57, + "column": 37 + }, + "end": { + "line": 57, + "column": 38 + } + } + }, + { + "type": { + "label": "=>", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1912, + "end": 1914, + "loc": { + "start": { + "line": 57, + "column": 39 + }, + "end": { + "line": 57, + "column": 41 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 1915, + "end": 1916, + "loc": { + "start": { + "line": 57, + "column": 42 + }, + "end": { + "line": 57, + "column": 43 + } + } + }, + { + "type": { + "label": "if", + "keyword": "if", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "if", + "start": 1922, + "end": 1924, + "loc": { + "start": { + "line": 58, + "column": 4 + }, + "end": { + "line": 58, + "column": 6 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 1924, + "end": 1925, + "loc": { + "start": { + "line": 58, + "column": 6 + }, + "end": { + "line": 58, + "column": 7 + } + } + }, + { + "type": { + "label": "this", + "keyword": "this", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "this", + "start": 1925, + "end": 1929, + "loc": { + "start": { + "line": 58, + "column": 7 + }, + "end": { + "line": 58, + "column": 11 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1929, + "end": 1930, + "loc": { + "start": { + "line": 58, + "column": 11 + }, + "end": { + "line": 58, + "column": 12 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "simpleKeyboardInstance", + "start": 1930, + "end": 1952, + "loc": { + "start": { + "line": 58, + "column": 12 + }, + "end": { + "line": 58, + "column": 34 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1952, + "end": 1953, + "loc": { + "start": { + "line": 58, + "column": 34 + }, + "end": { + "line": 58, + "column": 35 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "options", + "start": 1953, + "end": 1960, + "loc": { + "start": { + "line": 58, + "column": 35 + }, + "end": { + "line": 58, + "column": 42 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1960, + "end": 1961, + "loc": { + "start": { + "line": 58, + "column": 42 + }, + "end": { + "line": 58, + "column": 43 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "debug", + "start": 1961, + "end": 1966, + "loc": { + "start": { + "line": 58, + "column": 43 + }, + "end": { + "line": 58, + "column": 48 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 1966, + "end": 1967, + "loc": { + "start": { + "line": 58, + "column": 48 + }, + "end": { + "line": 58, + "column": 49 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 1967, + "end": 1968, + "loc": { + "start": { + "line": 58, + "column": 49 + }, + "end": { + "line": 58, + "column": 50 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "console", + "start": 1976, + "end": 1983, + "loc": { + "start": { + "line": 59, + "column": 6 + }, + "end": { + "line": 59, + "column": 13 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1983, + "end": 1984, + "loc": { + "start": { + "line": 59, + "column": 13 + }, + "end": { + "line": 59, + "column": 14 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "log", + "start": 1984, + "end": 1987, + "loc": { + "start": { + "line": 59, + "column": 14 + }, + "end": { + "line": 59, + "column": 17 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 1987, + "end": 1988, + "loc": { + "start": { + "line": 59, + "column": 17 + }, + "end": { + "line": 59, + "column": 18 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "event", + "start": 1988, + "end": 1993, + "loc": { + "start": { + "line": 59, + "column": 18 + }, + "end": { + "line": 59, + "column": 23 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 1993, + "end": 1994, + "loc": { + "start": { + "line": 59, + "column": 23 + }, + "end": { + "line": 59, + "column": 24 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1994, + "end": 1995, + "loc": { + "start": { + "line": 59, + "column": 24 + }, + "end": { + "line": 59, + "column": 25 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 2001, + "end": 2002, + "loc": { + "start": { + "line": 60, + "column": 4 + }, + "end": { + "line": 60, + "column": 5 + } + } + }, + { + "type": { + "label": "let", + "keyword": "let", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "let", + "start": 2014, + "end": 2017, + "loc": { + "start": { + "line": 62, + "column": 4 + }, + "end": { + "line": 62, + "column": 7 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "output", + "start": 2018, + "end": 2024, + "loc": { + "start": { + "line": 62, + "column": 8 + }, + "end": { + "line": 62, + "column": 14 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 2024, + "end": 2025, + "loc": { + "start": { + "line": 62, + "column": 14 + }, + "end": { + "line": 62, + "column": 15 + } + } + }, + { + "type": { + "label": "if", + "keyword": "if", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "if", + "start": 2033, + "end": 2035, + "loc": { + "start": { + "line": 64, + "column": 4 + }, + "end": { + "line": 64, + "column": 6 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 2035, + "end": 2036, + "loc": { + "start": { + "line": 64, + "column": 6 + }, + "end": { + "line": 64, + "column": 7 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "event", + "start": 2044, + "end": 2049, + "loc": { + "start": { + "line": 65, + "column": 6 + }, + "end": { + "line": 65, + "column": 11 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 2049, + "end": 2050, + "loc": { + "start": { + "line": 65, + "column": 11 + }, + "end": { + "line": 65, + "column": 12 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "code", + "start": 2050, + "end": 2054, + "loc": { + "start": { + "line": 65, + "column": 12 + }, + "end": { + "line": 65, + "column": 16 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 2054, + "end": 2055, + "loc": { + "start": { + "line": 65, + "column": 16 + }, + "end": { + "line": 65, + "column": 17 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "includes", + "start": 2055, + "end": 2063, + "loc": { + "start": { + "line": 65, + "column": 17 + }, + "end": { + "line": 65, + "column": 25 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 2063, + "end": 2064, + "loc": { + "start": { + "line": 65, + "column": 25 + }, + "end": { + "line": 65, + "column": 26 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "Numpad", + "start": 2064, + "end": 2072, + "loc": { + "start": { + "line": 65, + "column": 26 + }, + "end": { + "line": 65, + "column": 34 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 2072, + "end": 2073, + "loc": { + "start": { + "line": 65, + "column": 34 + }, + "end": { + "line": 65, + "column": 35 + } + } + }, + { + "type": { + "label": "||", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": 1, + "updateContext": null + }, + "value": "||", + "start": 2074, + "end": 2076, + "loc": { + "start": { + "line": 65, + "column": 36 + }, + "end": { + "line": 65, + "column": 38 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "event", + "start": 2084, + "end": 2089, + "loc": { + "start": { + "line": 66, + "column": 6 + }, + "end": { + "line": 66, + "column": 11 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 2089, + "end": 2090, + "loc": { + "start": { + "line": 66, + "column": 11 + }, + "end": { + "line": 66, + "column": 12 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "code", + "start": 2090, + "end": 2094, + "loc": { + "start": { + "line": 66, + "column": 12 + }, + "end": { + "line": 66, + "column": 16 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 2094, + "end": 2095, + "loc": { + "start": { + "line": 66, + "column": 16 + }, + "end": { + "line": 66, + "column": 17 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "includes", + "start": 2095, + "end": 2103, + "loc": { + "start": { + "line": 66, + "column": 17 + }, + "end": { + "line": 66, + "column": 25 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 2103, + "end": 2104, + "loc": { + "start": { + "line": 66, + "column": 25 + }, + "end": { + "line": 66, + "column": 26 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "Shift", + "start": 2104, + "end": 2111, + "loc": { + "start": { + "line": 66, + "column": 26 + }, + "end": { + "line": 66, + "column": 33 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 2111, + "end": 2112, + "loc": { + "start": { + "line": 66, + "column": 33 + }, + "end": { + "line": 66, + "column": 34 + } + } + }, + { + "type": { + "label": "||", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": 1, + "updateContext": null + }, + "value": "||", + "start": 2113, + "end": 2115, + "loc": { + "start": { + "line": 66, + "column": 35 + }, + "end": { + "line": 66, + "column": 37 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "event", + "start": 2123, + "end": 2128, + "loc": { + "start": { + "line": 67, + "column": 6 + }, + "end": { + "line": 67, + "column": 11 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 2128, + "end": 2129, + "loc": { + "start": { + "line": 67, + "column": 11 + }, + "end": { + "line": 67, + "column": 12 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "code", + "start": 2129, + "end": 2133, + "loc": { + "start": { + "line": 67, + "column": 12 + }, + "end": { + "line": 67, + "column": 16 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 2133, + "end": 2134, + "loc": { + "start": { + "line": 67, + "column": 16 + }, + "end": { + "line": 67, + "column": 17 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "includes", + "start": 2134, + "end": 2142, + "loc": { + "start": { + "line": 67, + "column": 17 + }, + "end": { + "line": 67, + "column": 25 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 2142, + "end": 2143, + "loc": { + "start": { + "line": 67, + "column": 25 + }, + "end": { + "line": 67, + "column": 26 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "Space", + "start": 2143, + "end": 2150, + "loc": { + "start": { + "line": 67, + "column": 26 + }, + "end": { + "line": 67, + "column": 33 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 2150, + "end": 2151, + "loc": { + "start": { + "line": 67, + "column": 33 + }, + "end": { + "line": 67, + "column": 34 + } + } + }, + { + "type": { + "label": "||", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": 1, + "updateContext": null + }, + "value": "||", + "start": 2152, + "end": 2154, + "loc": { + "start": { + "line": 67, + "column": 35 + }, + "end": { + "line": 67, + "column": 37 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "event", + "start": 2162, + "end": 2167, + "loc": { + "start": { + "line": 68, + "column": 6 + }, + "end": { + "line": 68, + "column": 11 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 2167, + "end": 2168, + "loc": { + "start": { + "line": 68, + "column": 11 + }, + "end": { + "line": 68, + "column": 12 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "code", + "start": 2168, + "end": 2172, + "loc": { + "start": { + "line": 68, + "column": 12 + }, + "end": { + "line": 68, + "column": 16 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 2172, + "end": 2173, + "loc": { + "start": { + "line": 68, + "column": 16 + }, + "end": { + "line": 68, + "column": 17 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "includes", + "start": 2173, + "end": 2181, + "loc": { + "start": { + "line": 68, + "column": 17 + }, + "end": { + "line": 68, + "column": 25 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 2181, + "end": 2182, + "loc": { + "start": { + "line": 68, + "column": 25 + }, + "end": { + "line": 68, + "column": 26 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "Backspace", + "start": 2182, + "end": 2193, + "loc": { + "start": { + "line": 68, + "column": 26 + }, + "end": { + "line": 68, + "column": 37 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 2193, + "end": 2194, + "loc": { + "start": { + "line": 68, + "column": 37 + }, + "end": { + "line": 68, + "column": 38 + } + } + }, + { + "type": { + "label": "||", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": 1, + "updateContext": null + }, + "value": "||", + "start": 2195, + "end": 2197, + "loc": { + "start": { + "line": 68, + "column": 39 + }, + "end": { + "line": 68, + "column": 41 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "event", + "start": 2205, + "end": 2210, + "loc": { + "start": { + "line": 69, + "column": 6 + }, + "end": { + "line": 69, + "column": 11 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 2210, + "end": 2211, + "loc": { + "start": { + "line": 69, + "column": 11 + }, + "end": { + "line": 69, + "column": 12 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "code", + "start": 2211, + "end": 2215, + "loc": { + "start": { + "line": 69, + "column": 12 + }, + "end": { + "line": 69, + "column": 16 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 2215, + "end": 2216, + "loc": { + "start": { + "line": 69, + "column": 16 + }, + "end": { + "line": 69, + "column": 17 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "includes", + "start": 2216, + "end": 2224, + "loc": { + "start": { + "line": 69, + "column": 17 + }, + "end": { + "line": 69, + "column": 25 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 2224, + "end": 2225, + "loc": { + "start": { + "line": 69, + "column": 25 + }, + "end": { + "line": 69, + "column": 26 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "Control", + "start": 2225, + "end": 2234, + "loc": { + "start": { + "line": 69, + "column": 26 + }, + "end": { + "line": 69, + "column": 35 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 2234, + "end": 2235, + "loc": { + "start": { + "line": 69, + "column": 35 + }, + "end": { + "line": 69, + "column": 36 + } + } + }, + { + "type": { + "label": "||", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": 1, + "updateContext": null + }, + "value": "||", + "start": 2236, + "end": 2238, + "loc": { + "start": { + "line": 69, + "column": 37 + }, + "end": { + "line": 69, + "column": 39 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "event", + "start": 2246, + "end": 2251, + "loc": { + "start": { + "line": 70, + "column": 6 + }, + "end": { + "line": 70, + "column": 11 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 2251, + "end": 2252, + "loc": { + "start": { + "line": 70, + "column": 11 + }, + "end": { + "line": 70, + "column": 12 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "code", + "start": 2252, + "end": 2256, + "loc": { + "start": { + "line": 70, + "column": 12 + }, + "end": { + "line": 70, + "column": 16 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 2256, + "end": 2257, + "loc": { + "start": { + "line": 70, + "column": 16 + }, + "end": { + "line": 70, + "column": 17 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "includes", + "start": 2257, + "end": 2265, + "loc": { + "start": { + "line": 70, + "column": 17 + }, + "end": { + "line": 70, + "column": 25 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 2265, + "end": 2266, + "loc": { + "start": { + "line": 70, + "column": 25 + }, + "end": { + "line": 70, + "column": 26 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "Alt", + "start": 2266, + "end": 2271, + "loc": { + "start": { + "line": 70, + "column": 26 + }, + "end": { + "line": 70, + "column": 31 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 2271, + "end": 2272, + "loc": { + "start": { + "line": 70, + "column": 31 + }, + "end": { + "line": 70, + "column": 32 + } + } + }, + { + "type": { + "label": "||", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": 1, + "updateContext": null + }, + "value": "||", + "start": 2273, + "end": 2275, + "loc": { + "start": { + "line": 70, + "column": 33 + }, + "end": { + "line": 70, + "column": 35 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "event", + "start": 2283, + "end": 2288, + "loc": { + "start": { + "line": 71, + "column": 6 + }, + "end": { + "line": 71, + "column": 11 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 2288, + "end": 2289, + "loc": { + "start": { + "line": 71, + "column": 11 + }, + "end": { + "line": 71, + "column": 12 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "code", + "start": 2289, + "end": 2293, + "loc": { + "start": { + "line": 71, + "column": 12 + }, + "end": { + "line": 71, + "column": 16 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 2293, + "end": 2294, + "loc": { + "start": { + "line": 71, + "column": 16 + }, + "end": { + "line": 71, + "column": 17 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "includes", + "start": 2294, + "end": 2302, + "loc": { + "start": { + "line": 71, + "column": 17 + }, + "end": { + "line": 71, + "column": 25 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 2302, + "end": 2303, + "loc": { + "start": { + "line": 71, + "column": 25 + }, + "end": { + "line": 71, + "column": 26 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "Meta", + "start": 2303, + "end": 2309, + "loc": { + "start": { + "line": 71, + "column": 26 + }, + "end": { + "line": 71, + "column": 32 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 2309, + "end": 2310, + "loc": { + "start": { + "line": 71, + "column": 32 + }, + "end": { + "line": 71, + "column": 33 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 2316, + "end": 2317, + "loc": { + "start": { + "line": 72, + "column": 4 + }, + "end": { + "line": 72, + "column": 5 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 2317, + "end": 2318, + "loc": { + "start": { + "line": 72, + "column": 5 + }, + "end": { + "line": 72, + "column": 6 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "output", + "start": 2326, + "end": 2332, + "loc": { + "start": { + "line": 73, + "column": 6 + }, + "end": { + "line": 73, + "column": 12 + } + } + }, + { + "type": { + "label": "=", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": true, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "=", + "start": 2333, + "end": 2334, + "loc": { + "start": { + "line": 73, + "column": 13 + }, + "end": { + "line": 73, + "column": 14 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "event", + "start": 2335, + "end": 2340, + "loc": { + "start": { + "line": 73, + "column": 15 + }, + "end": { + "line": 73, + "column": 20 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 2340, + "end": 2341, + "loc": { + "start": { + "line": 73, + "column": 20 + }, + "end": { + "line": 73, + "column": 21 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "code", + "start": 2341, + "end": 2345, + "loc": { + "start": { + "line": 73, + "column": 21 + }, + "end": { + "line": 73, + "column": 25 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 2345, + "end": 2346, + "loc": { + "start": { + "line": 73, + "column": 25 + }, + "end": { + "line": 73, + "column": 26 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 2352, + "end": 2353, + "loc": { + "start": { + "line": 74, + "column": 4 + }, + "end": { + "line": 74, + "column": 5 + } + } + }, + { + "type": { + "label": "else", + "keyword": "else", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "else", + "start": 2354, + "end": 2358, + "loc": { + "start": { + "line": 74, + "column": 6 + }, + "end": { + "line": 74, + "column": 10 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 2359, + "end": 2360, + "loc": { + "start": { + "line": 74, + "column": 11 + }, + "end": { + "line": 74, + "column": 12 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "output", + "start": 2368, + "end": 2374, + "loc": { + "start": { + "line": 75, + "column": 6 + }, + "end": { + "line": 75, + "column": 12 + } + } + }, + { + "type": { + "label": "=", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": true, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "=", + "start": 2375, + "end": 2376, + "loc": { + "start": { + "line": 75, + "column": 13 + }, + "end": { + "line": 75, + "column": 14 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "event", + "start": 2377, + "end": 2382, + "loc": { + "start": { + "line": 75, + "column": 15 + }, + "end": { + "line": 75, + "column": 20 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 2382, + "end": 2383, + "loc": { + "start": { + "line": 75, + "column": 20 + }, + "end": { + "line": 75, + "column": 21 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "key", + "start": 2383, + "end": 2386, + "loc": { + "start": { + "line": 75, + "column": 21 + }, + "end": { + "line": 75, + "column": 24 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 2386, + "end": 2387, + "loc": { + "start": { + "line": 75, + "column": 24 + }, + "end": { + "line": 75, + "column": 25 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 2393, + "end": 2394, + "loc": { + "start": { + "line": 76, + "column": 4 + }, + "end": { + "line": 76, + "column": 5 + } + } + }, + { + "type": "CommentBlock", + "value": "*\r\n * If button is not uppercase, casting to lowercase\r\n ", + "start": 2402, + "end": 2471, + "loc": { + "start": { + "line": 78, + "column": 4 + }, + "end": { + "line": 80, + "column": 7 + } + } + }, + { + "type": { + "label": "if", + "keyword": "if", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "if", + "start": 2477, + "end": 2479, + "loc": { + "start": { + "line": 81, + "column": 4 + }, + "end": { + "line": 81, + "column": 6 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 2480, + "end": 2481, + "loc": { + "start": { + "line": 81, + "column": 7 + }, + "end": { + "line": 81, + "column": 8 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "output", + "start": 2489, + "end": 2495, + "loc": { + "start": { + "line": 82, + "column": 6 + }, + "end": { + "line": 82, + "column": 12 + } + } + }, + { + "type": { + "label": "==/!=", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": 6, + "updateContext": null + }, + "value": "!==", + "start": 2496, + "end": 2499, + "loc": { + "start": { + "line": 82, + "column": 13 + }, + "end": { + "line": 82, + "column": 16 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "output", + "start": 2500, + "end": 2506, + "loc": { + "start": { + "line": 82, + "column": 17 + }, + "end": { + "line": 82, + "column": 23 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 2506, + "end": 2507, + "loc": { + "start": { + "line": 82, + "column": 23 + }, + "end": { + "line": 82, + "column": 24 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "toUpperCase", + "start": 2507, + "end": 2518, + "loc": { + "start": { + "line": 82, + "column": 24 + }, + "end": { + "line": 82, + "column": 35 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 2518, + "end": 2519, + "loc": { + "start": { + "line": 82, + "column": 35 + }, + "end": { + "line": 82, + "column": 36 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 2519, + "end": 2520, + "loc": { + "start": { + "line": 82, + "column": 36 + }, + "end": { + "line": 82, + "column": 37 + } + } + }, + { + "type": { + "label": "||", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": 1, + "updateContext": null + }, + "value": "||", + "start": 2521, + "end": 2523, + "loc": { + "start": { + "line": 82, + "column": 38 + }, + "end": { + "line": 82, + "column": 40 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 2531, + "end": 2532, + "loc": { + "start": { + "line": 83, + "column": 6 + }, + "end": { + "line": 83, + "column": 7 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "event", + "start": 2532, + "end": 2537, + "loc": { + "start": { + "line": 83, + "column": 7 + }, + "end": { + "line": 83, + "column": 12 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 2537, + "end": 2538, + "loc": { + "start": { + "line": 83, + "column": 12 + }, + "end": { + "line": 83, + "column": 13 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "code", + "start": 2538, + "end": 2542, + "loc": { + "start": { + "line": 83, + "column": 13 + }, + "end": { + "line": 83, + "column": 17 + } + } + }, + { + "type": { + "label": "[", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 2542, + "end": 2543, + "loc": { + "start": { + "line": 83, + "column": 17 + }, + "end": { + "line": 83, + "column": 18 + } + } + }, + { + "type": { + "label": "num", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": 0, + "start": 2543, + "end": 2544, + "loc": { + "start": { + "line": 83, + "column": 18 + }, + "end": { + "line": 83, + "column": 19 + } + } + }, + { + "type": { + "label": "]", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 2544, + "end": 2545, + "loc": { + "start": { + "line": 83, + "column": 19 + }, + "end": { + "line": 83, + "column": 20 + } + } + }, + { + "type": { + "label": "==/!=", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": 6, + "updateContext": null + }, + "value": "===", + "start": 2546, + "end": 2549, + "loc": { + "start": { + "line": 83, + "column": 21 + }, + "end": { + "line": 83, + "column": 24 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "F", + "start": 2550, + "end": 2553, + "loc": { + "start": { + "line": 83, + "column": 25 + }, + "end": { + "line": 83, + "column": 28 + } + } + }, + { + "type": { + "label": "&&", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": 2, + "updateContext": null + }, + "value": "&&", + "start": 2554, + "end": 2556, + "loc": { + "start": { + "line": 83, + "column": 29 + }, + "end": { + "line": 83, + "column": 31 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "Number", + "start": 2557, + "end": 2563, + "loc": { + "start": { + "line": 83, + "column": 32 + }, + "end": { + "line": 83, + "column": 38 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 2563, + "end": 2564, + "loc": { + "start": { + "line": 83, + "column": 38 + }, + "end": { + "line": 83, + "column": 39 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "isInteger", + "start": 2564, + "end": 2573, + "loc": { + "start": { + "line": 83, + "column": 39 + }, + "end": { + "line": 83, + "column": 48 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 2573, + "end": 2574, + "loc": { + "start": { + "line": 83, + "column": 48 + }, + "end": { + "line": 83, + "column": 49 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "Number", + "start": 2574, + "end": 2580, + "loc": { + "start": { + "line": 83, + "column": 49 + }, + "end": { + "line": 83, + "column": 55 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 2580, + "end": 2581, + "loc": { + "start": { + "line": 83, + "column": 55 + }, + "end": { + "line": 83, + "column": 56 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "event", + "start": 2581, + "end": 2586, + "loc": { + "start": { + "line": 83, + "column": 56 + }, + "end": { + "line": 83, + "column": 61 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 2586, + "end": 2587, + "loc": { + "start": { + "line": 83, + "column": 61 + }, + "end": { + "line": 83, + "column": 62 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "code", + "start": 2587, + "end": 2591, + "loc": { + "start": { + "line": 83, + "column": 62 + }, + "end": { + "line": 83, + "column": 66 + } + } + }, + { + "type": { + "label": "[", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 2591, + "end": 2592, + "loc": { + "start": { + "line": 83, + "column": 66 + }, + "end": { + "line": 83, + "column": 67 + } + } + }, + { + "type": { + "label": "num", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": 1, + "start": 2592, + "end": 2593, + "loc": { + "start": { + "line": 83, + "column": 67 + }, + "end": { + "line": 83, + "column": 68 + } + } + }, + { + "type": { + "label": "]", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 2593, + "end": 2594, + "loc": { + "start": { + "line": 83, + "column": 68 + }, + "end": { + "line": 83, + "column": 69 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 2594, + "end": 2595, + "loc": { + "start": { + "line": 83, + "column": 69 + }, + "end": { + "line": 83, + "column": 70 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 2595, + "end": 2596, + "loc": { + "start": { + "line": 83, + "column": 70 + }, + "end": { + "line": 83, + "column": 71 + } + } + }, + { + "type": { + "label": "&&", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": 2, + "updateContext": null + }, + "value": "&&", + "start": 2597, + "end": 2599, + "loc": { + "start": { + "line": 83, + "column": 72 + }, + "end": { + "line": 83, + "column": 74 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "event", + "start": 2600, + "end": 2605, + "loc": { + "start": { + "line": 83, + "column": 75 + }, + "end": { + "line": 83, + "column": 80 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 2605, + "end": 2606, + "loc": { + "start": { + "line": 83, + "column": 80 + }, + "end": { + "line": 83, + "column": 81 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "code", + "start": 2606, + "end": 2610, + "loc": { + "start": { + "line": 83, + "column": 81 + }, + "end": { + "line": 83, + "column": 85 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 2610, + "end": 2611, + "loc": { + "start": { + "line": 83, + "column": 85 + }, + "end": { + "line": 83, + "column": 86 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "length", + "start": 2611, + "end": 2617, + "loc": { + "start": { + "line": 83, + "column": 86 + }, + "end": { + "line": 83, + "column": 92 + } + } + }, + { + "type": { + "label": "", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": 7, + "updateContext": null + }, + "value": "<=", + "start": 2618, + "end": 2620, + "loc": { + "start": { + "line": 83, + "column": 93 + }, + "end": { + "line": 83, + "column": 95 + } + } + }, + { + "type": { + "label": "num", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": 3, + "start": 2621, + "end": 2622, + "loc": { + "start": { + "line": 83, + "column": 96 + }, + "end": { + "line": 83, + "column": 97 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 2622, + "end": 2623, + "loc": { + "start": { + "line": 83, + "column": 97 + }, + "end": { + "line": 83, + "column": 98 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 2629, + "end": 2630, + "loc": { + "start": { + "line": 84, + "column": 4 + }, + "end": { + "line": 84, + "column": 5 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 2631, + "end": 2632, + "loc": { + "start": { + "line": 84, + "column": 6 + }, + "end": { + "line": 84, + "column": 7 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "output", + "start": 2640, + "end": 2646, + "loc": { + "start": { + "line": 85, + "column": 6 + }, + "end": { + "line": 85, + "column": 12 + } + } + }, + { + "type": { + "label": "=", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": true, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "=", + "start": 2647, + "end": 2648, + "loc": { + "start": { + "line": 85, + "column": 13 + }, + "end": { + "line": 85, + "column": 14 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "output", + "start": 2649, + "end": 2655, + "loc": { + "start": { + "line": 85, + "column": 15 + }, + "end": { + "line": 85, + "column": 21 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 2655, + "end": 2656, + "loc": { + "start": { + "line": 85, + "column": 21 + }, + "end": { + "line": 85, + "column": 22 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "toLowerCase", + "start": 2656, + "end": 2667, + "loc": { + "start": { + "line": 85, + "column": 22 + }, + "end": { + "line": 85, + "column": 33 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 2667, + "end": 2668, + "loc": { + "start": { + "line": 85, + "column": 33 + }, + "end": { + "line": 85, + "column": 34 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 2668, + "end": 2669, + "loc": { + "start": { + "line": 85, + "column": 34 + }, + "end": { + "line": 85, + "column": 35 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 2669, + "end": 2670, + "loc": { + "start": { + "line": 85, + "column": 35 + }, + "end": { + "line": 85, + "column": 36 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 2676, + "end": 2677, + "loc": { + "start": { + "line": 86, + "column": 4 + }, + "end": { + "line": 86, + "column": 5 + } + } + }, + { + "type": { + "label": "return", + "keyword": "return", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "return", + "start": 2685, + "end": 2691, + "loc": { + "start": { + "line": 88, + "column": 4 + }, + "end": { + "line": 88, + "column": 10 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "output", + "start": 2692, + "end": 2698, + "loc": { + "start": { + "line": 88, + "column": 11 + }, + "end": { + "line": 88, + "column": 17 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 2698, + "end": 2699, + "loc": { + "start": { + "line": 88, + "column": 17 + }, + "end": { + "line": 88, + "column": 18 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 2703, + "end": 2704, + "loc": { + "start": { + "line": 89, + "column": 2 + }, + "end": { + "line": 89, + "column": 3 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 2706, + "end": 2707, + "loc": { + "start": { + "line": 90, + "column": 0 + }, + "end": { + "line": 90, + "column": 1 + } + } + }, + { + "type": { + "label": "export", + "keyword": "export", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "export", + "start": 2711, + "end": 2717, + "loc": { + "start": { + "line": 92, + "column": 0 + }, + "end": { + "line": 92, + "column": 6 + } + } + }, + { + "type": { + "label": "default", + "keyword": "default", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "default", + "start": 2718, + "end": 2725, + "loc": { + "start": { + "line": 92, + "column": 7 + }, + "end": { + "line": 92, + "column": 14 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "PhysicalKeyboard", + "start": 2726, + "end": 2742, + "loc": { + "start": { + "line": 92, + "column": 15 + }, + "end": { + "line": 92, + "column": 31 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 2742, + "end": 2743, + "loc": { + "start": { + "line": 92, + "column": 31 + }, + "end": { + "line": 92, + "column": 32 + } + } + }, + { + "type": { + "label": "eof", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 2743, + "end": 2743, + "loc": { + "start": { + "line": 92, + "column": 32 + }, + "end": { + "line": 92, + "column": 32 + } + } + } + ] +} \ No newline at end of file diff --git a/docs/ast/source/lib/services/Utilities.js.json b/docs/ast/source/lib/services/Utilities.js.json new file mode 100644 index 00000000..7fbea5a7 --- /dev/null +++ b/docs/ast/source/lib/services/Utilities.js.json @@ -0,0 +1,74342 @@ +{ + "type": "File", + "start": 0, + "end": 10148, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 342, + "column": 25 + } + }, + "program": { + "type": "Program", + "start": 0, + "end": 10148, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 342, + "column": 25 + } + }, + "sourceType": "module", + "body": [ + { + "type": "Identifier", + "start": 30, + "end": 10119, + "loc": { + "start": { + "line": 4, + "column": 0 + }, + "end": { + "line": 340, + "column": 1 + } + }, + "id": { + "type": "Identifier", + "start": 36, + "end": 45, + "loc": { + "start": { + "line": 4, + "column": 6 + }, + "end": { + "line": 4, + "column": 15 + }, + "identifierName": "Utilities" + }, + "name": "Utilities", + "leadingComments": null + }, + "superClass": null, + "body": { + "type": "ClassBody", + "start": 46, + "end": 10119, + "loc": { + "start": { + "line": 4, + "column": 16 + }, + "end": { + "line": 340, + "column": 1 + } + }, + "body": [ + { + "type": "ClassMethod", + "start": 114, + "end": 282, + "loc": { + "start": { + "line": 8, + "column": 2 + }, + "end": { + "line": 13, + "column": 3 + } + }, + "static": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 114, + "end": 125, + "loc": { + "start": { + "line": 8, + "column": 2 + }, + "end": { + "line": 8, + "column": 13 + }, + "identifierName": "constructor" + }, + "name": "constructor", + "leadingComments": null + }, + "kind": "constructor", + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 126, + "end": 148, + "loc": { + "start": { + "line": 8, + "column": 14 + }, + "end": { + "line": 8, + "column": 36 + }, + "identifierName": "simpleKeyboardInstance" + }, + "name": "simpleKeyboardInstance" + } + ], + "body": { + "type": "BlockStatement", + "start": 149, + "end": 282, + "loc": { + "start": { + "line": 8, + "column": 37 + }, + "end": { + "line": 13, + "column": 3 + } + }, + "body": [ + { + "type": "ExpressionStatement", + "start": 224, + "end": 277, + "loc": { + "start": { + "line": 12, + "column": 4 + }, + "end": { + "line": 12, + "column": 57 + } + }, + "expression": { + "type": "AssignmentExpression", + "start": 224, + "end": 276, + "loc": { + "start": { + "line": 12, + "column": 4 + }, + "end": { + "line": 12, + "column": 56 + } + }, + "operator": "=", + "left": { + "type": "MemberExpression", + "start": 224, + "end": 251, + "loc": { + "start": { + "line": 12, + "column": 4 + }, + "end": { + "line": 12, + "column": 31 + } + }, + "object": { + "type": "ThisExpression", + "start": 224, + "end": 228, + "loc": { + "start": { + "line": 12, + "column": 4 + }, + "end": { + "line": 12, + "column": 8 + } + }, + "leadingComments": null + }, + "property": { + "type": "Identifier", + "start": 229, + "end": 251, + "loc": { + "start": { + "line": 12, + "column": 9 + }, + "end": { + "line": 12, + "column": 31 + }, + "identifierName": "simpleKeyboardInstance" + }, + "name": "simpleKeyboardInstance" + }, + "computed": false, + "leadingComments": null + }, + "right": { + "type": "Identifier", + "start": 254, + "end": 276, + "loc": { + "start": { + "line": 12, + "column": 34 + }, + "end": { + "line": 12, + "column": 56 + }, + "identifierName": "simpleKeyboardInstance" + }, + "name": "simpleKeyboardInstance" + }, + "leadingComments": null + }, + "leadingComments": [ + { + "type": "CommentBlock", + "value": "*\r\n * @type {object} A simple-keyboard instance\r\n ", + "start": 156, + "end": 218, + "loc": { + "start": { + "line": 9, + "column": 4 + }, + "end": { + "line": 11, + "column": 7 + } + } + } + ] + } + ], + "directives": [], + "trailingComments": null + }, + "leadingComments": [ + { + "type": "CommentBlock", + "value": "*\r\n * Creates an instance of the Utility service\r\n ", + "start": 51, + "end": 110, + "loc": { + "start": { + "line": 5, + "column": 2 + }, + "end": { + "line": 7, + "column": 5 + } + } + } + ], + "trailingComments": [ + { + "type": "CommentBlock", + "value": "*\r\n * Adds default classes to a given button\r\n * \r\n * @param {string} button The button's layout name\r\n * @return {string} The classes to be added to the button\r\n ", + "start": 288, + "end": 466, + "loc": { + "start": { + "line": 15, + "column": 2 + }, + "end": { + "line": 20, + "column": 5 + } + } + } + ] + }, + { + "type": "ClassProperty", + "start": 470, + "end": 902, + "loc": { + "start": { + "line": 21, + "column": 2 + }, + "end": { + "line": 30, + "column": 3 + } + }, + "static": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 470, + "end": 484, + "loc": { + "start": { + "line": 21, + "column": 2 + }, + "end": { + "line": 21, + "column": 16 + }, + "identifierName": "getButtonClass" + }, + "name": "getButtonClass", + "leadingComments": null + }, + "value": { + "type": "ArrowFunctionExpression", + "start": 487, + "end": 902, + "loc": { + "start": { + "line": 21, + "column": 19 + }, + "end": { + "line": 30, + "column": 3 + } + }, + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 487, + "end": 493, + "loc": { + "start": { + "line": 21, + "column": 19 + }, + "end": { + "line": 21, + "column": 25 + }, + "identifierName": "button" + }, + "name": "button" + } + ], + "body": { + "type": "BlockStatement", + "start": 497, + "end": 902, + "loc": { + "start": { + "line": 21, + "column": 29 + }, + "end": { + "line": 30, + "column": 3 + } + }, + "body": [ + { + "type": "VariableDeclaration", + "start": 504, + "end": 626, + "loc": { + "start": { + "line": 22, + "column": 4 + }, + "end": { + "line": 22, + "column": 126 + } + }, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 508, + "end": 625, + "loc": { + "start": { + "line": 22, + "column": 8 + }, + "end": { + "line": 22, + "column": 125 + } + }, + "id": { + "type": "Identifier", + "start": 508, + "end": 523, + "loc": { + "start": { + "line": 22, + "column": 8 + }, + "end": { + "line": 22, + "column": 23 + }, + "identifierName": "buttonTypeClass" + }, + "name": "buttonTypeClass" + }, + "init": { + "type": "ConditionalExpression", + "start": 526, + "end": 625, + "loc": { + "start": { + "line": 22, + "column": 26 + }, + "end": { + "line": 22, + "column": 125 + } + }, + "test": { + "type": "LogicalExpression", + "start": 527, + "end": 592, + "loc": { + "start": { + "line": 22, + "column": 27 + }, + "end": { + "line": 22, + "column": 92 + } + }, + "left": { + "type": "LogicalExpression", + "start": 527, + "end": 571, + "loc": { + "start": { + "line": 22, + "column": 27 + }, + "end": { + "line": 22, + "column": 71 + } + }, + "left": { + "type": "CallExpression", + "start": 527, + "end": 547, + "loc": { + "start": { + "line": 22, + "column": 27 + }, + "end": { + "line": 22, + "column": 47 + } + }, + "callee": { + "type": "MemberExpression", + "start": 527, + "end": 542, + "loc": { + "start": { + "line": 22, + "column": 27 + }, + "end": { + "line": 22, + "column": 42 + } + }, + "object": { + "type": "Identifier", + "start": 527, + "end": 533, + "loc": { + "start": { + "line": 22, + "column": 27 + }, + "end": { + "line": 22, + "column": 33 + }, + "identifierName": "button" + }, + "name": "button" + }, + "property": { + "type": "Identifier", + "start": 534, + "end": 542, + "loc": { + "start": { + "line": 22, + "column": 34 + }, + "end": { + "line": 22, + "column": 42 + }, + "identifierName": "includes" + }, + "name": "includes" + }, + "computed": false + }, + "arguments": [ + { + "type": "StringLiteral", + "start": 543, + "end": 546, + "loc": { + "start": { + "line": 22, + "column": 43 + }, + "end": { + "line": 22, + "column": 46 + } + }, + "extra": { + "rawValue": "{", + "raw": "\"{\"" + }, + "value": "{" + } + ] + }, + "operator": "&&", + "right": { + "type": "CallExpression", + "start": 551, + "end": 571, + "loc": { + "start": { + "line": 22, + "column": 51 + }, + "end": { + "line": 22, + "column": 71 + } + }, + "callee": { + "type": "MemberExpression", + "start": 551, + "end": 566, + "loc": { + "start": { + "line": 22, + "column": 51 + }, + "end": { + "line": 22, + "column": 66 + } + }, + "object": { + "type": "Identifier", + "start": 551, + "end": 557, + "loc": { + "start": { + "line": 22, + "column": 51 + }, + "end": { + "line": 22, + "column": 57 + }, + "identifierName": "button" + }, + "name": "button" + }, + "property": { + "type": "Identifier", + "start": 558, + "end": 566, + "loc": { + "start": { + "line": 22, + "column": 58 + }, + "end": { + "line": 22, + "column": 66 + }, + "identifierName": "includes" + }, + "name": "includes" + }, + "computed": false + }, + "arguments": [ + { + "type": "StringLiteral", + "start": 567, + "end": 570, + "loc": { + "start": { + "line": 22, + "column": 67 + }, + "end": { + "line": 22, + "column": 70 + } + }, + "extra": { + "rawValue": "}", + "raw": "\"}\"" + }, + "value": "}" + } + ] + } + }, + "operator": "&&", + "right": { + "type": "BinaryExpression", + "start": 575, + "end": 592, + "loc": { + "start": { + "line": 22, + "column": 75 + }, + "end": { + "line": 22, + "column": 92 + } + }, + "left": { + "type": "Identifier", + "start": 575, + "end": 581, + "loc": { + "start": { + "line": 22, + "column": 75 + }, + "end": { + "line": 22, + "column": 81 + }, + "identifierName": "button" + }, + "name": "button" + }, + "operator": "!==", + "right": { + "type": "StringLiteral", + "start": 586, + "end": 592, + "loc": { + "start": { + "line": 22, + "column": 86 + }, + "end": { + "line": 22, + "column": 92 + } + }, + "extra": { + "rawValue": "{//}", + "raw": "'{//}'" + }, + "value": "{//}" + } + }, + "extra": { + "parenthesized": true, + "parenStart": 526 + } + }, + "consequent": { + "type": "StringLiteral", + "start": 596, + "end": 609, + "loc": { + "start": { + "line": 22, + "column": 96 + }, + "end": { + "line": 22, + "column": 109 + } + }, + "extra": { + "rawValue": "functionBtn", + "raw": "\"functionBtn\"" + }, + "value": "functionBtn" + }, + "alternate": { + "type": "StringLiteral", + "start": 612, + "end": 625, + "loc": { + "start": { + "line": 22, + "column": 112 + }, + "end": { + "line": 22, + "column": 125 + } + }, + "extra": { + "rawValue": "standardBtn", + "raw": "\"standardBtn\"" + }, + "value": "standardBtn" + } + } + } + ], + "kind": "let" + }, + { + "type": "VariableDeclaration", + "start": 632, + "end": 699, + "loc": { + "start": { + "line": 23, + "column": 4 + }, + "end": { + "line": 23, + "column": 71 + } + }, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 636, + "end": 698, + "loc": { + "start": { + "line": 23, + "column": 8 + }, + "end": { + "line": 23, + "column": 70 + } + }, + "id": { + "type": "Identifier", + "start": 636, + "end": 655, + "loc": { + "start": { + "line": 23, + "column": 8 + }, + "end": { + "line": 23, + "column": 27 + }, + "identifierName": "buttonWithoutBraces" + }, + "name": "buttonWithoutBraces" + }, + "init": { + "type": "CallExpression", + "start": 658, + "end": 698, + "loc": { + "start": { + "line": 23, + "column": 30 + }, + "end": { + "line": 23, + "column": 70 + } + }, + "callee": { + "type": "MemberExpression", + "start": 658, + "end": 689, + "loc": { + "start": { + "line": 23, + "column": 30 + }, + "end": { + "line": 23, + "column": 61 + } + }, + "object": { + "type": "CallExpression", + "start": 658, + "end": 681, + "loc": { + "start": { + "line": 23, + "column": 30 + }, + "end": { + "line": 23, + "column": 53 + } + }, + "callee": { + "type": "MemberExpression", + "start": 658, + "end": 672, + "loc": { + "start": { + "line": 23, + "column": 30 + }, + "end": { + "line": 23, + "column": 44 + } + }, + "object": { + "type": "Identifier", + "start": 658, + "end": 664, + "loc": { + "start": { + "line": 23, + "column": 30 + }, + "end": { + "line": 23, + "column": 36 + }, + "identifierName": "button" + }, + "name": "button" + }, + "property": { + "type": "Identifier", + "start": 665, + "end": 672, + "loc": { + "start": { + "line": 23, + "column": 37 + }, + "end": { + "line": 23, + "column": 44 + }, + "identifierName": "replace" + }, + "name": "replace" + }, + "computed": false + }, + "arguments": [ + { + "type": "StringLiteral", + "start": 673, + "end": 676, + "loc": { + "start": { + "line": 23, + "column": 45 + }, + "end": { + "line": 23, + "column": 48 + } + }, + "extra": { + "rawValue": "{", + "raw": "\"{\"" + }, + "value": "{" + }, + { + "type": "StringLiteral", + "start": 678, + "end": 680, + "loc": { + "start": { + "line": 23, + "column": 50 + }, + "end": { + "line": 23, + "column": 52 + } + }, + "extra": { + "rawValue": "", + "raw": "\"\"" + }, + "value": "" + } + ] + }, + "property": { + "type": "Identifier", + "start": 682, + "end": 689, + "loc": { + "start": { + "line": 23, + "column": 54 + }, + "end": { + "line": 23, + "column": 61 + }, + "identifierName": "replace" + }, + "name": "replace" + }, + "computed": false + }, + "arguments": [ + { + "type": "StringLiteral", + "start": 690, + "end": 693, + "loc": { + "start": { + "line": 23, + "column": 62 + }, + "end": { + "line": 23, + "column": 65 + } + }, + "extra": { + "rawValue": "}", + "raw": "\"}\"" + }, + "value": "}" + }, + { + "type": "StringLiteral", + "start": 695, + "end": 697, + "loc": { + "start": { + "line": 23, + "column": 67 + }, + "end": { + "line": 23, + "column": 69 + } + }, + "extra": { + "rawValue": "", + "raw": "\"\"" + }, + "value": "" + } + ] + } + } + ], + "kind": "let" + }, + { + "type": "VariableDeclaration", + "start": 705, + "end": 731, + "loc": { + "start": { + "line": 24, + "column": 4 + }, + "end": { + "line": 24, + "column": 30 + } + }, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 709, + "end": 730, + "loc": { + "start": { + "line": 24, + "column": 8 + }, + "end": { + "line": 24, + "column": 29 + } + }, + "id": { + "type": "Identifier", + "start": 709, + "end": 725, + "loc": { + "start": { + "line": 24, + "column": 8 + }, + "end": { + "line": 24, + "column": 24 + }, + "identifierName": "buttonNormalized" + }, + "name": "buttonNormalized" + }, + "init": { + "type": "StringLiteral", + "start": 728, + "end": 730, + "loc": { + "start": { + "line": 24, + "column": 27 + }, + "end": { + "line": 24, + "column": 29 + } + }, + "extra": { + "rawValue": "", + "raw": "''" + }, + "value": "" + } + } + ], + "kind": "let" + }, + { + "type": "IfStatement", + "start": 739, + "end": 839, + "loc": { + "start": { + "line": 26, + "column": 4 + }, + "end": { + "line": 27, + "column": 61 + } + }, + "test": { + "type": "BinaryExpression", + "start": 742, + "end": 775, + "loc": { + "start": { + "line": 26, + "column": 7 + }, + "end": { + "line": 26, + "column": 40 + } + }, + "left": { + "type": "Identifier", + "start": 742, + "end": 757, + "loc": { + "start": { + "line": 26, + "column": 7 + }, + "end": { + "line": 26, + "column": 22 + }, + "identifierName": "buttonTypeClass" + }, + "name": "buttonTypeClass" + }, + "operator": "!==", + "right": { + "type": "StringLiteral", + "start": 762, + "end": 775, + "loc": { + "start": { + "line": 26, + "column": 27 + }, + "end": { + "line": 26, + "column": 40 + } + }, + "extra": { + "rawValue": "standardBtn", + "raw": "\"standardBtn\"" + }, + "value": "standardBtn" + } + }, + "consequent": { + "type": "ExpressionStatement", + "start": 784, + "end": 839, + "loc": { + "start": { + "line": 27, + "column": 6 + }, + "end": { + "line": 27, + "column": 61 + } + }, + "expression": { + "type": "AssignmentExpression", + "start": 784, + "end": 838, + "loc": { + "start": { + "line": 27, + "column": 6 + }, + "end": { + "line": 27, + "column": 60 + } + }, + "operator": "=", + "left": { + "type": "Identifier", + "start": 784, + "end": 800, + "loc": { + "start": { + "line": 27, + "column": 6 + }, + "end": { + "line": 27, + "column": 22 + }, + "identifierName": "buttonNormalized" + }, + "name": "buttonNormalized" + }, + "right": { + "type": "TemplateLiteral", + "start": 803, + "end": 838, + "loc": { + "start": { + "line": 27, + "column": 25 + }, + "end": { + "line": 27, + "column": 60 + } + }, + "expressions": [ + { + "type": "Identifier", + "start": 817, + "end": 836, + "loc": { + "start": { + "line": 27, + "column": 39 + }, + "end": { + "line": 27, + "column": 58 + }, + "identifierName": "buttonWithoutBraces" + }, + "name": "buttonWithoutBraces" + } + ], + "quasis": [ + { + "type": "TemplateElement", + "start": 804, + "end": 815, + "loc": { + "start": { + "line": 27, + "column": 26 + }, + "end": { + "line": 27, + "column": 37 + } + }, + "value": { + "raw": " hg-button-", + "cooked": " hg-button-" + }, + "tail": false + }, + { + "type": "TemplateElement", + "start": 837, + "end": 837, + "loc": { + "start": { + "line": 27, + "column": 59 + }, + "end": { + "line": 27, + "column": 59 + } + }, + "value": { + "raw": "", + "cooked": "" + }, + "tail": true + } + ] + } + } + }, + "alternate": null + }, + { + "type": "ReturnStatement", + "start": 847, + "end": 897, + "loc": { + "start": { + "line": 29, + "column": 4 + }, + "end": { + "line": 29, + "column": 54 + } + }, + "argument": { + "type": "TemplateLiteral", + "start": 854, + "end": 896, + "loc": { + "start": { + "line": 29, + "column": 11 + }, + "end": { + "line": 29, + "column": 53 + } + }, + "expressions": [ + { + "type": "Identifier", + "start": 860, + "end": 875, + "loc": { + "start": { + "line": 29, + "column": 17 + }, + "end": { + "line": 29, + "column": 32 + }, + "identifierName": "buttonTypeClass" + }, + "name": "buttonTypeClass" + }, + { + "type": "Identifier", + "start": 878, + "end": 894, + "loc": { + "start": { + "line": 29, + "column": 35 + }, + "end": { + "line": 29, + "column": 51 + }, + "identifierName": "buttonNormalized" + }, + "name": "buttonNormalized" + } + ], + "quasis": [ + { + "type": "TemplateElement", + "start": 855, + "end": 858, + "loc": { + "start": { + "line": 29, + "column": 12 + }, + "end": { + "line": 29, + "column": 15 + } + }, + "value": { + "raw": "hg-", + "cooked": "hg-" + }, + "tail": false + }, + { + "type": "TemplateElement", + "start": 876, + "end": 876, + "loc": { + "start": { + "line": 29, + "column": 33 + }, + "end": { + "line": 29, + "column": 33 + } + }, + "value": { + "raw": "", + "cooked": "" + }, + "tail": false + }, + { + "type": "TemplateElement", + "start": 895, + "end": 895, + "loc": { + "start": { + "line": 29, + "column": 52 + }, + "end": { + "line": 29, + "column": 52 + } + }, + "value": { + "raw": "", + "cooked": "" + }, + "tail": true + } + ] + } + } + ], + "directives": [], + "trailingComments": null + }, + "trailingComments": null + }, + "leadingComments": [ + { + "type": "CommentBlock", + "value": "*\r\n * Adds default classes to a given button\r\n * \r\n * @param {string} button The button's layout name\r\n * @return {string} The classes to be added to the button\r\n ", + "start": 288, + "end": 466, + "loc": { + "start": { + "line": 15, + "column": 2 + }, + "end": { + "line": 20, + "column": 5 + } + } + } + ], + "trailingComments": [ + { + "type": "CommentBlock", + "value": "*\r\n * Default button display labels\r\n ", + "start": 908, + "end": 954, + "loc": { + "start": { + "line": 32, + "column": 2 + }, + "end": { + "line": 34, + "column": 5 + } + } + } + ] + }, + { + "type": "ClassMethod", + "start": 958, + "end": 2526, + "loc": { + "start": { + "line": 35, + "column": 2 + }, + "end": { + "line": 97, + "column": 3 + } + }, + "static": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 958, + "end": 974, + "loc": { + "start": { + "line": 35, + "column": 2 + }, + "end": { + "line": 35, + "column": 18 + }, + "identifierName": "getDefaultDiplay" + }, + "name": "getDefaultDiplay", + "leadingComments": null + }, + "kind": "method", + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [], + "body": { + "type": "BlockStatement", + "start": 976, + "end": 2526, + "loc": { + "start": { + "line": 35, + "column": 20 + }, + "end": { + "line": 97, + "column": 3 + } + }, + "body": [ + { + "type": "ReturnStatement", + "start": 983, + "end": 2521, + "loc": { + "start": { + "line": 36, + "column": 4 + }, + "end": { + "line": 96, + "column": 6 + } + }, + "argument": { + "type": "ObjectExpression", + "start": 990, + "end": 2520, + "loc": { + "start": { + "line": 36, + "column": 11 + }, + "end": { + "line": 96, + "column": 5 + } + }, + "properties": [ + { + "type": "ObjectProperty", + "start": 999, + "end": 1020, + "loc": { + "start": { + "line": 37, + "column": 6 + }, + "end": { + "line": 37, + "column": 27 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "StringLiteral", + "start": 999, + "end": 1007, + "loc": { + "start": { + "line": 37, + "column": 6 + }, + "end": { + "line": 37, + "column": 14 + } + }, + "extra": { + "rawValue": "{bksp}", + "raw": "'{bksp}'" + }, + "value": "{bksp}" + }, + "value": { + "type": "StringLiteral", + "start": 1009, + "end": 1020, + "loc": { + "start": { + "line": 37, + "column": 16 + }, + "end": { + "line": 37, + "column": 27 + } + }, + "extra": { + "rawValue": "backspace", + "raw": "'backspace'" + }, + "value": "backspace" + } + }, + { + "type": "ObjectProperty", + "start": 1029, + "end": 1055, + "loc": { + "start": { + "line": 38, + "column": 6 + }, + "end": { + "line": 38, + "column": 32 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "StringLiteral", + "start": 1029, + "end": 1042, + "loc": { + "start": { + "line": 38, + "column": 6 + }, + "end": { + "line": 38, + "column": 19 + } + }, + "extra": { + "rawValue": "{backspace}", + "raw": "'{backspace}'" + }, + "value": "{backspace}" + }, + "value": { + "type": "StringLiteral", + "start": 1044, + "end": 1055, + "loc": { + "start": { + "line": 38, + "column": 21 + }, + "end": { + "line": 38, + "column": 32 + } + }, + "extra": { + "rawValue": "backspace", + "raw": "'backspace'" + }, + "value": "backspace" + } + }, + { + "type": "ObjectProperty", + "start": 1064, + "end": 1084, + "loc": { + "start": { + "line": 39, + "column": 6 + }, + "end": { + "line": 39, + "column": 26 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "StringLiteral", + "start": 1064, + "end": 1073, + "loc": { + "start": { + "line": 39, + "column": 6 + }, + "end": { + "line": 39, + "column": 15 + } + }, + "extra": { + "rawValue": "{enter}", + "raw": "'{enter}'" + }, + "value": "{enter}" + }, + "value": { + "type": "StringLiteral", + "start": 1075, + "end": 1084, + "loc": { + "start": { + "line": 39, + "column": 17 + }, + "end": { + "line": 39, + "column": 26 + } + }, + "extra": { + "rawValue": "< enter", + "raw": "'< enter'" + }, + "value": "< enter" + } + }, + { + "type": "ObjectProperty", + "start": 1093, + "end": 1111, + "loc": { + "start": { + "line": 40, + "column": 6 + }, + "end": { + "line": 40, + "column": 24 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "StringLiteral", + "start": 1093, + "end": 1102, + "loc": { + "start": { + "line": 40, + "column": 6 + }, + "end": { + "line": 40, + "column": 15 + } + }, + "extra": { + "rawValue": "{shift}", + "raw": "'{shift}'" + }, + "value": "{shift}" + }, + "value": { + "type": "StringLiteral", + "start": 1104, + "end": 1111, + "loc": { + "start": { + "line": 40, + "column": 17 + }, + "end": { + "line": 40, + "column": 24 + } + }, + "extra": { + "rawValue": "shift", + "raw": "'shift'" + }, + "value": "shift" + } + }, + { + "type": "ObjectProperty", + "start": 1120, + "end": 1142, + "loc": { + "start": { + "line": 41, + "column": 6 + }, + "end": { + "line": 41, + "column": 28 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "StringLiteral", + "start": 1120, + "end": 1133, + "loc": { + "start": { + "line": 41, + "column": 6 + }, + "end": { + "line": 41, + "column": 19 + } + }, + "extra": { + "rawValue": "{shiftleft}", + "raw": "'{shiftleft}'" + }, + "value": "{shiftleft}" + }, + "value": { + "type": "StringLiteral", + "start": 1135, + "end": 1142, + "loc": { + "start": { + "line": 41, + "column": 21 + }, + "end": { + "line": 41, + "column": 28 + } + }, + "extra": { + "rawValue": "shift", + "raw": "'shift'" + }, + "value": "shift" + } + }, + { + "type": "ObjectProperty", + "start": 1151, + "end": 1174, + "loc": { + "start": { + "line": 42, + "column": 6 + }, + "end": { + "line": 42, + "column": 29 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "StringLiteral", + "start": 1151, + "end": 1165, + "loc": { + "start": { + "line": 42, + "column": 6 + }, + "end": { + "line": 42, + "column": 20 + } + }, + "extra": { + "rawValue": "{shiftright}", + "raw": "'{shiftright}'" + }, + "value": "{shiftright}" + }, + "value": { + "type": "StringLiteral", + "start": 1167, + "end": 1174, + "loc": { + "start": { + "line": 42, + "column": 22 + }, + "end": { + "line": 42, + "column": 29 + } + }, + "extra": { + "rawValue": "shift", + "raw": "'shift'" + }, + "value": "shift" + } + }, + { + "type": "ObjectProperty", + "start": 1183, + "end": 1197, + "loc": { + "start": { + "line": 43, + "column": 6 + }, + "end": { + "line": 43, + "column": 20 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "StringLiteral", + "start": 1183, + "end": 1190, + "loc": { + "start": { + "line": 43, + "column": 6 + }, + "end": { + "line": 43, + "column": 13 + } + }, + "extra": { + "rawValue": "{alt}", + "raw": "'{alt}'" + }, + "value": "{alt}" + }, + "value": { + "type": "StringLiteral", + "start": 1192, + "end": 1197, + "loc": { + "start": { + "line": 43, + "column": 15 + }, + "end": { + "line": 43, + "column": 20 + } + }, + "extra": { + "rawValue": "alt", + "raw": "'alt'" + }, + "value": "alt" + } + }, + { + "type": "ObjectProperty", + "start": 1206, + "end": 1220, + "loc": { + "start": { + "line": 44, + "column": 6 + }, + "end": { + "line": 44, + "column": 20 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "StringLiteral", + "start": 1206, + "end": 1211, + "loc": { + "start": { + "line": 44, + "column": 6 + }, + "end": { + "line": 44, + "column": 11 + } + }, + "extra": { + "rawValue": "{s}", + "raw": "'{s}'" + }, + "value": "{s}" + }, + "value": { + "type": "StringLiteral", + "start": 1213, + "end": 1220, + "loc": { + "start": { + "line": 44, + "column": 13 + }, + "end": { + "line": 44, + "column": 20 + } + }, + "extra": { + "rawValue": "shift", + "raw": "'shift'" + }, + "value": "shift" + } + }, + { + "type": "ObjectProperty", + "start": 1229, + "end": 1243, + "loc": { + "start": { + "line": 45, + "column": 6 + }, + "end": { + "line": 45, + "column": 20 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "StringLiteral", + "start": 1229, + "end": 1236, + "loc": { + "start": { + "line": 45, + "column": 6 + }, + "end": { + "line": 45, + "column": 13 + } + }, + "extra": { + "rawValue": "{tab}", + "raw": "'{tab}'" + }, + "value": "{tab}" + }, + "value": { + "type": "StringLiteral", + "start": 1238, + "end": 1243, + "loc": { + "start": { + "line": 45, + "column": 15 + }, + "end": { + "line": 45, + "column": 20 + } + }, + "extra": { + "rawValue": "tab", + "raw": "'tab'" + }, + "value": "tab" + } + }, + { + "type": "ObjectProperty", + "start": 1252, + "end": 1268, + "loc": { + "start": { + "line": 46, + "column": 6 + }, + "end": { + "line": 46, + "column": 22 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "StringLiteral", + "start": 1252, + "end": 1260, + "loc": { + "start": { + "line": 46, + "column": 6 + }, + "end": { + "line": 46, + "column": 14 + } + }, + "extra": { + "rawValue": "{lock}", + "raw": "'{lock}'" + }, + "value": "{lock}" + }, + "value": { + "type": "StringLiteral", + "start": 1262, + "end": 1268, + "loc": { + "start": { + "line": 46, + "column": 16 + }, + "end": { + "line": 46, + "column": 22 + } + }, + "extra": { + "rawValue": "caps", + "raw": "'caps'" + }, + "value": "caps" + } + }, + { + "type": "ObjectProperty", + "start": 1277, + "end": 1297, + "loc": { + "start": { + "line": 47, + "column": 6 + }, + "end": { + "line": 47, + "column": 26 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "StringLiteral", + "start": 1277, + "end": 1289, + "loc": { + "start": { + "line": 47, + "column": 6 + }, + "end": { + "line": 47, + "column": 18 + } + }, + "extra": { + "rawValue": "{capslock}", + "raw": "'{capslock}'" + }, + "value": "{capslock}" + }, + "value": { + "type": "StringLiteral", + "start": 1291, + "end": 1297, + "loc": { + "start": { + "line": 47, + "column": 20 + }, + "end": { + "line": 47, + "column": 26 + } + }, + "extra": { + "rawValue": "caps", + "raw": "'caps'" + }, + "value": "caps" + } + }, + { + "type": "ObjectProperty", + "start": 1306, + "end": 1326, + "loc": { + "start": { + "line": 48, + "column": 6 + }, + "end": { + "line": 48, + "column": 26 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "StringLiteral", + "start": 1306, + "end": 1316, + "loc": { + "start": { + "line": 48, + "column": 6 + }, + "end": { + "line": 48, + "column": 16 + } + }, + "extra": { + "rawValue": "{accept}", + "raw": "'{accept}'" + }, + "value": "{accept}" + }, + "value": { + "type": "StringLiteral", + "start": 1318, + "end": 1326, + "loc": { + "start": { + "line": 48, + "column": 18 + }, + "end": { + "line": 48, + "column": 26 + } + }, + "extra": { + "rawValue": "Submit", + "raw": "'Submit'" + }, + "value": "Submit" + } + }, + { + "type": "ObjectProperty", + "start": 1335, + "end": 1349, + "loc": { + "start": { + "line": 49, + "column": 6 + }, + "end": { + "line": 49, + "column": 20 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "StringLiteral", + "start": 1335, + "end": 1344, + "loc": { + "start": { + "line": 49, + "column": 6 + }, + "end": { + "line": 49, + "column": 15 + } + }, + "extra": { + "rawValue": "{space}", + "raw": "'{space}'" + }, + "value": "{space}" + }, + "value": { + "type": "StringLiteral", + "start": 1346, + "end": 1349, + "loc": { + "start": { + "line": 49, + "column": 17 + }, + "end": { + "line": 49, + "column": 20 + } + }, + "extra": { + "rawValue": " ", + "raw": "' '" + }, + "value": " " + } + }, + { + "type": "ObjectProperty", + "start": 1358, + "end": 1369, + "loc": { + "start": { + "line": 50, + "column": 6 + }, + "end": { + "line": 50, + "column": 17 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "StringLiteral", + "start": 1358, + "end": 1364, + "loc": { + "start": { + "line": 50, + "column": 6 + }, + "end": { + "line": 50, + "column": 12 + } + }, + "extra": { + "rawValue": "{//}", + "raw": "'{//}'" + }, + "value": "{//}" + }, + "value": { + "type": "StringLiteral", + "start": 1366, + "end": 1369, + "loc": { + "start": { + "line": 50, + "column": 14 + }, + "end": { + "line": 50, + "column": 17 + } + }, + "extra": { + "rawValue": " ", + "raw": "' '" + }, + "value": " " + } + }, + { + "type": "ObjectProperty", + "start": 1378, + "end": 1392, + "loc": { + "start": { + "line": 51, + "column": 6 + }, + "end": { + "line": 51, + "column": 20 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "StringLiteral", + "start": 1378, + "end": 1385, + "loc": { + "start": { + "line": 51, + "column": 6 + }, + "end": { + "line": 51, + "column": 13 + } + }, + "extra": { + "rawValue": "{esc}", + "raw": "\"{esc}\"" + }, + "value": "{esc}" + }, + "value": { + "type": "StringLiteral", + "start": 1387, + "end": 1392, + "loc": { + "start": { + "line": 51, + "column": 15 + }, + "end": { + "line": 51, + "column": 20 + } + }, + "extra": { + "rawValue": "esc", + "raw": "\"esc\"" + }, + "value": "esc" + } + }, + { + "type": "ObjectProperty", + "start": 1401, + "end": 1418, + "loc": { + "start": { + "line": 52, + "column": 6 + }, + "end": { + "line": 52, + "column": 23 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "StringLiteral", + "start": 1401, + "end": 1411, + "loc": { + "start": { + "line": 52, + "column": 6 + }, + "end": { + "line": 52, + "column": 16 + } + }, + "extra": { + "rawValue": "{escape}", + "raw": "\"{escape}\"" + }, + "value": "{escape}" + }, + "value": { + "type": "StringLiteral", + "start": 1413, + "end": 1418, + "loc": { + "start": { + "line": 52, + "column": 18 + }, + "end": { + "line": 52, + "column": 23 + } + }, + "extra": { + "rawValue": "esc", + "raw": "\"esc\"" + }, + "value": "esc" + } + }, + { + "type": "ObjectProperty", + "start": 1427, + "end": 1439, + "loc": { + "start": { + "line": 53, + "column": 6 + }, + "end": { + "line": 53, + "column": 18 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "StringLiteral", + "start": 1427, + "end": 1433, + "loc": { + "start": { + "line": 53, + "column": 6 + }, + "end": { + "line": 53, + "column": 12 + } + }, + "extra": { + "rawValue": "{f1}", + "raw": "\"{f1}\"" + }, + "value": "{f1}" + }, + "value": { + "type": "StringLiteral", + "start": 1435, + "end": 1439, + "loc": { + "start": { + "line": 53, + "column": 14 + }, + "end": { + "line": 53, + "column": 18 + } + }, + "extra": { + "rawValue": "f1", + "raw": "\"f1\"" + }, + "value": "f1" + } + }, + { + "type": "ObjectProperty", + "start": 1448, + "end": 1460, + "loc": { + "start": { + "line": 54, + "column": 6 + }, + "end": { + "line": 54, + "column": 18 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "StringLiteral", + "start": 1448, + "end": 1454, + "loc": { + "start": { + "line": 54, + "column": 6 + }, + "end": { + "line": 54, + "column": 12 + } + }, + "extra": { + "rawValue": "{f2}", + "raw": "\"{f2}\"" + }, + "value": "{f2}" + }, + "value": { + "type": "StringLiteral", + "start": 1456, + "end": 1460, + "loc": { + "start": { + "line": 54, + "column": 14 + }, + "end": { + "line": 54, + "column": 18 + } + }, + "extra": { + "rawValue": "f2", + "raw": "\"f2\"" + }, + "value": "f2" + } + }, + { + "type": "ObjectProperty", + "start": 1469, + "end": 1481, + "loc": { + "start": { + "line": 55, + "column": 6 + }, + "end": { + "line": 55, + "column": 18 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "StringLiteral", + "start": 1469, + "end": 1475, + "loc": { + "start": { + "line": 55, + "column": 6 + }, + "end": { + "line": 55, + "column": 12 + } + }, + "extra": { + "rawValue": "{f3}", + "raw": "\"{f3}\"" + }, + "value": "{f3}" + }, + "value": { + "type": "StringLiteral", + "start": 1477, + "end": 1481, + "loc": { + "start": { + "line": 55, + "column": 14 + }, + "end": { + "line": 55, + "column": 18 + } + }, + "extra": { + "rawValue": "f3", + "raw": "\"f3\"" + }, + "value": "f3" + } + }, + { + "type": "ObjectProperty", + "start": 1490, + "end": 1502, + "loc": { + "start": { + "line": 56, + "column": 6 + }, + "end": { + "line": 56, + "column": 18 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "StringLiteral", + "start": 1490, + "end": 1496, + "loc": { + "start": { + "line": 56, + "column": 6 + }, + "end": { + "line": 56, + "column": 12 + } + }, + "extra": { + "rawValue": "{f4}", + "raw": "\"{f4}\"" + }, + "value": "{f4}" + }, + "value": { + "type": "StringLiteral", + "start": 1498, + "end": 1502, + "loc": { + "start": { + "line": 56, + "column": 14 + }, + "end": { + "line": 56, + "column": 18 + } + }, + "extra": { + "rawValue": "f4", + "raw": "\"f4\"" + }, + "value": "f4" + } + }, + { + "type": "ObjectProperty", + "start": 1511, + "end": 1523, + "loc": { + "start": { + "line": 57, + "column": 6 + }, + "end": { + "line": 57, + "column": 18 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "StringLiteral", + "start": 1511, + "end": 1517, + "loc": { + "start": { + "line": 57, + "column": 6 + }, + "end": { + "line": 57, + "column": 12 + } + }, + "extra": { + "rawValue": "{f5}", + "raw": "\"{f5}\"" + }, + "value": "{f5}" + }, + "value": { + "type": "StringLiteral", + "start": 1519, + "end": 1523, + "loc": { + "start": { + "line": 57, + "column": 14 + }, + "end": { + "line": 57, + "column": 18 + } + }, + "extra": { + "rawValue": "f5", + "raw": "\"f5\"" + }, + "value": "f5" + } + }, + { + "type": "ObjectProperty", + "start": 1532, + "end": 1544, + "loc": { + "start": { + "line": 58, + "column": 6 + }, + "end": { + "line": 58, + "column": 18 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "StringLiteral", + "start": 1532, + "end": 1538, + "loc": { + "start": { + "line": 58, + "column": 6 + }, + "end": { + "line": 58, + "column": 12 + } + }, + "extra": { + "rawValue": "{f6}", + "raw": "\"{f6}\"" + }, + "value": "{f6}" + }, + "value": { + "type": "StringLiteral", + "start": 1540, + "end": 1544, + "loc": { + "start": { + "line": 58, + "column": 14 + }, + "end": { + "line": 58, + "column": 18 + } + }, + "extra": { + "rawValue": "f6", + "raw": "\"f6\"" + }, + "value": "f6" + } + }, + { + "type": "ObjectProperty", + "start": 1553, + "end": 1565, + "loc": { + "start": { + "line": 59, + "column": 6 + }, + "end": { + "line": 59, + "column": 18 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "StringLiteral", + "start": 1553, + "end": 1559, + "loc": { + "start": { + "line": 59, + "column": 6 + }, + "end": { + "line": 59, + "column": 12 + } + }, + "extra": { + "rawValue": "{f7}", + "raw": "\"{f7}\"" + }, + "value": "{f7}" + }, + "value": { + "type": "StringLiteral", + "start": 1561, + "end": 1565, + "loc": { + "start": { + "line": 59, + "column": 14 + }, + "end": { + "line": 59, + "column": 18 + } + }, + "extra": { + "rawValue": "f7", + "raw": "\"f7\"" + }, + "value": "f7" + } + }, + { + "type": "ObjectProperty", + "start": 1574, + "end": 1586, + "loc": { + "start": { + "line": 60, + "column": 6 + }, + "end": { + "line": 60, + "column": 18 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "StringLiteral", + "start": 1574, + "end": 1580, + "loc": { + "start": { + "line": 60, + "column": 6 + }, + "end": { + "line": 60, + "column": 12 + } + }, + "extra": { + "rawValue": "{f8}", + "raw": "\"{f8}\"" + }, + "value": "{f8}" + }, + "value": { + "type": "StringLiteral", + "start": 1582, + "end": 1586, + "loc": { + "start": { + "line": 60, + "column": 14 + }, + "end": { + "line": 60, + "column": 18 + } + }, + "extra": { + "rawValue": "f8", + "raw": "\"f8\"" + }, + "value": "f8" + } + }, + { + "type": "ObjectProperty", + "start": 1595, + "end": 1607, + "loc": { + "start": { + "line": 61, + "column": 6 + }, + "end": { + "line": 61, + "column": 18 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "StringLiteral", + "start": 1595, + "end": 1601, + "loc": { + "start": { + "line": 61, + "column": 6 + }, + "end": { + "line": 61, + "column": 12 + } + }, + "extra": { + "rawValue": "{f9}", + "raw": "\"{f9}\"" + }, + "value": "{f9}" + }, + "value": { + "type": "StringLiteral", + "start": 1603, + "end": 1607, + "loc": { + "start": { + "line": 61, + "column": 14 + }, + "end": { + "line": 61, + "column": 18 + } + }, + "extra": { + "rawValue": "f9", + "raw": "\"f9\"" + }, + "value": "f9" + } + }, + { + "type": "ObjectProperty", + "start": 1616, + "end": 1630, + "loc": { + "start": { + "line": 62, + "column": 6 + }, + "end": { + "line": 62, + "column": 20 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "StringLiteral", + "start": 1616, + "end": 1623, + "loc": { + "start": { + "line": 62, + "column": 6 + }, + "end": { + "line": 62, + "column": 13 + } + }, + "extra": { + "rawValue": "{f10}", + "raw": "\"{f10}\"" + }, + "value": "{f10}" + }, + "value": { + "type": "StringLiteral", + "start": 1625, + "end": 1630, + "loc": { + "start": { + "line": 62, + "column": 15 + }, + "end": { + "line": 62, + "column": 20 + } + }, + "extra": { + "rawValue": "f10", + "raw": "\"f10\"" + }, + "value": "f10" + } + }, + { + "type": "ObjectProperty", + "start": 1639, + "end": 1653, + "loc": { + "start": { + "line": 63, + "column": 6 + }, + "end": { + "line": 63, + "column": 20 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "StringLiteral", + "start": 1639, + "end": 1646, + "loc": { + "start": { + "line": 63, + "column": 6 + }, + "end": { + "line": 63, + "column": 13 + } + }, + "extra": { + "rawValue": "{f11}", + "raw": "\"{f11}\"" + }, + "value": "{f11}" + }, + "value": { + "type": "StringLiteral", + "start": 1648, + "end": 1653, + "loc": { + "start": { + "line": 63, + "column": 15 + }, + "end": { + "line": 63, + "column": 20 + } + }, + "extra": { + "rawValue": "f11", + "raw": "\"f11\"" + }, + "value": "f11" + } + }, + { + "type": "ObjectProperty", + "start": 1662, + "end": 1676, + "loc": { + "start": { + "line": 64, + "column": 6 + }, + "end": { + "line": 64, + "column": 20 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "StringLiteral", + "start": 1662, + "end": 1669, + "loc": { + "start": { + "line": 64, + "column": 6 + }, + "end": { + "line": 64, + "column": 13 + } + }, + "extra": { + "rawValue": "{f12}", + "raw": "\"{f12}\"" + }, + "value": "{f12}" + }, + "value": { + "type": "StringLiteral", + "start": 1671, + "end": 1676, + "loc": { + "start": { + "line": 64, + "column": 15 + }, + "end": { + "line": 64, + "column": 20 + } + }, + "extra": { + "rawValue": "f12", + "raw": "\"f12\"" + }, + "value": "f12" + } + }, + { + "type": "ObjectProperty", + "start": 1685, + "end": 1706, + "loc": { + "start": { + "line": 65, + "column": 6 + }, + "end": { + "line": 65, + "column": 27 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "StringLiteral", + "start": 1685, + "end": 1701, + "loc": { + "start": { + "line": 65, + "column": 6 + }, + "end": { + "line": 65, + "column": 22 + } + }, + "extra": { + "rawValue": "{numpaddivide}", + "raw": "'{numpaddivide}'" + }, + "value": "{numpaddivide}" + }, + "value": { + "type": "StringLiteral", + "start": 1703, + "end": 1706, + "loc": { + "start": { + "line": 65, + "column": 24 + }, + "end": { + "line": 65, + "column": 27 + } + }, + "extra": { + "rawValue": "/", + "raw": "'/'" + }, + "value": "/" + } + }, + { + "type": "ObjectProperty", + "start": 1715, + "end": 1734, + "loc": { + "start": { + "line": 66, + "column": 6 + }, + "end": { + "line": 66, + "column": 25 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "StringLiteral", + "start": 1715, + "end": 1726, + "loc": { + "start": { + "line": 66, + "column": 6 + }, + "end": { + "line": 66, + "column": 17 + } + }, + "extra": { + "rawValue": "{numlock}", + "raw": "'{numlock}'" + }, + "value": "{numlock}" + }, + "value": { + "type": "StringLiteral", + "start": 1728, + "end": 1734, + "loc": { + "start": { + "line": 66, + "column": 19 + }, + "end": { + "line": 66, + "column": 25 + } + }, + "extra": { + "rawValue": "lock", + "raw": "'lock'" + }, + "value": "lock" + } + }, + { + "type": "ObjectProperty", + "start": 1743, + "end": 1759, + "loc": { + "start": { + "line": 67, + "column": 6 + }, + "end": { + "line": 67, + "column": 22 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "StringLiteral", + "start": 1743, + "end": 1754, + "loc": { + "start": { + "line": 67, + "column": 6 + }, + "end": { + "line": 67, + "column": 17 + } + }, + "extra": { + "rawValue": "{arrowup}", + "raw": "\"{arrowup}\"" + }, + "value": "{arrowup}" + }, + "value": { + "type": "StringLiteral", + "start": 1756, + "end": 1759, + "loc": { + "start": { + "line": 67, + "column": 19 + }, + "end": { + "line": 67, + "column": 22 + } + }, + "extra": { + "rawValue": "↑", + "raw": "\"↑\"" + }, + "value": "↑" + } + }, + { + "type": "ObjectProperty", + "start": 1768, + "end": 1786, + "loc": { + "start": { + "line": 68, + "column": 6 + }, + "end": { + "line": 68, + "column": 24 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "StringLiteral", + "start": 1768, + "end": 1781, + "loc": { + "start": { + "line": 68, + "column": 6 + }, + "end": { + "line": 68, + "column": 19 + } + }, + "extra": { + "rawValue": "{arrowleft}", + "raw": "\"{arrowleft}\"" + }, + "value": "{arrowleft}" + }, + "value": { + "type": "StringLiteral", + "start": 1783, + "end": 1786, + "loc": { + "start": { + "line": 68, + "column": 21 + }, + "end": { + "line": 68, + "column": 24 + } + }, + "extra": { + "rawValue": "←", + "raw": "\"←\"" + }, + "value": "←" + } + }, + { + "type": "ObjectProperty", + "start": 1795, + "end": 1813, + "loc": { + "start": { + "line": 69, + "column": 6 + }, + "end": { + "line": 69, + "column": 24 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "StringLiteral", + "start": 1795, + "end": 1808, + "loc": { + "start": { + "line": 69, + "column": 6 + }, + "end": { + "line": 69, + "column": 19 + } + }, + "extra": { + "rawValue": "{arrowdown}", + "raw": "\"{arrowdown}\"" + }, + "value": "{arrowdown}" + }, + "value": { + "type": "StringLiteral", + "start": 1810, + "end": 1813, + "loc": { + "start": { + "line": 69, + "column": 21 + }, + "end": { + "line": 69, + "column": 24 + } + }, + "extra": { + "rawValue": "↓", + "raw": "\"↓\"" + }, + "value": "↓" + } + }, + { + "type": "ObjectProperty", + "start": 1822, + "end": 1841, + "loc": { + "start": { + "line": 70, + "column": 6 + }, + "end": { + "line": 70, + "column": 25 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "StringLiteral", + "start": 1822, + "end": 1836, + "loc": { + "start": { + "line": 70, + "column": 6 + }, + "end": { + "line": 70, + "column": 20 + } + }, + "extra": { + "rawValue": "{arrowright}", + "raw": "\"{arrowright}\"" + }, + "value": "{arrowright}" + }, + "value": { + "type": "StringLiteral", + "start": 1838, + "end": 1841, + "loc": { + "start": { + "line": 70, + "column": 22 + }, + "end": { + "line": 70, + "column": 25 + } + }, + "extra": { + "rawValue": "→", + "raw": "\"→\"" + }, + "value": "→" + } + }, + { + "type": "ObjectProperty", + "start": 1850, + "end": 1869, + "loc": { + "start": { + "line": 71, + "column": 6 + }, + "end": { + "line": 71, + "column": 25 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "StringLiteral", + "start": 1850, + "end": 1860, + "loc": { + "start": { + "line": 71, + "column": 6 + }, + "end": { + "line": 71, + "column": 16 + } + }, + "extra": { + "rawValue": "{prtscr}", + "raw": "\"{prtscr}\"" + }, + "value": "{prtscr}" + }, + "value": { + "type": "StringLiteral", + "start": 1862, + "end": 1869, + "loc": { + "start": { + "line": 71, + "column": 18 + }, + "end": { + "line": 71, + "column": 25 + } + }, + "extra": { + "rawValue": "print", + "raw": "\"print\"" + }, + "value": "print" + } + }, + { + "type": "ObjectProperty", + "start": 1878, + "end": 1902, + "loc": { + "start": { + "line": 72, + "column": 6 + }, + "end": { + "line": 72, + "column": 30 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "StringLiteral", + "start": 1878, + "end": 1892, + "loc": { + "start": { + "line": 72, + "column": 6 + }, + "end": { + "line": 72, + "column": 20 + } + }, + "extra": { + "rawValue": "{scrolllock}", + "raw": "\"{scrolllock}\"" + }, + "value": "{scrolllock}" + }, + "value": { + "type": "StringLiteral", + "start": 1894, + "end": 1902, + "loc": { + "start": { + "line": 72, + "column": 22 + }, + "end": { + "line": 72, + "column": 30 + } + }, + "extra": { + "rawValue": "scroll", + "raw": "\"scroll\"" + }, + "value": "scroll" + } + }, + { + "type": "ObjectProperty", + "start": 1911, + "end": 1929, + "loc": { + "start": { + "line": 73, + "column": 6 + }, + "end": { + "line": 73, + "column": 24 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "StringLiteral", + "start": 1911, + "end": 1920, + "loc": { + "start": { + "line": 73, + "column": 6 + }, + "end": { + "line": 73, + "column": 15 + } + }, + "extra": { + "rawValue": "{pause}", + "raw": "\"{pause}\"" + }, + "value": "{pause}" + }, + "value": { + "type": "StringLiteral", + "start": 1922, + "end": 1929, + "loc": { + "start": { + "line": 73, + "column": 17 + }, + "end": { + "line": 73, + "column": 24 + } + }, + "extra": { + "rawValue": "pause", + "raw": "\"pause\"" + }, + "value": "pause" + } + }, + { + "type": "ObjectProperty", + "start": 1938, + "end": 1955, + "loc": { + "start": { + "line": 74, + "column": 6 + }, + "end": { + "line": 74, + "column": 23 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "StringLiteral", + "start": 1938, + "end": 1948, + "loc": { + "start": { + "line": 74, + "column": 6 + }, + "end": { + "line": 74, + "column": 16 + } + }, + "extra": { + "rawValue": "{insert}", + "raw": "\"{insert}\"" + }, + "value": "{insert}" + }, + "value": { + "type": "StringLiteral", + "start": 1950, + "end": 1955, + "loc": { + "start": { + "line": 74, + "column": 18 + }, + "end": { + "line": 74, + "column": 23 + } + }, + "extra": { + "rawValue": "ins", + "raw": "\"ins\"" + }, + "value": "ins" + } + }, + { + "type": "ObjectProperty", + "start": 1964, + "end": 1980, + "loc": { + "start": { + "line": 75, + "column": 6 + }, + "end": { + "line": 75, + "column": 22 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "StringLiteral", + "start": 1964, + "end": 1972, + "loc": { + "start": { + "line": 75, + "column": 6 + }, + "end": { + "line": 75, + "column": 14 + } + }, + "extra": { + "rawValue": "{home}", + "raw": "\"{home}\"" + }, + "value": "{home}" + }, + "value": { + "type": "StringLiteral", + "start": 1974, + "end": 1980, + "loc": { + "start": { + "line": 75, + "column": 16 + }, + "end": { + "line": 75, + "column": 22 + } + }, + "extra": { + "rawValue": "home", + "raw": "\"home\"" + }, + "value": "home" + } + }, + { + "type": "ObjectProperty", + "start": 1989, + "end": 2005, + "loc": { + "start": { + "line": 76, + "column": 6 + }, + "end": { + "line": 76, + "column": 22 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "StringLiteral", + "start": 1989, + "end": 1999, + "loc": { + "start": { + "line": 76, + "column": 6 + }, + "end": { + "line": 76, + "column": 16 + } + }, + "extra": { + "rawValue": "{pageup}", + "raw": "\"{pageup}\"" + }, + "value": "{pageup}" + }, + "value": { + "type": "StringLiteral", + "start": 2001, + "end": 2005, + "loc": { + "start": { + "line": 76, + "column": 18 + }, + "end": { + "line": 76, + "column": 22 + } + }, + "extra": { + "rawValue": "up", + "raw": "\"up\"" + }, + "value": "up" + } + }, + { + "type": "ObjectProperty", + "start": 2014, + "end": 2031, + "loc": { + "start": { + "line": 77, + "column": 6 + }, + "end": { + "line": 77, + "column": 23 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "StringLiteral", + "start": 2014, + "end": 2024, + "loc": { + "start": { + "line": 77, + "column": 6 + }, + "end": { + "line": 77, + "column": 16 + } + }, + "extra": { + "rawValue": "{delete}", + "raw": "\"{delete}\"" + }, + "value": "{delete}" + }, + "value": { + "type": "StringLiteral", + "start": 2026, + "end": 2031, + "loc": { + "start": { + "line": 77, + "column": 18 + }, + "end": { + "line": 77, + "column": 23 + } + }, + "extra": { + "rawValue": "del", + "raw": "\"del\"" + }, + "value": "del" + } + }, + { + "type": "ObjectProperty", + "start": 2040, + "end": 2054, + "loc": { + "start": { + "line": 78, + "column": 6 + }, + "end": { + "line": 78, + "column": 20 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "StringLiteral", + "start": 2040, + "end": 2047, + "loc": { + "start": { + "line": 78, + "column": 6 + }, + "end": { + "line": 78, + "column": 13 + } + }, + "extra": { + "rawValue": "{end}", + "raw": "\"{end}\"" + }, + "value": "{end}" + }, + "value": { + "type": "StringLiteral", + "start": 2049, + "end": 2054, + "loc": { + "start": { + "line": 78, + "column": 15 + }, + "end": { + "line": 78, + "column": 20 + } + }, + "extra": { + "rawValue": "end", + "raw": "\"end\"" + }, + "value": "end" + } + }, + { + "type": "ObjectProperty", + "start": 2063, + "end": 2083, + "loc": { + "start": { + "line": 79, + "column": 6 + }, + "end": { + "line": 79, + "column": 26 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "StringLiteral", + "start": 2063, + "end": 2075, + "loc": { + "start": { + "line": 79, + "column": 6 + }, + "end": { + "line": 79, + "column": 18 + } + }, + "extra": { + "rawValue": "{pagedown}", + "raw": "\"{pagedown}\"" + }, + "value": "{pagedown}" + }, + "value": { + "type": "StringLiteral", + "start": 2077, + "end": 2083, + "loc": { + "start": { + "line": 79, + "column": 20 + }, + "end": { + "line": 79, + "column": 26 + } + }, + "extra": { + "rawValue": "down", + "raw": "\"down\"" + }, + "value": "down" + } + }, + { + "type": "ObjectProperty", + "start": 2092, + "end": 2115, + "loc": { + "start": { + "line": 80, + "column": 6 + }, + "end": { + "line": 80, + "column": 29 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "StringLiteral", + "start": 2092, + "end": 2110, + "loc": { + "start": { + "line": 80, + "column": 6 + }, + "end": { + "line": 80, + "column": 24 + } + }, + "extra": { + "rawValue": "{numpadmultiply}", + "raw": "\"{numpadmultiply}\"" + }, + "value": "{numpadmultiply}" + }, + "value": { + "type": "StringLiteral", + "start": 2112, + "end": 2115, + "loc": { + "start": { + "line": 80, + "column": 26 + }, + "end": { + "line": 80, + "column": 29 + } + }, + "extra": { + "rawValue": "*", + "raw": "\"*\"" + }, + "value": "*" + } + }, + { + "type": "ObjectProperty", + "start": 2124, + "end": 2147, + "loc": { + "start": { + "line": 81, + "column": 6 + }, + "end": { + "line": 81, + "column": 29 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "StringLiteral", + "start": 2124, + "end": 2142, + "loc": { + "start": { + "line": 81, + "column": 6 + }, + "end": { + "line": 81, + "column": 24 + } + }, + "extra": { + "rawValue": "{numpadsubtract}", + "raw": "\"{numpadsubtract}\"" + }, + "value": "{numpadsubtract}" + }, + "value": { + "type": "StringLiteral", + "start": 2144, + "end": 2147, + "loc": { + "start": { + "line": 81, + "column": 26 + }, + "end": { + "line": 81, + "column": 29 + } + }, + "extra": { + "rawValue": "-", + "raw": "\"-\"" + }, + "value": "-" + } + }, + { + "type": "ObjectProperty", + "start": 2156, + "end": 2174, + "loc": { + "start": { + "line": 82, + "column": 6 + }, + "end": { + "line": 82, + "column": 24 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "StringLiteral", + "start": 2156, + "end": 2169, + "loc": { + "start": { + "line": 82, + "column": 6 + }, + "end": { + "line": 82, + "column": 19 + } + }, + "extra": { + "rawValue": "{numpadadd}", + "raw": "\"{numpadadd}\"" + }, + "value": "{numpadadd}" + }, + "value": { + "type": "StringLiteral", + "start": 2171, + "end": 2174, + "loc": { + "start": { + "line": 82, + "column": 21 + }, + "end": { + "line": 82, + "column": 24 + } + }, + "extra": { + "rawValue": "+", + "raw": "\"+\"" + }, + "value": "+" + } + }, + { + "type": "ObjectProperty", + "start": 2183, + "end": 2207, + "loc": { + "start": { + "line": 83, + "column": 6 + }, + "end": { + "line": 83, + "column": 30 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "StringLiteral", + "start": 2183, + "end": 2198, + "loc": { + "start": { + "line": 83, + "column": 6 + }, + "end": { + "line": 83, + "column": 21 + } + }, + "extra": { + "rawValue": "{numpadenter}", + "raw": "\"{numpadenter}\"" + }, + "value": "{numpadenter}" + }, + "value": { + "type": "StringLiteral", + "start": 2200, + "end": 2207, + "loc": { + "start": { + "line": 83, + "column": 23 + }, + "end": { + "line": 83, + "column": 30 + } + }, + "extra": { + "rawValue": "enter", + "raw": "\"enter\"" + }, + "value": "enter" + } + }, + { + "type": "ObjectProperty", + "start": 2216, + "end": 2231, + "loc": { + "start": { + "line": 84, + "column": 6 + }, + "end": { + "line": 84, + "column": 21 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "StringLiteral", + "start": 2216, + "end": 2226, + "loc": { + "start": { + "line": 84, + "column": 6 + }, + "end": { + "line": 84, + "column": 16 + } + }, + "extra": { + "rawValue": "{period}", + "raw": "\"{period}\"" + }, + "value": "{period}" + }, + "value": { + "type": "StringLiteral", + "start": 2228, + "end": 2231, + "loc": { + "start": { + "line": 84, + "column": 18 + }, + "end": { + "line": 84, + "column": 21 + } + }, + "extra": { + "rawValue": ".", + "raw": "\".\"" + }, + "value": "." + } + }, + { + "type": "ObjectProperty", + "start": 2240, + "end": 2262, + "loc": { + "start": { + "line": 85, + "column": 6 + }, + "end": { + "line": 85, + "column": 28 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "StringLiteral", + "start": 2240, + "end": 2257, + "loc": { + "start": { + "line": 85, + "column": 6 + }, + "end": { + "line": 85, + "column": 23 + } + }, + "extra": { + "rawValue": "{numpaddecimal}", + "raw": "\"{numpaddecimal}\"" + }, + "value": "{numpaddecimal}" + }, + "value": { + "type": "StringLiteral", + "start": 2259, + "end": 2262, + "loc": { + "start": { + "line": 85, + "column": 25 + }, + "end": { + "line": 85, + "column": 28 + } + }, + "extra": { + "rawValue": ".", + "raw": "\".\"" + }, + "value": "." + } + }, + { + "type": "ObjectProperty", + "start": 2271, + "end": 2287, + "loc": { + "start": { + "line": 86, + "column": 6 + }, + "end": { + "line": 86, + "column": 22 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "StringLiteral", + "start": 2271, + "end": 2282, + "loc": { + "start": { + "line": 86, + "column": 6 + }, + "end": { + "line": 86, + "column": 17 + } + }, + "extra": { + "rawValue": "{numpad0}", + "raw": "\"{numpad0}\"" + }, + "value": "{numpad0}" + }, + "value": { + "type": "StringLiteral", + "start": 2284, + "end": 2287, + "loc": { + "start": { + "line": 86, + "column": 19 + }, + "end": { + "line": 86, + "column": 22 + } + }, + "extra": { + "rawValue": "0", + "raw": "\"0\"" + }, + "value": "0" + } + }, + { + "type": "ObjectProperty", + "start": 2296, + "end": 2312, + "loc": { + "start": { + "line": 87, + "column": 6 + }, + "end": { + "line": 87, + "column": 22 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "StringLiteral", + "start": 2296, + "end": 2307, + "loc": { + "start": { + "line": 87, + "column": 6 + }, + "end": { + "line": 87, + "column": 17 + } + }, + "extra": { + "rawValue": "{numpad1}", + "raw": "\"{numpad1}\"" + }, + "value": "{numpad1}" + }, + "value": { + "type": "StringLiteral", + "start": 2309, + "end": 2312, + "loc": { + "start": { + "line": 87, + "column": 19 + }, + "end": { + "line": 87, + "column": 22 + } + }, + "extra": { + "rawValue": "1", + "raw": "\"1\"" + }, + "value": "1" + } + }, + { + "type": "ObjectProperty", + "start": 2321, + "end": 2337, + "loc": { + "start": { + "line": 88, + "column": 6 + }, + "end": { + "line": 88, + "column": 22 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "StringLiteral", + "start": 2321, + "end": 2332, + "loc": { + "start": { + "line": 88, + "column": 6 + }, + "end": { + "line": 88, + "column": 17 + } + }, + "extra": { + "rawValue": "{numpad2}", + "raw": "\"{numpad2}\"" + }, + "value": "{numpad2}" + }, + "value": { + "type": "StringLiteral", + "start": 2334, + "end": 2337, + "loc": { + "start": { + "line": 88, + "column": 19 + }, + "end": { + "line": 88, + "column": 22 + } + }, + "extra": { + "rawValue": "2", + "raw": "\"2\"" + }, + "value": "2" + } + }, + { + "type": "ObjectProperty", + "start": 2346, + "end": 2362, + "loc": { + "start": { + "line": 89, + "column": 6 + }, + "end": { + "line": 89, + "column": 22 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "StringLiteral", + "start": 2346, + "end": 2357, + "loc": { + "start": { + "line": 89, + "column": 6 + }, + "end": { + "line": 89, + "column": 17 + } + }, + "extra": { + "rawValue": "{numpad3}", + "raw": "\"{numpad3}\"" + }, + "value": "{numpad3}" + }, + "value": { + "type": "StringLiteral", + "start": 2359, + "end": 2362, + "loc": { + "start": { + "line": 89, + "column": 19 + }, + "end": { + "line": 89, + "column": 22 + } + }, + "extra": { + "rawValue": "3", + "raw": "\"3\"" + }, + "value": "3" + } + }, + { + "type": "ObjectProperty", + "start": 2371, + "end": 2387, + "loc": { + "start": { + "line": 90, + "column": 6 + }, + "end": { + "line": 90, + "column": 22 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "StringLiteral", + "start": 2371, + "end": 2382, + "loc": { + "start": { + "line": 90, + "column": 6 + }, + "end": { + "line": 90, + "column": 17 + } + }, + "extra": { + "rawValue": "{numpad4}", + "raw": "\"{numpad4}\"" + }, + "value": "{numpad4}" + }, + "value": { + "type": "StringLiteral", + "start": 2384, + "end": 2387, + "loc": { + "start": { + "line": 90, + "column": 19 + }, + "end": { + "line": 90, + "column": 22 + } + }, + "extra": { + "rawValue": "4", + "raw": "\"4\"" + }, + "value": "4" + } + }, + { + "type": "ObjectProperty", + "start": 2396, + "end": 2412, + "loc": { + "start": { + "line": 91, + "column": 6 + }, + "end": { + "line": 91, + "column": 22 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "StringLiteral", + "start": 2396, + "end": 2407, + "loc": { + "start": { + "line": 91, + "column": 6 + }, + "end": { + "line": 91, + "column": 17 + } + }, + "extra": { + "rawValue": "{numpad5}", + "raw": "\"{numpad5}\"" + }, + "value": "{numpad5}" + }, + "value": { + "type": "StringLiteral", + "start": 2409, + "end": 2412, + "loc": { + "start": { + "line": 91, + "column": 19 + }, + "end": { + "line": 91, + "column": 22 + } + }, + "extra": { + "rawValue": "5", + "raw": "\"5\"" + }, + "value": "5" + } + }, + { + "type": "ObjectProperty", + "start": 2421, + "end": 2437, + "loc": { + "start": { + "line": 92, + "column": 6 + }, + "end": { + "line": 92, + "column": 22 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "StringLiteral", + "start": 2421, + "end": 2432, + "loc": { + "start": { + "line": 92, + "column": 6 + }, + "end": { + "line": 92, + "column": 17 + } + }, + "extra": { + "rawValue": "{numpad6}", + "raw": "\"{numpad6}\"" + }, + "value": "{numpad6}" + }, + "value": { + "type": "StringLiteral", + "start": 2434, + "end": 2437, + "loc": { + "start": { + "line": 92, + "column": 19 + }, + "end": { + "line": 92, + "column": 22 + } + }, + "extra": { + "rawValue": "6", + "raw": "\"6\"" + }, + "value": "6" + } + }, + { + "type": "ObjectProperty", + "start": 2446, + "end": 2462, + "loc": { + "start": { + "line": 93, + "column": 6 + }, + "end": { + "line": 93, + "column": 22 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "StringLiteral", + "start": 2446, + "end": 2457, + "loc": { + "start": { + "line": 93, + "column": 6 + }, + "end": { + "line": 93, + "column": 17 + } + }, + "extra": { + "rawValue": "{numpad7}", + "raw": "\"{numpad7}\"" + }, + "value": "{numpad7}" + }, + "value": { + "type": "StringLiteral", + "start": 2459, + "end": 2462, + "loc": { + "start": { + "line": 93, + "column": 19 + }, + "end": { + "line": 93, + "column": 22 + } + }, + "extra": { + "rawValue": "7", + "raw": "\"7\"" + }, + "value": "7" + } + }, + { + "type": "ObjectProperty", + "start": 2471, + "end": 2487, + "loc": { + "start": { + "line": 94, + "column": 6 + }, + "end": { + "line": 94, + "column": 22 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "StringLiteral", + "start": 2471, + "end": 2482, + "loc": { + "start": { + "line": 94, + "column": 6 + }, + "end": { + "line": 94, + "column": 17 + } + }, + "extra": { + "rawValue": "{numpad8}", + "raw": "\"{numpad8}\"" + }, + "value": "{numpad8}" + }, + "value": { + "type": "StringLiteral", + "start": 2484, + "end": 2487, + "loc": { + "start": { + "line": 94, + "column": 19 + }, + "end": { + "line": 94, + "column": 22 + } + }, + "extra": { + "rawValue": "8", + "raw": "\"8\"" + }, + "value": "8" + } + }, + { + "type": "ObjectProperty", + "start": 2496, + "end": 2512, + "loc": { + "start": { + "line": 95, + "column": 6 + }, + "end": { + "line": 95, + "column": 22 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "StringLiteral", + "start": 2496, + "end": 2507, + "loc": { + "start": { + "line": 95, + "column": 6 + }, + "end": { + "line": 95, + "column": 17 + } + }, + "extra": { + "rawValue": "{numpad9}", + "raw": "\"{numpad9}\"" + }, + "value": "{numpad9}" + }, + "value": { + "type": "StringLiteral", + "start": 2509, + "end": 2512, + "loc": { + "start": { + "line": 95, + "column": 19 + }, + "end": { + "line": 95, + "column": 22 + } + }, + "extra": { + "rawValue": "9", + "raw": "\"9\"" + }, + "value": "9" + } + } + ] + } + } + ], + "directives": [], + "trailingComments": null + }, + "leadingComments": [ + { + "type": "CommentBlock", + "value": "*\r\n * Default button display labels\r\n ", + "start": 908, + "end": 954, + "loc": { + "start": { + "line": 32, + "column": 2 + }, + "end": { + "line": 34, + "column": 5 + } + } + } + ], + "trailingComments": [ + { + "type": "CommentBlock", + "value": "*\r\n * Returns the display (label) name for a given button\r\n * \r\n * @param {string} button The button's layout name\r\n * @param {object} display The provided display option\r\n * @param {boolean} mergeDisplay Whether the provided param value should be merged with the default one.\r\n ", + "start": 2530, + "end": 2828, + "loc": { + "start": { + "line": 98, + "column": 2 + }, + "end": { + "line": 104, + "column": 5 + } + } + } + ] + }, + { + "type": "ClassProperty", + "start": 2832, + "end": 3104, + "loc": { + "start": { + "line": 105, + "column": 2 + }, + "end": { + "line": 113, + "column": 3 + } + }, + "static": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 2832, + "end": 2852, + "loc": { + "start": { + "line": 105, + "column": 2 + }, + "end": { + "line": 105, + "column": 22 + }, + "identifierName": "getButtonDisplayName" + }, + "name": "getButtonDisplayName", + "leadingComments": null + }, + "value": { + "type": "ArrowFunctionExpression", + "start": 2855, + "end": 3104, + "loc": { + "start": { + "line": 105, + "column": 25 + }, + "end": { + "line": 113, + "column": 3 + } + }, + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 2856, + "end": 2862, + "loc": { + "start": { + "line": 105, + "column": 26 + }, + "end": { + "line": 105, + "column": 32 + }, + "identifierName": "button" + }, + "name": "button" + }, + { + "type": "Identifier", + "start": 2864, + "end": 2871, + "loc": { + "start": { + "line": 105, + "column": 34 + }, + "end": { + "line": 105, + "column": 41 + }, + "identifierName": "display" + }, + "name": "display" + }, + { + "type": "Identifier", + "start": 2873, + "end": 2885, + "loc": { + "start": { + "line": 105, + "column": 43 + }, + "end": { + "line": 105, + "column": 55 + }, + "identifierName": "mergeDisplay" + }, + "name": "mergeDisplay" + } + ], + "body": { + "type": "BlockStatement", + "start": 2890, + "end": 3104, + "loc": { + "start": { + "line": 105, + "column": 60 + }, + "end": { + "line": 113, + "column": 3 + } + }, + "body": [ + { + "type": "IfStatement", + "start": 2897, + "end": 3058, + "loc": { + "start": { + "line": 106, + "column": 4 + }, + "end": { + "line": 110, + "column": 5 + } + }, + "test": { + "type": "Identifier", + "start": 2900, + "end": 2912, + "loc": { + "start": { + "line": 106, + "column": 7 + }, + "end": { + "line": 106, + "column": 19 + }, + "identifierName": "mergeDisplay" + }, + "name": "mergeDisplay" + }, + "consequent": { + "type": "BlockStatement", + "start": 2913, + "end": 2991, + "loc": { + "start": { + "line": 106, + "column": 20 + }, + "end": { + "line": 108, + "column": 5 + } + }, + "body": [ + { + "type": "ExpressionStatement", + "start": 2922, + "end": 2984, + "loc": { + "start": { + "line": 107, + "column": 6 + }, + "end": { + "line": 107, + "column": 68 + } + }, + "expression": { + "type": "AssignmentExpression", + "start": 2922, + "end": 2983, + "loc": { + "start": { + "line": 107, + "column": 6 + }, + "end": { + "line": 107, + "column": 67 + } + }, + "operator": "=", + "left": { + "type": "Identifier", + "start": 2922, + "end": 2929, + "loc": { + "start": { + "line": 107, + "column": 6 + }, + "end": { + "line": 107, + "column": 13 + }, + "identifierName": "display" + }, + "name": "display" + }, + "right": { + "type": "CallExpression", + "start": 2932, + "end": 2983, + "loc": { + "start": { + "line": 107, + "column": 16 + }, + "end": { + "line": 107, + "column": 67 + } + }, + "callee": { + "type": "MemberExpression", + "start": 2932, + "end": 2945, + "loc": { + "start": { + "line": 107, + "column": 16 + }, + "end": { + "line": 107, + "column": 29 + } + }, + "object": { + "type": "Identifier", + "start": 2932, + "end": 2938, + "loc": { + "start": { + "line": 107, + "column": 16 + }, + "end": { + "line": 107, + "column": 22 + }, + "identifierName": "Object" + }, + "name": "Object" + }, + "property": { + "type": "Identifier", + "start": 2939, + "end": 2945, + "loc": { + "start": { + "line": 107, + "column": 23 + }, + "end": { + "line": 107, + "column": 29 + }, + "identifierName": "assign" + }, + "name": "assign" + }, + "computed": false + }, + "arguments": [ + { + "type": "ObjectExpression", + "start": 2946, + "end": 2948, + "loc": { + "start": { + "line": 107, + "column": 30 + }, + "end": { + "line": 107, + "column": 32 + } + }, + "properties": [] + }, + { + "type": "CallExpression", + "start": 2950, + "end": 2973, + "loc": { + "start": { + "line": 107, + "column": 34 + }, + "end": { + "line": 107, + "column": 57 + } + }, + "callee": { + "type": "MemberExpression", + "start": 2950, + "end": 2971, + "loc": { + "start": { + "line": 107, + "column": 34 + }, + "end": { + "line": 107, + "column": 55 + } + }, + "object": { + "type": "ThisExpression", + "start": 2950, + "end": 2954, + "loc": { + "start": { + "line": 107, + "column": 34 + }, + "end": { + "line": 107, + "column": 38 + } + } + }, + "property": { + "type": "Identifier", + "start": 2955, + "end": 2971, + "loc": { + "start": { + "line": 107, + "column": 39 + }, + "end": { + "line": 107, + "column": 55 + }, + "identifierName": "getDefaultDiplay" + }, + "name": "getDefaultDiplay" + }, + "computed": false + }, + "arguments": [] + }, + { + "type": "Identifier", + "start": 2975, + "end": 2982, + "loc": { + "start": { + "line": 107, + "column": 59 + }, + "end": { + "line": 107, + "column": 66 + }, + "identifierName": "display" + }, + "name": "display" + } + ] + } + } + } + ], + "directives": [] + }, + "alternate": { + "type": "BlockStatement", + "start": 2997, + "end": 3058, + "loc": { + "start": { + "line": 108, + "column": 11 + }, + "end": { + "line": 110, + "column": 5 + } + }, + "body": [ + { + "type": "ExpressionStatement", + "start": 3006, + "end": 3051, + "loc": { + "start": { + "line": 109, + "column": 6 + }, + "end": { + "line": 109, + "column": 51 + } + }, + "expression": { + "type": "AssignmentExpression", + "start": 3006, + "end": 3050, + "loc": { + "start": { + "line": 109, + "column": 6 + }, + "end": { + "line": 109, + "column": 50 + } + }, + "operator": "=", + "left": { + "type": "Identifier", + "start": 3006, + "end": 3013, + "loc": { + "start": { + "line": 109, + "column": 6 + }, + "end": { + "line": 109, + "column": 13 + }, + "identifierName": "display" + }, + "name": "display" + }, + "right": { + "type": "LogicalExpression", + "start": 3016, + "end": 3050, + "loc": { + "start": { + "line": 109, + "column": 16 + }, + "end": { + "line": 109, + "column": 50 + } + }, + "left": { + "type": "Identifier", + "start": 3016, + "end": 3023, + "loc": { + "start": { + "line": 109, + "column": 16 + }, + "end": { + "line": 109, + "column": 23 + }, + "identifierName": "display" + }, + "name": "display" + }, + "operator": "||", + "right": { + "type": "CallExpression", + "start": 3027, + "end": 3050, + "loc": { + "start": { + "line": 109, + "column": 27 + }, + "end": { + "line": 109, + "column": 50 + } + }, + "callee": { + "type": "MemberExpression", + "start": 3027, + "end": 3048, + "loc": { + "start": { + "line": 109, + "column": 27 + }, + "end": { + "line": 109, + "column": 48 + } + }, + "object": { + "type": "ThisExpression", + "start": 3027, + "end": 3031, + "loc": { + "start": { + "line": 109, + "column": 27 + }, + "end": { + "line": 109, + "column": 31 + } + } + }, + "property": { + "type": "Identifier", + "start": 3032, + "end": 3048, + "loc": { + "start": { + "line": 109, + "column": 32 + }, + "end": { + "line": 109, + "column": 48 + }, + "identifierName": "getDefaultDiplay" + }, + "name": "getDefaultDiplay" + }, + "computed": false + }, + "arguments": [] + } + } + } + } + ], + "directives": [] + } + }, + { + "type": "ReturnStatement", + "start": 3066, + "end": 3099, + "loc": { + "start": { + "line": 112, + "column": 4 + }, + "end": { + "line": 112, + "column": 37 + } + }, + "argument": { + "type": "LogicalExpression", + "start": 3073, + "end": 3098, + "loc": { + "start": { + "line": 112, + "column": 11 + }, + "end": { + "line": 112, + "column": 36 + } + }, + "left": { + "type": "MemberExpression", + "start": 3073, + "end": 3088, + "loc": { + "start": { + "line": 112, + "column": 11 + }, + "end": { + "line": 112, + "column": 26 + } + }, + "object": { + "type": "Identifier", + "start": 3073, + "end": 3080, + "loc": { + "start": { + "line": 112, + "column": 11 + }, + "end": { + "line": 112, + "column": 18 + }, + "identifierName": "display" + }, + "name": "display" + }, + "property": { + "type": "Identifier", + "start": 3081, + "end": 3087, + "loc": { + "start": { + "line": 112, + "column": 19 + }, + "end": { + "line": 112, + "column": 25 + }, + "identifierName": "button" + }, + "name": "button" + }, + "computed": true + }, + "operator": "||", + "right": { + "type": "Identifier", + "start": 3092, + "end": 3098, + "loc": { + "start": { + "line": 112, + "column": 30 + }, + "end": { + "line": 112, + "column": 36 + }, + "identifierName": "button" + }, + "name": "button" + } + } + } + ], + "directives": [], + "trailingComments": null + }, + "trailingComments": null + }, + "leadingComments": [ + { + "type": "CommentBlock", + "value": "*\r\n * Returns the display (label) name for a given button\r\n * \r\n * @param {string} button The button's layout name\r\n * @param {object} display The provided display option\r\n * @param {boolean} mergeDisplay Whether the provided param value should be merged with the default one.\r\n ", + "start": 2530, + "end": 2828, + "loc": { + "start": { + "line": 98, + "column": 2 + }, + "end": { + "line": 104, + "column": 5 + } + } + } + ], + "trailingComments": [ + { + "type": "CommentBlock", + "value": "*\r\n * Returns the updated input resulting from clicking a given button\r\n * \r\n * @param {string} button The button's layout name\r\n * @param {string} input The input string\r\n * @param {object} options The simple-keyboard options object\r\n * @param {number} caretPos The cursor's current position\r\n ", + "start": 3114, + "end": 3431, + "loc": { + "start": { + "line": 116, + "column": 2 + }, + "end": { + "line": 123, + "column": 5 + } + } + } + ] + }, + { + "type": "ClassProperty", + "start": 3435, + "end": 5028, + "loc": { + "start": { + "line": 124, + "column": 2 + }, + "end": { + "line": 164, + "column": 3 + } + }, + "static": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 3435, + "end": 3450, + "loc": { + "start": { + "line": 124, + "column": 2 + }, + "end": { + "line": 124, + "column": 17 + }, + "identifierName": "getUpdatedInput" + }, + "name": "getUpdatedInput", + "leadingComments": null + }, + "value": { + "type": "ArrowFunctionExpression", + "start": 3453, + "end": 5028, + "loc": { + "start": { + "line": 124, + "column": 20 + }, + "end": { + "line": 164, + "column": 3 + } + }, + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 3454, + "end": 3460, + "loc": { + "start": { + "line": 124, + "column": 21 + }, + "end": { + "line": 124, + "column": 27 + }, + "identifierName": "button" + }, + "name": "button" + }, + { + "type": "Identifier", + "start": 3462, + "end": 3467, + "loc": { + "start": { + "line": 124, + "column": 29 + }, + "end": { + "line": 124, + "column": 34 + }, + "identifierName": "input" + }, + "name": "input" + }, + { + "type": "Identifier", + "start": 3469, + "end": 3476, + "loc": { + "start": { + "line": 124, + "column": 36 + }, + "end": { + "line": 124, + "column": 43 + }, + "identifierName": "options" + }, + "name": "options" + }, + { + "type": "Identifier", + "start": 3478, + "end": 3486, + "loc": { + "start": { + "line": 124, + "column": 45 + }, + "end": { + "line": 124, + "column": 53 + }, + "identifierName": "caretPos" + }, + "name": "caretPos" + } + ], + "body": { + "type": "BlockStatement", + "start": 3491, + "end": 5028, + "loc": { + "start": { + "line": 124, + "column": 58 + }, + "end": { + "line": 164, + "column": 3 + } + }, + "body": [ + { + "type": "VariableDeclaration", + "start": 3504, + "end": 3523, + "loc": { + "start": { + "line": 126, + "column": 4 + }, + "end": { + "line": 126, + "column": 23 + } + }, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 3508, + "end": 3522, + "loc": { + "start": { + "line": 126, + "column": 8 + }, + "end": { + "line": 126, + "column": 22 + } + }, + "id": { + "type": "Identifier", + "start": 3508, + "end": 3514, + "loc": { + "start": { + "line": 126, + "column": 8 + }, + "end": { + "line": 126, + "column": 14 + }, + "identifierName": "output" + }, + "name": "output" + }, + "init": { + "type": "Identifier", + "start": 3517, + "end": 3522, + "loc": { + "start": { + "line": 126, + "column": 17 + }, + "end": { + "line": 126, + "column": 22 + }, + "identifierName": "input" + }, + "name": "input" + } + } + ], + "kind": "let" + }, + { + "type": "IfStatement", + "start": 3531, + "end": 5001, + "loc": { + "start": { + "line": 128, + "column": 4 + }, + "end": { + "line": 161, + "column": 58 + } + }, + "test": { + "type": "LogicalExpression", + "start": 3534, + "end": 3604, + "loc": { + "start": { + "line": 128, + "column": 7 + }, + "end": { + "line": 128, + "column": 77 + } + }, + "left": { + "type": "LogicalExpression", + "start": 3535, + "end": 3582, + "loc": { + "start": { + "line": 128, + "column": 8 + }, + "end": { + "line": 128, + "column": 55 + } + }, + "left": { + "type": "BinaryExpression", + "start": 3535, + "end": 3554, + "loc": { + "start": { + "line": 128, + "column": 8 + }, + "end": { + "line": 128, + "column": 27 + } + }, + "left": { + "type": "Identifier", + "start": 3535, + "end": 3541, + "loc": { + "start": { + "line": 128, + "column": 8 + }, + "end": { + "line": 128, + "column": 14 + }, + "identifierName": "button" + }, + "name": "button" + }, + "operator": "===", + "right": { + "type": "StringLiteral", + "start": 3546, + "end": 3554, + "loc": { + "start": { + "line": 128, + "column": 19 + }, + "end": { + "line": 128, + "column": 27 + } + }, + "extra": { + "rawValue": "{bksp}", + "raw": "\"{bksp}\"" + }, + "value": "{bksp}" + } + }, + "operator": "||", + "right": { + "type": "BinaryExpression", + "start": 3558, + "end": 3582, + "loc": { + "start": { + "line": 128, + "column": 31 + }, + "end": { + "line": 128, + "column": 55 + } + }, + "left": { + "type": "Identifier", + "start": 3558, + "end": 3564, + "loc": { + "start": { + "line": 128, + "column": 31 + }, + "end": { + "line": 128, + "column": 37 + }, + "identifierName": "button" + }, + "name": "button" + }, + "operator": "===", + "right": { + "type": "StringLiteral", + "start": 3569, + "end": 3582, + "loc": { + "start": { + "line": 128, + "column": 42 + }, + "end": { + "line": 128, + "column": 55 + } + }, + "extra": { + "rawValue": "{backspace}", + "raw": "\"{backspace}\"" + }, + "value": "{backspace}" + } + }, + "extra": { + "parenthesized": true, + "parenStart": 3534 + } + }, + "operator": "&&", + "right": { + "type": "BinaryExpression", + "start": 3587, + "end": 3604, + "loc": { + "start": { + "line": 128, + "column": 60 + }, + "end": { + "line": 128, + "column": 77 + } + }, + "left": { + "type": "MemberExpression", + "start": 3587, + "end": 3600, + "loc": { + "start": { + "line": 128, + "column": 60 + }, + "end": { + "line": 128, + "column": 73 + } + }, + "object": { + "type": "Identifier", + "start": 3587, + "end": 3593, + "loc": { + "start": { + "line": 128, + "column": 60 + }, + "end": { + "line": 128, + "column": 66 + }, + "identifierName": "output" + }, + "name": "output" + }, + "property": { + "type": "Identifier", + "start": 3594, + "end": 3600, + "loc": { + "start": { + "line": 128, + "column": 67 + }, + "end": { + "line": 128, + "column": 73 + }, + "identifierName": "length" + }, + "name": "length" + }, + "computed": false + }, + "operator": ">", + "right": { + "type": "NumericLiteral", + "start": 3603, + "end": 3604, + "loc": { + "start": { + "line": 128, + "column": 76 + }, + "end": { + "line": 128, + "column": 77 + } + }, + "extra": { + "rawValue": 0, + "raw": "0" + }, + "value": 0 + } + } + }, + "consequent": { + "type": "BlockStatement", + "start": 3605, + "end": 3664, + "loc": { + "start": { + "line": 128, + "column": 78 + }, + "end": { + "line": 131, + "column": 5 + } + }, + "body": [ + { + "type": "ExpressionStatement", + "start": 3614, + "end": 3655, + "loc": { + "start": { + "line": 129, + "column": 6 + }, + "end": { + "line": 129, + "column": 47 + } + }, + "expression": { + "type": "AssignmentExpression", + "start": 3614, + "end": 3654, + "loc": { + "start": { + "line": 129, + "column": 6 + }, + "end": { + "line": 129, + "column": 46 + } + }, + "operator": "=", + "left": { + "type": "Identifier", + "start": 3614, + "end": 3620, + "loc": { + "start": { + "line": 129, + "column": 6 + }, + "end": { + "line": 129, + "column": 12 + }, + "identifierName": "output" + }, + "name": "output" + }, + "right": { + "type": "CallExpression", + "start": 3623, + "end": 3654, + "loc": { + "start": { + "line": 129, + "column": 15 + }, + "end": { + "line": 129, + "column": 46 + } + }, + "callee": { + "type": "MemberExpression", + "start": 3623, + "end": 3636, + "loc": { + "start": { + "line": 129, + "column": 15 + }, + "end": { + "line": 129, + "column": 28 + } + }, + "object": { + "type": "ThisExpression", + "start": 3623, + "end": 3627, + "loc": { + "start": { + "line": 129, + "column": 15 + }, + "end": { + "line": 129, + "column": 19 + } + } + }, + "property": { + "type": "Identifier", + "start": 3628, + "end": 3636, + "loc": { + "start": { + "line": 129, + "column": 20 + }, + "end": { + "line": 129, + "column": 28 + }, + "identifierName": "removeAt" + }, + "name": "removeAt" + }, + "computed": false + }, + "arguments": [ + { + "type": "Identifier", + "start": 3637, + "end": 3643, + "loc": { + "start": { + "line": 129, + "column": 29 + }, + "end": { + "line": 129, + "column": 35 + }, + "identifierName": "output" + }, + "name": "output" + }, + { + "type": "Identifier", + "start": 3645, + "end": 3653, + "loc": { + "start": { + "line": 129, + "column": 37 + }, + "end": { + "line": 129, + "column": 45 + }, + "identifierName": "caretPos" + }, + "name": "caretPos" + } + ] + } + } + } + ], + "directives": [] + }, + "alternate": { + "type": "IfStatement", + "start": 3670, + "end": 5001, + "loc": { + "start": { + "line": 131, + "column": 11 + }, + "end": { + "line": 161, + "column": 58 + } + }, + "test": { + "type": "BinaryExpression", + "start": 3673, + "end": 3693, + "loc": { + "start": { + "line": 131, + "column": 14 + }, + "end": { + "line": 131, + "column": 34 + } + }, + "left": { + "type": "Identifier", + "start": 3673, + "end": 3679, + "loc": { + "start": { + "line": 131, + "column": 14 + }, + "end": { + "line": 131, + "column": 20 + }, + "identifierName": "button" + }, + "name": "button" + }, + "operator": "===", + "right": { + "type": "StringLiteral", + "start": 3684, + "end": 3693, + "loc": { + "start": { + "line": 131, + "column": 25 + }, + "end": { + "line": 131, + "column": 34 + } + }, + "extra": { + "rawValue": "{space}", + "raw": "\"{space}\"" + }, + "value": "{space}" + } + }, + "consequent": { + "type": "ExpressionStatement", + "start": 3702, + "end": 3751, + "loc": { + "start": { + "line": 132, + "column": 6 + }, + "end": { + "line": 132, + "column": 55 + } + }, + "expression": { + "type": "AssignmentExpression", + "start": 3702, + "end": 3750, + "loc": { + "start": { + "line": 132, + "column": 6 + }, + "end": { + "line": 132, + "column": 54 + } + }, + "operator": "=", + "left": { + "type": "Identifier", + "start": 3702, + "end": 3708, + "loc": { + "start": { + "line": 132, + "column": 6 + }, + "end": { + "line": 132, + "column": 12 + }, + "identifierName": "output" + }, + "name": "output" + }, + "right": { + "type": "CallExpression", + "start": 3711, + "end": 3750, + "loc": { + "start": { + "line": 132, + "column": 15 + }, + "end": { + "line": 132, + "column": 54 + } + }, + "callee": { + "type": "MemberExpression", + "start": 3711, + "end": 3727, + "loc": { + "start": { + "line": 132, + "column": 15 + }, + "end": { + "line": 132, + "column": 31 + } + }, + "object": { + "type": "ThisExpression", + "start": 3711, + "end": 3715, + "loc": { + "start": { + "line": 132, + "column": 15 + }, + "end": { + "line": 132, + "column": 19 + } + } + }, + "property": { + "type": "Identifier", + "start": 3716, + "end": 3727, + "loc": { + "start": { + "line": 132, + "column": 20 + }, + "end": { + "line": 132, + "column": 31 + }, + "identifierName": "addStringAt" + }, + "name": "addStringAt" + }, + "computed": false + }, + "arguments": [ + { + "type": "Identifier", + "start": 3728, + "end": 3734, + "loc": { + "start": { + "line": 132, + "column": 32 + }, + "end": { + "line": 132, + "column": 38 + }, + "identifierName": "output" + }, + "name": "output" + }, + { + "type": "StringLiteral", + "start": 3736, + "end": 3739, + "loc": { + "start": { + "line": 132, + "column": 40 + }, + "end": { + "line": 132, + "column": 43 + } + }, + "extra": { + "rawValue": " ", + "raw": "\" \"" + }, + "value": " " + }, + { + "type": "Identifier", + "start": 3741, + "end": 3749, + "loc": { + "start": { + "line": 132, + "column": 45 + }, + "end": { + "line": 132, + "column": 53 + }, + "identifierName": "caretPos" + }, + "name": "caretPos" + } + ] + } + } + }, + "alternate": { + "type": "IfStatement", + "start": 3764, + "end": 5001, + "loc": { + "start": { + "line": 134, + "column": 9 + }, + "end": { + "line": 161, + "column": 58 + } + }, + "test": { + "type": "LogicalExpression", + "start": 3767, + "end": 3867, + "loc": { + "start": { + "line": 134, + "column": 12 + }, + "end": { + "line": 134, + "column": 112 + } + }, + "left": { + "type": "BinaryExpression", + "start": 3767, + "end": 3785, + "loc": { + "start": { + "line": 134, + "column": 12 + }, + "end": { + "line": 134, + "column": 30 + } + }, + "left": { + "type": "Identifier", + "start": 3767, + "end": 3773, + "loc": { + "start": { + "line": 134, + "column": 12 + }, + "end": { + "line": 134, + "column": 18 + }, + "identifierName": "button" + }, + "name": "button" + }, + "operator": "===", + "right": { + "type": "StringLiteral", + "start": 3778, + "end": 3785, + "loc": { + "start": { + "line": 134, + "column": 23 + }, + "end": { + "line": 134, + "column": 30 + } + }, + "extra": { + "rawValue": "{tab}", + "raw": "\"{tab}\"" + }, + "value": "{tab}" + } + }, + "operator": "&&", + "right": { + "type": "UnaryExpression", + "start": 3789, + "end": 3867, + "loc": { + "start": { + "line": 134, + "column": 34 + }, + "end": { + "line": 134, + "column": 112 + } + }, + "operator": "!", + "prefix": true, + "argument": { + "type": "LogicalExpression", + "start": 3791, + "end": 3866, + "loc": { + "start": { + "line": 134, + "column": 36 + }, + "end": { + "line": 134, + "column": 111 + } + }, + "left": { + "type": "BinaryExpression", + "start": 3791, + "end": 3832, + "loc": { + "start": { + "line": 134, + "column": 36 + }, + "end": { + "line": 134, + "column": 77 + } + }, + "left": { + "type": "UnaryExpression", + "start": 3791, + "end": 3818, + "loc": { + "start": { + "line": 134, + "column": 36 + }, + "end": { + "line": 134, + "column": 63 + } + }, + "operator": "typeof", + "prefix": true, + "argument": { + "type": "MemberExpression", + "start": 3798, + "end": 3818, + "loc": { + "start": { + "line": 134, + "column": 43 + }, + "end": { + "line": 134, + "column": 63 + } + }, + "object": { + "type": "Identifier", + "start": 3798, + "end": 3805, + "loc": { + "start": { + "line": 134, + "column": 43 + }, + "end": { + "line": 134, + "column": 50 + }, + "identifierName": "options" + }, + "name": "options" + }, + "property": { + "type": "Identifier", + "start": 3806, + "end": 3818, + "loc": { + "start": { + "line": 134, + "column": 51 + }, + "end": { + "line": 134, + "column": 63 + }, + "identifierName": "tabCharOnTab" + }, + "name": "tabCharOnTab" + }, + "computed": false + }, + "extra": { + "parenthesizedArgument": false + } + }, + "operator": "===", + "right": { + "type": "StringLiteral", + "start": 3823, + "end": 3832, + "loc": { + "start": { + "line": 134, + "column": 68 + }, + "end": { + "line": 134, + "column": 77 + } + }, + "extra": { + "rawValue": "boolean", + "raw": "\"boolean\"" + }, + "value": "boolean" + } + }, + "operator": "&&", + "right": { + "type": "BinaryExpression", + "start": 3836, + "end": 3866, + "loc": { + "start": { + "line": 134, + "column": 81 + }, + "end": { + "line": 134, + "column": 111 + } + }, + "left": { + "type": "MemberExpression", + "start": 3836, + "end": 3856, + "loc": { + "start": { + "line": 134, + "column": 81 + }, + "end": { + "line": 134, + "column": 101 + } + }, + "object": { + "type": "Identifier", + "start": 3836, + "end": 3843, + "loc": { + "start": { + "line": 134, + "column": 81 + }, + "end": { + "line": 134, + "column": 88 + }, + "identifierName": "options" + }, + "name": "options" + }, + "property": { + "type": "Identifier", + "start": 3844, + "end": 3856, + "loc": { + "start": { + "line": 134, + "column": 89 + }, + "end": { + "line": 134, + "column": 101 + }, + "identifierName": "tabCharOnTab" + }, + "name": "tabCharOnTab" + }, + "computed": false + }, + "operator": "===", + "right": { + "type": "BooleanLiteral", + "start": 3861, + "end": 3866, + "loc": { + "start": { + "line": 134, + "column": 106 + }, + "end": { + "line": 134, + "column": 111 + } + }, + "value": false + } + }, + "extra": { + "parenthesized": true, + "parenStart": 3790 + } + }, + "extra": { + "parenthesizedArgument": false + } + } + }, + "consequent": { + "type": "BlockStatement", + "start": 3868, + "end": 3936, + "loc": { + "start": { + "line": 134, + "column": 113 + }, + "end": { + "line": 137, + "column": 5 + } + }, + "body": [ + { + "type": "ExpressionStatement", + "start": 3877, + "end": 3927, + "loc": { + "start": { + "line": 135, + "column": 6 + }, + "end": { + "line": 135, + "column": 56 + } + }, + "expression": { + "type": "AssignmentExpression", + "start": 3877, + "end": 3926, + "loc": { + "start": { + "line": 135, + "column": 6 + }, + "end": { + "line": 135, + "column": 55 + } + }, + "operator": "=", + "left": { + "type": "Identifier", + "start": 3877, + "end": 3883, + "loc": { + "start": { + "line": 135, + "column": 6 + }, + "end": { + "line": 135, + "column": 12 + }, + "identifierName": "output" + }, + "name": "output" + }, + "right": { + "type": "CallExpression", + "start": 3886, + "end": 3926, + "loc": { + "start": { + "line": 135, + "column": 15 + }, + "end": { + "line": 135, + "column": 55 + } + }, + "callee": { + "type": "MemberExpression", + "start": 3886, + "end": 3902, + "loc": { + "start": { + "line": 135, + "column": 15 + }, + "end": { + "line": 135, + "column": 31 + } + }, + "object": { + "type": "ThisExpression", + "start": 3886, + "end": 3890, + "loc": { + "start": { + "line": 135, + "column": 15 + }, + "end": { + "line": 135, + "column": 19 + } + } + }, + "property": { + "type": "Identifier", + "start": 3891, + "end": 3902, + "loc": { + "start": { + "line": 135, + "column": 20 + }, + "end": { + "line": 135, + "column": 31 + }, + "identifierName": "addStringAt" + }, + "name": "addStringAt" + }, + "computed": false + }, + "arguments": [ + { + "type": "Identifier", + "start": 3903, + "end": 3909, + "loc": { + "start": { + "line": 135, + "column": 32 + }, + "end": { + "line": 135, + "column": 38 + }, + "identifierName": "output" + }, + "name": "output" + }, + { + "type": "StringLiteral", + "start": 3911, + "end": 3915, + "loc": { + "start": { + "line": 135, + "column": 40 + }, + "end": { + "line": 135, + "column": 44 + } + }, + "extra": { + "rawValue": "\t", + "raw": "\"\\t\"" + }, + "value": "\t" + }, + { + "type": "Identifier", + "start": 3917, + "end": 3925, + "loc": { + "start": { + "line": 135, + "column": 46 + }, + "end": { + "line": 135, + "column": 54 + }, + "identifierName": "caretPos" + }, + "name": "caretPos" + } + ] + } + } + } + ], + "directives": [] + }, + "alternate": { + "type": "IfStatement", + "start": 3942, + "end": 5001, + "loc": { + "start": { + "line": 137, + "column": 11 + }, + "end": { + "line": 161, + "column": 58 + } + }, + "test": { + "type": "LogicalExpression", + "start": 3945, + "end": 4023, + "loc": { + "start": { + "line": 137, + "column": 14 + }, + "end": { + "line": 137, + "column": 92 + } + }, + "left": { + "type": "LogicalExpression", + "start": 3946, + "end": 3996, + "loc": { + "start": { + "line": 137, + "column": 15 + }, + "end": { + "line": 137, + "column": 65 + } + }, + "left": { + "type": "BinaryExpression", + "start": 3946, + "end": 3966, + "loc": { + "start": { + "line": 137, + "column": 15 + }, + "end": { + "line": 137, + "column": 35 + } + }, + "left": { + "type": "Identifier", + "start": 3946, + "end": 3952, + "loc": { + "start": { + "line": 137, + "column": 15 + }, + "end": { + "line": 137, + "column": 21 + }, + "identifierName": "button" + }, + "name": "button" + }, + "operator": "===", + "right": { + "type": "StringLiteral", + "start": 3957, + "end": 3966, + "loc": { + "start": { + "line": 137, + "column": 26 + }, + "end": { + "line": 137, + "column": 35 + } + }, + "extra": { + "rawValue": "{enter}", + "raw": "\"{enter}\"" + }, + "value": "{enter}" + } + }, + "operator": "||", + "right": { + "type": "BinaryExpression", + "start": 3970, + "end": 3996, + "loc": { + "start": { + "line": 137, + "column": 39 + }, + "end": { + "line": 137, + "column": 65 + } + }, + "left": { + "type": "Identifier", + "start": 3970, + "end": 3976, + "loc": { + "start": { + "line": 137, + "column": 39 + }, + "end": { + "line": 137, + "column": 45 + }, + "identifierName": "button" + }, + "name": "button" + }, + "operator": "===", + "right": { + "type": "StringLiteral", + "start": 3981, + "end": 3996, + "loc": { + "start": { + "line": 137, + "column": 50 + }, + "end": { + "line": 137, + "column": 65 + } + }, + "extra": { + "rawValue": "{numpadenter}", + "raw": "\"{numpadenter}\"" + }, + "value": "{numpadenter}" + } + }, + "extra": { + "parenthesized": true, + "parenStart": 3945 + } + }, + "operator": "&&", + "right": { + "type": "MemberExpression", + "start": 4001, + "end": 4023, + "loc": { + "start": { + "line": 137, + "column": 70 + }, + "end": { + "line": 137, + "column": 92 + } + }, + "object": { + "type": "Identifier", + "start": 4001, + "end": 4008, + "loc": { + "start": { + "line": 137, + "column": 70 + }, + "end": { + "line": 137, + "column": 77 + }, + "identifierName": "options" + }, + "name": "options" + }, + "property": { + "type": "Identifier", + "start": 4009, + "end": 4023, + "loc": { + "start": { + "line": 137, + "column": 78 + }, + "end": { + "line": 137, + "column": 92 + }, + "identifierName": "newLineOnEnter" + }, + "name": "newLineOnEnter" + }, + "computed": false + } + }, + "consequent": { + "type": "ExpressionStatement", + "start": 4032, + "end": 4082, + "loc": { + "start": { + "line": 138, + "column": 6 + }, + "end": { + "line": 138, + "column": 56 + } + }, + "expression": { + "type": "AssignmentExpression", + "start": 4032, + "end": 4081, + "loc": { + "start": { + "line": 138, + "column": 6 + }, + "end": { + "line": 138, + "column": 55 + } + }, + "operator": "=", + "left": { + "type": "Identifier", + "start": 4032, + "end": 4038, + "loc": { + "start": { + "line": 138, + "column": 6 + }, + "end": { + "line": 138, + "column": 12 + }, + "identifierName": "output" + }, + "name": "output" + }, + "right": { + "type": "CallExpression", + "start": 4041, + "end": 4081, + "loc": { + "start": { + "line": 138, + "column": 15 + }, + "end": { + "line": 138, + "column": 55 + } + }, + "callee": { + "type": "MemberExpression", + "start": 4041, + "end": 4057, + "loc": { + "start": { + "line": 138, + "column": 15 + }, + "end": { + "line": 138, + "column": 31 + } + }, + "object": { + "type": "ThisExpression", + "start": 4041, + "end": 4045, + "loc": { + "start": { + "line": 138, + "column": 15 + }, + "end": { + "line": 138, + "column": 19 + } + } + }, + "property": { + "type": "Identifier", + "start": 4046, + "end": 4057, + "loc": { + "start": { + "line": 138, + "column": 20 + }, + "end": { + "line": 138, + "column": 31 + }, + "identifierName": "addStringAt" + }, + "name": "addStringAt" + }, + "computed": false + }, + "arguments": [ + { + "type": "Identifier", + "start": 4058, + "end": 4064, + "loc": { + "start": { + "line": 138, + "column": 32 + }, + "end": { + "line": 138, + "column": 38 + }, + "identifierName": "output" + }, + "name": "output" + }, + { + "type": "StringLiteral", + "start": 4066, + "end": 4070, + "loc": { + "start": { + "line": 138, + "column": 40 + }, + "end": { + "line": 138, + "column": 44 + } + }, + "extra": { + "rawValue": "\n", + "raw": "\"\\n\"" + }, + "value": "\n" + }, + { + "type": "Identifier", + "start": 4072, + "end": 4080, + "loc": { + "start": { + "line": 138, + "column": 46 + }, + "end": { + "line": 138, + "column": 54 + }, + "identifierName": "caretPos" + }, + "name": "caretPos" + } + ] + } + } + }, + "alternate": { + "type": "IfStatement", + "start": 4095, + "end": 5001, + "loc": { + "start": { + "line": 140, + "column": 9 + }, + "end": { + "line": 161, + "column": 58 + } + }, + "test": { + "type": "LogicalExpression", + "start": 4098, + "end": 4178, + "loc": { + "start": { + "line": 140, + "column": 12 + }, + "end": { + "line": 140, + "column": 92 + } + }, + "left": { + "type": "CallExpression", + "start": 4098, + "end": 4123, + "loc": { + "start": { + "line": 140, + "column": 12 + }, + "end": { + "line": 140, + "column": 37 + } + }, + "callee": { + "type": "MemberExpression", + "start": 4098, + "end": 4113, + "loc": { + "start": { + "line": 140, + "column": 12 + }, + "end": { + "line": 140, + "column": 27 + } + }, + "object": { + "type": "Identifier", + "start": 4098, + "end": 4104, + "loc": { + "start": { + "line": 140, + "column": 12 + }, + "end": { + "line": 140, + "column": 18 + }, + "identifierName": "button" + }, + "name": "button" + }, + "property": { + "type": "Identifier", + "start": 4105, + "end": 4113, + "loc": { + "start": { + "line": 140, + "column": 19 + }, + "end": { + "line": 140, + "column": 27 + }, + "identifierName": "includes" + }, + "name": "includes" + }, + "computed": false + }, + "arguments": [ + { + "type": "StringLiteral", + "start": 4114, + "end": 4122, + "loc": { + "start": { + "line": 140, + "column": 28 + }, + "end": { + "line": 140, + "column": 36 + } + }, + "extra": { + "rawValue": "numpad", + "raw": "\"numpad\"" + }, + "value": "numpad" + } + ] + }, + "operator": "&&", + "right": { + "type": "CallExpression", + "start": 4127, + "end": 4178, + "loc": { + "start": { + "line": 140, + "column": 41 + }, + "end": { + "line": 140, + "column": 92 + } + }, + "callee": { + "type": "MemberExpression", + "start": 4127, + "end": 4143, + "loc": { + "start": { + "line": 140, + "column": 41 + }, + "end": { + "line": 140, + "column": 57 + } + }, + "object": { + "type": "Identifier", + "start": 4127, + "end": 4133, + "loc": { + "start": { + "line": 140, + "column": 41 + }, + "end": { + "line": 140, + "column": 47 + }, + "identifierName": "Number" + }, + "name": "Number" + }, + "property": { + "type": "Identifier", + "start": 4134, + "end": 4143, + "loc": { + "start": { + "line": 140, + "column": 48 + }, + "end": { + "line": 140, + "column": 57 + }, + "identifierName": "isInteger" + }, + "name": "isInteger" + }, + "computed": false + }, + "arguments": [ + { + "type": "CallExpression", + "start": 4144, + "end": 4177, + "loc": { + "start": { + "line": 140, + "column": 58 + }, + "end": { + "line": 140, + "column": 91 + } + }, + "callee": { + "type": "Identifier", + "start": 4144, + "end": 4150, + "loc": { + "start": { + "line": 140, + "column": 58 + }, + "end": { + "line": 140, + "column": 64 + }, + "identifierName": "Number" + }, + "name": "Number" + }, + "arguments": [ + { + "type": "MemberExpression", + "start": 4151, + "end": 4176, + "loc": { + "start": { + "line": 140, + "column": 65 + }, + "end": { + "line": 140, + "column": 90 + } + }, + "object": { + "type": "Identifier", + "start": 4151, + "end": 4157, + "loc": { + "start": { + "line": 140, + "column": 65 + }, + "end": { + "line": 140, + "column": 71 + }, + "identifierName": "button" + }, + "name": "button" + }, + "property": { + "type": "BinaryExpression", + "start": 4158, + "end": 4175, + "loc": { + "start": { + "line": 140, + "column": 72 + }, + "end": { + "line": 140, + "column": 89 + } + }, + "left": { + "type": "MemberExpression", + "start": 4158, + "end": 4171, + "loc": { + "start": { + "line": 140, + "column": 72 + }, + "end": { + "line": 140, + "column": 85 + } + }, + "object": { + "type": "Identifier", + "start": 4158, + "end": 4164, + "loc": { + "start": { + "line": 140, + "column": 72 + }, + "end": { + "line": 140, + "column": 78 + }, + "identifierName": "button" + }, + "name": "button" + }, + "property": { + "type": "Identifier", + "start": 4165, + "end": 4171, + "loc": { + "start": { + "line": 140, + "column": 79 + }, + "end": { + "line": 140, + "column": 85 + }, + "identifierName": "length" + }, + "name": "length" + }, + "computed": false + }, + "operator": "-", + "right": { + "type": "NumericLiteral", + "start": 4174, + "end": 4175, + "loc": { + "start": { + "line": 140, + "column": 88 + }, + "end": { + "line": 140, + "column": 89 + } + }, + "extra": { + "rawValue": 2, + "raw": "2" + }, + "value": 2 + } + }, + "computed": true + } + ] + } + ] + } + }, + "consequent": { + "type": "BlockStatement", + "start": 4179, + "end": 4266, + "loc": { + "start": { + "line": 140, + "column": 93 + }, + "end": { + "line": 142, + "column": 5 + } + }, + "body": [ + { + "type": "ExpressionStatement", + "start": 4188, + "end": 4259, + "loc": { + "start": { + "line": 141, + "column": 6 + }, + "end": { + "line": 141, + "column": 77 + } + }, + "expression": { + "type": "AssignmentExpression", + "start": 4188, + "end": 4258, + "loc": { + "start": { + "line": 141, + "column": 6 + }, + "end": { + "line": 141, + "column": 76 + } + }, + "operator": "=", + "left": { + "type": "Identifier", + "start": 4188, + "end": 4194, + "loc": { + "start": { + "line": 141, + "column": 6 + }, + "end": { + "line": 141, + "column": 12 + }, + "identifierName": "output" + }, + "name": "output" + }, + "right": { + "type": "CallExpression", + "start": 4197, + "end": 4258, + "loc": { + "start": { + "line": 141, + "column": 15 + }, + "end": { + "line": 141, + "column": 76 + } + }, + "callee": { + "type": "MemberExpression", + "start": 4197, + "end": 4213, + "loc": { + "start": { + "line": 141, + "column": 15 + }, + "end": { + "line": 141, + "column": 31 + } + }, + "object": { + "type": "ThisExpression", + "start": 4197, + "end": 4201, + "loc": { + "start": { + "line": 141, + "column": 15 + }, + "end": { + "line": 141, + "column": 19 + } + } + }, + "property": { + "type": "Identifier", + "start": 4202, + "end": 4213, + "loc": { + "start": { + "line": 141, + "column": 20 + }, + "end": { + "line": 141, + "column": 31 + }, + "identifierName": "addStringAt" + }, + "name": "addStringAt" + }, + "computed": false + }, + "arguments": [ + { + "type": "Identifier", + "start": 4214, + "end": 4220, + "loc": { + "start": { + "line": 141, + "column": 32 + }, + "end": { + "line": 141, + "column": 38 + }, + "identifierName": "output" + }, + "name": "output" + }, + { + "type": "MemberExpression", + "start": 4222, + "end": 4247, + "loc": { + "start": { + "line": 141, + "column": 40 + }, + "end": { + "line": 141, + "column": 65 + } + }, + "object": { + "type": "Identifier", + "start": 4222, + "end": 4228, + "loc": { + "start": { + "line": 141, + "column": 40 + }, + "end": { + "line": 141, + "column": 46 + }, + "identifierName": "button" + }, + "name": "button" + }, + "property": { + "type": "BinaryExpression", + "start": 4229, + "end": 4246, + "loc": { + "start": { + "line": 141, + "column": 47 + }, + "end": { + "line": 141, + "column": 64 + } + }, + "left": { + "type": "MemberExpression", + "start": 4229, + "end": 4242, + "loc": { + "start": { + "line": 141, + "column": 47 + }, + "end": { + "line": 141, + "column": 60 + } + }, + "object": { + "type": "Identifier", + "start": 4229, + "end": 4235, + "loc": { + "start": { + "line": 141, + "column": 47 + }, + "end": { + "line": 141, + "column": 53 + }, + "identifierName": "button" + }, + "name": "button" + }, + "property": { + "type": "Identifier", + "start": 4236, + "end": 4242, + "loc": { + "start": { + "line": 141, + "column": 54 + }, + "end": { + "line": 141, + "column": 60 + }, + "identifierName": "length" + }, + "name": "length" + }, + "computed": false + }, + "operator": "-", + "right": { + "type": "NumericLiteral", + "start": 4245, + "end": 4246, + "loc": { + "start": { + "line": 141, + "column": 63 + }, + "end": { + "line": 141, + "column": 64 + } + }, + "extra": { + "rawValue": 2, + "raw": "2" + }, + "value": 2 + } + }, + "computed": true + }, + { + "type": "Identifier", + "start": 4249, + "end": 4257, + "loc": { + "start": { + "line": 141, + "column": 67 + }, + "end": { + "line": 141, + "column": 75 + }, + "identifierName": "caretPos" + }, + "name": "caretPos" + } + ] + } + } + } + ], + "directives": [] + }, + "alternate": { + "type": "IfStatement", + "start": 4277, + "end": 5001, + "loc": { + "start": { + "line": 143, + "column": 9 + }, + "end": { + "line": 161, + "column": 58 + } + }, + "test": { + "type": "BinaryExpression", + "start": 4280, + "end": 4307, + "loc": { + "start": { + "line": 143, + "column": 12 + }, + "end": { + "line": 143, + "column": 39 + } + }, + "left": { + "type": "Identifier", + "start": 4280, + "end": 4286, + "loc": { + "start": { + "line": 143, + "column": 12 + }, + "end": { + "line": 143, + "column": 18 + }, + "identifierName": "button" + }, + "name": "button" + }, + "operator": "===", + "right": { + "type": "StringLiteral", + "start": 4291, + "end": 4307, + "loc": { + "start": { + "line": 143, + "column": 23 + }, + "end": { + "line": 143, + "column": 39 + } + }, + "extra": { + "rawValue": "{numpaddivide}", + "raw": "\"{numpaddivide}\"" + }, + "value": "{numpaddivide}" + } + }, + "consequent": { + "type": "ExpressionStatement", + "start": 4316, + "end": 4365, + "loc": { + "start": { + "line": 144, + "column": 6 + }, + "end": { + "line": 144, + "column": 55 + } + }, + "expression": { + "type": "AssignmentExpression", + "start": 4316, + "end": 4364, + "loc": { + "start": { + "line": 144, + "column": 6 + }, + "end": { + "line": 144, + "column": 54 + } + }, + "operator": "=", + "left": { + "type": "Identifier", + "start": 4316, + "end": 4322, + "loc": { + "start": { + "line": 144, + "column": 6 + }, + "end": { + "line": 144, + "column": 12 + }, + "identifierName": "output" + }, + "name": "output" + }, + "right": { + "type": "CallExpression", + "start": 4325, + "end": 4364, + "loc": { + "start": { + "line": 144, + "column": 15 + }, + "end": { + "line": 144, + "column": 54 + } + }, + "callee": { + "type": "MemberExpression", + "start": 4325, + "end": 4341, + "loc": { + "start": { + "line": 144, + "column": 15 + }, + "end": { + "line": 144, + "column": 31 + } + }, + "object": { + "type": "ThisExpression", + "start": 4325, + "end": 4329, + "loc": { + "start": { + "line": 144, + "column": 15 + }, + "end": { + "line": 144, + "column": 19 + } + } + }, + "property": { + "type": "Identifier", + "start": 4330, + "end": 4341, + "loc": { + "start": { + "line": 144, + "column": 20 + }, + "end": { + "line": 144, + "column": 31 + }, + "identifierName": "addStringAt" + }, + "name": "addStringAt" + }, + "computed": false + }, + "arguments": [ + { + "type": "Identifier", + "start": 4342, + "end": 4348, + "loc": { + "start": { + "line": 144, + "column": 32 + }, + "end": { + "line": 144, + "column": 38 + }, + "identifierName": "output" + }, + "name": "output" + }, + { + "type": "StringLiteral", + "start": 4350, + "end": 4353, + "loc": { + "start": { + "line": 144, + "column": 40 + }, + "end": { + "line": 144, + "column": 43 + } + }, + "extra": { + "rawValue": "/", + "raw": "'/'" + }, + "value": "/" + }, + { + "type": "Identifier", + "start": 4355, + "end": 4363, + "loc": { + "start": { + "line": 144, + "column": 45 + }, + "end": { + "line": 144, + "column": 53 + }, + "identifierName": "caretPos" + }, + "name": "caretPos" + } + ] + } + } + }, + "alternate": { + "type": "IfStatement", + "start": 4378, + "end": 5001, + "loc": { + "start": { + "line": 146, + "column": 9 + }, + "end": { + "line": 161, + "column": 58 + } + }, + "test": { + "type": "BinaryExpression", + "start": 4381, + "end": 4410, + "loc": { + "start": { + "line": 146, + "column": 12 + }, + "end": { + "line": 146, + "column": 41 + } + }, + "left": { + "type": "Identifier", + "start": 4381, + "end": 4387, + "loc": { + "start": { + "line": 146, + "column": 12 + }, + "end": { + "line": 146, + "column": 18 + }, + "identifierName": "button" + }, + "name": "button" + }, + "operator": "===", + "right": { + "type": "StringLiteral", + "start": 4392, + "end": 4410, + "loc": { + "start": { + "line": 146, + "column": 23 + }, + "end": { + "line": 146, + "column": 41 + } + }, + "extra": { + "rawValue": "{numpadmultiply}", + "raw": "\"{numpadmultiply}\"" + }, + "value": "{numpadmultiply}" + } + }, + "consequent": { + "type": "ExpressionStatement", + "start": 4419, + "end": 4468, + "loc": { + "start": { + "line": 147, + "column": 6 + }, + "end": { + "line": 147, + "column": 55 + } + }, + "expression": { + "type": "AssignmentExpression", + "start": 4419, + "end": 4467, + "loc": { + "start": { + "line": 147, + "column": 6 + }, + "end": { + "line": 147, + "column": 54 + } + }, + "operator": "=", + "left": { + "type": "Identifier", + "start": 4419, + "end": 4425, + "loc": { + "start": { + "line": 147, + "column": 6 + }, + "end": { + "line": 147, + "column": 12 + }, + "identifierName": "output" + }, + "name": "output" + }, + "right": { + "type": "CallExpression", + "start": 4428, + "end": 4467, + "loc": { + "start": { + "line": 147, + "column": 15 + }, + "end": { + "line": 147, + "column": 54 + } + }, + "callee": { + "type": "MemberExpression", + "start": 4428, + "end": 4444, + "loc": { + "start": { + "line": 147, + "column": 15 + }, + "end": { + "line": 147, + "column": 31 + } + }, + "object": { + "type": "ThisExpression", + "start": 4428, + "end": 4432, + "loc": { + "start": { + "line": 147, + "column": 15 + }, + "end": { + "line": 147, + "column": 19 + } + } + }, + "property": { + "type": "Identifier", + "start": 4433, + "end": 4444, + "loc": { + "start": { + "line": 147, + "column": 20 + }, + "end": { + "line": 147, + "column": 31 + }, + "identifierName": "addStringAt" + }, + "name": "addStringAt" + }, + "computed": false + }, + "arguments": [ + { + "type": "Identifier", + "start": 4445, + "end": 4451, + "loc": { + "start": { + "line": 147, + "column": 32 + }, + "end": { + "line": 147, + "column": 38 + }, + "identifierName": "output" + }, + "name": "output" + }, + { + "type": "StringLiteral", + "start": 4453, + "end": 4456, + "loc": { + "start": { + "line": 147, + "column": 40 + }, + "end": { + "line": 147, + "column": 43 + } + }, + "extra": { + "rawValue": "*", + "raw": "'*'" + }, + "value": "*" + }, + { + "type": "Identifier", + "start": 4458, + "end": 4466, + "loc": { + "start": { + "line": 147, + "column": 45 + }, + "end": { + "line": 147, + "column": 53 + }, + "identifierName": "caretPos" + }, + "name": "caretPos" + } + ] + } + } + }, + "alternate": { + "type": "IfStatement", + "start": 4479, + "end": 5001, + "loc": { + "start": { + "line": 148, + "column": 9 + }, + "end": { + "line": 161, + "column": 58 + } + }, + "test": { + "type": "BinaryExpression", + "start": 4482, + "end": 4511, + "loc": { + "start": { + "line": 148, + "column": 12 + }, + "end": { + "line": 148, + "column": 41 + } + }, + "left": { + "type": "Identifier", + "start": 4482, + "end": 4488, + "loc": { + "start": { + "line": 148, + "column": 12 + }, + "end": { + "line": 148, + "column": 18 + }, + "identifierName": "button" + }, + "name": "button" + }, + "operator": "===", + "right": { + "type": "StringLiteral", + "start": 4493, + "end": 4511, + "loc": { + "start": { + "line": 148, + "column": 23 + }, + "end": { + "line": 148, + "column": 41 + } + }, + "extra": { + "rawValue": "{numpadsubtract}", + "raw": "\"{numpadsubtract}\"" + }, + "value": "{numpadsubtract}" + } + }, + "consequent": { + "type": "ExpressionStatement", + "start": 4520, + "end": 4569, + "loc": { + "start": { + "line": 149, + "column": 6 + }, + "end": { + "line": 149, + "column": 55 + } + }, + "expression": { + "type": "AssignmentExpression", + "start": 4520, + "end": 4568, + "loc": { + "start": { + "line": 149, + "column": 6 + }, + "end": { + "line": 149, + "column": 54 + } + }, + "operator": "=", + "left": { + "type": "Identifier", + "start": 4520, + "end": 4526, + "loc": { + "start": { + "line": 149, + "column": 6 + }, + "end": { + "line": 149, + "column": 12 + }, + "identifierName": "output" + }, + "name": "output" + }, + "right": { + "type": "CallExpression", + "start": 4529, + "end": 4568, + "loc": { + "start": { + "line": 149, + "column": 15 + }, + "end": { + "line": 149, + "column": 54 + } + }, + "callee": { + "type": "MemberExpression", + "start": 4529, + "end": 4545, + "loc": { + "start": { + "line": 149, + "column": 15 + }, + "end": { + "line": 149, + "column": 31 + } + }, + "object": { + "type": "ThisExpression", + "start": 4529, + "end": 4533, + "loc": { + "start": { + "line": 149, + "column": 15 + }, + "end": { + "line": 149, + "column": 19 + } + } + }, + "property": { + "type": "Identifier", + "start": 4534, + "end": 4545, + "loc": { + "start": { + "line": 149, + "column": 20 + }, + "end": { + "line": 149, + "column": 31 + }, + "identifierName": "addStringAt" + }, + "name": "addStringAt" + }, + "computed": false + }, + "arguments": [ + { + "type": "Identifier", + "start": 4546, + "end": 4552, + "loc": { + "start": { + "line": 149, + "column": 32 + }, + "end": { + "line": 149, + "column": 38 + }, + "identifierName": "output" + }, + "name": "output" + }, + { + "type": "StringLiteral", + "start": 4554, + "end": 4557, + "loc": { + "start": { + "line": 149, + "column": 40 + }, + "end": { + "line": 149, + "column": 43 + } + }, + "extra": { + "rawValue": "-", + "raw": "'-'" + }, + "value": "-" + }, + { + "type": "Identifier", + "start": 4559, + "end": 4567, + "loc": { + "start": { + "line": 149, + "column": 45 + }, + "end": { + "line": 149, + "column": 53 + }, + "identifierName": "caretPos" + }, + "name": "caretPos" + } + ] + } + } + }, + "alternate": { + "type": "IfStatement", + "start": 4582, + "end": 5001, + "loc": { + "start": { + "line": 151, + "column": 9 + }, + "end": { + "line": 161, + "column": 58 + } + }, + "test": { + "type": "BinaryExpression", + "start": 4585, + "end": 4609, + "loc": { + "start": { + "line": 151, + "column": 12 + }, + "end": { + "line": 151, + "column": 36 + } + }, + "left": { + "type": "Identifier", + "start": 4585, + "end": 4591, + "loc": { + "start": { + "line": 151, + "column": 12 + }, + "end": { + "line": 151, + "column": 18 + }, + "identifierName": "button" + }, + "name": "button" + }, + "operator": "===", + "right": { + "type": "StringLiteral", + "start": 4596, + "end": 4609, + "loc": { + "start": { + "line": 151, + "column": 23 + }, + "end": { + "line": 151, + "column": 36 + } + }, + "extra": { + "rawValue": "{numpadadd}", + "raw": "\"{numpadadd}\"" + }, + "value": "{numpadadd}" + } + }, + "consequent": { + "type": "ExpressionStatement", + "start": 4618, + "end": 4667, + "loc": { + "start": { + "line": 152, + "column": 6 + }, + "end": { + "line": 152, + "column": 55 + } + }, + "expression": { + "type": "AssignmentExpression", + "start": 4618, + "end": 4666, + "loc": { + "start": { + "line": 152, + "column": 6 + }, + "end": { + "line": 152, + "column": 54 + } + }, + "operator": "=", + "left": { + "type": "Identifier", + "start": 4618, + "end": 4624, + "loc": { + "start": { + "line": 152, + "column": 6 + }, + "end": { + "line": 152, + "column": 12 + }, + "identifierName": "output" + }, + "name": "output" + }, + "right": { + "type": "CallExpression", + "start": 4627, + "end": 4666, + "loc": { + "start": { + "line": 152, + "column": 15 + }, + "end": { + "line": 152, + "column": 54 + } + }, + "callee": { + "type": "MemberExpression", + "start": 4627, + "end": 4643, + "loc": { + "start": { + "line": 152, + "column": 15 + }, + "end": { + "line": 152, + "column": 31 + } + }, + "object": { + "type": "ThisExpression", + "start": 4627, + "end": 4631, + "loc": { + "start": { + "line": 152, + "column": 15 + }, + "end": { + "line": 152, + "column": 19 + } + } + }, + "property": { + "type": "Identifier", + "start": 4632, + "end": 4643, + "loc": { + "start": { + "line": 152, + "column": 20 + }, + "end": { + "line": 152, + "column": 31 + }, + "identifierName": "addStringAt" + }, + "name": "addStringAt" + }, + "computed": false + }, + "arguments": [ + { + "type": "Identifier", + "start": 4644, + "end": 4650, + "loc": { + "start": { + "line": 152, + "column": 32 + }, + "end": { + "line": 152, + "column": 38 + }, + "identifierName": "output" + }, + "name": "output" + }, + { + "type": "StringLiteral", + "start": 4652, + "end": 4655, + "loc": { + "start": { + "line": 152, + "column": 40 + }, + "end": { + "line": 152, + "column": 43 + } + }, + "extra": { + "rawValue": "+", + "raw": "'+'" + }, + "value": "+" + }, + { + "type": "Identifier", + "start": 4657, + "end": 4665, + "loc": { + "start": { + "line": 152, + "column": 45 + }, + "end": { + "line": 152, + "column": 53 + }, + "identifierName": "caretPos" + }, + "name": "caretPos" + } + ] + } + } + }, + "alternate": { + "type": "IfStatement", + "start": 4680, + "end": 5001, + "loc": { + "start": { + "line": 154, + "column": 9 + }, + "end": { + "line": 161, + "column": 58 + } + }, + "test": { + "type": "BinaryExpression", + "start": 4683, + "end": 4711, + "loc": { + "start": { + "line": 154, + "column": 12 + }, + "end": { + "line": 154, + "column": 40 + } + }, + "left": { + "type": "Identifier", + "start": 4683, + "end": 4689, + "loc": { + "start": { + "line": 154, + "column": 12 + }, + "end": { + "line": 154, + "column": 18 + }, + "identifierName": "button" + }, + "name": "button" + }, + "operator": "===", + "right": { + "type": "StringLiteral", + "start": 4694, + "end": 4711, + "loc": { + "start": { + "line": 154, + "column": 23 + }, + "end": { + "line": 154, + "column": 40 + } + }, + "extra": { + "rawValue": "{numpaddecimal}", + "raw": "\"{numpaddecimal}\"" + }, + "value": "{numpaddecimal}" + } + }, + "consequent": { + "type": "ExpressionStatement", + "start": 4720, + "end": 4769, + "loc": { + "start": { + "line": 155, + "column": 6 + }, + "end": { + "line": 155, + "column": 55 + } + }, + "expression": { + "type": "AssignmentExpression", + "start": 4720, + "end": 4768, + "loc": { + "start": { + "line": 155, + "column": 6 + }, + "end": { + "line": 155, + "column": 54 + } + }, + "operator": "=", + "left": { + "type": "Identifier", + "start": 4720, + "end": 4726, + "loc": { + "start": { + "line": 155, + "column": 6 + }, + "end": { + "line": 155, + "column": 12 + }, + "identifierName": "output" + }, + "name": "output" + }, + "right": { + "type": "CallExpression", + "start": 4729, + "end": 4768, + "loc": { + "start": { + "line": 155, + "column": 15 + }, + "end": { + "line": 155, + "column": 54 + } + }, + "callee": { + "type": "MemberExpression", + "start": 4729, + "end": 4745, + "loc": { + "start": { + "line": 155, + "column": 15 + }, + "end": { + "line": 155, + "column": 31 + } + }, + "object": { + "type": "ThisExpression", + "start": 4729, + "end": 4733, + "loc": { + "start": { + "line": 155, + "column": 15 + }, + "end": { + "line": 155, + "column": 19 + } + } + }, + "property": { + "type": "Identifier", + "start": 4734, + "end": 4745, + "loc": { + "start": { + "line": 155, + "column": 20 + }, + "end": { + "line": 155, + "column": 31 + }, + "identifierName": "addStringAt" + }, + "name": "addStringAt" + }, + "computed": false + }, + "arguments": [ + { + "type": "Identifier", + "start": 4746, + "end": 4752, + "loc": { + "start": { + "line": 155, + "column": 32 + }, + "end": { + "line": 155, + "column": 38 + }, + "identifierName": "output" + }, + "name": "output" + }, + { + "type": "StringLiteral", + "start": 4754, + "end": 4757, + "loc": { + "start": { + "line": 155, + "column": 40 + }, + "end": { + "line": 155, + "column": 43 + } + }, + "extra": { + "rawValue": ".", + "raw": "'.'" + }, + "value": "." + }, + { + "type": "Identifier", + "start": 4759, + "end": 4767, + "loc": { + "start": { + "line": 155, + "column": 45 + }, + "end": { + "line": 155, + "column": 53 + }, + "identifierName": "caretPos" + }, + "name": "caretPos" + } + ] + } + } + }, + "alternate": { + "type": "IfStatement", + "start": 4782, + "end": 5001, + "loc": { + "start": { + "line": 157, + "column": 9 + }, + "end": { + "line": 161, + "column": 58 + } + }, + "test": { + "type": "LogicalExpression", + "start": 4785, + "end": 4817, + "loc": { + "start": { + "line": 157, + "column": 12 + }, + "end": { + "line": 157, + "column": 44 + } + }, + "left": { + "type": "BinaryExpression", + "start": 4785, + "end": 4799, + "loc": { + "start": { + "line": 157, + "column": 12 + }, + "end": { + "line": 157, + "column": 26 + } + }, + "left": { + "type": "Identifier", + "start": 4785, + "end": 4791, + "loc": { + "start": { + "line": 157, + "column": 12 + }, + "end": { + "line": 157, + "column": 18 + }, + "identifierName": "button" + }, + "name": "button" + }, + "operator": "===", + "right": { + "type": "StringLiteral", + "start": 4796, + "end": 4799, + "loc": { + "start": { + "line": 157, + "column": 23 + }, + "end": { + "line": 157, + "column": 26 + } + }, + "extra": { + "rawValue": "{", + "raw": "\"{\"" + }, + "value": "{" + } + }, + "operator": "||", + "right": { + "type": "BinaryExpression", + "start": 4803, + "end": 4817, + "loc": { + "start": { + "line": 157, + "column": 30 + }, + "end": { + "line": 157, + "column": 44 + } + }, + "left": { + "type": "Identifier", + "start": 4803, + "end": 4809, + "loc": { + "start": { + "line": 157, + "column": 30 + }, + "end": { + "line": 157, + "column": 36 + }, + "identifierName": "button" + }, + "name": "button" + }, + "operator": "===", + "right": { + "type": "StringLiteral", + "start": 4814, + "end": 4817, + "loc": { + "start": { + "line": 157, + "column": 41 + }, + "end": { + "line": 157, + "column": 44 + } + }, + "extra": { + "rawValue": "}", + "raw": "\"}\"" + }, + "value": "}" + } + } + }, + "consequent": { + "type": "ExpressionStatement", + "start": 4826, + "end": 4878, + "loc": { + "start": { + "line": 158, + "column": 6 + }, + "end": { + "line": 158, + "column": 58 + } + }, + "expression": { + "type": "AssignmentExpression", + "start": 4826, + "end": 4877, + "loc": { + "start": { + "line": 158, + "column": 6 + }, + "end": { + "line": 158, + "column": 57 + } + }, + "operator": "=", + "left": { + "type": "Identifier", + "start": 4826, + "end": 4832, + "loc": { + "start": { + "line": 158, + "column": 6 + }, + "end": { + "line": 158, + "column": 12 + }, + "identifierName": "output" + }, + "name": "output" + }, + "right": { + "type": "CallExpression", + "start": 4835, + "end": 4877, + "loc": { + "start": { + "line": 158, + "column": 15 + }, + "end": { + "line": 158, + "column": 57 + } + }, + "callee": { + "type": "MemberExpression", + "start": 4835, + "end": 4851, + "loc": { + "start": { + "line": 158, + "column": 15 + }, + "end": { + "line": 158, + "column": 31 + } + }, + "object": { + "type": "ThisExpression", + "start": 4835, + "end": 4839, + "loc": { + "start": { + "line": 158, + "column": 15 + }, + "end": { + "line": 158, + "column": 19 + } + } + }, + "property": { + "type": "Identifier", + "start": 4840, + "end": 4851, + "loc": { + "start": { + "line": 158, + "column": 20 + }, + "end": { + "line": 158, + "column": 31 + }, + "identifierName": "addStringAt" + }, + "name": "addStringAt" + }, + "computed": false + }, + "arguments": [ + { + "type": "Identifier", + "start": 4852, + "end": 4858, + "loc": { + "start": { + "line": 158, + "column": 32 + }, + "end": { + "line": 158, + "column": 38 + }, + "identifierName": "output" + }, + "name": "output" + }, + { + "type": "Identifier", + "start": 4860, + "end": 4866, + "loc": { + "start": { + "line": 158, + "column": 40 + }, + "end": { + "line": 158, + "column": 46 + }, + "identifierName": "button" + }, + "name": "button" + }, + { + "type": "Identifier", + "start": 4868, + "end": 4876, + "loc": { + "start": { + "line": 158, + "column": 48 + }, + "end": { + "line": 158, + "column": 56 + }, + "identifierName": "caretPos" + }, + "name": "caretPos" + } + ] + } + } + }, + "alternate": { + "type": "IfStatement", + "start": 4891, + "end": 5001, + "loc": { + "start": { + "line": 160, + "column": 9 + }, + "end": { + "line": 161, + "column": 58 + } + }, + "test": { + "type": "LogicalExpression", + "start": 4894, + "end": 4940, + "loc": { + "start": { + "line": 160, + "column": 12 + }, + "end": { + "line": 160, + "column": 58 + } + }, + "left": { + "type": "UnaryExpression", + "start": 4894, + "end": 4915, + "loc": { + "start": { + "line": 160, + "column": 12 + }, + "end": { + "line": 160, + "column": 33 + } + }, + "operator": "!", + "prefix": true, + "argument": { + "type": "CallExpression", + "start": 4895, + "end": 4915, + "loc": { + "start": { + "line": 160, + "column": 13 + }, + "end": { + "line": 160, + "column": 33 + } + }, + "callee": { + "type": "MemberExpression", + "start": 4895, + "end": 4910, + "loc": { + "start": { + "line": 160, + "column": 13 + }, + "end": { + "line": 160, + "column": 28 + } + }, + "object": { + "type": "Identifier", + "start": 4895, + "end": 4901, + "loc": { + "start": { + "line": 160, + "column": 13 + }, + "end": { + "line": 160, + "column": 19 + }, + "identifierName": "button" + }, + "name": "button" + }, + "property": { + "type": "Identifier", + "start": 4902, + "end": 4910, + "loc": { + "start": { + "line": 160, + "column": 20 + }, + "end": { + "line": 160, + "column": 28 + }, + "identifierName": "includes" + }, + "name": "includes" + }, + "computed": false + }, + "arguments": [ + { + "type": "StringLiteral", + "start": 4911, + "end": 4914, + "loc": { + "start": { + "line": 160, + "column": 29 + }, + "end": { + "line": 160, + "column": 32 + } + }, + "extra": { + "rawValue": "{", + "raw": "\"{\"" + }, + "value": "{" + } + ] + }, + "extra": { + "parenthesizedArgument": false + } + }, + "operator": "&&", + "right": { + "type": "UnaryExpression", + "start": 4919, + "end": 4940, + "loc": { + "start": { + "line": 160, + "column": 37 + }, + "end": { + "line": 160, + "column": 58 + } + }, + "operator": "!", + "prefix": true, + "argument": { + "type": "CallExpression", + "start": 4920, + "end": 4940, + "loc": { + "start": { + "line": 160, + "column": 38 + }, + "end": { + "line": 160, + "column": 58 + } + }, + "callee": { + "type": "MemberExpression", + "start": 4920, + "end": 4935, + "loc": { + "start": { + "line": 160, + "column": 38 + }, + "end": { + "line": 160, + "column": 53 + } + }, + "object": { + "type": "Identifier", + "start": 4920, + "end": 4926, + "loc": { + "start": { + "line": 160, + "column": 38 + }, + "end": { + "line": 160, + "column": 44 + }, + "identifierName": "button" + }, + "name": "button" + }, + "property": { + "type": "Identifier", + "start": 4927, + "end": 4935, + "loc": { + "start": { + "line": 160, + "column": 45 + }, + "end": { + "line": 160, + "column": 53 + }, + "identifierName": "includes" + }, + "name": "includes" + }, + "computed": false + }, + "arguments": [ + { + "type": "StringLiteral", + "start": 4936, + "end": 4939, + "loc": { + "start": { + "line": 160, + "column": 54 + }, + "end": { + "line": 160, + "column": 57 + } + }, + "extra": { + "rawValue": "}", + "raw": "\"}\"" + }, + "value": "}" + } + ] + }, + "extra": { + "parenthesizedArgument": false + } + } + }, + "consequent": { + "type": "ExpressionStatement", + "start": 4949, + "end": 5001, + "loc": { + "start": { + "line": 161, + "column": 6 + }, + "end": { + "line": 161, + "column": 58 + } + }, + "expression": { + "type": "AssignmentExpression", + "start": 4949, + "end": 5000, + "loc": { + "start": { + "line": 161, + "column": 6 + }, + "end": { + "line": 161, + "column": 57 + } + }, + "operator": "=", + "left": { + "type": "Identifier", + "start": 4949, + "end": 4955, + "loc": { + "start": { + "line": 161, + "column": 6 + }, + "end": { + "line": 161, + "column": 12 + }, + "identifierName": "output" + }, + "name": "output" + }, + "right": { + "type": "CallExpression", + "start": 4958, + "end": 5000, + "loc": { + "start": { + "line": 161, + "column": 15 + }, + "end": { + "line": 161, + "column": 57 + } + }, + "callee": { + "type": "MemberExpression", + "start": 4958, + "end": 4974, + "loc": { + "start": { + "line": 161, + "column": 15 + }, + "end": { + "line": 161, + "column": 31 + } + }, + "object": { + "type": "ThisExpression", + "start": 4958, + "end": 4962, + "loc": { + "start": { + "line": 161, + "column": 15 + }, + "end": { + "line": 161, + "column": 19 + } + } + }, + "property": { + "type": "Identifier", + "start": 4963, + "end": 4974, + "loc": { + "start": { + "line": 161, + "column": 20 + }, + "end": { + "line": 161, + "column": 31 + }, + "identifierName": "addStringAt" + }, + "name": "addStringAt" + }, + "computed": false + }, + "arguments": [ + { + "type": "Identifier", + "start": 4975, + "end": 4981, + "loc": { + "start": { + "line": 161, + "column": 32 + }, + "end": { + "line": 161, + "column": 38 + }, + "identifierName": "output" + }, + "name": "output" + }, + { + "type": "Identifier", + "start": 4983, + "end": 4989, + "loc": { + "start": { + "line": 161, + "column": 40 + }, + "end": { + "line": 161, + "column": 46 + }, + "identifierName": "button" + }, + "name": "button" + }, + { + "type": "Identifier", + "start": 4991, + "end": 4999, + "loc": { + "start": { + "line": 161, + "column": 48 + }, + "end": { + "line": 161, + "column": 56 + }, + "identifierName": "caretPos" + }, + "name": "caretPos" + } + ] + } + } + }, + "alternate": null + } + } + } + } + } + } + } + } + } + } + } + }, + { + "type": "ReturnStatement", + "start": 5009, + "end": 5023, + "loc": { + "start": { + "line": 163, + "column": 4 + }, + "end": { + "line": 163, + "column": 18 + } + }, + "argument": { + "type": "Identifier", + "start": 5016, + "end": 5022, + "loc": { + "start": { + "line": 163, + "column": 11 + }, + "end": { + "line": 163, + "column": 17 + }, + "identifierName": "output" + }, + "name": "output" + } + } + ], + "directives": [], + "trailingComments": null + }, + "trailingComments": null + }, + "leadingComments": [ + { + "type": "CommentBlock", + "value": "*\r\n * Returns the updated input resulting from clicking a given button\r\n * \r\n * @param {string} button The button's layout name\r\n * @param {string} input The input string\r\n * @param {object} options The simple-keyboard options object\r\n * @param {number} caretPos The cursor's current position\r\n ", + "start": 3114, + "end": 3431, + "loc": { + "start": { + "line": 116, + "column": 2 + }, + "end": { + "line": 123, + "column": 5 + } + } + } + ], + "trailingComments": [ + { + "type": "CommentBlock", + "value": "*\r\n * Moves the cursor position by a given amount\r\n * \r\n * @param {number} length Represents by how many characters the input should be moved\r\n * @param {boolean} minus Whether the cursor should be moved to the left or not.\r\n ", + "start": 5032, + "end": 5274, + "loc": { + "start": { + "line": 165, + "column": 2 + }, + "end": { + "line": 170, + "column": 5 + } + } + } + ] + }, + { + "type": "ClassProperty", + "start": 5278, + "end": 5621, + "loc": { + "start": { + "line": 171, + "column": 2 + }, + "end": { + "line": 178, + "column": 3 + } + }, + "static": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 5278, + "end": 5292, + "loc": { + "start": { + "line": 171, + "column": 2 + }, + "end": { + "line": 171, + "column": 16 + }, + "identifierName": "updateCaretPos" + }, + "name": "updateCaretPos", + "leadingComments": null + }, + "value": { + "type": "ArrowFunctionExpression", + "start": 5295, + "end": 5621, + "loc": { + "start": { + "line": 171, + "column": 19 + }, + "end": { + "line": 178, + "column": 3 + } + }, + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 5296, + "end": 5302, + "loc": { + "start": { + "line": 171, + "column": 20 + }, + "end": { + "line": 171, + "column": 26 + }, + "identifierName": "length" + }, + "name": "length" + }, + { + "type": "Identifier", + "start": 5304, + "end": 5309, + "loc": { + "start": { + "line": 171, + "column": 28 + }, + "end": { + "line": 171, + "column": 33 + }, + "identifierName": "minus" + }, + "name": "minus" + } + ], + "body": { + "type": "BlockStatement", + "start": 5314, + "end": 5621, + "loc": { + "start": { + "line": 171, + "column": 38 + }, + "end": { + "line": 178, + "column": 3 + } + }, + "body": [ + { + "type": "IfStatement", + "start": 5321, + "end": 5616, + "loc": { + "start": { + "line": 172, + "column": 4 + }, + "end": { + "line": 177, + "column": 5 + } + }, + "test": { + "type": "Identifier", + "start": 5324, + "end": 5329, + "loc": { + "start": { + "line": 172, + "column": 7 + }, + "end": { + "line": 172, + "column": 12 + }, + "identifierName": "minus" + }, + "name": "minus" + }, + "consequent": { + "type": "BlockStatement", + "start": 5330, + "end": 5499, + "loc": { + "start": { + "line": 172, + "column": 13 + }, + "end": { + "line": 175, + "column": 5 + } + }, + "body": [ + { + "type": "IfStatement", + "start": 5339, + "end": 5492, + "loc": { + "start": { + "line": 173, + "column": 6 + }, + "end": { + "line": 174, + "column": 102 + } + }, + "test": { + "type": "BinaryExpression", + "start": 5342, + "end": 5387, + "loc": { + "start": { + "line": 173, + "column": 9 + }, + "end": { + "line": 173, + "column": 54 + } + }, + "left": { + "type": "MemberExpression", + "start": 5342, + "end": 5383, + "loc": { + "start": { + "line": 173, + "column": 9 + }, + "end": { + "line": 173, + "column": 50 + } + }, + "object": { + "type": "MemberExpression", + "start": 5342, + "end": 5369, + "loc": { + "start": { + "line": 173, + "column": 9 + }, + "end": { + "line": 173, + "column": 36 + } + }, + "object": { + "type": "ThisExpression", + "start": 5342, + "end": 5346, + "loc": { + "start": { + "line": 173, + "column": 9 + }, + "end": { + "line": 173, + "column": 13 + } + } + }, + "property": { + "type": "Identifier", + "start": 5347, + "end": 5369, + "loc": { + "start": { + "line": 173, + "column": 14 + }, + "end": { + "line": 173, + "column": 36 + }, + "identifierName": "simpleKeyboardInstance" + }, + "name": "simpleKeyboardInstance" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 5370, + "end": 5383, + "loc": { + "start": { + "line": 173, + "column": 37 + }, + "end": { + "line": 173, + "column": 50 + }, + "identifierName": "caretPosition" + }, + "name": "caretPosition" + }, + "computed": false + }, + "operator": ">", + "right": { + "type": "NumericLiteral", + "start": 5386, + "end": 5387, + "loc": { + "start": { + "line": 173, + "column": 53 + }, + "end": { + "line": 173, + "column": 54 + } + }, + "extra": { + "rawValue": 0, + "raw": "0" + }, + "value": 0 + } + }, + "consequent": { + "type": "ExpressionStatement", + "start": 5398, + "end": 5492, + "loc": { + "start": { + "line": 174, + "column": 8 + }, + "end": { + "line": 174, + "column": 102 + } + }, + "expression": { + "type": "AssignmentExpression", + "start": 5398, + "end": 5492, + "loc": { + "start": { + "line": 174, + "column": 8 + }, + "end": { + "line": 174, + "column": 102 + } + }, + "operator": "=", + "left": { + "type": "MemberExpression", + "start": 5398, + "end": 5439, + "loc": { + "start": { + "line": 174, + "column": 8 + }, + "end": { + "line": 174, + "column": 49 + } + }, + "object": { + "type": "MemberExpression", + "start": 5398, + "end": 5425, + "loc": { + "start": { + "line": 174, + "column": 8 + }, + "end": { + "line": 174, + "column": 35 + } + }, + "object": { + "type": "ThisExpression", + "start": 5398, + "end": 5402, + "loc": { + "start": { + "line": 174, + "column": 8 + }, + "end": { + "line": 174, + "column": 12 + } + } + }, + "property": { + "type": "Identifier", + "start": 5403, + "end": 5425, + "loc": { + "start": { + "line": 174, + "column": 13 + }, + "end": { + "line": 174, + "column": 35 + }, + "identifierName": "simpleKeyboardInstance" + }, + "name": "simpleKeyboardInstance" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 5426, + "end": 5439, + "loc": { + "start": { + "line": 174, + "column": 36 + }, + "end": { + "line": 174, + "column": 49 + }, + "identifierName": "caretPosition" + }, + "name": "caretPosition" + }, + "computed": false + }, + "right": { + "type": "BinaryExpression", + "start": 5442, + "end": 5492, + "loc": { + "start": { + "line": 174, + "column": 52 + }, + "end": { + "line": 174, + "column": 102 + } + }, + "left": { + "type": "MemberExpression", + "start": 5442, + "end": 5483, + "loc": { + "start": { + "line": 174, + "column": 52 + }, + "end": { + "line": 174, + "column": 93 + } + }, + "object": { + "type": "MemberExpression", + "start": 5442, + "end": 5469, + "loc": { + "start": { + "line": 174, + "column": 52 + }, + "end": { + "line": 174, + "column": 79 + } + }, + "object": { + "type": "ThisExpression", + "start": 5442, + "end": 5446, + "loc": { + "start": { + "line": 174, + "column": 52 + }, + "end": { + "line": 174, + "column": 56 + } + } + }, + "property": { + "type": "Identifier", + "start": 5447, + "end": 5469, + "loc": { + "start": { + "line": 174, + "column": 57 + }, + "end": { + "line": 174, + "column": 79 + }, + "identifierName": "simpleKeyboardInstance" + }, + "name": "simpleKeyboardInstance" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 5470, + "end": 5483, + "loc": { + "start": { + "line": 174, + "column": 80 + }, + "end": { + "line": 174, + "column": 93 + }, + "identifierName": "caretPosition" + }, + "name": "caretPosition" + }, + "computed": false + }, + "operator": "-", + "right": { + "type": "Identifier", + "start": 5486, + "end": 5492, + "loc": { + "start": { + "line": 174, + "column": 96 + }, + "end": { + "line": 174, + "column": 102 + }, + "identifierName": "length" + }, + "name": "length" + } + } + } + }, + "alternate": null + } + ], + "directives": [] + }, + "alternate": { + "type": "BlockStatement", + "start": 5505, + "end": 5616, + "loc": { + "start": { + "line": 175, + "column": 11 + }, + "end": { + "line": 177, + "column": 5 + } + }, + "body": [ + { + "type": "ExpressionStatement", + "start": 5514, + "end": 5609, + "loc": { + "start": { + "line": 176, + "column": 6 + }, + "end": { + "line": 176, + "column": 101 + } + }, + "expression": { + "type": "AssignmentExpression", + "start": 5514, + "end": 5608, + "loc": { + "start": { + "line": 176, + "column": 6 + }, + "end": { + "line": 176, + "column": 100 + } + }, + "operator": "=", + "left": { + "type": "MemberExpression", + "start": 5514, + "end": 5555, + "loc": { + "start": { + "line": 176, + "column": 6 + }, + "end": { + "line": 176, + "column": 47 + } + }, + "object": { + "type": "MemberExpression", + "start": 5514, + "end": 5541, + "loc": { + "start": { + "line": 176, + "column": 6 + }, + "end": { + "line": 176, + "column": 33 + } + }, + "object": { + "type": "ThisExpression", + "start": 5514, + "end": 5518, + "loc": { + "start": { + "line": 176, + "column": 6 + }, + "end": { + "line": 176, + "column": 10 + } + } + }, + "property": { + "type": "Identifier", + "start": 5519, + "end": 5541, + "loc": { + "start": { + "line": 176, + "column": 11 + }, + "end": { + "line": 176, + "column": 33 + }, + "identifierName": "simpleKeyboardInstance" + }, + "name": "simpleKeyboardInstance" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 5542, + "end": 5555, + "loc": { + "start": { + "line": 176, + "column": 34 + }, + "end": { + "line": 176, + "column": 47 + }, + "identifierName": "caretPosition" + }, + "name": "caretPosition" + }, + "computed": false + }, + "right": { + "type": "BinaryExpression", + "start": 5558, + "end": 5608, + "loc": { + "start": { + "line": 176, + "column": 50 + }, + "end": { + "line": 176, + "column": 100 + } + }, + "left": { + "type": "MemberExpression", + "start": 5558, + "end": 5599, + "loc": { + "start": { + "line": 176, + "column": 50 + }, + "end": { + "line": 176, + "column": 91 + } + }, + "object": { + "type": "MemberExpression", + "start": 5558, + "end": 5585, + "loc": { + "start": { + "line": 176, + "column": 50 + }, + "end": { + "line": 176, + "column": 77 + } + }, + "object": { + "type": "ThisExpression", + "start": 5558, + "end": 5562, + "loc": { + "start": { + "line": 176, + "column": 50 + }, + "end": { + "line": 176, + "column": 54 + } + } + }, + "property": { + "type": "Identifier", + "start": 5563, + "end": 5585, + "loc": { + "start": { + "line": 176, + "column": 55 + }, + "end": { + "line": 176, + "column": 77 + }, + "identifierName": "simpleKeyboardInstance" + }, + "name": "simpleKeyboardInstance" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 5586, + "end": 5599, + "loc": { + "start": { + "line": 176, + "column": 78 + }, + "end": { + "line": 176, + "column": 91 + }, + "identifierName": "caretPosition" + }, + "name": "caretPosition" + }, + "computed": false + }, + "operator": "+", + "right": { + "type": "Identifier", + "start": 5602, + "end": 5608, + "loc": { + "start": { + "line": 176, + "column": 94 + }, + "end": { + "line": 176, + "column": 100 + }, + "identifierName": "length" + }, + "name": "length" + } + } + } + } + ], + "directives": [] + } + } + ], + "directives": [], + "trailingComments": null + }, + "trailingComments": null + }, + "leadingComments": [ + { + "type": "CommentBlock", + "value": "*\r\n * Moves the cursor position by a given amount\r\n * \r\n * @param {number} length Represents by how many characters the input should be moved\r\n * @param {boolean} minus Whether the cursor should be moved to the left or not.\r\n ", + "start": 5032, + "end": 5274, + "loc": { + "start": { + "line": 165, + "column": 2 + }, + "end": { + "line": 170, + "column": 5 + } + } + } + ], + "trailingComments": [ + { + "type": "CommentBlock", + "value": "*\r\n * Adds a string to the input at a given position\r\n * \r\n * @param {string} source The source input\r\n * @param {string} string The string to add\r\n * @param {number} position The (cursor) position where the string should be added\r\n ", + "start": 5627, + "end": 5879, + "loc": { + "start": { + "line": 180, + "column": 2 + }, + "end": { + "line": 186, + "column": 5 + } + } + } + ] + }, + { + "type": "ClassMethod", + "start": 5883, + "end": 6428, + "loc": { + "start": { + "line": 187, + "column": 2 + }, + "end": { + "line": 209, + "column": 3 + } + }, + "static": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 5883, + "end": 5894, + "loc": { + "start": { + "line": 187, + "column": 2 + }, + "end": { + "line": 187, + "column": 13 + }, + "identifierName": "addStringAt" + }, + "name": "addStringAt", + "leadingComments": null + }, + "kind": "method", + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 5895, + "end": 5901, + "loc": { + "start": { + "line": 187, + "column": 14 + }, + "end": { + "line": 187, + "column": 20 + }, + "identifierName": "source" + }, + "name": "source" + }, + { + "type": "Identifier", + "start": 5903, + "end": 5909, + "loc": { + "start": { + "line": 187, + "column": 22 + }, + "end": { + "line": 187, + "column": 28 + }, + "identifierName": "string" + }, + "name": "string" + }, + { + "type": "Identifier", + "start": 5911, + "end": 5919, + "loc": { + "start": { + "line": 187, + "column": 30 + }, + "end": { + "line": 187, + "column": 38 + }, + "identifierName": "position" + }, + "name": "position" + } + ], + "body": { + "type": "BlockStatement", + "start": 5920, + "end": 6428, + "loc": { + "start": { + "line": 187, + "column": 39 + }, + "end": { + "line": 209, + "column": 3 + } + }, + "body": [ + { + "type": "VariableDeclaration", + "start": 5927, + "end": 5938, + "loc": { + "start": { + "line": 188, + "column": 4 + }, + "end": { + "line": 188, + "column": 15 + } + }, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 5931, + "end": 5937, + "loc": { + "start": { + "line": 188, + "column": 8 + }, + "end": { + "line": 188, + "column": 14 + } + }, + "id": { + "type": "Identifier", + "start": 5931, + "end": 5937, + "loc": { + "start": { + "line": 188, + "column": 8 + }, + "end": { + "line": 188, + "column": 14 + }, + "identifierName": "output" + }, + "name": "output" + }, + "init": null + } + ], + "kind": "let" + }, + { + "type": "IfStatement", + "start": 5946, + "end": 6042, + "loc": { + "start": { + "line": 190, + "column": 4 + }, + "end": { + "line": 192, + "column": 5 + } + }, + "test": { + "type": "MemberExpression", + "start": 5949, + "end": 5990, + "loc": { + "start": { + "line": 190, + "column": 7 + }, + "end": { + "line": 190, + "column": 48 + } + }, + "object": { + "type": "MemberExpression", + "start": 5949, + "end": 5984, + "loc": { + "start": { + "line": 190, + "column": 7 + }, + "end": { + "line": 190, + "column": 42 + } + }, + "object": { + "type": "MemberExpression", + "start": 5949, + "end": 5976, + "loc": { + "start": { + "line": 190, + "column": 7 + }, + "end": { + "line": 190, + "column": 34 + } + }, + "object": { + "type": "ThisExpression", + "start": 5949, + "end": 5953, + "loc": { + "start": { + "line": 190, + "column": 7 + }, + "end": { + "line": 190, + "column": 11 + } + } + }, + "property": { + "type": "Identifier", + "start": 5954, + "end": 5976, + "loc": { + "start": { + "line": 190, + "column": 12 + }, + "end": { + "line": 190, + "column": 34 + }, + "identifierName": "simpleKeyboardInstance" + }, + "name": "simpleKeyboardInstance" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 5977, + "end": 5984, + "loc": { + "start": { + "line": 190, + "column": 35 + }, + "end": { + "line": 190, + "column": 42 + }, + "identifierName": "options" + }, + "name": "options" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 5985, + "end": 5990, + "loc": { + "start": { + "line": 190, + "column": 43 + }, + "end": { + "line": 190, + "column": 48 + }, + "identifierName": "debug" + }, + "name": "debug" + }, + "computed": false + }, + "consequent": { + "type": "BlockStatement", + "start": 5991, + "end": 6042, + "loc": { + "start": { + "line": 190, + "column": 49 + }, + "end": { + "line": 192, + "column": 5 + } + }, + "body": [ + { + "type": "ExpressionStatement", + "start": 6000, + "end": 6035, + "loc": { + "start": { + "line": 191, + "column": 6 + }, + "end": { + "line": 191, + "column": 41 + } + }, + "expression": { + "type": "CallExpression", + "start": 6000, + "end": 6034, + "loc": { + "start": { + "line": 191, + "column": 6 + }, + "end": { + "line": 191, + "column": 40 + } + }, + "callee": { + "type": "MemberExpression", + "start": 6000, + "end": 6011, + "loc": { + "start": { + "line": 191, + "column": 6 + }, + "end": { + "line": 191, + "column": 17 + } + }, + "object": { + "type": "Identifier", + "start": 6000, + "end": 6007, + "loc": { + "start": { + "line": 191, + "column": 6 + }, + "end": { + "line": 191, + "column": 13 + }, + "identifierName": "console" + }, + "name": "console" + }, + "property": { + "type": "Identifier", + "start": 6008, + "end": 6011, + "loc": { + "start": { + "line": 191, + "column": 14 + }, + "end": { + "line": 191, + "column": 17 + }, + "identifierName": "log" + }, + "name": "log" + }, + "computed": false + }, + "arguments": [ + { + "type": "StringLiteral", + "start": 6012, + "end": 6023, + "loc": { + "start": { + "line": 191, + "column": 18 + }, + "end": { + "line": 191, + "column": 29 + } + }, + "extra": { + "rawValue": "Caret at:", + "raw": "\"Caret at:\"" + }, + "value": "Caret at:" + }, + { + "type": "Identifier", + "start": 6025, + "end": 6033, + "loc": { + "start": { + "line": 191, + "column": 31 + }, + "end": { + "line": 191, + "column": 39 + }, + "identifierName": "position" + }, + "name": "position" + } + ] + } + } + ], + "directives": [] + }, + "alternate": null + }, + { + "type": "IfStatement", + "start": 6050, + "end": 6401, + "loc": { + "start": { + "line": 194, + "column": 4 + }, + "end": { + "line": 206, + "column": 5 + } + }, + "test": { + "type": "LogicalExpression", + "start": 6053, + "end": 6080, + "loc": { + "start": { + "line": 194, + "column": 7 + }, + "end": { + "line": 194, + "column": 34 + } + }, + "left": { + "type": "UnaryExpression", + "start": 6053, + "end": 6062, + "loc": { + "start": { + "line": 194, + "column": 7 + }, + "end": { + "line": 194, + "column": 16 + } + }, + "operator": "!", + "prefix": true, + "argument": { + "type": "Identifier", + "start": 6054, + "end": 6062, + "loc": { + "start": { + "line": 194, + "column": 8 + }, + "end": { + "line": 194, + "column": 16 + }, + "identifierName": "position" + }, + "name": "position" + }, + "extra": { + "parenthesizedArgument": false + } + }, + "operator": "&&", + "right": { + "type": "BinaryExpression", + "start": 6066, + "end": 6080, + "loc": { + "start": { + "line": 194, + "column": 20 + }, + "end": { + "line": 194, + "column": 34 + } + }, + "left": { + "type": "Identifier", + "start": 6066, + "end": 6074, + "loc": { + "start": { + "line": 194, + "column": 20 + }, + "end": { + "line": 194, + "column": 28 + }, + "identifierName": "position" + }, + "name": "position" + }, + "operator": "!==", + "right": { + "type": "NumericLiteral", + "start": 6079, + "end": 6080, + "loc": { + "start": { + "line": 194, + "column": 33 + }, + "end": { + "line": 194, + "column": 34 + } + }, + "extra": { + "rawValue": 0, + "raw": "0" + }, + "value": 0 + } + } + }, + "consequent": { + "type": "BlockStatement", + "start": 6081, + "end": 6122, + "loc": { + "start": { + "line": 194, + "column": 35 + }, + "end": { + "line": 196, + "column": 5 + } + }, + "body": [ + { + "type": "ExpressionStatement", + "start": 6090, + "end": 6115, + "loc": { + "start": { + "line": 195, + "column": 6 + }, + "end": { + "line": 195, + "column": 31 + } + }, + "expression": { + "type": "AssignmentExpression", + "start": 6090, + "end": 6114, + "loc": { + "start": { + "line": 195, + "column": 6 + }, + "end": { + "line": 195, + "column": 30 + } + }, + "operator": "=", + "left": { + "type": "Identifier", + "start": 6090, + "end": 6096, + "loc": { + "start": { + "line": 195, + "column": 6 + }, + "end": { + "line": 195, + "column": 12 + }, + "identifierName": "output" + }, + "name": "output" + }, + "right": { + "type": "BinaryExpression", + "start": 6099, + "end": 6114, + "loc": { + "start": { + "line": 195, + "column": 15 + }, + "end": { + "line": 195, + "column": 30 + } + }, + "left": { + "type": "Identifier", + "start": 6099, + "end": 6105, + "loc": { + "start": { + "line": 195, + "column": 15 + }, + "end": { + "line": 195, + "column": 21 + }, + "identifierName": "source" + }, + "name": "source" + }, + "operator": "+", + "right": { + "type": "Identifier", + "start": 6108, + "end": 6114, + "loc": { + "start": { + "line": 195, + "column": 24 + }, + "end": { + "line": 195, + "column": 30 + }, + "identifierName": "string" + }, + "name": "string" + } + } + } + } + ], + "directives": [] + }, + "alternate": { + "type": "BlockStatement", + "start": 6128, + "end": 6401, + "loc": { + "start": { + "line": 196, + "column": 11 + }, + "end": { + "line": 206, + "column": 5 + } + }, + "body": [ + { + "type": "ExpressionStatement", + "start": 6137, + "end": 6215, + "loc": { + "start": { + "line": 197, + "column": 6 + }, + "end": { + "line": 197, + "column": 84 + } + }, + "expression": { + "type": "AssignmentExpression", + "start": 6137, + "end": 6214, + "loc": { + "start": { + "line": 197, + "column": 6 + }, + "end": { + "line": 197, + "column": 83 + } + }, + "operator": "=", + "left": { + "type": "Identifier", + "start": 6137, + "end": 6143, + "loc": { + "start": { + "line": 197, + "column": 6 + }, + "end": { + "line": 197, + "column": 12 + }, + "identifierName": "output" + }, + "name": "output" + }, + "right": { + "type": "CallExpression", + "start": 6146, + "end": 6214, + "loc": { + "start": { + "line": 197, + "column": 15 + }, + "end": { + "line": 197, + "column": 83 + } + }, + "callee": { + "type": "MemberExpression", + "start": 6146, + "end": 6210, + "loc": { + "start": { + "line": 197, + "column": 15 + }, + "end": { + "line": 197, + "column": 79 + } + }, + "object": { + "type": "ArrayExpression", + "start": 6146, + "end": 6205, + "loc": { + "start": { + "line": 197, + "column": 15 + }, + "end": { + "line": 197, + "column": 74 + } + }, + "elements": [ + { + "type": "CallExpression", + "start": 6147, + "end": 6172, + "loc": { + "start": { + "line": 197, + "column": 16 + }, + "end": { + "line": 197, + "column": 41 + } + }, + "callee": { + "type": "MemberExpression", + "start": 6147, + "end": 6159, + "loc": { + "start": { + "line": 197, + "column": 16 + }, + "end": { + "line": 197, + "column": 28 + } + }, + "object": { + "type": "Identifier", + "start": 6147, + "end": 6153, + "loc": { + "start": { + "line": 197, + "column": 16 + }, + "end": { + "line": 197, + "column": 22 + }, + "identifierName": "source" + }, + "name": "source" + }, + "property": { + "type": "Identifier", + "start": 6154, + "end": 6159, + "loc": { + "start": { + "line": 197, + "column": 23 + }, + "end": { + "line": 197, + "column": 28 + }, + "identifierName": "slice" + }, + "name": "slice" + }, + "computed": false + }, + "arguments": [ + { + "type": "NumericLiteral", + "start": 6160, + "end": 6161, + "loc": { + "start": { + "line": 197, + "column": 29 + }, + "end": { + "line": 197, + "column": 30 + } + }, + "extra": { + "rawValue": 0, + "raw": "0" + }, + "value": 0 + }, + { + "type": "Identifier", + "start": 6163, + "end": 6171, + "loc": { + "start": { + "line": 197, + "column": 32 + }, + "end": { + "line": 197, + "column": 40 + }, + "identifierName": "position" + }, + "name": "position" + } + ] + }, + { + "type": "Identifier", + "start": 6174, + "end": 6180, + "loc": { + "start": { + "line": 197, + "column": 43 + }, + "end": { + "line": 197, + "column": 49 + }, + "identifierName": "string" + }, + "name": "string" + }, + { + "type": "CallExpression", + "start": 6182, + "end": 6204, + "loc": { + "start": { + "line": 197, + "column": 51 + }, + "end": { + "line": 197, + "column": 73 + } + }, + "callee": { + "type": "MemberExpression", + "start": 6182, + "end": 6194, + "loc": { + "start": { + "line": 197, + "column": 51 + }, + "end": { + "line": 197, + "column": 63 + } + }, + "object": { + "type": "Identifier", + "start": 6182, + "end": 6188, + "loc": { + "start": { + "line": 197, + "column": 51 + }, + "end": { + "line": 197, + "column": 57 + }, + "identifierName": "source" + }, + "name": "source" + }, + "property": { + "type": "Identifier", + "start": 6189, + "end": 6194, + "loc": { + "start": { + "line": 197, + "column": 58 + }, + "end": { + "line": 197, + "column": 63 + }, + "identifierName": "slice" + }, + "name": "slice" + }, + "computed": false + }, + "arguments": [ + { + "type": "Identifier", + "start": 6195, + "end": 6203, + "loc": { + "start": { + "line": 197, + "column": 64 + }, + "end": { + "line": 197, + "column": 72 + }, + "identifierName": "position" + }, + "name": "position" + } + ] + } + ] + }, + "property": { + "type": "Identifier", + "start": 6206, + "end": 6210, + "loc": { + "start": { + "line": 197, + "column": 75 + }, + "end": { + "line": 197, + "column": 79 + }, + "identifierName": "join" + }, + "name": "join" + }, + "computed": false + }, + "arguments": [ + { + "type": "StringLiteral", + "start": 6211, + "end": 6213, + "loc": { + "start": { + "line": 197, + "column": 80 + }, + "end": { + "line": 197, + "column": 82 + } + }, + "extra": { + "rawValue": "", + "raw": "''" + }, + "value": "" + } + ] + } + }, + "trailingComments": [ + { + "type": "CommentBlock", + "value": "*\r\n * Avoid caret position change when maxLength is set\r\n ", + "start": 6225, + "end": 6299, + "loc": { + "start": { + "line": 199, + "column": 6 + }, + "end": { + "line": 201, + "column": 9 + } + } + } + ] + }, + { + "type": "IfStatement", + "start": 6307, + "end": 6392, + "loc": { + "start": { + "line": 202, + "column": 6 + }, + "end": { + "line": 204, + "column": 7 + } + }, + "test": { + "type": "UnaryExpression", + "start": 6310, + "end": 6336, + "loc": { + "start": { + "line": 202, + "column": 9 + }, + "end": { + "line": 202, + "column": 35 + } + }, + "operator": "!", + "prefix": true, + "argument": { + "type": "CallExpression", + "start": 6311, + "end": 6336, + "loc": { + "start": { + "line": 202, + "column": 10 + }, + "end": { + "line": 202, + "column": 35 + } + }, + "callee": { + "type": "MemberExpression", + "start": 6311, + "end": 6334, + "loc": { + "start": { + "line": 202, + "column": 10 + }, + "end": { + "line": 202, + "column": 33 + } + }, + "object": { + "type": "ThisExpression", + "start": 6311, + "end": 6315, + "loc": { + "start": { + "line": 202, + "column": 10 + }, + "end": { + "line": 202, + "column": 14 + } + }, + "leadingComments": null + }, + "property": { + "type": "Identifier", + "start": 6316, + "end": 6334, + "loc": { + "start": { + "line": 202, + "column": 15 + }, + "end": { + "line": 202, + "column": 33 + }, + "identifierName": "isMaxLengthReached" + }, + "name": "isMaxLengthReached" + }, + "computed": false, + "leadingComments": null + }, + "arguments": [], + "leadingComments": null + }, + "extra": { + "parenthesizedArgument": false + }, + "leadingComments": null + }, + "consequent": { + "type": "BlockStatement", + "start": 6337, + "end": 6392, + "loc": { + "start": { + "line": 202, + "column": 36 + }, + "end": { + "line": 204, + "column": 7 + } + }, + "body": [ + { + "type": "ExpressionStatement", + "start": 6348, + "end": 6383, + "loc": { + "start": { + "line": 203, + "column": 8 + }, + "end": { + "line": 203, + "column": 43 + } + }, + "expression": { + "type": "CallExpression", + "start": 6348, + "end": 6382, + "loc": { + "start": { + "line": 203, + "column": 8 + }, + "end": { + "line": 203, + "column": 42 + } + }, + "callee": { + "type": "MemberExpression", + "start": 6348, + "end": 6367, + "loc": { + "start": { + "line": 203, + "column": 8 + }, + "end": { + "line": 203, + "column": 27 + } + }, + "object": { + "type": "ThisExpression", + "start": 6348, + "end": 6352, + "loc": { + "start": { + "line": 203, + "column": 8 + }, + "end": { + "line": 203, + "column": 12 + } + } + }, + "property": { + "type": "Identifier", + "start": 6353, + "end": 6367, + "loc": { + "start": { + "line": 203, + "column": 13 + }, + "end": { + "line": 203, + "column": 27 + }, + "identifierName": "updateCaretPos" + }, + "name": "updateCaretPos" + }, + "computed": false + }, + "arguments": [ + { + "type": "MemberExpression", + "start": 6368, + "end": 6381, + "loc": { + "start": { + "line": 203, + "column": 28 + }, + "end": { + "line": 203, + "column": 41 + } + }, + "object": { + "type": "Identifier", + "start": 6368, + "end": 6374, + "loc": { + "start": { + "line": 203, + "column": 28 + }, + "end": { + "line": 203, + "column": 34 + }, + "identifierName": "string" + }, + "name": "string" + }, + "property": { + "type": "Identifier", + "start": 6375, + "end": 6381, + "loc": { + "start": { + "line": 203, + "column": 35 + }, + "end": { + "line": 203, + "column": 41 + }, + "identifierName": "length" + }, + "name": "length" + }, + "computed": false + } + ] + } + } + ], + "directives": [] + }, + "alternate": null, + "leadingComments": [ + { + "type": "CommentBlock", + "value": "*\r\n * Avoid caret position change when maxLength is set\r\n ", + "start": 6225, + "end": 6299, + "loc": { + "start": { + "line": 199, + "column": 6 + }, + "end": { + "line": 201, + "column": 9 + } + } + } + ] + } + ], + "directives": [] + } + }, + { + "type": "ReturnStatement", + "start": 6409, + "end": 6423, + "loc": { + "start": { + "line": 208, + "column": 4 + }, + "end": { + "line": 208, + "column": 18 + } + }, + "argument": { + "type": "Identifier", + "start": 6416, + "end": 6422, + "loc": { + "start": { + "line": 208, + "column": 11 + }, + "end": { + "line": 208, + "column": 17 + }, + "identifierName": "output" + }, + "name": "output" + } + } + ], + "directives": [], + "trailingComments": null + }, + "leadingComments": [ + { + "type": "CommentBlock", + "value": "*\r\n * Adds a string to the input at a given position\r\n * \r\n * @param {string} source The source input\r\n * @param {string} string The string to add\r\n * @param {number} position The (cursor) position where the string should be added\r\n ", + "start": 5627, + "end": 5879, + "loc": { + "start": { + "line": 180, + "column": 2 + }, + "end": { + "line": 186, + "column": 5 + } + } + } + ], + "trailingComments": [ + { + "type": "CommentBlock", + "value": "*\r\n * Removes an amount of characters at a given position\r\n * \r\n * @param {string} source The source input\r\n * @param {number} position The (cursor) position from where the characters should be removed\r\n ", + "start": 6434, + "end": 6654, + "loc": { + "start": { + "line": 211, + "column": 2 + }, + "end": { + "line": 216, + "column": 5 + } + } + } + ] + }, + { + "type": "ClassMethod", + "start": 6658, + "end": 7888, + "loc": { + "start": { + "line": 217, + "column": 2 + }, + "end": { + "line": 256, + "column": 3 + } + }, + "static": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 6658, + "end": 6666, + "loc": { + "start": { + "line": 217, + "column": 2 + }, + "end": { + "line": 217, + "column": 10 + }, + "identifierName": "removeAt" + }, + "name": "removeAt", + "leadingComments": null + }, + "kind": "method", + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 6667, + "end": 6673, + "loc": { + "start": { + "line": 217, + "column": 11 + }, + "end": { + "line": 217, + "column": 17 + }, + "identifierName": "source" + }, + "name": "source" + }, + { + "type": "Identifier", + "start": 6675, + "end": 6683, + "loc": { + "start": { + "line": 217, + "column": 19 + }, + "end": { + "line": 217, + "column": 27 + }, + "identifierName": "position" + }, + "name": "position" + } + ], + "body": { + "type": "BlockStatement", + "start": 6684, + "end": 7888, + "loc": { + "start": { + "line": 217, + "column": 28 + }, + "end": { + "line": 256, + "column": 3 + } + }, + "body": [ + { + "type": "IfStatement", + "start": 6691, + "end": 6772, + "loc": { + "start": { + "line": 218, + "column": 4 + }, + "end": { + "line": 220, + "column": 5 + } + }, + "test": { + "type": "BinaryExpression", + "start": 6694, + "end": 6741, + "loc": { + "start": { + "line": 218, + "column": 7 + }, + "end": { + "line": 218, + "column": 54 + } + }, + "left": { + "type": "MemberExpression", + "start": 6694, + "end": 6735, + "loc": { + "start": { + "line": 218, + "column": 7 + }, + "end": { + "line": 218, + "column": 48 + } + }, + "object": { + "type": "MemberExpression", + "start": 6694, + "end": 6721, + "loc": { + "start": { + "line": 218, + "column": 7 + }, + "end": { + "line": 218, + "column": 34 + } + }, + "object": { + "type": "ThisExpression", + "start": 6694, + "end": 6698, + "loc": { + "start": { + "line": 218, + "column": 7 + }, + "end": { + "line": 218, + "column": 11 + } + } + }, + "property": { + "type": "Identifier", + "start": 6699, + "end": 6721, + "loc": { + "start": { + "line": 218, + "column": 12 + }, + "end": { + "line": 218, + "column": 34 + }, + "identifierName": "simpleKeyboardInstance" + }, + "name": "simpleKeyboardInstance" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 6722, + "end": 6735, + "loc": { + "start": { + "line": 218, + "column": 35 + }, + "end": { + "line": 218, + "column": 48 + }, + "identifierName": "caretPosition" + }, + "name": "caretPosition" + }, + "computed": false + }, + "operator": "===", + "right": { + "type": "NumericLiteral", + "start": 6740, + "end": 6741, + "loc": { + "start": { + "line": 218, + "column": 53 + }, + "end": { + "line": 218, + "column": 54 + } + }, + "extra": { + "rawValue": 0, + "raw": "0" + }, + "value": 0 + } + }, + "consequent": { + "type": "BlockStatement", + "start": 6742, + "end": 6772, + "loc": { + "start": { + "line": 218, + "column": 55 + }, + "end": { + "line": 220, + "column": 5 + } + }, + "body": [ + { + "type": "ReturnStatement", + "start": 6751, + "end": 6765, + "loc": { + "start": { + "line": 219, + "column": 6 + }, + "end": { + "line": 219, + "column": 20 + } + }, + "argument": { + "type": "Identifier", + "start": 6758, + "end": 6764, + "loc": { + "start": { + "line": 219, + "column": 13 + }, + "end": { + "line": 219, + "column": 19 + }, + "identifierName": "source" + }, + "name": "source" + } + } + ], + "directives": [] + }, + "alternate": null + }, + { + "type": "VariableDeclaration", + "start": 6780, + "end": 6791, + "loc": { + "start": { + "line": 222, + "column": 4 + }, + "end": { + "line": 222, + "column": 15 + } + }, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 6784, + "end": 6790, + "loc": { + "start": { + "line": 222, + "column": 8 + }, + "end": { + "line": 222, + "column": 14 + } + }, + "id": { + "type": "Identifier", + "start": 6784, + "end": 6790, + "loc": { + "start": { + "line": 222, + "column": 8 + }, + "end": { + "line": 222, + "column": 14 + }, + "identifierName": "output" + }, + "name": "output" + }, + "init": null + } + ], + "kind": "let" + }, + { + "type": "VariableDeclaration", + "start": 6797, + "end": 6814, + "loc": { + "start": { + "line": 223, + "column": 4 + }, + "end": { + "line": 223, + "column": 21 + } + }, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 6801, + "end": 6813, + "loc": { + "start": { + "line": 223, + "column": 8 + }, + "end": { + "line": 223, + "column": 20 + } + }, + "id": { + "type": "Identifier", + "start": 6801, + "end": 6813, + "loc": { + "start": { + "line": 223, + "column": 8 + }, + "end": { + "line": 223, + "column": 20 + }, + "identifierName": "prevTwoChars" + }, + "name": "prevTwoChars" + }, + "init": null + } + ], + "kind": "let" + }, + { + "type": "VariableDeclaration", + "start": 6820, + "end": 6837, + "loc": { + "start": { + "line": 224, + "column": 4 + }, + "end": { + "line": 224, + "column": 21 + } + }, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 6824, + "end": 6836, + "loc": { + "start": { + "line": 224, + "column": 8 + }, + "end": { + "line": 224, + "column": 20 + } + }, + "id": { + "type": "Identifier", + "start": 6824, + "end": 6836, + "loc": { + "start": { + "line": 224, + "column": 8 + }, + "end": { + "line": 224, + "column": 20 + }, + "identifierName": "emojiMatched" + }, + "name": "emojiMatched" + }, + "init": null + } + ], + "kind": "let" + }, + { + "type": "VariableDeclaration", + "start": 6843, + "end": 6901, + "loc": { + "start": { + "line": 225, + "column": 4 + }, + "end": { + "line": 225, + "column": 62 + } + }, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 6847, + "end": 6900, + "loc": { + "start": { + "line": 225, + "column": 8 + }, + "end": { + "line": 225, + "column": 61 + } + }, + "id": { + "type": "Identifier", + "start": 6847, + "end": 6862, + "loc": { + "start": { + "line": 225, + "column": 8 + }, + "end": { + "line": 225, + "column": 23 + }, + "identifierName": "emojiMatchedReg" + }, + "name": "emojiMatchedReg" + }, + "init": { + "type": "RegExpLiteral", + "start": 6865, + "end": 6900, + "loc": { + "start": { + "line": 225, + "column": 26 + }, + "end": { + "line": 225, + "column": 61 + } + }, + "extra": { + "raw": "/([\\uD800-\\uDBFF][\\uDC00-\\uDFFF])/g" + }, + "pattern": "([\\uD800-\\uDBFF][\\uDC00-\\uDFFF])", + "flags": "g" + } + } + ], + "kind": "let", + "trailingComments": [ + { + "type": "CommentBlock", + "value": "*\r\n * Emojis are made out of two characters, so we must take a custom approach to trim them.\r\n * For more info: https://mathiasbynens.be/notes/javascript-unicode\r\n ", + "start": 6909, + "end": 7089, + "loc": { + "start": { + "line": 227, + "column": 4 + }, + "end": { + "line": 230, + "column": 7 + } + } + } + ] + }, + { + "type": "IfStatement", + "start": 7095, + "end": 7861, + "loc": { + "start": { + "line": 231, + "column": 4 + }, + "end": { + "line": 253, + "column": 5 + } + }, + "test": { + "type": "LogicalExpression", + "start": 7098, + "end": 7123, + "loc": { + "start": { + "line": 231, + "column": 7 + }, + "end": { + "line": 231, + "column": 32 + } + }, + "left": { + "type": "Identifier", + "start": 7098, + "end": 7106, + "loc": { + "start": { + "line": 231, + "column": 7 + }, + "end": { + "line": 231, + "column": 15 + }, + "identifierName": "position" + }, + "name": "position", + "leadingComments": null + }, + "operator": "&&", + "right": { + "type": "BinaryExpression", + "start": 7110, + "end": 7123, + "loc": { + "start": { + "line": 231, + "column": 19 + }, + "end": { + "line": 231, + "column": 32 + } + }, + "left": { + "type": "Identifier", + "start": 7110, + "end": 7118, + "loc": { + "start": { + "line": 231, + "column": 19 + }, + "end": { + "line": 231, + "column": 27 + }, + "identifierName": "position" + }, + "name": "position" + }, + "operator": ">=", + "right": { + "type": "NumericLiteral", + "start": 7122, + "end": 7123, + "loc": { + "start": { + "line": 231, + "column": 31 + }, + "end": { + "line": 231, + "column": 32 + } + }, + "extra": { + "rawValue": 0, + "raw": "0" + }, + "value": 0 + } + }, + "leadingComments": null + }, + "consequent": { + "type": "BlockStatement", + "start": 7124, + "end": 7540, + "loc": { + "start": { + "line": 231, + "column": 33 + }, + "end": { + "line": 242, + "column": 5 + } + }, + "body": [ + { + "type": "ExpressionStatement", + "start": 7133, + "end": 7188, + "loc": { + "start": { + "line": 232, + "column": 6 + }, + "end": { + "line": 232, + "column": 61 + } + }, + "expression": { + "type": "AssignmentExpression", + "start": 7133, + "end": 7188, + "loc": { + "start": { + "line": 232, + "column": 6 + }, + "end": { + "line": 232, + "column": 61 + } + }, + "operator": "=", + "left": { + "type": "Identifier", + "start": 7133, + "end": 7145, + "loc": { + "start": { + "line": 232, + "column": 6 + }, + "end": { + "line": 232, + "column": 18 + }, + "identifierName": "prevTwoChars" + }, + "name": "prevTwoChars" + }, + "right": { + "type": "CallExpression", + "start": 7148, + "end": 7188, + "loc": { + "start": { + "line": 232, + "column": 21 + }, + "end": { + "line": 232, + "column": 61 + } + }, + "callee": { + "type": "MemberExpression", + "start": 7148, + "end": 7164, + "loc": { + "start": { + "line": 232, + "column": 21 + }, + "end": { + "line": 232, + "column": 37 + } + }, + "object": { + "type": "Identifier", + "start": 7148, + "end": 7154, + "loc": { + "start": { + "line": 232, + "column": 21 + }, + "end": { + "line": 232, + "column": 27 + }, + "identifierName": "source" + }, + "name": "source" + }, + "property": { + "type": "Identifier", + "start": 7155, + "end": 7164, + "loc": { + "start": { + "line": 232, + "column": 28 + }, + "end": { + "line": 232, + "column": 37 + }, + "identifierName": "substring" + }, + "name": "substring" + }, + "computed": false + }, + "arguments": [ + { + "type": "BinaryExpression", + "start": 7165, + "end": 7177, + "loc": { + "start": { + "line": 232, + "column": 38 + }, + "end": { + "line": 232, + "column": 50 + } + }, + "left": { + "type": "Identifier", + "start": 7165, + "end": 7173, + "loc": { + "start": { + "line": 232, + "column": 38 + }, + "end": { + "line": 232, + "column": 46 + }, + "identifierName": "position" + }, + "name": "position" + }, + "operator": "-", + "right": { + "type": "NumericLiteral", + "start": 7176, + "end": 7177, + "loc": { + "start": { + "line": 232, + "column": 49 + }, + "end": { + "line": 232, + "column": 50 + } + }, + "extra": { + "rawValue": 2, + "raw": "2" + }, + "value": 2 + } + }, + { + "type": "Identifier", + "start": 7179, + "end": 7187, + "loc": { + "start": { + "line": 232, + "column": 52 + }, + "end": { + "line": 232, + "column": 60 + }, + "identifierName": "position" + }, + "name": "position" + } + ] + } + } + }, + { + "type": "ExpressionStatement", + "start": 7196, + "end": 7247, + "loc": { + "start": { + "line": 233, + "column": 6 + }, + "end": { + "line": 233, + "column": 57 + } + }, + "expression": { + "type": "AssignmentExpression", + "start": 7196, + "end": 7246, + "loc": { + "start": { + "line": 233, + "column": 6 + }, + "end": { + "line": 233, + "column": 56 + } + }, + "operator": "=", + "left": { + "type": "Identifier", + "start": 7196, + "end": 7208, + "loc": { + "start": { + "line": 233, + "column": 6 + }, + "end": { + "line": 233, + "column": 18 + }, + "identifierName": "emojiMatched" + }, + "name": "emojiMatched" + }, + "right": { + "type": "CallExpression", + "start": 7211, + "end": 7246, + "loc": { + "start": { + "line": 233, + "column": 21 + }, + "end": { + "line": 233, + "column": 56 + } + }, + "callee": { + "type": "MemberExpression", + "start": 7211, + "end": 7229, + "loc": { + "start": { + "line": 233, + "column": 21 + }, + "end": { + "line": 233, + "column": 39 + } + }, + "object": { + "type": "Identifier", + "start": 7211, + "end": 7223, + "loc": { + "start": { + "line": 233, + "column": 21 + }, + "end": { + "line": 233, + "column": 33 + }, + "identifierName": "prevTwoChars" + }, + "name": "prevTwoChars" + }, + "property": { + "type": "Identifier", + "start": 7224, + "end": 7229, + "loc": { + "start": { + "line": 233, + "column": 34 + }, + "end": { + "line": 233, + "column": 39 + }, + "identifierName": "match" + }, + "name": "match" + }, + "computed": false + }, + "arguments": [ + { + "type": "Identifier", + "start": 7230, + "end": 7245, + "loc": { + "start": { + "line": 233, + "column": 40 + }, + "end": { + "line": 233, + "column": 55 + }, + "identifierName": "emojiMatchedReg" + }, + "name": "emojiMatchedReg" + } + ] + } + } + }, + { + "type": "IfStatement", + "start": 7257, + "end": 7533, + "loc": { + "start": { + "line": 235, + "column": 6 + }, + "end": { + "line": 241, + "column": 7 + } + }, + "test": { + "type": "Identifier", + "start": 7260, + "end": 7272, + "loc": { + "start": { + "line": 235, + "column": 9 + }, + "end": { + "line": 235, + "column": 21 + }, + "identifierName": "emojiMatched" + }, + "name": "emojiMatched" + }, + "consequent": { + "type": "BlockStatement", + "start": 7273, + "end": 7400, + "loc": { + "start": { + "line": 235, + "column": 22 + }, + "end": { + "line": 238, + "column": 7 + } + }, + "body": [ + { + "type": "ExpressionStatement", + "start": 7284, + "end": 7352, + "loc": { + "start": { + "line": 236, + "column": 8 + }, + "end": { + "line": 236, + "column": 76 + } + }, + "expression": { + "type": "AssignmentExpression", + "start": 7284, + "end": 7351, + "loc": { + "start": { + "line": 236, + "column": 8 + }, + "end": { + "line": 236, + "column": 75 + } + }, + "operator": "=", + "left": { + "type": "Identifier", + "start": 7284, + "end": 7290, + "loc": { + "start": { + "line": 236, + "column": 8 + }, + "end": { + "line": 236, + "column": 14 + }, + "identifierName": "output" + }, + "name": "output" + }, + "right": { + "type": "BinaryExpression", + "start": 7293, + "end": 7351, + "loc": { + "start": { + "line": 236, + "column": 17 + }, + "end": { + "line": 236, + "column": 75 + } + }, + "left": { + "type": "CallExpression", + "start": 7293, + "end": 7325, + "loc": { + "start": { + "line": 236, + "column": 17 + }, + "end": { + "line": 236, + "column": 49 + } + }, + "callee": { + "type": "MemberExpression", + "start": 7293, + "end": 7306, + "loc": { + "start": { + "line": 236, + "column": 17 + }, + "end": { + "line": 236, + "column": 30 + } + }, + "object": { + "type": "Identifier", + "start": 7293, + "end": 7299, + "loc": { + "start": { + "line": 236, + "column": 17 + }, + "end": { + "line": 236, + "column": 23 + }, + "identifierName": "source" + }, + "name": "source" + }, + "property": { + "type": "Identifier", + "start": 7300, + "end": 7306, + "loc": { + "start": { + "line": 236, + "column": 24 + }, + "end": { + "line": 236, + "column": 30 + }, + "identifierName": "substr" + }, + "name": "substr" + }, + "computed": false + }, + "arguments": [ + { + "type": "NumericLiteral", + "start": 7307, + "end": 7308, + "loc": { + "start": { + "line": 236, + "column": 31 + }, + "end": { + "line": 236, + "column": 32 + } + }, + "extra": { + "rawValue": 0, + "raw": "0" + }, + "value": 0 + }, + { + "type": "BinaryExpression", + "start": 7311, + "end": 7323, + "loc": { + "start": { + "line": 236, + "column": 35 + }, + "end": { + "line": 236, + "column": 47 + } + }, + "left": { + "type": "Identifier", + "start": 7311, + "end": 7319, + "loc": { + "start": { + "line": 236, + "column": 35 + }, + "end": { + "line": 236, + "column": 43 + }, + "identifierName": "position" + }, + "name": "position" + }, + "operator": "-", + "right": { + "type": "NumericLiteral", + "start": 7322, + "end": 7323, + "loc": { + "start": { + "line": 236, + "column": 46 + }, + "end": { + "line": 236, + "column": 47 + } + }, + "extra": { + "rawValue": 2, + "raw": "2" + }, + "value": 2 + }, + "extra": { + "parenthesized": true, + "parenStart": 7310 + } + } + ] + }, + "operator": "+", + "right": { + "type": "CallExpression", + "start": 7328, + "end": 7351, + "loc": { + "start": { + "line": 236, + "column": 52 + }, + "end": { + "line": 236, + "column": 75 + } + }, + "callee": { + "type": "MemberExpression", + "start": 7328, + "end": 7341, + "loc": { + "start": { + "line": 236, + "column": 52 + }, + "end": { + "line": 236, + "column": 65 + } + }, + "object": { + "type": "Identifier", + "start": 7328, + "end": 7334, + "loc": { + "start": { + "line": 236, + "column": 52 + }, + "end": { + "line": 236, + "column": 58 + }, + "identifierName": "source" + }, + "name": "source" + }, + "property": { + "type": "Identifier", + "start": 7335, + "end": 7341, + "loc": { + "start": { + "line": 236, + "column": 59 + }, + "end": { + "line": 236, + "column": 65 + }, + "identifierName": "substr" + }, + "name": "substr" + }, + "computed": false + }, + "arguments": [ + { + "type": "Identifier", + "start": 7342, + "end": 7350, + "loc": { + "start": { + "line": 236, + "column": 66 + }, + "end": { + "line": 236, + "column": 74 + }, + "identifierName": "position" + }, + "name": "position" + } + ] + } + } + } + }, + { + "type": "ExpressionStatement", + "start": 7362, + "end": 7391, + "loc": { + "start": { + "line": 237, + "column": 8 + }, + "end": { + "line": 237, + "column": 37 + } + }, + "expression": { + "type": "CallExpression", + "start": 7362, + "end": 7390, + "loc": { + "start": { + "line": 237, + "column": 8 + }, + "end": { + "line": 237, + "column": 36 + } + }, + "callee": { + "type": "MemberExpression", + "start": 7362, + "end": 7381, + "loc": { + "start": { + "line": 237, + "column": 8 + }, + "end": { + "line": 237, + "column": 27 + } + }, + "object": { + "type": "ThisExpression", + "start": 7362, + "end": 7366, + "loc": { + "start": { + "line": 237, + "column": 8 + }, + "end": { + "line": 237, + "column": 12 + } + } + }, + "property": { + "type": "Identifier", + "start": 7367, + "end": 7381, + "loc": { + "start": { + "line": 237, + "column": 13 + }, + "end": { + "line": 237, + "column": 27 + }, + "identifierName": "updateCaretPos" + }, + "name": "updateCaretPos" + }, + "computed": false + }, + "arguments": [ + { + "type": "NumericLiteral", + "start": 7382, + "end": 7383, + "loc": { + "start": { + "line": 237, + "column": 28 + }, + "end": { + "line": 237, + "column": 29 + } + }, + "extra": { + "rawValue": 2, + "raw": "2" + }, + "value": 2 + }, + { + "type": "BooleanLiteral", + "start": 7385, + "end": 7389, + "loc": { + "start": { + "line": 237, + "column": 31 + }, + "end": { + "line": 237, + "column": 35 + } + }, + "value": true + } + ] + } + } + ], + "directives": [] + }, + "alternate": { + "type": "BlockStatement", + "start": 7406, + "end": 7533, + "loc": { + "start": { + "line": 238, + "column": 13 + }, + "end": { + "line": 241, + "column": 7 + } + }, + "body": [ + { + "type": "ExpressionStatement", + "start": 7417, + "end": 7485, + "loc": { + "start": { + "line": 239, + "column": 8 + }, + "end": { + "line": 239, + "column": 76 + } + }, + "expression": { + "type": "AssignmentExpression", + "start": 7417, + "end": 7484, + "loc": { + "start": { + "line": 239, + "column": 8 + }, + "end": { + "line": 239, + "column": 75 + } + }, + "operator": "=", + "left": { + "type": "Identifier", + "start": 7417, + "end": 7423, + "loc": { + "start": { + "line": 239, + "column": 8 + }, + "end": { + "line": 239, + "column": 14 + }, + "identifierName": "output" + }, + "name": "output" + }, + "right": { + "type": "BinaryExpression", + "start": 7426, + "end": 7484, + "loc": { + "start": { + "line": 239, + "column": 17 + }, + "end": { + "line": 239, + "column": 75 + } + }, + "left": { + "type": "CallExpression", + "start": 7426, + "end": 7458, + "loc": { + "start": { + "line": 239, + "column": 17 + }, + "end": { + "line": 239, + "column": 49 + } + }, + "callee": { + "type": "MemberExpression", + "start": 7426, + "end": 7439, + "loc": { + "start": { + "line": 239, + "column": 17 + }, + "end": { + "line": 239, + "column": 30 + } + }, + "object": { + "type": "Identifier", + "start": 7426, + "end": 7432, + "loc": { + "start": { + "line": 239, + "column": 17 + }, + "end": { + "line": 239, + "column": 23 + }, + "identifierName": "source" + }, + "name": "source" + }, + "property": { + "type": "Identifier", + "start": 7433, + "end": 7439, + "loc": { + "start": { + "line": 239, + "column": 24 + }, + "end": { + "line": 239, + "column": 30 + }, + "identifierName": "substr" + }, + "name": "substr" + }, + "computed": false + }, + "arguments": [ + { + "type": "NumericLiteral", + "start": 7440, + "end": 7441, + "loc": { + "start": { + "line": 239, + "column": 31 + }, + "end": { + "line": 239, + "column": 32 + } + }, + "extra": { + "rawValue": 0, + "raw": "0" + }, + "value": 0 + }, + { + "type": "BinaryExpression", + "start": 7444, + "end": 7456, + "loc": { + "start": { + "line": 239, + "column": 35 + }, + "end": { + "line": 239, + "column": 47 + } + }, + "left": { + "type": "Identifier", + "start": 7444, + "end": 7452, + "loc": { + "start": { + "line": 239, + "column": 35 + }, + "end": { + "line": 239, + "column": 43 + }, + "identifierName": "position" + }, + "name": "position" + }, + "operator": "-", + "right": { + "type": "NumericLiteral", + "start": 7455, + "end": 7456, + "loc": { + "start": { + "line": 239, + "column": 46 + }, + "end": { + "line": 239, + "column": 47 + } + }, + "extra": { + "rawValue": 1, + "raw": "1" + }, + "value": 1 + }, + "extra": { + "parenthesized": true, + "parenStart": 7443 + } + } + ] + }, + "operator": "+", + "right": { + "type": "CallExpression", + "start": 7461, + "end": 7484, + "loc": { + "start": { + "line": 239, + "column": 52 + }, + "end": { + "line": 239, + "column": 75 + } + }, + "callee": { + "type": "MemberExpression", + "start": 7461, + "end": 7474, + "loc": { + "start": { + "line": 239, + "column": 52 + }, + "end": { + "line": 239, + "column": 65 + } + }, + "object": { + "type": "Identifier", + "start": 7461, + "end": 7467, + "loc": { + "start": { + "line": 239, + "column": 52 + }, + "end": { + "line": 239, + "column": 58 + }, + "identifierName": "source" + }, + "name": "source" + }, + "property": { + "type": "Identifier", + "start": 7468, + "end": 7474, + "loc": { + "start": { + "line": 239, + "column": 59 + }, + "end": { + "line": 239, + "column": 65 + }, + "identifierName": "substr" + }, + "name": "substr" + }, + "computed": false + }, + "arguments": [ + { + "type": "Identifier", + "start": 7475, + "end": 7483, + "loc": { + "start": { + "line": 239, + "column": 66 + }, + "end": { + "line": 239, + "column": 74 + }, + "identifierName": "position" + }, + "name": "position" + } + ] + } + } + } + }, + { + "type": "ExpressionStatement", + "start": 7495, + "end": 7524, + "loc": { + "start": { + "line": 240, + "column": 8 + }, + "end": { + "line": 240, + "column": 37 + } + }, + "expression": { + "type": "CallExpression", + "start": 7495, + "end": 7523, + "loc": { + "start": { + "line": 240, + "column": 8 + }, + "end": { + "line": 240, + "column": 36 + } + }, + "callee": { + "type": "MemberExpression", + "start": 7495, + "end": 7514, + "loc": { + "start": { + "line": 240, + "column": 8 + }, + "end": { + "line": 240, + "column": 27 + } + }, + "object": { + "type": "ThisExpression", + "start": 7495, + "end": 7499, + "loc": { + "start": { + "line": 240, + "column": 8 + }, + "end": { + "line": 240, + "column": 12 + } + } + }, + "property": { + "type": "Identifier", + "start": 7500, + "end": 7514, + "loc": { + "start": { + "line": 240, + "column": 13 + }, + "end": { + "line": 240, + "column": 27 + }, + "identifierName": "updateCaretPos" + }, + "name": "updateCaretPos" + }, + "computed": false + }, + "arguments": [ + { + "type": "NumericLiteral", + "start": 7515, + "end": 7516, + "loc": { + "start": { + "line": 240, + "column": 28 + }, + "end": { + "line": 240, + "column": 29 + } + }, + "extra": { + "rawValue": 1, + "raw": "1" + }, + "value": 1 + }, + { + "type": "BooleanLiteral", + "start": 7518, + "end": 7522, + "loc": { + "start": { + "line": 240, + "column": 31 + }, + "end": { + "line": 240, + "column": 35 + } + }, + "value": true + } + ] + } + } + ], + "directives": [] + } + } + ], + "directives": [] + }, + "alternate": { + "type": "BlockStatement", + "start": 7546, + "end": 7861, + "loc": { + "start": { + "line": 242, + "column": 11 + }, + "end": { + "line": 253, + "column": 5 + } + }, + "body": [ + { + "type": "ExpressionStatement", + "start": 7555, + "end": 7587, + "loc": { + "start": { + "line": 243, + "column": 6 + }, + "end": { + "line": 243, + "column": 38 + } + }, + "expression": { + "type": "AssignmentExpression", + "start": 7555, + "end": 7586, + "loc": { + "start": { + "line": 243, + "column": 6 + }, + "end": { + "line": 243, + "column": 37 + } + }, + "operator": "=", + "left": { + "type": "Identifier", + "start": 7555, + "end": 7567, + "loc": { + "start": { + "line": 243, + "column": 6 + }, + "end": { + "line": 243, + "column": 18 + }, + "identifierName": "prevTwoChars" + }, + "name": "prevTwoChars" + }, + "right": { + "type": "CallExpression", + "start": 7570, + "end": 7586, + "loc": { + "start": { + "line": 243, + "column": 21 + }, + "end": { + "line": 243, + "column": 37 + } + }, + "callee": { + "type": "MemberExpression", + "start": 7570, + "end": 7582, + "loc": { + "start": { + "line": 243, + "column": 21 + }, + "end": { + "line": 243, + "column": 33 + } + }, + "object": { + "type": "Identifier", + "start": 7570, + "end": 7576, + "loc": { + "start": { + "line": 243, + "column": 21 + }, + "end": { + "line": 243, + "column": 27 + }, + "identifierName": "source" + }, + "name": "source" + }, + "property": { + "type": "Identifier", + "start": 7577, + "end": 7582, + "loc": { + "start": { + "line": 243, + "column": 28 + }, + "end": { + "line": 243, + "column": 33 + }, + "identifierName": "slice" + }, + "name": "slice" + }, + "computed": false + }, + "arguments": [ + { + "type": "UnaryExpression", + "start": 7583, + "end": 7585, + "loc": { + "start": { + "line": 243, + "column": 34 + }, + "end": { + "line": 243, + "column": 36 + } + }, + "operator": "-", + "prefix": true, + "argument": { + "type": "NumericLiteral", + "start": 7584, + "end": 7585, + "loc": { + "start": { + "line": 243, + "column": 35 + }, + "end": { + "line": 243, + "column": 36 + } + }, + "extra": { + "rawValue": 2, + "raw": "2" + }, + "value": 2 + }, + "extra": { + "parenthesizedArgument": false + } + } + ] + } + } + }, + { + "type": "ExpressionStatement", + "start": 7595, + "end": 7646, + "loc": { + "start": { + "line": 244, + "column": 6 + }, + "end": { + "line": 244, + "column": 57 + } + }, + "expression": { + "type": "AssignmentExpression", + "start": 7595, + "end": 7645, + "loc": { + "start": { + "line": 244, + "column": 6 + }, + "end": { + "line": 244, + "column": 56 + } + }, + "operator": "=", + "left": { + "type": "Identifier", + "start": 7595, + "end": 7607, + "loc": { + "start": { + "line": 244, + "column": 6 + }, + "end": { + "line": 244, + "column": 18 + }, + "identifierName": "emojiMatched" + }, + "name": "emojiMatched" + }, + "right": { + "type": "CallExpression", + "start": 7610, + "end": 7645, + "loc": { + "start": { + "line": 244, + "column": 21 + }, + "end": { + "line": 244, + "column": 56 + } + }, + "callee": { + "type": "MemberExpression", + "start": 7610, + "end": 7628, + "loc": { + "start": { + "line": 244, + "column": 21 + }, + "end": { + "line": 244, + "column": 39 + } + }, + "object": { + "type": "Identifier", + "start": 7610, + "end": 7622, + "loc": { + "start": { + "line": 244, + "column": 21 + }, + "end": { + "line": 244, + "column": 33 + }, + "identifierName": "prevTwoChars" + }, + "name": "prevTwoChars" + }, + "property": { + "type": "Identifier", + "start": 7623, + "end": 7628, + "loc": { + "start": { + "line": 244, + "column": 34 + }, + "end": { + "line": 244, + "column": 39 + }, + "identifierName": "match" + }, + "name": "match" + }, + "computed": false + }, + "arguments": [ + { + "type": "Identifier", + "start": 7629, + "end": 7644, + "loc": { + "start": { + "line": 244, + "column": 40 + }, + "end": { + "line": 244, + "column": 55 + }, + "identifierName": "emojiMatchedReg" + }, + "name": "emojiMatchedReg" + } + ] + } + } + }, + { + "type": "IfStatement", + "start": 7656, + "end": 7854, + "loc": { + "start": { + "line": 246, + "column": 6 + }, + "end": { + "line": 252, + "column": 7 + } + }, + "test": { + "type": "Identifier", + "start": 7659, + "end": 7671, + "loc": { + "start": { + "line": 246, + "column": 9 + }, + "end": { + "line": 246, + "column": 21 + }, + "identifierName": "emojiMatched" + }, + "name": "emojiMatched" + }, + "consequent": { + "type": "BlockStatement", + "start": 7672, + "end": 7760, + "loc": { + "start": { + "line": 246, + "column": 22 + }, + "end": { + "line": 249, + "column": 7 + } + }, + "body": [ + { + "type": "ExpressionStatement", + "start": 7683, + "end": 7712, + "loc": { + "start": { + "line": 247, + "column": 8 + }, + "end": { + "line": 247, + "column": 37 + } + }, + "expression": { + "type": "AssignmentExpression", + "start": 7683, + "end": 7711, + "loc": { + "start": { + "line": 247, + "column": 8 + }, + "end": { + "line": 247, + "column": 36 + } + }, + "operator": "=", + "left": { + "type": "Identifier", + "start": 7683, + "end": 7689, + "loc": { + "start": { + "line": 247, + "column": 8 + }, + "end": { + "line": 247, + "column": 14 + }, + "identifierName": "output" + }, + "name": "output" + }, + "right": { + "type": "CallExpression", + "start": 7692, + "end": 7711, + "loc": { + "start": { + "line": 247, + "column": 17 + }, + "end": { + "line": 247, + "column": 36 + } + }, + "callee": { + "type": "MemberExpression", + "start": 7692, + "end": 7704, + "loc": { + "start": { + "line": 247, + "column": 17 + }, + "end": { + "line": 247, + "column": 29 + } + }, + "object": { + "type": "Identifier", + "start": 7692, + "end": 7698, + "loc": { + "start": { + "line": 247, + "column": 17 + }, + "end": { + "line": 247, + "column": 23 + }, + "identifierName": "source" + }, + "name": "source" + }, + "property": { + "type": "Identifier", + "start": 7699, + "end": 7704, + "loc": { + "start": { + "line": 247, + "column": 24 + }, + "end": { + "line": 247, + "column": 29 + }, + "identifierName": "slice" + }, + "name": "slice" + }, + "computed": false + }, + "arguments": [ + { + "type": "NumericLiteral", + "start": 7705, + "end": 7706, + "loc": { + "start": { + "line": 247, + "column": 30 + }, + "end": { + "line": 247, + "column": 31 + } + }, + "extra": { + "rawValue": 0, + "raw": "0" + }, + "value": 0 + }, + { + "type": "UnaryExpression", + "start": 7708, + "end": 7710, + "loc": { + "start": { + "line": 247, + "column": 33 + }, + "end": { + "line": 247, + "column": 35 + } + }, + "operator": "-", + "prefix": true, + "argument": { + "type": "NumericLiteral", + "start": 7709, + "end": 7710, + "loc": { + "start": { + "line": 247, + "column": 34 + }, + "end": { + "line": 247, + "column": 35 + } + }, + "extra": { + "rawValue": 2, + "raw": "2" + }, + "value": 2 + }, + "extra": { + "parenthesizedArgument": false + } + } + ] + } + } + }, + { + "type": "ExpressionStatement", + "start": 7722, + "end": 7751, + "loc": { + "start": { + "line": 248, + "column": 8 + }, + "end": { + "line": 248, + "column": 37 + } + }, + "expression": { + "type": "CallExpression", + "start": 7722, + "end": 7750, + "loc": { + "start": { + "line": 248, + "column": 8 + }, + "end": { + "line": 248, + "column": 36 + } + }, + "callee": { + "type": "MemberExpression", + "start": 7722, + "end": 7741, + "loc": { + "start": { + "line": 248, + "column": 8 + }, + "end": { + "line": 248, + "column": 27 + } + }, + "object": { + "type": "ThisExpression", + "start": 7722, + "end": 7726, + "loc": { + "start": { + "line": 248, + "column": 8 + }, + "end": { + "line": 248, + "column": 12 + } + } + }, + "property": { + "type": "Identifier", + "start": 7727, + "end": 7741, + "loc": { + "start": { + "line": 248, + "column": 13 + }, + "end": { + "line": 248, + "column": 27 + }, + "identifierName": "updateCaretPos" + }, + "name": "updateCaretPos" + }, + "computed": false + }, + "arguments": [ + { + "type": "NumericLiteral", + "start": 7742, + "end": 7743, + "loc": { + "start": { + "line": 248, + "column": 28 + }, + "end": { + "line": 248, + "column": 29 + } + }, + "extra": { + "rawValue": 2, + "raw": "2" + }, + "value": 2 + }, + { + "type": "BooleanLiteral", + "start": 7745, + "end": 7749, + "loc": { + "start": { + "line": 248, + "column": 31 + }, + "end": { + "line": 248, + "column": 35 + } + }, + "value": true + } + ] + } + } + ], + "directives": [] + }, + "alternate": { + "type": "BlockStatement", + "start": 7766, + "end": 7854, + "loc": { + "start": { + "line": 249, + "column": 13 + }, + "end": { + "line": 252, + "column": 7 + } + }, + "body": [ + { + "type": "ExpressionStatement", + "start": 7777, + "end": 7806, + "loc": { + "start": { + "line": 250, + "column": 8 + }, + "end": { + "line": 250, + "column": 37 + } + }, + "expression": { + "type": "AssignmentExpression", + "start": 7777, + "end": 7805, + "loc": { + "start": { + "line": 250, + "column": 8 + }, + "end": { + "line": 250, + "column": 36 + } + }, + "operator": "=", + "left": { + "type": "Identifier", + "start": 7777, + "end": 7783, + "loc": { + "start": { + "line": 250, + "column": 8 + }, + "end": { + "line": 250, + "column": 14 + }, + "identifierName": "output" + }, + "name": "output" + }, + "right": { + "type": "CallExpression", + "start": 7786, + "end": 7805, + "loc": { + "start": { + "line": 250, + "column": 17 + }, + "end": { + "line": 250, + "column": 36 + } + }, + "callee": { + "type": "MemberExpression", + "start": 7786, + "end": 7798, + "loc": { + "start": { + "line": 250, + "column": 17 + }, + "end": { + "line": 250, + "column": 29 + } + }, + "object": { + "type": "Identifier", + "start": 7786, + "end": 7792, + "loc": { + "start": { + "line": 250, + "column": 17 + }, + "end": { + "line": 250, + "column": 23 + }, + "identifierName": "source" + }, + "name": "source" + }, + "property": { + "type": "Identifier", + "start": 7793, + "end": 7798, + "loc": { + "start": { + "line": 250, + "column": 24 + }, + "end": { + "line": 250, + "column": 29 + }, + "identifierName": "slice" + }, + "name": "slice" + }, + "computed": false + }, + "arguments": [ + { + "type": "NumericLiteral", + "start": 7799, + "end": 7800, + "loc": { + "start": { + "line": 250, + "column": 30 + }, + "end": { + "line": 250, + "column": 31 + } + }, + "extra": { + "rawValue": 0, + "raw": "0" + }, + "value": 0 + }, + { + "type": "UnaryExpression", + "start": 7802, + "end": 7804, + "loc": { + "start": { + "line": 250, + "column": 33 + }, + "end": { + "line": 250, + "column": 35 + } + }, + "operator": "-", + "prefix": true, + "argument": { + "type": "NumericLiteral", + "start": 7803, + "end": 7804, + "loc": { + "start": { + "line": 250, + "column": 34 + }, + "end": { + "line": 250, + "column": 35 + } + }, + "extra": { + "rawValue": 1, + "raw": "1" + }, + "value": 1 + }, + "extra": { + "parenthesizedArgument": false + } + } + ] + } + } + }, + { + "type": "ExpressionStatement", + "start": 7816, + "end": 7845, + "loc": { + "start": { + "line": 251, + "column": 8 + }, + "end": { + "line": 251, + "column": 37 + } + }, + "expression": { + "type": "CallExpression", + "start": 7816, + "end": 7844, + "loc": { + "start": { + "line": 251, + "column": 8 + }, + "end": { + "line": 251, + "column": 36 + } + }, + "callee": { + "type": "MemberExpression", + "start": 7816, + "end": 7835, + "loc": { + "start": { + "line": 251, + "column": 8 + }, + "end": { + "line": 251, + "column": 27 + } + }, + "object": { + "type": "ThisExpression", + "start": 7816, + "end": 7820, + "loc": { + "start": { + "line": 251, + "column": 8 + }, + "end": { + "line": 251, + "column": 12 + } + } + }, + "property": { + "type": "Identifier", + "start": 7821, + "end": 7835, + "loc": { + "start": { + "line": 251, + "column": 13 + }, + "end": { + "line": 251, + "column": 27 + }, + "identifierName": "updateCaretPos" + }, + "name": "updateCaretPos" + }, + "computed": false + }, + "arguments": [ + { + "type": "NumericLiteral", + "start": 7836, + "end": 7837, + "loc": { + "start": { + "line": 251, + "column": 28 + }, + "end": { + "line": 251, + "column": 29 + } + }, + "extra": { + "rawValue": 1, + "raw": "1" + }, + "value": 1 + }, + { + "type": "BooleanLiteral", + "start": 7839, + "end": 7843, + "loc": { + "start": { + "line": 251, + "column": 31 + }, + "end": { + "line": 251, + "column": 35 + } + }, + "value": true + } + ] + } + } + ], + "directives": [] + } + } + ], + "directives": [] + }, + "leadingComments": [ + { + "type": "CommentBlock", + "value": "*\r\n * Emojis are made out of two characters, so we must take a custom approach to trim them.\r\n * For more info: https://mathiasbynens.be/notes/javascript-unicode\r\n ", + "start": 6909, + "end": 7089, + "loc": { + "start": { + "line": 227, + "column": 4 + }, + "end": { + "line": 230, + "column": 7 + } + } + } + ] + }, + { + "type": "ReturnStatement", + "start": 7869, + "end": 7883, + "loc": { + "start": { + "line": 255, + "column": 4 + }, + "end": { + "line": 255, + "column": 18 + } + }, + "argument": { + "type": "Identifier", + "start": 7876, + "end": 7882, + "loc": { + "start": { + "line": 255, + "column": 11 + }, + "end": { + "line": 255, + "column": 17 + }, + "identifierName": "output" + }, + "name": "output" + } + } + ], + "directives": [], + "trailingComments": null + }, + "leadingComments": [ + { + "type": "CommentBlock", + "value": "*\r\n * Removes an amount of characters at a given position\r\n * \r\n * @param {string} source The source input\r\n * @param {number} position The (cursor) position from where the characters should be removed\r\n ", + "start": 6434, + "end": 6654, + "loc": { + "start": { + "line": 211, + "column": 2 + }, + "end": { + "line": 216, + "column": 5 + } + } + } + ], + "trailingComments": [ + { + "type": "CommentBlock", + "value": "*\r\n * Determines whether the maxLength has been reached. This function is called when the maxLength option it set.\r\n * \r\n * @param {object} inputObj\r\n * @param {object} options\r\n * @param {string} updatedInput\r\n ", + "start": 7892, + "end": 8123, + "loc": { + "start": { + "line": 257, + "column": 2 + }, + "end": { + "line": 263, + "column": 5 + } + } + } + ] + }, + { + "type": "ClassMethod", + "start": 8127, + "end": 9385, + "loc": { + "start": { + "line": 264, + "column": 2 + }, + "end": { + "line": 312, + "column": 3 + } + }, + "static": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 8127, + "end": 8142, + "loc": { + "start": { + "line": 264, + "column": 2 + }, + "end": { + "line": 264, + "column": 17 + }, + "identifierName": "handleMaxLength" + }, + "name": "handleMaxLength", + "leadingComments": null + }, + "kind": "method", + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 8143, + "end": 8151, + "loc": { + "start": { + "line": 264, + "column": 18 + }, + "end": { + "line": 264, + "column": 26 + }, + "identifierName": "inputObj" + }, + "name": "inputObj" + }, + { + "type": "Identifier", + "start": 8153, + "end": 8160, + "loc": { + "start": { + "line": 264, + "column": 28 + }, + "end": { + "line": 264, + "column": 35 + }, + "identifierName": "options" + }, + "name": "options" + }, + { + "type": "Identifier", + "start": 8162, + "end": 8174, + "loc": { + "start": { + "line": 264, + "column": 37 + }, + "end": { + "line": 264, + "column": 49 + }, + "identifierName": "updatedInput" + }, + "name": "updatedInput" + } + ], + "body": { + "type": "BlockStatement", + "start": 8175, + "end": 9385, + "loc": { + "start": { + "line": 264, + "column": 50 + }, + "end": { + "line": 312, + "column": 3 + } + }, + "body": [ + { + "type": "VariableDeclaration", + "start": 8182, + "end": 8216, + "loc": { + "start": { + "line": 265, + "column": 4 + }, + "end": { + "line": 265, + "column": 38 + } + }, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 8186, + "end": 8215, + "loc": { + "start": { + "line": 265, + "column": 8 + }, + "end": { + "line": 265, + "column": 37 + } + }, + "id": { + "type": "Identifier", + "start": 8186, + "end": 8195, + "loc": { + "start": { + "line": 265, + "column": 8 + }, + "end": { + "line": 265, + "column": 17 + }, + "identifierName": "maxLength" + }, + "name": "maxLength" + }, + "init": { + "type": "MemberExpression", + "start": 8198, + "end": 8215, + "loc": { + "start": { + "line": 265, + "column": 20 + }, + "end": { + "line": 265, + "column": 37 + } + }, + "object": { + "type": "Identifier", + "start": 8198, + "end": 8205, + "loc": { + "start": { + "line": 265, + "column": 20 + }, + "end": { + "line": 265, + "column": 27 + }, + "identifierName": "options" + }, + "name": "options" + }, + "property": { + "type": "Identifier", + "start": 8206, + "end": 8215, + "loc": { + "start": { + "line": 265, + "column": 28 + }, + "end": { + "line": 265, + "column": 37 + }, + "identifierName": "maxLength" + }, + "name": "maxLength" + }, + "computed": false + } + } + ], + "kind": "let" + }, + { + "type": "VariableDeclaration", + "start": 8222, + "end": 8269, + "loc": { + "start": { + "line": 266, + "column": 4 + }, + "end": { + "line": 266, + "column": 51 + } + }, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 8226, + "end": 8268, + "loc": { + "start": { + "line": 266, + "column": 8 + }, + "end": { + "line": 266, + "column": 50 + } + }, + "id": { + "type": "Identifier", + "start": 8226, + "end": 8238, + "loc": { + "start": { + "line": 266, + "column": 8 + }, + "end": { + "line": 266, + "column": 20 + }, + "identifierName": "currentInput" + }, + "name": "currentInput" + }, + "init": { + "type": "MemberExpression", + "start": 8241, + "end": 8268, + "loc": { + "start": { + "line": 266, + "column": 23 + }, + "end": { + "line": 266, + "column": 50 + } + }, + "object": { + "type": "Identifier", + "start": 8241, + "end": 8249, + "loc": { + "start": { + "line": 266, + "column": 23 + }, + "end": { + "line": 266, + "column": 31 + }, + "identifierName": "inputObj" + }, + "name": "inputObj" + }, + "property": { + "type": "MemberExpression", + "start": 8250, + "end": 8267, + "loc": { + "start": { + "line": 266, + "column": 32 + }, + "end": { + "line": 266, + "column": 49 + } + }, + "object": { + "type": "Identifier", + "start": 8250, + "end": 8257, + "loc": { + "start": { + "line": 266, + "column": 32 + }, + "end": { + "line": 266, + "column": 39 + }, + "identifierName": "options" + }, + "name": "options" + }, + "property": { + "type": "Identifier", + "start": 8258, + "end": 8267, + "loc": { + "start": { + "line": 266, + "column": 40 + }, + "end": { + "line": 266, + "column": 49 + }, + "identifierName": "inputName" + }, + "name": "inputName" + }, + "computed": false + }, + "computed": true + } + } + ], + "kind": "let" + }, + { + "type": "VariableDeclaration", + "start": 8275, + "end": 8325, + "loc": { + "start": { + "line": 267, + "column": 4 + }, + "end": { + "line": 267, + "column": 54 + } + }, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 8279, + "end": 8324, + "loc": { + "start": { + "line": 267, + "column": 8 + }, + "end": { + "line": 267, + "column": 53 + } + }, + "id": { + "type": "Identifier", + "start": 8279, + "end": 8288, + "loc": { + "start": { + "line": 267, + "column": 8 + }, + "end": { + "line": 267, + "column": 17 + }, + "identifierName": "condition" + }, + "name": "condition" + }, + "init": { + "type": "BinaryExpression", + "start": 8291, + "end": 8324, + "loc": { + "start": { + "line": 267, + "column": 20 + }, + "end": { + "line": 267, + "column": 53 + } + }, + "left": { + "type": "MemberExpression", + "start": 8291, + "end": 8310, + "loc": { + "start": { + "line": 267, + "column": 20 + }, + "end": { + "line": 267, + "column": 39 + } + }, + "object": { + "type": "Identifier", + "start": 8291, + "end": 8303, + "loc": { + "start": { + "line": 267, + "column": 20 + }, + "end": { + "line": 267, + "column": 32 + }, + "identifierName": "currentInput" + }, + "name": "currentInput" + }, + "property": { + "type": "Identifier", + "start": 8304, + "end": 8310, + "loc": { + "start": { + "line": 267, + "column": 33 + }, + "end": { + "line": 267, + "column": 39 + }, + "identifierName": "length" + }, + "name": "length" + }, + "computed": false + }, + "operator": "===", + "right": { + "type": "Identifier", + "start": 8315, + "end": 8324, + "loc": { + "start": { + "line": 267, + "column": 44 + }, + "end": { + "line": 267, + "column": 53 + }, + "identifierName": "maxLength" + }, + "name": "maxLength" + } + } + } + ], + "kind": "let" + }, + { + "type": "IfStatement", + "start": 8335, + "end": 8553, + "loc": { + "start": { + "line": 270, + "column": 4 + }, + "end": { + "line": 278, + "column": 5 + } + }, + "test": { + "type": "BinaryExpression", + "start": 8475, + "end": 8517, + "loc": { + "start": { + "line": 275, + "column": 6 + }, + "end": { + "line": 275, + "column": 48 + } + }, + "left": { + "type": "MemberExpression", + "start": 8475, + "end": 8494, + "loc": { + "start": { + "line": 275, + "column": 6 + }, + "end": { + "line": 275, + "column": 25 + } + }, + "object": { + "type": "Identifier", + "start": 8475, + "end": 8487, + "loc": { + "start": { + "line": 275, + "column": 6 + }, + "end": { + "line": 275, + "column": 18 + }, + "identifierName": "updatedInput" + }, + "name": "updatedInput", + "leadingComments": null + }, + "property": { + "type": "Identifier", + "start": 8488, + "end": 8494, + "loc": { + "start": { + "line": 275, + "column": 19 + }, + "end": { + "line": 275, + "column": 25 + }, + "identifierName": "length" + }, + "name": "length" + }, + "computed": false, + "leadingComments": null + }, + "operator": "<=", + "right": { + "type": "MemberExpression", + "start": 8498, + "end": 8517, + "loc": { + "start": { + "line": 275, + "column": 29 + }, + "end": { + "line": 275, + "column": 48 + } + }, + "object": { + "type": "Identifier", + "start": 8498, + "end": 8510, + "loc": { + "start": { + "line": 275, + "column": 29 + }, + "end": { + "line": 275, + "column": 41 + }, + "identifierName": "currentInput" + }, + "name": "currentInput" + }, + "property": { + "type": "Identifier", + "start": 8511, + "end": 8517, + "loc": { + "start": { + "line": 275, + "column": 42 + }, + "end": { + "line": 275, + "column": 48 + }, + "identifierName": "length" + }, + "name": "length" + }, + "computed": false + }, + "leadingComments": [ + { + "type": "CommentBlock", + "value": "*\r\n * If pressing this button won't add more characters\r\n * We exit out of this limiter function\r\n ", + "start": 8346, + "end": 8467, + "loc": { + "start": { + "line": 271, + "column": 6 + }, + "end": { + "line": 274, + "column": 9 + } + } + } + ] + }, + "consequent": { + "type": "BlockStatement", + "start": 8524, + "end": 8553, + "loc": { + "start": { + "line": 276, + "column": 5 + }, + "end": { + "line": 278, + "column": 5 + } + }, + "body": [ + { + "type": "ReturnStatement", + "start": 8533, + "end": 8546, + "loc": { + "start": { + "line": 277, + "column": 6 + }, + "end": { + "line": 277, + "column": 19 + } + }, + "argument": { + "type": "BooleanLiteral", + "start": 8540, + "end": 8545, + "loc": { + "start": { + "line": 277, + "column": 13 + }, + "end": { + "line": 277, + "column": 18 + } + }, + "value": false + } + } + ], + "directives": [] + }, + "alternate": null + }, + { + "type": "IfStatement", + "start": 8561, + "end": 8983, + "loc": { + "start": { + "line": 280, + "column": 4 + }, + "end": { + "line": 295, + "column": 5 + } + }, + "test": { + "type": "CallExpression", + "start": 8564, + "end": 8591, + "loc": { + "start": { + "line": 280, + "column": 7 + }, + "end": { + "line": 280, + "column": 34 + } + }, + "callee": { + "type": "MemberExpression", + "start": 8564, + "end": 8580, + "loc": { + "start": { + "line": 280, + "column": 7 + }, + "end": { + "line": 280, + "column": 23 + } + }, + "object": { + "type": "Identifier", + "start": 8564, + "end": 8570, + "loc": { + "start": { + "line": 280, + "column": 7 + }, + "end": { + "line": 280, + "column": 13 + }, + "identifierName": "Number" + }, + "name": "Number" + }, + "property": { + "type": "Identifier", + "start": 8571, + "end": 8580, + "loc": { + "start": { + "line": 280, + "column": 14 + }, + "end": { + "line": 280, + "column": 23 + }, + "identifierName": "isInteger" + }, + "name": "isInteger" + }, + "computed": false + }, + "arguments": [ + { + "type": "Identifier", + "start": 8581, + "end": 8590, + "loc": { + "start": { + "line": 280, + "column": 24 + }, + "end": { + "line": 280, + "column": 33 + }, + "identifierName": "maxLength" + }, + "name": "maxLength" + } + ] + }, + "consequent": { + "type": "BlockStatement", + "start": 8592, + "end": 8983, + "loc": { + "start": { + "line": 280, + "column": 35 + }, + "end": { + "line": 295, + "column": 5 + } + }, + "body": [ + { + "type": "IfStatement", + "start": 8601, + "end": 8689, + "loc": { + "start": { + "line": 281, + "column": 6 + }, + "end": { + "line": 283, + "column": 7 + } + }, + "test": { + "type": "MemberExpression", + "start": 8604, + "end": 8617, + "loc": { + "start": { + "line": 281, + "column": 9 + }, + "end": { + "line": 281, + "column": 22 + } + }, + "object": { + "type": "Identifier", + "start": 8604, + "end": 8611, + "loc": { + "start": { + "line": 281, + "column": 9 + }, + "end": { + "line": 281, + "column": 16 + }, + "identifierName": "options" + }, + "name": "options" + }, + "property": { + "type": "Identifier", + "start": 8612, + "end": 8617, + "loc": { + "start": { + "line": 281, + "column": 17 + }, + "end": { + "line": 281, + "column": 22 + }, + "identifierName": "debug" + }, + "name": "debug" + }, + "computed": false + }, + "consequent": { + "type": "BlockStatement", + "start": 8618, + "end": 8689, + "loc": { + "start": { + "line": 281, + "column": 23 + }, + "end": { + "line": 283, + "column": 7 + } + }, + "body": [ + { + "type": "ExpressionStatement", + "start": 8629, + "end": 8680, + "loc": { + "start": { + "line": 282, + "column": 8 + }, + "end": { + "line": 282, + "column": 59 + } + }, + "expression": { + "type": "CallExpression", + "start": 8629, + "end": 8679, + "loc": { + "start": { + "line": 282, + "column": 8 + }, + "end": { + "line": 282, + "column": 58 + } + }, + "callee": { + "type": "MemberExpression", + "start": 8629, + "end": 8640, + "loc": { + "start": { + "line": 282, + "column": 8 + }, + "end": { + "line": 282, + "column": 19 + } + }, + "object": { + "type": "Identifier", + "start": 8629, + "end": 8636, + "loc": { + "start": { + "line": 282, + "column": 8 + }, + "end": { + "line": 282, + "column": 15 + }, + "identifierName": "console" + }, + "name": "console" + }, + "property": { + "type": "Identifier", + "start": 8637, + "end": 8640, + "loc": { + "start": { + "line": 282, + "column": 16 + }, + "end": { + "line": 282, + "column": 19 + }, + "identifierName": "log" + }, + "name": "log" + }, + "computed": false + }, + "arguments": [ + { + "type": "StringLiteral", + "start": 8641, + "end": 8667, + "loc": { + "start": { + "line": 282, + "column": 20 + }, + "end": { + "line": 282, + "column": 46 + } + }, + "extra": { + "rawValue": "maxLength (num) reached:", + "raw": "\"maxLength (num) reached:\"" + }, + "value": "maxLength (num) reached:" + }, + { + "type": "Identifier", + "start": 8669, + "end": 8678, + "loc": { + "start": { + "line": 282, + "column": 48 + }, + "end": { + "line": 282, + "column": 57 + }, + "identifierName": "condition" + }, + "name": "condition" + } + ] + } + } + ], + "directives": [] + }, + "alternate": null + }, + { + "type": "IfStatement", + "start": 8699, + "end": 8976, + "loc": { + "start": { + "line": 285, + "column": 6 + }, + "end": { + "line": 294, + "column": 7 + } + }, + "test": { + "type": "Identifier", + "start": 8702, + "end": 8711, + "loc": { + "start": { + "line": 285, + "column": 9 + }, + "end": { + "line": 285, + "column": 18 + }, + "identifierName": "condition" + }, + "name": "condition" + }, + "consequent": { + "type": "BlockStatement", + "start": 8712, + "end": 8897, + "loc": { + "start": { + "line": 285, + "column": 19 + }, + "end": { + "line": 291, + "column": 7 + } + }, + "body": [ + { + "type": "ExpressionStatement", + "start": 8837, + "end": 8866, + "loc": { + "start": { + "line": 289, + "column": 8 + }, + "end": { + "line": 289, + "column": 37 + } + }, + "expression": { + "type": "AssignmentExpression", + "start": 8837, + "end": 8865, + "loc": { + "start": { + "line": 289, + "column": 8 + }, + "end": { + "line": 289, + "column": 36 + } + }, + "operator": "=", + "left": { + "type": "MemberExpression", + "start": 8837, + "end": 8858, + "loc": { + "start": { + "line": 289, + "column": 8 + }, + "end": { + "line": 289, + "column": 29 + } + }, + "object": { + "type": "ThisExpression", + "start": 8837, + "end": 8841, + "loc": { + "start": { + "line": 289, + "column": 8 + }, + "end": { + "line": 289, + "column": 12 + } + }, + "leadingComments": null + }, + "property": { + "type": "Identifier", + "start": 8842, + "end": 8858, + "loc": { + "start": { + "line": 289, + "column": 13 + }, + "end": { + "line": 289, + "column": 29 + }, + "identifierName": "maxLengthReached" + }, + "name": "maxLengthReached" + }, + "computed": false, + "leadingComments": null + }, + "right": { + "type": "BooleanLiteral", + "start": 8861, + "end": 8865, + "loc": { + "start": { + "line": 289, + "column": 32 + }, + "end": { + "line": 289, + "column": 36 + } + }, + "value": true + }, + "leadingComments": null + }, + "leadingComments": [ + { + "type": "CommentBlock", + "value": "*\r\n * @type {boolean} Boolean value that shows whether maxLength has been reached\r\n ", + "start": 8723, + "end": 8827, + "loc": { + "start": { + "line": 286, + "column": 8 + }, + "end": { + "line": 288, + "column": 11 + } + } + } + ] + }, + { + "type": "ReturnStatement", + "start": 8876, + "end": 8888, + "loc": { + "start": { + "line": 290, + "column": 8 + }, + "end": { + "line": 290, + "column": 20 + } + }, + "argument": { + "type": "BooleanLiteral", + "start": 8883, + "end": 8887, + "loc": { + "start": { + "line": 290, + "column": 15 + }, + "end": { + "line": 290, + "column": 19 + } + }, + "value": true + } + } + ], + "directives": [] + }, + "alternate": { + "type": "BlockStatement", + "start": 8903, + "end": 8976, + "loc": { + "start": { + "line": 291, + "column": 13 + }, + "end": { + "line": 294, + "column": 7 + } + }, + "body": [ + { + "type": "ExpressionStatement", + "start": 8914, + "end": 8944, + "loc": { + "start": { + "line": 292, + "column": 8 + }, + "end": { + "line": 292, + "column": 38 + } + }, + "expression": { + "type": "AssignmentExpression", + "start": 8914, + "end": 8943, + "loc": { + "start": { + "line": 292, + "column": 8 + }, + "end": { + "line": 292, + "column": 37 + } + }, + "operator": "=", + "left": { + "type": "MemberExpression", + "start": 8914, + "end": 8935, + "loc": { + "start": { + "line": 292, + "column": 8 + }, + "end": { + "line": 292, + "column": 29 + } + }, + "object": { + "type": "ThisExpression", + "start": 8914, + "end": 8918, + "loc": { + "start": { + "line": 292, + "column": 8 + }, + "end": { + "line": 292, + "column": 12 + } + } + }, + "property": { + "type": "Identifier", + "start": 8919, + "end": 8935, + "loc": { + "start": { + "line": 292, + "column": 13 + }, + "end": { + "line": 292, + "column": 29 + }, + "identifierName": "maxLengthReached" + }, + "name": "maxLengthReached" + }, + "computed": false + }, + "right": { + "type": "BooleanLiteral", + "start": 8938, + "end": 8943, + "loc": { + "start": { + "line": 292, + "column": 32 + }, + "end": { + "line": 292, + "column": 37 + } + }, + "value": false + } + } + }, + { + "type": "ReturnStatement", + "start": 8954, + "end": 8967, + "loc": { + "start": { + "line": 293, + "column": 8 + }, + "end": { + "line": 293, + "column": 21 + } + }, + "argument": { + "type": "BooleanLiteral", + "start": 8961, + "end": 8966, + "loc": { + "start": { + "line": 293, + "column": 15 + }, + "end": { + "line": 293, + "column": 20 + } + }, + "value": false + } + } + ], + "directives": [] + } + } + ], + "directives": [] + }, + "alternate": null + }, + { + "type": "IfStatement", + "start": 8991, + "end": 9380, + "loc": { + "start": { + "line": 297, + "column": 4 + }, + "end": { + "line": 311, + "column": 5 + } + }, + "test": { + "type": "BinaryExpression", + "start": 8994, + "end": 9023, + "loc": { + "start": { + "line": 297, + "column": 7 + }, + "end": { + "line": 297, + "column": 36 + } + }, + "left": { + "type": "UnaryExpression", + "start": 8994, + "end": 9010, + "loc": { + "start": { + "line": 297, + "column": 7 + }, + "end": { + "line": 297, + "column": 23 + } + }, + "operator": "typeof", + "prefix": true, + "argument": { + "type": "Identifier", + "start": 9001, + "end": 9010, + "loc": { + "start": { + "line": 297, + "column": 14 + }, + "end": { + "line": 297, + "column": 23 + }, + "identifierName": "maxLength" + }, + "name": "maxLength" + }, + "extra": { + "parenthesizedArgument": false + } + }, + "operator": "===", + "right": { + "type": "StringLiteral", + "start": 9015, + "end": 9023, + "loc": { + "start": { + "line": 297, + "column": 28 + }, + "end": { + "line": 297, + "column": 36 + } + }, + "extra": { + "rawValue": "object", + "raw": "\"object\"" + }, + "value": "object" + } + }, + "consequent": { + "type": "BlockStatement", + "start": 9024, + "end": 9380, + "loc": { + "start": { + "line": 297, + "column": 37 + }, + "end": { + "line": 311, + "column": 5 + } + }, + "body": [ + { + "type": "VariableDeclaration", + "start": 9033, + "end": 9102, + "loc": { + "start": { + "line": 298, + "column": 6 + }, + "end": { + "line": 298, + "column": 75 + } + }, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 9037, + "end": 9101, + "loc": { + "start": { + "line": 298, + "column": 10 + }, + "end": { + "line": 298, + "column": 74 + } + }, + "id": { + "type": "Identifier", + "start": 9037, + "end": 9046, + "loc": { + "start": { + "line": 298, + "column": 10 + }, + "end": { + "line": 298, + "column": 19 + }, + "identifierName": "condition" + }, + "name": "condition" + }, + "init": { + "type": "BinaryExpression", + "start": 9049, + "end": 9101, + "loc": { + "start": { + "line": 298, + "column": 22 + }, + "end": { + "line": 298, + "column": 74 + } + }, + "left": { + "type": "MemberExpression", + "start": 9049, + "end": 9068, + "loc": { + "start": { + "line": 298, + "column": 22 + }, + "end": { + "line": 298, + "column": 41 + } + }, + "object": { + "type": "Identifier", + "start": 9049, + "end": 9061, + "loc": { + "start": { + "line": 298, + "column": 22 + }, + "end": { + "line": 298, + "column": 34 + }, + "identifierName": "currentInput" + }, + "name": "currentInput" + }, + "property": { + "type": "Identifier", + "start": 9062, + "end": 9068, + "loc": { + "start": { + "line": 298, + "column": 35 + }, + "end": { + "line": 298, + "column": 41 + }, + "identifierName": "length" + }, + "name": "length" + }, + "computed": false + }, + "operator": "===", + "right": { + "type": "MemberExpression", + "start": 9073, + "end": 9101, + "loc": { + "start": { + "line": 298, + "column": 46 + }, + "end": { + "line": 298, + "column": 74 + } + }, + "object": { + "type": "Identifier", + "start": 9073, + "end": 9082, + "loc": { + "start": { + "line": 298, + "column": 46 + }, + "end": { + "line": 298, + "column": 55 + }, + "identifierName": "maxLength" + }, + "name": "maxLength" + }, + "property": { + "type": "MemberExpression", + "start": 9083, + "end": 9100, + "loc": { + "start": { + "line": 298, + "column": 56 + }, + "end": { + "line": 298, + "column": 73 + } + }, + "object": { + "type": "Identifier", + "start": 9083, + "end": 9090, + "loc": { + "start": { + "line": 298, + "column": 56 + }, + "end": { + "line": 298, + "column": 63 + }, + "identifierName": "options" + }, + "name": "options" + }, + "property": { + "type": "Identifier", + "start": 9091, + "end": 9100, + "loc": { + "start": { + "line": 298, + "column": 64 + }, + "end": { + "line": 298, + "column": 73 + }, + "identifierName": "inputName" + }, + "name": "inputName" + }, + "computed": false + }, + "computed": true + } + } + } + ], + "kind": "let" + }, + { + "type": "IfStatement", + "start": 9112, + "end": 9200, + "loc": { + "start": { + "line": 300, + "column": 6 + }, + "end": { + "line": 302, + "column": 7 + } + }, + "test": { + "type": "MemberExpression", + "start": 9115, + "end": 9128, + "loc": { + "start": { + "line": 300, + "column": 9 + }, + "end": { + "line": 300, + "column": 22 + } + }, + "object": { + "type": "Identifier", + "start": 9115, + "end": 9122, + "loc": { + "start": { + "line": 300, + "column": 9 + }, + "end": { + "line": 300, + "column": 16 + }, + "identifierName": "options" + }, + "name": "options" + }, + "property": { + "type": "Identifier", + "start": 9123, + "end": 9128, + "loc": { + "start": { + "line": 300, + "column": 17 + }, + "end": { + "line": 300, + "column": 22 + }, + "identifierName": "debug" + }, + "name": "debug" + }, + "computed": false + }, + "consequent": { + "type": "BlockStatement", + "start": 9129, + "end": 9200, + "loc": { + "start": { + "line": 300, + "column": 23 + }, + "end": { + "line": 302, + "column": 7 + } + }, + "body": [ + { + "type": "ExpressionStatement", + "start": 9140, + "end": 9191, + "loc": { + "start": { + "line": 301, + "column": 8 + }, + "end": { + "line": 301, + "column": 59 + } + }, + "expression": { + "type": "CallExpression", + "start": 9140, + "end": 9190, + "loc": { + "start": { + "line": 301, + "column": 8 + }, + "end": { + "line": 301, + "column": 58 + } + }, + "callee": { + "type": "MemberExpression", + "start": 9140, + "end": 9151, + "loc": { + "start": { + "line": 301, + "column": 8 + }, + "end": { + "line": 301, + "column": 19 + } + }, + "object": { + "type": "Identifier", + "start": 9140, + "end": 9147, + "loc": { + "start": { + "line": 301, + "column": 8 + }, + "end": { + "line": 301, + "column": 15 + }, + "identifierName": "console" + }, + "name": "console" + }, + "property": { + "type": "Identifier", + "start": 9148, + "end": 9151, + "loc": { + "start": { + "line": 301, + "column": 16 + }, + "end": { + "line": 301, + "column": 19 + }, + "identifierName": "log" + }, + "name": "log" + }, + "computed": false + }, + "arguments": [ + { + "type": "StringLiteral", + "start": 9152, + "end": 9178, + "loc": { + "start": { + "line": 301, + "column": 20 + }, + "end": { + "line": 301, + "column": 46 + } + }, + "extra": { + "rawValue": "maxLength (obj) reached:", + "raw": "\"maxLength (obj) reached:\"" + }, + "value": "maxLength (obj) reached:" + }, + { + "type": "Identifier", + "start": 9180, + "end": 9189, + "loc": { + "start": { + "line": 301, + "column": 48 + }, + "end": { + "line": 301, + "column": 57 + }, + "identifierName": "condition" + }, + "name": "condition" + } + ] + } + } + ], + "directives": [] + }, + "alternate": null + }, + { + "type": "IfStatement", + "start": 9210, + "end": 9373, + "loc": { + "start": { + "line": 304, + "column": 6 + }, + "end": { + "line": 310, + "column": 7 + } + }, + "test": { + "type": "Identifier", + "start": 9213, + "end": 9222, + "loc": { + "start": { + "line": 304, + "column": 9 + }, + "end": { + "line": 304, + "column": 18 + }, + "identifierName": "condition" + }, + "name": "condition" + }, + "consequent": { + "type": "BlockStatement", + "start": 9223, + "end": 9294, + "loc": { + "start": { + "line": 304, + "column": 19 + }, + "end": { + "line": 307, + "column": 7 + } + }, + "body": [ + { + "type": "ExpressionStatement", + "start": 9234, + "end": 9263, + "loc": { + "start": { + "line": 305, + "column": 8 + }, + "end": { + "line": 305, + "column": 37 + } + }, + "expression": { + "type": "AssignmentExpression", + "start": 9234, + "end": 9262, + "loc": { + "start": { + "line": 305, + "column": 8 + }, + "end": { + "line": 305, + "column": 36 + } + }, + "operator": "=", + "left": { + "type": "MemberExpression", + "start": 9234, + "end": 9255, + "loc": { + "start": { + "line": 305, + "column": 8 + }, + "end": { + "line": 305, + "column": 29 + } + }, + "object": { + "type": "ThisExpression", + "start": 9234, + "end": 9238, + "loc": { + "start": { + "line": 305, + "column": 8 + }, + "end": { + "line": 305, + "column": 12 + } + } + }, + "property": { + "type": "Identifier", + "start": 9239, + "end": 9255, + "loc": { + "start": { + "line": 305, + "column": 13 + }, + "end": { + "line": 305, + "column": 29 + }, + "identifierName": "maxLengthReached" + }, + "name": "maxLengthReached" + }, + "computed": false + }, + "right": { + "type": "BooleanLiteral", + "start": 9258, + "end": 9262, + "loc": { + "start": { + "line": 305, + "column": 32 + }, + "end": { + "line": 305, + "column": 36 + } + }, + "value": true + } + } + }, + { + "type": "ReturnStatement", + "start": 9273, + "end": 9285, + "loc": { + "start": { + "line": 306, + "column": 8 + }, + "end": { + "line": 306, + "column": 20 + } + }, + "argument": { + "type": "BooleanLiteral", + "start": 9280, + "end": 9284, + "loc": { + "start": { + "line": 306, + "column": 15 + }, + "end": { + "line": 306, + "column": 19 + } + }, + "value": true + } + } + ], + "directives": [] + }, + "alternate": { + "type": "BlockStatement", + "start": 9300, + "end": 9373, + "loc": { + "start": { + "line": 307, + "column": 13 + }, + "end": { + "line": 310, + "column": 7 + } + }, + "body": [ + { + "type": "ExpressionStatement", + "start": 9311, + "end": 9341, + "loc": { + "start": { + "line": 308, + "column": 8 + }, + "end": { + "line": 308, + "column": 38 + } + }, + "expression": { + "type": "AssignmentExpression", + "start": 9311, + "end": 9340, + "loc": { + "start": { + "line": 308, + "column": 8 + }, + "end": { + "line": 308, + "column": 37 + } + }, + "operator": "=", + "left": { + "type": "MemberExpression", + "start": 9311, + "end": 9332, + "loc": { + "start": { + "line": 308, + "column": 8 + }, + "end": { + "line": 308, + "column": 29 + } + }, + "object": { + "type": "ThisExpression", + "start": 9311, + "end": 9315, + "loc": { + "start": { + "line": 308, + "column": 8 + }, + "end": { + "line": 308, + "column": 12 + } + } + }, + "property": { + "type": "Identifier", + "start": 9316, + "end": 9332, + "loc": { + "start": { + "line": 308, + "column": 13 + }, + "end": { + "line": 308, + "column": 29 + }, + "identifierName": "maxLengthReached" + }, + "name": "maxLengthReached" + }, + "computed": false + }, + "right": { + "type": "BooleanLiteral", + "start": 9335, + "end": 9340, + "loc": { + "start": { + "line": 308, + "column": 32 + }, + "end": { + "line": 308, + "column": 37 + } + }, + "value": false + } + } + }, + { + "type": "ReturnStatement", + "start": 9351, + "end": 9364, + "loc": { + "start": { + "line": 309, + "column": 8 + }, + "end": { + "line": 309, + "column": 21 + } + }, + "argument": { + "type": "BooleanLiteral", + "start": 9358, + "end": 9363, + "loc": { + "start": { + "line": 309, + "column": 15 + }, + "end": { + "line": 309, + "column": 20 + } + }, + "value": false + } + } + ], + "directives": [] + } + } + ], + "directives": [] + }, + "alternate": null + } + ], + "directives": [], + "trailingComments": null + }, + "leadingComments": [ + { + "type": "CommentBlock", + "value": "*\r\n * Determines whether the maxLength has been reached. This function is called when the maxLength option it set.\r\n * \r\n * @param {object} inputObj\r\n * @param {object} options\r\n * @param {string} updatedInput\r\n ", + "start": 7892, + "end": 8123, + "loc": { + "start": { + "line": 257, + "column": 2 + }, + "end": { + "line": 263, + "column": 5 + } + } + } + ], + "trailingComments": [ + { + "type": "CommentBlock", + "value": "*\r\n * Gets the current value of maxLengthReached\r\n ", + "start": 9391, + "end": 9450, + "loc": { + "start": { + "line": 314, + "column": 2 + }, + "end": { + "line": 316, + "column": 5 + } + } + } + ] + }, + { + "type": "ClassProperty", + "start": 9454, + "end": 9531, + "loc": { + "start": { + "line": 317, + "column": 2 + }, + "end": { + "line": 319, + "column": 3 + } + }, + "static": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 9454, + "end": 9472, + "loc": { + "start": { + "line": 317, + "column": 2 + }, + "end": { + "line": 317, + "column": 20 + }, + "identifierName": "isMaxLengthReached" + }, + "name": "isMaxLengthReached", + "leadingComments": null + }, + "value": { + "type": "ArrowFunctionExpression", + "start": 9475, + "end": 9531, + "loc": { + "start": { + "line": 317, + "column": 23 + }, + "end": { + "line": 319, + "column": 3 + } + }, + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [], + "body": { + "type": "BlockStatement", + "start": 9481, + "end": 9531, + "loc": { + "start": { + "line": 317, + "column": 29 + }, + "end": { + "line": 319, + "column": 3 + } + }, + "body": [ + { + "type": "ReturnStatement", + "start": 9488, + "end": 9526, + "loc": { + "start": { + "line": 318, + "column": 4 + }, + "end": { + "line": 318, + "column": 42 + } + }, + "argument": { + "type": "CallExpression", + "start": 9495, + "end": 9525, + "loc": { + "start": { + "line": 318, + "column": 11 + }, + "end": { + "line": 318, + "column": 41 + } + }, + "callee": { + "type": "Identifier", + "start": 9495, + "end": 9502, + "loc": { + "start": { + "line": 318, + "column": 11 + }, + "end": { + "line": 318, + "column": 18 + }, + "identifierName": "Boolean" + }, + "name": "Boolean" + }, + "arguments": [ + { + "type": "MemberExpression", + "start": 9503, + "end": 9524, + "loc": { + "start": { + "line": 318, + "column": 19 + }, + "end": { + "line": 318, + "column": 40 + } + }, + "object": { + "type": "ThisExpression", + "start": 9503, + "end": 9507, + "loc": { + "start": { + "line": 318, + "column": 19 + }, + "end": { + "line": 318, + "column": 23 + } + } + }, + "property": { + "type": "Identifier", + "start": 9508, + "end": 9524, + "loc": { + "start": { + "line": 318, + "column": 24 + }, + "end": { + "line": 318, + "column": 40 + }, + "identifierName": "maxLengthReached" + }, + "name": "maxLengthReached" + }, + "computed": false + } + ] + } + } + ], + "directives": [], + "trailingComments": null + }, + "trailingComments": null + }, + "leadingComments": [ + { + "type": "CommentBlock", + "value": "*\r\n * Gets the current value of maxLengthReached\r\n ", + "start": 9391, + "end": 9450, + "loc": { + "start": { + "line": 314, + "column": 2 + }, + "end": { + "line": 316, + "column": 5 + } + } + } + ], + "trailingComments": [ + { + "type": "CommentBlock", + "value": "*\r\n * Transforms an arbitrary string to camelCase\r\n * \r\n * @param {string} string The string to transform.\r\n ", + "start": 9537, + "end": 9659, + "loc": { + "start": { + "line": 321, + "column": 2 + }, + "end": { + "line": 325, + "column": 5 + } + } + } + ] + }, + { + "type": "ClassProperty", + "start": 9663, + "end": 9827, + "loc": { + "start": { + "line": 326, + "column": 2 + }, + "end": { + "line": 328, + "column": 4 + } + }, + "static": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 9663, + "end": 9672, + "loc": { + "start": { + "line": 326, + "column": 2 + }, + "end": { + "line": 326, + "column": 11 + }, + "identifierName": "camelCase" + }, + "name": "camelCase", + "leadingComments": null + }, + "value": { + "type": "ArrowFunctionExpression", + "start": 9675, + "end": 9826, + "loc": { + "start": { + "line": 326, + "column": 14 + }, + "end": { + "line": 328, + "column": 3 + } + }, + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 9676, + "end": 9682, + "loc": { + "start": { + "line": 326, + "column": 15 + }, + "end": { + "line": 326, + "column": 21 + }, + "identifierName": "string" + }, + "name": "string" + } + ], + "body": { + "type": "BlockStatement", + "start": 9687, + "end": 9826, + "loc": { + "start": { + "line": 326, + "column": 26 + }, + "end": { + "line": 328, + "column": 3 + } + }, + "body": [ + { + "type": "ReturnStatement", + "start": 9694, + "end": 9821, + "loc": { + "start": { + "line": 327, + "column": 4 + }, + "end": { + "line": 327, + "column": 131 + } + }, + "argument": { + "type": "CallExpression", + "start": 9701, + "end": 9820, + "loc": { + "start": { + "line": 327, + "column": 11 + }, + "end": { + "line": 327, + "column": 130 + } + }, + "callee": { + "type": "MemberExpression", + "start": 9701, + "end": 9754, + "loc": { + "start": { + "line": 327, + "column": 11 + }, + "end": { + "line": 327, + "column": 64 + } + }, + "object": { + "type": "CallExpression", + "start": 9701, + "end": 9747, + "loc": { + "start": { + "line": 327, + "column": 11 + }, + "end": { + "line": 327, + "column": 57 + } + }, + "callee": { + "type": "MemberExpression", + "start": 9701, + "end": 9734, + "loc": { + "start": { + "line": 327, + "column": 11 + }, + "end": { + "line": 327, + "column": 44 + } + }, + "object": { + "type": "CallExpression", + "start": 9701, + "end": 9728, + "loc": { + "start": { + "line": 327, + "column": 11 + }, + "end": { + "line": 327, + "column": 38 + } + }, + "callee": { + "type": "MemberExpression", + "start": 9701, + "end": 9726, + "loc": { + "start": { + "line": 327, + "column": 11 + }, + "end": { + "line": 327, + "column": 36 + } + }, + "object": { + "type": "CallExpression", + "start": 9701, + "end": 9721, + "loc": { + "start": { + "line": 327, + "column": 11 + }, + "end": { + "line": 327, + "column": 31 + } + }, + "callee": { + "type": "MemberExpression", + "start": 9701, + "end": 9719, + "loc": { + "start": { + "line": 327, + "column": 11 + }, + "end": { + "line": 327, + "column": 29 + } + }, + "object": { + "type": "Identifier", + "start": 9701, + "end": 9707, + "loc": { + "start": { + "line": 327, + "column": 11 + }, + "end": { + "line": 327, + "column": 17 + }, + "identifierName": "string" + }, + "name": "string" + }, + "property": { + "type": "Identifier", + "start": 9708, + "end": 9719, + "loc": { + "start": { + "line": 327, + "column": 18 + }, + "end": { + "line": 327, + "column": 29 + }, + "identifierName": "toLowerCase" + }, + "name": "toLowerCase" + }, + "computed": false + }, + "arguments": [] + }, + "property": { + "type": "Identifier", + "start": 9722, + "end": 9726, + "loc": { + "start": { + "line": 327, + "column": 32 + }, + "end": { + "line": 327, + "column": 36 + }, + "identifierName": "trim" + }, + "name": "trim" + }, + "computed": false + }, + "arguments": [] + }, + "property": { + "type": "Identifier", + "start": 9729, + "end": 9734, + "loc": { + "start": { + "line": 327, + "column": 39 + }, + "end": { + "line": 327, + "column": 44 + }, + "identifierName": "split" + }, + "name": "split" + }, + "computed": false + }, + "arguments": [ + { + "type": "RegExpLiteral", + "start": 9735, + "end": 9746, + "loc": { + "start": { + "line": 327, + "column": 45 + }, + "end": { + "line": 327, + "column": 56 + } + }, + "extra": { + "raw": "/[.\\-_\\s]/g" + }, + "pattern": "[.\\-_\\s]", + "flags": "g" + } + ] + }, + "property": { + "type": "Identifier", + "start": 9748, + "end": 9754, + "loc": { + "start": { + "line": 327, + "column": 58 + }, + "end": { + "line": 327, + "column": 64 + }, + "identifierName": "reduce" + }, + "name": "reduce" + }, + "computed": false + }, + "arguments": [ + { + "type": "ArrowFunctionExpression", + "start": 9755, + "end": 9819, + "loc": { + "start": { + "line": 327, + "column": 65 + }, + "end": { + "line": 327, + "column": 129 + } + }, + "id": null, + "generator": false, + "expression": true, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 9756, + "end": 9762, + "loc": { + "start": { + "line": 327, + "column": 66 + }, + "end": { + "line": 327, + "column": 72 + }, + "identifierName": "string" + }, + "name": "string" + }, + { + "type": "Identifier", + "start": 9764, + "end": 9768, + "loc": { + "start": { + "line": 327, + "column": 74 + }, + "end": { + "line": 327, + "column": 78 + }, + "identifierName": "word" + }, + "name": "word" + } + ], + "body": { + "type": "BinaryExpression", + "start": 9773, + "end": 9819, + "loc": { + "start": { + "line": 327, + "column": 83 + }, + "end": { + "line": 327, + "column": 129 + } + }, + "left": { + "type": "BinaryExpression", + "start": 9773, + "end": 9803, + "loc": { + "start": { + "line": 327, + "column": 83 + }, + "end": { + "line": 327, + "column": 113 + } + }, + "left": { + "type": "Identifier", + "start": 9773, + "end": 9779, + "loc": { + "start": { + "line": 327, + "column": 83 + }, + "end": { + "line": 327, + "column": 89 + }, + "identifierName": "string" + }, + "name": "string" + }, + "operator": "+", + "right": { + "type": "CallExpression", + "start": 9782, + "end": 9803, + "loc": { + "start": { + "line": 327, + "column": 92 + }, + "end": { + "line": 327, + "column": 113 + } + }, + "callee": { + "type": "MemberExpression", + "start": 9782, + "end": 9801, + "loc": { + "start": { + "line": 327, + "column": 92 + }, + "end": { + "line": 327, + "column": 111 + } + }, + "object": { + "type": "MemberExpression", + "start": 9782, + "end": 9789, + "loc": { + "start": { + "line": 327, + "column": 92 + }, + "end": { + "line": 327, + "column": 99 + } + }, + "object": { + "type": "Identifier", + "start": 9782, + "end": 9786, + "loc": { + "start": { + "line": 327, + "column": 92 + }, + "end": { + "line": 327, + "column": 96 + }, + "identifierName": "word" + }, + "name": "word" + }, + "property": { + "type": "NumericLiteral", + "start": 9787, + "end": 9788, + "loc": { + "start": { + "line": 327, + "column": 97 + }, + "end": { + "line": 327, + "column": 98 + } + }, + "extra": { + "rawValue": 0, + "raw": "0" + }, + "value": 0 + }, + "computed": true + }, + "property": { + "type": "Identifier", + "start": 9790, + "end": 9801, + "loc": { + "start": { + "line": 327, + "column": 100 + }, + "end": { + "line": 327, + "column": 111 + }, + "identifierName": "toUpperCase" + }, + "name": "toUpperCase" + }, + "computed": false + }, + "arguments": [] + } + }, + "operator": "+", + "right": { + "type": "CallExpression", + "start": 9806, + "end": 9819, + "loc": { + "start": { + "line": 327, + "column": 116 + }, + "end": { + "line": 327, + "column": 129 + } + }, + "callee": { + "type": "MemberExpression", + "start": 9806, + "end": 9816, + "loc": { + "start": { + "line": 327, + "column": 116 + }, + "end": { + "line": 327, + "column": 126 + } + }, + "object": { + "type": "Identifier", + "start": 9806, + "end": 9810, + "loc": { + "start": { + "line": 327, + "column": 116 + }, + "end": { + "line": 327, + "column": 120 + }, + "identifierName": "word" + }, + "name": "word" + }, + "property": { + "type": "Identifier", + "start": 9811, + "end": 9816, + "loc": { + "start": { + "line": 327, + "column": 121 + }, + "end": { + "line": 327, + "column": 126 + }, + "identifierName": "slice" + }, + "name": "slice" + }, + "computed": false + }, + "arguments": [ + { + "type": "NumericLiteral", + "start": 9817, + "end": 9818, + "loc": { + "start": { + "line": 327, + "column": 127 + }, + "end": { + "line": 327, + "column": 128 + } + }, + "extra": { + "rawValue": 1, + "raw": "1" + }, + "value": 1 + } + ] + } + } + } + ] + } + } + ], + "directives": [] + } + }, + "leadingComments": [ + { + "type": "CommentBlock", + "value": "*\r\n * Transforms an arbitrary string to camelCase\r\n * \r\n * @param {string} string The string to transform.\r\n ", + "start": 9537, + "end": 9659, + "loc": { + "start": { + "line": 321, + "column": 2 + }, + "end": { + "line": 325, + "column": 5 + } + } + } + ], + "trailingComments": [ + { + "type": "CommentBlock", + "value": "*\r\n * Counts the number of duplicates in a given array\r\n * \r\n * @param {Array} array The haystack to search in\r\n * @param {string} value The needle to search for\r\n ", + "start": 9833, + "end": 10013, + "loc": { + "start": { + "line": 330, + "column": 2 + }, + "end": { + "line": 335, + "column": 5 + } + } + } + ] + }, + { + "type": "ClassProperty", + "start": 10017, + "end": 10114, + "loc": { + "start": { + "line": 336, + "column": 2 + }, + "end": { + "line": 338, + "column": 3 + } + }, + "static": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 10017, + "end": 10029, + "loc": { + "start": { + "line": 336, + "column": 2 + }, + "end": { + "line": 336, + "column": 14 + }, + "identifierName": "countInArray" + }, + "name": "countInArray", + "leadingComments": null + }, + "value": { + "type": "ArrowFunctionExpression", + "start": 10032, + "end": 10114, + "loc": { + "start": { + "line": 336, + "column": 17 + }, + "end": { + "line": 338, + "column": 3 + } + }, + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 10033, + "end": 10038, + "loc": { + "start": { + "line": 336, + "column": 18 + }, + "end": { + "line": 336, + "column": 23 + }, + "identifierName": "array" + }, + "name": "array" + }, + { + "type": "Identifier", + "start": 10040, + "end": 10045, + "loc": { + "start": { + "line": 336, + "column": 25 + }, + "end": { + "line": 336, + "column": 30 + }, + "identifierName": "value" + }, + "name": "value" + } + ], + "body": { + "type": "BlockStatement", + "start": 10050, + "end": 10114, + "loc": { + "start": { + "line": 336, + "column": 35 + }, + "end": { + "line": 338, + "column": 3 + } + }, + "body": [ + { + "type": "ReturnStatement", + "start": 10057, + "end": 10109, + "loc": { + "start": { + "line": 337, + "column": 4 + }, + "end": { + "line": 337, + "column": 56 + } + }, + "argument": { + "type": "CallExpression", + "start": 10064, + "end": 10108, + "loc": { + "start": { + "line": 337, + "column": 11 + }, + "end": { + "line": 337, + "column": 55 + } + }, + "callee": { + "type": "MemberExpression", + "start": 10064, + "end": 10076, + "loc": { + "start": { + "line": 337, + "column": 11 + }, + "end": { + "line": 337, + "column": 23 + } + }, + "object": { + "type": "Identifier", + "start": 10064, + "end": 10069, + "loc": { + "start": { + "line": 337, + "column": 11 + }, + "end": { + "line": 337, + "column": 16 + }, + "identifierName": "array" + }, + "name": "array" + }, + "property": { + "type": "Identifier", + "start": 10070, + "end": 10076, + "loc": { + "start": { + "line": 337, + "column": 17 + }, + "end": { + "line": 337, + "column": 23 + }, + "identifierName": "reduce" + }, + "name": "reduce" + }, + "computed": false + }, + "arguments": [ + { + "type": "ArrowFunctionExpression", + "start": 10077, + "end": 10104, + "loc": { + "start": { + "line": 337, + "column": 24 + }, + "end": { + "line": 337, + "column": 51 + } + }, + "id": null, + "generator": false, + "expression": true, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 10078, + "end": 10079, + "loc": { + "start": { + "line": 337, + "column": 25 + }, + "end": { + "line": 337, + "column": 26 + }, + "identifierName": "n" + }, + "name": "n" + }, + { + "type": "Identifier", + "start": 10081, + "end": 10082, + "loc": { + "start": { + "line": 337, + "column": 28 + }, + "end": { + "line": 337, + "column": 29 + }, + "identifierName": "x" + }, + "name": "x" + } + ], + "body": { + "type": "BinaryExpression", + "start": 10087, + "end": 10104, + "loc": { + "start": { + "line": 337, + "column": 34 + }, + "end": { + "line": 337, + "column": 51 + } + }, + "left": { + "type": "Identifier", + "start": 10087, + "end": 10088, + "loc": { + "start": { + "line": 337, + "column": 34 + }, + "end": { + "line": 337, + "column": 35 + }, + "identifierName": "n" + }, + "name": "n" + }, + "operator": "+", + "right": { + "type": "BinaryExpression", + "start": 10092, + "end": 10103, + "loc": { + "start": { + "line": 337, + "column": 39 + }, + "end": { + "line": 337, + "column": 50 + } + }, + "left": { + "type": "Identifier", + "start": 10092, + "end": 10093, + "loc": { + "start": { + "line": 337, + "column": 39 + }, + "end": { + "line": 337, + "column": 40 + }, + "identifierName": "x" + }, + "name": "x" + }, + "operator": "===", + "right": { + "type": "Identifier", + "start": 10098, + "end": 10103, + "loc": { + "start": { + "line": 337, + "column": 45 + }, + "end": { + "line": 337, + "column": 50 + }, + "identifierName": "value" + }, + "name": "value" + }, + "extra": { + "parenthesized": true, + "parenStart": 10091 + } + } + } + }, + { + "type": "NumericLiteral", + "start": 10106, + "end": 10107, + "loc": { + "start": { + "line": 337, + "column": 53 + }, + "end": { + "line": 337, + "column": 54 + } + }, + "extra": { + "rawValue": 0, + "raw": "0" + }, + "value": 0 + } + ] + } + } + ], + "directives": [] + } + }, + "leadingComments": [ + { + "type": "CommentBlock", + "value": "*\r\n * Counts the number of duplicates in a given array\r\n * \r\n * @param {Array} array The haystack to search in\r\n * @param {string} value The needle to search for\r\n ", + "start": 9833, + "end": 10013, + "loc": { + "start": { + "line": 330, + "column": 2 + }, + "end": { + "line": 335, + "column": 5 + } + } + } + ] + } + ] + }, + "leadingComments": [], + "name": "_", + "trailingComments": [] + }, + { + "type": "Identifier", + "start": 10123, + "end": 10148, + "loc": { + "start": { + "line": 342, + "column": 0 + }, + "end": { + "line": 342, + "column": 25 + } + }, + "declaration": { + "type": "Identifier", + "start": 10138, + "end": 10147, + "loc": { + "start": { + "line": 342, + "column": 15 + }, + "end": { + "line": 342, + "column": 24 + }, + "identifierName": "Utilities" + }, + "name": "Utilities" + }, + "name": "_", + "leadingComments": [], + "trailingComments": [] + }, + { + "type": "ExportDefaultDeclaration", + "start": 10123, + "end": 10148, + "loc": { + "start": { + "line": 342, + "column": 0 + }, + "end": { + "line": 342, + "column": 25 + } + }, + "declaration": { + "type": "ClassDeclaration", + "start": 30, + "end": 10119, + "loc": { + "start": { + "line": 4, + "column": 0 + }, + "end": { + "line": 340, + "column": 1 + } + }, + "id": { + "type": "Identifier", + "start": 36, + "end": 45, + "loc": { + "start": { + "line": 4, + "column": 6 + }, + "end": { + "line": 4, + "column": 15 + }, + "identifierName": "Utilities" + }, + "name": "Utilities", + "leadingComments": null + }, + "superClass": null, + "body": { + "type": "ClassBody", + "start": 46, + "end": 10119, + "loc": { + "start": { + "line": 4, + "column": 16 + }, + "end": { + "line": 340, + "column": 1 + } + }, + "body": [ + { + "type": "ClassMethod", + "start": 114, + "end": 282, + "loc": { + "start": { + "line": 8, + "column": 2 + }, + "end": { + "line": 13, + "column": 3 + } + }, + "static": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 114, + "end": 125, + "loc": { + "start": { + "line": 8, + "column": 2 + }, + "end": { + "line": 8, + "column": 13 + }, + "identifierName": "constructor" + }, + "name": "constructor", + "leadingComments": null + }, + "kind": "constructor", + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 126, + "end": 148, + "loc": { + "start": { + "line": 8, + "column": 14 + }, + "end": { + "line": 8, + "column": 36 + }, + "identifierName": "simpleKeyboardInstance" + }, + "name": "simpleKeyboardInstance" + } + ], + "body": { + "type": "BlockStatement", + "start": 149, + "end": 282, + "loc": { + "start": { + "line": 8, + "column": 37 + }, + "end": { + "line": 13, + "column": 3 + } + }, + "body": [ + { + "type": "ExpressionStatement", + "start": 224, + "end": 277, + "loc": { + "start": { + "line": 12, + "column": 4 + }, + "end": { + "line": 12, + "column": 57 + } + }, + "expression": { + "type": "AssignmentExpression", + "start": 224, + "end": 276, + "loc": { + "start": { + "line": 12, + "column": 4 + }, + "end": { + "line": 12, + "column": 56 + } + }, + "operator": "=", + "left": { + "type": "MemberExpression", + "start": 224, + "end": 251, + "loc": { + "start": { + "line": 12, + "column": 4 + }, + "end": { + "line": 12, + "column": 31 + } + }, + "object": { + "type": "ThisExpression", + "start": 224, + "end": 228, + "loc": { + "start": { + "line": 12, + "column": 4 + }, + "end": { + "line": 12, + "column": 8 + } + }, + "leadingComments": null + }, + "property": { + "type": "Identifier", + "start": 229, + "end": 251, + "loc": { + "start": { + "line": 12, + "column": 9 + }, + "end": { + "line": 12, + "column": 31 + }, + "identifierName": "simpleKeyboardInstance" + }, + "name": "simpleKeyboardInstance" + }, + "computed": false, + "leadingComments": null + }, + "right": { + "type": "Identifier", + "start": 254, + "end": 276, + "loc": { + "start": { + "line": 12, + "column": 34 + }, + "end": { + "line": 12, + "column": 56 + }, + "identifierName": "simpleKeyboardInstance" + }, + "name": "simpleKeyboardInstance" + }, + "leadingComments": null + }, + "leadingComments": [ + { + "type": "CommentBlock", + "value": "*\r\n * @type {object} A simple-keyboard instance\r\n ", + "start": 156, + "end": 218, + "loc": { + "start": { + "line": 9, + "column": 4 + }, + "end": { + "line": 11, + "column": 7 + } + } + } + ] + } + ], + "directives": [], + "trailingComments": null + }, + "leadingComments": [ + { + "type": "CommentBlock", + "value": "*\r\n * Creates an instance of the Utility service\r\n ", + "start": 51, + "end": 110, + "loc": { + "start": { + "line": 5, + "column": 2 + }, + "end": { + "line": 7, + "column": 5 + } + } + } + ], + "trailingComments": [ + { + "type": "CommentBlock", + "value": "*\r\n * Adds default classes to a given button\r\n * \r\n * @param {string} button The button's layout name\r\n * @return {string} The classes to be added to the button\r\n ", + "start": 288, + "end": 466, + "loc": { + "start": { + "line": 15, + "column": 2 + }, + "end": { + "line": 20, + "column": 5 + } + } + } + ] + }, + { + "type": "ClassProperty", + "start": 470, + "end": 902, + "loc": { + "start": { + "line": 21, + "column": 2 + }, + "end": { + "line": 30, + "column": 3 + } + }, + "static": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 470, + "end": 484, + "loc": { + "start": { + "line": 21, + "column": 2 + }, + "end": { + "line": 21, + "column": 16 + }, + "identifierName": "getButtonClass" + }, + "name": "getButtonClass", + "leadingComments": null + }, + "value": { + "type": "ArrowFunctionExpression", + "start": 487, + "end": 902, + "loc": { + "start": { + "line": 21, + "column": 19 + }, + "end": { + "line": 30, + "column": 3 + } + }, + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 487, + "end": 493, + "loc": { + "start": { + "line": 21, + "column": 19 + }, + "end": { + "line": 21, + "column": 25 + }, + "identifierName": "button" + }, + "name": "button" + } + ], + "body": { + "type": "BlockStatement", + "start": 497, + "end": 902, + "loc": { + "start": { + "line": 21, + "column": 29 + }, + "end": { + "line": 30, + "column": 3 + } + }, + "body": [ + { + "type": "VariableDeclaration", + "start": 504, + "end": 626, + "loc": { + "start": { + "line": 22, + "column": 4 + }, + "end": { + "line": 22, + "column": 126 + } + }, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 508, + "end": 625, + "loc": { + "start": { + "line": 22, + "column": 8 + }, + "end": { + "line": 22, + "column": 125 + } + }, + "id": { + "type": "Identifier", + "start": 508, + "end": 523, + "loc": { + "start": { + "line": 22, + "column": 8 + }, + "end": { + "line": 22, + "column": 23 + }, + "identifierName": "buttonTypeClass" + }, + "name": "buttonTypeClass" + }, + "init": { + "type": "ConditionalExpression", + "start": 526, + "end": 625, + "loc": { + "start": { + "line": 22, + "column": 26 + }, + "end": { + "line": 22, + "column": 125 + } + }, + "test": { + "type": "LogicalExpression", + "start": 527, + "end": 592, + "loc": { + "start": { + "line": 22, + "column": 27 + }, + "end": { + "line": 22, + "column": 92 + } + }, + "left": { + "type": "LogicalExpression", + "start": 527, + "end": 571, + "loc": { + "start": { + "line": 22, + "column": 27 + }, + "end": { + "line": 22, + "column": 71 + } + }, + "left": { + "type": "CallExpression", + "start": 527, + "end": 547, + "loc": { + "start": { + "line": 22, + "column": 27 + }, + "end": { + "line": 22, + "column": 47 + } + }, + "callee": { + "type": "MemberExpression", + "start": 527, + "end": 542, + "loc": { + "start": { + "line": 22, + "column": 27 + }, + "end": { + "line": 22, + "column": 42 + } + }, + "object": { + "type": "Identifier", + "start": 527, + "end": 533, + "loc": { + "start": { + "line": 22, + "column": 27 + }, + "end": { + "line": 22, + "column": 33 + }, + "identifierName": "button" + }, + "name": "button" + }, + "property": { + "type": "Identifier", + "start": 534, + "end": 542, + "loc": { + "start": { + "line": 22, + "column": 34 + }, + "end": { + "line": 22, + "column": 42 + }, + "identifierName": "includes" + }, + "name": "includes" + }, + "computed": false + }, + "arguments": [ + { + "type": "StringLiteral", + "start": 543, + "end": 546, + "loc": { + "start": { + "line": 22, + "column": 43 + }, + "end": { + "line": 22, + "column": 46 + } + }, + "extra": { + "rawValue": "{", + "raw": "\"{\"" + }, + "value": "{" + } + ] + }, + "operator": "&&", + "right": { + "type": "CallExpression", + "start": 551, + "end": 571, + "loc": { + "start": { + "line": 22, + "column": 51 + }, + "end": { + "line": 22, + "column": 71 + } + }, + "callee": { + "type": "MemberExpression", + "start": 551, + "end": 566, + "loc": { + "start": { + "line": 22, + "column": 51 + }, + "end": { + "line": 22, + "column": 66 + } + }, + "object": { + "type": "Identifier", + "start": 551, + "end": 557, + "loc": { + "start": { + "line": 22, + "column": 51 + }, + "end": { + "line": 22, + "column": 57 + }, + "identifierName": "button" + }, + "name": "button" + }, + "property": { + "type": "Identifier", + "start": 558, + "end": 566, + "loc": { + "start": { + "line": 22, + "column": 58 + }, + "end": { + "line": 22, + "column": 66 + }, + "identifierName": "includes" + }, + "name": "includes" + }, + "computed": false + }, + "arguments": [ + { + "type": "StringLiteral", + "start": 567, + "end": 570, + "loc": { + "start": { + "line": 22, + "column": 67 + }, + "end": { + "line": 22, + "column": 70 + } + }, + "extra": { + "rawValue": "}", + "raw": "\"}\"" + }, + "value": "}" + } + ] + } + }, + "operator": "&&", + "right": { + "type": "BinaryExpression", + "start": 575, + "end": 592, + "loc": { + "start": { + "line": 22, + "column": 75 + }, + "end": { + "line": 22, + "column": 92 + } + }, + "left": { + "type": "Identifier", + "start": 575, + "end": 581, + "loc": { + "start": { + "line": 22, + "column": 75 + }, + "end": { + "line": 22, + "column": 81 + }, + "identifierName": "button" + }, + "name": "button" + }, + "operator": "!==", + "right": { + "type": "StringLiteral", + "start": 586, + "end": 592, + "loc": { + "start": { + "line": 22, + "column": 86 + }, + "end": { + "line": 22, + "column": 92 + } + }, + "extra": { + "rawValue": "{//}", + "raw": "'{//}'" + }, + "value": "{//}" + } + }, + "extra": { + "parenthesized": true, + "parenStart": 526 + } + }, + "consequent": { + "type": "StringLiteral", + "start": 596, + "end": 609, + "loc": { + "start": { + "line": 22, + "column": 96 + }, + "end": { + "line": 22, + "column": 109 + } + }, + "extra": { + "rawValue": "functionBtn", + "raw": "\"functionBtn\"" + }, + "value": "functionBtn" + }, + "alternate": { + "type": "StringLiteral", + "start": 612, + "end": 625, + "loc": { + "start": { + "line": 22, + "column": 112 + }, + "end": { + "line": 22, + "column": 125 + } + }, + "extra": { + "rawValue": "standardBtn", + "raw": "\"standardBtn\"" + }, + "value": "standardBtn" + } + } + } + ], + "kind": "let" + }, + { + "type": "VariableDeclaration", + "start": 632, + "end": 699, + "loc": { + "start": { + "line": 23, + "column": 4 + }, + "end": { + "line": 23, + "column": 71 + } + }, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 636, + "end": 698, + "loc": { + "start": { + "line": 23, + "column": 8 + }, + "end": { + "line": 23, + "column": 70 + } + }, + "id": { + "type": "Identifier", + "start": 636, + "end": 655, + "loc": { + "start": { + "line": 23, + "column": 8 + }, + "end": { + "line": 23, + "column": 27 + }, + "identifierName": "buttonWithoutBraces" + }, + "name": "buttonWithoutBraces" + }, + "init": { + "type": "CallExpression", + "start": 658, + "end": 698, + "loc": { + "start": { + "line": 23, + "column": 30 + }, + "end": { + "line": 23, + "column": 70 + } + }, + "callee": { + "type": "MemberExpression", + "start": 658, + "end": 689, + "loc": { + "start": { + "line": 23, + "column": 30 + }, + "end": { + "line": 23, + "column": 61 + } + }, + "object": { + "type": "CallExpression", + "start": 658, + "end": 681, + "loc": { + "start": { + "line": 23, + "column": 30 + }, + "end": { + "line": 23, + "column": 53 + } + }, + "callee": { + "type": "MemberExpression", + "start": 658, + "end": 672, + "loc": { + "start": { + "line": 23, + "column": 30 + }, + "end": { + "line": 23, + "column": 44 + } + }, + "object": { + "type": "Identifier", + "start": 658, + "end": 664, + "loc": { + "start": { + "line": 23, + "column": 30 + }, + "end": { + "line": 23, + "column": 36 + }, + "identifierName": "button" + }, + "name": "button" + }, + "property": { + "type": "Identifier", + "start": 665, + "end": 672, + "loc": { + "start": { + "line": 23, + "column": 37 + }, + "end": { + "line": 23, + "column": 44 + }, + "identifierName": "replace" + }, + "name": "replace" + }, + "computed": false + }, + "arguments": [ + { + "type": "StringLiteral", + "start": 673, + "end": 676, + "loc": { + "start": { + "line": 23, + "column": 45 + }, + "end": { + "line": 23, + "column": 48 + } + }, + "extra": { + "rawValue": "{", + "raw": "\"{\"" + }, + "value": "{" + }, + { + "type": "StringLiteral", + "start": 678, + "end": 680, + "loc": { + "start": { + "line": 23, + "column": 50 + }, + "end": { + "line": 23, + "column": 52 + } + }, + "extra": { + "rawValue": "", + "raw": "\"\"" + }, + "value": "" + } + ] + }, + "property": { + "type": "Identifier", + "start": 682, + "end": 689, + "loc": { + "start": { + "line": 23, + "column": 54 + }, + "end": { + "line": 23, + "column": 61 + }, + "identifierName": "replace" + }, + "name": "replace" + }, + "computed": false + }, + "arguments": [ + { + "type": "StringLiteral", + "start": 690, + "end": 693, + "loc": { + "start": { + "line": 23, + "column": 62 + }, + "end": { + "line": 23, + "column": 65 + } + }, + "extra": { + "rawValue": "}", + "raw": "\"}\"" + }, + "value": "}" + }, + { + "type": "StringLiteral", + "start": 695, + "end": 697, + "loc": { + "start": { + "line": 23, + "column": 67 + }, + "end": { + "line": 23, + "column": 69 + } + }, + "extra": { + "rawValue": "", + "raw": "\"\"" + }, + "value": "" + } + ] + } + } + ], + "kind": "let" + }, + { + "type": "VariableDeclaration", + "start": 705, + "end": 731, + "loc": { + "start": { + "line": 24, + "column": 4 + }, + "end": { + "line": 24, + "column": 30 + } + }, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 709, + "end": 730, + "loc": { + "start": { + "line": 24, + "column": 8 + }, + "end": { + "line": 24, + "column": 29 + } + }, + "id": { + "type": "Identifier", + "start": 709, + "end": 725, + "loc": { + "start": { + "line": 24, + "column": 8 + }, + "end": { + "line": 24, + "column": 24 + }, + "identifierName": "buttonNormalized" + }, + "name": "buttonNormalized" + }, + "init": { + "type": "StringLiteral", + "start": 728, + "end": 730, + "loc": { + "start": { + "line": 24, + "column": 27 + }, + "end": { + "line": 24, + "column": 29 + } + }, + "extra": { + "rawValue": "", + "raw": "''" + }, + "value": "" + } + } + ], + "kind": "let" + }, + { + "type": "IfStatement", + "start": 739, + "end": 839, + "loc": { + "start": { + "line": 26, + "column": 4 + }, + "end": { + "line": 27, + "column": 61 + } + }, + "test": { + "type": "BinaryExpression", + "start": 742, + "end": 775, + "loc": { + "start": { + "line": 26, + "column": 7 + }, + "end": { + "line": 26, + "column": 40 + } + }, + "left": { + "type": "Identifier", + "start": 742, + "end": 757, + "loc": { + "start": { + "line": 26, + "column": 7 + }, + "end": { + "line": 26, + "column": 22 + }, + "identifierName": "buttonTypeClass" + }, + "name": "buttonTypeClass" + }, + "operator": "!==", + "right": { + "type": "StringLiteral", + "start": 762, + "end": 775, + "loc": { + "start": { + "line": 26, + "column": 27 + }, + "end": { + "line": 26, + "column": 40 + } + }, + "extra": { + "rawValue": "standardBtn", + "raw": "\"standardBtn\"" + }, + "value": "standardBtn" + } + }, + "consequent": { + "type": "ExpressionStatement", + "start": 784, + "end": 839, + "loc": { + "start": { + "line": 27, + "column": 6 + }, + "end": { + "line": 27, + "column": 61 + } + }, + "expression": { + "type": "AssignmentExpression", + "start": 784, + "end": 838, + "loc": { + "start": { + "line": 27, + "column": 6 + }, + "end": { + "line": 27, + "column": 60 + } + }, + "operator": "=", + "left": { + "type": "Identifier", + "start": 784, + "end": 800, + "loc": { + "start": { + "line": 27, + "column": 6 + }, + "end": { + "line": 27, + "column": 22 + }, + "identifierName": "buttonNormalized" + }, + "name": "buttonNormalized" + }, + "right": { + "type": "TemplateLiteral", + "start": 803, + "end": 838, + "loc": { + "start": { + "line": 27, + "column": 25 + }, + "end": { + "line": 27, + "column": 60 + } + }, + "expressions": [ + { + "type": "Identifier", + "start": 817, + "end": 836, + "loc": { + "start": { + "line": 27, + "column": 39 + }, + "end": { + "line": 27, + "column": 58 + }, + "identifierName": "buttonWithoutBraces" + }, + "name": "buttonWithoutBraces" + } + ], + "quasis": [ + { + "type": "TemplateElement", + "start": 804, + "end": 815, + "loc": { + "start": { + "line": 27, + "column": 26 + }, + "end": { + "line": 27, + "column": 37 + } + }, + "value": { + "raw": " hg-button-", + "cooked": " hg-button-" + }, + "tail": false + }, + { + "type": "TemplateElement", + "start": 837, + "end": 837, + "loc": { + "start": { + "line": 27, + "column": 59 + }, + "end": { + "line": 27, + "column": 59 + } + }, + "value": { + "raw": "", + "cooked": "" + }, + "tail": true + } + ] + } + } + }, + "alternate": null + }, + { + "type": "ReturnStatement", + "start": 847, + "end": 897, + "loc": { + "start": { + "line": 29, + "column": 4 + }, + "end": { + "line": 29, + "column": 54 + } + }, + "argument": { + "type": "TemplateLiteral", + "start": 854, + "end": 896, + "loc": { + "start": { + "line": 29, + "column": 11 + }, + "end": { + "line": 29, + "column": 53 + } + }, + "expressions": [ + { + "type": "Identifier", + "start": 860, + "end": 875, + "loc": { + "start": { + "line": 29, + "column": 17 + }, + "end": { + "line": 29, + "column": 32 + }, + "identifierName": "buttonTypeClass" + }, + "name": "buttonTypeClass" + }, + { + "type": "Identifier", + "start": 878, + "end": 894, + "loc": { + "start": { + "line": 29, + "column": 35 + }, + "end": { + "line": 29, + "column": 51 + }, + "identifierName": "buttonNormalized" + }, + "name": "buttonNormalized" + } + ], + "quasis": [ + { + "type": "TemplateElement", + "start": 855, + "end": 858, + "loc": { + "start": { + "line": 29, + "column": 12 + }, + "end": { + "line": 29, + "column": 15 + } + }, + "value": { + "raw": "hg-", + "cooked": "hg-" + }, + "tail": false + }, + { + "type": "TemplateElement", + "start": 876, + "end": 876, + "loc": { + "start": { + "line": 29, + "column": 33 + }, + "end": { + "line": 29, + "column": 33 + } + }, + "value": { + "raw": "", + "cooked": "" + }, + "tail": false + }, + { + "type": "TemplateElement", + "start": 895, + "end": 895, + "loc": { + "start": { + "line": 29, + "column": 52 + }, + "end": { + "line": 29, + "column": 52 + } + }, + "value": { + "raw": "", + "cooked": "" + }, + "tail": true + } + ] + } + } + ], + "directives": [], + "trailingComments": null + }, + "trailingComments": null + }, + "leadingComments": [ + { + "type": "CommentBlock", + "value": "*\r\n * Adds default classes to a given button\r\n * \r\n * @param {string} button The button's layout name\r\n * @return {string} The classes to be added to the button\r\n ", + "start": 288, + "end": 466, + "loc": { + "start": { + "line": 15, + "column": 2 + }, + "end": { + "line": 20, + "column": 5 + } + } + } + ], + "trailingComments": [ + { + "type": "CommentBlock", + "value": "*\r\n * Default button display labels\r\n ", + "start": 908, + "end": 954, + "loc": { + "start": { + "line": 32, + "column": 2 + }, + "end": { + "line": 34, + "column": 5 + } + } + } + ] + }, + { + "type": "ClassMethod", + "start": 958, + "end": 2526, + "loc": { + "start": { + "line": 35, + "column": 2 + }, + "end": { + "line": 97, + "column": 3 + } + }, + "static": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 958, + "end": 974, + "loc": { + "start": { + "line": 35, + "column": 2 + }, + "end": { + "line": 35, + "column": 18 + }, + "identifierName": "getDefaultDiplay" + }, + "name": "getDefaultDiplay", + "leadingComments": null + }, + "kind": "method", + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [], + "body": { + "type": "BlockStatement", + "start": 976, + "end": 2526, + "loc": { + "start": { + "line": 35, + "column": 20 + }, + "end": { + "line": 97, + "column": 3 + } + }, + "body": [ + { + "type": "ReturnStatement", + "start": 983, + "end": 2521, + "loc": { + "start": { + "line": 36, + "column": 4 + }, + "end": { + "line": 96, + "column": 6 + } + }, + "argument": { + "type": "ObjectExpression", + "start": 990, + "end": 2520, + "loc": { + "start": { + "line": 36, + "column": 11 + }, + "end": { + "line": 96, + "column": 5 + } + }, + "properties": [ + { + "type": "ObjectProperty", + "start": 999, + "end": 1020, + "loc": { + "start": { + "line": 37, + "column": 6 + }, + "end": { + "line": 37, + "column": 27 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "StringLiteral", + "start": 999, + "end": 1007, + "loc": { + "start": { + "line": 37, + "column": 6 + }, + "end": { + "line": 37, + "column": 14 + } + }, + "extra": { + "rawValue": "{bksp}", + "raw": "'{bksp}'" + }, + "value": "{bksp}" + }, + "value": { + "type": "StringLiteral", + "start": 1009, + "end": 1020, + "loc": { + "start": { + "line": 37, + "column": 16 + }, + "end": { + "line": 37, + "column": 27 + } + }, + "extra": { + "rawValue": "backspace", + "raw": "'backspace'" + }, + "value": "backspace" + } + }, + { + "type": "ObjectProperty", + "start": 1029, + "end": 1055, + "loc": { + "start": { + "line": 38, + "column": 6 + }, + "end": { + "line": 38, + "column": 32 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "StringLiteral", + "start": 1029, + "end": 1042, + "loc": { + "start": { + "line": 38, + "column": 6 + }, + "end": { + "line": 38, + "column": 19 + } + }, + "extra": { + "rawValue": "{backspace}", + "raw": "'{backspace}'" + }, + "value": "{backspace}" + }, + "value": { + "type": "StringLiteral", + "start": 1044, + "end": 1055, + "loc": { + "start": { + "line": 38, + "column": 21 + }, + "end": { + "line": 38, + "column": 32 + } + }, + "extra": { + "rawValue": "backspace", + "raw": "'backspace'" + }, + "value": "backspace" + } + }, + { + "type": "ObjectProperty", + "start": 1064, + "end": 1084, + "loc": { + "start": { + "line": 39, + "column": 6 + }, + "end": { + "line": 39, + "column": 26 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "StringLiteral", + "start": 1064, + "end": 1073, + "loc": { + "start": { + "line": 39, + "column": 6 + }, + "end": { + "line": 39, + "column": 15 + } + }, + "extra": { + "rawValue": "{enter}", + "raw": "'{enter}'" + }, + "value": "{enter}" + }, + "value": { + "type": "StringLiteral", + "start": 1075, + "end": 1084, + "loc": { + "start": { + "line": 39, + "column": 17 + }, + "end": { + "line": 39, + "column": 26 + } + }, + "extra": { + "rawValue": "< enter", + "raw": "'< enter'" + }, + "value": "< enter" + } + }, + { + "type": "ObjectProperty", + "start": 1093, + "end": 1111, + "loc": { + "start": { + "line": 40, + "column": 6 + }, + "end": { + "line": 40, + "column": 24 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "StringLiteral", + "start": 1093, + "end": 1102, + "loc": { + "start": { + "line": 40, + "column": 6 + }, + "end": { + "line": 40, + "column": 15 + } + }, + "extra": { + "rawValue": "{shift}", + "raw": "'{shift}'" + }, + "value": "{shift}" + }, + "value": { + "type": "StringLiteral", + "start": 1104, + "end": 1111, + "loc": { + "start": { + "line": 40, + "column": 17 + }, + "end": { + "line": 40, + "column": 24 + } + }, + "extra": { + "rawValue": "shift", + "raw": "'shift'" + }, + "value": "shift" + } + }, + { + "type": "ObjectProperty", + "start": 1120, + "end": 1142, + "loc": { + "start": { + "line": 41, + "column": 6 + }, + "end": { + "line": 41, + "column": 28 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "StringLiteral", + "start": 1120, + "end": 1133, + "loc": { + "start": { + "line": 41, + "column": 6 + }, + "end": { + "line": 41, + "column": 19 + } + }, + "extra": { + "rawValue": "{shiftleft}", + "raw": "'{shiftleft}'" + }, + "value": "{shiftleft}" + }, + "value": { + "type": "StringLiteral", + "start": 1135, + "end": 1142, + "loc": { + "start": { + "line": 41, + "column": 21 + }, + "end": { + "line": 41, + "column": 28 + } + }, + "extra": { + "rawValue": "shift", + "raw": "'shift'" + }, + "value": "shift" + } + }, + { + "type": "ObjectProperty", + "start": 1151, + "end": 1174, + "loc": { + "start": { + "line": 42, + "column": 6 + }, + "end": { + "line": 42, + "column": 29 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "StringLiteral", + "start": 1151, + "end": 1165, + "loc": { + "start": { + "line": 42, + "column": 6 + }, + "end": { + "line": 42, + "column": 20 + } + }, + "extra": { + "rawValue": "{shiftright}", + "raw": "'{shiftright}'" + }, + "value": "{shiftright}" + }, + "value": { + "type": "StringLiteral", + "start": 1167, + "end": 1174, + "loc": { + "start": { + "line": 42, + "column": 22 + }, + "end": { + "line": 42, + "column": 29 + } + }, + "extra": { + "rawValue": "shift", + "raw": "'shift'" + }, + "value": "shift" + } + }, + { + "type": "ObjectProperty", + "start": 1183, + "end": 1197, + "loc": { + "start": { + "line": 43, + "column": 6 + }, + "end": { + "line": 43, + "column": 20 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "StringLiteral", + "start": 1183, + "end": 1190, + "loc": { + "start": { + "line": 43, + "column": 6 + }, + "end": { + "line": 43, + "column": 13 + } + }, + "extra": { + "rawValue": "{alt}", + "raw": "'{alt}'" + }, + "value": "{alt}" + }, + "value": { + "type": "StringLiteral", + "start": 1192, + "end": 1197, + "loc": { + "start": { + "line": 43, + "column": 15 + }, + "end": { + "line": 43, + "column": 20 + } + }, + "extra": { + "rawValue": "alt", + "raw": "'alt'" + }, + "value": "alt" + } + }, + { + "type": "ObjectProperty", + "start": 1206, + "end": 1220, + "loc": { + "start": { + "line": 44, + "column": 6 + }, + "end": { + "line": 44, + "column": 20 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "StringLiteral", + "start": 1206, + "end": 1211, + "loc": { + "start": { + "line": 44, + "column": 6 + }, + "end": { + "line": 44, + "column": 11 + } + }, + "extra": { + "rawValue": "{s}", + "raw": "'{s}'" + }, + "value": "{s}" + }, + "value": { + "type": "StringLiteral", + "start": 1213, + "end": 1220, + "loc": { + "start": { + "line": 44, + "column": 13 + }, + "end": { + "line": 44, + "column": 20 + } + }, + "extra": { + "rawValue": "shift", + "raw": "'shift'" + }, + "value": "shift" + } + }, + { + "type": "ObjectProperty", + "start": 1229, + "end": 1243, + "loc": { + "start": { + "line": 45, + "column": 6 + }, + "end": { + "line": 45, + "column": 20 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "StringLiteral", + "start": 1229, + "end": 1236, + "loc": { + "start": { + "line": 45, + "column": 6 + }, + "end": { + "line": 45, + "column": 13 + } + }, + "extra": { + "rawValue": "{tab}", + "raw": "'{tab}'" + }, + "value": "{tab}" + }, + "value": { + "type": "StringLiteral", + "start": 1238, + "end": 1243, + "loc": { + "start": { + "line": 45, + "column": 15 + }, + "end": { + "line": 45, + "column": 20 + } + }, + "extra": { + "rawValue": "tab", + "raw": "'tab'" + }, + "value": "tab" + } + }, + { + "type": "ObjectProperty", + "start": 1252, + "end": 1268, + "loc": { + "start": { + "line": 46, + "column": 6 + }, + "end": { + "line": 46, + "column": 22 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "StringLiteral", + "start": 1252, + "end": 1260, + "loc": { + "start": { + "line": 46, + "column": 6 + }, + "end": { + "line": 46, + "column": 14 + } + }, + "extra": { + "rawValue": "{lock}", + "raw": "'{lock}'" + }, + "value": "{lock}" + }, + "value": { + "type": "StringLiteral", + "start": 1262, + "end": 1268, + "loc": { + "start": { + "line": 46, + "column": 16 + }, + "end": { + "line": 46, + "column": 22 + } + }, + "extra": { + "rawValue": "caps", + "raw": "'caps'" + }, + "value": "caps" + } + }, + { + "type": "ObjectProperty", + "start": 1277, + "end": 1297, + "loc": { + "start": { + "line": 47, + "column": 6 + }, + "end": { + "line": 47, + "column": 26 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "StringLiteral", + "start": 1277, + "end": 1289, + "loc": { + "start": { + "line": 47, + "column": 6 + }, + "end": { + "line": 47, + "column": 18 + } + }, + "extra": { + "rawValue": "{capslock}", + "raw": "'{capslock}'" + }, + "value": "{capslock}" + }, + "value": { + "type": "StringLiteral", + "start": 1291, + "end": 1297, + "loc": { + "start": { + "line": 47, + "column": 20 + }, + "end": { + "line": 47, + "column": 26 + } + }, + "extra": { + "rawValue": "caps", + "raw": "'caps'" + }, + "value": "caps" + } + }, + { + "type": "ObjectProperty", + "start": 1306, + "end": 1326, + "loc": { + "start": { + "line": 48, + "column": 6 + }, + "end": { + "line": 48, + "column": 26 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "StringLiteral", + "start": 1306, + "end": 1316, + "loc": { + "start": { + "line": 48, + "column": 6 + }, + "end": { + "line": 48, + "column": 16 + } + }, + "extra": { + "rawValue": "{accept}", + "raw": "'{accept}'" + }, + "value": "{accept}" + }, + "value": { + "type": "StringLiteral", + "start": 1318, + "end": 1326, + "loc": { + "start": { + "line": 48, + "column": 18 + }, + "end": { + "line": 48, + "column": 26 + } + }, + "extra": { + "rawValue": "Submit", + "raw": "'Submit'" + }, + "value": "Submit" + } + }, + { + "type": "ObjectProperty", + "start": 1335, + "end": 1349, + "loc": { + "start": { + "line": 49, + "column": 6 + }, + "end": { + "line": 49, + "column": 20 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "StringLiteral", + "start": 1335, + "end": 1344, + "loc": { + "start": { + "line": 49, + "column": 6 + }, + "end": { + "line": 49, + "column": 15 + } + }, + "extra": { + "rawValue": "{space}", + "raw": "'{space}'" + }, + "value": "{space}" + }, + "value": { + "type": "StringLiteral", + "start": 1346, + "end": 1349, + "loc": { + "start": { + "line": 49, + "column": 17 + }, + "end": { + "line": 49, + "column": 20 + } + }, + "extra": { + "rawValue": " ", + "raw": "' '" + }, + "value": " " + } + }, + { + "type": "ObjectProperty", + "start": 1358, + "end": 1369, + "loc": { + "start": { + "line": 50, + "column": 6 + }, + "end": { + "line": 50, + "column": 17 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "StringLiteral", + "start": 1358, + "end": 1364, + "loc": { + "start": { + "line": 50, + "column": 6 + }, + "end": { + "line": 50, + "column": 12 + } + }, + "extra": { + "rawValue": "{//}", + "raw": "'{//}'" + }, + "value": "{//}" + }, + "value": { + "type": "StringLiteral", + "start": 1366, + "end": 1369, + "loc": { + "start": { + "line": 50, + "column": 14 + }, + "end": { + "line": 50, + "column": 17 + } + }, + "extra": { + "rawValue": " ", + "raw": "' '" + }, + "value": " " + } + }, + { + "type": "ObjectProperty", + "start": 1378, + "end": 1392, + "loc": { + "start": { + "line": 51, + "column": 6 + }, + "end": { + "line": 51, + "column": 20 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "StringLiteral", + "start": 1378, + "end": 1385, + "loc": { + "start": { + "line": 51, + "column": 6 + }, + "end": { + "line": 51, + "column": 13 + } + }, + "extra": { + "rawValue": "{esc}", + "raw": "\"{esc}\"" + }, + "value": "{esc}" + }, + "value": { + "type": "StringLiteral", + "start": 1387, + "end": 1392, + "loc": { + "start": { + "line": 51, + "column": 15 + }, + "end": { + "line": 51, + "column": 20 + } + }, + "extra": { + "rawValue": "esc", + "raw": "\"esc\"" + }, + "value": "esc" + } + }, + { + "type": "ObjectProperty", + "start": 1401, + "end": 1418, + "loc": { + "start": { + "line": 52, + "column": 6 + }, + "end": { + "line": 52, + "column": 23 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "StringLiteral", + "start": 1401, + "end": 1411, + "loc": { + "start": { + "line": 52, + "column": 6 + }, + "end": { + "line": 52, + "column": 16 + } + }, + "extra": { + "rawValue": "{escape}", + "raw": "\"{escape}\"" + }, + "value": "{escape}" + }, + "value": { + "type": "StringLiteral", + "start": 1413, + "end": 1418, + "loc": { + "start": { + "line": 52, + "column": 18 + }, + "end": { + "line": 52, + "column": 23 + } + }, + "extra": { + "rawValue": "esc", + "raw": "\"esc\"" + }, + "value": "esc" + } + }, + { + "type": "ObjectProperty", + "start": 1427, + "end": 1439, + "loc": { + "start": { + "line": 53, + "column": 6 + }, + "end": { + "line": 53, + "column": 18 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "StringLiteral", + "start": 1427, + "end": 1433, + "loc": { + "start": { + "line": 53, + "column": 6 + }, + "end": { + "line": 53, + "column": 12 + } + }, + "extra": { + "rawValue": "{f1}", + "raw": "\"{f1}\"" + }, + "value": "{f1}" + }, + "value": { + "type": "StringLiteral", + "start": 1435, + "end": 1439, + "loc": { + "start": { + "line": 53, + "column": 14 + }, + "end": { + "line": 53, + "column": 18 + } + }, + "extra": { + "rawValue": "f1", + "raw": "\"f1\"" + }, + "value": "f1" + } + }, + { + "type": "ObjectProperty", + "start": 1448, + "end": 1460, + "loc": { + "start": { + "line": 54, + "column": 6 + }, + "end": { + "line": 54, + "column": 18 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "StringLiteral", + "start": 1448, + "end": 1454, + "loc": { + "start": { + "line": 54, + "column": 6 + }, + "end": { + "line": 54, + "column": 12 + } + }, + "extra": { + "rawValue": "{f2}", + "raw": "\"{f2}\"" + }, + "value": "{f2}" + }, + "value": { + "type": "StringLiteral", + "start": 1456, + "end": 1460, + "loc": { + "start": { + "line": 54, + "column": 14 + }, + "end": { + "line": 54, + "column": 18 + } + }, + "extra": { + "rawValue": "f2", + "raw": "\"f2\"" + }, + "value": "f2" + } + }, + { + "type": "ObjectProperty", + "start": 1469, + "end": 1481, + "loc": { + "start": { + "line": 55, + "column": 6 + }, + "end": { + "line": 55, + "column": 18 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "StringLiteral", + "start": 1469, + "end": 1475, + "loc": { + "start": { + "line": 55, + "column": 6 + }, + "end": { + "line": 55, + "column": 12 + } + }, + "extra": { + "rawValue": "{f3}", + "raw": "\"{f3}\"" + }, + "value": "{f3}" + }, + "value": { + "type": "StringLiteral", + "start": 1477, + "end": 1481, + "loc": { + "start": { + "line": 55, + "column": 14 + }, + "end": { + "line": 55, + "column": 18 + } + }, + "extra": { + "rawValue": "f3", + "raw": "\"f3\"" + }, + "value": "f3" + } + }, + { + "type": "ObjectProperty", + "start": 1490, + "end": 1502, + "loc": { + "start": { + "line": 56, + "column": 6 + }, + "end": { + "line": 56, + "column": 18 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "StringLiteral", + "start": 1490, + "end": 1496, + "loc": { + "start": { + "line": 56, + "column": 6 + }, + "end": { + "line": 56, + "column": 12 + } + }, + "extra": { + "rawValue": "{f4}", + "raw": "\"{f4}\"" + }, + "value": "{f4}" + }, + "value": { + "type": "StringLiteral", + "start": 1498, + "end": 1502, + "loc": { + "start": { + "line": 56, + "column": 14 + }, + "end": { + "line": 56, + "column": 18 + } + }, + "extra": { + "rawValue": "f4", + "raw": "\"f4\"" + }, + "value": "f4" + } + }, + { + "type": "ObjectProperty", + "start": 1511, + "end": 1523, + "loc": { + "start": { + "line": 57, + "column": 6 + }, + "end": { + "line": 57, + "column": 18 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "StringLiteral", + "start": 1511, + "end": 1517, + "loc": { + "start": { + "line": 57, + "column": 6 + }, + "end": { + "line": 57, + "column": 12 + } + }, + "extra": { + "rawValue": "{f5}", + "raw": "\"{f5}\"" + }, + "value": "{f5}" + }, + "value": { + "type": "StringLiteral", + "start": 1519, + "end": 1523, + "loc": { + "start": { + "line": 57, + "column": 14 + }, + "end": { + "line": 57, + "column": 18 + } + }, + "extra": { + "rawValue": "f5", + "raw": "\"f5\"" + }, + "value": "f5" + } + }, + { + "type": "ObjectProperty", + "start": 1532, + "end": 1544, + "loc": { + "start": { + "line": 58, + "column": 6 + }, + "end": { + "line": 58, + "column": 18 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "StringLiteral", + "start": 1532, + "end": 1538, + "loc": { + "start": { + "line": 58, + "column": 6 + }, + "end": { + "line": 58, + "column": 12 + } + }, + "extra": { + "rawValue": "{f6}", + "raw": "\"{f6}\"" + }, + "value": "{f6}" + }, + "value": { + "type": "StringLiteral", + "start": 1540, + "end": 1544, + "loc": { + "start": { + "line": 58, + "column": 14 + }, + "end": { + "line": 58, + "column": 18 + } + }, + "extra": { + "rawValue": "f6", + "raw": "\"f6\"" + }, + "value": "f6" + } + }, + { + "type": "ObjectProperty", + "start": 1553, + "end": 1565, + "loc": { + "start": { + "line": 59, + "column": 6 + }, + "end": { + "line": 59, + "column": 18 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "StringLiteral", + "start": 1553, + "end": 1559, + "loc": { + "start": { + "line": 59, + "column": 6 + }, + "end": { + "line": 59, + "column": 12 + } + }, + "extra": { + "rawValue": "{f7}", + "raw": "\"{f7}\"" + }, + "value": "{f7}" + }, + "value": { + "type": "StringLiteral", + "start": 1561, + "end": 1565, + "loc": { + "start": { + "line": 59, + "column": 14 + }, + "end": { + "line": 59, + "column": 18 + } + }, + "extra": { + "rawValue": "f7", + "raw": "\"f7\"" + }, + "value": "f7" + } + }, + { + "type": "ObjectProperty", + "start": 1574, + "end": 1586, + "loc": { + "start": { + "line": 60, + "column": 6 + }, + "end": { + "line": 60, + "column": 18 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "StringLiteral", + "start": 1574, + "end": 1580, + "loc": { + "start": { + "line": 60, + "column": 6 + }, + "end": { + "line": 60, + "column": 12 + } + }, + "extra": { + "rawValue": "{f8}", + "raw": "\"{f8}\"" + }, + "value": "{f8}" + }, + "value": { + "type": "StringLiteral", + "start": 1582, + "end": 1586, + "loc": { + "start": { + "line": 60, + "column": 14 + }, + "end": { + "line": 60, + "column": 18 + } + }, + "extra": { + "rawValue": "f8", + "raw": "\"f8\"" + }, + "value": "f8" + } + }, + { + "type": "ObjectProperty", + "start": 1595, + "end": 1607, + "loc": { + "start": { + "line": 61, + "column": 6 + }, + "end": { + "line": 61, + "column": 18 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "StringLiteral", + "start": 1595, + "end": 1601, + "loc": { + "start": { + "line": 61, + "column": 6 + }, + "end": { + "line": 61, + "column": 12 + } + }, + "extra": { + "rawValue": "{f9}", + "raw": "\"{f9}\"" + }, + "value": "{f9}" + }, + "value": { + "type": "StringLiteral", + "start": 1603, + "end": 1607, + "loc": { + "start": { + "line": 61, + "column": 14 + }, + "end": { + "line": 61, + "column": 18 + } + }, + "extra": { + "rawValue": "f9", + "raw": "\"f9\"" + }, + "value": "f9" + } + }, + { + "type": "ObjectProperty", + "start": 1616, + "end": 1630, + "loc": { + "start": { + "line": 62, + "column": 6 + }, + "end": { + "line": 62, + "column": 20 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "StringLiteral", + "start": 1616, + "end": 1623, + "loc": { + "start": { + "line": 62, + "column": 6 + }, + "end": { + "line": 62, + "column": 13 + } + }, + "extra": { + "rawValue": "{f10}", + "raw": "\"{f10}\"" + }, + "value": "{f10}" + }, + "value": { + "type": "StringLiteral", + "start": 1625, + "end": 1630, + "loc": { + "start": { + "line": 62, + "column": 15 + }, + "end": { + "line": 62, + "column": 20 + } + }, + "extra": { + "rawValue": "f10", + "raw": "\"f10\"" + }, + "value": "f10" + } + }, + { + "type": "ObjectProperty", + "start": 1639, + "end": 1653, + "loc": { + "start": { + "line": 63, + "column": 6 + }, + "end": { + "line": 63, + "column": 20 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "StringLiteral", + "start": 1639, + "end": 1646, + "loc": { + "start": { + "line": 63, + "column": 6 + }, + "end": { + "line": 63, + "column": 13 + } + }, + "extra": { + "rawValue": "{f11}", + "raw": "\"{f11}\"" + }, + "value": "{f11}" + }, + "value": { + "type": "StringLiteral", + "start": 1648, + "end": 1653, + "loc": { + "start": { + "line": 63, + "column": 15 + }, + "end": { + "line": 63, + "column": 20 + } + }, + "extra": { + "rawValue": "f11", + "raw": "\"f11\"" + }, + "value": "f11" + } + }, + { + "type": "ObjectProperty", + "start": 1662, + "end": 1676, + "loc": { + "start": { + "line": 64, + "column": 6 + }, + "end": { + "line": 64, + "column": 20 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "StringLiteral", + "start": 1662, + "end": 1669, + "loc": { + "start": { + "line": 64, + "column": 6 + }, + "end": { + "line": 64, + "column": 13 + } + }, + "extra": { + "rawValue": "{f12}", + "raw": "\"{f12}\"" + }, + "value": "{f12}" + }, + "value": { + "type": "StringLiteral", + "start": 1671, + "end": 1676, + "loc": { + "start": { + "line": 64, + "column": 15 + }, + "end": { + "line": 64, + "column": 20 + } + }, + "extra": { + "rawValue": "f12", + "raw": "\"f12\"" + }, + "value": "f12" + } + }, + { + "type": "ObjectProperty", + "start": 1685, + "end": 1706, + "loc": { + "start": { + "line": 65, + "column": 6 + }, + "end": { + "line": 65, + "column": 27 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "StringLiteral", + "start": 1685, + "end": 1701, + "loc": { + "start": { + "line": 65, + "column": 6 + }, + "end": { + "line": 65, + "column": 22 + } + }, + "extra": { + "rawValue": "{numpaddivide}", + "raw": "'{numpaddivide}'" + }, + "value": "{numpaddivide}" + }, + "value": { + "type": "StringLiteral", + "start": 1703, + "end": 1706, + "loc": { + "start": { + "line": 65, + "column": 24 + }, + "end": { + "line": 65, + "column": 27 + } + }, + "extra": { + "rawValue": "/", + "raw": "'/'" + }, + "value": "/" + } + }, + { + "type": "ObjectProperty", + "start": 1715, + "end": 1734, + "loc": { + "start": { + "line": 66, + "column": 6 + }, + "end": { + "line": 66, + "column": 25 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "StringLiteral", + "start": 1715, + "end": 1726, + "loc": { + "start": { + "line": 66, + "column": 6 + }, + "end": { + "line": 66, + "column": 17 + } + }, + "extra": { + "rawValue": "{numlock}", + "raw": "'{numlock}'" + }, + "value": "{numlock}" + }, + "value": { + "type": "StringLiteral", + "start": 1728, + "end": 1734, + "loc": { + "start": { + "line": 66, + "column": 19 + }, + "end": { + "line": 66, + "column": 25 + } + }, + "extra": { + "rawValue": "lock", + "raw": "'lock'" + }, + "value": "lock" + } + }, + { + "type": "ObjectProperty", + "start": 1743, + "end": 1759, + "loc": { + "start": { + "line": 67, + "column": 6 + }, + "end": { + "line": 67, + "column": 22 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "StringLiteral", + "start": 1743, + "end": 1754, + "loc": { + "start": { + "line": 67, + "column": 6 + }, + "end": { + "line": 67, + "column": 17 + } + }, + "extra": { + "rawValue": "{arrowup}", + "raw": "\"{arrowup}\"" + }, + "value": "{arrowup}" + }, + "value": { + "type": "StringLiteral", + "start": 1756, + "end": 1759, + "loc": { + "start": { + "line": 67, + "column": 19 + }, + "end": { + "line": 67, + "column": 22 + } + }, + "extra": { + "rawValue": "↑", + "raw": "\"↑\"" + }, + "value": "↑" + } + }, + { + "type": "ObjectProperty", + "start": 1768, + "end": 1786, + "loc": { + "start": { + "line": 68, + "column": 6 + }, + "end": { + "line": 68, + "column": 24 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "StringLiteral", + "start": 1768, + "end": 1781, + "loc": { + "start": { + "line": 68, + "column": 6 + }, + "end": { + "line": 68, + "column": 19 + } + }, + "extra": { + "rawValue": "{arrowleft}", + "raw": "\"{arrowleft}\"" + }, + "value": "{arrowleft}" + }, + "value": { + "type": "StringLiteral", + "start": 1783, + "end": 1786, + "loc": { + "start": { + "line": 68, + "column": 21 + }, + "end": { + "line": 68, + "column": 24 + } + }, + "extra": { + "rawValue": "←", + "raw": "\"←\"" + }, + "value": "←" + } + }, + { + "type": "ObjectProperty", + "start": 1795, + "end": 1813, + "loc": { + "start": { + "line": 69, + "column": 6 + }, + "end": { + "line": 69, + "column": 24 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "StringLiteral", + "start": 1795, + "end": 1808, + "loc": { + "start": { + "line": 69, + "column": 6 + }, + "end": { + "line": 69, + "column": 19 + } + }, + "extra": { + "rawValue": "{arrowdown}", + "raw": "\"{arrowdown}\"" + }, + "value": "{arrowdown}" + }, + "value": { + "type": "StringLiteral", + "start": 1810, + "end": 1813, + "loc": { + "start": { + "line": 69, + "column": 21 + }, + "end": { + "line": 69, + "column": 24 + } + }, + "extra": { + "rawValue": "↓", + "raw": "\"↓\"" + }, + "value": "↓" + } + }, + { + "type": "ObjectProperty", + "start": 1822, + "end": 1841, + "loc": { + "start": { + "line": 70, + "column": 6 + }, + "end": { + "line": 70, + "column": 25 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "StringLiteral", + "start": 1822, + "end": 1836, + "loc": { + "start": { + "line": 70, + "column": 6 + }, + "end": { + "line": 70, + "column": 20 + } + }, + "extra": { + "rawValue": "{arrowright}", + "raw": "\"{arrowright}\"" + }, + "value": "{arrowright}" + }, + "value": { + "type": "StringLiteral", + "start": 1838, + "end": 1841, + "loc": { + "start": { + "line": 70, + "column": 22 + }, + "end": { + "line": 70, + "column": 25 + } + }, + "extra": { + "rawValue": "→", + "raw": "\"→\"" + }, + "value": "→" + } + }, + { + "type": "ObjectProperty", + "start": 1850, + "end": 1869, + "loc": { + "start": { + "line": 71, + "column": 6 + }, + "end": { + "line": 71, + "column": 25 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "StringLiteral", + "start": 1850, + "end": 1860, + "loc": { + "start": { + "line": 71, + "column": 6 + }, + "end": { + "line": 71, + "column": 16 + } + }, + "extra": { + "rawValue": "{prtscr}", + "raw": "\"{prtscr}\"" + }, + "value": "{prtscr}" + }, + "value": { + "type": "StringLiteral", + "start": 1862, + "end": 1869, + "loc": { + "start": { + "line": 71, + "column": 18 + }, + "end": { + "line": 71, + "column": 25 + } + }, + "extra": { + "rawValue": "print", + "raw": "\"print\"" + }, + "value": "print" + } + }, + { + "type": "ObjectProperty", + "start": 1878, + "end": 1902, + "loc": { + "start": { + "line": 72, + "column": 6 + }, + "end": { + "line": 72, + "column": 30 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "StringLiteral", + "start": 1878, + "end": 1892, + "loc": { + "start": { + "line": 72, + "column": 6 + }, + "end": { + "line": 72, + "column": 20 + } + }, + "extra": { + "rawValue": "{scrolllock}", + "raw": "\"{scrolllock}\"" + }, + "value": "{scrolllock}" + }, + "value": { + "type": "StringLiteral", + "start": 1894, + "end": 1902, + "loc": { + "start": { + "line": 72, + "column": 22 + }, + "end": { + "line": 72, + "column": 30 + } + }, + "extra": { + "rawValue": "scroll", + "raw": "\"scroll\"" + }, + "value": "scroll" + } + }, + { + "type": "ObjectProperty", + "start": 1911, + "end": 1929, + "loc": { + "start": { + "line": 73, + "column": 6 + }, + "end": { + "line": 73, + "column": 24 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "StringLiteral", + "start": 1911, + "end": 1920, + "loc": { + "start": { + "line": 73, + "column": 6 + }, + "end": { + "line": 73, + "column": 15 + } + }, + "extra": { + "rawValue": "{pause}", + "raw": "\"{pause}\"" + }, + "value": "{pause}" + }, + "value": { + "type": "StringLiteral", + "start": 1922, + "end": 1929, + "loc": { + "start": { + "line": 73, + "column": 17 + }, + "end": { + "line": 73, + "column": 24 + } + }, + "extra": { + "rawValue": "pause", + "raw": "\"pause\"" + }, + "value": "pause" + } + }, + { + "type": "ObjectProperty", + "start": 1938, + "end": 1955, + "loc": { + "start": { + "line": 74, + "column": 6 + }, + "end": { + "line": 74, + "column": 23 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "StringLiteral", + "start": 1938, + "end": 1948, + "loc": { + "start": { + "line": 74, + "column": 6 + }, + "end": { + "line": 74, + "column": 16 + } + }, + "extra": { + "rawValue": "{insert}", + "raw": "\"{insert}\"" + }, + "value": "{insert}" + }, + "value": { + "type": "StringLiteral", + "start": 1950, + "end": 1955, + "loc": { + "start": { + "line": 74, + "column": 18 + }, + "end": { + "line": 74, + "column": 23 + } + }, + "extra": { + "rawValue": "ins", + "raw": "\"ins\"" + }, + "value": "ins" + } + }, + { + "type": "ObjectProperty", + "start": 1964, + "end": 1980, + "loc": { + "start": { + "line": 75, + "column": 6 + }, + "end": { + "line": 75, + "column": 22 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "StringLiteral", + "start": 1964, + "end": 1972, + "loc": { + "start": { + "line": 75, + "column": 6 + }, + "end": { + "line": 75, + "column": 14 + } + }, + "extra": { + "rawValue": "{home}", + "raw": "\"{home}\"" + }, + "value": "{home}" + }, + "value": { + "type": "StringLiteral", + "start": 1974, + "end": 1980, + "loc": { + "start": { + "line": 75, + "column": 16 + }, + "end": { + "line": 75, + "column": 22 + } + }, + "extra": { + "rawValue": "home", + "raw": "\"home\"" + }, + "value": "home" + } + }, + { + "type": "ObjectProperty", + "start": 1989, + "end": 2005, + "loc": { + "start": { + "line": 76, + "column": 6 + }, + "end": { + "line": 76, + "column": 22 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "StringLiteral", + "start": 1989, + "end": 1999, + "loc": { + "start": { + "line": 76, + "column": 6 + }, + "end": { + "line": 76, + "column": 16 + } + }, + "extra": { + "rawValue": "{pageup}", + "raw": "\"{pageup}\"" + }, + "value": "{pageup}" + }, + "value": { + "type": "StringLiteral", + "start": 2001, + "end": 2005, + "loc": { + "start": { + "line": 76, + "column": 18 + }, + "end": { + "line": 76, + "column": 22 + } + }, + "extra": { + "rawValue": "up", + "raw": "\"up\"" + }, + "value": "up" + } + }, + { + "type": "ObjectProperty", + "start": 2014, + "end": 2031, + "loc": { + "start": { + "line": 77, + "column": 6 + }, + "end": { + "line": 77, + "column": 23 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "StringLiteral", + "start": 2014, + "end": 2024, + "loc": { + "start": { + "line": 77, + "column": 6 + }, + "end": { + "line": 77, + "column": 16 + } + }, + "extra": { + "rawValue": "{delete}", + "raw": "\"{delete}\"" + }, + "value": "{delete}" + }, + "value": { + "type": "StringLiteral", + "start": 2026, + "end": 2031, + "loc": { + "start": { + "line": 77, + "column": 18 + }, + "end": { + "line": 77, + "column": 23 + } + }, + "extra": { + "rawValue": "del", + "raw": "\"del\"" + }, + "value": "del" + } + }, + { + "type": "ObjectProperty", + "start": 2040, + "end": 2054, + "loc": { + "start": { + "line": 78, + "column": 6 + }, + "end": { + "line": 78, + "column": 20 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "StringLiteral", + "start": 2040, + "end": 2047, + "loc": { + "start": { + "line": 78, + "column": 6 + }, + "end": { + "line": 78, + "column": 13 + } + }, + "extra": { + "rawValue": "{end}", + "raw": "\"{end}\"" + }, + "value": "{end}" + }, + "value": { + "type": "StringLiteral", + "start": 2049, + "end": 2054, + "loc": { + "start": { + "line": 78, + "column": 15 + }, + "end": { + "line": 78, + "column": 20 + } + }, + "extra": { + "rawValue": "end", + "raw": "\"end\"" + }, + "value": "end" + } + }, + { + "type": "ObjectProperty", + "start": 2063, + "end": 2083, + "loc": { + "start": { + "line": 79, + "column": 6 + }, + "end": { + "line": 79, + "column": 26 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "StringLiteral", + "start": 2063, + "end": 2075, + "loc": { + "start": { + "line": 79, + "column": 6 + }, + "end": { + "line": 79, + "column": 18 + } + }, + "extra": { + "rawValue": "{pagedown}", + "raw": "\"{pagedown}\"" + }, + "value": "{pagedown}" + }, + "value": { + "type": "StringLiteral", + "start": 2077, + "end": 2083, + "loc": { + "start": { + "line": 79, + "column": 20 + }, + "end": { + "line": 79, + "column": 26 + } + }, + "extra": { + "rawValue": "down", + "raw": "\"down\"" + }, + "value": "down" + } + }, + { + "type": "ObjectProperty", + "start": 2092, + "end": 2115, + "loc": { + "start": { + "line": 80, + "column": 6 + }, + "end": { + "line": 80, + "column": 29 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "StringLiteral", + "start": 2092, + "end": 2110, + "loc": { + "start": { + "line": 80, + "column": 6 + }, + "end": { + "line": 80, + "column": 24 + } + }, + "extra": { + "rawValue": "{numpadmultiply}", + "raw": "\"{numpadmultiply}\"" + }, + "value": "{numpadmultiply}" + }, + "value": { + "type": "StringLiteral", + "start": 2112, + "end": 2115, + "loc": { + "start": { + "line": 80, + "column": 26 + }, + "end": { + "line": 80, + "column": 29 + } + }, + "extra": { + "rawValue": "*", + "raw": "\"*\"" + }, + "value": "*" + } + }, + { + "type": "ObjectProperty", + "start": 2124, + "end": 2147, + "loc": { + "start": { + "line": 81, + "column": 6 + }, + "end": { + "line": 81, + "column": 29 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "StringLiteral", + "start": 2124, + "end": 2142, + "loc": { + "start": { + "line": 81, + "column": 6 + }, + "end": { + "line": 81, + "column": 24 + } + }, + "extra": { + "rawValue": "{numpadsubtract}", + "raw": "\"{numpadsubtract}\"" + }, + "value": "{numpadsubtract}" + }, + "value": { + "type": "StringLiteral", + "start": 2144, + "end": 2147, + "loc": { + "start": { + "line": 81, + "column": 26 + }, + "end": { + "line": 81, + "column": 29 + } + }, + "extra": { + "rawValue": "-", + "raw": "\"-\"" + }, + "value": "-" + } + }, + { + "type": "ObjectProperty", + "start": 2156, + "end": 2174, + "loc": { + "start": { + "line": 82, + "column": 6 + }, + "end": { + "line": 82, + "column": 24 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "StringLiteral", + "start": 2156, + "end": 2169, + "loc": { + "start": { + "line": 82, + "column": 6 + }, + "end": { + "line": 82, + "column": 19 + } + }, + "extra": { + "rawValue": "{numpadadd}", + "raw": "\"{numpadadd}\"" + }, + "value": "{numpadadd}" + }, + "value": { + "type": "StringLiteral", + "start": 2171, + "end": 2174, + "loc": { + "start": { + "line": 82, + "column": 21 + }, + "end": { + "line": 82, + "column": 24 + } + }, + "extra": { + "rawValue": "+", + "raw": "\"+\"" + }, + "value": "+" + } + }, + { + "type": "ObjectProperty", + "start": 2183, + "end": 2207, + "loc": { + "start": { + "line": 83, + "column": 6 + }, + "end": { + "line": 83, + "column": 30 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "StringLiteral", + "start": 2183, + "end": 2198, + "loc": { + "start": { + "line": 83, + "column": 6 + }, + "end": { + "line": 83, + "column": 21 + } + }, + "extra": { + "rawValue": "{numpadenter}", + "raw": "\"{numpadenter}\"" + }, + "value": "{numpadenter}" + }, + "value": { + "type": "StringLiteral", + "start": 2200, + "end": 2207, + "loc": { + "start": { + "line": 83, + "column": 23 + }, + "end": { + "line": 83, + "column": 30 + } + }, + "extra": { + "rawValue": "enter", + "raw": "\"enter\"" + }, + "value": "enter" + } + }, + { + "type": "ObjectProperty", + "start": 2216, + "end": 2231, + "loc": { + "start": { + "line": 84, + "column": 6 + }, + "end": { + "line": 84, + "column": 21 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "StringLiteral", + "start": 2216, + "end": 2226, + "loc": { + "start": { + "line": 84, + "column": 6 + }, + "end": { + "line": 84, + "column": 16 + } + }, + "extra": { + "rawValue": "{period}", + "raw": "\"{period}\"" + }, + "value": "{period}" + }, + "value": { + "type": "StringLiteral", + "start": 2228, + "end": 2231, + "loc": { + "start": { + "line": 84, + "column": 18 + }, + "end": { + "line": 84, + "column": 21 + } + }, + "extra": { + "rawValue": ".", + "raw": "\".\"" + }, + "value": "." + } + }, + { + "type": "ObjectProperty", + "start": 2240, + "end": 2262, + "loc": { + "start": { + "line": 85, + "column": 6 + }, + "end": { + "line": 85, + "column": 28 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "StringLiteral", + "start": 2240, + "end": 2257, + "loc": { + "start": { + "line": 85, + "column": 6 + }, + "end": { + "line": 85, + "column": 23 + } + }, + "extra": { + "rawValue": "{numpaddecimal}", + "raw": "\"{numpaddecimal}\"" + }, + "value": "{numpaddecimal}" + }, + "value": { + "type": "StringLiteral", + "start": 2259, + "end": 2262, + "loc": { + "start": { + "line": 85, + "column": 25 + }, + "end": { + "line": 85, + "column": 28 + } + }, + "extra": { + "rawValue": ".", + "raw": "\".\"" + }, + "value": "." + } + }, + { + "type": "ObjectProperty", + "start": 2271, + "end": 2287, + "loc": { + "start": { + "line": 86, + "column": 6 + }, + "end": { + "line": 86, + "column": 22 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "StringLiteral", + "start": 2271, + "end": 2282, + "loc": { + "start": { + "line": 86, + "column": 6 + }, + "end": { + "line": 86, + "column": 17 + } + }, + "extra": { + "rawValue": "{numpad0}", + "raw": "\"{numpad0}\"" + }, + "value": "{numpad0}" + }, + "value": { + "type": "StringLiteral", + "start": 2284, + "end": 2287, + "loc": { + "start": { + "line": 86, + "column": 19 + }, + "end": { + "line": 86, + "column": 22 + } + }, + "extra": { + "rawValue": "0", + "raw": "\"0\"" + }, + "value": "0" + } + }, + { + "type": "ObjectProperty", + "start": 2296, + "end": 2312, + "loc": { + "start": { + "line": 87, + "column": 6 + }, + "end": { + "line": 87, + "column": 22 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "StringLiteral", + "start": 2296, + "end": 2307, + "loc": { + "start": { + "line": 87, + "column": 6 + }, + "end": { + "line": 87, + "column": 17 + } + }, + "extra": { + "rawValue": "{numpad1}", + "raw": "\"{numpad1}\"" + }, + "value": "{numpad1}" + }, + "value": { + "type": "StringLiteral", + "start": 2309, + "end": 2312, + "loc": { + "start": { + "line": 87, + "column": 19 + }, + "end": { + "line": 87, + "column": 22 + } + }, + "extra": { + "rawValue": "1", + "raw": "\"1\"" + }, + "value": "1" + } + }, + { + "type": "ObjectProperty", + "start": 2321, + "end": 2337, + "loc": { + "start": { + "line": 88, + "column": 6 + }, + "end": { + "line": 88, + "column": 22 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "StringLiteral", + "start": 2321, + "end": 2332, + "loc": { + "start": { + "line": 88, + "column": 6 + }, + "end": { + "line": 88, + "column": 17 + } + }, + "extra": { + "rawValue": "{numpad2}", + "raw": "\"{numpad2}\"" + }, + "value": "{numpad2}" + }, + "value": { + "type": "StringLiteral", + "start": 2334, + "end": 2337, + "loc": { + "start": { + "line": 88, + "column": 19 + }, + "end": { + "line": 88, + "column": 22 + } + }, + "extra": { + "rawValue": "2", + "raw": "\"2\"" + }, + "value": "2" + } + }, + { + "type": "ObjectProperty", + "start": 2346, + "end": 2362, + "loc": { + "start": { + "line": 89, + "column": 6 + }, + "end": { + "line": 89, + "column": 22 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "StringLiteral", + "start": 2346, + "end": 2357, + "loc": { + "start": { + "line": 89, + "column": 6 + }, + "end": { + "line": 89, + "column": 17 + } + }, + "extra": { + "rawValue": "{numpad3}", + "raw": "\"{numpad3}\"" + }, + "value": "{numpad3}" + }, + "value": { + "type": "StringLiteral", + "start": 2359, + "end": 2362, + "loc": { + "start": { + "line": 89, + "column": 19 + }, + "end": { + "line": 89, + "column": 22 + } + }, + "extra": { + "rawValue": "3", + "raw": "\"3\"" + }, + "value": "3" + } + }, + { + "type": "ObjectProperty", + "start": 2371, + "end": 2387, + "loc": { + "start": { + "line": 90, + "column": 6 + }, + "end": { + "line": 90, + "column": 22 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "StringLiteral", + "start": 2371, + "end": 2382, + "loc": { + "start": { + "line": 90, + "column": 6 + }, + "end": { + "line": 90, + "column": 17 + } + }, + "extra": { + "rawValue": "{numpad4}", + "raw": "\"{numpad4}\"" + }, + "value": "{numpad4}" + }, + "value": { + "type": "StringLiteral", + "start": 2384, + "end": 2387, + "loc": { + "start": { + "line": 90, + "column": 19 + }, + "end": { + "line": 90, + "column": 22 + } + }, + "extra": { + "rawValue": "4", + "raw": "\"4\"" + }, + "value": "4" + } + }, + { + "type": "ObjectProperty", + "start": 2396, + "end": 2412, + "loc": { + "start": { + "line": 91, + "column": 6 + }, + "end": { + "line": 91, + "column": 22 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "StringLiteral", + "start": 2396, + "end": 2407, + "loc": { + "start": { + "line": 91, + "column": 6 + }, + "end": { + "line": 91, + "column": 17 + } + }, + "extra": { + "rawValue": "{numpad5}", + "raw": "\"{numpad5}\"" + }, + "value": "{numpad5}" + }, + "value": { + "type": "StringLiteral", + "start": 2409, + "end": 2412, + "loc": { + "start": { + "line": 91, + "column": 19 + }, + "end": { + "line": 91, + "column": 22 + } + }, + "extra": { + "rawValue": "5", + "raw": "\"5\"" + }, + "value": "5" + } + }, + { + "type": "ObjectProperty", + "start": 2421, + "end": 2437, + "loc": { + "start": { + "line": 92, + "column": 6 + }, + "end": { + "line": 92, + "column": 22 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "StringLiteral", + "start": 2421, + "end": 2432, + "loc": { + "start": { + "line": 92, + "column": 6 + }, + "end": { + "line": 92, + "column": 17 + } + }, + "extra": { + "rawValue": "{numpad6}", + "raw": "\"{numpad6}\"" + }, + "value": "{numpad6}" + }, + "value": { + "type": "StringLiteral", + "start": 2434, + "end": 2437, + "loc": { + "start": { + "line": 92, + "column": 19 + }, + "end": { + "line": 92, + "column": 22 + } + }, + "extra": { + "rawValue": "6", + "raw": "\"6\"" + }, + "value": "6" + } + }, + { + "type": "ObjectProperty", + "start": 2446, + "end": 2462, + "loc": { + "start": { + "line": 93, + "column": 6 + }, + "end": { + "line": 93, + "column": 22 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "StringLiteral", + "start": 2446, + "end": 2457, + "loc": { + "start": { + "line": 93, + "column": 6 + }, + "end": { + "line": 93, + "column": 17 + } + }, + "extra": { + "rawValue": "{numpad7}", + "raw": "\"{numpad7}\"" + }, + "value": "{numpad7}" + }, + "value": { + "type": "StringLiteral", + "start": 2459, + "end": 2462, + "loc": { + "start": { + "line": 93, + "column": 19 + }, + "end": { + "line": 93, + "column": 22 + } + }, + "extra": { + "rawValue": "7", + "raw": "\"7\"" + }, + "value": "7" + } + }, + { + "type": "ObjectProperty", + "start": 2471, + "end": 2487, + "loc": { + "start": { + "line": 94, + "column": 6 + }, + "end": { + "line": 94, + "column": 22 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "StringLiteral", + "start": 2471, + "end": 2482, + "loc": { + "start": { + "line": 94, + "column": 6 + }, + "end": { + "line": 94, + "column": 17 + } + }, + "extra": { + "rawValue": "{numpad8}", + "raw": "\"{numpad8}\"" + }, + "value": "{numpad8}" + }, + "value": { + "type": "StringLiteral", + "start": 2484, + "end": 2487, + "loc": { + "start": { + "line": 94, + "column": 19 + }, + "end": { + "line": 94, + "column": 22 + } + }, + "extra": { + "rawValue": "8", + "raw": "\"8\"" + }, + "value": "8" + } + }, + { + "type": "ObjectProperty", + "start": 2496, + "end": 2512, + "loc": { + "start": { + "line": 95, + "column": 6 + }, + "end": { + "line": 95, + "column": 22 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "StringLiteral", + "start": 2496, + "end": 2507, + "loc": { + "start": { + "line": 95, + "column": 6 + }, + "end": { + "line": 95, + "column": 17 + } + }, + "extra": { + "rawValue": "{numpad9}", + "raw": "\"{numpad9}\"" + }, + "value": "{numpad9}" + }, + "value": { + "type": "StringLiteral", + "start": 2509, + "end": 2512, + "loc": { + "start": { + "line": 95, + "column": 19 + }, + "end": { + "line": 95, + "column": 22 + } + }, + "extra": { + "rawValue": "9", + "raw": "\"9\"" + }, + "value": "9" + } + } + ] + } + } + ], + "directives": [], + "trailingComments": null + }, + "leadingComments": [ + { + "type": "CommentBlock", + "value": "*\r\n * Default button display labels\r\n ", + "start": 908, + "end": 954, + "loc": { + "start": { + "line": 32, + "column": 2 + }, + "end": { + "line": 34, + "column": 5 + } + } + } + ], + "trailingComments": [ + { + "type": "CommentBlock", + "value": "*\r\n * Returns the display (label) name for a given button\r\n * \r\n * @param {string} button The button's layout name\r\n * @param {object} display The provided display option\r\n * @param {boolean} mergeDisplay Whether the provided param value should be merged with the default one.\r\n ", + "start": 2530, + "end": 2828, + "loc": { + "start": { + "line": 98, + "column": 2 + }, + "end": { + "line": 104, + "column": 5 + } + } + } + ] + }, + { + "type": "ClassProperty", + "start": 2832, + "end": 3104, + "loc": { + "start": { + "line": 105, + "column": 2 + }, + "end": { + "line": 113, + "column": 3 + } + }, + "static": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 2832, + "end": 2852, + "loc": { + "start": { + "line": 105, + "column": 2 + }, + "end": { + "line": 105, + "column": 22 + }, + "identifierName": "getButtonDisplayName" + }, + "name": "getButtonDisplayName", + "leadingComments": null + }, + "value": { + "type": "ArrowFunctionExpression", + "start": 2855, + "end": 3104, + "loc": { + "start": { + "line": 105, + "column": 25 + }, + "end": { + "line": 113, + "column": 3 + } + }, + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 2856, + "end": 2862, + "loc": { + "start": { + "line": 105, + "column": 26 + }, + "end": { + "line": 105, + "column": 32 + }, + "identifierName": "button" + }, + "name": "button" + }, + { + "type": "Identifier", + "start": 2864, + "end": 2871, + "loc": { + "start": { + "line": 105, + "column": 34 + }, + "end": { + "line": 105, + "column": 41 + }, + "identifierName": "display" + }, + "name": "display" + }, + { + "type": "Identifier", + "start": 2873, + "end": 2885, + "loc": { + "start": { + "line": 105, + "column": 43 + }, + "end": { + "line": 105, + "column": 55 + }, + "identifierName": "mergeDisplay" + }, + "name": "mergeDisplay" + } + ], + "body": { + "type": "BlockStatement", + "start": 2890, + "end": 3104, + "loc": { + "start": { + "line": 105, + "column": 60 + }, + "end": { + "line": 113, + "column": 3 + } + }, + "body": [ + { + "type": "IfStatement", + "start": 2897, + "end": 3058, + "loc": { + "start": { + "line": 106, + "column": 4 + }, + "end": { + "line": 110, + "column": 5 + } + }, + "test": { + "type": "Identifier", + "start": 2900, + "end": 2912, + "loc": { + "start": { + "line": 106, + "column": 7 + }, + "end": { + "line": 106, + "column": 19 + }, + "identifierName": "mergeDisplay" + }, + "name": "mergeDisplay" + }, + "consequent": { + "type": "BlockStatement", + "start": 2913, + "end": 2991, + "loc": { + "start": { + "line": 106, + "column": 20 + }, + "end": { + "line": 108, + "column": 5 + } + }, + "body": [ + { + "type": "ExpressionStatement", + "start": 2922, + "end": 2984, + "loc": { + "start": { + "line": 107, + "column": 6 + }, + "end": { + "line": 107, + "column": 68 + } + }, + "expression": { + "type": "AssignmentExpression", + "start": 2922, + "end": 2983, + "loc": { + "start": { + "line": 107, + "column": 6 + }, + "end": { + "line": 107, + "column": 67 + } + }, + "operator": "=", + "left": { + "type": "Identifier", + "start": 2922, + "end": 2929, + "loc": { + "start": { + "line": 107, + "column": 6 + }, + "end": { + "line": 107, + "column": 13 + }, + "identifierName": "display" + }, + "name": "display" + }, + "right": { + "type": "CallExpression", + "start": 2932, + "end": 2983, + "loc": { + "start": { + "line": 107, + "column": 16 + }, + "end": { + "line": 107, + "column": 67 + } + }, + "callee": { + "type": "MemberExpression", + "start": 2932, + "end": 2945, + "loc": { + "start": { + "line": 107, + "column": 16 + }, + "end": { + "line": 107, + "column": 29 + } + }, + "object": { + "type": "Identifier", + "start": 2932, + "end": 2938, + "loc": { + "start": { + "line": 107, + "column": 16 + }, + "end": { + "line": 107, + "column": 22 + }, + "identifierName": "Object" + }, + "name": "Object" + }, + "property": { + "type": "Identifier", + "start": 2939, + "end": 2945, + "loc": { + "start": { + "line": 107, + "column": 23 + }, + "end": { + "line": 107, + "column": 29 + }, + "identifierName": "assign" + }, + "name": "assign" + }, + "computed": false + }, + "arguments": [ + { + "type": "ObjectExpression", + "start": 2946, + "end": 2948, + "loc": { + "start": { + "line": 107, + "column": 30 + }, + "end": { + "line": 107, + "column": 32 + } + }, + "properties": [] + }, + { + "type": "CallExpression", + "start": 2950, + "end": 2973, + "loc": { + "start": { + "line": 107, + "column": 34 + }, + "end": { + "line": 107, + "column": 57 + } + }, + "callee": { + "type": "MemberExpression", + "start": 2950, + "end": 2971, + "loc": { + "start": { + "line": 107, + "column": 34 + }, + "end": { + "line": 107, + "column": 55 + } + }, + "object": { + "type": "ThisExpression", + "start": 2950, + "end": 2954, + "loc": { + "start": { + "line": 107, + "column": 34 + }, + "end": { + "line": 107, + "column": 38 + } + } + }, + "property": { + "type": "Identifier", + "start": 2955, + "end": 2971, + "loc": { + "start": { + "line": 107, + "column": 39 + }, + "end": { + "line": 107, + "column": 55 + }, + "identifierName": "getDefaultDiplay" + }, + "name": "getDefaultDiplay" + }, + "computed": false + }, + "arguments": [] + }, + { + "type": "Identifier", + "start": 2975, + "end": 2982, + "loc": { + "start": { + "line": 107, + "column": 59 + }, + "end": { + "line": 107, + "column": 66 + }, + "identifierName": "display" + }, + "name": "display" + } + ] + } + } + } + ], + "directives": [] + }, + "alternate": { + "type": "BlockStatement", + "start": 2997, + "end": 3058, + "loc": { + "start": { + "line": 108, + "column": 11 + }, + "end": { + "line": 110, + "column": 5 + } + }, + "body": [ + { + "type": "ExpressionStatement", + "start": 3006, + "end": 3051, + "loc": { + "start": { + "line": 109, + "column": 6 + }, + "end": { + "line": 109, + "column": 51 + } + }, + "expression": { + "type": "AssignmentExpression", + "start": 3006, + "end": 3050, + "loc": { + "start": { + "line": 109, + "column": 6 + }, + "end": { + "line": 109, + "column": 50 + } + }, + "operator": "=", + "left": { + "type": "Identifier", + "start": 3006, + "end": 3013, + "loc": { + "start": { + "line": 109, + "column": 6 + }, + "end": { + "line": 109, + "column": 13 + }, + "identifierName": "display" + }, + "name": "display" + }, + "right": { + "type": "LogicalExpression", + "start": 3016, + "end": 3050, + "loc": { + "start": { + "line": 109, + "column": 16 + }, + "end": { + "line": 109, + "column": 50 + } + }, + "left": { + "type": "Identifier", + "start": 3016, + "end": 3023, + "loc": { + "start": { + "line": 109, + "column": 16 + }, + "end": { + "line": 109, + "column": 23 + }, + "identifierName": "display" + }, + "name": "display" + }, + "operator": "||", + "right": { + "type": "CallExpression", + "start": 3027, + "end": 3050, + "loc": { + "start": { + "line": 109, + "column": 27 + }, + "end": { + "line": 109, + "column": 50 + } + }, + "callee": { + "type": "MemberExpression", + "start": 3027, + "end": 3048, + "loc": { + "start": { + "line": 109, + "column": 27 + }, + "end": { + "line": 109, + "column": 48 + } + }, + "object": { + "type": "ThisExpression", + "start": 3027, + "end": 3031, + "loc": { + "start": { + "line": 109, + "column": 27 + }, + "end": { + "line": 109, + "column": 31 + } + } + }, + "property": { + "type": "Identifier", + "start": 3032, + "end": 3048, + "loc": { + "start": { + "line": 109, + "column": 32 + }, + "end": { + "line": 109, + "column": 48 + }, + "identifierName": "getDefaultDiplay" + }, + "name": "getDefaultDiplay" + }, + "computed": false + }, + "arguments": [] + } + } + } + } + ], + "directives": [] + } + }, + { + "type": "ReturnStatement", + "start": 3066, + "end": 3099, + "loc": { + "start": { + "line": 112, + "column": 4 + }, + "end": { + "line": 112, + "column": 37 + } + }, + "argument": { + "type": "LogicalExpression", + "start": 3073, + "end": 3098, + "loc": { + "start": { + "line": 112, + "column": 11 + }, + "end": { + "line": 112, + "column": 36 + } + }, + "left": { + "type": "MemberExpression", + "start": 3073, + "end": 3088, + "loc": { + "start": { + "line": 112, + "column": 11 + }, + "end": { + "line": 112, + "column": 26 + } + }, + "object": { + "type": "Identifier", + "start": 3073, + "end": 3080, + "loc": { + "start": { + "line": 112, + "column": 11 + }, + "end": { + "line": 112, + "column": 18 + }, + "identifierName": "display" + }, + "name": "display" + }, + "property": { + "type": "Identifier", + "start": 3081, + "end": 3087, + "loc": { + "start": { + "line": 112, + "column": 19 + }, + "end": { + "line": 112, + "column": 25 + }, + "identifierName": "button" + }, + "name": "button" + }, + "computed": true + }, + "operator": "||", + "right": { + "type": "Identifier", + "start": 3092, + "end": 3098, + "loc": { + "start": { + "line": 112, + "column": 30 + }, + "end": { + "line": 112, + "column": 36 + }, + "identifierName": "button" + }, + "name": "button" + } + } + } + ], + "directives": [], + "trailingComments": null + }, + "trailingComments": null + }, + "leadingComments": [ + { + "type": "CommentBlock", + "value": "*\r\n * Returns the display (label) name for a given button\r\n * \r\n * @param {string} button The button's layout name\r\n * @param {object} display The provided display option\r\n * @param {boolean} mergeDisplay Whether the provided param value should be merged with the default one.\r\n ", + "start": 2530, + "end": 2828, + "loc": { + "start": { + "line": 98, + "column": 2 + }, + "end": { + "line": 104, + "column": 5 + } + } + } + ], + "trailingComments": [ + { + "type": "CommentBlock", + "value": "*\r\n * Returns the updated input resulting from clicking a given button\r\n * \r\n * @param {string} button The button's layout name\r\n * @param {string} input The input string\r\n * @param {object} options The simple-keyboard options object\r\n * @param {number} caretPos The cursor's current position\r\n ", + "start": 3114, + "end": 3431, + "loc": { + "start": { + "line": 116, + "column": 2 + }, + "end": { + "line": 123, + "column": 5 + } + } + } + ] + }, + { + "type": "ClassProperty", + "start": 3435, + "end": 5028, + "loc": { + "start": { + "line": 124, + "column": 2 + }, + "end": { + "line": 164, + "column": 3 + } + }, + "static": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 3435, + "end": 3450, + "loc": { + "start": { + "line": 124, + "column": 2 + }, + "end": { + "line": 124, + "column": 17 + }, + "identifierName": "getUpdatedInput" + }, + "name": "getUpdatedInput", + "leadingComments": null + }, + "value": { + "type": "ArrowFunctionExpression", + "start": 3453, + "end": 5028, + "loc": { + "start": { + "line": 124, + "column": 20 + }, + "end": { + "line": 164, + "column": 3 + } + }, + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 3454, + "end": 3460, + "loc": { + "start": { + "line": 124, + "column": 21 + }, + "end": { + "line": 124, + "column": 27 + }, + "identifierName": "button" + }, + "name": "button" + }, + { + "type": "Identifier", + "start": 3462, + "end": 3467, + "loc": { + "start": { + "line": 124, + "column": 29 + }, + "end": { + "line": 124, + "column": 34 + }, + "identifierName": "input" + }, + "name": "input" + }, + { + "type": "Identifier", + "start": 3469, + "end": 3476, + "loc": { + "start": { + "line": 124, + "column": 36 + }, + "end": { + "line": 124, + "column": 43 + }, + "identifierName": "options" + }, + "name": "options" + }, + { + "type": "Identifier", + "start": 3478, + "end": 3486, + "loc": { + "start": { + "line": 124, + "column": 45 + }, + "end": { + "line": 124, + "column": 53 + }, + "identifierName": "caretPos" + }, + "name": "caretPos" + } + ], + "body": { + "type": "BlockStatement", + "start": 3491, + "end": 5028, + "loc": { + "start": { + "line": 124, + "column": 58 + }, + "end": { + "line": 164, + "column": 3 + } + }, + "body": [ + { + "type": "VariableDeclaration", + "start": 3504, + "end": 3523, + "loc": { + "start": { + "line": 126, + "column": 4 + }, + "end": { + "line": 126, + "column": 23 + } + }, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 3508, + "end": 3522, + "loc": { + "start": { + "line": 126, + "column": 8 + }, + "end": { + "line": 126, + "column": 22 + } + }, + "id": { + "type": "Identifier", + "start": 3508, + "end": 3514, + "loc": { + "start": { + "line": 126, + "column": 8 + }, + "end": { + "line": 126, + "column": 14 + }, + "identifierName": "output" + }, + "name": "output" + }, + "init": { + "type": "Identifier", + "start": 3517, + "end": 3522, + "loc": { + "start": { + "line": 126, + "column": 17 + }, + "end": { + "line": 126, + "column": 22 + }, + "identifierName": "input" + }, + "name": "input" + } + } + ], + "kind": "let" + }, + { + "type": "IfStatement", + "start": 3531, + "end": 5001, + "loc": { + "start": { + "line": 128, + "column": 4 + }, + "end": { + "line": 161, + "column": 58 + } + }, + "test": { + "type": "LogicalExpression", + "start": 3534, + "end": 3604, + "loc": { + "start": { + "line": 128, + "column": 7 + }, + "end": { + "line": 128, + "column": 77 + } + }, + "left": { + "type": "LogicalExpression", + "start": 3535, + "end": 3582, + "loc": { + "start": { + "line": 128, + "column": 8 + }, + "end": { + "line": 128, + "column": 55 + } + }, + "left": { + "type": "BinaryExpression", + "start": 3535, + "end": 3554, + "loc": { + "start": { + "line": 128, + "column": 8 + }, + "end": { + "line": 128, + "column": 27 + } + }, + "left": { + "type": "Identifier", + "start": 3535, + "end": 3541, + "loc": { + "start": { + "line": 128, + "column": 8 + }, + "end": { + "line": 128, + "column": 14 + }, + "identifierName": "button" + }, + "name": "button" + }, + "operator": "===", + "right": { + "type": "StringLiteral", + "start": 3546, + "end": 3554, + "loc": { + "start": { + "line": 128, + "column": 19 + }, + "end": { + "line": 128, + "column": 27 + } + }, + "extra": { + "rawValue": "{bksp}", + "raw": "\"{bksp}\"" + }, + "value": "{bksp}" + } + }, + "operator": "||", + "right": { + "type": "BinaryExpression", + "start": 3558, + "end": 3582, + "loc": { + "start": { + "line": 128, + "column": 31 + }, + "end": { + "line": 128, + "column": 55 + } + }, + "left": { + "type": "Identifier", + "start": 3558, + "end": 3564, + "loc": { + "start": { + "line": 128, + "column": 31 + }, + "end": { + "line": 128, + "column": 37 + }, + "identifierName": "button" + }, + "name": "button" + }, + "operator": "===", + "right": { + "type": "StringLiteral", + "start": 3569, + "end": 3582, + "loc": { + "start": { + "line": 128, + "column": 42 + }, + "end": { + "line": 128, + "column": 55 + } + }, + "extra": { + "rawValue": "{backspace}", + "raw": "\"{backspace}\"" + }, + "value": "{backspace}" + } + }, + "extra": { + "parenthesized": true, + "parenStart": 3534 + } + }, + "operator": "&&", + "right": { + "type": "BinaryExpression", + "start": 3587, + "end": 3604, + "loc": { + "start": { + "line": 128, + "column": 60 + }, + "end": { + "line": 128, + "column": 77 + } + }, + "left": { + "type": "MemberExpression", + "start": 3587, + "end": 3600, + "loc": { + "start": { + "line": 128, + "column": 60 + }, + "end": { + "line": 128, + "column": 73 + } + }, + "object": { + "type": "Identifier", + "start": 3587, + "end": 3593, + "loc": { + "start": { + "line": 128, + "column": 60 + }, + "end": { + "line": 128, + "column": 66 + }, + "identifierName": "output" + }, + "name": "output" + }, + "property": { + "type": "Identifier", + "start": 3594, + "end": 3600, + "loc": { + "start": { + "line": 128, + "column": 67 + }, + "end": { + "line": 128, + "column": 73 + }, + "identifierName": "length" + }, + "name": "length" + }, + "computed": false + }, + "operator": ">", + "right": { + "type": "NumericLiteral", + "start": 3603, + "end": 3604, + "loc": { + "start": { + "line": 128, + "column": 76 + }, + "end": { + "line": 128, + "column": 77 + } + }, + "extra": { + "rawValue": 0, + "raw": "0" + }, + "value": 0 + } + } + }, + "consequent": { + "type": "BlockStatement", + "start": 3605, + "end": 3664, + "loc": { + "start": { + "line": 128, + "column": 78 + }, + "end": { + "line": 131, + "column": 5 + } + }, + "body": [ + { + "type": "ExpressionStatement", + "start": 3614, + "end": 3655, + "loc": { + "start": { + "line": 129, + "column": 6 + }, + "end": { + "line": 129, + "column": 47 + } + }, + "expression": { + "type": "AssignmentExpression", + "start": 3614, + "end": 3654, + "loc": { + "start": { + "line": 129, + "column": 6 + }, + "end": { + "line": 129, + "column": 46 + } + }, + "operator": "=", + "left": { + "type": "Identifier", + "start": 3614, + "end": 3620, + "loc": { + "start": { + "line": 129, + "column": 6 + }, + "end": { + "line": 129, + "column": 12 + }, + "identifierName": "output" + }, + "name": "output" + }, + "right": { + "type": "CallExpression", + "start": 3623, + "end": 3654, + "loc": { + "start": { + "line": 129, + "column": 15 + }, + "end": { + "line": 129, + "column": 46 + } + }, + "callee": { + "type": "MemberExpression", + "start": 3623, + "end": 3636, + "loc": { + "start": { + "line": 129, + "column": 15 + }, + "end": { + "line": 129, + "column": 28 + } + }, + "object": { + "type": "ThisExpression", + "start": 3623, + "end": 3627, + "loc": { + "start": { + "line": 129, + "column": 15 + }, + "end": { + "line": 129, + "column": 19 + } + } + }, + "property": { + "type": "Identifier", + "start": 3628, + "end": 3636, + "loc": { + "start": { + "line": 129, + "column": 20 + }, + "end": { + "line": 129, + "column": 28 + }, + "identifierName": "removeAt" + }, + "name": "removeAt" + }, + "computed": false + }, + "arguments": [ + { + "type": "Identifier", + "start": 3637, + "end": 3643, + "loc": { + "start": { + "line": 129, + "column": 29 + }, + "end": { + "line": 129, + "column": 35 + }, + "identifierName": "output" + }, + "name": "output" + }, + { + "type": "Identifier", + "start": 3645, + "end": 3653, + "loc": { + "start": { + "line": 129, + "column": 37 + }, + "end": { + "line": 129, + "column": 45 + }, + "identifierName": "caretPos" + }, + "name": "caretPos" + } + ] + } + } + } + ], + "directives": [] + }, + "alternate": { + "type": "IfStatement", + "start": 3670, + "end": 5001, + "loc": { + "start": { + "line": 131, + "column": 11 + }, + "end": { + "line": 161, + "column": 58 + } + }, + "test": { + "type": "BinaryExpression", + "start": 3673, + "end": 3693, + "loc": { + "start": { + "line": 131, + "column": 14 + }, + "end": { + "line": 131, + "column": 34 + } + }, + "left": { + "type": "Identifier", + "start": 3673, + "end": 3679, + "loc": { + "start": { + "line": 131, + "column": 14 + }, + "end": { + "line": 131, + "column": 20 + }, + "identifierName": "button" + }, + "name": "button" + }, + "operator": "===", + "right": { + "type": "StringLiteral", + "start": 3684, + "end": 3693, + "loc": { + "start": { + "line": 131, + "column": 25 + }, + "end": { + "line": 131, + "column": 34 + } + }, + "extra": { + "rawValue": "{space}", + "raw": "\"{space}\"" + }, + "value": "{space}" + } + }, + "consequent": { + "type": "ExpressionStatement", + "start": 3702, + "end": 3751, + "loc": { + "start": { + "line": 132, + "column": 6 + }, + "end": { + "line": 132, + "column": 55 + } + }, + "expression": { + "type": "AssignmentExpression", + "start": 3702, + "end": 3750, + "loc": { + "start": { + "line": 132, + "column": 6 + }, + "end": { + "line": 132, + "column": 54 + } + }, + "operator": "=", + "left": { + "type": "Identifier", + "start": 3702, + "end": 3708, + "loc": { + "start": { + "line": 132, + "column": 6 + }, + "end": { + "line": 132, + "column": 12 + }, + "identifierName": "output" + }, + "name": "output" + }, + "right": { + "type": "CallExpression", + "start": 3711, + "end": 3750, + "loc": { + "start": { + "line": 132, + "column": 15 + }, + "end": { + "line": 132, + "column": 54 + } + }, + "callee": { + "type": "MemberExpression", + "start": 3711, + "end": 3727, + "loc": { + "start": { + "line": 132, + "column": 15 + }, + "end": { + "line": 132, + "column": 31 + } + }, + "object": { + "type": "ThisExpression", + "start": 3711, + "end": 3715, + "loc": { + "start": { + "line": 132, + "column": 15 + }, + "end": { + "line": 132, + "column": 19 + } + } + }, + "property": { + "type": "Identifier", + "start": 3716, + "end": 3727, + "loc": { + "start": { + "line": 132, + "column": 20 + }, + "end": { + "line": 132, + "column": 31 + }, + "identifierName": "addStringAt" + }, + "name": "addStringAt" + }, + "computed": false + }, + "arguments": [ + { + "type": "Identifier", + "start": 3728, + "end": 3734, + "loc": { + "start": { + "line": 132, + "column": 32 + }, + "end": { + "line": 132, + "column": 38 + }, + "identifierName": "output" + }, + "name": "output" + }, + { + "type": "StringLiteral", + "start": 3736, + "end": 3739, + "loc": { + "start": { + "line": 132, + "column": 40 + }, + "end": { + "line": 132, + "column": 43 + } + }, + "extra": { + "rawValue": " ", + "raw": "\" \"" + }, + "value": " " + }, + { + "type": "Identifier", + "start": 3741, + "end": 3749, + "loc": { + "start": { + "line": 132, + "column": 45 + }, + "end": { + "line": 132, + "column": 53 + }, + "identifierName": "caretPos" + }, + "name": "caretPos" + } + ] + } + } + }, + "alternate": { + "type": "IfStatement", + "start": 3764, + "end": 5001, + "loc": { + "start": { + "line": 134, + "column": 9 + }, + "end": { + "line": 161, + "column": 58 + } + }, + "test": { + "type": "LogicalExpression", + "start": 3767, + "end": 3867, + "loc": { + "start": { + "line": 134, + "column": 12 + }, + "end": { + "line": 134, + "column": 112 + } + }, + "left": { + "type": "BinaryExpression", + "start": 3767, + "end": 3785, + "loc": { + "start": { + "line": 134, + "column": 12 + }, + "end": { + "line": 134, + "column": 30 + } + }, + "left": { + "type": "Identifier", + "start": 3767, + "end": 3773, + "loc": { + "start": { + "line": 134, + "column": 12 + }, + "end": { + "line": 134, + "column": 18 + }, + "identifierName": "button" + }, + "name": "button" + }, + "operator": "===", + "right": { + "type": "StringLiteral", + "start": 3778, + "end": 3785, + "loc": { + "start": { + "line": 134, + "column": 23 + }, + "end": { + "line": 134, + "column": 30 + } + }, + "extra": { + "rawValue": "{tab}", + "raw": "\"{tab}\"" + }, + "value": "{tab}" + } + }, + "operator": "&&", + "right": { + "type": "UnaryExpression", + "start": 3789, + "end": 3867, + "loc": { + "start": { + "line": 134, + "column": 34 + }, + "end": { + "line": 134, + "column": 112 + } + }, + "operator": "!", + "prefix": true, + "argument": { + "type": "LogicalExpression", + "start": 3791, + "end": 3866, + "loc": { + "start": { + "line": 134, + "column": 36 + }, + "end": { + "line": 134, + "column": 111 + } + }, + "left": { + "type": "BinaryExpression", + "start": 3791, + "end": 3832, + "loc": { + "start": { + "line": 134, + "column": 36 + }, + "end": { + "line": 134, + "column": 77 + } + }, + "left": { + "type": "UnaryExpression", + "start": 3791, + "end": 3818, + "loc": { + "start": { + "line": 134, + "column": 36 + }, + "end": { + "line": 134, + "column": 63 + } + }, + "operator": "typeof", + "prefix": true, + "argument": { + "type": "MemberExpression", + "start": 3798, + "end": 3818, + "loc": { + "start": { + "line": 134, + "column": 43 + }, + "end": { + "line": 134, + "column": 63 + } + }, + "object": { + "type": "Identifier", + "start": 3798, + "end": 3805, + "loc": { + "start": { + "line": 134, + "column": 43 + }, + "end": { + "line": 134, + "column": 50 + }, + "identifierName": "options" + }, + "name": "options" + }, + "property": { + "type": "Identifier", + "start": 3806, + "end": 3818, + "loc": { + "start": { + "line": 134, + "column": 51 + }, + "end": { + "line": 134, + "column": 63 + }, + "identifierName": "tabCharOnTab" + }, + "name": "tabCharOnTab" + }, + "computed": false + }, + "extra": { + "parenthesizedArgument": false + } + }, + "operator": "===", + "right": { + "type": "StringLiteral", + "start": 3823, + "end": 3832, + "loc": { + "start": { + "line": 134, + "column": 68 + }, + "end": { + "line": 134, + "column": 77 + } + }, + "extra": { + "rawValue": "boolean", + "raw": "\"boolean\"" + }, + "value": "boolean" + } + }, + "operator": "&&", + "right": { + "type": "BinaryExpression", + "start": 3836, + "end": 3866, + "loc": { + "start": { + "line": 134, + "column": 81 + }, + "end": { + "line": 134, + "column": 111 + } + }, + "left": { + "type": "MemberExpression", + "start": 3836, + "end": 3856, + "loc": { + "start": { + "line": 134, + "column": 81 + }, + "end": { + "line": 134, + "column": 101 + } + }, + "object": { + "type": "Identifier", + "start": 3836, + "end": 3843, + "loc": { + "start": { + "line": 134, + "column": 81 + }, + "end": { + "line": 134, + "column": 88 + }, + "identifierName": "options" + }, + "name": "options" + }, + "property": { + "type": "Identifier", + "start": 3844, + "end": 3856, + "loc": { + "start": { + "line": 134, + "column": 89 + }, + "end": { + "line": 134, + "column": 101 + }, + "identifierName": "tabCharOnTab" + }, + "name": "tabCharOnTab" + }, + "computed": false + }, + "operator": "===", + "right": { + "type": "BooleanLiteral", + "start": 3861, + "end": 3866, + "loc": { + "start": { + "line": 134, + "column": 106 + }, + "end": { + "line": 134, + "column": 111 + } + }, + "value": false + } + }, + "extra": { + "parenthesized": true, + "parenStart": 3790 + } + }, + "extra": { + "parenthesizedArgument": false + } + } + }, + "consequent": { + "type": "BlockStatement", + "start": 3868, + "end": 3936, + "loc": { + "start": { + "line": 134, + "column": 113 + }, + "end": { + "line": 137, + "column": 5 + } + }, + "body": [ + { + "type": "ExpressionStatement", + "start": 3877, + "end": 3927, + "loc": { + "start": { + "line": 135, + "column": 6 + }, + "end": { + "line": 135, + "column": 56 + } + }, + "expression": { + "type": "AssignmentExpression", + "start": 3877, + "end": 3926, + "loc": { + "start": { + "line": 135, + "column": 6 + }, + "end": { + "line": 135, + "column": 55 + } + }, + "operator": "=", + "left": { + "type": "Identifier", + "start": 3877, + "end": 3883, + "loc": { + "start": { + "line": 135, + "column": 6 + }, + "end": { + "line": 135, + "column": 12 + }, + "identifierName": "output" + }, + "name": "output" + }, + "right": { + "type": "CallExpression", + "start": 3886, + "end": 3926, + "loc": { + "start": { + "line": 135, + "column": 15 + }, + "end": { + "line": 135, + "column": 55 + } + }, + "callee": { + "type": "MemberExpression", + "start": 3886, + "end": 3902, + "loc": { + "start": { + "line": 135, + "column": 15 + }, + "end": { + "line": 135, + "column": 31 + } + }, + "object": { + "type": "ThisExpression", + "start": 3886, + "end": 3890, + "loc": { + "start": { + "line": 135, + "column": 15 + }, + "end": { + "line": 135, + "column": 19 + } + } + }, + "property": { + "type": "Identifier", + "start": 3891, + "end": 3902, + "loc": { + "start": { + "line": 135, + "column": 20 + }, + "end": { + "line": 135, + "column": 31 + }, + "identifierName": "addStringAt" + }, + "name": "addStringAt" + }, + "computed": false + }, + "arguments": [ + { + "type": "Identifier", + "start": 3903, + "end": 3909, + "loc": { + "start": { + "line": 135, + "column": 32 + }, + "end": { + "line": 135, + "column": 38 + }, + "identifierName": "output" + }, + "name": "output" + }, + { + "type": "StringLiteral", + "start": 3911, + "end": 3915, + "loc": { + "start": { + "line": 135, + "column": 40 + }, + "end": { + "line": 135, + "column": 44 + } + }, + "extra": { + "rawValue": "\t", + "raw": "\"\\t\"" + }, + "value": "\t" + }, + { + "type": "Identifier", + "start": 3917, + "end": 3925, + "loc": { + "start": { + "line": 135, + "column": 46 + }, + "end": { + "line": 135, + "column": 54 + }, + "identifierName": "caretPos" + }, + "name": "caretPos" + } + ] + } + } + } + ], + "directives": [] + }, + "alternate": { + "type": "IfStatement", + "start": 3942, + "end": 5001, + "loc": { + "start": { + "line": 137, + "column": 11 + }, + "end": { + "line": 161, + "column": 58 + } + }, + "test": { + "type": "LogicalExpression", + "start": 3945, + "end": 4023, + "loc": { + "start": { + "line": 137, + "column": 14 + }, + "end": { + "line": 137, + "column": 92 + } + }, + "left": { + "type": "LogicalExpression", + "start": 3946, + "end": 3996, + "loc": { + "start": { + "line": 137, + "column": 15 + }, + "end": { + "line": 137, + "column": 65 + } + }, + "left": { + "type": "BinaryExpression", + "start": 3946, + "end": 3966, + "loc": { + "start": { + "line": 137, + "column": 15 + }, + "end": { + "line": 137, + "column": 35 + } + }, + "left": { + "type": "Identifier", + "start": 3946, + "end": 3952, + "loc": { + "start": { + "line": 137, + "column": 15 + }, + "end": { + "line": 137, + "column": 21 + }, + "identifierName": "button" + }, + "name": "button" + }, + "operator": "===", + "right": { + "type": "StringLiteral", + "start": 3957, + "end": 3966, + "loc": { + "start": { + "line": 137, + "column": 26 + }, + "end": { + "line": 137, + "column": 35 + } + }, + "extra": { + "rawValue": "{enter}", + "raw": "\"{enter}\"" + }, + "value": "{enter}" + } + }, + "operator": "||", + "right": { + "type": "BinaryExpression", + "start": 3970, + "end": 3996, + "loc": { + "start": { + "line": 137, + "column": 39 + }, + "end": { + "line": 137, + "column": 65 + } + }, + "left": { + "type": "Identifier", + "start": 3970, + "end": 3976, + "loc": { + "start": { + "line": 137, + "column": 39 + }, + "end": { + "line": 137, + "column": 45 + }, + "identifierName": "button" + }, + "name": "button" + }, + "operator": "===", + "right": { + "type": "StringLiteral", + "start": 3981, + "end": 3996, + "loc": { + "start": { + "line": 137, + "column": 50 + }, + "end": { + "line": 137, + "column": 65 + } + }, + "extra": { + "rawValue": "{numpadenter}", + "raw": "\"{numpadenter}\"" + }, + "value": "{numpadenter}" + } + }, + "extra": { + "parenthesized": true, + "parenStart": 3945 + } + }, + "operator": "&&", + "right": { + "type": "MemberExpression", + "start": 4001, + "end": 4023, + "loc": { + "start": { + "line": 137, + "column": 70 + }, + "end": { + "line": 137, + "column": 92 + } + }, + "object": { + "type": "Identifier", + "start": 4001, + "end": 4008, + "loc": { + "start": { + "line": 137, + "column": 70 + }, + "end": { + "line": 137, + "column": 77 + }, + "identifierName": "options" + }, + "name": "options" + }, + "property": { + "type": "Identifier", + "start": 4009, + "end": 4023, + "loc": { + "start": { + "line": 137, + "column": 78 + }, + "end": { + "line": 137, + "column": 92 + }, + "identifierName": "newLineOnEnter" + }, + "name": "newLineOnEnter" + }, + "computed": false + } + }, + "consequent": { + "type": "ExpressionStatement", + "start": 4032, + "end": 4082, + "loc": { + "start": { + "line": 138, + "column": 6 + }, + "end": { + "line": 138, + "column": 56 + } + }, + "expression": { + "type": "AssignmentExpression", + "start": 4032, + "end": 4081, + "loc": { + "start": { + "line": 138, + "column": 6 + }, + "end": { + "line": 138, + "column": 55 + } + }, + "operator": "=", + "left": { + "type": "Identifier", + "start": 4032, + "end": 4038, + "loc": { + "start": { + "line": 138, + "column": 6 + }, + "end": { + "line": 138, + "column": 12 + }, + "identifierName": "output" + }, + "name": "output" + }, + "right": { + "type": "CallExpression", + "start": 4041, + "end": 4081, + "loc": { + "start": { + "line": 138, + "column": 15 + }, + "end": { + "line": 138, + "column": 55 + } + }, + "callee": { + "type": "MemberExpression", + "start": 4041, + "end": 4057, + "loc": { + "start": { + "line": 138, + "column": 15 + }, + "end": { + "line": 138, + "column": 31 + } + }, + "object": { + "type": "ThisExpression", + "start": 4041, + "end": 4045, + "loc": { + "start": { + "line": 138, + "column": 15 + }, + "end": { + "line": 138, + "column": 19 + } + } + }, + "property": { + "type": "Identifier", + "start": 4046, + "end": 4057, + "loc": { + "start": { + "line": 138, + "column": 20 + }, + "end": { + "line": 138, + "column": 31 + }, + "identifierName": "addStringAt" + }, + "name": "addStringAt" + }, + "computed": false + }, + "arguments": [ + { + "type": "Identifier", + "start": 4058, + "end": 4064, + "loc": { + "start": { + "line": 138, + "column": 32 + }, + "end": { + "line": 138, + "column": 38 + }, + "identifierName": "output" + }, + "name": "output" + }, + { + "type": "StringLiteral", + "start": 4066, + "end": 4070, + "loc": { + "start": { + "line": 138, + "column": 40 + }, + "end": { + "line": 138, + "column": 44 + } + }, + "extra": { + "rawValue": "\n", + "raw": "\"\\n\"" + }, + "value": "\n" + }, + { + "type": "Identifier", + "start": 4072, + "end": 4080, + "loc": { + "start": { + "line": 138, + "column": 46 + }, + "end": { + "line": 138, + "column": 54 + }, + "identifierName": "caretPos" + }, + "name": "caretPos" + } + ] + } + } + }, + "alternate": { + "type": "IfStatement", + "start": 4095, + "end": 5001, + "loc": { + "start": { + "line": 140, + "column": 9 + }, + "end": { + "line": 161, + "column": 58 + } + }, + "test": { + "type": "LogicalExpression", + "start": 4098, + "end": 4178, + "loc": { + "start": { + "line": 140, + "column": 12 + }, + "end": { + "line": 140, + "column": 92 + } + }, + "left": { + "type": "CallExpression", + "start": 4098, + "end": 4123, + "loc": { + "start": { + "line": 140, + "column": 12 + }, + "end": { + "line": 140, + "column": 37 + } + }, + "callee": { + "type": "MemberExpression", + "start": 4098, + "end": 4113, + "loc": { + "start": { + "line": 140, + "column": 12 + }, + "end": { + "line": 140, + "column": 27 + } + }, + "object": { + "type": "Identifier", + "start": 4098, + "end": 4104, + "loc": { + "start": { + "line": 140, + "column": 12 + }, + "end": { + "line": 140, + "column": 18 + }, + "identifierName": "button" + }, + "name": "button" + }, + "property": { + "type": "Identifier", + "start": 4105, + "end": 4113, + "loc": { + "start": { + "line": 140, + "column": 19 + }, + "end": { + "line": 140, + "column": 27 + }, + "identifierName": "includes" + }, + "name": "includes" + }, + "computed": false + }, + "arguments": [ + { + "type": "StringLiteral", + "start": 4114, + "end": 4122, + "loc": { + "start": { + "line": 140, + "column": 28 + }, + "end": { + "line": 140, + "column": 36 + } + }, + "extra": { + "rawValue": "numpad", + "raw": "\"numpad\"" + }, + "value": "numpad" + } + ] + }, + "operator": "&&", + "right": { + "type": "CallExpression", + "start": 4127, + "end": 4178, + "loc": { + "start": { + "line": 140, + "column": 41 + }, + "end": { + "line": 140, + "column": 92 + } + }, + "callee": { + "type": "MemberExpression", + "start": 4127, + "end": 4143, + "loc": { + "start": { + "line": 140, + "column": 41 + }, + "end": { + "line": 140, + "column": 57 + } + }, + "object": { + "type": "Identifier", + "start": 4127, + "end": 4133, + "loc": { + "start": { + "line": 140, + "column": 41 + }, + "end": { + "line": 140, + "column": 47 + }, + "identifierName": "Number" + }, + "name": "Number" + }, + "property": { + "type": "Identifier", + "start": 4134, + "end": 4143, + "loc": { + "start": { + "line": 140, + "column": 48 + }, + "end": { + "line": 140, + "column": 57 + }, + "identifierName": "isInteger" + }, + "name": "isInteger" + }, + "computed": false + }, + "arguments": [ + { + "type": "CallExpression", + "start": 4144, + "end": 4177, + "loc": { + "start": { + "line": 140, + "column": 58 + }, + "end": { + "line": 140, + "column": 91 + } + }, + "callee": { + "type": "Identifier", + "start": 4144, + "end": 4150, + "loc": { + "start": { + "line": 140, + "column": 58 + }, + "end": { + "line": 140, + "column": 64 + }, + "identifierName": "Number" + }, + "name": "Number" + }, + "arguments": [ + { + "type": "MemberExpression", + "start": 4151, + "end": 4176, + "loc": { + "start": { + "line": 140, + "column": 65 + }, + "end": { + "line": 140, + "column": 90 + } + }, + "object": { + "type": "Identifier", + "start": 4151, + "end": 4157, + "loc": { + "start": { + "line": 140, + "column": 65 + }, + "end": { + "line": 140, + "column": 71 + }, + "identifierName": "button" + }, + "name": "button" + }, + "property": { + "type": "BinaryExpression", + "start": 4158, + "end": 4175, + "loc": { + "start": { + "line": 140, + "column": 72 + }, + "end": { + "line": 140, + "column": 89 + } + }, + "left": { + "type": "MemberExpression", + "start": 4158, + "end": 4171, + "loc": { + "start": { + "line": 140, + "column": 72 + }, + "end": { + "line": 140, + "column": 85 + } + }, + "object": { + "type": "Identifier", + "start": 4158, + "end": 4164, + "loc": { + "start": { + "line": 140, + "column": 72 + }, + "end": { + "line": 140, + "column": 78 + }, + "identifierName": "button" + }, + "name": "button" + }, + "property": { + "type": "Identifier", + "start": 4165, + "end": 4171, + "loc": { + "start": { + "line": 140, + "column": 79 + }, + "end": { + "line": 140, + "column": 85 + }, + "identifierName": "length" + }, + "name": "length" + }, + "computed": false + }, + "operator": "-", + "right": { + "type": "NumericLiteral", + "start": 4174, + "end": 4175, + "loc": { + "start": { + "line": 140, + "column": 88 + }, + "end": { + "line": 140, + "column": 89 + } + }, + "extra": { + "rawValue": 2, + "raw": "2" + }, + "value": 2 + } + }, + "computed": true + } + ] + } + ] + } + }, + "consequent": { + "type": "BlockStatement", + "start": 4179, + "end": 4266, + "loc": { + "start": { + "line": 140, + "column": 93 + }, + "end": { + "line": 142, + "column": 5 + } + }, + "body": [ + { + "type": "ExpressionStatement", + "start": 4188, + "end": 4259, + "loc": { + "start": { + "line": 141, + "column": 6 + }, + "end": { + "line": 141, + "column": 77 + } + }, + "expression": { + "type": "AssignmentExpression", + "start": 4188, + "end": 4258, + "loc": { + "start": { + "line": 141, + "column": 6 + }, + "end": { + "line": 141, + "column": 76 + } + }, + "operator": "=", + "left": { + "type": "Identifier", + "start": 4188, + "end": 4194, + "loc": { + "start": { + "line": 141, + "column": 6 + }, + "end": { + "line": 141, + "column": 12 + }, + "identifierName": "output" + }, + "name": "output" + }, + "right": { + "type": "CallExpression", + "start": 4197, + "end": 4258, + "loc": { + "start": { + "line": 141, + "column": 15 + }, + "end": { + "line": 141, + "column": 76 + } + }, + "callee": { + "type": "MemberExpression", + "start": 4197, + "end": 4213, + "loc": { + "start": { + "line": 141, + "column": 15 + }, + "end": { + "line": 141, + "column": 31 + } + }, + "object": { + "type": "ThisExpression", + "start": 4197, + "end": 4201, + "loc": { + "start": { + "line": 141, + "column": 15 + }, + "end": { + "line": 141, + "column": 19 + } + } + }, + "property": { + "type": "Identifier", + "start": 4202, + "end": 4213, + "loc": { + "start": { + "line": 141, + "column": 20 + }, + "end": { + "line": 141, + "column": 31 + }, + "identifierName": "addStringAt" + }, + "name": "addStringAt" + }, + "computed": false + }, + "arguments": [ + { + "type": "Identifier", + "start": 4214, + "end": 4220, + "loc": { + "start": { + "line": 141, + "column": 32 + }, + "end": { + "line": 141, + "column": 38 + }, + "identifierName": "output" + }, + "name": "output" + }, + { + "type": "MemberExpression", + "start": 4222, + "end": 4247, + "loc": { + "start": { + "line": 141, + "column": 40 + }, + "end": { + "line": 141, + "column": 65 + } + }, + "object": { + "type": "Identifier", + "start": 4222, + "end": 4228, + "loc": { + "start": { + "line": 141, + "column": 40 + }, + "end": { + "line": 141, + "column": 46 + }, + "identifierName": "button" + }, + "name": "button" + }, + "property": { + "type": "BinaryExpression", + "start": 4229, + "end": 4246, + "loc": { + "start": { + "line": 141, + "column": 47 + }, + "end": { + "line": 141, + "column": 64 + } + }, + "left": { + "type": "MemberExpression", + "start": 4229, + "end": 4242, + "loc": { + "start": { + "line": 141, + "column": 47 + }, + "end": { + "line": 141, + "column": 60 + } + }, + "object": { + "type": "Identifier", + "start": 4229, + "end": 4235, + "loc": { + "start": { + "line": 141, + "column": 47 + }, + "end": { + "line": 141, + "column": 53 + }, + "identifierName": "button" + }, + "name": "button" + }, + "property": { + "type": "Identifier", + "start": 4236, + "end": 4242, + "loc": { + "start": { + "line": 141, + "column": 54 + }, + "end": { + "line": 141, + "column": 60 + }, + "identifierName": "length" + }, + "name": "length" + }, + "computed": false + }, + "operator": "-", + "right": { + "type": "NumericLiteral", + "start": 4245, + "end": 4246, + "loc": { + "start": { + "line": 141, + "column": 63 + }, + "end": { + "line": 141, + "column": 64 + } + }, + "extra": { + "rawValue": 2, + "raw": "2" + }, + "value": 2 + } + }, + "computed": true + }, + { + "type": "Identifier", + "start": 4249, + "end": 4257, + "loc": { + "start": { + "line": 141, + "column": 67 + }, + "end": { + "line": 141, + "column": 75 + }, + "identifierName": "caretPos" + }, + "name": "caretPos" + } + ] + } + } + } + ], + "directives": [] + }, + "alternate": { + "type": "IfStatement", + "start": 4277, + "end": 5001, + "loc": { + "start": { + "line": 143, + "column": 9 + }, + "end": { + "line": 161, + "column": 58 + } + }, + "test": { + "type": "BinaryExpression", + "start": 4280, + "end": 4307, + "loc": { + "start": { + "line": 143, + "column": 12 + }, + "end": { + "line": 143, + "column": 39 + } + }, + "left": { + "type": "Identifier", + "start": 4280, + "end": 4286, + "loc": { + "start": { + "line": 143, + "column": 12 + }, + "end": { + "line": 143, + "column": 18 + }, + "identifierName": "button" + }, + "name": "button" + }, + "operator": "===", + "right": { + "type": "StringLiteral", + "start": 4291, + "end": 4307, + "loc": { + "start": { + "line": 143, + "column": 23 + }, + "end": { + "line": 143, + "column": 39 + } + }, + "extra": { + "rawValue": "{numpaddivide}", + "raw": "\"{numpaddivide}\"" + }, + "value": "{numpaddivide}" + } + }, + "consequent": { + "type": "ExpressionStatement", + "start": 4316, + "end": 4365, + "loc": { + "start": { + "line": 144, + "column": 6 + }, + "end": { + "line": 144, + "column": 55 + } + }, + "expression": { + "type": "AssignmentExpression", + "start": 4316, + "end": 4364, + "loc": { + "start": { + "line": 144, + "column": 6 + }, + "end": { + "line": 144, + "column": 54 + } + }, + "operator": "=", + "left": { + "type": "Identifier", + "start": 4316, + "end": 4322, + "loc": { + "start": { + "line": 144, + "column": 6 + }, + "end": { + "line": 144, + "column": 12 + }, + "identifierName": "output" + }, + "name": "output" + }, + "right": { + "type": "CallExpression", + "start": 4325, + "end": 4364, + "loc": { + "start": { + "line": 144, + "column": 15 + }, + "end": { + "line": 144, + "column": 54 + } + }, + "callee": { + "type": "MemberExpression", + "start": 4325, + "end": 4341, + "loc": { + "start": { + "line": 144, + "column": 15 + }, + "end": { + "line": 144, + "column": 31 + } + }, + "object": { + "type": "ThisExpression", + "start": 4325, + "end": 4329, + "loc": { + "start": { + "line": 144, + "column": 15 + }, + "end": { + "line": 144, + "column": 19 + } + } + }, + "property": { + "type": "Identifier", + "start": 4330, + "end": 4341, + "loc": { + "start": { + "line": 144, + "column": 20 + }, + "end": { + "line": 144, + "column": 31 + }, + "identifierName": "addStringAt" + }, + "name": "addStringAt" + }, + "computed": false + }, + "arguments": [ + { + "type": "Identifier", + "start": 4342, + "end": 4348, + "loc": { + "start": { + "line": 144, + "column": 32 + }, + "end": { + "line": 144, + "column": 38 + }, + "identifierName": "output" + }, + "name": "output" + }, + { + "type": "StringLiteral", + "start": 4350, + "end": 4353, + "loc": { + "start": { + "line": 144, + "column": 40 + }, + "end": { + "line": 144, + "column": 43 + } + }, + "extra": { + "rawValue": "/", + "raw": "'/'" + }, + "value": "/" + }, + { + "type": "Identifier", + "start": 4355, + "end": 4363, + "loc": { + "start": { + "line": 144, + "column": 45 + }, + "end": { + "line": 144, + "column": 53 + }, + "identifierName": "caretPos" + }, + "name": "caretPos" + } + ] + } + } + }, + "alternate": { + "type": "IfStatement", + "start": 4378, + "end": 5001, + "loc": { + "start": { + "line": 146, + "column": 9 + }, + "end": { + "line": 161, + "column": 58 + } + }, + "test": { + "type": "BinaryExpression", + "start": 4381, + "end": 4410, + "loc": { + "start": { + "line": 146, + "column": 12 + }, + "end": { + "line": 146, + "column": 41 + } + }, + "left": { + "type": "Identifier", + "start": 4381, + "end": 4387, + "loc": { + "start": { + "line": 146, + "column": 12 + }, + "end": { + "line": 146, + "column": 18 + }, + "identifierName": "button" + }, + "name": "button" + }, + "operator": "===", + "right": { + "type": "StringLiteral", + "start": 4392, + "end": 4410, + "loc": { + "start": { + "line": 146, + "column": 23 + }, + "end": { + "line": 146, + "column": 41 + } + }, + "extra": { + "rawValue": "{numpadmultiply}", + "raw": "\"{numpadmultiply}\"" + }, + "value": "{numpadmultiply}" + } + }, + "consequent": { + "type": "ExpressionStatement", + "start": 4419, + "end": 4468, + "loc": { + "start": { + "line": 147, + "column": 6 + }, + "end": { + "line": 147, + "column": 55 + } + }, + "expression": { + "type": "AssignmentExpression", + "start": 4419, + "end": 4467, + "loc": { + "start": { + "line": 147, + "column": 6 + }, + "end": { + "line": 147, + "column": 54 + } + }, + "operator": "=", + "left": { + "type": "Identifier", + "start": 4419, + "end": 4425, + "loc": { + "start": { + "line": 147, + "column": 6 + }, + "end": { + "line": 147, + "column": 12 + }, + "identifierName": "output" + }, + "name": "output" + }, + "right": { + "type": "CallExpression", + "start": 4428, + "end": 4467, + "loc": { + "start": { + "line": 147, + "column": 15 + }, + "end": { + "line": 147, + "column": 54 + } + }, + "callee": { + "type": "MemberExpression", + "start": 4428, + "end": 4444, + "loc": { + "start": { + "line": 147, + "column": 15 + }, + "end": { + "line": 147, + "column": 31 + } + }, + "object": { + "type": "ThisExpression", + "start": 4428, + "end": 4432, + "loc": { + "start": { + "line": 147, + "column": 15 + }, + "end": { + "line": 147, + "column": 19 + } + } + }, + "property": { + "type": "Identifier", + "start": 4433, + "end": 4444, + "loc": { + "start": { + "line": 147, + "column": 20 + }, + "end": { + "line": 147, + "column": 31 + }, + "identifierName": "addStringAt" + }, + "name": "addStringAt" + }, + "computed": false + }, + "arguments": [ + { + "type": "Identifier", + "start": 4445, + "end": 4451, + "loc": { + "start": { + "line": 147, + "column": 32 + }, + "end": { + "line": 147, + "column": 38 + }, + "identifierName": "output" + }, + "name": "output" + }, + { + "type": "StringLiteral", + "start": 4453, + "end": 4456, + "loc": { + "start": { + "line": 147, + "column": 40 + }, + "end": { + "line": 147, + "column": 43 + } + }, + "extra": { + "rawValue": "*", + "raw": "'*'" + }, + "value": "*" + }, + { + "type": "Identifier", + "start": 4458, + "end": 4466, + "loc": { + "start": { + "line": 147, + "column": 45 + }, + "end": { + "line": 147, + "column": 53 + }, + "identifierName": "caretPos" + }, + "name": "caretPos" + } + ] + } + } + }, + "alternate": { + "type": "IfStatement", + "start": 4479, + "end": 5001, + "loc": { + "start": { + "line": 148, + "column": 9 + }, + "end": { + "line": 161, + "column": 58 + } + }, + "test": { + "type": "BinaryExpression", + "start": 4482, + "end": 4511, + "loc": { + "start": { + "line": 148, + "column": 12 + }, + "end": { + "line": 148, + "column": 41 + } + }, + "left": { + "type": "Identifier", + "start": 4482, + "end": 4488, + "loc": { + "start": { + "line": 148, + "column": 12 + }, + "end": { + "line": 148, + "column": 18 + }, + "identifierName": "button" + }, + "name": "button" + }, + "operator": "===", + "right": { + "type": "StringLiteral", + "start": 4493, + "end": 4511, + "loc": { + "start": { + "line": 148, + "column": 23 + }, + "end": { + "line": 148, + "column": 41 + } + }, + "extra": { + "rawValue": "{numpadsubtract}", + "raw": "\"{numpadsubtract}\"" + }, + "value": "{numpadsubtract}" + } + }, + "consequent": { + "type": "ExpressionStatement", + "start": 4520, + "end": 4569, + "loc": { + "start": { + "line": 149, + "column": 6 + }, + "end": { + "line": 149, + "column": 55 + } + }, + "expression": { + "type": "AssignmentExpression", + "start": 4520, + "end": 4568, + "loc": { + "start": { + "line": 149, + "column": 6 + }, + "end": { + "line": 149, + "column": 54 + } + }, + "operator": "=", + "left": { + "type": "Identifier", + "start": 4520, + "end": 4526, + "loc": { + "start": { + "line": 149, + "column": 6 + }, + "end": { + "line": 149, + "column": 12 + }, + "identifierName": "output" + }, + "name": "output" + }, + "right": { + "type": "CallExpression", + "start": 4529, + "end": 4568, + "loc": { + "start": { + "line": 149, + "column": 15 + }, + "end": { + "line": 149, + "column": 54 + } + }, + "callee": { + "type": "MemberExpression", + "start": 4529, + "end": 4545, + "loc": { + "start": { + "line": 149, + "column": 15 + }, + "end": { + "line": 149, + "column": 31 + } + }, + "object": { + "type": "ThisExpression", + "start": 4529, + "end": 4533, + "loc": { + "start": { + "line": 149, + "column": 15 + }, + "end": { + "line": 149, + "column": 19 + } + } + }, + "property": { + "type": "Identifier", + "start": 4534, + "end": 4545, + "loc": { + "start": { + "line": 149, + "column": 20 + }, + "end": { + "line": 149, + "column": 31 + }, + "identifierName": "addStringAt" + }, + "name": "addStringAt" + }, + "computed": false + }, + "arguments": [ + { + "type": "Identifier", + "start": 4546, + "end": 4552, + "loc": { + "start": { + "line": 149, + "column": 32 + }, + "end": { + "line": 149, + "column": 38 + }, + "identifierName": "output" + }, + "name": "output" + }, + { + "type": "StringLiteral", + "start": 4554, + "end": 4557, + "loc": { + "start": { + "line": 149, + "column": 40 + }, + "end": { + "line": 149, + "column": 43 + } + }, + "extra": { + "rawValue": "-", + "raw": "'-'" + }, + "value": "-" + }, + { + "type": "Identifier", + "start": 4559, + "end": 4567, + "loc": { + "start": { + "line": 149, + "column": 45 + }, + "end": { + "line": 149, + "column": 53 + }, + "identifierName": "caretPos" + }, + "name": "caretPos" + } + ] + } + } + }, + "alternate": { + "type": "IfStatement", + "start": 4582, + "end": 5001, + "loc": { + "start": { + "line": 151, + "column": 9 + }, + "end": { + "line": 161, + "column": 58 + } + }, + "test": { + "type": "BinaryExpression", + "start": 4585, + "end": 4609, + "loc": { + "start": { + "line": 151, + "column": 12 + }, + "end": { + "line": 151, + "column": 36 + } + }, + "left": { + "type": "Identifier", + "start": 4585, + "end": 4591, + "loc": { + "start": { + "line": 151, + "column": 12 + }, + "end": { + "line": 151, + "column": 18 + }, + "identifierName": "button" + }, + "name": "button" + }, + "operator": "===", + "right": { + "type": "StringLiteral", + "start": 4596, + "end": 4609, + "loc": { + "start": { + "line": 151, + "column": 23 + }, + "end": { + "line": 151, + "column": 36 + } + }, + "extra": { + "rawValue": "{numpadadd}", + "raw": "\"{numpadadd}\"" + }, + "value": "{numpadadd}" + } + }, + "consequent": { + "type": "ExpressionStatement", + "start": 4618, + "end": 4667, + "loc": { + "start": { + "line": 152, + "column": 6 + }, + "end": { + "line": 152, + "column": 55 + } + }, + "expression": { + "type": "AssignmentExpression", + "start": 4618, + "end": 4666, + "loc": { + "start": { + "line": 152, + "column": 6 + }, + "end": { + "line": 152, + "column": 54 + } + }, + "operator": "=", + "left": { + "type": "Identifier", + "start": 4618, + "end": 4624, + "loc": { + "start": { + "line": 152, + "column": 6 + }, + "end": { + "line": 152, + "column": 12 + }, + "identifierName": "output" + }, + "name": "output" + }, + "right": { + "type": "CallExpression", + "start": 4627, + "end": 4666, + "loc": { + "start": { + "line": 152, + "column": 15 + }, + "end": { + "line": 152, + "column": 54 + } + }, + "callee": { + "type": "MemberExpression", + "start": 4627, + "end": 4643, + "loc": { + "start": { + "line": 152, + "column": 15 + }, + "end": { + "line": 152, + "column": 31 + } + }, + "object": { + "type": "ThisExpression", + "start": 4627, + "end": 4631, + "loc": { + "start": { + "line": 152, + "column": 15 + }, + "end": { + "line": 152, + "column": 19 + } + } + }, + "property": { + "type": "Identifier", + "start": 4632, + "end": 4643, + "loc": { + "start": { + "line": 152, + "column": 20 + }, + "end": { + "line": 152, + "column": 31 + }, + "identifierName": "addStringAt" + }, + "name": "addStringAt" + }, + "computed": false + }, + "arguments": [ + { + "type": "Identifier", + "start": 4644, + "end": 4650, + "loc": { + "start": { + "line": 152, + "column": 32 + }, + "end": { + "line": 152, + "column": 38 + }, + "identifierName": "output" + }, + "name": "output" + }, + { + "type": "StringLiteral", + "start": 4652, + "end": 4655, + "loc": { + "start": { + "line": 152, + "column": 40 + }, + "end": { + "line": 152, + "column": 43 + } + }, + "extra": { + "rawValue": "+", + "raw": "'+'" + }, + "value": "+" + }, + { + "type": "Identifier", + "start": 4657, + "end": 4665, + "loc": { + "start": { + "line": 152, + "column": 45 + }, + "end": { + "line": 152, + "column": 53 + }, + "identifierName": "caretPos" + }, + "name": "caretPos" + } + ] + } + } + }, + "alternate": { + "type": "IfStatement", + "start": 4680, + "end": 5001, + "loc": { + "start": { + "line": 154, + "column": 9 + }, + "end": { + "line": 161, + "column": 58 + } + }, + "test": { + "type": "BinaryExpression", + "start": 4683, + "end": 4711, + "loc": { + "start": { + "line": 154, + "column": 12 + }, + "end": { + "line": 154, + "column": 40 + } + }, + "left": { + "type": "Identifier", + "start": 4683, + "end": 4689, + "loc": { + "start": { + "line": 154, + "column": 12 + }, + "end": { + "line": 154, + "column": 18 + }, + "identifierName": "button" + }, + "name": "button" + }, + "operator": "===", + "right": { + "type": "StringLiteral", + "start": 4694, + "end": 4711, + "loc": { + "start": { + "line": 154, + "column": 23 + }, + "end": { + "line": 154, + "column": 40 + } + }, + "extra": { + "rawValue": "{numpaddecimal}", + "raw": "\"{numpaddecimal}\"" + }, + "value": "{numpaddecimal}" + } + }, + "consequent": { + "type": "ExpressionStatement", + "start": 4720, + "end": 4769, + "loc": { + "start": { + "line": 155, + "column": 6 + }, + "end": { + "line": 155, + "column": 55 + } + }, + "expression": { + "type": "AssignmentExpression", + "start": 4720, + "end": 4768, + "loc": { + "start": { + "line": 155, + "column": 6 + }, + "end": { + "line": 155, + "column": 54 + } + }, + "operator": "=", + "left": { + "type": "Identifier", + "start": 4720, + "end": 4726, + "loc": { + "start": { + "line": 155, + "column": 6 + }, + "end": { + "line": 155, + "column": 12 + }, + "identifierName": "output" + }, + "name": "output" + }, + "right": { + "type": "CallExpression", + "start": 4729, + "end": 4768, + "loc": { + "start": { + "line": 155, + "column": 15 + }, + "end": { + "line": 155, + "column": 54 + } + }, + "callee": { + "type": "MemberExpression", + "start": 4729, + "end": 4745, + "loc": { + "start": { + "line": 155, + "column": 15 + }, + "end": { + "line": 155, + "column": 31 + } + }, + "object": { + "type": "ThisExpression", + "start": 4729, + "end": 4733, + "loc": { + "start": { + "line": 155, + "column": 15 + }, + "end": { + "line": 155, + "column": 19 + } + } + }, + "property": { + "type": "Identifier", + "start": 4734, + "end": 4745, + "loc": { + "start": { + "line": 155, + "column": 20 + }, + "end": { + "line": 155, + "column": 31 + }, + "identifierName": "addStringAt" + }, + "name": "addStringAt" + }, + "computed": false + }, + "arguments": [ + { + "type": "Identifier", + "start": 4746, + "end": 4752, + "loc": { + "start": { + "line": 155, + "column": 32 + }, + "end": { + "line": 155, + "column": 38 + }, + "identifierName": "output" + }, + "name": "output" + }, + { + "type": "StringLiteral", + "start": 4754, + "end": 4757, + "loc": { + "start": { + "line": 155, + "column": 40 + }, + "end": { + "line": 155, + "column": 43 + } + }, + "extra": { + "rawValue": ".", + "raw": "'.'" + }, + "value": "." + }, + { + "type": "Identifier", + "start": 4759, + "end": 4767, + "loc": { + "start": { + "line": 155, + "column": 45 + }, + "end": { + "line": 155, + "column": 53 + }, + "identifierName": "caretPos" + }, + "name": "caretPos" + } + ] + } + } + }, + "alternate": { + "type": "IfStatement", + "start": 4782, + "end": 5001, + "loc": { + "start": { + "line": 157, + "column": 9 + }, + "end": { + "line": 161, + "column": 58 + } + }, + "test": { + "type": "LogicalExpression", + "start": 4785, + "end": 4817, + "loc": { + "start": { + "line": 157, + "column": 12 + }, + "end": { + "line": 157, + "column": 44 + } + }, + "left": { + "type": "BinaryExpression", + "start": 4785, + "end": 4799, + "loc": { + "start": { + "line": 157, + "column": 12 + }, + "end": { + "line": 157, + "column": 26 + } + }, + "left": { + "type": "Identifier", + "start": 4785, + "end": 4791, + "loc": { + "start": { + "line": 157, + "column": 12 + }, + "end": { + "line": 157, + "column": 18 + }, + "identifierName": "button" + }, + "name": "button" + }, + "operator": "===", + "right": { + "type": "StringLiteral", + "start": 4796, + "end": 4799, + "loc": { + "start": { + "line": 157, + "column": 23 + }, + "end": { + "line": 157, + "column": 26 + } + }, + "extra": { + "rawValue": "{", + "raw": "\"{\"" + }, + "value": "{" + } + }, + "operator": "||", + "right": { + "type": "BinaryExpression", + "start": 4803, + "end": 4817, + "loc": { + "start": { + "line": 157, + "column": 30 + }, + "end": { + "line": 157, + "column": 44 + } + }, + "left": { + "type": "Identifier", + "start": 4803, + "end": 4809, + "loc": { + "start": { + "line": 157, + "column": 30 + }, + "end": { + "line": 157, + "column": 36 + }, + "identifierName": "button" + }, + "name": "button" + }, + "operator": "===", + "right": { + "type": "StringLiteral", + "start": 4814, + "end": 4817, + "loc": { + "start": { + "line": 157, + "column": 41 + }, + "end": { + "line": 157, + "column": 44 + } + }, + "extra": { + "rawValue": "}", + "raw": "\"}\"" + }, + "value": "}" + } + } + }, + "consequent": { + "type": "ExpressionStatement", + "start": 4826, + "end": 4878, + "loc": { + "start": { + "line": 158, + "column": 6 + }, + "end": { + "line": 158, + "column": 58 + } + }, + "expression": { + "type": "AssignmentExpression", + "start": 4826, + "end": 4877, + "loc": { + "start": { + "line": 158, + "column": 6 + }, + "end": { + "line": 158, + "column": 57 + } + }, + "operator": "=", + "left": { + "type": "Identifier", + "start": 4826, + "end": 4832, + "loc": { + "start": { + "line": 158, + "column": 6 + }, + "end": { + "line": 158, + "column": 12 + }, + "identifierName": "output" + }, + "name": "output" + }, + "right": { + "type": "CallExpression", + "start": 4835, + "end": 4877, + "loc": { + "start": { + "line": 158, + "column": 15 + }, + "end": { + "line": 158, + "column": 57 + } + }, + "callee": { + "type": "MemberExpression", + "start": 4835, + "end": 4851, + "loc": { + "start": { + "line": 158, + "column": 15 + }, + "end": { + "line": 158, + "column": 31 + } + }, + "object": { + "type": "ThisExpression", + "start": 4835, + "end": 4839, + "loc": { + "start": { + "line": 158, + "column": 15 + }, + "end": { + "line": 158, + "column": 19 + } + } + }, + "property": { + "type": "Identifier", + "start": 4840, + "end": 4851, + "loc": { + "start": { + "line": 158, + "column": 20 + }, + "end": { + "line": 158, + "column": 31 + }, + "identifierName": "addStringAt" + }, + "name": "addStringAt" + }, + "computed": false + }, + "arguments": [ + { + "type": "Identifier", + "start": 4852, + "end": 4858, + "loc": { + "start": { + "line": 158, + "column": 32 + }, + "end": { + "line": 158, + "column": 38 + }, + "identifierName": "output" + }, + "name": "output" + }, + { + "type": "Identifier", + "start": 4860, + "end": 4866, + "loc": { + "start": { + "line": 158, + "column": 40 + }, + "end": { + "line": 158, + "column": 46 + }, + "identifierName": "button" + }, + "name": "button" + }, + { + "type": "Identifier", + "start": 4868, + "end": 4876, + "loc": { + "start": { + "line": 158, + "column": 48 + }, + "end": { + "line": 158, + "column": 56 + }, + "identifierName": "caretPos" + }, + "name": "caretPos" + } + ] + } + } + }, + "alternate": { + "type": "IfStatement", + "start": 4891, + "end": 5001, + "loc": { + "start": { + "line": 160, + "column": 9 + }, + "end": { + "line": 161, + "column": 58 + } + }, + "test": { + "type": "LogicalExpression", + "start": 4894, + "end": 4940, + "loc": { + "start": { + "line": 160, + "column": 12 + }, + "end": { + "line": 160, + "column": 58 + } + }, + "left": { + "type": "UnaryExpression", + "start": 4894, + "end": 4915, + "loc": { + "start": { + "line": 160, + "column": 12 + }, + "end": { + "line": 160, + "column": 33 + } + }, + "operator": "!", + "prefix": true, + "argument": { + "type": "CallExpression", + "start": 4895, + "end": 4915, + "loc": { + "start": { + "line": 160, + "column": 13 + }, + "end": { + "line": 160, + "column": 33 + } + }, + "callee": { + "type": "MemberExpression", + "start": 4895, + "end": 4910, + "loc": { + "start": { + "line": 160, + "column": 13 + }, + "end": { + "line": 160, + "column": 28 + } + }, + "object": { + "type": "Identifier", + "start": 4895, + "end": 4901, + "loc": { + "start": { + "line": 160, + "column": 13 + }, + "end": { + "line": 160, + "column": 19 + }, + "identifierName": "button" + }, + "name": "button" + }, + "property": { + "type": "Identifier", + "start": 4902, + "end": 4910, + "loc": { + "start": { + "line": 160, + "column": 20 + }, + "end": { + "line": 160, + "column": 28 + }, + "identifierName": "includes" + }, + "name": "includes" + }, + "computed": false + }, + "arguments": [ + { + "type": "StringLiteral", + "start": 4911, + "end": 4914, + "loc": { + "start": { + "line": 160, + "column": 29 + }, + "end": { + "line": 160, + "column": 32 + } + }, + "extra": { + "rawValue": "{", + "raw": "\"{\"" + }, + "value": "{" + } + ] + }, + "extra": { + "parenthesizedArgument": false + } + }, + "operator": "&&", + "right": { + "type": "UnaryExpression", + "start": 4919, + "end": 4940, + "loc": { + "start": { + "line": 160, + "column": 37 + }, + "end": { + "line": 160, + "column": 58 + } + }, + "operator": "!", + "prefix": true, + "argument": { + "type": "CallExpression", + "start": 4920, + "end": 4940, + "loc": { + "start": { + "line": 160, + "column": 38 + }, + "end": { + "line": 160, + "column": 58 + } + }, + "callee": { + "type": "MemberExpression", + "start": 4920, + "end": 4935, + "loc": { + "start": { + "line": 160, + "column": 38 + }, + "end": { + "line": 160, + "column": 53 + } + }, + "object": { + "type": "Identifier", + "start": 4920, + "end": 4926, + "loc": { + "start": { + "line": 160, + "column": 38 + }, + "end": { + "line": 160, + "column": 44 + }, + "identifierName": "button" + }, + "name": "button" + }, + "property": { + "type": "Identifier", + "start": 4927, + "end": 4935, + "loc": { + "start": { + "line": 160, + "column": 45 + }, + "end": { + "line": 160, + "column": 53 + }, + "identifierName": "includes" + }, + "name": "includes" + }, + "computed": false + }, + "arguments": [ + { + "type": "StringLiteral", + "start": 4936, + "end": 4939, + "loc": { + "start": { + "line": 160, + "column": 54 + }, + "end": { + "line": 160, + "column": 57 + } + }, + "extra": { + "rawValue": "}", + "raw": "\"}\"" + }, + "value": "}" + } + ] + }, + "extra": { + "parenthesizedArgument": false + } + } + }, + "consequent": { + "type": "ExpressionStatement", + "start": 4949, + "end": 5001, + "loc": { + "start": { + "line": 161, + "column": 6 + }, + "end": { + "line": 161, + "column": 58 + } + }, + "expression": { + "type": "AssignmentExpression", + "start": 4949, + "end": 5000, + "loc": { + "start": { + "line": 161, + "column": 6 + }, + "end": { + "line": 161, + "column": 57 + } + }, + "operator": "=", + "left": { + "type": "Identifier", + "start": 4949, + "end": 4955, + "loc": { + "start": { + "line": 161, + "column": 6 + }, + "end": { + "line": 161, + "column": 12 + }, + "identifierName": "output" + }, + "name": "output" + }, + "right": { + "type": "CallExpression", + "start": 4958, + "end": 5000, + "loc": { + "start": { + "line": 161, + "column": 15 + }, + "end": { + "line": 161, + "column": 57 + } + }, + "callee": { + "type": "MemberExpression", + "start": 4958, + "end": 4974, + "loc": { + "start": { + "line": 161, + "column": 15 + }, + "end": { + "line": 161, + "column": 31 + } + }, + "object": { + "type": "ThisExpression", + "start": 4958, + "end": 4962, + "loc": { + "start": { + "line": 161, + "column": 15 + }, + "end": { + "line": 161, + "column": 19 + } + } + }, + "property": { + "type": "Identifier", + "start": 4963, + "end": 4974, + "loc": { + "start": { + "line": 161, + "column": 20 + }, + "end": { + "line": 161, + "column": 31 + }, + "identifierName": "addStringAt" + }, + "name": "addStringAt" + }, + "computed": false + }, + "arguments": [ + { + "type": "Identifier", + "start": 4975, + "end": 4981, + "loc": { + "start": { + "line": 161, + "column": 32 + }, + "end": { + "line": 161, + "column": 38 + }, + "identifierName": "output" + }, + "name": "output" + }, + { + "type": "Identifier", + "start": 4983, + "end": 4989, + "loc": { + "start": { + "line": 161, + "column": 40 + }, + "end": { + "line": 161, + "column": 46 + }, + "identifierName": "button" + }, + "name": "button" + }, + { + "type": "Identifier", + "start": 4991, + "end": 4999, + "loc": { + "start": { + "line": 161, + "column": 48 + }, + "end": { + "line": 161, + "column": 56 + }, + "identifierName": "caretPos" + }, + "name": "caretPos" + } + ] + } + } + }, + "alternate": null + } + } + } + } + } + } + } + } + } + } + } + }, + { + "type": "ReturnStatement", + "start": 5009, + "end": 5023, + "loc": { + "start": { + "line": 163, + "column": 4 + }, + "end": { + "line": 163, + "column": 18 + } + }, + "argument": { + "type": "Identifier", + "start": 5016, + "end": 5022, + "loc": { + "start": { + "line": 163, + "column": 11 + }, + "end": { + "line": 163, + "column": 17 + }, + "identifierName": "output" + }, + "name": "output" + } + } + ], + "directives": [], + "trailingComments": null + }, + "trailingComments": null + }, + "leadingComments": [ + { + "type": "CommentBlock", + "value": "*\r\n * Returns the updated input resulting from clicking a given button\r\n * \r\n * @param {string} button The button's layout name\r\n * @param {string} input The input string\r\n * @param {object} options The simple-keyboard options object\r\n * @param {number} caretPos The cursor's current position\r\n ", + "start": 3114, + "end": 3431, + "loc": { + "start": { + "line": 116, + "column": 2 + }, + "end": { + "line": 123, + "column": 5 + } + } + } + ], + "trailingComments": [ + { + "type": "CommentBlock", + "value": "*\r\n * Moves the cursor position by a given amount\r\n * \r\n * @param {number} length Represents by how many characters the input should be moved\r\n * @param {boolean} minus Whether the cursor should be moved to the left or not.\r\n ", + "start": 5032, + "end": 5274, + "loc": { + "start": { + "line": 165, + "column": 2 + }, + "end": { + "line": 170, + "column": 5 + } + } + } + ] + }, + { + "type": "ClassProperty", + "start": 5278, + "end": 5621, + "loc": { + "start": { + "line": 171, + "column": 2 + }, + "end": { + "line": 178, + "column": 3 + } + }, + "static": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 5278, + "end": 5292, + "loc": { + "start": { + "line": 171, + "column": 2 + }, + "end": { + "line": 171, + "column": 16 + }, + "identifierName": "updateCaretPos" + }, + "name": "updateCaretPos", + "leadingComments": null + }, + "value": { + "type": "ArrowFunctionExpression", + "start": 5295, + "end": 5621, + "loc": { + "start": { + "line": 171, + "column": 19 + }, + "end": { + "line": 178, + "column": 3 + } + }, + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 5296, + "end": 5302, + "loc": { + "start": { + "line": 171, + "column": 20 + }, + "end": { + "line": 171, + "column": 26 + }, + "identifierName": "length" + }, + "name": "length" + }, + { + "type": "Identifier", + "start": 5304, + "end": 5309, + "loc": { + "start": { + "line": 171, + "column": 28 + }, + "end": { + "line": 171, + "column": 33 + }, + "identifierName": "minus" + }, + "name": "minus" + } + ], + "body": { + "type": "BlockStatement", + "start": 5314, + "end": 5621, + "loc": { + "start": { + "line": 171, + "column": 38 + }, + "end": { + "line": 178, + "column": 3 + } + }, + "body": [ + { + "type": "IfStatement", + "start": 5321, + "end": 5616, + "loc": { + "start": { + "line": 172, + "column": 4 + }, + "end": { + "line": 177, + "column": 5 + } + }, + "test": { + "type": "Identifier", + "start": 5324, + "end": 5329, + "loc": { + "start": { + "line": 172, + "column": 7 + }, + "end": { + "line": 172, + "column": 12 + }, + "identifierName": "minus" + }, + "name": "minus" + }, + "consequent": { + "type": "BlockStatement", + "start": 5330, + "end": 5499, + "loc": { + "start": { + "line": 172, + "column": 13 + }, + "end": { + "line": 175, + "column": 5 + } + }, + "body": [ + { + "type": "IfStatement", + "start": 5339, + "end": 5492, + "loc": { + "start": { + "line": 173, + "column": 6 + }, + "end": { + "line": 174, + "column": 102 + } + }, + "test": { + "type": "BinaryExpression", + "start": 5342, + "end": 5387, + "loc": { + "start": { + "line": 173, + "column": 9 + }, + "end": { + "line": 173, + "column": 54 + } + }, + "left": { + "type": "MemberExpression", + "start": 5342, + "end": 5383, + "loc": { + "start": { + "line": 173, + "column": 9 + }, + "end": { + "line": 173, + "column": 50 + } + }, + "object": { + "type": "MemberExpression", + "start": 5342, + "end": 5369, + "loc": { + "start": { + "line": 173, + "column": 9 + }, + "end": { + "line": 173, + "column": 36 + } + }, + "object": { + "type": "ThisExpression", + "start": 5342, + "end": 5346, + "loc": { + "start": { + "line": 173, + "column": 9 + }, + "end": { + "line": 173, + "column": 13 + } + } + }, + "property": { + "type": "Identifier", + "start": 5347, + "end": 5369, + "loc": { + "start": { + "line": 173, + "column": 14 + }, + "end": { + "line": 173, + "column": 36 + }, + "identifierName": "simpleKeyboardInstance" + }, + "name": "simpleKeyboardInstance" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 5370, + "end": 5383, + "loc": { + "start": { + "line": 173, + "column": 37 + }, + "end": { + "line": 173, + "column": 50 + }, + "identifierName": "caretPosition" + }, + "name": "caretPosition" + }, + "computed": false + }, + "operator": ">", + "right": { + "type": "NumericLiteral", + "start": 5386, + "end": 5387, + "loc": { + "start": { + "line": 173, + "column": 53 + }, + "end": { + "line": 173, + "column": 54 + } + }, + "extra": { + "rawValue": 0, + "raw": "0" + }, + "value": 0 + } + }, + "consequent": { + "type": "ExpressionStatement", + "start": 5398, + "end": 5492, + "loc": { + "start": { + "line": 174, + "column": 8 + }, + "end": { + "line": 174, + "column": 102 + } + }, + "expression": { + "type": "AssignmentExpression", + "start": 5398, + "end": 5492, + "loc": { + "start": { + "line": 174, + "column": 8 + }, + "end": { + "line": 174, + "column": 102 + } + }, + "operator": "=", + "left": { + "type": "MemberExpression", + "start": 5398, + "end": 5439, + "loc": { + "start": { + "line": 174, + "column": 8 + }, + "end": { + "line": 174, + "column": 49 + } + }, + "object": { + "type": "MemberExpression", + "start": 5398, + "end": 5425, + "loc": { + "start": { + "line": 174, + "column": 8 + }, + "end": { + "line": 174, + "column": 35 + } + }, + "object": { + "type": "ThisExpression", + "start": 5398, + "end": 5402, + "loc": { + "start": { + "line": 174, + "column": 8 + }, + "end": { + "line": 174, + "column": 12 + } + } + }, + "property": { + "type": "Identifier", + "start": 5403, + "end": 5425, + "loc": { + "start": { + "line": 174, + "column": 13 + }, + "end": { + "line": 174, + "column": 35 + }, + "identifierName": "simpleKeyboardInstance" + }, + "name": "simpleKeyboardInstance" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 5426, + "end": 5439, + "loc": { + "start": { + "line": 174, + "column": 36 + }, + "end": { + "line": 174, + "column": 49 + }, + "identifierName": "caretPosition" + }, + "name": "caretPosition" + }, + "computed": false + }, + "right": { + "type": "BinaryExpression", + "start": 5442, + "end": 5492, + "loc": { + "start": { + "line": 174, + "column": 52 + }, + "end": { + "line": 174, + "column": 102 + } + }, + "left": { + "type": "MemberExpression", + "start": 5442, + "end": 5483, + "loc": { + "start": { + "line": 174, + "column": 52 + }, + "end": { + "line": 174, + "column": 93 + } + }, + "object": { + "type": "MemberExpression", + "start": 5442, + "end": 5469, + "loc": { + "start": { + "line": 174, + "column": 52 + }, + "end": { + "line": 174, + "column": 79 + } + }, + "object": { + "type": "ThisExpression", + "start": 5442, + "end": 5446, + "loc": { + "start": { + "line": 174, + "column": 52 + }, + "end": { + "line": 174, + "column": 56 + } + } + }, + "property": { + "type": "Identifier", + "start": 5447, + "end": 5469, + "loc": { + "start": { + "line": 174, + "column": 57 + }, + "end": { + "line": 174, + "column": 79 + }, + "identifierName": "simpleKeyboardInstance" + }, + "name": "simpleKeyboardInstance" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 5470, + "end": 5483, + "loc": { + "start": { + "line": 174, + "column": 80 + }, + "end": { + "line": 174, + "column": 93 + }, + "identifierName": "caretPosition" + }, + "name": "caretPosition" + }, + "computed": false + }, + "operator": "-", + "right": { + "type": "Identifier", + "start": 5486, + "end": 5492, + "loc": { + "start": { + "line": 174, + "column": 96 + }, + "end": { + "line": 174, + "column": 102 + }, + "identifierName": "length" + }, + "name": "length" + } + } + } + }, + "alternate": null + } + ], + "directives": [] + }, + "alternate": { + "type": "BlockStatement", + "start": 5505, + "end": 5616, + "loc": { + "start": { + "line": 175, + "column": 11 + }, + "end": { + "line": 177, + "column": 5 + } + }, + "body": [ + { + "type": "ExpressionStatement", + "start": 5514, + "end": 5609, + "loc": { + "start": { + "line": 176, + "column": 6 + }, + "end": { + "line": 176, + "column": 101 + } + }, + "expression": { + "type": "AssignmentExpression", + "start": 5514, + "end": 5608, + "loc": { + "start": { + "line": 176, + "column": 6 + }, + "end": { + "line": 176, + "column": 100 + } + }, + "operator": "=", + "left": { + "type": "MemberExpression", + "start": 5514, + "end": 5555, + "loc": { + "start": { + "line": 176, + "column": 6 + }, + "end": { + "line": 176, + "column": 47 + } + }, + "object": { + "type": "MemberExpression", + "start": 5514, + "end": 5541, + "loc": { + "start": { + "line": 176, + "column": 6 + }, + "end": { + "line": 176, + "column": 33 + } + }, + "object": { + "type": "ThisExpression", + "start": 5514, + "end": 5518, + "loc": { + "start": { + "line": 176, + "column": 6 + }, + "end": { + "line": 176, + "column": 10 + } + } + }, + "property": { + "type": "Identifier", + "start": 5519, + "end": 5541, + "loc": { + "start": { + "line": 176, + "column": 11 + }, + "end": { + "line": 176, + "column": 33 + }, + "identifierName": "simpleKeyboardInstance" + }, + "name": "simpleKeyboardInstance" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 5542, + "end": 5555, + "loc": { + "start": { + "line": 176, + "column": 34 + }, + "end": { + "line": 176, + "column": 47 + }, + "identifierName": "caretPosition" + }, + "name": "caretPosition" + }, + "computed": false + }, + "right": { + "type": "BinaryExpression", + "start": 5558, + "end": 5608, + "loc": { + "start": { + "line": 176, + "column": 50 + }, + "end": { + "line": 176, + "column": 100 + } + }, + "left": { + "type": "MemberExpression", + "start": 5558, + "end": 5599, + "loc": { + "start": { + "line": 176, + "column": 50 + }, + "end": { + "line": 176, + "column": 91 + } + }, + "object": { + "type": "MemberExpression", + "start": 5558, + "end": 5585, + "loc": { + "start": { + "line": 176, + "column": 50 + }, + "end": { + "line": 176, + "column": 77 + } + }, + "object": { + "type": "ThisExpression", + "start": 5558, + "end": 5562, + "loc": { + "start": { + "line": 176, + "column": 50 + }, + "end": { + "line": 176, + "column": 54 + } + } + }, + "property": { + "type": "Identifier", + "start": 5563, + "end": 5585, + "loc": { + "start": { + "line": 176, + "column": 55 + }, + "end": { + "line": 176, + "column": 77 + }, + "identifierName": "simpleKeyboardInstance" + }, + "name": "simpleKeyboardInstance" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 5586, + "end": 5599, + "loc": { + "start": { + "line": 176, + "column": 78 + }, + "end": { + "line": 176, + "column": 91 + }, + "identifierName": "caretPosition" + }, + "name": "caretPosition" + }, + "computed": false + }, + "operator": "+", + "right": { + "type": "Identifier", + "start": 5602, + "end": 5608, + "loc": { + "start": { + "line": 176, + "column": 94 + }, + "end": { + "line": 176, + "column": 100 + }, + "identifierName": "length" + }, + "name": "length" + } + } + } + } + ], + "directives": [] + } + } + ], + "directives": [], + "trailingComments": null + }, + "trailingComments": null + }, + "leadingComments": [ + { + "type": "CommentBlock", + "value": "*\r\n * Moves the cursor position by a given amount\r\n * \r\n * @param {number} length Represents by how many characters the input should be moved\r\n * @param {boolean} minus Whether the cursor should be moved to the left or not.\r\n ", + "start": 5032, + "end": 5274, + "loc": { + "start": { + "line": 165, + "column": 2 + }, + "end": { + "line": 170, + "column": 5 + } + } + } + ], + "trailingComments": [ + { + "type": "CommentBlock", + "value": "*\r\n * Adds a string to the input at a given position\r\n * \r\n * @param {string} source The source input\r\n * @param {string} string The string to add\r\n * @param {number} position The (cursor) position where the string should be added\r\n ", + "start": 5627, + "end": 5879, + "loc": { + "start": { + "line": 180, + "column": 2 + }, + "end": { + "line": 186, + "column": 5 + } + } + } + ] + }, + { + "type": "ClassMethod", + "start": 5883, + "end": 6428, + "loc": { + "start": { + "line": 187, + "column": 2 + }, + "end": { + "line": 209, + "column": 3 + } + }, + "static": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 5883, + "end": 5894, + "loc": { + "start": { + "line": 187, + "column": 2 + }, + "end": { + "line": 187, + "column": 13 + }, + "identifierName": "addStringAt" + }, + "name": "addStringAt", + "leadingComments": null + }, + "kind": "method", + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 5895, + "end": 5901, + "loc": { + "start": { + "line": 187, + "column": 14 + }, + "end": { + "line": 187, + "column": 20 + }, + "identifierName": "source" + }, + "name": "source" + }, + { + "type": "Identifier", + "start": 5903, + "end": 5909, + "loc": { + "start": { + "line": 187, + "column": 22 + }, + "end": { + "line": 187, + "column": 28 + }, + "identifierName": "string" + }, + "name": "string" + }, + { + "type": "Identifier", + "start": 5911, + "end": 5919, + "loc": { + "start": { + "line": 187, + "column": 30 + }, + "end": { + "line": 187, + "column": 38 + }, + "identifierName": "position" + }, + "name": "position" + } + ], + "body": { + "type": "BlockStatement", + "start": 5920, + "end": 6428, + "loc": { + "start": { + "line": 187, + "column": 39 + }, + "end": { + "line": 209, + "column": 3 + } + }, + "body": [ + { + "type": "VariableDeclaration", + "start": 5927, + "end": 5938, + "loc": { + "start": { + "line": 188, + "column": 4 + }, + "end": { + "line": 188, + "column": 15 + } + }, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 5931, + "end": 5937, + "loc": { + "start": { + "line": 188, + "column": 8 + }, + "end": { + "line": 188, + "column": 14 + } + }, + "id": { + "type": "Identifier", + "start": 5931, + "end": 5937, + "loc": { + "start": { + "line": 188, + "column": 8 + }, + "end": { + "line": 188, + "column": 14 + }, + "identifierName": "output" + }, + "name": "output" + }, + "init": null + } + ], + "kind": "let" + }, + { + "type": "IfStatement", + "start": 5946, + "end": 6042, + "loc": { + "start": { + "line": 190, + "column": 4 + }, + "end": { + "line": 192, + "column": 5 + } + }, + "test": { + "type": "MemberExpression", + "start": 5949, + "end": 5990, + "loc": { + "start": { + "line": 190, + "column": 7 + }, + "end": { + "line": 190, + "column": 48 + } + }, + "object": { + "type": "MemberExpression", + "start": 5949, + "end": 5984, + "loc": { + "start": { + "line": 190, + "column": 7 + }, + "end": { + "line": 190, + "column": 42 + } + }, + "object": { + "type": "MemberExpression", + "start": 5949, + "end": 5976, + "loc": { + "start": { + "line": 190, + "column": 7 + }, + "end": { + "line": 190, + "column": 34 + } + }, + "object": { + "type": "ThisExpression", + "start": 5949, + "end": 5953, + "loc": { + "start": { + "line": 190, + "column": 7 + }, + "end": { + "line": 190, + "column": 11 + } + } + }, + "property": { + "type": "Identifier", + "start": 5954, + "end": 5976, + "loc": { + "start": { + "line": 190, + "column": 12 + }, + "end": { + "line": 190, + "column": 34 + }, + "identifierName": "simpleKeyboardInstance" + }, + "name": "simpleKeyboardInstance" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 5977, + "end": 5984, + "loc": { + "start": { + "line": 190, + "column": 35 + }, + "end": { + "line": 190, + "column": 42 + }, + "identifierName": "options" + }, + "name": "options" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 5985, + "end": 5990, + "loc": { + "start": { + "line": 190, + "column": 43 + }, + "end": { + "line": 190, + "column": 48 + }, + "identifierName": "debug" + }, + "name": "debug" + }, + "computed": false + }, + "consequent": { + "type": "BlockStatement", + "start": 5991, + "end": 6042, + "loc": { + "start": { + "line": 190, + "column": 49 + }, + "end": { + "line": 192, + "column": 5 + } + }, + "body": [ + { + "type": "ExpressionStatement", + "start": 6000, + "end": 6035, + "loc": { + "start": { + "line": 191, + "column": 6 + }, + "end": { + "line": 191, + "column": 41 + } + }, + "expression": { + "type": "CallExpression", + "start": 6000, + "end": 6034, + "loc": { + "start": { + "line": 191, + "column": 6 + }, + "end": { + "line": 191, + "column": 40 + } + }, + "callee": { + "type": "MemberExpression", + "start": 6000, + "end": 6011, + "loc": { + "start": { + "line": 191, + "column": 6 + }, + "end": { + "line": 191, + "column": 17 + } + }, + "object": { + "type": "Identifier", + "start": 6000, + "end": 6007, + "loc": { + "start": { + "line": 191, + "column": 6 + }, + "end": { + "line": 191, + "column": 13 + }, + "identifierName": "console" + }, + "name": "console" + }, + "property": { + "type": "Identifier", + "start": 6008, + "end": 6011, + "loc": { + "start": { + "line": 191, + "column": 14 + }, + "end": { + "line": 191, + "column": 17 + }, + "identifierName": "log" + }, + "name": "log" + }, + "computed": false + }, + "arguments": [ + { + "type": "StringLiteral", + "start": 6012, + "end": 6023, + "loc": { + "start": { + "line": 191, + "column": 18 + }, + "end": { + "line": 191, + "column": 29 + } + }, + "extra": { + "rawValue": "Caret at:", + "raw": "\"Caret at:\"" + }, + "value": "Caret at:" + }, + { + "type": "Identifier", + "start": 6025, + "end": 6033, + "loc": { + "start": { + "line": 191, + "column": 31 + }, + "end": { + "line": 191, + "column": 39 + }, + "identifierName": "position" + }, + "name": "position" + } + ] + } + } + ], + "directives": [] + }, + "alternate": null + }, + { + "type": "IfStatement", + "start": 6050, + "end": 6401, + "loc": { + "start": { + "line": 194, + "column": 4 + }, + "end": { + "line": 206, + "column": 5 + } + }, + "test": { + "type": "LogicalExpression", + "start": 6053, + "end": 6080, + "loc": { + "start": { + "line": 194, + "column": 7 + }, + "end": { + "line": 194, + "column": 34 + } + }, + "left": { + "type": "UnaryExpression", + "start": 6053, + "end": 6062, + "loc": { + "start": { + "line": 194, + "column": 7 + }, + "end": { + "line": 194, + "column": 16 + } + }, + "operator": "!", + "prefix": true, + "argument": { + "type": "Identifier", + "start": 6054, + "end": 6062, + "loc": { + "start": { + "line": 194, + "column": 8 + }, + "end": { + "line": 194, + "column": 16 + }, + "identifierName": "position" + }, + "name": "position" + }, + "extra": { + "parenthesizedArgument": false + } + }, + "operator": "&&", + "right": { + "type": "BinaryExpression", + "start": 6066, + "end": 6080, + "loc": { + "start": { + "line": 194, + "column": 20 + }, + "end": { + "line": 194, + "column": 34 + } + }, + "left": { + "type": "Identifier", + "start": 6066, + "end": 6074, + "loc": { + "start": { + "line": 194, + "column": 20 + }, + "end": { + "line": 194, + "column": 28 + }, + "identifierName": "position" + }, + "name": "position" + }, + "operator": "!==", + "right": { + "type": "NumericLiteral", + "start": 6079, + "end": 6080, + "loc": { + "start": { + "line": 194, + "column": 33 + }, + "end": { + "line": 194, + "column": 34 + } + }, + "extra": { + "rawValue": 0, + "raw": "0" + }, + "value": 0 + } + } + }, + "consequent": { + "type": "BlockStatement", + "start": 6081, + "end": 6122, + "loc": { + "start": { + "line": 194, + "column": 35 + }, + "end": { + "line": 196, + "column": 5 + } + }, + "body": [ + { + "type": "ExpressionStatement", + "start": 6090, + "end": 6115, + "loc": { + "start": { + "line": 195, + "column": 6 + }, + "end": { + "line": 195, + "column": 31 + } + }, + "expression": { + "type": "AssignmentExpression", + "start": 6090, + "end": 6114, + "loc": { + "start": { + "line": 195, + "column": 6 + }, + "end": { + "line": 195, + "column": 30 + } + }, + "operator": "=", + "left": { + "type": "Identifier", + "start": 6090, + "end": 6096, + "loc": { + "start": { + "line": 195, + "column": 6 + }, + "end": { + "line": 195, + "column": 12 + }, + "identifierName": "output" + }, + "name": "output" + }, + "right": { + "type": "BinaryExpression", + "start": 6099, + "end": 6114, + "loc": { + "start": { + "line": 195, + "column": 15 + }, + "end": { + "line": 195, + "column": 30 + } + }, + "left": { + "type": "Identifier", + "start": 6099, + "end": 6105, + "loc": { + "start": { + "line": 195, + "column": 15 + }, + "end": { + "line": 195, + "column": 21 + }, + "identifierName": "source" + }, + "name": "source" + }, + "operator": "+", + "right": { + "type": "Identifier", + "start": 6108, + "end": 6114, + "loc": { + "start": { + "line": 195, + "column": 24 + }, + "end": { + "line": 195, + "column": 30 + }, + "identifierName": "string" + }, + "name": "string" + } + } + } + } + ], + "directives": [] + }, + "alternate": { + "type": "BlockStatement", + "start": 6128, + "end": 6401, + "loc": { + "start": { + "line": 196, + "column": 11 + }, + "end": { + "line": 206, + "column": 5 + } + }, + "body": [ + { + "type": "ExpressionStatement", + "start": 6137, + "end": 6215, + "loc": { + "start": { + "line": 197, + "column": 6 + }, + "end": { + "line": 197, + "column": 84 + } + }, + "expression": { + "type": "AssignmentExpression", + "start": 6137, + "end": 6214, + "loc": { + "start": { + "line": 197, + "column": 6 + }, + "end": { + "line": 197, + "column": 83 + } + }, + "operator": "=", + "left": { + "type": "Identifier", + "start": 6137, + "end": 6143, + "loc": { + "start": { + "line": 197, + "column": 6 + }, + "end": { + "line": 197, + "column": 12 + }, + "identifierName": "output" + }, + "name": "output" + }, + "right": { + "type": "CallExpression", + "start": 6146, + "end": 6214, + "loc": { + "start": { + "line": 197, + "column": 15 + }, + "end": { + "line": 197, + "column": 83 + } + }, + "callee": { + "type": "MemberExpression", + "start": 6146, + "end": 6210, + "loc": { + "start": { + "line": 197, + "column": 15 + }, + "end": { + "line": 197, + "column": 79 + } + }, + "object": { + "type": "ArrayExpression", + "start": 6146, + "end": 6205, + "loc": { + "start": { + "line": 197, + "column": 15 + }, + "end": { + "line": 197, + "column": 74 + } + }, + "elements": [ + { + "type": "CallExpression", + "start": 6147, + "end": 6172, + "loc": { + "start": { + "line": 197, + "column": 16 + }, + "end": { + "line": 197, + "column": 41 + } + }, + "callee": { + "type": "MemberExpression", + "start": 6147, + "end": 6159, + "loc": { + "start": { + "line": 197, + "column": 16 + }, + "end": { + "line": 197, + "column": 28 + } + }, + "object": { + "type": "Identifier", + "start": 6147, + "end": 6153, + "loc": { + "start": { + "line": 197, + "column": 16 + }, + "end": { + "line": 197, + "column": 22 + }, + "identifierName": "source" + }, + "name": "source" + }, + "property": { + "type": "Identifier", + "start": 6154, + "end": 6159, + "loc": { + "start": { + "line": 197, + "column": 23 + }, + "end": { + "line": 197, + "column": 28 + }, + "identifierName": "slice" + }, + "name": "slice" + }, + "computed": false + }, + "arguments": [ + { + "type": "NumericLiteral", + "start": 6160, + "end": 6161, + "loc": { + "start": { + "line": 197, + "column": 29 + }, + "end": { + "line": 197, + "column": 30 + } + }, + "extra": { + "rawValue": 0, + "raw": "0" + }, + "value": 0 + }, + { + "type": "Identifier", + "start": 6163, + "end": 6171, + "loc": { + "start": { + "line": 197, + "column": 32 + }, + "end": { + "line": 197, + "column": 40 + }, + "identifierName": "position" + }, + "name": "position" + } + ] + }, + { + "type": "Identifier", + "start": 6174, + "end": 6180, + "loc": { + "start": { + "line": 197, + "column": 43 + }, + "end": { + "line": 197, + "column": 49 + }, + "identifierName": "string" + }, + "name": "string" + }, + { + "type": "CallExpression", + "start": 6182, + "end": 6204, + "loc": { + "start": { + "line": 197, + "column": 51 + }, + "end": { + "line": 197, + "column": 73 + } + }, + "callee": { + "type": "MemberExpression", + "start": 6182, + "end": 6194, + "loc": { + "start": { + "line": 197, + "column": 51 + }, + "end": { + "line": 197, + "column": 63 + } + }, + "object": { + "type": "Identifier", + "start": 6182, + "end": 6188, + "loc": { + "start": { + "line": 197, + "column": 51 + }, + "end": { + "line": 197, + "column": 57 + }, + "identifierName": "source" + }, + "name": "source" + }, + "property": { + "type": "Identifier", + "start": 6189, + "end": 6194, + "loc": { + "start": { + "line": 197, + "column": 58 + }, + "end": { + "line": 197, + "column": 63 + }, + "identifierName": "slice" + }, + "name": "slice" + }, + "computed": false + }, + "arguments": [ + { + "type": "Identifier", + "start": 6195, + "end": 6203, + "loc": { + "start": { + "line": 197, + "column": 64 + }, + "end": { + "line": 197, + "column": 72 + }, + "identifierName": "position" + }, + "name": "position" + } + ] + } + ] + }, + "property": { + "type": "Identifier", + "start": 6206, + "end": 6210, + "loc": { + "start": { + "line": 197, + "column": 75 + }, + "end": { + "line": 197, + "column": 79 + }, + "identifierName": "join" + }, + "name": "join" + }, + "computed": false + }, + "arguments": [ + { + "type": "StringLiteral", + "start": 6211, + "end": 6213, + "loc": { + "start": { + "line": 197, + "column": 80 + }, + "end": { + "line": 197, + "column": 82 + } + }, + "extra": { + "rawValue": "", + "raw": "''" + }, + "value": "" + } + ] + } + }, + "trailingComments": [ + { + "type": "CommentBlock", + "value": "*\r\n * Avoid caret position change when maxLength is set\r\n ", + "start": 6225, + "end": 6299, + "loc": { + "start": { + "line": 199, + "column": 6 + }, + "end": { + "line": 201, + "column": 9 + } + } + } + ] + }, + { + "type": "IfStatement", + "start": 6307, + "end": 6392, + "loc": { + "start": { + "line": 202, + "column": 6 + }, + "end": { + "line": 204, + "column": 7 + } + }, + "test": { + "type": "UnaryExpression", + "start": 6310, + "end": 6336, + "loc": { + "start": { + "line": 202, + "column": 9 + }, + "end": { + "line": 202, + "column": 35 + } + }, + "operator": "!", + "prefix": true, + "argument": { + "type": "CallExpression", + "start": 6311, + "end": 6336, + "loc": { + "start": { + "line": 202, + "column": 10 + }, + "end": { + "line": 202, + "column": 35 + } + }, + "callee": { + "type": "MemberExpression", + "start": 6311, + "end": 6334, + "loc": { + "start": { + "line": 202, + "column": 10 + }, + "end": { + "line": 202, + "column": 33 + } + }, + "object": { + "type": "ThisExpression", + "start": 6311, + "end": 6315, + "loc": { + "start": { + "line": 202, + "column": 10 + }, + "end": { + "line": 202, + "column": 14 + } + }, + "leadingComments": null + }, + "property": { + "type": "Identifier", + "start": 6316, + "end": 6334, + "loc": { + "start": { + "line": 202, + "column": 15 + }, + "end": { + "line": 202, + "column": 33 + }, + "identifierName": "isMaxLengthReached" + }, + "name": "isMaxLengthReached" + }, + "computed": false, + "leadingComments": null + }, + "arguments": [], + "leadingComments": null + }, + "extra": { + "parenthesizedArgument": false + }, + "leadingComments": null + }, + "consequent": { + "type": "BlockStatement", + "start": 6337, + "end": 6392, + "loc": { + "start": { + "line": 202, + "column": 36 + }, + "end": { + "line": 204, + "column": 7 + } + }, + "body": [ + { + "type": "ExpressionStatement", + "start": 6348, + "end": 6383, + "loc": { + "start": { + "line": 203, + "column": 8 + }, + "end": { + "line": 203, + "column": 43 + } + }, + "expression": { + "type": "CallExpression", + "start": 6348, + "end": 6382, + "loc": { + "start": { + "line": 203, + "column": 8 + }, + "end": { + "line": 203, + "column": 42 + } + }, + "callee": { + "type": "MemberExpression", + "start": 6348, + "end": 6367, + "loc": { + "start": { + "line": 203, + "column": 8 + }, + "end": { + "line": 203, + "column": 27 + } + }, + "object": { + "type": "ThisExpression", + "start": 6348, + "end": 6352, + "loc": { + "start": { + "line": 203, + "column": 8 + }, + "end": { + "line": 203, + "column": 12 + } + } + }, + "property": { + "type": "Identifier", + "start": 6353, + "end": 6367, + "loc": { + "start": { + "line": 203, + "column": 13 + }, + "end": { + "line": 203, + "column": 27 + }, + "identifierName": "updateCaretPos" + }, + "name": "updateCaretPos" + }, + "computed": false + }, + "arguments": [ + { + "type": "MemberExpression", + "start": 6368, + "end": 6381, + "loc": { + "start": { + "line": 203, + "column": 28 + }, + "end": { + "line": 203, + "column": 41 + } + }, + "object": { + "type": "Identifier", + "start": 6368, + "end": 6374, + "loc": { + "start": { + "line": 203, + "column": 28 + }, + "end": { + "line": 203, + "column": 34 + }, + "identifierName": "string" + }, + "name": "string" + }, + "property": { + "type": "Identifier", + "start": 6375, + "end": 6381, + "loc": { + "start": { + "line": 203, + "column": 35 + }, + "end": { + "line": 203, + "column": 41 + }, + "identifierName": "length" + }, + "name": "length" + }, + "computed": false + } + ] + } + } + ], + "directives": [] + }, + "alternate": null, + "leadingComments": [ + { + "type": "CommentBlock", + "value": "*\r\n * Avoid caret position change when maxLength is set\r\n ", + "start": 6225, + "end": 6299, + "loc": { + "start": { + "line": 199, + "column": 6 + }, + "end": { + "line": 201, + "column": 9 + } + } + } + ] + } + ], + "directives": [] + } + }, + { + "type": "ReturnStatement", + "start": 6409, + "end": 6423, + "loc": { + "start": { + "line": 208, + "column": 4 + }, + "end": { + "line": 208, + "column": 18 + } + }, + "argument": { + "type": "Identifier", + "start": 6416, + "end": 6422, + "loc": { + "start": { + "line": 208, + "column": 11 + }, + "end": { + "line": 208, + "column": 17 + }, + "identifierName": "output" + }, + "name": "output" + } + } + ], + "directives": [], + "trailingComments": null + }, + "leadingComments": [ + { + "type": "CommentBlock", + "value": "*\r\n * Adds a string to the input at a given position\r\n * \r\n * @param {string} source The source input\r\n * @param {string} string The string to add\r\n * @param {number} position The (cursor) position where the string should be added\r\n ", + "start": 5627, + "end": 5879, + "loc": { + "start": { + "line": 180, + "column": 2 + }, + "end": { + "line": 186, + "column": 5 + } + } + } + ], + "trailingComments": [ + { + "type": "CommentBlock", + "value": "*\r\n * Removes an amount of characters at a given position\r\n * \r\n * @param {string} source The source input\r\n * @param {number} position The (cursor) position from where the characters should be removed\r\n ", + "start": 6434, + "end": 6654, + "loc": { + "start": { + "line": 211, + "column": 2 + }, + "end": { + "line": 216, + "column": 5 + } + } + } + ] + }, + { + "type": "ClassMethod", + "start": 6658, + "end": 7888, + "loc": { + "start": { + "line": 217, + "column": 2 + }, + "end": { + "line": 256, + "column": 3 + } + }, + "static": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 6658, + "end": 6666, + "loc": { + "start": { + "line": 217, + "column": 2 + }, + "end": { + "line": 217, + "column": 10 + }, + "identifierName": "removeAt" + }, + "name": "removeAt", + "leadingComments": null + }, + "kind": "method", + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 6667, + "end": 6673, + "loc": { + "start": { + "line": 217, + "column": 11 + }, + "end": { + "line": 217, + "column": 17 + }, + "identifierName": "source" + }, + "name": "source" + }, + { + "type": "Identifier", + "start": 6675, + "end": 6683, + "loc": { + "start": { + "line": 217, + "column": 19 + }, + "end": { + "line": 217, + "column": 27 + }, + "identifierName": "position" + }, + "name": "position" + } + ], + "body": { + "type": "BlockStatement", + "start": 6684, + "end": 7888, + "loc": { + "start": { + "line": 217, + "column": 28 + }, + "end": { + "line": 256, + "column": 3 + } + }, + "body": [ + { + "type": "IfStatement", + "start": 6691, + "end": 6772, + "loc": { + "start": { + "line": 218, + "column": 4 + }, + "end": { + "line": 220, + "column": 5 + } + }, + "test": { + "type": "BinaryExpression", + "start": 6694, + "end": 6741, + "loc": { + "start": { + "line": 218, + "column": 7 + }, + "end": { + "line": 218, + "column": 54 + } + }, + "left": { + "type": "MemberExpression", + "start": 6694, + "end": 6735, + "loc": { + "start": { + "line": 218, + "column": 7 + }, + "end": { + "line": 218, + "column": 48 + } + }, + "object": { + "type": "MemberExpression", + "start": 6694, + "end": 6721, + "loc": { + "start": { + "line": 218, + "column": 7 + }, + "end": { + "line": 218, + "column": 34 + } + }, + "object": { + "type": "ThisExpression", + "start": 6694, + "end": 6698, + "loc": { + "start": { + "line": 218, + "column": 7 + }, + "end": { + "line": 218, + "column": 11 + } + } + }, + "property": { + "type": "Identifier", + "start": 6699, + "end": 6721, + "loc": { + "start": { + "line": 218, + "column": 12 + }, + "end": { + "line": 218, + "column": 34 + }, + "identifierName": "simpleKeyboardInstance" + }, + "name": "simpleKeyboardInstance" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 6722, + "end": 6735, + "loc": { + "start": { + "line": 218, + "column": 35 + }, + "end": { + "line": 218, + "column": 48 + }, + "identifierName": "caretPosition" + }, + "name": "caretPosition" + }, + "computed": false + }, + "operator": "===", + "right": { + "type": "NumericLiteral", + "start": 6740, + "end": 6741, + "loc": { + "start": { + "line": 218, + "column": 53 + }, + "end": { + "line": 218, + "column": 54 + } + }, + "extra": { + "rawValue": 0, + "raw": "0" + }, + "value": 0 + } + }, + "consequent": { + "type": "BlockStatement", + "start": 6742, + "end": 6772, + "loc": { + "start": { + "line": 218, + "column": 55 + }, + "end": { + "line": 220, + "column": 5 + } + }, + "body": [ + { + "type": "ReturnStatement", + "start": 6751, + "end": 6765, + "loc": { + "start": { + "line": 219, + "column": 6 + }, + "end": { + "line": 219, + "column": 20 + } + }, + "argument": { + "type": "Identifier", + "start": 6758, + "end": 6764, + "loc": { + "start": { + "line": 219, + "column": 13 + }, + "end": { + "line": 219, + "column": 19 + }, + "identifierName": "source" + }, + "name": "source" + } + } + ], + "directives": [] + }, + "alternate": null + }, + { + "type": "VariableDeclaration", + "start": 6780, + "end": 6791, + "loc": { + "start": { + "line": 222, + "column": 4 + }, + "end": { + "line": 222, + "column": 15 + } + }, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 6784, + "end": 6790, + "loc": { + "start": { + "line": 222, + "column": 8 + }, + "end": { + "line": 222, + "column": 14 + } + }, + "id": { + "type": "Identifier", + "start": 6784, + "end": 6790, + "loc": { + "start": { + "line": 222, + "column": 8 + }, + "end": { + "line": 222, + "column": 14 + }, + "identifierName": "output" + }, + "name": "output" + }, + "init": null + } + ], + "kind": "let" + }, + { + "type": "VariableDeclaration", + "start": 6797, + "end": 6814, + "loc": { + "start": { + "line": 223, + "column": 4 + }, + "end": { + "line": 223, + "column": 21 + } + }, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 6801, + "end": 6813, + "loc": { + "start": { + "line": 223, + "column": 8 + }, + "end": { + "line": 223, + "column": 20 + } + }, + "id": { + "type": "Identifier", + "start": 6801, + "end": 6813, + "loc": { + "start": { + "line": 223, + "column": 8 + }, + "end": { + "line": 223, + "column": 20 + }, + "identifierName": "prevTwoChars" + }, + "name": "prevTwoChars" + }, + "init": null + } + ], + "kind": "let" + }, + { + "type": "VariableDeclaration", + "start": 6820, + "end": 6837, + "loc": { + "start": { + "line": 224, + "column": 4 + }, + "end": { + "line": 224, + "column": 21 + } + }, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 6824, + "end": 6836, + "loc": { + "start": { + "line": 224, + "column": 8 + }, + "end": { + "line": 224, + "column": 20 + } + }, + "id": { + "type": "Identifier", + "start": 6824, + "end": 6836, + "loc": { + "start": { + "line": 224, + "column": 8 + }, + "end": { + "line": 224, + "column": 20 + }, + "identifierName": "emojiMatched" + }, + "name": "emojiMatched" + }, + "init": null + } + ], + "kind": "let" + }, + { + "type": "VariableDeclaration", + "start": 6843, + "end": 6901, + "loc": { + "start": { + "line": 225, + "column": 4 + }, + "end": { + "line": 225, + "column": 62 + } + }, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 6847, + "end": 6900, + "loc": { + "start": { + "line": 225, + "column": 8 + }, + "end": { + "line": 225, + "column": 61 + } + }, + "id": { + "type": "Identifier", + "start": 6847, + "end": 6862, + "loc": { + "start": { + "line": 225, + "column": 8 + }, + "end": { + "line": 225, + "column": 23 + }, + "identifierName": "emojiMatchedReg" + }, + "name": "emojiMatchedReg" + }, + "init": { + "type": "RegExpLiteral", + "start": 6865, + "end": 6900, + "loc": { + "start": { + "line": 225, + "column": 26 + }, + "end": { + "line": 225, + "column": 61 + } + }, + "extra": { + "raw": "/([\\uD800-\\uDBFF][\\uDC00-\\uDFFF])/g" + }, + "pattern": "([\\uD800-\\uDBFF][\\uDC00-\\uDFFF])", + "flags": "g" + } + } + ], + "kind": "let", + "trailingComments": [ + { + "type": "CommentBlock", + "value": "*\r\n * Emojis are made out of two characters, so we must take a custom approach to trim them.\r\n * For more info: https://mathiasbynens.be/notes/javascript-unicode\r\n ", + "start": 6909, + "end": 7089, + "loc": { + "start": { + "line": 227, + "column": 4 + }, + "end": { + "line": 230, + "column": 7 + } + } + } + ] + }, + { + "type": "IfStatement", + "start": 7095, + "end": 7861, + "loc": { + "start": { + "line": 231, + "column": 4 + }, + "end": { + "line": 253, + "column": 5 + } + }, + "test": { + "type": "LogicalExpression", + "start": 7098, + "end": 7123, + "loc": { + "start": { + "line": 231, + "column": 7 + }, + "end": { + "line": 231, + "column": 32 + } + }, + "left": { + "type": "Identifier", + "start": 7098, + "end": 7106, + "loc": { + "start": { + "line": 231, + "column": 7 + }, + "end": { + "line": 231, + "column": 15 + }, + "identifierName": "position" + }, + "name": "position", + "leadingComments": null + }, + "operator": "&&", + "right": { + "type": "BinaryExpression", + "start": 7110, + "end": 7123, + "loc": { + "start": { + "line": 231, + "column": 19 + }, + "end": { + "line": 231, + "column": 32 + } + }, + "left": { + "type": "Identifier", + "start": 7110, + "end": 7118, + "loc": { + "start": { + "line": 231, + "column": 19 + }, + "end": { + "line": 231, + "column": 27 + }, + "identifierName": "position" + }, + "name": "position" + }, + "operator": ">=", + "right": { + "type": "NumericLiteral", + "start": 7122, + "end": 7123, + "loc": { + "start": { + "line": 231, + "column": 31 + }, + "end": { + "line": 231, + "column": 32 + } + }, + "extra": { + "rawValue": 0, + "raw": "0" + }, + "value": 0 + } + }, + "leadingComments": null + }, + "consequent": { + "type": "BlockStatement", + "start": 7124, + "end": 7540, + "loc": { + "start": { + "line": 231, + "column": 33 + }, + "end": { + "line": 242, + "column": 5 + } + }, + "body": [ + { + "type": "ExpressionStatement", + "start": 7133, + "end": 7188, + "loc": { + "start": { + "line": 232, + "column": 6 + }, + "end": { + "line": 232, + "column": 61 + } + }, + "expression": { + "type": "AssignmentExpression", + "start": 7133, + "end": 7188, + "loc": { + "start": { + "line": 232, + "column": 6 + }, + "end": { + "line": 232, + "column": 61 + } + }, + "operator": "=", + "left": { + "type": "Identifier", + "start": 7133, + "end": 7145, + "loc": { + "start": { + "line": 232, + "column": 6 + }, + "end": { + "line": 232, + "column": 18 + }, + "identifierName": "prevTwoChars" + }, + "name": "prevTwoChars" + }, + "right": { + "type": "CallExpression", + "start": 7148, + "end": 7188, + "loc": { + "start": { + "line": 232, + "column": 21 + }, + "end": { + "line": 232, + "column": 61 + } + }, + "callee": { + "type": "MemberExpression", + "start": 7148, + "end": 7164, + "loc": { + "start": { + "line": 232, + "column": 21 + }, + "end": { + "line": 232, + "column": 37 + } + }, + "object": { + "type": "Identifier", + "start": 7148, + "end": 7154, + "loc": { + "start": { + "line": 232, + "column": 21 + }, + "end": { + "line": 232, + "column": 27 + }, + "identifierName": "source" + }, + "name": "source" + }, + "property": { + "type": "Identifier", + "start": 7155, + "end": 7164, + "loc": { + "start": { + "line": 232, + "column": 28 + }, + "end": { + "line": 232, + "column": 37 + }, + "identifierName": "substring" + }, + "name": "substring" + }, + "computed": false + }, + "arguments": [ + { + "type": "BinaryExpression", + "start": 7165, + "end": 7177, + "loc": { + "start": { + "line": 232, + "column": 38 + }, + "end": { + "line": 232, + "column": 50 + } + }, + "left": { + "type": "Identifier", + "start": 7165, + "end": 7173, + "loc": { + "start": { + "line": 232, + "column": 38 + }, + "end": { + "line": 232, + "column": 46 + }, + "identifierName": "position" + }, + "name": "position" + }, + "operator": "-", + "right": { + "type": "NumericLiteral", + "start": 7176, + "end": 7177, + "loc": { + "start": { + "line": 232, + "column": 49 + }, + "end": { + "line": 232, + "column": 50 + } + }, + "extra": { + "rawValue": 2, + "raw": "2" + }, + "value": 2 + } + }, + { + "type": "Identifier", + "start": 7179, + "end": 7187, + "loc": { + "start": { + "line": 232, + "column": 52 + }, + "end": { + "line": 232, + "column": 60 + }, + "identifierName": "position" + }, + "name": "position" + } + ] + } + } + }, + { + "type": "ExpressionStatement", + "start": 7196, + "end": 7247, + "loc": { + "start": { + "line": 233, + "column": 6 + }, + "end": { + "line": 233, + "column": 57 + } + }, + "expression": { + "type": "AssignmentExpression", + "start": 7196, + "end": 7246, + "loc": { + "start": { + "line": 233, + "column": 6 + }, + "end": { + "line": 233, + "column": 56 + } + }, + "operator": "=", + "left": { + "type": "Identifier", + "start": 7196, + "end": 7208, + "loc": { + "start": { + "line": 233, + "column": 6 + }, + "end": { + "line": 233, + "column": 18 + }, + "identifierName": "emojiMatched" + }, + "name": "emojiMatched" + }, + "right": { + "type": "CallExpression", + "start": 7211, + "end": 7246, + "loc": { + "start": { + "line": 233, + "column": 21 + }, + "end": { + "line": 233, + "column": 56 + } + }, + "callee": { + "type": "MemberExpression", + "start": 7211, + "end": 7229, + "loc": { + "start": { + "line": 233, + "column": 21 + }, + "end": { + "line": 233, + "column": 39 + } + }, + "object": { + "type": "Identifier", + "start": 7211, + "end": 7223, + "loc": { + "start": { + "line": 233, + "column": 21 + }, + "end": { + "line": 233, + "column": 33 + }, + "identifierName": "prevTwoChars" + }, + "name": "prevTwoChars" + }, + "property": { + "type": "Identifier", + "start": 7224, + "end": 7229, + "loc": { + "start": { + "line": 233, + "column": 34 + }, + "end": { + "line": 233, + "column": 39 + }, + "identifierName": "match" + }, + "name": "match" + }, + "computed": false + }, + "arguments": [ + { + "type": "Identifier", + "start": 7230, + "end": 7245, + "loc": { + "start": { + "line": 233, + "column": 40 + }, + "end": { + "line": 233, + "column": 55 + }, + "identifierName": "emojiMatchedReg" + }, + "name": "emojiMatchedReg" + } + ] + } + } + }, + { + "type": "IfStatement", + "start": 7257, + "end": 7533, + "loc": { + "start": { + "line": 235, + "column": 6 + }, + "end": { + "line": 241, + "column": 7 + } + }, + "test": { + "type": "Identifier", + "start": 7260, + "end": 7272, + "loc": { + "start": { + "line": 235, + "column": 9 + }, + "end": { + "line": 235, + "column": 21 + }, + "identifierName": "emojiMatched" + }, + "name": "emojiMatched" + }, + "consequent": { + "type": "BlockStatement", + "start": 7273, + "end": 7400, + "loc": { + "start": { + "line": 235, + "column": 22 + }, + "end": { + "line": 238, + "column": 7 + } + }, + "body": [ + { + "type": "ExpressionStatement", + "start": 7284, + "end": 7352, + "loc": { + "start": { + "line": 236, + "column": 8 + }, + "end": { + "line": 236, + "column": 76 + } + }, + "expression": { + "type": "AssignmentExpression", + "start": 7284, + "end": 7351, + "loc": { + "start": { + "line": 236, + "column": 8 + }, + "end": { + "line": 236, + "column": 75 + } + }, + "operator": "=", + "left": { + "type": "Identifier", + "start": 7284, + "end": 7290, + "loc": { + "start": { + "line": 236, + "column": 8 + }, + "end": { + "line": 236, + "column": 14 + }, + "identifierName": "output" + }, + "name": "output" + }, + "right": { + "type": "BinaryExpression", + "start": 7293, + "end": 7351, + "loc": { + "start": { + "line": 236, + "column": 17 + }, + "end": { + "line": 236, + "column": 75 + } + }, + "left": { + "type": "CallExpression", + "start": 7293, + "end": 7325, + "loc": { + "start": { + "line": 236, + "column": 17 + }, + "end": { + "line": 236, + "column": 49 + } + }, + "callee": { + "type": "MemberExpression", + "start": 7293, + "end": 7306, + "loc": { + "start": { + "line": 236, + "column": 17 + }, + "end": { + "line": 236, + "column": 30 + } + }, + "object": { + "type": "Identifier", + "start": 7293, + "end": 7299, + "loc": { + "start": { + "line": 236, + "column": 17 + }, + "end": { + "line": 236, + "column": 23 + }, + "identifierName": "source" + }, + "name": "source" + }, + "property": { + "type": "Identifier", + "start": 7300, + "end": 7306, + "loc": { + "start": { + "line": 236, + "column": 24 + }, + "end": { + "line": 236, + "column": 30 + }, + "identifierName": "substr" + }, + "name": "substr" + }, + "computed": false + }, + "arguments": [ + { + "type": "NumericLiteral", + "start": 7307, + "end": 7308, + "loc": { + "start": { + "line": 236, + "column": 31 + }, + "end": { + "line": 236, + "column": 32 + } + }, + "extra": { + "rawValue": 0, + "raw": "0" + }, + "value": 0 + }, + { + "type": "BinaryExpression", + "start": 7311, + "end": 7323, + "loc": { + "start": { + "line": 236, + "column": 35 + }, + "end": { + "line": 236, + "column": 47 + } + }, + "left": { + "type": "Identifier", + "start": 7311, + "end": 7319, + "loc": { + "start": { + "line": 236, + "column": 35 + }, + "end": { + "line": 236, + "column": 43 + }, + "identifierName": "position" + }, + "name": "position" + }, + "operator": "-", + "right": { + "type": "NumericLiteral", + "start": 7322, + "end": 7323, + "loc": { + "start": { + "line": 236, + "column": 46 + }, + "end": { + "line": 236, + "column": 47 + } + }, + "extra": { + "rawValue": 2, + "raw": "2" + }, + "value": 2 + }, + "extra": { + "parenthesized": true, + "parenStart": 7310 + } + } + ] + }, + "operator": "+", + "right": { + "type": "CallExpression", + "start": 7328, + "end": 7351, + "loc": { + "start": { + "line": 236, + "column": 52 + }, + "end": { + "line": 236, + "column": 75 + } + }, + "callee": { + "type": "MemberExpression", + "start": 7328, + "end": 7341, + "loc": { + "start": { + "line": 236, + "column": 52 + }, + "end": { + "line": 236, + "column": 65 + } + }, + "object": { + "type": "Identifier", + "start": 7328, + "end": 7334, + "loc": { + "start": { + "line": 236, + "column": 52 + }, + "end": { + "line": 236, + "column": 58 + }, + "identifierName": "source" + }, + "name": "source" + }, + "property": { + "type": "Identifier", + "start": 7335, + "end": 7341, + "loc": { + "start": { + "line": 236, + "column": 59 + }, + "end": { + "line": 236, + "column": 65 + }, + "identifierName": "substr" + }, + "name": "substr" + }, + "computed": false + }, + "arguments": [ + { + "type": "Identifier", + "start": 7342, + "end": 7350, + "loc": { + "start": { + "line": 236, + "column": 66 + }, + "end": { + "line": 236, + "column": 74 + }, + "identifierName": "position" + }, + "name": "position" + } + ] + } + } + } + }, + { + "type": "ExpressionStatement", + "start": 7362, + "end": 7391, + "loc": { + "start": { + "line": 237, + "column": 8 + }, + "end": { + "line": 237, + "column": 37 + } + }, + "expression": { + "type": "CallExpression", + "start": 7362, + "end": 7390, + "loc": { + "start": { + "line": 237, + "column": 8 + }, + "end": { + "line": 237, + "column": 36 + } + }, + "callee": { + "type": "MemberExpression", + "start": 7362, + "end": 7381, + "loc": { + "start": { + "line": 237, + "column": 8 + }, + "end": { + "line": 237, + "column": 27 + } + }, + "object": { + "type": "ThisExpression", + "start": 7362, + "end": 7366, + "loc": { + "start": { + "line": 237, + "column": 8 + }, + "end": { + "line": 237, + "column": 12 + } + } + }, + "property": { + "type": "Identifier", + "start": 7367, + "end": 7381, + "loc": { + "start": { + "line": 237, + "column": 13 + }, + "end": { + "line": 237, + "column": 27 + }, + "identifierName": "updateCaretPos" + }, + "name": "updateCaretPos" + }, + "computed": false + }, + "arguments": [ + { + "type": "NumericLiteral", + "start": 7382, + "end": 7383, + "loc": { + "start": { + "line": 237, + "column": 28 + }, + "end": { + "line": 237, + "column": 29 + } + }, + "extra": { + "rawValue": 2, + "raw": "2" + }, + "value": 2 + }, + { + "type": "BooleanLiteral", + "start": 7385, + "end": 7389, + "loc": { + "start": { + "line": 237, + "column": 31 + }, + "end": { + "line": 237, + "column": 35 + } + }, + "value": true + } + ] + } + } + ], + "directives": [] + }, + "alternate": { + "type": "BlockStatement", + "start": 7406, + "end": 7533, + "loc": { + "start": { + "line": 238, + "column": 13 + }, + "end": { + "line": 241, + "column": 7 + } + }, + "body": [ + { + "type": "ExpressionStatement", + "start": 7417, + "end": 7485, + "loc": { + "start": { + "line": 239, + "column": 8 + }, + "end": { + "line": 239, + "column": 76 + } + }, + "expression": { + "type": "AssignmentExpression", + "start": 7417, + "end": 7484, + "loc": { + "start": { + "line": 239, + "column": 8 + }, + "end": { + "line": 239, + "column": 75 + } + }, + "operator": "=", + "left": { + "type": "Identifier", + "start": 7417, + "end": 7423, + "loc": { + "start": { + "line": 239, + "column": 8 + }, + "end": { + "line": 239, + "column": 14 + }, + "identifierName": "output" + }, + "name": "output" + }, + "right": { + "type": "BinaryExpression", + "start": 7426, + "end": 7484, + "loc": { + "start": { + "line": 239, + "column": 17 + }, + "end": { + "line": 239, + "column": 75 + } + }, + "left": { + "type": "CallExpression", + "start": 7426, + "end": 7458, + "loc": { + "start": { + "line": 239, + "column": 17 + }, + "end": { + "line": 239, + "column": 49 + } + }, + "callee": { + "type": "MemberExpression", + "start": 7426, + "end": 7439, + "loc": { + "start": { + "line": 239, + "column": 17 + }, + "end": { + "line": 239, + "column": 30 + } + }, + "object": { + "type": "Identifier", + "start": 7426, + "end": 7432, + "loc": { + "start": { + "line": 239, + "column": 17 + }, + "end": { + "line": 239, + "column": 23 + }, + "identifierName": "source" + }, + "name": "source" + }, + "property": { + "type": "Identifier", + "start": 7433, + "end": 7439, + "loc": { + "start": { + "line": 239, + "column": 24 + }, + "end": { + "line": 239, + "column": 30 + }, + "identifierName": "substr" + }, + "name": "substr" + }, + "computed": false + }, + "arguments": [ + { + "type": "NumericLiteral", + "start": 7440, + "end": 7441, + "loc": { + "start": { + "line": 239, + "column": 31 + }, + "end": { + "line": 239, + "column": 32 + } + }, + "extra": { + "rawValue": 0, + "raw": "0" + }, + "value": 0 + }, + { + "type": "BinaryExpression", + "start": 7444, + "end": 7456, + "loc": { + "start": { + "line": 239, + "column": 35 + }, + "end": { + "line": 239, + "column": 47 + } + }, + "left": { + "type": "Identifier", + "start": 7444, + "end": 7452, + "loc": { + "start": { + "line": 239, + "column": 35 + }, + "end": { + "line": 239, + "column": 43 + }, + "identifierName": "position" + }, + "name": "position" + }, + "operator": "-", + "right": { + "type": "NumericLiteral", + "start": 7455, + "end": 7456, + "loc": { + "start": { + "line": 239, + "column": 46 + }, + "end": { + "line": 239, + "column": 47 + } + }, + "extra": { + "rawValue": 1, + "raw": "1" + }, + "value": 1 + }, + "extra": { + "parenthesized": true, + "parenStart": 7443 + } + } + ] + }, + "operator": "+", + "right": { + "type": "CallExpression", + "start": 7461, + "end": 7484, + "loc": { + "start": { + "line": 239, + "column": 52 + }, + "end": { + "line": 239, + "column": 75 + } + }, + "callee": { + "type": "MemberExpression", + "start": 7461, + "end": 7474, + "loc": { + "start": { + "line": 239, + "column": 52 + }, + "end": { + "line": 239, + "column": 65 + } + }, + "object": { + "type": "Identifier", + "start": 7461, + "end": 7467, + "loc": { + "start": { + "line": 239, + "column": 52 + }, + "end": { + "line": 239, + "column": 58 + }, + "identifierName": "source" + }, + "name": "source" + }, + "property": { + "type": "Identifier", + "start": 7468, + "end": 7474, + "loc": { + "start": { + "line": 239, + "column": 59 + }, + "end": { + "line": 239, + "column": 65 + }, + "identifierName": "substr" + }, + "name": "substr" + }, + "computed": false + }, + "arguments": [ + { + "type": "Identifier", + "start": 7475, + "end": 7483, + "loc": { + "start": { + "line": 239, + "column": 66 + }, + "end": { + "line": 239, + "column": 74 + }, + "identifierName": "position" + }, + "name": "position" + } + ] + } + } + } + }, + { + "type": "ExpressionStatement", + "start": 7495, + "end": 7524, + "loc": { + "start": { + "line": 240, + "column": 8 + }, + "end": { + "line": 240, + "column": 37 + } + }, + "expression": { + "type": "CallExpression", + "start": 7495, + "end": 7523, + "loc": { + "start": { + "line": 240, + "column": 8 + }, + "end": { + "line": 240, + "column": 36 + } + }, + "callee": { + "type": "MemberExpression", + "start": 7495, + "end": 7514, + "loc": { + "start": { + "line": 240, + "column": 8 + }, + "end": { + "line": 240, + "column": 27 + } + }, + "object": { + "type": "ThisExpression", + "start": 7495, + "end": 7499, + "loc": { + "start": { + "line": 240, + "column": 8 + }, + "end": { + "line": 240, + "column": 12 + } + } + }, + "property": { + "type": "Identifier", + "start": 7500, + "end": 7514, + "loc": { + "start": { + "line": 240, + "column": 13 + }, + "end": { + "line": 240, + "column": 27 + }, + "identifierName": "updateCaretPos" + }, + "name": "updateCaretPos" + }, + "computed": false + }, + "arguments": [ + { + "type": "NumericLiteral", + "start": 7515, + "end": 7516, + "loc": { + "start": { + "line": 240, + "column": 28 + }, + "end": { + "line": 240, + "column": 29 + } + }, + "extra": { + "rawValue": 1, + "raw": "1" + }, + "value": 1 + }, + { + "type": "BooleanLiteral", + "start": 7518, + "end": 7522, + "loc": { + "start": { + "line": 240, + "column": 31 + }, + "end": { + "line": 240, + "column": 35 + } + }, + "value": true + } + ] + } + } + ], + "directives": [] + } + } + ], + "directives": [] + }, + "alternate": { + "type": "BlockStatement", + "start": 7546, + "end": 7861, + "loc": { + "start": { + "line": 242, + "column": 11 + }, + "end": { + "line": 253, + "column": 5 + } + }, + "body": [ + { + "type": "ExpressionStatement", + "start": 7555, + "end": 7587, + "loc": { + "start": { + "line": 243, + "column": 6 + }, + "end": { + "line": 243, + "column": 38 + } + }, + "expression": { + "type": "AssignmentExpression", + "start": 7555, + "end": 7586, + "loc": { + "start": { + "line": 243, + "column": 6 + }, + "end": { + "line": 243, + "column": 37 + } + }, + "operator": "=", + "left": { + "type": "Identifier", + "start": 7555, + "end": 7567, + "loc": { + "start": { + "line": 243, + "column": 6 + }, + "end": { + "line": 243, + "column": 18 + }, + "identifierName": "prevTwoChars" + }, + "name": "prevTwoChars" + }, + "right": { + "type": "CallExpression", + "start": 7570, + "end": 7586, + "loc": { + "start": { + "line": 243, + "column": 21 + }, + "end": { + "line": 243, + "column": 37 + } + }, + "callee": { + "type": "MemberExpression", + "start": 7570, + "end": 7582, + "loc": { + "start": { + "line": 243, + "column": 21 + }, + "end": { + "line": 243, + "column": 33 + } + }, + "object": { + "type": "Identifier", + "start": 7570, + "end": 7576, + "loc": { + "start": { + "line": 243, + "column": 21 + }, + "end": { + "line": 243, + "column": 27 + }, + "identifierName": "source" + }, + "name": "source" + }, + "property": { + "type": "Identifier", + "start": 7577, + "end": 7582, + "loc": { + "start": { + "line": 243, + "column": 28 + }, + "end": { + "line": 243, + "column": 33 + }, + "identifierName": "slice" + }, + "name": "slice" + }, + "computed": false + }, + "arguments": [ + { + "type": "UnaryExpression", + "start": 7583, + "end": 7585, + "loc": { + "start": { + "line": 243, + "column": 34 + }, + "end": { + "line": 243, + "column": 36 + } + }, + "operator": "-", + "prefix": true, + "argument": { + "type": "NumericLiteral", + "start": 7584, + "end": 7585, + "loc": { + "start": { + "line": 243, + "column": 35 + }, + "end": { + "line": 243, + "column": 36 + } + }, + "extra": { + "rawValue": 2, + "raw": "2" + }, + "value": 2 + }, + "extra": { + "parenthesizedArgument": false + } + } + ] + } + } + }, + { + "type": "ExpressionStatement", + "start": 7595, + "end": 7646, + "loc": { + "start": { + "line": 244, + "column": 6 + }, + "end": { + "line": 244, + "column": 57 + } + }, + "expression": { + "type": "AssignmentExpression", + "start": 7595, + "end": 7645, + "loc": { + "start": { + "line": 244, + "column": 6 + }, + "end": { + "line": 244, + "column": 56 + } + }, + "operator": "=", + "left": { + "type": "Identifier", + "start": 7595, + "end": 7607, + "loc": { + "start": { + "line": 244, + "column": 6 + }, + "end": { + "line": 244, + "column": 18 + }, + "identifierName": "emojiMatched" + }, + "name": "emojiMatched" + }, + "right": { + "type": "CallExpression", + "start": 7610, + "end": 7645, + "loc": { + "start": { + "line": 244, + "column": 21 + }, + "end": { + "line": 244, + "column": 56 + } + }, + "callee": { + "type": "MemberExpression", + "start": 7610, + "end": 7628, + "loc": { + "start": { + "line": 244, + "column": 21 + }, + "end": { + "line": 244, + "column": 39 + } + }, + "object": { + "type": "Identifier", + "start": 7610, + "end": 7622, + "loc": { + "start": { + "line": 244, + "column": 21 + }, + "end": { + "line": 244, + "column": 33 + }, + "identifierName": "prevTwoChars" + }, + "name": "prevTwoChars" + }, + "property": { + "type": "Identifier", + "start": 7623, + "end": 7628, + "loc": { + "start": { + "line": 244, + "column": 34 + }, + "end": { + "line": 244, + "column": 39 + }, + "identifierName": "match" + }, + "name": "match" + }, + "computed": false + }, + "arguments": [ + { + "type": "Identifier", + "start": 7629, + "end": 7644, + "loc": { + "start": { + "line": 244, + "column": 40 + }, + "end": { + "line": 244, + "column": 55 + }, + "identifierName": "emojiMatchedReg" + }, + "name": "emojiMatchedReg" + } + ] + } + } + }, + { + "type": "IfStatement", + "start": 7656, + "end": 7854, + "loc": { + "start": { + "line": 246, + "column": 6 + }, + "end": { + "line": 252, + "column": 7 + } + }, + "test": { + "type": "Identifier", + "start": 7659, + "end": 7671, + "loc": { + "start": { + "line": 246, + "column": 9 + }, + "end": { + "line": 246, + "column": 21 + }, + "identifierName": "emojiMatched" + }, + "name": "emojiMatched" + }, + "consequent": { + "type": "BlockStatement", + "start": 7672, + "end": 7760, + "loc": { + "start": { + "line": 246, + "column": 22 + }, + "end": { + "line": 249, + "column": 7 + } + }, + "body": [ + { + "type": "ExpressionStatement", + "start": 7683, + "end": 7712, + "loc": { + "start": { + "line": 247, + "column": 8 + }, + "end": { + "line": 247, + "column": 37 + } + }, + "expression": { + "type": "AssignmentExpression", + "start": 7683, + "end": 7711, + "loc": { + "start": { + "line": 247, + "column": 8 + }, + "end": { + "line": 247, + "column": 36 + } + }, + "operator": "=", + "left": { + "type": "Identifier", + "start": 7683, + "end": 7689, + "loc": { + "start": { + "line": 247, + "column": 8 + }, + "end": { + "line": 247, + "column": 14 + }, + "identifierName": "output" + }, + "name": "output" + }, + "right": { + "type": "CallExpression", + "start": 7692, + "end": 7711, + "loc": { + "start": { + "line": 247, + "column": 17 + }, + "end": { + "line": 247, + "column": 36 + } + }, + "callee": { + "type": "MemberExpression", + "start": 7692, + "end": 7704, + "loc": { + "start": { + "line": 247, + "column": 17 + }, + "end": { + "line": 247, + "column": 29 + } + }, + "object": { + "type": "Identifier", + "start": 7692, + "end": 7698, + "loc": { + "start": { + "line": 247, + "column": 17 + }, + "end": { + "line": 247, + "column": 23 + }, + "identifierName": "source" + }, + "name": "source" + }, + "property": { + "type": "Identifier", + "start": 7699, + "end": 7704, + "loc": { + "start": { + "line": 247, + "column": 24 + }, + "end": { + "line": 247, + "column": 29 + }, + "identifierName": "slice" + }, + "name": "slice" + }, + "computed": false + }, + "arguments": [ + { + "type": "NumericLiteral", + "start": 7705, + "end": 7706, + "loc": { + "start": { + "line": 247, + "column": 30 + }, + "end": { + "line": 247, + "column": 31 + } + }, + "extra": { + "rawValue": 0, + "raw": "0" + }, + "value": 0 + }, + { + "type": "UnaryExpression", + "start": 7708, + "end": 7710, + "loc": { + "start": { + "line": 247, + "column": 33 + }, + "end": { + "line": 247, + "column": 35 + } + }, + "operator": "-", + "prefix": true, + "argument": { + "type": "NumericLiteral", + "start": 7709, + "end": 7710, + "loc": { + "start": { + "line": 247, + "column": 34 + }, + "end": { + "line": 247, + "column": 35 + } + }, + "extra": { + "rawValue": 2, + "raw": "2" + }, + "value": 2 + }, + "extra": { + "parenthesizedArgument": false + } + } + ] + } + } + }, + { + "type": "ExpressionStatement", + "start": 7722, + "end": 7751, + "loc": { + "start": { + "line": 248, + "column": 8 + }, + "end": { + "line": 248, + "column": 37 + } + }, + "expression": { + "type": "CallExpression", + "start": 7722, + "end": 7750, + "loc": { + "start": { + "line": 248, + "column": 8 + }, + "end": { + "line": 248, + "column": 36 + } + }, + "callee": { + "type": "MemberExpression", + "start": 7722, + "end": 7741, + "loc": { + "start": { + "line": 248, + "column": 8 + }, + "end": { + "line": 248, + "column": 27 + } + }, + "object": { + "type": "ThisExpression", + "start": 7722, + "end": 7726, + "loc": { + "start": { + "line": 248, + "column": 8 + }, + "end": { + "line": 248, + "column": 12 + } + } + }, + "property": { + "type": "Identifier", + "start": 7727, + "end": 7741, + "loc": { + "start": { + "line": 248, + "column": 13 + }, + "end": { + "line": 248, + "column": 27 + }, + "identifierName": "updateCaretPos" + }, + "name": "updateCaretPos" + }, + "computed": false + }, + "arguments": [ + { + "type": "NumericLiteral", + "start": 7742, + "end": 7743, + "loc": { + "start": { + "line": 248, + "column": 28 + }, + "end": { + "line": 248, + "column": 29 + } + }, + "extra": { + "rawValue": 2, + "raw": "2" + }, + "value": 2 + }, + { + "type": "BooleanLiteral", + "start": 7745, + "end": 7749, + "loc": { + "start": { + "line": 248, + "column": 31 + }, + "end": { + "line": 248, + "column": 35 + } + }, + "value": true + } + ] + } + } + ], + "directives": [] + }, + "alternate": { + "type": "BlockStatement", + "start": 7766, + "end": 7854, + "loc": { + "start": { + "line": 249, + "column": 13 + }, + "end": { + "line": 252, + "column": 7 + } + }, + "body": [ + { + "type": "ExpressionStatement", + "start": 7777, + "end": 7806, + "loc": { + "start": { + "line": 250, + "column": 8 + }, + "end": { + "line": 250, + "column": 37 + } + }, + "expression": { + "type": "AssignmentExpression", + "start": 7777, + "end": 7805, + "loc": { + "start": { + "line": 250, + "column": 8 + }, + "end": { + "line": 250, + "column": 36 + } + }, + "operator": "=", + "left": { + "type": "Identifier", + "start": 7777, + "end": 7783, + "loc": { + "start": { + "line": 250, + "column": 8 + }, + "end": { + "line": 250, + "column": 14 + }, + "identifierName": "output" + }, + "name": "output" + }, + "right": { + "type": "CallExpression", + "start": 7786, + "end": 7805, + "loc": { + "start": { + "line": 250, + "column": 17 + }, + "end": { + "line": 250, + "column": 36 + } + }, + "callee": { + "type": "MemberExpression", + "start": 7786, + "end": 7798, + "loc": { + "start": { + "line": 250, + "column": 17 + }, + "end": { + "line": 250, + "column": 29 + } + }, + "object": { + "type": "Identifier", + "start": 7786, + "end": 7792, + "loc": { + "start": { + "line": 250, + "column": 17 + }, + "end": { + "line": 250, + "column": 23 + }, + "identifierName": "source" + }, + "name": "source" + }, + "property": { + "type": "Identifier", + "start": 7793, + "end": 7798, + "loc": { + "start": { + "line": 250, + "column": 24 + }, + "end": { + "line": 250, + "column": 29 + }, + "identifierName": "slice" + }, + "name": "slice" + }, + "computed": false + }, + "arguments": [ + { + "type": "NumericLiteral", + "start": 7799, + "end": 7800, + "loc": { + "start": { + "line": 250, + "column": 30 + }, + "end": { + "line": 250, + "column": 31 + } + }, + "extra": { + "rawValue": 0, + "raw": "0" + }, + "value": 0 + }, + { + "type": "UnaryExpression", + "start": 7802, + "end": 7804, + "loc": { + "start": { + "line": 250, + "column": 33 + }, + "end": { + "line": 250, + "column": 35 + } + }, + "operator": "-", + "prefix": true, + "argument": { + "type": "NumericLiteral", + "start": 7803, + "end": 7804, + "loc": { + "start": { + "line": 250, + "column": 34 + }, + "end": { + "line": 250, + "column": 35 + } + }, + "extra": { + "rawValue": 1, + "raw": "1" + }, + "value": 1 + }, + "extra": { + "parenthesizedArgument": false + } + } + ] + } + } + }, + { + "type": "ExpressionStatement", + "start": 7816, + "end": 7845, + "loc": { + "start": { + "line": 251, + "column": 8 + }, + "end": { + "line": 251, + "column": 37 + } + }, + "expression": { + "type": "CallExpression", + "start": 7816, + "end": 7844, + "loc": { + "start": { + "line": 251, + "column": 8 + }, + "end": { + "line": 251, + "column": 36 + } + }, + "callee": { + "type": "MemberExpression", + "start": 7816, + "end": 7835, + "loc": { + "start": { + "line": 251, + "column": 8 + }, + "end": { + "line": 251, + "column": 27 + } + }, + "object": { + "type": "ThisExpression", + "start": 7816, + "end": 7820, + "loc": { + "start": { + "line": 251, + "column": 8 + }, + "end": { + "line": 251, + "column": 12 + } + } + }, + "property": { + "type": "Identifier", + "start": 7821, + "end": 7835, + "loc": { + "start": { + "line": 251, + "column": 13 + }, + "end": { + "line": 251, + "column": 27 + }, + "identifierName": "updateCaretPos" + }, + "name": "updateCaretPos" + }, + "computed": false + }, + "arguments": [ + { + "type": "NumericLiteral", + "start": 7836, + "end": 7837, + "loc": { + "start": { + "line": 251, + "column": 28 + }, + "end": { + "line": 251, + "column": 29 + } + }, + "extra": { + "rawValue": 1, + "raw": "1" + }, + "value": 1 + }, + { + "type": "BooleanLiteral", + "start": 7839, + "end": 7843, + "loc": { + "start": { + "line": 251, + "column": 31 + }, + "end": { + "line": 251, + "column": 35 + } + }, + "value": true + } + ] + } + } + ], + "directives": [] + } + } + ], + "directives": [] + }, + "leadingComments": [ + { + "type": "CommentBlock", + "value": "*\r\n * Emojis are made out of two characters, so we must take a custom approach to trim them.\r\n * For more info: https://mathiasbynens.be/notes/javascript-unicode\r\n ", + "start": 6909, + "end": 7089, + "loc": { + "start": { + "line": 227, + "column": 4 + }, + "end": { + "line": 230, + "column": 7 + } + } + } + ] + }, + { + "type": "ReturnStatement", + "start": 7869, + "end": 7883, + "loc": { + "start": { + "line": 255, + "column": 4 + }, + "end": { + "line": 255, + "column": 18 + } + }, + "argument": { + "type": "Identifier", + "start": 7876, + "end": 7882, + "loc": { + "start": { + "line": 255, + "column": 11 + }, + "end": { + "line": 255, + "column": 17 + }, + "identifierName": "output" + }, + "name": "output" + } + } + ], + "directives": [], + "trailingComments": null + }, + "leadingComments": [ + { + "type": "CommentBlock", + "value": "*\r\n * Removes an amount of characters at a given position\r\n * \r\n * @param {string} source The source input\r\n * @param {number} position The (cursor) position from where the characters should be removed\r\n ", + "start": 6434, + "end": 6654, + "loc": { + "start": { + "line": 211, + "column": 2 + }, + "end": { + "line": 216, + "column": 5 + } + } + } + ], + "trailingComments": [ + { + "type": "CommentBlock", + "value": "*\r\n * Determines whether the maxLength has been reached. This function is called when the maxLength option it set.\r\n * \r\n * @param {object} inputObj\r\n * @param {object} options\r\n * @param {string} updatedInput\r\n ", + "start": 7892, + "end": 8123, + "loc": { + "start": { + "line": 257, + "column": 2 + }, + "end": { + "line": 263, + "column": 5 + } + } + } + ] + }, + { + "type": "ClassMethod", + "start": 8127, + "end": 9385, + "loc": { + "start": { + "line": 264, + "column": 2 + }, + "end": { + "line": 312, + "column": 3 + } + }, + "static": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 8127, + "end": 8142, + "loc": { + "start": { + "line": 264, + "column": 2 + }, + "end": { + "line": 264, + "column": 17 + }, + "identifierName": "handleMaxLength" + }, + "name": "handleMaxLength", + "leadingComments": null + }, + "kind": "method", + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 8143, + "end": 8151, + "loc": { + "start": { + "line": 264, + "column": 18 + }, + "end": { + "line": 264, + "column": 26 + }, + "identifierName": "inputObj" + }, + "name": "inputObj" + }, + { + "type": "Identifier", + "start": 8153, + "end": 8160, + "loc": { + "start": { + "line": 264, + "column": 28 + }, + "end": { + "line": 264, + "column": 35 + }, + "identifierName": "options" + }, + "name": "options" + }, + { + "type": "Identifier", + "start": 8162, + "end": 8174, + "loc": { + "start": { + "line": 264, + "column": 37 + }, + "end": { + "line": 264, + "column": 49 + }, + "identifierName": "updatedInput" + }, + "name": "updatedInput" + } + ], + "body": { + "type": "BlockStatement", + "start": 8175, + "end": 9385, + "loc": { + "start": { + "line": 264, + "column": 50 + }, + "end": { + "line": 312, + "column": 3 + } + }, + "body": [ + { + "type": "VariableDeclaration", + "start": 8182, + "end": 8216, + "loc": { + "start": { + "line": 265, + "column": 4 + }, + "end": { + "line": 265, + "column": 38 + } + }, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 8186, + "end": 8215, + "loc": { + "start": { + "line": 265, + "column": 8 + }, + "end": { + "line": 265, + "column": 37 + } + }, + "id": { + "type": "Identifier", + "start": 8186, + "end": 8195, + "loc": { + "start": { + "line": 265, + "column": 8 + }, + "end": { + "line": 265, + "column": 17 + }, + "identifierName": "maxLength" + }, + "name": "maxLength" + }, + "init": { + "type": "MemberExpression", + "start": 8198, + "end": 8215, + "loc": { + "start": { + "line": 265, + "column": 20 + }, + "end": { + "line": 265, + "column": 37 + } + }, + "object": { + "type": "Identifier", + "start": 8198, + "end": 8205, + "loc": { + "start": { + "line": 265, + "column": 20 + }, + "end": { + "line": 265, + "column": 27 + }, + "identifierName": "options" + }, + "name": "options" + }, + "property": { + "type": "Identifier", + "start": 8206, + "end": 8215, + "loc": { + "start": { + "line": 265, + "column": 28 + }, + "end": { + "line": 265, + "column": 37 + }, + "identifierName": "maxLength" + }, + "name": "maxLength" + }, + "computed": false + } + } + ], + "kind": "let" + }, + { + "type": "VariableDeclaration", + "start": 8222, + "end": 8269, + "loc": { + "start": { + "line": 266, + "column": 4 + }, + "end": { + "line": 266, + "column": 51 + } + }, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 8226, + "end": 8268, + "loc": { + "start": { + "line": 266, + "column": 8 + }, + "end": { + "line": 266, + "column": 50 + } + }, + "id": { + "type": "Identifier", + "start": 8226, + "end": 8238, + "loc": { + "start": { + "line": 266, + "column": 8 + }, + "end": { + "line": 266, + "column": 20 + }, + "identifierName": "currentInput" + }, + "name": "currentInput" + }, + "init": { + "type": "MemberExpression", + "start": 8241, + "end": 8268, + "loc": { + "start": { + "line": 266, + "column": 23 + }, + "end": { + "line": 266, + "column": 50 + } + }, + "object": { + "type": "Identifier", + "start": 8241, + "end": 8249, + "loc": { + "start": { + "line": 266, + "column": 23 + }, + "end": { + "line": 266, + "column": 31 + }, + "identifierName": "inputObj" + }, + "name": "inputObj" + }, + "property": { + "type": "MemberExpression", + "start": 8250, + "end": 8267, + "loc": { + "start": { + "line": 266, + "column": 32 + }, + "end": { + "line": 266, + "column": 49 + } + }, + "object": { + "type": "Identifier", + "start": 8250, + "end": 8257, + "loc": { + "start": { + "line": 266, + "column": 32 + }, + "end": { + "line": 266, + "column": 39 + }, + "identifierName": "options" + }, + "name": "options" + }, + "property": { + "type": "Identifier", + "start": 8258, + "end": 8267, + "loc": { + "start": { + "line": 266, + "column": 40 + }, + "end": { + "line": 266, + "column": 49 + }, + "identifierName": "inputName" + }, + "name": "inputName" + }, + "computed": false + }, + "computed": true + } + } + ], + "kind": "let" + }, + { + "type": "VariableDeclaration", + "start": 8275, + "end": 8325, + "loc": { + "start": { + "line": 267, + "column": 4 + }, + "end": { + "line": 267, + "column": 54 + } + }, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 8279, + "end": 8324, + "loc": { + "start": { + "line": 267, + "column": 8 + }, + "end": { + "line": 267, + "column": 53 + } + }, + "id": { + "type": "Identifier", + "start": 8279, + "end": 8288, + "loc": { + "start": { + "line": 267, + "column": 8 + }, + "end": { + "line": 267, + "column": 17 + }, + "identifierName": "condition" + }, + "name": "condition" + }, + "init": { + "type": "BinaryExpression", + "start": 8291, + "end": 8324, + "loc": { + "start": { + "line": 267, + "column": 20 + }, + "end": { + "line": 267, + "column": 53 + } + }, + "left": { + "type": "MemberExpression", + "start": 8291, + "end": 8310, + "loc": { + "start": { + "line": 267, + "column": 20 + }, + "end": { + "line": 267, + "column": 39 + } + }, + "object": { + "type": "Identifier", + "start": 8291, + "end": 8303, + "loc": { + "start": { + "line": 267, + "column": 20 + }, + "end": { + "line": 267, + "column": 32 + }, + "identifierName": "currentInput" + }, + "name": "currentInput" + }, + "property": { + "type": "Identifier", + "start": 8304, + "end": 8310, + "loc": { + "start": { + "line": 267, + "column": 33 + }, + "end": { + "line": 267, + "column": 39 + }, + "identifierName": "length" + }, + "name": "length" + }, + "computed": false + }, + "operator": "===", + "right": { + "type": "Identifier", + "start": 8315, + "end": 8324, + "loc": { + "start": { + "line": 267, + "column": 44 + }, + "end": { + "line": 267, + "column": 53 + }, + "identifierName": "maxLength" + }, + "name": "maxLength" + } + } + } + ], + "kind": "let" + }, + { + "type": "IfStatement", + "start": 8335, + "end": 8553, + "loc": { + "start": { + "line": 270, + "column": 4 + }, + "end": { + "line": 278, + "column": 5 + } + }, + "test": { + "type": "BinaryExpression", + "start": 8475, + "end": 8517, + "loc": { + "start": { + "line": 275, + "column": 6 + }, + "end": { + "line": 275, + "column": 48 + } + }, + "left": { + "type": "MemberExpression", + "start": 8475, + "end": 8494, + "loc": { + "start": { + "line": 275, + "column": 6 + }, + "end": { + "line": 275, + "column": 25 + } + }, + "object": { + "type": "Identifier", + "start": 8475, + "end": 8487, + "loc": { + "start": { + "line": 275, + "column": 6 + }, + "end": { + "line": 275, + "column": 18 + }, + "identifierName": "updatedInput" + }, + "name": "updatedInput", + "leadingComments": null + }, + "property": { + "type": "Identifier", + "start": 8488, + "end": 8494, + "loc": { + "start": { + "line": 275, + "column": 19 + }, + "end": { + "line": 275, + "column": 25 + }, + "identifierName": "length" + }, + "name": "length" + }, + "computed": false, + "leadingComments": null + }, + "operator": "<=", + "right": { + "type": "MemberExpression", + "start": 8498, + "end": 8517, + "loc": { + "start": { + "line": 275, + "column": 29 + }, + "end": { + "line": 275, + "column": 48 + } + }, + "object": { + "type": "Identifier", + "start": 8498, + "end": 8510, + "loc": { + "start": { + "line": 275, + "column": 29 + }, + "end": { + "line": 275, + "column": 41 + }, + "identifierName": "currentInput" + }, + "name": "currentInput" + }, + "property": { + "type": "Identifier", + "start": 8511, + "end": 8517, + "loc": { + "start": { + "line": 275, + "column": 42 + }, + "end": { + "line": 275, + "column": 48 + }, + "identifierName": "length" + }, + "name": "length" + }, + "computed": false + }, + "leadingComments": [ + { + "type": "CommentBlock", + "value": "*\r\n * If pressing this button won't add more characters\r\n * We exit out of this limiter function\r\n ", + "start": 8346, + "end": 8467, + "loc": { + "start": { + "line": 271, + "column": 6 + }, + "end": { + "line": 274, + "column": 9 + } + } + } + ] + }, + "consequent": { + "type": "BlockStatement", + "start": 8524, + "end": 8553, + "loc": { + "start": { + "line": 276, + "column": 5 + }, + "end": { + "line": 278, + "column": 5 + } + }, + "body": [ + { + "type": "ReturnStatement", + "start": 8533, + "end": 8546, + "loc": { + "start": { + "line": 277, + "column": 6 + }, + "end": { + "line": 277, + "column": 19 + } + }, + "argument": { + "type": "BooleanLiteral", + "start": 8540, + "end": 8545, + "loc": { + "start": { + "line": 277, + "column": 13 + }, + "end": { + "line": 277, + "column": 18 + } + }, + "value": false + } + } + ], + "directives": [] + }, + "alternate": null + }, + { + "type": "IfStatement", + "start": 8561, + "end": 8983, + "loc": { + "start": { + "line": 280, + "column": 4 + }, + "end": { + "line": 295, + "column": 5 + } + }, + "test": { + "type": "CallExpression", + "start": 8564, + "end": 8591, + "loc": { + "start": { + "line": 280, + "column": 7 + }, + "end": { + "line": 280, + "column": 34 + } + }, + "callee": { + "type": "MemberExpression", + "start": 8564, + "end": 8580, + "loc": { + "start": { + "line": 280, + "column": 7 + }, + "end": { + "line": 280, + "column": 23 + } + }, + "object": { + "type": "Identifier", + "start": 8564, + "end": 8570, + "loc": { + "start": { + "line": 280, + "column": 7 + }, + "end": { + "line": 280, + "column": 13 + }, + "identifierName": "Number" + }, + "name": "Number" + }, + "property": { + "type": "Identifier", + "start": 8571, + "end": 8580, + "loc": { + "start": { + "line": 280, + "column": 14 + }, + "end": { + "line": 280, + "column": 23 + }, + "identifierName": "isInteger" + }, + "name": "isInteger" + }, + "computed": false + }, + "arguments": [ + { + "type": "Identifier", + "start": 8581, + "end": 8590, + "loc": { + "start": { + "line": 280, + "column": 24 + }, + "end": { + "line": 280, + "column": 33 + }, + "identifierName": "maxLength" + }, + "name": "maxLength" + } + ] + }, + "consequent": { + "type": "BlockStatement", + "start": 8592, + "end": 8983, + "loc": { + "start": { + "line": 280, + "column": 35 + }, + "end": { + "line": 295, + "column": 5 + } + }, + "body": [ + { + "type": "IfStatement", + "start": 8601, + "end": 8689, + "loc": { + "start": { + "line": 281, + "column": 6 + }, + "end": { + "line": 283, + "column": 7 + } + }, + "test": { + "type": "MemberExpression", + "start": 8604, + "end": 8617, + "loc": { + "start": { + "line": 281, + "column": 9 + }, + "end": { + "line": 281, + "column": 22 + } + }, + "object": { + "type": "Identifier", + "start": 8604, + "end": 8611, + "loc": { + "start": { + "line": 281, + "column": 9 + }, + "end": { + "line": 281, + "column": 16 + }, + "identifierName": "options" + }, + "name": "options" + }, + "property": { + "type": "Identifier", + "start": 8612, + "end": 8617, + "loc": { + "start": { + "line": 281, + "column": 17 + }, + "end": { + "line": 281, + "column": 22 + }, + "identifierName": "debug" + }, + "name": "debug" + }, + "computed": false + }, + "consequent": { + "type": "BlockStatement", + "start": 8618, + "end": 8689, + "loc": { + "start": { + "line": 281, + "column": 23 + }, + "end": { + "line": 283, + "column": 7 + } + }, + "body": [ + { + "type": "ExpressionStatement", + "start": 8629, + "end": 8680, + "loc": { + "start": { + "line": 282, + "column": 8 + }, + "end": { + "line": 282, + "column": 59 + } + }, + "expression": { + "type": "CallExpression", + "start": 8629, + "end": 8679, + "loc": { + "start": { + "line": 282, + "column": 8 + }, + "end": { + "line": 282, + "column": 58 + } + }, + "callee": { + "type": "MemberExpression", + "start": 8629, + "end": 8640, + "loc": { + "start": { + "line": 282, + "column": 8 + }, + "end": { + "line": 282, + "column": 19 + } + }, + "object": { + "type": "Identifier", + "start": 8629, + "end": 8636, + "loc": { + "start": { + "line": 282, + "column": 8 + }, + "end": { + "line": 282, + "column": 15 + }, + "identifierName": "console" + }, + "name": "console" + }, + "property": { + "type": "Identifier", + "start": 8637, + "end": 8640, + "loc": { + "start": { + "line": 282, + "column": 16 + }, + "end": { + "line": 282, + "column": 19 + }, + "identifierName": "log" + }, + "name": "log" + }, + "computed": false + }, + "arguments": [ + { + "type": "StringLiteral", + "start": 8641, + "end": 8667, + "loc": { + "start": { + "line": 282, + "column": 20 + }, + "end": { + "line": 282, + "column": 46 + } + }, + "extra": { + "rawValue": "maxLength (num) reached:", + "raw": "\"maxLength (num) reached:\"" + }, + "value": "maxLength (num) reached:" + }, + { + "type": "Identifier", + "start": 8669, + "end": 8678, + "loc": { + "start": { + "line": 282, + "column": 48 + }, + "end": { + "line": 282, + "column": 57 + }, + "identifierName": "condition" + }, + "name": "condition" + } + ] + } + } + ], + "directives": [] + }, + "alternate": null + }, + { + "type": "IfStatement", + "start": 8699, + "end": 8976, + "loc": { + "start": { + "line": 285, + "column": 6 + }, + "end": { + "line": 294, + "column": 7 + } + }, + "test": { + "type": "Identifier", + "start": 8702, + "end": 8711, + "loc": { + "start": { + "line": 285, + "column": 9 + }, + "end": { + "line": 285, + "column": 18 + }, + "identifierName": "condition" + }, + "name": "condition" + }, + "consequent": { + "type": "BlockStatement", + "start": 8712, + "end": 8897, + "loc": { + "start": { + "line": 285, + "column": 19 + }, + "end": { + "line": 291, + "column": 7 + } + }, + "body": [ + { + "type": "ExpressionStatement", + "start": 8837, + "end": 8866, + "loc": { + "start": { + "line": 289, + "column": 8 + }, + "end": { + "line": 289, + "column": 37 + } + }, + "expression": { + "type": "AssignmentExpression", + "start": 8837, + "end": 8865, + "loc": { + "start": { + "line": 289, + "column": 8 + }, + "end": { + "line": 289, + "column": 36 + } + }, + "operator": "=", + "left": { + "type": "MemberExpression", + "start": 8837, + "end": 8858, + "loc": { + "start": { + "line": 289, + "column": 8 + }, + "end": { + "line": 289, + "column": 29 + } + }, + "object": { + "type": "ThisExpression", + "start": 8837, + "end": 8841, + "loc": { + "start": { + "line": 289, + "column": 8 + }, + "end": { + "line": 289, + "column": 12 + } + }, + "leadingComments": null + }, + "property": { + "type": "Identifier", + "start": 8842, + "end": 8858, + "loc": { + "start": { + "line": 289, + "column": 13 + }, + "end": { + "line": 289, + "column": 29 + }, + "identifierName": "maxLengthReached" + }, + "name": "maxLengthReached" + }, + "computed": false, + "leadingComments": null + }, + "right": { + "type": "BooleanLiteral", + "start": 8861, + "end": 8865, + "loc": { + "start": { + "line": 289, + "column": 32 + }, + "end": { + "line": 289, + "column": 36 + } + }, + "value": true + }, + "leadingComments": null + }, + "leadingComments": [ + { + "type": "CommentBlock", + "value": "*\r\n * @type {boolean} Boolean value that shows whether maxLength has been reached\r\n ", + "start": 8723, + "end": 8827, + "loc": { + "start": { + "line": 286, + "column": 8 + }, + "end": { + "line": 288, + "column": 11 + } + } + } + ] + }, + { + "type": "ReturnStatement", + "start": 8876, + "end": 8888, + "loc": { + "start": { + "line": 290, + "column": 8 + }, + "end": { + "line": 290, + "column": 20 + } + }, + "argument": { + "type": "BooleanLiteral", + "start": 8883, + "end": 8887, + "loc": { + "start": { + "line": 290, + "column": 15 + }, + "end": { + "line": 290, + "column": 19 + } + }, + "value": true + } + } + ], + "directives": [] + }, + "alternate": { + "type": "BlockStatement", + "start": 8903, + "end": 8976, + "loc": { + "start": { + "line": 291, + "column": 13 + }, + "end": { + "line": 294, + "column": 7 + } + }, + "body": [ + { + "type": "ExpressionStatement", + "start": 8914, + "end": 8944, + "loc": { + "start": { + "line": 292, + "column": 8 + }, + "end": { + "line": 292, + "column": 38 + } + }, + "expression": { + "type": "AssignmentExpression", + "start": 8914, + "end": 8943, + "loc": { + "start": { + "line": 292, + "column": 8 + }, + "end": { + "line": 292, + "column": 37 + } + }, + "operator": "=", + "left": { + "type": "MemberExpression", + "start": 8914, + "end": 8935, + "loc": { + "start": { + "line": 292, + "column": 8 + }, + "end": { + "line": 292, + "column": 29 + } + }, + "object": { + "type": "ThisExpression", + "start": 8914, + "end": 8918, + "loc": { + "start": { + "line": 292, + "column": 8 + }, + "end": { + "line": 292, + "column": 12 + } + } + }, + "property": { + "type": "Identifier", + "start": 8919, + "end": 8935, + "loc": { + "start": { + "line": 292, + "column": 13 + }, + "end": { + "line": 292, + "column": 29 + }, + "identifierName": "maxLengthReached" + }, + "name": "maxLengthReached" + }, + "computed": false + }, + "right": { + "type": "BooleanLiteral", + "start": 8938, + "end": 8943, + "loc": { + "start": { + "line": 292, + "column": 32 + }, + "end": { + "line": 292, + "column": 37 + } + }, + "value": false + } + } + }, + { + "type": "ReturnStatement", + "start": 8954, + "end": 8967, + "loc": { + "start": { + "line": 293, + "column": 8 + }, + "end": { + "line": 293, + "column": 21 + } + }, + "argument": { + "type": "BooleanLiteral", + "start": 8961, + "end": 8966, + "loc": { + "start": { + "line": 293, + "column": 15 + }, + "end": { + "line": 293, + "column": 20 + } + }, + "value": false + } + } + ], + "directives": [] + } + } + ], + "directives": [] + }, + "alternate": null + }, + { + "type": "IfStatement", + "start": 8991, + "end": 9380, + "loc": { + "start": { + "line": 297, + "column": 4 + }, + "end": { + "line": 311, + "column": 5 + } + }, + "test": { + "type": "BinaryExpression", + "start": 8994, + "end": 9023, + "loc": { + "start": { + "line": 297, + "column": 7 + }, + "end": { + "line": 297, + "column": 36 + } + }, + "left": { + "type": "UnaryExpression", + "start": 8994, + "end": 9010, + "loc": { + "start": { + "line": 297, + "column": 7 + }, + "end": { + "line": 297, + "column": 23 + } + }, + "operator": "typeof", + "prefix": true, + "argument": { + "type": "Identifier", + "start": 9001, + "end": 9010, + "loc": { + "start": { + "line": 297, + "column": 14 + }, + "end": { + "line": 297, + "column": 23 + }, + "identifierName": "maxLength" + }, + "name": "maxLength" + }, + "extra": { + "parenthesizedArgument": false + } + }, + "operator": "===", + "right": { + "type": "StringLiteral", + "start": 9015, + "end": 9023, + "loc": { + "start": { + "line": 297, + "column": 28 + }, + "end": { + "line": 297, + "column": 36 + } + }, + "extra": { + "rawValue": "object", + "raw": "\"object\"" + }, + "value": "object" + } + }, + "consequent": { + "type": "BlockStatement", + "start": 9024, + "end": 9380, + "loc": { + "start": { + "line": 297, + "column": 37 + }, + "end": { + "line": 311, + "column": 5 + } + }, + "body": [ + { + "type": "VariableDeclaration", + "start": 9033, + "end": 9102, + "loc": { + "start": { + "line": 298, + "column": 6 + }, + "end": { + "line": 298, + "column": 75 + } + }, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 9037, + "end": 9101, + "loc": { + "start": { + "line": 298, + "column": 10 + }, + "end": { + "line": 298, + "column": 74 + } + }, + "id": { + "type": "Identifier", + "start": 9037, + "end": 9046, + "loc": { + "start": { + "line": 298, + "column": 10 + }, + "end": { + "line": 298, + "column": 19 + }, + "identifierName": "condition" + }, + "name": "condition" + }, + "init": { + "type": "BinaryExpression", + "start": 9049, + "end": 9101, + "loc": { + "start": { + "line": 298, + "column": 22 + }, + "end": { + "line": 298, + "column": 74 + } + }, + "left": { + "type": "MemberExpression", + "start": 9049, + "end": 9068, + "loc": { + "start": { + "line": 298, + "column": 22 + }, + "end": { + "line": 298, + "column": 41 + } + }, + "object": { + "type": "Identifier", + "start": 9049, + "end": 9061, + "loc": { + "start": { + "line": 298, + "column": 22 + }, + "end": { + "line": 298, + "column": 34 + }, + "identifierName": "currentInput" + }, + "name": "currentInput" + }, + "property": { + "type": "Identifier", + "start": 9062, + "end": 9068, + "loc": { + "start": { + "line": 298, + "column": 35 + }, + "end": { + "line": 298, + "column": 41 + }, + "identifierName": "length" + }, + "name": "length" + }, + "computed": false + }, + "operator": "===", + "right": { + "type": "MemberExpression", + "start": 9073, + "end": 9101, + "loc": { + "start": { + "line": 298, + "column": 46 + }, + "end": { + "line": 298, + "column": 74 + } + }, + "object": { + "type": "Identifier", + "start": 9073, + "end": 9082, + "loc": { + "start": { + "line": 298, + "column": 46 + }, + "end": { + "line": 298, + "column": 55 + }, + "identifierName": "maxLength" + }, + "name": "maxLength" + }, + "property": { + "type": "MemberExpression", + "start": 9083, + "end": 9100, + "loc": { + "start": { + "line": 298, + "column": 56 + }, + "end": { + "line": 298, + "column": 73 + } + }, + "object": { + "type": "Identifier", + "start": 9083, + "end": 9090, + "loc": { + "start": { + "line": 298, + "column": 56 + }, + "end": { + "line": 298, + "column": 63 + }, + "identifierName": "options" + }, + "name": "options" + }, + "property": { + "type": "Identifier", + "start": 9091, + "end": 9100, + "loc": { + "start": { + "line": 298, + "column": 64 + }, + "end": { + "line": 298, + "column": 73 + }, + "identifierName": "inputName" + }, + "name": "inputName" + }, + "computed": false + }, + "computed": true + } + } + } + ], + "kind": "let" + }, + { + "type": "IfStatement", + "start": 9112, + "end": 9200, + "loc": { + "start": { + "line": 300, + "column": 6 + }, + "end": { + "line": 302, + "column": 7 + } + }, + "test": { + "type": "MemberExpression", + "start": 9115, + "end": 9128, + "loc": { + "start": { + "line": 300, + "column": 9 + }, + "end": { + "line": 300, + "column": 22 + } + }, + "object": { + "type": "Identifier", + "start": 9115, + "end": 9122, + "loc": { + "start": { + "line": 300, + "column": 9 + }, + "end": { + "line": 300, + "column": 16 + }, + "identifierName": "options" + }, + "name": "options" + }, + "property": { + "type": "Identifier", + "start": 9123, + "end": 9128, + "loc": { + "start": { + "line": 300, + "column": 17 + }, + "end": { + "line": 300, + "column": 22 + }, + "identifierName": "debug" + }, + "name": "debug" + }, + "computed": false + }, + "consequent": { + "type": "BlockStatement", + "start": 9129, + "end": 9200, + "loc": { + "start": { + "line": 300, + "column": 23 + }, + "end": { + "line": 302, + "column": 7 + } + }, + "body": [ + { + "type": "ExpressionStatement", + "start": 9140, + "end": 9191, + "loc": { + "start": { + "line": 301, + "column": 8 + }, + "end": { + "line": 301, + "column": 59 + } + }, + "expression": { + "type": "CallExpression", + "start": 9140, + "end": 9190, + "loc": { + "start": { + "line": 301, + "column": 8 + }, + "end": { + "line": 301, + "column": 58 + } + }, + "callee": { + "type": "MemberExpression", + "start": 9140, + "end": 9151, + "loc": { + "start": { + "line": 301, + "column": 8 + }, + "end": { + "line": 301, + "column": 19 + } + }, + "object": { + "type": "Identifier", + "start": 9140, + "end": 9147, + "loc": { + "start": { + "line": 301, + "column": 8 + }, + "end": { + "line": 301, + "column": 15 + }, + "identifierName": "console" + }, + "name": "console" + }, + "property": { + "type": "Identifier", + "start": 9148, + "end": 9151, + "loc": { + "start": { + "line": 301, + "column": 16 + }, + "end": { + "line": 301, + "column": 19 + }, + "identifierName": "log" + }, + "name": "log" + }, + "computed": false + }, + "arguments": [ + { + "type": "StringLiteral", + "start": 9152, + "end": 9178, + "loc": { + "start": { + "line": 301, + "column": 20 + }, + "end": { + "line": 301, + "column": 46 + } + }, + "extra": { + "rawValue": "maxLength (obj) reached:", + "raw": "\"maxLength (obj) reached:\"" + }, + "value": "maxLength (obj) reached:" + }, + { + "type": "Identifier", + "start": 9180, + "end": 9189, + "loc": { + "start": { + "line": 301, + "column": 48 + }, + "end": { + "line": 301, + "column": 57 + }, + "identifierName": "condition" + }, + "name": "condition" + } + ] + } + } + ], + "directives": [] + }, + "alternate": null + }, + { + "type": "IfStatement", + "start": 9210, + "end": 9373, + "loc": { + "start": { + "line": 304, + "column": 6 + }, + "end": { + "line": 310, + "column": 7 + } + }, + "test": { + "type": "Identifier", + "start": 9213, + "end": 9222, + "loc": { + "start": { + "line": 304, + "column": 9 + }, + "end": { + "line": 304, + "column": 18 + }, + "identifierName": "condition" + }, + "name": "condition" + }, + "consequent": { + "type": "BlockStatement", + "start": 9223, + "end": 9294, + "loc": { + "start": { + "line": 304, + "column": 19 + }, + "end": { + "line": 307, + "column": 7 + } + }, + "body": [ + { + "type": "ExpressionStatement", + "start": 9234, + "end": 9263, + "loc": { + "start": { + "line": 305, + "column": 8 + }, + "end": { + "line": 305, + "column": 37 + } + }, + "expression": { + "type": "AssignmentExpression", + "start": 9234, + "end": 9262, + "loc": { + "start": { + "line": 305, + "column": 8 + }, + "end": { + "line": 305, + "column": 36 + } + }, + "operator": "=", + "left": { + "type": "MemberExpression", + "start": 9234, + "end": 9255, + "loc": { + "start": { + "line": 305, + "column": 8 + }, + "end": { + "line": 305, + "column": 29 + } + }, + "object": { + "type": "ThisExpression", + "start": 9234, + "end": 9238, + "loc": { + "start": { + "line": 305, + "column": 8 + }, + "end": { + "line": 305, + "column": 12 + } + } + }, + "property": { + "type": "Identifier", + "start": 9239, + "end": 9255, + "loc": { + "start": { + "line": 305, + "column": 13 + }, + "end": { + "line": 305, + "column": 29 + }, + "identifierName": "maxLengthReached" + }, + "name": "maxLengthReached" + }, + "computed": false + }, + "right": { + "type": "BooleanLiteral", + "start": 9258, + "end": 9262, + "loc": { + "start": { + "line": 305, + "column": 32 + }, + "end": { + "line": 305, + "column": 36 + } + }, + "value": true + } + } + }, + { + "type": "ReturnStatement", + "start": 9273, + "end": 9285, + "loc": { + "start": { + "line": 306, + "column": 8 + }, + "end": { + "line": 306, + "column": 20 + } + }, + "argument": { + "type": "BooleanLiteral", + "start": 9280, + "end": 9284, + "loc": { + "start": { + "line": 306, + "column": 15 + }, + "end": { + "line": 306, + "column": 19 + } + }, + "value": true + } + } + ], + "directives": [] + }, + "alternate": { + "type": "BlockStatement", + "start": 9300, + "end": 9373, + "loc": { + "start": { + "line": 307, + "column": 13 + }, + "end": { + "line": 310, + "column": 7 + } + }, + "body": [ + { + "type": "ExpressionStatement", + "start": 9311, + "end": 9341, + "loc": { + "start": { + "line": 308, + "column": 8 + }, + "end": { + "line": 308, + "column": 38 + } + }, + "expression": { + "type": "AssignmentExpression", + "start": 9311, + "end": 9340, + "loc": { + "start": { + "line": 308, + "column": 8 + }, + "end": { + "line": 308, + "column": 37 + } + }, + "operator": "=", + "left": { + "type": "MemberExpression", + "start": 9311, + "end": 9332, + "loc": { + "start": { + "line": 308, + "column": 8 + }, + "end": { + "line": 308, + "column": 29 + } + }, + "object": { + "type": "ThisExpression", + "start": 9311, + "end": 9315, + "loc": { + "start": { + "line": 308, + "column": 8 + }, + "end": { + "line": 308, + "column": 12 + } + } + }, + "property": { + "type": "Identifier", + "start": 9316, + "end": 9332, + "loc": { + "start": { + "line": 308, + "column": 13 + }, + "end": { + "line": 308, + "column": 29 + }, + "identifierName": "maxLengthReached" + }, + "name": "maxLengthReached" + }, + "computed": false + }, + "right": { + "type": "BooleanLiteral", + "start": 9335, + "end": 9340, + "loc": { + "start": { + "line": 308, + "column": 32 + }, + "end": { + "line": 308, + "column": 37 + } + }, + "value": false + } + } + }, + { + "type": "ReturnStatement", + "start": 9351, + "end": 9364, + "loc": { + "start": { + "line": 309, + "column": 8 + }, + "end": { + "line": 309, + "column": 21 + } + }, + "argument": { + "type": "BooleanLiteral", + "start": 9358, + "end": 9363, + "loc": { + "start": { + "line": 309, + "column": 15 + }, + "end": { + "line": 309, + "column": 20 + } + }, + "value": false + } + } + ], + "directives": [] + } + } + ], + "directives": [] + }, + "alternate": null + } + ], + "directives": [], + "trailingComments": null + }, + "leadingComments": [ + { + "type": "CommentBlock", + "value": "*\r\n * Determines whether the maxLength has been reached. This function is called when the maxLength option it set.\r\n * \r\n * @param {object} inputObj\r\n * @param {object} options\r\n * @param {string} updatedInput\r\n ", + "start": 7892, + "end": 8123, + "loc": { + "start": { + "line": 257, + "column": 2 + }, + "end": { + "line": 263, + "column": 5 + } + } + } + ], + "trailingComments": [ + { + "type": "CommentBlock", + "value": "*\r\n * Gets the current value of maxLengthReached\r\n ", + "start": 9391, + "end": 9450, + "loc": { + "start": { + "line": 314, + "column": 2 + }, + "end": { + "line": 316, + "column": 5 + } + } + } + ] + }, + { + "type": "ClassProperty", + "start": 9454, + "end": 9531, + "loc": { + "start": { + "line": 317, + "column": 2 + }, + "end": { + "line": 319, + "column": 3 + } + }, + "static": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 9454, + "end": 9472, + "loc": { + "start": { + "line": 317, + "column": 2 + }, + "end": { + "line": 317, + "column": 20 + }, + "identifierName": "isMaxLengthReached" + }, + "name": "isMaxLengthReached", + "leadingComments": null + }, + "value": { + "type": "ArrowFunctionExpression", + "start": 9475, + "end": 9531, + "loc": { + "start": { + "line": 317, + "column": 23 + }, + "end": { + "line": 319, + "column": 3 + } + }, + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [], + "body": { + "type": "BlockStatement", + "start": 9481, + "end": 9531, + "loc": { + "start": { + "line": 317, + "column": 29 + }, + "end": { + "line": 319, + "column": 3 + } + }, + "body": [ + { + "type": "ReturnStatement", + "start": 9488, + "end": 9526, + "loc": { + "start": { + "line": 318, + "column": 4 + }, + "end": { + "line": 318, + "column": 42 + } + }, + "argument": { + "type": "CallExpression", + "start": 9495, + "end": 9525, + "loc": { + "start": { + "line": 318, + "column": 11 + }, + "end": { + "line": 318, + "column": 41 + } + }, + "callee": { + "type": "Identifier", + "start": 9495, + "end": 9502, + "loc": { + "start": { + "line": 318, + "column": 11 + }, + "end": { + "line": 318, + "column": 18 + }, + "identifierName": "Boolean" + }, + "name": "Boolean" + }, + "arguments": [ + { + "type": "MemberExpression", + "start": 9503, + "end": 9524, + "loc": { + "start": { + "line": 318, + "column": 19 + }, + "end": { + "line": 318, + "column": 40 + } + }, + "object": { + "type": "ThisExpression", + "start": 9503, + "end": 9507, + "loc": { + "start": { + "line": 318, + "column": 19 + }, + "end": { + "line": 318, + "column": 23 + } + } + }, + "property": { + "type": "Identifier", + "start": 9508, + "end": 9524, + "loc": { + "start": { + "line": 318, + "column": 24 + }, + "end": { + "line": 318, + "column": 40 + }, + "identifierName": "maxLengthReached" + }, + "name": "maxLengthReached" + }, + "computed": false + } + ] + } + } + ], + "directives": [], + "trailingComments": null + }, + "trailingComments": null + }, + "leadingComments": [ + { + "type": "CommentBlock", + "value": "*\r\n * Gets the current value of maxLengthReached\r\n ", + "start": 9391, + "end": 9450, + "loc": { + "start": { + "line": 314, + "column": 2 + }, + "end": { + "line": 316, + "column": 5 + } + } + } + ], + "trailingComments": [ + { + "type": "CommentBlock", + "value": "*\r\n * Transforms an arbitrary string to camelCase\r\n * \r\n * @param {string} string The string to transform.\r\n ", + "start": 9537, + "end": 9659, + "loc": { + "start": { + "line": 321, + "column": 2 + }, + "end": { + "line": 325, + "column": 5 + } + } + } + ] + }, + { + "type": "ClassProperty", + "start": 9663, + "end": 9827, + "loc": { + "start": { + "line": 326, + "column": 2 + }, + "end": { + "line": 328, + "column": 4 + } + }, + "static": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 9663, + "end": 9672, + "loc": { + "start": { + "line": 326, + "column": 2 + }, + "end": { + "line": 326, + "column": 11 + }, + "identifierName": "camelCase" + }, + "name": "camelCase", + "leadingComments": null + }, + "value": { + "type": "ArrowFunctionExpression", + "start": 9675, + "end": 9826, + "loc": { + "start": { + "line": 326, + "column": 14 + }, + "end": { + "line": 328, + "column": 3 + } + }, + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 9676, + "end": 9682, + "loc": { + "start": { + "line": 326, + "column": 15 + }, + "end": { + "line": 326, + "column": 21 + }, + "identifierName": "string" + }, + "name": "string" + } + ], + "body": { + "type": "BlockStatement", + "start": 9687, + "end": 9826, + "loc": { + "start": { + "line": 326, + "column": 26 + }, + "end": { + "line": 328, + "column": 3 + } + }, + "body": [ + { + "type": "ReturnStatement", + "start": 9694, + "end": 9821, + "loc": { + "start": { + "line": 327, + "column": 4 + }, + "end": { + "line": 327, + "column": 131 + } + }, + "argument": { + "type": "CallExpression", + "start": 9701, + "end": 9820, + "loc": { + "start": { + "line": 327, + "column": 11 + }, + "end": { + "line": 327, + "column": 130 + } + }, + "callee": { + "type": "MemberExpression", + "start": 9701, + "end": 9754, + "loc": { + "start": { + "line": 327, + "column": 11 + }, + "end": { + "line": 327, + "column": 64 + } + }, + "object": { + "type": "CallExpression", + "start": 9701, + "end": 9747, + "loc": { + "start": { + "line": 327, + "column": 11 + }, + "end": { + "line": 327, + "column": 57 + } + }, + "callee": { + "type": "MemberExpression", + "start": 9701, + "end": 9734, + "loc": { + "start": { + "line": 327, + "column": 11 + }, + "end": { + "line": 327, + "column": 44 + } + }, + "object": { + "type": "CallExpression", + "start": 9701, + "end": 9728, + "loc": { + "start": { + "line": 327, + "column": 11 + }, + "end": { + "line": 327, + "column": 38 + } + }, + "callee": { + "type": "MemberExpression", + "start": 9701, + "end": 9726, + "loc": { + "start": { + "line": 327, + "column": 11 + }, + "end": { + "line": 327, + "column": 36 + } + }, + "object": { + "type": "CallExpression", + "start": 9701, + "end": 9721, + "loc": { + "start": { + "line": 327, + "column": 11 + }, + "end": { + "line": 327, + "column": 31 + } + }, + "callee": { + "type": "MemberExpression", + "start": 9701, + "end": 9719, + "loc": { + "start": { + "line": 327, + "column": 11 + }, + "end": { + "line": 327, + "column": 29 + } + }, + "object": { + "type": "Identifier", + "start": 9701, + "end": 9707, + "loc": { + "start": { + "line": 327, + "column": 11 + }, + "end": { + "line": 327, + "column": 17 + }, + "identifierName": "string" + }, + "name": "string" + }, + "property": { + "type": "Identifier", + "start": 9708, + "end": 9719, + "loc": { + "start": { + "line": 327, + "column": 18 + }, + "end": { + "line": 327, + "column": 29 + }, + "identifierName": "toLowerCase" + }, + "name": "toLowerCase" + }, + "computed": false + }, + "arguments": [] + }, + "property": { + "type": "Identifier", + "start": 9722, + "end": 9726, + "loc": { + "start": { + "line": 327, + "column": 32 + }, + "end": { + "line": 327, + "column": 36 + }, + "identifierName": "trim" + }, + "name": "trim" + }, + "computed": false + }, + "arguments": [] + }, + "property": { + "type": "Identifier", + "start": 9729, + "end": 9734, + "loc": { + "start": { + "line": 327, + "column": 39 + }, + "end": { + "line": 327, + "column": 44 + }, + "identifierName": "split" + }, + "name": "split" + }, + "computed": false + }, + "arguments": [ + { + "type": "RegExpLiteral", + "start": 9735, + "end": 9746, + "loc": { + "start": { + "line": 327, + "column": 45 + }, + "end": { + "line": 327, + "column": 56 + } + }, + "extra": { + "raw": "/[.\\-_\\s]/g" + }, + "pattern": "[.\\-_\\s]", + "flags": "g" + } + ] + }, + "property": { + "type": "Identifier", + "start": 9748, + "end": 9754, + "loc": { + "start": { + "line": 327, + "column": 58 + }, + "end": { + "line": 327, + "column": 64 + }, + "identifierName": "reduce" + }, + "name": "reduce" + }, + "computed": false + }, + "arguments": [ + { + "type": "ArrowFunctionExpression", + "start": 9755, + "end": 9819, + "loc": { + "start": { + "line": 327, + "column": 65 + }, + "end": { + "line": 327, + "column": 129 + } + }, + "id": null, + "generator": false, + "expression": true, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 9756, + "end": 9762, + "loc": { + "start": { + "line": 327, + "column": 66 + }, + "end": { + "line": 327, + "column": 72 + }, + "identifierName": "string" + }, + "name": "string" + }, + { + "type": "Identifier", + "start": 9764, + "end": 9768, + "loc": { + "start": { + "line": 327, + "column": 74 + }, + "end": { + "line": 327, + "column": 78 + }, + "identifierName": "word" + }, + "name": "word" + } + ], + "body": { + "type": "BinaryExpression", + "start": 9773, + "end": 9819, + "loc": { + "start": { + "line": 327, + "column": 83 + }, + "end": { + "line": 327, + "column": 129 + } + }, + "left": { + "type": "BinaryExpression", + "start": 9773, + "end": 9803, + "loc": { + "start": { + "line": 327, + "column": 83 + }, + "end": { + "line": 327, + "column": 113 + } + }, + "left": { + "type": "Identifier", + "start": 9773, + "end": 9779, + "loc": { + "start": { + "line": 327, + "column": 83 + }, + "end": { + "line": 327, + "column": 89 + }, + "identifierName": "string" + }, + "name": "string" + }, + "operator": "+", + "right": { + "type": "CallExpression", + "start": 9782, + "end": 9803, + "loc": { + "start": { + "line": 327, + "column": 92 + }, + "end": { + "line": 327, + "column": 113 + } + }, + "callee": { + "type": "MemberExpression", + "start": 9782, + "end": 9801, + "loc": { + "start": { + "line": 327, + "column": 92 + }, + "end": { + "line": 327, + "column": 111 + } + }, + "object": { + "type": "MemberExpression", + "start": 9782, + "end": 9789, + "loc": { + "start": { + "line": 327, + "column": 92 + }, + "end": { + "line": 327, + "column": 99 + } + }, + "object": { + "type": "Identifier", + "start": 9782, + "end": 9786, + "loc": { + "start": { + "line": 327, + "column": 92 + }, + "end": { + "line": 327, + "column": 96 + }, + "identifierName": "word" + }, + "name": "word" + }, + "property": { + "type": "NumericLiteral", + "start": 9787, + "end": 9788, + "loc": { + "start": { + "line": 327, + "column": 97 + }, + "end": { + "line": 327, + "column": 98 + } + }, + "extra": { + "rawValue": 0, + "raw": "0" + }, + "value": 0 + }, + "computed": true + }, + "property": { + "type": "Identifier", + "start": 9790, + "end": 9801, + "loc": { + "start": { + "line": 327, + "column": 100 + }, + "end": { + "line": 327, + "column": 111 + }, + "identifierName": "toUpperCase" + }, + "name": "toUpperCase" + }, + "computed": false + }, + "arguments": [] + } + }, + "operator": "+", + "right": { + "type": "CallExpression", + "start": 9806, + "end": 9819, + "loc": { + "start": { + "line": 327, + "column": 116 + }, + "end": { + "line": 327, + "column": 129 + } + }, + "callee": { + "type": "MemberExpression", + "start": 9806, + "end": 9816, + "loc": { + "start": { + "line": 327, + "column": 116 + }, + "end": { + "line": 327, + "column": 126 + } + }, + "object": { + "type": "Identifier", + "start": 9806, + "end": 9810, + "loc": { + "start": { + "line": 327, + "column": 116 + }, + "end": { + "line": 327, + "column": 120 + }, + "identifierName": "word" + }, + "name": "word" + }, + "property": { + "type": "Identifier", + "start": 9811, + "end": 9816, + "loc": { + "start": { + "line": 327, + "column": 121 + }, + "end": { + "line": 327, + "column": 126 + }, + "identifierName": "slice" + }, + "name": "slice" + }, + "computed": false + }, + "arguments": [ + { + "type": "NumericLiteral", + "start": 9817, + "end": 9818, + "loc": { + "start": { + "line": 327, + "column": 127 + }, + "end": { + "line": 327, + "column": 128 + } + }, + "extra": { + "rawValue": 1, + "raw": "1" + }, + "value": 1 + } + ] + } + } + } + ] + } + } + ], + "directives": [] + } + }, + "leadingComments": [ + { + "type": "CommentBlock", + "value": "*\r\n * Transforms an arbitrary string to camelCase\r\n * \r\n * @param {string} string The string to transform.\r\n ", + "start": 9537, + "end": 9659, + "loc": { + "start": { + "line": 321, + "column": 2 + }, + "end": { + "line": 325, + "column": 5 + } + } + } + ], + "trailingComments": [ + { + "type": "CommentBlock", + "value": "*\r\n * Counts the number of duplicates in a given array\r\n * \r\n * @param {Array} array The haystack to search in\r\n * @param {string} value The needle to search for\r\n ", + "start": 9833, + "end": 10013, + "loc": { + "start": { + "line": 330, + "column": 2 + }, + "end": { + "line": 335, + "column": 5 + } + } + } + ] + }, + { + "type": "ClassProperty", + "start": 10017, + "end": 10114, + "loc": { + "start": { + "line": 336, + "column": 2 + }, + "end": { + "line": 338, + "column": 3 + } + }, + "static": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 10017, + "end": 10029, + "loc": { + "start": { + "line": 336, + "column": 2 + }, + "end": { + "line": 336, + "column": 14 + }, + "identifierName": "countInArray" + }, + "name": "countInArray", + "leadingComments": null + }, + "value": { + "type": "ArrowFunctionExpression", + "start": 10032, + "end": 10114, + "loc": { + "start": { + "line": 336, + "column": 17 + }, + "end": { + "line": 338, + "column": 3 + } + }, + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 10033, + "end": 10038, + "loc": { + "start": { + "line": 336, + "column": 18 + }, + "end": { + "line": 336, + "column": 23 + }, + "identifierName": "array" + }, + "name": "array" + }, + { + "type": "Identifier", + "start": 10040, + "end": 10045, + "loc": { + "start": { + "line": 336, + "column": 25 + }, + "end": { + "line": 336, + "column": 30 + }, + "identifierName": "value" + }, + "name": "value" + } + ], + "body": { + "type": "BlockStatement", + "start": 10050, + "end": 10114, + "loc": { + "start": { + "line": 336, + "column": 35 + }, + "end": { + "line": 338, + "column": 3 + } + }, + "body": [ + { + "type": "ReturnStatement", + "start": 10057, + "end": 10109, + "loc": { + "start": { + "line": 337, + "column": 4 + }, + "end": { + "line": 337, + "column": 56 + } + }, + "argument": { + "type": "CallExpression", + "start": 10064, + "end": 10108, + "loc": { + "start": { + "line": 337, + "column": 11 + }, + "end": { + "line": 337, + "column": 55 + } + }, + "callee": { + "type": "MemberExpression", + "start": 10064, + "end": 10076, + "loc": { + "start": { + "line": 337, + "column": 11 + }, + "end": { + "line": 337, + "column": 23 + } + }, + "object": { + "type": "Identifier", + "start": 10064, + "end": 10069, + "loc": { + "start": { + "line": 337, + "column": 11 + }, + "end": { + "line": 337, + "column": 16 + }, + "identifierName": "array" + }, + "name": "array" + }, + "property": { + "type": "Identifier", + "start": 10070, + "end": 10076, + "loc": { + "start": { + "line": 337, + "column": 17 + }, + "end": { + "line": 337, + "column": 23 + }, + "identifierName": "reduce" + }, + "name": "reduce" + }, + "computed": false + }, + "arguments": [ + { + "type": "ArrowFunctionExpression", + "start": 10077, + "end": 10104, + "loc": { + "start": { + "line": 337, + "column": 24 + }, + "end": { + "line": 337, + "column": 51 + } + }, + "id": null, + "generator": false, + "expression": true, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 10078, + "end": 10079, + "loc": { + "start": { + "line": 337, + "column": 25 + }, + "end": { + "line": 337, + "column": 26 + }, + "identifierName": "n" + }, + "name": "n" + }, + { + "type": "Identifier", + "start": 10081, + "end": 10082, + "loc": { + "start": { + "line": 337, + "column": 28 + }, + "end": { + "line": 337, + "column": 29 + }, + "identifierName": "x" + }, + "name": "x" + } + ], + "body": { + "type": "BinaryExpression", + "start": 10087, + "end": 10104, + "loc": { + "start": { + "line": 337, + "column": 34 + }, + "end": { + "line": 337, + "column": 51 + } + }, + "left": { + "type": "Identifier", + "start": 10087, + "end": 10088, + "loc": { + "start": { + "line": 337, + "column": 34 + }, + "end": { + "line": 337, + "column": 35 + }, + "identifierName": "n" + }, + "name": "n" + }, + "operator": "+", + "right": { + "type": "BinaryExpression", + "start": 10092, + "end": 10103, + "loc": { + "start": { + "line": 337, + "column": 39 + }, + "end": { + "line": 337, + "column": 50 + } + }, + "left": { + "type": "Identifier", + "start": 10092, + "end": 10093, + "loc": { + "start": { + "line": 337, + "column": 39 + }, + "end": { + "line": 337, + "column": 40 + }, + "identifierName": "x" + }, + "name": "x" + }, + "operator": "===", + "right": { + "type": "Identifier", + "start": 10098, + "end": 10103, + "loc": { + "start": { + "line": 337, + "column": 45 + }, + "end": { + "line": 337, + "column": 50 + }, + "identifierName": "value" + }, + "name": "value" + }, + "extra": { + "parenthesized": true, + "parenStart": 10091 + } + } + } + }, + { + "type": "NumericLiteral", + "start": 10106, + "end": 10107, + "loc": { + "start": { + "line": 337, + "column": 53 + }, + "end": { + "line": 337, + "column": 54 + } + }, + "extra": { + "rawValue": 0, + "raw": "0" + }, + "value": 0 + } + ] + } + } + ], + "directives": [] + } + }, + "leadingComments": [ + { + "type": "CommentBlock", + "value": "*\r\n * Counts the number of duplicates in a given array\r\n * \r\n * @param {Array} array The haystack to search in\r\n * @param {string} value The needle to search for\r\n ", + "start": 9833, + "end": 10013, + "loc": { + "start": { + "line": 330, + "column": 2 + }, + "end": { + "line": 335, + "column": 5 + } + } + } + ] + } + ] + }, + "leadingComments": [ + { + "type": "CommentBlock", + "value": "*\r\n * Utility Service\r\n ", + "start": 0, + "end": 28, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 3, + "column": 3 + } + } + } + ], + "__PseudoExport__": false, + "trailingComments": [] + }, + "leadingComments": null + } + ], + "directives": [] + }, + "comments": [ + { + "type": "CommentBlock", + "value": "*\r\n * Utility Service\r\n ", + "start": 0, + "end": 28, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 3, + "column": 3 + } + } + }, + { + "type": "CommentBlock", + "value": "*\r\n * Creates an instance of the Utility service\r\n ", + "start": 51, + "end": 110, + "loc": { + "start": { + "line": 5, + "column": 2 + }, + "end": { + "line": 7, + "column": 5 + } + } + }, + { + "type": "CommentBlock", + "value": "*\r\n * @type {object} A simple-keyboard instance\r\n ", + "start": 156, + "end": 218, + "loc": { + "start": { + "line": 9, + "column": 4 + }, + "end": { + "line": 11, + "column": 7 + } + } + }, + { + "type": "CommentBlock", + "value": "*\r\n * Adds default classes to a given button\r\n * \r\n * @param {string} button The button's layout name\r\n * @return {string} The classes to be added to the button\r\n ", + "start": 288, + "end": 466, + "loc": { + "start": { + "line": 15, + "column": 2 + }, + "end": { + "line": 20, + "column": 5 + } + } + }, + { + "type": "CommentBlock", + "value": "*\r\n * Default button display labels\r\n ", + "start": 908, + "end": 954, + "loc": { + "start": { + "line": 32, + "column": 2 + }, + "end": { + "line": 34, + "column": 5 + } + } + }, + { + "type": "CommentBlock", + "value": "*\r\n * Returns the display (label) name for a given button\r\n * \r\n * @param {string} button The button's layout name\r\n * @param {object} display The provided display option\r\n * @param {boolean} mergeDisplay Whether the provided param value should be merged with the default one.\r\n ", + "start": 2530, + "end": 2828, + "loc": { + "start": { + "line": 98, + "column": 2 + }, + "end": { + "line": 104, + "column": 5 + } + } + }, + { + "type": "CommentBlock", + "value": "*\r\n * Returns the updated input resulting from clicking a given button\r\n * \r\n * @param {string} button The button's layout name\r\n * @param {string} input The input string\r\n * @param {object} options The simple-keyboard options object\r\n * @param {number} caretPos The cursor's current position\r\n ", + "start": 3114, + "end": 3431, + "loc": { + "start": { + "line": 116, + "column": 2 + }, + "end": { + "line": 123, + "column": 5 + } + } + }, + { + "type": "CommentBlock", + "value": "*\r\n * Moves the cursor position by a given amount\r\n * \r\n * @param {number} length Represents by how many characters the input should be moved\r\n * @param {boolean} minus Whether the cursor should be moved to the left or not.\r\n ", + "start": 5032, + "end": 5274, + "loc": { + "start": { + "line": 165, + "column": 2 + }, + "end": { + "line": 170, + "column": 5 + } + } + }, + { + "type": "CommentBlock", + "value": "*\r\n * Adds a string to the input at a given position\r\n * \r\n * @param {string} source The source input\r\n * @param {string} string The string to add\r\n * @param {number} position The (cursor) position where the string should be added\r\n ", + "start": 5627, + "end": 5879, + "loc": { + "start": { + "line": 180, + "column": 2 + }, + "end": { + "line": 186, + "column": 5 + } + } + }, + { + "type": "CommentBlock", + "value": "*\r\n * Avoid caret position change when maxLength is set\r\n ", + "start": 6225, + "end": 6299, + "loc": { + "start": { + "line": 199, + "column": 6 + }, + "end": { + "line": 201, + "column": 9 + } + } + }, + { + "type": "CommentBlock", + "value": "*\r\n * Removes an amount of characters at a given position\r\n * \r\n * @param {string} source The source input\r\n * @param {number} position The (cursor) position from where the characters should be removed\r\n ", + "start": 6434, + "end": 6654, + "loc": { + "start": { + "line": 211, + "column": 2 + }, + "end": { + "line": 216, + "column": 5 + } + } + }, + { + "type": "CommentBlock", + "value": "*\r\n * Emojis are made out of two characters, so we must take a custom approach to trim them.\r\n * For more info: https://mathiasbynens.be/notes/javascript-unicode\r\n ", + "start": 6909, + "end": 7089, + "loc": { + "start": { + "line": 227, + "column": 4 + }, + "end": { + "line": 230, + "column": 7 + } + } + }, + { + "type": "CommentBlock", + "value": "*\r\n * Determines whether the maxLength has been reached. This function is called when the maxLength option it set.\r\n * \r\n * @param {object} inputObj\r\n * @param {object} options\r\n * @param {string} updatedInput\r\n ", + "start": 7892, + "end": 8123, + "loc": { + "start": { + "line": 257, + "column": 2 + }, + "end": { + "line": 263, + "column": 5 + } + } + }, + { + "type": "CommentBlock", + "value": "*\r\n * If pressing this button won't add more characters\r\n * We exit out of this limiter function\r\n ", + "start": 8346, + "end": 8467, + "loc": { + "start": { + "line": 271, + "column": 6 + }, + "end": { + "line": 274, + "column": 9 + } + } + }, + { + "type": "CommentBlock", + "value": "*\r\n * @type {boolean} Boolean value that shows whether maxLength has been reached\r\n ", + "start": 8723, + "end": 8827, + "loc": { + "start": { + "line": 286, + "column": 8 + }, + "end": { + "line": 288, + "column": 11 + } + } + }, + { + "type": "CommentBlock", + "value": "*\r\n * Gets the current value of maxLengthReached\r\n ", + "start": 9391, + "end": 9450, + "loc": { + "start": { + "line": 314, + "column": 2 + }, + "end": { + "line": 316, + "column": 5 + } + } + }, + { + "type": "CommentBlock", + "value": "*\r\n * Transforms an arbitrary string to camelCase\r\n * \r\n * @param {string} string The string to transform.\r\n ", + "start": 9537, + "end": 9659, + "loc": { + "start": { + "line": 321, + "column": 2 + }, + "end": { + "line": 325, + "column": 5 + } + } + }, + { + "type": "CommentBlock", + "value": "*\r\n * Counts the number of duplicates in a given array\r\n * \r\n * @param {Array} array The haystack to search in\r\n * @param {string} value The needle to search for\r\n ", + "start": 9833, + "end": 10013, + "loc": { + "start": { + "line": 330, + "column": 2 + }, + "end": { + "line": 335, + "column": 5 + } + } + } + ], + "tokens": [ + { + "type": "CommentBlock", + "value": "*\r\n * Utility Service\r\n ", + "start": 0, + "end": 28, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 3, + "column": 3 + } + } + }, + { + "type": { + "label": "class", + "keyword": "class", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "class", + "start": 30, + "end": 35, + "loc": { + "start": { + "line": 4, + "column": 0 + }, + "end": { + "line": 4, + "column": 5 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "Utilities", + "start": 36, + "end": 45, + "loc": { + "start": { + "line": 4, + "column": 6 + }, + "end": { + "line": 4, + "column": 15 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 46, + "end": 47, + "loc": { + "start": { + "line": 4, + "column": 16 + }, + "end": { + "line": 4, + "column": 17 + } + } + }, + { + "type": "CommentBlock", + "value": "*\r\n * Creates an instance of the Utility service\r\n ", + "start": 51, + "end": 110, + "loc": { + "start": { + "line": 5, + "column": 2 + }, + "end": { + "line": 7, + "column": 5 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "constructor", + "start": 114, + "end": 125, + "loc": { + "start": { + "line": 8, + "column": 2 + }, + "end": { + "line": 8, + "column": 13 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 125, + "end": 126, + "loc": { + "start": { + "line": 8, + "column": 13 + }, + "end": { + "line": 8, + "column": 14 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "simpleKeyboardInstance", + "start": 126, + "end": 148, + "loc": { + "start": { + "line": 8, + "column": 14 + }, + "end": { + "line": 8, + "column": 36 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 148, + "end": 149, + "loc": { + "start": { + "line": 8, + "column": 36 + }, + "end": { + "line": 8, + "column": 37 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 149, + "end": 150, + "loc": { + "start": { + "line": 8, + "column": 37 + }, + "end": { + "line": 8, + "column": 38 + } + } + }, + { + "type": "CommentBlock", + "value": "*\r\n * @type {object} A simple-keyboard instance\r\n ", + "start": 156, + "end": 218, + "loc": { + "start": { + "line": 9, + "column": 4 + }, + "end": { + "line": 11, + "column": 7 + } + } + }, + { + "type": { + "label": "this", + "keyword": "this", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "this", + "start": 224, + "end": 228, + "loc": { + "start": { + "line": 12, + "column": 4 + }, + "end": { + "line": 12, + "column": 8 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 228, + "end": 229, + "loc": { + "start": { + "line": 12, + "column": 8 + }, + "end": { + "line": 12, + "column": 9 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "simpleKeyboardInstance", + "start": 229, + "end": 251, + "loc": { + "start": { + "line": 12, + "column": 9 + }, + "end": { + "line": 12, + "column": 31 + } + } + }, + { + "type": { + "label": "=", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": true, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "=", + "start": 252, + "end": 253, + "loc": { + "start": { + "line": 12, + "column": 32 + }, + "end": { + "line": 12, + "column": 33 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "simpleKeyboardInstance", + "start": 254, + "end": 276, + "loc": { + "start": { + "line": 12, + "column": 34 + }, + "end": { + "line": 12, + "column": 56 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 276, + "end": 277, + "loc": { + "start": { + "line": 12, + "column": 56 + }, + "end": { + "line": 12, + "column": 57 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 281, + "end": 282, + "loc": { + "start": { + "line": 13, + "column": 2 + }, + "end": { + "line": 13, + "column": 3 + } + } + }, + { + "type": "CommentBlock", + "value": "*\r\n * Adds default classes to a given button\r\n * \r\n * @param {string} button The button's layout name\r\n * @return {string} The classes to be added to the button\r\n ", + "start": 288, + "end": 466, + "loc": { + "start": { + "line": 15, + "column": 2 + }, + "end": { + "line": 20, + "column": 5 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "getButtonClass", + "start": 470, + "end": 484, + "loc": { + "start": { + "line": 21, + "column": 2 + }, + "end": { + "line": 21, + "column": 16 + } + } + }, + { + "type": { + "label": "=", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": true, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "=", + "start": 485, + "end": 486, + "loc": { + "start": { + "line": 21, + "column": 17 + }, + "end": { + "line": 21, + "column": 18 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "button", + "start": 487, + "end": 493, + "loc": { + "start": { + "line": 21, + "column": 19 + }, + "end": { + "line": 21, + "column": 25 + } + } + }, + { + "type": { + "label": "=>", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 494, + "end": 496, + "loc": { + "start": { + "line": 21, + "column": 26 + }, + "end": { + "line": 21, + "column": 28 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 497, + "end": 498, + "loc": { + "start": { + "line": 21, + "column": 29 + }, + "end": { + "line": 21, + "column": 30 + } + } + }, + { + "type": { + "label": "let", + "keyword": "let", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "let", + "start": 504, + "end": 507, + "loc": { + "start": { + "line": 22, + "column": 4 + }, + "end": { + "line": 22, + "column": 7 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "buttonTypeClass", + "start": 508, + "end": 523, + "loc": { + "start": { + "line": 22, + "column": 8 + }, + "end": { + "line": 22, + "column": 23 + } + } + }, + { + "type": { + "label": "=", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": true, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "=", + "start": 524, + "end": 525, + "loc": { + "start": { + "line": 22, + "column": 24 + }, + "end": { + "line": 22, + "column": 25 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 526, + "end": 527, + "loc": { + "start": { + "line": 22, + "column": 26 + }, + "end": { + "line": 22, + "column": 27 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "button", + "start": 527, + "end": 533, + "loc": { + "start": { + "line": 22, + "column": 27 + }, + "end": { + "line": 22, + "column": 33 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 533, + "end": 534, + "loc": { + "start": { + "line": 22, + "column": 33 + }, + "end": { + "line": 22, + "column": 34 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "includes", + "start": 534, + "end": 542, + "loc": { + "start": { + "line": 22, + "column": 34 + }, + "end": { + "line": 22, + "column": 42 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 542, + "end": 543, + "loc": { + "start": { + "line": 22, + "column": 42 + }, + "end": { + "line": 22, + "column": 43 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "{", + "start": 543, + "end": 546, + "loc": { + "start": { + "line": 22, + "column": 43 + }, + "end": { + "line": 22, + "column": 46 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 546, + "end": 547, + "loc": { + "start": { + "line": 22, + "column": 46 + }, + "end": { + "line": 22, + "column": 47 + } + } + }, + { + "type": { + "label": "&&", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": 2, + "updateContext": null + }, + "value": "&&", + "start": 548, + "end": 550, + "loc": { + "start": { + "line": 22, + "column": 48 + }, + "end": { + "line": 22, + "column": 50 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "button", + "start": 551, + "end": 557, + "loc": { + "start": { + "line": 22, + "column": 51 + }, + "end": { + "line": 22, + "column": 57 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 557, + "end": 558, + "loc": { + "start": { + "line": 22, + "column": 57 + }, + "end": { + "line": 22, + "column": 58 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "includes", + "start": 558, + "end": 566, + "loc": { + "start": { + "line": 22, + "column": 58 + }, + "end": { + "line": 22, + "column": 66 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 566, + "end": 567, + "loc": { + "start": { + "line": 22, + "column": 66 + }, + "end": { + "line": 22, + "column": 67 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "}", + "start": 567, + "end": 570, + "loc": { + "start": { + "line": 22, + "column": 67 + }, + "end": { + "line": 22, + "column": 70 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 570, + "end": 571, + "loc": { + "start": { + "line": 22, + "column": 70 + }, + "end": { + "line": 22, + "column": 71 + } + } + }, + { + "type": { + "label": "&&", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": 2, + "updateContext": null + }, + "value": "&&", + "start": 572, + "end": 574, + "loc": { + "start": { + "line": 22, + "column": 72 + }, + "end": { + "line": 22, + "column": 74 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "button", + "start": 575, + "end": 581, + "loc": { + "start": { + "line": 22, + "column": 75 + }, + "end": { + "line": 22, + "column": 81 + } + } + }, + { + "type": { + "label": "==/!=", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": 6, + "updateContext": null + }, + "value": "!==", + "start": 582, + "end": 585, + "loc": { + "start": { + "line": 22, + "column": 82 + }, + "end": { + "line": 22, + "column": 85 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "{//}", + "start": 586, + "end": 592, + "loc": { + "start": { + "line": 22, + "column": 86 + }, + "end": { + "line": 22, + "column": 92 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 592, + "end": 593, + "loc": { + "start": { + "line": 22, + "column": 92 + }, + "end": { + "line": 22, + "column": 93 + } + } + }, + { + "type": { + "label": "?", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 594, + "end": 595, + "loc": { + "start": { + "line": 22, + "column": 94 + }, + "end": { + "line": 22, + "column": 95 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "functionBtn", + "start": 596, + "end": 609, + "loc": { + "start": { + "line": 22, + "column": 96 + }, + "end": { + "line": 22, + "column": 109 + } + } + }, + { + "type": { + "label": ":", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 610, + "end": 611, + "loc": { + "start": { + "line": 22, + "column": 110 + }, + "end": { + "line": 22, + "column": 111 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "standardBtn", + "start": 612, + "end": 625, + "loc": { + "start": { + "line": 22, + "column": 112 + }, + "end": { + "line": 22, + "column": 125 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 625, + "end": 626, + "loc": { + "start": { + "line": 22, + "column": 125 + }, + "end": { + "line": 22, + "column": 126 + } + } + }, + { + "type": { + "label": "let", + "keyword": "let", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "let", + "start": 632, + "end": 635, + "loc": { + "start": { + "line": 23, + "column": 4 + }, + "end": { + "line": 23, + "column": 7 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "buttonWithoutBraces", + "start": 636, + "end": 655, + "loc": { + "start": { + "line": 23, + "column": 8 + }, + "end": { + "line": 23, + "column": 27 + } + } + }, + { + "type": { + "label": "=", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": true, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "=", + "start": 656, + "end": 657, + "loc": { + "start": { + "line": 23, + "column": 28 + }, + "end": { + "line": 23, + "column": 29 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "button", + "start": 658, + "end": 664, + "loc": { + "start": { + "line": 23, + "column": 30 + }, + "end": { + "line": 23, + "column": 36 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 664, + "end": 665, + "loc": { + "start": { + "line": 23, + "column": 36 + }, + "end": { + "line": 23, + "column": 37 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "replace", + "start": 665, + "end": 672, + "loc": { + "start": { + "line": 23, + "column": 37 + }, + "end": { + "line": 23, + "column": 44 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 672, + "end": 673, + "loc": { + "start": { + "line": 23, + "column": 44 + }, + "end": { + "line": 23, + "column": 45 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "{", + "start": 673, + "end": 676, + "loc": { + "start": { + "line": 23, + "column": 45 + }, + "end": { + "line": 23, + "column": 48 + } + } + }, + { + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 676, + "end": 677, + "loc": { + "start": { + "line": 23, + "column": 48 + }, + "end": { + "line": 23, + "column": 49 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "", + "start": 678, + "end": 680, + "loc": { + "start": { + "line": 23, + "column": 50 + }, + "end": { + "line": 23, + "column": 52 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 680, + "end": 681, + "loc": { + "start": { + "line": 23, + "column": 52 + }, + "end": { + "line": 23, + "column": 53 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 681, + "end": 682, + "loc": { + "start": { + "line": 23, + "column": 53 + }, + "end": { + "line": 23, + "column": 54 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "replace", + "start": 682, + "end": 689, + "loc": { + "start": { + "line": 23, + "column": 54 + }, + "end": { + "line": 23, + "column": 61 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 689, + "end": 690, + "loc": { + "start": { + "line": 23, + "column": 61 + }, + "end": { + "line": 23, + "column": 62 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "}", + "start": 690, + "end": 693, + "loc": { + "start": { + "line": 23, + "column": 62 + }, + "end": { + "line": 23, + "column": 65 + } + } + }, + { + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 693, + "end": 694, + "loc": { + "start": { + "line": 23, + "column": 65 + }, + "end": { + "line": 23, + "column": 66 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "", + "start": 695, + "end": 697, + "loc": { + "start": { + "line": 23, + "column": 67 + }, + "end": { + "line": 23, + "column": 69 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 697, + "end": 698, + "loc": { + "start": { + "line": 23, + "column": 69 + }, + "end": { + "line": 23, + "column": 70 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 698, + "end": 699, + "loc": { + "start": { + "line": 23, + "column": 70 + }, + "end": { + "line": 23, + "column": 71 + } + } + }, + { + "type": { + "label": "let", + "keyword": "let", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "let", + "start": 705, + "end": 708, + "loc": { + "start": { + "line": 24, + "column": 4 + }, + "end": { + "line": 24, + "column": 7 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "buttonNormalized", + "start": 709, + "end": 725, + "loc": { + "start": { + "line": 24, + "column": 8 + }, + "end": { + "line": 24, + "column": 24 + } + } + }, + { + "type": { + "label": "=", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": true, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "=", + "start": 726, + "end": 727, + "loc": { + "start": { + "line": 24, + "column": 25 + }, + "end": { + "line": 24, + "column": 26 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "", + "start": 728, + "end": 730, + "loc": { + "start": { + "line": 24, + "column": 27 + }, + "end": { + "line": 24, + "column": 29 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 730, + "end": 731, + "loc": { + "start": { + "line": 24, + "column": 29 + }, + "end": { + "line": 24, + "column": 30 + } + } + }, + { + "type": { + "label": "if", + "keyword": "if", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "if", + "start": 739, + "end": 741, + "loc": { + "start": { + "line": 26, + "column": 4 + }, + "end": { + "line": 26, + "column": 6 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 741, + "end": 742, + "loc": { + "start": { + "line": 26, + "column": 6 + }, + "end": { + "line": 26, + "column": 7 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "buttonTypeClass", + "start": 742, + "end": 757, + "loc": { + "start": { + "line": 26, + "column": 7 + }, + "end": { + "line": 26, + "column": 22 + } + } + }, + { + "type": { + "label": "==/!=", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": 6, + "updateContext": null + }, + "value": "!==", + "start": 758, + "end": 761, + "loc": { + "start": { + "line": 26, + "column": 23 + }, + "end": { + "line": 26, + "column": 26 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "standardBtn", + "start": 762, + "end": 775, + "loc": { + "start": { + "line": 26, + "column": 27 + }, + "end": { + "line": 26, + "column": 40 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 775, + "end": 776, + "loc": { + "start": { + "line": 26, + "column": 40 + }, + "end": { + "line": 26, + "column": 41 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "buttonNormalized", + "start": 784, + "end": 800, + "loc": { + "start": { + "line": 27, + "column": 6 + }, + "end": { + "line": 27, + "column": 22 + } + } + }, + { + "type": { + "label": "=", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": true, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "=", + "start": 801, + "end": 802, + "loc": { + "start": { + "line": 27, + "column": 23 + }, + "end": { + "line": 27, + "column": 24 + } + } + }, + { + "type": { + "label": "`", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 803, + "end": 804, + "loc": { + "start": { + "line": 27, + "column": 25 + }, + "end": { + "line": 27, + "column": 26 + } + } + }, + { + "type": { + "label": "template", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": " hg-button-", + "start": 804, + "end": 815, + "loc": { + "start": { + "line": 27, + "column": 26 + }, + "end": { + "line": 27, + "column": 37 + } + } + }, + { + "type": { + "label": "${", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 815, + "end": 817, + "loc": { + "start": { + "line": 27, + "column": 37 + }, + "end": { + "line": 27, + "column": 39 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "buttonWithoutBraces", + "start": 817, + "end": 836, + "loc": { + "start": { + "line": 27, + "column": 39 + }, + "end": { + "line": 27, + "column": 58 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 836, + "end": 837, + "loc": { + "start": { + "line": 27, + "column": 58 + }, + "end": { + "line": 27, + "column": 59 + } + } + }, + { + "type": { + "label": "template", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "", + "start": 837, + "end": 837, + "loc": { + "start": { + "line": 27, + "column": 59 + }, + "end": { + "line": 27, + "column": 59 + } + } + }, + { + "type": { + "label": "`", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 837, + "end": 838, + "loc": { + "start": { + "line": 27, + "column": 59 + }, + "end": { + "line": 27, + "column": 60 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 838, + "end": 839, + "loc": { + "start": { + "line": 27, + "column": 60 + }, + "end": { + "line": 27, + "column": 61 + } + } + }, + { + "type": { + "label": "return", + "keyword": "return", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "return", + "start": 847, + "end": 853, + "loc": { + "start": { + "line": 29, + "column": 4 + }, + "end": { + "line": 29, + "column": 10 + } + } + }, + { + "type": { + "label": "`", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 854, + "end": 855, + "loc": { + "start": { + "line": 29, + "column": 11 + }, + "end": { + "line": 29, + "column": 12 + } + } + }, + { + "type": { + "label": "template", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "hg-", + "start": 855, + "end": 858, + "loc": { + "start": { + "line": 29, + "column": 12 + }, + "end": { + "line": 29, + "column": 15 + } + } + }, + { + "type": { + "label": "${", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 858, + "end": 860, + "loc": { + "start": { + "line": 29, + "column": 15 + }, + "end": { + "line": 29, + "column": 17 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "buttonTypeClass", + "start": 860, + "end": 875, + "loc": { + "start": { + "line": 29, + "column": 17 + }, + "end": { + "line": 29, + "column": 32 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 875, + "end": 876, + "loc": { + "start": { + "line": 29, + "column": 32 + }, + "end": { + "line": 29, + "column": 33 + } + } + }, + { + "type": { + "label": "template", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "", + "start": 876, + "end": 876, + "loc": { + "start": { + "line": 29, + "column": 33 + }, + "end": { + "line": 29, + "column": 33 + } + } + }, + { + "type": { + "label": "${", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 876, + "end": 878, + "loc": { + "start": { + "line": 29, + "column": 33 + }, + "end": { + "line": 29, + "column": 35 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "buttonNormalized", + "start": 878, + "end": 894, + "loc": { + "start": { + "line": 29, + "column": 35 + }, + "end": { + "line": 29, + "column": 51 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 894, + "end": 895, + "loc": { + "start": { + "line": 29, + "column": 51 + }, + "end": { + "line": 29, + "column": 52 + } + } + }, + { + "type": { + "label": "template", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "", + "start": 895, + "end": 895, + "loc": { + "start": { + "line": 29, + "column": 52 + }, + "end": { + "line": 29, + "column": 52 + } + } + }, + { + "type": { + "label": "`", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 895, + "end": 896, + "loc": { + "start": { + "line": 29, + "column": 52 + }, + "end": { + "line": 29, + "column": 53 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 896, + "end": 897, + "loc": { + "start": { + "line": 29, + "column": 53 + }, + "end": { + "line": 29, + "column": 54 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 901, + "end": 902, + "loc": { + "start": { + "line": 30, + "column": 2 + }, + "end": { + "line": 30, + "column": 3 + } + } + }, + { + "type": "CommentBlock", + "value": "*\r\n * Default button display labels\r\n ", + "start": 908, + "end": 954, + "loc": { + "start": { + "line": 32, + "column": 2 + }, + "end": { + "line": 34, + "column": 5 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "getDefaultDiplay", + "start": 958, + "end": 974, + "loc": { + "start": { + "line": 35, + "column": 2 + }, + "end": { + "line": 35, + "column": 18 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 974, + "end": 975, + "loc": { + "start": { + "line": 35, + "column": 18 + }, + "end": { + "line": 35, + "column": 19 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 975, + "end": 976, + "loc": { + "start": { + "line": 35, + "column": 19 + }, + "end": { + "line": 35, + "column": 20 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 976, + "end": 977, + "loc": { + "start": { + "line": 35, + "column": 20 + }, + "end": { + "line": 35, + "column": 21 + } + } + }, + { + "type": { + "label": "return", + "keyword": "return", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "return", + "start": 983, + "end": 989, + "loc": { + "start": { + "line": 36, + "column": 4 + }, + "end": { + "line": 36, + "column": 10 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 990, + "end": 991, + "loc": { + "start": { + "line": 36, + "column": 11 + }, + "end": { + "line": 36, + "column": 12 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "{bksp}", + "start": 999, + "end": 1007, + "loc": { + "start": { + "line": 37, + "column": 6 + }, + "end": { + "line": 37, + "column": 14 + } + } + }, + { + "type": { + "label": ":", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1007, + "end": 1008, + "loc": { + "start": { + "line": 37, + "column": 14 + }, + "end": { + "line": 37, + "column": 15 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "backspace", + "start": 1009, + "end": 1020, + "loc": { + "start": { + "line": 37, + "column": 16 + }, + "end": { + "line": 37, + "column": 27 + } + } + }, + { + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1020, + "end": 1021, + "loc": { + "start": { + "line": 37, + "column": 27 + }, + "end": { + "line": 37, + "column": 28 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "{backspace}", + "start": 1029, + "end": 1042, + "loc": { + "start": { + "line": 38, + "column": 6 + }, + "end": { + "line": 38, + "column": 19 + } + } + }, + { + "type": { + "label": ":", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1042, + "end": 1043, + "loc": { + "start": { + "line": 38, + "column": 19 + }, + "end": { + "line": 38, + "column": 20 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "backspace", + "start": 1044, + "end": 1055, + "loc": { + "start": { + "line": 38, + "column": 21 + }, + "end": { + "line": 38, + "column": 32 + } + } + }, + { + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1055, + "end": 1056, + "loc": { + "start": { + "line": 38, + "column": 32 + }, + "end": { + "line": 38, + "column": 33 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "{enter}", + "start": 1064, + "end": 1073, + "loc": { + "start": { + "line": 39, + "column": 6 + }, + "end": { + "line": 39, + "column": 15 + } + } + }, + { + "type": { + "label": ":", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1073, + "end": 1074, + "loc": { + "start": { + "line": 39, + "column": 15 + }, + "end": { + "line": 39, + "column": 16 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "< enter", + "start": 1075, + "end": 1084, + "loc": { + "start": { + "line": 39, + "column": 17 + }, + "end": { + "line": 39, + "column": 26 + } + } + }, + { + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1084, + "end": 1085, + "loc": { + "start": { + "line": 39, + "column": 26 + }, + "end": { + "line": 39, + "column": 27 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "{shift}", + "start": 1093, + "end": 1102, + "loc": { + "start": { + "line": 40, + "column": 6 + }, + "end": { + "line": 40, + "column": 15 + } + } + }, + { + "type": { + "label": ":", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1102, + "end": 1103, + "loc": { + "start": { + "line": 40, + "column": 15 + }, + "end": { + "line": 40, + "column": 16 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "shift", + "start": 1104, + "end": 1111, + "loc": { + "start": { + "line": 40, + "column": 17 + }, + "end": { + "line": 40, + "column": 24 + } + } + }, + { + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1111, + "end": 1112, + "loc": { + "start": { + "line": 40, + "column": 24 + }, + "end": { + "line": 40, + "column": 25 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "{shiftleft}", + "start": 1120, + "end": 1133, + "loc": { + "start": { + "line": 41, + "column": 6 + }, + "end": { + "line": 41, + "column": 19 + } + } + }, + { + "type": { + "label": ":", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1133, + "end": 1134, + "loc": { + "start": { + "line": 41, + "column": 19 + }, + "end": { + "line": 41, + "column": 20 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "shift", + "start": 1135, + "end": 1142, + "loc": { + "start": { + "line": 41, + "column": 21 + }, + "end": { + "line": 41, + "column": 28 + } + } + }, + { + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1142, + "end": 1143, + "loc": { + "start": { + "line": 41, + "column": 28 + }, + "end": { + "line": 41, + "column": 29 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "{shiftright}", + "start": 1151, + "end": 1165, + "loc": { + "start": { + "line": 42, + "column": 6 + }, + "end": { + "line": 42, + "column": 20 + } + } + }, + { + "type": { + "label": ":", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1165, + "end": 1166, + "loc": { + "start": { + "line": 42, + "column": 20 + }, + "end": { + "line": 42, + "column": 21 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "shift", + "start": 1167, + "end": 1174, + "loc": { + "start": { + "line": 42, + "column": 22 + }, + "end": { + "line": 42, + "column": 29 + } + } + }, + { + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1174, + "end": 1175, + "loc": { + "start": { + "line": 42, + "column": 29 + }, + "end": { + "line": 42, + "column": 30 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "{alt}", + "start": 1183, + "end": 1190, + "loc": { + "start": { + "line": 43, + "column": 6 + }, + "end": { + "line": 43, + "column": 13 + } + } + }, + { + "type": { + "label": ":", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1190, + "end": 1191, + "loc": { + "start": { + "line": 43, + "column": 13 + }, + "end": { + "line": 43, + "column": 14 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "alt", + "start": 1192, + "end": 1197, + "loc": { + "start": { + "line": 43, + "column": 15 + }, + "end": { + "line": 43, + "column": 20 + } + } + }, + { + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1197, + "end": 1198, + "loc": { + "start": { + "line": 43, + "column": 20 + }, + "end": { + "line": 43, + "column": 21 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "{s}", + "start": 1206, + "end": 1211, + "loc": { + "start": { + "line": 44, + "column": 6 + }, + "end": { + "line": 44, + "column": 11 + } + } + }, + { + "type": { + "label": ":", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1211, + "end": 1212, + "loc": { + "start": { + "line": 44, + "column": 11 + }, + "end": { + "line": 44, + "column": 12 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "shift", + "start": 1213, + "end": 1220, + "loc": { + "start": { + "line": 44, + "column": 13 + }, + "end": { + "line": 44, + "column": 20 + } + } + }, + { + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1220, + "end": 1221, + "loc": { + "start": { + "line": 44, + "column": 20 + }, + "end": { + "line": 44, + "column": 21 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "{tab}", + "start": 1229, + "end": 1236, + "loc": { + "start": { + "line": 45, + "column": 6 + }, + "end": { + "line": 45, + "column": 13 + } + } + }, + { + "type": { + "label": ":", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1236, + "end": 1237, + "loc": { + "start": { + "line": 45, + "column": 13 + }, + "end": { + "line": 45, + "column": 14 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "tab", + "start": 1238, + "end": 1243, + "loc": { + "start": { + "line": 45, + "column": 15 + }, + "end": { + "line": 45, + "column": 20 + } + } + }, + { + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1243, + "end": 1244, + "loc": { + "start": { + "line": 45, + "column": 20 + }, + "end": { + "line": 45, + "column": 21 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "{lock}", + "start": 1252, + "end": 1260, + "loc": { + "start": { + "line": 46, + "column": 6 + }, + "end": { + "line": 46, + "column": 14 + } + } + }, + { + "type": { + "label": ":", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1260, + "end": 1261, + "loc": { + "start": { + "line": 46, + "column": 14 + }, + "end": { + "line": 46, + "column": 15 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "caps", + "start": 1262, + "end": 1268, + "loc": { + "start": { + "line": 46, + "column": 16 + }, + "end": { + "line": 46, + "column": 22 + } + } + }, + { + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1268, + "end": 1269, + "loc": { + "start": { + "line": 46, + "column": 22 + }, + "end": { + "line": 46, + "column": 23 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "{capslock}", + "start": 1277, + "end": 1289, + "loc": { + "start": { + "line": 47, + "column": 6 + }, + "end": { + "line": 47, + "column": 18 + } + } + }, + { + "type": { + "label": ":", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1289, + "end": 1290, + "loc": { + "start": { + "line": 47, + "column": 18 + }, + "end": { + "line": 47, + "column": 19 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "caps", + "start": 1291, + "end": 1297, + "loc": { + "start": { + "line": 47, + "column": 20 + }, + "end": { + "line": 47, + "column": 26 + } + } + }, + { + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1297, + "end": 1298, + "loc": { + "start": { + "line": 47, + "column": 26 + }, + "end": { + "line": 47, + "column": 27 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "{accept}", + "start": 1306, + "end": 1316, + "loc": { + "start": { + "line": 48, + "column": 6 + }, + "end": { + "line": 48, + "column": 16 + } + } + }, + { + "type": { + "label": ":", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1316, + "end": 1317, + "loc": { + "start": { + "line": 48, + "column": 16 + }, + "end": { + "line": 48, + "column": 17 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "Submit", + "start": 1318, + "end": 1326, + "loc": { + "start": { + "line": 48, + "column": 18 + }, + "end": { + "line": 48, + "column": 26 + } + } + }, + { + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1326, + "end": 1327, + "loc": { + "start": { + "line": 48, + "column": 26 + }, + "end": { + "line": 48, + "column": 27 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "{space}", + "start": 1335, + "end": 1344, + "loc": { + "start": { + "line": 49, + "column": 6 + }, + "end": { + "line": 49, + "column": 15 + } + } + }, + { + "type": { + "label": ":", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1344, + "end": 1345, + "loc": { + "start": { + "line": 49, + "column": 15 + }, + "end": { + "line": 49, + "column": 16 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": " ", + "start": 1346, + "end": 1349, + "loc": { + "start": { + "line": 49, + "column": 17 + }, + "end": { + "line": 49, + "column": 20 + } + } + }, + { + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1349, + "end": 1350, + "loc": { + "start": { + "line": 49, + "column": 20 + }, + "end": { + "line": 49, + "column": 21 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "{//}", + "start": 1358, + "end": 1364, + "loc": { + "start": { + "line": 50, + "column": 6 + }, + "end": { + "line": 50, + "column": 12 + } + } + }, + { + "type": { + "label": ":", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1364, + "end": 1365, + "loc": { + "start": { + "line": 50, + "column": 12 + }, + "end": { + "line": 50, + "column": 13 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": " ", + "start": 1366, + "end": 1369, + "loc": { + "start": { + "line": 50, + "column": 14 + }, + "end": { + "line": 50, + "column": 17 + } + } + }, + { + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1369, + "end": 1370, + "loc": { + "start": { + "line": 50, + "column": 17 + }, + "end": { + "line": 50, + "column": 18 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "{esc}", + "start": 1378, + "end": 1385, + "loc": { + "start": { + "line": 51, + "column": 6 + }, + "end": { + "line": 51, + "column": 13 + } + } + }, + { + "type": { + "label": ":", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1385, + "end": 1386, + "loc": { + "start": { + "line": 51, + "column": 13 + }, + "end": { + "line": 51, + "column": 14 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "esc", + "start": 1387, + "end": 1392, + "loc": { + "start": { + "line": 51, + "column": 15 + }, + "end": { + "line": 51, + "column": 20 + } + } + }, + { + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1392, + "end": 1393, + "loc": { + "start": { + "line": 51, + "column": 20 + }, + "end": { + "line": 51, + "column": 21 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "{escape}", + "start": 1401, + "end": 1411, + "loc": { + "start": { + "line": 52, + "column": 6 + }, + "end": { + "line": 52, + "column": 16 + } + } + }, + { + "type": { + "label": ":", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1411, + "end": 1412, + "loc": { + "start": { + "line": 52, + "column": 16 + }, + "end": { + "line": 52, + "column": 17 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "esc", + "start": 1413, + "end": 1418, + "loc": { + "start": { + "line": 52, + "column": 18 + }, + "end": { + "line": 52, + "column": 23 + } + } + }, + { + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1418, + "end": 1419, + "loc": { + "start": { + "line": 52, + "column": 23 + }, + "end": { + "line": 52, + "column": 24 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "{f1}", + "start": 1427, + "end": 1433, + "loc": { + "start": { + "line": 53, + "column": 6 + }, + "end": { + "line": 53, + "column": 12 + } + } + }, + { + "type": { + "label": ":", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1433, + "end": 1434, + "loc": { + "start": { + "line": 53, + "column": 12 + }, + "end": { + "line": 53, + "column": 13 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "f1", + "start": 1435, + "end": 1439, + "loc": { + "start": { + "line": 53, + "column": 14 + }, + "end": { + "line": 53, + "column": 18 + } + } + }, + { + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1439, + "end": 1440, + "loc": { + "start": { + "line": 53, + "column": 18 + }, + "end": { + "line": 53, + "column": 19 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "{f2}", + "start": 1448, + "end": 1454, + "loc": { + "start": { + "line": 54, + "column": 6 + }, + "end": { + "line": 54, + "column": 12 + } + } + }, + { + "type": { + "label": ":", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1454, + "end": 1455, + "loc": { + "start": { + "line": 54, + "column": 12 + }, + "end": { + "line": 54, + "column": 13 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "f2", + "start": 1456, + "end": 1460, + "loc": { + "start": { + "line": 54, + "column": 14 + }, + "end": { + "line": 54, + "column": 18 + } + } + }, + { + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1460, + "end": 1461, + "loc": { + "start": { + "line": 54, + "column": 18 + }, + "end": { + "line": 54, + "column": 19 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "{f3}", + "start": 1469, + "end": 1475, + "loc": { + "start": { + "line": 55, + "column": 6 + }, + "end": { + "line": 55, + "column": 12 + } + } + }, + { + "type": { + "label": ":", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1475, + "end": 1476, + "loc": { + "start": { + "line": 55, + "column": 12 + }, + "end": { + "line": 55, + "column": 13 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "f3", + "start": 1477, + "end": 1481, + "loc": { + "start": { + "line": 55, + "column": 14 + }, + "end": { + "line": 55, + "column": 18 + } + } + }, + { + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1481, + "end": 1482, + "loc": { + "start": { + "line": 55, + "column": 18 + }, + "end": { + "line": 55, + "column": 19 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "{f4}", + "start": 1490, + "end": 1496, + "loc": { + "start": { + "line": 56, + "column": 6 + }, + "end": { + "line": 56, + "column": 12 + } + } + }, + { + "type": { + "label": ":", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1496, + "end": 1497, + "loc": { + "start": { + "line": 56, + "column": 12 + }, + "end": { + "line": 56, + "column": 13 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "f4", + "start": 1498, + "end": 1502, + "loc": { + "start": { + "line": 56, + "column": 14 + }, + "end": { + "line": 56, + "column": 18 + } + } + }, + { + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1502, + "end": 1503, + "loc": { + "start": { + "line": 56, + "column": 18 + }, + "end": { + "line": 56, + "column": 19 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "{f5}", + "start": 1511, + "end": 1517, + "loc": { + "start": { + "line": 57, + "column": 6 + }, + "end": { + "line": 57, + "column": 12 + } + } + }, + { + "type": { + "label": ":", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1517, + "end": 1518, + "loc": { + "start": { + "line": 57, + "column": 12 + }, + "end": { + "line": 57, + "column": 13 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "f5", + "start": 1519, + "end": 1523, + "loc": { + "start": { + "line": 57, + "column": 14 + }, + "end": { + "line": 57, + "column": 18 + } + } + }, + { + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1523, + "end": 1524, + "loc": { + "start": { + "line": 57, + "column": 18 + }, + "end": { + "line": 57, + "column": 19 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "{f6}", + "start": 1532, + "end": 1538, + "loc": { + "start": { + "line": 58, + "column": 6 + }, + "end": { + "line": 58, + "column": 12 + } + } + }, + { + "type": { + "label": ":", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1538, + "end": 1539, + "loc": { + "start": { + "line": 58, + "column": 12 + }, + "end": { + "line": 58, + "column": 13 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "f6", + "start": 1540, + "end": 1544, + "loc": { + "start": { + "line": 58, + "column": 14 + }, + "end": { + "line": 58, + "column": 18 + } + } + }, + { + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1544, + "end": 1545, + "loc": { + "start": { + "line": 58, + "column": 18 + }, + "end": { + "line": 58, + "column": 19 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "{f7}", + "start": 1553, + "end": 1559, + "loc": { + "start": { + "line": 59, + "column": 6 + }, + "end": { + "line": 59, + "column": 12 + } + } + }, + { + "type": { + "label": ":", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1559, + "end": 1560, + "loc": { + "start": { + "line": 59, + "column": 12 + }, + "end": { + "line": 59, + "column": 13 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "f7", + "start": 1561, + "end": 1565, + "loc": { + "start": { + "line": 59, + "column": 14 + }, + "end": { + "line": 59, + "column": 18 + } + } + }, + { + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1565, + "end": 1566, + "loc": { + "start": { + "line": 59, + "column": 18 + }, + "end": { + "line": 59, + "column": 19 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "{f8}", + "start": 1574, + "end": 1580, + "loc": { + "start": { + "line": 60, + "column": 6 + }, + "end": { + "line": 60, + "column": 12 + } + } + }, + { + "type": { + "label": ":", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1580, + "end": 1581, + "loc": { + "start": { + "line": 60, + "column": 12 + }, + "end": { + "line": 60, + "column": 13 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "f8", + "start": 1582, + "end": 1586, + "loc": { + "start": { + "line": 60, + "column": 14 + }, + "end": { + "line": 60, + "column": 18 + } + } + }, + { + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1586, + "end": 1587, + "loc": { + "start": { + "line": 60, + "column": 18 + }, + "end": { + "line": 60, + "column": 19 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "{f9}", + "start": 1595, + "end": 1601, + "loc": { + "start": { + "line": 61, + "column": 6 + }, + "end": { + "line": 61, + "column": 12 + } + } + }, + { + "type": { + "label": ":", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1601, + "end": 1602, + "loc": { + "start": { + "line": 61, + "column": 12 + }, + "end": { + "line": 61, + "column": 13 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "f9", + "start": 1603, + "end": 1607, + "loc": { + "start": { + "line": 61, + "column": 14 + }, + "end": { + "line": 61, + "column": 18 + } + } + }, + { + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1607, + "end": 1608, + "loc": { + "start": { + "line": 61, + "column": 18 + }, + "end": { + "line": 61, + "column": 19 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "{f10}", + "start": 1616, + "end": 1623, + "loc": { + "start": { + "line": 62, + "column": 6 + }, + "end": { + "line": 62, + "column": 13 + } + } + }, + { + "type": { + "label": ":", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1623, + "end": 1624, + "loc": { + "start": { + "line": 62, + "column": 13 + }, + "end": { + "line": 62, + "column": 14 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "f10", + "start": 1625, + "end": 1630, + "loc": { + "start": { + "line": 62, + "column": 15 + }, + "end": { + "line": 62, + "column": 20 + } + } + }, + { + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1630, + "end": 1631, + "loc": { + "start": { + "line": 62, + "column": 20 + }, + "end": { + "line": 62, + "column": 21 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "{f11}", + "start": 1639, + "end": 1646, + "loc": { + "start": { + "line": 63, + "column": 6 + }, + "end": { + "line": 63, + "column": 13 + } + } + }, + { + "type": { + "label": ":", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1646, + "end": 1647, + "loc": { + "start": { + "line": 63, + "column": 13 + }, + "end": { + "line": 63, + "column": 14 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "f11", + "start": 1648, + "end": 1653, + "loc": { + "start": { + "line": 63, + "column": 15 + }, + "end": { + "line": 63, + "column": 20 + } + } + }, + { + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1653, + "end": 1654, + "loc": { + "start": { + "line": 63, + "column": 20 + }, + "end": { + "line": 63, + "column": 21 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "{f12}", + "start": 1662, + "end": 1669, + "loc": { + "start": { + "line": 64, + "column": 6 + }, + "end": { + "line": 64, + "column": 13 + } + } + }, + { + "type": { + "label": ":", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1669, + "end": 1670, + "loc": { + "start": { + "line": 64, + "column": 13 + }, + "end": { + "line": 64, + "column": 14 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "f12", + "start": 1671, + "end": 1676, + "loc": { + "start": { + "line": 64, + "column": 15 + }, + "end": { + "line": 64, + "column": 20 + } + } + }, + { + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1676, + "end": 1677, + "loc": { + "start": { + "line": 64, + "column": 20 + }, + "end": { + "line": 64, + "column": 21 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "{numpaddivide}", + "start": 1685, + "end": 1701, + "loc": { + "start": { + "line": 65, + "column": 6 + }, + "end": { + "line": 65, + "column": 22 + } + } + }, + { + "type": { + "label": ":", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1701, + "end": 1702, + "loc": { + "start": { + "line": 65, + "column": 22 + }, + "end": { + "line": 65, + "column": 23 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "/", + "start": 1703, + "end": 1706, + "loc": { + "start": { + "line": 65, + "column": 24 + }, + "end": { + "line": 65, + "column": 27 + } + } + }, + { + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1706, + "end": 1707, + "loc": { + "start": { + "line": 65, + "column": 27 + }, + "end": { + "line": 65, + "column": 28 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "{numlock}", + "start": 1715, + "end": 1726, + "loc": { + "start": { + "line": 66, + "column": 6 + }, + "end": { + "line": 66, + "column": 17 + } + } + }, + { + "type": { + "label": ":", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1726, + "end": 1727, + "loc": { + "start": { + "line": 66, + "column": 17 + }, + "end": { + "line": 66, + "column": 18 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "lock", + "start": 1728, + "end": 1734, + "loc": { + "start": { + "line": 66, + "column": 19 + }, + "end": { + "line": 66, + "column": 25 + } + } + }, + { + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1734, + "end": 1735, + "loc": { + "start": { + "line": 66, + "column": 25 + }, + "end": { + "line": 66, + "column": 26 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "{arrowup}", + "start": 1743, + "end": 1754, + "loc": { + "start": { + "line": 67, + "column": 6 + }, + "end": { + "line": 67, + "column": 17 + } + } + }, + { + "type": { + "label": ":", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1754, + "end": 1755, + "loc": { + "start": { + "line": 67, + "column": 17 + }, + "end": { + "line": 67, + "column": 18 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "↑", + "start": 1756, + "end": 1759, + "loc": { + "start": { + "line": 67, + "column": 19 + }, + "end": { + "line": 67, + "column": 22 + } + } + }, + { + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1759, + "end": 1760, + "loc": { + "start": { + "line": 67, + "column": 22 + }, + "end": { + "line": 67, + "column": 23 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "{arrowleft}", + "start": 1768, + "end": 1781, + "loc": { + "start": { + "line": 68, + "column": 6 + }, + "end": { + "line": 68, + "column": 19 + } + } + }, + { + "type": { + "label": ":", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1781, + "end": 1782, + "loc": { + "start": { + "line": 68, + "column": 19 + }, + "end": { + "line": 68, + "column": 20 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "←", + "start": 1783, + "end": 1786, + "loc": { + "start": { + "line": 68, + "column": 21 + }, + "end": { + "line": 68, + "column": 24 + } + } + }, + { + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1786, + "end": 1787, + "loc": { + "start": { + "line": 68, + "column": 24 + }, + "end": { + "line": 68, + "column": 25 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "{arrowdown}", + "start": 1795, + "end": 1808, + "loc": { + "start": { + "line": 69, + "column": 6 + }, + "end": { + "line": 69, + "column": 19 + } + } + }, + { + "type": { + "label": ":", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1808, + "end": 1809, + "loc": { + "start": { + "line": 69, + "column": 19 + }, + "end": { + "line": 69, + "column": 20 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "↓", + "start": 1810, + "end": 1813, + "loc": { + "start": { + "line": 69, + "column": 21 + }, + "end": { + "line": 69, + "column": 24 + } + } + }, + { + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1813, + "end": 1814, + "loc": { + "start": { + "line": 69, + "column": 24 + }, + "end": { + "line": 69, + "column": 25 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "{arrowright}", + "start": 1822, + "end": 1836, + "loc": { + "start": { + "line": 70, + "column": 6 + }, + "end": { + "line": 70, + "column": 20 + } + } + }, + { + "type": { + "label": ":", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1836, + "end": 1837, + "loc": { + "start": { + "line": 70, + "column": 20 + }, + "end": { + "line": 70, + "column": 21 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "→", + "start": 1838, + "end": 1841, + "loc": { + "start": { + "line": 70, + "column": 22 + }, + "end": { + "line": 70, + "column": 25 + } + } + }, + { + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1841, + "end": 1842, + "loc": { + "start": { + "line": 70, + "column": 25 + }, + "end": { + "line": 70, + "column": 26 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "{prtscr}", + "start": 1850, + "end": 1860, + "loc": { + "start": { + "line": 71, + "column": 6 + }, + "end": { + "line": 71, + "column": 16 + } + } + }, + { + "type": { + "label": ":", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1860, + "end": 1861, + "loc": { + "start": { + "line": 71, + "column": 16 + }, + "end": { + "line": 71, + "column": 17 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "print", + "start": 1862, + "end": 1869, + "loc": { + "start": { + "line": 71, + "column": 18 + }, + "end": { + "line": 71, + "column": 25 + } + } + }, + { + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1869, + "end": 1870, + "loc": { + "start": { + "line": 71, + "column": 25 + }, + "end": { + "line": 71, + "column": 26 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "{scrolllock}", + "start": 1878, + "end": 1892, + "loc": { + "start": { + "line": 72, + "column": 6 + }, + "end": { + "line": 72, + "column": 20 + } + } + }, + { + "type": { + "label": ":", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1892, + "end": 1893, + "loc": { + "start": { + "line": 72, + "column": 20 + }, + "end": { + "line": 72, + "column": 21 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "scroll", + "start": 1894, + "end": 1902, + "loc": { + "start": { + "line": 72, + "column": 22 + }, + "end": { + "line": 72, + "column": 30 + } + } + }, + { + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1902, + "end": 1903, + "loc": { + "start": { + "line": 72, + "column": 30 + }, + "end": { + "line": 72, + "column": 31 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "{pause}", + "start": 1911, + "end": 1920, + "loc": { + "start": { + "line": 73, + "column": 6 + }, + "end": { + "line": 73, + "column": 15 + } + } + }, + { + "type": { + "label": ":", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1920, + "end": 1921, + "loc": { + "start": { + "line": 73, + "column": 15 + }, + "end": { + "line": 73, + "column": 16 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "pause", + "start": 1922, + "end": 1929, + "loc": { + "start": { + "line": 73, + "column": 17 + }, + "end": { + "line": 73, + "column": 24 + } + } + }, + { + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1929, + "end": 1930, + "loc": { + "start": { + "line": 73, + "column": 24 + }, + "end": { + "line": 73, + "column": 25 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "{insert}", + "start": 1938, + "end": 1948, + "loc": { + "start": { + "line": 74, + "column": 6 + }, + "end": { + "line": 74, + "column": 16 + } + } + }, + { + "type": { + "label": ":", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1948, + "end": 1949, + "loc": { + "start": { + "line": 74, + "column": 16 + }, + "end": { + "line": 74, + "column": 17 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "ins", + "start": 1950, + "end": 1955, + "loc": { + "start": { + "line": 74, + "column": 18 + }, + "end": { + "line": 74, + "column": 23 + } + } + }, + { + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1955, + "end": 1956, + "loc": { + "start": { + "line": 74, + "column": 23 + }, + "end": { + "line": 74, + "column": 24 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "{home}", + "start": 1964, + "end": 1972, + "loc": { + "start": { + "line": 75, + "column": 6 + }, + "end": { + "line": 75, + "column": 14 + } + } + }, + { + "type": { + "label": ":", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1972, + "end": 1973, + "loc": { + "start": { + "line": 75, + "column": 14 + }, + "end": { + "line": 75, + "column": 15 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "home", + "start": 1974, + "end": 1980, + "loc": { + "start": { + "line": 75, + "column": 16 + }, + "end": { + "line": 75, + "column": 22 + } + } + }, + { + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1980, + "end": 1981, + "loc": { + "start": { + "line": 75, + "column": 22 + }, + "end": { + "line": 75, + "column": 23 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "{pageup}", + "start": 1989, + "end": 1999, + "loc": { + "start": { + "line": 76, + "column": 6 + }, + "end": { + "line": 76, + "column": 16 + } + } + }, + { + "type": { + "label": ":", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1999, + "end": 2000, + "loc": { + "start": { + "line": 76, + "column": 16 + }, + "end": { + "line": 76, + "column": 17 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "up", + "start": 2001, + "end": 2005, + "loc": { + "start": { + "line": 76, + "column": 18 + }, + "end": { + "line": 76, + "column": 22 + } + } + }, + { + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 2005, + "end": 2006, + "loc": { + "start": { + "line": 76, + "column": 22 + }, + "end": { + "line": 76, + "column": 23 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "{delete}", + "start": 2014, + "end": 2024, + "loc": { + "start": { + "line": 77, + "column": 6 + }, + "end": { + "line": 77, + "column": 16 + } + } + }, + { + "type": { + "label": ":", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 2024, + "end": 2025, + "loc": { + "start": { + "line": 77, + "column": 16 + }, + "end": { + "line": 77, + "column": 17 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "del", + "start": 2026, + "end": 2031, + "loc": { + "start": { + "line": 77, + "column": 18 + }, + "end": { + "line": 77, + "column": 23 + } + } + }, + { + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 2031, + "end": 2032, + "loc": { + "start": { + "line": 77, + "column": 23 + }, + "end": { + "line": 77, + "column": 24 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "{end}", + "start": 2040, + "end": 2047, + "loc": { + "start": { + "line": 78, + "column": 6 + }, + "end": { + "line": 78, + "column": 13 + } + } + }, + { + "type": { + "label": ":", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 2047, + "end": 2048, + "loc": { + "start": { + "line": 78, + "column": 13 + }, + "end": { + "line": 78, + "column": 14 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "end", + "start": 2049, + "end": 2054, + "loc": { + "start": { + "line": 78, + "column": 15 + }, + "end": { + "line": 78, + "column": 20 + } + } + }, + { + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 2054, + "end": 2055, + "loc": { + "start": { + "line": 78, + "column": 20 + }, + "end": { + "line": 78, + "column": 21 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "{pagedown}", + "start": 2063, + "end": 2075, + "loc": { + "start": { + "line": 79, + "column": 6 + }, + "end": { + "line": 79, + "column": 18 + } + } + }, + { + "type": { + "label": ":", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 2075, + "end": 2076, + "loc": { + "start": { + "line": 79, + "column": 18 + }, + "end": { + "line": 79, + "column": 19 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "down", + "start": 2077, + "end": 2083, + "loc": { + "start": { + "line": 79, + "column": 20 + }, + "end": { + "line": 79, + "column": 26 + } + } + }, + { + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 2083, + "end": 2084, + "loc": { + "start": { + "line": 79, + "column": 26 + }, + "end": { + "line": 79, + "column": 27 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "{numpadmultiply}", + "start": 2092, + "end": 2110, + "loc": { + "start": { + "line": 80, + "column": 6 + }, + "end": { + "line": 80, + "column": 24 + } + } + }, + { + "type": { + "label": ":", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 2110, + "end": 2111, + "loc": { + "start": { + "line": 80, + "column": 24 + }, + "end": { + "line": 80, + "column": 25 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "*", + "start": 2112, + "end": 2115, + "loc": { + "start": { + "line": 80, + "column": 26 + }, + "end": { + "line": 80, + "column": 29 + } + } + }, + { + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 2115, + "end": 2116, + "loc": { + "start": { + "line": 80, + "column": 29 + }, + "end": { + "line": 80, + "column": 30 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "{numpadsubtract}", + "start": 2124, + "end": 2142, + "loc": { + "start": { + "line": 81, + "column": 6 + }, + "end": { + "line": 81, + "column": 24 + } + } + }, + { + "type": { + "label": ":", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 2142, + "end": 2143, + "loc": { + "start": { + "line": 81, + "column": 24 + }, + "end": { + "line": 81, + "column": 25 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "-", + "start": 2144, + "end": 2147, + "loc": { + "start": { + "line": 81, + "column": 26 + }, + "end": { + "line": 81, + "column": 29 + } + } + }, + { + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 2147, + "end": 2148, + "loc": { + "start": { + "line": 81, + "column": 29 + }, + "end": { + "line": 81, + "column": 30 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "{numpadadd}", + "start": 2156, + "end": 2169, + "loc": { + "start": { + "line": 82, + "column": 6 + }, + "end": { + "line": 82, + "column": 19 + } + } + }, + { + "type": { + "label": ":", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 2169, + "end": 2170, + "loc": { + "start": { + "line": 82, + "column": 19 + }, + "end": { + "line": 82, + "column": 20 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "+", + "start": 2171, + "end": 2174, + "loc": { + "start": { + "line": 82, + "column": 21 + }, + "end": { + "line": 82, + "column": 24 + } + } + }, + { + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 2174, + "end": 2175, + "loc": { + "start": { + "line": 82, + "column": 24 + }, + "end": { + "line": 82, + "column": 25 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "{numpadenter}", + "start": 2183, + "end": 2198, + "loc": { + "start": { + "line": 83, + "column": 6 + }, + "end": { + "line": 83, + "column": 21 + } + } + }, + { + "type": { + "label": ":", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 2198, + "end": 2199, + "loc": { + "start": { + "line": 83, + "column": 21 + }, + "end": { + "line": 83, + "column": 22 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "enter", + "start": 2200, + "end": 2207, + "loc": { + "start": { + "line": 83, + "column": 23 + }, + "end": { + "line": 83, + "column": 30 + } + } + }, + { + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 2207, + "end": 2208, + "loc": { + "start": { + "line": 83, + "column": 30 + }, + "end": { + "line": 83, + "column": 31 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "{period}", + "start": 2216, + "end": 2226, + "loc": { + "start": { + "line": 84, + "column": 6 + }, + "end": { + "line": 84, + "column": 16 + } + } + }, + { + "type": { + "label": ":", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 2226, + "end": 2227, + "loc": { + "start": { + "line": 84, + "column": 16 + }, + "end": { + "line": 84, + "column": 17 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": ".", + "start": 2228, + "end": 2231, + "loc": { + "start": { + "line": 84, + "column": 18 + }, + "end": { + "line": 84, + "column": 21 + } + } + }, + { + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 2231, + "end": 2232, + "loc": { + "start": { + "line": 84, + "column": 21 + }, + "end": { + "line": 84, + "column": 22 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "{numpaddecimal}", + "start": 2240, + "end": 2257, + "loc": { + "start": { + "line": 85, + "column": 6 + }, + "end": { + "line": 85, + "column": 23 + } + } + }, + { + "type": { + "label": ":", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 2257, + "end": 2258, + "loc": { + "start": { + "line": 85, + "column": 23 + }, + "end": { + "line": 85, + "column": 24 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": ".", + "start": 2259, + "end": 2262, + "loc": { + "start": { + "line": 85, + "column": 25 + }, + "end": { + "line": 85, + "column": 28 + } + } + }, + { + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 2262, + "end": 2263, + "loc": { + "start": { + "line": 85, + "column": 28 + }, + "end": { + "line": 85, + "column": 29 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "{numpad0}", + "start": 2271, + "end": 2282, + "loc": { + "start": { + "line": 86, + "column": 6 + }, + "end": { + "line": 86, + "column": 17 + } + } + }, + { + "type": { + "label": ":", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 2282, + "end": 2283, + "loc": { + "start": { + "line": 86, + "column": 17 + }, + "end": { + "line": 86, + "column": 18 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "0", + "start": 2284, + "end": 2287, + "loc": { + "start": { + "line": 86, + "column": 19 + }, + "end": { + "line": 86, + "column": 22 + } + } + }, + { + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 2287, + "end": 2288, + "loc": { + "start": { + "line": 86, + "column": 22 + }, + "end": { + "line": 86, + "column": 23 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "{numpad1}", + "start": 2296, + "end": 2307, + "loc": { + "start": { + "line": 87, + "column": 6 + }, + "end": { + "line": 87, + "column": 17 + } + } + }, + { + "type": { + "label": ":", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 2307, + "end": 2308, + "loc": { + "start": { + "line": 87, + "column": 17 + }, + "end": { + "line": 87, + "column": 18 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "1", + "start": 2309, + "end": 2312, + "loc": { + "start": { + "line": 87, + "column": 19 + }, + "end": { + "line": 87, + "column": 22 + } + } + }, + { + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 2312, + "end": 2313, + "loc": { + "start": { + "line": 87, + "column": 22 + }, + "end": { + "line": 87, + "column": 23 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "{numpad2}", + "start": 2321, + "end": 2332, + "loc": { + "start": { + "line": 88, + "column": 6 + }, + "end": { + "line": 88, + "column": 17 + } + } + }, + { + "type": { + "label": ":", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 2332, + "end": 2333, + "loc": { + "start": { + "line": 88, + "column": 17 + }, + "end": { + "line": 88, + "column": 18 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "2", + "start": 2334, + "end": 2337, + "loc": { + "start": { + "line": 88, + "column": 19 + }, + "end": { + "line": 88, + "column": 22 + } + } + }, + { + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 2337, + "end": 2338, + "loc": { + "start": { + "line": 88, + "column": 22 + }, + "end": { + "line": 88, + "column": 23 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "{numpad3}", + "start": 2346, + "end": 2357, + "loc": { + "start": { + "line": 89, + "column": 6 + }, + "end": { + "line": 89, + "column": 17 + } + } + }, + { + "type": { + "label": ":", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 2357, + "end": 2358, + "loc": { + "start": { + "line": 89, + "column": 17 + }, + "end": { + "line": 89, + "column": 18 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "3", + "start": 2359, + "end": 2362, + "loc": { + "start": { + "line": 89, + "column": 19 + }, + "end": { + "line": 89, + "column": 22 + } + } + }, + { + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 2362, + "end": 2363, + "loc": { + "start": { + "line": 89, + "column": 22 + }, + "end": { + "line": 89, + "column": 23 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "{numpad4}", + "start": 2371, + "end": 2382, + "loc": { + "start": { + "line": 90, + "column": 6 + }, + "end": { + "line": 90, + "column": 17 + } + } + }, + { + "type": { + "label": ":", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 2382, + "end": 2383, + "loc": { + "start": { + "line": 90, + "column": 17 + }, + "end": { + "line": 90, + "column": 18 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "4", + "start": 2384, + "end": 2387, + "loc": { + "start": { + "line": 90, + "column": 19 + }, + "end": { + "line": 90, + "column": 22 + } + } + }, + { + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 2387, + "end": 2388, + "loc": { + "start": { + "line": 90, + "column": 22 + }, + "end": { + "line": 90, + "column": 23 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "{numpad5}", + "start": 2396, + "end": 2407, + "loc": { + "start": { + "line": 91, + "column": 6 + }, + "end": { + "line": 91, + "column": 17 + } + } + }, + { + "type": { + "label": ":", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 2407, + "end": 2408, + "loc": { + "start": { + "line": 91, + "column": 17 + }, + "end": { + "line": 91, + "column": 18 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "5", + "start": 2409, + "end": 2412, + "loc": { + "start": { + "line": 91, + "column": 19 + }, + "end": { + "line": 91, + "column": 22 + } + } + }, + { + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 2412, + "end": 2413, + "loc": { + "start": { + "line": 91, + "column": 22 + }, + "end": { + "line": 91, + "column": 23 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "{numpad6}", + "start": 2421, + "end": 2432, + "loc": { + "start": { + "line": 92, + "column": 6 + }, + "end": { + "line": 92, + "column": 17 + } + } + }, + { + "type": { + "label": ":", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 2432, + "end": 2433, + "loc": { + "start": { + "line": 92, + "column": 17 + }, + "end": { + "line": 92, + "column": 18 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "6", + "start": 2434, + "end": 2437, + "loc": { + "start": { + "line": 92, + "column": 19 + }, + "end": { + "line": 92, + "column": 22 + } + } + }, + { + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 2437, + "end": 2438, + "loc": { + "start": { + "line": 92, + "column": 22 + }, + "end": { + "line": 92, + "column": 23 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "{numpad7}", + "start": 2446, + "end": 2457, + "loc": { + "start": { + "line": 93, + "column": 6 + }, + "end": { + "line": 93, + "column": 17 + } + } + }, + { + "type": { + "label": ":", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 2457, + "end": 2458, + "loc": { + "start": { + "line": 93, + "column": 17 + }, + "end": { + "line": 93, + "column": 18 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "7", + "start": 2459, + "end": 2462, + "loc": { + "start": { + "line": 93, + "column": 19 + }, + "end": { + "line": 93, + "column": 22 + } + } + }, + { + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 2462, + "end": 2463, + "loc": { + "start": { + "line": 93, + "column": 22 + }, + "end": { + "line": 93, + "column": 23 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "{numpad8}", + "start": 2471, + "end": 2482, + "loc": { + "start": { + "line": 94, + "column": 6 + }, + "end": { + "line": 94, + "column": 17 + } + } + }, + { + "type": { + "label": ":", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 2482, + "end": 2483, + "loc": { + "start": { + "line": 94, + "column": 17 + }, + "end": { + "line": 94, + "column": 18 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "8", + "start": 2484, + "end": 2487, + "loc": { + "start": { + "line": 94, + "column": 19 + }, + "end": { + "line": 94, + "column": 22 + } + } + }, + { + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 2487, + "end": 2488, + "loc": { + "start": { + "line": 94, + "column": 22 + }, + "end": { + "line": 94, + "column": 23 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "{numpad9}", + "start": 2496, + "end": 2507, + "loc": { + "start": { + "line": 95, + "column": 6 + }, + "end": { + "line": 95, + "column": 17 + } + } + }, + { + "type": { + "label": ":", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 2507, + "end": 2508, + "loc": { + "start": { + "line": 95, + "column": 17 + }, + "end": { + "line": 95, + "column": 18 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "9", + "start": 2509, + "end": 2512, + "loc": { + "start": { + "line": 95, + "column": 19 + }, + "end": { + "line": 95, + "column": 22 + } + } + }, + { + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 2512, + "end": 2513, + "loc": { + "start": { + "line": 95, + "column": 22 + }, + "end": { + "line": 95, + "column": 23 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 2519, + "end": 2520, + "loc": { + "start": { + "line": 96, + "column": 4 + }, + "end": { + "line": 96, + "column": 5 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 2520, + "end": 2521, + "loc": { + "start": { + "line": 96, + "column": 5 + }, + "end": { + "line": 96, + "column": 6 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 2525, + "end": 2526, + "loc": { + "start": { + "line": 97, + "column": 2 + }, + "end": { + "line": 97, + "column": 3 + } + } + }, + { + "type": "CommentBlock", + "value": "*\r\n * Returns the display (label) name for a given button\r\n * \r\n * @param {string} button The button's layout name\r\n * @param {object} display The provided display option\r\n * @param {boolean} mergeDisplay Whether the provided param value should be merged with the default one.\r\n ", + "start": 2530, + "end": 2828, + "loc": { + "start": { + "line": 98, + "column": 2 + }, + "end": { + "line": 104, + "column": 5 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "getButtonDisplayName", + "start": 2832, + "end": 2852, + "loc": { + "start": { + "line": 105, + "column": 2 + }, + "end": { + "line": 105, + "column": 22 + } + } + }, + { + "type": { + "label": "=", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": true, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "=", + "start": 2853, + "end": 2854, + "loc": { + "start": { + "line": 105, + "column": 23 + }, + "end": { + "line": 105, + "column": 24 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 2855, + "end": 2856, + "loc": { + "start": { + "line": 105, + "column": 25 + }, + "end": { + "line": 105, + "column": 26 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "button", + "start": 2856, + "end": 2862, + "loc": { + "start": { + "line": 105, + "column": 26 + }, + "end": { + "line": 105, + "column": 32 + } + } + }, + { + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 2862, + "end": 2863, + "loc": { + "start": { + "line": 105, + "column": 32 + }, + "end": { + "line": 105, + "column": 33 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "display", + "start": 2864, + "end": 2871, + "loc": { + "start": { + "line": 105, + "column": 34 + }, + "end": { + "line": 105, + "column": 41 + } + } + }, + { + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 2871, + "end": 2872, + "loc": { + "start": { + "line": 105, + "column": 41 + }, + "end": { + "line": 105, + "column": 42 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "mergeDisplay", + "start": 2873, + "end": 2885, + "loc": { + "start": { + "line": 105, + "column": 43 + }, + "end": { + "line": 105, + "column": 55 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 2885, + "end": 2886, + "loc": { + "start": { + "line": 105, + "column": 55 + }, + "end": { + "line": 105, + "column": 56 + } + } + }, + { + "type": { + "label": "=>", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 2887, + "end": 2889, + "loc": { + "start": { + "line": 105, + "column": 57 + }, + "end": { + "line": 105, + "column": 59 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 2890, + "end": 2891, + "loc": { + "start": { + "line": 105, + "column": 60 + }, + "end": { + "line": 105, + "column": 61 + } + } + }, + { + "type": { + "label": "if", + "keyword": "if", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "if", + "start": 2897, + "end": 2899, + "loc": { + "start": { + "line": 106, + "column": 4 + }, + "end": { + "line": 106, + "column": 6 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 2899, + "end": 2900, + "loc": { + "start": { + "line": 106, + "column": 6 + }, + "end": { + "line": 106, + "column": 7 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "mergeDisplay", + "start": 2900, + "end": 2912, + "loc": { + "start": { + "line": 106, + "column": 7 + }, + "end": { + "line": 106, + "column": 19 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 2912, + "end": 2913, + "loc": { + "start": { + "line": 106, + "column": 19 + }, + "end": { + "line": 106, + "column": 20 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 2913, + "end": 2914, + "loc": { + "start": { + "line": 106, + "column": 20 + }, + "end": { + "line": 106, + "column": 21 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "display", + "start": 2922, + "end": 2929, + "loc": { + "start": { + "line": 107, + "column": 6 + }, + "end": { + "line": 107, + "column": 13 + } + } + }, + { + "type": { + "label": "=", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": true, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "=", + "start": 2930, + "end": 2931, + "loc": { + "start": { + "line": 107, + "column": 14 + }, + "end": { + "line": 107, + "column": 15 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "Object", + "start": 2932, + "end": 2938, + "loc": { + "start": { + "line": 107, + "column": 16 + }, + "end": { + "line": 107, + "column": 22 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 2938, + "end": 2939, + "loc": { + "start": { + "line": 107, + "column": 22 + }, + "end": { + "line": 107, + "column": 23 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "assign", + "start": 2939, + "end": 2945, + "loc": { + "start": { + "line": 107, + "column": 23 + }, + "end": { + "line": 107, + "column": 29 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 2945, + "end": 2946, + "loc": { + "start": { + "line": 107, + "column": 29 + }, + "end": { + "line": 107, + "column": 30 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 2946, + "end": 2947, + "loc": { + "start": { + "line": 107, + "column": 30 + }, + "end": { + "line": 107, + "column": 31 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 2947, + "end": 2948, + "loc": { + "start": { + "line": 107, + "column": 31 + }, + "end": { + "line": 107, + "column": 32 + } + } + }, + { + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 2948, + "end": 2949, + "loc": { + "start": { + "line": 107, + "column": 32 + }, + "end": { + "line": 107, + "column": 33 + } + } + }, + { + "type": { + "label": "this", + "keyword": "this", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "this", + "start": 2950, + "end": 2954, + "loc": { + "start": { + "line": 107, + "column": 34 + }, + "end": { + "line": 107, + "column": 38 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 2954, + "end": 2955, + "loc": { + "start": { + "line": 107, + "column": 38 + }, + "end": { + "line": 107, + "column": 39 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "getDefaultDiplay", + "start": 2955, + "end": 2971, + "loc": { + "start": { + "line": 107, + "column": 39 + }, + "end": { + "line": 107, + "column": 55 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 2971, + "end": 2972, + "loc": { + "start": { + "line": 107, + "column": 55 + }, + "end": { + "line": 107, + "column": 56 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 2972, + "end": 2973, + "loc": { + "start": { + "line": 107, + "column": 56 + }, + "end": { + "line": 107, + "column": 57 + } + } + }, + { + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 2973, + "end": 2974, + "loc": { + "start": { + "line": 107, + "column": 57 + }, + "end": { + "line": 107, + "column": 58 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "display", + "start": 2975, + "end": 2982, + "loc": { + "start": { + "line": 107, + "column": 59 + }, + "end": { + "line": 107, + "column": 66 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 2982, + "end": 2983, + "loc": { + "start": { + "line": 107, + "column": 66 + }, + "end": { + "line": 107, + "column": 67 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 2983, + "end": 2984, + "loc": { + "start": { + "line": 107, + "column": 67 + }, + "end": { + "line": 107, + "column": 68 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 2990, + "end": 2991, + "loc": { + "start": { + "line": 108, + "column": 4 + }, + "end": { + "line": 108, + "column": 5 + } + } + }, + { + "type": { + "label": "else", + "keyword": "else", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "else", + "start": 2992, + "end": 2996, + "loc": { + "start": { + "line": 108, + "column": 6 + }, + "end": { + "line": 108, + "column": 10 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 2997, + "end": 2998, + "loc": { + "start": { + "line": 108, + "column": 11 + }, + "end": { + "line": 108, + "column": 12 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "display", + "start": 3006, + "end": 3013, + "loc": { + "start": { + "line": 109, + "column": 6 + }, + "end": { + "line": 109, + "column": 13 + } + } + }, + { + "type": { + "label": "=", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": true, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "=", + "start": 3014, + "end": 3015, + "loc": { + "start": { + "line": 109, + "column": 14 + }, + "end": { + "line": 109, + "column": 15 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "display", + "start": 3016, + "end": 3023, + "loc": { + "start": { + "line": 109, + "column": 16 + }, + "end": { + "line": 109, + "column": 23 + } + } + }, + { + "type": { + "label": "||", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": 1, + "updateContext": null + }, + "value": "||", + "start": 3024, + "end": 3026, + "loc": { + "start": { + "line": 109, + "column": 24 + }, + "end": { + "line": 109, + "column": 26 + } + } + }, + { + "type": { + "label": "this", + "keyword": "this", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "this", + "start": 3027, + "end": 3031, + "loc": { + "start": { + "line": 109, + "column": 27 + }, + "end": { + "line": 109, + "column": 31 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 3031, + "end": 3032, + "loc": { + "start": { + "line": 109, + "column": 31 + }, + "end": { + "line": 109, + "column": 32 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "getDefaultDiplay", + "start": 3032, + "end": 3048, + "loc": { + "start": { + "line": 109, + "column": 32 + }, + "end": { + "line": 109, + "column": 48 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 3048, + "end": 3049, + "loc": { + "start": { + "line": 109, + "column": 48 + }, + "end": { + "line": 109, + "column": 49 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 3049, + "end": 3050, + "loc": { + "start": { + "line": 109, + "column": 49 + }, + "end": { + "line": 109, + "column": 50 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 3050, + "end": 3051, + "loc": { + "start": { + "line": 109, + "column": 50 + }, + "end": { + "line": 109, + "column": 51 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 3057, + "end": 3058, + "loc": { + "start": { + "line": 110, + "column": 4 + }, + "end": { + "line": 110, + "column": 5 + } + } + }, + { + "type": { + "label": "return", + "keyword": "return", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "return", + "start": 3066, + "end": 3072, + "loc": { + "start": { + "line": 112, + "column": 4 + }, + "end": { + "line": 112, + "column": 10 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "display", + "start": 3073, + "end": 3080, + "loc": { + "start": { + "line": 112, + "column": 11 + }, + "end": { + "line": 112, + "column": 18 + } + } + }, + { + "type": { + "label": "[", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 3080, + "end": 3081, + "loc": { + "start": { + "line": 112, + "column": 18 + }, + "end": { + "line": 112, + "column": 19 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "button", + "start": 3081, + "end": 3087, + "loc": { + "start": { + "line": 112, + "column": 19 + }, + "end": { + "line": 112, + "column": 25 + } + } + }, + { + "type": { + "label": "]", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 3087, + "end": 3088, + "loc": { + "start": { + "line": 112, + "column": 25 + }, + "end": { + "line": 112, + "column": 26 + } + } + }, + { + "type": { + "label": "||", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": 1, + "updateContext": null + }, + "value": "||", + "start": 3089, + "end": 3091, + "loc": { + "start": { + "line": 112, + "column": 27 + }, + "end": { + "line": 112, + "column": 29 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "button", + "start": 3092, + "end": 3098, + "loc": { + "start": { + "line": 112, + "column": 30 + }, + "end": { + "line": 112, + "column": 36 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 3098, + "end": 3099, + "loc": { + "start": { + "line": 112, + "column": 36 + }, + "end": { + "line": 112, + "column": 37 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 3103, + "end": 3104, + "loc": { + "start": { + "line": 113, + "column": 2 + }, + "end": { + "line": 113, + "column": 3 + } + } + }, + { + "type": "CommentBlock", + "value": "*\r\n * Returns the updated input resulting from clicking a given button\r\n * \r\n * @param {string} button The button's layout name\r\n * @param {string} input The input string\r\n * @param {object} options The simple-keyboard options object\r\n * @param {number} caretPos The cursor's current position\r\n ", + "start": 3114, + "end": 3431, + "loc": { + "start": { + "line": 116, + "column": 2 + }, + "end": { + "line": 123, + "column": 5 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "getUpdatedInput", + "start": 3435, + "end": 3450, + "loc": { + "start": { + "line": 124, + "column": 2 + }, + "end": { + "line": 124, + "column": 17 + } + } + }, + { + "type": { + "label": "=", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": true, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "=", + "start": 3451, + "end": 3452, + "loc": { + "start": { + "line": 124, + "column": 18 + }, + "end": { + "line": 124, + "column": 19 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 3453, + "end": 3454, + "loc": { + "start": { + "line": 124, + "column": 20 + }, + "end": { + "line": 124, + "column": 21 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "button", + "start": 3454, + "end": 3460, + "loc": { + "start": { + "line": 124, + "column": 21 + }, + "end": { + "line": 124, + "column": 27 + } + } + }, + { + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 3460, + "end": 3461, + "loc": { + "start": { + "line": 124, + "column": 27 + }, + "end": { + "line": 124, + "column": 28 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "input", + "start": 3462, + "end": 3467, + "loc": { + "start": { + "line": 124, + "column": 29 + }, + "end": { + "line": 124, + "column": 34 + } + } + }, + { + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 3467, + "end": 3468, + "loc": { + "start": { + "line": 124, + "column": 34 + }, + "end": { + "line": 124, + "column": 35 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "options", + "start": 3469, + "end": 3476, + "loc": { + "start": { + "line": 124, + "column": 36 + }, + "end": { + "line": 124, + "column": 43 + } + } + }, + { + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 3476, + "end": 3477, + "loc": { + "start": { + "line": 124, + "column": 43 + }, + "end": { + "line": 124, + "column": 44 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "caretPos", + "start": 3478, + "end": 3486, + "loc": { + "start": { + "line": 124, + "column": 45 + }, + "end": { + "line": 124, + "column": 53 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 3486, + "end": 3487, + "loc": { + "start": { + "line": 124, + "column": 53 + }, + "end": { + "line": 124, + "column": 54 + } + } + }, + { + "type": { + "label": "=>", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 3488, + "end": 3490, + "loc": { + "start": { + "line": 124, + "column": 55 + }, + "end": { + "line": 124, + "column": 57 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 3491, + "end": 3492, + "loc": { + "start": { + "line": 124, + "column": 58 + }, + "end": { + "line": 124, + "column": 59 + } + } + }, + { + "type": { + "label": "let", + "keyword": "let", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "let", + "start": 3504, + "end": 3507, + "loc": { + "start": { + "line": 126, + "column": 4 + }, + "end": { + "line": 126, + "column": 7 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "output", + "start": 3508, + "end": 3514, + "loc": { + "start": { + "line": 126, + "column": 8 + }, + "end": { + "line": 126, + "column": 14 + } + } + }, + { + "type": { + "label": "=", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": true, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "=", + "start": 3515, + "end": 3516, + "loc": { + "start": { + "line": 126, + "column": 15 + }, + "end": { + "line": 126, + "column": 16 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "input", + "start": 3517, + "end": 3522, + "loc": { + "start": { + "line": 126, + "column": 17 + }, + "end": { + "line": 126, + "column": 22 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 3522, + "end": 3523, + "loc": { + "start": { + "line": 126, + "column": 22 + }, + "end": { + "line": 126, + "column": 23 + } + } + }, + { + "type": { + "label": "if", + "keyword": "if", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "if", + "start": 3531, + "end": 3533, + "loc": { + "start": { + "line": 128, + "column": 4 + }, + "end": { + "line": 128, + "column": 6 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 3533, + "end": 3534, + "loc": { + "start": { + "line": 128, + "column": 6 + }, + "end": { + "line": 128, + "column": 7 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 3534, + "end": 3535, + "loc": { + "start": { + "line": 128, + "column": 7 + }, + "end": { + "line": 128, + "column": 8 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "button", + "start": 3535, + "end": 3541, + "loc": { + "start": { + "line": 128, + "column": 8 + }, + "end": { + "line": 128, + "column": 14 + } + } + }, + { + "type": { + "label": "==/!=", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": 6, + "updateContext": null + }, + "value": "===", + "start": 3542, + "end": 3545, + "loc": { + "start": { + "line": 128, + "column": 15 + }, + "end": { + "line": 128, + "column": 18 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "{bksp}", + "start": 3546, + "end": 3554, + "loc": { + "start": { + "line": 128, + "column": 19 + }, + "end": { + "line": 128, + "column": 27 + } + } + }, + { + "type": { + "label": "||", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": 1, + "updateContext": null + }, + "value": "||", + "start": 3555, + "end": 3557, + "loc": { + "start": { + "line": 128, + "column": 28 + }, + "end": { + "line": 128, + "column": 30 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "button", + "start": 3558, + "end": 3564, + "loc": { + "start": { + "line": 128, + "column": 31 + }, + "end": { + "line": 128, + "column": 37 + } + } + }, + { + "type": { + "label": "==/!=", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": 6, + "updateContext": null + }, + "value": "===", + "start": 3565, + "end": 3568, + "loc": { + "start": { + "line": 128, + "column": 38 + }, + "end": { + "line": 128, + "column": 41 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "{backspace}", + "start": 3569, + "end": 3582, + "loc": { + "start": { + "line": 128, + "column": 42 + }, + "end": { + "line": 128, + "column": 55 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 3582, + "end": 3583, + "loc": { + "start": { + "line": 128, + "column": 55 + }, + "end": { + "line": 128, + "column": 56 + } + } + }, + { + "type": { + "label": "&&", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": 2, + "updateContext": null + }, + "value": "&&", + "start": 3584, + "end": 3586, + "loc": { + "start": { + "line": 128, + "column": 57 + }, + "end": { + "line": 128, + "column": 59 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "output", + "start": 3587, + "end": 3593, + "loc": { + "start": { + "line": 128, + "column": 60 + }, + "end": { + "line": 128, + "column": 66 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 3593, + "end": 3594, + "loc": { + "start": { + "line": 128, + "column": 66 + }, + "end": { + "line": 128, + "column": 67 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "length", + "start": 3594, + "end": 3600, + "loc": { + "start": { + "line": 128, + "column": 67 + }, + "end": { + "line": 128, + "column": 73 + } + } + }, + { + "type": { + "label": "", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": 7, + "updateContext": null + }, + "value": ">", + "start": 3601, + "end": 3602, + "loc": { + "start": { + "line": 128, + "column": 74 + }, + "end": { + "line": 128, + "column": 75 + } + } + }, + { + "type": { + "label": "num", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": 0, + "start": 3603, + "end": 3604, + "loc": { + "start": { + "line": 128, + "column": 76 + }, + "end": { + "line": 128, + "column": 77 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 3604, + "end": 3605, + "loc": { + "start": { + "line": 128, + "column": 77 + }, + "end": { + "line": 128, + "column": 78 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 3605, + "end": 3606, + "loc": { + "start": { + "line": 128, + "column": 78 + }, + "end": { + "line": 128, + "column": 79 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "output", + "start": 3614, + "end": 3620, + "loc": { + "start": { + "line": 129, + "column": 6 + }, + "end": { + "line": 129, + "column": 12 + } + } + }, + { + "type": { + "label": "=", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": true, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "=", + "start": 3621, + "end": 3622, + "loc": { + "start": { + "line": 129, + "column": 13 + }, + "end": { + "line": 129, + "column": 14 + } + } + }, + { + "type": { + "label": "this", + "keyword": "this", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "this", + "start": 3623, + "end": 3627, + "loc": { + "start": { + "line": 129, + "column": 15 + }, + "end": { + "line": 129, + "column": 19 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 3627, + "end": 3628, + "loc": { + "start": { + "line": 129, + "column": 19 + }, + "end": { + "line": 129, + "column": 20 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "removeAt", + "start": 3628, + "end": 3636, + "loc": { + "start": { + "line": 129, + "column": 20 + }, + "end": { + "line": 129, + "column": 28 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 3636, + "end": 3637, + "loc": { + "start": { + "line": 129, + "column": 28 + }, + "end": { + "line": 129, + "column": 29 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "output", + "start": 3637, + "end": 3643, + "loc": { + "start": { + "line": 129, + "column": 29 + }, + "end": { + "line": 129, + "column": 35 + } + } + }, + { + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 3643, + "end": 3644, + "loc": { + "start": { + "line": 129, + "column": 35 + }, + "end": { + "line": 129, + "column": 36 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "caretPos", + "start": 3645, + "end": 3653, + "loc": { + "start": { + "line": 129, + "column": 37 + }, + "end": { + "line": 129, + "column": 45 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 3653, + "end": 3654, + "loc": { + "start": { + "line": 129, + "column": 45 + }, + "end": { + "line": 129, + "column": 46 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 3654, + "end": 3655, + "loc": { + "start": { + "line": 129, + "column": 46 + }, + "end": { + "line": 129, + "column": 47 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 3663, + "end": 3664, + "loc": { + "start": { + "line": 131, + "column": 4 + }, + "end": { + "line": 131, + "column": 5 + } + } + }, + { + "type": { + "label": "else", + "keyword": "else", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "else", + "start": 3665, + "end": 3669, + "loc": { + "start": { + "line": 131, + "column": 6 + }, + "end": { + "line": 131, + "column": 10 + } + } + }, + { + "type": { + "label": "if", + "keyword": "if", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "if", + "start": 3670, + "end": 3672, + "loc": { + "start": { + "line": 131, + "column": 11 + }, + "end": { + "line": 131, + "column": 13 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 3672, + "end": 3673, + "loc": { + "start": { + "line": 131, + "column": 13 + }, + "end": { + "line": 131, + "column": 14 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "button", + "start": 3673, + "end": 3679, + "loc": { + "start": { + "line": 131, + "column": 14 + }, + "end": { + "line": 131, + "column": 20 + } + } + }, + { + "type": { + "label": "==/!=", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": 6, + "updateContext": null + }, + "value": "===", + "start": 3680, + "end": 3683, + "loc": { + "start": { + "line": 131, + "column": 21 + }, + "end": { + "line": 131, + "column": 24 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "{space}", + "start": 3684, + "end": 3693, + "loc": { + "start": { + "line": 131, + "column": 25 + }, + "end": { + "line": 131, + "column": 34 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 3693, + "end": 3694, + "loc": { + "start": { + "line": 131, + "column": 34 + }, + "end": { + "line": 131, + "column": 35 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "output", + "start": 3702, + "end": 3708, + "loc": { + "start": { + "line": 132, + "column": 6 + }, + "end": { + "line": 132, + "column": 12 + } + } + }, + { + "type": { + "label": "=", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": true, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "=", + "start": 3709, + "end": 3710, + "loc": { + "start": { + "line": 132, + "column": 13 + }, + "end": { + "line": 132, + "column": 14 + } + } + }, + { + "type": { + "label": "this", + "keyword": "this", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "this", + "start": 3711, + "end": 3715, + "loc": { + "start": { + "line": 132, + "column": 15 + }, + "end": { + "line": 132, + "column": 19 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 3715, + "end": 3716, + "loc": { + "start": { + "line": 132, + "column": 19 + }, + "end": { + "line": 132, + "column": 20 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "addStringAt", + "start": 3716, + "end": 3727, + "loc": { + "start": { + "line": 132, + "column": 20 + }, + "end": { + "line": 132, + "column": 31 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 3727, + "end": 3728, + "loc": { + "start": { + "line": 132, + "column": 31 + }, + "end": { + "line": 132, + "column": 32 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "output", + "start": 3728, + "end": 3734, + "loc": { + "start": { + "line": 132, + "column": 32 + }, + "end": { + "line": 132, + "column": 38 + } + } + }, + { + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 3734, + "end": 3735, + "loc": { + "start": { + "line": 132, + "column": 38 + }, + "end": { + "line": 132, + "column": 39 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": " ", + "start": 3736, + "end": 3739, + "loc": { + "start": { + "line": 132, + "column": 40 + }, + "end": { + "line": 132, + "column": 43 + } + } + }, + { + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 3739, + "end": 3740, + "loc": { + "start": { + "line": 132, + "column": 43 + }, + "end": { + "line": 132, + "column": 44 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "caretPos", + "start": 3741, + "end": 3749, + "loc": { + "start": { + "line": 132, + "column": 45 + }, + "end": { + "line": 132, + "column": 53 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 3749, + "end": 3750, + "loc": { + "start": { + "line": 132, + "column": 53 + }, + "end": { + "line": 132, + "column": 54 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 3750, + "end": 3751, + "loc": { + "start": { + "line": 132, + "column": 54 + }, + "end": { + "line": 132, + "column": 55 + } + } + }, + { + "type": { + "label": "else", + "keyword": "else", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "else", + "start": 3759, + "end": 3763, + "loc": { + "start": { + "line": 134, + "column": 4 + }, + "end": { + "line": 134, + "column": 8 + } + } + }, + { + "type": { + "label": "if", + "keyword": "if", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "if", + "start": 3764, + "end": 3766, + "loc": { + "start": { + "line": 134, + "column": 9 + }, + "end": { + "line": 134, + "column": 11 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 3766, + "end": 3767, + "loc": { + "start": { + "line": 134, + "column": 11 + }, + "end": { + "line": 134, + "column": 12 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "button", + "start": 3767, + "end": 3773, + "loc": { + "start": { + "line": 134, + "column": 12 + }, + "end": { + "line": 134, + "column": 18 + } + } + }, + { + "type": { + "label": "==/!=", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": 6, + "updateContext": null + }, + "value": "===", + "start": 3774, + "end": 3777, + "loc": { + "start": { + "line": 134, + "column": 19 + }, + "end": { + "line": 134, + "column": 22 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "{tab}", + "start": 3778, + "end": 3785, + "loc": { + "start": { + "line": 134, + "column": 23 + }, + "end": { + "line": 134, + "column": 30 + } + } + }, + { + "type": { + "label": "&&", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": 2, + "updateContext": null + }, + "value": "&&", + "start": 3786, + "end": 3788, + "loc": { + "start": { + "line": 134, + "column": 31 + }, + "end": { + "line": 134, + "column": 33 + } + } + }, + { + "type": { + "label": "prefix", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": true, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "!", + "start": 3789, + "end": 3790, + "loc": { + "start": { + "line": 134, + "column": 34 + }, + "end": { + "line": 134, + "column": 35 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 3790, + "end": 3791, + "loc": { + "start": { + "line": 134, + "column": 35 + }, + "end": { + "line": 134, + "column": 36 + } + } + }, + { + "type": { + "label": "typeof", + "keyword": "typeof", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": true, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "typeof", + "start": 3791, + "end": 3797, + "loc": { + "start": { + "line": 134, + "column": 36 + }, + "end": { + "line": 134, + "column": 42 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "options", + "start": 3798, + "end": 3805, + "loc": { + "start": { + "line": 134, + "column": 43 + }, + "end": { + "line": 134, + "column": 50 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 3805, + "end": 3806, + "loc": { + "start": { + "line": 134, + "column": 50 + }, + "end": { + "line": 134, + "column": 51 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "tabCharOnTab", + "start": 3806, + "end": 3818, + "loc": { + "start": { + "line": 134, + "column": 51 + }, + "end": { + "line": 134, + "column": 63 + } + } + }, + { + "type": { + "label": "==/!=", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": 6, + "updateContext": null + }, + "value": "===", + "start": 3819, + "end": 3822, + "loc": { + "start": { + "line": 134, + "column": 64 + }, + "end": { + "line": 134, + "column": 67 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "boolean", + "start": 3823, + "end": 3832, + "loc": { + "start": { + "line": 134, + "column": 68 + }, + "end": { + "line": 134, + "column": 77 + } + } + }, + { + "type": { + "label": "&&", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": 2, + "updateContext": null + }, + "value": "&&", + "start": 3833, + "end": 3835, + "loc": { + "start": { + "line": 134, + "column": 78 + }, + "end": { + "line": 134, + "column": 80 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "options", + "start": 3836, + "end": 3843, + "loc": { + "start": { + "line": 134, + "column": 81 + }, + "end": { + "line": 134, + "column": 88 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 3843, + "end": 3844, + "loc": { + "start": { + "line": 134, + "column": 88 + }, + "end": { + "line": 134, + "column": 89 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "tabCharOnTab", + "start": 3844, + "end": 3856, + "loc": { + "start": { + "line": 134, + "column": 89 + }, + "end": { + "line": 134, + "column": 101 + } + } + }, + { + "type": { + "label": "==/!=", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": 6, + "updateContext": null + }, + "value": "===", + "start": 3857, + "end": 3860, + "loc": { + "start": { + "line": 134, + "column": 102 + }, + "end": { + "line": 134, + "column": 105 + } + } + }, + { + "type": { + "label": "false", + "keyword": "false", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "false", + "start": 3861, + "end": 3866, + "loc": { + "start": { + "line": 134, + "column": 106 + }, + "end": { + "line": 134, + "column": 111 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 3866, + "end": 3867, + "loc": { + "start": { + "line": 134, + "column": 111 + }, + "end": { + "line": 134, + "column": 112 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 3867, + "end": 3868, + "loc": { + "start": { + "line": 134, + "column": 112 + }, + "end": { + "line": 134, + "column": 113 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 3868, + "end": 3869, + "loc": { + "start": { + "line": 134, + "column": 113 + }, + "end": { + "line": 134, + "column": 114 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "output", + "start": 3877, + "end": 3883, + "loc": { + "start": { + "line": 135, + "column": 6 + }, + "end": { + "line": 135, + "column": 12 + } + } + }, + { + "type": { + "label": "=", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": true, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "=", + "start": 3884, + "end": 3885, + "loc": { + "start": { + "line": 135, + "column": 13 + }, + "end": { + "line": 135, + "column": 14 + } + } + }, + { + "type": { + "label": "this", + "keyword": "this", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "this", + "start": 3886, + "end": 3890, + "loc": { + "start": { + "line": 135, + "column": 15 + }, + "end": { + "line": 135, + "column": 19 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 3890, + "end": 3891, + "loc": { + "start": { + "line": 135, + "column": 19 + }, + "end": { + "line": 135, + "column": 20 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "addStringAt", + "start": 3891, + "end": 3902, + "loc": { + "start": { + "line": 135, + "column": 20 + }, + "end": { + "line": 135, + "column": 31 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 3902, + "end": 3903, + "loc": { + "start": { + "line": 135, + "column": 31 + }, + "end": { + "line": 135, + "column": 32 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "output", + "start": 3903, + "end": 3909, + "loc": { + "start": { + "line": 135, + "column": 32 + }, + "end": { + "line": 135, + "column": 38 + } + } + }, + { + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 3909, + "end": 3910, + "loc": { + "start": { + "line": 135, + "column": 38 + }, + "end": { + "line": 135, + "column": 39 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "\t", + "start": 3911, + "end": 3915, + "loc": { + "start": { + "line": 135, + "column": 40 + }, + "end": { + "line": 135, + "column": 44 + } + } + }, + { + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 3915, + "end": 3916, + "loc": { + "start": { + "line": 135, + "column": 44 + }, + "end": { + "line": 135, + "column": 45 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "caretPos", + "start": 3917, + "end": 3925, + "loc": { + "start": { + "line": 135, + "column": 46 + }, + "end": { + "line": 135, + "column": 54 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 3925, + "end": 3926, + "loc": { + "start": { + "line": 135, + "column": 54 + }, + "end": { + "line": 135, + "column": 55 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 3926, + "end": 3927, + "loc": { + "start": { + "line": 135, + "column": 55 + }, + "end": { + "line": 135, + "column": 56 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 3935, + "end": 3936, + "loc": { + "start": { + "line": 137, + "column": 4 + }, + "end": { + "line": 137, + "column": 5 + } + } + }, + { + "type": { + "label": "else", + "keyword": "else", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "else", + "start": 3937, + "end": 3941, + "loc": { + "start": { + "line": 137, + "column": 6 + }, + "end": { + "line": 137, + "column": 10 + } + } + }, + { + "type": { + "label": "if", + "keyword": "if", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "if", + "start": 3942, + "end": 3944, + "loc": { + "start": { + "line": 137, + "column": 11 + }, + "end": { + "line": 137, + "column": 13 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 3944, + "end": 3945, + "loc": { + "start": { + "line": 137, + "column": 13 + }, + "end": { + "line": 137, + "column": 14 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 3945, + "end": 3946, + "loc": { + "start": { + "line": 137, + "column": 14 + }, + "end": { + "line": 137, + "column": 15 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "button", + "start": 3946, + "end": 3952, + "loc": { + "start": { + "line": 137, + "column": 15 + }, + "end": { + "line": 137, + "column": 21 + } + } + }, + { + "type": { + "label": "==/!=", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": 6, + "updateContext": null + }, + "value": "===", + "start": 3953, + "end": 3956, + "loc": { + "start": { + "line": 137, + "column": 22 + }, + "end": { + "line": 137, + "column": 25 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "{enter}", + "start": 3957, + "end": 3966, + "loc": { + "start": { + "line": 137, + "column": 26 + }, + "end": { + "line": 137, + "column": 35 + } + } + }, + { + "type": { + "label": "||", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": 1, + "updateContext": null + }, + "value": "||", + "start": 3967, + "end": 3969, + "loc": { + "start": { + "line": 137, + "column": 36 + }, + "end": { + "line": 137, + "column": 38 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "button", + "start": 3970, + "end": 3976, + "loc": { + "start": { + "line": 137, + "column": 39 + }, + "end": { + "line": 137, + "column": 45 + } + } + }, + { + "type": { + "label": "==/!=", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": 6, + "updateContext": null + }, + "value": "===", + "start": 3977, + "end": 3980, + "loc": { + "start": { + "line": 137, + "column": 46 + }, + "end": { + "line": 137, + "column": 49 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "{numpadenter}", + "start": 3981, + "end": 3996, + "loc": { + "start": { + "line": 137, + "column": 50 + }, + "end": { + "line": 137, + "column": 65 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 3996, + "end": 3997, + "loc": { + "start": { + "line": 137, + "column": 65 + }, + "end": { + "line": 137, + "column": 66 + } + } + }, + { + "type": { + "label": "&&", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": 2, + "updateContext": null + }, + "value": "&&", + "start": 3998, + "end": 4000, + "loc": { + "start": { + "line": 137, + "column": 67 + }, + "end": { + "line": 137, + "column": 69 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "options", + "start": 4001, + "end": 4008, + "loc": { + "start": { + "line": 137, + "column": 70 + }, + "end": { + "line": 137, + "column": 77 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 4008, + "end": 4009, + "loc": { + "start": { + "line": 137, + "column": 77 + }, + "end": { + "line": 137, + "column": 78 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "newLineOnEnter", + "start": 4009, + "end": 4023, + "loc": { + "start": { + "line": 137, + "column": 78 + }, + "end": { + "line": 137, + "column": 92 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 4023, + "end": 4024, + "loc": { + "start": { + "line": 137, + "column": 92 + }, + "end": { + "line": 137, + "column": 93 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "output", + "start": 4032, + "end": 4038, + "loc": { + "start": { + "line": 138, + "column": 6 + }, + "end": { + "line": 138, + "column": 12 + } + } + }, + { + "type": { + "label": "=", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": true, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "=", + "start": 4039, + "end": 4040, + "loc": { + "start": { + "line": 138, + "column": 13 + }, + "end": { + "line": 138, + "column": 14 + } + } + }, + { + "type": { + "label": "this", + "keyword": "this", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "this", + "start": 4041, + "end": 4045, + "loc": { + "start": { + "line": 138, + "column": 15 + }, + "end": { + "line": 138, + "column": 19 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 4045, + "end": 4046, + "loc": { + "start": { + "line": 138, + "column": 19 + }, + "end": { + "line": 138, + "column": 20 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "addStringAt", + "start": 4046, + "end": 4057, + "loc": { + "start": { + "line": 138, + "column": 20 + }, + "end": { + "line": 138, + "column": 31 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 4057, + "end": 4058, + "loc": { + "start": { + "line": 138, + "column": 31 + }, + "end": { + "line": 138, + "column": 32 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "output", + "start": 4058, + "end": 4064, + "loc": { + "start": { + "line": 138, + "column": 32 + }, + "end": { + "line": 138, + "column": 38 + } + } + }, + { + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 4064, + "end": 4065, + "loc": { + "start": { + "line": 138, + "column": 38 + }, + "end": { + "line": 138, + "column": 39 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "\n", + "start": 4066, + "end": 4070, + "loc": { + "start": { + "line": 138, + "column": 40 + }, + "end": { + "line": 138, + "column": 44 + } + } + }, + { + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 4070, + "end": 4071, + "loc": { + "start": { + "line": 138, + "column": 44 + }, + "end": { + "line": 138, + "column": 45 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "caretPos", + "start": 4072, + "end": 4080, + "loc": { + "start": { + "line": 138, + "column": 46 + }, + "end": { + "line": 138, + "column": 54 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 4080, + "end": 4081, + "loc": { + "start": { + "line": 138, + "column": 54 + }, + "end": { + "line": 138, + "column": 55 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 4081, + "end": 4082, + "loc": { + "start": { + "line": 138, + "column": 55 + }, + "end": { + "line": 138, + "column": 56 + } + } + }, + { + "type": { + "label": "else", + "keyword": "else", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "else", + "start": 4090, + "end": 4094, + "loc": { + "start": { + "line": 140, + "column": 4 + }, + "end": { + "line": 140, + "column": 8 + } + } + }, + { + "type": { + "label": "if", + "keyword": "if", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "if", + "start": 4095, + "end": 4097, + "loc": { + "start": { + "line": 140, + "column": 9 + }, + "end": { + "line": 140, + "column": 11 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 4097, + "end": 4098, + "loc": { + "start": { + "line": 140, + "column": 11 + }, + "end": { + "line": 140, + "column": 12 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "button", + "start": 4098, + "end": 4104, + "loc": { + "start": { + "line": 140, + "column": 12 + }, + "end": { + "line": 140, + "column": 18 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 4104, + "end": 4105, + "loc": { + "start": { + "line": 140, + "column": 18 + }, + "end": { + "line": 140, + "column": 19 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "includes", + "start": 4105, + "end": 4113, + "loc": { + "start": { + "line": 140, + "column": 19 + }, + "end": { + "line": 140, + "column": 27 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 4113, + "end": 4114, + "loc": { + "start": { + "line": 140, + "column": 27 + }, + "end": { + "line": 140, + "column": 28 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "numpad", + "start": 4114, + "end": 4122, + "loc": { + "start": { + "line": 140, + "column": 28 + }, + "end": { + "line": 140, + "column": 36 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 4122, + "end": 4123, + "loc": { + "start": { + "line": 140, + "column": 36 + }, + "end": { + "line": 140, + "column": 37 + } + } + }, + { + "type": { + "label": "&&", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": 2, + "updateContext": null + }, + "value": "&&", + "start": 4124, + "end": 4126, + "loc": { + "start": { + "line": 140, + "column": 38 + }, + "end": { + "line": 140, + "column": 40 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "Number", + "start": 4127, + "end": 4133, + "loc": { + "start": { + "line": 140, + "column": 41 + }, + "end": { + "line": 140, + "column": 47 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 4133, + "end": 4134, + "loc": { + "start": { + "line": 140, + "column": 47 + }, + "end": { + "line": 140, + "column": 48 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "isInteger", + "start": 4134, + "end": 4143, + "loc": { + "start": { + "line": 140, + "column": 48 + }, + "end": { + "line": 140, + "column": 57 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 4143, + "end": 4144, + "loc": { + "start": { + "line": 140, + "column": 57 + }, + "end": { + "line": 140, + "column": 58 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "Number", + "start": 4144, + "end": 4150, + "loc": { + "start": { + "line": 140, + "column": 58 + }, + "end": { + "line": 140, + "column": 64 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 4150, + "end": 4151, + "loc": { + "start": { + "line": 140, + "column": 64 + }, + "end": { + "line": 140, + "column": 65 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "button", + "start": 4151, + "end": 4157, + "loc": { + "start": { + "line": 140, + "column": 65 + }, + "end": { + "line": 140, + "column": 71 + } + } + }, + { + "type": { + "label": "[", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 4157, + "end": 4158, + "loc": { + "start": { + "line": 140, + "column": 71 + }, + "end": { + "line": 140, + "column": 72 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "button", + "start": 4158, + "end": 4164, + "loc": { + "start": { + "line": 140, + "column": 72 + }, + "end": { + "line": 140, + "column": 78 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 4164, + "end": 4165, + "loc": { + "start": { + "line": 140, + "column": 78 + }, + "end": { + "line": 140, + "column": 79 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "length", + "start": 4165, + "end": 4171, + "loc": { + "start": { + "line": 140, + "column": 79 + }, + "end": { + "line": 140, + "column": 85 + } + } + }, + { + "type": { + "label": "+/-", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": true, + "postfix": false, + "binop": 9, + "updateContext": null + }, + "value": "-", + "start": 4172, + "end": 4173, + "loc": { + "start": { + "line": 140, + "column": 86 + }, + "end": { + "line": 140, + "column": 87 + } + } + }, + { + "type": { + "label": "num", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": 2, + "start": 4174, + "end": 4175, + "loc": { + "start": { + "line": 140, + "column": 88 + }, + "end": { + "line": 140, + "column": 89 + } + } + }, + { + "type": { + "label": "]", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 4175, + "end": 4176, + "loc": { + "start": { + "line": 140, + "column": 89 + }, + "end": { + "line": 140, + "column": 90 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 4176, + "end": 4177, + "loc": { + "start": { + "line": 140, + "column": 90 + }, + "end": { + "line": 140, + "column": 91 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 4177, + "end": 4178, + "loc": { + "start": { + "line": 140, + "column": 91 + }, + "end": { + "line": 140, + "column": 92 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 4178, + "end": 4179, + "loc": { + "start": { + "line": 140, + "column": 92 + }, + "end": { + "line": 140, + "column": 93 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 4179, + "end": 4180, + "loc": { + "start": { + "line": 140, + "column": 93 + }, + "end": { + "line": 140, + "column": 94 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "output", + "start": 4188, + "end": 4194, + "loc": { + "start": { + "line": 141, + "column": 6 + }, + "end": { + "line": 141, + "column": 12 + } + } + }, + { + "type": { + "label": "=", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": true, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "=", + "start": 4195, + "end": 4196, + "loc": { + "start": { + "line": 141, + "column": 13 + }, + "end": { + "line": 141, + "column": 14 + } + } + }, + { + "type": { + "label": "this", + "keyword": "this", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "this", + "start": 4197, + "end": 4201, + "loc": { + "start": { + "line": 141, + "column": 15 + }, + "end": { + "line": 141, + "column": 19 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 4201, + "end": 4202, + "loc": { + "start": { + "line": 141, + "column": 19 + }, + "end": { + "line": 141, + "column": 20 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "addStringAt", + "start": 4202, + "end": 4213, + "loc": { + "start": { + "line": 141, + "column": 20 + }, + "end": { + "line": 141, + "column": 31 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 4213, + "end": 4214, + "loc": { + "start": { + "line": 141, + "column": 31 + }, + "end": { + "line": 141, + "column": 32 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "output", + "start": 4214, + "end": 4220, + "loc": { + "start": { + "line": 141, + "column": 32 + }, + "end": { + "line": 141, + "column": 38 + } + } + }, + { + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 4220, + "end": 4221, + "loc": { + "start": { + "line": 141, + "column": 38 + }, + "end": { + "line": 141, + "column": 39 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "button", + "start": 4222, + "end": 4228, + "loc": { + "start": { + "line": 141, + "column": 40 + }, + "end": { + "line": 141, + "column": 46 + } + } + }, + { + "type": { + "label": "[", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 4228, + "end": 4229, + "loc": { + "start": { + "line": 141, + "column": 46 + }, + "end": { + "line": 141, + "column": 47 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "button", + "start": 4229, + "end": 4235, + "loc": { + "start": { + "line": 141, + "column": 47 + }, + "end": { + "line": 141, + "column": 53 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 4235, + "end": 4236, + "loc": { + "start": { + "line": 141, + "column": 53 + }, + "end": { + "line": 141, + "column": 54 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "length", + "start": 4236, + "end": 4242, + "loc": { + "start": { + "line": 141, + "column": 54 + }, + "end": { + "line": 141, + "column": 60 + } + } + }, + { + "type": { + "label": "+/-", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": true, + "postfix": false, + "binop": 9, + "updateContext": null + }, + "value": "-", + "start": 4243, + "end": 4244, + "loc": { + "start": { + "line": 141, + "column": 61 + }, + "end": { + "line": 141, + "column": 62 + } + } + }, + { + "type": { + "label": "num", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": 2, + "start": 4245, + "end": 4246, + "loc": { + "start": { + "line": 141, + "column": 63 + }, + "end": { + "line": 141, + "column": 64 + } + } + }, + { + "type": { + "label": "]", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 4246, + "end": 4247, + "loc": { + "start": { + "line": 141, + "column": 64 + }, + "end": { + "line": 141, + "column": 65 + } + } + }, + { + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 4247, + "end": 4248, + "loc": { + "start": { + "line": 141, + "column": 65 + }, + "end": { + "line": 141, + "column": 66 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "caretPos", + "start": 4249, + "end": 4257, + "loc": { + "start": { + "line": 141, + "column": 67 + }, + "end": { + "line": 141, + "column": 75 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 4257, + "end": 4258, + "loc": { + "start": { + "line": 141, + "column": 75 + }, + "end": { + "line": 141, + "column": 76 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 4258, + "end": 4259, + "loc": { + "start": { + "line": 141, + "column": 76 + }, + "end": { + "line": 141, + "column": 77 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 4265, + "end": 4266, + "loc": { + "start": { + "line": 142, + "column": 4 + }, + "end": { + "line": 142, + "column": 5 + } + } + }, + { + "type": { + "label": "else", + "keyword": "else", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "else", + "start": 4272, + "end": 4276, + "loc": { + "start": { + "line": 143, + "column": 4 + }, + "end": { + "line": 143, + "column": 8 + } + } + }, + { + "type": { + "label": "if", + "keyword": "if", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "if", + "start": 4277, + "end": 4279, + "loc": { + "start": { + "line": 143, + "column": 9 + }, + "end": { + "line": 143, + "column": 11 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 4279, + "end": 4280, + "loc": { + "start": { + "line": 143, + "column": 11 + }, + "end": { + "line": 143, + "column": 12 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "button", + "start": 4280, + "end": 4286, + "loc": { + "start": { + "line": 143, + "column": 12 + }, + "end": { + "line": 143, + "column": 18 + } + } + }, + { + "type": { + "label": "==/!=", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": 6, + "updateContext": null + }, + "value": "===", + "start": 4287, + "end": 4290, + "loc": { + "start": { + "line": 143, + "column": 19 + }, + "end": { + "line": 143, + "column": 22 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "{numpaddivide}", + "start": 4291, + "end": 4307, + "loc": { + "start": { + "line": 143, + "column": 23 + }, + "end": { + "line": 143, + "column": 39 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 4307, + "end": 4308, + "loc": { + "start": { + "line": 143, + "column": 39 + }, + "end": { + "line": 143, + "column": 40 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "output", + "start": 4316, + "end": 4322, + "loc": { + "start": { + "line": 144, + "column": 6 + }, + "end": { + "line": 144, + "column": 12 + } + } + }, + { + "type": { + "label": "=", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": true, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "=", + "start": 4323, + "end": 4324, + "loc": { + "start": { + "line": 144, + "column": 13 + }, + "end": { + "line": 144, + "column": 14 + } + } + }, + { + "type": { + "label": "this", + "keyword": "this", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "this", + "start": 4325, + "end": 4329, + "loc": { + "start": { + "line": 144, + "column": 15 + }, + "end": { + "line": 144, + "column": 19 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 4329, + "end": 4330, + "loc": { + "start": { + "line": 144, + "column": 19 + }, + "end": { + "line": 144, + "column": 20 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "addStringAt", + "start": 4330, + "end": 4341, + "loc": { + "start": { + "line": 144, + "column": 20 + }, + "end": { + "line": 144, + "column": 31 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 4341, + "end": 4342, + "loc": { + "start": { + "line": 144, + "column": 31 + }, + "end": { + "line": 144, + "column": 32 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "output", + "start": 4342, + "end": 4348, + "loc": { + "start": { + "line": 144, + "column": 32 + }, + "end": { + "line": 144, + "column": 38 + } + } + }, + { + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 4348, + "end": 4349, + "loc": { + "start": { + "line": 144, + "column": 38 + }, + "end": { + "line": 144, + "column": 39 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "/", + "start": 4350, + "end": 4353, + "loc": { + "start": { + "line": 144, + "column": 40 + }, + "end": { + "line": 144, + "column": 43 + } + } + }, + { + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 4353, + "end": 4354, + "loc": { + "start": { + "line": 144, + "column": 43 + }, + "end": { + "line": 144, + "column": 44 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "caretPos", + "start": 4355, + "end": 4363, + "loc": { + "start": { + "line": 144, + "column": 45 + }, + "end": { + "line": 144, + "column": 53 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 4363, + "end": 4364, + "loc": { + "start": { + "line": 144, + "column": 53 + }, + "end": { + "line": 144, + "column": 54 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 4364, + "end": 4365, + "loc": { + "start": { + "line": 144, + "column": 54 + }, + "end": { + "line": 144, + "column": 55 + } + } + }, + { + "type": { + "label": "else", + "keyword": "else", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "else", + "start": 4373, + "end": 4377, + "loc": { + "start": { + "line": 146, + "column": 4 + }, + "end": { + "line": 146, + "column": 8 + } + } + }, + { + "type": { + "label": "if", + "keyword": "if", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "if", + "start": 4378, + "end": 4380, + "loc": { + "start": { + "line": 146, + "column": 9 + }, + "end": { + "line": 146, + "column": 11 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 4380, + "end": 4381, + "loc": { + "start": { + "line": 146, + "column": 11 + }, + "end": { + "line": 146, + "column": 12 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "button", + "start": 4381, + "end": 4387, + "loc": { + "start": { + "line": 146, + "column": 12 + }, + "end": { + "line": 146, + "column": 18 + } + } + }, + { + "type": { + "label": "==/!=", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": 6, + "updateContext": null + }, + "value": "===", + "start": 4388, + "end": 4391, + "loc": { + "start": { + "line": 146, + "column": 19 + }, + "end": { + "line": 146, + "column": 22 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "{numpadmultiply}", + "start": 4392, + "end": 4410, + "loc": { + "start": { + "line": 146, + "column": 23 + }, + "end": { + "line": 146, + "column": 41 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 4410, + "end": 4411, + "loc": { + "start": { + "line": 146, + "column": 41 + }, + "end": { + "line": 146, + "column": 42 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "output", + "start": 4419, + "end": 4425, + "loc": { + "start": { + "line": 147, + "column": 6 + }, + "end": { + "line": 147, + "column": 12 + } + } + }, + { + "type": { + "label": "=", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": true, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "=", + "start": 4426, + "end": 4427, + "loc": { + "start": { + "line": 147, + "column": 13 + }, + "end": { + "line": 147, + "column": 14 + } + } + }, + { + "type": { + "label": "this", + "keyword": "this", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "this", + "start": 4428, + "end": 4432, + "loc": { + "start": { + "line": 147, + "column": 15 + }, + "end": { + "line": 147, + "column": 19 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 4432, + "end": 4433, + "loc": { + "start": { + "line": 147, + "column": 19 + }, + "end": { + "line": 147, + "column": 20 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "addStringAt", + "start": 4433, + "end": 4444, + "loc": { + "start": { + "line": 147, + "column": 20 + }, + "end": { + "line": 147, + "column": 31 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 4444, + "end": 4445, + "loc": { + "start": { + "line": 147, + "column": 31 + }, + "end": { + "line": 147, + "column": 32 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "output", + "start": 4445, + "end": 4451, + "loc": { + "start": { + "line": 147, + "column": 32 + }, + "end": { + "line": 147, + "column": 38 + } + } + }, + { + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 4451, + "end": 4452, + "loc": { + "start": { + "line": 147, + "column": 38 + }, + "end": { + "line": 147, + "column": 39 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "*", + "start": 4453, + "end": 4456, + "loc": { + "start": { + "line": 147, + "column": 40 + }, + "end": { + "line": 147, + "column": 43 + } + } + }, + { + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 4456, + "end": 4457, + "loc": { + "start": { + "line": 147, + "column": 43 + }, + "end": { + "line": 147, + "column": 44 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "caretPos", + "start": 4458, + "end": 4466, + "loc": { + "start": { + "line": 147, + "column": 45 + }, + "end": { + "line": 147, + "column": 53 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 4466, + "end": 4467, + "loc": { + "start": { + "line": 147, + "column": 53 + }, + "end": { + "line": 147, + "column": 54 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 4467, + "end": 4468, + "loc": { + "start": { + "line": 147, + "column": 54 + }, + "end": { + "line": 147, + "column": 55 + } + } + }, + { + "type": { + "label": "else", + "keyword": "else", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "else", + "start": 4474, + "end": 4478, + "loc": { + "start": { + "line": 148, + "column": 4 + }, + "end": { + "line": 148, + "column": 8 + } + } + }, + { + "type": { + "label": "if", + "keyword": "if", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "if", + "start": 4479, + "end": 4481, + "loc": { + "start": { + "line": 148, + "column": 9 + }, + "end": { + "line": 148, + "column": 11 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 4481, + "end": 4482, + "loc": { + "start": { + "line": 148, + "column": 11 + }, + "end": { + "line": 148, + "column": 12 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "button", + "start": 4482, + "end": 4488, + "loc": { + "start": { + "line": 148, + "column": 12 + }, + "end": { + "line": 148, + "column": 18 + } + } + }, + { + "type": { + "label": "==/!=", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": 6, + "updateContext": null + }, + "value": "===", + "start": 4489, + "end": 4492, + "loc": { + "start": { + "line": 148, + "column": 19 + }, + "end": { + "line": 148, + "column": 22 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "{numpadsubtract}", + "start": 4493, + "end": 4511, + "loc": { + "start": { + "line": 148, + "column": 23 + }, + "end": { + "line": 148, + "column": 41 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 4511, + "end": 4512, + "loc": { + "start": { + "line": 148, + "column": 41 + }, + "end": { + "line": 148, + "column": 42 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "output", + "start": 4520, + "end": 4526, + "loc": { + "start": { + "line": 149, + "column": 6 + }, + "end": { + "line": 149, + "column": 12 + } + } + }, + { + "type": { + "label": "=", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": true, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "=", + "start": 4527, + "end": 4528, + "loc": { + "start": { + "line": 149, + "column": 13 + }, + "end": { + "line": 149, + "column": 14 + } + } + }, + { + "type": { + "label": "this", + "keyword": "this", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "this", + "start": 4529, + "end": 4533, + "loc": { + "start": { + "line": 149, + "column": 15 + }, + "end": { + "line": 149, + "column": 19 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 4533, + "end": 4534, + "loc": { + "start": { + "line": 149, + "column": 19 + }, + "end": { + "line": 149, + "column": 20 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "addStringAt", + "start": 4534, + "end": 4545, + "loc": { + "start": { + "line": 149, + "column": 20 + }, + "end": { + "line": 149, + "column": 31 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 4545, + "end": 4546, + "loc": { + "start": { + "line": 149, + "column": 31 + }, + "end": { + "line": 149, + "column": 32 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "output", + "start": 4546, + "end": 4552, + "loc": { + "start": { + "line": 149, + "column": 32 + }, + "end": { + "line": 149, + "column": 38 + } + } + }, + { + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 4552, + "end": 4553, + "loc": { + "start": { + "line": 149, + "column": 38 + }, + "end": { + "line": 149, + "column": 39 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "-", + "start": 4554, + "end": 4557, + "loc": { + "start": { + "line": 149, + "column": 40 + }, + "end": { + "line": 149, + "column": 43 + } + } + }, + { + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 4557, + "end": 4558, + "loc": { + "start": { + "line": 149, + "column": 43 + }, + "end": { + "line": 149, + "column": 44 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "caretPos", + "start": 4559, + "end": 4567, + "loc": { + "start": { + "line": 149, + "column": 45 + }, + "end": { + "line": 149, + "column": 53 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 4567, + "end": 4568, + "loc": { + "start": { + "line": 149, + "column": 53 + }, + "end": { + "line": 149, + "column": 54 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 4568, + "end": 4569, + "loc": { + "start": { + "line": 149, + "column": 54 + }, + "end": { + "line": 149, + "column": 55 + } + } + }, + { + "type": { + "label": "else", + "keyword": "else", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "else", + "start": 4577, + "end": 4581, + "loc": { + "start": { + "line": 151, + "column": 4 + }, + "end": { + "line": 151, + "column": 8 + } + } + }, + { + "type": { + "label": "if", + "keyword": "if", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "if", + "start": 4582, + "end": 4584, + "loc": { + "start": { + "line": 151, + "column": 9 + }, + "end": { + "line": 151, + "column": 11 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 4584, + "end": 4585, + "loc": { + "start": { + "line": 151, + "column": 11 + }, + "end": { + "line": 151, + "column": 12 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "button", + "start": 4585, + "end": 4591, + "loc": { + "start": { + "line": 151, + "column": 12 + }, + "end": { + "line": 151, + "column": 18 + } + } + }, + { + "type": { + "label": "==/!=", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": 6, + "updateContext": null + }, + "value": "===", + "start": 4592, + "end": 4595, + "loc": { + "start": { + "line": 151, + "column": 19 + }, + "end": { + "line": 151, + "column": 22 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "{numpadadd}", + "start": 4596, + "end": 4609, + "loc": { + "start": { + "line": 151, + "column": 23 + }, + "end": { + "line": 151, + "column": 36 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 4609, + "end": 4610, + "loc": { + "start": { + "line": 151, + "column": 36 + }, + "end": { + "line": 151, + "column": 37 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "output", + "start": 4618, + "end": 4624, + "loc": { + "start": { + "line": 152, + "column": 6 + }, + "end": { + "line": 152, + "column": 12 + } + } + }, + { + "type": { + "label": "=", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": true, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "=", + "start": 4625, + "end": 4626, + "loc": { + "start": { + "line": 152, + "column": 13 + }, + "end": { + "line": 152, + "column": 14 + } + } + }, + { + "type": { + "label": "this", + "keyword": "this", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "this", + "start": 4627, + "end": 4631, + "loc": { + "start": { + "line": 152, + "column": 15 + }, + "end": { + "line": 152, + "column": 19 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 4631, + "end": 4632, + "loc": { + "start": { + "line": 152, + "column": 19 + }, + "end": { + "line": 152, + "column": 20 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "addStringAt", + "start": 4632, + "end": 4643, + "loc": { + "start": { + "line": 152, + "column": 20 + }, + "end": { + "line": 152, + "column": 31 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 4643, + "end": 4644, + "loc": { + "start": { + "line": 152, + "column": 31 + }, + "end": { + "line": 152, + "column": 32 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "output", + "start": 4644, + "end": 4650, + "loc": { + "start": { + "line": 152, + "column": 32 + }, + "end": { + "line": 152, + "column": 38 + } + } + }, + { + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 4650, + "end": 4651, + "loc": { + "start": { + "line": 152, + "column": 38 + }, + "end": { + "line": 152, + "column": 39 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "+", + "start": 4652, + "end": 4655, + "loc": { + "start": { + "line": 152, + "column": 40 + }, + "end": { + "line": 152, + "column": 43 + } + } + }, + { + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 4655, + "end": 4656, + "loc": { + "start": { + "line": 152, + "column": 43 + }, + "end": { + "line": 152, + "column": 44 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "caretPos", + "start": 4657, + "end": 4665, + "loc": { + "start": { + "line": 152, + "column": 45 + }, + "end": { + "line": 152, + "column": 53 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 4665, + "end": 4666, + "loc": { + "start": { + "line": 152, + "column": 53 + }, + "end": { + "line": 152, + "column": 54 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 4666, + "end": 4667, + "loc": { + "start": { + "line": 152, + "column": 54 + }, + "end": { + "line": 152, + "column": 55 + } + } + }, + { + "type": { + "label": "else", + "keyword": "else", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "else", + "start": 4675, + "end": 4679, + "loc": { + "start": { + "line": 154, + "column": 4 + }, + "end": { + "line": 154, + "column": 8 + } + } + }, + { + "type": { + "label": "if", + "keyword": "if", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "if", + "start": 4680, + "end": 4682, + "loc": { + "start": { + "line": 154, + "column": 9 + }, + "end": { + "line": 154, + "column": 11 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 4682, + "end": 4683, + "loc": { + "start": { + "line": 154, + "column": 11 + }, + "end": { + "line": 154, + "column": 12 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "button", + "start": 4683, + "end": 4689, + "loc": { + "start": { + "line": 154, + "column": 12 + }, + "end": { + "line": 154, + "column": 18 + } + } + }, + { + "type": { + "label": "==/!=", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": 6, + "updateContext": null + }, + "value": "===", + "start": 4690, + "end": 4693, + "loc": { + "start": { + "line": 154, + "column": 19 + }, + "end": { + "line": 154, + "column": 22 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "{numpaddecimal}", + "start": 4694, + "end": 4711, + "loc": { + "start": { + "line": 154, + "column": 23 + }, + "end": { + "line": 154, + "column": 40 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 4711, + "end": 4712, + "loc": { + "start": { + "line": 154, + "column": 40 + }, + "end": { + "line": 154, + "column": 41 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "output", + "start": 4720, + "end": 4726, + "loc": { + "start": { + "line": 155, + "column": 6 + }, + "end": { + "line": 155, + "column": 12 + } + } + }, + { + "type": { + "label": "=", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": true, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "=", + "start": 4727, + "end": 4728, + "loc": { + "start": { + "line": 155, + "column": 13 + }, + "end": { + "line": 155, + "column": 14 + } + } + }, + { + "type": { + "label": "this", + "keyword": "this", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "this", + "start": 4729, + "end": 4733, + "loc": { + "start": { + "line": 155, + "column": 15 + }, + "end": { + "line": 155, + "column": 19 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 4733, + "end": 4734, + "loc": { + "start": { + "line": 155, + "column": 19 + }, + "end": { + "line": 155, + "column": 20 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "addStringAt", + "start": 4734, + "end": 4745, + "loc": { + "start": { + "line": 155, + "column": 20 + }, + "end": { + "line": 155, + "column": 31 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 4745, + "end": 4746, + "loc": { + "start": { + "line": 155, + "column": 31 + }, + "end": { + "line": 155, + "column": 32 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "output", + "start": 4746, + "end": 4752, + "loc": { + "start": { + "line": 155, + "column": 32 + }, + "end": { + "line": 155, + "column": 38 + } + } + }, + { + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 4752, + "end": 4753, + "loc": { + "start": { + "line": 155, + "column": 38 + }, + "end": { + "line": 155, + "column": 39 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": ".", + "start": 4754, + "end": 4757, + "loc": { + "start": { + "line": 155, + "column": 40 + }, + "end": { + "line": 155, + "column": 43 + } + } + }, + { + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 4757, + "end": 4758, + "loc": { + "start": { + "line": 155, + "column": 43 + }, + "end": { + "line": 155, + "column": 44 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "caretPos", + "start": 4759, + "end": 4767, + "loc": { + "start": { + "line": 155, + "column": 45 + }, + "end": { + "line": 155, + "column": 53 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 4767, + "end": 4768, + "loc": { + "start": { + "line": 155, + "column": 53 + }, + "end": { + "line": 155, + "column": 54 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 4768, + "end": 4769, + "loc": { + "start": { + "line": 155, + "column": 54 + }, + "end": { + "line": 155, + "column": 55 + } + } + }, + { + "type": { + "label": "else", + "keyword": "else", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "else", + "start": 4777, + "end": 4781, + "loc": { + "start": { + "line": 157, + "column": 4 + }, + "end": { + "line": 157, + "column": 8 + } + } + }, + { + "type": { + "label": "if", + "keyword": "if", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "if", + "start": 4782, + "end": 4784, + "loc": { + "start": { + "line": 157, + "column": 9 + }, + "end": { + "line": 157, + "column": 11 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 4784, + "end": 4785, + "loc": { + "start": { + "line": 157, + "column": 11 + }, + "end": { + "line": 157, + "column": 12 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "button", + "start": 4785, + "end": 4791, + "loc": { + "start": { + "line": 157, + "column": 12 + }, + "end": { + "line": 157, + "column": 18 + } + } + }, + { + "type": { + "label": "==/!=", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": 6, + "updateContext": null + }, + "value": "===", + "start": 4792, + "end": 4795, + "loc": { + "start": { + "line": 157, + "column": 19 + }, + "end": { + "line": 157, + "column": 22 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "{", + "start": 4796, + "end": 4799, + "loc": { + "start": { + "line": 157, + "column": 23 + }, + "end": { + "line": 157, + "column": 26 + } + } + }, + { + "type": { + "label": "||", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": 1, + "updateContext": null + }, + "value": "||", + "start": 4800, + "end": 4802, + "loc": { + "start": { + "line": 157, + "column": 27 + }, + "end": { + "line": 157, + "column": 29 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "button", + "start": 4803, + "end": 4809, + "loc": { + "start": { + "line": 157, + "column": 30 + }, + "end": { + "line": 157, + "column": 36 + } + } + }, + { + "type": { + "label": "==/!=", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": 6, + "updateContext": null + }, + "value": "===", + "start": 4810, + "end": 4813, + "loc": { + "start": { + "line": 157, + "column": 37 + }, + "end": { + "line": 157, + "column": 40 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "}", + "start": 4814, + "end": 4817, + "loc": { + "start": { + "line": 157, + "column": 41 + }, + "end": { + "line": 157, + "column": 44 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 4817, + "end": 4818, + "loc": { + "start": { + "line": 157, + "column": 44 + }, + "end": { + "line": 157, + "column": 45 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "output", + "start": 4826, + "end": 4832, + "loc": { + "start": { + "line": 158, + "column": 6 + }, + "end": { + "line": 158, + "column": 12 + } + } + }, + { + "type": { + "label": "=", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": true, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "=", + "start": 4833, + "end": 4834, + "loc": { + "start": { + "line": 158, + "column": 13 + }, + "end": { + "line": 158, + "column": 14 + } + } + }, + { + "type": { + "label": "this", + "keyword": "this", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "this", + "start": 4835, + "end": 4839, + "loc": { + "start": { + "line": 158, + "column": 15 + }, + "end": { + "line": 158, + "column": 19 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 4839, + "end": 4840, + "loc": { + "start": { + "line": 158, + "column": 19 + }, + "end": { + "line": 158, + "column": 20 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "addStringAt", + "start": 4840, + "end": 4851, + "loc": { + "start": { + "line": 158, + "column": 20 + }, + "end": { + "line": 158, + "column": 31 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 4851, + "end": 4852, + "loc": { + "start": { + "line": 158, + "column": 31 + }, + "end": { + "line": 158, + "column": 32 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "output", + "start": 4852, + "end": 4858, + "loc": { + "start": { + "line": 158, + "column": 32 + }, + "end": { + "line": 158, + "column": 38 + } + } + }, + { + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 4858, + "end": 4859, + "loc": { + "start": { + "line": 158, + "column": 38 + }, + "end": { + "line": 158, + "column": 39 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "button", + "start": 4860, + "end": 4866, + "loc": { + "start": { + "line": 158, + "column": 40 + }, + "end": { + "line": 158, + "column": 46 + } + } + }, + { + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 4866, + "end": 4867, + "loc": { + "start": { + "line": 158, + "column": 46 + }, + "end": { + "line": 158, + "column": 47 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "caretPos", + "start": 4868, + "end": 4876, + "loc": { + "start": { + "line": 158, + "column": 48 + }, + "end": { + "line": 158, + "column": 56 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 4876, + "end": 4877, + "loc": { + "start": { + "line": 158, + "column": 56 + }, + "end": { + "line": 158, + "column": 57 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 4877, + "end": 4878, + "loc": { + "start": { + "line": 158, + "column": 57 + }, + "end": { + "line": 158, + "column": 58 + } + } + }, + { + "type": { + "label": "else", + "keyword": "else", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "else", + "start": 4886, + "end": 4890, + "loc": { + "start": { + "line": 160, + "column": 4 + }, + "end": { + "line": 160, + "column": 8 + } + } + }, + { + "type": { + "label": "if", + "keyword": "if", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "if", + "start": 4891, + "end": 4893, + "loc": { + "start": { + "line": 160, + "column": 9 + }, + "end": { + "line": 160, + "column": 11 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 4893, + "end": 4894, + "loc": { + "start": { + "line": 160, + "column": 11 + }, + "end": { + "line": 160, + "column": 12 + } + } + }, + { + "type": { + "label": "prefix", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": true, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "!", + "start": 4894, + "end": 4895, + "loc": { + "start": { + "line": 160, + "column": 12 + }, + "end": { + "line": 160, + "column": 13 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "button", + "start": 4895, + "end": 4901, + "loc": { + "start": { + "line": 160, + "column": 13 + }, + "end": { + "line": 160, + "column": 19 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 4901, + "end": 4902, + "loc": { + "start": { + "line": 160, + "column": 19 + }, + "end": { + "line": 160, + "column": 20 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "includes", + "start": 4902, + "end": 4910, + "loc": { + "start": { + "line": 160, + "column": 20 + }, + "end": { + "line": 160, + "column": 28 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 4910, + "end": 4911, + "loc": { + "start": { + "line": 160, + "column": 28 + }, + "end": { + "line": 160, + "column": 29 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "{", + "start": 4911, + "end": 4914, + "loc": { + "start": { + "line": 160, + "column": 29 + }, + "end": { + "line": 160, + "column": 32 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 4914, + "end": 4915, + "loc": { + "start": { + "line": 160, + "column": 32 + }, + "end": { + "line": 160, + "column": 33 + } + } + }, + { + "type": { + "label": "&&", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": 2, + "updateContext": null + }, + "value": "&&", + "start": 4916, + "end": 4918, + "loc": { + "start": { + "line": 160, + "column": 34 + }, + "end": { + "line": 160, + "column": 36 + } + } + }, + { + "type": { + "label": "prefix", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": true, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "!", + "start": 4919, + "end": 4920, + "loc": { + "start": { + "line": 160, + "column": 37 + }, + "end": { + "line": 160, + "column": 38 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "button", + "start": 4920, + "end": 4926, + "loc": { + "start": { + "line": 160, + "column": 38 + }, + "end": { + "line": 160, + "column": 44 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 4926, + "end": 4927, + "loc": { + "start": { + "line": 160, + "column": 44 + }, + "end": { + "line": 160, + "column": 45 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "includes", + "start": 4927, + "end": 4935, + "loc": { + "start": { + "line": 160, + "column": 45 + }, + "end": { + "line": 160, + "column": 53 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 4935, + "end": 4936, + "loc": { + "start": { + "line": 160, + "column": 53 + }, + "end": { + "line": 160, + "column": 54 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "}", + "start": 4936, + "end": 4939, + "loc": { + "start": { + "line": 160, + "column": 54 + }, + "end": { + "line": 160, + "column": 57 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 4939, + "end": 4940, + "loc": { + "start": { + "line": 160, + "column": 57 + }, + "end": { + "line": 160, + "column": 58 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 4940, + "end": 4941, + "loc": { + "start": { + "line": 160, + "column": 58 + }, + "end": { + "line": 160, + "column": 59 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "output", + "start": 4949, + "end": 4955, + "loc": { + "start": { + "line": 161, + "column": 6 + }, + "end": { + "line": 161, + "column": 12 + } + } + }, + { + "type": { + "label": "=", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": true, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "=", + "start": 4956, + "end": 4957, + "loc": { + "start": { + "line": 161, + "column": 13 + }, + "end": { + "line": 161, + "column": 14 + } + } + }, + { + "type": { + "label": "this", + "keyword": "this", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "this", + "start": 4958, + "end": 4962, + "loc": { + "start": { + "line": 161, + "column": 15 + }, + "end": { + "line": 161, + "column": 19 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 4962, + "end": 4963, + "loc": { + "start": { + "line": 161, + "column": 19 + }, + "end": { + "line": 161, + "column": 20 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "addStringAt", + "start": 4963, + "end": 4974, + "loc": { + "start": { + "line": 161, + "column": 20 + }, + "end": { + "line": 161, + "column": 31 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 4974, + "end": 4975, + "loc": { + "start": { + "line": 161, + "column": 31 + }, + "end": { + "line": 161, + "column": 32 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "output", + "start": 4975, + "end": 4981, + "loc": { + "start": { + "line": 161, + "column": 32 + }, + "end": { + "line": 161, + "column": 38 + } + } + }, + { + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 4981, + "end": 4982, + "loc": { + "start": { + "line": 161, + "column": 38 + }, + "end": { + "line": 161, + "column": 39 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "button", + "start": 4983, + "end": 4989, + "loc": { + "start": { + "line": 161, + "column": 40 + }, + "end": { + "line": 161, + "column": 46 + } + } + }, + { + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 4989, + "end": 4990, + "loc": { + "start": { + "line": 161, + "column": 46 + }, + "end": { + "line": 161, + "column": 47 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "caretPos", + "start": 4991, + "end": 4999, + "loc": { + "start": { + "line": 161, + "column": 48 + }, + "end": { + "line": 161, + "column": 56 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 4999, + "end": 5000, + "loc": { + "start": { + "line": 161, + "column": 56 + }, + "end": { + "line": 161, + "column": 57 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 5000, + "end": 5001, + "loc": { + "start": { + "line": 161, + "column": 57 + }, + "end": { + "line": 161, + "column": 58 + } + } + }, + { + "type": { + "label": "return", + "keyword": "return", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "return", + "start": 5009, + "end": 5015, + "loc": { + "start": { + "line": 163, + "column": 4 + }, + "end": { + "line": 163, + "column": 10 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "output", + "start": 5016, + "end": 5022, + "loc": { + "start": { + "line": 163, + "column": 11 + }, + "end": { + "line": 163, + "column": 17 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 5022, + "end": 5023, + "loc": { + "start": { + "line": 163, + "column": 17 + }, + "end": { + "line": 163, + "column": 18 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 5027, + "end": 5028, + "loc": { + "start": { + "line": 164, + "column": 2 + }, + "end": { + "line": 164, + "column": 3 + } + } + }, + { + "type": "CommentBlock", + "value": "*\r\n * Moves the cursor position by a given amount\r\n * \r\n * @param {number} length Represents by how many characters the input should be moved\r\n * @param {boolean} minus Whether the cursor should be moved to the left or not.\r\n ", + "start": 5032, + "end": 5274, + "loc": { + "start": { + "line": 165, + "column": 2 + }, + "end": { + "line": 170, + "column": 5 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "updateCaretPos", + "start": 5278, + "end": 5292, + "loc": { + "start": { + "line": 171, + "column": 2 + }, + "end": { + "line": 171, + "column": 16 + } + } + }, + { + "type": { + "label": "=", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": true, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "=", + "start": 5293, + "end": 5294, + "loc": { + "start": { + "line": 171, + "column": 17 + }, + "end": { + "line": 171, + "column": 18 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 5295, + "end": 5296, + "loc": { + "start": { + "line": 171, + "column": 19 + }, + "end": { + "line": 171, + "column": 20 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "length", + "start": 5296, + "end": 5302, + "loc": { + "start": { + "line": 171, + "column": 20 + }, + "end": { + "line": 171, + "column": 26 + } + } + }, + { + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 5302, + "end": 5303, + "loc": { + "start": { + "line": 171, + "column": 26 + }, + "end": { + "line": 171, + "column": 27 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "minus", + "start": 5304, + "end": 5309, + "loc": { + "start": { + "line": 171, + "column": 28 + }, + "end": { + "line": 171, + "column": 33 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 5309, + "end": 5310, + "loc": { + "start": { + "line": 171, + "column": 33 + }, + "end": { + "line": 171, + "column": 34 + } + } + }, + { + "type": { + "label": "=>", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 5311, + "end": 5313, + "loc": { + "start": { + "line": 171, + "column": 35 + }, + "end": { + "line": 171, + "column": 37 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 5314, + "end": 5315, + "loc": { + "start": { + "line": 171, + "column": 38 + }, + "end": { + "line": 171, + "column": 39 + } + } + }, + { + "type": { + "label": "if", + "keyword": "if", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "if", + "start": 5321, + "end": 5323, + "loc": { + "start": { + "line": 172, + "column": 4 + }, + "end": { + "line": 172, + "column": 6 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 5323, + "end": 5324, + "loc": { + "start": { + "line": 172, + "column": 6 + }, + "end": { + "line": 172, + "column": 7 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "minus", + "start": 5324, + "end": 5329, + "loc": { + "start": { + "line": 172, + "column": 7 + }, + "end": { + "line": 172, + "column": 12 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 5329, + "end": 5330, + "loc": { + "start": { + "line": 172, + "column": 12 + }, + "end": { + "line": 172, + "column": 13 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 5330, + "end": 5331, + "loc": { + "start": { + "line": 172, + "column": 13 + }, + "end": { + "line": 172, + "column": 14 + } + } + }, + { + "type": { + "label": "if", + "keyword": "if", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "if", + "start": 5339, + "end": 5341, + "loc": { + "start": { + "line": 173, + "column": 6 + }, + "end": { + "line": 173, + "column": 8 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 5341, + "end": 5342, + "loc": { + "start": { + "line": 173, + "column": 8 + }, + "end": { + "line": 173, + "column": 9 + } + } + }, + { + "type": { + "label": "this", + "keyword": "this", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "this", + "start": 5342, + "end": 5346, + "loc": { + "start": { + "line": 173, + "column": 9 + }, + "end": { + "line": 173, + "column": 13 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 5346, + "end": 5347, + "loc": { + "start": { + "line": 173, + "column": 13 + }, + "end": { + "line": 173, + "column": 14 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "simpleKeyboardInstance", + "start": 5347, + "end": 5369, + "loc": { + "start": { + "line": 173, + "column": 14 + }, + "end": { + "line": 173, + "column": 36 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 5369, + "end": 5370, + "loc": { + "start": { + "line": 173, + "column": 36 + }, + "end": { + "line": 173, + "column": 37 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "caretPosition", + "start": 5370, + "end": 5383, + "loc": { + "start": { + "line": 173, + "column": 37 + }, + "end": { + "line": 173, + "column": 50 + } + } + }, + { + "type": { + "label": "", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": 7, + "updateContext": null + }, + "value": ">", + "start": 5384, + "end": 5385, + "loc": { + "start": { + "line": 173, + "column": 51 + }, + "end": { + "line": 173, + "column": 52 + } + } + }, + { + "type": { + "label": "num", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": 0, + "start": 5386, + "end": 5387, + "loc": { + "start": { + "line": 173, + "column": 53 + }, + "end": { + "line": 173, + "column": 54 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 5387, + "end": 5388, + "loc": { + "start": { + "line": 173, + "column": 54 + }, + "end": { + "line": 173, + "column": 55 + } + } + }, + { + "type": { + "label": "this", + "keyword": "this", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "this", + "start": 5398, + "end": 5402, + "loc": { + "start": { + "line": 174, + "column": 8 + }, + "end": { + "line": 174, + "column": 12 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 5402, + "end": 5403, + "loc": { + "start": { + "line": 174, + "column": 12 + }, + "end": { + "line": 174, + "column": 13 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "simpleKeyboardInstance", + "start": 5403, + "end": 5425, + "loc": { + "start": { + "line": 174, + "column": 13 + }, + "end": { + "line": 174, + "column": 35 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 5425, + "end": 5426, + "loc": { + "start": { + "line": 174, + "column": 35 + }, + "end": { + "line": 174, + "column": 36 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "caretPosition", + "start": 5426, + "end": 5439, + "loc": { + "start": { + "line": 174, + "column": 36 + }, + "end": { + "line": 174, + "column": 49 + } + } + }, + { + "type": { + "label": "=", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": true, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "=", + "start": 5440, + "end": 5441, + "loc": { + "start": { + "line": 174, + "column": 50 + }, + "end": { + "line": 174, + "column": 51 + } + } + }, + { + "type": { + "label": "this", + "keyword": "this", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "this", + "start": 5442, + "end": 5446, + "loc": { + "start": { + "line": 174, + "column": 52 + }, + "end": { + "line": 174, + "column": 56 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 5446, + "end": 5447, + "loc": { + "start": { + "line": 174, + "column": 56 + }, + "end": { + "line": 174, + "column": 57 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "simpleKeyboardInstance", + "start": 5447, + "end": 5469, + "loc": { + "start": { + "line": 174, + "column": 57 + }, + "end": { + "line": 174, + "column": 79 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 5469, + "end": 5470, + "loc": { + "start": { + "line": 174, + "column": 79 + }, + "end": { + "line": 174, + "column": 80 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "caretPosition", + "start": 5470, + "end": 5483, + "loc": { + "start": { + "line": 174, + "column": 80 + }, + "end": { + "line": 174, + "column": 93 + } + } + }, + { + "type": { + "label": "+/-", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": true, + "postfix": false, + "binop": 9, + "updateContext": null + }, + "value": "-", + "start": 5484, + "end": 5485, + "loc": { + "start": { + "line": 174, + "column": 94 + }, + "end": { + "line": 174, + "column": 95 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "length", + "start": 5486, + "end": 5492, + "loc": { + "start": { + "line": 174, + "column": 96 + }, + "end": { + "line": 174, + "column": 102 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 5498, + "end": 5499, + "loc": { + "start": { + "line": 175, + "column": 4 + }, + "end": { + "line": 175, + "column": 5 + } + } + }, + { + "type": { + "label": "else", + "keyword": "else", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "else", + "start": 5500, + "end": 5504, + "loc": { + "start": { + "line": 175, + "column": 6 + }, + "end": { + "line": 175, + "column": 10 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 5505, + "end": 5506, + "loc": { + "start": { + "line": 175, + "column": 11 + }, + "end": { + "line": 175, + "column": 12 + } + } + }, + { + "type": { + "label": "this", + "keyword": "this", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "this", + "start": 5514, + "end": 5518, + "loc": { + "start": { + "line": 176, + "column": 6 + }, + "end": { + "line": 176, + "column": 10 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 5518, + "end": 5519, + "loc": { + "start": { + "line": 176, + "column": 10 + }, + "end": { + "line": 176, + "column": 11 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "simpleKeyboardInstance", + "start": 5519, + "end": 5541, + "loc": { + "start": { + "line": 176, + "column": 11 + }, + "end": { + "line": 176, + "column": 33 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 5541, + "end": 5542, + "loc": { + "start": { + "line": 176, + "column": 33 + }, + "end": { + "line": 176, + "column": 34 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "caretPosition", + "start": 5542, + "end": 5555, + "loc": { + "start": { + "line": 176, + "column": 34 + }, + "end": { + "line": 176, + "column": 47 + } + } + }, + { + "type": { + "label": "=", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": true, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "=", + "start": 5556, + "end": 5557, + "loc": { + "start": { + "line": 176, + "column": 48 + }, + "end": { + "line": 176, + "column": 49 + } + } + }, + { + "type": { + "label": "this", + "keyword": "this", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "this", + "start": 5558, + "end": 5562, + "loc": { + "start": { + "line": 176, + "column": 50 + }, + "end": { + "line": 176, + "column": 54 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 5562, + "end": 5563, + "loc": { + "start": { + "line": 176, + "column": 54 + }, + "end": { + "line": 176, + "column": 55 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "simpleKeyboardInstance", + "start": 5563, + "end": 5585, + "loc": { + "start": { + "line": 176, + "column": 55 + }, + "end": { + "line": 176, + "column": 77 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 5585, + "end": 5586, + "loc": { + "start": { + "line": 176, + "column": 77 + }, + "end": { + "line": 176, + "column": 78 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "caretPosition", + "start": 5586, + "end": 5599, + "loc": { + "start": { + "line": 176, + "column": 78 + }, + "end": { + "line": 176, + "column": 91 + } + } + }, + { + "type": { + "label": "+/-", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": true, + "postfix": false, + "binop": 9, + "updateContext": null + }, + "value": "+", + "start": 5600, + "end": 5601, + "loc": { + "start": { + "line": 176, + "column": 92 + }, + "end": { + "line": 176, + "column": 93 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "length", + "start": 5602, + "end": 5608, + "loc": { + "start": { + "line": 176, + "column": 94 + }, + "end": { + "line": 176, + "column": 100 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 5608, + "end": 5609, + "loc": { + "start": { + "line": 176, + "column": 100 + }, + "end": { + "line": 176, + "column": 101 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 5615, + "end": 5616, + "loc": { + "start": { + "line": 177, + "column": 4 + }, + "end": { + "line": 177, + "column": 5 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 5620, + "end": 5621, + "loc": { + "start": { + "line": 178, + "column": 2 + }, + "end": { + "line": 178, + "column": 3 + } + } + }, + { + "type": "CommentBlock", + "value": "*\r\n * Adds a string to the input at a given position\r\n * \r\n * @param {string} source The source input\r\n * @param {string} string The string to add\r\n * @param {number} position The (cursor) position where the string should be added\r\n ", + "start": 5627, + "end": 5879, + "loc": { + "start": { + "line": 180, + "column": 2 + }, + "end": { + "line": 186, + "column": 5 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "addStringAt", + "start": 5883, + "end": 5894, + "loc": { + "start": { + "line": 187, + "column": 2 + }, + "end": { + "line": 187, + "column": 13 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 5894, + "end": 5895, + "loc": { + "start": { + "line": 187, + "column": 13 + }, + "end": { + "line": 187, + "column": 14 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "source", + "start": 5895, + "end": 5901, + "loc": { + "start": { + "line": 187, + "column": 14 + }, + "end": { + "line": 187, + "column": 20 + } + } + }, + { + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 5901, + "end": 5902, + "loc": { + "start": { + "line": 187, + "column": 20 + }, + "end": { + "line": 187, + "column": 21 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "string", + "start": 5903, + "end": 5909, + "loc": { + "start": { + "line": 187, + "column": 22 + }, + "end": { + "line": 187, + "column": 28 + } + } + }, + { + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 5909, + "end": 5910, + "loc": { + "start": { + "line": 187, + "column": 28 + }, + "end": { + "line": 187, + "column": 29 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "position", + "start": 5911, + "end": 5919, + "loc": { + "start": { + "line": 187, + "column": 30 + }, + "end": { + "line": 187, + "column": 38 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 5919, + "end": 5920, + "loc": { + "start": { + "line": 187, + "column": 38 + }, + "end": { + "line": 187, + "column": 39 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 5920, + "end": 5921, + "loc": { + "start": { + "line": 187, + "column": 39 + }, + "end": { + "line": 187, + "column": 40 + } + } + }, + { + "type": { + "label": "let", + "keyword": "let", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "let", + "start": 5927, + "end": 5930, + "loc": { + "start": { + "line": 188, + "column": 4 + }, + "end": { + "line": 188, + "column": 7 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "output", + "start": 5931, + "end": 5937, + "loc": { + "start": { + "line": 188, + "column": 8 + }, + "end": { + "line": 188, + "column": 14 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 5937, + "end": 5938, + "loc": { + "start": { + "line": 188, + "column": 14 + }, + "end": { + "line": 188, + "column": 15 + } + } + }, + { + "type": { + "label": "if", + "keyword": "if", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "if", + "start": 5946, + "end": 5948, + "loc": { + "start": { + "line": 190, + "column": 4 + }, + "end": { + "line": 190, + "column": 6 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 5948, + "end": 5949, + "loc": { + "start": { + "line": 190, + "column": 6 + }, + "end": { + "line": 190, + "column": 7 + } + } + }, + { + "type": { + "label": "this", + "keyword": "this", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "this", + "start": 5949, + "end": 5953, + "loc": { + "start": { + "line": 190, + "column": 7 + }, + "end": { + "line": 190, + "column": 11 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 5953, + "end": 5954, + "loc": { + "start": { + "line": 190, + "column": 11 + }, + "end": { + "line": 190, + "column": 12 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "simpleKeyboardInstance", + "start": 5954, + "end": 5976, + "loc": { + "start": { + "line": 190, + "column": 12 + }, + "end": { + "line": 190, + "column": 34 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 5976, + "end": 5977, + "loc": { + "start": { + "line": 190, + "column": 34 + }, + "end": { + "line": 190, + "column": 35 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "options", + "start": 5977, + "end": 5984, + "loc": { + "start": { + "line": 190, + "column": 35 + }, + "end": { + "line": 190, + "column": 42 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 5984, + "end": 5985, + "loc": { + "start": { + "line": 190, + "column": 42 + }, + "end": { + "line": 190, + "column": 43 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "debug", + "start": 5985, + "end": 5990, + "loc": { + "start": { + "line": 190, + "column": 43 + }, + "end": { + "line": 190, + "column": 48 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 5990, + "end": 5991, + "loc": { + "start": { + "line": 190, + "column": 48 + }, + "end": { + "line": 190, + "column": 49 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 5991, + "end": 5992, + "loc": { + "start": { + "line": 190, + "column": 49 + }, + "end": { + "line": 190, + "column": 50 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "console", + "start": 6000, + "end": 6007, + "loc": { + "start": { + "line": 191, + "column": 6 + }, + "end": { + "line": 191, + "column": 13 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 6007, + "end": 6008, + "loc": { + "start": { + "line": 191, + "column": 13 + }, + "end": { + "line": 191, + "column": 14 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "log", + "start": 6008, + "end": 6011, + "loc": { + "start": { + "line": 191, + "column": 14 + }, + "end": { + "line": 191, + "column": 17 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 6011, + "end": 6012, + "loc": { + "start": { + "line": 191, + "column": 17 + }, + "end": { + "line": 191, + "column": 18 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "Caret at:", + "start": 6012, + "end": 6023, + "loc": { + "start": { + "line": 191, + "column": 18 + }, + "end": { + "line": 191, + "column": 29 + } + } + }, + { + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 6023, + "end": 6024, + "loc": { + "start": { + "line": 191, + "column": 29 + }, + "end": { + "line": 191, + "column": 30 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "position", + "start": 6025, + "end": 6033, + "loc": { + "start": { + "line": 191, + "column": 31 + }, + "end": { + "line": 191, + "column": 39 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 6033, + "end": 6034, + "loc": { + "start": { + "line": 191, + "column": 39 + }, + "end": { + "line": 191, + "column": 40 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 6034, + "end": 6035, + "loc": { + "start": { + "line": 191, + "column": 40 + }, + "end": { + "line": 191, + "column": 41 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 6041, + "end": 6042, + "loc": { + "start": { + "line": 192, + "column": 4 + }, + "end": { + "line": 192, + "column": 5 + } + } + }, + { + "type": { + "label": "if", + "keyword": "if", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "if", + "start": 6050, + "end": 6052, + "loc": { + "start": { + "line": 194, + "column": 4 + }, + "end": { + "line": 194, + "column": 6 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 6052, + "end": 6053, + "loc": { + "start": { + "line": 194, + "column": 6 + }, + "end": { + "line": 194, + "column": 7 + } + } + }, + { + "type": { + "label": "prefix", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": true, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "!", + "start": 6053, + "end": 6054, + "loc": { + "start": { + "line": 194, + "column": 7 + }, + "end": { + "line": 194, + "column": 8 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "position", + "start": 6054, + "end": 6062, + "loc": { + "start": { + "line": 194, + "column": 8 + }, + "end": { + "line": 194, + "column": 16 + } + } + }, + { + "type": { + "label": "&&", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": 2, + "updateContext": null + }, + "value": "&&", + "start": 6063, + "end": 6065, + "loc": { + "start": { + "line": 194, + "column": 17 + }, + "end": { + "line": 194, + "column": 19 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "position", + "start": 6066, + "end": 6074, + "loc": { + "start": { + "line": 194, + "column": 20 + }, + "end": { + "line": 194, + "column": 28 + } + } + }, + { + "type": { + "label": "==/!=", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": 6, + "updateContext": null + }, + "value": "!==", + "start": 6075, + "end": 6078, + "loc": { + "start": { + "line": 194, + "column": 29 + }, + "end": { + "line": 194, + "column": 32 + } + } + }, + { + "type": { + "label": "num", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": 0, + "start": 6079, + "end": 6080, + "loc": { + "start": { + "line": 194, + "column": 33 + }, + "end": { + "line": 194, + "column": 34 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 6080, + "end": 6081, + "loc": { + "start": { + "line": 194, + "column": 34 + }, + "end": { + "line": 194, + "column": 35 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 6081, + "end": 6082, + "loc": { + "start": { + "line": 194, + "column": 35 + }, + "end": { + "line": 194, + "column": 36 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "output", + "start": 6090, + "end": 6096, + "loc": { + "start": { + "line": 195, + "column": 6 + }, + "end": { + "line": 195, + "column": 12 + } + } + }, + { + "type": { + "label": "=", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": true, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "=", + "start": 6097, + "end": 6098, + "loc": { + "start": { + "line": 195, + "column": 13 + }, + "end": { + "line": 195, + "column": 14 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "source", + "start": 6099, + "end": 6105, + "loc": { + "start": { + "line": 195, + "column": 15 + }, + "end": { + "line": 195, + "column": 21 + } + } + }, + { + "type": { + "label": "+/-", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": true, + "postfix": false, + "binop": 9, + "updateContext": null + }, + "value": "+", + "start": 6106, + "end": 6107, + "loc": { + "start": { + "line": 195, + "column": 22 + }, + "end": { + "line": 195, + "column": 23 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "string", + "start": 6108, + "end": 6114, + "loc": { + "start": { + "line": 195, + "column": 24 + }, + "end": { + "line": 195, + "column": 30 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 6114, + "end": 6115, + "loc": { + "start": { + "line": 195, + "column": 30 + }, + "end": { + "line": 195, + "column": 31 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 6121, + "end": 6122, + "loc": { + "start": { + "line": 196, + "column": 4 + }, + "end": { + "line": 196, + "column": 5 + } + } + }, + { + "type": { + "label": "else", + "keyword": "else", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "else", + "start": 6123, + "end": 6127, + "loc": { + "start": { + "line": 196, + "column": 6 + }, + "end": { + "line": 196, + "column": 10 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 6128, + "end": 6129, + "loc": { + "start": { + "line": 196, + "column": 11 + }, + "end": { + "line": 196, + "column": 12 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "output", + "start": 6137, + "end": 6143, + "loc": { + "start": { + "line": 197, + "column": 6 + }, + "end": { + "line": 197, + "column": 12 + } + } + }, + { + "type": { + "label": "=", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": true, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "=", + "start": 6144, + "end": 6145, + "loc": { + "start": { + "line": 197, + "column": 13 + }, + "end": { + "line": 197, + "column": 14 + } + } + }, + { + "type": { + "label": "[", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 6146, + "end": 6147, + "loc": { + "start": { + "line": 197, + "column": 15 + }, + "end": { + "line": 197, + "column": 16 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "source", + "start": 6147, + "end": 6153, + "loc": { + "start": { + "line": 197, + "column": 16 + }, + "end": { + "line": 197, + "column": 22 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 6153, + "end": 6154, + "loc": { + "start": { + "line": 197, + "column": 22 + }, + "end": { + "line": 197, + "column": 23 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "slice", + "start": 6154, + "end": 6159, + "loc": { + "start": { + "line": 197, + "column": 23 + }, + "end": { + "line": 197, + "column": 28 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 6159, + "end": 6160, + "loc": { + "start": { + "line": 197, + "column": 28 + }, + "end": { + "line": 197, + "column": 29 + } + } + }, + { + "type": { + "label": "num", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": 0, + "start": 6160, + "end": 6161, + "loc": { + "start": { + "line": 197, + "column": 29 + }, + "end": { + "line": 197, + "column": 30 + } + } + }, + { + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 6161, + "end": 6162, + "loc": { + "start": { + "line": 197, + "column": 30 + }, + "end": { + "line": 197, + "column": 31 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "position", + "start": 6163, + "end": 6171, + "loc": { + "start": { + "line": 197, + "column": 32 + }, + "end": { + "line": 197, + "column": 40 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 6171, + "end": 6172, + "loc": { + "start": { + "line": 197, + "column": 40 + }, + "end": { + "line": 197, + "column": 41 + } + } + }, + { + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 6172, + "end": 6173, + "loc": { + "start": { + "line": 197, + "column": 41 + }, + "end": { + "line": 197, + "column": 42 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "string", + "start": 6174, + "end": 6180, + "loc": { + "start": { + "line": 197, + "column": 43 + }, + "end": { + "line": 197, + "column": 49 + } + } + }, + { + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 6180, + "end": 6181, + "loc": { + "start": { + "line": 197, + "column": 49 + }, + "end": { + "line": 197, + "column": 50 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "source", + "start": 6182, + "end": 6188, + "loc": { + "start": { + "line": 197, + "column": 51 + }, + "end": { + "line": 197, + "column": 57 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 6188, + "end": 6189, + "loc": { + "start": { + "line": 197, + "column": 57 + }, + "end": { + "line": 197, + "column": 58 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "slice", + "start": 6189, + "end": 6194, + "loc": { + "start": { + "line": 197, + "column": 58 + }, + "end": { + "line": 197, + "column": 63 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 6194, + "end": 6195, + "loc": { + "start": { + "line": 197, + "column": 63 + }, + "end": { + "line": 197, + "column": 64 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "position", + "start": 6195, + "end": 6203, + "loc": { + "start": { + "line": 197, + "column": 64 + }, + "end": { + "line": 197, + "column": 72 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 6203, + "end": 6204, + "loc": { + "start": { + "line": 197, + "column": 72 + }, + "end": { + "line": 197, + "column": 73 + } + } + }, + { + "type": { + "label": "]", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 6204, + "end": 6205, + "loc": { + "start": { + "line": 197, + "column": 73 + }, + "end": { + "line": 197, + "column": 74 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 6205, + "end": 6206, + "loc": { + "start": { + "line": 197, + "column": 74 + }, + "end": { + "line": 197, + "column": 75 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "join", + "start": 6206, + "end": 6210, + "loc": { + "start": { + "line": 197, + "column": 75 + }, + "end": { + "line": 197, + "column": 79 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 6210, + "end": 6211, + "loc": { + "start": { + "line": 197, + "column": 79 + }, + "end": { + "line": 197, + "column": 80 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "", + "start": 6211, + "end": 6213, + "loc": { + "start": { + "line": 197, + "column": 80 + }, + "end": { + "line": 197, + "column": 82 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 6213, + "end": 6214, + "loc": { + "start": { + "line": 197, + "column": 82 + }, + "end": { + "line": 197, + "column": 83 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 6214, + "end": 6215, + "loc": { + "start": { + "line": 197, + "column": 83 + }, + "end": { + "line": 197, + "column": 84 + } + } + }, + { + "type": "CommentBlock", + "value": "*\r\n * Avoid caret position change when maxLength is set\r\n ", + "start": 6225, + "end": 6299, + "loc": { + "start": { + "line": 199, + "column": 6 + }, + "end": { + "line": 201, + "column": 9 + } + } + }, + { + "type": { + "label": "if", + "keyword": "if", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "if", + "start": 6307, + "end": 6309, + "loc": { + "start": { + "line": 202, + "column": 6 + }, + "end": { + "line": 202, + "column": 8 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 6309, + "end": 6310, + "loc": { + "start": { + "line": 202, + "column": 8 + }, + "end": { + "line": 202, + "column": 9 + } + } + }, + { + "type": { + "label": "prefix", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": true, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "!", + "start": 6310, + "end": 6311, + "loc": { + "start": { + "line": 202, + "column": 9 + }, + "end": { + "line": 202, + "column": 10 + } + } + }, + { + "type": { + "label": "this", + "keyword": "this", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "this", + "start": 6311, + "end": 6315, + "loc": { + "start": { + "line": 202, + "column": 10 + }, + "end": { + "line": 202, + "column": 14 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 6315, + "end": 6316, + "loc": { + "start": { + "line": 202, + "column": 14 + }, + "end": { + "line": 202, + "column": 15 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "isMaxLengthReached", + "start": 6316, + "end": 6334, + "loc": { + "start": { + "line": 202, + "column": 15 + }, + "end": { + "line": 202, + "column": 33 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 6334, + "end": 6335, + "loc": { + "start": { + "line": 202, + "column": 33 + }, + "end": { + "line": 202, + "column": 34 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 6335, + "end": 6336, + "loc": { + "start": { + "line": 202, + "column": 34 + }, + "end": { + "line": 202, + "column": 35 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 6336, + "end": 6337, + "loc": { + "start": { + "line": 202, + "column": 35 + }, + "end": { + "line": 202, + "column": 36 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 6337, + "end": 6338, + "loc": { + "start": { + "line": 202, + "column": 36 + }, + "end": { + "line": 202, + "column": 37 + } + } + }, + { + "type": { + "label": "this", + "keyword": "this", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "this", + "start": 6348, + "end": 6352, + "loc": { + "start": { + "line": 203, + "column": 8 + }, + "end": { + "line": 203, + "column": 12 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 6352, + "end": 6353, + "loc": { + "start": { + "line": 203, + "column": 12 + }, + "end": { + "line": 203, + "column": 13 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "updateCaretPos", + "start": 6353, + "end": 6367, + "loc": { + "start": { + "line": 203, + "column": 13 + }, + "end": { + "line": 203, + "column": 27 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 6367, + "end": 6368, + "loc": { + "start": { + "line": 203, + "column": 27 + }, + "end": { + "line": 203, + "column": 28 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "string", + "start": 6368, + "end": 6374, + "loc": { + "start": { + "line": 203, + "column": 28 + }, + "end": { + "line": 203, + "column": 34 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 6374, + "end": 6375, + "loc": { + "start": { + "line": 203, + "column": 34 + }, + "end": { + "line": 203, + "column": 35 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "length", + "start": 6375, + "end": 6381, + "loc": { + "start": { + "line": 203, + "column": 35 + }, + "end": { + "line": 203, + "column": 41 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 6381, + "end": 6382, + "loc": { + "start": { + "line": 203, + "column": 41 + }, + "end": { + "line": 203, + "column": 42 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 6382, + "end": 6383, + "loc": { + "start": { + "line": 203, + "column": 42 + }, + "end": { + "line": 203, + "column": 43 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 6391, + "end": 6392, + "loc": { + "start": { + "line": 204, + "column": 6 + }, + "end": { + "line": 204, + "column": 7 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 6400, + "end": 6401, + "loc": { + "start": { + "line": 206, + "column": 4 + }, + "end": { + "line": 206, + "column": 5 + } + } + }, + { + "type": { + "label": "return", + "keyword": "return", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "return", + "start": 6409, + "end": 6415, + "loc": { + "start": { + "line": 208, + "column": 4 + }, + "end": { + "line": 208, + "column": 10 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "output", + "start": 6416, + "end": 6422, + "loc": { + "start": { + "line": 208, + "column": 11 + }, + "end": { + "line": 208, + "column": 17 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 6422, + "end": 6423, + "loc": { + "start": { + "line": 208, + "column": 17 + }, + "end": { + "line": 208, + "column": 18 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 6427, + "end": 6428, + "loc": { + "start": { + "line": 209, + "column": 2 + }, + "end": { + "line": 209, + "column": 3 + } + } + }, + { + "type": "CommentBlock", + "value": "*\r\n * Removes an amount of characters at a given position\r\n * \r\n * @param {string} source The source input\r\n * @param {number} position The (cursor) position from where the characters should be removed\r\n ", + "start": 6434, + "end": 6654, + "loc": { + "start": { + "line": 211, + "column": 2 + }, + "end": { + "line": 216, + "column": 5 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "removeAt", + "start": 6658, + "end": 6666, + "loc": { + "start": { + "line": 217, + "column": 2 + }, + "end": { + "line": 217, + "column": 10 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 6666, + "end": 6667, + "loc": { + "start": { + "line": 217, + "column": 10 + }, + "end": { + "line": 217, + "column": 11 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "source", + "start": 6667, + "end": 6673, + "loc": { + "start": { + "line": 217, + "column": 11 + }, + "end": { + "line": 217, + "column": 17 + } + } + }, + { + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 6673, + "end": 6674, + "loc": { + "start": { + "line": 217, + "column": 17 + }, + "end": { + "line": 217, + "column": 18 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "position", + "start": 6675, + "end": 6683, + "loc": { + "start": { + "line": 217, + "column": 19 + }, + "end": { + "line": 217, + "column": 27 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 6683, + "end": 6684, + "loc": { + "start": { + "line": 217, + "column": 27 + }, + "end": { + "line": 217, + "column": 28 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 6684, + "end": 6685, + "loc": { + "start": { + "line": 217, + "column": 28 + }, + "end": { + "line": 217, + "column": 29 + } + } + }, + { + "type": { + "label": "if", + "keyword": "if", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "if", + "start": 6691, + "end": 6693, + "loc": { + "start": { + "line": 218, + "column": 4 + }, + "end": { + "line": 218, + "column": 6 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 6693, + "end": 6694, + "loc": { + "start": { + "line": 218, + "column": 6 + }, + "end": { + "line": 218, + "column": 7 + } + } + }, + { + "type": { + "label": "this", + "keyword": "this", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "this", + "start": 6694, + "end": 6698, + "loc": { + "start": { + "line": 218, + "column": 7 + }, + "end": { + "line": 218, + "column": 11 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 6698, + "end": 6699, + "loc": { + "start": { + "line": 218, + "column": 11 + }, + "end": { + "line": 218, + "column": 12 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "simpleKeyboardInstance", + "start": 6699, + "end": 6721, + "loc": { + "start": { + "line": 218, + "column": 12 + }, + "end": { + "line": 218, + "column": 34 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 6721, + "end": 6722, + "loc": { + "start": { + "line": 218, + "column": 34 + }, + "end": { + "line": 218, + "column": 35 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "caretPosition", + "start": 6722, + "end": 6735, + "loc": { + "start": { + "line": 218, + "column": 35 + }, + "end": { + "line": 218, + "column": 48 + } + } + }, + { + "type": { + "label": "==/!=", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": 6, + "updateContext": null + }, + "value": "===", + "start": 6736, + "end": 6739, + "loc": { + "start": { + "line": 218, + "column": 49 + }, + "end": { + "line": 218, + "column": 52 + } + } + }, + { + "type": { + "label": "num", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": 0, + "start": 6740, + "end": 6741, + "loc": { + "start": { + "line": 218, + "column": 53 + }, + "end": { + "line": 218, + "column": 54 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 6741, + "end": 6742, + "loc": { + "start": { + "line": 218, + "column": 54 + }, + "end": { + "line": 218, + "column": 55 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 6742, + "end": 6743, + "loc": { + "start": { + "line": 218, + "column": 55 + }, + "end": { + "line": 218, + "column": 56 + } + } + }, + { + "type": { + "label": "return", + "keyword": "return", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "return", + "start": 6751, + "end": 6757, + "loc": { + "start": { + "line": 219, + "column": 6 + }, + "end": { + "line": 219, + "column": 12 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "source", + "start": 6758, + "end": 6764, + "loc": { + "start": { + "line": 219, + "column": 13 + }, + "end": { + "line": 219, + "column": 19 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 6764, + "end": 6765, + "loc": { + "start": { + "line": 219, + "column": 19 + }, + "end": { + "line": 219, + "column": 20 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 6771, + "end": 6772, + "loc": { + "start": { + "line": 220, + "column": 4 + }, + "end": { + "line": 220, + "column": 5 + } + } + }, + { + "type": { + "label": "let", + "keyword": "let", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "let", + "start": 6780, + "end": 6783, + "loc": { + "start": { + "line": 222, + "column": 4 + }, + "end": { + "line": 222, + "column": 7 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "output", + "start": 6784, + "end": 6790, + "loc": { + "start": { + "line": 222, + "column": 8 + }, + "end": { + "line": 222, + "column": 14 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 6790, + "end": 6791, + "loc": { + "start": { + "line": 222, + "column": 14 + }, + "end": { + "line": 222, + "column": 15 + } + } + }, + { + "type": { + "label": "let", + "keyword": "let", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "let", + "start": 6797, + "end": 6800, + "loc": { + "start": { + "line": 223, + "column": 4 + }, + "end": { + "line": 223, + "column": 7 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "prevTwoChars", + "start": 6801, + "end": 6813, + "loc": { + "start": { + "line": 223, + "column": 8 + }, + "end": { + "line": 223, + "column": 20 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 6813, + "end": 6814, + "loc": { + "start": { + "line": 223, + "column": 20 + }, + "end": { + "line": 223, + "column": 21 + } + } + }, + { + "type": { + "label": "let", + "keyword": "let", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "let", + "start": 6820, + "end": 6823, + "loc": { + "start": { + "line": 224, + "column": 4 + }, + "end": { + "line": 224, + "column": 7 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "emojiMatched", + "start": 6824, + "end": 6836, + "loc": { + "start": { + "line": 224, + "column": 8 + }, + "end": { + "line": 224, + "column": 20 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 6836, + "end": 6837, + "loc": { + "start": { + "line": 224, + "column": 20 + }, + "end": { + "line": 224, + "column": 21 + } + } + }, + { + "type": { + "label": "let", + "keyword": "let", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "let", + "start": 6843, + "end": 6846, + "loc": { + "start": { + "line": 225, + "column": 4 + }, + "end": { + "line": 225, + "column": 7 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "emojiMatchedReg", + "start": 6847, + "end": 6862, + "loc": { + "start": { + "line": 225, + "column": 8 + }, + "end": { + "line": 225, + "column": 23 + } + } + }, + { + "type": { + "label": "=", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": true, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "=", + "start": 6863, + "end": 6864, + "loc": { + "start": { + "line": 225, + "column": 24 + }, + "end": { + "line": 225, + "column": 25 + } + } + }, + { + "type": { + "label": "regexp", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": { + "pattern": "([\\uD800-\\uDBFF][\\uDC00-\\uDFFF])", + "flags": "g" + }, + "start": 6865, + "end": 6900, + "loc": { + "start": { + "line": 225, + "column": 26 + }, + "end": { + "line": 225, + "column": 61 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 6900, + "end": 6901, + "loc": { + "start": { + "line": 225, + "column": 61 + }, + "end": { + "line": 225, + "column": 62 + } + } + }, + { + "type": "CommentBlock", + "value": "*\r\n * Emojis are made out of two characters, so we must take a custom approach to trim them.\r\n * For more info: https://mathiasbynens.be/notes/javascript-unicode\r\n ", + "start": 6909, + "end": 7089, + "loc": { + "start": { + "line": 227, + "column": 4 + }, + "end": { + "line": 230, + "column": 7 + } + } + }, + { + "type": { + "label": "if", + "keyword": "if", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "if", + "start": 7095, + "end": 7097, + "loc": { + "start": { + "line": 231, + "column": 4 + }, + "end": { + "line": 231, + "column": 6 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 7097, + "end": 7098, + "loc": { + "start": { + "line": 231, + "column": 6 + }, + "end": { + "line": 231, + "column": 7 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "position", + "start": 7098, + "end": 7106, + "loc": { + "start": { + "line": 231, + "column": 7 + }, + "end": { + "line": 231, + "column": 15 + } + } + }, + { + "type": { + "label": "&&", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": 2, + "updateContext": null + }, + "value": "&&", + "start": 7107, + "end": 7109, + "loc": { + "start": { + "line": 231, + "column": 16 + }, + "end": { + "line": 231, + "column": 18 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "position", + "start": 7110, + "end": 7118, + "loc": { + "start": { + "line": 231, + "column": 19 + }, + "end": { + "line": 231, + "column": 27 + } + } + }, + { + "type": { + "label": "", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": 7, + "updateContext": null + }, + "value": ">=", + "start": 7119, + "end": 7121, + "loc": { + "start": { + "line": 231, + "column": 28 + }, + "end": { + "line": 231, + "column": 30 + } + } + }, + { + "type": { + "label": "num", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": 0, + "start": 7122, + "end": 7123, + "loc": { + "start": { + "line": 231, + "column": 31 + }, + "end": { + "line": 231, + "column": 32 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 7123, + "end": 7124, + "loc": { + "start": { + "line": 231, + "column": 32 + }, + "end": { + "line": 231, + "column": 33 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 7124, + "end": 7125, + "loc": { + "start": { + "line": 231, + "column": 33 + }, + "end": { + "line": 231, + "column": 34 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "prevTwoChars", + "start": 7133, + "end": 7145, + "loc": { + "start": { + "line": 232, + "column": 6 + }, + "end": { + "line": 232, + "column": 18 + } + } + }, + { + "type": { + "label": "=", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": true, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "=", + "start": 7146, + "end": 7147, + "loc": { + "start": { + "line": 232, + "column": 19 + }, + "end": { + "line": 232, + "column": 20 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "source", + "start": 7148, + "end": 7154, + "loc": { + "start": { + "line": 232, + "column": 21 + }, + "end": { + "line": 232, + "column": 27 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 7154, + "end": 7155, + "loc": { + "start": { + "line": 232, + "column": 27 + }, + "end": { + "line": 232, + "column": 28 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "substring", + "start": 7155, + "end": 7164, + "loc": { + "start": { + "line": 232, + "column": 28 + }, + "end": { + "line": 232, + "column": 37 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 7164, + "end": 7165, + "loc": { + "start": { + "line": 232, + "column": 37 + }, + "end": { + "line": 232, + "column": 38 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "position", + "start": 7165, + "end": 7173, + "loc": { + "start": { + "line": 232, + "column": 38 + }, + "end": { + "line": 232, + "column": 46 + } + } + }, + { + "type": { + "label": "+/-", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": true, + "postfix": false, + "binop": 9, + "updateContext": null + }, + "value": "-", + "start": 7174, + "end": 7175, + "loc": { + "start": { + "line": 232, + "column": 47 + }, + "end": { + "line": 232, + "column": 48 + } + } + }, + { + "type": { + "label": "num", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": 2, + "start": 7176, + "end": 7177, + "loc": { + "start": { + "line": 232, + "column": 49 + }, + "end": { + "line": 232, + "column": 50 + } + } + }, + { + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 7177, + "end": 7178, + "loc": { + "start": { + "line": 232, + "column": 50 + }, + "end": { + "line": 232, + "column": 51 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "position", + "start": 7179, + "end": 7187, + "loc": { + "start": { + "line": 232, + "column": 52 + }, + "end": { + "line": 232, + "column": 60 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 7187, + "end": 7188, + "loc": { + "start": { + "line": 232, + "column": 60 + }, + "end": { + "line": 232, + "column": 61 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "emojiMatched", + "start": 7196, + "end": 7208, + "loc": { + "start": { + "line": 233, + "column": 6 + }, + "end": { + "line": 233, + "column": 18 + } + } + }, + { + "type": { + "label": "=", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": true, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "=", + "start": 7209, + "end": 7210, + "loc": { + "start": { + "line": 233, + "column": 19 + }, + "end": { + "line": 233, + "column": 20 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "prevTwoChars", + "start": 7211, + "end": 7223, + "loc": { + "start": { + "line": 233, + "column": 21 + }, + "end": { + "line": 233, + "column": 33 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 7223, + "end": 7224, + "loc": { + "start": { + "line": 233, + "column": 33 + }, + "end": { + "line": 233, + "column": 34 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "match", + "start": 7224, + "end": 7229, + "loc": { + "start": { + "line": 233, + "column": 34 + }, + "end": { + "line": 233, + "column": 39 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 7229, + "end": 7230, + "loc": { + "start": { + "line": 233, + "column": 39 + }, + "end": { + "line": 233, + "column": 40 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "emojiMatchedReg", + "start": 7230, + "end": 7245, + "loc": { + "start": { + "line": 233, + "column": 40 + }, + "end": { + "line": 233, + "column": 55 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 7245, + "end": 7246, + "loc": { + "start": { + "line": 233, + "column": 55 + }, + "end": { + "line": 233, + "column": 56 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 7246, + "end": 7247, + "loc": { + "start": { + "line": 233, + "column": 56 + }, + "end": { + "line": 233, + "column": 57 + } + } + }, + { + "type": { + "label": "if", + "keyword": "if", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "if", + "start": 7257, + "end": 7259, + "loc": { + "start": { + "line": 235, + "column": 6 + }, + "end": { + "line": 235, + "column": 8 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 7259, + "end": 7260, + "loc": { + "start": { + "line": 235, + "column": 8 + }, + "end": { + "line": 235, + "column": 9 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "emojiMatched", + "start": 7260, + "end": 7272, + "loc": { + "start": { + "line": 235, + "column": 9 + }, + "end": { + "line": 235, + "column": 21 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 7272, + "end": 7273, + "loc": { + "start": { + "line": 235, + "column": 21 + }, + "end": { + "line": 235, + "column": 22 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 7273, + "end": 7274, + "loc": { + "start": { + "line": 235, + "column": 22 + }, + "end": { + "line": 235, + "column": 23 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "output", + "start": 7284, + "end": 7290, + "loc": { + "start": { + "line": 236, + "column": 8 + }, + "end": { + "line": 236, + "column": 14 + } + } + }, + { + "type": { + "label": "=", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": true, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "=", + "start": 7291, + "end": 7292, + "loc": { + "start": { + "line": 236, + "column": 15 + }, + "end": { + "line": 236, + "column": 16 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "source", + "start": 7293, + "end": 7299, + "loc": { + "start": { + "line": 236, + "column": 17 + }, + "end": { + "line": 236, + "column": 23 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 7299, + "end": 7300, + "loc": { + "start": { + "line": 236, + "column": 23 + }, + "end": { + "line": 236, + "column": 24 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "substr", + "start": 7300, + "end": 7306, + "loc": { + "start": { + "line": 236, + "column": 24 + }, + "end": { + "line": 236, + "column": 30 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 7306, + "end": 7307, + "loc": { + "start": { + "line": 236, + "column": 30 + }, + "end": { + "line": 236, + "column": 31 + } + } + }, + { + "type": { + "label": "num", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": 0, + "start": 7307, + "end": 7308, + "loc": { + "start": { + "line": 236, + "column": 31 + }, + "end": { + "line": 236, + "column": 32 + } + } + }, + { + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 7308, + "end": 7309, + "loc": { + "start": { + "line": 236, + "column": 32 + }, + "end": { + "line": 236, + "column": 33 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 7310, + "end": 7311, + "loc": { + "start": { + "line": 236, + "column": 34 + }, + "end": { + "line": 236, + "column": 35 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "position", + "start": 7311, + "end": 7319, + "loc": { + "start": { + "line": 236, + "column": 35 + }, + "end": { + "line": 236, + "column": 43 + } + } + }, + { + "type": { + "label": "+/-", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": true, + "postfix": false, + "binop": 9, + "updateContext": null + }, + "value": "-", + "start": 7320, + "end": 7321, + "loc": { + "start": { + "line": 236, + "column": 44 + }, + "end": { + "line": 236, + "column": 45 + } + } + }, + { + "type": { + "label": "num", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": 2, + "start": 7322, + "end": 7323, + "loc": { + "start": { + "line": 236, + "column": 46 + }, + "end": { + "line": 236, + "column": 47 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 7323, + "end": 7324, + "loc": { + "start": { + "line": 236, + "column": 47 + }, + "end": { + "line": 236, + "column": 48 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 7324, + "end": 7325, + "loc": { + "start": { + "line": 236, + "column": 48 + }, + "end": { + "line": 236, + "column": 49 + } + } + }, + { + "type": { + "label": "+/-", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": true, + "postfix": false, + "binop": 9, + "updateContext": null + }, + "value": "+", + "start": 7326, + "end": 7327, + "loc": { + "start": { + "line": 236, + "column": 50 + }, + "end": { + "line": 236, + "column": 51 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "source", + "start": 7328, + "end": 7334, + "loc": { + "start": { + "line": 236, + "column": 52 + }, + "end": { + "line": 236, + "column": 58 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 7334, + "end": 7335, + "loc": { + "start": { + "line": 236, + "column": 58 + }, + "end": { + "line": 236, + "column": 59 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "substr", + "start": 7335, + "end": 7341, + "loc": { + "start": { + "line": 236, + "column": 59 + }, + "end": { + "line": 236, + "column": 65 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 7341, + "end": 7342, + "loc": { + "start": { + "line": 236, + "column": 65 + }, + "end": { + "line": 236, + "column": 66 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "position", + "start": 7342, + "end": 7350, + "loc": { + "start": { + "line": 236, + "column": 66 + }, + "end": { + "line": 236, + "column": 74 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 7350, + "end": 7351, + "loc": { + "start": { + "line": 236, + "column": 74 + }, + "end": { + "line": 236, + "column": 75 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 7351, + "end": 7352, + "loc": { + "start": { + "line": 236, + "column": 75 + }, + "end": { + "line": 236, + "column": 76 + } + } + }, + { + "type": { + "label": "this", + "keyword": "this", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "this", + "start": 7362, + "end": 7366, + "loc": { + "start": { + "line": 237, + "column": 8 + }, + "end": { + "line": 237, + "column": 12 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 7366, + "end": 7367, + "loc": { + "start": { + "line": 237, + "column": 12 + }, + "end": { + "line": 237, + "column": 13 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "updateCaretPos", + "start": 7367, + "end": 7381, + "loc": { + "start": { + "line": 237, + "column": 13 + }, + "end": { + "line": 237, + "column": 27 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 7381, + "end": 7382, + "loc": { + "start": { + "line": 237, + "column": 27 + }, + "end": { + "line": 237, + "column": 28 + } + } + }, + { + "type": { + "label": "num", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": 2, + "start": 7382, + "end": 7383, + "loc": { + "start": { + "line": 237, + "column": 28 + }, + "end": { + "line": 237, + "column": 29 + } + } + }, + { + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 7383, + "end": 7384, + "loc": { + "start": { + "line": 237, + "column": 29 + }, + "end": { + "line": 237, + "column": 30 + } + } + }, + { + "type": { + "label": "true", + "keyword": "true", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "true", + "start": 7385, + "end": 7389, + "loc": { + "start": { + "line": 237, + "column": 31 + }, + "end": { + "line": 237, + "column": 35 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 7389, + "end": 7390, + "loc": { + "start": { + "line": 237, + "column": 35 + }, + "end": { + "line": 237, + "column": 36 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 7390, + "end": 7391, + "loc": { + "start": { + "line": 237, + "column": 36 + }, + "end": { + "line": 237, + "column": 37 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 7399, + "end": 7400, + "loc": { + "start": { + "line": 238, + "column": 6 + }, + "end": { + "line": 238, + "column": 7 + } + } + }, + { + "type": { + "label": "else", + "keyword": "else", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "else", + "start": 7401, + "end": 7405, + "loc": { + "start": { + "line": 238, + "column": 8 + }, + "end": { + "line": 238, + "column": 12 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 7406, + "end": 7407, + "loc": { + "start": { + "line": 238, + "column": 13 + }, + "end": { + "line": 238, + "column": 14 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "output", + "start": 7417, + "end": 7423, + "loc": { + "start": { + "line": 239, + "column": 8 + }, + "end": { + "line": 239, + "column": 14 + } + } + }, + { + "type": { + "label": "=", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": true, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "=", + "start": 7424, + "end": 7425, + "loc": { + "start": { + "line": 239, + "column": 15 + }, + "end": { + "line": 239, + "column": 16 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "source", + "start": 7426, + "end": 7432, + "loc": { + "start": { + "line": 239, + "column": 17 + }, + "end": { + "line": 239, + "column": 23 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 7432, + "end": 7433, + "loc": { + "start": { + "line": 239, + "column": 23 + }, + "end": { + "line": 239, + "column": 24 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "substr", + "start": 7433, + "end": 7439, + "loc": { + "start": { + "line": 239, + "column": 24 + }, + "end": { + "line": 239, + "column": 30 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 7439, + "end": 7440, + "loc": { + "start": { + "line": 239, + "column": 30 + }, + "end": { + "line": 239, + "column": 31 + } + } + }, + { + "type": { + "label": "num", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": 0, + "start": 7440, + "end": 7441, + "loc": { + "start": { + "line": 239, + "column": 31 + }, + "end": { + "line": 239, + "column": 32 + } + } + }, + { + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 7441, + "end": 7442, + "loc": { + "start": { + "line": 239, + "column": 32 + }, + "end": { + "line": 239, + "column": 33 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 7443, + "end": 7444, + "loc": { + "start": { + "line": 239, + "column": 34 + }, + "end": { + "line": 239, + "column": 35 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "position", + "start": 7444, + "end": 7452, + "loc": { + "start": { + "line": 239, + "column": 35 + }, + "end": { + "line": 239, + "column": 43 + } + } + }, + { + "type": { + "label": "+/-", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": true, + "postfix": false, + "binop": 9, + "updateContext": null + }, + "value": "-", + "start": 7453, + "end": 7454, + "loc": { + "start": { + "line": 239, + "column": 44 + }, + "end": { + "line": 239, + "column": 45 + } + } + }, + { + "type": { + "label": "num", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": 1, + "start": 7455, + "end": 7456, + "loc": { + "start": { + "line": 239, + "column": 46 + }, + "end": { + "line": 239, + "column": 47 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 7456, + "end": 7457, + "loc": { + "start": { + "line": 239, + "column": 47 + }, + "end": { + "line": 239, + "column": 48 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 7457, + "end": 7458, + "loc": { + "start": { + "line": 239, + "column": 48 + }, + "end": { + "line": 239, + "column": 49 + } + } + }, + { + "type": { + "label": "+/-", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": true, + "postfix": false, + "binop": 9, + "updateContext": null + }, + "value": "+", + "start": 7459, + "end": 7460, + "loc": { + "start": { + "line": 239, + "column": 50 + }, + "end": { + "line": 239, + "column": 51 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "source", + "start": 7461, + "end": 7467, + "loc": { + "start": { + "line": 239, + "column": 52 + }, + "end": { + "line": 239, + "column": 58 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 7467, + "end": 7468, + "loc": { + "start": { + "line": 239, + "column": 58 + }, + "end": { + "line": 239, + "column": 59 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "substr", + "start": 7468, + "end": 7474, + "loc": { + "start": { + "line": 239, + "column": 59 + }, + "end": { + "line": 239, + "column": 65 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 7474, + "end": 7475, + "loc": { + "start": { + "line": 239, + "column": 65 + }, + "end": { + "line": 239, + "column": 66 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "position", + "start": 7475, + "end": 7483, + "loc": { + "start": { + "line": 239, + "column": 66 + }, + "end": { + "line": 239, + "column": 74 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 7483, + "end": 7484, + "loc": { + "start": { + "line": 239, + "column": 74 + }, + "end": { + "line": 239, + "column": 75 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 7484, + "end": 7485, + "loc": { + "start": { + "line": 239, + "column": 75 + }, + "end": { + "line": 239, + "column": 76 + } + } + }, + { + "type": { + "label": "this", + "keyword": "this", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "this", + "start": 7495, + "end": 7499, + "loc": { + "start": { + "line": 240, + "column": 8 + }, + "end": { + "line": 240, + "column": 12 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 7499, + "end": 7500, + "loc": { + "start": { + "line": 240, + "column": 12 + }, + "end": { + "line": 240, + "column": 13 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "updateCaretPos", + "start": 7500, + "end": 7514, + "loc": { + "start": { + "line": 240, + "column": 13 + }, + "end": { + "line": 240, + "column": 27 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 7514, + "end": 7515, + "loc": { + "start": { + "line": 240, + "column": 27 + }, + "end": { + "line": 240, + "column": 28 + } + } + }, + { + "type": { + "label": "num", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": 1, + "start": 7515, + "end": 7516, + "loc": { + "start": { + "line": 240, + "column": 28 + }, + "end": { + "line": 240, + "column": 29 + } + } + }, + { + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 7516, + "end": 7517, + "loc": { + "start": { + "line": 240, + "column": 29 + }, + "end": { + "line": 240, + "column": 30 + } + } + }, + { + "type": { + "label": "true", + "keyword": "true", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "true", + "start": 7518, + "end": 7522, + "loc": { + "start": { + "line": 240, + "column": 31 + }, + "end": { + "line": 240, + "column": 35 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 7522, + "end": 7523, + "loc": { + "start": { + "line": 240, + "column": 35 + }, + "end": { + "line": 240, + "column": 36 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 7523, + "end": 7524, + "loc": { + "start": { + "line": 240, + "column": 36 + }, + "end": { + "line": 240, + "column": 37 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 7532, + "end": 7533, + "loc": { + "start": { + "line": 241, + "column": 6 + }, + "end": { + "line": 241, + "column": 7 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 7539, + "end": 7540, + "loc": { + "start": { + "line": 242, + "column": 4 + }, + "end": { + "line": 242, + "column": 5 + } + } + }, + { + "type": { + "label": "else", + "keyword": "else", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "else", + "start": 7541, + "end": 7545, + "loc": { + "start": { + "line": 242, + "column": 6 + }, + "end": { + "line": 242, + "column": 10 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 7546, + "end": 7547, + "loc": { + "start": { + "line": 242, + "column": 11 + }, + "end": { + "line": 242, + "column": 12 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "prevTwoChars", + "start": 7555, + "end": 7567, + "loc": { + "start": { + "line": 243, + "column": 6 + }, + "end": { + "line": 243, + "column": 18 + } + } + }, + { + "type": { + "label": "=", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": true, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "=", + "start": 7568, + "end": 7569, + "loc": { + "start": { + "line": 243, + "column": 19 + }, + "end": { + "line": 243, + "column": 20 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "source", + "start": 7570, + "end": 7576, + "loc": { + "start": { + "line": 243, + "column": 21 + }, + "end": { + "line": 243, + "column": 27 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 7576, + "end": 7577, + "loc": { + "start": { + "line": 243, + "column": 27 + }, + "end": { + "line": 243, + "column": 28 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "slice", + "start": 7577, + "end": 7582, + "loc": { + "start": { + "line": 243, + "column": 28 + }, + "end": { + "line": 243, + "column": 33 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 7582, + "end": 7583, + "loc": { + "start": { + "line": 243, + "column": 33 + }, + "end": { + "line": 243, + "column": 34 + } + } + }, + { + "type": { + "label": "+/-", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": true, + "postfix": false, + "binop": 9, + "updateContext": null + }, + "value": "-", + "start": 7583, + "end": 7584, + "loc": { + "start": { + "line": 243, + "column": 34 + }, + "end": { + "line": 243, + "column": 35 + } + } + }, + { + "type": { + "label": "num", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": 2, + "start": 7584, + "end": 7585, + "loc": { + "start": { + "line": 243, + "column": 35 + }, + "end": { + "line": 243, + "column": 36 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 7585, + "end": 7586, + "loc": { + "start": { + "line": 243, + "column": 36 + }, + "end": { + "line": 243, + "column": 37 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 7586, + "end": 7587, + "loc": { + "start": { + "line": 243, + "column": 37 + }, + "end": { + "line": 243, + "column": 38 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "emojiMatched", + "start": 7595, + "end": 7607, + "loc": { + "start": { + "line": 244, + "column": 6 + }, + "end": { + "line": 244, + "column": 18 + } + } + }, + { + "type": { + "label": "=", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": true, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "=", + "start": 7608, + "end": 7609, + "loc": { + "start": { + "line": 244, + "column": 19 + }, + "end": { + "line": 244, + "column": 20 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "prevTwoChars", + "start": 7610, + "end": 7622, + "loc": { + "start": { + "line": 244, + "column": 21 + }, + "end": { + "line": 244, + "column": 33 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 7622, + "end": 7623, + "loc": { + "start": { + "line": 244, + "column": 33 + }, + "end": { + "line": 244, + "column": 34 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "match", + "start": 7623, + "end": 7628, + "loc": { + "start": { + "line": 244, + "column": 34 + }, + "end": { + "line": 244, + "column": 39 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 7628, + "end": 7629, + "loc": { + "start": { + "line": 244, + "column": 39 + }, + "end": { + "line": 244, + "column": 40 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "emojiMatchedReg", + "start": 7629, + "end": 7644, + "loc": { + "start": { + "line": 244, + "column": 40 + }, + "end": { + "line": 244, + "column": 55 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 7644, + "end": 7645, + "loc": { + "start": { + "line": 244, + "column": 55 + }, + "end": { + "line": 244, + "column": 56 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 7645, + "end": 7646, + "loc": { + "start": { + "line": 244, + "column": 56 + }, + "end": { + "line": 244, + "column": 57 + } + } + }, + { + "type": { + "label": "if", + "keyword": "if", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "if", + "start": 7656, + "end": 7658, + "loc": { + "start": { + "line": 246, + "column": 6 + }, + "end": { + "line": 246, + "column": 8 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 7658, + "end": 7659, + "loc": { + "start": { + "line": 246, + "column": 8 + }, + "end": { + "line": 246, + "column": 9 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "emojiMatched", + "start": 7659, + "end": 7671, + "loc": { + "start": { + "line": 246, + "column": 9 + }, + "end": { + "line": 246, + "column": 21 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 7671, + "end": 7672, + "loc": { + "start": { + "line": 246, + "column": 21 + }, + "end": { + "line": 246, + "column": 22 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 7672, + "end": 7673, + "loc": { + "start": { + "line": 246, + "column": 22 + }, + "end": { + "line": 246, + "column": 23 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "output", + "start": 7683, + "end": 7689, + "loc": { + "start": { + "line": 247, + "column": 8 + }, + "end": { + "line": 247, + "column": 14 + } + } + }, + { + "type": { + "label": "=", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": true, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "=", + "start": 7690, + "end": 7691, + "loc": { + "start": { + "line": 247, + "column": 15 + }, + "end": { + "line": 247, + "column": 16 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "source", + "start": 7692, + "end": 7698, + "loc": { + "start": { + "line": 247, + "column": 17 + }, + "end": { + "line": 247, + "column": 23 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 7698, + "end": 7699, + "loc": { + "start": { + "line": 247, + "column": 23 + }, + "end": { + "line": 247, + "column": 24 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "slice", + "start": 7699, + "end": 7704, + "loc": { + "start": { + "line": 247, + "column": 24 + }, + "end": { + "line": 247, + "column": 29 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 7704, + "end": 7705, + "loc": { + "start": { + "line": 247, + "column": 29 + }, + "end": { + "line": 247, + "column": 30 + } + } + }, + { + "type": { + "label": "num", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": 0, + "start": 7705, + "end": 7706, + "loc": { + "start": { + "line": 247, + "column": 30 + }, + "end": { + "line": 247, + "column": 31 + } + } + }, + { + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 7706, + "end": 7707, + "loc": { + "start": { + "line": 247, + "column": 31 + }, + "end": { + "line": 247, + "column": 32 + } + } + }, + { + "type": { + "label": "+/-", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": true, + "postfix": false, + "binop": 9, + "updateContext": null + }, + "value": "-", + "start": 7708, + "end": 7709, + "loc": { + "start": { + "line": 247, + "column": 33 + }, + "end": { + "line": 247, + "column": 34 + } + } + }, + { + "type": { + "label": "num", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": 2, + "start": 7709, + "end": 7710, + "loc": { + "start": { + "line": 247, + "column": 34 + }, + "end": { + "line": 247, + "column": 35 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 7710, + "end": 7711, + "loc": { + "start": { + "line": 247, + "column": 35 + }, + "end": { + "line": 247, + "column": 36 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 7711, + "end": 7712, + "loc": { + "start": { + "line": 247, + "column": 36 + }, + "end": { + "line": 247, + "column": 37 + } + } + }, + { + "type": { + "label": "this", + "keyword": "this", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "this", + "start": 7722, + "end": 7726, + "loc": { + "start": { + "line": 248, + "column": 8 + }, + "end": { + "line": 248, + "column": 12 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 7726, + "end": 7727, + "loc": { + "start": { + "line": 248, + "column": 12 + }, + "end": { + "line": 248, + "column": 13 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "updateCaretPos", + "start": 7727, + "end": 7741, + "loc": { + "start": { + "line": 248, + "column": 13 + }, + "end": { + "line": 248, + "column": 27 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 7741, + "end": 7742, + "loc": { + "start": { + "line": 248, + "column": 27 + }, + "end": { + "line": 248, + "column": 28 + } + } + }, + { + "type": { + "label": "num", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": 2, + "start": 7742, + "end": 7743, + "loc": { + "start": { + "line": 248, + "column": 28 + }, + "end": { + "line": 248, + "column": 29 + } + } + }, + { + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 7743, + "end": 7744, + "loc": { + "start": { + "line": 248, + "column": 29 + }, + "end": { + "line": 248, + "column": 30 + } + } + }, + { + "type": { + "label": "true", + "keyword": "true", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "true", + "start": 7745, + "end": 7749, + "loc": { + "start": { + "line": 248, + "column": 31 + }, + "end": { + "line": 248, + "column": 35 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 7749, + "end": 7750, + "loc": { + "start": { + "line": 248, + "column": 35 + }, + "end": { + "line": 248, + "column": 36 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 7750, + "end": 7751, + "loc": { + "start": { + "line": 248, + "column": 36 + }, + "end": { + "line": 248, + "column": 37 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 7759, + "end": 7760, + "loc": { + "start": { + "line": 249, + "column": 6 + }, + "end": { + "line": 249, + "column": 7 + } + } + }, + { + "type": { + "label": "else", + "keyword": "else", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "else", + "start": 7761, + "end": 7765, + "loc": { + "start": { + "line": 249, + "column": 8 + }, + "end": { + "line": 249, + "column": 12 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 7766, + "end": 7767, + "loc": { + "start": { + "line": 249, + "column": 13 + }, + "end": { + "line": 249, + "column": 14 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "output", + "start": 7777, + "end": 7783, + "loc": { + "start": { + "line": 250, + "column": 8 + }, + "end": { + "line": 250, + "column": 14 + } + } + }, + { + "type": { + "label": "=", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": true, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "=", + "start": 7784, + "end": 7785, + "loc": { + "start": { + "line": 250, + "column": 15 + }, + "end": { + "line": 250, + "column": 16 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "source", + "start": 7786, + "end": 7792, + "loc": { + "start": { + "line": 250, + "column": 17 + }, + "end": { + "line": 250, + "column": 23 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 7792, + "end": 7793, + "loc": { + "start": { + "line": 250, + "column": 23 + }, + "end": { + "line": 250, + "column": 24 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "slice", + "start": 7793, + "end": 7798, + "loc": { + "start": { + "line": 250, + "column": 24 + }, + "end": { + "line": 250, + "column": 29 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 7798, + "end": 7799, + "loc": { + "start": { + "line": 250, + "column": 29 + }, + "end": { + "line": 250, + "column": 30 + } + } + }, + { + "type": { + "label": "num", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": 0, + "start": 7799, + "end": 7800, + "loc": { + "start": { + "line": 250, + "column": 30 + }, + "end": { + "line": 250, + "column": 31 + } + } + }, + { + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 7800, + "end": 7801, + "loc": { + "start": { + "line": 250, + "column": 31 + }, + "end": { + "line": 250, + "column": 32 + } + } + }, + { + "type": { + "label": "+/-", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": true, + "postfix": false, + "binop": 9, + "updateContext": null + }, + "value": "-", + "start": 7802, + "end": 7803, + "loc": { + "start": { + "line": 250, + "column": 33 + }, + "end": { + "line": 250, + "column": 34 + } + } + }, + { + "type": { + "label": "num", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": 1, + "start": 7803, + "end": 7804, + "loc": { + "start": { + "line": 250, + "column": 34 + }, + "end": { + "line": 250, + "column": 35 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 7804, + "end": 7805, + "loc": { + "start": { + "line": 250, + "column": 35 + }, + "end": { + "line": 250, + "column": 36 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 7805, + "end": 7806, + "loc": { + "start": { + "line": 250, + "column": 36 + }, + "end": { + "line": 250, + "column": 37 + } + } + }, + { + "type": { + "label": "this", + "keyword": "this", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "this", + "start": 7816, + "end": 7820, + "loc": { + "start": { + "line": 251, + "column": 8 + }, + "end": { + "line": 251, + "column": 12 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 7820, + "end": 7821, + "loc": { + "start": { + "line": 251, + "column": 12 + }, + "end": { + "line": 251, + "column": 13 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "updateCaretPos", + "start": 7821, + "end": 7835, + "loc": { + "start": { + "line": 251, + "column": 13 + }, + "end": { + "line": 251, + "column": 27 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 7835, + "end": 7836, + "loc": { + "start": { + "line": 251, + "column": 27 + }, + "end": { + "line": 251, + "column": 28 + } + } + }, + { + "type": { + "label": "num", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": 1, + "start": 7836, + "end": 7837, + "loc": { + "start": { + "line": 251, + "column": 28 + }, + "end": { + "line": 251, + "column": 29 + } + } + }, + { + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 7837, + "end": 7838, + "loc": { + "start": { + "line": 251, + "column": 29 + }, + "end": { + "line": 251, + "column": 30 + } + } + }, + { + "type": { + "label": "true", + "keyword": "true", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "true", + "start": 7839, + "end": 7843, + "loc": { + "start": { + "line": 251, + "column": 31 + }, + "end": { + "line": 251, + "column": 35 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 7843, + "end": 7844, + "loc": { + "start": { + "line": 251, + "column": 35 + }, + "end": { + "line": 251, + "column": 36 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 7844, + "end": 7845, + "loc": { + "start": { + "line": 251, + "column": 36 + }, + "end": { + "line": 251, + "column": 37 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 7853, + "end": 7854, + "loc": { + "start": { + "line": 252, + "column": 6 + }, + "end": { + "line": 252, + "column": 7 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 7860, + "end": 7861, + "loc": { + "start": { + "line": 253, + "column": 4 + }, + "end": { + "line": 253, + "column": 5 + } + } + }, + { + "type": { + "label": "return", + "keyword": "return", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "return", + "start": 7869, + "end": 7875, + "loc": { + "start": { + "line": 255, + "column": 4 + }, + "end": { + "line": 255, + "column": 10 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "output", + "start": 7876, + "end": 7882, + "loc": { + "start": { + "line": 255, + "column": 11 + }, + "end": { + "line": 255, + "column": 17 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 7882, + "end": 7883, + "loc": { + "start": { + "line": 255, + "column": 17 + }, + "end": { + "line": 255, + "column": 18 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 7887, + "end": 7888, + "loc": { + "start": { + "line": 256, + "column": 2 + }, + "end": { + "line": 256, + "column": 3 + } + } + }, + { + "type": "CommentBlock", + "value": "*\r\n * Determines whether the maxLength has been reached. This function is called when the maxLength option it set.\r\n * \r\n * @param {object} inputObj\r\n * @param {object} options\r\n * @param {string} updatedInput\r\n ", + "start": 7892, + "end": 8123, + "loc": { + "start": { + "line": 257, + "column": 2 + }, + "end": { + "line": 263, + "column": 5 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "handleMaxLength", + "start": 8127, + "end": 8142, + "loc": { + "start": { + "line": 264, + "column": 2 + }, + "end": { + "line": 264, + "column": 17 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 8142, + "end": 8143, + "loc": { + "start": { + "line": 264, + "column": 17 + }, + "end": { + "line": 264, + "column": 18 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "inputObj", + "start": 8143, + "end": 8151, + "loc": { + "start": { + "line": 264, + "column": 18 + }, + "end": { + "line": 264, + "column": 26 + } + } + }, + { + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 8151, + "end": 8152, + "loc": { + "start": { + "line": 264, + "column": 26 + }, + "end": { + "line": 264, + "column": 27 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "options", + "start": 8153, + "end": 8160, + "loc": { + "start": { + "line": 264, + "column": 28 + }, + "end": { + "line": 264, + "column": 35 + } + } + }, + { + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 8160, + "end": 8161, + "loc": { + "start": { + "line": 264, + "column": 35 + }, + "end": { + "line": 264, + "column": 36 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "updatedInput", + "start": 8162, + "end": 8174, + "loc": { + "start": { + "line": 264, + "column": 37 + }, + "end": { + "line": 264, + "column": 49 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 8174, + "end": 8175, + "loc": { + "start": { + "line": 264, + "column": 49 + }, + "end": { + "line": 264, + "column": 50 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 8175, + "end": 8176, + "loc": { + "start": { + "line": 264, + "column": 50 + }, + "end": { + "line": 264, + "column": 51 + } + } + }, + { + "type": { + "label": "let", + "keyword": "let", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "let", + "start": 8182, + "end": 8185, + "loc": { + "start": { + "line": 265, + "column": 4 + }, + "end": { + "line": 265, + "column": 7 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "maxLength", + "start": 8186, + "end": 8195, + "loc": { + "start": { + "line": 265, + "column": 8 + }, + "end": { + "line": 265, + "column": 17 + } + } + }, + { + "type": { + "label": "=", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": true, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "=", + "start": 8196, + "end": 8197, + "loc": { + "start": { + "line": 265, + "column": 18 + }, + "end": { + "line": 265, + "column": 19 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "options", + "start": 8198, + "end": 8205, + "loc": { + "start": { + "line": 265, + "column": 20 + }, + "end": { + "line": 265, + "column": 27 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 8205, + "end": 8206, + "loc": { + "start": { + "line": 265, + "column": 27 + }, + "end": { + "line": 265, + "column": 28 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "maxLength", + "start": 8206, + "end": 8215, + "loc": { + "start": { + "line": 265, + "column": 28 + }, + "end": { + "line": 265, + "column": 37 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 8215, + "end": 8216, + "loc": { + "start": { + "line": 265, + "column": 37 + }, + "end": { + "line": 265, + "column": 38 + } + } + }, + { + "type": { + "label": "let", + "keyword": "let", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "let", + "start": 8222, + "end": 8225, + "loc": { + "start": { + "line": 266, + "column": 4 + }, + "end": { + "line": 266, + "column": 7 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "currentInput", + "start": 8226, + "end": 8238, + "loc": { + "start": { + "line": 266, + "column": 8 + }, + "end": { + "line": 266, + "column": 20 + } + } + }, + { + "type": { + "label": "=", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": true, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "=", + "start": 8239, + "end": 8240, + "loc": { + "start": { + "line": 266, + "column": 21 + }, + "end": { + "line": 266, + "column": 22 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "inputObj", + "start": 8241, + "end": 8249, + "loc": { + "start": { + "line": 266, + "column": 23 + }, + "end": { + "line": 266, + "column": 31 + } + } + }, + { + "type": { + "label": "[", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 8249, + "end": 8250, + "loc": { + "start": { + "line": 266, + "column": 31 + }, + "end": { + "line": 266, + "column": 32 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "options", + "start": 8250, + "end": 8257, + "loc": { + "start": { + "line": 266, + "column": 32 + }, + "end": { + "line": 266, + "column": 39 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 8257, + "end": 8258, + "loc": { + "start": { + "line": 266, + "column": 39 + }, + "end": { + "line": 266, + "column": 40 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "inputName", + "start": 8258, + "end": 8267, + "loc": { + "start": { + "line": 266, + "column": 40 + }, + "end": { + "line": 266, + "column": 49 + } + } + }, + { + "type": { + "label": "]", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 8267, + "end": 8268, + "loc": { + "start": { + "line": 266, + "column": 49 + }, + "end": { + "line": 266, + "column": 50 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 8268, + "end": 8269, + "loc": { + "start": { + "line": 266, + "column": 50 + }, + "end": { + "line": 266, + "column": 51 + } + } + }, + { + "type": { + "label": "let", + "keyword": "let", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "let", + "start": 8275, + "end": 8278, + "loc": { + "start": { + "line": 267, + "column": 4 + }, + "end": { + "line": 267, + "column": 7 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "condition", + "start": 8279, + "end": 8288, + "loc": { + "start": { + "line": 267, + "column": 8 + }, + "end": { + "line": 267, + "column": 17 + } + } + }, + { + "type": { + "label": "=", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": true, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "=", + "start": 8289, + "end": 8290, + "loc": { + "start": { + "line": 267, + "column": 18 + }, + "end": { + "line": 267, + "column": 19 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "currentInput", + "start": 8291, + "end": 8303, + "loc": { + "start": { + "line": 267, + "column": 20 + }, + "end": { + "line": 267, + "column": 32 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 8303, + "end": 8304, + "loc": { + "start": { + "line": 267, + "column": 32 + }, + "end": { + "line": 267, + "column": 33 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "length", + "start": 8304, + "end": 8310, + "loc": { + "start": { + "line": 267, + "column": 33 + }, + "end": { + "line": 267, + "column": 39 + } + } + }, + { + "type": { + "label": "==/!=", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": 6, + "updateContext": null + }, + "value": "===", + "start": 8311, + "end": 8314, + "loc": { + "start": { + "line": 267, + "column": 40 + }, + "end": { + "line": 267, + "column": 43 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "maxLength", + "start": 8315, + "end": 8324, + "loc": { + "start": { + "line": 267, + "column": 44 + }, + "end": { + "line": 267, + "column": 53 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 8324, + "end": 8325, + "loc": { + "start": { + "line": 267, + "column": 53 + }, + "end": { + "line": 267, + "column": 54 + } + } + }, + { + "type": { + "label": "if", + "keyword": "if", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "if", + "start": 8335, + "end": 8337, + "loc": { + "start": { + "line": 270, + "column": 4 + }, + "end": { + "line": 270, + "column": 6 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 8337, + "end": 8338, + "loc": { + "start": { + "line": 270, + "column": 6 + }, + "end": { + "line": 270, + "column": 7 + } + } + }, + { + "type": "CommentBlock", + "value": "*\r\n * If pressing this button won't add more characters\r\n * We exit out of this limiter function\r\n ", + "start": 8346, + "end": 8467, + "loc": { + "start": { + "line": 271, + "column": 6 + }, + "end": { + "line": 274, + "column": 9 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "updatedInput", + "start": 8475, + "end": 8487, + "loc": { + "start": { + "line": 275, + "column": 6 + }, + "end": { + "line": 275, + "column": 18 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 8487, + "end": 8488, + "loc": { + "start": { + "line": 275, + "column": 18 + }, + "end": { + "line": 275, + "column": 19 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "length", + "start": 8488, + "end": 8494, + "loc": { + "start": { + "line": 275, + "column": 19 + }, + "end": { + "line": 275, + "column": 25 + } + } + }, + { + "type": { + "label": "", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": 7, + "updateContext": null + }, + "value": "<=", + "start": 8495, + "end": 8497, + "loc": { + "start": { + "line": 275, + "column": 26 + }, + "end": { + "line": 275, + "column": 28 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "currentInput", + "start": 8498, + "end": 8510, + "loc": { + "start": { + "line": 275, + "column": 29 + }, + "end": { + "line": 275, + "column": 41 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 8510, + "end": 8511, + "loc": { + "start": { + "line": 275, + "column": 41 + }, + "end": { + "line": 275, + "column": 42 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "length", + "start": 8511, + "end": 8517, + "loc": { + "start": { + "line": 275, + "column": 42 + }, + "end": { + "line": 275, + "column": 48 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 8523, + "end": 8524, + "loc": { + "start": { + "line": 276, + "column": 4 + }, + "end": { + "line": 276, + "column": 5 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 8524, + "end": 8525, + "loc": { + "start": { + "line": 276, + "column": 5 + }, + "end": { + "line": 276, + "column": 6 + } + } + }, + { + "type": { + "label": "return", + "keyword": "return", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "return", + "start": 8533, + "end": 8539, + "loc": { + "start": { + "line": 277, + "column": 6 + }, + "end": { + "line": 277, + "column": 12 + } + } + }, + { + "type": { + "label": "false", + "keyword": "false", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "false", + "start": 8540, + "end": 8545, + "loc": { + "start": { + "line": 277, + "column": 13 + }, + "end": { + "line": 277, + "column": 18 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 8545, + "end": 8546, + "loc": { + "start": { + "line": 277, + "column": 18 + }, + "end": { + "line": 277, + "column": 19 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 8552, + "end": 8553, + "loc": { + "start": { + "line": 278, + "column": 4 + }, + "end": { + "line": 278, + "column": 5 + } + } + }, + { + "type": { + "label": "if", + "keyword": "if", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "if", + "start": 8561, + "end": 8563, + "loc": { + "start": { + "line": 280, + "column": 4 + }, + "end": { + "line": 280, + "column": 6 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 8563, + "end": 8564, + "loc": { + "start": { + "line": 280, + "column": 6 + }, + "end": { + "line": 280, + "column": 7 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "Number", + "start": 8564, + "end": 8570, + "loc": { + "start": { + "line": 280, + "column": 7 + }, + "end": { + "line": 280, + "column": 13 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 8570, + "end": 8571, + "loc": { + "start": { + "line": 280, + "column": 13 + }, + "end": { + "line": 280, + "column": 14 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "isInteger", + "start": 8571, + "end": 8580, + "loc": { + "start": { + "line": 280, + "column": 14 + }, + "end": { + "line": 280, + "column": 23 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 8580, + "end": 8581, + "loc": { + "start": { + "line": 280, + "column": 23 + }, + "end": { + "line": 280, + "column": 24 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "maxLength", + "start": 8581, + "end": 8590, + "loc": { + "start": { + "line": 280, + "column": 24 + }, + "end": { + "line": 280, + "column": 33 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 8590, + "end": 8591, + "loc": { + "start": { + "line": 280, + "column": 33 + }, + "end": { + "line": 280, + "column": 34 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 8591, + "end": 8592, + "loc": { + "start": { + "line": 280, + "column": 34 + }, + "end": { + "line": 280, + "column": 35 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 8592, + "end": 8593, + "loc": { + "start": { + "line": 280, + "column": 35 + }, + "end": { + "line": 280, + "column": 36 + } + } + }, + { + "type": { + "label": "if", + "keyword": "if", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "if", + "start": 8601, + "end": 8603, + "loc": { + "start": { + "line": 281, + "column": 6 + }, + "end": { + "line": 281, + "column": 8 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 8603, + "end": 8604, + "loc": { + "start": { + "line": 281, + "column": 8 + }, + "end": { + "line": 281, + "column": 9 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "options", + "start": 8604, + "end": 8611, + "loc": { + "start": { + "line": 281, + "column": 9 + }, + "end": { + "line": 281, + "column": 16 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 8611, + "end": 8612, + "loc": { + "start": { + "line": 281, + "column": 16 + }, + "end": { + "line": 281, + "column": 17 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "debug", + "start": 8612, + "end": 8617, + "loc": { + "start": { + "line": 281, + "column": 17 + }, + "end": { + "line": 281, + "column": 22 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 8617, + "end": 8618, + "loc": { + "start": { + "line": 281, + "column": 22 + }, + "end": { + "line": 281, + "column": 23 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 8618, + "end": 8619, + "loc": { + "start": { + "line": 281, + "column": 23 + }, + "end": { + "line": 281, + "column": 24 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "console", + "start": 8629, + "end": 8636, + "loc": { + "start": { + "line": 282, + "column": 8 + }, + "end": { + "line": 282, + "column": 15 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 8636, + "end": 8637, + "loc": { + "start": { + "line": 282, + "column": 15 + }, + "end": { + "line": 282, + "column": 16 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "log", + "start": 8637, + "end": 8640, + "loc": { + "start": { + "line": 282, + "column": 16 + }, + "end": { + "line": 282, + "column": 19 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 8640, + "end": 8641, + "loc": { + "start": { + "line": 282, + "column": 19 + }, + "end": { + "line": 282, + "column": 20 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "maxLength (num) reached:", + "start": 8641, + "end": 8667, + "loc": { + "start": { + "line": 282, + "column": 20 + }, + "end": { + "line": 282, + "column": 46 + } + } + }, + { + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 8667, + "end": 8668, + "loc": { + "start": { + "line": 282, + "column": 46 + }, + "end": { + "line": 282, + "column": 47 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "condition", + "start": 8669, + "end": 8678, + "loc": { + "start": { + "line": 282, + "column": 48 + }, + "end": { + "line": 282, + "column": 57 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 8678, + "end": 8679, + "loc": { + "start": { + "line": 282, + "column": 57 + }, + "end": { + "line": 282, + "column": 58 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 8679, + "end": 8680, + "loc": { + "start": { + "line": 282, + "column": 58 + }, + "end": { + "line": 282, + "column": 59 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 8688, + "end": 8689, + "loc": { + "start": { + "line": 283, + "column": 6 + }, + "end": { + "line": 283, + "column": 7 + } + } + }, + { + "type": { + "label": "if", + "keyword": "if", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "if", + "start": 8699, + "end": 8701, + "loc": { + "start": { + "line": 285, + "column": 6 + }, + "end": { + "line": 285, + "column": 8 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 8701, + "end": 8702, + "loc": { + "start": { + "line": 285, + "column": 8 + }, + "end": { + "line": 285, + "column": 9 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "condition", + "start": 8702, + "end": 8711, + "loc": { + "start": { + "line": 285, + "column": 9 + }, + "end": { + "line": 285, + "column": 18 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 8711, + "end": 8712, + "loc": { + "start": { + "line": 285, + "column": 18 + }, + "end": { + "line": 285, + "column": 19 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 8712, + "end": 8713, + "loc": { + "start": { + "line": 285, + "column": 19 + }, + "end": { + "line": 285, + "column": 20 + } + } + }, + { + "type": "CommentBlock", + "value": "*\r\n * @type {boolean} Boolean value that shows whether maxLength has been reached\r\n ", + "start": 8723, + "end": 8827, + "loc": { + "start": { + "line": 286, + "column": 8 + }, + "end": { + "line": 288, + "column": 11 + } + } + }, + { + "type": { + "label": "this", + "keyword": "this", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "this", + "start": 8837, + "end": 8841, + "loc": { + "start": { + "line": 289, + "column": 8 + }, + "end": { + "line": 289, + "column": 12 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 8841, + "end": 8842, + "loc": { + "start": { + "line": 289, + "column": 12 + }, + "end": { + "line": 289, + "column": 13 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "maxLengthReached", + "start": 8842, + "end": 8858, + "loc": { + "start": { + "line": 289, + "column": 13 + }, + "end": { + "line": 289, + "column": 29 + } + } + }, + { + "type": { + "label": "=", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": true, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "=", + "start": 8859, + "end": 8860, + "loc": { + "start": { + "line": 289, + "column": 30 + }, + "end": { + "line": 289, + "column": 31 + } + } + }, + { + "type": { + "label": "true", + "keyword": "true", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "true", + "start": 8861, + "end": 8865, + "loc": { + "start": { + "line": 289, + "column": 32 + }, + "end": { + "line": 289, + "column": 36 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 8865, + "end": 8866, + "loc": { + "start": { + "line": 289, + "column": 36 + }, + "end": { + "line": 289, + "column": 37 + } + } + }, + { + "type": { + "label": "return", + "keyword": "return", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "return", + "start": 8876, + "end": 8882, + "loc": { + "start": { + "line": 290, + "column": 8 + }, + "end": { + "line": 290, + "column": 14 + } + } + }, + { + "type": { + "label": "true", + "keyword": "true", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "true", + "start": 8883, + "end": 8887, + "loc": { + "start": { + "line": 290, + "column": 15 + }, + "end": { + "line": 290, + "column": 19 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 8887, + "end": 8888, + "loc": { + "start": { + "line": 290, + "column": 19 + }, + "end": { + "line": 290, + "column": 20 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 8896, + "end": 8897, + "loc": { + "start": { + "line": 291, + "column": 6 + }, + "end": { + "line": 291, + "column": 7 + } + } + }, + { + "type": { + "label": "else", + "keyword": "else", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "else", + "start": 8898, + "end": 8902, + "loc": { + "start": { + "line": 291, + "column": 8 + }, + "end": { + "line": 291, + "column": 12 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 8903, + "end": 8904, + "loc": { + "start": { + "line": 291, + "column": 13 + }, + "end": { + "line": 291, + "column": 14 + } + } + }, + { + "type": { + "label": "this", + "keyword": "this", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "this", + "start": 8914, + "end": 8918, + "loc": { + "start": { + "line": 292, + "column": 8 + }, + "end": { + "line": 292, + "column": 12 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 8918, + "end": 8919, + "loc": { + "start": { + "line": 292, + "column": 12 + }, + "end": { + "line": 292, + "column": 13 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "maxLengthReached", + "start": 8919, + "end": 8935, + "loc": { + "start": { + "line": 292, + "column": 13 + }, + "end": { + "line": 292, + "column": 29 + } + } + }, + { + "type": { + "label": "=", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": true, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "=", + "start": 8936, + "end": 8937, + "loc": { + "start": { + "line": 292, + "column": 30 + }, + "end": { + "line": 292, + "column": 31 + } + } + }, + { + "type": { + "label": "false", + "keyword": "false", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "false", + "start": 8938, + "end": 8943, + "loc": { + "start": { + "line": 292, + "column": 32 + }, + "end": { + "line": 292, + "column": 37 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 8943, + "end": 8944, + "loc": { + "start": { + "line": 292, + "column": 37 + }, + "end": { + "line": 292, + "column": 38 + } + } + }, + { + "type": { + "label": "return", + "keyword": "return", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "return", + "start": 8954, + "end": 8960, + "loc": { + "start": { + "line": 293, + "column": 8 + }, + "end": { + "line": 293, + "column": 14 + } + } + }, + { + "type": { + "label": "false", + "keyword": "false", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "false", + "start": 8961, + "end": 8966, + "loc": { + "start": { + "line": 293, + "column": 15 + }, + "end": { + "line": 293, + "column": 20 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 8966, + "end": 8967, + "loc": { + "start": { + "line": 293, + "column": 20 + }, + "end": { + "line": 293, + "column": 21 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 8975, + "end": 8976, + "loc": { + "start": { + "line": 294, + "column": 6 + }, + "end": { + "line": 294, + "column": 7 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 8982, + "end": 8983, + "loc": { + "start": { + "line": 295, + "column": 4 + }, + "end": { + "line": 295, + "column": 5 + } + } + }, + { + "type": { + "label": "if", + "keyword": "if", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "if", + "start": 8991, + "end": 8993, + "loc": { + "start": { + "line": 297, + "column": 4 + }, + "end": { + "line": 297, + "column": 6 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 8993, + "end": 8994, + "loc": { + "start": { + "line": 297, + "column": 6 + }, + "end": { + "line": 297, + "column": 7 + } + } + }, + { + "type": { + "label": "typeof", + "keyword": "typeof", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": true, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "typeof", + "start": 8994, + "end": 9000, + "loc": { + "start": { + "line": 297, + "column": 7 + }, + "end": { + "line": 297, + "column": 13 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "maxLength", + "start": 9001, + "end": 9010, + "loc": { + "start": { + "line": 297, + "column": 14 + }, + "end": { + "line": 297, + "column": 23 + } + } + }, + { + "type": { + "label": "==/!=", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": 6, + "updateContext": null + }, + "value": "===", + "start": 9011, + "end": 9014, + "loc": { + "start": { + "line": 297, + "column": 24 + }, + "end": { + "line": 297, + "column": 27 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "object", + "start": 9015, + "end": 9023, + "loc": { + "start": { + "line": 297, + "column": 28 + }, + "end": { + "line": 297, + "column": 36 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 9023, + "end": 9024, + "loc": { + "start": { + "line": 297, + "column": 36 + }, + "end": { + "line": 297, + "column": 37 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 9024, + "end": 9025, + "loc": { + "start": { + "line": 297, + "column": 37 + }, + "end": { + "line": 297, + "column": 38 + } + } + }, + { + "type": { + "label": "let", + "keyword": "let", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "let", + "start": 9033, + "end": 9036, + "loc": { + "start": { + "line": 298, + "column": 6 + }, + "end": { + "line": 298, + "column": 9 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "condition", + "start": 9037, + "end": 9046, + "loc": { + "start": { + "line": 298, + "column": 10 + }, + "end": { + "line": 298, + "column": 19 + } + } + }, + { + "type": { + "label": "=", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": true, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "=", + "start": 9047, + "end": 9048, + "loc": { + "start": { + "line": 298, + "column": 20 + }, + "end": { + "line": 298, + "column": 21 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "currentInput", + "start": 9049, + "end": 9061, + "loc": { + "start": { + "line": 298, + "column": 22 + }, + "end": { + "line": 298, + "column": 34 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 9061, + "end": 9062, + "loc": { + "start": { + "line": 298, + "column": 34 + }, + "end": { + "line": 298, + "column": 35 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "length", + "start": 9062, + "end": 9068, + "loc": { + "start": { + "line": 298, + "column": 35 + }, + "end": { + "line": 298, + "column": 41 + } + } + }, + { + "type": { + "label": "==/!=", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": 6, + "updateContext": null + }, + "value": "===", + "start": 9069, + "end": 9072, + "loc": { + "start": { + "line": 298, + "column": 42 + }, + "end": { + "line": 298, + "column": 45 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "maxLength", + "start": 9073, + "end": 9082, + "loc": { + "start": { + "line": 298, + "column": 46 + }, + "end": { + "line": 298, + "column": 55 + } + } + }, + { + "type": { + "label": "[", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 9082, + "end": 9083, + "loc": { + "start": { + "line": 298, + "column": 55 + }, + "end": { + "line": 298, + "column": 56 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "options", + "start": 9083, + "end": 9090, + "loc": { + "start": { + "line": 298, + "column": 56 + }, + "end": { + "line": 298, + "column": 63 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 9090, + "end": 9091, + "loc": { + "start": { + "line": 298, + "column": 63 + }, + "end": { + "line": 298, + "column": 64 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "inputName", + "start": 9091, + "end": 9100, + "loc": { + "start": { + "line": 298, + "column": 64 + }, + "end": { + "line": 298, + "column": 73 + } + } + }, + { + "type": { + "label": "]", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 9100, + "end": 9101, + "loc": { + "start": { + "line": 298, + "column": 73 + }, + "end": { + "line": 298, + "column": 74 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 9101, + "end": 9102, + "loc": { + "start": { + "line": 298, + "column": 74 + }, + "end": { + "line": 298, + "column": 75 + } + } + }, + { + "type": { + "label": "if", + "keyword": "if", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "if", + "start": 9112, + "end": 9114, + "loc": { + "start": { + "line": 300, + "column": 6 + }, + "end": { + "line": 300, + "column": 8 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 9114, + "end": 9115, + "loc": { + "start": { + "line": 300, + "column": 8 + }, + "end": { + "line": 300, + "column": 9 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "options", + "start": 9115, + "end": 9122, + "loc": { + "start": { + "line": 300, + "column": 9 + }, + "end": { + "line": 300, + "column": 16 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 9122, + "end": 9123, + "loc": { + "start": { + "line": 300, + "column": 16 + }, + "end": { + "line": 300, + "column": 17 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "debug", + "start": 9123, + "end": 9128, + "loc": { + "start": { + "line": 300, + "column": 17 + }, + "end": { + "line": 300, + "column": 22 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 9128, + "end": 9129, + "loc": { + "start": { + "line": 300, + "column": 22 + }, + "end": { + "line": 300, + "column": 23 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 9129, + "end": 9130, + "loc": { + "start": { + "line": 300, + "column": 23 + }, + "end": { + "line": 300, + "column": 24 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "console", + "start": 9140, + "end": 9147, + "loc": { + "start": { + "line": 301, + "column": 8 + }, + "end": { + "line": 301, + "column": 15 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 9147, + "end": 9148, + "loc": { + "start": { + "line": 301, + "column": 15 + }, + "end": { + "line": 301, + "column": 16 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "log", + "start": 9148, + "end": 9151, + "loc": { + "start": { + "line": 301, + "column": 16 + }, + "end": { + "line": 301, + "column": 19 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 9151, + "end": 9152, + "loc": { + "start": { + "line": 301, + "column": 19 + }, + "end": { + "line": 301, + "column": 20 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "maxLength (obj) reached:", + "start": 9152, + "end": 9178, + "loc": { + "start": { + "line": 301, + "column": 20 + }, + "end": { + "line": 301, + "column": 46 + } + } + }, + { + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 9178, + "end": 9179, + "loc": { + "start": { + "line": 301, + "column": 46 + }, + "end": { + "line": 301, + "column": 47 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "condition", + "start": 9180, + "end": 9189, + "loc": { + "start": { + "line": 301, + "column": 48 + }, + "end": { + "line": 301, + "column": 57 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 9189, + "end": 9190, + "loc": { + "start": { + "line": 301, + "column": 57 + }, + "end": { + "line": 301, + "column": 58 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 9190, + "end": 9191, + "loc": { + "start": { + "line": 301, + "column": 58 + }, + "end": { + "line": 301, + "column": 59 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 9199, + "end": 9200, + "loc": { + "start": { + "line": 302, + "column": 6 + }, + "end": { + "line": 302, + "column": 7 + } + } + }, + { + "type": { + "label": "if", + "keyword": "if", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "if", + "start": 9210, + "end": 9212, + "loc": { + "start": { + "line": 304, + "column": 6 + }, + "end": { + "line": 304, + "column": 8 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 9212, + "end": 9213, + "loc": { + "start": { + "line": 304, + "column": 8 + }, + "end": { + "line": 304, + "column": 9 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "condition", + "start": 9213, + "end": 9222, + "loc": { + "start": { + "line": 304, + "column": 9 + }, + "end": { + "line": 304, + "column": 18 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 9222, + "end": 9223, + "loc": { + "start": { + "line": 304, + "column": 18 + }, + "end": { + "line": 304, + "column": 19 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 9223, + "end": 9224, + "loc": { + "start": { + "line": 304, + "column": 19 + }, + "end": { + "line": 304, + "column": 20 + } + } + }, + { + "type": { + "label": "this", + "keyword": "this", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "this", + "start": 9234, + "end": 9238, + "loc": { + "start": { + "line": 305, + "column": 8 + }, + "end": { + "line": 305, + "column": 12 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 9238, + "end": 9239, + "loc": { + "start": { + "line": 305, + "column": 12 + }, + "end": { + "line": 305, + "column": 13 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "maxLengthReached", + "start": 9239, + "end": 9255, + "loc": { + "start": { + "line": 305, + "column": 13 + }, + "end": { + "line": 305, + "column": 29 + } + } + }, + { + "type": { + "label": "=", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": true, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "=", + "start": 9256, + "end": 9257, + "loc": { + "start": { + "line": 305, + "column": 30 + }, + "end": { + "line": 305, + "column": 31 + } + } + }, + { + "type": { + "label": "true", + "keyword": "true", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "true", + "start": 9258, + "end": 9262, + "loc": { + "start": { + "line": 305, + "column": 32 + }, + "end": { + "line": 305, + "column": 36 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 9262, + "end": 9263, + "loc": { + "start": { + "line": 305, + "column": 36 + }, + "end": { + "line": 305, + "column": 37 + } + } + }, + { + "type": { + "label": "return", + "keyword": "return", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "return", + "start": 9273, + "end": 9279, + "loc": { + "start": { + "line": 306, + "column": 8 + }, + "end": { + "line": 306, + "column": 14 + } + } + }, + { + "type": { + "label": "true", + "keyword": "true", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "true", + "start": 9280, + "end": 9284, + "loc": { + "start": { + "line": 306, + "column": 15 + }, + "end": { + "line": 306, + "column": 19 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 9284, + "end": 9285, + "loc": { + "start": { + "line": 306, + "column": 19 + }, + "end": { + "line": 306, + "column": 20 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 9293, + "end": 9294, + "loc": { + "start": { + "line": 307, + "column": 6 + }, + "end": { + "line": 307, + "column": 7 + } + } + }, + { + "type": { + "label": "else", + "keyword": "else", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "else", + "start": 9295, + "end": 9299, + "loc": { + "start": { + "line": 307, + "column": 8 + }, + "end": { + "line": 307, + "column": 12 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 9300, + "end": 9301, + "loc": { + "start": { + "line": 307, + "column": 13 + }, + "end": { + "line": 307, + "column": 14 + } + } + }, + { + "type": { + "label": "this", + "keyword": "this", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "this", + "start": 9311, + "end": 9315, + "loc": { + "start": { + "line": 308, + "column": 8 + }, + "end": { + "line": 308, + "column": 12 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 9315, + "end": 9316, + "loc": { + "start": { + "line": 308, + "column": 12 + }, + "end": { + "line": 308, + "column": 13 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "maxLengthReached", + "start": 9316, + "end": 9332, + "loc": { + "start": { + "line": 308, + "column": 13 + }, + "end": { + "line": 308, + "column": 29 + } + } + }, + { + "type": { + "label": "=", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": true, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "=", + "start": 9333, + "end": 9334, + "loc": { + "start": { + "line": 308, + "column": 30 + }, + "end": { + "line": 308, + "column": 31 + } + } + }, + { + "type": { + "label": "false", + "keyword": "false", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "false", + "start": 9335, + "end": 9340, + "loc": { + "start": { + "line": 308, + "column": 32 + }, + "end": { + "line": 308, + "column": 37 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 9340, + "end": 9341, + "loc": { + "start": { + "line": 308, + "column": 37 + }, + "end": { + "line": 308, + "column": 38 + } + } + }, + { + "type": { + "label": "return", + "keyword": "return", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "return", + "start": 9351, + "end": 9357, + "loc": { + "start": { + "line": 309, + "column": 8 + }, + "end": { + "line": 309, + "column": 14 + } + } + }, + { + "type": { + "label": "false", + "keyword": "false", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "false", + "start": 9358, + "end": 9363, + "loc": { + "start": { + "line": 309, + "column": 15 + }, + "end": { + "line": 309, + "column": 20 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 9363, + "end": 9364, + "loc": { + "start": { + "line": 309, + "column": 20 + }, + "end": { + "line": 309, + "column": 21 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 9372, + "end": 9373, + "loc": { + "start": { + "line": 310, + "column": 6 + }, + "end": { + "line": 310, + "column": 7 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 9379, + "end": 9380, + "loc": { + "start": { + "line": 311, + "column": 4 + }, + "end": { + "line": 311, + "column": 5 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 9384, + "end": 9385, + "loc": { + "start": { + "line": 312, + "column": 2 + }, + "end": { + "line": 312, + "column": 3 + } + } + }, + { + "type": "CommentBlock", + "value": "*\r\n * Gets the current value of maxLengthReached\r\n ", + "start": 9391, + "end": 9450, + "loc": { + "start": { + "line": 314, + "column": 2 + }, + "end": { + "line": 316, + "column": 5 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "isMaxLengthReached", + "start": 9454, + "end": 9472, + "loc": { + "start": { + "line": 317, + "column": 2 + }, + "end": { + "line": 317, + "column": 20 + } + } + }, + { + "type": { + "label": "=", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": true, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "=", + "start": 9473, + "end": 9474, + "loc": { + "start": { + "line": 317, + "column": 21 + }, + "end": { + "line": 317, + "column": 22 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 9475, + "end": 9476, + "loc": { + "start": { + "line": 317, + "column": 23 + }, + "end": { + "line": 317, + "column": 24 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 9476, + "end": 9477, + "loc": { + "start": { + "line": 317, + "column": 24 + }, + "end": { + "line": 317, + "column": 25 + } + } + }, + { + "type": { + "label": "=>", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 9478, + "end": 9480, + "loc": { + "start": { + "line": 317, + "column": 26 + }, + "end": { + "line": 317, + "column": 28 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 9481, + "end": 9482, + "loc": { + "start": { + "line": 317, + "column": 29 + }, + "end": { + "line": 317, + "column": 30 + } + } + }, + { + "type": { + "label": "return", + "keyword": "return", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "return", + "start": 9488, + "end": 9494, + "loc": { + "start": { + "line": 318, + "column": 4 + }, + "end": { + "line": 318, + "column": 10 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "Boolean", + "start": 9495, + "end": 9502, + "loc": { + "start": { + "line": 318, + "column": 11 + }, + "end": { + "line": 318, + "column": 18 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 9502, + "end": 9503, + "loc": { + "start": { + "line": 318, + "column": 18 + }, + "end": { + "line": 318, + "column": 19 + } + } + }, + { + "type": { + "label": "this", + "keyword": "this", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "this", + "start": 9503, + "end": 9507, + "loc": { + "start": { + "line": 318, + "column": 19 + }, + "end": { + "line": 318, + "column": 23 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 9507, + "end": 9508, + "loc": { + "start": { + "line": 318, + "column": 23 + }, + "end": { + "line": 318, + "column": 24 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "maxLengthReached", + "start": 9508, + "end": 9524, + "loc": { + "start": { + "line": 318, + "column": 24 + }, + "end": { + "line": 318, + "column": 40 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 9524, + "end": 9525, + "loc": { + "start": { + "line": 318, + "column": 40 + }, + "end": { + "line": 318, + "column": 41 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 9525, + "end": 9526, + "loc": { + "start": { + "line": 318, + "column": 41 + }, + "end": { + "line": 318, + "column": 42 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 9530, + "end": 9531, + "loc": { + "start": { + "line": 319, + "column": 2 + }, + "end": { + "line": 319, + "column": 3 + } + } + }, + { + "type": "CommentBlock", + "value": "*\r\n * Transforms an arbitrary string to camelCase\r\n * \r\n * @param {string} string The string to transform.\r\n ", + "start": 9537, + "end": 9659, + "loc": { + "start": { + "line": 321, + "column": 2 + }, + "end": { + "line": 325, + "column": 5 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "camelCase", + "start": 9663, + "end": 9672, + "loc": { + "start": { + "line": 326, + "column": 2 + }, + "end": { + "line": 326, + "column": 11 + } + } + }, + { + "type": { + "label": "=", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": true, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "=", + "start": 9673, + "end": 9674, + "loc": { + "start": { + "line": 326, + "column": 12 + }, + "end": { + "line": 326, + "column": 13 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 9675, + "end": 9676, + "loc": { + "start": { + "line": 326, + "column": 14 + }, + "end": { + "line": 326, + "column": 15 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "string", + "start": 9676, + "end": 9682, + "loc": { + "start": { + "line": 326, + "column": 15 + }, + "end": { + "line": 326, + "column": 21 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 9682, + "end": 9683, + "loc": { + "start": { + "line": 326, + "column": 21 + }, + "end": { + "line": 326, + "column": 22 + } + } + }, + { + "type": { + "label": "=>", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 9684, + "end": 9686, + "loc": { + "start": { + "line": 326, + "column": 23 + }, + "end": { + "line": 326, + "column": 25 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 9687, + "end": 9688, + "loc": { + "start": { + "line": 326, + "column": 26 + }, + "end": { + "line": 326, + "column": 27 + } + } + }, + { + "type": { + "label": "return", + "keyword": "return", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "return", + "start": 9694, + "end": 9700, + "loc": { + "start": { + "line": 327, + "column": 4 + }, + "end": { + "line": 327, + "column": 10 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "string", + "start": 9701, + "end": 9707, + "loc": { + "start": { + "line": 327, + "column": 11 + }, + "end": { + "line": 327, + "column": 17 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 9707, + "end": 9708, + "loc": { + "start": { + "line": 327, + "column": 17 + }, + "end": { + "line": 327, + "column": 18 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "toLowerCase", + "start": 9708, + "end": 9719, + "loc": { + "start": { + "line": 327, + "column": 18 + }, + "end": { + "line": 327, + "column": 29 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 9719, + "end": 9720, + "loc": { + "start": { + "line": 327, + "column": 29 + }, + "end": { + "line": 327, + "column": 30 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 9720, + "end": 9721, + "loc": { + "start": { + "line": 327, + "column": 30 + }, + "end": { + "line": 327, + "column": 31 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 9721, + "end": 9722, + "loc": { + "start": { + "line": 327, + "column": 31 + }, + "end": { + "line": 327, + "column": 32 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "trim", + "start": 9722, + "end": 9726, + "loc": { + "start": { + "line": 327, + "column": 32 + }, + "end": { + "line": 327, + "column": 36 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 9726, + "end": 9727, + "loc": { + "start": { + "line": 327, + "column": 36 + }, + "end": { + "line": 327, + "column": 37 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 9727, + "end": 9728, + "loc": { + "start": { + "line": 327, + "column": 37 + }, + "end": { + "line": 327, + "column": 38 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 9728, + "end": 9729, + "loc": { + "start": { + "line": 327, + "column": 38 + }, + "end": { + "line": 327, + "column": 39 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "split", + "start": 9729, + "end": 9734, + "loc": { + "start": { + "line": 327, + "column": 39 + }, + "end": { + "line": 327, + "column": 44 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 9734, + "end": 9735, + "loc": { + "start": { + "line": 327, + "column": 44 + }, + "end": { + "line": 327, + "column": 45 + } + } + }, + { + "type": { + "label": "regexp", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": { + "pattern": "[.\\-_\\s]", + "flags": "g" + }, + "start": 9735, + "end": 9746, + "loc": { + "start": { + "line": 327, + "column": 45 + }, + "end": { + "line": 327, + "column": 56 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 9746, + "end": 9747, + "loc": { + "start": { + "line": 327, + "column": 56 + }, + "end": { + "line": 327, + "column": 57 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 9747, + "end": 9748, + "loc": { + "start": { + "line": 327, + "column": 57 + }, + "end": { + "line": 327, + "column": 58 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "reduce", + "start": 9748, + "end": 9754, + "loc": { + "start": { + "line": 327, + "column": 58 + }, + "end": { + "line": 327, + "column": 64 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 9754, + "end": 9755, + "loc": { + "start": { + "line": 327, + "column": 64 + }, + "end": { + "line": 327, + "column": 65 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 9755, + "end": 9756, + "loc": { + "start": { + "line": 327, + "column": 65 + }, + "end": { + "line": 327, + "column": 66 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "string", + "start": 9756, + "end": 9762, + "loc": { + "start": { + "line": 327, + "column": 66 + }, + "end": { + "line": 327, + "column": 72 + } + } + }, + { + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 9762, + "end": 9763, + "loc": { + "start": { + "line": 327, + "column": 72 + }, + "end": { + "line": 327, + "column": 73 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "word", + "start": 9764, + "end": 9768, + "loc": { + "start": { + "line": 327, + "column": 74 + }, + "end": { + "line": 327, + "column": 78 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 9768, + "end": 9769, + "loc": { + "start": { + "line": 327, + "column": 78 + }, + "end": { + "line": 327, + "column": 79 + } + } + }, + { + "type": { + "label": "=>", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 9770, + "end": 9772, + "loc": { + "start": { + "line": 327, + "column": 80 + }, + "end": { + "line": 327, + "column": 82 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "string", + "start": 9773, + "end": 9779, + "loc": { + "start": { + "line": 327, + "column": 83 + }, + "end": { + "line": 327, + "column": 89 + } + } + }, + { + "type": { + "label": "+/-", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": true, + "postfix": false, + "binop": 9, + "updateContext": null + }, + "value": "+", + "start": 9780, + "end": 9781, + "loc": { + "start": { + "line": 327, + "column": 90 + }, + "end": { + "line": 327, + "column": 91 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "word", + "start": 9782, + "end": 9786, + "loc": { + "start": { + "line": 327, + "column": 92 + }, + "end": { + "line": 327, + "column": 96 + } + } + }, + { + "type": { + "label": "[", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 9786, + "end": 9787, + "loc": { + "start": { + "line": 327, + "column": 96 + }, + "end": { + "line": 327, + "column": 97 + } + } + }, + { + "type": { + "label": "num", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": 0, + "start": 9787, + "end": 9788, + "loc": { + "start": { + "line": 327, + "column": 97 + }, + "end": { + "line": 327, + "column": 98 + } + } + }, + { + "type": { + "label": "]", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 9788, + "end": 9789, + "loc": { + "start": { + "line": 327, + "column": 98 + }, + "end": { + "line": 327, + "column": 99 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 9789, + "end": 9790, + "loc": { + "start": { + "line": 327, + "column": 99 + }, + "end": { + "line": 327, + "column": 100 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "toUpperCase", + "start": 9790, + "end": 9801, + "loc": { + "start": { + "line": 327, + "column": 100 + }, + "end": { + "line": 327, + "column": 111 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 9801, + "end": 9802, + "loc": { + "start": { + "line": 327, + "column": 111 + }, + "end": { + "line": 327, + "column": 112 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 9802, + "end": 9803, + "loc": { + "start": { + "line": 327, + "column": 112 + }, + "end": { + "line": 327, + "column": 113 + } + } + }, + { + "type": { + "label": "+/-", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": true, + "postfix": false, + "binop": 9, + "updateContext": null + }, + "value": "+", + "start": 9804, + "end": 9805, + "loc": { + "start": { + "line": 327, + "column": 114 + }, + "end": { + "line": 327, + "column": 115 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "word", + "start": 9806, + "end": 9810, + "loc": { + "start": { + "line": 327, + "column": 116 + }, + "end": { + "line": 327, + "column": 120 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 9810, + "end": 9811, + "loc": { + "start": { + "line": 327, + "column": 120 + }, + "end": { + "line": 327, + "column": 121 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "slice", + "start": 9811, + "end": 9816, + "loc": { + "start": { + "line": 327, + "column": 121 + }, + "end": { + "line": 327, + "column": 126 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 9816, + "end": 9817, + "loc": { + "start": { + "line": 327, + "column": 126 + }, + "end": { + "line": 327, + "column": 127 + } + } + }, + { + "type": { + "label": "num", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": 1, + "start": 9817, + "end": 9818, + "loc": { + "start": { + "line": 327, + "column": 127 + }, + "end": { + "line": 327, + "column": 128 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 9818, + "end": 9819, + "loc": { + "start": { + "line": 327, + "column": 128 + }, + "end": { + "line": 327, + "column": 129 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 9819, + "end": 9820, + "loc": { + "start": { + "line": 327, + "column": 129 + }, + "end": { + "line": 327, + "column": 130 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 9820, + "end": 9821, + "loc": { + "start": { + "line": 327, + "column": 130 + }, + "end": { + "line": 327, + "column": 131 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 9825, + "end": 9826, + "loc": { + "start": { + "line": 328, + "column": 2 + }, + "end": { + "line": 328, + "column": 3 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 9826, + "end": 9827, + "loc": { + "start": { + "line": 328, + "column": 3 + }, + "end": { + "line": 328, + "column": 4 + } + } + }, + { + "type": "CommentBlock", + "value": "*\r\n * Counts the number of duplicates in a given array\r\n * \r\n * @param {Array} array The haystack to search in\r\n * @param {string} value The needle to search for\r\n ", + "start": 9833, + "end": 10013, + "loc": { + "start": { + "line": 330, + "column": 2 + }, + "end": { + "line": 335, + "column": 5 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "countInArray", + "start": 10017, + "end": 10029, + "loc": { + "start": { + "line": 336, + "column": 2 + }, + "end": { + "line": 336, + "column": 14 + } + } + }, + { + "type": { + "label": "=", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": true, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "=", + "start": 10030, + "end": 10031, + "loc": { + "start": { + "line": 336, + "column": 15 + }, + "end": { + "line": 336, + "column": 16 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 10032, + "end": 10033, + "loc": { + "start": { + "line": 336, + "column": 17 + }, + "end": { + "line": 336, + "column": 18 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "array", + "start": 10033, + "end": 10038, + "loc": { + "start": { + "line": 336, + "column": 18 + }, + "end": { + "line": 336, + "column": 23 + } + } + }, + { + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 10038, + "end": 10039, + "loc": { + "start": { + "line": 336, + "column": 23 + }, + "end": { + "line": 336, + "column": 24 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "value", + "start": 10040, + "end": 10045, + "loc": { + "start": { + "line": 336, + "column": 25 + }, + "end": { + "line": 336, + "column": 30 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 10045, + "end": 10046, + "loc": { + "start": { + "line": 336, + "column": 30 + }, + "end": { + "line": 336, + "column": 31 + } + } + }, + { + "type": { + "label": "=>", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 10047, + "end": 10049, + "loc": { + "start": { + "line": 336, + "column": 32 + }, + "end": { + "line": 336, + "column": 34 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 10050, + "end": 10051, + "loc": { + "start": { + "line": 336, + "column": 35 + }, + "end": { + "line": 336, + "column": 36 + } + } + }, + { + "type": { + "label": "return", + "keyword": "return", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "return", + "start": 10057, + "end": 10063, + "loc": { + "start": { + "line": 337, + "column": 4 + }, + "end": { + "line": 337, + "column": 10 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "array", + "start": 10064, + "end": 10069, + "loc": { + "start": { + "line": 337, + "column": 11 + }, + "end": { + "line": 337, + "column": 16 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 10069, + "end": 10070, + "loc": { + "start": { + "line": 337, + "column": 16 + }, + "end": { + "line": 337, + "column": 17 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "reduce", + "start": 10070, + "end": 10076, + "loc": { + "start": { + "line": 337, + "column": 17 + }, + "end": { + "line": 337, + "column": 23 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 10076, + "end": 10077, + "loc": { + "start": { + "line": 337, + "column": 23 + }, + "end": { + "line": 337, + "column": 24 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 10077, + "end": 10078, + "loc": { + "start": { + "line": 337, + "column": 24 + }, + "end": { + "line": 337, + "column": 25 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "n", + "start": 10078, + "end": 10079, + "loc": { + "start": { + "line": 337, + "column": 25 + }, + "end": { + "line": 337, + "column": 26 + } + } + }, + { + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 10079, + "end": 10080, + "loc": { + "start": { + "line": 337, + "column": 26 + }, + "end": { + "line": 337, + "column": 27 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "x", + "start": 10081, + "end": 10082, + "loc": { + "start": { + "line": 337, + "column": 28 + }, + "end": { + "line": 337, + "column": 29 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 10082, + "end": 10083, + "loc": { + "start": { + "line": 337, + "column": 29 + }, + "end": { + "line": 337, + "column": 30 + } + } + }, + { + "type": { + "label": "=>", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 10084, + "end": 10086, + "loc": { + "start": { + "line": 337, + "column": 31 + }, + "end": { + "line": 337, + "column": 33 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "n", + "start": 10087, + "end": 10088, + "loc": { + "start": { + "line": 337, + "column": 34 + }, + "end": { + "line": 337, + "column": 35 + } + } + }, + { + "type": { + "label": "+/-", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": true, + "postfix": false, + "binop": 9, + "updateContext": null + }, + "value": "+", + "start": 10089, + "end": 10090, + "loc": { + "start": { + "line": 337, + "column": 36 + }, + "end": { + "line": 337, + "column": 37 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 10091, + "end": 10092, + "loc": { + "start": { + "line": 337, + "column": 38 + }, + "end": { + "line": 337, + "column": 39 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "x", + "start": 10092, + "end": 10093, + "loc": { + "start": { + "line": 337, + "column": 39 + }, + "end": { + "line": 337, + "column": 40 + } + } + }, + { + "type": { + "label": "==/!=", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": 6, + "updateContext": null + }, + "value": "===", + "start": 10094, + "end": 10097, + "loc": { + "start": { + "line": 337, + "column": 41 + }, + "end": { + "line": 337, + "column": 44 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "value", + "start": 10098, + "end": 10103, + "loc": { + "start": { + "line": 337, + "column": 45 + }, + "end": { + "line": 337, + "column": 50 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 10103, + "end": 10104, + "loc": { + "start": { + "line": 337, + "column": 50 + }, + "end": { + "line": 337, + "column": 51 + } + } + }, + { + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 10104, + "end": 10105, + "loc": { + "start": { + "line": 337, + "column": 51 + }, + "end": { + "line": 337, + "column": 52 + } + } + }, + { + "type": { + "label": "num", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": 0, + "start": 10106, + "end": 10107, + "loc": { + "start": { + "line": 337, + "column": 53 + }, + "end": { + "line": 337, + "column": 54 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 10107, + "end": 10108, + "loc": { + "start": { + "line": 337, + "column": 54 + }, + "end": { + "line": 337, + "column": 55 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 10108, + "end": 10109, + "loc": { + "start": { + "line": 337, + "column": 55 + }, + "end": { + "line": 337, + "column": 56 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 10113, + "end": 10114, + "loc": { + "start": { + "line": 338, + "column": 2 + }, + "end": { + "line": 338, + "column": 3 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 10118, + "end": 10119, + "loc": { + "start": { + "line": 340, + "column": 0 + }, + "end": { + "line": 340, + "column": 1 + } + } + }, + { + "type": { + "label": "export", + "keyword": "export", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "export", + "start": 10123, + "end": 10129, + "loc": { + "start": { + "line": 342, + "column": 0 + }, + "end": { + "line": 342, + "column": 6 + } + } + }, + { + "type": { + "label": "default", + "keyword": "default", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "default", + "start": 10130, + "end": 10137, + "loc": { + "start": { + "line": 342, + "column": 7 + }, + "end": { + "line": 342, + "column": 14 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "Utilities", + "start": 10138, + "end": 10147, + "loc": { + "start": { + "line": 342, + "column": 15 + }, + "end": { + "line": 342, + "column": 24 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 10147, + "end": 10148, + "loc": { + "start": { + "line": 342, + "column": 24 + }, + "end": { + "line": 342, + "column": 25 + } + } + }, + { + "type": { + "label": "eof", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 10148, + "end": 10148, + "loc": { + "start": { + "line": 342, + "column": 25 + }, + "end": { + "line": 342, + "column": 25 + } + } + } + ] +} \ No newline at end of file diff --git a/docs/ast/source/lib/tests/TestUtility.js.json b/docs/ast/source/lib/tests/TestUtility.js.json new file mode 100644 index 00000000..56818e81 --- /dev/null +++ b/docs/ast/source/lib/tests/TestUtility.js.json @@ -0,0 +1,17449 @@ +{ + "type": "File", + "start": 0, + "end": 2830, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 107, + "column": 1 + } + }, + "program": { + "type": "Program", + "start": 0, + "end": 2830, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 107, + "column": 1 + } + }, + "sourceType": "module", + "body": [ + { + "type": "ExportDefaultDeclaration", + "start": 37, + "end": 2830, + "loc": { + "start": { + "line": 4, + "column": 0 + }, + "end": { + "line": 107, + "column": 1 + } + }, + "declaration": { + "type": "ClassDeclaration", + "start": 52, + "end": 2830, + "loc": { + "start": { + "line": 4, + "column": 15 + }, + "end": { + "line": 107, + "column": 1 + } + }, + "id": { + "type": "Identifier", + "start": 58, + "end": 69, + "loc": { + "start": { + "line": 4, + "column": 21 + }, + "end": { + "line": 4, + "column": 32 + }, + "identifierName": "TestUtility" + }, + "name": "TestUtility", + "leadingComments": null + }, + "superClass": null, + "body": { + "type": "ClassBody", + "start": 70, + "end": 2830, + "loc": { + "start": { + "line": 4, + "column": 33 + }, + "end": { + "line": 107, + "column": 1 + } + }, + "body": [ + { + "type": "ClassProperty", + "start": 134, + "end": 320, + "loc": { + "start": { + "line": 8, + "column": 2 + }, + "end": { + "line": 13, + "column": 3 + } + }, + "static": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 134, + "end": 140, + "loc": { + "start": { + "line": 8, + "column": 2 + }, + "end": { + "line": 8, + "column": 8 + }, + "identifierName": "setDOM" + }, + "name": "setDOM", + "leadingComments": null + }, + "value": { + "type": "ArrowFunctionExpression", + "start": 143, + "end": 320, + "loc": { + "start": { + "line": 8, + "column": 11 + }, + "end": { + "line": 13, + "column": 3 + } + }, + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 144, + "end": 152, + "loc": { + "start": { + "line": 8, + "column": 12 + }, + "end": { + "line": 8, + "column": 20 + }, + "identifierName": "divClass" + }, + "name": "divClass" + } + ], + "body": { + "type": "BlockStatement", + "start": 157, + "end": 320, + "loc": { + "start": { + "line": 8, + "column": 25 + }, + "end": { + "line": 13, + "column": 3 + } + }, + "body": [ + { + "type": "ExpressionStatement", + "start": 164, + "end": 177, + "loc": { + "start": { + "line": 9, + "column": 4 + }, + "end": { + "line": 9, + "column": 17 + } + }, + "expression": { + "type": "CallExpression", + "start": 164, + "end": 176, + "loc": { + "start": { + "line": 9, + "column": 4 + }, + "end": { + "line": 9, + "column": 16 + } + }, + "callee": { + "type": "MemberExpression", + "start": 164, + "end": 174, + "loc": { + "start": { + "line": 9, + "column": 4 + }, + "end": { + "line": 9, + "column": 14 + } + }, + "object": { + "type": "ThisExpression", + "start": 164, + "end": 168, + "loc": { + "start": { + "line": 9, + "column": 4 + }, + "end": { + "line": 9, + "column": 8 + } + } + }, + "property": { + "type": "Identifier", + "start": 169, + "end": 174, + "loc": { + "start": { + "line": 9, + "column": 9 + }, + "end": { + "line": 9, + "column": 14 + }, + "identifierName": "clear" + }, + "name": "clear" + }, + "computed": false + }, + "arguments": [] + } + }, + { + "type": "VariableDeclaration", + "start": 183, + "end": 225, + "loc": { + "start": { + "line": 10, + "column": 4 + }, + "end": { + "line": 10, + "column": 46 + } + }, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 189, + "end": 224, + "loc": { + "start": { + "line": 10, + "column": 10 + }, + "end": { + "line": 10, + "column": 45 + } + }, + "id": { + "type": "Identifier", + "start": 189, + "end": 192, + "loc": { + "start": { + "line": 10, + "column": 10 + }, + "end": { + "line": 10, + "column": 13 + }, + "identifierName": "div" + }, + "name": "div" + }, + "init": { + "type": "CallExpression", + "start": 195, + "end": 224, + "loc": { + "start": { + "line": 10, + "column": 16 + }, + "end": { + "line": 10, + "column": 45 + } + }, + "callee": { + "type": "MemberExpression", + "start": 195, + "end": 217, + "loc": { + "start": { + "line": 10, + "column": 16 + }, + "end": { + "line": 10, + "column": 38 + } + }, + "object": { + "type": "Identifier", + "start": 195, + "end": 203, + "loc": { + "start": { + "line": 10, + "column": 16 + }, + "end": { + "line": 10, + "column": 24 + }, + "identifierName": "document" + }, + "name": "document" + }, + "property": { + "type": "Identifier", + "start": 204, + "end": 217, + "loc": { + "start": { + "line": 10, + "column": 25 + }, + "end": { + "line": 10, + "column": 38 + }, + "identifierName": "createElement" + }, + "name": "createElement" + }, + "computed": false + }, + "arguments": [ + { + "type": "StringLiteral", + "start": 218, + "end": 223, + "loc": { + "start": { + "line": 10, + "column": 39 + }, + "end": { + "line": 10, + "column": 44 + } + }, + "extra": { + "rawValue": "div", + "raw": "'div'" + }, + "value": "div" + } + ] + } + } + ], + "kind": "const" + }, + { + "type": "ExpressionStatement", + "start": 231, + "end": 278, + "loc": { + "start": { + "line": 11, + "column": 4 + }, + "end": { + "line": 11, + "column": 51 + } + }, + "expression": { + "type": "AssignmentExpression", + "start": 231, + "end": 277, + "loc": { + "start": { + "line": 11, + "column": 4 + }, + "end": { + "line": 11, + "column": 50 + } + }, + "operator": "+=", + "left": { + "type": "MemberExpression", + "start": 231, + "end": 244, + "loc": { + "start": { + "line": 11, + "column": 4 + }, + "end": { + "line": 11, + "column": 17 + } + }, + "object": { + "type": "Identifier", + "start": 231, + "end": 234, + "loc": { + "start": { + "line": 11, + "column": 4 + }, + "end": { + "line": 11, + "column": 7 + }, + "identifierName": "div" + }, + "name": "div" + }, + "property": { + "type": "Identifier", + "start": 235, + "end": 244, + "loc": { + "start": { + "line": 11, + "column": 8 + }, + "end": { + "line": 11, + "column": 17 + }, + "identifierName": "className" + }, + "name": "className" + }, + "computed": false + }, + "right": { + "type": "LogicalExpression", + "start": 248, + "end": 277, + "loc": { + "start": { + "line": 11, + "column": 21 + }, + "end": { + "line": 11, + "column": 50 + } + }, + "left": { + "type": "Identifier", + "start": 248, + "end": 256, + "loc": { + "start": { + "line": 11, + "column": 21 + }, + "end": { + "line": 11, + "column": 29 + }, + "identifierName": "divClass" + }, + "name": "divClass" + }, + "operator": "||", + "right": { + "type": "StringLiteral", + "start": 260, + "end": 277, + "loc": { + "start": { + "line": 11, + "column": 33 + }, + "end": { + "line": 11, + "column": 50 + } + }, + "extra": { + "rawValue": "simple-keyboard", + "raw": "\"simple-keyboard\"" + }, + "value": "simple-keyboard" + } + } + } + }, + { + "type": "ExpressionStatement", + "start": 284, + "end": 315, + "loc": { + "start": { + "line": 12, + "column": 4 + }, + "end": { + "line": 12, + "column": 35 + } + }, + "expression": { + "type": "CallExpression", + "start": 284, + "end": 314, + "loc": { + "start": { + "line": 12, + "column": 4 + }, + "end": { + "line": 12, + "column": 34 + } + }, + "callee": { + "type": "MemberExpression", + "start": 284, + "end": 309, + "loc": { + "start": { + "line": 12, + "column": 4 + }, + "end": { + "line": 12, + "column": 29 + } + }, + "object": { + "type": "MemberExpression", + "start": 284, + "end": 297, + "loc": { + "start": { + "line": 12, + "column": 4 + }, + "end": { + "line": 12, + "column": 17 + } + }, + "object": { + "type": "Identifier", + "start": 284, + "end": 292, + "loc": { + "start": { + "line": 12, + "column": 4 + }, + "end": { + "line": 12, + "column": 12 + }, + "identifierName": "document" + }, + "name": "document" + }, + "property": { + "type": "Identifier", + "start": 293, + "end": 297, + "loc": { + "start": { + "line": 12, + "column": 13 + }, + "end": { + "line": 12, + "column": 17 + }, + "identifierName": "body" + }, + "name": "body" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 298, + "end": 309, + "loc": { + "start": { + "line": 12, + "column": 18 + }, + "end": { + "line": 12, + "column": 29 + }, + "identifierName": "appendChild" + }, + "name": "appendChild" + }, + "computed": false + }, + "arguments": [ + { + "type": "Identifier", + "start": 310, + "end": 313, + "loc": { + "start": { + "line": 12, + "column": 30 + }, + "end": { + "line": 12, + "column": 33 + }, + "identifierName": "div" + }, + "name": "div" + } + ] + } + } + ], + "directives": [], + "trailingComments": null + }, + "trailingComments": null + }, + "leadingComments": [ + { + "type": "CommentBlock", + "value": "*\r\n * Set's a basic DOM structure to test in\r\n ", + "start": 75, + "end": 130, + "loc": { + "start": { + "line": 5, + "column": 2 + }, + "end": { + "line": 7, + "column": 5 + } + } + } + ], + "trailingComments": [ + { + "type": "CommentBlock", + "value": "*\r\n * Clears DOM structure\r\n ", + "start": 326, + "end": 363, + "loc": { + "start": { + "line": 15, + "column": 2 + }, + "end": { + "line": 17, + "column": 5 + } + } + } + ] + }, + { + "type": "ClassProperty", + "start": 367, + "end": 422, + "loc": { + "start": { + "line": 18, + "column": 2 + }, + "end": { + "line": 20, + "column": 3 + } + }, + "static": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 367, + "end": 372, + "loc": { + "start": { + "line": 18, + "column": 2 + }, + "end": { + "line": 18, + "column": 7 + }, + "identifierName": "clear" + }, + "name": "clear", + "leadingComments": null + }, + "value": { + "type": "ArrowFunctionExpression", + "start": 375, + "end": 422, + "loc": { + "start": { + "line": 18, + "column": 10 + }, + "end": { + "line": 20, + "column": 3 + } + }, + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [], + "body": { + "type": "BlockStatement", + "start": 381, + "end": 422, + "loc": { + "start": { + "line": 18, + "column": 16 + }, + "end": { + "line": 20, + "column": 3 + } + }, + "body": [ + { + "type": "ExpressionStatement", + "start": 388, + "end": 417, + "loc": { + "start": { + "line": 19, + "column": 4 + }, + "end": { + "line": 19, + "column": 33 + } + }, + "expression": { + "type": "AssignmentExpression", + "start": 388, + "end": 416, + "loc": { + "start": { + "line": 19, + "column": 4 + }, + "end": { + "line": 19, + "column": 32 + } + }, + "operator": "=", + "left": { + "type": "MemberExpression", + "start": 388, + "end": 411, + "loc": { + "start": { + "line": 19, + "column": 4 + }, + "end": { + "line": 19, + "column": 27 + } + }, + "object": { + "type": "MemberExpression", + "start": 388, + "end": 401, + "loc": { + "start": { + "line": 19, + "column": 4 + }, + "end": { + "line": 19, + "column": 17 + } + }, + "object": { + "type": "Identifier", + "start": 388, + "end": 396, + "loc": { + "start": { + "line": 19, + "column": 4 + }, + "end": { + "line": 19, + "column": 12 + }, + "identifierName": "document" + }, + "name": "document" + }, + "property": { + "type": "Identifier", + "start": 397, + "end": 401, + "loc": { + "start": { + "line": 19, + "column": 13 + }, + "end": { + "line": 19, + "column": 17 + }, + "identifierName": "body" + }, + "name": "body" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 402, + "end": 411, + "loc": { + "start": { + "line": 19, + "column": 18 + }, + "end": { + "line": 19, + "column": 27 + }, + "identifierName": "innerHTML" + }, + "name": "innerHTML" + }, + "computed": false + }, + "right": { + "type": "StringLiteral", + "start": 414, + "end": 416, + "loc": { + "start": { + "line": 19, + "column": 30 + }, + "end": { + "line": 19, + "column": 32 + } + }, + "extra": { + "rawValue": "", + "raw": "\"\"" + }, + "value": "" + } + } + } + ], + "directives": [], + "trailingComments": null + }, + "trailingComments": null + }, + "leadingComments": [ + { + "type": "CommentBlock", + "value": "*\r\n * Clears DOM structure\r\n ", + "start": 326, + "end": 363, + "loc": { + "start": { + "line": 15, + "column": 2 + }, + "end": { + "line": 17, + "column": 5 + } + } + } + ], + "trailingComments": [ + { + "type": "CommentBlock", + "value": "*\r\n * Test if standard buttons respect maxLength and do input a value\r\n ", + "start": 428, + "end": 508, + "loc": { + "start": { + "line": 22, + "column": 2 + }, + "end": { + "line": 24, + "column": 5 + } + } + } + ] + }, + { + "type": "ClassProperty", + "start": 512, + "end": 1940, + "loc": { + "start": { + "line": 25, + "column": 2 + }, + "end": { + "line": 69, + "column": 3 + } + }, + "static": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 512, + "end": 532, + "loc": { + "start": { + "line": 25, + "column": 2 + }, + "end": { + "line": 25, + "column": 22 + }, + "identifierName": "testLayoutStdButtons" + }, + "name": "testLayoutStdButtons", + "leadingComments": null + }, + "value": { + "type": "ArrowFunctionExpression", + "start": 535, + "end": 1940, + "loc": { + "start": { + "line": 25, + "column": 25 + }, + "end": { + "line": 69, + "column": 3 + } + }, + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 536, + "end": 544, + "loc": { + "start": { + "line": 25, + "column": 26 + }, + "end": { + "line": 25, + "column": 34 + }, + "identifierName": "keyboard" + }, + "name": "keyboard" + } + ], + "body": { + "type": "BlockStatement", + "start": 549, + "end": 1940, + "loc": { + "start": { + "line": 25, + "column": 39 + }, + "end": { + "line": 69, + "column": 3 + } + }, + "body": [ + { + "type": "VariableDeclaration", + "start": 556, + "end": 576, + "loc": { + "start": { + "line": 26, + "column": 4 + }, + "end": { + "line": 26, + "column": 24 + } + }, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 560, + "end": 575, + "loc": { + "start": { + "line": 26, + "column": 8 + }, + "end": { + "line": 26, + "column": 23 + } + }, + "id": { + "type": "Identifier", + "start": 560, + "end": 571, + "loc": { + "start": { + "line": 26, + "column": 8 + }, + "end": { + "line": 26, + "column": 19 + }, + "identifierName": "stdBtnCount" + }, + "name": "stdBtnCount" + }, + "init": { + "type": "NumericLiteral", + "start": 574, + "end": 575, + "loc": { + "start": { + "line": 26, + "column": 22 + }, + "end": { + "line": 26, + "column": 23 + } + }, + "extra": { + "rawValue": 0, + "raw": "0" + }, + "value": 0 + } + } + ], + "kind": "let" + }, + { + "type": "VariableDeclaration", + "start": 582, + "end": 601, + "loc": { + "start": { + "line": 27, + "column": 4 + }, + "end": { + "line": 27, + "column": 23 + } + }, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 586, + "end": 600, + "loc": { + "start": { + "line": 27, + "column": 8 + }, + "end": { + "line": 27, + "column": 22 + } + }, + "id": { + "type": "Identifier", + "start": 586, + "end": 595, + "loc": { + "start": { + "line": 27, + "column": 8 + }, + "end": { + "line": 27, + "column": 17 + }, + "identifierName": "fullInput" + }, + "name": "fullInput" + }, + "init": { + "type": "StringLiteral", + "start": 598, + "end": 600, + "loc": { + "start": { + "line": 27, + "column": 20 + }, + "end": { + "line": 27, + "column": 22 + } + }, + "extra": { + "rawValue": "", + "raw": "''" + }, + "value": "" + } + } + ], + "kind": "let" + }, + { + "type": "ExpressionStatement", + "start": 609, + "end": 1032, + "loc": { + "start": { + "line": 29, + "column": 4 + }, + "end": { + "line": 42, + "column": 7 + } + }, + "expression": { + "type": "CallExpression", + "start": 609, + "end": 1031, + "loc": { + "start": { + "line": 29, + "column": 4 + }, + "end": { + "line": 42, + "column": 6 + } + }, + "callee": { + "type": "MemberExpression", + "start": 609, + "end": 628, + "loc": { + "start": { + "line": 29, + "column": 4 + }, + "end": { + "line": 29, + "column": 23 + } + }, + "object": { + "type": "ThisExpression", + "start": 609, + "end": 613, + "loc": { + "start": { + "line": 29, + "column": 4 + }, + "end": { + "line": 29, + "column": 8 + } + } + }, + "property": { + "type": "Identifier", + "start": 614, + "end": 628, + "loc": { + "start": { + "line": 29, + "column": 9 + }, + "end": { + "line": 29, + "column": 23 + }, + "identifierName": "iterateButtons" + }, + "name": "iterateButtons" + }, + "computed": false + }, + "arguments": [ + { + "type": "ArrowFunctionExpression", + "start": 629, + "end": 1030, + "loc": { + "start": { + "line": 29, + "column": 24 + }, + "end": { + "line": 42, + "column": 5 + } + }, + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 630, + "end": 636, + "loc": { + "start": { + "line": 29, + "column": 25 + }, + "end": { + "line": 29, + "column": 31 + }, + "identifierName": "button" + }, + "name": "button" + } + ], + "body": { + "type": "BlockStatement", + "start": 641, + "end": 1030, + "loc": { + "start": { + "line": 29, + "column": 36 + }, + "end": { + "line": 42, + "column": 5 + } + }, + "body": [ + { + "type": "VariableDeclaration", + "start": 650, + "end": 696, + "loc": { + "start": { + "line": 30, + "column": 6 + }, + "end": { + "line": 30, + "column": 52 + } + }, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 654, + "end": 695, + "loc": { + "start": { + "line": 30, + "column": 10 + }, + "end": { + "line": 30, + "column": 51 + } + }, + "id": { + "type": "Identifier", + "start": 654, + "end": 659, + "loc": { + "start": { + "line": 30, + "column": 10 + }, + "end": { + "line": 30, + "column": 15 + }, + "identifierName": "label" + }, + "name": "label" + }, + "init": { + "type": "CallExpression", + "start": 662, + "end": 695, + "loc": { + "start": { + "line": 30, + "column": 18 + }, + "end": { + "line": 30, + "column": 51 + } + }, + "callee": { + "type": "MemberExpression", + "start": 662, + "end": 681, + "loc": { + "start": { + "line": 30, + "column": 18 + }, + "end": { + "line": 30, + "column": 37 + } + }, + "object": { + "type": "Identifier", + "start": 662, + "end": 668, + "loc": { + "start": { + "line": 30, + "column": 18 + }, + "end": { + "line": 30, + "column": 24 + }, + "identifierName": "button" + }, + "name": "button" + }, + "property": { + "type": "Identifier", + "start": 669, + "end": 681, + "loc": { + "start": { + "line": 30, + "column": 25 + }, + "end": { + "line": 30, + "column": 37 + }, + "identifierName": "getAttribute" + }, + "name": "getAttribute" + }, + "computed": false + }, + "arguments": [ + { + "type": "StringLiteral", + "start": 682, + "end": 694, + "loc": { + "start": { + "line": 30, + "column": 38 + }, + "end": { + "line": 30, + "column": 50 + } + }, + "extra": { + "rawValue": "data-skbtn", + "raw": "\"data-skbtn\"" + }, + "value": "data-skbtn" + } + ] + } + } + ], + "kind": "let" + }, + { + "type": "IfStatement", + "start": 706, + "end": 752, + "loc": { + "start": { + "line": 32, + "column": 6 + }, + "end": { + "line": 33, + "column": 21 + } + }, + "test": { + "type": "CallExpression", + "start": 709, + "end": 728, + "loc": { + "start": { + "line": 32, + "column": 9 + }, + "end": { + "line": 32, + "column": 28 + } + }, + "callee": { + "type": "MemberExpression", + "start": 709, + "end": 723, + "loc": { + "start": { + "line": 32, + "column": 9 + }, + "end": { + "line": 32, + "column": 23 + } + }, + "object": { + "type": "Identifier", + "start": 709, + "end": 714, + "loc": { + "start": { + "line": 32, + "column": 9 + }, + "end": { + "line": 32, + "column": 14 + }, + "identifierName": "label" + }, + "name": "label" + }, + "property": { + "type": "Identifier", + "start": 715, + "end": 723, + "loc": { + "start": { + "line": 32, + "column": 15 + }, + "end": { + "line": 32, + "column": 23 + }, + "identifierName": "includes" + }, + "name": "includes" + }, + "computed": false + }, + "arguments": [ + { + "type": "StringLiteral", + "start": 724, + "end": 727, + "loc": { + "start": { + "line": 32, + "column": 24 + }, + "end": { + "line": 32, + "column": 27 + } + }, + "extra": { + "rawValue": "{", + "raw": "\"{\"" + }, + "value": "{" + } + ] + }, + "consequent": { + "type": "ReturnStatement", + "start": 739, + "end": 752, + "loc": { + "start": { + "line": 33, + "column": 8 + }, + "end": { + "line": 33, + "column": 21 + } + }, + "argument": { + "type": "BooleanLiteral", + "start": 746, + "end": 751, + "loc": { + "start": { + "line": 33, + "column": 15 + }, + "end": { + "line": 33, + "column": 20 + } + }, + "value": false + }, + "trailingComments": null + }, + "alternate": null, + "trailingComments": [ + { + "type": "CommentLine", + "value": " Click all standard buttons, respects maxLength", + "start": 762, + "end": 811, + "loc": { + "start": { + "line": 35, + "column": 6 + }, + "end": { + "line": 35, + "column": 55 + } + } + } + ] + }, + { + "type": "ExpressionStatement", + "start": 819, + "end": 836, + "loc": { + "start": { + "line": 36, + "column": 6 + }, + "end": { + "line": 36, + "column": 23 + } + }, + "expression": { + "type": "CallExpression", + "start": 819, + "end": 835, + "loc": { + "start": { + "line": 36, + "column": 6 + }, + "end": { + "line": 36, + "column": 22 + } + }, + "callee": { + "type": "MemberExpression", + "start": 819, + "end": 833, + "loc": { + "start": { + "line": 36, + "column": 6 + }, + "end": { + "line": 36, + "column": 20 + } + }, + "object": { + "type": "Identifier", + "start": 819, + "end": 825, + "loc": { + "start": { + "line": 36, + "column": 6 + }, + "end": { + "line": 36, + "column": 12 + }, + "identifierName": "button" + }, + "name": "button", + "leadingComments": null + }, + "property": { + "type": "Identifier", + "start": 826, + "end": 833, + "loc": { + "start": { + "line": 36, + "column": 13 + }, + "end": { + "line": 36, + "column": 20 + }, + "identifierName": "onclick" + }, + "name": "onclick" + }, + "computed": false, + "leadingComments": null + }, + "arguments": [], + "leadingComments": null + }, + "leadingComments": [ + { + "type": "CommentLine", + "value": " Click all standard buttons, respects maxLength", + "start": 762, + "end": 811, + "loc": { + "start": { + "line": 35, + "column": 6 + }, + "end": { + "line": 35, + "column": 55 + } + } + } + ], + "trailingComments": [ + { + "type": "CommentLine", + "value": " Recording fullInput, bypasses maxLength", + "start": 846, + "end": 888, + "loc": { + "start": { + "line": 38, + "column": 6 + }, + "end": { + "line": 38, + "column": 48 + } + } + } + ] + }, + { + "type": "ExpressionStatement", + "start": 896, + "end": 985, + "loc": { + "start": { + "line": 39, + "column": 6 + }, + "end": { + "line": 39, + "column": 95 + } + }, + "expression": { + "type": "AssignmentExpression", + "start": 896, + "end": 984, + "loc": { + "start": { + "line": 39, + "column": 6 + }, + "end": { + "line": 39, + "column": 94 + } + }, + "operator": "=", + "left": { + "type": "Identifier", + "start": 896, + "end": 905, + "loc": { + "start": { + "line": 39, + "column": 6 + }, + "end": { + "line": 39, + "column": 15 + }, + "identifierName": "fullInput" + }, + "name": "fullInput", + "leadingComments": null + }, + "right": { + "type": "CallExpression", + "start": 908, + "end": 984, + "loc": { + "start": { + "line": 39, + "column": 18 + }, + "end": { + "line": 39, + "column": 94 + } + }, + "callee": { + "type": "MemberExpression", + "start": 908, + "end": 942, + "loc": { + "start": { + "line": 39, + "column": 18 + }, + "end": { + "line": 39, + "column": 52 + } + }, + "object": { + "type": "MemberExpression", + "start": 908, + "end": 926, + "loc": { + "start": { + "line": 39, + "column": 18 + }, + "end": { + "line": 39, + "column": 36 + } + }, + "object": { + "type": "Identifier", + "start": 908, + "end": 916, + "loc": { + "start": { + "line": 39, + "column": 18 + }, + "end": { + "line": 39, + "column": 26 + }, + "identifierName": "keyboard" + }, + "name": "keyboard" + }, + "property": { + "type": "Identifier", + "start": 917, + "end": 926, + "loc": { + "start": { + "line": 39, + "column": 27 + }, + "end": { + "line": 39, + "column": 36 + }, + "identifierName": "utilities" + }, + "name": "utilities" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 927, + "end": 942, + "loc": { + "start": { + "line": 39, + "column": 37 + }, + "end": { + "line": 39, + "column": 52 + }, + "identifierName": "getUpdatedInput" + }, + "name": "getUpdatedInput" + }, + "computed": false + }, + "arguments": [ + { + "type": "Identifier", + "start": 943, + "end": 948, + "loc": { + "start": { + "line": 39, + "column": 53 + }, + "end": { + "line": 39, + "column": 58 + }, + "identifierName": "label" + }, + "name": "label" + }, + { + "type": "Identifier", + "start": 950, + "end": 959, + "loc": { + "start": { + "line": 39, + "column": 60 + }, + "end": { + "line": 39, + "column": 69 + }, + "identifierName": "fullInput" + }, + "name": "fullInput" + }, + { + "type": "MemberExpression", + "start": 961, + "end": 977, + "loc": { + "start": { + "line": 39, + "column": 71 + }, + "end": { + "line": 39, + "column": 87 + } + }, + "object": { + "type": "Identifier", + "start": 961, + "end": 969, + "loc": { + "start": { + "line": 39, + "column": 71 + }, + "end": { + "line": 39, + "column": 79 + }, + "identifierName": "keyboard" + }, + "name": "keyboard" + }, + "property": { + "type": "Identifier", + "start": 970, + "end": 977, + "loc": { + "start": { + "line": 39, + "column": 80 + }, + "end": { + "line": 39, + "column": 87 + }, + "identifierName": "options" + }, + "name": "options" + }, + "computed": false + }, + { + "type": "NullLiteral", + "start": 979, + "end": 983, + "loc": { + "start": { + "line": 39, + "column": 89 + }, + "end": { + "line": 39, + "column": 93 + } + } + } + ] + }, + "leadingComments": null + }, + "leadingComments": [ + { + "type": "CommentLine", + "value": " Recording fullInput, bypasses maxLength", + "start": 846, + "end": 888, + "loc": { + "start": { + "line": 38, + "column": 6 + }, + "end": { + "line": 38, + "column": 48 + } + } + } + ] + }, + { + "type": "ExpressionStatement", + "start": 995, + "end": 1023, + "loc": { + "start": { + "line": 41, + "column": 6 + }, + "end": { + "line": 41, + "column": 34 + } + }, + "expression": { + "type": "AssignmentExpression", + "start": 995, + "end": 1022, + "loc": { + "start": { + "line": 41, + "column": 6 + }, + "end": { + "line": 41, + "column": 33 + } + }, + "operator": "+=", + "left": { + "type": "Identifier", + "start": 995, + "end": 1006, + "loc": { + "start": { + "line": 41, + "column": 6 + }, + "end": { + "line": 41, + "column": 17 + }, + "identifierName": "stdBtnCount" + }, + "name": "stdBtnCount" + }, + "right": { + "type": "MemberExpression", + "start": 1010, + "end": 1022, + "loc": { + "start": { + "line": 41, + "column": 21 + }, + "end": { + "line": 41, + "column": 33 + } + }, + "object": { + "type": "Identifier", + "start": 1010, + "end": 1015, + "loc": { + "start": { + "line": 41, + "column": 21 + }, + "end": { + "line": 41, + "column": 26 + }, + "identifierName": "label" + }, + "name": "label" + }, + "property": { + "type": "Identifier", + "start": 1016, + "end": 1022, + "loc": { + "start": { + "line": 41, + "column": 27 + }, + "end": { + "line": 41, + "column": 33 + }, + "identifierName": "length" + }, + "name": "length" + }, + "computed": false + } + } + } + ], + "directives": [] + } + } + ] + }, + "trailingComments": [ + { + "type": "CommentBlock", + "value": "*\r\n * Check if maxLength is respected\r\n ", + "start": 1040, + "end": 1092, + "loc": { + "start": { + "line": 44, + "column": 4 + }, + "end": { + "line": 46, + "column": 7 + } + } + } + ] + }, + { + "type": "IfStatement", + "start": 1098, + "end": 1609, + "loc": { + "start": { + "line": 47, + "column": 4 + }, + "end": { + "line": 59, + "column": 125 + } + }, + "test": { + "type": "LogicalExpression", + "start": 1109, + "end": 1421, + "loc": { + "start": { + "line": 48, + "column": 6 + }, + "end": { + "line": 55, + "column": 7 + } + }, + "left": { + "type": "LogicalExpression", + "start": 1120, + "end": 1265, + "loc": { + "start": { + "line": 49, + "column": 8 + }, + "end": { + "line": 50, + "column": 94 + } + }, + "left": { + "type": "BinaryExpression", + "start": 1120, + "end": 1166, + "loc": { + "start": { + "line": 49, + "column": 8 + }, + "end": { + "line": 49, + "column": 54 + } + }, + "left": { + "type": "UnaryExpression", + "start": 1120, + "end": 1153, + "loc": { + "start": { + "line": 49, + "column": 8 + }, + "end": { + "line": 49, + "column": 41 + } + }, + "operator": "typeof", + "prefix": true, + "argument": { + "type": "MemberExpression", + "start": 1127, + "end": 1153, + "loc": { + "start": { + "line": 49, + "column": 15 + }, + "end": { + "line": 49, + "column": 41 + } + }, + "object": { + "type": "MemberExpression", + "start": 1127, + "end": 1143, + "loc": { + "start": { + "line": 49, + "column": 15 + }, + "end": { + "line": 49, + "column": 31 + } + }, + "object": { + "type": "Identifier", + "start": 1127, + "end": 1135, + "loc": { + "start": { + "line": 49, + "column": 15 + }, + "end": { + "line": 49, + "column": 23 + }, + "identifierName": "keyboard" + }, + "name": "keyboard", + "leadingComments": null + }, + "property": { + "type": "Identifier", + "start": 1136, + "end": 1143, + "loc": { + "start": { + "line": 49, + "column": 24 + }, + "end": { + "line": 49, + "column": 31 + }, + "identifierName": "options" + }, + "name": "options" + }, + "computed": false, + "leadingComments": null + }, + "property": { + "type": "Identifier", + "start": 1144, + "end": 1153, + "loc": { + "start": { + "line": 49, + "column": 32 + }, + "end": { + "line": 49, + "column": 41 + }, + "identifierName": "maxLength" + }, + "name": "maxLength" + }, + "computed": false, + "leadingComments": null + }, + "extra": { + "parenthesizedArgument": false + }, + "leadingComments": null + }, + "operator": "===", + "right": { + "type": "StringLiteral", + "start": 1158, + "end": 1166, + "loc": { + "start": { + "line": 49, + "column": 46 + }, + "end": { + "line": 49, + "column": 54 + } + }, + "extra": { + "rawValue": "object", + "raw": "\"object\"" + }, + "value": "object" + }, + "leadingComments": null + }, + "operator": "&&", + "right": { + "type": "BinaryExpression", + "start": 1179, + "end": 1265, + "loc": { + "start": { + "line": 50, + "column": 8 + }, + "end": { + "line": 50, + "column": 94 + } + }, + "left": { + "type": "MemberExpression", + "start": 1179, + "end": 1205, + "loc": { + "start": { + "line": 50, + "column": 8 + }, + "end": { + "line": 50, + "column": 34 + } + }, + "object": { + "type": "CallExpression", + "start": 1179, + "end": 1198, + "loc": { + "start": { + "line": 50, + "column": 8 + }, + "end": { + "line": 50, + "column": 27 + } + }, + "callee": { + "type": "MemberExpression", + "start": 1179, + "end": 1196, + "loc": { + "start": { + "line": 50, + "column": 8 + }, + "end": { + "line": 50, + "column": 25 + } + }, + "object": { + "type": "Identifier", + "start": 1179, + "end": 1187, + "loc": { + "start": { + "line": 50, + "column": 8 + }, + "end": { + "line": 50, + "column": 16 + }, + "identifierName": "keyboard" + }, + "name": "keyboard" + }, + "property": { + "type": "Identifier", + "start": 1188, + "end": 1196, + "loc": { + "start": { + "line": 50, + "column": 17 + }, + "end": { + "line": 50, + "column": 25 + }, + "identifierName": "getInput" + }, + "name": "getInput" + }, + "computed": false + }, + "arguments": [] + }, + "property": { + "type": "Identifier", + "start": 1199, + "end": 1205, + "loc": { + "start": { + "line": 50, + "column": 28 + }, + "end": { + "line": 50, + "column": 34 + }, + "identifierName": "length" + }, + "name": "length" + }, + "computed": false + }, + "operator": "!==", + "right": { + "type": "MemberExpression", + "start": 1210, + "end": 1265, + "loc": { + "start": { + "line": 50, + "column": 39 + }, + "end": { + "line": 50, + "column": 94 + } + }, + "object": { + "type": "MemberExpression", + "start": 1210, + "end": 1236, + "loc": { + "start": { + "line": 50, + "column": 39 + }, + "end": { + "line": 50, + "column": 65 + } + }, + "object": { + "type": "MemberExpression", + "start": 1210, + "end": 1226, + "loc": { + "start": { + "line": 50, + "column": 39 + }, + "end": { + "line": 50, + "column": 55 + } + }, + "object": { + "type": "Identifier", + "start": 1210, + "end": 1218, + "loc": { + "start": { + "line": 50, + "column": 39 + }, + "end": { + "line": 50, + "column": 47 + }, + "identifierName": "keyboard" + }, + "name": "keyboard" + }, + "property": { + "type": "Identifier", + "start": 1219, + "end": 1226, + "loc": { + "start": { + "line": 50, + "column": 48 + }, + "end": { + "line": 50, + "column": 55 + }, + "identifierName": "options" + }, + "name": "options" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 1227, + "end": 1236, + "loc": { + "start": { + "line": 50, + "column": 56 + }, + "end": { + "line": 50, + "column": 65 + }, + "identifierName": "maxLength" + }, + "name": "maxLength" + }, + "computed": false + }, + "property": { + "type": "MemberExpression", + "start": 1237, + "end": 1264, + "loc": { + "start": { + "line": 50, + "column": 66 + }, + "end": { + "line": 50, + "column": 93 + } + }, + "object": { + "type": "MemberExpression", + "start": 1237, + "end": 1253, + "loc": { + "start": { + "line": 50, + "column": 66 + }, + "end": { + "line": 50, + "column": 82 + } + }, + "object": { + "type": "Identifier", + "start": 1237, + "end": 1245, + "loc": { + "start": { + "line": 50, + "column": 66 + }, + "end": { + "line": 50, + "column": 74 + }, + "identifierName": "keyboard" + }, + "name": "keyboard" + }, + "property": { + "type": "Identifier", + "start": 1246, + "end": 1253, + "loc": { + "start": { + "line": 50, + "column": 75 + }, + "end": { + "line": 50, + "column": 82 + }, + "identifierName": "options" + }, + "name": "options" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 1254, + "end": 1264, + "loc": { + "start": { + "line": 50, + "column": 83 + }, + "end": { + "line": 50, + "column": 93 + }, + "identifierName": "layoutName" + }, + "name": "layoutName" + }, + "computed": false + }, + "computed": true + } + }, + "leadingComments": null, + "extra": { + "parenthesized": true, + "parenStart": 1109 + } + }, + "operator": "||", + "right": { + "type": "LogicalExpression", + "start": 1296, + "end": 1412, + "loc": { + "start": { + "line": 53, + "column": 8 + }, + "end": { + "line": 54, + "column": 65 + } + }, + "left": { + "type": "BinaryExpression", + "start": 1296, + "end": 1342, + "loc": { + "start": { + "line": 53, + "column": 8 + }, + "end": { + "line": 53, + "column": 54 + } + }, + "left": { + "type": "UnaryExpression", + "start": 1296, + "end": 1329, + "loc": { + "start": { + "line": 53, + "column": 8 + }, + "end": { + "line": 53, + "column": 41 + } + }, + "operator": "typeof", + "prefix": true, + "argument": { + "type": "MemberExpression", + "start": 1303, + "end": 1329, + "loc": { + "start": { + "line": 53, + "column": 15 + }, + "end": { + "line": 53, + "column": 41 + } + }, + "object": { + "type": "MemberExpression", + "start": 1303, + "end": 1319, + "loc": { + "start": { + "line": 53, + "column": 15 + }, + "end": { + "line": 53, + "column": 31 + } + }, + "object": { + "type": "Identifier", + "start": 1303, + "end": 1311, + "loc": { + "start": { + "line": 53, + "column": 15 + }, + "end": { + "line": 53, + "column": 23 + }, + "identifierName": "keyboard" + }, + "name": "keyboard" + }, + "property": { + "type": "Identifier", + "start": 1312, + "end": 1319, + "loc": { + "start": { + "line": 53, + "column": 24 + }, + "end": { + "line": 53, + "column": 31 + }, + "identifierName": "options" + }, + "name": "options" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 1320, + "end": 1329, + "loc": { + "start": { + "line": 53, + "column": 32 + }, + "end": { + "line": 53, + "column": 41 + }, + "identifierName": "maxLength" + }, + "name": "maxLength" + }, + "computed": false + }, + "extra": { + "parenthesizedArgument": false + } + }, + "operator": "!==", + "right": { + "type": "StringLiteral", + "start": 1334, + "end": 1342, + "loc": { + "start": { + "line": 53, + "column": 46 + }, + "end": { + "line": 53, + "column": 54 + } + }, + "extra": { + "rawValue": "object", + "raw": "\"object\"" + }, + "value": "object" + } + }, + "operator": "&&", + "right": { + "type": "BinaryExpression", + "start": 1355, + "end": 1412, + "loc": { + "start": { + "line": 54, + "column": 8 + }, + "end": { + "line": 54, + "column": 65 + } + }, + "left": { + "type": "MemberExpression", + "start": 1355, + "end": 1381, + "loc": { + "start": { + "line": 54, + "column": 8 + }, + "end": { + "line": 54, + "column": 34 + } + }, + "object": { + "type": "CallExpression", + "start": 1355, + "end": 1374, + "loc": { + "start": { + "line": 54, + "column": 8 + }, + "end": { + "line": 54, + "column": 27 + } + }, + "callee": { + "type": "MemberExpression", + "start": 1355, + "end": 1372, + "loc": { + "start": { + "line": 54, + "column": 8 + }, + "end": { + "line": 54, + "column": 25 + } + }, + "object": { + "type": "Identifier", + "start": 1355, + "end": 1363, + "loc": { + "start": { + "line": 54, + "column": 8 + }, + "end": { + "line": 54, + "column": 16 + }, + "identifierName": "keyboard" + }, + "name": "keyboard" + }, + "property": { + "type": "Identifier", + "start": 1364, + "end": 1372, + "loc": { + "start": { + "line": 54, + "column": 17 + }, + "end": { + "line": 54, + "column": 25 + }, + "identifierName": "getInput" + }, + "name": "getInput" + }, + "computed": false + }, + "arguments": [] + }, + "property": { + "type": "Identifier", + "start": 1375, + "end": 1381, + "loc": { + "start": { + "line": 54, + "column": 28 + }, + "end": { + "line": 54, + "column": 34 + }, + "identifierName": "length" + }, + "name": "length" + }, + "computed": false + }, + "operator": "!==", + "right": { + "type": "MemberExpression", + "start": 1386, + "end": 1412, + "loc": { + "start": { + "line": 54, + "column": 39 + }, + "end": { + "line": 54, + "column": 65 + } + }, + "object": { + "type": "MemberExpression", + "start": 1386, + "end": 1402, + "loc": { + "start": { + "line": 54, + "column": 39 + }, + "end": { + "line": 54, + "column": 55 + } + }, + "object": { + "type": "Identifier", + "start": 1386, + "end": 1394, + "loc": { + "start": { + "line": 54, + "column": 39 + }, + "end": { + "line": 54, + "column": 47 + }, + "identifierName": "keyboard" + }, + "name": "keyboard" + }, + "property": { + "type": "Identifier", + "start": 1395, + "end": 1402, + "loc": { + "start": { + "line": 54, + "column": 48 + }, + "end": { + "line": 54, + "column": 55 + }, + "identifierName": "options" + }, + "name": "options" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 1403, + "end": 1412, + "loc": { + "start": { + "line": 54, + "column": 56 + }, + "end": { + "line": 54, + "column": 65 + }, + "identifierName": "maxLength" + }, + "name": "maxLength" + }, + "computed": false + } + }, + "extra": { + "parenthesized": true, + "parenStart": 1285 + } + }, + "leadingComments": null + }, + "consequent": { + "type": "ThrowStatement", + "start": 1436, + "end": 1472, + "loc": { + "start": { + "line": 57, + "column": 6 + }, + "end": { + "line": 57, + "column": 42 + } + }, + "argument": { + "type": "NewExpression", + "start": 1442, + "end": 1471, + "loc": { + "start": { + "line": 57, + "column": 12 + }, + "end": { + "line": 57, + "column": 41 + } + }, + "callee": { + "type": "Identifier", + "start": 1446, + "end": 1451, + "loc": { + "start": { + "line": 57, + "column": 16 + }, + "end": { + "line": 57, + "column": 21 + }, + "identifierName": "Error" + }, + "name": "Error" + }, + "arguments": [ + { + "type": "StringLiteral", + "start": 1452, + "end": 1470, + "loc": { + "start": { + "line": 57, + "column": 22 + }, + "end": { + "line": 57, + "column": 40 + } + }, + "extra": { + "rawValue": "MAX_LENGTH_ISSUE", + "raw": "\"MAX_LENGTH_ISSUE\"" + }, + "value": "MAX_LENGTH_ISSUE" + } + ] + } + }, + "alternate": { + "type": "ExpressionStatement", + "start": 1490, + "end": 1609, + "loc": { + "start": { + "line": 59, + "column": 6 + }, + "end": { + "line": 59, + "column": 125 + } + }, + "expression": { + "type": "CallExpression", + "start": 1490, + "end": 1608, + "loc": { + "start": { + "line": 59, + "column": 6 + }, + "end": { + "line": 59, + "column": 124 + } + }, + "callee": { + "type": "MemberExpression", + "start": 1490, + "end": 1501, + "loc": { + "start": { + "line": 59, + "column": 6 + }, + "end": { + "line": 59, + "column": 17 + } + }, + "object": { + "type": "Identifier", + "start": 1490, + "end": 1497, + "loc": { + "start": { + "line": 59, + "column": 6 + }, + "end": { + "line": 59, + "column": 13 + }, + "identifierName": "console" + }, + "name": "console" + }, + "property": { + "type": "Identifier", + "start": 1498, + "end": 1501, + "loc": { + "start": { + "line": 59, + "column": 14 + }, + "end": { + "line": 59, + "column": 17 + }, + "identifierName": "log" + }, + "name": "log" + }, + "computed": false + }, + "arguments": [ + { + "type": "StringLiteral", + "start": 1502, + "end": 1522, + "loc": { + "start": { + "line": 59, + "column": 18 + }, + "end": { + "line": 59, + "column": 38 + } + }, + "extra": { + "rawValue": "MAX_LENGTH PASSED:", + "raw": "\"MAX_LENGTH PASSED:\"" + }, + "value": "MAX_LENGTH PASSED:" + }, + { + "type": "MemberExpression", + "start": 1524, + "end": 1551, + "loc": { + "start": { + "line": 59, + "column": 40 + }, + "end": { + "line": 59, + "column": 67 + } + }, + "object": { + "type": "MemberExpression", + "start": 1524, + "end": 1540, + "loc": { + "start": { + "line": 59, + "column": 40 + }, + "end": { + "line": 59, + "column": 56 + } + }, + "object": { + "type": "Identifier", + "start": 1524, + "end": 1532, + "loc": { + "start": { + "line": 59, + "column": 40 + }, + "end": { + "line": 59, + "column": 48 + }, + "identifierName": "keyboard" + }, + "name": "keyboard" + }, + "property": { + "type": "Identifier", + "start": 1533, + "end": 1540, + "loc": { + "start": { + "line": 59, + "column": 49 + }, + "end": { + "line": 59, + "column": 56 + }, + "identifierName": "options" + }, + "name": "options" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 1541, + "end": 1551, + "loc": { + "start": { + "line": 59, + "column": 57 + }, + "end": { + "line": 59, + "column": 67 + }, + "identifierName": "layoutName" + }, + "name": "layoutName" + }, + "computed": false + }, + { + "type": "MemberExpression", + "start": 1553, + "end": 1579, + "loc": { + "start": { + "line": 59, + "column": 69 + }, + "end": { + "line": 59, + "column": 95 + } + }, + "object": { + "type": "CallExpression", + "start": 1553, + "end": 1572, + "loc": { + "start": { + "line": 59, + "column": 69 + }, + "end": { + "line": 59, + "column": 88 + } + }, + "callee": { + "type": "MemberExpression", + "start": 1553, + "end": 1570, + "loc": { + "start": { + "line": 59, + "column": 69 + }, + "end": { + "line": 59, + "column": 86 + } + }, + "object": { + "type": "Identifier", + "start": 1553, + "end": 1561, + "loc": { + "start": { + "line": 59, + "column": 69 + }, + "end": { + "line": 59, + "column": 77 + }, + "identifierName": "keyboard" + }, + "name": "keyboard" + }, + "property": { + "type": "Identifier", + "start": 1562, + "end": 1570, + "loc": { + "start": { + "line": 59, + "column": 78 + }, + "end": { + "line": 59, + "column": 86 + }, + "identifierName": "getInput" + }, + "name": "getInput" + }, + "computed": false + }, + "arguments": [] + }, + "property": { + "type": "Identifier", + "start": 1573, + "end": 1579, + "loc": { + "start": { + "line": 59, + "column": 89 + }, + "end": { + "line": 59, + "column": 95 + }, + "identifierName": "length" + }, + "name": "length" + }, + "computed": false + }, + { + "type": "MemberExpression", + "start": 1581, + "end": 1607, + "loc": { + "start": { + "line": 59, + "column": 97 + }, + "end": { + "line": 59, + "column": 123 + } + }, + "object": { + "type": "MemberExpression", + "start": 1581, + "end": 1597, + "loc": { + "start": { + "line": 59, + "column": 97 + }, + "end": { + "line": 59, + "column": 113 + } + }, + "object": { + "type": "Identifier", + "start": 1581, + "end": 1589, + "loc": { + "start": { + "line": 59, + "column": 97 + }, + "end": { + "line": 59, + "column": 105 + }, + "identifierName": "keyboard" + }, + "name": "keyboard" + }, + "property": { + "type": "Identifier", + "start": 1590, + "end": 1597, + "loc": { + "start": { + "line": 59, + "column": 106 + }, + "end": { + "line": 59, + "column": 113 + }, + "identifierName": "options" + }, + "name": "options" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 1598, + "end": 1607, + "loc": { + "start": { + "line": 59, + "column": 114 + }, + "end": { + "line": 59, + "column": 123 + }, + "identifierName": "maxLength" + }, + "name": "maxLength" + }, + "computed": false + } + ] + }, + "trailingComments": null + }, + "leadingComments": [ + { + "type": "CommentBlock", + "value": "*\r\n * Check if maxLength is respected\r\n ", + "start": 1040, + "end": 1092, + "loc": { + "start": { + "line": 44, + "column": 4 + }, + "end": { + "line": 46, + "column": 7 + } + } + } + ], + "trailingComments": [ + { + "type": "CommentBlock", + "value": "*\r\n * Check if all standard buttons are inputting something\r\n * (Regardless of maxLength)\r\n ", + "start": 1617, + "end": 1725, + "loc": { + "start": { + "line": 61, + "column": 4 + }, + "end": { + "line": 64, + "column": 7 + } + } + } + ] + }, + { + "type": "IfStatement", + "start": 1731, + "end": 1935, + "loc": { + "start": { + "line": 65, + "column": 4 + }, + "end": { + "line": 68, + "column": 106 + } + }, + "test": { + "type": "BinaryExpression", + "start": 1734, + "end": 1766, + "loc": { + "start": { + "line": 65, + "column": 7 + }, + "end": { + "line": 65, + "column": 39 + } + }, + "left": { + "type": "Identifier", + "start": 1734, + "end": 1745, + "loc": { + "start": { + "line": 65, + "column": 7 + }, + "end": { + "line": 65, + "column": 18 + }, + "identifierName": "stdBtnCount" + }, + "name": "stdBtnCount", + "leadingComments": null + }, + "operator": "!==", + "right": { + "type": "MemberExpression", + "start": 1750, + "end": 1766, + "loc": { + "start": { + "line": 65, + "column": 23 + }, + "end": { + "line": 65, + "column": 39 + } + }, + "object": { + "type": "Identifier", + "start": 1750, + "end": 1759, + "loc": { + "start": { + "line": 65, + "column": 23 + }, + "end": { + "line": 65, + "column": 32 + }, + "identifierName": "fullInput" + }, + "name": "fullInput" + }, + "property": { + "type": "Identifier", + "start": 1760, + "end": 1766, + "loc": { + "start": { + "line": 65, + "column": 33 + }, + "end": { + "line": 65, + "column": 39 + }, + "identifierName": "length" + }, + "name": "length" + }, + "computed": false + }, + "leadingComments": null + }, + "consequent": { + "type": "ThrowStatement", + "start": 1775, + "end": 1817, + "loc": { + "start": { + "line": 66, + "column": 6 + }, + "end": { + "line": 66, + "column": 48 + } + }, + "argument": { + "type": "NewExpression", + "start": 1781, + "end": 1816, + "loc": { + "start": { + "line": 66, + "column": 12 + }, + "end": { + "line": 66, + "column": 47 + } + }, + "callee": { + "type": "Identifier", + "start": 1785, + "end": 1790, + "loc": { + "start": { + "line": 66, + "column": 16 + }, + "end": { + "line": 66, + "column": 21 + }, + "identifierName": "Error" + }, + "name": "Error" + }, + "arguments": [ + { + "type": "StringLiteral", + "start": 1791, + "end": 1815, + "loc": { + "start": { + "line": 66, + "column": 22 + }, + "end": { + "line": 66, + "column": 46 + } + }, + "extra": { + "rawValue": "STANDARD_BUTTONS_ISSUE", + "raw": "\"STANDARD_BUTTONS_ISSUE\"" + }, + "value": "STANDARD_BUTTONS_ISSUE" + } + ] + } + }, + "alternate": { + "type": "ExpressionStatement", + "start": 1835, + "end": 1935, + "loc": { + "start": { + "line": 68, + "column": 6 + }, + "end": { + "line": 68, + "column": 106 + } + }, + "expression": { + "type": "CallExpression", + "start": 1835, + "end": 1934, + "loc": { + "start": { + "line": 68, + "column": 6 + }, + "end": { + "line": 68, + "column": 105 + } + }, + "callee": { + "type": "MemberExpression", + "start": 1835, + "end": 1846, + "loc": { + "start": { + "line": 68, + "column": 6 + }, + "end": { + "line": 68, + "column": 17 + } + }, + "object": { + "type": "Identifier", + "start": 1835, + "end": 1842, + "loc": { + "start": { + "line": 68, + "column": 6 + }, + "end": { + "line": 68, + "column": 13 + }, + "identifierName": "console" + }, + "name": "console" + }, + "property": { + "type": "Identifier", + "start": 1843, + "end": 1846, + "loc": { + "start": { + "line": 68, + "column": 14 + }, + "end": { + "line": 68, + "column": 17 + }, + "identifierName": "log" + }, + "name": "log" + }, + "computed": false + }, + "arguments": [ + { + "type": "StringLiteral", + "start": 1847, + "end": 1873, + "loc": { + "start": { + "line": 68, + "column": 18 + }, + "end": { + "line": 68, + "column": 44 + } + }, + "extra": { + "rawValue": "STANDARD_BUTTONS PASSED:", + "raw": "\"STANDARD_BUTTONS PASSED:\"" + }, + "value": "STANDARD_BUTTONS PASSED:" + }, + { + "type": "MemberExpression", + "start": 1875, + "end": 1902, + "loc": { + "start": { + "line": 68, + "column": 46 + }, + "end": { + "line": 68, + "column": 73 + } + }, + "object": { + "type": "MemberExpression", + "start": 1875, + "end": 1891, + "loc": { + "start": { + "line": 68, + "column": 46 + }, + "end": { + "line": 68, + "column": 62 + } + }, + "object": { + "type": "Identifier", + "start": 1875, + "end": 1883, + "loc": { + "start": { + "line": 68, + "column": 46 + }, + "end": { + "line": 68, + "column": 54 + }, + "identifierName": "keyboard" + }, + "name": "keyboard" + }, + "property": { + "type": "Identifier", + "start": 1884, + "end": 1891, + "loc": { + "start": { + "line": 68, + "column": 55 + }, + "end": { + "line": 68, + "column": 62 + }, + "identifierName": "options" + }, + "name": "options" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 1892, + "end": 1902, + "loc": { + "start": { + "line": 68, + "column": 63 + }, + "end": { + "line": 68, + "column": 73 + }, + "identifierName": "layoutName" + }, + "name": "layoutName" + }, + "computed": false + }, + { + "type": "Identifier", + "start": 1904, + "end": 1915, + "loc": { + "start": { + "line": 68, + "column": 75 + }, + "end": { + "line": 68, + "column": 86 + }, + "identifierName": "stdBtnCount" + }, + "name": "stdBtnCount" + }, + { + "type": "MemberExpression", + "start": 1917, + "end": 1933, + "loc": { + "start": { + "line": 68, + "column": 88 + }, + "end": { + "line": 68, + "column": 104 + } + }, + "object": { + "type": "Identifier", + "start": 1917, + "end": 1926, + "loc": { + "start": { + "line": 68, + "column": 88 + }, + "end": { + "line": 68, + "column": 97 + }, + "identifierName": "fullInput" + }, + "name": "fullInput" + }, + "property": { + "type": "Identifier", + "start": 1927, + "end": 1933, + "loc": { + "start": { + "line": 68, + "column": 98 + }, + "end": { + "line": 68, + "column": 104 + }, + "identifierName": "length" + }, + "name": "length" + }, + "computed": false + } + ] + } + }, + "leadingComments": [ + { + "type": "CommentBlock", + "value": "*\r\n * Check if all standard buttons are inputting something\r\n * (Regardless of maxLength)\r\n ", + "start": 1617, + "end": 1725, + "loc": { + "start": { + "line": 61, + "column": 4 + }, + "end": { + "line": 64, + "column": 7 + } + } + } + ] + } + ], + "directives": [], + "trailingComments": null + }, + "trailingComments": null + }, + "leadingComments": [ + { + "type": "CommentBlock", + "value": "*\r\n * Test if standard buttons respect maxLength and do input a value\r\n ", + "start": 428, + "end": 508, + "loc": { + "start": { + "line": 22, + "column": 2 + }, + "end": { + "line": 24, + "column": 5 + } + } + } + ], + "trailingComments": [ + { + "type": "CommentBlock", + "value": "*\r\n * Test if function buttons are interactive (have an onclick)\r\n ", + "start": 1946, + "end": 2021, + "loc": { + "start": { + "line": 71, + "column": 2 + }, + "end": { + "line": 73, + "column": 5 + } + } + } + ] + }, + { + "type": "ClassProperty", + "start": 2025, + "end": 2493, + "loc": { + "start": { + "line": 74, + "column": 2 + }, + "end": { + "line": 93, + "column": 3 + } + }, + "static": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 2025, + "end": 2045, + "loc": { + "start": { + "line": 74, + "column": 2 + }, + "end": { + "line": 74, + "column": 22 + }, + "identifierName": "testLayoutFctButtons" + }, + "name": "testLayoutFctButtons", + "leadingComments": null + }, + "value": { + "type": "ArrowFunctionExpression", + "start": 2048, + "end": 2493, + "loc": { + "start": { + "line": 74, + "column": 25 + }, + "end": { + "line": 93, + "column": 3 + } + }, + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 2049, + "end": 2057, + "loc": { + "start": { + "line": 74, + "column": 26 + }, + "end": { + "line": 74, + "column": 34 + }, + "identifierName": "callback" + }, + "name": "callback" + } + ], + "body": { + "type": "BlockStatement", + "start": 2062, + "end": 2493, + "loc": { + "start": { + "line": 74, + "column": 39 + }, + "end": { + "line": 93, + "column": 3 + } + }, + "body": [ + { + "type": "VariableDeclaration", + "start": 2069, + "end": 2089, + "loc": { + "start": { + "line": 75, + "column": 4 + }, + "end": { + "line": 75, + "column": 24 + } + }, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 2073, + "end": 2088, + "loc": { + "start": { + "line": 75, + "column": 8 + }, + "end": { + "line": 75, + "column": 23 + } + }, + "id": { + "type": "Identifier", + "start": 2073, + "end": 2084, + "loc": { + "start": { + "line": 75, + "column": 8 + }, + "end": { + "line": 75, + "column": 19 + }, + "identifierName": "fctBtnCount" + }, + "name": "fctBtnCount" + }, + "init": { + "type": "NumericLiteral", + "start": 2087, + "end": 2088, + "loc": { + "start": { + "line": 75, + "column": 22 + }, + "end": { + "line": 75, + "column": 23 + } + }, + "extra": { + "rawValue": 0, + "raw": "0" + }, + "value": 0 + } + } + ], + "kind": "let" + }, + { + "type": "VariableDeclaration", + "start": 2095, + "end": 2125, + "loc": { + "start": { + "line": 76, + "column": 4 + }, + "end": { + "line": 76, + "column": 34 + } + }, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 2099, + "end": 2124, + "loc": { + "start": { + "line": 76, + "column": 8 + }, + "end": { + "line": 76, + "column": 33 + } + }, + "id": { + "type": "Identifier", + "start": 2099, + "end": 2120, + "loc": { + "start": { + "line": 76, + "column": 8 + }, + "end": { + "line": 76, + "column": 29 + }, + "identifierName": "fctBtnHasOnclickCount" + }, + "name": "fctBtnHasOnclickCount" + }, + "init": { + "type": "NumericLiteral", + "start": 2123, + "end": 2124, + "loc": { + "start": { + "line": 76, + "column": 32 + }, + "end": { + "line": 76, + "column": 33 + } + }, + "extra": { + "rawValue": 0, + "raw": "0" + }, + "value": 0 + } + } + ], + "kind": "let" + }, + { + "type": "ExpressionStatement", + "start": 2133, + "end": 2488, + "loc": { + "start": { + "line": 78, + "column": 4 + }, + "end": { + "line": 92, + "column": 7 + } + }, + "expression": { + "type": "CallExpression", + "start": 2133, + "end": 2487, + "loc": { + "start": { + "line": 78, + "column": 4 + }, + "end": { + "line": 92, + "column": 6 + } + }, + "callee": { + "type": "MemberExpression", + "start": 2133, + "end": 2152, + "loc": { + "start": { + "line": 78, + "column": 4 + }, + "end": { + "line": 78, + "column": 23 + } + }, + "object": { + "type": "ThisExpression", + "start": 2133, + "end": 2137, + "loc": { + "start": { + "line": 78, + "column": 4 + }, + "end": { + "line": 78, + "column": 8 + } + } + }, + "property": { + "type": "Identifier", + "start": 2138, + "end": 2152, + "loc": { + "start": { + "line": 78, + "column": 9 + }, + "end": { + "line": 78, + "column": 23 + }, + "identifierName": "iterateButtons" + }, + "name": "iterateButtons" + }, + "computed": false + }, + "arguments": [ + { + "type": "ArrowFunctionExpression", + "start": 2153, + "end": 2486, + "loc": { + "start": { + "line": 78, + "column": 24 + }, + "end": { + "line": 92, + "column": 5 + } + }, + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 2154, + "end": 2160, + "loc": { + "start": { + "line": 78, + "column": 25 + }, + "end": { + "line": 78, + "column": 31 + }, + "identifierName": "button" + }, + "name": "button" + } + ], + "body": { + "type": "BlockStatement", + "start": 2165, + "end": 2486, + "loc": { + "start": { + "line": 78, + "column": 36 + }, + "end": { + "line": 92, + "column": 5 + } + }, + "body": [ + { + "type": "VariableDeclaration", + "start": 2174, + "end": 2220, + "loc": { + "start": { + "line": 79, + "column": 6 + }, + "end": { + "line": 79, + "column": 52 + } + }, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 2178, + "end": 2219, + "loc": { + "start": { + "line": 79, + "column": 10 + }, + "end": { + "line": 79, + "column": 51 + } + }, + "id": { + "type": "Identifier", + "start": 2178, + "end": 2183, + "loc": { + "start": { + "line": 79, + "column": 10 + }, + "end": { + "line": 79, + "column": 15 + }, + "identifierName": "label" + }, + "name": "label" + }, + "init": { + "type": "CallExpression", + "start": 2186, + "end": 2219, + "loc": { + "start": { + "line": 79, + "column": 18 + }, + "end": { + "line": 79, + "column": 51 + } + }, + "callee": { + "type": "MemberExpression", + "start": 2186, + "end": 2205, + "loc": { + "start": { + "line": 79, + "column": 18 + }, + "end": { + "line": 79, + "column": 37 + } + }, + "object": { + "type": "Identifier", + "start": 2186, + "end": 2192, + "loc": { + "start": { + "line": 79, + "column": 18 + }, + "end": { + "line": 79, + "column": 24 + }, + "identifierName": "button" + }, + "name": "button" + }, + "property": { + "type": "Identifier", + "start": 2193, + "end": 2205, + "loc": { + "start": { + "line": 79, + "column": 25 + }, + "end": { + "line": 79, + "column": 37 + }, + "identifierName": "getAttribute" + }, + "name": "getAttribute" + }, + "computed": false + }, + "arguments": [ + { + "type": "StringLiteral", + "start": 2206, + "end": 2218, + "loc": { + "start": { + "line": 79, + "column": 38 + }, + "end": { + "line": 79, + "column": 50 + } + }, + "extra": { + "rawValue": "data-skbtn", + "raw": "\"data-skbtn\"" + }, + "value": "data-skbtn" + } + ] + } + } + ], + "kind": "let" + }, + { + "type": "IfStatement", + "start": 2230, + "end": 2301, + "loc": { + "start": { + "line": 81, + "column": 6 + }, + "end": { + "line": 82, + "column": 21 + } + }, + "test": { + "type": "LogicalExpression", + "start": 2233, + "end": 2277, + "loc": { + "start": { + "line": 81, + "column": 9 + }, + "end": { + "line": 81, + "column": 53 + } + }, + "left": { + "type": "UnaryExpression", + "start": 2233, + "end": 2253, + "loc": { + "start": { + "line": 81, + "column": 9 + }, + "end": { + "line": 81, + "column": 29 + } + }, + "operator": "!", + "prefix": true, + "argument": { + "type": "CallExpression", + "start": 2234, + "end": 2253, + "loc": { + "start": { + "line": 81, + "column": 10 + }, + "end": { + "line": 81, + "column": 29 + } + }, + "callee": { + "type": "MemberExpression", + "start": 2234, + "end": 2248, + "loc": { + "start": { + "line": 81, + "column": 10 + }, + "end": { + "line": 81, + "column": 24 + } + }, + "object": { + "type": "Identifier", + "start": 2234, + "end": 2239, + "loc": { + "start": { + "line": 81, + "column": 10 + }, + "end": { + "line": 81, + "column": 15 + }, + "identifierName": "label" + }, + "name": "label" + }, + "property": { + "type": "Identifier", + "start": 2240, + "end": 2248, + "loc": { + "start": { + "line": 81, + "column": 16 + }, + "end": { + "line": 81, + "column": 24 + }, + "identifierName": "includes" + }, + "name": "includes" + }, + "computed": false + }, + "arguments": [ + { + "type": "StringLiteral", + "start": 2249, + "end": 2252, + "loc": { + "start": { + "line": 81, + "column": 25 + }, + "end": { + "line": 81, + "column": 28 + } + }, + "extra": { + "rawValue": "{", + "raw": "\"{\"" + }, + "value": "{" + } + ] + }, + "extra": { + "parenthesizedArgument": false + } + }, + "operator": "&&", + "right": { + "type": "UnaryExpression", + "start": 2257, + "end": 2277, + "loc": { + "start": { + "line": 81, + "column": 33 + }, + "end": { + "line": 81, + "column": 53 + } + }, + "operator": "!", + "prefix": true, + "argument": { + "type": "CallExpression", + "start": 2258, + "end": 2277, + "loc": { + "start": { + "line": 81, + "column": 34 + }, + "end": { + "line": 81, + "column": 53 + } + }, + "callee": { + "type": "MemberExpression", + "start": 2258, + "end": 2272, + "loc": { + "start": { + "line": 81, + "column": 34 + }, + "end": { + "line": 81, + "column": 48 + } + }, + "object": { + "type": "Identifier", + "start": 2258, + "end": 2263, + "loc": { + "start": { + "line": 81, + "column": 34 + }, + "end": { + "line": 81, + "column": 39 + }, + "identifierName": "label" + }, + "name": "label" + }, + "property": { + "type": "Identifier", + "start": 2264, + "end": 2272, + "loc": { + "start": { + "line": 81, + "column": 40 + }, + "end": { + "line": 81, + "column": 48 + }, + "identifierName": "includes" + }, + "name": "includes" + }, + "computed": false + }, + "arguments": [ + { + "type": "StringLiteral", + "start": 2273, + "end": 2276, + "loc": { + "start": { + "line": 81, + "column": 49 + }, + "end": { + "line": 81, + "column": 52 + } + }, + "extra": { + "rawValue": "}", + "raw": "\"}\"" + }, + "value": "}" + } + ] + }, + "extra": { + "parenthesizedArgument": false + } + } + }, + "consequent": { + "type": "ReturnStatement", + "start": 2288, + "end": 2301, + "loc": { + "start": { + "line": 82, + "column": 8 + }, + "end": { + "line": 82, + "column": 21 + } + }, + "argument": { + "type": "BooleanLiteral", + "start": 2295, + "end": 2300, + "loc": { + "start": { + "line": 82, + "column": 15 + }, + "end": { + "line": 82, + "column": 20 + } + }, + "value": false + } + }, + "alternate": null + }, + { + "type": "ExpressionStatement", + "start": 2311, + "end": 2325, + "loc": { + "start": { + "line": 84, + "column": 6 + }, + "end": { + "line": 84, + "column": 20 + } + }, + "expression": { + "type": "UpdateExpression", + "start": 2311, + "end": 2324, + "loc": { + "start": { + "line": 84, + "column": 6 + }, + "end": { + "line": 84, + "column": 19 + } + }, + "operator": "++", + "prefix": false, + "argument": { + "type": "Identifier", + "start": 2311, + "end": 2322, + "loc": { + "start": { + "line": 84, + "column": 6 + }, + "end": { + "line": 84, + "column": 17 + }, + "identifierName": "fctBtnCount" + }, + "name": "fctBtnCount" + } + } + }, + { + "type": "IfStatement", + "start": 2335, + "end": 2424, + "loc": { + "start": { + "line": 86, + "column": 6 + }, + "end": { + "line": 89, + "column": 7 + } + }, + "test": { + "type": "MemberExpression", + "start": 2338, + "end": 2352, + "loc": { + "start": { + "line": 86, + "column": 9 + }, + "end": { + "line": 86, + "column": 23 + } + }, + "object": { + "type": "Identifier", + "start": 2338, + "end": 2344, + "loc": { + "start": { + "line": 86, + "column": 9 + }, + "end": { + "line": 86, + "column": 15 + }, + "identifierName": "button" + }, + "name": "button" + }, + "property": { + "type": "Identifier", + "start": 2345, + "end": 2352, + "loc": { + "start": { + "line": 86, + "column": 16 + }, + "end": { + "line": 86, + "column": 23 + }, + "identifierName": "onclick" + }, + "name": "onclick" + }, + "computed": false + }, + "consequent": { + "type": "BlockStatement", + "start": 2353, + "end": 2424, + "loc": { + "start": { + "line": 86, + "column": 24 + }, + "end": { + "line": 89, + "column": 7 + } + }, + "body": [ + { + "type": "ExpressionStatement", + "start": 2364, + "end": 2381, + "loc": { + "start": { + "line": 87, + "column": 8 + }, + "end": { + "line": 87, + "column": 25 + } + }, + "expression": { + "type": "CallExpression", + "start": 2364, + "end": 2380, + "loc": { + "start": { + "line": 87, + "column": 8 + }, + "end": { + "line": 87, + "column": 24 + } + }, + "callee": { + "type": "MemberExpression", + "start": 2364, + "end": 2378, + "loc": { + "start": { + "line": 87, + "column": 8 + }, + "end": { + "line": 87, + "column": 22 + } + }, + "object": { + "type": "Identifier", + "start": 2364, + "end": 2370, + "loc": { + "start": { + "line": 87, + "column": 8 + }, + "end": { + "line": 87, + "column": 14 + }, + "identifierName": "button" + }, + "name": "button" + }, + "property": { + "type": "Identifier", + "start": 2371, + "end": 2378, + "loc": { + "start": { + "line": 87, + "column": 15 + }, + "end": { + "line": 87, + "column": 22 + }, + "identifierName": "onclick" + }, + "name": "onclick" + }, + "computed": false + }, + "arguments": [] + } + }, + { + "type": "ExpressionStatement", + "start": 2391, + "end": 2415, + "loc": { + "start": { + "line": 88, + "column": 8 + }, + "end": { + "line": 88, + "column": 32 + } + }, + "expression": { + "type": "UpdateExpression", + "start": 2391, + "end": 2414, + "loc": { + "start": { + "line": 88, + "column": 8 + }, + "end": { + "line": 88, + "column": 31 + } + }, + "operator": "++", + "prefix": false, + "argument": { + "type": "Identifier", + "start": 2391, + "end": 2412, + "loc": { + "start": { + "line": 88, + "column": 8 + }, + "end": { + "line": 88, + "column": 29 + }, + "identifierName": "fctBtnHasOnclickCount" + }, + "name": "fctBtnHasOnclickCount" + } + } + } + ], + "directives": [] + }, + "alternate": null + }, + { + "type": "ExpressionStatement", + "start": 2434, + "end": 2479, + "loc": { + "start": { + "line": 91, + "column": 6 + }, + "end": { + "line": 91, + "column": 51 + } + }, + "expression": { + "type": "CallExpression", + "start": 2434, + "end": 2478, + "loc": { + "start": { + "line": 91, + "column": 6 + }, + "end": { + "line": 91, + "column": 50 + } + }, + "callee": { + "type": "Identifier", + "start": 2434, + "end": 2442, + "loc": { + "start": { + "line": 91, + "column": 6 + }, + "end": { + "line": 91, + "column": 14 + }, + "identifierName": "callback" + }, + "name": "callback" + }, + "arguments": [ + { + "type": "Identifier", + "start": 2443, + "end": 2454, + "loc": { + "start": { + "line": 91, + "column": 15 + }, + "end": { + "line": 91, + "column": 26 + }, + "identifierName": "fctBtnCount" + }, + "name": "fctBtnCount" + }, + { + "type": "Identifier", + "start": 2456, + "end": 2477, + "loc": { + "start": { + "line": 91, + "column": 28 + }, + "end": { + "line": 91, + "column": 49 + }, + "identifierName": "fctBtnHasOnclickCount" + }, + "name": "fctBtnHasOnclickCount" + } + ] + } + } + ], + "directives": [] + } + } + ] + } + } + ], + "directives": [], + "trailingComments": null + }, + "trailingComments": null + }, + "leadingComments": [ + { + "type": "CommentBlock", + "value": "*\r\n * Test if function buttons are interactive (have an onclick)\r\n ", + "start": 1946, + "end": 2021, + "loc": { + "start": { + "line": 71, + "column": 2 + }, + "end": { + "line": 73, + "column": 5 + } + } + } + ], + "trailingComments": [ + { + "type": "CommentBlock", + "value": "*\r\n * Iterates on the keyboard buttons\r\n ", + "start": 2499, + "end": 2548, + "loc": { + "start": { + "line": 95, + "column": 2 + }, + "end": { + "line": 97, + "column": 5 + } + } + } + ] + }, + { + "type": "ClassProperty", + "start": 2552, + "end": 2827, + "loc": { + "start": { + "line": 98, + "column": 2 + }, + "end": { + "line": 106, + "column": 3 + } + }, + "static": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 2552, + "end": 2566, + "loc": { + "start": { + "line": 98, + "column": 2 + }, + "end": { + "line": 98, + "column": 16 + }, + "identifierName": "iterateButtons" + }, + "name": "iterateButtons", + "leadingComments": null + }, + "value": { + "type": "ArrowFunctionExpression", + "start": 2569, + "end": 2827, + "loc": { + "start": { + "line": 98, + "column": 19 + }, + "end": { + "line": 106, + "column": 3 + } + }, + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 2570, + "end": 2578, + "loc": { + "start": { + "line": 98, + "column": 20 + }, + "end": { + "line": 98, + "column": 28 + }, + "identifierName": "callback" + }, + "name": "callback" + }, + { + "type": "Identifier", + "start": 2580, + "end": 2588, + "loc": { + "start": { + "line": 98, + "column": 30 + }, + "end": { + "line": 98, + "column": 38 + }, + "identifierName": "selector" + }, + "name": "selector" + } + ], + "body": { + "type": "BlockStatement", + "start": 2593, + "end": 2827, + "loc": { + "start": { + "line": 98, + "column": 43 + }, + "end": { + "line": 106, + "column": 3 + } + }, + "body": [ + { + "type": "VariableDeclaration", + "start": 2600, + "end": 2680, + "loc": { + "start": { + "line": 99, + "column": 4 + }, + "end": { + "line": 99, + "column": 84 + } + }, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 2604, + "end": 2679, + "loc": { + "start": { + "line": 99, + "column": 8 + }, + "end": { + "line": 99, + "column": 83 + } + }, + "id": { + "type": "Identifier", + "start": 2604, + "end": 2608, + "loc": { + "start": { + "line": 99, + "column": 8 + }, + "end": { + "line": 99, + "column": 12 + }, + "identifierName": "rows" + }, + "name": "rows" + }, + "init": { + "type": "MemberExpression", + "start": 2611, + "end": 2679, + "loc": { + "start": { + "line": 99, + "column": 15 + }, + "end": { + "line": 99, + "column": 83 + } + }, + "object": { + "type": "CallExpression", + "start": 2611, + "end": 2670, + "loc": { + "start": { + "line": 99, + "column": 15 + }, + "end": { + "line": 99, + "column": 74 + } + }, + "callee": { + "type": "MemberExpression", + "start": 2611, + "end": 2638, + "loc": { + "start": { + "line": 99, + "column": 15 + }, + "end": { + "line": 99, + "column": 42 + } + }, + "object": { + "type": "MemberExpression", + "start": 2611, + "end": 2624, + "loc": { + "start": { + "line": 99, + "column": 15 + }, + "end": { + "line": 99, + "column": 28 + } + }, + "object": { + "type": "Identifier", + "start": 2611, + "end": 2619, + "loc": { + "start": { + "line": 99, + "column": 15 + }, + "end": { + "line": 99, + "column": 23 + }, + "identifierName": "document" + }, + "name": "document" + }, + "property": { + "type": "Identifier", + "start": 2620, + "end": 2624, + "loc": { + "start": { + "line": 99, + "column": 24 + }, + "end": { + "line": 99, + "column": 28 + }, + "identifierName": "body" + }, + "name": "body" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 2625, + "end": 2638, + "loc": { + "start": { + "line": 99, + "column": 29 + }, + "end": { + "line": 99, + "column": 42 + }, + "identifierName": "querySelector" + }, + "name": "querySelector" + }, + "computed": false + }, + "arguments": [ + { + "type": "LogicalExpression", + "start": 2639, + "end": 2669, + "loc": { + "start": { + "line": 99, + "column": 43 + }, + "end": { + "line": 99, + "column": 73 + } + }, + "left": { + "type": "Identifier", + "start": 2639, + "end": 2647, + "loc": { + "start": { + "line": 99, + "column": 43 + }, + "end": { + "line": 99, + "column": 51 + }, + "identifierName": "selector" + }, + "name": "selector" + }, + "operator": "||", + "right": { + "type": "StringLiteral", + "start": 2651, + "end": 2669, + "loc": { + "start": { + "line": 99, + "column": 55 + }, + "end": { + "line": 99, + "column": 73 + } + }, + "extra": { + "rawValue": ".simple-keyboard", + "raw": "'.simple-keyboard'" + }, + "value": ".simple-keyboard" + } + } + ] + }, + "property": { + "type": "Identifier", + "start": 2671, + "end": 2679, + "loc": { + "start": { + "line": 99, + "column": 75 + }, + "end": { + "line": 99, + "column": 83 + }, + "identifierName": "children" + }, + "name": "children" + }, + "computed": false + } + } + ], + "kind": "let" + }, + { + "type": "ExpressionStatement", + "start": 2688, + "end": 2822, + "loc": { + "start": { + "line": 101, + "column": 4 + }, + "end": { + "line": 105, + "column": 7 + } + }, + "expression": { + "type": "CallExpression", + "start": 2688, + "end": 2821, + "loc": { + "start": { + "line": 101, + "column": 4 + }, + "end": { + "line": 105, + "column": 6 + } + }, + "callee": { + "type": "MemberExpression", + "start": 2688, + "end": 2712, + "loc": { + "start": { + "line": 101, + "column": 4 + }, + "end": { + "line": 101, + "column": 28 + } + }, + "object": { + "type": "CallExpression", + "start": 2688, + "end": 2704, + "loc": { + "start": { + "line": 101, + "column": 4 + }, + "end": { + "line": 101, + "column": 20 + } + }, + "callee": { + "type": "MemberExpression", + "start": 2688, + "end": 2698, + "loc": { + "start": { + "line": 101, + "column": 4 + }, + "end": { + "line": 101, + "column": 14 + } + }, + "object": { + "type": "Identifier", + "start": 2688, + "end": 2693, + "loc": { + "start": { + "line": 101, + "column": 4 + }, + "end": { + "line": 101, + "column": 9 + }, + "identifierName": "Array" + }, + "name": "Array" + }, + "property": { + "type": "Identifier", + "start": 2694, + "end": 2698, + "loc": { + "start": { + "line": 101, + "column": 10 + }, + "end": { + "line": 101, + "column": 14 + }, + "identifierName": "from" + }, + "name": "from" + }, + "computed": false + }, + "arguments": [ + { + "type": "Identifier", + "start": 2699, + "end": 2703, + "loc": { + "start": { + "line": 101, + "column": 15 + }, + "end": { + "line": 101, + "column": 19 + }, + "identifierName": "rows" + }, + "name": "rows" + } + ] + }, + "property": { + "type": "Identifier", + "start": 2705, + "end": 2712, + "loc": { + "start": { + "line": 101, + "column": 21 + }, + "end": { + "line": 101, + "column": 28 + }, + "identifierName": "forEach" + }, + "name": "forEach" + }, + "computed": false + }, + "arguments": [ + { + "type": "ArrowFunctionExpression", + "start": 2713, + "end": 2820, + "loc": { + "start": { + "line": 101, + "column": 29 + }, + "end": { + "line": 105, + "column": 5 + } + }, + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 2713, + "end": 2716, + "loc": { + "start": { + "line": 101, + "column": 29 + }, + "end": { + "line": 101, + "column": 32 + }, + "identifierName": "row" + }, + "name": "row" + } + ], + "body": { + "type": "BlockStatement", + "start": 2720, + "end": 2820, + "loc": { + "start": { + "line": 101, + "column": 36 + }, + "end": { + "line": 105, + "column": 5 + } + }, + "body": [ + { + "type": "ExpressionStatement", + "start": 2729, + "end": 2813, + "loc": { + "start": { + "line": 102, + "column": 6 + }, + "end": { + "line": 104, + "column": 9 + } + }, + "expression": { + "type": "CallExpression", + "start": 2729, + "end": 2812, + "loc": { + "start": { + "line": 102, + "column": 6 + }, + "end": { + "line": 104, + "column": 8 + } + }, + "callee": { + "type": "MemberExpression", + "start": 2729, + "end": 2761, + "loc": { + "start": { + "line": 102, + "column": 6 + }, + "end": { + "line": 102, + "column": 38 + } + }, + "object": { + "type": "CallExpression", + "start": 2729, + "end": 2753, + "loc": { + "start": { + "line": 102, + "column": 6 + }, + "end": { + "line": 102, + "column": 30 + } + }, + "callee": { + "type": "MemberExpression", + "start": 2729, + "end": 2739, + "loc": { + "start": { + "line": 102, + "column": 6 + }, + "end": { + "line": 102, + "column": 16 + } + }, + "object": { + "type": "Identifier", + "start": 2729, + "end": 2734, + "loc": { + "start": { + "line": 102, + "column": 6 + }, + "end": { + "line": 102, + "column": 11 + }, + "identifierName": "Array" + }, + "name": "Array" + }, + "property": { + "type": "Identifier", + "start": 2735, + "end": 2739, + "loc": { + "start": { + "line": 102, + "column": 12 + }, + "end": { + "line": 102, + "column": 16 + }, + "identifierName": "from" + }, + "name": "from" + }, + "computed": false + }, + "arguments": [ + { + "type": "MemberExpression", + "start": 2740, + "end": 2752, + "loc": { + "start": { + "line": 102, + "column": 17 + }, + "end": { + "line": 102, + "column": 29 + } + }, + "object": { + "type": "Identifier", + "start": 2740, + "end": 2743, + "loc": { + "start": { + "line": 102, + "column": 17 + }, + "end": { + "line": 102, + "column": 20 + }, + "identifierName": "row" + }, + "name": "row" + }, + "property": { + "type": "Identifier", + "start": 2744, + "end": 2752, + "loc": { + "start": { + "line": 102, + "column": 21 + }, + "end": { + "line": 102, + "column": 29 + }, + "identifierName": "children" + }, + "name": "children" + }, + "computed": false + } + ] + }, + "property": { + "type": "Identifier", + "start": 2754, + "end": 2761, + "loc": { + "start": { + "line": 102, + "column": 31 + }, + "end": { + "line": 102, + "column": 38 + }, + "identifierName": "forEach" + }, + "name": "forEach" + }, + "computed": false + }, + "arguments": [ + { + "type": "ArrowFunctionExpression", + "start": 2762, + "end": 2811, + "loc": { + "start": { + "line": 102, + "column": 39 + }, + "end": { + "line": 104, + "column": 7 + } + }, + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 2763, + "end": 2769, + "loc": { + "start": { + "line": 102, + "column": 40 + }, + "end": { + "line": 102, + "column": 46 + }, + "identifierName": "button" + }, + "name": "button" + } + ], + "body": { + "type": "BlockStatement", + "start": 2774, + "end": 2811, + "loc": { + "start": { + "line": 102, + "column": 51 + }, + "end": { + "line": 104, + "column": 7 + } + }, + "body": [ + { + "type": "ExpressionStatement", + "start": 2785, + "end": 2802, + "loc": { + "start": { + "line": 103, + "column": 8 + }, + "end": { + "line": 103, + "column": 25 + } + }, + "expression": { + "type": "CallExpression", + "start": 2785, + "end": 2801, + "loc": { + "start": { + "line": 103, + "column": 8 + }, + "end": { + "line": 103, + "column": 24 + } + }, + "callee": { + "type": "Identifier", + "start": 2785, + "end": 2793, + "loc": { + "start": { + "line": 103, + "column": 8 + }, + "end": { + "line": 103, + "column": 16 + }, + "identifierName": "callback" + }, + "name": "callback" + }, + "arguments": [ + { + "type": "Identifier", + "start": 2794, + "end": 2800, + "loc": { + "start": { + "line": 103, + "column": 17 + }, + "end": { + "line": 103, + "column": 23 + }, + "identifierName": "button" + }, + "name": "button" + } + ] + } + } + ], + "directives": [] + } + } + ] + } + } + ], + "directives": [] + } + } + ] + } + } + ], + "directives": [] + } + }, + "leadingComments": [ + { + "type": "CommentBlock", + "value": "*\r\n * Iterates on the keyboard buttons\r\n ", + "start": 2499, + "end": 2548, + "loc": { + "start": { + "line": 95, + "column": 2 + }, + "end": { + "line": 97, + "column": 5 + } + } + } + ] + } + ] + }, + "leadingComments": [ + { + "type": "CommentBlock", + "value": "*\r\n * Test Utility Functions\r\n ", + "start": 0, + "end": 35, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 3, + "column": 3 + } + } + } + ], + "trailingComments": [] + }, + "leadingComments": [ + { + "type": "CommentBlock", + "value": "*\r\n * Test Utility Functions\r\n ", + "start": 0, + "end": 35, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 3, + "column": 3 + } + } + } + ] + } + ], + "directives": [] + }, + "comments": [ + { + "type": "CommentBlock", + "value": "*\r\n * Test Utility Functions\r\n ", + "start": 0, + "end": 35, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 3, + "column": 3 + } + } + }, + { + "type": "CommentBlock", + "value": "*\r\n * Set's a basic DOM structure to test in\r\n ", + "start": 75, + "end": 130, + "loc": { + "start": { + "line": 5, + "column": 2 + }, + "end": { + "line": 7, + "column": 5 + } + } + }, + { + "type": "CommentBlock", + "value": "*\r\n * Clears DOM structure\r\n ", + "start": 326, + "end": 363, + "loc": { + "start": { + "line": 15, + "column": 2 + }, + "end": { + "line": 17, + "column": 5 + } + } + }, + { + "type": "CommentBlock", + "value": "*\r\n * Test if standard buttons respect maxLength and do input a value\r\n ", + "start": 428, + "end": 508, + "loc": { + "start": { + "line": 22, + "column": 2 + }, + "end": { + "line": 24, + "column": 5 + } + } + }, + { + "type": "CommentLine", + "value": " Click all standard buttons, respects maxLength", + "start": 762, + "end": 811, + "loc": { + "start": { + "line": 35, + "column": 6 + }, + "end": { + "line": 35, + "column": 55 + } + } + }, + { + "type": "CommentLine", + "value": " Recording fullInput, bypasses maxLength", + "start": 846, + "end": 888, + "loc": { + "start": { + "line": 38, + "column": 6 + }, + "end": { + "line": 38, + "column": 48 + } + } + }, + { + "type": "CommentBlock", + "value": "*\r\n * Check if maxLength is respected\r\n ", + "start": 1040, + "end": 1092, + "loc": { + "start": { + "line": 44, + "column": 4 + }, + "end": { + "line": 46, + "column": 7 + } + } + }, + { + "type": "CommentBlock", + "value": "*\r\n * Check if all standard buttons are inputting something\r\n * (Regardless of maxLength)\r\n ", + "start": 1617, + "end": 1725, + "loc": { + "start": { + "line": 61, + "column": 4 + }, + "end": { + "line": 64, + "column": 7 + } + } + }, + { + "type": "CommentBlock", + "value": "*\r\n * Test if function buttons are interactive (have an onclick)\r\n ", + "start": 1946, + "end": 2021, + "loc": { + "start": { + "line": 71, + "column": 2 + }, + "end": { + "line": 73, + "column": 5 + } + } + }, + { + "type": "CommentBlock", + "value": "*\r\n * Iterates on the keyboard buttons\r\n ", + "start": 2499, + "end": 2548, + "loc": { + "start": { + "line": 95, + "column": 2 + }, + "end": { + "line": 97, + "column": 5 + } + } + } + ], + "tokens": [ + { + "type": "CommentBlock", + "value": "*\r\n * Test Utility Functions\r\n ", + "start": 0, + "end": 35, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 3, + "column": 3 + } + } + }, + { + "type": { + "label": "export", + "keyword": "export", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "export", + "start": 37, + "end": 43, + "loc": { + "start": { + "line": 4, + "column": 0 + }, + "end": { + "line": 4, + "column": 6 + } + } + }, + { + "type": { + "label": "default", + "keyword": "default", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "default", + "start": 44, + "end": 51, + "loc": { + "start": { + "line": 4, + "column": 7 + }, + "end": { + "line": 4, + "column": 14 + } + } + }, + { + "type": { + "label": "class", + "keyword": "class", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "class", + "start": 52, + "end": 57, + "loc": { + "start": { + "line": 4, + "column": 15 + }, + "end": { + "line": 4, + "column": 20 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "TestUtility", + "start": 58, + "end": 69, + "loc": { + "start": { + "line": 4, + "column": 21 + }, + "end": { + "line": 4, + "column": 32 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 70, + "end": 71, + "loc": { + "start": { + "line": 4, + "column": 33 + }, + "end": { + "line": 4, + "column": 34 + } + } + }, + { + "type": "CommentBlock", + "value": "*\r\n * Set's a basic DOM structure to test in\r\n ", + "start": 75, + "end": 130, + "loc": { + "start": { + "line": 5, + "column": 2 + }, + "end": { + "line": 7, + "column": 5 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "setDOM", + "start": 134, + "end": 140, + "loc": { + "start": { + "line": 8, + "column": 2 + }, + "end": { + "line": 8, + "column": 8 + } + } + }, + { + "type": { + "label": "=", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": true, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "=", + "start": 141, + "end": 142, + "loc": { + "start": { + "line": 8, + "column": 9 + }, + "end": { + "line": 8, + "column": 10 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 143, + "end": 144, + "loc": { + "start": { + "line": 8, + "column": 11 + }, + "end": { + "line": 8, + "column": 12 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "divClass", + "start": 144, + "end": 152, + "loc": { + "start": { + "line": 8, + "column": 12 + }, + "end": { + "line": 8, + "column": 20 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 152, + "end": 153, + "loc": { + "start": { + "line": 8, + "column": 20 + }, + "end": { + "line": 8, + "column": 21 + } + } + }, + { + "type": { + "label": "=>", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 154, + "end": 156, + "loc": { + "start": { + "line": 8, + "column": 22 + }, + "end": { + "line": 8, + "column": 24 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 157, + "end": 158, + "loc": { + "start": { + "line": 8, + "column": 25 + }, + "end": { + "line": 8, + "column": 26 + } + } + }, + { + "type": { + "label": "this", + "keyword": "this", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "this", + "start": 164, + "end": 168, + "loc": { + "start": { + "line": 9, + "column": 4 + }, + "end": { + "line": 9, + "column": 8 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 168, + "end": 169, + "loc": { + "start": { + "line": 9, + "column": 8 + }, + "end": { + "line": 9, + "column": 9 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "clear", + "start": 169, + "end": 174, + "loc": { + "start": { + "line": 9, + "column": 9 + }, + "end": { + "line": 9, + "column": 14 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 174, + "end": 175, + "loc": { + "start": { + "line": 9, + "column": 14 + }, + "end": { + "line": 9, + "column": 15 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 175, + "end": 176, + "loc": { + "start": { + "line": 9, + "column": 15 + }, + "end": { + "line": 9, + "column": 16 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 176, + "end": 177, + "loc": { + "start": { + "line": 9, + "column": 16 + }, + "end": { + "line": 9, + "column": 17 + } + } + }, + { + "type": { + "label": "const", + "keyword": "const", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "const", + "start": 183, + "end": 188, + "loc": { + "start": { + "line": 10, + "column": 4 + }, + "end": { + "line": 10, + "column": 9 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "div", + "start": 189, + "end": 192, + "loc": { + "start": { + "line": 10, + "column": 10 + }, + "end": { + "line": 10, + "column": 13 + } + } + }, + { + "type": { + "label": "=", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": true, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "=", + "start": 193, + "end": 194, + "loc": { + "start": { + "line": 10, + "column": 14 + }, + "end": { + "line": 10, + "column": 15 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "document", + "start": 195, + "end": 203, + "loc": { + "start": { + "line": 10, + "column": 16 + }, + "end": { + "line": 10, + "column": 24 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 203, + "end": 204, + "loc": { + "start": { + "line": 10, + "column": 24 + }, + "end": { + "line": 10, + "column": 25 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "createElement", + "start": 204, + "end": 217, + "loc": { + "start": { + "line": 10, + "column": 25 + }, + "end": { + "line": 10, + "column": 38 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 217, + "end": 218, + "loc": { + "start": { + "line": 10, + "column": 38 + }, + "end": { + "line": 10, + "column": 39 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "div", + "start": 218, + "end": 223, + "loc": { + "start": { + "line": 10, + "column": 39 + }, + "end": { + "line": 10, + "column": 44 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 223, + "end": 224, + "loc": { + "start": { + "line": 10, + "column": 44 + }, + "end": { + "line": 10, + "column": 45 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 224, + "end": 225, + "loc": { + "start": { + "line": 10, + "column": 45 + }, + "end": { + "line": 10, + "column": 46 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "div", + "start": 231, + "end": 234, + "loc": { + "start": { + "line": 11, + "column": 4 + }, + "end": { + "line": 11, + "column": 7 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 234, + "end": 235, + "loc": { + "start": { + "line": 11, + "column": 7 + }, + "end": { + "line": 11, + "column": 8 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "className", + "start": 235, + "end": 244, + "loc": { + "start": { + "line": 11, + "column": 8 + }, + "end": { + "line": 11, + "column": 17 + } + } + }, + { + "type": { + "label": "_=", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": true, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "+=", + "start": 245, + "end": 247, + "loc": { + "start": { + "line": 11, + "column": 18 + }, + "end": { + "line": 11, + "column": 20 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "divClass", + "start": 248, + "end": 256, + "loc": { + "start": { + "line": 11, + "column": 21 + }, + "end": { + "line": 11, + "column": 29 + } + } + }, + { + "type": { + "label": "||", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": 1, + "updateContext": null + }, + "value": "||", + "start": 257, + "end": 259, + "loc": { + "start": { + "line": 11, + "column": 30 + }, + "end": { + "line": 11, + "column": 32 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "simple-keyboard", + "start": 260, + "end": 277, + "loc": { + "start": { + "line": 11, + "column": 33 + }, + "end": { + "line": 11, + "column": 50 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 277, + "end": 278, + "loc": { + "start": { + "line": 11, + "column": 50 + }, + "end": { + "line": 11, + "column": 51 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "document", + "start": 284, + "end": 292, + "loc": { + "start": { + "line": 12, + "column": 4 + }, + "end": { + "line": 12, + "column": 12 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 292, + "end": 293, + "loc": { + "start": { + "line": 12, + "column": 12 + }, + "end": { + "line": 12, + "column": 13 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "body", + "start": 293, + "end": 297, + "loc": { + "start": { + "line": 12, + "column": 13 + }, + "end": { + "line": 12, + "column": 17 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 297, + "end": 298, + "loc": { + "start": { + "line": 12, + "column": 17 + }, + "end": { + "line": 12, + "column": 18 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "appendChild", + "start": 298, + "end": 309, + "loc": { + "start": { + "line": 12, + "column": 18 + }, + "end": { + "line": 12, + "column": 29 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 309, + "end": 310, + "loc": { + "start": { + "line": 12, + "column": 29 + }, + "end": { + "line": 12, + "column": 30 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "div", + "start": 310, + "end": 313, + "loc": { + "start": { + "line": 12, + "column": 30 + }, + "end": { + "line": 12, + "column": 33 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 313, + "end": 314, + "loc": { + "start": { + "line": 12, + "column": 33 + }, + "end": { + "line": 12, + "column": 34 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 314, + "end": 315, + "loc": { + "start": { + "line": 12, + "column": 34 + }, + "end": { + "line": 12, + "column": 35 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 319, + "end": 320, + "loc": { + "start": { + "line": 13, + "column": 2 + }, + "end": { + "line": 13, + "column": 3 + } + } + }, + { + "type": "CommentBlock", + "value": "*\r\n * Clears DOM structure\r\n ", + "start": 326, + "end": 363, + "loc": { + "start": { + "line": 15, + "column": 2 + }, + "end": { + "line": 17, + "column": 5 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "clear", + "start": 367, + "end": 372, + "loc": { + "start": { + "line": 18, + "column": 2 + }, + "end": { + "line": 18, + "column": 7 + } + } + }, + { + "type": { + "label": "=", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": true, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "=", + "start": 373, + "end": 374, + "loc": { + "start": { + "line": 18, + "column": 8 + }, + "end": { + "line": 18, + "column": 9 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 375, + "end": 376, + "loc": { + "start": { + "line": 18, + "column": 10 + }, + "end": { + "line": 18, + "column": 11 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 376, + "end": 377, + "loc": { + "start": { + "line": 18, + "column": 11 + }, + "end": { + "line": 18, + "column": 12 + } + } + }, + { + "type": { + "label": "=>", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 378, + "end": 380, + "loc": { + "start": { + "line": 18, + "column": 13 + }, + "end": { + "line": 18, + "column": 15 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 381, + "end": 382, + "loc": { + "start": { + "line": 18, + "column": 16 + }, + "end": { + "line": 18, + "column": 17 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "document", + "start": 388, + "end": 396, + "loc": { + "start": { + "line": 19, + "column": 4 + }, + "end": { + "line": 19, + "column": 12 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 396, + "end": 397, + "loc": { + "start": { + "line": 19, + "column": 12 + }, + "end": { + "line": 19, + "column": 13 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "body", + "start": 397, + "end": 401, + "loc": { + "start": { + "line": 19, + "column": 13 + }, + "end": { + "line": 19, + "column": 17 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 401, + "end": 402, + "loc": { + "start": { + "line": 19, + "column": 17 + }, + "end": { + "line": 19, + "column": 18 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "innerHTML", + "start": 402, + "end": 411, + "loc": { + "start": { + "line": 19, + "column": 18 + }, + "end": { + "line": 19, + "column": 27 + } + } + }, + { + "type": { + "label": "=", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": true, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "=", + "start": 412, + "end": 413, + "loc": { + "start": { + "line": 19, + "column": 28 + }, + "end": { + "line": 19, + "column": 29 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "", + "start": 414, + "end": 416, + "loc": { + "start": { + "line": 19, + "column": 30 + }, + "end": { + "line": 19, + "column": 32 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 416, + "end": 417, + "loc": { + "start": { + "line": 19, + "column": 32 + }, + "end": { + "line": 19, + "column": 33 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 421, + "end": 422, + "loc": { + "start": { + "line": 20, + "column": 2 + }, + "end": { + "line": 20, + "column": 3 + } + } + }, + { + "type": "CommentBlock", + "value": "*\r\n * Test if standard buttons respect maxLength and do input a value\r\n ", + "start": 428, + "end": 508, + "loc": { + "start": { + "line": 22, + "column": 2 + }, + "end": { + "line": 24, + "column": 5 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "testLayoutStdButtons", + "start": 512, + "end": 532, + "loc": { + "start": { + "line": 25, + "column": 2 + }, + "end": { + "line": 25, + "column": 22 + } + } + }, + { + "type": { + "label": "=", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": true, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "=", + "start": 533, + "end": 534, + "loc": { + "start": { + "line": 25, + "column": 23 + }, + "end": { + "line": 25, + "column": 24 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 535, + "end": 536, + "loc": { + "start": { + "line": 25, + "column": 25 + }, + "end": { + "line": 25, + "column": 26 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "keyboard", + "start": 536, + "end": 544, + "loc": { + "start": { + "line": 25, + "column": 26 + }, + "end": { + "line": 25, + "column": 34 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 544, + "end": 545, + "loc": { + "start": { + "line": 25, + "column": 34 + }, + "end": { + "line": 25, + "column": 35 + } + } + }, + { + "type": { + "label": "=>", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 546, + "end": 548, + "loc": { + "start": { + "line": 25, + "column": 36 + }, + "end": { + "line": 25, + "column": 38 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 549, + "end": 550, + "loc": { + "start": { + "line": 25, + "column": 39 + }, + "end": { + "line": 25, + "column": 40 + } + } + }, + { + "type": { + "label": "let", + "keyword": "let", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "let", + "start": 556, + "end": 559, + "loc": { + "start": { + "line": 26, + "column": 4 + }, + "end": { + "line": 26, + "column": 7 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "stdBtnCount", + "start": 560, + "end": 571, + "loc": { + "start": { + "line": 26, + "column": 8 + }, + "end": { + "line": 26, + "column": 19 + } + } + }, + { + "type": { + "label": "=", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": true, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "=", + "start": 572, + "end": 573, + "loc": { + "start": { + "line": 26, + "column": 20 + }, + "end": { + "line": 26, + "column": 21 + } + } + }, + { + "type": { + "label": "num", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": 0, + "start": 574, + "end": 575, + "loc": { + "start": { + "line": 26, + "column": 22 + }, + "end": { + "line": 26, + "column": 23 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 575, + "end": 576, + "loc": { + "start": { + "line": 26, + "column": 23 + }, + "end": { + "line": 26, + "column": 24 + } + } + }, + { + "type": { + "label": "let", + "keyword": "let", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "let", + "start": 582, + "end": 585, + "loc": { + "start": { + "line": 27, + "column": 4 + }, + "end": { + "line": 27, + "column": 7 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "fullInput", + "start": 586, + "end": 595, + "loc": { + "start": { + "line": 27, + "column": 8 + }, + "end": { + "line": 27, + "column": 17 + } + } + }, + { + "type": { + "label": "=", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": true, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "=", + "start": 596, + "end": 597, + "loc": { + "start": { + "line": 27, + "column": 18 + }, + "end": { + "line": 27, + "column": 19 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "", + "start": 598, + "end": 600, + "loc": { + "start": { + "line": 27, + "column": 20 + }, + "end": { + "line": 27, + "column": 22 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 600, + "end": 601, + "loc": { + "start": { + "line": 27, + "column": 22 + }, + "end": { + "line": 27, + "column": 23 + } + } + }, + { + "type": { + "label": "this", + "keyword": "this", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "this", + "start": 609, + "end": 613, + "loc": { + "start": { + "line": 29, + "column": 4 + }, + "end": { + "line": 29, + "column": 8 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 613, + "end": 614, + "loc": { + "start": { + "line": 29, + "column": 8 + }, + "end": { + "line": 29, + "column": 9 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "iterateButtons", + "start": 614, + "end": 628, + "loc": { + "start": { + "line": 29, + "column": 9 + }, + "end": { + "line": 29, + "column": 23 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 628, + "end": 629, + "loc": { + "start": { + "line": 29, + "column": 23 + }, + "end": { + "line": 29, + "column": 24 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 629, + "end": 630, + "loc": { + "start": { + "line": 29, + "column": 24 + }, + "end": { + "line": 29, + "column": 25 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "button", + "start": 630, + "end": 636, + "loc": { + "start": { + "line": 29, + "column": 25 + }, + "end": { + "line": 29, + "column": 31 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 636, + "end": 637, + "loc": { + "start": { + "line": 29, + "column": 31 + }, + "end": { + "line": 29, + "column": 32 + } + } + }, + { + "type": { + "label": "=>", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 638, + "end": 640, + "loc": { + "start": { + "line": 29, + "column": 33 + }, + "end": { + "line": 29, + "column": 35 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 641, + "end": 642, + "loc": { + "start": { + "line": 29, + "column": 36 + }, + "end": { + "line": 29, + "column": 37 + } + } + }, + { + "type": { + "label": "let", + "keyword": "let", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "let", + "start": 650, + "end": 653, + "loc": { + "start": { + "line": 30, + "column": 6 + }, + "end": { + "line": 30, + "column": 9 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "label", + "start": 654, + "end": 659, + "loc": { + "start": { + "line": 30, + "column": 10 + }, + "end": { + "line": 30, + "column": 15 + } + } + }, + { + "type": { + "label": "=", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": true, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "=", + "start": 660, + "end": 661, + "loc": { + "start": { + "line": 30, + "column": 16 + }, + "end": { + "line": 30, + "column": 17 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "button", + "start": 662, + "end": 668, + "loc": { + "start": { + "line": 30, + "column": 18 + }, + "end": { + "line": 30, + "column": 24 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 668, + "end": 669, + "loc": { + "start": { + "line": 30, + "column": 24 + }, + "end": { + "line": 30, + "column": 25 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "getAttribute", + "start": 669, + "end": 681, + "loc": { + "start": { + "line": 30, + "column": 25 + }, + "end": { + "line": 30, + "column": 37 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 681, + "end": 682, + "loc": { + "start": { + "line": 30, + "column": 37 + }, + "end": { + "line": 30, + "column": 38 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "data-skbtn", + "start": 682, + "end": 694, + "loc": { + "start": { + "line": 30, + "column": 38 + }, + "end": { + "line": 30, + "column": 50 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 694, + "end": 695, + "loc": { + "start": { + "line": 30, + "column": 50 + }, + "end": { + "line": 30, + "column": 51 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 695, + "end": 696, + "loc": { + "start": { + "line": 30, + "column": 51 + }, + "end": { + "line": 30, + "column": 52 + } + } + }, + { + "type": { + "label": "if", + "keyword": "if", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "if", + "start": 706, + "end": 708, + "loc": { + "start": { + "line": 32, + "column": 6 + }, + "end": { + "line": 32, + "column": 8 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 708, + "end": 709, + "loc": { + "start": { + "line": 32, + "column": 8 + }, + "end": { + "line": 32, + "column": 9 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "label", + "start": 709, + "end": 714, + "loc": { + "start": { + "line": 32, + "column": 9 + }, + "end": { + "line": 32, + "column": 14 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 714, + "end": 715, + "loc": { + "start": { + "line": 32, + "column": 14 + }, + "end": { + "line": 32, + "column": 15 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "includes", + "start": 715, + "end": 723, + "loc": { + "start": { + "line": 32, + "column": 15 + }, + "end": { + "line": 32, + "column": 23 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 723, + "end": 724, + "loc": { + "start": { + "line": 32, + "column": 23 + }, + "end": { + "line": 32, + "column": 24 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "{", + "start": 724, + "end": 727, + "loc": { + "start": { + "line": 32, + "column": 24 + }, + "end": { + "line": 32, + "column": 27 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 727, + "end": 728, + "loc": { + "start": { + "line": 32, + "column": 27 + }, + "end": { + "line": 32, + "column": 28 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 728, + "end": 729, + "loc": { + "start": { + "line": 32, + "column": 28 + }, + "end": { + "line": 32, + "column": 29 + } + } + }, + { + "type": { + "label": "return", + "keyword": "return", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "return", + "start": 739, + "end": 745, + "loc": { + "start": { + "line": 33, + "column": 8 + }, + "end": { + "line": 33, + "column": 14 + } + } + }, + { + "type": { + "label": "false", + "keyword": "false", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "false", + "start": 746, + "end": 751, + "loc": { + "start": { + "line": 33, + "column": 15 + }, + "end": { + "line": 33, + "column": 20 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 751, + "end": 752, + "loc": { + "start": { + "line": 33, + "column": 20 + }, + "end": { + "line": 33, + "column": 21 + } + } + }, + { + "type": "CommentLine", + "value": " Click all standard buttons, respects maxLength", + "start": 762, + "end": 811, + "loc": { + "start": { + "line": 35, + "column": 6 + }, + "end": { + "line": 35, + "column": 55 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "button", + "start": 819, + "end": 825, + "loc": { + "start": { + "line": 36, + "column": 6 + }, + "end": { + "line": 36, + "column": 12 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 825, + "end": 826, + "loc": { + "start": { + "line": 36, + "column": 12 + }, + "end": { + "line": 36, + "column": 13 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "onclick", + "start": 826, + "end": 833, + "loc": { + "start": { + "line": 36, + "column": 13 + }, + "end": { + "line": 36, + "column": 20 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 833, + "end": 834, + "loc": { + "start": { + "line": 36, + "column": 20 + }, + "end": { + "line": 36, + "column": 21 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 834, + "end": 835, + "loc": { + "start": { + "line": 36, + "column": 21 + }, + "end": { + "line": 36, + "column": 22 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 835, + "end": 836, + "loc": { + "start": { + "line": 36, + "column": 22 + }, + "end": { + "line": 36, + "column": 23 + } + } + }, + { + "type": "CommentLine", + "value": " Recording fullInput, bypasses maxLength", + "start": 846, + "end": 888, + "loc": { + "start": { + "line": 38, + "column": 6 + }, + "end": { + "line": 38, + "column": 48 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "fullInput", + "start": 896, + "end": 905, + "loc": { + "start": { + "line": 39, + "column": 6 + }, + "end": { + "line": 39, + "column": 15 + } + } + }, + { + "type": { + "label": "=", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": true, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "=", + "start": 906, + "end": 907, + "loc": { + "start": { + "line": 39, + "column": 16 + }, + "end": { + "line": 39, + "column": 17 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "keyboard", + "start": 908, + "end": 916, + "loc": { + "start": { + "line": 39, + "column": 18 + }, + "end": { + "line": 39, + "column": 26 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 916, + "end": 917, + "loc": { + "start": { + "line": 39, + "column": 26 + }, + "end": { + "line": 39, + "column": 27 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "utilities", + "start": 917, + "end": 926, + "loc": { + "start": { + "line": 39, + "column": 27 + }, + "end": { + "line": 39, + "column": 36 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 926, + "end": 927, + "loc": { + "start": { + "line": 39, + "column": 36 + }, + "end": { + "line": 39, + "column": 37 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "getUpdatedInput", + "start": 927, + "end": 942, + "loc": { + "start": { + "line": 39, + "column": 37 + }, + "end": { + "line": 39, + "column": 52 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 942, + "end": 943, + "loc": { + "start": { + "line": 39, + "column": 52 + }, + "end": { + "line": 39, + "column": 53 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "label", + "start": 943, + "end": 948, + "loc": { + "start": { + "line": 39, + "column": 53 + }, + "end": { + "line": 39, + "column": 58 + } + } + }, + { + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 948, + "end": 949, + "loc": { + "start": { + "line": 39, + "column": 58 + }, + "end": { + "line": 39, + "column": 59 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "fullInput", + "start": 950, + "end": 959, + "loc": { + "start": { + "line": 39, + "column": 60 + }, + "end": { + "line": 39, + "column": 69 + } + } + }, + { + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 959, + "end": 960, + "loc": { + "start": { + "line": 39, + "column": 69 + }, + "end": { + "line": 39, + "column": 70 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "keyboard", + "start": 961, + "end": 969, + "loc": { + "start": { + "line": 39, + "column": 71 + }, + "end": { + "line": 39, + "column": 79 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 969, + "end": 970, + "loc": { + "start": { + "line": 39, + "column": 79 + }, + "end": { + "line": 39, + "column": 80 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "options", + "start": 970, + "end": 977, + "loc": { + "start": { + "line": 39, + "column": 80 + }, + "end": { + "line": 39, + "column": 87 + } + } + }, + { + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 977, + "end": 978, + "loc": { + "start": { + "line": 39, + "column": 87 + }, + "end": { + "line": 39, + "column": 88 + } + } + }, + { + "type": { + "label": "null", + "keyword": "null", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "null", + "start": 979, + "end": 983, + "loc": { + "start": { + "line": 39, + "column": 89 + }, + "end": { + "line": 39, + "column": 93 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 983, + "end": 984, + "loc": { + "start": { + "line": 39, + "column": 93 + }, + "end": { + "line": 39, + "column": 94 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 984, + "end": 985, + "loc": { + "start": { + "line": 39, + "column": 94 + }, + "end": { + "line": 39, + "column": 95 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "stdBtnCount", + "start": 995, + "end": 1006, + "loc": { + "start": { + "line": 41, + "column": 6 + }, + "end": { + "line": 41, + "column": 17 + } + } + }, + { + "type": { + "label": "_=", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": true, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "+=", + "start": 1007, + "end": 1009, + "loc": { + "start": { + "line": 41, + "column": 18 + }, + "end": { + "line": 41, + "column": 20 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "label", + "start": 1010, + "end": 1015, + "loc": { + "start": { + "line": 41, + "column": 21 + }, + "end": { + "line": 41, + "column": 26 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1015, + "end": 1016, + "loc": { + "start": { + "line": 41, + "column": 26 + }, + "end": { + "line": 41, + "column": 27 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "length", + "start": 1016, + "end": 1022, + "loc": { + "start": { + "line": 41, + "column": 27 + }, + "end": { + "line": 41, + "column": 33 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1022, + "end": 1023, + "loc": { + "start": { + "line": 41, + "column": 33 + }, + "end": { + "line": 41, + "column": 34 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 1029, + "end": 1030, + "loc": { + "start": { + "line": 42, + "column": 4 + }, + "end": { + "line": 42, + "column": 5 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 1030, + "end": 1031, + "loc": { + "start": { + "line": 42, + "column": 5 + }, + "end": { + "line": 42, + "column": 6 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1031, + "end": 1032, + "loc": { + "start": { + "line": 42, + "column": 6 + }, + "end": { + "line": 42, + "column": 7 + } + } + }, + { + "type": "CommentBlock", + "value": "*\r\n * Check if maxLength is respected\r\n ", + "start": 1040, + "end": 1092, + "loc": { + "start": { + "line": 44, + "column": 4 + }, + "end": { + "line": 46, + "column": 7 + } + } + }, + { + "type": { + "label": "if", + "keyword": "if", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "if", + "start": 1098, + "end": 1100, + "loc": { + "start": { + "line": 47, + "column": 4 + }, + "end": { + "line": 47, + "column": 6 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 1100, + "end": 1101, + "loc": { + "start": { + "line": 47, + "column": 6 + }, + "end": { + "line": 47, + "column": 7 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 1109, + "end": 1110, + "loc": { + "start": { + "line": 48, + "column": 6 + }, + "end": { + "line": 48, + "column": 7 + } + } + }, + { + "type": { + "label": "typeof", + "keyword": "typeof", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": true, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "typeof", + "start": 1120, + "end": 1126, + "loc": { + "start": { + "line": 49, + "column": 8 + }, + "end": { + "line": 49, + "column": 14 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "keyboard", + "start": 1127, + "end": 1135, + "loc": { + "start": { + "line": 49, + "column": 15 + }, + "end": { + "line": 49, + "column": 23 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1135, + "end": 1136, + "loc": { + "start": { + "line": 49, + "column": 23 + }, + "end": { + "line": 49, + "column": 24 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "options", + "start": 1136, + "end": 1143, + "loc": { + "start": { + "line": 49, + "column": 24 + }, + "end": { + "line": 49, + "column": 31 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1143, + "end": 1144, + "loc": { + "start": { + "line": 49, + "column": 31 + }, + "end": { + "line": 49, + "column": 32 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "maxLength", + "start": 1144, + "end": 1153, + "loc": { + "start": { + "line": 49, + "column": 32 + }, + "end": { + "line": 49, + "column": 41 + } + } + }, + { + "type": { + "label": "==/!=", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": 6, + "updateContext": null + }, + "value": "===", + "start": 1154, + "end": 1157, + "loc": { + "start": { + "line": 49, + "column": 42 + }, + "end": { + "line": 49, + "column": 45 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "object", + "start": 1158, + "end": 1166, + "loc": { + "start": { + "line": 49, + "column": 46 + }, + "end": { + "line": 49, + "column": 54 + } + } + }, + { + "type": { + "label": "&&", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": 2, + "updateContext": null + }, + "value": "&&", + "start": 1167, + "end": 1169, + "loc": { + "start": { + "line": 49, + "column": 55 + }, + "end": { + "line": 49, + "column": 57 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "keyboard", + "start": 1179, + "end": 1187, + "loc": { + "start": { + "line": 50, + "column": 8 + }, + "end": { + "line": 50, + "column": 16 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1187, + "end": 1188, + "loc": { + "start": { + "line": 50, + "column": 16 + }, + "end": { + "line": 50, + "column": 17 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "getInput", + "start": 1188, + "end": 1196, + "loc": { + "start": { + "line": 50, + "column": 17 + }, + "end": { + "line": 50, + "column": 25 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 1196, + "end": 1197, + "loc": { + "start": { + "line": 50, + "column": 25 + }, + "end": { + "line": 50, + "column": 26 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 1197, + "end": 1198, + "loc": { + "start": { + "line": 50, + "column": 26 + }, + "end": { + "line": 50, + "column": 27 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1198, + "end": 1199, + "loc": { + "start": { + "line": 50, + "column": 27 + }, + "end": { + "line": 50, + "column": 28 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "length", + "start": 1199, + "end": 1205, + "loc": { + "start": { + "line": 50, + "column": 28 + }, + "end": { + "line": 50, + "column": 34 + } + } + }, + { + "type": { + "label": "==/!=", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": 6, + "updateContext": null + }, + "value": "!==", + "start": 1206, + "end": 1209, + "loc": { + "start": { + "line": 50, + "column": 35 + }, + "end": { + "line": 50, + "column": 38 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "keyboard", + "start": 1210, + "end": 1218, + "loc": { + "start": { + "line": 50, + "column": 39 + }, + "end": { + "line": 50, + "column": 47 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1218, + "end": 1219, + "loc": { + "start": { + "line": 50, + "column": 47 + }, + "end": { + "line": 50, + "column": 48 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "options", + "start": 1219, + "end": 1226, + "loc": { + "start": { + "line": 50, + "column": 48 + }, + "end": { + "line": 50, + "column": 55 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1226, + "end": 1227, + "loc": { + "start": { + "line": 50, + "column": 55 + }, + "end": { + "line": 50, + "column": 56 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "maxLength", + "start": 1227, + "end": 1236, + "loc": { + "start": { + "line": 50, + "column": 56 + }, + "end": { + "line": 50, + "column": 65 + } + } + }, + { + "type": { + "label": "[", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1236, + "end": 1237, + "loc": { + "start": { + "line": 50, + "column": 65 + }, + "end": { + "line": 50, + "column": 66 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "keyboard", + "start": 1237, + "end": 1245, + "loc": { + "start": { + "line": 50, + "column": 66 + }, + "end": { + "line": 50, + "column": 74 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1245, + "end": 1246, + "loc": { + "start": { + "line": 50, + "column": 74 + }, + "end": { + "line": 50, + "column": 75 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "options", + "start": 1246, + "end": 1253, + "loc": { + "start": { + "line": 50, + "column": 75 + }, + "end": { + "line": 50, + "column": 82 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1253, + "end": 1254, + "loc": { + "start": { + "line": 50, + "column": 82 + }, + "end": { + "line": 50, + "column": 83 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "layoutName", + "start": 1254, + "end": 1264, + "loc": { + "start": { + "line": 50, + "column": 83 + }, + "end": { + "line": 50, + "column": 93 + } + } + }, + { + "type": { + "label": "]", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1264, + "end": 1265, + "loc": { + "start": { + "line": 50, + "column": 93 + }, + "end": { + "line": 50, + "column": 94 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 1273, + "end": 1274, + "loc": { + "start": { + "line": 51, + "column": 6 + }, + "end": { + "line": 51, + "column": 7 + } + } + }, + { + "type": { + "label": "||", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": 1, + "updateContext": null + }, + "value": "||", + "start": 1275, + "end": 1277, + "loc": { + "start": { + "line": 51, + "column": 8 + }, + "end": { + "line": 51, + "column": 10 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 1285, + "end": 1286, + "loc": { + "start": { + "line": 52, + "column": 6 + }, + "end": { + "line": 52, + "column": 7 + } + } + }, + { + "type": { + "label": "typeof", + "keyword": "typeof", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": true, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "typeof", + "start": 1296, + "end": 1302, + "loc": { + "start": { + "line": 53, + "column": 8 + }, + "end": { + "line": 53, + "column": 14 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "keyboard", + "start": 1303, + "end": 1311, + "loc": { + "start": { + "line": 53, + "column": 15 + }, + "end": { + "line": 53, + "column": 23 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1311, + "end": 1312, + "loc": { + "start": { + "line": 53, + "column": 23 + }, + "end": { + "line": 53, + "column": 24 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "options", + "start": 1312, + "end": 1319, + "loc": { + "start": { + "line": 53, + "column": 24 + }, + "end": { + "line": 53, + "column": 31 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1319, + "end": 1320, + "loc": { + "start": { + "line": 53, + "column": 31 + }, + "end": { + "line": 53, + "column": 32 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "maxLength", + "start": 1320, + "end": 1329, + "loc": { + "start": { + "line": 53, + "column": 32 + }, + "end": { + "line": 53, + "column": 41 + } + } + }, + { + "type": { + "label": "==/!=", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": 6, + "updateContext": null + }, + "value": "!==", + "start": 1330, + "end": 1333, + "loc": { + "start": { + "line": 53, + "column": 42 + }, + "end": { + "line": 53, + "column": 45 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "object", + "start": 1334, + "end": 1342, + "loc": { + "start": { + "line": 53, + "column": 46 + }, + "end": { + "line": 53, + "column": 54 + } + } + }, + { + "type": { + "label": "&&", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": 2, + "updateContext": null + }, + "value": "&&", + "start": 1343, + "end": 1345, + "loc": { + "start": { + "line": 53, + "column": 55 + }, + "end": { + "line": 53, + "column": 57 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "keyboard", + "start": 1355, + "end": 1363, + "loc": { + "start": { + "line": 54, + "column": 8 + }, + "end": { + "line": 54, + "column": 16 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1363, + "end": 1364, + "loc": { + "start": { + "line": 54, + "column": 16 + }, + "end": { + "line": 54, + "column": 17 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "getInput", + "start": 1364, + "end": 1372, + "loc": { + "start": { + "line": 54, + "column": 17 + }, + "end": { + "line": 54, + "column": 25 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 1372, + "end": 1373, + "loc": { + "start": { + "line": 54, + "column": 25 + }, + "end": { + "line": 54, + "column": 26 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 1373, + "end": 1374, + "loc": { + "start": { + "line": 54, + "column": 26 + }, + "end": { + "line": 54, + "column": 27 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1374, + "end": 1375, + "loc": { + "start": { + "line": 54, + "column": 27 + }, + "end": { + "line": 54, + "column": 28 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "length", + "start": 1375, + "end": 1381, + "loc": { + "start": { + "line": 54, + "column": 28 + }, + "end": { + "line": 54, + "column": 34 + } + } + }, + { + "type": { + "label": "==/!=", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": 6, + "updateContext": null + }, + "value": "!==", + "start": 1382, + "end": 1385, + "loc": { + "start": { + "line": 54, + "column": 35 + }, + "end": { + "line": 54, + "column": 38 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "keyboard", + "start": 1386, + "end": 1394, + "loc": { + "start": { + "line": 54, + "column": 39 + }, + "end": { + "line": 54, + "column": 47 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1394, + "end": 1395, + "loc": { + "start": { + "line": 54, + "column": 47 + }, + "end": { + "line": 54, + "column": 48 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "options", + "start": 1395, + "end": 1402, + "loc": { + "start": { + "line": 54, + "column": 48 + }, + "end": { + "line": 54, + "column": 55 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1402, + "end": 1403, + "loc": { + "start": { + "line": 54, + "column": 55 + }, + "end": { + "line": 54, + "column": 56 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "maxLength", + "start": 1403, + "end": 1412, + "loc": { + "start": { + "line": 54, + "column": 56 + }, + "end": { + "line": 54, + "column": 65 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 1420, + "end": 1421, + "loc": { + "start": { + "line": 55, + "column": 6 + }, + "end": { + "line": 55, + "column": 7 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 1427, + "end": 1428, + "loc": { + "start": { + "line": 56, + "column": 4 + }, + "end": { + "line": 56, + "column": 5 + } + } + }, + { + "type": { + "label": "throw", + "keyword": "throw", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "throw", + "start": 1436, + "end": 1441, + "loc": { + "start": { + "line": 57, + "column": 6 + }, + "end": { + "line": 57, + "column": 11 + } + } + }, + { + "type": { + "label": "new", + "keyword": "new", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "new", + "start": 1442, + "end": 1445, + "loc": { + "start": { + "line": 57, + "column": 12 + }, + "end": { + "line": 57, + "column": 15 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "Error", + "start": 1446, + "end": 1451, + "loc": { + "start": { + "line": 57, + "column": 16 + }, + "end": { + "line": 57, + "column": 21 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 1451, + "end": 1452, + "loc": { + "start": { + "line": 57, + "column": 21 + }, + "end": { + "line": 57, + "column": 22 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "MAX_LENGTH_ISSUE", + "start": 1452, + "end": 1470, + "loc": { + "start": { + "line": 57, + "column": 22 + }, + "end": { + "line": 57, + "column": 40 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 1470, + "end": 1471, + "loc": { + "start": { + "line": 57, + "column": 40 + }, + "end": { + "line": 57, + "column": 41 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1471, + "end": 1472, + "loc": { + "start": { + "line": 57, + "column": 41 + }, + "end": { + "line": 57, + "column": 42 + } + } + }, + { + "type": { + "label": "else", + "keyword": "else", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "else", + "start": 1478, + "end": 1482, + "loc": { + "start": { + "line": 58, + "column": 4 + }, + "end": { + "line": 58, + "column": 8 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "console", + "start": 1490, + "end": 1497, + "loc": { + "start": { + "line": 59, + "column": 6 + }, + "end": { + "line": 59, + "column": 13 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1497, + "end": 1498, + "loc": { + "start": { + "line": 59, + "column": 13 + }, + "end": { + "line": 59, + "column": 14 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "log", + "start": 1498, + "end": 1501, + "loc": { + "start": { + "line": 59, + "column": 14 + }, + "end": { + "line": 59, + "column": 17 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 1501, + "end": 1502, + "loc": { + "start": { + "line": 59, + "column": 17 + }, + "end": { + "line": 59, + "column": 18 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "MAX_LENGTH PASSED:", + "start": 1502, + "end": 1522, + "loc": { + "start": { + "line": 59, + "column": 18 + }, + "end": { + "line": 59, + "column": 38 + } + } + }, + { + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1522, + "end": 1523, + "loc": { + "start": { + "line": 59, + "column": 38 + }, + "end": { + "line": 59, + "column": 39 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "keyboard", + "start": 1524, + "end": 1532, + "loc": { + "start": { + "line": 59, + "column": 40 + }, + "end": { + "line": 59, + "column": 48 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1532, + "end": 1533, + "loc": { + "start": { + "line": 59, + "column": 48 + }, + "end": { + "line": 59, + "column": 49 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "options", + "start": 1533, + "end": 1540, + "loc": { + "start": { + "line": 59, + "column": 49 + }, + "end": { + "line": 59, + "column": 56 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1540, + "end": 1541, + "loc": { + "start": { + "line": 59, + "column": 56 + }, + "end": { + "line": 59, + "column": 57 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "layoutName", + "start": 1541, + "end": 1551, + "loc": { + "start": { + "line": 59, + "column": 57 + }, + "end": { + "line": 59, + "column": 67 + } + } + }, + { + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1551, + "end": 1552, + "loc": { + "start": { + "line": 59, + "column": 67 + }, + "end": { + "line": 59, + "column": 68 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "keyboard", + "start": 1553, + "end": 1561, + "loc": { + "start": { + "line": 59, + "column": 69 + }, + "end": { + "line": 59, + "column": 77 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1561, + "end": 1562, + "loc": { + "start": { + "line": 59, + "column": 77 + }, + "end": { + "line": 59, + "column": 78 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "getInput", + "start": 1562, + "end": 1570, + "loc": { + "start": { + "line": 59, + "column": 78 + }, + "end": { + "line": 59, + "column": 86 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 1570, + "end": 1571, + "loc": { + "start": { + "line": 59, + "column": 86 + }, + "end": { + "line": 59, + "column": 87 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 1571, + "end": 1572, + "loc": { + "start": { + "line": 59, + "column": 87 + }, + "end": { + "line": 59, + "column": 88 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1572, + "end": 1573, + "loc": { + "start": { + "line": 59, + "column": 88 + }, + "end": { + "line": 59, + "column": 89 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "length", + "start": 1573, + "end": 1579, + "loc": { + "start": { + "line": 59, + "column": 89 + }, + "end": { + "line": 59, + "column": 95 + } + } + }, + { + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1579, + "end": 1580, + "loc": { + "start": { + "line": 59, + "column": 95 + }, + "end": { + "line": 59, + "column": 96 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "keyboard", + "start": 1581, + "end": 1589, + "loc": { + "start": { + "line": 59, + "column": 97 + }, + "end": { + "line": 59, + "column": 105 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1589, + "end": 1590, + "loc": { + "start": { + "line": 59, + "column": 105 + }, + "end": { + "line": 59, + "column": 106 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "options", + "start": 1590, + "end": 1597, + "loc": { + "start": { + "line": 59, + "column": 106 + }, + "end": { + "line": 59, + "column": 113 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1597, + "end": 1598, + "loc": { + "start": { + "line": 59, + "column": 113 + }, + "end": { + "line": 59, + "column": 114 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "maxLength", + "start": 1598, + "end": 1607, + "loc": { + "start": { + "line": 59, + "column": 114 + }, + "end": { + "line": 59, + "column": 123 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 1607, + "end": 1608, + "loc": { + "start": { + "line": 59, + "column": 123 + }, + "end": { + "line": 59, + "column": 124 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1608, + "end": 1609, + "loc": { + "start": { + "line": 59, + "column": 124 + }, + "end": { + "line": 59, + "column": 125 + } + } + }, + { + "type": "CommentBlock", + "value": "*\r\n * Check if all standard buttons are inputting something\r\n * (Regardless of maxLength)\r\n ", + "start": 1617, + "end": 1725, + "loc": { + "start": { + "line": 61, + "column": 4 + }, + "end": { + "line": 64, + "column": 7 + } + } + }, + { + "type": { + "label": "if", + "keyword": "if", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "if", + "start": 1731, + "end": 1733, + "loc": { + "start": { + "line": 65, + "column": 4 + }, + "end": { + "line": 65, + "column": 6 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 1733, + "end": 1734, + "loc": { + "start": { + "line": 65, + "column": 6 + }, + "end": { + "line": 65, + "column": 7 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "stdBtnCount", + "start": 1734, + "end": 1745, + "loc": { + "start": { + "line": 65, + "column": 7 + }, + "end": { + "line": 65, + "column": 18 + } + } + }, + { + "type": { + "label": "==/!=", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": 6, + "updateContext": null + }, + "value": "!==", + "start": 1746, + "end": 1749, + "loc": { + "start": { + "line": 65, + "column": 19 + }, + "end": { + "line": 65, + "column": 22 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "fullInput", + "start": 1750, + "end": 1759, + "loc": { + "start": { + "line": 65, + "column": 23 + }, + "end": { + "line": 65, + "column": 32 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1759, + "end": 1760, + "loc": { + "start": { + "line": 65, + "column": 32 + }, + "end": { + "line": 65, + "column": 33 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "length", + "start": 1760, + "end": 1766, + "loc": { + "start": { + "line": 65, + "column": 33 + }, + "end": { + "line": 65, + "column": 39 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 1766, + "end": 1767, + "loc": { + "start": { + "line": 65, + "column": 39 + }, + "end": { + "line": 65, + "column": 40 + } + } + }, + { + "type": { + "label": "throw", + "keyword": "throw", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "throw", + "start": 1775, + "end": 1780, + "loc": { + "start": { + "line": 66, + "column": 6 + }, + "end": { + "line": 66, + "column": 11 + } + } + }, + { + "type": { + "label": "new", + "keyword": "new", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "new", + "start": 1781, + "end": 1784, + "loc": { + "start": { + "line": 66, + "column": 12 + }, + "end": { + "line": 66, + "column": 15 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "Error", + "start": 1785, + "end": 1790, + "loc": { + "start": { + "line": 66, + "column": 16 + }, + "end": { + "line": 66, + "column": 21 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 1790, + "end": 1791, + "loc": { + "start": { + "line": 66, + "column": 21 + }, + "end": { + "line": 66, + "column": 22 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "STANDARD_BUTTONS_ISSUE", + "start": 1791, + "end": 1815, + "loc": { + "start": { + "line": 66, + "column": 22 + }, + "end": { + "line": 66, + "column": 46 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 1815, + "end": 1816, + "loc": { + "start": { + "line": 66, + "column": 46 + }, + "end": { + "line": 66, + "column": 47 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1816, + "end": 1817, + "loc": { + "start": { + "line": 66, + "column": 47 + }, + "end": { + "line": 66, + "column": 48 + } + } + }, + { + "type": { + "label": "else", + "keyword": "else", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "else", + "start": 1823, + "end": 1827, + "loc": { + "start": { + "line": 67, + "column": 4 + }, + "end": { + "line": 67, + "column": 8 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "console", + "start": 1835, + "end": 1842, + "loc": { + "start": { + "line": 68, + "column": 6 + }, + "end": { + "line": 68, + "column": 13 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1842, + "end": 1843, + "loc": { + "start": { + "line": 68, + "column": 13 + }, + "end": { + "line": 68, + "column": 14 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "log", + "start": 1843, + "end": 1846, + "loc": { + "start": { + "line": 68, + "column": 14 + }, + "end": { + "line": 68, + "column": 17 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 1846, + "end": 1847, + "loc": { + "start": { + "line": 68, + "column": 17 + }, + "end": { + "line": 68, + "column": 18 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "STANDARD_BUTTONS PASSED:", + "start": 1847, + "end": 1873, + "loc": { + "start": { + "line": 68, + "column": 18 + }, + "end": { + "line": 68, + "column": 44 + } + } + }, + { + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1873, + "end": 1874, + "loc": { + "start": { + "line": 68, + "column": 44 + }, + "end": { + "line": 68, + "column": 45 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "keyboard", + "start": 1875, + "end": 1883, + "loc": { + "start": { + "line": 68, + "column": 46 + }, + "end": { + "line": 68, + "column": 54 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1883, + "end": 1884, + "loc": { + "start": { + "line": 68, + "column": 54 + }, + "end": { + "line": 68, + "column": 55 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "options", + "start": 1884, + "end": 1891, + "loc": { + "start": { + "line": 68, + "column": 55 + }, + "end": { + "line": 68, + "column": 62 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1891, + "end": 1892, + "loc": { + "start": { + "line": 68, + "column": 62 + }, + "end": { + "line": 68, + "column": 63 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "layoutName", + "start": 1892, + "end": 1902, + "loc": { + "start": { + "line": 68, + "column": 63 + }, + "end": { + "line": 68, + "column": 73 + } + } + }, + { + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1902, + "end": 1903, + "loc": { + "start": { + "line": 68, + "column": 73 + }, + "end": { + "line": 68, + "column": 74 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "stdBtnCount", + "start": 1904, + "end": 1915, + "loc": { + "start": { + "line": 68, + "column": 75 + }, + "end": { + "line": 68, + "column": 86 + } + } + }, + { + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1915, + "end": 1916, + "loc": { + "start": { + "line": 68, + "column": 86 + }, + "end": { + "line": 68, + "column": 87 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "fullInput", + "start": 1917, + "end": 1926, + "loc": { + "start": { + "line": 68, + "column": 88 + }, + "end": { + "line": 68, + "column": 97 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1926, + "end": 1927, + "loc": { + "start": { + "line": 68, + "column": 97 + }, + "end": { + "line": 68, + "column": 98 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "length", + "start": 1927, + "end": 1933, + "loc": { + "start": { + "line": 68, + "column": 98 + }, + "end": { + "line": 68, + "column": 104 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 1933, + "end": 1934, + "loc": { + "start": { + "line": 68, + "column": 104 + }, + "end": { + "line": 68, + "column": 105 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1934, + "end": 1935, + "loc": { + "start": { + "line": 68, + "column": 105 + }, + "end": { + "line": 68, + "column": 106 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 1939, + "end": 1940, + "loc": { + "start": { + "line": 69, + "column": 2 + }, + "end": { + "line": 69, + "column": 3 + } + } + }, + { + "type": "CommentBlock", + "value": "*\r\n * Test if function buttons are interactive (have an onclick)\r\n ", + "start": 1946, + "end": 2021, + "loc": { + "start": { + "line": 71, + "column": 2 + }, + "end": { + "line": 73, + "column": 5 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "testLayoutFctButtons", + "start": 2025, + "end": 2045, + "loc": { + "start": { + "line": 74, + "column": 2 + }, + "end": { + "line": 74, + "column": 22 + } + } + }, + { + "type": { + "label": "=", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": true, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "=", + "start": 2046, + "end": 2047, + "loc": { + "start": { + "line": 74, + "column": 23 + }, + "end": { + "line": 74, + "column": 24 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 2048, + "end": 2049, + "loc": { + "start": { + "line": 74, + "column": 25 + }, + "end": { + "line": 74, + "column": 26 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "callback", + "start": 2049, + "end": 2057, + "loc": { + "start": { + "line": 74, + "column": 26 + }, + "end": { + "line": 74, + "column": 34 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 2057, + "end": 2058, + "loc": { + "start": { + "line": 74, + "column": 34 + }, + "end": { + "line": 74, + "column": 35 + } + } + }, + { + "type": { + "label": "=>", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 2059, + "end": 2061, + "loc": { + "start": { + "line": 74, + "column": 36 + }, + "end": { + "line": 74, + "column": 38 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 2062, + "end": 2063, + "loc": { + "start": { + "line": 74, + "column": 39 + }, + "end": { + "line": 74, + "column": 40 + } + } + }, + { + "type": { + "label": "let", + "keyword": "let", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "let", + "start": 2069, + "end": 2072, + "loc": { + "start": { + "line": 75, + "column": 4 + }, + "end": { + "line": 75, + "column": 7 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "fctBtnCount", + "start": 2073, + "end": 2084, + "loc": { + "start": { + "line": 75, + "column": 8 + }, + "end": { + "line": 75, + "column": 19 + } + } + }, + { + "type": { + "label": "=", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": true, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "=", + "start": 2085, + "end": 2086, + "loc": { + "start": { + "line": 75, + "column": 20 + }, + "end": { + "line": 75, + "column": 21 + } + } + }, + { + "type": { + "label": "num", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": 0, + "start": 2087, + "end": 2088, + "loc": { + "start": { + "line": 75, + "column": 22 + }, + "end": { + "line": 75, + "column": 23 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 2088, + "end": 2089, + "loc": { + "start": { + "line": 75, + "column": 23 + }, + "end": { + "line": 75, + "column": 24 + } + } + }, + { + "type": { + "label": "let", + "keyword": "let", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "let", + "start": 2095, + "end": 2098, + "loc": { + "start": { + "line": 76, + "column": 4 + }, + "end": { + "line": 76, + "column": 7 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "fctBtnHasOnclickCount", + "start": 2099, + "end": 2120, + "loc": { + "start": { + "line": 76, + "column": 8 + }, + "end": { + "line": 76, + "column": 29 + } + } + }, + { + "type": { + "label": "=", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": true, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "=", + "start": 2121, + "end": 2122, + "loc": { + "start": { + "line": 76, + "column": 30 + }, + "end": { + "line": 76, + "column": 31 + } + } + }, + { + "type": { + "label": "num", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": 0, + "start": 2123, + "end": 2124, + "loc": { + "start": { + "line": 76, + "column": 32 + }, + "end": { + "line": 76, + "column": 33 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 2124, + "end": 2125, + "loc": { + "start": { + "line": 76, + "column": 33 + }, + "end": { + "line": 76, + "column": 34 + } + } + }, + { + "type": { + "label": "this", + "keyword": "this", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "this", + "start": 2133, + "end": 2137, + "loc": { + "start": { + "line": 78, + "column": 4 + }, + "end": { + "line": 78, + "column": 8 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 2137, + "end": 2138, + "loc": { + "start": { + "line": 78, + "column": 8 + }, + "end": { + "line": 78, + "column": 9 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "iterateButtons", + "start": 2138, + "end": 2152, + "loc": { + "start": { + "line": 78, + "column": 9 + }, + "end": { + "line": 78, + "column": 23 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 2152, + "end": 2153, + "loc": { + "start": { + "line": 78, + "column": 23 + }, + "end": { + "line": 78, + "column": 24 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 2153, + "end": 2154, + "loc": { + "start": { + "line": 78, + "column": 24 + }, + "end": { + "line": 78, + "column": 25 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "button", + "start": 2154, + "end": 2160, + "loc": { + "start": { + "line": 78, + "column": 25 + }, + "end": { + "line": 78, + "column": 31 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 2160, + "end": 2161, + "loc": { + "start": { + "line": 78, + "column": 31 + }, + "end": { + "line": 78, + "column": 32 + } + } + }, + { + "type": { + "label": "=>", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 2162, + "end": 2164, + "loc": { + "start": { + "line": 78, + "column": 33 + }, + "end": { + "line": 78, + "column": 35 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 2165, + "end": 2166, + "loc": { + "start": { + "line": 78, + "column": 36 + }, + "end": { + "line": 78, + "column": 37 + } + } + }, + { + "type": { + "label": "let", + "keyword": "let", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "let", + "start": 2174, + "end": 2177, + "loc": { + "start": { + "line": 79, + "column": 6 + }, + "end": { + "line": 79, + "column": 9 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "label", + "start": 2178, + "end": 2183, + "loc": { + "start": { + "line": 79, + "column": 10 + }, + "end": { + "line": 79, + "column": 15 + } + } + }, + { + "type": { + "label": "=", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": true, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "=", + "start": 2184, + "end": 2185, + "loc": { + "start": { + "line": 79, + "column": 16 + }, + "end": { + "line": 79, + "column": 17 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "button", + "start": 2186, + "end": 2192, + "loc": { + "start": { + "line": 79, + "column": 18 + }, + "end": { + "line": 79, + "column": 24 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 2192, + "end": 2193, + "loc": { + "start": { + "line": 79, + "column": 24 + }, + "end": { + "line": 79, + "column": 25 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "getAttribute", + "start": 2193, + "end": 2205, + "loc": { + "start": { + "line": 79, + "column": 25 + }, + "end": { + "line": 79, + "column": 37 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 2205, + "end": 2206, + "loc": { + "start": { + "line": 79, + "column": 37 + }, + "end": { + "line": 79, + "column": 38 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "data-skbtn", + "start": 2206, + "end": 2218, + "loc": { + "start": { + "line": 79, + "column": 38 + }, + "end": { + "line": 79, + "column": 50 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 2218, + "end": 2219, + "loc": { + "start": { + "line": 79, + "column": 50 + }, + "end": { + "line": 79, + "column": 51 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 2219, + "end": 2220, + "loc": { + "start": { + "line": 79, + "column": 51 + }, + "end": { + "line": 79, + "column": 52 + } + } + }, + { + "type": { + "label": "if", + "keyword": "if", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "if", + "start": 2230, + "end": 2232, + "loc": { + "start": { + "line": 81, + "column": 6 + }, + "end": { + "line": 81, + "column": 8 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 2232, + "end": 2233, + "loc": { + "start": { + "line": 81, + "column": 8 + }, + "end": { + "line": 81, + "column": 9 + } + } + }, + { + "type": { + "label": "prefix", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": true, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "!", + "start": 2233, + "end": 2234, + "loc": { + "start": { + "line": 81, + "column": 9 + }, + "end": { + "line": 81, + "column": 10 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "label", + "start": 2234, + "end": 2239, + "loc": { + "start": { + "line": 81, + "column": 10 + }, + "end": { + "line": 81, + "column": 15 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 2239, + "end": 2240, + "loc": { + "start": { + "line": 81, + "column": 15 + }, + "end": { + "line": 81, + "column": 16 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "includes", + "start": 2240, + "end": 2248, + "loc": { + "start": { + "line": 81, + "column": 16 + }, + "end": { + "line": 81, + "column": 24 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 2248, + "end": 2249, + "loc": { + "start": { + "line": 81, + "column": 24 + }, + "end": { + "line": 81, + "column": 25 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "{", + "start": 2249, + "end": 2252, + "loc": { + "start": { + "line": 81, + "column": 25 + }, + "end": { + "line": 81, + "column": 28 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 2252, + "end": 2253, + "loc": { + "start": { + "line": 81, + "column": 28 + }, + "end": { + "line": 81, + "column": 29 + } + } + }, + { + "type": { + "label": "&&", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": 2, + "updateContext": null + }, + "value": "&&", + "start": 2254, + "end": 2256, + "loc": { + "start": { + "line": 81, + "column": 30 + }, + "end": { + "line": 81, + "column": 32 + } + } + }, + { + "type": { + "label": "prefix", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": true, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "!", + "start": 2257, + "end": 2258, + "loc": { + "start": { + "line": 81, + "column": 33 + }, + "end": { + "line": 81, + "column": 34 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "label", + "start": 2258, + "end": 2263, + "loc": { + "start": { + "line": 81, + "column": 34 + }, + "end": { + "line": 81, + "column": 39 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 2263, + "end": 2264, + "loc": { + "start": { + "line": 81, + "column": 39 + }, + "end": { + "line": 81, + "column": 40 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "includes", + "start": 2264, + "end": 2272, + "loc": { + "start": { + "line": 81, + "column": 40 + }, + "end": { + "line": 81, + "column": 48 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 2272, + "end": 2273, + "loc": { + "start": { + "line": 81, + "column": 48 + }, + "end": { + "line": 81, + "column": 49 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "}", + "start": 2273, + "end": 2276, + "loc": { + "start": { + "line": 81, + "column": 49 + }, + "end": { + "line": 81, + "column": 52 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 2276, + "end": 2277, + "loc": { + "start": { + "line": 81, + "column": 52 + }, + "end": { + "line": 81, + "column": 53 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 2277, + "end": 2278, + "loc": { + "start": { + "line": 81, + "column": 53 + }, + "end": { + "line": 81, + "column": 54 + } + } + }, + { + "type": { + "label": "return", + "keyword": "return", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "return", + "start": 2288, + "end": 2294, + "loc": { + "start": { + "line": 82, + "column": 8 + }, + "end": { + "line": 82, + "column": 14 + } + } + }, + { + "type": { + "label": "false", + "keyword": "false", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "false", + "start": 2295, + "end": 2300, + "loc": { + "start": { + "line": 82, + "column": 15 + }, + "end": { + "line": 82, + "column": 20 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 2300, + "end": 2301, + "loc": { + "start": { + "line": 82, + "column": 20 + }, + "end": { + "line": 82, + "column": 21 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "fctBtnCount", + "start": 2311, + "end": 2322, + "loc": { + "start": { + "line": 84, + "column": 6 + }, + "end": { + "line": 84, + "column": 17 + } + } + }, + { + "type": { + "label": "++/--", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": true, + "postfix": true, + "binop": null + }, + "value": "++", + "start": 2322, + "end": 2324, + "loc": { + "start": { + "line": 84, + "column": 17 + }, + "end": { + "line": 84, + "column": 19 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 2324, + "end": 2325, + "loc": { + "start": { + "line": 84, + "column": 19 + }, + "end": { + "line": 84, + "column": 20 + } + } + }, + { + "type": { + "label": "if", + "keyword": "if", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "if", + "start": 2335, + "end": 2337, + "loc": { + "start": { + "line": 86, + "column": 6 + }, + "end": { + "line": 86, + "column": 8 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 2337, + "end": 2338, + "loc": { + "start": { + "line": 86, + "column": 8 + }, + "end": { + "line": 86, + "column": 9 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "button", + "start": 2338, + "end": 2344, + "loc": { + "start": { + "line": 86, + "column": 9 + }, + "end": { + "line": 86, + "column": 15 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 2344, + "end": 2345, + "loc": { + "start": { + "line": 86, + "column": 15 + }, + "end": { + "line": 86, + "column": 16 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "onclick", + "start": 2345, + "end": 2352, + "loc": { + "start": { + "line": 86, + "column": 16 + }, + "end": { + "line": 86, + "column": 23 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 2352, + "end": 2353, + "loc": { + "start": { + "line": 86, + "column": 23 + }, + "end": { + "line": 86, + "column": 24 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 2353, + "end": 2354, + "loc": { + "start": { + "line": 86, + "column": 24 + }, + "end": { + "line": 86, + "column": 25 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "button", + "start": 2364, + "end": 2370, + "loc": { + "start": { + "line": 87, + "column": 8 + }, + "end": { + "line": 87, + "column": 14 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 2370, + "end": 2371, + "loc": { + "start": { + "line": 87, + "column": 14 + }, + "end": { + "line": 87, + "column": 15 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "onclick", + "start": 2371, + "end": 2378, + "loc": { + "start": { + "line": 87, + "column": 15 + }, + "end": { + "line": 87, + "column": 22 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 2378, + "end": 2379, + "loc": { + "start": { + "line": 87, + "column": 22 + }, + "end": { + "line": 87, + "column": 23 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 2379, + "end": 2380, + "loc": { + "start": { + "line": 87, + "column": 23 + }, + "end": { + "line": 87, + "column": 24 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 2380, + "end": 2381, + "loc": { + "start": { + "line": 87, + "column": 24 + }, + "end": { + "line": 87, + "column": 25 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "fctBtnHasOnclickCount", + "start": 2391, + "end": 2412, + "loc": { + "start": { + "line": 88, + "column": 8 + }, + "end": { + "line": 88, + "column": 29 + } + } + }, + { + "type": { + "label": "++/--", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": true, + "postfix": true, + "binop": null + }, + "value": "++", + "start": 2412, + "end": 2414, + "loc": { + "start": { + "line": 88, + "column": 29 + }, + "end": { + "line": 88, + "column": 31 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 2414, + "end": 2415, + "loc": { + "start": { + "line": 88, + "column": 31 + }, + "end": { + "line": 88, + "column": 32 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 2423, + "end": 2424, + "loc": { + "start": { + "line": 89, + "column": 6 + }, + "end": { + "line": 89, + "column": 7 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "callback", + "start": 2434, + "end": 2442, + "loc": { + "start": { + "line": 91, + "column": 6 + }, + "end": { + "line": 91, + "column": 14 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 2442, + "end": 2443, + "loc": { + "start": { + "line": 91, + "column": 14 + }, + "end": { + "line": 91, + "column": 15 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "fctBtnCount", + "start": 2443, + "end": 2454, + "loc": { + "start": { + "line": 91, + "column": 15 + }, + "end": { + "line": 91, + "column": 26 + } + } + }, + { + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 2454, + "end": 2455, + "loc": { + "start": { + "line": 91, + "column": 26 + }, + "end": { + "line": 91, + "column": 27 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "fctBtnHasOnclickCount", + "start": 2456, + "end": 2477, + "loc": { + "start": { + "line": 91, + "column": 28 + }, + "end": { + "line": 91, + "column": 49 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 2477, + "end": 2478, + "loc": { + "start": { + "line": 91, + "column": 49 + }, + "end": { + "line": 91, + "column": 50 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 2478, + "end": 2479, + "loc": { + "start": { + "line": 91, + "column": 50 + }, + "end": { + "line": 91, + "column": 51 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 2485, + "end": 2486, + "loc": { + "start": { + "line": 92, + "column": 4 + }, + "end": { + "line": 92, + "column": 5 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 2486, + "end": 2487, + "loc": { + "start": { + "line": 92, + "column": 5 + }, + "end": { + "line": 92, + "column": 6 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 2487, + "end": 2488, + "loc": { + "start": { + "line": 92, + "column": 6 + }, + "end": { + "line": 92, + "column": 7 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 2492, + "end": 2493, + "loc": { + "start": { + "line": 93, + "column": 2 + }, + "end": { + "line": 93, + "column": 3 + } + } + }, + { + "type": "CommentBlock", + "value": "*\r\n * Iterates on the keyboard buttons\r\n ", + "start": 2499, + "end": 2548, + "loc": { + "start": { + "line": 95, + "column": 2 + }, + "end": { + "line": 97, + "column": 5 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "iterateButtons", + "start": 2552, + "end": 2566, + "loc": { + "start": { + "line": 98, + "column": 2 + }, + "end": { + "line": 98, + "column": 16 + } + } + }, + { + "type": { + "label": "=", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": true, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "=", + "start": 2567, + "end": 2568, + "loc": { + "start": { + "line": 98, + "column": 17 + }, + "end": { + "line": 98, + "column": 18 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 2569, + "end": 2570, + "loc": { + "start": { + "line": 98, + "column": 19 + }, + "end": { + "line": 98, + "column": 20 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "callback", + "start": 2570, + "end": 2578, + "loc": { + "start": { + "line": 98, + "column": 20 + }, + "end": { + "line": 98, + "column": 28 + } + } + }, + { + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 2578, + "end": 2579, + "loc": { + "start": { + "line": 98, + "column": 28 + }, + "end": { + "line": 98, + "column": 29 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "selector", + "start": 2580, + "end": 2588, + "loc": { + "start": { + "line": 98, + "column": 30 + }, + "end": { + "line": 98, + "column": 38 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 2588, + "end": 2589, + "loc": { + "start": { + "line": 98, + "column": 38 + }, + "end": { + "line": 98, + "column": 39 + } + } + }, + { + "type": { + "label": "=>", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 2590, + "end": 2592, + "loc": { + "start": { + "line": 98, + "column": 40 + }, + "end": { + "line": 98, + "column": 42 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 2593, + "end": 2594, + "loc": { + "start": { + "line": 98, + "column": 43 + }, + "end": { + "line": 98, + "column": 44 + } + } + }, + { + "type": { + "label": "let", + "keyword": "let", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "let", + "start": 2600, + "end": 2603, + "loc": { + "start": { + "line": 99, + "column": 4 + }, + "end": { + "line": 99, + "column": 7 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "rows", + "start": 2604, + "end": 2608, + "loc": { + "start": { + "line": 99, + "column": 8 + }, + "end": { + "line": 99, + "column": 12 + } + } + }, + { + "type": { + "label": "=", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": true, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "=", + "start": 2609, + "end": 2610, + "loc": { + "start": { + "line": 99, + "column": 13 + }, + "end": { + "line": 99, + "column": 14 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "document", + "start": 2611, + "end": 2619, + "loc": { + "start": { + "line": 99, + "column": 15 + }, + "end": { + "line": 99, + "column": 23 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 2619, + "end": 2620, + "loc": { + "start": { + "line": 99, + "column": 23 + }, + "end": { + "line": 99, + "column": 24 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "body", + "start": 2620, + "end": 2624, + "loc": { + "start": { + "line": 99, + "column": 24 + }, + "end": { + "line": 99, + "column": 28 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 2624, + "end": 2625, + "loc": { + "start": { + "line": 99, + "column": 28 + }, + "end": { + "line": 99, + "column": 29 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "querySelector", + "start": 2625, + "end": 2638, + "loc": { + "start": { + "line": 99, + "column": 29 + }, + "end": { + "line": 99, + "column": 42 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 2638, + "end": 2639, + "loc": { + "start": { + "line": 99, + "column": 42 + }, + "end": { + "line": 99, + "column": 43 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "selector", + "start": 2639, + "end": 2647, + "loc": { + "start": { + "line": 99, + "column": 43 + }, + "end": { + "line": 99, + "column": 51 + } + } + }, + { + "type": { + "label": "||", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": 1, + "updateContext": null + }, + "value": "||", + "start": 2648, + "end": 2650, + "loc": { + "start": { + "line": 99, + "column": 52 + }, + "end": { + "line": 99, + "column": 54 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": ".simple-keyboard", + "start": 2651, + "end": 2669, + "loc": { + "start": { + "line": 99, + "column": 55 + }, + "end": { + "line": 99, + "column": 73 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 2669, + "end": 2670, + "loc": { + "start": { + "line": 99, + "column": 73 + }, + "end": { + "line": 99, + "column": 74 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 2670, + "end": 2671, + "loc": { + "start": { + "line": 99, + "column": 74 + }, + "end": { + "line": 99, + "column": 75 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "children", + "start": 2671, + "end": 2679, + "loc": { + "start": { + "line": 99, + "column": 75 + }, + "end": { + "line": 99, + "column": 83 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 2679, + "end": 2680, + "loc": { + "start": { + "line": 99, + "column": 83 + }, + "end": { + "line": 99, + "column": 84 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "Array", + "start": 2688, + "end": 2693, + "loc": { + "start": { + "line": 101, + "column": 4 + }, + "end": { + "line": 101, + "column": 9 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 2693, + "end": 2694, + "loc": { + "start": { + "line": 101, + "column": 9 + }, + "end": { + "line": 101, + "column": 10 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "from", + "start": 2694, + "end": 2698, + "loc": { + "start": { + "line": 101, + "column": 10 + }, + "end": { + "line": 101, + "column": 14 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 2698, + "end": 2699, + "loc": { + "start": { + "line": 101, + "column": 14 + }, + "end": { + "line": 101, + "column": 15 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "rows", + "start": 2699, + "end": 2703, + "loc": { + "start": { + "line": 101, + "column": 15 + }, + "end": { + "line": 101, + "column": 19 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 2703, + "end": 2704, + "loc": { + "start": { + "line": 101, + "column": 19 + }, + "end": { + "line": 101, + "column": 20 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 2704, + "end": 2705, + "loc": { + "start": { + "line": 101, + "column": 20 + }, + "end": { + "line": 101, + "column": 21 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "forEach", + "start": 2705, + "end": 2712, + "loc": { + "start": { + "line": 101, + "column": 21 + }, + "end": { + "line": 101, + "column": 28 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 2712, + "end": 2713, + "loc": { + "start": { + "line": 101, + "column": 28 + }, + "end": { + "line": 101, + "column": 29 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "row", + "start": 2713, + "end": 2716, + "loc": { + "start": { + "line": 101, + "column": 29 + }, + "end": { + "line": 101, + "column": 32 + } + } + }, + { + "type": { + "label": "=>", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 2717, + "end": 2719, + "loc": { + "start": { + "line": 101, + "column": 33 + }, + "end": { + "line": 101, + "column": 35 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 2720, + "end": 2721, + "loc": { + "start": { + "line": 101, + "column": 36 + }, + "end": { + "line": 101, + "column": 37 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "Array", + "start": 2729, + "end": 2734, + "loc": { + "start": { + "line": 102, + "column": 6 + }, + "end": { + "line": 102, + "column": 11 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 2734, + "end": 2735, + "loc": { + "start": { + "line": 102, + "column": 11 + }, + "end": { + "line": 102, + "column": 12 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "from", + "start": 2735, + "end": 2739, + "loc": { + "start": { + "line": 102, + "column": 12 + }, + "end": { + "line": 102, + "column": 16 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 2739, + "end": 2740, + "loc": { + "start": { + "line": 102, + "column": 16 + }, + "end": { + "line": 102, + "column": 17 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "row", + "start": 2740, + "end": 2743, + "loc": { + "start": { + "line": 102, + "column": 17 + }, + "end": { + "line": 102, + "column": 20 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 2743, + "end": 2744, + "loc": { + "start": { + "line": 102, + "column": 20 + }, + "end": { + "line": 102, + "column": 21 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "children", + "start": 2744, + "end": 2752, + "loc": { + "start": { + "line": 102, + "column": 21 + }, + "end": { + "line": 102, + "column": 29 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 2752, + "end": 2753, + "loc": { + "start": { + "line": 102, + "column": 29 + }, + "end": { + "line": 102, + "column": 30 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 2753, + "end": 2754, + "loc": { + "start": { + "line": 102, + "column": 30 + }, + "end": { + "line": 102, + "column": 31 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "forEach", + "start": 2754, + "end": 2761, + "loc": { + "start": { + "line": 102, + "column": 31 + }, + "end": { + "line": 102, + "column": 38 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 2761, + "end": 2762, + "loc": { + "start": { + "line": 102, + "column": 38 + }, + "end": { + "line": 102, + "column": 39 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 2762, + "end": 2763, + "loc": { + "start": { + "line": 102, + "column": 39 + }, + "end": { + "line": 102, + "column": 40 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "button", + "start": 2763, + "end": 2769, + "loc": { + "start": { + "line": 102, + "column": 40 + }, + "end": { + "line": 102, + "column": 46 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 2769, + "end": 2770, + "loc": { + "start": { + "line": 102, + "column": 46 + }, + "end": { + "line": 102, + "column": 47 + } + } + }, + { + "type": { + "label": "=>", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 2771, + "end": 2773, + "loc": { + "start": { + "line": 102, + "column": 48 + }, + "end": { + "line": 102, + "column": 50 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 2774, + "end": 2775, + "loc": { + "start": { + "line": 102, + "column": 51 + }, + "end": { + "line": 102, + "column": 52 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "callback", + "start": 2785, + "end": 2793, + "loc": { + "start": { + "line": 103, + "column": 8 + }, + "end": { + "line": 103, + "column": 16 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 2793, + "end": 2794, + "loc": { + "start": { + "line": 103, + "column": 16 + }, + "end": { + "line": 103, + "column": 17 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "button", + "start": 2794, + "end": 2800, + "loc": { + "start": { + "line": 103, + "column": 17 + }, + "end": { + "line": 103, + "column": 23 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 2800, + "end": 2801, + "loc": { + "start": { + "line": 103, + "column": 23 + }, + "end": { + "line": 103, + "column": 24 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 2801, + "end": 2802, + "loc": { + "start": { + "line": 103, + "column": 24 + }, + "end": { + "line": 103, + "column": 25 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 2810, + "end": 2811, + "loc": { + "start": { + "line": 104, + "column": 6 + }, + "end": { + "line": 104, + "column": 7 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 2811, + "end": 2812, + "loc": { + "start": { + "line": 104, + "column": 7 + }, + "end": { + "line": 104, + "column": 8 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 2812, + "end": 2813, + "loc": { + "start": { + "line": 104, + "column": 8 + }, + "end": { + "line": 104, + "column": 9 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 2819, + "end": 2820, + "loc": { + "start": { + "line": 105, + "column": 4 + }, + "end": { + "line": 105, + "column": 5 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 2820, + "end": 2821, + "loc": { + "start": { + "line": 105, + "column": 5 + }, + "end": { + "line": 105, + "column": 6 + } + } + }, + { + "type": { + "label": ";", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 2821, + "end": 2822, + "loc": { + "start": { + "line": 105, + "column": 6 + }, + "end": { + "line": 105, + "column": 7 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 2826, + "end": 2827, + "loc": { + "start": { + "line": 106, + "column": 2 + }, + "end": { + "line": 106, + "column": 3 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 2829, + "end": 2830, + "loc": { + "start": { + "line": 107, + "column": 0 + }, + "end": { + "line": 107, + "column": 1 + } + } + }, + { + "type": { + "label": "eof", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 2830, + "end": 2830, + "loc": { + "start": { + "line": 107, + "column": 1 + }, + "end": { + "line": 107, + "column": 1 + } + } + } + ] +} \ No newline at end of file diff --git a/docs/badge.svg b/docs/badge.svg new file mode 100644 index 00000000..1117afa8 --- /dev/null +++ b/docs/badge.svg @@ -0,0 +1,17 @@ + + + + + + + + + + + + document + document + 100% + 100% + + diff --git a/docs/class/src/demo/App.js~App.html b/docs/class/src/demo/App.js~App.html new file mode 100644 index 00000000..e7717bf5 --- /dev/null +++ b/docs/class/src/demo/App.js~App.html @@ -0,0 +1,561 @@ + + + + + + App | simple-keyboard + + + + + + + +
+ Home + + Reference + Source + + +
+ + + +
+ + public + class + + + + | source +
+ +
+

App

+ + + + + + + + + + + + + + + +

simple-keyboard demo

+
+ + + + + + + + + +
+ + + +

Constructor Summary

+ + + + + + + + + +
Public Constructor
+ public + + + + + +
+

+ + + + constructor() +

+
+
+ + +

Instantiates the demo class

+
+
+
+ + +
+
+

Member Summary

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Public Members
+ public + + + + + +
+

+ + + + handleShiftButton: * +

+
+
+ + + +
+
+ + +
+ public + + + + + +
+

+ + + + layoutName: string +

+
+
+ + +

Default input name

+
+
+
+ + +
+ public + + + + + +
+

+ + + + onChange: * +

+
+
+ + +

Called when simple-keyboard input has changed

+
+
+
+ + +
+ public + + + + + +
+

+ + + + onDOMLoaded: * +

+
+
+ + +

Executed when the DOM is ready

+
+
+
+ + +
+ public + + + + + +
+

+ + + + onKeyPress: * +

+
+
+ + +

Called when a simple-keyboard key is pressed

+
+
+
+ + +
+
+ + + + + + +

Public Constructors

+ +
+

+ public + + + + + + constructor() + + + + source + +

+ + + + +

Instantiates the demo class

+
+ + + +
+
+ + + + + + + + + + + + + + + + + +
+
+

Public Members

+ +
+

+ public + + + + + + handleShiftButton: * + + + + source + +

+ + + + + + + + +
+
+ + + + + + + + + + + + + + + + + +
+
+

+ public + + + + + + layoutName: string + + + + source + +

+ + + + +

Default input name

+
+ + + +
+
+ + + + + + + + + + + + + + + + + +
+
+

+ public + + + + + + onChange: * + + + + source + +

+ + + + +

Called when simple-keyboard input has changed

+
+ + + +
+
+ + + + + + + + + + + + + + + + + +
+
+

+ public + + + + + + onDOMLoaded: * + + + + source + +

+ + + + +

Executed when the DOM is ready

+
+ + + +
+
+ + + + + + + + + + + + + + + + + +
+
+

+ public + + + + + + onKeyPress: * + + + + source + +

+ + + + +

Called when a simple-keyboard key is pressed

+
+ + + +
+
+ + + + + + + + + + + + + + + + + +
+
+ +
+ + + + + + + + + + + + diff --git a/docs/class/src/lib/components/Keyboard.js~SimpleKeyboard.html b/docs/class/src/lib/components/Keyboard.js~SimpleKeyboard.html new file mode 100644 index 00000000..5a412ddf --- /dev/null +++ b/docs/class/src/lib/components/Keyboard.js~SimpleKeyboard.html @@ -0,0 +1,2161 @@ + + + + + + SimpleKeyboard | simple-keyboard + + + + + + + +
+ Home + + Reference + Source + + +
+ + + +
+ + public + class + + + + | source +
+ +
+

SimpleKeyboard

+ + + + + + + + + + + + + + + +

Root class for simple-keyboard +This class:

+
    +
  • Parses the options
  • +
  • Renders the rows and buttons
  • +
  • Handles button functionality
  • +
+
+ + + + + + + + + +
+ + + +

Constructor Summary

+ + + + + + + + + +
Public Constructor
+ public + + + + + +
+

+ + + + constructor(params: Array) +

+
+
+ + +

Creates an instance of SimpleKeyboard

+
+
+
+ + +
+
+

Member Summary

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Public Members
+ public + + + + + +
+

+ + + + addButtonTheme(buttons: string, className: string): * +

+
+
+ + +

Adds/Modifies an entry to the buttonTheme.

+
+
+
+ + +
+ public + + + + + +
+

+ + + + buttonElements: object +

+
+
+ + + +
+
+ + +
+ public + + + + + +
+

+ + + + caretEventHandler: * +

+
+
+ + +

Called by handleCaret when an event that warrants a cursor position update is triggered

+
+
+
+ + +
+ public + + + + + +
+

+ + + + clear: * +

+
+
+ + +

Remove all keyboard rows and reset keyboard values.

+
+
+
+ + +
+ public + + + + + +
+

+ + + + clearInput(inputName: string): * +

+
+
+ + +

Clear the keyboard’s input.

+
+
+
+ + +
+ public + + + + + +
+

+ + + + dispatch(callback: function(instance: object, key: string)): * +

+
+
+ + +

Send a command to all simple-keyboard instances at once (if you have multiple instances).

+
+
+
+ + +
+ public + + + + + +
+

+ + + + getButtonElement(button: string): * +

+
+
+ + +

Get the DOM Element of a button.

+
+
+
+ + +
+ public + + + + + +
+

+ + + + getInput(inputName: string): * +

+
+
+ + +

Get the keyboard’s input (You can also get it from the onChange prop).

+
+
+
+ + +
+ public + + + + + +
+

+ + + + handleButtonClicked(button: string): * +

+
+
+ + +

Handles clicks made to keyboard buttons

+
+
+
+ + +
+ public + + + + + +
+

+ + + + handleCaret: * +

+
+
+ + +

Retrieves the current cursor position within a input or textarea (if any)

+
+
+
+ + +
+ public + + + + + +
+

+ + + + input: object +

+
+
+ + +

simple-keyboard uses a non-persistent internal input to keep track of the entered string (the variable keyboard.input).

+
+
+
+ + +
+ public + + + + + +
+

+ + + + keyboardDOM: * +

+
+
+ + +

Processing options

+
+
+
+ + +
+ public + + + + + +
+

+ + + + keyboardDOMClass: string +

+
+
+ + + +
+
+ + +
+ public + + + + + +
+

+ + + + onInit: * +

+
+
+ + +

Executes the callback function once simple-keyboard is rendered for the first time (on initialization).

+
+
+
+ + +
+ public + + + + + +
+

+ + + + onRender: * +

+
+
+ + +

Executes the callback function every time simple-keyboard is rendered (e.g: when you change layouts).

+
+
+
+ + +
+ public + + + + + +
+

+ + + + options: object +

+
+
+ + + +
+
+ + +
+ public + + + + + +
+

+ + + + physicalKeyboardInterface: * +

+
+
+ + +

Physical Keyboard support

+
+
+
+ + +
+ public + + + + + +
+

+ + + + removeButtonTheme(buttons: string, className: string): * +

+
+
+ + +

Removes/Amends an entry to the buttonTheme.

+
+
+
+ + +
+ public + + + + + +
+

+ + + + render: * +

+
+
+ + +

Renders rows and buttons as per options

+
+
+
+ + +
+ public + + + + + +
+

+ + + + replaceInput(inputObj: object): * +

+
+
+ + +

Replace the input object (keyboard.input)

+
+
+
+ + +
+ public + + + + + +
+

+ + + + setInput(input: string, inputName: string): * +

+
+
+ + +

Set the keyboard’s input.

+
+
+
+ + +
+ public + + + + + +
+

+ + + + setOptions(option: object): * +

+
+
+ + +

Set new option or modify existing ones after initialization.

+
+
+
+ + +
+ public + + + + + +
+

+ + + + syncInstanceInputs: * +

+
+
+ + +

Send a command to all simple-keyboard instances (if you have several instances).

+
+
+
+ + +
+ public + + + + + +
+

+ + + + utilities: * +

+
+
+ + +

Initializing Utilities

+
+
+
+ + +
+
+ + + + + + +

Public Constructors

+ +
+

+ public + + + + + + constructor(params: Array) + + + + source + +

+ + + + +

Creates an instance of SimpleKeyboard

+
+ + + +
+

Params:

+ + + + + + + + + + + + + +
NameTypeAttributeDescription
paramsArray

If first parameter is a string, it is considered the container class. The second parameter is then considered the options object. If first parameter is an object, it is considered the options object.

+
+
+
+ + + + + + + + + + + + + + + + + +
+
+

Public Members

+ +
+

+ public + + + + + + addButtonTheme(buttons: string, className: string): * + + + + source + +

+ + + + +

Adds/Modifies an entry to the buttonTheme. Basically a way to add a class to a button.

+
+ + + +
+
+ + + + + + + + + + + + + + + + + +
+
+

+ public + + + + + + buttonElements: object + + + + source + +

+ + + + + + + + +
+
+ + + + + + + + + + + + + + + + + +
+
+

+ public + + + + + + caretEventHandler: * + + + + source + +

+ + + + +

Called by handleCaret when an event that warrants a cursor position update is triggered

+
+ + + +
+
+ + + + + + + + + + + + + + + + + +
+
+

+ public + + + + + + clear: * + + + + source + +

+ + + + +

Remove all keyboard rows and reset keyboard values. +Used interally between re-renders.

+
+ + + +
+
+ + + + + + + + + + + + + + + + + +
+
+

+ public + + + + + + clearInput(inputName: string): * + + + + source + +

+ + + + +

Clear the keyboard’s input.

+
+ + + +
+
+ + + + + + + + + + + + + + + + + +
+
+

+ public + + + + + + dispatch(callback: function(instance: object, key: string)): * + + + + source + +

+ + + + +

Send a command to all simple-keyboard instances at once (if you have multiple instances).

+
+ + + +
+
+ + + + + + + + + + + + + + + + + +
+
+

+ public + + + + + + getButtonElement(button: string): * + + + + source + +

+ + + + +

Get the DOM Element of a button. If there are several buttons with the same name, an array of the DOM Elements is returned.

+
+ + + +
+
+ + + + + + + + + + + + + + + + + +
+
+

+ public + + + + + + getInput(inputName: string): * + + + + source + +

+ + + + +

Get the keyboard’s input (You can also get it from the onChange prop).

+
+ + + +
+
+ + + + + + + + + + + + + + + + + +
+
+

+ public + + + + + + handleButtonClicked(button: string): * + + + + source + +

+ + + + +

Handles clicks made to keyboard buttons

+
+ + + +
+
+ + + + + + + + + + + + + + + + + +
+
+

+ public + + + + + + handleCaret: * + + + + source + +

+ + + + +

Retrieves the current cursor position within a input or textarea (if any)

+
+ + + +
+
+ + + + + + + + + + + + + + + + + +
+
+

+ public + + + + + + input: object + + + + source + +

+ + + + +

simple-keyboard uses a non-persistent internal input to keep track of the entered string (the variable keyboard.input). +This removes any dependency to input DOM elements. You can type and directly display the value in a div element, for example.

+
+ + + +
+

Properties:

+ + + + + + + + + + + + + + + + + + + +
NameTypeAttributeDescription
defaultobject

Default SimpleKeyboard internal input.

+
myInputNameobject

Example input that can be set through options.inputName:"myInputName".

+
+
+
+ + + + + + + + + + + +
+

Example:

+ +
+ +
// To get entered input
+let input = keyboard.getInput();
+
+// To clear entered input.
+keyboard.clearInput();
+
+
+ + + + + +
+
+

+ public + + + + + + keyboardDOM: * + + + + source + +

+ + + + +

Processing options

+
+ + + +
+
+ + + + + + + + + + + + + + + + + +
+
+

+ public + + + + + + keyboardDOMClass: string + + + + source + +

+ + + + + + + + +
+
+ + + + + + + + + + + + + + + + + +
+
+

+ public + + + + + + onInit: * + + + + source + +

+ + + + +

Executes the callback function once simple-keyboard is rendered for the first time (on initialization).

+
+ + + +
+
+ + + + + + + + + + + + + + + + + +
+
+

+ public + + + + + + onRender: * + + + + source + +

+ + + + +

Executes the callback function every time simple-keyboard is rendered (e.g: when you change layouts).

+
+ + + +
+
+ + + + + + + + + + + + + + + + + +
+
+

+ public + + + + + + options: object + + + + source + +

+ + + + + + + + +
+

Properties:

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeAttributeDescription
layoutobject

Modify the keyboard layout.

+
layoutNamestring

Specifies which layout should be used.

+
displayobject

Replaces variable buttons (such as {bksp}) with a human-friendly name (e.g.: “backspace”).

+
mergeDisplayboolean

By default, when you set the display property, you replace the default one. This setting merges them instead.

+
themestring

A prop to add your own css classes to the keyboard wrapper. You can add multiple classes separated by a space.

+
buttonThemeArray

A prop to add your own css classes to one or several buttons.

+
debugboolean

Runs a console.log every time a key is pressed. Displays the buttons pressed and the current input.

+
newLineOnEnterboolean

Specifies whether clicking the “ENTER” button will input a newline (\n) or not.

+
tabCharOnTabboolean

Specifies whether clicking the “TAB” button will input a tab character (\t) or not.

+
inputNamestring

Allows you to use a single simple-keyboard instance for several inputs.

+
maxLengthnumber

Restrains all of simple-keyboard inputs to a certain length. This should be used in addition to the input element’s maxlengthattribute.

+
maxLengthobject

Restrains simple-keyboard’s individual inputs to a certain length. This should be used in addition to the input element’s maxlengthattribute.

+
syncInstanceInputsboolean

When set to true, this option synchronizes the internal input of every simple-keyboard instance.

+
physicalKeyboardHighlightboolean

Enable highlighting of keys pressed on physical keyboard.

+
physicalKeyboardHighlightTextColorstring

Define the text color that the physical keyboard highlighted key should have.

+
physicalKeyboardHighlightBgColorstring

Define the background color that the physical keyboard highlighted key should have.

+
onKeyPressfunction(button: string): string

Executes the callback function on key press. Returns button layout name (i.e.: “{shift}”).

+
onChangefunction(input: string): string

Executes the callback function on input change. Returns the current input’s string.

+
onRenderfunction

Executes the callback function every time simple-keyboard is rendered (e.g: when you change layouts).

+
onInitfunction

Executes the callback function once simple-keyboard is rendered for the first time (on initialization).

+
onChangeAllfunction(inputs: object): object

Executes the callback function on input change. Returns the input object with all defined inputs.

+
+
+
+ + + + + + + + + + + + + + + + + +
+
+

+ public + + + + + + physicalKeyboardInterface: * + + + + source + +

+ + + + +

Physical Keyboard support

+
+ + + +
+
+ + + + + + + + + + + + + + + + + +
+
+

+ public + + + + + + removeButtonTheme(buttons: string, className: string): * + + + + source + +

+ + + + +

Removes/Amends an entry to the buttonTheme. Basically a way to remove a class previously added to a button through buttonTheme or addButtonTheme.

+
+ + + +
+
+ + + + + + + + + + + + + + + + + +
+
+

+ public + + + + + + render: * + + + + source + +

+ + + + +

Renders rows and buttons as per options

+
+ + + +
+
+ + + + + + + + + + + + + + + + + +
+
+

+ public + + + + + + replaceInput(inputObj: object): * + + + + source + +

+ + + + +

Replace the input object (keyboard.input)

+
+ + + +
+
+ + + + + + + + + + + + + + + + + +
+
+

+ public + + + + + + setInput(input: string, inputName: string): * + + + + source + +

+ + + + +

Set the keyboard’s input.

+
+ + + +
+
+ + + + + + + + + + + + + + + + + +
+
+

+ public + + + + + + setOptions(option: object): * + + + + source + +

+ + + + +

Set new option or modify existing ones after initialization.

+
+ + + +
+
+ + + + + + + + + + + + + + + + + +
+
+

+ public + + + + + + syncInstanceInputs: * + + + + source + +

+ + + + +

Send a command to all simple-keyboard instances (if you have several instances).

+
+ + + +
+
+ + + + + + + + + + + + + + + + + +
+
+

+ public + + + + + + utilities: * + + + + source + +

+ + + + +

Initializing Utilities

+
+ + + +
+
+ + + + + + + + + + + + + + + + + +
+
+ +
+ + + + + + + + + + + + diff --git a/docs/class/src/lib/services/KeyboardLayout.js~KeyboardLayout.html b/docs/class/src/lib/services/KeyboardLayout.js~KeyboardLayout.html new file mode 100644 index 00000000..4a91d42f --- /dev/null +++ b/docs/class/src/lib/services/KeyboardLayout.js~KeyboardLayout.html @@ -0,0 +1,203 @@ + + + + + + KeyboardLayout | simple-keyboard + + + + + + + +
+ Home + + Reference + Source + + +
+ + + +
+ + public + class + + + + | source +
+ +
+

KeyboardLayout

+ + + + + + + + + + + + + + + +

Keyboard Layout Service

+
+ + + + + + + + + +
+ +

Static Member Summary

+ + + + + + + + + +
Static Public Members
+ public + static + + + + +
+

+ + + + getDefaultLayout: object: * +

+
+
+ + +

Get default simple-keyboard layout

+
+
+
+ + +
+
+ + + + + + + +

Static Public Members

+ +
+

+ public + static + + + + + getDefaultLayout: object: * + + + + source + +

+ + + + +

Get default simple-keyboard layout

+
+ + + +
+
+ +
+

Return:

+ + + + + + + +
object

The default layout (US-QWERTY)

+
+
+
+
+ + + + + + + + + + + + + + + +
+
+ + + + +
+ + + + + + + + + + + + diff --git a/docs/class/src/lib/services/PhysicalKeyboard.js~PhysicalKeyboard.html b/docs/class/src/lib/services/PhysicalKeyboard.js~PhysicalKeyboard.html new file mode 100644 index 00000000..c87d68e7 --- /dev/null +++ b/docs/class/src/lib/services/PhysicalKeyboard.js~PhysicalKeyboard.html @@ -0,0 +1,415 @@ + + + + + + PhysicalKeyboard | simple-keyboard + + + + + + + +
+ Home + + Reference + Source + + +
+ + + +
+ + public + class + + + + | source +
+ +
+

PhysicalKeyboard

+ + + + + + + + + + + + + + + +

Physical Keyboard Service

+
+ + + + + + + + + +
+ + + +

Constructor Summary

+ + + + + + + + + +
Public Constructor
+ public + + + + + +
+

+ + + + constructor() +

+
+
+ + +

Creates an instance of the PhysicalKeyboard service

+
+
+
+ + +
+
+

Member Summary

+ + + + + + + + + + + + + + + + + + + +
Public Members
+ public + + + + + +
+

+ + + + getSimpleKeyboardLayoutKey(event: object): * +

+
+
+ + +

Transforms a KeyboardEvent's "key.code" string into a simple-keyboard layout format

+
+
+
+ + +
+ public + + + + + +
+

+ + + + initKeyboardListener: * +

+
+
+ + +

Initializes key event listeners

+
+
+
+ + +
+ public + + + + + + +
+ + + +
+
+ + +
+
+ + + + + + +

Public Constructors

+ +
+

+ public + + + + + + constructor() + + + + source + +

+ + + + +

Creates an instance of the PhysicalKeyboard service

+
+ + + +
+
+ + + + + + + + + + + + + + + + + +
+
+

Public Members

+ +
+

+ public + + + + + + getSimpleKeyboardLayoutKey(event: object): * + + + + source + +

+ + + + +

Transforms a KeyboardEvent's "key.code" string into a simple-keyboard layout format

+
+ + + +
+
+ + + + + + + + + + + + + + + + + +
+
+

+ public + + + + + + initKeyboardListener: * + + + + source + +

+ + + + +

Initializes key event listeners

+
+ + + +
+
+ + + + + + + + + + + + + + + + + +
+
+

+ public + + + + + + simpleKeyboardInstance: object + + + + source + +

+ + + + + + + + +
+
+ + + + + + + + + + + + + + + + + +
+
+ +
+ + + + + + + + + + + + diff --git a/docs/class/src/lib/services/Utilities.js~Utilities.html b/docs/class/src/lib/services/Utilities.js~Utilities.html new file mode 100644 index 00000000..c87f4384 --- /dev/null +++ b/docs/class/src/lib/services/Utilities.js~Utilities.html @@ -0,0 +1,1295 @@ + + + + + + Utilities | simple-keyboard + + + + + + + +
+ Home + + Reference + Source + + +
+ + + +
+ + public + class + + + + | source +
+ +
+

Utilities

+ + + + + + + + + + + + + + + +

Utility Service

+
+ + + + + + + + + +
+ + + +

Constructor Summary

+ + + + + + + + + +
Public Constructor
+ public + + + + + +
+

+ + + + constructor() +

+
+
+ + +

Creates an instance of the Utility service

+
+
+
+ + +
+
+

Member Summary

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Public Members
+ public + + + + + +
+

+ + + + camelCase(string: string): * +

+
+
+ + +

Transforms an arbitrary string to camelCase

+
+
+
+ + +
+ public + + + + + +
+

+ + + + countInArray(array: Array, value: string): * +

+
+
+ + +

Counts the number of duplicates in a given array

+
+
+
+ + +
+ public + + + + + +
+

+ + + + getButtonClass(button: string): string: * +

+
+
+ + +

Adds default classes to a given button

+
+
+
+ + +
+ public + + + + + +
+

+ + + + getButtonDisplayName(button: string, display: object, mergeDisplay: boolean): * +

+
+
+ + +

Returns the display (label) name for a given button

+
+
+
+ + +
+ public + + + + + +
+

+ + + + getUpdatedInput(button: string, input: string, options: object, caretPos: number): * +

+
+
+ + +

Returns the updated input resulting from clicking a given button

+
+
+
+ + +
+ public + + + + + +
+

+ + + + isMaxLengthReached: * +

+
+
+ + +

Gets the current value of maxLengthReached

+
+
+
+ + +
+ public + + + + + +
+

+ + + + maxLengthReached: boolean +

+
+
+ + + +
+
+ + +
+ public + + + + + + +
+ + + +
+
+ + +
+ public + + + + + +
+

+ + + + updateCaretPos(length: number, minus: boolean): * +

+
+
+ + +

Moves the cursor position by a given amount

+
+
+
+ + +
+
+

Method Summary

+ + + + + + + + + + + + + + + + + + + + + + + + +
Public Methods
+ public + + + + + +
+

+ + + + addStringAt(source: string, string: string, position: number): * +

+
+
+ + +

Adds a string to the input at a given position

+
+
+
+ + +
+ public + + + + + +
+

+ + + + getDefaultDiplay(): {"{bksp}": string, "{backspace}": string, "{enter}": string, "{shift}": string, "{shiftleft}": string, "{shiftright}": string, "{alt}": string, "{s}": string, "{tab}": string, "{lock}": string, "{capslock}": string, "{accept}": string, "{space}": string, "{//}": string, "{esc}": string, "{escape}": string, "{f1}": string, "{f2}": string, "{f3}": string, "{f4}": string, "{f5}": string, "{f6}": string, "{f7}": string, "{f8}": string, "{f9}": string, "{f10}": string, "{f11}": string, "{f12}": string, "{numpaddivide}": string, "{numlock}": string, "{arrowup}": string, "{arrowleft}": string, "{arrowdown}": string, "{arrowright}": string, "{prtscr}": string, "{scrolllock}": string, "{pause}": string, "{insert}": string, "{home}": string, "{pageup}": string, "{delete}": string, "{end}": string, "{pagedown}": string, "{numpadmultiply}": string, "{numpadsubtract}": string, "{numpadadd}": string, "{numpadenter}": string, "{period}": string, "{numpaddecimal}": string, "{numpad0}": string, "{numpad1}": string, "{numpad2}": string, "{numpad3}": string, "{numpad4}": string, "{numpad5}": string, "{numpad6}": string, "{numpad7}": string, "{numpad8}": string, "{numpad9}": string} +

+
+
+ + +

Default button display labels

+
+
+
+ + +
+ public + + + + + +
+

+ + + + handleMaxLength(inputObj: object, options: object, updatedInput: string): boolean +

+
+
+ + +

Determines whether the maxLength has been reached.

+
+
+
+ + +
+ public + + + + + +
+

+ + + + removeAt(source: string, position: number): * +

+
+
+ + +

Removes an amount of characters at a given position

+
+
+
+ + +
+
+ + + + + +

Public Constructors

+ +
+

+ public + + + + + + constructor() + + + + source + +

+ + + + +

Creates an instance of the Utility service

+
+ + + +
+
+ + + + + + + + + + + + + + + + + +
+
+

Public Members

+ +
+

+ public + + + + + + camelCase(string: string): * + + + + source + +

+ + + + +

Transforms an arbitrary string to camelCase

+
+ + + +
+
+ + + + + + + + + + + + + + + + + +
+
+

+ public + + + + + + countInArray(array: Array, value: string): * + + + + source + +

+ + + + +

Counts the number of duplicates in a given array

+
+ + + +
+
+ + + + + + + + + + + + + + + + + +
+
+

+ public + + + + + + getButtonClass(button: string): string: * + + + + source + +

+ + + + +

Adds default classes to a given button

+
+ + + +
+
+ +
+

Return:

+ + + + + + + +
string

The classes to be added to the button

+
+
+
+
+ + + + + + + + + + + + + + + +
+
+

+ public + + + + + + getButtonDisplayName(button: string, display: object, mergeDisplay: boolean): * + + + + source + +

+ + + + +

Returns the display (label) name for a given button

+
+ + + +
+
+ + + + + + + + + + + + + + + + + +
+
+

+ public + + + + + + getUpdatedInput(button: string, input: string, options: object, caretPos: number): * + + + + source + +

+ + + + +

Returns the updated input resulting from clicking a given button

+
+ + + +
+
+ + + + + + + + + + + + + + + + + +
+
+

+ public + + + + + + isMaxLengthReached: * + + + + source + +

+ + + + +

Gets the current value of maxLengthReached

+
+ + + +
+
+ + + + + + + + + + + + + + + + + +
+
+

+ public + + + + + + maxLengthReached: boolean + + + + source + +

+ + + + + + + + +
+
+ + + + + + + + + + + + + + + + + +
+
+

+ public + + + + + + simpleKeyboardInstance: object + + + + source + +

+ + + + + + + + +
+
+ + + + + + + + + + + + + + + + + +
+
+

+ public + + + + + + updateCaretPos(length: number, minus: boolean): * + + + + source + +

+ + + + +

Moves the cursor position by a given amount

+
+ + + +
+
+ + + + + + + + + + + + + + + + + +
+
+

Public Methods

+ +
+

+ public + + + + + + addStringAt(source: string, string: string, position: number): * + + + + source + +

+ + + + +

Adds a string to the input at a given position

+
+ + + +
+

Params:

+ + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeAttributeDescription
sourcestring

The source input

+
stringstring

The string to add

+
positionnumber

The (cursor) position where the string should be added

+
+
+
+ +
+

Return:

+ + + + + + + +
*
+
+
+
+ + + + + + + + + + + + + + + +
+
+

+ public + + + + + + getDefaultDiplay(): {"{bksp}": string, "{backspace}": string, "{enter}": string, "{shift}": string, "{shiftleft}": string, "{shiftright}": string, "{alt}": string, "{s}": string, "{tab}": string, "{lock}": string, "{capslock}": string, "{accept}": string, "{space}": string, "{//}": string, "{esc}": string, "{escape}": string, "{f1}": string, "{f2}": string, "{f3}": string, "{f4}": string, "{f5}": string, "{f6}": string, "{f7}": string, "{f8}": string, "{f9}": string, "{f10}": string, "{f11}": string, "{f12}": string, "{numpaddivide}": string, "{numlock}": string, "{arrowup}": string, "{arrowleft}": string, "{arrowdown}": string, "{arrowright}": string, "{prtscr}": string, "{scrolllock}": string, "{pause}": string, "{insert}": string, "{home}": string, "{pageup}": string, "{delete}": string, "{end}": string, "{pagedown}": string, "{numpadmultiply}": string, "{numpadsubtract}": string, "{numpadadd}": string, "{numpadenter}": string, "{period}": string, "{numpaddecimal}": string, "{numpad0}": string, "{numpad1}": string, "{numpad2}": string, "{numpad3}": string, "{numpad4}": string, "{numpad5}": string, "{numpad6}": string, "{numpad7}": string, "{numpad8}": string, "{numpad9}": string} + + + + source + +

+ + + + +

Default button display labels

+
+ + + +
+
+ +
+

Return:

+ + + + + + + +
{"{bksp}": string, "{backspace}": string, "{enter}": string, "{shift}": string, "{shiftleft}": string, "{shiftright}": string, "{alt}": string, "{s}": string, "{tab}": string, "{lock}": string, "{capslock}": string, "{accept}": string, "{space}": string, "{//}": string, "{esc}": string, "{escape}": string, "{f1}": string, "{f2}": string, "{f3}": string, "{f4}": string, "{f5}": string, "{f6}": string, "{f7}": string, "{f8}": string, "{f9}": string, "{f10}": string, "{f11}": string, "{f12}": string, "{numpaddivide}": string, "{numlock}": string, "{arrowup}": string, "{arrowleft}": string, "{arrowdown}": string, "{arrowright}": string, "{prtscr}": string, "{scrolllock}": string, "{pause}": string, "{insert}": string, "{home}": string, "{pageup}": string, "{delete}": string, "{end}": string, "{pagedown}": string, "{numpadmultiply}": string, "{numpadsubtract}": string, "{numpadadd}": string, "{numpadenter}": string, "{period}": string, "{numpaddecimal}": string, "{numpad0}": string, "{numpad1}": string, "{numpad2}": string, "{numpad3}": string, "{numpad4}": string, "{numpad5}": string, "{numpad6}": string, "{numpad7}": string, "{numpad8}": string, "{numpad9}": string}
+
+
+
+ + + + + + + + + + + + + + + +
+
+

+ public + + + + + + handleMaxLength(inputObj: object, options: object, updatedInput: string): boolean + + + + source + +

+ + + + +

Determines whether the maxLength has been reached. This function is called when the maxLength option it set.

+
+ + + +
+

Params:

+ + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeAttributeDescription
inputObjobject
optionsobject
updatedInputstring
+
+
+ +
+

Return:

+ + + + + + + +
boolean
+
+
+
+ + + + + + + + + + + + + + + +
+
+

+ public + + + + + + removeAt(source: string, position: number): * + + + + source + +

+ + + + +

Removes an amount of characters at a given position

+
+ + + +
+

Params:

+ + + + + + + + + + + + + + + + + + + +
NameTypeAttributeDescription
sourcestring

The source input

+
positionnumber

The (cursor) position from where the characters should be removed

+
+
+
+ +
+

Return:

+ + + + + + + +
*
+
+
+
+ + + + + + + + + + + + + + + +
+
+
+ + + + + + + + + + + + diff --git a/docs/class/src/lib/tests/TestUtility.js~TestUtility.html b/docs/class/src/lib/tests/TestUtility.js~TestUtility.html new file mode 100644 index 00000000..240af66f --- /dev/null +++ b/docs/class/src/lib/tests/TestUtility.js~TestUtility.html @@ -0,0 +1,482 @@ + + + + + + TestUtility | simple-keyboard + + + + + + + +
+ Home + + Reference + Source + + +
+ + + +
+ + public + class + + + + | source +
+ +
+

TestUtility

+ + + + + + + + + + + + + + + +

Test Utility Functions

+
+ + + + + + + + + +
+ + + + +

Member Summary

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Public Members
+ public + + + + + +
+

+ + + + clear: * +

+
+
+ + +

Clears DOM structure

+
+
+
+ + +
+ public + + + + + +
+

+ + + + iterateButtons: * +

+
+
+ + +

Iterates on the keyboard buttons

+
+
+
+ + +
+ public + + + + + +
+

+ + + + setDOM: * +

+
+
+ + +

Set's a basic DOM structure to test in

+
+
+
+ + +
+ public + + + + + +
+

+ + + + testLayoutFctButtons: * +

+
+
+ + +

Test if function buttons are interactive (have an onclick)

+
+
+
+ + +
+ public + + + + + +
+

+ + + + testLayoutStdButtons: * +

+
+
+ + +

Test if standard buttons respect maxLength and do input a value

+
+
+
+ + +
+
+ + + + + + + +

Public Members

+ +
+

+ public + + + + + + clear: * + + + + source + +

+ + + + +

Clears DOM structure

+
+ + + +
+
+ + + + + + + + + + + + + + + + + +
+
+

+ public + + + + + + iterateButtons: * + + + + source + +

+ + + + +

Iterates on the keyboard buttons

+
+ + + +
+
+ + + + + + + + + + + + + + + + + +
+
+

+ public + + + + + + setDOM: * + + + + source + +

+ + + + +

Set's a basic DOM structure to test in

+
+ + + +
+
+ + + + + + + + + + + + + + + + + +
+
+

+ public + + + + + + testLayoutFctButtons: * + + + + source + +

+ + + + +

Test if function buttons are interactive (have an onclick)

+
+ + + +
+
+ + + + + + + + + + + + + + + + + +
+
+

+ public + + + + + + testLayoutStdButtons: * + + + + source + +

+ + + + +

Test if standard buttons respect maxLength and do input a value

+
+ + + +
+
+ + + + + + + + + + + + + + + + + +
+
+ +
+ + + + + + + + + + + + diff --git a/docs/coverage.json b/docs/coverage.json new file mode 100644 index 00000000..4aed2c6e --- /dev/null +++ b/docs/coverage.json @@ -0,0 +1,37 @@ +{ + "coverage": "100%", + "expectCount": 64, + "actualCount": 64, + "files": { + "src/demo/App.js": { + "expectCount": 8, + "actualCount": 8, + "undocumentLines": [] + }, + "src/lib/components/Keyboard.js": { + "expectCount": 28, + "actualCount": 28, + "undocumentLines": [] + }, + "src/lib/services/KeyboardLayout.js": { + "expectCount": 2, + "actualCount": 2, + "undocumentLines": [] + }, + "src/lib/services/PhysicalKeyboard.js": { + "expectCount": 5, + "actualCount": 5, + "undocumentLines": [] + }, + "src/lib/services/Utilities.js": { + "expectCount": 15, + "actualCount": 15, + "undocumentLines": [] + }, + "src/lib/tests/TestUtility.js": { + "expectCount": 6, + "actualCount": 6, + "undocumentLines": [] + } + } +} \ No newline at end of file diff --git a/docs/css/github.css b/docs/css/github.css new file mode 100644 index 00000000..db9ca23f --- /dev/null +++ b/docs/css/github.css @@ -0,0 +1,83 @@ +/* github markdown */ +.github-markdown { + font-size: 16px; +} + +.github-markdown h1, +.github-markdown h2, +.github-markdown h3, +.github-markdown h4, +.github-markdown h5 { + margin-top: 1em; + margin-bottom: 16px; + font-weight: bold; + padding: 0; +} + +.github-markdown h1:nth-of-type(1) { + margin-top: 0; +} + +.github-markdown h1 { + font-size: 2em; + padding-bottom: 0.3em; +} + +.github-markdown h2 { + font-size: 1.75em; + padding-bottom: 0.3em; +} + +.github-markdown h3 { + font-size: 1.5em; +} + +.github-markdown h4 { + font-size: 1.25em; +} + +.github-markdown h5 { + font-size: 1em; +} + +.github-markdown ul, .github-markdown ol { + padding-left: 2em; +} + +.github-markdown pre > code { + font-size: 0.85em; +} + +.github-markdown table { + margin-bottom: 1em; + border-collapse: collapse; + border-spacing: 0; +} + +.github-markdown table tr { + background-color: #fff; + border-top: 1px solid #ccc; +} + +.github-markdown table th, +.github-markdown table td { + padding: 6px 13px; + border: 1px solid #ddd; +} + +.github-markdown table tr:nth-child(2n) { + background-color: #f8f8f8; +} + +.github-markdown hr { + border-right: 0; + border-bottom: 1px solid #e5e5e5; + border-left: 0; + border-top: 0; +} + +/** badge(.svg) does not have border */ +.github-markdown img:not([src*=".svg"]) { + max-width: 100%; + box-shadow: 1px 1px 1px rgba(0,0,0,0.5); +} diff --git a/docs/css/identifiers.css b/docs/css/identifiers.css new file mode 100644 index 00000000..52c8461c --- /dev/null +++ b/docs/css/identifiers.css @@ -0,0 +1,37 @@ +.identifiers-wrap { + display: flex; + align-items: flex-start; +} + +.identifier-dir-tree { + background: #fff; + border: solid 1px #ddd; + border-radius: 0.25em; + top: 52px; + position: -webkit-sticky; + position: sticky; + max-height: calc(100vh - 155px); + overflow-y: scroll; + min-width: 200px; + margin-left: 1em; +} + +.identifier-dir-tree-header { + padding: 0.5em; + background-color: #fafafa; + border-bottom: solid 1px #ddd; +} + +.identifier-dir-tree-content { + padding: 0 0.5em 0; +} + +.identifier-dir-tree-content > div { + padding-top: 0.25em; + padding-bottom: 0.25em; +} + +.identifier-dir-tree-content a { + color: inherit; +} + diff --git a/docs/css/manual.css b/docs/css/manual.css new file mode 100644 index 00000000..138a07f1 --- /dev/null +++ b/docs/css/manual.css @@ -0,0 +1,134 @@ +.github-markdown .manual-toc { + padding-left: 0; +} + +.manual-index .manual-cards { + display: flex; + flex-wrap: wrap; +} + +.manual-index .manual-card-wrap { + width: 280px; + padding: 10px 20px 10px 0; + box-sizing: border-box; +} + +.manual-index .manual-card-wrap > h1 { + margin: 0; + font-size: 1em; + font-weight: 600; + padding: 0.2em 0 0.2em 0.5em; + border-radius: 0.1em 0.1em 0 0; + border: none; +} + +.manual-index .manual-card-wrap > h1 span { + color: #555; +} + +.manual-index .manual-card { + height: 200px; + overflow: hidden; + border: solid 1px rgba(230, 230, 230, 0.84); + border-radius: 0 0 0.1em 0.1em; + padding: 8px; + position: relative; +} + +.manual-index .manual-card > div { + transform: scale(0.4); + transform-origin: 0 0; + width: 250%; +} + +.manual-index .manual-card > a { + position: absolute; + top: 0; + left: 0; + width: 100%; + height: 100%; + background: rgba(210, 210, 210, 0.1); +} + +.manual-index .manual-card > a:hover { + background: none; +} + +.manual-index .manual-badge { + margin: 0; +} + +.manual-index .manual-user-index { + margin-bottom: 1em; + border-bottom: solid 1px #ddd; +} + +.manual-root .navigation { + padding-left: 4px; + margin-top: 4px; +} + +.navigation .manual-toc-root > div { + padding-left: 0.25em; + padding-right: 0.75em; +} + +.github-markdown .manual-toc-title a { + color: inherit; +} + +.manual-breadcrumb-list { + font-size: 0.8em; + margin-bottom: 1em; +} + +.manual-toc-title a:hover { + color: #039BE5; +} + +.manual-toc li { + margin: 0.75em 0; + list-style-type: none; +} + +.navigation .manual-toc [class^="indent-h"] a { + color: #666; +} + +.navigation .manual-toc .indent-h1 a { + color: #555; + font-weight: 600; + display: block; +} + +.manual-toc .indent-h1 { + display: block; + margin: 0.4em 0 0 0.25em; + padding: 0.2em 0 0.2em 0.5em; + border-radius: 0.1em; +} + +.manual-root .navigation .manual-toc li:not(.indent-h1) { + margin-top: 0.5em; +} + +.manual-toc .indent-h2 { + display: none; + margin-left: 1.5em; +} +.manual-toc .indent-h3 { + display: none; + margin-left: 2.5em; +} +.manual-toc .indent-h4 { + display: none; + margin-left: 3.5em; +} +.manual-toc .indent-h5 { + display: none; + margin-left: 4.5em; +} + +.manual-nav li { + margin: 0.75em 0; +} diff --git a/docs/css/prettify-tomorrow.css b/docs/css/prettify-tomorrow.css new file mode 100644 index 00000000..b6f92a78 --- /dev/null +++ b/docs/css/prettify-tomorrow.css @@ -0,0 +1,132 @@ +/* Tomorrow Theme */ +/* Original theme - https://github.com/chriskempson/tomorrow-theme */ +/* Pretty printing styles. Used with prettify.js. */ +/* SPAN elements with the classes below are added by prettyprint. */ +/* plain text */ +.pln { + color: #4d4d4c; } + +@media screen { + /* string content */ + .str { + color: #718c00; } + + /* a keyword */ + .kwd { + color: #8959a8; } + + /* a comment */ + .com { + color: #8e908c; } + + /* a type name */ + .typ { + color: #4271ae; } + + /* a literal value */ + .lit { + color: #f5871f; } + + /* punctuation */ + .pun { + color: #4d4d4c; } + + /* lisp open bracket */ + .opn { + color: #4d4d4c; } + + /* lisp close bracket */ + .clo { + color: #4d4d4c; } + + /* a markup tag name */ + .tag { + color: #c82829; } + + /* a markup attribute name */ + .atn { + color: #f5871f; } + + /* a markup attribute value */ + .atv { + color: #3e999f; } + + /* a declaration */ + .dec { + color: #f5871f; } + + /* a variable name */ + .var { + color: #c82829; } + + /* a function name */ + .fun { + color: #4271ae; } } +/* Use higher contrast and text-weight for printable form. */ +@media print, projection { + .str { + color: #060; } + + .kwd { + color: #006; + font-weight: bold; } + + .com { + color: #600; + font-style: italic; } + + .typ { + color: #404; + font-weight: bold; } + + .lit { + color: #044; } + + .pun, .opn, .clo { + color: #440; } + + .tag { + color: #006; + font-weight: bold; } + + .atn { + color: #404; } + + .atv { + color: #060; } } +/* Style */ +/* +pre.prettyprint { + background: white; + font-family: Consolas, Monaco, 'Andale Mono', monospace; + font-size: 12px; + line-height: 1.5; + border: 1px solid #ccc; + padding: 10px; } +*/ + +/* Specify class=linenums on a pre to get line numbering */ +ol.linenums { + margin-top: 0; + margin-bottom: 0; } + +/* IE indents via margin-left */ +li.L0, +li.L1, +li.L2, +li.L3, +li.L4, +li.L5, +li.L6, +li.L7, +li.L8, +li.L9 { + /* */ } + +/* Alternate shading for lines */ +li.L1, +li.L3, +li.L5, +li.L7, +li.L9 { + /* */ } diff --git a/docs/css/search.css b/docs/css/search.css new file mode 100644 index 00000000..9940a54a --- /dev/null +++ b/docs/css/search.css @@ -0,0 +1,84 @@ +/* search box */ +.search-box { + position: absolute; + top: 10px; + right: 50px; + padding-right: 8px; + padding-bottom: 10px; + line-height: normal; + font-size: 12px; +} + +.search-box img { + width: 20px; + vertical-align: top; +} + +.search-input { + display: inline; + visibility: hidden; + width: 0; + padding: 2px; + height: 1.5em; + outline: none; + background: transparent; + border: 1px #0af; + border-style: none none solid none; + vertical-align: bottom; +} + +.search-input-edge { + display: none; + width: 1px; + height: 5px; + background-color: #0af; + vertical-align: bottom; +} + +.search-result { + position: absolute; + display: none; + height: 600px; + width: 100%; + padding: 0; + margin-top: 5px; + margin-left: 24px; + background: white; + box-shadow: 1px 1px 4px rgb(0,0,0); + white-space: nowrap; + overflow-y: scroll; +} + +.search-result-import-path { + color: #aaa; + font-size: 12px; +} + +.search-result li { + list-style: none; + padding: 2px 4px; +} + +.search-result li a { + display: block; +} + +.search-result li.selected { + background: #ddd; +} + +.search-result li.search-separator { + background: rgb(37, 138, 175); + color: white; +} + +.search-box.active .search-input { + visibility: visible; + transition: width 0.2s ease-out; + width: 300px; +} + +.search-box.active .search-input-edge { + display: inline-block; +} + diff --git a/docs/css/source.css b/docs/css/source.css new file mode 100644 index 00000000..3b9c92de --- /dev/null +++ b/docs/css/source.css @@ -0,0 +1,55 @@ +table.files-summary { + width: 100%; + margin: 10px 0; + border-spacing: 0; + border: 0; + border-collapse: collapse; + text-align: right; +} + +table.files-summary tbody tr:hover { + background: #eee; +} + +table.files-summary td:first-child, +table.files-summary td:nth-of-type(2) { + text-align: left; +} + +table.files-summary[data-use-coverage="false"] td.coverage { + display: none; +} + +table.files-summary thead { + background: #fafafa; +} + +table.files-summary td { + border: solid 1px #ddd; + padding: 4px 10px; + vertical-align: top; +} + +table.files-summary td.identifiers > span { + display: block; + margin-top: 4px; +} +table.files-summary td.identifiers > span:first-child { + margin-top: 0; +} + +table.files-summary .coverage-count { + font-size: 12px; + color: #aaa; + display: inline-block; + min-width: 40px; +} + +.total-coverage-count { + position: relative; + bottom: 2px; + font-size: 12px; + color: #666; + font-weight: 500; + padding-left: 5px; +} diff --git a/docs/css/style.css b/docs/css/style.css new file mode 100644 index 00000000..fe3b2d9b --- /dev/null +++ b/docs/css/style.css @@ -0,0 +1,608 @@ +@import url(https://fonts.googleapis.com/css?family=Roboto:400,300,700); +@import url(https://fonts.googleapis.com/css?family=Source+Sans+Pro:400,400italic,600,700); +@import url(./manual.css); +@import url(./source.css); +@import url(./test.css); +@import url(./identifiers.css); +@import url(./github.css); +@import url(./search.css); + +* { + margin: 0; + padding: 0; + text-decoration: none; +} + +html +{ + font-family: 'Source Sans Pro', 'Roboto', sans-serif; + overflow: auto; + /*font-size: 14px;*/ + /*color: #4d4e53;*/ + /*color: rgba(0, 0, 0, .68);*/ + color: #555; + background-color: #fff; +} + +a { + /*color: #0095dd;*/ + /*color:rgb(37, 138, 175);*/ + color: #039BE5; +} + +code a:hover { + text-decoration: underline; +} + +ul, ol { + padding-left: 20px; +} + +ul li { + list-style: disc; + margin: 4px 0; +} + +ol li { + margin: 4px 0; +} + +h1 { + margin-bottom: 10px; + font-size: 34px; + font-weight: 300; + border-bottom: solid 1px #ddd; +} + +h2 { + margin-top: 24px; + margin-bottom: 10px; + font-size: 20px; + border-bottom: solid 1px #ddd; + font-weight: 300; +} + +h3 { + position: relative; + font-size: 16px; + margin-bottom: 12px; + padding: 4px; + font-weight: 300; +} + +details { + cursor: pointer; +} + +del { + text-decoration: line-through; +} + +p { + margin-bottom: 15px; + line-height: 1.5; +} + +code { + font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, Courier, monospace; +} + +pre > code { + display: block; +} + +pre.prettyprint, pre > code { + padding: 4px; + margin: 1em 0; + background-color: #f5f5f5; + border-radius: 3px; +} + +pre.prettyprint > code { + margin: 0; +} + +p > code, +li > code { + padding: 0.2em 0.5em; + margin: 0; + font-size: 85%; + background-color: rgba(0,0,0,0.04); + border-radius: 3px; +} + +.code { + font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, Courier, monospace; + font-size: 13px; +} + +.import-path pre.prettyprint, +.import-path pre.prettyprint code { + margin: 0; + padding: 0; + border: none; + background: white; +} + +.layout-container { + /*display: flex;*/ + /*flex-direction: row;*/ + /*justify-content: flex-start;*/ + /*align-items: stretch;*/ +} + +.layout-container > header { + display: flex; + height: 40px; + line-height: 40px; + font-size: 16px; + padding: 0 10px; + margin: 0; + position: fixed; + width: 100%; + z-index: 1; + background-color: #fafafa; + top: 0; + border-bottom: solid 1px #ddd; +} +.layout-container > header > a{ + margin: 0 5px; + color: #444; +} + +.layout-container > header > a.repo-url-github { + font-size: 0; + display: inline-block; + width: 20px; + height: 38px; + background: url("../image/github.png") no-repeat center; + background-size: 20px; + vertical-align: top; +} + +.navigation { + position: fixed; + top: 0; + left: 0; + box-sizing: border-box; + width: 250px; + height: 100%; + padding-top: 40px; + padding-left: 15px; + padding-bottom: 2em; + margin-top:1em; + overflow-x: scroll; + box-shadow: rgba(255, 255, 255, 1) -1px 0 0 inset; + border-right: 1px solid #ddd; +} + +.navigation ul { + padding: 0; +} + +.navigation li { + list-style: none; + margin: 4px 0; + white-space: nowrap; +} + +.navigation li a { + color: #666; +} + +.navigation .nav-dir-path { + display: block; + margin-top: 0.7em; + margin-bottom: 0.25em; + font-weight: 600; +} + +.kind-class, +.kind-interface, +.kind-function, +.kind-typedef, +.kind-variable, +.kind-external { + margin-left: 0.75em; + width: 1.2em; + height: 1.2em; + display: inline-block; + text-align: center; + border-radius: 0.2em; + margin-right: 0.2em; + font-weight: bold; + line-height: 1.2em; +} + +.kind-class { + color: #009800; + background-color: #bfe5bf; +} + +.kind-interface { + color: #fbca04; + background-color: #fef2c0; +} + +.kind-function { + color: #6b0090; + background-color: #d6bdde; +} + +.kind-variable { + color: #eb6420; + background-color: #fad8c7; +} + +.kind-typedef { + color: #db001e; + background-color: #edbec3; +} + +.kind-external { + color: #0738c3; + background-color: #bbcbea; +} + +.summary span[class^="kind-"] { + margin-left: 0; +} + +h1 .version, +h1 .url a { + font-size: 14px; + color: #aaa; +} + +.content { + margin-top: 40px; + margin-left: 250px; + padding: 10px 50px 10px 20px; +} + +.header-notice { + font-size: 14px; + color: #aaa; + margin: 0; +} + +.expression-extends .prettyprint { + margin-left: 10px; + background: white; +} + +.extends-chain { + border-bottom: 1px solid#ddd; + padding-bottom: 10px; + margin-bottom: 10px; +} + +.extends-chain span:nth-of-type(1) { + padding-left: 10px; +} + +.extends-chain > div { + margin: 5px 0; +} + +.description table { + font-size: 14px; + border-spacing: 0; + border: 0; + border-collapse: collapse; +} + +.description thead { + background: #999; + color: white; +} + +.description table td, +.description table th { + border: solid 1px #ddd; + padding: 4px; + font-weight: normal; +} + +.flat-list ul { + padding-left: 0; +} + +.flat-list li { + display: inline; + list-style: none; +} + +table.summary { + width: 100%; + margin: 10px 0; + border-spacing: 0; + border: 0; + border-collapse: collapse; +} + +table.summary thead { + background: #fafafa; +} + +table.summary td { + border: solid 1px #ddd; + padding: 4px 10px; +} + +table.summary tbody td:nth-child(1) { + text-align: right; + white-space: nowrap; + min-width: 64px; + vertical-align: top; +} + +table.summary tbody td:nth-child(2) { + width: 100%; + border-right: none; +} + +table.summary tbody td:nth-child(3) { + white-space: nowrap; + border-left: none; + vertical-align: top; +} + +table.summary td > div:nth-of-type(2) { + padding-top: 4px; + padding-left: 15px; +} + +table.summary td p { + margin-bottom: 0; +} + +.inherited-summary thead td { + padding-left: 2px; +} + +.inherited-summary thead a { + color: white; +} + +.inherited-summary .summary tbody { + display: none; +} + +.inherited-summary .summary .toggle { + padding: 0 4px; + font-size: 12px; + cursor: pointer; +} +.inherited-summary .summary .toggle.closed:before { + content: "▶"; +} +.inherited-summary .summary .toggle.opened:before { + content: "▼"; +} + +.member, .method { + margin-bottom: 24px; +} + +table.params { + width: 100%; + margin: 10px 0; + border-spacing: 0; + border: 0; + border-collapse: collapse; +} + +table.params thead { + background: #eee; + color: #aaa; +} + +table.params td { + padding: 4px; + border: solid 1px #ddd; +} + +table.params td p { + margin: 0; +} + +.content .detail > * { + margin: 15px 0; +} + +.content .detail > h3 { + color: black; + background-color: #f0f0f0; +} + +.content .detail > div { + margin-left: 10px; +} + +.content .detail > .import-path { + margin-top: -8px; +} + +.content .detail + .detail { + margin-top: 30px; +} + +.content .detail .throw td:first-child { + padding-right: 10px; +} + +.content .detail h4 + :not(pre) { + padding-left: 0; + margin-left: 10px; +} + +.content .detail h4 + ul li { + list-style: none; +} + +.return-param * { + display: inline; +} + +.argument-params { + margin-bottom: 20px; +} + +.return-type { + padding-right: 10px; + font-weight: normal; +} + +.return-desc { + margin-left: 10px; + margin-top: 4px; +} + +.return-desc p { + margin: 0; +} + +.deprecated, .experimental, .instance-docs { + border-left: solid 5px orange; + padding-left: 4px; + margin: 4px 0; +} + +tr.listen p, +tr.throw p, +tr.emit p{ + margin-bottom: 10px; +} + +.version, .since { + color: #aaa; +} + +h3 .right-info { + position: absolute; + right: 4px; + font-size: 14px; +} + +.version + .since:before { + content: '| '; +} + +.see { + margin-top: 10px; +} + +.see h4 { + margin: 4px 0; +} + +.content .detail h4 + .example-doc { + margin: 6px 0; +} + +.example-caption { + position: relative; + bottom: -1px; + display: inline-block; + padding: 4px; + font-style: italic; + background-color: #f5f5f5; + font-weight: bold; + border-radius: 3px; + border-bottom-left-radius: 0; + border-bottom-right-radius: 0; +} + +.example-caption + pre.source-code { + margin-top: 0; + border-top-left-radius: 0; +} + +footer, .file-footer { + text-align: right; + font-style: italic; + font-weight: 100; + font-size: 13px; + margin-right: 50px; + margin-left: 270px; + border-top: 1px solid #ddd; + padding-top: 30px; + margin-top: 20px; + padding-bottom: 10px; +} + +footer img { + width: 24px; + vertical-align: middle; + padding-left: 4px; + position: relative; + top: -3px; + opacity: 0.6; +} + +pre.source-code { + padding: 4px; +} + +pre.raw-source-code > code { + padding: 0; + margin: 0; + font-size: 12px; + background: #fff; + border: solid 1px #ddd; + line-height: 1.5; +} + +pre.raw-source-code > code > ol { + counter-reset:number; + list-style:none; + margin:0; + padding:0; + overflow: hidden; +} + +pre.raw-source-code > code > ol li:before { + counter-increment: number; + content: counter(number); + display: inline-block; + min-width: 3em; + color: #aaa; + text-align: right; + padding-right: 1em; +} + +pre.source-code.line-number { + padding: 0; +} + +pre.source-code ol { + background: #eee; + padding-left: 40px; +} + +pre.source-code li { + background: white; + padding-left: 4px; + list-style: decimal; + margin: 0; +} + +pre.source-code.line-number li.active { + background: rgb(255, 255, 150) !important; +} + +pre.source-code.line-number li.error-line { + background: #ffb8bf; +} + +.inner-link-active { + /*background: rgb(255, 255, 150) !important;*/ + background: #039BE5 !important; + color: #fff !important; + padding-left: 0.1em !important; +} + +.inner-link-active a { + color: inherit; +} diff --git a/docs/css/test.css b/docs/css/test.css new file mode 100644 index 00000000..8ce12669 --- /dev/null +++ b/docs/css/test.css @@ -0,0 +1,58 @@ +table.test-summary thead { + background: #fafafa; +} + +table.test-summary thead .test-description { + width: 50%; +} + +table.test-summary { + width: 100%; + margin: 10px 0; + border-spacing: 0; + border: 0; + border-collapse: collapse; +} + +table.test-summary thead .test-count { + width: 3em; +} + +table.test-summary tbody tr:hover { + background-color: #eee; +} + +table.test-summary td { + border: solid 1px #ddd; + padding: 4px 10px; + vertical-align: top; +} + +table.test-summary td p { + margin: 0; +} + +table.test-summary tr.test-interface .toggle { + display: inline-block; + float: left; + margin-right: 4px; + cursor: pointer; + font-size: 0.8em; + padding-top: 0.25em; +} + +table.test-summary tr.test-interface .toggle.opened:before { + content: '▼'; +} + +table.test-summary tr.test-interface .toggle.closed:before { + content: '▶'; +} + +table.test-summary .test-target > span { + display: block; + margin-top: 4px; +} +table.test-summary .test-target > span:first-child { + margin-top: 0; +} diff --git a/docs/file/src/demo/App.js.html b/docs/file/src/demo/App.js.html new file mode 100644 index 00000000..74e662ff --- /dev/null +++ b/docs/file/src/demo/App.js.html @@ -0,0 +1,145 @@ + + + + + + src/demo/App.js | simple-keyboard + + + + + + + +
+ Home + + Reference + Source + + +
+ + + +

src/demo/App.js

+
import Keyboard from '../lib';
+import './css/App.css';
+
+/**
+ * simple-keyboard demo
+ */
+class App {
+  /**
+   * Instantiates the demo class
+   */
+  constructor(){
+    document.addEventListener('DOMContentLoaded', this.onDOMLoaded);
+
+    /**
+     * Default input name
+     * @type {string}
+     */
+    this.layoutName = "default";
+  }
+
+  /**
+   * Executed when the DOM is ready
+   */
+  onDOMLoaded = () => {
+    /**
+     * Creates a new simple-keyboard instance
+     */
+    this.keyboard = new Keyboard({
+      debug: true,
+      layoutName: this.layoutName,
+      onChange: input => this.onChange(input),
+      onKeyPress: button => this.onKeyPress(button),
+      newLineOnEnter: true,
+      physicalKeyboardHighlight: true,
+    });
+  
+    /**
+     * Adding preview (demo only)
+     */
+    document.querySelector('.simple-keyboard').insertAdjacentHTML('beforebegin', `
+    <div class="simple-keyboard-preview">
+      <textarea class="input"></textarea>
+    </div>
+    `);
+  
+    document.querySelector('.input').addEventListener('change', (event) => {
+      this.keyboard.setInput(event.target.value);
+    });
+
+    console.log(this.keyboard);
+  }
+
+  /**
+   * 
+   */
+  handleShiftButton = () => {
+    let layoutName = this.layoutName;
+    let shiftToggle = this.layoutName = layoutName === "default" ? "shift" : "default";
+  
+    this.keyboard.setOptions({
+      layoutName: shiftToggle
+    });
+  }
+
+  /**
+   * Called when simple-keyboard input has changed
+   */
+  onChange = input => {
+    document.querySelector('.input').value = input;
+  }
+
+  /**
+   * Called when a simple-keyboard key is pressed
+   */
+  onKeyPress = button => {
+    console.log("Button pressed", button);
+  
+      /**
+       * Shift functionality
+       */
+      if(button === "{lock}" || button === "{shift}")
+        this.handleShiftButton();
+  }
+
+}
+
+export default App;
+ +
+ + + + + + + + + + + + diff --git a/docs/file/src/demo/index.js.html b/docs/file/src/demo/index.js.html new file mode 100644 index 00000000..95c9db2c --- /dev/null +++ b/docs/file/src/demo/index.js.html @@ -0,0 +1,64 @@ + + + + + + src/demo/index.js | simple-keyboard + + + + + + + +
+ Home + + Reference + Source + + +
+ + + +

src/demo/index.js

+
import App from './App';
+
+/**
+ * Initializing demo
+ */
+new App();
+ +
+ + + + + + + + + + + + diff --git a/docs/file/src/lib/components/Keyboard.js.html b/docs/file/src/lib/components/Keyboard.js.html new file mode 100644 index 00000000..5fc2029a --- /dev/null +++ b/docs/file/src/lib/components/Keyboard.js.html @@ -0,0 +1,655 @@ + + + + + + src/lib/components/Keyboard.js | simple-keyboard + + + + + + + +
+ Home + + Reference + Source + + +
+ + + +

src/lib/components/Keyboard.js

+
import './Keyboard.css';
+
+// Services
+import PhysicalKeyboard from '../services/PhysicalKeyboard';
+import KeyboardLayout from '../services/KeyboardLayout';
+import Utilities from '../services/Utilities';
+
+/**
+ * Root class for simple-keyboard
+ * This class:
+ * - Parses the options
+ * - Renders the rows and buttons
+ * - Handles button functionality
+ */
+class SimpleKeyboard {
+  /**
+   * Creates an instance of SimpleKeyboard
+   * @param {Array} params If first parameter is a string, it is considered the container class. The second parameter is then considered the options object. If first parameter is an object, it is considered the options object.
+   */
+  constructor(...params){
+    let keyboardDOMQuery = typeof params[0] === "string" ? params[0] : '.simple-keyboard';
+    let options = typeof params[0] === "object" ? params[0] : params[1];
+
+    if(!options)
+      options = {};
+
+    /**
+     * Initializing Utilities
+     */
+    this.utilities = new Utilities(this);
+
+    /**
+     * Processing options
+     */
+    this.keyboardDOM = document.querySelector(keyboardDOMQuery);
+
+    /**
+     * @type {object}
+     * @property {object} layout Modify the keyboard layout.
+     * @property {string} layoutName Specifies which layout should be used.
+     * @property {object} display Replaces variable buttons (such as {bksp}) with a human-friendly name (e.g.: “backspace”).
+     * @property {boolean} mergeDisplay By default, when you set the display property, you replace the default one. This setting merges them instead.
+     * @property {string} theme A prop to add your own css classes to the keyboard wrapper. You can add multiple classes separated by a space.
+     * @property {Array} buttonTheme A prop to add your own css classes to one or several buttons.
+     * @property {boolean} debug Runs a console.log every time a key is pressed. Displays the buttons pressed and the current input.
+     * @property {boolean} newLineOnEnter Specifies whether clicking the “ENTER” button will input a newline (\n) or not.
+     * @property {boolean} tabCharOnTab Specifies whether clicking the “TAB” button will input a tab character (\t) or not.
+     * @property {string} inputName Allows you to use a single simple-keyboard instance for several inputs.
+     * @property {number} maxLength Restrains all of simple-keyboard inputs to a certain length. This should be used in addition to the input element’s maxlengthattribute.
+     * @property {object} maxLength Restrains simple-keyboard’s individual inputs to a certain length. This should be used in addition to the input element’s maxlengthattribute.
+     * @property {boolean} syncInstanceInputs When set to true, this option synchronizes the internal input of every simple-keyboard instance.
+     * @property {boolean} physicalKeyboardHighlight Enable highlighting of keys pressed on physical keyboard.
+     * @property {string} physicalKeyboardHighlightTextColor Define the text color that the physical keyboard highlighted key should have.
+     * @property {string} physicalKeyboardHighlightBgColor Define the background color that the physical keyboard highlighted key should have. 
+     * @property {function(button: string):string} onKeyPress Executes the callback function on key press. Returns button layout name (i.e.: “{shift}”).
+     * @property {function(input: string):string} onChange Executes the callback function on input change. Returns the current input’s string.
+     * @property {function} onRender Executes the callback function every time simple-keyboard is rendered (e.g: when you change layouts).
+     * @property {function} onInit Executes the callback function once simple-keyboard is rendered for the first time (on initialization).
+     * @property {function(inputs: object):object} onChangeAll Executes the callback function on input change. Returns the input object with all defined inputs.
+     */
+    this.options = options;
+    this.options.layoutName = this.options.layoutName || "default";
+    this.options.theme = this.options.theme || "hg-theme-default";
+    this.options.inputName = this.options.inputName || "default";
+
+    /**
+     * simple-keyboard uses a non-persistent internal input to keep track of the entered string (the variable `keyboard.input`).
+     * This removes any dependency to input DOM elements. You can type and directly display the value in a div element, for example.
+     * @example
+     * // To get entered input
+     * let input = keyboard.getInput();
+     * 
+     * // To clear entered input.
+     * keyboard.clearInput();
+     * 
+     * @type {object}
+     * @property {object} default Default SimpleKeyboard internal input.
+     * @property {object} myInputName Example input that can be set through `options.inputName:"myInputName"`.
+     */
+    this.input = {};
+    this.input[this.options.inputName] = '';
+
+    /**
+     * @type {string} DOM class of the keyboard wrapper, normally "simple-keyboard" by default.
+     */
+    this.keyboardDOMClass = keyboardDOMQuery.split('.').join("");
+
+    /**
+     * @type {object} Contains the DOM elements of every rendered button, the key being the button's layout name (e.g.: "{enter}").
+     */
+    this.buttonElements = {};
+
+    /**
+     * Rendering keyboard
+     */
+    if(this.keyboardDOM)
+      this.render();
+    else {
+      console.warn(`"${keyboardDOMQuery}" was not found in the DOM.`);
+      throw new Error("KEYBOARD_DOM_ERROR");
+    }
+
+    /**
+     * Saving instance
+     * This enables multiple simple-keyboard support with easier management
+     */
+    if(!window['SimpleKeyboardInstances'])
+      window['SimpleKeyboardInstances'] = {};
+      
+    window['SimpleKeyboardInstances'][this.utilities.camelCase(this.keyboardDOMClass)] = this;
+
+    /**
+     * Physical Keyboard support
+     */
+    this.physicalKeyboardInterface = new PhysicalKeyboard(this);
+  }
+  /**
+   * Handles clicks made to keyboard buttons
+   * @param  {string} button The button's layout name.
+   */
+  handleButtonClicked = (button) => {
+    let debug = this.options.debug;
+
+    /**
+     * Ignoring placeholder buttons
+     */
+    if(button === '{//}')
+      return false;
+
+    /**
+     * Calling onKeyPress
+     */
+    if(typeof this.options.onKeyPress === "function")
+      this.options.onKeyPress(button);
+    
+    if(!this.input[this.options.inputName])
+      this.input[this.options.inputName] = '';
+
+    let updatedInput = this.utilities.getUpdatedInput(button, this.input[this.options.inputName], this.options, this.caretPosition);
+
+    if(this.input[this.options.inputName] !== updatedInput){
+
+      /**
+       * If maxLength and handleMaxLength yield true, halting
+       */
+      if(this.options.maxLength && this.utilities.handleMaxLength(this.input, this.options, updatedInput)){
+        return false;
+      }
+
+      this.input[this.options.inputName] = updatedInput;
+
+      if(debug)
+        console.log('Input changed:', this.input);
+
+      /**
+       * Enforce syncInstanceInputs, if set
+       */
+      if(this.options.syncInstanceInputs)
+        this.syncInstanceInputs(this.input);
+
+      /**
+       * Calling onChange
+       */
+      if(typeof this.options.onChange === "function")
+        this.options.onChange(this.input[this.options.inputName]);
+    }
+    
+    if(debug){
+      console.log("Key pressed:", button);
+    }
+  }
+
+  /**
+   * Send a command to all simple-keyboard instances (if you have several instances).
+   */
+  syncInstanceInputs = () => {
+    this.dispatch((instance) => {
+      instance.replaceInput(this.input);
+    });
+  }
+  
+  /**
+   * Clear the keyboard’s input.
+   * @param  {string} [inputName] optional - the internal input to select
+   */
+  clearInput = (inputName) => {
+    inputName = inputName || this.options.inputName;
+    this.input[this.options.inputName] = '';
+
+    /**
+     * Enforce syncInstanceInputs, if set
+     */
+    if(this.options.syncInstanceInputs)
+      this.syncInstanceInputs(this.input);
+  }
+
+  /**
+   * Get the keyboard’s input (You can also get it from the onChange prop).
+   * @param  {string} [inputName] optional - the internal input to select
+   */
+  getInput = (inputName) => {
+    inputName = inputName || this.options.inputName;
+
+    /**
+     * Enforce syncInstanceInputs, if set
+     */
+    if(this.options.syncInstanceInputs)
+      this.syncInstanceInputs(this.input);
+
+    return this.input[this.options.inputName];
+  }
+
+  /**
+   * Set the keyboard’s input.
+   * @param  {string} input the input value
+   * @param  {string} inputName optional - the internal input to select
+   */
+  setInput = (input, inputName) => {
+    inputName = inputName || this.options.inputName;
+    this.input[inputName] = input;
+
+    /**
+     * Enforce syncInstanceInputs, if set
+     */
+    if(this.options.syncInstanceInputs)
+      this.syncInstanceInputs(this.input);
+  }
+  
+  /**
+   * Replace the input object (`keyboard.input`)
+   * @param  {object} inputObj The input object
+   */
+  replaceInput = (inputObj) => {
+    this.input = inputObj;
+  }
+
+  /**
+   * Set new option or modify existing ones after initialization. 
+   * @param  {object} option The option to set
+   */
+  setOptions = option => {
+    option = option || {};
+    this.options = Object.assign(this.options, option);
+    this.render();
+  }
+
+  /**
+   * Remove all keyboard rows and reset keyboard values.
+   * Used interally between re-renders.
+   */
+  clear = () => {
+    this.keyboardDOM.innerHTML = '';
+    this.keyboardDOM.className = this.keyboardDOMClass;
+    this.buttonElements = {};
+  }
+
+  /**
+   * Send a command to all simple-keyboard instances at once (if you have multiple instances).
+   * @param  {function(instance: object, key: string)} callback Function to run on every instance
+   */
+  dispatch = (callback) => {
+    if(!window['SimpleKeyboardInstances']){
+      console.warn(`SimpleKeyboardInstances is not defined. Dispatch cannot be called.`);
+      throw new Error("INSTANCES_VAR_ERROR");
+    }
+    
+    return Object.keys(window['SimpleKeyboardInstances']).forEach((key) => {
+      callback(window['SimpleKeyboardInstances'][key], key);
+    })
+  }
+
+  /**
+   * Adds/Modifies an entry to the `buttonTheme`. Basically a way to add a class to a button.
+   * @param  {string} buttons List of buttons to select (separated by a space).
+   * @param  {string} className Classes to give to the selected buttons (separated by space).
+   */
+  addButtonTheme = (buttons, className) => {
+    if(!className || !buttons)
+      return false;
+
+    buttons.split(" ").forEach(button => {
+      className.split(" ").forEach(classNameItem => {
+        if(!this.options.buttonTheme)
+          this.options.buttonTheme = [];
+
+        let classNameFound = false;
+  
+        /**
+         * If class is already defined, we add button to class definition
+         */
+        this.options.buttonTheme.map(buttonTheme => {
+
+          if(buttonTheme.class.split(" ").includes(classNameItem)){
+            classNameFound = true;
+            
+            let buttonThemeArray = buttonTheme.buttons.split(" ");
+            if(!buttonThemeArray.includes(button)){
+              classNameFound = true;
+              buttonThemeArray.push(button);
+              buttonTheme.buttons = buttonThemeArray.join(" ");
+            }
+          }
+          return buttonTheme;
+        });
+
+        /**
+         * If class is not defined, we create a new entry
+         */
+        if(!classNameFound){
+          this.options.buttonTheme.push({
+            class: classNameItem,
+            buttons: buttons
+          });
+        }
+
+      });
+    });
+
+    this.render();
+  }
+
+  /**
+   * Removes/Amends an entry to the `buttonTheme`. Basically a way to remove a class previously added to a button through buttonTheme or addButtonTheme.
+   * @param  {string} buttons List of buttons to select (separated by a space).
+   * @param  {string} className Classes to give to the selected buttons (separated by space).
+   */
+  removeButtonTheme = (buttons, className) => {
+    /**
+     * When called with empty parameters, remove all button themes
+     */
+    if(!buttons && !className){
+      this.options.buttonTheme = [];
+      this.render();
+      return false;
+    }
+
+    /**
+     * If buttons are passed and buttonTheme has items
+     */
+    if(buttons && Array.isArray(this.options.buttonTheme) && this.options.buttonTheme.length){
+      let buttonArray = buttons.split(" ");
+      buttonArray.forEach((button, key) => {
+        this.options.buttonTheme.map((buttonTheme, index) => {
+
+          /**
+           * If className is set, we affect the buttons only for that class
+           * Otherwise, we afect all classes
+           */
+          if(
+            (className && className.includes(buttonTheme.class)) ||
+            !className
+          ){
+            let filteredButtonArray = buttonTheme.buttons.split(" ").filter(item => item !== button);
+
+            /**
+             * If buttons left, return them, otherwise, remove button Theme
+             */
+            if(filteredButtonArray.length){
+              buttonTheme.buttons = filteredButtonArray.join(" ");
+            } else {
+              this.options.buttonTheme.splice(index, 1);
+              buttonTheme = null;
+            }
+ 
+          }
+
+          return buttonTheme;
+        });
+      });
+
+      this.render();
+    }
+  }
+
+  /**
+   * Get the DOM Element of a button. If there are several buttons with the same name, an array of the DOM Elements is returned.
+   * @param  {string} button The button layout name to select
+   */
+  getButtonElement = (button) => {
+    let output;
+
+    let buttonArr = this.buttonElements[button];
+    if(buttonArr){
+      if(buttonArr.length > 1){
+        output = buttonArr;
+      } else {
+        output = buttonArr[0];
+      }
+    }
+
+    return output;
+  }
+
+  /**
+   * Retrieves the current cursor position within a input or textarea (if any)
+   */
+  handleCaret = () => {
+    if(this.options.debug){
+      console.log("Caret handling started");
+    }
+
+    document.addEventListener("keyup", this.caretEventHandler);
+    document.addEventListener("mouseup", this.caretEventHandler);
+    document.addEventListener("touchend", this.caretEventHandler);
+  }
+
+  /**
+   * Called by {@link handleCaret} when an event that warrants a cursor position update is triggered
+   */
+  caretEventHandler = (event) => {
+    let targetTagName = event.target.tagName.toLowerCase();
+
+    if(
+      targetTagName === "textarea" ||
+      targetTagName === "input"
+    ){
+      /**
+       * Tracks current cursor position
+       * As keys are pressed, text will be added/removed at that position within the input.
+       */
+      this.caretPosition = event.target.selectionStart;
+
+      if(this.options.debug){
+        console.log('Caret at: ', event.target.selectionStart, event.target.tagName.toLowerCase());
+      }     
+    }
+  }
+
+  /**
+   * Executes the callback function once simple-keyboard is rendered for the first time (on initialization).
+   */
+  onInit = () => {
+    if(this.options.debug){
+      console.log("Initialized");
+    }
+
+    /**
+     * Caret handling
+     */
+    this.handleCaret();
+
+    if(typeof this.options.onInit === "function")
+      this.options.onInit();
+  }
+
+  /**
+   * Executes the callback function every time simple-keyboard is rendered (e.g: when you change layouts).
+   */
+  onRender = () => {
+    if(typeof this.options.onRender === "function")
+      this.options.onRender();
+  }
+
+  /**
+   * Renders rows and buttons as per options
+   */
+  render = () => {
+    /**
+     * Clear keyboard
+     */
+    this.clear();
+
+    let layoutClass = this.options.layout ? "hg-layout-custom" : `hg-layout-${this.options.layoutName}`;
+    let layout = this.options.layout || KeyboardLayout.getDefaultLayout();
+
+    /**
+     * Account for buttonTheme, if set
+     */
+    let buttonThemesParsed = {};
+    if(Array.isArray(this.options.buttonTheme)){
+      this.options.buttonTheme.forEach(themeObj => {
+        if(themeObj.buttons && themeObj.class){
+          let themeButtons;
+
+          if(typeof themeObj.buttons === "string"){
+            themeButtons = themeObj.buttons.split(' ');
+          }
+
+          if(themeButtons){
+            themeButtons.forEach(themeButton => {
+              let themeParsed = buttonThemesParsed[themeButton];
+
+              // If the button has already been added
+              if(themeParsed){
+                // Making sure we don't add duplicate classes, even when buttonTheme has duplicates
+                if(!this.utilities.countInArray(themeParsed.split(" "), themeObj.class)){
+                  buttonThemesParsed[themeButton] = `${themeParsed} ${themeObj.class}`;
+                }
+              } else {
+                buttonThemesParsed[themeButton] = themeObj.class;
+              }
+            });
+          }
+        } else {
+          console.warn(`buttonTheme row is missing the "buttons" or the "class". Please check the documentation.`)
+        }
+      });
+    }
+
+    /**
+     * Adding themeClass, layoutClass to keyboardDOM
+     */
+    this.keyboardDOM.className += ` ${this.options.theme} ${layoutClass}`;
+
+    /**
+     * Iterating through each row
+     */
+    layout[this.options.layoutName].forEach((row, rIndex) => {
+      let rowArray = row.split(' ');
+
+      /**
+       * Creating empty row
+       */
+      var rowDOM = document.createElement('div');
+      rowDOM.className += "hg-row";
+
+      /**
+       * Iterating through each button in row
+       */
+      rowArray.forEach((button, bIndex) => {
+        let fctBtnClass = this.utilities.getButtonClass(button);
+        let buttonThemeClass = buttonThemesParsed[button];
+        let buttonDisplayName = this.utilities.getButtonDisplayName(button, this.options.display, this.options.mergeDisplay);
+
+        /**
+         * Creating button
+         */
+        var buttonDOM = document.createElement('div');
+        buttonDOM.className += `hg-button ${fctBtnClass}${buttonThemeClass ? " "+buttonThemeClass : ""}`;
+        buttonDOM.onclick = () => this.handleButtonClicked(button);
+
+        /**
+         * Adding identifier
+         */
+        buttonDOM.setAttribute("data-skBtn", button);
+
+        /**
+         * Adding unique id
+         * Since there's no limit on spawning same buttons, the unique id ensures you can style every button
+         */
+        let buttonUID = `${this.options.layoutName}-r${rIndex}b${bIndex}`;
+        buttonDOM.setAttribute("data-skBtnUID", buttonUID);
+
+        /**
+         * Adding display label
+         */
+        buttonDOM.setAttribute("data-displayLabel", buttonDisplayName);
+
+        /**
+         * Adding button label to button
+         */
+        var buttonSpanDOM = document.createElement('span');
+        buttonSpanDOM.innerHTML = buttonDisplayName;
+        buttonDOM.appendChild(buttonSpanDOM);
+
+        /**
+         * Adding to buttonElements
+         */
+        if(!this.buttonElements[button])
+          this.buttonElements[button] = [];
+
+        this.buttonElements[button].push(buttonDOM);
+
+        /**
+         * Appending button to row
+         */
+        rowDOM.appendChild(buttonDOM);
+
+      });
+
+      /**
+       * Appending row to keyboard
+       */
+      this.keyboardDOM.appendChild(rowDOM);
+    });
+
+    /**
+     * Calling onRender
+     */
+    this.onRender();
+
+    if(!this.initialized){
+      /**
+       * Ensures that onInit is only called once per instantiation
+       */
+      this.initialized = true;
+
+      /**
+       * Calling onInit
+       */
+      this.onInit();
+    }
+  }
+}
+
+export default SimpleKeyboard;
+
+ +
+ + + + + + + + + + + + diff --git a/docs/file/src/lib/index.js.html b/docs/file/src/lib/index.js.html new file mode 100644 index 00000000..406b78c6 --- /dev/null +++ b/docs/file/src/lib/index.js.html @@ -0,0 +1,61 @@ + + + + + + src/lib/index.js | simple-keyboard + + + + + + + +
+ Home + + Reference + Source + + +
+ + + +

src/lib/index.js

+
import SimpleKeyboard from './components/Keyboard';
+export default SimpleKeyboard;
+
+ +
+ + + + + + + + + + + + diff --git a/docs/file/src/lib/services/KeyboardLayout.js.html b/docs/file/src/lib/services/KeyboardLayout.js.html new file mode 100644 index 00000000..e52f9cf0 --- /dev/null +++ b/docs/file/src/lib/services/KeyboardLayout.js.html @@ -0,0 +1,88 @@ + + + + + + src/lib/services/KeyboardLayout.js | simple-keyboard + + + + + + + +
+ Home + + Reference + Source + + +
+ + + +

src/lib/services/KeyboardLayout.js

+
/**
+ * Keyboard Layout Service
+ */
+class KeyboardLayout {
+
+  /**
+   * Get default simple-keyboard layout
+   * @return {object} The default layout (US-QWERTY)
+   */
+  static getDefaultLayout = () => {
+    return {
+      'default': [
+        '` 1 2 3 4 5 6 7 8 9 0 - = {bksp}',
+        '{tab} q w e r t y u i o p [ ] \\',
+        '{lock} a s d f g h j k l ; \' {enter}',
+        '{shift} z x c v b n m , . / {shift}',
+        '.com @ {space}'
+      ],
+      'shift': [
+        '~ ! @ # $ % ^ & * ( ) _ + {bksp}',
+        '{tab} Q W E R T Y U I O P { } |',
+        '{lock} A S D F G H J K L : " {enter}',
+        '{shift} Z X C V B N M < > ? {shift}',
+        '.com @ {space}'
+      ]
+    } 
+  }
+}
+
+export default KeyboardLayout;
+ +
+ + + + + + + + + + + + diff --git a/docs/file/src/lib/services/PhysicalKeyboard.js.html b/docs/file/src/lib/services/PhysicalKeyboard.js.html new file mode 100644 index 00000000..1e7e2130 --- /dev/null +++ b/docs/file/src/lib/services/PhysicalKeyboard.js.html @@ -0,0 +1,150 @@ + + + + + + src/lib/services/PhysicalKeyboard.js | simple-keyboard + + + + + + + +
+ Home + + Reference + Source + + +
+ + + +

src/lib/services/PhysicalKeyboard.js

+
/**
+ * Physical Keyboard Service
+ */
+class PhysicalKeyboard {
+  /**
+   * Creates an instance of the PhysicalKeyboard service
+   */
+  constructor(simpleKeyboardInstance){
+    /**
+     * @type {object} A simple-keyboard instance
+     */
+    this.simpleKeyboardInstance = simpleKeyboardInstance;
+
+    this.initKeyboardListener();
+  }
+
+  /**
+   * Initializes key event listeners
+   */
+  initKeyboardListener = () => {
+    // Adding button style on keydown
+    document.addEventListener("keydown", (event) => {
+      if(this.simpleKeyboardInstance.options.physicalKeyboardHighlight){
+        let buttonPressed = this.getSimpleKeyboardLayoutKey(event);
+
+        this.simpleKeyboardInstance.dispatch(instance => {
+          let buttonDOM = instance.getButtonElement(buttonPressed) || instance.getButtonElement(`{${buttonPressed}}`);
+
+          if(buttonDOM){
+            buttonDOM.style.backgroundColor = this.simpleKeyboardInstance.options.physicalKeyboardHighlightBgColor || "#9ab4d0";
+            buttonDOM.style.color = this.simpleKeyboardInstance.options.physicalKeyboardHighlightTextColor || "white";
+          }
+        });
+      }
+    });
+
+    // Removing button style on keyup
+    document.addEventListener("keyup", (event) => {
+      if(this.simpleKeyboardInstance.options.physicalKeyboardHighlight){
+        let buttonPressed = this.getSimpleKeyboardLayoutKey(event);
+
+        this.simpleKeyboardInstance.dispatch(instance => {
+          let buttonDOM = instance.getButtonElement(buttonPressed) || instance.getButtonElement(`{${buttonPressed}}`);
+
+          if(buttonDOM){
+            buttonDOM.removeAttribute("style");
+          }
+        });
+      }
+    });
+  }
+
+  /**
+   * Transforms a KeyboardEvent's "key.code" string into a simple-keyboard layout format
+   * @param  {object} event The KeyboardEvent
+   */
+  getSimpleKeyboardLayoutKey = (event) => {
+    if(this.simpleKeyboardInstance.options.debug){
+      console.log(event);
+    }
+    
+    let output;
+
+    if(
+      event.code.includes("Numpad") ||
+      event.code.includes("Shift") ||
+      event.code.includes("Space") ||
+      event.code.includes("Backspace") ||
+      event.code.includes("Control") ||
+      event.code.includes("Alt") ||
+      event.code.includes("Meta")
+    ){
+      output = event.code;
+    } else {
+      output = event.key;
+    }
+
+    /**
+     * If button is not uppercase, casting to lowercase
+     */
+    if (
+      output !== output.toUpperCase() ||
+      (event.code[0] === "F" && Number.isInteger(Number(event.code[1])) && event.code.length <= 3)
+    ) {
+      output = output.toLowerCase();
+    }
+
+    return output;
+  }
+}
+
+export default PhysicalKeyboard;
+ +
+ + + + + + + + + + + + diff --git a/docs/file/src/lib/services/Utilities.js.html b/docs/file/src/lib/services/Utilities.js.html new file mode 100644 index 00000000..c1251b87 --- /dev/null +++ b/docs/file/src/lib/services/Utilities.js.html @@ -0,0 +1,400 @@ + + + + + + src/lib/services/Utilities.js | simple-keyboard + + + + + + + +
+ Home + + Reference + Source + + +
+ + + +

src/lib/services/Utilities.js

+
/**
+ * Utility Service
+ */
+class Utilities {
+  /**
+   * Creates an instance of the Utility service
+   */
+  constructor(simpleKeyboardInstance){
+    /**
+     * @type {object} A simple-keyboard instance
+     */
+    this.simpleKeyboardInstance = simpleKeyboardInstance;
+  }
+
+  /**
+   * Adds default classes to a given button
+   * 
+   * @param  {string} button The button's layout name
+   * @return {string} The classes to be added to the button
+   */
+  getButtonClass = button => {
+    let buttonTypeClass = (button.includes("{") && button.includes("}") && button !== '{//}') ? "functionBtn" : "standardBtn";
+    let buttonWithoutBraces = button.replace("{", "").replace("}", "");
+    let buttonNormalized = '';
+
+    if(buttonTypeClass !== "standardBtn")
+      buttonNormalized = ` hg-button-${buttonWithoutBraces}`;
+
+    return `hg-${buttonTypeClass}${buttonNormalized}`;
+  }
+
+  /**
+   * Default button display labels
+   */
+  getDefaultDiplay(){
+    return {
+      '{bksp}': 'backspace',
+      '{backspace}': 'backspace',
+      '{enter}': '< enter',
+      '{shift}': 'shift',
+      '{shiftleft}': 'shift',
+      '{shiftright}': 'shift',
+      '{alt}': 'alt',
+      '{s}': 'shift',
+      '{tab}': 'tab',
+      '{lock}': 'caps',
+      '{capslock}': 'caps',
+      '{accept}': 'Submit',
+      '{space}': ' ',
+      '{//}': ' ',
+      "{esc}": "esc",
+      "{escape}": "esc",
+      "{f1}": "f1",
+      "{f2}": "f2",
+      "{f3}": "f3",
+      "{f4}": "f4",
+      "{f5}": "f5",
+      "{f6}": "f6",
+      "{f7}": "f7",
+      "{f8}": "f8",
+      "{f9}": "f9",
+      "{f10}": "f10",
+      "{f11}": "f11",
+      "{f12}": "f12",
+      '{numpaddivide}': '/',
+      '{numlock}': 'lock',
+      "{arrowup}": "↑",
+      "{arrowleft}": "←",
+      "{arrowdown}": "↓",
+      "{arrowright}": "→",
+      "{prtscr}": "print",
+      "{scrolllock}": "scroll",
+      "{pause}": "pause",
+      "{insert}": "ins",
+      "{home}": "home",
+      "{pageup}": "up",
+      "{delete}": "del",
+      "{end}": "end",
+      "{pagedown}": "down",
+      "{numpadmultiply}": "*",
+      "{numpadsubtract}": "-",
+      "{numpadadd}": "+",
+      "{numpadenter}": "enter",
+      "{period}": ".",
+      "{numpaddecimal}": ".",
+      "{numpad0}": "0",
+      "{numpad1}": "1",
+      "{numpad2}": "2",
+      "{numpad3}": "3",
+      "{numpad4}": "4",
+      "{numpad5}": "5",
+      "{numpad6}": "6",
+      "{numpad7}": "7",
+      "{numpad8}": "8",
+      "{numpad9}": "9",
+    };
+  }
+  /**
+   * Returns the display (label) name for a given button
+   * 
+   * @param  {string} button The button's layout name
+   * @param  {object} display The provided display option
+   * @param  {boolean} mergeDisplay Whether the provided param value should be merged with the default one.
+   */
+  getButtonDisplayName = (button, display, mergeDisplay) => {
+    if(mergeDisplay){
+      display = Object.assign({}, this.getDefaultDiplay(), display);
+    } else {
+      display = display || this.getDefaultDiplay();
+    }
+
+    return display[button] || button;
+  }
+
+  
+  /**
+   * Returns the updated input resulting from clicking a given button
+   * 
+   * @param  {string} button The button's layout name
+   * @param  {string} input The input string
+   * @param  {object} options The simple-keyboard options object
+   * @param  {number} caretPos The cursor's current position
+   */
+  getUpdatedInput = (button, input, options, caretPos) => {
+    
+    let output = input;
+
+    if((button === "{bksp}" || button === "{backspace}") && output.length > 0){
+      output = this.removeAt(output, caretPos);
+
+    } else if(button === "{space}")
+      output = this.addStringAt(output, " ", caretPos);
+
+    else if(button === "{tab}" && !(typeof options.tabCharOnTab === "boolean" && options.tabCharOnTab === false)){
+      output = this.addStringAt(output, "\t", caretPos);
+
+    } else if((button === "{enter}" || button === "{numpadenter}") && options.newLineOnEnter)
+      output = this.addStringAt(output, "\n", caretPos);
+
+    else if(button.includes("numpad") && Number.isInteger(Number(button[button.length - 2]))){
+      output = this.addStringAt(output, button[button.length - 2], caretPos);
+    }
+    else if(button === "{numpaddivide}")
+      output = this.addStringAt(output, '/', caretPos);
+
+    else if(button === "{numpadmultiply}")
+      output = this.addStringAt(output, '*', caretPos);
+    else if(button === "{numpadsubtract}")
+      output = this.addStringAt(output, '-', caretPos);
+
+    else if(button === "{numpadadd}")
+      output = this.addStringAt(output, '+', caretPos);
+
+    else if(button === "{numpaddecimal}")
+      output = this.addStringAt(output, '.', caretPos);
+
+    else if(button === "{" || button === "}")
+      output = this.addStringAt(output, button, caretPos);
+
+    else if(!button.includes("{") && !button.includes("}"))
+      output = this.addStringAt(output, button, caretPos);
+
+    return output;
+  }
+  /**
+   * Moves the cursor position by a given amount
+   * 
+   * @param  {number} length Represents by how many characters the input should be moved
+   * @param  {boolean} minus Whether the cursor should be moved to the left or not.
+   */
+  updateCaretPos = (length, minus) => {
+    if(minus){
+      if(this.simpleKeyboardInstance.caretPosition > 0)
+        this.simpleKeyboardInstance.caretPosition = this.simpleKeyboardInstance.caretPosition - length
+    } else {
+      this.simpleKeyboardInstance.caretPosition = this.simpleKeyboardInstance.caretPosition + length;
+    }
+  }
+
+  /**
+   * Adds a string to the input at a given position
+   * 
+   * @param  {string} source The source input
+   * @param  {string} string The string to add
+   * @param  {number} position The (cursor) position where the string should be added
+   */
+  addStringAt(source, string, position){
+    let output;
+
+    if(this.simpleKeyboardInstance.options.debug){
+      console.log("Caret at:", position);
+    }
+
+    if(!position && position !== 0){
+      output = source + string;
+    } else {
+      output = [source.slice(0, position), string, source.slice(position)].join('');
+
+      /**
+       * Avoid caret position change when maxLength is set
+       */
+      if(!this.isMaxLengthReached()){
+        this.updateCaretPos(string.length);
+      }
+
+    }
+
+    return output;
+  }
+
+  /**
+   * Removes an amount of characters at a given position
+   * 
+   * @param  {string} source The source input
+   * @param  {number} position The (cursor) position from where the characters should be removed
+   */
+  removeAt(source, position){
+    if(this.simpleKeyboardInstance.caretPosition === 0){
+      return source;
+    }
+
+    let output;
+    let prevTwoChars;
+    let emojiMatched;
+    let emojiMatchedReg = /([\uD800-\uDBFF][\uDC00-\uDFFF])/g;
+
+    /**
+     * Emojis are made out of two characters, so we must take a custom approach to trim them.
+     * For more info: https://mathiasbynens.be/notes/javascript-unicode
+     */
+    if(position && position >= 0){
+      prevTwoChars = source.substring(position - 2, position)
+      emojiMatched = prevTwoChars.match(emojiMatchedReg);
+
+      if(emojiMatched){
+        output = source.substr(0, (position - 2)) + source.substr(position);
+        this.updateCaretPos(2, true);
+      } else {
+        output = source.substr(0, (position - 1)) + source.substr(position);
+        this.updateCaretPos(1, true);
+      }
+    } else {
+      prevTwoChars = source.slice(-2);
+      emojiMatched = prevTwoChars.match(emojiMatchedReg);
+
+      if(emojiMatched){
+        output = source.slice(0, -2);
+        this.updateCaretPos(2, true);
+      } else {
+        output = source.slice(0, -1);
+        this.updateCaretPos(1, true);
+      }
+    }
+
+    return output;
+  }
+  /**
+   * Determines whether the maxLength has been reached. This function is called when the maxLength option it set.
+   * 
+   * @param  {object} inputObj
+   * @param  {object} options
+   * @param  {string} updatedInput
+   */
+  handleMaxLength(inputObj, options, updatedInput){
+    let maxLength = options.maxLength;
+    let currentInput = inputObj[options.inputName];
+    let condition = currentInput.length === maxLength;
+
+
+    if(
+      /**
+       * If pressing this button won't add more characters
+       * We exit out of this limiter function
+       */
+      updatedInput.length <= currentInput.length
+    ){
+      return false;
+    }
+
+    if(Number.isInteger(maxLength)){
+      if(options.debug){
+        console.log("maxLength (num) reached:", condition);
+      }
+
+      if(condition){
+        /**
+         * @type {boolean} Boolean value that shows whether maxLength has been reached
+         */
+        this.maxLengthReached = true;
+        return true;
+      } else {
+        this.maxLengthReached = false;
+        return false;
+      }
+    }
+
+    if(typeof maxLength === "object"){
+      let condition = currentInput.length === maxLength[options.inputName];
+
+      if(options.debug){
+        console.log("maxLength (obj) reached:", condition);
+      }
+
+      if(condition){
+        this.maxLengthReached = true;
+        return true;
+      } else {
+        this.maxLengthReached = false;
+        return false;
+      }
+    }
+  }
+
+  /**
+   * Gets the current value of maxLengthReached
+   */
+  isMaxLengthReached = () => {
+    return Boolean(this.maxLengthReached);
+  }
+
+  /**
+   * Transforms an arbitrary string to camelCase
+   * 
+   * @param  {string} string The string to transform.
+   */
+  camelCase = (string) => {
+    return string.toLowerCase().trim().split(/[.\-_\s]/g).reduce((string, word) => string + word[0].toUpperCase() + word.slice(1));
+  };
+
+  /**
+   * Counts the number of duplicates in a given array
+   * 
+   * @param  {Array} array The haystack to search in
+   * @param  {string} value The needle to search for
+   */
+  countInArray = (array, value) => {
+    return array.reduce((n, x) => n + (x === value), 0);
+  }
+
+}
+
+export default Utilities;
+ +
+ + + + + + + + + + + + diff --git a/docs/file/src/lib/tests/TestUtility.js.html b/docs/file/src/lib/tests/TestUtility.js.html new file mode 100644 index 00000000..479fefc9 --- /dev/null +++ b/docs/file/src/lib/tests/TestUtility.js.html @@ -0,0 +1,165 @@ + + + + + + src/lib/tests/TestUtility.js | simple-keyboard + + + + + + + +
+ Home + + Reference + Source + + +
+ + + +

src/lib/tests/TestUtility.js

+
/**
+ * Test Utility Functions
+ */
+export default class TestUtility {
+  /**
+   * Set's a basic DOM structure to test in
+   */
+  setDOM = (divClass) => {
+    this.clear();
+    const div = document.createElement('div');
+    div.className += divClass || "simple-keyboard";
+    document.body.appendChild(div);
+  }
+
+  /**
+   * Clears DOM structure
+   */
+  clear = () => {
+    document.body.innerHTML = "";
+  }
+
+  /**
+   * Test if standard buttons respect maxLength and do input a value
+   */
+  testLayoutStdButtons = (keyboard) => {
+    let stdBtnCount = 0;
+    let fullInput = '';
+
+    this.iterateButtons((button) => {
+      let label = button.getAttribute("data-skbtn");
+
+      if(label.includes("{"))
+        return false;
+
+      // Click all standard buttons, respects maxLength
+      button.onclick();
+
+      // Recording fullInput, bypasses maxLength
+      fullInput = keyboard.utilities.getUpdatedInput(label, fullInput, keyboard.options, null);
+
+      stdBtnCount += label.length;
+    });
+
+    /**
+     * Check if maxLength is respected
+     */
+    if(
+      (
+        typeof keyboard.options.maxLength === "object" &&
+        keyboard.getInput().length !== keyboard.options.maxLength[keyboard.options.layoutName]
+      ) ||
+      (
+        typeof keyboard.options.maxLength !== "object" &&
+        keyboard.getInput().length !== keyboard.options.maxLength
+      )
+    )
+      throw new Error("MAX_LENGTH_ISSUE");
+    else
+      console.log("MAX_LENGTH PASSED:", keyboard.options.layoutName, keyboard.getInput().length, keyboard.options.maxLength);
+
+    /**
+     * Check if all standard buttons are inputting something
+     * (Regardless of maxLength)
+     */
+    if(stdBtnCount !== fullInput.length)
+      throw new Error("STANDARD_BUTTONS_ISSUE");
+    else
+      console.log("STANDARD_BUTTONS PASSED:", keyboard.options.layoutName, stdBtnCount, fullInput.length);
+  }
+
+  /**
+   * Test if function buttons are interactive (have an onclick)
+   */
+  testLayoutFctButtons = (callback) => {
+    let fctBtnCount = 0;
+    let fctBtnHasOnclickCount = 0;
+
+    this.iterateButtons((button) => {
+      let label = button.getAttribute("data-skbtn");
+
+      if(!label.includes("{") && !label.includes("}"))
+        return false;
+
+      fctBtnCount++;
+
+      if(button.onclick){
+        button.onclick();
+        fctBtnHasOnclickCount++;
+      }
+
+      callback(fctBtnCount, fctBtnHasOnclickCount);
+    });
+  }
+
+  /**
+   * Iterates on the keyboard buttons
+   */
+  iterateButtons = (callback, selector) => {
+    let rows = document.body.querySelector(selector || '.simple-keyboard').children;
+
+    Array.from(rows).forEach(row => {
+      Array.from(row.children).forEach((button) => {
+        callback(button);
+      });
+    });
+  }
+}
+ +
+ + + + + + + + + + + + diff --git a/docs/identifiers.html b/docs/identifiers.html new file mode 100644 index 00000000..337df881 --- /dev/null +++ b/docs/identifiers.html @@ -0,0 +1,291 @@ + + + + + + Reference | simple-keyboard + + + + + + + +
+ Home + + Reference + Source + + +
+ + + +

References

+ +
+
+ +
+

demo

+
+ + + + + + + + + +
summary
+ public + + + + + +
+

+ C + + + App +

+
+
+ + +

simple-keyboard demo

+
+
+
+ + +
+
+
+
+

lib/components

+
+ + + + + + + + + +
summary
+ public + + + + + +
+

+ C + + + SimpleKeyboard +

+
+
+ + +

Root class for simple-keyboard +This class:

+
    +
  • Parses the options
  • +
  • Renders the rows and buttons
  • +
  • Handles button functionality
  • +
+
+
+
+ + +
+
+
+
+

lib/services

+
+ + + + + + + + + + + + + + + + + + + +
summary
+ public + + + + + +
+

+ C + + + KeyboardLayout +

+
+
+ + +

Keyboard Layout Service

+
+
+
+ + +
+ public + + + + + +
+

+ C + + + PhysicalKeyboard +

+
+
+ + +

Physical Keyboard Service

+
+
+
+ + +
+ public + + + + + +
+

+ C + + + Utilities +

+
+
+ + +

Utility Service

+
+
+
+ + +
+
+
+
+

lib/tests

+
+ + + + + + + + + +
summary
+ public + + + + + +
+

+ C + + + TestUtility +

+
+
+ + +

Test Utility Functions

+
+
+
+ + +
+
+
+
+ +
+
Directories
+ +
+
+
+ + + + + + + + + + + + diff --git a/docs/image/badge.svg b/docs/image/badge.svg new file mode 100644 index 00000000..b18426b8 --- /dev/null +++ b/docs/image/badge.svg @@ -0,0 +1,17 @@ + + + + + + + + + + + + document + document + @ratio@ + @ratio@ + + diff --git a/docs/image/esdoc-logo-mini-black.png b/docs/image/esdoc-logo-mini-black.png new file mode 100644 index 00000000..5d5f9a25 Binary files /dev/null and b/docs/image/esdoc-logo-mini-black.png differ diff --git a/docs/image/esdoc-logo-mini.png b/docs/image/esdoc-logo-mini.png new file mode 100644 index 00000000..76ba5b7d Binary files /dev/null and b/docs/image/esdoc-logo-mini.png differ diff --git a/docs/image/github.png b/docs/image/github.png new file mode 100644 index 00000000..ea6ff545 Binary files /dev/null and b/docs/image/github.png differ diff --git a/docs/image/manual-badge.svg b/docs/image/manual-badge.svg new file mode 100644 index 00000000..40296068 --- /dev/null +++ b/docs/image/manual-badge.svg @@ -0,0 +1,17 @@ + + + + + + + + + + + + manual + manual + @value@ + @value@ + + diff --git a/docs/image/search.png b/docs/image/search.png new file mode 100644 index 00000000..f5d84b69 Binary files /dev/null and b/docs/image/search.png differ diff --git a/docs/index.html b/docs/index.html new file mode 100644 index 00000000..3f5ffa2e --- /dev/null +++ b/docs/index.html @@ -0,0 +1,84 @@ + + + + + + Home | simple-keyboard + + + + + + + +
+ Home + + Reference + Source + + +
+ + + +

GitHub license +npm version +Build Status +codecov +

+

+

+
+

The easily customisable and responsive on-screen virtual keyboard for Javascript projects.

+
+

Installation

You can use simple-keyboard as a <script> tag from a CDN, or install it from npm.

+

Check out the Getting Started docs to begin.

+

Documentation

Check out the simple-keyboard documentation site.

+

Feel free to browse the Q&A / Use-cases page for advanced use-cases.

+

Demo

https://simple-keyboard.com/demo

+

To run demo on your own computer

+

Other versions

+

Questions?

+

Contributing

PR's and issues are welcome. Feel free to submit any issues you have at: +https://github.com/hodgef/simple-keyboard/issues

+
+
+ + + + + + + + + + + + diff --git a/docs/index.json b/docs/index.json new file mode 100644 index 00000000..5d81d1cc --- /dev/null +++ b/docs/index.json @@ -0,0 +1,2361 @@ +[ + { + "__docId__": 1, + "kind": "external", + "name": "Infinity", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Infinity", + "memberof": "src/.external-ecmascript.js", + "static": true, + "longname": "src/.external-ecmascript.js~Infinity", + "access": "public", + "description": "", + "builtinExternal": true + }, + { + "__docId__": 2, + "kind": "external", + "name": "NaN", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/NaN", + "memberof": "src/.external-ecmascript.js", + "static": true, + "longname": "src/.external-ecmascript.js~NaN", + "access": "public", + "description": "", + "builtinExternal": true + }, + { + "__docId__": 3, + "kind": "external", + "name": "undefined", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/undefined", + "memberof": "src/.external-ecmascript.js", + "static": true, + "longname": "src/.external-ecmascript.js~undefined", + "access": "public", + "description": "", + "builtinExternal": true + }, + { + "__docId__": 4, + "kind": "external", + "name": "null", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/null", + "memberof": "src/.external-ecmascript.js", + "static": true, + "longname": "src/.external-ecmascript.js~null", + "access": "public", + "description": "", + "builtinExternal": true + }, + { + "__docId__": 5, + "kind": "external", + "name": "Object", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object", + "memberof": "src/.external-ecmascript.js", + "static": true, + "longname": "src/.external-ecmascript.js~Object", + "access": "public", + "description": "", + "builtinExternal": true + }, + { + "__docId__": 6, + "kind": "external", + "name": "object", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object", + "memberof": "src/.external-ecmascript.js", + "static": true, + "longname": "src/.external-ecmascript.js~object", + "access": "public", + "description": "", + "builtinExternal": true + }, + { + "__docId__": 7, + "kind": "external", + "name": "Function", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Function", + "memberof": "src/.external-ecmascript.js", + "static": true, + "longname": "src/.external-ecmascript.js~Function", + "access": "public", + "description": "", + "builtinExternal": true + }, + { + "__docId__": 8, + "kind": "external", + "name": "function", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Function", + "memberof": "src/.external-ecmascript.js", + "static": true, + "longname": "src/.external-ecmascript.js~function", + "access": "public", + "description": "", + "builtinExternal": true + }, + { + "__docId__": 9, + "kind": "external", + "name": "Boolean", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Boolean", + "memberof": "src/.external-ecmascript.js", + "static": true, + "longname": "src/.external-ecmascript.js~Boolean", + "access": "public", + "description": "", + "builtinExternal": true + }, + { + "__docId__": 10, + "kind": "external", + "name": "boolean", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Boolean", + "memberof": "src/.external-ecmascript.js", + "static": true, + "longname": "src/.external-ecmascript.js~boolean", + "access": "public", + "description": "", + "builtinExternal": true + }, + { + "__docId__": 11, + "kind": "external", + "name": "Symbol", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Symbol", + "memberof": "src/.external-ecmascript.js", + "static": true, + "longname": "src/.external-ecmascript.js~Symbol", + "access": "public", + "description": "", + "builtinExternal": true + }, + { + "__docId__": 12, + "kind": "external", + "name": "Error", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Error", + "memberof": "src/.external-ecmascript.js", + "static": true, + "longname": "src/.external-ecmascript.js~Error", + "access": "public", + "description": "", + "builtinExternal": true + }, + { + "__docId__": 13, + "kind": "external", + "name": "EvalError", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/EvalError", + "memberof": "src/.external-ecmascript.js", + "static": true, + "longname": "src/.external-ecmascript.js~EvalError", + "access": "public", + "description": "", + "builtinExternal": true + }, + { + "__docId__": 14, + "kind": "external", + "name": "InternalError", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/InternalError", + "memberof": "src/.external-ecmascript.js", + "static": true, + "longname": "src/.external-ecmascript.js~InternalError", + "access": "public", + "description": "", + "builtinExternal": true + }, + { + "__docId__": 15, + "kind": "external", + "name": "RangeError", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/RangeError", + "memberof": "src/.external-ecmascript.js", + "static": true, + "longname": "src/.external-ecmascript.js~RangeError", + "access": "public", + "description": "", + "builtinExternal": true + }, + { + "__docId__": 16, + "kind": "external", + "name": "ReferenceError", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/ReferenceError", + "memberof": "src/.external-ecmascript.js", + "static": true, + "longname": "src/.external-ecmascript.js~ReferenceError", + "access": "public", + "description": "", + "builtinExternal": true + }, + { + "__docId__": 17, + "kind": "external", + "name": "SyntaxError", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/SyntaxError", + "memberof": "src/.external-ecmascript.js", + "static": true, + "longname": "src/.external-ecmascript.js~SyntaxError", + "access": "public", + "description": "", + "builtinExternal": true + }, + { + "__docId__": 18, + "kind": "external", + "name": "TypeError", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypeError", + "memberof": "src/.external-ecmascript.js", + "static": true, + "longname": "src/.external-ecmascript.js~TypeError", + "access": "public", + "description": "", + "builtinExternal": true + }, + { + "__docId__": 19, + "kind": "external", + "name": "URIError", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/URIError", + "memberof": "src/.external-ecmascript.js", + "static": true, + "longname": "src/.external-ecmascript.js~URIError", + "access": "public", + "description": "", + "builtinExternal": true + }, + { + "__docId__": 20, + "kind": "external", + "name": "Number", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number", + "memberof": "src/.external-ecmascript.js", + "static": true, + "longname": "src/.external-ecmascript.js~Number", + "access": "public", + "description": "", + "builtinExternal": true + }, + { + "__docId__": 21, + "kind": "external", + "name": "number", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number", + "memberof": "src/.external-ecmascript.js", + "static": true, + "longname": "src/.external-ecmascript.js~number", + "access": "public", + "description": "", + "builtinExternal": true + }, + { + "__docId__": 22, + "kind": "external", + "name": "Date", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date", + "memberof": "src/.external-ecmascript.js", + "static": true, + "longname": "src/.external-ecmascript.js~Date", + "access": "public", + "description": "", + "builtinExternal": true + }, + { + "__docId__": 23, + "kind": "external", + "name": "String", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String", + "memberof": "src/.external-ecmascript.js", + "static": true, + "longname": "src/.external-ecmascript.js~String", + "access": "public", + "description": "", + "builtinExternal": true + }, + { + "__docId__": 24, + "kind": "external", + "name": "string", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String", + "memberof": "src/.external-ecmascript.js", + "static": true, + "longname": "src/.external-ecmascript.js~string", + "access": "public", + "description": "", + "builtinExternal": true + }, + { + "__docId__": 25, + "kind": "external", + "name": "RegExp", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/RegExp", + "memberof": "src/.external-ecmascript.js", + "static": true, + "longname": "src/.external-ecmascript.js~RegExp", + "access": "public", + "description": "", + "builtinExternal": true + }, + { + "__docId__": 26, + "kind": "external", + "name": "Array", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array", + "memberof": "src/.external-ecmascript.js", + "static": true, + "longname": "src/.external-ecmascript.js~Array", + "access": "public", + "description": "", + "builtinExternal": true + }, + { + "__docId__": 27, + "kind": "external", + "name": "Int8Array", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Int8Array", + "memberof": "src/.external-ecmascript.js", + "static": true, + "longname": "src/.external-ecmascript.js~Int8Array", + "access": "public", + "description": "", + "builtinExternal": true + }, + { + "__docId__": 28, + "kind": "external", + "name": "Uint8Array", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Uint8Array", + "memberof": "src/.external-ecmascript.js", + "static": true, + "longname": "src/.external-ecmascript.js~Uint8Array", + "access": "public", + "description": "", + "builtinExternal": true + }, + { + "__docId__": 29, + "kind": "external", + "name": "Uint8ClampedArray", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Uint8ClampedArray", + "memberof": "src/.external-ecmascript.js", + "static": true, + "longname": "src/.external-ecmascript.js~Uint8ClampedArray", + "access": "public", + "description": "", + "builtinExternal": true + }, + { + "__docId__": 30, + "kind": "external", + "name": "Int16Array", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Int16Array", + "memberof": "src/.external-ecmascript.js", + "static": true, + "longname": "src/.external-ecmascript.js~Int16Array", + "access": "public", + "description": "", + "builtinExternal": true + }, + { + "__docId__": 31, + "kind": "external", + "name": "Uint16Array", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Uint16Array", + "memberof": "src/.external-ecmascript.js", + "static": true, + "longname": "src/.external-ecmascript.js~Uint16Array", + "access": "public", + "description": "", + "builtinExternal": true + }, + { + "__docId__": 32, + "kind": "external", + "name": "Int32Array", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Int32Array", + "memberof": "src/.external-ecmascript.js", + "static": true, + "longname": "src/.external-ecmascript.js~Int32Array", + "access": "public", + "description": "", + "builtinExternal": true + }, + { + "__docId__": 33, + "kind": "external", + "name": "Uint32Array", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Uint32Array", + "memberof": "src/.external-ecmascript.js", + "static": true, + "longname": "src/.external-ecmascript.js~Uint32Array", + "access": "public", + "description": "", + "builtinExternal": true + }, + { + "__docId__": 34, + "kind": "external", + "name": "Float32Array", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Float32Array", + "memberof": "src/.external-ecmascript.js", + "static": true, + "longname": "src/.external-ecmascript.js~Float32Array", + "access": "public", + "description": "", + "builtinExternal": true + }, + { + "__docId__": 35, + "kind": "external", + "name": "Float64Array", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Float64Array", + "memberof": "src/.external-ecmascript.js", + "static": true, + "longname": "src/.external-ecmascript.js~Float64Array", + "access": "public", + "description": "", + "builtinExternal": true + }, + { + "__docId__": 36, + "kind": "external", + "name": "Map", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Map", + "memberof": "src/.external-ecmascript.js", + "static": true, + "longname": "src/.external-ecmascript.js~Map", + "access": "public", + "description": "", + "builtinExternal": true + }, + { + "__docId__": 37, + "kind": "external", + "name": "Set", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Set", + "memberof": "src/.external-ecmascript.js", + "static": true, + "longname": "src/.external-ecmascript.js~Set", + "access": "public", + "description": "", + "builtinExternal": true + }, + { + "__docId__": 38, + "kind": "external", + "name": "WeakMap", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/WeakMap", + "memberof": "src/.external-ecmascript.js", + "static": true, + "longname": "src/.external-ecmascript.js~WeakMap", + "access": "public", + "description": "", + "builtinExternal": true + }, + { + "__docId__": 39, + "kind": "external", + "name": "WeakSet", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/WeakSet", + "memberof": "src/.external-ecmascript.js", + "static": true, + "longname": "src/.external-ecmascript.js~WeakSet", + "access": "public", + "description": "", + "builtinExternal": true + }, + { + "__docId__": 40, + "kind": "external", + "name": "ArrayBuffer", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/ArrayBuffer", + "memberof": "src/.external-ecmascript.js", + "static": true, + "longname": "src/.external-ecmascript.js~ArrayBuffer", + "access": "public", + "description": "", + "builtinExternal": true + }, + { + "__docId__": 41, + "kind": "external", + "name": "DataView", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/DataView", + "memberof": "src/.external-ecmascript.js", + "static": true, + "longname": "src/.external-ecmascript.js~DataView", + "access": "public", + "description": "", + "builtinExternal": true + }, + { + "__docId__": 42, + "kind": "external", + "name": "JSON", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/JSON", + "memberof": "src/.external-ecmascript.js", + "static": true, + "longname": "src/.external-ecmascript.js~JSON", + "access": "public", + "description": "", + "builtinExternal": true + }, + { + "__docId__": 43, + "kind": "external", + "name": "Promise", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise", + "memberof": "src/.external-ecmascript.js", + "static": true, + "longname": "src/.external-ecmascript.js~Promise", + "access": "public", + "description": "", + "builtinExternal": true + }, + { + "__docId__": 44, + "kind": "external", + "name": "Generator", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Generator", + "memberof": "src/.external-ecmascript.js", + "static": true, + "longname": "src/.external-ecmascript.js~Generator", + "access": "public", + "description": "", + "builtinExternal": true + }, + { + "__docId__": 45, + "kind": "external", + "name": "GeneratorFunction", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/GeneratorFunction", + "memberof": "src/.external-ecmascript.js", + "static": true, + "longname": "src/.external-ecmascript.js~GeneratorFunction", + "access": "public", + "description": "", + "builtinExternal": true + }, + { + "__docId__": 46, + "kind": "external", + "name": "Reflect", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Reflect", + "memberof": "src/.external-ecmascript.js", + "static": true, + "longname": "src/.external-ecmascript.js~Reflect", + "access": "public", + "description": "", + "builtinExternal": true + }, + { + "__docId__": 47, + "kind": "external", + "name": "Proxy", + "externalLink": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Proxy", + "memberof": "src/.external-ecmascript.js", + "static": true, + "longname": "src/.external-ecmascript.js~Proxy", + "access": "public", + "description": "", + "builtinExternal": true + }, + { + "__docId__": 48, + "kind": "file", + "name": "src/demo/App.js", + "content": "import Keyboard from '../lib';\r\nimport './css/App.css';\r\n\r\n/**\r\n * simple-keyboard demo\r\n */\r\nclass App {\r\n /**\r\n * Instantiates the demo class\r\n */\r\n constructor(){\r\n document.addEventListener('DOMContentLoaded', this.onDOMLoaded);\r\n\r\n /**\r\n * Default input name\r\n * @type {string}\r\n */\r\n this.layoutName = \"default\";\r\n }\r\n\r\n /**\r\n * Executed when the DOM is ready\r\n */\r\n onDOMLoaded = () => {\r\n /**\r\n * Creates a new simple-keyboard instance\r\n */\r\n this.keyboard = new Keyboard({\r\n debug: true,\r\n layoutName: this.layoutName,\r\n onChange: input => this.onChange(input),\r\n onKeyPress: button => this.onKeyPress(button),\r\n newLineOnEnter: true,\r\n physicalKeyboardHighlight: true,\r\n });\r\n \r\n /**\r\n * Adding preview (demo only)\r\n */\r\n document.querySelector('.simple-keyboard').insertAdjacentHTML('beforebegin', `\r\n
\r\n \r\n
\r\n `);\r\n \r\n document.querySelector('.input').addEventListener('change', (event) => {\r\n this.keyboard.setInput(event.target.value);\r\n });\r\n\r\n console.log(this.keyboard);\r\n }\r\n\r\n /**\r\n * \r\n */\r\n handleShiftButton = () => {\r\n let layoutName = this.layoutName;\r\n let shiftToggle = this.layoutName = layoutName === \"default\" ? \"shift\" : \"default\";\r\n \r\n this.keyboard.setOptions({\r\n layoutName: shiftToggle\r\n });\r\n }\r\n\r\n /**\r\n * Called when simple-keyboard input has changed\r\n */\r\n onChange = input => {\r\n document.querySelector('.input').value = input;\r\n }\r\n\r\n /**\r\n * Called when a simple-keyboard key is pressed\r\n */\r\n onKeyPress = button => {\r\n console.log(\"Button pressed\", button);\r\n \r\n /**\r\n * Shift functionality\r\n */\r\n if(button === \"{lock}\" || button === \"{shift}\")\r\n this.handleShiftButton();\r\n }\r\n\r\n}\r\n\r\nexport default App;", + "static": true, + "longname": "X:/Dev/simple-keyboard/src/demo/App.js", + "access": "public", + "description": null, + "lineNumber": 1 + }, + { + "__docId__": 49, + "kind": "class", + "name": "App", + "memberof": "src/demo/App.js", + "static": true, + "longname": "src/demo/App.js~App", + "access": "public", + "export": true, + "importPath": "simple-keyboard/src/demo/App.js", + "importStyle": "App", + "description": "simple-keyboard demo", + "lineNumber": 7, + "interface": false + }, + { + "__docId__": 50, + "kind": "constructor", + "name": "constructor", + "memberof": "src/demo/App.js~App", + "generator": false, + "async": false, + "static": false, + "longname": "src/demo/App.js~App#constructor", + "access": "public", + "description": "Instantiates the demo class", + "lineNumber": 11 + }, + { + "__docId__": 51, + "kind": "member", + "name": "layoutName", + "memberof": "src/demo/App.js~App", + "static": false, + "longname": "src/demo/App.js~App#layoutName", + "access": "public", + "description": "Default input name", + "lineNumber": 18, + "type": { + "nullable": null, + "types": [ + "string" + ], + "spread": false, + "description": null + } + }, + { + "__docId__": 52, + "kind": "member", + "name": "onDOMLoaded", + "memberof": "src/demo/App.js~App", + "static": false, + "longname": "src/demo/App.js~App#onDOMLoaded", + "access": "public", + "description": "Executed when the DOM is ready", + "lineNumber": 24, + "type": { + "types": [ + "*" + ] + } + }, + { + "__docId__": 53, + "kind": "member", + "name": "keyboard", + "memberof": "src/demo/App.js~App", + "longname": "src/demo/App.js~App#keyboard", + "access": "public", + "description": "Creates a new simple-keyboard instance", + "lineNumber": 28, + "type": { + "types": [ + "*" + ] + } + }, + { + "__docId__": 54, + "kind": "member", + "name": "handleShiftButton", + "memberof": "src/demo/App.js~App", + "static": false, + "longname": "src/demo/App.js~App#handleShiftButton", + "access": "public", + "description": "", + "lineNumber": 56, + "type": { + "types": [ + "*" + ] + } + }, + { + "__docId__": 55, + "kind": "member", + "name": "onChange", + "memberof": "src/demo/App.js~App", + "static": false, + "longname": "src/demo/App.js~App#onChange", + "access": "public", + "description": "Called when simple-keyboard input has changed", + "lineNumber": 68, + "type": { + "types": [ + "*" + ] + } + }, + { + "__docId__": 56, + "kind": "member", + "name": "onKeyPress", + "memberof": "src/demo/App.js~App", + "static": false, + "longname": "src/demo/App.js~App#onKeyPress", + "access": "public", + "description": "Called when a simple-keyboard key is pressed", + "lineNumber": 75, + "type": { + "types": [ + "*" + ] + } + }, + { + "__docId__": 57, + "kind": "file", + "name": "src/demo/index.js", + "content": "import App from './App';\r\n\r\n/**\r\n * Initializing demo\r\n */\r\nnew App();", + "static": true, + "longname": "X:/Dev/simple-keyboard/src/demo/index.js", + "access": "public", + "description": null, + "lineNumber": 1 + }, + { + "__docId__": 58, + "kind": "file", + "name": "src/lib/components/Keyboard.js", + "content": "import './Keyboard.css';\r\n\r\n// Services\r\nimport PhysicalKeyboard from '../services/PhysicalKeyboard';\r\nimport KeyboardLayout from '../services/KeyboardLayout';\r\nimport Utilities from '../services/Utilities';\r\n\r\n/**\r\n * Root class for simple-keyboard\r\n * This class:\r\n * - Parses the options\r\n * - Renders the rows and buttons\r\n * - Handles button functionality\r\n */\r\nclass SimpleKeyboard {\r\n /**\r\n * Creates an instance of SimpleKeyboard\r\n * @param {Array} params If first parameter is a string, it is considered the container class. The second parameter is then considered the options object. If first parameter is an object, it is considered the options object.\r\n */\r\n constructor(...params){\r\n let keyboardDOMQuery = typeof params[0] === \"string\" ? params[0] : '.simple-keyboard';\r\n let options = typeof params[0] === \"object\" ? params[0] : params[1];\r\n\r\n if(!options)\r\n options = {};\r\n\r\n /**\r\n * Initializing Utilities\r\n */\r\n this.utilities = new Utilities(this);\r\n\r\n /**\r\n * Processing options\r\n */\r\n this.keyboardDOM = document.querySelector(keyboardDOMQuery);\r\n\r\n /**\r\n * @type {object}\r\n * @property {object} layout Modify the keyboard layout.\r\n * @property {string} layoutName Specifies which layout should be used.\r\n * @property {object} display Replaces variable buttons (such as {bksp}) with a human-friendly name (e.g.: “backspace”).\r\n * @property {boolean} mergeDisplay By default, when you set the display property, you replace the default one. This setting merges them instead.\r\n * @property {string} theme A prop to add your own css classes to the keyboard wrapper. You can add multiple classes separated by a space.\r\n * @property {Array} buttonTheme A prop to add your own css classes to one or several buttons.\r\n * @property {boolean} debug Runs a console.log every time a key is pressed. Displays the buttons pressed and the current input.\r\n * @property {boolean} newLineOnEnter Specifies whether clicking the “ENTER” button will input a newline (\\n) or not.\r\n * @property {boolean} tabCharOnTab Specifies whether clicking the “TAB” button will input a tab character (\\t) or not.\r\n * @property {string} inputName Allows you to use a single simple-keyboard instance for several inputs.\r\n * @property {number} maxLength Restrains all of simple-keyboard inputs to a certain length. This should be used in addition to the input element’s maxlengthattribute.\r\n * @property {object} maxLength Restrains simple-keyboard’s individual inputs to a certain length. This should be used in addition to the input element’s maxlengthattribute.\r\n * @property {boolean} syncInstanceInputs When set to true, this option synchronizes the internal input of every simple-keyboard instance.\r\n * @property {boolean} physicalKeyboardHighlight Enable highlighting of keys pressed on physical keyboard.\r\n * @property {string} physicalKeyboardHighlightTextColor Define the text color that the physical keyboard highlighted key should have.\r\n * @property {string} physicalKeyboardHighlightBgColor Define the background color that the physical keyboard highlighted key should have. \r\n * @property {function(button: string):string} onKeyPress Executes the callback function on key press. Returns button layout name (i.e.: “{shift}”).\r\n * @property {function(input: string):string} onChange Executes the callback function on input change. Returns the current input’s string.\r\n * @property {function} onRender Executes the callback function every time simple-keyboard is rendered (e.g: when you change layouts).\r\n * @property {function} onInit Executes the callback function once simple-keyboard is rendered for the first time (on initialization).\r\n * @property {function(inputs: object):object} onChangeAll Executes the callback function on input change. Returns the input object with all defined inputs.\r\n */\r\n this.options = options;\r\n this.options.layoutName = this.options.layoutName || \"default\";\r\n this.options.theme = this.options.theme || \"hg-theme-default\";\r\n this.options.inputName = this.options.inputName || \"default\";\r\n\r\n /**\r\n * simple-keyboard uses a non-persistent internal input to keep track of the entered string (the variable `keyboard.input`).\r\n * This removes any dependency to input DOM elements. You can type and directly display the value in a div element, for example.\r\n * @example\r\n * // To get entered input\r\n * let input = keyboard.getInput();\r\n * \r\n * // To clear entered input.\r\n * keyboard.clearInput();\r\n * \r\n * @type {object}\r\n * @property {object} default Default SimpleKeyboard internal input.\r\n * @property {object} myInputName Example input that can be set through `options.inputName:\"myInputName\"`.\r\n */\r\n this.input = {};\r\n this.input[this.options.inputName] = '';\r\n\r\n /**\r\n * @type {string} DOM class of the keyboard wrapper, normally \"simple-keyboard\" by default.\r\n */\r\n this.keyboardDOMClass = keyboardDOMQuery.split('.').join(\"\");\r\n\r\n /**\r\n * @type {object} Contains the DOM elements of every rendered button, the key being the button's layout name (e.g.: \"{enter}\").\r\n */\r\n this.buttonElements = {};\r\n\r\n /**\r\n * Rendering keyboard\r\n */\r\n if(this.keyboardDOM)\r\n this.render();\r\n else {\r\n console.warn(`\"${keyboardDOMQuery}\" was not found in the DOM.`);\r\n throw new Error(\"KEYBOARD_DOM_ERROR\");\r\n }\r\n\r\n /**\r\n * Saving instance\r\n * This enables multiple simple-keyboard support with easier management\r\n */\r\n if(!window['SimpleKeyboardInstances'])\r\n window['SimpleKeyboardInstances'] = {};\r\n \r\n window['SimpleKeyboardInstances'][this.utilities.camelCase(this.keyboardDOMClass)] = this;\r\n\r\n /**\r\n * Physical Keyboard support\r\n */\r\n this.physicalKeyboardInterface = new PhysicalKeyboard(this);\r\n }\r\n /**\r\n * Handles clicks made to keyboard buttons\r\n * @param {string} button The button's layout name.\r\n */\r\n handleButtonClicked = (button) => {\r\n let debug = this.options.debug;\r\n\r\n /**\r\n * Ignoring placeholder buttons\r\n */\r\n if(button === '{//}')\r\n return false;\r\n\r\n /**\r\n * Calling onKeyPress\r\n */\r\n if(typeof this.options.onKeyPress === \"function\")\r\n this.options.onKeyPress(button);\r\n \r\n if(!this.input[this.options.inputName])\r\n this.input[this.options.inputName] = '';\r\n\r\n let updatedInput = this.utilities.getUpdatedInput(button, this.input[this.options.inputName], this.options, this.caretPosition);\r\n\r\n if(this.input[this.options.inputName] !== updatedInput){\r\n\r\n /**\r\n * If maxLength and handleMaxLength yield true, halting\r\n */\r\n if(this.options.maxLength && this.utilities.handleMaxLength(this.input, this.options, updatedInput)){\r\n return false;\r\n }\r\n\r\n this.input[this.options.inputName] = updatedInput;\r\n\r\n if(debug)\r\n console.log('Input changed:', this.input);\r\n\r\n /**\r\n * Enforce syncInstanceInputs, if set\r\n */\r\n if(this.options.syncInstanceInputs)\r\n this.syncInstanceInputs(this.input);\r\n\r\n /**\r\n * Calling onChange\r\n */\r\n if(typeof this.options.onChange === \"function\")\r\n this.options.onChange(this.input[this.options.inputName]);\r\n }\r\n \r\n if(debug){\r\n console.log(\"Key pressed:\", button);\r\n }\r\n }\r\n\r\n /**\r\n * Send a command to all simple-keyboard instances (if you have several instances).\r\n */\r\n syncInstanceInputs = () => {\r\n this.dispatch((instance) => {\r\n instance.replaceInput(this.input);\r\n });\r\n }\r\n \r\n /**\r\n * Clear the keyboard’s input.\r\n * @param {string} [inputName] optional - the internal input to select\r\n */\r\n clearInput = (inputName) => {\r\n inputName = inputName || this.options.inputName;\r\n this.input[this.options.inputName] = '';\r\n\r\n /**\r\n * Enforce syncInstanceInputs, if set\r\n */\r\n if(this.options.syncInstanceInputs)\r\n this.syncInstanceInputs(this.input);\r\n }\r\n\r\n /**\r\n * Get the keyboard’s input (You can also get it from the onChange prop).\r\n * @param {string} [inputName] optional - the internal input to select\r\n */\r\n getInput = (inputName) => {\r\n inputName = inputName || this.options.inputName;\r\n\r\n /**\r\n * Enforce syncInstanceInputs, if set\r\n */\r\n if(this.options.syncInstanceInputs)\r\n this.syncInstanceInputs(this.input);\r\n\r\n return this.input[this.options.inputName];\r\n }\r\n\r\n /**\r\n * Set the keyboard’s input.\r\n * @param {string} input the input value\r\n * @param {string} inputName optional - the internal input to select\r\n */\r\n setInput = (input, inputName) => {\r\n inputName = inputName || this.options.inputName;\r\n this.input[inputName] = input;\r\n\r\n /**\r\n * Enforce syncInstanceInputs, if set\r\n */\r\n if(this.options.syncInstanceInputs)\r\n this.syncInstanceInputs(this.input);\r\n }\r\n \r\n /**\r\n * Replace the input object (`keyboard.input`)\r\n * @param {object} inputObj The input object\r\n */\r\n replaceInput = (inputObj) => {\r\n this.input = inputObj;\r\n }\r\n\r\n /**\r\n * Set new option or modify existing ones after initialization. \r\n * @param {object} option The option to set\r\n */\r\n setOptions = option => {\r\n option = option || {};\r\n this.options = Object.assign(this.options, option);\r\n this.render();\r\n }\r\n\r\n /**\r\n * Remove all keyboard rows and reset keyboard values.\r\n * Used interally between re-renders.\r\n */\r\n clear = () => {\r\n this.keyboardDOM.innerHTML = '';\r\n this.keyboardDOM.className = this.keyboardDOMClass;\r\n this.buttonElements = {};\r\n }\r\n\r\n /**\r\n * Send a command to all simple-keyboard instances at once (if you have multiple instances).\r\n * @param {function(instance: object, key: string)} callback Function to run on every instance\r\n */\r\n dispatch = (callback) => {\r\n if(!window['SimpleKeyboardInstances']){\r\n console.warn(`SimpleKeyboardInstances is not defined. Dispatch cannot be called.`);\r\n throw new Error(\"INSTANCES_VAR_ERROR\");\r\n }\r\n \r\n return Object.keys(window['SimpleKeyboardInstances']).forEach((key) => {\r\n callback(window['SimpleKeyboardInstances'][key], key);\r\n })\r\n }\r\n\r\n /**\r\n * Adds/Modifies an entry to the `buttonTheme`. Basically a way to add a class to a button.\r\n * @param {string} buttons List of buttons to select (separated by a space).\r\n * @param {string} className Classes to give to the selected buttons (separated by space).\r\n */\r\n addButtonTheme = (buttons, className) => {\r\n if(!className || !buttons)\r\n return false;\r\n\r\n buttons.split(\" \").forEach(button => {\r\n className.split(\" \").forEach(classNameItem => {\r\n if(!this.options.buttonTheme)\r\n this.options.buttonTheme = [];\r\n\r\n let classNameFound = false;\r\n \r\n /**\r\n * If class is already defined, we add button to class definition\r\n */\r\n this.options.buttonTheme.map(buttonTheme => {\r\n\r\n if(buttonTheme.class.split(\" \").includes(classNameItem)){\r\n classNameFound = true;\r\n \r\n let buttonThemeArray = buttonTheme.buttons.split(\" \");\r\n if(!buttonThemeArray.includes(button)){\r\n classNameFound = true;\r\n buttonThemeArray.push(button);\r\n buttonTheme.buttons = buttonThemeArray.join(\" \");\r\n }\r\n }\r\n return buttonTheme;\r\n });\r\n\r\n /**\r\n * If class is not defined, we create a new entry\r\n */\r\n if(!classNameFound){\r\n this.options.buttonTheme.push({\r\n class: classNameItem,\r\n buttons: buttons\r\n });\r\n }\r\n\r\n });\r\n });\r\n\r\n this.render();\r\n }\r\n\r\n /**\r\n * Removes/Amends an entry to the `buttonTheme`. Basically a way to remove a class previously added to a button through buttonTheme or addButtonTheme.\r\n * @param {string} buttons List of buttons to select (separated by a space).\r\n * @param {string} className Classes to give to the selected buttons (separated by space).\r\n */\r\n removeButtonTheme = (buttons, className) => {\r\n /**\r\n * When called with empty parameters, remove all button themes\r\n */\r\n if(!buttons && !className){\r\n this.options.buttonTheme = [];\r\n this.render();\r\n return false;\r\n }\r\n\r\n /**\r\n * If buttons are passed and buttonTheme has items\r\n */\r\n if(buttons && Array.isArray(this.options.buttonTheme) && this.options.buttonTheme.length){\r\n let buttonArray = buttons.split(\" \");\r\n buttonArray.forEach((button, key) => {\r\n this.options.buttonTheme.map((buttonTheme, index) => {\r\n\r\n /**\r\n * If className is set, we affect the buttons only for that class\r\n * Otherwise, we afect all classes\r\n */\r\n if(\r\n (className && className.includes(buttonTheme.class)) ||\r\n !className\r\n ){\r\n let filteredButtonArray = buttonTheme.buttons.split(\" \").filter(item => item !== button);\r\n\r\n /**\r\n * If buttons left, return them, otherwise, remove button Theme\r\n */\r\n if(filteredButtonArray.length){\r\n buttonTheme.buttons = filteredButtonArray.join(\" \");\r\n } else {\r\n this.options.buttonTheme.splice(index, 1);\r\n buttonTheme = null;\r\n }\r\n \r\n }\r\n\r\n return buttonTheme;\r\n });\r\n });\r\n\r\n this.render();\r\n }\r\n }\r\n\r\n /**\r\n * Get the DOM Element of a button. If there are several buttons with the same name, an array of the DOM Elements is returned.\r\n * @param {string} button The button layout name to select\r\n */\r\n getButtonElement = (button) => {\r\n let output;\r\n\r\n let buttonArr = this.buttonElements[button];\r\n if(buttonArr){\r\n if(buttonArr.length > 1){\r\n output = buttonArr;\r\n } else {\r\n output = buttonArr[0];\r\n }\r\n }\r\n\r\n return output;\r\n }\r\n\r\n /**\r\n * Retrieves the current cursor position within a input or textarea (if any)\r\n */\r\n handleCaret = () => {\r\n if(this.options.debug){\r\n console.log(\"Caret handling started\");\r\n }\r\n\r\n document.addEventListener(\"keyup\", this.caretEventHandler);\r\n document.addEventListener(\"mouseup\", this.caretEventHandler);\r\n document.addEventListener(\"touchend\", this.caretEventHandler);\r\n }\r\n\r\n /**\r\n * Called by {@link handleCaret} when an event that warrants a cursor position update is triggered\r\n */\r\n caretEventHandler = (event) => {\r\n let targetTagName = event.target.tagName.toLowerCase();\r\n\r\n if(\r\n targetTagName === \"textarea\" ||\r\n targetTagName === \"input\"\r\n ){\r\n /**\r\n * Tracks current cursor position\r\n * As keys are pressed, text will be added/removed at that position within the input.\r\n */\r\n this.caretPosition = event.target.selectionStart;\r\n\r\n if(this.options.debug){\r\n console.log('Caret at: ', event.target.selectionStart, event.target.tagName.toLowerCase());\r\n } \r\n }\r\n }\r\n\r\n /**\r\n * Executes the callback function once simple-keyboard is rendered for the first time (on initialization).\r\n */\r\n onInit = () => {\r\n if(this.options.debug){\r\n console.log(\"Initialized\");\r\n }\r\n\r\n /**\r\n * Caret handling\r\n */\r\n this.handleCaret();\r\n\r\n if(typeof this.options.onInit === \"function\")\r\n this.options.onInit();\r\n }\r\n\r\n /**\r\n * Executes the callback function every time simple-keyboard is rendered (e.g: when you change layouts).\r\n */\r\n onRender = () => {\r\n if(typeof this.options.onRender === \"function\")\r\n this.options.onRender();\r\n }\r\n\r\n /**\r\n * Renders rows and buttons as per options\r\n */\r\n render = () => {\r\n /**\r\n * Clear keyboard\r\n */\r\n this.clear();\r\n\r\n let layoutClass = this.options.layout ? \"hg-layout-custom\" : `hg-layout-${this.options.layoutName}`;\r\n let layout = this.options.layout || KeyboardLayout.getDefaultLayout();\r\n\r\n /**\r\n * Account for buttonTheme, if set\r\n */\r\n let buttonThemesParsed = {};\r\n if(Array.isArray(this.options.buttonTheme)){\r\n this.options.buttonTheme.forEach(themeObj => {\r\n if(themeObj.buttons && themeObj.class){\r\n let themeButtons;\r\n\r\n if(typeof themeObj.buttons === \"string\"){\r\n themeButtons = themeObj.buttons.split(' ');\r\n }\r\n\r\n if(themeButtons){\r\n themeButtons.forEach(themeButton => {\r\n let themeParsed = buttonThemesParsed[themeButton];\r\n\r\n // If the button has already been added\r\n if(themeParsed){\r\n // Making sure we don't add duplicate classes, even when buttonTheme has duplicates\r\n if(!this.utilities.countInArray(themeParsed.split(\" \"), themeObj.class)){\r\n buttonThemesParsed[themeButton] = `${themeParsed} ${themeObj.class}`;\r\n }\r\n } else {\r\n buttonThemesParsed[themeButton] = themeObj.class;\r\n }\r\n });\r\n }\r\n } else {\r\n console.warn(`buttonTheme row is missing the \"buttons\" or the \"class\". Please check the documentation.`)\r\n }\r\n });\r\n }\r\n\r\n /**\r\n * Adding themeClass, layoutClass to keyboardDOM\r\n */\r\n this.keyboardDOM.className += ` ${this.options.theme} ${layoutClass}`;\r\n\r\n /**\r\n * Iterating through each row\r\n */\r\n layout[this.options.layoutName].forEach((row, rIndex) => {\r\n let rowArray = row.split(' ');\r\n\r\n /**\r\n * Creating empty row\r\n */\r\n var rowDOM = document.createElement('div');\r\n rowDOM.className += \"hg-row\";\r\n\r\n /**\r\n * Iterating through each button in row\r\n */\r\n rowArray.forEach((button, bIndex) => {\r\n let fctBtnClass = this.utilities.getButtonClass(button);\r\n let buttonThemeClass = buttonThemesParsed[button];\r\n let buttonDisplayName = this.utilities.getButtonDisplayName(button, this.options.display, this.options.mergeDisplay);\r\n\r\n /**\r\n * Creating button\r\n */\r\n var buttonDOM = document.createElement('div');\r\n buttonDOM.className += `hg-button ${fctBtnClass}${buttonThemeClass ? \" \"+buttonThemeClass : \"\"}`;\r\n buttonDOM.onclick = () => this.handleButtonClicked(button);\r\n\r\n /**\r\n * Adding identifier\r\n */\r\n buttonDOM.setAttribute(\"data-skBtn\", button);\r\n\r\n /**\r\n * Adding unique id\r\n * Since there's no limit on spawning same buttons, the unique id ensures you can style every button\r\n */\r\n let buttonUID = `${this.options.layoutName}-r${rIndex}b${bIndex}`;\r\n buttonDOM.setAttribute(\"data-skBtnUID\", buttonUID);\r\n\r\n /**\r\n * Adding display label\r\n */\r\n buttonDOM.setAttribute(\"data-displayLabel\", buttonDisplayName);\r\n\r\n /**\r\n * Adding button label to button\r\n */\r\n var buttonSpanDOM = document.createElement('span');\r\n buttonSpanDOM.innerHTML = buttonDisplayName;\r\n buttonDOM.appendChild(buttonSpanDOM);\r\n\r\n /**\r\n * Adding to buttonElements\r\n */\r\n if(!this.buttonElements[button])\r\n this.buttonElements[button] = [];\r\n\r\n this.buttonElements[button].push(buttonDOM);\r\n\r\n /**\r\n * Appending button to row\r\n */\r\n rowDOM.appendChild(buttonDOM);\r\n\r\n });\r\n\r\n /**\r\n * Appending row to keyboard\r\n */\r\n this.keyboardDOM.appendChild(rowDOM);\r\n });\r\n\r\n /**\r\n * Calling onRender\r\n */\r\n this.onRender();\r\n\r\n if(!this.initialized){\r\n /**\r\n * Ensures that onInit is only called once per instantiation\r\n */\r\n this.initialized = true;\r\n\r\n /**\r\n * Calling onInit\r\n */\r\n this.onInit();\r\n }\r\n }\r\n}\r\n\r\nexport default SimpleKeyboard;\r\n", + "static": true, + "longname": "X:/Dev/simple-keyboard/src/lib/components/Keyboard.js", + "access": "public", + "description": null, + "lineNumber": 1 + }, + { + "__docId__": 59, + "kind": "class", + "name": "SimpleKeyboard", + "memberof": "src/lib/components/Keyboard.js", + "static": true, + "longname": "src/lib/components/Keyboard.js~SimpleKeyboard", + "access": "public", + "export": true, + "importPath": "simple-keyboard/src/lib/components/Keyboard.js", + "importStyle": "SimpleKeyboard", + "description": "Root class for simple-keyboard\nThis class:\n- Parses the options\n- Renders the rows and buttons\n- Handles button functionality", + "lineNumber": 15, + "interface": false + }, + { + "__docId__": 60, + "kind": "constructor", + "name": "constructor", + "memberof": "src/lib/components/Keyboard.js~SimpleKeyboard", + "generator": false, + "async": false, + "static": false, + "longname": "src/lib/components/Keyboard.js~SimpleKeyboard#constructor", + "access": "public", + "description": "Creates an instance of SimpleKeyboard", + "lineNumber": 20, + "params": [ + { + "nullable": null, + "types": [ + "Array" + ], + "spread": false, + "optional": false, + "name": "params", + "description": "If first parameter is a string, it is considered the container class. The second parameter is then considered the options object. If first parameter is an object, it is considered the options object." + } + ] + }, + { + "__docId__": 61, + "kind": "member", + "name": "utilities", + "memberof": "src/lib/components/Keyboard.js~SimpleKeyboard", + "static": false, + "longname": "src/lib/components/Keyboard.js~SimpleKeyboard#utilities", + "access": "public", + "description": "Initializing Utilities", + "lineNumber": 30, + "type": { + "types": [ + "*" + ] + } + }, + { + "__docId__": 62, + "kind": "member", + "name": "keyboardDOM", + "memberof": "src/lib/components/Keyboard.js~SimpleKeyboard", + "static": false, + "longname": "src/lib/components/Keyboard.js~SimpleKeyboard#keyboardDOM", + "access": "public", + "description": "Processing options", + "lineNumber": 35, + "type": { + "types": [ + "*" + ] + } + }, + { + "__docId__": 63, + "kind": "member", + "name": "options", + "memberof": "src/lib/components/Keyboard.js~SimpleKeyboard", + "static": false, + "longname": "src/lib/components/Keyboard.js~SimpleKeyboard#options", + "access": "public", + "description": "", + "lineNumber": 61, + "properties": [ + { + "nullable": null, + "types": [ + "object" + ], + "spread": false, + "optional": false, + "name": "layout", + "description": "Modify the keyboard layout." + }, + { + "nullable": null, + "types": [ + "string" + ], + "spread": false, + "optional": false, + "name": "layoutName", + "description": "Specifies which layout should be used." + }, + { + "nullable": null, + "types": [ + "object" + ], + "spread": false, + "optional": false, + "name": "display", + "description": "Replaces variable buttons (such as {bksp}) with a human-friendly name (e.g.: “backspace”)." + }, + { + "nullable": null, + "types": [ + "boolean" + ], + "spread": false, + "optional": false, + "name": "mergeDisplay", + "description": "By default, when you set the display property, you replace the default one. This setting merges them instead." + }, + { + "nullable": null, + "types": [ + "string" + ], + "spread": false, + "optional": false, + "name": "theme", + "description": "A prop to add your own css classes to the keyboard wrapper. You can add multiple classes separated by a space." + }, + { + "nullable": null, + "types": [ + "Array" + ], + "spread": false, + "optional": false, + "name": "buttonTheme", + "description": "A prop to add your own css classes to one or several buttons." + }, + { + "nullable": null, + "types": [ + "boolean" + ], + "spread": false, + "optional": false, + "name": "debug", + "description": "Runs a console.log every time a key is pressed. Displays the buttons pressed and the current input." + }, + { + "nullable": null, + "types": [ + "boolean" + ], + "spread": false, + "optional": false, + "name": "newLineOnEnter", + "description": "Specifies whether clicking the “ENTER” button will input a newline (\\n) or not." + }, + { + "nullable": null, + "types": [ + "boolean" + ], + "spread": false, + "optional": false, + "name": "tabCharOnTab", + "description": "Specifies whether clicking the “TAB” button will input a tab character (\\t) or not." + }, + { + "nullable": null, + "types": [ + "string" + ], + "spread": false, + "optional": false, + "name": "inputName", + "description": "Allows you to use a single simple-keyboard instance for several inputs." + }, + { + "nullable": null, + "types": [ + "number" + ], + "spread": false, + "optional": false, + "name": "maxLength", + "description": "Restrains all of simple-keyboard inputs to a certain length. This should be used in addition to the input element’s maxlengthattribute." + }, + { + "nullable": null, + "types": [ + "object" + ], + "spread": false, + "optional": false, + "name": "maxLength", + "description": "Restrains simple-keyboard’s individual inputs to a certain length. This should be used in addition to the input element’s maxlengthattribute." + }, + { + "nullable": null, + "types": [ + "boolean" + ], + "spread": false, + "optional": false, + "name": "syncInstanceInputs", + "description": "When set to true, this option synchronizes the internal input of every simple-keyboard instance." + }, + { + "nullable": null, + "types": [ + "boolean" + ], + "spread": false, + "optional": false, + "name": "physicalKeyboardHighlight", + "description": "Enable highlighting of keys pressed on physical keyboard." + }, + { + "nullable": null, + "types": [ + "string" + ], + "spread": false, + "optional": false, + "name": "physicalKeyboardHighlightTextColor", + "description": "Define the text color that the physical keyboard highlighted key should have." + }, + { + "nullable": null, + "types": [ + "string" + ], + "spread": false, + "optional": false, + "name": "physicalKeyboardHighlightBgColor", + "description": "Define the background color that the physical keyboard highlighted key should have." + }, + { + "nullable": null, + "types": [ + "function(button: string):string" + ], + "spread": false, + "optional": false, + "name": "onKeyPress", + "description": "Executes the callback function on key press. Returns button layout name (i.e.: “{shift}”)." + }, + { + "nullable": null, + "types": [ + "function(input: string):string" + ], + "spread": false, + "optional": false, + "name": "onChange", + "description": "Executes the callback function on input change. Returns the current input’s string." + }, + { + "nullable": null, + "types": [ + "function" + ], + "spread": false, + "optional": false, + "name": "onRender", + "description": "Executes the callback function every time simple-keyboard is rendered (e.g: when you change layouts)." + }, + { + "nullable": null, + "types": [ + "function" + ], + "spread": false, + "optional": false, + "name": "onInit", + "description": "Executes the callback function once simple-keyboard is rendered for the first time (on initialization)." + }, + { + "nullable": null, + "types": [ + "function(inputs: object):object" + ], + "spread": false, + "optional": false, + "name": "onChangeAll", + "description": "Executes the callback function on input change. Returns the input object with all defined inputs." + } + ], + "type": { + "nullable": null, + "types": [ + "object" + ], + "spread": false, + "description": null + } + }, + { + "__docId__": 64, + "kind": "member", + "name": "input", + "memberof": "src/lib/components/Keyboard.js~SimpleKeyboard", + "static": false, + "longname": "src/lib/components/Keyboard.js~SimpleKeyboard#input", + "access": "public", + "description": "simple-keyboard uses a non-persistent internal input to keep track of the entered string (the variable `keyboard.input`).\nThis removes any dependency to input DOM elements. You can type and directly display the value in a div element, for example.", + "examples": [ + "// To get entered input\nlet input = keyboard.getInput();\n\n// To clear entered input.\nkeyboard.clearInput();" + ], + "lineNumber": 80, + "properties": [ + { + "nullable": null, + "types": [ + "object" + ], + "spread": false, + "optional": false, + "name": "default", + "description": "Default SimpleKeyboard internal input." + }, + { + "nullable": null, + "types": [ + "object" + ], + "spread": false, + "optional": false, + "name": "myInputName", + "description": "Example input that can be set through `options.inputName:\"myInputName\"`." + } + ], + "type": { + "nullable": null, + "types": [ + "object" + ], + "spread": false, + "description": null + } + }, + { + "__docId__": 65, + "kind": "member", + "name": "keyboardDOMClass", + "memberof": "src/lib/components/Keyboard.js~SimpleKeyboard", + "static": false, + "longname": "src/lib/components/Keyboard.js~SimpleKeyboard#keyboardDOMClass", + "access": "public", + "description": "", + "lineNumber": 86, + "type": { + "nullable": null, + "types": [ + "string" + ], + "spread": false, + "description": null + } + }, + { + "__docId__": 66, + "kind": "member", + "name": "buttonElements", + "memberof": "src/lib/components/Keyboard.js~SimpleKeyboard", + "static": false, + "longname": "src/lib/components/Keyboard.js~SimpleKeyboard#buttonElements", + "access": "public", + "description": "", + "lineNumber": 91, + "type": { + "nullable": null, + "types": [ + "object" + ], + "spread": false, + "description": null + } + }, + { + "__docId__": 67, + "kind": "member", + "name": "physicalKeyboardInterface", + "memberof": "src/lib/components/Keyboard.js~SimpleKeyboard", + "static": false, + "longname": "src/lib/components/Keyboard.js~SimpleKeyboard#physicalKeyboardInterface", + "access": "public", + "description": "Physical Keyboard support", + "lineNumber": 115, + "type": { + "types": [ + "*" + ] + } + }, + { + "__docId__": 68, + "kind": "member", + "name": "handleButtonClicked", + "memberof": "src/lib/components/Keyboard.js~SimpleKeyboard", + "static": false, + "longname": "src/lib/components/Keyboard.js~SimpleKeyboard#handleButtonClicked", + "access": "public", + "description": "Handles clicks made to keyboard buttons", + "lineNumber": 121, + "params": [ + { + "nullable": null, + "types": [ + "string" + ], + "spread": false, + "optional": false, + "name": "button", + "description": "The button's layout name." + } + ], + "type": { + "types": [ + "*" + ] + } + }, + { + "__docId__": 69, + "kind": "member", + "name": "syncInstanceInputs", + "memberof": "src/lib/components/Keyboard.js~SimpleKeyboard", + "static": false, + "longname": "src/lib/components/Keyboard.js~SimpleKeyboard#syncInstanceInputs", + "access": "public", + "description": "Send a command to all simple-keyboard instances (if you have several instances).", + "lineNumber": 176, + "type": { + "types": [ + "*" + ] + } + }, + { + "__docId__": 70, + "kind": "member", + "name": "clearInput", + "memberof": "src/lib/components/Keyboard.js~SimpleKeyboard", + "static": false, + "longname": "src/lib/components/Keyboard.js~SimpleKeyboard#clearInput", + "access": "public", + "description": "Clear the keyboard’s input.", + "lineNumber": 186, + "params": [ + { + "nullable": null, + "types": [ + "string" + ], + "spread": false, + "optional": true, + "name": "inputName", + "description": "optional - the internal input to select" + } + ], + "type": { + "types": [ + "*" + ] + } + }, + { + "__docId__": 71, + "kind": "member", + "name": "getInput", + "memberof": "src/lib/components/Keyboard.js~SimpleKeyboard", + "static": false, + "longname": "src/lib/components/Keyboard.js~SimpleKeyboard#getInput", + "access": "public", + "description": "Get the keyboard’s input (You can also get it from the onChange prop).", + "lineNumber": 201, + "params": [ + { + "nullable": null, + "types": [ + "string" + ], + "spread": false, + "optional": true, + "name": "inputName", + "description": "optional - the internal input to select" + } + ], + "type": { + "types": [ + "*" + ] + } + }, + { + "__docId__": 72, + "kind": "member", + "name": "setInput", + "memberof": "src/lib/components/Keyboard.js~SimpleKeyboard", + "static": false, + "longname": "src/lib/components/Keyboard.js~SimpleKeyboard#setInput", + "access": "public", + "description": "Set the keyboard’s input.", + "lineNumber": 218, + "params": [ + { + "nullable": null, + "types": [ + "string" + ], + "spread": false, + "optional": false, + "name": "input", + "description": "the input value" + }, + { + "nullable": null, + "types": [ + "string" + ], + "spread": false, + "optional": false, + "name": "inputName", + "description": "optional - the internal input to select" + } + ], + "type": { + "types": [ + "*" + ] + } + }, + { + "__docId__": 73, + "kind": "member", + "name": "replaceInput", + "memberof": "src/lib/components/Keyboard.js~SimpleKeyboard", + "static": false, + "longname": "src/lib/components/Keyboard.js~SimpleKeyboard#replaceInput", + "access": "public", + "description": "Replace the input object (`keyboard.input`)", + "lineNumber": 233, + "params": [ + { + "nullable": null, + "types": [ + "object" + ], + "spread": false, + "optional": false, + "name": "inputObj", + "description": "The input object" + } + ], + "type": { + "types": [ + "*" + ] + } + }, + { + "__docId__": 75, + "kind": "member", + "name": "setOptions", + "memberof": "src/lib/components/Keyboard.js~SimpleKeyboard", + "static": false, + "longname": "src/lib/components/Keyboard.js~SimpleKeyboard#setOptions", + "access": "public", + "description": "Set new option or modify existing ones after initialization. ", + "lineNumber": 241, + "params": [ + { + "nullable": null, + "types": [ + "object" + ], + "spread": false, + "optional": false, + "name": "option", + "description": "The option to set" + } + ], + "type": { + "types": [ + "*" + ] + } + }, + { + "__docId__": 77, + "kind": "member", + "name": "clear", + "memberof": "src/lib/components/Keyboard.js~SimpleKeyboard", + "static": false, + "longname": "src/lib/components/Keyboard.js~SimpleKeyboard#clear", + "access": "public", + "description": "Remove all keyboard rows and reset keyboard values.\nUsed interally between re-renders.", + "lineNumber": 251, + "type": { + "types": [ + "*" + ] + } + }, + { + "__docId__": 79, + "kind": "member", + "name": "dispatch", + "memberof": "src/lib/components/Keyboard.js~SimpleKeyboard", + "static": false, + "longname": "src/lib/components/Keyboard.js~SimpleKeyboard#dispatch", + "access": "public", + "description": "Send a command to all simple-keyboard instances at once (if you have multiple instances).", + "lineNumber": 261, + "params": [ + { + "nullable": null, + "types": [ + "function(instance: object, key: string)" + ], + "spread": false, + "optional": false, + "name": "callback", + "description": "Function to run on every instance" + } + ], + "type": { + "types": [ + "*" + ] + } + }, + { + "__docId__": 80, + "kind": "member", + "name": "addButtonTheme", + "memberof": "src/lib/components/Keyboard.js~SimpleKeyboard", + "static": false, + "longname": "src/lib/components/Keyboard.js~SimpleKeyboard#addButtonTheme", + "access": "public", + "description": "Adds/Modifies an entry to the `buttonTheme`. Basically a way to add a class to a button.", + "lineNumber": 277, + "params": [ + { + "nullable": null, + "types": [ + "string" + ], + "spread": false, + "optional": false, + "name": "buttons", + "description": "List of buttons to select (separated by a space)." + }, + { + "nullable": null, + "types": [ + "string" + ], + "spread": false, + "optional": false, + "name": "className", + "description": "Classes to give to the selected buttons (separated by space)." + } + ], + "type": { + "types": [ + "*" + ] + } + }, + { + "__docId__": 81, + "kind": "member", + "name": "removeButtonTheme", + "memberof": "src/lib/components/Keyboard.js~SimpleKeyboard", + "static": false, + "longname": "src/lib/components/Keyboard.js~SimpleKeyboard#removeButtonTheme", + "access": "public", + "description": "Removes/Amends an entry to the `buttonTheme`. Basically a way to remove a class previously added to a button through buttonTheme or addButtonTheme.", + "lineNumber": 327, + "params": [ + { + "nullable": null, + "types": [ + "string" + ], + "spread": false, + "optional": false, + "name": "buttons", + "description": "List of buttons to select (separated by a space)." + }, + { + "nullable": null, + "types": [ + "string" + ], + "spread": false, + "optional": false, + "name": "className", + "description": "Classes to give to the selected buttons (separated by space)." + } + ], + "type": { + "types": [ + "*" + ] + } + }, + { + "__docId__": 82, + "kind": "member", + "name": "getButtonElement", + "memberof": "src/lib/components/Keyboard.js~SimpleKeyboard", + "static": false, + "longname": "src/lib/components/Keyboard.js~SimpleKeyboard#getButtonElement", + "access": "public", + "description": "Get the DOM Element of a button. If there are several buttons with the same name, an array of the DOM Elements is returned.", + "lineNumber": 379, + "params": [ + { + "nullable": null, + "types": [ + "string" + ], + "spread": false, + "optional": false, + "name": "button", + "description": "The button layout name to select" + } + ], + "type": { + "types": [ + "*" + ] + } + }, + { + "__docId__": 83, + "kind": "member", + "name": "handleCaret", + "memberof": "src/lib/components/Keyboard.js~SimpleKeyboard", + "static": false, + "longname": "src/lib/components/Keyboard.js~SimpleKeyboard#handleCaret", + "access": "public", + "description": "Retrieves the current cursor position within a input or textarea (if any)", + "lineNumber": 397, + "type": { + "types": [ + "*" + ] + } + }, + { + "__docId__": 84, + "kind": "member", + "name": "caretEventHandler", + "memberof": "src/lib/components/Keyboard.js~SimpleKeyboard", + "static": false, + "longname": "src/lib/components/Keyboard.js~SimpleKeyboard#caretEventHandler", + "access": "public", + "description": "Called by {@link handleCaret} when an event that warrants a cursor position update is triggered", + "lineNumber": 410, + "type": { + "types": [ + "*" + ] + } + }, + { + "__docId__": 85, + "kind": "member", + "name": "caretPosition", + "memberof": "src/lib/components/Keyboard.js~SimpleKeyboard", + "longname": "src/lib/components/Keyboard.js~SimpleKeyboard#caretPosition", + "access": "public", + "description": "Tracks current cursor position\nAs keys are pressed, text will be added/removed at that position within the input.", + "lineNumber": 421, + "type": { + "types": [ + "*" + ] + } + }, + { + "__docId__": 86, + "kind": "member", + "name": "onInit", + "memberof": "src/lib/components/Keyboard.js~SimpleKeyboard", + "static": false, + "longname": "src/lib/components/Keyboard.js~SimpleKeyboard#onInit", + "access": "public", + "description": "Executes the callback function once simple-keyboard is rendered for the first time (on initialization).", + "lineNumber": 432, + "type": { + "types": [ + "*" + ] + } + }, + { + "__docId__": 87, + "kind": "member", + "name": "onRender", + "memberof": "src/lib/components/Keyboard.js~SimpleKeyboard", + "static": false, + "longname": "src/lib/components/Keyboard.js~SimpleKeyboard#onRender", + "access": "public", + "description": "Executes the callback function every time simple-keyboard is rendered (e.g: when you change layouts).", + "lineNumber": 449, + "type": { + "types": [ + "*" + ] + } + }, + { + "__docId__": 88, + "kind": "member", + "name": "render", + "memberof": "src/lib/components/Keyboard.js~SimpleKeyboard", + "static": false, + "longname": "src/lib/components/Keyboard.js~SimpleKeyboard#render", + "access": "public", + "description": "Renders rows and buttons as per options", + "lineNumber": 457, + "type": { + "types": [ + "*" + ] + } + }, + { + "__docId__": 89, + "kind": "member", + "name": "initialized", + "memberof": "src/lib/components/Keyboard.js~SimpleKeyboard", + "longname": "src/lib/components/Keyboard.js~SimpleKeyboard#initialized", + "access": "public", + "description": "Ensures that onInit is only called once per instantiation", + "lineNumber": 586, + "type": { + "types": [ + "boolean" + ] + } + }, + { + "__docId__": 90, + "kind": "file", + "name": "src/lib/index.js", + "content": "import SimpleKeyboard from './components/Keyboard';\r\nexport default SimpleKeyboard;\r\n", + "static": true, + "longname": "X:/Dev/simple-keyboard/src/lib/index.js", + "access": "public", + "description": null, + "lineNumber": 1 + }, + { + "__docId__": 91, + "kind": "file", + "name": "src/lib/services/KeyboardLayout.js", + "content": "/**\r\n * Keyboard Layout Service\r\n */\r\nclass KeyboardLayout {\r\n\r\n /**\r\n * Get default simple-keyboard layout\r\n * @return {object} The default layout (US-QWERTY)\r\n */\r\n static getDefaultLayout = () => {\r\n return {\r\n 'default': [\r\n '` 1 2 3 4 5 6 7 8 9 0 - = {bksp}',\r\n '{tab} q w e r t y u i o p [ ] \\\\',\r\n '{lock} a s d f g h j k l ; \\' {enter}',\r\n '{shift} z x c v b n m , . / {shift}',\r\n '.com @ {space}'\r\n ],\r\n 'shift': [\r\n '~ ! @ # $ % ^ & * ( ) _ + {bksp}',\r\n '{tab} Q W E R T Y U I O P { } |',\r\n '{lock} A S D F G H J K L : \" {enter}',\r\n '{shift} Z X C V B N M < > ? {shift}',\r\n '.com @ {space}'\r\n ]\r\n } \r\n }\r\n}\r\n\r\nexport default KeyboardLayout;", + "static": true, + "longname": "X:/Dev/simple-keyboard/src/lib/services/KeyboardLayout.js", + "access": "public", + "description": null, + "lineNumber": 1 + }, + { + "__docId__": 92, + "kind": "class", + "name": "KeyboardLayout", + "memberof": "src/lib/services/KeyboardLayout.js", + "static": true, + "longname": "src/lib/services/KeyboardLayout.js~KeyboardLayout", + "access": "public", + "export": true, + "importPath": "simple-keyboard/src/lib/services/KeyboardLayout.js", + "importStyle": "KeyboardLayout", + "description": "Keyboard Layout Service", + "lineNumber": 4, + "interface": false + }, + { + "__docId__": 93, + "kind": "member", + "name": "getDefaultLayout", + "memberof": "src/lib/services/KeyboardLayout.js~KeyboardLayout", + "static": true, + "longname": "src/lib/services/KeyboardLayout.js~KeyboardLayout.getDefaultLayout", + "access": "public", + "description": "Get default simple-keyboard layout", + "lineNumber": 10, + "return": { + "nullable": null, + "types": [ + "object" + ], + "spread": false, + "description": "The default layout (US-QWERTY)" + }, + "type": { + "types": [ + "*" + ] + } + }, + { + "__docId__": 94, + "kind": "file", + "name": "src/lib/services/PhysicalKeyboard.js", + "content": "/**\r\n * Physical Keyboard Service\r\n */\r\nclass PhysicalKeyboard {\r\n /**\r\n * Creates an instance of the PhysicalKeyboard service\r\n */\r\n constructor(simpleKeyboardInstance){\r\n /**\r\n * @type {object} A simple-keyboard instance\r\n */\r\n this.simpleKeyboardInstance = simpleKeyboardInstance;\r\n\r\n this.initKeyboardListener();\r\n }\r\n\r\n /**\r\n * Initializes key event listeners\r\n */\r\n initKeyboardListener = () => {\r\n // Adding button style on keydown\r\n document.addEventListener(\"keydown\", (event) => {\r\n if(this.simpleKeyboardInstance.options.physicalKeyboardHighlight){\r\n let buttonPressed = this.getSimpleKeyboardLayoutKey(event);\r\n\r\n this.simpleKeyboardInstance.dispatch(instance => {\r\n let buttonDOM = instance.getButtonElement(buttonPressed) || instance.getButtonElement(`{${buttonPressed}}`);\r\n\r\n if(buttonDOM){\r\n buttonDOM.style.backgroundColor = this.simpleKeyboardInstance.options.physicalKeyboardHighlightBgColor || \"#9ab4d0\";\r\n buttonDOM.style.color = this.simpleKeyboardInstance.options.physicalKeyboardHighlightTextColor || \"white\";\r\n }\r\n });\r\n }\r\n });\r\n\r\n // Removing button style on keyup\r\n document.addEventListener(\"keyup\", (event) => {\r\n if(this.simpleKeyboardInstance.options.physicalKeyboardHighlight){\r\n let buttonPressed = this.getSimpleKeyboardLayoutKey(event);\r\n\r\n this.simpleKeyboardInstance.dispatch(instance => {\r\n let buttonDOM = instance.getButtonElement(buttonPressed) || instance.getButtonElement(`{${buttonPressed}}`);\r\n\r\n if(buttonDOM){\r\n buttonDOM.removeAttribute(\"style\");\r\n }\r\n });\r\n }\r\n });\r\n }\r\n\r\n /**\r\n * Transforms a KeyboardEvent's \"key.code\" string into a simple-keyboard layout format\r\n * @param {object} event The KeyboardEvent\r\n */\r\n getSimpleKeyboardLayoutKey = (event) => {\r\n if(this.simpleKeyboardInstance.options.debug){\r\n console.log(event);\r\n }\r\n \r\n let output;\r\n\r\n if(\r\n event.code.includes(\"Numpad\") ||\r\n event.code.includes(\"Shift\") ||\r\n event.code.includes(\"Space\") ||\r\n event.code.includes(\"Backspace\") ||\r\n event.code.includes(\"Control\") ||\r\n event.code.includes(\"Alt\") ||\r\n event.code.includes(\"Meta\")\r\n ){\r\n output = event.code;\r\n } else {\r\n output = event.key;\r\n }\r\n\r\n /**\r\n * If button is not uppercase, casting to lowercase\r\n */\r\n if (\r\n output !== output.toUpperCase() ||\r\n (event.code[0] === \"F\" && Number.isInteger(Number(event.code[1])) && event.code.length <= 3)\r\n ) {\r\n output = output.toLowerCase();\r\n }\r\n\r\n return output;\r\n }\r\n}\r\n\r\nexport default PhysicalKeyboard;", + "static": true, + "longname": "X:/Dev/simple-keyboard/src/lib/services/PhysicalKeyboard.js", + "access": "public", + "description": null, + "lineNumber": 1 + }, + { + "__docId__": 95, + "kind": "class", + "name": "PhysicalKeyboard", + "memberof": "src/lib/services/PhysicalKeyboard.js", + "static": true, + "longname": "src/lib/services/PhysicalKeyboard.js~PhysicalKeyboard", + "access": "public", + "export": true, + "importPath": "simple-keyboard/src/lib/services/PhysicalKeyboard.js", + "importStyle": "PhysicalKeyboard", + "description": "Physical Keyboard Service", + "lineNumber": 4, + "interface": false + }, + { + "__docId__": 96, + "kind": "constructor", + "name": "constructor", + "memberof": "src/lib/services/PhysicalKeyboard.js~PhysicalKeyboard", + "generator": false, + "async": false, + "static": false, + "longname": "src/lib/services/PhysicalKeyboard.js~PhysicalKeyboard#constructor", + "access": "public", + "description": "Creates an instance of the PhysicalKeyboard service", + "lineNumber": 8 + }, + { + "__docId__": 97, + "kind": "member", + "name": "simpleKeyboardInstance", + "memberof": "src/lib/services/PhysicalKeyboard.js~PhysicalKeyboard", + "static": false, + "longname": "src/lib/services/PhysicalKeyboard.js~PhysicalKeyboard#simpleKeyboardInstance", + "access": "public", + "description": "", + "lineNumber": 12, + "type": { + "nullable": null, + "types": [ + "object" + ], + "spread": false, + "description": null + } + }, + { + "__docId__": 98, + "kind": "member", + "name": "initKeyboardListener", + "memberof": "src/lib/services/PhysicalKeyboard.js~PhysicalKeyboard", + "static": false, + "longname": "src/lib/services/PhysicalKeyboard.js~PhysicalKeyboard#initKeyboardListener", + "access": "public", + "description": "Initializes key event listeners", + "lineNumber": 20, + "type": { + "types": [ + "*" + ] + } + }, + { + "__docId__": 99, + "kind": "member", + "name": "getSimpleKeyboardLayoutKey", + "memberof": "src/lib/services/PhysicalKeyboard.js~PhysicalKeyboard", + "static": false, + "longname": "src/lib/services/PhysicalKeyboard.js~PhysicalKeyboard#getSimpleKeyboardLayoutKey", + "access": "public", + "description": "Transforms a KeyboardEvent's \"key.code\" string into a simple-keyboard layout format", + "lineNumber": 57, + "params": [ + { + "nullable": null, + "types": [ + "object" + ], + "spread": false, + "optional": false, + "name": "event", + "description": "The KeyboardEvent" + } + ], + "type": { + "types": [ + "*" + ] + } + }, + { + "__docId__": 100, + "kind": "file", + "name": "src/lib/services/Utilities.js", + "content": "/**\r\n * Utility Service\r\n */\r\nclass Utilities {\r\n /**\r\n * Creates an instance of the Utility service\r\n */\r\n constructor(simpleKeyboardInstance){\r\n /**\r\n * @type {object} A simple-keyboard instance\r\n */\r\n this.simpleKeyboardInstance = simpleKeyboardInstance;\r\n }\r\n\r\n /**\r\n * Adds default classes to a given button\r\n * \r\n * @param {string} button The button's layout name\r\n * @return {string} The classes to be added to the button\r\n */\r\n getButtonClass = button => {\r\n let buttonTypeClass = (button.includes(\"{\") && button.includes(\"}\") && button !== '{//}') ? \"functionBtn\" : \"standardBtn\";\r\n let buttonWithoutBraces = button.replace(\"{\", \"\").replace(\"}\", \"\");\r\n let buttonNormalized = '';\r\n\r\n if(buttonTypeClass !== \"standardBtn\")\r\n buttonNormalized = ` hg-button-${buttonWithoutBraces}`;\r\n\r\n return `hg-${buttonTypeClass}${buttonNormalized}`;\r\n }\r\n\r\n /**\r\n * Default button display labels\r\n */\r\n getDefaultDiplay(){\r\n return {\r\n '{bksp}': 'backspace',\r\n '{backspace}': 'backspace',\r\n '{enter}': '< enter',\r\n '{shift}': 'shift',\r\n '{shiftleft}': 'shift',\r\n '{shiftright}': 'shift',\r\n '{alt}': 'alt',\r\n '{s}': 'shift',\r\n '{tab}': 'tab',\r\n '{lock}': 'caps',\r\n '{capslock}': 'caps',\r\n '{accept}': 'Submit',\r\n '{space}': ' ',\r\n '{//}': ' ',\r\n \"{esc}\": \"esc\",\r\n \"{escape}\": \"esc\",\r\n \"{f1}\": \"f1\",\r\n \"{f2}\": \"f2\",\r\n \"{f3}\": \"f3\",\r\n \"{f4}\": \"f4\",\r\n \"{f5}\": \"f5\",\r\n \"{f6}\": \"f6\",\r\n \"{f7}\": \"f7\",\r\n \"{f8}\": \"f8\",\r\n \"{f9}\": \"f9\",\r\n \"{f10}\": \"f10\",\r\n \"{f11}\": \"f11\",\r\n \"{f12}\": \"f12\",\r\n '{numpaddivide}': '/',\r\n '{numlock}': 'lock',\r\n \"{arrowup}\": \"↑\",\r\n \"{arrowleft}\": \"←\",\r\n \"{arrowdown}\": \"↓\",\r\n \"{arrowright}\": \"→\",\r\n \"{prtscr}\": \"print\",\r\n \"{scrolllock}\": \"scroll\",\r\n \"{pause}\": \"pause\",\r\n \"{insert}\": \"ins\",\r\n \"{home}\": \"home\",\r\n \"{pageup}\": \"up\",\r\n \"{delete}\": \"del\",\r\n \"{end}\": \"end\",\r\n \"{pagedown}\": \"down\",\r\n \"{numpadmultiply}\": \"*\",\r\n \"{numpadsubtract}\": \"-\",\r\n \"{numpadadd}\": \"+\",\r\n \"{numpadenter}\": \"enter\",\r\n \"{period}\": \".\",\r\n \"{numpaddecimal}\": \".\",\r\n \"{numpad0}\": \"0\",\r\n \"{numpad1}\": \"1\",\r\n \"{numpad2}\": \"2\",\r\n \"{numpad3}\": \"3\",\r\n \"{numpad4}\": \"4\",\r\n \"{numpad5}\": \"5\",\r\n \"{numpad6}\": \"6\",\r\n \"{numpad7}\": \"7\",\r\n \"{numpad8}\": \"8\",\r\n \"{numpad9}\": \"9\",\r\n };\r\n }\r\n /**\r\n * Returns the display (label) name for a given button\r\n * \r\n * @param {string} button The button's layout name\r\n * @param {object} display The provided display option\r\n * @param {boolean} mergeDisplay Whether the provided param value should be merged with the default one.\r\n */\r\n getButtonDisplayName = (button, display, mergeDisplay) => {\r\n if(mergeDisplay){\r\n display = Object.assign({}, this.getDefaultDiplay(), display);\r\n } else {\r\n display = display || this.getDefaultDiplay();\r\n }\r\n\r\n return display[button] || button;\r\n }\r\n\r\n \r\n /**\r\n * Returns the updated input resulting from clicking a given button\r\n * \r\n * @param {string} button The button's layout name\r\n * @param {string} input The input string\r\n * @param {object} options The simple-keyboard options object\r\n * @param {number} caretPos The cursor's current position\r\n */\r\n getUpdatedInput = (button, input, options, caretPos) => {\r\n \r\n let output = input;\r\n\r\n if((button === \"{bksp}\" || button === \"{backspace}\") && output.length > 0){\r\n output = this.removeAt(output, caretPos);\r\n\r\n } else if(button === \"{space}\")\r\n output = this.addStringAt(output, \" \", caretPos);\r\n\r\n else if(button === \"{tab}\" && !(typeof options.tabCharOnTab === \"boolean\" && options.tabCharOnTab === false)){\r\n output = this.addStringAt(output, \"\\t\", caretPos);\r\n\r\n } else if((button === \"{enter}\" || button === \"{numpadenter}\") && options.newLineOnEnter)\r\n output = this.addStringAt(output, \"\\n\", caretPos);\r\n\r\n else if(button.includes(\"numpad\") && Number.isInteger(Number(button[button.length - 2]))){\r\n output = this.addStringAt(output, button[button.length - 2], caretPos);\r\n }\r\n else if(button === \"{numpaddivide}\")\r\n output = this.addStringAt(output, '/', caretPos);\r\n\r\n else if(button === \"{numpadmultiply}\")\r\n output = this.addStringAt(output, '*', caretPos);\r\n else if(button === \"{numpadsubtract}\")\r\n output = this.addStringAt(output, '-', caretPos);\r\n\r\n else if(button === \"{numpadadd}\")\r\n output = this.addStringAt(output, '+', caretPos);\r\n\r\n else if(button === \"{numpaddecimal}\")\r\n output = this.addStringAt(output, '.', caretPos);\r\n\r\n else if(button === \"{\" || button === \"}\")\r\n output = this.addStringAt(output, button, caretPos);\r\n\r\n else if(!button.includes(\"{\") && !button.includes(\"}\"))\r\n output = this.addStringAt(output, button, caretPos);\r\n\r\n return output;\r\n }\r\n /**\r\n * Moves the cursor position by a given amount\r\n * \r\n * @param {number} length Represents by how many characters the input should be moved\r\n * @param {boolean} minus Whether the cursor should be moved to the left or not.\r\n */\r\n updateCaretPos = (length, minus) => {\r\n if(minus){\r\n if(this.simpleKeyboardInstance.caretPosition > 0)\r\n this.simpleKeyboardInstance.caretPosition = this.simpleKeyboardInstance.caretPosition - length\r\n } else {\r\n this.simpleKeyboardInstance.caretPosition = this.simpleKeyboardInstance.caretPosition + length;\r\n }\r\n }\r\n\r\n /**\r\n * Adds a string to the input at a given position\r\n * \r\n * @param {string} source The source input\r\n * @param {string} string The string to add\r\n * @param {number} position The (cursor) position where the string should be added\r\n */\r\n addStringAt(source, string, position){\r\n let output;\r\n\r\n if(this.simpleKeyboardInstance.options.debug){\r\n console.log(\"Caret at:\", position);\r\n }\r\n\r\n if(!position && position !== 0){\r\n output = source + string;\r\n } else {\r\n output = [source.slice(0, position), string, source.slice(position)].join('');\r\n\r\n /**\r\n * Avoid caret position change when maxLength is set\r\n */\r\n if(!this.isMaxLengthReached()){\r\n this.updateCaretPos(string.length);\r\n }\r\n\r\n }\r\n\r\n return output;\r\n }\r\n\r\n /**\r\n * Removes an amount of characters at a given position\r\n * \r\n * @param {string} source The source input\r\n * @param {number} position The (cursor) position from where the characters should be removed\r\n */\r\n removeAt(source, position){\r\n if(this.simpleKeyboardInstance.caretPosition === 0){\r\n return source;\r\n }\r\n\r\n let output;\r\n let prevTwoChars;\r\n let emojiMatched;\r\n let emojiMatchedReg = /([\\uD800-\\uDBFF][\\uDC00-\\uDFFF])/g;\r\n\r\n /**\r\n * Emojis are made out of two characters, so we must take a custom approach to trim them.\r\n * For more info: https://mathiasbynens.be/notes/javascript-unicode\r\n */\r\n if(position && position >= 0){\r\n prevTwoChars = source.substring(position - 2, position)\r\n emojiMatched = prevTwoChars.match(emojiMatchedReg);\r\n\r\n if(emojiMatched){\r\n output = source.substr(0, (position - 2)) + source.substr(position);\r\n this.updateCaretPos(2, true);\r\n } else {\r\n output = source.substr(0, (position - 1)) + source.substr(position);\r\n this.updateCaretPos(1, true);\r\n }\r\n } else {\r\n prevTwoChars = source.slice(-2);\r\n emojiMatched = prevTwoChars.match(emojiMatchedReg);\r\n\r\n if(emojiMatched){\r\n output = source.slice(0, -2);\r\n this.updateCaretPos(2, true);\r\n } else {\r\n output = source.slice(0, -1);\r\n this.updateCaretPos(1, true);\r\n }\r\n }\r\n\r\n return output;\r\n }\r\n /**\r\n * Determines whether the maxLength has been reached. This function is called when the maxLength option it set.\r\n * \r\n * @param {object} inputObj\r\n * @param {object} options\r\n * @param {string} updatedInput\r\n */\r\n handleMaxLength(inputObj, options, updatedInput){\r\n let maxLength = options.maxLength;\r\n let currentInput = inputObj[options.inputName];\r\n let condition = currentInput.length === maxLength;\r\n\r\n\r\n if(\r\n /**\r\n * If pressing this button won't add more characters\r\n * We exit out of this limiter function\r\n */\r\n updatedInput.length <= currentInput.length\r\n ){\r\n return false;\r\n }\r\n\r\n if(Number.isInteger(maxLength)){\r\n if(options.debug){\r\n console.log(\"maxLength (num) reached:\", condition);\r\n }\r\n\r\n if(condition){\r\n /**\r\n * @type {boolean} Boolean value that shows whether maxLength has been reached\r\n */\r\n this.maxLengthReached = true;\r\n return true;\r\n } else {\r\n this.maxLengthReached = false;\r\n return false;\r\n }\r\n }\r\n\r\n if(typeof maxLength === \"object\"){\r\n let condition = currentInput.length === maxLength[options.inputName];\r\n\r\n if(options.debug){\r\n console.log(\"maxLength (obj) reached:\", condition);\r\n }\r\n\r\n if(condition){\r\n this.maxLengthReached = true;\r\n return true;\r\n } else {\r\n this.maxLengthReached = false;\r\n return false;\r\n }\r\n }\r\n }\r\n\r\n /**\r\n * Gets the current value of maxLengthReached\r\n */\r\n isMaxLengthReached = () => {\r\n return Boolean(this.maxLengthReached);\r\n }\r\n\r\n /**\r\n * Transforms an arbitrary string to camelCase\r\n * \r\n * @param {string} string The string to transform.\r\n */\r\n camelCase = (string) => {\r\n return string.toLowerCase().trim().split(/[.\\-_\\s]/g).reduce((string, word) => string + word[0].toUpperCase() + word.slice(1));\r\n };\r\n\r\n /**\r\n * Counts the number of duplicates in a given array\r\n * \r\n * @param {Array} array The haystack to search in\r\n * @param {string} value The needle to search for\r\n */\r\n countInArray = (array, value) => {\r\n return array.reduce((n, x) => n + (x === value), 0);\r\n }\r\n\r\n}\r\n\r\nexport default Utilities;", + "static": true, + "longname": "X:/Dev/simple-keyboard/src/lib/services/Utilities.js", + "access": "public", + "description": null, + "lineNumber": 1 + }, + { + "__docId__": 101, + "kind": "class", + "name": "Utilities", + "memberof": "src/lib/services/Utilities.js", + "static": true, + "longname": "src/lib/services/Utilities.js~Utilities", + "access": "public", + "export": true, + "importPath": "simple-keyboard/src/lib/services/Utilities.js", + "importStyle": "Utilities", + "description": "Utility Service", + "lineNumber": 4, + "interface": false + }, + { + "__docId__": 102, + "kind": "constructor", + "name": "constructor", + "memberof": "src/lib/services/Utilities.js~Utilities", + "generator": false, + "async": false, + "static": false, + "longname": "src/lib/services/Utilities.js~Utilities#constructor", + "access": "public", + "description": "Creates an instance of the Utility service", + "lineNumber": 8 + }, + { + "__docId__": 103, + "kind": "member", + "name": "simpleKeyboardInstance", + "memberof": "src/lib/services/Utilities.js~Utilities", + "static": false, + "longname": "src/lib/services/Utilities.js~Utilities#simpleKeyboardInstance", + "access": "public", + "description": "", + "lineNumber": 12, + "type": { + "nullable": null, + "types": [ + "object" + ], + "spread": false, + "description": null + } + }, + { + "__docId__": 104, + "kind": "member", + "name": "getButtonClass", + "memberof": "src/lib/services/Utilities.js~Utilities", + "static": false, + "longname": "src/lib/services/Utilities.js~Utilities#getButtonClass", + "access": "public", + "description": "Adds default classes to a given button", + "lineNumber": 21, + "params": [ + { + "nullable": null, + "types": [ + "string" + ], + "spread": false, + "optional": false, + "name": "button", + "description": "The button's layout name" + } + ], + "return": { + "nullable": null, + "types": [ + "string" + ], + "spread": false, + "description": "The classes to be added to the button" + }, + "type": { + "types": [ + "*" + ] + } + }, + { + "__docId__": 105, + "kind": "method", + "name": "getDefaultDiplay", + "memberof": "src/lib/services/Utilities.js~Utilities", + "generator": false, + "async": false, + "static": false, + "longname": "src/lib/services/Utilities.js~Utilities#getDefaultDiplay", + "access": "public", + "description": "Default button display labels", + "lineNumber": 35, + "params": [], + "return": { + "types": [ + "{\"{bksp}\": string, \"{backspace}\": string, \"{enter}\": string, \"{shift}\": string, \"{shiftleft}\": string, \"{shiftright}\": string, \"{alt}\": string, \"{s}\": string, \"{tab}\": string, \"{lock}\": string, \"{capslock}\": string, \"{accept}\": string, \"{space}\": string, \"{//}\": string, \"{esc}\": string, \"{escape}\": string, \"{f1}\": string, \"{f2}\": string, \"{f3}\": string, \"{f4}\": string, \"{f5}\": string, \"{f6}\": string, \"{f7}\": string, \"{f8}\": string, \"{f9}\": string, \"{f10}\": string, \"{f11}\": string, \"{f12}\": string, \"{numpaddivide}\": string, \"{numlock}\": string, \"{arrowup}\": string, \"{arrowleft}\": string, \"{arrowdown}\": string, \"{arrowright}\": string, \"{prtscr}\": string, \"{scrolllock}\": string, \"{pause}\": string, \"{insert}\": string, \"{home}\": string, \"{pageup}\": string, \"{delete}\": string, \"{end}\": string, \"{pagedown}\": string, \"{numpadmultiply}\": string, \"{numpadsubtract}\": string, \"{numpadadd}\": string, \"{numpadenter}\": string, \"{period}\": string, \"{numpaddecimal}\": string, \"{numpad0}\": string, \"{numpad1}\": string, \"{numpad2}\": string, \"{numpad3}\": string, \"{numpad4}\": string, \"{numpad5}\": string, \"{numpad6}\": string, \"{numpad7}\": string, \"{numpad8}\": string, \"{numpad9}\": string}" + ] + } + }, + { + "__docId__": 106, + "kind": "member", + "name": "getButtonDisplayName", + "memberof": "src/lib/services/Utilities.js~Utilities", + "static": false, + "longname": "src/lib/services/Utilities.js~Utilities#getButtonDisplayName", + "access": "public", + "description": "Returns the display (label) name for a given button", + "lineNumber": 105, + "params": [ + { + "nullable": null, + "types": [ + "string" + ], + "spread": false, + "optional": false, + "name": "button", + "description": "The button's layout name" + }, + { + "nullable": null, + "types": [ + "object" + ], + "spread": false, + "optional": false, + "name": "display", + "description": "The provided display option" + }, + { + "nullable": null, + "types": [ + "boolean" + ], + "spread": false, + "optional": false, + "name": "mergeDisplay", + "description": "Whether the provided param value should be merged with the default one." + } + ], + "type": { + "types": [ + "*" + ] + } + }, + { + "__docId__": 107, + "kind": "member", + "name": "getUpdatedInput", + "memberof": "src/lib/services/Utilities.js~Utilities", + "static": false, + "longname": "src/lib/services/Utilities.js~Utilities#getUpdatedInput", + "access": "public", + "description": "Returns the updated input resulting from clicking a given button", + "lineNumber": 124, + "params": [ + { + "nullable": null, + "types": [ + "string" + ], + "spread": false, + "optional": false, + "name": "button", + "description": "The button's layout name" + }, + { + "nullable": null, + "types": [ + "string" + ], + "spread": false, + "optional": false, + "name": "input", + "description": "The input string" + }, + { + "nullable": null, + "types": [ + "object" + ], + "spread": false, + "optional": false, + "name": "options", + "description": "The simple-keyboard options object" + }, + { + "nullable": null, + "types": [ + "number" + ], + "spread": false, + "optional": false, + "name": "caretPos", + "description": "The cursor's current position" + } + ], + "type": { + "types": [ + "*" + ] + } + }, + { + "__docId__": 108, + "kind": "member", + "name": "updateCaretPos", + "memberof": "src/lib/services/Utilities.js~Utilities", + "static": false, + "longname": "src/lib/services/Utilities.js~Utilities#updateCaretPos", + "access": "public", + "description": "Moves the cursor position by a given amount", + "lineNumber": 171, + "params": [ + { + "nullable": null, + "types": [ + "number" + ], + "spread": false, + "optional": false, + "name": "length", + "description": "Represents by how many characters the input should be moved" + }, + { + "nullable": null, + "types": [ + "boolean" + ], + "spread": false, + "optional": false, + "name": "minus", + "description": "Whether the cursor should be moved to the left or not." + } + ], + "type": { + "types": [ + "*" + ] + } + }, + { + "__docId__": 109, + "kind": "method", + "name": "addStringAt", + "memberof": "src/lib/services/Utilities.js~Utilities", + "generator": false, + "async": false, + "static": false, + "longname": "src/lib/services/Utilities.js~Utilities#addStringAt", + "access": "public", + "description": "Adds a string to the input at a given position", + "lineNumber": 187, + "params": [ + { + "nullable": null, + "types": [ + "string" + ], + "spread": false, + "optional": false, + "name": "source", + "description": "The source input" + }, + { + "nullable": null, + "types": [ + "string" + ], + "spread": false, + "optional": false, + "name": "string", + "description": "The string to add" + }, + { + "nullable": null, + "types": [ + "number" + ], + "spread": false, + "optional": false, + "name": "position", + "description": "The (cursor) position where the string should be added" + } + ], + "return": { + "types": [ + "*" + ] + } + }, + { + "__docId__": 110, + "kind": "method", + "name": "removeAt", + "memberof": "src/lib/services/Utilities.js~Utilities", + "generator": false, + "async": false, + "static": false, + "longname": "src/lib/services/Utilities.js~Utilities#removeAt", + "access": "public", + "description": "Removes an amount of characters at a given position", + "lineNumber": 217, + "params": [ + { + "nullable": null, + "types": [ + "string" + ], + "spread": false, + "optional": false, + "name": "source", + "description": "The source input" + }, + { + "nullable": null, + "types": [ + "number" + ], + "spread": false, + "optional": false, + "name": "position", + "description": "The (cursor) position from where the characters should be removed" + } + ], + "return": { + "types": [ + "*" + ] + } + }, + { + "__docId__": 111, + "kind": "method", + "name": "handleMaxLength", + "memberof": "src/lib/services/Utilities.js~Utilities", + "generator": false, + "async": false, + "static": false, + "longname": "src/lib/services/Utilities.js~Utilities#handleMaxLength", + "access": "public", + "description": "Determines whether the maxLength has been reached. This function is called when the maxLength option it set.", + "lineNumber": 264, + "params": [ + { + "nullable": null, + "types": [ + "object" + ], + "spread": false, + "optional": false, + "name": "inputObj", + "description": "" + }, + { + "nullable": null, + "types": [ + "object" + ], + "spread": false, + "optional": false, + "name": "options", + "description": "" + }, + { + "nullable": null, + "types": [ + "string" + ], + "spread": false, + "optional": false, + "name": "updatedInput", + "description": "" + } + ], + "return": { + "types": [ + "boolean" + ] + } + }, + { + "__docId__": 112, + "kind": "member", + "name": "maxLengthReached", + "memberof": "src/lib/services/Utilities.js~Utilities", + "static": false, + "longname": "src/lib/services/Utilities.js~Utilities#maxLengthReached", + "access": "public", + "description": "", + "lineNumber": 289, + "type": { + "nullable": null, + "types": [ + "boolean" + ], + "spread": false, + "description": null + } + }, + { + "__docId__": 116, + "kind": "member", + "name": "isMaxLengthReached", + "memberof": "src/lib/services/Utilities.js~Utilities", + "static": false, + "longname": "src/lib/services/Utilities.js~Utilities#isMaxLengthReached", + "access": "public", + "description": "Gets the current value of maxLengthReached", + "lineNumber": 317, + "type": { + "types": [ + "*" + ] + } + }, + { + "__docId__": 117, + "kind": "member", + "name": "camelCase", + "memberof": "src/lib/services/Utilities.js~Utilities", + "static": false, + "longname": "src/lib/services/Utilities.js~Utilities#camelCase", + "access": "public", + "description": "Transforms an arbitrary string to camelCase", + "lineNumber": 326, + "params": [ + { + "nullable": null, + "types": [ + "string" + ], + "spread": false, + "optional": false, + "name": "string", + "description": "The string to transform." + } + ], + "type": { + "types": [ + "*" + ] + } + }, + { + "__docId__": 118, + "kind": "member", + "name": "countInArray", + "memberof": "src/lib/services/Utilities.js~Utilities", + "static": false, + "longname": "src/lib/services/Utilities.js~Utilities#countInArray", + "access": "public", + "description": "Counts the number of duplicates in a given array", + "lineNumber": 336, + "params": [ + { + "nullable": null, + "types": [ + "Array" + ], + "spread": false, + "optional": false, + "name": "array", + "description": "The haystack to search in" + }, + { + "nullable": null, + "types": [ + "string" + ], + "spread": false, + "optional": false, + "name": "value", + "description": "The needle to search for" + } + ], + "type": { + "types": [ + "*" + ] + } + }, + { + "__docId__": 119, + "kind": "file", + "name": "src/lib/tests/TestUtility.js", + "content": "/**\r\n * Test Utility Functions\r\n */\r\nexport default class TestUtility {\r\n /**\r\n * Set's a basic DOM structure to test in\r\n */\r\n setDOM = (divClass) => {\r\n this.clear();\r\n const div = document.createElement('div');\r\n div.className += divClass || \"simple-keyboard\";\r\n document.body.appendChild(div);\r\n }\r\n\r\n /**\r\n * Clears DOM structure\r\n */\r\n clear = () => {\r\n document.body.innerHTML = \"\";\r\n }\r\n\r\n /**\r\n * Test if standard buttons respect maxLength and do input a value\r\n */\r\n testLayoutStdButtons = (keyboard) => {\r\n let stdBtnCount = 0;\r\n let fullInput = '';\r\n\r\n this.iterateButtons((button) => {\r\n let label = button.getAttribute(\"data-skbtn\");\r\n\r\n if(label.includes(\"{\"))\r\n return false;\r\n\r\n // Click all standard buttons, respects maxLength\r\n button.onclick();\r\n\r\n // Recording fullInput, bypasses maxLength\r\n fullInput = keyboard.utilities.getUpdatedInput(label, fullInput, keyboard.options, null);\r\n\r\n stdBtnCount += label.length;\r\n });\r\n\r\n /**\r\n * Check if maxLength is respected\r\n */\r\n if(\r\n (\r\n typeof keyboard.options.maxLength === \"object\" &&\r\n keyboard.getInput().length !== keyboard.options.maxLength[keyboard.options.layoutName]\r\n ) ||\r\n (\r\n typeof keyboard.options.maxLength !== \"object\" &&\r\n keyboard.getInput().length !== keyboard.options.maxLength\r\n )\r\n )\r\n throw new Error(\"MAX_LENGTH_ISSUE\");\r\n else\r\n console.log(\"MAX_LENGTH PASSED:\", keyboard.options.layoutName, keyboard.getInput().length, keyboard.options.maxLength);\r\n\r\n /**\r\n * Check if all standard buttons are inputting something\r\n * (Regardless of maxLength)\r\n */\r\n if(stdBtnCount !== fullInput.length)\r\n throw new Error(\"STANDARD_BUTTONS_ISSUE\");\r\n else\r\n console.log(\"STANDARD_BUTTONS PASSED:\", keyboard.options.layoutName, stdBtnCount, fullInput.length);\r\n }\r\n\r\n /**\r\n * Test if function buttons are interactive (have an onclick)\r\n */\r\n testLayoutFctButtons = (callback) => {\r\n let fctBtnCount = 0;\r\n let fctBtnHasOnclickCount = 0;\r\n\r\n this.iterateButtons((button) => {\r\n let label = button.getAttribute(\"data-skbtn\");\r\n\r\n if(!label.includes(\"{\") && !label.includes(\"}\"))\r\n return false;\r\n\r\n fctBtnCount++;\r\n\r\n if(button.onclick){\r\n button.onclick();\r\n fctBtnHasOnclickCount++;\r\n }\r\n\r\n callback(fctBtnCount, fctBtnHasOnclickCount);\r\n });\r\n }\r\n\r\n /**\r\n * Iterates on the keyboard buttons\r\n */\r\n iterateButtons = (callback, selector) => {\r\n let rows = document.body.querySelector(selector || '.simple-keyboard').children;\r\n\r\n Array.from(rows).forEach(row => {\r\n Array.from(row.children).forEach((button) => {\r\n callback(button);\r\n });\r\n });\r\n }\r\n}", + "static": true, + "longname": "X:/Dev/simple-keyboard/src/lib/tests/TestUtility.js", + "access": "public", + "description": null, + "lineNumber": 1 + }, + { + "__docId__": 120, + "kind": "class", + "name": "TestUtility", + "memberof": "src/lib/tests/TestUtility.js", + "static": true, + "longname": "src/lib/tests/TestUtility.js~TestUtility", + "access": "public", + "export": true, + "importPath": "simple-keyboard/src/lib/tests/TestUtility.js", + "importStyle": "TestUtility", + "description": "Test Utility Functions", + "lineNumber": 4, + "interface": false + }, + { + "__docId__": 121, + "kind": "member", + "name": "setDOM", + "memberof": "src/lib/tests/TestUtility.js~TestUtility", + "static": false, + "longname": "src/lib/tests/TestUtility.js~TestUtility#setDOM", + "access": "public", + "description": "Set's a basic DOM structure to test in", + "lineNumber": 8, + "type": { + "types": [ + "*" + ] + } + }, + { + "__docId__": 122, + "kind": "member", + "name": "clear", + "memberof": "src/lib/tests/TestUtility.js~TestUtility", + "static": false, + "longname": "src/lib/tests/TestUtility.js~TestUtility#clear", + "access": "public", + "description": "Clears DOM structure", + "lineNumber": 18, + "type": { + "types": [ + "*" + ] + } + }, + { + "__docId__": 123, + "kind": "member", + "name": "testLayoutStdButtons", + "memberof": "src/lib/tests/TestUtility.js~TestUtility", + "static": false, + "longname": "src/lib/tests/TestUtility.js~TestUtility#testLayoutStdButtons", + "access": "public", + "description": "Test if standard buttons respect maxLength and do input a value", + "lineNumber": 25, + "type": { + "types": [ + "*" + ] + } + }, + { + "__docId__": 124, + "kind": "member", + "name": "testLayoutFctButtons", + "memberof": "src/lib/tests/TestUtility.js~TestUtility", + "static": false, + "longname": "src/lib/tests/TestUtility.js~TestUtility#testLayoutFctButtons", + "access": "public", + "description": "Test if function buttons are interactive (have an onclick)", + "lineNumber": 74, + "type": { + "types": [ + "*" + ] + } + }, + { + "__docId__": 125, + "kind": "member", + "name": "iterateButtons", + "memberof": "src/lib/tests/TestUtility.js~TestUtility", + "static": false, + "longname": "src/lib/tests/TestUtility.js~TestUtility#iterateButtons", + "access": "public", + "description": "Iterates on the keyboard buttons", + "lineNumber": 98, + "type": { + "types": [ + "*" + ] + } + }, + { + "kind": "index", + "content": "[![GitHub license](https://img.shields.io/badge/license-MIT-blue.svg)](https://github.com/hodgef/simple-keyboard/blob/master/LICENSE)\r\n[![npm version](https://img.shields.io/npm/v/simple-keyboard.svg?style=flat)](https://www.npmjs.com/package/simple-keyboard)\r\n[![Build Status](https://travis-ci.org/hodgef/simple-keyboard.svg?branch=master)](https://travis-ci.org/hodgef/simple-keyboard)\r\n[![codecov](https://codecov.io/gh/hodgef/simple-keyboard/branch/master/graph/badge.svg)](https://codecov.io/gh/hodgef/simple-keyboard)\r\n[![](https://img.shields.io/badge/discord--chat-join-green.svg?longCache=true&style=flat-square&colorB=7289DA&logo=discord)](http://franciscohodge.com/simple-keyboard/chat/join) \r\n\r\n\r\n\r\n\r\n> The easily customisable and responsive on-screen virtual keyboard for Javascript projects.\r\n\r\n## Installation\r\nYou can use simple-keyboard as a ` + + + + +
+ Home + + Reference + Source + + +
+ + + +

Source 64/64

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
FileIdentifierDocumentSizeLinesUpdated
src/demo/App.jsApp100 %8/81927 byte862018-10-04 21:35:25 (UTC)
src/demo/index.js--70 byte52018-09-02 03:31:31 (UTC)
src/lib/components/Keyboard.jsSimpleKeyboard100 %28/2820070 byte5962018-10-04 21:20:37 (UTC)
src/lib/index.js--85 byte22018-06-06 23:02:53 (UTC)
src/lib/services/KeyboardLayout.jsKeyboardLayout100 %2/2755 byte292018-10-04 21:39:14 (UTC)
src/lib/services/PhysicalKeyboard.jsPhysicalKeyboard100 %5/52743 byte912018-10-04 21:47:26 (UTC)
src/lib/services/Utilities.jsUtilities100 %15/1510156 byte3412018-10-04 22:07:29 (UTC)
src/lib/tests/TestUtility.jsTestUtility100 %6/62830 byte1062018-10-04 22:12:09 (UTC)
+
+ + + + + + + + + + + + diff --git a/src/demo/App.js b/src/demo/App.js index 3198d559..97bc1066 100644 --- a/src/demo/App.js +++ b/src/demo/App.js @@ -1,13 +1,30 @@ import Keyboard from '../lib'; import './css/App.css'; +/** + * simple-keyboard demo + */ class App { + /** + * Instantiates the demo class + */ constructor(){ document.addEventListener('DOMContentLoaded', this.onDOMLoaded); + + /** + * Default input name + * @type {string} + */ this.layoutName = "default"; } + /** + * Executed when the DOM is ready + */ onDOMLoaded = () => { + /** + * Creates a new simple-keyboard instance + */ this.keyboard = new Keyboard({ debug: true, layoutName: this.layoutName, @@ -33,6 +50,9 @@ class App { console.log(this.keyboard); } + /** + * + */ handleShiftButton = () => { let layoutName = this.layoutName; let shiftToggle = this.layoutName = layoutName === "default" ? "shift" : "default"; @@ -42,10 +62,16 @@ class App { }); } + /** + * Called when simple-keyboard input has changed + */ onChange = input => { document.querySelector('.input').value = input; } + /** + * Called when a simple-keyboard key is pressed + */ onKeyPress = button => { console.log("Button pressed", button); diff --git a/src/lib/components/Keyboard.css b/src/lib/components/Keyboard.css index 078b20b2..aef3b8ba 100644 --- a/src/lib/components/Keyboard.css +++ b/src/lib/components/Keyboard.css @@ -92,4 +92,12 @@ body, html { .simple-keyboard.hg-theme-default .hg-button.hg-selectedButton { background: rgba(5, 25, 70, 0.53); color: white; +} + +.simple-keyboard.hg-theme-default .hg-button.hg-standardBtn[data-skbtn=".com"] { + max-width: 82px; +} + +.simple-keyboard.hg-theme-default .hg-button.hg-standardBtn[data-skbtn="@"] { + max-width: 60px; } \ No newline at end of file diff --git a/src/lib/components/Keyboard.js b/src/lib/components/Keyboard.js index e5fb3902..f6523143 100644 --- a/src/lib/components/Keyboard.js +++ b/src/lib/components/Keyboard.js @@ -5,7 +5,18 @@ import PhysicalKeyboard from '../services/PhysicalKeyboard'; import KeyboardLayout from '../services/KeyboardLayout'; import Utilities from '../services/Utilities'; +/** + * Root class for simple-keyboard + * This class: + * - Parses the options + * - Renders the rows and buttons + * - Handles button functionality + */ class SimpleKeyboard { + /** + * Creates an instance of SimpleKeyboard + * @param {Array} params If first parameter is a string, it is considered the container class. The second parameter is then considered the options object. If first parameter is an object, it is considered the options object. + */ constructor(...params){ let keyboardDOMQuery = typeof params[0] === "string" ? params[0] : '.simple-keyboard'; let options = typeof params[0] === "object" ? params[0] : params[1]; @@ -22,14 +33,61 @@ class SimpleKeyboard { * Processing options */ this.keyboardDOM = document.querySelector(keyboardDOMQuery); + + /** + * @type {object} + * @property {object} layout Modify the keyboard layout. + * @property {string} layoutName Specifies which layout should be used. + * @property {object} display Replaces variable buttons (such as {bksp}) with a human-friendly name (e.g.: “backspace”). + * @property {boolean} mergeDisplay By default, when you set the display property, you replace the default one. This setting merges them instead. + * @property {string} theme A prop to add your own css classes to the keyboard wrapper. You can add multiple classes separated by a space. + * @property {Array} buttonTheme A prop to add your own css classes to one or several buttons. + * @property {boolean} debug Runs a console.log every time a key is pressed. Displays the buttons pressed and the current input. + * @property {boolean} newLineOnEnter Specifies whether clicking the “ENTER” button will input a newline (\n) or not. + * @property {boolean} tabCharOnTab Specifies whether clicking the “TAB” button will input a tab character (\t) or not. + * @property {string} inputName Allows you to use a single simple-keyboard instance for several inputs. + * @property {number} maxLength Restrains all of simple-keyboard inputs to a certain length. This should be used in addition to the input element’s maxlengthattribute. + * @property {object} maxLength Restrains simple-keyboard’s individual inputs to a certain length. This should be used in addition to the input element’s maxlengthattribute. + * @property {boolean} syncInstanceInputs When set to true, this option synchronizes the internal input of every simple-keyboard instance. + * @property {boolean} physicalKeyboardHighlight Enable highlighting of keys pressed on physical keyboard. + * @property {string} physicalKeyboardHighlightTextColor Define the text color that the physical keyboard highlighted key should have. + * @property {string} physicalKeyboardHighlightBgColor Define the background color that the physical keyboard highlighted key should have. + * @property {function(button: string):string} onKeyPress Executes the callback function on key press. Returns button layout name (i.e.: “{shift}”). + * @property {function(input: string):string} onChange Executes the callback function on input change. Returns the current input’s string. + * @property {function} onRender Executes the callback function every time simple-keyboard is rendered (e.g: when you change layouts). + * @property {function} onInit Executes the callback function once simple-keyboard is rendered for the first time (on initialization). + * @property {function(inputs: object):object} onChangeAll Executes the callback function on input change. Returns the input object with all defined inputs. + */ this.options = options; this.options.layoutName = this.options.layoutName || "default"; this.options.theme = this.options.theme || "hg-theme-default"; this.options.inputName = this.options.inputName || "default"; + + /** + * simple-keyboard uses a non-persistent internal input to keep track of the entered string (the variable `keyboard.input`). + * This removes any dependency to input DOM elements. You can type and directly display the value in a div element, for example. + * @example + * // To get entered input + * let input = keyboard.getInput(); + * + * // To clear entered input. + * keyboard.clearInput(); + * + * @type {object} + * @property {object} default Default SimpleKeyboard internal input. + * @property {object} myInputName Example input that can be set through `options.inputName:"myInputName"`. + */ this.input = {}; this.input[this.options.inputName] = ''; + + /** + * @type {string} DOM class of the keyboard wrapper, normally "simple-keyboard" by default. + */ this.keyboardDOMClass = keyboardDOMQuery.split('.').join(""); - this.timers = {}; + + /** + * @type {object} Contains the DOM elements of every rendered button, the key being the button's layout name (e.g.: "{enter}"). + */ this.buttonElements = {}; /** @@ -56,7 +114,10 @@ class SimpleKeyboard { */ this.physicalKeyboardInterface = new PhysicalKeyboard(this); } - + /** + * Handles clicks made to keyboard buttons + * @param {string} button The button's layout name. + */ handleButtonClicked = (button) => { let debug = this.options.debug; @@ -92,7 +153,7 @@ class SimpleKeyboard { console.log('Input changed:', this.input); /** - * syncInstanceInputs + * Enforce syncInstanceInputs, if set */ if(this.options.syncInstanceInputs) this.syncInstanceInputs(this.input); @@ -109,28 +170,39 @@ class SimpleKeyboard { } } + /** + * Send a command to all simple-keyboard instances (if you have several instances). + */ syncInstanceInputs = () => { - this.dispatch((section) => { - section.replaceInput(this.input); + this.dispatch((instance) => { + instance.replaceInput(this.input); }); } - + + /** + * Clear the keyboard’s input. + * @param {string} [inputName] optional - the internal input to select + */ clearInput = (inputName) => { inputName = inputName || this.options.inputName; this.input[this.options.inputName] = ''; /** - * syncInstanceInputs + * Enforce syncInstanceInputs, if set */ if(this.options.syncInstanceInputs) this.syncInstanceInputs(this.input); } + /** + * Get the keyboard’s input (You can also get it from the onChange prop). + * @param {string} [inputName] optional - the internal input to select + */ getInput = (inputName) => { inputName = inputName || this.options.inputName; /** - * syncInstanceInputs + * Enforce syncInstanceInputs, if set */ if(this.options.syncInstanceInputs) this.syncInstanceInputs(this.input); @@ -138,33 +210,54 @@ class SimpleKeyboard { return this.input[this.options.inputName]; } + /** + * Set the keyboard’s input. + * @param {string} input the input value + * @param {string} inputName optional - the internal input to select + */ setInput = (input, inputName) => { inputName = inputName || this.options.inputName; this.input[inputName] = input; /** - * syncInstanceInputs + * Enforce syncInstanceInputs, if set */ if(this.options.syncInstanceInputs) this.syncInstanceInputs(this.input); } - + + /** + * Replace the input object (`keyboard.input`) + * @param {object} inputObj The input object + */ replaceInput = (inputObj) => { this.input = inputObj; } + /** + * Set new option or modify existing ones after initialization. + * @param {object} option The option to set + */ setOptions = option => { option = option || {}; this.options = Object.assign(this.options, option); this.render(); } + /** + * Remove all keyboard rows and reset keyboard values. + * Used interally between re-renders. + */ clear = () => { this.keyboardDOM.innerHTML = ''; this.keyboardDOM.className = this.keyboardDOMClass; this.buttonElements = {}; } + /** + * Send a command to all simple-keyboard instances at once (if you have multiple instances). + * @param {function(instance: object, key: string)} callback Function to run on every instance + */ dispatch = (callback) => { if(!window['SimpleKeyboardInstances']){ console.warn(`SimpleKeyboardInstances is not defined. Dispatch cannot be called.`); @@ -176,6 +269,11 @@ class SimpleKeyboard { }) } + /** + * Adds/Modifies an entry to the `buttonTheme`. Basically a way to add a class to a button. + * @param {string} buttons List of buttons to select (separated by a space). + * @param {string} className Classes to give to the selected buttons (separated by space). + */ addButtonTheme = (buttons, className) => { if(!className || !buttons) return false; @@ -221,6 +319,11 @@ class SimpleKeyboard { this.render(); } + /** + * Removes/Amends an entry to the `buttonTheme`. Basically a way to remove a class previously added to a button through buttonTheme or addButtonTheme. + * @param {string} buttons List of buttons to select (separated by a space). + * @param {string} className Classes to give to the selected buttons (separated by space). + */ removeButtonTheme = (buttons, className) => { /** * When called with empty parameters, remove all button themes @@ -269,6 +372,10 @@ class SimpleKeyboard { } } + /** + * Get the DOM Element of a button. If there are several buttons with the same name, an array of the DOM Elements is returned. + * @param {string} button The button layout name to select + */ getButtonElement = (button) => { let output; @@ -284,6 +391,9 @@ class SimpleKeyboard { return output; } + /** + * Retrieves the current cursor position within a input or textarea (if any) + */ handleCaret = () => { if(this.options.debug){ console.log("Caret handling started"); @@ -294,6 +404,9 @@ class SimpleKeyboard { document.addEventListener("touchend", this.caretEventHandler); } + /** + * Called by {@link handleCaret} when an event that warrants a cursor position update is triggered + */ caretEventHandler = (event) => { let targetTagName = event.target.tagName.toLowerCase(); @@ -301,6 +414,10 @@ class SimpleKeyboard { targetTagName === "textarea" || targetTagName === "input" ){ + /** + * Tracks current cursor position + * As keys are pressed, text will be added/removed at that position within the input. + */ this.caretPosition = event.target.selectionStart; if(this.options.debug){ @@ -309,6 +426,9 @@ class SimpleKeyboard { } } + /** + * Executes the callback function once simple-keyboard is rendered for the first time (on initialization). + */ onInit = () => { if(this.options.debug){ console.log("Initialized"); @@ -323,11 +443,17 @@ class SimpleKeyboard { this.options.onInit(); } + /** + * Executes the callback function every time simple-keyboard is rendered (e.g: when you change layouts). + */ onRender = () => { if(typeof this.options.onRender === "function") this.options.onRender(); } + /** + * Renders rows and buttons as per options + */ render = () => { /** * Clear keyboard @@ -454,6 +580,9 @@ class SimpleKeyboard { this.onRender(); if(!this.initialized){ + /** + * Ensures that onInit is only called once per instantiation + */ this.initialized = true; /** diff --git a/src/lib/services/KeyboardLayout.js b/src/lib/services/KeyboardLayout.js index 11191f52..15d16efa 100644 --- a/src/lib/services/KeyboardLayout.js +++ b/src/lib/services/KeyboardLayout.js @@ -1,4 +1,12 @@ +/** + * Keyboard Layout Service + */ class KeyboardLayout { + + /** + * Get default simple-keyboard layout + * @return {object} The default layout (US-QWERTY) + */ static getDefaultLayout = () => { return { 'default': [ diff --git a/src/lib/services/PhysicalKeyboard.js b/src/lib/services/PhysicalKeyboard.js index 85c59290..6878ca51 100644 --- a/src/lib/services/PhysicalKeyboard.js +++ b/src/lib/services/PhysicalKeyboard.js @@ -1,12 +1,24 @@ +/** + * Physical Keyboard Service + */ class PhysicalKeyboard { + /** + * Creates an instance of the PhysicalKeyboard service + */ constructor(simpleKeyboardInstance){ + /** + * @type {object} A simple-keyboard instance + */ this.simpleKeyboardInstance = simpleKeyboardInstance; this.initKeyboardListener(); } + /** + * Initializes key event listeners + */ initKeyboardListener = () => { - // Normal Keyboard + // Adding button style on keydown document.addEventListener("keydown", (event) => { if(this.simpleKeyboardInstance.options.physicalKeyboardHighlight){ let buttonPressed = this.getSimpleKeyboardLayoutKey(event); @@ -38,6 +50,10 @@ class PhysicalKeyboard { }); } + /** + * Transforms a KeyboardEvent's "key.code" string into a simple-keyboard layout format + * @param {object} event The KeyboardEvent + */ getSimpleKeyboardLayoutKey = (event) => { if(this.simpleKeyboardInstance.options.debug){ console.log(event); diff --git a/src/lib/services/Utilities.js b/src/lib/services/Utilities.js index fc5ff360..c9fa76c3 100644 --- a/src/lib/services/Utilities.js +++ b/src/lib/services/Utilities.js @@ -1,8 +1,23 @@ +/** + * Utility Service + */ class Utilities { + /** + * Creates an instance of the Utility service + */ constructor(simpleKeyboardInstance){ + /** + * @type {object} A simple-keyboard instance + */ this.simpleKeyboardInstance = simpleKeyboardInstance; } + /** + * Adds default classes to a given button + * + * @param {string} button The button's layout name + * @return {string} The classes to be added to the button + */ getButtonClass = button => { let buttonTypeClass = (button.includes("{") && button.includes("}") && button !== '{//}') ? "functionBtn" : "standardBtn"; let buttonWithoutBraces = button.replace("{", "").replace("}", ""); @@ -14,6 +29,9 @@ class Utilities { return `hg-${buttonTypeClass}${buttonNormalized}`; } + /** + * Default button display labels + */ getDefaultDiplay(){ return { '{bksp}': 'backspace', @@ -77,7 +95,13 @@ class Utilities { "{numpad9}": "9", }; } - + /** + * Returns the display (label) name for a given button + * + * @param {string} button The button's layout name + * @param {object} display The provided display option + * @param {boolean} mergeDisplay Whether the provided param value should be merged with the default one. + */ getButtonDisplayName = (button, display, mergeDisplay) => { if(mergeDisplay){ display = Object.assign({}, this.getDefaultDiplay(), display); @@ -88,6 +112,15 @@ class Utilities { return display[button] || button; } + + /** + * Returns the updated input resulting from clicking a given button + * + * @param {string} button The button's layout name + * @param {string} input The input string + * @param {object} options The simple-keyboard options object + * @param {number} caretPos The cursor's current position + */ getUpdatedInput = (button, input, options, caretPos) => { let output = input; @@ -129,7 +162,12 @@ class Utilities { return output; } - + /** + * Moves the cursor position by a given amount + * + * @param {number} length Represents by how many characters the input should be moved + * @param {boolean} minus Whether the cursor should be moved to the left or not. + */ updateCaretPos = (length, minus) => { if(minus){ if(this.simpleKeyboardInstance.caretPosition > 0) @@ -139,6 +177,13 @@ class Utilities { } } + /** + * Adds a string to the input at a given position + * + * @param {string} source The source input + * @param {string} string The string to add + * @param {number} position The (cursor) position where the string should be added + */ addStringAt(source, string, position){ let output; @@ -163,6 +208,12 @@ class Utilities { return output; } + /** + * Removes an amount of characters at a given position + * + * @param {string} source The source input + * @param {number} position The (cursor) position from where the characters should be removed + */ removeAt(source, position){ if(this.simpleKeyboardInstance.caretPosition === 0){ return source; @@ -203,7 +254,13 @@ class Utilities { return output; } - + /** + * Determines whether the maxLength has been reached. This function is called when the maxLength option it set. + * + * @param {object} inputObj + * @param {object} options + * @param {string} updatedInput + */ handleMaxLength(inputObj, options, updatedInput){ let maxLength = options.maxLength; let currentInput = inputObj[options.inputName]; @@ -226,6 +283,9 @@ class Utilities { } if(condition){ + /** + * @type {boolean} Boolean value that shows whether maxLength has been reached + */ this.maxLengthReached = true; return true; } else { @@ -251,14 +311,28 @@ class Utilities { } } + /** + * Gets the current value of maxLengthReached + */ isMaxLengthReached = () => { return Boolean(this.maxLengthReached); } + /** + * Transforms an arbitrary string to camelCase + * + * @param {string} string The string to transform. + */ camelCase = (string) => { return string.toLowerCase().trim().split(/[.\-_\s]/g).reduce((string, word) => string + word[0].toUpperCase() + word.slice(1)); }; + /** + * Counts the number of duplicates in a given array + * + * @param {Array} array The haystack to search in + * @param {string} value The needle to search for + */ countInArray = (array, value) => { return array.reduce((n, x) => n + (x === value), 0); } diff --git a/src/lib/tests/TestUtility.js b/src/lib/tests/TestUtility.js index 464d35cd..1f6c2953 100644 --- a/src/lib/tests/TestUtility.js +++ b/src/lib/tests/TestUtility.js @@ -1,8 +1,10 @@ +/** + * Test Utility Functions + */ export default class TestUtility { /** - * FUNCTIONS + * Set's a basic DOM structure to test in */ - setDOM = (divClass) => { this.clear(); const div = document.createElement('div'); @@ -10,10 +12,16 @@ export default class TestUtility { document.body.appendChild(div); } + /** + * Clears DOM structure + */ clear = () => { document.body.innerHTML = ""; } + /** + * Test if standard buttons respect maxLength and do input a value + */ testLayoutStdButtons = (keyboard) => { let stdBtnCount = 0; let fullInput = ''; @@ -60,6 +68,9 @@ export default class TestUtility { console.log("STANDARD_BUTTONS PASSED:", keyboard.options.layoutName, stdBtnCount, fullInput.length); } + /** + * Test if function buttons are interactive (have an onclick) + */ testLayoutFctButtons = (callback) => { let fctBtnCount = 0; let fctBtnHasOnclickCount = 0; @@ -81,6 +92,9 @@ export default class TestUtility { }); } + /** + * Iterates on the keyboard buttons + */ iterateButtons = (callback, selector) => { let rows = document.body.querySelector(selector || '.simple-keyboard').children;