Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

biojs-vis-pinpad

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

biojs-vis-pinpad - npm Package Compare versions

Comparing version 0.1.4 to 0.1.5

coverage/lcov-report/lib/PinPadViewer.js.html

12

build/PinPad.js

@@ -199,7 +199,13 @@ require=(function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s})({1:[function(require,module,exports){

if (key.indexOf('styled_') === 0) {
var leftCol = tr.append('td').text(info.key);
var leftCol, rightCol;
if (info.key_right === true) {
leftCol = tr.append('td');
rightCol = tr.append('td').text(info.key + ' ');
} else {
leftCol = tr.append('td').text(info.key);
rightCol = tr.append('td');
}
if (info.key_style) {
leftCol.attr('style', info.key_style);
}
var rightCol = tr.append('td');
if (info.value_style) {

@@ -567,2 +573,2 @@ rightCol.attr('style', info.value_style);

},{"./PinPadModel":4,"./PinPadViewer":5}]},{},["biojs-vis-pinpad"])
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIm5vZGVfbW9kdWxlc1xcYnJvd3NlcmlmeVxcbm9kZV9tb2R1bGVzXFxicm93c2VyLXBhY2tcXF9wcmVsdWRlLmpzIiwibGliXFxDYXRlZ29yeUZhY3RvcnkuanMiLCJsaWJcXENhdGVnb3J5TW9kZWwuanMiLCJsaWJcXEVsZW1lbnRGYWN0b3J5LmpzIiwibGliXFxQaW5QYWRNb2RlbC5qcyIsImxpYlxc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HtcclxuICAgICAgICB2YXIgc29ydGVkSW5kZXggPSAwO1xyXG4gICAgICAgIGlmIChjYXRNb2RlbC5vcmRlcmluZyAmJiBlbGVtZW50Lm9yZGVyaW5nKSB7XHJcbiAgICAgICAgICAgIHZhciByZXN0ID0gXy5wbHVjayhjYXRNb2RlbC5lbGVtZW50cywgJ29yZGVyaW5nJyk7XHJcbiAgICAgICAgICAgIF8uZWFjaChvcmRlcmluZywgZnVuY3Rpb24oYXR0cikge1xyXG4gICAgICAgICAgICAgICAgdmFyIGluZGV4ID0gXy5zb3J0ZWRJbmRleChyZXN0LCBlbGVtZW50Lm9yZGVyaW5nLCBhdHRyKTtcclxuICAgICAgICAgICAgICAgIHNvcnRlZEluZGV4ID0gc29ydGVkSW5kZXggKyBpbmRleDtcclxuICAgICAgICAgICAgICAgIHJlc3QgPSBfLnJlc3QocmVzdCwgaW5kZXgpO1xyXG4gICAgICAgICAgICB9KTtcclxuICAgICAgICB9IGVsc2Uge1xyXG4gICAgICAgICAgICBzb3J0ZWRJbmRleCA9IGNhdE1vZGVsLmVsZW1lbnRzLmxlbmd0aDtcclxuICAgICAgICB9XHJcbiAgICAgICAgY2F0TW9kZWwuZWxlbWVudHMuc3BsaWNlKHNvcnRlZEluZGV4LCAwLCBlbGVtZW50KTtcclxuICAgICAgICByZXR1cm4gc29ydGVkSW5kZXg7XHJcbiAgICB9O1xyXG5cclxuICAgIGNhdE1vZGVsLnJlbW92ZUVsZW1lbnQgPSBmdW5jdGlvbihpbmRleCkge1xyXG4gICAgICAgIGlmICgoMCA8PSBpbmRleCkgJiYgKGluZGV4IDwgY2F0TW9kZWwuZWxlbWVudHMubGVuZ3RoKSkge1xyXG4gICAgICAgICAgICBjYXRNb2RlbC5lbGVtZW50cy5zcGxpY2UoaW5kZXgsIDEpO1xyXG4gICAgICAgICAgICByZXR1cm4gaW5kZXg7XHJcbiAgICAgICAgfSBlbHNlIHtcclxuICAgICAgICAgICAgcmV0dXJuIC0xO1xyXG4gICAgICAgIH1cclxuICAgIH07XHJcbn07XHJcblxyXG5tb2R1bGUuZXhwb3J0cyA9IENhdGVnb3J5TW9kZWw7IiwiLypqc2xpbnQgbm9kZTogdHJ1ZSAqL1xyXG4vKmpzaGludCBsYXhicmVhazogdHJ1ZSAqL1xyXG5cInVzZSBzdHJpY3RcIjtcclxuXHJcbnZhciBkMyA9IHJlcXVpcmUoJ2QzJyk7XHJcbnZhciBfID0gcmVxdWlyZSgndW5kZXJzY29yZScpO1xyXG5cclxudmFyIGlzTGluayA9IGZ1bmN0aW9uKGluZm8pIHtcclxuICAgIGlmICgodHlwZW9mIGluZm8gPT09ICdvYmplY3QnKSAmJiAhKGluZm8gaW5zdGFuY2VvZiBBcnJheSkpIHtcclxuICAgICAgICB2YXIga2V5cyA9IF8ua2V5cyhpbmZvKTtcclxuICAgICAgICBpZiAoKGtleXMubGVuZ3RoID09PSAyKSAmJiBfLmNvbnRhaW5zKGtleXMsICd2YWx1ZScpICYmIF8uY29udGFpbnMoa2V5cywgJ2xpbmsnKSkge1xyXG4gICAgICAgICAgICByZXR1cm4gdHJ1ZTtcclxuICAgICAgICB9XHJcbiAgICB9XHJcbiAgICByZXR1cm4gZmFsc2VcclxufTtcclxuXHJcbnZhciBhZGRMaW5rID0gZnVuY3Rpb24oY29udGFpbmVyLCBpbmZvVGV4dCwgaW5mb0xpbmspIHtcclxuICAgIGlmIChpbmZvTGluayAmJiAoaW5mb0xpbmsgIT09ICctJykpIHtcclxuICAgICAgICBjb250YWluZXIuYXBwZW5kKCdhJylcclxuICAgICAgICAgICAgLmF0dHIoJ2hyZWYnLCBpbmZvTGluaylcclxuICAgICAgICAgICAgLmF0dHIoJ3RhcmdldCcsICdfYmxhbmsnKVxyXG4gICAgICAgICAgICAudGV4dChpbmZvVGV4dCk7XHJcbiAgICB9IGVsc2Uge1xyXG4gICAgICAgIGNvbnRhaW5lci50ZXh0KGluZm9UZXh0KTtcclxuICAgIH1cclxufTtcclxuXHJcbnZhciBhZGRWYWx1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tleSk7XHJcbiAgICAgICAgaWYgKGluZm8ua2V5X3N0eWxlKSB7XHJcbiAgICAgICAgICAgIGxlZnRDb2wuYXR0cignc3R5bGUnLCBpbmZvLmtleV9zdHlsZSk7XHJcbiAgICAgICAgfVxyXG4gICAgICAgIHZhciByaWdodENvbCA9IHRyLmFwcGVuZCgndGQnKTtcclxuICAgICAgICBpZiAoaW5mby52YWx1ZV9zdHlsZSkge1xyXG4gICAgICAgICAgICByaWdodENvbC5hdHRyKCdzdHlsZScsIGluZm8udmFsdWVfc3R5bGUpO1xyXG4gICAgICAgIH1cclxuICAgICAgICBhZGRWYWx1ZShyaWdodENvbCwgaW5mby52YWx1ZSlcclxuICAgIH0gZWxzZSBpZiAoa2V5LmluZGV4T2YoJ3N1YnNlY3Rpb25fJykgPT09IDApIHtcclxuICAgICAgICB0ci5hcHBlbmQoJ3RkJylcclxuICAgICAgICAgICAgLmF0dHIoJ2NvbHNwYW4nLCAyKVxyXG4gICAgICAgICAgICAuY2xhc3NlZCgndXBfcHBfdGFibGVfc3Vic2VjdGlvbicsIHRydWUpXHJcbiAgICAgICAgICAgIC50ZXh0KGluZm8udGl0bGUpO1xyXG4gICAgICAgIGFkZERhdGEodGFibGUsIGluZm8uaW5mb3JtYXRpb24pO1xyXG4gICAgfSBlbHNlIHtcclxuICAgICAgICB0ci5hcHBlbmQoJ3RkJykudGV4dChrZXkucmVwbGFjZSgvXy9nLCAnICcpKTtcclxuICAgICAgICBhZGRWYWx1ZSh0ci5hcHBlbmQoJ3RkJyksIGluZm8pO1xyXG4gICAgfVxyXG59O1xyXG5cclxudmFyIGFkZERhdGEgPSBmdW5jdGlvbih0YWJsZSwgZGF0YSkge1xyXG4gICAgXy5lYWNoKGRhdGEsIGZ1bmN0aW9uKGluZm8sIGtleSkge1xyXG4gICAgICAgIGFkZERhdHVtKHRhYmxlLCBrZXksIGluZm8pO1xyXG4gICAgfSk7XHJcbn07XHJcblxyXG52YXIgRWxlbWVudCA9IGZ1bmN0aW9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AgICAgICAgICAgIGlmICghY2F0ZWdvcnkgfHwgKGNhdEluZGV4ID09PSAtMSkpIHtcclxuICAgICAgICAgICAgICAgIGNhdGVnb3J5ID0gYWRkQ2F0ZWdvcnkocGluUGFkTW9kZWwsIGVsZW1lbnQuY2F0ZWdvcnksIG9yZGVyaW5nKTtcclxuICAgICAgICAgICAgICAgIHBpblBhZE1vZGVsLmNhdGVnb3JpZXMucHVzaChjYXRlZ29yeSk7XHJcbiAgICAgICAgICAgICAgICBjYXRJbmRleCA9IHBpblBhZE1vZGVsLmNhdGVnb3JpZXMubGVuZ3RoIC0gMTtcclxuICAgICAgICAgICAgfVxyXG4gICAgICAgICAgICB2YXIgZWxJbmRleCA9IGNhdGVnb3J5LmFkZEVsZW1lbnQoZWxlbWVudCk7XHJcbiAgICAgICAgICAgIHJldHVybiB7Y2F0SW5kZXg6IGNhdEluZGV4LCBlbEluZGV4OiBlbEluZGV4fTtcclxuICAgICAgICB9XHJcbiAgICB9O1xyXG5cclxuICAgIHBpblBhZE1vZGVsLnJlbW92ZUVsZW1lbnQgPSBmdW5jdGlvbihlbElkKSB7XHJcbiAgICAgICAgdmFyIGNhdEluZGV4ID0gLTEsIGVsSW5kZXggPSAtMTtcclxuICAgICAgICBfLmZpbmQocGluUGFkTW9kZWwuY2F0ZWdvcmllcywgZnVuY3Rpb24oY2F0LCBjb3VudGVyKSB7XHJcbiAgICAgICAgICAgIHZhciBlbGVtZW50ID0gXy5maW5kKGNhdC5lbGVtZW50cywgZnVuY3Rpb24oZWwsIGluZGV4KSB7XHJcbiAgICAgICAgICAgICAgICBlbEluZGV4ID0gaW5kZXg7XHJcbiAgICAgICAgICAgICAgICByZXR1cm4gZWwuaWQgPT09IGVsSWQ7XHJcbiAgICAgICAgICAgIH0pO1xyXG4gICAgICAgICAgICBpZiAoZWxlbWVudCkge1xyXG4gICAgICAgICAgICAgICAgY2F0SW5kZXggPSBjb3VudGVyO1xyXG4gICAgICAgICAgICB9XHJcbiAgICAgICAgIC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gICAgIHZhciByZXN1bHQgPSBwaW5QYWQubW9kZWwuYWRkRWxlbWVudChlbGVtZW50KTtcclxuICAgICAgICAgICAgaWYgKHJlc3VsdC5lcnJvcikge1xyXG4gICAgICAgICAgICAgICAgcGluUGFkLmRpc3BhdGNoZXIuZHVwbGljYXRpb24oe2VsZW1lbnQ6IGVsZW1lbnR9KTtcclxuICAgICAgICAgICAgfSBlbHNlIHtcclxuICAgICAgICAgICAgICAgIHBpblBhZC52aWV3ZXIuYWRkRWxlbWVudChlbGVtZW50LCByZXN1bHQuY2F0SW5kZXgsIHJlc3VsdC5lbEluZGV4LFxyXG4gICAgICAgICAgICAgICAgICAgIHBpblBhZC5tb2RlbC5jYXRlZ29yaWVzW3Jlc3VsdC5jYXRJbmRleF0uZWxlbWVudHMpO1xyXG4gICAgICAgICAgICAgICAgcGluUGFkLmRpc3BhdGNoZXIuYWRkKHtcclxuICAgICAgICAgICAgICAgICAgICBjYXRlZ29yeTogZWxlbWVudC5jYXRlZ29yeSxcclxuICAgICAgICAgICAgICAgICAgICBlbGVtZW50OiBlbGVtZW50XHJcbiAgICAgICAgICAgICAgICB9KTtcclxuICAgICAgICAgICAgfVxyXG4gICAgICAgIH0gZWxzZSB7XHJcbiAgICAgICAgICAgIHBpblBhZC5kaXNwYXRjaGVyLmluY29tcGxldGUoe2VsZW1lbnQ6IGVsZW1lbnR9KTtcclxuICAgICAgICB9XHJcbiAgICB9O1xyXG5cclxuICAgIHBpblBhZC5yZW1vdmVFbGVtZW50ID0gZnVuY3Rpb24oZWxJZCkge1xyXG4gICAgICAgIHZhciByZXN1bHQgPSBwaW5QYWQubW9kZWwucmVtb3ZlRWxlbWVudChlbElkKTtcclxuICAgICAgICBpZiAocmVzdWx0LmVycm9yKSB7XHJcbiAgICAgICAgICAgIHBpblBhZC5kaXNwYXRjaGVyLnVua25vd24oe2VsZW1lbnQ6IGVsSWR9KTtcclxuICAgICAgICB9IGVsc2Uge1xyXG4gICAgICAgICAgICBwaW5QYWQ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W5kZXggPSAtMTtcclxuICAgICAgICB2YXIgZWxlbSA9IF8uZmluZChwaW5QYWRNb2RlbC5jYXRlZ29yaWVzLCBmdW5jdGlvbihjYXQsIGNvdW50ZXIpIHtcclxuICAgICAgICAgICAgaWYgKGNhdC50aXRsZSA9PT0gZWxlbWVudC5jYXRlZ29yeSkge1xyXG4gICAgICAgICAgICAgICAgY2F0ZWdvcnkgPSBjYXQ7XHJcbiAgICAgICAgICAgICAgICBjYXRJbmRleCA9IGNvdW50ZXI7XHJcbiAgICAgICAgICAgIH1cclxuICAgICAgICAgICAgcmV0dXJuIF8uZmluZChjYXQuZWxlbWVudHMsIGZ1bmN0aW9uKGVsKSB7XHJcbiAgICAgICAgICAgICAgICByZXR1cm4gZWxlbWVudC5pZCA9PT0gZWwuaWRcclxuICAgICAgICAgICAgfSk7XHJcbiAgICAgICAgfSk7XHJcbiAgICAgICAgaWYgKGVsZW0pIHtcclxuICAgICAgICAgICAgcmV0dXJuIHtlcnJvcjogJ2R1cGxpY2F0aW9uJ307XHJcbiAgICAgICAgfSBlbHNlIHtcclxuICAgICAgICAgICAgaWYgKCFjYXRlZ29yeSB8fCAoY2F0SW5kZXggPT09IC0xKSkge1xyXG4gICAgICAgICAgICAgICAgY2F0ZWdvcnkgPSBhZGRDYXRlZ29yeShwaW5QYWRNb2RlbCwgZWxlbWVudC5jYXRlZ29yeSwgb3JkZXJpbmcpO1xyXG4gICAgICAgICAgICAgICAgcGluUGFkTW9kZWwuY2F0ZWdvcmllcy5wdXNoKGNhdGVnb3J5KTtcclxuICAgICAgICAgICAgICAgIGNhdEluZGV4ID0gcGluUGFkTW9kZWwuY2F0ZWdvcmllcy5sZW5ndGggLSAxO1xyXG4gICAgICAgICAgICB9XHJcbiAgICAgICAgICAgIHZhciBlbEluZGV4ID0gY2F0ZWdvcnkuYWRkRWxlbWVudChlbGVtZW50KTtcclxuICAgICAgICAgICAgcmV0dXJuIHtjYXRJbmRleDogY2F0SW5kZXgsIGVsSW5kZXg6IGVsSW5kZXh9O1xyXG4gICAgICAgIH1cclxuICAgIH07XHJcblxyXG4gICAgcGluUGFkTW9kZWwucmVtb3ZlRWxlbWVudCA9IGZ1bmN0aW9uKGVsSWQpIHtcclxuICAgICAgICB2YXIgY2F0SW5kZXggPSAtMSwgZWxJbmRleCA9IC0xO1xyXG4gICAgICAgIF8uZmluZChwaW5QYWRNb2RlbC5jYXRlZ29yaWVzLCBmdW5jdGlvbihjYXQsIGNvdW50ZXIpIHtcclxuICAgICAgICAgICAgdmFyIGVsZW1lbnQgPSBfLmZpbmQoY2F0LmVsZW1lbnRzLCBmdW5jdGlvbihlbCwgaW5kZXgpIHtcclxuICAgICAgICAgICAgICAgIGVsSW5kZXggPSBpbmRleDtcclxuICAgICAgICAgICAgICAgIHJldHVybiBlbC5pZCA9PT0gZWxJZDtcclxuICAgICAgICAgICAgfSk7XHJcbiAgICAgICAgICAgIGlmIChlbGVtZW50KSB7XHJcbiAgICAgICAgICAgICAgICBjYXRJbmRleCA9IGNvdW50ZXI7XHJcbiAgICAgICAgICAgIH1cclxuICAgICAgICAgICAgcmV0dXJuIGNhdEluZGV4ICE9PSAtMTtcclxuICAgICAgICB9KTtcclxuICAgICAgICBpZiAoKGNhdEluZGV4ICE9PSAtMSkgJiYgKGVsSW5kZXggIT09IC0xKSkge1xyXG4gICAgICAgICAgICB2YXIgcmVtb3ZlZEZyb21DYXRlZ29yeSA9IHBpblBhZE1vZGVsLmNhdGVnb3JpZXNbY2F0SW5kZXhdLnRpdGxlO1xyXG4gICAgICAgICAgICB2YXIgcmVtb3ZlZEVsZW1lbnQgPSBwaW5QYWRNb2RlbC5jYXRlZ29yaWVzW2NhdEluZGV4XS5lbGVtZW50c1tlbEluZGV4XTtcclxuICAgICAgICAgICAgcGluUGFkTW9kZWwuY2F0ZWdvcmllc1tjYXRJbmRleF0ucmVtb3ZlRWxlbWVudChlbEluZGV4KTtcclxuICAgICAgICAgICAgaWYgKHBpblBhZE1vZGVsLmNhdGVnb3JpZXNbY2F0SW5kZXhdLmVsZW1lbnRzLmxlbmd0aCA9PT0gMCkge1xyXG4gICAgICAgICAgICAgICAgcGluUGFkTW9kZWwuY2F0ZWdvcmllcy5zcGxpY2UoY2F0SW5kZXgsIDEpO1xyXG4gICAgICAgICAgICB9XHJcbiAgICAgICAgICAgIHJldHVybiB7Y2F0SW5kZXg6IGNhdEluZGV4LCBlbEluZGV4OiBlbEluZGV4LCBjYXRlZ29yeTogcmVtb3ZlZEZyb21DYXRlZ29yeSwgZWxlbWVudDogcmVtb3ZlZEVsZW1lbnR9O1xyXG4gICAgICAgIH1cclxuICAgICAgICByZXR1cm4ge2Vycm9yOiAndW5rbm93bid9XHJcbiAgICB9O1xyXG5cclxuICAgIHBpblBhZE1vZGVsLnJlbW92ZUNhdGVnb3J5ID0gZnVuY3Rpb24oY2F0VGl0bGUpIHtcclxuICAgICAgICB2YXIgY2F0SW5kZXggPSAtMTtcclxuICAgICAgICB2YXIgY2F0ZWdvcnkgPSBfLmZpbmQocGluUGFkTW9kZWwuY2F0ZWdvcmllcywgZnVuY3Rpb24oY2F0LCBpbmRleCkge1xyXG4gICAgICAgICAgICBjYXRJbmRleCA9IGluZGV4O1xyXG4gICAgICAgICAgICByZXR1cm4gY2F0LnRpdGxlID09PSBjYXRUaXRsZTtcclxuICAgICAgICB9KTtcclxuICAgICAgICBpZiAoY2F0ZWdvcnkpIHtcclxuICAgICAgICAgICAgcGluUGFkTW9kZWwuY2F0ZWdvcmllcy5zcGxpY2UoY2F0SW5kZXgsIDEpO1xyXG4gICAgICAgIH1cclxuICAgICAgICByZXR1cm4ge2NhdEluZGV4OiBjYXRJbmRleH07XHJcbiAgICB9O1xyXG59O1xyXG5cclxubW9kdWxlLmV4cG9ydHMgPSBQaW5QYWRNb2RlbDsiLCIvKmpzbGludCBub2RlOiB0cnVlICovXHJcbi8qanNoaW50IGxheGJyZWFrOiB0cnVlICovXHJcblwidXNlIHN0cmljdFwiIDtcclxuLypcclxuICogYmlvanMtd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ZGV4XS50aXRsZSAhPT0gcmVzdWx0LmNhdGVnb3J5KSB7XHJcbiAgICAgICAgICAgICAgICBwaW5QYWQuZGlzcGF0Y2hlci5yZW1vdmUoe2NhdGVnb3J5OiByZXN1bHQuY2F0ZWdvcnl9KTtcclxuICAgICAgICAgICAgfVxyXG4gICAgICAgIH1cclxuICAgIH07XHJcblxyXG4gICAgcGluUGFkLnJlbW92ZUNhdGVnb3J5ID0gZnVuY3Rpb24oY2F0VGl0bGUpIHtcclxuICAgICAgICB2YXIgcmVzdWx0ID0gcGluUGFkLm1vZGVsLnJlbW92ZUNhdGVnb3J5KGNhdFRpdGxlKTtcclxuICAgICAgICBwaW5QYWQudmlld2VyLnJlbW92ZUNhdGVnb3J5KHJlc3VsdC5jYXRJbmRleCk7XHJcbiAgICAgICAgcGluUGFkLmRpc3BhdGNoZXIucmVtb3ZlKHtjYXRlZ29yeTogY2F0VGl0bGV9KTtcclxuICAgIH07XHJcbn07XHJcblxyXG5tb2R1bGUuZXhwb3J0cyA9IFBpblBhZDsiXX0=

@@ -1,13 +0,16 @@

� �Y[s�6�+2wV%�#%͋T��I�ٝ�6��t_< ,B����������B�]�y�[��s?�9T�?{�X�݋��RLX�� *94+2�L|_�[~gi�뉪I�E~k�e�k��v�,����X�r:-��^�ID�� �S�F�R�d�=O~VJ�8zO��z��"�<�|_��w�5�������)�<٤��,���O�����o>����o?EdS#�<C޳�RJ��塮W(���.�Т��Խ"^��YEf6.�n��ʱ*cq#�,�INړ�X��n^�_�[���K�Ex6_�TZ0�w+~}��X�����X޶����!�WlRi�7:2�TY��(%��E�T���EIBdK髟 �Ȅ��n�T_a#�B��v�Z����#����3S#"�\,��SY2�]���$���ne��LK���BS.���p0.�S����V��}�.���j�|�6~d�D�;FA��^x�n7��?�o=%
t���|�ZD��}d\��5?}���Y�1;�X')(���u�����:��_[�T %� ����i���h[H��9�vY�(�/��,gHk��v'�H� f^E����� �{���G�D��9��'4�ņ�C�*
���.ƸY��"��|�����d�]��Or�H�L�Dd�,���!��}B"!�`ͺ�y#��Q��������w�?�im�%˳7��b�g�� �1��.�t��6s��I�|2��K���&�L7��ݎT,�X��W��'#�–���x�7�2oK�RF7�� �MG
̩o,c��iԝ��c��D+sp:���dN���+�jDz���f�.Cz ���.H.H�ǣ[u�ع��s�OĬC�ޗ��g XC "�Z�`�/�E�M��Ԭ�Ċ=�?9� f;vZv+"Z�Qf��:��;��轮c���g`�ð�.ߐ��k.i��2���y}Q��l��'*��eX���3\<����c�j I۸=>���w8iY�7��DK"��� :�]�%D*(�����@X��A����A�U�
���� �O%À���7�����.���?��#�Ȓ�l�رq��p��o.��hr`o�a���? ۵�@�U�&\T�� ������ #���k�Ѵ�1y9�S�p6�V`�"wW�� .�b9�~5w��jщp'��N�Yt��@��b���GM�C���/(^�Ӓ�_5���G�9�F~�����= ��ڽ����7 �%�?7)�Fl��r&K=P�x��e�Ճn�<P@��j=[`� ��$"��|�����X�/v���V�1���cd}'1�?_G�糅�:�� � ���omN���m�#ت}��|����Q�?O�烷 )1�풋�>�������z\;�" �C�z�(���-������5����G��Q��GC����j��D���V� ���]����Ѱ�71�I�
�+�% ���ueQ��o},~�g#y������qlۧ1�n�mi�:3]z=oUo�_�����j�m����ZW{�v&�$ �5�P�F{b}�r.�g�
0Ͼҩs�*I� y��=�1�R��TRK�s��i�r��Owg^Ka��Un��v�8q��@�7��cy��ԽX?�ʪ�W�?-x�2G�<� +T/�lM+L��Cl�t28Ы]N�g���^���0�z'�_ȅ���{�Ϧ���x�y;u�L-qI?(��g�������|GG$��Cӹ��Rm��;�N�����L�*1����z�[��Ov+f���_%��`�ؓH�V>�Y����LK�G[��$Й-Eb�㇇�h��\r�i��7h�A �1 !ֶ?#����e�pp��J� �ڠ�=�Ƶ�z%���0#y��(꠹���o; � �.{�i�Z�?�w����������*�_�gf�(�
sR����7TVhw��0،��f��A�"� 1����T%}Grq+�\=��f�"�9~K��[|:N��:Vpݢ�n�յht-���Z`����ޱ��)i�a|����s�ĉn�<P��L�����H7Ɨ�O䒷��w�J�قg��2�����嗈���^�5O;xW����@%?(�@Ń�W�4ΠX����۠��
�#�� _V]Yl��T��� �f��ӻG��� *�ze�����n+�?I��
�v�����_�Va#�|8#���fmj̮$����0mv0�;�A;(쎃$`U����r�N�l�7�T�AWh��~�?l�����n��L� �-�%�b�߻�f���T�M\��|����U��^h��[ |��R6Pye����Plkx$U�{$�7?
�L�}�Q�(P�լv�E���s�{����$$+�ި�Z�N�Ԣ�H��^��/ 8W�� �>Bj�M�B3U��}5��I!d�h;7��1kvƵ�WlDh������ĴW��"F�:N3�.�|P��0!=1X2����Kw��Ƞ�2�#2��p�#�q��L���
Wt+\3�_\0�����=�
s+f�K�_��c��vu J�D{�-����G���=�Rmu�\a�(z�N���z��}��� Z��!x���h�[�ZH��F>��f�y� I�l�����6����h��|� #+b��$ �� EH~�]�|���F���w�������f_�]�!���@>��� 7 �k5������G�n�ю�e$K���5� ��KJ��t_�ή//G_�Dh���Qq�8�glf@�U�ջ�zr8�Z#�1���� ��j[w��8��*���I?�,��w��&���t��� ��C�&
� �Z[s۸�+2;Ւ5�H��EZF��ݝv���t�}�x<0 [�� Bv22�{���/�t��G��|�b��qŲ���5�b�bMQɾ]�1'U�����7��6�����Y�I�,�_+&�gʲ��ݏ5���2QL���b��:�kԭ!�"�y��RR��{*�Գ{.�٣,v%�}]���(Y뭒ϳ"�e����?��ϟo��������SD���ʞ�ٗJ*]��M�F�7iN�2�S��xmbf�!\�\���U�b#V,iHN���X�5�
��/�{���s�Ex�X�TZ2�k~y��X��[�x�\]w����>��lVk�sK�,fqT����D�T�KŢ$!2�����%{dB�Bs-�W �Yȶ5Ö�k�V\|�ſ9{f*cD���epz*+&���b�e�]߬����iE��Rh�<�
6 %��4/i]3x�U�Uu�S�@����G&LD�e����-��L�f'|��9Q�C���3�"2d&�#��ڽ~����W�|�M�/:�I
ƃ�<�u!���\��dq�R�c늊�4�S>��W�ݗ�jN�F�{�*pUUW��J+ZogN#�ޕ̼��]�O@����b�򉖱 �O�ֳ��W2���y���eĻ�:�1��θ�� ��b�q�����Y&k�7C>{��"DB
ɚ���N(80��7��8��J v�ߟ��.��ɓ�
�|����䥱-
WBzu�P[9x�$y1[�ʥߍܹ�y&�\18۱�a=�U�z�dBW ���Pģ�A�y_�2�ocTtll�)p��X�VAШ������f�|W�ɂ�� W޴�<��Cg���]���'�}6P\���G��ұwƠ�N�Y�� ���7����d����ԓ��M�7M��Ԭ4Ī=A��Y��=?��=�8� P��GL�����41@��3��~�@WoH�f�=�t�v��憼>�wZ6t�#���2l�R�.LWz�d��$�����>���w�8iU���A�%��8�NwI�J �
Fc�?@�/��o�d-/3A��b�����a%XDf�z�K�8a$$ � y<�|D������@*�du�D�؆��?��7�z�49�7� Ή��P�:���"f3.jME�+?*E�&����3�Z�nt�k,^N��*�-�5�+������� �X�_,��X�2ܩ&���*��F�aPj��}t�QS����ޕ��i����p?�#�DZ��~y�����Qo�Nʒ�c�M�vE�φ#�Ԩ ����J� ���������m]A
�=�����G�g$��,�0_q�^#ϣ����.^:j�.�c9f������E�$����i�@{���2뀧.L����f�e�B땇I���}�F�+�w��������!i�6!���J�P��]͌�n� Dv�G������vL,�v�Z�K�e O)�u�l�� �����1v ��� )�>�<%���@������Y
�B�A{P�A� �� x6�w��<��C �I��i������|�h����d�U�׾{zG���q����L��n9d�%���=W�'~v̡��+���ĸ��^�1�!I���JI-�\Z�c�Ŏ>>�y+��w߸�:9|����Y
�rs�?Vg�L3���
'y��3�!s` ��a�ԃ��I�����-[NF-�i�� ������^��� �0�_ ���!~�Io���%��mB��H:��hGC?���_FE���@�������7p�n��<L\̄�`��z���C����s��vtK9�H�V>aYS��O��d�''#�Ϯ�F�����dr�e��ᥑϷ����jLÈuS��|"��g����!�=ûq���ZQ������'y��(ڠ=ǢPn{�"�'\���^ė0@c����{�a�'���J���+�v���9j�����+�; ��l�dM{Q���"� 1����L%�`Jq-n\?����F���$�k0�ŧ�|�q��7t
:;[��֒x��`�v�ʛ�;�Y���9�g�!Ϝ�Iw�=�m������hw������#���7�ֽ��}���~˰ ����E�%"����o��ޕ���,���10�hTmo=lg�, ����o�� ��໇o��-v\�**N���^��Q�q� �r��E%Я,�3 A�����O/Zx;N��ߍ�/�@�z�N��*x�Y���+I���G.̴��v�A�*J��ƃ�V� S3lu��T��Th���迏���S{I�.0q�&^nE�@���e��o�r�!�� �j��+� ��=Z��k
|��R�Pym?����:���H�,�Hz�~T4���:W�,Ѫ�UP�A��� �;�~P
�do�V�� ���Ri�S���K(.�>=C�O��S��LU�e�^m��J�!��!�F�pʛ�[_:h6"tXc��`y�|b:�CN E/E���g|���0�!5X2e���K���ꠇ:�:L�p�[�a��L���W�;\��`y�ǂ��?�'^cm��vn�K_} >�t`ڮNA�j�H�YH| ��S�_���
SE1�t�����7���^n��F_c=�oj!�|�J�͍�o�$Y�.�_�1�/.D�g�mYÒ��� UHy�]�|V��F���w�g�˟�����̾��o�o! P}'�� ���,ؓ���f�m���e�J 3P� �-���L���Ќί//_�Bh��Lך��@�>3 ��?��=9 ���Ԙ����~̴]8A@�`��Rֈ��dXKVo� l���<�$��g���[&

@@ -1,1 +0,1 @@

require=function e(t,n,r){function o(i,p){if(!n[i]){if(!t[i]){var l="function"==typeof require&&require;if(!p&&l)return l(i,!0);if(a)return a(i,!0);var c=new Error("Cannot find module '"+i+"'");throw c.code="MODULE_NOT_FOUND",c}var d=n[i]={exports:{}};t[i][0].call(d.exports,function(e){var n=t[i][1][e];return o(n?n:e)},d,d.exports,e,t,n,r)}return n[i].exports}for(var a="function"==typeof require&&require,i=0;i<r.length;i++)o(r[i]);return o}({1:[function(e,t,n){"use strict";var r=(e("d3"),e("underscore")),o=e("./ElementFactory"),a=function(e,t){var n=this;n.pinPadViewer=e,n.title=t,n.open=!0,n.elements=[];var a=n.pinPadViewer.padContainer.append("div").classed("up_pp_category-container",!0);n.header=a.append("div").classed("up_pp_category-header",!0),n.header.title=n.header.append("a").attr("class","up_pp_category-name up_pftv_arrow-down").text(t).on("click",function(){n.toggle()}),n.header.append("span").classed("up_pp_iconContainer",!0).style("float","right").append("div").attr("class","up-pp-icon-trash up_pp_clickable-icon").on("click",function(){n.delegateCategoryRemoval(n.title)}),n.padContainer=a.append("div").classed("up_pp_category-pad",!0),n.remove=function(){for(;n.elements.length>0;)n.elements[0].remove(n.elements[0].id,n.title,!1),n.elements.splice(0,1);a.remove()},n.toggle=function(){"none"===n.padContainer.style("display")?(n.padContainer.style("display","block"),n.header.title.attr("class","up_pp_category-name up_pftv_arrow-down"),n.open=!0):(n.padContainer.style("display","none"),n.header.title.attr("class","up_pp_category-name up_pftv_arrow-right"),n.open=!1)},n.addElement=function(e,t,a){var i=void 0;return t>n.elements.length?(i=o.createElement(n,e),n.elements.push(i)):(n.padContainer.selectAll("*").remove(),r.each(a,function(e,r){var a=r===t?void 0:n.elements[r].open,p=o.createElement(n,e,a);r===t&&(i=p,n.elements.splice(t,0,i))})),i},n.removeElement=function(e){var t=n.elements[e];n.elements.splice(e,1),o.removeElement(t)},n.delegateElementRemoval=function(e){n.pinPadViewer.delegateElementRemoval(e)},n.delegateCategoryRemoval=function(e){n.pinPadViewer.delegateCategoryRemoval(e)}},i=function(){return{createCategory:function(e,t){return new a(e,t)},removeCategory:function(e){e.remove()},createElement:function(e,t,n,r){return e.addElement(t,n,r)},removeElement:function(e,t){e.removeElement(t)}}}();t.exports=i},{"./ElementFactory":3,d3:"d3",underscore:"underscore"}],2:[function(e,t,n){"use strict";var r=e("underscore"),o=function(e,t){var n=this;n.title=e,n.ordering=t,n.elements=[],n.addElement=function(e){var o=0;if(n.ordering&&e.ordering){var a=r.pluck(n.elements,"ordering");r.each(t,function(t){var n=r.sortedIndex(a,e.ordering,t);o+=n,a=r.rest(a,n)})}else o=n.elements.length;return n.elements.splice(o,0,e),o},n.removeElement=function(e){return e>=0&&e<n.elements.length?(n.elements.splice(e,1),e):-1}};t.exports=o},{underscore:"underscore"}],3:[function(e,t,n){"use strict";var r=e("d3"),o=e("underscore"),a=function(e){if("object"==typeof e&&!(e instanceof Array)){var t=o.keys(e);if(2===t.length&&o.contains(t,"value")&&o.contains(t,"link"))return!0}return!1},i=function(e,t,n){n&&"-"!==n?e.append("a").attr("href",n).attr("target","_blank").text(t):e.text(t)},p=function(e,t){"string"==typeof t||"number"==typeof t||"boolean"==typeof t?e.text(t):a(t)?i(e,t.value,t.link):t instanceof Array?o.each(t,function(n,r){var o=e.append("span");p(o,n),r!==t.length-1&&e.append("span").text(", ")}):c(e.append("table"),t)},l=function(e,t,n){var r=e.append("tr");if(0===t.indexOf("styled_")){var o=r.append("td").text(n.key);n.key_style&&o.attr("style",n.key_style);var a=r.append("td");n.value_style&&a.attr("style",n.value_style),p(a,n.value)}else 0===t.indexOf("subsection_")?(r.append("td").attr("colspan",2).classed("up_pp_table_subsection",!0).text(n.title),c(e,n.information)):(r.append("td").text(t.replace(/_/g," ")),p(r.append("td"),n))},c=function(e,t){o.each(t,function(t,n){l(e,n,t)})},d=function(e,t,n){var r=this;r.id=t.id,r.category=e,r.open=n,r.header=void 0,r.tableContainer=void 0,r.table=void 0,r.toggle=function(){"none"===r.tableContainer.style("display")?(r.tableContainer.style("display","block"),r.header.title.attr("class","up_pp_element-name up_pftv_arrow-down"),r.open=!0):(r.tableContainer.style("display","none"),r.header.title.attr("class","up_pp_element-name up_pftv_arrow-right"),r.open=!1)};var a=r.category.padContainer.append("div").attr("id","pinned_elem_id_"+t.id);r.first(r.category.title,a,o.first(t.sections)),r.tail(r.table,o.tail(t.sections))};d.prototype.first=function(e,t,n){var r=this;r.header=t.append("div").classed("up_pp_element-header",!0),r.header.title=r.header.append("a").attr("class",function(){return r.open===!1?"up_pp_element-name up_pftv_arrow-right":"up_pp_element-name up_pftv_arrow-down"}).text(n.title).on("click",function(){r.toggle()}),r.header.append("span").classed("up_pp_iconContainer",!0).style("float","right").append("div").attr("class","up-pp-icon-trash up_pp_clickable-icon").on("click",function(){r.category.delegateElementRemoval(r.id)}),r.tableContainer=t.append("div"),r.open===!1&&r.tableContainer.style("display","none"),r.table=r.tableContainer.append("table").attr("width","100%"),c(r.table,n.information)},d.prototype.tail=function(e,t){o.each(t,function(t){e.append("tr").classed("up_pp_element-section",!0).append("td").attr("colspan",2).text(t.title),c(e,t.information)})},d.prototype.remove=function(e){var t=r.select("#pinned_elem_id_"+e);t.remove()};var s=function(){return{createElement:function(e,t,n){return new d(e,t,n)},removeElement:function(e){e.remove(e.id)}}}();t.exports=s},{d3:"d3",underscore:"underscore"}],4:[function(e,t,n){"use strict";var r=e("underscore"),o=e("./CategoryModel"),a=function(e,t,n){return new o(t,n)},i=function(e){var t=this;t.categories=[],t.addElement=function(n){var o,i=-1,p=r.find(t.categories,function(e,t){return e.title===n.category&&(o=e,i=t),r.find(e.elements,function(e){return n.id===e.id})});if(p)return{error:"duplication"};o&&-1!==i||(o=a(t,n.category,e),t.categories.push(o),i=t.categories.length-1);var l=o.addElement(n);return{catIndex:i,elIndex:l}},t.removeElement=function(e){var n=-1,o=-1;if(r.find(t.categories,function(t,a){var i=r.find(t.elements,function(t,n){return o=n,t.id===e});return i&&(n=a),-1!==n}),-1!==n&&-1!==o){var a=t.categories[n].title,i=t.categories[n].elements[o];return t.categories[n].removeElement(o),0===t.categories[n].elements.length&&t.categories.splice(n,1),{catIndex:n,elIndex:o,category:a,element:i}}return{error:"unknown"}},t.removeCategory=function(e){var n=-1,o=r.find(t.categories,function(t,r){return n=r,t.title===e});return o&&t.categories.splice(n,1),{catIndex:n}}};t.exports=i},{"./CategoryModel":2,underscore:"underscore"}],5:[function(e,t,n){"use strict";var r=e("d3"),o=e("underscore"),a=e("./CategoryFactory"),i={height:"500px",width:"250px",highlightColor:"green"},p=function(e,t){var n=r.select(e.options.el).text("").append("div").classed("up_pp_main-container",!0).style("width",e.options.width),o=n.append("div").classed("up_pp_mainTitle",!0);o.append("div").classed("up_pp_iconContainer",!0).append("div").classed("up-pp-icon-pin",!0).classed("up_pp_icon",!0),e.offsetTop=o.node().offsetHeight+o.node().offsetTop,e.padContainer=n.append("div").classed("up_pp_pad",!0).style("height",e.options.height),e.options.toPin&&e.addElement(t)},l=function(e,t,n){var r=this;r.options=o.extend({},i,e),r.pinPad=n,r.offsetTop=void 0,r.categories=[],p(r,t)},c=function(e,t){return a.createCategory(e,t)};l.prototype.addElement=function(e,t,n,i){var p,l=this;t>=l.categories.length?(l.categories.push(c(l,e.category)),p=o.last(l.categories)):p=l.categories[t],p.open||p.toggle();var d=a.createElement(p,e,n,i),s=d.header.node().offsetTop;l.padContainer.node().scrollTop=s-l.offsetTop;var u=d.header.style("background-color");return d.header.transition().duration(1500).styleTween("background-color",function(){return r.interpolate(l.options.highlightColor,u)}),d},l.prototype.removeElement=function(e,t){var n=this;a.removeElement(n.categories[e],t),0===n.categories[e].elements.length&&(a.removeCategory(n.categories[e]),n.categories.splice(e,1))},l.prototype.delegateElementRemoval=function(e){var t=this;t.pinPad.removeElement(e)},l.prototype.removeCategory=function(e){var t=this;a.removeCategory(t.categories[e]),t.categories.splice(e,1)},l.prototype.delegateCategoryRemoval=function(e){var t=this;t.pinPad.removeCategory(e)},t.exports=l},{"./CategoryFactory":1,d3:"d3",underscore:"underscore"}],"biojs-vis-pinpad":[function(e,t,n){"use strict";var r=e("./PinPadViewer"),o=e("./PinPadModel"),a=function(e){var t=this;t.model=new o(e.ordering),t.viewer=new r(e.options,e.toPin,t),t.dispatcher=d3.dispatch("add","duplication","remove","unknown","incomplete"),t.addElement=function(e){if(e.category&&e.id&&e.sections&&0!==e.sections.length){var n=t.model.addElement(e);n.error?t.dispatcher.duplication({element:e}):(t.viewer.addElement(e,n.catIndex,n.elIndex,t.model.categories[n.catIndex].elements),t.dispatcher.add({category:e.category,element:e}))}else t.dispatcher.incomplete({element:e})},t.removeElement=function(e){var n=t.model.removeElement(e);n.error?t.dispatcher.unknown({element:e}):(t.viewer.removeElement(n.catIndex,n.elIndex),t.dispatcher.remove({element:n.element}),0===t.model.categories.length||t.model.categories.length===n.catIndex?t.dispatcher.remove({category:n.category}):t.model.categories[n.catIndex].title!==n.category&&t.dispatcher.remove({category:n.category}))},t.removeCategory=function(e){var n=t.model.removeCategory(e);t.viewer.removeCategory(n.catIndex),t.dispatcher.remove({category:e})}};t.exports=a},{"./PinPadModel":4,"./PinPadViewer":5}]},{},["biojs-vis-pinpad"]);
require=function e(t,n,r){function o(i,p){if(!n[i]){if(!t[i]){var l="function"==typeof require&&require;if(!p&&l)return l(i,!0);if(a)return a(i,!0);var d=new Error("Cannot find module '"+i+"'");throw d.code="MODULE_NOT_FOUND",d}var c=n[i]={exports:{}};t[i][0].call(c.exports,function(e){var n=t[i][1][e];return o(n?n:e)},c,c.exports,e,t,n,r)}return n[i].exports}for(var a="function"==typeof require&&require,i=0;i<r.length;i++)o(r[i]);return o}({1:[function(e,t,n){"use strict";var r=(e("d3"),e("underscore")),o=e("./ElementFactory"),a=function(e,t){var n=this;n.pinPadViewer=e,n.title=t,n.open=!0,n.elements=[];var a=n.pinPadViewer.padContainer.append("div").classed("up_pp_category-container",!0);n.header=a.append("div").classed("up_pp_category-header",!0),n.header.title=n.header.append("a").attr("class","up_pp_category-name up_pftv_arrow-down").text(t).on("click",function(){n.toggle()}),n.header.append("span").classed("up_pp_iconContainer",!0).style("float","right").append("div").attr("class","up-pp-icon-trash up_pp_clickable-icon").on("click",function(){n.delegateCategoryRemoval(n.title)}),n.padContainer=a.append("div").classed("up_pp_category-pad",!0),n.remove=function(){for(;n.elements.length>0;)n.elements[0].remove(n.elements[0].id,n.title,!1),n.elements.splice(0,1);a.remove()},n.toggle=function(){"none"===n.padContainer.style("display")?(n.padContainer.style("display","block"),n.header.title.attr("class","up_pp_category-name up_pftv_arrow-down"),n.open=!0):(n.padContainer.style("display","none"),n.header.title.attr("class","up_pp_category-name up_pftv_arrow-right"),n.open=!1)},n.addElement=function(e,t,a){var i=void 0;return t>n.elements.length?(i=o.createElement(n,e),n.elements.push(i)):(n.padContainer.selectAll("*").remove(),r.each(a,function(e,r){var a=r===t?void 0:n.elements[r].open,p=o.createElement(n,e,a);r===t&&(i=p,n.elements.splice(t,0,i))})),i},n.removeElement=function(e){var t=n.elements[e];n.elements.splice(e,1),o.removeElement(t)},n.delegateElementRemoval=function(e){n.pinPadViewer.delegateElementRemoval(e)},n.delegateCategoryRemoval=function(e){n.pinPadViewer.delegateCategoryRemoval(e)}},i=function(){return{createCategory:function(e,t){return new a(e,t)},removeCategory:function(e){e.remove()},createElement:function(e,t,n,r){return e.addElement(t,n,r)},removeElement:function(e,t){e.removeElement(t)}}}();t.exports=i},{"./ElementFactory":3,d3:"d3",underscore:"underscore"}],2:[function(e,t,n){"use strict";var r=e("underscore"),o=function(e,t){var n=this;n.title=e,n.ordering=t,n.elements=[],n.addElement=function(e){var o=0;if(n.ordering&&e.ordering){var a=r.pluck(n.elements,"ordering");r.each(t,function(t){var n=r.sortedIndex(a,e.ordering,t);o+=n,a=r.rest(a,n)})}else o=n.elements.length;return n.elements.splice(o,0,e),o},n.removeElement=function(e){return e>=0&&e<n.elements.length?(n.elements.splice(e,1),e):-1}};t.exports=o},{underscore:"underscore"}],3:[function(e,t,n){"use strict";var r=e("d3"),o=e("underscore"),a=function(e){if("object"==typeof e&&!(e instanceof Array)){var t=o.keys(e);if(2===t.length&&o.contains(t,"value")&&o.contains(t,"link"))return!0}return!1},i=function(e,t,n){n&&"-"!==n?e.append("a").attr("href",n).attr("target","_blank").text(t):e.text(t)},p=function(e,t){"string"==typeof t||"number"==typeof t||"boolean"==typeof t?e.text(t):a(t)?i(e,t.value,t.link):t instanceof Array?o.each(t,function(n,r){var o=e.append("span");p(o,n),r!==t.length-1&&e.append("span").text(", ")}):d(e.append("table"),t)},l=function(e,t,n){var r=e.append("tr");if(0===t.indexOf("styled_")){var o,a;n.key_right===!0?(o=r.append("td"),a=r.append("td").text(n.key+" ")):(o=r.append("td").text(n.key),a=r.append("td")),n.key_style&&o.attr("style",n.key_style),n.value_style&&a.attr("style",n.value_style),p(a,n.value)}else 0===t.indexOf("subsection_")?(r.append("td").attr("colspan",2).classed("up_pp_table_subsection",!0).text(n.title),d(e,n.information)):(r.append("td").text(t.replace(/_/g," ")),p(r.append("td"),n))},d=function(e,t){o.each(t,function(t,n){l(e,n,t)})},c=function(e,t,n){var r=this;r.id=t.id,r.category=e,r.open=n,r.header=void 0,r.tableContainer=void 0,r.table=void 0,r.toggle=function(){"none"===r.tableContainer.style("display")?(r.tableContainer.style("display","block"),r.header.title.attr("class","up_pp_element-name up_pftv_arrow-down"),r.open=!0):(r.tableContainer.style("display","none"),r.header.title.attr("class","up_pp_element-name up_pftv_arrow-right"),r.open=!1)};var a=r.category.padContainer.append("div").attr("id","pinned_elem_id_"+t.id);r.first(r.category.title,a,o.first(t.sections)),r.tail(r.table,o.tail(t.sections))};c.prototype.first=function(e,t,n){var r=this;r.header=t.append("div").classed("up_pp_element-header",!0),r.header.title=r.header.append("a").attr("class",function(){return r.open===!1?"up_pp_element-name up_pftv_arrow-right":"up_pp_element-name up_pftv_arrow-down"}).text(n.title).on("click",function(){r.toggle()}),r.header.append("span").classed("up_pp_iconContainer",!0).style("float","right").append("div").attr("class","up-pp-icon-trash up_pp_clickable-icon").on("click",function(){r.category.delegateElementRemoval(r.id)}),r.tableContainer=t.append("div"),r.open===!1&&r.tableContainer.style("display","none"),r.table=r.tableContainer.append("table").attr("width","100%"),d(r.table,n.information)},c.prototype.tail=function(e,t){o.each(t,function(t){e.append("tr").classed("up_pp_element-section",!0).append("td").attr("colspan",2).text(t.title),d(e,t.information)})},c.prototype.remove=function(e){var t=r.select("#pinned_elem_id_"+e);t.remove()};var s=function(){return{createElement:function(e,t,n){return new c(e,t,n)},removeElement:function(e){e.remove(e.id)}}}();t.exports=s},{d3:"d3",underscore:"underscore"}],4:[function(e,t,n){"use strict";var r=e("underscore"),o=e("./CategoryModel"),a=function(e,t,n){return new o(t,n)},i=function(e){var t=this;t.categories=[],t.addElement=function(n){var o,i=-1,p=r.find(t.categories,function(e,t){return e.title===n.category&&(o=e,i=t),r.find(e.elements,function(e){return n.id===e.id})});if(p)return{error:"duplication"};o&&-1!==i||(o=a(t,n.category,e),t.categories.push(o),i=t.categories.length-1);var l=o.addElement(n);return{catIndex:i,elIndex:l}},t.removeElement=function(e){var n=-1,o=-1;if(r.find(t.categories,function(t,a){var i=r.find(t.elements,function(t,n){return o=n,t.id===e});return i&&(n=a),-1!==n}),-1!==n&&-1!==o){var a=t.categories[n].title,i=t.categories[n].elements[o];return t.categories[n].removeElement(o),0===t.categories[n].elements.length&&t.categories.splice(n,1),{catIndex:n,elIndex:o,category:a,element:i}}return{error:"unknown"}},t.removeCategory=function(e){var n=-1,o=r.find(t.categories,function(t,r){return n=r,t.title===e});return o&&t.categories.splice(n,1),{catIndex:n}}};t.exports=i},{"./CategoryModel":2,underscore:"underscore"}],5:[function(e,t,n){"use strict";var r=e("d3"),o=e("underscore"),a=e("./CategoryFactory"),i={height:"500px",width:"250px",highlightColor:"green"},p=function(e,t){var n=r.select(e.options.el).text("").append("div").classed("up_pp_main-container",!0).style("width",e.options.width),o=n.append("div").classed("up_pp_mainTitle",!0);o.append("div").classed("up_pp_iconContainer",!0).append("div").classed("up-pp-icon-pin",!0).classed("up_pp_icon",!0),e.offsetTop=o.node().offsetHeight+o.node().offsetTop,e.padContainer=n.append("div").classed("up_pp_pad",!0).style("height",e.options.height),e.options.toPin&&e.addElement(t)},l=function(e,t,n){var r=this;r.options=o.extend({},i,e),r.pinPad=n,r.offsetTop=void 0,r.categories=[],p(r,t)},d=function(e,t){return a.createCategory(e,t)};l.prototype.addElement=function(e,t,n,i){var p,l=this;t>=l.categories.length?(l.categories.push(d(l,e.category)),p=o.last(l.categories)):p=l.categories[t],p.open||p.toggle();var c=a.createElement(p,e,n,i),s=c.header.node().offsetTop;l.padContainer.node().scrollTop=s-l.offsetTop;var u=c.header.style("background-color");return c.header.transition().duration(1500).styleTween("background-color",function(){return r.interpolate(l.options.highlightColor,u)}),c},l.prototype.removeElement=function(e,t){var n=this;a.removeElement(n.categories[e],t),0===n.categories[e].elements.length&&(a.removeCategory(n.categories[e]),n.categories.splice(e,1))},l.prototype.delegateElementRemoval=function(e){var t=this;t.pinPad.removeElement(e)},l.prototype.removeCategory=function(e){var t=this;a.removeCategory(t.categories[e]),t.categories.splice(e,1)},l.prototype.delegateCategoryRemoval=function(e){var t=this;t.pinPad.removeCategory(e)},t.exports=l},{"./CategoryFactory":1,d3:"d3",underscore:"underscore"}],"biojs-vis-pinpad":[function(e,t,n){"use strict";var r=e("./PinPadViewer"),o=e("./PinPadModel"),a=function(e){var t=this;t.model=new o(e.ordering),t.viewer=new r(e.options,e.toPin,t),t.dispatcher=d3.dispatch("add","duplication","remove","unknown","incomplete"),t.addElement=function(e){if(e.category&&e.id&&e.sections&&0!==e.sections.length){var n=t.model.addElement(e);n.error?t.dispatcher.duplication({element:e}):(t.viewer.addElement(e,n.catIndex,n.elIndex,t.model.categories[n.catIndex].elements),t.dispatcher.add({category:e.category,element:e}))}else t.dispatcher.incomplete({element:e})},t.removeElement=function(e){var n=t.model.removeElement(e);n.error?t.dispatcher.unknown({element:e}):(t.viewer.removeElement(n.catIndex,n.elIndex),t.dispatcher.remove({element:n.element}),0===t.model.categories.length||t.model.categories.length===n.catIndex?t.dispatcher.remove({category:n.category}):t.model.categories[n.catIndex].title!==n.category&&t.dispatcher.remove({category:n.category}))},t.removeCategory=function(e){var n=t.model.removeCategory(e);t.viewer.removeCategory(n.catIndex),t.dispatcher.remove({category:e})}};t.exports=a},{"./PinPadModel":4,"./PinPadViewer":5}]},{},["biojs-vis-pinpad"]);
{
"c:\\workspace\\biojs-vis-pinpad\\lib\\PinPad.js":{"path":"c:\\workspace\\biojs-vis-pinpad\\lib\\PinPad.js","s":{"1":1,"2":1,"3":1,"4":0,"5":0,"6":0,"7":0,"8":0,"9":0,"10":0,"11":0,"12":0,"13":0,"14":0,"15":0,"16":0,"17":0,"18":0,"19":0,"20":0,"21":0,"22":0,"23":0,"24":0,"25":0,"26":0,"27":0,"28":0,"29":0,"30":1},"b":{"1":[0,0],"2":[0,0,0,0],"3":[0,0],"4":[0,0],"5":[0,0],"6":[0,0],"7":[0,0]},"f":{"1":0,"2":0,"3":0,"4":0},"fnMap":{"1":{"name":"(anonymous_1)","line":8,"loc":{"start":{"line":8,"column":13},"end":{"line":8,"column":28}}},"2":{"name":"(anonymous_2)","line":14,"loc":{"start":{"line":14,"column":24},"end":{"line":14,"column":42}}},"3":{"name":"(anonymous_3)","line":32,"loc":{"start":{"line":32,"column":27},"end":{"line":32,"column":42}}},"4":{"name":"(anonymous_4)","line":47,"loc":{"start":{"line":47,"column":28},"end":{"line":47,"column":47}}}},"statementMap":{"1":{"start":{"line":5,"column":0},"end":{"line":5,"column":45}},"2":{"start":{"line":6,"column":0},"end":{"line":6,"column":43}},"3":{"start":{"line":8,"column":0},"end":{"line":52,"column":2}},"4":{"start":{"line":9,"column":4},"end":{"line":9,"column":22}},"5":{"start":{"line":10,"column":4},"end":{"line":10,"column":50}},"6":{"start":{"line":11,"column":4},"end":{"line":11,"column":71}},"7":{"start":{"line":12,"column":4},"end":{"line":12,"column":93}},"8":{"start":{"line":14,"column":4},"end":{"line":30,"column":6}},"9":{"start":{"line":15,"column":8},"end":{"line":29,"column":9}},"10":{"start":{"line":16,"column":12},"end":{"line":16,"column":58}},"11":{"start":{"line":17,"column":12},"end":{"line":26,"column":13}},"12":{"start":{"line":18,"column":16},"end":{"line":18,"column":66}},"13":{"start":{"line":20,"column":16},"end":{"line":21,"column":71}},"14":{"start":{"line":22,"column":16},"end":{"line":25,"column":19}},"15":{"start":{"line":28,"column":12},"end":{"line":28,"column":61}},"16":{"start":{"line":32,"column":4},"end":{"line":45,"column":6}},"17":{"start":{"line":33,"column":8},"end":{"line":33,"column":54}},"18":{"start":{"line":34,"column":8},"end":{"line":44,"column":9}},"19":{"start":{"line":35,"column":12},"end":{"line":35,"column":55}},"20":{"start":{"line":37,"column":12},"end":{"line":37,"column":73}},"21":{"start":{"line":38,"column":12},"end":{"line":38,"column":64}},"22":{"start":{"line":39,"column":12},"end":{"line":43,"column":13}},"23":{"start":{"line":40,"column":16},"end":{"line":40,"column":70}},"24":{"start":{"line":41,"column":19},"end":{"line":43,"column":13}},"25":{"start":{"line":42,"column":16},"end":{"line":42,"column":70}},"26":{"start":{"line":47,"column":4},"end":{"line":51,"column":6}},"27":{"start":{"line":48,"column":8},"end":{"line":48,"column":59}},"28":{"start":{"line":49,"column":8},"end":{"line":49,"column":54}},"29":{"start":{"line":50,"column":8},"end":{"line":50,"column":55}},"30":{"start":{"line":54,"column":0},"end":{"line":54,"column":24}}},"branchMap":{"1":{"line":15,"type":"if","locations":[{"start":{"line":15,"column":8},"end":{"line":15,"column":8}},{"start":{"line":15,"column":8},"end":{"line":15,"column":8}}]},"2":{"line":15,"type":"binary-expr","locations":[{"start":{"line":15,"column":12},"end":{"line":15,"column":28}},{"start":{"line":15,"column":32},"end":{"line":15,"column":42}},{"start":{"line":15,"column":46},"end":{"line":15,"column":62}},{"start":{"line":15,"column":67},"end":{"line":15,"column":96}}]},"3":{"line":17,"type":"if","locations":[{"start":{"line":17,"column":12},"end":{"line":17,"column":12}},{"start":{"line":17,"column":12},"end":{"line":17,"column":12}}]},"4":{"line":34,"type":"if","locations":[{"start":{"line":34,"column":8},"end":{"line":34,"column":8}},{"start":{"line":34,"column":8},"end":{"line":34,"column":8}}]},"5":{"line":39,"type":"if","locations":[{"start":{"line":39,"column":12},"end":{"line":39,"column":12}},{"start":{"line":39,"column":12},"end":{"line":39,"column":12}}]},"6":{"line":39,"type":"binary-expr","locations":[{"start":{"line":39,"column":17},"end":{"line":39,"column":53}},{"start":{"line":39,"column":59},"end":{"line":39,"column":109}}]},"7":{"line":41,"type":"if","locations":[{"start":{"line":41,"column":19},"end":{"line":41,"column":19}},{"start":{"line":41,"column":19},"end":{"line":41,"column":19}}]}},"l":{"5":1,"6":1,"8":1,"9":0,"10":0,"11":0,"12":0,"14":0,"15":0,"16":0,"17":0,"18":0,"20":0,"22":0,"28":0,"32":0,"33":0,"34":0,"35":0,"37":0,"38":0,"39":0,"40":0,"41":0,"42":0,"47":0,"48":0,"49":0,"50":0,"54":1}},
"c:\\workspace\\biojs-vis-pinpad\\lib\\PinPadViewer.js":{"path":"c:\\workspace\\biojs-vis-pinpad\\lib\\PinPadViewer.js","s":{"1":1,"2":1,"3":1,"4":1,"5":1,"6":0,"7":0,"8":0,"9":0,"10":0,"11":0,"12":0,"13":1,"14":0,"15":0,"16":0,"17":0,"18":0,"19":0,"20":1,"21":0,"22":1,"23":0,"24":0,"25":0,"26":0,"27":0,"28":0,"29":0,"30":0,"31":0,"32":0,"33":0,"34":0,"35":0,"36":0,"37":0,"38":1,"39":0,"40":0,"41":0,"42":0,"43":0,"44":1,"45":0,"46":0,"47":1,"48":0,"49":0,"50":0,"51":1,"52":0,"53":0,"54":1},"b":{"1":[0,0],"2":[0,0],"3":[0,0],"4":[0,0]},"f":{"1":0,"2":0,"3":0,"4":0,"5":0,"6":0,"7":0,"8":0,"9":0},"fnMap":{"1":{"name":"(anonymous_1)","line":27,"loc":{"start":{"line":27,"column":11},"end":{"line":27,"column":41}}},"2":{"name":"(anonymous_2)","line":51,"loc":{"start":{"line":51,"column":19},"end":{"line":51,"column":48}}},"3":{"name":"(anonymous_3)","line":61,"loc":{"start":{"line":61,"column":18},"end":{"line":61,"column":51}}},"4":{"name":"(anonymous_4)","line":65,"loc":{"start":{"line":65,"column":36},"end":{"line":65,"column":84}}},"5":{"name":"(anonymous_5)","line":85,"loc":{"start":{"line":85,"column":40},"end":{"line":85,"column":51}}},"6":{"name":"(anonymous_6)","line":92,"loc":{"start":{"line":92,"column":39},"end":{"line":92,"column":67}}},"7":{"name":"(anonymous_7)","line":101,"loc":{"start":{"line":101,"column":48},"end":{"line":101,"column":63}}},"8":{"name":"(anonymous_8)","line":106,"loc":{"start":{"line":106,"column":40},"end":{"line":106,"column":59}}},"9":{"name":"(anonymous_9)","line":112,"loc":{"start":{"line":112,"column":49},"end":{"line":112,"column":68}}}},"statementMap":{"1":{"start":{"line":15,"column":0},"end":{"line":15,"column":23}},"2":{"start":{"line":16,"column":0},"end":{"line":16,"column":30}},"3":{"start":{"line":17,"column":0},"end":{"line":17,"column":51}},"4":{"start":{"line":22,"column":0},"end":{"line":26,"column":2}},"5":{"start":{"line":27,"column":0},"end":{"line":46,"column":2}},"6":{"start":{"line":28,"column":4},"end":{"line":32,"column":50}},"7":{"start":{"line":34,"column":4},"end":{"line":34,"column":89}},"8":{"start":{"line":35,"column":4},"end":{"line":36,"column":83}},"9":{"start":{"line":37,"column":4},"end":{"line":37,"column":88}},"10":{"start":{"line":39,"column":4},"end":{"line":41,"column":54}},"11":{"start":{"line":43,"column":4},"end":{"line":45,"column":5}},"12":{"start":{"line":44,"column":8},"end":{"line":44,"column":39}},"13":{"start":{"line":51,"column":0},"end":{"line":59,"column":2}},"14":{"start":{"line":52,"column":4},"end":{"line":52,"column":28}},"15":{"start":{"line":53,"column":4},"end":{"line":53,"column":59}},"16":{"start":{"line":54,"column":4},"end":{"line":54,"column":33}},"17":{"start":{"line":55,"column":4},"end":{"line":55,"column":39}},"18":{"start":{"line":56,"column":4},"end":{"line":56,"column":33}},"19":{"start":{"line":58,"column":4},"end":{"line":58,"column":30}},"20":{"start":{"line":61,"column":0},"end":{"line":63,"column":2}},"21":{"start":{"line":62,"column":4},"end":{"line":62,"column":66}},"22":{"start":{"line":65,"column":0},"end":{"line":90,"column":2}},"23":{"start":{"line":66,"column":4},"end":{"line":66,"column":28}},"24":{"start":{"line":68,"column":4},"end":{"line":68,"column":17}},"25":{"start":{"line":69,"column":4},"end":{"line":74,"column":5}},"26":{"start":{"line":70,"column":8},"end":{"line":70,"column":80}},"27":{"start":{"line":71,"column":8},"end":{"line":71,"column":51}},"28":{"start":{"line":73,"column":8},"end":{"line":73,"column":53}},"29":{"start":{"line":75,"column":4},"end":{"line":77,"column":5}},"30":{"start":{"line":76,"column":8},"end":{"line":76,"column":26}},"31":{"start":{"line":78,"column":4},"end":{"line":78,"column":87}},"32":{"start":{"line":79,"column":4},"end":{"line":79,"column":48}},"33":{"start":{"line":80,"column":4},"end":{"line":80,"column":80}},"34":{"start":{"line":81,"column":4},"end":{"line":81,"column":57}},"35":{"start":{"line":82,"column":4},"end":{"line":88,"column":5}},"36":{"start":{"line":86,"column":12},"end":{"line":86,"column":78}},"37":{"start":{"line":89,"column":4},"end":{"line":89,"column":19}},"38":{"start":{"line":92,"column":0},"end":{"line":99,"column":2}},"39":{"start":{"line":93,"column":4},"end":{"line":93,"column":28}},"40":{"start":{"line":94,"column":4},"end":{"line":94,"column":78}},"41":{"start":{"line":95,"column":4},"end":{"line":98,"column":5}},"42":{"start":{"line":96,"column":8},"end":{"line":96,"column":74}},"43":{"start":{"line":97,"column":8},"end":{"line":97,"column":52}},"44":{"start":{"line":101,"column":0},"end":{"line":104,"column":2}},"45":{"start":{"line":102,"column":4},"end":{"line":102,"column":28}},"46":{"start":{"line":103,"column":4},"end":{"line":103,"column":44}},"47":{"start":{"line":106,"column":0},"end":{"line":110,"column":2}},"48":{"start":{"line":107,"column":4},"end":{"line":107,"column":28}},"49":{"start":{"line":108,"column":4},"end":{"line":108,"column":70}},"50":{"start":{"line":109,"column":4},"end":{"line":109,"column":48}},"51":{"start":{"line":112,"column":0},"end":{"line":115,"column":2}},"52":{"start":{"line":113,"column":4},"end":{"line":113,"column":28}},"53":{"start":{"line":114,"column":4},"end":{"line":114,"column":49}},"54":{"start":{"line":117,"column":0},"end":{"line":117,"column":30}}},"branchMap":{"1":{"line":43,"type":"if","locations":[{"start":{"line":43,"column":4},"end":{"line":43,"column":4}},{"start":{"line":43,"column":4},"end":{"line":43,"column":4}}]},"2":{"line":69,"type":"if","locations":[{"start":{"line":69,"column":4},"end":{"line":69,"column":4}},{"start":{"line":69,"column":4},"end":{"line":69,"column":4}}]},"3":{"line":75,"type":"if","locations":[{"start":{"line":75,"column":4},"end":{"line":75,"column":4}},{"start":{"line":75,"column":4},"end":{"line":75,"column":4}}]},"4":{"line":95,"type":"if","locations":[{"start":{"line":95,"column":4},"end":{"line":95,"column":4}},{"start":{"line":95,"column":4},"end":{"line":95,"column":4}}]}},"l":{"15":1,"16":1,"17":1,"22":1,"27":1,"28":0,"34":0,"35":0,"37":0,"39":0,"43":0,"44":0,"51":1,"52":0,"53":0,"54":0,"55":0,"56":0,"58":0,"61":1,"62":0,"65":1,"66":0,"68":0,"69":0,"70":0,"71":0,"73":0,"75":0,"76":0,"78":0,"79":0,"80":0,"81":0,"82":0,"86":0,"89":0,"92":1,"93":0,"94":0,"95":0,"96":0,"97":0,"101":1,"102":0,"103":0,"106":1,"107":0,"108":0,"109":0,"112":1,"113":0,"114":0,"117":1}},
"c:\\workspace\\biojs-vis-pinpad\\lib\\CategoryFactory.js":{"path":"c:\\workspace\\biojs-vis-pinpad\\lib\\CategoryFactory.js","s":{"1":1,"2":1,"3":1,"4":1,"5":0,"6":0,"7":0,"8":0,"9":0,"10":0,"11":0,"12":0,"13":0,"14":0,"15":0,"16":0,"17":0,"18":0,"19":0,"20":0,"21":0,"22":0,"23":0,"24":0,"25":0,"26":0,"27":0,"28":0,"29":0,"30":0,"31":0,"32":0,"33":0,"34":0,"35":0,"36":0,"37":0,"38":0,"39":0,"40":0,"41":0,"42":0,"43":0,"44":0,"45":0,"46":0,"47":0,"48":0,"49":0,"50":0,"51":1,"52":1,"53":0,"54":0,"55":0,"56":0,"57":1},"b":{"1":[0,0],"2":[0,0],"3":[0,0],"4":[0,0]},"f":{"1":0,"2":0,"3":0,"4":0,"5":0,"6":0,"7":0,"8":0,"9":0,"10":0,"11":1,"12":0,"13":0,"14":0,"15":0},"fnMap":{"1":{"name":"(anonymous_1)","line":9,"loc":{"start":{"line":9,"column":15},"end":{"line":9,"column":48}}},"2":{"name":"(anonymous_2)","line":22,"loc":{"start":{"line":22,"column":21},"end":{"line":22,"column":32}}},"3":{"name":"(anonymous_3)","line":30,"loc":{"start":{"line":30,"column":21},"end":{"line":30,"column":32}}},"4":{"name":"(anonymous_4)","line":36,"loc":{"start":{"line":36,"column":22},"end":{"line":36,"column":33}}},"5":{"name":"(anonymous_5)","line":44,"loc":{"start":{"line":44,"column":22},"end":{"line":44,"column":33}}},"6":{"name":"(anonymous_6)","line":56,"loc":{"start":{"line":56,"column":26},"end":{"line":56,"column":67}}},"7":{"name":"(anonymous_7)","line":63,"loc":{"start":{"line":63,"column":32},"end":{"line":63,"column":54}}},"8":{"name":"(anonymous_8)","line":75,"loc":{"start":{"line":75,"column":29},"end":{"line":75,"column":47}}},"9":{"name":"(anonymous_9)","line":81,"loc":{"start":{"line":81,"column":38},"end":{"line":81,"column":53}}},"10":{"name":"(anonymous_10)","line":85,"loc":{"start":{"line":85,"column":39},"end":{"line":85,"column":58}}},"11":{"name":"(anonymous_11)","line":90,"loc":{"start":{"line":90,"column":22},"end":{"line":90,"column":34}}},"12":{"name":"(anonymous_12)","line":92,"loc":{"start":{"line":92,"column":24},"end":{"line":92,"column":57}}},"13":{"name":"(anonymous_13)","line":95,"loc":{"start":{"line":95,"column":24},"end":{"line":95,"column":43}}},"14":{"name":"(anonymous_14)","line":98,"loc":{"start":{"line":98,"column":23},"end":{"line":98,"column":70}}},"15":{"name":"(anonymous_15)","line":101,"loc":{"start":{"line":101,"column":23},"end":{"line":101,"column":51}}}},"statementMap":{"1":{"start":{"line":5,"column":0},"end":{"line":5,"column":23}},"2":{"start":{"line":6,"column":0},"end":{"line":6,"column":30}},"3":{"start":{"line":7,"column":0},"end":{"line":7,"column":49}},"4":{"start":{"line":9,"column":0},"end":{"line":88,"column":2}},"5":{"start":{"line":10,"column":4},"end":{"line":10,"column":24}},"6":{"start":{"line":11,"column":4},"end":{"line":11,"column":41}},"7":{"start":{"line":12,"column":4},"end":{"line":12,"column":30}},"8":{"start":{"line":13,"column":4},"end":{"line":13,"column":25}},"9":{"start":{"line":14,"column":4},"end":{"line":14,"column":27}},"10":{"start":{"line":16,"column":4},"end":{"line":16,"column":119}},"11":{"start":{"line":18,"column":4},"end":{"line":18,"column":93}},"12":{"start":{"line":19,"column":4},"end":{"line":24,"column":11}},"13":{"start":{"line":23,"column":12},"end":{"line":23,"column":30}},"14":{"start":{"line":25,"column":4},"end":{"line":32,"column":11}},"15":{"start":{"line":31,"column":12},"end":{"line":31,"column":61}},"16":{"start":{"line":34,"column":4},"end":{"line":34,"column":96}},"17":{"start":{"line":36,"column":4},"end":{"line":42,"column":6}},"18":{"start":{"line":37,"column":8},"end":{"line":40,"column":9}},"19":{"start":{"line":38,"column":12},"end":{"line":38,"column":88}},"20":{"start":{"line":39,"column":12},"end":{"line":39,"column":43}},"21":{"start":{"line":41,"column":8},"end":{"line":41,"column":35}},"22":{"start":{"line":44,"column":4},"end":{"line":54,"column":6}},"23":{"start":{"line":45,"column":8},"end":{"line":53,"column":9}},"24":{"start":{"line":46,"column":12},"end":{"line":46,"column":60}},"25":{"start":{"line":47,"column":12},"end":{"line":47,"column":90}},"26":{"start":{"line":48,"column":12},"end":{"line":48,"column":33}},"27":{"start":{"line":50,"column":12},"end":{"line":50,"column":59}},"28":{"start":{"line":51,"column":12},"end":{"line":51,"column":91}},"29":{"start":{"line":52,"column":12},"end":{"line":52,"column":34}},"30":{"start":{"line":56,"column":4},"end":{"line":73,"column":6}},"31":{"start":{"line":57,"column":8},"end":{"line":57,"column":32}},"32":{"start":{"line":58,"column":8},"end":{"line":71,"column":9}},"33":{"start":{"line":59,"column":12},"end":{"line":59,"column":68}},"34":{"start":{"line":60,"column":12},"end":{"line":60,"column":44}},"35":{"start":{"line":62,"column":12},"end":{"line":62,"column":58}},"36":{"start":{"line":63,"column":12},"end":{"line":70,"column":15}},"37":{"start":{"line":64,"column":16},"end":{"line":64,"column":93}},"38":{"start":{"line":65,"column":16},"end":{"line":65,"column":79}},"39":{"start":{"line":66,"column":16},"end":{"line":69,"column":17}},"40":{"start":{"line":67,"column":20},"end":{"line":67,"column":36}},"41":{"start":{"line":68,"column":20},"end":{"line":68,"column":70}},"42":{"start":{"line":72,"column":8},"end":{"line":72,"column":23}},"43":{"start":{"line":75,"column":4},"end":{"line":79,"column":6}},"44":{"start":{"line":76,"column":8},"end":{"line":76,"column":49}},"45":{"start":{"line":77,"column":8},"end":{"line":77,"column":45}},"46":{"start":{"line":78,"column":8},"end":{"line":78,"column":46}},"47":{"start":{"line":81,"column":4},"end":{"line":83,"column":6}},"48":{"start":{"line":82,"column":8},"end":{"line":82,"column":59}},"49":{"start":{"line":85,"column":4},"end":{"line":87,"column":6}},"50":{"start":{"line":86,"column":8},"end":{"line":86,"column":64}},"51":{"start":{"line":90,"column":0},"end":{"line":105,"column":4}},"52":{"start":{"line":91,"column":4},"end":{"line":104,"column":6}},"53":{"start":{"line":93,"column":12},"end":{"line":93,"column":56}},"54":{"start":{"line":96,"column":12},"end":{"line":96,"column":30}},"55":{"start":{"line":99,"column":12},"end":{"line":99,"column":67}},"56":{"start":{"line":102,"column":12},"end":{"line":102,"column":44}},"57":{"start":{"line":107,"column":0},"end":{"line":107,"column":33}}},"branchMap":{"1":{"line":45,"type":"if","locations":[{"start":{"line":45,"column":8},"end":{"line":45,"column":8}},{"start":{"line":45,"column":8},"end":{"line":45,"column":8}}]},"2":{"line":58,"type":"if","locations":[{"start":{"line":58,"column":8},"end":{"line":58,"column":8}},{"start":{"line":58,"column":8},"end":{"line":58,"column":8}}]},"3":{"line":64,"type":"cond-expr","locations":[{"start":{"line":64,"column":51},"end":{"line":64,"column":60}},{"start":{"line":64,"column":63},"end":{"line":64,"column":92}}]},"4":{"line":66,"type":"if","locations":[{"start":{"line":66,"column":16},"end":{"line":66,"column":16}},{"start":{"line":66,"column":16},"end":{"line":66,"column":16}}]}},"l":{"5":1,"6":1,"7":1,"9":1,"10":0,"11":0,"12":0,"13":0,"14":0,"16":0,"18":0,"19":0,"23":0,"25":0,"31":0,"34":0,"36":0,"37":0,"38":0,"39":0,"41":0,"44":0,"45":0,"46":0,"47":0,"48":0,"50":0,"51":0,"52":0,"56":0,"57":0,"58":0,"59":0,"60":0,"62":0,"63":0,"64":0,"65":0,"66":0,"67":0,"68":0,"72":0,"75":0,"76":0,"77":0,"78":0,"81":0,"82":0,"85":0,"86":0,"90":1,"91":1,"93":0,"96":0,"99":0,"102":0,"107":1}},
"c:\\workspace\\biojs-vis-pinpad\\lib\\ElementFactory.js":{"path":"c:\\workspace\\biojs-vis-pinpad\\lib\\ElementFactory.js","s":{"1":1,"2":1,"3":1,"4":0,"5":0,"6":0,"7":0,"8":0,"9":1,"10":0,"11":0,"12":0,"13":1,"14":0,"15":0,"16":0,"17":0,"18":0,"19":0,"20":0,"21":0,"22":0,"23":0,"24":0,"25":1,"26":0,"27":0,"28":0,"29":0,"30":0,"31":0,"32":0,"33":0,"34":0,"35":0,"36":0,"37":0,"38":0,"39":0,"40":1,"41":0,"42":0,"43":1,"44":0,"45":0,"46":0,"47":0,"48":0,"49":0,"50":0,"51":0,"52":0,"53":0,"54":0,"55":0,"56":0,"57":0,"58":0,"59":0,"60":0,"61":0,"62":1,"63":0,"64":0,"65":0,"66":0,"67":0,"68":0,"69":0,"70":0,"71":0,"72":0,"73":0,"74":0,"75":0,"76":0,"77":1,"78":0,"79":0,"80":0,"81":1,"82":0,"83":0,"84":1,"85":1,"86":0,"87":0,"88":1},"b":{"1":[0,0],"2":[0,0],"3":[0,0],"4":[0,0,0],"5":[0,0],"6":[0,0],"7":[0,0],"8":[0,0,0],"9":[0,0],"10":[0,0],"11":[0,0],"12":[0,0],"13":[0,0],"14":[0,0],"15":[0,0],"16":[0,0],"17":[0,0],"18":[0,0]},"f":{"1":0,"2":0,"3":0,"4":0,"5":0,"6":0,"7":0,"8":0,"9":0,"10":0,"11":0,"12":0,"13":0,"14":0,"15":0,"16":0,"17":1,"18":0,"19":0},"fnMap":{"1":{"name":"(anonymous_1)","line":8,"loc":{"start":{"line":8,"column":13},"end":{"line":8,"column":28}}},"2":{"name":"(anonymous_2)","line":18,"loc":{"start":{"line":18,"column":14},"end":{"line":18,"column":54}}},"3":{"name":"(anonymous_3)","line":29,"loc":{"start":{"line":29,"column":15},"end":{"line":29,"column":41}}},"4":{"name":"(anonymous_4)","line":35,"loc":{"start":{"line":35,"column":21},"end":{"line":35,"column":44}}},"5":{"name":"(anonymous_5)","line":47,"loc":{"start":{"line":47,"column":15},"end":{"line":47,"column":42}}},"6":{"name":"(anonymous_6)","line":71,"loc":{"start":{"line":71,"column":14},"end":{"line":71,"column":36}}},"7":{"name":"(anonymous_7)","line":72,"loc":{"start":{"line":72,"column":17},"end":{"line":72,"column":37}}},"8":{"name":"(anonymous_8)","line":77,"loc":{"start":{"line":77,"column":14},"end":{"line":77,"column":45}}},"9":{"name":"(anonymous_9)","line":86,"loc":{"start":{"line":86,"column":21},"end":{"line":86,"column":32}}},"10":{"name":"(anonymous_10)","line":104,"loc":{"start":{"line":104,"column":26},"end":{"line":104,"column":65}}},"11":{"name":"(anonymous_11)","line":108,"loc":{"start":{"line":108,"column":23},"end":{"line":108,"column":34}}},"12":{"name":"(anonymous_12)","line":116,"loc":{"start":{"line":116,"column":21},"end":{"line":116,"column":32}}},"13":{"name":"(anonymous_13)","line":124,"loc":{"start":{"line":124,"column":21},"end":{"line":124,"column":32}}},"14":{"name":"(anonymous_14)","line":136,"loc":{"start":{"line":136,"column":25},"end":{"line":136,"column":55}}},"15":{"name":"(anonymous_15)","line":137,"loc":{"start":{"line":137,"column":21},"end":{"line":137,"column":39}}},"16":{"name":"(anonymous_16)","line":147,"loc":{"start":{"line":147,"column":27},"end":{"line":147,"column":40}}},"17":{"name":"(anonymous_17)","line":152,"loc":{"start":{"line":152,"column":21},"end":{"line":152,"column":33}}},"18":{"name":"(anonymous_18)","line":154,"loc":{"start":{"line":154,"column":23},"end":{"line":154,"column":54}}},"19":{"name":"(anonymous_19)","line":157,"loc":{"start":{"line":157,"column":23},"end":{"line":157,"column":41}}}},"statementMap":{"1":{"start":{"line":5,"column":0},"end":{"line":5,"column":23}},"2":{"start":{"line":6,"column":0},"end":{"line":6,"column":30}},"3":{"start":{"line":8,"column":0},"end":{"line":16,"column":2}},"4":{"start":{"line":9,"column":4},"end":{"line":14,"column":5}},"5":{"start":{"line":10,"column":8},"end":{"line":10,"column":32}},"6":{"start":{"line":11,"column":8},"end":{"line":13,"column":9}},"7":{"start":{"line":12,"column":12},"end":{"line":12,"column":24}},"8":{"start":{"line":15,"column":4},"end":{"line":15,"column":16}},"9":{"start":{"line":18,"column":0},"end":{"line":27,"column":2}},"10":{"start":{"line":19,"column":4},"end":{"line":26,"column":5}},"11":{"start":{"line":20,"column":8},"end":{"line":23,"column":28}},"12":{"start":{"line":25,"column":8},"end":{"line":25,"column":33}},"13":{"start":{"line":29,"column":0},"end":{"line":45,"column":2}},"14":{"start":{"line":30,"column":4},"end":{"line":44,"column":5}},"15":{"start":{"line":31,"column":8},"end":{"line":31,"column":29}},"16":{"start":{"line":32,"column":11},"end":{"line":44,"column":5}},"17":{"start":{"line":33,"column":8},"end":{"line":33,"column":50}},"18":{"start":{"line":34,"column":11},"end":{"line":44,"column":5}},"19":{"start":{"line":35,"column":8},"end":{"line":41,"column":11}},"20":{"start":{"line":36,"column":12},"end":{"line":36,"column":48}},"21":{"start":{"line":37,"column":12},"end":{"line":37,"column":34}},"22":{"start":{"line":38,"column":12},"end":{"line":40,"column":13}},"23":{"start":{"line":39,"column":16},"end":{"line":39,"column":52}},"24":{"start":{"line":43,"column":8},"end":{"line":43,"column":49}},"25":{"start":{"line":47,"column":0},"end":{"line":69,"column":2}},"26":{"start":{"line":48,"column":4},"end":{"line":48,"column":32}},"27":{"start":{"line":49,"column":4},"end":{"line":68,"column":5}},"28":{"start":{"line":50,"column":8},"end":{"line":50,"column":53}},"29":{"start":{"line":51,"column":8},"end":{"line":53,"column":9}},"30":{"start":{"line":52,"column":12},"end":{"line":52,"column":50}},"31":{"start":{"line":54,"column":8},"end":{"line":54,"column":39}},"32":{"start":{"line":55,"column":8},"end":{"line":57,"column":9}},"33":{"start":{"line":56,"column":12},"end":{"line":56,"column":53}},"34":{"start":{"line":58,"column":8},"end":{"line":58,"column":38}},"35":{"start":{"line":59,"column":11},"end":{"line":68,"column":5}},"36":{"start":{"line":60,"column":8},"end":{"line":63,"column":30}},"37":{"start":{"line":64,"column":8},"end":{"line":64,"column":41}},"38":{"start":{"line":66,"column":8},"end":{"line":66,"column":53}},"39":{"start":{"line":67,"column":8},"end":{"line":67,"column":40}},"40":{"start":{"line":71,"column":0},"end":{"line":75,"column":2}},"41":{"start":{"line":72,"column":4},"end":{"line":74,"column":7}},"42":{"start":{"line":73,"column":8},"end":{"line":73,"column":35}},"43":{"start":{"line":77,"column":0},"end":{"line":102,"column":2}},"44":{"start":{"line":78,"column":4},"end":{"line":78,"column":23}},"45":{"start":{"line":79,"column":4},"end":{"line":79,"column":25}},"46":{"start":{"line":80,"column":4},"end":{"line":80,"column":32}},"47":{"start":{"line":81,"column":4},"end":{"line":81,"column":24}},"48":{"start":{"line":82,"column":4},"end":{"line":82,"column":31}},"49":{"start":{"line":83,"column":4},"end":{"line":83,"column":39}},"50":{"start":{"line":84,"column":4},"end":{"line":84,"column":30}},"51":{"start":{"line":86,"column":4},"end":{"line":96,"column":6}},"52":{"start":{"line":87,"column":8},"end":{"line":95,"column":9}},"53":{"start":{"line":88,"column":12},"end":{"line":88,"column":61}},"54":{"start":{"line":89,"column":12},"end":{"line":89,"column":88}},"55":{"start":{"line":90,"column":12},"end":{"line":90,"column":32}},"56":{"start":{"line":92,"column":12},"end":{"line":92,"column":60}},"57":{"start":{"line":93,"column":12},"end":{"line":93,"column":89}},"58":{"start":{"line":94,"column":12},"end":{"line":94,"column":33}},"59":{"start":{"line":98,"column":4},"end":{"line":98,"column":108}},"60":{"start":{"line":100,"column":4},"end":{"line":100,"column":81}},"61":{"start":{"line":101,"column":4},"end":{"line":101,"column":55}},"62":{"start":{"line":104,"column":0},"end":{"line":134,"column":2}},"63":{"start":{"line":105,"column":4},"end":{"line":105,"column":23}},"64":{"start":{"line":106,"column":4},"end":{"line":106,"column":83}},"65":{"start":{"line":107,"column":4},"end":{"line":118,"column":11}},"66":{"start":{"line":109,"column":12},"end":{"line":113,"column":13}},"67":{"start":{"line":110,"column":16},"end":{"line":110,"column":64}},"68":{"start":{"line":112,"column":16},"end":{"line":112,"column":63}},"69":{"start":{"line":117,"column":12},"end":{"line":117,"column":29}},"70":{"start":{"line":119,"column":4},"end":{"line":126,"column":11}},"71":{"start":{"line":125,"column":12},"end":{"line":125,"column":64}},"72":{"start":{"line":128,"column":4},"end":{"line":128,"column":53}},"73":{"start":{"line":129,"column":4},"end":{"line":131,"column":5}},"74":{"start":{"line":130,"column":8},"end":{"line":130,"column":56}},"75":{"start":{"line":132,"column":4},"end":{"line":132,"column":81}},"76":{"start":{"line":133,"column":4},"end":{"line":133,"column":48}},"77":{"start":{"line":136,"column":0},"end":{"line":145,"column":2}},"78":{"start":{"line":137,"column":4},"end":{"line":144,"column":7}},"79":{"start":{"line":138,"column":8},"end":{"line":141,"column":33}},"80":{"start":{"line":143,"column":8},"end":{"line":143,"column":48}},"81":{"start":{"line":147,"column":0},"end":{"line":150,"column":2}},"82":{"start":{"line":148,"column":4},"end":{"line":148,"column":60}},"83":{"start":{"line":149,"column":4},"end":{"line":149,"column":23}},"84":{"start":{"line":152,"column":0},"end":{"line":161,"column":4}},"85":{"start":{"line":153,"column":4},"end":{"line":160,"column":6}},"86":{"start":{"line":155,"column":12},"end":{"line":155,"column":53}},"87":{"start":{"line":158,"column":12},"end":{"line":158,"column":39}},"88":{"start":{"line":163,"column":0},"end":{"line":163,"column":32}}},"branchMap":{"1":{"line":9,"type":"if","locations":[{"start":{"line":9,"column":4},"end":{"line":9,"column":4}},{"start":{"line":9,"column":4},"end":{"line":9,"column":4}}]},"2":{"line":9,"type":"binary-expr","locations":[{"start":{"line":9,"column":9},"end":{"line":9,"column":33}},{"start":{"line":9,"column":38},"end":{"line":9,"column":62}}]},"3":{"line":11,"type":"if","locations":[{"start":{"line":11,"column":8},"end":{"line":11,"column":8}},{"start":{"line":11,"column":8},"end":{"line":11,"column":8}}]},"4":{"line":11,"type":"binary-expr","locations":[{"start":{"line":11,"column":13},"end":{"line":11,"column":30}},{"start":{"line":11,"column":35},"end":{"line":11,"column":60}},{"start":{"line":11,"column":64},"end":{"line":11,"column":88}}]},"5":{"line":19,"type":"if","locations":[{"start":{"line":19,"column":4},"end":{"line":19,"column":4}},{"start":{"line":19,"column":4},"end":{"line":19,"column":4}}]},"6":{"line":19,"type":"binary-expr","locations":[{"start":{"line":19,"column":8},"end":{"line":19,"column":16}},{"start":{"line":19,"column":21},"end":{"line":19,"column":37}}]},"7":{"line":30,"type":"if","locations":[{"start":{"line":30,"column":4},"end":{"line":30,"column":4}},{"start":{"line":30,"column":4},"end":{"line":30,"column":4}}]},"8":{"line":30,"type":"binary-expr","locations":[{"start":{"line":30,"column":9},"end":{"line":30,"column":33}},{"start":{"line":30,"column":39},"end":{"line":30,"column":63}},{"start":{"line":30,"column":69},"end":{"line":30,"column":94}}]},"9":{"line":32,"type":"if","locations":[{"start":{"line":32,"column":11},"end":{"line":32,"column":11}},{"start":{"line":32,"column":11},"end":{"line":32,"column":11}}]},"10":{"line":34,"type":"if","locations":[{"start":{"line":34,"column":11},"end":{"line":34,"column":11}},{"start":{"line":34,"column":11},"end":{"line":34,"column":11}}]},"11":{"line":38,"type":"if","locations":[{"start":{"line":38,"column":12},"end":{"line":38,"column":12}},{"start":{"line":38,"column":12},"end":{"line":38,"column":12}}]},"12":{"line":49,"type":"if","locations":[{"start":{"line":49,"column":4},"end":{"line":49,"column":4}},{"start":{"line":49,"column":4},"end":{"line":49,"column":4}}]},"13":{"line":51,"type":"if","locations":[{"start":{"line":51,"column":8},"end":{"line":51,"column":8}},{"start":{"line":51,"column":8},"end":{"line":51,"column":8}}]},"14":{"line":55,"type":"if","locations":[{"start":{"line":55,"column":8},"end":{"line":55,"column":8}},{"start":{"line":55,"column":8},"end":{"line":55,"column":8}}]},"15":{"line":59,"type":"if","locations":[{"start":{"line":59,"column":11},"end":{"line":59,"column":11}},{"start":{"line":59,"column":11},"end":{"line":59,"column":11}}]},"16":{"line":87,"type":"if","locations":[{"start":{"line":87,"column":8},"end":{"line":87,"column":8}},{"start":{"line":87,"column":8},"end":{"line":87,"column":8}}]},"17":{"line":109,"type":"if","locations":[{"start":{"line":109,"column":12},"end":{"line":109,"column":12}},{"start":{"line":109,"column":12},"end":{"line":109,"column":12}}]},"18":{"line":129,"type":"if","locations":[{"start":{"line":129,"column":4},"end":{"line":129,"column":4}},{"start":{"line":129,"column":4},"end":{"line":129,"column":4}}]}},"l":{"5":1,"6":1,"8":1,"9":0,"10":0,"11":0,"12":0,"15":0,"18":1,"19":0,"20":0,"25":0,"29":1,"30":0,"31":0,"32":0,"33":0,"34":0,"35":0,"36":0,"37":0,"38":0,"39":0,"43":0,"47":1,"48":0,"49":0,"50":0,"51":0,"52":0,"54":0,"55":0,"56":0,"58":0,"59":0,"60":0,"64":0,"66":0,"67":0,"71":1,"72":0,"73":0,"77":1,"78":0,"79":0,"80":0,"81":0,"82":0,"83":0,"84":0,"86":0,"87":0,"88":0,"89":0,"90":0,"92":0,"93":0,"94":0,"98":0,"100":0,"101":0,"104":1,"105":0,"106":0,"107":0,"109":0,"110":0,"112":0,"117":0,"119":0,"125":0,"128":0,"129":0,"130":0,"132":0,"133":0,"136":1,"137":0,"138":0,"143":0,"147":1,"148":0,"149":0,"152":1,"153":1,"155":0,"158":0,"163":1}},
"c:\\workspace\\biojs-vis-pinpad\\lib\\ElementFactory.js":{"path":"c:\\workspace\\biojs-vis-pinpad\\lib\\ElementFactory.js","s":{"1":1,"2":1,"3":1,"4":0,"5":0,"6":0,"7":0,"8":0,"9":1,"10":0,"11":0,"12":0,"13":1,"14":0,"15":0,"16":0,"17":0,"18":0,"19":0,"20":0,"21":0,"22":0,"23":0,"24":0,"25":1,"26":0,"27":0,"28":0,"29":0,"30":0,"31":0,"32":0,"33":0,"34":0,"35":0,"36":0,"37":0,"38":0,"39":0,"40":0,"41":0,"42":0,"43":0,"44":1,"45":0,"46":0,"47":1,"48":0,"49":0,"50":0,"51":0,"52":0,"53":0,"54":0,"55":0,"56":0,"57":0,"58":0,"59":0,"60":0,"61":0,"62":0,"63":0,"64":0,"65":0,"66":1,"67":0,"68":0,"69":0,"70":0,"71":0,"72":0,"73":0,"74":0,"75":0,"76":0,"77":0,"78":0,"79":0,"80":0,"81":1,"82":0,"83":0,"84":0,"85":1,"86":0,"87":0,"88":1,"89":1,"90":0,"91":0,"92":1},"b":{"1":[0,0],"2":[0,0],"3":[0,0],"4":[0,0,0],"5":[0,0],"6":[0,0],"7":[0,0],"8":[0,0,0],"9":[0,0],"10":[0,0],"11":[0,0],"12":[0,0],"13":[0,0],"14":[0,0],"15":[0,0],"16":[0,0],"17":[0,0],"18":[0,0],"19":[0,0]},"f":{"1":0,"2":0,"3":0,"4":0,"5":0,"6":0,"7":0,"8":0,"9":0,"10":0,"11":0,"12":0,"13":0,"14":0,"15":0,"16":0,"17":1,"18":0,"19":0},"fnMap":{"1":{"name":"(anonymous_1)","line":8,"loc":{"start":{"line":8,"column":13},"end":{"line":8,"column":28}}},"2":{"name":"(anonymous_2)","line":18,"loc":{"start":{"line":18,"column":14},"end":{"line":18,"column":54}}},"3":{"name":"(anonymous_3)","line":29,"loc":{"start":{"line":29,"column":15},"end":{"line":29,"column":41}}},"4":{"name":"(anonymous_4)","line":35,"loc":{"start":{"line":35,"column":21},"end":{"line":35,"column":44}}},"5":{"name":"(anonymous_5)","line":47,"loc":{"start":{"line":47,"column":15},"end":{"line":47,"column":42}}},"6":{"name":"(anonymous_6)","line":77,"loc":{"start":{"line":77,"column":14},"end":{"line":77,"column":36}}},"7":{"name":"(anonymous_7)","line":78,"loc":{"start":{"line":78,"column":17},"end":{"line":78,"column":37}}},"8":{"name":"(anonymous_8)","line":83,"loc":{"start":{"line":83,"column":14},"end":{"line":83,"column":45}}},"9":{"name":"(anonymous_9)","line":92,"loc":{"start":{"line":92,"column":21},"end":{"line":92,"column":32}}},"10":{"name":"(anonymous_10)","line":110,"loc":{"start":{"line":110,"column":26},"end":{"line":110,"column":65}}},"11":{"name":"(anonymous_11)","line":114,"loc":{"start":{"line":114,"column":23},"end":{"line":114,"column":34}}},"12":{"name":"(anonymous_12)","line":122,"loc":{"start":{"line":122,"column":21},"end":{"line":122,"column":32}}},"13":{"name":"(anonymous_13)","line":130,"loc":{"start":{"line":130,"column":21},"end":{"line":130,"column":32}}},"14":{"name":"(anonymous_14)","line":142,"loc":{"start":{"line":142,"column":25},"end":{"line":142,"column":55}}},"15":{"name":"(anonymous_15)","line":143,"loc":{"start":{"line":143,"column":21},"end":{"line":143,"column":39}}},"16":{"name":"(anonymous_16)","line":153,"loc":{"start":{"line":153,"column":27},"end":{"line":153,"column":40}}},"17":{"name":"(anonymous_17)","line":158,"loc":{"start":{"line":158,"column":21},"end":{"line":158,"column":33}}},"18":{"name":"(anonymous_18)","line":160,"loc":{"start":{"line":160,"column":23},"end":{"line":160,"column":54}}},"19":{"name":"(anonymous_19)","line":163,"loc":{"start":{"line":163,"column":23},"end":{"line":163,"column":41}}}},"statementMap":{"1":{"start":{"line":5,"column":0},"end":{"line":5,"column":23}},"2":{"start":{"line":6,"column":0},"end":{"line":6,"column":30}},"3":{"start":{"line":8,"column":0},"end":{"line":16,"column":2}},"4":{"start":{"line":9,"column":4},"end":{"line":14,"column":5}},"5":{"start":{"line":10,"column":8},"end":{"line":10,"column":32}},"6":{"start":{"line":11,"column":8},"end":{"line":13,"column":9}},"7":{"start":{"line":12,"column":12},"end":{"line":12,"column":24}},"8":{"start":{"line":15,"column":4},"end":{"line":15,"column":16}},"9":{"start":{"line":18,"column":0},"end":{"line":27,"column":2}},"10":{"start":{"line":19,"column":4},"end":{"line":26,"column":5}},"11":{"start":{"line":20,"column":8},"end":{"line":23,"column":28}},"12":{"start":{"line":25,"column":8},"end":{"line":25,"column":33}},"13":{"start":{"line":29,"column":0},"end":{"line":45,"column":2}},"14":{"start":{"line":30,"column":4},"end":{"line":44,"column":5}},"15":{"start":{"line":31,"column":8},"end":{"line":31,"column":29}},"16":{"start":{"line":32,"column":11},"end":{"line":44,"column":5}},"17":{"start":{"line":33,"column":8},"end":{"line":33,"column":50}},"18":{"start":{"line":34,"column":11},"end":{"line":44,"column":5}},"19":{"start":{"line":35,"column":8},"end":{"line":41,"column":11}},"20":{"start":{"line":36,"column":12},"end":{"line":36,"column":48}},"21":{"start":{"line":37,"column":12},"end":{"line":37,"column":34}},"22":{"start":{"line":38,"column":12},"end":{"line":40,"column":13}},"23":{"start":{"line":39,"column":16},"end":{"line":39,"column":52}},"24":{"start":{"line":43,"column":8},"end":{"line":43,"column":49}},"25":{"start":{"line":47,"column":0},"end":{"line":75,"column":2}},"26":{"start":{"line":48,"column":4},"end":{"line":48,"column":32}},"27":{"start":{"line":49,"column":4},"end":{"line":74,"column":5}},"28":{"start":{"line":50,"column":8},"end":{"line":50,"column":30}},"29":{"start":{"line":51,"column":8},"end":{"line":57,"column":9}},"30":{"start":{"line":52,"column":12},"end":{"line":52,"column":38}},"31":{"start":{"line":53,"column":12},"end":{"line":53,"column":60}},"32":{"start":{"line":55,"column":12},"end":{"line":55,"column":53}},"33":{"start":{"line":56,"column":12},"end":{"line":56,"column":39}},"34":{"start":{"line":58,"column":8},"end":{"line":60,"column":9}},"35":{"start":{"line":59,"column":12},"end":{"line":59,"column":50}},"36":{"start":{"line":61,"column":8},"end":{"line":63,"column":9}},"37":{"start":{"line":62,"column":12},"end":{"line":62,"column":53}},"38":{"start":{"line":64,"column":8},"end":{"line":64,"column":38}},"39":{"start":{"line":65,"column":11},"end":{"line":74,"column":5}},"40":{"start":{"line":66,"column":8},"end":{"line":69,"column":30}},"41":{"start":{"line":70,"column":8},"end":{"line":70,"column":41}},"42":{"start":{"line":72,"column":8},"end":{"line":72,"column":53}},"43":{"start":{"line":73,"column":8},"end":{"line":73,"column":40}},"44":{"start":{"line":77,"column":0},"end":{"line":81,"column":2}},"45":{"start":{"line":78,"column":4},"end":{"line":80,"column":7}},"46":{"start":{"line":79,"column":8},"end":{"line":79,"column":35}},"47":{"start":{"line":83,"column":0},"end":{"line":108,"column":2}},"48":{"start":{"line":84,"column":4},"end":{"line":84,"column":23}},"49":{"start":{"line":85,"column":4},"end":{"line":85,"column":25}},"50":{"start":{"line":86,"column":4},"end":{"line":86,"column":32}},"51":{"start":{"line":87,"column":4},"end":{"line":87,"column":24}},"52":{"start":{"line":88,"column":4},"end":{"line":88,"column":31}},"53":{"start":{"line":89,"column":4},"end":{"line":89,"column":39}},"54":{"start":{"line":90,"column":4},"end":{"line":90,"column":30}},"55":{"start":{"line":92,"column":4},"end":{"line":102,"column":6}},"56":{"start":{"line":93,"column":8},"end":{"line":101,"column":9}},"57":{"start":{"line":94,"column":12},"end":{"line":94,"column":61}},"58":{"start":{"line":95,"column":12},"end":{"line":95,"column":88}},"59":{"start":{"line":96,"column":12},"end":{"line":96,"column":32}},"60":{"start":{"line":98,"column":12},"end":{"line":98,"column":60}},"61":{"start":{"line":99,"column":12},"end":{"line":99,"column":89}},"62":{"start":{"line":100,"column":12},"end":{"line":100,"column":33}},"63":{"start":{"line":104,"column":4},"end":{"line":104,"column":108}},"64":{"start":{"line":106,"column":4},"end":{"line":106,"column":81}},"65":{"start":{"line":107,"column":4},"end":{"line":107,"column":55}},"66":{"start":{"line":110,"column":0},"end":{"line":140,"column":2}},"67":{"start":{"line":111,"column":4},"end":{"line":111,"column":23}},"68":{"start":{"line":112,"column":4},"end":{"line":112,"column":83}},"69":{"start":{"line":113,"column":4},"end":{"line":124,"column":11}},"70":{"start":{"line":115,"column":12},"end":{"line":119,"column":13}},"71":{"start":{"line":116,"column":16},"end":{"line":116,"column":64}},"72":{"start":{"line":118,"column":16},"end":{"line":118,"column":63}},"73":{"start":{"line":123,"column":12},"end":{"line":123,"column":29}},"74":{"start":{"line":125,"column":4},"end":{"line":132,"column":11}},"75":{"start":{"line":131,"column":12},"end":{"line":131,"column":64}},"76":{"start":{"line":134,"column":4},"end":{"line":134,"column":53}},"77":{"start":{"line":135,"column":4},"end":{"line":137,"column":5}},"78":{"start":{"line":136,"column":8},"end":{"line":136,"column":56}},"79":{"start":{"line":138,"column":4},"end":{"line":138,"column":81}},"80":{"start":{"line":139,"column":4},"end":{"line":139,"column":48}},"81":{"start":{"line":142,"column":0},"end":{"line":151,"column":2}},"82":{"start":{"line":143,"column":4},"end":{"line":150,"column":7}},"83":{"start":{"line":144,"column":8},"end":{"line":147,"column":33}},"84":{"start":{"line":149,"column":8},"end":{"line":149,"column":48}},"85":{"start":{"line":153,"column":0},"end":{"line":156,"column":2}},"86":{"start":{"line":154,"column":4},"end":{"line":154,"column":60}},"87":{"start":{"line":155,"column":4},"end":{"line":155,"column":23}},"88":{"start":{"line":158,"column":0},"end":{"line":167,"column":4}},"89":{"start":{"line":159,"column":4},"end":{"line":166,"column":6}},"90":{"start":{"line":161,"column":12},"end":{"line":161,"column":53}},"91":{"start":{"line":164,"column":12},"end":{"line":164,"column":39}},"92":{"start":{"line":169,"column":0},"end":{"line":169,"column":32}}},"branchMap":{"1":{"line":9,"type":"if","locations":[{"start":{"line":9,"column":4},"end":{"line":9,"column":4}},{"start":{"line":9,"column":4},"end":{"line":9,"column":4}}]},"2":{"line":9,"type":"binary-expr","locations":[{"start":{"line":9,"column":9},"end":{"line":9,"column":33}},{"start":{"line":9,"column":38},"end":{"line":9,"column":62}}]},"3":{"line":11,"type":"if","locations":[{"start":{"line":11,"column":8},"end":{"line":11,"column":8}},{"start":{"line":11,"column":8},"end":{"line":11,"column":8}}]},"4":{"line":11,"type":"binary-expr","locations":[{"start":{"line":11,"column":13},"end":{"line":11,"column":30}},{"start":{"line":11,"column":35},"end":{"line":11,"column":60}},{"start":{"line":11,"column":64},"end":{"line":11,"column":88}}]},"5":{"line":19,"type":"if","locations":[{"start":{"line":19,"column":4},"end":{"line":19,"column":4}},{"start":{"line":19,"column":4},"end":{"line":19,"column":4}}]},"6":{"line":19,"type":"binary-expr","locations":[{"start":{"line":19,"column":8},"end":{"line":19,"column":16}},{"start":{"line":19,"column":21},"end":{"line":19,"column":37}}]},"7":{"line":30,"type":"if","locations":[{"start":{"line":30,"column":4},"end":{"line":30,"column":4}},{"start":{"line":30,"column":4},"end":{"line":30,"column":4}}]},"8":{"line":30,"type":"binary-expr","locations":[{"start":{"line":30,"column":9},"end":{"line":30,"column":33}},{"start":{"line":30,"column":39},"end":{"line":30,"column":63}},{"start":{"line":30,"column":69},"end":{"line":30,"column":94}}]},"9":{"line":32,"type":"if","locations":[{"start":{"line":32,"column":11},"end":{"line":32,"column":11}},{"start":{"line":32,"column":11},"end":{"line":32,"column":11}}]},"10":{"line":34,"type":"if","locations":[{"start":{"line":34,"column":11},"end":{"line":34,"column":11}},{"start":{"line":34,"column":11},"end":{"line":34,"column":11}}]},"11":{"line":38,"type":"if","locations":[{"start":{"line":38,"column":12},"end":{"line":38,"column":12}},{"start":{"line":38,"column":12},"end":{"line":38,"column":12}}]},"12":{"line":49,"type":"if","locations":[{"start":{"line":49,"column":4},"end":{"line":49,"column":4}},{"start":{"line":49,"column":4},"end":{"line":49,"column":4}}]},"13":{"line":51,"type":"if","locations":[{"start":{"line":51,"column":8},"end":{"line":51,"column":8}},{"start":{"line":51,"column":8},"end":{"line":51,"column":8}}]},"14":{"line":58,"type":"if","locations":[{"start":{"line":58,"column":8},"end":{"line":58,"column":8}},{"start":{"line":58,"column":8},"end":{"line":58,"column":8}}]},"15":{"line":61,"type":"if","locations":[{"start":{"line":61,"column":8},"end":{"line":61,"column":8}},{"start":{"line":61,"column":8},"end":{"line":61,"column":8}}]},"16":{"line":65,"type":"if","locations":[{"start":{"line":65,"column":11},"end":{"line":65,"column":11}},{"start":{"line":65,"column":11},"end":{"line":65,"column":11}}]},"17":{"line":93,"type":"if","locations":[{"start":{"line":93,"column":8},"end":{"line":93,"column":8}},{"start":{"line":93,"column":8},"end":{"line":93,"column":8}}]},"18":{"line":115,"type":"if","locations":[{"start":{"line":115,"column":12},"end":{"line":115,"column":12}},{"start":{"line":115,"column":12},"end":{"line":115,"column":12}}]},"19":{"line":135,"type":"if","locations":[{"start":{"line":135,"column":4},"end":{"line":135,"column":4}},{"start":{"line":135,"column":4},"end":{"line":135,"column":4}}]}},"l":{"5":1,"6":1,"8":1,"9":0,"10":0,"11":0,"12":0,"15":0,"18":1,"19":0,"20":0,"25":0,"29":1,"30":0,"31":0,"32":0,"33":0,"34":0,"35":0,"36":0,"37":0,"38":0,"39":0,"43":0,"47":1,"48":0,"49":0,"50":0,"51":0,"52":0,"53":0,"55":0,"56":0,"58":0,"59":0,"61":0,"62":0,"64":0,"65":0,"66":0,"70":0,"72":0,"73":0,"77":1,"78":0,"79":0,"83":1,"84":0,"85":0,"86":0,"87":0,"88":0,"89":0,"90":0,"92":0,"93":0,"94":0,"95":0,"96":0,"98":0,"99":0,"100":0,"104":0,"106":0,"107":0,"110":1,"111":0,"112":0,"113":0,"115":0,"116":0,"118":0,"123":0,"125":0,"131":0,"134":0,"135":0,"136":0,"138":0,"139":0,"142":1,"143":0,"144":0,"149":0,"153":1,"154":0,"155":0,"158":1,"159":1,"161":0,"164":0,"169":1}},
"c:\\workspace\\biojs-vis-pinpad\\lib\\PinPadModel.js":{"path":"c:\\workspace\\biojs-vis-pinpad\\lib\\PinPadModel.js","s":{"1":1,"2":1,"3":1,"4":2,"5":1,"6":1,"7":1,"8":1,"9":5,"10":5,"11":5,"12":4,"13":2,"14":2,"15":4,"16":8,"17":5,"18":1,"19":4,"20":2,"21":2,"22":2,"23":4,"24":4,"25":1,"26":1,"27":1,"28":1,"29":2,"30":2,"31":1,"32":1,"33":1,"34":1,"35":1,"36":1,"37":1,"38":1,"39":0,"40":1,"41":0,"42":1,"43":1,"44":1,"45":1,"46":1,"47":1,"48":1,"49":1,"50":1},"b":{"1":[2,2],"2":[1,4],"3":[2,2],"4":[4,2],"5":[1,0],"6":[1,0],"7":[1,1],"8":[0,1],"9":[1,0]},"f":{"1":2,"2":1,"3":5,"4":4,"5":8,"6":1,"7":1,"8":2,"9":1,"10":1},"fnMap":{"1":{"name":"(anonymous_1)","line":8,"loc":{"start":{"line":8,"column":18},"end":{"line":8,"column":60}}},"2":{"name":"(anonymous_2)","line":12,"loc":{"start":{"line":12,"column":18},"end":{"line":12,"column":37}}},"3":{"name":"(anonymous_3)","line":16,"loc":{"start":{"line":16,"column":29},"end":{"line":16,"column":47}}},"4":{"name":"(anonymous_4)","line":19,"loc":{"start":{"line":19,"column":50},"end":{"line":19,"column":73}}},"5":{"name":"(anonymous_5)","line":24,"loc":{"start":{"line":24,"column":40},"end":{"line":24,"column":53}}},"6":{"name":"(anonymous_6)","line":41,"loc":{"start":{"line":41,"column":32},"end":{"line":41,"column":47}}},"7":{"name":"(anonymous_7)","line":43,"loc":{"start":{"line":43,"column":39},"end":{"line":43,"column":62}}},"8":{"name":"(anonymous_8)","line":44,"loc":{"start":{"line":44,"column":47},"end":{"line":44,"column":67}}},"9":{"name":"(anonymous_9)","line":65,"loc":{"start":{"line":65,"column":33},"end":{"line":65,"column":52}}},"10":{"name":"(anonymous_10)","line":67,"loc":{"start":{"line":67,"column":54},"end":{"line":67,"column":75}}}},"statementMap":{"1":{"start":{"line":5,"column":0},"end":{"line":5,"column":30}},"2":{"start":{"line":6,"column":0},"end":{"line":6,"column":47}},"3":{"start":{"line":8,"column":0},"end":{"line":10,"column":2}},"4":{"start":{"line":9,"column":4},"end":{"line":9,"column":49}},"5":{"start":{"line":12,"column":0},"end":{"line":76,"column":2}},"6":{"start":{"line":13,"column":4},"end":{"line":13,"column":27}},"7":{"start":{"line":14,"column":4},"end":{"line":14,"column":32}},"8":{"start":{"line":16,"column":4},"end":{"line":39,"column":6}},"9":{"start":{"line":17,"column":8},"end":{"line":17,"column":21}},"10":{"start":{"line":18,"column":8},"end":{"line":18,"column":26}},"11":{"start":{"line":19,"column":8},"end":{"line":27,"column":11}},"12":{"start":{"line":20,"column":12},"end":{"line":23,"column":13}},"13":{"start":{"line":21,"column":16},"end":{"line":21,"column":31}},"14":{"start":{"line":22,"column":16},"end":{"line":22,"column":35}},"15":{"start":{"line":24,"column":12},"end":{"line":26,"column":15}},"16":{"start":{"line":25,"column":16},"end":{"line":25,"column":43}},"17":{"start":{"line":28,"column":8},"end":{"line":38,"column":9}},"18":{"start":{"line":29,"column":12},"end":{"line":29,"column":42}},"19":{"start":{"line":31,"column":12},"end":{"line":35,"column":13}},"20":{"start":{"line":32,"column":16},"end":{"line":32,"column":80}},"21":{"start":{"line":33,"column":16},"end":{"line":33,"column":54}},"22":{"start":{"line":34,"column":16},"end":{"line":34,"column":61}},"23":{"start":{"line":36,"column":12},"end":{"line":36,"column":55}},"24":{"start":{"line":37,"column":12},"end":{"line":37,"column":58}},"25":{"start":{"line":41,"column":4},"end":{"line":63,"column":6}},"26":{"start":{"line":42,"column":8},"end":{"line":42,"column":40}},"27":{"start":{"line":43,"column":8},"end":{"line":52,"column":11}},"28":{"start":{"line":44,"column":12},"end":{"line":47,"column":15}},"29":{"start":{"line":45,"column":16},"end":{"line":45,"column":32}},"30":{"start":{"line":46,"column":16},"end":{"line":46,"column":38}},"31":{"start":{"line":48,"column":12},"end":{"line":50,"column":13}},"32":{"start":{"line":49,"column":16},"end":{"line":49,"column":35}},"33":{"start":{"line":51,"column":12},"end":{"line":51,"column":35}},"34":{"start":{"line":53,"column":8},"end":{"line":61,"column":9}},"35":{"start":{"line":54,"column":12},"end":{"line":54,"column":77}},"36":{"start":{"line":55,"column":12},"end":{"line":55,"column":84}},"37":{"start":{"line":56,"column":12},"end":{"line":56,"column":68}},"38":{"start":{"line":57,"column":12},"end":{"line":59,"column":13}},"39":{"start":{"line":58,"column":16},"end":{"line":58,"column":59}},"40":{"start":{"line":60,"column":12},"end":{"line":60,"column":114}},"41":{"start":{"line":62,"column":8},"end":{"line":62,"column":33}},"42":{"start":{"line":65,"column":4},"end":{"line":75,"column":6}},"43":{"start":{"line":66,"column":8},"end":{"line":66,"column":26}},"44":{"start":{"line":67,"column":8},"end":{"line":70,"column":11}},"45":{"start":{"line":68,"column":12},"end":{"line":68,"column":29}},"46":{"start":{"line":69,"column":12},"end":{"line":69,"column":42}},"47":{"start":{"line":71,"column":8},"end":{"line":73,"column":9}},"48":{"start":{"line":72,"column":12},"end":{"line":72,"column":55}},"49":{"start":{"line":74,"column":8},"end":{"line":74,"column":36}},"50":{"start":{"line":78,"column":0},"end":{"line":78,"column":29}}},"branchMap":{"1":{"line":20,"type":"if","locations":[{"start":{"line":20,"column":12},"end":{"line":20,"column":12}},{"start":{"line":20,"column":12},"end":{"line":20,"column":12}}]},"2":{"line":28,"type":"if","locations":[{"start":{"line":28,"column":8},"end":{"line":28,"column":8}},{"start":{"line":28,"column":8},"end":{"line":28,"column":8}}]},"3":{"line":31,"type":"if","locations":[{"start":{"line":31,"column":12},"end":{"line":31,"column":12}},{"start":{"line":31,"column":12},"end":{"line":31,"column":12}}]},"4":{"line":31,"type":"binary-expr","locations":[{"start":{"line":31,"column":16},"end":{"line":31,"column":25}},{"start":{"line":31,"column":30},"end":{"line":31,"column":45}}]},"5":{"line":48,"type":"if","locations":[{"start":{"line":48,"column":12},"end":{"line":48,"column":12}},{"start":{"line":48,"column":12},"end":{"line":48,"column":12}}]},"6":{"line":53,"type":"if","locations":[{"start":{"line":53,"column":8},"end":{"line":53,"column":8}},{"start":{"line":53,"column":8},"end":{"line":53,"column":8}}]},"7":{"line":53,"type":"binary-expr","locations":[{"start":{"line":53,"column":13},"end":{"line":53,"column":28}},{"start":{"line":53,"column":34},"end":{"line":53,"column":48}}]},"8":{"line":57,"type":"if","locations":[{"start":{"line":57,"column":12},"end":{"line":57,"column":12}},{"start":{"line":57,"column":12},"end":{"line":57,"column":12}}]},"9":{"line":71,"type":"if","locations":[{"start":{"line":71,"column":8},"end":{"line":71,"column":8}},{"start":{"line":71,"column":8},"end":{"line":71,"column":8}}]}},"l":{"5":1,"6":1,"8":1,"9":2,"12":1,"13":1,"14":1,"16":1,"17":5,"18":5,"19":5,"20":4,"21":2,"22":2,"24":4,"25":8,"28":5,"29":1,"31":4,"32":2,"33":2,"34":2,"36":4,"37":4,"41":1,"42":1,"43":1,"44":1,"45":2,"46":2,"48":1,"49":1,"51":1,"53":1,"54":1,"55":1,"56":1,"57":1,"58":0,"60":1,"62":0,"65":1,"66":1,"67":1,"68":1,"69":1,"71":1,"72":1,"74":1,"78":1}},
"c:\\workspace\\biojs-vis-pinpad\\lib\\CategoryModel.js":{"path":"c:\\workspace\\biojs-vis-pinpad\\lib\\CategoryModel.js","s":{"1":1,"2":1,"3":2,"4":2,"5":2,"6":2,"7":2,"8":4,"9":4,"10":3,"11":3,"12":9,"13":9,"14":9,"15":1,"16":4,"17":4,"18":2,"19":1,"20":1,"21":1,"22":0,"23":1},"b":{"1":[3,1],"2":[4,4],"3":[1,0],"4":[1,1]},"f":{"1":2,"2":4,"3":9,"4":1},"fnMap":{"1":{"name":"(anonymous_1)","line":7,"loc":{"start":{"line":7,"column":20},"end":{"line":7,"column":49}}},"2":{"name":"(anonymous_2)","line":13,"loc":{"start":{"line":13,"column":26},"end":{"line":13,"column":44}}},"3":{"name":"(anonymous_3)","line":17,"loc":{"start":{"line":17,"column":29},"end":{"line":17,"column":44}}},"4":{"name":"(anonymous_4)","line":29,"loc":{"start":{"line":29,"column":29},"end":{"line":29,"column":45}}}},"statementMap":{"1":{"start":{"line":5,"column":0},"end":{"line":5,"column":30}},"2":{"start":{"line":7,"column":0},"end":{"line":37,"column":2}},"3":{"start":{"line":8,"column":4},"end":{"line":8,"column":24}},"4":{"start":{"line":9,"column":4},"end":{"line":9,"column":30}},"5":{"start":{"line":10,"column":4},"end":{"line":10,"column":33}},"6":{"start":{"line":11,"column":4},"end":{"line":11,"column":27}},"7":{"start":{"line":13,"column":4},"end":{"line":27,"column":6}},"8":{"start":{"line":14,"column":8},"end":{"line":14,"column":28}},"9":{"start":{"line":15,"column":8},"end":{"line":24,"column":9}},"10":{"start":{"line":16,"column":12},"end":{"line":16,"column":62}},"11":{"start":{"line":17,"column":12},"end":{"line":21,"column":15}},"12":{"start":{"line":18,"column":16},"end":{"line":18,"column":72}},"13":{"start":{"line":19,"column":16},"end":{"line":19,"column":50}},"14":{"start":{"line":20,"column":16},"end":{"line":20,"column":43}},"15":{"start":{"line":23,"column":12},"end":{"line":23,"column":51}},"16":{"start":{"line":25,"column":8},"end":{"line":25,"column":58}},"17":{"start":{"line":26,"column":8},"end":{"line":26,"column":27}},"18":{"start":{"line":29,"column":4},"end":{"line":36,"column":6}},"19":{"start":{"line":30,"column":8},"end":{"line":35,"column":9}},"20":{"start":{"line":31,"column":12},"end":{"line":31,"column":47}},"21":{"start":{"line":32,"column":12},"end":{"line":32,"column":25}},"22":{"start":{"line":34,"column":12},"end":{"line":34,"column":22}},"23":{"start":{"line":39,"column":0},"end":{"line":39,"column":31}}},"branchMap":{"1":{"line":15,"type":"if","locations":[{"start":{"line":15,"column":8},"end":{"line":15,"column":8}},{"start":{"line":15,"column":8},"end":{"line":15,"column":8}}]},"2":{"line":15,"type":"binary-expr","locations":[{"start":{"line":15,"column":12},"end":{"line":15,"column":29}},{"start":{"line":15,"column":33},"end":{"line":15,"column":49}}]},"3":{"line":30,"type":"if","locations":[{"start":{"line":30,"column":8},"end":{"line":30,"column":8}},{"start":{"line":30,"column":8},"end":{"line":30,"column":8}}]},"4":{"line":30,"type":"binary-expr","locations":[{"start":{"line":30,"column":13},"end":{"line":30,"column":23}},{"start":{"line":30,"column":29},"end":{"line":30,"column":61}}]}},"l":{"5":1,"7":1,"8":2,"9":2,"10":2,"11":2,"13":2,"14":4,"15":4,"16":3,"17":3,"18":9,"19":9,"20":9,"23":1,"25":4,"26":4,"29":2,"30":1,"31":1,"32":1,"34":0,"39":1}}}

@@ -50,7 +50,13 @@ /*jslint node: true */

if (key.indexOf('styled_') === 0) {
var leftCol = tr.append('td').text(info.key);
var leftCol, rightCol;
if (info.key_right === true) {
leftCol = tr.append('td');
rightCol = tr.append('td').text(info.key + ' ');
} else {
leftCol = tr.append('td').text(info.key);
rightCol = tr.append('td');
}
if (info.key_style) {
leftCol.attr('style', info.key_style);
}
var rightCol = tr.append('td');
if (info.value_style) {

@@ -57,0 +63,0 @@ rightCol.attr('style', info.value_style);

{
"name": "biojs-vis-pinpad",
"description": "A component to pin tootlip-like information",
"version": "0.1.4",
"version": "0.1.5",
"homepage": "https://github.com/ebi-uniprot/biojs-vis-pinpad",

@@ -6,0 +6,0 @@ "author": {

# biojs-vis-pinpad
A biojs component to pin information. The motivation behind it is being able to pin tooltips from the https://github.com/ebi-uniprot/biojs-vis-proteinFeaturesViewer. Ideally it should be flexible enough to accomodate any similar information.
Note: This is an ongoing project on a pretty early stage, please be aware that this is under development, not ready to be use yet!
##Data structure
This component is inteded to be flexible enough so other components can use it. In order to get such flexibility, a data structure has been defined to cover as many cases as possible. In theory, the component should be able to handle sub-sections within sub-section but it has only be tested up to one sub-section level.
###Component initialization
```
{
ordering: [] //array of strings
, options: {
el: object //this component will be append to it
, height: number //in pixels of percentage, 500px by default
, width: number //in pixels or percentage, 250px by default
, highlightColor: color //used to highlight the most recently pinned element with a shade effect, green by default
}
, toPin: object //element to pin, see description below
}
```
###Instantiation example
```
var app = require("biojs-vis-pinpad");
var instance = new app({
ordering: ['type', 'start', 'end'],
options: {
el: appDiv
, width: '220px'
, height: '320px'
, highlightColor: 'green'
}
});
```
###Elements to pin
Pinned elementes will be organized in a table. Pinned data will have "keys" and "values", "keys" will be capitalized and displayed on the left column while "values" will be displayed on the right column. Multiple sections are allowed, section titles will be displayed in two columns with a darker background. Somo styling can be specified too.
Any field with an _# can be replaced by any valid JSON key name, any other key should appear as it is shown.
```
{
category: String //mandatory, used to grouped pinned elements
, id: String //unique id, no duplicated ids are allowed
, ordering: {
//one field for each stringspecified in the ordering element on instantiation
}
, sections: {
title: String //will be displayed with a darker background
, information: {
key_1: value //String or number will be directly displayed
, key_2: {
value: String //will be wrapped as an HTML link
, link: URL
}
, key_3: [] //elements in arrays will be separated by commas, elements can be any combination of Strings, numbers or pairs (value, link)
, styled_key_1: {
key: String //will be displayed on the left column
, key_right: boolean //if true, then the key will be moved to the value column
, key_style: style string //optional
, value: String/Number/Pair of (value, link))/Array
, value_style: style string//optional
}
}
}
}
```
###Element to pin example
```
{
"category": "Variants",
"id": "ft_206",
ordering: {
type: 'missense',
start: 301,
end: 301
},
"sections": [{
"title": "missense 301-301",
"information": {
"source": "Large scale studies",
"description": "primary tissue(s): large intestine",
"mutation": "R > G",
"polyphen": "probably damaging, score 0.9309999942779541",
"sift": "deleterious, score 0",
"styled_evidence_1": {
"key": "Evidence",
"key_style": "background-color: #E8E8E8",
"value": "Imported",
"value_style": "background-color: #E8E8E8"
},
"styled_evidenceArray_cosmic_1": {
"key": "cosmic",
"key_right": true,
"key_style": "text-align: right; background-color: #F0F0F0",
"value": [{
"value": "COSM1413501",
"link": "http://cancer.sanger.ac.uk/cosmic/mutation/overview?id=1413501"
}],
"value_style": "background-color: #F0F0F0"
},
"styled_evidenceArray_cosmic_study_1": {
"key": "cosmic_study",
"key_style": "text-align: right; background-color: #F0F0F0",
"value": [{
"value": "COSU:376",
"link": "http://cancer.sanger.ac.uk/cosmic/study/overview?study_id=376"
}],
"value_style": "background-color: #F0F0F0"
}
}
}]
}
```
###More examples
Please see the data provided for the snippets at https://github.com/ebi-uniprot/biojs-vis-pinpad/tree/master/snippets/data

@@ -211,7 +211,13 @@ var site671 = {

"key": "cosmic",
"key_right": true,
"key_style": "text-align: right; background-color: #F0F0F0",
"value": [{
"value": "COSM1413501",
"link": "http://cancer.sanger.ac.uk/cosmic/mutation/overview?id=1413501"
}],
"value": "COSM1413501",
"link": "http://cancer.sanger.ac.uk/cosmic/mutation/overview?id=1413501"
},
{
"value": "COSM1234567",
"link": "http://cancer.sanger.ac.uk/cosmic/mutation/overview?id=1234567"
}
],
"value_style": "background-color: #F0F0F0"

@@ -218,0 +224,0 @@ },

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc