flint-tools
Advanced tools
Comparing version 1.3.115 to 1.3.116
@@ -1,2 +0,2 @@ | ||
window.flintRun_tools=function(e,t,n){var r=t.Flint||runFlint,o=r(e,t,n);!function(e){!function(e){function t(r){if(n[r])return n[r].exports;var o=n[r]={exports:{},id:r,loaded:!1};return e[r].call(o.exports,o,o.exports,t),o.loaded=!0,o.exports}var n={};return t.m=e,t.c=n,t.p="",t(0)}([function(t,n,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,t){function n(e,t,n){t=t||e.currentTarget||e.srcElement,Array.isArray(n)||(n=[0,0]);var o=e.clientX||0,i=e.clientY||0,l=r(t);return n[0]=o-l.left,n[1]=i-l.top,n}function r(e){return e===window||e===document||e===document.body?o:e.getBoundingClientRect()}var o={left:0,top:0};e.exports=n},function(e,t){"use strict";function n(e){for(var t=u(e),n=1732584193,r=-271733879,o=-1732584194,i=271733878,a=0;a<t.length;a+=16){var c=n,v=r,h=o,m=i;n=f(n,r,o,i,t[a+0],7,-680876936),i=f(i,n,r,o,t[a+1],12,-389564586),o=f(o,i,n,r,t[a+2],17,606105819),r=f(r,o,i,n,t[a+3],22,-1044525330),n=f(n,r,o,i,t[a+4],7,-176418897),i=f(i,n,r,o,t[a+5],12,1200080426),o=f(o,i,n,r,t[a+6],17,-1473231341),r=f(r,o,i,n,t[a+7],22,-45705983),n=f(n,r,o,i,t[a+8],7,1770035416),i=f(i,n,r,o,t[a+9],12,-1958414417),o=f(o,i,n,r,t[a+10],17,-42063),r=f(r,o,i,n,t[a+11],22,-1990404162),n=f(n,r,o,i,t[a+12],7,1804603682),i=f(i,n,r,o,t[a+13],12,-40341101),o=f(o,i,n,r,t[a+14],17,-1502002290),r=f(r,o,i,n,t[a+15],22,1236535329),n=p(n,r,o,i,t[a+1],5,-165796510),i=p(i,n,r,o,t[a+6],9,-1069501632),o=p(o,i,n,r,t[a+11],14,643717713),r=p(r,o,i,n,t[a+0],20,-373897302),n=p(n,r,o,i,t[a+5],5,-701558691),i=p(i,n,r,o,t[a+10],9,38016083),o=p(o,i,n,r,t[a+15],14,-660478335),r=p(r,o,i,n,t[a+4],20,-405537848),n=p(n,r,o,i,t[a+9],5,568446438),i=p(i,n,r,o,t[a+14],9,-1019803690),o=p(o,i,n,r,t[a+3],14,-187363961),r=p(r,o,i,n,t[a+8],20,1163531501),n=p(n,r,o,i,t[a+13],5,-1444681467),i=p(i,n,r,o,t[a+2],9,-51403784),o=p(o,i,n,r,t[a+7],14,1735328473),r=p(r,o,i,n,t[a+12],20,-1926607734),n=d(n,r,o,i,t[a+5],4,-378558),i=d(i,n,r,o,t[a+8],11,-2022574463),o=d(o,i,n,r,t[a+11],16,1839030562),r=d(r,o,i,n,t[a+14],23,-35309556),n=d(n,r,o,i,t[a+1],4,-1530992060),i=d(i,n,r,o,t[a+4],11,1272893353),o=d(o,i,n,r,t[a+7],16,-155497632),r=d(r,o,i,n,t[a+10],23,-1094730640),n=d(n,r,o,i,t[a+13],4,681279174),i=d(i,n,r,o,t[a+0],11,-358537222),o=d(o,i,n,r,t[a+3],16,-722521979),r=d(r,o,i,n,t[a+6],23,76029189),n=d(n,r,o,i,t[a+9],4,-640364487),i=d(i,n,r,o,t[a+12],11,-421815835),o=d(o,i,n,r,t[a+15],16,530742520),r=d(r,o,i,n,t[a+2],23,-995338651),n=g(n,r,o,i,t[a+0],6,-198630844),i=g(i,n,r,o,t[a+7],10,1126891415),o=g(o,i,n,r,t[a+14],15,-1416354905),r=g(r,o,i,n,t[a+5],21,-57434055),n=g(n,r,o,i,t[a+12],6,1700485571),i=g(i,n,r,o,t[a+3],10,-1894986606),o=g(o,i,n,r,t[a+10],15,-1051523),r=g(r,o,i,n,t[a+1],21,-2054922799),n=g(n,r,o,i,t[a+8],6,1873313359),i=g(i,n,r,o,t[a+15],10,-30611744),o=g(o,i,n,r,t[a+6],15,-1560198380),r=g(r,o,i,n,t[a+13],21,1309151649),n=g(n,r,o,i,t[a+4],6,-145523070),i=g(i,n,r,o,t[a+11],10,-1120210379),o=g(o,i,n,r,t[a+2],15,718787259),r=g(r,o,i,n,t[a+9],21,-343485551),n=l(n,c),r=l(r,v),o=l(o,h),i=l(i,m)}return s(n)+s(r)+s(o)+s(i)}function r(e,t){var n=1&e|1&t,r=e>>>1|t>>>1;return r<<1|n}function o(e,t){var n=1&e^1&t,r=e>>>1^t>>>1;return r<<1|n}function i(e,t){var n=1&e&(1&t),r=e>>>1&t>>>1;return r<<1|n}function l(e,t){var n=(65535&e)+(65535&t),r=(e>>16)+(t>>16)+(n>>16);return r<<16|65535&n}function s(e){var t,n="";for(t=0;3>=t;t++)n+=v.charAt(e>>8*t+4&15)+v.charAt(e>>8*t&15);return n}function u(e){var t,n=(e.length+8>>6)+1,r=new Array(16*n);for(t=0;16*n>t;t++)r[t]=0;for(t=0;t<e.length;t++)r[t>>2]|=e.charCodeAt(t)<<(8*e.length+t)%4*8;r[t>>2]|=128<<(8*e.length+t)%4*8;var o=8*e.length;return r[16*n-2]=255&o,r[16*n-2]|=(o>>>8&255)<<8,r[16*n-2]|=(o>>>16&255)<<16,r[16*n-2]|=(o>>>24&255)<<24,r}function a(e,t){return e<<t|e>>>32-t}function c(e,t,n,r,o,i){return l(a(l(l(t,e),l(r,i)),o),n)}function f(e,t,n,o,l,s,u){return c(r(i(t,n),i(~t,o)),e,t,l,s,u)}function p(e,t,n,o,l,s,u){return c(r(i(t,o),i(n,~o)),e,t,l,s,u)}function d(e,t,n,r,i,l,s){return c(o(o(t,n),r),e,t,i,l,s)}function g(e,t,n,i,l,s,u){return c(o(n,r(t,~i)),e,t,l,s,u)}e.exports=n;var v="0123456789abcdef"},function(e,t){"use strict";function n(e,t,n,r,o){var i=0,l="";if(e.length<t)return e;for(var s=0,u=e.length;u>s;s++)if(l=e.charAt(s),-1!==r.indexOf(l)&&(i=s),!(t>s))return 0===i?o?e.substring(0,t-1)+n:"":e.substring(0,i)+n;return e}var r={ellipse:"…",chars:[" ","-"],max:140,truncate:!0};e.exports=function(e,t,o){if("string"!=typeof e||0===e.length)return"";if(0===t)return"";o=o||{};for(var i in r)(null===o[i]||"undefined"==typeof o[i])&&(o[i]=r[i]);return o.max=t||o.max,n(e,o.max,o.ellipse,o.chars,o.truncate)}},function(e,t){var n=function(){"use strict";function e(t,n,r,o){function l(t,r){if(null===t)return null;if(0==r)return t;var s,f;if("object"!=typeof t)return t;if(e.__isArray(t))s=[];else if(e.__isRegExp(t))s=new RegExp(t.source,i(t)),t.lastIndex&&(s.lastIndex=t.lastIndex);else if(e.__isDate(t))s=new Date(t.getTime());else{if(c&&Buffer.isBuffer(t))return s=new Buffer(t.length),t.copy(s),s;"undefined"==typeof o?(f=Object.getPrototypeOf(t),s=Object.create(f)):(s=Object.create(o),f=o)}if(n){var p=u.indexOf(t);if(-1!=p)return a[p];u.push(t),a.push(s)}for(var d in t){var g;f&&(g=Object.getOwnPropertyDescriptor(f,d)),g&&null==g.set||(s[d]=l(t[d],r-1))}return s}var s;"object"==typeof n&&(r=n.depth,o=n.prototype,s=n.filter,n=n.circular);var u=[],a=[],c="undefined"!=typeof Buffer;return"undefined"==typeof n&&(n=!0),"undefined"==typeof r&&(r=1/0),l(t,r)}function t(e){return Object.prototype.toString.call(e)}function n(e){return"object"==typeof e&&"[object Date]"===t(e)}function r(e){return"object"==typeof e&&"[object Array]"===t(e)}function o(e){return"object"==typeof e&&"[object RegExp]"===t(e)}function i(e){var t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),t}return e.clonePrototype=function(e){if(null===e)return null;var t=function(){};return t.prototype=e,new t},e.__objToStr=t,e.__isDate=n,e.__isArray=r,e.__isRegExp=o,e.__getRegExpFlags=i,e}();"object"==typeof e&&e.exports&&(e.exports=n)},function(e,t,n){var r,o;(function(){function n(e){function t(t,n,r,o,i,l){for(;i>=0&&l>i;i+=e){var s=o?o[i]:i;r=n(r,t[s],s,t)}return r}return function(n,r,o,i){r=E(r,i,4);var l=!M(n)&&x.keys(n),s=(l||n).length,u=e>0?0:s-1;return arguments.length<3&&(o=n[l?l[u]:u],u+=e),t(n,r,o,l,u,s)}}function i(e){return function(t,n,r){n=k(n,r);for(var o=j(t),i=e>0?0:o-1;i>=0&&o>i;i+=e)if(n(t[i],i,t))return i;return-1}}function l(e,t,n){return function(r,o,i){var l=0,s=j(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(n&&i&&s)return i=n(r,o),r[i]===o?i:-1;if(o!==o)return i=t(g.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,t){var n=F.length,r=e.constructor,o=x.isFunction(r)&&r.prototype||f,i="constructor";for(x.has(e,i)&&!x.contains(t,i)&&t.push(i);n--;)i=F[n],i in e&&e[i]!==o[i]&&!x.contains(t,i)&&t.push(i)}var u=this,a=u._,c=Array.prototype,f=Object.prototype,p=Function.prototype,d=c.push,g=c.slice,v=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&&(t=e.exports=x),t._=x,x.VERSION="1.8.3";var E=function(e,t,n){if(void 0===t)return e;switch(null==n?3:n){case 1:return function(n){return e.call(t,n)};case 2:return function(n,r){return e.call(t,n,r)};case 3:return function(n,r,o){return e.call(t,n,r,o)};case 4:return function(n,r,o,i){return e.call(t,n,r,o,i)}}return function(){return e.apply(t,arguments)}},k=function(e,t,n){return null==e?x.identity:x.isFunction(e)?E(e,t,n):x.isObject(e)?x.matcher(e):x.property(e)};x.iteratee=function(e,t){return k(e,t,1/0)};var V=function(e,t){return function(n){var r=arguments.length;if(2>r||null==n)return n;for(var o=1;r>o;o++)for(var i=arguments[o],l=e(i),s=l.length,u=0;s>u;u++){var a=l[u];t&&void 0!==n[a]||(n[a]=i[a])}return n}},S=function(e){if(!x.isObject(e))return{};if(w)return w(e);b.prototype=e;var t=new b;return b.prototype=null,t},$=function(e){return function(t){return null==t?void 0:t[e]}},I=Math.pow(2,53)-1,j=$("length"),M=function(e){var t=j(e);return"number"==typeof t&&t>=0&&I>=t};x.each=x.forEach=function(e,t,n){t=E(t,n);var r,o;if(M(e))for(r=0,o=e.length;o>r;r++)t(e[r],r,e);else{var i=x.keys(e);for(r=0,o=i.length;o>r;r++)t(e[i[r]],i[r],e)}return e},x.map=x.collect=function(e,t,n){t=k(t,n);for(var r=!M(e)&&x.keys(e),o=(r||e).length,i=Array(o),l=0;o>l;l++){var s=r?r[l]:l;i[l]=t(e[s],s,e)}return i},x.reduce=x.foldl=x.inject=n(1),x.reduceRight=x.foldr=n(-1),x.find=x.detect=function(e,t,n){var r;return r=M(e)?x.findIndex(e,t,n):x.findKey(e,t,n),void 0!==r&&-1!==r?e[r]:void 0},x.filter=x.select=function(e,t,n){var r=[];return t=k(t,n),x.each(e,function(e,n,o){t(e,n,o)&&r.push(e)}),r},x.reject=function(e,t,n){return x.filter(e,x.negate(k(t)),n)},x.every=x.all=function(e,t,n){t=k(t,n);for(var r=!M(e)&&x.keys(e),o=(r||e).length,i=0;o>i;i++){var l=r?r[i]:i;if(!t(e[l],l,e))return!1}return!0},x.some=x.any=function(e,t,n){t=k(t,n);for(var r=!M(e)&&x.keys(e),o=(r||e).length,i=0;o>i;i++){var l=r?r[i]:i;if(t(e[l],l,e))return!0}return!1},x.contains=x.includes=x.include=function(e,t,n,r){return M(e)||(e=x.values(e)),("number"!=typeof n||r)&&(n=0),x.indexOf(e,t,n)>=0},x.invoke=function(e,t){var n=g.call(arguments,2),r=x.isFunction(t);return x.map(e,function(e){var o=r?t:e[t];return null==o?o:o.apply(e,n)})},x.pluck=function(e,t){return x.map(e,x.property(t))},x.where=function(e,t){return x.filter(e,x.matcher(t))},x.findWhere=function(e,t){return x.find(e,x.matcher(t))},x.max=function(e,t,n){var r,o,i=-(1/0),l=-(1/0);if(null==t&&null!=e){e=M(e)?e:x.values(e);for(var s=0,u=e.length;u>s;s++)r=e[s],r>i&&(i=r)}else t=k(t,n),x.each(e,function(e,n,r){o=t(e,n,r),(o>l||o===-(1/0)&&i===-(1/0))&&(i=e,l=o)});return i},x.min=function(e,t,n){var r,o,i=1/0,l=1/0;if(null==t&&null!=e){e=M(e)?e:x.values(e);for(var s=0,u=e.length;u>s;s++)r=e[s],i>r&&(i=r)}else t=k(t,n),x.each(e,function(e,n,r){o=t(e,n,r),(l>o||o===1/0&&i===1/0)&&(i=e,l=o)});return i},x.shuffle=function(e){for(var t,n=M(e)?e:x.values(e),r=n.length,o=Array(r),i=0;r>i;i++)t=x.random(0,i),t!==i&&(o[i]=o[t]),o[t]=n[i];return o},x.sample=function(e,t,n){return null==t||n?(M(e)||(e=x.values(e)),e[x.random(e.length-1)]):x.shuffle(e).slice(0,Math.max(0,t))},x.sortBy=function(e,t,n){return t=k(t,n),x.pluck(x.map(e,function(e,n,r){return{value:e,index:n,criteria:t(e,n,r)}}).sort(function(e,t){var n=e.criteria,r=t.criteria;if(n!==r){if(n>r||void 0===n)return 1;if(r>n||void 0===r)return-1}return e.index-t.index}),"value")};var O=function(e){return function(t,n,r){var o={};return n=k(n,r),x.each(t,function(r,i){var l=n(r,i,t);e(o,r,l)}),o}};x.groupBy=O(function(e,t,n){x.has(e,n)?e[n].push(t):e[n]=[t]}),x.indexBy=O(function(e,t,n){e[n]=t}),x.countBy=O(function(e,t,n){x.has(e,n)?e[n]++:e[n]=1}),x.toArray=function(e){return e?x.isArray(e)?g.call(e):M(e)?x.map(e,x.identity):x.values(e):[]},x.size=function(e){return null==e?0:M(e)?e.length:x.keys(e).length},x.partition=function(e,t,n){t=k(t,n);var r=[],o=[];return x.each(e,function(e,n,i){(t(e,n,i)?r:o).push(e)}),[r,o]},x.first=x.head=x.take=function(e,t,n){return null==e?void 0:null==t||n?e[0]:x.initial(e,e.length-t)},x.initial=function(e,t,n){return g.call(e,0,Math.max(0,e.length-(null==t||n?1:t)))},x.last=function(e,t,n){return null==e?void 0:null==t||n?e[e.length-1]:x.rest(e,Math.max(0,e.length-t))},x.rest=x.tail=x.drop=function(e,t,n){return g.call(e,null==t||n?1:t)},x.compact=function(e){return x.filter(e,x.identity)};var C=function(e,t,n,r){for(var o=[],i=0,l=r||0,s=j(e);s>l;l++){var u=e[l];if(M(u)&&(x.isArray(u)||x.isArguments(u))){t||(u=C(u,t,n));var a=0,c=u.length;for(o.length+=c;c>a;)o[i++]=u[a++]}else n||(o[i++]=u)}return o};x.flatten=function(e,t){return C(e,t,!1)},x.without=function(e){return x.difference(e,g.call(arguments,1))},x.uniq=x.unique=function(e,t,n,r){x.isBoolean(t)||(r=n,n=t,t=!1),null!=n&&(n=k(n,r));for(var o=[],i=[],l=0,s=j(e);s>l;l++){var u=e[l],a=n?n(u,l,e):u;t?(l&&i===a||o.push(u),i=a):n?x.contains(i,a)||(i.push(a),o.push(u)):x.contains(o,u)||o.push(u)}return o},x.union=function(){return x.uniq(C(arguments,!0,!0))},x.intersection=function(e){for(var t=[],n=arguments.length,r=0,o=j(e);o>r;r++){var i=e[r];if(!x.contains(t,i)){for(var l=1;n>l&&x.contains(arguments[l],i);l++);l===n&&t.push(i)}}return t},x.difference=function(e){var t=C(arguments,!0,!0,1);return x.filter(e,function(e){return!x.contains(t,e)})},x.zip=function(){return x.unzip(arguments)},x.unzip=function(e){for(var t=e&&x.max(e,j).length||0,n=Array(t),r=0;t>r;r++)n[r]=x.pluck(e,r);return n},x.object=function(e,t){for(var n={},r=0,o=j(e);o>r;r++)t?n[e[r]]=t[r]:n[e[r][0]]=e[r][1];return n},x.findIndex=i(1),x.findLastIndex=i(-1),x.sortedIndex=function(e,t,n,r){n=k(n,r,1);for(var o=n(t),i=0,l=j(e);l>i;){var s=Math.floor((i+l)/2);n(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,t,n){null==t&&(t=e||0,e=0),n=n||1;for(var r=Math.max(Math.ceil((t-e)/n),0),o=Array(r),i=0;r>i;i++,e+=n)o[i]=e;return o};var L=function(e,t,n,r,o){if(!(r instanceof t))return e.apply(n,o);var i=S(e.prototype),l=e.apply(i,o);return x.isObject(l)?l:i};x.bind=function(e,t){if(_&&e.bind===_)return _.apply(e,g.call(arguments,1));if(!x.isFunction(e))throw new TypeError("Bind must be called on a function");var n=g.call(arguments,2),r=function(){return L(e,r,t,this,n.concat(g.call(arguments)))};return r},x.partial=function(e){var t=g.call(arguments,1),n=function(){for(var r=0,o=t.length,i=Array(o),l=0;o>l;l++)i[l]=t[l]===x?arguments[r++]:t[l];for(;r<arguments.length;)i.push(arguments[r++]);return L(e,n,this,this,i)};return n},x.bindAll=function(e){var t,n,r=arguments.length;if(1>=r)throw new Error("bindAll must be passed function names");for(t=1;r>t;t++)n=arguments[t],e[n]=x.bind(e[n],e);return e},x.memoize=function(e,t){var n=function(r){var o=n.cache,i=""+(t?t.apply(this,arguments):r);return x.has(o,i)||(o[i]=e.apply(this,arguments)),o[i]};return n.cache={},n},x.delay=function(e,t){var n=g.call(arguments,2);return setTimeout(function(){return e.apply(null,n)},t)},x.defer=x.partial(x.delay,x,1),x.throttle=function(e,t,n){var r,o,i,l=null,s=0;n||(n={});var u=function(){s=n.leading===!1?0:x.now(),l=null,i=e.apply(r,o),l||(r=o=null)};return function(){var a=x.now();s||n.leading!==!1||(s=a);var c=t-(a-s);return r=this,o=arguments,0>=c||c>t?(l&&(clearTimeout(l),l=null),s=a,i=e.apply(r,o),l||(r=o=null)):l||n.trailing===!1||(l=setTimeout(u,c)),i}},x.debounce=function(e,t,n){var r,o,i,l,s,u=function(){var a=x.now()-l;t>a&&a>=0?r=setTimeout(u,t-a):(r=null,n||(s=e.apply(i,o),r||(i=o=null)))};return function(){i=this,o=arguments,l=x.now();var a=n&&!r;return r||(r=setTimeout(u,t)),a&&(s=e.apply(i,o),i=o=null),s}},x.wrap=function(e,t){return x.partial(t,e)},x.negate=function(e){return function(){return!e.apply(this,arguments)}},x.compose=function(){var e=arguments,t=e.length-1;return function(){for(var n=t,r=e[t].apply(this,arguments);n--;)r=e[n].call(this,r);return r}},x.after=function(e,t){return function(){return--e<1?t.apply(this,arguments):void 0}},x.before=function(e,t){var n;return function(){return--e>0&&(n=t.apply(this,arguments)),1>=e&&(t=null),n}},x.once=x.partial(x.before,2);var A=!{toString:null}.propertyIsEnumerable("toString"),F=["valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"];x.keys=function(e){if(!x.isObject(e))return[];if(y)return y(e);var t=[];for(var n in e)x.has(e,n)&&t.push(n);return A&&s(e,t),t},x.allKeys=function(e){if(!x.isObject(e))return[];var t=[];for(var n in e)t.push(n);return A&&s(e,t),t},x.values=function(e){for(var t=x.keys(e),n=t.length,r=Array(n),o=0;n>o;o++)r[o]=e[t[o]];return r},x.mapObject=function(e,t,n){t=k(t,n);for(var r,o=x.keys(e),i=o.length,l={},s=0;i>s;s++)r=o[s],l[r]=t(e[r],r,e);return l},x.pairs=function(e){for(var t=x.keys(e),n=t.length,r=Array(n),o=0;n>o;o++)r[o]=[t[o],e[t[o]]];return r},x.invert=function(e){for(var t={},n=x.keys(e),r=0,o=n.length;o>r;r++)t[e[n[r]]]=n[r];return t},x.functions=x.methods=function(e){var t=[];for(var n in e)x.isFunction(e[n])&&t.push(n);return t.sort()},x.extend=V(x.allKeys),x.extendOwn=x.assign=V(x.keys),x.findKey=function(e,t,n){t=k(t,n);for(var r,o=x.keys(e),i=0,l=o.length;l>i;i++)if(r=o[i],t(e[r],r,e))return r},x.pick=function(e,t,n){var r,o,i={},l=e;if(null==l)return i;x.isFunction(t)?(o=x.allKeys(l),r=E(t,n)):(o=C(arguments,!1,!1,1),r=function(e,t,n){return t in n},l=Object(l));for(var s=0,u=o.length;u>s;s++){var a=o[s],c=l[a];r(c,a,l)&&(i[a]=c)}return i},x.omit=function(e,t,n){if(x.isFunction(t))t=x.negate(t);else{var r=x.map(C(arguments,!1,!1,1),String);t=function(e,t){return!x.contains(r,t)}}return x.pick(e,t,n)},x.defaults=V(x.allKeys,!0),x.create=function(e,t){var n=S(e);return t&&x.extendOwn(n,t),n},x.clone=function(e){return x.isObject(e)?x.isArray(e)?e.slice():x.extend({},e):e},x.tap=function(e,t){return t(e),e},x.isMatch=function(e,t){var n=x.keys(t),r=n.length;if(null==e)return!r;for(var o=Object(e),i=0;r>i;i++){var l=n[i];if(t[l]!==o[l]||!(l in o))return!1}return!0};var T=function(e,t,n,r){if(e===t)return 0!==e||1/e===1/t;if(null==e||null==t)return e===t;e instanceof x&&(e=e._wrapped),t instanceof x&&(t=t._wrapped);var o=v.call(e);if(o!==v.call(t))return!1;switch(o){case"[object RegExp]":case"[object String]":return""+e==""+t;case"[object Number]":return+e!==+e?+t!==+t:0===+e?1/+e===1/t:+e===+t;case"[object Date]":case"[object Boolean]":return+e===+t}var i="[object Array]"===o;if(!i){if("object"!=typeof e||"object"!=typeof t)return!1;var l=e.constructor,s=t.constructor;if(l!==s&&!(x.isFunction(l)&&l instanceof l&&x.isFunction(s)&&s instanceof s)&&"constructor"in e&&"constructor"in t)return!1}n=n||[],r=r||[];for(var u=n.length;u--;)if(n[u]===e)return r[u]===t;if(n.push(e),r.push(t),i){if(u=e.length,u!==t.length)return!1;for(;u--;)if(!T(e[u],t[u],n,r))return!1}else{var a,c=x.keys(e);if(u=c.length,x.keys(t).length!==u)return!1;for(;u--;)if(a=c[u],!x.has(t,a)||!T(e[a],t[a],n,r))return!1}return n.pop(),r.pop(),!0};x.isEqual=function(e,t){return T(e,t)},x.isEmpty=function(e){return null==e?!0:M(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]"===v.call(e)},x.isObject=function(e){var t=typeof e;return"function"===t||"object"===t&&!!e},x.each(["Arguments","Function","String","Number","Date","RegExp","Error"],function(e){x["is"+e]=function(t){return v.call(t)==="[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]"===v.call(e)},x.isNull=function(e){return null===e},x.isUndefined=function(e){return void 0===e},x.has=function(e,t){return null!=e&&h.call(e,t)},x.noConflict=function(){return u._=a,this},x.identity=function(e){return e},x.constant=function(e){return function(){return e}},x.noop=function(){},x.property=$,x.propertyOf=function(e){return null==e?function(){}:function(t){return e[t]}},x.matcher=x.matches=function(e){return e=x.extendOwn({},e),function(t){return x.isMatch(t,e)}},x.times=function(e,t,n){var r=Array(Math.max(0,e));t=E(t,n,1);for(var o=0;e>o;o++)r[o]=t(o);return r},x.random=function(e,t){return null==t&&(t=e,e=0),e+Math.floor(Math.random()*(t-e+1))},x.now=Date.now||function(){return(new Date).getTime()};var N={"&":"&","<":"<",">":">",'"':""","'":"'","`":"`"},R=x.invert(N),z=function(e){var t=function(t){return e[t]},n="(?:"+x.keys(e).join("|")+")",r=RegExp(n),o=RegExp(n,"g");return function(e){return e=null==e?"":""+e,r.test(e)?e.replace(o,t):e}};x.escape=z(N),x.unescape=z(R),x.result=function(e,t,n){var r=null==e?void 0:e[t];return void 0===r&&(r=n),x.isFunction(r)?r.call(e):r};var D=0;x.uniqueId=function(e){var t=++D+"";return e?e+t:t},x.templateSettings={evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,escape:/<%-([\s\S]+?)%>/g};var B=/(.)^/,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,t,n){!t&&n&&(t=n),t=x.defaults({},t,x.templateSettings);var r=RegExp([(t.escape||B).source,(t.interpolate||B).source,(t.evaluate||B).source].join("|")+"|$","g"),o=0,i="__p+='";e.replace(r,function(t,n,r,l,s){return i+=e.slice(o,s).replace(P,W),o=s+t.length,n?i+="'+\n((__t=("+n+"))==null?'':_.escape(__t))+\n'":r?i+="'+\n((__t=("+r+"))==null?'':__t)+\n'":l&&(i+="';\n"+l+"\n__p+='"),t}),i+="';\n",t.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(t.variable||"obj","_",i)}catch(s){throw s.source=i,s}var u=function(e){return l.call(this,e,x)},a=t.variable||"obj";return u.source="function("+a+"){\n"+i+"}",u},x.chain=function(e){var t=x(e);return t._chain=!0,t};var K=function(e,t){return e._chain?x(t).chain():t};x.mixin=function(e){x.each(x.functions(e),function(t){var n=x[t]=e[t];x.prototype[t]=function(){var e=[this._wrapped];return d.apply(e,arguments),K(this,n.apply(x,e))}})},x.mixin(x),x.each(["pop","push","reverse","shift","sort","splice","unshift"],function(e){var t=c[e];x.prototype[e]=function(){var n=this._wrapped;return t.apply(n,arguments),"shift"!==e&&"splice"!==e||0!==n.length||delete n[0],K(this,n)}}),x.each(["concat","join","slice"],function(e){var t=c[e];x.prototype[e]=function(){return K(this,t.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(t,r),!(void 0!==o&&(e.exports=o))}).call(this)}]),function(e){function t(r){if(n[r])return n[r].exports;var o=n[r]={exports:{},id:r,loaded:!1};return e[r].call(o.exports,o,o.exports,t),o.loaded=!0,o.exports}var n={};return t.m=e,t.c=n,t.p="",t(0)}([function(t,n,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(t,n){!function(){e.file("lib/createFilterer.js",function(e){function n(e,t){t||(t={});var n={};return function(o){var i;if(!n[o])for(var l=o.length-1;l>0;l-=1)if(i=o.substr(0,l),n[i]){n[o]=r(n[i],o,t);break}return n[o]||(n[o]=r(e,o,t)),n[o]}}function r(e,t,n){return u(e).reduce(function(u,a){var c,f=e[a];return i(f)?(o(t,a,n)||o(t,f,n))&&(u[a]=f):o(t,a,n)?u[a]=f:(c=r(f,t,n),isEmpty(c)||s(u,l(a,c))),u},{})}function o(e,t,n){return n.ignoreCase?(e=String(e).toLowerCase(),t&&-1!==String(t).toLowerCase().indexOf(e)):t&&-1!==String(t).indexOf(e)}function i(e){var t=getType(e);return"Object"!==t&&"Array"!==t}function l(e,t){var n={};return n[e]=t,n}Object.defineProperty(e,"__esModule",{value:!0}),e["default"]=n;var s=Object.assign,u=Object.keys;t.exports=e["default"]})}()},function(t,n){!function(){e.file("lib/getType.js",function(e){function n(e){return Object.prototype.toString.call(e).slice(8,-1)}Object.defineProperty(e,"__esModule",{value:!0}),e["default"]=n,t.exports=e["default"]})}()},function(t,n){!function(){e.file("lib/lens.js",function(e){function n(e,t){var i=t.split(o),l=i.shift();if(!l)return e;var s=getType(e);return"Array"===s&&e[r(l)]?n(e[r(l)],i.join(o)):"Object"===s&&e[l]?n(e[l],i.join(o)):void 0}function r(e){return parseInt(e,10)}Object.defineProperty(e,"__esModule",{value:!0}),e["default"]=n;var o=".";t.exports=e["default"]})}()},function(t,n){!function(){e.file("lib/uid.js",function(e){function n(){return r++}Object.defineProperty(e,"__esModule",{value:!0}),e["default"]=n;var r=Math.ceil(10*Math.random());t.exports=e["default"]})}()}]),!function(){e.file("main.js",function(t){function n(e){return e&&e.__esModule?e:{"default":e}}var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o=require("mouse-event-offset"),i=n(o);e.staticStyles("Main",{$:"#_flintdevtools .ViewMain"},{$:{position:"fixed",top:0,left:0,right:0,bottom:0,zIndex:2147483647}}),e.view("Main",function(t,n,r){var o=window.__isDevingDevTools,i=o||"?inspect"==window.location.search;t.render(function(){return t.el(["link",1],{rel:"stylesheet",property:"stylesheet",href:"/__/tools/static/tools.css"})}),t.render(function(){return e.iff(!o)&&t.el(["link",2],{"if":!o,rel:"stylesheet",property:"stylesheet",href:"/__/tools/styles.css"})}),t.render(function(){return t.el(["Errors",1],null)}),t.render(function(){return t.el(["Installer",1],null)}),t.render(function(){return e.iff(i)&&t.el(["Inspector",1],{"if":i})}),t.render(function(){return e.iff(o)&&t.el(["Name",1],{"if":o})}),t.render(function(){return e.iff(o)&&t.el(["Counter",1],{"if":o})}),t.render(function(){return e.iff(o)&&t.el(["Circles",1],{"if":o})}),r.$=function(e){return{pointerEvents:o?"auto":"none"}}}),e.view("Counter",function(e,t,n){var r=e.get("count",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,t,n){var r=e.get("person",{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,t,n){var r=e.get("first","nick"),o=e.get("last","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(t){e.set("first",r=t.target.value)}})}),e.render(function(){return e.el(["input",2],{__flintValue:o,__flintOnChange:function(t){e.set("last",o=t.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(t,n,r){function o(e){t.set("coords",l.push((0,i["default"])(e)),l,!0)}var l=t.get("coords",[[200,200]]);t.render(function(){return t.el(["circles",1],{onClick:o},e.range(l).map(function(e,n){return t.el(["Circle",1,n],{repeat:l,left:e[0],top:e[1]})}))}),r.circles=function(e){return{}}}),e.view("Circle",function(e,t,n){var o=e.get("c",function(){return Math.round(255*Math.random())}),i=e.get("base",{background:[o(),o(),o()],position:"absolute",top:e.props.top,left:e.props.left,width:118,height:29,borderRadius:27}),l=e.get("style",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(t){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,t,n){e.render(function(){return e.el(["close",1],{onClick:e.props.onClick},"x")}),n.$=function(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(t){var n=function(e,t){return e+t},r=300,o=800,i=5e3,l=1e4,s=1e3;e.view("Debounce",function(e,t,u){var a=e.get("showKey",void 0),c=e.get("timeout",void 0),f=e.get("lastTime",void 0),p=e.get("delay",void 0),d=e.get("curDelay",void 0),g=e.get("avgDiff",void 0),v=e.get("isAutoSaving",!1),h=e.get("lastFew",[]);e.pause(),t.props(function(){function t(){e.props.onUpdate&&e.props.onUpdate(),e.update()}if(!e.props.showKey||e.props.showKey!=a){e.set("showKey",a=e.props.showKey),e.set("delay",p=e.props.delay||r),e.set("curDelay",d=d||p);var u=Date.now(),m=f?u-f:i;if(e.set("lastTime",f=u),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",g=h.reduce(n,0)/h.length),e.set("isAutoSaving",v=s>g),e.set("curDelay",d=v?o:p)),e.props.force)return t();clearTimeout(c),e.set("timeout",c=setTimeout(t,d))}})})})}(),!function(){e.file("errors.js",function(t){var n=window._DT,r=function(e,t){return[e.substring(0,t),e.substring(t,t+1),e.substring(t+1)]},o=function(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 t=e.message.match(/(fs|path)/);t&&t.length&&(e.file="imported module:",e.message="Cannot import node-only module: "+t[0])}else e.message="Error in a locally required file. "+e.message;return e.message&&(e.niceMessage=e.message.replace(/Uncaught .*Error:\s*/,"")),e},i=function(e){var t=e.msg,n=e.name;return t&&(t=t.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:t,name:n}},l=function(e){return u(f(p(e)))},s=function(e){return e?e.replace(/.*\.js\:/,"").replace(/\([0-9]+\:[0-9]+\)/,"").replace(/Line [0-9]+\:\s*/,""):""},u=function(e){return e.niceMessage=s(e.message,e.fileName),e},a=/\>?\s*([0-9]*)\s*\|(.*)/g,c=/\s*\|\s*\^\s*$/g,f=function(e){return e?(e.stack&&!function(){e.fullStack=["","",""];var t=0;e.stack.split("\n").forEach(function(n){if(!c.test(n)&&a.test(n)){var r=">"===n[0];r&&(t=1),r||1!==t||(t=2);var o=n.replace(a,"$1$2").replace(/^(\s*[0-9]+\s*)[;]/,"$1 ");e.fullStack[t]+=o+"\n"}})}(),e):void 0},p=function(e){return e?(e.stack&&e.stack.split("\n").map(function(t){if(">"===t[0]){var n=t;if(!n)return;n=n.replace(/\>\s*[0-9]+\s*\|\s*/,""),n=s(n);var o=e.loc.column-4;e.niceStack=r(n,o)}}),e):void 0};e.view("Errors",function(e,t,r){function s(){c?e.set("error",a=l(c)):f?e.set("error",a=o(f)):e.set("error",a=null),e.update()}function u(){e.set("error",a=null),e.set("compileError",c=null),e.set("runtimeError",f=null),e.set("npmError",p=null),e.update()}e.pause();var a=e.get("error",null),c=e.get("compileError",null),f=e.get("runtimeError",null),p=e.get("npmError",null);n.on("compile:error",function(){e.set("compileError",c=n.data.error),s()}),n.on("runtime:error",function(){e.set("runtimeError",f=n.data),s()}),n.on("npm:error",function(){e.set("npmError",p=i(n.data.error)),e.update()}),n.on("runtime:success",function(){e.set("runtimeError",f=null),e.set("npmError",p=null),s()}),n.on("compile:success",function(){e.set("compileError",c=null), | ||
e.set("npmError",p=null),s()}),e.render(function(){return e.el(["ErrorMessage",1],{error:a,npmError:p,close:u})})});var d=0,g=function(e){return e&&e.replace(/[\?\)].*/,"")},v=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",$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",$b:"#_flintdevtools b.ErrorMessage, #_flintdevtools .ErrorMessage.b, #_flintdevtools .ViewErrorMessage.b, #_flintdevtools .ErrorMessage > .b",$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",$boldline:"#_flintdevtools boldline.ErrorMessage, #_flintdevtools .ErrorMessage.boldline, #_flintdevtools .ViewErrorMessage.boldline, #_flintdevtools .ErrorMessage > .boldline"},{$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)"},$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"},$b:{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:{},$boldline:{whiteSpace:"pre",pointerEvents:"all",fontWeight:"bold"}}),e.view("ErrorMessage",function(t,n,r){function o(){setTimeout(function(){var e=document.getElementById("FLINTERROR");e&&t.set("errorDiv",e.className="active",e,!0)})}var i=t.get("error",void 0),l=t.get("npmError",void 0),s=t.get("fullStack",void 0),u=t.get("line",v(t.props.error)),a=t.get("clearDelay",void 0);n.props(function(){t.set("npmError",l=t.props.npmError),t.set("error",i=t.props.error),t.set("line",u=v(i)),t.set("fullStack",s=null),i&&t.set("clearDelay",a=n.delay(2500,function(){i&&t.set("fullStack",s=i.stack)}))}),t.render(function(){return t.el(["Debounce",1],{force:!i,showKey:s||i&&i.message,onUpdate:o},t.el(["bar",1],null,t.el(["Close",1],{onClick:t.props.close,size:35}),e.iff(l)&&t.el(["inner",1],{"if":l},t.el(["where",1],null,t.el(["b",1],null,l.name))," ",l.msg),e.iff(i)&&t.el(["inner",2],{"if":i},t.el(["top",1],null,t.el(["where",2],null,"In ",t.el(["b",2],null,g(i.file)),e.iff(u)&&t.el(["line",1],{"if":u},t.el(["span",1],null," line")," ",t.el(["b",3],null,u-d)))," ",t.el(["shortError",1],null,(i.niceMessage||i.message||"").trim(),e.iff(i.niceStack)&&t.el(["niceStack",1],{"if":i.niceStack},i.niceStack[0],t.el(["errCol",1],null,i.niceStack[1]),i.niceStack[2])),e.iff(i.help)&&t.el(["help",1],{"if":i.help},i.help)),e.iff(i.fullStack)&&t.el(["fullStack",1],{"if":i.fullStack},t.el(["ln",1],null,i.fullStack[0]),t.el(["ln",2],{className:"cur"},i.fullStack[1]),t.el(["ln",3],null,i.fullStack[2])))))});var c="#cd423e";r.bar=function(e){return{background:c,bottom:t.props.error?0:-100}},r.inner=function(e){return{}},r.top=function(e){return{}},r.where=function(e){return{}},r.line=function(e){return{}},r.b=function(e){return{}},r.shortError=function(e){return{}};var f={color:"rgba(255,255,255,0.85)",display:"inline",fontFamily:"Meslo, Menlo, Monaco, monospace",padding:[0,5]};r.niceStack=function(e){return f},r.cur=function(e){return{}},r.errCol=function(e){return{margin:-3}},r.fullStack=function(e){return[f,{maxHeight:s?600:0,padding:s?[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}]},r.ln=function(e){return{padding:[0,20]}},r.boldline=function(e){return{}}}),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,t,n){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"}))}),n.svg=function(e){return{margin:-4}}})})}(),!function(){e.file("inspector.js",function(t){function n(e){var t=e.getBoundingClientRect(),n=window.innerWidth,r=window.innerHeight,o=l(t.right-t.left),i=l(t.bottom-t.top),u=1;o>=n&&i>=r&&(u=.2),s.setAttribute("style","\n top: "+l(t.top)+"px;\n left: "+l(t.left)+"px;\n width: "+o+"px;\n height: "+i+"px;\n opacity: "+u+";\n ")}function r(){s.setAttribute("style","")}function o(e){if(!e||!e.getAttribute)return null;var t=e.__flintID;return t?(n(e),t):o(e.parentNode)}var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},l=Math.round,s=void 0;e.staticStyles("Inspector",{$:"#_flintdevtools .ViewInspector"},{$:{position:"fixed",top:0,right:0,padding:2}}),e.view("Inspector",function(t,n,l){function u(e){t.set("_Flint",_Flint.isInspecting=!0,_Flint,!0);var n=o(e);c(),f(n)?t.set("views",w=w.map(function(e){return e.path==n&&t.set("v",e.highlight=!0,e,!0),e})):t.set("views",w.unshift({path:n,highlight:!1,temp:!0}),w,!0),t.update()}function a(e){var n=e.target;t.set("lastTarget",x=n),_&&u(x)}function c(){t.set("views",w=w.filter(function(e){return!e.temp}).map(function(e){return i({},e,{highlight:!1})}))}function f(e){return w.filter(function(t){return t.path==e}).length>0}function p(){w.length&&removeView(w.length-1)}function d(e,r){r&&r.stopPropagation(),t.set("views",w=w.map(function(n){return n.path==e&&t.set("v",n.closing=!0,n,!0),n})),t.update(),n.delay(200,function(){t.set("views",w=w.filter(function(t){return e!=t.path})),t.update()})}function g(e){f(e)?t.set("views",w=w.map(function(n){return n.path==e&&t.set("v",n.temp=!0,n,!0),n})):t.set("views",w=w.concat([{temp:!1,highlight:!1,closing:!1,path:e}])),t.update()}function v(e){var t=o(e.target);return console.log("views are",JSON.stringify(w),"gluing",t),c(),g(t),!1}function h(){u(x),t.set("hudActive",_=!0),t.set("clickOff",b=n.click(window,v))}function m(){console.log("views hide() are",w),t.set("_Flint",_Flint.isInspecting=!1,_Flint,!0),t.set("hudActive",_=!1),r(),b(),c(),t.update(),console.log("views hide() after are",w)}function y(e,n){var r=n[1][0],o=_Flint.getCache[e][r],i=n[1][1];"number"==typeof o&&t.set("value",i=+i),_Flint.setCache(e,r,i),t.set("_Flint",_Flint.inspectorRefreshing=e,_Flint,!0),_Flint.getInitialStates[e](),_Flint.viewsAtPath[e].forceUpdate(),t.set("_Flint",_Flint.inspectorRefreshing=null,_Flint,!0),t.update()}t.pause();var _=t.get("hudActive",!1),w=t.get("views",[]),b=t.get("clickOff",void 0),x=(t.get("keys",{}),t.get("lastTarget",null)),E=t.get("hoverOff",void 0);n.mount(function(){s||(t.set("highlighter",s=document.createElement("div")),t.set("highlighter",s.className="_flintHighlighter",s,!0),document.body.appendChild(s))});var k=function(){t.set("hoverOff",E=n.mousemove(window,a))};k();var V=function(e){return function(t){return"Alt"===t.keyIdentifier&&e()}},S=function(e){return function(t){return 27===t.keyCode&&e()}};n.keydown(window,V(h)),n.keyup(window,V(m)),n.keyup(window,S(p)),t.render(function(){return t.el(["views",1],null,e.range(w).map(function(e,n){return t.el(["Inspector.View",1,n],i({repeat:w,key:e.path},e,{writeBack:y,onClose:function(t){return d(e.path,t)}}))}))}),l.$=function(e){return{}}})})}(),!function(){e.file("modal.js",function(t){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,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},$message:{fontFamily:"-apple-system, 'Helvetica Nueue', Helvetica, Arial, sans-serif"}}),e.view("Modal",function(t,n,r){function o(){return t.set("open",s=t.props.open),l&&!t.props.title?t.update():(t.set("title",l=t.props.title),t.set("children",i=t.props.children),void t.update())}t.pause();var i=t.get("children",void 0),l=t.get("title",void 0),s=t.get("open",void 0);n.props(o),t.render(function(){return t.el(["modal",1],null,t.el(["Close",1],{size:25}),e.iff(l)&&t.el(["title",1],{"if":l},l),e.iff(i)&&t.el(["message",1],{"if":i},i))}),r.$=function(e){return{top:s?0:-140,padding:[10,10]}},r.title=function(e){return{margin:[0,20]}},r.message=function(e){return{}}})})}(),!function(){e.file("inspector/highlighter.js",function(t){e.view("Highlighter",function(t,n,r){t.render(function(){return e.iff(!t.props.highlight||-1===t.props.string.indexOf(t.props.highlight))&&t.el(["name",1],{"if":!t.props.highlight||-1===t.props.string.indexOf(t.props.highlight)},t.props.string)}),t.render(function(){return e.iff(t.props.highlight)&&t.el(["span",1],{"if":t.props.highlight},e.range(t.props.string.split()).map(function(n,r){return t.el(["span",2,r],{repeat:t.props.string.split()},e.iff(r>0)&&t.el(["highlight",1,r],{"if":r>0},t.props.highlight),n)}))})})})}(),!function(){e.file("inspector/label.js",function(t){var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[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,t,r){var o=(e.get("input",null),e.get("focus",void 0)),i=e.get("newVal",void 0);t.props(function(){e.set("newVal",i=e.props.val)});var l=function(t){e.props.editable&&(e.set("focus",o=!0),t.stopPropagation(),t.target.select())},s=function(t){e.set("focus",o=!1)},u=function(t){e.set("newVal",i=t.target.value),"false"===i&&e.set("newVal",i=!1),"true"===i&&e.set("newVal",i=!0),e.props.onSet(i)},a=e.get("tabIndex",function(e){return e?{}:{tabIndex:5e3,disabled:!0}});e.render(function(){return e.el(["input",1],n({defaultValue:String(e.props.val),__flintValue:i,__flintOnChange:function(t){e.set("newVal",i=t.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:u},a(e.props.editable)))}),r.input=function(e){return{left:-1}},r.focus=function(e){return{}}})})}(),!function(){e.file("inspector/leaf.js",function(t){function n(e){return e&&e.__esModule?e:{"default":e}}var r=require("md5-o-matic"),o=n(r),i=require("./lib/getType"),l=n(i),s=require("ellipsize"),u=n(s),a=".root.",c=function(e,t){return-1!==e.indexOf(t)},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:{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},$children:{paddingLeft:10},$type:{opacity:.7,flexFlow:"row"}}),e.view("Leaf",function(t,n,r){function i(e){t.props.root||t.set("expanded",m=!m),t.update(),t.props.onClick&&t.props.onClick(d),e.stopPropagation()}t.pause();var s=t.get("rootPath",void 0),p=t.get("path",void 0),d=t.get("data",void 0),g=t.get("type",void 0),v=t.get("key",void 0),h=t.get("original",void 0),m=t.get("expanded",void 0),y=t.get("dataKeys",[]),_=(t.get("prefix",""),t.get("query","")),w=function(){return t.props.root||!_&&t.props.isExpanded(p,d)||!c(p,_)&&"function"==typeof t.props.getOriginal};n.props(function(){t.set("rootPath",s=t.props.prefix+"."+t.props.label),t.set("key",v=t.props.label.toString()),t.set("path",p=s.substr(a.length)),t.set("data",d=t.props.data),d&&t.set("dataKeys",y=Object.keys(d).sort()),void 0===d&&t.set("data",d=t.props.data),void 0===d&&t.set("data",d={}),t.set("type",g=(0,l["default"])(d)),t.set("query",_=t.props.query||""),t.props.root?t.set("expanded",m=!0):_&&t.set("expanded",m=!c(t.props.label,_)),t.props.query&&!_&&t.set("expanded",m=w()),t.update()});var b=function(e,t){return f(t)?e+":"+(0,o["default"])(String(e)):e+"["+(0,l["default"])(t)+"]"},x=function(e){return t.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,n,r,o){return t.el(["Label",1],{val:n,editable:o,onSet:function(e){return t.props.onSet([r,e])}})};t.render(function(){return t.el(["leaf",1],{className:s},e.iff(!t.props.root)&&t.el(["label",1],{"if":!t.props.root,htmlFor:t.props.id,onClick:i},t.el(["key",1],null,t.el(["name",1],null,x(v)),k("key",v,v,!1)),t.el(["colon",1],null,":"),e.iff("Function"==g)&&t.el(["expand",1],{className:"function","if":"Function"==g},t.el(["i",1],null,"fn (",E(d).join(", "),")")),e.iff("Array"==g)&&t.el(["expand",2],{"if":"Array"==g},t.el(["type",1],null,"Array[",d.length,"]")),e.iff("Object"==g)&&t.el(["expand",3],{"if":"Object"==g},t.el(["type",2],null,"{} "+y.length+" keys")),e.iff(-1==["Array","Object","Function"].indexOf(g))&&t.el(["value",1],{"if":-1==["Array","Object","Function"].indexOf(g),className:g.toLowerCase()},e.iff("string"==g.toLowerCase())&&t.el(["str",1],{"if":"string"==g.toLowerCase()},x((0,u["default"])(String(d),25))),e.iff("string"!=g.toLowerCase())&&t.el(["else",1],{"if":"string"!=g.toLowerCase()},x(String(d))),k("val",d,v,t.props.editable))),t.el(["children",1],null,e.iff(m&&!f(d))&&e.range(y).map(function(n,r){return t.el(["child",1,r],{"if":m&&!f(d),repeat:y},e.iff(-1==n.indexOf("__"))&&t.el(["Leaf",1,r],{"if":-1==n.indexOf("__"),key:b(n,d[n]),onSet:function(){for(var e,n=arguments.length,r=Array(n),o=0;n>o;o++)r[o]=arguments[o];return(e=t.props).onSet.apply(e,[v].concat(r))},data:d[n],editable:t.props.editable,label:n,prefix:s,onClick:t.props.onClick,id:t.props.id,query:_,getOriginal:h?null:t.props.getOriginal,isExpanded:t.props.isExpanded}))})))}),r.leaf=function(e){return{padding:[1,0]}};var V={flexFlow:"row"};r.label=function(e){return[V,{position:"relative",color:"rgba(0,0,0,0.8)",opacity:1,alignItems:"center"}]},r.helper=function(e){return{}},r["boolean"]=function(e){return{}},r.number=function(e){return{}},r.string=function(e){return{}},r.key=function(e){return[V,{color:"rgba(0,0,0,0.9)",margin:[0],fontWeight:"bold"}]},r["function"]=function(e){return{}},r.colon=function(e){return{}},r.name=function(e){return{margin:["auto",0]}},r.expand=function(e){return[V,{}]},r.value=function(e){return[V,{position:"relative",margin:[0,4]}]},r.children=function(e){return{}},r.type=function(e){return{margin:[1,0,0,8]}}})})}(),!function(){e.file("inspector/section.js",function(t){e.staticStyles("Inspector.Section",{$:"#_flintdevtools .ViewInspector-Section",$body:"#_flintdevtools body.Inspector-Section, #_flintdevtools .Inspector-Section.body, #_flintdevtools .ViewInspector-Section.body, #_flintdevtools .Inspector-Section > .body"},{$:{},$body:{}}),e.view("Inspector.Section",function(t,n,r){var o=t.get("open",!0);t.render(function(){return t.el(["Inspector.Title",1],{onToggle:function(e){return t.set("open",o=e)}},t.props.title)}),t.render(function(){return e.iff(o)&&t.el(["body",1],{"if":o},t.props.children)}),r.$=function(e){return{padding:[5,0]}},r.body=function(e){return{padding:[0,12]}}})})}(),!function(){e.file("inspector/title.js",function(t){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,color:"#999",flexFlow:"row"},$closed:{marginTop:1},$inner:{background:"#fff"}}),e.view("Inspector.Title",function(e,t,n){function r(){e.props.onToggle&&(e.set("open",o=!o),e.props.onToggle(o))}var o=e.get("open",!0);e.render(function(){return e.el(["title",1],{onClick:r},e.el(["inner",1],null,e.props.children))}),n.title=function(e){return{margin:[5,0,8]}},n.closed=function(e){return{transform:{scale:.8}}},n.inner=function(e){return{padding:[4,10],margin:[-2,"auto"]}}})})}(),!function(){e.file("inspector/tree.js",function(t){function n(e){return e&&e.__esModule?e:{"default":e}}var r=require("./lib/lens"),o=n(r);e.staticStyles("Tree",{$:"#_flintdevtools .ViewTree"},{$:{pointerEvents:"auto"}}),e.view("Tree",function(e,t,n){var r=e.get("query",""),i=function(t){return(0,o["default"])(e.props.data,t)};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 t=arguments.length,n=Array(t),r=0;t>r;r++)n[r]=arguments[r];return e.props.onSet(n)}})}),n.$=function(e){return{marginLeft:-10}}})})}(),!function(){e.file("inspector/view.js",function(t){function n(e){return e&&e.__esModule?e:{"default":e}}function r(e){var t=e.split(",");return t[t.length-1].split(".")[0]}function o(e){var t=["if","repeat","style","yield","__flint"];return s["default"].omit.apply(null,[e].concat(t))}var i=require("clone"),l=(n(i),require("underscore")),s=n(l);e.staticStyles("Inspector.View",{$view:"#_flintdevtools view.Inspector-View, #_flintdevtools .Inspector-View.view, #_flintdevtools .ViewInspector-View.view, #_flintdevtools .Inspector-View > .view",$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",$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,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},$active:{opacity:1},$highlight:{border:"2px solid #afb4e2"},$Close:{fontSize:16},$name:{fontWeight:400,color:"rgba(0,0,0,0.8)",fontSize:14},$expanded:{},$input:{borderRadius:100,border:"1px solid #ccc",width:"100%",color:"#333",fontSize:14},$title:{display:"none",color:"#333",fontWeight:200,fontSize:12},$props:{marginBottom:2}}),e.view("Inspector.View",function(t,n,i){function l(e){t.props.writeBack(a,e)}var s=window.Flint.inspect,u=t.get("name",void 0),a=t.get("path",void 0),c=t.get("closing",void 0),f=t.get("highlight",void 0),p=t.get("active",!1),d=t.get("state",{}),g=t.get("props",null),v=t.get("writeBack",null);n.delay(60,function(){t.set("active",p=!0)}),n.unmount(function(){delete window._Flint.inspector[t.props.path]}),n.props(function(){t.set("highlight",f=t.props.highlight),t.set("closing",c=t.props.closing),t.set("path",a=t.props.path),c===!0&&t.set("active",p=!1),a&&a&&(t.set("name",u=r(a)),s(a,function(e,n,r){t.set("props",g=o(e||{})),t.set("state",d=n||{}),t.set("writeBack",v=r),t.update()}))});var h=t.get("hasKeys",function(e){return e&&Object.keys(e).length>0});t.render(function(){return t.el(["view",1],{className:{active:p,highlight:f}},t.el(["Close",1],{onClick:t.props.onClose,fontSize:20,size:35}),t.el(["name",1],null,u),e.iff(!h(g))&&t.el(["Inspector.Title",1],{"if":!h(g)},"No Props"),e.iff(h(g))&&t.el(["Inspector.Section",1],{title:"Props","if":h(g),className:"props"},t.el(["Tree",1],{editable:!1,data:g})),e.iff(!h(d))&&t.el(["Inspector.Title",2],{"if":!h(d)},"No State"),e.iff(h(d))&&t.el(["Inspector.Section",2],{title:"State","if":h(d)},t.el(["Tree",2],{editable:!0,onSet:l,data:d})))}),i.view=function(e){return{padding:[0,0,1],transform:{x:20}}},i.active=function(e){return{transform:{x:0}}},i.highlight=function(e){return{}},i.Close=function(e){return{top:-5,right:-5}},i.name=function(e){return{padding:[8,8,0],margin:[0,0,-6]}},i.expanded=function(e){return{transform:{y:0}}},i.input=function(e){return{padding:[2,12]}},i.title=function(e){return{margin:[3,0]}},i.props=function(e){return{}}})})}(),!function(){e.file("npm/installer.js",function(t){var n=window._DT;e.view("Installer",function(t,r,o){var i=t.get("version",""),l=t.get("versions",[]),s=t.get("name",""),u=t.get("error",""),a=t.get("state",0);n.on("package:install",function(){t.set("state",a=1),t.set("name",s=n.data.name)}),n.on("package:installed",function(){t.set("state",a=2),setTimeout(function(){return t.set("state",a=0)},2e3)}),n.on("package:error",function(){t.set("state",a=3),t.set("name",s=n.data.name),t.set("error",u=n.data.error),setTimeout(function(){return t.set("state",a=0)},2e3)}),n.on("package:select",function(){t.set("state",a=4),t.set("versions",l=n.data.versions)});var c=function(e){t.set("version",i=e),t.set("tools",n.data.version=e,n,!0),n.emitter.emit("package:select"),t.set("state",a=1)},f=function(){return t.set("state",a=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 u;case 4:return t.el(["Versions",1],{versions:l,onSelect:c})}};t.render(function(){return t.el(["Modal",1],{open:a>0,onClose:f,title:p(a)},e.iff(!1)&&t.el(["InstallerLoading",1],{"if":!1}),d(a))})}),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",borderRadius:2},$inner:{flexFlow:"row"},$v:{flexGrow:1,fontWeight:"bold"},$info:{}}),e.view("Versions",function(t,n,r){t.render(function(){return e.range(t.props.versions).map(function(e,n){return t.el(["version",1,n],{repeat:t.props.versions,onClick:function(){return t.props.onSelect(e)}},t.el(["inner",1,n],null,t.el(["v",1,n],{key:"v"+n},e.version),t.el(["info",1,n],null,e.description),t.el(["a",1,n],{href:e.homepage,target:"_blank"},"Info")))})}),r.version=function(e){return{padding:[2,4]}},r.inner=function(e){return{}},r.v=function(e){return{":hover":{background:"#fff",cursor:"pointer"}}},r.info=function(e){return{}}})})}(),e.init()}(o)},"undefined"!=typeof module&&module.exports&&(module.exports=flintRun_tools); | ||
window.flintRun_tools=function(e,t,n){var r=t.Flint||runFlint,o=r(e,t,n);!function(e){!function(e){function t(r){if(n[r])return n[r].exports;var o=n[r]={exports:{},id:r,loaded:!1};return e[r].call(o.exports,o,o.exports,t),o.loaded=!0,o.exports}var n={};return t.m=e,t.c=n,t.p="",t(0)}([function(t,n,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,t){function n(e,t,n){t=t||e.currentTarget||e.srcElement,Array.isArray(n)||(n=[0,0]);var o=e.clientX||0,i=e.clientY||0,l=r(t);return n[0]=o-l.left,n[1]=i-l.top,n}function r(e){return e===window||e===document||e===document.body?o:e.getBoundingClientRect()}var o={left:0,top:0};e.exports=n},function(e,t){"use strict";function n(e){for(var t=u(e),n=1732584193,r=-271733879,o=-1732584194,i=271733878,a=0;a<t.length;a+=16){var c=n,v=r,h=o,m=i;n=f(n,r,o,i,t[a+0],7,-680876936),i=f(i,n,r,o,t[a+1],12,-389564586),o=f(o,i,n,r,t[a+2],17,606105819),r=f(r,o,i,n,t[a+3],22,-1044525330),n=f(n,r,o,i,t[a+4],7,-176418897),i=f(i,n,r,o,t[a+5],12,1200080426),o=f(o,i,n,r,t[a+6],17,-1473231341),r=f(r,o,i,n,t[a+7],22,-45705983),n=f(n,r,o,i,t[a+8],7,1770035416),i=f(i,n,r,o,t[a+9],12,-1958414417),o=f(o,i,n,r,t[a+10],17,-42063),r=f(r,o,i,n,t[a+11],22,-1990404162),n=f(n,r,o,i,t[a+12],7,1804603682),i=f(i,n,r,o,t[a+13],12,-40341101),o=f(o,i,n,r,t[a+14],17,-1502002290),r=f(r,o,i,n,t[a+15],22,1236535329),n=p(n,r,o,i,t[a+1],5,-165796510),i=p(i,n,r,o,t[a+6],9,-1069501632),o=p(o,i,n,r,t[a+11],14,643717713),r=p(r,o,i,n,t[a+0],20,-373897302),n=p(n,r,o,i,t[a+5],5,-701558691),i=p(i,n,r,o,t[a+10],9,38016083),o=p(o,i,n,r,t[a+15],14,-660478335),r=p(r,o,i,n,t[a+4],20,-405537848),n=p(n,r,o,i,t[a+9],5,568446438),i=p(i,n,r,o,t[a+14],9,-1019803690),o=p(o,i,n,r,t[a+3],14,-187363961),r=p(r,o,i,n,t[a+8],20,1163531501),n=p(n,r,o,i,t[a+13],5,-1444681467),i=p(i,n,r,o,t[a+2],9,-51403784),o=p(o,i,n,r,t[a+7],14,1735328473),r=p(r,o,i,n,t[a+12],20,-1926607734),n=d(n,r,o,i,t[a+5],4,-378558),i=d(i,n,r,o,t[a+8],11,-2022574463),o=d(o,i,n,r,t[a+11],16,1839030562),r=d(r,o,i,n,t[a+14],23,-35309556),n=d(n,r,o,i,t[a+1],4,-1530992060),i=d(i,n,r,o,t[a+4],11,1272893353),o=d(o,i,n,r,t[a+7],16,-155497632),r=d(r,o,i,n,t[a+10],23,-1094730640),n=d(n,r,o,i,t[a+13],4,681279174),i=d(i,n,r,o,t[a+0],11,-358537222),o=d(o,i,n,r,t[a+3],16,-722521979),r=d(r,o,i,n,t[a+6],23,76029189),n=d(n,r,o,i,t[a+9],4,-640364487),i=d(i,n,r,o,t[a+12],11,-421815835),o=d(o,i,n,r,t[a+15],16,530742520),r=d(r,o,i,n,t[a+2],23,-995338651),n=g(n,r,o,i,t[a+0],6,-198630844),i=g(i,n,r,o,t[a+7],10,1126891415),o=g(o,i,n,r,t[a+14],15,-1416354905),r=g(r,o,i,n,t[a+5],21,-57434055),n=g(n,r,o,i,t[a+12],6,1700485571),i=g(i,n,r,o,t[a+3],10,-1894986606),o=g(o,i,n,r,t[a+10],15,-1051523),r=g(r,o,i,n,t[a+1],21,-2054922799),n=g(n,r,o,i,t[a+8],6,1873313359),i=g(i,n,r,o,t[a+15],10,-30611744),o=g(o,i,n,r,t[a+6],15,-1560198380),r=g(r,o,i,n,t[a+13],21,1309151649),n=g(n,r,o,i,t[a+4],6,-145523070),i=g(i,n,r,o,t[a+11],10,-1120210379),o=g(o,i,n,r,t[a+2],15,718787259),r=g(r,o,i,n,t[a+9],21,-343485551),n=l(n,c),r=l(r,v),o=l(o,h),i=l(i,m)}return s(n)+s(r)+s(o)+s(i)}function r(e,t){var n=1&e|1&t,r=e>>>1|t>>>1;return r<<1|n}function o(e,t){var n=1&e^1&t,r=e>>>1^t>>>1;return r<<1|n}function i(e,t){var n=1&e&(1&t),r=e>>>1&t>>>1;return r<<1|n}function l(e,t){var n=(65535&e)+(65535&t),r=(e>>16)+(t>>16)+(n>>16);return r<<16|65535&n}function s(e){var t,n="";for(t=0;3>=t;t++)n+=v.charAt(e>>8*t+4&15)+v.charAt(e>>8*t&15);return n}function u(e){var t,n=(e.length+8>>6)+1,r=new Array(16*n);for(t=0;16*n>t;t++)r[t]=0;for(t=0;t<e.length;t++)r[t>>2]|=e.charCodeAt(t)<<(8*e.length+t)%4*8;r[t>>2]|=128<<(8*e.length+t)%4*8;var o=8*e.length;return r[16*n-2]=255&o,r[16*n-2]|=(o>>>8&255)<<8,r[16*n-2]|=(o>>>16&255)<<16,r[16*n-2]|=(o>>>24&255)<<24,r}function a(e,t){return e<<t|e>>>32-t}function c(e,t,n,r,o,i){return l(a(l(l(t,e),l(r,i)),o),n)}function f(e,t,n,o,l,s,u){return c(r(i(t,n),i(~t,o)),e,t,l,s,u)}function p(e,t,n,o,l,s,u){return c(r(i(t,o),i(n,~o)),e,t,l,s,u)}function d(e,t,n,r,i,l,s){return c(o(o(t,n),r),e,t,i,l,s)}function g(e,t,n,i,l,s,u){return c(o(n,r(t,~i)),e,t,l,s,u)}e.exports=n;var v="0123456789abcdef"},function(e,t){"use strict";function n(e,t,n,r,o){var i=0,l="";if(e.length<t)return e;for(var s=0,u=e.length;u>s;s++)if(l=e.charAt(s),-1!==r.indexOf(l)&&(i=s),!(t>s))return 0===i?o?e.substring(0,t-1)+n:"":e.substring(0,i)+n;return e}var r={ellipse:"…",chars:[" ","-"],max:140,truncate:!0};e.exports=function(e,t,o){if("string"!=typeof e||0===e.length)return"";if(0===t)return"";o=o||{};for(var i in r)(null===o[i]||"undefined"==typeof o[i])&&(o[i]=r[i]);return o.max=t||o.max,n(e,o.max,o.ellipse,o.chars,o.truncate)}},function(e,t){var n=function(){"use strict";function e(t,n,r,o){function l(t,r){if(null===t)return null;if(0==r)return t;var s,f;if("object"!=typeof t)return t;if(e.__isArray(t))s=[];else if(e.__isRegExp(t))s=new RegExp(t.source,i(t)),t.lastIndex&&(s.lastIndex=t.lastIndex);else if(e.__isDate(t))s=new Date(t.getTime());else{if(c&&Buffer.isBuffer(t))return s=new Buffer(t.length),t.copy(s),s;"undefined"==typeof o?(f=Object.getPrototypeOf(t),s=Object.create(f)):(s=Object.create(o),f=o)}if(n){var p=u.indexOf(t);if(-1!=p)return a[p];u.push(t),a.push(s)}for(var d in t){var g;f&&(g=Object.getOwnPropertyDescriptor(f,d)),g&&null==g.set||(s[d]=l(t[d],r-1))}return s}var s;"object"==typeof n&&(r=n.depth,o=n.prototype,s=n.filter,n=n.circular);var u=[],a=[],c="undefined"!=typeof Buffer;return"undefined"==typeof n&&(n=!0),"undefined"==typeof r&&(r=1/0),l(t,r)}function t(e){return Object.prototype.toString.call(e)}function n(e){return"object"==typeof e&&"[object Date]"===t(e)}function r(e){return"object"==typeof e&&"[object Array]"===t(e)}function o(e){return"object"==typeof e&&"[object RegExp]"===t(e)}function i(e){var t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),t}return e.clonePrototype=function(e){if(null===e)return null;var t=function(){};return t.prototype=e,new t},e.__objToStr=t,e.__isDate=n,e.__isArray=r,e.__isRegExp=o,e.__getRegExpFlags=i,e}();"object"==typeof e&&e.exports&&(e.exports=n)},function(e,t,n){var r,o;(function(){function n(e){function t(t,n,r,o,i,l){for(;i>=0&&l>i;i+=e){var s=o?o[i]:i;r=n(r,t[s],s,t)}return r}return function(n,r,o,i){r=E(r,i,4);var l=!M(n)&&x.keys(n),s=(l||n).length,u=e>0?0:s-1;return arguments.length<3&&(o=n[l?l[u]:u],u+=e),t(n,r,o,l,u,s)}}function i(e){return function(t,n,r){n=k(n,r);for(var o=j(t),i=e>0?0:o-1;i>=0&&o>i;i+=e)if(n(t[i],i,t))return i;return-1}}function l(e,t,n){return function(r,o,i){var l=0,s=j(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(n&&i&&s)return i=n(r,o),r[i]===o?i:-1;if(o!==o)return i=t(g.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,t){var n=F.length,r=e.constructor,o=x.isFunction(r)&&r.prototype||f,i="constructor";for(x.has(e,i)&&!x.contains(t,i)&&t.push(i);n--;)i=F[n],i in e&&e[i]!==o[i]&&!x.contains(t,i)&&t.push(i)}var u=this,a=u._,c=Array.prototype,f=Object.prototype,p=Function.prototype,d=c.push,g=c.slice,v=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&&(t=e.exports=x),t._=x,x.VERSION="1.8.3";var E=function(e,t,n){if(void 0===t)return e;switch(null==n?3:n){case 1:return function(n){return e.call(t,n)};case 2:return function(n,r){return e.call(t,n,r)};case 3:return function(n,r,o){return e.call(t,n,r,o)};case 4:return function(n,r,o,i){return e.call(t,n,r,o,i)}}return function(){return e.apply(t,arguments)}},k=function(e,t,n){return null==e?x.identity:x.isFunction(e)?E(e,t,n):x.isObject(e)?x.matcher(e):x.property(e)};x.iteratee=function(e,t){return k(e,t,1/0)};var V=function(e,t){return function(n){var r=arguments.length;if(2>r||null==n)return n;for(var o=1;r>o;o++)for(var i=arguments[o],l=e(i),s=l.length,u=0;s>u;u++){var a=l[u];t&&void 0!==n[a]||(n[a]=i[a])}return n}},S=function(e){if(!x.isObject(e))return{};if(w)return w(e);b.prototype=e;var t=new b;return b.prototype=null,t},$=function(e){return function(t){return null==t?void 0:t[e]}},I=Math.pow(2,53)-1,j=$("length"),M=function(e){var t=j(e);return"number"==typeof t&&t>=0&&I>=t};x.each=x.forEach=function(e,t,n){t=E(t,n);var r,o;if(M(e))for(r=0,o=e.length;o>r;r++)t(e[r],r,e);else{var i=x.keys(e);for(r=0,o=i.length;o>r;r++)t(e[i[r]],i[r],e)}return e},x.map=x.collect=function(e,t,n){t=k(t,n);for(var r=!M(e)&&x.keys(e),o=(r||e).length,i=Array(o),l=0;o>l;l++){var s=r?r[l]:l;i[l]=t(e[s],s,e)}return i},x.reduce=x.foldl=x.inject=n(1),x.reduceRight=x.foldr=n(-1),x.find=x.detect=function(e,t,n){var r;return r=M(e)?x.findIndex(e,t,n):x.findKey(e,t,n),void 0!==r&&-1!==r?e[r]:void 0},x.filter=x.select=function(e,t,n){var r=[];return t=k(t,n),x.each(e,function(e,n,o){t(e,n,o)&&r.push(e)}),r},x.reject=function(e,t,n){return x.filter(e,x.negate(k(t)),n)},x.every=x.all=function(e,t,n){t=k(t,n);for(var r=!M(e)&&x.keys(e),o=(r||e).length,i=0;o>i;i++){var l=r?r[i]:i;if(!t(e[l],l,e))return!1}return!0},x.some=x.any=function(e,t,n){t=k(t,n);for(var r=!M(e)&&x.keys(e),o=(r||e).length,i=0;o>i;i++){var l=r?r[i]:i;if(t(e[l],l,e))return!0}return!1},x.contains=x.includes=x.include=function(e,t,n,r){return M(e)||(e=x.values(e)),("number"!=typeof n||r)&&(n=0),x.indexOf(e,t,n)>=0},x.invoke=function(e,t){var n=g.call(arguments,2),r=x.isFunction(t);return x.map(e,function(e){var o=r?t:e[t];return null==o?o:o.apply(e,n)})},x.pluck=function(e,t){return x.map(e,x.property(t))},x.where=function(e,t){return x.filter(e,x.matcher(t))},x.findWhere=function(e,t){return x.find(e,x.matcher(t))},x.max=function(e,t,n){var r,o,i=-(1/0),l=-(1/0);if(null==t&&null!=e){e=M(e)?e:x.values(e);for(var s=0,u=e.length;u>s;s++)r=e[s],r>i&&(i=r)}else t=k(t,n),x.each(e,function(e,n,r){o=t(e,n,r),(o>l||o===-(1/0)&&i===-(1/0))&&(i=e,l=o)});return i},x.min=function(e,t,n){var r,o,i=1/0,l=1/0;if(null==t&&null!=e){e=M(e)?e:x.values(e);for(var s=0,u=e.length;u>s;s++)r=e[s],i>r&&(i=r)}else t=k(t,n),x.each(e,function(e,n,r){o=t(e,n,r),(l>o||o===1/0&&i===1/0)&&(i=e,l=o)});return i},x.shuffle=function(e){for(var t,n=M(e)?e:x.values(e),r=n.length,o=Array(r),i=0;r>i;i++)t=x.random(0,i),t!==i&&(o[i]=o[t]),o[t]=n[i];return o},x.sample=function(e,t,n){return null==t||n?(M(e)||(e=x.values(e)),e[x.random(e.length-1)]):x.shuffle(e).slice(0,Math.max(0,t))},x.sortBy=function(e,t,n){return t=k(t,n),x.pluck(x.map(e,function(e,n,r){return{value:e,index:n,criteria:t(e,n,r)}}).sort(function(e,t){var n=e.criteria,r=t.criteria;if(n!==r){if(n>r||void 0===n)return 1;if(r>n||void 0===r)return-1}return e.index-t.index}),"value")};var O=function(e){return function(t,n,r){var o={};return n=k(n,r),x.each(t,function(r,i){var l=n(r,i,t);e(o,r,l)}),o}};x.groupBy=O(function(e,t,n){x.has(e,n)?e[n].push(t):e[n]=[t]}),x.indexBy=O(function(e,t,n){e[n]=t}),x.countBy=O(function(e,t,n){x.has(e,n)?e[n]++:e[n]=1}),x.toArray=function(e){return e?x.isArray(e)?g.call(e):M(e)?x.map(e,x.identity):x.values(e):[]},x.size=function(e){return null==e?0:M(e)?e.length:x.keys(e).length},x.partition=function(e,t,n){t=k(t,n);var r=[],o=[];return x.each(e,function(e,n,i){(t(e,n,i)?r:o).push(e)}),[r,o]},x.first=x.head=x.take=function(e,t,n){return null==e?void 0:null==t||n?e[0]:x.initial(e,e.length-t)},x.initial=function(e,t,n){return g.call(e,0,Math.max(0,e.length-(null==t||n?1:t)))},x.last=function(e,t,n){return null==e?void 0:null==t||n?e[e.length-1]:x.rest(e,Math.max(0,e.length-t))},x.rest=x.tail=x.drop=function(e,t,n){return g.call(e,null==t||n?1:t)},x.compact=function(e){return x.filter(e,x.identity)};var C=function(e,t,n,r){for(var o=[],i=0,l=r||0,s=j(e);s>l;l++){var u=e[l];if(M(u)&&(x.isArray(u)||x.isArguments(u))){t||(u=C(u,t,n));var a=0,c=u.length;for(o.length+=c;c>a;)o[i++]=u[a++]}else n||(o[i++]=u)}return o};x.flatten=function(e,t){return C(e,t,!1)},x.without=function(e){return x.difference(e,g.call(arguments,1))},x.uniq=x.unique=function(e,t,n,r){x.isBoolean(t)||(r=n,n=t,t=!1),null!=n&&(n=k(n,r));for(var o=[],i=[],l=0,s=j(e);s>l;l++){var u=e[l],a=n?n(u,l,e):u;t?(l&&i===a||o.push(u),i=a):n?x.contains(i,a)||(i.push(a),o.push(u)):x.contains(o,u)||o.push(u)}return o},x.union=function(){return x.uniq(C(arguments,!0,!0))},x.intersection=function(e){for(var t=[],n=arguments.length,r=0,o=j(e);o>r;r++){var i=e[r];if(!x.contains(t,i)){for(var l=1;n>l&&x.contains(arguments[l],i);l++);l===n&&t.push(i)}}return t},x.difference=function(e){var t=C(arguments,!0,!0,1);return x.filter(e,function(e){return!x.contains(t,e)})},x.zip=function(){return x.unzip(arguments)},x.unzip=function(e){for(var t=e&&x.max(e,j).length||0,n=Array(t),r=0;t>r;r++)n[r]=x.pluck(e,r);return n},x.object=function(e,t){for(var n={},r=0,o=j(e);o>r;r++)t?n[e[r]]=t[r]:n[e[r][0]]=e[r][1];return n},x.findIndex=i(1),x.findLastIndex=i(-1),x.sortedIndex=function(e,t,n,r){n=k(n,r,1);for(var o=n(t),i=0,l=j(e);l>i;){var s=Math.floor((i+l)/2);n(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,t,n){null==t&&(t=e||0,e=0),n=n||1;for(var r=Math.max(Math.ceil((t-e)/n),0),o=Array(r),i=0;r>i;i++,e+=n)o[i]=e;return o};var L=function(e,t,n,r,o){if(!(r instanceof t))return e.apply(n,o);var i=S(e.prototype),l=e.apply(i,o);return x.isObject(l)?l:i};x.bind=function(e,t){if(_&&e.bind===_)return _.apply(e,g.call(arguments,1));if(!x.isFunction(e))throw new TypeError("Bind must be called on a function");var n=g.call(arguments,2),r=function(){return L(e,r,t,this,n.concat(g.call(arguments)))};return r},x.partial=function(e){var t=g.call(arguments,1),n=function(){for(var r=0,o=t.length,i=Array(o),l=0;o>l;l++)i[l]=t[l]===x?arguments[r++]:t[l];for(;r<arguments.length;)i.push(arguments[r++]);return L(e,n,this,this,i)};return n},x.bindAll=function(e){var t,n,r=arguments.length;if(1>=r)throw new Error("bindAll must be passed function names");for(t=1;r>t;t++)n=arguments[t],e[n]=x.bind(e[n],e);return e},x.memoize=function(e,t){var n=function(r){var o=n.cache,i=""+(t?t.apply(this,arguments):r);return x.has(o,i)||(o[i]=e.apply(this,arguments)),o[i]};return n.cache={},n},x.delay=function(e,t){var n=g.call(arguments,2);return setTimeout(function(){return e.apply(null,n)},t)},x.defer=x.partial(x.delay,x,1),x.throttle=function(e,t,n){var r,o,i,l=null,s=0;n||(n={});var u=function(){s=n.leading===!1?0:x.now(),l=null,i=e.apply(r,o),l||(r=o=null)};return function(){var a=x.now();s||n.leading!==!1||(s=a);var c=t-(a-s);return r=this,o=arguments,0>=c||c>t?(l&&(clearTimeout(l),l=null),s=a,i=e.apply(r,o),l||(r=o=null)):l||n.trailing===!1||(l=setTimeout(u,c)),i}},x.debounce=function(e,t,n){var r,o,i,l,s,u=function(){var a=x.now()-l;t>a&&a>=0?r=setTimeout(u,t-a):(r=null,n||(s=e.apply(i,o),r||(i=o=null)))};return function(){i=this,o=arguments,l=x.now();var a=n&&!r;return r||(r=setTimeout(u,t)),a&&(s=e.apply(i,o),i=o=null),s}},x.wrap=function(e,t){return x.partial(t,e)},x.negate=function(e){return function(){return!e.apply(this,arguments)}},x.compose=function(){var e=arguments,t=e.length-1;return function(){for(var n=t,r=e[t].apply(this,arguments);n--;)r=e[n].call(this,r);return r}},x.after=function(e,t){return function(){return--e<1?t.apply(this,arguments):void 0}},x.before=function(e,t){var n;return function(){return--e>0&&(n=t.apply(this,arguments)),1>=e&&(t=null),n}},x.once=x.partial(x.before,2);var A=!{toString:null}.propertyIsEnumerable("toString"),F=["valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"];x.keys=function(e){if(!x.isObject(e))return[];if(y)return y(e);var t=[];for(var n in e)x.has(e,n)&&t.push(n);return A&&s(e,t),t},x.allKeys=function(e){if(!x.isObject(e))return[];var t=[];for(var n in e)t.push(n);return A&&s(e,t),t},x.values=function(e){for(var t=x.keys(e),n=t.length,r=Array(n),o=0;n>o;o++)r[o]=e[t[o]];return r},x.mapObject=function(e,t,n){t=k(t,n);for(var r,o=x.keys(e),i=o.length,l={},s=0;i>s;s++)r=o[s],l[r]=t(e[r],r,e);return l},x.pairs=function(e){for(var t=x.keys(e),n=t.length,r=Array(n),o=0;n>o;o++)r[o]=[t[o],e[t[o]]];return r},x.invert=function(e){for(var t={},n=x.keys(e),r=0,o=n.length;o>r;r++)t[e[n[r]]]=n[r];return t},x.functions=x.methods=function(e){var t=[];for(var n in e)x.isFunction(e[n])&&t.push(n);return t.sort()},x.extend=V(x.allKeys),x.extendOwn=x.assign=V(x.keys),x.findKey=function(e,t,n){t=k(t,n);for(var r,o=x.keys(e),i=0,l=o.length;l>i;i++)if(r=o[i],t(e[r],r,e))return r},x.pick=function(e,t,n){var r,o,i={},l=e;if(null==l)return i;x.isFunction(t)?(o=x.allKeys(l),r=E(t,n)):(o=C(arguments,!1,!1,1),r=function(e,t,n){return t in n},l=Object(l));for(var s=0,u=o.length;u>s;s++){var a=o[s],c=l[a];r(c,a,l)&&(i[a]=c)}return i},x.omit=function(e,t,n){if(x.isFunction(t))t=x.negate(t);else{var r=x.map(C(arguments,!1,!1,1),String);t=function(e,t){return!x.contains(r,t)}}return x.pick(e,t,n)},x.defaults=V(x.allKeys,!0),x.create=function(e,t){var n=S(e);return t&&x.extendOwn(n,t),n},x.clone=function(e){return x.isObject(e)?x.isArray(e)?e.slice():x.extend({},e):e},x.tap=function(e,t){return t(e),e},x.isMatch=function(e,t){var n=x.keys(t),r=n.length;if(null==e)return!r;for(var o=Object(e),i=0;r>i;i++){var l=n[i];if(t[l]!==o[l]||!(l in o))return!1}return!0};var T=function(e,t,n,r){if(e===t)return 0!==e||1/e===1/t;if(null==e||null==t)return e===t;e instanceof x&&(e=e._wrapped),t instanceof x&&(t=t._wrapped);var o=v.call(e);if(o!==v.call(t))return!1;switch(o){case"[object RegExp]":case"[object String]":return""+e==""+t;case"[object Number]":return+e!==+e?+t!==+t:0===+e?1/+e===1/t:+e===+t;case"[object Date]":case"[object Boolean]":return+e===+t}var i="[object Array]"===o;if(!i){if("object"!=typeof e||"object"!=typeof t)return!1;var l=e.constructor,s=t.constructor;if(l!==s&&!(x.isFunction(l)&&l instanceof l&&x.isFunction(s)&&s instanceof s)&&"constructor"in e&&"constructor"in t)return!1}n=n||[],r=r||[];for(var u=n.length;u--;)if(n[u]===e)return r[u]===t;if(n.push(e),r.push(t),i){if(u=e.length,u!==t.length)return!1;for(;u--;)if(!T(e[u],t[u],n,r))return!1}else{var a,c=x.keys(e);if(u=c.length,x.keys(t).length!==u)return!1;for(;u--;)if(a=c[u],!x.has(t,a)||!T(e[a],t[a],n,r))return!1}return n.pop(),r.pop(),!0};x.isEqual=function(e,t){return T(e,t)},x.isEmpty=function(e){return null==e?!0:M(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]"===v.call(e)},x.isObject=function(e){var t=typeof e;return"function"===t||"object"===t&&!!e},x.each(["Arguments","Function","String","Number","Date","RegExp","Error"],function(e){x["is"+e]=function(t){return v.call(t)==="[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]"===v.call(e)},x.isNull=function(e){return null===e},x.isUndefined=function(e){return void 0===e},x.has=function(e,t){return null!=e&&h.call(e,t)},x.noConflict=function(){return u._=a,this},x.identity=function(e){return e},x.constant=function(e){return function(){return e}},x.noop=function(){},x.property=$,x.propertyOf=function(e){return null==e?function(){}:function(t){return e[t]}},x.matcher=x.matches=function(e){return e=x.extendOwn({},e),function(t){return x.isMatch(t,e)}},x.times=function(e,t,n){var r=Array(Math.max(0,e));t=E(t,n,1);for(var o=0;e>o;o++)r[o]=t(o);return r},x.random=function(e,t){return null==t&&(t=e,e=0),e+Math.floor(Math.random()*(t-e+1))},x.now=Date.now||function(){return(new Date).getTime()};var z={"&":"&","<":"<",">":">",'"':""","'":"'","`":"`"},N=x.invert(z),R=function(e){var t=function(t){return e[t]},n="(?:"+x.keys(e).join("|")+")",r=RegExp(n),o=RegExp(n,"g");return function(e){return e=null==e?"":""+e,r.test(e)?e.replace(o,t):e}};x.escape=R(z),x.unescape=R(N),x.result=function(e,t,n){var r=null==e?void 0:e[t];return void 0===r&&(r=n),x.isFunction(r)?r.call(e):r};var D=0;x.uniqueId=function(e){var t=++D+"";return e?e+t:t},x.templateSettings={evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,escape:/<%-([\s\S]+?)%>/g};var B=/(.)^/,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,t,n){!t&&n&&(t=n),t=x.defaults({},t,x.templateSettings);var r=RegExp([(t.escape||B).source,(t.interpolate||B).source,(t.evaluate||B).source].join("|")+"|$","g"),o=0,i="__p+='";e.replace(r,function(t,n,r,l,s){return i+=e.slice(o,s).replace(P,W),o=s+t.length,n?i+="'+\n((__t=("+n+"))==null?'':_.escape(__t))+\n'":r?i+="'+\n((__t=("+r+"))==null?'':__t)+\n'":l&&(i+="';\n"+l+"\n__p+='"),t}),i+="';\n",t.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(t.variable||"obj","_",i)}catch(s){throw s.source=i,s}var u=function(e){return l.call(this,e,x)},a=t.variable||"obj";return u.source="function("+a+"){\n"+i+"}",u},x.chain=function(e){var t=x(e);return t._chain=!0,t};var K=function(e,t){return e._chain?x(t).chain():t};x.mixin=function(e){x.each(x.functions(e),function(t){var n=x[t]=e[t];x.prototype[t]=function(){var e=[this._wrapped];return d.apply(e,arguments),K(this,n.apply(x,e))}})},x.mixin(x),x.each(["pop","push","reverse","shift","sort","splice","unshift"],function(e){var t=c[e];x.prototype[e]=function(){var n=this._wrapped;return t.apply(n,arguments),"shift"!==e&&"splice"!==e||0!==n.length||delete n[0],K(this,n)}}),x.each(["concat","join","slice"],function(e){var t=c[e];x.prototype[e]=function(){return K(this,t.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(t,r),!(void 0!==o&&(e.exports=o))}).call(this)}]),function(e){function t(r){if(n[r])return n[r].exports;var o=n[r]={exports:{},id:r,loaded:!1};return e[r].call(o.exports,o,o.exports,t),o.loaded=!0,o.exports}var n={};return t.m=e,t.c=n,t.p="",t(0)}([function(t,n,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(t,n){!function(){e.file("lib/createFilterer.js",function(e){function n(e,t){t||(t={});var n={};return function(o){var i;if(!n[o])for(var l=o.length-1;l>0;l-=1)if(i=o.substr(0,l),n[i]){n[o]=r(n[i],o,t);break}return n[o]||(n[o]=r(e,o,t)),n[o]}}function r(e,t,n){return u(e).reduce(function(u,a){var c,f=e[a];return i(f)?(o(t,a,n)||o(t,f,n))&&(u[a]=f):o(t,a,n)?u[a]=f:(c=r(f,t,n),isEmpty(c)||s(u,l(a,c))),u},{})}function o(e,t,n){return n.ignoreCase?(e=String(e).toLowerCase(),t&&-1!==String(t).toLowerCase().indexOf(e)):t&&-1!==String(t).indexOf(e)}function i(e){var t=getType(e);return"Object"!==t&&"Array"!==t}function l(e,t){var n={};return n[e]=t,n}Object.defineProperty(e,"__esModule",{value:!0}),e["default"]=n;var s=Object.assign,u=Object.keys;t.exports=e["default"]})}()},function(t,n){!function(){e.file("lib/getType.js",function(e){function n(e){return Object.prototype.toString.call(e).slice(8,-1)}Object.defineProperty(e,"__esModule",{value:!0}),e["default"]=n,t.exports=e["default"]})}()},function(t,n){!function(){e.file("lib/lens.js",function(e){function n(e,t){var i=t.split(o),l=i.shift();if(!l)return e;var s=getType(e);return"Array"===s&&e[r(l)]?n(e[r(l)],i.join(o)):"Object"===s&&e[l]?n(e[l],i.join(o)):void 0}function r(e){return parseInt(e,10)}Object.defineProperty(e,"__esModule",{value:!0}),e["default"]=n;var o=".";t.exports=e["default"]})}()},function(t,n){!function(){e.file("lib/uid.js",function(e){function n(){return r++}Object.defineProperty(e,"__esModule",{value:!0}),e["default"]=n;var r=Math.ceil(10*Math.random());t.exports=e["default"]})}()}]),!function(){e.file("main.js",function(t){function n(e){return e&&e.__esModule?e:{"default":e}}var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o=require("mouse-event-offset"),i=n(o);e.staticStyles("Main",{$:"#_flintdevtools .ViewMain"},{$:{position:"fixed",top:0,left:0,right:0,bottom:0,zIndex:2147483647}}),e.view("Main",function(t,n,r){var o=window.__isDevingDevTools,i=o||"?inspect"==window.location.search;t.render(function(){return t.el(["link",1],{rel:"stylesheet",property:"stylesheet",href:"/__/tools/static/tools.css"})}),t.render(function(){return e.iff(!o)&&t.el(["link",2],{"if":!o,rel:"stylesheet",property:"stylesheet",href:"/__/tools/styles.css"})}),t.render(function(){return t.el(["Errors",1],null)}),t.render(function(){return t.el(["Installer",1],null)}),t.render(function(){return e.iff(i)&&t.el(["Inspector",1],{"if":i})}),t.render(function(){return e.iff(o)&&t.el(["Name",1],{"if":o})}),t.render(function(){return e.iff(o)&&t.el(["Counter",1],{"if":o})}),t.render(function(){return e.iff(o)&&t.el(["Circles",1],{"if":o})}),r.$=function(e){return{pointerEvents:o?"auto":"none"}}}),e.view("Counter",function(e,t,n){var r=e.get("count",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,t,n){var r=e.get("person",{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,t,n){var r=e.get("first","nick"),o=e.get("last","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(t){e.set("first",r=t.target.value)}})}),e.render(function(){return e.el(["input",2],{__flintValue:o,__flintOnChange:function(t){e.set("last",o=t.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(t,n,r){function o(e){t.set("coords",l.push((0,i["default"])(e)),l,!0)}var l=t.get("coords",[[200,200]]);t.render(function(){return t.el(["circles",1],{onClick:o},e.range(l).map(function(e,n){return t.el(["Circle",1,n],{repeat:l,left:e[0],top:e[1]})}))}),r.circles=function(e){return{}}}),e.view("Circle",function(e,t,n){var o=e.get("c",function(){return Math.round(255*Math.random())}),i=e.get("base",{background:[o(),o(),o()],position:"absolute",top:e.props.top,left:e.props.left,width:118,height:29,borderRadius:27}),l=e.get("style",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(t){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,t,n){e.render(function(){return e.el(["close",1],{onClick:e.props.onClick},"x")}),n.$=function(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(t){var n=function(e,t){return e+t},r=300,o=800,i=5e3,l=1e4,s=1e3;e.view("Debounce",function(e,t,u){var a=e.get("showKey",void 0),c=e.get("timeout",void 0),f=e.get("lastTime",void 0),p=e.get("delay",void 0),d=e.get("curDelay",void 0),g=e.get("avgDiff",void 0),v=e.get("isAutoSaving",!1),h=e.get("lastFew",[]);e.pause(),t.props(function(){function t(){e.props.onUpdate&&e.props.onUpdate(),e.update()}if(!e.props.showKey||e.props.showKey!=a){e.set("showKey",a=e.props.showKey),e.set("delay",p=e.props.delay||r),e.set("curDelay",d=d||p);var u=Date.now(),m=f?u-f:i;if(e.set("lastTime",f=u),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",g=h.reduce(n,0)/h.length),e.set("isAutoSaving",v=s>g),e.set("curDelay",d=v?o:p)),e.props.force)return t();clearTimeout(c),e.set("timeout",c=setTimeout(t,d))}})})})}(),!function(){e.file("errors.js",function(t){var n=window._DT,r=function(e,t){return[e.substring(0,t),e.substring(t,t+1),e.substring(t+1)]},o=function(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 t=e.message.match(/(fs|path)/);t&&t.length&&(e.file="imported module:",e.message="Cannot import node-only module: "+t[0])}else e.message="Error in a locally required file. "+e.message;return e.message&&(e.niceMessage=e.message.replace(/Uncaught .*Error:\s*/,"")),e},i=function(e){var t=e.msg,n=e.name;return t&&(t=t.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:t,name:n}},l=function(e){return u(f(p(e)))},s=function(e){return e?e.replace(/.*\.js\:/,"").replace(/\([0-9]+\:[0-9]+\)/,"").replace(/Line [0-9]+\:\s*/,""):""},u=function(e){return e.niceMessage=s(e.message,e.fileName),e},a=/\>?\s*([0-9]*)\s*\|(.*)/g,c=/\s*\|\s*\^\s*$/g,f=function(e){return e?(e.stack&&!function(){e.fullStack=["","",""];var t=0;e.stack.split("\n").forEach(function(n){if(!c.test(n)&&a.test(n)){var r=">"===n[0];r&&(t=1),r||1!==t||(t=2);var o=n.replace(a,"$1$2").replace(/^(\s*[0-9]+\s*)[;]/,"$1 ");e.fullStack[t]+=o+"\n"}})}(),e):void 0},p=function(e){return e?(e.stack&&e.stack.split("\n").map(function(t){if(">"===t[0]){var n=t;if(!n)return;n=n.replace(/\>\s*[0-9]+\s*\|\s*/,""),n=s(n);var o=e.loc.column-4;e.niceStack=r(n,o)}}),e):void 0};e.view("Errors",function(e,t,r){function s(){c?e.set("error",a=l(c)):f?e.set("error",a=o(f)):e.set("error",a=null),e.update()}function u(){e.set("error",a=null),e.set("compileError",c=null),e.set("runtimeError",f=null),e.set("npmError",p=null),e.update()}e.pause();var a=e.get("error",null),c=e.get("compileError",null),f=e.get("runtimeError",null),p=e.get("npmError",null);n.on("compile:error",function(){e.set("compileError",c=n.data.error),s()}),n.on("runtime:error",function(){e.set("runtimeError",f=n.data),s()}),n.on("npm:error",function(){e.set("npmError",p=i(n.data.error)),e.update()}),n.on("runtime:success",function(){e.set("runtimeError",f=null),e.set("npmError",p=null),s()}),n.on("compile:success",function(){e.set("compileError",c=null), | ||
e.set("npmError",p=null),s()}),e.render(function(){return e.el(["ErrorMessage",1],{error:a,npmError:p,close:u})})});var d=0,g=function(e){return e&&e.replace(/[\?\)].*/,"")},v=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",$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",$b:"#_flintdevtools b.ErrorMessage, #_flintdevtools .ErrorMessage.b, #_flintdevtools .ViewErrorMessage.b, #_flintdevtools .ErrorMessage > .b",$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",$boldline:"#_flintdevtools boldline.ErrorMessage, #_flintdevtools .ErrorMessage.boldline, #_flintdevtools .ViewErrorMessage.boldline, #_flintdevtools .ErrorMessage > .boldline"},{$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)"},$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"},$b:{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:{},$boldline:{whiteSpace:"pre",pointerEvents:"all",fontWeight:"bold"}}),e.view("ErrorMessage",function(t,n,r){function o(){setTimeout(function(){var e=document.querySelectorAll(".__flintError");e.length&&[].forEach.call(e,function(e){t.set("error",e.className+=" active",e,!0)})})}var i=t.get("error",void 0),l=t.get("npmError",void 0),s=t.get("fullStack",void 0),u=t.get("line",v(t.props.error)),a=t.get("clearDelay",void 0);n.props(function(){t.set("npmError",l=t.props.npmError),t.set("error",i=t.props.error),t.set("line",u=v(i)),t.set("fullStack",s=null),i&&t.set("clearDelay",a=n.delay(2500,function(){i&&t.set("fullStack",s=i.stack)}))}),t.render(function(){return t.el(["Debounce",1],{force:!i,showKey:s||i&&i.message,onUpdate:o},t.el(["bar",1],null,t.el(["Close",1],{onClick:t.props.close,size:35}),e.iff(l)&&t.el(["inner",1],{"if":l},t.el(["where",1],null,t.el(["b",1],null,l.name))," ",l.msg),e.iff(i)&&t.el(["inner",2],{"if":i},t.el(["top",1],null,t.el(["where",2],null,"In ",t.el(["b",2],null,g(i.file)),e.iff(u)&&t.el(["line",1],{"if":u},t.el(["span",1],null," line")," ",t.el(["b",3],null,u-d)))," ",t.el(["shortError",1],null,(i.niceMessage||i.message||"").trim(),e.iff(i.niceStack)&&t.el(["niceStack",1],{"if":i.niceStack},i.niceStack[0],t.el(["errCol",1],null,i.niceStack[1]),i.niceStack[2])),e.iff(i.help)&&t.el(["help",1],{"if":i.help},i.help)),e.iff(i.fullStack)&&t.el(["fullStack",1],{"if":i.fullStack},t.el(["ln",1],null,i.fullStack[0]),t.el(["ln",2],{className:"cur"},i.fullStack[1]),t.el(["ln",3],null,i.fullStack[2])))))});var c="#cd423e";r.bar=function(e){return{background:c,bottom:t.props.error?0:-100}},r.inner=function(e){return{}},r.top=function(e){return{}},r.where=function(e){return{}},r.line=function(e){return{}},r.b=function(e){return{}},r.shortError=function(e){return{}};var f={color:"rgba(255,255,255,0.85)",display:"inline",fontFamily:"Meslo, Menlo, Monaco, monospace",padding:[0,5]};r.niceStack=function(e){return f},r.cur=function(e){return{}},r.errCol=function(e){return{margin:-3}},r.fullStack=function(e){return[f,{maxHeight:s?600:0,padding:s?[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}]},r.ln=function(e){return{padding:[0,20]}},r.boldline=function(e){return{}}}),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,t,n){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"}))}),n.svg=function(e){return{margin:-4}}})})}(),!function(){e.file("inspector.js",function(t){function n(e){var t=e.getBoundingClientRect(),n=window.innerWidth,r=window.innerHeight,o=l(t.right-t.left),i=l(t.bottom-t.top),u=1;o>=n&&i>=r&&(u=.2),s.setAttribute("style","\n top: "+l(t.top)+"px;\n left: "+l(t.left)+"px;\n width: "+o+"px;\n height: "+i+"px;\n opacity: "+u+";\n ")}function r(){s.setAttribute("style","")}function o(e){if(!e||!e.getAttribute)return null;var t=e.__flintID;return t?(n(e),t):o(e.parentNode)}var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},l=Math.round,s=void 0;e.staticStyles("Inspector",{$:"#_flintdevtools .ViewInspector"},{$:{position:"fixed",top:0,right:0,padding:2}}),e.view("Inspector",function(t,n,l){function u(e){t.set("_Flint",_Flint.isInspecting=!0,_Flint,!0);var n=o(e);c(),f(n)?t.set("views",w=w.map(function(e){return e.path==n&&t.set("v",e.highlight=!0,e,!0),e})):t.set("views",w.unshift({path:n,highlight:!1,temp:!0}),w,!0),t.update()}function a(e){var n=e.target;t.set("lastTarget",x=n),_&&u(x)}function c(){t.set("views",w=w.filter(function(e){return!e.temp}).map(function(e){return i({},e,{highlight:!1})}))}function f(e){return w.filter(function(t){return t.path==e}).length>0}function p(){w.length&&removeView(w.length-1)}function d(e,r){r&&r.stopPropagation(),t.set("views",w=w.map(function(n){return n.path==e&&t.set("v",n.closing=!0,n,!0),n})),t.update(),n.delay(200,function(){t.set("views",w=w.filter(function(t){return e!=t.path})),t.update()})}function g(e){f(e)?t.set("views",w=w.map(function(n){return n.path==e&&t.set("v",n.temp=!0,n,!0),n})):t.set("views",w=w.concat([{temp:!1,highlight:!1,closing:!1,path:e}])),t.update()}function v(e){var t=o(e.target);return console.log("views are",JSON.stringify(w),"gluing",t),c(),g(t),!1}function h(){u(x),t.set("hudActive",_=!0),t.set("clickOff",b=n.click(window,v))}function m(){console.log("views hide() are",w),t.set("_Flint",_Flint.isInspecting=!1,_Flint,!0),t.set("hudActive",_=!1),r(),b(),c(),t.update(),console.log("views hide() after are",w)}function y(e,n){var r=n[1][0],o=_Flint.getCache[e][r],i=n[1][1];"number"==typeof o&&t.set("value",i=+i),_Flint.setCache(e,r,i),t.set("_Flint",_Flint.inspectorRefreshing=e,_Flint,!0),_Flint.getInitialStates[e](),_Flint.viewsAtPath[e].forceUpdate(),t.set("_Flint",_Flint.inspectorRefreshing=null,_Flint,!0),t.update()}t.pause();var _=t.get("hudActive",!1),w=t.get("views",[]),b=t.get("clickOff",void 0),x=(t.get("keys",{}),t.get("lastTarget",null)),E=t.get("hoverOff",void 0);n.mount(function(){s||(t.set("highlighter",s=document.createElement("div")),t.set("highlighter",s.className="_flintHighlighter",s,!0),document.body.appendChild(s))});var k=function(){t.set("hoverOff",E=n.mousemove(window,a))};k();var V=function(e){return function(t){return"Alt"===t.keyIdentifier&&e()}},S=function(e){return function(t){return 27===t.keyCode&&e()}};n.keydown(window,V(h)),n.keyup(window,V(m)),n.keyup(window,S(p)),t.render(function(){return t.el(["views",1],null,e.range(w).map(function(e,n){return t.el(["Inspector.View",1,n],i({repeat:w,key:e.path},e,{writeBack:y,onClose:function(t){return d(e.path,t)}}))}))}),l.$=function(e){return{}}})})}(),!function(){e.file("modal.js",function(t){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,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},$message:{fontFamily:"-apple-system, 'Helvetica Nueue', Helvetica, Arial, sans-serif"}}),e.view("Modal",function(t,n,r){function o(){return t.set("open",s=t.props.open),l&&!t.props.title?t.update():(t.set("title",l=t.props.title),t.set("children",i=t.props.children),void t.update())}t.pause();var i=t.get("children",void 0),l=t.get("title",void 0),s=t.get("open",void 0);n.props(o),t.render(function(){return t.el(["modal",1],null,t.el(["Close",1],{size:25}),e.iff(l)&&t.el(["title",1],{"if":l},l),e.iff(i)&&t.el(["message",1],{"if":i},i))}),r.$=function(e){return{top:s?0:-140,padding:[10,10]}},r.title=function(e){return{margin:[0,20]}},r.message=function(e){return{}}})})}(),!function(){e.file("inspector/highlighter.js",function(t){e.view("Highlighter",function(t,n,r){t.render(function(){return e.iff(!t.props.highlight||-1===t.props.string.indexOf(t.props.highlight))&&t.el(["name",1],{"if":!t.props.highlight||-1===t.props.string.indexOf(t.props.highlight)},t.props.string)}),t.render(function(){return e.iff(t.props.highlight)&&t.el(["span",1],{"if":t.props.highlight},e.range(t.props.string.split()).map(function(n,r){return t.el(["span",2,r],{repeat:t.props.string.split()},e.iff(r>0)&&t.el(["highlight",1,r],{"if":r>0},t.props.highlight),n)}))})})})}(),!function(){e.file("inspector/label.js",function(t){var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[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,t,r){var o=(e.get("input",null),e.get("focus",void 0)),i=e.get("newVal",void 0);t.props(function(){e.set("newVal",i=e.props.val)});var l=function(t){e.props.editable&&(e.set("focus",o=!0),t.stopPropagation(),t.target.select())},s=function(t){e.set("focus",o=!1)},u=function(t){e.set("newVal",i=t.target.value),"false"===i&&e.set("newVal",i=!1),"true"===i&&e.set("newVal",i=!0),e.props.onSet(i)},a=e.get("tabIndex",function(e){return e?{}:{tabIndex:5e3,disabled:!0}});e.render(function(){return e.el(["input",1],n({defaultValue:String(e.props.val),__flintValue:i,__flintOnChange:function(t){e.set("newVal",i=t.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:u},a(e.props.editable)))}),r.input=function(e){return{left:-1}},r.focus=function(e){return{}}})})}(),!function(){e.file("inspector/leaf.js",function(t){function n(e){return e&&e.__esModule?e:{"default":e}}var r=require("md5-o-matic"),o=n(r),i=require("./lib/getType"),l=n(i),s=require("ellipsize"),u=n(s),a=".root.",c=function(e,t){return-1!==e.indexOf(t)},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:{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},$children:{paddingLeft:10},$type:{opacity:.7,flexFlow:"row"}}),e.view("Leaf",function(t,n,r){function i(e){t.props.root||t.set("expanded",m=!m),t.update(),t.props.onClick&&t.props.onClick(d),e.stopPropagation()}t.pause();var s=t.get("rootPath",void 0),p=t.get("path",void 0),d=t.get("data",void 0),g=t.get("type",void 0),v=t.get("key",void 0),h=t.get("original",void 0),m=t.get("expanded",void 0),y=t.get("dataKeys",[]),_=(t.get("prefix",""),t.get("query","")),w=function(){return t.props.root||!_&&t.props.isExpanded(p,d)||!c(p,_)&&"function"==typeof t.props.getOriginal};n.props(function(){t.set("rootPath",s=t.props.prefix+"."+t.props.label),t.set("key",v=t.props.label.toString()),t.set("path",p=s.substr(a.length)),t.set("data",d=t.props.data),d&&t.set("dataKeys",y=Object.keys(d).sort()),void 0===d&&t.set("data",d=t.props.data),void 0===d&&t.set("data",d={}),t.set("type",g=(0,l["default"])(d)),t.set("query",_=t.props.query||""),t.props.root?t.set("expanded",m=!0):_&&t.set("expanded",m=!c(t.props.label,_)),t.props.query&&!_&&t.set("expanded",m=w()),t.update()});var b=function(e,t){return f(t)?e+":"+(0,o["default"])(String(e)):e+"["+(0,l["default"])(t)+"]"},x=function(e){return t.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,n,r,o){return t.el(["Label",1],{val:n,editable:o,onSet:function(e){return t.props.onSet([r,e])}})};t.render(function(){return t.el(["leaf",1],{className:s},e.iff(!t.props.root)&&t.el(["label",1],{"if":!t.props.root,htmlFor:t.props.id,onClick:i},t.el(["key",1],null,t.el(["name",1],null,x(v)),k("key",v,v,!1)),t.el(["colon",1],null,":"),e.iff("Function"==g)&&t.el(["expand",1],{className:"function","if":"Function"==g},t.el(["i",1],null,"fn (",E(d).join(", "),")")),e.iff("Array"==g)&&t.el(["expand",2],{"if":"Array"==g},t.el(["type",1],null,"Array[",d.length,"]")),e.iff("Object"==g)&&t.el(["expand",3],{"if":"Object"==g},t.el(["type",2],null,"{} "+y.length+" keys")),e.iff(-1==["Array","Object","Function"].indexOf(g))&&t.el(["value",1],{"if":-1==["Array","Object","Function"].indexOf(g),className:g.toLowerCase()},e.iff("string"==g.toLowerCase())&&t.el(["str",1],{"if":"string"==g.toLowerCase()},x((0,u["default"])(String(d),25))),e.iff("string"!=g.toLowerCase())&&t.el(["else",1],{"if":"string"!=g.toLowerCase()},x(String(d))),k("val",d,v,t.props.editable))),t.el(["children",1],null,e.iff(m&&!f(d))&&e.range(y).map(function(n,r){return t.el(["child",1,r],{"if":m&&!f(d),repeat:y},e.iff(-1==n.indexOf("__"))&&t.el(["Leaf",1,r],{"if":-1==n.indexOf("__"),key:b(n,d[n]),onSet:function(){for(var e,n=arguments.length,r=Array(n),o=0;n>o;o++)r[o]=arguments[o];return(e=t.props).onSet.apply(e,[v].concat(r))},data:d[n],editable:t.props.editable,label:n,prefix:s,onClick:t.props.onClick,id:t.props.id,query:_,getOriginal:h?null:t.props.getOriginal,isExpanded:t.props.isExpanded}))})))}),r.leaf=function(e){return{padding:[1,0]}};var V={flexFlow:"row"};r.label=function(e){return[V,{position:"relative",color:"rgba(0,0,0,0.8)",opacity:1,alignItems:"center"}]},r.helper=function(e){return{}},r["boolean"]=function(e){return{}},r.number=function(e){return{}},r.string=function(e){return{}},r.key=function(e){return[V,{color:"rgba(0,0,0,0.9)",margin:[0],fontWeight:"bold"}]},r["function"]=function(e){return{}},r.colon=function(e){return{}},r.name=function(e){return{margin:["auto",0]}},r.expand=function(e){return[V,{}]},r.value=function(e){return[V,{position:"relative",margin:[0,4]}]},r.children=function(e){return{}},r.type=function(e){return{margin:[1,0,0,8]}}})})}(),!function(){e.file("inspector/section.js",function(t){e.staticStyles("Inspector.Section",{$:"#_flintdevtools .ViewInspector-Section",$body:"#_flintdevtools body.Inspector-Section, #_flintdevtools .Inspector-Section.body, #_flintdevtools .ViewInspector-Section.body, #_flintdevtools .Inspector-Section > .body"},{$:{},$body:{}}),e.view("Inspector.Section",function(t,n,r){var o=t.get("open",!0);t.render(function(){return t.el(["Inspector.Title",1],{onToggle:function(e){return t.set("open",o=e)}},t.props.title)}),t.render(function(){return e.iff(o)&&t.el(["body",1],{"if":o},t.props.children)}),r.$=function(e){return{padding:[5,0]}},r.body=function(e){return{padding:[0,12]}}})})}(),!function(){e.file("inspector/title.js",function(t){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,color:"#999",flexFlow:"row"},$closed:{marginTop:1},$inner:{background:"#fff"}}),e.view("Inspector.Title",function(e,t,n){function r(){e.props.onToggle&&(e.set("open",o=!o),e.props.onToggle(o))}var o=e.get("open",!0);e.render(function(){return e.el(["title",1],{onClick:r},e.el(["inner",1],null,e.props.children))}),n.title=function(e){return{margin:[5,0,8]}},n.closed=function(e){return{transform:{scale:.8}}},n.inner=function(e){return{padding:[4,10],margin:[-2,"auto"]}}})})}(),!function(){e.file("inspector/tree.js",function(t){function n(e){return e&&e.__esModule?e:{"default":e}}var r=require("./lib/lens"),o=n(r);e.staticStyles("Tree",{$:"#_flintdevtools .ViewTree"},{$:{pointerEvents:"auto"}}),e.view("Tree",function(e,t,n){var r=e.get("query",""),i=function(t){return(0,o["default"])(e.props.data,t)};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 t=arguments.length,n=Array(t),r=0;t>r;r++)n[r]=arguments[r];return e.props.onSet(n)}})}),n.$=function(e){return{marginLeft:-10}}})})}(),!function(){e.file("inspector/view.js",function(t){function n(e){return e&&e.__esModule?e:{"default":e}}function r(e){var t=e.split(",");return t[t.length-1].split(".")[0]}function o(e){var t=["if","repeat","style","yield","__flint"];return s["default"].omit.apply(null,[e].concat(t))}var i=require("clone"),l=(n(i),require("underscore")),s=n(l);e.staticStyles("Inspector.View",{$view:"#_flintdevtools view.Inspector-View, #_flintdevtools .Inspector-View.view, #_flintdevtools .ViewInspector-View.view, #_flintdevtools .Inspector-View > .view",$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",$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,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},$active:{opacity:1},$highlight:{border:"2px solid #afb4e2"},$Close:{fontSize:16},$name:{fontWeight:400,color:"rgba(0,0,0,0.8)",fontSize:14},$expanded:{},$input:{borderRadius:100,border:"1px solid #ccc",width:"100%",color:"#333",fontSize:14},$title:{display:"none",color:"#333",fontWeight:200,fontSize:12},$props:{marginBottom:2}}),e.view("Inspector.View",function(t,n,i){function l(e){t.props.writeBack(a,e)}var s=window.Flint.inspect,u=t.get("name",void 0),a=t.get("path",void 0),c=t.get("closing",void 0),f=t.get("highlight",void 0),p=t.get("active",!1),d=t.get("state",{}),g=t.get("props",null),v=t.get("writeBack",null);n.delay(60,function(){t.set("active",p=!0)}),n.unmount(function(){delete window._Flint.inspector[t.props.path]}),n.props(function(){t.set("highlight",f=t.props.highlight),t.set("closing",c=t.props.closing),t.set("path",a=t.props.path),c===!0&&t.set("active",p=!1),a&&a&&(t.set("name",u=r(a)),s(a,function(e,n,r){t.set("props",g=o(e||{})),t.set("state",d=n||{}),t.set("writeBack",v=r),t.update()}))});var h=t.get("hasKeys",function(e){return e&&Object.keys(e).length>0});t.render(function(){return t.el(["view",1],{className:{active:p,highlight:f}},t.el(["Close",1],{onClick:t.props.onClose,fontSize:20,size:35}),t.el(["name",1],null,u),e.iff(!h(g))&&t.el(["Inspector.Title",1],{"if":!h(g)},"No Props"),e.iff(h(g))&&t.el(["Inspector.Section",1],{title:"Props","if":h(g),className:"props"},t.el(["Tree",1],{editable:!1,data:g})),e.iff(!h(d))&&t.el(["Inspector.Title",2],{"if":!h(d)},"No State"),e.iff(h(d))&&t.el(["Inspector.Section",2],{title:"State","if":h(d)},t.el(["Tree",2],{editable:!0,onSet:l,data:d})))}),i.view=function(e){return{padding:[0,0,1],transform:{x:20}}},i.active=function(e){return{transform:{x:0}}},i.highlight=function(e){return{}},i.Close=function(e){return{top:-5,right:-5}},i.name=function(e){return{padding:[8,8,0],margin:[0,0,-6]}},i.expanded=function(e){return{transform:{y:0}}},i.input=function(e){return{padding:[2,12]}},i.title=function(e){return{margin:[3,0]}},i.props=function(e){return{}}})})}(),!function(){e.file("npm/installer.js",function(t){var n=window._DT;e.view("Installer",function(t,r,o){var i=t.get("version",""),l=t.get("versions",[]),s=t.get("name",""),u=t.get("error",""),a=t.get("state",0);n.on("package:install",function(){t.set("state",a=1),t.set("name",s=n.data.name)}),n.on("package:installed",function(){t.set("state",a=2),setTimeout(function(){return t.set("state",a=0)},2e3)}),n.on("package:error",function(){t.set("state",a=3),t.set("name",s=n.data.name),t.set("error",u=n.data.error),setTimeout(function(){return t.set("state",a=0)},2e3)}),n.on("package:select",function(){t.set("state",a=4),t.set("versions",l=n.data.versions)});var c=function(e){t.set("version",i=e),t.set("tools",n.data.version=e,n,!0),n.emitter.emit("package:select"),t.set("state",a=1)},f=function(){return t.set("state",a=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 u;case 4:return t.el(["Versions",1],{versions:l,onSelect:c})}};t.render(function(){return t.el(["Modal",1],{open:a>0,onClose:f,title:p(a)},e.iff(!1)&&t.el(["InstallerLoading",1],{"if":!1}),d(a))})}),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",borderRadius:2},$inner:{flexFlow:"row"},$v:{flexGrow:1,fontWeight:"bold"},$info:{}}),e.view("Versions",function(t,n,r){t.render(function(){return e.range(t.props.versions).map(function(e,n){return t.el(["version",1,n],{repeat:t.props.versions,onClick:function(){return t.props.onSelect(e)}},t.el(["inner",1,n],null,t.el(["v",1,n],{key:"v"+n},e.version),t.el(["info",1,n],null,e.description),t.el(["a",1,n],{href:e.homepage,target:"_blank"},"Info")))})}),r.version=function(e){return{padding:[2,4]}},r.inner=function(e){return{}},r.v=function(e){return{":hover":{background:"#fff",cursor:"pointer"}}},r.info=function(e){return{}}})})}(),e.init()}(o)},"undefined"!=typeof module&&module.exports&&(module.exports=flintRun_tools); |
@@ -6,3 +6,3 @@ { | ||
"description": "tools", | ||
"version": "1.3.115", | ||
"version": "1.3.116", | ||
"main": "index.js", | ||
@@ -9,0 +9,0 @@ "scripts": {}, |
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 not supported yet
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
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
3415992
7167