(function(){var h;function aa(a){var b=0;return function(){return b<a.length?{done:!1,value:a[b++]}:{done:!0}}}function l(a){var b="undefined"!=typeof Symbol&&Symbol.iterator&&a[Symbol.iterator];return b?b.call(a):{next:aa(a)}}function ba(a){for(var b,c=[];!(b=a.next()).done;)c.push(b.value);return c}var ca="function"==typeof Object.create?Object.create:function(a){function b(){}b.prototype=a;return new b},da;
if("function"==typeof Object.setPrototypeOf)da=Object.setPrototypeOf;else{var ea;a:{var fa={Wb:!0},ha={};try{ha.__proto__=fa;ea=ha.Wb;break a}catch(a){}ea=!1}da=ea?function(a,b){a.__proto__=b;if(a.__proto__!==b)throw new TypeError(a+" is not extensible");return a}:null}var ia=da;
function m(a,b){a.prototype=ca(b.prototype);a.prototype.constructor=a;if(ia)ia(a,b);else for(var c in b)if("prototype"!=c)if(Object.defineProperties){var d=Object.getOwnPropertyDescriptor(b,c);d&&Object.defineProperty(a,c,d)}else a[c]=b[c];a.fc=b.prototype}var ja="function"==typeof Object.defineProperties?Object.defineProperty:function(a,b,c){a!=Array.prototype&&a!=Object.prototype&&(a[b]=c.value)},ka="undefined"!=typeof window&&window===this?this:"undefined"!=typeof global&&null!=global?global:this;
function la(a,b){if(b){var c=ka;a=a.split(".");for(var d=0;d<a.length-1;d++){var e=a[d];e in c||(c[e]={});c=c[e]}a=a[a.length-1];d=c[a];b=b(d);b!=d&&null!=b&&ja(c,a,{configurable:!0,writable:!0,value:b})}}la("Object.is",function(a){return a?a:function(a,c){return a===c?0!==a||1/a===1/c:a!==a&&c!==c}});
la("Array.prototype.includes",function(a){return a?a:function(a,c){var b=this;b instanceof String&&(b=String(b));var e=b.length;c=c||0;for(0>c&&(c=Math.max(c+e,0));c<e;c++){var f=b[c];if(f===a||Object.is(f,a))return!0}return!1}});var n=this;function p(a){return void 0!==a}function q(a){return"string"==typeof a}
function r(a,b,c){a=a.split(".");c=c||n;a[0]in c||"undefined"==typeof 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 u(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 ma(a){var b=u(a);return"array"==b||"object"==b&&"number"==typeof a.length}function na(a){var b=typeof a;return"object"==b&&null!=a||"function"==b}var v="closure_uid_"+(1E9*Math.random()>>>0),oa=0;function pa(a,b,c){return a.call.apply(a.bind,arguments)}
function qa(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 w(a,b,c){w=Function.prototype.bind&&-1!=Function.prototype.bind.toString().indexOf("native code")?pa:qa;return w.apply(null,arguments)}var ra=Date.now||function(){return+new Date};
function sa(a,b){function c(){}c.prototype=b.prototype;a.fc=b.prototype;a.prototype=new c;a.prototype.constructor=a;a.Pc=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 ta(a){if(Error.captureStackTrace)Error.captureStackTrace(this,ta);else{var b=Error().stack;b&&(this.stack=b)}a&&(this.message=String(a))}sa(ta,Error);ta.prototype.name="CustomError";function ua(a,b){a=a.split("%s");for(var c="",d=a.length-1,e=0;e<d;e++)c+=a[e]+(e<b.length?b[e]:"%s");ta.call(this,c+a[d])}sa(ua,ta);ua.prototype.name="AssertionError";function va(a){throw a;}function x(a,b,c){if(!a){var d="Assertion failed";if(b){d+=": "+b;var e=Array.prototype.slice.call(arguments,2)}d=new ua(""+d,e||[]);va(d)}return a}function wa(a,b){va(new ua("Failure"+(a?": "+a:""),Array.prototype.slice.call(arguments,1)))};function xa(){return!1}function ya(a,b){xa()&&(b?n.console.error(a):n.console.warn(a))}function za(a,b){var c=a.stack||a.toString();0>String(c).indexOf(a.message)&&ya(a.message,b);ya(c,b)}window.onerror=function(a){for(var b=[],c=0;c<arguments.length;++c)b[c-0]=arguments[c];c=l(b);b=c.next().value;c.next();c.next();c.next();(c=c.next().value)?za(c,!0):ya(b,!0);return!0};va=function(a){try{throw Error(a.message);}catch(b){za(b,!1)}};
n.console||(window._log="",n.console={log:function(a){window._log+="\n"+a},warn:function(a){window._log+="\nwarn: "+a},error:function(a){window._log+="\nerror: "+a}});function y(){}r("ispring.events.IEventDispatcher",y,void 0);y.prototype.addHandler=function(){};y.prototype.addHandler=y.prototype.addHandler;y.prototype.removeHandler=function(){};y.prototype.removeHandler=y.prototype.removeHandler;var Ba=String.prototype.trim?function(a){return a.trim()}:function(a){return/^[\s\xa0]*([\s\S]*?)[\s\xa0]*$/.exec(a)[1]};function Ca(a){if(!Da.test(a))return a;-1!=a.indexOf("&")&&(a=a.replace(Ea,"&amp;"));-1!=a.indexOf("<")&&(a=a.replace(Fa,"&lt;"));-1!=a.indexOf(">")&&(a=a.replace(Ga,"&gt;"));-1!=a.indexOf('"')&&(a=a.replace(Ha,"&quot;"));-1!=a.indexOf("'")&&(a=a.replace(Ia,"&#39;"));-1!=a.indexOf("\x00")&&(a=a.replace(Ja,"&#0;"));return a}
var Ea=/&/g,Fa=/</g,Ga=/>/g,Ha=/"/g,Ia=/'/g,Ja=/\x00/g,Da=/[\x00&<>"']/;function Ka(a,b){return a<b?-1:a>b?1:0}function La(a){return String(a).replace(/\-([a-z])/g,function(a,c){return c.toUpperCase()})}function Ma(a){var b=q(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()})};var z;a:{var Na=n.navigator;if(Na){var Oa=Na.userAgent;if(Oa){z=Oa;break a}}z=""}function A(a){return-1!=z.indexOf(a)};function Pa(){return A("iPhone")&&!A("iPod")&&!A("iPad")};function Qa(a,b){for(var c in a)b.call(void 0,a[c],c,a)}function Ra(a){var b=[],c=0,d;for(d in a)b[c++]=a[d];return b}function B(a,b,c){return null!==a&&b in a?a[b]:c}var Sa="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");function Ta(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<Sa.length;f++)c=Sa[f],Object.prototype.hasOwnProperty.call(d,c)&&(a[c]=d[c])}};var C=Array.prototype.indexOf?function(a,b){x(null!=a.length);return Array.prototype.indexOf.call(a,b,void 0)}:function(a,b){if(q(a))return q(b)&&1==b.length?a.indexOf(b,0):-1;for(var c=0;c<a.length;c++)if(c in a&&a[c]===b)return c;return-1},Ua=Array.prototype.forEach?function(a,b,c){x(null!=a.length);Array.prototype.forEach.call(a,b,c)}:function(a,b,c){for(var d=a.length,e=q(a)?a.split(""):a,f=0;f<d;f++)f in e&&b.call(c,e[f],f,a)};
function Va(a,b){a:{for(var c=a.length,d=q(a)?a.split(""):a,e=0;e<c;e++)if(e in d&&b.call(void 0,d[e],e,a)){b=e;break a}b=-1}return 0>b?null:q(a)?a.charAt(b):a[b]}function Wa(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 Xa(a,b){for(var c=1;c<arguments.length;c++){var d=arguments[c];if(ma(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 Ya(a,b,c,d){x(null!=a.length);Array.prototype.splice.apply(a,Za(arguments,1))}function Za(a,b,c){x(null!=a.length);return 2>=arguments.length?Array.prototype.slice.call(a,b):Array.prototype.slice.call(a,b,c)};var $a=A("Opera"),D=A("Trident")||A("MSIE"),ab=A("Edge"),bb=A("Gecko")&&!(-1!=z.toLowerCase().indexOf("webkit")&&!A("Edge"))&&!(A("Trident")||A("MSIE"))&&!A("Edge"),cb=-1!=z.toLowerCase().indexOf("webkit")&&!A("Edge");function db(){var a=n.document;return a?a.documentMode:void 0}var eb;
a:{var fb="",gb=function(){var a=z;if(bb)return/rv:([^\);]+)(\)|;)/.exec(a);if(ab)return/Edge\/([\d\.]+)/.exec(a);if(D)return/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/.exec(a);if(cb)return/WebKit\/(\S+)/.exec(a);if($a)return/(?:Version)[ \/]?(\S+)/.exec(a)}();gb&&(fb=gb?gb[1]:"");if(D){var hb=db();if(null!=hb&&hb>parseFloat(fb)){eb=String(hb);break a}}eb=fb}var ib={},jb;var kb=n.document;jb=kb&&D?db()||("CSS1Compat"==kb.compatMode?parseInt(eb,10):5):void 0;function lb(){};function mb(){this.Z=this.R=this.qa=null}mb.prototype.push=function(a,b){if(0==b)this.Z=this.Z||[];else if(this.qa=this.qa||[0],this.R=this.R||{},!(b in this.R)){this.R[b]=[];var c=this.qa;var d=0;for(var e=c.length,f;d<e;){var g=d+e>>1;var 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&&Ya(c,-(d+1),0,b)}b=nb(this,b);x(b).push(a)};mb.prototype.remove=function(a,b){if(b=nb(this,b))a=C(b,a),0<=a&&(x(null!=b.length),Array.prototype.splice.call(b,a,1))};
function ob(a,b){return 0==b?a.Z||[]:b in x(a.R)?x(nb(a,b)):[]}function pb(a){if(!a.R)return a.Z?a.Z.slice():[];for(var b=[],c=x(a.qa),d=0;d<c.length;++d){var e=nb(a,c[d]);e&&Xa(b,e)}return b}function nb(a,b){return 0==b?a.Z:x(a.R)[b]};function E(a){this.tb=this.A=null;this.Mb=void 0===a?null:a}m(E,lb);h=E.prototype;h.Yb=function(){return this.Mb};h.addHandler=function(a,b,c){this.A=this.A||new mb;this.A.push({$a:a,context:b},c||0)};h.removeHandler=function(a,b,c){c=c||0;if(this.A)for(var d=ob(this.A,c),e=d.length,f=0;f<e;++f){var g=d[f];if(g.$a==a&&g.context==b){a=f;if(c=nb(this.A,c))x(null!=c.length),Array.prototype.splice.call(c,a,1);break}}else wa("EventDispatcher has no handlers!")};
h.$b=function(a,b,c){if(!this.A)return!1;c=ob(this.A,c||0);for(var d=c.length,e=0;e<d;++e){var f=c[e];if(f.$a==a&&f.context==b)return!0}return!1};h.wa=function(a){for(var b=[],c=0;c<arguments.length;++c)b[c-0]=arguments[c];if(this.A){c=pb(this.A);for(var d=c.length,e=0;e<d;++e){var f=c[e];if(-1!=C(pb(this.A),f))try{f.$a.apply(f.context,arguments)}catch(g){za(g,!0)}}}this.tb&&this.tb.forEach(function(a){a.wa.apply(a,b instanceof Array?b:ba(l(b)))})};E.prototype.dispatch=E.prototype.wa;
E.prototype.hasHandler=E.prototype.$b;E.prototype.removeHandler=E.prototype.removeHandler;E.prototype.addHandler=E.prototype.addHandler;E.prototype.eventOwner=E.prototype.Yb;var qb={Dc:"prompt",hc:"always",yc:"never"};r("ispring.presenter.presentation.settings.PresentationResumeMode",qb,void 0);r("PROMPT_TO_RESUME","prompt",qb);r("ALWAYS_RESUME","always",qb);r("NEVER_RESUME","never",qb);function rb(a,b){this.Ya=a;this.yb=b;this.zb=new E}h=rb.prototype;h.O=!1;h.W=0;h.ra=0;h.sa=-1;h.ta=0;h.Ga=0;h.start=function(a){this.O||(this.ta=this.W=a||0,a=this.W>=this.Ya,a&&this.yb||(this.O=!0,this.ra=ra(),a||(this.sa=setTimeout(w(this.Sa,this),this.Ya-this.W))))};h.Sa=function(){this.yb&&(this.stop(),this.ta=this.Ya);this.zb.wa()};h.stop=function(){this.O&&(this.O=!1,0<this.sa&&(clearTimeout(this.sa),this.sa=-1),this.Ga=ra()-this.ra,this.ta=this.Ga+this.W)};function F(a){this.Oa=a}F.prototype.Zb=function(a,b,c){c=this.Oa.hasOwnProperty(a)?this.Oa[a]:c;if(p(c)){if(p(b)){a=this.Gb;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}wa("unknown message id: "+a);return a};F.prototype.messages=function(){return this.Oa};F.prototype.Gb=function(a){return"%"+a.toUpperCase()+"%"};F.prototype.getMessage=F.prototype.Zb;function sb(a,b,c,d){this.Hb=new F(b);this.Db=c;this.B=d}sb.prototype.i18n=function(){return this.Hb};function tb(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 ub(){this.Tb=new E};function vb(a,b,c,d){this.Ub=a;this.Ia=b;this.Rb=c;this.Jb=d}vb.prototype.timeLimit=function(){return this.Ub};vb.prototype.message=function(){return this.Jb};var wb={Gc:"resumePlayback",nc:"gotoSlide",jc:"delayStartup"};r("ispring.presenter.player.startup.PresentationStartup.Action",wb,void 0);r("RESUME_PLAYBACK","resumePlayback",wb);r("GOTO_SLIDE","gotoSlide",wb);r("DELAY_STARTUP","delayStartup",wb);var xb=!D||9<=Number(jb),yb;
if(yb=D){var zb;if(Object.prototype.hasOwnProperty.call(ib,"9"))zb=ib["9"];else{for(var Ab=0,Bb=Ba(String(eb)).split("."),Cb=Ba("9").split("."),Db=Math.max(Bb.length,Cb.length),Eb=0;0==Ab&&Eb<Db;Eb++){var Fb=Bb[Eb]||"",Gb=Cb[Eb]||"";do{var H=/(\d*)(\D*)(.*)/.exec(Fb)||["","","",""],I=/(\d*)(\D*)(.*)/.exec(Gb)||["","","",""];if(0==H[0].length&&0==I[0].length)break;Ab=Ka(0==H[1].length?0:parseInt(H[1],10),0==I[1].length?0:parseInt(I[1],10))||Ka(0==H[2].length,0==I[2].length)||Ka(H[2],I[2]);Fb=H[3];
Gb=I[3]}while(0==Ab)}zb=ib["9"]=0<=Ab}yb=!zb}var Hb=yb;function Ib(a,b){Qa(b,function(b,d){b&&"object"==typeof b&&b.Rc&&(b=b.Qc());"style"==d?a.style.cssText=b:"class"==d?a.className=b:"for"==d?a.htmlFor=b:Jb.hasOwnProperty(d)?a.setAttribute(Jb[d],b):0==d.lastIndexOf("aria-",0)||0==d.lastIndexOf("data-",0)?a.setAttribute(d,b):a[d]=b})}
var Jb={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 Kb(a,b,c){var d=arguments,e=document,f=String(d[0]),g=d[1];if(!xb&&g&&(g.name||g.type)){f=["<",f];g.name&&f.push(' name="',Ca(g.name),'"');if(g.type){f.push(' type="',Ca(g.type),'"');var k={};Ta(k,g);delete k.type;g=k}f.push(">");f=f.join("")}f=e.createElement(f);g&&(q(g)?f.className=g:"array"==u(g)?f.className=g.join(" "):Ib(f,g));2<d.length&&Lb(e,f,d);return f}
function Lb(a,b,c){function d(c){c&&b.appendChild(q(c)?a.createTextNode(c):c)}for(var e=2;e<c.length;e++){var f=c[e];!ma(f)||na(f)&&0<f.nodeType?d(f):Ua(Mb(f)?Wa(f):f,d)}}function Nb(a){var b=document.body;x(null!=b&&null!=a,"goog.dom.appendChild expects non-null arguments");b.appendChild(a)}var Ob={SCRIPT:1,STYLE:1,HEAD:1,IFRAME:1,OBJECT:1},Pb={IMG:" ",BR:"\n"};
function Qb(a){if(Hb&&null!==a&&"innerText"in a)a=a.innerText.replace(/(\r\n|\r|\n)/g,"\n");else{var b=[];Rb(a,b,!0);a=b.join("")}a=a.replace(/ \xAD /g," ").replace(/\xAD/g,"");a=a.replace(/\u200B/g,"");Hb||(a=a.replace(/ +/g," "));" "!=a&&(a=a.replace(/^\s*/,""));return a}
function Rb(a,b,c){if(!(a.nodeName in Ob))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 Pb)b.push(Pb[a.nodeName]);else for(a=a.firstChild;a;)Rb(a,b,c),a=a.nextSibling}function Mb(a){if(a&&"number"==typeof a.length){if(na(a))return"function"==typeof a.item||"string"==typeof a.item;if("function"==u(a))return"function"==typeof a.item}return!1};function Sb(a){var b={width:"1px",height:"1px",border:"0"};if(q(b))(b=Tb(a,b))&&(a.style[b]=void 0);else for(var c in b){var d=a,e=b[c],f=Tb(d,c);f&&(d.style[f]=e)}}var Ub={};function Tb(a,b){var c=Ub[b];if(!c){var d=La(b);c=d;void 0===a.style[d]&&(d=(cb?"Webkit":bb?"Moz":D?"ms":$a?"O":null)+Ma(d),void 0!==a.style[d]&&(c=d));Ub[b]=c}return c};function Vb(a,b){if("function"!=u(a))if(a&&"function"==typeof a.handleEvent)a=w(a.handleEvent,a);else throw Error("Invalid listener argument");2147483647<Number(b)||n.setTimeout(a,b||0)};function Wb(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 Xb(a){a=String(a);if(Wb(a))try{return eval("("+a+")")}catch(b){}throw Error("Invalid JSON string: "+a);}function Yb(a){this.za=a}Yb.prototype.serialize=function(a){var b=[];Zb(this,a,b);return b.join("")};
function Zb(a,b,c){if(null==b)c.push("null");else{if("object"==typeof b){if("array"==u(b)){var d=b;b=d.length;c.push("[");for(var e="",f=0;f<b;f++)c.push(e),e=d[f],Zb(a,a.za?a.za.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),$b(d,c),c.push(":"),Zb(a,a.za?a.za.call(b,d,e):e,c),f=","));c.push("}");return}}switch(typeof b){case "string":$b(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 ac={'"':'\\"',"\\":"\\\\","/":"\\/","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r","\t":"\\t","\x0B":"\\u000b"},bc=/\uffff/.test("\uffff")?/[\\"\x00-\x1f\x7f-\uffff]/g:/[\\"\x00-\x1f\x7f-\xff]/g;
function $b(a,b){b.push('"',a.replace(bc,function(a){var b=ac[a];b||(b="\\u"+(a.charCodeAt(0)|65536).toString(16).substr(1),ac[a]=b);return b}),'"')};var cc=A("Firefox"),dc=A("Safari")&&!((A("Chrome")||A("CriOS"))&&!A("Edge")||A("Coast")||A("Opera")||A("Edge")||A("Silk")||A("Android"))&&!(Pa()||A("iPad")||A("iPod"));var ec=null,fc=bb||cb&&!dc||$a||"function"==typeof n.btoa;function gc(a,b){this.h=a;this.Eb=b||[]}r("iSpring.ios.mobile.MobileAppCommand",gc,void 0);gc.prototype.id=function(){return this[v]||(this[v]=++oa)};function hc(a){try{var b=document.createElement("iframe");Sb(b);b.src=a;Nb(b);Vb(function(){b&&b.parentNode&&b.parentNode.removeChild(b)},100)}catch(c){}};function J(a){this.length=a.length||a;for(var b=0;b<this.length;b++)this[b]=a[b]||0}J.prototype.BYTES_PER_ELEMENT=8;J.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]};J.prototype.toString=Array.prototype.join;if("undefined"==typeof Float64Array){try{J.BYTES_PER_ELEMENT=8}catch(a){}J.prototype.BYTES_PER_ELEMENT=J.prototype.BYTES_PER_ELEMENT;J.prototype.set=J.prototype.set;J.prototype.toString=J.prototype.toString;r("Float64Array",J,void 0)};function K(a){this.length=a.length||a;for(var b=0;b<this.length;b++)this[b]=a[b]||0}K.prototype.BYTES_PER_ELEMENT=4;K.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]};K.prototype.toString=Array.prototype.join;"undefined"==typeof Float32Array&&(K.BYTES_PER_ELEMENT=4,K.prototype.BYTES_PER_ELEMENT=K.prototype.BYTES_PER_ELEMENT,K.prototype.set=K.prototype.set,K.prototype.toString=K.prototype.toString,r("Float32Array",K,void 0));function ic(){var a=window.location.search.substr(1);if(a){var b={};a=a.split("&");for(var c=0;c<a.length;++c){var d=a[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();b[e]=f}}}else b={};return b};function jc(a){var b="\r";if(0==a.length)return"";null!=b||(b="");var c=0,d="",e=a.length;do{var f=kc(a,["<p>","<p "],c);if(f&&f.ya>c){c=a.substr(c,f.ya-c);var g=Kb("DIV");g.innerHTML=c;d+=(g.textContent||g.innerText||Qb(g))+b;c=f.ya}if(g=kc(a,["</p>","</p >"],c)){f=g.ya+g.ec.length-c;var k=a.substr(c,f);g=Kb("DIV");g.innerHTML=k;d+=(g.textContent||g.innerText||Qb(g))+b;c+=f}else return g=Kb("DIV"),g.innerHTML=a.substr(c,e-c),d+(g.textContent||g.innerText||Qb(g))}while(c<e);return d}
function kc(a,b,c){"array"==u(b)||(b=[b]);var d=void 0,e=void 0;Ua(b,function(b){var f=a.indexOf(b,c);0<=f&&(!p(d)||f<d)&&(d=f,e=b)});return p(e)&&p(d)?new lc(e,d):null}function lc(a,b){this.ec=a;this.ya=b};function L(a,b){this.ga=a;this.J=b}L.prototype.id=function(){return this.ga};L.prototype.description=function(){return this.J};function mc(){this.f=[]}mc.prototype.count=function(){return this.f.length};function M(a,b){a.f.push(b)}mc.prototype.getChoice=function(a){if(0>a||a>=this.count())throw Error("Index out of bounds");return this.f[a]};function O(){this.f=new mc};function P(a){a=Ba(a);return a=a.replace(/[^\w-]/g,"_")}function nc(a,b){return"0123456789abcdefghijklmnopqrstuvwxyz"[((null!=b?b:1)?a:35-a)%36]};function oc(a,b,c,d){this.Wa=a;this.Pb=b;this.Qb=c;this.Ob=d;this.Va=void 0}function pc(a){a=jc(a.text());a=Ca(a);if(!a)return"";var b=document.createElement("div");b.innerHTML=a;return b.firstChild.nodeValue}
oc.prototype.create=function(){var a=0,b=[],c=this.Pb,d=this.Ob,e=new qc(c.id()+"_"+a);a+=1;e.h=Q;if(null!=c.message()){var f=c.message().text();f=jc(f);e.J=f;f=c.message().replies();null!=c.speech()&&0<jc(c.speech())&&(a=new qc(c.id()+"_"+a),a.h=rc,c=jc(c.speech()),a.J=c,a.ia=sc,tc(this,a),b.push(a))}else f=jc(c.speech()),e.J=f,f=c.replies();0==f.count()&&(e.h=rc);c=null;for(var g=a=0,k=-1,t=[],G=0;G<f.count();G++){var N=f.getReply(G);null!=d&&N==d&&(k=G);a=Math.max(a,N.score());t.push(uc(this,G,
pc(N)))}null!=d&&(c=uc(this,k,pc(d)),g=Math.max(g,d.score()));d=f;f=new O;for(k=0;k<d.count();++k)G=pc(d.getReply(k)),M(f.f,new L(P(k+"_"+G),G));e.w=f;e.s=c;e.u=t;this.Wa.scenario().settings().evaluationSettings().enabled()&&(e.aa(a),e.Da=g);e.ia=sc;tc(this,e);b.push(e);return b};function uc(a,b,c){c=P(b+"_"+c);b=nc(b);return a.Qb?b:c}function tc(a,b){null!=a.Va&&(b.Za=new Date(a.Va),b.Ba(ra()-a.Va))};function vc(a){for(var b=0,c=0;c<a.length;++c)b+=a[c];return b};function wc(a,b,c,d,e,f){this.N=a;this.Sb=b;this.Vb=e;this.Nb=f;this.D={};for(a=0;a<c.length;++a)b=c[a],e=b[1],this.D[b[0]]=e,0<e&&++this.ca;this.X={};for(a=0;a<d.length;++a)c=d[a],b=c[1],this.X[c[0]]=b,0<b&&++this.ca}h=wc.prototype;h.ca=0;h.slidesWeight=function(){return 0<this.N?this.Sb:0};h.slidesToView=function(){return this.N};h.totalScore=function(){return this.Vb};h.passingScore=function(){return this.Nb};function xc(){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 yc(a){return"PT"+Math.floor(a/3600)+"H"+Math.floor(a%3600/60)+"M"+Math.floor(a%60)+"S"}function zc(a){return 10>a?"0"+a:a}
function Ac(){if(Bc)if(Bc){var a=new gc("closeWindow");if(Bc){var b=a.h,c=a.Eb;a=a.id();var d=(new Yb(null)).serialize(c);if(fc)c=n.btoa(d);else{c=[];for(var e=0,f=0;f<d.length;f++){var g=d.charCodeAt(f);255<g&&(c[e++]=g&255,g>>=8);c[e++]=g}x(ma(c),"encodeByteArray takes an array as a parameter");if(!ec)for(ec={},d=0;65>d;d++)ec[d]="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".charAt(d);d=ec;e=[];for(f=0;f<c.length;f+=3){var k=c[f],t=(g=f+1<c.length)?c[f+1]:0,G=f+2<c.length,
N=G?c[f+2]:0,Fd=k>>2;k=(k&3)<<4|t>>4;t=(t&15)<<2|N>>6;N&=63;G||(N=64,g||(t=64));e.push(d[Fd],d[k],d[t],d[N])}c=e.join("")}hc("isplayer://"+b+"/"+a+"/"+c)}}else try{Cc||(window.open("","_self",""),window.close())}catch(Gd){}else try{Cc||(window.Aa=window,b=Dc(),b==window.top?(window.open("","_self",""),window.close()):Ec(b))}catch(Gd){Ec(window.top)}}function Ec(a){if(a&&a.Aa){var b=document.createElement("a");b.href="data/goodbye.html";a.Aa.location.replace(b.href)}}
function Dc(){var a=window;if(a.Aa)return a;for(var b=0;a!=window.top&&100>b++;){if(a.Aa)return a;a=a.parent}console.log("Unable to locate content root");return null}function Fc(){try{var a=document.getElementById("preloader");a&&a.parentNode.removeChild(a)}catch(b){}};function Gc(a,b){this.ga=a;this.Kb=b;this.Fb=""}Gc.prototype.id=function(){return this.ga};Gc.prototype.name=function(){return this.Kb};Gc.prototype.email=function(){return this.Fb};var Q="choice",rc="other";var sc="neutral";function qc(a){this.ga=a}h=qc.prototype;h.J="";h.s=null;h.u=null;h.ia="unanticipated";h.ub=0;h.Da=null;h.K=null;h.Za=null;h.w=null;h.id=function(){return this.ga};h.type=function(){return this.h};h.description=function(){return this.J};h.gb=function(){return this.s};function Hc(a,b){a.u=b}h.result=function(){return this.ia};h.score=function(){return this.ub};h.aa=function(a){this.ub=a};h.awardedScore=function(){return this.Da};h.duration=function(){return this.K};h.Ba=function(a){this.K=a};h.hb=function(){return this.Za};
h.va=function(){return this.w};function Ic(a,b){a.w=b};function Jc(a,b){this.i=a;this.Wa=b};var R={Jc:"slidePool",ic:"authorizationForm",pc:"informationSlide",qc:"introSlide",Fc:"resultSlide",oc:"hotspotQuestion",rc:"likertScaleQuestion",Nc:"wordBankQuestion",kc:"essayQuestion",Lc:"typeInQuestion",Ic:"shortAnswerQuestion",lc:"fillInTheBlankQuestion",mc:"fillInTheBlankSurveyQuestion",zc:"numericQuestion",Ac:"numericSurveyQuestion",Hc:"sequenceQuestion",Ec:"rankingQuestion",Mc:"whichWordQuestion",vc:"multipleChoiceTextQuestion",wc:"multipleChoiceTextSurveyQuestion",uc:"multipleChoiceQuestion",
xc:"multipleResponseQuestion",Cc:"pickOneQuestion",Bc:"pickManyQuestion",Kc:"trueFalseQuestion",Oc:"yesNoQuestion",sc:"matchingQuestion",tc:"matchingSurveyQuestion"};r("ispring.quiz.slides.SlideType",R,void 0);r("SLIDE_POOL","slidePool",R);r("INFORMATION_SLIDE","informationSlide",R);r("INTRO_SLIDE","introSlide",R);r("HOTSPOT_QUESTION","hotspotQuestion",R);r("LIKERT_SCALE_QUESTION","likertScaleQuestion",R);r("WORD_BANK_QUESTION","wordBankQuestion",R);r("RESULT_SLIDE","resultSlide",R);
r("ESSAY_QUESTION","essayQuestion",R);r("TYPE_IN_QUESTION","typeInQuestion",R);r("SHORT_ANSWER_QUESTION","shortAnswerQuestion",R);r("FILL_IN_THE_BLANK_QUESTION","fillInTheBlankQuestion",R);r("FILL_IN_THE_BLANK_SURVEY_QUESTION","fillInTheBlankSurveyQuestion",R);r("NUMERIC_QUESTION","numericQuestion",R);r("NUMERIC_SURVEY_QUESTION","numericSurveyQuestion",R);r("SEQUENCE_QUESTION","sequenceQuestion",R);r("RANKING_QUESTION","rankingQuestion",R);r("WHICH_WORD_QUESTION","whichWordQuestion",R);
r("MULTIPLE_CHOICE_TEXT_QUESTION","multipleChoiceTextQuestion",R);r("MULTIPLE_CHOICE_TEXT_SURVEY_QUESTION","multipleChoiceTextSurveyQuestion",R);r("MULTIPLE_CHOICE_QUESTION","multipleChoiceQuestion",R);r("MULTIPLE_RESPONSE_QUESTION","multipleResponseQuestion",R);r("PICK_ONE_QUESTION","pickOneQuestion",R);r("PICK_MANY_QUESTION","pickManyQuestion",R);r("TRUE_FALSE_QUESTION","trueFalseQuestion",R);r("YES_NO_QUESTION","yesNoQuestion",R);r("MATCHING_QUESTION","matchingQuestion",R);
r("MATCHING_SURVEY_QUESTION","matchingSurveyQuestion",R);function Kc(a,b,c,d,e){this.type=a;this.bc=b;this.maxScore=p(c)?c:null;this.cc=p(d)?d:null;this.bb=p(e)?e:null}Kc.prototype.ab=function(){var a={};a[Lc]=this.bc;a[Mc]=this.maxScore;a[Nc]=this.cc;a[Oc]=this.bb;a[Pc]=this.type;return a};var Lc="p",Mc="m",Nc="r",Oc="s",Pc="t";function Qc(a){this.la=a;this.H=[];this.G={}}h=Qc.prototype;h.oa=-1;h.K=0;h.pa=null;h.duration=function(){return this.K};h.Ba=function(a){this.K=a};h.ab=function(){var a={};a[Rc]=this.K;a[Sc]=this.oa;a[Tc]=this.H;a[Uc]=this.la;a[Vc]=this.pa;var b={},c;for(c in this.G)b[c]=this.G[c].ab();a[Wc]=b;return a};var Sc="l",Tc="v",Uc="V",Rc="d",Vc="p",Wc="q";(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),a.ISPFlipPlayer&&(window.ISPFlipPlayer=a.ISPFlipPlayer),!0}catch(e){return!1}}if(function(){try{var 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 Xc,Yc=ic().user_agent;Xc=Yc?Yc:z||"";ic();ic();var Zc=-1!=Xc.toLowerCase().indexOf("chrome"),Cc=-1==Xc.toLowerCase().indexOf("windows phone")&&-1!=Xc.toLowerCase().indexOf("android")&&!Zc&&!cc&&!$a,Bc=-1!=Xc.indexOf("ismobile"),$c=document.createElement("audio"),ad=$c.play&&$c.play();ad&&ad.then(function(){$c.pause()},function(){});ic();ic();
function bd(){return 1==window._ispringDebug||"1"==ic().isdebug}if(A("Windows")){var cd=z,S;if(A("Windows")){S=/Windows (?:NT|Phone) ([0-9.]+)/;var dd=S.exec(cd)}else Pa()||A("iPad")||A("iPod")?(S=/(?:iPhone|iPod|iPad|CPU)\s+OS\s+(\S+)/,(dd=S.exec(cd))&&dd[1].replace(/_/g,".")):A("Macintosh")?(S=/Mac OS X ([0-9_.]+)/,(dd=S.exec(cd))&&dd[1].replace(/_/g,".")):A("Android")?(S=/Android\s+([^\);]+)(\)|;)/,dd=S.exec(cd)):A("CrOS")&&(S=/(?:CrOS\s+(?:i686|x86_64)\s+([0-9.]+))/,dd=S.exec(cd))}
setTimeout(function(){xa=bd},0);function T(a){var b=a.gc,c=a.slideIndex;this.g=a.dc;this.Ab=b;this.m=!1;this.wb=c}T.prototype.create=function(a){if(!a.submitted())return null;var b=(p(this.wb)?"Slide"+this.wb+"_":"")+"Q_"+a.slide().id();b=new qc(P(b));this.a(b,a);return b};
T.prototype.a=function(a,b){var c=b.slide();c=U(this,c.description(),!0);a.J=c;b.hasBeenVisited()&&(a.Ba(b.visitDuration()),c=b.firstVisitTime(),a.Za=c);if(c=b.slide().settings().evaluation()){if(a.aa(b.maxScore()),b=b.review()){var d=Math.max(0,b.awardedScore());a.Da=d;d="unanticipated";switch(b.status()){case "correct":d="correct";break;case "incorrect":case "partially":d="incorrect"}a.ia=d}}else a.ia=sc;this.m=!!c};function ed(a,b){return b.join(a.g?",":"[,]")}
function V(a,b,c){return a.g?nc(b):P(b+"_"+c)}function U(a,b,c){return b.textWithEquations(a.g||!c?"Equation":"")};function fd(a){T.apply(this,arguments)}m(fd,T);fd.prototype.a=function(a,b){T.prototype.a.call(this,a,b);a.h=this.g?rc:"fill-in";var c=b.contentState();b=[];var d=[];c=l(c.placeholders());for(var e=c.next();!e.done;e=c.next())e=e.value,b.push(e.response()),(e=e.correctAnswers())&&(this.Ab?d.push(e[0]):d.push(e.join("[,]")));a.s=b.join("[,]");if(this.m){b=d;if(this.g||this.Ab)b=[b.join(this.g?"[.]":"[,]")];a.u=b}};function gd(a,b){this.length=b;for(var c=0;c<b;++c)this[c]=a(c)};function hd(a){T.apply(this,arguments)}m(hd,T);hd.prototype.a=function(a,b){T.prototype.a.call(this,a,b);a.h=this.g?rc:Q;var c=b.slide().content(),d=[],e=new O;c=c.extraWords();c=l(c);for(var f=c.next();!f.done;f=c.next()){f=f.value.text();var g=e.f.count();g=P(g+"_"+f);M(e.f,new L(g,f))}b=b.contentState().placeholders();this.m&&(c=[],this.Ja(b,e,c),a.u=[c.join("[,]")]);id(b,e,d);a.s=d.join("[,]");a.w=e};
hd.prototype.Ja=function(a,b,c){a=l(a);for(var d=a.next();!d.done;d=a.next()){d=d.value.placeholder().value||"";var e=b.f.count();e=P(e+"_"+d);c.push(e);M(b.f,new L(e,d))}};function id(a,b,c){var d={};a=l(a);for(var e=a.next();!e.done;d={ma:d.ma},e=a.next())d.ma=e.value.response(),null!=d.ma&&(e=new gd(function(a){return b.f.getChoice(a)},b.f.count()),e=Va(e,function(a){return function(b){return Ba(b.description())==a.ma}}(d)),x(null!=e),c.push(e.id()))};function jd(a){T.apply(this,arguments)}m(jd,T);jd.prototype.a=function(a,b){T.prototype.a.call(this,a,b);a.h="long-fill-in";b=b.contentState().response();a.s=b};function kd(){this.f=new mc;this.ib=[]}sa(kd,O);function ld(a){T.apply(this,arguments)}m(ld,T);ld.prototype.a=function(a,b){T.prototype.a.call(this,a,b);a.h=Q;var c=b.slide().content(),d=this.Na(c,b.contentState());a.s=d;this.m&&(d=[this.Ka(c)],a.u=d);b=this.ea(c,b.contentState());a.w=b};
ld.prototype.ea=function(a,b){var c=new O;if(!this.m){c=new kd;for(var d=0;d<b.count();++d){var e=b.getChoiceState(d),f=e.choice(),g=a.getChoiceIndex(f);f.typeIn()&&(e=e.customAnswer(),c.ib[g]=e)}}for(b=0;b<a.count();++b)d=a.getChoice(b),d=U(this,d.textRange(),!1),M(c.f,new L(P(b+"_"+d),d));return c};
ld.prototype.Na=function(a,b){for(var c=[],d=0;d<b.count();++d){var e=b.getChoiceState(d),f=e.choice(),g=U(this,f.textRange(),!1);e.selected()&&(e=a.getChoiceIndex(f),g=V(this,e,g),c.push(g))}return ed(this,c)};ld.prototype.Ka=function(a){for(var b=[],c=0;c<a.count();++c){var d=a.getChoice(c);d.correct()&&(d=V(this,c,U(this,d.textRange(),!1)),b.push(d))}return ed(this,b)};function md(){this.Xa=new mc;this.ka=new mc};function nd(a){T.apply(this,arguments)}m(nd,T);nd.prototype.a=function(a,b){T.prototype.a.call(this,a,b);a.h=this.g?rc:"matching";var c=[],d=[],e=new O;b.contentState().placeholders().forEach(function(a,b){var f=a.response(),g=a.correctAnswer();a.answers().forEach(function(a){var k=e.f.count();k=b+"[.]"+P(k+"_"+a);a==g&&d.push(k);a==f&&c.push(k);M(e.f,new L(k,a))})});a.s=c.join("[,]");this.m&&Hc(a,[d.join("[,]")]);Ic(a,od(b.slide().content()))};
function od(a){var b=new md,c=0;Ua(a.placeholders(),function(a,e){e+="";M(b.Xa,new L(e,e));a.values.forEach(function(a){a=a.text();var d=c++ +"_"+a;d=P(d);M(b.ka,new L(d,a))})});return b};function pd(a){T.apply(this,arguments)}m(pd,T);h=pd.prototype;h.a=function(a,b){T.prototype.a.call(this,a,b);a.h="matching";var c=b.contentState(),d=b.slide().content(),e=this.Ua(d);b=e.va;var f=e.premises;e=e.responses;c=this.La(c.matches(),f,e,this.g);a.s=c;this.m&&(c=[this.Ma(d.matches(),this.g)],a.u=c);a.w=b};
h.Ua=function(a){for(var b=new md,c=[],d=[],e=a.matches(),f=0;f<e.count();++f){var g=e.getChoice(f);c.push(g.premise());d.push(g.response());var k=U(this,g.premise().textRange(),!1);g=U(this,g.response().textRange(),!1);M(b.Xa,new L(P(f+"_"+k),k));M(b.ka,new L(P(f+"_"+g),g))}a=a.distractors();for(e=0;e<a.count();++e)f=a.getChoice(e),d.push(f),f=U(this,f.textRange(),!1),M(b.ka,new L(P(e+"_"+f),f));return{va:b,premises:c,responses:d}};
h.La=function(a,b,c,d){var e=[];a=l(a);for(var f=a.next();!f.done;f=a.next()){var g=f.value;f=g.premise();g=g.response();var k=C(b,f),t=C(c,g);f=this.U(f,k,g,t,d);e.push(f)}return this.da(e,d)};h.Ma=function(a,b){for(var c=[],d=0;d<a.count();++d){var e=a.getChoice(d);e=this.U(e.premise(),d,e.response(),d,b);c.push(e)}return this.da(c,b)};h.fa=function(a,b,c,d){return c?nc(b,d):b+"_"+U(this,a.textRange(),!1)};
h.U=function(a,b,c,d,e){a=this.fa(a,b,e,!0);c=this.fa(c,d,e,!1);e=e?".":"[.]";return P(a)+e+P(c)};h.da=function(a,b){return a.join(b?",":"[,]")};function qd(a){T.apply(this,arguments)}m(qd,T);
qd.prototype.a=function(a,b){T.prototype.a.call(this,a,b);var c=b.slide();b=b.contentState().response();c=c.content();var d;a:{for(d=0;d<c.count();++d)if("notEqual"==c.getAnswer(d).comparisonOperation()){d=!0;break a}d=!1}a.h=this.g||d?"fill-in":"numeric";a.s=b;if(this.m){d=(b=this.g||d)?"[,]":"[.]";for(var e=[],f=0;f<c.count();++f){var g="",k=c.getAnswer(f),t=k.comparisonOperation();if("between"==t)t=k,g=t.leftOperand(),t=t.rightOperand(),g=b?"between "+g+" and "+t:g+"[:]"+t;else switch(k=k.operand(),
t){case "notEqual":b&&(g="not equal to "+k);break;case "equal":g=b?"equal to "+k:k+"[:]"+k;break;case "greaterThan":g=b?"greater than "+k:k+"[:]";break;case "greaterThanOrEqual":g=b?"greater than or equal to "+k:k+"[:]";break;case "lessThan":g=b?"less than "+k:"[:]"+k;break;case "lessThanOrEqual":g=b?"less than or equal to "+k:"[:]"+k}e.push(g)}a.u=[e.join(d)]}};function rd(a){T.apply(this,arguments)}m(rd,T);rd.prototype.a=function(a,b){T.prototype.a.call(this,a,b);a.h="sequencing";var c=b.slide().content();b=sd(this,c,b.contentState().studentResponse(),this.g);a.s=b;this.m&&(b=[sd(this,c,c,this.g)],a.u=b);c=this.ea(c);a.w=c};rd.prototype.ea=function(a){for(var b=new O,c=0;c<a.count();++c){var d=a.getChoice(c).textRange().text();M(b.f,new L(P(c+"_"+d),d))}return b};
function sd(a,b,c,d){var e=d?",":"[,]",f=[];c.forEach(function(c){var e=U(a,c.textRange(),!1);c=b.getChoiceIndex(c);f.push(P(d?nc(c,!0):c+"_"+e))});return f.join(e)};function td(a){T.apply(this,arguments)}m(td,T);td.prototype.a=function(a,b){var c=this;T.prototype.a.call(this,a,b);a.h=Q;var d=[],e=new O;b.contentState().statementsStates().forEach(function(a,b){var f=a.statement().text();M(e.f,new L(V(c,b,f),f));(a=a.selectedScale())&&d.push(P(b+"_"+a.text()))});a.s=ed(this,d);a.w=e};function ud(a){T.apply(this,arguments)}m(ud,T);ud.prototype.a=function(a,b){T.prototype.a.call(this,a,b);a.h="fill-in";var c=b.slide();b=b.contentState().response().text();a.s=b;this.m&&(c=this.Ka(c.content()),a.u=c)};ud.prototype.Ka=function(a){for(var b=[],c=0;c<a.count();++c){var d=a.getChoice(c);b.push(d.textRange().text())}return b};function vd(a){T.apply(this,arguments)}m(vd,T);h=vd.prototype;h.a=function(a,b){T.prototype.a.call(this,a,b);a.h="matching";var c=b.contentState(),d=b.slide().content(),e=this.Ua(d);b=e.va;var f=e.premises,g=e.responses;e=e.ac;c=this.La(c.chainsStates(),f,g,e);a.s=c;this.m&&(c=[this.m?this.Ma(d.chains(),f,g,e):c],a.u=c);a.w=b};
h.Ua=function(a){var b=new md,c=[],d=[];a=a.chains();a=l(a);for(var e=a.next();!e.done;e=a.next()){var f=e.value;e=f.object().slideObject();f=f.destination().slideObject();if(e&&0>c.indexOf(e)){c.push(e);var g=e.name();M(b.Xa,new L(P(c.indexOf(e)+"_"+g),g))}f&&0>d.indexOf(f)&&(d.push(f),e=f.name(),M(b.ka,new L(P(d.indexOf(f)+"_"+e),e)))}a=this.g?nc(d.length,!1):d.length+"_None";M(b.ka,new L(a,"None"));return{va:b,premises:c,responses:d,ac:a}};
h.La=function(a,b,c,d){var e=[],f=b.slice();a=l(a);for(var g=a.next();!g.done;g=a.next()){var k=g.value;g=k.objectState().slideObject();k=k.destinationState().slideObject();k=this.U(g,k,b,c,d);e.push(k);f.splice(f.indexOf(g),1)}f=l(f);for(a=f.next();!a.done;a=f.next())a=this.U(a.value,null,b,c,d),e.push(a);return this.da(e)};
h.Ma=function(a,b,c,d){var e=[];a=l(a);for(var f=a.next();!f.done;f=a.next()){var g=f.value;f=g.object().slideObject();g=g.destination().slideObject();f&&(f=this.U(f,g,b,c,d),e.push(f))}return this.da(e)};h.fa=function(a,b,c){this.g?b=nc(b,c):(a=a.name(),a=P(a),b=b+"_"+a);return b};h.U=function(a,b,c,d,e){a=this.fa(a,c.indexOf(a),!0);b=b?this.fa(b,d.indexOf(b),!1):e;d=this.g?".":"[.]";return P(a)+d+P(b)};h.da=function(a){return a.join(this.g?",":"[,]")};function wd(a){T.apply(this,arguments)}m(wd,T);wd.prototype.a=function(a,b){T.prototype.a.call(this,a,b);a.h=Q;var c=[],d=[],e=new O;this.Ja(b.contentState(),e,d,c);a.s=ed(this,c);this.m&&(a.u=[ed(this,d)]);a.w=e};wd.prototype.Ja=function(a,b,c,d){var e=this;a.areas().forEach(function(f,g){var k=f.area(),t=k.label().text();g=V(e,g,t);k.correct()&&c.push(g);a.areaSelected(f)&&d.push(g);M(b.f,new L(g,t))});for(var f=a.areas().length,g=f;g<f+a.freePointsCount();++g){var k=V(this,g,"Untitled_Spot");d.push(k)}};function W(a){T.apply(this,arguments)}m(W,T);W.prototype.a=function(a,b){T.prototype.a.call(this,a,b);a.h=Q;var c=b.slide();b=b.contentState();var d=c.content();c=this.Na(c.content(),b);a.s=c;if(this.m){a:{for(c=0;c<d.count();++c){var e=d.getChoice(c);if(e.correct()){c=V(this,c,U(this,e.textRange(),!1));break a}}c=""}a.u=[c]}b=this.ea(d,b);a.w=b};
W.prototype.ea=function(a,b){var c=new O;if(this.jb()){c=new kd;for(var d=0;d<b.count();++d){var e=b.getChoiceState(d),f=e.choice(),g=a.getChoiceIndex(f);f.typeIn()&&(e=e.customAnswer(),c.ib[g]=e)}}for(b=0;b<a.count();++b)d=a.getChoice(b),d=U(this,d.textRange(),!1),M(c.f,new L(P(b+"_"+d),d));return c};W.prototype.jb=function(){return!this.m};
W.prototype.Na=function(a,b){for(var c=0;c<b.count();++c){var d=b.getChoiceState(c);if(d.selected())return a=a.getChoiceIndex(d.choice()),V(this,a,U(this,d.choice().textRange(),!1))}return""};function xd(a){W.apply(this,arguments)}m(xd,W);xd.prototype.a=function(a,b){W.prototype.a.call(this,a,b);if(this.g&&this.m){a.h="true-false";var c=b.slide().content();b=b.contentState();var d=c.getChoice(0).correct()?"t":"f",e="t"==d?"f":"t";c=c.getChoice(0).correct()?c.getChoice(0).id():c.getChoice(1).id();for(var f=null,g=0;2>g;++g){var k=b.getChoiceState(g);if(k.selected()){f=k.choice().id()==c?d:e;break}}a.s=f;a.u=[d]}};xd.prototype.jb=function(){return!1};var X={},yd=(X.FillInTheBlank=fd,X.WordBank=hd,X.TypeIn=ud,X.Numeric=qd,X.MultipleChoice=W,X.MultipleResponse=ld,X.MultipleChoiceText=nd,X.Sequence=rd,X.Matching=pd,X.TrueFalse=xd,X.Essay=jd,X.Hotspot=wd,X.LikertScale=td,X.DND=vd,X);function Y(a,b){try{this.Ca=a;this.na={};this.Fa=null;this.L=new wc(b.slidesToView,b.slidesWeight,b.quizzes||{},b.scenarios||{},b.totalScore,b.passingScore);this.P=new vb(1E3*b.timeLimit,b.exitOnTimeout,b.showMessageOnTimeout,b.timeoutMessage);this.Y=new rb(this.P.timeLimit(),this.P.Ia);this.B="never"!=b.resumeMode;var c=new sb("ispring://presentations/"+encodeURIComponent(b.presentationId),b.tincan.i18n,b.scorm2004?b.scorm2004.edition:"",this.B);this.vb=new ub;this.i=tb(a,c,this.vb)}catch(d){bd()&&
alert(d)}}h=Y.prototype;h.C=!1;h.ha=null;h.I=!1;h.o=null;h.M=null;h.xb=!1;h.v=null;h.F=null;var zd=h.ja=null;r("iSpring.LMS.create",function(a,b,c){x(!zd);return zd=new Y(b,c)},void 0);r("iSpring.LMS.instance",function(){return x(zd)},void 0);Y.prototype.T=function(a){this.ha=a;null!=this.i?this.i.T(w(this.Lb,this),w(this.nb,this)):this.nb()};Y.prototype.initialize=Y.prototype.T;
Y.prototype.Lb=function(){this.V=this.i.xa();var a=null;var b=this.i.j.S("cmi.suspend_data");if(b)a:{b=LZString.decompressFromBase64(b);try{var c=Xb(b);break a}catch(d){}c=null}else c=null;switch(this.V){case "browse":a=null;break;case "review":c&&(a=Ad(this,c));break;case "normal":this.B&&c&&(a=Ad(this,c))}window.launchMode=this.V;p(a)&&(this.C=!0,this.ha&&this.ha(a))};
function Ad(a,b){var c=new Qc(B(b,Uc,[]));c.K=B(b,Rc,0);c.oa=B(b,Sc,-1);c.H=B(b,Tc,[]);c.pa=B(b,Vc,null);var d={};b=B(b,Wc,{});for(var e in b){var f=b[e];d[e]=new Kc(f[Pc],f[Lc],f[Mc],f[Nc],f[Oc])}c.G=d;a.M=c;c=a.M.duration();if(a.P.Ia&&c>=a.P.timeLimit())alert("You have already exceeded available time for viewing this content."),Fc(),Ac();else return a.M.pa}Y.prototype.nb=function(){this.ha&&this.ha()};
Y.prototype.start=function(a){if(this.C){for(var b=a.presentation().slides(),c=[],d=0;d<b.visibleSlidesCount();++d){var e=b.getVisibleSlide(d).index();c.push(e)}this.c=new Qc(c);this.o=a;this.I=!0;this.vb.Tb.wa(a.presentation().title());a.startupEvent().addHandler(this.ob,this);a.startupCompletedEvent().addHandler(this.pb,this);a.closeWindowEvent().addHandler(this.kb,this)}};Y.prototype.start=Y.prototype.start;
Y.prototype.ob=function(a){this.o.startupEvent().removeHandler(this.ob,this);var b=(this.B||"review"==this.V)&&this.M?this.M.oa:-1;0<=b?(a.setSlideIndex(b),a.setAction("resumePlayback")):(b=this.o.view().playbackController().firstSlideIndex(),a.setSlideIndex(b),a.setAction("gotoSlide"))};
Y.prototype.pb=function(a,b){this.o.startupCompletedEvent().removeHandler(this.pb,this);this.xb=!0;"resumePlayback"==a&&this.M&&(this.c=this.M);a=this.c.duration();this.Y.O||(this.Y.zb.addHandler(this.Sa,this),this.Y.start(a));a=this.o.view().playbackController();a.slideChangeEvent().addHandler(this.Pa,this);a=a.currentSlideIndex();a==b&&this.Pa(a);this.o.stateChangedEvent().addHandler(this.qb,this)};Y.prototype.Bb=function(){this.I&&Bd(this,this.B)};Y.prototype.closeLms=Y.prototype.Bb;
function Bd(a,b){a.I&&(a.I=!1,a.xb&&(a.Y.stop(),Cd(a),a.o.view().playbackController().slideChangeEvent().removeHandler(a.Pa,a)),a.o.closeWindowEvent().removeHandler(a.kb,a),a.o.stateChangedEvent().removeHandler(a.qb,a),b?a.i.suspend():a.i.terminate())}h=Y.prototype;
h.Pa=function(a){if(this.v){var b=this.v;b.currentSessionChangedEvent().removeHandler(this.lb,this);(b=b.currentSession())&&Dd(this,b);this.v=null}this.F&&(this.F.currentSessionChangedEvent().removeHandler(this.mb,this),null!=this.ja&&Ed(this),this.F=null);b=this.o.view().playbackController();if(a in this.L.D){var c=this.v=b.quizPlayer(),d=(c[v]||(c[v]=++oa))+"";d in this.na||(this.na[d]=!0,(d=Hd(this.i.j))&&c.setUserInfo(d.id(),{USER_NAME:d.name(),USER_EMAIL:d.email()}));c.currentSessionChangedEvent().addHandler(this.lb,
this);(c=c.currentSession())&&Id(this,c)}a in this.L.X&&(b=this.F=b.scenarioPlayer(),c=(b[v]||(b[v]=++oa))+"",c in this.na||(this.na[c]=!0,c=Hd(this.i.j),d=!b.userInfoIsLoaded(),c&&d&&b.setUserInfo(c.id(),{USER_NAME:c.name(),USER_EMAIL:c.email()})),c=b.currentSession(),null!=c&&Jd(this,c),b.currentSessionChangedEvent().addHandler(this.mb,this));b=this.o.presentation().slides().getSlide(a);"normal"==this.V&&b.title()&&b.title();b=this.c;0<=b.la.indexOf(a)&&(b=b.H,0<=C(b,a)||b.push(a));this.c.oa=a;
Kd(this)};function Cd(a){var b=a.Y;b=b.O?ra()-b.ra+b.W:b.ta;var c=a.Y;c=c.O?ra()-c.ra:c.Ga;a.c.Ba(b);a.i.j.b("cmi.session_time",yc(c/1E3));b=a.o.persistState();a.c.pa=b;b=a.i.j;a=(new Yb(void 0)).serialize(a.c.ab());a=LZString.compressToBase64(a);a.length<=("2"==b.l.Ha?4E3:64E3)&&b.b("cmi.suspend_data",a)}function Kd(a){var b=a.L;if(0<b.N||0<b.ca){var c=Ld(a),d=b.totalScore()*c;a.i.aa(c,0,b.totalScore(),d)}a.i.eb(a.c.H.length/a.c.la.length);a.i.fb(Md(a),Nd(a));Cd(a);a.i.$()}
function Md(a){var b=a.L,c;if(!(c=!(0<b.N||0<b.ca))&&(c=a.B)){a:if(0<a.L.N&&0<a.c.H.length)var d=!0;else{c=a.c.G;for(d in c)if(-1!=C(a.c.H,parseInt(d,10))){d=!0;break a}d=!1}c=!d}return c?null:Ld(a)*b.totalScore()>=b.passingScore()}function Nd(a){var b=a.L,c=a.c.H,d=a.c.la,e=a.c.G;a=a.o.presentation().slides();for(var f=0;f<a.count();++f)if(d.includes(f)&&!c.includes(f)||(f in b.D||f in b.X)&&!e[f+""])return!1;return!0}
function Ld(a){var b=a.L;if(!(0<b.N||0<b.ca))return 0;var c=0,d=a.c.G,e;for(e in d){var f=d[e],g=parseInt(e,10);c+=(null!=f.bb?f.bb:1)*(null!=(g in b.D?b.D[g]:null)?g in b.D?b.D[g]:0:g in b.X?b.X[g]:0)}d=0;0<b.N&&(d=a.c.H.length/a.c.la.length*b.slidesWeight());a=vc(Ra(b.D))+vc(Ra(b.X))+b.slidesWeight();return(c+d)/a}h.mb=function(){null!=this.ja&&Ed(this);var a=this.F.currentSession();Jd(this,a)};
function Jd(a,b){"normal"==a.V&&(a.ja=b,b.showTerminalSceneEvent().addHandler(a.Ra,a),b.onReplySelectedEvent().addHandler(a.Qa,a),b.scenario().id(),b.scenario().title(),b.completed()&&a.Ra())}function Ed(a){var b=a.ja;a.ja=null;b.showTerminalSceneEvent().removeHandler(a.Ra,a);b.onReplySelectedEvent().removeHandler(a.Qa,a)}
h.Ra=function(){var a=this.F.currentSession();x(a);var b=a.currentSceneState().scene();null!=b&&(null!=b.speech()&&0<b.speech().length||null!=b.message()&&0<b.message().text().length)&&this.Qa();if(a.scenario().settings().evaluationSettings().enabled()){b=Math.max(0,a.maxScore());var c=Math.max(0,a.userScore()),d=0<b-0?c/(b-0):1;b=new Kc("scenario",a.scenarioPassed(),b,c,d)}else b=new Kc("scenario",!0);c=this.o.view().playbackController().currentSlideIndex();this.c.G[c+""]=b;a.duration();a.scenario().settings().evaluationSettings().enabled()&&
(a.maxScore(),a.userScore(),a.scenarioPassed());a.scenario().id();a.scenario().title();Kd(this)};h.Qa=function(a){var b=this.F.currentSession();x(b);var c=b.currentSceneState().scene();null!=c&&(a=(new oc(b,c,"1.2"==this.Ca,a)).create(),Ua(a,function(a){if("tincan"==this.Ca||a.type()==Q){var c="/scenarios/"+b.scenario().id();a.id();a.type();this.i.ua(c,a)}},this))};
function Id(a,b){if("normal"==a.V){b.sessionModeChangedEvent().addHandler(a.sb,a);var c=b.slidePoolState();c=l(c.questions());for(var d=c.next();!d.done;d=c.next())d.value.submittedEvent().addHandler(a.rb,a);a.v.id();b.quiz().title()}}function Dd(a,b){b.sessionModeChangedEvent().removeHandler(a.sb,a);b=b.slidePoolState();b=l(b.questions());for(var c=b.next();!c.done;c=b.next())c.value.submittedEvent().removeHandler(a.rb,a)}
h.lb=function(){var a=this.v.currentSession();this.Fa&&Dd(this,this.Fa);(this.Fa=a)&&Id(this,a)};
h.sb=function(a){if("testing"==a){a=this.v.currentSession();x(a);var b;if(b=a.evaluation()){var c=b.maxScore(),d=b.awardedScore(),e=b.awardedPercent()/100;b=new Kc("quiz",b.quizPassed(),c,d,e)}else b=new Kc("quiz",!0);c=this.o.view().playbackController().currentSlideIndex();this.c.G[c+""]=b;a.quizDuration();if(b=a.evaluation())b.maxScore(),b.awardedScore(),b.quizPassed(),b=this.v.currentSession(),x(b),(new Jc(this.i,b)).Wa.settings();this.v.id();a.quiz().title();Kd(this)}};
h.rb=function(a){var b=this.v.currentSession();x(b);if(a.initiated()){b=this.o.view().playbackController().currentSlideIndex()+1;var c=a.slide().type(),d=this.Ca;if(a=(new yd[c]({dc:"1.2"==d||"aicc"==d,gc:"tincan"==d,slideIndex:b})).create(a))b="/quizzes/"+this.v.id(),a.id(),this.i.ua(b,a)}};h.kb=function(a){x(this.I);a.preventAction();this.Bb()};h.Sa=function(){x(this.I);this.P.Rb&&alert(this.P.message());this.P.Ia&&Bd(this,!1)};
h.qb=function(a){x(this.I);a.actionPrevented()||(a.preventAction(),Cd(this))};function Od(){}h=Od.prototype;h.j=null;h.Cb=function(){throw Error("unimplemented abstract method");};h.eb=function(a){this.j.eb(a)};h.T=function(a,b){if(this.j=this.Cb()){var c=this.j;c.C?a():null!=c.l?(c.C=c.l.T(),c.C?a():b()):(c.C=!1,b())}else b()};h.$=function(){this.j.$()};h.suspend=function(){this.j.terminate(!0);Fc();Ac()};h.terminate=function(){this.j.terminate(!1);Fc();Ac()};h.xa=function(){return"normal"};h.fb=function(a,b){this.j.cb(a);this.j.fb(a,b)};
h.aa=function(a,b,c,d){this.j.aa(d,b,c,a)};h.ua=function(a,b){this.j.ua(b)};var Z={id:"id",type:"type",score:"weighting",Xb:"correct_responses.%INDEX%.pattern",gb:"learner_response",description:"description",result:"result",duration:"latency",hb:"timestamp"};function Pd(a,b,c){this.ba=a;this.Ha=b;this.Ta=!1;this.Ea=0;this.B=c}h=Pd.prototype;h.T=function(){try{return"true"==this.ba.Initialize("")}catch(a){}return!1};h.terminate=function(a){this.b("cmi.exit",a?this.Ta?"":"suspend":"normal");this.b("adl.nav.request","exitAll");this.$();try{return"true"==this.ba.Terminate("")}catch(b){}return!1};h.$=function(){0==this.Ea&&this.b("cmi.exit",this.B?this.Ta?"":"suspend":"normal");try{var a="true"==this.ba.Commit("");this.Ea+=1;return a}catch(b){}return!1};
h.S=function(a){try{return this.ba.GetValue(a)}catch(b){}return""};h.b=function(a,b){if("number"==typeof b){var c;(c=p(c)?c:!0)?b=parseFloat(b.toFixed(7))+"":(c=Math.pow(10,7),b=Math.floor(b*c)/c+"");b+=""}try{return"true"==this.ba.SetValue(a,b)}catch(d){}return!1};h.cb=function(a){this.Ta=a};r("Tincan.MobileHttpTransport.onRequestComplete",function(a,b,c){var d=null.Ib[a];if(null==d)return"";delete null.Ib[a];Vb(function(){if(b)d.onload(c);else d.onerror()},10);return"ok"},void 0);function Hd(a){return new Gc(a.S("cmi.learner_id"),a.S("cmi.learner_name"))};function Qd(a,b){var c=xc();this.l=c?new Pd(c,a,b):null;this.C=!1}h=Qd.prototype;h.T=function(){return this.C?!0:this.C=null!=this.l?this.l.T():!1};h.terminate=function(a){return null!=this.l?this.l.terminate(a):!1};h.$=function(){return null!=this.l?this.l.$():!1};h.S=function(a){return null!=this.l?this.l.S(a):""};h.b=function(a,b){return null!=this.l?this.l.b(a,b):!1};
h.aa=function(a,b,c,d){null!=d||(d=0);this.b("cmi.score.raw",a);this.b("cmi.score.min",b);this.b("cmi.score.max",c);this.b("cmi.score.scaled",d)};h.eb=function(a){this.b("cmi.progress_measure",a)};h.xa=function(){return null!=this.l?this.l.S("cmi.mode"):"normal"};h.fb=function(a,b){this.b("cmi.success_status",null===a?"unknown":a?"passed":"failed");this.b("cmi.completion_status",null===b?"unknown":b?"completed":"incomplete")};h.cb=function(a){this.l.cb(a)};
h.ua=function(a){var b=parseInt(this.S("cmi.interactions._count"),10);if(!(0>b)){b="cmi.interactions."+b+".";this.b(b+Z.id,a.id());this.b(b+Z.type,a.type());this.b(b+Z.score,a.score());for(var c=a.u||[],d=0;d<c.length;++d){var e=Z.Xb.replace("%INDEX%",d);this.b(b+e,c[d])}c=a.gb();null!=c&&this.b(b+Z.gb,c);this.b(b+Z.result,a.result());this.b(b+Z.description,a.description());c=a.duration();null===c||this.b(b+Z.duration,yc(c/1E3));a=a.hb();null!==a&&("number"==typeof a&&(a=new Date(a)),this.b(b+Z.hb,
a.getUTCFullYear()+"-"+zc(a.getUTCMonth()+1)+"-"+zc(a.getUTCDate())+"T"+zc(a.getUTCHours())+":"+zc(a.getUTCMinutes())+":"+zc(a.getUTCSeconds())+".0Z"))}};function Rd(a){this.Ha=a.Db||"2";this.B=a.B}sa(Rd,Od);r("iSpring.LMSAPI.Scorm2004Api",Rd,void 0);Rd.prototype.Cb=function(){return new Qd(this.Ha,this.B)};Rd.prototype.xa=function(){return this.j.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}
