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