(function(){var g=void 0,i=!0,k=null,l=!1;function m(a){return function(){return this[a]}}var n,p=this;function q(a,c,b){a=a.split(".");b=b||p;!(a[0]in b)&&b.execScript&&b.execScript("var "+a[0]);for(var d;a.length&&(d=a.shift());)!a.length&&r(c)?b[d]=c:b=b[d]?b[d]:b[d]={}}
function aa(a){var c=typeof a;if("object"==c)if(a){if(a instanceof Array)return"array";if(a instanceof Object)return c;var b=Object.prototype.toString.call(a);if("[object Window]"==b)return"object";if("[object Array]"==b||"number"==typeof a.length&&"undefined"!=typeof a.splice&&"undefined"!=typeof a.propertyIsEnumerable&&!a.propertyIsEnumerable("splice"))return"array";if("[object Function]"==b||"undefined"!=typeof a.call&&"undefined"!=typeof a.propertyIsEnumerable&&!a.propertyIsEnumerable("call"))return"function"}else return"null";
else if("function"==c&&"undefined"==typeof a.call)return"object";return c}function r(a){return a!==g}var ba="closure_uid_"+(1E9*Math.random()>>>0),ca=0;function da(a,c,b){return a.call.apply(a.bind,arguments)}function ea(a,c,b){if(!a)throw Error();if(2<arguments.length){var d=Array.prototype.slice.call(arguments,2);return function(){var b=Array.prototype.slice.call(arguments);Array.prototype.unshift.apply(b,d);return a.apply(c,b)}}return function(){return a.apply(c,arguments)}}
function t(a,c,b){t=Function.prototype.bind&&-1!=Function.prototype.bind.toString().indexOf("native code")?da:ea;return t.apply(k,arguments)}var fa=Date.now||function(){return+new Date};function u(a,c){function b(){}b.prototype=c.prototype;a.b=c.prototype;a.prototype=new b};function ga(a,c,b,d,e){this.hc=a;this.Pa=c;this.Wa=b;this.lc=d;this.kc=e}ga.prototype.login=m("Pa");ga.prototype.password=m("Wa");function ha(a){this.Ua=a};function ia(a){return a.replace(/^[\s\xa0]+|[\s\xa0]+$/g,"")};var v=Array.prototype,ja=v.indexOf?function(a,c,b){return v.indexOf.call(a,c,b)}:function(a,c,b){b=b==k?0:0>b?Math.max(0,a.length+b):b;if("string"==typeof a)return"string"!=typeof c||1!=c.length?-1:a.indexOf(c,b);for(;b<a.length;b++)if(b in a&&a[b]===c)return b;return-1};
function ka(a,c){for(var b=1;b<arguments.length;b++){var d=arguments[b],e,f;if(!(f="array"==aa(d)))e=d,f=aa(e),f=(e="array"==f||"object"==f&&"number"==typeof e.length)&&Object.prototype.hasOwnProperty.call(d,"callee");if(f)a.push.apply(a,d);else if(e){f=a.length;for(var h=d.length,j=0;j<h;j++)a[f+j]=d[j]}else a.push(d)}}function la(a,c,b,d){v.splice.apply(a,ma(arguments,1))}function ma(a,c,b){return 2>=arguments.length?v.slice.call(a,c):v.slice.call(a,c,b)};function na(a){this.sa=a}na.prototype.cb=function(a,c,b){b=this.sa.hasOwnProperty(a)?this.sa[a]:b;if(r(b)){if(r(c)){a=this.Na;for(var d in c)if(c.hasOwnProperty(d)){var e=c[d];a&&(d=a(d));b=b.replace(RegExp(d,"g"),e)}}return b}return""};na.prototype.getMessage=na.prototype.cb;na.prototype.Na=function(a){return"%"+a.toUpperCase()+"%"};function oa(a,c,b,d,e,f){this.Xa=a;this.ca=c;this.Oa=new na(b);this.fc=d;this.jc=e;this.ic=f}oa.prototype.presentationId=m("Xa");oa.prototype.i18n=m("Oa");var w={Ab:"initializing",Cb:"inProgress",Xb:"reviewing",mb:"completed",jb:"authorizating"};q("ispring.quiz.session.QuizState",w,g);q("INITIALIZING","initializing",w);q("IN_PROGRESS","inProgress",w);q("REVIEWING","reviewing",w);q("COMPLETED","completed",w);q("AUTHORIZATING","authorizating",w);var pa={Tb:"prompt",ib:"always",Mb:"never"};q("ispring.presenter.presentation.settings.PresentationResumeMode",pa,g);q("PROMPT_TO_RESUME","prompt",pa);q("ALWAYS_RESUME","always",pa);q("NEVER_RESUME","never",pa);var x,qa,ra,sa;function ta(){return p.navigator?p.navigator.userAgent:k}sa=ra=qa=x=l;var ua;if(ua=ta()){var va=p.navigator;x=0==ua.lastIndexOf("Opera",0);qa=!x&&(-1!=ua.indexOf("MSIE")||-1!=ua.indexOf("Trident"));ra=!x&&-1!=ua.indexOf("WebKit");sa=!x&&!ra&&!qa&&"Gecko"==va.product}var wa=x,A=qa,xa=sa,ya=ra;function za(){var a=p.document;return a?a.documentMode:g}var Aa;
a:{var Ba="",Ca;if(wa&&p.opera)var Da=p.opera.version,Ba="function"==typeof Da?Da():Da;else if(xa?Ca=/rv\:([^\);]+)(\)|;)/:A?Ca=/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/:ya&&(Ca=/WebKit\/(\S+)/),Ca)var Ea=Ca.exec(ta()),Ba=Ea?Ea[1]:"";if(A){var Fa=za();if(Fa>parseFloat(Ba)){Aa=String(Fa);break a}}Aa=Ba}var Ga={};
function B(a){var c;if(!(c=Ga[a])){c=0;for(var b=ia(String(Aa)).split("."),d=ia(String(a)).split("."),e=Math.max(b.length,d.length),f=0;0==c&&f<e;f++){var h=b[f]||"",j=d[f]||"",s=RegExp("(\\d*)(\\D*)","g"),C=RegExp("(\\d*)(\\D*)","g");do{var y=s.exec(h)||["","",""],z=C.exec(j)||["","",""];if(0==y[0].length&&0==z[0].length)break;c=((0==y[1].length?0:parseInt(y[1],10))<(0==z[1].length?0:parseInt(z[1],10))?-1:(0==y[1].length?0:parseInt(y[1],10))>(0==z[1].length?0:parseInt(z[1],10))?1:0)||((0==y[2].length)<
(0==z[2].length)?-1:(0==y[2].length)>(0==z[2].length)?1:0)||(y[2]<z[2]?-1:y[2]>z[2]?1:0)}while(0==c)}c=Ga[a]=0<=c}return c}var Ha=p.document,Ia=!Ha||!A?g:za()||("CSS1Compat"==Ha.compatMode?parseInt(Aa,10):5);function D(a,c){this.width=a;this.height=c}D.prototype.floor=function(){this.width=Math.floor(this.width);this.height=Math.floor(this.height);return this};D.prototype.scale=function(a,c){this.width*=a;this.height*="number"==typeof c?c:a;return this};function Ja(a){var c=0,b;for(b in a)c++;return c};!xa&&!A||A&&A&&9<=Ia||xa&&B("1.9.1");A&&B("9");function Ka(){var a=window.location.search.substr(1);if(!a)return{};for(var c={},a=a.split("&"),b=0;b<a.length;++b){var d=a[b].split("=");if(2==d.length){var e=decodeURIComponent(d[0].replace(/\+/g," ")),d=decodeURIComponent(d[1].replace(/\+/g," ")),e=e.toLowerCase();c[e]=d}}return c};var La;La=l;var Ma=ta();Ma&&-1!=Ma.indexOf("Firefox")&&(La=i);var Na=La;var Oa=Ka().user_agent||ta()||"",Pa=Ka().small_screen,Qa=-1!=Oa.toLowerCase().indexOf("chrome"),Ra=-1!=Oa.toLowerCase().indexOf("android"),Sa,Ta=Oa.toLowerCase();Sa=-1!=Ta.indexOf("android")||-1!=Ta.indexOf("mobile")||-1!=Ta.indexOf("touch")||Pa;var Ua=Ra&&!Qa&&!Na&&!wa,Va=-1!=Oa.indexOf("ismobile");
if(!Pa){var Wa=Pa?new D(document.documentElement.clientWidth,document.documentElement.clientHeight):r(screen.gb)&&r(screen.hb)?new D(160*screen.width/screen.gb,160*screen.height/screen.hb):Ua||Ra&&Va?new D(screen.width/window.devicePixelRatio,screen.height/window.devicePixelRatio):!Sa&&Na||A?new D(screen.width*window.devicePixelRatio,screen.height*window.devicePixelRatio):new D(screen.width,screen.height);Math.min(Wa.width,Wa.height)};function Xa(a,c,b,d,e){this.s=a;this.Za=c;this.ab=d;this.Va=e;this.A={};for(a=0;a<b.length;++a)c=b[a],d=c[1],this.A[c[0]]=d,0<d&&++this.N}n=Xa.prototype;n.N=0;n.slidesWeight=function(){return 0<this.s?this.Za:0};n.slidesToView=m("s");n.totalScore=m("ab");n.passingScore=m("Va");A&&B("9");!ya||B("528");xa&&B("1.9b")||A&&B("8")||wa&&B("9.5")||ya&&B("528");xa&&!B("8")||A&&B("9");function Ya(){this.Aa=[];this.o=[]}Ya.prototype.push=function(a,c){if(!(c in this.o)){this.o[c]=[];var b=this.Aa,d;d=0;for(var e=b.length,f;d<e;){var h=d+e>>1,j;j=c>b[h]?1:c<b[h]?-1:0;0<j?d=h+1:(e=h,f=!j)}d=f?d:~d;0>d&&la(b,-(d+1),0,c)}this.o[c].push(a)};function E(){this.D=new Ya}E.prototype.addHandler=function(a,c,b){this.D.push({Ka:a,Ia:c},b||0)};E.prototype.addHandler=E.prototype.addHandler;E.prototype.removeHandler=function(a,c,b){b=b||0;var d=b in this.D.o?this.D.o[b]:[],e=d.length,f=0;for(;f<e;++f){var h=d[f];if(h.Ka==a&&h.Ia==c){a=this.D;b in a.o&&v.splice.call(a.o[b],f,1);break}}};E.prototype.removeHandler=E.prototype.removeHandler;
E.prototype.Ja=function(a){var c,b=this.D;c=[];for(var d=b.o,b=b.Aa,e=0;e<b.length;++e)ka(c,d[b[e]]);d=c.length;for(b=0;b<d;++b)e=c[b],e.Ka.apply(e.Ia,arguments)};E.prototype.dispatch=E.prototype.Ja;function F(a){this.length=a.length||a;for(var c=0;c<this.length;c++)this[c]=a[c]||0}F.prototype.BYTES_PER_ELEMENT=8;F.prototype.set=function(a,c){c=c||0;for(var b=0;b<a.length&&c+b<this.length;b++)this[c+b]=a[b]};F.prototype.toString=Array.prototype.join;if("undefined"==typeof Float64Array){try{F.BYTES_PER_ELEMENT=8}catch(Za){}F.prototype.BYTES_PER_ELEMENT=F.prototype.BYTES_PER_ELEMENT;F.prototype.set=F.prototype.set;F.prototype.toString=F.prototype.toString;q("Float64Array",F,g)};function G(a){this.length=a.length||a;for(var c=0;c<this.length;c++)this[c]=a[c]||0}G.prototype.BYTES_PER_ELEMENT=4;G.prototype.set=function(a,c){c=c||0;for(var b=0;b<a.length&&c+b<this.length;b++)this[c+b]=a[b]};G.prototype.toString=Array.prototype.join;"undefined"==typeof Float32Array&&(G.BYTES_PER_ELEMENT=4,G.prototype.BYTES_PER_ELEMENT=G.prototype.BYTES_PER_ELEMENT,G.prototype.set=G.prototype.set,G.prototype.toString=G.prototype.toString,q("Float32Array",G,g));new Float64Array(3);new Float64Array(3);new Float64Array(4);new Float64Array(4);new Float64Array(4);new Float64Array(16);function H(a,c){this.F=a;this.O=c}H.prototype.id=m("F");H.prototype.description=m("O");function I(){this.v=[]}I.prototype.count=function(){return this.v.length};function J(a,c){a.v.push(c)}I.prototype.getChoice=function(a){if(0>a||a>=this.count())throw Error("Index out of bounds");return this.v[a]};function K(){this.v=new I}K.prototype.choices=m("v");function $a(a,c,b,d){for(var e=d?",":"[,]",f=d?".":"[.]",h=[],j=0;j<a.count();++j){var s=a.getMatch(j),C=s.premise(),s=s.response(),y=c.getChoiceIndex(C),z=b.getChoiceIndex(s),C=d?ab(y,i):y+"_"+C.textRange().text(),s=d?ab(z,l):z+"_"+s.textRange().text(),C=L(C)+f+L(s);h.push(C)}return h.join(e)}function bb(a,c,b){for(var d=b?",":"[,]",e=[],f=0;f<c.count();++f){var h=c.getChoice(f),j=h.textRange().text(),h=a.getChoiceIndex(h);e.push(L(b?ab(h,i):h+"_"+j))}return e.join(d)}
function L(a){a=ia(a);return a=a.replace(/[^\w-]/g,"_")}function ab(a,c){a=c?a:36-a-1;return 0<=a&&36>a?"0123456789abcdefghijklmnopqrstuvwxyz"[a]:"0"};function cb(a){this.F=a}n=cb.prototype;n.O="";n.f=k;n.d=k;n.da="unanticipated";n.Ba=0;n.na=k;n.q=k;n.Ga=k;n.m=k;n.id=m("F");n.type=m("e");n.description=m("O");n.L=m("f");n.ha=m("d");n.result=m("da");n.score=m("Ba");n.la=function(a){this.Ba=a};n.awardedScore=m("na");n.duration=m("q");n.ka=function(a){this.q=a};n.ma=m("Ga");function db(){}db.prototype.create=function(a){if(!a.submitted())return k;var c=a.slide().id(),c=new cb(L(c));this.a(c,a);return c};db.prototype.a=function(a,c){var b=c.slide().description().text();a.O=b;c.visited()&&(a.ka(c.viewDuration()),b=c.firstVisitTime(),a.Ga=b)};function eb(a){return L(a)};function M(){}u(M,db);M.prototype.a=function(a,c){M.b.a.call(this,a,c);a.da="neutral"};function N(a){this.k=a}u(N,M);N.prototype.k=l;N.prototype.a=function(a,c){N.b.a.call(this,a,c);a.e="sequencing";var b=c.slide().items(),d=bb(b,c.items(),this.k);a.f=d;a.d=[d];b=this.h(b);a.m=b};N.prototype.h=function(a){for(var c=new K,b=0;b<a.count();++b){var d=a.getChoice(b).textRange().text();J(c.choices(),new H(L(b+"_"+d),d))}return c};var O={$b:"slidePool",kb:"authorizationForm",zb:"informationSlide",Bb:"introSlide",Vb:"resultSlide",xb:"hotspotQuestion",Fb:"likertScaleQuestion",dc:"wordBankQuestion",rb:"essayQuestion",bc:"typeInQuestion",Zb:"shortAnswerQuestion",sb:"fillInTheBlankQuestion",tb:"fillInTheBlankSurveyQuestion",Ob:"numericQuestion",Pb:"numericSurveyQuestion",Yb:"sequenceQuestion",Ub:"rankingQuestion",cc:"whichWordQuestion",Jb:"multipleChoiceTextQuestion",Kb:"multipleChoiceTextSurveyQuestion",Ib:"multipleChoiceQuestion",
Lb:"multipleResponseQuestion",Sb:"pickOneQuestion",Rb:"pickManyQuestion",ac:"trueFalseQuestion",ec:"yesNoQuestion",Gb:"matchingQuestion",Hb:"matchingSurveyQuestion"};q("ispring.quiz.slides.SlideType",O,g);function fb(a){return"slidePool"!=a&&"informationSlide"!=a&&"introSlide"!=a&&"resultSlide"!=a}q("SLIDE_POOL","slidePool",O);q("INFORMATION_SLIDE","informationSlide",O);q("INTRO_SLIDE","introSlide",O);q("HOTSPOT_QUESTION","hotspotQuestion",O);q("LIKERT_SCALE_QUESTION","likertScaleQuestion",O);
q("WORD_BANK_QUESTION","wordBankQuestion",O);q("RESULT_SLIDE","resultSlide",O);q("ESSAY_QUESTION","essayQuestion",O);q("TYPE_IN_QUESTION","typeInQuestion",O);q("SHORT_ANSWER_QUESTION","shortAnswerQuestion",O);q("FILL_IN_THE_BLANK_QUESTION","fillInTheBlankQuestion",O);q("FILL_IN_THE_BLANK_SURVEY_QUESTION","fillInTheBlankSurveyQuestion",O);q("NUMERIC_QUESTION","numericQuestion",O);q("NUMERIC_SURVEY_QUESTION","numericSurveyQuestion",O);q("SEQUENCE_QUESTION","sequenceQuestion",O);
q("RANKING_QUESTION","rankingQuestion",O);q("WHICH_WORD_QUESTION","whichWordQuestion",O);q("MULTIPLE_CHOICE_TEXT_QUESTION","multipleChoiceTextQuestion",O);q("MULTIPLE_CHOICE_TEXT_SURVEY_QUESTION","multipleChoiceTextSurveyQuestion",O);q("MULTIPLE_CHOICE_QUESTION","multipleChoiceQuestion",O);q("MULTIPLE_RESPONSE_QUESTION","multipleResponseQuestion",O);q("PICK_ONE_QUESTION","pickOneQuestion",O);q("PICK_MANY_QUESTION","pickManyQuestion",O);q("TRUE_FALSE_QUESTION","trueFalseQuestion",O);
q("YES_NO_QUESTION","yesNoQuestion",O);q("MATCHING_QUESTION","matchingQuestion",O);q("MATCHING_SURVEY_QUESTION","matchingSurveyQuestion",O);var gb={nb:"correct",Qb:"partiallyCorrect",yb:"incorrect",Nb:"notAnswered"};q("ispring.quiz.session.slides.questions.graded.review.GradedQuestionStatus",gb,g);q("CORRECT","correct",gb);q("PARTIALLY_CORRECT","partiallyCorrect",gb);q("INCORRECT","incorrect",gb);q("NOT_ANSWERED","notAnswered",gb);function P(){}u(P,db);P.prototype.a=function(a,c){P.b.a.call(this,a,c);var b=c.slide();a.la(b.maxScore());if(b=c.review()){var d=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.da=d}};var Q={qb:"equals",pb:"differs",vb:"greaterThan",Db:"lessThan",wb:"greaterThanOrEquals",Eb:"lessThanOrEquals",lb:"between"};q("ispring.quiz.slides.questions.graded.answers.numeric.ComparisonOperation",Q,g);q("EQUALS","equals",Q);q("DIFFERS","differs",Q);q("GREATER_THAN","greaterThan",Q);q("LESS_THAN","lessThan",Q);q("GREATER_THAN_OR_EQUALS","greaterThanOrEquals",Q);q("LESS_THAN_OR_EQUALS","lessThanOrEquals",Q);q("BETWEEN","between",Q);function hb(){}u(hb,P);hb.prototype.a=function(a,c){hb.b.a.call(this,a,c);a.e="fill-in";var b=c.slide(),d=c.initiated()?c.getAnswer().toString():"",b=this.n(b.answers());a.f=d;a.d=[b]};
hb.prototype.n=function(a){for(var c=[],b=0;b<a.count();++b){var d="",e=a.getAnswer(b),f=e.comparisonOperation();if("between"==f)d=e,d="between "+d.leftOperand()+" and "+d.rightOperand();else switch(f){case "differs":d="not equal to "+e.operand();break;case "equals":d="equal to "+e.operand();break;case "greaterThan":d="greater than "+e.operand();break;case "greaterThanOrEquals":d="greater than or equal to "+e.operand();break;case "lessThan":d="less than "+e.operand();break;case "lessThanOrEquals":d=
"less than or equal to "+e.operand()}c.push(d)}return c.join("[,]")};function ib(){}u(ib,M);ib.prototype.a=function(a,c){ib.b.a.call(this,a,c);a.e="other";var b=this.$(c.blanks());a.f=b;a.d=[b]};ib.prototype.$=function(a){for(var c=[],b=0;b<a.count();++b)c.push(a.getSection(b).answer());return c.join("[,]")};function R(a){this.k=a}u(R,P);R.prototype.k=l;R.prototype.a=function(a,c){R.b.a.call(this,a,c);a.e="sequencing";var b=c.slide().items(),d=bb(b,c.items(),this.k),e=bb(b,b,this.k);a.f=d;a.d=[e];b=this.h(b);a.m=b};R.prototype.h=function(a){for(var c=new K,b=0;b<a.count();++b){var d=a.getChoice(b).textRange().text();J(c.choices(),new H(L(b+"_"+d),d))}return c};function jb(){}u(jb,P);jb.prototype.a=function(a,c){jb.b.a.call(this,a,c);a.e="other";for(var b=[],d=[],e=c.placeholders(),f=0;f<e.count();++f){var h=e.getSection(f),j=h.answer();j&&(b.push(j.textRange().text()),h=h.section().answers(),d.push(h.getChoice(0).textRange().text()))}d=d.join("[,]");a.f=b.join("[,]");a.d=[d]};function kb(){}u(kb,M);kb.prototype.a=function(a,c){kb.b.a.call(this,a,c);a.e="fill-in";var b=c.initiated()?c.answer().toString():"";a.f=b;a.d=[b]};function lb(){this.v=new I;this.oa=[]}u(lb,K);function S(){}u(S,M);S.prototype.a=function(a,c){S.b.a.call(this,a,c);a.e="choice";var b=c.slide().choices(),d=c.choices(),e=this.Z(b,d);a.f=e;a.d=[e];b=this.h(b,d);a.m=b};
S.prototype.h=function(a,c){for(var b=new lb,d=0;d<a.count();++d){var e=a.getChoice(d),f;a:{f=e;for(var h=0;h<c.count();++h){var j=c.getChoiceState(h);if(j.choice()===f){f=j;break a}}throw Error("can't find choice state");}h=e.textRange().text();h=new H(this.B(f,d),h);J(b.choices(),h);e=e.customAnswerEnabled()?f.customAnswer():"";b.oa[d]=e}return b};
S.prototype.Z=function(a,c){for(var b=[],d=0;d<c.count();++d){var e=c.getChoiceState(d);if(e.selected()){var f=a.getChoiceIndex(e.choice()),e=this.B(e,f);b.push(e)}}return b.join("[,]")};S.prototype.B=function(a,c){var b=a.customizableChoice(),d=b.textRange().text(),d=c+"_"+d;b.customAnswerEnabled()&&(b=a.customAnswer(),d+=b?"_"+b:"");return L(d)};function mb(){this.Ca=new I;this.Ea=new I};function nb(a){this.k=a}u(nb,M);nb.prototype.a=function(a,c){nb.b.a.call(this,a,c);a.e="matching";var b=c.slide(),d=$a(c.matches(),b.premises(),b.responses(),this.k);a.f=d;a.d=[d];b=this.W(b);a.m=b};nb.prototype.W=function(a){var c=new mb,b=a.premises();a=a.responses();for(var d=0;d<b.count();++d){var e=b.getChoice(d).textRange().text(),f=a.getChoice(d).textRange().text();J(c.Ca,new H(L(d+"_"+e),e));J(c.Ea,new H(L(d+"_"+f),f))}return c};function T(){}u(T,P);T.prototype.a=function(a,c){T.b.a.call(this,a,c);a.e="choice";var b=c.slide().responses(),d=this.C(b,c.responses()),e=this.n(b);a.f=d;a.d=[e];b=this.h(b);a.m=b};T.prototype.h=function(a){for(var c=new K,b=0;b<a.count();++b){var d=a.getGradedChoice(b).textRange().text();J(c.choices(),new H(L(b+"_"+d),d))}return c};
T.prototype.C=function(a,c){for(var b=[],d=0;d<c.count();++d){var e=c.getChoiceState(d),f=e.gradedChoice(),h=f.textRange().text();e.selected()&&b.push(eb(a.getChoiceIndex(f)+"_"+h))}return b.join("[,]")};T.prototype.n=function(a){for(var c=[],b=0;b<a.count();++b){var d=a.getGradedChoice(b);d.correct()&&c.push(eb(b+"_"+d.textRange().text()))}return c.join("[,]")};function ob(){}u(ob,P);ob.prototype.a=function(a,c){ob.b.a.call(this,a,c);a.e="other";for(var b=[],d=[],e=c.choices(),f=0;f<e.count();++f){var h=e.getSection(f),j=h.choices(),h=h.section().choices();this.V(j,b);for(var j=h,h=d,s=0;s<j.count();++s){var C=j.getGradedChoice(s);C.correct()&&h.push(C.textRange().text())}}a.f=b.join("[,]");a.d=[d.join("[,]")]};
ob.prototype.V=function(a,c){for(var b=0;b<a.count();++b){var d=a.getChoiceState(b);if(d.selected()){c.push(d.gradedChoice().textRange().text());break}}};function U(){}u(U,P);U.prototype.a=function(a,c){U.b.a.call(this,a,c);a.e="choice";var b=c.slide().choices(),d=this.C(b,c.choices()),e=this.n(b);a.f=d;a.d=[e];b=this.h(b);a.m=b};U.prototype.h=function(a){for(var c=new K,b=0;b<a.count();++b){var d=a.getGradedChoice(b).textRange().text();J(c.choices(),new H(L(b+"_"+d),d))}return c};
U.prototype.C=function(a,c){for(var b="",d=0;d<c.count();++d){var e=c.getChoiceState(d);if(e.selected()){b=a.getChoiceIndex(e.gradedChoice())+"_"+e.gradedChoice().textRange().text();break}}return L(b)};U.prototype.n=function(a){for(var c="",b=0;b<a.count();++b){var d=a.getGradedChoice(b);if(d.correct()){c=b+"_"+d.textRange().text();break}}return L(c)};function pb(){}u(pb,M);pb.prototype.a=function(a,c){pb.b.a.call(this,a,c);a.e="other";var b=c.answer();a.f=b;b=[c.answer()];a.d=b};function V(){}u(V,M);V.prototype.a=function(a,c){V.b.a.call(this,a,c);a.e="choice";var b=c.slide().choices(),d=c.choices(),e=this.Z(b,d);a.f=e;a.d=[e];b=this.h(b,d);a.m=b};
V.prototype.h=function(a,c){for(var b=new lb,d=0;d<a.count();++d){var e=a.getChoice(d),f;a:{f=e;for(var h=0;h<c.count();++h){var j=c.getChoiceState(h);if(j.choice()===f){f=j;break a}}throw Error("can't find choice state");}h=e.textRange().text();h=new H(this.B(f,d),h);J(b.choices(),h);e=e.customAnswerEnabled()?f.customAnswer():"";b.oa[d]=e}return b};V.prototype.Z=function(a,c){for(var b=0;b<c.count();++b){var d=c.getChoiceState(b);if(d.selected())return b=a.getChoiceIndex(d.choice()),this.B(d,b)}return L("")};
V.prototype.B=function(a,c){var b=a.customizableChoice(),d=b.textRange().text(),d=c+"_"+d;b.customAnswerEnabled()&&(b=a.customAnswer(),d+=b?"_"+b:"");return L(d)};function qb(){}u(qb,V);function rb(){}u(rb,P);rb.prototype.a=function(a,c){rb.b.a.call(this,a,c);a.e="other";var b=c.slide(),b=this.n(b.answers()),d=c.answer();a.f=d;a.d=[b]};rb.prototype.n=function(a){for(var c=[],b=0;b<a.count();++b){var d=a.getAnswer(b);c.push(d.text())}return c.join("[,]")};function sb(){}u(sb,M);sb.prototype.a=function(a,c){sb.b.a.call(this,a,c);a.e="other";for(var b=[],d=c.choices(),e=0;e<d.count();++e)this.V(d.getSection(e).choices(),b);b=b.join("[,]");a.f=b;a.d=[b]};sb.prototype.V=function(a,c){for(var b=0;b<a.count();++b){var d=a.getChoiceState(b);if(d.selected()){c.push(d.choice().textRange().text());break}}};function tb(){}u(tb,P);tb.prototype.a=function(a,c){tb.b.a.call(this,a,c);a.e="other";var b=this.$(c.blanks());a.f=b.L;a.d=[b.ha]};tb.prototype.$=function(a){for(var c=[],b=[],d=0;d<a.count();++d){var e=[],f=a.getSection(d),h=f.section().answers();c.push(f.answer());for(f=0;f<h.count();++f)e.push(h.getAnswer(f).text());b.push(e.join("[,]"))}return{L:c.join("[,]"),ha:b.join("[.]")}};function W(){}u(W,P);W.prototype.a=function(a,c){W.b.a.call(this,a,c);a.e="other";var b=c.slide(),d=this.C(c.points()),b=this.n(b.hotAreas());a.f=d;a.d=[b]};W.prototype.C=function(a){for(var c=[],b=0;b<a.count();++b){var d=a.getPoint(b);c.push(d.x()+"_"+d.y())}return c.join("[,]")};W.prototype.n=function(a){for(var c=[],b=0;b<a.count();++b){var d=a.getHotArea(b);c.push(d.type()+"_"+d.left()+"_"+d.top()+"_"+d.width()+"_"+d.height())}return c.join("[,]")};function ub(){}u(ub,M);ub.prototype.a=function(a,c){ub.b.a.call(this,a,c);a.e="long-fill-in";var b=c.answer();a.f=b;b=[c.answer()];a.d=b};function X(a){this.k=a}u(X,P);X.prototype.k=l;X.prototype.a=function(a,c){X.b.a.call(this,a,c);a.e="matching";var b=c.slide(),d=$a(c.matches(),b.premises(),b.responses(),this.k),e=$a(b.matches(),b.premises(),b.responses(),this.k);a.f=d;a.d=[e];b=this.W(b);a.m=b};X.prototype.W=function(a){var c=new mb;a=a.matches();for(var b=0;b<a.count();++b){var d=a.getMatch(b),e=d.premise().textRange().text(),d=d.response().textRange().text();J(c.Ca,new H(L(b+"_"+e),e));J(c.Ea,new H(L(b+"_"+d),d))}return c};function vb(){}u(vb,M);vb.prototype.a=function(a,c){vb.b.a.call(this,a,c);a.e="other";for(var b=[],d=c.placeholders(),e=0;e<d.count();++e){var f=d.getSection(e).answer();f&&b.push(f.textRange().text())}b=b.join("[,]");a.f=b;a.d=[b]};function wb(){}u(wb,M);wb.prototype.a=function(a,c){wb.b.a.call(this,a,c);a.e="choice";for(var b=c.slide(),d=c.statements(),e=d.count(),f=[],b=b.statements(),h=0;h<e;++h){var j=d.getStatementState(h),s=j.scale(),j=j.statement();s&&f.push(eb(b.getChoiceIndex(j)+"_"+s.textRange().text()))}d=f.join("[,]");a.f=d;a.d=[d];d=this.h(b);a.m=d};wb.prototype.h=function(a){for(var c=new K,b=0;b<a.count();++b){var d=a.getChoice(b).textRange().text();J(c.choices(),new H(L(b+"_"+d),d))}return c};function xb(){}u(xb,U);function yb(a,c){var b="1.2"==c||"aicc"==c;switch(a){case "essayQuestion":return new ub;case "likertScaleQuestion":return new wb;case "hotspotQuestion":return new W;case "fillInTheBlankQuestion":return new tb;case "wordBankQuestion":return new jb;case "typeInQuestion":return new rb;case "fillInTheBlankSurveyQuestion":return new ib;case "shortAnswerQuestion":return new pb;case "whichWordQuestion":return new vb;case "numericQuestion":return new hb;case "multipleChoiceQuestion":return new U;case "multipleResponseQuestion":return new T;
case "numericSurveyQuestion":return new kb;case "multipleChoiceTextQuestion":return new ob;case "sequenceQuestion":return new R(b);case "multipleChoiceTextSurveyQuestion":return new sb;case "rankingQuestion":return new N(b);case "pickManyQuestion":return new S;case "matchingQuestion":return new X(b);case "matchingSurveyQuestion":return new nb(b);case "pickOneQuestion":return new V;case "trueFalseQuestion":return new xb;case "yesNoQuestion":return new qb}return k};var zb={Wb:"resumePlayback",ub:"gotoSlide",ob:"delayStartup"};q("ispring.presenter.player.startup.PresentationStartup.Action",zb,g);q("RESUME_PLAYBACK","resumePlayback",zb);q("GOTO_SLIDE","gotoSlide",zb);q("DELAY_STARTUP","delayStartup",zb);function Ab(a,c){this.fa=a;this.Da=c;this.Fa=new E}n=Ab.prototype;n.t=l;n.w=0;n.R=0;n.S=-1;n.T=0;n.X=0;n.start=function(a){if(!this.t&&(this.T=this.w=a||0,a=this.w>=this.fa,!a||!this.Da))this.t=i,this.R=fa(),a||(this.S=setTimeout(t(this.ba,this),this.fa-this.w))};n.ba=function(){this.Da&&(this.stop(),this.T=this.fa);this.Fa.Ja()};n.stop=function(){this.t&&(this.t=l,0<this.S&&(clearTimeout(this.S),this.S=-1),this.X=fa()-this.R,this.T=this.X+this.w)};function Bb(a,c,b){this.F=a;this.Ra=c;this.Ma=b}Bb.prototype.id=m("F");Bb.prototype.name=m("Ra");Bb.prototype.email=m("Ma");function Cb(a,c){var b=window.iSpring.LMSAPI;switch(a){case "1.2":return new b.Scorm12Api(c);case "2004":return new b.Scorm2004Api(c);case "aicc":return new b.AiccApi(c);case "tincan":return new b.TinCanApi(c);default:throw Error("unknown api");}};function Db(){function a(a){try{for(var c=0;255>c;++c){if(a.API)return a.API;var e=a.parent;if(!e||a==e)break;a=e}}catch(f){}return k}var c=window;return a(c)||c.opener&&a(c.opener)}function Eb(a){var c=Math.floor(a/3600),b=Math.floor(a%3600/60);a=Math.floor(a%60);return(10>c?"0"+c:c)+":"+(10>b?"0"+b:b)+":"+(10>a?"0"+a:a)}function Fb(){var a=document.getElementById("preloader");a&&a.parentNode.removeChild(a);try{Ua||(window.open("","_self",""),window.close())}catch(c){}};function Gb(a,c,b,d){this.$a=a;this.Y=c;this.Ya=b;this.Qa=d}Gb.prototype.timeLimit=m("$a");Gb.prototype.message=m("Qa");function Hb(a,c,b,d){this.eb=a;this.maxScore=r(c)?c:k;this.fb=r(b)?b:k;this.ja=r(d)?d:k}Hb.prototype.ia=function(){var a={};a[Ib]=this.eb;a[Jb]=this.maxScore;a[Kb]=this.fb;a[Lb]=this.ja;return a};var Ib="p",Jb="m",Kb="r",Lb="s";function Mb(){this.J=[];this.z={}}n=Mb.prototype;n.P=-1;n.q=0;n.Q=k;n.duration=m("q");n.ka=function(a){this.q=a};n.ia=function(){var a={};a[Nb]=this.q;a[Ob]=this.P;a[Pb]=this.J;a[Qb]=this.Q;var c={},b;for(b in this.z)c[b]=this.z[b].ia();a[Rb]=c;return a};var Ob="l",Pb="v",Nb="d",Qb="p",Rb="q";function Y(a,c,b){this.La=c;this.j=new Mb;this.H=new Xa(b.slidesToView,b.slidesWeight,b.quizzes||{},b.totalScore,b.passingScore);this.u=new Gb(1E3*b.timeLimit,b.exitOnTimeout,b.showMessageOnTimeout,b.timeoutMessage);this.l=new Ab(this.u.timeLimit(),this.u.Y);a=new ha(b.flags);var d=b.tincan.auth,e=d.type,f=d.login,h=d.password,j=d.name,d=d.email.match(/^\s*(.*@.*?)\s*$/);a=new oa(b.presentationId,a,b.tincan.i18n,b.scorm2004?b.scorm2004.edition:"",b.tincan.endPoint,new ga(e,f,h,j,d?d[1]:""));this.I=
"never"!=b.resumeMode;this.i=Cb(c,a);this.qa={}}n=Y.prototype;n.pa=l;n.G=k;n.M=l;n.g=k;n.r=k;n.ea=l;var Sb=n.p=k;q("iSpring.LMS.create",function(a,c,b){return Sb=new Y(0,c,b)},g);q("iSpring.LMS.instance",function(){return Sb},g);Y.prototype.K=function(a){this.G=a;this.i.K(t(this.Ta,this),t(this.Sa,this))};Y.prototype.initialize=Y.prototype.K;
Y.prototype.Ta=function(){var a=k,c,b=Tb(this.i.c,"cmi.suspend_data");if(b)a:{b=LZString.decompressFromUTF16(b);try{c=Ub(b);break a}catch(d){}c=k}else c=k;if(this.I&&c){a=new Mb;a.q=Nb in c?c[Nb]:0;a.P=Ob in c?c[Ob]:-1;a.J=Pb in c?c[Pb]:[];a.Q=Qb in c?c[Qb]:k;b={};c=Rb in c?c[Rb]:{};for(var e in c)b[e]=new Hb(c[e][Ib],c[e][Jb],c[e][Kb],c[e][Lb]);a.z=b;this.r=a;e=this.r.duration();if(this.u.Y&&e>=this.u.timeLimit()){alert("You have already exceeded available time for viewing this content.");Fb();return}a=
this.r.Q}this.pa=i;this.G&&this.G(a)};Y.prototype.Sa=function(){this.G&&this.G()};Y.prototype.start=function(a){this.pa&&(this.g=a,this.M=i,this.i.start(a),a.startupEvent().addHandler(this.va,this),a.startupCompletedEvent().addHandler(this.wa,this),a.closeWindowEvent().addHandler(this.ta,this))};Y.prototype.start=Y.prototype.start;
Y.prototype.va=function(a){this.g.startupEvent().removeHandler(this.va,this);var c=this.I&&this.r?this.r.P:-1;0<=c?(a.setSlideIndex(c),a.setAction("resumePlayback")):(c=this.g.view().playbackController().firstSlideIndex(),a.setSlideIndex(c),a.setAction("gotoSlide"))};
Y.prototype.wa=function(a,c){this.g.startupCompletedEvent().removeHandler(this.wa,this);this.ea=i;"resumePlayback"==a&&this.r&&(this.j=this.r);var b=this.j.duration();this.l.t||(this.l.Fa.addHandler(this.ba,this),this.l.start(b));b=this.g.view().playbackController();b.slideChangeEvent().addHandler(this.aa,this);b=b.currentSlideIndex();b==c&&this.aa(b);this.I&&this.g.stateChangedEvent().addHandler(this.xa,this)};Y.prototype.Ha=function(){this.M&&Vb(this,this.I&&(!this.ea||!Wb(this)))};
Y.prototype.closeLms=Y.prototype.Ha;function Vb(a,c){a.M&&(a.M=l,a.ea&&(a.l.stop(),Xb(a),a.g.view().playbackController().slideChangeEvent().removeHandler(a.aa,a)),a.g.closeWindowEvent().removeHandler(a.ta,a),a.g.stateChangedEvent().removeHandler(a.xa,a),c?a.i.suspend():a.i.terminate())}n=Y.prototype;
n.aa=function(a){if(this.p){var c=this.p;c.currentSessionChangedEvent().removeHandler(this.ua,this);(c=c.currentSession())&&Yb(this,c);this.p=k}if(a in this.H.A){var c=this.p=this.g.view().playbackController().quizPlayer(),b=(c[ba]||(c[ba]=++ca))+"";b in this.qa||(this.qa[b]=i,(b=new Bb(Tb(this.i.c,"cmi.core.student_id"),Tb(this.i.c,"cmi.core.student_name"),""))&&c.setUserInfo(b.id(),{USER_NAME:b.name(),USER_EMAIL:b.email()}));c.currentSessionChangedEvent().addHandler(this.ua,this);(c=c.currentSession())&&
Zb(this,c)}c=this.j.J;0<=ja(c,a)||c.push(a);this.j.P=a;$b(this)};function Xb(a){var c=a.l.t?fa()-a.l.R+a.l.w:a.l.T,b=a.l.t?fa()-a.l.R:a.l.X;a.j.ka(c);Z(a.i.c,"cmi.core.session_time",Eb(b/1E3));a.I&&(c=a.g.persistState(),a.j.Q=c,c=a.i,b=[],ac(new bc,a.j.ia(),b),a=LZString.compressToUTF16(b.join("")),Z(c.c,"cmi.suspend_data",a))}
function $b(a){var c=a.H;if(0<c.s||0<c.N){var b=cc(a),d=c.totalScore()*b;a.i.la(b,0,c.totalScore(),d)}a.g.presentation().slides().count();c=a.i;b=a.H;b=!(0<b.s||0<b.N)?k:cc(a)*b.totalScore()>=b.passingScore();d=Wb(a);b=b!==k?b:d;d="unknown";b===k||(d=c.ca.Ua&(b?2:1)?b?"passed":"failed":b?"completed":"incomplete");Z(c.c,"cmi.core.lesson_status",d);Xb(a);a.i.ga()}function Wb(a){var c=a.H,b=0<c.s?c.slidesToView():a.g.presentation().slides().count(),c=Ja(a.j.z)==Ja(c.A);return a.j.J.length>=b&&c}
function cc(a){var c=a.H;if(!(0<c.s||0<c.N))return 0;var b=0,d=a.j.z,e;for(e in d)var f=d[e],b=b+(f.ja!=k?f.ja:1)*(!(parseInt(e,10)in c.A)?0:c.A[parseInt(e,10)]);d=0;0<c.s&&(d=a.g.presentation().slides().count(),d=a.j.J.length/d*c.slidesWeight());e=c.A;a=[];var f=0,h;for(h in e)a[f++]=e[h];for(e=h=0;e<a.length;++e)h+=a[e];c=h+c.slidesWeight();return(b+d)/c}
function Zb(a,c){c.quizStateChangeEvent().addHandler(a.za,a);c.slidePoolState().forEach(function(b){var c=b.slide().type();fb(c)&&b.submitEvent().addHandler(a.ya,a)})}function Yb(a,c){c.quizStateChangeEvent().removeHandler(a.za,a);c.slidePoolState().forEach(function(b){var c=b.slide().type();fb(c)&&b.submitEvent().removeHandler(a.ya,a)})}n.ua=function(a,c){c&&Yb(this,c);Zb(this,a)};
n.za=function(a){if("inProgress"==a){a=this.p.currentSession();a="graded"==a.quiz().type()?new Hb(a.quizPassed(),a.maxScore(),a.awardedScore(),a.awardedPercent()):new Hb(i);var c=this.g.view().playbackController().currentSlideIndex();this.j.z[c+""]=a;$b(this)}};
n.ya=function(a){this.p.currentSession();if(a.initiated()){var c=yb(a.slide().type(),this.La).create(a);if(c){a=this.i.c;var b=c.id(),d=-1;c.id()in dc?d=dc[b]:(d=parseInt(Tb(a,"cmi.interactions._count"),10),d=250<=d?-1:d,dc[b]=d);if(!(0>d)){b="cmi.interactions."+d+".";Z(a,b+$.id,c.id());Z(a,b+$.type,c.type());Z(a,b+$.score,c.score());for(var d=c.ha()||[],e=0;e<d.length;++e){var f=$.bb.replace("%INDEX%",e);Z(a,b+f,d[e])}(d=c.L())&&Z(a,b+$.L,d);Z(a,b+$.result,c.result());d=c.duration();d===k||Z(a,b+
$.duration,Eb(d/1E3));c=c.ma();c===k||Z(a,b+$.ma,Eb(3600*c.getHours()+60*c.getMinutes()+c.getSeconds()))}}}};n.ta=function(a){a.preventAction();this.Ha()};n.ba=function(){this.u.Ya&&alert(this.u.message());this.u.Y&&Vb(this,l)};n.xa=function(a){a.actionPrevented()||(a.preventAction(),Xb(this))};var $={id:"id",type:"type",score:"weighting",bb:"correct_responses.%INDEX%.pattern",L:"student_response",result:"result",duration:"latency",ma:"time"},dc={};function Ub(a){a=String(a);if(/^\s*$/.test(a)?0:/^[\],:{}\s\u2028\u2029]*$/.test(a.replace(/\\["\\\/bfnrtu]/g,"@").replace(/"[^"\\\n\r\u2028\u2029\x00-\x08\x0a-\x1f]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,"]").replace(/(?:^|:|,)(?:[\s\u2028\u2029]*\[)+/g,"")))try{return eval("("+a+")")}catch(c){}throw Error("Invalid JSON string: "+a);}function bc(){this.U=g}
function ac(a,c,b){switch(typeof c){case "string":ec(c,b);break;case "number":b.push(isFinite(c)&&!isNaN(c)?c:"null");break;case "boolean":b.push(c);break;case "undefined":b.push("null");break;case "object":if(c==k){b.push("null");break}if("array"==aa(c)){var d=c.length;b.push("[");for(var e="",f=0;f<d;f++)b.push(e),e=c[f],ac(a,a.U?a.U.call(c,String(f),e):e,b),e=",";b.push("]");break}b.push("{");d="";for(f in c)Object.prototype.hasOwnProperty.call(c,f)&&(e=c[f],"function"!=typeof e&&(b.push(d),ec(f,
b),b.push(":"),ac(a,a.U?a.U.call(c,f,e):e,b),d=","));b.push("}");break;case "function":break;default:throw Error("Unknown type: "+typeof c);}}var fc={'"':'\\"',"\\":"\\\\","/":"\\/","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r","\t":"\\t","\x0B":"\\u000b"},gc=/\uffff/.test("\uffff")?/[\\\"\x00-\x1f\x7f-\uffff]/g:/[\\\"\x00-\x1f\x7f-\xff]/g;
function ec(a,c){c.push('"',a.replace(gc,function(a){if(a in fc)return fc[a];var c=a.charCodeAt(0),e="\\u";16>c?e+="000":256>c?e+="00":4096>c&&(e+="0");return fc[a]=e+c.toString(16)}),'"')};function hc(a){this.c=a}hc.prototype.K=function(){try{return ic(this.c.LMSInitialize(""))}catch(a){}return l};hc.prototype.terminate=function(a){Z(this,"cmi.core.exit",a?"suspend":"");try{return ic(this.c.LMSFinish(""))}catch(c){}return l};hc.prototype.ga=function(){try{return ic(this.c.LMSCommit(""))}catch(a){}return l};function Tb(a,c){try{return a.c.LMSGetValue(c)}catch(b){}return""}
function Z(a,c,b){if("number"==typeof b){var d;(d=r(d)?d:i)?b=parseFloat(b.toFixed(2))+"":(d=Math.pow(10,2),b=Math.floor(b*d)/d+"");b+=""}try{a.c.LMSSetValue(c,b)}catch(e){}}function ic(a){return"true"==a};function jc(a){if("function"!=aa(a))if(a&&"function"==typeof a.handleEvent)a=t(a.handleEvent,a);else throw Error("Invalid listener argument");p.setTimeout(a,10)};function kc(a,c){this.e=a;this.gc=c||[]}q("iSpring.ios.mobile.MobileAppCommand",kc,g);kc.prototype.id=function(){return this[ba]||(this[ba]=++ca)};function lc(){}q("Tincan.MobileHttpTransport.onRequestComplete",function(a,c,b){var d;mc||(mc=new lc);d=mc;var e=d.ra[a];if(e==k)return"";delete d.ra[a];jc(function(){if(c)e.onload(b);else e.onerror()});return"ok"},g);var mc=k;lc.prototype.ra={};function nc(a){this.ca=a.ca}q("iSpring.LMSAPI.Scorm12Api",nc,g);n=nc.prototype;n.c=k;n.K=function(a,c){var b=Db();(this.c=b?new hc(b):k)&&this.c.K()?a&&a():c&&c()};n.start=function(){};n.ga=function(){this.c.ga()};n.suspend=function(){this.c.terminate(i);Fb()};n.terminate=function(){this.c.terminate(l);Fb()};n.la=function(a,c,b,d){Z(this.c,"cmi.core.score.min",c);Z(this.c,"cmi.core.score.max",b);Z(this.c,"cmi.core.score.raw",d)};})();
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}
