From: Alex-Laptop Date: Wed, 18 Sep 2019 04:27:39 +0000 (-0700) Subject: added prod build X-Git-Tag: v1.0.0~41 X-Git-Url: http://git.infiniteadaptability.org/?a=commitdiff_plain;h=87a3c909160f8aeb9c91a91a46c3a45a374ed94e;p=workouts added prod build --- diff --git a/workouts.min.js b/workouts.min.js new file mode 100644 index 0000000..6812e82 --- /dev/null +++ b/workouts.min.js @@ -0,0 +1,39 @@ +!function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=34)}([function(e,t,n){"use strict";e.exports=n(35)},function(e,t,n){"use strict";n.d(t,"a",function(){return r});const r={ADD_WORKOUT:"ADD_WORKOUT",CHANGE_ATTRIBUTE:"CHANGE_ATTRIBUTE",CHANGE_VIEW:"CHANGE_VIEW",CHANGE_WORKOUT_DATE:"CHANGE_WORKOUT_DATE",CHANGE_WORKOUT_DESCRIPTION:"CHANGE_WORKOUT_DESCRIPTION",CHANGE_WORKOUT_NAME:"CHANGE_WORKOUT_NAME",DEFAULT_ATTRIBUTES:{lower:!1,core:!1,back:!1,upper:!1,cardio:!1,martial:!1,other:!1},DEFAULT_ATTRIBUTES_ORDER:["lower","core","back","upper","cardio","martial","other"],DELETE_WORKOUT:"DELETE_WORKOUT",NEW_WORKOUT:"NEW_WORKOUT",REMOVE_WORKOUT:"REMOVE_WORKOUT",SORT_VIEW:"SORT_VIEW"};Object.freeze(r)},function(e,t,n){"use strict";var r=n(0),o=n.n(r),i=n(6),a=n.n(i),l=o.a.createContext(null);var u=function(e){e()},c=function(){return u},s=null,f={notify:function(){}};var d=function(){function e(e,t){this.store=e,this.parentSub=t,this.unsubscribe=null,this.listeners=f,this.handleChangeWrapper=this.handleChangeWrapper.bind(this)}var t=e.prototype;return t.addNestedSub=function(e){return this.trySubscribe(),this.listeners.subscribe(e)},t.notifyNestedSubs=function(){this.listeners.notify()},t.handleChangeWrapper=function(){this.onStateChange&&this.onStateChange()},t.isSubscribed=function(){return Boolean(this.unsubscribe)},t.trySubscribe=function(){var e,t,n;this.unsubscribe||(this.unsubscribe=this.parentSub?this.parentSub.addNestedSub(this.handleChangeWrapper):this.store.subscribe(this.handleChangeWrapper),this.listeners=(e=c(),t=[],n=[],{clear:function(){n=s,t=s},notify:function(){var r=t=n;e(function(){for(var e=0;e=0||(o[n]=e[n]);return o}var y=n(13),b=n.n(y),g=n(9),w=n.n(g),k=n(12),x=[],T=[null,null];function E(e,t){var n=e[1];return[t.payload,n+1]}var S=function(){return[null,0]},C="undefined"!=typeof window?r.useLayoutEffect:r.useEffect;function _(e,t){void 0===t&&(t={});var n=t,i=n.getDisplayName,a=void 0===i?function(e){return"ConnectAdvanced("+e+")"}:i,u=n.methodName,c=void 0===u?"connectAdvanced":u,s=n.renderCountProp,f=void 0===s?void 0:s,p=n.shouldHandleStateChanges,m=void 0===p||p,y=n.storeKey,g=void 0===y?"store":y,_=n.withRef,P=void 0!==_&&_,O=n.forwardRef,N=void 0!==O&&O,R=n.context,D=void 0===R?l:R,A=v(n,["getDisplayName","methodName","renderCountProp","shouldHandleStateChanges","storeKey","withRef","forwardRef","context"]);w()(void 0===f,"renderCountProp is removed. render counting is built into the latest React Dev Tools profiling extension"),w()(!P,"withRef is removed. To access the wrapped instance, use a ref on the connected component");w()("store"===g,"storeKey has been removed and does not do anything. To use a custom Redux store for specific components, create a custom React context with React.createContext(), and pass the context object to React Redux's Provider and specific components like: . You may also pass a {context : MyContext} option to connect");var U=D;return function(t){var n=t.displayName||t.name||"Component",i=a(n),l=h({},A,{getDisplayName:a,methodName:c,renderCountProp:f,shouldHandleStateChanges:m,storeKey:g,displayName:i,wrappedComponentName:n,WrappedComponent:t}),u=A.pure;var s=u?r.useMemo:function(e){return e()};function p(n){var a=Object(r.useMemo)(function(){return[n.context,n.forwardedRef,v(n,["context","forwardedRef"])]},[n]),u=a[0],c=a[1],f=a[2],p=Object(r.useMemo)(function(){return u&&u.Consumer&&Object(k.isContextConsumer)(o.a.createElement(u.Consumer,null))?u:U},[u,U]),y=Object(r.useContext)(p),b=Boolean(n.store),g=Boolean(y)&&Boolean(y.store);w()(b||g,'Could not find "store" in the context of "'+i+'". Either wrap the root component in a , or pass a custom React context provider to and the corresponding React context consumer to '+i+" in connect options.");var _=n.store||y.store,P=Object(r.useMemo)(function(){return function(t){return e(t.dispatch,l)}(_)},[_]),O=Object(r.useMemo)(function(){if(!m)return T;var e=new d(_,b?null:y.subscription),t=e.notifyNestedSubs.bind(e);return[e,t]},[_,b,y]),N=O[0],R=O[1],D=Object(r.useMemo)(function(){return b?y:h({},y,{subscription:N})},[b,y,N]),A=Object(r.useReducer)(E,x,S),I=A[0][0],M=A[1];if(I&&I.error)throw I.error;var j=Object(r.useRef)(),L=Object(r.useRef)(f),W=Object(r.useRef)(),F=Object(r.useRef)(!1),z=s(function(){return W.current&&f===L.current?W.current:P(_.getState(),f)},[_,I,f]);C(function(){L.current=f,j.current=z,F.current=!1,W.current&&(W.current=null,R())}),C(function(){if(m){var e=!1,t=null,n=function(){if(!e){var n,r,o=_.getState();try{n=P(o,L.current)}catch(e){r=e,t=e}r||(t=null),n===j.current?F.current||R():(j.current=n,W.current=n,F.current=!0,M({type:"STORE_UPDATED",payload:{latestStoreState:o,error:r}}))}};N.onStateChange=n,N.trySubscribe(),n();return function(){if(e=!0,N.tryUnsubscribe(),t)throw t}}},[_,N,P]);var B=Object(r.useMemo)(function(){return o.a.createElement(t,h({},z,{ref:c}))},[c,t,z]);return Object(r.useMemo)(function(){return m?o.a.createElement(p.Provider,{value:D},B):B},[p,B,D])}var y=u?o.a.memo(p):p;if(y.WrappedComponent=t,y.displayName=i,N){var _=o.a.forwardRef(function(e,t){return o.a.createElement(y,h({},e,{forwardedRef:t}))});return _.displayName=i,_.WrappedComponent=t,b()(_,t)}return b()(y,t)}}var P=Object.prototype.hasOwnProperty;function O(e,t){return e===t?0!==e||0!==t||1/e==1/t:e!=e&&t!=t}function N(e,t){if(O(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(var o=0;o=0;r--){var o=t[r](e);if(o)return o}return function(t,r){throw new Error("Invalid value of type "+typeof e+" for "+n+" argument when connecting component "+r.wrappedComponentName+".")}}function X(e,t){return e===t}var H,K,V,$,Q,q,G,Y,J,Z,ee,te,ne,re=(V=(K=void 0===H?{}:H).connectHOC,$=void 0===V?_:V,Q=K.mapStateToPropsFactories,q=void 0===Q?M:Q,G=K.mapDispatchToPropsFactories,Y=void 0===G?I:G,J=K.mergePropsFactories,Z=void 0===J?L:J,ee=K.selectorFactory,te=void 0===ee?z:ee,function(e,t,n,r){void 0===r&&(r={});var o=r,i=o.pure,a=void 0===i||i,l=o.areStatesEqual,u=void 0===l?X:l,c=o.areOwnPropsEqual,s=void 0===c?N:c,f=o.areStatePropsEqual,d=void 0===f?N:f,p=o.areMergedPropsEqual,m=void 0===p?N:p,y=v(o,["pure","areStatesEqual","areOwnPropsEqual","areStatePropsEqual","areMergedPropsEqual"]),b=B(e,q,"mapStateToProps"),g=B(t,Y,"mapDispatchToProps"),w=B(n,Z,"mergeProps");return $(te,h({methodName:"connect",getDisplayName:function(e){return"Connect("+e+")"},shouldHandleStateChanges:Boolean(e),initMapStateToProps:b,initMapDispatchToProps:g,initMergeProps:w,pure:a,areStatesEqual:u,areOwnPropsEqual:s,areStatePropsEqual:d,areMergedPropsEqual:m},y))}),oe=n(10);n.d(t,"a",function(){return m}),n.d(t,"b",function(){return re}),ne=oe.unstable_batchedUpdates,u=ne},function(e,t,n){"use strict";n.d(t,"a",function(){return i});var r=n(1);const{DEFAULT_ATTRIBUTES:o}=r.a;class i{constructor(e){if(void 0!==e&&e instanceof i)this.attributes={...e.attributes},this.datesDone=[...e.datesDone],this.name=e.name,this.description=e.description;else if(this.attributes={...o},this.datesDone=[],this.name="New Workout",this.description="","object"==typeof e){if(void 0!==e.attributes)for(let t in e.attributes)if(!0===e.attributes[t])try{this.toggleAttribute(t)}catch(e){}if(void 0!==e.datesDone)try{this.add(e.datesDone)}catch(e){}if(void 0!==e.name)try{this.setName(e.name)}catch(e){}if(void 0!==e.description)try{this.changeDescription(e.description)}catch(e){}}}add(e){if(!(e instanceof Array))throw new TypeError("Workout::add(dates) expects parameter `dates` to be an array of dates");if(!(e=e.map(e=>Date.parse(e))).every(e=>!isNaN(e)))throw new TypeError("Workout::add(dates) expects parameter `dates` to be an array of dates");this.datesDone=[...new Set([...this.datesDone,...e.map(e=>new Date(e).toISOString().split("T")[0])])],this.datesDone.sort((e,t)=>e=0&&s.splice(t,1)}function v(e){var t=document.createElement("style");if(void 0===e.attrs.type&&(e.attrs.type="text/css"),void 0===e.attrs.nonce){var r=function(){0;return n.nc}();r&&(e.attrs.nonce=r)}return y(t,e.attrs),m(e,t),t}function y(e,t){Object.keys(t).forEach(function(n){e.setAttribute(n,t[n])})}function b(e,t){var n,r,o,i;if(t.transform&&e.css){if(!(i="function"==typeof t.transform?t.transform(e.css):t.transform.default(e.css)))return function(){};e.css=i}if(t.singleton){var a=c++;n=u||(u=v(t)),r=k.bind(null,n,a,!1),o=k.bind(null,n,a,!0)}else e.sourceMap&&"function"==typeof URL&&"function"==typeof URL.createObjectURL&&"function"==typeof URL.revokeObjectURL&&"function"==typeof Blob&&"function"==typeof btoa?(n=function(e){var t=document.createElement("link");return void 0===e.attrs.type&&(e.attrs.type="text/css"),e.attrs.rel="stylesheet",y(t,e.attrs),m(e,t),t}(t),r=function(e,t,n){var r=n.css,o=n.sourceMap,i=void 0===t.convertToAbsoluteUrls&&o;(t.convertToAbsoluteUrls||i)&&(r=f(r));o&&(r+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(o))))+" */");var a=new Blob([r],{type:"text/css"}),l=e.href;e.href=URL.createObjectURL(a),l&&URL.revokeObjectURL(l)}.bind(null,n,t),o=function(){h(n),n.href&&URL.revokeObjectURL(n.href)}):(n=v(t),r=function(e,t){var n=t.css,r=t.media;r&&e.setAttribute("media",r);if(e.styleSheet)e.styleSheet.cssText=n;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(n))}}.bind(null,n),o=function(){h(n)});return r(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap)return;r(e=t)}else o()}}e.exports=function(e,t){if("undefined"!=typeof DEBUG&&DEBUG&&"object"!=typeof document)throw new Error("The style-loader cannot be used in a non-browser environment");(t=t||{}).attrs="object"==typeof t.attrs?t.attrs:{},t.singleton||"boolean"==typeof t.singleton||(t.singleton=a()),t.insertInto||(t.insertInto="head"),t.insertAt||(t.insertAt="bottom");var n=p(e,t);return d(n,t),function(e){for(var r=[],o=0;o{const{workouts:t}=e;return{workouts:t}})(Object(r.b)(e=>{const{view:t}=e.view;return{view:t}},(e,t)=>({switchView:n=>{e({type:a,workouts:t.workouts,view:n}),e({type:l,key:"manage"==n?"last_done":"date",shift:!1})}}))(o.a))},function(e,t,n){"use strict";(function(e,r){n.d(t,"a",function(){return s});var o=n(11),i=n.n(o),a=n(24),l=n(26),u=n(27),c=n(30);class s extends e.Component{constructor(e){super(e),this.save=this.save.bind(this),this.switchView=this.switchView.bind(this),this.handleKeyPress=this.handleKeyPress.bind(this)}componentDidMount(){document.addEventListener("keydown",this.handleKeyPress)}componentWillUnmount(){document.removeEventListener("keydown",this.handleKeyPress)}handleKeyPress(e){e.ctrlKey&&"s"==e.key&&(this.save(),e.preventDefault())}save(){const{workouts:e,save:t}=this.props;t(e)}switchView(e){this.props.switchView(e)}render(){const{view:e}=this.props,t="manage"==e?"recent":"manage";return r("div",{className:i.a.container},r("div",{className:i.a.headerContainer},r(l.a,null)),r("div",{className:i.a.viewContainer},r(a.a,null),r("input",{type:"button",onClick:this.switchView.bind(this,t),value:t}),r("input",{type:"button",onClick:this.save,value:"Save Workouts"}),r("manage"==e?u.a:c.a,null)))}}}).call(this,n(0),n(0).createElement)},function(e,t,n){"use strict";n.d(t,"a",function(){return i});var r=n(2),o=n(25);const i=Object(r.b)(e=>{const{daysAgo:t}=e.view;return{daysAgo:t}})(o.a)},function(e,t,n){"use strict";(function(e,r){n.d(t,"a",function(){return u});var o=n(15),i=n.n(o),a=n(1);const{DEFAULT_ATTRIBUTES_ORDER:l}=a.a;class u extends e.Component{render(){const e=l.map(e=>r("th",{key:"head-"+e},e)),t=l.map(e=>{const t=this.props.daysAgo[e]<0?"N/A":this.props.daysAgo[e];return r("td",{key:"row-"+e},t)});return r("div",{className:i.a.container},r("table",{className:i.a.table},r("thead",null,r("tr",null,r("th",null),e)),r("tbody",null,r("tr",null,r("td",null,"Days Ago"),t))))}}}).call(this,n(0),n(0).createElement)},function(e,t,n){"use strict";(function(e,r){n.d(t,"a",function(){return a});var o=n(16),i=n.n(o);class a extends e.Component{render(){return r("div",{className:i.a.container},r("h2",{className:i.a.h2},"Workouts"))}}}).call(this,n(0),n(0).createElement)},function(e,t,n){"use strict";n.d(t,"a",function(){return d});var r=n(2),o=n(28),i=n(1);const{ADD_WORKOUT:a,CHANGE_ATTRIBUTE:l,CHANGE_WORKOUT_DESCRIPTION:u,CHANGE_WORKOUT_NAME:c,NEW_WORKOUT:s,SORT_VIEW:f}=i.a,d=Object(r.b)(e=>({workouts:e.view.data}),e=>({changeDescription:(t,n)=>{e({type:u,workout:t,description:n})},changeName:(t,n)=>{e({type:c,workout:t,name:n})},completeWorkout:t=>{const n=new Date;e({type:a,name:t,toAdd:[new Date(n.getTime()-6e4*n.getTimezoneOffset()).toISOString().split("T")[0]]})},newWorkout:()=>{e({type:s})},sort:(t,n)=>{e({type:f,key:t,shift:n})},toggleAttribute:(t,n)=>{e({type:l,workout:t,attribute:n})}}))(o.a)},function(e,t,n){"use strict";(function(e,r){n.d(t,"a",function(){return c});var o=n(17),i=n.n(o),a=n(29),l=n(1);const{DEFAULT_ATTRIBUTES_ORDER:u}=l.a;class c extends e.Component{constructor(e){super(e),this.addNew=this.addNew.bind(this),this.handleSort=this.handleSort.bind(this)}addNew(){this.props.newWorkout()}handleSort(e,t){this.props.sort(e,t.shiftKey)}render(){const{workouts:e,changeDescription:t,changeName:n,completeWorkout:o,toggleAttribute:l}=this.props,c=["workout name",...u,"times done","last done","description",""].map(e=>r("th",{key:"head-"+e,onClick:this.handleSort.bind(this,e)},e)),s=e.map(e=>r(a.a,{key:"row-"+e.name,data:e,complete:()=>o(e.name),description:n=>t(e.name,n),name:t=>n(e.name,t),toggle:t=>l(e.name,t)}));return r("div",{className:i.a.container},r("input",{type:"button",value:"Add New Workout",onClick:this.addNew}),r("table",{className:i.a.table},r("thead",null,r("tr",null,c)),r("tbody",null,s)))}}}).call(this,n(0),n(0).createElement)},function(e,t,n){"use strict";(function(e,r){n.d(t,"a",function(){return a});n(48);var o=n(1);const{DEFAULT_ATTRIBUTES_ORDER:i}=o.a;class a extends e.Component{constructor(e){super(e),this.changeDescription=this.changeDescription.bind(this),this.changeName=this.changeName.bind(this),this.completeWorkout=this.completeWorkout.bind(this),this.toggleAttribute=this.toggleAttribute.bind(this)}changeDescription(e){this.props.description(e.target.value)}changeName(e){this.props.name(e.target.value)}completeWorkout(){this.props.complete()}toggleAttribute(e){this.props.toggle(e)}render(){const{data:e}=this.props,t=["name",...i,"times_done","last_done","description","done"].map(t=>"done"==t?r("td",{key:"cell-"+t},r("input",{type:"button",value:"Completed",onClick:this.completeWorkout})):"name"==t?r("td",{key:"cell-"+t},r("input",{defaultValue:e[t],onBlur:this.changeName})):"description"==t?r("td",{key:"cell-"+t},r("textarea",{value:e[t],onChange:this.changeDescription})):"times_done"==t||"last_done"==t?r("td",{key:"cell-"+t},e[t]):r("td",{key:"cell-attr-"+t,onClick:this.toggleAttribute.bind(this,t)},e[t]?"Yes":"No"));return r("tr",null,t)}}}).call(this,n(0),n(0).createElement)},function(e,t,n){"use strict";n.d(t,"a",function(){return u});var r=n(2),o=n(31),i=n(1);const{CHANGE_WORKOUT_DATE:a,SORT_VIEW:l}=i.a,u=Object(r.b)(e=>({data:e.view.data.slice(0,100)}),e=>({handleDateChange:(t,n,r)=>{e({type:a,workout:t,old:n,new:r})},handleSort:t=>{e({type:l,key:t,shift:!1})}}))(o.a)},function(e,t,n){"use strict";(function(e,r){n.d(t,"a",function(){return l});var o=n(18),i=n.n(o),a=n(32);class l extends e.Component{constructor(e){super(e),this.handleSort=this.handleSort.bind(this)}handleSort(e,t){this.props.handleSort(e,t.shiftKey)}render(){const{data:e,handleDateChange:t,handleSort:n}=this.props,o=["name","date"].map(e=>r("th",{key:"head-"+e,onClick:this.handleSort.bind(this,e)},e)),l=e.map(e=>r(a.a,{key:"row-"+e.name+"-"+e.date,name:e.name,date:e.date,dateChange:(n,r)=>t(e.name,n,r)}));return r("div",{className:i.a.container},r("table",{className:i.a.table},r("thead",null,r("tr",null,o)),r("tbody",null,l)))}}}).call(this,n(0),n(0).createElement)},function(e,t,n){"use strict";(function(e,r){n.d(t,"a",function(){return o});n(51);class o extends e.Component{constructor(e){super(e),this.handleDateChange=this.handleDateChange.bind(this)}handleDateChange(e){const{date:t,dateChange:n}=this.props;n(t,e.target.value)}render(){const{name:e,date:t}=this.props;return r("tr",null,r("td",null,e),r("td",null,r("input",{defaultValue:t,onBlur:this.handleDateChange})))}}}).call(this,n(0),n(0).createElement)},function(e,t,n){"use strict";var r=n(8),o=n(3),i=n(1);const{DEFAULT_ATTRIBUTES:a}=i.a,l={...a};Object.keys(l).map(e=>{l[e]=-1});const u={view:"manage",daysAgo:l,data:[],sortKey:["last_done"],sortOrder:["desc"]},c=e=>{const t={...l},n=new Date;for(let r in e){const o=e[r].last_done;if(""===o)continue;let i=new Date(o);i=new Date(i.getTime()+6e4*n.getTimezoneOffset());for(let o in e[r].attributes)if(e[r].attributes[o]){const e=Math.floor((n-i)/864e5);(t[o]<0||et.workouts[e]instanceof o.a))return e;if(void 0===t.view||t.view==e.view)return e;switch(t.view){case"manage":const n={...e,view:"manage"};n.data=[];for(let e in t.workouts){let r={};for(let n in a)r[n]=t.workouts[e].attributes[n];r.name=t.workouts[e].name,r.times_done=t.workouts[e].times_done,r.last_done=t.workouts[e].last_done,r.description=t.workouts[e].description,n.data.push(r)}return n.daysAgo=c(t.workouts),n;case"recent":const r={...e,view:"recent"};r.data=[];for(let e in t.workouts)for(let n=0;n-1?u[e]="asc"==u[e]?"desc":"asc":(l.push(t.key),u.push("asc"))}else u=void 0!==l[0]&&l[0]==t.key?"asc"==u[0]?["desc"]:["asc"]:["desc"],l=[t.key];return i.sortKey=l,i.sortOrder=u,i.data.sort((e,t)=>{for(let n=0;nt[l[n]])return"asc"==u[n]?1:-1}return 0}),i;default:return e}}})},function(e,t,n){"use strict";n.r(t),function(e){var t=n(10),r=n(8),o=n(2),i=n(33),a=n(22),l=n(3),u=n(7);const c=e=>{const t=JSON.stringify(e);var n=document.createElement("a"),r=new Blob([t],{type:"application/octet-stream"});n.href=window.URL.createObjectURL(r),n.download="workouts.json",document.body.appendChild(n),n.click(),setTimeout(()=>{document.body.removeChild(n),window.URL.revokeObjectURL(r)},0)};window.workoutsInit=(n,s)=>{if(!(n instanceof HTMLElement))throw new Error("Invalid anchor");if(void 0!==u&&"object"==typeof u)for(let e in u)u[e]=new l.a(u[e]);const f=Object(r.c)(i.a,{workouts:u});"function"!=typeof s&&(s=c),Object(t.render)(e(o.a,{store:f},e(a.a,{save:s})),n)}}.call(this,n(0).createElement)},function(e,t,n){"use strict"; +/** @license React v16.8.6 + * react.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var r=n(19),o="function"==typeof Symbol&&Symbol.for,i=o?Symbol.for("react.element"):60103,a=o?Symbol.for("react.portal"):60106,l=o?Symbol.for("react.fragment"):60107,u=o?Symbol.for("react.strict_mode"):60108,c=o?Symbol.for("react.profiler"):60114,s=o?Symbol.for("react.provider"):60109,f=o?Symbol.for("react.context"):60110,d=o?Symbol.for("react.concurrent_mode"):60111,p=o?Symbol.for("react.forward_ref"):60112,m=o?Symbol.for("react.suspense"):60113,h=o?Symbol.for("react.memo"):60115,v=o?Symbol.for("react.lazy"):60116,y="function"==typeof Symbol&&Symbol.iterator;function b(e){for(var t=arguments.length-1,n="https://reactjs.org/docs/error-decoder.html?invariant="+e,r=0;rD.length&&D.push(e)}function I(e,t,n){return null==e?0:function e(t,n,r,o){var l=typeof t;"undefined"!==l&&"boolean"!==l||(t=null);var u=!1;if(null===t)u=!0;else switch(l){case"string":case"number":u=!0;break;case"object":switch(t.$$typeof){case i:case a:u=!0}}if(u)return r(o,t,""===n?"."+M(t,0):n),1;if(u=0,n=""===n?".":n+":",Array.isArray(t))for(var c=0;cthis.eventPool.length&&this.eventPool.push(e)}function fe(e){e.eventPool=[],e.getPooled=ce,e.release=se}o(ue.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!=typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=ae)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=ae)},persist:function(){this.isPersistent=ae},isPersistent:le,destructor:function(){var e,t=this.constructor.Interface;for(e in t)this[e]=null;this.nativeEvent=this._targetInst=this.dispatchConfig=null,this.isPropagationStopped=this.isDefaultPrevented=le,this._dispatchInstances=this._dispatchListeners=null}}),ue.Interface={type:null,target:null,currentTarget:function(){return null},eventPhase:null,bubbles:null,cancelable:null,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:null,isTrusted:null},ue.extend=function(e){function t(){}function n(){return r.apply(this,arguments)}var r=this;t.prototype=r.prototype;var i=new t;return o(i,n.prototype),n.prototype=i,n.prototype.constructor=n,n.Interface=o({},r.Interface,e),n.extend=r.extend,fe(n),n},fe(ue);var de=ue.extend({data:null}),pe=ue.extend({data:null}),me=[9,13,27,32],he=K&&"CompositionEvent"in window,ve=null;K&&"documentMode"in document&&(ve=document.documentMode);var ye=K&&"TextEvent"in window&&!ve,be=K&&(!he||ve&&8=ve),ge=String.fromCharCode(32),we={beforeInput:{phasedRegistrationNames:{bubbled:"onBeforeInput",captured:"onBeforeInputCapture"},dependencies:["compositionend","keypress","textInput","paste"]},compositionEnd:{phasedRegistrationNames:{bubbled:"onCompositionEnd",captured:"onCompositionEndCapture"},dependencies:"blur compositionend keydown keypress keyup mousedown".split(" ")},compositionStart:{phasedRegistrationNames:{bubbled:"onCompositionStart",captured:"onCompositionStartCapture"},dependencies:"blur compositionstart keydown keypress keyup mousedown".split(" ")},compositionUpdate:{phasedRegistrationNames:{bubbled:"onCompositionUpdate",captured:"onCompositionUpdateCapture"},dependencies:"blur compositionupdate keydown keypress keyup mousedown".split(" ")}},ke=!1;function xe(e,t){switch(e){case"keyup":return-1!==me.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"blur":return!0;default:return!1}}function Te(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var Ee=!1;var Se={eventTypes:we,extractEvents:function(e,t,n,r){var o=void 0,i=void 0;if(he)e:{switch(e){case"compositionstart":o=we.compositionStart;break e;case"compositionend":o=we.compositionEnd;break e;case"compositionupdate":o=we.compositionUpdate;break e}o=void 0}else Ee?xe(e,n)&&(o=we.compositionEnd):"keydown"===e&&229===n.keyCode&&(o=we.compositionStart);return o?(be&&"ko"!==n.locale&&(Ee||o!==we.compositionStart?o===we.compositionEnd&&Ee&&(i=ie()):(re="value"in(ne=r)?ne.value:ne.textContent,Ee=!0)),o=de.getPooled(o,t,n,r),i?o.data=i:null!==(i=Te(n))&&(o.data=i),H(o),i=o):i=null,(e=ye?function(e,t){switch(e){case"compositionend":return Te(t);case"keypress":return 32!==t.which?null:(ke=!0,ge);case"textInput":return(e=t.data)===ge&&ke?null:e;default:return null}}(e,n):function(e,t){if(Ee)return"compositionend"===e||!he&&xe(e,t)?(e=ie(),oe=re=ne=null,Ee=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1