flint-tools
Advanced tools
Comparing version 1.3.132 to 1.3.133
try { | ||
Flint.packages["keycode"] = require("keycode") | ||
} | ||
catch(e) { | ||
console.log('Error bundling package keycode!') | ||
console.error(e) | ||
Flint.reportError(e) | ||
}; | ||
try { | ||
Flint.packages["mouse-event-offset"] = require("mouse-event-offset") | ||
@@ -4,0 +13,0 @@ } |
@@ -1,1 +0,1 @@ | ||
["mouse-event-offset","md5-o-matic","ellipsize","clone","underscore"] | ||
["keycode","mouse-event-offset","md5-o-matic","ellipsize","clone","underscore"] |
try { | ||
Flint.internals["keys"] = require("./internal/keys") | ||
} | ||
catch(e) { | ||
console.log('Error bundling package keys!') | ||
console.error(e) | ||
Flint.reportError(e) | ||
}; | ||
try { | ||
Flint.internals["lib/createFilterer"] = require("./internal/lib/createFilterer") | ||
@@ -4,0 +13,0 @@ } |
@@ -49,5 +49,14 @@ /******/ (function(modules) { // webpackBootstrap | ||
try { | ||
Flint.internals["lib/createFilterer"] = __webpack_require__(1) | ||
Flint.internals["keys"] = __webpack_require__(1) | ||
} | ||
catch(e) { | ||
console.log('Error bundling package keys!') | ||
console.error(e) | ||
Flint.reportError(e) | ||
}; | ||
try { | ||
Flint.internals["lib/createFilterer"] = __webpack_require__(2) | ||
} | ||
catch(e) { | ||
console.log('Error bundling package lib/createFilterer!') | ||
@@ -59,3 +68,3 @@ console.error(e) | ||
try { | ||
Flint.internals["lib/getType"] = __webpack_require__(2) | ||
Flint.internals["lib/getType"] = __webpack_require__(3) | ||
} | ||
@@ -69,3 +78,3 @@ catch(e) { | ||
try { | ||
Flint.internals["lib/lens"] = __webpack_require__(3) | ||
Flint.internals["lib/lens"] = __webpack_require__(4) | ||
} | ||
@@ -79,3 +88,3 @@ catch(e) { | ||
try { | ||
Flint.internals["lib/uid"] = __webpack_require__(4) | ||
Flint.internals["lib/uid"] = __webpack_require__(5) | ||
} | ||
@@ -93,2 +102,36 @@ catch(e) { | ||
!function(){Flint.file('keys.js',function(exports){Object.defineProperty(exports, "__esModule", { value: true });exports.onKey = onKey;var keys = {};exports.keys = keys; | ||
var listeners = {}; | ||
on.keydown(window, function (e) { | ||
var code = ___keycode(e.keyCode); | ||
keys[code] = true; | ||
keyDown(code);}); | ||
on.keyup(window, function (e) { | ||
var code = ___keycode(e.keyCode); | ||
keys[code] = false; | ||
keyUp(code);}); | ||
function keyDown(code) { | ||
if (!listeners[code]) return; | ||
listeners[code].forEach(function (listener) {return listener(true);});} | ||
function keyUp(code) { | ||
if (!listeners[code]) return; | ||
listeners[code].forEach(function (listener) {return listener(false);});} | ||
function onKey(code, fn) { | ||
listeners[code] = listeners[code] || []; | ||
listeners[code].push(fn);} | ||
}) }(); | ||
/***/ }, | ||
/* 2 */ | ||
/***/ function(module, exports) { | ||
!function(){Flint.file('lib/createFilterer.js',function(exports){Object.defineProperty(exports, '__esModule', { value: true });exports['default'] = | ||
@@ -169,3 +212,3 @@ | ||
/***/ }, | ||
/* 2 */ | ||
/* 3 */ | ||
/***/ function(module, exports) { | ||
@@ -178,3 +221,3 @@ | ||
/***/ }, | ||
/* 3 */ | ||
/* 4 */ | ||
/***/ function(module, exports) { | ||
@@ -206,3 +249,3 @@ | ||
/***/ }, | ||
/* 4 */ | ||
/* 5 */ | ||
/***/ function(module, exports) { | ||
@@ -209,0 +252,0 @@ |
{ | ||
"port": 4001, | ||
"wport": 6284, | ||
"port": 4003, | ||
"wport": 6286, | ||
"installed": [ | ||
"keycode", | ||
"mouse-event-offset", | ||
@@ -6,0 +7,0 @@ "md5-o-matic", |
@@ -1,2 +0,2 @@ | ||
window.flintRun_tools=function(e,n,t){var r=n.Flint||runFlint,o=r(e,n,t);!function(e){!function(e){function n(r){if(t[r])return t[r].exports;var o=t[r]={exports:{},id:r,loaded:!1};return e[r].call(o.exports,o,o.exports,n),o.loaded=!0,o.exports}var t={};return n.m=e,n.c=t,n.p="",n(0)}([function(n,t,r){try{e.packages["mouse-event-offset"]=r(1)}catch(o){console.log("Error bundling package mouse-event-offset!"),console.error(o),e.reportError(o)}try{e.packages["md5-o-matic"]=r(2)}catch(o){console.log("Error bundling package md5-o-matic!"),console.error(o),e.reportError(o)}try{e.packages.ellipsize=r(3)}catch(o){console.log("Error bundling package ellipsize!"),console.error(o),e.reportError(o)}try{e.packages.clone=r(4)}catch(o){console.log("Error bundling package clone!"),console.error(o),e.reportError(o)}try{e.packages.underscore=r(5)}catch(o){console.log("Error bundling package underscore!"),console.error(o),e.reportError(o)}},function(e,n){function t(e,n,t){n=n||e.currentTarget||e.srcElement,Array.isArray(t)||(t=[0,0]);var o=e.clientX||0,i=e.clientY||0,l=r(n);return t[0]=o-l.left,t[1]=i-l.top,t}function r(e){return e===window||e===document||e===document.body?o:e.getBoundingClientRect()}var o={left:0,top:0};e.exports=t},function(e,n){"use strict";function t(e){for(var n=a(e),t=1732584193,r=-271733879,o=-1732584194,i=271733878,u=0;u<n.length;u+=16){var f=t,g=r,h=o,m=i;t=c(t,r,o,i,n[u+0],7,-680876936),i=c(i,t,r,o,n[u+1],12,-389564586),o=c(o,i,t,r,n[u+2],17,606105819),r=c(r,o,i,t,n[u+3],22,-1044525330),t=c(t,r,o,i,n[u+4],7,-176418897),i=c(i,t,r,o,n[u+5],12,1200080426),o=c(o,i,t,r,n[u+6],17,-1473231341),r=c(r,o,i,t,n[u+7],22,-45705983),t=c(t,r,o,i,n[u+8],7,1770035416),i=c(i,t,r,o,n[u+9],12,-1958414417),o=c(o,i,t,r,n[u+10],17,-42063),r=c(r,o,i,t,n[u+11],22,-1990404162),t=c(t,r,o,i,n[u+12],7,1804603682),i=c(i,t,r,o,n[u+13],12,-40341101),o=c(o,i,t,r,n[u+14],17,-1502002290),r=c(r,o,i,t,n[u+15],22,1236535329),t=p(t,r,o,i,n[u+1],5,-165796510),i=p(i,t,r,o,n[u+6],9,-1069501632),o=p(o,i,t,r,n[u+11],14,643717713),r=p(r,o,i,t,n[u+0],20,-373897302),t=p(t,r,o,i,n[u+5],5,-701558691),i=p(i,t,r,o,n[u+10],9,38016083),o=p(o,i,t,r,n[u+15],14,-660478335),r=p(r,o,i,t,n[u+4],20,-405537848),t=p(t,r,o,i,n[u+9],5,568446438),i=p(i,t,r,o,n[u+14],9,-1019803690),o=p(o,i,t,r,n[u+3],14,-187363961),r=p(r,o,i,t,n[u+8],20,1163531501),t=p(t,r,o,i,n[u+13],5,-1444681467),i=p(i,t,r,o,n[u+2],9,-51403784),o=p(o,i,t,r,n[u+7],14,1735328473),r=p(r,o,i,t,n[u+12],20,-1926607734),t=d(t,r,o,i,n[u+5],4,-378558),i=d(i,t,r,o,n[u+8],11,-2022574463),o=d(o,i,t,r,n[u+11],16,1839030562),r=d(r,o,i,t,n[u+14],23,-35309556),t=d(t,r,o,i,n[u+1],4,-1530992060),i=d(i,t,r,o,n[u+4],11,1272893353),o=d(o,i,t,r,n[u+7],16,-155497632),r=d(r,o,i,t,n[u+10],23,-1094730640),t=d(t,r,o,i,n[u+13],4,681279174),i=d(i,t,r,o,n[u+0],11,-358537222),o=d(o,i,t,r,n[u+3],16,-722521979),r=d(r,o,i,t,n[u+6],23,76029189),t=d(t,r,o,i,n[u+9],4,-640364487),i=d(i,t,r,o,n[u+12],11,-421815835),o=d(o,i,t,r,n[u+15],16,530742520),r=d(r,o,i,t,n[u+2],23,-995338651),t=v(t,r,o,i,n[u+0],6,-198630844),i=v(i,t,r,o,n[u+7],10,1126891415),o=v(o,i,t,r,n[u+14],15,-1416354905),r=v(r,o,i,t,n[u+5],21,-57434055),t=v(t,r,o,i,n[u+12],6,1700485571),i=v(i,t,r,o,n[u+3],10,-1894986606),o=v(o,i,t,r,n[u+10],15,-1051523),r=v(r,o,i,t,n[u+1],21,-2054922799),t=v(t,r,o,i,n[u+8],6,1873313359),i=v(i,t,r,o,n[u+15],10,-30611744),o=v(o,i,t,r,n[u+6],15,-1560198380),r=v(r,o,i,t,n[u+13],21,1309151649),t=v(t,r,o,i,n[u+4],6,-145523070),i=v(i,t,r,o,n[u+11],10,-1120210379),o=v(o,i,t,r,n[u+2],15,718787259),r=v(r,o,i,t,n[u+9],21,-343485551),t=l(t,f),r=l(r,g),o=l(o,h),i=l(i,m)}return s(t)+s(r)+s(o)+s(i)}function r(e,n){var t=1&e|1&n,r=e>>>1|n>>>1;return r<<1|t}function o(e,n){var t=1&e^1&n,r=e>>>1^n>>>1;return r<<1|t}function i(e,n){var t=1&e&(1&n),r=e>>>1&n>>>1;return r<<1|t}function l(e,n){var t=(65535&e)+(65535&n),r=(e>>16)+(n>>16)+(t>>16);return r<<16|65535&t}function s(e){var n,t="";for(n=0;3>=n;n++)t+=g.charAt(e>>8*n+4&15)+g.charAt(e>>8*n&15);return t}function a(e){var n,t=(e.length+8>>6)+1,r=new Array(16*t);for(n=0;16*t>n;n++)r[n]=0;for(n=0;n<e.length;n++)r[n>>2]|=e.charCodeAt(n)<<(8*e.length+n)%4*8;r[n>>2]|=128<<(8*e.length+n)%4*8;var o=8*e.length;return r[16*t-2]=255&o,r[16*t-2]|=(o>>>8&255)<<8,r[16*t-2]|=(o>>>16&255)<<16,r[16*t-2]|=(o>>>24&255)<<24,r}function u(e,n){return e<<n|e>>>32-n}function f(e,n,t,r,o,i){return l(u(l(l(n,e),l(r,i)),o),t)}function c(e,n,t,o,l,s,a){return f(r(i(n,t),i(~n,o)),e,n,l,s,a)}function p(e,n,t,o,l,s,a){return f(r(i(n,o),i(t,~o)),e,n,l,s,a)}function d(e,n,t,r,i,l,s){return f(o(o(n,t),r),e,n,i,l,s)}function v(e,n,t,i,l,s,a){return f(o(t,r(n,~i)),e,n,l,s,a)}e.exports=t;var g="0123456789abcdef"},function(e,n){"use strict";function t(e,n,t,r,o){var i=0,l="";if(e.length<n)return e;for(var s=0,a=e.length;a>s;s++)if(l=e.charAt(s),-1!==r.indexOf(l)&&(i=s),!(n>s))return 0===i?o?e.substring(0,n-1)+t:"":e.substring(0,i)+t;return e}var r={ellipse:"…",chars:[" ","-"],max:140,truncate:!0};e.exports=function(e,n,o){if("string"!=typeof e||0===e.length)return"";if(0===n)return"";o=o||{};for(var i in r)(null===o[i]||"undefined"==typeof o[i])&&(o[i]=r[i]);return o.max=n||o.max,t(e,o.max,o.ellipse,o.chars,o.truncate)}},function(e,n){var t=function(){"use strict";function e(n,t,r,o){function l(n,r){if(null===n)return null;if(0==r)return n;var s,c;if("object"!=typeof n)return n;if(e.__isArray(n))s=[];else if(e.__isRegExp(n))s=new RegExp(n.source,i(n)),n.lastIndex&&(s.lastIndex=n.lastIndex);else if(e.__isDate(n))s=new Date(n.getTime());else{if(f&&Buffer.isBuffer(n))return s=new Buffer(n.length),n.copy(s),s;"undefined"==typeof o?(c=Object.getPrototypeOf(n),s=Object.create(c)):(s=Object.create(o),c=o)}if(t){var p=a.indexOf(n);if(-1!=p)return u[p];a.push(n),u.push(s)}for(var d in n){var v;c&&(v=Object.getOwnPropertyDescriptor(c,d)),v&&null==v.set||(s[d]=l(n[d],r-1))}return s}var s;"object"==typeof t&&(r=t.depth,o=t.prototype,s=t.filter,t=t.circular);var a=[],u=[],f="undefined"!=typeof Buffer;return"undefined"==typeof t&&(t=!0),"undefined"==typeof r&&(r=1/0),l(n,r)}function n(e){return Object.prototype.toString.call(e)}function t(e){return"object"==typeof e&&"[object Date]"===n(e)}function r(e){return"object"==typeof e&&"[object Array]"===n(e)}function o(e){return"object"==typeof e&&"[object RegExp]"===n(e)}function i(e){var n="";return e.global&&(n+="g"),e.ignoreCase&&(n+="i"),e.multiline&&(n+="m"),n}return e.clonePrototype=function(e){if(null===e)return null;var n=function(){};return n.prototype=e,new n},e.__objToStr=n,e.__isDate=t,e.__isArray=r,e.__isRegExp=o,e.__getRegExpFlags=i,e}();"object"==typeof e&&e.exports&&(e.exports=t)},function(e,n,t){var r,o;(function(){function t(e){function n(n,t,r,o,i,l){for(;i>=0&&l>i;i+=e){var s=o?o[i]:i;r=t(r,n[s],s,n)}return r}return function(t,r,o,i){r=E(r,i,4);var l=!j(t)&&x.keys(t),s=(l||t).length,a=e>0?0:s-1;return arguments.length<3&&(o=t[l?l[a]:a],a+=e),n(t,r,o,l,a,s)}}function i(e){return function(n,t,r){t=k(t,r);for(var o=M(n),i=e>0?0:o-1;i>=0&&o>i;i+=e)if(t(n[i],i,n))return i;return-1}}function l(e,n,t){return function(r,o,i){var l=0,s=M(r);if("number"==typeof i)e>0?l=i>=0?i:Math.max(i+s,l):s=i>=0?Math.min(i+1,s):i+s+1;else if(t&&i&&s)return i=t(r,o),r[i]===o?i:-1;if(o!==o)return i=n(v.call(r,l,s),x.isNaN),i>=0?i+l:-1;for(i=e>0?l:s-1;i>=0&&s>i;i+=e)if(r[i]===o)return i;return-1}}function s(e,n){var t=T.length,r=e.constructor,o=x.isFunction(r)&&r.prototype||c,i="constructor";for(x.has(e,i)&&!x.contains(n,i)&&n.push(i);t--;)i=T[t],i in e&&e[i]!==o[i]&&!x.contains(n,i)&&n.push(i)}var a=this,u=a._,f=Array.prototype,c=Object.prototype,p=Function.prototype,d=f.push,v=f.slice,g=c.toString,h=c.hasOwnProperty,m=Array.isArray,y=Object.keys,_=p.bind,w=Object.create,b=function(){},x=function(e){return e instanceof x?e:this instanceof x?void(this._wrapped=e):new x(e)};"undefined"!=typeof e&&e.exports&&(n=e.exports=x),n._=x,x.VERSION="1.8.3";var E=function(e,n,t){if(void 0===n)return e;switch(null==t?3:t){case 1:return function(t){return e.call(n,t)};case 2:return function(t,r){return e.call(n,t,r)};case 3:return function(t,r,o){return e.call(n,t,r,o)};case 4:return function(t,r,o,i){return e.call(n,t,r,o,i)}}return function(){return e.apply(n,arguments)}},k=function(e,n,t){return null==e?x.identity:x.isFunction(e)?E(e,n,t):x.isObject(e)?x.matcher(e):x.property(e)};x.iteratee=function(e,n){return k(e,n,1/0)};var V=function(e,n){return function(t){var r=arguments.length;if(2>r||null==t)return t;for(var o=1;r>o;o++)for(var i=arguments[o],l=e(i),s=l.length,a=0;s>a;a++){var u=l[a];n&&void 0!==t[u]||(t[u]=i[u])}return t}},$=function(e){if(!x.isObject(e))return{};if(w)return w(e);b.prototype=e;var n=new b;return b.prototype=null,n},I=function(e){return function(n){return null==n?void 0:n[e]}},S=Math.pow(2,53)-1,M=I("length"),j=function(e){var n=M(e);return"number"==typeof n&&n>=0&&S>=n};x.each=x.forEach=function(e,n,t){n=E(n,t);var r,o;if(j(e))for(r=0,o=e.length;o>r;r++)n(e[r],r,e);else{var i=x.keys(e);for(r=0,o=i.length;o>r;r++)n(e[i[r]],i[r],e)}return e},x.map=x.collect=function(e,n,t){n=k(n,t);for(var r=!j(e)&&x.keys(e),o=(r||e).length,i=Array(o),l=0;o>l;l++){var s=r?r[l]:l;i[l]=n(e[s],s,e)}return i},x.reduce=x.foldl=x.inject=t(1),x.reduceRight=x.foldr=t(-1),x.find=x.detect=function(e,n,t){var r;return r=j(e)?x.findIndex(e,n,t):x.findKey(e,n,t),void 0!==r&&-1!==r?e[r]:void 0},x.filter=x.select=function(e,n,t){var r=[];return n=k(n,t),x.each(e,function(e,t,o){n(e,t,o)&&r.push(e)}),r},x.reject=function(e,n,t){return x.filter(e,x.negate(k(n)),t)},x.every=x.all=function(e,n,t){n=k(n,t);for(var r=!j(e)&&x.keys(e),o=(r||e).length,i=0;o>i;i++){var l=r?r[i]:i;if(!n(e[l],l,e))return!1}return!0},x.some=x.any=function(e,n,t){n=k(n,t);for(var r=!j(e)&&x.keys(e),o=(r||e).length,i=0;o>i;i++){var l=r?r[i]:i;if(n(e[l],l,e))return!0}return!1},x.contains=x.includes=x.include=function(e,n,t,r){return j(e)||(e=x.values(e)),("number"!=typeof t||r)&&(t=0),x.indexOf(e,n,t)>=0},x.invoke=function(e,n){var t=v.call(arguments,2),r=x.isFunction(n);return x.map(e,function(e){var o=r?n:e[n];return null==o?o:o.apply(e,t)})},x.pluck=function(e,n){return x.map(e,x.property(n))},x.where=function(e,n){return x.filter(e,x.matcher(n))},x.findWhere=function(e,n){return x.find(e,x.matcher(n))},x.max=function(e,n,t){var r,o,i=-(1/0),l=-(1/0);if(null==n&&null!=e){e=j(e)?e:x.values(e);for(var s=0,a=e.length;a>s;s++)r=e[s],r>i&&(i=r)}else n=k(n,t),x.each(e,function(e,t,r){o=n(e,t,r),(o>l||o===-(1/0)&&i===-(1/0))&&(i=e,l=o)});return i},x.min=function(e,n,t){var r,o,i=1/0,l=1/0;if(null==n&&null!=e){e=j(e)?e:x.values(e);for(var s=0,a=e.length;a>s;s++)r=e[s],i>r&&(i=r)}else n=k(n,t),x.each(e,function(e,t,r){o=n(e,t,r),(l>o||o===1/0&&i===1/0)&&(i=e,l=o)});return i},x.shuffle=function(e){for(var n,t=j(e)?e:x.values(e),r=t.length,o=Array(r),i=0;r>i;i++)n=x.random(0,i),n!==i&&(o[i]=o[n]),o[n]=t[i];return o},x.sample=function(e,n,t){return null==n||t?(j(e)||(e=x.values(e)),e[x.random(e.length-1)]):x.shuffle(e).slice(0,Math.max(0,n))},x.sortBy=function(e,n,t){return n=k(n,t),x.pluck(x.map(e,function(e,t,r){return{value:e,index:t,criteria:n(e,t,r)}}).sort(function(e,n){var t=e.criteria,r=n.criteria;if(t!==r){if(t>r||void 0===t)return 1;if(r>t||void 0===r)return-1}return e.index-n.index}),"value")};var O=function(e){return function(n,t,r){var o={};return t=k(t,r),x.each(n,function(r,i){var l=t(r,i,n);e(o,r,l)}),o}};x.groupBy=O(function(e,n,t){x.has(e,t)?e[t].push(n):e[t]=[n]}),x.indexBy=O(function(e,n,t){e[t]=n}),x.countBy=O(function(e,n,t){x.has(e,t)?e[t]++:e[t]=1}),x.toArray=function(e){return e?x.isArray(e)?v.call(e):j(e)?x.map(e,x.identity):x.values(e):[]},x.size=function(e){return null==e?0:j(e)?e.length:x.keys(e).length},x.partition=function(e,n,t){n=k(n,t);var r=[],o=[];return x.each(e,function(e,t,i){(n(e,t,i)?r:o).push(e)}),[r,o]},x.first=x.head=x.take=function(e,n,t){return null==e?void 0:null==n||t?e[0]:x.initial(e,e.length-n)},x.initial=function(e,n,t){return v.call(e,0,Math.max(0,e.length-(null==n||t?1:n)))},x.last=function(e,n,t){return null==e?void 0:null==n||t?e[e.length-1]:x.rest(e,Math.max(0,e.length-n))},x.rest=x.tail=x.drop=function(e,n,t){return v.call(e,null==n||t?1:n)},x.compact=function(e){return x.filter(e,x.identity)};var C=function(e,n,t,r){for(var o=[],i=0,l=r||0,s=M(e);s>l;l++){var a=e[l];if(j(a)&&(x.isArray(a)||x.isArguments(a))){n||(a=C(a,n,t));var u=0,f=a.length;for(o.length+=f;f>u;)o[i++]=a[u++]}else t||(o[i++]=a)}return o};x.flatten=function(e,n){return C(e,n,!1)},x.without=function(e){return x.difference(e,v.call(arguments,1))},x.uniq=x.unique=function(e,n,t,r){x.isBoolean(n)||(r=t,t=n,n=!1),null!=t&&(t=k(t,r));for(var o=[],i=[],l=0,s=M(e);s>l;l++){var a=e[l],u=t?t(a,l,e):a;n?(l&&i===u||o.push(a),i=u):t?x.contains(i,u)||(i.push(u),o.push(a)):x.contains(o,a)||o.push(a)}return o},x.union=function(){return x.uniq(C(arguments,!0,!0))},x.intersection=function(e){for(var n=[],t=arguments.length,r=0,o=M(e);o>r;r++){var i=e[r];if(!x.contains(n,i)){for(var l=1;t>l&&x.contains(arguments[l],i);l++);l===t&&n.push(i)}}return n},x.difference=function(e){var n=C(arguments,!0,!0,1);return x.filter(e,function(e){return!x.contains(n,e)})},x.zip=function(){return x.unzip(arguments)},x.unzip=function(e){for(var n=e&&x.max(e,M).length||0,t=Array(n),r=0;n>r;r++)t[r]=x.pluck(e,r);return t},x.object=function(e,n){for(var t={},r=0,o=M(e);o>r;r++)n?t[e[r]]=n[r]:t[e[r][0]]=e[r][1];return t},x.findIndex=i(1),x.findLastIndex=i(-1),x.sortedIndex=function(e,n,t,r){t=k(t,r,1);for(var o=t(n),i=0,l=M(e);l>i;){var s=Math.floor((i+l)/2);t(e[s])<o?i=s+1:l=s}return i},x.indexOf=l(1,x.findIndex,x.sortedIndex),x.lastIndexOf=l(-1,x.findLastIndex),x.range=function(e,n,t){null==n&&(n=e||0,e=0),t=t||1;for(var r=Math.max(Math.ceil((n-e)/t),0),o=Array(r),i=0;r>i;i++,e+=t)o[i]=e;return o};var L=function(e,n,t,r,o){if(!(r instanceof n))return e.apply(t,o);var i=$(e.prototype),l=e.apply(i,o);return x.isObject(l)?l:i};x.bind=function(e,n){if(_&&e.bind===_)return _.apply(e,v.call(arguments,1));if(!x.isFunction(e))throw new TypeError("Bind must be called on a function");var t=v.call(arguments,2),r=function(){return L(e,r,n,this,t.concat(v.call(arguments)))};return r},x.partial=function(e){var n=v.call(arguments,1),t=function(){for(var r=0,o=n.length,i=Array(o),l=0;o>l;l++)i[l]=n[l]===x?arguments[r++]:n[l];for(;r<arguments.length;)i.push(arguments[r++]);return L(e,t,this,this,i)};return t},x.bindAll=function(e){var n,t,r=arguments.length;if(1>=r)throw new Error("bindAll must be passed function names");for(n=1;r>n;n++)t=arguments[n],e[t]=x.bind(e[t],e);return e},x.memoize=function(e,n){var t=function(r){var o=t.cache,i=""+(n?n.apply(this,arguments):r);return x.has(o,i)||(o[i]=e.apply(this,arguments)),o[i]};return t.cache={},t},x.delay=function(e,n){var t=v.call(arguments,2);return setTimeout(function(){return e.apply(null,t)},n)},x.defer=x.partial(x.delay,x,1),x.throttle=function(e,n,t){var r,o,i,l=null,s=0;t||(t={});var a=function(){s=t.leading===!1?0:x.now(),l=null,i=e.apply(r,o),l||(r=o=null)};return function(){var u=x.now();s||t.leading!==!1||(s=u);var f=n-(u-s);return r=this,o=arguments,0>=f||f>n?(l&&(clearTimeout(l),l=null),s=u,i=e.apply(r,o),l||(r=o=null)):l||t.trailing===!1||(l=setTimeout(a,f)),i}},x.debounce=function(e,n,t){var r,o,i,l,s,a=function(){var u=x.now()-l;n>u&&u>=0?r=setTimeout(a,n-u):(r=null,t||(s=e.apply(i,o),r||(i=o=null)))};return function(){i=this,o=arguments,l=x.now();var u=t&&!r;return r||(r=setTimeout(a,n)),u&&(s=e.apply(i,o),i=o=null),s}},x.wrap=function(e,n){return x.partial(n,e)},x.negate=function(e){return function(){return!e.apply(this,arguments)}},x.compose=function(){var e=arguments,n=e.length-1;return function(){for(var t=n,r=e[n].apply(this,arguments);t--;)r=e[t].call(this,r);return r}},x.after=function(e,n){return function(){return--e<1?n.apply(this,arguments):void 0}},x.before=function(e,n){var t;return function(){return--e>0&&(t=n.apply(this,arguments)),1>=e&&(n=null),t}},x.once=x.partial(x.before,2);var A=!{toString:null}.propertyIsEnumerable("toString"),T=["valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"];x.keys=function(e){if(!x.isObject(e))return[];if(y)return y(e);var n=[];for(var t in e)x.has(e,t)&&n.push(t);return A&&s(e,n),n},x.allKeys=function(e){if(!x.isObject(e))return[];var n=[];for(var t in e)n.push(t);return A&&s(e,n),n},x.values=function(e){for(var n=x.keys(e),t=n.length,r=Array(t),o=0;t>o;o++)r[o]=e[n[o]];return r},x.mapObject=function(e,n,t){n=k(n,t);for(var r,o=x.keys(e),i=o.length,l={},s=0;i>s;s++)r=o[s],l[r]=n(e[r],r,e);return l},x.pairs=function(e){for(var n=x.keys(e),t=n.length,r=Array(t),o=0;t>o;o++)r[o]=[n[o],e[n[o]]];return r},x.invert=function(e){for(var n={},t=x.keys(e),r=0,o=t.length;o>r;r++)n[e[t[r]]]=t[r];return n},x.functions=x.methods=function(e){var n=[];for(var t in e)x.isFunction(e[t])&&n.push(t);return n.sort()},x.extend=V(x.allKeys),x.extendOwn=x.assign=V(x.keys),x.findKey=function(e,n,t){n=k(n,t);for(var r,o=x.keys(e),i=0,l=o.length;l>i;i++)if(r=o[i],n(e[r],r,e))return r},x.pick=function(e,n,t){var r,o,i={},l=e;if(null==l)return i;x.isFunction(n)?(o=x.allKeys(l),r=E(n,t)):(o=C(arguments,!1,!1,1),r=function(e,n,t){return n in t},l=Object(l));for(var s=0,a=o.length;a>s;s++){var u=o[s],f=l[u];r(f,u,l)&&(i[u]=f)}return i},x.omit=function(e,n,t){if(x.isFunction(n))n=x.negate(n);else{var r=x.map(C(arguments,!1,!1,1),String);n=function(e,n){return!x.contains(r,n)}}return x.pick(e,n,t)},x.defaults=V(x.allKeys,!0),x.create=function(e,n){var t=$(e);return n&&x.extendOwn(t,n),t},x.clone=function(e){return x.isObject(e)?x.isArray(e)?e.slice():x.extend({},e):e},x.tap=function(e,n){return n(e),e},x.isMatch=function(e,n){var t=x.keys(n),r=t.length;if(null==e)return!r;for(var o=Object(e),i=0;r>i;i++){var l=t[i];if(n[l]!==o[l]||!(l in o))return!1}return!0};var F=function(e,n,t,r){if(e===n)return 0!==e||1/e===1/n;if(null==e||null==n)return e===n;e instanceof x&&(e=e._wrapped),n instanceof x&&(n=n._wrapped);var o=g.call(e);if(o!==g.call(n))return!1;switch(o){case"[object RegExp]":case"[object String]":return""+e==""+n;case"[object Number]":return+e!==+e?+n!==+n:0===+e?1/+e===1/n:+e===+n;case"[object Date]":case"[object Boolean]":return+e===+n}var i="[object Array]"===o;if(!i){if("object"!=typeof e||"object"!=typeof n)return!1;var l=e.constructor,s=n.constructor;if(l!==s&&!(x.isFunction(l)&&l instanceof l&&x.isFunction(s)&&s instanceof s)&&"constructor"in e&&"constructor"in n)return!1}t=t||[],r=r||[];for(var a=t.length;a--;)if(t[a]===e)return r[a]===n;if(t.push(e),r.push(n),i){if(a=e.length,a!==n.length)return!1;for(;a--;)if(!F(e[a],n[a],t,r))return!1}else{var u,f=x.keys(e);if(a=f.length,x.keys(n).length!==a)return!1;for(;a--;)if(u=f[a],!x.has(n,u)||!F(e[u],n[u],t,r))return!1}return t.pop(),r.pop(),!0};x.isEqual=function(e,n){return F(e,n)},x.isEmpty=function(e){return null==e?!0:j(e)&&(x.isArray(e)||x.isString(e)||x.isArguments(e))?0===e.length:0===x.keys(e).length},x.isElement=function(e){return!(!e||1!==e.nodeType)},x.isArray=m||function(e){return"[object Array]"===g.call(e)},x.isObject=function(e){var n=typeof e;return"function"===n||"object"===n&&!!e},x.each(["Arguments","Function","String","Number","Date","RegExp","Error"],function(e){x["is"+e]=function(n){return g.call(n)==="[object "+e+"]"}}),x.isArguments(arguments)||(x.isArguments=function(e){return x.has(e,"callee")}),"function"!=typeof/./&&"object"!=typeof Int8Array&&(x.isFunction=function(e){return"function"==typeof e||!1}),x.isFinite=function(e){return isFinite(e)&&!isNaN(parseFloat(e))},x.isNaN=function(e){return x.isNumber(e)&&e!==+e},x.isBoolean=function(e){return e===!0||e===!1||"[object Boolean]"===g.call(e)},x.isNull=function(e){return null===e},x.isUndefined=function(e){return void 0===e},x.has=function(e,n){return null!=e&&h.call(e,n)},x.noConflict=function(){return a._=u,this},x.identity=function(e){return e},x.constant=function(e){return function(){return e}},x.noop=function(){},x.property=I,x.propertyOf=function(e){return null==e?function(){}:function(n){return e[n]}},x.matcher=x.matches=function(e){return e=x.extendOwn({},e),function(n){return x.isMatch(n,e)}},x.times=function(e,n,t){var r=Array(Math.max(0,e));n=E(n,t,1);for(var o=0;e>o;o++)r[o]=n(o);return r},x.random=function(e,n){return null==n&&(n=e,e=0),e+Math.floor(Math.random()*(n-e+1))},x.now=Date.now||function(){return(new Date).getTime()};var z={"&":"&","<":"<",">":">",'"':""","'":"'","`":"`"},N=x.invert(z),R=function(e){var n=function(n){return e[n]},t="(?:"+x.keys(e).join("|")+")",r=RegExp(t),o=RegExp(t,"g");return function(e){return e=null==e?"":""+e,r.test(e)?e.replace(o,n):e}};x.escape=R(z),x.unescape=R(N),x.result=function(e,n,t){var r=null==e?void 0:e[n];return void 0===r&&(r=t),x.isFunction(r)?r.call(e):r};var B=0;x.uniqueId=function(e){var n=++B+"";return e?e+n:n},x.templateSettings={evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,escape:/<%-([\s\S]+?)%>/g};var D=/(.)^/,q={"'":"'","\\":"\\","\r":"r","\n":"n","\u2028":"u2028","\u2029":"u2029"},P=/\\|'|\r|\n|\u2028|\u2029/g,W=function(e){return"\\"+q[e]};x.template=function(e,n,t){!n&&t&&(n=t),n=x.defaults({},n,x.templateSettings);var r=RegExp([(n.escape||D).source,(n.interpolate||D).source,(n.evaluate||D).source].join("|")+"|$","g"),o=0,i="__p+='";e.replace(r,function(n,t,r,l,s){return i+=e.slice(o,s).replace(P,W),o=s+n.length,t?i+="'+\n((__t=("+t+"))==null?'':_.escape(__t))+\n'":r?i+="'+\n((__t=("+r+"))==null?'':__t)+\n'":l&&(i+="';\n"+l+"\n__p+='"),n}),i+="';\n",n.variable||(i="with(obj||{}){\n"+i+"}\n"),i="var __t,__p='',__j=Array.prototype.join,print=function(){__p+=__j.call(arguments,'');};\n"+i+"return __p;\n";try{var l=new Function(n.variable||"obj","_",i)}catch(s){throw s.source=i,s}var a=function(e){return l.call(this,e,x)},u=n.variable||"obj";return a.source="function("+u+"){\n"+i+"}",a},x.chain=function(e){var n=x(e);return n._chain=!0,n};var H=function(e,n){return e._chain?x(n).chain():n};x.mixin=function(e){x.each(x.functions(e),function(n){var t=x[n]=e[n];x.prototype[n]=function(){var e=[this._wrapped];return d.apply(e,arguments),H(this,t.apply(x,e))}})},x.mixin(x),x.each(["pop","push","reverse","shift","sort","splice","unshift"],function(e){var n=f[e];x.prototype[e]=function(){var t=this._wrapped;return n.apply(t,arguments),"shift"!==e&&"splice"!==e||0!==t.length||delete t[0],H(this,t)}}),x.each(["concat","join","slice"],function(e){var n=f[e];x.prototype[e]=function(){return H(this,n.apply(this._wrapped,arguments))}}),x.prototype.value=function(){return this._wrapped},x.prototype.valueOf=x.prototype.toJSON=x.prototype.value,x.prototype.toString=function(){return""+this._wrapped},r=[],o=function(){return x}.apply(n,r),!(void 0!==o&&(e.exports=o))}).call(this)}]),function(e){function n(r){if(t[r])return t[r].exports;var o=t[r]={exports:{},id:r,loaded:!1};return e[r].call(o.exports,o,o.exports,n),o.loaded=!0,o.exports}var t={};return n.m=e,n.c=t,n.p="",n(0)}([function(n,t,r){try{e.internals["lib/createFilterer"]=r(1)}catch(o){console.log("Error bundling package lib/createFilterer!"),console.error(o),e.reportError(o)}try{e.internals["lib/getType"]=r(2)}catch(o){console.log("Error bundling package lib/getType!"),console.error(o),e.reportError(o)}try{e.internals["lib/lens"]=r(3)}catch(o){console.log("Error bundling package lib/lens!"),console.error(o),e.reportError(o)}try{e.internals["lib/uid"]=r(4)}catch(o){console.log("Error bundling package lib/uid!"),console.error(o),e.reportError(o)}},function(n,t){!function(){e.file("lib/createFilterer.js",function(e){function t(e,n){n||(n={});var t={};return function(o){var i;if(!t[o])for(var l=o.length-1;l>0;l-=1)if(i=o.substr(0,l),t[i]){t[o]=r(t[i],o,n);break}return t[o]||(t[o]=r(e,o,n)),t[o]}}function r(e,n,t){return a(e).reduce(function(a,u){var f,c=e[u];return i(c)?(o(n,u,t)||o(n,c,t))&&(a[u]=c):o(n,u,t)?a[u]=c:(f=r(c,n,t),isEmpty(f)||s(a,l(u,f))),a},{})}function o(e,n,t){return t.ignoreCase?(e=String(e).toLowerCase(),n&&-1!==String(n).toLowerCase().indexOf(e)):n&&-1!==String(n).indexOf(e)}function i(e){var n=getType(e);return"Object"!==n&&"Array"!==n}function l(e,n){var t={};return t[e]=n,t}Object.defineProperty(e,"__esModule",{value:!0}),e["default"]=t;var s=Object.assign,a=Object.keys;n.exports=e["default"]})}()},function(n,t){!function(){e.file("lib/getType.js",function(e){function t(e){return Object.prototype.toString.call(e).slice(8,-1)}Object.defineProperty(e,"__esModule",{value:!0}),e["default"]=t,n.exports=e["default"]})}()},function(n,t){!function(){e.file("lib/lens.js",function(e){function t(e,n){var i=n.split(o),l=i.shift();if(!l)return e;var s=getType(e);return"Array"===s&&e[r(l)]?t(e[r(l)],i.join(o)):"Object"===s&&e[l]?t(e[l],i.join(o)):void 0}function r(e){return parseInt(e,10)}Object.defineProperty(e,"__esModule",{value:!0}),e["default"]=t;var o=".";n.exports=e["default"]})}()},function(n,t){!function(){e.file("lib/uid.js",function(e){function t(){return r++}Object.defineProperty(e,"__esModule",{value:!0}),e["default"]=t;var r=Math.ceil(10*Math.random());n.exports=e["default"]})}()}]),!function(){e.file("main.js",function(n){function t(e){return e&&e.__esModule?e:{"default":e}}var r=Object.assign||function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e},o=require("mouse-event-offset"),i=t(o);e.staticStyles("Main",{$:"#_flintdevtools .ViewMain"},{$:{position:"fixed",top:0,left:0,right:0,bottom:0,zIndex:2147483647}}),e.view("Main",function(n,t,r){var o=window.__isDevingDevTools,i=!0;n.render(function(){return n.el(["link",1],{rel:"stylesheet",property:"stylesheet",href:"/__/tools/static/tools.css"})}),n.render(function(){return e.iff(!o)&&n.el(["link",2],{"if":!o,rel:"stylesheet",property:"stylesheet",href:"/__/tools/styles.css"})}),n.render(function(){return n.el(["Errors",1],null)}),n.render(function(){return n.el(["Installer",1],null)}),n.render(function(){return e.iff(i)&&n.el(["Inspector",1],{"if":i})}),n.render(function(){return e.iff(o)&&n.el(["Name",1],{"if":o})}),n.render(function(){return e.iff(o)&&n.el(["Counter",1],{"if":o})}),n.render(function(){return e.iff(o)&&n.el(["Circles",1],{"if":o})}),r.$=function(e,n){return{pointerEvents:o?"auto":"none"}}}),e.view("Counter",function(e,n,t){var r=0;e.render(function(){return e.el(["h1",1],null,"count is ",r)}),e.render(function(){return e.el(["button",1],{onClick:function(){return e.set("count",r++,r,!0)}},"up")}),e.render(function(){return e.el(["button",2],{onClick:function(){return e.set("count",r--,r,!0)}},"down")})}),e.view("Deep",function(e,n,t){var r={name:"nick",tools:["js","juggling balls","coffee"]};e.render(function(){return e.el(["h1",1],null,"deep")}),e.render(function(){return e.el(["h2",1],null,JSON.stringify(r))})}),e.view("Name",function(e,n,t){var r="nick",o="cammarata";e.render(function(){return e.el(["h2",1],null,"name is ",r," ",o)}),e.render(function(){return e.el(["input",1],{__flintValue:r,__flintOnChange:function(n){e.set("first",r=n.target.value)}})}),e.render(function(){return e.el(["input",2],{__flintValue:o,__flintOnChange:function(n){e.set("last",o=n.target.value)}})}),e.render(function(){return e.el(["button",1],{onClick:function(){e.set("first",r="nate"),e.set("last",o="wienert")}},"nateify")})}),e.staticStyles("Circles",{$circles:"#_flintdevtools .ViewCircles"},{$circles:{position:"relative",background:"#eee",height:400,width:400}}),e.view("Circles",function(n,t,r){function o(e){n.set("coords",l.push((0,i["default"])(e)),l,!0)}var l=[[200,200]];n.render(function(){return n.el(["circles",1],{onClick:o},e.range(l).map(function(e,t){return n.el(["Circle",1,e,t],{repeat:l,left:e[0],top:e[1]})}))})}),e.view("Circle",function(e,n,t){var o=function(){return Math.round(255*Math.random())},i={background:[o(),o(),o()],position:"absolute",top:e.props.top,left:e.props.left,width:118,height:29,borderRadius:27},l=function(e){return r({},i,{transform:{scale:e}})};e.render(function(){return e.el(["circle",1],{style:l(1)})})})})}(),!function(){e.file("close.js",function(n){e.staticStyles("Close",{$:"#_flintdevtools .ViewClose"},{$:{position:"absolute",right:0,top:0,display:"flex",justifyContent:"center",alignItems:"center",lineHeight:1,opacity:.3,cursor:"pointer"}}),e.view("Close",function(e,n,t){e.render(function(){return e.el(["close",1],{onClick:e.props.onClick},"x")}),t.$=function(n,t){return{fontSize:e.props.fontSize||16,width:e.props.size||50,height:e.props.size||50,":hover":{opacity:1}}}})})}(),!function(){e.file("debounce.js",function(n){var t=function(e,n){return e+n},r=300,o=800,i=5e3,l=1e4,s=1e3;e.view("Debounce",function(e,n,a){var u=void 0,f=void 0,c=void 0,p=void 0,d=void 0,v=void 0,g=!1,h=[];e.pause(),n.props(function(){function n(){e.props.onUpdate&&e.props.onUpdate(),e.update()}if(e.props.force)return n();if(!e.props.showKey||e.props.showKey!=u){e.set("showKey",u=e.props.showKey),e.set("delay",p=e.props.delay||r),e.set("curDelay",d=d||p);var a=Date.now(),m=c?a-c:i;e.set("lastTime",c=a),e.set("lastFew",h.unshift(m),h,!0),h.length>3&&e.set("lastFew",h.pop(),h,!0),m>l?e.set("lastFew",h=[]):3==h.length&&(e.set("avgDiff",v=h.reduce(t,0)/h.length),e.set("isAutoSaving",g=s>v),e.set("curDelay",d=g?o:p)),clearTimeout(f),e.set("timeout",f=setTimeout(n,d))}})})})}(),!function(){e.file("errors.js",function(n){function t(e){if(e.file&&(e.file=e.file.replace(new RegExp(".*"+window.location.origin+"(/[_]+/)?"),"")),e.file&&e.file.indexOf("internals.js")>=0)if(e.message&&0==e.message.indexOf("Cannot find module")){var n=e.message.match(/(fs|path)/);n&&n.length&&(e.file="imported module:",e.message="Cannot import node-only module: "+n[0])}else e.message="Error in a locally required file. "+e.message;return e.message&&(e.niceMessage=e.message.replace(/Uncaught .*Error:\s*/,"")),e}function r(e){var n=e.msg,t=e.name;return n&&(n=n.replace(/(npm WARN.*\n|ERR\!)/g,"").replace(/npm argv.*\n/g,"").replace(/npm node v.*\n/g,"").replace(/npm npm.*\n/g,"").replace(/npm code.*\n/g,"").replace(/npm peerinvalid /g,"").replace(/npm 404 /g,"")),{msg:n,name:t}}var o=window._DT,i=function(e,n){return[e.substring(0,n),e.substring(n,n+1),e.substring(n+1)]},l=function(e){return a(c(p(e)))},s=function(e){return e?e.replace(/.*\.js\:/,"").replace(/\([0-9]+\:[0-9]+\)/,"").replace(/Line [0-9]+\:\s*/,""):""},a=function(e){return e.niceMessage=s(e.message,e.fileName),e},u=/\>?\s*([0-9]*)\s*\|(.*)/g,f=/\s*\|\s*\^\s*$/g,c=function(e){return e?(e.stack&&!function(){e.fullStack=["","",""];var n=0;e.stack.split("\n").forEach(function(t){if(!f.test(t)&&u.test(t)){var r=">"===t[0];r&&(n=1),r||1!==n||(n=2);var o=t.replace(u,"$1$2").replace(/^(\s*[0-9]+\s*)[;]/,"$1 ");e.fullStack[n]+=o+"\n"}})}(),e):void 0},p=function(e){return e?(e.stack&&e.stack.split("\n").map(function(n){if(">"===n[0]){var t=n;if(!t)return;t=t.replace(/\>\s*[0-9]+\s*\|\s*/,""),t=s(t);var r=e.loc.column-4;e.niceStack=i(t,r)}}),e):void 0};e.view("Errors",function(e,n,i){function s(){f?e.set("error",u=l(f)):c?e.set("error",u=t(c)):e.set("error",u=null),e.update()}function a(){e.set("error",u=null),e.set("compileError",f=null),e.set("runtimeError",c=null),e.set("npmError",p=null),e.update()}e.pause();var u=null,f=null,c=null,p=null;o.on("compile:error",function(){e.set("compileError",f=o.data.error),s()}),o.on("runtime:error",function(){e.set("runtimeError",c=o.data),s()}),o.on("npm:error",function(){e.set("npmError",p=r(o.data.error)),e.update()}),o.on("runtime:success",function(){e.set("runtimeError",c=null),e.set("npmError",p=null),s()}),o.on("compile:success",function(){e.set("compileError",f=null),e.set("npmError",p=null),s()}),e.render(function(){return e.el(["ErrorMessage",1],{error:u,npmError:p,close:a})})});var d=0,v=function(e){return e&&e.replace(/[\?\)].*/,"")},g=function(e){return e&&(e.line||e.loc&&e.loc.line)};e.staticStyles("ErrorMessage",{$bar:"#_flintdevtools bar.ErrorMessage, #_flintdevtools .ErrorMessage.bar, #_flintdevtools .ViewErrorMessage.bar, #_flintdevtools .ErrorMessage > .bar", | ||
$hasError:"#_flintdevtools hasError.ErrorMessage, #_flintdevtools .ErrorMessage.hasError, #_flintdevtools .ViewErrorMessage.hasError, #_flintdevtools .ErrorMessage > .hasError",$inner:"#_flintdevtools inner.ErrorMessage, #_flintdevtools .ErrorMessage.inner, #_flintdevtools .ViewErrorMessage.inner, #_flintdevtools .ErrorMessage > .inner",$top:"#_flintdevtools top.ErrorMessage, #_flintdevtools .ErrorMessage.top, #_flintdevtools .ViewErrorMessage.top, #_flintdevtools .ErrorMessage > .top",$where:"#_flintdevtools where.ErrorMessage, #_flintdevtools .ErrorMessage.where, #_flintdevtools .ViewErrorMessage.where, #_flintdevtools .ErrorMessage > .where",$line:"#_flintdevtools line.ErrorMessage, #_flintdevtools .ErrorMessage.line, #_flintdevtools .ViewErrorMessage.line, #_flintdevtools .ErrorMessage > .line",$flint:"#_flintdevtools flint.ErrorMessage, #_flintdevtools .ErrorMessage.flint, #_flintdevtools .ViewErrorMessage.flint, #_flintdevtools .ErrorMessage > .flint",$shortError:"#_flintdevtools shortError.ErrorMessage, #_flintdevtools .ErrorMessage.shortError, #_flintdevtools .ViewErrorMessage.shortError, #_flintdevtools .ErrorMessage > .shortError",$cur:"#_flintdevtools cur.ErrorMessage, #_flintdevtools .ErrorMessage.cur, #_flintdevtools .ViewErrorMessage.cur, #_flintdevtools .ErrorMessage > .cur",$errCol:"#_flintdevtools errCol.ErrorMessage, #_flintdevtools .ErrorMessage.errCol, #_flintdevtools .ViewErrorMessage.errCol, #_flintdevtools .ErrorMessage > .errCol",$ln:"#_flintdevtools ln.ErrorMessage, #_flintdevtools .ErrorMessage.ln, #_flintdevtools .ViewErrorMessage.ln, #_flintdevtools .ErrorMessage > .ln",$flintline:"#_flintdevtools flintline.ErrorMessage, #_flintdevtools .ErrorMessage.flintline, #_flintdevtools .ViewErrorMessage.flintline, #_flintdevtools .ErrorMessage > .flintline"},{$bar:{display:"block",position:"fixed",left:0,transition:"all 200ms ease-in",right:0,fontFamily:'-apple-system, "San Francisco", Roboto, "Segou UI", "Helvetica Neue", Helvetica, Arial, sans-serif',fontWeight:300,color:"#fff",fontSize:"14px",padding:2,pointerEvents:"all",overflow:"scroll",zIndex:2147483647,boxShadow:"0 -6px 12px rgba(0,0,0,0.06)"},$hasError:{bottom:0},$inner:{display:"block",maxHeight:200,overflowY:"scroll"},$top:{padding:8,display:"block"},$where:{display:"inline-block",pointerEvents:"all",fontWeight:300,color:"rgba(255,255,255,0.8)"},$line:{display:"inline-block",whiteSpace:"pre",pointerEvents:"all"},$flint:{display:"inline",fontWeight:700,color:"#fff"},$shortError:{display:"inline",color:"rgba(255,255,255,0.7)"},$cur:{background:"#fff"},$errCol:{display:"inline",borderBottom:"2px solid #f5d64c",padding:3,color:"#fff"},$ln:{padding:[0,20]},$flintline:{whiteSpace:"pre",pointerEvents:"all",fontWeight:"flint"}}),e.view("ErrorMessage",function(n,t,r){function o(){setTimeout(function(){var e=document.querySelectorAll(".__flintError");e.length&&[].forEach.call(e,function(e){e.className+=" active"})})}n.pause();var i=!1,l={},s=void 0,a=void 0,u=g(n.props.error),f=void 0;t.props(function(){f&&f(),n.set("npmError",s=n.props.npmError),n.set("hasError",i=!(!n.props.error&&!n.props.npmError)),n.set("error",l=n.props.error||l),n.set("line",u=g(l)),n.set("fullStack",a=null),n.update(),l&&n.set("clearDelay",f=t.delay(2500,function(){i&&l.fullStack&&(n.set("fullStack",a=l.fullStack),n.update())}))}),n.render(function(){return n.el(["Debounce",1],{delay:1e3,force:i===!1,showKey:a||l&&l.message,onUpdate:o},n.el(["bar",1],{className:{hasError:i}},n.el(["Close",1],{onClick:n.props.close,size:35}),e.iff(s)&&n.el(["inner",1],{"if":s},n.el(["where",1],null,n.el(["flint",1],null,s.name))," ",s.msg),n.el(["inner",2],null,n.el(["top",1],null,n.el(["where",2],null,n.el(["span",1],null,"In ",n.el(["flint",2],null,v(l.file))),n.el(["line",1],null,u?" line":""," ",e.iff(u)&&n.el(["flint",3],{"if":u},u-d)))," ",n.el(["shortError",1],null,(l.niceMessage||l.message||"").trim(),e.iff(l.niceStack)&&n.el(["niceStack",1],{"if":l.niceStack},l.niceStack[0],n.el(["errCol",1],null,l.niceStack[1]),l.niceStack[2])),e.iff(l.help)&&n.el(["help",1],{"if":l.help},l.help)),e.iff(a)&&n.el(["fullStack",1],{"if":a},n.el(["ln",1],null,""+a[0]),n.el(["ln",2],{className:"cur"},""+a[1]),n.el(["ln",3],null,""+a[2])))))});var c="#cd423e";r.bar=function(e,n){return{background:c,bottom:-100}};var p={color:"rgba(255,255,255,0.85)",display:"inline",fontFamily:"Meslo, Menlo, Monaco, monospace",padding:[0,5]};r.niceStack=function(e,n){return p},r.errCol=function(e,n){return{margin:-3}},r._static.fullStack={},r.fullStack=function(e,n){return[p,{maxHeight:a?600:0,padding:a?[10,0]:0,transition:"maxHeight ease-in 300ms",color:"rgba(0,0,0,0.85)",background:"rgba(255,255,255,0.9)",display:"block",whiteSpace:"pre",fontSize:14,borderRadius:3,margin:2}]}}),e.staticStyles("ErrorIcon",{$svg:"#_flintdevtools svg.ErrorIcon, #_flintdevtools .ErrorIcon.svg, #_flintdevtools .ViewErrorIcon.svg, #_flintdevtools .ErrorIcon > .svg"},{$svg:{width:19,fill:"red",marginLeft:3,marginRight:6,opacity:.9}}),e.view("ErrorIcon",function(e,n,t){e.render(function(){return e.el(["svg",1],{viewBox:"0 0 27.963 27.963"},e.el(["path",1],{d:"M13.983,0C6.261,0,0.001,6.259,0.001,13.979c0,7.724,6.26,13.984,13.982,13.984s13.98-6.261,13.98-13.984 C27.963,6.259,21.705,0,13.983,0z M13.983,26.531c-6.933,0-12.55-5.62-12.55-12.553c0-6.93,5.617-12.548,12.55-12.548 c6.931,0,12.549,5.618,12.549,12.548C26.531,20.911,20.913,26.531,13.983,26.531z"}),e.el(["polygon",1],{points:"15.579,17.158 16.191,4.579 11.804,4.579 12.414,17.158"}),e.el(["path",2],{d:"M13.998,18.546c-1.471,0-2.5,1.029-2.5,2.526c0,1.443,0.999,2.528,2.444,2.528h0.056c1.499,0,2.469-1.085,2.469-2.528 C16.441,19.575,15.468,18.546,13.998,18.546z"}))}),t.svg=function(e,n){return{margin:-4}}})})}(),!function(){e.file("inspector.js",function(n){function t(e){return Array.isArray(e)?e:Array.from(e)}function r(e){var n=e.getBoundingClientRect(),t=window.innerWidth,r=window.innerHeight,o=y(n.right-n.left),i=y(n.bottom-n.top),l=1;o>=t&&i>=r&&(l=.2),_.setAttribute("style","\n top: "+y(n.top)+"px;\n left: "+y(n.left)+"px;\n width: "+o+"px;\n height: "+i+"px;\n opacity: "+l+";\n ")}function o(){_.setAttribute("style","")}function i(e){if(!e||!e.getAttribute)return null;var n=e.__flintID;return n?(r(e),n):i(e.parentNode)}function l(e,n){return e.filter(function(e){return e.path==n}).length>0}function s(e){return e.filter(function(e){return!e.temp}).map(function(e){return v({},e,{highlight:!1})})}function a(e,n){return[{path:n,highlight:!1,temp:!0}].concat(e)}function u(e,n){return e.map(function(e){return e.path==n&&(e.closing=!0),e})}function f(e,n){return e.map(function(e){return e.path==n&&(e.highlight=!0),e})}function c(e,n){if(l(e,n))return e.map(function(e){return e.path==n&&(e.temp=!0),e});var t={temp:!1,highlight:!1,closing:!1,path:n};return[].concat([t],e)}function p(){return window._Flint}function d(e,n){var t=p(),r=n[1][0],o=t.getCache[e][r],i=n[1][1];"number"==typeof o&&(i=+i),t.setCache(e,r,i),t.inspectorRefreshing=e,t.getInitialStates[e](),t.viewsAtPath[e].forceUpdate(),t.inspectorRefreshing=null}var v=Object.assign||function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e},g=function(e){var n=t(e),r=(n[0],n.slice(1));return r},h=function(e){return function(n){return"Alt"===n.keyIdentifier&&e()}},m=function(e){return function(n){return 27===n.keyCode&&e()}},y=Math.round,_=void 0;e.staticStyles("Inspector",{$:"#_flintdevtools .ViewInspector"},{$:{position:"fixed",top:0,right:0,padding:2}}),e.view("Inspector",function(n,t,r){function y(e){p().isInspecting=!0;var t=i(e);n.set("views",O=s(O)),n.set("views",O=l(O,t)?f(O,t):a(O,t))}function w(e){var t=e.target;M!=t&&(n.set("lastTarget",M=t),j&&y(M))}function b(){O.length&&n.set("views",O=g(O))}function x(e,r){r&&r.stopPropagation(),n.set("views",O=u(O,e)),t.delay(200,function(){n.set("views",O=O.filter(function(n){return e!=n.path}))})}function E(e){return n.set("views",O=c(s(O),i(e.target))),!1}function k(){y(M),n.set("hudActive",j=!0),n.set("clickOff",I=t.click(window,E))}function V(){p().isInspecting=!1,n.set("hudActive",j=!1),o(),I&&I(),n.set("views",O=s(O))}function $(e,t){d(e,t),n.update()}var I=void 0,S=void 0,M=void 0,j=!1,O=[];t.mount(function(){n.set("hoverOff",S=t.mousemove(window,w)),_||(_=document.createElement("div"),_.className="_flintHighlighter",document.body.appendChild(_))}),t.keydown(window,h(k)),t.keyup(window,h(V)),t.keyup(window,m(b)),n.render(function(){return e.range(O).map(function(e,t){return n.el(["Inspector.View",1,e,t],v({repeat:O,key:e.path},e,{writeBack:$,onClose:function(n){return x(e.path,n)}}))})})})})}(),!function(){e.file("modal.js",function(n){e.staticStyles("Modal",{$:"#_flintdevtools .ViewModal",$title:"#_flintdevtools title.Modal, #_flintdevtools .Modal.title, #_flintdevtools .ViewModal.title, #_flintdevtools .Modal > .title",$message:"#_flintdevtools message.Modal, #_flintdevtools .Modal.message, #_flintdevtools .ViewModal.message, #_flintdevtools .Modal > .message"},{$:{position:"fixed",right:0,minWidth:80,padding:[10,10],margin:20,background:"#fff",boxShadow:"0 0 10px rgba(0,0,0,0.1)",border:"2px solid #e80967",fontSize:14,transition:"all ease-in 200ms",textAlign:"center",borderRadius:6,pointerEvents:"auto"},$title:{color:"#222",fontWeight:500,fontSize:15,margin:[0,20]},$message:{fontFamily:"-apple-system, 'Helvetica Nueue', Helvetica, Arial, sans-serif"}}),e.view("Modal",function(n,t,r){function o(){return n.set("open",s=n.props.open),l&&!n.props.title?n.update():(n.set("title",l=n.props.title),n.set("children",i=n.props.children),void n.update())}n.pause();var i=void 0,l=void 0,s=void 0;t.props(o),n.render(function(){return n.el(["modal",1],null,n.el(["Close",1],{size:25}),e.iff(l)&&n.el(["title",1],{"if":l},l),e.iff(i)&&n.el(["message",1],{"if":i},i))}),r.$=function(e,n){return{top:s?0:-140}}})})}(),!function(){e.file("inspector/highlighter.js",function(n){e.view("Highlighter",function(n,t,r){n.render(function(){return e.iff(!n.props.highlight||-1===n.props.string.indexOf(n.props.highlight))&&n.el(["name",1],{"if":!n.props.highlight||-1===n.props.string.indexOf(n.props.highlight)},n.props.string)}),n.render(function(){return e.iff(n.props.highlight)&&n.el(["span",1],{"if":n.props.highlight},e.range(n.props.string.split()).map(function(t,r){return n.el(["span",2,t,r],{repeat:n.props.string.split()},e.iff(r>0)&&n.el(["highlight",1,t,r],{"if":r>0},n.props.highlight),t)}))})})})}(),!function(){e.file("inspector/label.js",function(n){var t=Object.assign||function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e};e.staticStyles("Label",{$input:"#_flintdevtools input.Label, #_flintdevtools .Label.input, #_flintdevtools .ViewLabel.input, #_flintdevtools .Label > .input",$focus:"#_flintdevtools focus.Label, #_flintdevtools .Label.focus, #_flintdevtools .ViewLabel.focus, #_flintdevtools .Label > .focus"},{$input:{position:"absolute",top:0,right:0,color:"#333",padding:1,width:140,outline:"none",border:"none",opacity:0,boxShadow:"1px 1px 2px rgba(0,0,0,0.4)"},$focus:{opacity:"1 !important"}}),e.view("Label",function(e,n,r){var o=void 0,i=void 0;n.props(function(){e.set("newVal",i=e.props.val)});var l=function(n){e.props.editable&&(e.set("focus",o=!0),n.stopPropagation(),n.target.select())},s=function(n){e.set("focus",o=!1)},a=function(n){e.set("newVal",i=n.target.value),"false"===i&&e.set("newVal",i=!1),"true"===i&&e.set("newVal",i=!0),e.props.onSet(i)},u=function(e){return e?{}:{tabIndex:5e3,disabled:!0}};e.render(function(){return e.el(["input",1],t({defaultValue:String(e.props.val),__flintValue:i,__flintOnChange:function(n){e.set("newVal",i=n.target.value)},className:{focus:o},size:Math.max(4,e.props.val&&e.props.val.length||0),spellCheck:!1,onMouseUp:l,onFocus:l,onEnter:s,onBlur:s,onChange:a},u(e.props.editable)))}),r.input=function(e,n){return{left:-1}}})})}(),!function(){e.file("inspector/leaf.js",function(n){function t(e){return e&&e.__esModule?e:{"default":e}}var r=require("md5-o-matic"),o=t(r),i=require("./lib/getType"),l=t(i),s=require("ellipsize"),a=t(s),u=".root.",f=function(e,n){return-1!==e.indexOf(n)},c=function(e){return"Object"!==(0,l["default"])(e)&&"Array"!==(0,l["default"])(e)};e.staticStyles("Leaf",{$leaf:"#_flintdevtools .ViewLeaf",$helper:"#_flintdevtools helper.Leaf, #_flintdevtools .Leaf.helper, #_flintdevtools .ViewLeaf.helper, #_flintdevtools .Leaf > .helper",$boolean:"#_flintdevtools boolean.Leaf, #_flintdevtools .Leaf.boolean, #_flintdevtools .ViewLeaf.boolean, #_flintdevtools .Leaf > .boolean",$number:"#_flintdevtools number.Leaf, #_flintdevtools .Leaf.number, #_flintdevtools .ViewLeaf.number, #_flintdevtools .Leaf > .number",$string:"#_flintdevtools string.Leaf, #_flintdevtools .Leaf.string, #_flintdevtools .ViewLeaf.string, #_flintdevtools .Leaf > .string",$function:"#_flintdevtools function.Leaf, #_flintdevtools .Leaf.function, #_flintdevtools .ViewLeaf.function, #_flintdevtools .Leaf > .function",$colon:"#_flintdevtools colon.Leaf, #_flintdevtools .Leaf.colon, #_flintdevtools .ViewLeaf.colon, #_flintdevtools .Leaf > .colon",$name:"#_flintdevtools name.Leaf, #_flintdevtools .Leaf.name, #_flintdevtools .ViewLeaf.name, #_flintdevtools .Leaf > .name",$children:"#_flintdevtools children.Leaf, #_flintdevtools .Leaf.children, #_flintdevtools .ViewLeaf.children, #_flintdevtools .Leaf > .children",$type:"#_flintdevtools type.Leaf, #_flintdevtools .Leaf.type, #_flintdevtools .ViewLeaf.type, #_flintdevtools .Leaf > .type"},{$leaf:{padding:[1,0],fontSize:13},$helper:{color:"#ffff05"},$boolean:{color:"#32a3cd",fontWeight:700},$number:{color:"#b92222",marginTop:2,fontWeight:500},$string:{color:"#698c17"},$function:{marginLeft:10,marginTop:2,color:"#962eba"},$colon:{opacity:.3,color:"#000"},$name:{color:"#ff2f2f",fontWeight:400,margin:["auto",0]},$children:{paddingLeft:10},$type:{margin:[1,0,0,8],opacity:.7,flexFlow:"row"}}),e.view("Leaf",function(n,t,r){function i(e){n.props.root||n.set("expanded",m=!m),n.update(),n.props.onClick&&n.props.onClick(d),e.stopPropagation()}n.pause();var s=void 0,p=void 0,d=void 0,v=void 0,g=void 0,h=void 0,m=void 0,y=[],_="",w=function(){return n.props.root||!_&&n.props.isExpanded(p,d)||!f(p,_)&&"function"==typeof n.props.getOriginal};t.props(function(){n.set("rootPath",s=n.props.prefix+"."+n.props.label),n.set("key",g=n.props.label.toString()),n.set("path",p=s.substr(u.length)),n.set("data",d=n.props.data),d&&n.set("dataKeys",y=Object.keys(d).sort()),void 0===d&&n.set("data",d=n.props.data),void 0===d&&n.set("data",d={}),n.set("type",v=(0,l["default"])(d)),n.set("query",_=n.props.query||""),n.props.root?n.set("expanded",m=!0):_&&n.set("expanded",m=!f(n.props.label,_)),n.props.query&&!_&&n.set("expanded",m=w()),n.update()});var b=function(e,n){return c(n)?e+":"+(0,o["default"])(String(e)):e+"["+(0,l["default"])(n)+"]"},x=function(e){return n.el(["Highlighter",1],{string:e,highlight:_})},E=function(e){return e.toString().replace(/((\/\/.*$)|(\/\*[\s\S]*?\*\/)|(\s))/gm,"").match(/^function\s*[^\(]*\(\s*([^\)]*)\)/m)[1].split(/,/)},k=function(e,t,r,o){return n.el(["Label",1],{val:t,editable:o,onSet:function(e){return n.props.onSet([r,e])}})};n.render(function(){return n.el(["leaf",1],{className:s},e.iff(!n.props.root)&&n.el(["label",1],{"if":!n.props.root,htmlFor:n.props.id,onClick:i},n.el(["key",1],null,n.el(["name",1],null,x(g)),k("key",g,g,!1)),n.el(["colon",1],null,":"),e.iff("Function"==v)&&n.el(["expand",1],{className:"function","if":"Function"==v},n.el(["i",1],null,"fn (",E(d).join(", "),")")),e.iff("Array"==v)&&n.el(["expand",2],{"if":"Array"==v},n.el(["type",1],null,"Array[",d.length,"]")),e.iff("Object"==v)&&n.el(["expand",3],{"if":"Object"==v},n.el(["type",2],null,"{} "+y.length+" keys")),e.iff(-1==["Array","Object","Function"].indexOf(v))&&n.el(["value",1],{"if":-1==["Array","Object","Function"].indexOf(v),className:v.toLowerCase()},e.iff("string"==v.toLowerCase())&&n.el(["str",1],{"if":"string"==v.toLowerCase()},x((0,a["default"])(String(d),25))),e.iff("string"!=v.toLowerCase())&&n.el(["else",1],{"if":"string"!=v.toLowerCase()},x(String(d))),k("val",d,g,n.props.editable))),n.el(["children",1],null,e.iff(m&&!c(d))&&e.range(y).map(function(t,r){return n.el(["child",1,t,r],{"if":m&&!c(d),repeat:y},e.iff(-1==t.indexOf("__"))&&n.el(["Leaf",1,t,r],{"if":-1==t.indexOf("__"),key:b(t,d[t]),onSet:function(){for(var e,t=arguments.length,r=Array(t),o=0;t>o;o++)r[o]=arguments[o];return(e=n.props).onSet.apply(e,[g].concat(r))},data:d[t],editable:n.props.editable,label:t,prefix:s,onClick:n.props.onClick,id:n.props.id,query:_,getOriginal:h?null:n.props.getOriginal,isExpanded:n.props.isExpanded}))})))});var V={flexFlow:"row"};r._static.label={},r.label=function(e,n){return[V,{position:"relative",color:"rgba(0,0,0,0.8)",opacity:1,alignItems:"center"}]},r._static.key={},r.key=function(e,n){return[V,{color:"rgba(0,0,0,0.9)",margin:[0],fontWeight:"bold"}]},r._static.expand={},r.expand=function(e,n){return[V,{}]},r._static.value={},r.value=function(e,n){return[V,{position:"relative",margin:[0,4]}]}})})}(),!function(){e.file("inspector/section.js",function(n){e.staticStyles("Inspector.Section",{$:"#_flintdevtools .ViewInspector-Section",$body:"#_flintdevtools body.Inspector-Section, #_flintdevtools .Inspector-Section.body, #_flintdevtools .ViewInspector-Section.body, #_flintdevtools .Inspector-Section > .body"},{$:{padding:[5,0]},$body:{padding:[0,12]}}),e.view("Inspector.Section",function(n,t,r){var o=!0;n.render(function(){return n.el(["Inspector.Title",1],{onToggle:function(e){return n.set("open",o=e)}},n.props.title)}),n.render(function(){return e.iff(o)&&n.el(["body",1],{"if":o},n.props.children)})})})}(),!function(){e.file("inspector/title.js",function(n){e.staticStyles("Inspector.Title",{$title:"#_flintdevtools title.Inspector-Title, #_flintdevtools .Inspector-Title.title, #_flintdevtools .ViewInspector-Title.title, #_flintdevtools .Inspector-Title > .title",$closed:"#_flintdevtools closed.Inspector-Title, #_flintdevtools .Inspector-Title.closed, #_flintdevtools .ViewInspector-Title.closed, #_flintdevtools .Inspector-Title > .closed",$inner:"#_flintdevtools inner.Inspector-Title, #_flintdevtools .Inspector-Title.inner, #_flintdevtools .ViewInspector-Title.inner, #_flintdevtools .Inspector-Title > .inner"},{$title:{fontWeight:300,borderBottom:"1px solid #eee",height:10,margin:[5,0,8],color:"#999",flexFlow:"row"},$closed:{marginTop:1},$inner:{padding:[4,10],background:"#fff"}}),e.view("Inspector.Title",function(e,n,t){function r(){e.props.onToggle&&(e.set("open",o=!o),e.props.onToggle(o))}var o=!0;e.render(function(){return e.el(["title",1],{onClick:r},e.el(["inner",1],null,e.props.children))}),t.closed=function(e,n){return{transform:{scale:.8}}},t.inner=function(e,n){return{margin:[-2,"auto"]}}})})}(),!function(){e.file("inspector/tree.js",function(n){function t(e){return e&&e.__esModule?e:{"default":e}}var r=require("./lib/lens"),o=t(r);e.staticStyles("Tree",{$:"#_flintdevtools .ViewTree"},{$:{pointerEvents:"auto"}}),e.view("Tree",function(e,n,t){var r="",i=function(n){return(0,o["default"])(e.props.data,n)};e.render(function(){return e.el(["Leaf",1],{data:e.props.data,onClick:e.props.onClick,id:e.props.id,getOriginal:i,query:r,label:"root",editable:e.props.editable,root:!0,validateQuery:function(e){return e.length>=2},isExpanded:e.props.isExpanded||function(){return!1},interactiveLabel:e.props.interactiveLabel,onSet:function(){for(var n=arguments.length,t=Array(n),r=0;n>r;r++)t[r]=arguments[r];return e.props.onSet(t)}})}),t.$=function(e,n){return{marginLeft:-10}}})})}(),!function(){e.file("inspector/view.js",function(n){function t(e){return e&&e.__esModule?e:{"default":e}}function r(e){var n=e.split(",");return n[n.length-1].split(".")[0].split("-")[0]}function o(e){var n=["if","repeat","style","yield","__flint"];return s["default"].omit.apply(null,[e].concat(n))}var i=require("clone"),l=(t(i),require("underscore")),s=t(l);e.staticStyles("Inspector.View",{$view:"#_flintdevtools view.Inspector-View, #_flintdevtools .Inspector-View.view, #_flintdevtools .ViewInspector-View.view, #_flintdevtools .Inspector-View > .view",$top:"#_flintdevtools top.Inspector-View, #_flintdevtools .Inspector-View.top, #_flintdevtools .ViewInspector-View.top, #_flintdevtools .Inspector-View > .top",$active:"#_flintdevtools active.Inspector-View, #_flintdevtools .Inspector-View.active, #_flintdevtools .ViewInspector-View.active, #_flintdevtools .Inspector-View > .active",$highlight:"#_flintdevtools highlight.Inspector-View, #_flintdevtools .Inspector-View.highlight, #_flintdevtools .ViewInspector-View.highlight, #_flintdevtools .Inspector-View > .highlight",$Close:"#_flintdevtools .ViewInspector-View .ViewClose",$name:"#_flintdevtools name.Inspector-View, #_flintdevtools .Inspector-View.name, #_flintdevtools .ViewInspector-View.name, #_flintdevtools .Inspector-View > .name",$edit:"#_flintdevtools edit.Inspector-View, #_flintdevtools .Inspector-View.edit, #_flintdevtools .ViewInspector-View.edit, #_flintdevtools .Inspector-View > .edit",$expanded:"#_flintdevtools expanded.Inspector-View, #_flintdevtools .Inspector-View.expanded, #_flintdevtools .ViewInspector-View.expanded, #_flintdevtools .Inspector-View > .expanded",$input:"#_flintdevtools input.Inspector-View, #_flintdevtools .Inspector-View.input, #_flintdevtools .ViewInspector-View.input, #_flintdevtools .Inspector-View > .input",$title:"#_flintdevtools title.Inspector-View, #_flintdevtools .Inspector-View.title, #_flintdevtools .ViewInspector-View.title, #_flintdevtools .Inspector-View > .title",$props:"#_flintdevtools props.Inspector-View, #_flintdevtools .Inspector-View.props, #_flintdevtools .ViewInspector-View.props, #_flintdevtools .Inspector-View > .props"},{$view:{position:"relative",pointerEvents:"auto",margin:10,padding:[0,0,1],minWidth:220,fontSize:12,userSelect:"none",cursor:"default",background:"#fff",boxShadow:"0px 2px 16px rgba(0,0,0,0.2)",border:"1px solid #ccc",borderRadius:5,color:"#333",transition:"all ease-in 60ms",opacity:0},$top:{flexFlow:"row"},$active:{opacity:1},$highlight:{border:"2px solid #afb4e2"},$Close:{fontSize:16},$name:{fontWeight:400,color:"rgba(0,0,0,0.8)",padding:[8,8,0],fontSize:14},$edit:{padding:[8,8,0],fontSize:14,marginLeft:4,fontWeight:400,color:"rgba(24, 101, 227, 0.8)"},$expanded:{},$input:{borderRadius:100,border:"1px solid #ccc",width:"100%",padding:[2,12],color:"#333",fontSize:14},$title:{display:"none",color:"#333",fontWeight:200,fontSize:12,margin:[3,0]},$props:{marginBottom:2}}),e.view("Inspector.View",function(n,t,i){function l(e){n.props.writeBack(u,e)}var s=window.Flint.inspect,a=void 0,u=void 0,f=void 0,c=void 0,p=!1,d={},v=null,g=null;t.delay(60,function(){n.set("active",p=!0)}),t.unmount(function(){delete window._Flint.inspector[n.props.path]}),t.props(function(){n.set("highlight",c=n.props.highlight),n.set("closing",f=n.props.closing),n.set("path",u=n.props.path),f===!0&&n.set("active",p=!1),u&&(n.set("name",a=r(u)),_Flint.inspector[n.props.path]||s(u,function(e,t,r){n.set("props",v=o(e||{})),n.set("state",d=t||{}),n.set("writeBack",g=r),n.update()}))});var h=function(e){return e&&Object.keys(e).length>0},m=function(){return _DT.messageEditor({type:"editView",view:a})};n.render(function(){return n.el(["view",1],{className:{active:p,highlight:c}},n.el(["Close",1],{onClick:n.props.onClose,fontSize:20,size:35}),n.el(["top",1],null,n.el(["name",1],null,a),e.iff(!1)&&n.el(["edit",1],{"if":!1,onClick:m},"edit")),e.iff(!h(v))&&n.el(["Inspector.Title",1],{"if":!h(v)},"No Props"),e.iff(h(v))&&n.el(["Inspector.Section",1],{title:"Props","if":h(v),className:"props"},n.el(["Tree",1],{editable:!1,data:v})),e.iff(!h(d))&&n.el(["Inspector.Title",2],{"if":!h(d)},"No State"),e.iff(h(d))&&n.el(["Inspector.Section",2],{title:"State","if":h(d)},n.el(["Tree",2],{editable:!0,onSet:l,data:d})))}),i.view=function(e,n){return{transform:{x:20}}},i.active=function(e,n){return{transform:{x:0}}},i.Close=function(e,n){return{top:-5,right:-5}},i.name=function(e,n){return{margin:[0,0,-6]}},i.edit=function(e,n){return{margin:[0,0,-6]}},i.expanded=function(e,n){return{transform:{y:0}}}})})}(),!function(){e.file("npm/installer.js",function(n){var t=window._DT;e.view("Installer",function(n,r,o){var i="",l=[],s="",a="",u=0;t.on("package:install",function(){n.set("state",u=1),n.set("name",s=t.data.name)}),t.on("package:installed",function(){n.set("state",u=2),setTimeout(function(){return n.set("state",u=0)},2e3)}),t.on("package:error",function(){n.set("state",u=3),n.set("name",s=t.data.name),n.set("error",a=t.data.error),setTimeout(function(){return n.set("state",u=0)},2e3)}),t.on("package:select",function(){n.set("state",u=4),n.set("versions",l=t.data.versions)});var f=function(e){n.set("version",i=e),t.data.version=e,t.emitter.emit("package:select"),n.set("state",u=1)},c=function(){return n.set("state",u=0)},p=function(e){switch(e){case 1:return"Installing "+s+(i?" "+i:"")+"...";case 2:return"Installed "+s+"!";case 3:return"Error: "+s;case 4:return"Select version"}},d=function(e){switch(e){case 1:return null;case 2:return null;case 3:return a;case 4:return n.el(["Versions",1],{versions:l,onSelect:f})}};n.render(function(){return n.el(["Modal",1],{open:u>0,onClose:c,title:p(u)},e.iff(!1)&&n.el(["InstallerLoading",1],{"if":!1}),d(u))})}),e.staticStyles("Versions",{$version:"#_flintdevtools version.Versions, #_flintdevtools .Versions.version, #_flintdevtools .ViewVersions.version, #_flintdevtools .Versions > .version",$inner:"#_flintdevtools inner.Versions, #_flintdevtools .Versions.inner, #_flintdevtools .ViewVersions.inner, #_flintdevtools .Versions > .inner",$v:"#_flintdevtools v.Versions, #_flintdevtools .Versions.v, #_flintdevtools .ViewVersions.v, #_flintdevtools .Versions > .v",$info:"#_flintdevtools info.Versions, #_flintdevtools .Versions.info, #_flintdevtools .ViewVersions.info, #_flintdevtools .Versions > .info"},{$version:{textAlign:"left",padding:[2,4],borderRadius:2},$inner:{flexFlow:"row"},$v:{flexGrow:1,fontWeight:"bold"},$info:{}}),e.view("Versions",function(n,t,r){n.render(function(){return e.range(n.props.versions).map(function(e,t){return n.el(["version",1,e,t],{repeat:n.props.versions,onClick:function(){return n.props.onSelect(e)}},n.el(["inner",1,e,t],null,n.el(["v",1,e,t],{key:"v"+t},e.version),n.el(["info",1,e,t],null,e.description),n.el(["a",1,e,t],{href:e.homepage,target:"_blank"},"Info")))})}),r.v=function(e,n){return{":hover":{background:"#fff",cursor:"pointer"}}}})})}(),e.init()}(o)},"undefined"!=typeof module&&module.exports&&(module.exports=flintRun_tools); | ||
window.flintRun_tools=function(e,n,t){var r=n.Flint||runFlint,o=r(e,n,t);!function(e){!function(e){function n(r){if(t[r])return t[r].exports;var o=t[r]={exports:{},id:r,loaded:!1};return e[r].call(o.exports,o,o.exports,n),o.loaded=!0,o.exports}var t={};return n.m=e,n.c=t,n.p="",n(0)}([function(n,t,r){try{e.packages.keycode=r(1)}catch(o){console.log("Error bundling package keycode!"),console.error(o),e.reportError(o)}try{e.packages["mouse-event-offset"]=r(2)}catch(o){console.log("Error bundling package mouse-event-offset!"),console.error(o),e.reportError(o)}try{e.packages["md5-o-matic"]=r(3)}catch(o){console.log("Error bundling package md5-o-matic!"),console.error(o),e.reportError(o)}try{e.packages.ellipsize=r(4)}catch(o){console.log("Error bundling package ellipsize!"),console.error(o),e.reportError(o)}try{e.packages.clone=r(5)}catch(o){console.log("Error bundling package clone!"),console.error(o),e.reportError(o)}try{e.packages.underscore=r(6)}catch(o){console.log("Error bundling package underscore!"),console.error(o),e.reportError(o)}},function(e,n){n=e.exports=function(e){if(e&&"object"==typeof e){var n=e.which||e.keyCode||e.charCode;n&&(e=n)}if("number"==typeof e)return i[e];var o=String(e),l=t[o.toLowerCase()];if(l)return l;var l=r[o.toLowerCase()];return l?l:1===o.length?o.charCodeAt(0):void 0};var t=n.code=n.codes={backspace:8,tab:9,enter:13,shift:16,ctrl:17,alt:18,"pause/break":19,"caps lock":20,esc:27,space:32,"page up":33,"page down":34,end:35,home:36,left:37,up:38,right:39,down:40,insert:45,"delete":46,command:91,"right click":93,"numpad *":106,"numpad +":107,"numpad -":109,"numpad .":110,"numpad /":111,"num lock":144,"scroll lock":145,"my computer":182,"my calculator":183,";":186,"=":187,",":188,"-":189,".":190,"/":191,"`":192,"[":219,"\\":220,"]":221,"'":222},r=n.aliases={windows:91,"⇧":16,"⌥":18,"⌃":17,"⌘":91,ctl:17,control:17,option:18,pause:19,"break":19,caps:20,"return":13,escape:27,spc:32,pgup:33,pgdn:33,ins:45,del:46,cmd:91};for(o=97;123>o;o++)t[String.fromCharCode(o)]=o-32;for(var o=48;58>o;o++)t[o-48]=o;for(o=1;13>o;o++)t["f"+o]=o+111;for(o=0;10>o;o++)t["numpad "+o]=o+96;var i=n.names=n.title={};for(o in t)i[t[o]]=o;for(var l in r)t[l]=r[l]},function(e,n){function t(e,n,t){n=n||e.currentTarget||e.srcElement,Array.isArray(t)||(t=[0,0]);var o=e.clientX||0,i=e.clientY||0,l=r(n);return t[0]=o-l.left,t[1]=i-l.top,t}function r(e){return e===window||e===document||e===document.body?o:e.getBoundingClientRect()}var o={left:0,top:0};e.exports=t},function(e,n){"use strict";function t(e){for(var n=a(e),t=1732584193,r=-271733879,o=-1732584194,i=271733878,u=0;u<n.length;u+=16){var c=t,g=r,h=o,m=i;t=f(t,r,o,i,n[u+0],7,-680876936),i=f(i,t,r,o,n[u+1],12,-389564586),o=f(o,i,t,r,n[u+2],17,606105819),r=f(r,o,i,t,n[u+3],22,-1044525330),t=f(t,r,o,i,n[u+4],7,-176418897),i=f(i,t,r,o,n[u+5],12,1200080426),o=f(o,i,t,r,n[u+6],17,-1473231341),r=f(r,o,i,t,n[u+7],22,-45705983),t=f(t,r,o,i,n[u+8],7,1770035416),i=f(i,t,r,o,n[u+9],12,-1958414417),o=f(o,i,t,r,n[u+10],17,-42063),r=f(r,o,i,t,n[u+11],22,-1990404162),t=f(t,r,o,i,n[u+12],7,1804603682),i=f(i,t,r,o,n[u+13],12,-40341101),o=f(o,i,t,r,n[u+14],17,-1502002290),r=f(r,o,i,t,n[u+15],22,1236535329),t=p(t,r,o,i,n[u+1],5,-165796510),i=p(i,t,r,o,n[u+6],9,-1069501632),o=p(o,i,t,r,n[u+11],14,643717713),r=p(r,o,i,t,n[u+0],20,-373897302),t=p(t,r,o,i,n[u+5],5,-701558691),i=p(i,t,r,o,n[u+10],9,38016083),o=p(o,i,t,r,n[u+15],14,-660478335),r=p(r,o,i,t,n[u+4],20,-405537848),t=p(t,r,o,i,n[u+9],5,568446438),i=p(i,t,r,o,n[u+14],9,-1019803690),o=p(o,i,t,r,n[u+3],14,-187363961),r=p(r,o,i,t,n[u+8],20,1163531501),t=p(t,r,o,i,n[u+13],5,-1444681467),i=p(i,t,r,o,n[u+2],9,-51403784),o=p(o,i,t,r,n[u+7],14,1735328473),r=p(r,o,i,t,n[u+12],20,-1926607734),t=d(t,r,o,i,n[u+5],4,-378558),i=d(i,t,r,o,n[u+8],11,-2022574463),o=d(o,i,t,r,n[u+11],16,1839030562),r=d(r,o,i,t,n[u+14],23,-35309556),t=d(t,r,o,i,n[u+1],4,-1530992060),i=d(i,t,r,o,n[u+4],11,1272893353),o=d(o,i,t,r,n[u+7],16,-155497632),r=d(r,o,i,t,n[u+10],23,-1094730640),t=d(t,r,o,i,n[u+13],4,681279174),i=d(i,t,r,o,n[u+0],11,-358537222),o=d(o,i,t,r,n[u+3],16,-722521979),r=d(r,o,i,t,n[u+6],23,76029189),t=d(t,r,o,i,n[u+9],4,-640364487),i=d(i,t,r,o,n[u+12],11,-421815835),o=d(o,i,t,r,n[u+15],16,530742520),r=d(r,o,i,t,n[u+2],23,-995338651),t=v(t,r,o,i,n[u+0],6,-198630844),i=v(i,t,r,o,n[u+7],10,1126891415),o=v(o,i,t,r,n[u+14],15,-1416354905),r=v(r,o,i,t,n[u+5],21,-57434055),t=v(t,r,o,i,n[u+12],6,1700485571),i=v(i,t,r,o,n[u+3],10,-1894986606),o=v(o,i,t,r,n[u+10],15,-1051523),r=v(r,o,i,t,n[u+1],21,-2054922799),t=v(t,r,o,i,n[u+8],6,1873313359),i=v(i,t,r,o,n[u+15],10,-30611744),o=v(o,i,t,r,n[u+6],15,-1560198380),r=v(r,o,i,t,n[u+13],21,1309151649),t=v(t,r,o,i,n[u+4],6,-145523070),i=v(i,t,r,o,n[u+11],10,-1120210379),o=v(o,i,t,r,n[u+2],15,718787259),r=v(r,o,i,t,n[u+9],21,-343485551),t=l(t,c),r=l(r,g),o=l(o,h),i=l(i,m)}return s(t)+s(r)+s(o)+s(i)}function r(e,n){var t=1&e|1&n,r=e>>>1|n>>>1;return r<<1|t}function o(e,n){var t=1&e^1&n,r=e>>>1^n>>>1;return r<<1|t}function i(e,n){var t=1&e&(1&n),r=e>>>1&n>>>1;return r<<1|t}function l(e,n){var t=(65535&e)+(65535&n),r=(e>>16)+(n>>16)+(t>>16);return r<<16|65535&t}function s(e){var n,t="";for(n=0;3>=n;n++)t+=g.charAt(e>>8*n+4&15)+g.charAt(e>>8*n&15);return t}function a(e){var n,t=(e.length+8>>6)+1,r=new Array(16*t);for(n=0;16*t>n;n++)r[n]=0;for(n=0;n<e.length;n++)r[n>>2]|=e.charCodeAt(n)<<(8*e.length+n)%4*8;r[n>>2]|=128<<(8*e.length+n)%4*8;var o=8*e.length;return r[16*t-2]=255&o,r[16*t-2]|=(o>>>8&255)<<8,r[16*t-2]|=(o>>>16&255)<<16,r[16*t-2]|=(o>>>24&255)<<24,r}function u(e,n){return e<<n|e>>>32-n}function c(e,n,t,r,o,i){return l(u(l(l(n,e),l(r,i)),o),t)}function f(e,n,t,o,l,s,a){return c(r(i(n,t),i(~n,o)),e,n,l,s,a)}function p(e,n,t,o,l,s,a){return c(r(i(n,o),i(t,~o)),e,n,l,s,a)}function d(e,n,t,r,i,l,s){return c(o(o(n,t),r),e,n,i,l,s)}function v(e,n,t,i,l,s,a){return c(o(t,r(n,~i)),e,n,l,s,a)}e.exports=t;var g="0123456789abcdef"},function(e,n){"use strict";function t(e,n,t,r,o){var i=0,l="";if(e.length<n)return e;for(var s=0,a=e.length;a>s;s++)if(l=e.charAt(s),-1!==r.indexOf(l)&&(i=s),!(n>s))return 0===i?o?e.substring(0,n-1)+t:"":e.substring(0,i)+t;return e}var r={ellipse:"…",chars:[" ","-"],max:140,truncate:!0};e.exports=function(e,n,o){if("string"!=typeof e||0===e.length)return"";if(0===n)return"";o=o||{};for(var i in r)(null===o[i]||"undefined"==typeof o[i])&&(o[i]=r[i]);return o.max=n||o.max,t(e,o.max,o.ellipse,o.chars,o.truncate)}},function(e,n){var t=function(){"use strict";function e(n,t,r,o){function l(n,r){if(null===n)return null;if(0==r)return n;var s,f;if("object"!=typeof n)return n;if(e.__isArray(n))s=[];else if(e.__isRegExp(n))s=new RegExp(n.source,i(n)),n.lastIndex&&(s.lastIndex=n.lastIndex);else if(e.__isDate(n))s=new Date(n.getTime());else{if(c&&Buffer.isBuffer(n))return s=new Buffer(n.length),n.copy(s),s;"undefined"==typeof o?(f=Object.getPrototypeOf(n),s=Object.create(f)):(s=Object.create(o),f=o)}if(t){var p=a.indexOf(n);if(-1!=p)return u[p];a.push(n),u.push(s)}for(var d in n){var v;f&&(v=Object.getOwnPropertyDescriptor(f,d)),v&&null==v.set||(s[d]=l(n[d],r-1))}return s}var s;"object"==typeof t&&(r=t.depth,o=t.prototype,s=t.filter,t=t.circular);var a=[],u=[],c="undefined"!=typeof Buffer;return"undefined"==typeof t&&(t=!0),"undefined"==typeof r&&(r=1/0),l(n,r)}function n(e){return Object.prototype.toString.call(e)}function t(e){return"object"==typeof e&&"[object Date]"===n(e)}function r(e){return"object"==typeof e&&"[object Array]"===n(e)}function o(e){return"object"==typeof e&&"[object RegExp]"===n(e)}function i(e){var n="";return e.global&&(n+="g"),e.ignoreCase&&(n+="i"),e.multiline&&(n+="m"),n}return e.clonePrototype=function(e){if(null===e)return null;var n=function(){};return n.prototype=e,new n},e.__objToStr=n,e.__isDate=t,e.__isArray=r,e.__isRegExp=o,e.__getRegExpFlags=i,e}();"object"==typeof e&&e.exports&&(e.exports=t)},function(e,n,t){var r,o;(function(){function t(e){function n(n,t,r,o,i,l){for(;i>=0&&l>i;i+=e){var s=o?o[i]:i;r=t(r,n[s],s,n)}return r}return function(t,r,o,i){r=E(r,i,4);var l=!j(t)&&x.keys(t),s=(l||t).length,a=e>0?0:s-1;return arguments.length<3&&(o=t[l?l[a]:a],a+=e),n(t,r,o,l,a,s)}}function i(e){return function(n,t,r){t=k(t,r);for(var o=M(n),i=e>0?0:o-1;i>=0&&o>i;i+=e)if(t(n[i],i,n))return i;return-1}}function l(e,n,t){return function(r,o,i){var l=0,s=M(r);if("number"==typeof i)e>0?l=i>=0?i:Math.max(i+s,l):s=i>=0?Math.min(i+1,s):i+s+1;else if(t&&i&&s)return i=t(r,o),r[i]===o?i:-1;if(o!==o)return i=n(v.call(r,l,s),x.isNaN),i>=0?i+l:-1;for(i=e>0?l:s-1;i>=0&&s>i;i+=e)if(r[i]===o)return i;return-1}}function s(e,n){var t=T.length,r=e.constructor,o=x.isFunction(r)&&r.prototype||f,i="constructor";for(x.has(e,i)&&!x.contains(n,i)&&n.push(i);t--;)i=T[t],i in e&&e[i]!==o[i]&&!x.contains(n,i)&&n.push(i)}var a=this,u=a._,c=Array.prototype,f=Object.prototype,p=Function.prototype,d=c.push,v=c.slice,g=f.toString,h=f.hasOwnProperty,m=Array.isArray,y=Object.keys,_=p.bind,w=Object.create,b=function(){},x=function(e){return e instanceof x?e:this instanceof x?void(this._wrapped=e):new x(e)};"undefined"!=typeof e&&e.exports&&(n=e.exports=x),n._=x,x.VERSION="1.8.3";var E=function(e,n,t){if(void 0===n)return e;switch(null==t?3:t){case 1:return function(t){return e.call(n,t)};case 2:return function(t,r){return e.call(n,t,r)};case 3:return function(t,r,o){return e.call(n,t,r,o)};case 4:return function(t,r,o,i){return e.call(n,t,r,o,i)}}return function(){return e.apply(n,arguments)}},k=function(e,n,t){return null==e?x.identity:x.isFunction(e)?E(e,n,t):x.isObject(e)?x.matcher(e):x.property(e)};x.iteratee=function(e,n){return k(e,n,1/0)};var V=function(e,n){return function(t){var r=arguments.length;if(2>r||null==t)return t;for(var o=1;r>o;o++)for(var i=arguments[o],l=e(i),s=l.length,a=0;s>a;a++){var u=l[a];n&&void 0!==t[u]||(t[u]=i[u])}return t}},$=function(e){if(!x.isObject(e))return{};if(w)return w(e);b.prototype=e;var n=new b;return b.prototype=null,n},I=function(e){return function(n){return null==n?void 0:n[e]}},S=Math.pow(2,53)-1,M=I("length"),j=function(e){var n=M(e);return"number"==typeof n&&n>=0&&S>=n};x.each=x.forEach=function(e,n,t){n=E(n,t);var r,o;if(j(e))for(r=0,o=e.length;o>r;r++)n(e[r],r,e);else{var i=x.keys(e);for(r=0,o=i.length;o>r;r++)n(e[i[r]],i[r],e)}return e},x.map=x.collect=function(e,n,t){n=k(n,t);for(var r=!j(e)&&x.keys(e),o=(r||e).length,i=Array(o),l=0;o>l;l++){var s=r?r[l]:l;i[l]=n(e[s],s,e)}return i},x.reduce=x.foldl=x.inject=t(1),x.reduceRight=x.foldr=t(-1),x.find=x.detect=function(e,n,t){var r;return r=j(e)?x.findIndex(e,n,t):x.findKey(e,n,t),void 0!==r&&-1!==r?e[r]:void 0},x.filter=x.select=function(e,n,t){var r=[];return n=k(n,t),x.each(e,function(e,t,o){n(e,t,o)&&r.push(e)}),r},x.reject=function(e,n,t){return x.filter(e,x.negate(k(n)),t)},x.every=x.all=function(e,n,t){n=k(n,t);for(var r=!j(e)&&x.keys(e),o=(r||e).length,i=0;o>i;i++){var l=r?r[i]:i;if(!n(e[l],l,e))return!1}return!0},x.some=x.any=function(e,n,t){n=k(n,t);for(var r=!j(e)&&x.keys(e),o=(r||e).length,i=0;o>i;i++){var l=r?r[i]:i;if(n(e[l],l,e))return!0}return!1},x.contains=x.includes=x.include=function(e,n,t,r){return j(e)||(e=x.values(e)),("number"!=typeof t||r)&&(t=0),x.indexOf(e,n,t)>=0},x.invoke=function(e,n){var t=v.call(arguments,2),r=x.isFunction(n);return x.map(e,function(e){var o=r?n:e[n];return null==o?o:o.apply(e,t)})},x.pluck=function(e,n){return x.map(e,x.property(n))},x.where=function(e,n){return x.filter(e,x.matcher(n))},x.findWhere=function(e,n){return x.find(e,x.matcher(n))},x.max=function(e,n,t){var r,o,i=-(1/0),l=-(1/0);if(null==n&&null!=e){e=j(e)?e:x.values(e);for(var s=0,a=e.length;a>s;s++)r=e[s],r>i&&(i=r)}else n=k(n,t),x.each(e,function(e,t,r){o=n(e,t,r),(o>l||o===-(1/0)&&i===-(1/0))&&(i=e,l=o)});return i},x.min=function(e,n,t){var r,o,i=1/0,l=1/0;if(null==n&&null!=e){e=j(e)?e:x.values(e);for(var s=0,a=e.length;a>s;s++)r=e[s],i>r&&(i=r)}else n=k(n,t),x.each(e,function(e,t,r){o=n(e,t,r),(l>o||o===1/0&&i===1/0)&&(i=e,l=o)});return i},x.shuffle=function(e){for(var n,t=j(e)?e:x.values(e),r=t.length,o=Array(r),i=0;r>i;i++)n=x.random(0,i),n!==i&&(o[i]=o[n]),o[n]=t[i];return o},x.sample=function(e,n,t){return null==n||t?(j(e)||(e=x.values(e)),e[x.random(e.length-1)]):x.shuffle(e).slice(0,Math.max(0,n))},x.sortBy=function(e,n,t){return n=k(n,t),x.pluck(x.map(e,function(e,t,r){return{value:e,index:t,criteria:n(e,t,r)}}).sort(function(e,n){var t=e.criteria,r=n.criteria;if(t!==r){if(t>r||void 0===t)return 1;if(r>t||void 0===r)return-1}return e.index-n.index}),"value")};var C=function(e){return function(n,t,r){var o={};return t=k(t,r),x.each(n,function(r,i){var l=t(r,i,n);e(o,r,l)}),o}};x.groupBy=C(function(e,n,t){x.has(e,t)?e[t].push(n):e[t]=[n]}),x.indexBy=C(function(e,n,t){e[t]=n}),x.countBy=C(function(e,n,t){x.has(e,t)?e[t]++:e[t]=1}),x.toArray=function(e){return e?x.isArray(e)?v.call(e):j(e)?x.map(e,x.identity):x.values(e):[]},x.size=function(e){return null==e?0:j(e)?e.length:x.keys(e).length},x.partition=function(e,n,t){n=k(n,t);var r=[],o=[];return x.each(e,function(e,t,i){(n(e,t,i)?r:o).push(e)}),[r,o]},x.first=x.head=x.take=function(e,n,t){return null==e?void 0:null==n||t?e[0]:x.initial(e,e.length-n)},x.initial=function(e,n,t){return v.call(e,0,Math.max(0,e.length-(null==n||t?1:n)))},x.last=function(e,n,t){return null==e?void 0:null==n||t?e[e.length-1]:x.rest(e,Math.max(0,e.length-n))},x.rest=x.tail=x.drop=function(e,n,t){return v.call(e,null==n||t?1:n)},x.compact=function(e){return x.filter(e,x.identity)};var O=function(e,n,t,r){for(var o=[],i=0,l=r||0,s=M(e);s>l;l++){var a=e[l];if(j(a)&&(x.isArray(a)||x.isArguments(a))){n||(a=O(a,n,t));var u=0,c=a.length;for(o.length+=c;c>u;)o[i++]=a[u++]}else t||(o[i++]=a)}return o};x.flatten=function(e,n){return O(e,n,!1)},x.without=function(e){return x.difference(e,v.call(arguments,1))},x.uniq=x.unique=function(e,n,t,r){x.isBoolean(n)||(r=t,t=n,n=!1),null!=t&&(t=k(t,r));for(var o=[],i=[],l=0,s=M(e);s>l;l++){var a=e[l],u=t?t(a,l,e):a;n?(l&&i===u||o.push(a),i=u):t?x.contains(i,u)||(i.push(u),o.push(a)):x.contains(o,a)||o.push(a)}return o},x.union=function(){return x.uniq(O(arguments,!0,!0))},x.intersection=function(e){for(var n=[],t=arguments.length,r=0,o=M(e);o>r;r++){var i=e[r];if(!x.contains(n,i)){for(var l=1;t>l&&x.contains(arguments[l],i);l++);l===t&&n.push(i)}}return n},x.difference=function(e){var n=O(arguments,!0,!0,1);return x.filter(e,function(e){return!x.contains(n,e)})},x.zip=function(){return x.unzip(arguments)},x.unzip=function(e){for(var n=e&&x.max(e,M).length||0,t=Array(n),r=0;n>r;r++)t[r]=x.pluck(e,r);return t},x.object=function(e,n){for(var t={},r=0,o=M(e);o>r;r++)n?t[e[r]]=n[r]:t[e[r][0]]=e[r][1];return t},x.findIndex=i(1),x.findLastIndex=i(-1),x.sortedIndex=function(e,n,t,r){t=k(t,r,1);for(var o=t(n),i=0,l=M(e);l>i;){var s=Math.floor((i+l)/2);t(e[s])<o?i=s+1:l=s}return i},x.indexOf=l(1,x.findIndex,x.sortedIndex),x.lastIndexOf=l(-1,x.findLastIndex),x.range=function(e,n,t){null==n&&(n=e||0,e=0),t=t||1;for(var r=Math.max(Math.ceil((n-e)/t),0),o=Array(r),i=0;r>i;i++,e+=t)o[i]=e;return o};var L=function(e,n,t,r,o){if(!(r instanceof n))return e.apply(t,o);var i=$(e.prototype),l=e.apply(i,o);return x.isObject(l)?l:i};x.bind=function(e,n){if(_&&e.bind===_)return _.apply(e,v.call(arguments,1));if(!x.isFunction(e))throw new TypeError("Bind must be called on a function");var t=v.call(arguments,2),r=function(){return L(e,r,n,this,t.concat(v.call(arguments)))};return r},x.partial=function(e){var n=v.call(arguments,1),t=function(){for(var r=0,o=n.length,i=Array(o),l=0;o>l;l++)i[l]=n[l]===x?arguments[r++]:n[l];for(;r<arguments.length;)i.push(arguments[r++]);return L(e,t,this,this,i)};return t},x.bindAll=function(e){var n,t,r=arguments.length;if(1>=r)throw new Error("bindAll must be passed function names");for(n=1;r>n;n++)t=arguments[n],e[t]=x.bind(e[t],e);return e},x.memoize=function(e,n){var t=function(r){var o=t.cache,i=""+(n?n.apply(this,arguments):r);return x.has(o,i)||(o[i]=e.apply(this,arguments)),o[i]};return t.cache={},t},x.delay=function(e,n){var t=v.call(arguments,2);return setTimeout(function(){return e.apply(null,t)},n)},x.defer=x.partial(x.delay,x,1),x.throttle=function(e,n,t){var r,o,i,l=null,s=0;t||(t={});var a=function(){s=t.leading===!1?0:x.now(),l=null,i=e.apply(r,o),l||(r=o=null)};return function(){var u=x.now();s||t.leading!==!1||(s=u);var c=n-(u-s);return r=this,o=arguments,0>=c||c>n?(l&&(clearTimeout(l),l=null),s=u,i=e.apply(r,o),l||(r=o=null)):l||t.trailing===!1||(l=setTimeout(a,c)),i}},x.debounce=function(e,n,t){var r,o,i,l,s,a=function(){var u=x.now()-l;n>u&&u>=0?r=setTimeout(a,n-u):(r=null,t||(s=e.apply(i,o),r||(i=o=null)))};return function(){i=this,o=arguments,l=x.now();var u=t&&!r;return r||(r=setTimeout(a,n)),u&&(s=e.apply(i,o),i=o=null),s}},x.wrap=function(e,n){return x.partial(n,e)},x.negate=function(e){return function(){return!e.apply(this,arguments)}},x.compose=function(){var e=arguments,n=e.length-1;return function(){for(var t=n,r=e[n].apply(this,arguments);t--;)r=e[t].call(this,r);return r}},x.after=function(e,n){return function(){return--e<1?n.apply(this,arguments):void 0}},x.before=function(e,n){var t;return function(){return--e>0&&(t=n.apply(this,arguments)),1>=e&&(n=null),t}},x.once=x.partial(x.before,2);var A=!{toString:null}.propertyIsEnumerable("toString"),T=["valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"];x.keys=function(e){if(!x.isObject(e))return[];if(y)return y(e);var n=[];for(var t in e)x.has(e,t)&&n.push(t);return A&&s(e,n),n},x.allKeys=function(e){if(!x.isObject(e))return[];var n=[];for(var t in e)n.push(t);return A&&s(e,n),n},x.values=function(e){for(var n=x.keys(e),t=n.length,r=Array(t),o=0;t>o;o++)r[o]=e[n[o]];return r},x.mapObject=function(e,n,t){n=k(n,t);for(var r,o=x.keys(e),i=o.length,l={},s=0;i>s;s++)r=o[s],l[r]=n(e[r],r,e);return l},x.pairs=function(e){for(var n=x.keys(e),t=n.length,r=Array(t),o=0;t>o;o++)r[o]=[n[o],e[n[o]]];return r},x.invert=function(e){for(var n={},t=x.keys(e),r=0,o=t.length;o>r;r++)n[e[t[r]]]=t[r];return n},x.functions=x.methods=function(e){var n=[];for(var t in e)x.isFunction(e[t])&&n.push(t);return n.sort()},x.extend=V(x.allKeys),x.extendOwn=x.assign=V(x.keys),x.findKey=function(e,n,t){n=k(n,t);for(var r,o=x.keys(e),i=0,l=o.length;l>i;i++)if(r=o[i],n(e[r],r,e))return r},x.pick=function(e,n,t){var r,o,i={},l=e;if(null==l)return i;x.isFunction(n)?(o=x.allKeys(l),r=E(n,t)):(o=O(arguments,!1,!1,1),r=function(e,n,t){return n in t},l=Object(l));for(var s=0,a=o.length;a>s;s++){var u=o[s],c=l[u];r(c,u,l)&&(i[u]=c)}return i},x.omit=function(e,n,t){if(x.isFunction(n))n=x.negate(n);else{var r=x.map(O(arguments,!1,!1,1),String);n=function(e,n){return!x.contains(r,n)}}return x.pick(e,n,t)},x.defaults=V(x.allKeys,!0),x.create=function(e,n){var t=$(e);return n&&x.extendOwn(t,n),t},x.clone=function(e){return x.isObject(e)?x.isArray(e)?e.slice():x.extend({},e):e},x.tap=function(e,n){return n(e),e},x.isMatch=function(e,n){var t=x.keys(n),r=t.length;if(null==e)return!r;for(var o=Object(e),i=0;r>i;i++){var l=t[i];if(n[l]!==o[l]||!(l in o))return!1}return!0};var F=function(e,n,t,r){if(e===n)return 0!==e||1/e===1/n;if(null==e||null==n)return e===n;e instanceof x&&(e=e._wrapped),n instanceof x&&(n=n._wrapped);var o=g.call(e);if(o!==g.call(n))return!1;switch(o){case"[object RegExp]":case"[object String]":return""+e==""+n;case"[object Number]":return+e!==+e?+n!==+n:0===+e?1/+e===1/n:+e===+n;case"[object Date]":case"[object Boolean]":return+e===+n}var i="[object Array]"===o;if(!i){if("object"!=typeof e||"object"!=typeof n)return!1;var l=e.constructor,s=n.constructor;if(l!==s&&!(x.isFunction(l)&&l instanceof l&&x.isFunction(s)&&s instanceof s)&&"constructor"in e&&"constructor"in n)return!1}t=t||[],r=r||[];for(var a=t.length;a--;)if(t[a]===e)return r[a]===n;if(t.push(e),r.push(n),i){if(a=e.length,a!==n.length)return!1;for(;a--;)if(!F(e[a],n[a],t,r))return!1}else{var u,c=x.keys(e);if(a=c.length,x.keys(n).length!==a)return!1;for(;a--;)if(u=c[a],!x.has(n,u)||!F(e[u],n[u],t,r))return!1}return t.pop(),r.pop(),!0};x.isEqual=function(e,n){return F(e,n)},x.isEmpty=function(e){return null==e?!0:j(e)&&(x.isArray(e)||x.isString(e)||x.isArguments(e))?0===e.length:0===x.keys(e).length},x.isElement=function(e){return!(!e||1!==e.nodeType)},x.isArray=m||function(e){return"[object Array]"===g.call(e)},x.isObject=function(e){var n=typeof e;return"function"===n||"object"===n&&!!e},x.each(["Arguments","Function","String","Number","Date","RegExp","Error"],function(e){x["is"+e]=function(n){return g.call(n)==="[object "+e+"]"}}),x.isArguments(arguments)||(x.isArguments=function(e){return x.has(e,"callee")}),"function"!=typeof/./&&"object"!=typeof Int8Array&&(x.isFunction=function(e){return"function"==typeof e||!1}),x.isFinite=function(e){return isFinite(e)&&!isNaN(parseFloat(e))},x.isNaN=function(e){return x.isNumber(e)&&e!==+e},x.isBoolean=function(e){return e===!0||e===!1||"[object Boolean]"===g.call(e)},x.isNull=function(e){return null===e},x.isUndefined=function(e){return void 0===e},x.has=function(e,n){return null!=e&&h.call(e,n)},x.noConflict=function(){return a._=u,this},x.identity=function(e){return e},x.constant=function(e){return function(){return e}},x.noop=function(){},x.property=I,x.propertyOf=function(e){return null==e?function(){}:function(n){return e[n]}},x.matcher=x.matches=function(e){return e=x.extendOwn({},e),function(n){return x.isMatch(n,e)}},x.times=function(e,n,t){var r=Array(Math.max(0,e));n=E(n,t,1);for(var o=0;e>o;o++)r[o]=n(o);return r},x.random=function(e,n){return null==n&&(n=e,e=0),e+Math.floor(Math.random()*(n-e+1))},x.now=Date.now||function(){return(new Date).getTime()};var z={"&":"&","<":"<",">":">",'"':""","'":"'","`":"`"},N=x.invert(z),R=function(e){var n=function(n){return e[n]},t="(?:"+x.keys(e).join("|")+")",r=RegExp(t),o=RegExp(t,"g");return function(e){return e=null==e?"":""+e,r.test(e)?e.replace(o,n):e}};x.escape=R(z),x.unescape=R(N),x.result=function(e,n,t){var r=null==e?void 0:e[n];return void 0===r&&(r=t),x.isFunction(r)?r.call(e):r};var B=0;x.uniqueId=function(e){var n=++B+"";return e?e+n:n},x.templateSettings={evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,escape:/<%-([\s\S]+?)%>/g};var D=/(.)^/,q={"'":"'","\\":"\\","\r":"r","\n":"n","\u2028":"u2028","\u2029":"u2029"},P=/\\|'|\r|\n|\u2028|\u2029/g,W=function(e){return"\\"+q[e]};x.template=function(e,n,t){!n&&t&&(n=t),n=x.defaults({},n,x.templateSettings);var r=RegExp([(n.escape||D).source,(n.interpolate||D).source,(n.evaluate||D).source].join("|")+"|$","g"),o=0,i="__p+='";e.replace(r,function(n,t,r,l,s){return i+=e.slice(o,s).replace(P,W),o=s+n.length,t?i+="'+\n((__t=("+t+"))==null?'':_.escape(__t))+\n'":r?i+="'+\n((__t=("+r+"))==null?'':__t)+\n'":l&&(i+="';\n"+l+"\n__p+='"),n}),i+="';\n",n.variable||(i="with(obj||{}){\n"+i+"}\n"),i="var __t,__p='',__j=Array.prototype.join,print=function(){__p+=__j.call(arguments,'');};\n"+i+"return __p;\n";try{var l=new Function(n.variable||"obj","_",i)}catch(s){throw s.source=i,s}var a=function(e){return l.call(this,e,x)},u=n.variable||"obj";return a.source="function("+u+"){\n"+i+"}",a},x.chain=function(e){var n=x(e);return n._chain=!0,n};var K=function(e,n){return e._chain?x(n).chain():n};x.mixin=function(e){x.each(x.functions(e),function(n){var t=x[n]=e[n];x.prototype[n]=function(){var e=[this._wrapped];return d.apply(e,arguments),K(this,t.apply(x,e))}})},x.mixin(x),x.each(["pop","push","reverse","shift","sort","splice","unshift"],function(e){var n=c[e];x.prototype[e]=function(){var t=this._wrapped;return n.apply(t,arguments),"shift"!==e&&"splice"!==e||0!==t.length||delete t[0],K(this,t)}}),x.each(["concat","join","slice"],function(e){var n=c[e];x.prototype[e]=function(){return K(this,n.apply(this._wrapped,arguments))}}),x.prototype.value=function(){return this._wrapped},x.prototype.valueOf=x.prototype.toJSON=x.prototype.value,x.prototype.toString=function(){return""+this._wrapped},r=[],o=function(){return x}.apply(n,r),!(void 0!==o&&(e.exports=o))}).call(this)}]),function(e){function n(r){if(t[r])return t[r].exports;var o=t[r]={exports:{},id:r,loaded:!1};return e[r].call(o.exports,o,o.exports,n),o.loaded=!0,o.exports}var t={};return n.m=e,n.c=t,n.p="",n(0)}([function(n,t,r){try{e.internals.keys=r(1)}catch(o){console.log("Error bundling package keys!"),console.error(o),e.reportError(o)}try{e.internals["lib/createFilterer"]=r(2)}catch(o){console.log("Error bundling package lib/createFilterer!"),console.error(o),e.reportError(o)}try{e.internals["lib/getType"]=r(3)}catch(o){console.log("Error bundling package lib/getType!"),console.error(o),e.reportError(o)}try{e.internals["lib/lens"]=r(4)}catch(o){console.log("Error bundling package lib/lens!"),console.error(o),e.reportError(o)}try{e.internals["lib/uid"]=r(5)}catch(o){console.log("Error bundling package lib/uid!"),console.error(o),e.reportError(o)}},function(n,t){!function(){e.file("keys.js",function(e){function n(e){i[e]&&i[e].forEach(function(e){return e(!0)})}function t(e){i[e]&&i[e].forEach(function(e){return e(!1)})}function r(e,n){i[e]=i[e]||[],i[e].push(n)}Object.defineProperty(e,"__esModule",{value:!0}),e.onKey=r;var o={};e.keys=o;var i={};on.keydown(window,function(e){var t=___keycode(e.keyCode);o[t]=!0,n(t)}),on.keyup(window,function(e){var n=___keycode(e.keyCode);o[n]=!1,t(n)})})}()},function(n,t){!function(){e.file("lib/createFilterer.js",function(e){function t(e,n){n||(n={});var t={};return function(o){var i;if(!t[o])for(var l=o.length-1;l>0;l-=1)if(i=o.substr(0,l),t[i]){t[o]=r(t[i],o,n);break}return t[o]||(t[o]=r(e,o,n)),t[o]}}function r(e,n,t){return a(e).reduce(function(a,u){var c,f=e[u];return i(f)?(o(n,u,t)||o(n,f,t))&&(a[u]=f):o(n,u,t)?a[u]=f:(c=r(f,n,t),isEmpty(c)||s(a,l(u,c))),a},{})}function o(e,n,t){return t.ignoreCase?(e=String(e).toLowerCase(),n&&-1!==String(n).toLowerCase().indexOf(e)):n&&-1!==String(n).indexOf(e)}function i(e){var n=getType(e);return"Object"!==n&&"Array"!==n}function l(e,n){var t={};return t[e]=n,t}Object.defineProperty(e,"__esModule",{value:!0}),e["default"]=t;var s=Object.assign,a=Object.keys;n.exports=e["default"]})}()},function(n,t){!function(){e.file("lib/getType.js",function(e){function t(e){return Object.prototype.toString.call(e).slice(8,-1)}Object.defineProperty(e,"__esModule",{value:!0}),e["default"]=t,n.exports=e["default"]})}()},function(n,t){!function(){e.file("lib/lens.js",function(e){function t(e,n){var i=n.split(o),l=i.shift();if(!l)return e;var s=getType(e);return"Array"===s&&e[r(l)]?t(e[r(l)],i.join(o)):"Object"===s&&e[l]?t(e[l],i.join(o)):void 0}function r(e){return parseInt(e,10)}Object.defineProperty(e,"__esModule",{value:!0}),e["default"]=t;var o=".";n.exports=e["default"]})}()},function(n,t){!function(){e.file("lib/uid.js",function(e){function t(){return r++}Object.defineProperty(e,"__esModule",{value:!0}),e["default"]=t;var r=Math.ceil(10*Math.random());n.exports=e["default"]})}()}]),!function(){e.file("main.js",function(n){function t(e){return e&&e.__esModule?e:{"default":e}}var r=Object.assign||function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e},o=require("keycode"),i=t(o),l=require("mouse-event-offset"),s=t(l);window.___keycode=i["default"],on.event("contextmenu",function(){}),e.staticStyles("Main",{$:"#_flintdevtools .ViewMain"},{$:{position:"fixed",top:0,left:0,right:0,bottom:0,zIndex:2147483647}}),e.view("Main",function(n,t,r){var o=window.__isDevingDevTools,i=o||"?inspect"==window.location.search;n.render(function(){return n.el(["link",1],{rel:"stylesheet",property:"stylesheet",href:"/__/tools/static/tools.css"})}),n.render(function(){return e.iff(!o)&&n.el(["link",2],{"if":!o,rel:"stylesheet",property:"stylesheet",href:"/__/tools/styles.css"})}),n.render(function(){return n.el(["Errors",1],null)}),n.render(function(){return n.el(["Installer",1],null)}),n.render(function(){return e.iff(i)&&n.el(["Inspector",1],{"if":i})}),n.render(function(){return e.iff(o)&&n.el(["Name",1],{"if":o})}),n.render(function(){return e.iff(o)&&n.el(["Counter",1],{"if":o})}),n.render(function(){return e.iff(o)&&n.el(["Circles",1],{"if":o})}),r.$=function(e,n){return{pointerEvents:o?"auto":"none"}}}),e.view("Counter",function(e,n,t){var r=0;e.render(function(){return e.el(["h1",1],null,"count is ",r)}),e.render(function(){return e.el(["button",1],{onClick:function(){return e.set("count",r++,r,!0)}},"up")}),e.render(function(){return e.el(["button",2],{onClick:function(){return e.set("count",r--,r,!0)}},"down")})}),e.view("Deep",function(e,n,t){var r={name:"nick",tools:["js","juggling balls","coffee"]};e.render(function(){return e.el(["h1",1],null,"deep")}),e.render(function(){return e.el(["h2",1],null,JSON.stringify(r))})}),e.view("Name",function(e,n,t){var r="nick",o="cammarata";e.render(function(){return e.el(["h2",1],null,"name is ",r," ",o)}),e.render(function(){return e.el(["input",1],{__flintValue:r,__flintOnChange:function(n){e.set("first",r=n.target.value)}})}),e.render(function(){return e.el(["input",2],{__flintValue:o,__flintOnChange:function(n){e.set("last",o=n.target.value)}})}),e.render(function(){return e.el(["button",1],{onClick:function(){e.set("first",r="nate"),e.set("last",o="wienert")}},"nateify")})}),e.staticStyles("Circles",{$circles:"#_flintdevtools .ViewCircles"},{$circles:{position:"relative",background:"#eee",height:400,width:400}}),e.view("Circles",function(n,t,r){function o(e){n.set("coords",i.push((0,s["default"])(e)),i,!0)}var i=[[200,200]];n.render(function(){return n.el(["circles",1],{onClick:o},e.range(i).map(function(e,t){return n.el(["Circle",1,e,t],{repeat:i,left:e[0],top:e[1]})}))})}),e.view("Circle",function(e,n,t){var o=function(){return Math.round(255*Math.random())},i={background:[o(),o(),o()],position:"absolute",top:e.props.top,left:e.props.left,width:118,height:29,borderRadius:27},l=function(e){return r({},i,{transform:{scale:e}})};e.render(function(){return e.el(["circle",1],{style:l(1)})})})})}(),!function(){e.file("close.js",function(n){e.staticStyles("Close",{$:"#_flintdevtools .ViewClose"},{$:{position:"absolute",right:0,top:0,display:"flex",justifyContent:"center",alignItems:"center",lineHeight:1,opacity:.3,cursor:"pointer"}}),e.view("Close",function(e,n,t){e.render(function(){return e.el(["close",1],{onClick:e.props.onClick},"x")}),t.$=function(n,t){return{fontSize:e.props.fontSize||16,width:e.props.size||50,height:e.props.size||50,":hover":{opacity:1}}}})})}(),!function(){e.file("debounce.js",function(n){var t=function(e,n){return e+n},r=300,o=800,i=5e3,l=1e4,s=1e3;e.view("Debounce",function(e,n,a){var u=void 0,c=void 0,f=void 0,p=void 0,d=void 0,v=void 0,g=!1,h=[];e.pause(),n.props(function(){function n(){e.props.onUpdate&&e.props.onUpdate(),e.update()}if(e.props.force)return n();if(!e.props.showKey||e.props.showKey!=u){e.set("showKey",u=e.props.showKey),e.set("delay",p=e.props.delay||r),e.set("curDelay",d=d||p);var a=Date.now(),m=f?a-f:i;e.set("lastTime",f=a),e.set("lastFew",h.unshift(m),h,!0),h.length>3&&e.set("lastFew",h.pop(),h,!0),m>l?e.set("lastFew",h=[]):3==h.length&&(e.set("avgDiff",v=h.reduce(t,0)/h.length),e.set("isAutoSaving",g=s>v),e.set("curDelay",d=g?o:p)),clearTimeout(c),e.set("timeout",c=setTimeout(n,d))}})})})}(),!function(){e.file("errors.js",function(n){function t(e){if(e.file&&(e.file=e.file.replace(new RegExp(".*"+window.location.origin+"(/[_]+/)?"),"")),e.file&&e.file.indexOf("internals.js")>=0)if(e.message&&0==e.message.indexOf("Cannot find module")){var n=e.message.match(/(fs|path)/);n&&n.length&&(e.file="imported module:",e.message="Cannot import node-only module: "+n[0])}else e.message="Error in a locally required file. "+e.message;return e.message&&(e.niceMessage=e.message.replace(/Uncaught .*Error:\s*/,"")),e}function r(e){var n=e.msg,t=e.name;return n&&(n=n.replace(/(npm WARN.*\n|ERR\!)/g,"").replace(/npm argv.*\n/g,"").replace(/npm node v.*\n/g,"").replace(/npm npm.*\n/g,"").replace(/npm code.*\n/g,"").replace(/npm peerinvalid /g,"").replace(/npm 404 /g,"")), | ||
{msg:n,name:t}}var o=window._DT,i=function(e,n){return[e.substring(0,n),e.substring(n,n+1),e.substring(n+1)]},l=function(e){return a(f(p(e)))},s=function(e){return e?e.replace(/.*\.js\:/,"").replace(/\([0-9]+\:[0-9]+\)/,"").replace(/Line [0-9]+\:\s*/,""):""},a=function(e){return e.niceMessage=s(e.message,e.fileName),e},u=/\>?\s*([0-9]*)\s*\|(.*)/g,c=/\s*\|\s*\^\s*$/g,f=function(e){return e?(e.stack&&!function(){e.fullStack=["","",""];var n=0;e.stack.split("\n").forEach(function(t){if(!c.test(t)&&u.test(t)){var r=">"===t[0];r&&(n=1),r||1!==n||(n=2);var o=t.replace(u,"$1$2").replace(/^(\s*[0-9]+\s*)[;]/,"$1 ");e.fullStack[n]+=o+"\n"}})}(),e):void 0},p=function(e){return e?(e.stack&&e.stack.split("\n").map(function(n){if(">"===n[0]){var t=n;if(!t)return;t=t.replace(/\>\s*[0-9]+\s*\|\s*/,""),t=s(t);var r=e.loc.column-4;e.niceStack=i(t,r)}}),e):void 0};e.view("Errors",function(e,n,i){function s(){c?e.set("error",u=l(c)):f?e.set("error",u=t(f)):e.set("error",u=null),e.update()}function a(){e.set("error",u=null),e.set("compileError",c=null),e.set("runtimeError",f=null),e.set("npmError",p=null),e.update()}e.pause();var u=null,c=null,f=null,p=null;o.on("compile:error",function(){e.set("compileError",c=o.data.error),s()}),o.on("runtime:error",function(){e.set("runtimeError",f=o.data),s()}),o.on("npm:error",function(){e.set("npmError",p=r(o.data.error)),e.update()}),o.on("runtime:success",function(){e.set("runtimeError",f=null),e.set("npmError",p=null),s()}),o.on("compile:success",function(){e.set("compileError",c=null),e.set("npmError",p=null),s()}),e.render(function(){return e.el(["ErrorMessage",1],{error:u,npmError:p,close:a})})});var d=0,v=function(e){return e&&e.replace(/[\?\)].*/,"")},g=function(e){return e&&(e.line||e.loc&&e.loc.line)};e.staticStyles("ErrorMessage",{$bar:"#_flintdevtools bar.ErrorMessage, #_flintdevtools .ErrorMessage.bar, #_flintdevtools .ViewErrorMessage.bar, #_flintdevtools .ErrorMessage > .bar",$hasError:"#_flintdevtools hasError.ErrorMessage, #_flintdevtools .ErrorMessage.hasError, #_flintdevtools .ViewErrorMessage.hasError, #_flintdevtools .ErrorMessage > .hasError",$inner:"#_flintdevtools inner.ErrorMessage, #_flintdevtools .ErrorMessage.inner, #_flintdevtools .ViewErrorMessage.inner, #_flintdevtools .ErrorMessage > .inner",$top:"#_flintdevtools top.ErrorMessage, #_flintdevtools .ErrorMessage.top, #_flintdevtools .ViewErrorMessage.top, #_flintdevtools .ErrorMessage > .top",$where:"#_flintdevtools where.ErrorMessage, #_flintdevtools .ErrorMessage.where, #_flintdevtools .ViewErrorMessage.where, #_flintdevtools .ErrorMessage > .where",$line:"#_flintdevtools line.ErrorMessage, #_flintdevtools .ErrorMessage.line, #_flintdevtools .ViewErrorMessage.line, #_flintdevtools .ErrorMessage > .line",$flint:"#_flintdevtools flint.ErrorMessage, #_flintdevtools .ErrorMessage.flint, #_flintdevtools .ViewErrorMessage.flint, #_flintdevtools .ErrorMessage > .flint",$shortError:"#_flintdevtools shortError.ErrorMessage, #_flintdevtools .ErrorMessage.shortError, #_flintdevtools .ViewErrorMessage.shortError, #_flintdevtools .ErrorMessage > .shortError",$cur:"#_flintdevtools cur.ErrorMessage, #_flintdevtools .ErrorMessage.cur, #_flintdevtools .ViewErrorMessage.cur, #_flintdevtools .ErrorMessage > .cur",$errCol:"#_flintdevtools errCol.ErrorMessage, #_flintdevtools .ErrorMessage.errCol, #_flintdevtools .ViewErrorMessage.errCol, #_flintdevtools .ErrorMessage > .errCol",$ln:"#_flintdevtools ln.ErrorMessage, #_flintdevtools .ErrorMessage.ln, #_flintdevtools .ViewErrorMessage.ln, #_flintdevtools .ErrorMessage > .ln",$flintline:"#_flintdevtools flintline.ErrorMessage, #_flintdevtools .ErrorMessage.flintline, #_flintdevtools .ViewErrorMessage.flintline, #_flintdevtools .ErrorMessage > .flintline"},{$bar:{display:"block",position:"fixed",left:0,transition:"all 200ms ease-in",right:0,fontFamily:'-apple-system, "San Francisco", Roboto, "Segou UI", "Helvetica Neue", Helvetica, Arial, sans-serif',fontWeight:300,color:"#fff",fontSize:"14px",padding:2,pointerEvents:"all",overflow:"scroll",zIndex:2147483647,boxShadow:"0 -6px 12px rgba(0,0,0,0.06)"},$hasError:{bottom:0},$inner:{display:"block",maxHeight:200,overflowY:"scroll"},$top:{padding:8,display:"block"},$where:{display:"inline-block",pointerEvents:"all",fontWeight:300,color:"rgba(255,255,255,0.8)"},$line:{display:"inline-block",whiteSpace:"pre",pointerEvents:"all"},$flint:{display:"inline",fontWeight:700,color:"#fff"},$shortError:{display:"inline",color:"rgba(255,255,255,0.7)"},$cur:{background:"#fff"},$errCol:{display:"inline",borderBottom:"2px solid #f5d64c",padding:3,color:"#fff"},$ln:{padding:[0,20]},$flintline:{whiteSpace:"pre",pointerEvents:"all",fontWeight:"flint"}}),e.view("ErrorMessage",function(n,t,r){function o(){setTimeout(function(){var e=document.querySelectorAll(".__flintError");e.length&&[].forEach.call(e,function(e){e.className+=" active"})})}n.pause();var i=!1,l={},s=void 0,a=void 0,u=g(n.props.error),c=void 0;t.props(function(){c&&c(),n.set("npmError",s=n.props.npmError),n.set("hasError",i=!(!n.props.error&&!n.props.npmError)),n.set("error",l=n.props.error||l),n.set("line",u=g(l)),n.set("fullStack",a=null),n.update(),l&&n.set("clearDelay",c=t.delay(2500,function(){i&&l.fullStack&&(n.set("fullStack",a=l.fullStack),n.update())}))}),n.render(function(){return n.el(["Debounce",1],{delay:1e3,force:i===!1,showKey:a||l&&l.message,onUpdate:o},n.el(["bar",1],{className:{hasError:i}},n.el(["Close",1],{onClick:n.props.close,size:35}),e.iff(s)&&n.el(["inner",1],{"if":s},n.el(["where",1],null,n.el(["flint",1],null,s.name))," ",s.msg),n.el(["inner",2],null,n.el(["top",1],null,n.el(["where",2],null,n.el(["span",1],null,"In ",n.el(["flint",2],null,v(l.file))),n.el(["line",1],null,u?" line":""," ",e.iff(u)&&n.el(["flint",3],{"if":u},u-d)))," ",n.el(["shortError",1],null,(l.niceMessage||l.message||"").trim(),e.iff(l.niceStack)&&n.el(["niceStack",1],{"if":l.niceStack},l.niceStack[0],n.el(["errCol",1],null,l.niceStack[1]),l.niceStack[2])),e.iff(l.help)&&n.el(["help",1],{"if":l.help},l.help)),e.iff(a)&&n.el(["fullStack",1],{"if":a},n.el(["ln",1],null,""+a[0]),n.el(["ln",2],{className:"cur"},""+a[1]),n.el(["ln",3],null,""+a[2])))))});var f="#cd423e";r.bar=function(e,n){return{background:f,bottom:-100}};var p={color:"rgba(255,255,255,0.85)",display:"inline",fontFamily:"Meslo, Menlo, Monaco, monospace",padding:[0,5]};r.niceStack=function(e,n){return p},r.errCol=function(e,n){return{margin:-3}},r.fullStack=function(e,n){return[p,{maxHeight:a?600:0,padding:a?[10,0]:0,transition:"maxHeight ease-in 300ms",color:"rgba(0,0,0,0.85)",background:"rgba(255,255,255,0.9)",display:"block",whiteSpace:"pre",fontSize:14,borderRadius:3,margin:2}]}}),e.staticStyles("ErrorIcon",{$svg:"#_flintdevtools svg.ErrorIcon, #_flintdevtools .ErrorIcon.svg, #_flintdevtools .ViewErrorIcon.svg, #_flintdevtools .ErrorIcon > .svg"},{$svg:{width:19,fill:"red",marginLeft:3,marginRight:6,opacity:.9}}),e.view("ErrorIcon",function(e,n,t){e.render(function(){return e.el(["svg",1],{viewBox:"0 0 27.963 27.963"},e.el(["path",1],{d:"M13.983,0C6.261,0,0.001,6.259,0.001,13.979c0,7.724,6.26,13.984,13.982,13.984s13.98-6.261,13.98-13.984 C27.963,6.259,21.705,0,13.983,0z M13.983,26.531c-6.933,0-12.55-5.62-12.55-12.553c0-6.93,5.617-12.548,12.55-12.548 c6.931,0,12.549,5.618,12.549,12.548C26.531,20.911,20.913,26.531,13.983,26.531z"}),e.el(["polygon",1],{points:"15.579,17.158 16.191,4.579 11.804,4.579 12.414,17.158"}),e.el(["path",2],{d:"M13.998,18.546c-1.471,0-2.5,1.029-2.5,2.526c0,1.443,0.999,2.528,2.444,2.528h0.056c1.499,0,2.469-1.085,2.469-2.528 C16.441,19.575,15.468,18.546,13.998,18.546z"}))}),t.svg=function(e,n){return{margin:-4}}})})}(),!function(){e.file("inspector.js",function(n){function t(e){return Array.isArray(e)?e:Array.from(e)}function r(e){var n=e.getBoundingClientRect(),t=window.innerWidth,r=window.innerHeight,o=m(n.right-n.left),i=m(n.bottom-n.top),l=1;o>=t&&i>=r&&(l=.2),y.setAttribute("style","\n top: "+m(n.top)+"px;\n left: "+m(n.left)+"px;\n width: "+o+"px;\n height: "+i+"px;\n opacity: "+l+";\n ")}function o(){y.setAttribute("style","")}function i(e){if(!e||!e.getAttribute)return null;var n=e.__flintID;return n?(r(e),n):i(e.parentNode)}function l(e,n){return e.filter(function(e){return e.path==n}).length>0}function s(e){return e.filter(function(e){return!e.temp}).map(function(e){return v({},e,{highlight:!1})})}function a(e,n){return[{path:n,highlight:!1,temp:!0}].concat(e)}function u(e,n){return e.map(function(e){return e.path==n&&(e.closing=!0),e})}function c(e,n){return e.map(function(e){return e.path==n&&(e.highlight=!0),e})}function f(e,n){if(l(e,n))return e.map(function(e){return e.path==n&&(e.temp=!0),e});var t={temp:!1,highlight:!1,closing:!1,path:n};return[].concat([t],e)}function p(){return window._Flint}function d(e,n){var t=p(),r=n[1][0],o=t.getCache[e][r],i=n[1][1];"number"==typeof o&&(i=+i),t.setCache(e,r,i),t.inspectorRefreshing=e,t.getInitialStates[e](),t.viewsAtPath[e].forceUpdate(),t.inspectorRefreshing=null}var v=Object.assign||function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e},g=require("./keys"),h=function(e){var n=t(e),r=(n[0],n.slice(1));return r},m=Math.round,y=void 0;e.staticStyles("Inspector",{$:"#_flintdevtools .ViewInspector"},{$:{position:"fixed",top:0,right:0,padding:2}}),e.view("Inspector",function(n,t,r){function m(e){p().isInspecting=!0;var t=i(e);n.set("views",j=s(j)),n.set("views",j=l(j,t)?c(j,t):a(j,t))}function _(e){var t=e.target;S!=t&&(n.set("lastTarget",S=t),M&&m(S))}function w(){j.length&&n.set("views",j=h(j))}function b(e,r){r&&r.stopPropagation(),n.set("views",j=u(j,e)),t.delay(200,function(){n.set("views",j=j.filter(function(n){return e!=n.path}))})}function x(e){return n.set("views",j=f(s(j),i(e.target))),!1}function E(){m(S),n.set("hudActive",M=!0),n.set("clickOff",$=t.click(window,x))}function k(){p().isInspecting=!1,n.set("hudActive",M=!1),o(),$&&$(),n.set("views",j=s(j))}function V(e,t){d(e,t),n.update()}var $=void 0,I=void 0,S=void 0,M=!1,j=[];t.mount(function(){n.set("hoverOff",I=t.mousemove(window,_)),y||(y=document.createElement("div"),y.className="_flintHighlighter",document.body.appendChild(y))}),(0,g.onKey)("esc",w);var C=void 0;(0,g.onKey)("alt",function(e){e?n.set("offAlt",C=t.delay(100,function(){g.keys.alt&&!g.keys.command&&E()})):(C(),k())}),n.render(function(){return e.range(j).map(function(e,t){return n.el(["Inspector.View",1,e,t],v({repeat:j,key:e.path},e,{writeBack:V,onClose:function(n){return b(e.path,n)}}))})})})})}(),!function(){e.file("modal.js",function(n){e.staticStyles("Modal",{$:"#_flintdevtools .ViewModal",$title:"#_flintdevtools title.Modal, #_flintdevtools .Modal.title, #_flintdevtools .ViewModal.title, #_flintdevtools .Modal > .title",$message:"#_flintdevtools message.Modal, #_flintdevtools .Modal.message, #_flintdevtools .ViewModal.message, #_flintdevtools .Modal > .message"},{$:{position:"fixed",right:0,minWidth:80,padding:[10,10],margin:20,background:"#fff",boxShadow:"0 0 10px rgba(0,0,0,0.1)",border:"2px solid #e80967",fontSize:14,transition:"all ease-in 200ms",textAlign:"center",borderRadius:6,pointerEvents:"auto"},$title:{color:"#222",fontWeight:500,fontSize:15,margin:[0,20]},$message:{fontFamily:"-apple-system, 'Helvetica Nueue', Helvetica, Arial, sans-serif"}}),e.view("Modal",function(n,t,r){function o(){return n.set("open",s=n.props.open),l&&!n.props.title?n.update():(n.set("title",l=n.props.title),n.set("children",i=n.props.children),void n.update())}n.pause();var i=void 0,l=void 0,s=void 0;t.props(o),n.render(function(){return n.el(["modal",1],null,n.el(["Close",1],{size:25}),e.iff(l)&&n.el(["title",1],{"if":l},l),e.iff(i)&&n.el(["message",1],{"if":i},i))}),r.$=function(e,n){return{top:s?0:-140}}})})}(),!function(){e.file("inspector/highlighter.js",function(n){e.view("Highlighter",function(n,t,r){n.render(function(){return e.iff(!n.props.highlight||-1===n.props.string.indexOf(n.props.highlight))&&n.el(["name",1],{"if":!n.props.highlight||-1===n.props.string.indexOf(n.props.highlight)},n.props.string)}),n.render(function(){return e.iff(n.props.highlight)&&n.el(["span",1],{"if":n.props.highlight},e.range(n.props.string.split()).map(function(t,r){return n.el(["span",2,t,r],{repeat:n.props.string.split()},e.iff(r>0)&&n.el(["highlight",1,t,r],{"if":r>0},n.props.highlight),t)}))})})})}(),!function(){e.file("inspector/label.js",function(n){var t=Object.assign||function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e};e.staticStyles("Label",{$input:"#_flintdevtools input.Label, #_flintdevtools .Label.input, #_flintdevtools .ViewLabel.input, #_flintdevtools .Label > .input",$focus:"#_flintdevtools focus.Label, #_flintdevtools .Label.focus, #_flintdevtools .ViewLabel.focus, #_flintdevtools .Label > .focus"},{$input:{position:"absolute",top:0,right:0,color:"#333",padding:1,width:140,outline:"none",border:"none",opacity:0,boxShadow:"1px 1px 2px rgba(0,0,0,0.4)"},$focus:{opacity:"1 !important"}}),e.view("Label",function(e,n,r){var o=void 0,i=void 0;n.props(function(){e.set("newVal",i=e.props.val)});var l=function(n){e.props.editable&&(e.set("focus",o=!0),n.stopPropagation(),n.target.select())},s=function(n){e.set("focus",o=!1)},a=function(n){e.set("newVal",i=n.target.value),"false"===i&&e.set("newVal",i=!1),"true"===i&&e.set("newVal",i=!0),e.props.onSet(i)},u=function(e){return e?{}:{tabIndex:5e3,disabled:!0}};e.render(function(){return e.el(["input",1],t({defaultValue:String(e.props.val),__flintValue:i,__flintOnChange:function(n){e.set("newVal",i=n.target.value)},className:{focus:o},size:Math.max(4,e.props.val&&e.props.val.length||0),spellCheck:!1,onMouseUp:l,onFocus:l,onEnter:s,onBlur:s,onChange:a},u(e.props.editable)))}),r.input=function(e,n){return{left:-1}}})})}(),!function(){e.file("inspector/leaf.js",function(n){function t(e){return e&&e.__esModule?e:{"default":e}}var r=require("md5-o-matic"),o=t(r),i=require("./lib/getType"),l=t(i),s=require("ellipsize"),a=t(s),u=".root.",c=function(e,n){return-1!==e.indexOf(n)},f=function(e){return"Object"!==(0,l["default"])(e)&&"Array"!==(0,l["default"])(e)};e.staticStyles("Leaf",{$leaf:"#_flintdevtools .ViewLeaf",$helper:"#_flintdevtools helper.Leaf, #_flintdevtools .Leaf.helper, #_flintdevtools .ViewLeaf.helper, #_flintdevtools .Leaf > .helper",$boolean:"#_flintdevtools boolean.Leaf, #_flintdevtools .Leaf.boolean, #_flintdevtools .ViewLeaf.boolean, #_flintdevtools .Leaf > .boolean",$number:"#_flintdevtools number.Leaf, #_flintdevtools .Leaf.number, #_flintdevtools .ViewLeaf.number, #_flintdevtools .Leaf > .number",$string:"#_flintdevtools string.Leaf, #_flintdevtools .Leaf.string, #_flintdevtools .ViewLeaf.string, #_flintdevtools .Leaf > .string",$function:"#_flintdevtools function.Leaf, #_flintdevtools .Leaf.function, #_flintdevtools .ViewLeaf.function, #_flintdevtools .Leaf > .function",$colon:"#_flintdevtools colon.Leaf, #_flintdevtools .Leaf.colon, #_flintdevtools .ViewLeaf.colon, #_flintdevtools .Leaf > .colon",$name:"#_flintdevtools name.Leaf, #_flintdevtools .Leaf.name, #_flintdevtools .ViewLeaf.name, #_flintdevtools .Leaf > .name",$children:"#_flintdevtools children.Leaf, #_flintdevtools .Leaf.children, #_flintdevtools .ViewLeaf.children, #_flintdevtools .Leaf > .children",$type:"#_flintdevtools type.Leaf, #_flintdevtools .Leaf.type, #_flintdevtools .ViewLeaf.type, #_flintdevtools .Leaf > .type"},{$leaf:{padding:[1,0],fontSize:13},$helper:{color:"#ffff05"},$boolean:{color:"#32a3cd",fontWeight:700},$number:{color:"#b92222",marginTop:2,fontWeight:500},$string:{color:"#698c17"},$function:{marginLeft:10,marginTop:2,color:"#962eba"},$colon:{opacity:.3,color:"#000"},$name:{color:"#ff2f2f",fontWeight:400,margin:["auto",0]},$children:{paddingLeft:10},$type:{margin:[1,0,0,8],opacity:.7,flexFlow:"row"}}),e.view("Leaf",function(n,t,r){function i(e){n.props.root||n.set("expanded",m=!m),n.update(),n.props.onClick&&n.props.onClick(d),e.stopPropagation()}n.pause();var s=void 0,p=void 0,d=void 0,v=void 0,g=void 0,h=void 0,m=void 0,y=[],_="",w=function(){return n.props.root||!_&&n.props.isExpanded(p,d)||!c(p,_)&&"function"==typeof n.props.getOriginal};t.props(function(){n.set("rootPath",s=n.props.prefix+"."+n.props.label),n.set("key",g=n.props.label.toString()),n.set("path",p=s.substr(u.length)),n.set("data",d=n.props.data),d&&n.set("dataKeys",y=Object.keys(d).sort()),void 0===d&&n.set("data",d=n.props.data),void 0===d&&n.set("data",d={}),n.set("type",v=(0,l["default"])(d)),n.set("query",_=n.props.query||""),n.props.root?n.set("expanded",m=!0):_&&n.set("expanded",m=!c(n.props.label,_)),n.props.query&&!_&&n.set("expanded",m=w()),n.update()});var b=function(e,n){return f(n)?e+":"+(0,o["default"])(String(e)):e+"["+(0,l["default"])(n)+"]"},x=function(e){return n.el(["Highlighter",1],{string:e,highlight:_})},E=function(e){return e.toString().replace(/((\/\/.*$)|(\/\*[\s\S]*?\*\/)|(\s))/gm,"").match(/^function\s*[^\(]*\(\s*([^\)]*)\)/m)[1].split(/,/)},k=function(e,t,r,o){return n.el(["Label",1],{val:t,editable:o,onSet:function(e){return n.props.onSet([r,e])}})};n.render(function(){return n.el(["leaf",1],{className:s},e.iff(!n.props.root)&&n.el(["label",1],{"if":!n.props.root,htmlFor:n.props.id,onClick:i},n.el(["key",1],null,n.el(["name",1],null,x(g)),k("key",g,g,!1)),n.el(["colon",1],null,":"),e.iff("Function"==v)&&n.el(["expand",1],{className:"function","if":"Function"==v},n.el(["i",1],null,"fn (",E(d).join(", "),")")),e.iff("Array"==v)&&n.el(["expand",2],{"if":"Array"==v},n.el(["type",1],null,"Array[",d.length,"]")),e.iff("Object"==v)&&n.el(["expand",3],{"if":"Object"==v},n.el(["type",2],null,"{} "+y.length+" keys")),e.iff(-1==["Array","Object","Function"].indexOf(v))&&n.el(["value",1],{"if":-1==["Array","Object","Function"].indexOf(v),className:v.toLowerCase()},e.iff("string"==v.toLowerCase())&&n.el(["str",1],{"if":"string"==v.toLowerCase()},x((0,a["default"])(String(d),25))),e.iff("string"!=v.toLowerCase())&&n.el(["else",1],{"if":"string"!=v.toLowerCase()},x(String(d))),k("val",d,g,n.props.editable))),n.el(["children",1],null,e.iff(m&&!f(d))&&e.range(y).map(function(t,r){return n.el(["child",1,t,r],{"if":m&&!f(d),repeat:y},e.iff(-1==t.indexOf("__"))&&n.el(["Leaf",1,t,r],{"if":-1==t.indexOf("__"),key:b(t,d[t]),onSet:function(){for(var e,t=arguments.length,r=Array(t),o=0;t>o;o++)r[o]=arguments[o];return(e=n.props).onSet.apply(e,[g].concat(r))},data:d[t],editable:n.props.editable,label:t,prefix:s,onClick:n.props.onClick,id:n.props.id,query:_,getOriginal:h?null:n.props.getOriginal,isExpanded:n.props.isExpanded}))})))});var V={flexFlow:"row"};r.label=function(e,n){return[V,{position:"relative",color:"rgba(0,0,0,0.8)",opacity:1,alignItems:"center"}]},r.key=function(e,n){return[V,{color:"rgba(0,0,0,0.9)",margin:[0],fontWeight:"bold"}]},r.expand=function(e,n){return[V,{}]},r.value=function(e,n){return[V,{position:"relative",margin:[0,4]}]}})})}(),!function(){e.file("inspector/section.js",function(n){e.staticStyles("Inspector.Section",{$:"#_flintdevtools .ViewInspector-Section",$body:"#_flintdevtools body.Inspector-Section, #_flintdevtools .Inspector-Section.body, #_flintdevtools .ViewInspector-Section.body, #_flintdevtools .Inspector-Section > .body"},{$:{padding:[5,0]},$body:{padding:[0,12]}}),e.view("Inspector.Section",function(n,t,r){var o=!0;n.render(function(){return n.el(["Inspector.Title",1],{onToggle:function(e){return n.set("open",o=e)}},n.props.title)}),n.render(function(){return e.iff(o)&&n.el(["body",1],{"if":o},n.props.children)})})})}(),!function(){e.file("inspector/title.js",function(n){e.staticStyles("Inspector.Title",{$title:"#_flintdevtools title.Inspector-Title, #_flintdevtools .Inspector-Title.title, #_flintdevtools .ViewInspector-Title.title, #_flintdevtools .Inspector-Title > .title",$closed:"#_flintdevtools closed.Inspector-Title, #_flintdevtools .Inspector-Title.closed, #_flintdevtools .ViewInspector-Title.closed, #_flintdevtools .Inspector-Title > .closed",$inner:"#_flintdevtools inner.Inspector-Title, #_flintdevtools .Inspector-Title.inner, #_flintdevtools .ViewInspector-Title.inner, #_flintdevtools .Inspector-Title > .inner"},{$title:{fontWeight:300,borderBottom:"1px solid #eee",height:10,margin:[5,0,8],color:"#999",flexFlow:"row"},$closed:{marginTop:1},$inner:{padding:[4,10],background:"#fff"}}),e.view("Inspector.Title",function(e,n,t){function r(){e.props.onToggle&&(e.set("open",o=!o),e.props.onToggle(o))}var o=!0;e.render(function(){return e.el(["title",1],{onClick:r},e.el(["inner",1],null,e.props.children))}),t.closed=function(e,n){return{transform:{scale:.8}}},t.inner=function(e,n){return{margin:[-2,"auto"]}}})})}(),!function(){e.file("inspector/tree.js",function(n){function t(e){return e&&e.__esModule?e:{"default":e}}var r=require("./lib/lens"),o=t(r);e.staticStyles("Tree",{$:"#_flintdevtools .ViewTree"},{$:{pointerEvents:"auto"}}),e.view("Tree",function(e,n,t){var r="",i=function(n){return(0,o["default"])(e.props.data,n)};e.render(function(){return e.el(["Leaf",1],{data:e.props.data,onClick:e.props.onClick,id:e.props.id,getOriginal:i,query:r,label:"root",editable:e.props.editable,root:!0,validateQuery:function(e){return e.length>=2},isExpanded:e.props.isExpanded||function(){return!1},interactiveLabel:e.props.interactiveLabel,onSet:function(){for(var n=arguments.length,t=Array(n),r=0;n>r;r++)t[r]=arguments[r];return e.props.onSet(t)}})}),t.$=function(e,n){return{marginLeft:-10}}})})}(),!function(){e.file("inspector/view.js",function(n){function t(e){return e&&e.__esModule?e:{"default":e}}function r(e){var n=e.split(",");return n[n.length-1].split(".")[0].split("-")[0]}function o(e){var n=["if","repeat","style","yield","__flint"];return s["default"].omit.apply(null,[e].concat(n))}var i=require("clone"),l=(t(i),require("underscore")),s=t(l);e.staticStyles("Inspector.View",{$view:"#_flintdevtools view.Inspector-View, #_flintdevtools .Inspector-View.view, #_flintdevtools .ViewInspector-View.view, #_flintdevtools .Inspector-View > .view",$top:"#_flintdevtools top.Inspector-View, #_flintdevtools .Inspector-View.top, #_flintdevtools .ViewInspector-View.top, #_flintdevtools .Inspector-View > .top",$active:"#_flintdevtools active.Inspector-View, #_flintdevtools .Inspector-View.active, #_flintdevtools .ViewInspector-View.active, #_flintdevtools .Inspector-View > .active",$highlight:"#_flintdevtools highlight.Inspector-View, #_flintdevtools .Inspector-View.highlight, #_flintdevtools .ViewInspector-View.highlight, #_flintdevtools .Inspector-View > .highlight",$Close:"#_flintdevtools .ViewInspector-View .ViewClose",$name:"#_flintdevtools name.Inspector-View, #_flintdevtools .Inspector-View.name, #_flintdevtools .ViewInspector-View.name, #_flintdevtools .Inspector-View > .name",$edit:"#_flintdevtools edit.Inspector-View, #_flintdevtools .Inspector-View.edit, #_flintdevtools .ViewInspector-View.edit, #_flintdevtools .Inspector-View > .edit",$expanded:"#_flintdevtools expanded.Inspector-View, #_flintdevtools .Inspector-View.expanded, #_flintdevtools .ViewInspector-View.expanded, #_flintdevtools .Inspector-View > .expanded",$input:"#_flintdevtools input.Inspector-View, #_flintdevtools .Inspector-View.input, #_flintdevtools .ViewInspector-View.input, #_flintdevtools .Inspector-View > .input",$title:"#_flintdevtools title.Inspector-View, #_flintdevtools .Inspector-View.title, #_flintdevtools .ViewInspector-View.title, #_flintdevtools .Inspector-View > .title",$props:"#_flintdevtools props.Inspector-View, #_flintdevtools .Inspector-View.props, #_flintdevtools .ViewInspector-View.props, #_flintdevtools .Inspector-View > .props"},{$view:{position:"relative",pointerEvents:"auto",margin:10,padding:[0,0,1],minWidth:220,fontSize:12,userSelect:"none",cursor:"default",background:"#fff",boxShadow:"0px 2px 16px rgba(0,0,0,0.2)",border:"1px solid #ccc",borderRadius:5,color:"#333",transition:"all ease-in 60ms",opacity:0},$top:{flexFlow:"row"},$active:{opacity:1},$highlight:{border:"2px solid #afb4e2"},$Close:{fontSize:16},$name:{fontWeight:400,color:"rgba(0,0,0,0.8)",padding:[8,8,0],fontSize:14},$edit:{padding:[8,8,0],fontSize:14,marginLeft:4,fontWeight:400,color:"rgba(24, 101, 227, 0.8)"},$expanded:{},$input:{borderRadius:100,border:"1px solid #ccc",width:"100%",padding:[2,12],color:"#333",fontSize:14},$title:{display:"none",color:"#333",fontWeight:200,fontSize:12,margin:[3,0]},$props:{marginBottom:2}}),e.view("Inspector.View",function(n,t,i){function l(e){n.props.writeBack(u,e)}var s=window.Flint.inspect,a=void 0,u=void 0,c=void 0,f=void 0,p=!1,d={},v=null,g=null;t.delay(60,function(){n.set("active",p=!0)}),t.unmount(function(){delete window._Flint.inspector[n.props.path]}),t.props(function(){n.set("highlight",f=n.props.highlight),n.set("closing",c=n.props.closing),n.set("path",u=n.props.path),c===!0&&n.set("active",p=!1),u&&(n.set("name",a=r(u)),_Flint.inspector[n.props.path]||s(u,function(e,t,r){n.set("props",v=o(e||{})),n.set("state",d=t||{}),n.set("writeBack",g=r),n.update()}))});var h=function(e){return e&&Object.keys(e).length>0},m=function(){return _DT.messageEditor({type:"editView",view:a})};n.render(function(){return n.el(["view",1],{className:{active:p,highlight:f}},n.el(["Close",1],{onClick:n.props.onClose,fontSize:20,size:35}),n.el(["top",1],null,n.el(["name",1],null,a),e.iff(!1)&&n.el(["edit",1],{"if":!1,onClick:m},"edit")),e.iff(!h(v))&&n.el(["Inspector.Title",1],{"if":!h(v)},"No Props"),e.iff(h(v))&&n.el(["Inspector.Section",1],{title:"Props","if":h(v),className:"props"},n.el(["Tree",1],{editable:!1,data:v})),e.iff(!h(d))&&n.el(["Inspector.Title",2],{"if":!h(d)},"No State"),e.iff(h(d))&&n.el(["Inspector.Section",2],{title:"State","if":h(d)},n.el(["Tree",2],{editable:!0,onSet:l,data:d})))}),i.view=function(e,n){return{transform:{x:20}}},i.active=function(e,n){return{transform:{x:0}}},i.Close=function(e,n){return{top:-5,right:-5}},i.name=function(e,n){return{margin:[0,0,-6]}},i.edit=function(e,n){return{margin:[0,0,-6]}},i.expanded=function(e,n){return{transform:{y:0}}}})})}(),!function(){e.file("npm/installer.js",function(n){var t=window._DT;e.view("Installer",function(n,r,o){var i="",l=[],s="",a="",u=0;t.on("package:install",function(){n.set("state",u=1),n.set("name",s=t.data.name)}),t.on("package:installed",function(){n.set("state",u=2),setTimeout(function(){return n.set("state",u=0)},2e3)}),t.on("package:error",function(){n.set("state",u=3),n.set("name",s=t.data.name),n.set("error",a=t.data.error),setTimeout(function(){return n.set("state",u=0)},2e3)}),t.on("package:select",function(){n.set("state",u=4),n.set("versions",l=t.data.versions)});var c=function(e){n.set("version",i=e),t.data.version=e,t.emitter.emit("package:select"),n.set("state",u=1)},f=function(){return n.set("state",u=0)},p=function(e){switch(e){case 1:return"Installing "+s+(i?" "+i:"")+"...";case 2:return"Installed "+s+"!";case 3:return"Error: "+s;case 4:return"Select version"}},d=function(e){switch(e){case 1:return null;case 2:return null;case 3:return a;case 4:return n.el(["Versions",1],{versions:l,onSelect:c})}};n.render(function(){return n.el(["Modal",1],{open:u>0,onClose:f,title:p(u)},e.iff(!1)&&n.el(["InstallerLoading",1],{"if":!1}),d(u))})}),e.staticStyles("Versions",{$version:"#_flintdevtools version.Versions, #_flintdevtools .Versions.version, #_flintdevtools .ViewVersions.version, #_flintdevtools .Versions > .version",$inner:"#_flintdevtools inner.Versions, #_flintdevtools .Versions.inner, #_flintdevtools .ViewVersions.inner, #_flintdevtools .Versions > .inner",$v:"#_flintdevtools v.Versions, #_flintdevtools .Versions.v, #_flintdevtools .ViewVersions.v, #_flintdevtools .Versions > .v",$info:"#_flintdevtools info.Versions, #_flintdevtools .Versions.info, #_flintdevtools .ViewVersions.info, #_flintdevtools .Versions > .info"},{$version:{textAlign:"left",padding:[2,4],borderRadius:2},$inner:{flexFlow:"row"},$v:{flexGrow:1,fontWeight:"bold"},$info:{}}),e.view("Versions",function(n,t,r){n.render(function(){return e.range(n.props.versions).map(function(e,t){return n.el(["version",1,e,t],{repeat:n.props.versions,onClick:function(){return n.props.onSelect(e)}},n.el(["inner",1,e,t],null,n.el(["v",1,e,t],{key:"v"+t},e.version),n.el(["info",1,e,t],null,e.description),n.el(["a",1,e,t],{href:e.homepage,target:"_blank"},"Info")))})}),r.v=function(e,n){return{":hover":{background:"#fff",cursor:"pointer"}}}})})}(),e.init()}(o)},"undefined"!=typeof module&&module.exports&&(module.exports=flintRun_tools); |
@@ -6,3 +6,3 @@ { | ||
"description": "tools", | ||
"version": "1.3.132", | ||
"version": "1.3.133", | ||
"main": "index.js", | ||
@@ -14,2 +14,3 @@ "scripts": {}, | ||
"events": "^1.1.0", | ||
"keycode": "^2.1.0", | ||
"md5-o-matic": "^0.1.1", | ||
@@ -16,0 +17,0 @@ "mouse-event-offset": "^3.0.2", |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
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 too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
3436406
42
7563
10
+ Addedkeycode@^2.1.0
+ Addedkeycode@2.2.1(transitive)