jskit_rails 0.0.3 → 1.0.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/LICENSE +201 -201
- data/README.md +54 -1
- data/{spec/dummy/tmp/cache/assets/development/sprockets/2f5173deea6c795b8fdde723bb4b63af → app/assets/javascripts/jskit.js} +0 -0
- data/app/assets/javascripts/jskit.min.js +2 -0
- data/app/assets/javascripts/jskit_rails.js.erb +3 -0
- data/{spec/dummy/app/assets/stylesheets → app/assets/stylesheets/jskit_rails}/application.css +0 -0
- data/app/decorators/controllers/jskit_rails/application_controller_decorator.rb +37 -0
- data/lib/jskit_rails.rb +13 -1
- data/lib/jskit_rails/configuration.rb +9 -0
- data/lib/jskit_rails/engine.rb +7 -3
- data/lib/jskit_rails/version.rb +2 -2
- data/spec/controllers/application_controller_spec.rb +37 -0
- data/spec/lib/configuration_spec.rb +12 -0
- data/spec/lib/jskit_rails_spec.rb +12 -0
- data/spec/lib/version_spec.rb +7 -0
- metadata +40 -227
- data/lib/tasks/jskit_rails_tasks.rake +0 -4
- data/spec/dummy/README.rdoc +0 -28
- data/spec/dummy/Rakefile +0 -6
- data/spec/dummy/app/assets/javascripts/application.js +0 -1
- data/spec/dummy/app/controllers/application_controller.rb +0 -5
- data/spec/dummy/app/controllers/pages_controller.rb +0 -5
- data/spec/dummy/app/views/layouts/application.html.erb +0 -16
- data/spec/dummy/app/views/pages/index.html.erb +0 -1
- data/spec/dummy/bin/bundle +0 -3
- data/spec/dummy/bin/rails +0 -4
- data/spec/dummy/bin/rake +0 -4
- data/spec/dummy/config.ru +0 -4
- data/spec/dummy/config/application.rb +0 -29
- data/spec/dummy/config/boot.rb +0 -5
- data/spec/dummy/config/database.yml +0 -25
- data/spec/dummy/config/environment.rb +0 -5
- data/spec/dummy/config/environments/development.rb +0 -37
- data/spec/dummy/config/environments/production.rb +0 -82
- data/spec/dummy/config/environments/test.rb +0 -39
- data/spec/dummy/config/initializers/assets.rb +0 -8
- data/spec/dummy/config/initializers/backtrace_silencers.rb +0 -7
- data/spec/dummy/config/initializers/cookies_serializer.rb +0 -3
- data/spec/dummy/config/initializers/filter_parameter_logging.rb +0 -4
- data/spec/dummy/config/initializers/inflections.rb +0 -16
- data/spec/dummy/config/initializers/mime_types.rb +0 -4
- data/spec/dummy/config/initializers/session_store.rb +0 -3
- data/spec/dummy/config/initializers/wrap_parameters.rb +0 -14
- data/spec/dummy/config/locales/en.yml +0 -23
- data/spec/dummy/config/routes.rb +0 -3
- data/spec/dummy/config/secrets.yml +0 -22
- data/spec/dummy/db/development.sqlite3 +0 -0
- data/spec/dummy/db/schema.rb +0 -16
- data/spec/dummy/db/test.sqlite3 +0 -0
- data/spec/dummy/log/development.log +0 -440
- data/spec/dummy/log/test.log +0 -133
- data/spec/dummy/public/404.html +0 -67
- data/spec/dummy/public/422.html +0 -67
- data/spec/dummy/public/500.html +0 -66
- data/spec/dummy/public/favicon.ico +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/13fe41fee1fe35b49d145bcc06610705 +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/17638b36dd2d326da8bbe19e3187b4aa +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/1b3ab54570489ef40fe6bcfcb75732a4 +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/357970feca3ac29060c1e3861e2c0953 +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/3951bba7f7c83ef217caf196767a87b4 +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/7716514c24387d3b649c2d1db2fb57cf +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/8f2db0e64688316c3e652e3f7cfec01f +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/aa59802eb5ce4da01106d1b80af0b061 +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/b472917185e15a1cc040f2665247d7fe +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/c5012fc346216a5b77cf508656d4be05 +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/cbb89fa0fff41ef21d5ff4a05e24c8af +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/cc6d6668e906cadd9045f8059626e51f +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/cf750916991c005f72c5986edb1c5e34 +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/cfd1216ad7ba24f298bc865c6b92d581 +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/cffd775d018f68ce5dba1ee0d951a994 +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/d771ace226fc8215a3572e0aa35bb0d6 +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/f7cbd26ba1d28d48de824f0e94586655 +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/13fe41fee1fe35b49d145bcc06610705 +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/2f5173deea6c795b8fdde723bb4b63af +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/357970feca3ac29060c1e3861e2c0953 +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/cbb89fa0fff41ef21d5ff4a05e24c8af +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/cf750916991c005f72c5986edb1c5e34 +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/cffd775d018f68ce5dba1ee0d951a994 +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/d771ace226fc8215a3572e0aa35bb0d6 +0 -0
- data/spec/dummy/tmp/cache/assets/test/sprockets/f7cbd26ba1d28d48de824f0e94586655 +0 -0
- data/spec/dummy/tmp/capybara/screenshot_2014-08-15-11-33-19.355.png +0 -0
- data/spec/dummy/tmp/capybara/screenshot_2014-08-15-11-34-31.074.png +0 -0
- data/spec/dummy/tmp/capybara/screenshot_2014-08-15-11-34-33.141.html +0 -14
- data/spec/dummy/tmp/capybara/screenshot_2014-08-15-11-34-33.141.png +0 -0
- data/spec/dummy/tmp/capybara/screenshot_2014-08-15-11-34-50.695.png +0 -0
- data/spec/dummy/tmp/capybara/screenshot_2014-08-15-11-34-52.764.html +0 -14
- data/spec/dummy/tmp/capybara/screenshot_2014-08-15-11-34-52.764.png +0 -0
- data/spec/dummy/tmp/capybara/screenshot_2014-08-15-11-35-21.182.html +0 -14
- data/spec/dummy/tmp/capybara/screenshot_2014-08-15-11-35-21.182.png +0 -0
- data/spec/dummy/tmp/capybara/screenshot_2014-08-15-11-37-28.530.html +0 -14
- data/spec/dummy/tmp/capybara/screenshot_2014-08-15-11-37-28.530.png +0 -0
- data/spec/dummy/tmp/capybara/screenshot_2014-08-15-11-37-43.080.html +0 -14
- data/spec/dummy/tmp/capybara/screenshot_2014-08-15-11-37-43.080.png +0 -0
- data/spec/dummy/tmp/capybara/screenshot_2014-08-15-11-41-35.574.html +0 -14
- data/spec/dummy/tmp/capybara/screenshot_2014-08-15-11-41-35.574.png +0 -0
- data/spec/dummy/tmp/capybara/screenshot_2014-08-15-11-42-14.128.html +0 -14
- data/spec/dummy/tmp/capybara/screenshot_2014-08-15-11-42-14.128.png +0 -0
- data/spec/dummy/tmp/capybara/screenshot_2014-09-04-09-46-47.711.html +0 -12
- data/spec/dummy/tmp/capybara/screenshot_2014-09-04-09-46-47.711.png +0 -0
- data/spec/rails_helper.rb +0 -50
- data/spec/spec_helper.rb +0 -78
Binary file
|
@@ -0,0 +1,2 @@
|
|
1
|
+
!function n(e,t,r){function o(u,a){if(!t[u]){if(!e[u]){var f="function"==typeof require&&require;if(!a&&f)return f(u,!0);if(i)return i(u,!0);throw new Error("Cannot find module '"+u+"'")}var l=t[u]={exports:{}};e[u][0].call(l.exports,function(n){var t=e[u][1][n];return o(t?t:n)},l,l.exports,n,e,t,r)}return t[u].exports}for(var i="function"==typeof require&&require,u=0;u<r.length;u++)o(r[u]);return o}({1:[function(n,e){(function(){function t(){this.Controllers={},this.Dispatcher=l}function r(n,e){function t(){f.call(this)}return t.prototype=Object.create(f.prototype),t.prototype.constructor=t,a.extend(t.prototype,n),this[e+"Controller"]=t,new t}function o(n,e,t,r){a(e).each(function(e){if(!n[e]||!a.isFunction(n[e]))throw new Error("'"+t+"' Controller has an action '"+e+"' defined with no corresponding method");var o=a([r,"controller",t.toLowerCase(),e]).compact().join(":");this.Dispatcher.on(o,n[e],n)},this)}function i(n,e){if(!n.init)throw new Error("'Application' Controller: init is undefined");var t=a([e,"controller","all"]).compact().join(":");this.Dispatcher.on(t,n.init,n)}n("./polyfill");var u=n("./polyfill"),a=n("lodash"),f=n("./controller"),l=n("backbone-events-standalone");u(t,"createController",function(n,e){var t=r.call(this,e,n);return a.bindAll.apply(t,[t].concat(a.functions(t))),o.call(this,t,e.actions,n,e.namespace),n.match(/^Application$/i)&&i.call(this,t,e.namespace),this.Controllers[n]=t}),e.exports=t}).call(this,n("1YiZ5S"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},n("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/application.js","/")},{"./controller":2,"./polyfill":4,"1YiZ5S":10,"backbone-events-standalone":6,buffer:7,lodash:11}],2:[function(n,e){(function(){function t(){this.initialize()}var r=n("./polyfill");r(t,"initialize",function(){}),r(t,"actions",[],!0,!0,!0),e.exports=t}).call(this,n("1YiZ5S"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},n("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/controller.js","/")},{"./polyfill":4,"1YiZ5S":10,buffer:7}],3:[function(n){(function(e,t){var r=n("./application");t.JSKit={createApplication:function(){return new r}}}).call(this,n("1YiZ5S"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},n("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/fake_a0706a9b.js","/")},{"./application":1,"1YiZ5S":10,buffer:7}],4:[function(n,e){(function(){function n(n,e){return"undefined"==typeof n?e:n}"function"!=typeof Object.create&&(Object.create=function(n,e){function t(){}if("object"!=typeof n)throw new Error("Object.create(prototype, properties): prototype is not an Object");t.prototype=n;var r=new t;if(n&&(r.constructor=t),void 0!==e){if(e!==Object(e))throw new Error("Object.create(prototype, properties): properties is not an Object");Object.defineProperties(r,e)}return r}),function(){if(!Object.defineProperty||!function(){try{return Object.defineProperty({},"x",{}),!0}catch(n){return!1}}()){var n=Object.defineProperty;Object.defineProperty=function(e,t,r){if(n)try{return n(e,t,r)}catch(o){}if(e!==Object(e))throw new Error("Object.defineProperty called on non-object");return Object.prototype.__defineGetter__&&"get"in r&&Object.prototype.__defineGetter__.call(e,t,r.get),Object.prototype.__defineSetter__&&"set"in r&&Object.prototype.__defineSetter__.call(e,t,r.set),"value"in r&&(e[t]=r.value),e}}}(),e.exports=function(e,t,r,o,i,u){o=n(o,!1),i=n(i,!1),u=n(u,!1),Object.defineProperty(e.prototype,t,{writeable:o,configurable:i,enumerable:u,value:r})}}).call(this,n("1YiZ5S"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},n("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/polyfill.js","/")},{"1YiZ5S":10,buffer:7}],5:[function(n,e,t){(function(){!function(){function n(){return{keys:Object.keys,uniqueId:function(n){var e=++l+"";return n?n+e:e},has:function(n,e){return a.call(n,e)},each:function(n,e,t){if(null!=n)if(u&&n.forEach===u)n.forEach(e,t);else if(n.length===+n.length){for(var r=0,o=n.length;o>r;r++)if(e.call(t,n[r],r,n)===i)return}else for(var a in n)if(this.has(n,a)&&e.call(t,n[a],a,n)===i)return},once:function(n){var e,t=!1;return function(){return t?e:(t=!0,e=n.apply(this,arguments),n=null,e)}}}}var r,o=this,i={},u=Array.prototype.forEach,a=Object.prototype.hasOwnProperty,f=Array.prototype.slice,l=0,c=n();r={on:function(n,e,t){if(!p(this,"on",n,[e,t])||!e)return this;this._events||(this._events={});var r=this._events[n]||(this._events[n]=[]);return r.push({callback:e,context:t,ctx:t||this}),this},once:function(n,e,t){if(!p(this,"once",n,[e,t])||!e)return this;var r=this,o=c.once(function(){r.off(n,o),e.apply(this,arguments)});return o._callback=e,this.on(n,o,t)},off:function(n,e,t){var r,o,i,u,a,f,l,s;if(!this._events||!p(this,"off",n,[e,t]))return this;if(!n&&!e&&!t)return this._events={},this;for(u=n?[n]:c.keys(this._events),a=0,f=u.length;f>a;a++)if(n=u[a],i=this._events[n]){if(this._events[n]=r=[],e||t)for(l=0,s=i.length;s>l;l++)o=i[l],(e&&e!==o.callback&&e!==o.callback._callback||t&&t!==o.context)&&r.push(o);r.length||delete this._events[n]}return this},trigger:function(n){if(!this._events)return this;var e=f.call(arguments,1);if(!p(this,"trigger",n,e))return this;var t=this._events[n],r=this._events.all;return t&&h(t,e),r&&h(r,arguments),this},stopListening:function(n,e,t){var r=this._listeners;if(!r)return this;var o=!e&&!t;"object"==typeof e&&(t=this),n&&((r={})[n._listenerId]=n);for(var i in r)r[i].off(e,t,this),o&&delete this._listeners[i];return this}};var s=/\s+/,p=function(n,e,t,r){if(!t)return!0;if("object"==typeof t){for(var o in t)n[e].apply(n,[o,t[o]].concat(r));return!1}if(s.test(t)){for(var i=t.split(s),u=0,a=i.length;a>u;u++)n[e].apply(n,[i[u]].concat(r));return!1}return!0},h=function(n,e){var t,r=-1,o=n.length,i=e[0],u=e[1],a=e[2];switch(e.length){case 0:for(;++r<o;)(t=n[r]).callback.call(t.ctx);return;case 1:for(;++r<o;)(t=n[r]).callback.call(t.ctx,i);return;case 2:for(;++r<o;)(t=n[r]).callback.call(t.ctx,i,u);return;case 3:for(;++r<o;)(t=n[r]).callback.call(t.ctx,i,u,a);return;default:for(;++r<o;)(t=n[r]).callback.apply(t.ctx,e)}},d={listenTo:"on",listenToOnce:"once"};c.each(d,function(n,e){r[e]=function(e,t,r){var o=this._listeners||(this._listeners={}),i=e._listenerId||(e._listenerId=c.uniqueId("l"));return o[i]=e,"object"==typeof t&&(r=this),e[n](t,r,this),this}}),r.bind=r.on,r.unbind=r.off,r.mixin=function(n){var e=["on","once","off","trigger","stopListening","listenTo","listenToOnce","bind","unbind"];return c.each(e,function(e){n[e]=this[e]},this),n},"function"==typeof define?define(function(){return r}):"undefined"!=typeof t?("undefined"!=typeof e&&e.exports&&(t=e.exports=r),t.BackboneEvents=r):o.BackboneEvents=r}(this)}).call(this,n("1YiZ5S"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},n("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/../node_modules/backbone-events-standalone/backbone-events-standalone.js","/../node_modules/backbone-events-standalone")},{"1YiZ5S":10,buffer:7}],6:[function(n,e){(function(){e.exports=n("./backbone-events-standalone")}).call(this,n("1YiZ5S"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},n("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/../node_modules/backbone-events-standalone/index.js","/../node_modules/backbone-events-standalone")},{"./backbone-events-standalone":5,"1YiZ5S":10,buffer:7}],7:[function(n,e,t){(function(e,r,o){function o(n,e,t){if(!(this instanceof o))return new o(n,e,t);var r=typeof n;if("base64"===e&&"string"===r)for(n=S(n);n.length%4!==0;)n+="=";var i;if("number"===r)i=L(n);else if("string"===r)i=o.byteLength(n,e);else{if("object"!==r)throw new Error("First argument needs to be a number, array or string.");i=L(n.length)}var u;o._useTypedArrays?u=o._augment(new Uint8Array(i)):(u=this,u.length=i,u._isBuffer=!0);var a;if(o._useTypedArrays&&"number"==typeof n.byteLength)u._set(n);else if(O(n))for(a=0;i>a;a++)u[a]=o.isBuffer(n)?n.readUInt8(a):n[a];else if("string"===r)u.write(n,0,e);else if("number"===r&&!o._useTypedArrays&&!t)for(a=0;i>a;a++)u[a]=0;return u}function i(n,e,t,r){t=Number(t)||0;var i=n.length-t;r?(r=Number(r),r>i&&(r=i)):r=i;var u=e.length;W(u%2===0,"Invalid hex string"),r>u/2&&(r=u/2);for(var a=0;r>a;a++){var f=parseInt(e.substr(2*a,2),16);W(!isNaN(f),"Invalid hex string"),n[t+a]=f}return o._charsWritten=2*a,a}function u(n,e,t,r){var i=o._charsWritten=Y(N(e),n,t,r);return i}function a(n,e,t,r){var i=o._charsWritten=Y(D(e),n,t,r);return i}function f(n,e,t,r){return a(n,e,t,r)}function l(n,e,t,r){var i=o._charsWritten=Y(M(e),n,t,r);return i}function c(n,e,t,r){var i=o._charsWritten=Y(F(e),n,t,r);return i}function s(n,e,t){return $.fromByteArray(0===e&&t===n.length?n:n.slice(e,t))}function p(n,e,t){var r="",o="";t=Math.min(n.length,t);for(var i=e;t>i;i++)n[i]<=127?(r+=Z(o)+String.fromCharCode(n[i]),o=""):o+="%"+n[i].toString(16);return r+Z(o)}function h(n,e,t){var r="";t=Math.min(n.length,t);for(var o=e;t>o;o++)r+=String.fromCharCode(n[o]);return r}function d(n,e,t){return h(n,e,t)}function g(n,e,t){var r=n.length;(!e||0>e)&&(e=0),(!t||0>t||t>r)&&(t=r);for(var o="",i=e;t>i;i++)o+=T(n[i]);return o}function v(n,e,t){for(var r=n.slice(e,t),o="",i=0;i<r.length;i+=2)o+=String.fromCharCode(r[i]+256*r[i+1]);return o}function y(n,e,t,r){r||(W("boolean"==typeof t,"missing or invalid endian"),W(void 0!==e&&null!==e,"missing offset"),W(e+1<n.length,"Trying to read beyond buffer length"));var o=n.length;if(!(e>=o)){var i;return t?(i=n[e],o>e+1&&(i|=n[e+1]<<8)):(i=n[e]<<8,o>e+1&&(i|=n[e+1])),i}}function b(n,e,t,r){r||(W("boolean"==typeof t,"missing or invalid endian"),W(void 0!==e&&null!==e,"missing offset"),W(e+3<n.length,"Trying to read beyond buffer length"));var o=n.length;if(!(e>=o)){var i;return t?(o>e+2&&(i=n[e+2]<<16),o>e+1&&(i|=n[e+1]<<8),i|=n[e],o>e+3&&(i+=n[e+3]<<24>>>0)):(o>e+1&&(i=n[e+1]<<16),o>e+2&&(i|=n[e+2]<<8),o>e+3&&(i|=n[e+3]),i+=n[e]<<24>>>0),i}}function m(n,e,t,r){r||(W("boolean"==typeof t,"missing or invalid endian"),W(void 0!==e&&null!==e,"missing offset"),W(e+1<n.length,"Trying to read beyond buffer length"));var o=n.length;if(!(e>=o)){var i=y(n,e,t,!0),u=32768&i;return u?-1*(65535-i+1):i}}function w(n,e,t,r){r||(W("boolean"==typeof t,"missing or invalid endian"),W(void 0!==e&&null!==e,"missing offset"),W(e+3<n.length,"Trying to read beyond buffer length"));var o=n.length;if(!(e>=o)){var i=b(n,e,t,!0),u=2147483648&i;return u?-1*(4294967295-i+1):i}}function _(n,e,t,r){return r||(W("boolean"==typeof t,"missing or invalid endian"),W(e+3<n.length,"Trying to read beyond buffer length")),z.read(n,e,t,23,4)}function E(n,e,t,r){return r||(W("boolean"==typeof t,"missing or invalid endian"),W(e+7<n.length,"Trying to read beyond buffer length")),z.read(n,e,t,52,8)}function j(n,e,t,r,o){o||(W(void 0!==e&&null!==e,"missing value"),W("boolean"==typeof r,"missing or invalid endian"),W(void 0!==t&&null!==t,"missing offset"),W(t+1<n.length,"trying to write beyond buffer length"),R(e,65535));var i=n.length;if(!(t>=i))for(var u=0,a=Math.min(i-t,2);a>u;u++)n[t+u]=(e&255<<8*(r?u:1-u))>>>8*(r?u:1-u)}function I(n,e,t,r,o){o||(W(void 0!==e&&null!==e,"missing value"),W("boolean"==typeof r,"missing or invalid endian"),W(void 0!==t&&null!==t,"missing offset"),W(t+3<n.length,"trying to write beyond buffer length"),R(e,4294967295));var i=n.length;if(!(t>=i))for(var u=0,a=Math.min(i-t,4);a>u;u++)n[t+u]=e>>>8*(r?u:3-u)&255}function k(n,e,t,r,o){o||(W(void 0!==e&&null!==e,"missing value"),W("boolean"==typeof r,"missing or invalid endian"),W(void 0!==t&&null!==t,"missing offset"),W(t+1<n.length,"Trying to write beyond buffer length"),P(e,32767,-32768));var i=n.length;t>=i||(e>=0?j(n,e,t,r,o):j(n,65535+e+1,t,r,o))}function B(n,e,t,r,o){o||(W(void 0!==e&&null!==e,"missing value"),W("boolean"==typeof r,"missing or invalid endian"),W(void 0!==t&&null!==t,"missing offset"),W(t+3<n.length,"Trying to write beyond buffer length"),P(e,2147483647,-2147483648));var i=n.length;t>=i||(e>=0?I(n,e,t,r,o):I(n,4294967295+e+1,t,r,o))}function A(n,e,t,r,o){o||(W(void 0!==e&&null!==e,"missing value"),W("boolean"==typeof r,"missing or invalid endian"),W(void 0!==t&&null!==t,"missing offset"),W(t+3<n.length,"Trying to write beyond buffer length"),q(e,3.4028234663852886e38,-3.4028234663852886e38));var i=n.length;t>=i||z.write(n,e,t,r,23,4)}function x(n,e,t,r,o){o||(W(void 0!==e&&null!==e,"missing value"),W("boolean"==typeof r,"missing or invalid endian"),W(void 0!==t&&null!==t,"missing offset"),W(t+7<n.length,"Trying to write beyond buffer length"),q(e,1.7976931348623157e308,-1.7976931348623157e308));var i=n.length;t>=i||z.write(n,e,t,r,52,8)}function S(n){return n.trim?n.trim():n.replace(/^\s+|\s+$/g,"")}function C(n,e,t){return"number"!=typeof n?t:(n=~~n,n>=e?e:n>=0?n:(n+=e,n>=0?n:0))}function L(n){return n=~~Math.ceil(+n),0>n?0:n}function U(n){return(Array.isArray||function(n){return"[object Array]"===Object.prototype.toString.call(n)})(n)}function O(n){return U(n)||o.isBuffer(n)||n&&"object"==typeof n&&"number"==typeof n.length}function T(n){return 16>n?"0"+n.toString(16):n.toString(16)}function N(n){for(var e=[],t=0;t<n.length;t++){var r=n.charCodeAt(t);if(127>=r)e.push(n.charCodeAt(t));else{var o=t;r>=55296&&57343>=r&&t++;for(var i=encodeURIComponent(n.slice(o,t+1)).substr(1).split("%"),u=0;u<i.length;u++)e.push(parseInt(i[u],16))}}return e}function D(n){for(var e=[],t=0;t<n.length;t++)e.push(255&n.charCodeAt(t));return e}function F(n){for(var e,t,r,o=[],i=0;i<n.length;i++)e=n.charCodeAt(i),t=e>>8,r=e%256,o.push(r),o.push(t);return o}function M(n){return $.toByteArray(n)}function Y(n,e,t,r){for(var o=0;r>o&&!(o+t>=e.length||o>=n.length);o++)e[o+t]=n[o];return o}function Z(n){try{return decodeURIComponent(n)}catch(e){return String.fromCharCode(65533)}}function R(n,e){W("number"==typeof n,"cannot write a non-number as a number"),W(n>=0,"specified a negative value for writing an unsigned value"),W(e>=n,"value is larger than maximum value for type"),W(Math.floor(n)===n,"value has a fractional component")}function P(n,e,t){W("number"==typeof n,"cannot write a non-number as a number"),W(e>=n,"value larger than maximum allowed value"),W(n>=t,"value smaller than minimum allowed value"),W(Math.floor(n)===n,"value has a fractional component")}function q(n,e,t){W("number"==typeof n,"cannot write a non-number as a number"),W(e>=n,"value larger than maximum allowed value"),W(n>=t,"value smaller than minimum allowed value")}function W(n,e){if(!n)throw new Error(e||"Failed assertion")}var $=n("base64-js"),z=n("ieee754");t.Buffer=o,t.SlowBuffer=o,t.INSPECT_MAX_BYTES=50,o.poolSize=8192,o._useTypedArrays=function(){try{var n=new ArrayBuffer(0),e=new Uint8Array(n);return e.foo=function(){return 42},42===e.foo()&&"function"==typeof e.subarray}catch(t){return!1}}(),o.isEncoding=function(n){switch(String(n).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"raw":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},o.isBuffer=function(n){return!(null===n||void 0===n||!n._isBuffer)},o.byteLength=function(n,e){var t;switch(n+="",e||"utf8"){case"hex":t=n.length/2;break;case"utf8":case"utf-8":t=N(n).length;break;case"ascii":case"binary":case"raw":t=n.length;break;case"base64":t=M(n).length;break;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":t=2*n.length;break;default:throw new Error("Unknown encoding")}return t},o.concat=function(n,e){if(W(U(n),"Usage: Buffer.concat(list, [totalLength])\nlist should be an Array."),0===n.length)return new o(0);if(1===n.length)return n[0];var t;if("number"!=typeof e)for(e=0,t=0;t<n.length;t++)e+=n[t].length;var r=new o(e),i=0;for(t=0;t<n.length;t++){var u=n[t];u.copy(r,i),i+=u.length}return r},o.prototype.write=function(n,e,t,r){if(isFinite(e))isFinite(t)||(r=t,t=void 0);else{var o=r;r=e,e=t,t=o}e=Number(e)||0;var s=this.length-e;t?(t=Number(t),t>s&&(t=s)):t=s,r=String(r||"utf8").toLowerCase();var p;switch(r){case"hex":p=i(this,n,e,t);break;case"utf8":case"utf-8":p=u(this,n,e,t);break;case"ascii":p=a(this,n,e,t);break;case"binary":p=f(this,n,e,t);break;case"base64":p=l(this,n,e,t);break;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":p=c(this,n,e,t);break;default:throw new Error("Unknown encoding")}return p},o.prototype.toString=function(n,e,t){var r=this;if(n=String(n||"utf8").toLowerCase(),e=Number(e)||0,t=void 0!==t?Number(t):t=r.length,t===e)return"";var o;switch(n){case"hex":o=g(r,e,t);break;case"utf8":case"utf-8":o=p(r,e,t);break;case"ascii":o=h(r,e,t);break;case"binary":o=d(r,e,t);break;case"base64":o=s(r,e,t);break;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":o=v(r,e,t);break;default:throw new Error("Unknown encoding")}return o},o.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},o.prototype.copy=function(n,e,t,r){var i=this;if(t||(t=0),r||0===r||(r=this.length),e||(e=0),r!==t&&0!==n.length&&0!==i.length){W(r>=t,"sourceEnd < sourceStart"),W(e>=0&&e<n.length,"targetStart out of bounds"),W(t>=0&&t<i.length,"sourceStart out of bounds"),W(r>=0&&r<=i.length,"sourceEnd out of bounds"),r>this.length&&(r=this.length),n.length-e<r-t&&(r=n.length-e+t);var u=r-t;if(100>u||!o._useTypedArrays)for(var a=0;u>a;a++)n[a+e]=this[a+t];else n._set(this.subarray(t,t+u),e)}},o.prototype.slice=function(n,e){var t=this.length;if(n=C(n,t,0),e=C(e,t,t),o._useTypedArrays)return o._augment(this.subarray(n,e));for(var r=e-n,i=new o(r,void 0,!0),u=0;r>u;u++)i[u]=this[u+n];return i},o.prototype.get=function(n){return console.log(".get() is deprecated. Access using array indexes instead."),this.readUInt8(n)},o.prototype.set=function(n,e){return console.log(".set() is deprecated. Access using array indexes instead."),this.writeUInt8(n,e)},o.prototype.readUInt8=function(n,e){return e||(W(void 0!==n&&null!==n,"missing offset"),W(n<this.length,"Trying to read beyond buffer length")),n>=this.length?void 0:this[n]},o.prototype.readUInt16LE=function(n,e){return y(this,n,!0,e)},o.prototype.readUInt16BE=function(n,e){return y(this,n,!1,e)},o.prototype.readUInt32LE=function(n,e){return b(this,n,!0,e)},o.prototype.readUInt32BE=function(n,e){return b(this,n,!1,e)},o.prototype.readInt8=function(n,e){if(e||(W(void 0!==n&&null!==n,"missing offset"),W(n<this.length,"Trying to read beyond buffer length")),!(n>=this.length)){var t=128&this[n];return t?-1*(255-this[n]+1):this[n]}},o.prototype.readInt16LE=function(n,e){return m(this,n,!0,e)},o.prototype.readInt16BE=function(n,e){return m(this,n,!1,e)},o.prototype.readInt32LE=function(n,e){return w(this,n,!0,e)},o.prototype.readInt32BE=function(n,e){return w(this,n,!1,e)},o.prototype.readFloatLE=function(n,e){return _(this,n,!0,e)},o.prototype.readFloatBE=function(n,e){return _(this,n,!1,e)},o.prototype.readDoubleLE=function(n,e){return E(this,n,!0,e)},o.prototype.readDoubleBE=function(n,e){return E(this,n,!1,e)},o.prototype.writeUInt8=function(n,e,t){t||(W(void 0!==n&&null!==n,"missing value"),W(void 0!==e&&null!==e,"missing offset"),W(e<this.length,"trying to write beyond buffer length"),R(n,255)),e>=this.length||(this[e]=n)},o.prototype.writeUInt16LE=function(n,e,t){j(this,n,e,!0,t)},o.prototype.writeUInt16BE=function(n,e,t){j(this,n,e,!1,t)},o.prototype.writeUInt32LE=function(n,e,t){I(this,n,e,!0,t)},o.prototype.writeUInt32BE=function(n,e,t){I(this,n,e,!1,t)},o.prototype.writeInt8=function(n,e,t){t||(W(void 0!==n&&null!==n,"missing value"),W(void 0!==e&&null!==e,"missing offset"),W(e<this.length,"Trying to write beyond buffer length"),P(n,127,-128)),e>=this.length||(n>=0?this.writeUInt8(n,e,t):this.writeUInt8(255+n+1,e,t))},o.prototype.writeInt16LE=function(n,e,t){k(this,n,e,!0,t)},o.prototype.writeInt16BE=function(n,e,t){k(this,n,e,!1,t)},o.prototype.writeInt32LE=function(n,e,t){B(this,n,e,!0,t)},o.prototype.writeInt32BE=function(n,e,t){B(this,n,e,!1,t)},o.prototype.writeFloatLE=function(n,e,t){A(this,n,e,!0,t)},o.prototype.writeFloatBE=function(n,e,t){A(this,n,e,!1,t)},o.prototype.writeDoubleLE=function(n,e,t){x(this,n,e,!0,t)},o.prototype.writeDoubleBE=function(n,e,t){x(this,n,e,!1,t)},o.prototype.fill=function(n,e,t){if(n||(n=0),e||(e=0),t||(t=this.length),"string"==typeof n&&(n=n.charCodeAt(0)),W("number"==typeof n&&!isNaN(n),"value is not a number"),W(t>=e,"end < start"),t!==e&&0!==this.length){W(e>=0&&e<this.length,"start out of bounds"),W(t>=0&&t<=this.length,"end out of bounds");for(var r=e;t>r;r++)this[r]=n}},o.prototype.inspect=function(){for(var n=[],e=this.length,r=0;e>r;r++)if(n[r]=T(this[r]),r===t.INSPECT_MAX_BYTES){n[r+1]="...";break}return"<Buffer "+n.join(" ")+">"},o.prototype.toArrayBuffer=function(){if("undefined"!=typeof Uint8Array){if(o._useTypedArrays)return new o(this).buffer;for(var n=new Uint8Array(this.length),e=0,t=n.length;t>e;e+=1)n[e]=this[e];return n.buffer}throw new Error("Buffer.toArrayBuffer not supported in this browser")};var J=o.prototype;o._augment=function(n){return n._isBuffer=!0,n._get=n.get,n._set=n.set,n.get=J.get,n.set=J.set,n.write=J.write,n.toString=J.toString,n.toLocaleString=J.toString,n.toJSON=J.toJSON,n.copy=J.copy,n.slice=J.slice,n.readUInt8=J.readUInt8,n.readUInt16LE=J.readUInt16LE,n.readUInt16BE=J.readUInt16BE,n.readUInt32LE=J.readUInt32LE,n.readUInt32BE=J.readUInt32BE,n.readInt8=J.readInt8,n.readInt16LE=J.readInt16LE,n.readInt16BE=J.readInt16BE,n.readInt32LE=J.readInt32LE,n.readInt32BE=J.readInt32BE,n.readFloatLE=J.readFloatLE,n.readFloatBE=J.readFloatBE,n.readDoubleLE=J.readDoubleLE,n.readDoubleBE=J.readDoubleBE,n.writeUInt8=J.writeUInt8,n.writeUInt16LE=J.writeUInt16LE,n.writeUInt16BE=J.writeUInt16BE,n.writeUInt32LE=J.writeUInt32LE,n.writeUInt32BE=J.writeUInt32BE,n.writeInt8=J.writeInt8,n.writeInt16LE=J.writeInt16LE,n.writeInt16BE=J.writeInt16BE,n.writeInt32LE=J.writeInt32LE,n.writeInt32BE=J.writeInt32BE,n.writeFloatLE=J.writeFloatLE,n.writeFloatBE=J.writeFloatBE,n.writeDoubleLE=J.writeDoubleLE,n.writeDoubleBE=J.writeDoubleBE,n.fill=J.fill,n.inspect=J.inspect,n.toArrayBuffer=J.toArrayBuffer,n}}).call(this,n("1YiZ5S"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},n("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/../node_modules/gulp-browserify/node_modules/browserify/node_modules/buffer/index.js","/../node_modules/gulp-browserify/node_modules/browserify/node_modules/buffer")},{"1YiZ5S":10,"base64-js":8,buffer:7,ieee754:9}],8:[function(n,e,t){(function(){var n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";!function(e){"use strict";function t(n){var e=n.charCodeAt(0);return e===u?62:e===a?63:f>e?-1:f+10>e?e-f+26+26:c+26>e?e-c:l+26>e?e-l+26:void 0}function r(n){function e(n){l[s++]=n}var r,o,u,a,f,l;if(n.length%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var c=n.length;f="="===n.charAt(c-2)?2:"="===n.charAt(c-1)?1:0,l=new i(3*n.length/4-f),u=f>0?n.length-4:n.length;var s=0;for(r=0,o=0;u>r;r+=4,o+=3)a=t(n.charAt(r))<<18|t(n.charAt(r+1))<<12|t(n.charAt(r+2))<<6|t(n.charAt(r+3)),e((16711680&a)>>16),e((65280&a)>>8),e(255&a);return 2===f?(a=t(n.charAt(r))<<2|t(n.charAt(r+1))>>4,e(255&a)):1===f&&(a=t(n.charAt(r))<<10|t(n.charAt(r+1))<<4|t(n.charAt(r+2))>>2,e(a>>8&255),e(255&a)),l}function o(e){function t(e){return n.charAt(e)}function r(n){return t(n>>18&63)+t(n>>12&63)+t(n>>6&63)+t(63&n)}var o,i,u,a=e.length%3,f="";for(o=0,u=e.length-a;u>o;o+=3)i=(e[o]<<16)+(e[o+1]<<8)+e[o+2],f+=r(i);switch(a){case 1:i=e[e.length-1],f+=t(i>>2),f+=t(i<<4&63),f+="==";break;case 2:i=(e[e.length-2]<<8)+e[e.length-1],f+=t(i>>10),f+=t(i>>4&63),f+=t(i<<2&63),f+="="}return f}var i="undefined"!=typeof Uint8Array?Uint8Array:Array,u="+".charCodeAt(0),a="/".charCodeAt(0),f="0".charCodeAt(0),l="a".charCodeAt(0),c="A".charCodeAt(0);e.toByteArray=r,e.fromByteArray=o}("undefined"==typeof t?this.base64js={}:t)}).call(this,n("1YiZ5S"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},n("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/../node_modules/gulp-browserify/node_modules/browserify/node_modules/buffer/node_modules/base64-js/lib/b64.js","/../node_modules/gulp-browserify/node_modules/browserify/node_modules/buffer/node_modules/base64-js/lib")},{"1YiZ5S":10,buffer:7}],9:[function(n,e,t){(function(){t.read=function(n,e,t,r,o){var i,u,a=8*o-r-1,f=(1<<a)-1,l=f>>1,c=-7,s=t?o-1:0,p=t?-1:1,h=n[e+s];for(s+=p,i=h&(1<<-c)-1,h>>=-c,c+=a;c>0;i=256*i+n[e+s],s+=p,c-=8);for(u=i&(1<<-c)-1,i>>=-c,c+=r;c>0;u=256*u+n[e+s],s+=p,c-=8);if(0===i)i=1-l;else{if(i===f)return u?0/0:1/0*(h?-1:1);u+=Math.pow(2,r),i-=l}return(h?-1:1)*u*Math.pow(2,i-r)},t.write=function(n,e,t,r,o,i){var u,a,f,l=8*i-o-1,c=(1<<l)-1,s=c>>1,p=23===o?Math.pow(2,-24)-Math.pow(2,-77):0,h=r?0:i-1,d=r?1:-1,g=0>e||0===e&&0>1/e?1:0;for(e=Math.abs(e),isNaN(e)||1/0===e?(a=isNaN(e)?1:0,u=c):(u=Math.floor(Math.log(e)/Math.LN2),e*(f=Math.pow(2,-u))<1&&(u--,f*=2),e+=u+s>=1?p/f:p*Math.pow(2,1-s),e*f>=2&&(u++,f/=2),u+s>=c?(a=0,u=c):u+s>=1?(a=(e*f-1)*Math.pow(2,o),u+=s):(a=e*Math.pow(2,s-1)*Math.pow(2,o),u=0));o>=8;n[t+h]=255&a,h+=d,a/=256,o-=8);for(u=u<<o|a,l+=o;l>0;n[t+h]=255&u,h+=d,u/=256,l-=8);n[t+h-d]|=128*g}}).call(this,n("1YiZ5S"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},n("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/../node_modules/gulp-browserify/node_modules/browserify/node_modules/buffer/node_modules/ieee754/index.js","/../node_modules/gulp-browserify/node_modules/browserify/node_modules/buffer/node_modules/ieee754")},{"1YiZ5S":10,buffer:7}],10:[function(n,e){(function(n){function t(){}var n=e.exports={};n.nextTick=function(){var n="undefined"!=typeof window&&window.setImmediate,e="undefined"!=typeof window&&window.postMessage&&window.addEventListener;if(n)return function(n){return window.setImmediate(n)};if(e){var t=[];return window.addEventListener("message",function(n){var e=n.source;if((e===window||null===e)&&"process-tick"===n.data&&(n.stopPropagation(),t.length>0)){var r=t.shift();r()}},!0),function(n){t.push(n),window.postMessage("process-tick","*")}}return function(n){setTimeout(n,0)}}(),n.title="browser",n.browser=!0,n.env={},n.argv=[],n.on=t,n.addListener=t,n.once=t,n.off=t,n.removeListener=t,n.removeAllListeners=t,n.emit=t,n.binding=function(){throw new Error("process.binding is not supported")},n.cwd=function(){return"/"},n.chdir=function(){throw new Error("process.chdir is not supported")}}).call(this,n("1YiZ5S"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},n("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/../node_modules/gulp-browserify/node_modules/browserify/node_modules/process/browser.js","/../node_modules/gulp-browserify/node_modules/browserify/node_modules/process")},{"1YiZ5S":10,buffer:7}],11:[function(n,e,t){(function(n,r){(function(){function n(n,e,t){for(var r=(t||0)-1,o=n?n.length:0;++r<o;)if(n[r]===e)return r;return-1}function o(e,t){var r=typeof t;if(e=e.cache,"boolean"==r||null==t)return e[t]?0:-1;"number"!=r&&"string"!=r&&(r="object");var o="number"==r?t:w+t;return e=(e=e[r])&&e[o],"object"==r?e&&n(e,t)>-1?0:-1:e?0:-1}function i(n){var e=this.cache,t=typeof n;if("boolean"==t||null==n)e[n]=!0;else{"number"!=t&&"string"!=t&&(t="object");var r="number"==t?n:w+n,o=e[t]||(e[t]={});"object"==t?(o[r]||(o[r]=[])).push(n):o[r]=!0}}function u(n){return n.charCodeAt(0)}function a(n,e){for(var t=n.criteria,r=e.criteria,o=-1,i=t.length;++o<i;){var u=t[o],a=r[o];if(u!==a){if(u>a||"undefined"==typeof u)return 1;if(a>u||"undefined"==typeof a)return-1}}return n.index-e.index}function f(n){var e=-1,t=n.length,r=n[0],o=n[t/2|0],u=n[t-1];if(r&&"object"==typeof r&&o&&"object"==typeof o&&u&&"object"==typeof u)return!1;var a=s();a["false"]=a["null"]=a["true"]=a.undefined=!1;var f=s();for(f.array=n,f.cache=a,f.push=i;++e<t;)f.push(n[e]);return f}function l(n){return"\\"+V[n]}function c(){return y.pop()||[]}function s(){return b.pop()||{array:null,cache:null,criteria:null,"false":!1,index:0,"null":!1,number:null,object:null,push:null,string:null,"true":!1,undefined:!1,value:null}}function p(n){n.length=0,y.length<E&&y.push(n)}function h(n){var e=n.cache;e&&h(e),n.array=n.cache=n.criteria=n.object=n.number=n.string=n.value=null,b.length<E&&b.push(n)}function d(n,e,t){e||(e=0),"undefined"==typeof t&&(t=n?n.length:0);for(var r=-1,o=t-e||0,i=Array(0>o?0:o);++r<o;)i[r]=n[e+r];return i}function g(e){function t(n){return n&&"object"==typeof n&&!Xr(n)&&Or.call(n,"__wrapped__")?n:new r(n)}function r(n,e){this.__chain__=!!e,this.__wrapped__=n}function i(n){function e(){if(r){var n=d(r);Tr.apply(n,arguments)}if(this instanceof e){var i=b(t.prototype),u=t.apply(i,n||arguments);return Ce(u)?u:i}return t.apply(o,n||arguments)}var t=n[0],r=n[2],o=n[4];return Vr(e,n),e}function y(n,e,t,r,o){if(t){var i=t(n);if("undefined"!=typeof i)return i}var u=Ce(n);if(!u)return n;var a=Br.call(n);if(!z[a])return n;var f=Kr[a];switch(a){case Y:case Z:return new f(+n);case P:case $:return new f(n);case W:return i=f(n.source,x.exec(n)),i.lastIndex=n.lastIndex,i}var l=Xr(n);if(e){var s=!r;r||(r=c()),o||(o=c());for(var h=r.length;h--;)if(r[h]==n)return o[h];i=l?f(n.length):{}}else i=l?d(n):oo({},n);return l&&(Or.call(n,"index")&&(i.index=n.index),Or.call(n,"input")&&(i.input=n.input)),e?(r.push(n),o.push(i),(l?Ve:ao)(n,function(n,u){i[u]=y(n,e,t,r,o)}),s&&(p(r),p(o)),i):i}function b(n){return Ce(n)?Yr(n):{}}function E(n,e,t){if("function"!=typeof n)return Xt;if("undefined"==typeof e||!("prototype"in n))return n;var r=n.__bindData__;if("undefined"==typeof r&&(Gr.funcNames&&(r=!n.name),r=r||!Gr.funcDecomp,!r)){var o=Lr.call(n);Gr.funcNames||(r=!S.test(o)),r||(r=O.test(o),Vr(n,r))}if(r===!1||r!==!0&&1&r[1])return n;switch(t){case 1:return function(t){return n.call(e,t)};case 2:return function(t,r){return n.call(e,t,r)};case 3:return function(t,r,o){return n.call(e,t,r,o)};case 4:return function(t,r,o,i){return n.call(e,t,r,o,i)}}return Tt(n,e)}function V(n){function e(){var n=f?u:this;if(o){var h=d(o);Tr.apply(h,arguments)}if((i||c)&&(h||(h=d(arguments)),i&&Tr.apply(h,i),c&&h.length<a))return r|=16,V([t,s?r:-4&r,h,null,u,a]);if(h||(h=arguments),l&&(t=n[p]),this instanceof e){n=b(t.prototype);var g=t.apply(n,h);return Ce(g)?g:n}return t.apply(n,h)}var t=n[0],r=n[1],o=n[2],i=n[3],u=n[4],a=n[5],f=1&r,l=2&r,c=4&r,s=8&r,p=t;return Vr(e,n),e}function H(e,t){var r=-1,i=fe(),u=e?e.length:0,a=u>=_&&i===n,l=[];if(a){var c=f(t);c?(i=o,t=c):a=!1}for(;++r<u;){var s=e[r];i(t,s)<0&&l.push(s)}return a&&h(t),l}function Q(n,e,t,r){for(var o=(r||0)-1,i=n?n.length:0,u=[];++o<i;){var a=n[o];if(a&&"object"==typeof a&&"number"==typeof a.length&&(Xr(a)||pe(a))){e||(a=Q(a,e,t));var f=-1,l=a.length,c=u.length;for(u.length+=l;++f<l;)u[c++]=a[f]}else t||u.push(a)}return u}function ne(n,e,t,r,o,i){if(t){var u=t(n,e);if("undefined"!=typeof u)return!!u}if(n===e)return 0!==n||1/n==1/e;var a=typeof n,f=typeof e;if(!(n!==n||n&&G[a]||e&&G[f]))return!1;if(null==n||null==e)return n===e;var l=Br.call(n),s=Br.call(e);if(l==F&&(l=q),s==F&&(s=q),l!=s)return!1;switch(l){case Y:case Z:return+n==+e;case P:return n!=+n?e!=+e:0==n?1/n==1/e:n==+e;case W:case $:return n==_r(e)}var h=l==M;if(!h){var d=Or.call(n,"__wrapped__"),g=Or.call(e,"__wrapped__");if(d||g)return ne(d?n.__wrapped__:n,g?e.__wrapped__:e,t,r,o,i);if(l!=q)return!1;var v=n.constructor,y=e.constructor;if(v!=y&&!(Se(v)&&v instanceof v&&Se(y)&&y instanceof y)&&"constructor"in n&&"constructor"in e)return!1}var b=!o;o||(o=c()),i||(i=c());for(var m=o.length;m--;)if(o[m]==n)return i[m]==e;var w=0;if(u=!0,o.push(n),i.push(e),h){if(m=n.length,w=e.length,u=w==m,u||r)for(;w--;){var _=m,E=e[w];if(r)for(;_--&&!(u=ne(n[_],E,t,r,o,i)););else if(!(u=ne(n[w],E,t,r,o,i)))break}}else uo(e,function(e,a,f){return Or.call(f,a)?(w++,u=Or.call(n,a)&&ne(n[a],e,t,r,o,i)):void 0}),u&&!r&&uo(n,function(n,e,t){return Or.call(t,e)?u=--w>-1:void 0});return o.pop(),i.pop(),b&&(p(o),p(i)),u}function ee(n,e,t,r,o){(Xr(e)?Ve:ao)(e,function(e,i){var u,a,f=e,l=n[i];
|
2
|
+
if(e&&((a=Xr(e))||fo(e))){for(var c=r.length;c--;)if(u=r[c]==e){l=o[c];break}if(!u){var s;t&&(f=t(l,e),(s="undefined"!=typeof f)&&(l=f)),s||(l=a?Xr(l)?l:[]:fo(l)?l:{}),r.push(e),o.push(l),s||ee(l,e,t,r,o)}}else t&&(f=t(l,e),"undefined"==typeof f&&(f=e)),"undefined"!=typeof f&&(l=f);n[i]=l})}function re(n,e){return n+Cr(Jr()*(e-n+1))}function oe(e,t,r){var i=-1,u=fe(),a=e?e.length:0,l=[],s=!t&&a>=_&&u===n,d=r||s?c():l;if(s){var g=f(d);u=o,d=g}for(;++i<a;){var v=e[i],y=r?r(v,i,e):v;(t?!i||d[d.length-1]!==y:u(d,y)<0)&&((r||s)&&d.push(y),l.push(v))}return s?(p(d.array),h(d)):r&&p(d),l}function ie(n){return function(e,r,o){var i={};r=t.createCallback(r,o,3);var u=-1,a=e?e.length:0;if("number"==typeof a)for(;++u<a;){var f=e[u];n(i,f,r(f,u,e),e)}else ao(e,function(e,t,o){n(i,e,r(e,t,o),o)});return i}}function ue(n,e,t,r,o,u){var a=1&e,f=2&e,l=4&e,c=16&e,s=32&e;if(!f&&!Se(n))throw new Er;c&&!t.length&&(e&=-17,c=t=!1),s&&!r.length&&(e&=-33,s=r=!1);var p=n&&n.__bindData__;if(p&&p!==!0)return p=d(p),p[2]&&(p[2]=d(p[2])),p[3]&&(p[3]=d(p[3])),!a||1&p[1]||(p[4]=o),!a&&1&p[1]&&(e|=8),!l||4&p[1]||(p[5]=u),c&&Tr.apply(p[2]||(p[2]=[]),t),s&&Fr.apply(p[3]||(p[3]=[]),r),p[1]|=e,ue.apply(null,p);var h=1==e||17===e?i:V;return h([n,e,t,r,o,u])}function ae(n){return no[n]}function fe(){var e=(e=t.indexOf)===yt?n:e;return e}function le(n){return"function"==typeof n&&Ar.test(n)}function ce(n){var e,t;return n&&Br.call(n)==q&&(e=n.constructor,!Se(e)||e instanceof e)?(uo(n,function(n,e){t=e}),"undefined"==typeof t||Or.call(n,t)):!1}function se(n){return eo[n]}function pe(n){return n&&"object"==typeof n&&"number"==typeof n.length&&Br.call(n)==F||!1}function he(n,e,t,r){return"boolean"!=typeof e&&null!=e&&(r=t,t=e,e=!1),y(n,e,"function"==typeof t&&E(t,r,1))}function de(n,e,t){return y(n,!0,"function"==typeof e&&E(e,t,1))}function ge(n,e){var t=b(n);return e?oo(t,e):t}function ve(n,e,r){var o;return e=t.createCallback(e,r,3),ao(n,function(n,t,r){return e(n,t,r)?(o=t,!1):void 0}),o}function ye(n,e,r){var o;return e=t.createCallback(e,r,3),me(n,function(n,t,r){return e(n,t,r)?(o=t,!1):void 0}),o}function be(n,e,t){var r=[];uo(n,function(n,e){r.push(e,n)});var o=r.length;for(e=E(e,t,3);o--&&e(r[o--],r[o],n)!==!1;);return n}function me(n,e,t){var r=Qr(n),o=r.length;for(e=E(e,t,3);o--;){var i=r[o];if(e(n[i],i,n)===!1)break}return n}function we(n){var e=[];return uo(n,function(n,t){Se(n)&&e.push(t)}),e.sort()}function _e(n,e){return n?Or.call(n,e):!1}function Ee(n){for(var e=-1,t=Qr(n),r=t.length,o={};++e<r;){var i=t[e];o[n[i]]=i}return o}function je(n){return n===!0||n===!1||n&&"object"==typeof n&&Br.call(n)==Y||!1}function Ie(n){return n&&"object"==typeof n&&Br.call(n)==Z||!1}function ke(n){return n&&1===n.nodeType||!1}function Be(n){var e=!0;if(!n)return e;var t=Br.call(n),r=n.length;return t==M||t==$||t==F||t==q&&"number"==typeof r&&Se(n.splice)?!r:(ao(n,function(){return e=!1}),e)}function Ae(n,e,t,r){return ne(n,e,"function"==typeof t&&E(t,r,2))}function xe(n){return Rr(n)&&!Pr(parseFloat(n))}function Se(n){return"function"==typeof n}function Ce(n){return!(!n||!G[typeof n])}function Le(n){return Oe(n)&&n!=+n}function Ue(n){return null===n}function Oe(n){return"number"==typeof n||n&&"object"==typeof n&&Br.call(n)==P||!1}function Te(n){return n&&"object"==typeof n&&Br.call(n)==W||!1}function Ne(n){return"string"==typeof n||n&&"object"==typeof n&&Br.call(n)==$||!1}function De(n){return"undefined"==typeof n}function Fe(n,e,r){var o={};return e=t.createCallback(e,r,3),ao(n,function(n,t,r){o[t]=e(n,t,r)}),o}function Me(n){var e=arguments,t=2;if(!Ce(n))return n;if("number"!=typeof e[2]&&(t=e.length),t>3&&"function"==typeof e[t-2])var r=E(e[--t-1],e[t--],2);else t>2&&"function"==typeof e[t-1]&&(r=e[--t]);for(var o=d(arguments,1,t),i=-1,u=c(),a=c();++i<t;)ee(n,o[i],r,u,a);return p(u),p(a),n}function Ye(n,e,r){var o={};if("function"!=typeof e){var i=[];uo(n,function(n,e){i.push(e)}),i=H(i,Q(arguments,!0,!1,1));for(var u=-1,a=i.length;++u<a;){var f=i[u];o[f]=n[f]}}else e=t.createCallback(e,r,3),uo(n,function(n,t,r){e(n,t,r)||(o[t]=n)});return o}function Ze(n){for(var e=-1,t=Qr(n),r=t.length,o=hr(r);++e<r;){var i=t[e];o[e]=[i,n[i]]}return o}function Re(n,e,r){var o={};if("function"!=typeof e)for(var i=-1,u=Q(arguments,!0,!1,1),a=Ce(n)?u.length:0;++i<a;){var f=u[i];f in n&&(o[f]=n[f])}else e=t.createCallback(e,r,3),uo(n,function(n,t,r){e(n,t,r)&&(o[t]=n)});return o}function Pe(n,e,r,o){var i=Xr(n);if(null==r)if(i)r=[];else{var u=n&&n.constructor,a=u&&u.prototype;r=b(a)}return e&&(e=t.createCallback(e,o,4),(i?Ve:ao)(n,function(n,t,o){return e(r,n,t,o)})),r}function qe(n){for(var e=-1,t=Qr(n),r=t.length,o=hr(r);++e<r;)o[e]=n[t[e]];return o}function We(n){for(var e=arguments,t=-1,r=Q(e,!0,!1,1),o=e[2]&&e[2][e[1]]===n?1:r.length,i=hr(o);++t<o;)i[t]=n[r[t]];return i}function $e(n,e,t){var r=-1,o=fe(),i=n?n.length:0,u=!1;return t=(0>t?Wr(0,i+t):t)||0,Xr(n)?u=o(n,e,t)>-1:"number"==typeof i?u=(Ne(n)?n.indexOf(e,t):o(n,e,t))>-1:ao(n,function(n){return++r>=t?!(u=n===e):void 0}),u}function ze(n,e,r){var o=!0;e=t.createCallback(e,r,3);var i=-1,u=n?n.length:0;if("number"==typeof u)for(;++i<u&&(o=!!e(n[i],i,n)););else ao(n,function(n,t,r){return o=!!e(n,t,r)});return o}function Je(n,e,r){var o=[];e=t.createCallback(e,r,3);var i=-1,u=n?n.length:0;if("number"==typeof u)for(;++i<u;){var a=n[i];e(a,i,n)&&o.push(a)}else ao(n,function(n,t,r){e(n,t,r)&&o.push(n)});return o}function Ke(n,e,r){e=t.createCallback(e,r,3);var o=-1,i=n?n.length:0;if("number"!=typeof i){var u;return ao(n,function(n,t,r){return e(n,t,r)?(u=n,!1):void 0}),u}for(;++o<i;){var a=n[o];if(e(a,o,n))return a}}function Ge(n,e,r){var o;return e=t.createCallback(e,r,3),Xe(n,function(n,t,r){return e(n,t,r)?(o=n,!1):void 0}),o}function Ve(n,e,t){var r=-1,o=n?n.length:0;if(e=e&&"undefined"==typeof t?e:E(e,t,3),"number"==typeof o)for(;++r<o&&e(n[r],r,n)!==!1;);else ao(n,e);return n}function Xe(n,e,t){var r=n?n.length:0;if(e=e&&"undefined"==typeof t?e:E(e,t,3),"number"==typeof r)for(;r--&&e(n[r],r,n)!==!1;);else{var o=Qr(n);r=o.length,ao(n,function(n,t,i){return t=o?o[--r]:--r,e(i[t],t,i)})}return n}function He(n,e){var t=d(arguments,2),r=-1,o="function"==typeof e,i=n?n.length:0,u=hr("number"==typeof i?i:0);return Ve(n,function(n){u[++r]=(o?e:n[e]).apply(n,t)}),u}function Qe(n,e,r){var o=-1,i=n?n.length:0;if(e=t.createCallback(e,r,3),"number"==typeof i)for(var u=hr(i);++o<i;)u[o]=e(n[o],o,n);else u=[],ao(n,function(n,t,r){u[++o]=e(n,t,r)});return u}function nt(n,e,r){var o=-1/0,i=o;if("function"!=typeof e&&r&&r[e]===n&&(e=null),null==e&&Xr(n))for(var a=-1,f=n.length;++a<f;){var l=n[a];l>i&&(i=l)}else e=null==e&&Ne(n)?u:t.createCallback(e,r,3),Ve(n,function(n,t,r){var u=e(n,t,r);u>o&&(o=u,i=n)});return i}function et(n,e,r){var o=1/0,i=o;if("function"!=typeof e&&r&&r[e]===n&&(e=null),null==e&&Xr(n))for(var a=-1,f=n.length;++a<f;){var l=n[a];i>l&&(i=l)}else e=null==e&&Ne(n)?u:t.createCallback(e,r,3),Ve(n,function(n,t,r){var u=e(n,t,r);o>u&&(o=u,i=n)});return i}function tt(n,e,r,o){if(!n)return r;var i=arguments.length<3;e=t.createCallback(e,o,4);var u=-1,a=n.length;if("number"==typeof a)for(i&&(r=n[++u]);++u<a;)r=e(r,n[u],u,n);else ao(n,function(n,t,o){r=i?(i=!1,n):e(r,n,t,o)});return r}function rt(n,e,r,o){var i=arguments.length<3;return e=t.createCallback(e,o,4),Xe(n,function(n,t,o){r=i?(i=!1,n):e(r,n,t,o)}),r}function ot(n,e,r){return e=t.createCallback(e,r,3),Je(n,function(n,t,r){return!e(n,t,r)})}function it(n,e,t){if(n&&"number"!=typeof n.length&&(n=qe(n)),null==e||t)return n?n[re(0,n.length-1)]:v;var r=ut(n);return r.length=$r(Wr(0,e),r.length),r}function ut(n){var e=-1,t=n?n.length:0,r=hr("number"==typeof t?t:0);return Ve(n,function(n){var t=re(0,++e);r[e]=r[t],r[t]=n}),r}function at(n){var e=n?n.length:0;return"number"==typeof e?e:Qr(n).length}function ft(n,e,r){var o;e=t.createCallback(e,r,3);var i=-1,u=n?n.length:0;if("number"==typeof u)for(;++i<u&&!(o=e(n[i],i,n)););else ao(n,function(n,t,r){return!(o=e(n,t,r))});return!!o}function lt(n,e,r){var o=-1,i=Xr(e),u=n?n.length:0,f=hr("number"==typeof u?u:0);for(i||(e=t.createCallback(e,r,3)),Ve(n,function(n,t,r){var u=f[++o]=s();i?u.criteria=Qe(e,function(e){return n[e]}):(u.criteria=c())[0]=e(n,t,r),u.index=o,u.value=n}),u=f.length,f.sort(a);u--;){var l=f[u];f[u]=l.value,i||p(l.criteria),h(l)}return f}function ct(n){return n&&"number"==typeof n.length?d(n):qe(n)}function st(n){for(var e=-1,t=n?n.length:0,r=[];++e<t;){var o=n[e];o&&r.push(o)}return r}function pt(n){return H(n,Q(arguments,!0,!0,1))}function ht(n,e,r){var o=-1,i=n?n.length:0;for(e=t.createCallback(e,r,3);++o<i;)if(e(n[o],o,n))return o;return-1}function dt(n,e,r){var o=n?n.length:0;for(e=t.createCallback(e,r,3);o--;)if(e(n[o],o,n))return o;return-1}function gt(n,e,r){var o=0,i=n?n.length:0;if("number"!=typeof e&&null!=e){var u=-1;for(e=t.createCallback(e,r,3);++u<i&&e(n[u],u,n);)o++}else if(o=e,null==o||r)return n?n[0]:v;return d(n,0,$r(Wr(0,o),i))}function vt(n,e,t,r){return"boolean"!=typeof e&&null!=e&&(r=t,t="function"!=typeof e&&r&&r[e]===n?null:e,e=!1),null!=t&&(n=Qe(n,t,r)),Q(n,e)}function yt(e,t,r){if("number"==typeof r){var o=e?e.length:0;r=0>r?Wr(0,o+r):r||0}else if(r){var i=Bt(e,t);return e[i]===t?i:-1}return n(e,t,r)}function bt(n,e,r){var o=0,i=n?n.length:0;if("number"!=typeof e&&null!=e){var u=i;for(e=t.createCallback(e,r,3);u--&&e(n[u],u,n);)o++}else o=null==e||r?1:e||o;return d(n,0,$r(Wr(0,i-o),i))}function mt(){for(var e=[],t=-1,r=arguments.length,i=c(),u=fe(),a=u===n,l=c();++t<r;){var s=arguments[t];(Xr(s)||pe(s))&&(e.push(s),i.push(a&&s.length>=_&&f(t?e[t]:l)))}var d=e[0],g=-1,v=d?d.length:0,y=[];n:for(;++g<v;){var b=i[0];if(s=d[g],(b?o(b,s):u(l,s))<0){for(t=r,(b||l).push(s);--t;)if(b=i[t],(b?o(b,s):u(e[t],s))<0)continue n;y.push(s)}}for(;r--;)b=i[r],b&&h(b);return p(i),p(l),y}function wt(n,e,r){var o=0,i=n?n.length:0;if("number"!=typeof e&&null!=e){var u=i;for(e=t.createCallback(e,r,3);u--&&e(n[u],u,n);)o++}else if(o=e,null==o||r)return n?n[i-1]:v;return d(n,Wr(0,i-o))}function _t(n,e,t){var r=n?n.length:0;for("number"==typeof t&&(r=(0>t?Wr(0,r+t):$r(t,r-1))+1);r--;)if(n[r]===e)return r;return-1}function Et(n){for(var e=arguments,t=0,r=e.length,o=n?n.length:0;++t<r;)for(var i=-1,u=e[t];++i<o;)n[i]===u&&(Dr.call(n,i--,1),o--);return n}function jt(n,e,t){n=+n||0,t="number"==typeof t?t:+t||1,null==e&&(e=n,n=0);for(var r=-1,o=Wr(0,xr((e-n)/(t||1))),i=hr(o);++r<o;)i[r]=n,n+=t;return i}function It(n,e,r){var o=-1,i=n?n.length:0,u=[];for(e=t.createCallback(e,r,3);++o<i;){var a=n[o];e(a,o,n)&&(u.push(a),Dr.call(n,o--,1),i--)}return u}function kt(n,e,r){if("number"!=typeof e&&null!=e){var o=0,i=-1,u=n?n.length:0;for(e=t.createCallback(e,r,3);++i<u&&e(n[i],i,n);)o++}else o=null==e||r?1:Wr(0,e);return d(n,o)}function Bt(n,e,r,o){var i=0,u=n?n.length:i;for(r=r?t.createCallback(r,o,1):Xt,e=r(e);u>i;){var a=i+u>>>1;r(n[a])<e?i=a+1:u=a}return i}function At(){return oe(Q(arguments,!0,!0))}function xt(n,e,r,o){return"boolean"!=typeof e&&null!=e&&(o=r,r="function"!=typeof e&&o&&o[e]===n?null:e,e=!1),null!=r&&(r=t.createCallback(r,o,3)),oe(n,e,r)}function St(n){return H(n,d(arguments,1))}function Ct(){for(var n=-1,e=arguments.length;++n<e;){var t=arguments[n];if(Xr(t)||pe(t))var r=r?oe(H(r,t).concat(H(t,r))):t}return r||[]}function Lt(){for(var n=arguments.length>1?arguments:arguments[0],e=-1,t=n?nt(po(n,"length")):0,r=hr(0>t?0:t);++e<t;)r[e]=po(n,e);return r}function Ut(n,e){var t=-1,r=n?n.length:0,o={};for(e||!r||Xr(n[0])||(e=[]);++t<r;){var i=n[t];e?o[i]=e[t]:i&&(o[i[0]]=i[1])}return o}function Ot(n,e){if(!Se(e))throw new Er;return function(){return--n<1?e.apply(this,arguments):void 0}}function Tt(n,e){return arguments.length>2?ue(n,17,d(arguments,2),null,e):ue(n,1,null,null,e)}function Nt(n){for(var e=arguments.length>1?Q(arguments,!0,!1,1):we(n),t=-1,r=e.length;++t<r;){var o=e[t];n[o]=ue(n[o],1,null,null,n)}return n}function Dt(n,e){return arguments.length>2?ue(e,19,d(arguments,2),null,n):ue(e,3,null,null,n)}function Ft(){for(var n=arguments,e=n.length;e--;)if(!Se(n[e]))throw new Er;return function(){for(var e=arguments,t=n.length;t--;)e=[n[t].apply(this,e)];return e[0]}}function Mt(n,e){return e="number"==typeof e?e:+e||n.length,ue(n,4,null,null,null,e)}function Yt(n,e,t){var r,o,i,u,a,f,l,c=0,s=!1,p=!0;if(!Se(n))throw new Er;if(e=Wr(0,e)||0,t===!0){var h=!0;p=!1}else Ce(t)&&(h=t.leading,s="maxWait"in t&&(Wr(e,t.maxWait)||0),p="trailing"in t?t.trailing:p);var d=function(){var t=e-(go()-u);if(0>=t){o&&Sr(o);var s=l;o=f=l=v,s&&(c=go(),i=n.apply(a,r),f||o||(r=a=null))}else f=Nr(d,t)},g=function(){f&&Sr(f),o=f=l=v,(p||s!==e)&&(c=go(),i=n.apply(a,r),f||o||(r=a=null))};return function(){if(r=arguments,u=go(),a=this,l=p&&(f||!h),s===!1)var t=h&&!f;else{o||h||(c=u);var v=s-(u-c),y=0>=v;y?(o&&(o=Sr(o)),c=u,i=n.apply(a,r)):o||(o=Nr(g,v))}return y&&f?f=Sr(f):f||e===s||(f=Nr(d,e)),t&&(y=!0,i=n.apply(a,r)),!y||f||o||(r=a=null),i}}function Zt(n){if(!Se(n))throw new Er;var e=d(arguments,1);return Nr(function(){n.apply(v,e)},1)}function Rt(n,e){if(!Se(n))throw new Er;var t=d(arguments,2);return Nr(function(){n.apply(v,t)},e)}function Pt(n,e){if(!Se(n))throw new Er;var t=function(){var r=t.cache,o=e?e.apply(this,arguments):w+arguments[0];return Or.call(r,o)?r[o]:r[o]=n.apply(this,arguments)};return t.cache={},t}function qt(n){var e,t;if(!Se(n))throw new Er;return function(){return e?t:(e=!0,t=n.apply(this,arguments),n=null,t)}}function Wt(n){return ue(n,16,d(arguments,1))}function $t(n){return ue(n,32,null,d(arguments,1))}function zt(n,e,t){var r=!0,o=!0;if(!Se(n))throw new Er;return t===!1?r=!1:Ce(t)&&(r="leading"in t?t.leading:r,o="trailing"in t?t.trailing:o),J.leading=r,J.maxWait=e,J.trailing=o,Yt(n,e,J)}function Jt(n,e){return ue(e,16,[n])}function Kt(n){return function(){return n}}function Gt(n,e,t){var r=typeof n;if(null==n||"function"==r)return E(n,e,t);if("object"!=r)return er(n);var o=Qr(n),i=o[0],u=n[i];return 1!=o.length||u!==u||Ce(u)?function(e){for(var t=o.length,r=!1;t--&&(r=ne(e[o[t]],n[o[t]],null,!0)););return r}:function(n){var e=n[i];return u===e&&(0!==u||1/u==1/e)}}function Vt(n){return null==n?"":_r(n).replace(ro,ae)}function Xt(n){return n}function Ht(n,e,o){var i=!0,u=e&&we(e);e&&(o||u.length)||(null==o&&(o=e),a=r,e=n,n=t,u=we(e)),o===!1?i=!1:Ce(o)&&"chain"in o&&(i=o.chain);var a=n,f=Se(a);Ve(u,function(t){var r=n[t]=e[t];f&&(a.prototype[t]=function(){var e=this.__chain__,t=this.__wrapped__,o=[t];Tr.apply(o,arguments);var u=r.apply(n,o);if(i||e){if(t===u&&Ce(u))return this;u=new a(u),u.__chain__=e}return u})})}function Qt(){return e._=kr,this}function nr(){}function er(n){return function(e){return e[n]}}function tr(n,e,t){var r=null==n,o=null==e;if(null==t&&("boolean"==typeof n&&o?(t=n,n=1):o||"boolean"!=typeof e||(t=e,o=!0)),r&&o&&(e=1),n=+n||0,o?(e=n,n=0):e=+e||0,t||n%1||e%1){var i=Jr();return $r(n+i*(e-n+parseFloat("1e-"+((i+"").length-1))),e)}return re(n,e)}function rr(n,e){if(n){var t=n[e];return Se(t)?n[e]():t}}function or(n,e,r){var o=t.templateSettings;n=_r(n||""),r=io({},r,o);var i,u=io({},r.imports,o.imports),a=Qr(u),f=qe(u),c=0,s=r.interpolate||U,p="__p += '",h=wr((r.escape||U).source+"|"+s.source+"|"+(s===C?A:U).source+"|"+(r.evaluate||U).source+"|$","g");n.replace(h,function(e,t,r,o,u,a){return r||(r=o),p+=n.slice(c,a).replace(T,l),t&&(p+="' +\n__e("+t+") +\n'"),u&&(i=!0,p+="';\n"+u+";\n__p += '"),r&&(p+="' +\n((__t = ("+r+")) == null ? '' : __t) +\n'"),c=a+e.length,e}),p+="';\n";var d=r.variable,g=d;g||(d="obj",p="with ("+d+") {\n"+p+"\n}\n"),p=(i?p.replace(I,""):p).replace(k,"$1").replace(B,"$1;"),p="function("+d+") {\n"+(g?"":d+" || ("+d+" = {});\n")+"var __t, __p = '', __e = _.escape"+(i?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+p+"return __p\n}";var y="\n/*\n//# sourceURL="+(r.sourceURL||"/lodash/template/source["+D++ +"]")+"\n*/";try{var b=vr(a,"return "+p+y).apply(v,f)}catch(m){throw m.source=p,m}return e?b(e):(b.source=p,b)}function ir(n,e,t){n=(n=+n)>-1?n:0;var r=-1,o=hr(n);for(e=E(e,t,1);++r<n;)o[r]=e(r);return o}function ur(n){return null==n?"":_r(n).replace(to,se)}function ar(n){var e=++m;return _r(null==n?"":n)+e}function fr(n){return n=new r(n),n.__chain__=!0,n}function lr(n,e){return e(n),n}function cr(){return this.__chain__=!0,this}function sr(){return _r(this.__wrapped__)}function pr(){return this.__wrapped__}e=e?te.defaults(X.Object(),e,te.pick(X,N)):X;var hr=e.Array,dr=e.Boolean,gr=e.Date,vr=e.Function,yr=e.Math,br=e.Number,mr=e.Object,wr=e.RegExp,_r=e.String,Er=e.TypeError,jr=[],Ir=mr.prototype,kr=e._,Br=Ir.toString,Ar=wr("^"+_r(Br).replace(/[.*+?^${}()|[\]\\]/g,"\\$&").replace(/toString| for [^\]]+/g,".*?")+"$"),xr=yr.ceil,Sr=e.clearTimeout,Cr=yr.floor,Lr=vr.prototype.toString,Ur=le(Ur=mr.getPrototypeOf)&&Ur,Or=Ir.hasOwnProperty,Tr=jr.push,Nr=e.setTimeout,Dr=jr.splice,Fr=jr.unshift,Mr=function(){try{var n={},e=le(e=mr.defineProperty)&&e,t=e(n,n,n)&&e}catch(r){}return t}(),Yr=le(Yr=mr.create)&&Yr,Zr=le(Zr=hr.isArray)&&Zr,Rr=e.isFinite,Pr=e.isNaN,qr=le(qr=mr.keys)&&qr,Wr=yr.max,$r=yr.min,zr=e.parseInt,Jr=yr.random,Kr={};Kr[M]=hr,Kr[Y]=dr,Kr[Z]=gr,Kr[R]=vr,Kr[q]=mr,Kr[P]=br,Kr[W]=wr,Kr[$]=_r,r.prototype=t.prototype;var Gr=t.support={};Gr.funcDecomp=!le(e.WinRTError)&&O.test(g),Gr.funcNames="string"==typeof vr.name,t.templateSettings={escape:/<%-([\s\S]+?)%>/g,evaluate:/<%([\s\S]+?)%>/g,interpolate:C,variable:"",imports:{_:t}},Yr||(b=function(){function n(){}return function(t){if(Ce(t)){n.prototype=t;var r=new n;n.prototype=null}return r||e.Object()}}());var Vr=Mr?function(n,e){K.value=e,Mr(n,"__bindData__",K)}:nr,Xr=Zr||function(n){return n&&"object"==typeof n&&"number"==typeof n.length&&Br.call(n)==M||!1},Hr=function(n){var e,t=n,r=[];if(!t)return r;if(!G[typeof n])return r;for(e in t)Or.call(t,e)&&r.push(e);return r},Qr=qr?function(n){return Ce(n)?qr(n):[]}:Hr,no={"&":"&","<":"<",">":">",'"':""","'":"'"},eo=Ee(no),to=wr("("+Qr(eo).join("|")+")","g"),ro=wr("["+Qr(no).join("")+"]","g"),oo=function(n,e,t){var r,o=n,i=o;if(!o)return i;var u=arguments,a=0,f="number"==typeof t?2:u.length;if(f>3&&"function"==typeof u[f-2])var l=E(u[--f-1],u[f--],2);else f>2&&"function"==typeof u[f-1]&&(l=u[--f]);for(;++a<f;)if(o=u[a],o&&G[typeof o])for(var c=-1,s=G[typeof o]&&Qr(o),p=s?s.length:0;++c<p;)r=s[c],i[r]=l?l(i[r],o[r]):o[r];return i},io=function(n,e,t){var r,o=n,i=o;if(!o)return i;for(var u=arguments,a=0,f="number"==typeof t?2:u.length;++a<f;)if(o=u[a],o&&G[typeof o])for(var l=-1,c=G[typeof o]&&Qr(o),s=c?c.length:0;++l<s;)r=c[l],"undefined"==typeof i[r]&&(i[r]=o[r]);return i},uo=function(n,e,t){var r,o=n,i=o;if(!o)return i;if(!G[typeof o])return i;e=e&&"undefined"==typeof t?e:E(e,t,3);for(r in o)if(e(o[r],r,n)===!1)return i;return i},ao=function(n,e,t){var r,o=n,i=o;if(!o)return i;if(!G[typeof o])return i;e=e&&"undefined"==typeof t?e:E(e,t,3);for(var u=-1,a=G[typeof o]&&Qr(o),f=a?a.length:0;++u<f;)if(r=a[u],e(o[r],r,n)===!1)return i;return i},fo=Ur?function(n){if(!n||Br.call(n)!=q)return!1;var e=n.valueOf,t=le(e)&&(t=Ur(e))&&Ur(t);return t?n==t||Ur(n)==t:ce(n)}:ce,lo=ie(function(n,e,t){Or.call(n,t)?n[t]++:n[t]=1}),co=ie(function(n,e,t){(Or.call(n,t)?n[t]:n[t]=[]).push(e)}),so=ie(function(n,e,t){n[t]=e}),po=Qe,ho=Je,go=le(go=gr.now)&&go||function(){return(new gr).getTime()},vo=8==zr(j+"08")?zr:function(n,e){return zr(Ne(n)?n.replace(L,""):n,e||0)};return t.after=Ot,t.assign=oo,t.at=We,t.bind=Tt,t.bindAll=Nt,t.bindKey=Dt,t.chain=fr,t.compact=st,t.compose=Ft,t.constant=Kt,t.countBy=lo,t.create=ge,t.createCallback=Gt,t.curry=Mt,t.debounce=Yt,t.defaults=io,t.defer=Zt,t.delay=Rt,t.difference=pt,t.filter=Je,t.flatten=vt,t.forEach=Ve,t.forEachRight=Xe,t.forIn=uo,t.forInRight=be,t.forOwn=ao,t.forOwnRight=me,t.functions=we,t.groupBy=co,t.indexBy=so,t.initial=bt,t.intersection=mt,t.invert=Ee,t.invoke=He,t.keys=Qr,t.map=Qe,t.mapValues=Fe,t.max=nt,t.memoize=Pt,t.merge=Me,t.min=et,t.omit=Ye,t.once=qt,t.pairs=Ze,t.partial=Wt,t.partialRight=$t,t.pick=Re,t.pluck=po,t.property=er,t.pull=Et,t.range=jt,t.reject=ot,t.remove=It,t.rest=kt,t.shuffle=ut,t.sortBy=lt,t.tap=lr,t.throttle=zt,t.times=ir,t.toArray=ct,t.transform=Pe,t.union=At,t.uniq=xt,t.values=qe,t.where=ho,t.without=St,t.wrap=Jt,t.xor=Ct,t.zip=Lt,t.zipObject=Ut,t.collect=Qe,t.drop=kt,t.each=Ve,t.eachRight=Xe,t.extend=oo,t.methods=we,t.object=Ut,t.select=Je,t.tail=kt,t.unique=xt,t.unzip=Lt,Ht(t),t.clone=he,t.cloneDeep=de,t.contains=$e,t.escape=Vt,t.every=ze,t.find=Ke,t.findIndex=ht,t.findKey=ve,t.findLast=Ge,t.findLastIndex=dt,t.findLastKey=ye,t.has=_e,t.identity=Xt,t.indexOf=yt,t.isArguments=pe,t.isArray=Xr,t.isBoolean=je,t.isDate=Ie,t.isElement=ke,t.isEmpty=Be,t.isEqual=Ae,t.isFinite=xe,t.isFunction=Se,t.isNaN=Le,t.isNull=Ue,t.isNumber=Oe,t.isObject=Ce,t.isPlainObject=fo,t.isRegExp=Te,t.isString=Ne,t.isUndefined=De,t.lastIndexOf=_t,t.mixin=Ht,t.noConflict=Qt,t.noop=nr,t.now=go,t.parseInt=vo,t.random=tr,t.reduce=tt,t.reduceRight=rt,t.result=rr,t.runInContext=g,t.size=at,t.some=ft,t.sortedIndex=Bt,t.template=or,t.unescape=ur,t.uniqueId=ar,t.all=ze,t.any=ft,t.detect=Ke,t.findWhere=Ke,t.foldl=tt,t.foldr=rt,t.include=$e,t.inject=tt,Ht(function(){var n={};return ao(t,function(e,r){t.prototype[r]||(n[r]=e)}),n}(),!1),t.first=gt,t.last=wt,t.sample=it,t.take=gt,t.head=gt,ao(t,function(n,e){var o="sample"!==e;t.prototype[e]||(t.prototype[e]=function(e,t){var i=this.__chain__,u=n(this.__wrapped__,e,t);return i||null!=e&&(!t||o&&"function"==typeof e)?new r(u,i):u})}),t.VERSION="2.4.1",t.prototype.chain=cr,t.prototype.toString=sr,t.prototype.value=pr,t.prototype.valueOf=pr,Ve(["join","pop","shift"],function(n){var e=jr[n];t.prototype[n]=function(){var n=this.__chain__,t=e.apply(this.__wrapped__,arguments);return n?new r(t,n):t}}),Ve(["push","reverse","sort","unshift"],function(n){var e=jr[n];t.prototype[n]=function(){return e.apply(this.__wrapped__,arguments),this}}),Ve(["concat","slice","splice"],function(n){var e=jr[n];t.prototype[n]=function(){return new r(e.apply(this.__wrapped__,arguments),this.__chain__)}}),t}var v,y=[],b=[],m=0,w=+new Date+"",_=75,E=40,j=" \f \n\r\u2028\u2029 ",I=/\b__p \+= '';/g,k=/\b(__p \+=) '' \+/g,B=/(__e\(.*?\)|\b__t\)) \+\n'';/g,A=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,x=/\w*$/,S=/^\s*function[ \n\r\t]+\w/,C=/<%=([\s\S]+?)%>/g,L=RegExp("^["+j+"]*0+(?=.$)"),U=/($^)/,O=/\bthis\b/,T=/['\n\r\t\u2028\u2029\\]/g,N=["Array","Boolean","Date","Function","Math","Number","Object","RegExp","String","_","attachEvent","clearTimeout","isFinite","isNaN","parseInt","setTimeout"],D=0,F="[object Arguments]",M="[object Array]",Y="[object Boolean]",Z="[object Date]",R="[object Function]",P="[object Number]",q="[object Object]",W="[object RegExp]",$="[object String]",z={};z[R]=!1,z[F]=z[M]=z[Y]=z[Z]=z[P]=z[q]=z[W]=z[$]=!0;var J={leading:!1,maxWait:0,trailing:!1},K={configurable:!1,enumerable:!1,value:null,writable:!1},G={"boolean":!1,"function":!0,object:!0,number:!1,string:!1,undefined:!1},V={"\\":"\\","'":"'","\n":"n","\r":"r"," ":"t","\u2028":"u2028","\u2029":"u2029"},X=G[typeof window]&&window||this,H=G[typeof t]&&t&&!t.nodeType&&t,Q=G[typeof e]&&e&&!e.nodeType&&e,ne=Q&&Q.exports===H&&H,ee=G[typeof r]&&r;!ee||ee.global!==ee&&ee.window!==ee||(X=ee);var te=g();"function"==typeof define&&"object"==typeof define.amd&&define.amd?(X._=te,define(function(){return te})):H&&Q?ne?(Q.exports=te)._=te:H._=te:X._=te}).call(this)}).call(this,n("1YiZ5S"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},n("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/../node_modules/lodash/dist/lodash.js","/../node_modules/lodash/dist")},{"1YiZ5S":10,buffer:7}]},{},[3]);
|
data/{spec/dummy/app/assets/stylesheets → app/assets/stylesheets/jskit_rails}/application.css
RENAMED
File without changes
|
@@ -0,0 +1,37 @@
|
|
1
|
+
ApplicationController.class_eval do
|
2
|
+
helper_method :jskit
|
3
|
+
|
4
|
+
def jskit(config = { namespace: nil })
|
5
|
+
view_context.javascript_tag [jskit_global_event, jskit_controller_event].join("\n")
|
6
|
+
end
|
7
|
+
|
8
|
+
def set_jskit_payload(*payload)
|
9
|
+
@jskit_payload = payload
|
10
|
+
end
|
11
|
+
|
12
|
+
private
|
13
|
+
|
14
|
+
def jskit_payload
|
15
|
+
@jskit_payload.blank? ? "" : ", #{[*@jskit_payload].map(&:to_json).join(', ')}"
|
16
|
+
end
|
17
|
+
|
18
|
+
def jskit_event_name(config)
|
19
|
+
[config[:namespace], "controller", controller_name, action_name].compact.join(":")
|
20
|
+
end
|
21
|
+
|
22
|
+
def jskit_global_event
|
23
|
+
[
|
24
|
+
JskitRails.configuration.app_namespace,
|
25
|
+
"Dispatcher",
|
26
|
+
"trigger(\"controller:all\");"
|
27
|
+
].join(".")
|
28
|
+
end
|
29
|
+
|
30
|
+
def jskit_controller_event
|
31
|
+
[
|
32
|
+
JskitRails.configuration.app_namespace,
|
33
|
+
"Dispatcher",
|
34
|
+
"trigger(\"#{jskit_event_name(config)}\"#{jskit_payload});"
|
35
|
+
].join(".")
|
36
|
+
end
|
37
|
+
end
|
data/lib/jskit_rails.rb
CHANGED
@@ -1,4 +1,16 @@
|
|
1
1
|
require "jskit_rails/engine"
|
2
|
+
require "jskit_rails/configuration"
|
2
3
|
|
3
|
-
module
|
4
|
+
module JskitRails
|
5
|
+
class << self
|
6
|
+
attr_accessor :configuration
|
7
|
+
|
8
|
+
def configure(&block)
|
9
|
+
fail ArgumentError, "JskitRails#configure requires a block" if block.nil?
|
10
|
+
self.configuration = Configuration.new
|
11
|
+
block.call(configuration)
|
12
|
+
end
|
13
|
+
end
|
4
14
|
end
|
15
|
+
|
16
|
+
JskitRails.configuration = JskitRails::Configuration.new
|
data/lib/jskit_rails/engine.rb
CHANGED
@@ -1,7 +1,11 @@
|
|
1
|
-
module
|
1
|
+
module JskitRails
|
2
2
|
class Engine < ::Rails::Engine
|
3
|
-
|
4
|
-
|
3
|
+
isolate_namespace JskitRails
|
4
|
+
config.to_prepare do
|
5
|
+
decorators_path = File.join(JskitRails::Engine.config.root, "app", "decorators", "**", "jskit_rails", "**", "*_decorator.rb")
|
6
|
+
Dir.glob(decorators_path).each do |decorator|
|
7
|
+
require_dependency(decorator)
|
8
|
+
end
|
5
9
|
end
|
6
10
|
end
|
7
11
|
end
|
data/lib/jskit_rails/version.rb
CHANGED
@@ -1,3 +1,3 @@
|
|
1
|
-
module
|
2
|
-
VERSION =
|
1
|
+
module JskitRails
|
2
|
+
VERSION = File.read(File.join(File.expand_path("../../..", __FILE__), "VERSION"))
|
3
3
|
end
|
@@ -0,0 +1,37 @@
|
|
1
|
+
require "rails_helper"
|
2
|
+
|
3
|
+
describe ApplicationController, type: :controller do
|
4
|
+
describe "#set_jskit_payload" do
|
5
|
+
it "sets the payload to an array of the arguments passed" do
|
6
|
+
subject.set_jskit_payload("foo")
|
7
|
+
expect(subject.send(:jskit_payload)).to eq(', "foo"')
|
8
|
+
subject.set_jskit_payload("foo", "bar", "baz")
|
9
|
+
expect(subject.send(:jskit_payload)).to eq(', "foo", "bar", "baz"')
|
10
|
+
end
|
11
|
+
end
|
12
|
+
|
13
|
+
describe "#jskit_event_name" do
|
14
|
+
before do
|
15
|
+
allow(subject).to receive(:controller_name) { "test_controller" }
|
16
|
+
allow(subject).to receive(:action_name) { "test_action" }
|
17
|
+
end
|
18
|
+
|
19
|
+
it "returns the event name" do
|
20
|
+
expect(subject.send(:jskit_event_name, namespace: nil)).to eq("controller:test_controller:test_action")
|
21
|
+
end
|
22
|
+
|
23
|
+
context "with namespace" do
|
24
|
+
it "returns the controller event name prefixed with the namespace" do
|
25
|
+
expect(subject.send(:jskit_event_name, namespace: "test")).to eq("test:controller:test_controller:test_action")
|
26
|
+
end
|
27
|
+
end
|
28
|
+
end
|
29
|
+
|
30
|
+
describe "#jskit" do
|
31
|
+
it "returns a script tag with the global event and the controller event" do
|
32
|
+
global_event = subject.send(:jskit_global_event)
|
33
|
+
controller_event = subject.send(:jskit_controller_event)
|
34
|
+
expect(subject.jskit).to eq(subject.view_context.javascript_tag([global_event, controller_event].join("\n")))
|
35
|
+
end
|
36
|
+
end
|
37
|
+
end
|
@@ -0,0 +1,12 @@
|
|
1
|
+
require "rails_helper"
|
2
|
+
|
3
|
+
describe JskitRails::Configuration do
|
4
|
+
it "has s default app_namespace" do
|
5
|
+
expect(subject.app_namespace).to eq("App")
|
6
|
+
end
|
7
|
+
|
8
|
+
it "allows you to set the app_namespace" do
|
9
|
+
subject.app_namespace = "Test"
|
10
|
+
expect(subject.app_namespace).to eq("Test")
|
11
|
+
end
|
12
|
+
end
|
@@ -0,0 +1,12 @@
|
|
1
|
+
require "rails_helper"
|
2
|
+
|
3
|
+
describe JskitRails do
|
4
|
+
describe "#configure" do
|
5
|
+
it "allows you to set configuration values" do
|
6
|
+
JskitRails.configure do |config|
|
7
|
+
config.app_namespace = "Test"
|
8
|
+
end
|
9
|
+
expect(subject.configuration.app_namespace).to eq("Test")
|
10
|
+
end
|
11
|
+
end
|
12
|
+
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: jskit_rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 1.0.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Dayton Nolan
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-10-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -16,58 +16,30 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '4.
|
19
|
+
version: '4.1'
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: '4.
|
26
|
+
version: '4.1'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
|
-
name:
|
29
|
-
requirement: !ruby/object:Gem::Requirement
|
30
|
-
requirements:
|
31
|
-
- - "~>"
|
32
|
-
- !ruby/object:Gem::Version
|
33
|
-
version: '2.4'
|
34
|
-
type: :development
|
35
|
-
prerelease: false
|
36
|
-
version_requirements: !ruby/object:Gem::Requirement
|
37
|
-
requirements:
|
38
|
-
- - "~>"
|
39
|
-
- !ruby/object:Gem::Version
|
40
|
-
version: '2.4'
|
41
|
-
- !ruby/object:Gem::Dependency
|
42
|
-
name: capybara-screenshot
|
43
|
-
requirement: !ruby/object:Gem::Requirement
|
44
|
-
requirements:
|
45
|
-
- - "~>"
|
46
|
-
- !ruby/object:Gem::Version
|
47
|
-
version: '0.3'
|
48
|
-
type: :development
|
49
|
-
prerelease: false
|
50
|
-
version_requirements: !ruby/object:Gem::Requirement
|
51
|
-
requirements:
|
52
|
-
- - "~>"
|
53
|
-
- !ruby/object:Gem::Version
|
54
|
-
version: '0.3'
|
55
|
-
- !ruby/object:Gem::Dependency
|
56
|
-
name: poltergeist
|
28
|
+
name: sqlite3
|
57
29
|
requirement: !ruby/object:Gem::Requirement
|
58
30
|
requirements:
|
59
31
|
- - "~>"
|
60
32
|
- !ruby/object:Gem::Version
|
61
|
-
version: '1.
|
33
|
+
version: '1.3'
|
62
34
|
type: :development
|
63
35
|
prerelease: false
|
64
36
|
version_requirements: !ruby/object:Gem::Requirement
|
65
37
|
requirements:
|
66
38
|
- - "~>"
|
67
39
|
- !ruby/object:Gem::Version
|
68
|
-
version: '1.
|
40
|
+
version: '1.3'
|
69
41
|
- !ruby/object:Gem::Dependency
|
70
|
-
name:
|
42
|
+
name: pry
|
71
43
|
requirement: !ruby/object:Gem::Requirement
|
72
44
|
requirements:
|
73
45
|
- - "~>"
|
@@ -81,63 +53,63 @@ dependencies:
|
|
81
53
|
- !ruby/object:Gem::Version
|
82
54
|
version: '0.10'
|
83
55
|
- !ruby/object:Gem::Dependency
|
84
|
-
name:
|
56
|
+
name: pry-nav
|
85
57
|
requirement: !ruby/object:Gem::Requirement
|
86
58
|
requirements:
|
87
59
|
- - "~>"
|
88
60
|
- !ruby/object:Gem::Version
|
89
|
-
version: '0.
|
61
|
+
version: '0.2'
|
90
62
|
type: :development
|
91
63
|
prerelease: false
|
92
64
|
version_requirements: !ruby/object:Gem::Requirement
|
93
65
|
requirements:
|
94
66
|
- - "~>"
|
95
67
|
- !ruby/object:Gem::Version
|
96
|
-
version: '0.
|
68
|
+
version: '0.2'
|
97
69
|
- !ruby/object:Gem::Dependency
|
98
|
-
name: pry
|
70
|
+
name: pry-doc
|
99
71
|
requirement: !ruby/object:Gem::Requirement
|
100
72
|
requirements:
|
101
|
-
- - "
|
73
|
+
- - ">="
|
102
74
|
- !ruby/object:Gem::Version
|
103
|
-
version: '0
|
75
|
+
version: '0'
|
104
76
|
type: :development
|
105
77
|
prerelease: false
|
106
78
|
version_requirements: !ruby/object:Gem::Requirement
|
107
79
|
requirements:
|
108
|
-
- - "
|
80
|
+
- - ">="
|
109
81
|
- !ruby/object:Gem::Version
|
110
|
-
version: '0
|
82
|
+
version: '0'
|
111
83
|
- !ruby/object:Gem::Dependency
|
112
|
-
name:
|
84
|
+
name: rspec-rails
|
113
85
|
requirement: !ruby/object:Gem::Requirement
|
114
86
|
requirements:
|
115
87
|
- - "~>"
|
116
88
|
- !ruby/object:Gem::Version
|
117
|
-
version: '3.
|
89
|
+
version: '3.1'
|
118
90
|
type: :development
|
119
91
|
prerelease: false
|
120
92
|
version_requirements: !ruby/object:Gem::Requirement
|
121
93
|
requirements:
|
122
94
|
- - "~>"
|
123
95
|
- !ruby/object:Gem::Version
|
124
|
-
version: '3.
|
96
|
+
version: '3.1'
|
125
97
|
- !ruby/object:Gem::Dependency
|
126
|
-
name:
|
98
|
+
name: fuubar
|
127
99
|
requirement: !ruby/object:Gem::Requirement
|
128
100
|
requirements:
|
129
101
|
- - "~>"
|
130
102
|
- !ruby/object:Gem::Version
|
131
|
-
version: '
|
103
|
+
version: '2.0'
|
132
104
|
type: :development
|
133
105
|
prerelease: false
|
134
106
|
version_requirements: !ruby/object:Gem::Requirement
|
135
107
|
requirements:
|
136
108
|
- - "~>"
|
137
109
|
- !ruby/object:Gem::Version
|
138
|
-
version: '
|
139
|
-
description:
|
140
|
-
|
110
|
+
version: '2.0'
|
111
|
+
description: jsit_rails provides jskit.js to the asset pipeline and allows seamless
|
112
|
+
event dispatching from your rails application to jskit.
|
141
113
|
email:
|
142
114
|
- daytonn@gmail.com
|
143
115
|
executables: []
|
@@ -146,97 +118,20 @@ extra_rdoc_files: []
|
|
146
118
|
files:
|
147
119
|
- LICENSE
|
148
120
|
- README.md
|
121
|
+
- app/assets/javascripts/jskit.js
|
122
|
+
- app/assets/javascripts/jskit.min.js
|
123
|
+
- app/assets/javascripts/jskit_rails.js.erb
|
124
|
+
- app/assets/stylesheets/jskit_rails/application.css
|
125
|
+
- app/decorators/controllers/jskit_rails/application_controller_decorator.rb
|
149
126
|
- lib/jskit_rails.rb
|
127
|
+
- lib/jskit_rails/configuration.rb
|
150
128
|
- lib/jskit_rails/engine.rb
|
151
129
|
- lib/jskit_rails/version.rb
|
152
|
-
-
|
153
|
-
- spec/
|
154
|
-
- spec/
|
155
|
-
- spec/
|
156
|
-
|
157
|
-
- spec/dummy/app/controllers/application_controller.rb
|
158
|
-
- spec/dummy/app/controllers/pages_controller.rb
|
159
|
-
- spec/dummy/app/views/layouts/application.html.erb
|
160
|
-
- spec/dummy/app/views/pages/index.html.erb
|
161
|
-
- spec/dummy/bin/bundle
|
162
|
-
- spec/dummy/bin/rails
|
163
|
-
- spec/dummy/bin/rake
|
164
|
-
- spec/dummy/config.ru
|
165
|
-
- spec/dummy/config/application.rb
|
166
|
-
- spec/dummy/config/boot.rb
|
167
|
-
- spec/dummy/config/database.yml
|
168
|
-
- spec/dummy/config/environment.rb
|
169
|
-
- spec/dummy/config/environments/development.rb
|
170
|
-
- spec/dummy/config/environments/production.rb
|
171
|
-
- spec/dummy/config/environments/test.rb
|
172
|
-
- spec/dummy/config/initializers/assets.rb
|
173
|
-
- spec/dummy/config/initializers/backtrace_silencers.rb
|
174
|
-
- spec/dummy/config/initializers/cookies_serializer.rb
|
175
|
-
- spec/dummy/config/initializers/filter_parameter_logging.rb
|
176
|
-
- spec/dummy/config/initializers/inflections.rb
|
177
|
-
- spec/dummy/config/initializers/mime_types.rb
|
178
|
-
- spec/dummy/config/initializers/session_store.rb
|
179
|
-
- spec/dummy/config/initializers/wrap_parameters.rb
|
180
|
-
- spec/dummy/config/locales/en.yml
|
181
|
-
- spec/dummy/config/routes.rb
|
182
|
-
- spec/dummy/config/secrets.yml
|
183
|
-
- spec/dummy/db/development.sqlite3
|
184
|
-
- spec/dummy/db/schema.rb
|
185
|
-
- spec/dummy/db/test.sqlite3
|
186
|
-
- spec/dummy/log/development.log
|
187
|
-
- spec/dummy/log/test.log
|
188
|
-
- spec/dummy/public/404.html
|
189
|
-
- spec/dummy/public/422.html
|
190
|
-
- spec/dummy/public/500.html
|
191
|
-
- spec/dummy/public/favicon.ico
|
192
|
-
- spec/dummy/tmp/cache/assets/development/sprockets/13fe41fee1fe35b49d145bcc06610705
|
193
|
-
- spec/dummy/tmp/cache/assets/development/sprockets/17638b36dd2d326da8bbe19e3187b4aa
|
194
|
-
- spec/dummy/tmp/cache/assets/development/sprockets/1b3ab54570489ef40fe6bcfcb75732a4
|
195
|
-
- spec/dummy/tmp/cache/assets/development/sprockets/2f5173deea6c795b8fdde723bb4b63af
|
196
|
-
- spec/dummy/tmp/cache/assets/development/sprockets/357970feca3ac29060c1e3861e2c0953
|
197
|
-
- spec/dummy/tmp/cache/assets/development/sprockets/3951bba7f7c83ef217caf196767a87b4
|
198
|
-
- spec/dummy/tmp/cache/assets/development/sprockets/7716514c24387d3b649c2d1db2fb57cf
|
199
|
-
- spec/dummy/tmp/cache/assets/development/sprockets/8f2db0e64688316c3e652e3f7cfec01f
|
200
|
-
- spec/dummy/tmp/cache/assets/development/sprockets/aa59802eb5ce4da01106d1b80af0b061
|
201
|
-
- spec/dummy/tmp/cache/assets/development/sprockets/b472917185e15a1cc040f2665247d7fe
|
202
|
-
- spec/dummy/tmp/cache/assets/development/sprockets/c5012fc346216a5b77cf508656d4be05
|
203
|
-
- spec/dummy/tmp/cache/assets/development/sprockets/cbb89fa0fff41ef21d5ff4a05e24c8af
|
204
|
-
- spec/dummy/tmp/cache/assets/development/sprockets/cc6d6668e906cadd9045f8059626e51f
|
205
|
-
- spec/dummy/tmp/cache/assets/development/sprockets/cf750916991c005f72c5986edb1c5e34
|
206
|
-
- spec/dummy/tmp/cache/assets/development/sprockets/cfd1216ad7ba24f298bc865c6b92d581
|
207
|
-
- spec/dummy/tmp/cache/assets/development/sprockets/cffd775d018f68ce5dba1ee0d951a994
|
208
|
-
- spec/dummy/tmp/cache/assets/development/sprockets/d771ace226fc8215a3572e0aa35bb0d6
|
209
|
-
- spec/dummy/tmp/cache/assets/development/sprockets/f7cbd26ba1d28d48de824f0e94586655
|
210
|
-
- spec/dummy/tmp/cache/assets/test/sprockets/13fe41fee1fe35b49d145bcc06610705
|
211
|
-
- spec/dummy/tmp/cache/assets/test/sprockets/2f5173deea6c795b8fdde723bb4b63af
|
212
|
-
- spec/dummy/tmp/cache/assets/test/sprockets/357970feca3ac29060c1e3861e2c0953
|
213
|
-
- spec/dummy/tmp/cache/assets/test/sprockets/cbb89fa0fff41ef21d5ff4a05e24c8af
|
214
|
-
- spec/dummy/tmp/cache/assets/test/sprockets/cf750916991c005f72c5986edb1c5e34
|
215
|
-
- spec/dummy/tmp/cache/assets/test/sprockets/cffd775d018f68ce5dba1ee0d951a994
|
216
|
-
- spec/dummy/tmp/cache/assets/test/sprockets/d771ace226fc8215a3572e0aa35bb0d6
|
217
|
-
- spec/dummy/tmp/cache/assets/test/sprockets/f7cbd26ba1d28d48de824f0e94586655
|
218
|
-
- spec/dummy/tmp/capybara/screenshot_2014-08-15-11-33-19.355.png
|
219
|
-
- spec/dummy/tmp/capybara/screenshot_2014-08-15-11-34-31.074.png
|
220
|
-
- spec/dummy/tmp/capybara/screenshot_2014-08-15-11-34-33.141.html
|
221
|
-
- spec/dummy/tmp/capybara/screenshot_2014-08-15-11-34-33.141.png
|
222
|
-
- spec/dummy/tmp/capybara/screenshot_2014-08-15-11-34-50.695.png
|
223
|
-
- spec/dummy/tmp/capybara/screenshot_2014-08-15-11-34-52.764.html
|
224
|
-
- spec/dummy/tmp/capybara/screenshot_2014-08-15-11-34-52.764.png
|
225
|
-
- spec/dummy/tmp/capybara/screenshot_2014-08-15-11-35-21.182.html
|
226
|
-
- spec/dummy/tmp/capybara/screenshot_2014-08-15-11-35-21.182.png
|
227
|
-
- spec/dummy/tmp/capybara/screenshot_2014-08-15-11-37-28.530.html
|
228
|
-
- spec/dummy/tmp/capybara/screenshot_2014-08-15-11-37-28.530.png
|
229
|
-
- spec/dummy/tmp/capybara/screenshot_2014-08-15-11-37-43.080.html
|
230
|
-
- spec/dummy/tmp/capybara/screenshot_2014-08-15-11-37-43.080.png
|
231
|
-
- spec/dummy/tmp/capybara/screenshot_2014-08-15-11-41-35.574.html
|
232
|
-
- spec/dummy/tmp/capybara/screenshot_2014-08-15-11-41-35.574.png
|
233
|
-
- spec/dummy/tmp/capybara/screenshot_2014-08-15-11-42-14.128.html
|
234
|
-
- spec/dummy/tmp/capybara/screenshot_2014-08-15-11-42-14.128.png
|
235
|
-
- spec/dummy/tmp/capybara/screenshot_2014-09-04-09-46-47.711.html
|
236
|
-
- spec/dummy/tmp/capybara/screenshot_2014-09-04-09-46-47.711.png
|
237
|
-
- spec/rails_helper.rb
|
238
|
-
- spec/spec_helper.rb
|
239
|
-
homepage: http://github.com/daytonn/jskit-rails
|
130
|
+
- spec/controllers/application_controller_spec.rb
|
131
|
+
- spec/lib/configuration_spec.rb
|
132
|
+
- spec/lib/jskit_rails_spec.rb
|
133
|
+
- spec/lib/version_spec.rb
|
134
|
+
homepage: https://github.com/daytonn/jskit_rails
|
240
135
|
licenses:
|
241
136
|
- Apache 2.0
|
242
137
|
metadata: {}
|
@@ -259,92 +154,10 @@ rubyforge_project:
|
|
259
154
|
rubygems_version: 2.2.2
|
260
155
|
signing_key:
|
261
156
|
specification_version: 4
|
262
|
-
summary:
|
157
|
+
summary: Gem that provides Rails integration for jskit
|
263
158
|
test_files:
|
264
|
-
- spec/
|
265
|
-
- spec/
|
266
|
-
- spec/
|
267
|
-
- spec/
|
268
|
-
- spec/dummy/app/views/layouts/application.html.erb
|
269
|
-
- spec/dummy/app/views/pages/index.html.erb
|
270
|
-
- spec/dummy/bin/bundle
|
271
|
-
- spec/dummy/bin/rails
|
272
|
-
- spec/dummy/bin/rake
|
273
|
-
- spec/dummy/config/application.rb
|
274
|
-
- spec/dummy/config/boot.rb
|
275
|
-
- spec/dummy/config/database.yml
|
276
|
-
- spec/dummy/config/environment.rb
|
277
|
-
- spec/dummy/config/environments/development.rb
|
278
|
-
- spec/dummy/config/environments/production.rb
|
279
|
-
- spec/dummy/config/environments/test.rb
|
280
|
-
- spec/dummy/config/initializers/assets.rb
|
281
|
-
- spec/dummy/config/initializers/backtrace_silencers.rb
|
282
|
-
- spec/dummy/config/initializers/cookies_serializer.rb
|
283
|
-
- spec/dummy/config/initializers/filter_parameter_logging.rb
|
284
|
-
- spec/dummy/config/initializers/inflections.rb
|
285
|
-
- spec/dummy/config/initializers/mime_types.rb
|
286
|
-
- spec/dummy/config/initializers/session_store.rb
|
287
|
-
- spec/dummy/config/initializers/wrap_parameters.rb
|
288
|
-
- spec/dummy/config/locales/en.yml
|
289
|
-
- spec/dummy/config/routes.rb
|
290
|
-
- spec/dummy/config/secrets.yml
|
291
|
-
- spec/dummy/config.ru
|
292
|
-
- spec/dummy/db/development.sqlite3
|
293
|
-
- spec/dummy/db/schema.rb
|
294
|
-
- spec/dummy/db/test.sqlite3
|
295
|
-
- spec/dummy/log/development.log
|
296
|
-
- spec/dummy/log/test.log
|
297
|
-
- spec/dummy/public/404.html
|
298
|
-
- spec/dummy/public/422.html
|
299
|
-
- spec/dummy/public/500.html
|
300
|
-
- spec/dummy/public/favicon.ico
|
301
|
-
- spec/dummy/Rakefile
|
302
|
-
- spec/dummy/README.rdoc
|
303
|
-
- spec/dummy/tmp/cache/assets/development/sprockets/13fe41fee1fe35b49d145bcc06610705
|
304
|
-
- spec/dummy/tmp/cache/assets/development/sprockets/17638b36dd2d326da8bbe19e3187b4aa
|
305
|
-
- spec/dummy/tmp/cache/assets/development/sprockets/1b3ab54570489ef40fe6bcfcb75732a4
|
306
|
-
- spec/dummy/tmp/cache/assets/development/sprockets/2f5173deea6c795b8fdde723bb4b63af
|
307
|
-
- spec/dummy/tmp/cache/assets/development/sprockets/357970feca3ac29060c1e3861e2c0953
|
308
|
-
- spec/dummy/tmp/cache/assets/development/sprockets/3951bba7f7c83ef217caf196767a87b4
|
309
|
-
- spec/dummy/tmp/cache/assets/development/sprockets/7716514c24387d3b649c2d1db2fb57cf
|
310
|
-
- spec/dummy/tmp/cache/assets/development/sprockets/8f2db0e64688316c3e652e3f7cfec01f
|
311
|
-
- spec/dummy/tmp/cache/assets/development/sprockets/aa59802eb5ce4da01106d1b80af0b061
|
312
|
-
- spec/dummy/tmp/cache/assets/development/sprockets/b472917185e15a1cc040f2665247d7fe
|
313
|
-
- spec/dummy/tmp/cache/assets/development/sprockets/c5012fc346216a5b77cf508656d4be05
|
314
|
-
- spec/dummy/tmp/cache/assets/development/sprockets/cbb89fa0fff41ef21d5ff4a05e24c8af
|
315
|
-
- spec/dummy/tmp/cache/assets/development/sprockets/cc6d6668e906cadd9045f8059626e51f
|
316
|
-
- spec/dummy/tmp/cache/assets/development/sprockets/cf750916991c005f72c5986edb1c5e34
|
317
|
-
- spec/dummy/tmp/cache/assets/development/sprockets/cfd1216ad7ba24f298bc865c6b92d581
|
318
|
-
- spec/dummy/tmp/cache/assets/development/sprockets/cffd775d018f68ce5dba1ee0d951a994
|
319
|
-
- spec/dummy/tmp/cache/assets/development/sprockets/d771ace226fc8215a3572e0aa35bb0d6
|
320
|
-
- spec/dummy/tmp/cache/assets/development/sprockets/f7cbd26ba1d28d48de824f0e94586655
|
321
|
-
- spec/dummy/tmp/cache/assets/test/sprockets/13fe41fee1fe35b49d145bcc06610705
|
322
|
-
- spec/dummy/tmp/cache/assets/test/sprockets/2f5173deea6c795b8fdde723bb4b63af
|
323
|
-
- spec/dummy/tmp/cache/assets/test/sprockets/357970feca3ac29060c1e3861e2c0953
|
324
|
-
- spec/dummy/tmp/cache/assets/test/sprockets/cbb89fa0fff41ef21d5ff4a05e24c8af
|
325
|
-
- spec/dummy/tmp/cache/assets/test/sprockets/cf750916991c005f72c5986edb1c5e34
|
326
|
-
- spec/dummy/tmp/cache/assets/test/sprockets/cffd775d018f68ce5dba1ee0d951a994
|
327
|
-
- spec/dummy/tmp/cache/assets/test/sprockets/d771ace226fc8215a3572e0aa35bb0d6
|
328
|
-
- spec/dummy/tmp/cache/assets/test/sprockets/f7cbd26ba1d28d48de824f0e94586655
|
329
|
-
- spec/dummy/tmp/capybara/screenshot_2014-08-15-11-33-19.355.png
|
330
|
-
- spec/dummy/tmp/capybara/screenshot_2014-08-15-11-34-31.074.png
|
331
|
-
- spec/dummy/tmp/capybara/screenshot_2014-08-15-11-34-33.141.html
|
332
|
-
- spec/dummy/tmp/capybara/screenshot_2014-08-15-11-34-33.141.png
|
333
|
-
- spec/dummy/tmp/capybara/screenshot_2014-08-15-11-34-50.695.png
|
334
|
-
- spec/dummy/tmp/capybara/screenshot_2014-08-15-11-34-52.764.html
|
335
|
-
- spec/dummy/tmp/capybara/screenshot_2014-08-15-11-34-52.764.png
|
336
|
-
- spec/dummy/tmp/capybara/screenshot_2014-08-15-11-35-21.182.html
|
337
|
-
- spec/dummy/tmp/capybara/screenshot_2014-08-15-11-35-21.182.png
|
338
|
-
- spec/dummy/tmp/capybara/screenshot_2014-08-15-11-37-28.530.html
|
339
|
-
- spec/dummy/tmp/capybara/screenshot_2014-08-15-11-37-28.530.png
|
340
|
-
- spec/dummy/tmp/capybara/screenshot_2014-08-15-11-37-43.080.html
|
341
|
-
- spec/dummy/tmp/capybara/screenshot_2014-08-15-11-37-43.080.png
|
342
|
-
- spec/dummy/tmp/capybara/screenshot_2014-08-15-11-41-35.574.html
|
343
|
-
- spec/dummy/tmp/capybara/screenshot_2014-08-15-11-41-35.574.png
|
344
|
-
- spec/dummy/tmp/capybara/screenshot_2014-08-15-11-42-14.128.html
|
345
|
-
- spec/dummy/tmp/capybara/screenshot_2014-08-15-11-42-14.128.png
|
346
|
-
- spec/dummy/tmp/capybara/screenshot_2014-09-04-09-46-47.711.html
|
347
|
-
- spec/dummy/tmp/capybara/screenshot_2014-09-04-09-46-47.711.png
|
348
|
-
- spec/rails_helper.rb
|
349
|
-
- spec/spec_helper.rb
|
159
|
+
- spec/controllers/application_controller_spec.rb
|
160
|
+
- spec/lib/configuration_spec.rb
|
161
|
+
- spec/lib/jskit_rails_spec.rb
|
162
|
+
- spec/lib/version_spec.rb
|
350
163
|
has_rdoc:
|