[skip ci] - Updating Dist and Docs

This commit is contained in:
Jonathan Putney
2020-03-17 21:20:00 +00:00
parent f88a5dc934
commit 32c7b71d5b
3 changed files with 11 additions and 19 deletions

26
dist/scorm-again.js vendored

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@@ -29,7 +29,7 @@
},{}],15:[function(require,module,exports){ },{}],15:[function(require,module,exports){
"use strict";function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}var _Scorm2004API=_interopRequireDefault(require("./Scorm2004API")),_Scorm12API=_interopRequireDefault(require("./Scorm12API")),_AICC=_interopRequireDefault(require("./AICC"));window.Scorm12API=_Scorm12API.default,window.Scorm2004API=_Scorm2004API.default,window.AICC=_AICC.default; "use strict";function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}var _Scorm2004API=_interopRequireDefault(require("./Scorm2004API")),_Scorm12API=_interopRequireDefault(require("./Scorm12API")),_AICC=_interopRequireDefault(require("./AICC"));window.Scorm12API=_Scorm12API.default,window.Scorm2004API=_Scorm2004API.default,window.AICC=_AICC.default;
},{"./AICC":1,"./Scorm12API":3,"./Scorm2004API":4}],16:[function(require,module,exports){ },{"./AICC":1,"./Scorm12API":3,"./Scorm2004API":4}],16:[function(require,module,exports){
"use strict";function _slicedToArray(e,t){return _arrayWithHoles(e)||_iterableToArrayLimit(e,t)||_nonIterableRest()}function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}function _iterableToArrayLimit(e,t){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e)){var r=[],n=!0,o=!1,s=void 0;try{for(var i,a=e[Symbol.iterator]();!(n=(i=a.next()).done)&&(r.push(i.value),!t||r.length!==t);n=!0);}catch(e){o=!0,s=e}finally{try{n||null==a.return||a.return()}finally{if(o)throw s}}return r}}function _arrayWithHoles(e){if(Array.isArray(e))return e}function getSecondsAsHHMMSS(e){if(!e||e<=0)return"00:00:00";var t=Math.floor(e/SECONDS_PER_HOUR),r=new Date(1e3*e),n=r.getUTCMinutes(),o=r.getSeconds(),s=e%1,i="";return countDecimals(s)>0&&(i=countDecimals(s)>2?s.toFixed(2):String(s),i="."+i.split(".")[1]),(t+":"+n+":"+o).replace(/\b\d\b/g,"0$&")+i}function getSecondsAsISODuration(e){if(!e||e<=0)return"PT0S";var t="P",r=e;return designations.forEach(function(e){var n=_slicedToArray(e,2),o=n[0],s=n[1],i=Math.floor(r/s);r%=s,countDecimals(r)>2&&(r=Number(Number(r).toFixed(2))),"S"===o&&r>0&&(i+=r),i&&((t.indexOf("D")>0||"H"===o||"M"===o||"S"===o)&&-1===t.indexOf("T")&&(t+="T"),t+="".concat(i).concat(o))}),t}function getTimeAsSeconds(e,t){if(!e||"string"!=typeof e||!e.match(t))return 0;var r=e.split(":");return 3600*Number(r[0])+60*Number(r[1])+Number(r[2])}function getDurationAsSeconds(e,t){if(!e||!e.match(t))return 0;var r=new RegExp(t).exec(e)||[],n=_slicedToArray(r,8),o=n[1],s=n[2],i=n[4],a=n[5],S=n[6],u=n[7],c=new Date,l=new Date(c);if(l.setFullYear(l.getFullYear()+Number(o||0)),l.setMonth(l.getMonth()+Number(s||0)),l.setDate(l.getDate()+Number(i||0)),l.setHours(l.getHours()+Number(a||0)),l.setMinutes(l.getMinutes()+Number(S||0)),l.setSeconds(l.getSeconds()+Number(u||0)),u&&countDecimals(String(u))>0){var E=1e3*Number(Number(u)%1).toFixed(6);l.setMilliseconds(l.getMilliseconds()+E)}return(1*l-c)/1e3}function addTwoDurations(e,t,r){return getSecondsAsISODuration(getDurationAsSeconds(e,r)+getDurationAsSeconds(t,r))}function addHHMMSSTimeStrings(e,t,r){return getSecondsAsHHMMSS(getTimeAsSeconds(e,r)+getTimeAsSeconds(t,r))}function flatten(e){function t(e,n){if(Object(e)!==e)r[n]=e;else if(Array.isArray(e))for(var o=0,s=e.length;o<s;o++)t(e[o],n+"["+o+"]"),0===s&&(r[n]=[]);else{var i=!0;for(var a in e)({}).hasOwnProperty.call(e,a)&&(i=!1,t(e[a],n?n+"."+a:a));i&&n&&(r[n]={})}}var r={};return t(e,""),r}function unflatten(e){if(Object(e)!==e||Array.isArray(e))return e;var t=/\.?([^.[\]]+)|\[(\d+)]/g,r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){for(var o=r,s="",i=t.exec(n);i;)o=o[s]||(o[s]=i[2]?[]:{}),s=i[2]||i[1],i=t.exec(n);o[s]=e[n]}return r[""]||r}function countDecimals(e){return Math.floor(e)===e||String(e).indexOf(".")<0?0:e.toString().split(".")[1].length||0}Object.defineProperty(exports,"__esModule",{value:!0}),exports.getSecondsAsHHMMSS=getSecondsAsHHMMSS,exports.getSecondsAsISODuration=getSecondsAsISODuration,exports.getTimeAsSeconds=getTimeAsSeconds,exports.getDurationAsSeconds=getDurationAsSeconds,exports.addTwoDurations=addTwoDurations,exports.addHHMMSSTimeStrings=addHHMMSSTimeStrings,exports.flatten=flatten,exports.unflatten=unflatten,exports.countDecimals=countDecimals,exports.SECONDS_PER_DAY=exports.SECONDS_PER_HOUR=exports.SECONDS_PER_MINUTE=exports.SECONDS_PER_SECOND=void 0;var SECONDS_PER_SECOND=1;exports.SECONDS_PER_SECOND=SECONDS_PER_SECOND;var SECONDS_PER_MINUTE=60;exports.SECONDS_PER_MINUTE=SECONDS_PER_MINUTE;var SECONDS_PER_HOUR=60*SECONDS_PER_MINUTE;exports.SECONDS_PER_HOUR=SECONDS_PER_HOUR;var SECONDS_PER_DAY=24*SECONDS_PER_HOUR;exports.SECONDS_PER_DAY=SECONDS_PER_DAY;var designations=[["D",SECONDS_PER_DAY],["H",SECONDS_PER_HOUR],["M",SECONDS_PER_MINUTE],["S",SECONDS_PER_SECOND]]; "use strict";function _slicedToArray(e,t){return _arrayWithHoles(e)||_iterableToArrayLimit(e,t)||_nonIterableRest()}function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}function _iterableToArrayLimit(e,t){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e)){var r=[],n=!0,o=!1,i=void 0;try{for(var S,s=e[Symbol.iterator]();!(n=(S=s.next()).done)&&(r.push(S.value),!t||r.length!==t);n=!0);}catch(e){o=!0,i=e}finally{try{n||null==s.return||s.return()}finally{if(o)throw i}}return r}}function _arrayWithHoles(e){if(Array.isArray(e))return e}function getSecondsAsHHMMSS(e){if(!e||e<=0)return"00:00:00";var t=Math.floor(e/SECONDS_PER_HOUR),r=new Date(1e3*e),n=r.getUTCMinutes(),o=r.getSeconds(),i=e%1,S="";return countDecimals(i)>0&&(S=countDecimals(i)>2?i.toFixed(2):String(i),S="."+S.split(".")[1]),(t+":"+n+":"+o).replace(/\b\d\b/g,"0$&")+S}function getSecondsAsISODuration(e){if(!e||e<=0)return"PT0S";var t="P",r=e;return designations.forEach(function(e){var n=_slicedToArray(e,2),o=n[0],i=n[1],S=Math.floor(r/i);r%=i,countDecimals(r)>2&&(r=Number(Number(r).toFixed(2))),"S"===o&&r>0&&(S+=r),S&&((t.indexOf("D")>0||"H"===o||"M"===o||"S"===o)&&-1===t.indexOf("T")&&(t+="T"),t+="".concat(S).concat(o))}),t}function getTimeAsSeconds(e,t){if(!e||"string"!=typeof e||!e.match(t))return 0;var r=e.split(":");return 3600*Number(r[0])+60*Number(r[1])+Number(r[2])}function getDurationAsSeconds(e,t){if(!e||!e.match(t))return 0;var r=new RegExp(t).exec(e)||[],n=_slicedToArray(r,8),o=n[1],i=(n[2],n[4]),S=n[5],s=n[6],a=n[7],u=0;return u+=1*Number(a)||0,u+=60*Number(s)||0,u+=3600*Number(S)||0,u+=86400*Number(i)||0,u+=31536e3*Number(o)||0}function addTwoDurations(e,t,r){return getSecondsAsISODuration(getDurationAsSeconds(e,r)+getDurationAsSeconds(t,r))}function addHHMMSSTimeStrings(e,t,r){return getSecondsAsHHMMSS(getTimeAsSeconds(e,r)+getTimeAsSeconds(t,r))}function flatten(e){function t(e,n){if(Object(e)!==e)r[n]=e;else if(Array.isArray(e))for(var o=0,i=e.length;o<i;o++)t(e[o],n+"["+o+"]"),0===i&&(r[n]=[]);else{var S=!0;for(var s in e)({}).hasOwnProperty.call(e,s)&&(S=!1,t(e[s],n?n+"."+s:s));S&&n&&(r[n]={})}}var r={};return t(e,""),r}function unflatten(e){if(Object(e)!==e||Array.isArray(e))return e;var t=/\.?([^.[\]]+)|\[(\d+)]/g,r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){for(var o=r,i="",S=t.exec(n);S;)o=o[i]||(o[i]=S[2]?[]:{}),i=S[2]||S[1],S=t.exec(n);o[i]=e[n]}return r[""]||r}function countDecimals(e){return Math.floor(e)===e||String(e).indexOf(".")<0?0:e.toString().split(".")[1].length||0}Object.defineProperty(exports,"__esModule",{value:!0}),exports.getSecondsAsHHMMSS=getSecondsAsHHMMSS,exports.getSecondsAsISODuration=getSecondsAsISODuration,exports.getTimeAsSeconds=getTimeAsSeconds,exports.getDurationAsSeconds=getDurationAsSeconds,exports.addTwoDurations=addTwoDurations,exports.addHHMMSSTimeStrings=addHHMMSSTimeStrings,exports.flatten=flatten,exports.unflatten=unflatten,exports.countDecimals=countDecimals,exports.SECONDS_PER_DAY=exports.SECONDS_PER_HOUR=exports.SECONDS_PER_MINUTE=exports.SECONDS_PER_SECOND=void 0;var SECONDS_PER_SECOND=1;exports.SECONDS_PER_SECOND=SECONDS_PER_SECOND;var SECONDS_PER_MINUTE=60;exports.SECONDS_PER_MINUTE=SECONDS_PER_MINUTE;var SECONDS_PER_HOUR=60*SECONDS_PER_MINUTE;exports.SECONDS_PER_HOUR=SECONDS_PER_HOUR;var SECONDS_PER_DAY=24*SECONDS_PER_HOUR;exports.SECONDS_PER_DAY=SECONDS_PER_DAY;var designations=[["D",SECONDS_PER_DAY],["H",SECONDS_PER_HOUR],["M",SECONDS_PER_MINUTE],["S",SECONDS_PER_SECOND]];
},{}]},{},[1,2,5,6,7,8,9,10,11,12,13,14,15,3,4,16]) },{}]},{},[1,2,5,6,7,8,9,10,11,12,13,14,15,3,4,16])