/*!
 * ActivePresenter HTML5 Output File
 * Copyright (c) Atomi Systems, Inc. All rights reserved.
 * https://atomisystems.com/activepresenter/
 * Version: 8.5.0
 * Date: 2021.06.02
 */
/*!
 * jQuery JavaScript Library v3.2.1
 * https://jquery.com/
 *
 * Includes Sizzle.js
 * https://sizzlejs.com/
 *
 * Copyright JS Foundation and other contributors
 * Released under the MIT license
 * https://jquery.org/license
 *
 * Date: 2017-03-20T18:59Z
 */
!function(e,t){"use strict";"object"==typeof module&&"object"==typeof module.exports?module.exports=e.document?t(e,!0):function(e){if(!e.document)throw new Error("jQuery requires a window with a document");return t(e)}:t(e)}("undefined"!=typeof window?window:this,function(e,t){"use strict";var n=[],i=e.document,o=Object.getPrototypeOf,r=n.slice,s=n.concat,a=n.push,l=n.indexOf,u={},c=u.toString,p=u.hasOwnProperty,f=p.toString,h=f.call(Object),d={};function g(e,t){var n=(t=t||i).createElement("script");n.text=e,t.head.appendChild(n).parentNode.removeChild(n)}var m="3.2.1",v=function(e,t){return new v.fn.init(e,t)},y=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,b=/^-ms-/,x=/-([a-z])/g,w=function(e,t){return t.toUpperCase()};function C(e){var t=!!e&&"length"in e&&e.length,n=v.type(e);return"function"!==n&&!v.isWindow(e)&&("array"===n||0===t||"number"==typeof t&&t>0&&t-1 in e)}v.fn=v.prototype={jquery:m,constructor:v,length:0,toArray:function(){return r.call(this)},get:function(e){return null==e?r.call(this):e<0?this[e+this.length]:this[e]},pushStack:function(e){var t=v.merge(this.constructor(),e);return t.prevObject=this,t},each:function(e){return v.each(this,e)},map:function(e){return this.pushStack(v.map(this,function(t,n){return e.call(t,n,t)}))},slice:function(){return this.pushStack(r.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(e){var t=this.length,n=+e+(e<0?t:0);return this.pushStack(n>=0&&n<t?[this[n]]:[])},end:function(){return this.prevObject||this.constructor()},push:a,sort:n.sort,splice:n.splice},v.extend=v.fn.extend=function(){var e,t,n,i,o,r,s=arguments[0]||{},a=1,l=arguments.length,u=!1;for("boolean"==typeof s&&(u=s,s=arguments[a]||{},a++),"object"==typeof s||v.isFunction(s)||(s={}),a===l&&(s=this,a--);a<l;a++)if(null!=(e=arguments[a]))for(t in e)n=s[t],s!==(i=e[t])&&(u&&i&&(v.isPlainObject(i)||(o=Array.isArray(i)))?(o?(o=!1,r=n&&Array.isArray(n)?n:[]):r=n&&v.isPlainObject(n)?n:{},s[t]=v.extend(u,r,i)):void 0!==i&&(s[t]=i));return s},v.extend({expando:"jQuery"+(m+Math.random()).replace(/\D/g,""),isReady:!0,error:function(e){throw new Error(e)},noop:function(){},isFunction:function(e){return"function"===v.type(e)},isWindow:function(e){return null!=e&&e===e.window},isNumeric:function(e){var t=v.type(e);return("number"===t||"string"===t)&&!isNaN(e-parseFloat(e))},isPlainObject:function(e){var t,n;return!(!e||"[object Object]"!==c.call(e))&&(!(t=o(e))||"function"==typeof(n=p.call(t,"constructor")&&t.constructor)&&f.call(n)===h)},isEmptyObject:function(e){var t;for(t in e)return!1;return!0},type:function(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?u[c.call(e)]||"object":typeof e},globalEval:function(e){g(e)},camelCase:function(e){return e.replace(b,"ms-").replace(x,w)},each:function(e,t){var n,i=0;if(C(e))for(n=e.length;i<n&&!1!==t.call(e[i],i,e[i]);i++);else for(i in e)if(!1===t.call(e[i],i,e[i]))break;return e},trim:function(e){return null==e?"":(e+"").replace(y,"")},makeArray:function(e,t){var n=t||[];return null!=e&&(C(Object(e))?v.merge(n,"string"==typeof e?[e]:e):a.call(n,e)),n},inArray:function(e,t,n){return null==t?-1:l.call(t,e,n)},merge:function(e,t){for(var n=+t.length,i=0,o=e.length;i<n;i++)e[o++]=t[i];return e.length=o,e},grep:function(e,t,n){for(var i=[],o=0,r=e.length,s=!n;o<r;o++)!t(e[o],o)!==s&&i.push(e[o]);return i},map:function(e,t,n){var i,o,r=0,a=[];if(C(e))for(i=e.length;r<i;r++)null!=(o=t(e[r],r,n))&&a.push(o);else for(r in e)null!=(o=t(e[r],r,n))&&a.push(o);return s.apply([],a)},guid:1,proxy:function(e,t){var n,i,o;if("string"==typeof t&&(n=e[t],t=e,e=n),v.isFunction(e))return i=r.call(arguments,2),(o=function(){return e.apply(t||this,i.concat(r.call(arguments)))}).guid=e.guid=e.guid||v.guid++,o},now:Date.now,support:d}),"function"==typeof Symbol&&(v.fn[Symbol.iterator]=n[Symbol.iterator]),v.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(e,t){u["[object "+t+"]"]=t.toLowerCase()});var _=
/*!
 * Sizzle CSS Selector Engine v2.3.3
 * https://sizzlejs.com/
 *
 * Copyright jQuery Foundation and other contributors
 * Released under the MIT license
 * http://jquery.org/license
 *
 * Date: 2016-08-08
 */
function(e){var t,n,i,o,r,s,a,l,u,c,p,f,h,d,g,m,v,y,b,x="sizzle"+1*new Date,w=e.document,C=0,_=0,T=se(),E=se(),k=se(),S=function(e,t){return e===t&&(p=!0),0},P={}.hasOwnProperty,N=[],D=N.pop,A=N.push,M=N.push,j=N.slice,H=function(e,t){for(var n=0,i=e.length;n<i;n++)if(e[n]===t)return n;return-1},L="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",O="[\\x20\\t\\r\\n\\f]",I="(?:\\\\.|[\\w-]|[^\0-\\xa0])+",F="\\["+O+"*("+I+")(?:"+O+"*([*^$|!~]?=)"+O+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+I+"))|)"+O+"*\\]",q=":("+I+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+F+")*)|.*)\\)|)",R=new RegExp(O+"+","g"),W=new RegExp("^"+O+"+|((?:^|[^\\\\])(?:\\\\.)*)"+O+"+$","g"),B=new RegExp("^"+O+"*,"+O+"*"),$=new RegExp("^"+O+"*([>+~]|"+O+")"+O+"*"),z=new RegExp("="+O+"*([^\\]'\"]*?)"+O+"*\\]","g"),X=new RegExp(q),U=new RegExp("^"+I+"$"),Y={ID:new RegExp("^#("+I+")"),CLASS:new RegExp("^\\.("+I+")"),TAG:new RegExp("^("+I+"|[*])"),ATTR:new RegExp("^"+F),PSEUDO:new RegExp("^"+q),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+O+"*(even|odd|(([+-]|)(\\d*)n|)"+O+"*(?:([+-]|)"+O+"*(\\d+)|))"+O+"*\\)|)","i"),bool:new RegExp("^(?:"+L+")$","i"),needsContext:new RegExp("^"+O+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+O+"*((?:-\\d)?\\d*)"+O+"*\\)|)(?=[^-]|$)","i")},G=/^(?:input|select|textarea|button)$/i,V=/^h\d$/i,Q=/^[^{]+\{\s*\[native \w/,K=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,J=/[+~]/,Z=new RegExp("\\\\([\\da-f]{1,6}"+O+"?|("+O+")|.)","ig"),ee=function(e,t,n){var i="0x"+t-65536;return i!=i||n?t:i<0?String.fromCharCode(i+65536):String.fromCharCode(i>>10|55296,1023&i|56320)},te=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,ne=function(e,t){return t?"\0"===e?"�":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16)+" ":"\\"+e},ie=function(){f()},oe=ye(function(e){return!0===e.disabled&&("form"in e||"label"in e)},{dir:"parentNode",next:"legend"});try{M.apply(N=j.call(w.childNodes),w.childNodes),N[w.childNodes.length].nodeType}catch(e){M={apply:N.length?function(e,t){A.apply(e,j.call(t))}:function(e,t){for(var n=e.length,i=0;e[n++]=t[i++];);e.length=n-1}}}function re(e,t,i,o){var r,a,u,c,p,d,v,y=t&&t.ownerDocument,C=t?t.nodeType:9;if(i=i||[],"string"!=typeof e||!e||1!==C&&9!==C&&11!==C)return i;if(!o&&((t?t.ownerDocument||t:w)!==h&&f(t),t=t||h,g)){if(11!==C&&(p=K.exec(e)))if(r=p[1]){if(9===C){if(!(u=t.getElementById(r)))return i;if(u.id===r)return i.push(u),i}else if(y&&(u=y.getElementById(r))&&b(t,u)&&u.id===r)return i.push(u),i}else{if(p[2])return M.apply(i,t.getElementsByTagName(e)),i;if((r=p[3])&&n.getElementsByClassName&&t.getElementsByClassName)return M.apply(i,t.getElementsByClassName(r)),i}if(n.qsa&&!k[e+" "]&&(!m||!m.test(e))){if(1!==C)y=t,v=e;else if("object"!==t.nodeName.toLowerCase()){for((c=t.getAttribute("id"))?c=c.replace(te,ne):t.setAttribute("id",c=x),a=(d=s(e)).length;a--;)d[a]="#"+c+" "+ve(d[a]);v=d.join(","),y=J.test(e)&&ge(t.parentNode)||t}if(v)try{return M.apply(i,y.querySelectorAll(v)),i}catch(e){}finally{c===x&&t.removeAttribute("id")}}}return l(e.replace(W,"$1"),t,i,o)}function se(){var e=[];return function t(n,o){return e.push(n+" ")>i.cacheLength&&delete t[e.shift()],t[n+" "]=o}}function ae(e){return e[x]=!0,e}function le(e){var t=h.createElement("fieldset");try{return!!e(t)}catch(e){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function ue(e,t){for(var n=e.split("|"),o=n.length;o--;)i.attrHandle[n[o]]=t}function ce(e,t){var n=t&&e,i=n&&1===e.nodeType&&1===t.nodeType&&e.sourceIndex-t.sourceIndex;if(i)return i;if(n)for(;n=n.nextSibling;)if(n===t)return-1;return e?1:-1}function pe(e){return function(t){return"input"===t.nodeName.toLowerCase()&&t.type===e}}function fe(e){return function(t){var n=t.nodeName.toLowerCase();return("input"===n||"button"===n)&&t.type===e}}function he(e){return function(t){return"form"in t?t.parentNode&&!1===t.disabled?"label"in t?"label"in t.parentNode?t.parentNode.disabled===e:t.disabled===e:t.isDisabled===e||t.isDisabled!==!e&&oe(t)===e:t.disabled===e:"label"in t&&t.disabled===e}}function de(e){return ae(function(t){return t=+t,ae(function(n,i){for(var o,r=e([],n.length,t),s=r.length;s--;)n[o=r[s]]&&(n[o]=!(i[o]=n[o]))})})}function ge(e){return e&&void 0!==e.getElementsByTagName&&e}n=re.support={},r=re.isXML=function(e){var t=e&&(e.ownerDocument||e).documentElement;return!!t&&"HTML"!==t.nodeName},f=re.setDocument=function(e){var t,o,s=e?e.ownerDocument||e:w;return s!==h&&9===s.nodeType&&s.documentElement?(d=(h=s).documentElement,g=!r(h),w!==h&&(o=h.defaultView)&&o.top!==o&&(o.addEventListener?o.addEventListener("unload",ie,!1):o.attachEvent&&o.attachEvent("onunload",ie)),n.attributes=le(function(e){return e.className="i",!e.getAttribute("className")}),n.getElementsByTagName=le(function(e){return e.appendChild(h.createComment("")),!e.getElementsByTagName("*").length}),n.getElementsByClassName=Q.test(h.getElementsByClassName),n.getById=le(function(e){return d.appendChild(e).id=x,!h.getElementsByName||!h.getElementsByName(x).length}),n.getById?(i.filter.ID=function(e){var t=e.replace(Z,ee);return function(e){return e.getAttribute("id")===t}},i.find.ID=function(e,t){if(void 0!==t.getElementById&&g){var n=t.getElementById(e);return n?[n]:[]}}):(i.filter.ID=function(e){var t=e.replace(Z,ee);return function(e){var n=void 0!==e.getAttributeNode&&e.getAttributeNode("id");return n&&n.value===t}},i.find.ID=function(e,t){if(void 0!==t.getElementById&&g){var n,i,o,r=t.getElementById(e);if(r){if((n=r.getAttributeNode("id"))&&n.value===e)return[r];for(o=t.getElementsByName(e),i=0;r=o[i++];)if((n=r.getAttributeNode("id"))&&n.value===e)return[r]}return[]}}),i.find.TAG=n.getElementsByTagName?function(e,t){return void 0!==t.getElementsByTagName?t.getElementsByTagName(e):n.qsa?t.querySelectorAll(e):void 0}:function(e,t){var n,i=[],o=0,r=t.getElementsByTagName(e);if("*"===e){for(;n=r[o++];)1===n.nodeType&&i.push(n);return i}return r},i.find.CLASS=n.getElementsByClassName&&function(e,t){if(void 0!==t.getElementsByClassName&&g)return t.getElementsByClassName(e)},v=[],m=[],(n.qsa=Q.test(h.querySelectorAll))&&(le(function(e){d.appendChild(e).innerHTML="<a id='"+x+"'></a><select id='"+x+"-\r\\' msallowcapture=''><option selected=''></option></select>",e.querySelectorAll("[msallowcapture^='']").length&&m.push("[*^$]="+O+"*(?:''|\"\")"),e.querySelectorAll("[selected]").length||m.push("\\["+O+"*(?:value|"+L+")"),e.querySelectorAll("[id~="+x+"-]").length||m.push("~="),e.querySelectorAll(":checked").length||m.push(":checked"),e.querySelectorAll("a#"+x+"+*").length||m.push(".#.+[+~]")}),le(function(e){e.innerHTML="<a href='' disabled='disabled'></a><select disabled='disabled'><option/></select>";var t=h.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),e.querySelectorAll("[name=d]").length&&m.push("name"+O+"*[*^$|!~]?="),2!==e.querySelectorAll(":enabled").length&&m.push(":enabled",":disabled"),d.appendChild(e).disabled=!0,2!==e.querySelectorAll(":disabled").length&&m.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),m.push(",.*:")})),(n.matchesSelector=Q.test(y=d.matches||d.webkitMatchesSelector||d.mozMatchesSelector||d.oMatchesSelector||d.msMatchesSelector))&&le(function(e){n.disconnectedMatch=y.call(e,"*"),y.call(e,"[s!='']:x"),v.push("!=",q)}),m=m.length&&new RegExp(m.join("|")),v=v.length&&new RegExp(v.join("|")),t=Q.test(d.compareDocumentPosition),b=t||Q.test(d.contains)?function(e,t){var n=9===e.nodeType?e.documentElement:e,i=t&&t.parentNode;return e===i||!(!i||1!==i.nodeType||!(n.contains?n.contains(i):e.compareDocumentPosition&&16&e.compareDocumentPosition(i)))}:function(e,t){if(t)for(;t=t.parentNode;)if(t===e)return!0;return!1},S=t?function(e,t){if(e===t)return p=!0,0;var i=!e.compareDocumentPosition-!t.compareDocumentPosition;return i||(1&(i=(e.ownerDocument||e)===(t.ownerDocument||t)?e.compareDocumentPosition(t):1)||!n.sortDetached&&t.compareDocumentPosition(e)===i?e===h||e.ownerDocument===w&&b(w,e)?-1:t===h||t.ownerDocument===w&&b(w,t)?1:c?H(c,e)-H(c,t):0:4&i?-1:1)}:function(e,t){if(e===t)return p=!0,0;var n,i=0,o=e.parentNode,r=t.parentNode,s=[e],a=[t];if(!o||!r)return e===h?-1:t===h?1:o?-1:r?1:c?H(c,e)-H(c,t):0;if(o===r)return ce(e,t);for(n=e;n=n.parentNode;)s.unshift(n);for(n=t;n=n.parentNode;)a.unshift(n);for(;s[i]===a[i];)i++;return i?ce(s[i],a[i]):s[i]===w?-1:a[i]===w?1:0},h):h},re.matches=function(e,t){return re(e,null,null,t)},re.matchesSelector=function(e,t){if((e.ownerDocument||e)!==h&&f(e),t=t.replace(z,"='$1']"),n.matchesSelector&&g&&!k[t+" "]&&(!v||!v.test(t))&&(!m||!m.test(t)))try{var i=y.call(e,t);if(i||n.disconnectedMatch||e.document&&11!==e.document.nodeType)return i}catch(e){}return re(t,h,null,[e]).length>0},re.contains=function(e,t){return(e.ownerDocument||e)!==h&&f(e),b(e,t)},re.attr=function(e,t){(e.ownerDocument||e)!==h&&f(e);var o=i.attrHandle[t.toLowerCase()],r=o&&P.call(i.attrHandle,t.toLowerCase())?o(e,t,!g):void 0;return void 0!==r?r:n.attributes||!g?e.getAttribute(t):(r=e.getAttributeNode(t))&&r.specified?r.value:null},re.escape=function(e){return(e+"").replace(te,ne)},re.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},re.uniqueSort=function(e){var t,i=[],o=0,r=0;if(p=!n.detectDuplicates,c=!n.sortStable&&e.slice(0),e.sort(S),p){for(;t=e[r++];)t===e[r]&&(o=i.push(r));for(;o--;)e.splice(i[o],1)}return c=null,e},o=re.getText=function(e){var t,n="",i=0,r=e.nodeType;if(r){if(1===r||9===r||11===r){if("string"==typeof e.textContent)return e.textContent;for(e=e.firstChild;e;e=e.nextSibling)n+=o(e)}else if(3===r||4===r)return e.nodeValue}else for(;t=e[i++];)n+=o(t);return n},(i=re.selectors={cacheLength:50,createPseudo:ae,match:Y,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(Z,ee),e[3]=(e[3]||e[4]||e[5]||"").replace(Z,ee),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||re.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&re.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return Y.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&X.test(n)&&(t=s(n,!0))&&(t=n.indexOf(")",n.length-t)-n.length)&&(e[0]=e[0].slice(0,t),e[2]=n.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(Z,ee).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=T[e+" "];return t||(t=new RegExp("(^|"+O+")"+e+"("+O+"|$)"))&&T(e,function(e){return t.test("string"==typeof e.className&&e.className||void 0!==e.getAttribute&&e.getAttribute("class")||"")})},ATTR:function(e,t,n){return function(i){var o=re.attr(i,e);return null==o?"!="===t:!t||(o+="","="===t?o===n:"!="===t?o!==n:"^="===t?n&&0===o.indexOf(n):"*="===t?n&&o.indexOf(n)>-1:"$="===t?n&&o.slice(-n.length)===n:"~="===t?(" "+o.replace(R," ")+" ").indexOf(n)>-1:"|="===t&&(o===n||o.slice(0,n.length+1)===n+"-"))}},CHILD:function(e,t,n,i,o){var r="nth"!==e.slice(0,3),s="last"!==e.slice(-4),a="of-type"===t;return 1===i&&0===o?function(e){return!!e.parentNode}:function(t,n,l){var u,c,p,f,h,d,g=r!==s?"nextSibling":"previousSibling",m=t.parentNode,v=a&&t.nodeName.toLowerCase(),y=!l&&!a,b=!1;if(m){if(r){for(;g;){for(f=t;f=f[g];)if(a?f.nodeName.toLowerCase()===v:1===f.nodeType)return!1;d=g="only"===e&&!d&&"nextSibling"}return!0}if(d=[s?m.firstChild:m.lastChild],s&&y){for(b=(h=(u=(c=(p=(f=m)[x]||(f[x]={}))[f.uniqueID]||(p[f.uniqueID]={}))[e]||[])[0]===C&&u[1])&&u[2],f=h&&m.childNodes[h];f=++h&&f&&f[g]||(b=h=0)||d.pop();)if(1===f.nodeType&&++b&&f===t){c[e]=[C,h,b];break}}else if(y&&(b=h=(u=(c=(p=(f=t)[x]||(f[x]={}))[f.uniqueID]||(p[f.uniqueID]={}))[e]||[])[0]===C&&u[1]),!1===b)for(;(f=++h&&f&&f[g]||(b=h=0)||d.pop())&&((a?f.nodeName.toLowerCase()!==v:1!==f.nodeType)||!++b||(y&&((c=(p=f[x]||(f[x]={}))[f.uniqueID]||(p[f.uniqueID]={}))[e]=[C,b]),f!==t)););return(b-=o)===i||b%i==0&&b/i>=0}}},PSEUDO:function(e,t){var n,o=i.pseudos[e]||i.setFilters[e.toLowerCase()]||re.error("unsupported pseudo: "+e);return o[x]?o(t):o.length>1?(n=[e,e,"",t],i.setFilters.hasOwnProperty(e.toLowerCase())?ae(function(e,n){for(var i,r=o(e,t),s=r.length;s--;)e[i=H(e,r[s])]=!(n[i]=r[s])}):function(e){return o(e,0,n)}):o}},pseudos:{not:ae(function(e){var t=[],n=[],i=a(e.replace(W,"$1"));return i[x]?ae(function(e,t,n,o){for(var r,s=i(e,null,o,[]),a=e.length;a--;)(r=s[a])&&(e[a]=!(t[a]=r))}):function(e,o,r){return t[0]=e,i(t,null,r,n),t[0]=null,!n.pop()}}),has:ae(function(e){return function(t){return re(e,t).length>0}}),contains:ae(function(e){return e=e.replace(Z,ee),function(t){return(t.textContent||t.innerText||o(t)).indexOf(e)>-1}}),lang:ae(function(e){return U.test(e||"")||re.error("unsupported lang: "+e),e=e.replace(Z,ee).toLowerCase(),function(t){var n;do{if(n=g?t.lang:t.getAttribute("xml:lang")||t.getAttribute("lang"))return(n=n.toLowerCase())===e||0===n.indexOf(e+"-")}while((t=t.parentNode)&&1===t.nodeType);return!1}}),target:function(t){var n=e.location&&e.location.hash;return n&&n.slice(1)===t.id},root:function(e){return e===d},focus:function(e){return e===h.activeElement&&(!h.hasFocus||h.hasFocus())&&!!(e.type||e.href||~e.tabIndex)},enabled:he(!1),disabled:he(!0),checked:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&!!e.checked||"option"===t&&!!e.selected},selected:function(e){return e.parentNode&&e.parentNode.selectedIndex,!0===e.selected},empty:function(e){for(e=e.firstChild;e;e=e.nextSibling)if(e.nodeType<6)return!1;return!0},parent:function(e){return!i.pseudos.empty(e)},header:function(e){return V.test(e.nodeName)},input:function(e){return G.test(e.nodeName)},button:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&"button"===e.type||"button"===t},text:function(e){var t;return"input"===e.nodeName.toLowerCase()&&"text"===e.type&&(null==(t=e.getAttribute("type"))||"text"===t.toLowerCase())},first:de(function(){return[0]}),last:de(function(e,t){return[t-1]}),eq:de(function(e,t,n){return[n<0?n+t:n]}),even:de(function(e,t){for(var n=0;n<t;n+=2)e.push(n);return e}),odd:de(function(e,t){for(var n=1;n<t;n+=2)e.push(n);return e}),lt:de(function(e,t,n){for(var i=n<0?n+t:n;--i>=0;)e.push(i);return e}),gt:de(function(e,t,n){for(var i=n<0?n+t:n;++i<t;)e.push(i);return e})}}).pseudos.nth=i.pseudos.eq;for(t in{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})i.pseudos[t]=pe(t);for(t in{submit:!0,reset:!0})i.pseudos[t]=fe(t);function me(){}function ve(e){for(var t=0,n=e.length,i="";t<n;t++)i+=e[t].value;return i}function ye(e,t,n){var i=t.dir,o=t.next,r=o||i,s=n&&"parentNode"===r,a=_++;return t.first?function(t,n,o){for(;t=t[i];)if(1===t.nodeType||s)return e(t,n,o);return!1}:function(t,n,l){var u,c,p,f=[C,a];if(l){for(;t=t[i];)if((1===t.nodeType||s)&&e(t,n,l))return!0}else for(;t=t[i];)if(1===t.nodeType||s)if(c=(p=t[x]||(t[x]={}))[t.uniqueID]||(p[t.uniqueID]={}),o&&o===t.nodeName.toLowerCase())t=t[i]||t;else{if((u=c[r])&&u[0]===C&&u[1]===a)return f[2]=u[2];if(c[r]=f,f[2]=e(t,n,l))return!0}return!1}}function be(e){return e.length>1?function(t,n,i){for(var o=e.length;o--;)if(!e[o](t,n,i))return!1;return!0}:e[0]}function xe(e,t,n,i,o){for(var r,s=[],a=0,l=e.length,u=null!=t;a<l;a++)(r=e[a])&&(n&&!n(r,i,o)||(s.push(r),u&&t.push(a)));return s}function we(e,t,n,i,o,r){return i&&!i[x]&&(i=we(i)),o&&!o[x]&&(o=we(o,r)),ae(function(r,s,a,l){var u,c,p,f=[],h=[],d=s.length,g=r||function(e,t,n){for(var i=0,o=t.length;i<o;i++)re(e,t[i],n);return n}(t||"*",a.nodeType?[a]:a,[]),m=!e||!r&&t?g:xe(g,f,e,a,l),v=n?o||(r?e:d||i)?[]:s:m;if(n&&n(m,v,a,l),i)for(u=xe(v,h),i(u,[],a,l),c=u.length;c--;)(p=u[c])&&(v[h[c]]=!(m[h[c]]=p));if(r){if(o||e){if(o){for(u=[],c=v.length;c--;)(p=v[c])&&u.push(m[c]=p);o(null,v=[],u,l)}for(c=v.length;c--;)(p=v[c])&&(u=o?H(r,p):f[c])>-1&&(r[u]=!(s[u]=p))}}else v=xe(v===s?v.splice(d,v.length):v),o?o(null,s,v,l):M.apply(s,v)})}function Ce(e){for(var t,n,o,r=e.length,s=i.relative[e[0].type],a=s||i.relative[" "],l=s?1:0,c=ye(function(e){return e===t},a,!0),p=ye(function(e){return H(t,e)>-1},a,!0),f=[function(e,n,i){var o=!s&&(i||n!==u)||((t=n).nodeType?c(e,n,i):p(e,n,i));return t=null,o}];l<r;l++)if(n=i.relative[e[l].type])f=[ye(be(f),n)];else{if((n=i.filter[e[l].type].apply(null,e[l].matches))[x]){for(o=++l;o<r&&!i.relative[e[o].type];o++);return we(l>1&&be(f),l>1&&ve(e.slice(0,l-1).concat({value:" "===e[l-2].type?"*":""})).replace(W,"$1"),n,l<o&&Ce(e.slice(l,o)),o<r&&Ce(e=e.slice(o)),o<r&&ve(e))}f.push(n)}return be(f)}return me.prototype=i.filters=i.pseudos,i.setFilters=new me,s=re.tokenize=function(e,t){var n,o,r,s,a,l,u,c=E[e+" "];if(c)return t?0:c.slice(0);for(a=e,l=[],u=i.preFilter;a;){n&&!(o=B.exec(a))||(o&&(a=a.slice(o[0].length)||a),l.push(r=[])),n=!1,(o=$.exec(a))&&(n=o.shift(),r.push({value:n,type:o[0].replace(W," ")}),a=a.slice(n.length));for(s in i.filter)!(o=Y[s].exec(a))||u[s]&&!(o=u[s](o))||(n=o.shift(),r.push({value:n,type:s,matches:o}),a=a.slice(n.length));if(!n)break}return t?a.length:a?re.error(e):E(e,l).slice(0)},a=re.compile=function(e,t){var n,o,r,a,l,c,p=[],d=[],m=k[e+" "];if(!m){for(t||(t=s(e)),n=t.length;n--;)(m=Ce(t[n]))[x]?p.push(m):d.push(m);(m=k(e,(o=d,a=(r=p).length>0,l=o.length>0,c=function(e,t,n,s,c){var p,d,m,v=0,y="0",b=e&&[],x=[],w=u,_=e||l&&i.find.TAG("*",c),T=C+=null==w?1:Math.random()||.1,E=_.length;for(c&&(u=t===h||t||c);y!==E&&null!=(p=_[y]);y++){if(l&&p){for(d=0,t||p.ownerDocument===h||(f(p),n=!g);m=o[d++];)if(m(p,t||h,n)){s.push(p);break}c&&(C=T)}a&&((p=!m&&p)&&v--,e&&b.push(p))}if(v+=y,a&&y!==v){for(d=0;m=r[d++];)m(b,x,t,n);if(e){if(v>0)for(;y--;)b[y]||x[y]||(x[y]=D.call(s));x=xe(x)}M.apply(s,x),c&&!e&&x.length>0&&v+r.length>1&&re.uniqueSort(s)}return c&&(C=T,u=w),b},a?ae(c):c))).selector=e}return m},l=re.select=function(e,t,n,o){var r,l,u,c,p,f="function"==typeof e&&e,h=!o&&s(e=f.selector||e);if(n=n||[],1===h.length){if((l=h[0]=h[0].slice(0)).length>2&&"ID"===(u=l[0]).type&&9===t.nodeType&&g&&i.relative[l[1].type]){if(!(t=(i.find.ID(u.matches[0].replace(Z,ee),t)||[])[0]))return n;f&&(t=t.parentNode),e=e.slice(l.shift().value.length)}for(r=Y.needsContext.test(e)?0:l.length;r--&&(u=l[r],!i.relative[c=u.type]);)if((p=i.find[c])&&(o=p(u.matches[0].replace(Z,ee),J.test(l[0].type)&&ge(t.parentNode)||t))){if(l.splice(r,1),!(e=o.length&&ve(l)))return M.apply(n,o),n;break}}return(f||a(e,h))(o,t,!g,n,!t||J.test(e)&&ge(t.parentNode)||t),n},n.sortStable=x.split("").sort(S).join("")===x,n.detectDuplicates=!!p,f(),n.sortDetached=le(function(e){return 1&e.compareDocumentPosition(h.createElement("fieldset"))}),le(function(e){return e.innerHTML="<a href='#'></a>","#"===e.firstChild.getAttribute("href")})||ue("type|href|height|width",function(e,t,n){if(!n)return e.getAttribute(t,"type"===t.toLowerCase()?1:2)}),n.attributes&&le(function(e){return e.innerHTML="<input/>",e.firstChild.setAttribute("value",""),""===e.firstChild.getAttribute("value")})||ue("value",function(e,t,n){if(!n&&"input"===e.nodeName.toLowerCase())return e.defaultValue}),le(function(e){return null==e.getAttribute("disabled")})||ue(L,function(e,t,n){var i;if(!n)return!0===e[t]?t.toLowerCase():(i=e.getAttributeNode(t))&&i.specified?i.value:null}),re}(e);v.find=_,v.expr=_.selectors,v.expr[":"]=v.expr.pseudos,v.uniqueSort=v.unique=_.uniqueSort,v.text=_.getText,v.isXMLDoc=_.isXML,v.contains=_.contains,v.escapeSelector=_.escape;var T=function(e,t,n){for(var i=[],o=void 0!==n;(e=e[t])&&9!==e.nodeType;)if(1===e.nodeType){if(o&&v(e).is(n))break;i.push(e)}return i},E=function(e,t){for(var n=[];e;e=e.nextSibling)1===e.nodeType&&e!==t&&n.push(e);return n},k=v.expr.match.needsContext;function S(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()}var P=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i,N=/^.[^:#\[\.,]*$/;function D(e,t,n){return v.isFunction(t)?v.grep(e,function(e,i){return!!t.call(e,i,e)!==n}):t.nodeType?v.grep(e,function(e){return e===t!==n}):"string"!=typeof t?v.grep(e,function(e){return l.call(t,e)>-1!==n}):N.test(t)?v.filter(t,e,n):(t=v.filter(t,e),v.grep(e,function(e){return l.call(t,e)>-1!==n&&1===e.nodeType}))}v.filter=function(e,t,n){var i=t[0];return n&&(e=":not("+e+")"),1===t.length&&1===i.nodeType?v.find.matchesSelector(i,e)?[i]:[]:v.find.matches(e,v.grep(t,function(e){return 1===e.nodeType}))},v.fn.extend({find:function(e){var t,n,i=this.length,o=this;if("string"!=typeof e)return this.pushStack(v(e).filter(function(){for(t=0;t<i;t++)if(v.contains(o[t],this))return!0}));for(n=this.pushStack([]),t=0;t<i;t++)v.find(e,o[t],n);return i>1?v.uniqueSort(n):n},filter:function(e){return this.pushStack(D(this,e||[],!1))},not:function(e){return this.pushStack(D(this,e||[],!0))},is:function(e){return!!D(this,"string"==typeof e&&k.test(e)?v(e):e||[],!1).length}});var A,M=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/;(v.fn.init=function(e,t,n){var o,r;if(!e)return this;if(n=n||A,"string"==typeof e){if(!(o="<"===e[0]&&">"===e[e.length-1]&&e.length>=3?[null,e,null]:M.exec(e))||!o[1]&&t)return!t||t.jquery?(t||n).find(e):this.constructor(t).find(e);if(o[1]){if(t=t instanceof v?t[0]:t,v.merge(this,v.parseHTML(o[1],t&&t.nodeType?t.ownerDocument||t:i,!0)),P.test(o[1])&&v.isPlainObject(t))for(o in t)v.isFunction(this[o])?this[o](t[o]):this.attr(o,t[o]);return this}return(r=i.getElementById(o[2]))&&(this[0]=r,this.length=1),this}return e.nodeType?(this[0]=e,this.length=1,this):v.isFunction(e)?void 0!==n.ready?n.ready(e):e(v):v.makeArray(e,this)}).prototype=v.fn,A=v(i);var j=/^(?:parents|prev(?:Until|All))/,H={children:!0,contents:!0,next:!0,prev:!0};function L(e,t){for(;(e=e[t])&&1!==e.nodeType;);return e}v.fn.extend({has:function(e){var t=v(e,this),n=t.length;return this.filter(function(){for(var e=0;e<n;e++)if(v.contains(this,t[e]))return!0})},closest:function(e,t){var n,i=0,o=this.length,r=[],s="string"!=typeof e&&v(e);if(!k.test(e))for(;i<o;i++)for(n=this[i];n&&n!==t;n=n.parentNode)if(n.nodeType<11&&(s?s.index(n)>-1:1===n.nodeType&&v.find.matchesSelector(n,e))){r.push(n);break}return this.pushStack(r.length>1?v.uniqueSort(r):r)},index:function(e){return e?"string"==typeof e?l.call(v(e),this[0]):l.call(this,e.jquery?e[0]:e):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,t){return this.pushStack(v.uniqueSort(v.merge(this.get(),v(e,t))))},addBack:function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}}),v.each({parent:function(e){var t=e.parentNode;return t&&11!==t.nodeType?t:null},parents:function(e){return T(e,"parentNode")},parentsUntil:function(e,t,n){return T(e,"parentNode",n)},next:function(e){return L(e,"nextSibling")},prev:function(e){return L(e,"previousSibling")},nextAll:function(e){return T(e,"nextSibling")},prevAll:function(e){return T(e,"previousSibling")},nextUntil:function(e,t,n){return T(e,"nextSibling",n)},prevUntil:function(e,t,n){return T(e,"previousSibling",n)},siblings:function(e){return E((e.parentNode||{}).firstChild,e)},children:function(e){return E(e.firstChild)},contents:function(e){return S(e,"iframe")?e.contentDocument:(S(e,"template")&&(e=e.content||e),v.merge([],e.childNodes))}},function(e,t){v.fn[e]=function(n,i){var o=v.map(this,t,n);return"Until"!==e.slice(-5)&&(i=n),i&&"string"==typeof i&&(o=v.filter(i,o)),this.length>1&&(H[e]||v.uniqueSort(o),j.test(e)&&o.reverse()),this.pushStack(o)}});var O=/[^\x20\t\r\n\f]+/g;function I(e){return e}function F(e){throw e}function q(e,t,n,i){var o;try{e&&v.isFunction(o=e.promise)?o.call(e).done(t).fail(n):e&&v.isFunction(o=e.then)?o.call(e,t,n):t.apply(void 0,[e].slice(i))}catch(e){n.apply(void 0,[e])}}v.Callbacks=function(e){var t,n;e="string"==typeof e?(t=e,n={},v.each(t.match(O)||[],function(e,t){n[t]=!0}),n):v.extend({},e);var i,o,r,s,a=[],l=[],u=-1,c=function(){for(s=s||e.once,r=i=!0;l.length;u=-1)for(o=l.shift();++u<a.length;)!1===a[u].apply(o[0],o[1])&&e.stopOnFalse&&(u=a.length,o=!1);e.memory||(o=!1),i=!1,s&&(a=o?[]:"")},p={add:function(){return a&&(o&&!i&&(u=a.length-1,l.push(o)),function t(n){v.each(n,function(n,i){v.isFunction(i)?e.unique&&p.has(i)||a.push(i):i&&i.length&&"string"!==v.type(i)&&t(i)})}(arguments),o&&!i&&c()),this},remove:function(){return v.each(arguments,function(e,t){for(var n;(n=v.inArray(t,a,n))>-1;)a.splice(n,1),n<=u&&u--}),this},has:function(e){return e?v.inArray(e,a)>-1:a.length>0},empty:function(){return a&&(a=[]),this},disable:function(){return s=l=[],a=o="",this},disabled:function(){return!a},lock:function(){return s=l=[],o||i||(a=o=""),this},locked:function(){return!!s},fireWith:function(e,t){return s||(t=[e,(t=t||[]).slice?t.slice():t],l.push(t),i||c()),this},fire:function(){return p.fireWith(this,arguments),this},fired:function(){return!!r}};return p},v.extend({Deferred:function(t){var n=[["notify","progress",v.Callbacks("memory"),v.Callbacks("memory"),2],["resolve","done",v.Callbacks("once memory"),v.Callbacks("once memory"),0,"resolved"],["reject","fail",v.Callbacks("once memory"),v.Callbacks("once memory"),1,"rejected"]],i="pending",o={state:function(){return i},always:function(){return r.done(arguments).fail(arguments),this},catch:function(e){return o.then(null,e)},pipe:function(){var e=arguments;return v.Deferred(function(t){v.each(n,function(n,i){var o=v.isFunction(e[i[4]])&&e[i[4]];r[i[1]](function(){var e=o&&o.apply(this,arguments);e&&v.isFunction(e.promise)?e.promise().progress(t.notify).done(t.resolve).fail(t.reject):t[i[0]+"With"](this,o?[e]:arguments)})}),e=null}).promise()},then:function(t,i,o){var r=0;function s(t,n,i,o){return function(){var a=this,l=arguments,u=function(){var e,u;if(!(t<r)){if((e=i.apply(a,l))===n.promise())throw new TypeError("Thenable self-resolution");u=e&&("object"==typeof e||"function"==typeof e)&&e.then,v.isFunction(u)?o?u.call(e,s(r,n,I,o),s(r,n,F,o)):(r++,u.call(e,s(r,n,I,o),s(r,n,F,o),s(r,n,I,n.notifyWith))):(i!==I&&(a=void 0,l=[e]),(o||n.resolveWith)(a,l))}},c=o?u:function(){try{u()}catch(e){v.Deferred.exceptionHook&&v.Deferred.exceptionHook(e,c.stackTrace),t+1>=r&&(i!==F&&(a=void 0,l=[e]),n.rejectWith(a,l))}};t?c():(v.Deferred.getStackHook&&(c.stackTrace=v.Deferred.getStackHook()),e.setTimeout(c))}}return v.Deferred(function(e){n[0][3].add(s(0,e,v.isFunction(o)?o:I,e.notifyWith)),n[1][3].add(s(0,e,v.isFunction(t)?t:I)),n[2][3].add(s(0,e,v.isFunction(i)?i:F))}).promise()},promise:function(e){return null!=e?v.extend(e,o):o}},r={};return v.each(n,function(e,t){var s=t[2],a=t[5];o[t[1]]=s.add,a&&s.add(function(){i=a},n[3-e][2].disable,n[0][2].lock),s.add(t[3].fire),r[t[0]]=function(){return r[t[0]+"With"](this===r?void 0:this,arguments),this},r[t[0]+"With"]=s.fireWith}),o.promise(r),t&&t.call(r,r),r},when:function(e){var t=arguments.length,n=t,i=Array(n),o=r.call(arguments),s=v.Deferred(),a=function(e){return function(n){i[e]=this,o[e]=arguments.length>1?r.call(arguments):n,--t||s.resolveWith(i,o)}};if(t<=1&&(q(e,s.done(a(n)).resolve,s.reject,!t),"pending"===s.state()||v.isFunction(o[n]&&o[n].then)))return s.then();for(;n--;)q(o[n],a(n),s.reject);return s.promise()}});var R=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;v.Deferred.exceptionHook=function(t,n){e.console&&e.console.warn&&t&&R.test(t.name)&&e.console.warn("jQuery.Deferred exception: "+t.message,t.stack,n)},v.readyException=function(t){e.setTimeout(function(){throw t})};var W=v.Deferred();function B(){i.removeEventListener("DOMContentLoaded",B),e.removeEventListener("load",B),v.ready()}v.fn.ready=function(e){return W.then(e).catch(function(e){v.readyException(e)}),this},v.extend({isReady:!1,readyWait:1,ready:function(e){(!0===e?--v.readyWait:v.isReady)||(v.isReady=!0,!0!==e&&--v.readyWait>0||W.resolveWith(i,[v]))}}),v.ready.then=W.then,"complete"===i.readyState||"loading"!==i.readyState&&!i.documentElement.doScroll?e.setTimeout(v.ready):(i.addEventListener("DOMContentLoaded",B),e.addEventListener("load",B));var $=function(e,t,n,i,o,r,s){var a=0,l=e.length,u=null==n;if("object"===v.type(n)){o=!0;for(a in n)$(e,t,a,n[a],!0,r,s)}else if(void 0!==i&&(o=!0,v.isFunction(i)||(s=!0),u&&(s?(t.call(e,i),t=null):(u=t,t=function(e,t,n){return u.call(v(e),n)})),t))for(;a<l;a++)t(e[a],n,s?i:i.call(e[a],a,t(e[a],n)));return o?e:u?t.call(e):l?t(e[0],n):r},z=function(e){return 1===e.nodeType||9===e.nodeType||!+e.nodeType};function X(){this.expando=v.expando+X.uid++}X.uid=1,X.prototype={cache:function(e){var t=e[this.expando];return t||(t={},z(e)&&(e.nodeType?e[this.expando]=t:Object.defineProperty(e,this.expando,{value:t,configurable:!0}))),t},set:function(e,t,n){var i,o=this.cache(e);if("string"==typeof t)o[v.camelCase(t)]=n;else for(i in t)o[v.camelCase(i)]=t[i];return o},get:function(e,t){return void 0===t?this.cache(e):e[this.expando]&&e[this.expando][v.camelCase(t)]},access:function(e,t,n){return void 0===t||t&&"string"==typeof t&&void 0===n?this.get(e,t):(this.set(e,t,n),void 0!==n?n:t)},remove:function(e,t){var n,i=e[this.expando];if(void 0!==i){if(void 0!==t){n=(t=Array.isArray(t)?t.map(v.camelCase):(t=v.camelCase(t))in i?[t]:t.match(O)||[]).length;for(;n--;)delete i[t[n]]}(void 0===t||v.isEmptyObject(i))&&(e.nodeType?e[this.expando]=void 0:delete e[this.expando])}},hasData:function(e){var t=e[this.expando];return void 0!==t&&!v.isEmptyObject(t)}};var U=new X,Y=new X,G=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,V=/[A-Z]/g;function Q(e,t,n){var i,o;if(void 0===n&&1===e.nodeType)if(i="data-"+t.replace(V,"-$&").toLowerCase(),"string"==typeof(n=e.getAttribute(i))){try{n="true"===(o=n)||"false"!==o&&("null"===o?null:o===+o+""?+o:G.test(o)?JSON.parse(o):o)}catch(e){}Y.set(e,t,n)}else n=void 0;return n}v.extend({hasData:function(e){return Y.hasData(e)||U.hasData(e)},data:function(e,t,n){return Y.access(e,t,n)},removeData:function(e,t){Y.remove(e,t)},_data:function(e,t,n){return U.access(e,t,n)},_removeData:function(e,t){U.remove(e,t)}}),v.fn.extend({data:function(e,t){var n,i,o,r=this[0],s=r&&r.attributes;if(void 0===e){if(this.length&&(o=Y.get(r),1===r.nodeType&&!U.get(r,"hasDataAttrs"))){for(n=s.length;n--;)s[n]&&0===(i=s[n].name).indexOf("data-")&&(i=v.camelCase(i.slice(5)),Q(r,i,o[i]));U.set(r,"hasDataAttrs",!0)}return o}return"object"==typeof e?this.each(function(){Y.set(this,e)}):$(this,function(t){var n;if(r&&void 0===t)return void 0!==(n=Y.get(r,e))?n:void 0!==(n=Q(r,e))?n:void 0;this.each(function(){Y.set(this,e,t)})},null,t,arguments.length>1,null,!0)},removeData:function(e){return this.each(function(){Y.remove(this,e)})}}),v.extend({queue:function(e,t,n){var i;if(e)return t=(t||"fx")+"queue",i=U.get(e,t),n&&(!i||Array.isArray(n)?i=U.access(e,t,v.makeArray(n)):i.push(n)),i||[]},dequeue:function(e,t){t=t||"fx";var n=v.queue(e,t),i=n.length,o=n.shift(),r=v._queueHooks(e,t);"inprogress"===o&&(o=n.shift(),i--),o&&("fx"===t&&n.unshift("inprogress"),delete r.stop,o.call(e,function(){v.dequeue(e,t)},r)),!i&&r&&r.empty.fire()},_queueHooks:function(e,t){var n=t+"queueHooks";return U.get(e,n)||U.access(e,n,{empty:v.Callbacks("once memory").add(function(){U.remove(e,[t+"queue",n])})})}}),v.fn.extend({queue:function(e,t){var n=2;return"string"!=typeof e&&(t=e,e="fx",n--),arguments.length<n?v.queue(this[0],e):void 0===t?this:this.each(function(){var n=v.queue(this,e,t);v._queueHooks(this,e),"fx"===e&&"inprogress"!==n[0]&&v.dequeue(this,e)})},dequeue:function(e){return this.each(function(){v.dequeue(this,e)})},clearQueue:function(e){return this.queue(e||"fx",[])},promise:function(e,t){var n,i=1,o=v.Deferred(),r=this,s=this.length,a=function(){--i||o.resolveWith(r,[r])};for("string"!=typeof e&&(t=e,e=void 0),e=e||"fx";s--;)(n=U.get(r[s],e+"queueHooks"))&&n.empty&&(i++,n.empty.add(a));return a(),o.promise(t)}});var K=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,J=new RegExp("^(?:([+-])=|)("+K+")([a-z%]*)$","i"),Z=["Top","Right","Bottom","Left"],ee=function(e,t){return"none"===(e=t||e).style.display||""===e.style.display&&v.contains(e.ownerDocument,e)&&"none"===v.css(e,"display")},te=function(e,t,n,i){var o,r,s={};for(r in t)s[r]=e.style[r],e.style[r]=t[r];o=n.apply(e,i||[]);for(r in t)e.style[r]=s[r];return o};function ne(e,t,n,i){var o,r=1,s=20,a=i?function(){return i.cur()}:function(){return v.css(e,t,"")},l=a(),u=n&&n[3]||(v.cssNumber[t]?"":"px"),c=(v.cssNumber[t]||"px"!==u&&+l)&&J.exec(v.css(e,t));if(c&&c[3]!==u){u=u||c[3],n=n||[],c=+l||1;do{c/=r=r||".5",v.style(e,t,c+u)}while(r!==(r=a()/l)&&1!==r&&--s)}return n&&(c=+c||+l||0,o=n[1]?c+(n[1]+1)*n[2]:+n[2],i&&(i.unit=u,i.start=c,i.end=o)),o}var ie={};function oe(e,t){for(var n,i,o,r,s,a,l,u=[],c=0,p=e.length;c<p;c++)(i=e[c]).style&&(n=i.style.display,t?("none"===n&&(u[c]=U.get(i,"display")||null,u[c]||(i.style.display="")),""===i.style.display&&ee(i)&&(u[c]=(r=void 0,s=void 0,void 0,l=void 0,s=(o=i).ownerDocument,a=o.nodeName,(l=ie[a])||(r=s.body.appendChild(s.createElement(a)),l=v.css(r,"display"),r.parentNode.removeChild(r),"none"===l&&(l="block"),ie[a]=l,l)))):"none"!==n&&(u[c]="none",U.set(i,"display",n)));for(c=0;c<p;c++)null!=u[c]&&(e[c].style.display=u[c]);return e}v.fn.extend({show:function(){return oe(this,!0)},hide:function(){return oe(this)},toggle:function(e){return"boolean"==typeof e?e?this.show():this.hide():this.each(function(){ee(this)?v(this).show():v(this).hide()})}});var re=/^(?:checkbox|radio)$/i,se=/<([a-z][^\/\0>\x20\t\r\n\f]+)/i,ae=/^$|\/(?:java|ecma)script/i,le={option:[1,"<select multiple='multiple'>","</select>"],thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};function ue(e,t){var n;return n=void 0!==e.getElementsByTagName?e.getElementsByTagName(t||"*"):void 0!==e.querySelectorAll?e.querySelectorAll(t||"*"):[],void 0===t||t&&S(e,t)?v.merge([e],n):n}function ce(e,t){for(var n=0,i=e.length;n<i;n++)U.set(e[n],"globalEval",!t||U.get(t[n],"globalEval"))}le.optgroup=le.option,le.tbody=le.tfoot=le.colgroup=le.caption=le.thead,le.th=le.td;var pe,fe,he=/<|&#?\w+;/;function de(e,t,n,i,o){for(var r,s,a,l,u,c,p=t.createDocumentFragment(),f=[],h=0,d=e.length;h<d;h++)if((r=e[h])||0===r)if("object"===v.type(r))v.merge(f,r.nodeType?[r]:r);else if(he.test(r)){for(s=s||p.appendChild(t.createElement("div")),a=(se.exec(r)||["",""])[1].toLowerCase(),l=le[a]||le._default,s.innerHTML=l[1]+v.htmlPrefilter(r)+l[2],c=l[0];c--;)s=s.lastChild;v.merge(f,s.childNodes),(s=p.firstChild).textContent=""}else f.push(t.createTextNode(r));for(p.textContent="",h=0;r=f[h++];)if(i&&v.inArray(r,i)>-1)o&&o.push(r);else if(u=v.contains(r.ownerDocument,r),s=ue(p.appendChild(r),"script"),u&&ce(s),n)for(c=0;r=s[c++];)ae.test(r.type||"")&&n.push(r);return p}pe=i.createDocumentFragment().appendChild(i.createElement("div")),(fe=i.createElement("input")).setAttribute("type","radio"),fe.setAttribute("checked","checked"),fe.setAttribute("name","t"),pe.appendChild(fe),d.checkClone=pe.cloneNode(!0).cloneNode(!0).lastChild.checked,pe.innerHTML="<textarea>x</textarea>",d.noCloneChecked=!!pe.cloneNode(!0).lastChild.defaultValue;var ge=i.documentElement,me=/^key/,ve=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,ye=/^([^.]*)(?:\.(.+)|)/;function be(){return!0}function xe(){return!1}function we(){try{return i.activeElement}catch(e){}}function Ce(e,t,n,i,o,r){var s,a;if("object"==typeof t){"string"!=typeof n&&(i=i||n,n=void 0);for(a in t)Ce(e,a,n,i,t[a],r);return e}if(null==i&&null==o?(o=n,i=n=void 0):null==o&&("string"==typeof n?(o=i,i=void 0):(o=i,i=n,n=void 0)),!1===o)o=xe;else if(!o)return e;return 1===r&&(s=o,(o=function(e){return v().off(e),s.apply(this,arguments)}).guid=s.guid||(s.guid=v.guid++)),e.each(function(){v.event.add(this,t,o,i,n)})}v.event={global:{},add:function(e,t,n,i,o){var r,s,a,l,u,c,p,f,h,d,g,m=U.get(e);if(m)for(n.handler&&(n=(r=n).handler,o=r.selector),o&&v.find.matchesSelector(ge,o),n.guid||(n.guid=v.guid++),(l=m.events)||(l=m.events={}),(s=m.handle)||(s=m.handle=function(t){return void 0!==v&&v.event.triggered!==t.type?v.event.dispatch.apply(e,arguments):void 0}),u=(t=(t||"").match(O)||[""]).length;u--;)h=g=(a=ye.exec(t[u])||[])[1],d=(a[2]||"").split(".").sort(),h&&(p=v.event.special[h]||{},h=(o?p.delegateType:p.bindType)||h,p=v.event.special[h]||{},c=v.extend({type:h,origType:g,data:i,handler:n,guid:n.guid,selector:o,needsContext:o&&v.expr.match.needsContext.test(o),namespace:d.join(".")},r),(f=l[h])||((f=l[h]=[]).delegateCount=0,p.setup&&!1!==p.setup.call(e,i,d,s)||e.addEventListener&&e.addEventListener(h,s)),p.add&&(p.add.call(e,c),c.handler.guid||(c.handler.guid=n.guid)),o?f.splice(f.delegateCount++,0,c):f.push(c),v.event.global[h]=!0)},remove:function(e,t,n,i,o){var r,s,a,l,u,c,p,f,h,d,g,m=U.hasData(e)&&U.get(e);if(m&&(l=m.events)){for(u=(t=(t||"").match(O)||[""]).length;u--;)if(h=g=(a=ye.exec(t[u])||[])[1],d=(a[2]||"").split(".").sort(),h){for(p=v.event.special[h]||{},f=l[h=(i?p.delegateType:p.bindType)||h]||[],a=a[2]&&new RegExp("(^|\\.)"+d.join("\\.(?:.*\\.|)")+"(\\.|$)"),s=r=f.length;r--;)c=f[r],!o&&g!==c.origType||n&&n.guid!==c.guid||a&&!a.test(c.namespace)||i&&i!==c.selector&&("**"!==i||!c.selector)||(f.splice(r,1),c.selector&&f.delegateCount--,p.remove&&p.remove.call(e,c));s&&!f.length&&(p.teardown&&!1!==p.teardown.call(e,d,m.handle)||v.removeEvent(e,h,m.handle),delete l[h])}else for(h in l)v.event.remove(e,h+t[u],n,i,!0);v.isEmptyObject(l)&&U.remove(e,"handle events")}},dispatch:function(e){var t,n,i,o,r,s,a=v.event.fix(e),l=new Array(arguments.length),u=(U.get(this,"events")||{})[a.type]||[],c=v.event.special[a.type]||{};for(l[0]=a,t=1;t<arguments.length;t++)l[t]=arguments[t];if(a.delegateTarget=this,!c.preDispatch||!1!==c.preDispatch.call(this,a)){for(s=v.event.handlers.call(this,a,u),t=0;(o=s[t++])&&!a.isPropagationStopped();)for(a.currentTarget=o.elem,n=0;(r=o.handlers[n++])&&!a.isImmediatePropagationStopped();)a.rnamespace&&!a.rnamespace.test(r.namespace)||(a.handleObj=r,a.data=r.data,void 0!==(i=((v.event.special[r.origType]||{}).handle||r.handler).apply(o.elem,l))&&!1===(a.result=i)&&(a.preventDefault(),a.stopPropagation()));return c.postDispatch&&c.postDispatch.call(this,a),a.result}},handlers:function(e,t){var n,i,o,r,s,a=[],l=t.delegateCount,u=e.target;if(l&&u.nodeType&&!("click"===e.type&&e.button>=1))for(;u!==this;u=u.parentNode||this)if(1===u.nodeType&&("click"!==e.type||!0!==u.disabled)){for(r=[],s={},n=0;n<l;n++)void 0===s[o=(i=t[n]).selector+" "]&&(s[o]=i.needsContext?v(o,this).index(u)>-1:v.find(o,this,null,[u]).length),s[o]&&r.push(i);r.length&&a.push({elem:u,handlers:r})}return u=this,l<t.length&&a.push({elem:u,handlers:t.slice(l)}),a},addProp:function(e,t){Object.defineProperty(v.Event.prototype,e,{enumerable:!0,configurable:!0,get:v.isFunction(t)?function(){if(this.originalEvent)return t(this.originalEvent)}:function(){if(this.originalEvent)return this.originalEvent[e]},set:function(t){Object.defineProperty(this,e,{enumerable:!0,configurable:!0,writable:!0,value:t})}})},fix:function(e){return e[v.expando]?e:new v.Event(e)},special:{load:{noBubble:!0},focus:{trigger:function(){if(this!==we()&&this.focus)return this.focus(),!1},delegateType:"focusin"},blur:{trigger:function(){if(this===we()&&this.blur)return this.blur(),!1},delegateType:"focusout"},click:{trigger:function(){if("checkbox"===this.type&&this.click&&S(this,"input"))return this.click(),!1},_default:function(e){return S(e.target,"a")}},beforeunload:{postDispatch:function(e){void 0!==e.result&&e.originalEvent&&(e.originalEvent.returnValue=e.result)}}}},v.removeEvent=function(e,t,n){e.removeEventListener&&e.removeEventListener(t,n)},v.Event=function(e,t){if(!(this instanceof v.Event))return new v.Event(e,t);e&&e.type?(this.originalEvent=e,this.type=e.type,this.isDefaultPrevented=e.defaultPrevented||void 0===e.defaultPrevented&&!1===e.returnValue?be:xe,this.target=e.target&&3===e.target.nodeType?e.target.parentNode:e.target,this.currentTarget=e.currentTarget,this.relatedTarget=e.relatedTarget):this.type=e,t&&v.extend(this,t),this.timeStamp=e&&e.timeStamp||v.now(),this[v.expando]=!0},v.Event.prototype={constructor:v.Event,isDefaultPrevented:xe,isPropagationStopped:xe,isImmediatePropagationStopped:xe,isSimulated:!1,preventDefault:function(){var e=this.originalEvent;this.isDefaultPrevented=be,e&&!this.isSimulated&&e.preventDefault()},stopPropagation:function(){var e=this.originalEvent;this.isPropagationStopped=be,e&&!this.isSimulated&&e.stopPropagation()},stopImmediatePropagation:function(){var e=this.originalEvent;this.isImmediatePropagationStopped=be,e&&!this.isSimulated&&e.stopImmediatePropagation(),this.stopPropagation()}},v.each({altKey:!0,bubbles:!0,cancelable:!0,changedTouches:!0,ctrlKey:!0,detail:!0,eventPhase:!0,metaKey:!0,pageX:!0,pageY:!0,shiftKey:!0,view:!0,char:!0,charCode:!0,key:!0,keyCode:!0,button:!0,buttons:!0,clientX:!0,clientY:!0,offsetX:!0,offsetY:!0,pointerId:!0,pointerType:!0,screenX:!0,screenY:!0,targetTouches:!0,toElement:!0,touches:!0,which:function(e){var t=e.button;return null==e.which&&me.test(e.type)?null!=e.charCode?e.charCode:e.keyCode:!e.which&&void 0!==t&&ve.test(e.type)?1&t?1:2&t?3:4&t?2:0:e.which}},v.event.addProp),v.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(e,t){v.event.special[e]={delegateType:t,bindType:t,handle:function(e){var n,i=e.relatedTarget,o=e.handleObj;return i&&(i===this||v.contains(this,i))||(e.type=o.origType,n=o.handler.apply(this,arguments),e.type=t),n}}}),v.fn.extend({on:function(e,t,n,i){return Ce(this,e,t,n,i)},one:function(e,t,n,i){return Ce(this,e,t,n,i,1)},off:function(e,t,n){var i,o;if(e&&e.preventDefault&&e.handleObj)return i=e.handleObj,v(e.delegateTarget).off(i.namespace?i.origType+"."+i.namespace:i.origType,i.selector,i.handler),this;if("object"==typeof e){for(o in e)this.off(o,t,e[o]);return this}return!1!==t&&"function"!=typeof t||(n=t,t=void 0),!1===n&&(n=xe),this.each(function(){v.event.remove(this,e,n,t)})}});var _e=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([a-z][^\/\0>\x20\t\r\n\f]*)[^>]*)\/>/gi,Te=/<script|<style|<link/i,Ee=/checked\s*(?:[^=]|=\s*.checked.)/i,ke=/^true\/(.*)/,Se=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g;function Pe(e,t){return S(e,"table")&&S(11!==t.nodeType?t:t.firstChild,"tr")&&v(">tbody",e)[0]||e}function Ne(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function De(e){var t=ke.exec(e.type);return t?e.type=t[1]:e.removeAttribute("type"),e}function Ae(e,t){var n,i,o,r,s,a,l,u;if(1===t.nodeType){if(U.hasData(e)&&(r=U.access(e),s=U.set(t,r),u=r.events)){delete s.handle,s.events={};for(o in u)for(n=0,i=u[o].length;n<i;n++)v.event.add(t,o,u[o][n])}Y.hasData(e)&&(a=Y.access(e),l=v.extend({},a),Y.set(t,l))}}function Me(e,t,n,i){t=s.apply([],t);var o,r,a,l,u,c,p=0,f=e.length,h=f-1,m=t[0],y=v.isFunction(m);if(y||f>1&&"string"==typeof m&&!d.checkClone&&Ee.test(m))return e.each(function(o){var r=e.eq(o);y&&(t[0]=m.call(this,o,r.html())),Me(r,t,n,i)});if(f&&(r=(o=de(t,e[0].ownerDocument,!1,e,i)).firstChild,1===o.childNodes.length&&(o=r),r||i)){for(l=(a=v.map(ue(o,"script"),Ne)).length;p<f;p++)u=o,p!==h&&(u=v.clone(u,!0,!0),l&&v.merge(a,ue(u,"script"))),n.call(e[p],u,p);if(l)for(c=a[a.length-1].ownerDocument,v.map(a,De),p=0;p<l;p++)u=a[p],ae.test(u.type||"")&&!U.access(u,"globalEval")&&v.contains(c,u)&&(u.src?v._evalUrl&&v._evalUrl(u.src):g(u.textContent.replace(Se,""),c))}return e}function je(e,t,n){for(var i,o=t?v.filter(t,e):e,r=0;null!=(i=o[r]);r++)n||1!==i.nodeType||v.cleanData(ue(i)),i.parentNode&&(n&&v.contains(i.ownerDocument,i)&&ce(ue(i,"script")),i.parentNode.removeChild(i));return e}v.extend({htmlPrefilter:function(e){return e.replace(_e,"<$1></$2>")},clone:function(e,t,n){var i,o,r,s,a,l,u,c=e.cloneNode(!0),p=v.contains(e.ownerDocument,e);if(!(d.noCloneChecked||1!==e.nodeType&&11!==e.nodeType||v.isXMLDoc(e)))for(s=ue(c),i=0,o=(r=ue(e)).length;i<o;i++)a=r[i],l=s[i],void 0,"input"===(u=l.nodeName.toLowerCase())&&re.test(a.type)?l.checked=a.checked:"input"!==u&&"textarea"!==u||(l.defaultValue=a.defaultValue);if(t)if(n)for(r=r||ue(e),s=s||ue(c),i=0,o=r.length;i<o;i++)Ae(r[i],s[i]);else Ae(e,c);return(s=ue(c,"script")).length>0&&ce(s,!p&&ue(e,"script")),c},cleanData:function(e){for(var t,n,i,o=v.event.special,r=0;void 0!==(n=e[r]);r++)if(z(n)){if(t=n[U.expando]){if(t.events)for(i in t.events)o[i]?v.event.remove(n,i):v.removeEvent(n,i,t.handle);n[U.expando]=void 0}n[Y.expando]&&(n[Y.expando]=void 0)}}}),v.fn.extend({detach:function(e){return je(this,e,!0)},remove:function(e){return je(this,e)},text:function(e){return $(this,function(e){return void 0===e?v.text(this):this.empty().each(function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=e)})},null,e,arguments.length)},append:function(){return Me(this,arguments,function(e){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||Pe(this,e).appendChild(e)})},prepend:function(){return Me(this,arguments,function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=Pe(this,e);t.insertBefore(e,t.firstChild)}})},before:function(){return Me(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this)})},after:function(){return Me(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this.nextSibling)})},empty:function(){for(var e,t=0;null!=(e=this[t]);t++)1===e.nodeType&&(v.cleanData(ue(e,!1)),e.textContent="");return this},clone:function(e,t){return e=null!=e&&e,t=null==t?e:t,this.map(function(){return v.clone(this,e,t)})},html:function(e){return $(this,function(e){var t=this[0]||{},n=0,i=this.length;if(void 0===e&&1===t.nodeType)return t.innerHTML;if("string"==typeof e&&!Te.test(e)&&!le[(se.exec(e)||["",""])[1].toLowerCase()]){e=v.htmlPrefilter(e);try{for(;n<i;n++)1===(t=this[n]||{}).nodeType&&(v.cleanData(ue(t,!1)),t.innerHTML=e);t=0}catch(e){}}t&&this.empty().append(e)},null,e,arguments.length)},replaceWith:function(){var e=[];return Me(this,arguments,function(t){var n=this.parentNode;v.inArray(this,e)<0&&(v.cleanData(ue(this)),n&&n.replaceChild(t,this))},e)}}),v.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(e,t){v.fn[e]=function(e){for(var n,i=[],o=v(e),r=o.length-1,s=0;s<=r;s++)n=s===r?this:this.clone(!0),v(o[s])[t](n),a.apply(i,n.get());return this.pushStack(i)}});var He=/^margin/,Le=new RegExp("^("+K+")(?!px)[a-z%]+$","i"),Oe=function(t){var n=t.ownerDocument.defaultView;return n&&n.opener||(n=e),n.getComputedStyle(t)};function Ie(e,t,n){var i,o,r,s,a=e.style;return(n=n||Oe(e))&&(""!==(s=n.getPropertyValue(t)||n[t])||v.contains(e.ownerDocument,e)||(s=v.style(e,t)),!d.pixelMarginRight()&&Le.test(s)&&He.test(t)&&(i=a.width,o=a.minWidth,r=a.maxWidth,a.minWidth=a.maxWidth=a.width=s,s=n.width,a.width=i,a.minWidth=o,a.maxWidth=r)),void 0!==s?s+"":s}function Fe(e,t){return{get:function(){if(!e())return(this.get=t).apply(this,arguments);delete this.get}}}!function(){function t(){if(l){l.style.cssText="box-sizing:border-box;position:relative;display:block;margin:auto;border:1px;padding:1px;top:1%;width:50%",l.innerHTML="",ge.appendChild(a);var t=e.getComputedStyle(l);n="1%"!==t.top,s="2px"===t.marginLeft,o="4px"===t.width,l.style.marginRight="50%",r="4px"===t.marginRight,ge.removeChild(a),l=null}}var n,o,r,s,a=i.createElement("div"),l=i.createElement("div");l.style&&(l.style.backgroundClip="content-box",l.cloneNode(!0).style.backgroundClip="",d.clearCloneStyle="content-box"===l.style.backgroundClip,a.style.cssText="border:0;width:8px;height:0;top:0;left:-9999px;padding:0;margin-top:1px;position:absolute",a.appendChild(l),v.extend(d,{pixelPosition:function(){return t(),n},boxSizingReliable:function(){return t(),o},pixelMarginRight:function(){return t(),r},reliableMarginLeft:function(){return t(),s}}))}();var qe=/^(none|table(?!-c[ea]).+)/,Re=/^--/,We={position:"absolute",visibility:"hidden",display:"block"},Be={letterSpacing:"0",fontWeight:"400"},$e=["Webkit","Moz","ms"],ze=i.createElement("div").style;function Xe(e){var t=v.cssProps[e];return t||(t=v.cssProps[e]=function(e){if(e in ze)return e;for(var t=e[0].toUpperCase()+e.slice(1),n=$e.length;n--;)if((e=$e[n]+t)in ze)return e}(e)||e),t}function Ue(e,t,n){var i=J.exec(t);return i?Math.max(0,i[2]-(n||0))+(i[3]||"px"):t}function Ye(e,t,n,i,o){var r,s=0;for(r=n===(i?"border":"content")?4:"width"===t?1:0;r<4;r+=2)"margin"===n&&(s+=v.css(e,n+Z[r],!0,o)),i?("content"===n&&(s-=v.css(e,"padding"+Z[r],!0,o)),"margin"!==n&&(s-=v.css(e,"border"+Z[r]+"Width",!0,o))):(s+=v.css(e,"padding"+Z[r],!0,o),"padding"!==n&&(s+=v.css(e,"border"+Z[r]+"Width",!0,o)));return s}function Ge(e,t,n){var i,o=Oe(e),r=Ie(e,t,o),s="border-box"===v.css(e,"boxSizing",!1,o);return Le.test(r)?r:(i=s&&(d.boxSizingReliable()||r===e.style[t]),"auto"===r&&(r=e["offset"+t[0].toUpperCase()+t.slice(1)]),(r=parseFloat(r)||0)+Ye(e,t,n||(s?"border":"content"),i,o)+"px")}function Ve(e,t,n,i,o){return new Ve.prototype.init(e,t,n,i,o)}v.extend({cssHooks:{opacity:{get:function(e,t){if(t){var n=Ie(e,"opacity");return""===n?"1":n}}}},cssNumber:{animationIterationCount:!0,columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{float:"cssFloat"},style:function(e,t,n,i){if(e&&3!==e.nodeType&&8!==e.nodeType&&e.style){var o,r,s,a=v.camelCase(t),l=Re.test(t),u=e.style;if(l||(t=Xe(a)),s=v.cssHooks[t]||v.cssHooks[a],void 0===n)return s&&"get"in s&&void 0!==(o=s.get(e,!1,i))?o:u[t];"string"===(r=typeof n)&&(o=J.exec(n))&&o[1]&&(n=ne(e,t,o),r="number"),null!=n&&n==n&&("number"===r&&(n+=o&&o[3]||(v.cssNumber[a]?"":"px")),d.clearCloneStyle||""!==n||0!==t.indexOf("background")||(u[t]="inherit"),s&&"set"in s&&void 0===(n=s.set(e,n,i))||(l?u.setProperty(t,n):u[t]=n))}},css:function(e,t,n,i){var o,r,s,a=v.camelCase(t);return Re.test(t)||(t=Xe(a)),(s=v.cssHooks[t]||v.cssHooks[a])&&"get"in s&&(o=s.get(e,!0,n)),void 0===o&&(o=Ie(e,t,i)),"normal"===o&&t in Be&&(o=Be[t]),""===n||n?(r=parseFloat(o),!0===n||isFinite(r)?r||0:o):o}}),v.each(["height","width"],function(e,t){v.cssHooks[t]={get:function(e,n,i){if(n)return!qe.test(v.css(e,"display"))||e.getClientRects().length&&e.getBoundingClientRect().width?Ge(e,t,i):te(e,We,function(){return Ge(e,t,i)})},set:function(e,n,i){var o,r=i&&Oe(e),s=i&&Ye(e,t,i,"border-box"===v.css(e,"boxSizing",!1,r),r);return s&&(o=J.exec(n))&&"px"!==(o[3]||"px")&&(e.style[t]=n,n=v.css(e,t)),Ue(0,n,s)}}}),v.cssHooks.marginLeft=Fe(d.reliableMarginLeft,function(e,t){if(t)return(parseFloat(Ie(e,"marginLeft"))||e.getBoundingClientRect().left-te(e,{marginLeft:0},function(){return e.getBoundingClientRect().left}))+"px"}),v.each({margin:"",padding:"",border:"Width"},function(e,t){v.cssHooks[e+t]={expand:function(n){for(var i=0,o={},r="string"==typeof n?n.split(" "):[n];i<4;i++)o[e+Z[i]+t]=r[i]||r[i-2]||r[0];return o}},He.test(e)||(v.cssHooks[e+t].set=Ue)}),v.fn.extend({css:function(e,t){return $(this,function(e,t,n){var i,o,r={},s=0;if(Array.isArray(t)){for(i=Oe(e),o=t.length;s<o;s++)r[t[s]]=v.css(e,t[s],!1,i);return r}return void 0!==n?v.style(e,t,n):v.css(e,t)},e,t,arguments.length>1)}}),v.Tween=Ve,Ve.prototype={constructor:Ve,init:function(e,t,n,i,o,r){this.elem=e,this.prop=n,this.easing=o||v.easing._default,this.options=t,this.start=this.now=this.cur(),this.end=i,this.unit=r||(v.cssNumber[n]?"":"px")},cur:function(){var e=Ve.propHooks[this.prop];return e&&e.get?e.get(this):Ve.propHooks._default.get(this)},run:function(e){var t,n=Ve.propHooks[this.prop];return this.options.duration?this.pos=t=v.easing[this.easing](e,this.options.duration*e,0,1,this.options.duration):this.pos=t=e,this.now=(this.end-this.start)*t+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),n&&n.set?n.set(this):Ve.propHooks._default.set(this),this}},Ve.prototype.init.prototype=Ve.prototype,Ve.propHooks={_default:{get:function(e){var t;return 1!==e.elem.nodeType||null!=e.elem[e.prop]&&null==e.elem.style[e.prop]?e.elem[e.prop]:(t=v.css(e.elem,e.prop,""))&&"auto"!==t?t:0},set:function(e){v.fx.step[e.prop]?v.fx.step[e.prop](e):1!==e.elem.nodeType||null==e.elem.style[v.cssProps[e.prop]]&&!v.cssHooks[e.prop]?e.elem[e.prop]=e.now:v.style(e.elem,e.prop,e.now+e.unit)}}},Ve.propHooks.scrollTop=Ve.propHooks.scrollLeft={set:function(e){e.elem.nodeType&&e.elem.parentNode&&(e.elem[e.prop]=e.now)}},v.easing={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2},_default:"swing"},v.fx=Ve.prototype.init,v.fx.step={};var Qe,Ke,Je,Ze,et=/^(?:toggle|show|hide)$/,tt=/queueHooks$/;function nt(){Ke&&(!1===i.hidden&&e.requestAnimationFrame?e.requestAnimationFrame(nt):e.setTimeout(nt,v.fx.interval),v.fx.tick())}function it(){return e.setTimeout(function(){Qe=void 0}),Qe=v.now()}function ot(e,t){var n,i=0,o={height:e};for(t=t?1:0;i<4;i+=2-t)o["margin"+(n=Z[i])]=o["padding"+n]=e;return t&&(o.opacity=o.width=e),o}function rt(e,t,n){for(var i,o=(st.tweeners[t]||[]).concat(st.tweeners["*"]),r=0,s=o.length;r<s;r++)if(i=o[r].call(n,t,e))return i}function st(e,t,n){var i,o,r=0,s=st.prefilters.length,a=v.Deferred().always(function(){delete l.elem}),l=function(){if(o)return!1;for(var t=Qe||it(),n=Math.max(0,u.startTime+u.duration-t),i=1-(n/u.duration||0),r=0,s=u.tweens.length;r<s;r++)u.tweens[r].run(i);return a.notifyWith(e,[u,i,n]),i<1&&s?n:(s||a.notifyWith(e,[u,1,0]),a.resolveWith(e,[u]),!1)},u=a.promise({elem:e,props:v.extend({},t),opts:v.extend(!0,{specialEasing:{},easing:v.easing._default},n),originalProperties:t,originalOptions:n,startTime:Qe||it(),duration:n.duration,tweens:[],createTween:function(t,n){var i=v.Tween(e,u.opts,t,n,u.opts.specialEasing[t]||u.opts.easing);return u.tweens.push(i),i},stop:function(t){var n=0,i=t?u.tweens.length:0;if(o)return this;for(o=!0;n<i;n++)u.tweens[n].run(1);return t?(a.notifyWith(e,[u,1,0]),a.resolveWith(e,[u,t])):a.rejectWith(e,[u,t]),this}}),c=u.props;for(!function(e,t){var n,i,o,r,s;for(n in e)if(o=t[i=v.camelCase(n)],r=e[n],Array.isArray(r)&&(o=r[1],r=e[n]=r[0]),n!==i&&(e[i]=r,delete e[n]),(s=v.cssHooks[i])&&"expand"in s){r=s.expand(r),delete e[i];for(n in r)n in e||(e[n]=r[n],t[n]=o)}else t[i]=o}(c,u.opts.specialEasing);r<s;r++)if(i=st.prefilters[r].call(u,e,c,u.opts))return v.isFunction(i.stop)&&(v._queueHooks(u.elem,u.opts.queue).stop=v.proxy(i.stop,i)),i;return v.map(c,rt,u),v.isFunction(u.opts.start)&&u.opts.start.call(e,u),u.progress(u.opts.progress).done(u.opts.done,u.opts.complete).fail(u.opts.fail).always(u.opts.always),v.fx.timer(v.extend(l,{elem:e,anim:u,queue:u.opts.queue})),u}v.Animation=v.extend(st,{tweeners:{"*":[function(e,t){var n=this.createTween(e,t);return ne(n.elem,e,J.exec(t),n),n}]},tweener:function(e,t){v.isFunction(e)?(t=e,e=["*"]):e=e.match(O);for(var n,i=0,o=e.length;i<o;i++)n=e[i],st.tweeners[n]=st.tweeners[n]||[],st.tweeners[n].unshift(t)},prefilters:[function(e,t,n){var i,o,r,s,a,l,u,c,p="width"in t||"height"in t,f=this,h={},d=e.style,g=e.nodeType&&ee(e),m=U.get(e,"fxshow");n.queue||(null==(s=v._queueHooks(e,"fx")).unqueued&&(s.unqueued=0,a=s.empty.fire,s.empty.fire=function(){s.unqueued||a()}),s.unqueued++,f.always(function(){f.always(function(){s.unqueued--,v.queue(e,"fx").length||s.empty.fire()})}));for(i in t)if(o=t[i],et.test(o)){if(delete t[i],r=r||"toggle"===o,o===(g?"hide":"show")){if("show"!==o||!m||void 0===m[i])continue;g=!0}h[i]=m&&m[i]||v.style(e,i)}if((l=!v.isEmptyObject(t))||!v.isEmptyObject(h)){p&&1===e.nodeType&&(n.overflow=[d.overflow,d.overflowX,d.overflowY],null==(u=m&&m.display)&&(u=U.get(e,"display")),"none"===(c=v.css(e,"display"))&&(u?c=u:(oe([e],!0),u=e.style.display||u,c=v.css(e,"display"),oe([e]))),("inline"===c||"inline-block"===c&&null!=u)&&"none"===v.css(e,"float")&&(l||(f.done(function(){d.display=u}),null==u&&(c=d.display,u="none"===c?"":c)),d.display="inline-block")),n.overflow&&(d.overflow="hidden",f.always(function(){d.overflow=n.overflow[0],d.overflowX=n.overflow[1],d.overflowY=n.overflow[2]})),l=!1;for(i in h)l||(m?"hidden"in m&&(g=m.hidden):m=U.access(e,"fxshow",{display:u}),r&&(m.hidden=!g),g&&oe([e],!0),f.done(function(){g||oe([e]),U.remove(e,"fxshow");for(i in h)v.style(e,i,h[i])})),l=rt(g?m[i]:0,i,f),i in m||(m[i]=l.start,g&&(l.end=l.start,l.start=0))}}],prefilter:function(e,t){t?st.prefilters.unshift(e):st.prefilters.push(e)}}),v.speed=function(e,t,n){var i=e&&"object"==typeof e?v.extend({},e):{complete:n||!n&&t||v.isFunction(e)&&e,duration:e,easing:n&&t||t&&!v.isFunction(t)&&t};return v.fx.off?i.duration=0:"number"!=typeof i.duration&&(i.duration in v.fx.speeds?i.duration=v.fx.speeds[i.duration]:i.duration=v.fx.speeds._default),null!=i.queue&&!0!==i.queue||(i.queue="fx"),i.old=i.complete,i.complete=function(){v.isFunction(i.old)&&i.old.call(this),i.queue&&v.dequeue(this,i.queue)},i},v.fn.extend({fadeTo:function(e,t,n,i){return this.filter(ee).css("opacity",0).show().end().animate({opacity:t},e,n,i)},animate:function(e,t,n,i){var o=v.isEmptyObject(e),r=v.speed(t,n,i),s=function(){var t=st(this,v.extend({},e),r);(o||U.get(this,"finish"))&&t.stop(!0)};return s.finish=s,o||!1===r.queue?this.each(s):this.queue(r.queue,s)},stop:function(e,t,n){var i=function(e){var t=e.stop;delete e.stop,t(n)};return"string"!=typeof e&&(n=t,t=e,e=void 0),t&&!1!==e&&this.queue(e||"fx",[]),this.each(function(){var t=!0,o=null!=e&&e+"queueHooks",r=v.timers,s=U.get(this);if(o)s[o]&&s[o].stop&&i(s[o]);else for(o in s)s[o]&&s[o].stop&&tt.test(o)&&i(s[o]);for(o=r.length;o--;)r[o].elem!==this||null!=e&&r[o].queue!==e||(r[o].anim.stop(n),t=!1,r.splice(o,1));!t&&n||v.dequeue(this,e)})},finish:function(e){return!1!==e&&(e=e||"fx"),this.each(function(){var t,n=U.get(this),i=n[e+"queue"],o=n[e+"queueHooks"],r=v.timers,s=i?i.length:0;for(n.finish=!0,v.queue(this,e,[]),o&&o.stop&&o.stop.call(this,!0),t=r.length;t--;)r[t].elem===this&&r[t].queue===e&&(r[t].anim.stop(!0),r.splice(t,1));for(t=0;t<s;t++)i[t]&&i[t].finish&&i[t].finish.call(this);delete n.finish})}}),v.each(["toggle","show","hide"],function(e,t){var n=v.fn[t];v.fn[t]=function(e,i,o){return null==e||"boolean"==typeof e?n.apply(this,arguments):this.animate(ot(t,!0),e,i,o)}}),v.each({slideDown:ot("show"),slideUp:ot("hide"),slideToggle:ot("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(e,t){v.fn[e]=function(e,n,i){return this.animate(t,e,n,i)}}),v.timers=[],v.fx.tick=function(){var e,t=0,n=v.timers;for(Qe=v.now();t<n.length;t++)(e=n[t])()||n[t]!==e||n.splice(t--,1);n.length||v.fx.stop(),Qe=void 0},v.fx.timer=function(e){v.timers.push(e),v.fx.start()},v.fx.interval=13,v.fx.start=function(){Ke||(Ke=!0,nt())},v.fx.stop=function(){Ke=null},v.fx.speeds={slow:600,fast:200,_default:400},v.fn.delay=function(t,n){return t=v.fx&&v.fx.speeds[t]||t,n=n||"fx",this.queue(n,function(n,i){var o=e.setTimeout(n,t);i.stop=function(){e.clearTimeout(o)}})},Je=i.createElement("input"),Ze=i.createElement("select").appendChild(i.createElement("option")),Je.type="checkbox",d.checkOn=""!==Je.value,d.optSelected=Ze.selected,(Je=i.createElement("input")).value="t",Je.type="radio",d.radioValue="t"===Je.value;var at,lt=v.expr.attrHandle;v.fn.extend({attr:function(e,t){return $(this,v.attr,e,t,arguments.length>1)},removeAttr:function(e){return this.each(function(){v.removeAttr(this,e)})}}),v.extend({attr:function(e,t,n){var i,o,r=e.nodeType;if(3!==r&&8!==r&&2!==r)return void 0===e.getAttribute?v.prop(e,t,n):(1===r&&v.isXMLDoc(e)||(o=v.attrHooks[t.toLowerCase()]||(v.expr.match.bool.test(t)?at:void 0)),void 0!==n?null===n?void v.removeAttr(e,t):o&&"set"in o&&void 0!==(i=o.set(e,n,t))?i:(e.setAttribute(t,n+""),n):o&&"get"in o&&null!==(i=o.get(e,t))?i:null==(i=v.find.attr(e,t))?void 0:i)},attrHooks:{type:{set:function(e,t){if(!d.radioValue&&"radio"===t&&S(e,"input")){var n=e.value;return e.setAttribute("type",t),n&&(e.value=n),t}}}},removeAttr:function(e,t){var n,i=0,o=t&&t.match(O);if(o&&1===e.nodeType)for(;n=o[i++];)e.removeAttribute(n)}}),at={set:function(e,t,n){return!1===t?v.removeAttr(e,n):e.setAttribute(n,n),n}},v.each(v.expr.match.bool.source.match(/\w+/g),function(e,t){var n=lt[t]||v.find.attr;lt[t]=function(e,t,i){var o,r,s=t.toLowerCase();return i||(r=lt[s],lt[s]=o,o=null!=n(e,t,i)?s:null,lt[s]=r),o}});var ut=/^(?:input|select|textarea|button)$/i,ct=/^(?:a|area)$/i;function pt(e){return(e.match(O)||[]).join(" ")}function ft(e){return e.getAttribute&&e.getAttribute("class")||""}v.fn.extend({prop:function(e,t){return $(this,v.prop,e,t,arguments.length>1)},removeProp:function(e){return this.each(function(){delete this[v.propFix[e]||e]})}}),v.extend({prop:function(e,t,n){var i,o,r=e.nodeType;if(3!==r&&8!==r&&2!==r)return 1===r&&v.isXMLDoc(e)||(t=v.propFix[t]||t,o=v.propHooks[t]),void 0!==n?o&&"set"in o&&void 0!==(i=o.set(e,n,t))?i:e[t]=n:o&&"get"in o&&null!==(i=o.get(e,t))?i:e[t]},propHooks:{tabIndex:{get:function(e){var t=v.find.attr(e,"tabindex");return t?parseInt(t,10):ut.test(e.nodeName)||ct.test(e.nodeName)&&e.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),d.optSelected||(v.propHooks.selected={get:function(e){var t=e.parentNode;return t&&t.parentNode&&t.parentNode.selectedIndex,null},set:function(e){var t=e.parentNode;t&&(t.selectedIndex,t.parentNode&&t.parentNode.selectedIndex)}}),v.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){v.propFix[this.toLowerCase()]=this}),v.fn.extend({addClass:function(e){var t,n,i,o,r,s,a,l=0;if(v.isFunction(e))return this.each(function(t){v(this).addClass(e.call(this,t,ft(this)))});if("string"==typeof e&&e)for(t=e.match(O)||[];n=this[l++];)if(o=ft(n),i=1===n.nodeType&&" "+pt(o)+" "){for(s=0;r=t[s++];)i.indexOf(" "+r+" ")<0&&(i+=r+" ");o!==(a=pt(i))&&n.setAttribute("class",a)}return this},removeClass:function(e){var t,n,i,o,r,s,a,l=0;if(v.isFunction(e))return this.each(function(t){v(this).removeClass(e.call(this,t,ft(this)))});if(!arguments.length)return this.attr("class","");if("string"==typeof e&&e)for(t=e.match(O)||[];n=this[l++];)if(o=ft(n),i=1===n.nodeType&&" "+pt(o)+" "){for(s=0;r=t[s++];)for(;i.indexOf(" "+r+" ")>-1;)i=i.replace(" "+r+" "," ");o!==(a=pt(i))&&n.setAttribute("class",a)}return this},toggleClass:function(e,t){var n=typeof e;return"boolean"==typeof t&&"string"===n?t?this.addClass(e):this.removeClass(e):v.isFunction(e)?this.each(function(n){v(this).toggleClass(e.call(this,n,ft(this),t),t)}):this.each(function(){var t,i,o,r;if("string"===n)for(i=0,o=v(this),r=e.match(O)||[];t=r[i++];)o.hasClass(t)?o.removeClass(t):o.addClass(t);else void 0!==e&&"boolean"!==n||((t=ft(this))&&U.set(this,"__className__",t),this.setAttribute&&this.setAttribute("class",t||!1===e?"":U.get(this,"__className__")||""))})},hasClass:function(e){var t,n,i=0;for(t=" "+e+" ";n=this[i++];)if(1===n.nodeType&&(" "+pt(ft(n))+" ").indexOf(t)>-1)return!0;return!1}});var ht=/\r/g;v.fn.extend({val:function(e){var t,n,i,o=this[0];return arguments.length?(i=v.isFunction(e),this.each(function(n){var o;1===this.nodeType&&(null==(o=i?e.call(this,n,v(this).val()):e)?o="":"number"==typeof o?o+="":Array.isArray(o)&&(o=v.map(o,function(e){return null==e?"":e+""})),(t=v.valHooks[this.type]||v.valHooks[this.nodeName.toLowerCase()])&&"set"in t&&void 0!==t.set(this,o,"value")||(this.value=o))})):o?(t=v.valHooks[o.type]||v.valHooks[o.nodeName.toLowerCase()])&&"get"in t&&void 0!==(n=t.get(o,"value"))?n:"string"==typeof(n=o.value)?n.replace(ht,""):null==n?"":n:void 0}}),v.extend({valHooks:{option:{get:function(e){var t=v.find.attr(e,"value");return null!=t?t:pt(v.text(e))}},select:{get:function(e){var t,n,i,o=e.options,r=e.selectedIndex,s="select-one"===e.type,a=s?null:[],l=s?r+1:o.length;for(i=r<0?l:s?r:0;i<l;i++)if(((n=o[i]).selected||i===r)&&!n.disabled&&(!n.parentNode.disabled||!S(n.parentNode,"optgroup"))){if(t=v(n).val(),s)return t;a.push(t)}return a},set:function(e,t){for(var n,i,o=e.options,r=v.makeArray(t),s=o.length;s--;)((i=o[s]).selected=v.inArray(v.valHooks.option.get(i),r)>-1)&&(n=!0);return n||(e.selectedIndex=-1),r}}}}),v.each(["radio","checkbox"],function(){v.valHooks[this]={set:function(e,t){if(Array.isArray(t))return e.checked=v.inArray(v(e).val(),t)>-1}},d.checkOn||(v.valHooks[this].get=function(e){return null===e.getAttribute("value")?"on":e.value})});var dt=/^(?:focusinfocus|focusoutblur)$/;v.extend(v.event,{trigger:function(t,n,o,r){var s,a,l,u,c,f,h,d=[o||i],g=p.call(t,"type")?t.type:t,m=p.call(t,"namespace")?t.namespace.split("."):[];if(a=l=o=o||i,3!==o.nodeType&&8!==o.nodeType&&!dt.test(g+v.event.triggered)&&(g.indexOf(".")>-1&&(g=(m=g.split(".")).shift(),m.sort()),c=g.indexOf(":")<0&&"on"+g,(t=t[v.expando]?t:new v.Event(g,"object"==typeof t&&t)).isTrigger=r?2:3,t.namespace=m.join("."),t.rnamespace=t.namespace?new RegExp("(^|\\.)"+m.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,t.result=void 0,t.target||(t.target=o),n=null==n?[t]:v.makeArray(n,[t]),h=v.event.special[g]||{},r||!h.trigger||!1!==h.trigger.apply(o,n))){if(!r&&!h.noBubble&&!v.isWindow(o)){for(u=h.delegateType||g,dt.test(u+g)||(a=a.parentNode);a;a=a.parentNode)d.push(a),l=a;l===(o.ownerDocument||i)&&d.push(l.defaultView||l.parentWindow||e)}for(s=0;(a=d[s++])&&!t.isPropagationStopped();)t.type=s>1?u:h.bindType||g,(f=(U.get(a,"events")||{})[t.type]&&U.get(a,"handle"))&&f.apply(a,n),(f=c&&a[c])&&f.apply&&z(a)&&(t.result=f.apply(a,n),!1===t.result&&t.preventDefault());return t.type=g,r||t.isDefaultPrevented()||h._default&&!1!==h._default.apply(d.pop(),n)||!z(o)||c&&v.isFunction(o[g])&&!v.isWindow(o)&&((l=o[c])&&(o[c]=null),v.event.triggered=g,o[g](),v.event.triggered=void 0,l&&(o[c]=l)),t.result}},simulate:function(e,t,n){var i=v.extend(new v.Event,n,{type:e,isSimulated:!0});v.event.trigger(i,null,t)}}),v.fn.extend({trigger:function(e,t){return this.each(function(){v.event.trigger(e,t,this)})},triggerHandler:function(e,t){var n=this[0];if(n)return v.event.trigger(e,t,n,!0)}}),v.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),function(e,t){v.fn[t]=function(e,n){return arguments.length>0?this.on(t,null,e,n):this.trigger(t)}}),v.fn.extend({hover:function(e,t){return this.mouseenter(e).mouseleave(t||e)}}),d.focusin="onfocusin"in e,d.focusin||v.each({focus:"focusin",blur:"focusout"},function(e,t){var n=function(e){v.event.simulate(t,e.target,v.event.fix(e))};v.event.special[t]={setup:function(){var i=this.ownerDocument||this,o=U.access(i,t);o||i.addEventListener(e,n,!0),U.access(i,t,(o||0)+1)},teardown:function(){var i=this.ownerDocument||this,o=U.access(i,t)-1;o?U.access(i,t,o):(i.removeEventListener(e,n,!0),U.remove(i,t))}}});var gt=e.location,mt=v.now(),vt=/\?/;v.parseXML=function(t){var n;if(!t||"string"!=typeof t)return null;try{n=(new e.DOMParser).parseFromString(t,"text/xml")}catch(e){n=void 0}return n&&!n.getElementsByTagName("parsererror").length||v.error("Invalid XML: "+t),n};var yt=/\[\]$/,bt=/\r?\n/g,xt=/^(?:submit|button|image|reset|file)$/i,wt=/^(?:input|select|textarea|keygen)/i;function Ct(e,t,n,i){var o;if(Array.isArray(t))v.each(t,function(t,o){n||yt.test(e)?i(e,o):Ct(e+"["+("object"==typeof o&&null!=o?t:"")+"]",o,n,i)});else if(n||"object"!==v.type(t))i(e,t);else for(o in t)Ct(e+"["+o+"]",t[o],n,i)}v.param=function(e,t){var n,i=[],o=function(e,t){var n=v.isFunction(t)?t():t;i[i.length]=encodeURIComponent(e)+"="+encodeURIComponent(null==n?"":n)};if(Array.isArray(e)||e.jquery&&!v.isPlainObject(e))v.each(e,function(){o(this.name,this.value)});else for(n in e)Ct(n,e[n],t,o);return i.join("&")},v.fn.extend({serialize:function(){return v.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var e=v.prop(this,"elements");return e?v.makeArray(e):this}).filter(function(){var e=this.type;return this.name&&!v(this).is(":disabled")&&wt.test(this.nodeName)&&!xt.test(e)&&(this.checked||!re.test(e))}).map(function(e,t){var n=v(this).val();return null==n?null:Array.isArray(n)?v.map(n,function(e){return{name:t.name,value:e.replace(bt,"\r\n")}}):{name:t.name,value:n.replace(bt,"\r\n")}}).get()}});var _t=/%20/g,Tt=/#.*$/,Et=/([?&])_=[^&]*/,kt=/^(.*?):[ \t]*([^\r\n]*)$/gm,St=/^(?:GET|HEAD)$/,Pt=/^\/\//,Nt={},Dt={},At="*/".concat("*"),Mt=i.createElement("a");function jt(e){return function(t,n){"string"!=typeof t&&(n=t,t="*");var i,o=0,r=t.toLowerCase().match(O)||[];if(v.isFunction(n))for(;i=r[o++];)"+"===i[0]?(i=i.slice(1)||"*",(e[i]=e[i]||[]).unshift(n)):(e[i]=e[i]||[]).push(n)}}function Ht(e,t,n,i){var o={},r=e===Dt;function s(a){var l;return o[a]=!0,v.each(e[a]||[],function(e,a){var u=a(t,n,i);return"string"!=typeof u||r||o[u]?r?!(l=u):void 0:(t.dataTypes.unshift(u),s(u),!1)}),l}return s(t.dataTypes[0])||!o["*"]&&s("*")}function Lt(e,t){var n,i,o=v.ajaxSettings.flatOptions||{};for(n in t)void 0!==t[n]&&((o[n]?e:i||(i={}))[n]=t[n]);return i&&v.extend(!0,e,i),e}Mt.href=gt.href,v.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:gt.href,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(gt.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":At,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":JSON.parse,"text xml":v.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(e,t){return t?Lt(Lt(e,v.ajaxSettings),t):Lt(v.ajaxSettings,e)},ajaxPrefilter:jt(Nt),ajaxTransport:jt(Dt),ajax:function(t,n){"object"==typeof t&&(n=t,t=void 0),n=n||{};var o,r,s,a,l,u,c,p,f,h,d=v.ajaxSetup({},n),g=d.context||d,m=d.context&&(g.nodeType||g.jquery)?v(g):v.event,y=v.Deferred(),b=v.Callbacks("once memory"),x=d.statusCode||{},w={},C={},_="canceled",T={readyState:0,getResponseHeader:function(e){var t;if(c){if(!a)for(a={};t=kt.exec(s);)a[t[1].toLowerCase()]=t[2];t=a[e.toLowerCase()]}return null==t?null:t},getAllResponseHeaders:function(){return c?s:null},setRequestHeader:function(e,t){return null==c&&(e=C[e.toLowerCase()]=C[e.toLowerCase()]||e,w[e]=t),this},overrideMimeType:function(e){return null==c&&(d.mimeType=e),this},statusCode:function(e){var t;if(e)if(c)T.always(e[T.status]);else for(t in e)x[t]=[x[t],e[t]];return this},abort:function(e){var t=e||_;return o&&o.abort(t),E(0,t),this}};if(y.promise(T),d.url=((t||d.url||gt.href)+"").replace(Pt,gt.protocol+"//"),d.type=n.method||n.type||d.method||d.type,d.dataTypes=(d.dataType||"*").toLowerCase().match(O)||[""],null==d.crossDomain){u=i.createElement("a");try{u.href=d.url,u.href=u.href,d.crossDomain=Mt.protocol+"//"+Mt.host!=u.protocol+"//"+u.host}catch(e){d.crossDomain=!0}}if(d.data&&d.processData&&"string"!=typeof d.data&&(d.data=v.param(d.data,d.traditional)),Ht(Nt,d,n,T),c)return T;(p=v.event&&d.global)&&0==v.active++&&v.event.trigger("ajaxStart"),d.type=d.type.toUpperCase(),d.hasContent=!St.test(d.type),r=d.url.replace(Tt,""),d.hasContent?d.data&&d.processData&&0===(d.contentType||"").indexOf("application/x-www-form-urlencoded")&&(d.data=d.data.replace(_t,"+")):(h=d.url.slice(r.length),d.data&&(r+=(vt.test(r)?"&":"?")+d.data,delete d.data),!1===d.cache&&(r=r.replace(Et,"$1"),h=(vt.test(r)?"&":"?")+"_="+mt+++h),d.url=r+h),d.ifModified&&(v.lastModified[r]&&T.setRequestHeader("If-Modified-Since",v.lastModified[r]),v.etag[r]&&T.setRequestHeader("If-None-Match",v.etag[r])),(d.data&&d.hasContent&&!1!==d.contentType||n.contentType)&&T.setRequestHeader("Content-Type",d.contentType),T.setRequestHeader("Accept",d.dataTypes[0]&&d.accepts[d.dataTypes[0]]?d.accepts[d.dataTypes[0]]+("*"!==d.dataTypes[0]?", "+At+"; q=0.01":""):d.accepts["*"]);for(f in d.headers)T.setRequestHeader(f,d.headers[f]);if(d.beforeSend&&(!1===d.beforeSend.call(g,T,d)||c))return T.abort();if(_="abort",b.add(d.complete),T.done(d.success),T.fail(d.error),o=Ht(Dt,d,n,T)){if(T.readyState=1,p&&m.trigger("ajaxSend",[T,d]),c)return T;d.async&&d.timeout>0&&(l=e.setTimeout(function(){T.abort("timeout")},d.timeout));try{c=!1,o.send(w,E)}catch(e){if(c)throw e;E(-1,e)}}else E(-1,"No Transport");function E(t,n,i,a){var u,f,h,w,C,_=n;c||(c=!0,l&&e.clearTimeout(l),o=void 0,s=a||"",T.readyState=t>0?4:0,u=t>=200&&t<300||304===t,i&&(w=function(e,t,n){for(var i,o,r,s,a=e.contents,l=e.dataTypes;"*"===l[0];)l.shift(),void 0===i&&(i=e.mimeType||t.getResponseHeader("Content-Type"));if(i)for(o in a)if(a[o]&&a[o].test(i)){l.unshift(o);break}if(l[0]in n)r=l[0];else{for(o in n){if(!l[0]||e.converters[o+" "+l[0]]){r=o;break}s||(s=o)}r=r||s}if(r)return r!==l[0]&&l.unshift(r),n[r]}(d,T,i)),w=function(e,t,n,i){var o,r,s,a,l,u={},c=e.dataTypes.slice();if(c[1])for(s in e.converters)u[s.toLowerCase()]=e.converters[s];for(r=c.shift();r;)if(e.responseFields[r]&&(n[e.responseFields[r]]=t),!l&&i&&e.dataFilter&&(t=e.dataFilter(t,e.dataType)),l=r,r=c.shift())if("*"===r)r=l;else if("*"!==l&&l!==r){if(!(s=u[l+" "+r]||u["* "+r]))for(o in u)if((a=o.split(" "))[1]===r&&(s=u[l+" "+a[0]]||u["* "+a[0]])){!0===s?s=u[o]:!0!==u[o]&&(r=a[0],c.unshift(a[1]));break}if(!0!==s)if(s&&e.throws)t=s(t);else try{t=s(t)}catch(e){return{state:"parsererror",error:s?e:"No conversion from "+l+" to "+r}}}return{state:"success",data:t}}(d,w,T,u),u?(d.ifModified&&((C=T.getResponseHeader("Last-Modified"))&&(v.lastModified[r]=C),(C=T.getResponseHeader("etag"))&&(v.etag[r]=C)),204===t||"HEAD"===d.type?_="nocontent":304===t?_="notmodified":(_=w.state,f=w.data,u=!(h=w.error))):(h=_,!t&&_||(_="error",t<0&&(t=0))),T.status=t,T.statusText=(n||_)+"",u?y.resolveWith(g,[f,_,T]):y.rejectWith(g,[T,_,h]),T.statusCode(x),x=void 0,p&&m.trigger(u?"ajaxSuccess":"ajaxError",[T,d,u?f:h]),b.fireWith(g,[T,_]),p&&(m.trigger("ajaxComplete",[T,d]),--v.active||v.event.trigger("ajaxStop")))}return T},getJSON:function(e,t,n){return v.get(e,t,n,"json")},getScript:function(e,t){return v.get(e,void 0,t,"script")}}),v.each(["get","post"],function(e,t){v[t]=function(e,n,i,o){return v.isFunction(n)&&(o=o||i,i=n,n=void 0),v.ajax(v.extend({url:e,type:t,dataType:o,data:n,success:i},v.isPlainObject(e)&&e))}}),v._evalUrl=function(e){return v.ajax({url:e,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,throws:!0})},v.fn.extend({wrapAll:function(e){var t;return this[0]&&(v.isFunction(e)&&(e=e.call(this[0])),t=v(e,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&t.insertBefore(this[0]),t.map(function(){for(var e=this;e.firstElementChild;)e=e.firstElementChild;return e}).append(this)),this},wrapInner:function(e){return v.isFunction(e)?this.each(function(t){v(this).wrapInner(e.call(this,t))}):this.each(function(){var t=v(this),n=t.contents();n.length?n.wrapAll(e):t.append(e)})},wrap:function(e){var t=v.isFunction(e);return this.each(function(n){v(this).wrapAll(t?e.call(this,n):e)})},unwrap:function(e){return this.parent(e).not("body").each(function(){v(this).replaceWith(this.childNodes)}),this}}),v.expr.pseudos.hidden=function(e){return!v.expr.pseudos.visible(e)},v.expr.pseudos.visible=function(e){return!!(e.offsetWidth||e.offsetHeight||e.getClientRects().length)},v.ajaxSettings.xhr=function(){try{return new e.XMLHttpRequest}catch(e){}};var Ot={0:200,1223:204},It=v.ajaxSettings.xhr();d.cors=!!It&&"withCredentials"in It,d.ajax=It=!!It,v.ajaxTransport(function(t){var n,i;if(d.cors||It&&!t.crossDomain)return{send:function(o,r){var s,a=t.xhr();if(a.open(t.type,t.url,t.async,t.username,t.password),t.xhrFields)for(s in t.xhrFields)a[s]=t.xhrFields[s];t.mimeType&&a.overrideMimeType&&a.overrideMimeType(t.mimeType),t.crossDomain||o["X-Requested-With"]||(o["X-Requested-With"]="XMLHttpRequest");for(s in o)a.setRequestHeader(s,o[s]);n=function(e){return function(){n&&(n=i=a.onload=a.onerror=a.onabort=a.onreadystatechange=null,"abort"===e?a.abort():"error"===e?"number"!=typeof a.status?r(0,"error"):r(a.status,a.statusText):r(Ot[a.status]||a.status,a.statusText,"text"!==(a.responseType||"text")||"string"!=typeof a.responseText?{binary:a.response}:{text:a.responseText},a.getAllResponseHeaders()))}},a.onload=n(),i=a.onerror=n("error"),void 0!==a.onabort?a.onabort=i:a.onreadystatechange=function(){4===a.readyState&&e.setTimeout(function(){n&&i()})},n=n("abort");try{a.send(t.hasContent&&t.data||null)}catch(e){if(n)throw e}},abort:function(){n&&n()}}}),v.ajaxPrefilter(function(e){e.crossDomain&&(e.contents.script=!1)}),v.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(e){return v.globalEval(e),e}}}),v.ajaxPrefilter("script",function(e){void 0===e.cache&&(e.cache=!1),e.crossDomain&&(e.type="GET")}),v.ajaxTransport("script",function(e){var t,n;if(e.crossDomain)return{send:function(o,r){t=v("<script>").prop({charset:e.scriptCharset,src:e.url}).on("load error",n=function(e){t.remove(),n=null,e&&r("error"===e.type?404:200,e.type)}),i.head.appendChild(t[0])},abort:function(){n&&n()}}});var Ft,qt=[],Rt=/(=)\?(?=&|$)|\?\?/;v.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=qt.pop()||v.expando+"_"+mt++;return this[e]=!0,e}}),v.ajaxPrefilter("json jsonp",function(t,n,i){var o,r,s,a=!1!==t.jsonp&&(Rt.test(t.url)?"url":"string"==typeof t.data&&0===(t.contentType||"").indexOf("application/x-www-form-urlencoded")&&Rt.test(t.data)&&"data");if(a||"jsonp"===t.dataTypes[0])return o=t.jsonpCallback=v.isFunction(t.jsonpCallback)?t.jsonpCallback():t.jsonpCallback,a?t[a]=t[a].replace(Rt,"$1"+o):!1!==t.jsonp&&(t.url+=(vt.test(t.url)?"&":"?")+t.jsonp+"="+o),t.converters["script json"]=function(){return s||v.error(o+" was not called"),s[0]},t.dataTypes[0]="json",r=e[o],e[o]=function(){s=arguments},i.always(function(){void 0===r?v(e).removeProp(o):e[o]=r,t[o]&&(t.jsonpCallback=n.jsonpCallback,qt.push(o)),s&&v.isFunction(r)&&r(s[0]),s=r=void 0}),"script"}),d.createHTMLDocument=((Ft=i.implementation.createHTMLDocument("").body).innerHTML="<form></form><form></form>",2===Ft.childNodes.length),v.parseHTML=function(e,t,n){return"string"!=typeof e?[]:("boolean"==typeof t&&(n=t,t=!1),t||(d.createHTMLDocument?((o=(t=i.implementation.createHTMLDocument("")).createElement("base")).href=i.location.href,t.head.appendChild(o)):t=i),r=P.exec(e),s=!n&&[],r?[t.createElement(r[1])]:(r=de([e],t,s),s&&s.length&&v(s).remove(),v.merge([],r.childNodes)));var o,r,s},v.fn.load=function(e,t,n){var i,o,r,s=this,a=e.indexOf(" ");return a>-1&&(i=pt(e.slice(a)),e=e.slice(0,a)),v.isFunction(t)?(n=t,t=void 0):t&&"object"==typeof t&&(o="POST"),s.length>0&&v.ajax({url:e,type:o||"GET",dataType:"html",data:t}).done(function(e){r=arguments,s.html(i?v("<div>").append(v.parseHTML(e)).find(i):e)}).always(n&&function(e,t){s.each(function(){n.apply(this,r||[e.responseText,t,e])})}),this},v.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(e,t){v.fn[t]=function(e){return this.on(t,e)}}),v.expr.pseudos.animated=function(e){return v.grep(v.timers,function(t){return e===t.elem}).length},v.offset={setOffset:function(e,t,n){var i,o,r,s,a,l,u=v.css(e,"position"),c=v(e),p={};"static"===u&&(e.style.position="relative"),a=c.offset(),r=v.css(e,"top"),l=v.css(e,"left"),("absolute"===u||"fixed"===u)&&(r+l).indexOf("auto")>-1?(s=(i=c.position()).top,o=i.left):(s=parseFloat(r)||0,o=parseFloat(l)||0),v.isFunction(t)&&(t=t.call(e,n,v.extend({},a))),null!=t.top&&(p.top=t.top-a.top+s),null!=t.left&&(p.left=t.left-a.left+o),"using"in t?t.using.call(e,p):c.css(p)}},v.fn.extend({offset:function(e){if(arguments.length)return void 0===e?this:this.each(function(t){v.offset.setOffset(this,e,t)});var t,n,i,o,r=this[0];return r?r.getClientRects().length?(i=r.getBoundingClientRect(),n=(t=r.ownerDocument).documentElement,o=t.defaultView,{top:i.top+o.pageYOffset-n.clientTop,left:i.left+o.pageXOffset-n.clientLeft}):{top:0,left:0}:void 0},position:function(){if(this[0]){var e,t,n=this[0],i={top:0,left:0};return"fixed"===v.css(n,"position")?t=n.getBoundingClientRect():(e=this.offsetParent(),t=this.offset(),S(e[0],"html")||(i=e.offset()),i={top:i.top+v.css(e[0],"borderTopWidth",!0),left:i.left+v.css(e[0],"borderLeftWidth",!0)}),{top:t.top-i.top-v.css(n,"marginTop",!0),left:t.left-i.left-v.css(n,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var e=this.offsetParent;e&&"static"===v.css(e,"position");)e=e.offsetParent;return e||ge})}}),v.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(e,t){var n="pageYOffset"===t;v.fn[e]=function(i){return $(this,function(e,i,o){var r;if(v.isWindow(e)?r=e:9===e.nodeType&&(r=e.defaultView),void 0===o)return r?r[t]:e[i];r?r.scrollTo(n?r.pageXOffset:o,n?o:r.pageYOffset):e[i]=o},e,i,arguments.length)}}),v.each(["top","left"],function(e,t){v.cssHooks[t]=Fe(d.pixelPosition,function(e,n){if(n)return n=Ie(e,t),Le.test(n)?v(e).position()[t]+"px":n})}),v.each({Height:"height",Width:"width"},function(e,t){v.each({padding:"inner"+e,content:t,"":"outer"+e},function(n,i){v.fn[i]=function(o,r){var s=arguments.length&&(n||"boolean"!=typeof o),a=n||(!0===o||!0===r?"margin":"border");return $(this,function(t,n,o){var r;return v.isWindow(t)?0===i.indexOf("outer")?t["inner"+e]:t.document.documentElement["client"+e]:9===t.nodeType?(r=t.documentElement,Math.max(t.body["scroll"+e],r["scroll"+e],t.body["offset"+e],r["offset"+e],r["client"+e])):void 0===o?v.css(t,n,a):v.style(t,n,o,a)},t,s?o:void 0,s)}})}),v.fn.extend({bind:function(e,t,n){return this.on(e,null,t,n)},unbind:function(e,t){return this.off(e,null,t)},delegate:function(e,t,n,i){return this.on(t,e,n,i)},undelegate:function(e,t,n){return 1===arguments.length?this.off(e,"**"):this.off(t,e||"**",n)}}),v.holdReady=function(e){e?v.readyWait++:v.ready(!0)},v.isArray=Array.isArray,v.parseJSON=JSON.parse,v.nodeName=S,"function"==typeof define&&define.amd&&define("jquery",[],function(){return v});var Wt=e.jQuery,Bt=e.$;return v.noConflict=function(t){return e.$===v&&(e.$=Bt),t&&e.jQuery===v&&(e.jQuery=Wt),v},t||(e.jQuery=e.$=v),v}),
/*! jQuery UI - v1.12.1 - 2017-10-27
* http://jqueryui.com
* Includes: widget.js, data.js, scroll-parent.js, widgets/draggable.js, widgets/droppable.js, widgets/mouse.js
* Copyright jQuery Foundation and other contributors; Licensed MIT */
function(e){"function"==typeof define&&define.amd?define(["jquery"],e):e(jQuery)}(function(e){e.ui=e.ui||{};e.ui.version="1.12.1";
/*!
 * jQuery UI Widget 1.12.1
 * http://jqueryui.com
 *
 * Copyright jQuery Foundation and other contributors
 * Released under the MIT license.
 * http://jquery.org/license
 */var t,n=0,i=Array.prototype.slice;e.cleanData=(t=e.cleanData,function(n){var i,o,r;for(r=0;null!=(o=n[r]);r++)try{(i=e._data(o,"events"))&&i.remove&&e(o).triggerHandler("remove")}catch(e){}t(n)}),e.widget=function(t,n,i){var o,r,s,a={},l=t.split(".")[0],u=l+"-"+(t=t.split(".")[1]);return i||(i=n,n=e.Widget),e.isArray(i)&&(i=e.extend.apply(null,[{}].concat(i))),e.expr[":"][u.toLowerCase()]=function(t){return!!e.data(t,u)},e[l]=e[l]||{},o=e[l][t],r=e[l][t]=function(e,t){if(!this._createWidget)return new r(e,t);arguments.length&&this._createWidget(e,t)},e.extend(r,o,{version:i.version,_proto:e.extend({},i),_childConstructors:[]}),(s=new n).options=e.widget.extend({},s.options),e.each(i,function(t,i){e.isFunction(i)?a[t]=function(){function e(){return n.prototype[t].apply(this,arguments)}function o(e){return n.prototype[t].apply(this,e)}return function(){var t,n=this._super,r=this._superApply;return this._super=e,this._superApply=o,t=i.apply(this,arguments),this._super=n,this._superApply=r,t}}():a[t]=i}),r.prototype=e.widget.extend(s,{widgetEventPrefix:o&&s.widgetEventPrefix||t},a,{constructor:r,namespace:l,widgetName:t,widgetFullName:u}),o?(e.each(o._childConstructors,function(t,n){var i=n.prototype;e.widget(i.namespace+"."+i.widgetName,r,n._proto)}),delete o._childConstructors):n._childConstructors.push(r),e.widget.bridge(t,r),r},e.widget.extend=function(t){for(var n,o,r=i.call(arguments,1),s=0,a=r.length;s<a;s++)for(n in r[s])o=r[s][n],r[s].hasOwnProperty(n)&&void 0!==o&&(e.isPlainObject(o)?t[n]=e.isPlainObject(t[n])?e.widget.extend({},t[n],o):e.widget.extend({},o):t[n]=o);return t},e.widget.bridge=function(t,n){var o=n.prototype.widgetFullName||t;e.fn[t]=function(r){var s="string"==typeof r,a=i.call(arguments,1),l=this;return s?this.length||"instance"!==r?this.each(function(){var n,i=e.data(this,o);return"instance"===r?(l=i,!1):i?e.isFunction(i[r])&&"_"!==r.charAt(0)?(n=i[r].apply(i,a))!==i&&void 0!==n?(l=n&&n.jquery?l.pushStack(n.get()):n,!1):void 0:e.error("no such method '"+r+"' for "+t+" widget instance"):e.error("cannot call methods on "+t+" prior to initialization; attempted to call method '"+r+"'")}):l=void 0:(a.length&&(r=e.widget.extend.apply(null,[r].concat(a))),this.each(function(){var t=e.data(this,o);t?(t.option(r||{}),t._init&&t._init()):e.data(this,o,new n(r,this))})),l}},e.Widget=function(){},e.Widget._childConstructors=[],e.Widget.prototype={widgetName:"widget",widgetEventPrefix:"",defaultElement:"<div>",options:{classes:{},disabled:!1,create:null},_createWidget:function(t,i){i=e(i||this.defaultElement||this)[0],this.element=e(i),this.uuid=n++,this.eventNamespace="."+this.widgetName+this.uuid,this.bindings=e(),this.hoverable=e(),this.focusable=e(),this.classesElementLookup={},i!==this&&(e.data(i,this.widgetFullName,this),this._on(!0,this.element,{remove:function(e){e.target===i&&this.destroy()}}),this.document=e(i.style?i.ownerDocument:i.document||i),this.window=e(this.document[0].defaultView||this.document[0].parentWindow)),this.options=e.widget.extend({},this.options,this._getCreateOptions(),t),this._create(),this.options.disabled&&this._setOptionDisabled(this.options.disabled),this._trigger("create",null,this._getCreateEventData()),this._init()},_getCreateOptions:function(){return{}},_getCreateEventData:e.noop,_create:e.noop,_init:e.noop,destroy:function(){var t=this;this._destroy(),e.each(this.classesElementLookup,function(e,n){t._removeClass(n,e)}),this.element.off(this.eventNamespace).removeData(this.widgetFullName),this.widget().off(this.eventNamespace).removeAttr("aria-disabled"),this.bindings.off(this.eventNamespace)},_destroy:e.noop,widget:function(){return this.element},option:function(t,n){var i,o,r,s=t;if(0===arguments.length)return e.widget.extend({},this.options);if("string"==typeof t)if(s={},t=(i=t.split(".")).shift(),i.length){for(o=s[t]=e.widget.extend({},this.options[t]),r=0;r<i.length-1;r++)o[i[r]]=o[i[r]]||{},o=o[i[r]];if(t=i.pop(),1===arguments.length)return void 0===o[t]?null:o[t];o[t]=n}else{if(1===arguments.length)return void 0===this.options[t]?null:this.options[t];s[t]=n}return this._setOptions(s),this},_setOptions:function(e){var t;for(t in e)this._setOption(t,e[t]);return this},_setOption:function(e,t){return"classes"===e&&this._setOptionClasses(t),this.options[e]=t,"disabled"===e&&this._setOptionDisabled(t),this},_setOptionClasses:function(t){var n,i,o;for(n in t)o=this.classesElementLookup[n],t[n]!==this.options.classes[n]&&o&&o.length&&(i=e(o.get()),this._removeClass(o,n),i.addClass(this._classes({element:i,keys:n,classes:t,add:!0})))},_setOptionDisabled:function(e){this._toggleClass(this.widget(),this.widgetFullName+"-disabled",null,!!e),e&&(this._removeClass(this.hoverable,null,"ui-state-hover"),this._removeClass(this.focusable,null,"ui-state-focus"))},enable:function(){return this._setOptions({disabled:!1})},disable:function(){return this._setOptions({disabled:!0})},_classes:function(t){var n=[],i=this;function o(o,r){var s,a;for(a=0;a<o.length;a++)s=i.classesElementLookup[o[a]]||e(),s=t.add?e(e.unique(s.get().concat(t.element.get()))):e(s.not(t.element).get()),i.classesElementLookup[o[a]]=s,n.push(o[a]),r&&t.classes[o[a]]&&n.push(t.classes[o[a]])}return t=e.extend({element:this.element,classes:this.options.classes||{}},t),this._on(t.element,{remove:"_untrackClassesElement"}),t.keys&&o(t.keys.match(/\S+/g)||[],!0),t.extra&&o(t.extra.match(/\S+/g)||[]),n.join(" ")},_untrackClassesElement:function(t){var n=this;e.each(n.classesElementLookup,function(i,o){-1!==e.inArray(t.target,o)&&(n.classesElementLookup[i]=e(o.not(t.target).get()))})},_removeClass:function(e,t,n){return this._toggleClass(e,t,n,!1)},_addClass:function(e,t,n){return this._toggleClass(e,t,n,!0)},_toggleClass:function(e,t,n,i){i="boolean"==typeof i?i:n;var o="string"==typeof e||null===e,r={extra:o?t:n,keys:o?e:t,element:o?this.element:e,add:i};return r.element.toggleClass(this._classes(r),i),this},_on:function(t,n,i){var o,r=this;"boolean"!=typeof t&&(i=n,n=t,t=!1),i?(n=o=e(n),this.bindings=this.bindings.add(n)):(i=n,n=this.element,o=this.widget()),e.each(i,function(i,s){function a(){if(t||!0!==r.options.disabled&&!e(this).hasClass("ui-state-disabled"))return("string"==typeof s?r[s]:s).apply(r,arguments)}"string"!=typeof s&&(a.guid=s.guid=s.guid||a.guid||e.guid++);var l=i.match(/^([\w:-]*)\s*(.*)$/),u=l[1]+r.eventNamespace,c=l[2];c?o.on(u,c,a):n.on(u,a)})},_off:function(t,n){n=(n||"").split(" ").join(this.eventNamespace+" ")+this.eventNamespace,t.off(n).off(n),this.bindings=e(this.bindings.not(t).get()),this.focusable=e(this.focusable.not(t).get()),this.hoverable=e(this.hoverable.not(t).get())},_delay:function(e,t){var n=this;return setTimeout(function(){return("string"==typeof e?n[e]:e).apply(n,arguments)},t||0)},_hoverable:function(t){this.hoverable=this.hoverable.add(t),this._on(t,{mouseenter:function(t){this._addClass(e(t.currentTarget),null,"ui-state-hover")},mouseleave:function(t){this._removeClass(e(t.currentTarget),null,"ui-state-hover")}})},_focusable:function(t){this.focusable=this.focusable.add(t),this._on(t,{focusin:function(t){this._addClass(e(t.currentTarget),null,"ui-state-focus")},focusout:function(t){this._removeClass(e(t.currentTarget),null,"ui-state-focus")}})},_trigger:function(t,n,i){var o,r,s=this.options[t];if(i=i||{},(n=e.Event(n)).type=(t===this.widgetEventPrefix?t:this.widgetEventPrefix+t).toLowerCase(),n.target=this.element[0],r=n.originalEvent)for(o in r)o in n||(n[o]=r[o]);return this.element.trigger(n,i),!(e.isFunction(s)&&!1===s.apply(this.element[0],[n].concat(i))||n.isDefaultPrevented())}},e.each({show:"fadeIn",hide:"fadeOut"},function(t,n){e.Widget.prototype["_"+t]=function(i,o,r){var s;"string"==typeof o&&(o={effect:o});var a=o?!0===o||"number"==typeof o?n:o.effect||n:t;"number"==typeof(o=o||{})&&(o={duration:o}),s=!e.isEmptyObject(o),o.complete=r,o.delay&&i.delay(o.delay),s&&e.effects&&e.effects.effect[a]?i[t](o):a!==t&&i[a]?i[a](o.duration,o.easing,r):i.queue(function(n){e(this)[t](),r&&r.call(i[0]),n()})}});e.widget,e.extend(e.expr[":"],{data:e.expr.createPseudo?e.expr.createPseudo(function(t){return function(n){return!!e.data(n,t)}}):function(t,n,i){return!!e.data(t,i[3])}}),e.fn.scrollParent=function(t){var n=this.css("position"),i="absolute"===n,o=t?/(auto|scroll|hidden)/:/(auto|scroll)/,r=this.parents().filter(function(){var t=e(this);return(!i||"static"!==t.css("position"))&&o.test(t.css("overflow")+t.css("overflow-y")+t.css("overflow-x"))}).eq(0);return"fixed"!==n&&r.length?r:e(this[0].ownerDocument||document)},e.ui.ie=!!/msie [\w.]+/.exec(navigator.userAgent.toLowerCase());
/*!
 * jQuery UI :data 1.12.1
 * http://jqueryui.com
 *
 * Copyright jQuery Foundation and other contributors
 * Released under the MIT license.
 * http://jquery.org/license
 */var o=!1;e(document).on("mouseup",function(){o=!1});e.widget("ui.mouse",{version:"1.12.1",options:{cancel:"input, textarea, button, select, option",distance:1,delay:0},_mouseInit:function(){var t=this;this.element.on("mousedown."+this.widgetName,function(e){return t._mouseDown(e)}).on("click."+this.widgetName,function(n){if(!0===e.data(n.target,t.widgetName+".preventClickEvent"))return e.removeData(n.target,t.widgetName+".preventClickEvent"),n.stopImmediatePropagation(),!1}),this.started=!1},_mouseDestroy:function(){this.element.off("."+this.widgetName),this._mouseMoveDelegate&&this.document.off("mousemove."+this.widgetName,this._mouseMoveDelegate).off("mouseup."+this.widgetName,this._mouseUpDelegate)},_mouseDown:function(t){if(!o){this._mouseMoved=!1,this._mouseStarted&&this._mouseUp(t),this._mouseDownEvent=t;var n=this,i=1===t.which,r=!("string"!=typeof this.options.cancel||!t.target.nodeName)&&e(t.target).closest(this.options.cancel).length;return!(i&&!r&&this._mouseCapture(t))||(this.mouseDelayMet=!this.options.delay,this.mouseDelayMet||(this._mouseDelayTimer=setTimeout(function(){n.mouseDelayMet=!0},this.options.delay)),this._mouseDistanceMet(t)&&this._mouseDelayMet(t)&&(this._mouseStarted=!1!==this._mouseStart(t),!this._mouseStarted)?(t.preventDefault(),!0):(!0===e.data(t.target,this.widgetName+".preventClickEvent")&&e.removeData(t.target,this.widgetName+".preventClickEvent"),this._mouseMoveDelegate=function(e){return n._mouseMove(e)},this._mouseUpDelegate=function(e){return n._mouseUp(e)},this.document.on("mousemove."+this.widgetName,this._mouseMoveDelegate).on("mouseup."+this.widgetName,this._mouseUpDelegate),t.preventDefault(),o=!0,!0))}},_mouseMove:function(t){if(this._mouseMoved){if(e.ui.ie&&(!document.documentMode||document.documentMode<9)&&!t.button)return this._mouseUp(t);if(!t.which)if(t.originalEvent.altKey||t.originalEvent.ctrlKey||t.originalEvent.metaKey||t.originalEvent.shiftKey)this.ignoreMissingWhich=!0;else if(!this.ignoreMissingWhich)return this._mouseUp(t)}return(t.which||t.button)&&(this._mouseMoved=!0),this._mouseStarted?(this._mouseDrag(t),t.preventDefault()):(this._mouseDistanceMet(t)&&this._mouseDelayMet(t)&&(this._mouseStarted=!1!==this._mouseStart(this._mouseDownEvent,t),this._mouseStarted?this._mouseDrag(t):this._mouseUp(t)),!this._mouseStarted)},_mouseUp:function(t){this.document.off("mousemove."+this.widgetName,this._mouseMoveDelegate).off("mouseup."+this.widgetName,this._mouseUpDelegate),this._mouseStarted&&(this._mouseStarted=!1,t.target===this._mouseDownEvent.target&&e.data(t.target,this.widgetName+".preventClickEvent",!0),this._mouseStop(t)),this._mouseDelayTimer&&(clearTimeout(this._mouseDelayTimer),delete this._mouseDelayTimer),this.ignoreMissingWhich=!1,o=!1,t.preventDefault()},_mouseDistanceMet:function(e){return Math.max(Math.abs(this._mouseDownEvent.pageX-e.pageX),Math.abs(this._mouseDownEvent.pageY-e.pageY))>=this.options.distance},_mouseDelayMet:function(){return this.mouseDelayMet},_mouseStart:function(){},_mouseDrag:function(){},_mouseStop:function(){},_mouseCapture:function(){return!0}}),e.ui.plugin={add:function(t,n,i){var o,r=e.ui[t].prototype;for(o in i)r.plugins[o]=r.plugins[o]||[],r.plugins[o].push([n,i[o]])},call:function(e,t,n,i){var o,r=e.plugins[t];if(r&&(i||e.element[0].parentNode&&11!==e.element[0].parentNode.nodeType))for(o=0;o<r.length;o++)e.options[r[o][0]]&&r[o][1].apply(e.element,n)}},e.ui.safeActiveElement=function(e){var t;try{t=e.activeElement}catch(n){t=e.body}return t||(t=e.body),t.nodeName||(t=e.body),t},e.ui.safeBlur=function(t){t&&"body"!==t.nodeName.toLowerCase()&&e(t).trigger("blur")};
/*!
 * jQuery UI Draggable 1.12.1
 * http://jqueryui.com
 *
 * Copyright jQuery Foundation and other contributors
 * Released under the MIT license.
 * http://jquery.org/license
 */
e.widget("ui.draggable",e.ui.mouse,{version:"1.12.1",widgetEventPrefix:"drag",options:{addClasses:!0,appendTo:"parent",axis:!1,connectToSortable:!1,containment:!1,cursor:"auto",cursorAt:!1,grid:!1,handle:!1,helper:"original",iframeFix:!1,opacity:!1,refreshPositions:!1,revert:!1,revertDuration:500,scope:"default",scroll:!0,scrollSensitivity:20,scrollSpeed:20,snap:!1,snapMode:"both",snapTolerance:20,stack:!1,zIndex:!1,drag:null,start:null,stop:null},_create:function(){"original"===this.options.helper&&this._setPositionRelative(),this.options.addClasses&&this._addClass("ui-draggable"),this._setHandleClassName(),this._mouseInit()},_setOption:function(e,t){this._super(e,t),"handle"===e&&(this._removeHandleClassName(),this._setHandleClassName())},_destroy:function(){(this.helper||this.element).is(".ui-draggable-dragging")?this.destroyOnClear=!0:(this._removeHandleClassName(),this._mouseDestroy())},_mouseCapture:function(t){var n=this.options;return!(this.helper||n.disabled||e(t.target).closest(".ui-resizable-handle").length>0)&&(this.handle=this._getHandle(t),!!this.handle&&(this._blurActiveElement(t),this._blockFrames(!0===n.iframeFix?"iframe":n.iframeFix),!0))},_blockFrames:function(t){this.iframeBlocks=this.document.find(t).map(function(){var t=e(this);return e("<div>").css("position","absolute").appendTo(t.parent()).outerWidth(t.outerWidth()).outerHeight(t.outerHeight()).offset(t.offset())[0]})},_unblockFrames:function(){this.iframeBlocks&&(this.iframeBlocks.remove(),delete this.iframeBlocks)},_blurActiveElement:function(t){var n=e.ui.safeActiveElement(this.document[0]);e(t.target).closest(n).length||e.ui.safeBlur(n)},_mouseStart:function(t){var n=this.options;return this.helper=this._createHelper(t),this._addClass(this.helper,"ui-draggable-dragging"),this._cacheHelperProportions(),e.ui.ddmanager&&(e.ui.ddmanager.current=this),this._cacheMargins(),this.cssPosition=this.helper.css("position"),this.scrollParent=this.helper.scrollParent(!0),this.offsetParent=this.helper.offsetParent(),this.hasFixedAncestor=this.helper.parents().filter(function(){return"fixed"===e(this).css("position")}).length>0,this.positionAbs=this.element.offset(),this._refreshOffsets(t),this.originalPosition=this.position=this._generatePosition(t,!1),this.originalPageX=t.pageX,this.originalPageY=t.pageY,n.cursorAt&&this._adjustOffsetFromHelper(n.cursorAt),this._setContainment(),!1===this._trigger("start",t)?(this._clear(),!1):(this._cacheHelperProportions(),e.ui.ddmanager&&!n.dropBehaviour&&e.ui.ddmanager.prepareOffsets(this,t),this._mouseDrag(t,!0),e.ui.ddmanager&&e.ui.ddmanager.dragStart(this,t),!0)},_refreshOffsets:function(e){this.offset={top:this.positionAbs.top-this.margins.top,left:this.positionAbs.left-this.margins.left,scroll:!1,parent:this._getParentOffset(),relative:this._getRelativeOffset()},this.offset.click={left:e.pageX-this.offset.left,top:e.pageY-this.offset.top}},_mouseDrag:function(t,n){if(this.hasFixedAncestor&&(this.offset.parent=this._getParentOffset()),this.position=this._generatePosition(t,!0),this.positionAbs=this._convertPositionTo("absolute"),!n){var i=this._uiHash();if(!1===this._trigger("drag",t,i))return this._mouseUp(new e.Event("mouseup",t)),!1;this.position=i.position}return this.helper[0].style.left=this.position.left+"px",this.helper[0].style.top=this.position.top+"px",e.ui.ddmanager&&e.ui.ddmanager.drag(this,t),!1},_mouseStop:function(t){var n=this,i=!1;return e.ui.ddmanager&&!this.options.dropBehaviour&&(i=e.ui.ddmanager.drop(this,t)),this.dropped&&(i=this.dropped,this.dropped=!1),"invalid"===this.options.revert&&!i||"valid"===this.options.revert&&i||!0===this.options.revert||e.isFunction(this.options.revert)&&this.options.revert.call(this.element,i)?e(this.helper).animate(this.originalPosition,parseInt(this.options.revertDuration,10),function(){!1!==n._trigger("stop",t)&&n._clear()}):!1!==this._trigger("stop",t)&&this._clear(),!1},_mouseUp:function(t){return this._unblockFrames(),e.ui.ddmanager&&e.ui.ddmanager.dragStop(this,t),this.handleElement.is(t.target)&&this.element.trigger("focus"),e.ui.mouse.prototype._mouseUp.call(this,t)},cancel:function(){return this.helper.is(".ui-draggable-dragging")?this._mouseUp(new e.Event("mouseup",{target:this.element[0]})):this._clear(),this},_getHandle:function(t){return!this.options.handle||!!e(t.target).closest(this.element.find(this.options.handle)).length},_setHandleClassName:function(){this.handleElement=this.options.handle?this.element.find(this.options.handle):this.element,this._addClass(this.handleElement,"ui-draggable-handle")},_removeHandleClassName:function(){this._removeClass(this.handleElement,"ui-draggable-handle")},_createHelper:function(t){var n=this.options,i=e.isFunction(n.helper),o=i?e(n.helper.apply(this.element[0],[t])):"clone"===n.helper?this.element.clone().removeAttr("id"):this.element;return o.parents("body").length||o.appendTo("parent"===n.appendTo?this.element[0].parentNode:n.appendTo),i&&o[0]===this.element[0]&&this._setPositionRelative(),o[0]===this.element[0]||/(fixed|absolute)/.test(o.css("position"))||o.css("position","absolute"),o},_setPositionRelative:function(){/^(?:r|a|f)/.test(this.element.css("position"))||(this.element[0].style.position="relative")},_adjustOffsetFromHelper:function(t){"string"==typeof t&&(t=t.split(" ")),e.isArray(t)&&(t={left:+t[0],top:+t[1]||0}),"left"in t&&(this.offset.click.left=t.left+this.margins.left),"right"in t&&(this.offset.click.left=this.helperProportions.width-t.right+this.margins.left),"top"in t&&(this.offset.click.top=t.top+this.margins.top),"bottom"in t&&(this.offset.click.top=this.helperProportions.height-t.bottom+this.margins.top)},_isRootNode:function(e){return/(html|body)/i.test(e.tagName)||e===this.document[0]},_getParentOffset:function(){var t=this.offsetParent.offset(),n=this.document[0];return"absolute"===this.cssPosition&&this.scrollParent[0]!==n&&e.contains(this.scrollParent[0],this.offsetParent[0])&&(t.left+=this.scrollParent.scrollLeft(),t.top+=this.scrollParent.scrollTop()),this._isRootNode(this.offsetParent[0])&&(t={top:0,left:0}),{top:t.top+(parseInt(this.offsetParent.css("borderTopWidth"),10)||0),left:t.left+(parseInt(this.offsetParent.css("borderLeftWidth"),10)||0)}},_getRelativeOffset:function(){if("relative"!==this.cssPosition)return{top:0,left:0};var e=this.element.position(),t=this._isRootNode(this.scrollParent[0]);return{top:e.top-(parseInt(this.helper.css("top"),10)||0)+(t?0:this.scrollParent.scrollTop()),left:e.left-(parseInt(this.helper.css("left"),10)||0)+(t?0:this.scrollParent.scrollLeft())}},_cacheMargins:function(){this.margins={left:parseInt(this.element.css("marginLeft"),10)||0,top:parseInt(this.element.css("marginTop"),10)||0,right:parseInt(this.element.css("marginRight"),10)||0,bottom:parseInt(this.element.css("marginBottom"),10)||0}},_cacheHelperProportions:function(){this.helperProportions={width:this.helper.outerWidth(),height:this.helper.outerHeight()}},_setContainment:function(){var t,n,i,o=this.options,r=this.document[0];this.relativeContainer=null,o.containment?"window"!==o.containment?"document"!==o.containment?o.containment.constructor!==Array?("parent"===o.containment&&(o.containment=this.helper[0].parentNode),(i=(n=e(o.containment))[0])&&(t=/(scroll|auto)/.test(n.css("overflow")),this.containment=[(parseInt(n.css("borderLeftWidth"),10)||0)+(parseInt(n.css("paddingLeft"),10)||0),(parseInt(n.css("borderTopWidth"),10)||0)+(parseInt(n.css("paddingTop"),10)||0),(t?Math.max(i.scrollWidth,i.offsetWidth):i.offsetWidth)-(parseInt(n.css("borderRightWidth"),10)||0)-(parseInt(n.css("paddingRight"),10)||0)-this.helperProportions.width-this.margins.left-this.margins.right,(t?Math.max(i.scrollHeight,i.offsetHeight):i.offsetHeight)-(parseInt(n.css("borderBottomWidth"),10)||0)-(parseInt(n.css("paddingBottom"),10)||0)-this.helperProportions.height-this.margins.top-this.margins.bottom],this.relativeContainer=n)):this.containment=o.containment:this.containment=[0,0,e(r).width()-this.helperProportions.width-this.margins.left,(e(r).height()||r.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top]:this.containment=[e(window).scrollLeft()-this.offset.relative.left-this.offset.parent.left,e(window).scrollTop()-this.offset.relative.top-this.offset.parent.top,e(window).scrollLeft()+e(window).width()-this.helperProportions.width-this.margins.left,e(window).scrollTop()+(e(window).height()||r.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top]:this.containment=null},_convertPositionTo:function(e,t){t||(t=this.position);var n="absolute"===e?1:-1,i=this._isRootNode(this.scrollParent[0]);return{top:t.top+this.offset.relative.top*n+this.offset.parent.top*n-("fixed"===this.cssPosition?-this.offset.scroll.top:i?0:this.offset.scroll.top)*n,left:t.left+this.offset.relative.left*n+this.offset.parent.left*n-("fixed"===this.cssPosition?-this.offset.scroll.left:i?0:this.offset.scroll.left)*n}},_generatePosition:function(e,t){var n,i,o,r,s=this.options,a=this._isRootNode(this.scrollParent[0]),l=e.pageX,u=e.pageY;return a&&this.offset.scroll||(this.offset.scroll={top:this.scrollParent.scrollTop(),left:this.scrollParent.scrollLeft()}),t&&(this.containment&&(this.relativeContainer?(i=this.relativeContainer.offset(),n=[this.containment[0]+i.left,this.containment[1]+i.top,this.containment[2]+i.left,this.containment[3]+i.top]):n=this.containment,e.pageX-this.offset.click.left<n[0]&&(l=n[0]+this.offset.click.left),e.pageY-this.offset.click.top<n[1]&&(u=n[1]+this.offset.click.top),e.pageX-this.offset.click.left>n[2]&&(l=n[2]+this.offset.click.left),e.pageY-this.offset.click.top>n[3]&&(u=n[3]+this.offset.click.top)),s.grid&&(o=s.grid[1]?this.originalPageY+Math.round((u-this.originalPageY)/s.grid[1])*s.grid[1]:this.originalPageY,u=n?o-this.offset.click.top>=n[1]||o-this.offset.click.top>n[3]?o:o-this.offset.click.top>=n[1]?o-s.grid[1]:o+s.grid[1]:o,r=s.grid[0]?this.originalPageX+Math.round((l-this.originalPageX)/s.grid[0])*s.grid[0]:this.originalPageX,l=n?r-this.offset.click.left>=n[0]||r-this.offset.click.left>n[2]?r:r-this.offset.click.left>=n[0]?r-s.grid[0]:r+s.grid[0]:r),"y"===s.axis&&(l=this.originalPageX),"x"===s.axis&&(u=this.originalPageY)),{top:u-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+("fixed"===this.cssPosition?-this.offset.scroll.top:a?0:this.offset.scroll.top),left:l-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+("fixed"===this.cssPosition?-this.offset.scroll.left:a?0:this.offset.scroll.left)}},_clear:function(){this._removeClass(this.helper,"ui-draggable-dragging"),this.helper[0]===this.element[0]||this.cancelHelperRemoval||this.helper.remove(),this.helper=null,this.cancelHelperRemoval=!1,this.destroyOnClear&&this.destroy()},_trigger:function(t,n,i){return i=i||this._uiHash(),e.ui.plugin.call(this,t,[n,i,this],!0),/^(drag|start|stop)/.test(t)&&(this.positionAbs=this._convertPositionTo("absolute"),i.offset=this.positionAbs),e.Widget.prototype._trigger.call(this,t,n,i)},plugins:{},_uiHash:function(){return{helper:this.helper,position:this.position,originalPosition:this.originalPosition,offset:this.positionAbs}}}),e.ui.plugin.add("draggable","connectToSortable",{start:function(t,n,i){var o=e.extend({},n,{item:i.element});i.sortables=[],e(i.options.connectToSortable).each(function(){var n=e(this).sortable("instance");n&&!n.options.disabled&&(i.sortables.push(n),n.refreshPositions(),n._trigger("activate",t,o))})},stop:function(t,n,i){var o=e.extend({},n,{item:i.element});i.cancelHelperRemoval=!1,e.each(i.sortables,function(){var e=this;e.isOver?(e.isOver=0,i.cancelHelperRemoval=!0,e.cancelHelperRemoval=!1,e._storedCSS={position:e.placeholder.css("position"),top:e.placeholder.css("top"),left:e.placeholder.css("left")},e._mouseStop(t),e.options.helper=e.options._helper):(e.cancelHelperRemoval=!0,e._trigger("deactivate",t,o))})},drag:function(t,n,i){e.each(i.sortables,function(){var o=!1,r=this;r.positionAbs=i.positionAbs,r.helperProportions=i.helperProportions,r.offset.click=i.offset.click,r._intersectsWith(r.containerCache)&&(o=!0,e.each(i.sortables,function(){return this.positionAbs=i.positionAbs,this.helperProportions=i.helperProportions,this.offset.click=i.offset.click,this!==r&&this._intersectsWith(this.containerCache)&&e.contains(r.element[0],this.element[0])&&(o=!1),o})),o?(r.isOver||(r.isOver=1,i._parent=n.helper.parent(),r.currentItem=n.helper.appendTo(r.element).data("ui-sortable-item",!0),r.options._helper=r.options.helper,r.options.helper=function(){return n.helper[0]},t.target=r.currentItem[0],r._mouseCapture(t,!0),r._mouseStart(t,!0,!0),r.offset.click.top=i.offset.click.top,r.offset.click.left=i.offset.click.left,r.offset.parent.left-=i.offset.parent.left-r.offset.parent.left,r.offset.parent.top-=i.offset.parent.top-r.offset.parent.top,i._trigger("toSortable",t),i.dropped=r.element,e.each(i.sortables,function(){this.refreshPositions()}),i.currentItem=i.element,r.fromOutside=i),r.currentItem&&(r._mouseDrag(t),n.position=r.position)):r.isOver&&(r.isOver=0,r.cancelHelperRemoval=!0,r.options._revert=r.options.revert,r.options.revert=!1,r._trigger("out",t,r._uiHash(r)),r._mouseStop(t,!0),r.options.revert=r.options._revert,r.options.helper=r.options._helper,r.placeholder&&r.placeholder.remove(),n.helper.appendTo(i._parent),i._refreshOffsets(t),n.position=i._generatePosition(t,!0),i._trigger("fromSortable",t),i.dropped=!1,e.each(i.sortables,function(){this.refreshPositions()}))})}}),e.ui.plugin.add("draggable","cursor",{start:function(t,n,i){var o=e("body"),r=i.options;o.css("cursor")&&(r._cursor=o.css("cursor")),o.css("cursor",r.cursor)},stop:function(t,n,i){var o=i.options;o._cursor&&e("body").css("cursor",o._cursor)}}),e.ui.plugin.add("draggable","opacity",{start:function(t,n,i){var o=e(n.helper),r=i.options;o.css("opacity")&&(r._opacity=o.css("opacity")),o.css("opacity",r.opacity)},stop:function(t,n,i){var o=i.options;o._opacity&&e(n.helper).css("opacity",o._opacity)}}),e.ui.plugin.add("draggable","scroll",{start:function(e,t,n){n.scrollParentNotHidden||(n.scrollParentNotHidden=n.helper.scrollParent(!1)),n.scrollParentNotHidden[0]!==n.document[0]&&"HTML"!==n.scrollParentNotHidden[0].tagName&&(n.overflowOffset=n.scrollParentNotHidden.offset())},drag:function(t,n,i){var o=i.options,r=!1,s=i.scrollParentNotHidden[0],a=i.document[0];s!==a&&"HTML"!==s.tagName?(o.axis&&"x"===o.axis||(i.overflowOffset.top+s.offsetHeight-t.pageY<o.scrollSensitivity?s.scrollTop=r=s.scrollTop+o.scrollSpeed:t.pageY-i.overflowOffset.top<o.scrollSensitivity&&(s.scrollTop=r=s.scrollTop-o.scrollSpeed)),o.axis&&"y"===o.axis||(i.overflowOffset.left+s.offsetWidth-t.pageX<o.scrollSensitivity?s.scrollLeft=r=s.scrollLeft+o.scrollSpeed:t.pageX-i.overflowOffset.left<o.scrollSensitivity&&(s.scrollLeft=r=s.scrollLeft-o.scrollSpeed))):(o.axis&&"x"===o.axis||(t.pageY-e(a).scrollTop()<o.scrollSensitivity?r=e(a).scrollTop(e(a).scrollTop()-o.scrollSpeed):e(window).height()-(t.pageY-e(a).scrollTop())<o.scrollSensitivity&&(r=e(a).scrollTop(e(a).scrollTop()+o.scrollSpeed))),o.axis&&"y"===o.axis||(t.pageX-e(a).scrollLeft()<o.scrollSensitivity?r=e(a).scrollLeft(e(a).scrollLeft()-o.scrollSpeed):e(window).width()-(t.pageX-e(a).scrollLeft())<o.scrollSensitivity&&(r=e(a).scrollLeft(e(a).scrollLeft()+o.scrollSpeed)))),!1!==r&&e.ui.ddmanager&&!o.dropBehaviour&&e.ui.ddmanager.prepareOffsets(i,t)}}),e.ui.plugin.add("draggable","snap",{start:function(t,n,i){var o=i.options;i.snapElements=[],e(o.snap.constructor!==String?o.snap.items||":data(ui-draggable)":o.snap).each(function(){var t=e(this),n=t.offset();this!==i.element[0]&&i.snapElements.push({item:this,width:t.outerWidth(),height:t.outerHeight(),top:n.top,left:n.left})})},drag:function(t,n,i){var o,r,s,a,l,u,c,p,f,h,d=i.options,g=d.snapTolerance,m=n.offset.left,v=m+i.helperProportions.width,y=n.offset.top,b=y+i.helperProportions.height;for(f=i.snapElements.length-1;f>=0;f--)u=(l=i.snapElements[f].left-i.margins.left)+i.snapElements[f].width,p=(c=i.snapElements[f].top-i.margins.top)+i.snapElements[f].height,v<l-g||m>u+g||b<c-g||y>p+g||!e.contains(i.snapElements[f].item.ownerDocument,i.snapElements[f].item)?(i.snapElements[f].snapping&&i.options.snap.release&&i.options.snap.release.call(i.element,t,e.extend(i._uiHash(),{snapItem:i.snapElements[f].item})),i.snapElements[f].snapping=!1):("inner"!==d.snapMode&&(o=Math.abs(c-b)<=g,r=Math.abs(p-y)<=g,s=Math.abs(l-v)<=g,a=Math.abs(u-m)<=g,o&&(n.position.top=i._convertPositionTo("relative",{top:c-i.helperProportions.height,left:0}).top),r&&(n.position.top=i._convertPositionTo("relative",{top:p,left:0}).top),s&&(n.position.left=i._convertPositionTo("relative",{top:0,left:l-i.helperProportions.width}).left),a&&(n.position.left=i._convertPositionTo("relative",{top:0,left:u}).left)),h=o||r||s||a,"outer"!==d.snapMode&&(o=Math.abs(c-y)<=g,r=Math.abs(p-b)<=g,s=Math.abs(l-m)<=g,a=Math.abs(u-v)<=g,o&&(n.position.top=i._convertPositionTo("relative",{top:c,left:0}).top),r&&(n.position.top=i._convertPositionTo("relative",{top:p-i.helperProportions.height,left:0}).top),s&&(n.position.left=i._convertPositionTo("relative",{top:0,left:l}).left),a&&(n.position.left=i._convertPositionTo("relative",{top:0,left:u-i.helperProportions.width}).left)),!i.snapElements[f].snapping&&(o||r||s||a||h)&&i.options.snap.snap&&i.options.snap.snap.call(i.element,t,e.extend(i._uiHash(),{snapItem:i.snapElements[f].item})),i.snapElements[f].snapping=o||r||s||a||h)}}),e.ui.plugin.add("draggable","stack",{start:function(t,n,i){var o,r=i.options,s=e.makeArray(e(r.stack)).sort(function(t,n){return(parseInt(e(t).css("zIndex"),10)||0)-(parseInt(e(n).css("zIndex"),10)||0)});s.length&&(o=parseInt(e(s[0]).css("zIndex"),10)||0,e(s).each(function(t){e(this).css("zIndex",o+t)}),this.css("zIndex",o+s.length))}}),e.ui.plugin.add("draggable","zIndex",{start:function(t,n,i){var o=e(n.helper),r=i.options;o.css("zIndex")&&(r._zIndex=o.css("zIndex")),o.css("zIndex",r.zIndex)},stop:function(t,n,i){var o=i.options;o._zIndex&&e(n.helper).css("zIndex",o._zIndex)}});e.ui.draggable;
/*!
 * jQuery UI Droppable 1.12.1
 * http://jqueryui.com
 *
 * Copyright jQuery Foundation and other contributors
 * Released under the MIT license.
 * http://jquery.org/license
 */e.widget("ui.droppable",{version:"1.12.1",widgetEventPrefix:"drop",options:{accept:"*",addClasses:!0,greedy:!1,scope:"default",tolerance:"intersect",activate:null,deactivate:null,drop:null,out:null,over:null},_create:function(){var t,n=this.options,i=n.accept;this.isover=!1,this.isout=!0,this.accept=e.isFunction(i)?i:function(e){return e.is(i)},this.proportions=function(){if(!arguments.length)return t||(t={width:this.element[0].offsetWidth,height:this.element[0].offsetHeight});t=arguments[0]},this._addToManager(n.scope),n.addClasses&&this._addClass("ui-droppable")},_addToManager:function(t){e.ui.ddmanager.droppables[t]=e.ui.ddmanager.droppables[t]||[],e.ui.ddmanager.droppables[t].push(this)},_splice:function(e){for(var t=0;t<e.length;t++)e[t]===this&&e.splice(t,1)},_destroy:function(){var t=e.ui.ddmanager.droppables[this.options.scope];this._splice(t)},_setOption:function(t,n){if("accept"===t)this.accept=e.isFunction(n)?n:function(e){return e.is(n)};else if("scope"===t){var i=e.ui.ddmanager.droppables[this.options.scope];this._splice(i),this._addToManager(n)}this._super(t,n)},_activate:function(t){var n=e.ui.ddmanager.current;this._addActiveClass(),n&&this._trigger("activate",t,this.ui(n))},_deactivate:function(t){var n=e.ui.ddmanager.current;this._removeActiveClass(),n&&this._trigger("deactivate",t,this.ui(n))},_over:function(t){var n=e.ui.ddmanager.current;n&&(n.currentItem||n.element)[0]!==this.element[0]&&this.accept.call(this.element[0],n.currentItem||n.element)&&(this._addHoverClass(),this._trigger("over",t,this.ui(n)))},_out:function(t){var n=e.ui.ddmanager.current;n&&(n.currentItem||n.element)[0]!==this.element[0]&&this.accept.call(this.element[0],n.currentItem||n.element)&&(this._removeHoverClass(),this._trigger("out",t,this.ui(n)))},_drop:function(t,n){var i=n||e.ui.ddmanager.current,o=!1;return!(!i||(i.currentItem||i.element)[0]===this.element[0])&&(this.element.find(":data(ui-droppable)").not(".ui-draggable-dragging").each(function(){var n=e(this).droppable("instance");if(n.options.greedy&&!n.options.disabled&&n.options.scope===i.options.scope&&n.accept.call(n.element[0],i.currentItem||i.element)&&r(i,e.extend(n,{offset:n.element.offset()}),n.options.tolerance,t))return o=!0,!1}),!o&&(!!this.accept.call(this.element[0],i.currentItem||i.element)&&(this._removeActiveClass(),this._removeHoverClass(),this._trigger("drop",t,this.ui(i)),this.element)))},ui:function(e){return{draggable:e.currentItem||e.element,helper:e.helper,position:e.position,offset:e.positionAbs}},_addHoverClass:function(){this._addClass("ui-droppable-hover")},_removeHoverClass:function(){this._removeClass("ui-droppable-hover")},_addActiveClass:function(){this._addClass("ui-droppable-active")},_removeActiveClass:function(){this._removeClass("ui-droppable-active")}});var r=e.ui.intersect=function(){function e(e,t,n){return e>=t&&e<t+n}return function(t,n,i,o){if(!n.offset)return!1;var r=(t.positionAbs||t.position.absolute).left+t.margins.left,s=(t.positionAbs||t.position.absolute).top+t.margins.top,a=r+t.helperProportions.width,l=s+t.helperProportions.height,u=n.offset.left,c=n.offset.top,p=u+n.proportions().width,f=c+n.proportions().height;switch(i){case"fit":return u<=r&&a<=p&&c<=s&&l<=f;case"intersect":return u<r+t.helperProportions.width/2&&a-t.helperProportions.width/2<p&&c<s+t.helperProportions.height/2&&l-t.helperProportions.height/2<f;case"pointer":return e(o.pageY,c,n.proportions().height)&&e(o.pageX,u,n.proportions().width);case"touch":return(s>=c&&s<=f||l>=c&&l<=f||s<c&&l>f)&&(r>=u&&r<=p||a>=u&&a<=p||r<u&&a>p);default:return!1}}}();e.ui.ddmanager={current:null,droppables:{default:[]},prepareOffsets:function(t,n){var i,o,r=e.ui.ddmanager.droppables[t.options.scope]||[],s=n?n.type:null,a=(t.currentItem||t.element).find(":data(ui-droppable)").addBack();e:for(i=0;i<r.length;i++)if(!(r[i].options.disabled||t&&!r[i].accept.call(r[i].element[0],t.currentItem||t.element))){for(o=0;o<a.length;o++)if(a[o]===r[i].element[0]){r[i].proportions().height=0;continue e}r[i].visible="none"!==r[i].element.css("display"),r[i].visible&&("mousedown"===s&&r[i]._activate.call(r[i],n),r[i].offset=r[i].element.offset(),r[i].proportions({width:r[i].element[0].offsetWidth,height:r[i].element[0].offsetHeight}))}},drop:function(t,n){var i=!1;return e.each((e.ui.ddmanager.droppables[t.options.scope]||[]).slice(),function(){this.options&&(!this.options.disabled&&this.visible&&r(t,this,this.options.tolerance,n)&&(i=this._drop.call(this,n)||i),!this.options.disabled&&this.visible&&this.accept.call(this.element[0],t.currentItem||t.element)&&(this.isout=!0,this.isover=!1,this._deactivate.call(this,n)))}),i},dragStart:function(t,n){t.element.parentsUntil("body").on("scroll.droppable",function(){t.options.refreshPositions||e.ui.ddmanager.prepareOffsets(t,n)})},drag:function(t,n){t.options.refreshPositions&&e.ui.ddmanager.prepareOffsets(t,n),e.each(e.ui.ddmanager.droppables[t.options.scope]||[],function(){if(!this.options.disabled&&!this.greedyChild&&this.visible){var i,o,s,a=r(t,this,this.options.tolerance,n),l=!a&&this.isover?"isout":a&&!this.isover?"isover":null;l&&(this.options.greedy&&(o=this.options.scope,(s=this.element.parents(":data(ui-droppable)").filter(function(){return e(this).droppable("instance").options.scope===o})).length&&((i=e(s[0]).droppable("instance")).greedyChild="isover"===l)),i&&"isover"===l&&(i.isover=!1,i.isout=!0,i._out.call(i,n)),this[l]=!0,this["isout"===l?"isover":"isout"]=!1,this["isover"===l?"_over":"_out"].call(this,n),i&&"isout"===l&&(i.isout=!1,i.isover=!0,i._over.call(i,n)))}})},dragStop:function(t,n){t.element.parentsUntil("body").off("scroll.droppable"),t.options.refreshPositions||e.ui.ddmanager.prepareOffsets(t,n)}},!1!==e.uiBackCompat&&e.widget("ui.droppable",e.ui.droppable,{options:{hoverClass:!1,activeClass:!1},_addActiveClass:function(){this._super(),this.options.activeClass&&this.element.addClass(this.options.activeClass)},_removeActiveClass:function(){this._super(),this.options.activeClass&&this.element.removeClass(this.options.activeClass)},_addHoverClass:function(){this._super(),this.options.hoverClass&&this.element.addClass(this.options.hoverClass)},_removeHoverClass:function(){this._super(),this.options.hoverClass&&this.element.removeClass(this.options.hoverClass)}});e.ui.droppable}),
/*!
* jQuery Cookie Plugin
* https://github.com/carhartl/jquery-cookie
*
* Copyright Klaus Hartl
* Released under the MIT license
*/
function(e){e.cookie=function(t,n,i){if(void 0===n){var o=null;if(document.cookie&&""!=document.cookie)for(var r=document.cookie.split(";"),s=0;s<r.length;s++){var a=e.trim(r[s]);if(a.substring(0,t.length+1)==t+"="){o=decodeURIComponent(a.substring(t.length+1));break}}return o}i=i||{},null===n&&(n="",(i=e.extend({},i)).expires=-1);var l,u="";i.expires&&("number"==typeof i.expires||i.expires.toUTCString)&&("number"==typeof i.expires?(l=new Date).setTime(l.getTime()+24*i.expires*60*60*1e3):l=i.expires,u="; expires="+l.toUTCString());var c=i.path?"; path="+i.path:"",p=i.domain?"; domain="+i.domain:"",f=i.secure?"; secure":"";document.cookie=[t,"=",encodeURIComponent(n),u,c,p,f].join("")}}(jQuery),
/*!
 * jQuery UI Touch Punch Improved 0.3.1
 *
 *
 * Copyright 2013, Chris Hutchinson <chris@brushd.com>
 * Original jquery-ui-touch-punch Copyright 2011, Dave Furfero
 * Dual licensed under the MIT or GPL Version 2 licenses.
 *
 * Depends:
 * jquery.ui.widget.js
 * jquery.ui.mouse.js
 */
function(e){var t=!1,n=!1;window.PointerEvent?t=!0:window.MSPointerEvent&&(n=!0);var i=t||n;if(e.support.touch="ontouchend"in document||i,e.support.touch&&e.ui.mouse){var o,r=e.ui.mouse.prototype,s=r._mouseInit,a=r._mouseDestroy;r._touchStart=function(e){o||!i&&!this._mouseCapture(e.originalEvent.changedTouches[0])||(!i||"mouse"!=e.originalEvent.pointerType&&4!=e.originalEvent.pointerType)&&(o=!0,this._touchMoved=!1,l(e,"mouseover"),l(e,"mousemove"),l(e,"mousedown"))},r._touchMove=function(e){o&&(this._touchMoved=!0,l(e,"mousemove"))},r._touchEnd=function(e){o&&(l(e,"mouseup"),l(e,"mouseout"),this._touchMoved||l(e,"click"),o=!1)},r._mouseInit=function(){var i,o=["_touchStart","_touchMove","_touchEnd"],r={};i=t?["pointerdown","pointermove","pointerup"]:n?["MSPointerDown","MSPointerMove","MSPointerUp"]:["touchstart","touchmove","touchend"];for(var a=0;a<o.length;++a)r[i[a]]=e.proxy(this,o[a]);this.element.on(r),s.call(this)},r._mouseDestroy=function(){var i,o=["_touchStart","_touchMove","_touchEnd"],r={};i=t?["pointerdown","pointermove","pointerup"]:n?["MSPointerDown","MSPointerMove","MSPointerUp"]:["touchstart","touchmove","touchend"];for(var s=0;s<o.length;++s)r[i[s]]=e.proxy(this,o[s]);this.element.off(r),a.call(this)}}function l(t,n){if(!(!i&&t.originalEvent.touches.length>1||i&&!t.originalEvent.isPrimary)){var o,r,s,a,l,u=i?t.originalEvent:t.originalEvent.changedTouches[0],c=document.createEvent("MouseEvents"),p=(o=u,r=window.pageXOffset,s=window.pageYOffset,a=o.clientX,l=o.clientY,0===o.pageY&&Math.floor(l)>Math.floor(o.pageY)||0===o.pageX&&Math.floor(a)>Math.floor(o.pageX)?(a-=r,l-=s):(l<o.pageY-s||a<o.pageX-r)&&(a=o.pageX-r,l=o.pageY-s),{clientX:a,clientY:l});e(u.target).is("input")||e(u.target).is("textarea")?t.stopPropagation():t.preventDefault(),c.initMouseEvent(n,!0,!0,window,1,t.screenX||u.screenX,t.screenY||u.screenY,t.clientX||p.clientX,t.clientY||p.clientY,!1,!1,!1,!1,0,null),t.target.dispatchEvent(c)}}}(jQuery),function(){"use strict";function e(e,t,n){this.x=e,this.y=t,this.z=n}function t(e){this.data=e}t.fromString=function(e){var n=e.match(/matrix3?d?\(([^\)]+)\)/i)[1].split(",");return 6===n.length&&(n=[n[0],n[1],"0","0",n[2],n[3],"0","0","0","0","1","0",n[4],n[5],"0","1"]),new t([parseFloat(n[0]),parseFloat(n[4]),parseFloat(n[8]),parseFloat(n[12]),parseFloat(n[1]),parseFloat(n[5]),parseFloat(n[9]),parseFloat(n[13]),parseFloat(n[2]),parseFloat(n[6]),parseFloat(n[10]),parseFloat(n[14]),parseFloat(n[3]),parseFloat(n[7]),parseFloat(n[11]),parseFloat(n[15])])},t.prototype.multiply=function(e){var n=this.data,i=e.data;return new t([n[0]*i[0]+n[1]*i[4]+n[2]*i[8]+n[3]*i[12],n[0]*i[1]+n[1]*i[5]+n[2]*i[9]+n[3]*i[13],n[0]*i[2]+n[1]*i[6]+n[2]*i[10]+n[3]*i[14],n[0]*i[3]+n[1]*i[7]+n[2]*i[11]+n[3]*i[15],n[4]*i[0]+n[5]*i[4]+n[6]*i[8]+n[7]*i[12],n[4]*i[1]+n[5]*i[5]+n[6]*i[9]+n[7]*i[13],n[4]*i[2]+n[5]*i[6]+n[6]*i[10]+n[7]*i[14],n[4]*i[3]+n[5]*i[7]+n[6]*i[11]+n[7]*i[15],n[8]*i[0]+n[9]*i[4]+n[10]*i[8]+n[11]*i[12],n[8]*i[1]+n[9]*i[5]+n[10]*i[9]+n[11]*i[13],n[8]*i[2]+n[9]*i[6]+n[10]*i[10]+n[11]*i[14],n[8]*i[3]+n[9]*i[7]+n[10]*i[11]+n[11]*i[15],n[12]*i[0]+n[13]*i[4]+n[14]*i[8]+n[15]*i[12],n[12]*i[1]+n[13]*i[5]+n[14]*i[9]+n[15]*i[13],n[12]*i[2]+n[13]*i[6]+n[14]*i[10]+n[15]*i[14],n[12]*i[3]+n[13]*i[7]+n[14]*i[11]+n[15]*i[15]])},t.prototype.translate=function(e,n,i){var o=new t([1,0,0,e,0,1,0,n,0,0,1,i,0,0,0,1]);return this.multiply(o)},t.prototype.inverse=function(){var e=this.data,n=e[0],i=e[1],o=e[2],r=e[4],s=e[5],a=e[6],l=e[8],u=e[9],c=e[10],p=s*c-a*u,f=a*l-r*c,h=r*u-s*l,d=n*p+i*f+o*h,g=new t([p/d,(o*u-i*c)/d,(i*a-o*s)/d,0,f/d,(n*c-o*l)/d,(o*r-n*a)/d,0,h/d,(i*l-n*u)/d,(n*s-i*r)/d,0,0,0,0,1]),m=new t([1,0,0,-e[3],0,1,0,-e[7],0,0,1,-e[11],0,0,0,1]);return g.multiply(m)},t.prototype.transformPoint=function(t){arguments.length>1&&(t=new e(t,arguments[1],arguments[2]||0));var n=this.data;return new e(n[0]*t.x+n[1]*t.y+n[2]*t.z+n[3],n[4]*t.x+n[5]*t.y+n[6]*t.z+n[7],n[8]*t.x+n[9]*t.y+n[10]*t.z+n[11])};var n=!1,i=!1,o=function(e){if(i)return n;i=!0;var t=e.createElement("div");t.style.cssText="width:200px;height:200px;position:fixed;-moz-transform:scale(2);",e.body.appendChild(t);var o=t.getBoundingClientRect();return n=void 0!=getComputedStyle(t,void 0).MozTransform&&o.bottom-o.top<300,t.parentNode.removeChild(t),n};function r(n){for(var i=t.fromString("matrix(1,0,0,1,0,0)"),r=i,s=n,a=o(s.ownerDocument);void 0!=s&&s!==s.ownerDocument.documentElement;){var l=window.getComputedStyle(s,void 0),u=t.fromString((l.transform||l.OTransform||l.WebkitTransform||l.msTransform||l.MozTransform||"none").replace(/^none$/,"matrix(1,0,0,1,0,0)"));if(a){var c=s.getBoundingClientRect(),p=void 0!=s.parentNode&&void 0!=s.parentNode.getBoundingClientRect?s.parentNode.getBoundingClientRect():x,f=i.translate(c.left-p.left,c.top-p.top,0),h=l.MozTransformOrigin;h=-1!==h.indexOf("%")?"":h,h=t.fromString("matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,"+((h||"0 0")+" 0").split(" ").slice(0,3)+",1)"),r=f.multiply(h).multiply(u).multiply(h.inverse()).multiply(r)}else r=u.multiply(r);s=s.parentNode}if(!a){for(var d=n.offsetWidth,g=n.offsetHeight,m=4,v=1/0,y=1/0;--m>=0;){var b=r.transformPoint(new e(0===m||1===m?0:d,0===m||3===m?0:g,0));b.x<v&&(v=b.x),b.y<y&&(y=b.y)}var x=n.getBoundingClientRect();r=i.translate(window.pageXOffset+x.left-v,window.pageYOffset+x.top-y,0).multiply(r)}return r}window.getTransformationMatrix=r,window.convertPointFromPageToNode=function(t,n,i){return r(t).inverse().transformPoint(new e(n,i,0))},window.convertPointFromNodeToPage=function(t,n,i){return r(t).transformPoint(new e(n,i,0))}}(),
/*!
 * Heartcode CanvasLoader https://github.com/heartcode/CanvasLoader
 * Copyright (c) 2011 Róbert Pataki
 * Modified by ATOMI
 * Licensed under the MIT license.
 */
function(){"use strict";var e=function(e,t){void 0===t&&(t={}),this.init(e,t)},t=e.prototype,n=["oval","spiral","square","rect","roundRect"],i=/^\#([a-fA-F0-9]{6}|[a-fA-F0-9]{3})$/,o=function(e,t,n){var i,o=document.createElement(e);for(i in n)o[i]=n[i];return void 0!==t&&t.appendChild(o),o},r=function(e,t){for(var n in t)e.style[n]=t[n];return e},s=function(e,t){for(var n in t)e.setAttribute(n,t[n]);return e},a=function(e,t,n,i){e.save(),e.translate(t,n),e.rotate(i),e.translate(-t,-n),e.beginPath()};t.init=function(e,t){t||(t={}),"string"==typeof e&&(e=document.getElementById(e)),e||(e=document.body),this.cont=o("div",e),t.id&&(this.cont.id=t.id);var n=this.cont.style;n.position="absolute",n.margin="auto",n.left=n.right=n.top=n.bottom=0,n.pointerEvents="none",void 0!==t.zIndex&&(n.zIndex=t.zIndex),this.can=o("canvas",this.cont),this.con=this.can.getContext("2d"),this.cCan=r(o("canvas",this.cont),{display:"none"}),this.cCon=this.cCan.getContext("2d");var i,s,a=["shape","color","diameter","density","range","speed","text"],l=["oval","#2090e6",60,9,1,1,""];for(i=0;i<a.length;++i)this[s=a[i]]=void 0!==t[s]?t[s]:l[i];this.cRGB=this.getRGB(this.color),this.draw(),r(this.cont,{display:"none"})},t.cont={},t.can={},t.con={},t.cCan={},t.cCon={},t.timer=null,t.activeId=0,t.diameter=40,t.setDiameter=function(e){this.diameter=e<1?1:e,this.redraw()},t.getDiameter=function(){return this.diameter},t.cRGB={},t.color="#000000",t.setColor=function(e){this.color=i.test(e)?e:"#000000",this.cRGB=this.getRGB(this.color),this.redraw()},t.getColor=function(){return this.color},t.shape=n[0],t.setShape=function(e){var t;for(t in n)if(e===n[t]){this.shape=e,this.redraw();break}},t.getShape=function(){return this.shape},t.density=40,t.setDensity=function(e){this.density=Math.round(Math.abs(e)),this.density>360&&(this.density=360),this.density<2&&(this.density=2),this.activeId=0,this.redraw()},t.getDensity=function(){return this.density},t.range=1.3,t.setRange=function(e){this.range=Math.abs(e),this.redraw()},t.getRange=function(){return this.range},t.speed=2,t.setSpeed=function(e){this.speed=Math.round(Math.abs(e))},t.getSpeed=function(){return this.speed},t.text="",t.setText=function(e){this.text=e,this.textChanged=!0,this.timer&&this.tick(!0)},t.getText=function(){return this.text},t.getRGB=function(e){return e="#"===e.charAt(0)?e.substring(1,7):e,{r:parseInt(e.substring(0,2),16),g:parseInt(e.substring(2,4),16),b:parseInt(e.substring(4,6),16)}},t.draw=function(){var e,t,i,o,l,u,c,p,f=0,h=this.density,d=Math.round(h*this.range),g=this.cCon,m=this.diameter,v=.47;for(m<1&&(this.diameter=m=1),r(this.cont,{width:m+"px",height:m+"px"}),g.clearRect(0,0,1e3,1e3),s(this.can,{width:m,height:m}),s(this.cCan,{width:m,height:m});f<h;){switch(p=f<=d?1-1/d*f:p=0,u=(270-360/h*f)/180*Math.PI,g.fillStyle="rgba("+this.cRGB.r+","+this.cRGB.g+","+this.cRGB.b+","+p.toString()+")",this.shape){case n[0]:case n[1]:e=.07*m,o=m*v+Math.cos(u)*(m*v-e)-m*v,l=m*v+Math.sin(u)*(m*v-e)-m*v,g.beginPath(),this.shape===n[1]?g.arc(.5*m+o,.5*m+l,e*p,0,2*Math.PI,!1):g.arc(.5*m+o,.5*m+l,e,0,2*Math.PI,!1);break;case n[2]:e=.12*m,o=Math.cos(u)*(m*v-e)+.5*m,l=Math.sin(u)*(m*v-e)+.5*m,a(g,o,l,u),g.fillRect(o,l-.5*e,e,e);break;case n[3]:case n[4]:i=.27*(t=.3*m),o=Math.cos(u)*(i+.13*(m-i))+.5*m,l=Math.sin(u)*(i+.13*(m-i))+.5*m,a(g,o,l,u),this.shape===n[3]?g.fillRect(o,l-.5*i,t,i):(c=.55*i,g.moveTo(o+c,l-.5*i),g.lineTo(o+t-c,l-.5*i),g.quadraticCurveTo(o+t,l-.5*i,o+t,l-.5*i+c),g.lineTo(o+t,l-.5*i+i-c),g.quadraticCurveTo(o+t,l-.5*i+i,o+t-c,l-.5*i+i),g.lineTo(o+c,l-.5*i+i),g.quadraticCurveTo(o,l-.5*i+i,o,l-.5*i+i-c),g.lineTo(o,l-.5*i+c),g.quadraticCurveTo(o,l-.5*i,o+c,l-.5*i))}g.closePath(),g.fill(),g.restore(),++f}this.con.textAlign="center",this.con.textBaseline="middle",this.con.font="bold "+this.detectFontSize()+"px Arial",this.con.fillStyle="rgb("+this.cRGB.r+","+this.cRGB.g+","+this.cRGB.b+")",this.timer&&this.tick(!0)},t.clean=function(){this.con.clearRect(0,0,1e3,1e3)},t.redraw=function(){this.clean(),this.draw()},t.reset=function(){this.timer&&(this.hide(),this.show())},t.detectFontSize=function(){if(this.diameter<90){if(this.shape.toLowerCase().indexOf("rect")>-1){if(this.diameter<65)return 8;if(this.diameter<80)return 10}return 12}return this.diameter<120?14:this.diameter<140?18:22},t.tick=function(e){var t,n=this.con,i=this.diameter,o=Date.now();if(i<1&&(this.diameter=i=1),!e&&this.prevTime){if((t=Math.floor((o-this.prevTime)*this.speed/100))===this.density&&(t=this.density-1),!t&&!this.textChanged)return;this.activeId+=360/this.density*t,t&&(this.prevTime=100*t/this.speed+this.prevTime)}else this.prevTime=o;n.clearRect(0,0,i,i),a(n,.5*i,.5*i,this.activeId/180*Math.PI),n.drawImage(this.cCan,0,0,i,i),n.restore(),this.text&&(n.fillText(this.text,i/2,i/2),this.textChanged=!1)},t.show=function(){if(!this.timer){this.prevTime=null;var e=this,t=function(){e.tick(),e.timer=requestAnimationFrame(t)};t(),r(this.cont,{display:"block"})}},t.hide=function(){this.timer&&(cancelAnimationFrame(this.timer),delete this.timer,this.prevTime=null,r(this.cont,{display:"none"}))},t.kill=function(){this.hide(),this.cont.parentNode&&this.cont.parentNode.removeChild(this.cont)},document.createElement("canvas").getContext&&(window.CanvasLoader=e)}();/*!
 * ActivePresenter HTML5 Output File
 * Copyright (c) Atomi Systems, Inc. All rights reserved.
 * https://atomisystems.com/activepresenter/
 * Version: 8.5.0
 * Date: 2021.06.02
 */
function onYouTubeIframeAPIReady(){AtomiAP.onYouTubeIframeAPIReady()}!function(t){"use strict";t=t.noConflict(!0);var i={o:0,u:2,_:3,T:4,S:8,M:10,C:11,P:13,I:14,R:15,D:16,N:17,O:18,L:21,F:22,U:23,Y:24,B:25,H:90,X:91,G:92},s={V:1,j:2,B:3,K:0,q:12,J:17,tt:18,it:1,et:2,nt:3,ht:4,rt:5,ot:6,ut:7},e=1<<29,n=1<<28,h=1<<20,r=1<<19,a=1<<18,o=65536,u=32768,c=0,f=1,l=2,d=0,p=1,v=2,m=3,b=4,w=5,g=6,y=7,k=0,_=2,T=4,x=8,S=16,E=32,M=64,C=128,P=256,I=512,R=1024,A=2048,D=4096,N=0,O=0,L=1,F=2,U=3,Y=4,B=0,H=1,z=2,X=3,G=4,V=5,$=0,W=1,j=2,Q=3,K=4,q=0,J=1,Z=2,tt=500,it=501,st=1,et=2,nt=3,ht={ct:1,ft:2,lt:8},rt={NONE:0,ARROW:1,OPEN:2,STEALTH:3,DIAMOND:4,OVAL:5},at=1,ot=2,ut=4,ct=8,ft=32,lt=64,dt=256,pt=512,vt={dt:0,pt:1,vt:2,u:3,bt:8,wt:9},mt=0,bt=1,wt=1,gt=2,yt=3,kt={gt:0,yt:1,kt:3,V:4,j:5,_t:6,I:7,Tt:8,xt:9},_t={St:1,Et:2,Mt:3,Ct:4,Pt:5,It:6,Rt:7,At:8},Tt={Dt:0,Nt:1,Ot:2,Lt:3,Ft:4,Tt:5,Ut:6},xt=1,St=2,Et=4,Mt=8,Ct=16,Pt=-1,It={3:"ap-click",4:"ap-dblclick",6:"ap-rollover",7:"ap-rollout",10:"ap-keypress",12:"ap-textenter",16:"ap-load",17:"ap-unload",21:"ap-check",23:"ap-correct",24:"ap-incorrect",25:"ap-complete",26:"ap-incomplete",27:"ap-timeout",29:"ap-accept",30:"ap-reject",32:"ap-swipeleft",33:"ap-swiperight",34:"ap-swipeup",35:"ap-swipedown",36:"ap-dragstart",37:"ap-dragend",38:"ap-dragenter",39:"ap-dragleave",40:"ap-timer-complete",41:"ap-uncheck",42:"ap-play",43:"ap-pause",44:"ap-ended"},Rt={Yt:1,Bt:2,Ht:3,zt:5,Xt:6,Gt:7,Vt:8,$t:12,Wt:13,jt:14,Qt:15,Kt:16,qt:19,Jt:20,Zt:26,ii:27,yt:28,si:29,ei:30,ni:31,hi:32,gt:33,ri:34,oi:35,ci:36,fi:37,li:38,di:39,pi:40,vi:41,bi:42,wi:43,gi:44,yi:45,ki:46},At={_i:0,Ti:1,xi:2,Si:3,Ei:4,Mi:5},Dt=0,Nt=1,Ot=2,Lt=3,Ft=0,Ut=2,Yt=0,Bt=1,Ht=2,zt=3,Xt=4,Gt=5,Vt=8,$t={Ci:1,Pi:2,Ii:3,Ri:4,Ai:5,Di:6,Ni:7,Oi:10,Li:11,Fi:1e3,Ui:2500,Yi:4e3,Bi:4001},Wt={"-1":"auto",0:"none",1:"default",5:"crosshair",6:"pointer",7:"text",11:"not-allowed",16:"help",18:"nesw-resize",19:"ns-resize",20:"nwse-resize",21:"ew-resize",22:"all-scroll",24:"wait"},jt={Hi:0,zi:1,Xi:2,Gi:3},Qt={Demo:1,Tutorial:2,Practice:4,Test:8},Kt=0,qt=1,Jt=2,Zt=3,ti=1,ii=2,si=3,ei=4,ni=5,hi=6,ri=7,ai=8,oi=9,ui=10,ci=11,fi=12,li=13,di=14,pi=1,vi=2,mi=3,bi={ACTUAL_SIZE:0,AUTOFIT:1,FULLSCREEN:2},wi={BOOLEAN:0,TEXT:1,NUMBER:2,COMMAND:3},gi=0,yi=1,ki=0,_i=1,Ti=0,xi=1,Si=2,Ei=3,Mi=-2,Ci=-1,Pi=1e3,Ii=1e-7,Ri=5e3,Ai="string",Di="http://www.w3.org/2000/svg",Ni="userSpaceOnUse",Oi=Math.PI,Li=Math.abs,Fi=Math.sqrt,Ui=Math.pow,Yi=Math.min,Bi=Math.max,Hi=Math.cos,zi=Math.sin,Xi=Math.tan,Gi=Math.atan2,Vi=Math.round,$i=Math.floor,Wi=Math.ceil,ji=t.noop,Qi=t.extend,Ki=t.isFunction,qi=t.isNumeric,Ji=Date.now||(Date.now=function(){return(new Date).getTime()}),Zi=window.document,ts=window.requestAnimationFrame,is=window.cancelAnimationFrame,ss=["Webkit","Moz","ms","O"],es=["webkit","moz","ms","o"],ns={},hs={},rs=Zi.createElement("div");function as(t){as.disabled||window.console&&console.log(t)}function os(t,i,s){return Yi(Bi(t,i),s)}function us(t,i,s){return arguments.length<3&&(s=Ii),i-s<=t&&t<=i+s}function cs(t,i){1==arguments.length&&(i=t);var s,e,n,h=[],r=[];for(s=0;s<t;++s)h.push(s);for(s=t;i>0;)e=Math.floor(Math.random()*s),--s,n=h[e],s!=e&&(h[e]=h[s],h[s]=n),r.push(n),--i,0==s&&(s=t);return r}function fs(t,i){rs.textContent=t;var s=rs.innerHTML;return i?s.replace(/\n/g,"<br />"):s}function ls(t){return rs.innerHTML=t,rs.textContent||""}function ds(t,i){return Vi(t*Ui(10,i))/Ui(10,i)}function ps(t,i,s){for(var e=t.parentNode,n=s.words?t.nodeValue.split(/(\s+)/):t.nodeValue,h=0,r=n.length;h<r;++h){var a,o,u=n[h];if(u)u.trim()?(a=Zi.createElement("div"),o=Zi.createTextNode(u),a.appendChild(o),a.style.display="inline-block",a.style.position="relative",i[s.words?"words":"chars"].push(a),s.words&&s.chars&&ps(o,i,{chars:!0})):a=Zi.createTextNode(u),e.insertBefore(a,t)}e.removeChild(t)}function vs(t){t=$i(t/1e3);var i=$i(t/3600),s=$i(t%3600/60),e=t%60;return i<10&&(i="0"+i),s<10&&(s="0"+s),e<10&&(e="0"+e),i+":"+s+":"+e}function ms(t){var i,s;return t.indexOf(":")>=0?s=(i=t.split(":")).length-3:(i=t.match(/(\d+h)?(\d+m)?((\d*\.)?\d+s)?/i))[0]&&(s=1),void 0!==s?1e3*(3600*(parseFloat(i[s])||0)+60*(parseFloat(i[s+1])||0)+(parseFloat(i[s+2])||0)):parseInt(t)}function bs(t){return t*Oi/180}function ws(t,i){for(var s in i)t.setAttribute(s,i[s])}function gs(t,i,s,e){return void 0===i?typeof t===Ai?t:gs(t>>16&255,t>>8&255,255&t,(t>>24&255)/255):void 0===e||1===e?"rgb("+Vi(t)+","+Vi(i)+","+Vi(s)+")":"rgba("+Vi(t)+","+Vi(i)+","+Vi(s)+","+e.toFixed(6)+")"}as.disabled=!0;var ys,ks,_s,Ts=/[a-zA-Z%]+$/;function xs(t){var i={unit:null};return typeof t===Ai?(i.value=parseFloat(t),i.unit=t.match(Ts),i.unit&&(i.unit=i.unit[0])):i.value=t,i}function Ss(t,i,s,e){if(i in t||!i)return i;var n,h,r=i.charAt(0).toUpperCase()+i.slice(1),a=s.length;for(h=0;h<a;++h)if((n=s[h]+r)in t)return n;return e?"":i}function Es(t,i,s){return Ss(t,i,es,s)}function Ms(t,i,s){return Ss(t,i,ss,s)}ts||(ts=window[Es(window,"requestAnimationFrame")],is=window[Es(window,"cancelAnimationFrame")]||window[Es(window,"cancelRequestAnimationFrame")],ts||(ts=function(t){var i=Ji(),s=t.requestAnimationFrameTime?Bi(0,16-(i-t.requestAnimationFrameTime)):0;return t.requestAnimationFrameTime=i+s,window.setTimeout(function(){t(Ji())},s)},is=function(t){clearTimeout(t)}),window.requestAnimationFrame=ts,window.cancelAnimationFrame=is),hs.clipPath=(ys="clipPath",ks="inset(10%)",!!(_s=Ms(rs.style,ys,!0))&&(ns[ys]=_s,rs.style[_s]=ks,!(!rs.style[_s]||"none"==rs.style[_s])||!!(_s==ys&&(_s="Webkit"+ys.charAt(0).toUpperCase()+ys.slice(1))in rs.style&&(rs.style[_s]=ks,rs.style[_s]))&&(ns[ys]=_s,!0)));var Cs=ns.transform=Ms(rs.style,"transform"),Ps="translate3d",Is=ns.transformOrigin=Ms(rs.style,"transformOrigin"),Rs=Es(Zi,"hidden",!0),As=hs.clipPath?ns.clipPath:"clip",Ds=hs.clipPath?"inset(":"rect(";function Ns(t,i){var s=void 0!==i;s||(i=t[Cs]||""),i.indexOf(Ps)<0&&(s=!0,i=Ps+"(0px, 0px, 0px) "+i),s&&(t[Cs]=i)}var Os=function(){for(var t=["fullscreenEnabled fullscreenElement requestFullscreen exitFullscreen fullscreenchange fullscreenerror".split(" "),"webkitFullscreenEnabled webkitFullscreenElement webkitRequestFullscreen webkitExitFullscreen webkitfullscreenchange webkitfullscreenerror".split(" "),"mozFullScreenEnabled mozFullScreenElement mozRequestFullScreen mozCancelFullScreen mozfullscreenchange mozfullscreenerror".split(" "),"msFullscreenEnabled msFullscreenElement msRequestFullscreen msExitFullscreen MSFullscreenChange MSFullscreenError".split(" ")],i={},s=0,e=0,n=t.length;e<n;++e)if(t[e][0]in Zi){s=e;break}for(e=0,n=t[0].length;e<n;++e)i[t[0][e]]=t[s][e];return t=null,{fullscreenEnabled:function(){return Zi[i.fullscreenEnabled]},fullscreenElement:function(){return Zi[i.fullscreenElement]},requestFullscreen:function(t){var s=i.requestFullscreen;if(t[s])return t[s]();t.webkitEnterFullscreen&&t.webkitEnterFullscreen()},isElementSupportFullscreen:function(t){return!!t[i.requestFullscreen]||!!t.webkitEnterFullscreen},exitFullscreen:function(){var t=i.exitFullscreen;if(Zi[t])return Zi[t]();element.webkitExitFullscreen&&element.webkitExitFullscreen()},addEventListener:function(t,s,e){return Zi.addEventListener(i[t]||t,s,e)},removeEventListener:function(t,s,e){return Zi.removeEventListener(i[t]||t,s,e)}}}();function Ls(){var t,i=function(){this.$init.apply(this,arguments)},s=[i.prototype],e=0,n=null;for(Ki(arguments[0])&&((n=arguments[0]).childClasses||(n.childClasses=[]),n.childClasses.push(i),e=1,s.push(n.prototype)),t=arguments.length;e<t;++e)s.push(arguments[e]);return Qi.apply(null,s),i.prototype.$init||(i.prototype.$init=ji),i.prototype.constructor=i,i.parentClass=n,i.childClasses=[],i.extend=Fs,i}function Fs(t,i,s){t=t||{},arguments.length<2&&(i=!0),arguments.length<3&&(s=!1);var e,n,h,r=this.prototype,a={};for(e in t)void 0!==(n=t[e])&&(void 0===(h=r[e])?r[e]=n:i&&(a[e]=h,r[e]=n));var o,u,c,f,l=this.childClasses;for(o=0,u=l.length;o<u;++o){if(c=l[o],i&&!s){f={},r=c.prototype;for(e in a)r[e]===a[e]&&(f[e]=t[e]);c.extend(f,!0,!1)}c.extend(t,s,s)}return this}var Us=Ls({$init:function(){this.clear()},add:function(t){var i={n:null,p:this.Vi,d:t};this.Vi?this.Vi.n=i:(this.$i=i,this.Wi.front&&(this.Wi.n=i)),this.Vi=i,this.Wi.back&&(this.Wi.p=i)},ji:function(t,i,s){for(var e=this.$i;e;){if((i?t(e.d):e.d===t)&&(e.p?e.p.n=e.n:this.$i=e.n,e.n?e.n.p=e.p:this.Vi=e.p,this.Wi.n===e&&(this.Wi.n=e.n),this.Wi.p===e&&(this.Wi.p=e.p),!s))return;e=e.n}},remove:function(t,i){this.ji(t,!1,i)},removeIf:function(t,i){this.ji(t,!0,i)},empty:function(){return!this.$i},clear:function(){this.$i=this.Vi=null,this.toFront()},toFront:function(){this.Wi={n:this.$i,p:null,front:1}},toBack:function(){this.Wi={n:this.null,p:this.Vi,back:1}},next:function(){var t=this.Wi.n;return t?(this.Wi=t,t.d):(this.toBack(),null)},previous:function(){var t=this.Wi.p;return t?(this.Wi=t,t.d):(this.toFront(),null)},hasNext:function(){return!!this.Wi.n},hasPrevious:function(){return!!this.Wi.p}}),Ys={INITIAL:0,LOADING:1,LOADED:2,ERROR:3,TIMEOUT:4};function Bs(t){if(!t.type){var i=t.url.substr(t.url.lastIndexOf(".")+1).toLowerCase(),s=i.lastIndexOf("?");s>-1&&(i=i.substring(0,s)),"js"!==i&&"css"!==i&&(i="image"),t.type=i}t.node||(t.node="image"===t.type?new Image:Zi.createElement("js"===t.type?"script":"link"));var e,n,h,r,a=t.node,o=function(t){t||(a.removeEventListener("load",u,!1),a.removeEventListener("error",u,!1)),e&&clearTimeout(e)&&(e=null)},u=(n=o,h=t,r="load",function(t){n(!t),h.progress=1,t?t.type===r?(h.status=Ys.LOADED,h.onLoad&&h.onLoad()):(h.status=Ys.ERROR,as("Error loading "+h.url+", event "+t.type+(h.node.error?", error "+h.node.error.code:"")),h.onError&&h.onError()):(h.status=Ys.TIMEOUT,as("Timeout loading "+h.url),h.onTimeout&&h.onTimeout()),h.onComplete&&h.onComplete()});switch(a.addEventListener("load",u,!1),a.addEventListener("error",u,!1),isNaN(t.maxTime)||(e=setTimeout(u,1e3*t.maxTime)),t.cancel=function(){return"image"===this.type&&(o(!1),this.node.src="",!0)},t.progress=0,t.status=Ys.LOADING,t.type){case"js":a.type="text/javascript",a.src=t.url;break;case"css":a.rel="stylesheet",a.type="text/css",a.href=t.url;break;default:a.src=t.url}"image"!==t.type&&(Zi.head||Zi.getElementsByTagName("head")[0]||Zi.documentElement).insertBefore(a,null);return t}var Hs=Ls({$init:function(t){this.started=!1,this.paused=!1,this.Qi=0,this.complete=!1,this.items=[],this.loadingItems=[],this.nextIdx=0,this.loadedCount=0,this.options=Qi({maxConnections:8,maxItemTime:10,holdCompletion:!1},t);var i=!1;(t=this.options).items&&(i=!0,this.add(t.items),delete t.items),this.paused=!!t.paused||!i,this.paused||this.load()},add:function(t){if(t){this.complete&&this.clear(),Array.isArray(t)||(t=[t]);var i,s,e,n,h=this,r=function(){var t=h.loadingItems.indexOf(this);t>-1&&(h.loadingItems.splice(t,1),++h.loadedCount,h.Ki()),h.options.onItemComplete&&h.options.onItemComplete.call(h,this),h.paused||h.complete||h.load()};for(i=0,s=t.length;i<s;++i)(e=t[i])&&(e.url||(e={url:e}),n=Qi({},e,{progress:0,status:Ys.INITIAL,onComplete:r}),this.items.push(n));this.paused||this.load()}},load:function(t){if(this.add(t),this.paused=!1,!this.started&&(this.started=!0,this.options.onStart&&this.options.onStart.call(this),this.Ki(),!isNaN(this.options.maxTime))){var i=this;this.timeoutId=setTimeout(function(){i.timeoutId=null,i.options.onTimeout&&i.options.onTimeout.call(this)},1e3*this.options.maxTime)}var s,e;for(s=this.nextIdx,e=this.items.length;s<e&&!(this.loadingItems.length>=this.options.maxConnections);++s)this.items[s].status===Ys.INITIAL?this.qi(s):s===this.nextIdx&&++this.nextIdx},pause:function(){var t,i;if(!this.paused)for(this.paused=!0,t=this.loadingItems.length-1;t>=0;--t)(i=this.loadingItems[t])&&i.cancel()&&(this.loadingItems.splice(t,1),i.status===Ys.LOADING&&(i.status=Ys.INITIAL,this.nextIdx=0))},clear:function(){var t=this.paused;this.pause(),this.paused=t,this.started=this.complete=!1,this.Qi=0,this.items.length=0,this.loadingItems.length=0,this.nextIdx=0,this.loadedCount=0},progress:function(){return this.Qi},holdCompletion:function(t){void 0===t&&(t=!0),this.options.holdCompletion!==t&&(this.options.holdCompletion=t,t||this.Ki())},Ki:function(){if(this.started&&!this.complete&&!this.paused){var t=0;if(this.items.length){var i,s;for(t=this.loadedCount,i=0,s=this.loadingItems.length;i<s;++i)t+=this.loadingItems[i].progress;t/=this.items.length}else t=1;t===this.Qi&&0!==t||this.options.holdCompletion&&this.loadedCount===this.items.length||(this.Qi=t,this.options.onProgress&&this.options.onProgress.call(this,t)),this.options.holdCompletion||this.loadedCount!==this.items.length||(this.timeoutId&&(clearTimeout(this.timeoutId),this.timeoutId=null),this.complete=!0,this.options.onComplete&&this.options.onComplete.call(this))}},qi:function(t){var i=this.items[t];i&&(i.maxTime=this.options.maxItemTime,this.loadingItems.push(i),this.options.onItemStart&&this.options.onItemStart.call(this,i),Bs(i))}});Qi(hs,{touch:"ontouchend"in Zi,pointer:!!window.PointerEvent,msPointer:!!window.MSPointerEvent});var zs,Xs="mousedown",Gs="mouseup",Vs="mousemove",$s={NONE:0,LEFT:1,RIGHT:2,UP:4,DOWN:8,HORIZONTAL:3,VERTICAL:12,ALL:15};function Ws(t,i){return Li(t)>=Li(i)?t<0?$s.LEFT:$s.RIGHT:i<0?$s.UP:$s.DOWN}function js(t){var i=window.pageXOffset,s=window.pageYOffset,e=t.clientX,n=t.clientY;return 0===t.pageY&&$i(n)>$i(t.pageY)||0===t.pageX&&$i(e)>$i(t.pageX)?(e-=i,n-=s):(n<t.pageY-s||e<t.pageX-i)&&(e=t.pageX-i,n=t.pageY-s),{x:e,y:n}}function Qs(t,i){return arguments.length>1&&(t.apHandled=i,t.originalEvent&&(t.originalEvent.apHandled=i)),t.apHandled||t.originalEvent&&t.originalEvent.apHandled}hs.pointer?(Xs="pointerdown",Gs="pointerup",Vs="pointermove",zs="pointercancel"):hs.touch?(Xs="touchstart",Gs="touchend",Vs="touchmove",zs="touchcancel"):hs.msPointer&&(Xs="MSPointerDown",Gs="MSPointerUp",Vs="MSPointerMove",zs="MSPointerCancel"),Qi(t.event.special,{"ap-click":{setup:function(){var i=this;this.Ji=function(s){var e=t(this).data();i.filterEvent(s)||isNaN(e.apSglClickX)||isNaN(e.apSglClickY)||Li(s.pageX-e.apSglClickX)>he.ClickMaxDistance||Li(s.pageY-e.apSglClickY)>he.ClickMaxDistance?i.Zi.call(this,s):(i.Zi.call(this,s),Zs.fire("ap-click",i,s,!1))},this.Zi=function(s){t(i.node).off("mouseup",i.Ji).removeData("apSglClickX apSglClickY"),t(Zi).off("mouseup",i.Zi)},t(this.node).on("mousedown.apSglClick",function(s){if(!i.filterEvent(s)){var e=t(this).data();e.apSglClickX=s.pageX,e.apSglClickY=s.pageY,Qs(s,!0),t(this).off("mouseup",i.Ji).on("mouseup",i.Ji),t(Zi).off("mouseup",i.Zi).on("mouseup",i.Zi)}})},teardown:function(){t(this.node).off(".apSglClick").removeData("apSglClickX apSglClickY"),this.Ji&&(t(this.node).off("mouseup",this.Ji),delete this.Ji),this.Zi&&(t(Zi).off("mouseup",this.Zi),delete this.Zi)}},"ap-dblclick":{setup:function(){var i=this;this.ss=function(s){var e=t(this).data();if(i.filterEvent(s)||isNaN(e.apDblClickX)||isNaN(e.apDblClickY)||Li(s.pageX-e.apDblClickX)>he.ClickMaxDistance||Li(s.pageY-e.apDblClickY)>he.ClickMaxDistance)i.es.call(this,s);else if(t(this).off("mouseup",i.ss).removeData("apDblClickX apDblClickY"),t(Zi).off("mouseup",i.es),e.apDblClickTrue)t(this).removeData("apDblClickTrue"),Zs.fire("ap-dblclick",i,s,!0);else{var n=Ji()-(e.apDblClickStart||0);n>he.DoubleClickMaxTime?(e.apDblClickTimer?(clearTimeout(e.apDblClickTimer),t(this).removeData("apDblClickStart apDblClickTimer"),Zs.fire("ap-dblclick",i,s,!1)):t(this).removeData("apDblClickStart apDblClickTimer"),Zs.fire("ap-dblclick",i,s,!1)):e.apDblClickTimer=setTimeout(function(){t(i.node).removeData("apDblClickStart apDblClickTimer"),Zs.fire("ap-dblclick",i,s,!1)},he.DoubleClickMaxTime-n)}},this.es=function(s){t(i.node).off("mouseup",i.ss).removeData("apDblClickX apDblClickY apDblClickStart apDblClickTrue"),t(Zi).off("mouseup",i.es)},t(this.node).on("mousedown.apDblClick",function(s){if(!i.filterEvent(s)){var e=t(this).data(),n=Ji();e.apDblClickX=s.pageX,e.apDblClickY=s.pageY,isNaN(e.apDblClickStart)?e.apDblClickStart=n:(e.apDblClickTrue=n-e.apDblClickStart<=he.DoubleClickMaxTime,e.apDblClickTrue?(e.apDblClickTimer&&clearTimeout(e.apDblClickTimer),t(this).removeData("apDblClickStart apDblClickTimer")):(e.apDblClickTimer&&(clearTimeout(e.apDblClickTimer),t(this).removeData("apDblClickTimer"),Zs.fire("ap-dblclick",i,s,!1)),e.apDblClickStart=n)),Qs(s,!0),t(this).off("mouseup",i.ss).on("mouseup",i.ss),t(Zi).off("mouseup",i.es).on("mouseup",i.es)}})},teardown:function(){t(this.node).off(".apDblClick").removeData("apDblClickX apDblClickY apDblClickStart apDblClickTimer apDblClickTrue"),this.ss&&(t(this.node).off("mouseup",this.ss),delete this.ss),this.es&&(t(Zi).off("mouseup",this.es),delete this.es)}},"ap-rollover":{setup:function(){if(!he.browser.mobile){var i=this;t(this.node).on("mouseover.apRollover",function(s){!i.filterEvent(s)&&i.ns(!1,!0)&&t(i).triggerHandler(t.Event("ap-rollover",{originalEvent:s.originalEvent||s}))})}},teardown:function(){t(this.node).off(".apRollover")}},"ap-rollout":{setup:function(){if(!he.browser.mobile){var i=this;t(this.node).on("mouseout.apRollout",function(s){!i.filterEvent(s)&&i.ns(!1,!0)&&t(i).triggerHandler(t.Event("ap-rollout",{originalEvent:s.originalEvent||s}))})}},teardown:function(){t(this.node).off(".apRollout")}},"ap-swipe":{processing:!1,setup:function(){var i=this;t(this.node).on("mousedown.apSwipe",function(t){i.filterEvent(t)||Qs(t,!0)}).on("dragstart.apSwipe",function(t){return!1}).on(Xs+".apSwipe",function(s){var e=s.originalEvent;if(!(i.filterEvent(s)||t.event.special["ap-swipe"].processing||e.touches&&e.touches.length>1)){t.event.special["ap-swipe"].processing=!0;var n,h={time:Ji(),pos:e.targetTouches?js(e.targetTouches[0]):{x:e.clientX,y:e.clientY}},r={time:h.time,pos:h.pos},a=t(this).data("apSwipeDir")||$s.ALL,o=function(t){e=t.originalEvent,r={time:Ji(),pos:e.targetTouches?js(e.targetTouches[0]):{x:e.clientX,y:e.clientY}},(n=Ws(r.pos.x-h.pos.x,r.pos.y-h.pos.y))&a&&t.preventDefault()},u=function(s){c.call(this,s),e=s.originalEvent,r.time=Ji();var a=r.pos.x-h.pos.x,o=r.pos.y-h.pos.y;((n=Ws(a,o))&$s.HORIZONTAL&&Li(a)>he.SwipeMinDistance&&Li(o)<he.SwipeMaxDeflection||n&$s.VERTICAL&&Li(o)>he.SwipeMinDistance&&Li(a)<he.SwipeMaxDeflection)&&Fi(a*a+o*o)/(r.time-h.time)>he.SwipeMinVelocity&&i.ns(!1,!0)&&(t(i).triggerHandler(t.Event("ap-swipe",{value:{direction:n,start:h,stop:r},originalEvent:e})),t(i).triggerHandler(t.Event(function(t,i){switch(i=i||"",t){case $s.LEFT:return i+"left";case $s.RIGHT:return i+"right";case $s.UP:return i+"up";case $s.DOWN:return i+"down"}}(n,"ap-swipe"),{value:{direction:n,start:h,stop:r},originalEvent:e})))},c=function(i){t.event.special["ap-swipe"].processing=!1,t(Zi).off(Vs+".apSwipe",o).off(Gs+".apSwipe",u),zs&&t(Zi).off(zs+".apSwipe",c)};t(Zi).on(Vs+".apSwipe",o).on(Gs+".apSwipe",u),zs&&t(Zi).on(zs+".apSwipe",c)}}).css("touchAction","none")},teardown:function(){t(this.node).off(".apSwipe").css("touchAction","")}},"ap-swipeleft":{setup:function(){var i=t(this.node).data();i.apSwipeDir=(i.apSwipeDir||0)|$s.LEFT,this.on("ap-swipe",ji)},teardown:function(){var i=t(this.node).data();i.apSwipeDir&&(i.apSwipeDir&=~$s.LEFT),0===i.apSwipeDir&&t(this.node).removeData("apSwipeDir"),this.off("ap-swipe",ji)}},"ap-swiperight":{setup:function(){var i=t(this.node).data();i.apSwipeDir=(i.apSwipeDir||0)|$s.RIGHT,this.on("ap-swipe",ji)},teardown:function(){var i=t(this.node).data();i.apSwipeDir&&(i.apSwipeDir&=~$s.RIGHT),0===i.apSwipeDir&&t(this.node).removeData("apSwipeDir"),this.off("ap-swipe",ji)}},"ap-swipeup":{setup:function(){var i=t(this.node).data();i.apSwipeDir=(i.apSwipeDir||0)|$s.UP,this.on("ap-swipe",ji)},teardown:function(){var i=t(this.node).data();i.apSwipeDir&&(i.apSwipeDir&=~$s.UP),0===i.apSwipeDir&&t(this.node).removeData("apSwipeDir"),this.off("ap-swipe",ji)}},"ap-swipedown":{setup:function(){var i=t(this.node).data();i.apSwipeDir=(i.apSwipeDir||0)|$s.DOWN,this.on("ap-swipe",ji)},teardown:function(){var i=t(this.node).data();i.apSwipeDir&&(i.apSwipeDir&=~$s.DOWN),0===i.apSwipeDir&&t(this.node).removeData("apSwipeDir"),this.off("ap-swipe",ji)}}});var Ks={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",19:"Pause/Break",20:"Caps Lock",27:"Esc",32:"Space",33:"Page Up",34:"Page Down",35:"End",36:"Home",37:"Left Arrow",38:"Up Arrow",39:"Right Arrow",40:"Down Arrow",44:"Print Screen",45:"Insert",46:"Delete",91:"Left Windows",92:"Right Windows",93:"Windows Menu",106:"Numpad *",107:"Numpad +",108:"Separator",173:"-",110:"Numpad .",111:"Numpad /",144:"Num Lock",145:"Scroll Lock",59:";",61:"=",188:",",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'"},qs={combinedCode:function(t,i,s,e,n){var h=0;return i&&(h|=Js.MOD_CTRL),s&&(h|=Js.MOD_SHIFT),e&&(h|=Js.MOD_ALT),n&&(h|=Js.MODE_META),h<<24|t},code:function(t){return 16777215&t},modifiers:function(t){return t>>24},modName:function(t){var i="";return t&Js.MOD_CTRL&&(i+="+Ctrl"),t&Js.MOD_SHIFT&&(i+="+Shift"),t&Js.MOD_ALT&&(i+="+Alt"),t&Js.MODE_META&&(i+=he.browser.macOS?"+⌘":"+Win"),i.substr(1)},isMouse:function(t){var i=qs.code(t);return i>0&&i<=Zs.MAX_CODE},name:function(t,i){return qs.isMouse(t)?Zs.name(t,i):Js.name(t,i)}},Js={MOD_ALT:1,MOD_CTRL:2,MOD_SHIFT:4,MODE_META:8,SHIFT:16,CTRL:17,ALT:18,F1:112,F12:123,F4:115,F5:116,PRTSCR:44,CANCEL:3,PAUSE:19,TAB:9,BACKSPACE:8,NUMBER0:48,NUMBER9:57,A:65,Z:90,W:87,NUMPAD0:96,NUMPAD9:105,ENTER:13,SPACE:32,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,SHIFT_TAB:4<<24|9,combinedCode:function(t){var i=t.which,s=t.ctrlKey,e=t.shiftKey,n=t.altKey,h=t.metaKey;switch(i){case Js.CTRL:s=!0,i=0;break;case Js.SHIFT:e=!0,i=0;break;case Js.ALT:n=!0,i=0;break;case 224:case 93:if(!he.browser.macOS)break;case 92:case 91:h=!0,i=0;break;case Js.CANCEL:i=Js.PAUSE;break;case 186:i=59;break;case 171:case 187:i=61;break;case 189:i=173}return qs.combinedCode(i,s,e,n,h)},name:function(t){var i=qs.modName(qs.modifiers(t)),s=qs.code(t),e="";return Js.NUMBER0<=s&&s<=Js.NUMBER9||Js.A<=s&&s<=Js.Z?e=String.fromCharCode(s):Js.NUMPAD0<=s&&s<=Js.NUMPAD9?e="Numpad "+(s-Js.NUMPAD0):Js.F1<=s&&s<=Js.F12?e="F"+(s-Js.F1+1):s&&(e=Ks[s]||""+s),i&&(e=e?i+"+"+e:i),e},hasKeydown:function(t){return t!==this.PRTSCR},shouldPreventDefault:function(t,i,s){if(s&&!i)return t!=Js.TAB&&t!=Js.SHIFT_TAB;var e=qs.modifiers(t),n=qs.code(t);return n==Js.F5||n==Js.F4||n==Js.BACKSPACE&&!i||e&Js.MOD_CTRL&&n==Js.W||e&Js.MOD_ALT&&(n==Js.HOME||n==Js.LEFT||n==Js.RIGHT)},shouldIgnoreIncorrect:function(t){return 0==qs.code(t)||t==Js.TAB||t==Js.SHIFT_TAB},preventDefault:function(t){t.preventDefault();try{t.originalEvent?t.originalEvent.keyCode=0:t.keyCode=0}catch(t){}}},Zs={LEFT:1,MIDDLE:2,RIGHT:3,DBLEFT:4,OUTSIDE:5,MAX_CODE:5,fromTouch:!1,combinedCode:function(t,i){var s=t.which;return i&&(s=Zs.DBLEFT),qs.combinedCode(s,t.ctrlKey,t.shiftKey,t.altKey,t.metaKey)},name:function(t,i){var s=qs.modName(qs.modifiers(t)),e=qs.code(t),n="";switch(i=i||oe,e){case Zs.LEFT:n=i.text("LeftClick");break;case Zs.MIDDLE:n=i.text("MiddleClick");break;case Zs.RIGHT:n=i.text("RightClick");break;case Zs.DBLEFT:n=i.text("LeftDClick");break;case Zs.OUTSIDE:n=i.text("ClickOutside");break;default:n=""+e}return s&&(n=n?s+"+"+n:s),n},fire:function(i,s,e,n){s.ns(!1,!0)&&t(s).triggerHandler(t.Event(i,{value:Zs.combinedCode(e,n),originalEvent:e.originalEvent||e}))}};if("mousedown"!==Xs){var te=function(t){"mouse"!==t.pointerType&&4!==t.pointerType&&(Zs.fromTouch=!0),Zi.removeEventListener(Xs,te,!0)};Zi.addEventListener(Xs,te,!0)}function ie(t,s,e,n){if(function(t,i,s){var e,n,h,r,a,o,u=!1;if(!t||!t.length)return!0;for(e=0,n=t.length;e<n;++e){var c=(h=t[e])[3];if(h[0]||0===e){if(u)break;u=!0}if(u){switch(r=c[1],a=c[0],o=!1,h[1]){case kt.gt:r=i.vars.get(r),c[2]?a=i.vars.get(a):i.vars.os(c[1])==wi.NUMBER&&(a=Number(a));break;case kt.yt:(r=s.currentTarget&&s.currentTarget.slide&&s.currentTarget.slide.object(r))?a==Mi?(a=c[2],r=r.us.name()):r=r.us.id():(as("Object not found: "+c[1]),r=a=0);break;case kt.kt:s.currentTarget&&s.currentTarget.attempts?(r=s.currentTarget.attempts(),a===Ci&&(a=s.currentTarget.maxAttempts())):r=0;break;case kt.I:r=s.value&&s.value.id&&s.value.id();break;case kt.Tt:(r=s.currentTarget&&s.currentTarget.slide&&s.currentTarget.slide.object(r))?r=r.checked():(as("Object not found: "+c[1]),r=a=0);break;case kt.xt:o=a;break;case kt.j:r=typeof a===Ai?Js.name(s.value):s.value;break;default:r=s.value}switch(h[2]){case _t.St:o=r<a;break;case _t.Et:o=r>a;break;case _t.Mt:o=i.vars.os(c[1])==wi.NUMBER?us(r,a):r==a;break;case _t.Ct:o=r.toLowerCase&&a.toLowerCase&&r.toLowerCase()===a.toLowerCase();break;case _t.Pt:o=i.vars.os(c[1])==wi.NUMBER?!us(r,a):r!=a;break;case _t.It:o=r.toLowerCase&&a.toLowerCase&&r.toLowerCase()!==a.toLowerCase();break;case _t.Rt:o=r<=a;break;case _t.At:o=r>=a}u=u&&o}}return u}(t[2],s,e)){var h=t[0],r=t[1];switch(h){case Rt.Yt:s.pause(!0);break;case Rt.Bt:var a=!1;e.currentTarget&&e.currentTarget.cs&&(a=e.currentTarget.fs,e.currentTarget.cs(!1)),a||s.pause(!1);break;case Rt.Ht:s.end();break;case Rt.ki:s.restart();break;case Rt.zt:s.showSlideById(r);break;case Rt.Xt:typeof(o=r)===Ai&&(o=s.variable(o)-1),s.showSlide(o);break;case Rt.Gt:typeof(o=r)===Ai&&(o=s.variable(o)-1),s.showSlide(s.slideIndex+o);break;case Rt.Vt:var o;typeof(o=r)===Ai&&(o=s.variable(o)),s.showSlide(s.slideIndex-o);break;case Rt.$t:try{var u=r;typeof u!==Ai&&(u=s.variable(u[1])),(c=window.open("mailto:"+encodeURIComponent(u),"_blank"))&&(c.focus(),setTimeout(function(){!c||c.document.hasFocus&&c.document.hasFocus()||c.close()},1e3))}catch(t){as(t)}break;case Rt.Wt:try{var c,f=r[0],l=r[1];typeof f!==Ai&&(f=s.variable(r[1]),l=r[2]),(c=window.open(f,l))?c.focus():as('Cannot open webpage "'+f+'" in window "'+l+'"')}catch(t){as(t)}break;case Rt.jt:var d=s.ls(r);try{d&&d.call(e.currentTarget,e,s)}catch(t){as(t)}break;case Rt.Qt:case Rt.Kt:case Rt.ri:case Rt.si:case Rt.ci:case Rt.ii:if(e.currentTarget&&e.currentTarget.slide){var p,v,m,b=r[0];if(typeof b===Ai&&(b=s.variable(b)),k=-2===b?e.value:e.currentTarget.slide.object(b)){var w,g=k.ds(function(t){return!0===t.effectAction});for(m=0;m<g.length;++m)(w=g[m]).actionData===r?(T=w,w.remove()):k.ps(w),w.started()&&w.totalTime()<w.totalDuration()&&w.pause(w.totalDuration());if(!T){for((T=new fh).actionData=r,T.effectAction=!0,k.vs(T),m=1;m<r.length;++m)(v=r[m])&&(p=he.createEffect(k,v[0],v[1],v[2],v[3]))&&T.addChild(p);T.addChild(new rh(function(){setTimeout(function(){k.ps(T)},0),(h===Rt.Qt||h===Rt.ri||h===Rt.ci)&&n&&n()},{startTime:T.duration(),duration:0}))}if(T.startTime(s.timeline.totalTime()),s.timeline.addChild(T),T.setup(),T.play(0),h===Rt.Qt||h===Rt.ri||h===Rt.ci)return}}break;case Rt.qt:if(s.ended)break;if(typeof r!==Ai&&(!r||r<=0))s.submit();else if(typeof(N=r)===Ai&&(N=s.variable(N)),e.currentTarget&&e.currentTarget.slide)(k=e.currentTarget.slide.object(N))&&k.ns(!0,!0)&&k.submit();break;case Rt.Jt:if(s.ended)break;if(typeof r!==Ai&&(!r||r<=0))s.clear(!0);else if(typeof(N=r)===Ai&&(N=s.variable(N)),e.currentTarget&&e.currentTarget.slide)(k=e.currentTarget.slide.object(N))&&k.ns(!0,!0)&&k.clear(!0);break;case Rt.oi:case Rt.Zt:var y=r[1]<Ri&&h==Rt.Zt;if(s.ms(r[0],r[1],r,y,h==Rt.oi?n:null),h==Rt.oi)return;break;case Rt.yt:var k=e.currentTarget&&e.currentTarget.slide&&e.currentTarget.slide.object(r[0]),_=r[1];_==Mi?k&&k.state(r[2]):k&&k.state(_);break;case Rt.fi:typeof(x=r)===Ai&&(x=s.variable(x));var T=s.slide&&s.slide.timeline(x);return e.currentTarget&&e.currentTarget.slide&&s.bs(e.currentTarget.slide)&&(T=e.currentTarget.slide.timeline(x)),void s.startTimeline(T,n);case Rt.ei:typeof(x=r)===Ai&&(x=s.variable(x));T=s.slide&&s.slide.timeline(x);e.currentTarget&&e.currentTarget.slide&&s.bs(e.currentTarget.slide)&&(T=e.currentTarget.slide.timeline(x)),s.startTimeline(T);break;case Rt.ni:typeof(x=r)===Ai&&(x=s.variable(x));T=s.slide&&s.slide.timeline(x);e.currentTarget&&e.currentTarget.slide&&s.bs(e.currentTarget.slide)&&(T=e.currentTarget.slide.timeline(x)),s.pauseTimeline(T,!0);break;case Rt.hi:var x;typeof(x=r)===Ai&&(x=s.variable(x));T=s.slide&&s.slide.timeline(x);e.currentTarget&&e.currentTarget.slide&&s.bs(e.currentTarget.slide)&&(T=e.currentTarget.slide.timeline(x)),s.pauseTimeline(T,!1);break;case Rt.gt:var S=r[1],E=r[2];r[3]?E=s.vars.get(E):s.vars.os(S)==wi.NUMBER&&(E=Number(E));var M=!0;switch(r[0]){case Tt.Dt:s.vars.set(S,s.vars.get(S)+E);break;case Tt.Nt:s.vars.set(S,s.vars.get(S)-E);break;case Tt.Ot:s.vars.set(S,s.vars.get(S)*E);break;case Tt.Lt:s.vars.set(S,s.vars.get(S)/E);break;case Tt.Ft:s.vars.set(S,E);break;case Tt.Tt:s.vars.set(S,!s.vars.get(S));break;case Tt.Ut:var C=r[4];void 0===C&&(C="");var P=s.vars.get(S)||"";P?P+=C+E:P=E,s.vars.set(S,P);break;default:M=!1}M&&s.vars.ws(S)&&(s.gs.vars[S]=s.variable(S),s.lms&&s.lms.storeSuspendData(s.gs,!0));break;case Rt.li:if(typeof(I=r[0])!==Ai?(I=s.variable(r[1]),s.showFeedbackByName(I,r[2],r[3]?n:null)):s.showFeedbackById(I,r[1],r[2]?n:null),r[2])return;break;case Rt.di:var I;typeof(I=r)!==Ai?(I=s.variable(r[1]),s.hideFeedbackByName(I)):s.hideFeedbackById(I);break;case Rt.pi:s.reviewCourse();break;case Rt.bi:var R=r[0];typeof R===Ai&&(R=s.variable(R));var A=R,D={showCorrect:r[1],showIncorrect:r[2],showValues:r[3],showResult:r[4]};if(A<=0)s.slide&&s.slide.ys(D),s.bottomSlide&&s.bottomSlide.ys(D),s.topSlide&&s.topSlide.ys(D);else if(e.currentTarget&&e.currentTarget.slide)(k=e.currentTarget.slide.object(A))&&k.ys&&k.ys(D);break;case Rt.wi:case Rt.gi:case Rt.yi:if(s.ended)break;var N;if(e.currentTarget&&e.currentTarget.slide)typeof(N=r)===Ai&&(N=s.variable(N)),(k=e.currentTarget.slide.object(N))&&k.enabled()&&k.ks.k==i.U&&(h==Rt.wi?k.startTimer():h==Rt.gi?k.pauseTimer():h==Rt.yi&&k.stopTimer());break;case Rt.vi:var O=-1,L=r,F=L.length,U=function(){++O<F&&ie(L[O],s,e,O===F-1?n:U)};return void U()}n&&n()}else n&&n()}var se=0;function ee(){return++se}function ne(t,i){t=(""+t).split("."),i=(""+i).split(".");var s,e,n,h=Yi(t.length,i.length);for(s=0;s<h;++s)if((e=parseInt(t[s]))!==(n=parseInt(i[s])))return e-n;return 0}var he={version:function(){return"8.5.0"},minPrezVersion:"8.0.0",presentations:[],loadedPrezs:[],unsupportedBrowser:!1,youtubeAPIState:Kt,mathJaxAPIState:Kt,messages:{},defaultLang:null,compatible:function(t){return ne(this.version(),t.mpv)>=0&&ne(t.v,this.minPrezVersion)>=0},open:function(i,s,e){return e=e||{},this.unsupportedBrowser?(t(function(){}),null):new Te(i,s,e)},close:function(t){t&&t.destroy()},find:function(t){var i,s,e,n,h=this.presentations;if(typeof t===Ai&&(n=t,t=Zi.getElementById(n)),!n&&!t)return null;for(i=0,s=h.length;i<s;++i)if(e=h[i],n&&e.containerId===n||t&&e.container===t)return e;return null},addTranslation:function(t,i,s){this.messages[i]=t,(s||null===this.defaultLang)&&(this.defaultLang=i)},tick:function(t){var i,s,e=this.presentations;for(i=0,s=e.length;i<s;++i)e[i].tick(t)},loadYouTubeIframeAPI:function(){if(this.youtubeAPIState==Kt){this.youtubeAPIState=qt;var t,i=Zi.createElement("script"),s=this;i.src="https://www.youtube.com/iframe_api",(t=Zi.getElementsByTagName("script")[0]).parentNode.insertBefore(i,t),setTimeout(function(){var t,i;if(s.youtubeAPIState==qt)for(s.youtubeAPIState=Zt,t=0,i=s.presentations.length;t<i;++t)s.presentations[t]._s()},3e4)}},onYouTubeIframeAPIReady:function(){var t,i;if(this.youtubeAPIState==qt)for(this.youtubeAPIState=Jt,t=0,i=this.presentations.length;t<i;++t)this.presentations[t]._s()},loadMathJaxAPI:function(t){if(this.mathJaxAPIState==Kt){this.mathJaxAPIState=qt;var i,s=Zi.getElementsByTagName("head")[0];(i=Zi.createElement("script")).type="text/x-mathjax-config",i[window.opera?"innerHTML":"text"]='MathJax.Hub.Config({ showProcessingMessages: false, showMathMenu: false, showMathMenuMSIE: true, skipStartupTypeset: true, messageStyle: "none" });MathJax.Hub.Register.StartupHook("End", function () { AtomiAP.onMathJaxAPIReady(); });',s.appendChild(i),window.apMathJaxFontDir=t.length>0&&"/"==t.charAt(t.length-1)?t.substring(0,t.length-1):t,(i=Zi.createElement("script")).type="text/javascript",i.src=t+"MathJax.js",s.appendChild(i)}},onMathJaxAPIReady:function(){var t,i;if(this.mathJaxAPIState==qt)for(this.mathJaxAPIState=Jt,t=0,i=this.presentations.length;t<i;++t)this.presentations[t]._s()},pageVisible:function(){return!Rs||!Zi[Rs]},onPageVisibilityChanged:function(){var t,i,s,e;if(this.pageVisible()){if(t=this.Ts){for(s=0,e=t.length;s<e;++s)(i=t[s]).allPaused()&&i.pauseAll(!1);t.length=0}}else for(this.Ts||(this.Ts=[]),s=0,e=(t=this.presentations).length;s<e;++s)(i=t[s]).allPaused()||(i.pauseAll(!0),this.Ts.push(i))},xs:function(t){t.allPaused()||(t.pauseAll(!0),this.Ts||(this.Ts=[]),this.Ts.push(t))},fullscreen:Os};function re(t){he.browser.iDevice&&t.addEventListener("touchstart",function(t){t.preventDefault()},!1)}he.browser={init:function(){this.initiated||(this.initiated=!0,this.ie=!!Zi.documentMode,this.edge=!this.ie&&!!window.StyleMedia,this.safari=/^((?!chrome|android).)*safari/i.test(navigator.userAgent),this.iDevice=/iPad|iPhone|iPod/.test(navigator.platform)||"MacIntel"==navigator.platform&&navigator.maxTouchPoints>1,this.iPhone=!!navigator.userAgent.match(/iPhone/i),this.android=!!navigator.userAgent.match(/Android/i),this.mobile=this.iDevice||this.android,this.chromiums=!!window.chrome,this.macOS=navigator.platform.indexOf("Mac")>=0,this.useCSSShadow=!this.edge&&!this.ie)}},he.browser.init(),t(window).resize(function(){var t,i;for(t=0,i=he.presentations.length;t<i;++t)he.presentations[t].layout()}),t(window).bind(he.browser.iDevice?"pagehide":"beforeunload unload",function(){for(var t=he.presentations;t.length>0;)he.close(t[0])}),t(Zi).on("keydown keyup",function(t){var i,s;for(i=0,s=he.presentations.length;i<s;++i)he.presentations[i].Ss(t)}),Rs&&t(Zi).on(Rs.replace(/[H|h]idden/,"")+"visibilitychange",function(){he.onPageVisibilityChanged()});var ae=Ls({$init:function(t){this.Es=arguments.length?t:null},text:function(t){var i,s,e,n=he.messages[this.Es],h=arguments.length;if(e=n&&n[t]||(n=he.messages[he.defaultLang])&&n[t]||t,h>1)for(i=1;i<h;++i)s=new RegExp("\\{"+(i-1)+"\\}","g"),e=e.replace(s,arguments[i]);return e},number:function(t){var i,s=null===this.Es?he.defaultLang:this.Es,e=""+t;return"ar"!==s&&"ar"!==s.substr(0,2)||(i="۰ ۱ ۲ ۳ ۴ ۵ ۶ ۷ ۸ ۹".split(" "),e=e.replace(/[0-9]/g,function(t){return i[t]})),e}}),oe=new ae;function ue(t){return("0"+t).slice(-2)}function ce(t){return("0"+(i=t,i+1)).slice(-2);var i}function fe(t){return t.toString().slice(-2)}var le=/%[^\s%]+%/g,de=Ls({$init:function(t){this.Ms=t,this.Cs={apVersion:{get:function(t){return t.version()}},apAuthor:{get:function(t){return fs(t.author())}},apHomepage:{get:function(t){return fs(t.homePage())}},apCopyright:{get:function(t){return fs(t.copyright())}},apProjectName:{get:function(t){return fs(t.name())}},apDescription:{get:function(t){return fs(t.description(),!0)}},apPlayMode:{get:function(t){return fs(t.ui.Ps.text(t.playMode()))}},apCurrentSlideLabel:{get:function(t){return t.currentSlideLabel()}},apElapsedTime:{get:function(t){return vs(t.elapsedTime())}},apElapsedTimeMs:{get:function(t){return t.elapsedTime()}},apRemainingTime:{get:function(t){var i=t.remainingTime();return i%1e3>0&&(i+=1e3),vs(i)}},apRemainingTimeMs:{get:function(t){return t.remainingTime()}},apTotalSlides:{get:function(t){return t.slideCount()}},apTakenSlides:{get:function(t){return t.takenSlideCount()}},apReviewMode:{get:function(t){return t.isReviewingMode()}},apQuizScore:{get:function(t){return t.score()}},apQuizScorePercentage:{get:function(t){return t.percentageScore()}},apQuizMaxScore:{get:function(t){return t.maxScore()}},apQuizPassed:{get:function(t){return fs(t.ui.Ps.text(t.result()?"passed":"failed"))}},apQuizPassedBool:{get:function(t){return t.result()}},apQuizTotalInteractions:{get:function(t){return t.interactionCount()}},apQuizTakenInteractions:{get:function(t){return t.takenInteractionCount()}},apQuizUnTakenInteractions:{get:function(t){return t.interactionCount()-t.takenInteractionCount()}},apQuizCorrectInteractions:{get:function(t){return t.takenInteractionCount(At.xi)}},apQuizIncorrectInteractions:{get:function(t){return t.takenInteractionCount(At.Si)}},apDetailedResult:{get:function(t){return t.detailedReportData(!1)}},apDetailedResult2:{get:function(t){return t.detailedReportData(!0)}},apCurrentTime:{get:function(t){var i=new Date,s=i.getHours(),e=i.getMinutes(),n=i.getSeconds();return this.nextUpdate=i.setSeconds(n+1,0),s<10&&(s="0"+s),e<10&&(e="0"+e),n<10&&(n="0"+n),s+":"+e+":"+n}},apCurrentDay:{get:function(t){var i=new Date,s=i.getDay()+1;return this.nextUpdate=i.setHours(24,0,0,0),s}},apCurrentHour:{get:function(t){var i=new Date,s=i.getHours();return this.nextUpdate=i.setHours(s+1,0,0,0),(s<10?"0":"")+s}},apCurrentMinutes:{get:function(t){var i=new Date,s=i.getMinutes();return this.nextUpdate=i.setMinutes(s+1,0,0),(s<10?"0":"")+s}},apCurrentMonth:{get:function(t){var i=(new Date).getMonth()+1;return(i<10?"0":"")+i}},apCurrentYear:{get:function(t){return("0000"+(new Date).getFullYear()).slice(-4)}},apCurrentLocaleDate:{get:function(t){return(new Date).toLocaleDateString()}},apProjectLocaleDate:{get:function(t){return(new Date).toLocaleDateString(t.ks.language)}},apDateMMDDYYYY:{get:function(t){var i=new Date;return ce(i.getMonth())+"/"+ue(i.getDate())+"/"+i.getFullYear()}},apDateMMDDYY:{get:function(t){var i=new Date;return ce(i.getMonth())+"/"+ue(i.getDate())+"/"+fe(i.getFullYear())}},apDateDDMMYYYY:{get:function(t){var i=new Date;return ue(i.getDate())+"/"+ce(i.getMonth())+"/"+i.getFullYear()}},apDateDDMMYY:{get:function(t){var i=new Date;return ue(i.getDate())+"/"+ce(i.getMonth())+"/"+fe(i.getFullYear())}},apDateYYYYMMDD:{get:function(t){var i=new Date;return i.getFullYear()+"/"+ce(i.getMonth())+"/"+ue(i.getDate())}},apDateYYMMDD:{get:function(t){var i=new Date;return fe(i.getFullYear())+"/"+ce(i.getMonth())+"/"+ue(i.getDate())}},apCurrentSlideIndex:{get:function(t){return t.currentSlideIndex()},set:function(t,i){return t.currentSlideIndex(i),!0},type:wi.NUMBER},apPause:{get:function(t){return t.paused()},set:function(t,i){if(i=!!i,t.paused()!==i)return t.pause(i),!0}},apResume:{get:function(t){return!t.paused()},set:function(t,i){var s=!i;if(t.paused()!==s)return t.pause(s),!0}},apProgress:{get:function(t){return t.time()},set:function(t,i){t.time(i)},type:wi.NUMBER},apSpeed:{get:function(t){return Vi(100*t.speed())},set:function(t,i){t.speed(i/100)},type:wi.NUMBER},apMute:{get:function(t){return t.muted()},set:function(t,i){t.muted(i)}},apVolume:{get:function(t){return Vi(100*t.volume())},set:function(t,i){t.volume(i/100)},type:wi.NUMBER},apCCVisible:{get:function(t){return t.closedCaptionVisible()},set:function(t,i){t.showClosedCaption(i)}},apToolbarVisible:{get:function(t){return t.toolbarVisible()},set:function(t,i){t.showToolbar(i)}},apTOCVisible:{get:function(t){return t.tocVisible()},set:function(t,i){t.showToc(i)}},apCmdNextSlide:{set:function(t,i){i&&t.nextSlide()}},apCmdPreviousSlide:{set:function(t,i){i&&t.previousSlide()}},apCmdFirstSlide:{set:function(t,i){i&&t.firstSlide()}},apCmdLastSlide:{set:function(t,i){i&&t.lastSlide()}},apCmdHistoryBack:{set:function(t,i){i&&t.historyBack()}},apCmdHistoryForward:{set:function(t,i){i&&t.historyForward()}},apCmdEnd:{set:function(t,i){i&&t.end()}},apCmdRestart:{set:function(t,i){i&&t.restart()}},apCmdShowAbout:{set:function(t,i){i&&t.showAbout()}},apSidebarVisible:{get:function(t){return t.sidebarVisible()},set:function(t,i){t.showSidebar(i)}}},this.Is="apCurrentTime apCurrentDay apCurrentHour apCurrentMinutes".split(" ")},get:function(t){var i=this.Cs[t];if(i)return i.get?i.get(this.Ms):i.val},set:function(t,i){var s=this.Cs[t],e=!1;return s||(s=this.Cs[t]={}),!(s.get&&!s.set)&&(s.set?e=s.set(this.Ms,i):s.val!==i&&(s.val=i,e=!0),e&&this.Rs(s),!0)},remove:function(t){delete this.Cs[t];var i=this.Is.indexOf(t);i>=0&&this.Is.splice(i,1)},has:function(t){return!!this.Cs[t]},os:function(t,i){var s=this.Cs[t];if(1==arguments.length)return s?s.type:void 0;2==arguments.length&&(s||(s=this.Cs[t]={}),s.type=i)},ws:function(t,i){var s=this.Cs[t];if(1==arguments.length)return s?s.userType:void 0;2==arguments.length&&(s||(s=this.Cs[t]={}),s.userType=i)},addObserver:function(t,i){var s,e,n;for(s=0,e=t.length;s<e;++s)(n=this.Cs[t[s]])&&(n.obs||(n.obs=new Us),n.obs.add(i))},removeObserver:function(t){var i,s,e=this.Cs;for(i in e)(s=e[i]).obs&&s.obs.remove(t,!0)},removeObserverIf:function(t){var i,s,e=this.Cs;for(i in e)(s=e[i]).obs&&s.obs.removeIf(t,!0)},notifyObservers:function(t){var i=this.Cs[t];i&&this.Rs(i)},Rs:function(t){var i,s=t.obs;if(s)for(s.toFront();i=s.next();)i()},replace:function(t){var i=this,s={vars:[]};return s.text=t.replace(le,function(t){var e=t.substring(1,t.length-1),n=i.Cs[e];return n?(s.vars.indexOf(e)<0&&s.vars.push(e),n.get?n.get(i.Ms):n.val):t}),s},tick:function(t){var i,s,e;for(i=0,s=this.Is.length;i<s;++i)(e=this.Cs[this.Is[i]])&&t>=(e.nextUpdate||0)&&this.Rs(e)}}),pe=new(Ls({$init:function(){var t=Zi.createElement("audio"),i=Zi.createElement("video");this.As="mp3",this.Ds="mp4",this.Ns=!0,t.canPlayType&&t.canPlayType("audio/mpeg;").replace(/no/,"")?this.As="mp3":t.canPlayType&&t.canPlayType('audio/ogg; codecs="vorbis"').replace(/no/,"")?this.As="ogg":this.Ns=!1,i.canPlayType&&i.canPlayType('video/mp4; codecs="avc1.42E01E, mp4a.40.2"').replace(/no/,"")?this.Ds="mp4":i.canPlayType&&i.canPlayType('video/webm; codecs="vp8"').replace(/no/,"")?this.Ds="webm":this.Ns=!1,this.Os=!1,this.Ls=!1;try{t.playbackRate=2,this.Ls=2==t.playbackRate}catch(t){}try{t.volume=.51,this.Os=.51==t.volume}catch(t){}this.Fs=!1;var s=this,e=t.play();void 0!==e&&e.catch(function(t){s.Fs=!0,as("MediaManager:_requireInitMediaElements: "+s.Fs)}),as("MediaManager:_canPlayMedia: "+this.Ns),as("MediaManager:_canChangeVolume: "+this.Os),as("MediaManager:_canChangePlaybackRate: "+this.Ls),as("MediaManager:_requireInitMediaElements: "+this.Fs)},canChangeVolume:function(){return this.Os},canChangePlaybackRate:function(){return this.Ls}}));he.mediaManager=pe;var ve=Ls({$init:function(){this.Us=[],this.Ys=[],this.Bs=[],this.Hs=1,this.zs=!1,this.Xs=1,this.Gs=!1,this.Vs=6,this.$s=6,this.Ws=!1},js:function(t){var i,s,e=t[1]+t[3]+t[5],n=t[0]+t[2]+t[4]+t[9];for(e*=2,n*=2,e+=this.Vs+this.$s,i=0;i<e;++i)s=Zi.createElement("audio"),this.Us.push(s);for(i=0;i<n;++i)s=Zi.createElement("video"),this.Ys.push(s);this.Gs=t[6]>0},Qs:function(t){this.Bs.push(t)},Ks:function(t){var i=this.Bs.indexOf(t);i>-1&&this.Bs.splice(i,1)},playbackRate:function(t){if(!arguments.length)return this.Xs;if(pe.canChangePlaybackRate()){this.Xs=t;var i,s,e=this.Bs;for(i=0,s=e.length;i<s;++i)e[i].playbackRate(t)}else as("This device does not support changing playback rate")},volume:function(t){if(!arguments.length)return this.Hs;if(pe.canChangeVolume()){this.Hs=t;var i,s,e=this.Bs;for(i=0,s=e.length;i<s;++i)e[i].volume(t)}else as("This device does not support changing volume")},muted:function(t){if(!arguments.length)return this.zs;this.zs=t;var i,s,e=this.Bs;for(i=0,s=e.length;i<s;++i)e[i].muted(t)},qs:function(){var t,i,s=this.Bs,e=this.Us.concat(this.Ys);for(t=0,i=e.length;t<i;++t)e[t].muted=!1;for(t=0,i=s.length;t<i;++t)s[t].qs()},Js:function(t){var i,s,e=this.Bs;for(i=0,s=e.length;i<s;++i)e[i].Js(t)}}),me=Ls({$init:function(t){this.Ms=t,this.Zs=[],this.te=0,this.se=!1},goBackward:function(t){var i=this.Zs[this.te-1],s=!1;return i&&(this.se=!0,--this.te,s=this.Ms.showSlide(i,t),this.se=!1),s},goForward:function(t){var i=this.Zs[this.te+1],s=!1;return i&&(this.se=!0,++this.te,s=this.Ms.showSlide(i,t),this.se=!1),s},add:function(t){t&&!this.se&&t!=this.Zs[this.te]&&(this.te>=0&&this.te<this.Zs.length-1&&(this.Zs.length=this.te+1),this.Zs.push(t),this.te=this.Zs.length-1)},clear:function(){this.Zs.length=0,this.te=0,this.se=!1}}),be=/^ap-(prez|slide|ctrl)-/,we=new Hs({onItemComplete:function(t){t.id&&t.id.ee&&t.id.ee(t.status)}});function ge(t,i){return t+"."+i}function ye(t,i,s){if(t&&(t.b&&(t.b.im?s.push(i.getResource(ge(t.b.im[0],t.b.im[1]))):t.b.f&&t.b.f[0]===vt.u&&s.push(i.getResource(ge(t.b.f[1],t.b.f[2])))),t.cc))for(var e=0,n=t.cc.length;e<n;++e){var h=t.cc[e];h&&ke(h,t,i,s)}}function ke(t,s,e,n){if(t.s)for(var h=0,r=t.s.length;h<r;++h){var a=t.s[h];a.im?n.push(e.getResource(ge(a.im[0],a.im[2]))):a.f&&a.f[0]===vt.u&&n.push(e.getResource(ge(a.f[1],a.f[2])))}if(t.k==i.T&&void 0!==t.mi&&n.push(e.getImgResource(s.i+"."+t.i+(t.g?".png":".jpg"))),t.cc)for(h=0,r=t.cc.length;h<r;++h){var o=t.cc[h];o&&ke(o,s,e,n)}}function _e(t,i,s,e,n,h){h=h||n,t.addChild(new ah(i,"mediaDuration",{startTime:e,duration:0,tweenParams:[0,h],tweenType:jt.zi})).addChild(new ah(i,"mediaSrc",{startTime:e,duration:0,tweenParams:[-1,s],tweenType:jt.zi})).addChild(new ah(i,"mediaState",{startTime:e,duration:0,tweenParams:["stopped","playing"],tweenType:jt.zi})).addChild(new oh(i,"mediaSeek",{startTime:e,duration:h,tweenParams:[0,1],tweenType:jt.ne})).addChild(new ah(i,"mediaState",{startTime:e+n,duration:0,tweenParams:["playing","stopped"],tweenType:jt.zi}))}var Te=Ls({$init:function(i,s,e){var n;this.gs={slides:[],fbs:[],randomMap:{},index:0,ts:0,elapsedTime:0,vars:{},s:1},this.he=new me(this),this.vars=new de(this),this.timeline=null,this.transition=null,this.re=null,this.started=!1,this.ended=!1,this.ae=!1,this.oe=[],this.ue=0,this.ce=0,this.fe=[],this.le=-1,this.pe=[],this.ve=!1,this.me=Kt,this.be={},this.contentState="loading",this.destroyed=!1,this.we=!0,this.ye=0,this.ke=new ve,i&&typeof i===Ai?(this.ks=null,this._e=i):this.ks=i||null,typeof s===Ai?(n=s,s=Zi.getElementById(s)):s&&(n=s.id),this.containerId=n,this.container=s,e=e||{},this.options=e;var h=location.search;if(h){var r,a,o,u=h.substring(1).toLowerCase().split("&");for(r=0,a=u.length;r<a;++r)switch((o=u[r].split("="))[0]){case"slide":e.slide=parseInt(o[1]);break;case"time":e.time=ms(decodeURIComponent(o[1]));break;case"slidetime":e.slideTime=ms(decodeURIComponent(o[1]));break;case"autofit":e[o[0]]="false"!=o[1]}}var c=e.preloader;c&&c.range?c.range=c.range/1e3:c={zIndex:2,color:"#2090e6",diameter:60,density:9,range:1,speed:1},this.ui=new he.UI(c),this.nodeId="ap-prez-"+(n?n.replace(be,""):"")+"-"+ee(),this.Te=this.nodeId.replace(be,""),this.xe=0;var f=this;this.Se=new Hs({maxConnections:8,maxTime:120,onItemComplete:function(t){if(f.oe.push(t.url),f.oe.length<=f.ce){if(!f.started){var i=f.oe.length/f.ce;f.ui.loadingUi.setText($i(100*i)+"%")}}else f.ue<10?f.ue++:(f.ue=0,f._s())},onTimeout:function(){},onComplete:function(){f.ae=!0,f._s()},onStart:function(){f.ui.loadingUi.show()},onProgress:function(){}}),this.slide=this.prevSlide=this.bottomSlide=this.topSlide=null,this.slideIndex=-1,this.layoutIndex=-1,s?this.Ee(s):n&&t(function(){(s=Zi.getElementById(n))&&f.Ee(s)})},Me:function(t){if(!t)return!0;if(!this.ae){var i=[];ye(t,this,i);for(var s=0,e=i.length;s<e;++s)if(this.oe.indexOf(i[s])<0)return!1}return!(this.ks.hasEquation&&!t.Ce)},Pe:function(){return!this.slide||(!(!this.ae||this.ks.hasEquation&&!this.slide.ks.Ce)||this.Me(this.slide.ks))},Ie:function(t){t!=this.ve&&(this.ve=t,t?this.Re():this.Ae())},De:function(){var t,i,s,e,n,h;for(s=0,3;s<3;++s)if(0==s?h=this.slide:1==s?h=this.topSlide:2==s&&(h=this.bottomSlide),h)if(h.Ne)h.De();else if(t=h.children)for(e=0,n=t.length;e<n;++e)(i=t[e]).De&&i.De()},_s:function(){if(this.ks.hasEquation){if(he.mathJaxAPIState==qt||he.mathJaxAPIState==Kt)return;if(he.mathJaxAPIState==Jt&&this.me==Kt)return void this.Oe()}if(!this.ke.Gs||he.youtubeAPIState!=qt&&he.youtubeAPIState!=Kt)if(this.De(),this.started)this.ve&&this.Pe()&&this.Ie(!1);else{for(var t=0,i=this.ks.pcs.length;t<i;++t){var s=this.ks.pcs[t];if(!this.Me(s))return}var e=isNaN(this.options.slide)?0:this.options.slide-1;if(this.Me(this.Le(e))){this.ui.loadingUi.hide();var n=function(){isNaN(this.options.slide)?this.start():this.start(this.options.slide,this.options.slideTime)};if(he.youtubeAPIState==Zt){var h=this;if(this.Fe)return void this.ui.showMsg(this.ui.Ps.text("YouTubeError"),!0,void 0,function(){n.call(h)});alert(oe.text("YouTubeError"))}n.call(this)}}},Ee:function(t){this.destroyed||(this.container=t,this.ui.appendTo(t),this.ui.loadingUi.show(),this._e?we.load({url:this._e,type:"js",id:this}):this.ee())},ee:function(t){if(!this.destroyed){if(this._e)if(t===Ys.LOADED)this.ks=he.loadedPrezs.shift(),this.ks||(this.contentState="error",this.ui.loadingUi.hide(),alert("Error parsing the presentation. Check the browser console for more information."));else{if(t!==Ys.ERROR)return;this.contentState="error",this.ui.loadingUi.hide(),alert(oe.text("LoadPrezError"))}if(this.ks?he.compatible(this.ks)||(this.contentState="incompatible",this.ui.loadingUi.hide(),alert(oe.text("IncompatiblePrez"))):this.ks={},"loading"===this.contentState&&(this.contentState="loaded"),he.presentations.push(this),void 0!==this.options.time&&void 0===this.options.slide){var i=this.Ue(this.options.time);i&&(this.options.slide=i.slideIndex+1,this.options.slideTime=i.slideTime)}if(this.options.onReady&&this.options.onReady.call(this),"loaded"===this.contentState){this.resourceLocation=void 0!==this.options.resourceLocation?this.options.resourceLocation:this.ks.options.resourceLocation||"",this.fileNamePrefix=void 0!==this.options.fileNamePrefix?this.options.fileNamePrefix:this.ks.options.fileNamePrefix||"",this.playerResource=void 0!==this.options.playerResource?this.options.playerResource:this.ks.options.playerResource||"";this.options.playMode;var s=this.ke,e=this.ks.params;if(void 0!==this.options.autofit&&(e.DisplayMode[0]=e.DisplayMode[1]=e.DisplayMode[2]=e.DisplayMode[3]=this.options.autofit?bi.AUTOFIT:bi.ACTUAL_SIZE),this.Ye=!0,this.ks.mcc?this.Be=this.ks.mcc.i||0:this.Be=0,s.js(this.ks.mediaStats),this.lms=this.ks.options.lms?new he.LMS(this):null,this.lms&&(this.lms.initialize(),this.lms.loadSuspendData(),this.He=this.gs.elapsedTime||0,this.gs.fbs&&this.gs.fbs.length&&(this.ze=this.gs.fbs),this.gs.fbs=[],this.gs.vars))for(var n in this.gs.vars)this.gs.vars.hasOwnProperty(n)&&this.variable(n,this.gs.vars[n]);this.Xe(),this.ks.hasEquation&&he.loadMathJaxAPI(this.playerResource),s.Gs&&he.loadYouTubeIframeAPI();var h=function(t){var i,s,e,n=[],h=t.cssUrl(),r=t.ks,a=0;for(h&&n.push(h),r.authorImage&&n.push(t.getResource(ge(r.authorImage[0],r.authorImage[1]))),r.companyLogo&&n.push(t.getResource(ge(r.companyLogo[0],r.companyLogo[1]))),s=0,e=r.slides.length;s<e;++s)if(i=r.slides[s]){if(i.rd){var o=(r.pools||[])[i.lp];if(!o||0==o.length)continue}n.push(t.getThumbnailResource(i.thumbId||i.i))}for(s=0,e=r.pcs.length;s<e;++s)(i=r.pcs[s])&&ye(i,t,n);if(r.feedbacks)for(s=0,e=r.feedbacks.length;s<e;++s)(i=r.feedbacks[s])&&ye(i,t,n);for(s=0,e=r.slides.length;s<e;++s)(i=r.slides[s])&&ye(i,t,n),3==s&&(a=n.length);return s<=3&&(a=n.length),{preloadCount:a,allResources:n}}(this);this.ce=h.preloadCount,this.Se.load(h.allResources),this._s()}else this.ui.loadingUi.hide()}},version:function(){return this.ks&&this.ks.v||""},destroy:function(){if(!this.destroyed){if(this.destroyed=!0,this.lms){if(this.started&&!this.ended){this.slide&&this.re&&(this.gs.ts=this.re.time()-this.slide.ks.st),this.gs.elapsedTime=this.elapsedTime();var t=this.vars.Cs;for(var i in t)this.vars.ws(i)&&(this.gs.vars[i]=this.vars.get(i));this.lms.storeSuspendData(this.gs,!0)}this.lms.terminate()}var s=he.presentations,e=s.indexOf(this);if(e>-1&&s.splice(e,1),this.Ge){for(var n=0;n<this.Ge.length;++n)this.Ge[n].cleanup();this.Ge.length=0}this.pauseAll(),this.Ve(),this.$e(),this.ui.destroy()}},genId:function(){return++this.xe},genDomId:function(t){return t+this.Te+"-"+this.genId()},genSlideDomId:function(){return this.genDomId("ap-slide-")},genObjectDomId:function(){return this.genDomId("ap-ctrl-")},layout:function(){this.ui.layout()},setMaxContentWidth:function(t){this.ui.setMaxContentWidth(t),this.ui.layout()},We:function(){return this.ui?this.ui.We:1},object:function(t){var i=null;return this.slide&&(i=this.slide.object(t)),!i&&this.bottomSlide&&(i=this.bottomSlide.object(t)),!i&&this.topSlide&&(i=this.topSlide.object(t)),i},ls:function(t){return this.ks.f[t]},je:function(t){var i,s,e=this.ks.slides;if(!arguments.length)return e||[];for(i=0,s=e.length;i<s;++i)if(e[i].i===t)return e[i];return null},Qe:function(t){var i,s,e=this.ks.slides;for(i=0,s=e.length;i<s;++i)if(ls(e[i].n).trim()===t)return e[i];return null},Le:function(t){return this.ks.slides[t]},Ke:function(t){var i,s,e=this.ks.feedbacks;if(!arguments.length)return e||[];for(i=0,s=e.length;i<s;++i)if(e[i].fbi===t)return e[i];return null},qe:function(t){var i,s,e=this.ks.feedbacks;if(!arguments.length)return e||[];for(i=0,s=e.length;i<s;++i)if(e[i].at===t)return e[i];return null},slideId:function(t){return t>=0&&t<this.ks.slides.length?this.ks.slides[t].i:-1},slideCount:function(){return this.ks.slides.length},showSlideById:function(t){return this.showSlide(this.je(t))},showFeedbackById:function(t,i,s){return this.Je(!0,t,i,s)},showFeedbackByName:function(t,i,s){return this.Je(!1,t,i,s)},Je:function(i,s,e,n){var h=i?this.Ke(s):this.qe(s);if(!h)return!1;var r=void 0!==e&&e>=0,a=h.fbi;if(this.Ze||(this.Ze=[]),this.tn(i,s)>=0)return!0;this.fbTransition&&(this.fbTransition.remove(),this.fbTransition.seek(this.fbTransition.totalDuration()),this.fbTransition=null);var o=new Pn(this,h),u=this;if(this.Ze.push(o),r||this.gs.fbs.push(a),this.sn(!!o.ks.w),!(h.ts&&h.ts[1]>0)||this.allPaused()&&this.ended||(this.fbTransition=he.createTransition.apply(he,[this,o,this.slide].concat(h.ts)),this.fbTransition.addChild(new rh(function(){var t=u.fbTransition;setTimeout(function(){t&&t.remove()},0)},{startTime:this.fbTransition.duration(),duration:0})),this.fbTransition.startTime(),o.re.addChild(this.fbTransition),this.fbTransition.setup()),r){var c=new rh(function(){u.hideFeedbackById(a),n&&n()},{startTime:e});o.vs(c),o.re.addChild(c)}else o.en=n;return o.re.startTime(this.timeline.totalTime()),this.timeline.addChild(o.re),o.re.setup(),o.re.play(0),t(o).triggerHandler("ap-load"),!0},hideFeedbackById:function(t){this.nn(this.tn(!0,t))},hideFeedbackByName:function(t){this.nn(this.tn(!1,t))},nn:function(i){if(this.Ze&&i>=0&&i<this.Ze.length){var s=this.Ze[i];if(s){t(s).triggerHandler("ap-unload"),s.remove(),s.en&&s.en();var e=this.gs.fbs.indexOf(s.ks.fbi);e>=0&&this.gs.fbs.splice(e,1)}this.Ze.splice(i,1)}},hideAllFeedbacks:function(){if(this.Ze)for(;this.Ze.length;)this.nn(this.Ze.length-1)},bs:function(t){if(this.Ze)for(var i=0,s=this.Ze.length;i<s;++i)if(this.Ze[i]==t)return!0;return!1},tn:function(t,i){if(this.Ze)for(var s=0,e=this.Ze.length;s<e;++s)if(t){if(this.Ze[s].ks.fbi===i)return s}else if(this.Ze[s].ks.at===i)return s;return-1},firstSlide:function(t){return this.showSlide(0,t)},lastSlide:function(t){return this.showSlide(this.slideCount()-1,t)},currentSlide:function(){return this.slide},nextSlide:function(t){return this.showSlide(this.slideIndex+1,t)},previousSlide:function(t){return this.showSlide(this.slideIndex-1,t)},historyBack:function(t){return this.he.goBackward(t)},historyForward:function(t){return this.he.goForward(t)},hn:function(t){if(this.prevSlide){var i=this.prevSlide.background;isNaN(t)||t<0||!i?this.prevSlide.remove():(this.prevSlide.remove(!0),setTimeout(function(){i.remove()},t)),this.prevSlide=null}},rn:function(){for(var t={},i=this.gs.slides,s=0,e=i.length;s<e;++s)i[s]&&(t[s]=!0);return t},showClosedCaption:function(i){arguments.length||(i=!0),this.Ye=i,this.an&&t(this.an.node).css("visibility",i?"visible":"hidden"),this.vars.notifyObservers("apCCVisible"),t(this.ui).trigger("ap-cc",[i])},closedCaptionVisible:function(){return!!this.Ye},closedCaptionLanguageIndex:function(i){if(!arguments.length)return this.Be;this.Be=i,this.slide&&this.slide.reloadClosedCaption();var s=-1!=i;this.showClosedCaption(s),t(this.ui).trigger("ap-tool-multiple-language-cc",i)},un:function(t){var i,s;t?(i=this.slide,s=this.prevSlide):(i=this.prevSlide,s=this.slide),i&&(i.node.style.zIndex=$t.Pi,i.background&&(i.background.node.style.zIndex=$t.Ci)),s&&(s.node.style.zIndex=$t.Ai,s.background&&(s.background.node.style.zIndex=$t.Ii))},cn:function(t,i){if(t)for(var s=0,e=t.length;s<e;++s){var n=t[s];n&&(n.mi&&i.push({ctrl:n}),this.cn(n.cc,i))}},ln:function(t){this.Ve();var s,e,n,h,r=this.Le(t),a=[];if(r&&r.cc){for(this.cn(r.cc,a),e=0,n=a.length;e<n;++e)(h=a[e].ctrl)&&((s=new vn(this,h.k==i.T)).dn("Preload "+h.n),s.pn(!0),s.loadResource(h.mi),a[e].player=s);this.fe=a,this.le=t}},Ve:function(){var t,i,s=this.fe;for(t=0,i=s.length;t<i;t++)s[t].player.cleanup();this.fe=[],this.le=-1},vn:function(t){var i,s,e,n=this.fe;for(i=0,s=n.length;i<s;++i)if(t.ctrl&&n[i].ctrl==t.ctrl)return e=n[i].player,n.splice(i,1),e.pn(!1),e;return null},showSlideAt:function(t,i){return this.showSlide(t-1,i)},showSlide:function(i,s){var e,n,h=typeof i;if("number"===h?i=this.Le(i):"string"===h&&(i=this.Qe(i)),!i)return this.ended||this.slideIndex!==this.slideCount()-1||this.end(),!1;if(this.ze&&this.ze.length){for(var r=0,a=this.ze.length;r<a;++r)this.showFeedbackById(this.ze[r]);delete this.ze}else this.hideAllFeedbacks();if(!this.ended&&this.slide){var o=this.re.time()-this.slide.ks.st>=this.slide.ks.d;(this.slideIndex!=i.index&&o&&!this.re.we||this.gs.slides[this.slideIndex])&&t(this.ui).trigger("ap-slideCompleted",[this.slide.ks.i,!0])}e=os(e=(e="object"==typeof(s=s||{})?s.slideTime:s)||0,0,i.d),void 0!==s.transition?s.transition!=he.TransitionType.NONE&&(n=[s.transition,s.duration||0,s.direction||0]):e||(n=i.ts),this.transition&&(this.transition.remove(),this.transition.seek(this.transition.totalDuration()),this.transition=null),this.hn(),this.slide&&this.slide.cleanup();var u=this.layoutIndex<0?0:this.layoutIndex;this.ui.setSlideSize(this.ks.l[u][0],i.h[u]),this.prevSlide=this.slide,this.slideIndex=i.index,this.mn=void 0==this.mn?this.slideIndex:Bi(this.mn,this.slideIndex),this.bn=void 0==this.bn?this.wn(this.slideIndex,e):Bi(this.bn,this.wn(this.slideIndex,e)),this.gn=!1,this.le!=this.slideIndex&&this.Ve(),this.slide=new Pn(this,i),this.Ve(),this.yn(),this.un(),this.sn(!!this.slide.ks.w),this.re.addChild(this.slide.re);var c=this,f=new rh(function(){void 0!==i.a&&1!=i.a&&"Demo"!=c.playMode()||c.isReviewingMode()?(c.gn=!0,c.pause(!0),c.isReviewingMode()&&c.slideIndex===c.slideCount()-1&&c.pauseAll()):(t(c.ui).trigger("ap-slideCompleted",[c.slide.ks.i,!0]),c.slideIndex===c.slideCount()-1?(c.pause(!0),c.end()):c.nextSlide())},{startTime:this.slide.re.startTime()+(i.d||0)});if(this.slide.vs(f),this.re.addChild(f),!(n&&n[1]>0)||this.allPaused()&&this.ended||(this.transition=he.createTransition.apply(he,[this,this.slide,this.prevSlide].concat(n)),this.transition.addChild(new rh(function(){var t=c.transition;c.un(),c.hn(he.TransitionMinDuration-t.duration()),setTimeout(function(){t&&(t.remove(),c.transition===t&&(c.transition=null))},0)},{startTime:this.transition.duration(),duration:0})),this.transition.startTime(this.slide.re.startTime()+e),this.re.addChild(this.transition),this.transition.setup()),this.re.time()!==i.st+e){if(this.topSlide||this.bottomSlide)for(var l,d=this.timeline.firstChild;d;)l=d.next,d.slide!==c.topSlide&&d.slide!==c.bottomSlide||d.kn||(d.remove(),d.seek(d.totalDuration())),d=l;var p=this.paused();this.re.seek(i.st+e),p&&this.pause(!1)}else this.slide.re.update(0,!0),this.transition&&this.transition.update(0,!0),this.pause(!1);if(this.he.add(i),this.ended||(this.slide.savedData(!0),this.gs.index=this.slideIndex,this.gs.ts=e,this.lms&&(this.lms.setBookmark(ls(i.n),ls(i.de),this.slideIndex),this.lms.storeSuspendData(this.gs,!0))),this.vars.notifyObservers("apTakenSlides"),this.vars.notifyObservers("apQuizPassed"),this.vars.notifyObservers("apQuizPassedBool"),this.vars.notifyObservers("apRemainingTime"),this.vars.notifyObservers("apRemainingTimeMs"),this.vars.notifyObservers("apCurrentSlideIndex"),this.vars.notifyObservers("apCurrentSlideLabel"),this.vars.notifyObservers("apProgress"),t(this.ui).trigger("ap-progress",[this.slideIndex,this.slideId(this.slideIndex),this.re.time()]),this.prevSlide&&t(this.prevSlide).triggerHandler("ap-unload"),this.slide._n.length&&this.container){var v=this.container.getBoundingClientRect(),m=(v.left+v.right)/2,b=(v.top+v.bottom)/2;m>=0&&m<=window.innerWidth&&b>=0&&b<=window.innerHeight&&setTimeout(function(){c.container.focus({preventScroll:!0})},0)}return t(this.slide).triggerHandler("ap-load"),this.transition||this.hn(he.TransitionMinDuration),this.Me(i)?this.Ie(!1):this.Ie(!0),!0},Oe:function(){if(he.mathJaxAPIState==Jt&&this.me==Kt){this.me=qt;var t=this,i=function(i){var e,n;if(i.cc)for(e=0,n=i.cc.length;e<n;++e)s.call(null,i,i.cc[e]);MathJax.Hub.Queue(function(){i.Ce=!0,t._s()})},s=function(t,i){var n,h,r;if(i.s)for(n=0,h=i.s.length;n<h;++n)(r=i.s[n]).m&&r.t&&r.t.length>0&&e.call(null,t,i,r);if(i.cc)for(n=0,h=i.cc.length;n<h;++n)s.call(null,t,i.cc[n])},e=function(i,s,e){var n=e.t[0],h=n+(e.t[1]||"");if(!t.be[h]){t.be[h]=!0;var r=Zi.createElement("div"),a=r.style;e.t[1]&&(a.cssText=e.t[1]),a.position="absolute",a.top=0,a.left=0,a.visibility="hidden",r.innerHTML=n,Zi.body.appendChild(r),MathJax.Hub.Queue(["Typeset",MathJax.Hub,r]),MathJax.Hub.Queue(function(){t.be[h]=r.innerHTML,Zi.body.removeChild(r)})}MathJax.Hub.Queue(function(){if(e.t[0]=t.be[h],t.slide&&t.slide.ks==i){var r=t.object(s.n);r&&r.us.id()==e.i&&(rs.innerHTML=n,r.html()==rs.innerHTML&&r.html(t.be[h]))}})};if(this.ks.pcs&&(this.ks.pcs[0]&&i.call(null,this.ks.pcs[0]),this.ks.pcs[1]&&i.call(null,this.ks.pcs[1])),this.ks.feedbacks){this.ks.feedbacks.length;for(var n=0;n<this.ks.feedbacks.length;n++)i.call(null,this.ks.feedbacks[n])}var h,r=this.ks.slides;for(n=0,h=r.length;n<h;++n)i.call(null,r[n]);t=this;MathJax.Hub.Queue(function(){t.me=Jt,t._s()})}},Xe:function(){var i,s,e,n=this.ks.slides||[],h=this.ks.pools||[],r=[];this.Tn=r;var a,o=0,u={},c={},f=Qt[this.options.playMode];for(s=0;s<n.length;++s){if(void 0===(i=n[s]).m||(i.m&f)===f)if(i.rd)(d=h[i.lp])&&d.length>0&&(c[i.lp]||(c[i.lp]=0),c[i.lp]++)}for(s=0;s<n.length;++s)if(void 0===(i=n[s]).m||(i.m&f)===f){a=i.i;var l=!0;if(i.rd){var d,p=i.lp;if((d=h[p])&&d.length>0)if(this.gs.randomMap&&void 0!==this.gs.randomMap[i.i]){v=i.i;this.ks.slides[s]=i=t.extend(!0,{},d[this.gs.randomMap[i.i]]),a=i.i,i.i=v,i.thumbId=a}else{u[p]||(u[p]=cs(d.length,c[p]));var v=i.i;this.ks.slides[s]=i=t.extend(!0,{},d[u[p][0]]),a=i.i,i.i=v,i.thumbId=a,this.gs.randomMap[i.i]=u[p][0],u[p].splice(0,1)}else l=!1}i.index=s,i.st=o,o+=i.d,r.push({id:i.i,duration:i.d,title:i.n,ti:a,thumb:l})}else n.splice(s,1),--s;if(this.ks.pcs&&(this.ks.pcs[0]&&(this.ks.pcs[0].index=n.length),this.ks.pcs[1]&&(this.ks.pcs[1].index=n.length+1)),this.ks.feedbacks){var m=n.length+2;for(s=0,e=this.ks.feedbacks.length;s<e;++s)this.ks.feedbacks[s].index=m,++m}},xn:function(){var i=this.ui,s=this,e=this.ks,n=s.ks.l;if(e.options||(e.options={}),e.params||(e.params={}),this.options.playMode||(this.options.playMode="Tutorial"),e.options.playMode=this.options.playMode,i&&i.create){var h=e.options;if(h.language=e.language,h.textDir=e.textDir,h.responsive=e.responsive,h.projectName=e.projectName,h.authorName=e.author,h.authorDesc=e.authorDescription,h.authorImage=e.authorImage,h.companyLogo=e.companyLogo,h.playerIcons=e.playerIcons,h.playerLayouts=e.playerLayouts,h.playbackRates=e.playbackRates,e.mcc){var r=e.mcc.d;h.multipleLanCCs=r||[],h.defautlLanguageCCIndex=e.mcc.i||0}n&&n.length>0&&(h.slideWidth=n[0][0],h.slideHeight=n[0][1]);var a={},o=0;switch(e.options.playMode){case"Demonstration":o=0;break;case"Tutorial":o=1;break;case"Practice":o=2;break;case"Test":o=3}for(var u in e.params)a[u]=e.params[u][o];t("#"+this.containerId).attr("data-mode",o+1),0==a.SideBarPos&&(a.ShowSidebarBtn=!1),0==a.TocStyle&&(a.ShowTocBtn=!1),e.ar&&0!=e.ar.length||(a.ShowResourcesBtn=!1),e.av&&e.av.length||(a.ShowAuthorVideo=!1),pe.canChangePlaybackRate()||(a.ShowSpeedBtn=!1),pe.canChangeVolume()||(a.ShowVolumeBar=!1);var c,f=!1;if(e&&e.slides)for(var l=e.slides,d=0,p=l.length;d<p;++d){var v=l[d];if(v&&v.ca&&v.ca.n&&v.ca.n.length){f=!0;break}}f||(a.ShowCCBtn=!1),this.Sn=a.Navigation,i.create("#"+this.containerId,e.toc,this.Tn||[],e.ar,a,h),this.Tn&&delete this.Tn,(c=t(i)).trigger("ap-speed",[1]),c.trigger("ap-mute",[this.muted()]),c.trigger("ap-volume",[this.muted()?0:100*this.volume()]),c.trigger("ap-cc",[this.closedCaptionVisible()]),c.trigger("ap-toc",[this.tocVisible()]),c.trigger("ap-sidebar",[this.sidebarVisible()]),c.trigger("ap-resources",[!0]),c.trigger("ap-tool-multiple-language-cc",[this.closedCaptionLanguageIndex()]),this.showToolbar(a.ShowToolbar),a.ShowAuthorVideo&&(s.Ge=[],t(".ap-presenter-video",t("#"+this.containerId)).each(function(t){var i=new gn(s);i.appendTo(this),s.Ge.push(i)}))}if(t(".ap-canvas",s.container).on("dblclick",function(t){var i=window.getSelection&&getSelection();i&&i.removeAllRanges&&i.removeAllRanges()}),s.container.hasAttribute("tabindex")||(s.container.tabIndex=-1),t(s.container).on("contextmenu",function(t){var i=window.getSelection&&getSelection();i&&i.toString&&i.toString()||t.preventDefault()}),"Demo"!==this.options.playMode&&(t(".ap-canvas",s.container).on("mousedown",function(t){s.En(t)}),t(s.container).on("keydown keyup",function(t){s.Ss(t)})),(c=t(this.ui)).on("ui:ap-layout",function(){as("Enter ui:ap-layout");var t,e,h,r=i.getMaxContentSize().width,a=0,o=!1;if(n)for(t=0;t<n.length;++t)if(r<=n[t][0]){a=t,e=n[t][0],h=n[t][1];break}if(a!==s.layoutIndex&&(as("Change layout from "+s.layoutIndex+" to "+a),s.layoutIndex=a,o=!0,s.slide&&(h=s.slide.ks.h[a]),i.setSlideSize(e,h)),o){if(s.slide&&s.slide.onLayoutSwitched(),s.prevSlide&&s.prevSlide.onLayoutSwitched(),s.topSlide&&s.topSlide.onLayoutSwitched(),s.bottomSlide&&s.bottomSlide.onLayoutSwitched(),s.Ze)for(t=0;t<s.Ze.length;++t){(u=s.Ze[t])&&u.onLayoutSwitched()}s.options.onLayoutSwitched&&s.options.onLayoutSwitched.call(s)}else if(s.slide&&s.slide.Mn(),s.prevSlide&&s.prevSlide.Mn(),s.topSlide&&s.topSlide.Mn(),s.bottomSlide&&s.bottomSlide.Mn(),s.Ze)for(t=0;t<s.Ze.length;++t){var u;(u=s.Ze[t])&&u.Mn()}as("Exit ui:ap-layout")}),c.on("ui:ap-showSlide",function(t,i){s.canNavigateTo(s.je(i).index,0)&&s.showSlideById(i)}),c.on("ui:ap-restart",function(){s.restart()}),c.on("ui:ap-first",function(){s.canNavigateTo(0,0)&&s.firstSlide()}),c.on("ui:ap-last",function(){if(s.slideIndex<s.slideCount()-1){if(!s.canNavigateTo(s.slideCount()-1,0))return;s.lastSlide()}}),c.on("ui:ap-next",function(){if(s.slideIndex<s.slideCount()-1){if(!s.canNavigateTo(s.slideIndex+1,0))return;s.nextSlide()}}),c.on("ui:ap-previous",function(){if(s.slideIndex>0){if(!s.canNavigateTo(s.slideIndex-1,0))return;s.previousSlide()}}),c.on("ui:ap-pause",function(){s.pauseAll(!s.allPaused())}),c.on("ui:ap-speed",function(t,i){s.speed(i)}),c.on("ui:ap-progress",function(t,i){var e=s.Ue(i);if(e){if(!s.canNavigateTo(e.slideIndex,e.slideTime))return;s.showSlide(e.slideIndex,e.slideTime)}}),c.on("ui:ap-cc",function(){s.showClosedCaption(!s.closedCaptionVisible())}),c.on("ui:ap-toc",function(){s.showToc(!s.tocVisible())}),c.on("ui:ap-sidebar",function(){s.showSidebar(!s.sidebarVisible())}),c.on("ui:ap-expand-sidebar",function(t,i){s.Cn(i)}),c.on("ui:ap-sound",function(){s.Pn?s.In():s.muted(!s.muted())}),c.on("ui:ap-volume",function(t,i){s.In(),s.volume(i/100)}),c.on("ui:ap-about",function(){s.showAbout()}),c.on("ui:ap-resources",function(){s.showResources(!s.resourcesVisible())}),c.on("ui:ap-exit",function(){s.destroy(),window.close()}),c.on("ui:ap-multiple-language-cc",function(t,i){s.closedCaptionLanguageIndex(i)}),c.on("ui:ap-lesson-resume",function(){s.pauseAll(!1)}),c.on("ui:ap-lesson-reset",function(){s.restart()}),n&&n.length>0&&this.ks.responsive?this.setMaxContentWidth(n[n.length-1][0]):this.layout(),this.started=!0,e.e&&e.e.l&&Ie(this,e.e.l,this.options.playMode),this.ke.Gs){var m=he.browser;(m.ie||m.edge)&&"file:"==window.location.protocol&&i.showMsg(i.Ps.text("YouTubeIEError"),!0)}this.Fe=!0},Rn:function(t){var i=this.ks.av;if(this.Ge&&i&&i.length)for(var s=0,e=this.Ge.length;s<e;++s)for(var n=this.Ge[s],h=0,r=i.length;h<r;++h){var a=i[h],o=a[4]>0?a[3]/a[4]:0;0==h&&(a[1]>0&&t.addChild(new ah(n,"display",{startTime:0,duration:0,tweenParams:["none","none"],tweenType:jt.zi})),n.Dn.An(a[5]||a[2]),n.Dn.loadResource(a[0])),t.addChild(new ah(n,"authorVideoRatio",{startTime:a[1],duration:0,tweenParams:[o,o],tweenType:jt.zi})).addChild(new ah(n,"display",{startTime:a[1],duration:0,tweenParams:["none","block"],tweenType:jt.zi})),_e(t,n,a[0],a[1],a[2],a[5]),(!i[h+1]||i[h+1][1]>a[1]+a[2])&&t.addChild(new ah(n,"display",{startTime:a[1]+a[2],duration:0,tweenParams:["block","none"],tweenType:jt.zi}))}},Nn:function(){if(this.Ge)for(var t=0,i=this.Ge.length;t<i;++t)this.Ge[t].Mn()},In:function(){this.Pn&&(delete this.Pn,this.muted(!1),this.ke.Ws=!0,this.ke.qs(),t(this.container).off(".apUnmuteOnTap"),this.ks.options.showUnmuteMsg&&this.ui.hideUnmuteHintMsg())},start:function(i,s){this.Fe||this.xn();var e,n,h=this,r=this.ks.slides||[],a=this.ks.vars||[];for(e=0,n=a.length;e<n;++e){var o=a[e],u=o[0],c=o[1],f=o[2],l=o[3];this.vars.os(u,f),this.vars.ws(u,l),f==wi.NUMBER&&(c=Number(c)),this.gs.vars.hasOwnProperty(u)&&(c=this.gs.vars[u]),this.vars.set(u,c)}if(this.he.clear(),this.slide&&(this.slide.cleanup(),this.slide.remove(),this.slide=null),this.prevSlide&&(this.prevSlide.cleanup(),this.prevSlide.remove(),this.prevSlide=null),this.topSlide&&(this.topSlide.cleanup(),this.topSlide.remove(),this.topSlide=null),this.bottomSlide&&(this.bottomSlide.cleanup(),this.bottomSlide.remove(),this.bottomSlide=null),this.Ze){for(e=0;e<this.Ze.length;++e)this.Ze[e].cleanup(),this.Ze[e].remove();this.Ze.length=0}if(this.gs.fbs.length=0,this.re&&(this.re.remove(),this.re=null),this.timeline=new uh({paused:!0}),this.re=new fh,this.timeline.addChild(this.re),r.length){var d=r[r.length-1];this.re.addChild(new rh(ji,{startTime:d.st+d.d}))}this.On=0;var p,v,m,b=this.rn();for(e=0,n=r.length;e<n;++e)t(this.ui).trigger("ap-slideCompleted",[this.slideId(e),void 0!==b[e]&&b[e]]);if(void 0!==i&&(this.gs.index=i-1),void 0!==s&&(this.gs.ts=s),this.gs.index=this.gs.index||0,this.gs.ts=this.gs.ts||0,!pe.Fs||h.ke.Ws&&!h.ke.Gs||(h.muted(!0),h.Pn=!0,t(h.container).on("mouseup.apUnmuteOnTap",function(i){var s=!1,r=t(".ap-tool-sound",h.container);for(e=0,n=r.length;e<n;++e)if(r[e]===i.target){s=!0;break}s||h.In()}),h.ks.options.showUnmuteMsg&&h.ui.showUnmuteHintMsg()),this.ui.loadingUi.hide(),this.ks.pcs){var w=this.ks.pcs[0];w&&(w.isBottom=!0,this.bottomSlide=new Pn(this,w),this.Rn(this.bottomSlide.re),this.bottomSlide.re.startTime(0),this.re.addChild(this.bottomSlide.re)),(w=this.ks.pcs[1])&&w.cc&&w.cc.length&&(w.isTop=!0,this.topSlide=new Pn(this,w),this.topSlide.re.startTime(0),this.re.addChild(this.topSlide.re))}return this.lms&&this.lms.startLesson(),p=this.gs.index||0,v=this.gs.ts||0,m=this.gs.slides&&this.gs.slides.length>0,this.ye=0,this.Ln&&(clearTimeout(this.Ln),delete this.Ln),t(this).triggerHandler("ap-load"),this.showSlide(p,v),this.we=!1,t(this.ui).trigger("ap-pause",[!1]),this.gs.s=this.gs.s||1,this.speed(this.gs.s),this.timeline.paused(!1),he.pageVisible()||he.xs(this),m&&this.ks.showResumeLessonConfirmation&&setTimeout(function(){h.showResumeLessonConfirmation()},0),this},restart:function(t,i){void 0===t&&(t=1),void 0===i&&(i=0),this.gs.index=0,this.gs.ts=0,this.gs.slides=[],this.gs.elapsedTime=this.He||0,this.gs.vars={};var s,e,n=this.ks.slides;for(s=0,e=n.length;s<e;++s)n[s].hss=[];return this.lms&&this.lms.storeSuspendData(this.gs),this.ended=!1,this.pauseAll(!1),this.Fn=!1,this.mn=void 0,this.bn=void 0,this.start(t,i)},seek:function(t,i){return this.showSlide(t,i)},Ue:function(t){if(!isNaN(t)){var i,s,e,n=-1,h=0,r=this.ks.slides;for(s=0,e=r.length;s<e;++s){if(t<(i=r[s]).d){n=s,h=Bi(t,0);break}t-=i.d}return n<0&&e>0&&(h=r[n=e-1].d),{slideIndex:n,slideTime:h}}},wn:function(t,i){if(isNaN(i))return 0;var s,e,n,h=0,r=this.ks.slides;for(e=0,n=r.length;e<n;++e){if(s=r[e],t==e)return h+i;h+=s.d}},canNavigateTo:function(t,i){if(this.Sn==gi)return!1;if(this.Sn==yi){if(void 0==this.mn||this.mn<t)return!1;if(void 0==this.bn||this.bn<this.wn(t,i))return!1}return!0},time:function(t){if(!arguments.length)return this.re.time();var i=this.Ue(t);return!!i&&this.showSlide(i.slideIndex,i.slideTime)},slideTime:function(t){if(!arguments.length)return this.slide?this.re.time()-this.slide.re.startTime():0;var i=this.slideIndex||0;return i<0&&(i=0),this.showSlide(i,t)},duration:function(t){if(!arguments.length){var i=this.ks.slides,s=i[i.length-1];return s?s.st+s.d:0}if(t){var e=this.duration();e&&this.speed(e/t)}return this},speed:function(i){if(!arguments.length)return this.timeline.Un;var s=this.ks.playbackRates;if(s||(s=[.5,1,1.5,2]),s.indexOf(i)<0){for(var e=Number.MAX_VALUE,n=0,h=0,r=s.length;h<r;++h){var a=Li(s[h]-i);a<e&&(e=a,n=h)}i=s[n]}return pe.canChangePlaybackRate()?(this.gs.s=i,this.timeline.speed(i),t(this.ui).trigger("ap-speed",[i]),this.ke.playbackRate(i),this.vars.notifyObservers("apSpeed"),this):(as("This device doesn't support changing speed"),this)},pauseAll:function(i){return arguments.length||(i=!0),i=!!i,this.we==i?this:(this.we=i,i?(this.ke.Js(!0),this.timeline.paused(!0)):(Hn.updateTime(),0==this.ye&&(this.ke.Js(!1),this.timeline.paused(!1))),t(this.ui).trigger("ap-pause",[i]),this)},allPaused:function(){return this.we},paused:function(){return this.re.paused()},pause:function(t){return arguments.length||(t=!0),!t&&this.gn?this:(this.re.paused(t),this.vars.notifyObservers("apPause"),this.vars.notifyObservers("apResume"),this)},end:function(t){if(this.ended)return as("Prez.end() is called when it's already ended"),this;if(this.hideAllFeedbacks(),t){this.ui.showMsg(this.ui.Ps.text("MaxPrezTimeReached"),!0);for(var s,e,n,h,r,a=this.je(),o=a.length,u=Qt[this.options.playMode];--o>=0;)if(e=a[o].cc)for(n=0,h=e.length;n<h;++n)if(e[n].k===i.F){(void 0===(r=e[n].m)||r&u)&&(s=a[o]),o=-1;break}s&&this.showSlide(s,1)}this.ended=!0,this.pauseAll(!0),this.vars.notifyObservers("apRemainingTime"),this.vars.notifyObservers("apRemainingTimeMs"),this.vars.notifyObservers("apElapsedTime"),this.vars.notifyObservers("apElapsedTimeMs"),this.lms&&this.lms.endLesson(t);var c=this.ks.options;return"Test"!==c.playMode&&"Practice"!==c.playMode&&"Tutorial"!==c.playMode||c.reportMethod==Ft||this.sendReport(),this},mute:function(t){return arguments.length||(t=!0),this.muted(t)},muted:function(i){var s=this.ke;return arguments.length?(i=!!i,s.muted(i),t(this.ui).trigger("ap-volume",[i?0:100*s.volume()]),t(this.ui).trigger("ap-mute",[s.muted()]),this.vars.notifyObservers("apVolume"),this.vars.notifyObservers("apMute"),this):s.muted()},volume:function(i){var s=this.ke;return arguments.length?(i=os(i,0,1),s.muted(0==i),s.volume(i),t(this.ui).trigger("ap-volume",[100*s.volume()]),t(this.ui).trigger("ap-mute",[s.muted()]),this.vars.notifyObservers("apVolume"),this.vars.notifyObservers("apMute"),this):s.volume()},showAbout:function(){var t=this.ks,i={Name:this.name(),Author:this.author(),Copyright:this.copyright(),Homepage:this.homePage(),AppHomePage:t.appHomepage,Generator:t.generator+" "+t.v},s=this;return this.ui.showAbout(i,function(){s.pauseAll(!0)},function(){s.pauseAll(!1)}),this},showResumeLessonConfirmation:function(){return this.pauseAll(!0),this.ui.showLessonResume(),this},Re:function(){if(as("_increaseBufferingCounter: "+(this.ye+1)),0==this.ye){this.ke.Js(!0),this.timeline.paused(!0);var t=this.ui.loadingUi;this.Ln=setTimeout(function(){t.show(),t.setText("")},3e3)}this.ye++},Ae:function(){this.ye<=0?as("Invalid _decreaseBufferingCounter call"):(this.ye--,as("_decreaseBufferingCounter: "+this.ye),0==this.ye&&(this.Ln&&(clearTimeout(this.Ln),delete this.Ln),this.ui.loadingUi.hide(),this.we||(this.ke.Js(!1),this.timeline.paused(!1))))},isBuffering:function(){return this.ye>0},En:function(t){var i=Ji();if(this.Yn&&i-this.Yn<=he.DoubleClickMaxTime&&t.preventDefault(),this.Yn=i,!(Qs(t)||!this.ns()||this.Ze&&this.Ze.length)){var s,e,n,h,r,a,o,u=[this.slide,this.bottomSlide,this.topSlide],c=Zs.OUTSIDE,f=t.originalEvent||t;for(h=0,r=u.length;h<r;++h)if(s=u[h]){for(a=0,o=(e=s.Bn).length;a<o;++a)(n=e[a]).ns(!0,!0)&&n.submit(c,!1);for(a=0,o=(e=s._n).length;a<o;++a)(n=e[a]).ns(!0,!0)&&n.submit(c,f)}}},Ss:function(t){if(Js.hasKeydown(t.which)===("keydown"===t.type)){var i=Js.combinedCode(t),s=t.target.nodeName.toLowerCase(),e="textarea"===s||"input"===s,n=this.slide&&this.slide._n.length||this.bottomSlide&&this.bottomSlide._n.length||this.topSlide&&this.topSlide._n.length;if(!this.ns()||e||this.Ze&&this.Ze.length)return Js.shouldPreventDefault(i,e,n)&&Js.preventDefault(t),void t.stopPropagation();var h,r,a,o,u,c,f,l,d=!1,p=!1,v=[this.slide,this.bottomSlide,this.topSlide],m=t.originalEvent||t;for(o=0,u=v.length;o<u;++o)if(h=v[o])for(c=0,f=(a=h._n).length;c<f;++c)(r=a[c]).ns(!0,!0)&&((l=r.Hn(i,!0)).result===At.xi&&(d=!0,r.submit(i,m)),l.result!==At._i&&(p=!0));if(!d)for(o=0,u=v.length;o<u;++o)if(h=v[o]){for(c=0,f=(a=h.Bn).length;c<f;++c)(r=a[c]).ns(!0,!0)&&r.submit(i,!0);for(c=0,f=(a=h._n).length;c<f;++c)(r=a[c]).ns(!0,!0)&&r.submit(i,m)}(p||Js.shouldPreventDefault(i,e,n))&&Js.preventDefault(t),t.stopPropagation()}else t.stopPropagation()},submit:function(){return this.ended?this:(this.slide&&this.slide.submit(),this.bottomSlide&&this.bottomSlide.submit(),this.topSlide&&this.topSlide.submit(),this)},clear:function(t,i){return this.ended&&!i?this:(this.slide&&this.slide.clear(t,i),this.bottomSlide&&this.bottomSlide.clear(t,i),this.topSlide&&this.topSlide.clear(t,i),this)},zn:function(t,i){var s,e,n,h=t?t.length:0;for(s=0;s<h;++s){if((n=t[s]).i==i)return n;if(n.cc&&(e=this.zn(n.cc,i)))return e}return null},correctResponses:function(e,n){var h,a,o,u,c,f,l,d,p,v,m;switch(n.k){case i.C:for(h=[],o=0,u=(c=n.e.v||[]).length;o<u;++o)n.t==s.V?h.push(Zs.name(c[o],this.ui.Ps)):h.push(Js.name(c[o]));break;case i.S:for(h=[],o=0,u=(c=n.e.v||[]).length;o<u;++o)h.push(c[o]);break;case i.I:var b;for(h=[],o=0,u=(c=n.e.v||[]).length;o<u;++o)(b=this.zn(e.cc,c[o]))&&h.push(b.r);break;case i.L:switch(f=n.cc||[],n.t){case s.nt:case s.it:case s.et:var w;for(h=[],a=[],o=0,u=(c=n.e.v||[]).length;o<u;++o)(w=this.zn(f,c[o]))&&a.push(w.r);h.push(a);break;case s.rt:for(h=[],a=[],o=0,u=f.length;o<u;++o)a.push(f[o].r);h.push(a);break;case s.ht:for(h=[],o=0,u=f.length;o<u;++o)if(f[o].k==i.S)if(l=(c=f[o].e.v||[]).length,h.length>0)for(v=h,h=[],p=0;p<v.length;++p)for(d=0;d<l;++d)(m=t.extend({},v[p]))[f[o].r]=c[d],h.push(m);else for(d=0;d<l;++d)(m={})[f[o].r]=c[d],h.push(m);break;case s.ot:var g,y,k,_,T;for(h=[],a={},k={},o=0,u=f.length;o<u;++o)if(f[o].f&r)for(l=(c=(y=f[o]).e.v||[]).length,d=0;d<l;++d)(g=this.zn(f,c[d]))&&(k[g.r]||(k[g.r]=[]),k[g.r].push(y.r));for(_ in k)if(l=(T=k[_]).length,h.length>0)for(v=h,h=[],p=0;p<v.length;++p)for(d=0;d<l;++d)(m=t.extend({},v[p]))[_]=T[d],h.push(m);else for(d=0;d<l;++d)(m={})[_]=T[d],h.push(m);break;case s.ut:h=[]}break;case i.B:for(h=[],o=0,u=(f=n.cc||[]).length;o<u;++o)if(f[o].k==i.C&&f[o].t==s.B)if(l=(c=f[o].e.v||[]).length,h.length>0)for(v=h,h=[],p=0;p<v.length;++p)for(d=0;d<l;++d)(m=t.extend({},v[p]))[f[o].r]=c[d],h.push(m);else for(d=0;d<l;++d)(m={})[f[o].r]=c[d],h.push(m);break;case i.Y:h=[];var x=n.e.v||[];for(o=0,u=x.length;o<u;++o)if(l=(c=x[o].v||[]).length,h.length>0)for(v=h,h=[],p=0;p<v.length;++p)for(d=0;d<l;++d)(m=t.extend({},v[p]))[x[o].r]=c[d],h.push(m);else for(d=0;d<l;++d)(m={})[x[o].r]=c[d],h.push(m)}return h},learnerResponse:function(t,e,n){var h,r,a,o,u,c,f;switch(e.k){case i.C:h=qs.name(n.v,this.ui.Ps);break;case i.S:h=n.v;break;case i.I:h="",(c=this.zn(t.cc,n.v))&&(h=c.r);break;case i.L:switch(a=e.cc,e.t){case s.nt:case s.it:case s.et:case s.rt:for(h=[],o=0,u=(r=n.v).length;o<u;++o)(c=this.zn(a,r[o]))&&h.push(c.r);break;case s.ht:h={},r=n.v;for(f in r)(c=this.zn(a,f))&&(h[c.r]=r[f]);break;case s.ot:var l,d;h={},r=n.v;for(f in r)if(c=this.zn(a,f))for(o=0,u=(l=r[f]).length;o<u;++o)(d=this.zn(a,l[o]))&&(h[d.r]=c.r);break;case s.ut:var p,v=function(t,s){var e,n,h,r=-1,a=!0;for(n=0,h=t.length;n<h;++n)if(t[n].k==i.O){if(a?(a=!1,r++,e=0):e++,s==t[n].i)return{row:r,col:e}}else a=!0};for(h={},o=0,u=(r=n.v).length;o<u;++o)(p=v(a,r[o]))&&(1==u?h[e.r]=parseInt(p.col+1):h[e.r+"_"+p.row]=parseInt(p.col+1))}break;case i.B:a=e.cc,h=[],r=n.v;for(f in r)(c=this.zn(a,f))&&c.r?h[c.r]=r[f]:h[e.r]?h[e.r]+=","+r[f]:h[e.r]=r[f];break;case i.Y:h={},r=n.v;var m,b=(e.e||{}).v||[];for(m in r)(c=b[m])&&(h[c.r]=r[m])}return h},Xn:function(t){if(!t)return 0;var e,n,h,r=0;for(e=0,n=t.length||0;e<n;++e)switch((h=t[e]).k){case i.S:case i.C:case i.I:case i.B:h.e.f&Mt||r++;break;case i.L:switch(h.t){case s.nt:case s.it:case s.et:case s.ht:case s.rt:case s.ot:case s.ut:h.e.f&Mt||r++;break;default:r+=this.Xn(h.cc)}}return r},interactionCount:function(){if(void 0!==this.Gn)return this.Gn;var t,i,s,e=this.ks.slides,n=0;for(i=0,s=e.length;i<s;++i)t=e[i],n+=this.Xn(t.cc);return this.Gn=n,n},takenInteractionCount:function(t){var i,s,e,n,h,r=this.gs.slides,a=0;for(s=0,e=r.length;s<e;++s)if(i=r[s])for(n in i)(h=i[n])&&!h.n&&void 0!==h.r&&h.r!=At._i&&(void 0===t?a++:t==h.r&&a++);return a},takenSlideCount:function(){var t,i,s=this.gs.slides,e=0;for(t=0,i=s.length;t<i;++t)s[t]&&e++;return e},score:function(){var t,i,s,e,n,h=this.gs.slides,r=0;for(i=0,s=h.length;i<s;++i)if(t=h[i])for(e in t)(n=t[e])&&(r+=n.p||0,r-=n.sp||0);return ds(r,10)},scoreSubtract:function(){var t,i,s,e,n,h=this.gs.slides,r=0;for(i=0,s=h.length;i<s;++i)if(t=h[i])for(e in t)(n=t[e])&&(r+=n.sp||0);return r},maxControlScore:function(t){var e,n,h,a,o,u,c,f,l=0,d=t.e.f&xt&&!(t.e.f&Mt),p=t.e.f&Et;if(!d){for(n=t.cc?t.cc.length:0,e=0;e<n;++e)l+=this.maxControlScore(t.cc[e]);return l}if(!p)return t.e.m||0;switch(t.k){case i.C:case i.S:case i.I:h=t.e.m||[0],l=Bi.apply(null,h);break;case i.L:switch(n=(a=t.cc||[]).length,t.t){case s.it:case s.nt:if(n>0)for(l=a[0].e.m||0,e=1;e<n;++e)o=a[e],l=Bi(l,o.e.m||0);break;case s.et:for(u=t.e.v||[],e=0;e<n;++e)o=a[e],u.indexOf(o.i)<0||(l+=o.e.m||0);break;case s.ht:for(e=0;e<n;++e)(o=a[e]).k===i.S&&(o.e.f&Et?(h=o.e.m||[0],l+=Bi.apply(null,h)):l+=o.e.m||0);break;case s.ot:var v,m,b,w,g=[],y=[];for(e=0;e<n;++e)if((o=a[e]).f&r&&(b=o.e.v,w=o.e.m,b&&w&&b.length==w.length))for(c=0,f=b.length;c<f;++c)v=b[c],(m=g.indexOf(v))<0?(g.push(v),y.push(w[c])):y[m]<w[c]&&(y[m]=w[c]);for(e=0,n=y.length;e<n;++e)l+=y[e]}break;case i.B:var k=(T=t.e||{}).v||[],_=T.h;for(n=(a=t.cc||[]).length,_||(l=void 0),e=0;e<n;++e)(o=a[e]).k===i.C&&k.indexOf(o.i)>=0&&(_?l+=o.e.m||0:l=void 0===l?o.e.m||0:Bi(l,o.e.m||0));void 0===l&&(l=0);break;case i.Y:var T,x=(T=t.e||{}).v||[];for(n=x.length,e=0;e<n;++e){l+=x[e].m||0}}return l},maxScore:function(){if(void 0!==this.Vn)return this.Vn;var t,i,s,e,n,h,r=this.ks.slides;for(h=0,i=0,s=r.length;i<s;++i)for(e=0,n=(t=r[i].cc||[]).length;e<n;++e)h+=this.maxControlScore(t[e]);return this.Vn=h,h},result:function(){var t=!0,i=this.ks.options;switch(i.passCondition){case Dt:t=this.percentageScore()>=i.passConditionValue;break;case Nt:t=this.score()>=i.passConditionValue;break;case Ot:t=this.takenInteractionCount(At.xi)>=i.passConditionValue;break;case Lt:t=this.takenSlideCount()>=i.passConditionValue}return t},elapsedTime:function(){return this.ended||(this.$n=(this.He||0)+this.timeline.totalTime()),this.$n||0},remainingTime:function(){if(this.ended)return 0;var t=0,i=this.options.playMode;return(t="Tutorial"!==i&&"Practice"!==i&&"Test"!==i||!this.ks.options.testMaxTime?this.duration()-this.time():60*this.ks.options.testMaxTime*1e3-this.elapsedTime())<0?0:t},responseResultString:function(t){var i=this.ui.Ps;return t?t==At.xi?i.text("Correct"):t==At.Si?i.text("Incorrect"):t==At.Ei?i.text("Incomplete"):t==At.Ti?"":"Unknown":"Unknown"},requirements:function(){var t=this.ks.options,i=this.ui.Ps;switch(t.passCondition){case Dt:return i.text("RequirePercent",i.number(t.passConditionValue));case Nt:return i.text("RequirePoints",i.number(t.passConditionValue));case Ot:return i.text("RequireAnswers",i.number(t.passConditionValue));case Lt:return i.text("RequireSlidesViewed",i.number(t.passConditionValue))}return i.text("RequireNone")},interactionTypeName:function(t){var e=this.ui.Ps;switch(t.k){case i.C:return t.t==s.V?e.text("MouseClick"):t.t==s.j?e.text("KeyStroke"):t.t==s.B?e.text("HotSpot"):"Unknown";case i.S:return e.text("TextBox");case i.I:return e.text("DropCtrl");case i.L:switch(t.t){case s.nt:return e.text("TrueFalse");case s.it:return e.text("MultipleChoice");case s.et:return e.text("MultipleResponse");case s.rt:return e.text("Sequence");case s.ht:return e.text("FillMultipleBlank");case s.ot:return e.text("DragDrop");case s.ut:return e.text("Likert")}break;case i.Y:return e.text("FillBlankNew");case i.B:return e.text("HotSpot")}return"Unknown"},formatResponse:function(t,e,n,h){var r,a,o="";switch(n){case i.C:case i.S:o=t;break;case i.I:o=t+"[.]"+e;break;case i.L:switch(h){case s.nt:case s.it:case s.et:case s.rt:for(o="",r=0,a=t.length||0;r<a;++r)""!=o&&(o+="[,]"),o+=t[r];break;case s.ht:case s.ot:case s.ut:var u,c=[];o="";for(u in t)t.hasOwnProperty(u)&&c.push(u);for(c.sort(),r=0,a=c.length;r<a;++r)""!=o&&(o+="[,]"),o+=c[r]+"[.]"+t[c[r]]}break;case i.B:case i.Y:var f,l=[];o="";for(f in t)t.hasOwnProperty(f)&&l.push(f);for(l.sort(),r=0,a=l.length;r<a;++r)""!=o&&(o+="[,]"),o+=l[r]+"[.]"+t[l[r]]}return o},reportData:function(i,s){var e,n,h,r,a,o,u,c,f,l,d,p,v,m=t.cookie("userid")||"",b=this.ui.Ps,w={},g=this.ks;if(s){for(;""==m;)m=prompt(b.text("EnterUserID"),"");if(null===m)return null;t.cookie("userid",m)}for(w.prezName=g.projectName,w.prezDesc=g.description,w.date=(new Date).toUTCString(),w.userId=m,w.elapsedTime=Math.ceil(this.elapsedTime()/1e3),w.totalSlides=this.slideCount(),w.takenSlides=this.takenSlideCount(),w.totalInteractions=this.interactionCount(),w.takenInteractions=this.takenInteractionCount(),w.correctCount=this.takenInteractionCount(At.xi),w.score=this.score(),w.maxScore=this.maxScore(),w.percentage=w.maxScore&&w.score>0?Vi(100*w.score/w.maxScore):0,w.passed=this.result(),w.passCondition=g.options.passCondition,w.passValue=g.options.passConditionValue,w.interactions=[],l=0,p=(e=this.gs.slides).length;l<p;++l)if(n=e[l])for(h in n)if((r=n[h])&&r.r&&!r.n&&(a=g.slides[l],o=this.zn(a.cc,h))){for(f=this.learnerResponse(a,o,r),c=this.correctResponses(a,o),(u={}).type=this.interactionTypeName(o),u.slide=l,u.reportid=o.r,u.attempts=r.a||0,u.result=r.r,v=(r.p||0)-(r.sp||0),u.score=ds(v,10),u.maxScore=this.maxControlScore(o),u.learnerResponse=this.formatResponse(f,u.reportid,o.k,o.t),u.correctResponses=[],d=0;d<c.length;++d)u.correctResponses.push(this.formatResponse(c[d],u.reportid,o.k,o.t));w.interactions.push(u)}return void 0===i&&(i=Vt),i!=Gt?this.formatReportData(w,i):w},formatReportData:function(t,i){var s,e,n,h,r,a=t.interactions,o=a.length||0,u="\n",c="\t";this.ui.Ps;switch(i){case Yt:case Bt:case Xt:break;case Ht:for(r='<?xml version="1.0" encoding="UTF-8"?>\n',r+="<Content>\n",r+="\t<Report>\n",r+="\t\t<Name>"+fs(t.prezName)+"</Name>"+u,r+="\t\t<Description>"+fs(t.prezDesc,!0)+"</Description>"+u,r+="\t\t<Date>"+t.date+"</Date>"+u,r+="\t\t<UserID>"+t.userId+"</UserID>"+u,r+="\t\t<TotalTime>"+t.elapsedTime+"</TotalTime>"+u,r+="\t\t<SlideCount>"+t.totalSlides+"</SlideCount>"+u,r+="\t\t<TakenSlide>"+t.takenSlides+"</TakenSlide>"+u,r+="\t\t<TotalInteraction>"+t.totalInteractions+"</TotalInteraction>"+u,r+="\t\t<TakenInteraction>"+t.takenInteractions+"</TakenInteraction>"+u,r+="\t\t<Correct>"+t.correctCount+"</Correct>"+u,r+="\t\t<Score>"+t.score+"</Score>"+u,r+="\t\t<MaxScore>"+t.maxScore+"</MaxScore>"+u,r+="\t\t<PassCondition>"+t.passCondition+"</PassCondition>"+u,r+="\t\t<PassValue>"+t.passValue+"</PassValue>"+u,r+="\t\t<Percent>"+t.percentage+"</Percent>"+u,r+="\t\t<Result>"+(t.passed?"true":"false")+"</Result>"+u,r+="\t\t<Details>\n",s=0;s<o;++s){for(e=a[s],r+="\t\t\t<Interaction>\n",r+="\t\t\t\t<SlideIndex>"+(parseInt(e.slide)+1)+"</SlideIndex>"+u,r+="\t\t\t\t<ReportID>"+e.reportid+"</ReportID>"+u,r+="\t\t\t\t<Attempts>"+e.attempts+"</Attempts>"+u,r+="\t\t\t\t<Score>"+e.score+"</Score>"+u,r+="\t\t\t\t<MaxScore>"+e.maxScore+"</MaxScore>"+u,r+="\t\t\t\t<Result>"+this.responseResultString(e.result)+"</Result>"+u,r+="\t\t\t\t<Type>"+e.type+"</Type>"+u,r+="\t\t\t\t<LearnerResponse>"+fs(""+e.learnerResponse)+"</LearnerResponse>"+u,r+="\t\t\t\t<CorrectResponses>\n",n=0,h=e.correctResponses.length;n<h;++n)r+="\t\t\t\t\t<CorrectResponse>"+fs(""+e.correctResponses[n])+"</CorrectResponse>"+u;r+="\t\t\t\t</CorrectResponses>\n",r+="\t\t\t</Interaction>\n"}r+="\t\t</Details>\n",r+="\t</Report>\n",r+="</Content>\n";break;case zt:case Vt:var f,l={};for(l.Name=t.prezName,l.Description=t.prezDesc,l.Date=t.date,l.UserID=t.userId,l.TotalTime=t.elapsedTime,l.SlideCount=t.totalSlides,l.TakenSlide=t.takenSlides,l.TotalInteraction=t.totalInteractions,l.TakenInteraction=t.takenInteractions,l.Correct=t.correctCount,l.Score=t.score,l.MaxScore=t.maxScore,l.PassCondition=t.passCondition,l.PassValue=t.passValue,l.Percent=t.percentage,l.Result=t.passed,l.Details=[],s=0;s<o;++s)e=a[s],(f={}).SlideIndex=parseInt(e.slide)+1,f.ReportID=e.reportid,f.Attempts=e.attempts,f.Score=e.score,f.MaxScore=e.maxScore,f.Result=this.responseResultString(e.result),f.Type=e.type,f.LearnerResponse=e.learnerResponse,f.CorrectResponses=e.correctResponses,l.Details.push(f);r=i===zt?JSON.stringify(l,null,c):l}return r},detailedReportData:function(t){var i,s,e,n,h,r,a=this.reportData(Gt,!1).interactions,o=a.length||0,u=this.ui.Ps;for(i="<div class='ap-detailed-result'>",i+="<table width='100%' height='auto' border='1px' bordercolor='#808080' bordercolordark='#808080' bordercolorlight='#C0C0C0' cellspacing='0px' rules='all' frame='box' cellpadding='0px'><thead><tr>",i+="<th width='10%' align='center'>"+u.text("NoSign")+"</th>",i+="<th width='10%' align='center'>"+u.text("SlideIndex")+"</th>",i+="<th width='10%' align='center'>"+u.text("ID")+"</th>",i+="<th width='10%' align='center'>"+u.text("Attempts")+"</th>",i+="<th width='10%' align='center'>"+u.text("Score")+"</th>",i+="<th width='10%' align='center'>"+u.text("MaxScore")+"</th>",i+="<th width='10%' align='center'>"+u.text("Result")+"</th>",t?(i+="<th width='15%' align='center'>"+u.text("LearnerResponse")+"</th>",i+="<th width='15%' align='center'>"+u.text("CorrectResponses")+"</th>"):i+="<th width='30%' align='center'>"+u.text("LearnerResponse")+"</th>",i+="</tr></thead><tbody>",e=0;e<o;++e){if(n=a[e],i+="<tr>",i+="<td align='center'>"+u.number(e+1)+"</td>",i+="<td align='center'>"+u.number(parseInt(n.slide)+1)+"</td>",i+="<td align='center'>"+n.reportid+"</td>",i+="<td align='center'>"+u.number(n.attempts)+"</td>",i+="<td align='center'>"+u.number(n.score)+"</td>",i+="<td align='center'>"+u.number(n.maxScore)+"</td>",i+="<td align='center'>"+this.responseResultString(n.result)+"</td>",i+="<td align='center' class='ap-result-response' style='word-break:break-all'>"+fs(""+n.learnerResponse)+"</td>",t){for(s="",h=0,r=n.correctResponses.length;h<r;++h)""!=s&&(s+="<br/><br/>"),s+=fs(""+n.correctResponses[h]);i+="<td align='center' class='ap-result-response' style='word-break:break-all'>"+s+"</td>"}i+="</tr>"}return i+="</tbody></table>",i+="</div>"},sendReport:function(){var i=this.ks.options,s=this.reportData(i.reportFormat,!0),e=this.ui,n=e.Ps;if(null!==s)switch(i.reportMethod){case Ut:try{var h={type:"POST",url:i.reportAddress,data:"report="+encodeURIComponent(s),timeout:6e4,success:function(){e.showMsg(n.text("SuccessSendReport"),!0)},error:function(t,s,h){var r;h&&(h instanceof Error?r=h.name+": "+h.message:h.toString&&(r=h.toString())),r||(r=n.text("CouldnotSendReport")+i.reportAddress+(s?": "+s:"")),e.showMsg(r,!0)}};e.showMsg(n.text("SendingReport"),!0),t.ajax(h)}catch(t){var r;return r=t instanceof Error?t.name+": "+t.message:t.toString?t.toString():n.text("CouldnotSendReport")+i.reportAddress,e.showMsg(r,!0),!1}}},getResource:function(t){return this.resourceLocation+this.fileNamePrefix+"res_"+t},getImgResource:function(t){return this.resourceLocation+this.fileNamePrefix+"img_"+t},getThumbnailResource:function(t){return this.resourceLocation+this.fileNamePrefix+"thumb_"+t+".jpg"},showToolbar:function(t){return arguments.length||(t=!0),this.ui.showToolbar(t),this.vars.notifyObservers("apToolbarVisible"),this},toolbarVisible:function(){return this.ui.toolbarVisible()},showToc:function(i){return arguments.length||(i=!0),this.ui.showToc(i),t(this.ui).trigger("ap-toc",[i]),this.vars.notifyObservers("apTOCVisible"),this},tocVisible:function(){return this.ui.tocVisible()},showSidebar:function(i){if(arguments.length||(i=!0),this.ui.showSidebar(i),t(this.ui).trigger("ap-sidebar",[i]),this.Ge&&(!i||i&&!this.muted()))for(var s=0,e=this.Ge.length;s<e;++s)this.Ge[s].muted(!i);return i&&this.Nn(),this.vars.notifyObservers("apSidebarVisible"),this},sidebarVisible:function(){return this.ui.sidebarVisible()},Cn:function(t){t&&this.Nn()},showResources:function(i){return arguments.length||(i=!0),this.ui.showResources(i),t(this.ui).trigger("ap-resources",[i]),this},resourcesVisible:function(){return this.ui.resourcesVisible()},author:function(){return this.ks.author},homePage:function(){return this.ks.homepage},copyright:function(){return this.ks.copyright},name:function(){return this.ks.projectName},description:function(){return this.ks.description},currentSlideIndex:function(t){return arguments.length?this.showSlide(t-1):this.slideIndex+1},currentSlideLabel:function(){return this.slide&&this.slide.name()||""},percentageScore:function(){var t=this.score(),i=this.maxScore();return us(t,i)?100:i&&t>0?Vi(100*t/i):0},authorVideoView:function(t){var i=0==arguments.length?0:t;return this.Ge&&this.Ge.length>i?this.Ge[i]:null},playMode:function(){return this.options.playMode},registerTimer:function(t){return this.Wn?this.Wn.push(t):this.Wn=[t],this},unregisterTimer:function(t){var i=this.Wn.indexOf(t);return i>=0&&this.Wn.splice(i,1),this},tick:function(i){if(this.timeline&&!this.timeline.we){var s=this.timeline.jn,e=(i-s)*this.timeline.Un;if(this.Wn&&this.Wn.length){var n=this.timeline.Qn(e);this.timeline.Kn=n.totalTime;for(var h=0;h<this.Wn.length;++h)if(this.Wn[h].tick(i),this.timeline.jn!=s)return}this.timeline.update(e),this.vars.tick(i),t(this.ui).trigger("ap-progress",[this.slideIndex,this.slideId(this.slideIndex),this.re.time()]);var r=this.elapsedTime();if(!this.qn||i-this.qn>=300){this.qn=i,this.vars.notifyObservers("apElapsedTime"),this.vars.notifyObservers("apElapsedTimeMs"),this.vars.notifyObservers("apRemainingTime"),this.vars.notifyObservers("apRemainingTimeMs"),this.vars.notifyObservers("apProgress");var a=this.options.playMode;("Tutorial"===a||"Practice"===a||"Test"===a)&&this.ks.options.testMaxTime&&r>=60*this.ks.options.testMaxTime*1e3&&this.end(!0),this.slide&&this.slide.ks.w&&this.sn(!0);var o=Zi.activeElement,u=o==this.container||(!o||o==Zi.body)&&this.container&&this.container.parentElement==Zi.body||this.Ze&&this.Ze.length&&t.contains(t(".ap-slides",this.container)[0],o);if(u){var c=window.getSelection&&getSelection();c&&c.toString()&&(u=!1)}u&&r>=300&&this.Jn()}if(this.bn=void 0==this.bn?this.re.time():Bi(this.bn,this.re.time()),!this.ended){this.slide&&(this.gs.ts=this.re.time()-this.slide.ks.st),this.gs.elapsedTime=r;var f=this.vars.Cs;for(var l in f)this.vars.ws(l)&&(this.gs.vars[l]=this.vars.get(l));this.lms&&this.started&&!this.ended&&this.gs.ts-this.lms.getSuspendDataTS()>6e4&&this.lms.storeSuspendData(this.gs,!0),this.ks.mediaPreloading&&this.le<0&&!this.prevSlide&&this.gs.ts>1e3&&0==this.ye&&this.ln(this.slideIndex+1)}}},Jn:function(){var i=this.Ze&&this.Ze.length?".ap-feedback-slides":".ap-slides",s=t(i+' [tabindex]:not([tabindex="-1"])',t(this.container)).filter(":visible");if(s.length>0){(s=s.toArray()).sort(function(t,i){return t.tabIndex-i.tabIndex});var e=s[0].getBoundingClientRect();if(e.right>0&&e.bottom>0){var n=this.ui.stage()[0].getBoundingClientRect(),h=Math.min(e.right,n.right)-Math.max(e.left,n.left);(h>30||us(h,e.right-e.left))&&((h=Math.min(e.bottom,n.bottom)-Math.max(e.top,n.top))>30||us(h,e.bottom-e.top))&&s[0].focus({preventScroll:!0})}}},sn:function(i){if(i){var s,e,n,h="A"===this.ks.generator.charAt(0),r={position:"absolute",display:"block",zIndex:$t.Li},a=h?r:{position:"absolute",display:"block"},o=h?15:50,u="a";if(o+="px",u+="lt",(!this.Zn||!h&&this.Zn[0].childNodes.length<4)&&(this.Zn=t(h?"<img />":"<div><img /><img /><img /><img /></div>"),s="pointer",s+="Event",s+="s",this.Zn.css(s,"none")),n="da",n+="ta",n+=":i",n+="ma",n+="ge",n+="/p",n+="ng",n+=";b",n+="as",n+="e6",n+="4,",n+=this.ks.wmd,s="min",e="20",e+="0px",a[s+="Width"]=e,s="min",e="50",e+="px",a[s+="Height"]=e,h)this.Zn[0].src!==n&&(this.Zn[0].src=n),this.Zn[0][u]=this.ks.generator,r.top=r.right=o,r.left="auto";else{var c,f,l,d=this.Zn[0].childNodes;for(f=0,l=d.length;f<l;++f)(c=d[f]).src!==n&&(c.src=n),c[u]=this.ks.generator,0==f||3==f?(a.left=o,a.right="auto"):(a.left="auto",a.right=o),f<=1?(a.top=o,a.bottom="auto"):(a.top="auto",a.bottom=o),t(c).css(a);r.top=0,r.left=0,r.width="100%",r.height="100%"}this.Zn.css(r);var p=t(".ap-canvas",this.container);this.Zn[0].parentNode&&this.Zn[0].parentNode===p[0]||p.append(this.Zn)}else this.Zn&&this.Zn.hide()},prez:function(){return this},on:function(t,i){return Oe.prototype.on.call(this,t,i)},off:function(t,i){return Oe.prototype.off.call(this,t,i)},ns:function(t){return"Demo"!==this.options.playMode&&(t||!this.ye)&&(!this.we||this.ended)},cssUrl:function(){return void 0!==this.options.css?this.options.css:this.ks.options.css},highlightFocus:function(t){if(!arguments.length)return void 0!==this.options.highlightFocus?this.options.highlightFocus:this.ks.options.hilightFocus;this.options.highlightFocus=t},variable:function(t,i){return 1===arguments.length?this.vars.get(t):this.vars.set(t,i)},startTimeline:function(t,i){return typeof t===Ai&&(t=this.slide&&this.slide.timeline(t)),t?(t.remove(),t.th&&(t.th.remove(),t.th=null),t.started()&&t.totalTime()<t.totalDuration()&&t.pause(t.totalDuration()),t.startTime(this.timeline.totalTime()),i&&(t.th=new rh(function(){i.call(t)},{startTime:t.duration(),duration:0}),t.addChild(t.th)),this.timeline.addChild(t),t.setup(),t.play(0),t):null},pauseTimeline:function(t,i){return typeof t===Ai&&(t=this.slide&&this.slide.timeline(t)),t?(arguments.length<2&&(i=!0),i?t.paused(!0):t.started()?t.paused(!1):this.startTimeline(t),t):null},reviewCourse:function(){t(this.ui).trigger("ap-slideCompleted",[this.slide.ks.i,!0]),this.Fn=!0,this.end(),this.firstSlide(),this.pauseAll(!1)},isReviewingMode:function(){return!0===this.Fn},runAction:function(t,i,s){for(var e=null,n=0,h=this.ks.adActions.length;n<h;n++){var r=this.ks.adActions[n];if(r[0]===t){e=r[1];break}}if(e){n=0;for(var a=e.length;n<a;n++){var o=e[n],u=o[0],c=o[1],f=o[2],l=o[3];if(null!==l){var d=i[l];switch(u){case Rt.zt:case Rt.Xt:o[1]=d+1;break;case Rt.Gt:case Rt.Vt:case Rt.$t:case Rt.Wt:case Rt.jt:o[1]=d;break;case Rt.Qt:case Rt.Kt:case Rt.ri:case Rt.si:case Rt.ci:case Rt.ii:c[0]=d;break;case Rt.qt:case Rt.Jt:o[1]=d;break;case Rt.oi:case Rt.Zt:var p=this.ks;if(void 0!==p.ai)for(var v=0,m=p.ai.length;v<m;++v){var b=p.ai[v];b[1]===d&&(c[0]=b[0],c[1]=b[2])}break;case Rt.yt:c[0]=d[0],c[1]=d[1];break;case Rt.fi:case Rt.ei:case Rt.ni:case Rt.hi:o[1]=d;break;case Rt.li:var w=this.qe(d);c[0]=w.fbi;break;case Rt.di:w=this.qe(d);o[1]=w.fbi;break;case Rt.bi:c[0]=d;break;case Rt.wi:case Rt.gi:case Rt.yi:o[1]=d}}v=0;for(var g=f.length;v<g;v++){var y=f[v],k=y[3],_=y[4],T=_[0],x=i[T],S=_[1],E=i[S];switch(y[1]){case kt.gt:void 0!==T&&(k[1]=x),void 0!==S&&(k[0]=E);break;case kt.yt:x!=E[0]&&(k[0]=k[1]=0),k[1]=x,k[0]=E[1];break;case kt.kt:k[0]=E;break;case kt.I:var M=s.currentTarget&&s.currentTarget.slide&&s.currentTarget.slide.object(E);k[0]=M.id();break;case kt.Tt:var C=this.slide.object(x);k[1]=C.id(),k[0]=E;break;case kt.V:"left click"===x.toLowerCase()?k[0]=1:"left double-click"===x.toLowerCase()?k[0]=4:"right click"===x.toLowerCase()&&(k[0]=3);break;case kt._t:case kt.j:k[0]=x}}}var P=-1,I=(a=e.length,this.prez()),R=(n=0,function(){++P<a&&ie(e[P],I,s,P===a-1?null:R)});R()}},ih:function(){var t,i,s=this.sh;if(!s){for(s=[],i=0;i<this.ke.$s;++i)(t=new vn(this,!1)).eh=!1,t.pn(!0),t.synchronizeWithPrez(!1),s.push(t);this.sh=s}},yn:function(){this.ih();var t,i,s,e,n,h,r=this.sh,a=[],o=function(t,i){!function(t,i){var s,e,n,h,r,a,o,u,c;if(t&&t.l)for(s=0,e=t.l.length;s<e;++s)for(n=0,h=(u=t.l[s][1]).length;n<h;++n)if(((o=u[n])[0]==Rt.Zt||o[0]==Rt.oi)&&o[1][1]<Ri){for(c=!1,r=0,a=i.length;r<a;++r)if(i[r][0]==o[1][0]){c=!0;break}c||i.push([o[1][0],o[1][1]])}}(t.e,i);var s,e,n=t.cc;if(n)for(s=0,e=n.length;s<e;++s)o(n[s],i)};for(this.slide&&o(this.slide.ks,a),h=0,i=0,s=a.length;i<s;++i)for(e=h,n=r.length;e<n;++e)if(!(t=r[e]).eh){t.dn("Preload short audio.....: "+a[i][0]),t.An(a[i][1]),t.loadResource(a[i][0]),h=e+1;break}},$e:function(){var t,i,s=this.sh;if(s){for(t=0,i=s.length;t<i;++t)s[t].cleanup();delete this.sh}},nh:function(t,i,s,e,n){this.ih(),as("_playShortAudioResource: "+t);var h,r,a,o=this.sh;for(r=0,a=o.length;r<a;++r)if(!o[r].eh&&(h||(h=o[r]),o[r].hh==t)){h=o[r],as("_playShortAudioResource: Cached player found");break}if(h){var u=function(){as("_playShortAudioResource: Completed: "+t),h.eh=!1,h.rh("ended",u),n&&n()},c=function(){as("_playShortAudioResource: Error: "+t),h.eh=!1,h.rh("error",c),n&&n()};h.ah("ended",u),h.ah("error",c),h.eh=!0,h.hh!=t&&(h.dn("Play Audio Action: "+t),h.An(i),h.loadResource(t)),h.play()}else as("_playShortAudioResource: No available players")},oh:function(t,s,e,n,h){var r=this.bottomSlide,a=r.uh(function(t){return t.actionData===e});if(a)a.remove(),a.started()&&a.totalTime()<a.totalDuration()&&a.pause(a.totalDuration());else{if(r.fh||(r.fh=0),r.fh>=this.ke.Vs)return;var u=r.defaultCtrlData();u.k=i._,u.mi=t,u.md=s,u.f|=o;var c=r.createChild(u);++r.fh,(a=new fh).actionData=e,n&&(a.kn=!0),r.vs(a),_e(a,c,t,0,s+500,s),a.addChild(new rh(function(){setTimeout(function(){r.ps(a)},0),c.remove(),--r.fh,h&&h()},{startTime:a.duration(),duration:0}))}a.startTime(this.timeline.totalTime()),this.timeline.addChild(a),a.setup(),a.play(0)},ms:function(t,i,s,e,n){i<Ri?this.nh(t,i,s,e,n):this.oh(t,i,s,e,n)},lh:function(i,s,e,n,h,r){var a=Zi.createElement("canvas");ws(a,{width:2*e+2,height:2*e+2});var o=a.style;o.position="absolute",o.left=i-e-1+"px",o.top=s-e-1+"px",o.pointerEvents="none",o.zIndex=$t.Ni,t(".ap-slides",this.container)[0].appendChild(a);var u=this.bottomSlide,c=new fh,f=Qi({},De,{node:a,slide:u,dh:0,ph:n,vh:h,mh:e+1,bh:e+1,wh:e});c.kn=!0,u.vs(c),c.addChild(new ah(f,"ceProgress",{startTime:0,duration:r,tweenParams:[0,100]})).addChild(new rh(function(){setTimeout(function(){u.ps(c)},0),a.parentNode&&a.parentNode.removeChild(a)},{startTime:r})),c.startTime(this.timeline.totalTime()),this.timeline.addChild(c),c.setup(),c.play(0)}}),xe=Zi.createElementNS(Di,"svg"),Se=xe.createSVGMatrix(),Ee=xe.createSVGPoint();function Me(t,i,s){Ee.x=i,Ee.y=s;var e=Ee.matrixTransform(t);return{x:e.x,y:e.y}}var Ce=Ls({$init:function(t,i){this.gh=t,this.ks=i||[],this.yh=k,this.te=-1},useDefault:function(){var t,i,s=0;for(t=0,i=this.ks.length;t<i;++t)if(this.ks[t].d){s=t;break}return this.at(s)},is:function(t){var i=this.ks[this.te];return i&&i[typeof t===Ai?"n":"i"]===t},at:function(t){if(!arguments.length)return this.te;var i=this.ks[t];if(!i)return!1;this.te=t;var s=this.yh;void 0!==i.p&&(this.yh=i.p);var e=i.at;if(i.im){var n=i.im;this.gh.kh(n[0],n[1],n[2],e)}var h,r,a,o=this.gh.shape,u=i.f,c=i.l,f=i.s,l=i.t;if(this.layout(),i.tg&&this.gh.setIconSize){var d=i.tg;if(!!d[6]){var p=(this.yh&S)===S;o.createIcon(p,d[0],d[1],d[2],gs(d[3]),gs(d[4]),gs(d[5])),o.updateIcon(),this.gh.setIconSize&&this.gh.setIconSize(d[0])}}if(i.a){if(!i.a.params){i.a.type=i.a[0],i.a.params=i.a.slice(1);var v=i.a.params[0];if(v)for(r=0,a=v.length;r<a;++r)v[r]/=Pi}this.gh.shape.shape(i.a.type,i.a.params)}if(u){if(!u.normed){if(u[0]===vt.vt){var m,b=u[2];for(r=0,a=b.length;r<a;++r)m=[(h=b[r])[0]],h=h[1],m.push(gs(h>>16&255,h>>8&255,255&h)),m.push((h>>24&255)/255),b[r]=m}u.normed=!0}switch(u[0]){case vt.dt:o.fillNone();break;case vt.pt:h=u[1],o.fillSolid(h>>16&255,h>>8&255,255&h,(h>>24&255)/255);break;case vt.vt:u[1]?o.fillRadialGradient(u[2],u[3],u[4],u[5],u[6]):o.fillLinearGradient(u[2],u[3],u[4],u[5]);break;case vt.u:u.length>1?o.fillImage(u[1],u[2],u[3],u[4],u[5]):o.fillNone()}}else o.fillNone();return c?(o.lineWidth(c[0]),h=c[1],o.lineColor(h>>16&255,h>>8&255,255&h,(h>>24&255)/255),o.lineJoin(c[2]),o.lineCap(c[2]),void 0!==c[3]?o.endArrow(c[3],c[4]):o.endArrow(rt.NONE),void 0!==c[5]?o.startArrow(c[5],c[6]):o.startArrow(rt.NONE),o.lineStyle(c[2])):o.lineStyle("none"),f?(h=f[3],o.applyEffectShadow(f[0],f[1],f[2],h>>16&255,h>>8&255,255&h,(h>>24&255)/255)):o.clearEffectShadow(),l?(!this.gh._h&&this.gh.html(l[0]||""),this.gh.textStyle(l[1]).textVerticalAlign(l[2])):!this.gh._h&&this.gh.html(""),this.gh.rotate(i.r||0),this.gh.Th&&(this.gh.shape||this.gh.textContainer)&&(this.gh.parent&&this.gh.parent.xh(),this.gh.Sh()),e||(this.gh.textNode&&(e=(e=this.gh.textNode.textContent.replace(/\r|\n/g," ")).replace(/ +(?= )/g,"").trim()),e||(e=this.gh.ks.n,this.ks.length>1&&(e+=" "+i.n))),e?this.gh.accText(e):this.gh.accText(""),this.Eh(s,this.yh),!0},id:function(t){if(!arguments.length){var i=this.ks[this.te];return i?i.i:-1}return this.at(this.find("i",t))},name:function(t){if(!arguments.length){var i=this.ks[this.te];return i?i.n:""}return this.at(this.find("n",t))},flags:function(t){if(!arguments.length)return this.yh;var i,s=k,e=this.yh;return t&S&&(s|=S),t&x?s|=x:t&_?s|=_:t&T?s|=T:t&E?s|=E:t&M?s|=M:t&C?s|=C:t&P?s|=P:t&I?s|=I:t&R?s|=R:t&A?s|=A:t&D&&(s|=D),this.Mh=!0,i=this.at(this.find("p",s)),delete this.Mh,this.Eh(e,t),i},Eh:function(t,i){this.yh=i,!this.Mh&&this.gh.Ch&&this.gh.Ch(t,i)},has:function(t){var i=this.ks[this.te];return i&&(i.p&t)===t},find:function(t,i){var s,e;for(s=0,e=this.ks.length;s<e;++s)if(this.ks[s][t]===i)return s;return-1},Ph:function(t){var i,s=this.ks[this.te],e=s&&s.w&&s.w[this.gh.slide.Ms.layoutIndex];return e&&e.r&&(i=[(e=e.r)[0],e[1],e[4]]),i},layout:function(){var t=this.ks[this.te],i=t&&t.w&&t.w[this.gh.slide.Ms.layoutIndex];if(i){if(!i.normed){var s,e,n,h,r,a=i.p;if(a)for(s=0;s<a.length;++s){if(s<2){if(c=a[s])for(u=0,h=c.length;u<h;++u)for(r=c[u],e=0;e<6;++e)r[e]/=Pi}else for(var o=a[s],u=0;u<o.length;++u){var c,f=o[u];if(f)if(c=f.p)for(e=0,h=c.length;e<h;++e)for(r=c[e],n=0;n<6;++n)r[n]/=Pi}}i.normed=!0}if(i.b&&this.gh.flexbox(i.b),i.c)this.gh.flexChild(i.c);else if(i.r){var l,d,p=i.r,v=xs(p[2]),m=xs(p[3]);this.gh.center(1===p[5]||3===p[5],2===p[5]||3===p[5]),this.gh.Ih(p[0],p[1],p[4]),"%"===v.unit||"a"===v.unit?v.value/=Pi:v.unit||(v.unit="px"),"%"===m.unit||"a"===m.unit?m.value/=Pi:m.unit||(m.unit="px"),l=!(d="a"===m.unit)&&"a"===v.unit,this.gh.autoWidth(l).autoHeight(d),(d||l)&&(this.gh.Rh=d?m.value:v.value,this.gh.Ah=!0),l||this.gh.width(v.value+v.unit),d||this.gh.height(m.value+m.unit)}this.gh.shape.path(i.p&&i.p.length?i.p:null),i.f?this.gh.fontScale(i.f):this.gh.fontScale(100),this.gh.alwaysHide(i.h)}}});function Pe(t){this.Dh=t,this.Nh=[],this.Oh=$t.Fi;var i=t.ks.dd;this.Lh={effect:i[0],scale:i[1],alpha:i[2],posType:i[3],posVal:i[4],maxAccept:i[5],replace:i[6],acceptAny:i[7],acceptIds:i[8]||[]}}function Ie(t,i,s){if(i){var e,n,h,r,a="Demo"===s;for(e=0,n=i.length;e<n;++e)h=i[e],r=It[h[0]],!h[1]||!h[1].length||a&&"ap-load"!==r&&"ap-unload"!==r&&"ap-timer-complete"!==r||t.on(r,function(t){return function(i,s){var e=-1,n=t[1],h=n.length,r=function(){++e<h&&ie(n[e],s,i,r)};r()}}(h))}}function Re(t){var i,s=[];if(!(t&&t.node&&t.showProp&&t.hideProp))return s;for(;t;)t.node.style.display===t.hideProp()&&(t.node.style.display=t.showProp(),s.push(t)),t=t.parent;return(i=s[s.length-1])&&i.Mn&&i.Mn(),s}function Ae(t){var i,s=t.length;if(s){for(i=s;--i>=0;)t[i].node.style.display=t[i].hideProp();t[s-1].Mn&&t[s-1].Mn()}}Pe.TileMargin=5,Pe.RevertTime=200,Pe.DropTime=200,Pe.ZoomEffectScale=1.1,Pe.dragEffect=function(i,s,e,n){var h=t(i.node),r=i.node.style;if(s){var a={zIndex:$t.Ui,opacity:.8},o=i.Fh={zIndex:r.zIndex,opacity:r.opacity},u=i.ks.dd;if(u)switch(u[0]){case tt:h.addClass("ap-ctrl-dragsource-hilight");break;case it:var c=h.css("transform-origin").split(" ");e-=parseFloat(h.css("left"))+parseFloat(c[0]),n-=parseFloat(h.css("top"))+parseFloat(c[1]),o.transform=r[Cs],a.transform="translate("+e+"px, "+n+"px) scale("+Pe.ZoomEffectScale+", "+Pe.ZoomEffectScale+") translate("+-e+"px, "+-n+"px)",o.transform&&"none"!==o.transform&&(a.transform+=" "+o.transform)}h.css(a)}else i.Fh&&(h.css(i.Fh),delete i.Fh),h.removeClass("ap-ctrl-dragsource-hilight")},Pe.dropHoverEffect=function(i,s){var e=i.ks.dd;if(e)switch(e[0]){case tt:s?t(i.node).addClass("ap-ctrl-droptarget-hilight"):t(i.node).removeClass("ap-ctrl-droptarget-hilight");break;case it:s?(i.Uh=i.node.style[Cs],i.scaleBy(Pe.ZoomEffectScale)):void 0!==i.Uh&&(i.node.style[Cs]=i.Uh,delete i.Uh)}},Pe.revert=function(t,i,s,e,n){var h=t.prez(),r=new fh({startTime:h.timeline.totalTime()}),a=t.node.style.zIndex;t.node.style.zIndex=$t.Ui,t.vs(r),r.addChild(new ah(t,"translateX",{startTime:0,duration:e,easing:Xn.outQuad,tweenParams:[-i],relative:Gn.Yh})).addChild(new ah(t,"translateY",{startTime:0,duration:e,easing:Xn.outQuad,tweenParams:[-s],relative:Gn.Yh})).addChild(new rh(function(){t.node.style.zIndex=a,n&&n(),setTimeout(function(){t.ps(r)},0)},{startTime:r.duration(),duration:0})),h.timeline.addChild(r),r.setup(),r.play(0)},Pe.prototype={constructor:Pe,droppedObjects:function(){return this.Nh},accepted:function(t){return this.Lh.acceptAny||this.Lh.acceptIds.indexOf(t.id())>=0},drop:function(s,e,n,h){void 0===n&&(n=!0);var r=this.Dh,a=this.Lh,o=a.maxAccept<0||this.Nh.length<a.maxAccept,u=!1,d=!1;if(s.parent!==r.parent?o=!1:(o||this.Nh.length===a.maxAccept&&a.maxAccept>0&&(a.replace?(u=!0,o=!0):d=!0),!o&&!d||a.acceptAny||a.acceptIds.indexOf(s.ks.i)<0&&(o=u=d=!1)),s.ks.k==i.M&&s.us.flags(s.us.flags()&~(T|_)),!o)return n&&(s.hasStateFlag(D)&&s.us.flags(D),r.hasStateFlag(D)&&r.us.flags(D),t(r).triggerHandler(t.Event("ap-reject",{value:s})),Pe.revert(s,h.x,h.y,Pe.RevertTime)),!!d&&void 0;if(u){var p,v=this.Nh[this.Nh.length-1];v&&(p=this.startDragOut(v),n&&(s.hasStateFlag(D)&&s.us.flags(D),v.hasStateFlag(D)&&v.us.flags(D),t(r).triggerHandler(t.Event("ap-reject",{value:v})),Pe.revert(v,p.x,p.y,Pe.RevertTime)))}this.Nh.push(s),s.dropTarget=r;var m={w:s.node.clientWidth,h:s.node.clientHeight},b={t:r.node.offsetTop,l:r.node.offsetLeft,w:r.node.clientWidth,h:r.node.clientHeight},w=a.scale/100,g="",y={},k=s.Bh={},x=s.node.style;switch(1!==w&&(g="translate("+-m.w/2+"px, "+-m.h/2+"px) scale("+w+", "+w+") translate("+m.w/2+"px, "+m.h/2+"px)",m.w*=w,m.h*=w),a.posType){case f:this.Hh(m,b,a.posVal);break;case l:this.zh(m,b,a.posVal);break;case c:m.l=b.l+e.x,m.t=b.t+e.y,s.Xh={x:e.x,y:e.y}}var S,E,M,C=t(s.node).css("transform-origin").split(" "),P=t(r.node).css("transform-origin").split(" ");return S=b.l+parseFloat(P[0])-(s.node.offsetLeft+parseFloat(C[0])),E=b.t+parseFloat(P[1])-(s.node.offsetTop+parseFloat(C[1])),"none"===(M=r.node.style.transform)&&(M=""),y.transform="translate("+S+"px, "+E+"px) "+M+" translate("+-S+"px, "+-E+"px) translate("+(m.l-s.node.offsetLeft)+"px, "+(m.t-s.node.offsetTop)+"px) "+g,k.transform=x[Cs],y.zIndex=this.Oh++,k.zIndex=x.zIndex,255!=a.alpha&&(y.opacity=a.alpha/255,k.opacity=x.opacity),t(s.node).css(y),s.updateCachedTransform(),n&&(s.hasStateFlag(A)&&s.us.flags(A),r.hasStateFlag(A)&&r.us.flags(A),t(r).triggerHandler(t.Event("ap-accept",{value:s})),r instanceof je&&r.submit(s)),!0},startDragOut:function(i){var s=this.Nh.indexOf(i),e={x:0,y:0};if(s<0)return e;if(this.Nh.splice(s,1),delete i.dropTarget,i.Bh){var n=i.translate();t(i.node).css(i.Bh),i.updateCachedTransform(),delete i.Bh;var h=i.translate();e.x=n.translateX-h.translateX,e.y=n.translateY-h.translateY}if(this.Lh.posType===l&&(this.Gh=this.Vh=this.$h=0,this.Nh.length)){var r,a,o,u,c=this.Dh,f={t:c.node.offsetTop,l:c.node.offsetLeft,w:c.node.clientWidth,h:c.node.clientHeight},d=t(c.node).css("transform-origin").split(" "),p=c.node.style.transform,v=this.Lh.scale/100,m="";for(d[0]=parseFloat(d[0]),d[1]=parseFloat(d[1]),"none"===p&&(p=""),s=0;s<this.Nh.length;++s)r={w:(i=this.Nh[s]).node.clientWidth,h:i.node.clientHeight},1!==v&&(m="translate("+-r.w/2+"px, "+-r.h/2+"px) scale("+v+", "+v+") translate("+r.w/2+"px, "+r.h/2+"px)",r.w*=v,r.h*=v),this.zh(r,f,this.Lh.posVal),a=t(i.node).css("transform-origin").split(" "),o=f.l+d[0]-(i.node.offsetLeft+parseFloat(a[0])),u=f.t+d[1]-(i.node.offsetTop+parseFloat(a[1])),t(i.node).css("transform","translate("+o+"px, "+u+"px) "+p+" translate("+-o+"px, "+-u+"px) translate("+(r.l-i.node.offsetLeft)+"px, "+(r.t-i.node.offsetTop)+"px) "+m),i.updateCachedTransform()}return e},clear:function(){for(var t=this.Nh;t.length;)this.startDragOut(t[t.length-1]);this.Oh=$t.Fi},layout:function(){for(var t=this.Dh;t;){if("none"===t.node.style.display)return;t=t.parent}var i,s,e=this.Nh,n=[],h=[];if(e.length){for(;e.length;)i=e[e.length-1],n.push(i),h.push(i.Xh||{x:0,y:0}),this.startDragOut(i);for(this.Oh=$t.Fi,s=n.length-1;s>=0;--s)this.drop(n[s],h[s],!1)}},absolutePosition:function(){return this.Lh.posType===c},Hh:function(t,i,s){t.t=i.t+(i.h-t.h)*$i(s/3)/2,t.l=i.l+(i.w-t.w)*(s%3)/2},zh:function(t,i,s){var e,n,h,r,a,o,u;switch(this.Gh||(this.Gh=Pe.TileMargin),this.Vh||(this.Vh=Pe.TileMargin),this.$h||(this.$h=0),s){case d:case p:case b:case w:default:h=t.w,r=t.h,a=i.w,o=!1;break;case v:case m:case g:case y:h=t.h,r=t.w,a=i.h,o=!0}(this.Gh+h>a?(this.Vh+=this.$h+Pe.TileMargin,e=this.Vh,n=Pe.TileMargin,this.Gh=n+h+Pe.TileMargin,this.$h=r):(e=this.Vh,n=this.Gh,this.Gh+=h+Pe.TileMargin,r>this.$h&&(this.$h=r)),o)&&(u=e,e=n,n=u);switch(s){case d:case m:default:t.t=i.t+e,t.l=i.l+n;break;case p:case v:t.t=i.t+i.h-e-t.h,t.l=i.l+n;break;case b:case y:t.t=i.t+e,t.l=i.l+i.w-n-t.w;break;case w:case g:t.t=i.t+i.h-e-t.h,t.l=i.l+i.w-n-t.w}}};var De={showProp:function(){return"block"},hideProp:function(){return"none"},rotate:function(){return 0},rotateToSlide:function(){for(var t=this,i=0;t&&t!=this.slide;)i+=t.rotate(),t=t.parent;return i},offsetPosition:function(){return this.node?{x:this.node.offsetLeft,y:this.node.offsetTop}:{x:0,y:0}},offsetSize:function(){return this.node?{width:this.node.offsetWidth,height:this.node.offsetHeight}:{width:0,height:0}},transformOrigin:function(t){if(!this.node)return{x:0,y:0};if(t){var i=this.node.getBoundingClientRect(),s=this.slide.node.getBoundingClientRect();return{x:((i.left+i.right)/2-s.left)/this.slide.prez().We(),y:((i.top+i.bottom)/2-s.top)/this.slide.prez().We()}}var e=this.offsetSize();return{x:e.width/2,y:e.height/2}},contentBox:function(){var t=this.offsetSize();return{x:0,y:0,width:t.width,height:t.height}},transformedContentBox:function(t){if(!this.node)return{x:0,y:0,width:0,height:0};var i=t?this.slide.node:this.node.parentNode,s=this.node.getBoundingClientRect(),e=i.getBoundingClientRect(),n=this.slide.prez().We();return{x:(s.left-e.left)/n,y:(s.top-e.top)/n,width:(s.right-s.left)/n,height:(s.bottom-s.top)/n}},rotatedContentBox:function(t,i){var s=this.contentBox(),e=this.transformOrigin();if(t%360){var n=Se.translate(e.x,e.y).rotate(t).translate(-e.x,-e.y),h=Me(n,s.x,s.y),r=Me(n,s.x+s.width,s.y),a=Me(n,s.x+s.width,s.y+s.height),o=Me(n,s.x,s.y+s.height);s.x=Yi(h.x,r.x,a.x,o.x),s.y=Yi(h.y,r.y,a.y,o.y),s.width=Bi(h.x,r.x,a.x,o.x)-s.x,s.height=Bi(h.y,r.y,a.y,o.y)-s.y}if(i){var u=this.transformOrigin(!0);s.x+=u.x-e.x,s.y+=u.y-e.y}else{var c=this.offsetPosition();s.x+=c.x,s.y+=c.y}return s}},Ne=Ls(De,{$init:function(t,i){this.node=t,this.parent=i,this.slide=i.slide},showProp:function(){return"inline-block"}}),Oe=Ls(De,{$init:function(s,e){this.parent=null,this.slide=s,this.children=[],e=e||{},this.ks=e,this.node=this.createNode();var n=this===s,o=this;if(this.node.id||(this.node.id=n?s.Ms.genSlideDomId():s.Ms.genObjectDomId()),t(this.node).addClass(n?"ap-slide":"ap-ctrl").css({position:"absolute",pointerEvents:he.browser.android?"auto":"none"}).on("focus",function(){o.prez()&&o.prez().highlightFocus()&&t(this).addClass("ap-focused")}).on("blur",function(){t(this).removeClass("ap-focused")}),e.f&a&&s.re&&s.re.addChild(new ah(this,"display",{startTime:0,duration:0,tweenParams:[this.showProp(),this.hideProp()],tweenType:jt.zi})),e.f&h){var u={start:function(i,s){var e=this.rlDragCtrl,n=this.style,h={x:0,y:0};if(!e||!e.ns(!1,!0)||e.prez()&&e.prez().ended)return!1;e.dropTarget&&(h=e.dropTarget.dropHelper.startDragOut(e)),e.Wh=null,e.jh=null,e.Qh=e.Kh=0,e.qh=h.x,e.Jh=h.y,e.Zh={left:n.left,right:n.right,top:n.top,bottom:n.bottom},e.tr=getTransformationMatrix(this.parentNode).inverse(),e.ir=e.tr.transformPoint(s.originalPosition.left,s.originalPosition.top),e.sr=parseFloat(t(this).css("left"))||0,e.er=parseFloat(t(this).css("top"))||0,(h.x||h.y)&&(e.sr+=h.x,e.er+=h.y,t(this).css({left:e.sr+"px",top:e.er+"px"}));var r=e.tr.transformPoint(i.pageX,i.pageY);e.hasStateFlag(E)&&e.us.flags(E),Pe.dragEffect(e,!0,r.x,r.y),t(e).triggerHandler(t.Event("ap-dragstart",{originalEvent:i}))},drag:function(i,s){var e,n,h,r=this.rlDragCtrl;if(r&&(e=r.tr.transformPoint(s.position.left,s.position.top),r.Qh=e.x-r.ir.x,r.Kh=e.y-r.ir.y,s.position.left=r.sr+r.Qh,s.position.top=r.er+r.Kh,n=this.style.zIndex,this.style.zIndex=-1,h=Zi.elementFromPoint(i.clientX,i.clientY),this.style.zIndex=n,h!==r.Wh)){r.Wh=h;for(var a=null;h&&h!==Zi.documentElement&&(h.rlDropCtrl?a=h.rlDropCtrl:h.rlDragCtrl&&h.rlDragCtrl.dropTarget&&(a=h.rlDragCtrl.dropTarget),!a);)h=h.parentNode;a&&!a.ns(!1,!0,!0)&&(a=null),a!==r.jh&&(r.jh&&(r.hasStateFlag(P)&&r.us.flags(P),Pe.dropHoverEffect(r.jh,!1),t(r.jh).triggerHandler(t.Event("ap-dragleave",{value:r,originalEvent:i}))),r.jh=a,a&&(r.hasStateFlag(C)&&r.us.flags(C),Pe.dropHoverEffect(a,!0),t(r.jh).triggerHandler(t.Event("ap-dragenter",{value:r,originalEvent:i}))))}},stop:function(i,s){var e,n,h=this.rlDragCtrl;if(h){(e=h.jh)&&e.dropHelper.absolutePosition()&&(n=convertPointFromNodeToPage(h.node,0,0),n=convertPointFromPageToNode(e.node,n.x,n.y)),Pe.dragEffect(h,!1);var r,a=h.node.style,o=h.Zh;for(r in o)a[r]=o[r];if(delete h.Zh,h.Qh+=h.qh,h.Kh+=h.Jh,e)h.hasStateFlag(M)&&h.us.flags(M),Pe.dropHoverEffect(e,!1),e.dropHelper.drop(h,n,!0,{x:h.Qh,y:h.Kh}),t(h).triggerHandler(t.Event("ap-dragend",{value:h.dropTarget||null,originalEvent:i}));else{h.us.flags(k);var u=function(){if(h.parent&&h.parent.children){var t,i,s,e=h.parent.children;for(i=0,s=e.length;i<s;++i)(t=e[i])instanceof je&&t.ns(!0,!0)&&t.submit(h)}};h.ks.dd[1]?(h.hasStateFlag(M)&&h.us.flags(M),t(h).triggerHandler(t.Event("ap-dragend",{value:null,originalEvent:i})),Pe.revert(h,h.Qh,h.Kh,Pe.RevertTime,u)):(h.hasStateFlag(M)&&h.us.flags(M),h.translateBy(h.Qh,h.Kh),t(h).triggerHandler(t.Event("ap-dragend",{value:null,originalEvent:i})),u())}delete h.Wh,delete h.jh,delete h.ir}}};this.node.rlDragCtrl=this,t(this.node).on("mousedown",function(t){this.rlDragCtrl&&this.rlDragCtrl.filterEvent(t)||Qs(t,!0)}).css("touchAction","none").draggable(u),re(this.node)}else e.f&r&&(this.dropHelper=new Pe(this),this.node.rlDropCtrl=this);if(this.nr=this.node.clientWidth,this.hr=this.node.clientHeight,this.shape=new Fn(this.node,this),this.us=new Ce(this,e.s),this.us.useDefault(),e.tm&&this.textMargin(e.tm[0],e.tm[1],e.tm[2],e.tm[3]),!e.s&&this.flexbox&&this.flexbox(),void 0!==e.c&&this.cursor(Wt[e.c]),void 0!==e.mi&&e.k!=i._&&e.k!=i.T){var c=!0;this.Dn=s.Ms.vn({ctrl:e}),this.Dn||(c=!1,this.Dn=new vn(s.Ms,!1));var f=this.Dn;f.dn(e.n),f.An(e.md),f.synchronizeWithPrez(!0),c||f.loadResource(e.mi)}e.e&&e.e.l&&Ie(this,e.e.l,s.Ms.options.playMode);var l,d,p,v,m=e.cc||[];for(l=0,d=m.length;l<d;++l)(p=Ue((v=m[l]).k,s,v))&&this.insertChild(p);if(this.rr(e.ti),void 0!==e.m){var b=Qt[s.Ms.options.playMode];(e.m&b)!==b&&this.or(!1)}void 0!==e.uts&&this.userSelection(1==e.uts)},id:function(){return this.ks.i},createNode:function(){return Zi.createElement("div")},prez:function(){return this.slide?this.slide.Ms:null},mediaPlayer:function(){return this.Dn},defaultCtrlData:function(){var t,i,s=this.prez().ks.l;if((t={e:{},f:0,i:-1,k:-1,m:15,n:"",s:[{a:[0],d:1,id:0,n:"Normal",w:[]}],ti:-1}).i=this.slide.ur++,0==t.s[0].w.length)for(i=0;i<s.length;++i)t.s[0].w.push([0,0,1,1]);return t},createChild:function(t){var i=Ue(t.k,this.slide,t);return i&&this.insertChild(i),i},showProp:function(){return this.Ne?"flex":"block"},autoWidth:function(t){return this.cr=t,t&&(this.lr=!1,this.Ne?this.Rh=(this.node.offsetWidth||this.nr)/(this.node.offsetHeight||this.hr)||0:this.Rh=(this.node.clientWidth||this.nr)/(this.node.clientHeight||this.hr)||0),this},autoHeight:function(t){return this.lr=t,t&&(this.cr=!1,this.Ne?this.Rh=(this.node.offsetWidth||this.nr)/(this.node.offsetHeight||this.hr)||0:this.Rh=(this.node.clientWidth||this.nr)/(this.node.clientHeight||this.hr)||0),this},left:function(t){return arguments.length?(this.node.style.left=qi(t)?t+"px":t,this):this.node.offsetLeft},top:function(t){return arguments.length?(this.node.style.top=qi(t)?t+"px":t,this):this.node.offsetTop},right:function(i){return arguments.length?(this.node.style.right=qi(i)?i+"px":i,this):parseFloat(t(this.node).css("right"))},bottom:function(i){return arguments.length?(this.node.style.bottom=qi(i)?i+"px":i,this):parseFloat(t(this.node).css("bottom"))},width:function(t){return arguments.length?(this.node.style.width=qi(t)?t+"px":t,this.cr=!1,this.Mn(),this):this.Ne?this.node.offsetWidth:this.node.clientWidth},height:function(t){return arguments.length?(this.node.style.height=qi(t)?t+"px":t,this.lr=!1,this.Mn(),this):this.Ne?this.node.offsetHeight:this.node.clientHeight},Ih:function(t,i,s){t=xs(t),i=xs(i),"%"===t.unit?t.value/=Pi:t.unit||(t.unit="px"),s===wt||s===gt?this.right(t.value+t.unit).left("auto"):this.left(t.value+t.unit).right("auto"),"%"===i.unit?i.value/=Pi:i.unit||(i.unit="px"),s===yt||s===gt?this.bottom(i.value+i.unit).top("auto"):this.top(i.value+i.unit).bottom("auto")},size:function(t,i){return arguments.length?(this.node.style.width=qi(t)?t+"px":t,this.node.style.height=qi(i)?i+"px":i,this.cr=this.lr=!1,this.Mn(),this):{width:this.node.clientWidth,height:this.node.clientHeight}},accText:function(t){return arguments.length||(t=""),this.node.setAttribute("aria-label",t),this},rr:function(t){isNaN(t)||this!==this.slide&&(-2==t?this.node.tabIndex=-1:-1==t?this.node.removeAttribute("tabIndex"):this.node.tabIndex=t)},or:function(t){if(!(this.dr===t||void 0===this.dr&&t)){this.dr=t;var i,s,e,n=t?"":0,h=this.node.childNodes;for(s=0,e=h.length;s<e;++s)1===(i=h[s]).nodeType&&(i.style.opacity=n)}},updateTabIndexGR:function(t){if(this!==this.slide&&t instanceof qe){var i,s,e,n=this.children,h=this.ks.ti>0?this.ks.ti:0,r=t.pr;for(i=0,s=n.length;i<s;++i)(e=n[i])instanceof qe&&e.pr===r&&(t===e?e.node.tabIndex=h:e.node.tabIndex===h&&(e.node.tabIndex=-1))}},contentBox:function(){var i=t(this.node).css("overflow"),s=0,e=0,n=this.node.offsetWidth,h=this.node.offsetHeight;if(i&&"visible"!=i)return{x:s,y:e,width:n-s,height:h-e};var r,a,o,u,c,f=this.shape.contentBox(),l=this.textContainer;for(l&&((r=this.textNode.offsetHeight)>l.offsetHeight?"middle"===this.vr?(a=l.offsetTop-(r-l.offsetHeight)/2,f.height=Bi(a+r,f.y+f.height)-Yi(f.y,a),f.y=Yi(f.y,a)):"bottom"===this.vr?(a=l.offsetTop+l.offsetHeight-r)<f.y&&(f.height+=f.y-a,f.y=a):(a=l.offsetTop+r)>f.y+f.height&&(f.height=a-f.y):this.Th&&"auto"===this.node.style.height&&("middle"===this.vr?(f.height=Bi(l.offsetTop+l.offsetHeight,f.y+f.height)-Yi(f.y,l.offsetTop),f.y=Yi(f.y,l.offsetTop)):"bottom"===this.vr?l.offsetTop<f.y&&(f.height+=f.y-l.offsetTop,f.y=l.offsetTop):l.offsetTop+l.offsetHeight>f.y+f.height&&(f.height=l.offsetTop+l.offsetHeight-f.y))),s=Yi(s,f.x),e=Yi(e,f.y),n=Bi(n,f.x+f.width),h=Bi(h,f.y+f.height),o=0,u=this.children.length;o<u;++o)(c=this.children[o]).node.style.display!=c.hideProp()&&(f=c.transformedContentBox(),s=Yi(s,f.x),e=Yi(e,f.y),n=Bi(n,f.x+f.width),h=Bi(h,f.y+f.height));return{x:s,y:e,width:n-s,height:h-e}},transformedContentBox:function(t){var i=t?this.rotateToSlide():this.rotate();return this.rotatedContentBox(i,t)},mr:function(t){return t||(t={x:0,y:0},this.parent)?(this.parent&&(this.parent.mr(t),t.x+=this.parent.node.offsetLeft,t.y+=this.parent.node.offsetTop),t):t},center:function(t,i){this.br=t,this.wr=i},centerX:function(){if(this.br){var t=this.mr().x,i=this.slide.node.clientWidth;this.left((i-this.nr)/2-t)}},centerY:function(){if(this.wr){var t=this.mr().y,i=this.slide.node.clientHeight;this.top((i-this.hr)/2-t)}},rotate:function(t){var i=sh.transform,s=i.get(this);return arguments.length?(s.rotate=t,i.set(this,ih(s)?"":s),this.animProps&&this.animProps.set("rotate",s.rotate),this):s.rotate},rotateBy:function(t){var i=sh.transform,s=i.get(this);return s.rotate+=t,i.set(this,ih(s)?"":s),this.animProps&&this.animProps.set("rotate",s.rotate),this},translate:function(t,i){var s=sh.transform,e=s.get(this);return arguments.length?(e.translateX=t||0,e.translateY=i||0,s.set(this,ih(e)?"":e),this.animProps&&(this.animProps.set("translateX",e.translateX),this.animProps.set("translateY",e.translateY)),this):{translateX:e.translateX,translateY:e.translateY}},translateBy:function(t,i){var s=sh.transform,e=s.get(this);return e.translateX+=t||0,e.translateY+=i||0,s.set(this,ih(e)?"":e),this.animProps&&(this.animProps.set("translateX",e.translateX),this.animProps.set("translateY",e.translateY)),this},scale:function(t,i){var s=sh.transform,e=s.get(this);return arguments.length?(1===arguments.length&&(i=t),e.scaleX=t,e.scaleY=i,s.set(this,ih(e)?"":e),this.animProps&&(this.animProps.set("scaleX",e.scaleX),this.animProps.set("scaleY",e.scaleY)),this):{scaleX:e.scaleX,scaleY:e.scaleY}},scaleBy:function(t,i){var s=sh.transform,e=s.get(this);return 1===arguments.length&&(i=t),e.scaleX*=t,e.scaleY*=i,s.set(this,ih(e)?"":e),this.animProps&&(this.animProps.set("scaleX",e.scaleX),this.animProps.set("scaleY",e.scaleY)),this},transform:function(t,i,s,e,n){var h=sh.transform,r=h.get(this);return arguments.length?(r.translateX=t||0,r.translateY=i||0,r.rotate=s||0,r.scaleX=void 0===e?1:e,r.scaleY=void 0===n?r.scaleX:n,h.set(this,ih(r)?"":r),this.animProps&&this.animProps.set("transform",r),this):r},updateCachedTransform:function(){if(this.animProps){var t=sh.transform.get(this);this.animProps.set("transform",t)}return this},flexbox:function(t){if(delete this.Ne,t){this.Ne=!0;var i=this.node.style;switch(i.display!==this.hideProp()&&(i.display=this.showProp()),i.flexDirection=t[0]==N?"row":"column",i.flexWrap=t[1]?"wrap":"nowrap",i.boxSizing="border-box",t[2]){case O:i.justifyContent="flex-start";break;case L:i.justifyContent="center";break;case F:i.justifyContent="flex-end";break;case U:i.justifyContent="space-between";break;case Y:i.justifyContent="space-around"}switch(t[3]){case B:i.alignContent="flex-start";break;case H:i.alignContent="center";break;case z:i.alignContent="flex-end";break;case X:i.alignContent="stretch";break;case G:i.alignContent="space-between";break;case V:i.alignContent="space-around"}switch(i.paddingRight="",t[4]){case q:"auto"===i.overflow&&(this.node.scrollTop=0,this.node.scrollLeft=0),i.overflow="visible";break;case J:"auto"===i.overflow&&(this.node.scrollTop=0,this.node.scrollLeft=0),i.overflow="hidden";break;case Z:i.overflow="auto",i.pointerEvents="auto";break;default:"auto"===i.overflow&&(this.node.scrollTop=0,this.node.scrollLeft=0),i.overflow="hidden"}}},flexChild:function(t){delete this.gr,delete this.yr,delete this.Th;var i=this.node.style;if(t){this.Th=!0,this.nr=0,this.hr=0,i.position="relative",i.left="",i.right="",i.top="",i.bottom="",i.flexGrow=t[0],i.flexShrink=t[1];var s=t[2],e=t[3];switch(1===t[9]?this.gr={type:"width"}:2===t[9]&&(this.gr={type:"height"}),this.gr&&"width"===this.gr.type?this.gr.value=t[2]/Pi:"a"===s?i.width="auto":("%"===(s=xs(t[2])).unit?s.value/=Pi:s.unit||(s.unit="px"),i.width=s.value+s.unit),this.gr&&"height"===this.gr.type?this.gr.value=t[3]/Pi:"a"===e?i.height="auto":("%"===(e=xs(t[3])).unit?e.value/=Pi:e.unit||(e.unit="px"),i.height=e.value+e.unit),i.marginTop=t[4]+"px ",i.marginLeft=t[5]+"px",i.marginRight=t[6]+"px",i.marginBottom=t[7]+"px",t[8]){case K:i.alignSelf="auto";break;case $:i.alignSelf="flex-start";break;case W:i.alignSelf="center";break;case j:i.alignSelf="flex-end";break;case Q:i.alignSelf="stretch"}t[10]&&(i.minWidth=t[10]+"px"),t[11]&&(i.minHeight=t[11]+"px"),"a"!==s&&"a"!==e||(this.yr=!0)}else i.position="absolute"},De:function(){for(var t,i=this.children,s=0,e=i.length;s<e;++s)(t=i[s]).De&&t.De();this.textContainer&&this.kr(),this.shape&&this.shape.layout()},Sh:function(t){for(var i=this.parent,s=null;i&&i.Ne;){if(!((s=i.parent)&&s.Ne&&i.Th)){i.Mn&&(i.Mn(),i.Mn());break}i=s}},xh:function(){if(!he.browser.safari)return!1;for(var t,i,s,e,n,h,r,a=this.Ne&&"column"===this.node.style.flexDirection,o=!1,u=this.children,c=0,f=u.length;c<f;++c)if(s=(i=u[c]).node.style,t=!1,i.Ne){if(a&&parseInt(s.flexGrow)>0&&"auto"===s.height)for(n=0,h=(e=i.children).length;n<h;++n)if("auto"===(r=e[n]).node.style.height)t=!0;else if("%"===xs(r.node.style.height).unit){s.height="0%",o=!0;break}i.xh()&&(t&&a&&(s.height="0%"),o=!0)}return o},Mn:function(){if(this._r||(this._r=0),this._r>10)as("Recursive checking resized: "+this.name());else{++this._r;var t=this.node.clientWidth,i=this.node.clientHeight;if(this.Ne&&(t=this.node.offsetWidth,i=this.node.offsetHeight),this.gr&&this.parent&&this.parent.Ne){var s=this.parent.node.style.flexDirection||"row";"height"==this.gr.type?"row"==s||0==parseInt(this.node.style.flexShrink)?(i=t/this.gr.value,this.nr=t):delete this.gr:"column"==s||0==parseInt(this.node.style.flexShrink)?(t=i*this.gr.value,this.hr=i):delete this.gr}var e,n,h,r=this.children;if(t===this.nr&&i===this.hr&&this.Ne)for(n=0,h=r.length;n<h;++n)(e=r[n]).Th&&(e.Ne?e.Mn():e.node.clientWidth===e.nr&&e.node.clientHeight===e.hr||e.Mn());if(t===this.nr&&i===this.hr&&!this.Ah)return this.centerX(),this.centerY(),void--this._r;if(!this.gr&&this.Th)this.nr=t,this.hr=i,this.onResized(),this.Ne||(this.nr=this.node.clientWidth,this.hr=this.node.clientHeight);else{var a=t-this.nr,o=i-this.hr;this.nr=t,this.hr=i,this.onResized(a,o)}var u=[];for(n=0,h=r.length;n<h;++n)(e=r[n]).Mn(),e.dropHelper&&u.push(e);for(n=0,h=u.length;n<h;++n)u[n].dropHelper.layout();--this._r}},onResized:function(t,i){!this.lr&&!this.cr||this.yr||(this.Rh?this.lr?(t||this.Ah)&&(delete this.Ah,this.height(this.nr/this.Rh),this.lr=!0):(i||this.Ah)&&(delete this.Ah,this.width(this.Rh*this.hr),this.cr=!0):this.Rh=this.nr/this.hr||0),delete this.Ah,this.gr&&(t&&this.width(this.nr),i&&this.height(this.hr)),this.centerX(),this.centerY(),this.textContainer&&(this.kr(),this.textVerticalAlign(this.vr)),this.shape.layout()},Tr:function(){var t,i,s=this.children;for(t=0,i=s.length;t<i;++t)s[t].Tr()},onLayoutSwitched:function(){this.us.layout();var t,i,s,e=this.children,n=[];for(t=0,i=e.length;t<i;++t)(s=e[t]).onLayoutSwitched(),s.dropHelper&&n.push(s);if(this.Ne)for(t=0,i=e.length;t<i;++t)(s=e[t]).Th&&s.onResized&&s.onResized();for(t=0,i=n.length;t<i;++t)n[t].dropHelper.layout()},insertChild:function(t,i){return t&&(t.parent=this,t.slide=this.slide,isNaN(i)||null===i||i<0&&i>=this.children.length?(t.node.parentNode||this.node.appendChild(t.node),this.children.push(t)):(t.node.parentNode||this.node.insertBefore(t.node,this.children[i].node),this.children.splice(i,0,t)),t.xr(),t.Mn()),this},remove:function(){if(this.parent){var t=this.parent.children.indexOf(this);t>-1&&this.parent.children.splice(t,1),this.node.parentNode==this.parent.node&&this.parent.node.removeChild(this.node),this.parent=null}return this.Sr(),this.cleanup()},xr:function(){var t,i,s=this.slide;for(s.ur<=this.ks.i&&(s.ur=this.ks.i+1),s.Er[this.ks.i]=this,s.Mr[this.ks.n]=this,t=0,i=this.children.length;t<i;++t)this.children[t].xr()},Sr:function(){var t,i,s=this.slide;for(delete s.Er[this.ks.i],delete s.Mr[this.ks.n],t=0,i=this.children.length;t<i;++t)this.children[t].Sr()},state:function(t){return arguments.length?(typeof t===Ai?this.us.name(t):this.us.id(t),this.savedCurrentState(t),this):this.us.name()},savedCurrentState:function(t){var i=this.savedData(!0);if(i)if(arguments.length)i.st=t;else{var s=(t=this.us).ks[t.te];i.st=s.i}return this},Cr:function(){return Zi.createElement("div")},Pr:function(t){rs.innerHTML=t,(this.splitTexts?this.splitTexts.Ir:this.textNode.innerHTML)!==rs.innerHTML&&(this.textNode.innerHTML=t,delete this.splitTexts)},Rr:function(){var t="";return this.yr?t+="position: relative;":t+="position: absolute;",this.ks.k===i.o&&this.ks.t===s.tt?t+="left: 0%; top: 0%; overflow: auto; word-wrap: break-word; pointer-events: auto;":t+="left: 0; right: 0; word-wrap: break-word; pointer-events: auto;",void 0!==this.Ar&&(t+=" cursor: "+this.Ar+";"),t},Dr:function(){if(!this.textNode){this.textContainer=Zi.createElement("div"),this.node.appendChild(this.textContainer);var t=this.textContainer.style;this.yr?(t.position="relative",t.boxSizing="border-box",t.width="100%",t.height=""):(t.position="absolute",t.width="",t.height="",t.boxSizing=""),this.kr(),this.textNode=this.Cr(),t=this.textNode.style,this.Nr?t.cssText=this.Nr:(t.position="absolute",t.left=t.right=0,t.wordWrap="break-word",t.pointerEvents="auto"),this.vr&&this.textVerticalAlign(this.vr),this.textContainer.appendChild(this.textNode),void 0!==this.Ar&&(this.textNode.style.cursor=this.Ar),!1===this.dr&&(this.textContainer.style.opacity=0),delete this.Or,this.Lr&&100!=this.Lr&&this.Fr()}},html:function(i){if(!arguments.length)return this.textNode?this.textNode.innerHTML:"";if(i+="",!this.textNode&&i&&this.Dr(),this.textNode){if(this.Lr&&100!=this.Lr){this.Ur=i;var s={css:this.textNode.style.cssText,html:i};r=s,a=this.Lr/100,(o=t("<div><div>"+r.html+"</div></div>"))[0].firstChild.style.cssText=r.css,t("*",o).each(function(){if(this.style&&this.style.fontSize){var i=this.style.fontSize,s=i.match(/\D+$/);if(!(s=s&&s[0])||s.search(/inherit|%|em/i)>-1)return;var e=parseFloat(i);if(isNaN(e)){var n=t(this);n.css("font-size",parseFloat(n.css("font-size"))*a)}else e*=a,this.style.fontSize=e+s}}),o=o[0].firstChild,r.css=o.cssText,r.html=o.innerHTML,i=s.html}else delete this.Ur;var e=this,n=this.slide.Ms.vars,h=n.replace(i);this.Pr(h.text),this.Yr&&(n.removeObserver(this.Yr),delete this.Yr),h.vars.length?(this.Br=i,this.Yr=function(){e.Pr(n.replace(e.Br).text)},n.addObserver(h.vars,this.Yr)):delete this.Br}var r,a,o;return this},text:function(t){return arguments.length?this.html(fs(t,!0)):this.textNode&&this.textNode.textContent||""},splitText:function(i){if(!this.textNode)return this;i&&i.chars&&(i=Qi({},i,{words:!0}));var s,e,n,h,r,a=this.textNode.innerHTML,o=he.splitText(this.textNode,i),u=["chars","words"],c=this;o.Ir=a,this.splitTexts=o,o.listItems||(o.listItems=[],t("li",this.textContainer).each(function(){o.listItems.push(new Ne(this,c))}));for(var f=0;f<2;++f){if(1==f){if(!(o=o.processStyles))break;u.length=0;for(n in o)u.push(n)}for(h=0;h<u.length;++h)if(n=u[h],r=o[n])for(s=0,e=r.length;s<e;++s)r[s]=new Ne(r[s],this)}return this},unsplitText:function(){return this.textNode&&this.splitTexts&&void 0!==this.splitTexts.Ir&&(this.textNode.innerHTML=this.splitTexts.Ir,delete this.splitTexts),this},textStyle:function(t){return t=(t||"")+this.Rr(),this.textNode?(this.textNode.style.cssText=t,delete this.Or,this.Lr&&100!=this.Lr&&this.Fr()):this.Nr=t,this},textVerticalAlign:function(t){if(!arguments.length)return this.vr||"top";if("middle"===t||"top"===t||"bottom"===t){if(this.textNode){var i=this.textNode.style;i.top="",i.bottom="",i[Cs]="","top"===t?(i.top=0,i.bottom="auto",i[Cs]=""):"bottom"===t?(i.top="auto",i.bottom=0,i[Cs]=""):(this.yr||(i.top="50%",i[Cs]="translateY(-50%)"),i.bottom="auto")}this.vr=t}return this},textMargin:function(t,i,s,e){return arguments.length?(this.Hr=[t,i,s,e],this.textContainer&&this.kr(),this):(this.Hr||(this.Hr=[5,5,5,5]),this.Hr.slice())},fontScale:function(t){if(!arguments.length)return this.Lr||100;if(t!=(this.Lr||100)){var i;if(this.Lr=t,this.textNode)i=void 0!==this.Ur?this.Ur:void 0!==this.Br?this.Br:this.html(),this.html(i),this.Fr();return this}},Fr:function(){this.textNode&&(void 0===this.Or&&(this.Or=parseFloat(t(this.textNode).css("font-size"))||16),this.textNode.style.fontSize=this.Or*this.Lr/100+"px")},kr:function(){var t,i=this.textMargin(),s=this.textContainer.style;if(this.yr){if(!this.textNode)return;s.position="relative",s.boxSizing="border-box",s.width="100%",s.height="",s.left="",s.right="",s.top="",s.bottom="",s.padding=0,this.textNode.style.position="relative",t=this.shape.textMargin(this.node.clientWidth,this.node.clientHeight),s.paddingLeft=i[0]+t[0]+"px",s.paddingRight=i[2]+t[2]+"px";var e=(this.shape.shapeSizeForText(this.textNode.clientWidth,this.textNode.clientHeight+i[1]+i[3])[1]-this.node.clientHeight)/2+"px";s.paddingTop=e,s.paddingBottom=e,t=this.shape.textMargin(this.node.clientWidth,this.node.clientHeight),s.paddingLeft=i[0]+t[0]+"px",s.paddingTop=i[1]+t[1]+"px",s.paddingRight=i[2]+t[2]+"px",s.paddingBottom=i[3]+t[3]+"px","middle"===this.vr?s.top=(this.node.clientHeight-this.textContainer.clientHeight)/2+"px":"bottom"===this.vr&&(s.top=this.node.clientHeight-this.textContainer.clientHeight+"px")}else s.position="absolute",s.padding="",s.width="",s.height="",s.boxSizing="",this.textNode&&(this.textNode.style.position="absolute"),t=this.shape.textMargin(this.node.clientWidth,this.node.clientHeight),s.left=i[0]+t[0]+"px",s.top=i[1]+t[1]+"px",s.right=i[2]+t[2]+"px",s.bottom=i[3]+t[3]+"px"},cursor:function(t){return this.shape.cursor(t),this.Ar=t,this.textNode&&(this.textNode.style.cursor=t),this},filterEvent:function(i){var s=!1,e=i.target,n=i.relatedTarget;switch(i.type){case"mouseover":case"mouseout":s=e===this.node||e===this.shape.node||!!n&&t.contains(this.node,n)&&n!==this.node&&n!==this.shape.node;break;case"mousedown":case"touchstart":case"pointerdown":case"MSPointerDown":case"mouseup":case"click":case"dblclick":s=e===this.node||e===this.shape.node}return s},on:function(i,s){return s?(e=i+"-hdl",n=function(t){return s.call(this,t,this.prez())},this.zr||(this.zr={}),this.zr[e]||(this.zr[e]=[]),this.zr[e].push([s,n]),t(this).on(i,n),this):this;var e,n},off:function(i,s){if(!arguments.length)return t(this).off(),delete this.zr,this;var e,n=i+"-hdl",h=this.zr?this.zr[n]:null;if(s){if(h){for(e=h.length-1;e>=0;--e)if(h[e][0]===s){t(this).off(i,h[e][1]),h.splice(e,1);break}h.length||delete this.zr[n]}}else t(this).off(i),this.zr&&delete this.zr[n];return this},show:function(t,i,s){return this.animate(t||he.EffectType.APPEAR,i,s)},hide:function(t,i,s){return this.animate(t||he.EffectType.DISAPPEAR,i,s)},alwaysHide:function(t){var i,s;!this.Xr!=!t&&(t?(this.Xr=!0,(i=this.node.style.display)==(s=this.hideProp())&&(i=void 0)):(delete this.Xr,s=this.Gr),void 0!==s&&(sh.display.set(this,s),this.animProps&&this.animProps.set("display",s)),void 0!==i&&(this.Gr=i));return this},animate:function(t,i,s){"object"!=typeof s&&(s={direction:s});var e=new fh,n=this,h=he.createEffect(this,t,0,i||0,s);if(!h)return this;this.vs(e),e.addChild(h).addChild(new rh(function(){setTimeout(function(){n.ps(e)},0),s.callback&&s.callback.call(n)},{startTime:e.duration(),duration:0}));var r=this.prez();return e.startTime(r.timeline.totalTime()),r.timeline.addChild(e),e.setup(),e.play(0),this},visible:function(){return"none"!==this.node.style.display},disable:function(t){arguments.length||(t=!0);var i=this.us.flags();return t?i|=x:i&=~x,this.us.flags(i),this},hasStateFlag:function(t){var i=!1;if(this.us){var s,e,n=this.us;for(s=0,e=n.ks.length;s<e;++s)if((n.ks[s].p&t)==t){i=!0;break}}return i},enable:function(t){return arguments.length||(t=!0),this.disable(!t)},disabled:function(){return(this.us.flags()&x)===x},enabled:function(){return!this.disabled()},cleanup:function(){var i,s,e=this.Vr,n=this.children;if(e){for(i=0,s=e.length;i<s;++i)e[i].remove();delete this.Vr}for(this.node.rlDragCtrl&&(t(this.node).draggable("destroy"),delete this.node.rlDragCtrl),this.node.rlDropCtrl&&delete this.node.rlDropCtrl,this.Yr&&(this.prez().vars.removeObserver(this.Yr),delete this.Yr,delete this.Br),this.Dn&&this.Dn.cleanup(),i=0,s=n.length;i<s;++i)n[i].cleanup();return this},vs:function(t){t&&(t.slide=this.slide,this.Vr?this.Vr.push(t):this.Vr=[t])},ps:function(t){if(t&&(t.remove(),this.Vr)){var i=this.Vr.indexOf(t);i>=0&&this.Vr.splice(i,1)}return this},uh:function(t){var i,s=this.Vr;if(s)for(i=s.length-1;i>=0;--i)if(t(s[i]))return s[i];return null},ds:function(t){var i,s=[],e=this.Vr;if(e)for(i=e.length-1;i>=0;--i)t(e[i])&&s.push(e[i]);return s},cs:function(t){var i=this.slide.Ms.time();t?(void 0!==this.$r&&(this.$r>=i&&delete this.fs,delete this.$r),!1!==this.fs&&(this.ns(!0,!0)||this.Wr)?(this.Wr&&delete this.Wr,this.fs=!0,this.slide.Ms.pause(!0)):!1===this.fs&&delete this.fs):(this.fs&&this.slide.Ms.pause(!1),this.fs=!1,this.$r=i)},jr:function(i){var s,e=this.slide.Ms.timeline,n=this,h=this.prez(),r=function(){n.ns(!0,!0)&&(n.disable(),h&&!h.ended&&t(n).triggerHandler("ap-timeout"))};i>0?(s=new fh({startTime:0}),this.vs(s),s.addChild(new rh(r,{startTime:e.totalTime()+i})),e.addChild(s,!0)):r()},savedData:function(t){var i,s=this.slide.savedData(t);return s&&(i=s[this.ks.i],t&&!i&&(i=s[this.ks.i]={})),i},submit:function(){if(this.prez()&&this.prez().ended)return this;var t,i,s,e=this.children;for(t=0,i=e.length;t<i;++t)(s=e[t]).ns(!0,!1)&&s.submit();return this},clear:function(t,i){if(this.prez()&&this.prez().ended&&!i)return this;this.dropHelper&&this.dropHelper.clear();var s,e,n,h=this.children;for(s=0,e=h.length;s<e;++s)n=h[s],t&&!n.ns(!0,!1)||n.clear(t,i);return this},restore:function(t){t||(t=this.savedData()),this.ks.rs&&t&&void 0!=t.st&&this.us&&(this.state(t.st),this.Mn());var i,s,e=this.children;for(i=0,s=e.length;i<s;++i)e[i].restore();return this},score:function(){var t=this.savedData();return t&&t.p?t.p:0},attempts:function(){var t=this.savedData();return t&&t.a||0},Qr:function(t){var i=this.maxAttempts();i>=0&&t>=i&&this.disable()},maxAttempts:function(t){var i=this.ks.e;return arguments.length?(i||(i=this.ks.e={}),i.a=t<0?-1:t,this.Qr(this.attempts()),this):i&&void 0!==i.a?i.a:-1},Kr:function(i,s,e,n,h,r,a){var o,u=!1,c=!1;switch(s){case At.xi:c=!0,o="ap-correct";break;case At.Si:c=!0,o="ap-incorrect";break;case At.Ti:o="ap-complete";break;case At.Ei:u=!0,o="ap-incomplete";break;default:return}var f=this.prez();if(i.r=s,i.v=e,void 0!==n){if(i.p=n,s==At.Si){var l=f.vars.get("apScoreSubtract");void 0!==l&&(i.sp=l)}}else delete i.p,delete i.sp;if(h?i.n=1:delete i.n,a?i.d=a:delete i.d,c&&!u&&(i.a?++i.a:i.a=1,this.disabled()||(this.Qr(i.a),this.disabled()&&(this.Wr=!0))),f){if(f.lms)if(u||h)f.lms.storeSuspendData(f.gs,!0);else{var d=this.ks,p=f.learnerResponse(this.slide.ks,d,i),v=f.correctResponses(this.slide.ks,d),m={reportid:d.r,kind:d.k,type:d.t,multiline:d.f&ht.ft,name:d.n};f.lms.storeInteractionData(m,s,i.p,p,v)}var b=f.vars;b.notifyObservers("apQuizScore"),b.notifyObservers("apQuizScorePercentage"),b.notifyObservers("apQuizPassed"),b.notifyObservers("apQuizPassedBool"),b.notifyObservers("apQuizTakenInteractions"),b.notifyObservers("apQuizUnTakenInteractions"),b.notifyObservers("apQuizCorrectInteractions"),b.notifyObservers("apQuizIncorrectInteractions"),b.notifyObservers("apDetailedResult"),b.notifyObservers("apDetailedResult2")}t(this).triggerHandler(t.Event(o),{value:r})},ns:function(t,i,s){var e=this.prez().ns(s)&&(!t||this.visible())&&this.enabled();if(i&&e)for(var n=this.parent;n;){if(t&&!n.visible()||!n.enabled()){e=!1;break}n=n.parent}return e},qr:function(){if(this.Dn){var i,s,e=["play","pause","ended"],n=["ap-play","ap-pause","ap-ended"],h=this,r=function(i){return function(){t(h).triggerHandler(t.Event(i),{})}};for(i=0,s=e.length;i<s;++i)this.Dn.ah(e[i],r(n[i]))}},name:function(){return this.ks.n||""},Jr:function(){this.Zr&&this.node&&(this.node.removeChild(this.Zr),delete this.Zr),this.ia&&this.node&&(this.node.removeChild(this.ia),delete this.ia),this.sa&&this.node&&(this.node.removeChild(this.sa),delete this.sa),this.slide.ea&&this.slide.node&&(this.slide.node.removeChild(this.slide.ea),delete this.slide.ea)},ys:function(t){var i,s,e,n=this.children;for(i=0,s=n.length;i<s;++i)(e=n[i]).ys&&e.ys(t);return this},na:function(t,i){t&&(t.style.position="absolute","top-center"===i?(t.style.left="50%",t.style.transform="translateX(-50%) translateY(-100%)",t.style.textAlign="center"):"middle-right"===i?(t.style.left="100%",t.style.top="50%",t.style.transform="translateY(-50%)",t.style.textAlign="left"):"bottom-center"===i?(t.style.left="50%",t.style.top="100%",t.style.transform="translateX(-50%)",t.style.textAlign="center"):"middle-left"===i?(t.style.top="50%",t.style.transform="translateX(-100%) translateY(-50%)",t.style.textAlign="right"):"bottom-left"===i?(t.style.top="100%",t.style.textAlign="left"):(t.style.top="50%",t.style.left="50%",t.style.transform="translateX(-50%) translateY(-50%)",t.style.textAlign="center"))},ha:function(t,i){var s=Zi.createElement("div");s.style.position="absolute",s.style.background=t===At.xi?"#2fae62":t===At.Si?"#d15327":"#e47c30",s.style.width="100%",s.style.height="40px",s.style.top="100%",s.style.transform="translateY(-100%)";var e=Zi.createElement("div"),n=Zi.createTextNode(i);return e.style.color="white",e.style.left="50%",e.style.top="50%",e.style.position="absolute",e.style.transform="translate(-50%, -50%)",e.appendChild(n),s.appendChild(e),s},ra:function(t,i,s){var e=!1;if(Array.isArray(i)){for(var n="",h=0,r=i.length;h<r;++h)n+=i[h],h<r-1&&(n+=", ");i=n,e=!0}var a=Zi.createElement("div");a.style.position="absolute",a.style.background=t?"#2fae62":"#d15327",a.style.backgroundClip="padding-box",a.style.borderRadius="32px",a.style.border="1px solid #ffffff";var o=Zi.createElement("div"),u=Zi.createTextNode(i);if(o.style.color="white",e){a.style.display="inline-flex",a.style.padding="8px";var c=Zi.createElement("div"),f=this.slide.prez();c.innerHTML=t?f.ks.playerIcons.correct:f.ks.playerIcons.incorrect,c.getElementsByTagName("svg")[0].style.stroke="rgba(255, 255, 255, 0.3)",a.appendChild(c)}else a.style.height=a.style.width="32px",o.style.left="50%",o.style.top="50%",o.style.position="absolute",o.style.transform="translate(-50%, -50%)";return o.appendChild(u),a.appendChild(o),this.na(a,s),a},aa:function(t,i){var s=this.slide.prez(),e=Zi.createElement("div");return e.innerHTML=t?s.ks.playerIcons.correct:s.ks.playerIcons.incorrect,this.na(e.firstChild,i),"middle-left"==i?e.firstChild.style.marginLeft="-3px":"middle-right"==i&&(e.firstChild.style.marginLeft="3px"),e.firstChild},oa:function(t,i){if(t&&t.length>0){var s=this.shape&&"none"!==this.shape.ua&&this.shape.fa?this.shape.fa:0,e=Zi.createElement("div"),n=Zi.createElement("span"),h=Zi.createTextNode(this.slide.prez().ui.Ps.text("Correct Values")+": ");if(n.appendChild(h),n.style.color="#30ae63",n.style.fontWeight="900","bottom-left"==i&&(n.innerHTML+="<br />"),t.length>1&&"bottom-left"==i){e.appendChild(n);for(var r=Zi.createElement("ul"),a=0;a<t.length;a++){var o=Zi.createElement("li");o.innerText=t[a],r.appendChild(o)}e.appendChild(r)}else e.appendChild(n),(n=Zi.createElement("span")).innerText=t.join(", "),e.appendChild(n);return-1!=i.indexOf("middle")?(e.style.display="inline-table",e.style.whiteSpace="nowrap","middle-right"==i&&(e.style.marginLeft=-Wi(s/2)+"px")):e.style.padding="5px",e.style.backgroundColor="rgba(255, 255, 255, 0.9)","bottom-left"==i&&(e.style.marginTop=Wi(s/2)+"px",e.style.border="10px solid rgba(255, 255, 255, 0.9)",e.style.borderRadius="4px",e.style.boxShadow="0 3px 1px -2px rgba(0,0,0,.2), 0 2px 2px 0 rgba(0,0,0,.14), 0 1px 5px 0 rgba(0,0,0,.12)"),this.na(e,i),e}},la:function(s,e){var n=!!s;if(!s){s=s||{};var h=this.node.style;s.left=parseInt(h.width)+"px",s.top="0px"}var r=this,a=this.shape&&"none"!==this.shape.ua&&this.shape.fa?this.shape.fa:0,o=Zi.createElement("div");o.className="ap-correct-values-dropdown",this.node.appendChild(o),o.style.display="inline-table",o.style.marginLeft=-Wi(a/2)+"px";var u=o.style;if(u.fontFamily="Arial",u.fontSize="16px",u.height="18px",u.position="absolute",u.textAlign="left",n&&""==s.transform)u.top="0",u.left="0",u.transform="0",u.left=parseInt(s.width)+parseInt(s.left)+5+"px",u.top=s.top;else{u.top="50%",u.left="100%";var c="translateY(-50%)";n&&(c+=" ",c+="translateX(18px)"),u.transform=c,u.marginLeft="3px",u.marginTop="3px"}u.pointerEvents="visiblePainted",u.cursor="pointer";var f=Zi.createElement("div");f.className="ap-correct-values-dropbtn",f.innerHTML=this.slide.prez().ks.playerIcons.correctvalues,f.classList.add("ap-no-select"),t(f).css("color","white"),t(f).css("padding","0px"),t(f).css("border","none"),t(f).css("cursor","auto");var l=Zi.createElement("div");l.className="ap-correct-values-dropdown-content",o.appendChild(f),o.appendChild(l);var d=Zi.createElement("div"),p=this.slide.prez().ui.Ps.text("Correct Values");d.innerHTML=p+":",l.appendChild(d),d.classList.add("ap-no-select");var v=Zi.createElement("ul");l.appendChild(v),t(v).css("margin","2px 2px"),t(v).css("padding","0px 10px 0px 15px");var m=t(d).css("font-size"),b=(m=parseInt(m))/16*7.7*p.length;d.style.width=b+"px";for(var w=0;w<e.length;++w){var g=Zi.createElement("li");g.classList.add("ap-no-select"),v.appendChild(g),m=t(g).css("font-size");var y=5+(m=parseInt(m))/16*7.7*e[w].length;b<y&&(b=y),g.style.width=b+"px",g.innerText=e[w]}return n&&""==s.transform&&(s.left=parseInt(s.left)-o.clientWidth-5+"px",u.left=parseInt(s.width)+parseInt(s.left)+5+"px"),t(Zi).on("click",function(i){function s(t){for(var i=t.parentNode;i&&(!i.classList||!i.classList.contains("ap-correct-values-dropdown"));)i=i.parentNode;return i}for(var e=s(i.target),n=t(e).find(".ap-correct-values-dropdown-content"),h=t(this).find(".ap-correct-values-dropdown-content"),r=0;r<h.length;++r){var a=h[r];if(!(n&&n.length>0&&a==n[0])){var o=s(a);o&&(o.style.zIndex="auto"),a.style.display="none"}}}),t(o).on("click",function(s){for(var e=t(this).find(".ap-correct-values-dropdown-content"),n=0;n<e.length;++n){var h=e[n],a=h.style;"block"==a.display?(this.style.zIndex="auto",a.display="none"):(this.style.zIndex=1e3,a.display="block");var o=0,u=h.children[0],c=t(u).apInputTagAutoWidth();o=Bi(c,o);for(var f=t(h).find("li"),l=0;l<f.length;++l){var d=f[l],p=t(d).apInputTagAutoWidth()+5;o=Bi(p,o)}for(l=0;l<f.length;++l){(d=f[l]).style.width=o+"px"}u.style.width=o+"px",r.ks.k!=i.Y&&(a.right="0")}}),o},fillSolid:function(t,i,s,e){return this.shape.fillSolid(t,i,s,e),this},userSelection:function(i){return arguments.length?(i?t(this.node).removeClass("ap-no-select"):t(this.node).addClass("ap-no-select"),this):t(this.node).classList.contains("ap-no-select")}}),Le={_default:function(t,i){return new Oe(t,i)}};function Fe(t){for(var i=arguments.length;--i>0;)Le[arguments[i]]=t}function Ue(t,s,e){if(s&&e&&void 0!==e.m){var n=Qt[s.Ms.options.playMode];if(!((e.m&n)==n)&&e.k!=i.C&&e.k!=i.I)return null}var h=Le[t]||Le._default;return h?h.apply(null,Array.prototype.slice.call(arguments,1)):null}var Ye=Ls(Oe,{$init:function(e,n){var h=e.defaultCtrlData();h.k=i.G,h.t=s.K,h.margin=n.margin,h.ti=-1;var r=[],a=void 0;if(e.ks.ca&&(a=e.ks.ca.r||{}),e.ks&&e.ks.h)for(var o=0;o<e.ks.h.length;o++){var u={};u.r=[0,h.margin,0,0,2,1],a&&a.length&&a.length==e.ks.h.length&&a[o]&&(u.f=a[o].f||100),r.push(u)}h.s=[{t:["<span></span>",n.textStyle[0],n.textStyle[1]],f:n.fill,w:r,a:0}],Oe.prototype.$init.call(this,e,h),this.node.style.zIndex=$t.Oi,Ns(this.node.style),t(this.node).css("visibility",e.Ms.Ye?"visible":"hidden")},onResized:function(t,i){if(this.da&&!0===this.da)Oe.prototype.onResized.call(this,t,i);else{var s=this.slide.width(),e=this.slide.height();this.node.style.width=Math.max(s-2*this.ks.margin,0)+"px",this.node.style.height=Math.max(e-2*this.ks.margin,0)+"px";var n=this.innerTextNode(),h=n?n.width()+this.Hr[0]+this.Hr[2]+1:0,r=n?n.height()+this.Hr[1]+this.Hr[3]+1:0;this.node.style.width=h+"px",this.node.style.height=r+"px";for(var a=0;a<this.ks.s.length;a++){var o=this.ks.s[a].w;for(a=0;a<o.length;a++)o[a].r[2]=h,o[a].r[3]=r}this.us&&this.us.layout(),this.da=!0,Oe.prototype.onResized.call(this,t,i),this.da=!1}},innerTextNode:function(){return t("span",t(this.textNode)).first()},onLayoutSwitched:function(){if(Oe.prototype.onLayoutSwitched.call(this),this.pa){var i=this.innerTextNode();t(i).html(this.pa||""),this.onResized(0,0)}}});Fe(function(t,i){return new Ye(t,i)},i.G);var Be=Ls(Oe,{$init:function(t,i){if(this.va=0,this.ma=0,this.ba=!1,this.wa=!1,Oe.prototype.$init.call(this,t,i),this.ks.tmp.type==_i){var s=this.shape,e=s?s.node:void 0;s&&s.shapeNode;if(e){var n=e.querySelector("defs");n||(n=Zi.createElementNS(Di,"defs"),e.appendChild(n));var h=Zi.createElementNS(Di,"mask");h.id=s.container.id?s.container.id+"-masktimer":"ap-masktimer-"+ee();var r=Zi.createElementNS(Di,"rect");r.setAttribute("x",0),r.setAttribute("y",0),r.setAttribute("width",s.container.clientWidth),r.setAttribute("height",s.container.clientHeight),r.setAttribute("fill","white"),h.appendChild(r);var a=Zi.createElementNS(Di,"path"),o=In[s.os];if(o&&o[0]){var u=s.container.clientWidth,c=s.container.clientHeight,f=new Rn;o[0].apply(f,[0,0,u,c]),a.setAttribute("d",f.path()),a.setAttribute("fill","black"),h.appendChild(a)}n.appendChild(h),s.ga&&s.ga.setAttribute("mask","url(#"+h.id+")"),s.ya=h}}this.prez().registerTimer(this)},Ch:function(t,i){this.ka(),i&x&&this.pauseTimer()},restore:function(t){return Oe.prototype.restore.call(this,t),t||(t=this.savedData()),t&&t.tm&&(this.ba=t.tm.s,this.ma=t.tm.v,this.wa=t.tm.as,this.va=this.prez().elapsedTime()-this.ma,this.ka()),this},cleanup:function(){return this.prez().unregisterTimer(this),Oe.prototype.cleanup.call(this)},startTimer:function(){this.ba||(this.ma&&this.ma!=this.ks.tmp.duration||(this.ma=0),this.ba=!0,this.va=this.prez().elapsedTime()-this.ma,this.tick())},pauseTimer:function(){this.ba&&(this.ba=!1,this._a())},stopTimer:function(){this.ba=!1,this.ma=0,this._a(),this.ka()},_a:function(){this.savedData(!0).tm={s:this.ba,v:this.ma,as:this.wa}},tick:function(){this.ba&&!this.prez().ended&&(this.ma=this.prez().elapsedTime()-this.va,this.ma>=this.ks.tmp.duration&&(this.ma=this.ks.tmp.duration,this.ba=!1),this._a(),this.ka(),this.ma==this.ks.tmp.duration&&t(this).triggerHandler("ap-timer-complete"))},ka:function(){var t=this.ks.tmp.type,i=this.ks.tmp.subType,s=this.ks.tmp.countdown,e=this.ks.tmp.duration,n=s?e-this.ma:this.ma,h=this.shape,r=n/e;if(t==ki){var a,o,u,c="";if(i==Ti?(o=s?Math.ceil(n/1e3):Math.floor(n/1e3),u=Math.floor(o/60),c=("00"+Math.floor(u/60)).toString().slice(-2)+" : "+("00"+u%60).toString().slice(-2)+" : "+("00"+o%60).toString().slice(-2)):i==xi?(u=s?Math.ceil(n/1e3/60):Math.floor(n/1e3/60),c=("00"+Math.floor(u/60)).toString().slice(-2)+" : "+("00"+u%60).toString().slice(-2)):i==Si?(o=s?Math.ceil(n/1e3):Math.floor(n/1e3),c=("00"+(u=Math.floor(o/60))).toString().slice(-2)+" : "+("00"+o%60).toString().slice(-2)):i==Ei&&(a=n%1e3,c=("00"+(o=Math.floor(n/1e3))).toString().slice(-2)+" : "+("000"+a).toString().slice(-3)),c!=this.text()){var f=!!this.textNode;this.html(c),!f&&this.Th&&this.yr&&this.onResized()}}else if(t==_i&&h&&h.ya){var l=h.ya.querySelector("path");if(l){var d=In[h.os],p="none"!==h.ua?h.fa:0,v=p%2==0?0:1,m=$i(p/2);if(d&&d[0]){var b=h.container.clientWidth-2*m-2*v,w=h.container.clientHeight-2*m-2*v,g=new Rn;d[0].apply(g,[b*r+v+m,m+v,b-b*r,w].concat(h.Ta)),l.setAttribute("d",g.path())}}}}});Fe(function(t,i){return new Be(t,i)},i.U);var He=Ls(Oe,{$init:function(i,s){Oe.prototype.$init.call(this,i,s),this.node.setAttribute("role","button");var e=this;t(this.node).on("mousedown",function(t){e.filterEvent(t)||(Qs(t,!0),e.xa=!0,setTimeout(function(){e.xa&&(e.ns(!1,!0)&&e.us.flags(e.us.flags()|_),delete e.xa)},0))}).on("mouseup",function(){e.xa&&delete e.xa,e.us.flags(e.us.flags()&~_)}).on("keydown",function(i){i.which!==Js.SPACE&&i.which!==Js.ENTER||!e.ns(!1,!0)||e.us.has(_)||(i.preventDefault(),i.stopPropagation(),t(e.textNode||e.shape.shapeNode).trigger(t.Event("mousedown",{pageX:0,pageY:0})))}).on("keyup",function(i){i.which!==Js.SPACE&&i.which!==Js.ENTER||(i.preventDefault(),i.stopPropagation(),t(e.textNode||e.shape.shapeNode).trigger(t.Event("mouseup",{pageX:0,pageY:0})))}),this.on("ap-rollover",function(t){this.ns(!1,!0)&&(this.us.has(E)||this.us.flags(this.us.flags()|T))}).on("ap-rollout",function(){e.xa&&delete e.xa,this.us.has(E)||this.us.flags(this.us.flags()&~(T|_))})}});Fe(function(t,i){return new He(t,i)},i.M);var ze=Ls(Oe,{$init:function(t,i){Oe.prototype.$init.call(this,t,i),this.on("ap-dblclick",function(t,i){this.ns(!1,!0)&&this.submit(t.value,!1)});var s=t.Ms.options.playMode;"Tutorial"!==s&&"Practice"!==s||this.on("ap-incorrect",function(){this.or(!0)})},xr:function(){this.slide.Bn.push(this),Oe.prototype.xr.call(this)},submit:function(t,i){if(this.prez()&&this.prez().ended)return this;if(!arguments.length)return this;var s=this.ks.e||{},e=s.f,n=(e&Mt)!==Mt,h=n,r=h&&(e&Et)===Et,a=0,o=s.v||[],u=At.Si,c=-1;if(i||(o.length?c=o.indexOf(t):qs.code(t)!==Zs.OUTSIDE&&(c=0)),c>=0)u=At.xi,h&&s.m&&(a=r?s.m[c]||0:s.m);else if(i&&Js.shouldIgnoreIncorrect(t))return this;return this.Kr(this.savedData(!0),u,t,h?a:void 0,!n,t),this},restore:function(t){return Oe.prototype.restore.call(this,t),t||(t=this.savedData()),t&&void 0!==t.a&&this.Qr(t.a),this},ys:function(t){t=t||{};var i=this.ks.e||{},s=i.f||0,e=i.v||[],n=(s&xt)===xt,h=this.savedData();if(n){Oe.prototype.Jr.call(this);var r=h&&h.r===At.xi,a=null;if(r&&t.showCorrect||!r&&t.showIncorrect){var o=this.aa(r,"middle-right");o&&(this.node.appendChild(o),r?this.node.Zr=o:this.node.ia=o,a=o.style),this.or(!0)}if(t.showValues){if(e.length>0){for(var u=[],c=0;c<e.length;c++)u.push(Zs.name(e[c],this.slide.prez().ui.Ps));var f=Oe.prototype.la.call(this,a,u);f&&(this.sa=f)}this.or(!0)}if(t.showResult){var l=At.Ei;h&&void 0!==h.r&&(l=h.r);var d=this.ha(l,this.slide.prez().responseResultString(l));d&&(this.slide.node.appendChild(d),this.slide.ea=d)}}}}),Xe=Ls(Oe,{$init:function(i,s){Oe.prototype.$init.call(this,i,s);var e=this;t(this.node).on("mousedown",function(t){e.filterEvent(t)||(Qs(t,!0),Zs.fromTouch&&e.ns(!1,!0)&&e.submit(Zs.combinedCode(t),t.originalEvent||t))}).on("keydown keyup",function(t){if(Js.hasKeydown(t.which)===("keydown"===t.type)){var i=!0,s=Js.combinedCode(t);if(e.ns(!1,!0)){var n=e.Hn(s,!0);i=n.result!==At._i,e.submit(n,t.originalEvent||t)}else i=Js.shouldPreventDefault(s,!1,!0);i&&Js.preventDefault(t)}t.stopPropagation()});var n=i.Ms.options.playMode;"Tutorial"!==n&&"Practice"!==n||this.on("ap-incorrect",function(){this.or(!0)})},xr:function(){this.slide._n.push(this),Oe.prototype.xr.call(this)},submit:function(i,s){if(this.prez()&&this.prez().ended)return this;if(!arguments.length)return this;var e=s.type.indexOf("key")>=0,n="object"==typeof i?i:this.Hn(i,e);return e&&t(this).triggerHandler(t.Event("ap-keypress",{value:n.answer,originalEvent:s})),n.result!==At._i&&this.Kr(this.savedData(!0),n.result,n.answer,n.score,!n.report,n.answer),this},Hn:function(t,i){var s=this.ks.e||{},e=s.f,n=(e&Mt)!==Mt,h=n,r=h&&(e&Et)===Et,a=0,o=s.v||[],u=At.Si,c=-1;return i?c=o.length?o.indexOf(t):0:qs.code(t)!==Zs.OUTSIDE&&(c=0),c>=0?(u=At.xi,h&&s.m&&(a=r?s.m[c]||0:s.m)):i&&Js.shouldIgnoreIncorrect(t)&&(u=At._i),{result:u,answer:t,score:h?a:void 0,report:n}},restore:function(t){return Oe.prototype.restore.call(this,t),t||(t=this.savedData()),t&&void 0!==t.a&&this.Qr(t.a),this},ys:function(t){t=t||{};var i=this.ks.e||{},s=i.f||0,e=i.v||[],n=(s&xt)===xt,h=this.savedData();if(n){Oe.prototype.Jr.call(this);var r=h&&h.r===At.xi,a=null;if(r&&t.showCorrect||!r&&t.showIncorrect){var o=this.aa(r,"middle-right");o&&(this.node.appendChild(o),r?this.Zr=o:this.ia=o,a=o.style),this.or(!0)}if(t.showValues){for(var u=[],c=0;c<e.length;c++)u.push(qs.name(e[c],this.slide.prez().ui.Ps));var f=Oe.prototype.la.call(this,a,u);f&&(this.sa=f),this.or(!0)}if(t.showResult){var l=At.Ei;h&&void 0!==h.r&&(l=h.r);var d=this.ha(l,this.slide.prez().responseResultString(l));d&&(this.slide.node.appendChild(d),this.slide.ea=d)}}},ns:function(t,i,s){return(!this.prez()||!this.prez().ended)&&Oe.prototype.ns.call(this,t,i,s)}}),Ge=Ls(Oe,{$init:function(t,i){Oe.prototype.$init.call(this,t,i)}});function Ve(t){return arguments.length?(this.textNode||this.Dr(),this.textNode.value=t+"",this.Sa(),this):this.textNode&&this.textNode.value||""}function $e(){return[this.Ea.firstCorrectValue()]}Fe(function(t,i){return i.t===s.j?new Xe(t,i):i.t===s.V?new ze(t,i):i.t===s.B?new Ge(t,i):void 0},i.C);var We=Ls(Oe,{$init:function(i,s){this._h=!0,s.v&&(this.Ma=s.v),Oe.prototype.$init.call(this,i,s),this.Dr(),this.Ca();var e=this;t(this.node).on("mousedown",function(t){e.ns(!1,!0)?e.filterEvent(t)||(Qs(t,!0),t.target!==e.textNode&&(t.preventDefault(),e.textNode.focus())):t.preventDefault()}),t(this.textNode).on("focus",function(i){e.ns(!1,!0)?e.prez()&&e.prez().highlightFocus()&&t(e.node).addClass("ap-focused"):i.preventDefault()}).on("blur",function(i){e.ns(!1,!0)?t(e.node).removeClass("ap-focused"):i.preventDefault()})},Cr:function(){var i,s,e=this.ks.f;e&ht.ft?i=Zi.createElement("textarea"):((i=Zi.createElement("input")).type=e&ht.ct?"password":"text",i.autocomplete="off"),i.spellcheck=!1,(s=i.style).border="none",s.margin=s.padding=0,s.backgroundColor="transparent",s.outline="none",this.disabled()&&(i.disabled=!0);var n=this.Pa(),h=this;return n===Pt?t(i).on("input",function(t){if(h.ns(!1,!0)){var i=h.Hn();i.answer!==i.prevValue&&(i.result===At.xi||i.result===At.Ti||i.result===At.Si&&i.prevValue.substr(0,i.answer.length)!==i.answer)&&h.submit(i)}}):n>0&&t(i).on("keydown keyup",function(t){Js.hasKeydown(t.which)===("keydown"===t.type)&&Js.combinedCode(t)===n&&h.ns(!1,!0)&&(Js.preventDefault(t),t.stopPropagation(),h.submit())}),i},rr:function(t){isNaN(t)||(this.Dr(),-2==t?this.textNode.tabIndex=-1:-1==t?this.textNode.removeAttribute("tabIndex"):this.textNode.tabIndex=t)},html:Ve,text:Ve,value:Ve,caseSensitive:function(){return(this.ks.f&ht.lt)===ht.lt},Rr:function(){var t=Oe.prototype.Rr.call(this)+"border: none; margin: 0; padding: 0; background: transparent; width: 100%; outline: none;";return this.ks.f&ht.ft&&(t+=" height: 100%; resize: none;"),t},clear:function(t,i){return this.prez()&&this.prez().ended&&!i?this:this.text("")},restore:function(t){return Oe.prototype.restore.call(this,t),t||(t=this.savedData()),t&&void 0!==t.a&&this.Qr(t.a),this.text(t&&t.v||"")},Ch:function(t,i){this.textNode&&(this.textNode.disabled=(i&x)==x)},Pa:function(){var t=this.ks.e||{},i=t.s||Pt;return t.f&(xt|St)||(i=Pt),i},submit:function(t){if(this.prez()&&this.prez().ended)return this;if(!t){if(this.Pa()===Pt)return this;t=this.Hn()}return t.result===At.Mi&&(t.result=At.Si),t.result!==At._i&&this.Kr(this.savedData(!0),t.result,t.answer,t.score,!t.report,t.answer),this},Hn:function(){var i=this.ks.e||{},s=i.f,e=(s&xt)===xt,n=(s&Mt)!==Mt,h=e&&n,r=h&&(s&Et)===Et,a=0,o=this.value(),u=At._i;if(e){var c,f,l,d=!this.caseSensitive(),p=d?o.toUpperCase():o,v=i.v||[""],m=-1;for(u=At.Si,f=0,l=v.length;f<l;++f){if(c=v[f],d&&(c=c.toUpperCase()),p===c){m=f,u=At.xi;break}c.substr(0,p.length)===p&&p.length<c.length&&(u=At.Mi)}u===At.xi?h&&i.m&&(a=r?i.m[m]||0:i.m):o||(u=At.Ei)}else s&St&&(u=o?At.Ti:At.Ei);o!==this.Ia&&(this.Sa(),t(this).triggerHandler(t.Event("ap-textenter",{value:o})));var b={result:u,answer:o,score:h?a:void 0,report:n,prevValue:this.Ia||""};return this.Ia=o,b},Sa:function(){if(this.Ma&&this.prez()){var t=this.textNode.value,i=this.prez().vars;i.os(this.Ma)==wi.NUMBER&&(t=Number(t)),i.set(this.Ma,t)}},firstCorrectValue:function(){var t=this.ks.e;return t&&t.v&&t.v.length>0&&t.v[0]?t.v[0]:""},Ca:function(){var t=this.slide,i=t.Ms.options.playMode||"",s=this.ks.e.f||0;if("Demo"===i&&(s&xt)===xt){for(var e=t.re,n=0,h=0,r=null,a=null,o=(t.ks.tl[0]||null)[2],u=0,c=null!==o?o.length:0;u<c;++u)if(o[u][0]==this.ks.i){for(var f=o[u][1],l=0,d=null!==f?f.length:0;l<d;++l){var p=f[l];if(p&&p[0]>=he.EffectType.ENTRANCE_START&&p[0]<=he.EffectType.ENTRANCE_END&&!r?r=p:p&&p[0]>=he.EffectType.EXIT_START&&p[0]<=he.EffectType.EXIT_END&&!a&&(a=p,r&&r[1]>0&&a[0]===he.EffectType.DISAPPEAR&&a[1]<r[1]&&(a=null)),r&&a)break}break}var v,m=n=r?r[1]:0,b=h=a?a[1]+a[2]-n:t.ks.d-n,w=h-500;if(r)(v=r[2])>0&&(v>b&&(v=b),b-=v,m+=v,w-=v);if(a)(v=a[2])>0&&(v>b&&(v=b),w-=v);var g=new ah(this,"text",{startTime:m,duration:w,tweenParams:[$e],tweenType:jt.Gi});return g&&e.addChild(g),this}},ys:function(t){t=t||{};var i=(((this.ks.e||{}).f||0)&xt)===xt,s=this.savedData();if(i){Oe.prototype.Jr.call(this);var e=s&&s.r===At.xi,n=null;if(e&&t.showCorrect||!e&&t.showIncorrect){var h=this.aa(e,"middle-right");h&&(this.node.appendChild(h),e?this.Zr=h:this.ia=h,n=h.style)}if(t.showValues){var r=(this.ks.e||{}).v||[""],a=Oe.prototype.la.call(this,n,r);a&&(this.sa=a)}if(t.showResult){var o=At.Ei;s&&void 0!==s.r&&(o=s.r);var u=this.ha(o,this.slide.prez().responseResultString(o));u&&(this.slide.node.appendChild(u),this.slide.ea=u)}}},ns:function(t,i,s){return(!this.prez()||!this.prez().ended)&&Oe.prototype.ns.call(this,t,i,s)}});Fe(function(t,i){return new We(t,i)},i.S);var je=Ls(Oe,{$init:function(t,i){Oe.prototype.$init.call(this,t,i);var s=t.Ms.options.playMode;"Tutorial"!==s&&"Practice"!==s||this.on("ap-incorrect",function(){this.or(!0)})},submit:function(t){if(this.prez()&&this.prez().ended)return this;if(!t)return this;var i=this.ks.e||{},s=i.f,e=(s&Mt)!==Mt,n=e,h=n&&(s&Et)===Et,r=!1,a=0,o=t;if(this.dropHelper.droppedObjects().indexOf(t)<0){if(!this.dropHelper.accepted(t)||this.dropHelper.droppedObjects().length)return this;r=!1,t=null}else{var u=(i.v||[]).indexOf(t.id());u>=0?(r=!0,n&&i.m&&(a=h?i.m[u]||0:i.m)):r=!1}var c,f=this.savedData(!0),l=r?I:R;o&&o.hasStateFlag(l)&&o.us.flags(l),this.hasStateFlag(l)&&this.us.flags(l),this.dropHelper.absolutePosition()&&t&&t.Xh&&(c=[t.Xh.x,t.Xh.y]),this.Kr(f,r?At.xi:At.Si,t?t.id():0,n?a:void 0,!e,t,c);var d=this.maxAttempts();return f.a!=d&&-1!=d||(o.hasStateFlag(l)&&o.savedCurrentState(),this.hasStateFlag(l)&&this.savedCurrentState()),this},restore:function(t){if(this.clear(),!t&&!(t=this.savedData()))return this;if(this.ks.rs&&t.st&&(this.state(t.st),this.Mn()),void 0!==t.a&&this.Qr(t.a),t.v){var i=this.slide.object(t.v),s={x:t.d?t.d[0]:0,y:t.d?t.d[1]:0};if(i){var e=i.savedData();i.ks.rs&&e&&e.st&&(i.state(e.st),i.Mn()),this.dropHelper.drop(i,s,!1)}}return this},ys:function(t){t=t||{};var i=this.ks.e||{},s=i.f||0,e=i.v||[],n=(s&xt)===xt,h=this.savedData();if(n){Oe.prototype.Jr.call(this);var r=h&&h.r===At.xi;if(r&&t.showCorrect||!r&&t.showIncorrect)(u=this.aa(r,"middle-left"))&&(this.node.appendChild(u),r?this.Zr=u:this.ia=u);if(t.showCorrect)for(var a=0;a<e.length;a++){var o,u;if(o=this.slide.object(e[a]))Oe.prototype.Jr.call(o),(u=this.aa(!0,"middle-left"))&&(o.node.appendChild(u),o.Zr=u)}if(t.showIncorrect)if(h&&void 0!==h.v)if(e.indexOf(h.v)<0)if(o=this.slide.object(h.v))Oe.prototype.Jr.call(o),(u=this.aa(!1,"middle-left"))&&(o.node.appendChild(u),o.ia=u);if(t.showResult){var c=At.Ei;h&&void 0!==h.r&&(c=h.r);var f=this.ha(c,this.slide.prez().responseResultString(c));f&&(this.slide.node.appendChild(f),this.slide.ea=f)}(t.showCorrect||t.showValues)&&this.or(!0)}},ns:function(t,i,s){return(!this.prez()||!this.prez().ended)&&Oe.prototype.ns.call(this,t,i,s)}});Fe(function(t,i){return new je(t,i)},i.I);var Qe=Ls(Oe,{$init:function(i,s){this.Ra=16,Oe.prototype.$init.call(this,i,s);var e=this;t(this.node).on("mousedown",function(t){e.filterEvent(t)||(Qs(t,!0),e.xa=!0,setTimeout(function(){e.xa&&(e.ns(!1,!0)&&e.us.flags(e.us.flags()|_),delete e.xa)},0))}).on("mouseup",function(){e.xa&&delete e.xa,e.us.flags(e.us.flags()&~_)}),this.on("ap-rollover",function(t){this.ns(!1,!0)&&this.us.flags(this.us.flags()|T)}).on("ap-rollout",function(){e.xa&&delete e.xa,this.us.flags(this.us.flags()&~(T|_))})},textMargin:function(t,i,s,e){if(!arguments.length){var n=Oe.prototype.textMargin.call(this);if(this.isShowToggleButton()){var h=this.Ra+$i(2*Bi(7,this.Ra/4));if(n[0]+=h,this.yr){var r=this.textContainer?this.textContainer.style:null;r&&(r.paddingTop=n[1]+"px",r.paddingBottom=n[3]+"px"),this.node.clientHeight<h&&(n[1]+=(h-this.node.clientHeight)/2,n[3]+=(h-this.node.clientHeight)/2)}}return n}return Oe.prototype.textMargin.call(this,t,i,s,e)},isShowToggleButton:function(){var t=this.us,i=t.ks[t.te];return i.tg&&!!i.tg[6]},check:function(t){return arguments.length||(t=!0),this.Aa(t,!1),this},Aa:function(i,s){var e=this.us.flags(),n=!1;this.checked()!==i&&(n=!0,i?e|=S:e&=~S),this.us.flags(e),s&&n&&t(this).triggerHandler(i?"ap-check":"ap-uncheck")},checked:function(){return(this.us.flags()&S)===S},Ch:function(t,i){this.node.setAttribute("aria-checked",i&S?"true":"false")},clear:function(t,i){return this.prez()&&this.prez().ended&&!i?this:(this.Aa(!1,!1),this)},setIconSize:function(t){this.Ra!==t&&(this.Ra=t,this.textContainer&&this.kr())},value:function(t){return arguments.length?(this.Aa(t,!1),this):this.checked()},ns:function(t,i,s){return(!this.prez()||!this.prez().ended)&&Oe.prototype.ns.call(this,t,i,s)}}),Ke=Ls(Qe,{$init:function(i,s){Qe.prototype.$init.call(this,i,s),this.node.setAttribute("role","checkbox");var e=this;this.on("ap-click",function(){this.ns(!1,!0)&&this.Aa(!this.checked(),!0)}),t(this.node).on("keydown",function(t){var i;switch(t.which){case Js.SPACE:i=e;break;case Js.TAB:var s=e.node.tabIndex;if(void 0===s||-1==s)break;var n=t.shiftKey?e.Da():e.Na();n&&(n.rr(s),e.rr(-2),t.stopPropagation(),t.preventDefault(),n.ns(!1,!0)&&n.node.focus())}i&&(t.stopPropagation(),t.preventDefault(),i.ns(!1,!0)&&(i.Aa(!i.checked(),!0),i!==e&&i.node.focus()))})},Na:function(){var t=null,i=null,s=!1;if(this.parent&&this.parent!==this.slide){var e=void 0,n=this.parent.savedData();n&&n.s&&(e=n.s);var h,r,a,o=this.parent.children;for(h=0,r=o.length;h<r;++h)if((a=e?o[e.indexOf(h)]:o[h])instanceof Ke){if(!a.disabled()&&(i||(i=a),s)){t=a;break}a===this&&(s=!0)}}return t},Da:function(){var t=null,i=null,s=!1;if(this.parent&&this.parent!==this.slide){var e=void 0,n=this.parent.savedData();n&&n.s&&(e=n.s);var h,r,a=this.parent.children;for(h=a.length-1;h>=0;--h)if((r=e?a[e.indexOf(h)]:a[h])instanceof Ke){if(!r.disabled()&&(i||(i=r),s)){t=r;break}r===this&&(s=!0)}}return t}});Fe(function(t,i){return new Ke(t,i)},i.N);var qe=Ls(Qe,{$init:function(i,s){Qe.prototype.$init.call(this,i,s),this.node.setAttribute("role","radio");var e=this;this.on("ap-click",function(){this.ns(!1,!0)&&!this.checked()&&this.Aa(!0,!0)}),t(this.node).on("keydown",function(t){var i;switch(t.which){case Js.SPACE:i=e;break;case Js.LEFT:case Js.UP:i=e.Oa();break;case Js.RIGHT:case Js.DOWN:i=e.La()}i&&(t.stopPropagation(),t.preventDefault(),!i.checked()&&i.ns(!1,!0)&&(i.Aa(!0,!0),i!==e&&i.node.focus()))})},radioGroup:function(t){return arguments.length?(this.pr=t,this):this.pr},Aa:function(t,i){if(t&&this.parent&&this.parent!==this.slide){var s,e,n,h=this.pr,r=this.parent.children;for(s=0,e=r.length;s<e;++s)(n=r[s])!==this&&n instanceof qe&&n.pr===h&&n.Aa(!1,i)}Qe.prototype.Aa.call(this,t,i),t&&this.parent&&-1===this.node.tabIndex&&this.parent.updateTabIndexGR(this)},Oa:function(){var t=null,i=null,s=!1;if(this.parent&&this.parent!==this.slide){var e=void 0,n=this.parent.savedData();n&&n.s&&(e=n.s);var h,r,a=this.parent.children;for(h=a.length-1;h>=0;--h)if((r=e?a[e.indexOf(h)]:a[h])instanceof qe&&r.pr===this.pr){if(!r.disabled()&&(i||(i=r),s)){t=r;break}r===this&&(s=!0)}}return t||i===this||(t=i),t},La:function(){var t=null,i=null,s=!1;if(this.parent&&this.parent!==this.slide){var e=void 0,n=this.parent.savedData();n&&n.s&&(e=n.s);var h,r,a,o=this.parent.children;for(h=0,r=o.length;h<r;++h)if((a=e?o[e.indexOf(h)]:o[h])instanceof qe&&a.pr===this.pr){if(!a.disabled()&&(i||(i=a),s)){t=a;break}a===this&&(s=!0)}}return t||i===this||(t=i),t}});function Je(){return arguments.length?this:""}Fe(function(t,i){return new qe(t,i)},i.O);var Ze=Ls(Oe,{$init:function(t,i){Oe.prototype.$init.call(this,t,i);var s=this.node.style;this.Ne&&"auto"===s.overflow||(this.node.style.pointerEvents="none")},filterEvent:function(i){var s,e,n=i.target,h=this.children;for(s=h.length-1;s>=0;--s)if((e=h[s]).node===n||t.contains(e.node,n))return e.filterEvent(i);return Oe.prototype.filterEvent.call(this,i)},childById:function(t){var i,s,e=this.children;for(i=e.length-1;i>=0;--i)if(e[i].id()===t){s=e[i];break}return s},html:Je});function tn(t,i){var s,e,n=i.us.Ph(t.us.at());n||(n=i.us.Ph(0)),n&&(t.Ih(n[0],n[1],n[2]),s=t.node.offsetLeft||0,e=t.node.offsetTop||0,(n=t.us.Ph(t.us.at()))&&(t.Ih(n[0],n[1],n[2]),s-=t.node.offsetLeft||0,e-=t.node.offsetTop||0,t.translate(s,e)))}var sn=Ls(Ze,{$init:function(e,n){Ze.prototype.$init.call(this,e,n),this.Fa=this.ks.t;var h,r,a,o=this.children,u=this.ks.e||{};u.v;if((this.ks.e&&this.ks.e.f&Ct||this.Fa==s.rt)&&(this.Ua=!0,this.Ya(),this.Fa!=s.rt&&this.rr(this.ks.ti)),this.Fa===s.ut){var c=0;for(h=0,r=o.length;h<r;++h)(a=o[h]).radioGroup?a.radioGroup(c):++c}else if(this.Fa===s.rt){var f={start:function(i,s){var e=this.rlControl,n=this.style;if(!e||!e.ns(!1,!0)||e.prez()&&e.prez().ended)return!1;if(e.parent&&e.parent.Ne){e.tr=getTransformationMatrix(this.parentNode).inverse(),e.ir=e.tr.transformPoint(s.originalPosition.left,s.originalPosition.top),e.ir.x+=s.originalPosition.left-(parseFloat(this.offsetLeft)||0),e.ir.y+=s.originalPosition.top-(parseFloat(this.offsetTop)||0);var h=e.textContainer,r=h.style;Pe.dragEffect(e,!0);var a=Zi.createElement("div"),o=h.cloneNode(!0);(u=a.style).position="relative",["flexGrow","flexShrink","width","height","alignSelf","margin","order"].forEach(function(t){u[t]=n[t]}),o.style.visibility="hidden",a.appendChild(o),e.Ba={position:n.position,width:n.width,height:n.height,left:n.left,top:n.top},n.width=e.node.offsetWidth+"px",n.height=e.node.offsetHeight+"px",n.position="absolute",e.Ha={position:r.position,padding:r.padding,width:r.width,height:r.height,left:r.left,top:r.top,right:r.right,bottom:r.bottom},["left","top","right","bottom"].forEach(function(t){var i="padding"+t.charAt(0).toUpperCase()+t.slice(1);r[t]=r[i],r[i]=""}),r.position="absolute",r.width="",r.height="",t(a).addClass("ap-ctrl-drop-placeholder"),this.parentNode.appendChild(a),e.za=a,e.hasStateFlag(E)&&e.us.flags(E),t(e).triggerHandler(t.Event("ap-dragstart",{originalEvent:i}))}else{e.Zh={left:n.left,right:n.right,top:n.top,bottom:n.bottom},e.tr=getTransformationMatrix(this.parentNode).inverse(),e.ir=e.tr.transformPoint(s.originalPosition.left,s.originalPosition.top),e.ir.x+=s.originalPosition.left-(parseFloat(t(this).css("left"))||0),e.ir.y+=s.originalPosition.top-(parseFloat(t(this).css("top"))||0),Pe.dragEffect(e,!0);var u;a=Zi.createElement("div");(u=a.style).position="absolute",["left","right","top","bottom","width","height",Cs].forEach(function(t){u[t]=n[t]}),t(a).addClass("ap-ctrl-drop-placeholder"),this.parentNode.appendChild(a),e.za=a,e.hasStateFlag(E)&&e.us.flags(E),t(e).triggerHandler(t.Event("ap-dragstart",{originalEvent:i}))}},stop:function(i,s){var e=this.rlControl;if(e)if(Pe.dragEffect(e,!1),e.parent&&e.parent.Ne){var n,h=e.node.style,r=e.textContainer.style,a=e.Ba,o=e.Ha;h.order=e.sequentialOrder;for(n in a)h[n]=a[n];for(n in o)r[n]=o[n];delete e.Ba,delete e.Ha,(u=e.za)&&u.parentNode&&u.parentNode.removeChild(u),delete e.za,e.hasStateFlag(M)&&e.us.flags(M),delete this.Xa,delete this.Ga,delete this.Va,t(e).triggerHandler(t.Event("ap-dragend",{value:null,originalEvent:i}))}else{var u;tn(e,e.parent.children[e.sequentialOrder]),(u=e.za)&&u.parentNode&&u.parentNode.removeChild(u),delete e.za,e.hasStateFlag(M)&&e.us.flags(M),t(e).triggerHandler(t.Event("ap-dragend",{value:null,originalEvent:i}))}},drag:function(t,i){var s,e,n,h=this.rlControl;if(h)if(s=h.tr.transformPoint(i.position.left,i.position.top),i.position.left=i.originalPosition.left+s.x-h.ir.x,i.position.top=i.originalPosition.top+s.y-h.ir.y,h.parent&&h.parent.Ne)for(e=this.style.zIndex,this.style.zIndex=-1,n=Zi.elementFromPoint(t.clientX,t.clientY),this.style.zIndex=e;n&&n!==Zi.documentElement;){if(n.rlControl){var r=!0;if(n&&n.rlControl){r=this.Xa!==n.rlControl;var a=i.position.top;if(r)this.Xa=n.rlControl,delete this.Ga;else if(void 0===this.Va)r=!0;else if(void 0===this.Ga)a!=this.Va&&(this.Ga=a>this.Va);else{var o=a>this.Va;o!=this.Ga&&a!=this.Va&&(this.Ga=o,r=!0)}this.Va=a}if(r&&n.rlControl!==h&&h.parent){var u=h.sequentialOrder,c=n.rlControl.sequentialOrder,f=h.parent.children;for(h.za.style.order=n.style.order,l=0,d=f.length;l<d;++l)(p=f[l])===h?p.sequentialOrder=c:((v=p.sequentialOrder)>u&&--v,v>=c&&++v,v!==p.sequentialOrder&&(p.sequentialOrder=v,p.node.style.order=v))}break}(n=n.parentNode)&&n!==Zi.documentElement||delete this.Xa}else for(e=this.style.zIndex,this.style.zIndex=-1,n=Zi.elementFromPoint(t.clientX,t.clientY),this.style.zIndex=e;n&&n!==Zi.documentElement;){if(n.rlControl){if(n.rlControl!==h&&h.parent){u=h.sequentialOrder,c=n.rlControl.sequentialOrder,f=h.parent.children;var l,d,p,v,m=h.za.style,b=n.style;for(["left","right","top","bottom",Cs].forEach(function(t){m[t]=b[t]}),l=0,d=f.length;l<d;++l)(p=f[l])===h?p.sequentialOrder=c:((v=p.sequentialOrder)>u&&--v,v>=c&&++v,v!==p.sequentialOrder&&(p.sequentialOrder=v,tn(p,f[v])))}break}n=n.parentNode}}};for(h=0,r=o.length;h<r;++h)(a=o[h]).node.rlControl=a,t(a.node).on("mousedown",function(t){this.rlControl&&this.rlControl.filterEvent(t)||Qs(t,!0)}).css("touchAction","none").draggable(f),re(a.node)}this.Fa===s.it&&this.node.setAttribute("role","radiogroup"),this.Fa===s.ut&&this.rr(this.ks.ti),this.ks.k===i.B&&(this.$a=!1,u.h&&(this.$a=1==u.h,this.$a&&u.tl&&(this.Wa=u.tl)),this.slide.ja.addQuestion(this))},onResized:function(t,i){Oe.prototype.onResized.call(this,t,i),this.Ua&&this.shuffleAnswers(null,!0)},onLayoutSwitched:function(){Oe.prototype.onLayoutSwitched.call(this),this.Ua&&this.shuffleAnswers(null,!0)},rr:function(t){if(!isNaN(t)){var i=this.ks.t;if(i!=s.rt&&i!=s.ot){var e=this.savedData(),n=void 0;e&&e.s&&(n=e.s);var h,r,a,o=this.children,u=-1,c=[];for(h=0,r=o.length;h<r;++h)n?(a=o[n.indexOf(h)]).rr(a.ks.ti):a=o[h],a instanceof qe?(u=a.pr,c.indexOf(u)<0?(t>=0&&a.rr(t),c.push(u)):a.rr(-2)):a instanceof We?a.rr(t):a instanceof Ke&&(n&&t>=0?0==h?a.rr(t):a.rr(-2):a.rr(t))}else Oe.prototype.rr.call(this,t)}},Ya:function(){var t,i=this.savedData();if(i&&i.s)return i.s;switch(this.Fa){case s.nt:case s.it:case s.et:case s.rt:t=cs(this.children.length);break;case s.ot:var e,n,r=this.children,a=0;for(e=0,n=r.length;e<n;++e)r[e].ks.f&h&&++a;t=cs(a)}return t&&(i||(i=this.savedData(!0)),i.s=t),t},shuffleAnswers:function(t,i){if(t)this.savedData(!0).s=t;else if(!(t=this.Ya()))return this;if(this.Ua=!0,this.nr||this.hr){var e,n,r=this.children;switch(this.Fa){case s.nt:case s.it:case s.et:for(e=0,n=r.length;e<n;++e)this.Ne?r[e].node.style.order=t[e]:tn(r[e],r[t[e]]);break;case s.rt:for(e=0,n=r.length;e<n;++e)i&&void 0!==r[e].sequentialOrder||(r[e].sequentialOrder=t[e]),this.Ne?r[e].node.style.order=r[e].sequentialOrder:tn(r[e],r[r[e].sequentialOrder]);break;case s.ot:var a,o=[];for(e=0,n=r.length;e<n;++e)(a=r[e]).ks.f&h&&o.push(a);for(e=0,n=Yi(o.length,t.length);e<n;++e)i&&o[e].dropTarget||(this.Ne?o[e].node.style.order=t[e]:tn(o[e],o[t[e]]))}return this}},submit:function(){if(this.prez()&&this.prez().ended)return this;var t,e,n,h,r,a,o,u,c,f,l=this.children,d=this.ks.e||{},p=d.f,v=(p&xt)===xt,m=(p&Mt)!==Mt,b=v&&m,w=b&&(p&Et)===Et,g=0,y=!1,_=!1;if(this.ks.k==i.B){for(a=d.v||[],o=[],u={},t=0,e=l.length;t<e;++t)r=l[t],this.slide.ja&&this.slide.ja.isAnswered(r.id(),this.id())&&(o.push(r),v&&(!y&&a.indexOf(r.id())<0&&(y=!0),w&&(g+=r.ks.e.m)));this.slide.ja&&this.slide.ja.getSaveAnswered(u,this.id()),_=0===this.slide.ja.getHotSpotEffects(this.id()).length&&(!v||a.length>0),v&&!y&&(y=!this.slide.ja.isAcceptAnswers(this.id(),a)),y&&w&&this.$a&&(g=0),!v||y||_||this.$a&&a.length!==o.length&&(y=!0)}else switch(this.Fa){case s.it:case s.nt:case s.et:for(a=d.v||[],o=[],u=[],t=0,e=l.length;t<e;++t)(r=l[t]).checked&&r.checked()&&(o.push(r),u.push(r.id()),v&&(!y&&a.indexOf(r.id())<0&&(y=!0),w&&(g+=r.ks.e.m)));_=0===o.length&&(!v||a.length>0),y&&w&&this.Fa===s.et&&(g=0),!v||y||_||a.length===o.length||(y=!0);break;case s.ht:var T,x,S,E,M;for(o=[],u={},t=0,e=l.length;t<e;++t)if((r=l[t])instanceof We)if(o.push(r),S=r.value(),u[r.id()]=S,T=r.ks.e||{},M=!r.caseSensitive(),v){for(M&&(S=S.toUpperCase()),x=-1,n=0,h=(a=T.v||[""]).length;n<h;++n)if(E=a[n],M&&(E=E.toUpperCase()),S===E){x=n;break}!y&&x<0&&S&&(y=!0),!_&&x<0&&!S&&(_=!0),w&&x>=0&&T.m&&(T.f&Et?g+=T.m[x]||0:g+=T.m)}else _||S||(_=!0);break;case s.rt:for(w=!1,(o=l.slice()).sort(function(t,i){return t.sequentialOrder-i.sequentialOrder}),u=[],t=0,e=o.length;t<e;++t)u.push(o[t].id());if(v&&!y)for(t=0,e=l.length;t<e;++t)if(l[t].sequentialOrder!==t){y=!0;break}break;case s.ot:var C,P,A,D,N,O,L,F=[],U=[];for(o=[],u={},t=0,e=l.length;t<e;++t)if((r=l[t]).dropHelper){a=(O=r.ks.e||{}).v||[],o.push(r),u[r.id()]=A=[],(D=r.dropHelper.absolutePosition())&&(c||(c={}),c[r.id()]=L=[]);var Y=!1;for(n=0,h=(C=r.dropHelper.droppedObjects()).length;n<h;++n)P=C[n],A.push(P.id()),D&&(P.Xh?L.push([P.Xh.x,P.Xh.y]):L.push([0,0])),U.push(P.id()),v&&(N=a.indexOf(P.id()),!y&&N<0&&(y=!0,Y=!1),N>=0&&!Y&&(Y=!0),w&&N>=0&&O.m&&(g+=O.m[N]||0));var B=Y?I:R;for(v&&r.hasStateFlag(B)&&(r.us.flags(B),r.savedCurrentState()),n=0,h=C.length;n<h;++n)if(P=C[n],U.push(P.id()),v){var H=a.indexOf(P.id()),z=k;z=H<0?R:I,P.hasStateFlag(z)&&(P.us.flags(z),P.savedCurrentState())}if(v&&!y&&A.length!==a.length)for(n=0,h=a.length;n<h;++n)A.indexOf(a[n])<0&&F.push(a[n])}if(v&&!y)for(t=0,e=F.length;t<e;++t)if(U.indexOf(F[t])<0){y=!0;break}U.length||v&&!F.length||(_=!0);break;case s.ut:o=[],u=[];var X,G=0;for(t=0,e=l.length;t<e;)(r=l[t]).radioGroup&&(r.pr!==G?(G=r.pr,void 0!==X&&(o.push(X),u.push(X?X.id():0)),X=r.checked()?r:null):r.checked()&&(X=r)),++t;void 0!==X&&(o.push(X),u.push(X?X.id():0)),_=o.indexOf(null)>=0;break;default:return this}return f=_?At.Ei:y?At.Si:v?At.xi:At.Ti,b&&!w&&f===At.xi&&(g=d.m||0),this.Kr(this.savedData(!0),f,u,b?g:void 0,!m,o,c),this},clear:function(t,e){return this.prez()&&this.prez().ended&&!e?this:(this.Fa===s.rt&&this.shuffleAnswers(),this.ks.k===i.B&&this.slide.ja.clear(this),Oe.prototype.clear.call(this,t,e))},disable:function(t){arguments.length||(t=!0),this.ks.k===i.B&&this.slide.ja.disableQuestion(this);var s,e,n=this.children;for(s=0,e=n.length;s<e;++s)n[s].disable(t);return Oe.prototype.disable.call(this,t)},restore:function(t){if(!t&&!(t=this.savedData()))return Oe.prototype.restore.call(this,t),this.clear(void 0,!0);void 0!==t.a&&this.Qr(t.a),!t.s||this.Fa===Oe.rt&&t.v||this.shuffleAnswers(t.s);var e,n,h,r=t.v,a=this.children;switch(this.Fa){case s.nt:case s.it:case s.et:case s.ut:for(r||(r=[]),e=0,n=a.length;e<n;++e)(h=a[e]).check&&h.check(r.indexOf(h.id())>=0);break;case s.ht:for(r||(r={}),e=0,n=a.length;e<n;++e)(h=a[e])instanceof We&&h.value(r[h.id()]||"");break;case s.rt:var o;if(r&&r.length)for(e=0,n=a.length;e<n;++e)h=a[e],(o=r.indexOf(h.ks.i))>=0&&(h.sequentialOrder=o,this.Ne?h.node.style.order=o:tn(h,a[o]));break;case s.ot:var u,c,f,l,d,p,v=t.d||{};for(e=0,n=a.length;e<n;++e)if((h=a[e]).restore(),h.dropHelper)for(u=r&&r[h.id()]||[],f=v[h.id()]||[],h.dropHelper.clear(),d=0,p=u.length;d<p;++d)(c=this.slide.object(u[d]))&&(l=f[d],h.dropHelper.drop(c,{x:l?l[0]:0,y:l?l[1]:0},!1))}if(this.ks.k==i.B)for(e=0,n=a.length;e<n;++e)(h=a[e]).restore();return this},cleanup:function(){if(this.Fa===s.rt){var i,e,n,h=this.children;for(i=0,e=h.length;i<e;++i)(n=h[i]).node.rlControl&&(t(n.node).draggable("destroy"),delete n.node.rlControl),n.za&&n.za.parentNode&&n.za.parentNode.removeChild(n.za)}return Oe.prototype.cleanup.call(this)},ys:function(t){t=t||{};var e=this.ks.e||{},n=((e.f||0)&xt)===xt,h=this.savedData();if(n){switch(this.Fa){case s.nt:case s.it:case s.et:var r=[];h&&(r=h.v||[]);for(var a=e.v||[],o=0;o<this.children.length;++o){var u=(P=this.children[o]).id();if(Oe.prototype.Jr.call(P),t.showCorrect)if(a.indexOf(u)>=0)(I=this.aa(!0,"middle-left"))&&(P.node.appendChild(I),P.Zr=I);if(t.showIncorrect)if(r.indexOf(u)>=0&&a.indexOf(u)<0)(I=this.aa(!1,"middle-left"))&&(P.node.appendChild(I),P.ia=I)}break;case s.ht:r={};h&&(r=h.v||{});for(o=0;o<this.children.length;++o){if((P=this.children[o])instanceof We){a=(P.ks.e||{}).v||[""];var c=!P.caseSensitive(),f=r[P.id()],l=[];if(c)for(var d=0;d<a.length;d++)l.push(a[d].toLowerCase());else l=a;var p=l.indexOf(c?f.toLowerCase():f)>=0;if(Oe.prototype.Jr.call(P),p&&t.showCorrect||!p&&t.showIncorrect)(I=this.aa(p,"middle-right"))&&(P.node.appendChild(I),p?P.Zr=I:P.ia=I);if(t.showValues){var v=P.oa(a,"middle-right");v&&(v.style.transform+="translateX(-100%)",v.style.textAlign="right",P.node.appendChild(v),P.sa=v)}}}break;case s.rt:var m=this.children,b=m.slice(),w=[];b.sort(function(t,i){return t.sequentialOrder-i.sequentialOrder});for(o=0;o<b.length;o++)w.push(b[o].id());for(r=h.v||w,o=0;o<m.length;o++){p=(f=r[o])===(P=m[o]).id();if(Oe.prototype.Jr.call(P),p&&t.showCorrect||!p&&t.showIncorrect)(I=this.ra(p,(o+1).toString(),"middle-left"))&&(P.node.appendChild(I),p?P.Zr=I:P.ia=I)}break;case s.ot:for(var g=0,y=[],k=(o=0,this.children.length);o<k;o++){var _=this.children[o];if(!_.dropHelper)if(g++,y.push(_.id()),t.showValues)Oe.prototype.Jr.call(_),(I=this.ra(p,g.toString(),"middle-left"))&&(_.node.appendChild(I),_.ia=I)}for(o=0;o<this.children.length;o++){r=[],a=[];if((P=this.children[o]).dropHelper){p=!0;var T=P.ks.e||{},x=P.dropHelper.droppedObjects();a=T.v||[];for(d=0;d<x.length;d++)r.push(x[d].id());for(0==r.length&&a.length>0&&(p=!1),d=0;d<r.length;++d)a.indexOf(r[d])<0&&(p=!1);if(Oe.prototype.Jr.call(P),p&&t.showCorrect||!p&&t.showIncorrect||!p&&t.showValues){var S,E=p&&a.length==r.length&&a.length>1,M=[];for(d=0,k=a.length;d<k;++d)(S=y.indexOf(a[d]))>=0&&M.push(S+1);if(1==M.length&&(g=M[0]),(!p||M.length>1&&!E)&&t.showValues){var C=M.length>1?M:g.toString();I=this.ra(p,C,"middle-left")}else I=this.aa(p,"middle-left");I&&(P.node.appendChild(I),p?P.Zr=I:P.ia=I)}}}}if(this.ks.k==i.B){r={};h&&(r=h.v||{});for(a=e.v||[],o=0;o<this.children.length;++o){var P;if((P=this.children[o])instanceof Ge){P.or(!0);u=P.id();Oe.prototype.Jr.call(P);var I;p=a.indexOf(u)>=0;(I=this.aa(p,"middle-right"))&&(P.node.appendChild(I),p?P.Zr=I:P.ia=I)}}}if(Oe.prototype.Jr.call(this.slide),t.showResult){var R=At.Ei;h&&void 0!==h.r&&(R=h.r);var A=this.ha(R,this.slide.prez().responseResultString(R));A&&(this.slide.node.appendChild(A),this.slide.ea=A)}}},ns:function(t,i,s){return(!this.prez()||!this.prez().ended)&&Oe.prototype.ns.call(this,t,i,s)}});Fe(function(t,s){return s.t||s.k===i.B?new sn(t,s):new Ze(t,s)},i.L,i.F,i.B);var en=Ls(De,{$init:function(i,s){void 0===s.ks.fbi?this.node=t(".ap-slides",i.container)[0]:this.node=t(".ap-feedback-slides",i.container)[0],this.slide=s}});Fe(function(t,i){return new en(t,i)},i.X);var nn=Ls(Oe,{$init:function(t,i){Oe.prototype.$init.call(this,t,i)},createNode:function(){var t=Oe.prototype.createNode.call(this),i=Zi.createElement("img"),s=i.style;return t.tabIndex=-1,t.appendChild(i),s.position="absolute",s.width="100%",s.height="100%",s.pointerEvents="auto",this.imageNode=i,i.addEventListener("dragstart",function(t){t.preventDefault()},!1),t},kh:function(t,i,s,e){this.imageNode.src=this.prez().getResource(t+"."+s),this.imageNode.style.opacity=i/255,e&&this.imageNode.setAttribute("alt",e),this.shape.Qa(t,s,i)},cursor:function(t){return Oe.prototype.cursor.call(this,t),this.imageNode.style.cursor=t,this},html:Je});function hn(i,s,e){function n(){var n=50+s;n=""==i.value?50+s:t(i).apInputTagAutoWidth()+s,n+="px";var h=i.style.width!=n;t(i).css({width:n}),h&&e&&e()}s=s||0;var h="keyup,keypress,focus,blur,change".split(",");for(var r in h)i.addEventListener(h[r],n,!1);n()}Fe(function(t,i){return new nn(t,i)},i.u),t.fn.apInputTagAutoWidth=function(){t.fn.apInputTagAutoWidth.fakeEl||(t.fn.apInputTagAutoWidth.fakeEl=t("<span>").hide().appendTo(Zi.body));var i=i||this.val()||this.text();i=i.replace(/ /g,"."),t.fn.apInputTagAutoWidth.fakeEl.text(i).css("font-family",this.css("font-family")).css("font-size",this.css("font-size")).css("font-weight",this.css("font-weight")).css("font-weight",this.css("font-weight")).css("font-variant",this.css("font-variant"));var s=parseInt(t.fn.apInputTagAutoWidth.fakeEl.width())+5;return s<50&&(s=50),s};var rn=Ls(Oe,{$init:function(i,s){Oe.prototype.$init.call(this,i,s),this.Dr();var e=this;if(t(this.node).on("mousedown",function(t){e.filterEvent(t)||Qs(t,!0)}),this.Ka=[],this.qa=[],this.textNode){this.Ka=t(this.textNode).find("input");for(var n=0,h=this.Ka.length;n<h;++n){var r=this.Ka[n];this.qa.push(r.parentNode),r.spellcheck=!1,t(r).on("focus",function(t){e.ns(!1,!0)||t.preventDefault()}).on("blur",function(t){e.ns(!1,!0)||t.preventDefault()}).on("mousedown",function(t){e.ns(!1,!0)||t.preventDefault()}),hn(r,void 0,function(){e.Sh&&e.Sh()})}}this.rr(s.ti)},rr:function(t){if(!isNaN(t))if(this.Dr(),-2==t)this.textNode.tabIndex=-1;else if(-1==t)this.textNode.removeAttribute("tabIndex");else if(this.Ka&&this.Ka.length>0)for(var i=0,s=this.Ka.length;i<s;++i){this.Ka[i].tabIndex=t}},allInputValues:function(t){var i=[];if(this.Ka&&0!=this.Ka.length&&t)for(var s=0,e=this.Ka.length;s<e;++s){var n=this.Ka[s];arguments.length||i.push(n&&n.value||""),n||this.Dr();var h=t[s]?t[s]+"":"";n.value=h}else for(s=0,e=this.Ka.length;s<e;++s){n=this.Ka[s];arguments.length||i.push(n&&n.value||""),n||this.Dr(),n.value=""}return arguments.length?(this.Ja(),this):i},Rr:function(){return Oe.prototype.Rr.call(this)+"border: none; margin: 0; padding: 0; width: 100%; outline: none;"},clear:function(t,i){return this.prez()&&this.prez().ended&&!i?this:this.allInputValues([])},restore:function(t){return Oe.prototype.restore.call(this,t),t||(t=this.savedData()),t&&void 0!==t.a&&this.Qr(t.a),this.allInputValues(t&&t.v||{})},Ch:function(t,i){if(this.Ka){var s,e=(i&x)==x,n=this.Ka.length;for(s=0;s<n;++s)this.Ka[s].disabled=e}},Pa:function(){var t=this.ks.e||{},i=t.s||Pt;return t.f&(xt|St)||(i=Pt),i},submit:function(){if(this.prez()&&this.prez().ended)return this;var t,i,s,e,n,h,r,a,o,u,c,f,l,d,p=this.Ka,v=this.ks.e||{},m=v.f,b=(m&xt)===xt,w=(m&Mt)!==Mt,g=b&&w,y=g&&(m&Et)===Et,k=0,_=!1,T=!1,x=v.v||[];for(r=[],a={},t=0,i=p.length;t<i;++t)if(n=p[t],r.push(n),c=n.value,a[t]=c,b){if(!(o=x[t]))continue;for((l=!o.c)&&(c=c.toUpperCase()),u=-1,s=0,e=(h=o.v||[""]).length;s<e;++s)if(f=h[s],l&&(f=f.toUpperCase()),c===f){u=s;break}!_&&u<0&&c&&(_=!0),!T&&u<0&&!c&&(T=!0),y&&u>=0&&o.m&&(k+=o.m||0)}else T||c||(T=!0);return d=T?At.Ei:_?At.Si:b?At.xi:At.Ti,g&&!y&&d===At.xi&&(k=v.m||0),this.Kr(this.savedData(!0),d,a,g?k:void 0,!w,r,void 0),this},ys:function(t){t=t||{};var i=this.ks.e||{},s=((i.f||0)&xt)===xt,e=this.savedData();if(s){var n={};e&&(n=e.v||{});for(var h=[],r=i.v||[],a=this.Ka,o=0;o<a.length;++o){w=a[o];var u=r[o],c=u.v||[""],f=!u.c,l=n[o],d=[];if(f)for(var p=0;p<c.length;p++)d.push(c[p].toLowerCase());else d=c;var v=d.indexOf(f?l.toLowerCase():l)>=0;h.push({correct:v,arrCorrectValues:d.slice(),inputNode:w})}if(this.Za&&this.Za.length>0){o=0;for(var m=this.Za.length;o<m;++o)this.qa[o].removeChild(this.Za[o]),delete this.Za[o]}if(this.Za=[],this.to&&this.to.length>0)for(o=0,m=this.to.length;o<m;++o)this.qa[o].removeChild(this.to[o]),delete this.to[o];this.to=[];var b=0;(t.showCorrect||t.showIncorrect)&&(b=18),t.showValues&&(b+=2,b+=18);for(o=0,m=h.length;o<m;++o){var w,g=h[o];v=g.correct;if(hn(w=g.inputNode,b),t.showCorrect||t.showIncorrect||t.showValues){var y=this.aa(v,"middle-right");if(y){this.Za.push(y),this.qa[o].appendChild(y);var k=y.style,_=-b+"px";if(k.transform="translate("+_+", -50%)",k.pointerEvents="visiblePainted",(v&&!t.showCorrect||!v&&!t.showIncorrect)&&(k.visibility="hidden"),t.showValues){var T=Oe.prototype.la.call(this,k,g.arrCorrectValues.slice());this.node.removeChild(T),this.qa[o].appendChild(T),this.to.push(T),_="-20px",T.style.transform="translate("+_+", -50%)"}}}}if(Oe.prototype.Jr.call(this.slide),t.showResult){var x=At.Ei;e&&void 0!==e.r&&(x=e.r);var S=this.ha(x,this.slide.prez().responseResultString(x));S&&(this.slide.node.appendChild(S),this.slide.ea=S)}}},ns:function(t,i,s){return(!this.prez()||!this.prez().ended)&&Oe.prototype.ns.call(this,t,i,s)},Ja:function(){for(var t=this.Ka,i=this,s=0,e=t.length;s<e;++s)hn(t[s],void 0,function(){i.Sh&&i.Sh()})}});Fe(function(t,i){return new rn(t,i)},i.Y);var an=Ls(Oe,{$init:function(t,i){Oe.prototype.$init.call(this,t,i),this.io=0},createNode:function(){var t=Oe.prototype.createNode.call(this),i=Zi.createElement("div");i.style.top="50%",i.style.left="50%",i.style.width=this.ks.ge.w+"px",i.style.height=this.ks.ge.h+"px",i.style.position="absolute",i.style[Cs]="translate(-50%, -50%)";var s=Zi.createElement("canvas");return ws(s,{width:this.ks.ge.w,height:this.ks.ge.h}),this.so=s,i.appendChild(s),t.appendChild(i),t}});Fe(function(t,i){return new an(t,i)},i.P);var on=Ls({$init:function(t,i,s,e,n){this.eo=i,this.no=s,this.answerId=e,this.questionId=n,this.ho=0,this.slide=t,this.ja=t.ja;var h=this.ja.getHotSpotQuestion(n),r=h.ks;this.circleRadius=void 0!==r.hs[0]?r.hs[0]:10,this.color=void 0!==r.hs[1]?gs(r.hs[1]):"green";var a=h.ks.e.v||[];this.correct=a.indexOf(this.answerId)>=0},createNode:function(){var t=2*this.circleRadius,i=this.slide.prez().isReviewingMode();i&&(this.correct?this.color="#2fae62":this.color="#d15327");var s=Zi.createElement("div");s.className="ap-hotspot",s.style.top=this.no,s.style.left=this.eo;var e=Zi.createElement("div");if(e.className="hs-circle",e.style.width=t+"px",e.style.height=t+"px",e.style.lineHeight=t+"px",e.style.backgroundColor=this.color,s.appendChild(e),!i){var n=Zi.createElement("div");n.className="hs-ring",n.style.width=t+"px",n.style.height=t+"px",n.style.borderColor=this.color,s.appendChild(n)}return s.style.pointerEvents="auto",this.evtOnClick=this.ro.bind(this),s.addEventListener("click",this.evtOnClick),s},ro:function(t){this.ja.removeHotSpotEffect(this)}}),un=Ls({$init:function(t){this.hotSpotQuestionsEffects=t,this.hotSpotQuestions=[]},initSlide:function(i){var s=i.prez().options.playMode,e=i.prez().isReviewingMode();this.evtOnClick=this.ro.bind(this),this.apSlidesNode=t(".ap-slides",i.prez().container)[0],"Demo"===s||e||(this.apSlidesNode.addEventListener("click",this.evtOnClick),this.apSlidesNode.style.pointerEvents="auto"),this.slide=i,this.hotSpotQuestionsEffects.forEach(function(t){for(var i=t.effects,s=0,e=i.length;s<e;s++){var n=i[s];n.node=n.createNode(),n.node&&this.slide.node.appendChild(n.node)}}.bind(this))},addQuestion:function(t){this.hotSpotQuestions.push(t);var i=t.ks;if(this.circleRadius=void 0!==i.hs[0]?i.hs[0]:10,void 0===(s=this.getHotSpotEffects(t.id()))||null===s){var s=[];this.hotSpotQuestionsEffects.push({id:t.id(),effects:s})}t.node.style.pointerEvents="auto"},disableQuestion:function(t){var i=this.hotSpotQuestions.indexOf(this.getHotSpotQuestion(t.id()));-1!==i&&this.hotSpotQuestions.splice(i,1)},clear:function(t){if(void 0===this.hotSpotQuestionsEffects)return null;for(var i=0,s=this.hotSpotQuestionsEffects.length;i<s;i++){var e=this.hotSpotQuestionsEffects[i];if(e.id===t.id()){if(e.effects)for(i=0;i<e.effects.length;i++){var n=e.effects[i];this.slide.node.removeChild(n.node)}e.effects=[];break}}},ro:function(i){var s=t(i.target).closest(".ap-ctrl");if(s.length>0){s=s[0];var e=this.ao(s);if(null!==e){var n=this.ao(s.parentNode);null===n&&(n=e);var h=this.oo(i,this.slide.node,2*this.circleRadius,!!this.slide.prez().ks.responsive);this.removeHotSpotIfExist(h.x,h.y,n)||this.addHotSpotEffect(h.x,h.y,e,n)}}},oo:function(t,i,s,e){var n=s||0,h=i.scrollLeft,r=i.scrollTop,a=0,o=0,u=convertPointFromPageToNode(i,t.pageX,t.pageY);return e?(a=(u.x-n/2+h)/i.clientWidth*100+"%",o=(u.y-n/2+r)/i.clientHeight*100+"%"):(a=Vi(u.x-n/2+h)+"px",o=Vi(u.y-n/2+r)+"px"),{x:a,y:o}},removeHotSpotIfExist:function(t,i,s){if(void 0===this.hotSpotQuestionsEffects)return!1;var e=this.getHotSpotEffects(s);if(e)for(var n=0;n<e.length;n++){var h=e[n];if(Li(h.eo-t)<=h.circleRadius&&Li(h.no-i)<=h.circleRadius)return this.removeHotSpotEffect(h),!0}return!1},addHotSpotEffect:function(t,i,s,e){if(void 0===this.hotSpotQuestions)return!1;var n=this.getHotSpotQuestion(e);if(n){var h=this.getHotSpotEffects(e);if(n.$a){if(h.length===n.Wa)return this}else if(h)for(var r=0;r<h.length;r++){var a=h[r];this.removeHotSpotEffect(a)}return(a=new on(n.slide,t,i,s,n.id())).node=a.createNode(),a.node?(this.slide.node.appendChild(a.node),h.push(a),!0):this}return!1},removeHotSpotEffect:function(t){if(void 0===this.hotSpotQuestionsEffects)return!1;var i=this.getHotSpotEffects(t.questionId);return i&&i.splice(i.indexOf(t),1),this.getHotSpotQuestion(t.questionId)&&this.slide.node.removeChild(t.node),!1},getHotSpotEffects:function(t){if(void 0===this.hotSpotQuestionsEffects)return null;for(var i=null,s=0,e=this.hotSpotQuestionsEffects.length;s<e;s++){var n=this.hotSpotQuestionsEffects[s];if(n.id===t){i=n.effects;break}}return i},getHotSpotQuestion:function(t){if(void 0===this.hotSpotQuestions)return null;for(var i=null,s=0,e=this.hotSpotQuestions.length;s<e;s++){var n=this.hotSpotQuestions[s];if(n.id()===t){i=n;break}}return i},ao:function(t){if(void 0===this.hotSpotQuestions)return null;for(var i=null,s=0,e=this.hotSpotQuestions.length;s<e;s++){var n=this.hotSpotQuestions[s];if(n.node===t){i=n.id();break}for(var h=0;h<n.children.length;h++){var r=n.children[h];if(r.node===t){i=r.id();break}}}return i},isAnswered:function(t,i){var s=this.getHotSpotEffects(i);if(s)for(var e=0;e<s.length;e++){if(s[e].answerId===t)return!0}return!1},getSaveAnswered:function(t,i){var s=this.getHotSpotEffects(i);if(s)for(var e=0;e<s.length;e++){var n=s[e],h="("+n.eo+","+n.no+")";t[n.answerId]?t[n.answerId]+=","+h:t[n.answerId]=h}},isAcceptAnswers:function(t,i){var s=this.getHotSpotEffects(t);if(s)for(var e=0;e<s.length;e++){var n=s[e];if(i.indexOf(n.answerId)<0)return!1}return!0}}),cn={LINEWIDTH:6,CIRCLE_RADIUS_MAX:40,RECTANGLE_HEIGHT_ARROW:160,RECTANGLE_WIDTH_ARROW:40,ARROW_HEIGHT:80,HOLD_CIRCLE_RADIUS:25,PINCH_IN_OUT_ANGLE:Oi/6,TWO_FINGERS_TAP_ANGLE:Oi/18,TWO_FINGERS_CIRCLE_RADIUS_DOUBLE:20,TWO_FINGERS_CIRCLE_RADIUS_SINGLE:15,TWO_FINGERS_BETA_MIN:Oi/36,TWO_FINGERS_BETA_MAX:Oi/3,TWO_FINGERS_DOUBLE_BETA_MIN:Oi/6,TWO_FINGERS_DOUBLE_BETA_MAX:Oi/3,CIRCLE_LEFT_RIGHT_RADIUS:60,LEFT_RIGHT_ROTATE_ARROW_WIDTH:30,ROTATE_ARROW_HEIGHT:50,INNER_CIRCLE_RADIUS:25,Motivate:function(t){return Xn.linear(t)},fadeIn:function(t,i){i<=.3&&(t*=i/.3);return t},fadeOut:function(t,i){i>=.8&&(i>1&&(i=1),t*=1-(i-.8)/(1-.8));return t},drawUpArrowPath:function(t,i,s){t.beginPath(),t.moveTo(0,0),t.lineTo(-i,i),t.lineTo(-i/2,i),t.lineTo(0,s),t.lineTo(i/2,i),t.lineTo(i,i),t.closePath(),t.fill()},drawUpLeftCurveArrowPath:function(t,i,s,e){var n=(i*i/4-e*i)/2/(Math.sqrt(e*e-s*s)-e+i/2)+e-i/2,h=(i*i/4+e*i)/2/(Math.sqrt(e*e-s*s)-e-i/2)+e+i/2;t.beginPath(),t.moveTo(0,-i),t.lineTo(-i,0),t.lineTo(-i/2,0),t.arc(-n-i/2,0,n,0,Math.asin(s/n)),t.arc(i/2-h,0,h,-2*Oi+Math.asin(s/h),0,!0),t.lineTo(i,0),t.fill(),t.closePath()},drawUpRightCurveArrowPath:function(t,i,s,e){var n=(i*i/4-e*i)/2/(Math.sqrt(e*e-s*s)-e+i/2)+e-i/2,h=(i*i/4+e*i)/2/(Math.sqrt(e*e-s*s)-e-i/2)+e+i/2;t.beginPath(),t.moveTo(0,-i),t.lineTo(-i,0),t.lineTo(-i/2,0),t.arc(h-i/2,0,h,-Oi,-Oi-Math.asin(s/h),!0),t.arc(n+i/2,0,n,Oi-Math.asin(s/n),Oi,!1),t.lineTo(i,0),t.fill(),t.closePath()},drawSingleTap:function(t,i,s,e,n,h){var r=this.LINEWIDTH,a=this.CIRCLE_RADIUS_MAX,o=n.call(null,e)*(a-r)+r;t.lineWidth=r;var u=this.fadeIn(1,e);u=this.fadeOut(u,e),t.globalAlpha=u,t.strokeStyle=h,t.clearRect(i-a-r,s-a-r,2*(a+r),2*(a+r)),t.beginPath(),t.arc(i,s,o,0,2*Oi),t.stroke(),t.closePath()},drawDoubleTap:function(t,i,s,e,n,h){var r=this.CIRCLE_RADIUS_MAX,a=n.call(null,e)*(r-this.LINEWIDTH-15)+this.LINEWIDTH+15;t.lineWidth=this.LINEWIDTH;var o=this.fadeIn(1,e);o=this.fadeOut(o,e),t.globalAlpha=o,t.strokeStyle=h,t.clearRect(i-r-15,s-r-15,2*(r+15),2*(r+15)),t.beginPath(),t.arc(i,s,a,0,2*Oi),t.stroke(),t.closePath(),a>.3*(r-this.LINEWIDTH-15)+this.LINEWIDTH+15&&(t.beginPath(),t.arc(i,s,a-15,0,2*Oi),t.stroke(),t.closePath())},drawHold:function(t,i,s,e,n,h){var r=this.HOLD_CIRCLE_RADIUS,a=this.LINEWIDTH/2,o=.5*r,u=Oi/4,c=this.fadeIn(1,e);c=this.fadeOut(c,e),t.globalAlpha=c,t.strokeStyle=h,t.fillStyle=h;var f=2*Oi*n.call(null,e);t.clearRect(i-(r+2*o),s-(r+2*o),2*(r+2*o),2*(r+2*o)),t.beginPath(),t.lineWidth=this.LINEWIDTH,t.arc(i,s,r,0,2*Oi),t.stroke(),t.closePath(),t.translate(i+Math.cos(u)*(r+o)+a*Math.sin(Oi/4),s-Math.sin(u)*(r+o)-a*Math.cos(Oi/4)),t.beginPath(),t.lineWidth=this.LINEWIDTH/2,t.arc(0,0,o,0,2*Oi),t.stroke(),t.closePath(),t.setTransform(1,0,0,1,0,0),t.translate(i+Math.cos(u)*(r+o)+a*Math.sin(Oi/4),s-Math.sin(u)*(r+o)-a*Math.cos(Oi/4)),t.beginPath(),t.lineWidth=this.LINEWIDTH/2,t.moveTo(0,0),t.arc(0,0,o,-Oi/2+f,1.5*Oi,!0),t.fill(),t.closePath(),t.setTransform(1,0,0,1,0,0)},drawSwipeUp:function(t,i,s,e,n,h){var r=this.RECTANGLE_WIDTH_ARROW/2,a=this.ARROW_HEIGHT,o=this.RECTANGLE_HEIGHT_ARROW,u=o-a,c=this.fadeIn(1,e);c=this.fadeOut(c,e),t.globalAlpha=c,t.fillStyle=h,t.clearRect(i-o,s-o,2*o,2*o),t.translate(i,s+u/2-n.call(null,e)*u),this.drawUpArrowPath(t,r,a),t.setTransform(1,0,0,1,0,0)},drawSwipeDown:function(t,i,s,e,n,h){var r=this.RECTANGLE_WIDTH_ARROW/2,a=this.ARROW_HEIGHT,o=this.RECTANGLE_HEIGHT_ARROW,u=o-a,c=this.fadeIn(1,e);c=this.fadeOut(c,e),t.globalAlpha=c,t.fillStyle=h,t.clearRect(i-o,s-o,2*o,2*o),t.translate(i,s-u/2+n.call(null,e)*u),t.rotate(Oi),this.drawUpArrowPath(t,r,a),t.setTransform(1,0,0,1,0,0)},drawSwipeRight:function(t,i,s,e,n,h){var r=this.RECTANGLE_WIDTH_ARROW/2,a=this.ARROW_HEIGHT,o=this.RECTANGLE_HEIGHT_ARROW,u=o-a,c=this.fadeIn(1,e);c=this.fadeOut(c,e),t.globalAlpha=c,t.fillStyle=h,t.clearRect(i-o,s-o,2*o,2*o),t.translate(i-u/2+n.call(null,e)*u,s),t.rotate(Oi/2),this.drawUpArrowPath(t,r,a),t.setTransform(1,0,0,1,0,0)},drawSwipeLeft:function(t,i,s,e,n,h){var r=this.RECTANGLE_WIDTH_ARROW/2,a=this.ARROW_HEIGHT,o=this.RECTANGLE_HEIGHT_ARROW,u=o-a,c=this.fadeIn(1,e);c=this.fadeOut(c,e),t.globalAlpha=c,t.fillStyle=h,t.clearRect(i-o,s-o,2*o,2*o),t.translate(i+u/2-n.call(null,e)*u,s),t.fillStyle=h,t.rotate(1.5*Oi),this.drawUpArrowPath(t,r,a),t.setTransform(1,0,0,1,0,0)},drawPinchIn:function(t,i,s,e,n,h){var r=this.RECTANGLE_WIDTH_ARROW/2,a=this.ARROW_HEIGHT,o=this.RECTANGLE_HEIGHT_ARROW,u=this.PINCH_IN_OUT_ANGLE,c=Math.sin(u)*(o-a),f=this.fadeIn(1,e);f=this.fadeOut(f,e),t.globalAlpha=f,t.fillStyle=h,t.clearRect(i-o,s-o,2*o,2*o),t.translate(i,s);var l=-Math.sin(u)*o+a*Math.sin(u)+n.call(null,e)*c,d=-l/Math.tan(u);t.translate(l,d),t.rotate(u),this.drawUpArrowPath(t,r,a),t.setTransform(1,0,0,1,i,s);var p=Math.sin(u)*o-a*Math.sin(u)-n.call(null,e)*c,v=-p/Math.tan(u);t.translate(p,v),t.rotate(Oi+u),this.drawUpArrowPath(t,r,a),t.setTransform(1,0,0,1,0,0)},drawPinchOut:function(t,i,s,e,n,h){var r=this.RECTANGLE_WIDTH_ARROW/2,a=this.ARROW_HEIGHT,o=this.RECTANGLE_HEIGHT_ARROW,u=this.PINCH_IN_OUT_ANGLE,c=Math.sin(u)*(o-a),f=this.fadeIn(1,e);f=this.fadeOut(f,e),t.globalAlpha=f,t.fillStyle=h,t.clearRect(i-o,s-o,2*o,2*o),t.translate(i,s);var l=a*Math.sin(u)+n.call(null,e)*c,d=-l/Math.tan(u);t.translate(l,d),t.rotate(u),this.drawUpArrowPath(t,r,a),t.setTransform(1,0,0,1,i,s);var p=-a*Math.sin(u)-n.call(null,e)*c,v=-p/Math.tan(u);t.translate(p,v),t.rotate(Oi+u),this.drawUpArrowPath(t,r,a),t.setTransform(1,0,0,1,0,0)},drawTwoFingersTap:function(t,i,s,e,n,h){var r=this.TWO_FINGERS_CIRCLE_RADIUS_SINGLE,a=this.TWO_FINGERS_TAP_ANGLE,o=this.TWO_FINGERS_BETA_MIN,u=this.TWO_FINGERS_BETA_MAX,c=this.fadeIn(1,e);c=this.fadeOut(c,e),t.globalAlpha=c,t.strokeStyle=h;var f=o+n.call(null,e)*(u-o),l=r/Math.cos(f);t.clearRect(i-4*r,s-4*r,8*r,8*r),t.lineWidth=this.LINEWIDTH,t.lineJoin="round",t.lineCap="round",t.translate(i,s),t.rotate(-60*a/Oi),t.beginPath(),t.arc(r,0,l,Oi-f,-Oi+f,!0),t.arc(-r,0,l,-f,-2*Oi+f,!0),t.stroke(),t.closePath(),t.setTransform(1,0,0,1,0,0)},drawTwoFingersDoubleTap:function(t,i,s,e,n,h){var r=this.TWO_FINGERS_CIRCLE_RADIUS_DOUBLE,a=this.TWO_FINGERS_TAP_ANGLE,o=this.TWO_FINGERS_DOUBLE_BETA_MIN,u=this.TWO_FINGERS_DOUBLE_BETA_MAX,c=o+n.call(null,e)*(u-o),f=r/Math.cos(c);t.clearRect(i-4*r,s-4*r,8*r,8*r),t.translate(i,s),t.rotate(-60*a/Oi),t.lineWidth=this.LINEWIDTH;var l=this.fadeIn(1,e);if(l=this.fadeOut(l,e),t.globalAlpha=l,t.strokeStyle=h,t.lineJoin="round",t.lineCap="round",t.beginPath(),t.arc(-r,0,f,-c,-2*Oi+c,!0),t.arc(r,0,f,Oi-c,-Oi+c,!0),t.stroke(),t.closePath(),f*Math.sin(c)>15){var d=Math.atan((f*Math.sin(c)-15)/r),p=r/Math.cos(d);t.beginPath(),t.arc(-r,0,p,-d,-2*Oi+d,!0),t.arc(r,0,p,+Oi-d,-Oi+d,!0),t.stroke()}t.setTransform(1,0,0,1,0,0)},drawFingers:function(t,i,s,e,n,h){var r=this.INNER_CIRCLE_RADIUS,a=this.RECTANGLE_WIDTH_ARROW/2,o=this.RECTANGLE_HEIGHT_ARROW,u=this.fadeIn(1,e);u=this.fadeOut(u,e),t.globalAlpha=u,t.fillStyle=h,t.clearRect(i-o-r,s-o-r,2*(o+r),2*(o+r));var c=Oi/2,f=o-80;t.translate(i-r-o+80+n.call(null,e)*f,s),t.rotate(c),this.drawUpArrowPath(t,a,80),t.setTransform(1,0,0,1,0,0),c=Oi/4,f=Math.sin(c)*(o-80),t.translate(i,s);var l=Math.sin(c)*(-o-r+80)+n.call(null,e)*f,d=l/Math.tan(c);t.translate(l,d),t.rotate(Oi-c),this.drawUpArrowPath(t,a,80),t.setTransform(1,0,0,1,0,0),c=Oi,f=o-80,t.translate(i,s-r-o+80+n.call(null,e)*f),t.rotate(c),this.drawUpArrowPath(t,a,80),t.setTransform(1,0,0,1,0,0),c=Oi/6,f=Math.sin(c)*(o-80),t.translate(i,s);d=-(l=Math.sin(c)*(o+r-80)-n.call(null,e)*f)/Math.tan(c);t.translate(l,d),t.rotate(Oi+c),this.drawUpArrowPath(t,a,80),t.setTransform(1,0,0,1,0,0),c=Oi/3,f=Math.sin(c)*(o-80),t.translate(i,s),d=-(l=Math.sin(c)*(o+r-80)-n.call(null,e)*f)/Math.tan(c),t.translate(l,d),t.rotate(Oi+c),this.drawUpArrowPath(t,a,80),t.setTransform(1,0,0,1,0,0)},drawRotateLeft:function(t,i,s,e,n,h){var r=this.LEFT_RIGHT_ROTATE_ARROW_WIDTH/2,a=this.ROTATE_ARROW_HEIGHT,o=this.CIRCLE_LEFT_RIGHT_RADIUS,u=this.fadeIn(1,e);u=this.fadeOut(u,e),t.globalAlpha=u,t.fillStyle=h;var c=bs(110+60*n.call(null,e));t.clearRect(0,0,400,400),t.translate(i+Math.cos(c)*o,s-Math.sin(c)*o),t.rotate(-c),this.drawUpLeftCurveArrowPath(t,r,a,o),t.setTransform(1,0,0,1,0,0);var f=bs(200+60*n.call(null,e));t.translate(i+Math.cos(f)*o,s-Math.sin(f)*o),t.rotate(-f),this.drawUpLeftCurveArrowPath(t,r,a,o),t.setTransform(1,0,0,1,0,0)},drawRotateRight:function(t,i,s,e,n,h){var r=this.LEFT_RIGHT_ROTATE_ARROW_WIDTH/2,a=this.ROTATE_ARROW_HEIGHT,o=this.CIRCLE_LEFT_RIGHT_RADIUS,u=this.fadeIn(1,e);u=this.fadeOut(u,e),t.globalAlpha=u,t.fillStyle=h;var c=bs(150-60*n.call(null,e));t.clearRect(0,0,400,400),t.translate(i+Math.cos(c)*o,s-Math.sin(c)*o),t.rotate(Oi-c),this.drawUpRightCurveArrowPath(t,r,a,o),t.setTransform(1,0,0,1,0,0);var f=bs(60-60*n.call(null,e));t.translate(i+Math.cos(f)*o,s-Math.sin(f)*o),t.rotate(Oi-f),this.drawUpRightCurveArrowPath(t,r,a,o),t.setTransform(1,0,0,1,0,0)},renderGestureEffect:function(t,i,s,e,n,h){switch(i){case ti:this.drawSingleTap(t,s,e,n,this.Motivate,h);break;case ii:this.drawDoubleTap(t,s,e,n,this.Motivate,h);break;case si:this.drawHold(t,s,e,n,this.Motivate,h);break;case ei:this.drawTwoFingersTap(t,s,e,n,this.Motivate,h);break;case ni:this.drawTwoFingersDoubleTap(t,s,e,n,this.Motivate,h);break;case hi:this.drawSwipeUp(t,s,e,n,this.Motivate,h);break;case ai:this.drawSwipeDown(t,s,e,n,this.Motivate,h);break;case oi:this.drawSwipeLeft(t,s,e,n,this.Motivate,h);break;case ri:this.drawSwipeRight(t,s,e,n,this.Motivate,h);break;case oi:this.drawSwipeLeft(t,s,e,n,this.Motivate,h);break;case ui:this.drawRotateLeft(t,s,e,n,this.Motivate,h);break;case ci:this.drawRotateRight(t,s,e,n,this.Motivate,h);break;case fi:this.drawPinchIn(t,s,e,n,this.Motivate,h);break;case li:this.drawPinchOut(t,s,e,n,this.Motivate,h);break;case di:this.drawFingers(t,s,e,n,this.Motivate,h)}},renderMouseEffect:function(t,i,s,e,n,h,r){t.clearRect(0,0,2*r+4,2*r+4);var a=n*r;if(t.strokeStyle=h,t.lineWidth=2,t.lineJoin="round",t.lineCap="round",i==pi)t.beginPath(),t.arc(s,e,a,0,2*Math.PI),t.stroke();else if(i==vi)for(;a>0;)t.beginPath(),t.arc(s,e,a,0,2*Math.PI),t.stroke(),a-=9;else i==mi&&t.strokeRect(s-a,e-a,2*a,2*a)}},fn=Ls(nn,{$init:function(t,s){this.uo=s;var e=2*s.hl_size,n=2*s.hl_size,h=t.defaultCtrlData();h.i=s.id,h.k=i.H,h.m=s.showMode,h.ti=-1;var r=[];if(t.ks&&t.ks.h)for(var a=0;a<t.ks.h.length;a++){var o=s.pos[a][0]-e/2,u=s.pos[a][1]-n/2,c={};c.r=[o,u,e,n],r.push(c)}h.s=[{w:r}],h.ti=-1,nn.prototype.$init.call(this,t,h),this.node.style.zIndex=$t.Ni,this.node.style.pointerEvents="none",this.imageNode.style.pointerEvents="none",this.co=Qi({},De,{node:this.imageNode,slide:this.slide})},fo:function(){var t,i=this.slide,s=this.uo.cursors;if(s&&s.length){(t=new uh({startTime:0})).addChild(new ah(this,"display",{startTime:0,duration:0,tweenParams:["none","block"],tweenType:jt.zi}));for(var e=0;e<s.length;e++)for(var n=0;n<this.slide.ks.h.length;n++){var h=0,r=s[e].points[n].length;2==r?h=2:4==r&&(h=1);for(var a=0;a<h;a++)s[e].points[n].push(s[e].points[n][0]),s[e].points[n].push(s[e].points[n][1]);0==e&&s[e].points[n].push(1)}var o=0,u=0,c=0,f=0,l=0,d="";for(e=0;e<s.length;e++){var p=s[e],v=s[e+1],m=p.start,b=p.stop,w=p.move;if(p.img){var g=p.img.w,y=p.img.h,k=this.uo.hl_size-p.img.hpx,_=this.uo.hl_size-p.img.hpy,T=this.slide.prez().getResource(p.img.id+".png");t.addChild(new ah(this.co,"src",{startTime:o,duration:0,tweenParams:[d,T],tweenType:jt.zi})),t.addChild(new ah(this.co,"width",{startTime:o,duration:0,tweenParams:[u,g],tweenType:jt.zi})),t.addChild(new ah(this.co,"height",{startTime:o,duration:0,tweenParams:[c,y],tweenType:jt.zi})),t.addChild(new ah(this.co,"left",{startTime:o,duration:0,tweenParams:[f,k],tweenType:jt.zi})),t.addChild(new ah(this.co,"top",{startTime:o,duration:0,tweenParams:[l,_],tweenType:jt.zi})),u=g,c=y,f=k,l=_,d=T}else 0==e&&(t.addChild(new ah(this.co,"width",{startTime:o,duration:0,tweenParams:[0,0],tweenType:jt.zi})),t.addChild(new ah(this.co,"height",{startTime:o,duration:0,tweenParams:[0,0],tweenType:jt.zi})));var x=this.slide.prez().layoutIndex;if(void 0!=p.click&&(void 0!==p.sound||p.click_eff)&&function(t,s,e){i.re.addChild(new rh(function(){var n=i.prez();void 0!==t.sound&&n.ms(t.sound,t.sdur,t,!0),t.click_eff&&n.lh(s,e,t.click_eff.r,t.click_eff.type,gs(t.click_eff.color),1e3)},{startTime:o+p.click}))}(p,this.uo.pos[x][0]+p.points[x][0],this.uo.pos[x][1]+p.points[x][1]),v){var S=[];for(n=0;n<p.points.length;n++){var E=p.points[n],M=v.points[n];S.push([E,M])}t.addChild(new ah(this,"position",{startTime:o+m,duration:w,tweenParams:[S[x]],tweenType:jt.Xi,easing:Xn.inOutQuad}))}m>=0?o+=m+b+w:o=-1}o>0&&t.addChild(new ah(this,"display",{startTime:o,duration:0,tweenParams:["block","none"],tweenType:jt.zi}))}return t}});Fe(function(t,i){return new fn(t,i)},i.H);var ln=Ls({$init:function(t){this.Ms=t,this.Ms.ke.Qs(this)},us:function(t){},lo:function(t){},do:function(){},po:function(){},vo:function(){},nativePlayer:function(){},state:function(){},pause:function(t){},play:function(t){},position:function(){},seek:function(t){},playbackRate:function(t){},volume:function(t){},muted:function(t){},cleanup:function(){this.Ms.ke.Ks(this)},qs:function(){}}),dn=Ls({$init:function(i,s,e){this.mo="video"==s.nodeName.toLowerCase();var n=i.bo;this.wo="",this.mo?this.wo=t('<div class="ap-media-toolbar" media-type="video"> \t\t\t\t\t\t<div class="ap-media-play" role="button" style="display: none"> \t\t\t\t\t\t\t<div class="ap-media-play-icon">'+n.pause+n.play+'</div> \t\t\t\t\t\t</div> \t\t\t\t\t\t<div class="ap-media-toolbar-bottom"> \t\t\t\t\t\t\t<div class="ap-media-tool-container"> \t\t\t\t\t\t\t\t<div class="ap-media-tool-left"> \t\t\t\t\t\t\t\t\t<div class="ap-media-time-label ap-no-select" role="presentation">0:06 / 0:40</div> \t\t\t\t\t\t\t\t</div> \t\t\t\t\t\t\t\t<div class="ap-media-tool-right"> \t\t\t\t\t\t\t\t\t<div class="ap-media-fullscreen" role="button">'+n.fullscreen+'</div> \t\t\t\t\t\t\t\t\t<div class="ap-media-mute" role="button" aria-pressed="true">'+n.sound+n.mute+'</div> \t\t\t\t\t\t\t\t</div> \t\t\t\t\t\t\t</div> \t\t\t\t\t\t\t<div class="ap-media-progressbar" role="slider" aria-valuemin="0" aria-valuemax="0" aria-valuenow="0"> \t\t\t\t\t\t\t\t<div class="ap-media-progress-background"></div> \t\t\t\t\t\t\t\t<div class="ap-media-play-progress"></div> \t\t\t\t\t\t\t\t<div class="ap-media-progress-grabber"></div> \t\t\t\t\t\t\t</div> \t\t\t\t\t\t</div> \t\t\t\t\t </div>')[0]:this.wo=t('<div class="ap-media-toolbar" media-type="audio"> \t\t\t\t\t\t<div class="ap-media-play" role="button"> \t\t\t\t\t\t\t<div class="ap-media-play-icon">'+n.pause+n.play+'</div> \t\t\t\t\t\t</div> \t\t\t\t\t\t<div class="ap-media-time-label ap-no-select" role="presentation">0:06 / 0:40</div> \t\t\t\t\t\t<div class="ap-media-progressbar" role="slider" aria-valuemin="0" aria-valuemax="0" aria-valuenow="0"> \t\t\t\t\t\t\t<div class="ap-media-progress-background"></div> \t\t\t\t\t\t\t<div class="ap-media-play-progress"></div> \t\t\t\t\t\t\t<div class="ap-media-progress-grabber"></div> \t\t\t\t\t\t</div> \t\t\t\t\t\t<div class="ap-media-mute" role="button" aria-pressed="true">'+n.sound+n.mute+"</div> \t\t\t\t\t </div>")[0],this.yo=i,this.ko=s,this._o=e,this.To=t(".ap-media-toolbar-bottom",this.wo),this.xo=t(".ap-media-play",this.wo),this.So=t(".ap-media-mute",this.wo),this.Eo=t(".ap-media-fullscreen",this.wo),this.Mo=t(".ap-media-progressbar",this.wo),this.Co=t(".ap-media-play-progress",this.wo),this.Po=t(".ap-media-progress-grabber",this.wo),this.Io=t(".ap-media-time-label",this.wo),this.mo&&(Os.fullscreenEnabled()||Os.isElementSupportFullscreen(s))||this.Eo.hide();var h=s.style.cursor;h&&(this.wo.style.cursor=h,this.Io.css({cursor:h})),this.Ro=!0,this.Ao=!1,this.mute(s.muted),this.pause(s.paused||s.ended),this.Do()},Do:function(){var i=this,s=this.wo,e=this.ko,n=this.So,h=this.Eo,r=this.Mo,a=this.Po,o=this.xo;this.mo&&(s.onmouseover=function(){i.show(!0,!0)},s.onmousemove=function(){i.show(!0,!0)},s.onmouseleave=function(){i.show(!1)},[o,n,h,r].forEach(function(t){t.on("mouseover",function(){i.Ao=!0}).on("mouseleave",function(){i.Ao=!1})})),e.onpause=function(){i.pause(!0),i.show(!0),i.update()},e.onended=function(){this.paused||this.pause()},e.onplay=function(){i.pause(!1)},o.on("mousedown",function(){e.paused||e.ended?e.play():e.pause()}),e.onvolumechange=function(){i.mute(e.muted)},n.on("mousedown",function(){e.muted=!e.muted}),h.on("click",function(t){i.fullscreen()});var u=function(){return Os.fullscreenElement()==i._o||e.webkitDisplayingFullscreen};r.on("mousedown",function(n){var h=u()?1:i.yo.We,r=(n.pageX-this.offsetLeft*h-t(s).offset().left)/(this.offsetWidth*h);e.currentTime=r*e.duration}),a.css("touchAction","none").draggable({containment:r,axis:"x",start:function(){i.No=!0},drag:function(n,h){var a=h.position.left,o=this.offsetWidth/2,c=u()?1:i.yo.We,f=n.pageX-r.position().left-t(s).offset().left-o*c-h.originalPosition.left*c;a=h.originalPosition.left+f/c,a=Math.max(Math.min(a,r[0].offsetWidth-o),-o),h.position.left=a;var l=(a+o)/r[0].offsetWidth;e.currentTime=l*e.duration,i.update()},stop:function(){i.No=!1;var t=u()?1:i.yo.We,s=(this.offsetLeft+6*t)/r[0].offsetWidth;e.currentTime=s*e.duration}})},getNode:function(){return this.wo},update:function(){var t=this.Mo,i=this.Co,s=this.Po,e=this.Io,n=this.ko,h=t[0].offsetWidth,r=isNaN(n.duration)?0:n.currentTime/n.duration;i.css({transform:"scaleX("+r+")"}),this.No||s.css({left:r*h-6+"px"}),e[0].innerHTML=AtomiAP.formatMSString(1e3*n.currentTime)+" / "+AtomiAP.formatMSString(isNaN(n.duration)?0:1e3*n.duration),t.attr("aria-valuenow",n.currentTime),isNaN(n.duration)||t.attr("aria-valuemax")===n.duration+""||t.attr("aria-valuemax",n.duration),this.Ro&&this.mo&&(n.paused||this.Ao?n.currentTime>0&&this.show(!0,!0):(void 0===this.Oo&&(this.Oo=n.currentTime),n.currentTime-this.Oo>2&&this.show(!1)))},pause:function(t){var i=this.xo,s=i.attr("data-value");(s=s?"false"===s:void 0)!==t&&i.attr("data-value",!t)},show:function(t,i){t!==this.Ro?this.To&&(t||this.ko.paused||this.Ao?(this.To.stop().fadeIn(),this.xo.stop().fadeIn(0,.5),this.Ro=!0):(this.To.fadeOut(500),this.xo.fadeOut(500,0),this.Ro=!1,this.Oo=void 0)):i&&this.xo.stop().fadeIn(0,.5)},mute:function(t){this.So.attr("aria-pressed",t?"true":"false").attr("data-value",t)},fullscreen:function(){Os.fullscreenEnabled()?Os.fullscreenElement()==this._o?Os.exitFullscreen():Os.requestFullscreen(this._o):Os.isElementSupportFullscreen(this.ko)&&Os.requestFullscreen(this.ko)},resize:function(){var t=this.wo,i=this.Mo,s=this.Po,e=this.ko,n=isNaN(e.duration)?0:e.currentTime/e.duration;this.No||s.css({left:n*i[0].offsetWidth-6+"px"}),t.offsetWidth<200?t.setAttribute("size",200):t.removeAttribute("size")}}),pn=["error","ended","loadstart","durationchange","loadedmetadata","loadeddata","canplay","waiting","playing","canplaythrough","stalled","emptied","suspend"],vn=Ls(ln,{$init:function(t,i){for(this.mo=i,this.Lo=i?t.ke.Ys.pop():t.ke.Us.pop();this.Lo.attributes.length>0;)this.Lo.removeAttribute(this.Lo.attributes[0].name);ln.prototype.$init.call(this,t),this.Fo="",this.Uo=0,this.Yo=void 0,this.Bo="stopped",this.Ho=!1,this.zo=!1,this.Xo=!1,this.Go=[],this.Vo=[],this.$o=!1,this.Wo=!1,this.jo=!1,this.Qo=!1,this.Ko=!0,this.qo=void 0,this.Jo=!1,this.Zo()},pn:function(t){this.Qo!=t&&(this.Qo=t,t||this.Yo&&prez.Re())},createToolbar:function(t){return this.Lo?(this.tu=new dn(this.Ms.ui,this.Lo,t),this.tu.getNode()):null},getToolbar:function(){return this.tu},ah:function(t,i){this.Lo&&(this.Lo.addEventListener(t,i),this.Vo.push([t,i]))},rh:function(t,i){if(this.Lo){this.Lo.removeEventListener(t,i);var s,e,n=this.Vo;for(s=0,e=n.length;s<e;++s)if(n[s][0]==t&&n[s][1]==i){n.splice(s,1);break}}},Zo:function(){if(this.Lo){var t,i,s=this.Go,e=this;for(t=0,i=pn.length;t<i;++t){var n=function(t){e.iu(t)};s.push(n),this.Lo.addEventListener(pn[t],n)}var h=this;this.su=function(){h.eu()},this.Lo.addEventListener("timeupdate",this.su)}},nu:function(){if(this.Lo){var t,i,s=this.Go,e=this.Vo;for(t=0,i=pn.length;t<i;++t)this.Lo.removeEventListener(pn[t],s[t]);for(s=[],this.Lo.removeEventListener("timeupdate",this.su),delete this.su,t=0,i=e.length;t<i;++t)this.Lo.removeEventListener(e[t][0],e[t][1]);e=[]}},synchronizeWithPrez:function(t){if(!arguments.length)return this.zo;this.zo=t},backgroundAudio:function(t){if(!arguments.length)return this.Xo;this.Xo=t},Js:function(t){if(!this.zo){var i=this.Lo;if(i)if(t){if(void 0===this.hu&&(this.hu=!i.paused),this.hu)try{i.pause()}catch(t){as("MediaPlayer::_onPrezPlayPause:"+this.Fo+"|exception: "+t.toString())}}else{if(this.hu)try{var s=i.play();if(void 0!==s){var e=this;s.catch(function(t){as("MediaPlayer::_onPrezPlayPause|play error: "+t),"NotAllowedError"==t.name&&(e.jo=!0)})}}catch(t){as("MediaPlayer::_onPrezPlayPause:"+this.Fo+"|exception: "+t.toString())}delete this.hu}}},ru:function(t){var i=this.Ms,s=this.Yo;t!=this.Yo&&(this.Yo=t,this.Qo||(t?i.Re():void 0!==s&&i.Ae()))},iu:function(t){var i=this.Lo?this.Lo.readyState:-1,s=t.type;if(as("MediaPlayer::_onPlayerEvent:"+this.Fo+"|event: "+s+" | state: "+i),"loadeddata"==t.type){var e=this.Ms.ke;this.volume(e.volume()),this.muted(e.muted()),this.playbackRate(e.playbackRate()),void 0!==this.qo&&this.lo(this.qo||0)}if(this.Jo||"canplay"!=s&&"canplaythrough"!=s&&"error"!=s&&"ended"!=s&&"playing"!=s||(this.Jo=!0),!this.$o&&this.Lo&&this.zo){if("error"==s)return this.$o=!0,void this.ru(!1);if("ended"==s)return this.Wo=!0,void this.ru(!1);switch(i){case 0:case 1:case 2:this.ru(!0);break;case 3:this.ru(!(!he.browser.ie&&!he.browser.safari&&this.Jo));break;case 4:this.ru(!this.Jo);break;default:this.ru(!0)}}},eu:function(t){this.tu&&this.tu.update()},au:function(){return this.Lo},dn:function(t){this.Fo=t},An:function(t){this.Uo=(0|t)/1e3},ou:function(){return this.Uo},uu:function(){return this.hh},loadResource:function(t){if(this.Lo){void 0===t&&(t=-1),this.Wo=!0,this.ru(!1),this.$o=!1,this.Wo=!1,this.Ko=!0,this.qo=void 0,this.Jo=!1;try{this.hh=t,this.Lo.src=-1!=t?this.Ms.getResource(t+"."+(this.mo?pe.Ds:pe.As)):"",this.Lo.load()}catch(t){as("MediaPlayer::loadResource:"+this.Fo+"|exception: "+t.toString())}}},us:function(t){if(!arguments.length)return this.Bo;if(this.Bo=t,this.Lo)try{if(as("MediaPlayer::state |"+this.Fo+"|"+t),"stopped"==t)this.Lo.pause();else if(!this.Ho){var i=this.Lo.play();if(void 0!==i){var s=this;i.catch(function(t){as("MediaPlayer::state|play error: "+t),"NotAllowedError"==t.name&&(s.jo=!0)})}this.Wo=!1}}catch(t){as("MediaPlayer::state Set Exception | "+this.Fo+"|"+t.toString())}},lo:function(t){if(arguments.length){if(!this.Ko||!this.Lo)return;var i=this.Lo.readyState,s=t*this.Uo;if(0==i)return as("MediaPlayer::_ts Media Not Ready | "+this.Fo+"|"+s+"| set failed"),void(this.qo=t);this.Ko=!1,this.qo=void 0;try{as("MediaPlayer::_ts |"+this.Fo+"|"+s+"| set");var e=this.Lo.currentTime;e<.2&&s-e>=0&&s-e<.2?as("MediaPlayer::_ts |"+this.Fo+"|"+s+"| difference too small"):this.Lo.currentTime=s}catch(t){as("MediaPlayer::_ts Set Exception | "+this.Fo+"|"+t.toString())}}else try{return 0!=this.Uo&&this.Lo?this.Lo.currentTime/this.Uo:0}catch(t){return as("MediaPlayer::_ts Get Exception | "+this.Fo+"|"+t.toString()),0}},do:function(){this.Ko=!0},po:function(){if(as("MediaPlayer::_timelinePlay | "+this.Fo),(!this.Xo||!this.Ms.allPaused())&&this.Ho&&(this.Ho=!1,"stopped"!=this.Bo&&!this.Wo&&this.Lo))try{var t=this.Lo.play();if(void 0!==t){var i=this;t.catch(function(t){as("MediaPlayer::_timelinePlay|play error: "+t),"NotAllowedError"==t.name&&(i.jo=!0)})}}catch(t){as("MediaPlayer::_timelinePlay Exception | "+this.Fo+"|"+t.toString())}},vo:function(){if(as("MediaPlayer::_timelinePause | "+this.Fo),(!this.Xo||this.Ms.allPaused())&&!this.Ho&&(this.Ho=!0,!this.Wo&&this.Lo))try{this.Lo.pause()}catch(t){as("MediaPlayer::_timelinePause Exception | "+this.Fo+"|"+t.toString())}},nativePlayer:function(){return this.Lo},state:function(){return this.us()},pause:function(t){this.us("stopped"),void 0!==t&&this.seek(t)},play:function(t){void 0!==t&&this.seek(t),this.us("playing")},position:function(){return this.lo()*(1e3*this.Uo)},seek:function(t){t|=0,t=this.Uo>0?t/(1e3*this.Uo):0,this.do(),this.lo(t)},playbackRate:function(t){if(!arguments.length)return this.Lo?this.Lo.playbackRate:1;try{this.Lo&&(this.Lo.playbackRate=t,this.Lo.defaultPlaybackRate=t)}catch(t){as("MediaPlayer::playbackRate Exception | "+this.Fo+"|"+t.toString())}return this},volume:function(t){if(!arguments.length)return this.Lo?this.Lo.volume:1;try{t<0&&(t=0),t>1&&(t=1),this.Lo&&(this.Lo.volume=t,as("MediaPlayer::volume | "+this.Fo+"| set: "+t+"| get: "+this.Lo.volume))}catch(t){as("MediaPlayer::volume Exception | "+this.Fo+"|"+t.toString())}return this},muted:function(t){if(!arguments.length)return!this.Lo||this.Lo.muted;try{this.Lo&&(this.Lo.muted=t,as("MediaPlayer::muted | "+this.Fo+"| set: "+t+"| get: "+this.Lo.muted))}catch(t){as("MediaPlayer::muted Exception | "+this.Fo+"|"+t.toString())}return this},cleanup:function(){ln.prototype.cleanup.call(this);var t=this.Lo;if(t){this.Wo=!0,this.ru(!1),this.nu(),this.Lo=null;try{t.paused||t.pause()}catch(t){as("MediaPlayer::cleanup Exception | "+this.Fo+"|"+t.toString())}this.mo?this.Ms.ke.Ys.unshift(t):this.Ms.ke.Us.unshift(t)}},qs:function(){if(this.jo){if(this.jo=!1,this.Ko=!0,this.Ho)return;if("stopped"==this.Bo)return;if(this.Wo||!this.Lo)return;try{var t=this.Lo.play();void 0!==t&&t.catch(function(t){as("MediaPlayer::_updateUnmute|play error: "+t)})}catch(t){as("MediaPlayer::_updateUnmute Exception | "+this.Fo+"|"+t.toString())}}}}),mn=Ls(Oe,{$init:function(i,s){Oe.prototype.$init.call(this,i,s);var h,r,a,c=this.node,f=!0,l=this;if(this.Dn=i.Ms.vn({ctrl:s}),this.Dn||(f=!1,this.Dn=new vn(i.Ms,!1)),a=(r=(h=this.Dn).au()).style,c.appendChild(r),this.Lo=r,void 0!==this.Ar&&(a.cursor=this.Ar),a.width="100%",a.height="100%",a.pointerEvents="auto",s.f&u){var d=h.createToolbar(c);d&&c.appendChild(d),c.style.pointerEvents="auto",t(this.node).on("mousedown",function(t){l.filterEvent(t)||Qs(t,!0)})}s.f&e&&r.setAttribute("loop",""),h.dn(s.n),h.An(s.md),h.synchronizeWithPrez(s.f&o),h.backgroundAudio(s.f&n),f||h.loadResource(s.mi),this.qr()},cursor:function(t){return Oe.prototype.cursor.call(this,t),this.Lo&&(this.Lo.style.cursor=t),this},onResized:function(t,i){Oe.prototype.onResized.call(this,t,i),this.Dn&&this.Dn.tu&&this.Dn.tu.resize()},html:Je});Fe(function(t,i){return new mn(t,i)},i._);var bn=!1,wn=Ls(Oe,{$init:function(i,s){Oe.prototype.$init.call(this,i,s);var n,h,r,a=this.node,c=this,f=!0;if(this.Dn=i.Ms.vn({ctrl:s}),this.Dn||(f=!1,this.Dn=new vn(i.Ms,!0)),r=(h=(n=this.Dn).au()).style,a.appendChild(h),r.pointerEvents="auto",r.position="absolute",r.top="0px",r.left="0px",s.f&o&&void 0!==s.mi){var l,d=Zi.createElement("img"),p=d.style;l=i.Ms.getImgResource(i.ks.i+"."+this.ks.i),l+=this.ks.g?".png":".jpg",d.src=l,p.position="absolute",p.left="0px",p.top="0px",p.width="100%",p.height="100%",p.pointerEvents="auto",a.appendChild(d),this.cu=d,this.fu(!0)}if(n){if(s.f&u){var v=n.createToolbar(a);v&&a.appendChild(v),a.style.pointerEvents="auto",t(this.node).on("mousedown",function(t){c.filterEvent(t)||Qs(t,!0)})}s.f&e&&h.setAttribute("loop",""),h.setAttribute("playsinline",""),n.dn(s.n),n.An(s.md),n.synchronizeWithPrez(s.f&o),f||n.loadResource(s.mi),this.qr(),this.ks.g&&(r.width="1px",r.height="1px",r[Is]="",r[Cs]="",this.lu=function(){c.du(!0)},this.pu=function(){c.du(!1)},h.addEventListener("play",this.lu),h.addEventListener("pause",this.pu),h.addEventListener("ended",this.pu)),this.vu=function(){var i=Os.fullscreenElement(),s=t(c.node);i==c.node?s.hasClass("ap-fullscreen")||(s.addClass("ap-fullscreen"),c.Mn()):s.hasClass("ap-fullscreen")&&(s.removeClass("ap-fullscreen"),c.Mn())},Os.addEventListener("fullscreenchange",this.vu,!1)}},du:function(t){if(as("Update green screen: "+t),t){if(!this.mu){var i=this;this.mu=setInterval(function(){i.bu()},100)}}else this.mu&&(clearInterval(this.mu),delete this.mu)},fu:function(t){var i,s=this.Dn,e=this.cu;if(s&&e&&(i=s.au()))if(t){if(e.style.display="block",!this.wu){var n=this;this.wu=function(){n.fu(!1)},i.addEventListener("timeupdate",this.wu)}}else e.style.display="none",this.wu&&(i.removeEventListener("timeupdate",this.wu),delete this.wu)},createNode:function(){var t=Oe.prototype.createNode.call(this),i=this.ks;if(i.g){var s=Zi.createElement("canvas"),e=s.style;t.appendChild(s),this.gu=s,ws(s,{width:i.v_w,height:i.v_h}),e.position="absolute",e.top="0px",e.left="0px",e.width="100%",e.height="100%",e.pointerEvents="auto"}return t},onResized:function(t,i){Oe.prototype.onResized.call(this,t,i),this.yu()},yu:function(){if(!this.ks.g&&this.Dn){var t=this.node.offsetWidth,i=this.node.offsetHeight,s=this.ks.v_w,e=this.ks.v_h,n=this.Dn.au(),h=this.Dn.getToolbar(),r=n.style,a=Os.fullscreenElement()==this.node;t<=0||i<=0||s<=0||e<=0||(Li(s/e-t/i)>.01&&!a?(r[Is]="0% 0%",r[Cs]="scaleX("+t/s+") scaleY("+i/e+")",r.width="",r.height=""):(r.width="100%",r.height="100%",he.browser.chromiums?(r[Is]="0% 0%",r[Cs]="scaleX(1) scaleY(1)"):(r[Is]="",r[Cs]="")),h&&h.resize())}},cleanup:function(){if(this.fu(!1),Os.removeEventListener("fullscreenchange",this.vu,!1),this.ks.g&&this.Dn){var t=this.Dn.au();t&&(t.removeEventListener("play",this.lu),t.removeEventListener("pause",this.pu),t.removeEventListener("ended",this.pu)),this.du(!1)}return Oe.prototype.cleanup.call(this)},bu:function(){var t,i,s,e,n,h,r,a,o,u,c,f,l,d=this.ks.g,p=this.gu;if(d&&this.Dn&&(t=p.getContext("2d"))){a=((h=d[0])>>16&255)-(r=255*d[1]/100),o=(h>>16&255)+r,u=(h>>8&255)-r,c=(h>>8&255)+r,f=(255&h)-r,l=(255&h)+r,t.drawImage(this.Dn.au(),0,0,p.width,p.height);try{for(s=(i=t.getImageData(0,0,p.width,p.height)).data,e=0,n=s.length;e<n;e+=4)s[e]>a&&s[e]<o&&s[e+1]>u&&s[e+1]<c&&s[e+2]>f&&s[e+2]<l&&(s[e+3]=0);t.putImageData(i,0,0)}catch(t){bn||(bn=!0,"file:"==window.location.protocol&&alert(this.prez().ui.Ps.text("GreenScreenError")))}}},cursor:function(t){return Oe.prototype.cursor.call(this,t),this.node.style.cursor=t,this},html:Je});Fe(function(t,i){return new wn(t,i)},i.T);var gn=Ls({$init:function(t){this.Dn=new vn(t,!0),this.Dn.au().setAttribute("playsinline",""),this.Dn.synchronizeWithPrez(!0),this.Dn.muted=function(t){var i=vn.prototype.muted;return arguments.length?((t||!t&&this.Ms.sidebarVisible())&&i.call(this,t),this):i.call(this)},this.node=null,this.ku=0},appendTo:function(t){this.node=t,this.node.appendChild(this.Dn.au())},cleanup:function(){this.Dn&&(this.Dn.cleanup(),this.Dn=null,this.node&&(this.node.parentNode&&this.node.parentNode.removeChild(this.node),this.node=null))},muted:function(t){if(!arguments.length)return this.Dn.muted();this.Dn.muted(t)},aspectRatio:function(t){if(!arguments.length)return this.ku;this.ku=t},Mn:function(){}}),yn=-1,kn=0,_n=1,Tn=2,xn=3,Sn=5,En=Ls(ln,{$init:function(t,i,s){ln.prototype.$init.call(this,t),this.gh=i,this.Fo="",this.Uo=3600,this.Yo=void 0,this.Bo="stopped",this.Ho=!1,this.$o=!1,this.Wo=!1,this.Ko=!0,this._u=!1,this.Tu=void 0;var e,n=i.xu,h={rel:0,showinfo:0,autoplay:0,playsinline:1},r=this;this.Su=s.auto_play,!0===s.play_range?(this.Eu=(s.start_time||0)/1e3,this.Mu=(s.stop_time||0)/1e3):(this.Eu=0,this.Mu=0),h.controls=s.hide_controls?0:1,h.iv_load_policy=s.hide_annotations?3:1,h.start=this.Eu,h.autoplay=this.Su?1:0,this.Mu>0&&(h.end=this.Mu),e=new YT.Player(n,{height:"100%",width:"100%",videoId:s.youtube_id,playerVars:h,events:{onReady:function(){r.Cu()},onStateChange:function(){r.Pu()},onError:function(){r.Iu()}}}),this.Ru=e},dn:function(t){this.Fo=t},Au:function(t){switch(t){case yn:return"unstarted";case kn:return"ended";case _n:return"playing";case Tn:return"paused";case xn:return"buffering";case Sn:return"videocued";default:return"invalid"}},Js:function(t){if(this._u&&!this.Su){var i=this.Ru;if(t){if(void 0===this.hu&&(this.hu=i.getPlayerState()==_n),this.hu)try{i.pauseVideo()}catch(t){as("MediaPlayer::_onPrezPlayPause:"+this.Fo+"|exception: "+t.toString())}}else{if(this.hu)try{i.playVideo()}catch(t){as("MediaPlayer::_onPrezPlayPause:"+this.Fo+"|exception: "+t.toString())}delete this.hu}}},ru:function(t){var i=this.Ms,s=this.Yo;t!=this.Yo&&(this.Yo=t,t?i.Re():void 0!==s&&i.Ae())},us:function(t){if(!arguments.length)return this.Bo;if(this.Bo=t,this._u)try{as("YouTubeMediaPlayer::state |"+this.Fo+"|"+t),"stopped"==t?this.Ru.pauseVideo():this.Ho||(this.Ru.playVideo(),this.Wo=!1)}catch(t){as("YouTubeMediaPlayer::state Set Exception | "+this.Fo+"|"+t.toString())}},lo:function(t){var i=this.Ru;if(arguments.length){if(!this._u)return;if(!this.Ko)return;var s,e;this.Ko=!1,s=t*this.Uo+this.Eu;try{(e=i.getCurrentTime())-s>-1&&e-s<1?as("YouTubeMediaPlayer::_ts |"+this.Fo+"|"+e+"| too small difference"):(as("YouTubeMediaPlayer::_ts |"+this.Fo+"|"+s+"| set"),s>=(this.Mu>0?this.Mu:i.getDuration())-1?(as("YouTubeMediaPlayer::_ts seek ts is larger than duration | "+this.Fo+"|"+s),i.stopVideo(),this.Wo=!0,this.ru(!1)):i.seekTo(s,!0))}catch(t){as("YouTubeMediaPlayer::_ts Set Exception | "+this.Fo+"|"+t.toString())}}else try{return 0==this.Uo?0:this._u?(i.getCurrentTime()-this.Eu)/this.Uo:0}catch(t){return as("YouTubeMediaPlayer::_ts Get Exception | "+this.Fo+"|"+t.toString()),0}},do:function(){this.Ko=!0},po:function(){if(as("YouTubeMediaPlayer::_timelinePlay | "+this.Fo),this.Ho&&(this.Ho=!1,"stopped"!=this.Bo&&this._u&&!this.Wo))try{this.Ru.playVideo()}catch(t){as("YouTubeMediaPlayer::_timelinePlay Exception | "+this.Fo+"|"+t.toString())}},vo:function(){if(as("YouTubeMediaPlayer::_timelinePause | "+this.Fo),!this.Ho&&(this.Ho=!0,this._u&&!this.Wo))try{this.Ru.pauseVideo()}catch(t){as("YouTubeMediaPlayer::_timelinePause Exception | "+this.Fo+"|"+t.toString())}},nativePlayer:function(){return this.Ru},state:function(){return this.us()},pause:function(t){this.us("stopped"),void 0!==t&&this.seek(t)},play:function(t){void 0!==t&&this.seek(t),this.us("playing")},position:function(){return this.lo()*(1e3*this.Uo)},seek:function(t){t|=0,t=this.Uo>0?t/(1e3*this.Uo):0,this.do(),this.lo(t)},playbackRate:function(t){if(!arguments.length)return this._u?this.Ru.getPlaybackRate():1;try{if(!this._u)return;this.Ru.setPlaybackRate(t)}catch(t){as("YouTubeMediaPlayer::playbackRate Exception | "+this.Fo+"|"+t.toString())}return this},volume:function(t){if(!arguments.length)return this._u?this.Ru.getVolume()/100:1;try{if(!this._u)return;t<0&&(t=0),t>1&&(t=1),this.Ru.setVolume(100*t)}catch(t){as("YouTubeMediaPlayer::volume Exception | "+this.Fo+"|"+t.toString())}return this},muted:function(t){if(!arguments.length)return!!this._u&&this.Ru.isMuted();try{if(!this._u)return;t?this.Ru.mute():this.Ru.unMute()}catch(t){as("YouTubeMediaPlayer::muted Exception | "+this.Fo+"|"+t.toString())}return this},Cu:function(){if(as("YouTubeMediaPlayer::_onPlayerReady | "+this.Fo),this._u)as("YouTubeMediaPlayer::_onPlayerReady repeated state| "+this.Fo);else{this._u=!0;var t=this.Ms.ke;this.volume(t.volume()),this.muted(t.muted()),this.playbackRate(t.playbackRate()),"playing"!=this.Bo||this.Ho?this.Ru.pauseVideo():this.Ru.playVideo()}},Pu:function(){if(!this.$o&&this.Ru){var i=this.Ru.getPlayerState(),s=this.gh;if(as("YouTubeMediaPlayer::_onPlayerStateChanged | "+this.Fo+"|"+this.Au(i)),this.Su)switch(i){case yn:case Sn:this.ru(!1);break;case kn:this.Wo=!0,this.ru(!1);break;case _n:case Tn:this.ru(!1);break;case xn:this.Wo?this.ru(!1):this.ru(!0)}switch(i){case kn:this.Wo=!0,t(s).triggerHandler(t.Event("ap-ended"),{});break;case _n:t(s).triggerHandler(t.Event("ap-play"),{});break;case Tn:t(s).triggerHandler(t.Event("ap-pause"),{})}}},Iu:function(){this.$o=!0,this.Ru&&this.Su&&this.ru(!1)},cleanup:function(){ln.prototype.cleanup.call(this),this.Ru&&(this.Wo=!0,this._u=!1,this.ru(!1),this.Ru=null)}}),Mn=Ls(Oe,{$init:function(t,i){if(Oe.prototype.$init.call(this,t,i),he.youtubeAPIState==Jt&&(this.Dn=new En(t.Ms,this,i.YT_params),this.Dn.dn(i.n)),i.YT_params.disable_scaling){var s,e=this.prez(),n=this;this.Du=function(){n.Nu()},e&&e.ui&&(s=e.ui.canvas())&&s.on("ap-scaleChanged",this.Du)}},createNode:function(){var t=Oe.prototype.createNode.call(this),i=Zi.createElement("div"),s=Zi.createElement("div"),e=i.style;if(t.style.overflow="hidden",e.pointerEvents="auto",e.position="absolute",e.left="0px",e.top="0px",this.ks.YT_params.disable_scaling){var n,h=this.prez();n=h?h.We():1,e.width=100*n+"%",e.height=100*n+"%",e[Is]=1==n?"":"0% 0%",e[Cs]=1==n?"":"scale("+1/n+", "+1/n+")"}else e.width="100%",e.height="100%";return e.border="none",t.appendChild(i),this.Lo=i,i.appendChild(s),this.xu=s,t},Nu:function(){if(this.Lo){var t,i=this.prez(),s=this.Lo.style;t=i?i.We():1,s.width=100*t+"%",s.height=100*t+"%",s[Is]=1==t?"":"0% 0%",s[Cs]=1==t?"":"scale("+1/t+", "+1/t+")"}},cleanup:function(){if(this.ks.YT_params.disable_scaling){var t,i=this.prez();i&&i.ui&&(t=i.ui.canvas())&&t.off("ap-scaleChanged",this.Du),delete this.Du}return Oe.prototype.cleanup.call(this)},html:Je});Fe(function(t,i){return new Mn(t,i)},i.R);var Cn=Ls(Oe,{$init:function(t,i){Oe.prototype.$init.call(this,t,i);var s,e,n=this.frameNode,h=i.web_params;if(h.embed_code?"srcdoc"in n?n.srcdoc=h.embed_code:(e=function(t){t.target.removeEventListener("load",e,!1);var i=t.target.contentDocument;i.open(),i.write(h.embed_code),i.close()},n.addEventListener("load",e,!1)):(s=this,n.onload=function(){s.Ou},n.onerror=function(){s.Lu},this.Fu=setTimeout(function(){s.Uu()},2e4),h.address?n.src=h.address:h.entrypoint?n.src=this.prez().getResource(h.html_package)+"/"+h.entrypoint:n.src=this.prez().getResource(h.html_package+".html")),i.web_params.disable_scaling){var r,a=this.prez(),o=this;this.Du=function(){o.Nu()},a&&a.ui&&(r=a.ui.canvas())&&r.on("ap-scaleChanged",this.Du)}},createNode:function(){var t=Oe.prototype.createNode.call(this),i=Zi.createElement("iframe"),s=i.style,e=this.ks.web_params.scrolling;if(s.pointerEvents="auto",s.position="absolute",s.left="0px",s.top="0px",this.ks.web_params.disable_scaling){var n,h=this.prez();n=h?h.We():1,s.width=100*n+"%",s.height=100*n+"%",s[Is]=1==n?"":"0% 0%",s[Cs]=1==n?"":"scale("+1/n+", "+1/n+")"}else s.width="100%",s.height="100%";return s.border="none",s.overflow=e?"auto":"hidden",ws(i,{scrolling:e?"auto":"no"}),t.appendChild(i),this.frameNode=i,t},Ou:function(){clearTimeout(this.Fu)},Lu:function(){clearTimeout(this.Fu)},Uu:function(){},Nu:function(){var t,i=this.prez(),s=this.frameNode.style;t=i?i.We():1,s.width=100*t+"%",s.height=100*t+"%",s[Is]=1==t?"":"0% 0%",s[Cs]=1==t?"":"scale("+1/t+", "+1/t+")"},cleanup:function(){if(this.ks.web_params.disable_scaling){var t,i=this.prez();i&&i.ui&&(t=i.ui.canvas())&&t.off("ap-scaleChanged",this.Du),delete this.Du}return clearTimeout(this.Fu),Oe.prototype.cleanup.call(this)},html:Je});Fe(function(t,i){return new Cn(t,i)},i.D);var Pn=Ls(Ze,{$init:function(s,e){(e=e||{},this.Ms=s,this.Er={0:this},this.Mr={},this.Bn=[],this._n=[],this.ur=1,void 0===e.hss&&(e.hss=[]),e.isBackground||(this.re=new fh({startTime:e.st||0}),this.vs(this.re)),this.Yu=[],!e.hsm||e.isBackground||e.isTop||e.isBottom||(this.ja=new un(e.hss)),Ze.prototype.$init.call(this,this,e),this.xh)&&(this.xh()&&this.De());!e.hsm||e.isBackground||e.isTop||e.isBottom||this.ja.initSlide(this);var n=this.node.style,h=void 0!==e.fbi||e.isFeedbackBg,r=!(h||e.isBackground||e.isTop||e.isBottom);if(n.width="100%",n.height="100%",!e.isBackground&&!e.isTop&&!e.isBottom){var a={isBackground:!0,h:e.h,isFeedbackBg:h};e.b&&(e.b.f&&(a.s=[{f:e.b.f}]),e.b.im&&(a.cc=[{k:i.u,s:[{im:[e.b.im[0],255,e.b.im[1]],w:e.b.w}],m:Qt.Demo|Qt.Tutorial|Qt.Practice|Qt.Test}])),this.background=new Pn(s,a)}if(e.isBackground)n.zIndex=h?$t.Yi:$t.Ii,n.height=e.h[s.layoutIndex]+"px";else if(e.isTop?n.zIndex=$t.Di:e.isBottom?n.zIndex=$t.Ri:(n.zIndex=h?$t.Bi:$t.Ai,n.height=e.h[s.layoutIndex]+"px"),this.node.setAttribute("data-ap-sld-"+e.i,""),e.at&&this.node.setAttribute("aria-label",e.at),e.ca&&e.ca.n&&e.ca.n.length?this.reloadClosedCaption():r&&s.an&&(s.an.slide=this,this.re.addChild(new ah(s.an,"display",{startTime:0,duration:0,tweenParams:["block","none"],tweenType:jt.zi}))),this.Bu=void 0,e.cp&&void 0!==e.cp.m){var o=Qt[this.Ms.options.playMode];if((e.cp.m&o)==o){var u=new fn(this,e.cp);t(".ap-slides",s.container)[0].appendChild(u.node),-1!=e.cp.hl_type&&(u.node.style.borderRadius=0===e.cp.hl_type?"50%":0,u.node.style.backgroundColor=gs(e.cp.hl_color)),this.Bu=u}}if(h?t(".ap-feedback-slides",s.container)[0].appendChild(this.node):t(".ap-slides",s.container)[0].appendChild(this.node),!e.isBackground){this.Mn(),this.restore();var c=new en(s,this);o=Qt[this.Ms.options.playMode];if(e.i>=0)(k=he.createZoomAndPan(c,e.z,s.layoutIndex,o))&&this.re.addChild(k);if(this.Bu)(k=this.Bu.fo())&&this.re.addChild(k);for(var f in this.Er){var l=this.Er[f];l.ks.ta&&l.splitText&&l.splitText({chars:l.ks.ta&he.TextEffectFlags.CHARS,words:l.ks.ta&he.TextEffectFlags.WORDS,processStyles:"backgroundColor, textDecoration"})}var d,p,v,m,b,w,g,y,k,_,T=e.tl||[];for(v=0,w=T.length;v<w;++v){for(d=T[v],0===v?_=this.re:(_=new fh,this.vs(_)),_.id=d[0],_.name=d[1],m=0,g=(d=d[2]||[]).length;m<g;++m)if(p=d[m],c=this.object(p[0])){for(b=0,y=(p=p[1]||[]).length;b<y;++b)if(he.createEffect&&(k=he.createEffect.apply(he,[c].concat(p[b]))))switch(p[b][0]){case he.EffectType.PAUSE:case he.EffectType.TIME_OUT:"Demo"!==s.options.playMode&&(k.startTime(k.startTime()+e.st),s.re.addChild(k),c.vs(k));break;default:_.addChild(k)}}else as("Object not found: "+p[0]);this.Yu.push(_),_.setup()}}},flexbox:function(){if(this.ks.fb){var t=this.ks.fb[this.Ms.layoutIndex];t.b&&Oe.prototype.flexbox.call(this,t.b)}},onLayoutSwitched:function(){var t=this.ks.h[this.Ms.layoutIndex];this.node.clientHeight!=t&&this.height(t);var i=this.node.clientWidth,s=this.node.clientHeight;if(i!=this.nr||s!=this.hr){var e=i-this.nr,n=s-this.hr;this.nr=i,this.hr=s,Oe.prototype.onResized.call(this,e,n)}this.flexbox&&this.flexbox(),Oe.prototype.onLayoutSwitched.call(this),this.xh&&this.xh();var h=this,r=function(t){if(t&&t.children)for(var i,s=0,e=h===t?2:1;s<e;++s)for(var n=0,a=t.children.length;n<a;++n)(i=t.children[n]).Th&&(i.gr||!i.Ne&&i.shape||i.textContainer)&&i.Mn(),r(i)};r(this),this.background&&this.background.onLayoutSwitched(),this.Ms.an&&this.Ms.an.onLayoutSwitched()},object:function(t){return(typeof t===Ai?this.Mr[t]:this.Er[t])||null},timeline:function(t){if(!arguments.length)return this.re;var i,s,e=typeof t===Ai?"name":"id";for(i=0,s=this.Yu.length;i<s;++i)if(this.Yu[i][e]===t)return this.Yu[i];return null},timelines:function(){return this.Yu},remove:function(t){return this.node.parentNode&&this.node.parentNode.removeChild(this.node),this.background&&!t&&this.background.remove(),this.cleanup()},cleanup:function(){return this.background&&this.background.cleanup(),this.Bu&&(this.Bu.cleanup(),this.Bu.node.parentNode&&this.Bu.node.parentNode.removeChild(this.Bu.node)),Oe.prototype.cleanup.call(this)},Mn:function(){Oe.prototype.Mn.call(this),this._r||(this._r=0),this._r>10?as("Recursive checking resized: "+this.name()):(++this._r,this.Ms.an&&this.Ms.an.slide==this&&this.Ms.an.onResized(0,0),this.background&&this.background.Mn(),--this._r)},savedData:function(t){var i=this.Ms.gs.slides,s=i[this.ks.index];return t&&!s&&(s=i[this.ks.index]={}),s},fillSolid:function(t,i,s,e){return this.background&&this.background.shape.fillSolid(t,i,s,e),this},reloadClosedCaption:function(){var t=this.ks,i=this.Ms,s=i.Be||0,e=Qt[this.Ms.options.playMode];if((i.ks.cc.modes&e)==e){if(i.ks.responsive&&i.an&&i.an.slide&&i.an.slide.ks.i!=this.ks.i){var n=i.an;(r=i.ui.canvas())&&n.node&&n.node.remove(),delete i.an}if(!i.an){var h={};h.fill=i.ks.cc.fill,h.textStyle=i.ks.cc.textStyle,h.margin=i.ks.cc.margin;var r;n=new Ye(this,h);i.an=n,(r=i.ui.canvas())&&r.append(n.node)}i.an.slide=this,i.Hu&&(this.re.removeChild(i.Hu),delete i.Hu);for(var a=new uh({startTime:0}),o=0;o<t.ca.n.length;o++){var u=t.ca.n[o];0==o&&u.startTime>0&&a.addChild(new ah(this.Ms.an,"display",{startTime:0,duration:0,tweenParams:["block","none"],tweenType:jt.zi})),a.addChild(new ah(this.Ms.an,"display",{startTime:u.startTime,duration:0,tweenParams:["none","block"],tweenType:jt.zi})),a.addChild(new ah(this.Ms.an,"ccNode",{startTime:u.startTime,duration:0,tweenParams:["",u.texts[s]],tweenType:jt.zi})),a.addChild(new ah(this.Ms.an,"display",{startTime:u.startTime+u.duration,duration:0,tweenParams:["block","none"],tweenType:jt.zi}))}this.re.addChild(a),i.Hu=a}}}),In={0:[function(t,i,s,e){this.addRect(t,i,s,e)}],1:[function(t,i,s,e,n){var h=n[0]*Yi(s/2,e/2);this.addRoundedRect(t,i,s,e,h,h)},function(t,i,s){var e=s[0]*Yi(t/2,i/2),n=Vi(e*(1-Fi(2)/2));return[n,n,n,n]},function(t,i,s){var e;return t<i?(e=t/(1-s[0]*(1-Fi(2)/2)),e=2*Vi((e-t)/2)):(e=i/(1-s[0]*(1-Fi(2)/2)),e=2*Vi((e-i)/2)),[t+e,i+e]}],2:[function(t,i,s,e,n){An(this,t,i,s,e,n,!1)}],3:[function(t,i,s,e,n){An(this,t,i,s,e,n,!0)},function(t,i){var s=.2*Yi(t,i),e=Vi(s*(1-Fi(2)/2));return[e,e,e,e]},function(t,i){var s,e;return t<i?e=i+.4*(s=t/(1-.4*(1-Hi(Oi/4))))*(1-Hi(Oi/4)):s=t+.4*(e=i/(1-.4*(1-Hi(Oi/4))))*(1-Hi(Oi/4)),[Vi(s),Vi(e)]}],4:[function(t,i,s,e,n){var h=t+os(s-Yi(s,e)*n[0],0,s),r=i+e/2*n[1];this.moveTo(t,r).lineTo(h,r).lineTo(h,i).lineTo(t+s,i+e/2).lineTo(h,i+e).lineTo(h,i+e-n[1]*e/2).lineTo(t,i+e-n[1]*e/2).closeSubpath()},function(t,i,s){var e=os(t-Yi(t,i)*s[0],0,t),n=i/2*s[1];return[0,n,i<=0?0:Vi((t-e)*(i-2*n)/i),n]},function(t,i,s){var e=s[0],n=s[1];if(n<0&&(n=0),n>1&&(n=1),n<1){var h=i/(1-n),r=t+(1-n)*e*h;if(r<h){var a=1-(1-n)*e;a>.001&&(r=t/a)}return[Vi(r),Vi(h)]}return[t,i]}],5:[function(t,i,s,e,n){var h=t+os(Yi(s,e)*n[0],0,s),r=i+e/2*n[1];this.moveTo(h,i).lineTo(h,r).lineTo(t+s,r).lineTo(t+s,i+e-n[1]*e/2).lineTo(h,i+e-n[1]*e/2).lineTo(h,i+e).lineTo(t,i+e/2).closeSubpath()},function(t,i,s){var e=os(Yi(t,i)*s[0],0,t),n=i/2*s[1];return[i<=0?0:Vi(e*(i-2*n)/i),n,0,n]},function(t,i,s){var e=s[0],n=s[1];if(n<0&&(n=0),n>1&&(n=1),n<1){var h=i/(1-n),r=t+(1-n)*e*h;if(r<h){var a=1-(1-n)*e;a>.001&&(r=t/a)}return[Vi(r),Vi(h)]}return[t,i]}],6:[function(t,i,s,e,n){var h=i+os(Yi(s,e)*n[0],0,e),r=t+s/2*n[1];this.moveTo(t,h).lineTo(t+s/2,i).lineTo(t+s,h).lineTo(t+s-n[1]*s/2,h).lineTo(t+s-n[1]*s/2,i+e).lineTo(r,i+e).lineTo(r,h).lineTo(t,h).closeSubpath()},function(t,i,s){var e=os(Yi(t,i)*s[0],0,i),n=t/2*s[1];return[n,t<0?0:Vi(e*(t-2*n)/t),n,0]},function(t,i,s){var e=s[0],n=s[1];if(n<0&&(n=0),n>1&&(n=1),n<1){var h=t/(1-n),r=i+(1-n)*e*h;if(r<h){var a=1-(1-n)*e;a>.001&&(r=i/a)}return[Vi(h),Vi(r)]}return[t,i]}],7:[function(t,i,s,e,n){var h=os(e-Yi(s,e)*n[0],0,e),r=t+s/2*n[1],a=i+h;this.moveTo(t,a).lineTo(r,a).lineTo(r,i).lineTo(t+s-s/2*n[1],i).lineTo(t+s-s/2*n[1],a).lineTo(t+s,a).lineTo(t+s/2,i+e).closeSubpath()},function(t,i,s){var e=os(i-Yi(t,i)*s[0],0,i),n=t/2*s[1];return[n,0,n,t<=0?0:Vi((i-e)*(t-2*n)/t)]},function(t,i,s){var e=s[0],n=s[1];if(n<0&&(n=0),n>1&&(n=1),n<1){var h=t/(1-n),r=i+(1-n)*e*h;if(r<h){var a=1-(1-n)*e;a>.001&&(r=i/a)}return[Vi(h),Vi(r)]}return[t,i]}],8:[function(t,i,s,e,n){var h=t+s/2*(1+n[0]),r=i+e/2*(1+n[1]),a=Gi(n[1],n[0]),o=a-13*Oi/180,u=a+14*Oi/180;this.moveTo(h,r).lineTo(t+s/2+s/2*Hi(o),i+e/2+e/2*zi(o)).arcTo(s/2,e/2,t+s/2+s/2*Hi(u),i+e/2+e/2*zi(u),!0,!1).closeSubpath()},function(t,i){var s=1-Fi(2)/2,e=Vi(t*s/2),n=Vi(i*s/2);return[e,n,e,n]},function(t,i){var s=1-Fi(2)/2,e=i/(1-s);return[t+Vi(t/(1-s)-t),i+Vi(e-i)]}],9:[function(t,i,s,e,n){var h=n[0]*Yi(s/2,e/2);this.moveTo(t+h,i).lineTo(t+s-h,i).lineTo(t+s-h,i+h).lineTo(t+s,i+h).lineTo(t+s,i+e-h).lineTo(t+s-h,i+e-h).lineTo(t+s-h,i+e).lineTo(t+h,i+e).lineTo(t+h,i+e-h).lineTo(t,i+e-h).lineTo(t,i+h).lineTo(t+h,i+h).closeSubpath()},function(t,i,s){var e=s[0]*Yi(t/2,i/2);return[e,e,e,e]},function(t,i,s){var e;return s[0]<1?t<i?[e=t/(1-s[0]),i+e-t]:[t+(e=i/(1-s[0]))-i,e]:[t,i]}],10:[function(t,i,s,e){this.addEllipse(t+s/2,i+e/2,s/2,e/2)},function(t,i){var s=1-Fi(2)/2,e=Vi(t*s/2),n=Vi(i*s/2);return[e,n,e,n]},function(t,i){var s=1-Fi(2)/2,e=i/(1-s);return[t+Vi(t/(1-s)-t),i+Vi(e-i)]}],11:[function(t,i,s,e){this.moveTo(t+s/2,i).lineTo(t+s,i+e/2).lineTo(t+s/2,i+e).lineTo(t,i+e/2).closeSubpath()},function(t,i){var s=Vi(t/4),e=Vi(i/4);return[s,e,s,e]},function(t,i){return[2*t,2*i]}],12:[function(t,i,s,e,n){var h=t+s/2+n[0]*s/2,r=i+e/2+n[1]*e/2;this.moveTo(t+s/11,i+3/7*e).quadraticTo(t+1.3/11*s,i+1.1/7*e,t+3.8/11*s,i+1.9/7*e).quadraticTo(t+4.6/11*s,i+1/7*e,t+6/11*s,i+1.5/7*e).quadraticTo(t+6.8/11*s,i+.8/7*e,t+7.8/11*s,i+1.3/7*e).quadraticTo(t+9.5/11*s,i+.5/7*e,t+10/11*s,i+2/7*e).quadraticTo(t+1*s,i+2.4/7*e,t+10.5/11*s,i+3.2/7*e).quadraticTo(t+12/11*s,i+4.6/7*e,t+9.8/11*s,i+5.1/7*e).quadraticTo(t+9.5/11*s,i+6.8/7*e,t+7.5/11*s,i+6.2/7*e).quadraticTo(t+6/11*s,i+8/7*e,t+4.3/11*s,i+6.5/7*e).quadraticTo(t+2.6/11*s,i+e,t+1.5/11*s,i+6/7*e).quadraticTo(t+-.2/11*s,i+6/7*e,t+.5/11*s,i+4.5/7*e).quadraticTo(t-.5/11*s,i+3.7/7*e,t+1/11*s,i+3/7*e).closeSubpath().addEllipse(h,r,.2/11*s,.2/11*s).addEllipse(h+(t+s/2-h)/6,r+(i+e/2-r)/6,.5/11*s,.5/11*s).addEllipse(h+(t+s/2-h)/2.5,r+(i+e/2-r)/2.5,.8/11*s,.8/11*s)},function(t,i){var s=Vi(t/8),e=Vi(i/4);return[s,e,s,e]},function(t,i){return[t+Vi(t/3),2*i]}],14:[function(t,i,s,e,n){var h=n[0]*s/2,r=n[1]*e/2;this.moveTo(t,i+e/2).lineTo(t+h,i).lineTo(t+h,i+r).lineTo(t+s-h,i+r).lineTo(t+s-h,i).lineTo(t+s,i+e/2).lineTo(t+s-h,i+e).lineTo(t+s-h,i+e-r).lineTo(t+h,i+e-r).lineTo(t+h,i+e).closeSubpath()},function(t,i,s){var e=Vi(s[0]*t/2),n=Vi(i*(s[1]/2));return[e,n,e,n]},function(t,i,s){var e=s[0],n=s[1];return e<1&&n<1?[Vi(t/(1-e)),Vi(i/(1-n))]:[t,i]}],15:[function(t,i,s,e,n){var h=n[0]*s/2,r=n[1]*e/2;this.moveTo(t,i+r).lineTo(t+s/2,i).lineTo(t+s,i+r).lineTo(t+s-h,i+r).lineTo(t+s-h,i+e-r).lineTo(t+s,i+e-r).lineTo(t+s/2,i+e).lineTo(t,i+e-r).lineTo(t+h,i+e-r).lineTo(t+h,i+r).closeSubpath()},function(t,i,s){var e=Vi(t*(s[0]/2)),n=Vi(s[1]*i/2);return[e,n,e,n]},function(t,i,s){var e=s[0],n=s[1];return e<1&&n<1?[Vi(t/(1-e)),Vi(i/(1-n))]:[t,i]}],16:[function(t,i,s,e,n){var h=n[0]*s,r=n[1]*e,a=Yi(n[2],n[0])*s,o=Bi(n[3],n[1])*e;this.moveTo(t,i).lineTo(t+a,i).lineTo(t+a,i+o).lineTo(t+h,i+o).lineTo(t+h,i+r).lineTo(t+s,i+e/2).lineTo(t+h,i+e-r).lineTo(t+h,i+e-o).lineTo(t+a,i+e-o).lineTo(t+a,i+e).lineTo(t,i+e).closeSubpath()},function(t,i,s){return[0,0,Vi(t*(1-Yi(s[2],s[0]))),0]},function(t,i,s){var e=Yi(s[2],s[0]);return e>0?[Vi(t/e),i]:[t,i]}],17:[function(t,i,s,e,n){var h=n[1]*s,r=n[2]*e,a=Bi(n[0],n[1])*s,o=Yi(n[2],n[3])*e;this.moveTo(t,i).lineTo(t+s,i).lineTo(t+s,i+o).lineTo(t+s-a,i+o).lineTo(t+s-a,i+r).lineTo(t+s-h,i+r).lineTo(t+s/2,i+e).lineTo(t+h,i+r).lineTo(t+a,i+r).lineTo(t+a,i+o).lineTo(t,i+o).closeSubpath()},function(t,i,s){return[0,0,0,Vi(i*(1-Yi(s[2],s[3])))]},function(t,i,s){var e=Yi(s[2],s[3]);return[t,Vi(i/e)]}],18:[function(t,i,s,e,n){var h=n[0]*s,r=n[1]*e,a=Bi(n[2],n[0])*s,o=Bi(n[3],n[1])*e;this.moveTo(t+a,i).lineTo(t+s,i).lineTo(t+s,i+e).lineTo(t+a,i+e).lineTo(t+a,i+e-o).lineTo(t+h,i+e-o).lineTo(t+h,i+e-r).lineTo(t,i+e/2).lineTo(t+h,i+r).lineTo(t+h,i+o).lineTo(t+a,i+o).closeSubpath()},function(t,i,s){return[Vi(Bi(s[2],s[0])*t),0,0,0]},function(t,i,s){var e=Bi(s[2],s[0]);return e<1?[Vi(t/(1-e)),i]:[t,i]}],19:[function(t,i,s,e,n){var h=n[1]*s,r=n[2]*e,a=Bi(n[0],n[1])*s,o=Bi(n[2],n[3])*e;this.moveTo(t+s/2,i).lineTo(t+h,i+r).lineTo(t+a,i+r).lineTo(t+a,i+o).lineTo(t,i+o).lineTo(t,i+e).lineTo(t+s,i+e).lineTo(t+s,i+o).lineTo(t+s-a,i+o).lineTo(t+s-a,i+r).lineTo(t+s-h,i+r).closeSubpath()},function(t,i,s){return[0,Vi(Bi(s[2],s[3])*i),0,0]},function(t,i,s){var e=Bi(s[2],s[3]);return e<1?[t,Vi(i/(1-e))]:[t,i]}],20:[function(t,i,s,e,n){var h=n[0],r=n[1];this.moveTo(t+s*h,i).lineTo(t+s,i+e/2).lineTo(t+s*h,i+e).lineTo(t+s*h,i+e*(1-r/2)).lineTo(t,i+e*(1-r/2)).lineTo(t+(s-s*h)/2,i+e/2).lineTo(t,i+e*r/2).lineTo(t+s*h,i+e*r/2).closeSubpath()},function(t,i,s){var e=s[0],n=s[1];return[Vi(t*(1-e)/2),Vi(i/2*n),Vi(t-t*((1-e)*n+e)),Vi(i/2*n)]},function(t,i,s){var e=s[0],n=s[1];return n<1&&e>0?[Vi(t/((1-e)*n+e-(1-e)/2)),Vi(i/(1-n))]:[t,i]}],21:[function(t,i,s,e,n){var h=s*n[0];this.moveTo(t,i).lineTo(t+h,i).lineTo(t+s,i+e/2).lineTo(t+h,i+e).lineTo(t,i+e).lineTo(t+s-h,i+e/2).closeSubpath()},function(t,i,s){var e=s[0];return[Vi(t*(1-e)),0,Vi(t*(1-e)),0]}],22:[function(t,i,s,e,n){this.moveTo(t+n[0]*s,i).lineTo(t+s,i+e).lineTo(t,i+e).closeSubpath()},function(t,i,s){var e=s[0];return[Vi(t*e/2),Vi(i/2),Vi((1-e)*t/2),0]},function(t,i){return[Vi(2*t),Vi(2*i)]}],23:[function(t,i,s,e,n){this.moveTo(t,i).lineTo(t+s,i+e).lineTo(t,i+e).closeSubpath()},function(t,i){return[Vi(1*t/10),Vi(6*i/10),Vi(4*t/10),Vi(1*i/10)]},function(t,i){return[Vi(2*t),Vi(10*i/3)]}],24:[function(t,i,s,e,n){this.moveTo(t+.2*s,i).lineTo(t+s,i).lineTo(t+.8*s,i+e).lineTo(t,i+e).closeSubpath()},function(t,i){return[Vi(.2*t),0,Vi(.2*t),0]},function(t,i){return[Vi(t/.6),Vi(i)]}],25:[function(t,i,s,e,n){this.moveTo(t+s/2,i).lineTo(t+s,i+e/2*(1-Hi(2*Oi/4.7))).lineTo(t+s/2+s/2/Hi(2*Oi/20)*zi(2*Oi/10),i+e).lineTo(t+s/2-s/2/Hi(2*Oi/20)*zi(2*Oi/10),i+e).lineTo(t,i+e/2*(1-Hi(2*Oi/4.7))).closeSubpath()},function(t,i){return[Vi(t/4),Vi(i/4),Vi(t/4),Vi(i/4)]},function(t,i){return[2*t,2*i]}],26:[function(t,i,s,e,n){var h=n[0]*Yi(s/2,e/2);this.moveTo(t,i+e/2).lineTo(t+h,i+e).lineTo(t+s-h,i+e).lineTo(t+s,i+e/2).lineTo(t+s-h,i).lineTo(t+h,i).closeSubpath()},function(t,i,s){var e=Ui(3,s[0]),n=Vi(e*Yi(t/10,i/10));return[n,n,n,n]},function(t,i,s){var e,n,h=Ui(3,s[0]);return t<i?n=i+h*(e=t/(1-2*h/10))/5:e=t+h*(n=i/(1-2*h/10))/5,[Vi(e),Vi(n)]}],27:[function(t,i,s,e,n){var h=n[0]*Yi(s/2,e/2);this.moveTo(t+h,i).lineTo(t+s-h,i).lineTo(t+s,i+h).lineTo(t+s,i+e-h).lineTo(t+s-h,i+e).lineTo(t+h,i+e).lineTo(t,i+e-h).lineTo(t,i+h).closeSubpath()},function(t,i,s){var e=.70710678118*s[0]*Yi(t/2,i/2);return[e,e,e,e]},function(t,i,s){if(s[0]>1)return[t,i];var e,n,h=.70710678118*s[0];return t<i?n=i+h*(e=t/(1-h)):e=t+h*(n=i/(1-h)),[Vi(e),Vi(n)]}],28:[function(t,i,s,e,n){var h=n[0]*Yi(s/2,e/2);this.moveTo(t,i+h).cubicTo(t,i+h,t+h,i+h,t+h,i).lineTo(t+s-h,i).cubicTo(t+s-h,i,t+s-h,i+h,t+s,i+h).lineTo(t+s,i+e-h).cubicTo(t+s,i+e-h,t+s-h,i+e-h,t+s-h,i+e).lineTo(t+h,i+e).cubicTo(t+h,i+e,t+h,i+e-h,t,i+e-h).closeSubpath()},function(t,i,s){var e=Vi(s[0]*Yi(t/2,i/2)*Hi(Oi/4));return[e,e,e,e]},function(t,i,s){if(s[0]>1/Hi(Oi/4))return[t,i];var e=0;return t<i?e=(t/(1-s[0]*Hi(Oi/4))-t)/2:t>i&&(e=(i/(1-s[0]*Hi(Oi/4))-i)/2),[t+Vi(2*e),i+Vi(2*e)]}],31:[function(t,i,s,e){this.moveTo(t+s/2,i+e).cubicTo(t-s/2,i+e/4,t+s/4,i-e/3,t+s/2,i+e/4).cubicTo(t+.75*s,i-e/3,t+1.5*s,i+e/4,t+s/2,i+e).closeSubpath()},function(t,i){return[Vi(.2*t),Vi(.25*i),Vi(.2*t),Vi(.35*i)]},function(t,i){return[Vi(5*t/3),Vi(5*i/2)]}],32:[function(t,i,s,e,n){this.moveTo(t+s,i+e).cubicTo(t,i+e,t,i+e/2,t,i+e/2).cubicTo(t,i+e/2,t,i,t+s,i).cubicTo(t+n[0]*s,i,t+n[0]*s,i+e/2,t+n[0]*s,i+e/2).cubicTo(t+n[0]*s,i+e/2,t+n[0]*s,i+e,t+s,i+e).closeSubpath()},function(t,i,s){return[Vi(t*s[0]/3),Vi(i*(1-s[0])/2),Vi(t*(1-s[0])),Vi(i*(1-s[0])/2)]},function(t,i,s){var e=s[0];return e>0?[Vi(t/e*1.5),Vi(i/e)]:[t,i]}],44:[function(t,i,s,e,n){this.moveTo(t,i).lineTo(t+s,i).lineTo(t+s,i+.8*e).lineTo(t+s/2,i+e).lineTo(t,i+.8*e).closeSubpath()},function(t,i){return[0,0,0,.2*i]},function(t,i){return[t,5/4*i]}],46:[function(t,i,s,e,n){this.moveTo(t+s/6,i).lineTo(t,i+e/2).lineTo(t+s/6,i+e).lineTo(t+s-s/6,i+e).cubicTo(t+5/6*s,i+e,t+s,i+e,t+s,i+e/2).cubicTo(t+s,i,t+5/6*s,i,t+5/6*s,i).closeSubpath()},function(t,i){return[t/6,0,t/6,0]},function(t,i){return[3*t/2,i]}],47:[function(t,i,s,e,n){this.moveTo(t+.2*s,i).lineTo(t+s,i).lineTo(t+s,i+e).lineTo(t,i+e).lineTo(t,i+.2*e).closeSubpath()},function(t,i){return[0,.2*i,0,0]},function(t,i){return[t,Vi(5*i/4)]}],48:[function(t,i,s,e,n){var h=os(n[0]*Yi(s,e),0,s);this.moveTo(t,i).lineTo(t+s-h,i).lineTo(t+s,i+e/2).lineTo(t+s-h,i+e).lineTo(t,i+e).closeSubpath()},function(t,i,s){return[0,0,os(s[0]*Yi(t,i),0,t)/2,0]},function(t,i,s){var e=s[0];if(e>0){var n=i,h=t+e*n/2;return h<n&&(h=Vi(2*t/(2-e))),[Vi(h),Vi(n)]}return[t,i]}],49:[function(t,i,s,e,n){this.moveTo(t+s/6,i).cubicTo(t-s/18,i-e/35,t-s/18,i+36*e/35,t+s/6,i+e).lineTo(t+s,i+e).cubicTo(t+7*s/9,i+36*e/35,t+7*s/9,i-e/35,t+s,i).lineTo(t+s/6,i).closeSubpath()},function(t,i){return[t/6,0,t/6,0]},function(t,i){return[3*t/2,i]}],50:[function(t,i,s,e,n){var h=n[1]*s/2,r=n[0]*e/2;h<=0?this.moveTo(t-2*h,i+r).cubicTo(t+s/4-2*h,i-2.5*r,t+3*s/4,i+5*r,t+s,i+r).lineTo(t+s+2*h,i+e-r).cubicTo(t+3*s/4+2.2*h,i+e+2.5*r,t+s/4,i+e-5*r,t,i+e-r).lineTo(t-2*h,i+r):this.moveTo(t,i+r).cubicTo(t+s/4,i-2.5*r,t+3*s/4-2*h,i+5*r,t+s-2*h,i+r).lineTo(t+s,i+e-r).cubicTo(t+3*s/4,i+e+2.5*r,t+s/4+2*h,i+e-5*r,t+2*h,i+e-r).lineTo(t,i+r),this.closeSubpath()},function(t,i,s){var e=s[1]*t/2,n=s[0]*i/2;return[2*Li(e),2.2*n,2*Li(e),2.2*n]},function(t,i,s){return[t+2*(t*Li(s[1])/(1-2*Li(s[1]))),i+2*(i*s[0]/(1-2.2*s[0]))]}],52:[function(t,i,s,e,n,h){!function(t,i,s,e,n,h,r){var a,o=Nn(r),u=o.cXs,c=o.cYs,f=o.minX,l=o.minY,d=o.maxX,p=o.maxY,v=e/(d-f),m=n/(p-l);for(t.moveTo(i+(u[0]-f)*v,s+(c[0]-l)*m).lineTo(i+(u[1]*h-f)*v,s+(c[1]*h-l)*m),a=1;a<r;++a)t.lineTo(i+(u[2*a]-f)*v,s+(c[2*a]-l)*m).lineTo(i+(u[2*a+1]*h-f)*v,s+(c[2*a+1]*h-l)*m);t.closeSubpath()}(this,t,i,s,e,n[0],h)},function(t,i,s,e){var n=Nn(e),h=n.cXs,r=n.cYs,a=n.minX,o=n.minY,u=n.maxX,c=n.maxY,f=s[0],l=t/(u-a),d=i/(c-o),p=0,v=0;if(5===e)return[p=t-(h[1]*f-a)*l,v=(r[1]*f-o)*d,p,i-(r[5]*f-o)*d];switch(e){case 4:case 6:case 8:p=t-(h[1]*f-a)*l,v=(r[1]*f-o)*d;break;case 12:p=t-(h[3]*f-a)*l,v=(r[3]*f-o)*d;break;case 24:p=t-(h[5]*f-a)*l,v=(r[5]*f-o)*d}return[p,v,p,v]},function(t,i,s,e){var n=s[0],h=0,r=0,a=Nn(e),o=a.cXs,u=a.cYs,c=a.minX,f=a.minY,l=a.maxX,d=a.maxY;if(0==n)return[t,i];if(5==e)return[Vi(t*(l-c)/(-l-c+2*o[1]*n)),Vi(i*(d-f)/((u[5]-u[1])*n))];switch(e){case 4:case 6:case 8:h=Vi((l-o[1]*n)/(-l-c+2*o[1]*n)*t),r=Vi((u[1]*n-f)/(d-f-2*(u[1]*n-f))*i);break;case 12:h=Vi((l-o[3]*n)/(-l-c+2*o[3]*n)*t),r=Vi((u[3]*n-f)/(d-f-2*(u[3]*n-f))*i);break;case 24:h=Vi((l-o[5]*n)/(-l-c+2*o[5]*n)*t),r=Vi((u[5]*n-f)/(d-f-2*(u[5]*n-f))*i)}return[t+2*h,i+2*r]}]},Rn=Ls({$init:function(){this.zu=""},path:function(t){return arguments.length?(this.zu=t,this):this.zu},clear:function(){return this.zu="",this},addPath:function(t){return this.zu+=" "+t,this},moveTo:function(t,i){return this.zu+=" M"+t+","+i,this},lineTo:function(t,i){return this.zu+=" L"+t+","+i,this},arcTo:function(t,i,s,e,n,h){return this.zu+=" A"+t+","+i+" 0 "+(n?1:0)+","+(h?1:0)+" "+s+","+e,this},cubicTo:function(t,i,s,e,n,h){return this.zu+=" C"+t+","+i+" "+s+","+e+" "+n+","+h,this},quadraticTo:function(t,i,s,e){return this.zu+=" Q"+t+","+i+" "+s+","+e,this},closeSubpath:function(){return this.zu+=" Z",this},addEllipse:function(t,i,s,e){return this.moveTo(t-s,i).arcTo(s,e,t+s,i,!0,!0).arcTo(s,e,t-s,i,!0,!0).closeSubpath()},addRect:function(t,i,s,e){return this.moveTo(t,i).lineTo(t+s,i).lineTo(t+s,i+e).lineTo(t,i+e).closeSubpath()},addRoundedRect:function(t,i,s,e,n,h){return this.moveTo(t,i+h).arcTo(n,h,t+n,i,!1,!0).lineTo(t+s-n,i).arcTo(n,h,t+s,i+h,!1,!0).lineTo(t+s,i+e-h).arcTo(n,h,t+s-n,i+e,!1,!0).lineTo(t+n,i+e).arcTo(n,h,t,i+e-h,!1,!0).closeSubpath()},addMarker:function(t,i,s){var e,n,h;switch(n=(0==(e=i%3)?2:1==e?3:5)*s,h=(0==(e=$i(i/3))?2:1==e?3:5)*s,t){case rt.ARROW:this.moveTo(0,0).lineTo(n,-h/2).lineTo(n,h/2).closeSubpath();break;case rt.OPEN:var r=Gi(h/2,n),a=$i(s/zi(r)/2);this.moveTo(n+a,-h/2).lineTo(a,0).lineTo(n+a,h/2);break;case rt.STEALTH:this.moveTo(0,0).lineTo(n,-h/2).lineTo(n/2,0).lineTo(n,h/2).closeSubpath();break;case rt.DIAMOND:this.moveTo(-n/2,0).lineTo(0,-h/2).lineTo(n/2,0).lineTo(0,h/2).closeSubpath();break;case rt.OVAL:this.addEllipse(0,0,n/2,h/2)}return this}});function An(t,i,s,e,n,h,r){var a=h[0],o=h[1],u=i+e/2*(1+a),c=s+n/2*(1+o),f=r?.2*Yi(e,n):0;t.moveTo(i+f,s),a<=0&&o<=0&&Li(a)<=Li(o)?(t.lineTo(i+.2*e,s).lineTo(u,c).lineTo(i+.4*e,s).lineTo(i+e-f,s),r&&t.arcTo(f,f,i+e,s+f,!1,!0),t.lineTo(i+e,s+n-f),r&&t.arcTo(f,f,i+e-f,s+n,!1,!0),t.lineTo(i+f,s+n),r&&t.arcTo(f,f,i,s+n-f,!1,!0),t.lineTo(i,s+f),r&&t.arcTo(f,f,i+f,s,!1,!0)):a<=0&&o<=0&&Li(a)>Li(o)?(t.lineTo(i+e-f,s),r&&t.arcTo(f,f,i+e,s+f,!1,!0),t.lineTo(i+e,s+n-f),r&&t.arcTo(f,f,i+e-f,s+n,!1,!0),t.lineTo(i+f,s+n),r&&t.arcTo(f,f,i,s+n-f,!1,!0),t.lineTo(i,s+4*n/10).lineTo(u,c).lineTo(i,s+2*n/10),r&&t.arcTo(f,f,i+f,s,!1,!0)):a>0&&o<=0&&Li(a)<=Li(o)?(t.lineTo(i+6*e/10,s).lineTo(u,c).lineTo(i+8*e/10,s).lineTo(i+e-f,s),r&&t.arcTo(f,f,i+e,s+f,!1,!0),t.lineTo(i+e,s+n-f),r&&t.arcTo(f,f,i+e-f,s+n,!1,!0),t.lineTo(i+f,s+n),r&&t.arcTo(f,f,i,s+n-f,!1,!0),t.lineTo(i,s+f),r&&t.arcTo(f,f,i+f,s,!1,!0)):a>0&&o<=0&&Li(a)>Li(o)?(t.lineTo(i+e-f,s),r&&t.arcTo(f,f,i+e,s+f,!1,!0),t.lineTo(i+e,s+2*n/10).lineTo(u,c).lineTo(i+e,s+4*n/10).lineTo(i+e,s+n-f),r&&t.arcTo(f,f,i+e-f,s+n,!1,!0),t.lineTo(i+f,s+n),r&&t.arcTo(f,f,i,s+n-f,!1,!0),t.lineTo(i,s+f),r&&t.arcTo(f,f,i+f,s,!1,!0)):a<=0&&o>0&&Li(a)>Li(o)?(t.lineTo(i+e-f,s),r&&t.arcTo(f,f,i+e,s+f,!1,!0),t.lineTo(i+e,s+n-f),r&&t.arcTo(f,f,i+e-f,s+n,!1,!0),t.lineTo(i+f,s+n),r&&t.arcTo(f,f,i,s+n-f,!1,!0),t.lineTo(i,s+.8*n).lineTo(u,c).lineTo(i,s+6*n/10).lineTo(i,s+f),r&&t.arcTo(f,f,i+f,s,!1,!0)):a<=0&&o>0&&Li(a)<=Li(o)?(t.lineTo(i+e-f,s),r&&t.arcTo(f,f,i+e,s+f,!1,!0),t.lineTo(i+e,s+n-f),r&&t.arcTo(f,f,i+e-f,s+n,!1,!0),t.lineTo(i+4*e/10,s+n).lineTo(u,c).lineTo(i+2*e/10,s+n).lineTo(i+f,s+n),r&&t.arcTo(f,f,i,s+n-f,!1,!0),t.lineTo(i,s+f),r&&t.arcTo(f,f,i+f,s,!1,!0)):a>0&&o>0&&Li(a)>Li(o)?(t.lineTo(i+e-f,s),r&&t.arcTo(f,f,i+e,s+f,!1,!0),t.lineTo(i+e,s+6*n/10).lineTo(u,c).lineTo(i+e,s+.8*n).lineTo(i+e,s+n-f),r&&t.arcTo(f,f,i+e-f,s+n,!1,!0),t.lineTo(i+f,s+n),r&&t.arcTo(f,f,i,s+n-f,!1,!0),t.lineTo(i,s+f),r&&t.arcTo(f,f,i+f,s,!1,!0)):a>0&&o>0&&Li(a)<=Li(o)&&(t.lineTo(i+e-f,s),r&&t.arcTo(f,f,i+e,s+f,!1,!0),t.lineTo(i+e,s+n-f),r&&t.arcTo(f,f,i+e-f,s+n,!1,!0),t.lineTo(i+.8*e,s+n).lineTo(u,c).lineTo(i+6*e/10,s+n).lineTo(i+f,s+n),r&&t.arcTo(f,f,i,s+n-f,!1,!0),t.lineTo(i,s+f),r&&t.arcTo(f,f,i+f,s,!1,!0)),t.closeSubpath()}var Dn={};function Nn(t){var i=Dn[t];if(!i){var s,e=[],n=[],h=1,r=1,a=-1,o=-1;for(s=0;s<t;s++)e[2*s]=Hi(2*Oi*s/t-Oi/2),n[2*s]=zi(2*Oi*s/t-Oi/2),e[2*s]<h&&(h=e[2*s]),n[2*s]<r&&(r=n[2*s]),e[2*s]>a&&(a=e[2*s]),n[2*s]>o&&(o=n[2*s]),e[2*s+1]=Hi(2*Oi*((2*s+1)/2)/t-Oi/2),n[2*s+1]=zi(2*Oi*((2*s+1)/2)/t-Oi/2);i=Dn[t]={cXs:e,cYs:n,minX:h,minY:r,maxX:a,maxY:o}}return i}function On(t){var i;try{i=t.getBBox()}catch(t){i={x:0,y:0,width:0,height:0}}return{x:i.x,y:i.y,width:i.width,height:i.height}}var Ln=he.browser.ie||he.browser.edge,Fn=Ls(De,{$init:function(t,i){this.parent=i,this.slide=i.slide,this.container=t,this.Xu=vt.dt,this.ua="none",this.fa=1,this.Gu="black",this.Vu=1,this.$u="round",this.os=0,this.Ta=[]},path:function(t){var i,s=null;if(t)for(s=[],i=0;i<t.length;++i)if(i<2)s.push(t[i].slice());else for(var e=t[i],n=0;n<e.length;++n){var h=e[n];if(h){var r=h.p;s.push(r.slice()),s[s.length-1].f=h.f}}this.Wu=s,this.Fe()?this.ju():this.Qu()&&this.xn()},shape:function(t,i){this.os=t,this.Ta=i,this.Fe()?this.ju():this.Qu()&&this.xn()},lineStyle:function(t){if(typeof t!==Ai&&(t=t&at?"solid":t&ot?"dotted":t&ut?"dashed":t&ct?"dash-dotted":"none"),this.ua=t,"none"===t)this.Ku?this.Ku.style.display=t:this.qu&&(this.qu.style.stroke=t),this.Ju();else if(this.Fe()){this.Ku?this.Ku.style.display="":this.qu&&(this.qu.style.stroke=this.Gu||"black");var i="none",s=this.fa||0;switch(t){case"solid":i="none";break;case"dotted":i="0.01 "+2*s;break;case"dashed":i=2*s+" "+2*s;break;case"dash-dotted":case"dot-dashed":i=2*s+" "+2*s+" 0 "+2*s;break;default:i=t}this.qu&&(this.qu.style.strokeDasharray=i),this.Ju()}else this.Qu()&&this.xn()},lineJoin:function(t){typeof t!==Ai&&(t=t&dt?"round":t&pt?"bevel":"miter"),this.Zu=t,this.qu&&(this.qu.style.strokeLinejoin=t)},lineCap:function(t){if(typeof t!==Ai){var i="butt";t&ft?i="square":t&lt&&(i="round"),t=i}this.$u=t,this.qu&&(this.qu.style.strokeLinecap=t)},lineWidth:function(t){this.fa=t,this.Fe()?(this.Ju(),this.tc()&&this.ju(),this.qu&&(this.qu.style.strokeWidth=t),this.hasArrow()&&(this.ju(),this.ic&&(this.ic.style.strokeWidth=t),this.sc&&(this.sc.style.strokeWidth=t)),"none"!==this.ua&&this.lineStyle(this.ua)):this.Qu()&&this.xn()},Ju:function(){if(this.shapeNode){var t=this.fa%2/2;t&&"none"!==this.ua?this.shapeNode.setAttribute("transform","translate("+t+", "+t+")"):this.shapeNode.removeAttribute("transform")}},lineColor:function(t,i,s,e){var n;typeof t===Ai?(this.Gu=t,e=i):this.Gu=gs(t,i,s),this.Vu=void 0===e?1:e,this.Ku?(this.Ku.style.opacity=this.Vu,this.qu.style.stroke=this.Gu,this.ic&&(n=this.ic.style,this.ec&&this.ec.type!==rt.NONE?this.ec.type===rt.OPEN?(n.stroke=this.Gu,n.fill="none"):(n.stroke="none",n.fill=this.Gu):n.stroke=n.fill="none"),this.sc&&(n=this.sc.style,this.nc&&this.nc.type!==rt.NONE?this.nc.type===rt.OPEN?(n.stroke=this.Gu,n.fill="none"):(n.stroke="none",n.fill=this.Gu):n.stroke=n.fill="none")):this.qu&&("none"!==this.ua&&(this.qu.style.stroke=this.Gu),this.qu.style.strokeOpacity=this.Vu)},startArrow:function(t,i){this.ec={type:t,size:i},this.Fe()?(this.ju(),this.lineColor(this.Gu,this.Vu)):this.Qu()&&this.xn()},endArrow:function(t,i){this.nc={type:t,size:i},this.Fe()?(this.ju(),this.lineColor(this.Gu,this.Vu)):this.Qu()&&this.xn()},fillNone:function(){this.Xu=vt.dt,this.hc(),this.ga&&(!this.Wu||function(t){for(var i=[],s=0,e=t.length;s<e;++s){var n=t[s];n&&(i=i.concat(n))}return function(t){var i=t.length;if(i>1&&t[i-1][6])return t[i-1][6]&&2==t[i-1][6];return!1}(i)}(this.Wu)?(this.ga.style.fill="white",this.ga.style.fillOpacity=0):this.ga.style.fill="none")},fillSolid:function(t,i,s,e){this.Xu=vt.pt,this.hc(),typeof t===Ai?(this.rc=t,e=i):this.rc=gs(t,i,s),this.ac=void 0===e?1:e,this.Fe()?(this.ga.style.fill=this.rc,this.ga.style.fillOpacity=this.ac):this.Qu()&&this.xn()},fillLinearGradient:function(t,i,s,e){if(this.Xu=vt.bt,this.oc=i,this.uc=t,this.fc=s,this.lc=e,this.hc(),this.Fe()){if(!this.dc){this.dc=Zi.createElementNS(Di,"linearGradient"),this.dc.id=this.container.id?this.container.id+"-lgrad":"ap-lgrad-"+ee(),this.dc.setAttribute("gradientUnits",Ni);var n=this.node.querySelector("defs");n||(n=Zi.createElementNS(Di,"defs"),this.node.appendChild(n)),n.appendChild(this.dc)}this.ga.style.fill="url(#"+this.dc.id+")",this.ga.style.fillOpacity=1,this.fillAngle(i),this.fillColorStops(t),this.fillLinearGradientTransform(s,e)}else this.Qu()&&this.xn()},fillRadialGradient:function(t,i,s,e,n){if(this.Xu=vt.wt,this.uc=t,this.pc=i,this.vc=s,this.mc=e,this.bc=n,this.hc(),this.Fe()){if(!this.wc){this.wc=Zi.createElementNS(Di,"radialGradient"),this.wc.id=this.container.id?this.container.id+"-rgrad":"ap-rgrad-"+ee(),this.wc.setAttribute("gradientUnits",Ni);var h=this.node.querySelector("defs");h||(h=Zi.createElementNS(Di,"defs"),this.node.appendChild(h)),h.appendChild(this.wc)}this.ga.style.fill="url(#"+this.wc.id+")",this.ga.style.fillOpacity=1;var r=On(this.node),a=r.x+r.width/2,o=r.y+r.height/2,u=Fi(r.width*r.width/4+r.height*r.height/4);ws(this.wc,{cx:a,cy:o,r:u}),this.fillColorStops(t),this.fillRadialGradientTransform(i,s,e,n)}else this.Qu()&&this.xn()},fillAngle:function(t){if((t%=360)<0&&(t+=360),this.oc=t,this.Xu===vt.bt&&this.dc){var i,s,e,n,h=Xi(t*Oi/180),r=1+h*h,a=On(this.node);t<90?(i=a.x,s=a.y,e=a.x+a.width,n=a.y+a.height):t<180?(e=a.x,n=a.y+a.height,i=a.x+a.width,s=a.y):t<270?(e=a.x,n=a.y,i=a.x+a.width,s=a.y+a.height):(i=a.x,s=a.y+a.height,e=a.x+a.width,n=a.y),ws(this.dc,{x1:(i+h*s)/r,y1:(i+h*s)*h/r,x2:(e+h*n)/r,y2:(e+h*n)*h/r}),this.fillLinearGradientTransform(this.fc,this.lc)}},fillColorStops:function(t){var i,s,e,n,h,r,a;if(this.uc=t,this.Xu===vt.bt?i=this.dc:this.Xu===vt.wt&&(i=this.wc),i){for(;s=i.lastChild;)i.removeChild(s);for(n=0,h=t.length;n<h;++n)e=t[n],s=Zi.createElementNS(Di,"stop"),typeof e[1]===Ai?(r=e[1],a=e[2]):(r=gs(e[1],e[2],e[3]),a=e[4]),void 0===a&&(a=1),ws(s,{offset:e[0]+"%","stop-color":r,"stop-opacity":a}),i.appendChild(s)}},fillLinearGradientTransform:function(t,i){if(this.Xu===vt.bt&&this.dc){this.fc=t,this.lc=i;var s,e,n,h=On(this.node),r=this.dc,a="";0!=t&&(s=this.oc*Oi/180,a+="translate("+h.width*t/100*Hi(s)+", "+h.width*t/100*zi(s)+")"),100!=i&&(e=h.width/2,n=h.height/2,""!=a&&(a+=" "),a+="translate("+e+", "+n+") scale("+i/100+") translate("+-e+", "+-n+")"),a?r.setAttribute("gradientTransform",a):r.removeAttribute("gradientTransform")}},fillRadialGradientTransform:function(t,i,s,e){if(this.Xu===vt.wt&&this.wc){this.pc=t,this.mc=s,this.vc=i,this.bc=e;var n,h,r=On(this.node),a=this.wc,o="";0==t&&0==i||(o="translate("+r.width*t/100+", "+r.height*i/100+")"),100==s&&100==e||(n=r.x+r.width/2,h=r.y+r.height/2,""!=o&&(o+=" "),o+="translate("+n+", "+h+") scale("+s/100+","+e/100+") translate("+-n+", "+-h+")"),o?a.setAttribute("gradientTransform",o):a.removeAttribute("gradientTransform")}},fillImage:function(t,i,e,n,h){if(this.Xu=vt.u,this.gc=t,this.yc=i,this.kc=e,this._c=n,this.Tc=h,this.hc(),this.Fe()){if(!this.xc){this.xc=Zi.createElementNS(Di,"pattern"),this.Sc=Zi.createElementNS(Di,"image"),this.xc.appendChild(this.Sc),ws(this.xc,{id:this.container.id?this.container.id+"-imgfill":"ap-imgfill-"+ee(),patternUnits:"userSpaceOnUse"});var r=this.node.querySelector("defs");r||(r=Zi.createElementNS(Di,"defs"),this.node.appendChild(r)),r.appendChild(this.xc)}var a=this.parent.prez().getResource(t+"."+i);if(this.Sc.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",a),e===bt)if((d=this.parent).ks.t!==s.q)ws(this.xc,{width:"100%",height:"100%"}),ws(this.Sc,{width:"100%",height:"100%",preserveAspectRatio:"none"});else{var o=d.slide;if(o){var u=-d.node.offsetLeft,c=-d.node.offsetTop,f=o.nr,l=o.hr;ws(this.xc,{x:u+"px",y:c+"px",width:f+"px",height:l+"px"}),ws(this.Sc,{width:f+"px",height:l+"px",preserveAspectRatio:"none"})}}else if(e===mt){var d;(d=this.parent).ks.t!==s.q?(ws(this.xc,{width:n+"px",height:h+"px"}),ws(this.Sc,{width:n+"px",height:h+"px",preserveAspectRatio:"none"})):(ws(this.xc,{x:-d.node.offsetLeft+"px",y:-d.node.offsetTop+"px",width:n+"px",height:h+"px"}),ws(this.Sc,{width:n+"px",height:h+"px",preserveAspectRatio:"none"}))}this.ga.style.fill="url(#"+this.xc.id+")",this.ga.style.fillOpacity=1}else this.Qu()&&this.xn()},Ec:function(){switch(this.Xu){case vt.dt:this.fillNone();break;case vt.pt:this.fillSolid(this.rc,this.ac);break;case vt.bt:this.fillLinearGradient(this.uc,this.oc,this.fc,this.lc);break;case vt.wt:this.fillRadialGradient(this.uc,this.pc,this.vc,this.mc,this.bc);break;case vt.u:this.fillImage(this.gc,this.yc,this.kc,this._c,this.Tc)}},applyEffectShadow:function(t,i,s,e,n,h,r){this.Mc=t,this.Cc=i,this.Pc=s,this.Ic=e,this.Rc=n,this.Ac=h,this.Dc=gs(e,n,h),this.Nc=r,this.hc();var a,o=s*Hi(i/180*Oi),u=s*zi(i/180*Oi);if(he.browser.useCSSShadow){a="drop-shadow("+o+"px "+u+"px "+t/3+"px "+gs(e,n,h,r)+")";var c=this.parent.node.style;c.filter=a,c.WebkitFilter=a,he.browser.safari&&(this.parent.Oc=!0,Ns(c))}if(this.Fe()){if(he.browser.useCSSShadow)return;if(this.Qa(this.Lc,this.Fc,this.Uc),this.shapeNode.removeAttribute("filter"),this.Yc)(f=this.node.querySelector("defs"))&&f.removeChild(this.Yc),delete this.Yc,delete this.Bc,delete this.Hc,delete this.zc,delete this.Xc,delete this.Gc;Ln&&this.Vc&&(this.shapeNode.removeChild(this.Vc),delete this.Vc),this.Yc=Zi.createElementNS(Di,"filter"),this.Yc.id=this.container.id?this.container.id+"-dropshadow":"ap-dropshadow-"+ee(),this.Bc=Zi.createElementNS(Di,"feFlood"),this.Hc=Zi.createElementNS(Di,"feComposite"),this.zc=Zi.createElementNS(Di,"feOffset"),this.Xc=t>0?Zi.createElementNS(Di,"feGaussianBlur"):null,this.Gc=Zi.createElementNS(Di,"feComposite");var f,l=this.Yc;l.appendChild(this.Bc),l.appendChild(this.Hc),l.appendChild(this.zc),t>0&&l.appendChild(this.Xc),l.appendChild(this.Gc),(f=this.node.querySelector("defs"))||(f=Zi.createElementNS(Di,"defs"),this.node.appendChild(f)),f.appendChild(l);var d,p,v,m,b=On(this.node);if(m=this.fa+("miter"==this.Zu?10:0),b.x-=m,b.y-=m,b.width+=2*m,b.height+=2*m,d={x:b.x-t+o,y:b.y-t+u,width:b.width+2*t,height:b.height+2*t},p=Math.min(b.x,d.x),v=Math.min(b.y,d.y),e=Math.max(b.x+b.width,d.x+d.width),h=Math.max(b.y+b.height,d.y+d.height),Ln){this.Vc=Zi.createElementNS(Di,"path");var w=new Rn;w.addRect(p,v,e-p,h-v),this.Vc.setAttribute("d",w.path()),this.shapeNode.appendChild(this.Vc)}ws(this.Yc,{id:this.container.id?this.container.id+"-dropshadow":"ap-dropshadow-"+ee(),filterUnits:Ni,primitiveUnits:Ni,style:"color-interpolation-filters:sRGB",x:p,y:v,width:e-p,height:h-v}),ws(this.Bc,{result:"flood","flood-color":this.Dc,"flood-opacity":this.Nc}),ws(this.Hc,{result:"composite1",operator:"in",in2:"SourceGraphic",in:"flood"}),ws(this.zc,{result:"offset",in:"composite1",dx:o,dy:u}),this.Xc&&ws(this.Xc,{result:"blur",in:"offset",stdDeviation:t/3}),ws(this.Gc,{result:"composite2",operator:"over",in2:t>0?"blur":"offset",in:"SourceGraphic"}),this.shapeNode.setAttribute("filter","url(#"+this.Yc.id+")")}else this.Qu()&&this.xn()},clearEffectShadow:function(){if(void 0!=this.Mc){if(delete this.Mc,delete this.Cc,delete this.Pc,delete this.Ic,delete this.Rc,delete this.Ac,delete this.Dc,delete this.Nc,he.browser.useCSSShadow)return this.parent.node.style.WebkitFilter="",this.parent.node.style.filter="",void delete this.parent.Oc;if(this.shapeNode.removeAttribute("filter"),this.Yc){var t=this.node.querySelector("defs");t&&t.removeChild(this.Yc),delete this.Yc,delete this.Bc,delete this.Hc,delete this.zc,delete this.Xc,delete this.Gc}Ln&&this.Vc&&(this.shapeNode.removeChild(this.Vc),delete this.Vc),this.Qa(),this.hc()}},$c:function(){void 0==this.Mc?this.clearEffectShadow():this.applyEffectShadow(this.Mc,this.Cc,this.Pc,this.Ic,this.Rc,this.Ac,this.Nc)},Qa:function(t,i,s){if(this.Lc=t,this.Fc=i,this.Uc=s,this.Fe()){if(he.browser.useCSSShadow)return;if(void 0!=this.Lc&&void 0!=this.Mc){this.Wc||(this.Wc=Zi.createElementNS(Di,"image"));var e=this.Wc,n=this.parent.prez().getResource(t+"."+i);this.shapeNode.appendChild(e),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",n),ws(e,{x:"0",y:"0",width:"100%",height:"100%",opacity:s/255,preserveAspectRatio:"none"}),this.parent.imageNode&&(this.parent.imageNode.style.display="none")}else this.Wc&&(this.shapeNode.removeChild(this.Wc),delete this.Wc,this.parent.imageNode&&(this.parent.imageNode.style.display="block"))}else this.Qu()&&this.xn()},hc:function(){if(!he.browser.useCSSShadow){var t,i=void 0!=this.Mc&&this.Xu==vt.dt,s=this.parent.textContainer;if(s)if(t=s.style,i){var e=this.Pc*Math.cos(this.Cc/180*Math.PI),n=this.Pc*Math.sin(this.Cc/180*Math.PI),h=this.Dc.substring(4,this.Dc.length-1).replace(/ /g,"").split(","),r="rgba("+h[0]+", "+h[1]+", "+h[2]+", "+this.Nc+")";t.textShadow=e+"px "+n+"px "+this.Mc+"px "+r}else t.textShadow=""}},cursor:function(t){this.Ar=t,this.shapeNode&&(this.shapeNode.style.cursor=t)},layout:function(){if(this.ju(),this.jc){var t=this.container.clientHeight;this.jc.translate(0,t/2)}this.Xu!==vt.bt&&this.Xu!==vt.wt&&this.Xu!=vt.u||this.Ec(),this.$c()},remove:function(){this.node&&(this.container.removeChild(this.node),this.node=this.shapeNode=this.Ku=this.qu=this.ic=this.sc=this.ga=null)},textMargin:function(t,i){var s=[0,0,0,0],e=In[this.os];return e&&e[1]&&(s=e[1].apply(null,[t,i].concat(this.Ta))),s},shapeSizeForText:function(t,i){var s=[t,i],e=In[this.os];return e&&e[2]&&(s=e[2].apply(null,[t,i].concat(this.Ta))),s},createIcon:function(t,i,s,e,n,h,r){this.Fe()||this.xn(),this.Qc={checked:t,iconSize:i,iconType:s,colorCheckMark:r,colorFill:n,colorBorder:h,borderWidth:e},this.jc||(this.jc={init:function(){this.border=Zi.createElementNS(Di,"path"),this.fill=Zi.createElementNS(Di,"path"),this.mark=Zi.createElementNS(Di,"path")},appendTo:function(t){t.appendChild(this.border),t.appendChild(this.fill),t.appendChild(this.mark)},translate:function(t,i){this.border.setAttribute("transform","translate("+t+","+i+")"),this.fill.setAttribute("transform","translate("+t+","+i+")"),this.mark.setAttribute("transform","translate("+t+","+i+")")}},this.jc.init(),this.jc.appendTo(this.shapeNode))},updateIcon:function(){if(this.jc&&this.Qc){var t=this.parent.ks.k;t==i.N?this.Kc():t==i.O&&this.qc()}},Kc:function(){var t=this.Qc.iconSize/16,i=this.Qc.iconSize-4*$i(Bi(t,1)+.5),s=$i(Yi(-7,-this.Qc.iconSize/4))-2*$i(Bi(t,1)+.5),e=i/2,n=new Rn;n.addRect(-s,-e,i,i).addRect(-s-this.Qc.borderWidth,-e-this.Qc.borderWidth,i+2*this.Qc.borderWidth,i+2*this.Qc.borderWidth),this.jc.border.style.fillRule="evenodd",this.jc.border.style.fill=this.Qc.colorBorder,this.jc.border.setAttribute("d",n.path());var h=new Rn;if(h.addRect(-s,-e,i,i),this.jc.fill.style.fill=this.Qc.colorFill,this.jc.fill.setAttribute("d",h.path()),this.Qc.checked){24==this.Ra&&(this.Jc==st?(++e,++s):this.Jc==nt&&++e);var r=new Rn;switch(this.Qc.iconType){case st:r.moveTo(2.5*t-s,5*t-e).lineTo(4.5*t-s,7*t-e).lineTo(9.5*t-s,2*t-e).lineTo(11*t-s,3.5*t-e).lineTo(4.5*t-s,10*t-e).lineTo(1*t-s,6.5*t-e);break;case et:r.moveTo(2.5*t-s,5*t-e).lineTo(4.5*t-s,7*t-e).lineTo(14.5*t-s,-3*t-e).lineTo(16*t-s,-1.5*t-e).lineTo(4.5*t-s,10*t-e).lineTo(1*t-s,6.5*t-e);break;case nt:r.moveTo(3*t-s,5*t-e).lineTo(4.5*t-s,8*t-e).lineTo(13.5*t-s,-2*t-e).lineTo(16*t-s,-.5*t-e).lineTo(4.5*t-s,11*t-e).lineTo(0*t-s,6.5*t-e)}this.jc.mark.style.fill=this.Qc.colorCheckMark,this.jc.mark.setAttribute("d",r.path())}else this.jc.mark.setAttribute("d","")},qc:function(){var t,i,s,e=this.Qc.iconSize/16,n=this.Qc.iconSize/2,h=n+Bi($i(this.Qc.iconSize/4),7);switch(this.Qc.iconType){case st:t=n-2*e,i=n-4*e;break;case et:t=n-2*e,i=n-3*e;break;case nt:t=n-2*e,i=n-2*e}s=n-2*e+this.Qc.borderWidth;var r=new Rn;r.addEllipse(h,0,s-this.Qc.borderWidth,s-this.Qc.borderWidth).addEllipse(h,0,s,s),this.jc.border.style.fillRule="evenodd",this.jc.border.style.fill=this.Qc.colorBorder,this.jc.border.setAttribute("d",r.path());var a=new Rn;if(a.addEllipse(h,0,t,t),this.jc.fill.style.fill=this.Qc.colorFill,this.jc.fill.setAttribute("d",a.path()),this.Qc.checked){var o=new Rn;o.addEllipse(h,0,i,i),this.jc.mark.style.fill=this.Qc.colorCheckMark,this.jc.mark.setAttribute("d",o.path())}else this.jc.mark.setAttribute("d","")},Qu:function(){return(this.Wu||void 0!==this.os)&&("none"!==this.ua||this.Xu!==vt.dt||void 0!=this.Mc&&void 0!=this.Lc)},Fe:function(){var t=!1;return this.hasArrow()?this.Ku&&(t=!0):this.shapeNode&&(t=!0),t},xn:function(){var t,i=!1;if(!this.node){var e=Zi.createElementNS(Di,"svg");(t=e.style).width="100%",t.height="100%",t.minWidth="1px",t.minHeight="1px",t.position="absolute",t.overflow="visible",t.top=0,t.left=0,this.container.insertBefore(e,this.container.firstChild),this.node=e}if(this.hasArrow())this.Ku||(i=!0,this.shapeNode&&this.node.removeChild(this.shapeNode),this.shapeNode=Zi.createElementNS(Di,"g"),this.ga=Zi.createElementNS(Di,"path"),this.ga.style.stroke="none",this.shapeNode.appendChild(this.ga),this.Ku=Zi.createElementNS(Di,"g"),this.qu=Zi.createElementNS(Di,"path"),this.qu.style.fill="none",this.Ku.appendChild(this.qu),this.ic=Zi.createElementNS(Di,"path"),(t=this.ic.style).strokeLinecap="round",t.strokeLinejoin="miter",this.Ku.appendChild(this.ic),this.sc=Zi.createElementNS(Di,"path"),(t=this.sc.style).strokeLinecap="round",t.strokeLinejoin="miter",this.Ku.appendChild(this.sc),this.shapeNode.appendChild(this.Ku),this.node.appendChild(this.shapeNode));else if(this.Wu&&this.Wu.length){if(!this.Ku){if(i=!0,this.shapeNode&&this.node.removeChild(this.shapeNode),this.shapeNode=Zi.createElementNS(Di,"g"),this.ga=Zi.createElementNS(Di,"path"),this.ga.style.stroke="none",this.shapeNode.appendChild(this.ga),this.Wu.length>2){this.Zc=[];for(var n=0;n<this.Wu.length;++n)if(!(n<2)){var h=this.Wu[n];if(h){var r=Zi.createElementNS(Di,"path");r.style.fill=h.f,r.style.stroke="none",this.shapeNode.appendChild(r),this.Zc.push(r)}}}this.qu=Zi.createElementNS(Di,"path"),this.qu.style.fill="none",this.shapeNode.appendChild(this.qu),this.node.appendChild(this.shapeNode)}}else this.shapeNode||(i=!0,this.shapeNode=Zi.createElementNS(Di,"g"),this.ga=Zi.createElementNS(Di,"path"),this.shapeNode.appendChild(this.ga),this.parent.ks.t==s.q?(this.qu=Zi.createElementNS(Di,"path"),this.shapeNode.appendChild(this.qu)):this.qu=this.ga,this.node.appendChild(this.shapeNode));i&&((t=this.shapeNode.style).pointerEvents="visiblePainted",t.strokeMiterlimit=10,t.fill=t.stroke="none",this.ju(),void 0!==this.Zu&&this.lineJoin(this.Zu),void 0!==this.$u&&this.lineCap(this.$u),this.lineWidth(this.fa),this.lineColor(this.Gu,this.Vu),this.lineStyle(this.ua),this.Ec(),this.$c(),void 0!==this.Ar&&this.cursor(this.Ar))},hasArrow:function(){return this.tf()&&(this.ec&&this.ec.type!==rt.NONE||this.nc&&this.nc.type!==rt.NONE)},tf:function(){return this.Wu&&this.Wu.length>0&&this.Wu[1]&&this.Wu[1].length>1&&this.fa},if:function(){var t=this.container.clientWidth,i=this.container.clientHeight,e=new Rn,n={fill:"",line:"",startArrow:"",startArrowTransform:"",endArrow:"",endArrowTransform:""};if(!t&&!i)return n;if(he.browser.chromiums&&this.parent.ks.t==s.q){var h=this.slide.offsetSize(),r=Bi(Vi(h.width/10),t);r%2==1&&++r,this.node.style.width=r+"px",(r=Bi(Vi(h.height/10),i))%2==1&&++r,this.node.style.height=r+"px"}if(this.Wu){var a=this.Wu;if(void 0===a.w){var o=function(t){var i=new Rn,s=Zi.createElementNS(Di,"svg"),e=Zi.createElementNS(Di,"path"),n=s.style;n.position="absolute",n.top=n.left="-10000px",n.visibility="hidden";for(var h=0,r=t.length;h<r;++h){var a=t[h];a&&Un(i,a)}e.setAttribute("d",i.path()),s.appendChild(e),Zi.body.appendChild(s);var o=On(e);return Zi.body.removeChild(s),o}(a);a.w=o.width,a.h=o.height}n.w===t&&n.h===i||(a=function(t,i,s){for(var e=[],n=0,h=t.length;n<h;++n){var r=t[n];if(r){var a=Yn(r,i,s);e.push(a)}}return e}(a,a.w?t/a.w:1,a.h?i/a.h:1));for(var u=0,c=a.length;u<c;++u){e.clear();var f,l,d,p,v,m,b=a[u];1==u&&this.tf()&&(this.ec&&this.ec.type!==rt.NONE&&(f=b[0].slice(),d=Gi(f[5]-f[1],f[4]-f[0]),(m=new Rn).addMarker(this.ec.type,this.ec.size,this.fa),n.startArrow=m.path(),n.startArrowTransform="translate("+f[0]+","+f[1]+") rotate("+180*d/Oi+")",p=Bn(this.ec.type,this.ec.size,this.fa),b[0][0]+=p*Hi(d),b[0][1]+=p*zi(d)),this.nc&&this.nc.type!==rt.NONE&&(l=b[v=b.length-1].slice(),d=Gi(l[3]-l[1],l[2]-l[0]),(m=new Rn).addMarker(this.nc.type,this.nc.size,this.fa),n.endArrow=m.path(),n.endArrowTransform="translate("+l[0]+","+l[1]+") rotate("+180*d/Oi+")",p=Bn(this.nc.type,this.nc.size,this.fa),b[v][0]+=p*Hi(d),b[v][1]+=p*zi(d))),Un(e,b),f&&(b[0]=f),l&&(b[v]=l),1==u&&(n.line=e.path()),(f||l)&&(e.clear(),Un(e,b)),0==u&&(n.fill=e.path()),u>=2&&(n.decorators||(n.decorators=[]),n.decorators.push(e.path()))}}else{var w=In[this.os];if(w&&w[0])if(this.tc()){var g="none"!==this.ua?this.fa:0,y=g%2==0?0:1,k=$i(g/2);w[0].apply(e,[-k-y,-k-y,t+2*k+y,i+2*k+y].concat(this.Ta))}else w[0].apply(e,[0,0,t,i].concat(this.Ta));n.fill=n.line=e.path()}return n},ju:function(){var t=this.if();if(this.ga){var e=this.parent;if(e.ks.t===s.q){var n=this.slide;if(n){var h={x:-e.node.offsetLeft-1,y:-e.node.offsetTop-1,width:n.nr+2,height:n.hr+2},r=new Rn;r.addRect(h.x,h.y,h.width,h.height),t.fill&&(t.fill+=r.path())}}12===this.os||this.Zc&&this.Zc.length||(this.ga.style.fillRule="evenodd"),this.ga.setAttribute("d",t.fill)}if(this.qu!==this.ga&&this.qu.setAttribute("d",t.line),this.ic&&(this.ic.setAttribute("d",t.startArrow),t.startArrowTransform?this.ic.setAttribute("transform",t.startArrowTransform):this.ic.removeAttribute("transform")),this.sc&&(this.sc.setAttribute("d",t.endArrow),t.endArrowTransform?this.sc.setAttribute("transform",t.endArrowTransform):this.sc.removeAttribute("transform")),this.parent.ks.k==i.U&&this.ya){var a=this.ya.querySelector("rect"),o="none"!==this.ua?this.fa:0,u=o%2==0?0:1,c=$i(o/2),f=this.container.clientWidth,l=this.container.clientHeight;a&&(a.setAttribute("x",-o),a.setAttribute("y",-o),a.setAttribute("width",f+2*o),a.setAttribute("height",l+2*o));var d=this.ya.querySelector("path");if(d){var p=new Rn,v=In[this.os],m=this.parent.ks.tmp.duration,b=(this.parent.ks.tmp.countdown?m-this.parent.ma:this.parent.ma)/m;f=f-2*c-2*u,l=l-2*c-2*u;v&&v[0]&&(v[0].apply(p,[f*b+u+c,c+u,f-f*b,l].concat(this.Ta)),d.setAttribute("d",p.path()))}}if(this.Zc&&this.Zc.length>0&&t.decorators&&t.decorators.length==this.Zc.length)for(var w=0;w<this.Zc.length;++w)this.Zc[w].setAttribute("d",t.decorators[w])},tc:function(){var t=this.parent.ks.k;return t==i.u||t==i.N||t==i.O},offsetPosition:function(){return{x:0,y:0}},offsetSize:function(){return this.node?this.parent.offsetSize():{width:0,height:0}},contentBox:function(){if(!this.node)return{x:0,y:0,width:0,height:0};var t=On(this.node),i=(this.fa||0)/2*("miter"===this.Zu?10:1);if(i&&(t.x-=i,t.y-=i,t.width+=2*i,t.height+=2*i),void 0!==this.Mc){var s=this.Pc*Hi(this.Cc/180*Oi),e=this.Pc*zi(this.Cc/180*Oi),n=this.Mc,h={x:t.x+s-n,y:t.y+e-n,width:t.width+2*n,height:t.height+2*n},r=t.x+t.width,a=t.y+t.height;t.x=Yi(t.x,h.x),t.y=Yi(t.y,h.y),t.width=Bi(r,h.x+h.width)-t.x,t.height=Bi(a,h.y+h.height)-t.y}return t},transformedContentBox:function(t){var i=t?this.rotateToSlide():this.rotate();return this.rotatedContentBox(i,t)}});function Un(t,i){var s,e,n,h,r=null;for(n=0,h=i.length;n<h;++n)(s=i[n])[6]&&1==s[6]||0===n?(t.moveTo(s[0],s[1]),r=s):t.cubicTo(e[4],e[5],s[2],s[3],s[0],s[1]),s[6]&&2==s[6]&&(r&&(t.cubicTo(s[4],s[5],r[2],r[3],r[0],r[1]),r=null),t.closeSubpath()),e=s}function Yn(t,i,s){var e,n,h,r,a,o=[],u=Se.scaleNonUniform(i,s);for(n=0,h=t.length;n<h;++n)r=[],a=Me(u,(e=t[n])[0],e[1]),r[0]=a.x,r[1]=a.y,a=Me(u,e[2],e[3]),r[2]=a.x,r[3]=a.y,a=Me(u,e[4],e[5]),r[4]=a.x,r[5]=a.y,r[6]=e[6],o[n]=r;return o}function Bn(t,i,s){var e=i%3,n=(0===e?2:1===e?3:5)*s;switch(t){case rt.ARROW:case rt.OPEN:case rt.STEALTH:return i<3?2.5*n/4:2*n/4;default:return 0}}var Hn={FPS:60,INTERVAL:16,time:0,syncTimes:[],timerId:null,isRunning:function(){return!!this.timerId},start:function(){this.stop(),zn()},stop:function(){this.timerId&&(cancelAnimationFrame(this.timerId),this.timerId=null)},now:function(){var t=this.syncTimes;return t.length?t[t.length-1]:this.time},updateTime:function(){this.syncTimes.length=0,this.time=Date.now()},pushSync:function(t){this.syncTimes.push(t)},popSync:function(){this.syncTimes.pop()},adjustLag:function(){}};function zn(){Hn.updateTime(),Hn.timerId=requestAnimationFrame(zn),he.tick(Hn.time)}var Xn={linear:function(t){return t},inQuad:function(t){return t*t},outQuad:function(t){return-t*(t-2)},inOutQuad:function(t){return t<.5?2*t*t:2*t*(2-t)-1},inBounce:function(t){Xn.outBounce(1-t)},outBounce:function(t){return 1===t?1:t<4/11?7.5625*t*t:t<8/11?7.5625*(t-=6/11)*t+.75:t<10/11?7.5625*(t-=9/11)*t+.9375:7.5625*(t-=21/22)*t+.984375}},Gn={ne:0,sf:1,ef:2,nf:3,Yh:4,hf:5,rf:6},Vn=Ls({$init:function(t,i){this.s=t,this.d=i-t},resolveRelative:function(t,i,s,e){var n,h;switch(t){case Gn.sf:n=i,h=s;break;case Gn.ef:n=i,h=i+s;break;case Gn.nf:n=s,h=i;break;case Gn.Yh:n=i-s,h=i;break;case Gn.hf:n=i+s,h=i+e;break;case Gn.rf:n=i*s,h=i*e;break;default:n=s,h=e}this.$init(n,h)},value:function(t){return this.s+this.d*t}}),$n={_default:function(t,i){return new Vn(t,i)}};function Wn(t,i){return void 0===$n[i]&&($n[i]=t,!0)}function jn(t){return($n[t]||$n._default).apply(null,Array.prototype.slice.call(arguments,1))}var Qn=Ls(Vn,{$init:function(t,i){this.s=t,this.e=void 0===i?t:i},value:function(t){return t<1?this.s:this.e}});function Kn(t,i,s){var e=s*s,n=e*s,h=1-s,r=h*h,a=r*h,o=3*r*s,u=3*h*e;return{x:a*t[0]+o*t[4]+u*i[2]+n*i[0],y:a*t[1]+o*t[5]+u*i[3]+n*i[1]}}function qn(t,i,s,e,n){var h=$i(s[e].t),r=(s[e].t+s[e+1].t)/2-h,a=Kn(t,i,r),o={x:s[e].x,y:s[e].y},u={x:s[e+1].x,y:s[e+1].y},c=0;return(Jn(a,{x:(o.x+u.x)/2,y:(o.y+u.y)/2})>n||Jn(o,u)>4*n)&&(a.t=h+r,s.splice(e+1,0,a),c=1+qn(t,i,s,e+1,n),c+=qn(t,i,s,e,n)),c}function Jn(t,i){var s=i.x-t.x,e=i.y-t.y;return Fi(s*s+e*e)}Wn(function(t,i){return new Qn(t,i)},jt.zi);var Zn=Ls(Vn,{$init:function(t,i){this.af=i||{translateX:0,translateY:0},this.points(t)},value:function(t){var i=this.uf(t),s=$i(i),e=this.cf,n=e.length-2;s<0?(s=0,i=0):(s>n&&(s=n),(i-=s)>1&&(i=1));var h,r,a,o,u,c,f,l,d,p=Kn(e[s],e[s+1],i),v=i;return v<1e-6?v=1e-6:v>.999999&&(v=.999999),o=e[s],u=e[s+1],f=(c=v)*c,r={x:3*(d=(l=1-c)*l)*(o[4]-o[0])+6*l*c*(u[2]-o[4])+3*f*(u[0]-u[2]),y:3*d*(o[5]-o[1])+6*l*c*(u[3]-o[5])+3*f*(u[1]-u[3])},180*Gi(r.y,r.x)/Oi,(t<0||t>1)&&(h=Fi(r.x*r.x+r.y*r.y))>0&&(a=t>1?t-1:t,p.x+=a*this.ff*r.x/h,p.y+=a*this.ff*r.y/h),{translateX:p.x+this.af.translateX,translateY:p.y+this.af.translateY}},points:function(t){t&&t.length||(t=[[0,0,0,0,0,0]]),1===t.length&&(t[1]=t[0]),this.cf=t,this.lf(),this.df()},lf:function(){this.zu=[];var t,i,s,e,n=this.cf,h=n.length-1,r=this.zu;for(t=0;t<h;++t)for(i=0;i<4;++i)s=i/4,(e=Kn(n[t],n[t+1],s)).t=t+s,r.push(e);for(h>=0&&r.push({x:n[h][0],y:n[h][1],t:h}),t=h-1;t>=0;--t)for(i=3;i>=0;--i)qn(n[t],n[t+1],r,4*t+i,2)},df:function(){var t,i=this.zu,s=0,e=i.length-1;for(t=0;t<e;++t)i[t].l=s,s+=Jn(i[t],i[t+1]);e>=0&&(i[e].l=s),this.ff=s,this.pf=[];var n,h,r=this.pf,a=s;for(this.vf=10,t=0,s=0;t<e;)if(i[t+1].l<s)++t;else if(n=i[t],h=i[t+1],r.push({l:s,t:h.l>n.l?n.t+(s-n.l)*(h.t-n.t)/(h.l-n.l):n.t}),(s+=10)>a)break;0===r.length&&r.push({l:0,t:0}),e>=0&&(r.length<2||r[r.length-1].t<i[e].t)&&r.push({l:a,t:i[e].t})},uf:function(t){var i,s,e,n,h=t*this.ff,r=this.pf,a=r.length;return 0===a?i=0:1===a?i=r[0].t:(e=r[s=this.vf>0?Yi(Bi(0,$i(h/this.vf)),a-2):0],i=(n=r[s+1]).l>e.l?e.t+(h-e.l)*(n.t-e.t)/(n.l-e.l):e.t),i}});Wn(function(t,i){return new Zn(t,i)},jt.Xi);var th=Ls(Vn,{$init:function(t){this.mf=t||""},value:function(t){var i=this.mf;if(t>=0||t<=1){var s=i.length,e=s*t;e>s&&(e=s),i=i.substring(0,e)}return i}});function ih(t){return us(t.translateX,0)&&us(t.translateY,0)&&us(t.rotate,0)&&us(t.scaleX,1)&&us(t.scaleY,1)}Wn(function(t){return new th(t)},jt.Gi);var sh={transform:{children:["translateX","translateY","rotate","scaleX","scaleY"],get:function(i){var s,e,n,h={translateX:0,translateY:0,rotate:0,scaleX:1,scaleY:1},r=t(i.node).css("transform");if("matrix("==r.substr(0,7)||(s="matrix3d("==r.substr(0,9))){for(e=0,n=(r=r.substring(s?9:7,r.length-1).split(",")).length;e<n;++e)r[e]=parseFloat(r[e]);s&&(r[2]=r[4],r[3]=r[5],r[4]=r[12],r[5]=r[13]),h.translateX=r[4]||0,h.translateY=r[5]||0,h.scaleX=Fi(r[0]*r[0]+r[1]*r[1]),0===h.scaleX?(h.scaleY=Fi(r[2]*r[2]+r[3]*r[3]),0===h.scaleY?h.rotate=0:h.rotate=180*Gi(-r[2],r[3])/Oi):(h.scaleY=(r[0]*r[3]-r[1]*r[2])/h.scaleX,h.rotate=180*Gi(r[1],r[0])/Oi)}return h},set:function(t,i){if(i&&typeof i!=Ai){if(ih(i)&&!t.Oc)i="";else if(he.forceGPU||t.Oc)i=Ps+"("+i.translateX+"px, "+i.translateY+"px, 0px) rotate("+i.rotate+"deg) scale("+i.scaleX+", "+i.scaleY+")";else{var s=zi(i.rotate*Oi/180),e=Hi(i.rotate*Oi/180);i="matrix("+i.scaleX*e+", "+i.scaleX*s+", "+-i.scaleY*s+", "+i.scaleY*e+", "+i.translateX+", "+i.translateY+")"}t.node.style[Cs]=i}else t.Oc?Ns(t.node.style,i):t.node.style[Cs]=i}},resetTransform:{order:1e3,get:function(i){return t(i.node).css("transform")},set:function(t,i){t.node.style[Cs]=i},rawProp:function(t){return["transform",{translateX:0,translateY:0,rotate:0,scaleX:1,scaleY:1}]}},position:{base:"transform",children:["translateX","translateY"]},translateX:{base:"transform"},translateY:{base:"transform"},rotate:{base:"transform"},scaleX:{base:"transform",add:function(t,i){return t*i}},scaleY:{base:"transform",add:function(t,i){return t*i}},opacity:{get:function(i){return t(i.node).css("opacity")},set:function(t,i){t.node.style.opacity=i}},resetOpacity:{order:1e3,get:function(i){return t(i.node).css("opacity")},set:function(t,i){t.node.style.opacity=i}},display:{get:function(i){return t(i.node).css("display")},set:function(i,s){i.Xr?(i.Gr=s,s=i.hideProp?i.hideProp():"none",i.Gr==s&&delete i.Gr):delete i.Gr,i.node.style.display=s,s==(i.hideProp?i.hideProp():"none")&&Zi.activeElement&&(i.node==Zi.activeElement||t.contains(i.node,Zi.activeElement))&&Zi.activeElement.blur(),i.Mn&&i.Mn(),i.Sh&&i.Sh()},add:function(t,i){return i}},resetClip:{order:1e3,get:function(i){return t(i.node).css(As)},set:function(t,i){t.node.style[As]=i}},clip:{order:1,children:["clipTop","clipRight","clipBottom","clipLeft"],get:function(i){var s,e,n,h,r=t(i.node).css(As);if(r.substr(0,Ds.length)===Ds)r=r.substring(Ds.length,r.length-1).split(" "),s=parseFloat(r[0]),1==r.length?e=n=h=s:(e=parseFloat(r[1]),2==r.length?(n=s,h=e):(n=parseFloat(r[2]),h=3==r.length?e:parseFloat(r[3])));else{var a=i.contentBox&&i.contentBox();a||(a={x:0,y:0,width:i.node.offsetWidth,height:i.node.offsetHeight}),s=a.y,e=(h=a.x)+a.width,n=s+a.height,hs.clipPath&&(e=i.node.offsetWidth-e,n=i.node.offsetHeight-n)}return{clipTop:s,clipRight:e,clipBottom:n,clipLeft:h}},set:function(t,i){t.node.style[As]=i&&typeof i!==Ai?Ds+i.clipTop+"px "+i.clipRight+"px "+i.clipBottom+"px "+i.clipLeft+"px)":i}},clipTop:{base:"clip"},clipRight:{base:"clip"},clipBottom:{base:"clip"},clipLeft:{base:"clip"},ccNode:{get:function(i){return t(i.textNode).html()||""},set:function(i,s){s=s||"",i.textNode&&(t(i.textNode).html(s),i.pa=s,i.onResized&&i.onResized(0,0))}},src:{get:function(i){return t(i.node).attr("src")||""},set:function(i,s){t(i.node).attr("src",s||"")}},ceProgress:{get:function(t){return t.dh},set:function(t,i){t.dh=i,cn.renderMouseEffect(t.node.getContext("2d"),t.ph,t.mh,t.bh,i/100,t.vh,t.wh)}},geProgress:{get:function(t){return t.io},set:function(i,s){if(i.io=s,i.so){var e=i.so,n=e.getContext("2d"),h=i.ks.ge.type,r=t(e).attr("width"),a=t(e).attr("height"),o=Math.round(r/2),u=Math.round(a/2),c=gs(i.ks.ge.color),f=s/100;cn.renderGestureEffect(n,h,o,u,f,c)}}},width:{get:function(i){return t(i.node).css("width")},set:function(t,i){t.node.style.width=i+"px"}},height:{get:function(i){return t(i.node).css("height")},set:function(t,i){t.node.style.height=i+"px"}},left:{get:function(i){return t(i.node).css("left")},set:function(t,i){t.node.style.left=i+"px"}},top:{get:function(i){return t(i.node).css("top")},set:function(t,i){t.node.style.top=i+"px"}},mediaSrc:{get:function(t){if(t.Dn)return t.Dn.uu()},set:function(t,i){t.Dn&&t.Dn.loadResource(i)}},mediaDuration:{get:function(t){if(t.Dn)return t.Dn.ou()},set:function(t,i){t.Dn&&t.Dn.An(i)}},mediaState:{get:function(t){return t.Dn?t.Dn.us():"stopped"},set:function(t,i){t.Dn&&t.Dn.us(i)}},mediaSeek:{get:function(t){return t.Dn?t.Dn.lo():0},set:function(t,i){t.Dn&&t.Dn.lo(i)}},text:{get:function(t){return t.html?t.html():""},set:function(t,i){i=i||"",t.html&&t.html(i)}},timerState:{get:function(t){return t.ba||!1},set:function(t,i){i&&!t.wa&&(t.wa=!0,(!t.enabled||t.enabled())&&t.startTimer&&t.startTimer())}},svgOpacity:{get:function(t){return t.shape&&t.shape.shapeNode?t.shape.shapeNode.style.opacity:-1},set:function(t,i){t.shape&&t.shape.shapeNode&&(t.shape.shapeNode.style.opacity=i)}},authorVideoRatio:{get:function(t){return t.aspectRatio&&t.aspectRatio()},set:function(t,i){t.aspectRatio&&t.aspectRatio(i)},order:-1},backgroundColor:{get:function(i){return t(i.node).css("backgroundColor")},set:function(t,i){t.node.style.backgroundColor=i}},textDecoration:{get:function(i){return t(i.node).css("textDecoration")},set:function(t,i){t.node.style.textDecoration=i}},listStyleType:{get:function(i){return t(i.node).css("listStyleType")},set:function(t,i){t.node.style.listStyleType=i}}},eh=Ls({$init:function(t){this.Ea=t,this.bf={}},apply:function(t){this.toTarget(t,this.get(t))},toTarget:function(t,i){var s,e,n,h=sh[t];if(h)if(h.set)h.set(this.Ea,i);else if(h.base&&(s=sh[h.base])&&s.set){if(e=this.get(h.base))if(e.hasOwnProperty(t))e[t]=i;else if(i)for(n in i)e[n]=i[n];else e=i;else e=i;s.set(this.Ea,e)}},fromTarget:function(t){var i,s,e,n,h,r,a=sh[t];if(a)if(a.get)s=a.get(this.Ea);else if(a.base&&(i=sh[a.base])&&i.get&&(s=i.get(this.Ea)))if(a.children&&(r=a.children.length)){for(e={},h=0;h<r;++h)e[n=a.children[h]]=s[n];s=e}else void 0!==s[t]&&(s=s[t]);return s},get:function(t){var i,s,e,n,h=sh[t];if(h&&h.children&&(n=h.children.length))for(i={},e=0;e<n;++e)i[s=h.children[e]]=this.bf[s];else i=this.bf[t];return i},set:function(t,i){var s,e,n,h=sh[t];if(h&&h.children&&(n=h.children.length))for(e=0;e<n;++e)s=h.children[e],this.bf[s]=i?i[s]:i;else this.bf[t]=i;if(h&&h.rawProp){var r=h.rawProp(i);this.set(r[0],r[1])}},add:function(t,i){var s,e,n,h,r=sh[t];if(r&&r.children&&(h=r.children.length))for(n=0;n<h;++n)e=r.children[n],(s=sh[e])&&s.add?this.bf[e]=s.add(this.bf[e],i?i[e]:i):this.bf[e]=(this.bf[e]||0)+i;else r&&r.add?this.bf[t]=r.add(this.bf[t],i):this.bf[t]=(this.bf[t]||0)+i}}),nh=Ls({$init:function(t){this.options=t=Qi({speed:1,repeat:1,alternated:!1,paused:!1,startTime:0},t),this.Un=t.speed||1e-9,this.wf=t.repeat||1,this.gf=1,this.yf=t.alternated,this.jn=t.startTime,this.kf=void 0,this._f=void 0,this.Tf=void 0,this.Kn=0,this.we=t.paused,this._o=null,this.xf=null},started:function(){return void 0!==this.Tf},speed:function(t){return arguments.length?(this.Un=t||1e-9,this.we||this.startTime((this._o?this._o.Kn:Hn.now())-this.Kn/this.Un),this):this.Un},repeat:function(t){return arguments.length?(this.wf=t||1,hh(this,!0),this):this.wf},alternated:function(t){return arguments.length?(this.yf=t,this):this.yf},startTime:function(t){if(!arguments.length)return this.jn;if(t!==this.jn)if(this._o){var i=this._o;i.removeChild(this),this.jn=t,i.addChild(this)}else this.jn=t;return this},endTime:function(t){return this.jn+(t?this.duration():this.totalDuration())/this.Un},duration:function(t){return arguments.length?(this.kf=t,hh(this,!0),this):this.kf},totalDuration:function(t){return arguments.length?this.wf>0?this.duration(t/this.wf):this:(void 0===this._f&&(void 0===this.kf&&this.duration(),-1===this.wf?this._f=1e11:-2===this.wf?this._f=this._o?(this._o.duration()-this.jn)*this.Un:this.kf:this._f=this.wf*this.kf),this._f)},play:function(t){return void 0!==t&&this.seek(t),this.paused(!1)},pause:function(t){return this.paused(!0),void 0!==t&&this.seek(t),this},paused:function(t){if(!arguments.length)return this.we;if(t=!!t,this.we!==t){this.we=t;for(var i=this;i&&!i.we;)i.startTime((i._o?i._o.Kn:Hn.now())-i.Kn/i.Un),i=i._o;t||this.update(this.Kn)}return this},Sf:function(){for(var t=this;t;){if(t.we)return!0;t=t._o}return!1},seek:function(t){return this.totalTime(t)},time:function(t){return arguments.length?(t=os(t,0,this.duration()),this.yf&&this.gf%2==0&&(t=this.kf-t),this.totalTime(t+(this.gf-1)*this.kf)):this.Tf||0},totalTime:function(t){if(!arguments.length)return this.Kn;t<0&&(t=0),this.Ef(t),this.update(t,!0);for(var i=this;i&&!i.we;)i.startTime((i._o?i._o.Kn:Hn.now())-i.Kn/i.Un),i=i._o;return this},Ef:function(t){this.Tf=void 0},parent:function(t){return arguments.length?(t?t.addChild(this):this.remove(),this):this._o},timeline:function(){return this.xf},remove:function(){return this._o&&this._o.removeChild(this),this},setup:function(){},update:function(t,i){},Qn:function(t){var i=void 0===this.kf?this.duration():this.kf,s=void 0===this._f?this.totalDuration():this._f,e=1,n={totalTime:t,uncapTime:t,active:t>-Ii&&t<s+Ii};return t<Ii||0===i?(t>-Ii&&t<Ii?n.totalTime=n.uncapTime=0:t<0&&(n.totalTime=0),t=0):(t>s-Ii&&(t<s+Ii&&(t=s,n.totalTime=n.uncapTime=t),t>s&&(t=s)),1!==this.wf&&(0===(e=Wi(t/i))&&(e=1),t-=(e-1)*i,this.yf&&e%2==0&&(t=i-t),t>i?t=i:t<0&&(t=0),e<this.wf?this.uncapTime=t:(this.uncapTime-=(e-1)*i,this.yf&&e%2==0&&(this.uncapTime=i-this.uncapTime)))),n.time=t,n.cycle=e,n},Mf:function(t){this.xf=t},Cf:function(t,i){return!0},Pf:function(t){}});function hh(t,i){for(;t;)t._f=void 0,i?i=!1:t.kf=void 0,t=t._o}var rh=Ls(nh,{$init:function(t,i){this.isEvent=!0,this.If=!1,nh.prototype.$init.call(this,i),this.kf=this.options.duration||0,this.Rf=t},update:function(t,i){t=this.Qn(t),this.gf=t.cycle,this.Kn=t.totalTime,this.Tf=t.time,this.If||(this.If=!0,this.Rf&&this.Rf(this.Tf,i))},Ef:function(t){nh.prototype.Ef.call(this,t),this.If=t>0}}),ah=Ls(nh,{$init:function(t,i,s){nh.prototype.$init.call(this,s),(s=this.options).tweenParams||(s.tweenParams=[]),void 0===s.relative&&(s.relative=Gn.ne),this.Ea=t,t.animProps||(t.animProps=new eh(t)),this.Af=i,this.kf=s.duration||0,this.Df=s.additive||!1,this.Nf=s.easing||Xn.linear,s.revert&&(this.Of=!0),Ki(this.options.tweenParams[0])||(this.Lf=jn.apply(null,[s.tweenType].concat(s.tweenParams)))},setup:function(){if(Ki(this.options.tweenParams[0]))this.Lf=jn.apply(null,[this.options.tweenType].concat(this.options.tweenParams[0].apply(this,this.options.tweenParams.slice(1))));else if(this.options.relative!==Gn.ne){var t=this.Ff();this.Lf.resolveRelative.apply(this.Lf,[this.options.relative,t].concat(this.options.tweenParams))}},update:function(t,i){t=this.Qn(t);var s=this.Tf!=t.time||this.gf!=t.cycle,e=this.Nf(this.kf?t.time/this.kf:1);this.Of&&t.totalTime>=this._f&&(e=0),this.gf=t.cycle,this.Tf=t.time,this.Kn=t.totalTime,this.Df?this.Ea.animProps.add(this.Af,this.Lf.value(e)):this.Ea.animProps.set(this.Af,this.Lf.value(e)),this.xf&&s&&this.xf.Uf(this.Af,this.Ea)},Mf:function(t){t!==this.xf&&(this.xf&&this.xf.Yf(this.Af,this.Ea),this.xf=t,t&&t.Bf(this.Af,this.Ea))},Cf:function(t,i){return this!==i&&(this.Ea===i.Ea&&(this.update(t,!0),this.Tf=void 0),!0)},Ff:function(t){var i;if(this.xf){for(var s=0,e=this,n=this.xf,h=Qi({},this.Ea.animProps.bf);e&&e!==n;)s=e.jn+s/e.Un,e=e._o;n.Cf(s,this),i=t?t.call(this):this.Ea.animProps.get(this.Af),this.Ea.animProps.bf=h}else i=t?t.call(this):this.Ea.animProps.fromTarget(this.Af);return i}}),oh=Ls(ah,{Pf:function(t){var i,s=this.Ea.Dn;if(s){if(s.Xo){i=!1;for(var e=this,n=s.Ms,h=n?n.re:null;e;){if(e.we&&n&&e!=h){i=!0;break}e=e._o}}else i=this.Sf();i?s.vo():s.po()}},update:function(t,i){if(ah.prototype.update.call(this,t),i){var s=this.Ea.Dn;s&&s.do()}}}),uh=Ls(nh,{$init:function(t){nh.prototype.$init.call(this,t),this.firstChild=this.lastChild=null},setup:function(){for(var t=this.firstChild;t;)t.setup(),t=t.next},duration:function(t){if(!arguments.length){if(void 0===this.kf){var i,s=this.lastChild;for(t=0;s;)(s.wf>0||-1===s.wf)&&(i=s.jn+s.totalDuration()/s.Un)>t&&(t=i),s=s.prev;this.kf=t}return this.kf}return t&&(this.kf||this.duration())&&this.speed(this.kf/t),this},totalDuration:function(t){return arguments.length?(this.wf>0&&t&&(this._f||this.totalDuration())&&this.speed(this._f/t),this):void 0!==this._f?this._f:nh.prototype.totalDuration.call(this)},update:function(t,i){var s=this.Qn(t);s.cycle>1&&this.Kn<(s.cycle-1)*this.kf&&this.started()&&(this.update((s.cycle-1)*this.kf,i),this.Ef(t)),this.gf=s.cycle,this.Tf=s.time,this.Kn=s.totalTime;for(var e,n=this.Sf(),h=s.time,r=this.firstChild;r&&!(r.jn>h)&&(e=r.next,r.we||(r.update((h-r.jn)*r.Un,i),!r.firstChild||this.gf===s.cycle&&this.Tf===h&&this.Sf()===n));)r=e},Mf:function(t){if(t!==this.xf){for(var i=this.firstChild;i;)i.Mf(t),i=i.next;this.xf=t}},addChild:function(t,i){if(t.isEvent&&!this.isTimeline)return as("Only timeline can add timing event"),this;t._o&&t.remove();for(var s=this.lastChild;s&&(i?s.jn>=t.jn:s.jn>t.jn);)s=s.prev;return s?(t.next=s.next,t.prev=s,t.next?t.next.prev=t:this.lastChild=t,s.next=t):(t.next=this.firstChild,this.firstChild?this.firstChild.prev=t:this.lastChild=t,this.firstChild=t),t._o=this,t.Mf(this.isTimeline?this:this.xf),void 0!==this.kf&&t.endTime()>this.kf&&(this.kf=t.endTime(),hh(this,!0)),this},removeChild:function(t){return t._o===this&&(t.prev?t.prev.next=t.next:this.firstChild=t.next,t.next?t.next.prev=t.prev:this.lastChild=t.prev,t.prev=t.next=null,t._o=null,t.xf&&t.Mf(null),void 0!==this.kf&&t.endTime()>=this.kf&&hh(this,!1)),this},removeChildIf:function(t){for(var i,s=this.firstChild;s;)i=s.next,t(s)&&this.removeChild(s),s=i;return this},paused:function(t){if(!arguments.length)return nh.prototype.paused.call(this);nh.prototype.paused.call(this,t);for(var i=this.firstChild;i;)i.Pf(t),i=i.next;return this},Cf:function(t,i){if(this===i)return!1;t=this.Qn(t).time;for(var s=this.firstChild;s;){if(s.jn<=t&&!s.Cf((t-s.jn)*s.Un,i))return!1;s=s.next}return!0},Ef:function(t){nh.prototype.Ef.call(this,t),t=this.Qn(t).uncapTime;for(var i=this.firstChild;i;)i.Ef((t-i.jn)*i.Un),i=i.next},Pf:function(t){nh.prototype.Pf.call(this,t);for(var i=this.firstChild;i;)i.Pf(t),i=i.next}});function ch(t,i){return t.active-i.active||t.order-i.order}var fh=Ls(uh,{isTimeline:!0,$init:function(t){uh.prototype.$init.call(this,t),this.Hf=[]},setup:function(){var t,i,s,e,n,h,r=this.Hf,a=r.length,o=[];for(h=0;h<a;++h)t=r[h].target,(s=r[h].props).display&&(s.display.value=t.animProps.fromTarget("display"));for(h=0;h<a;++h){var u=Re(r[h].target);u.length&&o.push(u)}for(h=0;h<a;++h){t=r[h].target,s=r[h].props,e={};for(i in s)sh[i]&&sh[i].base?e[sh[i].base]=1:e[i]=1;delete e.display;for(i in e)if(n=t.animProps.fromTarget(i),s[i])s[i].value=n;else for(i in n)s[i]?s[i].value=n[i]:s[i]={value:n[i],count:0}}for(uh.prototype.setup.call(this),h=0,a=o.length;h<a;++h)Ae(o[h])},update:function(t,i){t=this.Qn(t),this.gf=t.cycle,this.Kn=t.totalTime;var s,e,n=this.Sf();if(i||this.Tf!==t.time){var h,r,a,o,u,c=this.Hf;for(o=0,u=c.length;o<u;++o){h=c[o].target,a=c[o].props;for(r in a)a[r].active=!1,(a[r].count||void 0===h.animProps.get(r))&&h.animProps.set(r,a[r].value)}var f,l,d=this.Tf=t.time,p=!1,v=!1;if(!n)for(s=this.firstChild;s&&!(s.jn>t.time);){if(e=s.next,s.isEvent&&!s.we&&!s.If)for(this.Tf=d=s.jn,this.Kn=t.totalTime+d-t.time,o=0;o<2;++o){for(1===o&&this.zf(i),f=this.firstChild,v=!0;f&&!(f.jn>d);){if(l=f.next,!f.we&&(0===o&&!f.isEvent||1===o&&f.isEvent)&&(f.update((d-f.jn)*f.Un,i),(f.isEvent||f.firstChild)&&(this.gf!==t.cycle||this.Tf!==d||this.Sf()!==n))){p=!0;break}f=l}if(p)break}if(p)break;s=e}if(!(p||this.Tf===t.time&&v))for(this.Tf=d=t.time,this.Kn=t.totalTime,f=this.firstChild;f&&!(f.jn>d)&&(l=f.next,f.we||f.isEvent||(f.update((d-f.jn)*f.Un,i),!f.firstChild||this.gf===t.cycle&&this.Tf===d&&this.Sf()===n));)f=l;this.zf(i)}else if(!n)for(s=this.firstChild;s&&!(s.jn>t.time)&&(e=s.next,!s.isEvent||s.jn!==this.Tf||s.we||s.If||(s.update(0,i),this.gf===t.cycle&&this.Tf===t.time&&this.Sf()===n));)s=e},zf:function(t){var i,s,e,n,h,r,a,o,u,c,f=this.Hf;for(r=0,a=f.length;r<a;++r){c=f[r].target,h=f[r].props,s={};for(n in h)(t||h[n].active)&&(e={name:n,active:h[n].active?1:0,order:0},sh[n]&&(sh[n].base?(e.name=sh[n].base,e.order=sh[e.name].order||0):e.order=sh[n].order||0),s[e.name]?e.active&&(s[e.name].active=1):s[e.name]=e);i=[];for(n in s)i.push(s[n]);for(i.sort(ch),o=0,u=i.length;o<u;++o)c.animProps.apply(i[o].name)}},Cf:function(t,i){var s,e,n,h,r,a=this.Hf;for(h=0,r=a.length;h<r;++h)if((s=a[h].target)===i.Ea){n=a[h].props;for(e in n)n[e].active=!1,s.animProps.set(e,n[e].value)}return uh.prototype.Cf.call(this,t,i)},Mf:function(t){this.xf=t},Bf:function(t,i){var s,e,n,h,r,a=this.Hf;for(h=0,r=a.length;h<r;++h)if(a[h].target===i){s=a[h];break}if(s||(s={target:i,props:{},count:0},a.push(s)),e=s.props,(n=sh[t])&&n.children&&(r=n.children.length))for(h=0;h<r;++h)e[t=n.children[h]]?++e[t].count:(e[t]={count:1},++s.count);else e[t]?++e[t].count:(e[t]={count:1},++s.count)},Yf:function(t,i){var s,e,n,h,r,a,o=this.Hf;for(r=0,a=o.length;r<a;++r)if(o[r].target===i){s=o[r],h=r;break}if(s){if(e=s.props,(n=sh[t])&&n.children&&(a=n.children.length))for(r=0;r<a;++r)e[t=n.children[r]]&&(e[t].count>1?--e[t].count:(delete e[t],--s.count));else e[t]&&(e[t].count>1?--e[t].count:(delete e[t],--s.count));s.count<=0&&o.splice(h,1)}},Uf:function(t,i){var s,e,n,h,r,a=this.Hf;for(h=0,r=a.length;h<r;++h)if(a[h].target===i){s=a[h];break}if(s)if(e=s.props,(n=sh[t])&&n.children&&(r=n.children.length))for(h=0;h<r;++h)e[t=n.children[h]]&&(e[t].active=!0);else e[t]&&(e[t].active=!0)}});Qi(he,{$:t,jQuery:t,Easing:Xn,MarkerType:rt,GradientType:{LINEAR:0,RADIAL:1},GradientShape:{CIRCLE:0,ELLIPSE:1},GradientSize:{CLOSE_SIDE:0,FAR_SIDE:1,CLOSE_CORNER:2,FAR_CORNER:3},FillType:vt,DisplayMode:bi,Object:Oe,color:gs,createClass:Ls,Locale:ae,SVGShape:Fn,ShapePath:Rn,ClickMaxDistance:1,DoubleClickMaxTime:400,SwipeMinDistance:30,SwipeMaxDeflection:200,SwipeMinVelocity:.3,TransitionMinDuration:500,Timeline:fh,Animation:ah,MediaAnimation:oh,AnimationGroup:uh,TimingEvent:rh,RelativeTweenType:Gn,TweenType:jt,logDebug:as,ZIndex:$t,ControlKind:i,ControlType:s,TextBoxFlags:ht,ResponseResult:At,PlayModes:Qt,animatedProperties:sh,DragDrop:Pe,htmlEscape:fs,htmlToText:ls,Key:Js,splitText:function(t,i){var s=[],e={};if((i=i||{words:!0}).chars||i.words){var n,h;if(i.chars&&(e.chars=[]),i.words&&(e.words=[]),e.processStyles={},i.processStyles){var r=i.processStyles.split(",");for(n=0,h=r.length;n<h;++n)e.processStyles[r[n].trim()]=[]}for(function t(i,s,e){if(i){for(var n in e)i.style&&i.style[n]&&e[n].push(i);for(var h=0,r=i.childNodes.length;h<r;++h){var a=i.childNodes[h];3==a.nodeType?s.push(a):t(a,s)}}}(t,s,e.processStyles),n=0,h=s.length;n<h;++n)ps(s[n],e,i)}return e},support:hs,forceGPU:!he.browser.chromiums}),window.AtomiAP=he,Hn.start()}(jQuery),function(t){t.EffectType={START:0,NONE:0,ENTRANCE_START:200,APPEAR:200,FADE_IN:201,FLY_IN:202,PEEK_IN:203,FLOAT_IN:204,WIPE_IN:205,ZOOM_IN:206,GROW_TURN_IN:207,SHAPE_IN:208,SWIVEL_IN:209,BOUNCE_IN:210,EXPAND_IN:211,SPINNER_IN:212,STRETCH_IN:213,COMPRESS_IN:214,ENTRANCE_END:215,EXIT_START:400,DISAPPEAR:400,FADE_OUT:401,FLY_OUT:402,PEEK_OUT:403,FLOAT_OUT:404,WIPE_OUT:405,ZOOM_OUT:406,SHRINK_TURN_OUT:407,SHAPE_OUT:408,SWIVEL_OUT:409,BOUNCE_OUT:410,CONTRACT_OUT:411,SPINNER_OUT:412,STRETCH_OUT:413,COLLAPSE_OUT:414,EXIT_END:415,EMPHASIS_START:600,PULSE:600,TEETER:601,SPIN:602,EMPHASIS_END:604,MOTION_PATH_START:800,MOTION_PATH_END:807,EXTENSION_START:1e3,PAUSE:1e3,TIME_OUT:1001,MEDIA_PLAY:1002,MEDIA_STOP:1003,MEDIA_SEEK:1004,GESTURE_PROGRESS:1005,TIMER_START:1006,EXTENSION_END:1007},t.EffectDirection={BOTTOM:1,LEFT:2,RIGHT:3,TOP:4,BOTTOM_LEFT:5,BOTTOM_RIGHT:6,TOP_LEFT:7,TOP_RIGHT:8,IN:9,OUT:10,CLOCKWISE:12,COUNTER_CLOCKWISE:13},t.TextEffectFlags={CHARS:1,WORDS:2};var i=t.EffectType,s=t.EffectDirection,e=t.Animation,n=t.MediaAnimation,h=t.AnimationGroup,r=t.Timeline,a=t.TimingEvent,o=t.Easing,u=o.outQuad,c=o.inQuad,f=o.linear,l=t.RelativeTweenType,d=t.TweenType;function p(t,i,s,h,r,a,o,u,c,f){var l={startTime:h,duration:r,tweenParams:a,easing:u,relative:o,tweenType:c,revert:f};"scale"===s?(t.addChild(new e(i,"scaleX",l)),t.addChild(new e(i,"scaleY",l))):"mediaSeek"===s?t.addChild(new n(i,s,l)):t.addChild(new e(i,s,l))}function v(t,i,s){var e,n,h,r=t[this.Ea.slide.prez().layoutIndex];if(!r.normed){for(n=0,h=r.length;n<h;++n){e=r[n];for(var a=0;a<6;++a)e[a]=e[a]/1e3}r.normed=!0}var o=this.Ea.animProps.fromTarget(this.Af),u=this.Ea.score?this.Ea:this.Ea.parent;if(u&&i){var c=u.transformOrigin(!0);o.translateX-=c.x,o.translateY-=c.y}if(u&&u!=this.Ea){var f=-u.rotate()%360;if(f){var l=r["r"+f];if(!l){l=r["r"+f]=[];var d,p=i?c:{x:0,y:0};for(n=0,h=r.length;n<h;++n)d=m((e=r[n].slice())[0],e[1],f,p.x,p.y),e[0]=d.x,e[1]=d.y,d=m(e[2],e[3],f,p.x,p.y),e[2]=d.x,e[3]=d.y,d=m(e[4],e[5],f,p.x,p.y),e[4]=d.x,e[5]=d.y,l.push(e)}r=l}}return void 0!==s&&((e=r[n=1==s?0:r.length-1]?r[n].slice():[0,0,0,0,0,0])[2]=e[4]=e[0],e[3]=e[5]=e[1],r=[e,e.slice()]),[r,o]}function m(t,i,s,e,n){if(s%360){t-=e=e||0,i-=n=n||0,s=s*Math.PI/180;var h=Math.cos(s),r=Math.sin(s);return{x:h*t-r*i+e,y:r*t+h*i+n}}return{x:t,y:i}}function b(t,i){var e=this.Ff(),n=this.Ea.animProps.fromTarget(this.Af),h=this.Ea.transformedContentBox(!0),r=this.Ea.slide,a=0,o=0;switch(h.x+=e.translateX-n.translateX,h.y+=e.translateY-n.translateY,t){case s.LEFT:a=-h.x-h.width;break;case s.TOP:o=-h.y-h.height;break;case s.RIGHT:a=r.offsetSize().width-h.x;break;case s.BOTTOM:o=r.offsetSize().height-h.y;break;case s.TOP_LEFT:a=-h.x-h.width,o=-h.y-h.height;break;case s.TOP_RIGHT:a=r.offsetSize().width-h.x,o=-h.y-h.height;break;case s.BOTTOM_RIGHT:a=r.offsetSize().width-h.x,o=r.offsetSize().height-h.y;break;case s.BOTTOM_LEFT:a=-h.x-h.width,o=r.offsetSize().height-h.y}var u=m(a,o,-(this.Ea.parent&&this.Ea.parent.rotateToSlide()||0));return a=u.x,o=u.y,i?[[[0,0,a/2,o/2,0,0],[a,o,a,o,a/2,o/2]],e]:[[[a,o,a,o,a/2,o/2],[0,0,a/2,o/2,0,0]],e]}function w(t,i){var e=this.Ff(),n=this.Ea.contentBox(),h=0,r=0;switch(t){case s.LEFT:h=-n.width;break;case s.TOP:r=-n.height;break;case s.RIGHT:h=n.width;break;case s.BOTTOM:r=n.height;break;case s.TOP_LEFT:h=-n.width,r=-n.height;break;case s.TOP_RIGHT:h=n.width,r=-n.height;break;case s.BOTTOM_RIGHT:h=n.width,r=n.height;break;case s.BOTTOM_LEFT:h=-n.width,r=n.height}var a=m(h,r,this.Ea.rotate());return h=a.x,r=a.y,i?[[[0,0,h/2,r/2,0,0],[h,r,h,r,h/2,r/2]],e]:[[[h,r,h,r,h/2,r/2],[0,0,h/2,r/2,0,0]],e]}function g(i,e,n){var h,r,a,o=this.Ea.contentBox(),u=n?o.width/2:0,c=n?o.height/2:0;switch(i){case s.LEFT:r=o.x+o.width-u,a=o.x;break;case s.TOP:r=o.y+o.height-c,a=o.y;break;case s.RIGHT:r=o.x+u,a=o.x+o.width,t.support.clipPath&&(r=(h=this.Ea.offsetSize().width)-r,a=h-a);break;case s.BOTTOM:r=o.y+c,a=o.y+o.height,t.support.clipPath&&(r=(h=this.Ea.offsetSize().height)-r,a=h-a)}return e?[a,r]:[r,a]}function y(t,i,e,n){var h,r,a=n?c:u;e==s.LEFT||e==s.TOP_LEFT||e==s.BOTTOM_LEFT?h=!0:e!=s.RIGHT&&e!=s.TOP_RIGHT&&e!=s.BOTTOM_RIGHT||(h=!1),e==s.TOP||e==s.TOP_LEFT||e==s.TOP_RIGHT?r=!0:e!=s.BOTTOM&&e!=s.BOTTOM_LEFT&&e!=s.BOTTOM_RIGHT||(r=!1),i=!!i,void 0!==h&&(h!=i?t.push(["clipLeft",0,1,[g,s.LEFT,n],l.ne,a]):t.push(["clipRight",0,1,[g,s.RIGHT,n],l.ne,a])),void 0!==r&&(r!=i?t.push(["clipTop",0,1,[g,s.TOP,n],l.ne,a]):t.push(["clipBottom",0,1,[g,s.BOTTOM,n],l.ne,a])),t.push(["resetClip",1,0,["",""],l.ne,f,d.zi]),i||t.push(["position",0,1,[w,e,n],l.ne,a,d.Xi,n])}function k(t,i){var e=i?c:u;t.push(["clipLeft",0,1,[g,s.LEFT,i,!0],l.ne,e],["clipTop",0,1,[g,s.TOP,i,!0],l.ne,e],["clipRight",0,1,[g,s.RIGHT,i,!0],l.ne,e],["clipBottom",0,1,[g,s.BOTTOM,i,!0],l.ne,e],["resetClip",1,0,["",""],l.ne,f,d.zi])}function _(t,i){return t*=i?this.Ea.slide.offsetSize().height/100:this.Ea.slide.offsetSize().width/100,[this.Ff(),t]}t.createZoomAndPan=function(t,i,s,e){var n=new h({startTime:0});if(p(n,t,"scale",0,0,[1],l.sf),p(n,t,"translateX",0,0,[0],l.sf),p(n,t,"translateY",0,0,[0],l.sf),i&&i.length)for(var r=0;r<i.length;r++){var a=i[r];if(void 0!==a.m&&(a.m&e)==e){var o,u,c=a.scale[s]/100,d=a.pos[s];o=1===d.ux?[_,-d.x*c/1e3]:[-d.x*c],u=1===d.uy?[_,-d.y*c/1e3,!0]:[-d.y*c],p(n,t,"scale",a.startTime,a.duration,[c],l.sf),p(n,t,"translateX",a.startTime,a.duration,o,l.sf,f),p(n,t,"translateY",a.startTime,a.duration,u,l.sf,f)}}return n};t.animatedProperties;t.createEffect=function(e,n,r,m,w){r=r||0,m=m||0,w=w||{};var g={r:"repeat",d:"direction",a:"alternated",p:"path",t:"text"};for(var _ in g)void 0!==w[_]&&(w[g[_]]=w[_]);if(n===i.PAUSE)return new a(function(){e.cs&&e.cs(!0)},{startTime:r});if(n===i.TIME_OUT)return new a(function(){e.jr&&e.jr(m)},{startTime:r});var T,x,S,E,M=new h({startTime:r,repeat:w.repeat||1,alternated:!!w.alternated}),C=w.direction,P=[],I=w.text&&w.text[0]&&e.splitText&&e.html&&e.html(),R=m;if(I){var A=w.text[1];e.shape&&e.shape.node?P.push(e.shape):R=A;var D={chars:w.text[0]&t.TextEffectFlags.CHARS,words:w.text[0]&t.TextEffectFlags.WORDS,processStyles:"backgroundColor, textDecoration"},N=e.splitTexts;if((!N||D.chars&&!N.chars||D.words&&!N.words)&&(e.splitText(D),N=e.splitTexts),D.chars&&N&&N.chars)for(T=0,x=N.chars.length;T<x;++T)P.push(N.chars[T]);if(D.words&&N&&N.words)for(T=0,x=N.words.length;T<x;++T)P.push(N.words[T])}else P.push(e);var O=t.browser.iDevice,L=[];n==i.FADE_IN?L=[["opacity",0,1,[0,1],l.ne,u]]:n==i.FLY_IN?L=[["position",0,1,[b,C],l.nf,u,d.Xi]]:n==i.PEEK_IN?y(L,!1,C,!1):n==i.FLOAT_IN?C==s.BOTTOM?L=[["translateY",0,1,[100],l.nf,u],["opacity",0,1,[0,1],l.ne,u]]:C==s.TOP&&(L=[["translateY",0,1,[-100],l.nf,u],["opacity",0,1,[0,1],l.ne,u]]):n==i.WIPE_IN?y(L,!0,C,!1):n==i.ZOOM_IN?(L=[["scale",0,1,[0,1],l.rf,u],["opacity",0,1,[0,1],l.ne,u]],O&&L.push(["svgOpacity",0,1,[.9,1],l.ne])):n==i.GROW_TURN_IN?(L=[["rotate",0,1,[90],l.nf,u],["opacity",0,1,[0,1],l.ne,u],["scale",0,1,[0,1],l.rf,u]],O&&L.push(["svgOpacity",0,1,[.9,1],l.ne])):n==i.SWIVEL_IN?(L=[["opacity",0,1,[0,1]],["scaleX",0,.2,[0,1],l.rf,u],["scaleX",.2,.2,[1,1e-4],l.rf,u],["scaleX",.4,.2,[1,-1e4],l.rf,u],["scaleX",.6,.2,[1,-1e-4],l.rf,u],["scaleX",.8,.2,[1,1e4],l.rf,u]],O&&L.push(["svgOpacity",0,1,[.9,1],l.ne])):n==i.BOUNCE_IN?L=[["translateX",0,1,[-150],l.nf],["translateY",0,1,[-250],l.nf,o.outBounce],["opacity",0,.05,[0,1]],["scaleY",7.9/22,.1/22,[1,.5],l.rf],["scaleY",8/22,.1/22,[1,2],l.rf],["scaleY",15.9/22,.1/22,[1,.8],l.rf],["scaleY",16/22,.1/22,[1,1.25],l.rf],["scaleY",19.9/22,.1/22,[1,.9],l.rf],["scaleY",20/22,.1/22,[1,10/9],l.rf]]:n==i.EXPAND_IN?L=[["scaleX",0,1,[.8,1],l.rf,u],["opacity",0,1,[0,1],l.ne,u]]:n==i.SPINNER_IN?L=[["rotate",0,1,[-360],l.ef,u],["opacity",0,1,[100/255,1],l.ne,u]]:n==i.STRETCH_IN?(L=[["scaleX",0,1,[0,1],l.rf,u]],O&&L.push(["svgOpacity",0,1,[.9,1],l.ne])):n==i.COMPRESS_IN?L=[["scaleX",0,1,[1.5,1],l.rf,u],["opacity",0,1,[0,1],l.ne,u]]:n==i.SHAPE_IN?k(L,!1):n==i.PULSE?L=[["scale",0,.5,[1,1.2],l.rf],["opacity",0,.5,[1,100/255]],["scale",.5,.5,[1,5/6],l.rf],["opacity",.5,.5,[100/255,1]]]:n==i.TEETER?L=[["rotate",0,1/8,[-10],l.ef],["rotate",1/8,1/8,[10],l.ef],["rotate",.25,1/8,[10],l.ef],["rotate",3/8,1/8,[-10],l.ef],["rotate",.5,1/8,[-10],l.ef],["rotate",5/8,1/8,[10],l.ef],["rotate",.75,1/8,[10],l.ef],["rotate",7/8,1/8,[-10],l.ef]]:n==i.SPIN?C==s.CLOCKWISE?L=[["rotate",0,1,[360],l.ef]]:C==s.COUNTER_CLOCKWISE&&(L=[["rotate",0,1,[-360],l.ef]]):n==i.FADE_OUT?L=[["opacity",0,1,[1,0],l.ne,c],["opacity",1,0,[0,1]]]:n==i.FLY_OUT?L=[["position",0,1,[b,C,!0],l.nf,c,d.Xi,!0]]:n==i.FLOAT_OUT?C==s.BOTTOM?L=[["translateY",0,1,[100],l.ef,c],["translateY",1,0,[-100],l.ef],["opacity",0,1,[1,0],l.ne,c],["opacity",1,0,[0,1]]]:C==s.TOP&&(L=[["translateY",0,1,[-100],l.ef,c],["translateY",1,0,[100],l.ef],["opacity",0,1,[1,0],l.ne,c],["opacity",1,0,[0,1]]]):n==i.PEEK_OUT?y(L,!1,C,!0):n==i.WIPE_OUT?y(L,!0,C,!0):n==i.ZOOM_OUT?L=[["scale",0,1,[1,1e-4],l.rf,c],["opacity",0,1,[1,0],l.ne,c],["scale",1,0,[1e4,1e4],l.rf],["opacity",1,0,[0,1]]]:n==i.SHRINK_TURN_OUT?L=[["rotate",0,1,[90],l.ef,c],["opacity",0,1,[1,0],l.ne,c],["scale",0,1,[1,1e-4],l.rf,c],["rotate",1,0,[-90],l.ef],["opacity",1,0,[0,1]],["scale",1,0,[1e4,1e4],l.rf]]:n==i.SWIVEL_OUT?L=[["opacity",0,1,[1,0],l.ne,c],["scaleX",0,.2,[1,1e-4],l.rf,c],["scaleX",.2,.2,[1,-1e4],l.rf,c],["scaleX",.4,.2,[1,-1e-4],l.rf,c],["scaleX",.6,.2,[1,1e4],l.rf,c],["scaleX",.8,.2,[1,1e-4],l.rf,c],["opacity",1,0,[0,1]],["scaleX",1,0,[1e4,1e4],l.rf]]:n==i.BOUNCE_OUT?L=[["translateX",0,1,[150],l.ef],["translateY",0,1,[250],l.ef,o.outBounce],["opacity",.95,1,[1,0]],["translateX",1,0,[-150],l.ef],["translateY",1,0,[-250],l.ef],["opacity",1,0,[0,1]]]:n==i.SHAPE_OUT?k(L,!0):n==i.CONTRACT_OUT?L=[["scaleX",0,1,[1,.8],l.rf,c],["opacity",0,1,[1,0],l.ne,c],["scaleX",1,0,[1.25,1.25],l.rf],["opacity",1,0,[0,1]]]:n==i.SPINNER_OUT?L=[["rotate",0,1,[360],l.ef,c],["opacity",0,1,[1,100/255],l.ne,c],["opacity",1,0,[100/255,1]]]:n==i.STRETCH_OUT?L=[["scaleX",0,1,[1,1.5],l.rf,c],["opacity",0,1,[1,0],l.ne,c],["scaleX",1,0,[2/3,2/3],l.rf],["opacity",1,0,[0,1]]]:n==i.COLLAPSE_OUT?L=[["scaleX",0,1,[1,1e-4],l.rf,c],["scaleX",1,0,[1e4,1e4],l.rf]]:n>=i.MOTION_PATH_START&&n<=i.MOTION_PATH_END?L=[["position",0,1,[v,w.path[0],w.path[1]],l.ne,f,d.Xi]]:n==i.GESTURE_PROGRESS?L=[["geProgress",0,1,[0,100]]]:n==i.TIMER_START?L=[["timerState",0,1,[!1,!0],l.ne,f,d.zi]]:n==i.MEDIA_PLAY?L=[["mediaState",0,0,["stopped","playing"],l.ne,f,d.zi]]:n==i.MEDIA_STOP?L=[["mediaState",1,0,["playing","stopped"],l.ne,f,d.zi]]:n==i.MEDIA_SEEK&&(L=[["mediaSeek",0,1,[0,1],l.ne,f]]);var F,U,Y=e.showProp?e.showProp():"block",B=e.hideProp?e.hideProp():"none",H=P.length>=2?R+(P.length-2)*A+m:m;if(n>=i.ENTRANCE_START&&n<=i.ENTRANCE_END){if(p(M,e,"display",0,0,[B,Y],l.ne,f,d.zi),I)for(L.unshift(["opacity",0,0,[0,1]]),T=0,x=P.length;T<x;++T)p(M,P[T],"opacity",0,0,[1,0])}else if(n>=i.EXIT_START&&n<=i.EXIT_END)p(M,e,"display",H,0,[Y,B],l.ne,f,d.zi),I&&L.push(["opacity",1,0,[1,0]]);else if(n>=i.MOTION_PATH_START&&n<=i.MOTION_PATH_END&&I)for(T=0,x=P.length;T<x;++T)p(M,P[T],"position",0,0,[{translateX:0,translateY:0}],l.ne,f,d.zi);for(T=0,x=P.length;T<x;++T)for(U=0==T?0:R+A*(T-1),S=0,E=L.length;S<E;++S)F=L[S],p(M,P[T],F[0],U+F[1]*m,F[2]*m,F[3],F[4],F[5],F[6],F[7]);if(I){var z,X,G,V=!1;if(N&&N.processStyles)for(z in N.processStyles)if((G=N.processStyles[z])&&G.length){V=!0;break}var $=H,W=M;if(w.repeat>1&&($=H*w.repeat,(n>=i.MOTION_PATH_START&&n<=i.MOTION_PATH_END||V||N&&N.listItems&&N.listItems.length)&&(W=new h({startTime:r}),M.startTime(0),W.addChild(M))),N){if(N.listItems)for(T=0,x=N.listItems.length;T<x;++T)X=N.listItems[T].node.style.listStyleType||"",p(W,N.listItems[T],"listStyleType",0,0,[X,"none"],l.ne,f,d.zi),p(W,N.listItems[T],"listStyleType",$,0,["none",X],l.ne,f,d.zi);if(N.processStyles)for(z in N.processStyles)if((G=N.processStyles[z])&&G.length){for(T=P[0]==e.shape?1:0,x=P.length;T<x;++T)for(S=G.length-1;S>=0;--S)if(t.$.contains(G[S].node,P[T].node)){X=G[S].node.style[z],p(W,P[T],z,0,0,["",X],l.ne,f,d.zi);break}for(T=0,x=G.length;T<x;++T)X=G[T].node.style[z],p(W,G[T],z,0,0,[X,""],l.ne,f,d.zi),p(W,G[T],z,$,0,["",X],l.ne,f,d.zi)}}if(n>=i.ENTRANCE_START&&n<=i.ENTRANCE_END||n>=i.EXIT_START&&n<=i.EXIT_END)for(T=0,x=P.length;T<x;++T)p(M,P[T],"resetOpacity",H,0,["",""],l.ne,f,d.zi);else if(n>=i.MOTION_PATH_START&&n<=i.MOTION_PATH_END&&(!w.repeat||w.repeat>0)){var j=2;for(w.repeat>1&&w.alternated&&(j=w.repeat%2+1),p(W,e,"position",$,0,[v,w.path[0],w.path[1],j],l.ne,f,d.Xi),T=0,x=P.length;T<x;++T)p(W,P[T],"resetTransform",$,0,["",""],l.ne,f,d.zi)}}return W||M};var T={NONE:0,CUT:1,FADE:2,PUSH:3,WIPE:4,ZOOM:5,COVER:6,UNCOVER:7,REVEAL:8,FLY_THROUGH:9};function x(t,i,s,e,n,h,r,a,o,u){var c=i.slide,f=i.slideBG;c&&p(t,c,s,n*e,h*e,r,a,o,u),f&&p(t,f,s,n*e,h*e,r,a,o,u)}t.TransitionType=T,t.createTransition=function(i,e,n,h,a,o){var p=e?e.offsetSize():{width:0,height:0},v=n?n.offsetSize():{width:0,height:0},m=new r({startTime:0}),b={slide:e,slideBG:e?e.background:null},w={slide:n,slideBG:n?n.background:null};if(h==T.CUT)x(m,b,"opacity",a,0,.1,[0,1]);else if(h==T.FADE)x(m,b,"opacity",a,0,1,[0,1]);else if(h==T.PUSH)o==s.BOTTOM?x(m,b,"translateY",a,0,1,[p.height,0],l.ne,u):o==s.LEFT?x(m,b,"translateX",a,0,1,[-p.width,0],l.ne,u):o==s.RIGHT?x(m,b,"translateX",a,0,1,[p.width,0],l.ne,u):o==s.TOP&&x(m,b,"translateY",a,0,1,[-p.height,0],l.ne,u),o==s.BOTTOM?x(m,w,"translateY",a,0,1,[0,-v.height],l.ne,u):o==s.LEFT?x(m,w,"translateX",a,0,1,[0,v.width],l.ne,u):o==s.RIGHT?x(m,w,"translateX",a,0,1,[0,-v.width],l.ne,u):o==s.TOP&&x(m,w,"translateY",a,0,1,[0,v.height],l.ne,u);else if(h==T.WIPE){var g=t.support.clipPath;o==s.BOTTOM?x(m,b,"clipTop",a,0,1,[p.height,0],l.ne,u):o==s.LEFT?x(m,b,"clipRight",a,0,1,g?[p.width,0]:[0,p.width],l.ne,u):o==s.RIGHT?x(m,b,"clipLeft",a,0,1,[p.width,0],l.ne,u):o==s.TOP?x(m,b,"clipBottom",a,0,1,g?[p.height,0]:[0,p.height],l.ne,u):o==s.BOTTOM_LEFT?(x(m,b,"clipTop",a,0,1,[p.height,0],l.ne,u),x(m,b,"clipRight",a,0,1,g?[p.width,0]:[0,p.width],l.ne,u)):o==s.BOTTOM_RIGHT?(x(m,b,"clipTop",a,0,1,[p.height,0],l.ne,u),x(m,b,"clipLeft",a,0,1,[p.width,0],l.ne,u)):o==s.TOP_LEFT?(x(m,b,"clipBottom",a,0,1,g?[p.height,0]:[0,p.height],l.ne,u),x(m,b,"clipRight",a,0,1,g?[p.width,0]:[0,p.width],l.ne,u)):o==s.TOP_RIGHT&&(x(m,b,"clipBottom",a,0,1,g?[p.height,0]:[0,p.height],l.ne,u),x(m,b,"clipLeft",a,0,1,[p.width,0],l.ne,u)),x(m,b,"resetClip",a,1,0,["",""],l.ne,f,d.zi)}else h==T.ZOOM?o==s.IN?(x(m,b,"scale",a,0,1,[0,1],l.rf,u),x(m,b,"opacity",a,0,1,[0,1],l.ne,u)):o==s.OUT&&(x(m,b,"scale",a,0,1,[2,1],l.rf,u),x(m,b,"opacity",a,0,1,[0,1],l.ne,u)):h==T.COVER?o==s.BOTTOM?x(m,b,"translateY",a,0,1,[p.height],l.nf,u):o==s.LEFT?x(m,b,"translateX",a,0,1,[-p.width],l.nf,u):o==s.RIGHT?x(m,b,"translateX",a,0,1,[p.width],l.nf,u):o==s.TOP?x(m,b,"translateY",a,0,1,[-p.height],l.nf,u):o==s.BOTTOM_LEFT?(x(m,b,"translateY",a,0,1,[p.height],l.nf,u),x(m,b,"translateX",a,0,1,[-p.width],l.nf,u)):o==s.BOTTOM_RIGHT?(x(m,b,"translateY",a,0,1,[p.height],l.nf,u),x(m,b,"translateX",a,0,1,[p.width],l.nf,u)):o==s.TOP_RIGHT?(x(m,b,"translateY",a,0,1,[-p.height],l.nf,u),x(m,b,"translateX",a,0,1,[p.width],l.nf,u)):o==s.TOP_LEFT&&(x(m,b,"translateY",a,0,1,[-p.height],l.nf,u),x(m,b,"translateX",a,0,1,[-p.width],l.nf,u)):h==T.UNCOVER?(i.un(!0),o==s.BOTTOM?x(m,w,"translateY",a,0,1,[0,-v.height],l.ne,c):o==s.LEFT?x(m,w,"translateX",a,0,1,[0,v.width],l.ne,c):o==s.RIGHT?x(m,w,"translateX",a,0,1,[0,-v.width],l.ne,c):o==s.TOP?x(m,w,"translateY",a,0,1,[0,v.height],l.ne,c):o==s.BOTTOM_LEFT?(x(m,w,"translateY",a,0,1,[0,-v.height],l.ne,c),x(m,w,"translateX",a,0,1,[0,v.width],l.ne,c)):o==s.BOTTOM_RIGHT?(x(m,w,"translateY",a,0,1,[0,-v.height],l.ne,c),x(m,w,"translateX",a,0,1,[0,-v.width],l.ne,c)):o==s.TOP_RIGHT?(x(m,w,"translateY",a,0,1,[0,v.height],l.ne,c),x(m,w,"translateX",a,0,1,[0,-v.width],l.ne,c)):o==s.TOP_LEFT&&(x(m,w,"translateY",a,0,1,[0,v.height],l.ne,c),x(m,w,"translateX",a,0,1,[0,v.width],l.ne,c))):h==T.REVEAL?(x(m,b,"opacity",a,0,1,[0,1]),x(m,b,"translateX",a,0,1,[20,0],l.ne,u),x(m,b,"translateY",a,0,1,[5,0],l.ne,u),x(m,w,"opacity",a,0,1,[1,0]),x(m,w,"translateX",a,0,1,[0,-20],l.ne,c),x(m,w,"translateY",a,0,1,[0,-5],l.ne,c)):h==T.FLY_THROUGH&&(o==s.OUT?x(m,w,"scale",a,0,1,[1,.5],l.rf):o==s.IN&&x(m,w,"scale",a,0,1,[1,1.5],l.rf),x(m,w,"opacity",a,0,1,[1,0]),o==s.OUT?x(m,b,"scale",a,0,1,[1.5,1],l.rf):o==s.IN&&x(m,b,"scale",a,0,1,[.5,1],l.rf),x(m,b,"opacity",a,0,1,[0,1]));return m}}(AtomiAP),function(t){"use strict";t.formatMSString=function(t){var i,s,e;return s=((e=Math.round(t/1e3))-(i=e%60))/60,i=i>=10?""+i:"0"+i,(s=s>=10?""+s:"0"+s)+":"+i}}(window.AtomiAP=window.AtomiAP||{}),function(t,i){"use strict";var s=t.DisplayMode,e=t.createClass({$init:function(e){this.Xf={responsive:!1,slideWidth:500,slideHeight:800},this.Fe=!1,this.Gf=[],this.Vf=[],this.We=1,this.Ta=null,this.Ps=null,this.$f=null,this.Wf=null,this.jf=null,this.Qf=null,this.Kf=null,this.qf=null,this.Jf="",this.Zf=i('\t\t\t\t<div class="ap-content-area">\t\t\t\t\t<div class="ap-stage" style="z-index: 1">\t\t\t\t\t\t<div class="ap-canvas" style="overflow:hidden; z-index: 1">\t\t\t\t\t\t\t<div class="ap-slides" style="transform-origin: 0% 0%; width: 100%; height: 100%; position: absolute; top: 0; left: 0"></div>\t\t\t\t\t\t\t<div class="ap-feedback-slides" style="transform-origin: 0% 0%; width: 100%; height: 100%; position: absolute; top: 0; left: 0; pointer-events: none;"></div>\t\t\t\t\t\t</div>\t\t\t\t\t</div>\t\t\t\t</div>')[0],this.loadingUi=new CanvasLoader(this.Zf,e);var n=this;this.il={mode:s.AUTOFIT,prevMode:s.AUTOFIT,register:function(){var e=this;this.sl=function(){var h=t.fullscreen.fullscreenElement();if(h){var r=i(n.Jf)[0];h==r&&(i(r).addClass("ap-fullscreen"),n.layout())}else i(n.Jf).removeClass("ap-fullscreen"),e.mode==s.FULLSCREEN?e.changeMode(e.prevMode):n.layout()},t.fullscreen.addEventListener("fullscreenchange",this.sl,!1)},unregister:function(){t.fullscreen.removeEventListener("fullscreenchange",this.sl,!1)},changeMode:function(e){if(this.mode!=e){var h=n.stage()[0];h&&(h.scrollLeft=h.scrollTop=0),this.prevMode=this.mode,this.mode=e,i(n).trigger("ui:ap-displayModeChanged",[e]),this.mode==s.FULLSCREEN?t.fullscreen.requestFullscreen(i(n.Jf)[0]):t.fullscreen.fullscreenElement()?t.fullscreen.exitFullscreen():n.layout()}}}},container:function(){return i(this.Jf)},stage:function(){return i(".ap-stage",i(this.Jf))},canvas:function(){return i(".ap-canvas",i(this.Jf))},contentArea:function(){return i(".ap-content-area",i(this.Jf))},sidebar:function(){return i(".ap-side-bar",i(this.Jf))},sidebarExpand:function(){return i(".ap-side-bar-expand",i(this.Jf))},companyLogo:function(){return i(".ap-company-logo",i(this.Jf))},presenterInfo:function(){return i(".ap-presenter-info",i(this.Jf))},tocContainer:function(){return i(".ap-toc-container",i(this.Jf))},resourcesContainer:function(){return i(".ap-resources-container",i(this.Jf))},topbar:function(){return i(".ap-toolbar-top",i(this.Jf))},bottombar:function(){return i(".ap-toolbar-bottom",i(this.Jf))},toolbar:function(){return this.bottombar()},showToc:function(t){this.$f&&(t?(this.$f.show(),this.$f.scrollToCurrentSlide()):this.$f.hide(),2==this.Ta.TocStyle&&this.layout())},tocVisible:function(){return!(!this.$f||!this.$f.isShow())},showSidebar:function(t){t?(this.sidebar().show(),this.sidebarExpand().attr("sidebar-show",!0),this.tocVisible()&&this.$f.scrollToCurrentSlide()):(this.sidebar().hide(),this.sidebarExpand().attr("sidebar-show",!1)),this.layout(),t&&"false"===this.sidebarExpand().attr("data-value")&&this.Cn(!0,!0)},sidebarVisible:function(){var t=this.sidebar();return t&&"none"!=t.css("display")},showResources:function(t){this.qf&&(t?this.qf.show():this.qf.hide())},resourcesVisible:function(){return this.qf&&this.qf.isShow()},autoHidePlayerBar:function(t){0==arguments.length?(this.jf&&this.jf.autoHide(),this.Wf&&this.Wf.autoHide()):(this.jf&&this.jf.isAutoHide()||this.Wf&&this.Wf.isAutoHide())!=t&&(this.jf&&this.jf.autoHide(t),this.Wf&&this.Wf.autoHide(t),this.layout())},showTopbar:function(t){this.jf&&(t?this.jf.show():this.jf.hide(),this.layout())},topbarVisible:function(){return this.jf&&this.jf.visible()},showBottombar:function(t){this.Wf&&(t?this.Wf.show():this.Wf.hide(),this.layout())},bottombarVisible:function(){return this.Wf&&this.Wf.visible()},showToolbar:function(t){this.showBottombar(t)},toolbarVisible:function(){return this.bottombarVisible()},isAutoFit:function(){return this.il.mode==s.AUTOFIT||this.il.mode==s.FULLSCREEN},getMaxContentSize:function(){var t,s,e,n,h,r,a=this.Ta.SideBarPos,o=this.topbar(),u=this.bottombar(),c=this.sidebar(),f=i(this.Jf),l=parseInt(this.contentArea().css("padding-left"));return t=0==c.length||"none"==c.css("display")||0==a||c[0].hasAttribute("collapse")?0:c[0].offsetWidth,s=0==o.length||"none"==o.css("display")?0:o.outerHeight(!0),e=0==u.length||"none"==u.css("display")?0:u.outerHeight(!0),r=f.width()-t-(t>0?3:2)*l,h=f.height()-s-e-2*l,n=r,void 0!==this.el&&r>this.el&&(r=this.el),{width:r,height:h,maxContainerWidth:n}},setMaxContentWidth:function(t){this.el=t},setSlideSize:function(i,s){this.Xf.slideWidth===i&&this.Xf.slideHeight===s||(t.logDebug("Change slide size from "+this.Xf.slideWidth+"x"+this.Xf.slideHeight+" to "+i+"x"+s),this.Xf.slideWidth=i,this.Xf.slideHeight=s,this.layout())},getContainerFitRect:function(){var t,s,e,n,h,r,a,o,u=this.Ta.SideBarPos,c=this.topbar(),f=this.bottombar(),l=this.sidebar(),d=this.contentArea(),p=i(this.Jf),v=d.width(),m=d.height(),b=d.position().top,w=parseInt(d.css("padding-left")),g=0;return 0!=l.length&&"none"!=l.css("display")&&0!=u||(v-=w),0==c.length||"none"==c.css("display")?(n=e=h=0,m-=w,g=b+=w):(n=c.outerWidth(!0),e=c.outerHeight(!0),h=b-(c.position().top+e)),0==f.length||"none"==f.css("display")?(a=r=o=0,m-=w):(a=f.outerWidth(!0),r=f.outerHeight(!0),o=f.position().top-(b+m)),t=Math.max(v,n,a),s=m+e+h+r+o,{x:(p.width()-t)/2,y:g,width:t,height:s}},nl:function(){var t=i("<div>").css({visibility:"hidden",width:100,height:100,overflow:"scroll"}).appendTo(i(this.Jf)),s=i("<div>").css({width:"100%"}).appendTo(t).outerWidth();return t.remove(),100-s},layout:function(){if(this.Fe){var t,e,n,h,r,a,o,u,c,f=this.Xf.slideWidth,l=this.Xf.slideHeight,d=this.Ta.SideBarPos,p=this.getMaxContentSize(),v=this.stage(),m=this.canvas(),b=this.contentArea(),w=this.sidebar(),g=this.sidebarExpand(),y=this.topbar(),k=this.bottombar(),_=i(this.Jf),T=parseInt(this.contentArea().css("padding-left")),x=this.il.mode,S=0==this.Ta.PlayerSize,E=this.nl(),M=E;if(this.Xf.responsive){t=p.width,e=Math.min(p.height,l);var C=!1;if(x==s.FULLSCREEN&&p.maxContainerWidth>t){var P=p.maxContainerWidth/f;l*P>p.height&&(P=p.height/l),P>1&&(C=!0,e=l*P,t=f*P,v.css("overflow-x","hidden"),v.css("overflow-y","hidden"),v.width(t).height(e),m.width(f).height(l),m.css("transform","scale("+P+","+P+")"),m.css("transform-origin","0% 0%"),E=0,M=0,this.We=P)}C||(l!=e?v.css("overflow-y","auto"):v.css("overflow-y","hidden"),v.width(t).height(e),m.width("100%").height(l),m.css("transform",""),m.css("transform-origin",""),E=l>e?E:0,M=0,this.We=1),m.trigger("ap-scaleChanged")}else(e=l*(P=p.width/f))>p.height&&(P=p.height/l),this.isAutoFit()||P<1?(t=f*P,e=l*P):(t=f,e=l,P=1),v.width(t).height(e),this.isAutoFit()?(v.css("overflow-x","hidden"),v.css("overflow-y","hidden"),m.width(f).height(l),m.css("transform","scale("+P+","+P+")"),m.css("transform-origin","0% 0%"),E=0,M=0,this.We=P):(f!=t?v.css("overflow-x","auto"):v.css("overflow-x","hidden"),l!=e?v.css("overflow-y","auto"):v.css("overflow-y","hidden"),m.width(f).height(l),m.css("transform",""),m.css("transform-origin",""),M=f>t?M:0,E=l>e?E:0,this.We=1),m.trigger("ap-scaleChanged");n=0==w.length||"none"==w.css("display")||0==d||w[0].hasAttribute("collapse")?0:w[0].offsetWidth,h=0==y.length||"none"==y.css("display")?0:y.outerHeight(!0),r=0==k.length||"none"==k.css("display")?0:k.outerHeight(!0),a=Math.min(_.width(),v.width()+n+(n>0?3:2)*T+E),u=v.height()+2*T+M,o=(_.width()-a)/2,c=h+(_.height()-u-h-r)/2,S?b.css({left:o,top:c}).outerWidth(a).outerHeight(u):b.css({left:o,top:h}).outerWidth(a).outerHeight(u),1==d?(v.css({left:n+(n>0?2:1)*T,top:T}),w.css({left:T,top:T,height:v.height()+M})):2==d?(v.css({left:T,top:T}),w.css({right:T,top:T,height:v.height()+M})):(v.css({left:T,top:T}),w.hide(),this.sidebarExpand().attr("sidebar-show",!1)),S?(y.css({left:0,top:0}).outerWidth(_.width()),k.css({left:0,top:_.height()-r}).outerWidth(_.width())):(y.css({left:o,top:0}).outerWidth(a),k.css({left:o,top:h+u}).outerWidth(a));var I=this.Ta.SideBarWidth;a=v.width()+I+(I>0?3:2)*T+E,I<=2*(t-I-16)||a<_.width()?"none"!=g.css("display")&&this.Cn(!0):I>2*t?this.Cn(!1):this.Cn(),this.hl=this.getContainerFitRect(),this.Kf&&this.Kf.layout(this.hl),i(this).trigger("ui:ap-layout")}},create:function(s,e,n,h,r,o){var u=o.playerLayouts.topbar||"",c=o.playerLayouts.bottombar||"",l=o.playerLayouts.sidebar||"";if(this.destroy(),this.Fe=!0,this.Jf=s,this.Ta=r,this.Xf=o,this.Xf.responsive&&(t.fullscreen.fullscreenEnabled()||(this.Ta.ShowDisplayModeBtn=!1)),this.bo=o.playerIcons,this.rl=o.playbackRates?o.playbackRates:[.5,1,1.5,2],this.Gf=[],this.Vf=[],this.al=n,this.Ps=new t.Locale(this.Xf.language,this.Xf.textDir),this.jf=""!=u?new t.RLToolbar(this,u,!0):null,this.Wf=""!=c?new t.RLToolbar(this,c,!1):null,this.contentArea().append(l),0==r.TocStyle||0==this.tocContainer().length?(this.$f=null,this.tocContainer().remove()):(1==r.TocStyle&&(this.tocContainer().appendTo(this.container()),this.tocContainer().hide()),this.$f=new t.RLToc(this,e,n),this.ol=function(){this.tocContainer()&&1==r.TocStyle&&this.tocVisible()&&this.$f&&this.ul()},i(this).on("ui:ap-layout",this.ol)),!h||h.length<=0||0==this.resourcesContainer().length?(this.qf=null,this.resourcesContainer().remove()):(this.resourcesContainer().appendTo(this.container()),this.resourcesContainer().hide(),this.qf=new a(this,h),this.cl=function(){var t=this.resourcesContainer();if(t&&this.qf){var e=i(".ap-tool-resources",s);e&&this.fl(e,t,400,300)}},i(this).on("ui:ap-layout",this.cl)),!1===r.ShowTopBar&&this.showTopbar(!1),r.AutoHidePlayerBar){if(!this.ll){this.ll=new f(this.container()),this.ll.appendTo(this.container());var d=this;this.ll.onClick(function(){var t=d.jf&&d.jf.isAutoHide()||d.Wf&&d.Wf.isAutoHide();d.autoHidePlayerBar(!t)})}this.autoHidePlayerBar()}if(this.dl(),this.pl(this.Jf),this.il.register(),this.il.changeMode(this.Ta.DisplayMode),t.browser.macOS){var p=this;setTimeout(function(){p.layout()},100)}else this.layout()},dl:function(){var t=this,e=this.Ps,n=i(this.Jf),h=i(this);h.on("ap-pause",function(s,h){i(".ap-tool-play",n).each(function(t){var s=i(this);"button"==s.attr("role")?s.attr("aria-pressed",h?"true":"false").attr("data-value",h).attr("title",e.text(h?"PlayPrez":"PausePrez")):"menuitemcheckbox"==s.attr("role")&&s.attr("aria-checked",h?"true":"false").attr("data-value",h)}),t.showPrezStateFeedback(h)}),h.on("ap-speed",function(t,s){i(".ap-tool-speed",n).each(function(t){i(this).attr("data-value",s),s=s<.75?.5:s<1.25?1:s<1.75?1.5:2,i(this).attr("data-value-range",s)})}),h.on("ap-mute",function(t,s){i(".ap-tool-sound",n).each(function(t){var n=i(this);"button"==n.attr("role")?i(this).attr("aria-pressed",s?"true":"false").attr("data-value",s).attr("title",e.text(s?"Unmute":"Mute")):"menuitemcheckbox"==n.attr("role")&&n.attr("aria-checked",s?"true":"false").attr("data-value",s)})}),h.on("ap-cc",function(t,s){i(".ap-tool-cc",n).each(function(t){var n=i(this);"button"==n.attr("role")?i(this).attr("aria-pressed",s?"true":"false").attr("data-value",s).attr("title",e.text(s?"HideCC":"ShowCC")):"menuitemcheckbox"==n.attr("role")&&n.attr("aria-checked",s?"true":"false").attr("data-value",s)})}),h.on("ap-sidebar",function(t,s){i(".ap-tool-sidebar",n).each(function(t){var n=i(this);"button"==n.attr("role")?i(this).attr("aria-pressed",s?"true":"false").attr("data-value",s).attr("title",e.text(s?"HideSidebar":"ShowSidebar")):"menuitemcheckbox"==n.attr("role")&&n.attr("aria-checked",s?"true":"false").attr("data-value",s)})}),h.on("ui:ap-displayModeChanged",function(h,r){var a,o=t.Xf.responsive;o?a=r==s.FULLSCREEN?"ExitFullScreen":"FullScreen":r==s.ACTUAL_SIZE?a="ActualSize":r==s.AUTOFIT?a="AutoFit":r==s.FULLSCREEN&&(a="ExitFullScreen"),i(".ap-tool-displaymode",n).each(function(){i(this).attr("data-value",o?2:r).attr("title",e.text(a))})}),h.on("ap-progress",function(s,h,r,a){var o,u,c=t.Gf;for(o=0,u=c.length;o<u;++o)c[o].setValue(a);void 0!==t.vl&&Math.round(a/1e3)==Math.round(this.vl/1e3)||(t.vl=a,i(".ap-tool-position",n).html(e.number(AtomiAP.formatMSString(a))),i(".ap-tool-slide-index",n).html(e.number(h+1)))}),h.on("ap-volume",function(i,s){var e,n,h=t.Vf;for(e=0,n=h.length;e<n;++e)h[e].setValue(s)}),h.on("ui:ap-pause",function(){t.ml=!0}),h.on("ap-toc",function(s,h){i(".ap-tool-toc",n).each(function(s){var n=i(this);t.$f&&("button"==n.attr("role")?n.attr("aria-pressed",h?"true":"false").attr("data-value",h).attr("title",e.text(h?"HideToc":"ShowToc")):"menuitemcheckbox"==n.attr("role")&&n.attr("aria-checked",h?"true":"false").attr("data-value",h))})}),h.on("ap-tool-multiple-language-cc",function(t,s){this.Xf.defautlLanguageCCIndex=s,i(".ap-tool-cc",n).each(function(t){var n=i(this);s=-1!=s,"button"==n.attr("role")?i(this).attr("aria-pressed",s?"true":"false").attr("data-value",s).attr("title",e.text("ClosedCaption")):"menuitemcheckbox"==n.attr("role")&&n.attr("aria-checked",s?"true":"false").attr("data-value",s)})}),"Demo"==t.Xf.playMode&&t.stage().on("click",function(){h.trigger("ui:ap-pause")})},bl:function(){"Demo"==this.Xf.playMode&&this.stage().off("click"),i(this).off("ap-pause").off("ap-speed").off("ap-mute").off("ap-cc").off("ui:ap-displayModeChanged").off("ap-progress").off("ap-volume").off("ui:ap-layout")},wl:function(t){var s=this;return function(){i(s).trigger("ui:ap-speed",[t])}},pl:function(t){var e,n,h=this,r=this.Xf.responsive,a=i(t),o=this.Ps,c=h.rl?h.rl:[];for(this.gl(t),i(".ap-tool-restart",a).on("click",function(){i(h).trigger("ui:ap-restart")}),i(".ap-tool-first",a).on("click",function(){i(h).trigger("ui:ap-first")}),i(".ap-tool-prev",a).on("click",function(){i(h).trigger("ui:ap-previous")}),i(".ap-tool-play",a).on("click",function(){i(h).trigger("ui:ap-pause")}),i(".ap-tool-next",a).on("click",function(){i(h).trigger("ui:ap-next")}),i(".ap-tool-last",a).on("click",function(){i(h).trigger("ui:ap-last")}),l=0,e=c.length;l<e;++l)n=c[l],i("."+h.yl(n),a).on("click",h.wl(n));i(".ap-tool-sound",a).on("click",function(){i(h).trigger("ui:ap-sound")}),i('.ap-tool-cc[role="button"]',a).on("click",function(){return h.Xf.multipleLanCCs&&h.Xf.multipleLanCCs.length>1?(h.kl(this),!1):(i(h).trigger("ui:ap-cc"),!0)}),i('.ap-tool-cc[role="menuitemcheckbox"]',a).on("click",function(){return i(h).trigger("ui:ap-cc"),!0}),i(".ap-tool-about",a).on("click",function(){i(h).trigger("ui:ap-about")}),i(".ap-tool-actualsize",a).on("click",function(){h.il.changeMode(s.ACTUAL_SIZE)}),i(".ap-tool-autofit",a).on("click",function(){h.il.changeMode(s.AUTOFIT)}),i(".ap-tool-fullscreen",a).on("click",function(){h.il.changeMode(s.FULLSCREEN)}),i(".ap-tool-toc",a).on("click",function(){return i(h).trigger("ui:ap-toc"),1!=h.Ta.TocStyle}),i(".ap-tool-sidebar",a).on("click",function(){i(h).trigger("ui:ap-sidebar")}),i('.ap-tool-speed[role="button"]',a).on("click",function(){return h._l(this),!1}),i('.ap-tool-displaymode[role="button"]',a).on("click",function(){return h.Xf.responsive?(h.il.mode==s.FULLSCREEN?h.il.changeMode(s.ACTUAL_SIZE):h.il.changeMode(s.FULLSCREEN),!0):(h.Tl(this),!1)}),i('.ap-tool-setting[role="button"]',a).on("click",function(){return h.xl(this),!1}),i(".ap-tool-resources",a).on("click",function(){return i(h).trigger("ui:ap-resources"),h.fl(this,h.resourcesContainer(),400,300),!1}),i(".ap-tool-exit",a).on("click",function(){i(h).trigger("ui:ap-exit")}),i(".ap-side-bar-expand",a).on("click",function(){"true"===h.sidebarExpand().attr("data-value")?h.Cn(!1,!0):h.Cn(!0,!0)});for(var f=0,l=0;l<this.al.length;++l)f+=this.al[l].duration;i(".ap-tool-progress",a).each(function(s){var e={followMouse:!1,max:f,slideInfos:h.al};e.thumbnailPrefixPath=h.Xf.resourceLocation+h.Xf.fileNamePrefix;var n=new u(i(this),h.Ta,e);n.Sl=t,h.Gf.push(n),i(n).on("valueChanged",function(t,s){i(h).trigger("ui:ap-progress",[s])})}),i(".ap-tool-volume",a).each(function(s){var e=new u(i(this),i.extend({},h.Ta,{Navigation:!0}),{followMouse:!0});e.Sl=t,h.Vf.push(e),i(e).on("valueChanging",function(t,s){i(h).trigger("ui:ap-volume",[s])}).on("valueChanged",function(t,s){i(h).trigger("ui:ap-volume",[s])})}),i(".ap-tool-duration",a).html(o.number(AtomiAP.formatMSString(f))),i(".ap-tool-slide-count",a).html(o.number(this.al.length||0)),i(".ap-tool-projectname",a).html(h.Xf.projectName),i(".ap-tool-projectdesc",a).html(h.Xf.description),i(".ap-tool-displaymode",a).attr("data-value",r?"2":h.il.mode),i(".ap-presenter-info",a).each(function(t){if(h.Ta.ShowAuthorInfo||h.Ta.ShowAuthorImage||h.Ta.ShowCompanyLogo||h.Ta.ShowAuthorVideo){if(h.Ta.ShowCompanyLogo&&h.Xf.companyLogo){var s=h.Xf.companyLogo[0],e=h.Xf.companyLogo[1],n=h.Xf.resourceLocation+h.Xf.fileNamePrefix+"res_"+s+"."+e;i(this).append('<div class="ap-company-logo"><img src="'+n+'" /></div>')}if(h.Ta.ShowAuthorImage&&h.Xf.authorImage){s=h.Xf.authorImage[0],e=h.Xf.authorImage[1],n=h.Xf.resourceLocation+h.Xf.fileNamePrefix+"res_"+s+"."+e;i(this).append('<div class="ap-presenter-image"><img src="'+n+'" /></div>')}h.Ta.ShowAuthorVideo&&i(this).append('<div class="ap-presenter-video"></div>'),h.Ta.ShowAuthorInfo&&(h.Xf.authorName&&i(this).append('<div class="ap-presenter-name">'+h.Xf.authorName+"</div>"),h.Xf.authorDesc&&i(this).append('<div class="ap-presenter-desc">'+h.Xf.authorDesc+"</div>")),i(this).show()}else i(this).hide()}),i(".ap-tool-multiple-language-cc",a).on("click",function(){var t=i(this).attr("ap-multiple-language-index");t=parseInt(t),i(h).trigger("ui:ap-multiple-language-cc",t)})},gl:function(t){var s,e,n,h,r=i(t),a=this.Ps,o=this.Ta,u=[["ap-tool-restart","Restart",o.ShowRestartBtn,["restart"]],["ap-tool-first","FirstSlide",o.ShowFirstBtn,["first"]],["ap-tool-prev","PreviousSlide",o.ShowPrevBtn,["prev"]],["ap-tool-play","PlayPrez",o.ShowPlayBtn,["play","pause"]],["ap-tool-next","NextSlide",o.ShowNextBtn,["next"]],["ap-tool-last","LastSlide",o.ShowLastBtn,["last"]],["ap-tool-speed","PlaybackSpeed",o.ShowSpeedBtn,["speed05","speed10","speed15","speed20"]],["ap-tool-sound","Mute",o.ShowVolumeBtn,["mute","sound"]],["ap-tool-about","About",o.ShowInfoBtn,["about"]],["ap-tool-cc","HideCC",o.ShowCCBtn,["cchide","ccshow"]],["ap-tool-toc","HideToc",o.ShowTocBtn,["tochide","tocshow"]],["ap-tool-sidebar","HideSidebar",o.ShowSidebarBtn,["sidebarhide","sidebarshow"]],["ap-tool-displaymode","AutoFit",o.ShowDisplayModeBtn,["actualsize","autofit","fullscreen"]],["ap-tool-setting","Settings",!0,["setting"]],["ap-tool-progress","PrezProgress",o.ShowProgressBar,[]],["ap-tool-volume","AdjustVolume",o.ShowVolumeBar,[]],["ap-tool-position","",o.ShowPosition,[]],["ap-tool-duration","",o.ShowPrezLen,[]],["ap-tool-resources","Resources",o.ShowResourcesBtn,["resources"]],["ap-tool-slide-index","",!0,[]],["ap-tool-slide-count","",!0,[]],["ap-tool-exit","Exit",o.ShowExitBtn,["exit"]]];for(s=0,e=u.length;s<e;++s)if((h=i("."+(n=u[s])[0],r)).hasClass("ap-button")||h.hasClass("ap-label")||h.hasClass("ap-slider")){if(h.attr("title",a.text(n[1])).attr("data-enabled",n[2]),n[2]||h.hide(),h.hasClass("ap-button")&&this.bo){for(var c='<div class="ap-button-icon">',f=n[3],l=0;l<f.length;++l)c+=this.bo[f[l]];c+="</div>",c+='<div class="ap-button-label">'+a.text(n[1])+"</div>",h.append(c)}(h.hasClass("ap-tool-play")||h.hasClass("ap-tool-cc")||h.hasClass("ap-tool-sidebar")||h.hasClass("ap-tool-sound")||h.hasClass("ap-tool-toc"))&&h.attr("aria-pressed","false"),h.hasClass("ap-button")&&h.attr("role","button"),h.hasClass("ap-label")&&h.attr("role","presentation"),h.hasClass("ap-slider")&&h.attr("role","slider")}},El:function(t){var s,e=i(t),n=this.rl?this.rl:[];for(i(".ap-tool-restart",e).off("click"),i(".ap-tool-first",e).off("click"),i(".ap-tool-prev",e).off("click"),i(".ap-tool-play",e).off("click"),i(".ap-tool-next",e).off("click"),i(".ap-tool-last",e).off("click"),i(".ap-tool-speed",e).off("click"),h=0,r=n.length;h<r;++h)s=n[h],i("."+this.yl(s),e).off("click");i(".ap-tool-sound",e).off("click"),i(".ap-tool-about",e).off("click"),i(".ap-tool-cc",e).off("click"),i(".ap-tool-toc",e).off("click"),i(".ap-tool-sidebar",e).off("click"),i(".ap-tool-displaymode",e).off("click"),i(".ap-tool-actualsize",e).off("click"),i(".ap-tool-autofit",e).off("click"),i(".ap-tool-fullscreen",e).off("click"),i(".ap-tool-setting",e).off("click"),i(".ap-tool-resources",e).off("click"),i(".ap-tool-exit",e).off("click"),i(".ap-side-bar-expand",e).off("click"),i(".ap-tool-multiple-language-cc",e).off("click");var h,r,a,o=this.Gf;for(this.Gf=[],h=0,r=o.length;h<r;++h)(a=o[h]).Sl==t?(i(a).off("valueChanged"),a.destroy()):this.Gf.push(a);for(o=this.Vf,this.Vf=[],h=0,r=o.length;h<r;++h)(a=o[h]).Sl==t?(i(a).off("valueChanged").off("valueChanging"),a.destroy()):this.Vf.push(a)},destroy:function(){this.il.unregister(),this.bl(),this.El(this.Jf),this.$f&&(this.$f.destroy(),this.$f=null),this.Wf&&(this.Wf.destroy(),this.Wf=null),this.jf&&(this.jf.destroy(),this.jf=null),this.qf&&(this.qf.destroy(),this.qf=null),this.Ml(),this.contentArea().remove(),this.Fe=!1},appendTo:function(t){i(t).append(this.Zf),this.Fe||i(this.Zf).outerWidth(i(t).width()).outerHeight(i(t).height())},showMsg:function(i,s,e,n,h){void 0===h&&(h=[]),void 0===s&&(s=!0);var r=this.Ps;this.Kf&&this.Kf.close();var a=this,o=new t.RLPopup(i,a);o.setOptions({isShowClose:s,overlay:!0,navItems:h,textDirection:a.Xf.textDir,closeText:r.text("Close")}),o.onShow(function(){a.Kf=o,e&&e()}),o.onClose(function(){a.Kf=void 0,n&&n()}),o.show(this.Jf,this.hl)},showAbout:function(t,i,s){var e=[],n="",h=this.Ps;""!=t.Homepage&&(n='<a class="ap-about-homepage" href="'+t.Homepage+'" target="_blank" tabindex="-1">'+t.Homepage+"</a>");var r='<div style="line-height:1.8;padding:5px;"> \t\t\t\t\t<b>'+t.Name+"</b> \t\t\t\t\t<br />"+h.text("Author")+": <b>"+t.Author+"</b> \t\t\t\t\t<br />"+h.text("Copyright")+": <b>"+t.Copyright+"</b> \t\t\t\t\t<br />"+h.text("Homepage")+": <b>"+n+'</b> \t\t\t\t\t</div> \t\t\t\t\t<div style="line-height:1.8;border-top:solid 1px #DDDDDD;padding:5px;"> \t\t\t\t\t'+h.text("BuiltWith")+' \t\t\t\t\t<a class="ap-about-app-home" dir="ltr" href="'+t.AppHomePage+'" title="'+t.AppHomePage+'" target="_blank" tabindex = "-1">'+t.Generator+"</a> \t\t\t\t\t<br />Atomi Systems, Inc. \t\t\t\t</div>";""!=t.Homepage&&e.push(".ap-about-homepage"),e.push(".ap-about-app-home"),this.showMsg(r,!0,i,s,e)},showLessonResume:function(){var t,s=this,e=[],n=this.Ps;t='<div id=""> \t\t\t\t<div class="ap-popup-title">'+n.text("ResumePrez")+'</div> \t\t\t\t<div class="ap-popup-main-text">'+n.text("ResumePrezMsg")+'</div> \t\t\t\t<div class="ap-popup-button-layout"> \t\t\t\t\t<button id="BtnLessonResume">'+n.text("Yes")+'</button> \t\t\t\t\t<button id="BtnLessonRestart">'+n.text("No")+"</button> \t\t\t\t</div> \t\t\t</div>",e.push("#BtnLessonResume"),e.push("#BtnLessonRestart"),this.showMsg(t,!1,function(){i("#BtnLessonResume").on("click",function(){s.Kf&&s.Kf.close(),i(s).trigger("ui:ap-lesson-resume")}),i("#BtnLessonRestart").on("click",function(){s.Kf&&s.Kf.close(),i(s).trigger("ui:ap-lesson-reset")})},null,e)},showUnmuteHintMsg:function(){var t,s;s=this.stage(),i(this.Jf),s.append('<div id="UnmuteHint"><span>'+this.Ps.text("ClickToUnmute")+"</span></div>"),t=i("#UnmuteHint",s),setTimeout(function(){t.fadeOut(400,function(){t.remove()})},3e3)},hideUnmuteHintMsg:function(){var t=i("#UnmuteHint",this.stage());t&&t.remove()},showPrezStateFeedback:function(t){var s,e=this.stage(),n=this;if(n.ml){n.ml=!1,n.Cl&&clearTimeout(n.Cl),n.Pl&&clearTimeout(n.Pl),i(".ap-prez-state-btn",e).remove(),s='<div class="ap-prez-state-btn" data-animating="false">'+n.bo[t?"pause":"play"]+"</div>",e.append(s);var h=i(".ap-prez-state-btn",e);if(0!=h.length){var r=h.get(0);n.Cl=setTimeout(function(){r.setAttribute("data-animating","true"),n.Cl=void 0},100),n.Pl=setTimeout(function(){r.parentNode.removeChild(r),n.Pl=void 0},2e3)}}},fl:function(t,s,e,n){var h,r,a,o,u,c,f,l,d=this.container(),p=this.hl,v=i(t);h=Math.min(e,d.width()),r=Math.min(n,d.height()),a=v.offset().left+v.width()/2-h/2;for(var m=0;m<=1&&(u=v.offset().top-(d.offset().top+r),c=d.offset().top+d.height()-(v.offset().top+v.height()+r),f=d.offset().left+d.width()-(v.offset().left+v.width()+h),l=v.offset().left-(d.offset().left+h),u<0&&c<0&&f<0&&l<0);++m)r=d.offset().top+d.height()-(v.offset().top+v.height());u>=0?(o=v.offset().top-d.offset().top-r,a=Math.max(0,Math.min(a,p.x+p.width-h))):c>=0?(o=v.offset().top+v.height()-d.offset().top,a=Math.max(0,Math.min(a,p.x+p.width-h))):f>=0?(o=0,a=v.offset().left+v.width()+d.offset().left):(o=0,a=v.offset().left-d.offset().left-h),s.css({left:a,top:o,position:"absolute"}).outerWidth(h,!0).outerHeight(r,!0)},ul:function(){if(this.$f&&this.tocVisible()){var t,s,e,n,h=this.container(),r=i(".ap-toc-content-wrapper",h),a=i(".ap-toc-container",h),o=i(".ap-toc-header",h),u=i(".ap-toc",h),c=this.topbar(),f=this.bottombar(),l=0==c.length||"none"==c.css("display")?0:c.outerHeight(!0),d=0==f.length||"none"==f.css("display")?0:f.outerHeight(!0),p=this.hl,v=a.outerHeight(!0)-a.innerHeight()+o.outerHeight(!0)-o.innerHeight(),m=a.outerWidth(!0)-a.innerWidth();t=Math.min(400,p.width-m)+m,s=Math.min(u.outerHeight(!0)+o.outerHeight(!0),p.height-d-l)+v,e=p.x+p.width-t,n=p.y+p.height-d-s,a.css({left:e,top:n,position:"absolute"}).outerWidth(t,!0).outerHeight(s,!0),r.css({"min-height":"0"}),s-v<=o.outerHeight(!0)?(r.css({overflow:""}),a.css({overflow:"auto"})):(r.css({overflow:"auto"}),a.css({overflow:""}))}},Il:function(t,s,e){var n=this.container(),h=this;t.appendTo(n),t.attachEventHanlders(function(t){h.pl(t)}),t.show(s,e,function(){t.detachEventHandlers(function(t){h.El(t)}),i(h).off("ui:ap-layout.hideMenu")}),i(h).on("ui:ap-layout.hideMenu",function(){t.destroy()})},Rl:function(t){return t.toFixed(1)+"x"},yl:function(t){return"ap-tool-speed_"+t.toFixed(1).replace(".","_")},_l:function(t){var s=this.Al("mnuspeed");if(s)s.destroy();else{var e,n,h,r=i(t).attr("data-value"),a=this.rl?this.rl:[];for(r=void 0==r?1:parseFloat(r),s=new o("mnuspeed",this.bo,this),e=0,n=a.length;e<n;++e)h=parseFloat(a[e]),s.addRadioMenuItem(this.yl(h),this.Rl(h),r==h);this.Il(s,t,!0)}},Tl:function(i){var e="mnudisplaymode",n=this.Al(e);if(n)n.destroy();else{var h=this.Ps;(n=new o(e,this.bo,this)).addRadioMenuItem("ap-tool-actualsize",h.text("ActualSize"),this.il.mode==s.ACTUAL_SIZE),n.addRadioMenuItem("ap-tool-autofit",h.text("AutoFit"),this.il.mode==s.AUTOFIT),t.fullscreen.fullscreenEnabled()&&n.addRadioMenuItem("ap-tool-fullscreen",h.text("FullScreen"),this.il.mode==s.FULLSCREEN),this.Il(n,i,!0)}},kl:function(t){var s="mnumultiplelanguagecc",e=this.Al(s);if(e)e.destroy();else{var n=this.Ps,h=this.Xf,r=h.multipleLanCCs,a=h.defautlLanguageCCIndex,u=(e=new o(s,this.bo,this)).addRadioMenuItem("ap-tool-multiple-language-cc",n.text("HideCC"),-1==a);i(u).attr("ap-multiple-language-index",-1);for(var c=0,f=r.length;c<f;++c)u=e.addRadioMenuItem("ap-tool-multiple-language-cc",r[c],a==c),i(u).attr("ap-multiple-language-index",c);this.Il(e,t,!0)}},Dl:function(t){return this.Nl?this.Nl.push(t):this.Nl=[t],this},Al:function(t){if(this.Nl)for(var i=0;i<this.Nl.length;++i)if(this.Nl[i].id()==t)return this.Nl[i];return null},Ol:function(t){if(this.Nl){var i=this.Nl.indexOf(t);i>=0&&this.Nl.splice(i,1)}return this},Ml:function(){if(this.Nl)for(;this.Nl.length;)this.Nl[this.Nl.length-1].destroy();return this},xl:function(e){var n="mnusetting",h=this.Al(n);if(h)h.destroy();else{var r=this.container(),a=this.Ps,u=this,c=this.Xf.responsive;h=new o(n,u.bo,this);var f=[];u.Xf.multipleLanCCs&&u.Xf.multipleLanCCs.length>1&&(f=u.Xf.multipleLanCCs.slice());var l=i(e).closest(".ap-toolbar,.ap-sidebar",r);i(".ap-button",l).each(function(){var e=i(this);"false"!=e.attr("data-enabled")&&"none"==e.css("display")&&["ap-tool-first","ap-tool-prev","ap-tool-next","ap-tool-last","ap-tool-about","ap-tool-restart","ap-tool-exit","ap-tool-play","ap-tool-cc","ap-tool-sound","ap-tool-speed","ap-tool-displaymode"].forEach(function(n){if(e.hasClass(n)){var r="";switch(n){case"ap-tool-first":case"ap-tool-prev":case"ap-tool-next":case"ap-tool-last":case"ap-tool-about":case"ap-tool-restart":case"ap-tool-exit":h.addMenuItem(n,e.attr("title"));break;case"ap-tool-play":case"ap-tool-sound":r||("ap-tool-play"==n?r="PausePrez":"ap-tool-sound"==n&&(r="Mute")),h.addToggleMenuItem(n,a.text(r),"true"==e.attr("aria-pressed"));break;case"ap-tool-cc":if(r||(r="ClosedCaption"),f.length){var l=u.Xf.defautlLanguageCCIndex,d=new o("mnumultiplelanguagecc",u.bo);d.addMenuHeaderItem(a.text("ClosedCaption"));var p=d.addRadioMenuItem("ap-tool-multiple-language-cc",a.text("HideCC"),-1==l);i(p).attr("ap-multiple-language-index",-1);for(var v=0,m=f.length;v<m;++v)p=d.addRadioMenuItem("ap-tool-multiple-language-cc",f[v],l==v),i(p).attr("ap-multiple-language-index",v);h.addSubMenuItem(n,e.attr("title"),d)}else h.addToggleMenuItem(n,a.text(r),"true"==e.attr("aria-pressed"));break;case"ap-tool-speed":var b,w,g=e.attr("data-value"),y=u.rl?u.rl:[];g=void 0==g?1:parseFloat(g);var k=new o("mnuspeed",u.bo);for(k.addMenuHeaderItem(a.text("PlaybackSpeed")),v=0,b=y.length;v<b;++v)w=parseFloat(y[v]),k.addRadioMenuItem(u.yl(w),u.Rl(w),g==w);h.addSubMenuItem(n,e.attr("title"),k);break;case"ap-tool-displaymode":if(c)t.fullscreen.fullscreenEnabled()&&(u.il.mode==s.FULLSCREEN?h.addToggleMenuItem("ap-tool-autofit",a.text("FullScreen"),!0):h.addToggleMenuItem("ap-tool-fullscreen",a.text("FullScreen"),!1));else{var _=new o("mnudisplaymode",u.bo);_.addMenuHeaderItem(a.text("DisplayMode")),_.addRadioMenuItem("ap-tool-actualsize",a.text("ActualSize"),u.il.mode==s.ACTUAL_SIZE),_.addRadioMenuItem("ap-tool-autofit",a.text("AutoFit"),u.il.mode==s.AUTOFIT),t.fullscreen.fullscreenEnabled()&&_.addRadioMenuItem("ap-tool-fullscreen",a.text("FullScreen"),u.il.mode==s.FULLSCREEN),h.addSubMenuItem(n,e.attr("title"),_)}}}})}),this.Il(h,e,!0)}},Cn:function(t,s){if(!0!==this.Ll){var e=this.sidebar(),n=this.presenterInfo(),h=this.tocContainer(),r=this.sidebarExpand();if(0==arguments.length)return 1==this.Ta.SideBarPos?(a="none"!==e[0].style.display&&"true"!==e.attr("collapse")?e[0].offsetLeft+e[0].clientWidth:0,e[0].parentNode&&a>e[0].parentNode.clientWidth&&(a=e[0].parentNode.clientWidth)):""!==(a="none"!==e[0].style.display&&"true"!==e.attr("collapse")?e[0].offsetLeft:"")&&a<0&&(a=0),void r.css({left:a});if(t){var a;if(n.show(),2==this.Ta.TocStyle&&("false"!==h.attr("toc-show")&&h.show(),h.attr("sidebar-expand",!0)),e.attr("position",1==this.Ta.SideBarPos?"left":"right"),s)e.attr("collapse",!1),1==this.Ta.SideBarPos?(a=e[0].offsetLeft+e[0].clientWidth,e[0].parentNode&&a>e[0].parentNode.clientWidth&&(a=e[0].parentNode.clientWidth)):(a=e[0].offsetLeft)<0&&(a=0),r.css({left:a});else e.removeAttr("collapse");r.attr({"icon-type":1==this.Ta.SideBarPos?"left":"right",title:this.Ps.text("HideSidebar"),"data-value":"true"}),s||r.hide(),i(this).trigger("ui:ap-expand-sidebar",[!0]),this.Ll||(this.Ll=!0)}else n.hide(),2==this.Ta.TocStyle&&(h.hide(),h.attr("sidebar-expand",!1)),r.show(),e.attr({collapse:!0,position:1==this.Ta.SideBarPos?"left":"right"}),r.css("left",""),r.attr({"icon-type":1==this.Ta.SideBarPos?"right":"left",title:this.Ps.text("ShowSidebar"),"data-value":"false"}),this.Ll||(this.Ll=!0);1==this.Ll&&(this.layout(),this.Ll=void 0)}},updateTocEntries:function(t){this.$f&&this.$f.updateEntries(t)}}),n=t.createClass({$init:function(t,i){this.Xf={isShowClose:!0,overlay:!0,navItems:[],textDirection:"ltr",closeText:"Close",showCallback:void 0,closeCallback:void 0},this.Fl=null,this.Ul=null,this.Yl=null,this.Bl=null,this.Hl=t,this.zl=i,this.zl&&this.zl.Dl(this)},Xl:function(){var t='\t\t\t\t\t<div class="ap-popup"> \t\t\t\t\t\t<div class="ap-popup-content"> \t\t\t\t\t\t</div> \t\t\t\t\t\t<div class="ap-popup-footer"> \t\t\t\t\t\t\t<a href="#" class="ap-popup-close" role="button" title="'+this.Xf.closeText+'"> \t\t\t\t\t\t\t</a> \t\t\t\t\t\t</div> \t\t\t\t\t</div>';this.Fl=i(t),this.Ul=i(".ap-popup-close",this.Fl),this.Yl=i(".ap-popup-content",this.Fl),"rtl"==this.Xf.textDirection&&(i(".ap-popup-content",this.Fl).attr("dir",this.Xf.textDirection).css("text-align","right"),i(".ap-popup-footer",this.Fl).attr("dir",this.Xf.textDirection).css("text-align","left")),this.Yl.append(this.Hl);for(var s=0;s<this.Xf.navItems.length;++s)this.Xf.navItems[s]=i(this.Xf.navItems[s],this.Fl)},Gl:function(){0!=this.Xf.overlay&&(this.Bl=i('<div class="ap-popup-hide ap-popup-overlay"></div>'))},setOptions:function(t){i.extend(this.Xf,t)},getDom:function(){return this.Fl},show:function(t,s){this.Jf=t,this.Vl=i(this.Jf).attr("tabindex"),i(this.Jf).attr("tabindex",1),s||(s={x:0,y:0,width:i(t).outerWidth(),height:i(t).outerHeight()}),this.Xl(),this.Gl(),i(this.Jf).append(this.Fl),0==this.Xf.isShowClose&&i(".ap-popup-footer",this.Fl).hide(),this.Fl.attr("role","dialog"),this.showOverlay(),this.layout(s),this.Xf.showCallback&&this.Xf.showCallback();var e=this,n=this.Xf.navItems,h=-1;this.Xf.isShowClose&&(this.Ul.click(function(){e.close()}),n.push(this.Ul),h=n.length-1,this.Ul.attr("tabindex","0"),this.Ul.focus()),i(this.Jf).bind("mousedown.popup",function(){return i(this).focus(),!1}).bind("keydown.popup",function(t){switch(t.which){case 9:if(n.length>0){t.stopPropagation(),t.preventDefault();var i=!1;if(h>=0&&h<=n.length-1){var s=n[h];0==s.attr("tabindex")&&(i=!0,s.attr("tabindex","-1"),s.blur())}h<0||h>n.length-1?h=0:(h+=i?t.shiftKey?-1:1:0)<0?h=n.length-1:h>n.length-1&&(h=0);var r=n[h];r.attr("tabindex","0"),r.focus()}break;case 27:t.stopPropagation(),t.preventDefault(),e.close();break;case 13:case 32:for(var a=0;a<n.length;++a)if(t.target==n[a][0]){t.stopPropagation();break}}}).focusin(function(){if(!(n.length<=0)){(h<0||h>n.length-1)&&(h=0);var t=n[h];t.get(0)!==document.activeElement&&(t.attr("tabindex","0"),t.focus())}});for(var r=0;r<n.length;++r)n[r].focus(function(t){for(var s=0;s<n.length;++s)if(this==n[s]){h=s;break}i(this).attr("tabindex","0")}).blur(function(t){i(this).attr("tabindex","-1")});i(this.Jf).focus()},showOverlay:function(){0!=this.Xf.overlay&&(i(this.Jf).append(this.Bl),this.Bl.hide().addClass("ap-popup-overlayBG").fadeIn(200))},hideOverlay:function(){if(0!=this.Xf.overlay){var t=this;this.Bl.fadeOut(200,function(){t.Bl.removeClass("ap-popup-overlayBG"),t.Bl.addClass("ap-popup-hide"),t.Bl.remove()})}},close:function(){this.Fl.remove(),this.hideOverlay(),this.Xf.closeCallback&&this.Xf.closeCallback(),i(this.Jf).unbind("keydown.popup").unbind("focus.popup").unbind("mousedown.popup"),i(this.Jf).attr("tabindex",this.Vl),this.zl&&this.zl.Ol(this)},onClose:function(t){this.Xf.closeCallback=t},onShow:function(t){this.Xf.showCallback=t},layout:function(t){this.Bl.width(t.width).height(t.height),this.Bl.css({left:t.x,top:t.y});var s=Math.min(.5*t.width,370),e=i(".ap-popup-content",this.Fl).innerHeight()+i(".ap-popup-footer",this.Fl).innerHeight()+10;this.Fl.css({width:s,height:e});var n=t.x+(t.width-s)/2-20,h=t.y+(t.height-e)/2-20;this.Fl.css({left:n,top:h})},destroy:function(){this.close()}}),h=t.createClass({$init:function(t){this.hh="",this.$l=-1,this.Wl="",this.jl="",this.Ql=0,this.Kl=!0,this._o=t,this.ql=[],this.Jl=!1,this.Wi=!1,this.Fl=null},Zl:function(){var t,i,s=this.ql;for(this.Jl=!0,this.Wi=!1,t=0,i=s.length;t<i;++t)s[t].Jl||(this.Jl=!1),s[t].Wi&&(this.Wi=!0);this.Fl&&this.Fl.attr("data-status",this.Wi?"current":this.Jl?"completed":"incomplete"),this._o&&this._o.Zl()},td:function(){this.Fl&&this.Fl.attr("data-status",this.Wi?"current":this.Jl?"completed":"incomplete"),this._o&&this._o.Zl()},setCompleted:function(t){this.Jl=t,this.td()},setCurrent:function(t){this.Wi=t,this.td()},getChildIndex:function(t){var i,s,e=this.ql;for(i=0,s=e.length;i<s;++i)if(e[i].hh==t.hh)return i;return-1},hasChildren:function(){return this.ql.length>0},isSlide:function(){return this.$l>=0},getExpandIconDom:function(){return i(".ap-toc-entry-icon",this.Fl)}}),r=t.createClass({$init:function(t,s,e){this.zl=t,this.sd=[],this.ed=null,this.nd=null,this.hd=t.tocContainer(),this.Jf=t.Jf,this.Ps=t.Ps,this.ad={},this.al=e;for(var n=0;n<e.length;++n)e[n].thumb&&(this.ad[e[n].id]=e[n].ti);var h='<div class="ap-toc-header"> \t\t\t\t\t\t\t<div class="ap-toc-header-text">'+this.Ps.text("Toc")+'</div> \t\t\t\t\t\t\t<div class="ap-button ap-tool-toc-close"></div> \t\t\t\t\t\t</div> \t\t\t\t\t\t<div class="ap-toc-content-wrapper" style="overflow:auto;"> \t\t\t\t\t\t\t<table class="ap-toc" role="treegrid" aria-readonly="true" tabindex="0" border="0"></table> \t\t\t\t\t\t</div>';for(this.hd.append(h),this.od=i(".ap-toc",this.hd),this.ud=i(".ap-tool-toc-close",this.hd),this.ud.append(t.bo.closepane),this.ud.attr("role","button").attr("title",this.Ps.text("Close")),this.ud.on("click",function(){t.tocVisible()&&i(t).trigger("ui:ap-toc")}),2==t.Ta.TocStyle&&(this.ud.hide(),this.hd.attr("toc-show",!0)),this.fd(s),n=0;n<this.sd.length;++n)this.ld(this.sd[n],0);this.Do(),this.pd();var r=this;this.vd=function(t,i,s,e){i<0||s<0||r.setCurrentEntry(s)},this.bd=function(t,i,s){r.setCompletedEntry(i,s)},i(t).on("ap-progress.toc",this.vd),i(t).on("ap-slideCompleted.toc",this.bd)},updateEntries:function(t){this.wd(),this.sd=[],this.ed=null,this.nd=null,this.od.empty(),this.fd(t);for(var i=0;i<this.sd.length;++i)this.ld(this.sd[i],0);if(void 0!=this.gd){var s=this.gd;this.gd=void 0,this.setCurrentEntry(s)}this.Do(),this.pd()},yd:function(t,i){if(t.s==i.id&&t.f)t.t=i.title;else for(var s=0,e=t.c.length;s<e;++s)this.yd(t.c[s],i)},pd:function(){var t,i,s,e=this.zl;if(e)if(1==e.Ta.ShowMaxTocLevel)for(t=0,i=this.sd.length;t<i;++t)s=this.sd[t],this.kd(s);else for(t=0,i=this.sd.length;t<i;++t)s=this.sd[t],this._d(s)},destroy:function(){var t=i(this.zl);this.ud.off("click"),this.ud=null;var s=[];this.Td(s,null);for(var e=0;e<s.length;++e){var n=s[e];n.isSlide()?n.Fl.off("click"):n.getExpandIconDom().off("click"),n.Fl.off("focusin").off("focusout")}t.off("ap-progress.toc",this.vd).off("ap-slideCompleted.toc",this.bd),this.sd=[],this.ed=null,this.nd=null,this.od.off("focus").off("focusout").off("keydown"),this.hd.remove(),this.hd=null,this.od.remove(),this.od=null},show:function(){if(this.hd){var t=this.hd.attr("sidebar-expand");void 0!=t&&"true"!=t||this.hd.show(),2==this.zl.Ta.TocStyle&&this.hd.attr("toc-show",!0);var s=this;1==this.zl.Ta.TocStyle&&(this.zl.ul(),i(document).unbind("click.TocPane"),setTimeout(function(){i(document).bind("click.TocPane",function(t){i(t.target).closest(".ap-toc-container").is(s.hd)||(i(document).unbind("click.TocPane"),i(s.zl).trigger("ui:ap-toc"))})},100))}},hide:function(){this.hd&&(this.hd.hide(),2==this.zl.Ta.TocStyle&&this.hd.attr("toc-show",!1),1==this.zl.Ta.TocStyle&&i(document).unbind("click.TocPane"))},isShow:function(){if(this.hd&&this.hd.length>0){var t=this.hd.attr("toc-show");return 2!=this.zl.Ta.TocStyle||void 0==t?"none"!=this.hd.css("display"):"true"==t}return!1},xd:function(t){for(var i=0;i<this.sd.length;++i)if(this.sd[i].hh==t.hh)return i;return-1},Td:function(t,i){var s;s=null==i?this.sd:i.ql;for(var e=0;e<s.length;++e)t.push(s[e]),this.Td(t,s[e])},Sd:function(t,i){var s;s=null==i?this.sd:i.ql;for(var e=0;e<s.length;++e){var n=s[e];if(n.$l==t)return n;if(n.hasChildren()){var h=this.Sd(t,n);if(null!=h)return h}}return null},Ed:function(t){this.ed&&(this.ed.setCurrent(!1),this.ed=null),t&&(this.ed=t,this.ed.setCurrent(!0))},Md:function(t){null!=this.nd&&(this.nd.Fl.attr("tabindex","-1"),this.nd=null),t.Fl.attr("tabindex","0"),t.Fl.focus()},Cd:function(t,i){var s,e=i.ql;for(s=0;s<e.length;++s)this.Cd(!1,e[s]);t||i.Fl.hide()},Pd:function(t,i){t||i.Fl.show();var s,e=i.ql;if("true"==i.Fl.attr("aria-expanded")||t)for(s=0;s<e.length;++s)this.Pd(!1,e[s])},kd:function(t){t.Fl.attr("aria-expanded","true"),t.Kl=!0,this.Pd(!0,t)},_d:function(t){t.Fl.attr("aria-expanded","false"),t.Kl=!1,this.Cd(!0,t)},Id:function(t){var i;return null==t._o?(i=this.xd(t))>=0&&i<this.sd.length-1?this.sd[i+1]:null:(i=t._o.getChildIndex(t))>=t._o.ql.length-1?this.Id(t._o):t._o.ql[i+1]},Rd:function(t){if(t.Kl&&t.hasChildren()){var i=t.ql[t.ql.length-1];return this.Rd(i)}return t},Ad:function(){if(null!=this.nd){var t=null;null!=(t=this.nd.Kl&&this.nd.hasChildren()?this.nd.ql[0]:this.Id(this.nd))&&(this.nd.Fl.blur(),this.nd=null,t.Fl.focus())}},Dd:function(){if(null!=this.nd){var t,i=null;if(null==this.nd._o)(t=this.xd(this.nd))>0&&(i=this.Rd(this.sd[t-1]));else i=(t=this.nd._o.getChildIndex(this.nd))>0?this.Rd(this.nd._o.ql[t-1]):this.nd._o;null!=i&&(this.nd.Fl.blur(),this.nd=null,i.Fl.focus())}},Nd:function(t){var i=0;if(t.isSlide())i+=t.Ql;else for(var s=t.ql,e=0;e<s.length;++e)i+=this.Nd(s[e]);return i},Od:function(t,i,s,e){t.Wl=i.t,t.jl=i.n,t.$l=i.s,t.Ld=i.ti,i.d?t.Ql=i.d:t.Ql=0,t.hh=""==s?e+"":s+"-"+e;var n=i.c;if(null!=n&&n.length>0){t.ql.length=0;for(var r=0;r<n.length;++r){var a=n[r],o=new h(t);this.Od(o,a,t.hh,r+1),t.ql.push(o)}}},fd:function(t){this.sd.length=0;for(var i=this.al,s=0,e=i.length||0;s<e;++s)for(var n=0,r=t.length;n<r;++n)this.yd(t[n],i[s]);for(s=0;s<t.length;++s){var a=t[s],o=new h(null);this.sd.push(o),this.Od(o,a,"",s+1)}},ld:function(s,e){var n,h,r=e+1,a=10*r,o=this.zl,u=o.bo,c=o.Ta.TocShowStateIcons,f=o.Ta.TocShowThumbnails,l=o.Ta.TocShowDuration;h='<tr class="ap-toc-entry" role="row" tabindex="-1" aria-level="'+r+'" data-status="incomplete"',s.hasChildren()?h+=' aria-expanded="'+s.Kl+'">':h+=">",h+="<td",!s.hasChildren()&&e>0&&(a+=10),h+=' style="padding-left: '+a+'px; width: 100%" ><div class="ap-toc-entry-content">',s.isSlide()?f&&void 0!=(n=this.ad[s.$l])&&(h+='<img class="ap-toc-entry-thumbnail" src="'+(o.Xf.resourceLocation+o.Xf.fileNamePrefix+"thumb_"+n+".jpg")+'"/>'):h+='<div class="ap-toc-entry-icon">'+u.collapsed+u.expanded+"</div>",h+='<div class="ap-toc-entry-content-text">',s.jl&&s.jl.length>0&&(h+='<div style="display:table-cell;">'+s.jl+"&nbsp;</div>"),h+='<div style="display:table-cell;">'+s.Wl+"</div>",h+="</div>",h+="</div></td>",c&&(h+='<td><div class="ap-toc-entry-status-icon">'+u.current+u.completed+"</div></td>"),l&&(h+='<td class="ap-toc-entry-duration">'+t.formatMSString(this.Nd(s))+"</td>"),h+="</tr>",s.Fl=i(h),this.od.append(s.Fl);for(var d=0;d<s.ql.length;++d)this.ld(s.ql[d],r)},Do:function(){var t=[];this.Td(t,null);for(var s=this,e=0;e<t.length;++e){!function(t){t.isSlide()?t.Fl.on("click",function(){i(s.zl).trigger("ui:ap-showSlide",[t.$l])}):t.getExpandIconDom().on("click",function(){t.Kl?s._d(t):s.kd(t)}),t.Fl.on("focusin",function(){s.od.attr("tabindex",-1),t.Fl.attr("tabindex","0"),s.nd=t}),t.Fl.on("focusout",function(){t.Fl.attr("tabindex","-1"),s.nd=null})}(t[e])}this.od.on("focus",function(){var t=[];s.Td(t),t.length>0&&(s.Md(t[0]),s.od.attr("tabindex",-1))}).on("focusout",function(){null==s.nd&&s.od.attr("tabindex",0)}).on("keydown",function(t){switch(t.which){case 13:if(null!=s.nd)return i(s.zl).trigger("ui:ap-showSlide",[s.nd.$l]),!1;break;case 39:if(null!=s.nd)return 0==s.nd.Kl&&s.nd.hasChildren()?s.kd(s.nd):s.nd.hasChildren()&&s.Ad(),!1;break;case 37:if(null!=s.nd)return s.nd.Kl&&s.nd.hasChildren()?s._d(s.nd):null!=s.nd._o&&s.Md(s.nd._o),!1;break;case 40:if(null!=s.nd)return s.Ad(),!1;break;case 38:if(null!=s.nd)return s.Dd(),!1}})},wd:function(){var t=[];this.Td(t,null);for(var i=0;i<t.length;++i){var s=t[i];s.isSlide()?s.Fl.off("click"):s.getExpandIconDom().off("click"),s.Fl.off("focusin").off("focusout")}this.sd=[],this.ed=null,this.nd=null,this.od.off("focus").off("focusout").off("keydown")},setCompletedEntry:function(t,i){var s=this.Sd(t);null!=s&&s.setCompleted(i)},setCurrentEntry:function(t){if(void 0===this.gd||this.gd!==t){var i=this.Sd(t);null!=i&&this.Ed(i);var s=this.zl;this.gd=t,s.Ta.AutoScroll&&this.scrollToCurrentSlide()}},scrollToCurrentSlide:function(){if(null!=this.ed){var t=i(this.Jf),s=i(".ap-toc-content-wrapper",t);s[0].scrollTop+s[0].offsetHeight<this.ed.Fl[0].offsetTop+this.ed.Fl[0].offsetHeight?s[0].scrollTop=this.ed.Fl[0].offsetTop+this.ed.Fl[0].offsetHeight-s[0].clientHeight:this.ed.Fl[0].offsetTop<s[0].scrollTop&&(s[0].scrollTop=this.ed.Fl[0].offsetTop)}}}),a=t.createClass({$init:function(t,s){this.zl=t,this.Fd=-1,this.Ud=t.resourcesContainer(),this.Ud.hide(),this.Jf=t.Jf,this.Yd=s;var e='<div class="ap-resources-pane-header">'+s[s.length-1]+'</div>\t\t\t\t\t\t<div class="ap-resources-pane-content"> \t\t\t\t\t\t\t<ol class="ap-resources-list"></ol> \t\t\t\t\t\t</div>';this.Ud.append(e),this.Bd=i(".ap-resources-list",this.Ud);for(var n=0;n<s.length-1;++n)this.ld(s[n]);this.sd=i("li",this.Bd).toArray(),this.Do()},destroy:function(){for(var t=0;t<this.sd.length;++t)i(this.sd[t]).off("focusin").off("focusout");this.Ud.off("keydown"),this.Ud.remove(),this.Ud=null,this.sd=[]},Do:function(){var t=this,s=this.Ud,e=this.sd;s.attr("tabinex",0),s.on("keydown",function(s){var n;return 13!=s.which&&32!=s.which||s.altKey||s.shiftKey||s.ctrlKey?27==s.which?(t.hide(),!1):9==s.which?(t.hide(),!1):38==s.which?((n=e[t.Fd])&&i(n).attr("tabindex",-1),0==t.Fd?t.Fd=e.length-1:t.Fd--,n=e[t.Fd],i(n).focus().attr("tabindex",0),!1):40==s.which?((n=e[t.Fd])&&i(n).attr("tabindex",-1),t.Fd==e.length-1?t.Fd=0:t.Fd++,n=e[t.Fd],i(n).focus().attr("tabindex",0),!1):void 0:((n=e[t.Fd])&&i("a",i(n))[0].click(),!1)});for(var n=0;n<this.sd.length;++n)i(this.sd[n]).on("focusin",function(){s.attr("tabindex",-1),i(this).attr("tabindex",0)}).on("focusout",function(){i(this).attr("tabindex",-1)})},show:function(){this.Hd="click.ResourcesPane";var t=this;i(document).bind(t.Hd,function(s){i(s.target).closest(".ap-resources-container").is(t.Ud)||(t.hide(),i(document).unbind(t.Hd))}),t.Ud.show(),t.Ud.attr("tabindex",-1),this.Fd<0&&(this.Fd=0);var s=this.sd[this.Fd];s?i(s).attr("tabindex",0).focus():t.Ud.attr("tabindex",0).focus()},hide:function(){this.Hd&&i(document).off(this.Hd),this.Ud&&this.Ud.hide()},isShow:function(){return this.Ud&&this.Ud.length>0&&"none"!=this.Ud.css("display")},ld:function(t){if(!(t.length<=1)){var i='<li><a href="';2==t.length?i+=t[1]:(i+=this.zl.Xf.resourceLocation+this.zl.Xf.fileNamePrefix+"res_"+t[1]+"."+t[2],i+='" download="'+t[0]+"."+t[2]),i+='" target="_blank">'+t[0],i+="</a></li>",this.Bd.append(i)}}}),o=t.createClass({$init:function(t,s,e){this.bo=s,this._o=null,this.zd=[],this.Xd=null,this.Fl=i('<div id="'+t+'" class="ap-menu" tabindex="0" role="menu"></div>'),this.Fl.css("transform","translateZ(0px)"),this.Fl.hide(),this.Fd=-1,this.Do(),this.Hd=null,this.Gd=null,this.zl=e,this.zl&&this.zl.Dl(this)},id:function(){return this.Fl[0].id},destroy:function(){null!=this.Hd&&(i(document).unbind(this.Hd),this.Hd=null),this.Vd&&(this.Vd(),this.Vd=null);for(var t=0;t<this.zd.length;++t)this.zd[t].submenu&&this.zd[t].submenu.destroy(),this.zd[t].dom.off("click").off("focusin").off("focusout").off("keydown");this.zd=[],this.Fl&&(this.Fl.off("keydown"),this.Fl.remove(),this.Fl=null),this.bo=null,this.zl&&this.zl.Ol(this)},Do:function(){var t=this;this.Fl.on("keydown",function(i){var s,e=t.zd;return 13!=i.which&&32!=i.which||i.altKey||i.shiftKey||i.ctrlKey?27==i.which?(t._o?(t.hide(),t._o.show(t._o.Gd,!0,t._o.Vd)):t.destroy(),!1):9==i.which?(t._o?(t.hide(),t._o.show(t._o.Gd,!0,t._o.Vd)):t.destroy(),!1):37==i.which?(t._o&&(t.hide(),t._o.show(t._o.Gd,!0,t._o.Vd)),!1):39==i.which?((s=e[t.Fd])&&s.submenu&&s.dom.trigger("click"),!1):38==i.which?((s=e[t.Fd])&&s.dom.attr("tabindex",-1),0==t.Fd?t.Fd=e.length-1:t.Fd--,(s=e[t.Fd].dom).focus(),s.attr("tabindex",0),!1):40==i.which?((s=e[t.Fd])&&s.dom.attr("tabindex",-1),t.Fd==e.length-1?t.Fd=0:t.Fd++,(s=e[t.Fd].dom).focus(),s.attr("tabindex",0),!1):void 0:((s=e[t.Fd])&&s.dom.trigger("click"),!1)})},$d:function(){for(var t=this;t._o;)t=t._o;return t},Wd:function(t,i,s,e){var n=this;t.focusin(function(){n.Fl.attr("tabindex",-1),t.attr("tabindex",0)}).focusout(function(){t.attr("tabindex",-1)}),this.Fl.append(t),this.zd.push({dom:t,id:i,state:s,submenu:e})},appendTo:function(t){this.Jf=t,this.Jf.append(this.Fl);for(var i=0;i<this.zd.length;++i)this.zd[i].submenu&&this.zd[i].submenu.appendTo(t)},attachEventHanlders:function(t){t(this.Fl.get(0));for(var i=0;i<this.zd.length;++i)this.zd[i].submenu&&t(this.zd[i].submenu.Fl.get(0))},detachEventHandlers:function(t){t(this.Fl.get(0));for(var i=0;i<this.zd.length;++i)this.zd[i].submenu&&t(this.zd[i].submenu.Fl.get(0))},jd:function(t){if(this.Fl&&this.Fl.has(t).length>0)return this;for(var i=0;i<this.zd.length;++i)if(this.zd[i].submenu){var s=this.zd[i].submenu.jd(t);if(s)return s}return null},show:function(t,s,e){this.Gd=t;var n,h,r,a,o,u,c,f,l=i(t),d=this.Fl,p=this.Jf;n=d.outerWidth(!0),h=d.outerHeight(!0),r=l.offset().left+l.width()/2-n/2;for(var v=0;v<=1;++v)o=l.offset().top-(p.offset().top+h+10),u=p.offset().top+p.height()-(l.offset().top+l.height()+h+10),c=p.offset().left+p.width()-(l.offset().left+l.width()+n+10),f=l.offset().left-(p.offset().left+n+10),o<0&&u<0&&c<0&&f<0&&(h=Math.max(o,u)-10);if(o>=0?(a=l.offset().top-p.offset().top-h-10,r=Math.max(0,Math.min(r,p.width()-n-10))):u>=0?(a=l.offset().top+l.height()+10-p.offset().top,r=Math.max(0,Math.min(r,p.width()-n-10))):c>=0?(a=0,r=l.offset().left+l.width()+10-p.offset().left):(a=0,r=l.offset().left-p.offset().left-n-10),d.css({left:r,top:a}),d.show(),!this._o){var m=this;m.Hd="click.RLMenu"+this.id(),i(document).bind(m.Hd,function(e){var n=i(e.target).closest(".ap-menu-item");if("menuitemcheckbox"!=n.attr("role")){var h=m.jd(e.target);if(n.hasClass("ap-tool-menu-back")&&h&&h._o)return h.hide(),void h._o.show(t,s,h._o.Vd);if("true"==n.attr("aria-haspopup")&&h)for(var r=0;r<h.zd.length;++r)if(h.zd[r].dom.get(0)==n.get(0))return h.hide(),void h.zd[r].submenu.show(t,s);m.destroy()}})}if(-1==this.Fd&&(this.Fd=0),s){d.attr("tabindex",-1);var b=this.zd[this.Fd];b?(b.dom.attr("tabindex",0),b.dom.focus()):(d.attr("tabindex",0),d.focus())}else d.attr("tabindex",0),d.focus();this.Vd=e},hide:function(){this.Fl.attr("tabindex",-1),this.Fl.hide()},isShown:function(){return"none"!=this.Fl.css("display")},addMenuItem:function(t,s){var e=i('<div class="ap-menu-item '+t+'" role="menuitem" tabindex="-1" > \t\t\t\t\t\t\t<div class="ap-menu-item-label">'+s+'</div> \t\t\t\t\t\t\t<div class="ap-menu-item-content"></div> \t\t\t\t\t\t</div>');return this.Wd(e,t,!0),e},addToggleMenuItem:function(t,s,e){var n=i('<div class="ap-menu-item '+t+'" role="menuitemcheckbox" aria-checked="'+(1==e?"true":"false")+'" tabindex="-1" > \t\t\t\t\t\t\t<div class="ap-menu-item-label">'+s+'</div> \t\t\t\t\t\t\t<div class="ap-menu-item-toggle-container"> \t\t\t\t\t\t\t\t<div class="ap-menu-item-toggle"> \t\t\t\t\t\t\t\t\t<div class="ap-menu-item-toggle-bar"></div>\t\t\t\t\t\t\t\t\t<div class="ap-menu-item-toggle-button"></div>\t\t\t\t\t\t\t\t</div> \t\t\t\t\t\t\t</div> \t\t\t\t\t\t</div>');return this.Wd(n,t,e),n},addRadioMenuItem:function(t,s,e){var n=this.bo,h=i('<div class="ap-menu-item '+t+'" role="menuitemradio" tabindex="-1" aria-checked="'+(e?"true":"false")+'"> \t\t\t\t\t\t\t<div class="ap-menu-item-icon">'+n.check+'</div> \t\t\t\t\t\t\t<div class="ap-menu-item-label">'+s+"</div> \t\t\t\t\t\t</div>");return this.Wd(h),h},addSubMenuItem:function(t,s,e){var n=this.bo,h=i('<div class="ap-menu-item '+t+'" role="menuitem" tabindex="-1" aria-haspopup="true"> \t\t\t\t\t\t<div class="ap-menu-item-label">'+s+'</div> \t\t\t\t\t\t<div class="ap-menu-item-icon">'+n.openmenu+"</div> \t\t\t\t\t</div>");return e._o=this,this.Wd(h,t,!0,e),h},addMenuHeaderItem:function(t){var s=this.bo,e="ap-tool-menu-back",n=i('<div class="ap-menu-item '+e+'" role="menuitem" tabindex="-1" > \t\t\t\t\t\t\t<div class="ap-menu-item-icon">'+s.closemenu+'</div> \t\t\t\t\t\t\t<div class="ap-menu-item-label">'+t+"</div> \t\t\t\t\t\t</div>");return this.Wd(n,e,!0),n}}),u=t.createClass({$init:function(s,e,n){this.Qd=n.scale||1,this.Kd=n.min||0,this.qd=n.max||100,this.Jd=n.value||0,this.Wl=n.title||"",this.Zd=n.isRTL||!1,this.al=n.slideInfos||[],this.tp=n.followMouse||!1,this.ip=n.thumbnailPrefixPath,this.ep=this.al.length>0,this.np=-1,this.Fl=s,this.Ta=e,this.Fl.append('<div class="ap-slider-track"><div class="ap-slider-track-lower"></div></div>\t\t\t\t\t\t\t  <div class="ap-slider-thumb-containment"></div> \t\t\t\t\t\t\t  <div class="ap-slider-thumb-outer" style="position:absolute;height:100%;"><div class="ap-slider-thumb"></div></div>\t\t\t\t\t\t\t  <div class="ap-slider-tooltip"></div>'),this.hp=i(".ap-slider-track",this.Fl),this.rp=i(".ap-slider-track-lower",this.Fl),this.ap=i(".ap-slider-thumb-outer",this.Fl),this.op=i(".ap-slider-tooltip",this.Fl),this.up=i(".ap-slider-thumb-containment",this.Fl),this.fp=i(".ap-slider-thumb",this.Fl).outerWidth()/2,this.ap.width(2*this.fp),this.up.css({position:"absolute",left:-this.fp+"px",top:"0px",width:"calc(100% + "+2*this.fp+"px)",height:"100%"}),this.Fl.attr({"aria-valuemin":this.Kd,"aria-valuemax":this.qd,"aria-valuenow":this.Jd,title:this.Wl});for(var h=0,r=0,a=this.al.length;r<a-1;++r)if(h+=this.al[r].duration,e.ShowSegments){var o=i('<div class="ap-slider-marker"></div>'),u=h/(this.qd-this.Kd)*100;o.css("left","calc("+u+"% - "+o.width()/2+"px)"),this.hp.append(o)}var c=this,f=t.browser.mobile;f||this.Fl.mouseenter(function(t){c.ep&&c.op.show()}).mousemove(function(t){if(c.ep){var s=t.pageX-i(this).offset().left;c.dp(s)}}).mouseleave(function(t){c.ep&&c.op.hide()}),this.ap.css("touchAction","none").draggable({containment:c.up,axis:"x",start:function(){c.No=!0,f&&c.ep&&c.op.show()},drag:function(){var t=parseInt(i(this).css("left"))+c.fp;c.pp(t),f&&c.ep&&c.dp(t)},stop:function(){c.No=!1;var t=parseInt(i(this).css("left"))+c.fp;c.pp(t,!0),f&&c.ep&&c.op.hide()}}).mousedown(function(t){return s.focus(),t.stopPropagation(),!0}),this.Fl.on("mousedown",function(t){return c.pp(t.pageX-i(this).offset().left,!0),t.stopPropagation(),!0}).on("keydown",function(t){var i=c.vp(c.Jd);if(37==t.which)i+=-5;else if(39==t.which)i+=5;else if(36==t.which)i=0;else{if(35!=t.which)return!0;i=c.getWidth()}c.pp(i,!0),t.stopPropagation(),t.preventDefault()})},destroy:function(){this.ap.off("mouseenter").off("mouseleave").off("mousedown").draggable("destroy"),this.ap=null,this.Fl.off("mousedown").off("keydown"),this.Fl.empty(),this.Fl=null},dp:function(t){var s,e=this.Ps,n=this.mp,h=this.bp(t),r=0,a=0;for(a=0,s=this.al.length||0;a<s&&!(h<=(r+=this.al[a].duration));++a);if(!(a>=this.al.length)){if(a!=this.np){this.np=a;var o=this.al[a].title,u="";u+='<div class="ap-slider-tooltip-timestamp">'+AtomiAP.formatMSString(h)+"</div>",this.ip&&this.al[a].thumb&&(u+='<img src="'+this.ip+"thumb_"+this.al[a].ti+'.jpg" />'),u+="<div>"+(e?e.text("Slide"):"Slide")+" "+(a+1)+"/"+this.al.length+"</div>",u+="<div>"+o+"</div>",this.op.html(e?e.number(u,n):u)}else i(".ap-slider-tooltip-timestamp",this.op).html(AtomiAP.formatMSString(h));this.op.css({left:0,width:"auto"});var c=this.op.width(),f=this.op.height();this.op.css({left:t-c/2,top:-f-40,width:c})}},wp:function(t){var i=t/this.getWidth()*100;this.ap.css("left","calc("+i+"% - "+this.fp+"px)"),this.rp.css("width",i+"%")},pp:function(t,s){var e=this.getWidth();t<0?t=0:t>e&&(t=e);var n=this.bp(t),h=!1;isNaN(n)||n!=this.Jd&&(s?i(this).trigger("valueChanged",[n]):i(this).trigger("valueChanging",[n]),this.Jd=n,this.Fl.attr("aria-valuenow",this.Jd),h=!0),this.No||h||(t=this.vp(this.Jd)||0),this.wp(t)},bp:function(t){var i=this.getWidth();"rtl"==this.Zd&&(t=i-t);var s=Math.round(this.Kd+t*(this.qd-this.Kd)/i);return s<this.Kd?s=this.Kd:s>this.qd&&(s=this.qd),s},vp:function(t){var i=this.getWidth(),s=Math.round((t-this.Kd)*i/(this.qd-this.Kd));return this.Zd&&(s=i-s),s<0?s=0:s>i&&(s=i),s},setTooltip:function(t){t!=this.gp&&(this.gp=t,this.op.html(t))},showTooltip:function(t){void 0===t&&(t=!0),t?this.op.show():this.op.hide()},enableTooltip:function(t){this.ep=t},getValue:function(){return this.Jd},setValue:function(t){if(this.No&&!this.tp)return!1;t<this.Kd?t=this.Kd:t>this.qd&&(t=this.qd),this.Jd=t,this.Fl.attr("aria-valuenow",this.Jd);var i=this.vp(t)||0;return this.wp(i),!0},setTitle:function(t){this.Fl.attr("title",t)},getMin:function(){return this.Kd},setMin:function(t){this.Kd=t,this.Fl.attr("aria-valuemin",this.Kd)},getMax:function(){return this.qd},setMax:function(t){this.qd=t,this.Fl.attr("aria-valuemax",this.qd)},getWidth:function(){return this.Fl.width()||.001},setWidth:function(t){this.Fl.width(t)}}),c=t.createClass({$init:function(t,s,e){this.zl=t,this.yp=-1,this.kp=!1;var n=t.container();this.Fl=i(s),e?this.Fl.insertBefore(i(".ap-content-area",n)):this.Fl.appendTo(n),this.Fl.attr("unselectable","on").css("user-select","none").on("selectstart",!1),this._p=i(".ap-button,.ap-slider",this.Fl).toArray(),this.Tp(),this.Fl.show();var h=this;this.xp=function(t){h.Sp()},i(this.zl).on("ui:ap-layout",this.xp)},destroy:function(){i(this.zl).off("ui:ap-layout",this.xp),i.each(this._p,function(t,s){i(s).off("focusin").off("focusout")}),this.Fl.off("mousedown").off("keydown").off("focus").off("focusout"),this.Fl.remove(),this.Fl=null},Ep:function(t){var s=i(t);return"none"!=s.css("display")&&"false"!=s.attr("data-enabled")},Tp:function(){var t=this;this.Fl.on("mousedown",function(i){for(var s=0;s<t._p.length;++s)i.target==t._p[s]&&(t.yp=s);return i.stopPropagation(),!0}).on("keydown",function(s){if(9==s.which){var e,n=t._p,h=!s.shiftKey,r=!0,a=-1,o=t.yp,u=n.length-1;do{if(h?++o:--o,o<0||o>u){a=h?0:u;break}if(t.Ep(n[o])){a=o,r=!1;break}}while(o>=0&&o<=u);if(r)return t.yp=a,!0;s.stopPropagation(),s.preventDefault(),t.yp>=0&&t.yp<=u&&(e=t._p[t.yp],i(e).attr("tabindex","-1")),a>=0&&a<=u&&(t.yp=a,e=t._p[t.yp],i(e).attr("tabindex","0").focus())}else if(32==s.which||13==s.which){var c=i(s.target);"button"==c.attr("role")&&(s.stopPropagation(),c.trigger("click",[s.which]))}});var s=function(){var s=0;return i.each(t._p,function(i,e){if(t.Ep(e))return s=i,!1}),s};this.Fl.on("focus",function(e){var n=t.yp;if((n<0||n>=t._p.length||!t.Ep(t._p[n]))&&(t.yp=s(),n=t.yp),t.Fl.attr("tabindex","-1"),n>=0&&n<t._p.length){var h=t._p[n];return i(h).attr("tabindex","0").focus(),!1}return!0}),this.Fl.on("focusout",function(){t.kp||t.Fl.attr("tabindex","0")});for(var e=0;e<this._p.length;++e)!function(e,n){i(e).on("focusin",function(h){t.Ep(e)?t.yp=n:t.yp=s(),t.Fl.attr("tabindex","-1"),t.kp=!0,i(this).attr("tabindex","0")}).on("focusout",function(s){t.kp=!1,i(this).attr("tabindex","-1")})}(this._p[e],e)},Sp:function(){var t=i("[data-priority]",this.Fl),s=i(".ap-tool-setting",this.Fl),e=parseInt(s.attr("data-priority"));t.each(function(t){var s=i(this);"false"!=s.attr("data-enabled")&&s.show()}),s.hide();for(var n,h,r,a,o,u=Number.MAX_SAFE_INTEGER||1e10;r=this.Fl.outerWidth(),n=!1,h=u,t.each(function(t){var s=i(this);return"false"==s.attr("data-enabled")||("none"==s.css("display")||(parseInt(s.attr("data-priority"))<h&&(h=parseInt(s.attr("data-priority"))),s.position().top,a=s.position().left,o=s.outerWidth(),a+o>r?(n=!0,!0):void 0))}),n&&h!=u;)e>h&&s.show(),t.each(function(t){var s=i(this);return"false"==s.attr("data-enabled")||("none"==s.css("display")||void(parseInt(s.attr("data-priority"))<=h&&s.hide()))})},show:function(){this.Fl.css("display","")},hide:function(){this.Fl.hide()},visible:function(){return this.Fl&&"none"!==this.Fl[0].style.display},isAutoHide:function(){return this.Fl.hasClass("ap-auto-hide")},autoHide:function(t){0==arguments.length||t?this.Fl.addClass("ap-auto-hide"):this.Fl.removeClass("ap-auto-hide")}}),f=t.createClass({$init:function(t){this.Fl=i('<div class="ap-floating-button"><div></div></div>');var s=this,e=!1;this.Fl.css("touchAction","none").draggable({containment:t}).mousedown(function(t){e=!1}).mousemove(function(t){e=!0}).mouseup(function(){e||s.Rf&&s.Rf(),e=!1})},appendTo:function(t){t.append(this.Fl)},show:function(){this.Fl.css("display","")},hide:function(){this.Fl.hide()},onClick:function(t){this.Rf=t}});t.RLPopup=n,t.RLToolbar=c,t.RLToc=r,t.UI=e}(window.AtomiAP=window.AtomiAP||{},window.AtomiAP.$||jQuery);