scorm-again 2.4.0 → 2.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (61) hide show
  1. package/README.md +23 -23
  2. package/dist/aicc.js +65 -41
  3. package/dist/aicc.js.map +1 -1
  4. package/dist/aicc.min.js +1 -1
  5. package/dist/aicc.min.js.map +1 -1
  6. package/dist/esm/aicc.js +65 -41
  7. package/dist/esm/aicc.js.map +1 -1
  8. package/dist/esm/aicc.min.js +1 -1
  9. package/dist/esm/aicc.min.js.map +1 -1
  10. package/dist/esm/scorm-again.js +78 -48
  11. package/dist/esm/scorm-again.js.map +1 -1
  12. package/dist/esm/scorm-again.min.js +1 -1
  13. package/dist/esm/scorm-again.min.js.map +1 -1
  14. package/dist/esm/scorm12.js +65 -41
  15. package/dist/esm/scorm12.js.map +1 -1
  16. package/dist/esm/scorm12.min.js +1 -1
  17. package/dist/esm/scorm12.min.js.map +1 -1
  18. package/dist/esm/scorm2004.js +78 -48
  19. package/dist/esm/scorm2004.js.map +1 -1
  20. package/dist/esm/scorm2004.min.js +1 -1
  21. package/dist/esm/scorm2004.min.js.map +1 -1
  22. package/dist/scorm-again.js +78 -48
  23. package/dist/scorm-again.js.map +1 -1
  24. package/dist/scorm-again.min.js +1 -1
  25. package/dist/scorm-again.min.js.map +1 -1
  26. package/dist/scorm12.js +65 -41
  27. package/dist/scorm12.js.map +1 -1
  28. package/dist/scorm12.min.js +1 -1
  29. package/dist/scorm12.min.js.map +1 -1
  30. package/dist/scorm2004.js +78 -48
  31. package/dist/scorm2004.js.map +1 -1
  32. package/dist/scorm2004.min.js +1 -1
  33. package/dist/scorm2004.min.js.map +1 -1
  34. package/package.json +4 -4
  35. package/src/AICC.ts +2 -2
  36. package/src/BaseAPI.ts +28 -66
  37. package/src/Scorm12API.ts +3 -3
  38. package/src/Scorm2004API.ts +11 -7
  39. package/src/cmi/aicc/attempts.ts +7 -7
  40. package/src/cmi/aicc/cmi.ts +4 -4
  41. package/src/cmi/aicc/core.ts +1 -1
  42. package/src/cmi/aicc/evaluation.ts +1 -1
  43. package/src/cmi/aicc/student_data.ts +2 -2
  44. package/src/cmi/aicc/student_preferences.ts +2 -2
  45. package/src/cmi/aicc/tries.ts +7 -7
  46. package/src/cmi/scorm12/cmi.ts +1 -1
  47. package/src/cmi/scorm12/interactions.ts +1 -1
  48. package/src/cmi/scorm2004/adl.ts +2 -2
  49. package/src/cmi/scorm2004/cmi.ts +1 -1
  50. package/src/cmi/scorm2004/interactions.ts +1 -1
  51. package/src/cmi/scorm2004/objectives.ts +1 -1
  52. package/src/cmi/scorm2004/score.ts +1 -1
  53. package/src/constants/api_constants.ts +0 -10
  54. package/src/constants/default_settings.ts +25 -8
  55. package/src/constants/enums.ts +9 -0
  56. package/src/constants/regex.ts +1 -1
  57. package/src/exceptions.ts +1 -5
  58. package/src/types/api_types.ts +26 -3
  59. package/test/Scorm12API.spec.ts +101 -1
  60. package/test/types/api_types.spec.ts +38 -45
  61. package/tsconfig.json +1 -0
@@ -1,2 +1,2 @@
1
- !function(){"use strict";var e={531:function(e,t,i){i.d(t,{AICCImpl:function(){return R}});var r=i(635),n=i(941),o=i(989),s=i(340),a=i(589),c=i(784),l=i(319),u=i(797),h=i(449),_=u.A.scorm12;function m(e,t,i){return(0,h.q)(e,t,_.TYPE_MISMATCH,c.gv,i)}var d=i(417),p=function(e){function t(){var t=e.call(this)||this;return t.comments=new f,t}return(0,r.C6)(t,e),t.prototype.initialize=function(){var t;e.prototype.initialize.call(this),null===(t=this.comments)||void 0===t||t.initialize()},t.prototype.toJSON=function(){this.jsonString=!0;var e={comments:this.comments};return delete this.jsonString,e},t}(l.J),f=function(e){function t(){return e.call(this,{children:s.A.aicc.comments_children,errorCode:u.A.scorm12.INVALID_SET_VALUE,errorClass:c.gv})||this}return(0,r.C6)(t,e),t}(a.B),g=function(e){function t(){var t=e.call(this)||this;return t._content="",t._location="",t._time="",t}return(0,r.C6)(t,e),Object.defineProperty(t.prototype,"content",{get:function(){return this._content},set:function(e){m(e,d.A.aicc.CMIString256)&&(this._content=e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"location",{get:function(){return this._location},set:function(e){m(e,d.A.aicc.CMIString256)&&(this._location=e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"time",{get:function(){return this._time},set:function(e){m(e,d.A.aicc.CMITime)&&(this._time=e)},enumerable:!1,configurable:!0}),t.prototype.toJSON=function(){this.jsonString=!0;var e={content:this.content,location:this.location,time:this.time};return delete this.jsonString,e},t}(l.J),E=function(e){function t(){var t=e.call(this,s.A.aicc.student_preference_children)||this;return t._lesson_type="",t._text_color="",t._text_location="",t._text_size="",t._video="",t.windows=new a.B({errorCode:u.A.scorm12.INVALID_SET_VALUE,errorClass:c.gv,children:""}),t}return(0,r.C6)(t,e),t.prototype.initialize=function(){var t;e.prototype.initialize.call(this),null===(t=this.windows)||void 0===t||t.initialize()},Object.defineProperty(t.prototype,"lesson_type",{get:function(){return this._lesson_type},set:function(e){m(e,d.A.aicc.CMIString256)&&(this._lesson_type=e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"text_color",{get:function(){return this._text_color},set:function(e){m(e,d.A.aicc.CMIString256)&&(this._text_color=e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"text_location",{get:function(){return this._text_location},set:function(e){m(e,d.A.aicc.CMIString256)&&(this._text_location=e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"text_size",{get:function(){return this._text_size},set:function(e){m(e,d.A.aicc.CMIString256)&&(this._text_size=e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"video",{get:function(){return this._video},set:function(e){m(e,d.A.aicc.CMIString256)&&(this._video=e)},enumerable:!1,configurable:!0}),t.prototype.toJSON=function(){this.jsonString=!0;var e={audio:this.audio,language:this.language,lesson_type:this.lesson_type,speed:this.speed,text:this.text,text_color:this.text_color,text_location:this.text_location,text_size:this.text_size,video:this.video,windows:this.windows};return delete this.jsonString,e},t}(i(181).G),b=function(e){function t(){var t=e.call(this)||this;return t.__children=s.A.aicc.student_demographics_children,t._city="",t._class="",t._company="",t._country="",t._experience="",t._familiar_name="",t._instructor_name="",t._title="",t._native_language="",t._state="",t._street_address="",t._telephone="",t._years_experience="",t}return(0,r.C6)(t,e),Object.defineProperty(t.prototype,"_children",{get:function(){return this.__children},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"city",{get:function(){return this._city},set:function(e){if(this.initialized)throw new c.gv(u.A.scorm12.READ_ONLY_ELEMENT);this._city=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"class",{get:function(){return this._class},set:function(e){if(this.initialized)throw new c.gv(u.A.scorm12.READ_ONLY_ELEMENT);this._class=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"company",{get:function(){return this._company},set:function(e){if(this.initialized)throw new c.gv(u.A.scorm12.READ_ONLY_ELEMENT);this._company=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"country",{get:function(){return this._country},set:function(e){if(this.initialized)throw new c.gv(u.A.scorm12.READ_ONLY_ELEMENT);this._country=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"experience",{get:function(){return this._experience},set:function(e){if(this.initialized)throw new c.gv(u.A.scorm12.READ_ONLY_ELEMENT);this._experience=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"familiar_name",{get:function(){return this._familiar_name},set:function(e){if(this.initialized)throw new c.gv(u.A.scorm12.READ_ONLY_ELEMENT);this._familiar_name=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"instructor_name",{get:function(){return this._instructor_name},set:function(e){if(this.initialized)throw new c.gv(u.A.scorm12.READ_ONLY_ELEMENT);this._instructor_name=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"title",{get:function(){return this._title},set:function(e){if(this.initialized)throw new c.gv(u.A.scorm12.READ_ONLY_ELEMENT);this._title=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"native_language",{get:function(){return this._native_language},set:function(e){if(this.initialized)throw new c.gv(u.A.scorm12.READ_ONLY_ELEMENT);this._native_language=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"state",{get:function(){return this._state},set:function(e){if(this.initialized)throw new c.gv(u.A.scorm12.READ_ONLY_ELEMENT);this._state=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"street_address",{get:function(){return this._street_address},set:function(e){if(this.initialized)throw new c.gv(u.A.scorm12.READ_ONLY_ELEMENT);this._street_address=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"telephone",{get:function(){return this._telephone},set:function(e){if(this.initialized)throw new c.gv(u.A.scorm12.READ_ONLY_ELEMENT);this._telephone=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"years_experience",{get:function(){return this._years_experience},set:function(e){if(this.initialized)throw new c.gv(u.A.scorm12.READ_ONLY_ELEMENT);this._years_experience=e},enumerable:!1,configurable:!0}),t.prototype.toJSON=function(){this.jsonString=!0;var e={city:this.city,class:this.class,company:this.company,country:this.country,experience:this.experience,familiar_name:this.familiar_name,instructor_name:this.instructor_name,title:this.title,native_language:this.native_language,state:this.state,street_address:this.street_address,telephone:this.telephone,years_experience:this.years_experience};return delete this.jsonString,e},t}(l.J),y=i(434),A=function(e){function t(){return e.call(this,{children:s.A.aicc.tries_children})||this}return(0,r.C6)(t,e),t}(a.B),M=function(e){function t(){var t=e.call(this)||this;return t._status="",t._time="",t.score=new y._({score_children:s.A.aicc.score_children,score_range:d.A.aicc.score_range,invalidErrorCode:u.A.scorm12.INVALID_SET_VALUE,invalidTypeCode:u.A.scorm12.TYPE_MISMATCH,invalidRangeCode:u.A.scorm12.VALUE_OUT_OF_RANGE,errorClass:c.gv}),t}return(0,r.C6)(t,e),t.prototype.initialize=function(){var t;e.prototype.initialize.call(this),null===(t=this.score)||void 0===t||t.initialize()},Object.defineProperty(t.prototype,"status",{get:function(){return this._status},set:function(e){m(e,d.A.aicc.CMIStatus2)&&(this._status=e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"time",{get:function(){return this._time},set:function(e){m(e,d.A.aicc.CMITime)&&(this._time=e)},enumerable:!1,configurable:!0}),t.prototype.toJSON=function(){this.jsonString=!0;var e={status:this.status,time:this.time,score:this.score};return delete this.jsonString,e},t}(l.J),C=i(532),v=function(e){function t(){return e.call(this,{children:s.A.aicc.attempt_records_children})||this}return(0,r.C6)(t,e),t}(a.B),I=function(e){function t(){var t=e.call(this)||this;return t._lesson_status="",t.score=new y._({score_children:s.A.aicc.score_children,score_range:d.A.aicc.score_range,invalidErrorCode:u.A.scorm12.INVALID_SET_VALUE,invalidTypeCode:u.A.scorm12.TYPE_MISMATCH,invalidRangeCode:u.A.scorm12.VALUE_OUT_OF_RANGE,errorClass:c.gv}),t}return(0,r.C6)(t,e),t.prototype.initialize=function(){var t;e.prototype.initialize.call(this),null===(t=this.score)||void 0===t||t.initialize()},Object.defineProperty(t.prototype,"lesson_status",{get:function(){return this._lesson_status},set:function(e){m(e,d.A.aicc.CMIStatus2)&&(this._lesson_status=e)},enumerable:!1,configurable:!0}),t.prototype.toJSON=function(){this.jsonString=!0;var e={lesson_status:this.lesson_status,score:this.score};return delete this.jsonString,e},t}(l.J),S=function(e){function t(){var t=e.call(this,s.A.aicc.student_data_children)||this;return t._tries_during_lesson="",t.tries=new A,t.attempt_records=new v,t}return(0,r.C6)(t,e),t.prototype.initialize=function(){var t,i;e.prototype.initialize.call(this),null===(t=this.tries)||void 0===t||t.initialize(),null===(i=this.attempt_records)||void 0===i||i.initialize()},Object.defineProperty(t.prototype,"tries_during_lesson",{get:function(){return this._tries_during_lesson},set:function(e){if(this.initialized)throw new c.gv(u.A.scorm12.READ_ONLY_ELEMENT);this._tries_during_lesson=e},enumerable:!1,configurable:!0}),t.prototype.toJSON=function(){this.jsonString=!0;var e={mastery_score:this.mastery_score,max_time_allowed:this.max_time_allowed,time_limit_action:this.time_limit_action,tries:this.tries,attempt_records:this.attempt_records};return delete this.jsonString,e},t}(C.X),w=function(e){function t(){return e.call(this,{children:s.A.aicc.paths_children})||this}return(0,r.C6)(t,e),t}(a.B),O=function(e){function t(){var t=e.call(this)||this;return t._location_id="",t._date="",t._time="",t._status="",t._why_left="",t._time_in_element="",t}return(0,r.C6)(t,e),Object.defineProperty(t.prototype,"location_id",{get:function(){return this._location_id},set:function(e){m(e,d.A.aicc.CMIString256)&&(this._location_id=e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"date",{get:function(){return this._date},set:function(e){m(e,d.A.aicc.CMIString256)&&(this._date=e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"time",{get:function(){return this._time},set:function(e){m(e,d.A.aicc.CMITime)&&(this._time=e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"status",{get:function(){return this._status},set:function(e){m(e,d.A.aicc.CMIStatus2)&&(this._status=e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"why_left",{get:function(){return this._why_left},set:function(e){m(e,d.A.aicc.CMIString256)&&(this._why_left=e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"time_in_element",{get:function(){return this._time_in_element},set:function(e){m(e,d.A.aicc.CMITime)&&(this._time_in_element=e)},enumerable:!1,configurable:!0}),t.prototype.toJSON=function(){this.jsonString=!0;var e={location_id:this.location_id,date:this.date,time:this.time,status:this.status,why_left:this.why_left,time_in_element:this.time_in_element};return delete this.jsonString,e},t}(l.J),T=function(e){function t(t){void 0===t&&(t=!1);var i=e.call(this,s.A.aicc.cmi_children)||this;return t&&i.initialize(),i.student_preference=new E,i.student_data=new S,i.student_demographics=new b,i.evaluation=new p,i.paths=new w,i}return(0,r.C6)(t,e),t.prototype.initialize=function(){var t,i,r,n,o;e.prototype.initialize.call(this),null===(t=this.student_preference)||void 0===t||t.initialize(),null===(i=this.student_data)||void 0===i||i.initialize(),null===(r=this.student_demographics)||void 0===r||r.initialize(),null===(n=this.evaluation)||void 0===n||n.initialize(),null===(o=this.paths)||void 0===o||o.initialize()},t.prototype.toJSON=function(){this.jsonString=!0;var e={suspend_data:this.suspend_data,launch_data:this.launch_data,comments:this.comments,comments_from_lms:this.comments_from_lms,core:this.core,objectives:this.objectives,student_data:this.student_data,student_preference:this.student_preference,student_demographics:this.student_demographics,interactions:this.interactions,evaluation:this.evaluation,paths:this.paths};return delete this.jsonString,e},t}(o.Y),L=i(331),N=i(864),R=function(e){function t(t){var i=e.call(this,t)||this;return i.cmi=new T,i.nav=new L.A,i}return(0,r.C6)(t,e),t.prototype.getChildElement=function(t,i,r){var n=e.prototype.getChildElement.call(this,t,i,r);return n||((0,N.J6)(t,"cmi\\.evaluation\\.comments\\.\\d+")?n=new g:(0,N.J6)(t,"cmi\\.student_data\\.tries\\.\\d+")?n=new M:(0,N.J6)(t,"cmi\\.student_data\\.attempt_records\\.\\d+")?n=new I:(0,N.J6)(t,"cmi\\.paths\\.\\d+")&&(n=new O)),n},t.prototype.replaceWithAnotherScormAPI=function(e){this.cmi=e.cmi,this.nav=e.nav},t}(n.Scorm12Impl)},429:function(e,t,i){i.d(t,{A:function(){return _}});var r=i(635),n=i(589),o=i(784),s=i(797),a=i(340),c=i(864),l={autocommit:!1,autocommitSeconds:10,asyncCommit:!1,sendFullCommit:!0,lmsCommitUrl:!1,dataCommitFormat:"json",commitRequestDataType:"application/json;charset=UTF-8",autoProgress:!1,logLevel:a.A.global.LOG_LEVEL_ERROR,selfReportSessionTime:!1,alwaysSendTotalTime:!1,renderCommonCommitFields:!1,strict_errors:!0,xhrHeaders:{},xhrWithCredentials:!1,fetchMode:"cors",responseHandler:function(e){return(0,r.sH)(this,void 0,void 0,(function(){var t,i,n;return(0,r.YH)(this,(function(r){switch(r.label){case 0:return void 0===e?[3,2]:(n=(i=JSON).parse,[4,e.text()]);case 1:return null!==(t=n.apply(i,[r.sent()]))&&{}.hasOwnProperty.call(t,"result")?[2,{result:t.result,errorCode:t.errorCode?t.errorCode:t.result===a.A.global.SCORM_TRUE?0:101}]:200===e.status?[2,{result:a.A.global.SCORM_TRUE,errorCode:0}]:[2,{result:a.A.global.SCORM_FALSE,errorCode:101}];case 2:return[2,{result:a.A.global.SCORM_FALSE,errorCode:101}]}}))}))},requestHandler:function(e){return e},onLogMessage:function(e,t){switch(e){case a.A.global.LOG_LEVEL_ERROR:console.error(t);break;case a.A.global.LOG_LEVEL_WARNING:console.warn(t);break;case a.A.global.LOG_LEVEL_INFO:console.info(t);break;case a.A.global.LOG_LEVEL_DEBUG:console.debug?console.debug(t):console.log(t)}},scoItemIds:[],scoItemIdValidator:!1},u=function(){function e(e,t,i){this._cancelled=!1,this._API=e,this._timeout=setTimeout(this.wrapper.bind(this),t),this._callback=i}return e.prototype.cancel=function(){this._cancelled=!0,this._timeout&&clearTimeout(this._timeout)},e.prototype.wrapper=function(){var e=this;this._cancelled||(0,r.sH)(e,void 0,void 0,(function(){return(0,r.YH)(this,(function(e){switch(e.label){case 0:return[4,this._API.commit(this._callback)];case 1:return[2,e.sent()]}}))}))},e}(),h=function(){function e(t,i){var r=this.constructor;if(this._settings=l,r===e)throw new TypeError("Cannot construct BaseAPI instances directly");this.currentState=a.A.global.STATE_NOT_INITIALIZED,this.lastErrorCode="0",this.listenerArray=[],this._error_codes=t,i&&(this.settings=i),this.apiLogLevel=this.settings.logLevel,this.selfReportSessionTime=this.settings.selfReportSessionTime}return e.prototype.commonReset=function(e){this.settings=(0,r.Cl)((0,r.Cl)({},this.settings),e),this.currentState=a.A.global.STATE_NOT_INITIALIZED,this.lastErrorCode="0",this.listenerArray=[]},e.prototype.initialize=function(e,t,i){var r=a.A.global.SCORM_FALSE;return this.isInitialized()?this.throwSCORMError(this._error_codes.INITIALIZED,t):this.isTerminated()?this.throwSCORMError(this._error_codes.TERMINATED,i):(this.selfReportSessionTime&&this.cmi.setStartTime(),this.currentState=a.A.global.STATE_INITIALIZED,this.lastErrorCode="0",r=a.A.global.SCORM_TRUE,this.processListeners(e)),this.apiLog(e,"returned: "+r,a.A.global.LOG_LEVEL_INFO),this.clearSCORMError(r),r},e.prototype.apiLog=function(e,t,i,r){t=(0,c.hw)(e,t,r),i>=this.apiLogLevel&&this.settings.onLogMessage(i,t)},Object.defineProperty(e.prototype,"error_codes",{get:function(){return this._error_codes},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"settings",{get:function(){return this._settings},set:function(e){this._settings=(0,r.Cl)((0,r.Cl)({},this._settings),e)},enumerable:!1,configurable:!0}),e.prototype.terminate=function(e,t){return(0,r.sH)(this,void 0,void 0,(function(){var i,n;return(0,r.YH)(this,(function(r){switch(r.label){case 0:return i=a.A.global.SCORM_FALSE,this.checkState(t,this._error_codes.TERMINATION_BEFORE_INIT,this._error_codes.MULTIPLE_TERMINATION)?(this.currentState=a.A.global.STATE_TERMINATED,[4,this.storeData(!0)]):[3,2];case 1:void 0!==(n=r.sent()).errorCode&&n.errorCode>0&&this.throwSCORMError(n.errorCode),i=void 0!==n&&n.result?n.result:a.A.global.SCORM_FALSE,t&&(this.lastErrorCode="0"),i=a.A.global.SCORM_TRUE,this.processListeners(e),r.label=2;case 2:return this.apiLog(e,"returned: "+i,a.A.global.LOG_LEVEL_INFO),this.clearSCORMError(i),[2,i]}}))}))},e.prototype.getValue=function(e,t,i){var r="";if(this.checkState(t,this._error_codes.RETRIEVE_BEFORE_INIT,this._error_codes.RETRIEVE_AFTER_TERM)){t&&(this.lastErrorCode="0");try{r=this.getCMIValue(i)}catch(e){r=this.handleValueAccessException(e,r)}this.processListeners(e,i)}return this.apiLog(e,": returned: "+r,a.A.global.LOG_LEVEL_INFO,i),void 0===r?"":(this.clearSCORMError(r),r)},e.prototype.setValue=function(e,t,i,r,n){void 0!==n&&(n=String(n));var o=a.A.global.SCORM_FALSE;if(this.checkState(i,this._error_codes.STORE_BEFORE_INIT,this._error_codes.STORE_AFTER_TERM)){i&&(this.lastErrorCode="0");try{o=this.setCMIValue(r,n)}catch(e){this.handleValueAccessException(e,o)}this.processListeners(e,r,n)}return void 0===o&&(o=a.A.global.SCORM_FALSE),"0"===String(this.lastErrorCode)&&this.settings.autocommit&&this.scheduleCommit(1e3*this.settings.autocommitSeconds,t),this.apiLog(e,": "+n+": result: "+o,a.A.global.LOG_LEVEL_INFO,r),this.clearSCORMError(o),o},e.prototype.commit=function(e){return(0,r.sH)(this,arguments,void 0,(function(e,t){var i,n;return void 0===t&&(t=!1),(0,r.YH)(this,(function(r){switch(r.label){case 0:return console.log("commit"),this.clearScheduledCommit(),i=a.A.global.SCORM_FALSE,this.checkState(t,this._error_codes.COMMIT_BEFORE_INIT,this._error_codes.COMMIT_AFTER_TERM)?[4,this.storeData(!1)]:[3,2];case 1:(n=r.sent()).errorCode&&n.errorCode>0&&this.throwSCORMError(n.errorCode),i=void 0!==n&&n.result?n.result:a.A.global.SCORM_FALSE,this.apiLog(e," Result: "+i,a.A.global.LOG_LEVEL_DEBUG,"HttpRequest"),t&&(this.lastErrorCode="0"),this.processListeners(e),r.label=2;case 2:return this.apiLog(e,"returned: "+i,a.A.global.LOG_LEVEL_INFO),this.clearSCORMError(i),[2,i]}}))}))},e.prototype.getLastError=function(e){var t=String(this.lastErrorCode);return this.processListeners(e),this.apiLog(e,"returned: "+t,a.A.global.LOG_LEVEL_INFO),t},e.prototype.getErrorString=function(e,t){var i="";return null!==t&&""!==t&&(i=this.getLmsErrorMessageDetails(t),this.processListeners(e)),this.apiLog(e,"returned: "+i,a.A.global.LOG_LEVEL_INFO),i},e.prototype.getDiagnostic=function(e,t){var i="";return null!==t&&""!==t&&(i=this.getLmsErrorMessageDetails(t,!0),this.processListeners(e)),this.apiLog(e,"returned: "+i,a.A.global.LOG_LEVEL_INFO),i},e.prototype.checkState=function(e,t,i){return this.isNotInitialized()?(this.throwSCORMError(t),!1):!e||!this.isTerminated()||(this.throwSCORMError(i),!1)},e.prototype.getLmsErrorMessageDetails=function(e,t){throw void 0===t&&(t=!1),new Error("The getLmsErrorMessageDetails method has not been implemented")},e.prototype.getCMIValue=function(e){throw new Error("The getCMIValue method has not been implemented")},e.prototype.setCMIValue=function(e,t){throw new Error("The setCMIValue method has not been implemented")},e.prototype._commonSetCMIValue=function(e,t,i,o){if(!i||""===i)return a.A.global.SCORM_FALSE;for(var s=i.split("."),l=this,u=a.A.global.SCORM_FALSE,h=!1,_="The data model element passed to ".concat(e," (").concat(i,") is not a valid SCORM data model element."),m=t?this._error_codes.UNDEFINED_DATA_MODEL:this._error_codes.GENERAL,d=0;d<s.length;d++){var p=s[d];if(d===s.length-1)t&&"{target="===p.substring(0,8)?this.isInitialized()?this.throwSCORMError(this._error_codes.READ_ONLY_ELEMENT):l=(0,r.Cl)((0,r.Cl)({},l),{attribute:o}):this._checkObjectHasProperty(l,p)?((0,c.J6)(i,"\\.correct_responses\\.\\d+")&&this.isInitialized()&&this.validateCorrectResponse(i,o),t&&"0"!==this.lastErrorCode||(l[p]=o,u=a.A.global.SCORM_TRUE)):this.throwSCORMError(m,_);else{if(!(l=l[p])){this.throwSCORMError(m,_);break}if(l instanceof n.B){var f=parseInt(s[d+1],10);if(!isNaN(f)){var g=l.childArray[f];if(g)l=g,h=!0;else{var E=this.getChildElement(i,o,h);h=!0,E?(l.initialized&&E.initialize(),l.childArray.push(E),l=E):this.throwSCORMError(m,_)}d++}}}}return u===a.A.global.SCORM_FALSE&&this.apiLog(e,"There was an error setting the value for: ".concat(i,", value of: ").concat(o),a.A.global.LOG_LEVEL_WARNING),u},e.prototype._commonGetCMIValue=function(e,t,i){if(!i||""===i)return"";for(var r=i.split("."),o=this,a=null,c="The data model element passed to ".concat(e," (").concat(i,") has not been initialized."),l="The data model element passed to ".concat(e," (").concat(i,") is not a valid SCORM data model element."),u=t?this._error_codes.UNDEFINED_DATA_MODEL:this._error_codes.GENERAL,h=0;h<r.length;h++){if(a=r[h],t){if("{target="===String(a).substring(0,8)&&"function"==typeof o._isTargetValid){var _=String(a).substring(8,String(a).length-9);return o._isTargetValid(_)}if(!this._checkObjectHasProperty(o,a))return void this.throwSCORMError(u,l)}else if(h===r.length-1&&!this._checkObjectHasProperty(o,a))return void this.throwSCORMError(u,l);if(void 0===(o=o[a])){this.throwSCORMError(u,l);break}if(o instanceof n.B){var m=parseInt(r[h+1],10);if(!isNaN(m)){var d=o.childArray[m];if(!d){this.throwSCORMError(this._error_codes.VALUE_NOT_INITIALIZED,c);break}o=d,h++}}}if(null!=o)return o;t||("_children"===a?this.throwSCORMError(s.A.scorm12.CHILDREN_ERROR):"_count"===a&&this.throwSCORMError(s.A.scorm12.COUNT_ERROR))},e.prototype.isInitialized=function(){return this.currentState===a.A.global.STATE_INITIALIZED},e.prototype.isNotInitialized=function(){return this.currentState===a.A.global.STATE_NOT_INITIALIZED},e.prototype.isTerminated=function(){return this.currentState===a.A.global.STATE_TERMINATED},e.prototype.on=function(e,t){if(t)for(var i=e.split(" "),r=0;r<i.length;r++){var n=i[r].split(".");if(0===n.length)return;var o=n[0],s=null;n.length>1&&(s=e.replace(o+".","")),this.listenerArray.push({functionName:o,CMIElement:s,callback:t}),this.apiLog("on","Added event listener: ".concat(this.listenerArray.length),a.A.global.LOG_LEVEL_INFO,o)}},e.prototype.off=function(e,t){if(t)for(var i=e.split(" "),r=function(r){var o=i[r].split(".");if(0===o.length)return{value:void 0};var s=o[0],c=null;o.length>1&&(c=e.replace(s+".",""));var l=n.listenerArray.findIndex((function(e){return e.functionName===s&&e.CMIElement===c&&e.callback===t}));-1!==l&&(n.listenerArray.splice(l,1),n.apiLog("off","Removed event listener: ".concat(n.listenerArray.length),a.A.global.LOG_LEVEL_INFO,s))},n=this,o=0;o<i.length;o++){var s=r(o);if("object"==typeof s)return s.value}},e.prototype.clear=function(e){for(var t=e.split(" "),i=function(i){var n=t[i].split(".");if(0===n.length)return{value:void 0};var o=n[0],s=null;n.length>1&&(s=e.replace(o+".","")),r.listenerArray=r.listenerArray.filter((function(e){return e.functionName!==o&&e.CMIElement!==s}))},r=this,n=0;n<t.length;n++){var o=i(n);if("object"==typeof o)return o.value}},e.prototype.processListeners=function(e,t,i){this.apiLog(e,i,a.A.global.LOG_LEVEL_INFO,t);for(var r=0;r<this.listenerArray.length;r++){var n=this.listenerArray[r],o=n.functionName===e,s=!!n.CMIElement,c=!1;c=t&&n.CMIElement&&"*"===n.CMIElement.substring(n.CMIElement.length-1)?0===t.indexOf(n.CMIElement.substring(0,n.CMIElement.length-1)):n.CMIElement===t,!o||s&&!c||(this.apiLog("processListeners","Processing listener: ".concat(n.functionName),a.A.global.LOG_LEVEL_INFO,t),n.callback(t,i))}},e.prototype.throwSCORMError=function(e,t){t||(t=this.getLmsErrorMessageDetails(e)),this.apiLog("throwSCORMError",e+": "+t,a.A.global.LOG_LEVEL_ERROR),this.lastErrorCode=String(e)},e.prototype.clearSCORMError=function(e){void 0!==e&&e!==a.A.global.SCORM_FALSE&&(this.lastErrorCode="0")},e.prototype.loadFromFlattenedJSON=function(e,t){var i=this;if(t||(t=""),this.isNotInitialized()){var r,n=/^(cmi\.interactions\.)(\d+)\.(.*)$/,o=/^(cmi\.objectives\.)(\d+)\.(.*)$/,s=Object.keys(e).map((function(t){return[String(t),e[t]]}));s.sort((function(e,t){var i,r=e[0],s=(e[1],t[0]);t[1];return null!==(i=a(r,s,n))||null!==(i=a(r,s,o))?i:r<s?-1:r>s?1:0})),s.forEach((function(e){(r={})[e[0]]=e[1],i.loadFromJSON((0,c.sB)(r),t)}))}else console.error("loadFromFlattenedJSON can only be called before the call to lmsInitialize.");function a(e,t,i){var r,n=e.match(i);if(null!==n&&null!==(r=t.match(i))){var o=Number(n[2]),s=Number(r[2]);return o===s?"id"===n[3]?-1:"type"===n[3]?"id"===r[3]?1:-1:1:o-s}return null}},e.prototype.loadFromJSON=function(e,t){if(this.isNotInitialized()){for(var i in t=void 0!==t?t:"cmi",this.startingData=e,e)if({}.hasOwnProperty.call(e,i)&&e[i]){var r=(t?t+".":"")+i,n=e[i];if(n.childArray)for(var o=0;o<n.childArray.length;o++)this.loadFromJSON(n.childArray[o],r+"."+o);else n.constructor===Object?this.loadFromJSON(n,r):this.setCMIValue(r,n)}}else console.error("loadFromJSON can only be called before the call to lmsInitialize.")},e.prototype.renderCMIToJSONString=function(){var e=this.cmi;return this.settings.sendFullCommit?JSON.stringify({cmi:e}):JSON.stringify({cmi:e},(function(e,t){return void 0===t?null:t}),2)},e.prototype.renderCMIToJSONObject=function(){return JSON.parse(this.renderCMIToJSONString())},e.prototype.processHttpRequest=function(e,t){return(0,r.sH)(this,arguments,void 0,(function(e,t,i){var n,o,s,c=this;return void 0===i&&(i=!1),(0,r.YH)(this,(function(l){switch(l.label){case 0:return n=this,o={result:a.A.global.SCORM_FALSE,errorCode:this.error_codes.GENERAL},i?(this.performFetch(e,t).then((function(e){return(0,r.sH)(c,void 0,void 0,(function(){return(0,r.YH)(this,(function(t){switch(t.label){case 0:return[4,this.transformResponse(e)];case 1:return t.sent(),[2]}}))}))})),[2,{result:a.A.global.SCORM_TRUE,errorCode:0}]):(s=function(e,t,i){return(0,r.sH)(c,void 0,void 0,(function(){var s,c;return(0,r.YH)(this,(function(r){switch(r.label){case 0:return r.trys.push([0,2,,3]),t=i.requestHandler(t),[4,this.performFetch(e,t)];case 1:return s=r.sent(),[2,this.transformResponse(s)];case 2:return c=r.sent(),this.apiLog("processHttpRequest",c,a.A.global.LOG_LEVEL_ERROR),n.processListeners("CommitError"),[2,o];case 3:return[2]}}))}))},[4,s(e,t,this.settings)]);case 1:return[2,l.sent()]}}))}))},e.prototype.scheduleCommit=function(e,t){this._timeout||(this._timeout=new u(this,e,t),this.apiLog("scheduleCommit","scheduled",a.A.global.LOG_LEVEL_DEBUG,""))},e.prototype.clearScheduledCommit=function(){this._timeout&&(this._timeout.cancel(),this._timeout=void 0,this.apiLog("clearScheduledCommit","cleared",a.A.global.LOG_LEVEL_DEBUG,""))},e.prototype._checkObjectHasProperty=function(e,t){return Object.hasOwnProperty.call(e,t)||null!=Object.getOwnPropertyDescriptor(Object.getPrototypeOf(e),t)||t in e},e.prototype.handleValueAccessException=function(e,t){return e instanceof o.yI?(this.lastErrorCode=String(e.errorCode),t=a.A.global.SCORM_FALSE):(e instanceof Error&&e.message?console.error(e.message):console.error(e),this.throwSCORMError(this._error_codes.GENERAL)),t},e.prototype.getCommitObject=function(e){var t=e||this.settings.alwaysSendTotalTime,i=this.settings.renderCommonCommitFields?this.renderCommitObject(t):this.renderCommitCMI(t);return this.apiLogLevel===a.A.global.LOG_LEVEL_DEBUG&&(console.debug("Commit (terminated: "+(e?"yes":"no")+"): "),console.debug(i)),i},e.prototype.performFetch=function(e,t){return(0,r.sH)(this,void 0,void 0,(function(){return(0,r.YH)(this,(function(i){return[2,fetch(e,{method:"POST",mode:this.settings.fetchMode,body:t instanceof Array?t.join("&"):JSON.stringify(t),headers:(0,r.Cl)((0,r.Cl)({},this.settings.xhrHeaders),{"Content-Type":this.settings.commitRequestDataType}),credentials:this.settings.xhrWithCredentials?"include":void 0,keepalive:!0})]}))}))},e.prototype.transformResponse=function(e){return(0,r.sH)(this,void 0,void 0,(function(){var t,i;return(0,r.YH)(this,(function(r){switch(r.label){case 0:return"function"!=typeof this.settings.responseHandler?[3,2]:[4,this.settings.responseHandler(e)];case 1:return i=r.sent(),[3,4];case 2:return[4,e.json()];case 3:i=r.sent(),r.label=4;case 4:return t=i,e.status>=200&&e.status<=299&&(!0===t.result||t.result===a.A.global.SCORM_TRUE)?this.processListeners("CommitSuccess"):this.processListeners("CommitError"),[2,t]}}))}))},e}(),_=h},941:function(e,t,i){i.d(t,{Scorm12Impl:function(){return m}});var r=i(635),n=i(989),o=i(864),s=i(340),a=i(797),c=i(176),l=i(833),u=i(331),h=i(417),_=i(56),m=function(e){function t(t){var i=this;return t&&void 0===t.mastery_override&&(t.mastery_override=!1),(i=e.call(this,a.A.scorm12,t)||this).statusSetByModule=!1,i.cmi=new n.Y,i.nav=new u.A,i.LMSInitialize=i.lmsInitialize,i.LMSFinish=i.lmsFinish,i.LMSGetValue=i.lmsGetValue,i.LMSSetValue=i.lmsSetValue,i.LMSCommit=i.lmsCommit,i.LMSGetLastError=i.lmsGetLastError,i.LMSGetErrorString=i.lmsGetErrorString,i.LMSGetDiagnostic=i.lmsGetDiagnostic,i}return(0,r.C6)(t,e),t.prototype.reset=function(e){this.commonReset(e),this.cmi=new n.Y,this.nav=new u.A},t.prototype.lmsInitialize=function(){return this.cmi.initialize(),this.cmi.core.lesson_status?this.statusSetByModule=!0:this.cmi.core.lesson_status="not attempted",this.initialize("LMSInitialize","LMS was already initialized!","LMS is already finished!")},t.prototype.lmsFinish=function(){var e=this;return(0,r.sH)(e,void 0,void 0,(function(){return(0,r.YH)(this,(function(e){switch(e.label){case 0:return[4,this.internalFinish()];case 1:return e.sent(),[2]}}))})),s.A.global.SCORM_TRUE},t.prototype.internalFinish=function(){return(0,r.sH)(this,void 0,void 0,(function(){var e;return(0,r.YH)(this,(function(t){switch(t.label){case 0:return[4,this.terminate("LMSFinish",!0)];case 1:return(e=t.sent())===s.A.global.SCORM_TRUE&&(""!==this.nav.event?"continue"===this.nav.event?this.processListeners("SequenceNext"):this.processListeners("SequencePrevious"):this.settings.autoProgress&&this.processListeners("SequenceNext")),[2,e]}}))}))},t.prototype.lmsGetValue=function(e){return this.getValue("LMSGetValue",!1,e)},t.prototype.lmsSetValue=function(e,t){return"cmi.core.lesson_status"===e&&(this.statusSetByModule=!0),this.setValue("LMSSetValue","LMSCommit",!1,e,t)},t.prototype.lmsCommit=function(){var e=this;return this.settings.asyncCommit?this.scheduleCommit(500,"LMSCommit"):(0,r.sH)(e,void 0,void 0,(function(){return(0,r.YH)(this,(function(e){switch(e.label){case 0:return[4,this.commit("LMSCommit",!1)];case 1:return e.sent(),[2]}}))})),s.A.global.SCORM_TRUE},t.prototype.lmsGetLastError=function(){return this.getLastError("LMSGetLastError")},t.prototype.lmsGetErrorString=function(e){return this.getErrorString("LMSGetErrorString",e)},t.prototype.lmsGetDiagnostic=function(e){return this.getDiagnostic("LMSGetDiagnostic",e)},t.prototype.setCMIValue=function(e,t){return this._commonSetCMIValue("LMSSetValue",!1,e,t)},t.prototype.getCMIValue=function(e){return this._commonGetCMIValue("getCMIValue",!1,e)},t.prototype.getChildElement=function(e,t,i){return(0,o.J6)(e,"cmi\\.objectives\\.\\d+")?new c.N:i&&(0,o.J6)(e,"cmi\\.interactions\\.\\d+\\.correct_responses\\.\\d+")?new l.cb:i&&(0,o.J6)(e,"cmi\\.interactions\\.\\d+\\.objectives\\.\\d+")?new l.Oh:!i&&(0,o.J6)(e,"cmi\\.interactions\\.\\d+")?new l.WP:null},t.prototype.validateCorrectResponse=function(e,t){},t.prototype.getLmsErrorMessageDetails=function(e,t){var i="No Error",r="No Error";return e=String(e),s.A.scorm12.error_descriptions[e]&&(i=s.A.scorm12.error_descriptions[e].basicMessage,r=s.A.scorm12.error_descriptions[e].detailMessage),t?r:i},t.prototype.replaceWithAnotherScormAPI=function(e){this.cmi=e.cmi},t.prototype.renderCommitCMI=function(e){var t=this.renderCMIToJSONObject();e&&(t.cmi.core.total_time=this.cmi.getCurrentTotalTime());var i=[],r=o.Bq(t);switch(this.settings.dataCommitFormat){case"flattened":return o.Bq(t);case"params":for(var n in r)({}).hasOwnProperty.call(r,n)&&i.push("".concat(n,"=").concat(r[n]));return i;default:return t}},t.prototype.renderCommitObject=function(e){var t=this.renderCommitCMI(e),i=this.cmi.getCurrentTotalTime(),r=o.f4(i,h.A.scorm12.CMITimespan),n=this.cmi.core.lesson_status,s=_.lC.unknown,a=_.YE.unknown;n&&(s="completed"===n||"passed"===n?_.lC.completed:_.lC.incomplete,"passed"===n?a=_.YE.passed:"failed"===n&&(a=_.YE.failed));var c=this.cmi.core.score,l=null;c&&(l={},Number.isNaN(Number.parseFloat(c.raw))||(l.raw=Number.parseFloat(c.raw)),Number.isNaN(Number.parseFloat(c.min))||(l.min=Number.parseFloat(c.min)),Number.isNaN(Number.parseFloat(c.max))||(l.max=Number.parseFloat(c.max)));var u={successStatus:a,completionStatus:s,runtimeData:t,totalTimeSeconds:r};return l&&(u.score=l),u},t.prototype.storeData=function(e){return(0,r.sH)(this,void 0,void 0,(function(){var t,i,n,o,a;return(0,r.YH)(this,(function(r){switch(r.label){case 0:return e&&(t=this.cmi.core.lesson_status,this.cmi.core.lesson_status&&(this.statusSetByModule||"not attempted"!==this.cmi.core.lesson_status)||(this.cmi.core.lesson_status="completed"),"normal"===this.cmi.core.lesson_mode?"credit"===this.cmi.core.credit&&this.settings.mastery_override&&""!==this.cmi.student_data.mastery_score&&""!==this.cmi.core.score.raw&&(this.cmi.core.lesson_status=parseFloat(this.cmi.core.score.raw)>=parseFloat(this.cmi.student_data.mastery_score)?"passed":"failed"):"browse"===this.cmi.core.lesson_mode&&""===((null===(a=null===(o=null===(n=this.startingData)||void 0===n?void 0:n.cmi)||void 0===o?void 0:o.core)||void 0===a?void 0:a.lesson_status)||"")&&"not attempted"===t&&(this.cmi.core.lesson_status="browsed")),i=this.getCommitObject(e),"string"!=typeof this.settings.lmsCommitUrl?[3,2]:[4,this.processHttpRequest(this.settings.lmsCommitUrl,i,e)];case 1:return[2,r.sent()];case 2:return[2,{result:s.A.global.SCORM_TRUE,errorCode:0}]}}))}))},t}(i(429).A)},180:function(e,t,i){i.d(t,{Scorm2004Impl:function(){return P}});var r=i(635),n=i(429),o=i(340),s=i(417),a=i(797),c=i(784),l=i(864),u=i(319),h=i(449);function _(e,t,i){return(0,h.q)(e,t,a.A.scorm2004.TYPE_MISMATCH,c.wq,i)}function m(e,t){return(0,h.W)(e,t,a.A.scorm2004.VALUE_OUT_OF_RANGE,c.wq)}var d=function(e){function t(){var t=e.call(this)||this;return t.__children=o.A.scorm2004.student_preference_children,t._audio_level="1",t._language="",t._delivery_speed="1",t._audio_captioning="0",t}return(0,r.C6)(t,e),Object.defineProperty(t.prototype,"_children",{get:function(){return this.__children},set:function(e){throw new c.wq(a.A.scorm2004.READ_ONLY_ELEMENT)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"audio_level",{get:function(){return this._audio_level},set:function(e){_(e,s.A.scorm2004.CMIDecimal)&&m(e,s.A.scorm2004.audio_range)&&(this._audio_level=e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"language",{get:function(){return this._language},set:function(e){_(e,s.A.scorm2004.CMILang)&&(this._language=e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"delivery_speed",{get:function(){return this._delivery_speed},set:function(e){_(e,s.A.scorm2004.CMIDecimal)&&m(e,s.A.scorm2004.speed_range)&&(this._delivery_speed=e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"audio_captioning",{get:function(){return this._audio_captioning},set:function(e){_(e,s.A.scorm2004.CMISInteger)&&m(e,s.A.scorm2004.text_range)&&(this._audio_captioning=e)},enumerable:!1,configurable:!0}),t.prototype.toJSON=function(){this.jsonString=!0;var e={audio_level:this.audio_level,language:this.language,delivery_speed:this.delivery_speed,audio_captioning:this.audio_captioning};return delete this.jsonString,e},t}(u.J),p=i(589),f=s.A.scorm2004,g={"true-false":{format:"^true$|^false$",max:1,delimiter:"",unique:!1},choice:{format:f.CMILongIdentifier,max:36,delimiter:"[,]",unique:!0},"fill-in":{format:f.CMILangString250,max:10,delimiter:"[,]",unique:!1},"long-fill-in":{format:f.CMILangString4000,max:1,delimiter:"",unique:!1},matching:{format:f.CMIShortIdentifier,format2:f.CMIShortIdentifier,max:36,delimiter:"[,]",delimiter2:"[.]",unique:!1},performance:{format:"^$|"+f.CMIShortIdentifier,format2:f.CMIDecimal+"|^$|"+f.CMIShortIdentifier,max:250,delimiter:"[,]",delimiter2:"[.]",unique:!1},sequencing:{format:f.CMIShortIdentifier,max:36,delimiter:"[,]",unique:!1},likert:{format:f.CMIShortIdentifier,max:1,delimiter:"",unique:!1},numeric:{format:f.CMIDecimal,max:1,delimiter:"",unique:!1},other:{format:f.CMIString4000,max:1,delimiter:"",unique:!1}},E={"true-false":{max:1,delimiter:"",unique:!1,duplicate:!1,format:"^true$|^false$",limit:1},choice:{max:36,delimiter:"[,]",unique:!0,duplicate:!1,format:f.CMILongIdentifier},"fill-in":{max:10,delimiter:"[,]",unique:!1,duplicate:!1,format:f.CMILangString250cr},"long-fill-in":{max:1,delimiter:"",unique:!1,duplicate:!0,format:f.CMILangString4000},matching:{max:36,delimiter:"[,]",delimiter2:"[.]",unique:!1,duplicate:!1,format:f.CMIShortIdentifier,format2:f.CMIShortIdentifier},performance:{max:250,delimiter:"[,]",delimiter2:"[.]",delimiter3:"[:]",unique:!1,duplicate:!1,format:"^$|"+f.CMIShortIdentifier,format2:f.CMIDecimal+"|^$|"+f.CMIShortIdentifier},sequencing:{max:36,delimiter:"[,]",unique:!1,duplicate:!1,format:f.CMIShortIdentifier},likert:{max:1,delimiter:"",unique:!1,duplicate:!1,format:f.CMIShortIdentifier,limit:1},numeric:{max:2,delimiter:"[:]",unique:!1,duplicate:!1,format:f.CMIDecimal,limit:1},other:{max:1,delimiter:"",unique:!1,duplicate:!1,format:f.CMIString4000,limit:1}},b=function(e){function t(){return e.call(this,{children:o.A.scorm2004.interactions_children,errorCode:a.A.scorm2004.READ_ONLY_ELEMENT,errorClass:c.wq})||this}return(0,r.C6)(t,e),t}(p.B),y=function(e){function t(){var t=e.call(this)||this;return t._id="",t._type="",t._timestamp="",t._weighting="",t._learner_response="",t._result="",t._latency="",t._description="",t.objectives=new p.B({errorCode:a.A.scorm2004.READ_ONLY_ELEMENT,errorClass:c.wq,children:o.A.scorm2004.objectives_children}),t.correct_responses=new p.B({errorCode:a.A.scorm2004.READ_ONLY_ELEMENT,errorClass:c.wq,children:o.A.scorm2004.correct_responses_children}),t}return(0,r.C6)(t,e),t.prototype.initialize=function(){var t,i;e.prototype.initialize.call(this),null===(t=this.objectives)||void 0===t||t.initialize(),null===(i=this.correct_responses)||void 0===i||i.initialize()},Object.defineProperty(t.prototype,"id",{get:function(){return this._id},set:function(e){_(e,s.A.scorm2004.CMILongIdentifier)&&(this._id=e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"type",{get:function(){return this._type},set:function(e){if(this.initialized&&""===this._id)throw new c.wq(a.A.scorm2004.DEPENDENCY_NOT_ESTABLISHED);_(e,s.A.scorm2004.CMIType)&&(this._type=e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"timestamp",{get:function(){return this._timestamp},set:function(e){if(this.initialized&&""===this._id)throw new c.wq(a.A.scorm2004.DEPENDENCY_NOT_ESTABLISHED);_(e,s.A.scorm2004.CMITime)&&(this._timestamp=e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"weighting",{get:function(){return this._weighting},set:function(e){if(this.initialized&&""===this._id)throw new c.wq(a.A.scorm2004.DEPENDENCY_NOT_ESTABLISHED);_(e,s.A.scorm2004.CMIDecimal)&&(this._weighting=e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"learner_response",{get:function(){return this._learner_response},set:function(e){if(this.initialized&&(""===this._type||""===this._id))throw new c.wq(a.A.scorm2004.DEPENDENCY_NOT_ESTABLISHED);var t=[],i=g[this.type];if(!i)throw new c.wq(a.A.scorm2004.TYPE_MISMATCH);if((null==i?void 0:i.delimiter)?t=e.split(i.delimiter):t[0]=e,!(t.length>0&&t.length<=i.max))throw new c.wq(a.A.scorm2004.GENERAL_SET_FAILURE);for(var r=new RegExp(i.format),n=0;n<t.length;n++)if(null==i?void 0:i.delimiter2){var o=t[n].split(i.delimiter2);if(2!==o.length)throw new c.wq(a.A.scorm2004.TYPE_MISMATCH);if(!o[0].match(r))throw new c.wq(a.A.scorm2004.TYPE_MISMATCH);if(!i.format2||!o[1].match(new RegExp(i.format2)))throw new c.wq(a.A.scorm2004.TYPE_MISMATCH)}else{if(!t[n].match(r))throw new c.wq(a.A.scorm2004.TYPE_MISMATCH);if(""!==t[n]&&i.unique)for(var s=0;s<n;s++)if(t[n]===t[s])throw new c.wq(a.A.scorm2004.TYPE_MISMATCH)}this._learner_response=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"result",{get:function(){return this._result},set:function(e){_(e,s.A.scorm2004.CMIResult)&&(this._result=e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"latency",{get:function(){return this._latency},set:function(e){if(this.initialized&&""===this._id)throw new c.wq(a.A.scorm2004.DEPENDENCY_NOT_ESTABLISHED);_(e,s.A.scorm2004.CMITimespan)&&(this._latency=e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"description",{get:function(){return this._description},set:function(e){if(this.initialized&&""===this._id)throw new c.wq(a.A.scorm2004.DEPENDENCY_NOT_ESTABLISHED);_(e,s.A.scorm2004.CMILangString250,!0)&&(this._description=e)},enumerable:!1,configurable:!0}),t.prototype.toJSON=function(){this.jsonString=!0;var e={id:this.id,type:this.type,objectives:this.objectives,timestamp:this.timestamp,weighting:this.weighting,learner_response:this.learner_response,result:this.result,latency:this.latency,description:this.description,correct_responses:this.correct_responses};return delete this.jsonString,e},t}(u.J),A=function(e){function t(){var t=e.call(this)||this;return t._id="",t}return(0,r.C6)(t,e),Object.defineProperty(t.prototype,"id",{get:function(){return this._id},set:function(e){_(e,s.A.scorm2004.CMILongIdentifier)&&(this._id=e)},enumerable:!1,configurable:!0}),t.prototype.toJSON=function(){this.jsonString=!0;var e={id:this.id};return delete this.jsonString,e},t}(u.J),M=function(e){function t(){var t=e.call(this)||this;return t._pattern="",t}return(0,r.C6)(t,e),Object.defineProperty(t.prototype,"pattern",{get:function(){return this._pattern},set:function(e){_(e,s.A.scorm2004.CMIFeedback)&&(this._pattern=e)},enumerable:!1,configurable:!0}),t.prototype.toJSON=function(){this.jsonString=!0;var e={pattern:this.pattern};return delete this.jsonString,e},t}(u.J),C=function(e){function t(){var t=e.call(this,{score_children:o.A.scorm2004.score_children,max:"",invalidErrorCode:a.A.scorm2004.READ_ONLY_ELEMENT,invalidTypeCode:a.A.scorm2004.TYPE_MISMATCH,invalidRangeCode:a.A.scorm2004.VALUE_OUT_OF_RANGE,decimalRegex:s.A.scorm2004.CMIDecimal,errorClass:c.wq})||this;return t._scaled="",t}return(0,r.C6)(t,e),Object.defineProperty(t.prototype,"scaled",{get:function(){return this._scaled},set:function(e){_(e,s.A.scorm2004.CMIDecimal)&&m(e,s.A.scorm2004.scaled_range)&&(this._scaled=e)},enumerable:!1,configurable:!0}),t.prototype.toJSON=function(){this.jsonString=!0;var e={scaled:this.scaled,raw:this.raw,min:this.min,max:this.max};return delete this.jsonString,e},t}(i(434)._),v=function(e){function t(){return e.call(this,{children:o.A.scorm2004.comments_children,errorCode:a.A.scorm2004.READ_ONLY_ELEMENT,errorClass:c.wq})||this}return(0,r.C6)(t,e),t}(p.B),I=function(e){function t(){return e.call(this,{children:o.A.scorm2004.comments_children,errorCode:a.A.scorm2004.READ_ONLY_ELEMENT,errorClass:c.wq})||this}return(0,r.C6)(t,e),t}(p.B),S=function(e){function t(t){void 0===t&&(t=!1);var i=e.call(this)||this;return i._comment="",i._location="",i._timestamp="",i._comment="",i._location="",i._timestamp="",i._readOnlyAfterInit=t,i}return(0,r.C6)(t,e),Object.defineProperty(t.prototype,"comment",{get:function(){return this._comment},set:function(e){if(this.initialized&&this._readOnlyAfterInit)throw new c.wq(a.A.scorm2004.READ_ONLY_ELEMENT);_(e,s.A.scorm2004.CMILangString4000,!0)&&(this._comment=e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"location",{get:function(){return this._location},set:function(e){if(this.initialized&&this._readOnlyAfterInit)throw new c.wq(a.A.scorm2004.READ_ONLY_ELEMENT);_(e,s.A.scorm2004.CMIString250)&&(this._location=e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"timestamp",{get:function(){return this._timestamp},set:function(e){if(this.initialized&&this._readOnlyAfterInit)throw new c.wq(a.A.scorm2004.READ_ONLY_ELEMENT);_(e,s.A.scorm2004.CMITime)&&(this._timestamp=e)},enumerable:!1,configurable:!0}),t.prototype.toJSON=function(){this.jsonString=!0;var e={comment:this.comment,location:this.location,timestamp:this.timestamp};return delete this.jsonString,e},t}(u.J),w=function(e){function t(){return e.call(this,{children:o.A.scorm2004.objectives_children,errorCode:a.A.scorm2004.READ_ONLY_ELEMENT,errorClass:c.wq})||this}return(0,r.C6)(t,e),t}(p.B),O=function(e){function t(){var t=e.call(this)||this;return t._id="",t._success_status="unknown",t._completion_status="unknown",t._progress_measure="",t._description="",t.score=new C,t}return(0,r.C6)(t,e),t.prototype.initialize=function(){var t;e.prototype.initialize.call(this),null===(t=this.score)||void 0===t||t.initialize()},Object.defineProperty(t.prototype,"id",{get:function(){return this._id},set:function(e){_(e,s.A.scorm2004.CMILongIdentifier)&&(this._id=e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"success_status",{get:function(){return this._success_status},set:function(e){if(this.initialized&&""===this._id)throw new c.wq(a.A.scorm2004.DEPENDENCY_NOT_ESTABLISHED);_(e,s.A.scorm2004.CMISStatus)&&(this._success_status=e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"completion_status",{get:function(){return this._completion_status},set:function(e){if(this.initialized&&""===this._id)throw new c.wq(a.A.scorm2004.DEPENDENCY_NOT_ESTABLISHED);_(e,s.A.scorm2004.CMICStatus)&&(this._completion_status=e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"progress_measure",{get:function(){return this._progress_measure},set:function(e){if(this.initialized&&""===this._id)throw new c.wq(a.A.scorm2004.DEPENDENCY_NOT_ESTABLISHED);_(e,s.A.scorm2004.CMIDecimal)&&m(e,s.A.scorm2004.progress_range)&&(this._progress_measure=e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"description",{get:function(){return this._description},set:function(e){if(this.initialized&&""===this._id)throw new c.wq(a.A.scorm2004.DEPENDENCY_NOT_ESTABLISHED);_(e,s.A.scorm2004.CMILangString250,!0)&&(this._description=e)},enumerable:!1,configurable:!0}),t.prototype.toJSON=function(){this.jsonString=!0;var e={id:this.id,success_status:this.success_status,completion_status:this.completion_status,progress_measure:this.progress_measure,description:this.description,score:this.score};return delete this.jsonString,e},t}(u.J),T=function(e){function t(t){void 0===t&&(t=!1);var i=e.call(this)||this;return i.__version="1.0",i.__children=o.A.scorm2004.cmi_children,i._completion_status="unknown",i._completion_threshold="",i._credit="credit",i._entry="",i._exit="",i._launch_data="",i._learner_id="",i._learner_name="",i._location="",i._max_time_allowed="",i._mode="normal",i._progress_measure="",i._scaled_passing_score="",i._session_time="PT0H0M0S",i._success_status="unknown",i._suspend_data="",i._time_limit_action="continue,no message",i._total_time="",i.learner_preference=new d,i.score=new C,i.comments_from_learner=new I,i.comments_from_lms=new v,i.interactions=new b,i.objectives=new w,t&&i.initialize(),i}return(0,r.C6)(t,e),t.prototype.initialize=function(){var t,i,r,n,o,s;e.prototype.initialize.call(this),null===(t=this.learner_preference)||void 0===t||t.initialize(),null===(i=this.score)||void 0===i||i.initialize(),null===(r=this.comments_from_learner)||void 0===r||r.initialize(),null===(n=this.comments_from_lms)||void 0===n||n.initialize(),null===(o=this.interactions)||void 0===o||o.initialize(),null===(s=this.objectives)||void 0===s||s.initialize()},Object.defineProperty(t.prototype,"_version",{get:function(){return this.__version},set:function(e){throw new c.wq(a.A.scorm2004.READ_ONLY_ELEMENT)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"_children",{get:function(){return this.__children},set:function(e){throw new c.wq(a.A.scorm2004.READ_ONLY_ELEMENT)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"completion_status",{get:function(){return this._completion_status},set:function(e){_(e,s.A.scorm2004.CMICStatus)&&(this._completion_status=e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"completion_threshold",{get:function(){return this._completion_threshold},set:function(e){if(this.initialized)throw new c.wq(a.A.scorm2004.READ_ONLY_ELEMENT);this._completion_threshold=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"credit",{get:function(){return this._credit},set:function(e){if(this.initialized)throw new c.wq(a.A.scorm2004.READ_ONLY_ELEMENT);this._credit=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"entry",{get:function(){return this._entry},set:function(e){if(this.initialized)throw new c.wq(a.A.scorm2004.READ_ONLY_ELEMENT);this._entry=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"exit",{get:function(){if(!this.jsonString)throw new c.wq(a.A.scorm2004.WRITE_ONLY_ELEMENT);return this._exit},set:function(e){_(e,s.A.scorm2004.CMIExit,!0)&&(this._exit=e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"launch_data",{get:function(){return this._launch_data},set:function(e){if(this.initialized)throw new c.wq(a.A.scorm2004.READ_ONLY_ELEMENT);this._launch_data=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"learner_id",{get:function(){return this._learner_id},set:function(e){if(this.initialized)throw new c.wq(a.A.scorm2004.READ_ONLY_ELEMENT);this._learner_id=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"learner_name",{get:function(){return this._learner_name},set:function(e){if(this.initialized)throw new c.wq(a.A.scorm2004.READ_ONLY_ELEMENT);this._learner_name=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"location",{get:function(){return this._location},set:function(e){_(e,s.A.scorm2004.CMIString1000)&&(this._location=e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"max_time_allowed",{get:function(){return this._max_time_allowed},set:function(e){if(this.initialized)throw new c.wq(a.A.scorm2004.READ_ONLY_ELEMENT);this._max_time_allowed=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"mode",{get:function(){return this._mode},set:function(e){if(this.initialized)throw new c.wq(a.A.scorm2004.READ_ONLY_ELEMENT);this._mode=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"progress_measure",{get:function(){return this._progress_measure},set:function(e){_(e,s.A.scorm2004.CMIDecimal)&&m(e,s.A.scorm2004.progress_range)&&(this._progress_measure=e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"scaled_passing_score",{get:function(){return this._scaled_passing_score},set:function(e){if(this.initialized)throw new c.wq(a.A.scorm2004.READ_ONLY_ELEMENT);this._scaled_passing_score=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"session_time",{get:function(){if(!this.jsonString)throw new c.wq(a.A.scorm2004.WRITE_ONLY_ELEMENT);return this._session_time},set:function(e){_(e,s.A.scorm2004.CMITimespan)&&(this._session_time=e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"success_status",{get:function(){return this._success_status},set:function(e){_(e,s.A.scorm2004.CMISStatus)&&(this._success_status=e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"suspend_data",{get:function(){return this._suspend_data},set:function(e){_(e,s.A.scorm2004.CMIString64000,!0)&&(this._suspend_data=e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"time_limit_action",{get:function(){return this._time_limit_action},set:function(e){if(this.initialized)throw new c.wq(a.A.scorm2004.READ_ONLY_ELEMENT);this._time_limit_action=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"total_time",{get:function(){return this._total_time},set:function(e){if(this.initialized)throw new c.wq(a.A.scorm2004.READ_ONLY_ELEMENT);this._total_time=e},enumerable:!1,configurable:!0}),t.prototype.getCurrentTotalTime=function(){var e=this._session_time,t=this.start_time;if(null!=t){var i=(new Date).getTime()-t;e=l.xE(i/1e3)}return l.$o(this._total_time,e,s.A.scorm2004.CMITimespan)},t.prototype.toJSON=function(){this.jsonString=!0;var e={comments_from_learner:this.comments_from_learner,comments_from_lms:this.comments_from_lms,completion_status:this.completion_status,completion_threshold:this.completion_threshold,credit:this.credit,entry:this.entry,exit:this.exit,interactions:this.interactions,launch_data:this.launch_data,learner_id:this.learner_id,learner_name:this.learner_name,learner_preference:this.learner_preference,location:this.location,max_time_allowed:this.max_time_allowed,mode:this.mode,objectives:this.objectives,progress_measure:this.progress_measure,scaled_passing_score:this.scaled_passing_score,score:this.score,session_time:this.session_time,success_status:this.success_status,suspend_data:this.suspend_data,time_limit_action:this.time_limit_action};return delete this.jsonString,e},t}(u.r),L=["aa","ab","ae","af","ak","am","an","ar","as","av","ay","az","ba","be","bg","bh","bi","bm","bn","bo","br","bs","ca","ce","ch","co","cr","cs","cu","cv","cy","da","de","dv","dz","ee","el","en","eo","es","et","eu","fa","ff","fi","fj","fo","fr","fy","ga","gd","gl","gn","gu","gv","ha","he","hi","ho","hr","ht","hu","hy","hz","ia","id","ie","ig","ii","ik","io","is","it","iu","ja","jv","ka","kg","ki","kj","kk","kl","km","kn","ko","kr","ks","ku","kv","kw","ky","la","lb","lg","li","ln","lo","lt","lu","lv","mg","mh","mi","mk","ml","mn","mo","mr","ms","mt","my","na","nb","nd","ne","ng","nl","nn","no","nr","nv","ny","oc","oj","om","or","os","pa","pi","pl","ps","pt","qu","rm","rn","ro","ru","rw","sa","sc","sd","se","sg","sh","si","sk","sl","sm","sn","so","sq","sr","ss","st","su","sv","sw","ta","te","tg","th","ti","tk","tl","tn","to","tr","ts","tt","tw","ty","ug","uk","ur","uz","ve","vi","vo","wa","wo","xh","yi","yo","za","zh","zu","aar","abk","ave","afr","aka","amh","arg","ara","asm","ava","aym","aze","bak","bel","bul","bih","bis","bam","ben","tib","bod","bre","bos","cat","che","cha","cos","cre","cze","ces","chu","chv","wel","cym","dan","ger","deu","div","dzo","ewe","gre","ell","eng","epo","spa","est","baq","eus","per","fas","ful","fin","fij","fao","fre","fra","fry","gle","gla","glg","grn","guj","glv","hau","heb","hin","hmo","hrv","hat","hun","arm","hye","her","ina","ind","ile","ibo","iii","ipk","ido","ice","isl","ita","iku","jpn","jav","geo","kat","kon","kik","kua","kaz","kal","khm","kan","kor","kau","kas","kur","kom","cor","kir","lat","ltz","lug","lim","lin","lao","lit","lub","lav","mlg","mah","mao","mri","mac","mkd","mal","mon","mol","mar","may","msa","mlt","bur","mya","nau","nob","nde","nep","ndo","dut","nld","nno","nor","nbl","nav","nya","oci","oji","orm","ori","oss","pan","pli","pol","pus","por","que","roh","run","rum","ron","rus","kin","san","srd","snd","sme","sag","slo","sin","slk","slv","smo","sna","som","alb","sqi","srp","ssw","sot","sun","swe","swa","tam","tel","tgk","tha","tir","tuk","tgl","tsn","ton","tur","tso","tat","twi","tah","uig","ukr","urd","uzb","ven","vie","vol","wln","wol","xho","yid","yor","zha","chi","zho","zul"],N=i(56),R=function(e){function t(){var t=e.call(this)||this;return t.nav=new j,t}return(0,r.C6)(t,e),t.prototype.initialize=function(){var t;e.prototype.initialize.call(this),null===(t=this.nav)||void 0===t||t.initialize()},t.prototype.toJSON=function(){this.jsonString=!0;var e={nav:this.nav};return delete this.jsonString,e},t}(u.J),j=function(e){function t(){var t=e.call(this)||this;return t._request="_none_",t.request_valid=new D,t}return(0,r.C6)(t,e),t.prototype.initialize=function(){var t;e.prototype.initialize.call(this),null===(t=this.request_valid)||void 0===t||t.initialize()},Object.defineProperty(t.prototype,"request",{get:function(){return this._request},set:function(e){_(e,s.A.scorm2004.NAVEvent)&&(this._request=e)},enumerable:!1,configurable:!0}),t.prototype.toJSON=function(){this.jsonString=!0;var e={request:this.request};return delete this.jsonString,e},t}(u.J),D=function(e){function t(){var t=e.call(this)||this;return t._continue="unknown",t._previous="unknown",t._choice={},t._jump={},t}return(0,r.C6)(t,e),Object.defineProperty(t.prototype,"continue",{get:function(){return this._continue},set:function(e){if(this.initialized)throw new c.wq(a.A.scorm2004.READ_ONLY_ELEMENT);_(e,s.A.scorm2004.NAVBoolean)&&(this._continue=e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"previous",{get:function(){return this._previous},set:function(e){if(this.initialized)throw new c.wq(a.A.scorm2004.READ_ONLY_ELEMENT);_(e,s.A.scorm2004.NAVBoolean)&&(this._previous=e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"choice",{get:function(){return this._choice},set:function(e){if(this.initialized)throw new c.wq(a.A.scorm2004.READ_ONLY_ELEMENT);if("object"!=typeof e)throw new c.wq(a.A.scorm2004.TYPE_MISMATCH);for(var t in e)({}).hasOwnProperty.call(e,t)&&_(e[t],s.A.scorm2004.NAVBoolean)&&_(t,s.A.scorm2004.NAVTarget)&&(this._choice[t]=N.K$[e[t]])},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"jump",{get:function(){return this._jump},set:function(e){if(this.initialized)throw new c.wq(a.A.scorm2004.READ_ONLY_ELEMENT);if("object"!=typeof e)throw new c.wq(a.A.scorm2004.TYPE_MISMATCH);for(var t in e)({}).hasOwnProperty.call(e,t)&&_(e[t],s.A.scorm2004.NAVBoolean)&&_(t,s.A.scorm2004.NAVTarget)&&(this._jump[t]=N.K$[e[t]])},enumerable:!1,configurable:!0}),t.prototype.toJSON=function(){this.jsonString=!0;var e={previous:this._previous,continue:this._continue,choice:this._choice,jump:this._jump};return delete this.jsonString,e},t}(u.J),P=function(e){function t(t){var i=this;return t&&void 0===t.mastery_override&&(t.mastery_override=!1),(i=e.call(this,a.A.scorm2004,t)||this)._version="1.0",i.cmi=new T,i.adl=new R,i.Initialize=i.lmsInitialize,i.Terminate=i.lmsFinish,i.GetValue=i.lmsGetValue,i.SetValue=i.lmsSetValue,i.Commit=i.lmsCommit,i.GetLastError=i.lmsGetLastError,i.GetErrorString=i.lmsGetErrorString,i.GetDiagnostic=i.lmsGetDiagnostic,i}return(0,r.C6)(t,e),t.prototype.reset=function(e){this.commonReset(e),this.cmi=new T,this.adl=new R},Object.defineProperty(t.prototype,"version",{get:function(){return this._version},enumerable:!1,configurable:!0}),t.prototype.lmsInitialize=function(){return this.cmi.initialize(),this.initialize("Initialize")},t.prototype.lmsFinish=function(){var e=this;return(0,r.sH)(e,void 0,void 0,(function(){return(0,r.YH)(this,(function(e){switch(e.label){case 0:return[4,this.internalFinish()];case 1:return e.sent(),[2]}}))})),o.A.global.SCORM_TRUE},t.prototype.internalFinish=function(){return(0,r.sH)(this,void 0,void 0,(function(){var e,t,i,n,a,c,l;return(0,r.YH)(this,(function(r){switch(r.label){case 0:return[4,this.terminate("Terminate",!0)];case 1:return(e=r.sent())===o.A.global.SCORM_TRUE&&("_none_"!==this.adl.nav.request?(t={continue:"SequenceNext",previous:"SequencePrevious",choice:"SequenceChoice",jump:"SequenceJump",exit:"SequenceExit",exitAll:"SequenceExitAll",abandon:"SequenceAbandon",abandonAll:"SequenceAbandonAll"},i=this.adl.nav.request,n=new RegExp(s.A.scorm2004.NAVEvent),a=i.match(n),c="",a&&a.length>2&&(c=a[2],i=a[1].replace(c,"")),(l=t[i])&&this.processListeners(l,"adl.nav.request",c)):this.settings.autoProgress&&this.processListeners("SequenceNext")),[2,e]}}))}))},t.prototype.lmsGetValue=function(e){var t="^adl\\.nav\\.request_valid\\.(choice|jump)\\.{target=\\S{0,}([a-zA-Z0-9-_]+)}$";if((0,l.J6)(e,t)){var i=e.match(t),r=i[1],n=i[2].replace("{target=","").replace("}","");if("choice"===r||"jump"===r)return this.settings.scoItemIdValidator?String(this.settings.scoItemIdValidator(n)):String(this.settings.scoItemIds.includes(n))}return this.getValue("GetValue",!0,e)},t.prototype.lmsSetValue=function(e,t){return this.setValue("SetValue","Commit",!0,e,t)},t.prototype.lmsCommit=function(){var e=this;return this.settings.asyncCommit?this.scheduleCommit(500,"LMSCommit"):(0,r.sH)(e,void 0,void 0,(function(){return(0,r.YH)(this,(function(e){switch(e.label){case 0:return[4,this.commit("LMSCommit",!1)];case 1:return e.sent(),[2]}}))})),o.A.global.SCORM_TRUE},t.prototype.lmsGetLastError=function(){return this.getLastError("GetLastError")},t.prototype.lmsGetErrorString=function(e){return this.getErrorString("GetErrorString",e)},t.prototype.lmsGetDiagnostic=function(e){return this.getDiagnostic("GetDiagnostic",e)},t.prototype.setCMIValue=function(e,t){return this._commonSetCMIValue("SetValue",!0,e,t)},t.prototype.getChildElement=function(e,t,i){if((0,l.J6)(e,"cmi\\.objectives\\.\\d+"))return new O;if(i){if((0,l.J6)(e,"cmi\\.interactions\\.\\d+\\.correct_responses\\.\\d+"))return this.createCorrectResponsesObject(e,t);if((0,l.J6)(e,"cmi\\.interactions\\.\\d+\\.objectives\\.\\d+"))return new A}else if((0,l.J6)(e,"cmi\\.interactions\\.\\d+"))return new y;return(0,l.J6)(e,"cmi\\.comments_from_learner\\.\\d+")?new S:(0,l.J6)(e,"cmi\\.comments_from_lms\\.\\d+")?new S(!0):null},t.prototype.createCorrectResponsesObject=function(e,t){var i=e.split("."),r=Number(i[2]),n=this.cmi.interactions.childArray[r];if(this.isInitialized())if(n.type){this.checkDuplicateChoiceResponse(n,t);var o=E[n.type];o?this.checkValidResponseType(o,t,n.type):this.throwSCORMError(a.A.scorm2004.GENERAL_SET_FAILURE,"Incorrect Response Type: "+n.type)}else this.throwSCORMError(a.A.scorm2004.DEPENDENCY_NOT_ESTABLISHED);return"0"===this.lastErrorCode?new M:null},t.prototype.checkValidResponseType=function(e,t,i){var r=[];(null==e?void 0:e.delimiter)?r=String(t).split(e.delimiter):r[0]=t,r.length>0&&r.length<=e.max?this.checkCorrectResponseValue(i,r,t):r.length>e.max&&this.throwSCORMError(a.A.scorm2004.GENERAL_SET_FAILURE,"Data Model Element Pattern Too Long")},t.prototype.checkDuplicateChoiceResponse=function(e,t){var i=e.correct_responses._count;if("choice"===e.type)for(var r=0;r<i&&"0"===this.lastErrorCode;r++){e.correct_responses.childArray[r].pattern===t&&this.throwSCORMError(a.A.scorm2004.GENERAL_SET_FAILURE)}},t.prototype.validateCorrectResponse=function(e,t){var i=e.split("."),r=Number(i[2]),n=Number(i[4]),o=this.cmi.interactions.childArray[r],s=o.correct_responses._count;this.checkDuplicateChoiceResponse(o,t);var c=E[o.type];void 0===c.limit||s<=c.limit?(this.checkValidResponseType(c,t,o.type),"0"===this.lastErrorCode&&(!c.duplicate||!this.checkDuplicatedPattern(o.correct_responses,n,t))||"0"===this.lastErrorCode&&""===t||"0"===this.lastErrorCode&&this.throwSCORMError(a.A.scorm2004.GENERAL_SET_FAILURE,"Data Model Element Pattern Already Exists")):this.throwSCORMError(a.A.scorm2004.GENERAL_SET_FAILURE,"Data Model Element Collection Limit Reached")},t.prototype.getCMIValue=function(e){return this._commonGetCMIValue("GetValue",!0,e)},t.prototype.getLmsErrorMessageDetails=function(e,t){var i="",r="";return e=String(e),o.A.scorm2004.error_descriptions[e]&&(i=o.A.scorm2004.error_descriptions[e].basicMessage,r=o.A.scorm2004.error_descriptions[e].detailMessage),t?r:i},t.prototype.checkDuplicatedPattern=function(e,t,i){for(var r=!1,n=e._count,o=0;o<n&&!r;o++)o!==t&&e.childArray[o]===i&&(r=!0);return r},t.prototype.checkCorrectResponseValue=function(e,t,i){for(var r=E[e],n=new RegExp(r.format),o=0;o<t.length&&"0"===this.lastErrorCode;o++)if(e.match("^(fill-in|long-fill-in|matching|performance|sequencing)$")&&(t[o]=this.removeCorrectResponsePrefixes(t[o])),null==r?void 0:r.delimiter2){var s=t[o].split(r.delimiter2);if(2===s.length)(c=s[0].match(n))&&r.format2&&s[1].match(new RegExp(r.format2))||this.throwSCORMError(a.A.scorm2004.TYPE_MISMATCH);else this.throwSCORMError(a.A.scorm2004.TYPE_MISMATCH)}else{var c;if(!(c=t[o].match(n))&&""!==i||!c&&"true-false"===e)this.throwSCORMError(a.A.scorm2004.TYPE_MISMATCH);else if("numeric"===e&&t.length>1)Number(t[0])>Number(t[1])&&this.throwSCORMError(a.A.scorm2004.TYPE_MISMATCH);else if(""!==t[o]&&r.unique)for(var l=0;l<o&&"0"===this.lastErrorCode;l++)t[o]===t[l]&&this.throwSCORMError(a.A.scorm2004.TYPE_MISMATCH)}},t.prototype.removeCorrectResponsePrefixes=function(e){for(var t=!1,i=!1,r=!1,n=new RegExp("^({(lang|case_matters|order_matters)=([^}]+)})"),o=e.match(n),c=null;o;){switch(o[2]){case"lang":if(c=e.match(s.A.scorm2004.CMILangcr)){var l=c[3];void 0!==l&&l.length>0&&(L.includes(l.toLowerCase())||this.throwSCORMError(a.A.scorm2004.TYPE_MISMATCH))}r=!0;break;case"case_matters":r||t||i||"true"!==o[3]&&"false"!==o[3]&&this.throwSCORMError(a.A.scorm2004.TYPE_MISMATCH),i=!0;break;case"order_matters":i||r||t||"true"!==o[3]&&"false"!==o[3]&&this.throwSCORMError(a.A.scorm2004.TYPE_MISMATCH),t=!0}o=(e=e.substring(o[1].length)).match(n)}return e},t.prototype.replaceWithAnotherScormAPI=function(e){this.cmi=e.cmi,this.adl=e.adl},t.prototype.renderCommitCMI=function(e){var t=this.renderCMIToJSONObject();e&&(t.cmi.total_time=this.cmi.getCurrentTotalTime());var i=[],r=l.Bq(t);switch(this.settings.dataCommitFormat){case"flattened":return l.Bq(t);case"params":for(var n in r)({}).hasOwnProperty.call(r,n)&&i.push("".concat(n,"=").concat(r[n]));return i;default:return t}},t.prototype.renderCommitObject=function(e){var t=this.renderCommitCMI(e),i=this.cmi.getCurrentTotalTime(),r=l.OI(i,s.A.scorm2004.CMITimespan),n=N.lC.unknown,o=N.YE.unknown;this.cmi.completion_status&&("completed"===this.cmi.completion_status?n=N.lC.completed:"incomplete"===this.cmi.completion_status&&(n=N.lC.incomplete)),this.cmi.success_status&&("passed"===this.cmi.success_status?o=N.YE.passed:"failed"===this.cmi.success_status&&(o=N.YE.failed));var a=this.cmi.score,c=null;a&&(c={},Number.isNaN(Number.parseFloat(a.raw))||(c.raw=Number.parseFloat(a.raw)),Number.isNaN(Number.parseFloat(a.min))||(c.min=Number.parseFloat(a.min)),Number.isNaN(Number.parseFloat(a.max))||(c.max=Number.parseFloat(a.max)),Number.isNaN(Number.parseFloat(a.scaled))||(c.scaled=Number.parseFloat(a.scaled)));var u={completionStatus:n,successStatus:o,totalTimeSeconds:r,runtimeData:t};return c&&(u.score=c),u},t.prototype.storeData=function(e){return(0,r.sH)(this,void 0,void 0,(function(){var t,i,n,s,a,c;return(0,r.YH)(this,(function(r){switch(r.label){case 0:return e&&"normal"===this.cmi.mode&&"credit"===this.cmi.credit&&(this.cmi.completion_threshold&&this.cmi.progress_measure&&(this.cmi.progress_measure>=this.cmi.completion_threshold?this.cmi.completion_status="completed":this.cmi.completion_status="incomplete"),this.cmi.scaled_passing_score&&this.cmi.score.scaled&&(this.cmi.score.scaled>=this.cmi.scaled_passing_score?this.cmi.success_status="passed":this.cmi.success_status="failed")),t=!1,this.adl.nav.request!==(null===(c=null===(a=null===(s=this.startingData)||void 0===s?void 0:s.adl)||void 0===a?void 0:a.nav)||void 0===c?void 0:c.request)&&"_none_"!==this.adl.nav.request&&(this.adl.nav.request=encodeURIComponent(this.adl.nav.request),t=!0),i=this.getCommitObject(e),"string"!=typeof this.settings.lmsCommitUrl?[3,2]:[4,this.processHttpRequest(this.settings.lmsCommitUrl,i,e)];case 1:return n=r.sent(),t&&void 0!==n.navRequest&&""!==n.navRequest&&Function('"use strict";(() => { '.concat(n.navRequest," })()"))(),[2,n];case 2:return[2,{result:o.A.global.SCORM_TRUE,errorCode:0}]}}))}))},t}(n.A)},589:function(e,t,i){i.d(t,{B:function(){return c}});var r=i(635),n=i(319),o=i(797),s=i(784),a=o.A.scorm12,c=function(e){function t(t){var i=e.call(this)||this;return i.__children=t.children,i._errorCode=t.errorCode||a.GENERAL,i._errorClass=t.errorClass||s.$h,i.childArray=[],i}return(0,r.C6)(t,e),Object.defineProperty(t.prototype,"_children",{get:function(){return this.__children},set:function(e){throw new this._errorClass(this._errorCode)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"_count",{get:function(){return this.childArray.length},set:function(e){throw new this._errorClass(this._errorCode)},enumerable:!1,configurable:!0}),t.prototype.toJSON=function(){this.jsonString=!0;for(var e={},t=0;t<this.childArray.length;t++)e[t+""]=this.childArray[t];return delete this.jsonString,e},t}(n.J)},319:function(e,t,i){i.d(t,{J:function(){return n},r:function(){return o}});var r=i(635),n=function(){function e(){this.jsonString=!1,this._initialized=!1}return Object.defineProperty(e.prototype,"initialized",{get:function(){return this._initialized},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"start_time",{get:function(){return this._start_time},enumerable:!1,configurable:!0}),e.prototype.initialize=function(){this._initialized=!0},e.prototype.setStartTime=function(){this._start_time=(new Date).getTime()},e}(),o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,r.C6)(t,e),t}(n)},434:function(e,t,i){i.d(t,{_:function(){return _}});var r=i(635),n=i(340),o=i(417),s=i(319),a=i(449),c=i(797),l=n.A.scorm12,u=o.A.scorm12,h=c.A.scorm12,_=function(e){function t(t){var i=e.call(this)||this;return i._raw="",i._min="",i.__children=t.score_children||l.score_children,i.__score_range=!!t.score_range&&u.score_range,i._max=t.max||""===t.max?t.max:"100",i.__invalid_error_code=t.invalidErrorCode||h.INVALID_SET_VALUE,i.__invalid_type_code=t.invalidTypeCode||h.TYPE_MISMATCH,i.__invalid_range_code=t.invalidRangeCode||h.VALUE_OUT_OF_RANGE,i.__decimal_regex=t.decimalRegex||u.CMIDecimal,i.__error_class=t.errorClass,i}return(0,r.C6)(t,e),Object.defineProperty(t.prototype,"_children",{get:function(){return this.__children},set:function(e){throw new this.__error_class(this.__invalid_error_code)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"raw",{get:function(){return this._raw},set:function(e){!(0,a.q)(e,this.__decimal_regex,this.__invalid_type_code,this.__error_class)||this.__score_range&&!(0,a.W)(e,this.__score_range,this.__invalid_range_code,this.__error_class)||(this._raw=e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"min",{get:function(){return this._min},set:function(e){!(0,a.q)(e,this.__decimal_regex,this.__invalid_type_code,this.__error_class)||this.__score_range&&!(0,a.W)(e,this.__score_range,this.__invalid_range_code,this.__error_class)||(this._min=e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"max",{get:function(){return this._max},set:function(e){!(0,a.q)(e,this.__decimal_regex,this.__invalid_type_code,this.__error_class)||this.__score_range&&!(0,a.W)(e,this.__score_range,this.__invalid_range_code,this.__error_class)||(this._max=e)},enumerable:!1,configurable:!0}),t.prototype.toJSON=function(){this.jsonString=!0;var e={raw:this.raw,min:this.min,max:this.max};return delete this.jsonString,e},t}(s.J)},449:function(e,t,i){function r(e,t,i,r,n){if("string"!=typeof e)return!1;var o=new RegExp(t),s=e.match(o);if(n&&""===e)return!0;if(void 0===e||!s||""===s[0])throw new r(i);return!0}function n(e,t,i,r){var n=t.split("#");if((e*=1)>=n[0]){if("*"===n[1]||e<=n[1])return!0;throw new r(i)}throw new r(i)}i.d(t,{W:function(){return n},q:function(){return r}})},989:function(e,t,i){i.d(t,{Y:function(){return g}});var r=i(635),n=i(340),o=i(797),s=i(417),a=i(784),c=i(319),l=i(915),u=i(434),h=i(864),_=function(e){function t(){var t=e.call(this)||this;return t.__children=n.A.scorm12.core_children,t._student_id="",t._student_name="",t._lesson_location="",t._credit="",t._lesson_status="not attempted",t._entry="",t._total_time="",t._lesson_mode="normal",t._exit="",t._session_time="00:00:00",t._suspend_data="",t.score=new u._({score_children:n.A.scorm12.score_children,score_range:s.A.scorm12.score_range,invalidErrorCode:o.A.scorm12.INVALID_SET_VALUE,invalidTypeCode:o.A.scorm12.TYPE_MISMATCH,invalidRangeCode:o.A.scorm12.VALUE_OUT_OF_RANGE,errorClass:a.tQ}),t}return(0,r.C6)(t,e),t.prototype.initialize=function(){var t;e.prototype.initialize.call(this),null===(t=this.score)||void 0===t||t.initialize()},Object.defineProperty(t.prototype,"_children",{get:function(){return this.__children},set:function(e){throw new a.tQ(o.A.scorm12.INVALID_SET_VALUE)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"student_id",{get:function(){return this._student_id},set:function(e){if(this.initialized)throw new a.tQ(o.A.scorm12.READ_ONLY_ELEMENT);this._student_id=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"student_name",{get:function(){return this._student_name},set:function(e){if(this.initialized)throw new a.tQ(o.A.scorm12.READ_ONLY_ELEMENT);this._student_name=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"lesson_location",{get:function(){return this._lesson_location},set:function(e){(0,l.p)(e,s.A.scorm12.CMIString256,!0)&&(this._lesson_location=e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"credit",{get:function(){return this._credit},set:function(e){if(this.initialized)throw new a.tQ(o.A.scorm12.READ_ONLY_ELEMENT);this._credit=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"lesson_status",{get:function(){return this._lesson_status},set:function(e){this.initialized?(0,l.p)(e,s.A.scorm12.CMIStatus)&&(this._lesson_status=e):(0,l.p)(e,s.A.scorm12.CMIStatus2)&&(this._lesson_status=e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"entry",{get:function(){return this._entry},set:function(e){if(this.initialized)throw new a.tQ(o.A.scorm12.READ_ONLY_ELEMENT);this._entry=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"total_time",{get:function(){return this._total_time},set:function(e){if(this.initialized)throw new a.tQ(o.A.scorm12.READ_ONLY_ELEMENT);this._total_time=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"lesson_mode",{get:function(){return this._lesson_mode},set:function(e){if(this.initialized)throw new a.tQ(o.A.scorm12.READ_ONLY_ELEMENT);this._lesson_mode=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"exit",{get:function(){if(!this.jsonString)throw new a.tQ(o.A.scorm12.WRITE_ONLY_ELEMENT);return this._exit},set:function(e){(0,l.p)(e,s.A.scorm12.CMIExit,!0)&&(this._exit=e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"session_time",{get:function(){if(!this.jsonString)throw new a.tQ(o.A.scorm12.WRITE_ONLY_ELEMENT);return this._session_time},set:function(e){(0,l.p)(e,s.A.scorm12.CMITimespan)&&(this._session_time=e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"suspend_data",{get:function(){return this._suspend_data},set:function(e){(0,l.p)(e,s.A.scorm12.CMIString4096,!0)&&(this._suspend_data=e)},enumerable:!1,configurable:!0}),t.prototype.getCurrentTotalTime=function(e){var t=this._session_time,i=e;if(null!=i){var r=(new Date).getTime()-i;t=h.UZ(r/1e3)}return h.HT(this._total_time,t,new RegExp(s.A.scorm12.CMITimespan))},t.prototype.toJSON=function(){this.jsonString=!0;var e={student_id:this.student_id,student_name:this.student_name,lesson_location:this.lesson_location,credit:this.credit,lesson_status:this.lesson_status,entry:this.entry,lesson_mode:this.lesson_mode,exit:this.exit,session_time:this.session_time,score:this.score};return delete this.jsonString,e},t}(c.J),m=i(176),d=i(532),p=i(181),f=i(833),g=function(e){function t(t,i,r){var o=e.call(this)||this;return o.__children="",o.__version="3.4",o._launch_data="",o._comments="",o._comments_from_lms="",r&&o.initialize(),o.__children=t||n.A.scorm12.cmi_children,o.core=new _,o.objectives=new m.C,o.student_data=i||new d.X,o.student_preference=new p.G,o.interactions=new f.Xb,o}return(0,r.C6)(t,e),t.prototype.initialize=function(){var t,i,r,n,o;e.prototype.initialize.call(this),null===(t=this.core)||void 0===t||t.initialize(),null===(i=this.objectives)||void 0===i||i.initialize(),null===(r=this.student_data)||void 0===r||r.initialize(),null===(n=this.student_preference)||void 0===n||n.initialize(),null===(o=this.interactions)||void 0===o||o.initialize()},t.prototype.toJSON=function(){this.jsonString=!0;var e={suspend_data:this.suspend_data,launch_data:this.launch_data,comments:this.comments,comments_from_lms:this.comments_from_lms,core:this.core,objectives:this.objectives,student_data:this.student_data,student_preference:this.student_preference,interactions:this.interactions};return delete this.jsonString,e},Object.defineProperty(t.prototype,"_version",{get:function(){return this.__version},set:function(e){throw new a.tQ(o.A.scorm12.INVALID_SET_VALUE)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"_children",{get:function(){return this.__children},set:function(e){throw new a.tQ(o.A.scorm12.INVALID_SET_VALUE)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"suspend_data",{get:function(){var e;return null===(e=this.core)||void 0===e?void 0:e.suspend_data},set:function(e){this.core&&(this.core.suspend_data=e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"launch_data",{get:function(){return this._launch_data},set:function(e){if(this.initialized)throw new a.tQ(o.A.scorm12.READ_ONLY_ELEMENT);this._launch_data=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"comments",{get:function(){return this._comments},set:function(e){(0,l.p)(e,s.A.scorm12.CMIString4096,!0)&&(this._comments=e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"comments_from_lms",{get:function(){return this._comments_from_lms},set:function(e){if(this.initialized)throw new a.tQ(o.A.scorm12.READ_ONLY_ELEMENT);this._comments_from_lms=e},enumerable:!1,configurable:!0}),t.prototype.getCurrentTotalTime=function(){return this.core.getCurrentTotalTime(this.start_time)},t}(c.r)},833:function(e,t,i){i.d(t,{Oh:function(){return m},WP:function(){return _},Xb:function(){return h},cb:function(){return d}});var r=i(635),n=i(589),o=i(340),s=i(797),a=i(784),c=i(319),l=i(915),u=i(417),h=function(e){function t(){return e.call(this,{children:o.A.scorm12.interactions_children,errorCode:s.A.scorm12.INVALID_SET_VALUE,errorClass:a.tQ})||this}return(0,r.C6)(t,e),t}(n.B),_=function(e){function t(){var t=e.call(this)||this;return t._id="",t._time="",t._type="",t._weighting="",t._student_response="",t._result="",t._latency="",t.objectives=new n.B({errorCode:s.A.scorm12.INVALID_SET_VALUE,errorClass:a.tQ,children:o.A.scorm12.objectives_children}),t.correct_responses=new n.B({errorCode:s.A.scorm12.INVALID_SET_VALUE,errorClass:a.tQ,children:o.A.scorm12.correct_responses_children}),t}return(0,r.C6)(t,e),t.prototype.initialize=function(){var t,i;e.prototype.initialize.call(this),null===(t=this.objectives)||void 0===t||t.initialize(),null===(i=this.correct_responses)||void 0===i||i.initialize()},Object.defineProperty(t.prototype,"id",{get:function(){if(!this.jsonString)throw new a.tQ(s.A.scorm12.WRITE_ONLY_ELEMENT);return this._id},set:function(e){(0,l.p)(e,u.A.scorm12.CMIIdentifier)&&(this._id=e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"time",{get:function(){if(!this.jsonString)throw new a.tQ(s.A.scorm12.WRITE_ONLY_ELEMENT);return this._time},set:function(e){(0,l.p)(e,u.A.scorm12.CMITime)&&(this._time=e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"type",{get:function(){if(!this.jsonString)throw new a.tQ(s.A.scorm12.WRITE_ONLY_ELEMENT);return this._type},set:function(e){(0,l.p)(e,u.A.scorm12.CMIType)&&(this._type=e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"weighting",{get:function(){if(!this.jsonString)throw new a.tQ(s.A.scorm12.WRITE_ONLY_ELEMENT);return this._weighting},set:function(e){(0,l.p)(e,u.A.scorm12.CMIDecimal)&&(0,l.h)(e,u.A.scorm12.weighting_range)&&(this._weighting=e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"student_response",{get:function(){if(!this.jsonString)throw new a.tQ(s.A.scorm12.WRITE_ONLY_ELEMENT);return this._student_response},set:function(e){(0,l.p)(e,u.A.scorm12.CMIFeedback,!0)&&(this._student_response=e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"result",{get:function(){if(!this.jsonString)throw new a.tQ(s.A.scorm12.WRITE_ONLY_ELEMENT);return this._result},set:function(e){(0,l.p)(e,u.A.scorm12.CMIResult)&&(this._result=e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"latency",{get:function(){if(!this.jsonString)throw new a.tQ(s.A.scorm12.WRITE_ONLY_ELEMENT);return this._latency},set:function(e){(0,l.p)(e,u.A.scorm12.CMITimespan)&&(this._latency=e)},enumerable:!1,configurable:!0}),t.prototype.toJSON=function(){this.jsonString=!0;var e={id:this.id,time:this.time,type:this.type,weighting:this.weighting,student_response:this.student_response,result:this.result,latency:this.latency,objectives:this.objectives,correct_responses:this.correct_responses};return delete this.jsonString,e},t}(c.J),m=function(e){function t(){var t=e.call(this)||this;return t._id="",t}return(0,r.C6)(t,e),Object.defineProperty(t.prototype,"id",{get:function(){return this._id},set:function(e){(0,l.p)(e,u.A.scorm12.CMIIdentifier)&&(this._id=e)},enumerable:!1,configurable:!0}),t.prototype.toJSON=function(){this.jsonString=!0;var e={id:this.id};return delete this.jsonString,e},t}(c.J),d=function(e){function t(){var t=e.call(this)||this;return t._pattern="",t}return(0,r.C6)(t,e),Object.defineProperty(t.prototype,"pattern",{get:function(){if(!this.jsonString)throw new a.tQ(s.A.scorm12.WRITE_ONLY_ELEMENT);return this._pattern},set:function(e){(0,l.p)(e,u.A.scorm12.CMIFeedback,!0)&&(this._pattern=e)},enumerable:!1,configurable:!0}),t.prototype.toJSON=function(){this.jsonString=!0;var e={pattern:this._pattern};return delete this.jsonString,e},t}(c.J)},331:function(e,t,i){i.d(t,{A:function(){return a}});var r=i(635),n=i(319),o=i(915),s=i(417),a=function(e){function t(){var t=e.call(this)||this;return t._event="",t}return(0,r.C6)(t,e),Object.defineProperty(t.prototype,"event",{get:function(){return this._event},set:function(e){(0,o.p)(e,s.A.scorm12.NAVEvent)&&(this._event=e)},enumerable:!1,configurable:!0}),t.prototype.toJSON=function(){this.jsonString=!0;var e={event:this.event};return delete this.jsonString,e},t}(n.J)},176:function(e,t,i){i.d(t,{C:function(){return h},N:function(){return _}});var r=i(635),n=i(319),o=i(434),s=i(340),a=i(417),c=i(797),l=i(784),u=i(915),h=function(e){function t(){return e.call(this,{children:s.A.scorm12.objectives_children,errorCode:c.A.scorm12.INVALID_SET_VALUE,errorClass:l.tQ})||this}return(0,r.C6)(t,e),t}(i(589).B),_=function(e){function t(){var t=e.call(this)||this;return t._id="",t._status="",t.score=new o._({score_children:s.A.scorm12.score_children,score_range:a.A.scorm12.score_range,invalidErrorCode:c.A.scorm12.INVALID_SET_VALUE,invalidTypeCode:c.A.scorm12.TYPE_MISMATCH,invalidRangeCode:c.A.scorm12.VALUE_OUT_OF_RANGE,errorClass:l.tQ}),t}return(0,r.C6)(t,e),Object.defineProperty(t.prototype,"id",{get:function(){return this._id},set:function(e){(0,u.p)(e,a.A.scorm12.CMIIdentifier)&&(this._id=e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"status",{get:function(){return this._status},set:function(e){(0,u.p)(e,a.A.scorm12.CMIStatus2)&&(this._status=e)},enumerable:!1,configurable:!0}),t.prototype.toJSON=function(){this.jsonString=!0;var e={id:this.id,status:this.status,score:this.score};return delete this.jsonString,e},t}(n.J)},532:function(e,t,i){i.d(t,{X:function(){return c}});var r=i(635),n=i(319),o=i(340),s=i(784),a=i(797),c=function(e){function t(t){var i=e.call(this)||this;return i._mastery_score="",i._max_time_allowed="",i._time_limit_action="",i.__children=t||o.A.scorm12.student_data_children,i}return(0,r.C6)(t,e),Object.defineProperty(t.prototype,"_children",{get:function(){return this.__children},set:function(e){throw new s.tQ(a.A.scorm12.INVALID_SET_VALUE)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"mastery_score",{get:function(){return this._mastery_score},set:function(e){if(this.initialized)throw new s.tQ(a.A.scorm12.READ_ONLY_ELEMENT);this._mastery_score=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"max_time_allowed",{get:function(){return this._max_time_allowed},set:function(e){if(this.initialized)throw new s.tQ(a.A.scorm12.READ_ONLY_ELEMENT);this._max_time_allowed=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"time_limit_action",{get:function(){return this._time_limit_action},set:function(e){if(this.initialized)throw new s.tQ(a.A.scorm12.READ_ONLY_ELEMENT);this._time_limit_action=e},enumerable:!1,configurable:!0}),t.prototype.toJSON=function(){this.jsonString=!0;var e={mastery_score:this.mastery_score,max_time_allowed:this.max_time_allowed,time_limit_action:this.time_limit_action};return delete this.jsonString,e},t}(n.J)},181:function(e,t,i){i.d(t,{G:function(){return u}});var r=i(635),n=i(319),o=i(340),s=i(784),a=i(797),c=i(915),l=i(417),u=function(e){function t(t){var i=e.call(this)||this;return i._audio="",i._language="",i._speed="",i._text="",i.__children=t||o.A.scorm12.student_preference_children,i}return(0,r.C6)(t,e),Object.defineProperty(t.prototype,"_children",{get:function(){return this.__children},set:function(e){throw new s.tQ(a.A.scorm12.INVALID_SET_VALUE)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"audio",{get:function(){return this._audio},set:function(e){(0,c.p)(e,l.A.scorm12.CMISInteger)&&(0,c.h)(e,l.A.scorm12.audio_range)&&(this._audio=e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"language",{get:function(){return this._language},set:function(e){(0,c.p)(e,l.A.scorm12.CMIString256)&&(this._language=e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"speed",{get:function(){return this._speed},set:function(e){(0,c.p)(e,l.A.scorm12.CMISInteger)&&(0,c.h)(e,l.A.scorm12.speed_range)&&(this._speed=e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"text",{get:function(){return this._text},set:function(e){(0,c.p)(e,l.A.scorm12.CMISInteger)&&(0,c.h)(e,l.A.scorm12.text_range)&&(this._text=e)},enumerable:!1,configurable:!0}),t.prototype.toJSON=function(){this.jsonString=!0;var e={audio:this.audio,language:this.language,speed:this.speed,text:this.text};return delete this.jsonString,e},t}(n.J)},915:function(e,t,i){i.d(t,{h:function(){return a},p:function(){return s}});var r=i(449),n=i(797),o=i(784);function s(e,t,i){return(0,r.q)(e,t,n.A.scorm12.TYPE_MISMATCH,o.tQ,i)}function a(e,t,i){if(!i&&""===e)throw new o.tQ(n.A.scorm12.VALUE_OUT_OF_RANGE);return(0,r.W)(e,t,n.A.scorm12.VALUE_OUT_OF_RANGE,o.tQ)}},340:function(e,t,i){var r=i(635),n={cmi_children:"core,suspend_data,launch_data,comments,objectives,student_data,student_preference,interactions",core_children:"student_id,student_name,lesson_location,credit,lesson_status,entry,score,total_time,lesson_mode,exit,session_time",score_children:"raw,min,max",comments_children:"content,location,time",objectives_children:"id,score,status",correct_responses_children:"pattern",student_data_children:"mastery_score,max_time_allowed,time_limit_action",student_preference_children:"audio,language,speed,text",interactions_children:"id,objectives,time,type,correct_responses,weighting,student_response,result,latency",error_descriptions:{101:{basicMessage:"General Exception",detailMessage:"No specific error code exists to describe the error. Use LMSGetDiagnostic for more information"},201:{basicMessage:"Invalid argument error",detailMessage:"Indicates that an argument represents an invalid data model element or is otherwise incorrect."},202:{basicMessage:"Element cannot have children",detailMessage:'Indicates that LMSGetValue was called with a data model element name that ends in "_children" for a data model element that does not support the "_children" suffix.'},203:{basicMessage:"Element not an array - cannot have count",detailMessage:'Indicates that LMSGetValue was called with a data model element name that ends in "_count" for a data model element that does not support the "_count" suffix.'},301:{basicMessage:"Not initialized",detailMessage:"Indicates that an API call was made before the call to lmsInitialize."},401:{basicMessage:"Not implemented error",detailMessage:"The data model element indicated in a call to LMSGetValue or LMSSetValue is valid, but was not implemented by this LMS. SCORM 1.2 defines a set of data model elements as being optional for an LMS to implement."},402:{basicMessage:"Invalid set value, element is a keyword",detailMessage:'Indicates that LMSSetValue was called on a data model element that represents a keyword (elements that end in "_children" and "_count").'},403:{basicMessage:"Element is read only",detailMessage:"LMSSetValue was called with a data model element that can only be read."},404:{basicMessage:"Element is write only",detailMessage:"LMSGetValue was called on a data model element that can only be written to."},405:{basicMessage:"Incorrect Data Type",detailMessage:"LMSSetValue was called with a value that is not consistent with the data format of the supplied data model element."},407:{basicMessage:"Element Value Out Of Range",detailMessage:"The numeric value supplied to a LMSSetValue call is outside of the numeric range allowed for the supplied data model element."},408:{basicMessage:"Data Model Dependency Not Established",detailMessage:"Some data model elements cannot be set until another data model element was set. This error condition indicates that the prerequisite element was not set before the dependent element."}}},o={global:{SCORM_TRUE:"true",SCORM_FALSE:"false",STATE_NOT_INITIALIZED:0,STATE_INITIALIZED:1,STATE_TERMINATED:2,LOG_LEVEL_DEBUG:1,LOG_LEVEL_INFO:2,LOG_LEVEL_WARNING:3,LOG_LEVEL_ERROR:4,LOG_LEVEL_NONE:5},scorm12:n,aicc:(0,r.Cl)((0,r.Cl)({},n),{cmi_children:"core,suspend_data,launch_data,comments,objectives,student_data,student_preference,interactions,evaluation",student_preference_children:"audio,language,lesson_type,speed,text,text_color,text_location,text_size,video,windows",student_data_children:"attempt_number,tries,mastery_score,max_time_allowed,time_limit_action",student_demographics_children:"city,class,company,country,experience,familiar_name,instructor_name,title,native_language,state,street_address,telephone,years_experience",tries_children:"time,status,score",attempt_records_children:"score,lesson_status",paths_children:"location_id,date,time,status,why_left,time_in_element"}),scorm2004:{cmi_children:"_version,comments_from_learner,comments_from_lms,completion_status,credit,entry,exit,interactions,launch_data,learner_id,learner_name,learner_preference,location,max_time_allowed,mode,objectives,progress_measure,scaled_passing_score,score,session_time,success_status,suspend_data,time_limit_action,total_time",comments_children:"comment,timestamp,location",score_children:"max,raw,scaled,min",objectives_children:"progress_measure,completion_status,success_status,description,score,id",correct_responses_children:"pattern",student_data_children:"mastery_score,max_time_allowed,time_limit_action",student_preference_children:"audio_level,audio_captioning,delivery_speed,language",interactions_children:"id,type,objectives,timestamp,correct_responses,weighting,learner_response,result,latency,description",error_descriptions:{0:{basicMessage:"No Error",detailMessage:"No error occurred, the previous API call was successful."},101:{basicMessage:"General Exception",detailMessage:"No specific error code exists to describe the error. Use GetDiagnostic for more information."},102:{basicMessage:"General Initialization Failure",detailMessage:"Call to Initialize failed for an unknown reason."},103:{basicMessage:"Already Initialized",detailMessage:"Call to Initialize failed because Initialize was already called."},104:{basicMessage:"Content Instance Terminated",detailMessage:"Call to Initialize failed because Terminate was already called."},111:{basicMessage:"General Termination Failure",detailMessage:"Call to Terminate failed for an unknown reason."},112:{basicMessage:"Termination Before Initialization",detailMessage:"Call to Terminate failed because it was made before the call to Initialize."},113:{basicMessage:"Termination After Termination",detailMessage:"Call to Terminate failed because Terminate was already called."},122:{basicMessage:"Retrieve Data Before Initialization",detailMessage:"Call to GetValue failed because it was made before the call to Initialize."},123:{basicMessage:"Retrieve Data After Termination",detailMessage:"Call to GetValue failed because it was made after the call to Terminate."},132:{basicMessage:"Store Data Before Initialization",detailMessage:"Call to SetValue failed because it was made before the call to Initialize."},133:{basicMessage:"Store Data After Termination",detailMessage:"Call to SetValue failed because it was made after the call to Terminate."},142:{basicMessage:"Commit Before Initialization",detailMessage:"Call to Commit failed because it was made before the call to Initialize."},143:{basicMessage:"Commit After Termination",detailMessage:"Call to Commit failed because it was made after the call to Terminate."},201:{basicMessage:"General Argument Error",detailMessage:"An invalid argument was passed to an API method (usually indicates that Initialize, Commit or Terminate did not receive the expected empty string argument."},301:{basicMessage:"General Get Failure",detailMessage:"Indicates a failed GetValue call where no other specific error code is applicable. Use GetDiagnostic for more information."},351:{basicMessage:"General Set Failure",detailMessage:"Indicates a failed SetValue call where no other specific error code is applicable. Use GetDiagnostic for more information."},391:{basicMessage:"General Commit Failure",detailMessage:"Indicates a failed Commit call where no other specific error code is applicable. Use GetDiagnostic for more information."},401:{basicMessage:"Undefined Data Model Element",detailMessage:"The data model element name passed to GetValue or SetValue is not a valid SCORM data model element."},402:{basicMessage:"Unimplemented Data Model Element",detailMessage:"The data model element indicated in a call to GetValue or SetValue is valid, but was not implemented by this LMS. In SCORM 2004, this error would indicate an LMS that is not fully SCORM conformant."},403:{basicMessage:"Data Model Element Value Not Initialized",detailMessage:"Attempt to read a data model element that has not been initialized by the LMS or through a SetValue call. This error condition is often reached during normal execution of a SCO."},404:{basicMessage:"Data Model Element Is Read Only",detailMessage:"SetValue was called with a data model element that can only be read."},405:{basicMessage:"Data Model Element Is Write Only",detailMessage:"GetValue was called on a data model element that can only be written to."},406:{basicMessage:"Data Model Element Type Mismatch",detailMessage:"SetValue was called with a value that is not consistent with the data format of the supplied data model element."},407:{basicMessage:"Data Model Element Value Out Of Range",detailMessage:"The numeric value supplied to a SetValue call is outside of the numeric range allowed for the supplied data model element."},408:{basicMessage:"Data Model Dependency Not Established",detailMessage:"Some data model elements cannot be set until another data model element was set. This error condition indicates that the prerequisite element was not set before the dependent element."}}}};t.A=o},56:function(e,t,i){var r,n,o;i.d(t,{K$:function(){return r},YE:function(){return n},lC:function(){return o}}),function(e){e.unknown="unknown",e.true="true",e.false="false"}(r||(r={})),function(e){e.passed="passed",e.failed="failed",e.unknown="unknown"}(n||(n={})),function(e){e.completed="completed",e.incomplete="incomplete",e.unknown="unknown"}(o||(o={}))},797:function(e,t,i){var r=i(635),n={GENERAL:101,INITIALIZATION_FAILED:101,INITIALIZED:101,TERMINATED:101,TERMINATION_FAILURE:101,TERMINATION_BEFORE_INIT:101,MULTIPLE_TERMINATION:101,RETRIEVE_BEFORE_INIT:101,RETRIEVE_AFTER_TERM:101,STORE_BEFORE_INIT:101,STORE_AFTER_TERM:101,COMMIT_BEFORE_INIT:101,COMMIT_AFTER_TERM:101,ARGUMENT_ERROR:101,CHILDREN_ERROR:101,COUNT_ERROR:101,GENERAL_GET_FAILURE:101,GENERAL_SET_FAILURE:101,GENERAL_COMMIT_FAILURE:101,UNDEFINED_DATA_MODEL:101,UNIMPLEMENTED_ELEMENT:101,VALUE_NOT_INITIALIZED:101,INVALID_SET_VALUE:101,READ_ONLY_ELEMENT:101,WRITE_ONLY_ELEMENT:101,TYPE_MISMATCH:101,VALUE_OUT_OF_RANGE:101,DEPENDENCY_NOT_ESTABLISHED:101},o={scorm12:(0,r.Cl)((0,r.Cl)({},n),{RETRIEVE_BEFORE_INIT:301,STORE_BEFORE_INIT:301,COMMIT_BEFORE_INIT:301,ARGUMENT_ERROR:201,CHILDREN_ERROR:202,COUNT_ERROR:203,UNDEFINED_DATA_MODEL:401,UNIMPLEMENTED_ELEMENT:401,VALUE_NOT_INITIALIZED:301,INVALID_SET_VALUE:402,READ_ONLY_ELEMENT:403,WRITE_ONLY_ELEMENT:404,TYPE_MISMATCH:405,VALUE_OUT_OF_RANGE:407,DEPENDENCY_NOT_ESTABLISHED:408}),scorm2004:(0,r.Cl)((0,r.Cl)({},n),{INITIALIZATION_FAILED:102,INITIALIZED:103,TERMINATED:104,TERMINATION_FAILURE:111,TERMINATION_BEFORE_INIT:112,MULTIPLE_TERMINATIONS:113,RETRIEVE_BEFORE_INIT:122,RETRIEVE_AFTER_TERM:123,STORE_BEFORE_INIT:132,STORE_AFTER_TERM:133,COMMIT_BEFORE_INIT:142,COMMIT_AFTER_TERM:143,ARGUMENT_ERROR:201,GENERAL_GET_FAILURE:301,GENERAL_SET_FAILURE:351,GENERAL_COMMIT_FAILURE:391,UNDEFINED_DATA_MODEL:401,UNIMPLEMENTED_ELEMENT:402,VALUE_NOT_INITIALIZED:403,READ_ONLY_ELEMENT:404,WRITE_ONLY_ELEMENT:405,TYPE_MISMATCH:406,VALUE_OUT_OF_RANGE:407,DEPENDENCY_NOT_ESTABLISHED:408})};t.A=o},417:function(e,t,i){var r=i(635),n={CMIString256:"^.{0,255}$",CMIString4096:"^.{0,4096}$",CMITime:"^(?:[01]\\d|2[0123]):(?:[012345]\\d):(?:[012345]\\d)$",CMITimespan:"^([0-9]{2,}):([0-9]{2}):([0-9]{2})(.[0-9]{1,2})?$",CMIInteger:"^\\d+$",CMISInteger:"^-?([0-9]+)$",CMIDecimal:"^-?([0-9]{0,3})(.[0-9]*)?$",CMIIdentifier:"^[\\u0021-\\u007E\\s]{0,255}$",CMIFeedback:"^.{0,255}$",CMIIndex:"[._](\\d+).",CMIStatus:"^(passed|completed|failed|incomplete|browsed)$",CMIStatus2:"^(passed|completed|failed|incomplete|browsed|not attempted)$",CMIExit:"^(time-out|suspend|logout|)$",CMIType:"^(true-false|choice|fill-in|matching|performance|sequencing|likert|numeric)$",CMIResult:"^(correct|wrong|unanticipated|neutral|([0-9]{0,3})?(\\.[0-9]*)?)$",NAVEvent:"^(previous|continue)$",score_range:"0#100",audio_range:"-1#100",speed_range:"-100#100",weighting_range:"-100#100",text_range:"-1#1"},o={aicc:(0,r.Cl)((0,r.Cl)({},n),{CMIIdentifier:"^\\w{1,255}$"}),scorm12:n,scorm2004:{CMIString200:"^[\\u0000-\\uFFFF]{0,200}$",CMIString250:"^[\\u0000-\\uFFFF]{0,250}$",CMIString1000:"^[\\u0000-\\uFFFF]{0,1000}$",CMIString4000:"^[\\u0000-\\uFFFF]{0,4000}$",CMIString64000:"^[\\u0000-\\uFFFF]{0,64000}$",CMILang:"^([a-zA-Z]{2,3}|i|x)(-[a-zA-Z0-9-]{2,8})?$|^$",CMILangString250:"^({lang=([a-zA-Z]{2,3}|i|x)(-[a-zA-Z0-9-]{2,8})?})?((?!{.*$).{0,250}$)?$",CMILangcr:"^(({lang=([a-zA-Z]{2,3}|i|x)?(-[a-zA-Z0-9-]{2,8})?}))(.*?)$",CMILangString250cr:"^(({lang=([a-zA-Z]{2,3}|i|x)?(-[a-zA-Z0-9-]{2,8})?})?(.{0,250})?)?$",CMILangString4000:"^({lang=([a-zA-Z]{2,3}|i|x)(-[a-zA-Z0-9-]{2,8})?})?((?!{.*$).{0,4000}$)?$",CMITime:"^(19[7-9]{1}[0-9]{1}|20[0-2]{1}[0-9]{1}|203[0-8]{1})((-(0[1-9]{1}|1[0-2]{1}))((-(0[1-9]{1}|[1-2]{1}[0-9]{1}|3[0-1]{1}))(T([0-1]{1}[0-9]{1}|2[0-3]{1})((:[0-5]{1}[0-9]{1})((:[0-5]{1}[0-9]{1})((\\.[0-9]{1,2})((Z|([+|-]([0-1]{1}[0-9]{1}|2[0-3]{1})))(:[0-5]{1}[0-9]{1})?)?)?)?)?)?)?)?$",CMITimespan:"^P(?:([.,\\d]+)Y)?(?:([.,\\d]+)M)?(?:([.,\\d]+)W)?(?:([.,\\d]+)D)?(?:T?(?:([.,\\d]+)H)?(?:([.,\\d]+)M)?(?:([.,\\d]+)S)?)?$",CMIInteger:"^\\d+$",CMISInteger:"^-?([0-9]+)$",CMIDecimal:"^-?([0-9]{1,5})(\\.[0-9]{1,18})?$",CMIIdentifier:"^\\S{1,250}[a-zA-Z0-9]$",CMIShortIdentifier:"^[\\w\\.\\-\\_]{1,250}$",CMILongIdentifier:"^(?:(?!urn:)\\S{1,4000}|urn:[A-Za-z0-9-]{1,31}:\\S{1,4000}|.{1,4000})$",CMIFeedback:"^.*$",CMIIndex:"[._](\\d+).",CMIIndexStore:".N(\\d+).",CMICStatus:"^(completed|incomplete|not attempted|unknown)$",CMISStatus:"^(passed|failed|unknown)$",CMIExit:"^(time-out|suspend|logout|normal)$",CMIType:"^(true-false|choice|fill-in|long-fill-in|matching|performance|sequencing|likert|numeric|other)$",CMIResult:"^(correct|incorrect|unanticipated|neutral|-?([0-9]{1,4})(\\.[0-9]{1,18})?)$",NAVEvent:"^(previous|continue|exit|exitAll|abandon|abandonAll|suspendAll|_none_|(\\{target=\\S{0,}[a-zA-Z0-9-_]+})?choice|(\\{target=\\S{0,}[a-zA-Z0-9-_]+})?jump)$",NAVBoolean:"^(unknown|true|false$)",NAVTarget:"^{target=\\S{0,}[a-zA-Z0-9-_]+}$",scaled_range:"-1#1",audio_range:"0#*",speed_range:"0#*",text_range:"-1#1",progress_range:"0#1"}};t.A=o},784:function(e,t,i){i.d(t,{$h:function(){return c},gv:function(){return h},tQ:function(){return u},wq:function(){return _},yI:function(){return l}});var r=i(635),n=i(340),o=n.A.scorm12.error_descriptions,s=n.A.aicc.error_descriptions,a=n.A.scorm2004.error_descriptions,c=function(e){function t(t){var i=e.call(this,t.toString())||this;return i._errorCode=t,i.name="ScormValidationError",i}return(0,r.C6)(t,e),Object.defineProperty(t.prototype,"errorCode",{get:function(){return this._errorCode},enumerable:!1,configurable:!0}),t.prototype.setMessage=function(e){this.message=e},t}(Error),l=function(e){function t(t,i,r){var n=e.call(this,t)||this;return n._detailedMessage="",n.setMessage(i),n._errorMessage=i,r&&(n._detailedMessage=r),n}return(0,r.C6)(t,e),Object.defineProperty(t.prototype,"errorMessage",{get:function(){return this._errorMessage},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"detailedMessage",{get:function(){return this._detailedMessage},enumerable:!1,configurable:!0}),t}(c),u=function(e){function t(t){return{}.hasOwnProperty.call(o,String(t))?e.call(this,t,o[String(t)].basicMessage,o[String(t)].detailMessage)||this:e.call(this,101,o[101].basicMessage,o[101].detailMessage)||this}return(0,r.C6)(t,e),t}(l),h=function(e){function t(t){return{}.hasOwnProperty.call(s,String(t))?e.call(this,t,s[String(t)].basicMessage,s[String(t)].detailMessage)||this:e.call(this,101,s[101].basicMessage,s[101].detailMessage)||this}return(0,r.C6)(t,e),t}(l),_=function(e){function t(t){return{}.hasOwnProperty.call(a,String(t))?e.call(this,t,a[String(t)].basicMessage,a[String(t)].detailMessage)||this:e.call(this,101,a[101].basicMessage,a[101].detailMessage)||this}return(0,r.C6)(t,e),t}(l)},864:function(e,t,i){i.d(t,{$o:function(){return l},Bq:function(){return h},HT:function(){return u},J6:function(){return p},OI:function(){return c},UZ:function(){return o},f4:function(){return a},hw:function(){return d},sB:function(){return _},xE:function(){return s}});var r=3600,n={D:24*r,H:r,M:60,S:1};function o(e){if(!e||e<=0)return"00:00:00";var t=Math.floor(e/r),i=new Date(1e3*e),n=i.getUTCMinutes(),o=i.getSeconds(),s=e%1,a="";return m(s)>0&&(a="."+(a=m(s)>2?s.toFixed(2):String(s)).split(".")[1]),(t+":"+n+":"+o).replace(/\b\d\b/g,"0$&")+a}function s(e){if(!e||e<=0)return"PT0S";var t="P",i=e;for(var r in n){var o=n[r],s=Math.floor(i/o);m(i%=o)>2&&(i=Number(Number(i).toFixed(2))),"S"===r&&i>0&&(s+=i),s&&((t.indexOf("D")>0||"H"===r||"M"===r||"S"===r)&&-1===t.indexOf("T")&&(t+="T"),t+="".concat(s).concat(r))}return t}function a(e,t){if("number"!=typeof e&&"boolean"!=typeof e||(e=String(e)),"string"==typeof t&&(t=new RegExp(t)),!e||!e.match(t))return 0;var i=e.split(":");return 3600*Number(i[0])+60*Number(i[1])+Number(i[2])}function c(e,t){if("string"==typeof t&&(t=new RegExp(t)),!e||!e.match(t))return 0;var i=new RegExp(t).exec(e)||[],r=i[1],n=(i[2],i[4]),o=i[5],s=i[6],a=i[7],c=0;return c+=Number(a)||0,c+=60*Number(s)||0,c+=3600*Number(o)||0,c+=86400*Number(n)||0,c+=31536e3*Number(r)||0}function l(e,t,i){var r="string"==typeof i?new RegExp(i):i;return s(c(e,r)+c(t,r))}function u(e,t,i){return"string"==typeof i&&(i=new RegExp(i)),o(a(e,i)+a(t,i))}function h(e){var t={};return function e(i,r){if(Object(i)!==i)t[r]=i;else if(Array.isArray(i))for(var n=0,o=i.length;n<o;n++)e(i[n],r+"["+n+"]"),0===o&&(t[r]=[]);else{var s=!0;for(var a in i)({}).hasOwnProperty.call(i,a)&&(s=!1,e(i[a],r?r+"."+a:a));s&&r&&(t[r]={})}}(e,""),t}function _(e){if(Object(e)!==e||Array.isArray(e))return e;var t=/\.?([^.[\]]+)|\[(\d+)]/g,i={};for(var r in e)if({}.hasOwnProperty.call(e,r)){for(var n=i,o="",s=t.exec(r);s;)n=n[o]||(n[o]=s[2]?[]:{}),o=s[2]||s[1],s=t.exec(r);n[o]=e[r]}return i[""]||i}function m(e){return Math.floor(e)===e||String(e).indexOf(".")<0?0:e.toString().split(".")[1].length||0}function d(e,t,i){for(var r="",n=20-(r+=e).length,o=0;o<n;o++)r+=" ";if(r+=": ",i){n=70-(r+=i).length;for(var s=0;s<n;s++)r+=" "}return t&&(r+=t),r}function p(e,t){return null!==(null==e?void 0:e.match(t))}},635:function(e,t,i){i.d(t,{C6:function(){return n},Cl:function(){return o},YH:function(){return a},sH:function(){return s}});var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])},r(e,t)};function n(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function i(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}var o=function(){return o=Object.assign||function(e){for(var t,i=1,r=arguments.length;i<r;i++)for(var n in t=arguments[i])Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e},o.apply(this,arguments)};function s(e,t,i,r){return new(i||(i=Promise))((function(n,o){function s(e){try{c(r.next(e))}catch(e){o(e)}}function a(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?n(e.value):(t=e.value,t instanceof i?t:new i((function(e){e(t)}))).then(s,a)}c((r=r.apply(e,t||[])).next())}))}function a(e,t){var i,r,n,o={label:0,sent:function(){if(1&n[0])throw n[1];return n[1]},trys:[],ops:[]},s=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return s.next=a(0),s.throw=a(1),s.return=a(2),"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;function a(a){return function(c){return function(a){if(i)throw new TypeError("Generator is already executing.");for(;s&&(s=0,a[0]&&(o=0)),o;)try{if(i=1,r&&(n=2&a[0]?r.return:a[0]?r.throw||((n=r.return)&&n.call(r),0):r.next)&&!(n=n.call(r,a[1])).done)return n;switch(r=0,n&&(a=[2&a[0],n.value]),a[0]){case 0:case 1:n=a;break;case 4:return o.label++,{value:a[1],done:!1};case 5:o.label++,r=a[1],a=[0];continue;case 7:a=o.ops.pop(),o.trys.pop();continue;default:if(!(n=o.trys,(n=n.length>0&&n[n.length-1])||6!==a[0]&&2!==a[0])){o=0;continue}if(3===a[0]&&(!n||a[1]>n[0]&&a[1]<n[3])){o.label=a[1];break}if(6===a[0]&&o.label<n[1]){o.label=n[1],n=a;break}if(n&&o.label<n[2]){o.label=n[2],o.ops.push(a);break}n[2]&&o.ops.pop(),o.trys.pop();continue}a=t.call(e,o)}catch(e){a=[6,e],r=0}finally{i=n=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,c])}}}Object.create;Object.create;"function"==typeof SuppressedError&&SuppressedError}},t={};function i(r){var n=t[r];if(void 0!==n)return n.exports;var o=t[r]={exports:{}};return e[r](o,o.exports,i),o.exports}i.d=function(e,t){for(var r in t)i.o(t,r)&&!i.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},i.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},i.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var r={};i.r(r),i.d(r,{AICC:function(){return l},Scorm12API:function(){return a},Scorm2004API:function(){return c}});var n=i(531),o=i(941),s=i(180),a=o.Scorm12Impl,c=s.Scorm2004Impl,l=n.AICCImpl;for(var u in r)this[u]=r[u];r.__esModule&&Object.defineProperty(this,"__esModule",{value:!0})}();
1
+ !function(){"use strict";var e={531:function(e,t,i){i.d(t,{AICCImpl:function(){return R}});var r=i(635),n=i(941),o=i(989),s=i(340),a=i(589),c=i(784),l=i(319),u=i(797),h=i(449),_=u.A.scorm12;function m(e,t,i){return(0,h.q)(e,t,_.TYPE_MISMATCH,c.gv,i)}var d=i(417),p=function(e){function t(){var t=e.call(this)||this;return t.comments=new f,t}return(0,r.C6)(t,e),t.prototype.initialize=function(){var t;e.prototype.initialize.call(this),null===(t=this.comments)||void 0===t||t.initialize()},t.prototype.toJSON=function(){this.jsonString=!0;var e={comments:this.comments};return delete this.jsonString,e},t}(l.J),f=function(e){function t(){return e.call(this,{children:s.A.aicc.comments_children,errorCode:u.A.scorm12.INVALID_SET_VALUE,errorClass:c.gv})||this}return(0,r.C6)(t,e),t}(a.B),g=function(e){function t(){var t=e.call(this)||this;return t._content="",t._location="",t._time="",t}return(0,r.C6)(t,e),Object.defineProperty(t.prototype,"content",{get:function(){return this._content},set:function(e){m(e,d.A.aicc.CMIString256)&&(this._content=e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"location",{get:function(){return this._location},set:function(e){m(e,d.A.aicc.CMIString256)&&(this._location=e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"time",{get:function(){return this._time},set:function(e){m(e,d.A.aicc.CMITime)&&(this._time=e)},enumerable:!1,configurable:!0}),t.prototype.toJSON=function(){this.jsonString=!0;var e={content:this.content,location:this.location,time:this.time};return delete this.jsonString,e},t}(l.J),E=function(e){function t(){var t=e.call(this,s.A.aicc.student_preference_children)||this;return t._lesson_type="",t._text_color="",t._text_location="",t._text_size="",t._video="",t.windows=new a.B({errorCode:u.A.scorm12.INVALID_SET_VALUE,errorClass:c.gv,children:""}),t}return(0,r.C6)(t,e),t.prototype.initialize=function(){var t;e.prototype.initialize.call(this),null===(t=this.windows)||void 0===t||t.initialize()},Object.defineProperty(t.prototype,"lesson_type",{get:function(){return this._lesson_type},set:function(e){m(e,d.A.aicc.CMIString256)&&(this._lesson_type=e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"text_color",{get:function(){return this._text_color},set:function(e){m(e,d.A.aicc.CMIString256)&&(this._text_color=e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"text_location",{get:function(){return this._text_location},set:function(e){m(e,d.A.aicc.CMIString256)&&(this._text_location=e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"text_size",{get:function(){return this._text_size},set:function(e){m(e,d.A.aicc.CMIString256)&&(this._text_size=e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"video",{get:function(){return this._video},set:function(e){m(e,d.A.aicc.CMIString256)&&(this._video=e)},enumerable:!1,configurable:!0}),t.prototype.toJSON=function(){this.jsonString=!0;var e={audio:this.audio,language:this.language,lesson_type:this.lesson_type,speed:this.speed,text:this.text,text_color:this.text_color,text_location:this.text_location,text_size:this.text_size,video:this.video,windows:this.windows};return delete this.jsonString,e},t}(i(181).G),b=function(e){function t(){var t=e.call(this)||this;return t.__children=s.A.aicc.student_demographics_children,t._city="",t._class="",t._company="",t._country="",t._experience="",t._familiar_name="",t._instructor_name="",t._title="",t._native_language="",t._state="",t._street_address="",t._telephone="",t._years_experience="",t}return(0,r.C6)(t,e),Object.defineProperty(t.prototype,"_children",{get:function(){return this.__children},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"city",{get:function(){return this._city},set:function(e){if(this.initialized)throw new c.gv(u.A.scorm12.READ_ONLY_ELEMENT);this._city=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"class",{get:function(){return this._class},set:function(e){if(this.initialized)throw new c.gv(u.A.scorm12.READ_ONLY_ELEMENT);this._class=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"company",{get:function(){return this._company},set:function(e){if(this.initialized)throw new c.gv(u.A.scorm12.READ_ONLY_ELEMENT);this._company=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"country",{get:function(){return this._country},set:function(e){if(this.initialized)throw new c.gv(u.A.scorm12.READ_ONLY_ELEMENT);this._country=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"experience",{get:function(){return this._experience},set:function(e){if(this.initialized)throw new c.gv(u.A.scorm12.READ_ONLY_ELEMENT);this._experience=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"familiar_name",{get:function(){return this._familiar_name},set:function(e){if(this.initialized)throw new c.gv(u.A.scorm12.READ_ONLY_ELEMENT);this._familiar_name=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"instructor_name",{get:function(){return this._instructor_name},set:function(e){if(this.initialized)throw new c.gv(u.A.scorm12.READ_ONLY_ELEMENT);this._instructor_name=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"title",{get:function(){return this._title},set:function(e){if(this.initialized)throw new c.gv(u.A.scorm12.READ_ONLY_ELEMENT);this._title=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"native_language",{get:function(){return this._native_language},set:function(e){if(this.initialized)throw new c.gv(u.A.scorm12.READ_ONLY_ELEMENT);this._native_language=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"state",{get:function(){return this._state},set:function(e){if(this.initialized)throw new c.gv(u.A.scorm12.READ_ONLY_ELEMENT);this._state=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"street_address",{get:function(){return this._street_address},set:function(e){if(this.initialized)throw new c.gv(u.A.scorm12.READ_ONLY_ELEMENT);this._street_address=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"telephone",{get:function(){return this._telephone},set:function(e){if(this.initialized)throw new c.gv(u.A.scorm12.READ_ONLY_ELEMENT);this._telephone=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"years_experience",{get:function(){return this._years_experience},set:function(e){if(this.initialized)throw new c.gv(u.A.scorm12.READ_ONLY_ELEMENT);this._years_experience=e},enumerable:!1,configurable:!0}),t.prototype.toJSON=function(){this.jsonString=!0;var e={city:this.city,class:this.class,company:this.company,country:this.country,experience:this.experience,familiar_name:this.familiar_name,instructor_name:this.instructor_name,title:this.title,native_language:this.native_language,state:this.state,street_address:this.street_address,telephone:this.telephone,years_experience:this.years_experience};return delete this.jsonString,e},t}(l.J),y=i(434),A=function(e){function t(){return e.call(this,{children:s.A.aicc.tries_children})||this}return(0,r.C6)(t,e),t}(a.B),M=function(e){function t(){var t=e.call(this)||this;return t._status="",t._time="",t.score=new y._({score_children:s.A.aicc.score_children,score_range:d.A.aicc.score_range,invalidErrorCode:u.A.scorm12.INVALID_SET_VALUE,invalidTypeCode:u.A.scorm12.TYPE_MISMATCH,invalidRangeCode:u.A.scorm12.VALUE_OUT_OF_RANGE,errorClass:c.gv}),t}return(0,r.C6)(t,e),t.prototype.initialize=function(){var t;e.prototype.initialize.call(this),null===(t=this.score)||void 0===t||t.initialize()},Object.defineProperty(t.prototype,"status",{get:function(){return this._status},set:function(e){m(e,d.A.aicc.CMIStatus2)&&(this._status=e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"time",{get:function(){return this._time},set:function(e){m(e,d.A.aicc.CMITime)&&(this._time=e)},enumerable:!1,configurable:!0}),t.prototype.toJSON=function(){this.jsonString=!0;var e={status:this.status,time:this.time,score:this.score};return delete this.jsonString,e},t}(l.J),v=i(532),C=function(e){function t(){return e.call(this,{children:s.A.aicc.attempt_records_children})||this}return(0,r.C6)(t,e),t}(a.B),S=function(e){function t(){var t=e.call(this)||this;return t._lesson_status="",t.score=new y._({score_children:s.A.aicc.score_children,score_range:d.A.aicc.score_range,invalidErrorCode:u.A.scorm12.INVALID_SET_VALUE,invalidTypeCode:u.A.scorm12.TYPE_MISMATCH,invalidRangeCode:u.A.scorm12.VALUE_OUT_OF_RANGE,errorClass:c.gv}),t}return(0,r.C6)(t,e),t.prototype.initialize=function(){var t;e.prototype.initialize.call(this),null===(t=this.score)||void 0===t||t.initialize()},Object.defineProperty(t.prototype,"lesson_status",{get:function(){return this._lesson_status},set:function(e){m(e,d.A.aicc.CMIStatus2)&&(this._lesson_status=e)},enumerable:!1,configurable:!0}),t.prototype.toJSON=function(){this.jsonString=!0;var e={lesson_status:this.lesson_status,score:this.score};return delete this.jsonString,e},t}(l.J),I=function(e){function t(){var t=e.call(this,s.A.aicc.student_data_children)||this;return t._tries_during_lesson="",t.tries=new A,t.attempt_records=new C,t}return(0,r.C6)(t,e),t.prototype.initialize=function(){var t,i;e.prototype.initialize.call(this),null===(t=this.tries)||void 0===t||t.initialize(),null===(i=this.attempt_records)||void 0===i||i.initialize()},Object.defineProperty(t.prototype,"tries_during_lesson",{get:function(){return this._tries_during_lesson},set:function(e){if(this.initialized)throw new c.gv(u.A.scorm12.READ_ONLY_ELEMENT);this._tries_during_lesson=e},enumerable:!1,configurable:!0}),t.prototype.toJSON=function(){this.jsonString=!0;var e={mastery_score:this.mastery_score,max_time_allowed:this.max_time_allowed,time_limit_action:this.time_limit_action,tries:this.tries,attempt_records:this.attempt_records};return delete this.jsonString,e},t}(v.X),w=function(e){function t(){return e.call(this,{children:s.A.aicc.paths_children})||this}return(0,r.C6)(t,e),t}(a.B),O=function(e){function t(){var t=e.call(this)||this;return t._location_id="",t._date="",t._time="",t._status="",t._why_left="",t._time_in_element="",t}return(0,r.C6)(t,e),Object.defineProperty(t.prototype,"location_id",{get:function(){return this._location_id},set:function(e){m(e,d.A.aicc.CMIString256)&&(this._location_id=e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"date",{get:function(){return this._date},set:function(e){m(e,d.A.aicc.CMIString256)&&(this._date=e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"time",{get:function(){return this._time},set:function(e){m(e,d.A.aicc.CMITime)&&(this._time=e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"status",{get:function(){return this._status},set:function(e){m(e,d.A.aicc.CMIStatus2)&&(this._status=e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"why_left",{get:function(){return this._why_left},set:function(e){m(e,d.A.aicc.CMIString256)&&(this._why_left=e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"time_in_element",{get:function(){return this._time_in_element},set:function(e){m(e,d.A.aicc.CMITime)&&(this._time_in_element=e)},enumerable:!1,configurable:!0}),t.prototype.toJSON=function(){this.jsonString=!0;var e={location_id:this.location_id,date:this.date,time:this.time,status:this.status,why_left:this.why_left,time_in_element:this.time_in_element};return delete this.jsonString,e},t}(l.J),T=function(e){function t(t){void 0===t&&(t=!1);var i=e.call(this,s.A.aicc.cmi_children)||this;return t&&i.initialize(),i.student_preference=new E,i.student_data=new I,i.student_demographics=new b,i.evaluation=new p,i.paths=new w,i}return(0,r.C6)(t,e),t.prototype.initialize=function(){var t,i,r,n,o;e.prototype.initialize.call(this),null===(t=this.student_preference)||void 0===t||t.initialize(),null===(i=this.student_data)||void 0===i||i.initialize(),null===(r=this.student_demographics)||void 0===r||r.initialize(),null===(n=this.evaluation)||void 0===n||n.initialize(),null===(o=this.paths)||void 0===o||o.initialize()},t.prototype.toJSON=function(){this.jsonString=!0;var e={suspend_data:this.suspend_data,launch_data:this.launch_data,comments:this.comments,comments_from_lms:this.comments_from_lms,core:this.core,objectives:this.objectives,student_data:this.student_data,student_preference:this.student_preference,student_demographics:this.student_demographics,interactions:this.interactions,evaluation:this.evaluation,paths:this.paths};return delete this.jsonString,e},t}(o.Y),N=i(331),L=i(864),R=function(e){function t(t){var i=e.call(this,t)||this;return i.cmi=new T,i.nav=new N.A,i}return(0,r.C6)(t,e),t.prototype.getChildElement=function(t,i,r){var n=e.prototype.getChildElement.call(this,t,i,r);return n||((0,L.J6)(t,"cmi\\.evaluation\\.comments\\.\\d+")?n=new g:(0,L.J6)(t,"cmi\\.student_data\\.tries\\.\\d+")?n=new M:(0,L.J6)(t,"cmi\\.student_data\\.attempt_records\\.\\d+")?n=new S:(0,L.J6)(t,"cmi\\.paths\\.\\d+")&&(n=new O)),n},t.prototype.replaceWithAnotherScormAPI=function(e){this.cmi=e.cmi,this.nav=e.nav},t}(n.Scorm12Impl)},429:function(e,t,i){i.d(t,{A:function(){return m}});var r=i(635),n=i(589),o=i(784),s=i(797),a=i(340),c=i(864),l=i(56),u={autocommit:!1,autocommitSeconds:10,asyncCommit:!1,sendFullCommit:!0,lmsCommitUrl:!1,dataCommitFormat:"json",commitRequestDataType:"application/json;charset=UTF-8",autoProgress:!1,logLevel:l.Mb.ERROR,selfReportSessionTime:!1,alwaysSendTotalTime:!1,renderCommonCommitFields:!1,strict_errors:!0,xhrHeaders:{},xhrWithCredentials:!1,fetchMode:"cors",responseHandler:function(e){return(0,r.sH)(this,void 0,void 0,(function(){var t,i;return(0,r.YH)(this,(function(r){switch(r.label){case 0:return void 0===e?[3,2]:[4,e.text()];case 1:return t=r.sent(),i=null,t&&(i=JSON.parse(t)),null!==i&&{}.hasOwnProperty.call(i,"result")?[2,{result:i.result,errorCode:i.errorCode?i.errorCode:i.result===a.A.global.SCORM_TRUE?0:101}]:200===e.status?[2,{result:a.A.global.SCORM_TRUE,errorCode:0}]:[2,{result:a.A.global.SCORM_FALSE,errorCode:101}];case 2:return[2,{result:a.A.global.SCORM_FALSE,errorCode:101}]}}))}))},requestHandler:function(e){return e},onLogMessage:function(e,t){switch(e){case"4":case 4:case"ERROR":case l.Mb.ERROR:console.error(t);break;case"3":case 3:case"WARN":case l.Mb.WARN:console.warn(t);break;case"2":case 2:case"INFO":case l.Mb.INFO:console.info(t);break;case"1":case 1:case"DEBUG":case l.Mb.DEBUG:console.debug?console.debug(t):console.log(t)}},scoItemIds:[],scoItemIdValidator:!1},h=function(){function e(e,t,i){this._cancelled=!1,this._API=e,this._timeout=setTimeout(this.wrapper.bind(this),t),this._callback=i}return e.prototype.cancel=function(){this._cancelled=!0,this._timeout&&clearTimeout(this._timeout)},e.prototype.wrapper=function(){var e=this;this._cancelled||(0,r.sH)(e,void 0,void 0,(function(){return(0,r.YH)(this,(function(e){switch(e.label){case 0:return[4,this._API.commit(this._callback)];case 1:return[2,e.sent()]}}))}))},e}(),_=function(){function e(t,i){var r=this.constructor;if(this._settings=u,r===e)throw new TypeError("Cannot construct BaseAPI instances directly");this.currentState=a.A.global.STATE_NOT_INITIALIZED,this.lastErrorCode="0",this.listenerArray=[],this._error_codes=t,i&&(this.settings=i),this.apiLogLevel=this.settings.logLevel,this.selfReportSessionTime=this.settings.selfReportSessionTime,void 0===this.apiLogLevel&&(this.apiLogLevel=l.Mb.NONE)}return e.prototype.commonReset=function(e){this.settings=(0,r.Cl)((0,r.Cl)({},this.settings),e),this.currentState=a.A.global.STATE_NOT_INITIALIZED,this.lastErrorCode="0",this.listenerArray=[]},e.prototype.initialize=function(e,t,i){var r=a.A.global.SCORM_FALSE;return this.isInitialized()?this.throwSCORMError(this._error_codes.INITIALIZED,t):this.isTerminated()?this.throwSCORMError(this._error_codes.TERMINATED,i):(this.selfReportSessionTime&&this.cmi.setStartTime(),this.currentState=a.A.global.STATE_INITIALIZED,this.lastErrorCode="0",r=a.A.global.SCORM_TRUE,this.processListeners(e)),this.apiLog(e,"returned: "+r,l.Mb.INFO),this.clearSCORMError(r),r},e.prototype.apiLog=function(e,t,i,r){t=(0,c.hw)(e,t,r),i>=this.apiLogLevel&&this.settings.onLogMessage(i,t)},Object.defineProperty(e.prototype,"error_codes",{get:function(){return this._error_codes},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"settings",{get:function(){return this._settings},set:function(e){this._settings=(0,r.Cl)((0,r.Cl)({},this._settings),e)},enumerable:!1,configurable:!0}),e.prototype.terminate=function(e,t){return(0,r.sH)(this,void 0,void 0,(function(){var i,n;return(0,r.YH)(this,(function(r){switch(r.label){case 0:return i=a.A.global.SCORM_FALSE,this.checkState(t,this._error_codes.TERMINATION_BEFORE_INIT,this._error_codes.MULTIPLE_TERMINATION)?(this.currentState=a.A.global.STATE_TERMINATED,[4,this.storeData(!0)]):[3,2];case 1:void 0!==(n=r.sent()).errorCode&&n.errorCode>0&&this.throwSCORMError(n.errorCode),i=void 0!==n&&n.result?n.result:a.A.global.SCORM_FALSE,t&&(this.lastErrorCode="0"),i=a.A.global.SCORM_TRUE,this.processListeners(e),r.label=2;case 2:return this.apiLog(e,"returned: "+i,l.Mb.INFO),this.clearSCORMError(i),[2,i]}}))}))},e.prototype.getValue=function(e,t,i){var r="";if(this.checkState(t,this._error_codes.RETRIEVE_BEFORE_INIT,this._error_codes.RETRIEVE_AFTER_TERM)){t&&(this.lastErrorCode="0");try{r=this.getCMIValue(i)}catch(e){r=this.handleValueAccessException(e,r)}this.processListeners(e,i)}return this.apiLog(e,": returned: "+r,l.Mb.INFO,i),void 0===r?"":(this.clearSCORMError(r),r)},e.prototype.setValue=function(e,t,i,r,n){void 0!==n&&(n=String(n));var o=a.A.global.SCORM_FALSE;if(this.checkState(i,this._error_codes.STORE_BEFORE_INIT,this._error_codes.STORE_AFTER_TERM)){i&&(this.lastErrorCode="0");try{o=this.setCMIValue(r,n)}catch(e){this.handleValueAccessException(e,o)}this.processListeners(e,r,n)}return void 0===o&&(o=a.A.global.SCORM_FALSE),"0"===String(this.lastErrorCode)&&this.settings.autocommit&&this.scheduleCommit(1e3*this.settings.autocommitSeconds,t),this.apiLog(e,": "+n+": result: "+o,l.Mb.INFO,r),this.clearSCORMError(o),o},e.prototype.commit=function(e){return(0,r.sH)(this,arguments,void 0,(function(e,t){var i,n;return void 0===t&&(t=!1),(0,r.YH)(this,(function(r){switch(r.label){case 0:return this.clearScheduledCommit(),i=a.A.global.SCORM_FALSE,this.checkState(t,this._error_codes.COMMIT_BEFORE_INIT,this._error_codes.COMMIT_AFTER_TERM)?[4,this.storeData(!1)]:[3,2];case 1:(n=r.sent()).errorCode&&n.errorCode>0&&this.throwSCORMError(n.errorCode),i=void 0!==n&&n.result?n.result:a.A.global.SCORM_FALSE,this.apiLog(e," Result: "+i,l.Mb.DEBUG,"HttpRequest"),t&&(this.lastErrorCode="0"),this.processListeners(e),r.label=2;case 2:return this.apiLog(e,"returned: "+i,l.Mb.INFO),this.clearSCORMError(i),[2,i]}}))}))},e.prototype.getLastError=function(e){var t=String(this.lastErrorCode);return this.processListeners(e),this.apiLog(e,"returned: "+t,l.Mb.INFO),t},e.prototype.getErrorString=function(e,t){var i="";return null!==t&&""!==t&&(i=this.getLmsErrorMessageDetails(t),this.processListeners(e)),this.apiLog(e,"returned: "+i,l.Mb.INFO),i},e.prototype.getDiagnostic=function(e,t){var i="";return null!==t&&""!==t&&(i=this.getLmsErrorMessageDetails(t,!0),this.processListeners(e)),this.apiLog(e,"returned: "+i,l.Mb.INFO),i},e.prototype.checkState=function(e,t,i){return this.isNotInitialized()?(this.throwSCORMError(t),!1):!e||!this.isTerminated()||(this.throwSCORMError(i),!1)},e.prototype.getLmsErrorMessageDetails=function(e,t){throw void 0===t&&(t=!1),new Error("The getLmsErrorMessageDetails method has not been implemented")},e.prototype.getCMIValue=function(e){throw new Error("The getCMIValue method has not been implemented")},e.prototype.setCMIValue=function(e,t){throw new Error("The setCMIValue method has not been implemented")},e.prototype._commonSetCMIValue=function(e,t,i,o){if(!i||""===i)return a.A.global.SCORM_FALSE;for(var s=i.split("."),u=this,h=a.A.global.SCORM_FALSE,_=!1,m="The data model element passed to ".concat(e," (").concat(i,") is not a valid SCORM data model element."),d=t?this._error_codes.UNDEFINED_DATA_MODEL:this._error_codes.GENERAL,p=0;p<s.length;p++){var f=s[p];if(p===s.length-1)t&&"{target="===f.substring(0,8)?this.isInitialized()?this.throwSCORMError(this._error_codes.READ_ONLY_ELEMENT):u=(0,r.Cl)((0,r.Cl)({},u),{attribute:o}):this._checkObjectHasProperty(u,f)?((0,c.J6)(i,"\\.correct_responses\\.\\d+")&&this.isInitialized()&&this.validateCorrectResponse(i,o),t&&"0"!==this.lastErrorCode||(u[f]=o,h=a.A.global.SCORM_TRUE)):this.throwSCORMError(d,m);else{if(!(u=u[f])){this.throwSCORMError(d,m);break}if(u instanceof n.B){var g=parseInt(s[p+1],10);if(!isNaN(g)){var E=u.childArray[g];if(E)u=E,_=!0;else{var b=this.getChildElement(i,o,_);_=!0,b?(u.initialized&&b.initialize(),u.childArray.push(b),u=b):this.throwSCORMError(d,m)}p++}}}}return h===a.A.global.SCORM_FALSE&&this.apiLog(e,"There was an error setting the value for: ".concat(i,", value of: ").concat(o),l.Mb.WARN),h},e.prototype._commonGetCMIValue=function(e,t,i){if(!i||""===i)return"";for(var r=i.split("."),o=this,a=null,c="The data model element passed to ".concat(e," (").concat(i,") has not been initialized."),l="The data model element passed to ".concat(e," (").concat(i,") is not a valid SCORM data model element."),u=t?this._error_codes.UNDEFINED_DATA_MODEL:this._error_codes.GENERAL,h=0;h<r.length;h++){if(a=r[h],t){if("{target="===String(a).substring(0,8)&&"function"==typeof o._isTargetValid){var _=String(a).substring(8,String(a).length-9);return o._isTargetValid(_)}if(!this._checkObjectHasProperty(o,a))return void this.throwSCORMError(u,l)}else if(h===r.length-1&&!this._checkObjectHasProperty(o,a))return void this.throwSCORMError(u,l);if(void 0===(o=o[a])){this.throwSCORMError(u,l);break}if(o instanceof n.B){var m=parseInt(r[h+1],10);if(!isNaN(m)){var d=o.childArray[m];if(!d){this.throwSCORMError(this._error_codes.VALUE_NOT_INITIALIZED,c);break}o=d,h++}}}if(null!=o)return o;t||("_children"===a?this.throwSCORMError(s.A.scorm12.CHILDREN_ERROR):"_count"===a&&this.throwSCORMError(s.A.scorm12.COUNT_ERROR))},e.prototype.isInitialized=function(){return this.currentState===a.A.global.STATE_INITIALIZED},e.prototype.isNotInitialized=function(){return this.currentState===a.A.global.STATE_NOT_INITIALIZED},e.prototype.isTerminated=function(){return this.currentState===a.A.global.STATE_TERMINATED},e.prototype.on=function(e,t){if(t)for(var i=e.split(" "),r=0;r<i.length;r++){var n=i[r].split(".");if(0===n.length)return;var o=n[0],s=null;n.length>1&&(s=e.replace(o+".","")),this.listenerArray.push({functionName:o,CMIElement:s,callback:t}),this.apiLog("on","Added event listener: ".concat(this.listenerArray.length),l.Mb.INFO,o)}},e.prototype.off=function(e,t){if(t)for(var i=e.split(" "),r=function(r){var o=i[r].split(".");if(0===o.length)return{value:void 0};var s=o[0],a=null;o.length>1&&(a=e.replace(s+".",""));var c=n.listenerArray.findIndex((function(e){return e.functionName===s&&e.CMIElement===a&&e.callback===t}));-1!==c&&(n.listenerArray.splice(c,1),n.apiLog("off","Removed event listener: ".concat(n.listenerArray.length),l.Mb.INFO,s))},n=this,o=0;o<i.length;o++){var s=r(o);if("object"==typeof s)return s.value}},e.prototype.clear=function(e){for(var t=e.split(" "),i=function(i){var n=t[i].split(".");if(0===n.length)return{value:void 0};var o=n[0],s=null;n.length>1&&(s=e.replace(o+".","")),r.listenerArray=r.listenerArray.filter((function(e){return e.functionName!==o&&e.CMIElement!==s}))},r=this,n=0;n<t.length;n++){var o=i(n);if("object"==typeof o)return o.value}},e.prototype.processListeners=function(e,t,i){this.apiLog(e,i,l.Mb.INFO,t);for(var r=0;r<this.listenerArray.length;r++){var n=this.listenerArray[r],o=n.functionName===e,s=!!n.CMIElement,a=!1;a=t&&n.CMIElement&&"*"===n.CMIElement.substring(n.CMIElement.length-1)?0===t.indexOf(n.CMIElement.substring(0,n.CMIElement.length-1)):n.CMIElement===t,!o||s&&!a||(this.apiLog("processListeners","Processing listener: ".concat(n.functionName),l.Mb.INFO,t),n.callback(t,i))}},e.prototype.throwSCORMError=function(e,t){t||(t=this.getLmsErrorMessageDetails(e)),this.apiLog("throwSCORMError",e+": "+t,l.Mb.ERROR),this.lastErrorCode=String(e)},e.prototype.clearSCORMError=function(e){void 0!==e&&e!==a.A.global.SCORM_FALSE&&(this.lastErrorCode="0")},e.prototype.loadFromFlattenedJSON=function(e,t){var i=this;if(t||(t=""),this.isNotInitialized()){var r,n=/^(cmi\.interactions\.)(\d+)\.(.*)$/,o=/^(cmi\.objectives\.)(\d+)\.(.*)$/,s=Object.keys(e).map((function(t){return[String(t),e[t]]}));s.sort((function(e,t){var i,r=e[0],s=(e[1],t[0]);t[1];return null!==(i=a(r,s,n))||null!==(i=a(r,s,o))?i:r<s?-1:r>s?1:0})),s.forEach((function(e){(r={})[e[0]]=e[1],i.loadFromJSON((0,c.sB)(r),t)}))}else console.error("loadFromFlattenedJSON can only be called before the call to lmsInitialize.");function a(e,t,i){var r,n=e.match(i);if(null!==n&&null!==(r=t.match(i))){var o=Number(n[2]),s=Number(r[2]);return o===s?"id"===n[3]?-1:"type"===n[3]?"id"===r[3]?1:-1:1:o-s}return null}},e.prototype.loadFromJSON=function(e,t){if(void 0===t&&(t=""),this.isNotInitialized()){for(var i in t=void 0!==t?t:"cmi",this.startingData=e,e)if({}.hasOwnProperty.call(e,i)&&e[i]){var r=(t?t+".":"")+i,n=e[i];if(n.childArray)for(var o=0;o<n.childArray.length;o++)this.loadFromJSON(n.childArray[o],r+"."+o);else n.constructor===Object?this.loadFromJSON(n,r):this.setCMIValue(r,n)}}else console.error("loadFromJSON can only be called before the call to lmsInitialize.")},e.prototype.renderCMIToJSONString=function(){var e=this.cmi;return this.settings.sendFullCommit?JSON.stringify({cmi:e}):JSON.stringify({cmi:e},(function(e,t){return void 0===t?null:t}),2)},e.prototype.renderCMIToJSONObject=function(){return JSON.parse(this.renderCMIToJSONString())},e.prototype.processHttpRequest=function(e,t){return(0,r.sH)(this,arguments,void 0,(function(e,t,i){var n,o,s,c=this;return void 0===i&&(i=!1),(0,r.YH)(this,(function(u){switch(u.label){case 0:return n=this,o={result:a.A.global.SCORM_FALSE,errorCode:this.error_codes.GENERAL},i?(this.performFetch(e,t).then((function(e){return(0,r.sH)(c,void 0,void 0,(function(){return(0,r.YH)(this,(function(t){switch(t.label){case 0:return[4,this.transformResponse(e)];case 1:return t.sent(),[2]}}))}))})),[2,{result:a.A.global.SCORM_TRUE,errorCode:0}]):(s=function(e,t,i){return(0,r.sH)(c,void 0,void 0,(function(){var s,a;return(0,r.YH)(this,(function(r){switch(r.label){case 0:return r.trys.push([0,2,,3]),t=i.requestHandler(t),[4,this.performFetch(e,t)];case 1:return s=r.sent(),[2,this.transformResponse(s)];case 2:return a=r.sent(),this.apiLog("processHttpRequest",a,l.Mb.ERROR),n.processListeners("CommitError"),[2,o];case 3:return[2]}}))}))},[4,s(e,t,this.settings)]);case 1:return[2,u.sent()]}}))}))},e.prototype.scheduleCommit=function(e,t){this._timeout||(this._timeout=new h(this,e,t),this.apiLog("scheduleCommit","scheduled",l.Mb.DEBUG,""))},e.prototype.clearScheduledCommit=function(){this._timeout&&(this._timeout.cancel(),this._timeout=void 0,this.apiLog("clearScheduledCommit","cleared",l.Mb.DEBUG,""))},e.prototype._checkObjectHasProperty=function(e,t){return Object.hasOwnProperty.call(e,t)||null!=Object.getOwnPropertyDescriptor(Object.getPrototypeOf(e),t)||t in e},e.prototype.handleValueAccessException=function(e,t){return e instanceof o.yI?(this.lastErrorCode=String(e.errorCode),t=a.A.global.SCORM_FALSE):(e instanceof Error&&e.message?console.error(e.message):console.error(e),this.throwSCORMError(this._error_codes.GENERAL)),t},e.prototype.getCommitObject=function(e){var t=e||this.settings.alwaysSendTotalTime,i=this.settings.renderCommonCommitFields?this.renderCommitObject(t):this.renderCommitCMI(t);return[l.Mb.DEBUG,"1",1,"DEBUG"].includes(this.apiLogLevel)&&(console.debug("Commit (terminated: "+(e?"yes":"no")+"): "),console.debug(i)),i},e.prototype.performFetch=function(e,t){return(0,r.sH)(this,void 0,void 0,(function(){return(0,r.YH)(this,(function(i){return[2,fetch(e,{method:"POST",mode:this.settings.fetchMode,body:t instanceof Array?t.join("&"):JSON.stringify(t),headers:(0,r.Cl)((0,r.Cl)({},this.settings.xhrHeaders),{"Content-Type":this.settings.commitRequestDataType}),credentials:this.settings.xhrWithCredentials?"include":void 0,keepalive:!0})]}))}))},e.prototype.transformResponse=function(e){return(0,r.sH)(this,void 0,void 0,(function(){var t,i;return(0,r.YH)(this,(function(r){switch(r.label){case 0:return"function"!=typeof this.settings.responseHandler?[3,2]:[4,this.settings.responseHandler(e)];case 1:return i=r.sent(),[3,4];case 2:return[4,e.json()];case 3:i=r.sent(),r.label=4;case 4:return t=i,e.status>=200&&e.status<=299&&(!0===t.result||t.result===a.A.global.SCORM_TRUE)?this.processListeners("CommitSuccess"):this.processListeners("CommitError"),[2,t]}}))}))},e}(),m=_},941:function(e,t,i){i.d(t,{Scorm12Impl:function(){return m}});var r=i(635),n=i(989),o=i(864),s=i(340),a=i(797),c=i(176),l=i(833),u=i(331),h=i(417),_=i(56),m=function(e){function t(t){var i=this;return t&&void 0===t.mastery_override&&(t.mastery_override=!1),(i=e.call(this,a.A.scorm12,t)||this).statusSetByModule=!1,i.cmi=new n.Y,i.nav=new u.A,i.LMSInitialize=i.lmsInitialize,i.LMSFinish=i.lmsFinish,i.LMSGetValue=i.lmsGetValue,i.LMSSetValue=i.lmsSetValue,i.LMSCommit=i.lmsCommit,i.LMSGetLastError=i.lmsGetLastError,i.LMSGetErrorString=i.lmsGetErrorString,i.LMSGetDiagnostic=i.lmsGetDiagnostic,i}return(0,r.C6)(t,e),t.prototype.reset=function(e){this.commonReset(e),this.cmi=new n.Y,this.nav=new u.A},t.prototype.lmsInitialize=function(){return this.cmi.initialize(),this.cmi.core.lesson_status?this.statusSetByModule=!0:this.cmi.core.lesson_status="not attempted",this.initialize("LMSInitialize","LMS was already initialized!","LMS is already finished!")},t.prototype.lmsFinish=function(){var e=this;return(0,r.sH)(e,void 0,void 0,(function(){return(0,r.YH)(this,(function(e){switch(e.label){case 0:return[4,this.internalFinish()];case 1:return e.sent(),[2]}}))})),s.A.global.SCORM_TRUE},t.prototype.internalFinish=function(){return(0,r.sH)(this,void 0,void 0,(function(){var e;return(0,r.YH)(this,(function(t){switch(t.label){case 0:return[4,this.terminate("LMSFinish",!0)];case 1:return(e=t.sent())===s.A.global.SCORM_TRUE&&(""!==this.nav.event?"continue"===this.nav.event?this.processListeners("SequenceNext"):this.processListeners("SequencePrevious"):this.settings.autoProgress&&this.processListeners("SequenceNext")),[2,e]}}))}))},t.prototype.lmsGetValue=function(e){return this.getValue("LMSGetValue",!1,e)},t.prototype.lmsSetValue=function(e,t){return"cmi.core.lesson_status"===e&&(this.statusSetByModule=!0),this.setValue("LMSSetValue","LMSCommit",!1,e,t)},t.prototype.lmsCommit=function(){var e=this;return this.settings.asyncCommit?this.scheduleCommit(500,"LMSCommit"):(0,r.sH)(e,void 0,void 0,(function(){return(0,r.YH)(this,(function(e){switch(e.label){case 0:return[4,this.commit("LMSCommit",!1)];case 1:return e.sent(),[2]}}))})),s.A.global.SCORM_TRUE},t.prototype.lmsGetLastError=function(){return this.getLastError("LMSGetLastError")},t.prototype.lmsGetErrorString=function(e){return this.getErrorString("LMSGetErrorString",e)},t.prototype.lmsGetDiagnostic=function(e){return this.getDiagnostic("LMSGetDiagnostic",e)},t.prototype.setCMIValue=function(e,t){return this._commonSetCMIValue("LMSSetValue",!1,e,t)},t.prototype.getCMIValue=function(e){return this._commonGetCMIValue("getCMIValue",!1,e)},t.prototype.getChildElement=function(e,t,i){return(0,o.J6)(e,"cmi\\.objectives\\.\\d+")?new c.N:i&&(0,o.J6)(e,"cmi\\.interactions\\.\\d+\\.correct_responses\\.\\d+")?new l.cb:i&&(0,o.J6)(e,"cmi\\.interactions\\.\\d+\\.objectives\\.\\d+")?new l.Oh:!i&&(0,o.J6)(e,"cmi\\.interactions\\.\\d+")?new l.WP:null},t.prototype.validateCorrectResponse=function(e,t){},t.prototype.getLmsErrorMessageDetails=function(e,t){var i="No Error",r="No Error";return e=String(e),s.A.scorm12.error_descriptions[e]&&(i=s.A.scorm12.error_descriptions[e].basicMessage,r=s.A.scorm12.error_descriptions[e].detailMessage),t?r:i},t.prototype.replaceWithAnotherScormAPI=function(e){this.cmi=e.cmi},t.prototype.renderCommitCMI=function(e){var t=this.renderCMIToJSONObject();e&&(t.cmi.core.total_time=this.cmi.getCurrentTotalTime());var i=[],r=o.Bq(t);switch(this.settings.dataCommitFormat){case"flattened":return o.Bq(t);case"params":for(var n in r)({}).hasOwnProperty.call(r,n)&&i.push("".concat(n,"=").concat(r[n]));return i;default:return t}},t.prototype.renderCommitObject=function(e){var t=this.renderCommitCMI(e),i=this.cmi.getCurrentTotalTime(),r=o.f4(i,h.A.scorm12.CMITimespan),n=this.cmi.core.lesson_status,s=_.lC.unknown,a=_.YE.unknown;n&&(s="completed"===n||"passed"===n?_.lC.completed:_.lC.incomplete,"passed"===n?a=_.YE.passed:"failed"===n&&(a=_.YE.failed));var c=this.cmi.core.score,l=null;c&&(l={},Number.isNaN(Number.parseFloat(c.raw))||(l.raw=Number.parseFloat(c.raw)),Number.isNaN(Number.parseFloat(c.min))||(l.min=Number.parseFloat(c.min)),Number.isNaN(Number.parseFloat(c.max))||(l.max=Number.parseFloat(c.max)));var u={successStatus:a,completionStatus:s,runtimeData:t,totalTimeSeconds:r};return l&&(u.score=l),u},t.prototype.storeData=function(e){return(0,r.sH)(this,void 0,void 0,(function(){var t,i,n,o,a;return(0,r.YH)(this,(function(r){switch(r.label){case 0:return e&&(t=this.cmi.core.lesson_status,this.cmi.core.lesson_status&&(this.statusSetByModule||"not attempted"!==this.cmi.core.lesson_status)||(this.cmi.core.lesson_status="completed"),"normal"===this.cmi.core.lesson_mode?"credit"===this.cmi.core.credit&&this.settings.mastery_override&&""!==this.cmi.student_data.mastery_score&&""!==this.cmi.core.score.raw&&(this.cmi.core.lesson_status=parseFloat(this.cmi.core.score.raw)>=parseFloat(this.cmi.student_data.mastery_score)?"passed":"failed"):"browse"===this.cmi.core.lesson_mode&&""===((null===(a=null===(o=null===(n=this.startingData)||void 0===n?void 0:n.cmi)||void 0===o?void 0:o.core)||void 0===a?void 0:a.lesson_status)||"")&&"not attempted"===t&&(this.cmi.core.lesson_status="browsed")),i=this.getCommitObject(e),"string"!=typeof this.settings.lmsCommitUrl?[3,2]:[4,this.processHttpRequest(this.settings.lmsCommitUrl,i,e)];case 1:return[2,r.sent()];case 2:return[2,{result:s.A.global.SCORM_TRUE,errorCode:0}]}}))}))},t}(i(429).A)},180:function(e,t,i){i.d(t,{Scorm2004Impl:function(){return P}});var r=i(635),n=i(429),o=i(340),s=i(417),a=i(797),c=i(784),l=i(864),u=i(319),h=i(449);function _(e,t,i){return(0,h.q)(e,t,a.A.scorm2004.TYPE_MISMATCH,c.wq,i)}function m(e,t){return(0,h.W)(e,t,a.A.scorm2004.VALUE_OUT_OF_RANGE,c.wq)}var d=function(e){function t(){var t=e.call(this)||this;return t.__children=o.A.scorm2004.student_preference_children,t._audio_level="1",t._language="",t._delivery_speed="1",t._audio_captioning="0",t}return(0,r.C6)(t,e),Object.defineProperty(t.prototype,"_children",{get:function(){return this.__children},set:function(e){throw new c.wq(a.A.scorm2004.READ_ONLY_ELEMENT)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"audio_level",{get:function(){return this._audio_level},set:function(e){_(e,s.A.scorm2004.CMIDecimal)&&m(e,s.A.scorm2004.audio_range)&&(this._audio_level=e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"language",{get:function(){return this._language},set:function(e){_(e,s.A.scorm2004.CMILang)&&(this._language=e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"delivery_speed",{get:function(){return this._delivery_speed},set:function(e){_(e,s.A.scorm2004.CMIDecimal)&&m(e,s.A.scorm2004.speed_range)&&(this._delivery_speed=e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"audio_captioning",{get:function(){return this._audio_captioning},set:function(e){_(e,s.A.scorm2004.CMISInteger)&&m(e,s.A.scorm2004.text_range)&&(this._audio_captioning=e)},enumerable:!1,configurable:!0}),t.prototype.toJSON=function(){this.jsonString=!0;var e={audio_level:this.audio_level,language:this.language,delivery_speed:this.delivery_speed,audio_captioning:this.audio_captioning};return delete this.jsonString,e},t}(u.J),p=i(589),f=s.A.scorm2004,g={"true-false":{format:"^true$|^false$",max:1,delimiter:"",unique:!1},choice:{format:f.CMILongIdentifier,max:36,delimiter:"[,]",unique:!0},"fill-in":{format:f.CMILangString250,max:10,delimiter:"[,]",unique:!1},"long-fill-in":{format:f.CMILangString4000,max:1,delimiter:"",unique:!1},matching:{format:f.CMIShortIdentifier,format2:f.CMIShortIdentifier,max:36,delimiter:"[,]",delimiter2:"[.]",unique:!1},performance:{format:"^$|"+f.CMIShortIdentifier,format2:f.CMIDecimal+"|^$|"+f.CMIShortIdentifier,max:250,delimiter:"[,]",delimiter2:"[.]",unique:!1},sequencing:{format:f.CMIShortIdentifier,max:36,delimiter:"[,]",unique:!1},likert:{format:f.CMIShortIdentifier,max:1,delimiter:"",unique:!1},numeric:{format:f.CMIDecimal,max:1,delimiter:"",unique:!1},other:{format:f.CMIString4000,max:1,delimiter:"",unique:!1}},E={"true-false":{max:1,delimiter:"",unique:!1,duplicate:!1,format:"^true$|^false$",limit:1},choice:{max:36,delimiter:"[,]",unique:!0,duplicate:!1,format:f.CMILongIdentifier},"fill-in":{max:10,delimiter:"[,]",unique:!1,duplicate:!1,format:f.CMILangString250cr},"long-fill-in":{max:1,delimiter:"",unique:!1,duplicate:!0,format:f.CMILangString4000},matching:{max:36,delimiter:"[,]",delimiter2:"[.]",unique:!1,duplicate:!1,format:f.CMIShortIdentifier,format2:f.CMIShortIdentifier},performance:{max:250,delimiter:"[,]",delimiter2:"[.]",delimiter3:"[:]",unique:!1,duplicate:!1,format:"^$|"+f.CMIShortIdentifier,format2:f.CMIDecimal+"|^$|"+f.CMIShortIdentifier},sequencing:{max:36,delimiter:"[,]",unique:!1,duplicate:!1,format:f.CMIShortIdentifier},likert:{max:1,delimiter:"",unique:!1,duplicate:!1,format:f.CMIShortIdentifier,limit:1},numeric:{max:2,delimiter:"[:]",unique:!1,duplicate:!1,format:f.CMIDecimal,limit:1},other:{max:1,delimiter:"",unique:!1,duplicate:!1,format:f.CMIString4000,limit:1}},b=function(e){function t(){return e.call(this,{children:o.A.scorm2004.interactions_children,errorCode:a.A.scorm2004.READ_ONLY_ELEMENT,errorClass:c.wq})||this}return(0,r.C6)(t,e),t}(p.B),y=function(e){function t(){var t=e.call(this)||this;return t._id="",t._type="",t._timestamp="",t._weighting="",t._learner_response="",t._result="",t._latency="",t._description="",t.objectives=new p.B({errorCode:a.A.scorm2004.READ_ONLY_ELEMENT,errorClass:c.wq,children:o.A.scorm2004.objectives_children}),t.correct_responses=new p.B({errorCode:a.A.scorm2004.READ_ONLY_ELEMENT,errorClass:c.wq,children:o.A.scorm2004.correct_responses_children}),t}return(0,r.C6)(t,e),t.prototype.initialize=function(){var t,i;e.prototype.initialize.call(this),null===(t=this.objectives)||void 0===t||t.initialize(),null===(i=this.correct_responses)||void 0===i||i.initialize()},Object.defineProperty(t.prototype,"id",{get:function(){return this._id},set:function(e){_(e,s.A.scorm2004.CMILongIdentifier)&&(this._id=e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"type",{get:function(){return this._type},set:function(e){if(this.initialized&&""===this._id)throw new c.wq(a.A.scorm2004.DEPENDENCY_NOT_ESTABLISHED);_(e,s.A.scorm2004.CMIType)&&(this._type=e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"timestamp",{get:function(){return this._timestamp},set:function(e){if(this.initialized&&""===this._id)throw new c.wq(a.A.scorm2004.DEPENDENCY_NOT_ESTABLISHED);_(e,s.A.scorm2004.CMITime)&&(this._timestamp=e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"weighting",{get:function(){return this._weighting},set:function(e){if(this.initialized&&""===this._id)throw new c.wq(a.A.scorm2004.DEPENDENCY_NOT_ESTABLISHED);_(e,s.A.scorm2004.CMIDecimal)&&(this._weighting=e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"learner_response",{get:function(){return this._learner_response},set:function(e){if(this.initialized&&(""===this._type||""===this._id))throw new c.wq(a.A.scorm2004.DEPENDENCY_NOT_ESTABLISHED);var t=[],i=g[this.type];if(!i)throw new c.wq(a.A.scorm2004.TYPE_MISMATCH);if((null==i?void 0:i.delimiter)?t=e.split(i.delimiter):t[0]=e,!(t.length>0&&t.length<=i.max))throw new c.wq(a.A.scorm2004.GENERAL_SET_FAILURE);for(var r=new RegExp(i.format),n=0;n<t.length;n++)if(null==i?void 0:i.delimiter2){var o=t[n].split(i.delimiter2);if(2!==o.length)throw new c.wq(a.A.scorm2004.TYPE_MISMATCH);if(!o[0].match(r))throw new c.wq(a.A.scorm2004.TYPE_MISMATCH);if(!i.format2||!o[1].match(new RegExp(i.format2)))throw new c.wq(a.A.scorm2004.TYPE_MISMATCH)}else{if(!t[n].match(r))throw new c.wq(a.A.scorm2004.TYPE_MISMATCH);if(""!==t[n]&&i.unique)for(var s=0;s<n;s++)if(t[n]===t[s])throw new c.wq(a.A.scorm2004.TYPE_MISMATCH)}this._learner_response=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"result",{get:function(){return this._result},set:function(e){_(e,s.A.scorm2004.CMIResult)&&(this._result=e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"latency",{get:function(){return this._latency},set:function(e){if(this.initialized&&""===this._id)throw new c.wq(a.A.scorm2004.DEPENDENCY_NOT_ESTABLISHED);_(e,s.A.scorm2004.CMITimespan)&&(this._latency=e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"description",{get:function(){return this._description},set:function(e){if(this.initialized&&""===this._id)throw new c.wq(a.A.scorm2004.DEPENDENCY_NOT_ESTABLISHED);_(e,s.A.scorm2004.CMILangString250,!0)&&(this._description=e)},enumerable:!1,configurable:!0}),t.prototype.toJSON=function(){this.jsonString=!0;var e={id:this.id,type:this.type,objectives:this.objectives,timestamp:this.timestamp,weighting:this.weighting,learner_response:this.learner_response,result:this.result,latency:this.latency,description:this.description,correct_responses:this.correct_responses};return delete this.jsonString,e},t}(u.J),A=function(e){function t(){var t=e.call(this)||this;return t._id="",t}return(0,r.C6)(t,e),Object.defineProperty(t.prototype,"id",{get:function(){return this._id},set:function(e){_(e,s.A.scorm2004.CMILongIdentifier)&&(this._id=e)},enumerable:!1,configurable:!0}),t.prototype.toJSON=function(){this.jsonString=!0;var e={id:this.id};return delete this.jsonString,e},t}(u.J),M=function(e){function t(){var t=e.call(this)||this;return t._pattern="",t}return(0,r.C6)(t,e),Object.defineProperty(t.prototype,"pattern",{get:function(){return this._pattern},set:function(e){_(e,s.A.scorm2004.CMIFeedback)&&(this._pattern=e)},enumerable:!1,configurable:!0}),t.prototype.toJSON=function(){this.jsonString=!0;var e={pattern:this.pattern};return delete this.jsonString,e},t}(u.J),v=function(e){function t(){var t=e.call(this,{score_children:o.A.scorm2004.score_children,max:"",invalidErrorCode:a.A.scorm2004.READ_ONLY_ELEMENT,invalidTypeCode:a.A.scorm2004.TYPE_MISMATCH,invalidRangeCode:a.A.scorm2004.VALUE_OUT_OF_RANGE,decimalRegex:s.A.scorm2004.CMIDecimal,errorClass:c.wq})||this;return t._scaled="",t}return(0,r.C6)(t,e),Object.defineProperty(t.prototype,"scaled",{get:function(){return this._scaled},set:function(e){_(e,s.A.scorm2004.CMIDecimal)&&m(e,s.A.scorm2004.scaled_range)&&(this._scaled=e)},enumerable:!1,configurable:!0}),t.prototype.toJSON=function(){this.jsonString=!0;var e={scaled:this.scaled,raw:this.raw,min:this.min,max:this.max};return delete this.jsonString,e},t}(i(434)._),C=function(e){function t(){return e.call(this,{children:o.A.scorm2004.comments_children,errorCode:a.A.scorm2004.READ_ONLY_ELEMENT,errorClass:c.wq})||this}return(0,r.C6)(t,e),t}(p.B),S=function(e){function t(){return e.call(this,{children:o.A.scorm2004.comments_children,errorCode:a.A.scorm2004.READ_ONLY_ELEMENT,errorClass:c.wq})||this}return(0,r.C6)(t,e),t}(p.B),I=function(e){function t(t){void 0===t&&(t=!1);var i=e.call(this)||this;return i._comment="",i._location="",i._timestamp="",i._comment="",i._location="",i._timestamp="",i._readOnlyAfterInit=t,i}return(0,r.C6)(t,e),Object.defineProperty(t.prototype,"comment",{get:function(){return this._comment},set:function(e){if(this.initialized&&this._readOnlyAfterInit)throw new c.wq(a.A.scorm2004.READ_ONLY_ELEMENT);_(e,s.A.scorm2004.CMILangString4000,!0)&&(this._comment=e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"location",{get:function(){return this._location},set:function(e){if(this.initialized&&this._readOnlyAfterInit)throw new c.wq(a.A.scorm2004.READ_ONLY_ELEMENT);_(e,s.A.scorm2004.CMIString250)&&(this._location=e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"timestamp",{get:function(){return this._timestamp},set:function(e){if(this.initialized&&this._readOnlyAfterInit)throw new c.wq(a.A.scorm2004.READ_ONLY_ELEMENT);_(e,s.A.scorm2004.CMITime)&&(this._timestamp=e)},enumerable:!1,configurable:!0}),t.prototype.toJSON=function(){this.jsonString=!0;var e={comment:this.comment,location:this.location,timestamp:this.timestamp};return delete this.jsonString,e},t}(u.J),w=function(e){function t(){return e.call(this,{children:o.A.scorm2004.objectives_children,errorCode:a.A.scorm2004.READ_ONLY_ELEMENT,errorClass:c.wq})||this}return(0,r.C6)(t,e),t}(p.B),O=function(e){function t(){var t=e.call(this)||this;return t._id="",t._success_status="unknown",t._completion_status="unknown",t._progress_measure="",t._description="",t.score=new v,t}return(0,r.C6)(t,e),t.prototype.initialize=function(){var t;e.prototype.initialize.call(this),null===(t=this.score)||void 0===t||t.initialize()},Object.defineProperty(t.prototype,"id",{get:function(){return this._id},set:function(e){_(e,s.A.scorm2004.CMILongIdentifier)&&(this._id=e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"success_status",{get:function(){return this._success_status},set:function(e){if(this.initialized&&""===this._id)throw new c.wq(a.A.scorm2004.DEPENDENCY_NOT_ESTABLISHED);_(e,s.A.scorm2004.CMISStatus)&&(this._success_status=e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"completion_status",{get:function(){return this._completion_status},set:function(e){if(this.initialized&&""===this._id)throw new c.wq(a.A.scorm2004.DEPENDENCY_NOT_ESTABLISHED);_(e,s.A.scorm2004.CMICStatus)&&(this._completion_status=e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"progress_measure",{get:function(){return this._progress_measure},set:function(e){if(this.initialized&&""===this._id)throw new c.wq(a.A.scorm2004.DEPENDENCY_NOT_ESTABLISHED);_(e,s.A.scorm2004.CMIDecimal)&&m(e,s.A.scorm2004.progress_range)&&(this._progress_measure=e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"description",{get:function(){return this._description},set:function(e){if(this.initialized&&""===this._id)throw new c.wq(a.A.scorm2004.DEPENDENCY_NOT_ESTABLISHED);_(e,s.A.scorm2004.CMILangString250,!0)&&(this._description=e)},enumerable:!1,configurable:!0}),t.prototype.toJSON=function(){this.jsonString=!0;var e={id:this.id,success_status:this.success_status,completion_status:this.completion_status,progress_measure:this.progress_measure,description:this.description,score:this.score};return delete this.jsonString,e},t}(u.J),T=function(e){function t(t){void 0===t&&(t=!1);var i=e.call(this)||this;return i.__version="1.0",i.__children=o.A.scorm2004.cmi_children,i._completion_status="unknown",i._completion_threshold="",i._credit="credit",i._entry="",i._exit="",i._launch_data="",i._learner_id="",i._learner_name="",i._location="",i._max_time_allowed="",i._mode="normal",i._progress_measure="",i._scaled_passing_score="",i._session_time="PT0H0M0S",i._success_status="unknown",i._suspend_data="",i._time_limit_action="continue,no message",i._total_time="",i.learner_preference=new d,i.score=new v,i.comments_from_learner=new S,i.comments_from_lms=new C,i.interactions=new b,i.objectives=new w,t&&i.initialize(),i}return(0,r.C6)(t,e),t.prototype.initialize=function(){var t,i,r,n,o,s;e.prototype.initialize.call(this),null===(t=this.learner_preference)||void 0===t||t.initialize(),null===(i=this.score)||void 0===i||i.initialize(),null===(r=this.comments_from_learner)||void 0===r||r.initialize(),null===(n=this.comments_from_lms)||void 0===n||n.initialize(),null===(o=this.interactions)||void 0===o||o.initialize(),null===(s=this.objectives)||void 0===s||s.initialize()},Object.defineProperty(t.prototype,"_version",{get:function(){return this.__version},set:function(e){throw new c.wq(a.A.scorm2004.READ_ONLY_ELEMENT)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"_children",{get:function(){return this.__children},set:function(e){throw new c.wq(a.A.scorm2004.READ_ONLY_ELEMENT)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"completion_status",{get:function(){return this._completion_status},set:function(e){_(e,s.A.scorm2004.CMICStatus)&&(this._completion_status=e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"completion_threshold",{get:function(){return this._completion_threshold},set:function(e){if(this.initialized)throw new c.wq(a.A.scorm2004.READ_ONLY_ELEMENT);this._completion_threshold=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"credit",{get:function(){return this._credit},set:function(e){if(this.initialized)throw new c.wq(a.A.scorm2004.READ_ONLY_ELEMENT);this._credit=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"entry",{get:function(){return this._entry},set:function(e){if(this.initialized)throw new c.wq(a.A.scorm2004.READ_ONLY_ELEMENT);this._entry=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"exit",{get:function(){if(!this.jsonString)throw new c.wq(a.A.scorm2004.WRITE_ONLY_ELEMENT);return this._exit},set:function(e){_(e,s.A.scorm2004.CMIExit,!0)&&(this._exit=e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"launch_data",{get:function(){return this._launch_data},set:function(e){if(this.initialized)throw new c.wq(a.A.scorm2004.READ_ONLY_ELEMENT);this._launch_data=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"learner_id",{get:function(){return this._learner_id},set:function(e){if(this.initialized)throw new c.wq(a.A.scorm2004.READ_ONLY_ELEMENT);this._learner_id=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"learner_name",{get:function(){return this._learner_name},set:function(e){if(this.initialized)throw new c.wq(a.A.scorm2004.READ_ONLY_ELEMENT);this._learner_name=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"location",{get:function(){return this._location},set:function(e){_(e,s.A.scorm2004.CMIString1000)&&(this._location=e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"max_time_allowed",{get:function(){return this._max_time_allowed},set:function(e){if(this.initialized)throw new c.wq(a.A.scorm2004.READ_ONLY_ELEMENT);this._max_time_allowed=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"mode",{get:function(){return this._mode},set:function(e){if(this.initialized)throw new c.wq(a.A.scorm2004.READ_ONLY_ELEMENT);this._mode=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"progress_measure",{get:function(){return this._progress_measure},set:function(e){_(e,s.A.scorm2004.CMIDecimal)&&m(e,s.A.scorm2004.progress_range)&&(this._progress_measure=e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"scaled_passing_score",{get:function(){return this._scaled_passing_score},set:function(e){if(this.initialized)throw new c.wq(a.A.scorm2004.READ_ONLY_ELEMENT);this._scaled_passing_score=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"session_time",{get:function(){if(!this.jsonString)throw new c.wq(a.A.scorm2004.WRITE_ONLY_ELEMENT);return this._session_time},set:function(e){_(e,s.A.scorm2004.CMITimespan)&&(this._session_time=e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"success_status",{get:function(){return this._success_status},set:function(e){_(e,s.A.scorm2004.CMISStatus)&&(this._success_status=e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"suspend_data",{get:function(){return this._suspend_data},set:function(e){_(e,s.A.scorm2004.CMIString64000,!0)&&(this._suspend_data=e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"time_limit_action",{get:function(){return this._time_limit_action},set:function(e){if(this.initialized)throw new c.wq(a.A.scorm2004.READ_ONLY_ELEMENT);this._time_limit_action=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"total_time",{get:function(){return this._total_time},set:function(e){if(this.initialized)throw new c.wq(a.A.scorm2004.READ_ONLY_ELEMENT);this._total_time=e},enumerable:!1,configurable:!0}),t.prototype.getCurrentTotalTime=function(){var e=this._session_time,t=this.start_time;if(null!=t){var i=(new Date).getTime()-t;e=l.xE(i/1e3)}return l.$o(this._total_time,e,s.A.scorm2004.CMITimespan)},t.prototype.toJSON=function(){this.jsonString=!0;var e={comments_from_learner:this.comments_from_learner,comments_from_lms:this.comments_from_lms,completion_status:this.completion_status,completion_threshold:this.completion_threshold,credit:this.credit,entry:this.entry,exit:this.exit,interactions:this.interactions,launch_data:this.launch_data,learner_id:this.learner_id,learner_name:this.learner_name,learner_preference:this.learner_preference,location:this.location,max_time_allowed:this.max_time_allowed,mode:this.mode,objectives:this.objectives,progress_measure:this.progress_measure,scaled_passing_score:this.scaled_passing_score,score:this.score,session_time:this.session_time,success_status:this.success_status,suspend_data:this.suspend_data,time_limit_action:this.time_limit_action};return delete this.jsonString,e},t}(u.r),N=["aa","ab","ae","af","ak","am","an","ar","as","av","ay","az","ba","be","bg","bh","bi","bm","bn","bo","br","bs","ca","ce","ch","co","cr","cs","cu","cv","cy","da","de","dv","dz","ee","el","en","eo","es","et","eu","fa","ff","fi","fj","fo","fr","fy","ga","gd","gl","gn","gu","gv","ha","he","hi","ho","hr","ht","hu","hy","hz","ia","id","ie","ig","ii","ik","io","is","it","iu","ja","jv","ka","kg","ki","kj","kk","kl","km","kn","ko","kr","ks","ku","kv","kw","ky","la","lb","lg","li","ln","lo","lt","lu","lv","mg","mh","mi","mk","ml","mn","mo","mr","ms","mt","my","na","nb","nd","ne","ng","nl","nn","no","nr","nv","ny","oc","oj","om","or","os","pa","pi","pl","ps","pt","qu","rm","rn","ro","ru","rw","sa","sc","sd","se","sg","sh","si","sk","sl","sm","sn","so","sq","sr","ss","st","su","sv","sw","ta","te","tg","th","ti","tk","tl","tn","to","tr","ts","tt","tw","ty","ug","uk","ur","uz","ve","vi","vo","wa","wo","xh","yi","yo","za","zh","zu","aar","abk","ave","afr","aka","amh","arg","ara","asm","ava","aym","aze","bak","bel","bul","bih","bis","bam","ben","tib","bod","bre","bos","cat","che","cha","cos","cre","cze","ces","chu","chv","wel","cym","dan","ger","deu","div","dzo","ewe","gre","ell","eng","epo","spa","est","baq","eus","per","fas","ful","fin","fij","fao","fre","fra","fry","gle","gla","glg","grn","guj","glv","hau","heb","hin","hmo","hrv","hat","hun","arm","hye","her","ina","ind","ile","ibo","iii","ipk","ido","ice","isl","ita","iku","jpn","jav","geo","kat","kon","kik","kua","kaz","kal","khm","kan","kor","kau","kas","kur","kom","cor","kir","lat","ltz","lug","lim","lin","lao","lit","lub","lav","mlg","mah","mao","mri","mac","mkd","mal","mon","mol","mar","may","msa","mlt","bur","mya","nau","nob","nde","nep","ndo","dut","nld","nno","nor","nbl","nav","nya","oci","oji","orm","ori","oss","pan","pli","pol","pus","por","que","roh","run","rum","ron","rus","kin","san","srd","snd","sme","sag","slo","sin","slk","slv","smo","sna","som","alb","sqi","srp","ssw","sot","sun","swe","swa","tam","tel","tgk","tha","tir","tuk","tgl","tsn","ton","tur","tso","tat","twi","tah","uig","ukr","urd","uzb","ven","vie","vol","wln","wol","xho","yid","yor","zha","chi","zho","zul"],L=i(56),R=function(e){function t(){var t=e.call(this)||this;return t.nav=new j,t}return(0,r.C6)(t,e),t.prototype.initialize=function(){var t;e.prototype.initialize.call(this),null===(t=this.nav)||void 0===t||t.initialize()},t.prototype.toJSON=function(){this.jsonString=!0;var e={nav:this.nav};return delete this.jsonString,e},t}(u.J),j=function(e){function t(){var t=e.call(this)||this;return t._request="_none_",t.request_valid=new D,t}return(0,r.C6)(t,e),t.prototype.initialize=function(){var t;e.prototype.initialize.call(this),null===(t=this.request_valid)||void 0===t||t.initialize()},Object.defineProperty(t.prototype,"request",{get:function(){return this._request},set:function(e){_(e,s.A.scorm2004.NAVEvent)&&(this._request=e)},enumerable:!1,configurable:!0}),t.prototype.toJSON=function(){this.jsonString=!0;var e={request:this.request};return delete this.jsonString,e},t}(u.J),D=function(e){function t(){var t=e.call(this)||this;return t._continue="unknown",t._previous="unknown",t._choice={},t._jump={},t}return(0,r.C6)(t,e),Object.defineProperty(t.prototype,"continue",{get:function(){return this._continue},set:function(e){if(this.initialized)throw new c.wq(a.A.scorm2004.READ_ONLY_ELEMENT);_(e,s.A.scorm2004.NAVBoolean)&&(this._continue=e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"previous",{get:function(){return this._previous},set:function(e){if(this.initialized)throw new c.wq(a.A.scorm2004.READ_ONLY_ELEMENT);_(e,s.A.scorm2004.NAVBoolean)&&(this._previous=e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"choice",{get:function(){return this._choice},set:function(e){if(this.initialized)throw new c.wq(a.A.scorm2004.READ_ONLY_ELEMENT);if("object"!=typeof e)throw new c.wq(a.A.scorm2004.TYPE_MISMATCH);for(var t in e)({}).hasOwnProperty.call(e,t)&&_(e[t],s.A.scorm2004.NAVBoolean)&&_(t,s.A.scorm2004.NAVTarget)&&(this._choice[t]=L.K$[e[t]])},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"jump",{get:function(){return this._jump},set:function(e){if(this.initialized)throw new c.wq(a.A.scorm2004.READ_ONLY_ELEMENT);if("object"!=typeof e)throw new c.wq(a.A.scorm2004.TYPE_MISMATCH);for(var t in e)({}).hasOwnProperty.call(e,t)&&_(e[t],s.A.scorm2004.NAVBoolean)&&_(t,s.A.scorm2004.NAVTarget)&&(this._jump[t]=L.K$[e[t]])},enumerable:!1,configurable:!0}),t.prototype.toJSON=function(){this.jsonString=!0;var e={previous:this._previous,continue:this._continue,choice:this._choice,jump:this._jump};return delete this.jsonString,e},t}(u.J),P=function(e){function t(t){var i=this;return t&&void 0===t.mastery_override&&(t.mastery_override=!1),(i=e.call(this,a.A.scorm2004,t)||this)._version="1.0",i.cmi=new T,i.adl=new R,i.Initialize=i.lmsInitialize,i.Terminate=i.lmsFinish,i.GetValue=i.lmsGetValue,i.SetValue=i.lmsSetValue,i.Commit=i.lmsCommit,i.GetLastError=i.lmsGetLastError,i.GetErrorString=i.lmsGetErrorString,i.GetDiagnostic=i.lmsGetDiagnostic,i}return(0,r.C6)(t,e),t.prototype.reset=function(e){this.commonReset(e),this.cmi=new T,this.adl=new R},Object.defineProperty(t.prototype,"version",{get:function(){return this._version},enumerable:!1,configurable:!0}),t.prototype.lmsInitialize=function(){return this.cmi.initialize(),this.initialize("Initialize")},t.prototype.lmsFinish=function(){var e=this;return(0,r.sH)(e,void 0,void 0,(function(){return(0,r.YH)(this,(function(e){switch(e.label){case 0:return[4,this.internalFinish()];case 1:return e.sent(),[2]}}))})),o.A.global.SCORM_TRUE},t.prototype.internalFinish=function(){return(0,r.sH)(this,void 0,void 0,(function(){var e,t,i,n,a,c,l,u,h,_,m;return(0,r.YH)(this,(function(r){switch(r.label){case 0:return[4,this.terminate("Terminate",!0)];case 1:return(e=r.sent())===o.A.global.SCORM_TRUE&&("_none_"!==this.adl.nav.request?(t={continue:"SequenceNext",previous:"SequencePrevious",choice:"SequenceChoice",jump:"SequenceJump",exit:"SequenceExit",exitAll:"SequenceExitAll",abandon:"SequenceAbandon",abandonAll:"SequenceAbandonAll"},i=this.adl.nav.request,n=new RegExp(s.A.scorm2004.NAVEvent),a=i.match(n),c="",a&&((null===(u=a.groups)||void 0===u?void 0:u.choice_target)?(c=null===(h=a.groups)||void 0===h?void 0:h.choice_target,i="choice"):(null===(_=a.groups)||void 0===_?void 0:_.jump_target)&&(c=null===(m=a.groups)||void 0===m?void 0:m.jump_target,i="jump")),(l=t[i])&&this.processListeners(l,"adl.nav.request",c)):this.settings.autoProgress&&this.processListeners("SequenceNext")),[2,e]}}))}))},t.prototype.lmsGetValue=function(e){var t="^adl\\.nav\\.request_valid\\.(choice|jump)\\.{target=\\S{0,}([a-zA-Z0-9-_]+)}$";if((0,l.J6)(e,t)){var i=e.match(t),r=i[1],n=i[2].replace("{target=","").replace("}","");if("choice"===r||"jump"===r)return this.settings.scoItemIdValidator?String(this.settings.scoItemIdValidator(n)):String(this.settings.scoItemIds.includes(n))}return this.getValue("GetValue",!0,e)},t.prototype.lmsSetValue=function(e,t){return this.setValue("SetValue","Commit",!0,e,t)},t.prototype.lmsCommit=function(){var e=this;return this.settings.asyncCommit?this.scheduleCommit(500,"LMSCommit"):(0,r.sH)(e,void 0,void 0,(function(){return(0,r.YH)(this,(function(e){switch(e.label){case 0:return[4,this.commit("LMSCommit",!1)];case 1:return e.sent(),[2]}}))})),o.A.global.SCORM_TRUE},t.prototype.lmsGetLastError=function(){return this.getLastError("GetLastError")},t.prototype.lmsGetErrorString=function(e){return this.getErrorString("GetErrorString",e)},t.prototype.lmsGetDiagnostic=function(e){return this.getDiagnostic("GetDiagnostic",e)},t.prototype.setCMIValue=function(e,t){return this._commonSetCMIValue("SetValue",!0,e,t)},t.prototype.getChildElement=function(e,t,i){if((0,l.J6)(e,"cmi\\.objectives\\.\\d+"))return new O;if(i){if((0,l.J6)(e,"cmi\\.interactions\\.\\d+\\.correct_responses\\.\\d+"))return this.createCorrectResponsesObject(e,t);if((0,l.J6)(e,"cmi\\.interactions\\.\\d+\\.objectives\\.\\d+"))return new A}else if((0,l.J6)(e,"cmi\\.interactions\\.\\d+"))return new y;return(0,l.J6)(e,"cmi\\.comments_from_learner\\.\\d+")?new I:(0,l.J6)(e,"cmi\\.comments_from_lms\\.\\d+")?new I(!0):null},t.prototype.createCorrectResponsesObject=function(e,t){var i=e.split("."),r=Number(i[2]),n=this.cmi.interactions.childArray[r];if(this.isInitialized())if(n.type){this.checkDuplicateChoiceResponse(n,t);var o=E[n.type];o?this.checkValidResponseType(o,t,n.type):this.throwSCORMError(a.A.scorm2004.GENERAL_SET_FAILURE,"Incorrect Response Type: "+n.type)}else this.throwSCORMError(a.A.scorm2004.DEPENDENCY_NOT_ESTABLISHED);return"0"===this.lastErrorCode?new M:null},t.prototype.checkValidResponseType=function(e,t,i){var r=[];(null==e?void 0:e.delimiter)?r=String(t).split(e.delimiter):r[0]=t,r.length>0&&r.length<=e.max?this.checkCorrectResponseValue(i,r,t):r.length>e.max&&this.throwSCORMError(a.A.scorm2004.GENERAL_SET_FAILURE,"Data Model Element Pattern Too Long")},t.prototype.checkDuplicateChoiceResponse=function(e,t){var i=e.correct_responses._count;if("choice"===e.type)for(var r=0;r<i&&"0"===this.lastErrorCode;r++){e.correct_responses.childArray[r].pattern===t&&this.throwSCORMError(a.A.scorm2004.GENERAL_SET_FAILURE)}},t.prototype.validateCorrectResponse=function(e,t){var i=e.split("."),r=Number(i[2]),n=Number(i[4]),o=this.cmi.interactions.childArray[r],s=o.correct_responses._count;this.checkDuplicateChoiceResponse(o,t);var c=E[o.type];void 0===c.limit||s<=c.limit?(this.checkValidResponseType(c,t,o.type),"0"===this.lastErrorCode&&(!c.duplicate||!this.checkDuplicatedPattern(o.correct_responses,n,t))||"0"===this.lastErrorCode&&""===t||"0"===this.lastErrorCode&&this.throwSCORMError(a.A.scorm2004.GENERAL_SET_FAILURE,"Data Model Element Pattern Already Exists")):this.throwSCORMError(a.A.scorm2004.GENERAL_SET_FAILURE,"Data Model Element Collection Limit Reached")},t.prototype.getCMIValue=function(e){return this._commonGetCMIValue("GetValue",!0,e)},t.prototype.getLmsErrorMessageDetails=function(e,t){var i="",r="";return e=String(e),o.A.scorm2004.error_descriptions[e]&&(i=o.A.scorm2004.error_descriptions[e].basicMessage,r=o.A.scorm2004.error_descriptions[e].detailMessage),t?r:i},t.prototype.checkDuplicatedPattern=function(e,t,i){for(var r=!1,n=e._count,o=0;o<n&&!r;o++)o!==t&&e.childArray[o]===i&&(r=!0);return r},t.prototype.checkCorrectResponseValue=function(e,t,i){for(var r=E[e],n=new RegExp(r.format),o=0;o<t.length&&"0"===this.lastErrorCode;o++)if(e.match("^(fill-in|long-fill-in|matching|performance|sequencing)$")&&(t[o]=this.removeCorrectResponsePrefixes(t[o])),null==r?void 0:r.delimiter2){var s=t[o].split(r.delimiter2);if(2===s.length)(c=s[0].match(n))&&r.format2&&s[1].match(new RegExp(r.format2))||this.throwSCORMError(a.A.scorm2004.TYPE_MISMATCH);else this.throwSCORMError(a.A.scorm2004.TYPE_MISMATCH)}else{var c;if(!(c=t[o].match(n))&&""!==i||!c&&"true-false"===e)this.throwSCORMError(a.A.scorm2004.TYPE_MISMATCH);else if("numeric"===e&&t.length>1)Number(t[0])>Number(t[1])&&this.throwSCORMError(a.A.scorm2004.TYPE_MISMATCH);else if(""!==t[o]&&r.unique)for(var l=0;l<o&&"0"===this.lastErrorCode;l++)t[o]===t[l]&&this.throwSCORMError(a.A.scorm2004.TYPE_MISMATCH)}},t.prototype.removeCorrectResponsePrefixes=function(e){for(var t=!1,i=!1,r=!1,n=new RegExp("^({(lang|case_matters|order_matters)=([^}]+)})"),o=e.match(n),c=null;o;){switch(o[2]){case"lang":if(c=e.match(s.A.scorm2004.CMILangcr)){var l=c[3];void 0!==l&&l.length>0&&(N.includes(l.toLowerCase())||this.throwSCORMError(a.A.scorm2004.TYPE_MISMATCH))}r=!0;break;case"case_matters":r||t||i||"true"!==o[3]&&"false"!==o[3]&&this.throwSCORMError(a.A.scorm2004.TYPE_MISMATCH),i=!0;break;case"order_matters":i||r||t||"true"!==o[3]&&"false"!==o[3]&&this.throwSCORMError(a.A.scorm2004.TYPE_MISMATCH),t=!0}o=(e=e.substring(o[1].length)).match(n)}return e},t.prototype.replaceWithAnotherScormAPI=function(e){this.cmi=e.cmi,this.adl=e.adl},t.prototype.renderCommitCMI=function(e){var t=this.renderCMIToJSONObject();e&&(t.cmi.total_time=this.cmi.getCurrentTotalTime());var i=[],r=l.Bq(t);switch(this.settings.dataCommitFormat){case"flattened":return l.Bq(t);case"params":for(var n in r)({}).hasOwnProperty.call(r,n)&&i.push("".concat(n,"=").concat(r[n]));return i;default:return t}},t.prototype.renderCommitObject=function(e){var t=this.renderCommitCMI(e),i=this.cmi.getCurrentTotalTime(),r=l.OI(i,s.A.scorm2004.CMITimespan),n=L.lC.unknown,o=L.YE.unknown;this.cmi.completion_status&&("completed"===this.cmi.completion_status?n=L.lC.completed:"incomplete"===this.cmi.completion_status&&(n=L.lC.incomplete)),this.cmi.success_status&&("passed"===this.cmi.success_status?o=L.YE.passed:"failed"===this.cmi.success_status&&(o=L.YE.failed));var a=this.cmi.score,c=null;a&&(c={},Number.isNaN(Number.parseFloat(a.raw))||(c.raw=Number.parseFloat(a.raw)),Number.isNaN(Number.parseFloat(a.min))||(c.min=Number.parseFloat(a.min)),Number.isNaN(Number.parseFloat(a.max))||(c.max=Number.parseFloat(a.max)),Number.isNaN(Number.parseFloat(a.scaled))||(c.scaled=Number.parseFloat(a.scaled)));var u={completionStatus:n,successStatus:o,totalTimeSeconds:r,runtimeData:t};return c&&(u.score=c),u},t.prototype.storeData=function(e){return(0,r.sH)(this,void 0,void 0,(function(){var t,i,n,s,a,c;return(0,r.YH)(this,(function(r){switch(r.label){case 0:return e&&"normal"===this.cmi.mode&&"credit"===this.cmi.credit&&(this.cmi.completion_threshold&&this.cmi.progress_measure&&(this.cmi.progress_measure>=this.cmi.completion_threshold?this.cmi.completion_status="completed":this.cmi.completion_status="incomplete"),this.cmi.scaled_passing_score&&this.cmi.score.scaled&&(this.cmi.score.scaled>=this.cmi.scaled_passing_score?this.cmi.success_status="passed":this.cmi.success_status="failed")),t=!1,this.adl.nav.request!==(null===(c=null===(a=null===(s=this.startingData)||void 0===s?void 0:s.adl)||void 0===a?void 0:a.nav)||void 0===c?void 0:c.request)&&"_none_"!==this.adl.nav.request&&(t=!0),i=this.getCommitObject(e),"string"!=typeof this.settings.lmsCommitUrl?[3,2]:[4,this.processHttpRequest(this.settings.lmsCommitUrl,i,e)];case 1:return n=r.sent(),t&&void 0!==n.navRequest&&""!==n.navRequest&&Function('"use strict";(() => { '.concat(n.navRequest," })()"))(),[2,n];case 2:return[2,{result:o.A.global.SCORM_TRUE,errorCode:0}]}}))}))},t}(n.A)},589:function(e,t,i){i.d(t,{B:function(){return c}});var r=i(635),n=i(319),o=i(797),s=i(784),a=o.A.scorm12,c=function(e){function t(t){var i=e.call(this)||this;return i.__children=t.children,i._errorCode=t.errorCode||a.GENERAL,i._errorClass=t.errorClass||s.$h,i.childArray=[],i}return(0,r.C6)(t,e),Object.defineProperty(t.prototype,"_children",{get:function(){return this.__children},set:function(e){throw new this._errorClass(this._errorCode)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"_count",{get:function(){return this.childArray.length},set:function(e){throw new this._errorClass(this._errorCode)},enumerable:!1,configurable:!0}),t.prototype.toJSON=function(){this.jsonString=!0;for(var e={},t=0;t<this.childArray.length;t++)e[t+""]=this.childArray[t];return delete this.jsonString,e},t}(n.J)},319:function(e,t,i){i.d(t,{J:function(){return n},r:function(){return o}});var r=i(635),n=function(){function e(){this.jsonString=!1,this._initialized=!1}return Object.defineProperty(e.prototype,"initialized",{get:function(){return this._initialized},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"start_time",{get:function(){return this._start_time},enumerable:!1,configurable:!0}),e.prototype.initialize=function(){this._initialized=!0},e.prototype.setStartTime=function(){this._start_time=(new Date).getTime()},e}(),o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,r.C6)(t,e),t}(n)},434:function(e,t,i){i.d(t,{_:function(){return _}});var r=i(635),n=i(340),o=i(417),s=i(319),a=i(449),c=i(797),l=n.A.scorm12,u=o.A.scorm12,h=c.A.scorm12,_=function(e){function t(t){var i=e.call(this)||this;return i._raw="",i._min="",i.__children=t.score_children||l.score_children,i.__score_range=!!t.score_range&&u.score_range,i._max=t.max||""===t.max?t.max:"100",i.__invalid_error_code=t.invalidErrorCode||h.INVALID_SET_VALUE,i.__invalid_type_code=t.invalidTypeCode||h.TYPE_MISMATCH,i.__invalid_range_code=t.invalidRangeCode||h.VALUE_OUT_OF_RANGE,i.__decimal_regex=t.decimalRegex||u.CMIDecimal,i.__error_class=t.errorClass,i}return(0,r.C6)(t,e),Object.defineProperty(t.prototype,"_children",{get:function(){return this.__children},set:function(e){throw new this.__error_class(this.__invalid_error_code)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"raw",{get:function(){return this._raw},set:function(e){!(0,a.q)(e,this.__decimal_regex,this.__invalid_type_code,this.__error_class)||this.__score_range&&!(0,a.W)(e,this.__score_range,this.__invalid_range_code,this.__error_class)||(this._raw=e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"min",{get:function(){return this._min},set:function(e){!(0,a.q)(e,this.__decimal_regex,this.__invalid_type_code,this.__error_class)||this.__score_range&&!(0,a.W)(e,this.__score_range,this.__invalid_range_code,this.__error_class)||(this._min=e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"max",{get:function(){return this._max},set:function(e){!(0,a.q)(e,this.__decimal_regex,this.__invalid_type_code,this.__error_class)||this.__score_range&&!(0,a.W)(e,this.__score_range,this.__invalid_range_code,this.__error_class)||(this._max=e)},enumerable:!1,configurable:!0}),t.prototype.toJSON=function(){this.jsonString=!0;var e={raw:this.raw,min:this.min,max:this.max};return delete this.jsonString,e},t}(s.J)},449:function(e,t,i){function r(e,t,i,r,n){if("string"!=typeof e)return!1;var o=new RegExp(t),s=e.match(o);if(n&&""===e)return!0;if(void 0===e||!s||""===s[0])throw new r(i);return!0}function n(e,t,i,r){var n=t.split("#");if((e*=1)>=n[0]){if("*"===n[1]||e<=n[1])return!0;throw new r(i)}throw new r(i)}i.d(t,{W:function(){return n},q:function(){return r}})},989:function(e,t,i){i.d(t,{Y:function(){return g}});var r=i(635),n=i(340),o=i(797),s=i(417),a=i(784),c=i(319),l=i(915),u=i(434),h=i(864),_=function(e){function t(){var t=e.call(this)||this;return t.__children=n.A.scorm12.core_children,t._student_id="",t._student_name="",t._lesson_location="",t._credit="",t._lesson_status="not attempted",t._entry="",t._total_time="",t._lesson_mode="normal",t._exit="",t._session_time="00:00:00",t._suspend_data="",t.score=new u._({score_children:n.A.scorm12.score_children,score_range:s.A.scorm12.score_range,invalidErrorCode:o.A.scorm12.INVALID_SET_VALUE,invalidTypeCode:o.A.scorm12.TYPE_MISMATCH,invalidRangeCode:o.A.scorm12.VALUE_OUT_OF_RANGE,errorClass:a.tQ}),t}return(0,r.C6)(t,e),t.prototype.initialize=function(){var t;e.prototype.initialize.call(this),null===(t=this.score)||void 0===t||t.initialize()},Object.defineProperty(t.prototype,"_children",{get:function(){return this.__children},set:function(e){throw new a.tQ(o.A.scorm12.INVALID_SET_VALUE)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"student_id",{get:function(){return this._student_id},set:function(e){if(this.initialized)throw new a.tQ(o.A.scorm12.READ_ONLY_ELEMENT);this._student_id=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"student_name",{get:function(){return this._student_name},set:function(e){if(this.initialized)throw new a.tQ(o.A.scorm12.READ_ONLY_ELEMENT);this._student_name=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"lesson_location",{get:function(){return this._lesson_location},set:function(e){(0,l.p)(e,s.A.scorm12.CMIString256,!0)&&(this._lesson_location=e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"credit",{get:function(){return this._credit},set:function(e){if(this.initialized)throw new a.tQ(o.A.scorm12.READ_ONLY_ELEMENT);this._credit=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"lesson_status",{get:function(){return this._lesson_status},set:function(e){this.initialized?(0,l.p)(e,s.A.scorm12.CMIStatus)&&(this._lesson_status=e):(0,l.p)(e,s.A.scorm12.CMIStatus2)&&(this._lesson_status=e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"entry",{get:function(){return this._entry},set:function(e){if(this.initialized)throw new a.tQ(o.A.scorm12.READ_ONLY_ELEMENT);this._entry=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"total_time",{get:function(){return this._total_time},set:function(e){if(this.initialized)throw new a.tQ(o.A.scorm12.READ_ONLY_ELEMENT);this._total_time=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"lesson_mode",{get:function(){return this._lesson_mode},set:function(e){if(this.initialized)throw new a.tQ(o.A.scorm12.READ_ONLY_ELEMENT);this._lesson_mode=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"exit",{get:function(){if(!this.jsonString)throw new a.tQ(o.A.scorm12.WRITE_ONLY_ELEMENT);return this._exit},set:function(e){(0,l.p)(e,s.A.scorm12.CMIExit,!0)&&(this._exit=e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"session_time",{get:function(){if(!this.jsonString)throw new a.tQ(o.A.scorm12.WRITE_ONLY_ELEMENT);return this._session_time},set:function(e){(0,l.p)(e,s.A.scorm12.CMITimespan)&&(this._session_time=e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"suspend_data",{get:function(){return this._suspend_data},set:function(e){(0,l.p)(e,s.A.scorm12.CMIString4096,!0)&&(this._suspend_data=e)},enumerable:!1,configurable:!0}),t.prototype.getCurrentTotalTime=function(e){var t=this._session_time,i=e;if(null!=i){var r=(new Date).getTime()-i;t=h.UZ(r/1e3)}return h.HT(this._total_time,t,new RegExp(s.A.scorm12.CMITimespan))},t.prototype.toJSON=function(){this.jsonString=!0;var e={student_id:this.student_id,student_name:this.student_name,lesson_location:this.lesson_location,credit:this.credit,lesson_status:this.lesson_status,entry:this.entry,lesson_mode:this.lesson_mode,exit:this.exit,session_time:this.session_time,score:this.score};return delete this.jsonString,e},t}(c.J),m=i(176),d=i(532),p=i(181),f=i(833),g=function(e){function t(t,i,r){var o=e.call(this)||this;return o.__children="",o.__version="3.4",o._launch_data="",o._comments="",o._comments_from_lms="",r&&o.initialize(),o.__children=t||n.A.scorm12.cmi_children,o.core=new _,o.objectives=new m.C,o.student_data=i||new d.X,o.student_preference=new p.G,o.interactions=new f.Xb,o}return(0,r.C6)(t,e),t.prototype.initialize=function(){var t,i,r,n,o;e.prototype.initialize.call(this),null===(t=this.core)||void 0===t||t.initialize(),null===(i=this.objectives)||void 0===i||i.initialize(),null===(r=this.student_data)||void 0===r||r.initialize(),null===(n=this.student_preference)||void 0===n||n.initialize(),null===(o=this.interactions)||void 0===o||o.initialize()},t.prototype.toJSON=function(){this.jsonString=!0;var e={suspend_data:this.suspend_data,launch_data:this.launch_data,comments:this.comments,comments_from_lms:this.comments_from_lms,core:this.core,objectives:this.objectives,student_data:this.student_data,student_preference:this.student_preference,interactions:this.interactions};return delete this.jsonString,e},Object.defineProperty(t.prototype,"_version",{get:function(){return this.__version},set:function(e){throw new a.tQ(o.A.scorm12.INVALID_SET_VALUE)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"_children",{get:function(){return this.__children},set:function(e){throw new a.tQ(o.A.scorm12.INVALID_SET_VALUE)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"suspend_data",{get:function(){var e;return null===(e=this.core)||void 0===e?void 0:e.suspend_data},set:function(e){this.core&&(this.core.suspend_data=e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"launch_data",{get:function(){return this._launch_data},set:function(e){if(this.initialized)throw new a.tQ(o.A.scorm12.READ_ONLY_ELEMENT);this._launch_data=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"comments",{get:function(){return this._comments},set:function(e){(0,l.p)(e,s.A.scorm12.CMIString4096,!0)&&(this._comments=e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"comments_from_lms",{get:function(){return this._comments_from_lms},set:function(e){if(this.initialized)throw new a.tQ(o.A.scorm12.READ_ONLY_ELEMENT);this._comments_from_lms=e},enumerable:!1,configurable:!0}),t.prototype.getCurrentTotalTime=function(){return this.core.getCurrentTotalTime(this.start_time)},t}(c.r)},833:function(e,t,i){i.d(t,{Oh:function(){return m},WP:function(){return _},Xb:function(){return h},cb:function(){return d}});var r=i(635),n=i(589),o=i(340),s=i(797),a=i(784),c=i(319),l=i(915),u=i(417),h=function(e){function t(){return e.call(this,{children:o.A.scorm12.interactions_children,errorCode:s.A.scorm12.INVALID_SET_VALUE,errorClass:a.tQ})||this}return(0,r.C6)(t,e),t}(n.B),_=function(e){function t(){var t=e.call(this)||this;return t._id="",t._time="",t._type="",t._weighting="",t._student_response="",t._result="",t._latency="",t.objectives=new n.B({errorCode:s.A.scorm12.INVALID_SET_VALUE,errorClass:a.tQ,children:o.A.scorm12.objectives_children}),t.correct_responses=new n.B({errorCode:s.A.scorm12.INVALID_SET_VALUE,errorClass:a.tQ,children:o.A.scorm12.correct_responses_children}),t}return(0,r.C6)(t,e),t.prototype.initialize=function(){var t,i;e.prototype.initialize.call(this),null===(t=this.objectives)||void 0===t||t.initialize(),null===(i=this.correct_responses)||void 0===i||i.initialize()},Object.defineProperty(t.prototype,"id",{get:function(){if(!this.jsonString)throw new a.tQ(s.A.scorm12.WRITE_ONLY_ELEMENT);return this._id},set:function(e){(0,l.p)(e,u.A.scorm12.CMIIdentifier)&&(this._id=e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"time",{get:function(){if(!this.jsonString)throw new a.tQ(s.A.scorm12.WRITE_ONLY_ELEMENT);return this._time},set:function(e){(0,l.p)(e,u.A.scorm12.CMITime)&&(this._time=e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"type",{get:function(){if(!this.jsonString)throw new a.tQ(s.A.scorm12.WRITE_ONLY_ELEMENT);return this._type},set:function(e){(0,l.p)(e,u.A.scorm12.CMIType)&&(this._type=e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"weighting",{get:function(){if(!this.jsonString)throw new a.tQ(s.A.scorm12.WRITE_ONLY_ELEMENT);return this._weighting},set:function(e){(0,l.p)(e,u.A.scorm12.CMIDecimal)&&(0,l.h)(e,u.A.scorm12.weighting_range)&&(this._weighting=e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"student_response",{get:function(){if(!this.jsonString)throw new a.tQ(s.A.scorm12.WRITE_ONLY_ELEMENT);return this._student_response},set:function(e){(0,l.p)(e,u.A.scorm12.CMIFeedback,!0)&&(this._student_response=e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"result",{get:function(){if(!this.jsonString)throw new a.tQ(s.A.scorm12.WRITE_ONLY_ELEMENT);return this._result},set:function(e){(0,l.p)(e,u.A.scorm12.CMIResult)&&(this._result=e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"latency",{get:function(){if(!this.jsonString)throw new a.tQ(s.A.scorm12.WRITE_ONLY_ELEMENT);return this._latency},set:function(e){(0,l.p)(e,u.A.scorm12.CMITimespan)&&(this._latency=e)},enumerable:!1,configurable:!0}),t.prototype.toJSON=function(){this.jsonString=!0;var e={id:this.id,time:this.time,type:this.type,weighting:this.weighting,student_response:this.student_response,result:this.result,latency:this.latency,objectives:this.objectives,correct_responses:this.correct_responses};return delete this.jsonString,e},t}(c.J),m=function(e){function t(){var t=e.call(this)||this;return t._id="",t}return(0,r.C6)(t,e),Object.defineProperty(t.prototype,"id",{get:function(){return this._id},set:function(e){(0,l.p)(e,u.A.scorm12.CMIIdentifier)&&(this._id=e)},enumerable:!1,configurable:!0}),t.prototype.toJSON=function(){this.jsonString=!0;var e={id:this.id};return delete this.jsonString,e},t}(c.J),d=function(e){function t(){var t=e.call(this)||this;return t._pattern="",t}return(0,r.C6)(t,e),Object.defineProperty(t.prototype,"pattern",{get:function(){if(!this.jsonString)throw new a.tQ(s.A.scorm12.WRITE_ONLY_ELEMENT);return this._pattern},set:function(e){(0,l.p)(e,u.A.scorm12.CMIFeedback,!0)&&(this._pattern=e)},enumerable:!1,configurable:!0}),t.prototype.toJSON=function(){this.jsonString=!0;var e={pattern:this._pattern};return delete this.jsonString,e},t}(c.J)},331:function(e,t,i){i.d(t,{A:function(){return a}});var r=i(635),n=i(319),o=i(915),s=i(417),a=function(e){function t(){var t=e.call(this)||this;return t._event="",t}return(0,r.C6)(t,e),Object.defineProperty(t.prototype,"event",{get:function(){return this._event},set:function(e){(0,o.p)(e,s.A.scorm12.NAVEvent)&&(this._event=e)},enumerable:!1,configurable:!0}),t.prototype.toJSON=function(){this.jsonString=!0;var e={event:this.event};return delete this.jsonString,e},t}(n.J)},176:function(e,t,i){i.d(t,{C:function(){return h},N:function(){return _}});var r=i(635),n=i(319),o=i(434),s=i(340),a=i(417),c=i(797),l=i(784),u=i(915),h=function(e){function t(){return e.call(this,{children:s.A.scorm12.objectives_children,errorCode:c.A.scorm12.INVALID_SET_VALUE,errorClass:l.tQ})||this}return(0,r.C6)(t,e),t}(i(589).B),_=function(e){function t(){var t=e.call(this)||this;return t._id="",t._status="",t.score=new o._({score_children:s.A.scorm12.score_children,score_range:a.A.scorm12.score_range,invalidErrorCode:c.A.scorm12.INVALID_SET_VALUE,invalidTypeCode:c.A.scorm12.TYPE_MISMATCH,invalidRangeCode:c.A.scorm12.VALUE_OUT_OF_RANGE,errorClass:l.tQ}),t}return(0,r.C6)(t,e),Object.defineProperty(t.prototype,"id",{get:function(){return this._id},set:function(e){(0,u.p)(e,a.A.scorm12.CMIIdentifier)&&(this._id=e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"status",{get:function(){return this._status},set:function(e){(0,u.p)(e,a.A.scorm12.CMIStatus2)&&(this._status=e)},enumerable:!1,configurable:!0}),t.prototype.toJSON=function(){this.jsonString=!0;var e={id:this.id,status:this.status,score:this.score};return delete this.jsonString,e},t}(n.J)},532:function(e,t,i){i.d(t,{X:function(){return c}});var r=i(635),n=i(319),o=i(340),s=i(784),a=i(797),c=function(e){function t(t){var i=e.call(this)||this;return i._mastery_score="",i._max_time_allowed="",i._time_limit_action="",i.__children=t||o.A.scorm12.student_data_children,i}return(0,r.C6)(t,e),Object.defineProperty(t.prototype,"_children",{get:function(){return this.__children},set:function(e){throw new s.tQ(a.A.scorm12.INVALID_SET_VALUE)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"mastery_score",{get:function(){return this._mastery_score},set:function(e){if(this.initialized)throw new s.tQ(a.A.scorm12.READ_ONLY_ELEMENT);this._mastery_score=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"max_time_allowed",{get:function(){return this._max_time_allowed},set:function(e){if(this.initialized)throw new s.tQ(a.A.scorm12.READ_ONLY_ELEMENT);this._max_time_allowed=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"time_limit_action",{get:function(){return this._time_limit_action},set:function(e){if(this.initialized)throw new s.tQ(a.A.scorm12.READ_ONLY_ELEMENT);this._time_limit_action=e},enumerable:!1,configurable:!0}),t.prototype.toJSON=function(){this.jsonString=!0;var e={mastery_score:this.mastery_score,max_time_allowed:this.max_time_allowed,time_limit_action:this.time_limit_action};return delete this.jsonString,e},t}(n.J)},181:function(e,t,i){i.d(t,{G:function(){return u}});var r=i(635),n=i(319),o=i(340),s=i(784),a=i(797),c=i(915),l=i(417),u=function(e){function t(t){var i=e.call(this)||this;return i._audio="",i._language="",i._speed="",i._text="",i.__children=t||o.A.scorm12.student_preference_children,i}return(0,r.C6)(t,e),Object.defineProperty(t.prototype,"_children",{get:function(){return this.__children},set:function(e){throw new s.tQ(a.A.scorm12.INVALID_SET_VALUE)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"audio",{get:function(){return this._audio},set:function(e){(0,c.p)(e,l.A.scorm12.CMISInteger)&&(0,c.h)(e,l.A.scorm12.audio_range)&&(this._audio=e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"language",{get:function(){return this._language},set:function(e){(0,c.p)(e,l.A.scorm12.CMIString256)&&(this._language=e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"speed",{get:function(){return this._speed},set:function(e){(0,c.p)(e,l.A.scorm12.CMISInteger)&&(0,c.h)(e,l.A.scorm12.speed_range)&&(this._speed=e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"text",{get:function(){return this._text},set:function(e){(0,c.p)(e,l.A.scorm12.CMISInteger)&&(0,c.h)(e,l.A.scorm12.text_range)&&(this._text=e)},enumerable:!1,configurable:!0}),t.prototype.toJSON=function(){this.jsonString=!0;var e={audio:this.audio,language:this.language,speed:this.speed,text:this.text};return delete this.jsonString,e},t}(n.J)},915:function(e,t,i){i.d(t,{h:function(){return a},p:function(){return s}});var r=i(449),n=i(797),o=i(784);function s(e,t,i){return(0,r.q)(e,t,n.A.scorm12.TYPE_MISMATCH,o.tQ,i)}function a(e,t,i){if(!i&&""===e)throw new o.tQ(n.A.scorm12.VALUE_OUT_OF_RANGE);return(0,r.W)(e,t,n.A.scorm12.VALUE_OUT_OF_RANGE,o.tQ)}},340:function(e,t,i){var r=i(635),n={cmi_children:"core,suspend_data,launch_data,comments,objectives,student_data,student_preference,interactions",core_children:"student_id,student_name,lesson_location,credit,lesson_status,entry,score,total_time,lesson_mode,exit,session_time",score_children:"raw,min,max",comments_children:"content,location,time",objectives_children:"id,score,status",correct_responses_children:"pattern",student_data_children:"mastery_score,max_time_allowed,time_limit_action",student_preference_children:"audio,language,speed,text",interactions_children:"id,objectives,time,type,correct_responses,weighting,student_response,result,latency",error_descriptions:{101:{basicMessage:"General Exception",detailMessage:"No specific error code exists to describe the error. Use LMSGetDiagnostic for more information"},201:{basicMessage:"Invalid argument error",detailMessage:"Indicates that an argument represents an invalid data model element or is otherwise incorrect."},202:{basicMessage:"Element cannot have children",detailMessage:'Indicates that LMSGetValue was called with a data model element name that ends in "_children" for a data model element that does not support the "_children" suffix.'},203:{basicMessage:"Element not an array - cannot have count",detailMessage:'Indicates that LMSGetValue was called with a data model element name that ends in "_count" for a data model element that does not support the "_count" suffix.'},301:{basicMessage:"Not initialized",detailMessage:"Indicates that an API call was made before the call to lmsInitialize."},401:{basicMessage:"Not implemented error",detailMessage:"The data model element indicated in a call to LMSGetValue or LMSSetValue is valid, but was not implemented by this LMS. SCORM 1.2 defines a set of data model elements as being optional for an LMS to implement."},402:{basicMessage:"Invalid set value, element is a keyword",detailMessage:'Indicates that LMSSetValue was called on a data model element that represents a keyword (elements that end in "_children" and "_count").'},403:{basicMessage:"Element is read only",detailMessage:"LMSSetValue was called with a data model element that can only be read."},404:{basicMessage:"Element is write only",detailMessage:"LMSGetValue was called on a data model element that can only be written to."},405:{basicMessage:"Incorrect Data Type",detailMessage:"LMSSetValue was called with a value that is not consistent with the data format of the supplied data model element."},407:{basicMessage:"Element Value Out Of Range",detailMessage:"The numeric value supplied to a LMSSetValue call is outside of the numeric range allowed for the supplied data model element."},408:{basicMessage:"Data Model Dependency Not Established",detailMessage:"Some data model elements cannot be set until another data model element was set. This error condition indicates that the prerequisite element was not set before the dependent element."}}},o={global:{SCORM_TRUE:"true",SCORM_FALSE:"false",STATE_NOT_INITIALIZED:0,STATE_INITIALIZED:1,STATE_TERMINATED:2},scorm12:n,aicc:(0,r.Cl)((0,r.Cl)({},n),{cmi_children:"core,suspend_data,launch_data,comments,objectives,student_data,student_preference,interactions,evaluation",student_preference_children:"audio,language,lesson_type,speed,text,text_color,text_location,text_size,video,windows",student_data_children:"attempt_number,tries,mastery_score,max_time_allowed,time_limit_action",student_demographics_children:"city,class,company,country,experience,familiar_name,instructor_name,title,native_language,state,street_address,telephone,years_experience",tries_children:"time,status,score",attempt_records_children:"score,lesson_status",paths_children:"location_id,date,time,status,why_left,time_in_element"}),scorm2004:{cmi_children:"_version,comments_from_learner,comments_from_lms,completion_status,credit,entry,exit,interactions,launch_data,learner_id,learner_name,learner_preference,location,max_time_allowed,mode,objectives,progress_measure,scaled_passing_score,score,session_time,success_status,suspend_data,time_limit_action,total_time",comments_children:"comment,timestamp,location",score_children:"max,raw,scaled,min",objectives_children:"progress_measure,completion_status,success_status,description,score,id",correct_responses_children:"pattern",student_data_children:"mastery_score,max_time_allowed,time_limit_action",student_preference_children:"audio_level,audio_captioning,delivery_speed,language",interactions_children:"id,type,objectives,timestamp,correct_responses,weighting,learner_response,result,latency,description",error_descriptions:{0:{basicMessage:"No Error",detailMessage:"No error occurred, the previous API call was successful."},101:{basicMessage:"General Exception",detailMessage:"No specific error code exists to describe the error. Use GetDiagnostic for more information."},102:{basicMessage:"General Initialization Failure",detailMessage:"Call to Initialize failed for an unknown reason."},103:{basicMessage:"Already Initialized",detailMessage:"Call to Initialize failed because Initialize was already called."},104:{basicMessage:"Content Instance Terminated",detailMessage:"Call to Initialize failed because Terminate was already called."},111:{basicMessage:"General Termination Failure",detailMessage:"Call to Terminate failed for an unknown reason."},112:{basicMessage:"Termination Before Initialization",detailMessage:"Call to Terminate failed because it was made before the call to Initialize."},113:{basicMessage:"Termination After Termination",detailMessage:"Call to Terminate failed because Terminate was already called."},122:{basicMessage:"Retrieve Data Before Initialization",detailMessage:"Call to GetValue failed because it was made before the call to Initialize."},123:{basicMessage:"Retrieve Data After Termination",detailMessage:"Call to GetValue failed because it was made after the call to Terminate."},132:{basicMessage:"Store Data Before Initialization",detailMessage:"Call to SetValue failed because it was made before the call to Initialize."},133:{basicMessage:"Store Data After Termination",detailMessage:"Call to SetValue failed because it was made after the call to Terminate."},142:{basicMessage:"Commit Before Initialization",detailMessage:"Call to Commit failed because it was made before the call to Initialize."},143:{basicMessage:"Commit After Termination",detailMessage:"Call to Commit failed because it was made after the call to Terminate."},201:{basicMessage:"General Argument Error",detailMessage:"An invalid argument was passed to an API method (usually indicates that Initialize, Commit or Terminate did not receive the expected empty string argument."},301:{basicMessage:"General Get Failure",detailMessage:"Indicates a failed GetValue call where no other specific error code is applicable. Use GetDiagnostic for more information."},351:{basicMessage:"General Set Failure",detailMessage:"Indicates a failed SetValue call where no other specific error code is applicable. Use GetDiagnostic for more information."},391:{basicMessage:"General Commit Failure",detailMessage:"Indicates a failed Commit call where no other specific error code is applicable. Use GetDiagnostic for more information."},401:{basicMessage:"Undefined Data Model Element",detailMessage:"The data model element name passed to GetValue or SetValue is not a valid SCORM data model element."},402:{basicMessage:"Unimplemented Data Model Element",detailMessage:"The data model element indicated in a call to GetValue or SetValue is valid, but was not implemented by this LMS. In SCORM 2004, this error would indicate an LMS that is not fully SCORM conformant."},403:{basicMessage:"Data Model Element Value Not Initialized",detailMessage:"Attempt to read a data model element that has not been initialized by the LMS or through a SetValue call. This error condition is often reached during normal execution of a SCO."},404:{basicMessage:"Data Model Element Is Read Only",detailMessage:"SetValue was called with a data model element that can only be read."},405:{basicMessage:"Data Model Element Is Write Only",detailMessage:"GetValue was called on a data model element that can only be written to."},406:{basicMessage:"Data Model Element Type Mismatch",detailMessage:"SetValue was called with a value that is not consistent with the data format of the supplied data model element."},407:{basicMessage:"Data Model Element Value Out Of Range",detailMessage:"The numeric value supplied to a SetValue call is outside of the numeric range allowed for the supplied data model element."},408:{basicMessage:"Data Model Dependency Not Established",detailMessage:"Some data model elements cannot be set until another data model element was set. This error condition indicates that the prerequisite element was not set before the dependent element."}}}};t.A=o},56:function(e,t,i){var r,n,o,s;i.d(t,{K$:function(){return r},Mb:function(){return s},YE:function(){return n},lC:function(){return o}}),function(e){e.unknown="unknown",e.true="true",e.false="false"}(r||(r={})),function(e){e.passed="passed",e.failed="failed",e.unknown="unknown"}(n||(n={})),function(e){e.completed="completed",e.incomplete="incomplete",e.unknown="unknown"}(o||(o={})),function(e){e[e._=0]="_",e[e.DEBUG=1]="DEBUG",e[e.INFO=2]="INFO",e[e.WARN=3]="WARN",e[e.ERROR=4]="ERROR",e[e.NONE=5]="NONE"}(s||(s={}))},797:function(e,t,i){var r=i(635),n={GENERAL:101,INITIALIZATION_FAILED:101,INITIALIZED:101,TERMINATED:101,TERMINATION_FAILURE:101,TERMINATION_BEFORE_INIT:101,MULTIPLE_TERMINATION:101,RETRIEVE_BEFORE_INIT:101,RETRIEVE_AFTER_TERM:101,STORE_BEFORE_INIT:101,STORE_AFTER_TERM:101,COMMIT_BEFORE_INIT:101,COMMIT_AFTER_TERM:101,ARGUMENT_ERROR:101,CHILDREN_ERROR:101,COUNT_ERROR:101,GENERAL_GET_FAILURE:101,GENERAL_SET_FAILURE:101,GENERAL_COMMIT_FAILURE:101,UNDEFINED_DATA_MODEL:101,UNIMPLEMENTED_ELEMENT:101,VALUE_NOT_INITIALIZED:101,INVALID_SET_VALUE:101,READ_ONLY_ELEMENT:101,WRITE_ONLY_ELEMENT:101,TYPE_MISMATCH:101,VALUE_OUT_OF_RANGE:101,DEPENDENCY_NOT_ESTABLISHED:101},o={scorm12:(0,r.Cl)((0,r.Cl)({},n),{RETRIEVE_BEFORE_INIT:301,STORE_BEFORE_INIT:301,COMMIT_BEFORE_INIT:301,ARGUMENT_ERROR:201,CHILDREN_ERROR:202,COUNT_ERROR:203,UNDEFINED_DATA_MODEL:401,UNIMPLEMENTED_ELEMENT:401,VALUE_NOT_INITIALIZED:301,INVALID_SET_VALUE:402,READ_ONLY_ELEMENT:403,WRITE_ONLY_ELEMENT:404,TYPE_MISMATCH:405,VALUE_OUT_OF_RANGE:407,DEPENDENCY_NOT_ESTABLISHED:408}),scorm2004:(0,r.Cl)((0,r.Cl)({},n),{INITIALIZATION_FAILED:102,INITIALIZED:103,TERMINATED:104,TERMINATION_FAILURE:111,TERMINATION_BEFORE_INIT:112,MULTIPLE_TERMINATIONS:113,RETRIEVE_BEFORE_INIT:122,RETRIEVE_AFTER_TERM:123,STORE_BEFORE_INIT:132,STORE_AFTER_TERM:133,COMMIT_BEFORE_INIT:142,COMMIT_AFTER_TERM:143,ARGUMENT_ERROR:201,GENERAL_GET_FAILURE:301,GENERAL_SET_FAILURE:351,GENERAL_COMMIT_FAILURE:391,UNDEFINED_DATA_MODEL:401,UNIMPLEMENTED_ELEMENT:402,VALUE_NOT_INITIALIZED:403,READ_ONLY_ELEMENT:404,WRITE_ONLY_ELEMENT:405,TYPE_MISMATCH:406,VALUE_OUT_OF_RANGE:407,DEPENDENCY_NOT_ESTABLISHED:408})};t.A=o},417:function(e,t,i){var r=i(635),n={CMIString256:"^.{0,255}$",CMIString4096:"^.{0,4096}$",CMITime:"^(?:[01]\\d|2[0123]):(?:[012345]\\d):(?:[012345]\\d)$",CMITimespan:"^([0-9]{2,}):([0-9]{2}):([0-9]{2})(.[0-9]{1,2})?$",CMIInteger:"^\\d+$",CMISInteger:"^-?([0-9]+)$",CMIDecimal:"^-?([0-9]{0,3})(.[0-9]*)?$",CMIIdentifier:"^[\\u0021-\\u007E\\s]{0,255}$",CMIFeedback:"^.{0,255}$",CMIIndex:"[._](\\d+).",CMIStatus:"^(passed|completed|failed|incomplete|browsed)$",CMIStatus2:"^(passed|completed|failed|incomplete|browsed|not attempted)$",CMIExit:"^(time-out|suspend|logout|)$",CMIType:"^(true-false|choice|fill-in|matching|performance|sequencing|likert|numeric)$",CMIResult:"^(correct|wrong|unanticipated|neutral|([0-9]{0,3})?(\\.[0-9]*)?)$",NAVEvent:"^(previous|continue)$",score_range:"0#100",audio_range:"-1#100",speed_range:"-100#100",weighting_range:"-100#100",text_range:"-1#1"},o={aicc:(0,r.Cl)((0,r.Cl)({},n),{CMIIdentifier:"^\\w{1,255}$"}),scorm12:n,scorm2004:{CMIString200:"^[\\u0000-\\uFFFF]{0,200}$",CMIString250:"^[\\u0000-\\uFFFF]{0,250}$",CMIString1000:"^[\\u0000-\\uFFFF]{0,1000}$",CMIString4000:"^[\\u0000-\\uFFFF]{0,4000}$",CMIString64000:"^[\\u0000-\\uFFFF]{0,64000}$",CMILang:"^([a-zA-Z]{2,3}|i|x)(-[a-zA-Z0-9-]{2,8})?$|^$",CMILangString250:"^({lang=([a-zA-Z]{2,3}|i|x)(-[a-zA-Z0-9-]{2,8})?})?((?!{.*$).{0,250}$)?$",CMILangcr:"^(({lang=([a-zA-Z]{2,3}|i|x)?(-[a-zA-Z0-9-]{2,8})?}))(.*?)$",CMILangString250cr:"^(({lang=([a-zA-Z]{2,3}|i|x)?(-[a-zA-Z0-9-]{2,8})?})?(.{0,250})?)?$",CMILangString4000:"^({lang=([a-zA-Z]{2,3}|i|x)(-[a-zA-Z0-9-]{2,8})?})?((?!{.*$).{0,4000}$)?$",CMITime:"^(19[7-9]{1}[0-9]{1}|20[0-2]{1}[0-9]{1}|203[0-8]{1})((-(0[1-9]{1}|1[0-2]{1}))((-(0[1-9]{1}|[1-2]{1}[0-9]{1}|3[0-1]{1}))(T([0-1]{1}[0-9]{1}|2[0-3]{1})((:[0-5]{1}[0-9]{1})((:[0-5]{1}[0-9]{1})((\\.[0-9]{1,2})((Z|([+|-]([0-1]{1}[0-9]{1}|2[0-3]{1})))(:[0-5]{1}[0-9]{1})?)?)?)?)?)?)?)?$",CMITimespan:"^P(?:([.,\\d]+)Y)?(?:([.,\\d]+)M)?(?:([.,\\d]+)W)?(?:([.,\\d]+)D)?(?:T?(?:([.,\\d]+)H)?(?:([.,\\d]+)M)?(?:([.,\\d]+)S)?)?$",CMIInteger:"^\\d+$",CMISInteger:"^-?([0-9]+)$",CMIDecimal:"^-?([0-9]{1,5})(\\.[0-9]{1,18})?$",CMIIdentifier:"^\\S{1,250}[a-zA-Z0-9]$",CMIShortIdentifier:"^[\\w\\.\\-\\_]{1,250}$",CMILongIdentifier:"^(?:(?!urn:)\\S{1,4000}|urn:[A-Za-z0-9-]{1,31}:\\S{1,4000}|.{1,4000})$",CMIFeedback:"^.*$",CMIIndex:"[._](\\d+).",CMIIndexStore:".N(\\d+).",CMICStatus:"^(completed|incomplete|not attempted|unknown)$",CMISStatus:"^(passed|failed|unknown)$",CMIExit:"^(time-out|suspend|logout|normal)$",CMIType:"^(true-false|choice|fill-in|long-fill-in|matching|performance|sequencing|likert|numeric|other)$",CMIResult:"^(correct|incorrect|unanticipated|neutral|-?([0-9]{1,4})(\\.[0-9]{1,18})?)$",NAVEvent:"^(previous|continue|exit|exitAll|abandon|abandonAll|suspendAll|_none_|(\\{target=(?<choice_target>\\S{0,}[a-zA-Z0-9-_]+)})?choice|(\\{target=(?<jump_target>\\S{0,}[a-zA-Z0-9-_]+)})?jump)$",NAVBoolean:"^(unknown|true|false$)",NAVTarget:"^{target=\\S{0,}[a-zA-Z0-9-_]+}$",scaled_range:"-1#1",audio_range:"0#*",speed_range:"0#*",text_range:"-1#1",progress_range:"0#1"}};t.A=o},784:function(e,t,i){i.d(t,{$h:function(){return c},gv:function(){return h},tQ:function(){return u},wq:function(){return _},yI:function(){return l}});var r=i(635),n=i(340),o=n.A.scorm12.error_descriptions,s=n.A.aicc.error_descriptions,a=n.A.scorm2004.error_descriptions,c=function(e){function t(t){var i=e.call(this,t.toString())||this;return i._errorCode=t,i.name="ScormValidationError",i}return(0,r.C6)(t,e),Object.defineProperty(t.prototype,"errorCode",{get:function(){return this._errorCode},enumerable:!1,configurable:!0}),t}(Error),l=function(e){function t(t,i,r){var n=e.call(this,t)||this;return n._detailedMessage="",n.message=i,n._errorMessage=i,r&&(n._detailedMessage=r),n}return(0,r.C6)(t,e),Object.defineProperty(t.prototype,"errorMessage",{get:function(){return this._errorMessage},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"detailedMessage",{get:function(){return this._detailedMessage},enumerable:!1,configurable:!0}),t}(c),u=function(e){function t(t){return{}.hasOwnProperty.call(o,String(t))?e.call(this,t,o[String(t)].basicMessage,o[String(t)].detailMessage)||this:e.call(this,101,o[101].basicMessage,o[101].detailMessage)||this}return(0,r.C6)(t,e),t}(l),h=function(e){function t(t){return{}.hasOwnProperty.call(s,String(t))?e.call(this,t,s[String(t)].basicMessage,s[String(t)].detailMessage)||this:e.call(this,101,s[101].basicMessage,s[101].detailMessage)||this}return(0,r.C6)(t,e),t}(l),_=function(e){function t(t){return{}.hasOwnProperty.call(a,String(t))?e.call(this,t,a[String(t)].basicMessage,a[String(t)].detailMessage)||this:e.call(this,101,a[101].basicMessage,a[101].detailMessage)||this}return(0,r.C6)(t,e),t}(l)},864:function(e,t,i){i.d(t,{$o:function(){return l},Bq:function(){return h},HT:function(){return u},J6:function(){return p},OI:function(){return c},UZ:function(){return o},f4:function(){return a},hw:function(){return d},sB:function(){return _},xE:function(){return s}});var r=3600,n={D:24*r,H:r,M:60,S:1};function o(e){if(!e||e<=0)return"00:00:00";var t=Math.floor(e/r),i=new Date(1e3*e),n=i.getUTCMinutes(),o=i.getSeconds(),s=e%1,a="";return m(s)>0&&(a="."+(a=m(s)>2?s.toFixed(2):String(s)).split(".")[1]),(t+":"+n+":"+o).replace(/\b\d\b/g,"0$&")+a}function s(e){if(!e||e<=0)return"PT0S";var t="P",i=e;for(var r in n){var o=n[r],s=Math.floor(i/o);m(i%=o)>2&&(i=Number(Number(i).toFixed(2))),"S"===r&&i>0&&(s+=i),s&&((t.indexOf("D")>0||"H"===r||"M"===r||"S"===r)&&-1===t.indexOf("T")&&(t+="T"),t+="".concat(s).concat(r))}return t}function a(e,t){if("number"!=typeof e&&"boolean"!=typeof e||(e=String(e)),"string"==typeof t&&(t=new RegExp(t)),!e||!e.match(t))return 0;var i=e.split(":");return 3600*Number(i[0])+60*Number(i[1])+Number(i[2])}function c(e,t){if("string"==typeof t&&(t=new RegExp(t)),!e||!e.match(t))return 0;var i=new RegExp(t).exec(e)||[],r=i[1],n=(i[2],i[4]),o=i[5],s=i[6],a=i[7],c=0;return c+=Number(a)||0,c+=60*Number(s)||0,c+=3600*Number(o)||0,c+=86400*Number(n)||0,c+=31536e3*Number(r)||0}function l(e,t,i){var r="string"==typeof i?new RegExp(i):i;return s(c(e,r)+c(t,r))}function u(e,t,i){return"string"==typeof i&&(i=new RegExp(i)),o(a(e,i)+a(t,i))}function h(e){var t={};return function e(i,r){if(Object(i)!==i)t[r]=i;else if(Array.isArray(i))for(var n=0,o=i.length;n<o;n++)e(i[n],r+"["+n+"]"),0===o&&(t[r]=[]);else{var s=!0;for(var a in i)({}).hasOwnProperty.call(i,a)&&(s=!1,e(i[a],r?r+"."+a:a));s&&r&&(t[r]={})}}(e,""),t}function _(e){if(Object(e)!==e||Array.isArray(e))return e;var t=/\.?([^.[\]]+)|\[(\d+)]/g,i={};for(var r in e)if({}.hasOwnProperty.call(e,r)){for(var n=i,o="",s=t.exec(r);s;)n=n[o]||(n[o]=s[2]?[]:{}),o=s[2]||s[1],s=t.exec(r);n[o]=e[r]}return i[""]||i}function m(e){return Math.floor(e)===e||String(e).indexOf(".")<0?0:e.toString().split(".")[1].length||0}function d(e,t,i){for(var r="",n=20-(r+=e).length,o=0;o<n;o++)r+=" ";if(r+=": ",i){n=70-(r+=i).length;for(var s=0;s<n;s++)r+=" "}return t&&(r+=t),r}function p(e,t){return null!==(null==e?void 0:e.match(t))}},635:function(e,t,i){i.d(t,{C6:function(){return n},Cl:function(){return o},YH:function(){return a},sH:function(){return s}});var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])},r(e,t)};function n(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function i(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}var o=function(){return o=Object.assign||function(e){for(var t,i=1,r=arguments.length;i<r;i++)for(var n in t=arguments[i])Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e},o.apply(this,arguments)};function s(e,t,i,r){return new(i||(i=Promise))((function(n,o){function s(e){try{c(r.next(e))}catch(e){o(e)}}function a(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?n(e.value):(t=e.value,t instanceof i?t:new i((function(e){e(t)}))).then(s,a)}c((r=r.apply(e,t||[])).next())}))}function a(e,t){var i,r,n,o={label:0,sent:function(){if(1&n[0])throw n[1];return n[1]},trys:[],ops:[]},s=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return s.next=a(0),s.throw=a(1),s.return=a(2),"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;function a(a){return function(c){return function(a){if(i)throw new TypeError("Generator is already executing.");for(;s&&(s=0,a[0]&&(o=0)),o;)try{if(i=1,r&&(n=2&a[0]?r.return:a[0]?r.throw||((n=r.return)&&n.call(r),0):r.next)&&!(n=n.call(r,a[1])).done)return n;switch(r=0,n&&(a=[2&a[0],n.value]),a[0]){case 0:case 1:n=a;break;case 4:return o.label++,{value:a[1],done:!1};case 5:o.label++,r=a[1],a=[0];continue;case 7:a=o.ops.pop(),o.trys.pop();continue;default:if(!(n=o.trys,(n=n.length>0&&n[n.length-1])||6!==a[0]&&2!==a[0])){o=0;continue}if(3===a[0]&&(!n||a[1]>n[0]&&a[1]<n[3])){o.label=a[1];break}if(6===a[0]&&o.label<n[1]){o.label=n[1],n=a;break}if(n&&o.label<n[2]){o.label=n[2],o.ops.push(a);break}n[2]&&o.ops.pop(),o.trys.pop();continue}a=t.call(e,o)}catch(e){a=[6,e],r=0}finally{i=n=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,c])}}}Object.create;Object.create;"function"==typeof SuppressedError&&SuppressedError}},t={};function i(r){var n=t[r];if(void 0!==n)return n.exports;var o=t[r]={exports:{}};return e[r](o,o.exports,i),o.exports}i.d=function(e,t){for(var r in t)i.o(t,r)&&!i.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},i.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},i.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var r={};i.r(r),i.d(r,{AICC:function(){return l},Scorm12API:function(){return a},Scorm2004API:function(){return c}});var n=i(531),o=i(941),s=i(180),a=o.Scorm12Impl,c=s.Scorm2004Impl,l=n.AICCImpl;for(var u in r)this[u]=r[u];r.__esModule&&Object.defineProperty(this,"__esModule",{value:!0})}();
2
2
  //# sourceMappingURL=scorm-again.min.js.map