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