(function(){/*

 Copyright The Closure Library Authors.
 SPDX-License-Identifier: Apache-2.0
*/
var k,aa="function"==typeof Object.defineProperties?Object.defineProperty:function(a,b,c){if(a==Array.prototype||a==Object.prototype)return a;a[b]=c.value;return a};function ba(a){a=["object"==typeof globalThis&&globalThis,a,"object"==typeof window&&window,"object"==typeof self&&self,"object"==typeof global&&global];for(var b=0;b<a.length;++b){var c=a[b];if(c&&c.Math==Math)return c}throw Error("Cannot find global object");}var ca=ba(this);
function m(a,b){if(b)a:{var c=ca;a=a.split(".");for(var d=0;d<a.length-1;d++){var e=a[d];if(!(e in c))break a;c=c[e]}a=a[a.length-1];d=c[a];b=b(d);b!=d&&null!=b&&aa(c,a,{configurable:!0,writable:!0,value:b})}}m("Object.values",function(a){return a?a:function(b){var c=[],d;for(d in b)Object.prototype.hasOwnProperty.call(b,d)&&c.push(b[d]);return c}});
function da(a,b){a instanceof String&&(a+="");var c=0,d=!1,e={next:function(){if(!d&&c<a.length){var f=c++;return{value:b(f,a[f]),done:!1}}d=!0;return{done:!0,value:void 0}}};e[Symbol.iterator]=function(){return e};return e}m("Array.prototype.values",function(a){return a?a:function(){return da(this,function(b,c){return c})}});
m("Object.fromEntries",function(a){return a?a:function(b){var c={};if(!(Symbol.iterator in b))throw new TypeError(""+b+" is not iterable");b=b[Symbol.iterator].call(b);for(var d=b.next();!d.done;d=b.next()){d=d.value;if(Object(d)!==d)throw new TypeError("iterable for fromEntries should yield objects");c[d[0]]=d[1]}return c}});m("Object.entries",function(a){return a?a:function(b){var c=[],d;for(d in b)Object.prototype.hasOwnProperty.call(b,d)&&c.push([d,b[d]]);return c}});var p=this||self;
function q(a,b,c){a=a.split(".");c=c||p;a[0]in c||"undefined"==typeof c.execScript||c.execScript("var "+a[0]);for(var d;a.length&&(d=a.shift());)a.length||void 0===b?c=c[d]&&c[d]!==Object.prototype[d]?c[d]:c[d]={}:c[d]=b}function ea(a){var b=typeof a;b="object"!=b?b:a?Array.isArray(a)?"array":b:"null";return"array"==b||"object"==b&&"number"==typeof a.length}function fa(a){var b=typeof a;return"object"==b&&null!=a||"function"==b}
function ha(a){return Object.prototype.hasOwnProperty.call(a,ia)&&a[ia]||(a[ia]=++ja)}var ia="closure_uid_"+(1E9*Math.random()>>>0),ja=0;function ka(a,b,c){return a.call.apply(a.bind,arguments)}function la(a,b,c){if(!a)throw Error();if(2<arguments.length){var d=Array.prototype.slice.call(arguments,2);return function(){var e=Array.prototype.slice.call(arguments);Array.prototype.unshift.apply(e,d);return a.apply(b,e)}}return function(){return a.apply(b,arguments)}}
function na(a,b,c){na=Function.prototype.bind&&-1!=Function.prototype.bind.toString().indexOf("native code")?ka:la;return na.apply(null,arguments)}function t(a,b){function c(){}c.prototype=b.prototype;a.Nc=b.prototype;a.prototype=new c;a.prototype.constructor=a;a.Ic=function(d,e,f){for(var g=Array(arguments.length-2),h=2;h<arguments.length;h++)g[h-2]=arguments[h];return b.prototype[e].apply(d,g)}};function u(a,b){if(Error.captureStackTrace)Error.captureStackTrace(this,u);else{const c=Error().stack;c&&(this.stack=c)}a&&(this.message=String(a));void 0!==b&&(this.cause=b)}t(u,Error);u.prototype.name="CustomError";function oa(a,b){a=a.split("%s");let c="";const d=a.length-1;for(let e=0;e<d;e++)c+=a[e]+(e<b.length?b[e]:"%s");u.call(this,c+a[d])}t(oa,u);oa.prototype.name="AssertionError";function pa(a){throw a;}function qa(a,b){pa(new oa("Failure"+(a?": "+a:""),Array.prototype.slice.call(arguments,1)))};function v(a){this.za=a;this.F=this.za.length/4;this.ba=this.F+6;this.I=[[],[],[],[]];this.ma=[[],[],[],[]];this.C=Array(w*(this.ba+1));for(a=0;a<this.F;a++)this.C[a]=[this.za[4*a],this.za[4*a+1],this.za[4*a+2],this.za[4*a+3]];var b=Array(4);for(a=this.F;a<w*(this.ba+1);a++){b[0]=this.C[a-1][0];b[1]=this.C[a-1][1];b[2]=this.C[a-1][2];b[3]=this.C[a-1][3];if(0==a%this.F){var c=b,d=c[0];c[0]=c[1];c[1]=c[2];c[2]=c[3];c[3]=d;ra(b);b[0]^=x[a/this.F][0];b[1]^=x[a/this.F][1];b[2]^=x[a/this.F][2];b[3]^=x[a/
this.F][3]}else 6<this.F&&4==a%this.F&&ra(b);this.C[a]=Array(4);this.C[a][0]=this.C[a-this.F][0]^b[0];this.C[a][1]=this.C[a-this.F][1]^b[1];this.C[a][2]=this.C[a-this.F][2]^b[2];this.C[a][3]=this.C[a-this.F][3]^b[3]}}v.prototype.na=16;var w=v.prototype.na/4;
v.prototype.encrypt=function(a){sa(this,a);y(this,0);for(a=1;a<this.ba;++a){ta(this,z);ua(this);for(var b=this.I,c=this.ma[0],d=0;4>d;d++)c[0]=b[0][d],c[1]=b[1][d],c[2]=b[2][d],c[3]=b[3][d],b[0][d]=va[c[0]]^wa[c[1]]^c[2]^c[3],b[1][d]=c[0]^va[c[1]]^wa[c[2]]^c[3],b[2][d]=c[0]^c[1]^va[c[2]]^wa[c[3]],b[3][d]=wa[c[0]]^c[1]^c[2]^va[c[3]];y(this,a)}ta(this,z);ua(this);y(this,this.ba);return xa(this)};
v.prototype.decrypt=function(a){sa(this,a);y(this,this.ba);for(a=1;a<this.ba;++a){ya(this);ta(this,za);y(this,this.ba-a);for(var b=this.I,c=this.ma[0],d=0;4>d;d++)c[0]=b[0][d],c[1]=b[1][d],c[2]=b[2][d],c[3]=b[3][d],b[0][d]=Aa[c[0]]^Ba[c[1]]^Ca[c[2]]^Da[c[3]],b[1][d]=Da[c[0]]^Aa[c[1]]^Ba[c[2]]^Ca[c[3]],b[2][d]=Ca[c[0]]^Da[c[1]]^Aa[c[2]]^Ba[c[3]],b[3][d]=Ba[c[0]]^Ca[c[1]]^Da[c[2]]^Aa[c[3]]}ya(this);ta(this,za);y(this,0);return xa(this)};
function sa(a,b){for(var c,d=0;d<w;d++)for(var e=0;4>e;e++)c=4*e+d,c=b[c],a.I[d][e]=c}function xa(a){for(var b=[],c=0;c<w;c++)for(var d=0;4>d;d++)b[4*d+c]=a.I[c][d];return b}function y(a,b){for(var c=0;4>c;c++)for(var d=0;4>d;d++)a.I[c][d]^=a.C[4*b+d][c]}function ta(a,b){for(var c=0;4>c;c++)for(var d=0;4>d;d++)a.I[c][d]=b[a.I[c][d]]}function ua(a){for(var b=1;4>b;b++)for(var c=0;4>c;c++)a.ma[b][c]=a.I[b][c];for(b=1;4>b;b++)for(c=0;4>c;c++)a.I[b][c]=a.ma[b][(c+b)%w]}
function ya(a){for(var b=1;4>b;b++)for(var c=0;4>c;c++)a.ma[b][(c+b)%w]=a.I[b][c];for(b=1;4>b;b++)for(c=0;4>c;c++)a.I[b][c]=a.ma[b][c]}function ra(a){a[0]=z[a[0]];a[1]=z[a[1]];a[2]=z[a[2]];a[3]=z[a[3]]}
var z=[99,124,119,123,242,107,111,197,48,1,103,43,254,215,171,118,202,130,201,125,250,89,71,240,173,212,162,175,156,164,114,192,183,253,147,38,54,63,247,204,52,165,229,241,113,216,49,21,4,199,35,195,24,150,5,154,7,18,128,226,235,39,178,117,9,131,44,26,27,110,90,160,82,59,214,179,41,227,47,132,83,209,0,237,32,252,177,91,106,203,190,57,74,76,88,207,208,239,170,251,67,77,51,133,69,249,2,127,80,60,159,168,81,163,64,143,146,157,56,245,188,182,218,33,16,255,243,210,205,12,19,236,95,151,68,23,196,167,126,
61,100,93,25,115,96,129,79,220,34,42,144,136,70,238,184,20,222,94,11,219,224,50,58,10,73,6,36,92,194,211,172,98,145,149,228,121,231,200,55,109,141,213,78,169,108,86,244,234,101,122,174,8,186,120,37,46,28,166,180,198,232,221,116,31,75,189,139,138,112,62,181,102,72,3,246,14,97,53,87,185,134,193,29,158,225,248,152,17,105,217,142,148,155,30,135,233,206,85,40,223,140,161,137,13,191,230,66,104,65,153,45,15,176,84,187,22],za=[82,9,106,213,48,54,165,56,191,64,163,158,129,243,215,251,124,227,57,130,155,47,
255,135,52,142,67,68,196,222,233,203,84,123,148,50,166,194,35,61,238,76,149,11,66,250,195,78,8,46,161,102,40,217,36,178,118,91,162,73,109,139,209,37,114,248,246,100,134,104,152,22,212,164,92,204,93,101,182,146,108,112,72,80,253,237,185,218,94,21,70,87,167,141,157,132,144,216,171,0,140,188,211,10,247,228,88,5,184,179,69,6,208,44,30,143,202,63,15,2,193,175,189,3,1,19,138,107,58,145,17,65,79,103,220,234,151,242,207,206,240,180,230,115,150,172,116,34,231,173,53,133,226,249,55,232,28,117,223,110,71,241,
26,113,29,41,197,137,111,183,98,14,170,24,190,27,252,86,62,75,198,210,121,32,154,219,192,254,120,205,90,244,31,221,168,51,136,7,199,49,177,18,16,89,39,128,236,95,96,81,127,169,25,181,74,13,45,229,122,159,147,201,156,239,160,224,59,77,174,42,245,176,200,235,187,60,131,83,153,97,23,43,4,126,186,119,214,38,225,105,20,99,85,33,12,125],x=[[0,0,0,0],[1,0,0,0],[2,0,0,0],[4,0,0,0],[8,0,0,0],[16,0,0,0],[32,0,0,0],[64,0,0,0],[128,0,0,0],[27,0,0,0],[54,0,0,0]],va=[0,2,4,6,8,10,12,14,16,18,20,22,24,26,28,30,
32,34,36,38,40,42,44,46,48,50,52,54,56,58,60,62,64,66,68,70,72,74,76,78,80,82,84,86,88,90,92,94,96,98,100,102,104,106,108,110,112,114,116,118,120,122,124,126,128,130,132,134,136,138,140,142,144,146,148,150,152,154,156,158,160,162,164,166,168,170,172,174,176,178,180,182,184,186,188,190,192,194,196,198,200,202,204,206,208,210,212,214,216,218,220,222,224,226,228,230,232,234,236,238,240,242,244,246,248,250,252,254,27,25,31,29,19,17,23,21,11,9,15,13,3,1,7,5,59,57,63,61,51,49,55,53,43,41,47,45,35,33,39,
37,91,89,95,93,83,81,87,85,75,73,79,77,67,65,71,69,123,121,127,125,115,113,119,117,107,105,111,109,99,97,103,101,155,153,159,157,147,145,151,149,139,137,143,141,131,129,135,133,187,185,191,189,179,177,183,181,171,169,175,173,163,161,167,165,219,217,223,221,211,209,215,213,203,201,207,205,195,193,199,197,251,249,255,253,243,241,247,245,235,233,239,237,227,225,231,229],wa=[0,3,6,5,12,15,10,9,24,27,30,29,20,23,18,17,48,51,54,53,60,63,58,57,40,43,46,45,36,39,34,33,96,99,102,101,108,111,106,105,120,123,
126,125,116,119,114,113,80,83,86,85,92,95,90,89,72,75,78,77,68,71,66,65,192,195,198,197,204,207,202,201,216,219,222,221,212,215,210,209,240,243,246,245,252,255,250,249,232,235,238,237,228,231,226,225,160,163,166,165,172,175,170,169,184,187,190,189,180,183,178,177,144,147,150,149,156,159,154,153,136,139,142,141,132,135,130,129,155,152,157,158,151,148,145,146,131,128,133,134,143,140,137,138,171,168,173,174,167,164,161,162,179,176,181,182,191,188,185,186,251,248,253,254,247,244,241,242,227,224,229,230,
239,236,233,234,203,200,205,206,199,196,193,194,211,208,213,214,223,220,217,218,91,88,93,94,87,84,81,82,67,64,69,70,79,76,73,74,107,104,109,110,103,100,97,98,115,112,117,118,127,124,121,122,59,56,61,62,55,52,49,50,35,32,37,38,47,44,41,42,11,8,13,14,7,4,1,2,19,16,21,22,31,28,25,26],Da=[0,9,18,27,36,45,54,63,72,65,90,83,108,101,126,119,144,153,130,139,180,189,166,175,216,209,202,195,252,245,238,231,59,50,41,32,31,22,13,4,115,122,97,104,87,94,69,76,171,162,185,176,143,134,157,148,227,234,241,248,199,
206,213,220,118,127,100,109,82,91,64,73,62,55,44,37,26,19,8,1,230,239,244,253,194,203,208,217,174,167,188,181,138,131,152,145,77,68,95,86,105,96,123,114,5,12,23,30,33,40,51,58,221,212,207,198,249,240,235,226,149,156,135,142,177,184,163,170,236,229,254,247,200,193,218,211,164,173,182,191,128,137,146,155,124,117,110,103,88,81,74,67,52,61,38,47,16,25,2,11,215,222,197,204,243,250,225,232,159,150,141,132,187,178,169,160,71,78,85,92,99,106,113,120,15,6,29,20,43,34,57,48,154,147,136,129,190,183,172,165,
210,219,192,201,246,255,228,237,10,3,24,17,46,39,60,53,66,75,80,89,102,111,116,125,161,168,179,186,133,140,151,158,233,224,251,242,205,196,223,214,49,56,35,42,21,28,7,14,121,112,107,98,93,84,79,70],Ba=[0,11,22,29,44,39,58,49,88,83,78,69,116,127,98,105,176,187,166,173,156,151,138,129,232,227,254,245,196,207,210,217,123,112,109,102,87,92,65,74,35,40,53,62,15,4,25,18,203,192,221,214,231,236,241,250,147,152,133,142,191,180,169,162,246,253,224,235,218,209,204,199,174,165,184,179,130,137,148,159,70,77,
80,91,106,97,124,119,30,21,8,3,50,57,36,47,141,134,155,144,161,170,183,188,213,222,195,200,249,242,239,228,61,54,43,32,17,26,7,12,101,110,115,120,73,66,95,84,247,252,225,234,219,208,205,198,175,164,185,178,131,136,149,158,71,76,81,90,107,96,125,118,31,20,9,2,51,56,37,46,140,135,154,145,160,171,182,189,212,223,194,201,248,243,238,229,60,55,42,33,16,27,6,13,100,111,114,121,72,67,94,85,1,10,23,28,45,38,59,48,89,82,79,68,117,126,99,104,177,186,167,172,157,150,139,128,233,226,255,244,197,206,211,216,122,
113,108,103,86,93,64,75,34,41,52,63,14,5,24,19,202,193,220,215,230,237,240,251,146,153,132,143,190,181,168,163],Ca=[0,13,26,23,52,57,46,35,104,101,114,127,92,81,70,75,208,221,202,199,228,233,254,243,184,181,162,175,140,129,150,155,187,182,161,172,143,130,149,152,211,222,201,196,231,234,253,240,107,102,113,124,95,82,69,72,3,14,25,20,55,58,45,32,109,96,119,122,89,84,67,78,5,8,31,18,49,60,43,38,189,176,167,170,137,132,147,158,213,216,207,194,225,236,251,246,214,219,204,193,226,239,248,245,190,179,164,
169,138,135,144,157,6,11,28,17,50,63,40,37,110,99,116,121,90,87,64,77,218,215,192,205,238,227,244,249,178,191,168,165,134,139,156,145,10,7,16,29,62,51,36,41,98,111,120,117,86,91,76,65,97,108,123,118,85,88,79,66,9,4,19,30,61,48,39,42,177,188,171,166,133,136,159,146,217,212,195,206,237,224,247,250,183,186,173,160,131,142,153,148,223,210,197,200,235,230,241,252,103,106,125,112,83,94,73,68,15,2,21,24,59,54,33,44,12,1,22,27,56,53,34,47,100,105,126,115,80,93,74,71,220,209,198,203,232,229,242,255,180,185,
174,163,128,141,154,151],Aa=[0,14,28,18,56,54,36,42,112,126,108,98,72,70,84,90,224,238,252,242,216,214,196,202,144,158,140,130,168,166,180,186,219,213,199,201,227,237,255,241,171,165,183,185,147,157,143,129,59,53,39,41,3,13,31,17,75,69,87,89,115,125,111,97,173,163,177,191,149,155,137,135,221,211,193,207,229,235,249,247,77,67,81,95,117,123,105,103,61,51,33,47,5,11,25,23,118,120,106,100,78,64,82,92,6,8,26,20,62,48,34,44,150,152,138,132,174,160,178,188,230,232,250,244,222,208,194,204,65,79,93,83,121,
119,101,107,49,63,45,35,9,7,21,27,161,175,189,179,153,151,133,139,209,223,205,195,233,231,245,251,154,148,134,136,162,172,190,176,234,228,246,248,210,220,206,192,122,116,102,104,66,76,94,80,10,4,22,24,50,60,46,32,236,226,240,254,212,218,200,198,156,146,128,142,164,170,184,182,12,2,16,30,52,58,40,38,124,114,96,110,68,74,88,86,55,57,43,37,15,1,19,29,71,73,91,85,127,113,99,109,215,217,203,197,239,225,243,253,167,169,187,181,159,145,131,141];const A=Array.prototype.indexOf?function(a,b){return Array.prototype.indexOf.call(a,b,void 0)}:function(a,b){if("string"===typeof a)return"string"!==typeof b||1!=b.length?-1:a.indexOf(b,0);for(let c=0;c<a.length;c++)if(c in a&&a[c]===b)return c;return-1},Ea=Array.prototype.forEach?function(a,b){Array.prototype.forEach.call(a,b,void 0)}:function(a,b){const c=a.length,d="string"===typeof a?a.split(""):a;for(let e=0;e<c;e++)e in d&&b.call(void 0,d[e],e,a)},Fa=Array.prototype.filter?function(a,b){return Array.prototype.filter.call(a,
b,void 0)}:function(a,b){const c=a.length,d=[];let e=0;const f="string"===typeof a?a.split(""):a;for(let g=0;g<c;g++)if(g in f){const h=f[g];b.call(void 0,h,g,a)&&(d[e++]=h)}return d};function Ga(a,b){a:{const c=a.length,d="string"===typeof a?a.split(""):a;for(let 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:"string"===typeof a?a.charAt(b):a[b]}function Ha(a,b){b=A(a,b);let c;(c=0<=b)&&Array.prototype.splice.call(a,b,1);return c}
function Ia(a){const b=a.length;if(0<b){const c=Array(b);for(let d=0;d<b;d++)c[d]=a[d];return c}return[]}function Ja(a,b){for(let c=1;c<arguments.length;c++){const d=arguments[c];if(ea(d)){const e=a.length||0,f=d.length||0;a.length=e+f;for(let g=0;g<f;g++)a[e+g]=d[g]}else a.push(d)}}function Ka(a,b,c,d){Array.prototype.splice.apply(a,La(arguments,1))}function La(a,b,c){return 2>=arguments.length?Array.prototype.slice.call(a,b):Array.prototype.slice.call(a,b,c)};function B(a){for(var b=[],c=0;c<a.length;c+=2)b.push(parseInt(a.substring(c,c+2),16));return b}function Ma(a,b){for(var c=[],d=0;d<a.length;d++)c.push(a[d]^b[d]);return c};function Na(a){this.ja=a}Na.prototype.encrypt=function(a,b){var c=[],d=b;for(b=0;b<a.length;b+=this.ja.na)d=Ma(Array.prototype.slice.call(a,b,b+this.ja.na),d),d=this.ja.encrypt(d),Ja(c,d);return c};Na.prototype.decrypt=function(a,b){for(var c=[],d=0,e=b;d<a.length;){b=Array.prototype.slice.call(a,d,d+this.ja.na);var f=this.ja.decrypt(b);e=Ma(e,f);Ja(c,e);e=b;d+=this.ja.na}return c};var Oa=B("343ebcf014a7e244ba703229647cf607"),Pa=B("429ab6bc5b161fb66503db4b4b7e310b"),Qa=B("410f951a7436c2bcae986399fe12d772"),Ra=B("b3ee0a61544dc2e8b07cfc41277893ac");function Sa(a,b,c){const [d,e]=a.split(":");var f=B(e);a=parseInt(d,10);b=new v(b);c=(new Na(b)).decrypt(f,c);c=a?c.slice(0,-a):c;for(b=a=0;a<c.length;)f=c[a++],128>f||(191<f&&224>f?a++:239<f&&365>f?(a++,a++,a++,b++):(a++,a++)),b++};class Ua{constructor(a){this.fc=a}};var Va=String.prototype.trim?function(a){return a.trim()}:function(a){return/^[\s\xa0]*([\s\S]*?)[\s\xa0]*$/.exec(a)[1]},Wa=/&/g,Xa=/</g,Ya=/>/g,Za=/"/g,$a=/'/g,ab=/\x00/g,bb=/[\x00&<>"']/;function cb(a,b){for(const c in a)b.call(void 0,a[c],c,a)}function db(a,b){const c={};for(const d in a)b.call(void 0,a[d],d,a)&&(c[d]=a[d]);return c}function eb(a){const b=[];let c=0;for(const d in a)b[c++]=a[d];return b}function fb(a,b){for(const c in a)if(b.call(void 0,a[c],c,a))return c}function C(a,b,c){return null!==a&&b in a?a[b]:c};function gb(){var a=p.navigator;return a&&(a=a.userAgent)?a:""}function D(a){return-1!=gb().indexOf(a)};function hb(a){return String(a).replace(/\-([a-z])/g,function(b,c){return c.toUpperCase()})}function ib(a){return a.replace(RegExp("(^|[\\s]+)([a-z])","g"),function(b,c,d){return c+d.toUpperCase()})};class jb{constructor(a){this.lb=a}rc(a,b,c){c=this.lb.hasOwnProperty(a)?this.lb[a]:c;if(void 0!==c){if(void 0!==b){a=this.$b;for(let d in b)if(b.hasOwnProperty(d)){const e=b[d];a&&(d=a(d));c=c.replace(new RegExp(d,"g"),e)}}return c}qa("unknown message id: "+a);return a}messages(){return this.lb}$b(a){return"%"+a.toUpperCase()+"%"}}jb.prototype.getMessage=jb.prototype.rc;function kb(a,b,c,d){this.pb=b;this.ac=new jb(c);this.M=d}kb.prototype.i18n=function(){return this.ac};var lb=D("Opera"),mb=D("Trident")||D("MSIE"),nb=D("Gecko")&&!(-1!=gb().toLowerCase().indexOf("webkit")&&!D("Edge"))&&!(D("Trident")||D("MSIE"))&&!D("Edge"),ob=-1!=gb().toLowerCase().indexOf("webkit")&&!D("Edge");var pb="closure_listenable_"+(1E6*Math.random()|0);function qb(a){a.wc=!0;a.listener=null;a.proxy=null;a.src=null;a.Lc=null};var rb={},sb=0;let tb=0;function ub(a,b){if(Array.isArray(b)){var c=!1;for(var d of b)c=ub(a,d)||c;return c}Ha(a.kb,b);if("number"===typeof b||!b||b.wc)b=!1;else if((a=b.src)&&a[pb])if(a=a.Jc,c=b.type,c in a.wb){if(d=Ha(a.wb[c],b))qb(b),0==a.wb[c].length&&(delete a.wb[c],a.Oc--);b=d}else b=!1;else c=b.type,d=b.proxy,a.removeEventListener?a.removeEventListener(c,d,b.capture):a.detachEvent?a.detachEvent(c in rb?rb[c]:rb[c]="on"+c,d):a.addListener&&a.removeListener&&a.removeListener(d),sb--,qb(b),b=!0;return b}
function E(a,b,c,d){a.N=a.N||{};b.addHandler(c,d,void 0);const e=++tb;a.N[e]={vb:b,ka:c,context:d,priority:void 0}}function vb(a,b){if(a.N&&a.N[b]){var {vb:c,ka:d,context:e,priority:f}=a.N[b];c.removeHandler(d,e,f);delete a.N[b]}else qa("unknown handler key")}function F(a,b,c,d){const e=fb(a.N,f=>{a:{var g={vb:b,ka:c,context:d,priority:void 0};for(const h in f)if(!(h in g)||f[h]!==g[h]){f=!1;break a}for(const h in g)if(!(h in f)){f=!1;break a}f=!0}return f});e&&vb(a,e)}
function wb(a){return void 0!==a.displayObject?a.displayObject():a}function xb(a,b){if(b){if(a.N){var c=db(a.N,d=>d.vb.Mb==b);for(const d of Object.keys(c))vb(a,d)}if(a.kb){const d=wb(b);c=Fa(a.kb,e=>e.src==d);for(const e of c)ub(a,e)}}}class yb{constructor(){this.N=this.kb=null}};function G(a,b){return 0==b?a.ia:a.aa[b]}function zb(a,b){return 0==b?a.ia||[]:b in a.aa?G(a,b):[]}function Ab(a){if(!a.aa)return a.ia?a.ia.slice():[];const b=[],c=a.Ha;for(let d=0;d<c.length;++d){const e=G(a,c[d]);e&&Ja(b,e)}return b}
class Bb{constructor(){this.ia=this.aa=this.Ha=null}push(a,b){if(0==b)this.ia=this.ia||[];else if(this.Ha=this.Ha||[0],this.aa=this.aa||{},!(b in this.aa)){this.aa[b]=[];var c=this.Ha;var d=0;let f=c.length,g;for(;d<f;){const h=d+(f-d>>>1);var e=void 0;e=c[h];e=b>e?1:b<e?-1:0;0<e?d=h+1:(f=h,g=!e)}d=g?d:-d-1;0>d&&Ka(c,-(d+1),0,b)}G(this,b).push(a)}remove(a,b){(b=G(this,b))&&Ha(b,a)}};class H extends yb{constructor(){super();this.Mb=this.Nb=this.K=null}qc(){return this.Mb}addHandler(a,b,c){this.K=this.K||new Bb;this.K.push({ka:a,context:b},c||0)}removeHandler(a,b,c){c=c||0;if(this.K){var d=zb(this.K,c),e=d.length;for(let f=0;f<e;++f){const g=d[f];if(g.ka==a&&g.context==b){(a=G(this.K,c))&&Array.prototype.splice.call(a,f,1);break}}}else qa("EventDispatcher has no handlers!")}sc(a,b,c){if(!this.K)return!1;c=zb(this.K,c||0);const d=c.length;for(let e=0;e<d;++e){const f=c[e];if(f.ka==
a&&f.context==b)return!0}return!1}Qa(...a){if(this.K){const b=Ab(this.K),c=b.length;for(let d=0;d<c;++d){const e=b[d];if(-1!=A(Ab(this.K),e))try{e.ka.apply(e.context,arguments)}catch(f){Cb(f,!0)}}}this.Nb&&this.Nb.forEach(b=>{b.Qa(...a)})}}H.prototype.dispatch=H.prototype.Qa;H.prototype.hasHandler=H.prototype.sc;H.prototype.removeHandler=H.prototype.removeHandler;H.prototype.addHandler=H.prototype.addHandler;H.prototype.eventOwner=H.prototype.qc;class Db{constructor(){this.oc=new H}};function Eb(a){this.ta=a}k=Eb.prototype;k.S="";k.B=null;k.D=null;k.xa="unanticipated";k.Ob=0;k.Ya=null;k.T=null;k.ub=null;k.J=null;k.id=function(){return this.ta};k.type=function(){return this.l};k.description=function(){return this.S};k.zb=function(){return this.B};function Fb(a,b){a.D=b}k.result=function(){return this.xa};k.score=function(){return this.Ob};k.la=function(a){this.Ob=a};k.awardedScore=function(){return this.Ya};k.duration=function(){return this.T};k.Ua=function(a){this.T=a};k.Ab=function(){return this.ub};
k.details=function(){return this.J};function Gb(a,b){a.J=b};function Hb(a,b){this.ta=a;this.dc=b;this.Zb=""}Hb.prototype.id=function(){return this.ta};Hb.prototype.name=function(){return this.dc};Hb.prototype.email=function(){return this.Zb};function I(a){a=Va(a);return a=a.replace(/[^\w-]/g,"_")}function J(a,b){return"0123456789abcdefghijklmnopqrstuvwxyz"[((null!=b?b:1)?a:35-a)%36]};class Ib{constructor(a,b){this.v=a;this.rb=b}};var Jb=D("Firefox")||D("FxiOS");var Kb={},Lb=null,Mb=nb||ob||"function"==typeof p.btoa;function Nb(a){this.Sa=a}function Ob(a,b){const c=[];Pb(a,b,c);return c.join("")}
function Pb(a,b,c){if(null==b)c.push("null");else{if("object"==typeof b){if(Array.isArray(b)){var d=b;b=d.length;c.push("[");var e="";for(var f=0;f<b;f++)c.push(e),e=d[f],Pb(a,a.Sa?a.Sa.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),Qb(d,c),c.push(":"),Pb(a,a.Sa?a.Sa.call(b,d,e):e,c),f=","));c.push("}");
return}}switch(typeof b){case "string":Qb(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 Rb={'"':'\\"',"\\":"\\\\","/":"\\/","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r","\t":"\\t","\v":"\\u000b"},Sb=/\uffff/.test("\uffff")?/[\\"\x00-\x1f\x7f-\uffff]/g:/[\\"\x00-\x1f\x7f-\xff]/g;
function Qb(a,b){b.push('"',a.replace(Sb,function(c){let d=Rb[c];d||(d="\\u"+(c.charCodeAt(0)|65536).toString(16).slice(1),Rb[c]=d);return d}),'"')};function Tb(a,b){cb(b,function(c,d){c&&"object"==typeof c&&c.Mc&&(c=c.Kc());"style"==d?a.style.cssText=c:"class"==d?a.className=c:"for"==d?a.htmlFor=c:Ub.hasOwnProperty(d)?a.setAttribute(Ub[d],c):0==d.lastIndexOf("aria-",0)||0==d.lastIndexOf("data-",0)?a.setAttribute(d,c):a[d]=c})}
var Ub={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 Vb(a,b,c){var d=arguments,e=document,f=d[1],g=Wb(e,String(d[0]));f&&("string"===typeof f?g.className=f:Array.isArray(f)?g.className=f.join(" "):Tb(g,f));2<d.length&&Xb(e,g,d);return g}
function Xb(a,b,c){function d(h){h&&b.appendChild("string"===typeof h?a.createTextNode(h):h)}for(var e=2;e<c.length;e++){var f=c[e];if(!ea(f)||fa(f)&&0<f.nodeType)d(f);else{a:{if(f&&"number"==typeof f.length){if(fa(f)){var g="function"==typeof f.item||"string"==typeof f.item;break a}if("function"===typeof f){g="function"==typeof f.item;break a}}g=!1}Ea(g?Ia(f):f,d)}}}function Wb(a,b){b=String(b);"application/xhtml+xml"===a.contentType&&(b=b.toLowerCase());return a.createElement(b)}
var Yb={SCRIPT:1,STYLE:1,HEAD:1,IFRAME:1,OBJECT:1},Zb={IMG:" ",BR:"\n"};function $b(a){var b=[];ac(a,b,!0);a=b.join("");a=a.replace(/ \xAD /g," ").replace(/\xAD/g,"");a=a.replace(/\u200B/g,"");a=a.replace(/ +/g," ");" "!=a&&(a=a.replace(/^\s*/,""));return a}function ac(a,b,c){if(!(a.nodeName in Yb))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 Zb)b.push(Zb[a.nodeName]);else for(a=a.firstChild;a;)ac(a,b,c),a=a.nextSibling};function bc(a,b){if("function"!==typeof a)if(a&&"function"==typeof a.handleEvent)a=na(a.handleEvent,a);else throw Error("Invalid listener argument");2147483647<Number(b)||p.setTimeout(a,b||0)};function cc(a){var b={width:"1px",height:"1px",border:"0"};if("string"===typeof b)(b=dc(a,b))&&(a.style[b]=void 0);else for(var c in b){var d=a,e=b[c],f=dc(d,c);f&&(d.style[f]=e)}}var ec={};function dc(a,b){var c=ec[b];if(!c){var d=hb(b);c=d;void 0===a.style[d]&&(d=(ob?"Webkit":nb?"Moz":mb?"ms":null)+ib(d),void 0!==a.style[d]&&(c=d));ec[b]=c}return c};function fc(a,b){this.l=a;this.Yb=b||[]}q("iSpring.ios.mobile.MobileAppCommand",fc);fc.prototype.id=function(){return ha(this)};function gc(a){try{const b=Wb(document,"iframe");cc(b);b.src=a;document.body.appendChild(b);bc(()=>{b&&b.parentNode&&b.parentNode.removeChild(b)},100)}catch(b){}};function K(a){this.length=a.length||a;for(let b=0;b<this.length;b++)this[b]=a[b]||0}K.prototype.BYTES_PER_ELEMENT=4;K.prototype.set=function(a,b){b=b||0;for(let c=0;c<a.length&&b+c<this.length;c++)this[b+c]=a[c]};K.prototype.toString=Array.prototype.join;"undefined"==typeof Float32Array&&(K.BYTES_PER_ELEMENT=4,K.prototype.BYTES_PER_ELEMENT=K.prototype.BYTES_PER_ELEMENT,K.prototype.set=K.prototype.set,K.prototype.toString=K.prototype.toString,q("Float32Array",K));function L(a){this.length=a.length||a;for(let b=0;b<this.length;b++)this[b]=a[b]||0}L.prototype.BYTES_PER_ELEMENT=8;L.prototype.set=function(a,b){b=b||0;for(let c=0;c<a.length&&b+c<this.length;c++)this[b+c]=a[c]};L.prototype.toString=Array.prototype.join;if("undefined"==typeof Float64Array){try{L.BYTES_PER_ELEMENT=8}catch(a){}L.prototype.BYTES_PER_ELEMENT=L.prototype.BYTES_PER_ELEMENT;L.prototype.set=L.prototype.set;L.prototype.toString=L.prototype.toString;q("Float64Array",L)};new Float64Array(3);new Float64Array(3);new Float64Array(4);new Float64Array(4);new Float64Array(4);new Float64Array(16);function M(){var a=window.location.search.substr(1);if(a){var b={};a=a.split("&");for(let e=0;e<a.length;++e){const f=a[e].split("=");if(2==f.length){try{var c=decodeURIComponent(f[0].replace(/\+/g," "))}catch(g){c=f[0]}try{var d=decodeURIComponent(f[1].replace(/\+/g," "))}catch(g){d=f[1]}c=c.toLowerCase();b[c]=d}}}else b={};return b};function N(a){var b="\r";if(0==a.length)return"";null==b&&(b="");var c=0;let d="";const e=a.length;do{var f=hc(a,["<p>","<p "],c);if(f&&f.Ra>c){c=a.substr(c,f.Ra-c);var g=Vb("DIV");g.innerHTML=c;d+=(g.textContent||g.innerText||$b(g))+b;c=f.Ra}if(g=hc(a,["</p>","</p >"],c)){f=g.Ra+g.yc.length-c;const h=a.substr(c,f);g=Vb("DIV");g.innerHTML=h;d+=(g.textContent||g.innerText||$b(g))+b;c+=f}else return g=Vb("DIV"),g.innerHTML=a.substr(c,e-c),d+(g.textContent||g.innerText||$b(g))}while(c<e);return d}
function hc(a,b,c){Array.isArray(b)||(b=[b]);let d=void 0,e=void 0;Ea(b,f=>{const g=a.indexOf(f,c);0<=g&&(void 0===d||g<d)&&(d=g,e=f)});return void 0!==e&&void 0!==d?new ic(e,d):null}function ic(a,b){this.yc=a;this.Ra=b};function O(a,b){this.ta=a;this.S=b}O.prototype.id=function(){return this.ta};O.prototype.description=function(){return this.S};function P(){this.da=[]}P.prototype.count=function(){return this.da.length};function Q(a,b){a.da.push(b)}P.prototype.getChoice=function(a){if(0>a||a>=this.count())throw Error("Index out of bounds");return this.da[a]};function R(){this.da=new P}R.prototype.choices=function(){return this.da};function jc(a,b,c,d){this.rb=a;this.jc=b;this.kc=c;this.ic=d;this.qb=void 0}function kc(a){a=N(a.text());bb.test(a)&&(-1!=a.indexOf("&")&&(a=a.replace(Wa,"&amp;")),-1!=a.indexOf("<")&&(a=a.replace(Xa,"&lt;")),-1!=a.indexOf(">")&&(a=a.replace(Ya,"&gt;")),-1!=a.indexOf('"')&&(a=a.replace(Za,"&quot;")),-1!=a.indexOf("'")&&(a=a.replace($a,"&#39;")),-1!=a.indexOf("\x00")&&(a=a.replace(ab,"&#0;")));if(!a)return"";const b=document.createElement("div");b.innerHTML=a;return b.firstChild.nodeValue}
jc.prototype.create=function(){var a=0;const b=[];var c=this.jc,d=this.ic;const e=new Eb(c.id()+"_"+a);a+=1;e.l="choice";if(c.message()){var f=c.message().text();f=N(f);e.S=f;f=c.message().replies();null!=c.speech()&&0<N(c.speech())&&(a=new Eb(c.id()+"_"+a),a.l="other",c=N(c.speech()),a.S=c,a.xa="neutral",lc(this,a),b.push(a))}else f=N(c.speech()),e.S=f,f=c.replies();0==f.count()&&(e.l="other");c=null;let g=a=0;var h=-1;const n=[];for(var l=0;l<f.count();l++){const r=f.getReply(l);null!=d&&r==d&&
(h=l);a=Math.max(a,r.score());n.push(mc(this,l,kc(r)))}null!=d&&(c=mc(this,h,kc(d)),g=Math.max(g,d.score()));d=f;f=new R;for(h=0;h<d.count();++h)l=kc(d.getReply(h)),Q(f.choices(),new O(I(h+"_"+l),l));e.J=f;e.B=c;e.D=n;this.rb.scenario().settings().evaluationSettings().enabled()&&(e.la(a),e.Ya=g);e.xa="neutral";lc(this,e);b.push(e);return b};function mc(a,b,c){c=I(b+"_"+c);b=J(b);return a.kc?b:c}function lc(a,b){null!=a.qb&&(b.ub=new Date(a.qb),b.Ua(Date.now()-a.qb))};(function(){function a(b){try{return b.ISPlayer&&(window.ISPlayer=b.ISPlayer),b.ISPVideoPlayer&&(window.ISPVideoPlayer=b.ISPVideoPlayer),b.ISPQuizPlayer&&(window.ISPQuizPlayer=b.ISPQuizPlayer),b.ISPInteractionPlayerCore&&(window.ISPInteractionPlayerCore=b.ISPInteractionPlayerCore),b.ISPBookPlayer&&(window.ISPBookPlayer=b.ISPBookPlayer),b.ISPScenarioPlayer&&(window.ISPScenarioPlayer=b.ISPScenarioPlayer),b.ISPFlipPlayer&&(window.ISPFlipPlayer=b.ISPFlipPlayer),!0}catch(c){return!1}}if(function(){let b;
try{b=window.frameElement}catch(c){}return null!=b}()){let b=window,c=7;for(;b&&b.parent!=b&&0!=c--&&!a(b.parent);)b=b.parent}})();var S;const nc=M().user_agent;S=nc?nc:gb()||"";M();M();var oc=-1!=S.toLowerCase().indexOf("chrome"),pc=-1==S.toLowerCase().indexOf("windows phone")&&-1!=S.toLowerCase().indexOf("android")&&!oc&&!Jb&&!lb,qc=-1!=S.indexOf("ismobile");const rc=document.createElement("audio"),sc=rc.play&&rc.play();sc&&sc.then(()=>{rc.pause()},()=>{});M();M();
function tc(){return 1==window._ispringDebug||"1"==M().isdebug}setTimeout(function(){uc=tc},0);eb({Bc:"\u202a",Gc:"\u202b",Ec:"\u202c",Cc:"\u200e",Hc:"\u200f"});function vc(){function a(c){try{for(let d=0;255>d;++d){if(c.API)return c.API;const e=c.parent;if(!e||c==e)break;c=e}}catch(d){}return null}var b=window;return a(b)||b.opener&&a(b.opener)}function wc(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 xc(){if(qc)if(qc){var a=new fc("closeWindow");if(qc){var b=a.l,c=a.Yb;a=a.id();var d=Ob(new Nb(null),c);if(Mb)c=p.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}d=void 0;void 0===d&&(d=0);if(!Lb)for(Lb={},e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".split(""),f=["+/=","+/","-_=","-_.","-_"],g=0;5>g;g++){var h=e.concat(f[g].split(""));Kb[g]=h;for(var n=0;n<h.length;n++){var l=h[n];void 0===Lb[l]&&(Lb[l]=n)}}d=
Kb[d];e=Array(Math.floor(c.length/3));f=d[64]||"";for(g=h=0;h<c.length-2;h+=3){var r=c[h],ma=c[h+1];l=c[h+2];n=d[r>>2];r=d[(r&3)<<4|ma>>4];ma=d[(ma&15)<<2|l>>6];l=d[l&63];e[g++]=""+n+r+ma+l}n=0;l=f;switch(c.length-h){case 2:n=c[h+1],l=d[(n&15)<<2]||f;case 1:c=c[h],e[g]=""+d[c>>2]+d[(c&3)<<4|n>>4]+l+f}c=e.join("")}gc("isplayer://"+b+"/"+a+"/"+c)}}else try{pc||(window.open("","_self",""),window.close())}catch(Vc){}else try{pc||(window.Ta=window,b=yc(),b==window.top?(window.open("","_self",""),window.close()):
zc(b))}catch(Vc){zc(window.top)}}function zc(a){if(a&&a.Ta){var b=document.createElement("a");b.href="data/goodbye.html";a.Ta.location.replace(b.href)}}function yc(){let a=window;if(a.Ta)return a;let b=0;for(;a!=window.top&&100>b++;){if(a.Ta)return a;a=a.parent}console.log("Unable to locate content root");return null}function Ac(){try{const a=document.getElementById("preloader");a&&a.parentNode.removeChild(a)}catch(a){}};function Bc(){this.nc=new P;this.ya=new P}Bc.prototype.sources=function(){return this.nc};function T(a,b,c){return b.textWithEquations(a.j||!c?"Equation":"")}function U(a,b){return b.join(a.j?",":"[,]")}function V(a,b,c){return a.j?J(b):I(`${b}_${c}`)}
class W{constructor({xc:a,zc:b,slideIndex:c}){this.j=a;this.Ub=b;this.u=!1;this.Qb=c}create(a){if(!a.submitted())return null;var b=(void 0!==this.Qb?"Slide"+this.Qb+"_":"")+"Q_"+a.slide().id();b=new Eb(I(b));this.g(b,a);return b}g(a,b){var c=b.slide();c=T(this,c.description(),!0);a.S=c;b.hasBeenVisited()&&(a.Ua(b.visitDuration()),c=b.firstVisitTime(),a.ub=c);if(c=b.slide().settings().evaluation()){if(a.la(b.maxScore()),b=b.review()){var d=Math.max(0,b.awardedScore());a.Ya=d;d="unanticipated";switch(b.status()){case "correct":d=
"correct";break;case "incorrect":case "partially":d="incorrect"}a.xa=d}}else a.xa="neutral";this.u=!!c}};class Cc extends W{g(a,b){super.g(a,b);a.l="matching";var c=b.contentState();b=b.slide().content();const {details:d,premises:e,responses:f,tc:g}=this.ob(b);c=this.fb(c.chainsStates(),e,f,g);a.B=c;this.u&&(c=[this.u?this.gb(b.chains(),e,f,g):c],a.D=c);a.J=d}ob(a){const b=new Bc,c=[],d=[];a=a.chains();for(var e of a){var f=e.object().slideObject();a=e.destination().slideObject();if(f&&0>c.indexOf(f)){c.push(f);const g=f.name();Q(b.sources(),new O(I(c.indexOf(f)+"_"+g),g))}a&&0>d.indexOf(a)&&(d.push(a),
f=a.name(),Q(b.ya,new O(I(d.indexOf(a)+"_"+f),f)))}e=this.j?J(d.length,!1):`${d.length}_${"None"}`;Q(b.ya,new O(e,"None"));return{details:b,premises:c,responses:d,tc:e}}fb(a,b,c,d){const e=[];var f=b.slice();for(const h of a){a=h.objectState().slideObject();var g=h.destinationState().slideObject();g=this.ea(a,g,b,c,d);e.push(g);f.splice(f.indexOf(a),1)}for(const h of f)f=this.ea(h,null,b,c,d),e.push(f);return this.qa(e)}gb(a,b,c,d){const e=[];for(const f of a){a=f.object().slideObject();const g=f.destination().slideObject();
a&&(a=this.ea(a,g,b,c,d),e.push(a))}return this.qa(e)}sa(a,b,c){this.j?b=J(b,c):(a=a.name(),a=I(a),b=`${b}_${a}`);return b}ea(a,b,c,d,e){a=this.sa(a,c.indexOf(a),!0);b=b?this.sa(b,d.indexOf(b),!1):e;d=this.j?".":"[.]";return I(a)+d+I(b)}qa(a){return a.join(this.j?",":"[,]")}};class Dc extends W{g(a,b){super.g(a,b);a.l="long-fill-in";b=b.contentState().response();a.B=b}};class Ec extends W{g(a,b){super.g(a,b);a.l=this.j?"other":"fill-in";var c=b.contentState();b=[];const d=[];for(var e of c.placeholders())b.push(e.response()),(c=e.correctAnswers())&&(this.Ub?d.push(c[0]):d.push(c.join("[,]")));a.B=b.join("[,]");if(this.u){e=d;if(this.j||this.Ub)e=[e.join(this.j?"[.]":"[,]")];a.D=e}}};class Fc extends W{g(a,b){super.g(a,b);a.l="choice";const c=[],d=[],e=new R;this.cb(b.contentState(),e,d,c);a.B=U(this,c);this.u&&(a.D=[U(this,d)]);a.J=e}cb(a,b,c,d){a.areas().forEach((f,g)=>{const h=f.area(),n=h.label().text();g=V(this,g,n);h.correct()&&c.push(g);a.areaSelected(f)&&d.push(g);Q(b.choices(),new O(g,n))});const e=a.areas().length;for(let f=e;f<e+a.freePointsCount();++f){const g=V(this,f,"Untitled_Spot");d.push(g)}}};class Gc extends W{g(a,b){super.g(a,b);a.l="choice";const c=[],d=new R;b.contentState().statementsStates().forEach((e,f)=>{var g=e.statement().text();Q(d.choices(),new O(V(this,f,g),g));if(g=e.selectedScale())e=c.push,f=f+"_"+g.text(),f=I(f),e.call(c,f)});a.B=U(this,c);a.J=d}};class Hc extends W{g(a,b){super.g(a,b);a.l="matching";var c=b.contentState();b=b.slide().content();const {details:d,premises:e,responses:f}=this.ob(b);c=this.fb(c.matches(),e,f,this.j);a.B=c;this.u&&(c=[this.gb(b.matches(),this.j)],a.D=c);a.J=d}ob(a){const b=new Bc,c=[],d=[];var e=a.matches();for(var f=0;f<e.count();++f){var g=e.getChoice(f);c.push(g.premise());d.push(g.response());const h=T(this,g.premise().textRange(),!1);g=T(this,g.response().textRange(),!1);Q(b.sources(),new O(I(f+"_"+h),h));
Q(b.ya,new O(I(f+"_"+g),g))}a=a.distractors();for(e=0;e<a.count();++e)f=a.getChoice(e),d.push(f),f=T(this,f.textRange(),!1),Q(b.ya,new O(I(e+"_"+f),f));return{details:b,premises:c,responses:d}}fb(a,b,c,d){const e=[];for(const f of a){a=f.premise();const g=f.response();a=this.ea(a,A(b,a),g,A(c,g),d);e.push(a)}return this.qa(e,d)}gb(a,b){const c=[];for(let e=0;e<a.count();++e){var d=a.getChoice(e);d=this.ea(d.premise(),e,d.response(),e,b);c.push(d)}return this.qa(c,b)}sa(a,b,c,d){return c?J(b,d):`${b}_${T(this,
a.textRange(),!1)}`}ea(a,b,c,d,e){a=this.sa(a,b,e,!0);c=this.sa(c,d,e,!1);e=e?".":"[.]";return I(a)+e+I(c)}qa(a,b){return a.join(b?",":"[,]")}};function Ic(){this.da=new P;this.Bb=[]}t(Ic,R);class Jc extends W{g(a,b){super.g(a,b);a.l="choice";var c=b.slide();b=b.contentState();const d=c.content();c=this.hb(c.content(),b);a.B=c;if(this.u){a:{for(c=0;c<d.count();++c){const e=d.getChoice(c);if(e.correct()){c=V(this,c,T(this,e.textRange(),!1));break a}}c=""}a.D=[c]}b=this.ra(d,b);a.J=b}ra(a,b){let c=new R;if(this.Cb()){c=new Ic;for(var d=0;d<b.count();++d){var e=b.getChoiceState(d);const f=e.choice(),g=a.getChoiceIndex(f);f.typeIn()&&(e=e.customAnswer(),c.Bb[g]=e)}}for(b=0;b<a.count();++b)d=
a.getChoice(b),d=T(this,d.textRange(),!1),Q(c.choices(),new O(I(`${b}_${d}`),d));return c}Cb(){return!this.u}hb(a,b){for(let c=0;c<b.count();++c){const d=b.getChoiceState(c);if(d.selected())return a=a.getChoiceIndex(d.choice()),V(this,a,T(this,d.choice().textRange(),!1))}return""}};function Kc(a){const b=new Bc;let c=0;Ea(a.placeholders(),(d,e)=>{e+="";Q(b.sources(),new O(e,e));d.values.forEach(f=>{f=f.text();var g=`${c++}_${f}`;g=I(g);Q(b.ya,new O(g,f))})});return b}
class Lc extends W{g(a,b){super.g(a,b);a.l=this.j?"other":"matching";const c=[],d=[],e=new R;b.contentState().placeholders().forEach((f,g)=>{const h=f.response(),n=f.correctAnswer();f.answers().forEach(l=>{var r=e.choices().count();r=`${g}[.]${I(r+"_"+l)}`;l==n&&d.push(r);l==h&&c.push(r);Q(e.choices(),new O(r,l))})});a.B=c.join("[,]");this.u&&Fb(a,[d.join("[,]")]);Gb(a,Kc(b.slide().content()))}};class Mc extends W{g(a,b){super.g(a,b);a.l="choice";const c=b.slide().content();var d=this.hb(c,b.contentState());a.B=d;this.u&&(d=[this.eb(c)],a.D=d);b=this.ra(c,b.contentState());a.J=b}ra(a,b){let c=new R;if(!this.u){c=new Ic;for(var d=0;d<b.count();++d){var e=b.getChoiceState(d);const f=e.choice(),g=a.getChoiceIndex(f);f.typeIn()&&(e=e.customAnswer(),c.Bb[g]=e)}}for(b=0;b<a.count();++b)d=a.getChoice(b),d=T(this,d.textRange(),!1),Q(c.choices(),new O(I(b+"_"+d),d));return c}hb(a,b){const c=[];for(let f=
0;f<b.count();++f){var d=b.getChoiceState(f);const g=d.choice();var e=T(this,g.textRange(),!1);d.selected()&&(d=a.getChoiceIndex(g),e=V(this,d,e),c.push(e))}return U(this,c)}eb(a){const b=[];for(let d=0;d<a.count();++d){var c=a.getChoice(d);c.correct()&&(c=V(this,d,T(this,c.textRange(),!1)),b.push(c))}return U(this,b)}};class Nc extends W{g(a,b){super.g(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.l=this.j||d?"fill-in":"numeric";a.B=b;if(this.u){d=(b=this.j||d)?"[,]":"[.]";const h=[];for(let n=0;n<c.count();++n){var e="",f=c.getAnswer(n),g=f.comparisonOperation();if("between"==g)g=f,e=g.leftOperand(),g=g.rightOperand(),e=b?"between "+e+" and "+g:e+"[:]"+g;else switch(f=f.operand(),g){case "notEqual":b&&
(e="not equal to "+f);break;case "equal":e=b?"equal to "+f:f+"[:]"+f;break;case "greaterThan":e=b?"greater than "+f:f+"[:]";break;case "greaterThanOrEqual":e=b?"greater than or equal to "+f:f+"[:]";break;case "lessThan":e=b?"less than "+f:"[:]"+f;break;case "lessThanOrEqual":e=b?"less than or equal to "+f:"[:]"+f}h.push(e)}a.D=[h.join(d)]}}};function Oc(a,b,c,d){const e=d?",":"[,]",f=[];c.forEach(g=>{const h=T(a,g.textRange(),!1);g=b.getChoiceIndex(g);f.push(I(d?J(g,!0):g+"_"+h))});return f.join(e)}class Pc extends W{g(a,b){super.g(a,b);a.l="sequencing";var c=b.slide().content();b=Oc(this,c,b.contentState().studentResponse(),this.j);a.B=b;this.u&&(b=[Oc(this,c,c,this.j)],a.D=b);c=this.ra(c);a.J=c}ra(a){const b=new R;for(let c=0;c<a.count();++c){const d=a.getChoice(c).textRange().text();Q(b.choices(),new O(I(c+"_"+d),d))}return b}};class Qc extends Jc{g(a,b){super.g(a,b);if(this.j&&this.u){a.l="true-false";var c=b.slide().content();b=b.contentState();const 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();let f=null;for(let g=0;2>g;++g){const h=b.getChoiceState(g);if(h.selected()){f=h.choice().id()==c?d:e;break}}a.B=f;a.D=[d]}}Cb(){return!1}};class Rc extends W{g(a,b){super.g(a,b);a.l="fill-in";var c=b.slide();b=b.contentState().response().text();a.B=b;this.u&&(c=this.eb(c.content()),a.D=c)}eb(a){const b=[];for(let c=0;c<a.count();++c){const d=a.getChoice(c);b.push(d.textRange().text())}return b}};function Sc(a,b){this.length=b;for(let c=0;c<b;++c)this[c]=a(c)};function Tc(a,b,c){for(const d of a){const e=d.response();null!=e&&(a=new Sc(f=>b.choices().getChoice(f),b.choices().count()),a=Ga(a,f=>Va(f.description())==e),c.push(a.id()))}}
class Uc extends W{g(a,b){super.g(a,b);a.l=this.j?"other":"choice";var c=b.slide().content();const d=[],e=new R;c=c.extraWords();for(var f of c){c=f.text();var g=e.choices().count();g=I(`${g}_${c}`);Q(e.choices(),new O(g,c))}b=b.contentState().placeholders();this.u&&(f=[],this.cb(b,e,f),a.D=[f.join("[,]")]);Tc(b,e,d);a.B=d.join("[,]");a.J=e}cb(a,b,c){for(const e of a){a=e.placeholder().value||"";var d=b.choices().count();d=I(`${d}_${a}`);c.push(d);Q(b.choices(),new O(d,a))}}};const Wc={FillInTheBlank:Ec,WordBank:Uc,TypeIn:Rc,Numeric:Nc,MultipleChoice:Jc,MultipleResponse:Mc,MultipleChoiceText:Lc,Sequence:Pc,Matching:Hc,TrueFalse:Qc,Essay:Dc,Hotspot:Fc,LikertScale:Gc,DND:Cc};class X{constructor(a,b,c,d,e,f){this.type=b;this.Xb=a;this.uc=c;this.maxScore=void 0!==d?d:null;this.vc=void 0!==e?e:null;this.yb=void 0!==f?f:null}xb(){const a={};a.e=this.Xb;a.p=this.uc;a.m=this.maxScore;a.r=this.vc;a.s=this.yb;a.t=this.type;return a}};function Xc(a){return a.ha.concat(a.Na)}function Yc(a){return{d:a.T,l:a.Da,v:a.ha,vh:a.Na,V:a.Oa,p:a.Ga,q:Object.fromEntries(Object.entries(a.Y).map(([b,c])=>[b,c.xb()]))}}class Zc{constructor(a){this.Ga=null;this.T=0;this.Da=-1;this.Y={};this.Na=[];this.ha=[];this.Oa=a}duration(){return this.T}Ua(a){this.T=a}xb(){return Yc(this)}};class $c extends yb{};var ad={Fc:"prompt",Ac:"always",Dc:"never"};q("ispring.presenter.presentation.settings.PresentationResumeMode",ad);q("PROMPT_TO_RESUME","prompt",ad);q("ALWAYS_RESUME","always",ad);q("NEVER_RESUME","never",ad);function bd(a){let b=0;for(let c=0;c<a.length;++c)b+=a[c];return b};class cd{constructor(a,b,c,d,e,f){this.pa=0;this.hc=f;this.Ma=e;this.ga={};this.P={};this.mc=b;this.Z=a;for(a=0;a<c.length;++a)b=c[a],e=b[1],this.P[b[0]]=e,0<e&&++this.pa;for(c=0;c<d.length;++c)a=d[c],b=a[1],this.ga[a[0]]=b,0<b&&++this.pa}slidesWeight(){return 0<this.Z?this.mc:0}slidesToView(){return this.Z}totalScore(){return this.Ma}passingScore(){return this.hc}};class dd{constructor(a,b,c,d){this.cc=d;this.lc=c;this.bb=b;this.Ja=a}timeLimit(){return this.Ja}message(){return this.cc}};function ed(a){return a.started()?Date.now()-a.Ia+a.fa:a.La}
class fd{constructor(a,b){this.La=this.ab=0;this.Ka=-1;this.fa=this.Ia=0;this.sb=!1;this.Tb=new H;this.Sb=b;this.tb=a}started(){return this.sb}start(a){this.started()||(this.La=this.fa=a||0,a=this.fa>=this.tb,a&&this.Sb||(this.sb=!0,this.Ia=Date.now(),a||(this.Ka=setTimeout(this.wa.bind(this),this.tb-this.fa))))}wa(){this.Sb&&(this.stop(),this.La=this.tb);this.Tb.Qa()}stop(){this.started()&&(this.sb=!1,0<this.Ka&&(clearTimeout(this.Ka),this.Ka=-1),this.ab=Date.now()-this.Ia,this.La=this.ab+this.fa)}}
;function gd(a,b){if(a.Wa){a.Wa=!1;if(a.Rb){a.$.stop();const c=a.A.view().playbackController();c.updateCurrentSlideState();hd(a);F(a,c.slideChangeEvent(),a.va,a)}F(a,a.A.closeWindowEvent(),a.Ea,a);F(a,a.A.stateChangedEvent(),a.Ib,a);b?a.v.suspend():a.v.terminate()}}function id(a,b){F(a,b.sessionModeChangedEvent(),a.Kb,a);b=b.slidePoolState();for(const c of b.questions())F(a,c.submittedEvent(),a.Jb,a)}
function jd(a){const b=Xc(a.o);if(0<a.V.Z&&0<b.length)return!0;const c=a.o.Y;return Object.keys(c).some(d=>{const e=-1!=b.indexOf(+d);return c[d].Xb&&e})}function kd(a){const b=a.V;if(!(0<b.Z||0<b.pa))return 0;let c=0;var d=a.o.Y;for(var e in d){const f=d[e],g=parseInt(e,10);c+=(null!=f.yb?f.yb:1)*(null!=(g in b.P?b.P[g]:null)?g in b.P?b.P[g]:0:g in b.ga?b.ga[g]:0)}d=0;0<b.Z&&(d=a.o.ha.length/a.o.Oa.length*b.slidesWeight());a=eb(b.P);a=bd(a);e=eb(b.ga);return(c+d)/(a+bd(e)+b.slidesWeight())}
class Y extends $c{constructor(a){super();this.W=this.A=this.H=this.O=this.X=null;this.Rb=this.Wa=!1;this.M="never"!=a.resumeMode;this.$a=null;this.L=!1;this.R=new dd(1E3*a.timeLimit,a.exitOnTimeout,a.showMessageOnTimeout,a.timeoutMessage);this.$=new fd(this.R.Ja,this.R.bb);this.V=new cd(a.slidesToView,a.slidesWeight,a.quizzes||{},a.scenarios||{},a.totalScore,a.passingScore)}start(a){if(this.L){const b=a.presentation().slides(),c=[];for(let d=0;d<b.visibleSlidesCount();++d){const e=b.getVisibleSlide(d).index();
c.push(e)}this.o=new Zc(c);this.A=a;this.Wa=!0;E(this,a.startupCompletedEvent(),this.Hb,this);E(this,a.closeWindowEvent(),this.Ea,this)}}Vb(){gd(this,this.M)}Hb(a,b){F(this,this.A.startupCompletedEvent(),this.Hb,this);this.Rb=!0;"resumePlayback"==a&&this.W&&(this.o=this.W);a=this.o.duration();this.$.started()||(E(this,this.$.Tb,this.wa,this),this.$.start(a));a=this.A.view().playbackController();E(this,a.slideChangeEvent(),this.va,this);a=a.currentSlideIndex();a==b&&this.va(a);E(this,this.A.stateChangedEvent(),
this.Ib,this)}Ea(){this.Vb()}wa(){this.R.lc&&alert(this.R.message());this.R.bb&&gd(this,!1)}va(a){if(this.H){var b=this.H;F(this,b.currentSessionChangedEvent(),this.Db,this);(b=b.currentSession())&&id(this,b);this.H=null}if(this.O){F(this,this.O.currentSessionChangedEvent(),this.Eb,this);if(this.X){b=[this.X];for(var c of b)c&&xb(this,c);this.X=null}this.O=null}c=this.A.view().playbackController();a in this.V.P&&(this.H=c.quizPlayer(),this.ib(this.H));a in this.V.ga&&(this.O=c.scenarioPlayer(),this.jb(this.O));
c=this.o;0<=c.Oa.indexOf(a)?(c=c.ha,0<=A(c,a)||c.push(a)):(c=c.Na,0<=A(c,a)||c.push(a));this.o.Da=a}Aa(a){E(this,a.sessionModeChangedEvent(),this.Kb,this);a=a.slidePoolState();for(const b of a.questions())E(this,b.submittedEvent(),this.Jb,this)}Kb(a){hd(this);"testing"==a&&this.mb()}mb(){var a;if(a=this.H.currentSession().evaluation()){var b=a.maxScore();const c=a.awardedScore(),d=a.awardedPercent()/100;a=new X(!0,"quiz",a.quizPassed(),b,c,d)}else a=new X(!1,"quiz",!0);b=this.A.view().playbackController().currentSlideIndex();
this.o.Y[`${b}`]=a}Ba(a){this.X=a;E(this,a.showTerminalSceneEvent(),this.Fa,this);E(this,a.onReplySelectedEvent(),this.Lb,this);a.completed()&&this.Fa()}Fa(){var a=this.O.currentSession(),b=a.currentSceneState().scene();null!=b&&(b.speech()&&0<b.speech().length||b.message()&&0<b.message().text().length)&&this.Lb();if(a.scenario().settings().evaluationSettings().enabled()){b=Math.max(0,a.maxScore());const c=Math.max(0,a.userScore()),d=0<b-0?c/(b-0):1;a=new X(!0,"scenario",a.scenarioPassed(),b,c,d)}else a=
new X(!1,"scenario",!0);b=this.A.view().playbackController().currentSlideIndex();this.o.Y[`${b}`]=a}ib(a){E(this,a.currentSessionChangedEvent(),this.Db,this);(a=a.currentSession())&&this.Aa(a)}jb(a){const b=a.currentSession();null!=b&&this.Ba(b);E(this,a.currentSessionChangedEvent(),this.Eb,this)}Db(){const a=this.H.currentSession();this.$a&&id(this,this.$a);(this.$a=a)&&this.Aa(a)}Eb(){if(this.X){var a=[this.X];for(const b of a)b&&xb(this,b);this.X=null}a=this.O.currentSession();this.Ba(a)}}
Y.prototype.closeLms=Y.prototype.Vb;Y.prototype.start=Y.prototype.start;function hd(a){var b=ed(a.$);var c=a.$;c=c.started()?Date.now()-c.Ia:c.ab;a.o.Ua(b);a.v.i.h("cmi.core.session_time",wc(c/1E3));b=a.A.persistState();a.o.Ga=b;b=a.o.xb();a=a.v.i;b=Ob(new Nb,b);b=LZString.compressToBase64(b);a.h("cmi.suspend_data",b)}
function ld(a,b){var c=new Zc(C(b,"V",[]));c.T=C(b,"d",0);c.Da=C(b,"l",-1);c.ha=C(b,"v",[]);c.Na=C(b,"vh",[]);c.Ga=C(b,"p",null);const d={};b=C(b,"q",{});for(const f in b){var e=b[f];d[f]=new X(e.e,e.t,e.p,e.m,e.r,e.s)}c.Y=d;a.W=c;c=a.W.duration();if(a.R.bb&&c>=a.R.Ja)alert("You have already exceeded available time for viewing this content."),Ac(),xc();else return a.W.Ga}
function md(a){var b=a.V;if(0<b.Z||0<b.pa){var c=kd(a);a.v.la(c,0,b.Ma,b.Ma*c)}b=a.v;c=b.ca;a:{var d=a.V;if(0<d.Z||0<d.pa){if(a.M){var e=a.R.Ja,f=ed(a.$);if(!jd(a)&&e>f){d=null;break a}}d=kd(a)*d.Ma>=d.passingScore()}else d=null}a:{e=a.V;f=a.o.ha;const g=a.o.Oa,h=a.o.Y,n=a.A.presentation().slides();for(let l=0;l<n.count();++l)if(g.includes(l)&&!f.includes(l)||(l in e.P||l in e.ga)&&!h[l+""]){e=!1;break a}e=!0}c.call(b,d,e);hd(a);a.v.commit()}
class nd extends Y{constructor(a,b){super(b);this.Ca={};this.ua=null;this.Pb=new Db;this.Xa=a;this.U="";const c=new Ua(b.flags);var d=b.tincan.auth,e=d.login;e&&Sa(e,Ra,Pa);(d=d.password)&&Sa(d,Qa,Oa);b=new kb("ispring://presentations/"+encodeURIComponent(b.presentationId),c,b.tincan.i18n,this.M);try{a:{var f=this.Pb;const h=window.iSpring.LMSAPI;switch(a){case "1.2":var g=new h.Scorm12Api(b);break a;case "2004":g=new h.Scorm2004Api(b);break a;case "aicc":g=new h.AiccApi(b);break a;case "tincan":g=
new h.TinCanApi(b,f);break a;case "cmi-5":g=new h.Cmi5Api(b,f);break a;default:throw Error("unknown api");}}this.v=g}catch(h){tc()&&alert(h)}}initialize(a){this.ua=a;null==this.v?this.Fb():this.v.initialize(this.ec.bind(this),this.Fb.bind(this))}ec(){this.U="normal";var a=null;var b=this.v.i.getValue("cmi.suspend_data");if(b)a:{b=LZString.decompressFromBase64(b);try{const d=JSON.parse(b);var c="object"==typeof d?d:null;break a}catch(d){}c=null}else c=null;switch(this.U){case "browse":a=null;break;
case "review":c&&(a=ld(this,c));break;case "normal":this.M&&c&&(a=ld(this,c))}window.launchMode=this.U;void 0!==a&&(this.L=!0,this.ua&&this.ua(a))}Fb(){this.ua&&this.ua()}start(a){super.start(a);this.L&&(a.startupEvent().addHandler(this.Gb,this),this.Pb.oc.Qa(a.presentation().title()))}Gb(a){this.A.startupEvent().removeHandler(this.Gb,this);var b=(this.M||"review"==this.U)&&this.W?this.W.Da:-1;0<=b?(a.setSlideIndex(b),a.setAction("resumePlayback")):(b=this.A.view().playbackController().firstSlideIndex(),
a.setSlideIndex(b),a.setAction("gotoSlide"))}va(a){super.va(a);a=this.A.presentation().slides().getSlide(a);"normal"==this.U&&a.title()&&a.title();md(this)}ib(a){var b=ha(a)+"";b in this.Ca||(this.Ca[b]=!0,(b=od(this.v.i))&&a.setUserInfo(b.id(),{USER_NAME:b.name(),USER_EMAIL:b.email()}));super.ib(a)}jb(a){var b=ha(a)+"";if(!(b in this.Ca)){this.Ca[b]=!0;b=od(this.v.i);const c=!a.userInfoIsLoaded();b&&c&&a.setUserInfo(b.id(),{USER_NAME:b.name(),USER_EMAIL:b.email()})}super.jb(a)}Ba(a){"normal"==this.U&&
(a.scenario().id(),a.scenario().title(),super.Ba(a))}Fa(){super.Fa();const a=this.O.currentSession();a.duration();a.scenario().settings().evaluationSettings().enabled()&&(a.maxScore(),a.userScore(),a.scenarioPassed());a.scenario().id();a.scenario().title();md(this)}Lb(a){const b=this.O.currentSession(),c=b.currentSceneState().scene();null!=c&&(new jc(b,c,"1.2"==this.Xa,a)).create().forEach(d=>{if("tincan"==this.Xa||"choice"==d.type()){var e="/scenarios/"+b.scenario().id();d.id();d.type();this.v.Pa(e,
d)}})}Aa(a){"normal"==this.U&&(super.Aa(a),this.H.id(),a.quiz().title())}mb(){super.mb();const a=this.H.currentSession();a.quizDuration();var b=a.evaluation();b&&(b.maxScore(),b.awardedScore(),b.quizPassed(),b=this.H.currentSession(),(new Ib(this.v,b)).rb.settings());this.H.id();a.quiz().title();md(this)}Jb(a){this.H.currentSession();if(a.initiated()){const d=this.A.view().playbackController().currentSlideIndex()+1;var b=a.slide().type(),c=this.Xa;if(a=(new Wc[b]({xc:"1.2"==c||"aicc"==c,zc:"tincan"==
c,slideIndex:d})).create(a))b="/quizzes/"+this.H.id(),a.id(),this.v.Pa(b,a)}}wa(){md(this);super.wa()}Ea(a){a.preventAction();super.Ea(a)}Ib(a){a.actionPrevented()||(a.preventAction(),hd(this))}}nd.prototype.initialize=nd.prototype.initialize;var pd=null;q("iSpring.LMS.create",function(a,b,c){return pd=new nd(b,c)});q("iSpring.LMS.instance",function(){return pd});function qd(){}k=qd.prototype;k.i=null;k.Wb=function(){throw Error("unimplemented abstract method");};k.initialize=function(a,b){if(this.i=this.Wb()){var c=this.i;c.L?a():null!=c.G?(c.L=c.G.initialize(),c.L?a():b()):(c.L=!1,b())}else b()};k.commit=function(){this.i.commit()};k.suspend=function(){this.i.terminate(!0);Ac();xc()};k.terminate=function(){this.i.terminate(!1);Ac();xc()};k.ca=function(a,b){this.i.Va(a);this.i.ca(a,b)};k.la=function(a,b,c,d){this.i.la(d,b,c,a)};k.Pa=function(a,b){this.i.Pa(b)};class rd{constructor(a,b){this.oa=a;this.nb=!1;this.Za=0;this.M=b}initialize(){try{return"true"==this.oa.LMSInitialize("").toString()}catch(a){}return!1}terminate(a){this.h("cmi.core.exit",a?this.nb?"":"suspend":"");this.commit();try{return"true"==this.oa.LMSFinish("").toString()}catch(b){}return!1}commit(){0==this.Za&&this.h("cmi.core.exit",this.M?this.nb?"":"suspend":"");try{const a="true"==this.oa.LMSCommit("").toString();this.Za+=1;return a}catch(a){}return!1}Va(a){this.nb=a}getValue(a){try{return this.oa.LMSGetValue(a)}catch(b){}return""}h(a,
b){"number"===typeof b&&(b=parseFloat(b.toFixed(2))+"");try{return"true"==this.oa.LMSSetValue(a,b).toString()}catch(c){}return!1}};var Z={id:"id",type:"type",score:"weighting",pc:"correct_responses.%INDEX%.pattern",zb:"student_response",result:"result",duration:"latency",Ab:"time"},sd={};q("Tincan.MobileHttpTransport.onRequestComplete",function(a,b,c){const d=null.bc[a];if(null==d)return"";delete null.bc[a];bc(()=>{if(b)d.onload(c);else d.onerror()},10);return"ok"});function od(a){return new Hb(a.getValue("cmi.core.student_id"),a.getValue("cmi.core.student_name"))};class td{constructor(a){const b=vc();this.G=b?new rd(b,a):null;this.L=!1}initialize(){return this.L?!0:this.L=null!=this.G?this.G.initialize():!1}terminate(a){return null!=this.G?this.G.terminate(a):!1}commit(){return null!=this.G?this.G.commit():!1}getValue(a){return null!=this.G?this.G.getValue(a):""}h(a,b){return null!=this.G?this.G.h(a,b):!1}la(a,b,c){this.h("cmi.core.score.raw",a);this.h("cmi.core.score.min",b);this.h("cmi.core.score.max",c)}ca(a,b){null!==a?this.h("cmi.core.lesson_status",a?
"passed":"failed"):null!==b?this.h("cmi.core.lesson_status",b?"completed":"incomplete"):this.h("cmi.core.lesson_status","unknown")}Va(a){this.G.Va(a)}Pa(a){var b=a.id();if(a.id()in sd)var c=sd[b];else c=parseInt(this.getValue("cmi.interactions._count"),10),sd[b]=c;if(!(0>c)){b="cmi.interactions."+c+".";c=a.id()+"_"+a.description();c=I(c.substr(0,255));this.h(b+Z.id,c);this.h(b+Z.type,a.type());this.h(b+Z.score,a.score());c=a.D||[];for(var d=0;d<c.length;++d){var e=Z.pc.replace("%INDEX%",d);this.h(b+
e,c[d])}c=a.zb();null!=c&&this.h(b+Z.zb,c);c=this.h;d=b+Z.result;e=a.result();c.call(this,d,"incorrect"==e?"wrong":e);c=a.duration();null!==c&&this.h(b+Z.duration,wc(c/1E3));a=a.Ab();null!==a&&this.h(b+Z.Ab,wc(3600*a.getHours()+60*a.getMinutes()+a.getSeconds()))}}};function ud(a){this.pb=a.pb;this.M=a.M}t(ud,qd);q("iSpring.LMSAPI.Scorm12Api",ud);ud.prototype.Wb=function(){return new td(this.M)};ud.prototype.ca=function(a,b){const c=null===a;b=c?b:a;this.i.Va(a);null!==b?!c&&this.pb.fc&(b?2:1)?this.i.ca(b,null):this.i.ca(null,b):this.i.ca(null,null)};let uc=()=>!1;function vd(a,b){uc()&&(b?p.console.error(a):p.console.warn(a))}function Cb(a,b){const c=a.stack||a.toString();0>String(c).indexOf(a.message)&&vd(a.message,b);vd(c,b)}window.onerror=function(...a){const [b,,,,c]=a;c?Cb(c,!0):vd(b,!0);return!0};pa=a=>{try{throw Error(a.message);}catch(b){Cb(b,!1)}};p.console||(window._log="",p.console={log:function(a){window._log+="\n"+a},warn:function(a){window._log+="\nwarn: "+a},error:function(a){window._log+="\nerror: "+a}});})();
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}
