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