List of commits:
Subject Hash Author Date (UTC)
Added the base heading component c958d8d090658656411ce9a44304841028c6abc8 your name here 2016-01-11 05:50:55
Work on styling the button. c7c0b4c7697d522dce8bcef8b4991fb97cbbe4ab DiAngelo 2016-01-08 16:38:01
Added RocketGIT repository. 4588c9699a0e132bf81f503990f899c861c5a73e DiAngelo 2016-01-07 16:16:43
Initial commit e48fb5bf211e401bcd93422b5455d537c8891218 DiAngelo 2016-01-07 15:55:41
Commit c958d8d090658656411ce9a44304841028c6abc8 - Added the base heading component
Author: your name here
Author date (UTC): 2016-01-11 05:50
Committer name: your name here
Committer date (UTC): 2016-01-11 05:50
Parent(s): c7c0b4c7697d522dce8bcef8b4991fb97cbbe4ab
Signing key:
Tree: 16bf781a0f1700abb48855fa57bef98424cd4188
File Lines added Lines deleted
dist/app.js 107 10
dist/app.min.js 3 3
lib/app/components/base/button/index.js 3 3
lib/app/components/base/heading/index.js 66 0
lib/app/components/base/heading/types.js 15 0
lib/app/components/component.class.js 3 3
lib/app/components/simple.com.js 9 4
src/app/components/base/heading/index.js 31 0
src/app/components/base/heading/types.js 11 0
src/app/components/simple.com.js 3 0
File dist/app.js changed (mode: 100644) (index 07c6f1c..04e9d5d)
2225 2225
2226 2226 'use strict'; 'use strict';
2227 2227
2228 var _createClass = (function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; })();
2228 var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
2229 2229
2230 2230 Object.defineProperty(exports, "__esModule", { Object.defineProperty(exports, "__esModule", {
2231 2231 value: true value: true
 
2243 2243
2244 2244 var MButton = _interopRequireWildcard(_button); var MButton = _interopRequireWildcard(_button);
2245 2245
2246 var _heading = __webpack_require__(45);
2247
2248 var MHeading = _interopRequireWildcard(_heading);
2249
2246 2250 function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) newObj[key] = obj[key]; } } newObj.default = obj; return newObj; } } function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) newObj[key] = obj[key]; } } newObj.default = obj; return newObj; } }
2247 2251
2248 2252 function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
 
2253 2257
2254 2258 function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
2255 2259
2256 var MSimple = (function (_MComponent) {
2260 var MSimple = function (_MComponent) {
2257 2261 _inherits(MSimple, _MComponent); _inherits(MSimple, _MComponent);
2258 2262
2259 2263 function MSimple() { function MSimple() {
 
2271 2275 label: "Initial Label", label: "Initial Label",
2272 2276 size: MButton.sizes.SMALL size: MButton.sizes.SMALL
2273 2277 }); });
2278 this.mHeadingMain = new MHeading.component();
2274 2279 } }
2275 2280 }, { }, {
2276 2281 key: 'view', key: 'view',
2277 2282 value: function view(ctrl, args) { value: function view(ctrl, args) {
2278 2283 var state = this.store.getState(); var state = this.store.getState();
2279 2284
2280 return (0, _mithril2.default)('.test', [(0, _mithril2.default)('h1', 'Hello World !'), (0, _mithril2.default)("p", state.text), (0, _mithril2.default)("button", { onclick: this.clickText }, "What time is it ?"), _mithril2.default.component(this.mBtnTest.m(), { label: "Changed Label" })]);
2285 return (0, _mithril2.default)('.test', [(0, _mithril2.default)('h1', 'Hello World !'), _mithril2.default.component(this.mHeadingMain.m()), (0, _mithril2.default)("p", state.text), (0, _mithril2.default)("button", { onclick: this.clickText }, "What time is it ?"), _mithril2.default.component(this.mBtnTest.m(), { label: "Changed Label" })]);
2281 2286 } }
2282 2287 }, { }, {
2283 2288 key: 'clickText', key: 'clickText',
 
2292 2297 }]); }]);
2293 2298
2294 2299 return MSimple; return MSimple;
2295 })(_component2.default);
2300 }(_component2.default);
2296 2301
2297 2302 exports.default = MSimple; exports.default = MSimple;
2298 2303
 
2302 2307
2303 2308 'use strict'; 'use strict';
2304 2309
2305 var _createClass = (function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; })();
2310 var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
2306 2311
2307 2312 Object.defineProperty(exports, "__esModule", { Object.defineProperty(exports, "__esModule", {
2308 2313 value: true value: true
 
2310 2315
2311 2316 function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
2312 2317
2313 var MComponent = (function () {
2318 var MComponent = function () {
2314 2319 function MComponent(options) { function MComponent(options) {
2315 2320 _classCallCheck(this, MComponent); _classCallCheck(this, MComponent);
2316 2321
 
2358 2363 }]); }]);
2359 2364
2360 2365 return MComponent; return MComponent;
2361 })();
2366 }();
2362 2367
2363 2368 exports.default = MComponent; exports.default = MComponent;
2364 2369
 
2368 2373
2369 2374 'use strict'; 'use strict';
2370 2375
2371 var _createClass = (function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; })();
2376 var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
2372 2377
2373 2378 var _component = __webpack_require__(23); var _component = __webpack_require__(23);
2374 2379
 
2398 2403
2399 2404 function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
2400 2405
2401 var MButton = (function (_MComponent) {
2406 var MButton = function (_MComponent) {
2402 2407 _inherits(MButton, _MComponent); _inherits(MButton, _MComponent);
2403 2408
2404 2409 function MButton(options) { function MButton(options) {
 
2445 2450 }]); }]);
2446 2451
2447 2452 return MButton; return MButton;
2448 })(_component2.default);
2453 }(_component2.default);
2449 2454
2450 2455 module.exports = { module.exports = {
2451 2456 component: MButton, component: MButton,
 
3846 3851
3847 3852 exports.default = MButtonThemes; exports.default = MButtonThemes;
3848 3853
3854 /***/ },
3855 /* 45 */
3856 /***/ function(module, exports, __webpack_require__) {
3857
3858 /* WEBPACK VAR INJECTION */(function(module) {'use strict';
3859
3860 var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
3861
3862 var _component = __webpack_require__(23);
3863
3864 var _component2 = _interopRequireDefault(_component);
3865
3866 var _types = __webpack_require__(46);
3867
3868 var _types2 = _interopRequireDefault(_types);
3869
3870 function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
3871
3872 function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
3873
3874 function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
3875
3876 function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
3877
3878 var MHeading = function (_MComponent) {
3879 _inherits(MHeading, _MComponent);
3880
3881 function MHeading() {
3882 var _Object$getPrototypeO;
3883
3884 var _temp, _this, _ret;
3885
3886 _classCallCheck(this, MHeading);
3887
3888 for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {
3889 args[_key] = arguments[_key];
3890 }
3891
3892 return _ret = (_temp = (_this = _possibleConstructorReturn(this, (_Object$getPrototypeO = Object.getPrototypeOf(MHeading)).call.apply(_Object$getPrototypeO, [this].concat(args))), _this), _this.options = {
3893 tag: 'h2',
3894 text: 'Heading'
3895 }, _temp), _possibleConstructorReturn(_this, _ret);
3896 }
3897
3898 _createClass(MHeading, [{
3899 key: 'model',
3900 value: function model() {
3901 this.tag = m.prop();
3902 this.text = m.prop();
3903 }
3904 }, {
3905 key: 'controller',
3906 value: function controller(args) {
3907 var options = Object.assign({}, this.options, args);
3908 this.tag(options.tag);
3909 this.text(options.text);
3910 }
3911 }, {
3912 key: 'view',
3913 value: function view() {
3914 return m(this.tag(), this.text());
3915 }
3916 }]);
3917
3918 return MHeading;
3919 }(_component2.default);
3920
3921 module.export({
3922 component: MHeading
3923 });
3924 /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(19)(module)))
3925
3926 /***/ },
3927 /* 46 */
3928 /***/ function(module, exports) {
3929
3930 "use strict";
3931
3932 Object.defineProperty(exports, "__esModule", {
3933 value: true
3934 });
3935 var headingTypes = {
3936 HERO: "hero",
3937 MAIN: "main",
3938 HUGE: "huge",
3939 LARGE: "large",
3940 MEDIUM: "medium",
3941 SMALL: "small"
3942 };
3943
3944 exports.default = headingTypes;
3945
3849 3946 /***/ } /***/ }
3850 3947 /******/ ]); /******/ ]);
File dist/app.min.js changed (mode: 100644) (index ae2c54c..f0de24d)
1 !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(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}var o=n(1),a=r(o),i=n(17),u=r(i),s={},l=(0,a["default"])(s);window.onload=function(){(0,u["default"])(l)}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e){var t=(0,a.compose)((0,a.applyMiddleware)(u["default"]),window.devToolsExtension?window.devToolsExtension():function(e){return e})(a.createStore),n=t(l["default"],e);return n}Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=o;var a=n(2),i=n(12),u=r(i),s=n(13),l=r(s)},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}t.__esModule=!0;var o=n(3),a=r(o),i=n(5),u=r(i),s=n(9),l=r(s),c=n(10),f=r(c),d=n(11),p=r(d);t.createStore=a["default"],t.combineReducers=u["default"],t.bindActionCreators=l["default"],t.applyMiddleware=f["default"],t.compose=p["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){function n(){return l}function r(e){c.push(e);var t=!0;return function(){if(t){t=!1;var n=c.indexOf(e);c.splice(n,1)}}}function o(e){if(!i["default"](e))throw new Error("Actions must be plain objects. Use custom middleware for async actions.");if("undefined"==typeof e.type)throw new Error('Actions may not have an undefined "type" property. Have you misspelled a constant?');if(f)throw new Error("Reducers may not dispatch actions.");try{f=!0,l=s(l,e)}finally{f=!1}return c.slice().forEach(function(e){return e()}),e}function a(e){s=e,o({type:u.INIT})}if("function"!=typeof e)throw new Error("Expected the reducer to be a function.");var s=e,l=t,c=[],f=!1;return o({type:u.INIT}),{dispatch:o,subscribe:r,getState:n,replaceReducer:a}}t.__esModule=!0,t["default"]=o;var a=n(4),i=r(a),u={INIT:"@@redux/INIT"};t.ActionTypes=u},function(e,t){"use strict";function n(e){if(!e||"object"!=typeof e)return!1;var t="function"==typeof e.constructor?Object.getPrototypeOf(e):Object.prototype;if(null===t)return!0;var n=t.constructor;return"function"==typeof n&&n instanceof n&&r(n)===o}t.__esModule=!0,t["default"]=n;var r=function(e){return Function.prototype.toString.call(e)},o=r(Object);e.exports=t["default"]},function(e,t,n){(function(r){"use strict";function o(e){return e&&e.__esModule?e:{"default":e}}function a(e,t){var n=t&&t.type,r=n&&'"'+n.toString()+'"'||"an action";return'Reducer "'+e+'" returned undefined handling '+r+". To ignore an action, you must explicitly return the previous state."}function i(e,t,n){var r=Object.keys(t),o=n&&n.type===l.ActionTypes.INIT?"initialState argument passed to createStore":"previous state received by the reducer";if(0===r.length)return"Store does not have a valid reducer. Make sure the argument passed to combineReducers is an object whose values are reducers.";if(!f["default"](e))return"The "+o+' has unexpected type of "'+{}.toString.call(e).match(/\s([a-z|A-Z]+)/)[1]+'". Expected argument to be an object with the following '+('keys: "'+r.join('", "')+'"');var a=Object.keys(e).filter(function(e){return r.indexOf(e)<0});return a.length>0?"Unexpected "+(a.length>1?"keys":"key")+" "+('"'+a.join('", "')+'" found in '+o+". ")+"Expected to find one of the known reducer keys instead: "+('"'+r.join('", "')+'". Unexpected keys will be ignored.'):void 0}function u(e){Object.keys(e).forEach(function(t){var n=e[t],r=n(void 0,{type:l.ActionTypes.INIT});if("undefined"==typeof r)throw new Error('Reducer "'+t+'" returned undefined during initialization. If the state passed to the reducer is undefined, you must explicitly return the initial state. The initial state may not be undefined.');var o="@@redux/PROBE_UNKNOWN_ACTION_"+Math.random().toString(36).substring(7).split("").join(".");if("undefined"==typeof n(void 0,{type:o}))throw new Error('Reducer "'+t+'" returned undefined when probed with a random type. '+("Don't try to handle "+l.ActionTypes.INIT+' or other actions in "redux/*" ')+"namespace. They are considered private. Instead, you must return the current state for any unknown actions, unless it is undefined, in which case you must return the initial state, regardless of the action type. The initial state may not be undefined.")})}function s(e){var t,n=v["default"](e,function(e){return"function"==typeof e});try{u(n)}catch(o){t=o}var s=p["default"](n,function(){});return function(e,o){if(void 0===e&&(e=s),t)throw t;var u=!1,l=p["default"](n,function(t,n){var r=e[n],i=t(r,o);if("undefined"==typeof i){var s=a(n,o);throw new Error(s)}return u=u||i!==r,i});if("production"!==r.env.NODE_ENV){var c=i(e,l,o);c&&console.error(c)}return u?l:e}}t.__esModule=!0,t["default"]=s;var l=n(3),c=n(4),f=o(c),d=n(7),p=o(d),h=n(8),v=o(h);e.exports=t["default"]}).call(t,n(6))},function(e,t){function n(){l=!1,i.length?s=i.concat(s):c=-1,s.length&&r()}function r(){if(!l){var e=setTimeout(n);l=!0;for(var t=s.length;t;){for(i=s,s=[];++c<t;)i&&i[c].run();c=-1,t=s.length}i=null,l=!1,clearTimeout(e)}}function o(e,t){this.fun=e,this.array=t}function a(){}var i,u=e.exports={},s=[],l=!1,c=-1;u.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];s.push(new o(e,t)),1!==s.length||l||setTimeout(r,0)},o.prototype.run=function(){this.fun.apply(null,this.array)},u.title="browser",u.browser=!0,u.env={},u.argv=[],u.version="",u.versions={},u.on=a,u.addListener=a,u.once=a,u.off=a,u.removeListener=a,u.removeAllListeners=a,u.emit=a,u.binding=function(e){throw new Error("process.binding is not supported")},u.cwd=function(){return"/"},u.chdir=function(e){throw new Error("process.chdir is not supported")},u.umask=function(){return 0}},function(e,t){"use strict";function n(e,t){return Object.keys(e).reduce(function(n,r){return n[r]=t(e[r],r),n},{})}t.__esModule=!0,t["default"]=n,e.exports=t["default"]},function(e,t){"use strict";function n(e,t){return Object.keys(e).reduce(function(n,r){return t(e[r])&&(n[r]=e[r]),n},{})}t.__esModule=!0,t["default"]=n,e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){return function(){return t(e.apply(void 0,arguments))}}function a(e,t){if("function"==typeof e)return o(e,t);if("object"!=typeof e||null===e||void 0===e)throw new Error("bindActionCreators expected an object or a function, instead received "+(null===e?"null":typeof e)+'. Did you write "import ActionCreators from" instead of "import * as ActionCreators from"?');return u["default"](e,function(e){return o(e,t)})}t.__esModule=!0,t["default"]=a;var i=n(7),u=r(i);e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(){for(var e=arguments.length,t=Array(e),n=0;e>n;n++)t[n]=arguments[n];return function(e){return function(n,r){var o=e(n,r),i=o.dispatch,s=[],l={getState:o.getState,dispatch:function(e){return i(e)}};return s=t.map(function(e){return e(l)}),i=u["default"].apply(void 0,s)(o.dispatch),a({},o,{dispatch:i})}}}t.__esModule=!0;var a=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};t["default"]=o;var i=n(11),u=r(i);e.exports=t["default"]},function(e,t){"use strict";function n(){for(var e=arguments.length,t=Array(e),n=0;e>n;n++)t[n]=arguments[n];return function(e){return t.reduceRight(function(e,t){return t(e)},e)}}t.__esModule=!0,t["default"]=n,e.exports=t["default"]},function(e,t){"use strict";function n(e){var t=e.dispatch,n=e.getState;return function(e){return function(r){return"function"==typeof r?r(t,n):e(r)}}}e.exports=n},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var o=n(2),a=n(14),i=r(a),u=n(16),s=r(u);t["default"]=(0,o.combineReducers)({rdxCounter:i["default"],rdxSimple:s["default"]})},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){switch("undefined"==typeof e&&(e={counter:0}),"undefined"==typeof e.counter&&(e.counter=0),t.type){case u["default"].COUNTER_INCREMENT:var n=a({},e,{counter:e.counter+1});return n;case u["default"].COUNTER_DECREMENT:return a({},e,{counter:e.counter-1});default:return e}}var a=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};Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=o;var i=n(15),u=r(i)},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n={COUNTER_INCREMENT:"COUNTER_INCREMENT",COUNTER_DECREMENT:"COUNTER_DECREMENT",TEXT_CHANGE:"TEXT_CHANGE"};t["default"]=n},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){if(!e)return u;switch(t.type){case i["default"].TEXT_CHANGE:return Object.assign({},e,{text:t.text});default:return e}}Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=o;var a=n(15),i=r(a),u={text:"ZZZ"}},function(e,t,n){(function(e){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(t){var n=i["default"].component(s["default"],{data:t});i["default"].mount(document.getElementById("root"),n),console.log(e.registry)}Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=o;var a=n(18),i=r(a),u=n(20),s=r(u);e.registry={}}).call(t,function(){return this}())},function(e,t,n){var r;(function(e){var o=function a(e,t){function n(e){C=e.document,k=e.location,S=e.cancelAnimationFrame||e.clearTimeout,R=e.requestAnimationFrame||e.setTimeout}function r(){var e,t=[].slice.call(arguments),n=!(null==t[1]||U.call(t[1])!==A||"tag"in t[1]||"view"in t[1]||"subtree"in t[1]),r=n?t[1]:{},o="class"in r?"class":"className",a={tag:"div",attrs:{}},i=[];if(U.call(t[0])!=P)throw new Error("selector in m(selector, attrs, children) should be a string");for(;e=B.exec(t[0]);)if(""===e[1]&&e[2])a.tag=e[2];else if("#"===e[1])a.attrs.id=e[2];else if("."===e[1])i.push(e[2]);else if("["===e[3][0]){var u=D.exec(e[3]);a.attrs[u[1]]=u[3]||(u[2]?"":!0)}var s=n?t.slice(2):t.slice(1);1===s.length&&U.call(s[0])===L?a.children=s[0]:a.children=s;for(var l in r)r.hasOwnProperty(l)&&(l===o&&null!=r[l]&&""!==r[l]?(i.push(r[l]),a.attrs[l]=""):a.attrs[l]=r[l]);return i.length>0&&(a.attrs[o]=i.join(" ")),a}function o(e,n,a,l,f,d,p,h,v,y,g){try{(null==f||null==f.toString())&&(f="")}catch(m){f=""}if("retain"===f.subtree)return d;var w=U.call(d),b=U.call(f);if(null==d||w!==b){if(null!=d)if(a&&a.nodes){var _=h-l,O=_+(b===L?f:d.nodes).length;s(a.nodes.slice(_,O),a.slice(_,O))}else d.nodes&&s(d.nodes,d);d=new f.constructor,d.tag&&(d={}),d.nodes=[]}if(b===L){for(var x=0,T=f.length;T>x;x++)U.call(f[x])===L&&(f=f.concat.apply([],f),x--,T=f.length);for(var E=[],M=d.length===f.length,j=0,N=1,k=2,R=3,S={},B=!1,x=0;x<d.length;x++)d[x]&&d[x].attrs&&null!=d[x].attrs.key&&(B=!0,S[d[x].attrs.key]={action:N,index:x});for(var D=0,x=0,T=f.length;T>x;x++)if(f[x]&&f[x].attrs&&null!=f[x].attrs.key){for(var $=0,T=f.length;T>$;$++)f[$]&&f[$].attrs&&null==f[$].attrs.key&&(f[$].attrs.key="__mithril__"+D++);break}if(B){var H=!1;if(f.length!=d.length)H=!0;else for(var J,q,x=0;J=d[x],q=f[x];x++)if(J.attrs&&q.attrs&&J.attrs.key!=q.attrs.key){H=!0;break}if(H){for(var x=0,T=f.length;T>x;x++)if(f[x]&&f[x].attrs&&null!=f[x].attrs.key){var F=f[x].attrs.key;S[F]?S[F]={action:R,index:x,from:S[F].index,element:d.nodes[S[F].index]||C.createElement("div")}:S[F]={action:k,index:x}}var K=[];for(var V in S)K.push(S[V]);var X=K.sort(i),Z=new Array(d.length);Z.nodes=d.nodes.slice();for(var W,x=0;W=X[x];x++){if(W.action===N&&(s(d[W.index].nodes,d[W.index]),Z.splice(W.index,1)),W.action===k){var Q=C.createElement("div");Q.key=f[W.index].attrs.key,e.insertBefore(Q,e.childNodes[W.index]||null),Z.splice(W.index,0,{attrs:{key:f[W.index].attrs.key},nodes:[Q]}),Z.nodes[W.index]=Q}W.action===R&&(e.childNodes[W.index]!==W.element&&null!==W.element&&e.insertBefore(W.element,e.childNodes[W.index]||null),Z[W.index]=d[W.from],Z.nodes[W.index]=W.element)}d=Z}}for(var x=0,Y=0,T=f.length;T>x;x++){var te=o(e,n,d,h,f[x],d[Y],p,h+j||j,v,y,g);te!==t&&(te.nodes.intact||(M=!1),j+=te.$trusted?(te.match(/<[^\/]|\>\s*[^<]/g)||[0]).length:U.call(te)===L?te.length:1,d[Y++]=te)}if(!M){for(var x=0,T=f.length;T>x;x++)null!=d[x]&&E.push.apply(E,d[x].nodes);for(var ne,x=0;ne=d.nodes[x];x++)null!=ne.parentNode&&E.indexOf(ne)<0&&s([ne],[d[x]]);f.length<d.length&&(d.length=f.length),d.nodes=E}}else if(null!=f&&b===A){for(var oe=[],ae=[];f.view;){var ie=f.view.$original||f.view,ue="diff"==r.redraw.strategy()&&d.views?d.views.indexOf(ie):-1,se=ue>-1?d.controllers[ue]:new(f.controller||G),F=f&&f.attrs&&f.attrs.key;if(f=0==re||d&&d.controllers&&d.controllers.indexOf(se)>-1?f.view(se):{tag:"placeholder"},"retain"===f.subtree)return d;F&&(f.attrs||(f.attrs={}),f.attrs.key=F),se.onunload&&ee.push({controller:se,handler:se.onunload}),oe.push(ie),ae.push(se)}if(!f.tag&&ae.length)throw new Error("Component template must return a virtual element, not an array, string, etc.");f.attrs||(f.attrs={}),d.attrs||(d.attrs={});var le=Object.keys(f.attrs),ce=le.length>("key"in f.attrs?1:0);if((f.tag!=d.tag||le.sort().join()!=Object.keys(d.attrs).sort().join()||f.attrs.id!=d.attrs.id||f.attrs.key!=d.attrs.key||"all"==r.redraw.strategy()&&(!d.configContext||d.configContext.retain!==!0)||"diff"==r.redraw.strategy()&&d.configContext&&d.configContext.retain===!1)&&(d.nodes.length&&s(d.nodes),d.configContext&&typeof d.configContext.onunload===I&&d.configContext.onunload(),d.controllers))for(var se,x=0;se=d.controllers[x];x++)typeof se.onunload===I&&se.onunload({preventDefault:G});if(U.call(f.tag)!=P)return;var ne,fe=0===d.nodes.length;if(f.attrs.xmlns?y=f.attrs.xmlns:"svg"===f.tag?y="http://www.w3.org/2000/svg":"math"===f.tag&&(y="http://www.w3.org/1998/Math/MathML"),fe){if(ne=f.attrs.is?y===t?C.createElement(f.tag,f.attrs.is):C.createElementNS(y,f.tag,f.attrs.is):y===t?C.createElement(f.tag):C.createElementNS(y,f.tag),d={tag:f.tag,attrs:ce?u(ne,f.tag,f.attrs,{},y):f.attrs,children:null!=f.children&&f.children.length>0?o(ne,f.tag,t,t,f.children,d.children,!0,0,f.attrs.contenteditable?ne:v,y,g):f.children,nodes:[ne]},ae.length){d.views=oe,d.controllers=ae;for(var se,x=0;se=ae[x];x++)if(se.onunload&&se.onunload.$old&&(se.onunload=se.onunload.$old),re&&se.onunload){var de=se.onunload;se.onunload=G,se.onunload.$old=de}}d.children&&!d.children.nodes&&(d.children.nodes=[]),"select"===f.tag&&"value"in f.attrs&&u(ne,f.tag,{value:f.attrs.value},{},y),e.insertBefore(ne,e.childNodes[h]||null)}else ne=d.nodes[0],ce&&u(ne,f.tag,f.attrs,d.attrs,y),d.children=o(ne,f.tag,t,t,f.children,d.children,!1,0,f.attrs.contenteditable?ne:v,y,g),d.nodes.intact=!0,ae.length&&(d.views=oe,d.controllers=ae),p===!0&&null!=ne&&e.insertBefore(ne,e.childNodes[h]||null);if(typeof f.attrs.config===I){var pe=d.configContext=d.configContext||{},he=function(e,t){return function(){return e.attrs.config.apply(e,t)}};g.push(he(f,[ne,!fe,pe,d]))}}else if(typeof f!=I){var E;0===d.nodes.length?(f.$trusted?E=c(e,h,f):(E=[C.createTextNode(f)],e.nodeName.match(z)||e.insertBefore(E[0],e.childNodes[h]||null)),d="string number boolean".indexOf(typeof f)>-1?new f.constructor(f):f,d.nodes=E):d.valueOf()!==f.valueOf()||p===!0?(E=d.nodes,v&&v===C.activeElement||(f.$trusted?(s(E,d),E=c(e,h,f)):"textarea"===n?e.value=f:v?v.innerHTML=f:((1===E[0].nodeType||E.length>1)&&(s(d.nodes,d),E=[C.createTextNode(f)]),e.insertBefore(E[0],e.childNodes[h]||null),E[0].nodeValue=f)),d=new f.constructor(f),d.nodes=E):d.nodes.intact=!0}return d}function i(e,t){return e.action-t.action||e.index-t.index}function u(e,t,n,r,o){for(var a in n){var i=n[a],u=r[a];if(a in r&&u===i)"value"===a&&"input"===t&&e.value!=i&&(e.value=i);else{r[a]=i;try{if("config"===a||"key"==a)continue;if(typeof i===I&&0===a.indexOf("on"))e[a]=f(i,e);else if("style"===a&&null!=i&&U.call(i)===A){for(var s in i)(null==u||u[s]!==i[s])&&(e.style[s]=i[s]);for(var s in u)s in i||(e.style[s]="")}else null!=o?"href"===a?e.setAttributeNS("http://www.w3.org/1999/xlink","href",i):"className"===a?e.setAttribute("class",i):e.setAttribute(a,i):a in e&&"list"!==a&&"style"!==a&&"form"!==a&&"type"!==a&&"width"!==a&&"height"!==a?("input"!==t||e[a]!==i)&&(e[a]=i):e.setAttribute(a,i)}catch(l){if(l.message.indexOf("Invalid argument")<0)throw l}}}return r}function s(e,t){for(var n=e.length-1;n>-1;n--)if(e[n]&&e[n].parentNode){try{e[n].parentNode.removeChild(e[n])}catch(r){}t=[].concat(t),t[n]&&l(t[n])}0!=e.length&&(e.length=0)}function l(e){if(e.configContext&&typeof e.configContext.onunload===I&&(e.configContext.onunload(),e.configContext.onunload=null),e.controllers)for(var t,n=0;t=e.controllers[n];n++)typeof t.onunload===I&&t.onunload({preventDefault:G});if(e.children)if(U.call(e.children)===L)for(var r,n=0;r=e.children[n];n++)l(r);else e.children.tag&&l(e.children)}function c(e,t,n){var r=e.childNodes[t];if(r){var o=1!=r.nodeType,a=C.createElement("span");o?(e.insertBefore(a,r||null),a.insertAdjacentHTML("beforebegin",n),e.removeChild(a)):r.insertAdjacentHTML("beforebegin",n)}else e.insertAdjacentHTML("beforeend",n);for(var i=[];e.childNodes[t]!==r;)i.push(e.childNodes[t]),t++;return i}function f(e,t){return function(n){n=n||event,r.redraw.strategy("diff"),r.startComputation();try{return e.call(t,n)}finally{oe()}}}function d(e){var t=J.indexOf(e);return 0>t?J.push(e)-1:t}function p(e){var t=function(){return arguments.length&&(e=arguments[0]),e};return t.toJSON=function(){return e},t}function h(e,t){var n=function(){return(e.controller||G).apply(this,t)||this},r=function(n){return arguments.length>1&&(t=t.concat([].slice.call(arguments,1))),e.view.apply(e,t?[n].concat(t):[n])};r.$original=e.view;var o={controller:n,view:r};return t[0]&&null!=t[0].key&&(o.attrs={key:t[0].key}),o}function v(){Q&&(Q(),Q=null);for(var e,t=0;e=K[t];t++)if(X[t]){var n=V[t].controller&&V[t].controller.$$args?[X[t]].concat(V[t].controller.$$args):[X[t]];r.render(e,V[t].view?V[t].view(X[t],n):"")}Y&&(Y(),Y=null),Z=null,W=new Date,r.redraw.strategy("diff")}function y(e){return e.slice(ue[r.route.mode].length)}function g(e,t,n){ae={};var o=n.indexOf("?");-1!==o&&(ae=_(n.substr(o+1,n.length)),n=n.substr(0,o));var a=Object.keys(t),i=a.indexOf(n);if(-1!==i)return r.mount(e,t[a[i]]),!0;for(var u in t){if(u===n)return r.mount(e,t[u]),!0;var s=new RegExp("^"+u.replace(/:[^\/]+?\.{3}/g,"(.*?)").replace(/:[^\/]+/g,"([^\\/]+)")+"/?$");if(s.test(n))return n.replace(s,function(){for(var n=u.match(/:[^\/]+/g)||[],o=[].slice.call(arguments,1,-2),a=0,i=n.length;i>a;a++)ae[n[a].replace(/:|\./g,"")]=decodeURIComponent(o[a]);r.mount(e,t[u])}),!0}}function m(e){if(e=e||event,!e.ctrlKey&&!e.metaKey&&2!==e.which){e.preventDefault?e.preventDefault():e.returnValue=!1;for(var t=e.currentTarget||e.srcElement,n="pathname"===r.route.mode&&t.search?_(t.search.slice(1)):{};t&&"A"!=t.nodeName.toUpperCase();)t=t.parentNode;r.route(t[r.route.mode].slice(ue[r.route.mode].length),n)}}function w(){"hash"!=r.route.mode&&k.hash?k.hash=k.hash:e.scrollTo(0,0)}function b(e,n){var r={},o=[];for(var a in e){var i=n?n+"["+a+"]":a,u=e[a],s=U.call(u),l=null===u?encodeURIComponent(i):s===A?b(u,i):s===L?u.reduce(function(e,t){return r[i]||(r[i]={}),r[i][t]?e:(r[i][t]=!0,e.concat(encodeURIComponent(i)+"="+encodeURIComponent(t)))},[]).join("&"):encodeURIComponent(i)+"="+encodeURIComponent(u);u!==t&&o.push(l)}return o.join("&")}function _(e){"?"===e.charAt(0)&&(e=e.substring(1));for(var t=e.split("&"),n={},r=0,o=t.length;o>r;r++){var a=t[r].split("="),i=decodeURIComponent(a[0]),u=2==a.length?decodeURIComponent(a[1]):null;null!=n[i]?(U.call(n[i])!==L&&(n[i]=[n[i]]),n[i].push(u)):n[i]=u}return n}function O(e){var n=d(e);s(e.childNodes,q[n]),q[n]=t}function x(e,t){var n=r.prop(t);return e.then(n),n.then=function(n,r){return x(e.then(n,r),t)},n}function T(e,t){function n(e){f=e||l,p.map(function(e){f===s&&e.resolve(d)||e.reject(d)})}function o(e,t,n,o){if((null!=d&&U.call(d)===A||typeof d===I)&&typeof e===I)try{var a=0;e.call(d,function(e){a++||(d=e,t())},function(e){a++||(d=e,n())})}catch(i){r.deferred.onerror(i),d=i,n()}else o()}function a(){var l;try{l=d&&d.then}catch(p){return r.deferred.onerror(p),d=p,f=u,a()}o(l,function(){f=i,a()},function(){f=u,a()},function(){try{f===i&&typeof e===I?d=e(d):f===u&&"function"==typeof t&&(d=t(d),f=i)}catch(a){return r.deferred.onerror(a),d=a,n()}d===c?(d=TypeError(),n()):o(l,function(){n(s)},n,function(){n(f===i&&s)})})}var i=1,u=2,s=3,l=4,c=this,f=0,d=0,p=[];c.promise={},c.resolve=function(e){return f||(d=e,f=i,a()),this},c.reject=function(e){return f||(d=e,f=u,a()),this},c.promise.then=function(e,t){var n=new T(e,t);return f===s?n.resolve(d):f===l?n.reject(d):p.push(n),n.promise}}function E(e){return e}function M(n){if(!n.dataType||"jsonp"!==n.dataType.toLowerCase()){var r=new e.XMLHttpRequest;if(r.open(n.method,n.url,!0,n.user,n.password),r.onreadystatechange=function(){4===r.readyState&&(r.status>=200&&r.status<300?n.onload({type:"load",target:r}):n.onerror({type:"error",target:r}))},n.serialize===JSON.stringify&&n.data&&"GET"!==n.method&&r.setRequestHeader("Content-Type","application/json; charset=utf-8"),n.deserialize===JSON.parse&&r.setRequestHeader("Accept","application/json, text/*"),typeof n.config===I){var o=n.config(r,n);null!=o&&(r=o)}var a="GET"!==n.method&&n.data?n.data:"";if(a&&U.call(a)!=P&&a.constructor!=e.FormData)throw"Request data should be either be a string or FormData. Check the `serialize` option in `m.request`";return r.send(a),r}var i="mithril_callback_"+(new Date).getTime()+"_"+Math.round(1e16*Math.random()).toString(36),u=C.createElement("script");e[i]=function(r){u.parentNode.removeChild(u),n.onload({type:"load",target:{responseText:r}}),e[i]=t},u.onerror=function(r){return u.parentNode.removeChild(u),n.onerror({type:"error",target:{status:500,responseText:JSON.stringify({error:"Error making jsonp request"})}}),e[i]=t,!1},u.onload=function(e){return!1},u.src=n.url+(n.url.indexOf("?")>0?"&":"?")+(n.callbackKey?n.callbackKey:"callback")+"="+i+"&"+b(n.data||{}),C.body.appendChild(u)}function j(e,t,n){if("GET"===e.method&&"jsonp"!=e.dataType){var r=e.url.indexOf("?")<0?"?":"&",o=b(t);e.url=e.url+(o?r+o:"")}else e.data=n(t);return e}function N(e,t){var n=e.match(/:[a-z]\w+/gi);if(n&&t)for(var r=0;r<n.length;r++){var o=n[r].slice(1);e=e.replace(n[r],t[o]),delete t[o]}return e}var C,k,R,S,A="[object Object]",L="[object Array]",P="[object String]",I="function",U={}.toString,B=/(?:(^|#|\.)([^#\.\[\]]+))|(\[.+?\])/g,D=/\[(.+?)(?:=("|'|)(.*?)\2)?\]/,z=/^(AREA|BASE|BR|COL|COMMAND|EMBED|HR|IMG|INPUT|KEYGEN|LINK|META|PARAM|SOURCE|TRACK|WBR)$/,G=function(){};n(e);var $,H={appendChild:function(e){$===t&&($=C.createElement("html")),C.documentElement&&C.documentElement!==e?C.replaceChild(e,C.documentElement):C.appendChild(e),this.childNodes=C.childNodes},insertBefore:function(e){this.appendChild(e)},childNodes:[]},J=[],q={};r.render=function(e,n,r){var a=[];if(!e)throw new Error("Ensure the DOM element being passed to m.route/m.mount/m.render is not undefined.");var i=d(e),u=e===C,l=u||e===C.documentElement?H:e;u&&"html"!=n.tag&&(n={tag:"html",attrs:{},children:n}),q[i]===t&&s(l.childNodes),r===!0&&O(e),q[i]=o(l,null,t,t,n,q[i],!1,0,null,t,a);for(var c=0,f=a.length;f>c;c++)a[c]()},r.trust=function(e){return e=new String(e),e.$trusted=!0,e},r.prop=function(e){return(null!=e&&U.call(e)===A||typeof e===I)&&typeof e.then===I?x(e):p(e)};var F,K=[],V=[],X=[],Z=null,W=0,Q=null,Y=null,ee=[],te=16;r.component=function(e){return h(e,[].slice.call(arguments,1))},r.mount=r.module=function(e,t){if(!e)throw new Error("Please ensure the DOM element exists before rendering a template into it.");var n=K.indexOf(e);0>n&&(n=K.length);for(var o,a=!1,i={preventDefault:function(){a=!0,Q=Y=null}},u=0;o=ee[u];u++)o.handler.call(o.controller,i),o.controller.onunload=null;if(a)for(var o,u=0;o=ee[u];u++)o.controller.onunload=o.handler;else ee=[];if(X[n]&&typeof X[n].onunload===I&&X[n].onunload(i),!a){r.redraw.strategy("all"),r.startComputation(),K[n]=e,arguments.length>2&&(t=subcomponent(t,[].slice.call(arguments,2)));var s=F=t=t||{controller:function(){}},l=t.controller||G,c=new l;return s===F&&(X[n]=c,V[n]=t),oe(),X[n]}};var ne=!1;r.redraw=function(t){ne||(ne=!0,Z&&t!==!0?(R===e.requestAnimationFrame||new Date-W>te)&&(Z>0&&S(Z),Z=R(v,te)):(v(),Z=R(function(){Z=null},te)),ne=!1)},r.redraw.strategy=r.prop();var re=0;r.startComputation=function(){re++},r.endComputation=function(){re=Math.max(re-1,0),0===re&&r.redraw()};var oe=function(){"none"==r.redraw.strategy()?(re--,r.redraw.strategy("diff")):r.endComputation()};r.withAttr=function(e,t){return function(n){n=n||event;var r=n.currentTarget||this;t(e in r?r[e]:r.getAttribute(e))}};var ae,ie,ue={pathname:"",hash:"#",search:"?"},se=G,le=!1;return r.route=function(){if(0===arguments.length)return ie;if(3===arguments.length&&U.call(arguments[1])===P){var t=arguments[0],n=arguments[1],o=arguments[2];se=function(e){var a=ie=y(e);if(!g(t,o,a)){if(le)throw new Error("Ensure the default route matches one of the routes defined in m.route");le=!0,r.route(n,!0),le=!1}};var a="hash"===r.route.mode?"onhashchange":"onpopstate";e[a]=function(){var e=k[r.route.mode];"pathname"===r.route.mode&&(e+=k.search),ie!=y(e)&&se(e)},Q=w,e[a]()}else if(arguments[0].addEventListener||arguments[0].attachEvent){var i=arguments[0],u=(arguments[1],arguments[2],arguments[3]);i.href=("pathname"!==r.route.mode?k.pathname:"")+ue[r.route.mode]+u.attrs.href,i.addEventListener?(i.removeEventListener("click",m),i.addEventListener("click",m)):(i.detachEvent("onclick",m),i.attachEvent("onclick",m))}else if(U.call(arguments[0])===P){var s=ie;ie=arguments[0];var l=arguments[1]||{},c=ie.indexOf("?"),f=c>-1?_(ie.slice(c+1)):{};for(var d in l)f[d]=l[d];var p=b(f),h=c>-1?ie.slice(0,c):ie;p&&(ie=h+(-1===h.indexOf("?")?"?":"&")+p);var v=(3===arguments.length?arguments[2]:arguments[1])===!0||s===arguments[0];e.history.pushState?(Q=w,Y=function(){e.history[v?"replaceState":"pushState"](null,C.title,ue[r.route.mode]+ie)},se(ue[r.route.mode]+ie)):(k[r.route.mode]=ie,se(ue[r.route.mode]+ie))}},r.route.param=function(e){if(!ae)throw new Error("You must call m.route(element, defaultRoute, routes) before calling m.route.param()");return ae[e]},r.route.mode="search",r.route.buildQueryString=b,r.route.parseQueryString=_,r.deferred=function(){var e=new T;return e.promise=x(e.promise),e},r.deferred.onerror=function(e){if("[object Error]"===U.call(e)&&!e.constructor.toString().match(/ Error/))throw e},r.sync=function(e){function t(e,t){return function(r){return i[e]=r,t||(n="reject"),0===--a&&(o.promise(i),o[n](i)),r}}var n="resolve",o=r.deferred(),a=e.length,i=new Array(a);if(e.length>0)for(var u=0;u<e.length;u++)e[u].then(t(u,!0),t(u,!1));else o.resolve([]);return o.promise},r.request=function(e){e.background!==!0&&r.startComputation();var t=new T,n=e.dataType&&"jsonp"===e.dataType.toLowerCase(),o=e.serialize=n?E:e.serialize||JSON.stringify,a=e.deserialize=n?E:e.deserialize||JSON.parse,i=n?function(e){return e.responseText}:e.extract||function(e){return 0===e.responseText.length&&a===JSON.parse?null:e.responseText};return e.method=(e.method||"GET").toUpperCase(),e.url=N(e.url,e.data),e=j(e,e.data,o),e.onload=e.onerror=function(n){try{n=n||event;var o=("load"===n.type?e.unwrapSuccess:e.unwrapError)||E,u=o(a(i(n.target,e)),n.target);if("load"===n.type)if(U.call(u)===L&&e.type)for(var s=0;s<u.length;s++)u[s]=new e.type(u[s]);else e.type&&(u=new e.type(u));t["load"===n.type?"resolve":"reject"](u)}catch(n){r.deferred.onerror(n),t.reject(n)}e.background!==!0&&r.endComputation()},M(e),t.promise=x(t.promise,e.initialValue),t.promise},r.deps=function(t){return n(e=t||e),e},r.deps.factory=a,r}("undefined"!=typeof window?window:{});"undefined"!=typeof e&&null!==e&&e.exports?e.exports=o:(r=function(){return o}.call(t,n,t,e),!(void 0!==r&&(e.exports=r)))}).call(t,n(19)(e))},function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children=[],e.webpackPolyfill=1),e}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var o=n(18),a=r(o),i=n(21),u=r(i),s=n(22),l=r(s),c={};c.controller=function(e){this.store=e.data,this.mSimple=new l["default"]},c.view=function(e){return(0,a["default"])("div",[a["default"].component(u["default"],{data:e.store}),a["default"].component(e.mSimple.m(),{data:e.store})])},t["default"]=c},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var o=n(18),a=r(o),i={controller:function(e){var t=this;this.store=e.data,this.count=e.data.getState().counter,this.increment=function(){console.log(t.store),t.store.dispatch({type:"INCREMENT"})},this.decrement=function(){t.store.dispatch({type:"DECREMENT"})},e.data.subscribe(function(){t.count=t.store.getState().counter})},view:function(e){return(0,a["default"])("div",[(0,a["default"])("span",e.count),(0,a["default"])("br"),(0,a["default"])("button",{onclick:e.increment},"+"),(0,a["default"])("button",{onclick:e.decrement},"-")])}};t["default"]=i},function(e,t,n){"use strict";function r(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t["default"]=e,t}function o(e){return e&&e.__esModule?e:{"default":e}}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function u(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var s=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();Object.defineProperty(t,"__esModule",{value:!0});var l=n(18),c=o(l),f=n(23),d=o(f),p=n(24),h=r(p),v=function(e){function t(){return a(this,t),i(this,Object.getPrototypeOf(t).apply(this,arguments))}return u(t,e),s(t,[{key:"controller",value:function(e){this.store=e.data,this.mBtnTest=new h.component({tag:"a",label:"Initial Label",size:h.sizes.SMALL})}},{key:"view",value:function(e,t){var n=this.store.getState();return(0,c["default"])(".test",[(0,c["default"])("h1","Hello World !"),(0,c["default"])("p",n.text),(0,c["default"])("button",{onclick:this.clickText},"What time is it ?"),c["default"].component(this.mBtnTest.m(),{label:"Changed Label"})])}},{key:"clickText",value:function(e){e.preventDefault(),this.store.dispatch({type:appActions.TEXT_CHANGE,text:"It's currently: "+(new Date).toTimeString()})}}]),t}(d["default"]);t["default"]=v},function(e,t){"use strict";function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(t){n(this,e),this.options={};var r=this;r.options=Object.assign({},this.options,t),r.mithril={controller:function(){r.model(),r.controller.apply(r,arguments)},view:function(){return r.view.apply(r,arguments)}}}return r(e,[{key:"reducer",value:function(e){throw TypeError('Method "reducer" should be overriden in children');
2 }},{key:"model",value:function(e){}},{key:"controller",value:function(e){}},{key:"view",value:function(e){return[]}},{key:"m",value:function(){return this.mithril}}]),e}();t["default"]=o},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var u=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),s=n(23),l=r(s),c=n(18),f=r(c),d=n(25),p=r(d),h=n(26),v=r(h),y=n(27),g=(r(y),function(e){function t(e){o(this,t);var n=a(this,Object.getPrototypeOf(t).call(this,e));return n.options={tag:"button",label:"Button",size:p["default"].NORMAL},n}return i(t,e),u(t,[{key:"model",value:function(){this.theme=f["default"].prop(),this.tag=f["default"].prop(this.options.tag),this.label=f["default"].prop(this.options.label),this.descriptor=f["default"].prop(this.tag())}},{key:"controller",value:function(e){var t=Object.assign({},this.options,e);this.tag=f["default"].prop(t.tag),this.label=f["default"].prop(t.label),this.descriptor=f["default"].prop(t.tag+v["default"].MBUTTON),t.size!=p["default"].NORMAL&&(this.descriptor=f["default"].prop(this.descriptor()+v["default"][t.size]))}},{key:"view",value:function(e,t){return(0,f["default"])(this.descriptor(),this.label())}}]),t}(l["default"]));e.exports={component:g,sizes:p["default"]}},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n={NORMAL:"MBUTTON",SMALL:"MBUTTON_SMALL",LARGE:"MBUTTON_LARGE"};t["default"]=n},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var o=n(25),a=(r(o),".mButton"),i={MBUTTON:a,MBUTTON_SMALL:a+"-small",MBUTTON_LARGE:a+"-large"};t["default"]=i},function(e,t,n){(function(e){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}var o=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};Object.defineProperty(t,"__esModule",{value:!0});var a=n(28),i=r(a),u=n(42),s=r(u),l=n(43),c=r(l),f=n(25),d=r(f),p=n(44),h=r(p),v=n(26),y=r(v);i["default"].use((0,s["default"])()),i["default"].use((0,c["default"])());var g="green",m=function(e){var t=void 0;switch(e){case d["default"].SMALL:t=".2rem";break;case d["default"].LARGE:t="1rem";break;default:t=".5rem"}return{padding:t}},w={};w[y["default"].MBUTTON]=o({},m(d["default"].NORMAL),{color:g}),w[y["default"].MBUTTON_SMALL]=o({},m(d["default"].SMALL)),w[y["default"].MBUTTON_LARGE]=o({},m(d["default"].LARGE));for(var b in h["default"])"default"==b?w[y["default"].MBUTTON]=o({},w[y["default"].MBUTTON],h["default"][b]):w[y["default"].MBUTTON+".t-"+b.toLowerCase()]=h["default"][b];var _=i["default"].createStyleSheet(w,{named:!1}).attach();e.jssStyle=Object.assign({},e.jssStyle,_),t["default"]=_}).call(t,function(){return this}())},function(e,t,n){/**
1 !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(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}var o=n(1),a=r(o),i=n(17),u=r(i),s={},l=(0,a["default"])(s);window.onload=function(){(0,u["default"])(l)}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e){var t=(0,a.compose)((0,a.applyMiddleware)(u["default"]),window.devToolsExtension?window.devToolsExtension():function(e){return e})(a.createStore),n=t(l["default"],e);return n}Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=o;var a=n(2),i=n(12),u=r(i),s=n(13),l=r(s)},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}t.__esModule=!0;var o=n(3),a=r(o),i=n(5),u=r(i),s=n(9),l=r(s),c=n(10),f=r(c),d=n(11),p=r(d);t.createStore=a["default"],t.combineReducers=u["default"],t.bindActionCreators=l["default"],t.applyMiddleware=f["default"],t.compose=p["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){function n(){return l}function r(e){c.push(e);var t=!0;return function(){if(t){t=!1;var n=c.indexOf(e);c.splice(n,1)}}}function o(e){if(!i["default"](e))throw new Error("Actions must be plain objects. Use custom middleware for async actions.");if("undefined"==typeof e.type)throw new Error('Actions may not have an undefined "type" property. Have you misspelled a constant?');if(f)throw new Error("Reducers may not dispatch actions.");try{f=!0,l=s(l,e)}finally{f=!1}return c.slice().forEach(function(e){return e()}),e}function a(e){s=e,o({type:u.INIT})}if("function"!=typeof e)throw new Error("Expected the reducer to be a function.");var s=e,l=t,c=[],f=!1;return o({type:u.INIT}),{dispatch:o,subscribe:r,getState:n,replaceReducer:a}}t.__esModule=!0,t["default"]=o;var a=n(4),i=r(a),u={INIT:"@@redux/INIT"};t.ActionTypes=u},function(e,t){"use strict";function n(e){if(!e||"object"!=typeof e)return!1;var t="function"==typeof e.constructor?Object.getPrototypeOf(e):Object.prototype;if(null===t)return!0;var n=t.constructor;return"function"==typeof n&&n instanceof n&&r(n)===o}t.__esModule=!0,t["default"]=n;var r=function(e){return Function.prototype.toString.call(e)},o=r(Object);e.exports=t["default"]},function(e,t,n){(function(r){"use strict";function o(e){return e&&e.__esModule?e:{"default":e}}function a(e,t){var n=t&&t.type,r=n&&'"'+n.toString()+'"'||"an action";return'Reducer "'+e+'" returned undefined handling '+r+". To ignore an action, you must explicitly return the previous state."}function i(e,t,n){var r=Object.keys(t),o=n&&n.type===l.ActionTypes.INIT?"initialState argument passed to createStore":"previous state received by the reducer";if(0===r.length)return"Store does not have a valid reducer. Make sure the argument passed to combineReducers is an object whose values are reducers.";if(!f["default"](e))return"The "+o+' has unexpected type of "'+{}.toString.call(e).match(/\s([a-z|A-Z]+)/)[1]+'". Expected argument to be an object with the following '+('keys: "'+r.join('", "')+'"');var a=Object.keys(e).filter(function(e){return r.indexOf(e)<0});return a.length>0?"Unexpected "+(a.length>1?"keys":"key")+" "+('"'+a.join('", "')+'" found in '+o+". ")+"Expected to find one of the known reducer keys instead: "+('"'+r.join('", "')+'". Unexpected keys will be ignored.'):void 0}function u(e){Object.keys(e).forEach(function(t){var n=e[t],r=n(void 0,{type:l.ActionTypes.INIT});if("undefined"==typeof r)throw new Error('Reducer "'+t+'" returned undefined during initialization. If the state passed to the reducer is undefined, you must explicitly return the initial state. The initial state may not be undefined.');var o="@@redux/PROBE_UNKNOWN_ACTION_"+Math.random().toString(36).substring(7).split("").join(".");if("undefined"==typeof n(void 0,{type:o}))throw new Error('Reducer "'+t+'" returned undefined when probed with a random type. '+("Don't try to handle "+l.ActionTypes.INIT+' or other actions in "redux/*" ')+"namespace. They are considered private. Instead, you must return the current state for any unknown actions, unless it is undefined, in which case you must return the initial state, regardless of the action type. The initial state may not be undefined.")})}function s(e){var t,n=v["default"](e,function(e){return"function"==typeof e});try{u(n)}catch(o){t=o}var s=p["default"](n,function(){});return function(e,o){if(void 0===e&&(e=s),t)throw t;var u=!1,l=p["default"](n,function(t,n){var r=e[n],i=t(r,o);if("undefined"==typeof i){var s=a(n,o);throw new Error(s)}return u=u||i!==r,i});if("production"!==r.env.NODE_ENV){var c=i(e,l,o);c&&console.error(c)}return u?l:e}}t.__esModule=!0,t["default"]=s;var l=n(3),c=n(4),f=o(c),d=n(7),p=o(d),h=n(8),v=o(h);e.exports=t["default"]}).call(t,n(6))},function(e,t){function n(){l=!1,i.length?s=i.concat(s):c=-1,s.length&&r()}function r(){if(!l){var e=setTimeout(n);l=!0;for(var t=s.length;t;){for(i=s,s=[];++c<t;)i&&i[c].run();c=-1,t=s.length}i=null,l=!1,clearTimeout(e)}}function o(e,t){this.fun=e,this.array=t}function a(){}var i,u=e.exports={},s=[],l=!1,c=-1;u.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];s.push(new o(e,t)),1!==s.length||l||setTimeout(r,0)},o.prototype.run=function(){this.fun.apply(null,this.array)},u.title="browser",u.browser=!0,u.env={},u.argv=[],u.version="",u.versions={},u.on=a,u.addListener=a,u.once=a,u.off=a,u.removeListener=a,u.removeAllListeners=a,u.emit=a,u.binding=function(e){throw new Error("process.binding is not supported")},u.cwd=function(){return"/"},u.chdir=function(e){throw new Error("process.chdir is not supported")},u.umask=function(){return 0}},function(e,t){"use strict";function n(e,t){return Object.keys(e).reduce(function(n,r){return n[r]=t(e[r],r),n},{})}t.__esModule=!0,t["default"]=n,e.exports=t["default"]},function(e,t){"use strict";function n(e,t){return Object.keys(e).reduce(function(n,r){return t(e[r])&&(n[r]=e[r]),n},{})}t.__esModule=!0,t["default"]=n,e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){return function(){return t(e.apply(void 0,arguments))}}function a(e,t){if("function"==typeof e)return o(e,t);if("object"!=typeof e||null===e||void 0===e)throw new Error("bindActionCreators expected an object or a function, instead received "+(null===e?"null":typeof e)+'. Did you write "import ActionCreators from" instead of "import * as ActionCreators from"?');return u["default"](e,function(e){return o(e,t)})}t.__esModule=!0,t["default"]=a;var i=n(7),u=r(i);e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(){for(var e=arguments.length,t=Array(e),n=0;e>n;n++)t[n]=arguments[n];return function(e){return function(n,r){var o=e(n,r),i=o.dispatch,s=[],l={getState:o.getState,dispatch:function(e){return i(e)}};return s=t.map(function(e){return e(l)}),i=u["default"].apply(void 0,s)(o.dispatch),a({},o,{dispatch:i})}}}t.__esModule=!0;var a=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};t["default"]=o;var i=n(11),u=r(i);e.exports=t["default"]},function(e,t){"use strict";function n(){for(var e=arguments.length,t=Array(e),n=0;e>n;n++)t[n]=arguments[n];return function(e){return t.reduceRight(function(e,t){return t(e)},e)}}t.__esModule=!0,t["default"]=n,e.exports=t["default"]},function(e,t){"use strict";function n(e){var t=e.dispatch,n=e.getState;return function(e){return function(r){return"function"==typeof r?r(t,n):e(r)}}}e.exports=n},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var o=n(2),a=n(14),i=r(a),u=n(16),s=r(u);t["default"]=(0,o.combineReducers)({rdxCounter:i["default"],rdxSimple:s["default"]})},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){switch("undefined"==typeof e&&(e={counter:0}),"undefined"==typeof e.counter&&(e.counter=0),t.type){case u["default"].COUNTER_INCREMENT:var n=a({},e,{counter:e.counter+1});return n;case u["default"].COUNTER_DECREMENT:return a({},e,{counter:e.counter-1});default:return e}}var a=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};Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=o;var i=n(15),u=r(i)},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n={COUNTER_INCREMENT:"COUNTER_INCREMENT",COUNTER_DECREMENT:"COUNTER_DECREMENT",TEXT_CHANGE:"TEXT_CHANGE"};t["default"]=n},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){if(!e)return u;switch(t.type){case i["default"].TEXT_CHANGE:return Object.assign({},e,{text:t.text});default:return e}}Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=o;var a=n(15),i=r(a),u={text:"ZZZ"}},function(e,t,n){(function(e){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(t){var n=i["default"].component(s["default"],{data:t});i["default"].mount(document.getElementById("root"),n),console.log(e.registry)}Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=o;var a=n(18),i=r(a),u=n(20),s=r(u);e.registry={}}).call(t,function(){return this}())},function(e,t,n){var r;(function(e){var o=function a(e,t){function n(e){k=e.document,C=e.location,S=e.cancelAnimationFrame||e.clearTimeout,R=e.requestAnimationFrame||e.setTimeout}function r(){var e,t=[].slice.call(arguments),n=!(null==t[1]||U.call(t[1])!==A||"tag"in t[1]||"view"in t[1]||"subtree"in t[1]),r=n?t[1]:{},o="class"in r?"class":"className",a={tag:"div",attrs:{}},i=[];if(U.call(t[0])!=P)throw new Error("selector in m(selector, attrs, children) should be a string");for(;e=B.exec(t[0]);)if(""===e[1]&&e[2])a.tag=e[2];else if("#"===e[1])a.attrs.id=e[2];else if("."===e[1])i.push(e[2]);else if("["===e[3][0]){var u=D.exec(e[3]);a.attrs[u[1]]=u[3]||(u[2]?"":!0)}var s=n?t.slice(2):t.slice(1);1===s.length&&U.call(s[0])===L?a.children=s[0]:a.children=s;for(var l in r)r.hasOwnProperty(l)&&(l===o&&null!=r[l]&&""!==r[l]?(i.push(r[l]),a.attrs[l]=""):a.attrs[l]=r[l]);return i.length>0&&(a.attrs[o]=i.join(" ")),a}function o(e,n,a,l,f,d,p,h,v,y,m){try{(null==f||null==f.toString())&&(f="")}catch(g){f=""}if("retain"===f.subtree)return d;var w=U.call(d),b=U.call(f);if(null==d||w!==b){if(null!=d)if(a&&a.nodes){var _=h-l,O=_+(b===L?f:d.nodes).length;s(a.nodes.slice(_,O),a.slice(_,O))}else d.nodes&&s(d.nodes,d);d=new f.constructor,d.tag&&(d={}),d.nodes=[]}if(b===L){for(var x=0,E=f.length;E>x;x++)U.call(f[x])===L&&(f=f.concat.apply([],f),x--,E=f.length);for(var T=[],M=d.length===f.length,j=0,N=1,C=2,R=3,S={},B=!1,x=0;x<d.length;x++)d[x]&&d[x].attrs&&null!=d[x].attrs.key&&(B=!0,S[d[x].attrs.key]={action:N,index:x});for(var D=0,x=0,E=f.length;E>x;x++)if(f[x]&&f[x].attrs&&null!=f[x].attrs.key){for(var z=0,E=f.length;E>z;z++)f[z]&&f[z].attrs&&null==f[z].attrs.key&&(f[z].attrs.key="__mithril__"+D++);break}if(B){var $=!1;if(f.length!=d.length)$=!0;else for(var J,q,x=0;J=d[x],q=f[x];x++)if(J.attrs&&q.attrs&&J.attrs.key!=q.attrs.key){$=!0;break}if($){for(var x=0,E=f.length;E>x;x++)if(f[x]&&f[x].attrs&&null!=f[x].attrs.key){var F=f[x].attrs.key;S[F]?S[F]={action:R,index:x,from:S[F].index,element:d.nodes[S[F].index]||k.createElement("div")}:S[F]={action:C,index:x}}var K=[];for(var V in S)K.push(S[V]);var X=K.sort(i),Z=new Array(d.length);Z.nodes=d.nodes.slice();for(var W,x=0;W=X[x];x++){if(W.action===N&&(s(d[W.index].nodes,d[W.index]),Z.splice(W.index,1)),W.action===C){var Q=k.createElement("div");Q.key=f[W.index].attrs.key,e.insertBefore(Q,e.childNodes[W.index]||null),Z.splice(W.index,0,{attrs:{key:f[W.index].attrs.key},nodes:[Q]}),Z.nodes[W.index]=Q}W.action===R&&(e.childNodes[W.index]!==W.element&&null!==W.element&&e.insertBefore(W.element,e.childNodes[W.index]||null),Z[W.index]=d[W.from],Z.nodes[W.index]=W.element)}d=Z}}for(var x=0,Y=0,E=f.length;E>x;x++){var te=o(e,n,d,h,f[x],d[Y],p,h+j||j,v,y,m);te!==t&&(te.nodes.intact||(M=!1),j+=te.$trusted?(te.match(/<[^\/]|\>\s*[^<]/g)||[0]).length:U.call(te)===L?te.length:1,d[Y++]=te)}if(!M){for(var x=0,E=f.length;E>x;x++)null!=d[x]&&T.push.apply(T,d[x].nodes);for(var ne,x=0;ne=d.nodes[x];x++)null!=ne.parentNode&&T.indexOf(ne)<0&&s([ne],[d[x]]);f.length<d.length&&(d.length=f.length),d.nodes=T}}else if(null!=f&&b===A){for(var oe=[],ae=[];f.view;){var ie=f.view.$original||f.view,ue="diff"==r.redraw.strategy()&&d.views?d.views.indexOf(ie):-1,se=ue>-1?d.controllers[ue]:new(f.controller||G),F=f&&f.attrs&&f.attrs.key;if(f=0==re||d&&d.controllers&&d.controllers.indexOf(se)>-1?f.view(se):{tag:"placeholder"},"retain"===f.subtree)return d;F&&(f.attrs||(f.attrs={}),f.attrs.key=F),se.onunload&&ee.push({controller:se,handler:se.onunload}),oe.push(ie),ae.push(se)}if(!f.tag&&ae.length)throw new Error("Component template must return a virtual element, not an array, string, etc.");f.attrs||(f.attrs={}),d.attrs||(d.attrs={});var le=Object.keys(f.attrs),ce=le.length>("key"in f.attrs?1:0);if((f.tag!=d.tag||le.sort().join()!=Object.keys(d.attrs).sort().join()||f.attrs.id!=d.attrs.id||f.attrs.key!=d.attrs.key||"all"==r.redraw.strategy()&&(!d.configContext||d.configContext.retain!==!0)||"diff"==r.redraw.strategy()&&d.configContext&&d.configContext.retain===!1)&&(d.nodes.length&&s(d.nodes),d.configContext&&typeof d.configContext.onunload===I&&d.configContext.onunload(),d.controllers))for(var se,x=0;se=d.controllers[x];x++)typeof se.onunload===I&&se.onunload({preventDefault:G});if(U.call(f.tag)!=P)return;var ne,fe=0===d.nodes.length;if(f.attrs.xmlns?y=f.attrs.xmlns:"svg"===f.tag?y="http://www.w3.org/2000/svg":"math"===f.tag&&(y="http://www.w3.org/1998/Math/MathML"),fe){if(ne=f.attrs.is?y===t?k.createElement(f.tag,f.attrs.is):k.createElementNS(y,f.tag,f.attrs.is):y===t?k.createElement(f.tag):k.createElementNS(y,f.tag),d={tag:f.tag,attrs:ce?u(ne,f.tag,f.attrs,{},y):f.attrs,children:null!=f.children&&f.children.length>0?o(ne,f.tag,t,t,f.children,d.children,!0,0,f.attrs.contenteditable?ne:v,y,m):f.children,nodes:[ne]},ae.length){d.views=oe,d.controllers=ae;for(var se,x=0;se=ae[x];x++)if(se.onunload&&se.onunload.$old&&(se.onunload=se.onunload.$old),re&&se.onunload){var de=se.onunload;se.onunload=G,se.onunload.$old=de}}d.children&&!d.children.nodes&&(d.children.nodes=[]),"select"===f.tag&&"value"in f.attrs&&u(ne,f.tag,{value:f.attrs.value},{},y),e.insertBefore(ne,e.childNodes[h]||null)}else ne=d.nodes[0],ce&&u(ne,f.tag,f.attrs,d.attrs,y),d.children=o(ne,f.tag,t,t,f.children,d.children,!1,0,f.attrs.contenteditable?ne:v,y,m),d.nodes.intact=!0,ae.length&&(d.views=oe,d.controllers=ae),p===!0&&null!=ne&&e.insertBefore(ne,e.childNodes[h]||null);if(typeof f.attrs.config===I){var pe=d.configContext=d.configContext||{},he=function(e,t){return function(){return e.attrs.config.apply(e,t)}};m.push(he(f,[ne,!fe,pe,d]))}}else if(typeof f!=I){var T;0===d.nodes.length?(f.$trusted?T=c(e,h,f):(T=[k.createTextNode(f)],e.nodeName.match(H)||e.insertBefore(T[0],e.childNodes[h]||null)),d="string number boolean".indexOf(typeof f)>-1?new f.constructor(f):f,d.nodes=T):d.valueOf()!==f.valueOf()||p===!0?(T=d.nodes,v&&v===k.activeElement||(f.$trusted?(s(T,d),T=c(e,h,f)):"textarea"===n?e.value=f:v?v.innerHTML=f:((1===T[0].nodeType||T.length>1)&&(s(d.nodes,d),T=[k.createTextNode(f)]),e.insertBefore(T[0],e.childNodes[h]||null),T[0].nodeValue=f)),d=new f.constructor(f),d.nodes=T):d.nodes.intact=!0}return d}function i(e,t){return e.action-t.action||e.index-t.index}function u(e,t,n,r,o){for(var a in n){var i=n[a],u=r[a];if(a in r&&u===i)"value"===a&&"input"===t&&e.value!=i&&(e.value=i);else{r[a]=i;try{if("config"===a||"key"==a)continue;if(typeof i===I&&0===a.indexOf("on"))e[a]=f(i,e);else if("style"===a&&null!=i&&U.call(i)===A){for(var s in i)(null==u||u[s]!==i[s])&&(e.style[s]=i[s]);for(var s in u)s in i||(e.style[s]="")}else null!=o?"href"===a?e.setAttributeNS("http://www.w3.org/1999/xlink","href",i):"className"===a?e.setAttribute("class",i):e.setAttribute(a,i):a in e&&"list"!==a&&"style"!==a&&"form"!==a&&"type"!==a&&"width"!==a&&"height"!==a?("input"!==t||e[a]!==i)&&(e[a]=i):e.setAttribute(a,i)}catch(l){if(l.message.indexOf("Invalid argument")<0)throw l}}}return r}function s(e,t){for(var n=e.length-1;n>-1;n--)if(e[n]&&e[n].parentNode){try{e[n].parentNode.removeChild(e[n])}catch(r){}t=[].concat(t),t[n]&&l(t[n])}0!=e.length&&(e.length=0)}function l(e){if(e.configContext&&typeof e.configContext.onunload===I&&(e.configContext.onunload(),e.configContext.onunload=null),e.controllers)for(var t,n=0;t=e.controllers[n];n++)typeof t.onunload===I&&t.onunload({preventDefault:G});if(e.children)if(U.call(e.children)===L)for(var r,n=0;r=e.children[n];n++)l(r);else e.children.tag&&l(e.children)}function c(e,t,n){var r=e.childNodes[t];if(r){var o=1!=r.nodeType,a=k.createElement("span");o?(e.insertBefore(a,r||null),a.insertAdjacentHTML("beforebegin",n),e.removeChild(a)):r.insertAdjacentHTML("beforebegin",n)}else e.insertAdjacentHTML("beforeend",n);for(var i=[];e.childNodes[t]!==r;)i.push(e.childNodes[t]),t++;return i}function f(e,t){return function(n){n=n||event,r.redraw.strategy("diff"),r.startComputation();try{return e.call(t,n)}finally{oe()}}}function d(e){var t=J.indexOf(e);return 0>t?J.push(e)-1:t}function p(e){var t=function(){return arguments.length&&(e=arguments[0]),e};return t.toJSON=function(){return e},t}function h(e,t){var n=function(){return(e.controller||G).apply(this,t)||this},r=function(n){return arguments.length>1&&(t=t.concat([].slice.call(arguments,1))),e.view.apply(e,t?[n].concat(t):[n])};r.$original=e.view;var o={controller:n,view:r};return t[0]&&null!=t[0].key&&(o.attrs={key:t[0].key}),o}function v(){Q&&(Q(),Q=null);for(var e,t=0;e=K[t];t++)if(X[t]){var n=V[t].controller&&V[t].controller.$$args?[X[t]].concat(V[t].controller.$$args):[X[t]];r.render(e,V[t].view?V[t].view(X[t],n):"")}Y&&(Y(),Y=null),Z=null,W=new Date,r.redraw.strategy("diff")}function y(e){return e.slice(ue[r.route.mode].length)}function m(e,t,n){ae={};var o=n.indexOf("?");-1!==o&&(ae=_(n.substr(o+1,n.length)),n=n.substr(0,o));var a=Object.keys(t),i=a.indexOf(n);if(-1!==i)return r.mount(e,t[a[i]]),!0;for(var u in t){if(u===n)return r.mount(e,t[u]),!0;var s=new RegExp("^"+u.replace(/:[^\/]+?\.{3}/g,"(.*?)").replace(/:[^\/]+/g,"([^\\/]+)")+"/?$");if(s.test(n))return n.replace(s,function(){for(var n=u.match(/:[^\/]+/g)||[],o=[].slice.call(arguments,1,-2),a=0,i=n.length;i>a;a++)ae[n[a].replace(/:|\./g,"")]=decodeURIComponent(o[a]);r.mount(e,t[u])}),!0}}function g(e){if(e=e||event,!e.ctrlKey&&!e.metaKey&&2!==e.which){e.preventDefault?e.preventDefault():e.returnValue=!1;for(var t=e.currentTarget||e.srcElement,n="pathname"===r.route.mode&&t.search?_(t.search.slice(1)):{};t&&"A"!=t.nodeName.toUpperCase();)t=t.parentNode;r.route(t[r.route.mode].slice(ue[r.route.mode].length),n)}}function w(){"hash"!=r.route.mode&&C.hash?C.hash=C.hash:e.scrollTo(0,0)}function b(e,n){var r={},o=[];for(var a in e){var i=n?n+"["+a+"]":a,u=e[a],s=U.call(u),l=null===u?encodeURIComponent(i):s===A?b(u,i):s===L?u.reduce(function(e,t){return r[i]||(r[i]={}),r[i][t]?e:(r[i][t]=!0,e.concat(encodeURIComponent(i)+"="+encodeURIComponent(t)))},[]).join("&"):encodeURIComponent(i)+"="+encodeURIComponent(u);u!==t&&o.push(l)}return o.join("&")}function _(e){"?"===e.charAt(0)&&(e=e.substring(1));for(var t=e.split("&"),n={},r=0,o=t.length;o>r;r++){var a=t[r].split("="),i=decodeURIComponent(a[0]),u=2==a.length?decodeURIComponent(a[1]):null;null!=n[i]?(U.call(n[i])!==L&&(n[i]=[n[i]]),n[i].push(u)):n[i]=u}return n}function O(e){var n=d(e);s(e.childNodes,q[n]),q[n]=t}function x(e,t){var n=r.prop(t);return e.then(n),n.then=function(n,r){return x(e.then(n,r),t)},n}function E(e,t){function n(e){f=e||l,p.map(function(e){f===s&&e.resolve(d)||e.reject(d)})}function o(e,t,n,o){if((null!=d&&U.call(d)===A||typeof d===I)&&typeof e===I)try{var a=0;e.call(d,function(e){a++||(d=e,t())},function(e){a++||(d=e,n())})}catch(i){r.deferred.onerror(i),d=i,n()}else o()}function a(){var l;try{l=d&&d.then}catch(p){return r.deferred.onerror(p),d=p,f=u,a()}o(l,function(){f=i,a()},function(){f=u,a()},function(){try{f===i&&typeof e===I?d=e(d):f===u&&"function"==typeof t&&(d=t(d),f=i)}catch(a){return r.deferred.onerror(a),d=a,n()}d===c?(d=TypeError(),n()):o(l,function(){n(s)},n,function(){n(f===i&&s)})})}var i=1,u=2,s=3,l=4,c=this,f=0,d=0,p=[];c.promise={},c.resolve=function(e){return f||(d=e,f=i,a()),this},c.reject=function(e){return f||(d=e,f=u,a()),this},c.promise.then=function(e,t){var n=new E(e,t);return f===s?n.resolve(d):f===l?n.reject(d):p.push(n),n.promise}}function T(e){return e}function M(n){if(!n.dataType||"jsonp"!==n.dataType.toLowerCase()){var r=new e.XMLHttpRequest;if(r.open(n.method,n.url,!0,n.user,n.password),r.onreadystatechange=function(){4===r.readyState&&(r.status>=200&&r.status<300?n.onload({type:"load",target:r}):n.onerror({type:"error",target:r}))},n.serialize===JSON.stringify&&n.data&&"GET"!==n.method&&r.setRequestHeader("Content-Type","application/json; charset=utf-8"),n.deserialize===JSON.parse&&r.setRequestHeader("Accept","application/json, text/*"),typeof n.config===I){var o=n.config(r,n);null!=o&&(r=o)}var a="GET"!==n.method&&n.data?n.data:"";if(a&&U.call(a)!=P&&a.constructor!=e.FormData)throw"Request data should be either be a string or FormData. Check the `serialize` option in `m.request`";return r.send(a),r}var i="mithril_callback_"+(new Date).getTime()+"_"+Math.round(1e16*Math.random()).toString(36),u=k.createElement("script");e[i]=function(r){u.parentNode.removeChild(u),n.onload({type:"load",target:{responseText:r}}),e[i]=t},u.onerror=function(r){return u.parentNode.removeChild(u),n.onerror({type:"error",target:{status:500,responseText:JSON.stringify({error:"Error making jsonp request"})}}),e[i]=t,!1},u.onload=function(e){return!1},u.src=n.url+(n.url.indexOf("?")>0?"&":"?")+(n.callbackKey?n.callbackKey:"callback")+"="+i+"&"+b(n.data||{}),k.body.appendChild(u)}function j(e,t,n){if("GET"===e.method&&"jsonp"!=e.dataType){var r=e.url.indexOf("?")<0?"?":"&",o=b(t);e.url=e.url+(o?r+o:"")}else e.data=n(t);return e}function N(e,t){var n=e.match(/:[a-z]\w+/gi);if(n&&t)for(var r=0;r<n.length;r++){var o=n[r].slice(1);e=e.replace(n[r],t[o]),delete t[o]}return e}var k,C,R,S,A="[object Object]",L="[object Array]",P="[object String]",I="function",U={}.toString,B=/(?:(^|#|\.)([^#\.\[\]]+))|(\[.+?\])/g,D=/\[(.+?)(?:=("|'|)(.*?)\2)?\]/,H=/^(AREA|BASE|BR|COL|COMMAND|EMBED|HR|IMG|INPUT|KEYGEN|LINK|META|PARAM|SOURCE|TRACK|WBR)$/,G=function(){};n(e);var z,$={appendChild:function(e){z===t&&(z=k.createElement("html")),k.documentElement&&k.documentElement!==e?k.replaceChild(e,k.documentElement):k.appendChild(e),this.childNodes=k.childNodes},insertBefore:function(e){this.appendChild(e)},childNodes:[]},J=[],q={};r.render=function(e,n,r){var a=[];if(!e)throw new Error("Ensure the DOM element being passed to m.route/m.mount/m.render is not undefined.");var i=d(e),u=e===k,l=u||e===k.documentElement?$:e;u&&"html"!=n.tag&&(n={tag:"html",attrs:{},children:n}),q[i]===t&&s(l.childNodes),r===!0&&O(e),q[i]=o(l,null,t,t,n,q[i],!1,0,null,t,a);for(var c=0,f=a.length;f>c;c++)a[c]()},r.trust=function(e){return e=new String(e),e.$trusted=!0,e},r.prop=function(e){return(null!=e&&U.call(e)===A||typeof e===I)&&typeof e.then===I?x(e):p(e)};var F,K=[],V=[],X=[],Z=null,W=0,Q=null,Y=null,ee=[],te=16;r.component=function(e){return h(e,[].slice.call(arguments,1))},r.mount=r.module=function(e,t){if(!e)throw new Error("Please ensure the DOM element exists before rendering a template into it.");var n=K.indexOf(e);0>n&&(n=K.length);for(var o,a=!1,i={preventDefault:function(){a=!0,Q=Y=null}},u=0;o=ee[u];u++)o.handler.call(o.controller,i),o.controller.onunload=null;if(a)for(var o,u=0;o=ee[u];u++)o.controller.onunload=o.handler;else ee=[];if(X[n]&&typeof X[n].onunload===I&&X[n].onunload(i),!a){r.redraw.strategy("all"),r.startComputation(),K[n]=e,arguments.length>2&&(t=subcomponent(t,[].slice.call(arguments,2)));var s=F=t=t||{controller:function(){}},l=t.controller||G,c=new l;return s===F&&(X[n]=c,V[n]=t),oe(),X[n]}};var ne=!1;r.redraw=function(t){ne||(ne=!0,Z&&t!==!0?(R===e.requestAnimationFrame||new Date-W>te)&&(Z>0&&S(Z),Z=R(v,te)):(v(),Z=R(function(){Z=null},te)),ne=!1)},r.redraw.strategy=r.prop();var re=0;r.startComputation=function(){re++},r.endComputation=function(){re=Math.max(re-1,0),0===re&&r.redraw()};var oe=function(){"none"==r.redraw.strategy()?(re--,r.redraw.strategy("diff")):r.endComputation()};r.withAttr=function(e,t){return function(n){n=n||event;var r=n.currentTarget||this;t(e in r?r[e]:r.getAttribute(e))}};var ae,ie,ue={pathname:"",hash:"#",search:"?"},se=G,le=!1;return r.route=function(){if(0===arguments.length)return ie;if(3===arguments.length&&U.call(arguments[1])===P){var t=arguments[0],n=arguments[1],o=arguments[2];se=function(e){var a=ie=y(e);if(!m(t,o,a)){if(le)throw new Error("Ensure the default route matches one of the routes defined in m.route");le=!0,r.route(n,!0),le=!1}};var a="hash"===r.route.mode?"onhashchange":"onpopstate";e[a]=function(){var e=C[r.route.mode];"pathname"===r.route.mode&&(e+=C.search),ie!=y(e)&&se(e)},Q=w,e[a]()}else if(arguments[0].addEventListener||arguments[0].attachEvent){var i=arguments[0],u=(arguments[1],arguments[2],arguments[3]);i.href=("pathname"!==r.route.mode?C.pathname:"")+ue[r.route.mode]+u.attrs.href,i.addEventListener?(i.removeEventListener("click",g),i.addEventListener("click",g)):(i.detachEvent("onclick",g),i.attachEvent("onclick",g))}else if(U.call(arguments[0])===P){var s=ie;ie=arguments[0];var l=arguments[1]||{},c=ie.indexOf("?"),f=c>-1?_(ie.slice(c+1)):{};for(var d in l)f[d]=l[d];var p=b(f),h=c>-1?ie.slice(0,c):ie;p&&(ie=h+(-1===h.indexOf("?")?"?":"&")+p);var v=(3===arguments.length?arguments[2]:arguments[1])===!0||s===arguments[0];e.history.pushState?(Q=w,Y=function(){e.history[v?"replaceState":"pushState"](null,k.title,ue[r.route.mode]+ie)},se(ue[r.route.mode]+ie)):(C[r.route.mode]=ie,se(ue[r.route.mode]+ie))}},r.route.param=function(e){if(!ae)throw new Error("You must call m.route(element, defaultRoute, routes) before calling m.route.param()");return ae[e]},r.route.mode="search",r.route.buildQueryString=b,r.route.parseQueryString=_,r.deferred=function(){var e=new E;return e.promise=x(e.promise),e},r.deferred.onerror=function(e){if("[object Error]"===U.call(e)&&!e.constructor.toString().match(/ Error/))throw e},r.sync=function(e){function t(e,t){return function(r){return i[e]=r,t||(n="reject"),0===--a&&(o.promise(i),o[n](i)),r}}var n="resolve",o=r.deferred(),a=e.length,i=new Array(a);if(e.length>0)for(var u=0;u<e.length;u++)e[u].then(t(u,!0),t(u,!1));else o.resolve([]);return o.promise},r.request=function(e){e.background!==!0&&r.startComputation();var t=new E,n=e.dataType&&"jsonp"===e.dataType.toLowerCase(),o=e.serialize=n?T:e.serialize||JSON.stringify,a=e.deserialize=n?T:e.deserialize||JSON.parse,i=n?function(e){return e.responseText}:e.extract||function(e){return 0===e.responseText.length&&a===JSON.parse?null:e.responseText};return e.method=(e.method||"GET").toUpperCase(),e.url=N(e.url,e.data),e=j(e,e.data,o),e.onload=e.onerror=function(n){try{n=n||event;var o=("load"===n.type?e.unwrapSuccess:e.unwrapError)||T,u=o(a(i(n.target,e)),n.target);if("load"===n.type)if(U.call(u)===L&&e.type)for(var s=0;s<u.length;s++)u[s]=new e.type(u[s]);else e.type&&(u=new e.type(u));t["load"===n.type?"resolve":"reject"](u)}catch(n){r.deferred.onerror(n),t.reject(n)}e.background!==!0&&r.endComputation()},M(e),t.promise=x(t.promise,e.initialValue),t.promise},r.deps=function(t){return n(e=t||e),e},r.deps.factory=a,r}("undefined"!=typeof window?window:{});"undefined"!=typeof e&&null!==e&&e.exports?e.exports=o:(r=function(){return o}.call(t,n,t,e),!(void 0!==r&&(e.exports=r)))}).call(t,n(19)(e))},function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children=[],e.webpackPolyfill=1),e}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var o=n(18),a=r(o),i=n(21),u=r(i),s=n(22),l=r(s),c={};c.controller=function(e){this.store=e.data,this.mSimple=new l["default"]},c.view=function(e){return(0,a["default"])("div",[a["default"].component(u["default"],{data:e.store}),a["default"].component(e.mSimple.m(),{data:e.store})])},t["default"]=c},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var o=n(18),a=r(o),i={controller:function(e){var t=this;this.store=e.data,this.count=e.data.getState().counter,this.increment=function(){console.log(t.store),t.store.dispatch({type:"INCREMENT"})},this.decrement=function(){t.store.dispatch({type:"DECREMENT"})},e.data.subscribe(function(){t.count=t.store.getState().counter})},view:function(e){return(0,a["default"])("div",[(0,a["default"])("span",e.count),(0,a["default"])("br"),(0,a["default"])("button",{onclick:e.increment},"+"),(0,a["default"])("button",{onclick:e.decrement},"-")])}};t["default"]=i},function(e,t,n){"use strict";function r(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t["default"]=e,t}function o(e){return e&&e.__esModule?e:{"default":e}}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function u(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var s=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();Object.defineProperty(t,"__esModule",{value:!0});var l=n(18),c=o(l),f=n(23),d=o(f),p=n(24),h=r(p),v=n(45),y=r(v),m=function(e){function t(){return a(this,t),i(this,Object.getPrototypeOf(t).apply(this,arguments))}return u(t,e),s(t,[{key:"controller",value:function(e){this.store=e.data,this.mBtnTest=new h.component({tag:"a",label:"Initial Label",size:h.sizes.SMALL}),this.mHeadingMain=new y.component}},{key:"view",value:function(e,t){var n=this.store.getState();return(0,c["default"])(".test",[(0,c["default"])("h1","Hello World !"),c["default"].component(this.mHeadingMain.m()),(0,c["default"])("p",n.text),(0,c["default"])("button",{onclick:this.clickText},"What time is it ?"),c["default"].component(this.mBtnTest.m(),{label:"Changed Label"})])}},{key:"clickText",value:function(e){e.preventDefault(),this.store.dispatch({type:appActions.TEXT_CHANGE,text:"It's currently: "+(new Date).toTimeString()})}}]),t}(d["default"]);t["default"]=m},function(e,t){"use strict";function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(t){n(this,e),this.options={};var r=this;r.options=Object.assign({},this.options,t),r.mithril={controller:function(){r.model(),r.controller.apply(r,arguments)},view:function(){
2 return r.view.apply(r,arguments)}}}return r(e,[{key:"reducer",value:function(e){throw TypeError('Method "reducer" should be overriden in children')}},{key:"model",value:function(e){}},{key:"controller",value:function(e){}},{key:"view",value:function(e){return[]}},{key:"m",value:function(){return this.mithril}}]),e}();t["default"]=o},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var u=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),s=n(23),l=r(s),c=n(18),f=r(c),d=n(25),p=r(d),h=n(26),v=r(h),y=n(27),m=(r(y),function(e){function t(e){o(this,t);var n=a(this,Object.getPrototypeOf(t).call(this,e));return n.options={tag:"button",label:"Button",size:p["default"].NORMAL},n}return i(t,e),u(t,[{key:"model",value:function(){this.theme=f["default"].prop(),this.tag=f["default"].prop(this.options.tag),this.label=f["default"].prop(this.options.label),this.descriptor=f["default"].prop(this.tag())}},{key:"controller",value:function(e){var t=Object.assign({},this.options,e);this.tag=f["default"].prop(t.tag),this.label=f["default"].prop(t.label),this.descriptor=f["default"].prop(t.tag+v["default"].MBUTTON),t.size!=p["default"].NORMAL&&(this.descriptor=f["default"].prop(this.descriptor()+v["default"][t.size]))}},{key:"view",value:function(e,t){return(0,f["default"])(this.descriptor(),this.label())}}]),t}(l["default"]));e.exports={component:m,sizes:p["default"]}},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n={NORMAL:"MBUTTON",SMALL:"MBUTTON_SMALL",LARGE:"MBUTTON_LARGE"};t["default"]=n},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var o=n(25),a=(r(o),".mButton"),i={MBUTTON:a,MBUTTON_SMALL:a+"-small",MBUTTON_LARGE:a+"-large"};t["default"]=i},function(e,t,n){(function(e){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}var o=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};Object.defineProperty(t,"__esModule",{value:!0});var a=n(28),i=r(a),u=n(42),s=r(u),l=n(43),c=r(l),f=n(25),d=r(f),p=n(44),h=r(p),v=n(26),y=r(v);i["default"].use((0,s["default"])()),i["default"].use((0,c["default"])());var m="green",g=function(e){var t=void 0;switch(e){case d["default"].SMALL:t=".2rem";break;case d["default"].LARGE:t="1rem";break;default:t=".5rem"}return{padding:t}},w={};w[y["default"].MBUTTON]=o({},g(d["default"].NORMAL),{color:m}),w[y["default"].MBUTTON_SMALL]=o({},g(d["default"].SMALL)),w[y["default"].MBUTTON_LARGE]=o({},g(d["default"].LARGE));for(var b in h["default"])"default"==b?w[y["default"].MBUTTON]=o({},w[y["default"].MBUTTON],h["default"][b]):w[y["default"].MBUTTON+".t-"+b.toLowerCase()]=h["default"][b];var _=i["default"].createStyleSheet(w,{named:!1}).attach();e.jssStyle=Object.assign({},e.jssStyle,_),t["default"]=_}).call(t,function(){return this}())},function(e,t,n){/**
3 3 * StyleSheets written in javascript. * StyleSheets written in javascript.
4 4 * *
5 5 * @copyright Oleg Slobodskoi 2015 * @copyright Oleg Slobodskoi 2015
6 6 * @website https://github.com/jsstyles/jss * @website https://github.com/jsstyles/jss
7 7 * @license MIT * @license MIT
8 8 */ */
9 "use strict";function r(e){return e&&e.__esModule?e:{"default":e}}t.__esModule=!0;var o=n(29),a=r(o);t["default"]=new a["default"],e.exports=t["default"]},function(e,t,n){"use strict";function r(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t["default"]=e,t}function o(e){return e&&e.__esModule?e:{"default":e}}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}t.__esModule=!0;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},u=n(30),s=o(u),l=n(41),c=o(l),f=n(33),d=r(f),p=n(31),h=o(p),v=n(38),y=o(v),g=function(){function e(){a(this,e),this.plugins=new c["default"],this.uid=d}return e.prototype.create=function(){return new e},e.prototype.createStyleSheet=function(e,t){return new s["default"](e,i({},t,{jss:this}))},e.prototype.createRule=function(e,t,n){"object"==typeof e&&(n=t,t=e,e=null);var r=h["default"](e,t,i({},n,{jss:this,Renderer:y["default"](n)}));return this.plugins.run(r),r},e.prototype.use=function(e){return this.plugins.use(e),this},e}();t["default"]=g,e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}t.__esModule=!0;var a=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},i=n(31),u=r(i),s=n(38),l=r(s),c=function(){function e(t,n){o(this,e),this.options=a({},n),null==this.options.named&&(this.options.named=!0),this.rules=Object.create(null),this.classes=Object.create(null),this.attached=!1,this.deployed=!1,this.linked=!1;var r=l["default"](this.options);this.options.Renderer=r,this.renderer=new r(this.options);for(var i in t)this.createRule(i,t[i])}return e.prototype.attach=function(){return this.attached?this:(this.deployed||this.deploy(),this.renderer.attach(),!this.linked&&this.options.link&&this.link(),this.attached=!0,this)},e.prototype.detach=function(){return this.attached?(this.renderer.detach(),this.attached=!1,this):this},e.prototype.addRule=function(e,t){var n=this.createRule(e,t);if(this.deployed){var r=this.renderer.insertRule(n);this.options.link&&(n.renderable=r)}return n},e.prototype.addRules=function(e){var t=[];for(var n in e)t.push(this.addRule(n,e[n]));return t},e.prototype.getRule=function(e){return this.rules[e]},e.prototype.toString=function(e){var t=this.rules,n=Object.create(null),r="";for(var o in t){var a=t[o];n[a.id]||(r&&(r+="\n"),r+=t[o].toString(e),n[a.id]=!0)}return r},e.prototype.createRule=function(e,t,n){n=a({},n,{sheet:this,jss:this.options.jss,Renderer:this.options.Renderer}),null==n.named&&(n.named=this.options.named);var r=u["default"](e,t,n);return"conditional"===r.type?this.rules[r.selector]=r:"simple"===r.type?this.rules[r.name]=r:r.options.parent&&"conditional"===r.options.parent.type?r.options.named&&(this.classes[e]=r.className):(this.rules[r.selector]=r,n.named&&(this.rules[e]=r,this.classes[e]=r.className)),n.jss.plugins.run(r),r},e.prototype.deploy=function(){return this.renderer.deploy(this),this.deployed=!0,this},e.prototype.link=function(){var e=this.renderer.getRules();for(var t in e){var n=this.rules[t];n&&(n.renderable=e[t])}return this.linked=!0,this},e}();t["default"]=c,e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e){var t=arguments.length<=1||void 0===arguments[1]?{}:arguments[1],n=arguments.length<=2||void 0===arguments[2]?{}:arguments[2];if(e&&"@"===e[0]){var r=v.exec(e)[0],o=h[r];return"@font-face"===r&&n.named&&(n=a({},n,{named:!1})),new o(e,t,n)}return null==n.named&&(n.named=!0),new u["default"](e,t,n)}t.__esModule=!0;var a=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};t["default"]=o;var i=n(32),u=r(i),s=n(35),l=r(s),c=n(36),f=r(c),d=n(37),p=r(d),h={"@charset":l["default"],"@import":l["default"],"@namespace":l["default"],"@keyframes":f["default"],"@media":p["default"],"@supports":p["default"],"@font-face":u["default"]},v=/^@[^ ]+/;e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t["default"]=e,t}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){for(var n="",r=0;e>r;r++)n+=" ";return n+t}t.__esModule=!0;var u=n(33),s=o(u),l=n(34),c=r(l),f=function(){function e(t,n,r){a(this,e),this.id=s.get(),this.type="regular",this.options=r,this.selector=t,r.named&&(this.name=t,this.className=r.className||(this.name?this.name+"--"+this.id:this.id),this.selector="."+this.className),this.originalStyle=n,this.style=c["default"](n)}return e.prototype.prop=function(e,t){var n=this.options.Renderer.style;return null!=t?(this.style[e]=t,this.renderable&&n(this.renderable,e,t),this):(this.renderable&&null==this.style[e]&&(this.style[e]=n(this.renderable,e)),this.style[e])},e.prototype.applyTo=function(e){for(var t in this.style){var n=this.style[t],r=this.options.Renderer.style;if(Array.isArray(n))for(var o=0;o<n.length;o++)r(e,t,n[o]);else r(e,t,n)}return this},e.prototype.toJSON=function(){var e=Object.create(null);for(var t in this.style)"object"!=typeof this.style[t]&&(e[t]=this.style[t]);return e},e.prototype.toString=function(){var e=arguments.length<=0||void 0===arguments[0]?{}:arguments[0],t=null==e.selector?!0:e.selector,n=e.indentationLevel||0,r="";t&&(r+=i(n,this.selector+" {"),n++);for(var o in this.style){var a=this.style[o];if(Array.isArray(a))for(var u=0;u<a.length;u++)r+="\n"+i(n,o+": "+a[u]+";");else r+="\n"+i(n,o+": "+a+";")}return t&&(r+="\n"+i(--n,"}")),r},e}();t["default"]=f,e.exports=t["default"]},function(e,t){(function(e){"use strict";function n(){return"jss-"+i+"-"+u++}function r(){u=0}t.__esModule=!0,t.get=n,t.reset=r;var o="undefined"==typeof window?e:window,a="__JSS_VERSION_COUNTER__";null==o[a]&&(o[a]=0);var i=o[a]++,u=0}).call(t,function(){return this}())},function(e,t){"use strict";function n(e){return o(r(e))}t.__esModule=!0,t["default"]=n;var r=JSON.stringify,o=JSON.parse;e.exports=t["default"]},function(e,t,n){"use strict";function r(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t["default"]=e,t}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}t.__esModule=!0;var a=n(33),i=r(a),u=function(){function e(t,n,r){o(this,e),this.id=i.get(),this.type="simple",this.name=t,this.value=n,this.options=r}return e.prototype.toString=function(){return this.name+" "+this.value+";"},e}();t["default"]=u,e.exports=t["default"]},function(e,t,n){"use strict";function r(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t["default"]=e,t}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}t.__esModule=!0;var a=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},i=n(33),u=r(i),s=function(){function e(t,n,r){o(this,e),this.id=u.get(),this.type="keyframe",this.selector=t,this.options=r,this.frames=this.formatFrames(n)}return e.prototype.formatFrames=function(e){var t=Object.create(null);for(var n in e){var r=a({},this.options,{named:!1,parent:this});t[n]=this.options.jss.createRule(n,e[n],r)}return t},e.prototype.toString=function(){var e=this.selector+" {\n",t={indentationLevel:1};for(var n in this.frames)e+=this.frames[n].toString(t)+"\n";return e+="}"},e}();t["default"]=s,e.exports=t["default"]},function(e,t,n){"use strict";function r(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t["default"]=e,t}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}t.__esModule=!0;var a=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},i=n(33),u=r(i),s=function(){function e(t,n,r){o(this,e),this.id=u.get(),this.type="conditional",this.selector=t,this.options=a({},r,{parent:this}),this.rules=this.createChildRules(n)}return e.prototype.createChildRules=function(e){var t=Object.create(null),n=this.options,r=n.sheet,o=n.jss;for(var i in e){var u=this.options,s=this.options.sheet&&this.options.sheet.getRule(i);s&&(u=a({},this.options,{className:s.className})),t[i]=(r||o).createRule(i,e[i],u)}return t},e.prototype.toString=function(){var e=this.selector+" {\n";for(var t in this.rules){var n=this.rules[t].toString({indentationLevel:1});e+=n+"\n"}return e+="}"},e}();t["default"]=s,e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(){var e=arguments.length<=0||void 0===arguments[0]?{}:arguments[0];return e.Renderer?e.Renderer:e.virtual||"undefined"==typeof document?s["default"]:i["default"]}t.__esModule=!0,t["default"]=o;var a=n(39),i=r(a),u=n(40),s=r(u);e.exports=t["default"]},function(e,t){"use strict";function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}t.__esModule=!0;var r=function(){function e(t){n(this,e),this.head=document.head||document.getElementsByTagName("head")[0],this.element=document.createElement("style"),this.element.type="text/css",t.media&&this.element.setAttribute("media",t.media),t.meta&&this.element.setAttribute("data-meta",t.meta)}return e.style=function(e,t,n){try{if(null==n)return e.style[t];e.style[t]=n}catch(r){}},e.prototype.attach=function(){this.head.appendChild(this.element)},e.prototype.detach=function(){this.element.parentNode.removeChild(this.element)},e.prototype.deploy=function(e){var t="\n"+e.toString()+"\n";"sheet"in this.element?this.element.innerHTML=t:"styleSheet"in this.element&&(this.element.styleSheet.cssText=t)},e.prototype.insertRule=function(e){var t=this.element.sheet||this.element.styleSheet,n=t.cssRules||t.rules,r=n.length;return t.insertRule?t.insertRule(e.toString(),r):t.addRule(e.selector,e.toString({selector:!1}),r),n[r]},e.prototype.getRules=function(){for(var e=this.element.sheet||this.element.styleSheet,t=e.rules||e.cssRules,n=Object.create(null),r=0;r<t.length;r++){var o=t[r];n[o.selectorText]=o}return n},e}();t["default"]=r,e.exports=t["default"]},function(e,t){"use strict";function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}t.__esModule=!0;var r=function(){function e(){n(this,e)}return e.style=function(){},e.prototype.attach=function(){},e.prototype.detach=function(){},e.prototype.deploy=function(){},e.prototype.insertRule=function(){},e.prototype.getRules=function(){return{}},e}();t["default"]=r,e.exports=t["default"]},function(e,t){"use strict";function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}t.__esModule=!0;var r=function(){function e(){n(this,e),this.registry=[]}return e.prototype.use=function(e){this.registry.push(e)},e.prototype.run=function(e){for(var t=0;t<this.registry.length;t++)this.registry[t](e)},e}();t["default"]=r,e.exports=t["default"]},function(e,t){"use strict";function n(){return function(e){function t(n,r){if("string"==typeof r.extend){if(e.options&&e.options.sheet){var o=e.options.sheet.getRule(r.extend);o&&t(n,o.originalStyle)}}else if(Array.isArray(r.extend))for(var a=0;a<r.extend.length;a++)t(n,r.extend[a]);else for(var i in r.extend)"extend"===i?t(n,r.extend.extend):n[i]=r.extend[i];for(var i in r)"extend"!==i&&(n[i]=r[i]);return n}e.style&&e.style.extend&&(e.style=t({},e.style))}}t.__esModule=!0,t["default"]=n,e.exports=t["default"]},function(e,t){"use strict";function n(){return function(e){var t=e.style;if(t){e.style={};for(var n in t){var o=t[n];n=n.replace(r,"-$1").toLowerCase(),e.style[n]=o}}}}t.__esModule=!0,t["default"]=n;var r=/([A-Z])/g;e.exports=t["default"]},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n={controlBack:"#eee",controlText:"#666"},r="none",o="transparent",a={"default":{backgroundColor:n.controlBack,color:n.controlText,border:r,boxShadow:r},outlined:{backgroundColor:o,color:n.controlText,border:"2px solid "},hero:{backgroundColor:"red",color:"white"}};t["default"]=a}]);
9 "use strict";function r(e){return e&&e.__esModule?e:{"default":e}}t.__esModule=!0;var o=n(29),a=r(o);t["default"]=new a["default"],e.exports=t["default"]},function(e,t,n){"use strict";function r(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t["default"]=e,t}function o(e){return e&&e.__esModule?e:{"default":e}}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}t.__esModule=!0;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},u=n(30),s=o(u),l=n(41),c=o(l),f=n(33),d=r(f),p=n(31),h=o(p),v=n(38),y=o(v),m=function(){function e(){a(this,e),this.plugins=new c["default"],this.uid=d}return e.prototype.create=function(){return new e},e.prototype.createStyleSheet=function(e,t){return new s["default"](e,i({},t,{jss:this}))},e.prototype.createRule=function(e,t,n){"object"==typeof e&&(n=t,t=e,e=null);var r=h["default"](e,t,i({},n,{jss:this,Renderer:y["default"](n)}));return this.plugins.run(r),r},e.prototype.use=function(e){return this.plugins.use(e),this},e}();t["default"]=m,e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}t.__esModule=!0;var a=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},i=n(31),u=r(i),s=n(38),l=r(s),c=function(){function e(t,n){o(this,e),this.options=a({},n),null==this.options.named&&(this.options.named=!0),this.rules=Object.create(null),this.classes=Object.create(null),this.attached=!1,this.deployed=!1,this.linked=!1;var r=l["default"](this.options);this.options.Renderer=r,this.renderer=new r(this.options);for(var i in t)this.createRule(i,t[i])}return e.prototype.attach=function(){return this.attached?this:(this.deployed||this.deploy(),this.renderer.attach(),!this.linked&&this.options.link&&this.link(),this.attached=!0,this)},e.prototype.detach=function(){return this.attached?(this.renderer.detach(),this.attached=!1,this):this},e.prototype.addRule=function(e,t){var n=this.createRule(e,t);if(this.deployed){var r=this.renderer.insertRule(n);this.options.link&&(n.renderable=r)}return n},e.prototype.addRules=function(e){var t=[];for(var n in e)t.push(this.addRule(n,e[n]));return t},e.prototype.getRule=function(e){return this.rules[e]},e.prototype.toString=function(e){var t=this.rules,n=Object.create(null),r="";for(var o in t){var a=t[o];n[a.id]||(r&&(r+="\n"),r+=t[o].toString(e),n[a.id]=!0)}return r},e.prototype.createRule=function(e,t,n){n=a({},n,{sheet:this,jss:this.options.jss,Renderer:this.options.Renderer}),null==n.named&&(n.named=this.options.named);var r=u["default"](e,t,n);return"conditional"===r.type?this.rules[r.selector]=r:"simple"===r.type?this.rules[r.name]=r:r.options.parent&&"conditional"===r.options.parent.type?r.options.named&&(this.classes[e]=r.className):(this.rules[r.selector]=r,n.named&&(this.rules[e]=r,this.classes[e]=r.className)),n.jss.plugins.run(r),r},e.prototype.deploy=function(){return this.renderer.deploy(this),this.deployed=!0,this},e.prototype.link=function(){var e=this.renderer.getRules();for(var t in e){var n=this.rules[t];n&&(n.renderable=e[t])}return this.linked=!0,this},e}();t["default"]=c,e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e){var t=arguments.length<=1||void 0===arguments[1]?{}:arguments[1],n=arguments.length<=2||void 0===arguments[2]?{}:arguments[2];if(e&&"@"===e[0]){var r=v.exec(e)[0],o=h[r];return"@font-face"===r&&n.named&&(n=a({},n,{named:!1})),new o(e,t,n)}return null==n.named&&(n.named=!0),new u["default"](e,t,n)}t.__esModule=!0;var a=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};t["default"]=o;var i=n(32),u=r(i),s=n(35),l=r(s),c=n(36),f=r(c),d=n(37),p=r(d),h={"@charset":l["default"],"@import":l["default"],"@namespace":l["default"],"@keyframes":f["default"],"@media":p["default"],"@supports":p["default"],"@font-face":u["default"]},v=/^@[^ ]+/;e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t["default"]=e,t}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){for(var n="",r=0;e>r;r++)n+=" ";return n+t}t.__esModule=!0;var u=n(33),s=o(u),l=n(34),c=r(l),f=function(){function e(t,n,r){a(this,e),this.id=s.get(),this.type="regular",this.options=r,this.selector=t,r.named&&(this.name=t,this.className=r.className||(this.name?this.name+"--"+this.id:this.id),this.selector="."+this.className),this.originalStyle=n,this.style=c["default"](n)}return e.prototype.prop=function(e,t){var n=this.options.Renderer.style;return null!=t?(this.style[e]=t,this.renderable&&n(this.renderable,e,t),this):(this.renderable&&null==this.style[e]&&(this.style[e]=n(this.renderable,e)),this.style[e])},e.prototype.applyTo=function(e){for(var t in this.style){var n=this.style[t],r=this.options.Renderer.style;if(Array.isArray(n))for(var o=0;o<n.length;o++)r(e,t,n[o]);else r(e,t,n)}return this},e.prototype.toJSON=function(){var e=Object.create(null);for(var t in this.style)"object"!=typeof this.style[t]&&(e[t]=this.style[t]);return e},e.prototype.toString=function(){var e=arguments.length<=0||void 0===arguments[0]?{}:arguments[0],t=null==e.selector?!0:e.selector,n=e.indentationLevel||0,r="";t&&(r+=i(n,this.selector+" {"),n++);for(var o in this.style){var a=this.style[o];if(Array.isArray(a))for(var u=0;u<a.length;u++)r+="\n"+i(n,o+": "+a[u]+";");else r+="\n"+i(n,o+": "+a+";")}return t&&(r+="\n"+i(--n,"}")),r},e}();t["default"]=f,e.exports=t["default"]},function(e,t){(function(e){"use strict";function n(){return"jss-"+i+"-"+u++}function r(){u=0}t.__esModule=!0,t.get=n,t.reset=r;var o="undefined"==typeof window?e:window,a="__JSS_VERSION_COUNTER__";null==o[a]&&(o[a]=0);var i=o[a]++,u=0}).call(t,function(){return this}())},function(e,t){"use strict";function n(e){return o(r(e))}t.__esModule=!0,t["default"]=n;var r=JSON.stringify,o=JSON.parse;e.exports=t["default"]},function(e,t,n){"use strict";function r(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t["default"]=e,t}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}t.__esModule=!0;var a=n(33),i=r(a),u=function(){function e(t,n,r){o(this,e),this.id=i.get(),this.type="simple",this.name=t,this.value=n,this.options=r}return e.prototype.toString=function(){return this.name+" "+this.value+";"},e}();t["default"]=u,e.exports=t["default"]},function(e,t,n){"use strict";function r(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t["default"]=e,t}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}t.__esModule=!0;var a=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},i=n(33),u=r(i),s=function(){function e(t,n,r){o(this,e),this.id=u.get(),this.type="keyframe",this.selector=t,this.options=r,this.frames=this.formatFrames(n)}return e.prototype.formatFrames=function(e){var t=Object.create(null);for(var n in e){var r=a({},this.options,{named:!1,parent:this});t[n]=this.options.jss.createRule(n,e[n],r)}return t},e.prototype.toString=function(){var e=this.selector+" {\n",t={indentationLevel:1};for(var n in this.frames)e+=this.frames[n].toString(t)+"\n";return e+="}"},e}();t["default"]=s,e.exports=t["default"]},function(e,t,n){"use strict";function r(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t["default"]=e,t}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}t.__esModule=!0;var a=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},i=n(33),u=r(i),s=function(){function e(t,n,r){o(this,e),this.id=u.get(),this.type="conditional",this.selector=t,this.options=a({},r,{parent:this}),this.rules=this.createChildRules(n)}return e.prototype.createChildRules=function(e){var t=Object.create(null),n=this.options,r=n.sheet,o=n.jss;for(var i in e){var u=this.options,s=this.options.sheet&&this.options.sheet.getRule(i);s&&(u=a({},this.options,{className:s.className})),t[i]=(r||o).createRule(i,e[i],u)}return t},e.prototype.toString=function(){var e=this.selector+" {\n";for(var t in this.rules){var n=this.rules[t].toString({indentationLevel:1});e+=n+"\n"}return e+="}"},e}();t["default"]=s,e.exports=t["default"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(){var e=arguments.length<=0||void 0===arguments[0]?{}:arguments[0];return e.Renderer?e.Renderer:e.virtual||"undefined"==typeof document?s["default"]:i["default"]}t.__esModule=!0,t["default"]=o;var a=n(39),i=r(a),u=n(40),s=r(u);e.exports=t["default"]},function(e,t){"use strict";function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}t.__esModule=!0;var r=function(){function e(t){n(this,e),this.head=document.head||document.getElementsByTagName("head")[0],this.element=document.createElement("style"),this.element.type="text/css",t.media&&this.element.setAttribute("media",t.media),t.meta&&this.element.setAttribute("data-meta",t.meta)}return e.style=function(e,t,n){try{if(null==n)return e.style[t];e.style[t]=n}catch(r){}},e.prototype.attach=function(){this.head.appendChild(this.element)},e.prototype.detach=function(){this.element.parentNode.removeChild(this.element)},e.prototype.deploy=function(e){var t="\n"+e.toString()+"\n";"sheet"in this.element?this.element.innerHTML=t:"styleSheet"in this.element&&(this.element.styleSheet.cssText=t)},e.prototype.insertRule=function(e){var t=this.element.sheet||this.element.styleSheet,n=t.cssRules||t.rules,r=n.length;return t.insertRule?t.insertRule(e.toString(),r):t.addRule(e.selector,e.toString({selector:!1}),r),n[r]},e.prototype.getRules=function(){for(var e=this.element.sheet||this.element.styleSheet,t=e.rules||e.cssRules,n=Object.create(null),r=0;r<t.length;r++){var o=t[r];n[o.selectorText]=o}return n},e}();t["default"]=r,e.exports=t["default"]},function(e,t){"use strict";function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}t.__esModule=!0;var r=function(){function e(){n(this,e)}return e.style=function(){},e.prototype.attach=function(){},e.prototype.detach=function(){},e.prototype.deploy=function(){},e.prototype.insertRule=function(){},e.prototype.getRules=function(){return{}},e}();t["default"]=r,e.exports=t["default"]},function(e,t){"use strict";function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}t.__esModule=!0;var r=function(){function e(){n(this,e),this.registry=[]}return e.prototype.use=function(e){this.registry.push(e)},e.prototype.run=function(e){for(var t=0;t<this.registry.length;t++)this.registry[t](e)},e}();t["default"]=r,e.exports=t["default"]},function(e,t){"use strict";function n(){return function(e){function t(n,r){if("string"==typeof r.extend){if(e.options&&e.options.sheet){var o=e.options.sheet.getRule(r.extend);o&&t(n,o.originalStyle)}}else if(Array.isArray(r.extend))for(var a=0;a<r.extend.length;a++)t(n,r.extend[a]);else for(var i in r.extend)"extend"===i?t(n,r.extend.extend):n[i]=r.extend[i];for(var i in r)"extend"!==i&&(n[i]=r[i]);return n}e.style&&e.style.extend&&(e.style=t({},e.style))}}t.__esModule=!0,t["default"]=n,e.exports=t["default"]},function(e,t){"use strict";function n(){return function(e){var t=e.style;if(t){e.style={};for(var n in t){var o=t[n];n=n.replace(r,"-$1").toLowerCase(),e.style[n]=o}}}}t.__esModule=!0,t["default"]=n;var r=/([A-Z])/g;e.exports=t["default"]},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n={controlBack:"#eee",controlText:"#666"},r="none",o="transparent",a={"default":{backgroundColor:n.controlBack,color:n.controlText,border:r,boxShadow:r},outlined:{backgroundColor:o,color:n.controlText,border:"2px solid "},hero:{backgroundColor:"red",color:"white"}};t["default"]=a},function(e,t,n){(function(e){"use strict";function t(e){return e&&e.__esModule?e:{"default":e}}function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),u=n(23),s=t(u),l=n(46),c=(t(l),function(e){function t(){var e,n,a,i;r(this,t);for(var u=arguments.length,s=Array(u),l=0;u>l;l++)s[l]=arguments[l];return n=a=o(this,(e=Object.getPrototypeOf(t)).call.apply(e,[this].concat(s))),a.options={tag:"h2",text:"Heading"},i=n,o(a,i)}return a(t,e),i(t,[{key:"model",value:function(){this.tag=m.prop(),this.text=m.prop()}},{key:"controller",value:function(e){var t=Object.assign({},this.options,e);this.tag(t.tag),this.text(t.text)}},{key:"view",value:function(){return m(this.tag(),this.text())}}]),t}(s["default"]));e["export"]({component:c})}).call(t,n(19)(e))},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n={HERO:"hero",MAIN:"main",HUGE:"huge",LARGE:"large",MEDIUM:"medium",SMALL:"small"};t["default"]=n}]);
File lib/app/components/base/button/index.js changed (mode: 100644) (index 8e8b36e..83fb8d6)
1 1 'use strict'; 'use strict';
2 2
3 var _createClass = (function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; })();
3 var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
4 4
5 5 var _component = require('../../component.class'); var _component = require('../../component.class');
6 6
 
... ... function _possibleConstructorReturn(self, call) { if (!self) { throw new Referen
30 30
31 31 function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
32 32
33 var MButton = (function (_MComponent) {
33 var MButton = function (_MComponent) {
34 34 _inherits(MButton, _MComponent); _inherits(MButton, _MComponent);
35 35
36 36 function MButton(options) { function MButton(options) {
 
... ... var MButton = (function (_MComponent) {
77 77 }]); }]);
78 78
79 79 return MButton; return MButton;
80 })(_component2.default);
80 }(_component2.default);
81 81
82 82 module.exports = { module.exports = {
83 83 component: MButton, component: MButton,
File lib/app/components/base/heading/index.js added (mode: 100644) (index 0000000..0821cb9)
1 'use strict';
2
3 var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
4
5 var _component = require('../../component.class');
6
7 var _component2 = _interopRequireDefault(_component);
8
9 var _types = require('./types');
10
11 var _types2 = _interopRequireDefault(_types);
12
13 function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
14
15 function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
16
17 function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
18
19 function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
20
21 var MHeading = function (_MComponent) {
22 _inherits(MHeading, _MComponent);
23
24 function MHeading() {
25 var _Object$getPrototypeO;
26
27 var _temp, _this, _ret;
28
29 _classCallCheck(this, MHeading);
30
31 for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {
32 args[_key] = arguments[_key];
33 }
34
35 return _ret = (_temp = (_this = _possibleConstructorReturn(this, (_Object$getPrototypeO = Object.getPrototypeOf(MHeading)).call.apply(_Object$getPrototypeO, [this].concat(args))), _this), _this.options = {
36 tag: 'h2',
37 text: 'Heading'
38 }, _temp), _possibleConstructorReturn(_this, _ret);
39 }
40
41 _createClass(MHeading, [{
42 key: 'model',
43 value: function model() {
44 this.tag = m.prop();
45 this.text = m.prop();
46 }
47 }, {
48 key: 'controller',
49 value: function controller(args) {
50 var options = Object.assign({}, this.options, args);
51 this.tag(options.tag);
52 this.text(options.text);
53 }
54 }, {
55 key: 'view',
56 value: function view() {
57 return m(this.tag(), this.text());
58 }
59 }]);
60
61 return MHeading;
62 }(_component2.default);
63
64 module.export({
65 component: MHeading
66 });
File lib/app/components/base/heading/types.js added (mode: 100644) (index 0000000..58b3d83)
1 "use strict";
2
3 Object.defineProperty(exports, "__esModule", {
4 value: true
5 });
6 var headingTypes = {
7 HERO: "hero",
8 MAIN: "main",
9 HUGE: "huge",
10 LARGE: "large",
11 MEDIUM: "medium",
12 SMALL: "small"
13 };
14
15 exports.default = headingTypes;
File lib/app/components/component.class.js changed (mode: 100644) (index 7d7a52b..9fb6cc7)
1 1 'use strict'; 'use strict';
2 2
3 var _createClass = (function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; })();
3 var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
4 4
5 5 Object.defineProperty(exports, "__esModule", { Object.defineProperty(exports, "__esModule", {
6 6 value: true value: true
 
... ... Object.defineProperty(exports, "__esModule", {
8 8
9 9 function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
10 10
11 var MComponent = (function () {
11 var MComponent = function () {
12 12 function MComponent(options) { function MComponent(options) {
13 13 _classCallCheck(this, MComponent); _classCallCheck(this, MComponent);
14 14
 
... ... var MComponent = (function () {
56 56 }]); }]);
57 57
58 58 return MComponent; return MComponent;
59 })();
59 }();
60 60
61 61 exports.default = MComponent; exports.default = MComponent;
File lib/app/components/simple.com.js changed (mode: 100644) (index 1735f46..005cc55)
1 1 'use strict'; 'use strict';
2 2
3 var _createClass = (function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; })();
3 var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
4 4
5 5 Object.defineProperty(exports, "__esModule", { Object.defineProperty(exports, "__esModule", {
6 6 value: true value: true
 
... ... var _button = require('./base/button');
18 18
19 19 var MButton = _interopRequireWildcard(_button); var MButton = _interopRequireWildcard(_button);
20 20
21 var _heading = require('./base/heading');
22
23 var MHeading = _interopRequireWildcard(_heading);
24
21 25 function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) newObj[key] = obj[key]; } } newObj.default = obj; return newObj; } } function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) newObj[key] = obj[key]; } } newObj.default = obj; return newObj; } }
22 26
23 27 function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
 
... ... function _possibleConstructorReturn(self, call) { if (!self) { throw new Referen
28 32
29 33 function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
30 34
31 var MSimple = (function (_MComponent) {
35 var MSimple = function (_MComponent) {
32 36 _inherits(MSimple, _MComponent); _inherits(MSimple, _MComponent);
33 37
34 38 function MSimple() { function MSimple() {
 
... ... var MSimple = (function (_MComponent) {
46 50 label: "Initial Label", label: "Initial Label",
47 51 size: MButton.sizes.SMALL size: MButton.sizes.SMALL
48 52 }); });
53 this.mHeadingMain = new MHeading.component();
49 54 } }
50 55 }, { }, {
51 56 key: 'view', key: 'view',
52 57 value: function view(ctrl, args) { value: function view(ctrl, args) {
53 58 var state = this.store.getState(); var state = this.store.getState();
54 59
55 return (0, _mithril2.default)('.test', [(0, _mithril2.default)('h1', 'Hello World !'), (0, _mithril2.default)("p", state.text), (0, _mithril2.default)("button", { onclick: this.clickText }, "What time is it ?"), _mithril2.default.component(this.mBtnTest.m(), { label: "Changed Label" })]);
60 return (0, _mithril2.default)('.test', [(0, _mithril2.default)('h1', 'Hello World !'), _mithril2.default.component(this.mHeadingMain.m()), (0, _mithril2.default)("p", state.text), (0, _mithril2.default)("button", { onclick: this.clickText }, "What time is it ?"), _mithril2.default.component(this.mBtnTest.m(), { label: "Changed Label" })]);
56 61 } }
57 62 }, { }, {
58 63 key: 'clickText', key: 'clickText',
 
... ... var MSimple = (function (_MComponent) {
67 72 }]); }]);
68 73
69 74 return MSimple; return MSimple;
70 })(_component2.default);
75 }(_component2.default);
71 76
72 77 exports.default = MSimple; exports.default = MSimple;
File src/app/components/base/heading/index.js added (mode: 100644) (index 0000000..37d1fc9)
1 import MComponent from '../../component.class';
2 import MHeadingTypes from './types';
3
4 class MHeading extends MComponent
5 {
6 options = {
7 tag: 'h2',
8 text: 'Heading'
9 };
10
11 model () {
12 this.tag = m.prop();
13 this.text = m.prop();
14 }
15
16 controller (args) {
17 let options = Object.assign({}, this.options, args);
18 this.tag(options.tag);
19 this.text(options.text);
20
21 }
22
23 view () {
24 return m (this.tag(), this.text());
25 }
26
27 }
28
29 module.export({
30 component: MHeading
31 });
File src/app/components/base/heading/types.js added (mode: 100644) (index 0000000..27c6657)
1 let headingTypes = {
2 HERO: "hero",
3 MAIN: "main",
4 HUGE: "huge",
5 LARGE: "large",
6 MEDIUM: "medium",
7 SMALL: "small"
8 };
9
10 export default headingTypes;
11
File src/app/components/simple.com.js changed (mode: 100644) (index 5ebaaf2..025df37)
1 1 import m from 'mithril'; import m from 'mithril';
2 2 import MComponent from './component.class'; import MComponent from './component.class';
3 3 import * as MButton from './base/button'; import * as MButton from './base/button';
4 import * as MHeading from './base/heading';
4 5
5 6 class MSimple extends MComponent { class MSimple extends MComponent {
6 7 controller (args) { controller (args) {
 
... ... class MSimple extends MComponent {
10 11 label: "Initial Label", label: "Initial Label",
11 12 size: MButton.sizes.SMALL size: MButton.sizes.SMALL
12 13 }); });
14 this.mHeadingMain = new MHeading.component();
13 15 } }
14 16
15 17 view (ctrl, args) { view (ctrl, args) {
 
... ... class MSimple extends MComponent {
17 19
18 20 return m('.test',[ return m('.test',[
19 21 m('h1', 'Hello World !'), m('h1', 'Hello World !'),
22 m.component(this.mHeadingMain.m()),
20 23 m("p", state.text), m("p", state.text),
21 24 m("button", { onclick : this.clickText }, "What time is it ?"), m("button", { onclick : this.clickText }, "What time is it ?"),
22 25 m.component(this.mBtnTest.m(), { label: "Changed Label" }) m.component(this.mBtnTest.m(), { label: "Changed Label" })
Hints:
Before first commit, do not forget to setup your git environment:
git config --global user.name "your_name_here"
git config --global user.email "your@email_here"

Clone this repository using HTTP(S):
git clone https://rocketgit.com/user/bitvice/mithril-webpack-starter

Clone this repository using ssh (do not forget to upload a key first):
git clone ssh://rocketgit@ssh.rocketgit.com/user/bitvice/mithril-webpack-starter

Clone this repository using git:
git clone git://git.rocketgit.com/user/bitvice/mithril-webpack-starter

You are allowed to anonymously push to this repository.
This means that your pushed commits will automatically be transformed into a merge request:
... clone the repository ...
... make some changes and some commits ...
git push origin main