From 7d61d27eb541a1067629ac2a5b347cc2ede7e783 Mon Sep 17 00:00:00 2001 From: Jordan Buckley Date: Sun, 28 Feb 2016 15:51:16 -0800 Subject: [PATCH] minify and package for deploy --- .gitignore | 2 + dist/bundle.min.js | 50 ++++++++++++++++++++ dist/css/base.css | 105 +++++++++++++++++++++++++++++++++++++++++ dist/favicon.ico | Bin 0 -> 1150 bytes dist/index.html | 13 +++++ package.json | 4 +- store/items.json | 22 --------- webpack.config.js | 1 - webpack.prod.config.js | 33 +++++++++++++ 9 files changed, 205 insertions(+), 25 deletions(-) create mode 100644 dist/bundle.min.js create mode 100644 dist/css/base.css create mode 100644 dist/favicon.ico create mode 100644 dist/index.html delete mode 100644 store/items.json create mode 100644 webpack.prod.config.js diff --git a/.gitignore b/.gitignore index b27d401..7e23fbe 100644 --- a/.gitignore +++ b/.gitignore @@ -35,3 +35,5 @@ jspm_packages .node_repl_history # ===== End Node.gitignore ===== +# Store +store diff --git a/dist/bundle.min.js b/dist/bundle.min.js new file mode 100644 index 0000000..c162647 --- /dev/null +++ b/dist/bundle.min.js @@ -0,0 +1,50 @@ +!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(15),i=r(o),a=n(112),s=n(55),u=(r(s),n(56)),l=(r(u),n(57)),c=(r(l),n(54)),p=(r(c),n(94)),d=r(p);(0,a.render)(i["default"].createElement(d["default"],{url:"//localhost:3000/api/items"}),document.getElementById("content"))},function(e,t){function n(){l=!1,a.length?u=a.concat(u):c=-1,u.length&&r()}function r(){if(!l){var e=setTimeout(n);l=!0;for(var t=u.length;t;){for(a=u,u=[];++c1)for(var n=1;n2?n-2:0),o=2;n>o;o++)r[o-2]=arguments[o];if(void 0===t)throw new Error("`warning(condition, format, ...args)` requires a warning message argument");if(0!==t.indexOf("Failed Composite propType: ")&&!e){var i=0,a="Warning: "+t.replace(/%s/g,function(){return r[i++]});"undefined"!=typeof console&&console.error(a);try{throw new Error(a)}catch(s){}}}),e.exports=o}).call(t,n(1))},function(e,t){"use strict";var n=!("undefined"==typeof window||!window.document||!window.document.createElement),r={canUseDOM:n,canUseWorkers:"undefined"!=typeof Worker,canUseEventListeners:n&&!(!window.addEventListener&&!window.attachEvent),canUseViewport:n&&!!window.screen,isInWorker:!n};e.exports=r},function(e,t,n){(function(t){"use strict";function r(e,t){for(var n=Math.min(e.length,t.length),r=0;n>r;r++)if(e.charAt(r)!==t.charAt(r))return r;return e.length===t.length?-1:n}function o(e){return e?e.nodeType===K?e.documentElement:e.firstChild:null}function i(e){var t=o(e);return t&&ee.getID(t)}function a(e){var n=s(e);if(n)if(W.hasOwnProperty(n)){var r=W[n];r!==e&&(p(r,n)?"production"!==t.env.NODE_ENV?L(!1,"ReactMount: Two valid but unequal nodes with the same `%s`: %s",q,n):L(!1):void 0,W[n]=e)}else W[n]=e;return n}function s(e){return e&&e.getAttribute&&e.getAttribute(q)||""}function u(e,t){var n=s(e);n!==t&&delete W[n],e.setAttribute(q,t),W[t]=e}function l(e){return W.hasOwnProperty(e)&&p(W[e],e)||(W[e]=ee.findReactNodeByID(e)),W[e]}function c(e){var t=O.get(e)._rootNodeID;return D.isNullComponentID(t)?null:(W.hasOwnProperty(t)&&p(W[t],t)||(W[t]=ee.findReactNodeByID(t)),W[t])}function p(e,n){if(e){s(e)!==n?"production"!==t.env.NODE_ENV?L(!1,"ReactMount: Unexpected modification of `%s`",q):L(!1):void 0;var r=ee.findReactContainerForID(n);if(r&&A(r,e))return!0}return!1}function d(e){delete W[e]}function f(e){var t=W[e];return t&&p(t,e)?void(J=t):!1}function h(e){J=null,w.traverseAncestors(e,f);var t=J;return J=null,t}function m(e,n,r,o,i,a){if(_.useCreateElement&&(a=R({},a),r.nodeType===K?a[Y]=r:a[Y]=r.ownerDocument),"production"!==t.env.NODE_ENV){a===P&&(a={});var s=r.nodeName.toLowerCase();a[F.ancestorInfoContextKey]=F.updatedAncestorInfo(null,s,null)}var u=M.mountComponent(e,n,o,a);e._renderedComponent._topLevelWrapper=e,ee._mountImageIntoNode(u,r,i,o)}function v(e,t,n,r,o){var i=I.ReactReconcileTransaction.getPooled(r);i.perform(m,null,e,t,n,i,r,o),I.ReactReconcileTransaction.release(i)}function g(e,t){for(M.unmountComponent(e),t.nodeType===K&&(t=t.documentElement);t.lastChild;)t.removeChild(t.lastChild)}function y(e){var t=i(e);return t?t!==w.getReactRootIDFromNodeID(t):!1}function E(e){for(;e&&e.parentNode!==e;e=e.parentNode)if(1===e.nodeType){var t=s(e);if(t){var n,r=w.getReactRootIDFromNodeID(t),o=e;do if(n=s(o),o=o.parentNode,null==o)return null;while(n!==r);if(o===X[r])return e}}return null}var b=n(16),N=n(26),C=n(12),_=n(73),x=n(7),D=n(80),w=n(19),O=n(23),T=n(83),k=n(8),M=n(17),S=n(40),I=n(9),R=n(3),P=n(20),A=n(60),V=n(47),L=n(2),j=n(33),U=n(50),F=n(52),B=n(4),q=b.ID_ATTRIBUTE_NAME,W={},H=1,K=9,z=11,Y="__ReactMount_ownerDocument$"+Math.random().toString(36).slice(2),$={},X={};if("production"!==t.env.NODE_ENV)var G={};var Q=[],J=null,Z=function(){};Z.prototype.isReactComponent={},"production"!==t.env.NODE_ENV&&(Z.displayName="TopLevelWrapper"),Z.prototype.render=function(){return this.props};var ee={TopLevelWrapper:Z,_instancesByReactRootID:$,scrollMonitor:function(e,t){t()},_updateRootComponent:function(e,n,r,a){return ee.scrollMonitor(r,function(){S.enqueueElementInternal(e,n),a&&S.enqueueCallbackInternal(e,a)}),"production"!==t.env.NODE_ENV&&(G[i(r)]=o(r)),e},_registerComponent:function(e,n){!n||n.nodeType!==H&&n.nodeType!==K&&n.nodeType!==z?"production"!==t.env.NODE_ENV?L(!1,"_registerComponent(...): Target container is not a DOM element."):L(!1):void 0,N.ensureScrollValueMonitoring();var r=ee.registerContainer(n);return $[r]=e,r},_renderNewRootComponent:function(e,n,r,i){"production"!==t.env.NODE_ENV?B(null==C.current,"_renderNewRootComponent(): Render methods should be a pure function of props and state; triggering nested component updates from render is not allowed. If necessary, trigger nested updates in componentDidUpdate. Check the render method of %s.",C.current&&C.current.getName()||"ReactCompositeComponent"):void 0;var a=V(e,null),s=ee._registerComponent(a,n);return I.batchedUpdates(v,a,s,n,r,i),"production"!==t.env.NODE_ENV&&(G[s]=o(n)),a},renderSubtreeIntoContainer:function(e,n,r,o){return null==e||null==e._reactInternalInstance?"production"!==t.env.NODE_ENV?L(!1,"parentComponent must be a valid React Component"):L(!1):void 0,ee._renderSubtreeIntoContainer(e,n,r,o)},_renderSubtreeIntoContainer:function(e,n,r,a){x.isValidElement(n)?void 0:"production"!==t.env.NODE_ENV?L(!1,"ReactDOM.render(): Invalid component element.%s","string"==typeof n?" Instead of passing an element string, make sure to instantiate it by passing it to React.createElement.":"function"==typeof n?" Instead of passing a component class, make sure to instantiate it by passing it to React.createElement.":null!=n&&void 0!==n.props?" This may be caused by unintentionally loading two independent copies of React.":""):L(!1),"production"!==t.env.NODE_ENV?B(!r||!r.tagName||"BODY"!==r.tagName.toUpperCase(),"render(): Rendering components directly into document.body is discouraged, since its children are often manipulated by third-party scripts and browser extensions. This may lead to subtle reconciliation issues. Try rendering into a container element created for your app."):void 0;var u=new x(Z,null,null,null,null,null,n),l=$[i(r)];if(l){var c=l._currentElement,p=c.props;if(U(p,n)){var d=l._renderedComponent.getPublicInstance(),f=a&&function(){a.call(d)};return ee._updateRootComponent(l,u,r,f),d}ee.unmountComponentAtNode(r)}var h=o(r),m=h&&!!s(h),v=y(r);if("production"!==t.env.NODE_ENV&&("production"!==t.env.NODE_ENV?B(!v,"render(...): Replacing React-rendered children with a new root component. If you intended to update the children of this node, you should instead have the existing children update their state and render the new components instead of calling ReactDOM.render."):void 0,!m||h.nextSibling))for(var g=h;g;){if(s(g)){"production"!==t.env.NODE_ENV?B(!1,"render(): Target node has markup rendered by React, but there are unrelated nodes as well. This is most commonly caused by white-space inserted around server-rendered markup."):void 0;break}g=g.nextSibling}var E=m&&!l&&!v,b=ee._renderNewRootComponent(u,r,E,null!=e?e._reactInternalInstance._processChildContext(e._reactInternalInstance._context):P)._renderedComponent.getPublicInstance();return a&&a.call(b),b},render:function(e,t,n){return ee._renderSubtreeIntoContainer(null,e,t,n)},registerContainer:function(e){var t=i(e);return t&&(t=w.getReactRootIDFromNodeID(t)),t||(t=w.createReactRootID()),X[t]=e,t},unmountComponentAtNode:function(e){"production"!==t.env.NODE_ENV?B(null==C.current,"unmountComponentAtNode(): Render methods should be a pure function of props and state; triggering nested component updates from render is not allowed. If necessary, trigger nested updates in componentDidUpdate. Check the render method of %s.",C.current&&C.current.getName()||"ReactCompositeComponent"):void 0,!e||e.nodeType!==H&&e.nodeType!==K&&e.nodeType!==z?"production"!==t.env.NODE_ENV?L(!1,"unmountComponentAtNode(...): Target container is not a DOM element."):L(!1):void 0;var n=i(e),r=$[n];if(!r){var o=y(e),a=s(e),u=a&&a===w.getReactRootIDFromNodeID(a);return"production"!==t.env.NODE_ENV&&("production"!==t.env.NODE_ENV?B(!o,"unmountComponentAtNode(): The node you're attempting to unmount was rendered by React and is not a top-level container. %s",u?"You may have accidentally passed in a React root node instead of its container.":"Instead, have the parent component update its state and rerender in order to remove this component."):void 0),!1}return I.batchedUpdates(g,r,e),delete $[n],delete X[n],"production"!==t.env.NODE_ENV&&delete G[n],!0},findReactContainerForID:function(e){var n=w.getReactRootIDFromNodeID(e),r=X[n];if("production"!==t.env.NODE_ENV){var o=G[n];if(o&&o.parentNode!==r){"production"!==t.env.NODE_ENV?B(s(o)===n,"ReactMount: Root element ID differed from reactRootID."):void 0;var i=r.firstChild;i&&n===s(i)?G[n]=i:"production"!==t.env.NODE_ENV?B(!1,"ReactMount: Root element has been removed from its original container. New container: %s",o.parentNode):void 0}}return r},findReactNodeByID:function(e){var t=ee.findReactContainerForID(e);return ee.findComponentRoot(t,e)},getFirstReactDOM:function(e){return E(e)},findComponentRoot:function(e,n){var r=Q,o=0,i=h(n)||e;for("production"!==t.env.NODE_ENV&&("production"!==t.env.NODE_ENV?B(null!=i,"React can't find the root component node for data-reactid value `%s`. If you're seeing this message, it probably means that you've loaded two copies of React on the page. At this time, only a single copy of React can be loaded at a time.",n):void 0),r[0]=i.firstChild,r.length=1;o when using tables, nesting tags like
,

, or , or using non-SVG elements in an parent. Try inspecting the child nodes of the element with React ID `%s`.",n,ee.getID(e)):L(!1)},_mountImageIntoNode:function(e,n,i,a){if(!n||n.nodeType!==H&&n.nodeType!==K&&n.nodeType!==z?"production"!==t.env.NODE_ENV?L(!1,"mountComponentIntoNode(...): Target container is not valid."):L(!1):void 0,i){var s=o(n);if(T.canReuseMarkup(e,s))return;var u=s.getAttribute(T.CHECKSUM_ATTR_NAME);s.removeAttribute(T.CHECKSUM_ATTR_NAME);var l=s.outerHTML;s.setAttribute(T.CHECKSUM_ATTR_NAME,u);var c=e;if("production"!==t.env.NODE_ENV){var p;n.nodeType===H?(p=document.createElement("div"),p.innerHTML=e,c=p.innerHTML):(p=document.createElement("iframe"),document.body.appendChild(p),p.contentDocument.write(e),c=p.contentDocument.documentElement.outerHTML,document.body.removeChild(p))}var d=r(c,l),f=" (client) "+c.substring(d-20,d+20)+"\n (server) "+l.substring(d-20,d+20);n.nodeType===K?"production"!==t.env.NODE_ENV?L(!1,"You're trying to render a component to the document using server rendering but the checksum was invalid. This usually means you rendered a different component type or props on the client from the one on the server, or your render() methods are impure. React cannot handle this case due to cross-browser quirks by rendering at the document root. You should look for environment dependent code in your components and ensure the props are the same client and server side:\n%s",f):L(!1):void 0,"production"!==t.env.NODE_ENV&&("production"!==t.env.NODE_ENV?B(!1,"React attempted to reuse markup in a container but the checksum was invalid. This generally means that you are using server rendering and the markup generated on the server was not what the client was expecting. React injected new markup to compensate which works but you have lost many of the benefits of server rendering. Instead, figure out why the markup being generated is different on the client or server:\n%s",f):void 0)}if(n.nodeType===K?"production"!==t.env.NODE_ENV?L(!1,"You're trying to render a component to the document but you didn't use server rendering. We can't do this without using server rendering due to cross-browser quirks. See ReactDOMServer.renderToString() for server rendering."):L(!1):void 0,a.useCreateElement){for(;n.lastChild;)n.removeChild(n.lastChild);n.appendChild(e)}else j(n,e)},ownerDocumentContextKey:Y,getReactRootID:i,getID:a,setID:u,getNode:l,getNodeFromInstance:c,isValid:p,purgeID:d};k.measureMethods(ee,"ReactMount",{_renderNewRootComponent:"_renderNewRootComponent",_mountImageIntoNode:"_mountImageIntoNode"}),e.exports=ee}).call(t,n(1))},function(e,t,n){(function(t){"use strict";var r=n(12),o=n(3),i=n(31),a="function"==typeof Symbol&&Symbol["for"]&&Symbol["for"]("react.element")||60103,s={key:!0,ref:!0,__self:!0,__source:!0},u=function(e,n,r,o,s,u,l){var c={$$typeof:a,type:e,key:n,ref:r,props:l,_owner:u};return"production"!==t.env.NODE_ENV&&(c._store={},i?(Object.defineProperty(c._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(c,"_self",{configurable:!1,enumerable:!1,writable:!1,value:o}),Object.defineProperty(c,"_source",{configurable:!1,enumerable:!1,writable:!1,value:s})):(c._store.validated=!1,c._self=o,c._source=s),Object.freeze(c.props),Object.freeze(c)),c};u.createElement=function(e,t,n){var o,i={},a=null,l=null,c=null,p=null;if(null!=t){l=void 0===t.ref?null:t.ref,a=void 0===t.key?null:""+t.key,c=void 0===t.__self?null:t.__self,p=void 0===t.__source?null:t.__source;for(o in t)t.hasOwnProperty(o)&&!s.hasOwnProperty(o)&&(i[o]=t[o])}var d=arguments.length-2;if(1===d)i.children=n;else if(d>1){for(var f=Array(d),h=0;d>h;h++)f[h]=arguments[h+2];i.children=f}if(e&&e.defaultProps){var m=e.defaultProps;for(o in m)"undefined"==typeof i[o]&&(i[o]=m[o])}return u(e,a,l,c,p,r.current,i)},u.createFactory=function(e){var t=u.createElement.bind(null,e);return t.type=e,t},u.cloneAndReplaceKey=function(e,t){var n=u(e.type,t,e.ref,e._self,e._source,e._owner,e.props);return n},u.cloneAndReplaceProps=function(e,n){var r=u(e.type,e.key,e.ref,e._self,e._source,e._owner,n);return"production"!==t.env.NODE_ENV&&(r._store.validated=e._store.validated),r},u.cloneElement=function(e,t,n){var i,a=o({},e.props),l=e.key,c=e.ref,p=e._self,d=e._source,f=e._owner;if(null!=t){void 0!==t.ref&&(c=t.ref,f=r.current),void 0!==t.key&&(l=""+t.key);for(i in t)t.hasOwnProperty(i)&&!s.hasOwnProperty(i)&&(a[i]=t[i])}var h=arguments.length-2;if(1===h)a.children=n;else if(h>1){for(var m=Array(h),v=0;h>v;v++)m[v]=arguments[v+2];a.children=m}return u(e.type,l,c,p,d,f,a)},u.isValidElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===a},e.exports=u}).call(t,n(1))},function(e,t,n){(function(t){"use strict";function n(e,t,n){return n}var r={enableMeasure:!1,storedMeasure:n,measureMethods:function(e,n,o){if("production"!==t.env.NODE_ENV)for(var i in o)o.hasOwnProperty(i)&&(e[i]=r.measure(n,o[i],e[i]))},measure:function(e,n,o){if("production"!==t.env.NODE_ENV){var i=null,a=function(){return r.enableMeasure?(i||(i=r.storedMeasure(e,n,o)),i.apply(this,arguments)):o.apply(this,arguments)};return a.displayName=e+"_"+n,a}return o},injection:{injectMeasure:function(e){r.storedMeasure=e}}};e.exports=r}).call(t,n(1))},function(e,t,n){(function(t){"use strict";function r(){w.ReactReconcileTransaction&&b?void 0:"production"!==t.env.NODE_ENV?v(!1,"ReactUpdates: must inject a reconcile transaction class and batching strategy"):v(!1)}function o(){this.reinitializeTransaction(),this.dirtyComponentsLength=null,this.callbackQueue=c.getPooled(),this.reconcileTransaction=w.ReactReconcileTransaction.getPooled(!1)}function i(e,t,n,o,i,a){r(),b.batchedUpdates(e,t,n,o,i,a)}function a(e,t){return e._mountOrder-t._mountOrder}function s(e){var n=e.dirtyComponentsLength;n!==g.length?"production"!==t.env.NODE_ENV?v(!1,"Expected flush transaction's stored dirty-components length (%s) to match dirty-components array length (%s).",n,g.length):v(!1):void 0,g.sort(a);for(var r=0;n>r;r++){var o=g[r],i=o._pendingCallbacks;if(o._pendingCallbacks=null,f.performUpdateIfNecessary(o,e.reconcileTransaction),i)for(var s=0;s=s;s++)if(o(e,s)&&o(n,s))a=s;else if(e.charAt(s)!==n.charAt(s))break;var u=e.substr(0,a);return i(u)?void 0:"production"!==t.env.NODE_ENV?d(!1,"getFirstCommonAncestorID(%s, %s): Expected a valid React DOM ID: %s",e,n,u):d(!1),u}function c(e,n,r,o,i,l){e=e||"",n=n||"",e===n?"production"!==t.env.NODE_ENV?d(!1,"traverseParentPath(...): Cannot traverse from and to the same ID, `%s`.",e):d(!1):void 0;var c=a(n,e);c||a(e,n)?void 0:"production"!==t.env.NODE_ENV?d(!1,"traverseParentPath(%s, %s, ...): Cannot traverse from two IDs that do not have a parent path.",e,n):d(!1);for(var p=0,f=c?s:u,h=e;;h=f(h,n)){var v;if(i&&h===e||l&&h===n||(v=r(h,c,o)),v===!1||h===n)break;p++1){var t=e.indexOf(f,1);return t>-1?e.substr(0,t):e}return null},traverseEnterLeave:function(e,t,n,r,o){var i=l(e,t);i!==e&&c(e,i,n,r,!1,!0),i!==t&&c(i,t,n,o,!0,!1)},traverseTwoPhase:function(e,t,n){e&&(c("",e,t,n,!0,!1),c(e,"",t,n,!1,!0))},traverseTwoPhaseSkipTarget:function(e,t,n){e&&(c("",e,t,n,!0,!0),c(e,"",t,n,!0,!0))},traverseAncestors:function(e,t,n){c("",e,t,n,!0,!1)},getFirstCommonAncestorID:l,_getNextDescendantID:u,isAncestorIDOf:a,SEPARATOR:f};e.exports=v}).call(t,n(1))},function(e,t,n){(function(t){"use strict";var n={};"production"!==t.env.NODE_ENV&&Object.freeze(n),e.exports=n}).call(t,n(1))},function(e,t,n){(function(t){"use strict";function r(){var e=v&&v.traverseTwoPhase&&v.traverseEnterLeave;"production"!==t.env.NODE_ENV?c(e,"InstanceHandle not injected before use!"):void 0}var o=n(68),i=n(122),a=n(81),s=n(90),u=n(91),l=n(2),c=n(4),p={},d=null,f=function(e,t){e&&(i.executeDispatchesInOrder(e,t),e.isPersistent()||e.constructor.release(e))},h=function(e){return f(e,!0)},m=function(e){return f(e,!1)},v=null,g={injection:{injectMount:i.injection.injectMount,injectInstanceHandle:function(e){v=e,"production"!==t.env.NODE_ENV&&r()},getInstanceHandle:function(){return"production"!==t.env.NODE_ENV&&r(),v},injectEventPluginOrder:o.injectEventPluginOrder,injectEventPluginsByName:o.injectEventPluginsByName},eventNameDispatchConfigs:o.eventNameDispatchConfigs,registrationNameModules:o.registrationNameModules,putListener:function(e,n,r){"function"!=typeof r?"production"!==t.env.NODE_ENV?l(!1,"Expected %s listener to be a function, instead got type %s",n,typeof r):l(!1):void 0; +var i=p[n]||(p[n]={});i[e]=r;var a=o.registrationNameModules[n];a&&a.didPutListener&&a.didPutListener(e,n,r)},getListener:function(e,t){var n=p[t];return n&&n[e]},deleteListener:function(e,t){var n=o.registrationNameModules[t];n&&n.willDeleteListener&&n.willDeleteListener(e,t);var r=p[t];r&&delete r[e]},deleteAllListeners:function(e){for(var t in p)if(p[t][e]){var n=o.registrationNameModules[t];n&&n.willDeleteListener&&n.willDeleteListener(e,t),delete p[t][e]}},extractEvents:function(e,t,n,r,i){for(var a,u=o.plugins,l=0;l":">","<":"<",'"':""","'":"'"},i=/[&><"']/g;e.exports=r},function(e,t,n){"use strict";var r=n(5),o=/^[ \r\n\t\f]/,i=/<(!--|link|noscript|meta|script|style)[ \r\n\t\f\/>]/,a=function(e,t){e.innerHTML=t};if("undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction&&(a=function(e,t){MSApp.execUnsafeLocalFunction(function(){e.innerHTML=t})}),r.canUseDOM){var s=document.createElement("div");s.innerHTML=" ",""===s.innerHTML&&(a=function(e,t){if(e.parentNode&&e.parentNode.replaceChild(e,e),o.test(t)||"<"===t[0]&&i.test(t)){e.innerHTML=String.fromCharCode(65279)+t;var n=e.firstChild;1===n.data.length?e.removeChild(n):n.deleteData(0,1)}else e.innerHTML=t})}e.exports=a},function(e,t,n){(function(t){"use strict";function r(){this._callbacks=null,this._contexts=null}var o=n(14),i=n(3),a=n(2);i(r.prototype,{enqueue:function(e,t){this._callbacks=this._callbacks||[],this._contexts=this._contexts||[],this._callbacks.push(e),this._contexts.push(t)},notifyAll:function(){var e=this._callbacks,n=this._contexts;if(e){e.length!==n.length?"production"!==t.env.NODE_ENV?a(!1,"Mismatched list of contexts in callback queue"):a(!1):void 0,this._callbacks=null,this._contexts=null;for(var r=0;rt||e.hasOverloadedBooleanValue&&t===!1}var i=n(16),a=n(8),s=n(169),u=n(4),l=/^[a-zA-Z_][\w\.\-]*$/,c={},p={};if("production"!==t.env.NODE_ENV)var d={children:!0,dangerouslySetInnerHTML:!0,key:!0,ref:!0},f={},h=function(e){if(!(d.hasOwnProperty(e)&&d[e]||f.hasOwnProperty(e)&&f[e])){f[e]=!0;var n=e.toLowerCase(),r=i.isCustomAttribute(n)?n:i.getPossibleStandardName.hasOwnProperty(n)?i.getPossibleStandardName[n]:null;"production"!==t.env.NODE_ENV?u(null==r,"Unknown DOM property %s. Did you mean %s?",e,r):void 0}};var m={createMarkupForID:function(e){return i.ID_ATTRIBUTE_NAME+"="+s(e)},setAttributeForID:function(e,t){e.setAttribute(i.ID_ATTRIBUTE_NAME,t)},createMarkupForProperty:function(e,n){var r=i.properties.hasOwnProperty(e)?i.properties[e]:null;if(r){if(o(r,n))return"";var a=r.attributeName;return r.hasBooleanValue||r.hasOverloadedBooleanValue&&n===!0?a+'=""':a+"="+s(n)}return i.isCustomAttribute(e)?null==n?"":e+"="+s(n):("production"!==t.env.NODE_ENV&&h(e),null)},createMarkupForCustomAttribute:function(e,t){return r(e)&&null!=t?e+"="+s(t):""},setValueForProperty:function(e,n,r){var a=i.properties.hasOwnProperty(n)?i.properties[n]:null;if(a){var s=a.mutationMethod;if(s)s(e,r);else if(o(a,r))this.deleteValueForProperty(e,n);else if(a.mustUseAttribute){var u=a.attributeName,l=a.attributeNamespace;l?e.setAttributeNS(l,u,""+r):a.hasBooleanValue||a.hasOverloadedBooleanValue&&r===!0?e.setAttribute(u,""):e.setAttribute(u,""+r)}else{var c=a.propertyName;a.hasSideEffects&&""+e[c]==""+r||(e[c]=r)}}else i.isCustomAttribute(n)?m.setValueForAttribute(e,n,r):"production"!==t.env.NODE_ENV&&h(n)},setValueForAttribute:function(e,t,n){r(t)&&(null==n?e.removeAttribute(t):e.setAttribute(t,""+n))},deleteValueForProperty:function(e,n){var r=i.properties.hasOwnProperty(n)?i.properties[n]:null;if(r){var o=r.mutationMethod;if(o)o(e,void 0);else if(r.mustUseAttribute)e.removeAttribute(r.attributeName);else{var a=r.propertyName,s=i.getDefaultValueForProperty(e.nodeName,a);r.hasSideEffects&&""+e[a]===s||(e[a]=s)}}else i.isCustomAttribute(n)?e.removeAttribute(n):"production"!==t.env.NODE_ENV&&h(n)}};a.measureMethods(m,"DOMPropertyOperations",{setValueForProperty:"setValueForProperty",setValueForAttribute:"setValueForAttribute",deleteValueForProperty:"deleteValueForProperty"}),e.exports=m}).call(t,n(1))},function(e,t,n){(function(t){"use strict";function r(e){null!=e.checkedLink&&null!=e.valueLink?"production"!==t.env.NODE_ENV?l(!1,"Cannot provide a checkedLink and a valueLink. If you want to use checkedLink, you probably don't want to use valueLink and vice versa."):l(!1):void 0}function o(e){r(e),null!=e.value||null!=e.onChange?"production"!==t.env.NODE_ENV?l(!1,"Cannot provide a valueLink and a value or onChange event. If you want to use value or onChange, you probably don't want to use valueLink."):l(!1):void 0}function i(e){r(e),null!=e.checked||null!=e.onChange?"production"!==t.env.NODE_ENV?l(!1,"Cannot provide a checkedLink and a checked property or onChange event. If you want to use checked or onChange, you probably don't want to use checkedLink"):l(!1):void 0}function a(e){if(e){var t=e.getName();if(t)return" Check the render method of `"+t+"`."}return""}var s=n(87),u=n(28),l=n(2),c=n(4),p={button:!0,checkbox:!0,image:!0,hidden:!0,radio:!0,reset:!0,submit:!0},d={value:function(e,t,n){return!e[t]||p[e.type]||e.onChange||e.readOnly||e.disabled?null:new Error("You provided a `value` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultValue`. Otherwise, set either `onChange` or `readOnly`.")},checked:function(e,t,n){return!e[t]||e.onChange||e.readOnly||e.disabled?null:new Error("You provided a `checked` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultChecked`. Otherwise, set either `onChange` or `readOnly`.")},onChange:s.func},f={},h={checkPropTypes:function(e,n,r){for(var o in d){if(d.hasOwnProperty(o))var i=d[o](n,o,e,u.prop);if(i instanceof Error&&!(i.message in f)){f[i.message]=!0;var s=a(r);"production"!==t.env.NODE_ENV?c(!1,"Failed form propType: %s%s",i.message,s):void 0}}},getValue:function(e){return e.valueLink?(o(e),e.valueLink.value):e.value},getChecked:function(e){return e.checkedLink?(i(e),e.checkedLink.value):e.checked},executeOnChange:function(e,t){return e.valueLink?(o(e),e.valueLink.requestChange(t.target.value)):e.checkedLink?(i(e),e.checkedLink.requestChange(t.target.checked)):e.onChange?e.onChange.call(void 0,t):void 0}};e.exports=h}).call(t,n(1))},function(e,t,n){"use strict";var r=n(39),o=n(6),i={processChildrenUpdates:r.dangerouslyProcessChildrenUpdates,replaceNodeWithMarkupByID:r.dangerouslyReplaceNodeWithMarkupByID,unmountIDFromEnvironment:function(e){o.purgeID(e)}};e.exports=i},function(e,t,n){(function(t){"use strict";var r=n(2),o=!1,i={unmountIDFromEnvironment:null,replaceNodeWithMarkupByID:null,processChildrenUpdates:null,injection:{injectEnvironment:function(e){o?"production"!==t.env.NODE_ENV?r(!1,"ReactCompositeComponent: injectEnvironment() can only be called once."):r(!1):void 0,i.unmountIDFromEnvironment=e.unmountIDFromEnvironment,i.replaceNodeWithMarkupByID=e.replaceNodeWithMarkupByID,i.processChildrenUpdates=e.processChildrenUpdates,o=!0}}};e.exports=i}).call(t,n(1))},function(e,t,n){(function(t){"use strict";var r=n(67),o=n(35),i=n(6),a=n(8),s=n(2),u={dangerouslySetInnerHTML:"`dangerouslySetInnerHTML` must be set using `updateInnerHTMLByID()`.",style:"`style` must be set using `updateStylesByID()`."},l={updatePropertyByID:function(e,n,r){var a=i.getNode(e);u.hasOwnProperty(n)?"production"!==t.env.NODE_ENV?s(!1,"updatePropertyByID(...): %s",u[n]):s(!1):void 0,null!=r?o.setValueForProperty(a,n,r):o.deleteValueForProperty(a,n)},dangerouslyReplaceNodeWithMarkupByID:function(e,t){var n=i.getNode(e);r.dangerouslyReplaceNodeWithMarkup(n,t)},dangerouslyProcessChildrenUpdates:function(e,t){for(var n=0;n=32||13===t?t:0}e.exports=n},function(e,t){"use strict";function n(e){var t=this,n=t.nativeEvent;if(n.getModifierState)return n.getModifierState(e);var r=o[e];return r?!!n[r]:!1}function r(e){return n}var o={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};e.exports=r},function(e,t){"use strict";function n(e){var t=e.target||e.srcElement||window;return 3===t.nodeType?t.parentNode:t}e.exports=n},function(e,t){"use strict";function n(e){var t=e&&(r&&e[r]||e[o]);return"function"==typeof t?t:void 0}var r="function"==typeof Symbol&&Symbol.iterator,o="@@iterator";e.exports=n},function(e,t,n){(function(t){"use strict";function r(e){if(e){var t=e.getName();if(t)return" Check the render method of `"+t+"`."}return""}function o(e){return"function"==typeof e&&"undefined"!=typeof e.prototype&&"function"==typeof e.prototype.mountComponent&&"function"==typeof e.prototype.receiveComponent}function i(e){var n;if(null===e||e===!1)n=new s(i);else if("object"==typeof e){var a=e;!a||"function"!=typeof a.type&&"string"!=typeof a.type?"production"!==t.env.NODE_ENV?c(!1,"Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",null==a.type?a.type:typeof a.type,r(a._owner)):c(!1):void 0,n="string"==typeof a.type?u.createInternalComponent(a):o(a.type)?new a.type(a):new d}else"string"==typeof e||"number"==typeof e?n=u.createInstanceForText(e):"production"!==t.env.NODE_ENV?c(!1,"Encountered invalid React node of type %s",typeof e):c(!1);return"production"!==t.env.NODE_ENV&&("production"!==t.env.NODE_ENV?p("function"==typeof n.construct&&"function"==typeof n.mountComponent&&"function"==typeof n.receiveComponent&&"function"==typeof n.unmountComponent,"Only React Components can be mounted."):void 0),n.construct(e),n._mountIndex=0,n._mountImage=null,"production"!==t.env.NODE_ENV&&(n._isOwnerNecessary=!1,n._warnedAboutRefsInRender=!1),"production"!==t.env.NODE_ENV&&Object.preventExtensions&&Object.preventExtensions(n),n}var a=n(128),s=n(79),u=n(85),l=n(3),c=n(2),p=n(4),d=function(){};l(d.prototype,a.Mixin,{_instantiateReactComponent:i}),e.exports=i}).call(t,n(1))},function(e,t,n){"use strict";/** + * Checks if an event is supported in the current execution environment. + * + * NOTE: This will not work correctly for non-generic events such as `change`, + * `reset`, `load`, `error`, and `select`. + * + * Borrows from Modernizr. + * + * @param {string} eventNameSuffix Event name, e.g. "click". + * @param {?boolean} capture Check if the capture phase is supported. + * @return {boolean} True if the event is supported. + * @internal + * @license Modernizr 3.0.0pre (Custom Build) | MIT + */ +function r(e,t){if(!i.canUseDOM||t&&!("addEventListener"in document))return!1;var n="on"+e,r=n in document;if(!r){var a=document.createElement("div");a.setAttribute(n,"return;"),r="function"==typeof a[n]}return!r&&o&&"wheel"===e&&(r=document.implementation.hasFeature("Events.wheel","3.0")),r}var o,i=n(5);i.canUseDOM&&(o=document.implementation&&document.implementation.hasFeature&&document.implementation.hasFeature("","")!==!0),e.exports=r},function(e,t,n){"use strict";var r=n(5),o=n(32),i=n(33),a=function(e,t){e.textContent=t};r.canUseDOM&&("textContent"in document.documentElement||(a=function(e,t){i(e,o(t))})),e.exports=a},function(e,t){"use strict";function n(e,t){var n=null===e||e===!1,r=null===t||t===!1;if(n||r)return n===r;var o=typeof e,i=typeof t;return"string"===o||"number"===o?"string"===i||"number"===i:"object"===i&&e.type===t.type&&e.key===t.key}e.exports=n},function(e,t,n){(function(t){"use strict";function r(e){return g[e]}function o(e,t){return e&&null!=e.key?a(e.key):t.toString(36)}function i(e){return(""+e).replace(y,r)}function a(e){return"$"+i(e)}function s(e,n,r,i){var u=typeof e;if(("undefined"===u||"boolean"===u)&&(e=null),null===e||"string"===u||"number"===u||c.isValidElement(e))return r(i,e,""===n?m+o(e,0):n),1;var p,g,y=0,b=""===n?m:n+v;if(Array.isArray(e))for(var N=0;Nc&&b[c]===N[c];c++)_=c;var x="(unknown)",D=b.slice(_+1).map(function(e){return e.getName()||x}),w=N.slice(_+1).map(function(e){return e.getName()||x}),O=[].concat(-1!==_?b[_].getName()||x:[],w,d,u?["..."]:[],D,e).join(" > "),T=!!s+"|"+e+"|"+d+"|"+O;if(v[T])return;if(v[T]=!0,s){var k="";"table"===d&&"tr"===e&&(k+=" Add a to your code to match the DOM tree generated by the browser."),"production"!==t.env.NODE_ENV?i(!1,"validateDOMNesting(...): <%s> cannot appear as a child of <%s>. See %s.%s",e,d,O,k):void 0}else"production"!==t.env.NODE_ENV?i(!1,"validateDOMNesting(...): <%s> cannot appear as a descendant of <%s>. See %s.",e,d,O):void 0}},a.ancestorInfoContextKey="__validateDOMNesting_ancestorInfo$"+Math.random().toString(36).slice(2),a.updatedAncestorInfo=d,a.isTagValidInContext=function(e,t){t=t||p;var n=t.parentTag,r=n&&n.tag;return f(e,r)&&!h(e,t)}}e.exports=a}).call(t,n(1))},function(e,t,n){var r,o;!function(i){r=[n(65)],o=function(e){return function(){function t(e,t,n){return h({type:N.error,iconClass:m().iconClasses.error,message:e,optionsOverride:n,title:t})}function n(t,n){return t||(t=m()),g=e("#"+t.containerId),g.length?g:(n&&(g=p(t)),g)}function r(e,t,n){return h({type:N.info,iconClass:m().iconClasses.info,message:e,optionsOverride:n,title:t})}function o(e){y=e}function i(e,t,n){return h({type:N.success,iconClass:m().iconClasses.success,message:e,optionsOverride:n,title:t})}function a(e,t,n){return h({type:N.warning,iconClass:m().iconClasses.warning,message:e,optionsOverride:n,title:t})}function s(e,t){var r=m();g||n(r),c(e,r,t)||l(r)}function u(t){var r=m();return g||n(r),t&&0===e(":focus",t).length?void v(t):void(g.children().length&&g.remove())}function l(t){for(var n=g.children(),r=n.length-1;r>=0;r--)c(e(n[r]),t)}function c(t,n,r){var o=r&&r.force?r.force:!1;return t&&(o||0===e(":focus",t).length)?(t[n.hideMethod]({duration:n.hideDuration,easing:n.hideEasing,complete:function(){v(t)}}),!0):!1}function p(t){return g=e("

").attr("id",t.containerId).addClass(t.positionClass).attr("aria-live","polite").attr("role","alert"),g.appendTo(e(t.target)),g}function d(){return{tapToDismiss:!0,toastClass:"toast",containerId:"toast-container",debug:!1,showMethod:"fadeIn",showDuration:300,showEasing:"swing",onShown:void 0,hideMethod:"fadeOut",hideDuration:1e3,hideEasing:"swing",onHidden:void 0,closeMethod:!1,closeDuration:!1,closeEasing:!1,extendedTimeOut:1e3,iconClasses:{error:"toast-error",info:"toast-info",success:"toast-success",warning:"toast-warning"},iconClass:"toast-info",positionClass:"toast-top-right",timeOut:5e3,titleClass:"toast-title",messageClass:"toast-message",escapeHtml:!1,target:"body",closeHtml:'',newestOnTop:!0,preventDuplicates:!1,progressBar:!1}}function f(e){y&&y(e)}function h(t){function r(e){return null==e&&(e=""),new String(e).replace(/&/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(//g,">")}function o(){s(),l(),c(),p(),d(),u()}function i(){O.hover(C,N),!x.onclick&&x.tapToDismiss&&O.click(y),x.closeButton&&S&&S.click(function(e){e.stopPropagation?e.stopPropagation():void 0!==e.cancelBubble&&e.cancelBubble!==!0&&(e.cancelBubble=!0),y(!0)}),x.onclick&&O.click(function(e){x.onclick(e),y()})}function a(){O.hide(),O[x.showMethod]({duration:x.showDuration,easing:x.showEasing,complete:x.onShown}),x.timeOut>0&&(w=setTimeout(y,x.timeOut),I.maxHideTime=parseFloat(x.timeOut),I.hideEta=(new Date).getTime()+I.maxHideTime,x.progressBar&&(I.intervalId=setInterval(_,10)))}function s(){t.iconClass&&O.addClass(x.toastClass).addClass(D)}function u(){x.newestOnTop?g.prepend(O):g.append(O)}function l(){t.title&&(T.append(x.escapeHtml?r(t.title):t.title).addClass(x.titleClass),O.append(T))}function c(){t.message&&(k.append(x.escapeHtml?r(t.message):t.message).addClass(x.messageClass),O.append(k))}function p(){x.closeButton&&(S.addClass("toast-close-button").attr("role","button"),O.prepend(S))}function d(){x.progressBar&&(M.addClass("toast-progress"),O.prepend(M))}function h(e,t){if(e.preventDuplicates){if(t.message===E)return!0;E=t.message}return!1}function y(t){var n=t&&x.closeMethod!==!1?x.closeMethod:x.hideMethod,r=t&&x.closeDuration!==!1?x.closeDuration:x.hideDuration,o=t&&x.closeEasing!==!1?x.closeEasing:x.hideEasing;return!e(":focus",O).length||t?(clearTimeout(I.intervalId),O[n]({duration:r,easing:o,complete:function(){v(O),x.onHidden&&"hidden"!==R.state&&x.onHidden(),R.state="hidden",R.endTime=new Date,f(R)}})):void 0}function N(){(x.timeOut>0||x.extendedTimeOut>0)&&(w=setTimeout(y,x.extendedTimeOut),I.maxHideTime=parseFloat(x.extendedTimeOut),I.hideEta=(new Date).getTime()+I.maxHideTime)}function C(){clearTimeout(w),I.hideEta=0,O.stop(!0,!0)[x.showMethod]({duration:x.showDuration,easing:x.showEasing})}function _(){var e=(I.hideEta-(new Date).getTime())/I.maxHideTime*100;M.width(e+"%")}var x=m(),D=t.iconClass||x.iconClass;if("undefined"!=typeof t.optionsOverride&&(x=e.extend(x,t.optionsOverride),D=t.optionsOverride.iconClass||D),!h(x,t)){b++,g=n(x,!0);var w=null,O=e("
"),T=e("
"),k=e("
"),M=e("
"),S=e(x.closeHtml),I={intervalId:null,hideEta:null,maxHideTime:null},R={toastId:b,state:"visible",startTime:new Date,options:x,map:t};return o(),a(),i(),f(R),x.debug&&console&&console.log(R),O}}function m(){return e.extend({},d(),C.options)}function v(e){g||(g=n()),e.is(":visible")||(e.remove(),e=null,0===g.children().length&&(g.remove(),E=void 0))}var g,y,E,b=0,N={error:"error",info:"info",success:"success",warning:"warning"},C={clear:s,remove:u,error:t,getContainer:n,info:r,options:{},subscribe:o,success:i,version:"2.1.2",warning:a};return C}()}.apply(t,r),!(void 0!==o&&(e.exports=o))}(n(171))},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(15),i=r(o),a=n(57),s=r(a),u=n(53);t["default"]=i["default"].createClass({displayName:"AddItemForm",getInitialState:function(){return{label:"",type:"",expiration:3e5}},handleLabelChange:function(e){this.setState({label:e.target.value})},handleTypeChange:function(e){this.setState({type:e.target.value})},handleExpirationChange:function(e){this.setState({expiration:e})},handleSubmit:function(e){e.preventDefault();var t=this.state.label.trim(),n=this.state.type.trim(),r=this.state.expiration,o=Date.now()+this.state.expiration;if(n&&t){if(this.props.items[t])return void u.error(t+" is already in your inventory");this.props.onAddItem({label:t,type:n,expiration:o}),this.setState({label:"",type:"",expiration:r})}},render:function(){return i["default"].createElement("form",{className:"addItemForm",onSubmit:this.handleSubmit},i["default"].createElement("h2",null,"Add Item to Inventory: "),i["default"].createElement("input",{type:"text",placeholder:"Item Label",value:this.state.label,onChange:this.handleLabelChange}),i["default"].createElement("input",{type:"text",placeholder:"Type",value:this.state.type,onChange:this.handleTypeChange}),i["default"].createElement(s["default"],{onSetExpiration:this.handleExpirationChange,"default":this.state.expiration}),i["default"].createElement("input",{type:"submit",value:"Add Item"}))}})},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(15),i=r(o),a=n(96),s=r(a),u=n(113),l=r(u),c=n(53);t["default"]=i["default"].createClass({displayName:"Item",getInitialState:function(){var e=this.props.expiration<=Date.now();return{expired:e}},checkTimeToExpire:function(e){var t=this;if(!this.state.expired){var n=Math.round((e-Date.now())/1e3,0);60>=n?this.notifyExpiring(this.props.expiration):this.waitTimer=setTimeout(function(){t.notifyExpiring(t.props.expiration)},1e3*(n-60))}},notifyExpiring:function(e){var t=this;this.expiringChecker=setInterval(function(){var n=Math.round((e-Date.now())/1e3,0);0>=n&&(t.setState({expired:!0}),c.warning(t.props.label+" has expired"),clearInterval(t.expiringChecker)),t.forceUpdate()},1e3)},componentDidMount:function(){this.checkTimeToExpire(this.props.expiration)},componentWillUnmount:function(){clearInterval(this.expiringChecker),clearTimeout(this.waitTimer)},render:function(){var e=this.state.expired?"Expired: ":"Expires: ",t=(0,s["default"])({item:!0,expired:this.state.expired});return i["default"].createElement("div",{className:t},i["default"].createElement("h2",{className:"itemLabel"},this.props.label),i["default"].createElement("p",{className:"itemType"},"Type: ",this.props.type),i["default"].createElement("p",{className:"itemExpiration"},e,i["default"].createElement(l["default"],{date:this.props.expiration})),i["default"].createElement("button",{className:"removeButton",onClick:this.props.handleRemove},"Remove Item"))}})},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(15),i=r(o),a=n(55),s=r(a);t["default"]=i["default"].createClass({displayName:"ItemList",handleRemove:function(e){this.props.onRemove(e)},render:function(){var e=this,t=Array.from(Object.keys(this.props.items),function(t){var n=e.props.items[t];return i["default"].createElement(s["default"],{label:n.label,type:n.type,expiration:n.expiration,key:n.label,handleRemove:e.handleRemove.bind(e,n.label)})});return i["default"].createElement("div",{className:"itemList"},t)}})},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(15),i=r(o),a=n(111),s=r(a),u=n(58);t["default"]=i["default"].createClass({displayName:"TimePicker",getInitialState:function(){return{expirations:(0,u.getExpirationTimes)()}},timeChange:function(e){var t=parseInt(e.target.value,10);this.props.onSetExpiration(t)},render:function(){var e=this.state.expirations.map(function(e,t){return i["default"].createElement("option",{value:e,key:t},(0,s["default"])(e,{round:!0}))});return i["default"].createElement("div",{className:"timePicker"},i["default"].createElement("span",null,"Set expiration: "),i["default"].createElement("select",{defaultValue:this.props["default"],onChange:this.timeChange},e))}})},function(e,t){"use strict";function n(e,t){return o("localStorage")?void(localStorage[e]=JSON.stringify(t)):!1}function r(e){return o("localStorage")?localStorage[e]?JSON.parse(localStorage[e]):null:!1}function o(e){try{var t=window[e],n="__storage_test__";return t.setItem(n,n),t.removeItem(n),!0}catch(r){return!1}}function i(e){var t=0,n=0,r=null;for(t=e.length-1;t>0;t-=1)n=Math.floor(Math.random()*(t+1)),r=e[t],e[t]=e[n],e[n]=r;return e}function a(){var e=6e4,t=60*e,n=24*t;return[1e4,e,2*e,5*e,15*e,t,12*t,n,7*n,14*n]}function s(){return[{label:"taco",type:"mexican"},{label:"pancake",type:"breakfast"},{label:"burrito",type:"mexican"},{label:"waffle",type:"belgian"},{label:"chalupa",type:"taco bell"},{label:"pizza",type:"italian"},{label:"cake",type:"dessert"},{label:"pie",type:"dessert"},{label:"cookie",type:"dessert"},{label:"cupcake",type:"dessert"},{label:"apple",type:"fruit"},{label:"banana",type:"fruit"},{label:"eggplant",type:"vegetable"},{label:"quiche",type:"uhh"},{label:"carrot",type:"vegetable"},{label:"parsley",type:"inedible"},{label:"spinach",type:"vegetable"},{label:"cheese",type:"dairy"},{label:"eggs",type:"dairy"},{label:"crackers",type:"snack"},{label:"beer",type:"drink"},{label:"wine",type:"drink"},{label:"whiskey",type:"liquor"},{label:"orange",type:"fruit"},{label:"pear",type:"fruit"},{label:"mango",type:"fruit"},{label:"durian",type:"smelly fruit"},{label:"burger",type:"murican"},{label:"bacon",type:"meat"},{label:"ham",type:"meat"},{label:"salami",type:"meat"},{label:"broccoli",type:"vegetable"},{label:"tomato",type:"fruit"}]}Object.defineProperty(t,"__esModule",{value:!0}),t.saveToLocalStorage=n,t.getFromLocalStorage=r,t.shuffleArray=i,t.getExpirationTimes=a,t.getSampleItems=s},function(e,t,n){(function(t){"use strict";var r=n(10),o={listen:function(e,t,n){return e.addEventListener?(e.addEventListener(t,n,!1),{remove:function(){e.removeEventListener(t,n,!1)}}):e.attachEvent?(e.attachEvent("on"+t,n),{remove:function(){e.detachEvent("on"+t,n)}}):void 0},capture:function(e,n,o){return e.addEventListener?(e.addEventListener(n,o,!0),{remove:function(){e.removeEventListener(n,o,!0)}}):("production"!==t.env.NODE_ENV&&console.error("Attempted to listen to events during the capture phase on a browser that does not support the capture phase. Your application will not receive some events."),{remove:r})},registerDefault:function(){}};e.exports=o}).call(t,n(1))},function(e,t,n){"use strict";function r(e,t){var n=!0;e:for(;n;){var r=e,i=t;if(n=!1,r&&i){if(r===i)return!0;if(o(r))return!1;if(o(i)){e=r,t=i.parentNode,n=!0;continue e}return r.contains?r.contains(i):r.compareDocumentPosition?!!(16&r.compareDocumentPosition(i)):!1}return!1}}var o=n(105);e.exports=r},function(e,t){"use strict";function n(e){try{e.focus()}catch(t){}}e.exports=n},function(e,t){"use strict";function n(){if("undefined"==typeof document)return null;try{return document.activeElement||document.body}catch(e){return document.body}}e.exports=n},function(e,t,n){(function(t){"use strict";function r(e){return a?void 0:"production"!==t.env.NODE_ENV?i(!1,"Markup wrapping node not initialized"):i(!1),d.hasOwnProperty(e)||(e="*"),s.hasOwnProperty(e)||("*"===e?a.innerHTML="":a.innerHTML="<"+e+">",s[e]=!a.firstChild),s[e]?d[e]:null}var o=n(5),i=n(2),a=o.canUseDOM?document.createElement("div"):null,s={},u=[1,'"],l=[1,"","
"],c=[3,"","
"],p=[1,'',""],d={"*":[1,"?
","
"],area:[1,"",""],col:[2,"","
"],legend:[1,"
","
"],param:[1,"",""],tr:[2,"","
"],optgroup:u,option:u,caption:l,colgroup:l,tbody:l,tfoot:l,thead:l,td:c,th:c},f=["circle","clipPath","defs","ellipse","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","text","tspan"];f.forEach(function(e){d[e]=p,s[e]=!0}),e.exports=r}).call(t,n(1))},function(e,t){"use strict";function n(e,t){if(e===t)return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),o=Object.keys(t);if(n.length!==o.length)return!1;for(var i=r.bind(t),a=0;a0&&t-1 in e}function s(e,t,n){if(le.isFunction(t))return le.grep(e,function(e,r){return!!t.call(e,r,e)!==n});if(t.nodeType)return le.grep(e,function(e){return e===t!==n});if("string"==typeof t){if(Ee.test(t))return le.filter(t,e,n);t=le.filter(t,e)}return le.grep(e,function(e){return re.call(t,e)>-1!==n})}function u(e,t){for(;(e=e[t])&&1!==e.nodeType;);return e}function l(e){var t={};return le.each(e.match(De)||[],function(e,n){t[n]=!0}),t}function c(){Z.removeEventListener("DOMContentLoaded",c),n.removeEventListener("load",c),le.ready()}function p(){this.expando=le.expando+p.uid++}function d(e,t,n){var r;if(void 0===n&&1===e.nodeType)if(r="data-"+t.replace(Ie,"-$&").toLowerCase(),n=e.getAttribute(r),"string"==typeof n){try{n="true"===n?!0:"false"===n?!1:"null"===n?null:+n+""===n?+n:Se.test(n)?le.parseJSON(n):n}catch(o){}Me.set(e,t,n)}else n=void 0;return n}function f(e,t,n,r){var o,i=1,a=20,s=r?function(){return r.cur()}:function(){return le.css(e,t,"")},u=s(),l=n&&n[3]||(le.cssNumber[t]?"":"px"),c=(le.cssNumber[t]||"px"!==l&&+u)&&Pe.exec(le.css(e,t));if(c&&c[3]!==l){l=l||c[3],n=n||[],c=+u||1;do i=i||".5",c/=i,le.style(e,t,c+l);while(i!==(i=s()/u)&&1!==i&&--a)}return n&&(c=+c||+u||0,o=n[1]?c+(n[1]+1)*n[2]:+n[2],r&&(r.unit=l,r.start=c,r.end=o)),o}function h(e,t){var n="undefined"!=typeof e.getElementsByTagName?e.getElementsByTagName(t||"*"):"undefined"!=typeof e.querySelectorAll?e.querySelectorAll(t||"*"):[];return void 0===t||t&&le.nodeName(e,t)?le.merge([e],n):n}function m(e,t){for(var n=0,r=e.length;r>n;n++)ke.set(e[n],"globalEval",!t||ke.get(t[n],"globalEval"))}function v(e,t,n,r,o){for(var i,a,s,u,l,c,p=t.createDocumentFragment(),d=[],f=0,v=e.length;v>f;f++)if(i=e[f],i||0===i)if("object"===le.type(i))le.merge(d,i.nodeType?[i]:i);else if(Be.test(i)){for(a=a||p.appendChild(t.createElement("div")),s=(je.exec(i)||["",""])[1].toLowerCase(),u=Fe[s]||Fe._default,a.innerHTML=u[1]+le.htmlPrefilter(i)+u[2],c=u[0];c--;)a=a.lastChild;le.merge(d,a.childNodes),a=p.firstChild,a.textContent=""}else d.push(t.createTextNode(i));for(p.textContent="",f=0;i=d[f++];)if(r&&le.inArray(i,r)>-1)o&&o.push(i);else if(l=le.contains(i.ownerDocument,i),a=h(p.appendChild(i),"script"),l&&m(a),n)for(c=0;i=a[c++];)Ue.test(i.type||"")&&n.push(i);return p}function g(){return!0}function y(){return!1}function E(){try{return Z.activeElement}catch(e){}}function b(e,t,n,r,o,i){var a,s;if("object"==typeof t){"string"!=typeof n&&(r=r||n,n=void 0);for(s in t)b(e,s,n,r,t[s],i);return e}if(null==r&&null==o?(o=n,r=n=void 0):null==o&&("string"==typeof n?(o=r,r=void 0):(o=r,r=n,n=void 0)),o===!1)o=y;else if(!o)return e;return 1===i&&(a=o,o=function(e){return le().off(e),a.apply(this,arguments)},o.guid=a.guid||(a.guid=le.guid++)),e.each(function(){le.event.add(this,t,o,r,n)})}function N(e,t){return le.nodeName(e,"table")&&le.nodeName(11!==t.nodeType?t:t.firstChild,"tr")?e.getElementsByTagName("tbody")[0]||e.appendChild(e.ownerDocument.createElement("tbody")):e}function C(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function _(e){var t=$e.exec(e.type);return t?e.type=t[1]:e.removeAttribute("type"),e}function x(e,t){var n,r,o,i,a,s,u,l;if(1===t.nodeType){if(ke.hasData(e)&&(i=ke.access(e),a=ke.set(t,i),l=i.events)){delete a.handle,a.events={};for(o in l)for(n=0,r=l[o].length;r>n;n++)le.event.add(t,o,l[o][n])}Me.hasData(e)&&(s=Me.access(e),u=le.extend({},s),Me.set(t,u))}}function D(e,t){var n=t.nodeName.toLowerCase();"input"===n&&Le.test(e.type)?t.checked=e.checked:("input"===n||"textarea"===n)&&(t.defaultValue=e.defaultValue)}function w(e,t,n,r){t=te.apply([],t);var o,i,a,s,u,l,c=0,p=e.length,d=p-1,f=t[0],m=le.isFunction(f);if(m||p>1&&"string"==typeof f&&!se.checkClone&&Ye.test(f))return e.each(function(o){var i=e.eq(o);m&&(t[0]=f.call(this,o,i.html())),w(i,t,n,r)});if(p&&(o=v(t,e[0].ownerDocument,!1,e,r),i=o.firstChild,1===o.childNodes.length&&(o=i),i||r)){for(a=le.map(h(o,"script"),C),s=a.length;p>c;c++)u=o,c!==d&&(u=le.clone(u,!0,!0),s&&le.merge(a,h(u,"script"))),n.call(e[c],u,c);if(s)for(l=a[a.length-1].ownerDocument,le.map(a,_),c=0;s>c;c++)u=a[c],Ue.test(u.type||"")&&!ke.access(u,"globalEval")&&le.contains(l,u)&&(u.src?le._evalUrl&&le._evalUrl(u.src):le.globalEval(u.textContent.replace(Xe,"")))}return e}function O(e,t,n){for(var r,o=t?le.filter(t,e):e,i=0;null!=(r=o[i]);i++)n||1!==r.nodeType||le.cleanData(h(r)),r.parentNode&&(n&&le.contains(r.ownerDocument,r)&&m(h(r,"script")),r.parentNode.removeChild(r));return e}function T(e,t){var n=le(t.createElement(e)).appendTo(t.body),r=le.css(n[0],"display");return n.detach(),r}function k(e){var t=Z,n=Qe[e];return n||(n=T(e,t),"none"!==n&&n||(Ge=(Ge||le("