Merge branch 'master' into pr/338

This commit is contained in:
Jonathan Putney
2021-09-07 13:58:00 -04:00
12 changed files with 1875 additions and 1629 deletions

150
dist/scorm12.min.js vendored
View File

@@ -427,6 +427,10 @@ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _d
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
function _classPrivateFieldInitSpec(obj, privateMap, value) { _checkPrivateRedeclaration(obj, privateMap); privateMap.set(obj, value); }
function _checkPrivateRedeclaration(obj, privateCollection) { if (privateCollection.has(obj)) { throw new TypeError("Cannot initialize the same private elements twice on an object"); } }
function _classPrivateFieldGet(receiver, privateMap) { var descriptor = _classExtractFieldDescriptor(receiver, privateMap, "get"); return _classApplyDescriptorGet(receiver, descriptor); }
function _classApplyDescriptorGet(receiver, descriptor) { if (descriptor.get) { return descriptor.get.call(receiver); } return descriptor.value; }
@@ -460,17 +464,17 @@ var BaseAPI = /*#__PURE__*/function () {
function BaseAPI(error_codes, settings) {
_classCallCheck(this, BaseAPI);
_timeout.set(this, {
_classPrivateFieldInitSpec(this, _timeout, {
writable: true,
value: void 0
});
_error_codes.set(this, {
_classPrivateFieldInitSpec(this, _error_codes, {
writable: true,
value: void 0
});
_settings.set(this, {
_classPrivateFieldInitSpec(this, _settings, {
writable: true,
value: {
autocommit: false,
@@ -1750,22 +1754,22 @@ var ScheduledCommit = /*#__PURE__*/function () {
function ScheduledCommit(API, when, callback) {
_classCallCheck(this, ScheduledCommit);
_API.set(this, {
_classPrivateFieldInitSpec(this, _API, {
writable: true,
value: void 0
});
_cancelled.set(this, {
_classPrivateFieldInitSpec(this, _cancelled, {
writable: true,
value: false
});
_timeout2.set(this, {
_classPrivateFieldInitSpec(this, _timeout2, {
writable: true,
value: void 0
});
_callback.set(this, {
_classPrivateFieldInitSpec(this, _callback, {
writable: true,
value: void 0
});
@@ -1850,7 +1854,7 @@ function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || func
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); }
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
@@ -2224,7 +2228,7 @@ function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || func
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); }
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
@@ -2238,6 +2242,10 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
function _classPrivateFieldInitSpec(obj, privateMap, value) { _checkPrivateRedeclaration(obj, privateMap); privateMap.set(obj, value); }
function _checkPrivateRedeclaration(obj, privateCollection) { if (privateCollection.has(obj)) { throw new TypeError("Cannot initialize the same private elements twice on an object"); } }
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
function _classPrivateFieldSet(receiver, privateMap, value) { var descriptor = _classExtractFieldDescriptor(receiver, privateMap, "set"); _classApplyDescriptorSet(receiver, descriptor, value); return value; }
@@ -2321,12 +2329,12 @@ var BaseCMI = /*#__PURE__*/function () {
_defineProperty(this, "jsonString", false);
_initialized.set(this, {
_classPrivateFieldInitSpec(this, _initialized, {
writable: true,
value: false
});
_start_time.set(this, {
_classPrivateFieldInitSpec(this, _start_time, {
writable: true,
value: void 0
});
@@ -2438,52 +2446,52 @@ var CMIScore = /*#__PURE__*/function (_BaseCMI) {
_this = _super.call(this);
_children2.set(_assertThisInitialized(_this), {
_classPrivateFieldInitSpec(_assertThisInitialized(_this), _children2, {
writable: true,
value: void 0
});
_score_range.set(_assertThisInitialized(_this), {
_classPrivateFieldInitSpec(_assertThisInitialized(_this), _score_range, {
writable: true,
value: void 0
});
_invalid_error_code.set(_assertThisInitialized(_this), {
_classPrivateFieldInitSpec(_assertThisInitialized(_this), _invalid_error_code, {
writable: true,
value: void 0
});
_invalid_type_code.set(_assertThisInitialized(_this), {
_classPrivateFieldInitSpec(_assertThisInitialized(_this), _invalid_type_code, {
writable: true,
value: void 0
});
_invalid_range_code.set(_assertThisInitialized(_this), {
_classPrivateFieldInitSpec(_assertThisInitialized(_this), _invalid_range_code, {
writable: true,
value: void 0
});
_decimal_regex.set(_assertThisInitialized(_this), {
_classPrivateFieldInitSpec(_assertThisInitialized(_this), _decimal_regex, {
writable: true,
value: void 0
});
_error_class.set(_assertThisInitialized(_this), {
_classPrivateFieldInitSpec(_assertThisInitialized(_this), _error_class, {
writable: true,
value: void 0
});
_raw.set(_assertThisInitialized(_this), {
_classPrivateFieldInitSpec(_assertThisInitialized(_this), _raw, {
writable: true,
value: ''
});
_min.set(_assertThisInitialized(_this), {
_classPrivateFieldInitSpec(_assertThisInitialized(_this), _min, {
writable: true,
value: ''
});
_max.set(_assertThisInitialized(_this), {
_classPrivateFieldInitSpec(_assertThisInitialized(_this), _max, {
writable: true,
value: void 0
});
@@ -2643,17 +2651,17 @@ var CMIArray = /*#__PURE__*/function (_BaseCMI2) {
_this2 = _super2.call(this);
_errorCode.set(_assertThisInitialized(_this2), {
_classPrivateFieldInitSpec(_assertThisInitialized(_this2), _errorCode, {
writable: true,
value: void 0
});
_errorClass.set(_assertThisInitialized(_this2), {
_classPrivateFieldInitSpec(_assertThisInitialized(_this2), _errorClass, {
writable: true,
value: void 0
});
_children3.set(_assertThisInitialized(_this2), {
_classPrivateFieldInitSpec(_assertThisInitialized(_this2), _children3, {
writable: true,
value: void 0
});
@@ -2779,7 +2787,7 @@ function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || func
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); }
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
@@ -2789,6 +2797,10 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
function _classPrivateFieldInitSpec(obj, privateMap, value) { _checkPrivateRedeclaration(obj, privateMap); privateMap.set(obj, value); }
function _checkPrivateRedeclaration(obj, privateCollection) { if (privateCollection.has(obj)) { throw new TypeError("Cannot initialize the same private elements twice on an object"); } }
function _classPrivateFieldGet(receiver, privateMap) { var descriptor = _classExtractFieldDescriptor(receiver, privateMap, "get"); return _classApplyDescriptorGet(receiver, descriptor); }
function _classApplyDescriptorGet(receiver, descriptor) { if (descriptor.get) { return descriptor.get.call(receiver); } return descriptor.value; }
@@ -2882,27 +2894,27 @@ var CMI = /*#__PURE__*/function (_BaseCMI) {
_this = _super.call(this);
_children2.set(_assertThisInitialized(_this), {
_classPrivateFieldInitSpec(_assertThisInitialized(_this), _children2, {
writable: true,
value: ''
});
_version2.set(_assertThisInitialized(_this), {
_classPrivateFieldInitSpec(_assertThisInitialized(_this), _version2, {
writable: true,
value: '3.4'
});
_launch_data.set(_assertThisInitialized(_this), {
_classPrivateFieldInitSpec(_assertThisInitialized(_this), _launch_data, {
writable: true,
value: ''
});
_comments.set(_assertThisInitialized(_this), {
_classPrivateFieldInitSpec(_assertThisInitialized(_this), _comments, {
writable: true,
value: ''
});
_comments_from_lms.set(_assertThisInitialized(_this), {
_classPrivateFieldInitSpec(_assertThisInitialized(_this), _comments_from_lms, {
writable: true,
value: ''
});
@@ -3150,62 +3162,62 @@ var CMICore = /*#__PURE__*/function (_BaseCMI2) {
_this2 = _super2.call(this);
_children3.set(_assertThisInitialized(_this2), {
_classPrivateFieldInitSpec(_assertThisInitialized(_this2), _children3, {
writable: true,
value: scorm12_constants.core_children
});
_student_id.set(_assertThisInitialized(_this2), {
_classPrivateFieldInitSpec(_assertThisInitialized(_this2), _student_id, {
writable: true,
value: ''
});
_student_name.set(_assertThisInitialized(_this2), {
_classPrivateFieldInitSpec(_assertThisInitialized(_this2), _student_name, {
writable: true,
value: ''
});
_lesson_location.set(_assertThisInitialized(_this2), {
_classPrivateFieldInitSpec(_assertThisInitialized(_this2), _lesson_location, {
writable: true,
value: ''
});
_credit.set(_assertThisInitialized(_this2), {
_classPrivateFieldInitSpec(_assertThisInitialized(_this2), _credit, {
writable: true,
value: ''
});
_lesson_status.set(_assertThisInitialized(_this2), {
_classPrivateFieldInitSpec(_assertThisInitialized(_this2), _lesson_status, {
writable: true,
value: 'not attempted'
});
_entry.set(_assertThisInitialized(_this2), {
_classPrivateFieldInitSpec(_assertThisInitialized(_this2), _entry, {
writable: true,
value: ''
});
_total_time.set(_assertThisInitialized(_this2), {
_classPrivateFieldInitSpec(_assertThisInitialized(_this2), _total_time, {
writable: true,
value: ''
});
_lesson_mode.set(_assertThisInitialized(_this2), {
_classPrivateFieldInitSpec(_assertThisInitialized(_this2), _lesson_mode, {
writable: true,
value: 'normal'
});
_exit.set(_assertThisInitialized(_this2), {
_classPrivateFieldInitSpec(_assertThisInitialized(_this2), _exit, {
writable: true,
value: ''
});
_session_time.set(_assertThisInitialized(_this2), {
_classPrivateFieldInitSpec(_assertThisInitialized(_this2), _session_time, {
writable: true,
value: '00:00:00'
});
_suspend_data.set(_assertThisInitialized(_this2), {
_classPrivateFieldInitSpec(_assertThisInitialized(_this2), _suspend_data, {
writable: true,
value: ''
});
@@ -3586,22 +3598,22 @@ var CMIStudentData = /*#__PURE__*/function (_BaseCMI3) {
_this3 = _super4.call(this);
_children4.set(_assertThisInitialized(_this3), {
_classPrivateFieldInitSpec(_assertThisInitialized(_this3), _children4, {
writable: true,
value: void 0
});
_mastery_score.set(_assertThisInitialized(_this3), {
_classPrivateFieldInitSpec(_assertThisInitialized(_this3), _mastery_score, {
writable: true,
value: ''
});
_max_time_allowed.set(_assertThisInitialized(_this3), {
_classPrivateFieldInitSpec(_assertThisInitialized(_this3), _max_time_allowed, {
writable: true,
value: ''
});
_time_limit_action.set(_assertThisInitialized(_this3), {
_classPrivateFieldInitSpec(_assertThisInitialized(_this3), _time_limit_action, {
writable: true,
value: ''
});
@@ -3747,27 +3759,27 @@ var CMIStudentPreference = /*#__PURE__*/function (_BaseCMI4) {
_this4 = _super5.call(this);
_children5.set(_assertThisInitialized(_this4), {
_classPrivateFieldInitSpec(_assertThisInitialized(_this4), _children5, {
writable: true,
value: void 0
});
_audio.set(_assertThisInitialized(_this4), {
_classPrivateFieldInitSpec(_assertThisInitialized(_this4), _audio, {
writable: true,
value: ''
});
_language.set(_assertThisInitialized(_this4), {
_classPrivateFieldInitSpec(_assertThisInitialized(_this4), _language, {
writable: true,
value: ''
});
_speed.set(_assertThisInitialized(_this4), {
_classPrivateFieldInitSpec(_assertThisInitialized(_this4), _speed, {
writable: true,
value: ''
});
_text.set(_assertThisInitialized(_this4), {
_classPrivateFieldInitSpec(_assertThisInitialized(_this4), _text, {
writable: true,
value: ''
});
@@ -3970,37 +3982,37 @@ var CMIInteractionsObject = /*#__PURE__*/function (_BaseCMI5) {
_this5 = _super7.call(this);
_id.set(_assertThisInitialized(_this5), {
_classPrivateFieldInitSpec(_assertThisInitialized(_this5), _id, {
writable: true,
value: ''
});
_time.set(_assertThisInitialized(_this5), {
_classPrivateFieldInitSpec(_assertThisInitialized(_this5), _time, {
writable: true,
value: ''
});
_type.set(_assertThisInitialized(_this5), {
_classPrivateFieldInitSpec(_assertThisInitialized(_this5), _type, {
writable: true,
value: ''
});
_weighting.set(_assertThisInitialized(_this5), {
_classPrivateFieldInitSpec(_assertThisInitialized(_this5), _weighting, {
writable: true,
value: ''
});
_student_response.set(_assertThisInitialized(_this5), {
_classPrivateFieldInitSpec(_assertThisInitialized(_this5), _student_response, {
writable: true,
value: ''
});
_result.set(_assertThisInitialized(_this5), {
_classPrivateFieldInitSpec(_assertThisInitialized(_this5), _result, {
writable: true,
value: ''
});
_latency.set(_assertThisInitialized(_this5), {
_classPrivateFieldInitSpec(_assertThisInitialized(_this5), _latency, {
writable: true,
value: ''
});
@@ -4239,12 +4251,12 @@ var CMIObjectivesObject = /*#__PURE__*/function (_BaseCMI6) {
_this6 = _super8.call(this);
_id2.set(_assertThisInitialized(_this6), {
_classPrivateFieldInitSpec(_assertThisInitialized(_this6), _id2, {
writable: true,
value: ''
});
_status.set(_assertThisInitialized(_this6), {
_classPrivateFieldInitSpec(_assertThisInitialized(_this6), _status, {
writable: true,
value: ''
});
@@ -4352,7 +4364,7 @@ var CMIInteractionsObjectivesObject = /*#__PURE__*/function (_BaseCMI7) {
_this7 = _super9.call(this);
_id3.set(_assertThisInitialized(_this7), {
_classPrivateFieldInitSpec(_assertThisInitialized(_this7), _id3, {
writable: true,
value: ''
});
@@ -4428,7 +4440,7 @@ var CMIInteractionsCorrectResponsesObject = /*#__PURE__*/function (_BaseCMI8) {
_this8 = _super10.call(this);
_pattern.set(_assertThisInitialized(_this8), {
_classPrivateFieldInitSpec(_assertThisInitialized(_this8), _pattern, {
writable: true,
value: ''
});
@@ -4503,7 +4515,7 @@ var NAV = /*#__PURE__*/function (_BaseCMI9) {
_this9 = _super11.call(this);
_event.set(_assertThisInitialized(_this9), {
_classPrivateFieldInitSpec(_assertThisInitialized(_this9), _event, {
writable: true,
value: ''
});
@@ -5007,7 +5019,7 @@ function _inherits(subClass, superClass) { if (typeof superClass !== "function"
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); }
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
@@ -5023,6 +5035,10 @@ function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || func
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
function _classPrivateFieldInitSpec(obj, privateMap, value) { _checkPrivateRedeclaration(obj, privateMap); privateMap.set(obj, value); }
function _checkPrivateRedeclaration(obj, privateCollection) { if (privateCollection.has(obj)) { throw new TypeError("Cannot initialize the same private elements twice on an object"); } }
function _classPrivateFieldGet(receiver, privateMap) { var descriptor = _classExtractFieldDescriptor(receiver, privateMap, "get"); return _classApplyDescriptorGet(receiver, descriptor); }
function _classApplyDescriptorGet(receiver, descriptor) { if (descriptor.get) { return descriptor.get.call(receiver); } return descriptor.value; }
@@ -5064,17 +5080,17 @@ var ValidationError = /*#__PURE__*/function (_Error) {
_this = _super.call(this, errorMessage);
_errorCode.set(_assertThisInitialized(_this), {
_classPrivateFieldInitSpec(_assertThisInitialized(_this), _errorCode, {
writable: true,
value: void 0
});
_errorMessage.set(_assertThisInitialized(_this), {
_classPrivateFieldInitSpec(_assertThisInitialized(_this), _errorMessage, {
writable: true,
value: void 0
});
_detailedMessage.set(_assertThisInitialized(_this), {
_classPrivateFieldInitSpec(_assertThisInitialized(_this), _detailedMessage, {
writable: true,
value: void 0
});