(function(){var h,l=this;function p(a){return void 0!==a}function q(a,b,c){a=a.split(".");c=c||l;a[0]in c||!c.execScript||c.execScript("var "+a[0]);for(var d;a.length&&(d=a.shift());)!a.length&&p(b)?c[d]=b:c=c[d]&&c[d]!==Object.prototype[d]?c[d]:c[d]={}}
function aa(a){var b=typeof a;if("object"==b)if(a){if(a instanceof Array)return"array";if(a instanceof Object)return b;var c=Object.prototype.toString.call(a);if("[object Window]"==c)return"object";if("[object Array]"==c||"number"==typeof a.length&&"undefined"!=typeof a.splice&&"undefined"!=typeof a.propertyIsEnumerable&&!a.propertyIsEnumerable("splice"))return"array";if("[object Function]"==c||"undefined"!=typeof a.call&&"undefined"!=typeof a.propertyIsEnumerable&&!a.propertyIsEnumerable("call"))return"function"}else return"null";
else if("function"==b&&"undefined"==typeof a.call)return"object";return b}function ba(a){var b=aa(a);return"array"==b||"object"==b&&"number"==typeof a.length}function r(a){return"string"==typeof a}function ca(a){var b=typeof a;return"object"==b&&null!=a||"function"==b}function da(a){return a[ea]||(a[ea]=++fa)}var ea="closure_uid_"+(1E9*Math.random()>>>0),fa=0;function ga(a,b,c){return a.call.apply(a.bind,arguments)}
function ha(a,b,c){if(!a)throw Error();if(2<arguments.length){var d=Array.prototype.slice.call(arguments,2);return function(){var c=Array.prototype.slice.call(arguments);Array.prototype.unshift.apply(c,d);return a.apply(b,c)}}return function(){return a.apply(b,arguments)}}function t(a,b,c){t=Function.prototype.bind&&-1!=Function.prototype.bind.toString().indexOf("native code")?ga:ha;return t.apply(null,arguments)}var ia=Date.now||function(){return+new Date};
function u(a,b){function c(){}c.prototype=b.prototype;a.h=b.prototype;a.prototype=new c;a.prototype.constructor=a;a.Uc=function(a,c,f){for(var d=Array(arguments.length-2),e=2;e<arguments.length;e++)d[e-2]=arguments[e];return b.prototype[c].apply(a,d)}};function v(){}q("ispring.events.IEventDispatcher",v,void 0);v.prototype.addHandler=function(){};v.prototype.addHandler=v.prototype.addHandler;v.prototype.removeHandler=function(){};v.prototype.removeHandler=v.prototype.removeHandler;var ja=String.prototype.trim?function(a){return a.trim()}:function(a){return a.replace(/^[\s\xa0]+|[\s\xa0]+$/g,"")};function ka(a){if(!la.test(a))return a;-1!=a.indexOf("&")&&(a=a.replace(ma,"&amp;"));-1!=a.indexOf("<")&&(a=a.replace(na,"&lt;"));-1!=a.indexOf(">")&&(a=a.replace(oa,"&gt;"));-1!=a.indexOf('"')&&(a=a.replace(pa,"&quot;"));-1!=a.indexOf("'")&&(a=a.replace(qa,"&#39;"));-1!=a.indexOf("\x00")&&(a=a.replace(ra,"&#0;"));return a}var ma=/&/g,na=/</g,oa=/>/g,pa=/"/g,qa=/'/g,ra=/\x00/g,la=/[\x00&<>"']/;
function sa(a,b){for(var c=0,d=ja(String(a)).split("."),e=ja(String(b)).split("."),f=Math.max(d.length,e.length),g=0;0==c&&g<f;g++){var k=d[g]||"",m=e[g]||"";do{k=/(\d*)(\D*)(.*)/.exec(k)||["","","",""];m=/(\d*)(\D*)(.*)/.exec(m)||["","","",""];if(0==k[0].length&&0==m[0].length)break;c=ta(0==k[1].length?0:parseInt(k[1],10),0==m[1].length?0:parseInt(m[1],10))||ta(0==k[2].length,0==m[2].length)||ta(k[2],m[2]);k=k[3];m=m[3]}while(0==c)}return c}function ta(a,b){return a<b?-1:a>b?1:0}
function ua(a){return String(a).replace(/\-([a-z])/g,function(a,c){return c.toUpperCase()})}function va(a){var b=r(void 0)?"undefined".replace(/([-()\[\]{}+?*.$\^|,:#<!\\])/g,"\\$1").replace(/\x08/g,"\\x08"):"\\s";return a.replace(new RegExp("(^"+(b?"|["+b+"]+":"")+")([a-z])","g"),function(a,b,e){return b+e.toUpperCase()})};function wa(a,b){for(var c in a)b.call(void 0,a[c],c,a)}function xa(a){var b=0,c;for(c in a)b++;return b}function ya(a){var b=[],c=0,d;for(d in a)b[c++]=a[d];return b}function za(a,b,c){return null!==a&&b in a?a[b]:c}var Aa="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");
function Ba(a,b){for(var c,d,e=1;e<arguments.length;e++){d=arguments[e];for(c in d)a[c]=d[c];for(var f=0;f<Aa.length;f++)c=Aa[f],Object.prototype.hasOwnProperty.call(d,c)&&(a[c]=d[c])}};var Ca=Array.prototype.indexOf?function(a,b,c){return Array.prototype.indexOf.call(a,b,c)}:function(a,b,c){c=null==c?0:0>c?Math.max(0,a.length+c):c;if(r(a))return r(b)&&1==b.length?a.indexOf(b,c):-1;for(;c<a.length;c++)if(c in a&&a[c]===b)return c;return-1},w=Array.prototype.forEach?function(a,b,c){Array.prototype.forEach.call(a,b,c)}:function(a,b,c){for(var d=a.length,e=r(a)?a.split(""):a,f=0;f<d;f++)f in e&&b.call(c,e[f],f,a)},Da=Array.prototype.filter?function(a,b,c){return Array.prototype.filter.call(a,
b,c)}:function(a,b,c){for(var d=a.length,e=[],f=0,g=r(a)?a.split(""):a,k=0;k<d;k++)if(k in g){var m=g[k];b.call(c,m,k,a)&&(e[f++]=m)}return e},Ea=Array.prototype.map?function(a,b,c){return Array.prototype.map.call(a,b,c)}:function(a,b,c){for(var d=a.length,e=Array(d),f=r(a)?a.split(""):a,g=0;g<d;g++)g in f&&(e[g]=b.call(c,f[g],g,a));return e};
function Fa(a,b){var c;a:{c=a.length;for(var d=r(a)?a.split(""):a,e=0;e<c;e++)if(e in d&&b.call(void 0,d[e],e,a)){c=e;break a}c=-1}return 0>c?null:r(a)?a.charAt(c):a[c]}function Ga(a){return Array.prototype.concat.apply(Array.prototype,arguments)}function Ha(a){var b=a.length;if(0<b){for(var c=Array(b),d=0;d<b;d++)c[d]=a[d];return c}return[]}
function Ia(a,b){for(var c=1;c<arguments.length;c++){var d=arguments[c];if(ba(d)){var e=a.length||0,f=d.length||0;a.length=e+f;for(var g=0;g<f;g++)a[e+g]=d[g]}else a.push(d)}}function Ja(a,b,c,d){Array.prototype.splice.apply(a,Ka(arguments,1))}function Ka(a,b,c){return 2>=arguments.length?Array.prototype.slice.call(a,b):Array.prototype.slice.call(a,b,c)}
function La(a){for(var b={},c=0,d=0;d<a.length;){var e=a[d++],f;f=e;f=ca(f)?"o"+da(f):(typeof f).charAt(0)+f;Object.prototype.hasOwnProperty.call(b,f)||(b[f]=!0,a[c++]=e)}a.length=c};var x;a:{var Ma=l.navigator;if(Ma){var Na=Ma.userAgent;if(Na){x=Na;break a}}x=""}function y(a){return-1!=x.indexOf(a)};function Oa(){return y("iPhone")&&!y("iPod")&&!y("iPad")};function Pa(a,b){var c=Qa;return Object.prototype.hasOwnProperty.call(c,a)?c[a]:c[a]=b(a)};var Ra=y("Opera"),z=y("Trident")||y("MSIE"),Sa=y("Edge"),A=y("Gecko")&&!(-1!=x.toLowerCase().indexOf("webkit")&&!y("Edge"))&&!(y("Trident")||y("MSIE"))&&!y("Edge"),Ta=-1!=x.toLowerCase().indexOf("webkit")&&!y("Edge");function Ua(){var a=l.document;return a?a.documentMode:void 0}var Va;
a:{var Wa="",Xa=function(){var a=x;if(A)return/rv\:([^\);]+)(\)|;)/.exec(a);if(Sa)return/Edge\/([\d\.]+)/.exec(a);if(z)return/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/.exec(a);if(Ta)return/WebKit\/(\S+)/.exec(a);if(Ra)return/(?:Version)[ \/]?(\S+)/.exec(a)}();Xa&&(Wa=Xa?Xa[1]:"");if(z){var Ya=Ua();if(null!=Ya&&Ya>parseFloat(Wa)){Va=String(Ya);break a}}Va=Wa}var Qa={};function B(a){return Pa(a,function(){return 0<=sa(Va,a)})}var Za;var $a=l.document;
Za=$a&&z?Ua()||("CSS1Compat"==$a.compatMode?parseInt(Va,10):5):void 0;z&&B("9");!Ta||B("528");A&&B("1.9b")||z&&B("8")||Ra&&B("9.5")||Ta&&B("528");A&&!B("8")||z&&B("9");function ab(){};var bb=!z||9<=Number(Za);!A&&!z||z&&9<=Number(Za)||A&&B("1.9.1");var cb=z&&!B("9");function db(a,b){wa(b,function(b,d){"style"==d?a.style.cssText=b:"class"==d?a.className=b:"for"==d?a.htmlFor=b:eb.hasOwnProperty(d)?a.setAttribute(eb[d],b):0==d.lastIndexOf("aria-",0)||0==d.lastIndexOf("data-",0)?a.setAttribute(d,b):a[d]=b})}var eb={cellpadding:"cellPadding",cellspacing:"cellSpacing",colspan:"colSpan",frameborder:"frameBorder",height:"height",maxlength:"maxLength",nonce:"nonce",role:"role",rowspan:"rowSpan",type:"type",usemap:"useMap",valign:"vAlign",width:"width"};
function fb(a,b,c){var d=arguments,e=document,f=String(d[0]),g=d[1];if(!bb&&g&&(g.name||g.type)){f=["<",f];g.name&&f.push(' name="',ka(g.name),'"');if(g.type){f.push(' type="',ka(g.type),'"');var k={};Ba(k,g);delete k.type;g=k}f.push(">");f=f.join("")}f=e.createElement(f);g&&(r(g)?f.className=g:"array"==aa(g)?f.className=g.join(" "):db(f,g));2<d.length&&gb(e,f,d);return f}
function gb(a,b,c){function d(c){c&&b.appendChild(r(c)?a.createTextNode(c):c)}for(var e=2;e<c.length;e++){var f=c[e];!ba(f)||ca(f)&&0<f.nodeType?d(f):w(hb(f)?Ha(f):f,d)}}var ib={SCRIPT:1,STYLE:1,HEAD:1,IFRAME:1,OBJECT:1},jb={IMG:" ",BR:"\n"};
function kb(a){if(cb&&null!==a&&"innerText"in a)a=a.innerText.replace(/(\r\n|\r|\n)/g,"\n");else{var b=[];lb(a,b,!0);a=b.join("")}a=a.replace(/ \xAD /g," ").replace(/\xAD/g,"");a=a.replace(/\u200B/g,"");cb||(a=a.replace(/ +/g," "));" "!=a&&(a=a.replace(/^\s*/,""));return a}
function lb(a,b,c){if(!(a.nodeName in ib))if(3==a.nodeType)c?b.push(String(a.nodeValue).replace(/(\r\n|\r|\n)/g,"")):b.push(a.nodeValue);else if(a.nodeName in jb)b.push(jb[a.nodeName]);else for(a=a.firstChild;a;)lb(a,b,c),a=a.nextSibling}function hb(a){if(a&&"number"==typeof a.length){if(ca(a))return"function"==typeof a.item||"string"==typeof a.item;if("function"==aa(a))return"function"==typeof a.item}return!1};function mb(a){var b={width:"1px",height:"1px",border:"0"};if(r(b))(b=nb(a,b))&&(a.style[b]=void 0);else for(var c in b){var d=a,e=b[c],f=nb(d,c);f&&(d.style[f]=e)}}var ob={};function nb(a,b){var c=ob[b];if(!c){var d=ua(b),c=d;void 0===a.style[d]&&(d=(Ta?"Webkit":A?"Moz":z?"ms":Ra?"O":null)+va(d),void 0!==a.style[d]&&(c=d));ob[b]=c}return c};function pb(a,b){if("function"!=aa(a))if(a&&"function"==typeof a.handleEvent)a=t(a.handleEvent,a);else throw Error("Invalid listener argument");2147483647<Number(b)||l.setTimeout(a,b||0)};function qb(a){return/^\s*$/.test(a)?!1:/^[\],:{}\s\u2028\u2029]*$/.test(a.replace(/\\["\\\/bfnrtu]/g,"@").replace(/(?:"[^"\\\n\r\u2028\u2029\x00-\x08\x0a-\x1f]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?)[\s\u2028\u2029]*(?=:|,|]|}|$)/g,"]").replace(/(?:^|:|,)(?:[\s\u2028\u2029]*\[)+/g,""))}function rb(a){a=String(a);if(qb(a))try{return eval("("+a+")")}catch(b){}throw Error("Invalid JSON string: "+a);}function sb(a){this.Aa=a}sb.prototype.serialize=function(a){var b=[];tb(this,a,b);return b.join("")};
function tb(a,b,c){if(null==b)c.push("null");else{if("object"==typeof b){if("array"==aa(b)){var d=b;b=d.length;c.push("[");for(var e="",f=0;f<b;f++)c.push(e),e=d[f],tb(a,a.Aa?a.Aa.call(d,String(f),e):e,c),e=",";c.push("]");return}if(b instanceof String||b instanceof Number||b instanceof Boolean)b=b.valueOf();else{c.push("{");f="";for(d in b)Object.prototype.hasOwnProperty.call(b,d)&&(e=b[d],"function"!=typeof e&&(c.push(f),ub(d,c),c.push(":"),tb(a,a.Aa?a.Aa.call(b,d,e):e,c),f=","));c.push("}");return}}switch(typeof b){case "string":ub(b,
c);break;case "number":c.push(isFinite(b)&&!isNaN(b)?String(b):"null");break;case "boolean":c.push(String(b));break;case "function":c.push("null");break;default:throw Error("Unknown type: "+typeof b);}}}var vb={'"':'\\"',"\\":"\\\\","/":"\\/","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r","\t":"\\t","\x0B":"\\u000b"},wb=/\uffff/.test("\uffff")?/[\\\"\x00-\x1f\x7f-\uffff]/g:/[\\\"\x00-\x1f\x7f-\xff]/g;
function ub(a,b){b.push('"',a.replace(wb,function(a){var b=vb[a];b||(b="\\u"+(a.charCodeAt(0)|65536).toString(16).substr(1),vb[a]=b);return b}),'"')};var xb=y("Firefox"),yb=y("Safari")&&!((y("Chrome")||y("CriOS"))&&!y("Edge")||y("Coast")||y("Opera")||y("Edge")||y("Silk")||y("Android"))&&!(Oa()||y("iPad")||y("iPod"));var zb=null,Ab=A||Ta&&!yb||Ra||"function"==typeof l.btoa;function Bb(a,b){this.c=a;this.Ab=b||[]}q("iSpring.ios.mobile.MobileAppCommand",Bb,void 0);Bb.prototype.id=function(){return da(this)};
Bb.prototype.eb=function(a,b){var c=this.id(),d=(new sb(null)).serialize(b),e;if(Ab)e=l.btoa(d);else{e=[];for(var f=0,g=0;g<d.length;g++){for(var k=d.charCodeAt(g);255<k;)e[f++]=k&255,k>>=8;e[f++]=k}if(!zb)for(zb={},d=0;65>d;d++)zb[d]="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".charAt(d);d=zb;f=[];for(g=0;g<e.length;g+=3){var m=e[g],n=(k=g+1<e.length)?e[g+1]:0,C=g+2<e.length,Q=C?e[g+2]:0,qd=m>>2,m=(m&3)<<4|n>>4,n=(n&15)<<2|Q>>6,Q=Q&63;C||(Q=64,k||(n=64));f.push(d[qd],d[m],
d[n],d[Q])}e=f.join("")}return"isplayer://"+a+"/"+c+"/"+e};function Cb(a){try{var b=document.createElement("iframe");mb(b);b.src=a;document.body.appendChild(b);pb(function(){b&&b.parentNode&&b.parentNode.removeChild(b)},100)}catch(c){}};function D(a){this.length=a.length||a;for(var b=0;b<this.length;b++)this[b]=a[b]||0}D.prototype.BYTES_PER_ELEMENT=8;D.prototype.set=function(a,b){b=b||0;for(var c=0;c<a.length&&b+c<this.length;c++)this[b+c]=a[c]};D.prototype.toString=Array.prototype.join;if("undefined"==typeof Float64Array){try{D.BYTES_PER_ELEMENT=8}catch(a){}D.prototype.BYTES_PER_ELEMENT=D.prototype.BYTES_PER_ELEMENT;D.prototype.set=D.prototype.set;D.prototype.toString=D.prototype.toString;q("Float64Array",D,void 0)};function E(a){this.length=a.length||a;for(var b=0;b<this.length;b++)this[b]=a[b]||0}E.prototype.BYTES_PER_ELEMENT=4;E.prototype.set=function(a,b){b=b||0;for(var c=0;c<a.length&&b+c<this.length;c++)this[b+c]=a[c]};E.prototype.toString=Array.prototype.join;"undefined"==typeof Float32Array&&(E.BYTES_PER_ELEMENT=4,E.prototype.BYTES_PER_ELEMENT=E.prototype.BYTES_PER_ELEMENT,E.prototype.set=E.prototype.set,E.prototype.toString=E.prototype.toString,q("Float32Array",E,void 0));function Db(){var a;var b=window.location.search.substr(1);if(b){a={};for(var b=b.split("&"),c=0;c<b.length;++c){var d=b[c].split("=");if(2==d.length){try{var e=decodeURIComponent(d[0].replace(/\+/g," "))}catch(g){e=d[0]}try{var f=decodeURIComponent(d[1].replace(/\+/g," "))}catch(g){f=d[1]}e=e.toLowerCase();a[e]=f}}}else a={};return a};(function(){function a(a){try{return a.ISPlayer&&(window.ISPlayer=a.ISPlayer),a.ISPVideoPlayer&&(window.ISPVideoPlayer=a.ISPVideoPlayer),a.ISPQuizPlayer&&(window.ISPQuizPlayer=a.ISPQuizPlayer),a.ISPInteractionPlayerCore&&(window.ISPInteractionPlayerCore=a.ISPInteractionPlayerCore),a.ISPBookPlayer&&(window.ISPBookPlayer=a.ISPBookPlayer),a.ISPScenarioPlayer&&(window.ISPScenarioPlayer=a.ISPScenarioPlayer),!0}catch(e){return!1}}if(function(){var a;try{a=window.frameElement}catch(e){}return null!=a}())for(var b=
window,c=7;b&&b.parent!=b&&0!=c--&&!a(b.parent);)b=b.parent})();var Eb;var Fb=Db().user_agent;Eb=Fb?Fb:x||"";Db();var Gb=-1!=Eb.toLowerCase().indexOf("chrome"),Hb=-1==Eb.toLowerCase().indexOf("windows phone")&&-1!=Eb.toLowerCase().indexOf("android")&&!Gb&&!xb&&!Ra,Ib=-1!=Eb.indexOf("ismobile");function Jb(){return 1==window._ispringDebug||"1"==Db().isdebug}
if(y("Windows")){var Kb=x,Lb="",F;if(y("Windows")){F=/Windows (?:NT|Phone) ([0-9.]+)/;var G=F.exec(Kb),Lb=G?G[1]:"0.0"}else Oa()||y("iPad")||y("iPod")?(F=/(?:iPhone|iPod|iPad|CPU)\s+OS\s+(\S+)/,Lb=(G=F.exec(Kb))&&G[1].replace(/_/g,".")):y("Macintosh")?(F=/Mac OS X ([0-9_.]+)/,Lb=(G=F.exec(Kb))?G[1].replace(/_/g,"."):"10"):y("Android")?(F=/Android\s+([^\);]+)(\)|;)/,Lb=(G=F.exec(Kb))&&G[1]):y("CrOS")&&(F=/(?:CrOS\s+(?:i686|x86_64)\s+([0-9.]+))/,Lb=(G=F.exec(Kb))&&G[1]);sa(Lb||"","6")};function Mb(){this.qb=[];this.C=[]}Mb.prototype.push=function(a,b){if(!(b in this.C)){this.C[b]=[];var c=this.qb,d;d=0;for(var e=c.length,f;d<e;){var g=d+e>>1,k;k=c[g];k=b>k?1:b<k?-1:0;0<k?d=g+1:(e=g,f=!k)}d=f?d:~d;0>d&&Ja(c,-(d+1),0,b)}this.C[b].push(a)};Mb.prototype.remove=function(a,b){if(b in this.C){var c=this.C[b],d=Ca(c,a);0<=d&&Array.prototype.splice.call(c,d,1)}};function Nb(a,b){return b in a.C?a.C[b]:[]}
function Ob(a){var b=[],c=a.C;a=a.qb;for(var d=0;d<a.length;++d)Ia(b,c[a[d]]);return b};function H(){this.W=new Mb}u(H,ab);var Pb=0;H.prototype.addHandler=function(a,b,c){this.W.push({Wa:a,context:b},c||0);++Pb};H.prototype.addHandler=H.prototype.addHandler;H.prototype.removeHandler=function(a,b,c){c=c||0;for(var d=Nb(this.W,c),e=d.length,f=0;f<e;++f){var g=d[f];if(g.Wa==a&&g.context==b){a=this.W;c in a.C&&Array.prototype.splice.call(a.C[c],f,1);--Pb;break}}};H.prototype.removeHandler=H.prototype.removeHandler;
H.prototype.Sb=function(a,b,c){c=Nb(this.W,c||0);for(var d=c.length,e=0;e<d;++e){var f=c[e];if(f.Wa==a&&f.context==b)return!0}return!1};H.prototype.hasHandler=H.prototype.Sb;H.prototype.Va=function(a){for(var b=Ob(this.W),c=b.length,d=0;d<c;++d){var e=b[d];if(-1!=Ca(Ob(this.W),e))try{e.Wa.apply(e.context,arguments)}catch(f){Jb()&&alert(f)}}};H.prototype.dispatch=H.prototype.Va;var I={Nc:"slidePool",Xb:"authorizationForm",lc:"informationSlide",nc:"introSlide",Ic:"resultSlide",jc:"hotspotQuestion",rc:"likertScaleQuestion",Sc:"wordBankQuestion",dc:"essayQuestion",Qc:"typeInQuestion",Mc:"shortAnswerQuestion",ec:"fillInTheBlankQuestion",fc:"fillInTheBlankSurveyQuestion",Ac:"numericQuestion",Bc:"numericSurveyQuestion",Lc:"sequenceQuestion",Hc:"rankingQuestion",Rc:"whichWordQuestion",vc:"multipleChoiceTextQuestion",wc:"multipleChoiceTextSurveyQuestion",uc:"multipleChoiceQuestion",
xc:"multipleResponseQuestion",Ec:"pickOneQuestion",Dc:"pickManyQuestion",Pc:"trueFalseQuestion",Tc:"yesNoQuestion",sc:"matchingQuestion",tc:"matchingSurveyQuestion"};q("ispring.quiz.slides.SlideType",I,void 0);function Qb(a){return"slidePool"!=a&&"informationSlide"!=a&&"introSlide"!=a&&"resultSlide"!=a}q("SLIDE_POOL","slidePool",I);q("INFORMATION_SLIDE","informationSlide",I);q("INTRO_SLIDE","introSlide",I);q("HOTSPOT_QUESTION","hotspotQuestion",I);q("LIKERT_SCALE_QUESTION","likertScaleQuestion",I);
q("WORD_BANK_QUESTION","wordBankQuestion",I);q("RESULT_SLIDE","resultSlide",I);q("ESSAY_QUESTION","essayQuestion",I);q("TYPE_IN_QUESTION","typeInQuestion",I);q("SHORT_ANSWER_QUESTION","shortAnswerQuestion",I);q("FILL_IN_THE_BLANK_QUESTION","fillInTheBlankQuestion",I);q("FILL_IN_THE_BLANK_SURVEY_QUESTION","fillInTheBlankSurveyQuestion",I);q("NUMERIC_QUESTION","numericQuestion",I);q("NUMERIC_SURVEY_QUESTION","numericSurveyQuestion",I);q("SEQUENCE_QUESTION","sequenceQuestion",I);
q("RANKING_QUESTION","rankingQuestion",I);q("WHICH_WORD_QUESTION","whichWordQuestion",I);q("MULTIPLE_CHOICE_TEXT_QUESTION","multipleChoiceTextQuestion",I);q("MULTIPLE_CHOICE_TEXT_SURVEY_QUESTION","multipleChoiceTextSurveyQuestion",I);q("MULTIPLE_CHOICE_QUESTION","multipleChoiceQuestion",I);q("MULTIPLE_RESPONSE_QUESTION","multipleResponseQuestion",I);q("PICK_ONE_QUESTION","pickOneQuestion",I);q("PICK_MANY_QUESTION","pickManyQuestion",I);q("TRUE_FALSE_QUESTION","trueFalseQuestion",I);
q("YES_NO_QUESTION","yesNoQuestion",I);q("MATCHING_QUESTION","matchingQuestion",I);q("MATCHING_SURVEY_QUESTION","matchingSurveyQuestion",I);var Rb={Gc:"prompt",Vb:"always",yc:"never"};q("ispring.presenter.presentation.settings.PresentationResumeMode",Rb,void 0);q("PROMPT_TO_RESUME","prompt",Rb);q("ALWAYS_RESUME","always",Rb);q("NEVER_RESUME","never",Rb);function Sb(a,b){this.Sa=a;this.ub=b;this.vb=new H}h=Sb.prototype;h.R=!1;h.Y=0;h.ra=0;h.ta=-1;h.ua=0;h.Ea=0;h.start=function(a){this.R||(this.ua=this.Y=a||0,a=this.Y>=this.Sa,a&&this.ub||(this.R=!0,this.ra=ia(),a||(this.ta=setTimeout(t(this.Pa,this),this.Sa-this.Y))))};h.Pa=function(){this.ub&&(this.stop(),this.ua=this.Sa);this.vb.Va()};h.stop=function(){this.R&&(this.R=!1,0<this.ta&&(clearTimeout(this.ta),this.ta=-1),this.Ea=ia()-this.ra,this.ua=this.Ea+this.Y)};function Tb(a){this.gb=a}Tb.prototype.Rb=function(a,b,c){c=this.gb.hasOwnProperty(a)?this.gb[a]:c;if(p(c)){if(p(b)){a=this.Cb;for(var d in b)if(b.hasOwnProperty(d)){var e=b[d];a&&(d=a(d));c=c.replace(new RegExp(d,"g"),e)}}return c}return""};Tb.prototype.getMessage=Tb.prototype.Rb;Tb.prototype.Cb=function(a){return"%"+a.toUpperCase()+"%"};function Ub(a,b,c,d,e,f,g){this.Db=new Tb(c);this.zb=d;this.A=g}Ub.prototype.i18n=function(){return this.Db};function Vb(a,b,c){var d=window.iSpring.LMSAPI;switch(a){case "1.2":return new d.Scorm12Api(b);case "2004":return new d.Scorm2004Api(b);case "aicc":return new d.AiccApi(b);case "tincan":return new d.TinCanApi(b,c);case "cmi-5":return new d.Cmi5Api(b,c);default:throw Error("unknown api");}};function Wb(){this.Nb=new H};function Xb(a,b,c,d){this.Ob=a;this.Ga=b;this.Lb=c;this.Eb=d}Xb.prototype.timeLimit=function(){return this.Ob};Xb.prototype.message=function(){return this.Eb};var Yb={mc:"initializing",oc:"inProgress",Kc:"reviewing",Zb:"completed",Wb:"authorizating"};q("ispring.quiz.session.QuizState",Yb,void 0);q("INITIALIZING","initializing",Yb);q("IN_PROGRESS","inProgress",Yb);q("REVIEWING","reviewing",Yb);q("COMPLETED","completed",Yb);q("AUTHORIZATING","authorizating",Yb);var Zb={Jc:"resumePlayback",gc:"gotoSlide",ac:"delayStartup"};q("ispring.presenter.player.startup.PresentationStartup.Action",Zb,void 0);q("RESUME_PLAYBACK","resumePlayback",Zb);q("GOTO_SLIDE","gotoSlide",Zb);q("DELAY_STARTUP","delayStartup",Zb);function $b(a){var b="\r";if(0==a.length)return"";null!=b||(b="");var c=0,d="",e=a.length;do{var f=ac(a,["<p>","<p "],c);if(f&&f.za>c){var c=a.substr(c,f.za-c),g=fb("DIV");g.innerHTML=c;d+=(g.textContent||g.innerText||kb(g))+b;c=f.za}if(g=ac(a,["</p>","</p >"],c)){var f=g.za+g.Ub.length-c,k=a.substr(c,f),g=fb("DIV");g.innerHTML=k;d+=(g.textContent||g.innerText||kb(g))+b;c+=f}else return g=fb("DIV"),g.innerHTML=a.substr(c,e-c),d+(g.textContent||g.innerText||kb(g))}while(c<e);return d}
function ac(a,b,c){"array"==aa(b)||(b=[b]);var d,e,f=!1;w(b,function(b){var g=a.indexOf(b,c);0<=g&&(!p(d)||g<d)&&(d=g,e=b,f=!0)});return f?new bc(e,d):null}function bc(a,b){this.Ub=a;this.za=b};function J(a,b){this.ga=a;this.F=b}J.prototype.id=function(){return this.ga};J.prototype.description=function(){return this.F};function cc(){this.V=[]}cc.prototype.count=function(){return this.V.length};function K(a,b){a.V.push(b)}cc.prototype.getChoice=function(a){if(0>a||a>=this.count())throw Error("Index out of bounds");return this.V[a]};function L(){this.V=new cc}L.prototype.choices=function(){return this.V};function M(a){a=ja(a);return a=a.replace(/[^\w-]/g,"_")}function N(a,b){return"0123456789abcdefghijklmnopqrstuvwxyz"[((null!=b?b:1)?a:35-a)%36]};function dc(a,b,c,d,e){this.pa=a;this.Jb=b;this.Kb=c;this.Ib=d;this.Ra=e}function ec(a){a=$b(a.text());a=ka(a);if(!a)return"";var b=document.createElement("div");b.innerHTML=a;return b.firstChild.nodeValue}
dc.prototype.create=function(){var a=0,b=[],c=this.Jb,d=this.Ib,e=new fc(c.id()+"_"+a),a=a+1;e.c=O;var f;null!=c.message()?(f=c.message().text(),f=$b(f),e.F=f,f=c.message().replies(),null!=c.speech()&&0<$b(c.speech())&&(a=new fc(c.id()+"_"+a),a.c=P,c=$b(c.speech()),a.F=c,a.$=gc,hc(this,a),b.push(a))):(f=$b(c.speech()),e.F=f,f=c.replies());0==f.count()&&(e.c=P);for(var c=null,g=a=0,k=-1,m=[],n=0;n<f.count();n++){var C=f.getReply(n);null!=d&&C==d&&(k=n);a=Math.max(a,C.score());m.push(ic(this,n,ec(C)))}null!=
d&&(c=ic(this,k,ec(d)),g=Math.max(g,d.score()));d=f;f=new L;for(k=0;k<d.count();++k)n=ec(d.getReply(k)),K(f.choices(),new J(M(k+"_"+n),n));e.g=c;e.j=m;this.pa.scenario().settings().evaluationSettings().enabled()&&(e.U(a),e.la=g);e.$=gc;hc(this,e);b.push(e);return b};function ic(a,b,c){c=M(b+"_"+c);b=N(b);return a.Kb?b:c}function hc(a,b){null!=a.Ra&&(b.Ta=new Date(a.Ra),b.Ba(ia()-a.Ra))};var O="choice",P="other";var jc={id:"http://adlnet.gov/expapi/verbs/experienced",display:{"en-US":"experienced"}},kc={id:"http://adlnet.gov/expapi/verbs/answered",display:{"en-US":"answered"}},lc={id:"http://adlnet.gov/expapi/verbs/responded",display:{"en-US":"responded"}};function mc(){function a(a){try{for(var b=0;255>b;++b){if(a.API_1484_11)return a.API_1484_11;var c=a.parent;if(!c||a==c)break;a=c}}catch(f){}return null}var b=window;return a(b)||b.opener&&a(b.opener)}function nc(a){return"PT"+Math.floor(a/3600)+"H"+Math.floor(a%3600/60)+"M"+Math.floor(a%60)+"S"}function oc(a){return 10>a?"0"+a:a};function pc(a,b,c){this.ga=a;this.Fb=b;this.Bb=c}pc.prototype.id=function(){return this.ga};pc.prototype.name=function(){return this.Fb};pc.prototype.email=function(){return this.Bb};var gc="neutral";function fc(a){this.ga=a}h=fc.prototype;h.F="";h.g=null;h.j=null;h.$="unanticipated";h.rb=0;h.la=null;h.N=null;h.Ta=null;h.id=function(){return this.ga};h.type=function(){return this.c};h.description=function(){return this.F};h.ja=function(){return this.g};h.Ua=function(){return this.j};function qc(a,b){a.j=b}h.result=function(){return this.$};h.score=function(){return this.rb};h.U=function(a){this.rb=a};h.awardedScore=function(){return this.la};h.duration=function(){return this.N};
h.Ba=function(a){this.N=a};h.bb=function(){return this.Ta};function rc(){};function sc(){}sc.prototype.create=function(a){var b=a.slide().id(),b=new fc(this.f(b));this.a(b,a);return b};sc.prototype.a=function(a,b){var c=b.slide().name();a.F=c;a.c=P;a.U(b.maxScore());c=b.awardedScore();a.la=c;c=b.isPassed()?"correct":"incorrect";a.$=c};sc.prototype.f=function(a){return M(a)};function tc(){}h=tc.prototype;h.yb=null;h.maxScore=null;h.awardedScore=null;h.ya=null;h.duration=null;function uc(a,b){this.l=a;this.pa=b}function vc(a){"byGroups"==a.pa.settings().passingScoreType()&&a.pa.slidePoolState().forEach(function(a){"slidePool"==a.slide().type()&&(new sc).create(a)})};function wc(a,b,c,d,e){this.type=a;this.ya=b;this.maxScore=p(c)?c:null;this.Tb=p(d)?d:null;this.Ya=p(e)?e:null}wc.prototype.Xa=function(){var a={};a[xc]=this.ya;a[yc]=this.maxScore;a[zc]=this.Tb;a[Ac]=this.Ya;a[Bc]=this.type;return a};
function Cc(a){if("graded"==a.quiz().type()){var b="byGroups"==a.settings().passingScoreType(),c=a.awardedScore();if(b){var d=0,e=0;a.slidePoolState().forEach(function(a){"slidePool"==a.slide().type()&&0!=a.maxScore()&&(e++,a.isPassed()&&d++)});c=100*(e?d/e:0)}var f=b?100:a.maxScore(),b=b?0<f?Math.round(c/f*1E4)/1E4:1:a.awardedPercent();return new wc(Dc,a.quizPassed(),f,c,b)}return new wc(Dc,!0)}var xc="p",yc="m",zc="r",Ac="s",Bc="t",Dc="quiz";function Ec(){this.L=[];this.J={}}h=Ec.prototype;h.na=-1;h.N=0;h.oa=null;h.duration=function(){return this.N};h.Ba=function(a){this.N=a};h.Xa=function(){var a={};a[Fc]=this.N;a[Gc]=this.na;a[Hc]=this.L;a[Ic]=this.oa;var b={},c;for(c in this.J)b[c]=this.J[c].Xa();a[Jc]=b;return a};var Gc="l",Hc="v",Fc="d",Ic="p",Jc="q";function Kc(a){for(var b=0,c=0;c<a.length;++c)b+=a[c];return b};function Lc(a,b,c,d,e,f){this.K=a;this.Mb=b;this.Pb=e;this.Hb=f;this.H={};for(a=0;a<c.length;++a)b=c[a],e=b[1],this.H[b[0]]=e,0<e&&++this.da;this.Z={};for(a=0;a<d.length;++a)c=d[a],b=c[1],this.Z[c[0]]=b,0<b&&++this.da}h=Lc.prototype;h.da=0;h.slidesWeight=function(){return 0<this.K?this.Mb:0};h.slidesToView=function(){return this.K};h.totalScore=function(){return this.Pb};h.passingScore=function(){return this.Hb};function Mc(a,b,c,d){for(var e=d?",":"[,]",f=d?".":"[.]",g=[],k=0;k<a.count();++k){var m=a.getMatch(k),n=m.premise(),m=m.response(),C=b.getChoiceIndex(n),Q=c.getChoiceIndex(m),n=d?N(C,!0):C+"_"+n.textRange().text(),m=d?N(Q,!1):Q+"_"+m.textRange().text(),n=M(n)+f+M(m);g.push(n)}return g.join(e)}function Nc(a,b,c){for(var d=c?",":"[,]",e=[],f=0;f<b.count();++f){var g=b.getChoice(f),k=g.textRange().text(),g=a.getChoiceIndex(g);e.push(M(c?N(g,!0):g+"_"+k))}return e.join(d)};function Oc(){}Oc.prototype.create=function(a){if(!a.submitted())return null;var b=a.slide().id(),b=new fc(this.f(b));this.a(b,a);return b};Oc.prototype.a=function(a,b){var c=b.slide().description().text();a.F=c;b.visited()&&(a.Ba(b.viewDuration()),c=b.firstVisitTime(),a.Ta=c)};Oc.prototype.f=function(a){return M(a)};function R(){}u(R,Oc);R.prototype.a=function(a,b){R.h.a.call(this,a,b);a.$=gc};function Pc(a){this.w=a}u(Pc,R);Pc.prototype.w=!1;Pc.prototype.a=function(a,b){Pc.h.a.call(this,a,b);a.c="sequencing";var c=b.slide().items(),d=Nc(c,b.items(),this.w);a.g=d;a.j=[d];this.v(c)};Pc.prototype.v=function(a){for(var b=new L,c=0;c<a.count();++c){var d=a.getChoice(c).textRange().text();K(b.choices(),new J(this.f(c+"_"+d),d))}return b};var Qc={$b:"correct",Cc:"partiallyCorrect",kc:"incorrect",zc:"notAnswered"};q("ispring.quiz.session.slides.questions.graded.review.GradedQuestionStatus",Qc,void 0);q("CORRECT","correct",Qc);q("PARTIALLY_CORRECT","partiallyCorrect",Qc);q("INCORRECT","incorrect",Qc);q("NOT_ANSWERED","notAnswered",Qc);function S(){}u(S,Oc);S.prototype.a=function(a,b){S.h.a.call(this,a,b);var c=b.slide();a.U(c.maxScore());if(c=b.review()){var d=Math.max(0,c.awardedScore());a.la=d;d="unanticipated";switch(c.status()){case "correct":d="correct";break;case "incorrect":d="incorrect";break;case "partiallyCorrect":d="partially"}a.$=d}};var T={cc:"equal",bc:"notEqual",hc:"greaterThan",pc:"lessThan",ic:"greaterThanOrEqual",qc:"lessThanOrEqual",Yb:"between"};q("ispring.quiz.slides.questions.graded.answers.numeric.ComparisonOperation",T,void 0);q("EQUALS","equal",T);q("DIFFERS","notEqual",T);q("GREATER_THAN","greaterThan",T);q("LESS_THAN","lessThan",T);q("GREATER_THAN_OR_EQUALS","greaterThanOrEqual",T);q("LESS_THAN_OR_EQUALS","lessThanOrEqual",T);q("BETWEEN","between",T);function Rc(a){this.b=a}u(Rc,S);
Rc.prototype.a=function(a,b){Rc.h.a.call(this,a,b);var c=b.slide(),d=b.initiated()?b.getAnswer().toString():"",c=c.answers(),e;a:{for(e=0;e<c.count();++e)if("notEqual"==c.getAnswer(e).comparisonOperation()){e=!0;break a}e=!1}a.c=this.b||e?"fill-in":"numeric";for(var f=(e=this.b||e)?"[,]":"[.]",g=[],k=0;k<c.count();++k){var m="",n=c.getAnswer(k),C=n.comparisonOperation();if("between"==C)m=n,m=e?"between "+m.leftOperand()+" and "+m.rightOperand():m.leftOperand()+"[:]"+m.rightOperand();else switch(C){case "notEqual":e&&
(m="not equal to "+n.operand());break;case "equal":m=e?"equal to "+n.operand():n.operand()+"[:]"+n.operand();break;case "greaterThan":m=e?"greater than "+n.operand():n.operand()+"[:]";break;case "greaterThanOrEqual":m=e?"greater than or equal to "+n.operand():n.operand()+"[:]";break;case "lessThan":m=e?"less than "+n.operand():"[:]"+n.operand();break;case "lessThanOrEqual":m=e?"less than or equal to "+n.operand():"[:]"+n.operand()}g.push(m)}c=g.join(f);a.g=d;a.j=[c]};function Sc(a,b){this.b=a;this.va=b}u(Sc,R);Sc.prototype.a=function(a,b){Sc.h.a.call(this,a,b);a.c=this.b?P:"fill-in";var c=this.Ka(b.blanks()),d=c.join("[,]");a.g=d;a.j=this.b||this.va?[d]:c};Sc.prototype.Ka=function(a){for(var b=[],c=0;c<a.count();++c)b.push(a.getSection(c).answer());return b};function Tc(a){this.w=a}u(Tc,S);Tc.prototype.w=!1;Tc.prototype.a=function(a,b){Tc.h.a.call(this,a,b);a.c="sequencing";var c=b.slide().items(),d=Nc(c,b.items(),this.w),e=Nc(c,c,this.w);a.g=d;a.j=[e];this.v(c)};Tc.prototype.v=function(a){for(var b=new L,c=0;c<a.count();++c){var d=a.getChoice(c).textRange().text();K(b.choices(),new J(this.f(c+"_"+d),d))}return b};function U(a,b){this.length=b;for(var c=0;c<b;++c)this[c]=a(c)};function Uc(a){this.b=a}u(Uc,S);function Vc(a,b,c){w(new U(function(a){return b.getChoice(a)},b.count()),function(b){b=b.textRange().text();var d=c.choices().count();K(c.choices(),new J(a.f(d+"_"+b),b))})}Uc.prototype.Ha=function(a,b,c){var d=this;w(a,function(a){a=a.section().answers().getGradedChoice(0).textRange().text();var e=b.choices().count(),e=d.f(e+"_"+a);c.push(e);K(b.choices(),new J(e,a))})};
Uc.prototype.Ia=function(a,b,c){w(a,function(a){var d=a.answer();null!=d&&(a=Fa(new U(function(a){return b.choices().getChoice(a)},b.choices().count()),function(a){return a.description()==d.textRange().text()}),c.push(a.id()))})};Uc.prototype.a=function(a,b){Uc.h.a.call(this,a,b);a.c=this.b?P:O;var c=b.slide(),d=[],e=[],f=new L;Vc(this,c.extraItems(),f);var g=b.placeholders(),c=new U(function(a){return g.getSection(a)},g.count());this.Ha(c,f,e);this.Ia(c,f,d);a.g=d.join("[,]");qc(a,[e.join("[,]")])};function Wc(a){this.b=a}u(Wc,R);Wc.prototype.a=function(a,b){Wc.h.a.call(this,a,b);a.c=this.b?"fill-in":"numeric";var c="",d="";b.initiated()&&(c=b.answer().toString(),d=this.b?c:c+"[:]"+c);a.g=c;a.j=[d]};function Xc(){this.V=new cc;this.cb=[]}u(Xc,L);function V(a){this.b=a}u(V,R);V.prototype.a=function(a,b){V.h.a.call(this,a,b);a.c=O;var c=b.slide().choices(),d=b.choices(),e=this.Ja(c,d);a.g=e;a.j=[e];this.v(c,d)};V.prototype.v=function(a,b){for(var c=new Xc,d=0;d<a.count();++d){var e=a.getChoice(d),f;a:{for(f=0;f<b.count();++f){var g=b.getChoiceState(f);if(g.choice()===e){f=g;break a}}throw Error("can't find choice state");}g=e.textRange().text();g=new J(this.ea(f,d),g);K(c.choices(),g);e=e.customAnswerEnabled()?f.customAnswer():"";c.cb[d]=e}return c};
V.prototype.Ja=function(a,b){for(var c=[],d=0;d<b.count();++d){var e=b.getChoiceState(d);if(e.selected()){var f=a.getChoiceIndex(e.choice()),e=this.ea(e,f);c.push(e)}}return c.join("[,]")};V.prototype.ea=function(a,b){var c=a.customizableChoice(),d=c.textRange().text(),d=b+"_"+d;c.customAnswerEnabled()&&(c=a.customAnswer(),d+=c?"_"+c:"");return this.b?N(b):this.f(d)};function Yc(){this.qa=new cc;this.sa=new cc};function Zc(a){this.w=a}u(Zc,R);Zc.prototype.a=function(a,b){Zc.h.a.call(this,a,b);a.c="matching";var c=b.slide(),d=Mc(b.matches(),c.premises(),c.responses(),this.w);a.g=d;a.j=[d];this.M(c)};Zc.prototype.M=function(a){var b=new Yc,c=a.premises();a=a.responses();for(var d=0;d<c.count();++d){var e=c.getChoice(d).textRange().text(),f=a.getChoice(d).textRange().text();K(b.qa,new J(this.f(d+"_"+e),e));K(b.sa,new J(this.f(d+"_"+f),f))}return b};function $c(a){this.b=a}u($c,S);$c.prototype.a=function(a,b){$c.h.a.call(this,a,b);a.c=O;var c=b.slide().responses(),d=this.La(c,b.responses()),e=this.fa(c);a.g=d;a.j=[e];this.v(c)};$c.prototype.v=function(a){for(var b=new L,c=0;c<a.count();++c){var d=a.getGradedChoice(c).textRange().text();K(b.choices(),new J(this.f(c+"_"+d),d))}return b};
$c.prototype.La=function(a,b){for(var c=[],d=0;d<b.count();++d){var e=b.getChoiceState(d),f=e.gradedChoice(),g=f.textRange().text();e.selected()&&(e=a.getChoiceIndex(f),g=this.b?N(e):this.f(e+"_"+g),c.push(g))}return c.join("[,]")};$c.prototype.fa=function(a){for(var b=[],c=0;c<a.count();++c){var d=a.getGradedChoice(c);d.correct()&&(d=this.b?N(c):this.f(c+"_"+d.textRange().text()),b.push(d))}return b.join("[,]")};var ad={Oc:"textSection",Fc:"placeholderSection"};q("ispring.quiz.slides.questions.SectionType",ad,void 0);q("TEXT_SECTION","textSection",ad);q("PLACEHOLDER_SECTION","placeholderSection",ad);function bd(a){this.b=a}u(bd,S);
bd.prototype.a=function(a,b){var c=this;bd.h.a.call(this,a,b);a.c=this.b?P:"matching";var d=b.slide(),e=[],f=[],g=new L,k=b.choices();w(new U(function(a){return k.getSection(a)},k.count()),function(a,b){var d=Fa(new U(function(b){return a.choices().getChoiceState(b)},a.choices().count()),function(a){return a.selected()}),k=a.section().choices();w(new U(function(a){return k.getGradedChoice(a)},k.count()),function(a){var k=a.textRange().text(),m=g.choices().count(),m=b+"[.]"+c.f(m+"_"+k);a.correct()&&
f.push(m);null!=d&&k==d.gradedChoice().textRange().text()&&e.push(m);K(g.choices(),new J(m,k))})});a.g=e.join("[,]");qc(a,[f.join("[,]")]);rc(this.M(d))};bd.prototype.M=function(a){var b=new Yc,c=0,d=0;a=a.content();for(var e=0;e<a.sectionsCount();++e){var f=a.getSection(e);if("placeholderSection"==f.type()){var f=f.choices(),g=c++ +"";K(b.qa,new J(g,g));for(g=0;g<f.count();++g){var k=f.getChoice(g).textRange().text(),m=this.f(d++ +"_"+k);K(b.sa,new J(m,k))}}}return b};function W(a){this.b=a}u(W,S);W.prototype.a=function(a,b){W.h.a.call(this,a,b);a.c=O;var c=b.slide().choices(),d=this.La(c,b.choices()),e=this.fa(c);a.g=d;a.j=[e];this.v(c)};W.prototype.v=function(a){for(var b=new L,c=0;c<a.count();++c){var d=a.getGradedChoice(c).textRange().text();K(b.choices(),new J(this.f(c+"_"+d),d))}return b};
W.prototype.La=function(a,b){for(var c="",d=0;d<b.count();++d){var e=b.getChoiceState(d);if(e.selected()){c=a.getChoiceIndex(e.gradedChoice());c=this.b?N(c):this.f(c+"_"+e.gradedChoice().textRange().text());break}}return c};W.prototype.fa=function(a){for(var b="",c=0;c<a.count();++c){var d=a.getGradedChoice(c);if(d.correct()){b=this.b?N(c):this.f(c+"_"+d.textRange().text());break}}return b};function cd(){}u(cd,R);cd.prototype.a=function(a,b){cd.h.a.call(this,a,b);a.c="fill-in";var c=b.answer();a.g=c;c=[b.answer()];a.j=c};function X(a){this.b=a}u(X,R);X.prototype.a=function(a,b){X.h.a.call(this,a,b);a.c=O;var c=b.slide().choices(),d=b.choices(),e=this.Ja(c,d);a.g=e;a.j=[e];this.v(c,d)};X.prototype.v=function(a,b){for(var c=new Xc,d=0;d<a.count();++d){var e=a.getChoice(d),f;a:{for(f=0;f<b.count();++f){var g=b.getChoiceState(f);if(g.choice()===e){f=g;break a}}throw Error("can't find choice state");}g=e.textRange().text();g=new J(this.ea(f,d),g);K(c.choices(),g);e=e.customAnswerEnabled()?f.customAnswer():"";c.cb[d]=e}return c};
X.prototype.Ja=function(a,b){for(var c=0;c<b.count();++c){var d=b.getChoiceState(c);if(d.selected())return c=a.getChoiceIndex(d.choice()),this.ea(d,c)}return""};X.prototype.ea=function(a,b){var c=a.customizableChoice(),d=c.textRange().text(),d=b+"_"+d;c.customAnswerEnabled()&&(c=a.customAnswer(),d+=c?"_"+c:"");return this.b?N(b):this.f(d)};function dd(){}u(dd,X);function ed(){}u(ed,S);ed.prototype.a=function(a,b){ed.h.a.call(this,a,b);a.c="fill-in";var c=b.slide(),c=this.fa(c.answers()),d=b.answer();a.g=d;a.j=c};ed.prototype.fa=function(a){for(var b=[],c=0;c<a.count();++c){var d=a.getAnswer(c);b.push(d.text())}return b};function fd(a){this.b=a}u(fd,R);fd.prototype.a=function(a,b){var c=this;fd.h.a.call(this,a,b);a.c=this.b?P:"matching";var d=b.slide(),e=[],f=new L,g=b.choices();w(new U(function(a){return g.getSection(a)},g.count()),function(a,b){var d=a.choices();w(new U(function(a){return d.getChoiceState(a)},d.count()),function(a){var d=a.choice().textRange().text(),g=f.choices().count(),g=b+"[.]"+c.f(g+"_"+d);a.selected()&&e.push(g);K(f.choices(),new J(g,d))})});a.g=e.join("[,]");qc(a,[e.join("[,]")]);rc(this.M(d))};
fd.prototype.M=function(a){var b=new Yc,c=0,d=0;a=a.content();for(var e=0;e<a.sectionsCount();++e){var f=a.getSection(e);if("placeholderSection"==f.type()){var f=f.choices(),g=c++ +"";K(b.qa,new J(g,g));for(g=0;g<f.count();++g){var k=f.getChoice(g).textRange().text(),m=this.f(d++ +"_"+k);K(b.sa,new J(m,k))}}}return b};function gd(a,b){this.b=a;this.va=b}u(gd,S);gd.prototype.a=function(a,b){gd.h.a.call(this,a,b);a.c=this.b?P:"fill-in";var c=this.Ka(b.blanks());a.g=c.ja;c=c.Ua;if(this.b||this.va)c=[c.join(this.b?"[.]":"[,]")];a.j=c};
gd.prototype.Ka=function(a){for(var b=[],c=[],d=0;d<a.count();++d){var e=[],f=a.getSection(d),g=f.section().answers();b.push(f.answer());if(this.va)c.push(g.getAnswer(0).text());else{for(f=0;f<g.count();++f)e.push(g.getAnswer(f).text());c.push(e.join("[,]"))}}return{ja:b.join("[,]"),Ua:c}};function hd(a){this.b=a}u(hd,S);hd.prototype.Ha=function(a,b,c){var d=this;w(a,function(a,f){var e=a.label(),k=d.f(f+"_"+e);c.push(k);K(b.choices(),new J(k,e))})};function id(a,b){var c=[];w(new U(function(b){return a.getPoint(b)},a.count()),function(a){c=Ga(c,Da(b,function(b){return b.hitTest(a.x(),a.y())}))});c=Ea(c,function(a){return Ca(b,a)+"_"+a.label()});La(c);return c}
hd.prototype.a=function(a,b){hd.h.a.call(this,a,b);a.c=this.b?P:O;var c=b.slide(),d=[],e=[],d=new L,f=new U(function(a){return c.hotAreas().getHotArea(a)},c.hotAreas().count());this.Ha(f,d,e);d=id(b.points(),f);a.g=d.join("[,]");qc(a,[e.join("[,]")])};function jd(){}u(jd,R);jd.prototype.a=function(a,b){jd.h.a.call(this,a,b);a.c="long-fill-in";var c=b.answer();a.g=c;c=[b.answer()];a.j=c};function kd(a){this.w=a}u(kd,S);kd.prototype.w=!1;kd.prototype.a=function(a,b){kd.h.a.call(this,a,b);a.c="matching";var c=b.slide(),d=Mc(b.matches(),c.premises(),c.responses(),this.w),e=Mc(c.matches(),c.premises(),c.responses(),this.w);a.g=d;a.j=[e];this.M(c)};kd.prototype.M=function(a){var b=new Yc;a=a.matches();for(var c=0;c<a.count();++c){var d=a.getMatch(c),e=d.premise().textRange().text(),d=d.response().textRange().text();K(b.qa,new J(this.f(c+"_"+e),e));K(b.sa,new J(this.f(c+"_"+d),d))}return b};function ld(a){this.b=a}u(ld,R);function md(a,b,c){w(new U(function(a){return b.getChoice(a)},b.count()),function(b,e){var d=b.textRange().text();K(c.choices(),new J(a.f(e+"_"+d),d))})}ld.prototype.Ia=function(a,b,c){w(new U(t(a.getSection,a),a.count()),function(a){var d=a.answer();null!=d&&(a=Fa(new U(function(a){return b.choices().getChoice(a)},b.choices().count()),function(a){return a.description()==d.textRange().text()}),c.push(a.id()))})};
ld.prototype.a=function(a,b){ld.h.a.call(this,a,b);a.c=this.b?P:O;var c=b.slide(),d=[],e=new L;md(this,c.words(),e);this.Ia(b.placeholders(),e,d);a.g=d.join("[,]");a.j=[d.join("[,]")]};function nd(){}u(nd,R);nd.prototype.a=function(a,b){nd.h.a.call(this,a,b);a.c=O;for(var c=b.slide(),d=b.statements(),e=d.count(),f=[],c=c.statements(),g=0;g<e;++g){var k=d.getStatementState(g),m=k.scale(),k=k.statement();m&&f.push(this.f(c.getChoiceIndex(k)+"_"+m.textRange().text()))}d=f.join("[,]");a.g=d;a.j=[d];this.v(c)};nd.prototype.v=function(a){for(var b=new L,c=0;c<a.count();++c){var d=a.getChoice(c).textRange().text();K(b.choices(),new J(this.f(c+"_"+d),d))}return b};function od(a){this.b=a}u(od,W);od.prototype.a=function(a,b){od.h.a.call(this,a,b);if(this.b){a.c="true-false";for(var c=b.slide().choices(),d=b.choices(),e=c.getGradedChoice(0).correct()?"t":"f",f="t"==e?"f":"t",c=c.getGradedChoice(0).correct()?c.getGradedChoice(0).id():c.getGradedChoice(1).id(),g=null,k=0;2>k;++k){var m=d.getChoiceState(k);if(m.selected()){g=m.choice().id()==c?e:f;break}}a.g=g;a.j=[e]}};function pd(a,b){var c="1.2"==b||"aicc"==b,d="tincan"==b;switch(a){case "essayQuestion":return new jd;case "likertScaleQuestion":return new nd;case "hotspotQuestion":return new hd(c);case "fillInTheBlankQuestion":return new gd(c,d);case "wordBankQuestion":return new Uc(c);case "typeInQuestion":return new ed;case "fillInTheBlankSurveyQuestion":return new Sc(c,d);case "shortAnswerQuestion":return new cd;case "whichWordQuestion":return new ld(c);case "numericQuestion":return new Rc(c);case "multipleChoiceQuestion":return new W(c);
case "multipleResponseQuestion":return new $c(c);case "numericSurveyQuestion":return new Wc(c);case "multipleChoiceTextQuestion":return new bd(c);case "sequenceQuestion":return new Tc(c);case "multipleChoiceTextSurveyQuestion":return new fd(c);case "rankingQuestion":return new Pc(c);case "pickManyQuestion":return new V(c);case "matchingQuestion":return new kd(c);case "matchingSurveyQuestion":return new Zc(c);case "pickOneQuestion":return new X(c);case "trueFalseQuestion":return new od(c);case "yesNoQuestion":return new dd}return null}
;function Y(a,b,c){try{this.Ca=b;this.o=new Ec;this.ma={};this.O=new Lc(c.slidesToView,c.slidesWeight,c.quizzes||{},c.scenarios||{},c.totalScore,c.passingScore);this.S=new Xb(1E3*c.timeLimit,c.exitOnTimeout,c.showMessageOnTimeout,c.timeoutMessage);this.aa=new Sb(this.S.timeLimit(),this.S.Ga);this.A="never"!=c.resumeMode;var d=new Ub(0,0,c.tincan.i18n,c.scorm2004?c.scorm2004.edition:"",0,0,this.A);this.sb=new Wb;this.l=Vb(b,d,this.sb)}catch(e){Jb()&&alert(e)}}h=Y.prototype;h.B=!1;h.ha=null;h.ka=!1;
h.s=null;h.P=null;h.tb=!1;h.G=null;h.I=null;var rd=h.ia=null;q("iSpring.LMS.create",function(a,b,c){return rd=new Y(0,b,c)},void 0);q("iSpring.LMS.instance",function(){return rd},void 0);Y.prototype.T=function(a){this.ha=a;null!=this.l?this.l.T(t(this.Gb,this),t(this.kb,this)):this.kb()};Y.prototype.initialize=Y.prototype.T;
Y.prototype.Gb=function(){this.X=this.l.xa();var a=null,b=this.l.m.D("cmi.suspend_data"),c;if(b)a:{b=LZString.decompressFromBase64(b);try{c=rb(b);break a}catch(d){}c=null}else c=null;switch(this.X){case "browse":a=null;break;case "review":c&&(a=sd(this,c));break;case "normal":this.A&&c&&(a=sd(this,c))}window.launchMode=this.X;p(a)&&(this.B=!0,this.ha&&this.ha(a))};
function sd(a,b){var c=new Ec;c.N=za(b,Fc,0);c.na=za(b,Gc,-1);c.L=za(b,Hc,[]);c.oa=za(b,Ic,null);var d={},e=za(b,Jc,{}),f;for(f in e){var g=e[f];d[f]=new wc(g[Bc],g[xc],g[yc],g[zc],g[Ac])}c.J=d;a.P=c;c=a.P.duration();if(a.S.Ga&&c>=a.S.timeLimit()){alert("You have already exceeded available time for viewing this content.");try{var k=document.getElementById("preloader");k&&k.parentNode.removeChild(k)}catch(m){}if(Ib)k=new Bb("closeWindow"),Ib&&(k=k.eb(k.c,k.Ab),Cb(k));else try{Hb||(window.open("","_self",
""),window.close())}catch(m){}}else return a.P.oa}Y.prototype.kb=function(){this.ha&&this.ha()};Y.prototype.start=function(a){this.B&&(this.s=a,this.ka=!0,this.sb.Nb.Va(a.presentation().title()),a.startupEvent().addHandler(this.lb,this),a.startupCompletedEvent().addHandler(this.mb,this),a.closeWindowEvent().addHandler(this.hb,this))};Y.prototype.start=Y.prototype.start;
Y.prototype.lb=function(a){this.s.startupEvent().removeHandler(this.lb,this);var b=(this.A||"review"==this.X)&&this.P?this.P.na:-1;0<=b?(a.setSlideIndex(b),a.setAction("resumePlayback")):(b=this.s.view().playbackController().firstSlideIndex(),a.setSlideIndex(b),a.setAction("gotoSlide"))};
Y.prototype.mb=function(a,b){this.s.startupCompletedEvent().removeHandler(this.mb,this);this.tb=!0;"resumePlayback"==a&&this.P&&(this.o=this.P);var c=this.o.duration();this.aa.R||(this.aa.vb.addHandler(this.Pa,this),this.aa.start(c));c=this.s.view().playbackController();c.slideChangeEvent().addHandler(this.Ma,this);c=c.currentSlideIndex();c==b&&this.Ma(c);this.s.stateChangedEvent().addHandler(this.nb,this)};Y.prototype.wb=function(){this.ka&&td(this,this.A)};Y.prototype.closeLms=Y.prototype.wb;
function td(a,b){a.ka&&(a.ka=!1,a.tb&&(a.aa.stop(),ud(a),a.s.view().playbackController().slideChangeEvent().removeHandler(a.Ma,a)),a.s.closeWindowEvent().removeHandler(a.hb,a),a.s.stateChangedEvent().removeHandler(a.nb,a),b?a.l.suspend():a.l.terminate())}h=Y.prototype;
h.Ma=function(a){if(this.G){var b=this.G;b.currentSessionChangedEvent().removeHandler(this.ib,this);(b=b.currentSession())&&vd(this,b);this.G=null}this.I&&(this.I.currentSessionChangedEvent().removeHandler(this.jb,this),null!=this.ia&&wd(this),this.I=null);b=this.s.view().playbackController();if(a in this.O.H){var c=this.G=b.quizPlayer(),d=da(c)+"";d in this.ma||(this.ma[d]=!0,(d=xd(this.l.m))&&c.setUserInfo(d.id(),{USER_NAME:d.name(),USER_EMAIL:d.email()}));c.currentSessionChangedEvent().addHandler(this.ib,
this);(c=c.currentSession())&&yd(this,c)}a in this.O.Z&&(b=this.I=b.scenarioPlayer(),c=da(b)+"",c in this.ma||(this.ma[c]=!0,c=xd(this.l.m),d=!b.userInfoIsLoaded(),c&&d&&b.setUserInfo(c.id(),{USER_NAME:c.name(),USER_EMAIL:c.email()})),c=b.currentSession(),null!=c&&zd(this,c),b.currentSessionChangedEvent().addHandler(this.jb,this));b=this.s.presentation().slides().getSlide(a);"normal"==this.X&&b.title()&&b.title();b=this.o.L;0<=Ca(b,a)||b.push(a);this.o.na=a;Ad(this)};
function ud(a){var b=a.aa,b=b.R?ia()-b.ra+b.Y:b.ua,c=a.aa,c=c.R?ia()-c.ra:c.Ea;a.o.Ba(b);a.l.m.i("cmi.session_time",nc(c/1E3));b=a.s.persistState();a.o.oa=b;b=a.l.m;a=(new sb(void 0)).serialize(a.o.Xa());a=LZString.compressToBase64(a);a.length<=("2"==b.u.Fa?4E3:64E3)&&b.i("cmi.suspend_data",a)}function Ad(a){var b=a.O;if(0<b.K||0<b.da){var c=Bd(a),d=b.totalScore()*c;a.l.U(c,0,b.totalScore(),d)}a.l.$a(Cd(a));a.l.ab(Dd(a),Ed(a));ud(a);a.l.ba()}
function Dd(a){var b=a.O,c;if(!(c=!(0<b.K||0<b.da))&&(c=a.A)){var d;a:if(0<a.O.K&&0<a.o.L.length)d=!0;else{c=a.o.J;for(d in c)if(-1!=Ca(a.o.L,parseInt(d,10))){d=!0;break a}d=!1}c=!d}return c?null:Bd(a)*b.totalScore()>=b.passingScore()}function Ed(a){var b=a.O,c=0<b.K?b.slidesToView():a.s.presentation().slides().count(),b=xa(a.o.J)==xa(b.H)+xa(b.Z);return a.o.L.length>=c&&b}
function Bd(a){var b=a.O;if(!(0<b.K||0<b.da))return 0;var c=0,d=a.o.J,e;for(e in d)var f=d[e],g=parseInt(e,10),c=c+(null!=f.Ya?f.Ya:1)*(null!=(g in b.H?b.H[g]:null)?g in b.H?b.H[g]:0:g in b.Z?b.Z[g]:0);d=0;0<b.K&&(d=a.s.presentation().slides().count(),d=a.o.L.length/d*b.slidesWeight());a=Kc(ya(b.H))+Kc(ya(b.Z))+b.slidesWeight();return(c+d)/a}function Cd(a){var b=a.s.presentation().slides().count();return a.o.L.length/b}
h.jb=function(){null!=this.ia&&wd(this);var a=this.I.currentSession();zd(this,a)};function zd(a,b){"normal"==a.X&&(a.ia=b,b.showTerminalSceneEvent().addHandler(a.Oa,a),b.onReplySelectedEvent().addHandler(a.Na,a),b.scenario().id(),b.scenario().title(),b.completed()&&a.Oa())}function wd(a){var b=a.ia;a.ia=null;b.showTerminalSceneEvent().removeHandler(a.Oa,a);b.onReplySelectedEvent().removeHandler(a.Na,a)}
h.Oa=function(){var a=this.I.currentSession(),b=a.currentSceneState().scene();null!=b&&(null!=b.speech()&&0<b.speech().length||null!=b.message()&&0<b.message().text().length)&&this.Na();if(a.scenario().settings().evaluationSettings().enabled())var b=Math.max(0,a.maxScore()),c=Math.max(0,a.userScore()),d=0<b-0?c/(b-0):1,b=new wc("scenario",a.scenarioPassed(),b,c,d);else b=new wc("scenario",!0);c=this.s.view().playbackController().currentSlideIndex();this.o.J[c+""]=b;b=new tc;b.duration=a.duration();
a.scenario().settings().evaluationSettings().enabled()&&(b.yb=0,b.maxScore=Math.max(0,a.maxScore()),b.awardedScore=Math.max(0,a.userScore()),b.ya=a.scenarioPassed());a.scenario().id();a.scenario().title();Ad(this)};h.Na=function(a){var b=this.I.currentSession(),c=b.currentSceneState().scene();null!=c&&(a=(new dc(b,c,"1.2"==this.Ca,a)).create(),w(a,function(a){if("tincan"==this.Ca||a.type()==O){var c="/scenarios/"+b.scenario().id(),d=c+"/scenes/"+a.id(),g;g=a.type()==O?lc:jc;this.l.wa(c,d,g,a)}},this))};
function yd(a,b){"normal"==a.X&&(b.quizStateChangeEvent().addHandler(a.pb,a),b.slidePoolState().forEach(function(b){var c=b.slide().type();Qb(c)&&b.submitEvent().addHandler(a.ob,a)}),b.quiz().id(),b.quiz().title())}function vd(a,b){b.quizStateChangeEvent().removeHandler(a.pb,a);b.slidePoolState().forEach(function(b){var c=b.slide().type();Qb(c)&&b.submitEvent().removeHandler(a.ob,a)})}h.ib=function(a,b){b&&vd(this,b);yd(this,a)};h.pb=function(a){"inProgress"==a&&Fd(this)};
function Fd(a){var b=a.G.currentSession(),c=Cc(b),d=a.s.view().playbackController().currentSlideIndex();a.o.J[d+""]=c;c=new tc;c.duration=b.testDuration();if("graded"==b.quiz().type()){d="byGroups"==b.settings().passingScoreType();c.yb=0;c.maxScore=d?100:b.maxScore();if(d){var e=0,f=0;b.slidePoolState().forEach(function(a){"slidePool"==a.slide().type()&&0!=a.maxScore()&&(f++,a.isPassed()&&e++)});c.awardedScore=100*(f?e/f:0)}else c.awardedScore=b.awardedScore();c.ya=b.quizPassed();Gd(a)}b.quiz().id();
b.quiz().title();Ad(a)}h.ob=function(a){var b=this.G.currentSession();if(a.initiated()&&(a=pd(a.slide().type(),this.Ca).create(a))){var b="/quizzes/"+b.quiz().id(),c=b+"/questions/"+a.id();this.l.wa(b,c,kc,a)}};function Gd(a){var b=a.G.currentSession();vc(new uc(a.l,b))}h.hb=function(a){a.preventAction();this.wb()};h.Pa=function(){this.S.Lb&&alert(this.S.message());this.S.Ga&&td(this,!1)};h.nb=function(a){a.actionPrevented()||(a.preventAction(),ud(this))};function Hd(){}h=Hd.prototype;h.m=null;h.xb=function(){throw Error("unimplemented abstract method");};h.$a=function(a){this.m.$a(a)};h.T=function(a,b){if(this.m=this.xb()){var c=this.m;c.B?a():null!=c.u?(c.B=c.u.T(),c.B?a():b()):(c.B=!1,b())}else b()};h.ba=function(){this.m.ba()};h.suspend=function(){this.m.terminate(!0)};h.terminate=function(){this.m.terminate(!1)};h.xa=function(){return"normal"};h.ab=function(a,b){this.m.Za(a);this.m.ab(a,b)};h.U=function(a,b,c,d){this.m.U(d,b,c,a)};
h.wa=function(a,b,c,d){this.m.wa(d)};var Z={id:"id",type:"type",score:"weighting",Qb:"correct_responses.%INDEX%.pattern",ja:"learner_response",description:"description",result:"result",duration:"latency",bb:"timestamp"};function Id(a,b,c){this.ca=a;this.Fa=b;this.Qa=!1;this.Da=0;this.A=c}h=Id.prototype;h.T=function(){try{return"true"==this.ca.Initialize("")}catch(a){}return!1};h.terminate=function(a){this.i("cmi.exit",a?this.Qa?"":"suspend":"normal");this.i("adl.nav.request","exitAll");this.ba();try{return"true"==this.ca.Terminate("")}catch(b){}return!1};h.ba=function(){0==this.Da&&this.i("cmi.exit",this.A?this.Qa?"":"suspend":"normal");try{var a="true"==this.ca.Commit("");this.Da+=1;return a}catch(b){}return!1};
h.D=function(a){try{return this.ca.GetValue(a)}catch(b){}return""};h.i=function(a,b){if("number"==typeof b){var c;(c=p(c)?c:!0)?c=parseFloat(b.toFixed(7))+"":(c=Math.pow(10,7),c=Math.floor(b*c)/c+"");b=c+""}try{return"true"==this.ca.SetValue(a,b)}catch(d){}return!1};h.Za=function(a){this.Qa=a};function Jd(){}q("Tincan.MobileHttpTransport.onRequestComplete",function(a,b,c){var d;Kd||(Kd=new Jd);d=Kd;var e=d.fb[a];if(null==e)return"";delete d.fb[a];pb(function(){if(b)e.onload(c);else e.onerror()},10);return"ok"},void 0);var Kd=null;Jd.prototype.fb={};Jd.prototype.eb=function(a){return new Bb("tincanRequest",[a])};function xd(a){return new pc(a.D("cmi.learner_id"),a.D("cmi.learner_name"),"")};function Ld(a,b){var c=mc();this.u=c?new Id(c,a,b):null;this.B=!1}h=Ld.prototype;h.T=function(){return this.B?!0:this.B=null!=this.u?this.u.T():!1};h.terminate=function(a){return null!=this.u?this.u.terminate(a):!1};h.ba=function(){return null!=this.u?this.u.ba():!1};h.D=function(a){return null!=this.u?this.u.D(a):""};h.i=function(a,b){return null!=this.u?this.u.i(a,b):!1};
h.U=function(a,b,c,d){null!=d||(d=0);this.i("cmi.score.raw",a);this.i("cmi.score.min",b);this.i("cmi.score.max",c);this.i("cmi.score.scaled",d)};h.$a=function(a){this.i("cmi.progress_measure",a)};h.xa=function(){return null!=this.u?this.u.D("cmi.mode"):"normal"};h.ab=function(a,b){this.i("cmi.success_status",null===a?"unknown":a?"passed":"failed");this.i("cmi.completion_status",null===b?"unknown":b?"completed":"incomplete")};h.Za=function(a){this.u.Za(a)};
h.wa=function(a){a:{for(var b=a.id(),c=-1,d=this.D("cmi.interactions._count"),e=0;e<d;++e)if(this.D("cmi.interactions."+e+".id")==b){c=e;break}if(0>c&&(b=parseInt(this.D("cmi.interactions._count"),10),c=250<=b?-1:b,0>c))break a;b="cmi.interactions."+c+".";this.i(b+Z.id,a.id());this.i(b+Z.type,a.type());this.i(b+Z.score,a.score());c=a.Ua()||[];for(d=0;d<c.length;++d)e=Z.Qb.replace("%INDEX%",d),this.i(b+e,c[d]);(c=a.ja())&&this.i(b+Z.ja,c);this.i(b+Z.result,a.result());this.i(b+Z.description,a.description());
c=a.duration();null===c||this.i(b+Z.duration,nc(c/1E3));a=a.bb();null!==a&&("number"==typeof a&&(a=new Date(a)),this.i(b+Z.bb,a.getUTCFullYear()+"-"+oc(a.getUTCMonth()+1)+"-"+oc(a.getUTCDate())+"T"+oc(a.getUTCHours())+":"+oc(a.getUTCMinutes())+":"+oc(a.getUTCSeconds())+".0Z"))}};function Md(a){this.Fa=a.zb||"2";this.A=a.A}u(Md,Hd);q("iSpring.LMSAPI.Scorm2004Api",Md,void 0);Md.prototype.xb=function(){return new Ld(this.Fa,this.A)};Md.prototype.xa=function(){return this.m.xa()};})();
var LZString={_keyStr:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",_f:String.fromCharCode,compressToBase64:function(e){if(e==null)return"";var t="";var n,r,i,s,o,u,a;var f=0;e=LZString.compress(e);while(f<e.length*2){if(f%2==0){n=e.charCodeAt(f/2)>>8;r=e.charCodeAt(f/2)&255;if(f/2+1<e.length)i=e.charCodeAt(f/2+1)>>8;else i=NaN}else{n=e.charCodeAt((f-1)/2)&255;if((f+1)/2<e.length){r=e.charCodeAt((f+1)/2)>>8;i=e.charCodeAt((f+1)/2)&255}else r=i=NaN}f+=3;s=n>>2;o=(n&3)<<4|r>>4;u=(r&15)<<2|i>>6;a=i&63;if(isNaN(r)){u=a=64}else if(isNaN(i)){a=64}t=t+LZString._keyStr.charAt(s)+LZString._keyStr.charAt(o)+LZString._keyStr.charAt(u)+LZString._keyStr.charAt(a)}return t},decompressFromBase64:function(e){if(e==null)return"";var t="",n=0,r,i,s,o,u,a,f,l,c=0,h=LZString._f;e=e.replace(/[^A-Za-z0-9\+\/\=]/g,"");while(c<e.length){u=LZString._keyStr.indexOf(e.charAt(c++));a=LZString._keyStr.indexOf(e.charAt(c++));f=LZString._keyStr.indexOf(e.charAt(c++));l=LZString._keyStr.indexOf(e.charAt(c++));i=u<<2|a>>4;s=(a&15)<<4|f>>2;o=(f&3)<<6|l;if(n%2==0){r=i<<8;if(f!=64){t+=h(r|s)}if(l!=64){r=o<<8}}else{t=t+h(r|i);if(f!=64){r=s<<8}if(l!=64){t+=h(r|o)}}n+=3}return LZString.decompress(t)},compressToUTF16:function(e){if(e==null)return"";var t="",n,r,i,s=0,o=LZString._f;e=LZString.compress(e);for(n=0;n<e.length;n++){r=e.charCodeAt(n);switch(s++){case 0:t+=o((r>>1)+32);i=(r&1)<<14;break;case 1:t+=o(i+(r>>2)+32);i=(r&3)<<13;break;case 2:t+=o(i+(r>>3)+32);i=(r&7)<<12;break;case 3:t+=o(i+(r>>4)+32);i=(r&15)<<11;break;case 4:t+=o(i+(r>>5)+32);i=(r&31)<<10;break;case 5:t+=o(i+(r>>6)+32);i=(r&63)<<9;break;case 6:t+=o(i+(r>>7)+32);i=(r&127)<<8;break;case 7:t+=o(i+(r>>8)+32);i=(r&255)<<7;break;case 8:t+=o(i+(r>>9)+32);i=(r&511)<<6;break;case 9:t+=o(i+(r>>10)+32);i=(r&1023)<<5;break;case 10:t+=o(i+(r>>11)+32);i=(r&2047)<<4;break;case 11:t+=o(i+(r>>12)+32);i=(r&4095)<<3;break;case 12:t+=o(i+(r>>13)+32);i=(r&8191)<<2;break;case 13:t+=o(i+(r>>14)+32);i=(r&16383)<<1;break;case 14:t+=o(i+(r>>15)+32,(r&32767)+32);s=0;break}}return t+o(i+32)},decompressFromUTF16:function(e){if(e==null)return"";var t="",n,r,i=0,s=0,o=LZString._f;while(s<e.length){r=e.charCodeAt(s)-32;switch(i++){case 0:n=r<<1;break;case 1:t+=o(n|r>>14);n=(r&16383)<<2;break;case 2:t+=o(n|r>>13);n=(r&8191)<<3;break;case 3:t+=o(n|r>>12);n=(r&4095)<<4;break;case 4:t+=o(n|r>>11);n=(r&2047)<<5;break;case 5:t+=o(n|r>>10);n=(r&1023)<<6;break;case 6:t+=o(n|r>>9);n=(r&511)<<7;break;case 7:t+=o(n|r>>8);n=(r&255)<<8;break;case 8:t+=o(n|r>>7);n=(r&127)<<9;break;case 9:t+=o(n|r>>6);n=(r&63)<<10;break;case 10:t+=o(n|r>>5);n=(r&31)<<11;break;case 11:t+=o(n|r>>4);n=(r&15)<<12;break;case 12:t+=o(n|r>>3);n=(r&7)<<13;break;case 13:t+=o(n|r>>2);n=(r&3)<<14;break;case 14:t+=o(n|r>>1);n=(r&1)<<15;break;case 15:t+=o(n|r);i=0;break}s++}return LZString.decompress(t)},compress:function(e){if(e==null)return"";var t,n,r={},i={},s="",o="",u="",a=2,f=3,l=2,c="",h=0,p=0,d,v=LZString._f;for(d=0;d<e.length;d+=1){s=e.charAt(d);if(!Object.prototype.hasOwnProperty.call(r,s)){r[s]=f++;i[s]=true}o=u+s;if(Object.prototype.hasOwnProperty.call(r,o)){u=o}else{if(Object.prototype.hasOwnProperty.call(i,u)){if(u.charCodeAt(0)<256){for(t=0;t<l;t++){h=h<<1;if(p==15){p=0;c+=v(h);h=0}else{p++}}n=u.charCodeAt(0);for(t=0;t<8;t++){h=h<<1|n&1;if(p==15){p=0;c+=v(h);h=0}else{p++}n=n>>1}}else{n=1;for(t=0;t<l;t++){h=h<<1|n;if(p==15){p=0;c+=v(h);h=0}else{p++}n=0}n=u.charCodeAt(0);for(t=0;t<16;t++){h=h<<1|n&1;if(p==15){p=0;c+=v(h);h=0}else{p++}n=n>>1}}a--;if(a==0){a=Math.pow(2,l);l++}delete i[u]}else{n=r[u];for(t=0;t<l;t++){h=h<<1|n&1;if(p==15){p=0;c+=v(h);h=0}else{p++}n=n>>1}}a--;if(a==0){a=Math.pow(2,l);l++}r[o]=f++;u=String(s)}}if(u!==""){if(Object.prototype.hasOwnProperty.call(i,u)){if(u.charCodeAt(0)<256){for(t=0;t<l;t++){h=h<<1;if(p==15){p=0;c+=v(h);h=0}else{p++}}n=u.charCodeAt(0);for(t=0;t<8;t++){h=h<<1|n&1;if(p==15){p=0;c+=v(h);h=0}else{p++}n=n>>1}}else{n=1;for(t=0;t<l;t++){h=h<<1|n;if(p==15){p=0;c+=v(h);h=0}else{p++}n=0}n=u.charCodeAt(0);for(t=0;t<16;t++){h=h<<1|n&1;if(p==15){p=0;c+=v(h);h=0}else{p++}n=n>>1}}a--;if(a==0){a=Math.pow(2,l);l++}delete i[u]}else{n=r[u];for(t=0;t<l;t++){h=h<<1|n&1;if(p==15){p=0;c+=v(h);h=0}else{p++}n=n>>1}}a--;if(a==0){a=Math.pow(2,l);l++}}n=2;for(t=0;t<l;t++){h=h<<1|n&1;if(p==15){p=0;c+=v(h);h=0}else{p++}n=n>>1}while(true){h=h<<1;if(p==15){c+=v(h);break}else p++}return c},decompress:function(e){if(e==null)return"";if(e=="")return null;var t=[],n,r=4,i=4,s=3,o="",u="",a,f,l,c,h,p,d,v=LZString._f,m={string:e,val:e.charCodeAt(0),position:32768,index:1};for(a=0;a<3;a+=1){t[a]=a}l=0;h=Math.pow(2,2);p=1;while(p!=h){c=m.val&m.position;m.position>>=1;if(m.position==0){m.position=32768;m.val=m.string.charCodeAt(m.index++)}l|=(c>0?1:0)*p;p<<=1}switch(n=l){case 0:l=0;h=Math.pow(2,8);p=1;while(p!=h){c=m.val&m.position;m.position>>=1;if(m.position==0){m.position=32768;m.val=m.string.charCodeAt(m.index++)}l|=(c>0?1:0)*p;p<<=1}d=v(l);break;case 1:l=0;h=Math.pow(2,16);p=1;while(p!=h){c=m.val&m.position;m.position>>=1;if(m.position==0){m.position=32768;m.val=m.string.charCodeAt(m.index++)}l|=(c>0?1:0)*p;p<<=1}d=v(l);break;case 2:return""}t[3]=d;f=u=d;while(true){if(m.index>m.string.length){return""}l=0;h=Math.pow(2,s);p=1;while(p!=h){c=m.val&m.position;m.position>>=1;if(m.position==0){m.position=32768;m.val=m.string.charCodeAt(m.index++)}l|=(c>0?1:0)*p;p<<=1}switch(d=l){case 0:l=0;h=Math.pow(2,8);p=1;while(p!=h){c=m.val&m.position;m.position>>=1;if(m.position==0){m.position=32768;m.val=m.string.charCodeAt(m.index++)}l|=(c>0?1:0)*p;p<<=1}t[i++]=v(l);d=i-1;r--;break;case 1:l=0;h=Math.pow(2,16);p=1;while(p!=h){c=m.val&m.position;m.position>>=1;if(m.position==0){m.position=32768;m.val=m.string.charCodeAt(m.index++)}l|=(c>0?1:0)*p;p<<=1}t[i++]=v(l);d=i-1;r--;break;case 2:return u}if(r==0){r=Math.pow(2,s);s++}if(t[d]){o=t[d]}else{if(d===i){o=f+f.charAt(0)}else{return null}}u+=o;t[i++]=f+o.charAt(0);r--;f=o;if(r==0){r=Math.pow(2,s);s++}}}};if(typeof module!=="undefined"&&module!=null){module.exports=LZString}
