/*!
 * ActivePresenter HTML5 Output File
 * Copyright (c) Atomi Systems, Inc. All rights reserved.
 * https://atomisystems.com/activepresenter/
 * Version: 8.5.8
 * Date: 2022.07.28
 */
/*!
 * jQuery JavaScript Library v3.6.0
 * https://jquery.com/
 *
 * Includes Sizzle.js
 * https://sizzlejs.com/
 *
 * Copyright OpenJS Foundation and other contributors
 * Released under the MIT license
 * https://jquery.org/license
 *
 * Date: 2021-03-02T17:08Z
 */
!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=Object.getPrototypeOf,o=n.slice,r=n.flat?function(e){return n.flat.call(e)}:function(e){return n.concat.apply([],e)},s=n.push,a=n.indexOf,l={},u=l.toString,c=l.hasOwnProperty,p=c.toString,f=p.call(Object),h={},d=function(e){return"function"==typeof e&&"number"!=typeof e.nodeType&&"function"!=typeof e.item},g=function(e){return null!=e&&e===e.window},m=e.document,v={type:!0,src:!0,nonce:!0,noModule:!0};function y(e,t,n){var i,o,r=(n=n||m).createElement("script");if(r.text=e,t)for(i in v)(o=t[i]||t.getAttribute&&t.getAttribute(i))&&r.setAttribute(i,o);n.head.appendChild(r).parentNode.removeChild(r)}function b(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?l[u.call(e)]||"object":typeof e}var x="3.6.0",w=function(e,t){return new w.fn.init(e,t)};function C(e){var t=!!e&&"length"in e&&e.length,n=b(e);return!d(e)&&!g(e)&&("array"===n||0===t||"number"==typeof t&&t>0&&t-1 in e)}w.fn=w.prototype={jquery:x,constructor:w,length:0,toArray:function(){return o.call(this)},get:function(e){return null==e?o.call(this):e<0?this[e+this.length]:this[e]},pushStack:function(e){var t=w.merge(this.constructor(),e);return t.prevObject=this,t},each:function(e){return w.each(this,e)},map:function(e){return this.pushStack(w.map(this,function(t,n){return e.call(t,n,t)}))},slice:function(){return this.pushStack(o.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},even:function(){return this.pushStack(w.grep(this,function(e,t){return(t+1)%2}))},odd:function(){return this.pushStack(w.grep(this,function(e,t){return t%2}))},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:s,sort:n.sort,splice:n.splice},w.extend=w.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||d(s)||(s={}),a===l&&(s=this,a--);a<l;a++)if(null!=(e=arguments[a]))for(t in e)i=e[t],"__proto__"!==t&&s!==i&&(u&&i&&(w.isPlainObject(i)||(o=Array.isArray(i)))?(n=s[t],r=o&&!Array.isArray(n)?[]:o||w.isPlainObject(n)?n:{},o=!1,s[t]=w.extend(u,r,i)):void 0!==i&&(s[t]=i));return s},w.extend({expando:"jQuery"+(x+Math.random()).replace(/\D/g,""),isReady:!0,error:function(e){throw new Error(e)},noop:function(){},isPlainObject:function(e){var t,n;return!(!e||"[object Object]"!==u.call(e))&&(!(t=i(e))||"function"==typeof(n=c.call(t,"constructor")&&t.constructor)&&p.call(n)===f)},isEmptyObject:function(e){var t;for(t in e)return!1;return!0},globalEval:function(e,t,n){y(e,{nonce:t&&t.nonce},n)},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},makeArray:function(e,t){var n=t||[];return null!=e&&(C(Object(e))?w.merge(n,"string"==typeof e?[e]:e):s.call(n,e)),n},inArray:function(e,t,n){return null==t?-1:a.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,s=0,a=[];if(C(e))for(i=e.length;s<i;s++)null!=(o=t(e[s],s,n))&&a.push(o);else for(s in e)null!=(o=t(e[s],s,n))&&a.push(o);return r(a)},guid:1,support:h}),"function"==typeof Symbol&&(w.fn[Symbol.iterator]=n[Symbol.iterator]),w.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(e,t){l["[object "+t+"]"]=t.toLowerCase()});var _=
/*!
 * Sizzle CSS Selector Engine v2.3.6
 * https://sizzlejs.com/
 *
 * Copyright JS Foundation and other contributors
 * Released under the MIT license
 * https://js.foundation/
 *
 * Date: 2021-02-16
 */
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=le(),E=le(),S=le(),k=le(),D=function(e,t){return e===t&&(p=!0),0},P={}.hasOwnProperty,N=[],A=N.pop,j=N.push,M=N.push,H=N.slice,L=function(e,t){for(var n=0,i=e.length;n<i;n++)if(e[n]===t)return n;return-1},O="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",I="[\\x20\\t\\r\\n\\f]",q="(?:\\\\[\\da-fA-F]{1,6}"+I+"?|\\\\[^\\r\\n\\f]|[\\w-]|[^\0-\\x7f])+",R="\\["+I+"*("+q+")(?:"+I+"*([*^$|!~]?=)"+I+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+q+"))|)"+I+"*\\]",F=":("+q+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+R+")*)|.*)\\)|)",W=new RegExp(I+"+","g"),B=new RegExp("^"+I+"+|((?:^|[^\\\\])(?:\\\\.)*)"+I+"+$","g"),z=new RegExp("^"+I+"*,"+I+"*"),X=new RegExp("^"+I+"*([>+~]|"+I+")"+I+"*"),$=new RegExp(I+"|>"),U=new RegExp(F),Y=new RegExp("^"+q+"$"),G={ID:new RegExp("^#("+q+")"),CLASS:new RegExp("^\\.("+q+")"),TAG:new RegExp("^("+q+"|[*])"),ATTR:new RegExp("^"+R),PSEUDO:new RegExp("^"+F),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+I+"*(even|odd|(([+-]|)(\\d*)n|)"+I+"*(?:([+-]|)"+I+"*(\\d+)|))"+I+"*\\)|)","i"),bool:new RegExp("^(?:"+O+")$","i"),needsContext:new RegExp("^"+I+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+I+"*((?:-\\d)?\\d*)"+I+"*\\)|)(?=[^-]|$)","i")},V=/HTML$/i,Q=/^(?:input|select|textarea|button)$/i,K=/^h\d$/i,J=/^[^{]+\{\s*\[native \w/,Z=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,ee=/[+~]/,te=new RegExp("\\\\[\\da-fA-F]{1,6}"+I+"?|\\\\([^\\r\\n\\f])","g"),ne=function(e,t){var n="0x"+e.slice(1)-65536;return t||(n<0?String.fromCharCode(n+65536):String.fromCharCode(n>>10|55296,1023&n|56320))},ie=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,oe=function(e,t){return t?"\0"===e?"�":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16)+" ":"\\"+e},re=function(){f()},se=xe(function(e){return!0===e.disabled&&"fieldset"===e.nodeName.toLowerCase()},{dir:"parentNode",next:"legend"});try{M.apply(N=H.call(w.childNodes),w.childNodes),N[w.childNodes.length].nodeType}catch(e){M={apply:N.length?function(e,t){j.apply(e,H.call(t))}:function(e,t){for(var n=e.length,i=0;e[n++]=t[i++];);e.length=n-1}}}function ae(e,t,i,o){var r,a,u,c,p,d,v,y=t&&t.ownerDocument,w=t?t.nodeType:9;if(i=i||[],"string"!=typeof e||!e||1!==w&&9!==w&&11!==w)return i;if(!o&&(f(t),t=t||h,g)){if(11!==w&&(p=Z.exec(e)))if(r=p[1]){if(9===w){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))&&(1!==w||"object"!==t.nodeName.toLowerCase())){if(v=e,y=t,1===w&&($.test(e)||X.test(e))){for((y=ee.test(e)&&ve(t.parentNode)||t)===t&&n.scope||((c=t.getAttribute("id"))?c=c.replace(ie,oe):t.setAttribute("id",c=x)),a=(d=s(e)).length;a--;)d[a]=(c?"#"+c:":scope")+" "+be(d[a]);v=d.join(",")}try{return M.apply(i,y.querySelectorAll(v)),i}catch(t){k(e,!0)}finally{c===x&&t.removeAttribute("id")}}}return l(e.replace(B,"$1"),t,i,o)}function le(){var e=[];return function t(n,o){return e.push(n+" ")>i.cacheLength&&delete t[e.shift()],t[n+" "]=o}}function ue(e){return e[x]=!0,e}function ce(e){var t=h.createElement("fieldset");try{return!!e(t)}catch(e){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function pe(e,t){for(var n=e.split("|"),o=n.length;o--;)i.attrHandle[n[o]]=t}function fe(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 he(e){return function(t){return"input"===t.nodeName.toLowerCase()&&t.type===e}}function de(e){return function(t){var n=t.nodeName.toLowerCase();return("input"===n||"button"===n)&&t.type===e}}function ge(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&&se(t)===e:t.disabled===e:"label"in t&&t.disabled===e}}function me(e){return ue(function(t){return t=+t,ue(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 ve(e){return e&&void 0!==e.getElementsByTagName&&e}n=ae.support={},r=ae.isXML=function(e){var t=e&&e.namespaceURI,n=e&&(e.ownerDocument||e).documentElement;return!V.test(t||n&&n.nodeName||"HTML")},f=ae.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",re,!1):o.attachEvent&&o.attachEvent("onunload",re)),n.scope=ce(function(e){return d.appendChild(e).appendChild(h.createElement("div")),void 0!==e.querySelectorAll&&!e.querySelectorAll(":scope fieldset div").length}),n.attributes=ce(function(e){return e.className="i",!e.getAttribute("className")}),n.getElementsByTagName=ce(function(e){return e.appendChild(h.createComment("")),!e.getElementsByTagName("*").length}),n.getElementsByClassName=J.test(h.getElementsByClassName),n.getById=ce(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(te,ne);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(te,ne);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=J.test(h.querySelectorAll))&&(ce(function(e){var t;d.appendChild(e).innerHTML="<a id='"+x+"'></a><select id='"+x+"-\r\\' msallowcapture=''><option selected=''></option></select>",e.querySelectorAll("[msallowcapture^='']").length&&m.push("[*^$]="+I+"*(?:''|\"\")"),e.querySelectorAll("[selected]").length||m.push("\\["+I+"*(?:value|"+O+")"),e.querySelectorAll("[id~="+x+"-]").length||m.push("~="),(t=h.createElement("input")).setAttribute("name",""),e.appendChild(t),e.querySelectorAll("[name='']").length||m.push("\\["+I+"*name"+I+"*="+I+"*(?:''|\"\")"),e.querySelectorAll(":checked").length||m.push(":checked"),e.querySelectorAll("a#"+x+"+*").length||m.push(".#.+[+~]"),e.querySelectorAll("\\\f"),m.push("[\\r\\n\\f]")}),ce(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"+I+"*[*^$|!~]?="),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=J.test(y=d.matches||d.webkitMatchesSelector||d.mozMatchesSelector||d.oMatchesSelector||d.msMatchesSelector))&&ce(function(e){n.disconnectedMatch=y.call(e,"*"),y.call(e,"[s!='']:x"),v.push("!=",F)}),m=m.length&&new RegExp(m.join("|")),v=v.length&&new RegExp(v.join("|")),t=J.test(d.compareDocumentPosition),b=t||J.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},D=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?L(c,e)-L(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?L(c,e)-L(c,t):0;if(o===r)return fe(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?fe(s[i],a[i]):s[i]==w?-1:a[i]==w?1:0},h):h},ae.matches=function(e,t){return ae(e,null,null,t)},ae.matchesSelector=function(e,t){if(f(e),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){k(t,!0)}return ae(t,h,null,[e]).length>0},ae.contains=function(e,t){return(e.ownerDocument||e)!=h&&f(e),b(e,t)},ae.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},ae.escape=function(e){return(e+"").replace(ie,oe)},ae.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},ae.uniqueSort=function(e){var t,i=[],o=0,r=0;if(p=!n.detectDuplicates,c=!n.sortStable&&e.slice(0),e.sort(D),p){for(;t=e[r++];)t===e[r]&&(o=i.push(r));for(;o--;)e.splice(i[o],1)}return c=null,e},o=ae.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=ae.selectors={cacheLength:50,createPseudo:ue,match:G,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(te,ne),e[3]=(e[3]||e[4]||e[5]||"").replace(te,ne),"~="===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]||ae.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]&&ae.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return G.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&U.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(te,ne).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("(^|"+I+")"+e+"("+I+"|$)"))&&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=ae.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(W," ")+" ").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()]||ae.error("unsupported pseudo: "+e);return o[x]?o(t):o.length>1?(n=[e,e,"",t],i.setFilters.hasOwnProperty(e.toLowerCase())?ue(function(e,n){for(var i,r=o(e,t),s=r.length;s--;)e[i=L(e,r[s])]=!(n[i]=r[s])}):function(e){return o(e,0,n)}):o}},pseudos:{not:ue(function(e){var t=[],n=[],i=a(e.replace(B,"$1"));return i[x]?ue(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:ue(function(e){return function(t){return ae(e,t).length>0}}),contains:ue(function(e){return e=e.replace(te,ne),function(t){return(t.textContent||o(t)).indexOf(e)>-1}}),lang:ue(function(e){return Y.test(e||"")||ae.error("unsupported lang: "+e),e=e.replace(te,ne).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:ge(!1),disabled:ge(!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 K.test(e.nodeName)},input:function(e){return Q.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:me(function(){return[0]}),last:me(function(e,t){return[t-1]}),eq:me(function(e,t,n){return[n<0?n+t:n]}),even:me(function(e,t){for(var n=0;n<t;n+=2)e.push(n);return e}),odd:me(function(e,t){for(var n=1;n<t;n+=2)e.push(n);return e}),lt:me(function(e,t,n){for(var i=n<0?n+t:n>t?t:n;--i>=0;)e.push(i);return e}),gt:me(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]=he(t);for(t in{submit:!0,reset:!0})i.pseudos[t]=de(t);function ye(){}function be(e){for(var t=0,n=e.length,i="";t<n;t++)i+=e[t].value;return i}function xe(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 we(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 Ce(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 _e(e,t,n,i,o,r){return i&&!i[x]&&(i=_e(i)),o&&!o[x]&&(o=_e(o,r)),ue(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++)ae(e,t[i],n);return n}(t||"*",a.nodeType?[a]:a,[]),m=!e||!r&&t?g:Ce(g,f,e,a,l),v=n?o||(r?e:d||i)?[]:s:m;if(n&&n(m,v,a,l),i)for(u=Ce(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?L(r,p):f[c])>-1&&(r[u]=!(s[u]=p))}}else v=Ce(v===s?v.splice(d,v.length):v),o?o(null,s,v,l):M.apply(s,v)})}function Te(e){for(var t,n,o,r=e.length,s=i.relative[e[0].type],a=s||i.relative[" "],l=s?1:0,c=xe(function(e){return e===t},a,!0),p=xe(function(e){return L(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=[xe(we(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 _e(l>1&&we(f),l>1&&be(e.slice(0,l-1).concat({value:" "===e[l-2].type?"*":""})).replace(B,"$1"),n,l<o&&Te(e.slice(l,o)),o<r&&Te(e=e.slice(o)),o<r&&be(e))}f.push(n)}return we(f)}return ye.prototype=i.filters=i.pseudos,i.setFilters=new ye,s=ae.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=z.exec(a))||(o&&(a=a.slice(o[0].length)||a),l.push(r=[])),n=!1,(o=X.exec(a))&&(n=o.shift(),r.push({value:n,type:o[0].replace(B," ")}),a=a.slice(n.length));for(s in i.filter)!(o=G[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?ae.error(e):E(e,l).slice(0)},a=ae.compile=function(e,t){var n,o,r,a,l,c,p=[],d=[],m=S[e+" "];if(!m){for(t||(t=s(e)),n=t.length;n--;)(m=Te(t[n]))[x]?p.push(m):d.push(m);(m=S(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]=A.call(s));x=Ce(x)}M.apply(s,x),c&&!e&&x.length>0&&v+r.length>1&&ae.uniqueSort(s)}return c&&(C=T,u=w),b},a?ue(c):c))).selector=e}return m},l=ae.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(te,ne),t)||[])[0]))return n;f&&(t=t.parentNode),e=e.slice(l.shift().value.length)}for(r=G.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(te,ne),ee.test(l[0].type)&&ve(t.parentNode)||t))){if(l.splice(r,1),!(e=o.length&&be(l)))return M.apply(n,o),n;break}}return(f||a(e,h))(o,t,!g,n,!t||ee.test(e)&&ve(t.parentNode)||t),n},n.sortStable=x.split("").sort(D).join("")===x,n.detectDuplicates=!!p,f(),n.sortDetached=ce(function(e){return 1&e.compareDocumentPosition(h.createElement("fieldset"))}),ce(function(e){return e.innerHTML="<a href='#'></a>","#"===e.firstChild.getAttribute("href")})||pe("type|href|height|width",function(e,t,n){if(!n)return e.getAttribute(t,"type"===t.toLowerCase()?1:2)}),n.attributes&&ce(function(e){return e.innerHTML="<input/>",e.firstChild.setAttribute("value",""),""===e.firstChild.getAttribute("value")})||pe("value",function(e,t,n){if(!n&&"input"===e.nodeName.toLowerCase())return e.defaultValue}),ce(function(e){return null==e.getAttribute("disabled")})||pe(O,function(e,t,n){var i;if(!n)return!0===e[t]?t.toLowerCase():(i=e.getAttributeNode(t))&&i.specified?i.value:null}),ae}(e);w.find=_,w.expr=_.selectors,w.expr[":"]=w.expr.pseudos,w.uniqueSort=w.unique=_.uniqueSort,w.text=_.getText,w.isXMLDoc=_.isXML,w.contains=_.contains,w.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&&w(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},S=w.expr.match.needsContext;function k(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()}var D=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function P(e,t,n){return d(t)?w.grep(e,function(e,i){return!!t.call(e,i,e)!==n}):t.nodeType?w.grep(e,function(e){return e===t!==n}):"string"!=typeof t?w.grep(e,function(e){return a.call(t,e)>-1!==n}):w.filter(t,e,n)}w.filter=function(e,t,n){var i=t[0];return n&&(e=":not("+e+")"),1===t.length&&1===i.nodeType?w.find.matchesSelector(i,e)?[i]:[]:w.find.matches(e,w.grep(t,function(e){return 1===e.nodeType}))},w.fn.extend({find:function(e){var t,n,i=this.length,o=this;if("string"!=typeof e)return this.pushStack(w(e).filter(function(){for(t=0;t<i;t++)if(w.contains(o[t],this))return!0}));for(n=this.pushStack([]),t=0;t<i;t++)w.find(e,o[t],n);return i>1?w.uniqueSort(n):n},filter:function(e){return this.pushStack(P(this,e||[],!1))},not:function(e){return this.pushStack(P(this,e||[],!0))},is:function(e){return!!P(this,"string"==typeof e&&S.test(e)?w(e):e||[],!1).length}});var N,A=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/;(w.fn.init=function(e,t,n){var i,o;if(!e)return this;if(n=n||N,"string"==typeof e){if(!(i="<"===e[0]&&">"===e[e.length-1]&&e.length>=3?[null,e,null]:A.exec(e))||!i[1]&&t)return!t||t.jquery?(t||n).find(e):this.constructor(t).find(e);if(i[1]){if(t=t instanceof w?t[0]:t,w.merge(this,w.parseHTML(i[1],t&&t.nodeType?t.ownerDocument||t:m,!0)),D.test(i[1])&&w.isPlainObject(t))for(i in t)d(this[i])?this[i](t[i]):this.attr(i,t[i]);return this}return(o=m.getElementById(i[2]))&&(this[0]=o,this.length=1),this}return e.nodeType?(this[0]=e,this.length=1,this):d(e)?void 0!==n.ready?n.ready(e):e(w):w.makeArray(e,this)}).prototype=w.fn,N=w(m);var j=/^(?:parents|prev(?:Until|All))/,M={children:!0,contents:!0,next:!0,prev:!0};function H(e,t){for(;(e=e[t])&&1!==e.nodeType;);return e}w.fn.extend({has:function(e){var t=w(e,this),n=t.length;return this.filter(function(){for(var e=0;e<n;e++)if(w.contains(this,t[e]))return!0})},closest:function(e,t){var n,i=0,o=this.length,r=[],s="string"!=typeof e&&w(e);if(!S.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&&w.find.matchesSelector(n,e))){r.push(n);break}return this.pushStack(r.length>1?w.uniqueSort(r):r)},index:function(e){return e?"string"==typeof e?a.call(w(e),this[0]):a.call(this,e.jquery?e[0]:e):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,t){return this.pushStack(w.uniqueSort(w.merge(this.get(),w(e,t))))},addBack:function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}}),w.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 H(e,"nextSibling")},prev:function(e){return H(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 null!=e.contentDocument&&i(e.contentDocument)?e.contentDocument:(k(e,"template")&&(e=e.content||e),w.merge([],e.childNodes))}},function(e,t){w.fn[e]=function(n,i){var o=w.map(this,t,n);return"Until"!==e.slice(-5)&&(i=n),i&&"string"==typeof i&&(o=w.filter(i,o)),this.length>1&&(M[e]||w.uniqueSort(o),j.test(e)&&o.reverse()),this.pushStack(o)}});var L=/[^\x20\t\r\n\f]+/g;function O(e){return e}function I(e){throw e}function q(e,t,n,i){var o;try{e&&d(o=e.promise)?o.call(e).done(t).fail(n):e&&d(o=e.then)?o.call(e,t,n):t.apply(void 0,[e].slice(i))}catch(e){n.apply(void 0,[e])}}w.Callbacks=function(e){var t,n;e="string"==typeof e?(t=e,n={},w.each(t.match(L)||[],function(e,t){n[t]=!0}),n):w.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){w.each(n,function(n,i){d(i)?e.unique&&p.has(i)||a.push(i):i&&i.length&&"string"!==b(i)&&t(i)})}(arguments),o&&!i&&c()),this},remove:function(){return w.each(arguments,function(e,t){for(var n;(n=w.inArray(t,a,n))>-1;)a.splice(n,1),n<=u&&u--}),this},has:function(e){return e?w.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},w.extend({Deferred:function(t){var n=[["notify","progress",w.Callbacks("memory"),w.Callbacks("memory"),2],["resolve","done",w.Callbacks("once memory"),w.Callbacks("once memory"),0,"resolved"],["reject","fail",w.Callbacks("once memory"),w.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 w.Deferred(function(t){w.each(n,function(n,i){var o=d(e[i[4]])&&e[i[4]];r[i[1]](function(){var e=o&&o.apply(this,arguments);e&&d(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,d(u)?o?u.call(e,s(r,n,O,o),s(r,n,I,o)):(r++,u.call(e,s(r,n,O,o),s(r,n,I,o),s(r,n,O,n.notifyWith))):(i!==O&&(a=void 0,l=[e]),(o||n.resolveWith)(a,l))}},c=o?u:function(){try{u()}catch(e){w.Deferred.exceptionHook&&w.Deferred.exceptionHook(e,c.stackTrace),t+1>=r&&(i!==I&&(a=void 0,l=[e]),n.rejectWith(a,l))}};t?c():(w.Deferred.getStackHook&&(c.stackTrace=w.Deferred.getStackHook()),e.setTimeout(c))}}return w.Deferred(function(e){n[0][3].add(s(0,e,d(o)?o:O,e.notifyWith)),n[1][3].add(s(0,e,d(t)?t:O)),n[2][3].add(s(0,e,d(i)?i:I))}).promise()},promise:function(e){return null!=e?w.extend(e,o):o}},r={};return w.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[3-e][3].disable,n[0][2].lock,n[0][3].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),r=o.call(arguments),s=w.Deferred(),a=function(e){return function(n){i[e]=this,r[e]=arguments.length>1?o.call(arguments):n,--t||s.resolveWith(i,r)}};if(t<=1&&(q(e,s.done(a(n)).resolve,s.reject,!t),"pending"===s.state()||d(r[n]&&r[n].then)))return s.then();for(;n--;)q(r[n],a(n),s.reject);return s.promise()}});var R=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;w.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)},w.readyException=function(t){e.setTimeout(function(){throw t})};var F=w.Deferred();function W(){m.removeEventListener("DOMContentLoaded",W),e.removeEventListener("load",W),w.ready()}w.fn.ready=function(e){return F.then(e).catch(function(e){w.readyException(e)}),this},w.extend({isReady:!1,readyWait:1,ready:function(e){(!0===e?--w.readyWait:w.isReady)||(w.isReady=!0,!0!==e&&--w.readyWait>0||F.resolveWith(m,[w]))}}),w.ready.then=F.then,"complete"===m.readyState||"loading"!==m.readyState&&!m.documentElement.doScroll?e.setTimeout(w.ready):(m.addEventListener("DOMContentLoaded",W),e.addEventListener("load",W));var B=function(e,t,n,i,o,r,s){var a=0,l=e.length,u=null==n;if("object"===b(n)){o=!0;for(a in n)B(e,t,a,n[a],!0,r,s)}else if(void 0!==i&&(o=!0,d(i)||(s=!0),u&&(s?(t.call(e,i),t=null):(u=t,t=function(e,t,n){return u.call(w(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=/^-ms-/,X=/-([a-z])/g;function $(e,t){return t.toUpperCase()}function U(e){return e.replace(z,"ms-").replace(X,$)}var Y=function(e){return 1===e.nodeType||9===e.nodeType||!+e.nodeType};function G(){this.expando=w.expando+G.uid++}G.uid=1,G.prototype={cache:function(e){var t=e[this.expando];return t||(t={},Y(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[U(t)]=n;else for(i in t)o[U(i)]=t[i];return o},get:function(e,t){return void 0===t?this.cache(e):e[this.expando]&&e[this.expando][U(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(U):(t=U(t))in i?[t]:t.match(L)||[]).length;for(;n--;)delete i[t[n]]}(void 0===t||w.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&&!w.isEmptyObject(t)}};var V=new G,Q=new G,K=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,J=/[A-Z]/g;function Z(e,t,n){var i,o;if(void 0===n&&1===e.nodeType)if(i="data-"+t.replace(J,"-$&").toLowerCase(),"string"==typeof(n=e.getAttribute(i))){try{n="true"===(o=n)||"false"!==o&&("null"===o?null:o===+o+""?+o:K.test(o)?JSON.parse(o):o)}catch(e){}Q.set(e,t,n)}else n=void 0;return n}w.extend({hasData:function(e){return Q.hasData(e)||V.hasData(e)},data:function(e,t,n){return Q.access(e,t,n)},removeData:function(e,t){Q.remove(e,t)},_data:function(e,t,n){return V.access(e,t,n)},_removeData:function(e,t){V.remove(e,t)}}),w.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=Q.get(r),1===r.nodeType&&!V.get(r,"hasDataAttrs"))){for(n=s.length;n--;)s[n]&&0===(i=s[n].name).indexOf("data-")&&(i=U(i.slice(5)),Z(r,i,o[i]));V.set(r,"hasDataAttrs",!0)}return o}return"object"==typeof e?this.each(function(){Q.set(this,e)}):B(this,function(t){var n;if(r&&void 0===t)return void 0!==(n=Q.get(r,e))?n:void 0!==(n=Z(r,e))?n:void 0;this.each(function(){Q.set(this,e,t)})},null,t,arguments.length>1,null,!0)},removeData:function(e){return this.each(function(){Q.remove(this,e)})}}),w.extend({queue:function(e,t,n){var i;if(e)return t=(t||"fx")+"queue",i=V.get(e,t),n&&(!i||Array.isArray(n)?i=V.access(e,t,w.makeArray(n)):i.push(n)),i||[]},dequeue:function(e,t){t=t||"fx";var n=w.queue(e,t),i=n.length,o=n.shift(),r=w._queueHooks(e,t);"inprogress"===o&&(o=n.shift(),i--),o&&("fx"===t&&n.unshift("inprogress"),delete r.stop,o.call(e,function(){w.dequeue(e,t)},r)),!i&&r&&r.empty.fire()},_queueHooks:function(e,t){var n=t+"queueHooks";return V.get(e,n)||V.access(e,n,{empty:w.Callbacks("once memory").add(function(){V.remove(e,[t+"queue",n])})})}}),w.fn.extend({queue:function(e,t){var n=2;return"string"!=typeof e&&(t=e,e="fx",n--),arguments.length<n?w.queue(this[0],e):void 0===t?this:this.each(function(){var n=w.queue(this,e,t);w._queueHooks(this,e),"fx"===e&&"inprogress"!==n[0]&&w.dequeue(this,e)})},dequeue:function(e){return this.each(function(){w.dequeue(this,e)})},clearQueue:function(e){return this.queue(e||"fx",[])},promise:function(e,t){var n,i=1,o=w.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=V.get(r[s],e+"queueHooks"))&&n.empty&&(i++,n.empty.add(a));return a(),o.promise(t)}});var ee=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,te=new RegExp("^(?:([+-])=|)("+ee+")([a-z%]*)$","i"),ne=["Top","Right","Bottom","Left"],ie=m.documentElement,oe=function(e){return w.contains(e.ownerDocument,e)},re={composed:!0};ie.getRootNode&&(oe=function(e){return w.contains(e.ownerDocument,e)||e.getRootNode(re)===e.ownerDocument});var se=function(e,t){return"none"===(e=t||e).style.display||""===e.style.display&&oe(e)&&"none"===w.css(e,"display")};function ae(e,t,n,i){var o,r,s=20,a=i?function(){return i.cur()}:function(){return w.css(e,t,"")},l=a(),u=n&&n[3]||(w.cssNumber[t]?"":"px"),c=e.nodeType&&(w.cssNumber[t]||"px"!==u&&+l)&&te.exec(w.css(e,t));if(c&&c[3]!==u){for(l/=2,u=u||c[3],c=+l||1;s--;)w.style(e,t,c+u),(1-r)*(1-(r=a()/l||.5))<=0&&(s=0),c/=r;c*=2,w.style(e,t,c+u),n=n||[]}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 le={};function ue(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]=V.get(i,"display")||null,u[c]||(i.style.display="")),""===i.style.display&&se(i)&&(u[c]=(r=void 0,s=void 0,void 0,l=void 0,s=(o=i).ownerDocument,a=o.nodeName,(l=le[a])||(r=s.body.appendChild(s.createElement(a)),l=w.css(r,"display"),r.parentNode.removeChild(r),"none"===l&&(l="block"),le[a]=l,l)))):"none"!==n&&(u[c]="none",V.set(i,"display",n)));for(c=0;c<p;c++)null!=u[c]&&(e[c].style.display=u[c]);return e}w.fn.extend({show:function(){return ue(this,!0)},hide:function(){return ue(this)},toggle:function(e){return"boolean"==typeof e?e?this.show():this.hide():this.each(function(){se(this)?w(this).show():w(this).hide()})}});var ce,pe,fe=/^(?:checkbox|radio)$/i,he=/<([a-z][^\/\0>\x20\t\r\n\f]*)/i,de=/^$|^module$|\/(?:java|ecma)script/i;ce=m.createDocumentFragment().appendChild(m.createElement("div")),(pe=m.createElement("input")).setAttribute("type","radio"),pe.setAttribute("checked","checked"),pe.setAttribute("name","t"),ce.appendChild(pe),h.checkClone=ce.cloneNode(!0).cloneNode(!0).lastChild.checked,ce.innerHTML="<textarea>x</textarea>",h.noCloneChecked=!!ce.cloneNode(!0).lastChild.defaultValue,ce.innerHTML="<option></option>",h.option=!!ce.lastChild;var ge={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 me(e,t){var n;return n=void 0!==e.getElementsByTagName?e.getElementsByTagName(t||"*"):void 0!==e.querySelectorAll?e.querySelectorAll(t||"*"):[],void 0===t||t&&k(e,t)?w.merge([e],n):n}function ve(e,t){for(var n=0,i=e.length;n<i;n++)V.set(e[n],"globalEval",!t||V.get(t[n],"globalEval"))}ge.tbody=ge.tfoot=ge.colgroup=ge.caption=ge.thead,ge.th=ge.td,h.option||(ge.optgroup=ge.option=[1,"<select multiple='multiple'>","</select>"]);var ye=/<|&#?\w+;/;function be(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"===b(r))w.merge(f,r.nodeType?[r]:r);else if(ye.test(r)){for(s=s||p.appendChild(t.createElement("div")),a=(he.exec(r)||["",""])[1].toLowerCase(),l=ge[a]||ge._default,s.innerHTML=l[1]+w.htmlPrefilter(r)+l[2],c=l[0];c--;)s=s.lastChild;w.merge(f,s.childNodes),(s=p.firstChild).textContent=""}else f.push(t.createTextNode(r));for(p.textContent="",h=0;r=f[h++];)if(i&&w.inArray(r,i)>-1)o&&o.push(r);else if(u=oe(r),s=me(p.appendChild(r),"script"),u&&ve(s),n)for(c=0;r=s[c++];)de.test(r.type||"")&&n.push(r);return p}var xe=/^([^.]*)(?:\.(.+)|)/;function we(){return!0}function Ce(){return!1}function _e(e,t){return e===function(){try{return m.activeElement}catch(e){}}()==("focus"===t)}function Te(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)Te(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=Ce;else if(!o)return e;return 1===r&&(s=o,(o=function(e){return w().off(e),s.apply(this,arguments)}).guid=s.guid||(s.guid=w.guid++)),e.each(function(){w.event.add(this,t,o,i,n)})}function Ee(e,t,n){n?(V.set(e,t,!1),w.event.add(e,t,{namespace:!1,handler:function(e){var i,r,s=V.get(this,t);if(1&e.isTrigger&&this[t]){if(s.length)(w.event.special[t]||{}).delegateType&&e.stopPropagation();else if(s=o.call(arguments),V.set(this,t,s),i=n(this,t),this[t](),s!==(r=V.get(this,t))||i?V.set(this,t,!1):r={},s!==r)return e.stopImmediatePropagation(),e.preventDefault(),r&&r.value}else s.length&&(V.set(this,t,{value:w.event.trigger(w.extend(s[0],w.Event.prototype),s.slice(1),this)}),e.stopImmediatePropagation())}})):void 0===V.get(e,t)&&w.event.add(e,t,we)}w.event={global:{},add:function(e,t,n,i,o){var r,s,a,l,u,c,p,f,h,d,g,m=V.get(e);if(Y(e))for(n.handler&&(n=(r=n).handler,o=r.selector),o&&w.find.matchesSelector(ie,o),n.guid||(n.guid=w.guid++),(l=m.events)||(l=m.events=Object.create(null)),(s=m.handle)||(s=m.handle=function(t){return void 0!==w&&w.event.triggered!==t.type?w.event.dispatch.apply(e,arguments):void 0}),u=(t=(t||"").match(L)||[""]).length;u--;)h=g=(a=xe.exec(t[u])||[])[1],d=(a[2]||"").split(".").sort(),h&&(p=w.event.special[h]||{},h=(o?p.delegateType:p.bindType)||h,p=w.event.special[h]||{},c=w.extend({type:h,origType:g,data:i,handler:n,guid:n.guid,selector:o,needsContext:o&&w.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),w.event.global[h]=!0)},remove:function(e,t,n,i,o){var r,s,a,l,u,c,p,f,h,d,g,m=V.hasData(e)&&V.get(e);if(m&&(l=m.events)){for(u=(t=(t||"").match(L)||[""]).length;u--;)if(h=g=(a=xe.exec(t[u])||[])[1],d=(a[2]||"").split(".").sort(),h){for(p=w.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)||w.removeEvent(e,h,m.handle),delete l[h])}else for(h in l)w.event.remove(e,h+t[u],n,i,!0);w.isEmptyObject(l)&&V.remove(e,"handle events")}},dispatch:function(e){var t,n,i,o,r,s,a=new Array(arguments.length),l=w.event.fix(e),u=(V.get(this,"events")||Object.create(null))[l.type]||[],c=w.event.special[l.type]||{};for(a[0]=l,t=1;t<arguments.length;t++)a[t]=arguments[t];if(l.delegateTarget=this,!c.preDispatch||!1!==c.preDispatch.call(this,l)){for(s=w.event.handlers.call(this,l,u),t=0;(o=s[t++])&&!l.isPropagationStopped();)for(l.currentTarget=o.elem,n=0;(r=o.handlers[n++])&&!l.isImmediatePropagationStopped();)l.rnamespace&&!1!==r.namespace&&!l.rnamespace.test(r.namespace)||(l.handleObj=r,l.data=r.data,void 0!==(i=((w.event.special[r.origType]||{}).handle||r.handler).apply(o.elem,a))&&!1===(l.result=i)&&(l.preventDefault(),l.stopPropagation()));return c.postDispatch&&c.postDispatch.call(this,l),l.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?w(o,this).index(u)>-1:w.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(w.Event.prototype,e,{enumerable:!0,configurable:!0,get:d(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[w.expando]?e:new w.Event(e)},special:{load:{noBubble:!0},click:{setup:function(e){var t=this||e;return fe.test(t.type)&&t.click&&k(t,"input")&&Ee(t,"click",we),!1},trigger:function(e){var t=this||e;return fe.test(t.type)&&t.click&&k(t,"input")&&Ee(t,"click"),!0},_default:function(e){var t=e.target;return fe.test(t.type)&&t.click&&k(t,"input")&&V.get(t,"click")||k(t,"a")}},beforeunload:{postDispatch:function(e){void 0!==e.result&&e.originalEvent&&(e.originalEvent.returnValue=e.result)}}}},w.removeEvent=function(e,t,n){e.removeEventListener&&e.removeEventListener(t,n)},w.Event=function(e,t){if(!(this instanceof w.Event))return new w.Event(e,t);e&&e.type?(this.originalEvent=e,this.type=e.type,this.isDefaultPrevented=e.defaultPrevented||void 0===e.defaultPrevented&&!1===e.returnValue?we:Ce,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&&w.extend(this,t),this.timeStamp=e&&e.timeStamp||Date.now(),this[w.expando]=!0},w.Event.prototype={constructor:w.Event,isDefaultPrevented:Ce,isPropagationStopped:Ce,isImmediatePropagationStopped:Ce,isSimulated:!1,preventDefault:function(){var e=this.originalEvent;this.isDefaultPrevented=we,e&&!this.isSimulated&&e.preventDefault()},stopPropagation:function(){var e=this.originalEvent;this.isPropagationStopped=we,e&&!this.isSimulated&&e.stopPropagation()},stopImmediatePropagation:function(){var e=this.originalEvent;this.isImmediatePropagationStopped=we,e&&!this.isSimulated&&e.stopImmediatePropagation(),this.stopPropagation()}},w.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,code:!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:!0},w.event.addProp),w.each({focus:"focusin",blur:"focusout"},function(e,t){w.event.special[e]={setup:function(){return Ee(this,e,_e),!1},trigger:function(){return Ee(this,e),!0},_default:function(){return!0},delegateType:t}}),w.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(e,t){w.event.special[e]={delegateType:t,bindType:t,handle:function(e){var n,i=e.relatedTarget,o=e.handleObj;return i&&(i===this||w.contains(this,i))||(e.type=o.origType,n=o.handler.apply(this,arguments),e.type=t),n}}}),w.fn.extend({on:function(e,t,n,i){return Te(this,e,t,n,i)},one:function(e,t,n,i){return Te(this,e,t,n,i,1)},off:function(e,t,n){var i,o;if(e&&e.preventDefault&&e.handleObj)return i=e.handleObj,w(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=Ce),this.each(function(){w.event.remove(this,e,n,t)})}});var Se=/<script|<style|<link/i,ke=/checked\s*(?:[^=]|=\s*.checked.)/i,De=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g;function Pe(e,t){return k(e,"table")&&k(11!==t.nodeType?t:t.firstChild,"tr")&&w(e).children("tbody")[0]||e}function Ne(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function Ae(e){return"true/"===(e.type||"").slice(0,5)?e.type=e.type.slice(5):e.removeAttribute("type"),e}function je(e,t){var n,i,o,r,s,a;if(1===t.nodeType){if(V.hasData(e)&&(a=V.get(e).events)){V.remove(t,"handle events");for(o in a)for(n=0,i=a[o].length;n<i;n++)w.event.add(t,o,a[o][n])}Q.hasData(e)&&(r=Q.access(e),s=w.extend({},r),Q.set(t,s))}}function Me(e,t,n,i){t=r(t);var o,s,a,l,u,c,p=0,f=e.length,g=f-1,m=t[0],v=d(m);if(v||f>1&&"string"==typeof m&&!h.checkClone&&ke.test(m))return e.each(function(o){var r=e.eq(o);v&&(t[0]=m.call(this,o,r.html())),Me(r,t,n,i)});if(f&&(s=(o=be(t,e[0].ownerDocument,!1,e,i)).firstChild,1===o.childNodes.length&&(o=s),s||i)){for(l=(a=w.map(me(o,"script"),Ne)).length;p<f;p++)u=o,p!==g&&(u=w.clone(u,!0,!0),l&&w.merge(a,me(u,"script"))),n.call(e[p],u,p);if(l)for(c=a[a.length-1].ownerDocument,w.map(a,Ae),p=0;p<l;p++)u=a[p],de.test(u.type||"")&&!V.access(u,"globalEval")&&w.contains(c,u)&&(u.src&&"module"!==(u.type||"").toLowerCase()?w._evalUrl&&!u.noModule&&w._evalUrl(u.src,{nonce:u.nonce||u.getAttribute("nonce")},c):y(u.textContent.replace(De,""),u,c))}return e}function He(e,t,n){for(var i,o=t?w.filter(t,e):e,r=0;null!=(i=o[r]);r++)n||1!==i.nodeType||w.cleanData(me(i)),i.parentNode&&(n&&oe(i)&&ve(me(i,"script")),i.parentNode.removeChild(i));return e}w.extend({htmlPrefilter:function(e){return e},clone:function(e,t,n){var i,o,r,s,a,l,u,c=e.cloneNode(!0),p=oe(e);if(!(h.noCloneChecked||1!==e.nodeType&&11!==e.nodeType||w.isXMLDoc(e)))for(s=me(c),i=0,o=(r=me(e)).length;i<o;i++)a=r[i],l=s[i],void 0,"input"===(u=l.nodeName.toLowerCase())&&fe.test(a.type)?l.checked=a.checked:"input"!==u&&"textarea"!==u||(l.defaultValue=a.defaultValue);if(t)if(n)for(r=r||me(e),s=s||me(c),i=0,o=r.length;i<o;i++)je(r[i],s[i]);else je(e,c);return(s=me(c,"script")).length>0&&ve(s,!p&&me(e,"script")),c},cleanData:function(e){for(var t,n,i,o=w.event.special,r=0;void 0!==(n=e[r]);r++)if(Y(n)){if(t=n[V.expando]){if(t.events)for(i in t.events)o[i]?w.event.remove(n,i):w.removeEvent(n,i,t.handle);n[V.expando]=void 0}n[Q.expando]&&(n[Q.expando]=void 0)}}}),w.fn.extend({detach:function(e){return He(this,e,!0)},remove:function(e){return He(this,e)},text:function(e){return B(this,function(e){return void 0===e?w.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&&(w.cleanData(me(e,!1)),e.textContent="");return this},clone:function(e,t){return e=null!=e&&e,t=null==t?e:t,this.map(function(){return w.clone(this,e,t)})},html:function(e){return B(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&&!Se.test(e)&&!ge[(he.exec(e)||["",""])[1].toLowerCase()]){e=w.htmlPrefilter(e);try{for(;n<i;n++)1===(t=this[n]||{}).nodeType&&(w.cleanData(me(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;w.inArray(this,e)<0&&(w.cleanData(me(this)),n&&n.replaceChild(t,this))},e)}}),w.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(e,t){w.fn[e]=function(e){for(var n,i=[],o=w(e),r=o.length-1,a=0;a<=r;a++)n=a===r?this:this.clone(!0),w(o[a])[t](n),s.apply(i,n.get());return this.pushStack(i)}});var Le=new RegExp("^("+ee+")(?!px)[a-z%]+$","i"),Oe=function(t){var n=t.ownerDocument.defaultView;return n&&n.opener||(n=e),n.getComputedStyle(t)},Ie=function(e,t,n){var i,o,r={};for(o in t)r[o]=e.style[o],e.style[o]=t[o];i=n.call(e);for(o in t)e.style[o]=r[o];return i},qe=new RegExp(ne.join("|"),"i");function Re(e,t,n){var i,o,r,s,a=e.style;return(n=n||Oe(e))&&(""!==(s=n.getPropertyValue(t)||n[t])||oe(e)||(s=w.style(e,t)),!h.pixelBoxStyles()&&Le.test(s)&&qe.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(c){u.style.cssText="position:absolute;left:-11111px;width:60px;margin-top:1px;padding:0;border:0",c.style.cssText="position:relative;display:block;box-sizing:border-box;overflow:scroll;margin:auto;border:1px;padding:1px;width:60%;top:1%",ie.appendChild(u).appendChild(c);var t=e.getComputedStyle(c);i="1%"!==t.top,l=12===n(t.marginLeft),c.style.right="60%",s=36===n(t.right),o=36===n(t.width),c.style.position="absolute",r=12===n(c.offsetWidth/3),ie.removeChild(u),c=null}}function n(e){return Math.round(parseFloat(e))}var i,o,r,s,a,l,u=m.createElement("div"),c=m.createElement("div");c.style&&(c.style.backgroundClip="content-box",c.cloneNode(!0).style.backgroundClip="",h.clearCloneStyle="content-box"===c.style.backgroundClip,w.extend(h,{boxSizingReliable:function(){return t(),o},pixelBoxStyles:function(){return t(),s},pixelPosition:function(){return t(),i},reliableMarginLeft:function(){return t(),l},scrollboxSize:function(){return t(),r},reliableTrDimensions:function(){var t,n,i,o;return null==a&&(t=m.createElement("table"),n=m.createElement("tr"),i=m.createElement("div"),t.style.cssText="position:absolute;left:-11111px;border-collapse:separate",n.style.cssText="border:1px solid",n.style.height="1px",i.style.height="9px",i.style.display="block",ie.appendChild(t).appendChild(n).appendChild(i),o=e.getComputedStyle(n),a=parseInt(o.height,10)+parseInt(o.borderTopWidth,10)+parseInt(o.borderBottomWidth,10)===n.offsetHeight,ie.removeChild(t)),a}}))}();var We=["Webkit","Moz","ms"],Be=m.createElement("div").style,ze={};function Xe(e){var t=w.cssProps[e]||ze[e];return t||(e in Be?e:ze[e]=function(e){for(var t=e[0].toUpperCase()+e.slice(1),n=We.length;n--;)if((e=We[n]+t)in Be)return e}(e)||e)}var $e=/^(none|table(?!-c[ea]).+)/,Ue=/^--/,Ye={position:"absolute",visibility:"hidden",display:"block"},Ge={letterSpacing:"0",fontWeight:"400"};function Ve(e,t,n){var i=te.exec(t);return i?Math.max(0,i[2]-(n||0))+(i[3]||"px"):t}function Qe(e,t,n,i,o,r){var s="width"===t?1:0,a=0,l=0;if(n===(i?"border":"content"))return 0;for(;s<4;s+=2)"margin"===n&&(l+=w.css(e,n+ne[s],!0,o)),i?("content"===n&&(l-=w.css(e,"padding"+ne[s],!0,o)),"margin"!==n&&(l-=w.css(e,"border"+ne[s]+"Width",!0,o))):(l+=w.css(e,"padding"+ne[s],!0,o),"padding"!==n?l+=w.css(e,"border"+ne[s]+"Width",!0,o):a+=w.css(e,"border"+ne[s]+"Width",!0,o));return!i&&r>=0&&(l+=Math.max(0,Math.ceil(e["offset"+t[0].toUpperCase()+t.slice(1)]-r-l-a-.5))||0),l}function Ke(e,t,n){var i=Oe(e),o=(!h.boxSizingReliable()||n)&&"border-box"===w.css(e,"boxSizing",!1,i),r=o,s=Re(e,t,i),a="offset"+t[0].toUpperCase()+t.slice(1);if(Le.test(s)){if(!n)return s;s="auto"}return(!h.boxSizingReliable()&&o||!h.reliableTrDimensions()&&k(e,"tr")||"auto"===s||!parseFloat(s)&&"inline"===w.css(e,"display",!1,i))&&e.getClientRects().length&&(o="border-box"===w.css(e,"boxSizing",!1,i),(r=a in e)&&(s=e[a])),(s=parseFloat(s)||0)+Qe(e,t,n||(o?"border":"content"),r,i,s)+"px"}function Je(e,t,n,i,o){return new Je.prototype.init(e,t,n,i,o)}w.extend({cssHooks:{opacity:{get:function(e,t){if(t){var n=Re(e,"opacity");return""===n?"1":n}}}},cssNumber:{animationIterationCount:!0,columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,gridArea:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnStart:!0,gridRow:!0,gridRowEnd:!0,gridRowStart:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{},style:function(e,t,n,i){if(e&&3!==e.nodeType&&8!==e.nodeType&&e.style){var o,r,s,a=U(t),l=Ue.test(t),u=e.style;if(l||(t=Xe(a)),s=w.cssHooks[t]||w.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=te.exec(n))&&o[1]&&(n=ae(e,t,o),r="number"),null!=n&&n==n&&("number"!==r||l||(n+=o&&o[3]||(w.cssNumber[a]?"":"px")),h.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=U(t);return Ue.test(t)||(t=Xe(a)),(s=w.cssHooks[t]||w.cssHooks[a])&&"get"in s&&(o=s.get(e,!0,n)),void 0===o&&(o=Re(e,t,i)),"normal"===o&&t in Ge&&(o=Ge[t]),""===n||n?(r=parseFloat(o),!0===n||isFinite(r)?r||0:o):o}}),w.each(["height","width"],function(e,t){w.cssHooks[t]={get:function(e,n,i){if(n)return!$e.test(w.css(e,"display"))||e.getClientRects().length&&e.getBoundingClientRect().width?Ke(e,t,i):Ie(e,Ye,function(){return Ke(e,t,i)})},set:function(e,n,i){var o,r=Oe(e),s=!h.scrollboxSize()&&"absolute"===r.position,a=(s||i)&&"border-box"===w.css(e,"boxSizing",!1,r),l=i?Qe(e,t,i,a,r):0;return a&&s&&(l-=Math.ceil(e["offset"+t[0].toUpperCase()+t.slice(1)]-parseFloat(r[t])-Qe(e,t,"border",!1,r)-.5)),l&&(o=te.exec(n))&&"px"!==(o[3]||"px")&&(e.style[t]=n,n=w.css(e,t)),Ve(0,n,l)}}}),w.cssHooks.marginLeft=Fe(h.reliableMarginLeft,function(e,t){if(t)return(parseFloat(Re(e,"marginLeft"))||e.getBoundingClientRect().left-Ie(e,{marginLeft:0},function(){return e.getBoundingClientRect().left}))+"px"}),w.each({margin:"",padding:"",border:"Width"},function(e,t){w.cssHooks[e+t]={expand:function(n){for(var i=0,o={},r="string"==typeof n?n.split(" "):[n];i<4;i++)o[e+ne[i]+t]=r[i]||r[i-2]||r[0];return o}},"margin"!==e&&(w.cssHooks[e+t].set=Ve)}),w.fn.extend({css:function(e,t){return B(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]]=w.css(e,t[s],!1,i);return r}return void 0!==n?w.style(e,t,n):w.css(e,t)},e,t,arguments.length>1)}}),w.Tween=Je,Je.prototype={constructor:Je,init:function(e,t,n,i,o,r){this.elem=e,this.prop=n,this.easing=o||w.easing._default,this.options=t,this.start=this.now=this.cur(),this.end=i,this.unit=r||(w.cssNumber[n]?"":"px")},cur:function(){var e=Je.propHooks[this.prop];return e&&e.get?e.get(this):Je.propHooks._default.get(this)},run:function(e){var t,n=Je.propHooks[this.prop];return this.options.duration?this.pos=t=w.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):Je.propHooks._default.set(this),this}},Je.prototype.init.prototype=Je.prototype,Je.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=w.css(e.elem,e.prop,""))&&"auto"!==t?t:0},set:function(e){w.fx.step[e.prop]?w.fx.step[e.prop](e):1!==e.elem.nodeType||!w.cssHooks[e.prop]&&null==e.elem.style[Xe(e.prop)]?e.elem[e.prop]=e.now:w.style(e.elem,e.prop,e.now+e.unit)}}},Je.propHooks.scrollTop=Je.propHooks.scrollLeft={set:function(e){e.elem.nodeType&&e.elem.parentNode&&(e.elem[e.prop]=e.now)}},w.easing={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2},_default:"swing"},w.fx=Je.prototype.init,w.fx.step={};var Ze,et,tt,nt,it=/^(?:toggle|show|hide)$/,ot=/queueHooks$/;function rt(){et&&(!1===m.hidden&&e.requestAnimationFrame?e.requestAnimationFrame(rt):e.setTimeout(rt,w.fx.interval),w.fx.tick())}function st(){return e.setTimeout(function(){Ze=void 0}),Ze=Date.now()}function at(e,t){var n,i=0,o={height:e};for(t=t?1:0;i<4;i+=2-t)o["margin"+(n=ne[i])]=o["padding"+n]=e;return t&&(o.opacity=o.width=e),o}function lt(e,t,n){for(var i,o=(ut.tweeners[t]||[]).concat(ut.tweeners["*"]),r=0,s=o.length;r<s;r++)if(i=o[r].call(n,t,e))return i}function ut(e,t,n){var i,o,r=0,s=ut.prefilters.length,a=w.Deferred().always(function(){delete l.elem}),l=function(){if(o)return!1;for(var t=Ze||st(),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:w.extend({},t),opts:w.extend(!0,{specialEasing:{},easing:w.easing._default},n),originalProperties:t,originalOptions:n,startTime:Ze||st(),duration:n.duration,tweens:[],createTween:function(t,n){var i=w.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=U(n)],r=e[n],Array.isArray(r)&&(o=r[1],r=e[n]=r[0]),n!==i&&(e[i]=r,delete e[n]),(s=w.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=ut.prefilters[r].call(u,e,c,u.opts))return d(i.stop)&&(w._queueHooks(u.elem,u.opts.queue).stop=i.stop.bind(i)),i;return w.map(c,lt,u),d(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),w.fx.timer(w.extend(l,{elem:e,anim:u,queue:u.opts.queue})),u}w.Animation=w.extend(ut,{tweeners:{"*":[function(e,t){var n=this.createTween(e,t);return ae(n.elem,e,te.exec(t),n),n}]},tweener:function(e,t){d(e)?(t=e,e=["*"]):e=e.match(L);for(var n,i=0,o=e.length;i<o;i++)n=e[i],ut.tweeners[n]=ut.tweeners[n]||[],ut.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&&se(e),m=V.get(e,"fxshow");n.queue||(null==(s=w._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--,w.queue(e,"fx").length||s.empty.fire()})}));for(i in t)if(o=t[i],it.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]||w.style(e,i)}if((l=!w.isEmptyObject(t))||!w.isEmptyObject(h)){p&&1===e.nodeType&&(n.overflow=[d.overflow,d.overflowX,d.overflowY],null==(u=m&&m.display)&&(u=V.get(e,"display")),"none"===(c=w.css(e,"display"))&&(u?c=u:(ue([e],!0),u=e.style.display||u,c=w.css(e,"display"),ue([e]))),("inline"===c||"inline-block"===c&&null!=u)&&"none"===w.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=V.access(e,"fxshow",{display:u}),r&&(m.hidden=!g),g&&ue([e],!0),f.done(function(){g||ue([e]),V.remove(e,"fxshow");for(i in h)w.style(e,i,h[i])})),l=lt(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?ut.prefilters.unshift(e):ut.prefilters.push(e)}}),w.speed=function(e,t,n){var i=e&&"object"==typeof e?w.extend({},e):{complete:n||!n&&t||d(e)&&e,duration:e,easing:n&&t||t&&!d(t)&&t};return w.fx.off?i.duration=0:"number"!=typeof i.duration&&(i.duration in w.fx.speeds?i.duration=w.fx.speeds[i.duration]:i.duration=w.fx.speeds._default),null!=i.queue&&!0!==i.queue||(i.queue="fx"),i.old=i.complete,i.complete=function(){d(i.old)&&i.old.call(this),i.queue&&w.dequeue(this,i.queue)},i},w.fn.extend({fadeTo:function(e,t,n,i){return this.filter(se).css("opacity",0).show().end().animate({opacity:t},e,n,i)},animate:function(e,t,n,i){var o=w.isEmptyObject(e),r=w.speed(t,n,i),s=function(){var t=ut(this,w.extend({},e),r);(o||V.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&&this.queue(e||"fx",[]),this.each(function(){var t=!0,o=null!=e&&e+"queueHooks",r=w.timers,s=V.get(this);if(o)s[o]&&s[o].stop&&i(s[o]);else for(o in s)s[o]&&s[o].stop&&ot.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||w.dequeue(this,e)})},finish:function(e){return!1!==e&&(e=e||"fx"),this.each(function(){var t,n=V.get(this),i=n[e+"queue"],o=n[e+"queueHooks"],r=w.timers,s=i?i.length:0;for(n.finish=!0,w.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})}}),w.each(["toggle","show","hide"],function(e,t){var n=w.fn[t];w.fn[t]=function(e,i,o){return null==e||"boolean"==typeof e?n.apply(this,arguments):this.animate(at(t,!0),e,i,o)}}),w.each({slideDown:at("show"),slideUp:at("hide"),slideToggle:at("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(e,t){w.fn[e]=function(e,n,i){return this.animate(t,e,n,i)}}),w.timers=[],w.fx.tick=function(){var e,t=0,n=w.timers;for(Ze=Date.now();t<n.length;t++)(e=n[t])()||n[t]!==e||n.splice(t--,1);n.length||w.fx.stop(),Ze=void 0},w.fx.timer=function(e){w.timers.push(e),w.fx.start()},w.fx.interval=13,w.fx.start=function(){et||(et=!0,rt())},w.fx.stop=function(){et=null},w.fx.speeds={slow:600,fast:200,_default:400},w.fn.delay=function(t,n){return t=w.fx&&w.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)}})},tt=m.createElement("input"),nt=m.createElement("select").appendChild(m.createElement("option")),tt.type="checkbox",h.checkOn=""!==tt.value,h.optSelected=nt.selected,(tt=m.createElement("input")).value="t",tt.type="radio",h.radioValue="t"===tt.value;var ct,pt=w.expr.attrHandle;w.fn.extend({attr:function(e,t){return B(this,w.attr,e,t,arguments.length>1)},removeAttr:function(e){return this.each(function(){w.removeAttr(this,e)})}}),w.extend({attr:function(e,t,n){var i,o,r=e.nodeType;if(3!==r&&8!==r&&2!==r)return void 0===e.getAttribute?w.prop(e,t,n):(1===r&&w.isXMLDoc(e)||(o=w.attrHooks[t.toLowerCase()]||(w.expr.match.bool.test(t)?ct:void 0)),void 0!==n?null===n?void w.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=w.find.attr(e,t))?void 0:i)},attrHooks:{type:{set:function(e,t){if(!h.radioValue&&"radio"===t&&k(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(L);if(o&&1===e.nodeType)for(;n=o[i++];)e.removeAttribute(n)}}),ct={set:function(e,t,n){return!1===t?w.removeAttr(e,n):e.setAttribute(n,n),n}},w.each(w.expr.match.bool.source.match(/\w+/g),function(e,t){var n=pt[t]||w.find.attr;pt[t]=function(e,t,i){var o,r,s=t.toLowerCase();return i||(r=pt[s],pt[s]=o,o=null!=n(e,t,i)?s:null,pt[s]=r),o}});var ft=/^(?:input|select|textarea|button)$/i,ht=/^(?:a|area)$/i;function dt(e){return(e.match(L)||[]).join(" ")}function gt(e){return e.getAttribute&&e.getAttribute("class")||""}function mt(e){return Array.isArray(e)?e:"string"==typeof e&&e.match(L)||[]}w.fn.extend({prop:function(e,t){return B(this,w.prop,e,t,arguments.length>1)},removeProp:function(e){return this.each(function(){delete this[w.propFix[e]||e]})}}),w.extend({prop:function(e,t,n){var i,o,r=e.nodeType;if(3!==r&&8!==r&&2!==r)return 1===r&&w.isXMLDoc(e)||(t=w.propFix[t]||t,o=w.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=w.find.attr(e,"tabindex");return t?parseInt(t,10):ft.test(e.nodeName)||ht.test(e.nodeName)&&e.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),h.optSelected||(w.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)}}),w.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){w.propFix[this.toLowerCase()]=this}),w.fn.extend({addClass:function(e){var t,n,i,o,r,s,a,l=0;if(d(e))return this.each(function(t){w(this).addClass(e.call(this,t,gt(this)))});if((t=mt(e)).length)for(;n=this[l++];)if(o=gt(n),i=1===n.nodeType&&" "+dt(o)+" "){for(s=0;r=t[s++];)i.indexOf(" "+r+" ")<0&&(i+=r+" ");o!==(a=dt(i))&&n.setAttribute("class",a)}return this},removeClass:function(e){var t,n,i,o,r,s,a,l=0;if(d(e))return this.each(function(t){w(this).removeClass(e.call(this,t,gt(this)))});if(!arguments.length)return this.attr("class","");if((t=mt(e)).length)for(;n=this[l++];)if(o=gt(n),i=1===n.nodeType&&" "+dt(o)+" "){for(s=0;r=t[s++];)for(;i.indexOf(" "+r+" ")>-1;)i=i.replace(" "+r+" "," ");o!==(a=dt(i))&&n.setAttribute("class",a)}return this},toggleClass:function(e,t){var n=typeof e,i="string"===n||Array.isArray(e);return"boolean"==typeof t&&i?t?this.addClass(e):this.removeClass(e):d(e)?this.each(function(n){w(this).toggleClass(e.call(this,n,gt(this),t),t)}):this.each(function(){var t,o,r,s;if(i)for(o=0,r=w(this),s=mt(e);t=s[o++];)r.hasClass(t)?r.removeClass(t):r.addClass(t);else void 0!==e&&"boolean"!==n||((t=gt(this))&&V.set(this,"__className__",t),this.setAttribute&&this.setAttribute("class",t||!1===e?"":V.get(this,"__className__")||""))})},hasClass:function(e){var t,n,i=0;for(t=" "+e+" ";n=this[i++];)if(1===n.nodeType&&(" "+dt(gt(n))+" ").indexOf(t)>-1)return!0;return!1}});var vt=/\r/g;w.fn.extend({val:function(e){var t,n,i,o=this[0];return arguments.length?(i=d(e),this.each(function(n){var o;1===this.nodeType&&(null==(o=i?e.call(this,n,w(this).val()):e)?o="":"number"==typeof o?o+="":Array.isArray(o)&&(o=w.map(o,function(e){return null==e?"":e+""})),(t=w.valHooks[this.type]||w.valHooks[this.nodeName.toLowerCase()])&&"set"in t&&void 0!==t.set(this,o,"value")||(this.value=o))})):o?(t=w.valHooks[o.type]||w.valHooks[o.nodeName.toLowerCase()])&&"get"in t&&void 0!==(n=t.get(o,"value"))?n:"string"==typeof(n=o.value)?n.replace(vt,""):null==n?"":n:void 0}}),w.extend({valHooks:{option:{get:function(e){var t=w.find.attr(e,"value");return null!=t?t:dt(w.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||!k(n.parentNode,"optgroup"))){if(t=w(n).val(),s)return t;a.push(t)}return a},set:function(e,t){for(var n,i,o=e.options,r=w.makeArray(t),s=o.length;s--;)((i=o[s]).selected=w.inArray(w.valHooks.option.get(i),r)>-1)&&(n=!0);return n||(e.selectedIndex=-1),r}}}}),w.each(["radio","checkbox"],function(){w.valHooks[this]={set:function(e,t){if(Array.isArray(t))return e.checked=w.inArray(w(e).val(),t)>-1}},h.checkOn||(w.valHooks[this].get=function(e){return null===e.getAttribute("value")?"on":e.value})}),h.focusin="onfocusin"in e;var yt=/^(?:focusinfocus|focusoutblur)$/,bt=function(e){e.stopPropagation()};w.extend(w.event,{trigger:function(t,n,i,o){var r,s,a,l,u,p,f,h,v=[i||m],y=c.call(t,"type")?t.type:t,b=c.call(t,"namespace")?t.namespace.split("."):[];if(s=h=a=i=i||m,3!==i.nodeType&&8!==i.nodeType&&!yt.test(y+w.event.triggered)&&(y.indexOf(".")>-1&&(y=(b=y.split(".")).shift(),b.sort()),u=y.indexOf(":")<0&&"on"+y,(t=t[w.expando]?t:new w.Event(y,"object"==typeof t&&t)).isTrigger=o?2:3,t.namespace=b.join("."),t.rnamespace=t.namespace?new RegExp("(^|\\.)"+b.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,t.result=void 0,t.target||(t.target=i),n=null==n?[t]:w.makeArray(n,[t]),f=w.event.special[y]||{},o||!f.trigger||!1!==f.trigger.apply(i,n))){if(!o&&!f.noBubble&&!g(i)){for(l=f.delegateType||y,yt.test(l+y)||(s=s.parentNode);s;s=s.parentNode)v.push(s),a=s;a===(i.ownerDocument||m)&&v.push(a.defaultView||a.parentWindow||e)}for(r=0;(s=v[r++])&&!t.isPropagationStopped();)h=s,t.type=r>1?l:f.bindType||y,(p=(V.get(s,"events")||Object.create(null))[t.type]&&V.get(s,"handle"))&&p.apply(s,n),(p=u&&s[u])&&p.apply&&Y(s)&&(t.result=p.apply(s,n),!1===t.result&&t.preventDefault());return t.type=y,o||t.isDefaultPrevented()||f._default&&!1!==f._default.apply(v.pop(),n)||!Y(i)||u&&d(i[y])&&!g(i)&&((a=i[u])&&(i[u]=null),w.event.triggered=y,t.isPropagationStopped()&&h.addEventListener(y,bt),i[y](),t.isPropagationStopped()&&h.removeEventListener(y,bt),w.event.triggered=void 0,a&&(i[u]=a)),t.result}},simulate:function(e,t,n){var i=w.extend(new w.Event,n,{type:e,isSimulated:!0});w.event.trigger(i,null,t)}}),w.fn.extend({trigger:function(e,t){return this.each(function(){w.event.trigger(e,t,this)})},triggerHandler:function(e,t){var n=this[0];if(n)return w.event.trigger(e,t,n,!0)}}),h.focusin||w.each({focus:"focusin",blur:"focusout"},function(e,t){var n=function(e){w.event.simulate(t,e.target,w.event.fix(e))};w.event.special[t]={setup:function(){var i=this.ownerDocument||this.document||this,o=V.access(i,t);o||i.addEventListener(e,n,!0),V.access(i,t,(o||0)+1)},teardown:function(){var i=this.ownerDocument||this.document||this,o=V.access(i,t)-1;o?V.access(i,t,o):(i.removeEventListener(e,n,!0),V.remove(i,t))}}});var xt=e.location,wt={guid:Date.now()},Ct=/\?/;w.parseXML=function(t){var n,i;if(!t||"string"!=typeof t)return null;try{n=(new e.DOMParser).parseFromString(t,"text/xml")}catch(e){}return i=n&&n.getElementsByTagName("parsererror")[0],n&&!i||w.error("Invalid XML: "+(i?w.map(i.childNodes,function(e){return e.textContent}).join("\n"):t)),n};var _t=/\[\]$/,Tt=/\r?\n/g,Et=/^(?:submit|button|image|reset|file)$/i,St=/^(?:input|select|textarea|keygen)/i;function kt(e,t,n,i){var o;if(Array.isArray(t))w.each(t,function(t,o){n||_t.test(e)?i(e,o):kt(e+"["+("object"==typeof o&&null!=o?t:"")+"]",o,n,i)});else if(n||"object"!==b(t))i(e,t);else for(o in t)kt(e+"["+o+"]",t[o],n,i)}w.param=function(e,t){var n,i=[],o=function(e,t){var n=d(t)?t():t;i[i.length]=encodeURIComponent(e)+"="+encodeURIComponent(null==n?"":n)};if(null==e)return"";if(Array.isArray(e)||e.jquery&&!w.isPlainObject(e))w.each(e,function(){o(this.name,this.value)});else for(n in e)kt(n,e[n],t,o);return i.join("&")},w.fn.extend({serialize:function(){return w.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var e=w.prop(this,"elements");return e?w.makeArray(e):this}).filter(function(){var e=this.type;return this.name&&!w(this).is(":disabled")&&St.test(this.nodeName)&&!Et.test(e)&&(this.checked||!fe.test(e))}).map(function(e,t){var n=w(this).val();return null==n?null:Array.isArray(n)?w.map(n,function(e){return{name:t.name,value:e.replace(Tt,"\r\n")}}):{name:t.name,value:n.replace(Tt,"\r\n")}}).get()}});var Dt=/%20/g,Pt=/#.*$/,Nt=/([?&])_=[^&]*/,At=/^(.*?):[ \t]*([^\r\n]*)$/gm,jt=/^(?:GET|HEAD)$/,Mt=/^\/\//,Ht={},Lt={},Ot="*/".concat("*"),It=m.createElement("a");function qt(e){return function(t,n){"string"!=typeof t&&(n=t,t="*");var i,o=0,r=t.toLowerCase().match(L)||[];if(d(n))for(;i=r[o++];)"+"===i[0]?(i=i.slice(1)||"*",(e[i]=e[i]||[]).unshift(n)):(e[i]=e[i]||[]).push(n)}}function Rt(e,t,n,i){var o={},r=e===Lt;function s(a){var l;return o[a]=!0,w.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 Ft(e,t){var n,i,o=w.ajaxSettings.flatOptions||{};for(n in t)void 0!==t[n]&&((o[n]?e:i||(i={}))[n]=t[n]);return i&&w.extend(!0,e,i),e}It.href=xt.href,w.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:xt.href,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(xt.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Ot,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":w.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(e,t){return t?Ft(Ft(e,w.ajaxSettings),t):Ft(w.ajaxSettings,e)},ajaxPrefilter:qt(Ht),ajaxTransport:qt(Lt),ajax:function(t,n){"object"==typeof t&&(n=t,t=void 0),n=n||{};var i,o,r,s,a,l,u,c,p,f,h=w.ajaxSetup({},n),d=h.context||h,g=h.context&&(d.nodeType||d.jquery)?w(d):w.event,v=w.Deferred(),y=w.Callbacks("once memory"),b=h.statusCode||{},x={},C={},_="canceled",T={readyState:0,getResponseHeader:function(e){var t;if(u){if(!s)for(s={};t=At.exec(r);)s[t[1].toLowerCase()+" "]=(s[t[1].toLowerCase()+" "]||[]).concat(t[2]);t=s[e.toLowerCase()+" "]}return null==t?null:t.join(", ")},getAllResponseHeaders:function(){return u?r:null},setRequestHeader:function(e,t){return null==u&&(e=C[e.toLowerCase()]=C[e.toLowerCase()]||e,x[e]=t),this},overrideMimeType:function(e){return null==u&&(h.mimeType=e),this},statusCode:function(e){var t;if(e)if(u)T.always(e[T.status]);else for(t in e)b[t]=[b[t],e[t]];return this},abort:function(e){var t=e||_;return i&&i.abort(t),E(0,t),this}};if(v.promise(T),h.url=((t||h.url||xt.href)+"").replace(Mt,xt.protocol+"//"),h.type=n.method||n.type||h.method||h.type,h.dataTypes=(h.dataType||"*").toLowerCase().match(L)||[""],null==h.crossDomain){l=m.createElement("a");try{l.href=h.url,l.href=l.href,h.crossDomain=It.protocol+"//"+It.host!=l.protocol+"//"+l.host}catch(e){h.crossDomain=!0}}if(h.data&&h.processData&&"string"!=typeof h.data&&(h.data=w.param(h.data,h.traditional)),Rt(Ht,h,n,T),u)return T;(c=w.event&&h.global)&&0==w.active++&&w.event.trigger("ajaxStart"),h.type=h.type.toUpperCase(),h.hasContent=!jt.test(h.type),o=h.url.replace(Pt,""),h.hasContent?h.data&&h.processData&&0===(h.contentType||"").indexOf("application/x-www-form-urlencoded")&&(h.data=h.data.replace(Dt,"+")):(f=h.url.slice(o.length),h.data&&(h.processData||"string"==typeof h.data)&&(o+=(Ct.test(o)?"&":"?")+h.data,delete h.data),!1===h.cache&&(o=o.replace(Nt,"$1"),f=(Ct.test(o)?"&":"?")+"_="+wt.guid+++f),h.url=o+f),h.ifModified&&(w.lastModified[o]&&T.setRequestHeader("If-Modified-Since",w.lastModified[o]),w.etag[o]&&T.setRequestHeader("If-None-Match",w.etag[o])),(h.data&&h.hasContent&&!1!==h.contentType||n.contentType)&&T.setRequestHeader("Content-Type",h.contentType),T.setRequestHeader("Accept",h.dataTypes[0]&&h.accepts[h.dataTypes[0]]?h.accepts[h.dataTypes[0]]+("*"!==h.dataTypes[0]?", "+Ot+"; q=0.01":""):h.accepts["*"]);for(p in h.headers)T.setRequestHeader(p,h.headers[p]);if(h.beforeSend&&(!1===h.beforeSend.call(d,T,h)||u))return T.abort();if(_="abort",y.add(h.complete),T.done(h.success),T.fail(h.error),i=Rt(Lt,h,n,T)){if(T.readyState=1,c&&g.trigger("ajaxSend",[T,h]),u)return T;h.async&&h.timeout>0&&(a=e.setTimeout(function(){T.abort("timeout")},h.timeout));try{u=!1,i.send(x,E)}catch(e){if(u)throw e;E(-1,e)}}else E(-1,"No Transport");function E(t,n,s,l){var p,f,m,x,C,_=n;u||(u=!0,a&&e.clearTimeout(a),i=void 0,r=l||"",T.readyState=t>0?4:0,p=t>=200&&t<300||304===t,s&&(x=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]}(h,T,s)),!p&&w.inArray("script",h.dataTypes)>-1&&w.inArray("json",h.dataTypes)<0&&(h.converters["text script"]=function(){}),x=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}}(h,x,T,p),p?(h.ifModified&&((C=T.getResponseHeader("Last-Modified"))&&(w.lastModified[o]=C),(C=T.getResponseHeader("etag"))&&(w.etag[o]=C)),204===t||"HEAD"===h.type?_="nocontent":304===t?_="notmodified":(_=x.state,f=x.data,p=!(m=x.error))):(m=_,!t&&_||(_="error",t<0&&(t=0))),T.status=t,T.statusText=(n||_)+"",p?v.resolveWith(d,[f,_,T]):v.rejectWith(d,[T,_,m]),T.statusCode(b),b=void 0,c&&g.trigger(p?"ajaxSuccess":"ajaxError",[T,h,p?f:m]),y.fireWith(d,[T,_]),c&&(g.trigger("ajaxComplete",[T,h]),--w.active||w.event.trigger("ajaxStop")))}return T},getJSON:function(e,t,n){return w.get(e,t,n,"json")},getScript:function(e,t){return w.get(e,void 0,t,"script")}}),w.each(["get","post"],function(e,t){w[t]=function(e,n,i,o){return d(n)&&(o=o||i,i=n,n=void 0),w.ajax(w.extend({url:e,type:t,dataType:o,data:n,success:i},w.isPlainObject(e)&&e))}}),w.ajaxPrefilter(function(e){var t;for(t in e.headers)"content-type"===t.toLowerCase()&&(e.contentType=e.headers[t]||"")}),w._evalUrl=function(e,t,n){return w.ajax({url:e,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,converters:{"text script":function(){}},dataFilter:function(e){w.globalEval(e,t,n)}})},w.fn.extend({wrapAll:function(e){var t;return this[0]&&(d(e)&&(e=e.call(this[0])),t=w(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 d(e)?this.each(function(t){w(this).wrapInner(e.call(this,t))}):this.each(function(){var t=w(this),n=t.contents();n.length?n.wrapAll(e):t.append(e)})},wrap:function(e){var t=d(e);return this.each(function(n){w(this).wrapAll(t?e.call(this,n):e)})},unwrap:function(e){return this.parent(e).not("body").each(function(){w(this).replaceWith(this.childNodes)}),this}}),w.expr.pseudos.hidden=function(e){return!w.expr.pseudos.visible(e)},w.expr.pseudos.visible=function(e){return!!(e.offsetWidth||e.offsetHeight||e.getClientRects().length)},w.ajaxSettings.xhr=function(){try{return new e.XMLHttpRequest}catch(e){}};var Wt={0:200,1223:204},Bt=w.ajaxSettings.xhr();h.cors=!!Bt&&"withCredentials"in Bt,h.ajax=Bt=!!Bt,w.ajaxTransport(function(t){var n,i;if(h.cors||Bt&&!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.ontimeout=a.onreadystatechange=null,"abort"===e?a.abort():"error"===e?"number"!=typeof a.status?r(0,"error"):r(a.status,a.statusText):r(Wt[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=a.ontimeout=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()}}}),w.ajaxPrefilter(function(e){e.crossDomain&&(e.contents.script=!1)}),w.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 w.globalEval(e),e}}}),w.ajaxPrefilter("script",function(e){void 0===e.cache&&(e.cache=!1),e.crossDomain&&(e.type="GET")}),w.ajaxTransport("script",function(e){var t,n;if(e.crossDomain||e.scriptAttrs)return{send:function(i,o){t=w("<script>").attr(e.scriptAttrs||{}).prop({charset:e.scriptCharset,src:e.url}).on("load error",n=function(e){t.remove(),n=null,e&&o("error"===e.type?404:200,e.type)}),m.head.appendChild(t[0])},abort:function(){n&&n()}}});var zt,Xt=[],$t=/(=)\?(?=&|$)|\?\?/;w.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=Xt.pop()||w.expando+"_"+wt.guid++;return this[e]=!0,e}}),w.ajaxPrefilter("json jsonp",function(t,n,i){var o,r,s,a=!1!==t.jsonp&&($t.test(t.url)?"url":"string"==typeof t.data&&0===(t.contentType||"").indexOf("application/x-www-form-urlencoded")&&$t.test(t.data)&&"data");if(a||"jsonp"===t.dataTypes[0])return o=t.jsonpCallback=d(t.jsonpCallback)?t.jsonpCallback():t.jsonpCallback,a?t[a]=t[a].replace($t,"$1"+o):!1!==t.jsonp&&(t.url+=(Ct.test(t.url)?"&":"?")+t.jsonp+"="+o),t.converters["script json"]=function(){return s||w.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?w(e).removeProp(o):e[o]=r,t[o]&&(t.jsonpCallback=n.jsonpCallback,Xt.push(o)),s&&d(r)&&r(s[0]),s=r=void 0}),"script"}),h.createHTMLDocument=((zt=m.implementation.createHTMLDocument("").body).innerHTML="<form></form><form></form>",2===zt.childNodes.length),w.parseHTML=function(e,t,n){return"string"!=typeof e?[]:("boolean"==typeof t&&(n=t,t=!1),t||(h.createHTMLDocument?((i=(t=m.implementation.createHTMLDocument("")).createElement("base")).href=m.location.href,t.head.appendChild(i)):t=m),o=D.exec(e),r=!n&&[],o?[t.createElement(o[1])]:(o=be([e],t,r),r&&r.length&&w(r).remove(),w.merge([],o.childNodes)));var i,o,r},w.fn.load=function(e,t,n){var i,o,r,s=this,a=e.indexOf(" ");return a>-1&&(i=dt(e.slice(a)),e=e.slice(0,a)),d(t)?(n=t,t=void 0):t&&"object"==typeof t&&(o="POST"),s.length>0&&w.ajax({url:e,type:o||"GET",dataType:"html",data:t}).done(function(e){r=arguments,s.html(i?w("<div>").append(w.parseHTML(e)).find(i):e)}).always(n&&function(e,t){s.each(function(){n.apply(this,r||[e.responseText,t,e])})}),this},w.expr.pseudos.animated=function(e){return w.grep(w.timers,function(t){return e===t.elem}).length},w.offset={setOffset:function(e,t,n){var i,o,r,s,a,l,u=w.css(e,"position"),c=w(e),p={};"static"===u&&(e.style.position="relative"),a=c.offset(),r=w.css(e,"top"),l=w.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),d(t)&&(t=t.call(e,n,w.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)}},w.fn.extend({offset:function(e){if(arguments.length)return void 0===e?this:this.each(function(t){w.offset.setOffset(this,e,t)});var t,n,i=this[0];return i?i.getClientRects().length?(t=i.getBoundingClientRect(),n=i.ownerDocument.defaultView,{top:t.top+n.pageYOffset,left:t.left+n.pageXOffset}):{top:0,left:0}:void 0},position:function(){if(this[0]){var e,t,n,i=this[0],o={top:0,left:0};if("fixed"===w.css(i,"position"))t=i.getBoundingClientRect();else{for(t=this.offset(),n=i.ownerDocument,e=i.offsetParent||n.documentElement;e&&(e===n.body||e===n.documentElement)&&"static"===w.css(e,"position");)e=e.parentNode;e&&e!==i&&1===e.nodeType&&((o=w(e).offset()).top+=w.css(e,"borderTopWidth",!0),o.left+=w.css(e,"borderLeftWidth",!0))}return{top:t.top-o.top-w.css(i,"marginTop",!0),left:t.left-o.left-w.css(i,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var e=this.offsetParent;e&&"static"===w.css(e,"position");)e=e.offsetParent;return e||ie})}}),w.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(e,t){var n="pageYOffset"===t;w.fn[e]=function(i){return B(this,function(e,i,o){var r;if(g(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)}}),w.each(["top","left"],function(e,t){w.cssHooks[t]=Fe(h.pixelPosition,function(e,n){if(n)return n=Re(e,t),Le.test(n)?w(e).position()[t]+"px":n})}),w.each({Height:"height",Width:"width"},function(e,t){w.each({padding:"inner"+e,content:t,"":"outer"+e},function(n,i){w.fn[i]=function(o,r){var s=arguments.length&&(n||"boolean"!=typeof o),a=n||(!0===o||!0===r?"margin":"border");return B(this,function(t,n,o){var r;return g(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?w.css(t,n,a):w.style(t,n,o,a)},t,s?o:void 0,s)}})}),w.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(e,t){w.fn[t]=function(e){return this.on(t,e)}}),w.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)},hover:function(e,t){return this.mouseenter(e).mouseleave(t||e)}}),w.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){w.fn[t]=function(e,n){return arguments.length>0?this.on(t,null,e,n):this.trigger(t)}});var Ut=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g;w.proxy=function(e,t){var n,i,r;if("string"==typeof t&&(n=e[t],t=e,e=n),d(e))return i=o.call(arguments,2),(r=function(){return e.apply(t||this,i.concat(o.call(arguments)))}).guid=e.guid=e.guid||w.guid++,r},w.holdReady=function(e){e?w.readyWait++:w.ready(!0)},w.isArray=Array.isArray,w.parseJSON=JSON.parse,w.nodeName=k,w.isFunction=d,w.isWindow=g,w.camelCase=U,w.type=b,w.now=Date.now,w.isNumeric=function(e){var t=w.type(e);return("number"===t||"string"===t)&&!isNaN(e-parseFloat(e))},w.trim=function(e){return null==e?"":(e+"").replace(Ut,"")},"function"==typeof define&&define.amd&&define("jquery",[],function(){return w});var Yt=e.jQuery,Gt=e.$;return w.noConflict=function(t){return e.$===w&&(e.$=Gt),t&&e.jQuery===w&&(e.jQuery=Yt),w},void 0===t&&(e.jQuery=e.$=w),w}),
/*! 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;if(m<1&&(this.diameter=m=1),r(this.cont,{width:m+"px",height:m+"px"}),s(this.can,{width:m,height:m}),this.can.offsetWidth<1||this.can.offsetHeight<1)this._pendingDraw=!0;else{for(delete this._pendingDraw,g.clearRect(0,0,1e3,1e3),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){if(e&&delete this.prevTime,!(this.can.offsetWidth<1||this.can.offsetHeight<1))if(this._pendingDraw)this.draw();else{var t,n=this.con,i=this.diameter,o=Date.now();if(i<1&&(this.diameter=i=1),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.8
 * Date: 2022.07.28
 */
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,k=7,y=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,kt=3,yt={gt:0,kt:1,yt: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,kt: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,ki:45,yi: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:3500,Bi:4e3,Hi: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={zi:0,Xi:1,Gi:2,Vi: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,ki=1,yi=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 ks,ys,_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=(ks="clipPath",ys="inset(10%)",!!(_s=Ms(rs.style,ks,!0))&&(ns[ks]=_s,rs.style[_s]=ys,!(!rs.style[_s]||"none"==rs.style[_s])||!!(_s==ks&&(_s="Webkit"+ks.charAt(0).toUpperCase()+ks.slice(1))in rs.style&&(rs.style[_s]=ys,rs.style[_s]))&&(ns[ks]=_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.$i,d:t};this.$i?this.$i.n=i:(this.Wi=i,this.ji.front&&(this.ji.n=i)),this.$i=i,this.ji.back&&(this.ji.p=i)},Qi:function(t,i,s){for(var e=this.Wi;e;){if((i?t(e.d):e.d===t)&&(e.p?e.p.n=e.n:this.Wi=e.n,e.n?e.n.p=e.p:this.$i=e.p,this.ji.n===e&&(this.ji.n=e.n),this.ji.p===e&&(this.ji.p=e.p),!s))return;e=e.n}},remove:function(t,i){this.Qi(t,!1,i)},removeIf:function(t,i){this.Qi(t,!0,i)},empty:function(){return!this.Wi},clear:function(){this.Wi=this.$i=null,this.toFront()},toFront:function(){this.ji={n:this.Wi,p:null,front:1}},toBack:function(){this.ji={n:this.null,p:this.$i,back:1}},next:function(){var t=this.ji.n;return t?(this.ji=t,t.d):(this.toBack(),null)},previous:function(){var t=this.ji.p;return t?(this.ji=t,t.d):(this.toFront(),null)},hasNext:function(){return!!this.ji.n},hasPrevious:function(){return!!this.ji.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.Ki=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.qi()),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.qi(),!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.Ji(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.Ki=0,this.items.length=0,this.loadingItems.length=0,this.nextIdx=0,this.loadedCount=0},progress:function(){return this.Ki},holdCompletion:function(t){void 0===t&&(t=!0),this.options.holdCompletion!==t&&(this.options.holdCompletion=t,t||this.qi())},qi: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.Ki&&0!==t||this.options.holdCompletion&&this.loadedCount===this.items.length||(this.Ki=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))}},Ji: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.Zi=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.ss.call(this,s):(i.ss.call(this,s),Zs.fire("ap-click",i,s,!1))},this.ss=function(s){t(i.node).off("mouseup",i.Zi).removeData("apSglClickX apSglClickY"),t(Zi).off("mouseup",i.ss)},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.Zi).on("mouseup",i.Zi),t(Zi).off("mouseup",i.ss).on("mouseup",i.ss)}})},teardown:function(){t(this.node).off(".apSglClick").removeData("apSglClickX apSglClickY"),this.Zi&&(t(this.node).off("mouseup",this.Zi),delete this.Zi),this.ss&&(t(Zi).off("mouseup",this.ss),delete this.ss)}},"ap-dblclick":{setup:function(){var i=this;this.es=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.ns.call(this,s);else if(t(this).off("mouseup",i.es).removeData("apDblClickX apDblClickY"),t(Zi).off("mouseup",i.ns),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.ns=function(s){t(i.node).off("mouseup",i.es).removeData("apDblClickX apDblClickY apDblClickStart apDblClickTrue"),t(Zi).off("mouseup",i.ns)},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.es).on("mouseup",i.es),t(Zi).off("mouseup",i.ns).on("mouseup",i.ns)}})},teardown:function(){t(this.node).off(".apDblClick").removeData("apDblClickX apDblClickY apDblClickStart apDblClickTimer apDblClickTrue"),this.es&&(t(this.node).off("mouseup",this.es),delete this.es),this.ns&&(t(Zi).off("mouseup",this.ns),delete this.ns)}},"ap-rollover":{setup:function(){if(!he.browser.mobile){var i=this;t(this.node).on("mouseover.apRollover",function(s){!i.filterEvent(s)&&i.os(!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.os(!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.os(!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||ue,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.os(!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 yt.gt:r=i.vars.get(r),c[2]?a=i.vars.get(a):i.vars.us(c[1])==wi.NUMBER&&(a=Number(a));break;case yt.kt:(r=s.currentTarget&&s.currentTarget.slide&&s.currentTarget.slide.object(r))?a==Mi?(a=c[2],r=r.cs.name()):r=r.cs.id():(as("Object not found: "+c[1]),r=a=0);break;case yt.yt:s.currentTarget&&s.currentTarget.attempts?(r=s.currentTarget.attempts(),a===Ci&&(a=s.currentTarget.maxAttempts())<0&&(a=1/0)):r=0;break;case yt.I:r=s.value&&s.value.id&&s.value.id();break;case yt.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 yt.xt:o=a;break;case yt.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.us(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.us(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.fs&&(a=e.currentTarget.ls,e.currentTarget.fs(!1)),a||s.pause(!1);break;case Rt.Ht:s.end();break;case Rt.yi: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.ds(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)),y=-2===b?e.value:e.currentTarget.slide.object(b)){var w,g=y.ps(function(t){return!0===t.effectAction});for(m=0;m<g.length;++m)(w=g[m]).actionData===r?(T=w,w.remove()):y.vs(w),w.started()&&w.totalTime()<w.totalDuration()&&w.pause(w.totalDuration());if(!T){for((T=new lh).actionData=r,T.effectAction=!0,y.ms(T),m=1;m<r.length;++m)(v=r[m])&&(p=he.createEffect(y,v[0],v[1],v[2],v[3]))&&T.addChild(p);T.addChild(new ah(function(){setTimeout(function(){y.vs(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)(y=e.currentTarget.slide.object(N))&&y.os(!0,!0)&&y.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)(y=e.currentTarget.slide.object(N))&&y.os(!0,!0)&&y.clear(!0);break;case Rt.oi:case Rt.Zt:var k=r[1]<Ri&&h==Rt.Zt;if(s.bs(r[0],r[1],r,k,h==Rt.oi?n:null),h==Rt.oi)return;break;case Rt.kt:var y=e.currentTarget&&e.currentTarget.slide&&e.currentTarget.slide.object(r[0]),_=r[1];_==Mi?y&&y.state(r[2]):y&&y.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.ws(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.ws(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.ws(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.ws(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.us(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.gs(S)&&(s.ks.vars[S]=s.variable(S),s.lms&&s.lms.storeSuspendData(s.ks,!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)(y=e.currentTarget.slide.object(A))&&y.ys&&y.ys(D);break;case Rt.wi:case Rt.gi:case Rt.ki:if(s.ended)break;var N;if(e.currentTarget&&e.currentTarget.slide)typeof(N=r)===Ai&&(N=s.variable(N)),(y=e.currentTarget.slide.object(N))&&y.enabled()&&y._s.k==i.U&&(h==Rt.wi?y.startTimer():h==Rt.gi?y.pauseTimer():h==Rt.ki&&y.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.8"},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 xe(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].Ts()},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].Ts()},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].Ts()},pageVisible:function(){return!Rs||!Zi[Rs]},onPageVisibilityChanged:function(){var t,i,s,e;if(this.pageVisible()){if(t=this.xs){for(s=0,e=t.length;s<e;++s)(i=t[s]).allPaused()&&i.pauseAll(!1);t.length=0}}else for(this.xs||(this.xs=[]),s=0,e=(t=this.presentations).length;s<e;++s)(i=t[s]).allPaused()||(i.pauseAll(!0),this.xs.push(i))},Ss:function(t){t.allPaused()||(t.pauseAll(!0),this.xs||(this.xs=[]),this.xs.push(t))},fullscreen:Os};function re(t){he.browser.iDevice&&t.addEventListener("touchstart",function(t){t.preventDefault()},!1)}function ae(){try{for(var t=he.presentations;t.length>0;)he.close(t[0])}catch(t){window.removeEventListener("unload",ae,!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()}),window.addEventListener(he.browser.iDevice?"pagehide":"beforeunload",ae,!1),he.browser.iDevice||window.addEventListener("unload",ae,!1),t(Zi).on("keydown keyup",function(t){var i,s;for(i=0,s=he.presentations.length;i<s;++i)he.presentations[i].Es(t)}),Rs&&t(Zi).on(Rs.replace(/[H|h]idden/,"")+"visibilitychange",function(){he.onPageVisibilityChanged()});var oe=Ls({$init:function(t){this.Ms=arguments.length?t:null},text:function(t){var i,s,e,n=he.messages[this.Ms],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.Ms?he.defaultLang:this.Ms,e=""+t;return"ar"!==s&&"ar"!==s.substr(0,2)||(i="۰ ۱ ۲ ۳ ۴ ۵ ۶ ۷ ۸ ۹".split(" "),e=e.replace(/[0-9]/g,function(t){return i[t]})),e}}),ue=new oe;function ce(t){return("0"+t).slice(-2)}function fe(t){return("0"+(i=t,i+1)).slice(-2);var i}function le(t){return t.toString().slice(-2)}var de=/%[^\s%]+%/g,pe=Ls({$init:function(t){this.Cs=t,this.Ps={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.Is.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.Is.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._s.language)}},apDateMMDDYYYY:{get:function(t){var i=new Date;return fe(i.getMonth())+"/"+ce(i.getDate())+"/"+i.getFullYear()}},apDateMMDDYY:{get:function(t){var i=new Date;return fe(i.getMonth())+"/"+ce(i.getDate())+"/"+le(i.getFullYear())}},apDateDDMMYYYY:{get:function(t){var i=new Date;return ce(i.getDate())+"/"+fe(i.getMonth())+"/"+i.getFullYear()}},apDateDDMMYY:{get:function(t){var i=new Date;return ce(i.getDate())+"/"+fe(i.getMonth())+"/"+le(i.getFullYear())}},apDateYYYYMMDD:{get:function(t){var i=new Date;return i.getFullYear()+"/"+fe(i.getMonth())+"/"+ce(i.getDate())}},apDateYYMMDD:{get:function(t){var i=new Date;return le(i.getFullYear())+"/"+fe(i.getMonth())+"/"+ce(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.Rs="apCurrentTime apCurrentDay apCurrentHour apCurrentMinutes".split(" ")},get:function(t){var i=this.Ps[t];if(i)return i.get?i.get(this.Cs):i.val},set:function(t,i){var s=this.Ps[t],e=!1;return s||(s=this.Ps[t]={}),!(s.get&&!s.set)&&(s.set?e=s.set(this.Cs,i):s.val!==i&&(s.val=i,e=!0),e&&this.As(s),!0)},remove:function(t){delete this.Ps[t];var i=this.Rs.indexOf(t);i>=0&&this.Rs.splice(i,1)},has:function(t){return!!this.Ps[t]},us:function(t,i){var s=this.Ps[t];if(1==arguments.length)return s?s.type:void 0;2==arguments.length&&(s||(s=this.Ps[t]={}),s.type=i)},gs:function(t,i){var s=this.Ps[t];if(1==arguments.length)return s?s.userType:void 0;2==arguments.length&&(s||(s=this.Ps[t]={}),s.userType=i)},addObserver:function(t,i){var s,e,n;for(s=0,e=t.length;s<e;++s)(n=this.Ps[t[s]])&&(n.obs||(n.obs=new Us),n.obs.add(i))},removeObserver:function(t){var i,s,e=this.Ps;for(i in e)(s=e[i]).obs&&s.obs.remove(t,!0)},removeObserverIf:function(t){var i,s,e=this.Ps;for(i in e)(s=e[i]).obs&&s.obs.removeIf(t,!0)},notifyObservers:function(t){var i=this.Ps[t];i&&this.As(i)},As: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(de,function(t){var e=t.substring(1,t.length-1),n=i.Ps[e];return n?(s.vars.indexOf(e)<0&&s.vars.push(e),n.get?n.get(i.Cs):n.val):t}),s},tick:function(t){var i,s,e;for(i=0,s=this.Rs.length;i<s;++i)(e=this.Ps[this.Rs[i]])&&t>=(e.nextUpdate||0)&&this.As(e)}}),ve=new(Ls({$init:function(){var t=Zi.createElement("audio"),i=Zi.createElement("video");this.Ds="mp3",this.Ns="mp4",this.Os=!0,t.canPlayType&&t.canPlayType("audio/mpeg;").replace(/no/,"")?this.Ds="mp3":t.canPlayType&&t.canPlayType('audio/ogg; codecs="vorbis"').replace(/no/,"")?this.Ds="ogg":this.Os=!1,i.canPlayType&&i.canPlayType('video/mp4; codecs="avc1.42E01E, mp4a.40.2"').replace(/no/,"")?this.Ns="mp4":i.canPlayType&&i.canPlayType('video/webm; codecs="vp8"').replace(/no/,"")?this.Ns="webm":this.Os=!1,this.Ls=!1,this.Fs=!1;try{t.playbackRate=2,this.Fs=2==t.playbackRate}catch(t){}try{t.volume=.51,this.Ls=.51==t.volume}catch(t){}this.Us=!1;var s=this,e=t.play();void 0!==e&&e.catch(function(t){s.Us=!0,as("MediaManager:_requireInitMediaElements: "+s.Us)}),as("MediaManager:_canPlayMedia: "+this.Os),as("MediaManager:_canChangeVolume: "+this.Ls),as("MediaManager:_canChangePlaybackRate: "+this.Fs),as("MediaManager:_requireInitMediaElements: "+this.Us)},canChangeVolume:function(){return this.Ls},canChangePlaybackRate:function(){return this.Fs}}));he.mediaManager=ve;var me=Ls({$init:function(){this.Ys=[],this.Bs=[],this.Hs=[],this.zs=1,this.Xs=!1,this.Gs=1,this.Vs=!1,this.$s=6,this.Ws=6,this.js=!1},Qs: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.$s+this.Ws,i=0;i<e;++i)s=Zi.createElement("audio"),this.Ys.push(s);for(i=0;i<n;++i)s=Zi.createElement("video"),this.Bs.push(s);this.Vs=t[6]>0},Ks:function(t){this.Hs.push(t)},qs:function(t){var i=this.Hs.indexOf(t);i>-1&&this.Hs.splice(i,1)},playbackRate:function(t){if(!arguments.length)return this.Gs;if(ve.canChangePlaybackRate()){this.Gs=t;var i,s,e=this.Hs;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.zs;if(ve.canChangeVolume()){this.zs=t;var i,s,e=this.Hs;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.Xs;this.Xs=t;var i,s,e=this.Hs;for(i=0,s=e.length;i<s;++i)e[i].muted(t)},Js:function(){var t,i,s=this.Hs,e=this.Ys.concat(this.Bs);for(t=0,i=e.length;t<i;++t)e[t].muted=!1;for(t=0,i=s.length;t<i;++t)s[t].Js()},Zs:function(t){var i,s,e=this.Hs;for(i=0,s=e.length;i<s;++i)e[i].Zs(t)}}),be=Ls({$init:function(t){this.Cs=t,this.te=[],this.se=0,this.ee=!1},goBackward:function(t){var i=this.te[this.se-1],s=!1;return i&&(this.ee=!0,--this.se,s=this.Cs.showSlide(i,t),this.ee=!1),s},goForward:function(t){var i=this.te[this.se+1],s=!1;return i&&(this.ee=!0,++this.se,s=this.Cs.showSlide(i,t),this.ee=!1),s},add:function(t){t&&!this.ee&&t!=this.te[this.se]&&(this.se>=0&&this.se<this.te.length-1&&(this.te.length=this.se+1),this.te.push(t),this.se=this.te.length-1)},clear:function(){this.te.length=0,this.se=0,this.ee=!1}}),we=/^ap-(prez|slide|ctrl)-/,ge=new Hs({onItemComplete:function(t){t.id&&t.id.ne&&t.id.ne(t.status)}});function ke(t,i){return t+"."+i}function ye(t,i,s){if(t&&(t.b&&(t.b.im?s.push(i.getResource(ke(t.b.im[0],t.b.im[1]))):t.b.f&&t.b.f[0]===vt.u&&s.push(i.getResource(ke(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&&_e(h,t,i,s)}}function _e(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(ke(a.im[0],a.im[2]))):a.f&&a.f[0]===vt.u&&n.push(e.getResource(ke(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&&_e(o,s,e,n)}}function Te(t,i,s,e,n,h){h=h||n,t.addChild(new oh(i,"mediaDuration",{startTime:e,duration:0,tweenParams:[0,h],tweenType:jt.Xi})).addChild(new oh(i,"mediaSrc",{startTime:e,duration:0,tweenParams:[-1,s],tweenType:jt.Xi})).addChild(new oh(i,"mediaState",{startTime:e,duration:0,tweenParams:["stopped","playing"],tweenType:jt.Xi})).addChild(new uh(i,"mediaSeek",{startTime:e,duration:h,tweenParams:[0,1],tweenType:jt.he})).addChild(new oh(i,"mediaState",{startTime:e+n,duration:0,tweenParams:["playing","stopped"],tweenType:jt.Xi}))}var xe=Ls({$init:function(i,s,e){var n;this.ks={slides:[],fbs:[],randomMap:{},index:0,ts:0,elapsedTime:0,vars:{},s:1},this.re=new be(this),this.vars=new pe(this),this.timeline=null,this.transition=null,this.ae=null,this.started=!1,this.ended=!1,this.oe=!1,this.ue=[],this.ce=0,this.fe=0,this.le=[],this.pe=-1,this.ve=[],this.me=!1,this.be=Kt,this.we={},this.contentState="loading",this.destroyed=!1,this.ke=!0,this.ye=0,this._e=new me,i&&typeof i===Ai?(this._s=null,this.Te=i):this._s=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(we,""):"")+"-"+ee(),this.xe=this.nodeId.replace(we,""),this.Se=0;var f=this;this.Ee=new Hs({maxConnections:8,maxTime:120,onItemComplete:function(t){if(f.ue.push(t.url),f.ue.length<=f.fe){if(!f.started){var i=f.ue.length/f.fe;f.ui.loadingUi.setText($i(100*i)+"%")}}else f.ce<10?f.ce++:(f.ce=0,f.Ts())},onTimeout:function(){},onComplete:function(){f.oe=!0,f.Ts()},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.Me(s):n&&t(function(){(s=Zi.getElementById(n))&&f.Me(s)})},Ce:function(t){if(!t)return!0;if(!this.oe){var i=[];ye(t,this,i);for(var s=0,e=i.length;s<e;++s)if(this.ue.indexOf(i[s])<0)return!1}return!(this._s.hasEquation&&!t.Pe)},Ie:function(){return!this.slide||(!(!this.oe||this._s.hasEquation&&!this.slide._s.Pe)||this.Ce(this.slide._s))},Re:function(t){t!=this.me&&(this.me=t,t?this.Ae():this.De())},Ne: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.Oe)h.Ne();else if(t=h.children)for(e=0,n=t.length;e<n;++e)(i=t[e]).Ne&&i.Ne()},Ts:function(){if(this._s.hasEquation){if(he.mathJaxAPIState==qt||he.mathJaxAPIState==Kt)return;if(he.mathJaxAPIState==Jt&&this.be==Kt)return void this.Le()}if(!this._e.Vs||he.youtubeAPIState!=qt&&he.youtubeAPIState!=Kt)if(this.Ne(),this.started)this.me&&this.Ie()&&this.Re(!1);else{for(var t=0,i=this._s.pcs.length;t<i;++t){var s=this._s.pcs[t];if(!this.Ce(s))return}var e=isNaN(this.options.slide)?0:this.options.slide-1;if(this.Ce(this.Fe(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.Ue)return void this.ui.showMsg(this.ui.Is.text("YouTubeError"),!0,void 0,function(){n.call(h)});alert(ue.text("YouTubeError"))}n.call(this)}}},Me:function(t){this.destroyed||(this.container=t,this.ui.appendTo(t),this.ui.loadingUi.show(),this.Te?ge.load({url:this.Te,type:"js",id:this}):this.ne())},ne:function(t){if(!this.destroyed){if(this.Te)if(t===Ys.LOADED)this._s=he.loadedPrezs.shift(),this._s||(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(ue.text("LoadPrezError"))}if(this._s?he.compatible(this._s)||(this.contentState="incompatible",this.ui.loadingUi.hide(),alert(ue.text("IncompatiblePrez"))):this._s={},"loading"===this.contentState&&(this.contentState="loaded"),he.presentations.push(this),void 0!==this.options.time&&void 0===this.options.slide){var i=this.Ye(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._s.options.resourceLocation||"",this.fileNamePrefix=void 0!==this.options.fileNamePrefix?this.options.fileNamePrefix:this._s.options.fileNamePrefix||"",this.playerResource=void 0!==this.options.playerResource?this.options.playerResource:this._s.options.playerResource||"";this.options.playMode;var s=this._e,e=this._s.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.Be=!0,this._s.mcc?this.He=this._s.mcc.i||0:this.He=0,s.Qs(this._s.mediaStats),this.lms=this._s.options.lms?new he.LMS(this):null,this.lms&&(this.lms.initialize(),this.lms.loadSuspendData(),this.ze=this.ks.elapsedTime||0,this.ks.fbs&&this.ks.fbs.length&&(this.Xe=this.ks.fbs),this.ks.fbs=[],this.ks.vars))for(var n in this.ks.vars)this.ks.vars.hasOwnProperty(n)&&this.variable(n,this.ks.vars[n]);this.Ge(),this._s.hasEquation&&he.loadMathJaxAPI(this.playerResource),s.Vs&&he.loadYouTubeIframeAPI();var h=function(t){var i,s,e,n=[],h=t.cssUrl(),r=t._s,a=0;for(h&&n.push(h),r.authorImage&&n.push(t.getResource(ke(r.authorImage[0],r.authorImage[1]))),r.companyLogo&&n.push(t.getResource(ke(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.fe=h.preloadCount,this.Ee.load(h.allResources),this.Ts()}else this.ui.loadingUi.hide()}},version:function(){return this._s&&this._s.v||""},destroy:function(){if(!this.destroyed){if(this.destroyed=!0,this.lms){if(this.started&&!this.ended){this.slide&&this.ae&&(this.ks.ts=this.ae.time()-this.slide._s.st),this.ks.elapsedTime=this.elapsedTime();var t=this.vars.Ps;for(var i in t)this.vars.gs(i)&&(this.ks.vars[i]=this.vars.get(i));this.lms.storeSuspendData(this.ks,!0)}this.lms.terminate()}var s=he.presentations,e=s.indexOf(this);if(e>-1&&s.splice(e,1),this.Ve){for(var n=0;n<this.Ve.length;++n)this.Ve[n].cleanup();this.Ve.length=0}this.pauseAll(),this.$e(),this.We(),this.ui.destroy()}},genId:function(){return++this.Se},genDomId:function(t){return t+this.xe+"-"+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()},je:function(){return this.ui?this.ui.je: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},ds:function(t){return this._s.f[t]},Qe:function(t){var i,s,e=this._s.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},Ke:function(t){var i,s,e=this._s.slides;for(i=0,s=e.length;i<s;++i)if(ls(e[i].n).trim()===t)return e[i];return null},Fe:function(t){return this._s.slides[t]},qe:function(t){var i,s,e=this._s.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},Je:function(t){var i,s,e=this._s.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._s.slides.length?this._s.slides[t].i:-1},slideCount:function(){return this._s.slides.length},showSlideById:function(t){return this.showSlide(this.Qe(t))},showFeedbackById:function(t,i,s){return this.Ze(!0,t,i,s)},showFeedbackByName:function(t,i,s){return this.Ze(!1,t,i,s)},Ze:function(i,s,e,n){var h=i?this.qe(s):this.Je(s);if(!h)return!1;var r=void 0!==e&&e>=0,a=h.fbi;if(this.tn||(this.tn=[]),this.sn(i,s)>=0)return!0;this.fbTransition&&(this.fbTransition.remove(),this.fbTransition.seek(this.fbTransition.totalDuration()),this.fbTransition=null);var o=new In(this,h),u=this;if(this.tn.push(o),r||this.ks.fbs.push(a),this.en(!!o._s.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 ah(function(){var t=u.fbTransition;setTimeout(function(){t&&t.remove()},0)},{startTime:this.fbTransition.duration(),duration:0})),this.fbTransition.startTime(),o.ae.addChild(this.fbTransition),this.fbTransition.setup()),r){var c=new ah(function(){u.hideFeedbackById(a),n&&n()},{startTime:e});o.ms(c),o.ae.addChild(c)}else o.nn=n;return o.ae.startTime(this.timeline.totalTime()),this.timeline.addChild(o.ae),o.ae.setup(),o.ae.play(0),t(o).triggerHandler("ap-load"),!0},hideFeedbackById:function(t){this.hn(this.sn(!0,t))},hideFeedbackByName:function(t){this.hn(this.sn(!1,t))},hn:function(i){if(this.tn&&i>=0&&i<this.tn.length){var s=this.tn[i];if(s){t(s).triggerHandler("ap-unload"),s.remove(),s.nn&&s.nn();var e=this.ks.fbs.indexOf(s._s.fbi);e>=0&&this.ks.fbs.splice(e,1)}this.tn.splice(i,1)}},hideAllFeedbacks:function(){if(this.tn)for(;this.tn.length;)this.hn(this.tn.length-1)},ws:function(t){if(this.tn)for(var i=0,s=this.tn.length;i<s;++i)if(this.tn[i]==t)return!0;return!1},sn:function(t,i){if(this.tn)for(var s=0,e=this.tn.length;s<e;++s)if(t){if(this.tn[s]._s.fbi===i)return s}else if(this.tn[s]._s.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.re.goBackward(t)},historyForward:function(t){return this.re.goForward(t)},rn: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}},an:function(){for(var t={},i=this.ks.slides,s=0,e=i.length;s<e;++s)i[s]&&(t[s]=!0);return t},showClosedCaption:function(i){arguments.length||(i=!0),this.Be=i,this.un&&t(this.un.node).css("visibility",i?"visible":"hidden"),this.vars.notifyObservers("apCCVisible"),t(this.ui).trigger("ap-cc",[i])},closedCaptionVisible:function(){return!!this.Be},closedCaptionLanguageIndex:function(i){if(!arguments.length)return this.He;this.He=i,this.slide&&this.slide.reloadClosedCaption();var s=-1!=i;this.showClosedCaption(s),t(this.ui).trigger("ap-tool-multiple-language-cc",i)},cn: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))},ln: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.ln(n.cc,i))}},dn:function(t){this.$e();var s,e,n,h,r=this.Fe(t),a=[];if(r&&r.cc){for(this.ln(r.cc,a),e=0,n=a.length;e<n;++e)(h=a[e].ctrl)&&((s=new mn(this,h.k==i.T)).pn("Preload "+h.n),s.vn(!0),s.loadResource(h.mi),a[e].player=s);this.le=a,this.pe=t}},$e:function(){var t,i,s=this.le;for(t=0,i=s.length;t<i;t++)s[t].player.cleanup();this.le=[],this.pe=-1},mn:function(t){var i,s,e,n=this.le;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.vn(!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.Fe(i):"string"===h&&(i=this.Ke(i)),!i)return this.ended||this.slideIndex!==this.slideCount()-1||this.end(),!1;if(this.Xe&&this.Xe.length){for(var r=0,a=this.Xe.length;r<a;++r)this.showFeedbackById(this.Xe[r]);delete this.Xe}else this.hideAllFeedbacks();if(!this.ended&&this.slide){var o=this.ae.time()-this.slide._s.st>=this.slide._s.d;(this.slideIndex!=i.index&&o&&!this.ae.ke||this.ks.slides[this.slideIndex])&&t(this.ui).trigger("ap-slideCompleted",[this.slide._s.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.rn(),this.slide&&this.slide.cleanup();var u=this.layoutIndex<0?0:this.layoutIndex;this.ui.setSlideSize(this._s.l[u][0],i.h[u]),this.prevSlide=this.slide,this.slideIndex=i.index,this.bn=void 0==this.bn?this.slideIndex:Bi(this.bn,this.slideIndex),this.wn=void 0==this.wn?this.gn(this.slideIndex,e):Bi(this.wn,this.gn(this.slideIndex,e)),this.kn=!1,this.pe!=this.slideIndex&&this.$e(),this.slide=new In(this,i),this.$e(),this.yn(),this.cn(),this.en(!!this.slide._s.w),this.ae.addChild(this.slide.ae);var c=this,f=new ah(function(){void 0!==i.a&&1!=i.a&&"Demo"!=c.playMode()||c.isReviewingMode()?(c.kn=!0,c.pause(!0),c.isReviewingMode()&&c.slideIndex===c.slideCount()-1&&c.pauseAll()):(t(c.ui).trigger("ap-slideCompleted",[c.slide._s.i,!0]),c.slideIndex===c.slideCount()-1?(c.pause(!0),c.end()):c.nextSlide())},{startTime:this.slide.ae.startTime()+(i.d||0)});if(this.slide.ms(f),this.ae.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 ah(function(){var t=c.transition;c.cn(),c.rn(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.ae.startTime()+e),this.ae.addChild(this.transition),this.transition.setup()),this.ae.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._n||(d.remove(),d.seek(d.totalDuration())),d=l;var p=this.paused();this.ae.seek(i.st+e),p&&this.pause(!1)}else this.slide.ae.update(0,!0),this.transition&&this.transition.update(0,!0),this.pause(!1);if(this.re.add(i),this.ended||(this.slide.savedData(!0),this.ks.index=this.slideIndex,this.ks.ts=e,this.lms&&(this.lms.setBookmark(ls(i.n),ls(i.de),this.slideIndex),this.lms.storeSuspendData(this.ks,!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.ae.time()]),this.prevSlide&&t(this.prevSlide).triggerHandler("ap-unload"),this.slide.Tn.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.rn(he.TransitionMinDuration),this.Ce(i)?this.Re(!1):this.Re(!0),!0},Le:function(){if(he.mathJaxAPIState==Jt&&this.be==Kt){this.be=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.Pe=!0,t.Ts()})},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.we[h]){t.we[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.we[h]=r.innerHTML,Zi.body.removeChild(r)})}MathJax.Hub.Queue(function(){if(e.t[0]=t.we[h],t.slide&&t.slide._s==i){var r=t.object(s.n);r&&r.cs.id()==e.i&&(rs.innerHTML=n,r.html()==rs.innerHTML&&r.html(t.we[h]))}})};if(this._s.pcs&&(this._s.pcs[0]&&i.call(null,this._s.pcs[0]),this._s.pcs[1]&&i.call(null,this._s.pcs[1])),this._s.feedbacks){this._s.feedbacks.length;for(var n=0;n<this._s.feedbacks.length;n++)i.call(null,this._s.feedbacks[n])}var h,r=this._s.slides;for(n=0,h=r.length;n<h;++n)i.call(null,r[n]);t=this;MathJax.Hub.Queue(function(){t.be=Jt,t.Ts()})}},Ge:function(){var i,s,e,n=this._s.slides||[],h=this._s.pools||[],r=[];this.xn=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.ks.randomMap&&void 0!==this.ks.randomMap[i.i]){v=i.i;this._s.slides[s]=i=t.extend(!0,{},d[this.ks.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._s.slides[s]=i=t.extend(!0,{},d[u[p][0]]),a=i.i,i.i=v,i.thumbId=a,this.ks.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._s.pcs&&(this._s.pcs[0]&&(this._s.pcs[0].index=n.length),this._s.pcs[1]&&(this._s.pcs[1].index=n.length+1)),this._s.feedbacks){var m=n.length+2;for(s=0,e=this._s.feedbacks.length;s<e;++s)this._s.feedbacks[s].index=m,++m}},Sn:function(){var i=this.ui,s=this,e=this._s,n=s._s.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),ve.canChangePlaybackRate()||(a.ShowSpeedBtn=!1),ve.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.En=a.Navigation,i.create("#"+this.containerId,e.toc,this.xn||[],e.ar,a,h),this.xn&&delete this.xn,(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.Ve=[],t(".ap-presenter-video",t("#"+this.containerId)).each(function(t){var i=new kn(s);i.appendTo(this),s.Ve.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.Mn(t)}),t(s.container).on("keydown keyup",function(t){s.Es(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]||t==n.length-1){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._s.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.tn)for(t=0;t<s.tn.length;++t){(u=s.tn[t])&&u.onLayoutSwitched()}s.options.onLayoutSwitched&&s.options.onLayoutSwitched.call(s)}else if(s.slide&&s.slide.Cn(),s.prevSlide&&s.prevSlide.Cn(),s.topSlide&&s.topSlide.Cn(),s.bottomSlide&&s.bottomSlide.Cn(),s.tn)for(t=0;t<s.tn.length;++t){var u;(u=s.tn[t])&&u.Cn()}as("Exit ui:ap-layout")}),c.on("ui:ap-showSlide",function(t,i){s.canNavigateTo(s.Qe(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.Ye(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.Pn(i)}),c.on("ui:ap-sound",function(){s.In?s.Rn():s.muted(!s.muted())}),c.on("ui:ap-volume",function(t,i){s.Rn(),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._s.responsive?this.setMaxContentWidth(n[n.length-1][0]):this.layout(),this.started=!0,e.e&&e.e.l&&Re(this,e.e.l,this.options.playMode),this._e.Vs){var m=he.browser;(m.ie||m.edge)&&"file:"==window.location.protocol&&i.showMsg(i.Is.text("YouTubeIEError"),!0)}this.Ue=!0},An:function(t){var i=this._s.av;if(this.Ve&&i&&i.length)for(var s=0,e=this.Ve.length;s<e;++s)for(var n=this.Ve[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 oh(n,"display",{startTime:0,duration:0,tweenParams:["none","none"],tweenType:jt.Xi})),n.Nn.Dn(a[5]||a[2]),n.Nn.loadResource(a[0])),t.addChild(new oh(n,"authorVideoRatio",{startTime:a[1],duration:0,tweenParams:[o,o],tweenType:jt.Xi})).addChild(new oh(n,"display",{startTime:a[1],duration:0,tweenParams:["none","block"],tweenType:jt.Xi})),Te(t,n,a[0],a[1],a[2],a[5]),(!i[h+1]||i[h+1][1]>a[1]+a[2])&&t.addChild(new oh(n,"display",{startTime:a[1]+a[2],duration:0,tweenParams:["block","none"],tweenType:jt.Xi}))}},On:function(){if(this.Ve)for(var t=0,i=this.Ve.length;t<i;++t)this.Ve[t].Cn()},Rn:function(){this.In&&(delete this.In,this.muted(!1),this._e.js=!0,this._e.Js(),t(this.container).off(".apUnmuteOnTap"),this._s.options.showUnmuteMsg&&this.ui.hideUnmuteHintMsg())},start:function(i,s){this.Ue||this.Sn();var e,n,h=this,r=this._s.slides||[],a=this._s.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.us(u,f),this.vars.gs(u,l),f==wi.NUMBER&&(c=Number(c)),this.ks.vars.hasOwnProperty(u)&&(c=this.ks.vars[u]),this.vars.set(u,c)}if(this.re.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.tn){for(e=0;e<this.tn.length;++e)this.tn[e].cleanup(),this.tn[e].remove();this.tn.length=0}if(this.ks.fbs.length=0,this.ae&&(this.ae.remove(),this.ae=null),this.timeline=new ch({paused:!0}),this.ae=new lh,this.timeline.addChild(this.ae),r.length){var d=r[r.length-1];this.ae.addChild(new ah(ji,{startTime:d.st+d.d}))}this.Ln=0;var p,v,m,b=this.an();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.ks.index=i-1),void 0!==s&&(this.ks.ts=s),this.ks.index=this.ks.index||0,this.ks.ts=this.ks.ts||0,!ve.Us||h._e.js&&!h._e.Vs||(h.muted(!0),h.In=!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.Rn()}),h._s.options.showUnmuteMsg&&h.ui.showUnmuteHintMsg()),this.ui.loadingUi.hide(),this._s.pcs){var w=this._s.pcs[0];w&&(w.isBottom=!0,this.bottomSlide=new In(this,w),this.An(this.bottomSlide.ae),this.bottomSlide.ae.startTime(0),this.ae.addChild(this.bottomSlide.ae)),(w=this._s.pcs[1])&&w.cc&&w.cc.length&&(w.isTop=!0,this.topSlide=new In(this,w),this.topSlide.ae.startTime(0),this.ae.addChild(this.topSlide.ae))}return this.lms&&this.lms.startLesson(),p=this.ks.index||0,v=this.ks.ts||0,m=this.ks.slides&&this.ks.slides.length>0,this.ye=0,this.Fn&&(clearTimeout(this.Fn),delete this.Fn),t(this).triggerHandler("ap-load"),this.showSlide(p,v),this.ke=!1,t(this.ui).trigger("ap-pause",[!1]),this.ks.s=this.ks.s||1,this.speed(this.ks.s),this.timeline.paused(!1),he.pageVisible()||he.Ss(this),m&&this._s.showResumeLessonConfirmation&&setTimeout(function(){h.showResumeLessonConfirmation()},0),this},restart:function(t,i){void 0===t&&(t=1),void 0===i&&(i=0),this.ks.index=0,this.ks.ts=0,this.ks.slides=[],this.ks.elapsedTime=this.ze||0,this.ks.vars={};var s,e,n=this._s.slides;for(s=0,e=n.length;s<e;++s)n[s].hss=[];return this.lms&&this.lms.storeSuspendData(this.ks),this.ended=!1,this.pauseAll(!1),this.Un=!1,this.bn=void 0,this.wn=void 0,this.start(t,i)},seek:function(t,i){return this.showSlide(t,i)},Ye:function(t){if(!isNaN(t)){var i,s,e,n=-1,h=0,r=this._s.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}}},gn:function(t,i){if(isNaN(i))return 0;var s,e,n,h=0,r=this._s.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.En==gi)return!1;if(this.En==ki){if(void 0==this.bn||this.bn<t)return!1;if(void 0==this.wn||this.wn<this.gn(t,i))return!1}return!0},time:function(t){if(!arguments.length)return this.ae.time();var i=this.Ye(t);return!!i&&this.showSlide(i.slideIndex,i.slideTime)},slideTime:function(t){if(!arguments.length)return this.slide?this.ae.time()-this.slide.ae.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._s.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.Yn;var s=this._s.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 ve.canChangePlaybackRate()?(this.ks.s=i,this.timeline.speed(i),t(this.ui).trigger("ap-speed",[i]),this._e.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.ke==i?this:(this.ke=i,i?(this._e.Zs(!0),this.timeline.paused(!0)):(zn.updateTime(),0==this.ye&&(this._e.Zs(!1),this.timeline.paused(!1))),t(this.ui).trigger("ap-pause",[i]),this)},allPaused:function(){return this.ke},paused:function(){return this.ae.paused()},pause:function(t){return arguments.length||(t=!0),!t&&this.kn?this:(this.ae.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.Is.text("MaxPrezTimeReached"),!0);for(var s,e,n,h,r,a=this.Qe(),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.ks.elapsedTime=this.elapsedTime(),this.lms.endLesson(t));var c=this._s.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._e;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._e;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._s,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},Ae:function(){if(as("_increaseBufferingCounter: "+(this.ye+1)),0==this.ye){this._e.Zs(!0),this.timeline.paused(!0);var t=this.ui.loadingUi;this.Fn=setTimeout(function(){t.show(),t.setText("")},3e3)}this.ye++},De:function(){this.ye<=0?as("Invalid _decreaseBufferingCounter call"):(this.ye--,as("_decreaseBufferingCounter: "+this.ye),0==this.ye&&(this.Fn&&(clearTimeout(this.Fn),delete this.Fn),this.ui.loadingUi.hide(),this.ke||(this._e.Zs(!1),this.timeline.paused(!1))))},isBuffering:function(){return this.ye>0},Mn:function(t){var i=Ji();if(this.Bn&&i-this.Bn<=he.DoubleClickMaxTime&&t.preventDefault(),this.Bn=i,!(Qs(t)||!this.os()||this.tn&&this.tn.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.Hn).length;a<o;++a)(n=e[a]).os(!0,!0)&&n.submit(c,!1);for(a=0,o=(e=s.Tn).length;a<o;++a)(n=e[a]).os(!0,!0)&&n.submit(c,f)}}},Es: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.Tn.length||this.bottomSlide&&this.bottomSlide.Tn.length||this.topSlide&&this.topSlide.Tn.length;if(!this.os()||e||this.tn&&this.tn.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.Tn).length;c<f;++c)(r=a[c]).os(!0,!0)&&((l=r.zn(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.Hn).length;c<f;++c)(r=a[c]).os(!0,!0)&&r.submit(i,!0);for(c=0,f=(a=h.Tn).length;c<f;++c)(r=a[c]).os(!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)},Xn: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.Xn(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.Is)):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.Xn(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.Xn(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,k,y,_,T;for(h=[],a={},y={},o=0,u=f.length;o<u;++o)if(f[o].f&r)for(l=(c=(k=f[o]).e.v||[]).length,d=0;d<l;++d)(g=this.Xn(f,c[d]))&&(y[g.r]||(y[g.r]=[]),y[g.r].push(k.r));for(_ in y)if(l=(T=y[_]).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.Is);break;case i.S:h=n.v;break;case i.I:h="",(c=this.Xn(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.Xn(a,r[o]))&&h.push(c.r);break;case s.ht:h={},r=n.v;for(f in r)(c=this.Xn(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.Xn(a,f))for(o=0,u=(l=r[f]).length;o<u;++o)(d=this.Xn(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.Xn(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},Gn: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.Gn(h.cc)}}return r},interactionCount:function(){if(void 0!==this.Vn)return this.Vn;var t,i,s,e=this._s.slides,n=0;for(i=0,s=e.length;i<s;++i)t=e[i],n+=this.Gn(t.cc);return this.Vn=n,n},takenInteractionCount:function(t){var i,s,e,n,h,r=this.ks.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.ks.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.ks.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,n.r==At.xi&&n.sp&&(r-=n.sp));return ds(r,10)},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=[],k=[];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),k.push(w[c])):k[m]<w[c]&&(k[m]=w[c]);for(e=0,n=k.length;e<n;++e)l+=k[e]}break;case i.B:var y=(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&&y.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.$n)return this.$n;var t,i,s,e,n,h,r=this._s.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.$n=h,h},result:function(){var t=!0,i=this._s.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.Wn=(this.ze||0)+this.timeline.totalTime()),this.Wn||0},sessionTime:function(){return this.elapsedTime()-(this.ze||0)},remainingTime:function(){if(this.ended)return 0;var t=0,i=this.options.playMode;return(t="Tutorial"!==i&&"Practice"!==i&&"Test"!==i||!this._s.options.testMaxTime?this.duration()-this.time():60*this._s.options.testMaxTime*1e3-this.elapsedTime())<0?0:t},responseResultString:function(t){var i=this.ui.Is;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._s.options,i=this.ui.Is;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.Is;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.Is,w={},g=this._s;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.ks.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.Xn(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.r==At.xi&&r.sp&&(v-=r.sp),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.Is;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.Is;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._s.options,s=this.reportData(i.reportFormat,!0),e=this.ui,n=e.Is;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.Ve&&(!i||i&&!this.muted()))for(var s=0,e=this.Ve.length;s<e;++s)this.Ve[s].muted(!i);return i&&this.On(),this.vars.notifyObservers("apSidebarVisible"),this},sidebarVisible:function(){return this.ui.sidebarVisible()},Pn:function(t){t&&this.On()},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._s.author},homePage:function(){return this._s.homepage},copyright:function(){return this._s.copyright},name:function(){return this._s.projectName},description:function(){return this._s.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.Ve&&this.Ve.length>i?this.Ve[i]:null},playMode:function(){return this.options.playMode},registerTimer:function(t){return this.jn?this.jn.push(t):this.jn=[t],this},unregisterTimer:function(t){var i=this.jn.indexOf(t);return i>=0&&this.jn.splice(i,1),this},tick:function(i){if(this.timeline&&!this.timeline.ke){var s=this.timeline.Qn,e=(i-s)*this.timeline.Yn;if(this.jn&&this.jn.length){var n=this.timeline.Kn(e);this.timeline.qn=n.totalTime;for(var h=0;h<this.jn.length;++h)if(this.jn[h].tick(i),this.timeline.Qn!=s)return}this.timeline.update(e),this.vars.tick(i),t(this.ui).trigger("ap-progress",[this.slideIndex,this.slideId(this.slideIndex),this.ae.time()]);var r=this.elapsedTime();if(!this.Jn||i-this.Jn>=300){this.Jn=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._s.options.testMaxTime&&r>=60*this._s.options.testMaxTime*1e3&&this.end(!0),this.slide&&this.slide._s.w&&this.en(!0);var o=Zi.activeElement,u=o==this.container||(!o||o==Zi.body)&&this.container&&this.container.parentElement==Zi.body||this.tn&&this.tn.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.Zn()}if(this.wn=void 0==this.wn?this.ae.time():Bi(this.wn,this.ae.time()),!this.ended){this.slide&&(this.ks.ts=this.ae.time()-this.slide._s.st),this.ks.elapsedTime=r;var f=this.vars.Ps;for(var l in f)this.vars.gs(l)&&(this.ks.vars[l]=this.vars.get(l));this.lms&&this.started&&!this.ended&&this.ks.ts-this.lms.getSuspendDataTS()>6e4&&this.lms.storeSuspendData(this.ks,!0),this._s.mediaPreloading&&this.pe<0&&!this.prevSlide&&this.ks.ts>1e3&&0==this.ye&&this.dn(this.slideIndex+1)}}},Zn:function(){var i=this.tn&&this.tn.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);if((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))){var r=Zi.hasFocus();r||this.th||(this.th=!0,r=!0),r&&s[0].focus({preventScroll:!0})}}}},en:function(i){if(i){var s,e,n,h="A"===this._s.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.ih||!h&&this.ih[0].childNodes.length<4)&&(this.ih=t(h?"<img />":"<div><img /><img /><img /><img /></div>"),s="pointer",s+="Event",s+="s",this.ih.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._s.wmd,s="min",e="20",e+="0px",a[s+="Width"]=e,s="min",e="50",e+="px",a[s+="Height"]=e,h)this.ih[0].src!==n&&(this.ih[0].src=n),this.ih[0][u]=this._s.generator,r.top=r.right=o,r.left="auto";else{var c,f,l,d=this.ih[0].childNodes;for(f=0,l=d.length;f<l;++f)(c=d[f]).src!==n&&(c.src=n),c[u]=this._s.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.ih.css(r);var p=t(".ap-canvas",this.container);this.ih[0].parentNode&&this.ih[0].parentNode===p[0]||p.append(this.ih)}else this.ih&&this.ih.hide()},prez:function(){return this},on:function(t,i){return Le.prototype.on.call(this,t,i)},off:function(t,i){return Le.prototype.off.call(this,t,i)},os:function(t){return"Demo"!==this.options.playMode&&(t||!this.ye)&&(!this.ke||this.ended)},cssUrl:function(){return void 0!==this.options.css?this.options.css:this._s.options.css},highlightFocus:function(t){if(!arguments.length)return void 0!==this.options.highlightFocus?this.options.highlightFocus:this._s.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.sh&&(t.sh.remove(),t.sh=null),t.started()&&t.totalTime()<t.totalDuration()&&t.pause(t.totalDuration()),t.startTime(this.timeline.totalTime()),i&&(t.sh=new ah(function(){i.call(t)},{startTime:t.duration(),duration:0}),t.addChild(t.sh)),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._s.i,!0]),this.Un=!0,this.end(),this.firstSlide(),this.pauseAll(!1)},isReviewingMode:function(){return!0===this.Un},runAction:function(t,i,s){for(var e=null,n=0,h=this._s.adActions.length;n<h;n++){var r=this._s.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._s;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.kt: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.Je(d);c[0]=w.fbi;break;case Rt.di:w=this.Je(d);o[1]=w.fbi;break;case Rt.bi:c[0]=d;break;case Rt.wi:case Rt.gi:case Rt.ki:o[1]=d}}v=0;for(var g=f.length;v<g;v++){var k=f[v],y=k[3],_=k[4],T=_[0],x=i[T],S=_[1],E=i[S];switch(k[1]){case yt.gt:void 0!==T&&(y[1]=x),void 0!==S&&(y[0]=E);break;case yt.kt:x!=E[0]&&(y[0]=y[1]=0),y[1]=x,y[0]=E[1];break;case yt.yt:y[0]=E;break;case yt.I:var M=s.currentTarget&&s.currentTarget.slide&&s.currentTarget.slide.object(E);y[0]=M.id();break;case yt.Tt:var C=this.slide.object(x);y[1]=C.id(),y[0]=E;break;case yt.V:"left click"===x.toLowerCase()?y[0]=1:"left double-click"===x.toLowerCase()?y[0]=4:"right click"===x.toLowerCase()&&(y[0]=3);break;case yt._t:case yt.j:y[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()}},eh:function(){var t,i,s=this.nh;if(!s){for(s=[],i=0;i<this._e.Ws;++i)(t=new mn(this,!1)).hh=!1,t.vn(!0),t.synchronizeWithPrez(!1),s.push(t);this.nh=s}},yn:function(){this.eh();var t,i,s,e,n,h,r=this.nh,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._s,a),h=0,i=0,s=a.length;i<s;++i)for(e=h,n=r.length;e<n;++e)if(!(t=r[e]).hh){t.pn("Preload short audio.....: "+a[i][0]),t.Dn(a[i][1]),t.loadResource(a[i][0]),h=e+1;break}},We:function(){var t,i,s=this.nh;if(s){for(t=0,i=s.length;t<i;++t)s[t].cleanup();delete this.nh}},rh:function(t,i,s,e,n){this.eh(),as("_playShortAudioResource: "+t);var h,r,a,o=this.nh;for(r=0,a=o.length;r<a;++r)if(!o[r].hh&&(h||(h=o[r]),o[r].ah==t)){h=o[r],as("_playShortAudioResource: Cached player found");break}if(h){var u=function(){as("_playShortAudioResource: Completed: "+t),h.hh=!1,h.oh("ended",u),n&&n()},c=function(){as("_playShortAudioResource: Error: "+t),h.hh=!1,h.oh("error",c),n&&n()};h.uh("ended",u),h.uh("error",c),h.hh=!0,h.ah!=t&&(h.pn("Play Audio Action: "+t),h.Dn(i),h.loadResource(t)),h.play()}else as("_playShortAudioResource: No available players")},fh:function(t,s,e,n,h){var r=this.bottomSlide,a=r.lh(function(t){return t.actionData===e});if(a)a.remove(),a.started()&&a.totalTime()<a.totalDuration()&&a.pause(a.totalDuration());else{if(r.dh||(r.dh=0),r.dh>=this._e.$s)return;var u=r.defaultCtrlData();u.k=i._,u.mi=t,u.md=s,u.f|=o;var c=r.createChild(u);++r.dh,(a=new lh).actionData=e,n&&(a._n=!0),r.ms(a),Te(a,c,t,0,s+500,s),a.addChild(new ah(function(){setTimeout(function(){r.vs(a)},0),c.remove(),--r.dh,h&&h()},{startTime:a.duration(),duration:0}))}a.startTime(this.timeline.totalTime()),this.timeline.addChild(a),a.setup(),a.play(0)},bs:function(t,i,s,e,n){i<Ri?this.rh(t,i,s,e,n):this.fh(t,i,s,e,n)},ph: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 lh,f=Qi({},Ne,{node:a,slide:u,vh:0,mh:n,bh:h,wh:e+1,gh:e+1,kh:e});c._n=!0,u.ms(c),c.addChild(new oh(f,"ceProgress",{startTime:0,duration:r,tweenParams:[0,100]})).addChild(new ah(function(){setTimeout(function(){u.vs(c)},0),a.parentNode&&a.parentNode.removeChild(a)},{startTime:r})),c.startTime(this.timeline.totalTime()),this.timeline.addChild(c),c.setup(),c.play(0)}}),Se=Zi.createElementNS(Di,"svg"),Ee=Se.createSVGMatrix(),Me=Se.createSVGPoint();function Ce(t,i,s){Me.x=i,Me.y=s;var e=Me.matrixTransform(t);return{x:e.x,y:e.y}}var Pe=Ls({$init:function(t,i){this.yh=t,this._s=i||[],this._h=y,this.se=-1},useDefault:function(){var t,i,s=0;for(t=0,i=this._s.length;t<i;++t)if(this._s[t].d){s=t;break}return this.at(s)},is:function(t){var i=this._s[this.se];return i&&i[typeof t===Ai?"n":"i"]===t},at:function(t){if(!arguments.length)return this.se;var i=this._s[t];if(!i)return!1;this.se=t;var s=this._h;void 0!==i.p&&(this._h=i.p);var e=i.at;if(i.im){var n=i.im;this.yh.Th(n[0],n[1],n[2],e)}else this.yh.imageNode&&(this.yh.imageNode.src="");var h,r,a,o=this.yh.shape,u=i.f,c=i.l,f=i.s,l=i.t;if(this.layout(),i.tg&&this.yh.setIconSize){var d=i.tg;if(!!d[6]){var p=(this._h&S)===S;o.createIcon(p,d[0],d[1],d[2],gs(d[3]),gs(d[4]),gs(d[5])),o.updateIcon(),this.yh.setIconSize&&this.yh.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.yh.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.yh.xh&&this.yh.html(l[0]||""),this.yh.textStyle(l[1]).textVerticalAlign(l[2])):!this.yh.xh&&this.yh.html(""),this.yh.rotate(i.r||0),this.yh.Sh&&(this.yh.shape||this.yh.textContainer)&&(this.yh.parent&&this.yh.parent.Eh(),this.yh.Mh()),e||(this.yh.textNode&&(e=(e=this.yh.textNode.textContent.replace(/\r|\n/g," ")).replace(/ +(?= )/g,"").trim()),e||(e=this.yh._s.n,this._s.length>1&&(e+=" "+i.n))),e?this.yh.accText(e):this.yh.accText(""),this.Ch(s,this._h),!0},id:function(t){if(!arguments.length){var i=this._s[this.se];return i?i.i:-1}return this.at(this.find("i",t))},name:function(t){if(!arguments.length){var i=this._s[this.se];return i?i.n:""}return this.at(this.find("n",t))},flags:function(t){if(!arguments.length)return this._h;var i,s=y,e=this._h;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.Ph=!0,i=this.at(this.find("p",s)),delete this.Ph,this.Ch(e,t),i},Ch:function(t,i){this._h=i,!this.Ph&&this.yh.Ih&&this.yh.Ih(t,i)},has:function(t){var i=this._s[this.se];return i&&(i.p&t)===t},find:function(t,i){var s,e;for(s=0,e=this._s.length;s<e;++s)if(this._s[s][t]===i)return s;return-1},Rh:function(t){var i,s=this._s[this.se],e=s&&s.w&&s.w[this.yh.slide.Cs.layoutIndex];return e&&e.r&&(i=[(e=e.r)[0],e[1],e[4]]),i},layout:function(){var t=this._s[this.se],i=t&&t.w&&t.w[this.yh.slide.Cs.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.yh.flexbox(i.b),i.c)this.yh.flexChild(i.c);else if(i.r){var l,d,p=i.r,v=xs(p[2]),m=xs(p[3]);this.yh.center(1===p[5]||3===p[5],2===p[5]||3===p[5]),this.yh.Ah(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.yh.autoWidth(l).autoHeight(d),(d||l)&&(this.yh.Dh=d?m.value:v.value,this.yh.Nh=!0),l||this.yh.width(v.value+v.unit),d||this.yh.height(m.value+m.unit)}this.yh.shape.path(i.p&&i.p.length?i.p:null),i.f?this.yh.fontScale(i.f):this.yh.fontScale(100),this.yh.alwaysHide(i.h)}}});function Ie(t){this.Oh=t,this.Lh=[],this.Fh=$t.Fi;var i=t._s.dd;this.Uh={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 Re(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 Ae(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.Cn&&i.Cn(),s}function De(t){var i,s=t.length;if(s){for(i=s;--i>=0;)t[i].node.style.display=t[i].hideProp();t[s-1].Cn&&t[s-1].Cn()}}Ie.TileMargin=5,Ie.RevertTime=200,Ie.DropTime=200,Ie.ZoomEffectScale=1.1,Ie.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.Yh={zIndex:r.zIndex,opacity:r.opacity},u=i._s.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("+Ie.ZoomEffectScale+", "+Ie.ZoomEffectScale+") translate("+-e+"px, "+-n+"px)",o.transform&&"none"!==o.transform&&(a.transform+=" "+o.transform)}h.css(a)}else i.Yh&&(h.css(i.Yh),delete i.Yh),h.removeClass("ap-ctrl-dragsource-hilight")},Ie.dropHoverEffect=function(i,s){var e=i._s.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.Bh=i.node.style[Cs],i.scaleBy(Ie.ZoomEffectScale)):void 0!==i.Bh&&(i.node.style[Cs]=i.Bh,delete i.Bh)}},Ie.revert=function(t,i,s,e,n){var h=t.prez(),r=new lh({startTime:h.timeline.totalTime()}),a=t.node.style.zIndex;t.node.style.zIndex=$t.Ui,t.ms(r),r.addChild(new oh(t,"translateX",{startTime:0,duration:e,easing:Gn.outQuad,tweenParams:[-i],relative:Vn.Hh})).addChild(new oh(t,"translateY",{startTime:0,duration:e,easing:Gn.outQuad,tweenParams:[-s],relative:Vn.Hh})).addChild(new ah(function(){t.node.style.zIndex=a,n&&n(),setTimeout(function(){t.vs(r)},0)},{startTime:r.duration(),duration:0})),h.timeline.addChild(r),r.setup(),r.play(0)},Ie.prototype={constructor:Ie,droppedObjects:function(){return this.Lh},accepted:function(t){return this.Uh.acceptAny||this.Uh.acceptIds.indexOf(t.id())>=0},drop:function(s,e,n,h){void 0===n&&(n=!0);var r=this.Oh,a=this.Uh,o=a.maxAccept<0||this.Lh.length<a.maxAccept,u=!1,d=!1;if(s.parent!==r.parent?o=!1:(o||this.Lh.length===a.maxAccept&&a.maxAccept>0&&(a.replace?(u=!0,o=!0):d=!0),!o&&!d||a.acceptAny||a.acceptIds.indexOf(s._s.i)<0&&(o=u=d=!1)),s._s.k==i.M&&s.cs.flags(s.cs.flags()&~(T|_)),!o)return n&&(s.hasStateFlag(D)&&s.cs.flags(D),r.hasStateFlag(D)&&r.cs.flags(D),t(r).triggerHandler(t.Event("ap-reject",{value:s})),Ie.revert(s,h.x,h.y,Ie.RevertTime)),!!d&&void 0;if(u){var p,v=this.Lh[this.Lh.length-1];v&&(p=this.startDragOut(v),n&&(s.hasStateFlag(D)&&s.cs.flags(D),v.hasStateFlag(D)&&v.cs.flags(D),t(r).triggerHandler(t.Event("ap-reject",{value:v})),Ie.revert(v,p.x,p.y,Ie.RevertTime)))}this.Lh.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="",k={},y=s.zh={},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.Xh(m,b,a.posVal);break;case l:this.Gh(m,b,a.posVal);break;case c:m.l=b.l+e.x,m.t=b.t+e.y,s.Vh={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=""),k.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,y.transform=x[Cs],k.zIndex=this.Fh++,y.zIndex=x.zIndex,255!=a.alpha&&(k.opacity=a.alpha/255,y.opacity=x.opacity),t(s.node).css(k),s.updateCachedTransform(),n&&(s.hasStateFlag(A)&&s.cs.flags(A),r.hasStateFlag(A)&&r.cs.flags(A),t(r).triggerHandler(t.Event("ap-accept",{value:s})),r instanceof Qe&&r.submit(s)),!0},startDragOut:function(i){var s=this.Lh.indexOf(i),e={x:0,y:0};if(s<0)return e;if(this.Lh.splice(s,1),delete i.dropTarget,i.zh){var n=i.translate();t(i.node).css(i.zh),i.updateCachedTransform(),delete i.zh;var h=i.translate();e.x=n.translateX-h.translateX,e.y=n.translateY-h.translateY}if(this.Uh.posType===l&&(this.$h=this.Wh=this.jh=0,this.Lh.length)){var r,a,o,u,c=this.Oh,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.Uh.scale/100,m="";for(d[0]=parseFloat(d[0]),d[1]=parseFloat(d[1]),"none"===p&&(p=""),s=0;s<this.Lh.length;++s)r={w:(i=this.Lh[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.Gh(r,f,this.Uh.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.Lh;t.length;)this.startDragOut(t[t.length-1]);this.Fh=$t.Fi},layout:function(){for(var t=this.Oh;t;){if("none"===t.node.style.display)return;t=t.parent}var i,s,e=this.Lh,n=[],h=[];if(e.length){for(;e.length;)i=e[e.length-1],n.push(i),h.push(i.Vh||{x:0,y:0}),this.startDragOut(i);for(this.Fh=$t.Fi,s=n.length-1;s>=0;--s)this.drop(n[s],h[s],!1);this.Oh&&this.Oh.parent&&this.Oh.parent.Qh()}},absolutePosition:function(){return this.Uh.posType===c},Xh: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},Gh:function(t,i,s){var e,n,h,r,a,o,u;switch(this.$h||(this.$h=Ie.TileMargin),this.Wh||(this.Wh=Ie.TileMargin),this.jh||(this.jh=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 k:h=t.h,r=t.w,a=i.h,o=!0}(this.$h+h>a?(this.Wh+=this.jh+Ie.TileMargin,e=this.Wh,n=Ie.TileMargin,this.$h=n+h+Ie.TileMargin,this.jh=r):(e=this.Wh,n=this.$h,this.$h+=h+Ie.TileMargin,r>this.jh&&(this.jh=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 k: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 Ne={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().je(),y:((i.top+i.bottom)/2-s.top)/this.slide.prez().je()}}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().je();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=Ee.translate(e.x,e.y).rotate(t).translate(-e.x,-e.y),h=Ce(n,s.x,s.y),r=Ce(n,s.x+s.width,s.y),a=Ce(n,s.x+s.width,s.y+s.height),o=Ce(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}},Oe=Ls(Ne,{$init:function(t,i){this.node=t,this.parent=i,this.slide=i.slide},showProp:function(){return"inline-block"}}),Le=Ls(Ne,{$init:function(s,e){this.parent=null,this.slide=s,this.children=[],e=e||{},this._s=e,this.node=this.createNode();var n=this===s,o=this;if(this.node.id||(this.node.id=n?s.Cs.genSlideDomId():s.Cs.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.ae&&s.ae.addChild(new oh(this,"display",{startTime:0,duration:0,tweenParams:[this.showProp(),this.hideProp()],tweenType:jt.Xi})),e.f&h){var u={start:function(i,s){var e=this.rlDragCtrl,n=this.style,h={x:0,y:0};if(!e||!e.os(!1,!0)||e.prez()&&e.prez().ended)return!1;e.dropTarget&&(h=e.dropTarget.dropHelper.startDragOut(e)),e.Kh=null,e.qh=null,e.Jh=e.Zh=0,e.tr=h.x,e.ir=h.y,e.sr={left:n.left,right:n.right,top:n.top,bottom:n.bottom},e.er=getTransformationMatrix(this.parentNode).inverse(),e.nr=e.er.transformPoint(s.originalPosition.left,s.originalPosition.top),e.hr=parseFloat(t(this).css("left"))||0,e.rr=parseFloat(t(this).css("top"))||0,(h.x||h.y)&&(e.hr+=h.x,e.rr+=h.y,t(this).css({left:e.hr+"px",top:e.rr+"px"}));var r=e.er.transformPoint(i.pageX,i.pageY);e.hasStateFlag(E)&&e.cs.flags(E),Ie.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.er.transformPoint(s.position.left,s.position.top),r.Jh=e.x-r.nr.x,r.Zh=e.y-r.nr.y,s.position.left=r.hr+r.Jh,s.position.top=r.rr+r.Zh,n=this.style.zIndex,this.style.zIndex=-1,h=Zi.elementFromPoint(i.clientX,i.clientY),this.style.zIndex=n,h!==r.Kh)){r.Kh=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.os(!1,!0,!0)&&(a=null),a!==r.qh&&(r.qh&&(r.hasStateFlag(P)&&r.cs.flags(P),Ie.dropHoverEffect(r.qh,!1),t(r.qh).triggerHandler(t.Event("ap-dragleave",{value:r,originalEvent:i}))),r.qh=a,a&&(r.hasStateFlag(C)&&r.cs.flags(C),Ie.dropHoverEffect(a,!0),t(r.qh).triggerHandler(t.Event("ap-dragenter",{value:r,originalEvent:i}))))}},stop:function(i,s){var e,n,h=this.rlDragCtrl;if(h){(e=h.qh)&&e.dropHelper.absolutePosition()&&(n=convertPointFromNodeToPage(h.node,0,0),n=convertPointFromPageToNode(e.node,n.x,n.y)),Ie.dragEffect(h,!1);var r,a=h.node.style,o=h.sr;for(r in o)a[r]=o[r];if(delete h.sr,h.Jh+=h.tr,h.Zh+=h.ir,e)h.hasStateFlag(M)&&h.cs.flags(M),Ie.dropHoverEffect(e,!1),e.dropHelper.drop(h,n,!0,{x:h.Jh,y:h.Zh}),t(h).triggerHandler(t.Event("ap-dragend",{value:h.dropTarget||null,originalEvent:i}));else{var u=h.savedData();u&&u.st?h.state(u.st):h.cs.flags(y);var c=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 Qe&&t.os(!0,!0)&&t.submit(h)}};h._s.dd[1]?(h.hasStateFlag(M)&&h.cs.flags(M),t(h).triggerHandler(t.Event("ap-dragend",{value:null,originalEvent:i})),Ie.revert(h,h.Jh,h.Zh,Ie.RevertTime,c)):(h.hasStateFlag(M)&&h.cs.flags(M),h.translateBy(h.Jh,h.Zh),t(h).triggerHandler(t.Event("ap-dragend",{value:null,originalEvent:i})),c())}delete h.Kh,delete h.qh,delete h.nr}}};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 Ie(this),this.node.rlDropCtrl=this);if(this.or=this.node.clientWidth,this.ur=this.node.clientHeight,this.shape=new Un(this.node,this),this.cs=new Pe(this,e.s),this.cs.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.Nn=s.Cs.mn({ctrl:e}),this.Nn||(c=!1,this.Nn=new mn(s.Cs,!1));var f=this.Nn;f.pn(e.n),f.Dn(e.md),f.synchronizeWithPrez(!0),c||f.loadResource(e.mi)}e.e&&e.e.l&&Re(this,e.e.l,s.Cs.options.playMode);var l,d,p,v,m=e.cc||[];for(l=0,d=m.length;l<d;++l)(p=Ye((v=m[l]).k,s,v))&&this.insertChild(p);if(this.cr(e.ti),void 0!==e.m){var b=Qt[s.Cs.options.playMode];(e.m&b)!==b&&this.lr(!1)}void 0!==e.uts&&this.userSelection(1==e.uts)},id:function(){return this._s.i},createNode:function(){return Zi.createElement("div")},prez:function(){return this.slide?this.slide.Cs:null},mediaPlayer:function(){return this.Nn},defaultCtrlData:function(){var t,i,s=this.prez()._s.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.dr++,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=Ye(t.k,this.slide,t);return i&&this.insertChild(i),i},showProp:function(){return this.Oe?"flex":"block"},autoWidth:function(t){return this.pr=t,t&&(this.vr=!1,this.Oe?this.Dh=(this.node.offsetWidth||this.or)/(this.node.offsetHeight||this.ur)||0:this.Dh=(this.node.clientWidth||this.or)/(this.node.clientHeight||this.ur)||0),this},autoHeight:function(t){return this.vr=t,t&&(this.pr=!1,this.Oe?this.Dh=(this.node.offsetWidth||this.or)/(this.node.offsetHeight||this.ur)||0:this.Dh=(this.node.clientWidth||this.or)/(this.node.clientHeight||this.ur)||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.pr=!1,this.Cn(),this):this.Oe?this.node.offsetWidth:this.node.clientWidth},height:function(t){return arguments.length?(this.node.style.height=qi(t)?t+"px":t,this.vr=!1,this.Cn(),this):this.Oe?this.node.offsetHeight:this.node.clientHeight},Ah: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===kt||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.pr=this.vr=!1,this.Cn(),this):{width:this.node.clientWidth,height:this.node.clientHeight}},accText:function(t){return arguments.length||(t=""),this.node.setAttribute("aria-label",t),this},cr:function(t){isNaN(t)||this!==this.slide&&(-2==t?this.node.tabIndex=-1:-1==t?this.node.removeAttribute("tabIndex"):this.node.tabIndex=t)},lr:function(t){if(!(this.mr===t||void 0===this.mr&&t)){this.mr=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 Je){var i,s,e,n=this.children,h=this._s.ti>0?this._s.ti:0,r=t.br;for(i=0,s=n.length;i<s;++i)(e=n[i])instanceof Je&&e.br===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.wr?(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.wr?(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.Sh&&"auto"===this.node.style.height&&("middle"===this.wr?(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.wr?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)},gr:function(t){return t||(t={x:0,y:0},this.parent)?(this.parent&&(this.parent.gr(t),t.x+=this.parent.node.offsetLeft,t.y+=this.parent.node.offsetTop),t):t},center:function(t,i){this.kr=t,this.yr=i},centerX:function(){if(this.kr){var t=this.gr().x,i=this.slide.node.clientWidth;this.left((i-this.or)/2-t)}},centerY:function(){if(this.yr){var t=this.gr().y,i=this.slide.node.clientHeight;this.top((i-this.ur)/2-t)}},rotate:function(t){var i=eh.transform,s=i.get(this);return arguments.length?(s.rotate=t,i.set(this,sh(s)?"":s),this.animProps&&this.animProps.set("rotate",s.rotate),this):s.rotate},rotateBy:function(t){var i=eh.transform,s=i.get(this);return s.rotate+=t,i.set(this,sh(s)?"":s),this.animProps&&this.animProps.set("rotate",s.rotate),this},translate:function(t,i){var s=eh.transform,e=s.get(this);return arguments.length?(e.translateX=t||0,e.translateY=i||0,s.set(this,sh(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=eh.transform,e=s.get(this);return e.translateX+=t||0,e.translateY+=i||0,s.set(this,sh(e)?"":e),this.animProps&&(this.animProps.set("translateX",e.translateX),this.animProps.set("translateY",e.translateY)),this},scale:function(t,i){var s=eh.transform,e=s.get(this);return arguments.length?(1===arguments.length&&(i=t),e.scaleX=t,e.scaleY=i,s.set(this,sh(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=eh.transform,e=s.get(this);return 1===arguments.length&&(i=t),e.scaleX*=t,e.scaleY*=i,s.set(this,sh(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=eh.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,sh(r)?"":r),this.animProps&&this.animProps.set("transform",r),this):r},updateCachedTransform:function(){if(this.animProps){var t=eh.transform.get(this);this.animProps.set("transform",t)}return this},flexbox:function(t){if(delete this.Oe,t){this.Oe=!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._r,delete this.Tr,delete this.Sh;var i=this.node.style;if(t){this.Sh=!0,this.or=0,this.ur=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._r={type:"width"}:2===t[9]&&(this._r={type:"height"}),this._r&&"width"===this._r.type?this._r.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._r&&"height"===this._r.type?this._r.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.Tr=!0)}else i.position="absolute"},Ne:function(){for(var t,i=this.children,s=0,e=i.length;s<e;++s)(t=i[s]).Ne&&t.Ne();this.textContainer&&this.xr(),this.shape&&this.shape.layout()},Mh:function(t){for(var i=this.parent,s=null;i&&i.Oe;){if(!((s=i.parent)&&s.Oe&&i.Sh)){i.Cn&&(i.Cn(),i.Cn());break}i=s}},Eh:function(){if(!he.browser.safari)return!1;for(var t,i,s,e,n,h,r,a=this.Oe&&"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.Oe){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.Eh()&&(t&&a&&(s.height="0%"),o=!0)}return o},Cn:function(){if(this.Sr||(this.Sr=0),this.Sr>10)as("Recursive checking resized: "+this.name());else{++this.Sr;var t=this.node.clientWidth,i=this.node.clientHeight;if(this.Oe&&(t=this.node.offsetWidth,i=this.node.offsetHeight),this._r&&this.parent&&this.parent.Oe){var s=this.parent.node.style.flexDirection||"row";"height"==this._r.type?"row"==s||0==parseInt(this.node.style.flexShrink)?(i=t/this._r.value,this.or=t):delete this._r:"column"==s||0==parseInt(this.node.style.flexShrink)?(t=i*this._r.value,this.ur=i):delete this._r}var e,n,h,r=this.children;if(t===this.or&&i===this.ur&&this.Oe)for(n=0,h=r.length;n<h;++n)(e=r[n]).Sh&&(e.Oe?e.Cn():e.node.clientWidth===e.or&&e.node.clientHeight===e.ur||e.Cn());if(t===this.or&&i===this.ur&&!this.Nh)return this.centerX(),this.centerY(),void--this.Sr;if(!this._r&&this.Sh)this.or=t,this.ur=i,this.onResized(),this.Oe||(this.or=this.node.clientWidth,this.ur=this.node.clientHeight);else{var a=t-this.or,o=i-this.ur;this.or=t,this.ur=i,this.onResized(a,o)}var u=[];for(n=0,h=r.length;n<h;++n)(e=r[n]).Cn(),e.dropHelper&&u.push(e);for(n=0,h=u.length;n<h;++n)u[n].dropHelper.layout();--this.Sr}},onResized:function(t,i){!this.vr&&!this.pr||this.Tr||(this.Dh?this.vr?(t||this.Nh)&&(delete this.Nh,this.height(this.or/this.Dh),this.vr=!0):(i||this.Nh)&&(delete this.Nh,this.width(this.Dh*this.ur),this.pr=!0):this.Dh=this.or/this.ur||0),delete this.Nh,this._r&&(t&&this.width(this.or),i&&this.height(this.ur)),this.centerX(),this.centerY(),this.textContainer&&(this.xr(),this.textVerticalAlign(this.wr)),this.shape.layout()},Er:function(){var t,i,s=this.children;for(t=0,i=s.length;t<i;++t)s[t].Er()},onLayoutSwitched:function(){this.cs.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.Oe)for(t=0,i=e.length;t<i;++t)(s=e[t]).Sh&&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.Mr(),t.Cn()),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.Cr(),this.cleanup()},Mr:function(){var t,i,s=this.slide;for(s.dr<=this._s.i&&(s.dr=this._s.i+1),s.Pr[this._s.i]=this,s.Ir[this._s.n]=this,t=0,i=this.children.length;t<i;++t)this.children[t].Mr()},Cr:function(){var t,i,s=this.slide;for(delete s.Pr[this._s.i],delete s.Ir[this._s.n],t=0,i=this.children.length;t<i;++t)this.children[t].Cr()},state:function(t){return arguments.length?(typeof t===Ai?this.cs.name(t):this.cs.id(t),this.savedCurrentState(t),this):this.cs.name()},savedCurrentState:function(t){var i=this.savedData(!0);if(i)if(arguments.length)i.st=t;else{var s=(t=this.cs)._s[t.se];i.st=s.i}return this},Rr:function(){return Zi.createElement("div")},Ar:function(t){rs.innerHTML=t,(this.splitTexts?this.splitTexts.Dr:this.textNode.innerHTML)!==rs.innerHTML&&(this.textNode.innerHTML=t,delete this.splitTexts)},Nr:function(){var t="";return this.Tr?t+="position: relative;":t+="position: absolute;",this._s.k===i.o&&this._s.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.Or&&(t+=" cursor: "+this.Or+";"),t},Lr:function(){if(!this.textNode){this.textContainer=Zi.createElement("div"),this.node.appendChild(this.textContainer);var t=this.textContainer.style;this.Tr?(t.position="relative",t.boxSizing="border-box",t.width="100%",t.height=""):(t.position="absolute",t.width="",t.height="",t.boxSizing=""),this.xr(),this.textNode=this.Rr(),t=this.textNode.style,this.Fr?t.cssText=this.Fr:(t.position="absolute",t.left=t.right=0,t.wordWrap="break-word",t.pointerEvents="auto"),this.wr&&this.textVerticalAlign(this.wr),this.textContainer.appendChild(this.textNode),void 0!==this.Or&&(this.textNode.style.cursor=this.Or),!1===this.mr&&(this.textContainer.style.opacity=0),delete this.Ur,this.Yr&&100!=this.Yr&&this.Br()}},html:function(i){if(!arguments.length)return this.textNode?this.textNode.innerHTML:"";if(i+="",!this.textNode&&i&&this.Lr(),this.textNode){if(this.Yr&&100!=this.Yr){this.Hr=i;var s={css:this.textNode.style.cssText,html:i};r=s,a=this.Yr/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.Hr;var e=this,n=this.slide.Cs.vars,h=n.replace(i);this.Ar(h.text),this.zr&&(n.removeObserver(this.zr),delete this.zr),h.vars.length?(this.Xr=i,this.zr=function(){e.Ar(n.replace(e.Xr).text)},n.addObserver(h.vars,this.zr)):delete this.Xr}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.Dr=a,this.splitTexts=o,o.listItems||(o.listItems=[],t("li",this.textContainer).each(function(){o.listItems.push(new Oe(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 Oe(r[s],this)}return this},unsplitText:function(){return this.textNode&&this.splitTexts&&void 0!==this.splitTexts.Dr&&(this.textNode.innerHTML=this.splitTexts.Dr,delete this.splitTexts),this},textStyle:function(t){return t=(t||"")+this.Nr(),this.textNode?(this.textNode.style.cssText=t,delete this.Ur,this.Yr&&100!=this.Yr&&this.Br()):this.Fr=t,this},textVerticalAlign:function(t){if(!arguments.length)return this.wr||"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.Tr||(i.top="50%",i[Cs]="translateY(-50%)"),i.bottom="auto")}this.wr=t}return this},textMargin:function(t,i,s,e){return arguments.length?(this.Gr=[t,i,s,e],this.textContainer&&this.xr(),this):(this.Gr||(this.Gr=[5,5,5,5]),this.Gr.slice())},fontScale:function(t){if(!arguments.length)return this.Yr||100;if(t!=(this.Yr||100)){var i;if(this.Yr=t,this.textNode)i=void 0!==this.Hr?this.Hr:void 0!==this.Xr?this.Xr:this.html(),this.html(i),this.Br();return this}},Br:function(){this.textNode&&(void 0===this.Ur&&(this.Ur=parseFloat(t(this.textNode).css("font-size"))||16),this.textNode.style.fontSize=this.Ur*this.Yr/100+"px")},xr:function(){var t,i=this.textMargin(),s=this.textContainer.style;if(this.Tr){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.wr?s.top=(this.node.clientHeight-this.textContainer.clientHeight)/2+"px":"bottom"===this.wr&&(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.Or=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.Vr||(this.Vr={}),this.Vr[e]||(this.Vr[e]=[]),this.Vr[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.Vr,this;var e,n=i+"-hdl",h=this.Vr?this.Vr[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.Vr[n]}}else t(this).off(i),this.Vr&&delete this.Vr[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.$r!=!t&&(t?(this.$r=!0,(i=this.node.style.display)==(s=this.hideProp())&&(i=void 0)):(delete this.$r,s=this.Wr),void 0!==s&&(eh.display.set(this,s),this.animProps&&this.animProps.set("display",s)),void 0!==i&&(this.Wr=i));return this},animate:function(t,i,s){"object"!=typeof s&&(s={direction:s});var e=new lh,n=this,h=he.createEffect(this,t,0,i||0,s);if(!h)return this;this.ms(e),e.addChild(h).addChild(new ah(function(){setTimeout(function(){n.vs(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.cs.flags();return t?i|=x:i&=~x,this.cs.flags(i),this},hasStateFlag:function(t){var i=!1;if(this.cs){var s,e,n=this.cs;for(s=0,e=n._s.length;s<e;++s)if((n._s[s].p&t)==t){i=!0;break}}return i},enable:function(t){return arguments.length||(t=!0),this.disable(!t)},disabled:function(){return(this.cs.flags()&x)===x},enabled:function(){return!this.disabled()},cleanup:function(){var i,s,e=this.jr,n=this.children;if(e){for(i=0,s=e.length;i<s;++i)e[i].remove();delete this.jr}for(this.node.rlDragCtrl&&(t(this.node).draggable("destroy"),delete this.node.rlDragCtrl),this.node.rlDropCtrl&&delete this.node.rlDropCtrl,this.zr&&(this.prez().vars.removeObserver(this.zr),delete this.zr,delete this.Xr),this.Nn&&this.Nn.cleanup(),i=0,s=n.length;i<s;++i)n[i].cleanup();return this},ms:function(t){t&&(t.slide=this.slide,this.jr?this.jr.push(t):this.jr=[t])},vs:function(t){if(t&&(t.remove(),this.jr)){var i=this.jr.indexOf(t);i>=0&&this.jr.splice(i,1)}return this},lh:function(t){var i,s=this.jr;if(s)for(i=s.length-1;i>=0;--i)if(t(s[i]))return s[i];return null},ps:function(t){var i,s=[],e=this.jr;if(e)for(i=e.length-1;i>=0;--i)t(e[i])&&s.push(e[i]);return s},fs:function(t){var i=this.slide.Cs.time();t?(void 0!==this.Qr&&(this.Qr>=i&&delete this.ls,delete this.Qr),!1!==this.ls&&(this.os(!0,!0)||this.Kr)?(this.Kr&&delete this.Kr,this.ls=!0,this.slide.Cs.pause(!0)):!1===this.ls&&delete this.ls):(this.ls&&this.slide.Cs.pause(!1),this.ls=!1,this.Qr=i)},qr:function(i){var s,e=this.slide.Cs.timeline,n=this,h=this.prez(),r=function(){n.os(!0,!0)&&(n.disable(),h&&!h.ended&&t(n).triggerHandler("ap-timeout"))};i>0?(s=new lh({startTime:0}),this.ms(s),s.addChild(new ah(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._s.i],t&&!i&&(i=s[this._s.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]).os(!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.os(!0,!1)||n.clear(t,i);return this},restore:function(t){t||(t=this.savedData()),this._s.rs&&t&&void 0!=t.st&&this.cs&&(this.state(t.st),this.Cn());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(),i=0;return t&&(i=t.p||0,t.r==At.xi&&t.sp&&(i-=t.sp)),i},attempts:function(){var t=this.savedData();return t&&t.a||0},Jr:function(t){var i=this.maxAttempts();i>=0&&t>=i&&this.disable()},maxAttempts:function(t){var i=this._s.e;return arguments.length?(i||(i=this._s.e={}),i.a=t<0?-1:t,this.Jr(this.attempts()),this):i&&void 0!==i.a?i.a:-1},Zr: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=ds(f.vars.get("apScoreSubtract"),10)||0;i.sp=l}else s==At.xi&&i.sp&&(n-=i.sp);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.Jr(i.a),this.disabled()&&(this.Kr=!0))),f.lms)if(u||h)f.lms.storeSuspendData(f.ks,!0);else{var d=this._s,p=f.learnerResponse(this.slide._s,d,i),v=f.correctResponses(this.slide._s,d),m={reportid:d.r,kind:d.k,type:d.t,multiline:d.f&ht.ft,name:d.n};f.lms.storeInteractionData(m,s,n,p,v)}if(t(this).triggerHandler(t.Event(o),{value:r}),void 0!==n&&s==At.Si){var b=ds(f.vars.get("apScoreSubtract"),10)||0;b!=l&&(i.sp=b,f.ended||f.lms.storeSuspendData(f.ks,!0))}var w=f.vars;w.notifyObservers("apQuizScore"),w.notifyObservers("apQuizScorePercentage"),w.notifyObservers("apQuizPassed"),w.notifyObservers("apQuizPassedBool"),w.notifyObservers("apQuizTakenInteractions"),w.notifyObservers("apQuizUnTakenInteractions"),w.notifyObservers("apQuizCorrectInteractions"),w.notifyObservers("apQuizIncorrectInteractions"),w.notifyObservers("apDetailedResult"),w.notifyObservers("apDetailedResult2")},os:function(t,i,s){var e=this.prez().os(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},ia:function(){if(this.Nn){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.Nn.uh(e[i],r(n[i]))}},name:function(){return this._s.n||""},sa:function(){this.ea&&(this.node.removeChild(this.ea),delete this.ea),this.na&&this.node&&(this.node.removeChild(this.na),delete this.na),this.ha&&this.node&&(this.node.removeChild(this.ha),delete this.ha),this.ra&&this.node&&(this.node.removeChild(this.ra),delete this.ra),this.slide.aa&&this.slide.node&&(this.slide.node.removeChild(this.slide.aa),delete this.slide.aa)},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},oa: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"):"middle-left-inner"===i?(t.style.top="50%",t.style.transform="translateX(50%) translateY(-50%)",t.style.textAlign="center"):"top-left-outer"===i?(t.style.transform="translateX(-100%)",t.style.textAlign="center"):"top-left-inner"===i?t.style.textAlign="center":(t.style.top="50%",t.style.left="50%",t.style.transform="translateX(-50%) translateY(-50%)",t.style.textAlign="center"))},ua: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},fa: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=null!==t?t?"#2fae62":"#d15327":"#A9A9A9",a.style.backgroundClip="padding-box",a.style.borderRadius="32px",a.style.border="1px solid #ffffff",a.style.opacity=.8;var o=Zi.createElement("div"),u=Zi.createTextNode(i);return o.style.color="white",e?(a.style.display="inline-flex",a.style.padding="8px"):(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%)"),o.appendChild(u),a.appendChild(o),this.oa(a,s),a.style.zIndex=$t.Yi,a},la:function(){return this.ea},da:function(){var t=Zi.createElement("div");return t.setAttribute("data-ap-ctrlid",this.id()),t.style.position="absolute",t.style.left="0px",t.style.top="0px",t.style.width="100%",t.style.height="100%",t.style.zIndex=$t.Yi,t},pa:function(t,i){if(this.ea&&i&&t){var s=Zi.createElement("div");s.style.position="absolute",s.style.left=i.node.offsetLeft+"px",s.style.top=i.node.offsetTop+"px",s.style.width=i.node.offsetWidth+"px",s.style.height=i.node.offsetHeight+"px",s.style.transform=i.node.style.transform,s.setAttribute("data-ap-ctrlid",i.id()),s.appendChild(t),this.ea.appendChild(s)}},Qh:function(){if(this.ea){var t,i,s,e,n,h,r,a,o,u=this.node.childNodes;for(t=0,i=u.length;t<i;++t)if((e=(s=u[t]).getAttribute("data-ap-ctrlid"))===this.id().toString()){for(h=0,r=(n=s.childNodes).length;h<r;++h)a=n[h],e=parseInt(a.getAttribute("data-ap-ctrlid")),void 0!==(o=this.childById(e))&&(a.style.left=o.node.offsetLeft+"px",a.style.top=o.node.offsetTop+"px",a.style.width=o.node.offsetWidth+"px",a.style.height=o.node.offsetHeight+"px",a.style.transform=o.node.style.transform);break}}},va:function(t,i){var s=this.slide.prez(),e=Zi.createElement("div");return e.innerHTML=t?s._s.playerIcons.correct:s._s.playerIcons.incorrect,this.oa(e.firstChild,i),"middle-left"==i?e.firstChild.style.marginLeft="-3px":"middle-right"==i&&(e.firstChild.style.marginLeft="3px"),e.firstChild.style.zIndex=$t.Yi,e.firstChild},ma:function(t,i){if(t&&t.length>0){var s=this.shape&&"none"!==this.shape.ba&&this.shape.wa?this.shape.wa:0,e=Zi.createElement("div"),n=Zi.createElement("span"),h=Zi.createTextNode(this.slide.prez().ui.Is.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.oa(e,i),e.style.zIndex=$t.Yi,e}},ga: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.ba&&this.shape.wa?this.shape.wa:0,o=Zi.createElement("div");o.className="ap-correct-values-dropdown",o.yh=this,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()._s.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.Is.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 k=5+(m=parseInt(m))/16*7.7*e[w].length;b<k&&(b=k),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=$t.Yi+1,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._s.k!=i.Y&&(a.right="0")}var v=this.yh;if(v){var m=v.slide;if(m){var b=m.or;this.getBoundingClientRect().x+o>=b&&(a.left=-o+"px")}}}),o.style.zIndex=$t.Yi,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")}}),Fe={_default:function(t,i){return new Le(t,i)}};function Ue(t){for(var i=arguments.length;--i>0;)Fe[arguments[i]]=t}function Ye(t,s,e){if(s&&e&&void 0!==e.m){var n=Qt[s.Cs.options.playMode];if(!((e.m&n)==n)&&e.k!=i.C&&e.k!=i.I)return null}var h=Fe[t]||Fe._default;return h?h.apply(null,Array.prototype.slice.call(arguments,1)):null}var Be=Ls(Le,{$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._s.ca&&(a=e._s.ca.r||{}),e._s&&e._s.h)for(var o=0;o<e._s.h.length;o++){var u={};u.r=[0,h.margin,0,0,2,1],a&&a.length&&a.length==e._s.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}],Le.prototype.$init.call(this,e,h),this.node.style.zIndex=$t.Oi,Ns(this.node.style),t(this.node).css("visibility",e.Cs.Be?"visible":"hidden")},onResized:function(t,i){if(this.ka&&!0===this.ka)Le.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._s.margin,0)+"px",this.node.style.height=Math.max(e-2*this._s.margin,0)+"px";var n=this.innerTextNode(),h=n?n.width()+this.Gr[0]+this.Gr[2]+1:0,r=n?n.height()+this.Gr[1]+this.Gr[3]+1:0;this.node.style.width=h+"px",this.node.style.height=r+"px";for(var a=0;a<this._s.s.length;a++){var o=this._s.s[a].w;for(a=0;a<o.length;a++)o[a].r[2]=h,o[a].r[3]=r}this.cs&&this.cs.layout(),this.ka=!0,Le.prototype.onResized.call(this,t,i),this.ka=!1}},innerTextNode:function(){return t("span",t(this.textNode)).first()},onLayoutSwitched:function(){if(Le.prototype.onLayoutSwitched.call(this),this.ya){var i=this.innerTextNode();t(i).html(this.ya||""),this.onResized(0,0)}}});Ue(function(t,i){return new Be(t,i)},i.G);var He=Ls(Le,{$init:function(t,i){if(this._a=0,this.Ta=0,this.xa=!1,this.Sa=!1,Le.prototype.$init.call(this,t,i),this._s.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=Rn[s.us];if(o&&o[0]){var u=s.container.clientWidth,c=s.container.clientHeight,f=new An;o[0].apply(f,[0,0,u,c]),a.setAttribute("d",f.path()),a.setAttribute("fill","black"),h.appendChild(a)}n.appendChild(h),s.Ea&&s.Ea.setAttribute("mask","url(#"+h.id+")"),s.Ma=h}}this.prez().registerTimer(this)},Ih:function(t,i){this.Ca(),i&x&&this.pauseTimer()},restore:function(t){return Le.prototype.restore.call(this,t),t||(t=this.savedData()),t&&t.tm&&(this.xa=t.tm.s,this.Ta=t.tm.v,this.Sa=t.tm.as,this._a=this.prez().elapsedTime()-this.Ta,this.Ca()),this},cleanup:function(){return this.prez().unregisterTimer(this),Le.prototype.cleanup.call(this)},startTimer:function(){this.xa||(this.Ta&&this.Ta!=this._s.tmp.duration||(this.Ta=0),this.xa=!0,this._a=this.prez().elapsedTime()-this.Ta,this.tick())},pauseTimer:function(){this.xa&&(this.xa=!1,this.Pa())},stopTimer:function(){this.xa=!1,this.Ta=0,this.Pa(),this.Ca()},setTimerValue:function(i){var s=this.getTimerDuration(),e=this._s.tmp.countdown;i>s&&(i=s),i<0&&(i=0);var n=this.Ta;this.Ta=e?s-i:i,this._a+=n-this.Ta,this.xa||(this.Pa(),this.Ca(),this.Ta==this._s.tmp.duration&&t(this).triggerHandler("ap-timer-complete"))},getTimerValue:function(){var t=this.getTimerDuration();return this._s.tmp.countdown?t-this.Ta:this.Ta},getTimerDuration:function(){return this._s.tmp.duration},Pa:function(){this.savedData(!0).tm={s:this.xa,v:this.Ta,as:this.Sa}},tick:function(){this.xa&&!this.prez().ended&&(this.Ta=this.prez().elapsedTime()-this._a,this.Ta>=this._s.tmp.duration&&(this.Ta=this._s.tmp.duration,this.xa=!1),this.Pa(),this.Ca(),this.Ta==this._s.tmp.duration&&t(this).triggerHandler("ap-timer-complete"))},Ca:function(){var t=this._s.tmp.type,i=this._s.tmp.subType,s=this._s.tmp.countdown,e=this._s.tmp.duration,n=s?e-this.Ta:this.Ta,h=this.shape,r=n/e;if(t==yi){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.Sh&&this.Tr&&this.onResized()}}else if(t==_i&&h&&h.Ma){var l=h.Ma.querySelector("path");if(l){var d=Rn[h.us],p="none"!==h.ba?h.wa: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 An;d[0].apply(g,[b*r+v+m,m+v,b-b*r,w].concat(h.Ia)),l.setAttribute("d",g.path())}}}}});Ue(function(t,i){return new He(t,i)},i.U);var ze=Ls(Le,{$init:function(i,s){Le.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.Ra=!0,setTimeout(function(){e.Ra&&(e.os(!1,!0)&&e.cs.flags(e.cs.flags()|_),delete e.Ra)},0))}).on("mouseup",function(){e.Ra&&delete e.Ra,e.cs.flags(e.cs.flags()&~_)}).on("keydown",function(i){i.which!==Js.SPACE&&i.which!==Js.ENTER||!e.os(!1,!0)||e.cs.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.os(!1,!0)&&(this.cs.has(E)||this.cs.flags(this.cs.flags()|T))}).on("ap-rollout",function(){e.Ra&&delete e.Ra,this.cs.has(E)||this.cs.flags(this.cs.flags()&~(T|_))})}});Ue(function(t,i){return new ze(t,i)},i.M);var Xe=Ls(Le,{$init:function(t,i){Le.prototype.$init.call(this,t,i),this.on("ap-dblclick",function(t,i){this.os(!1,!0)&&this.submit(t.value,!1)});var s=t.Cs.options.playMode;"Tutorial"!==s&&"Practice"!==s||this.on("ap-incorrect",function(){this.lr(!0)})},Mr:function(){this.slide.Hn.push(this),Le.prototype.Mr.call(this)},submit:function(t,i){if(this.prez()&&this.prez().ended)return this;if(!arguments.length)return this;var s=this._s.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.Zr(this.savedData(!0),u,t,h?a:void 0,!n,t),this},restore:function(t){return Le.prototype.restore.call(this,t),t||(t=this.savedData()),t&&void 0!==t.a&&this.Jr(t.a),this},ys:function(t){t=t||{};var i=this._s.e||{},s=i.f||0,e=i.v||[],n=(s&xt)===xt,h=this.savedData();if(n){Le.prototype.sa.call(this);var r=h&&h.r===At.xi,a=null;if(r&&t.showCorrect||!r&&t.showIncorrect){var o=this.va(r,"middle-right");o&&(this.node.appendChild(o),r?this.node.na=o:this.node.ha=o,a=o.style),this.lr(!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.Is));var f=Le.prototype.ga.call(this,a,u);f&&(this.ra=f)}this.lr(!0)}if(t.showResult){var l=At.Ei;h&&void 0!==h.r&&(l=h.r);var d=this.ua(l,this.slide.prez().responseResultString(l));d&&(this.slide.node.appendChild(d),this.slide.aa=d)}}}}),Ge=Ls(Le,{$init:function(i,s){Le.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.os(!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.os(!1,!0)){var n=e.zn(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.Cs.options.playMode;"Tutorial"!==n&&"Practice"!==n||this.on("ap-incorrect",function(){this.lr(!0)})},Mr:function(){this.slide.Tn.push(this),Le.prototype.Mr.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.zn(i,e);return e&&t(this).triggerHandler(t.Event("ap-keypress",{value:n.answer,originalEvent:s})),n.result!==At._i&&this.Zr(this.savedData(!0),n.result,n.answer,n.score,!n.report,n.answer),this},zn:function(t,i){var s=this._s.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 Le.prototype.restore.call(this,t),t||(t=this.savedData()),t&&void 0!==t.a&&this.Jr(t.a),this},ys:function(t){t=t||{};var i=this._s.e||{},s=i.f||0,e=i.v||[],n=(s&xt)===xt,h=this.savedData();if(n){Le.prototype.sa.call(this);var r=h&&h.r===At.xi,a=null;if(r&&t.showCorrect||!r&&t.showIncorrect){var o=this.va(r,"middle-right");o&&(this.node.appendChild(o),r?this.na=o:this.ha=o,a=o.style),this.lr(!0)}if(t.showValues){for(var u=[],c=0;c<e.length;c++)u.push(qs.name(e[c],this.slide.prez().ui.Is));var f=Le.prototype.ga.call(this,a,u);f&&(this.ra=f),this.lr(!0)}if(t.showResult){var l=At.Ei;h&&void 0!==h.r&&(l=h.r);var d=this.ua(l,this.slide.prez().responseResultString(l));d&&(this.slide.node.appendChild(d),this.slide.aa=d)}}},os:function(t,i,s){return(!this.prez()||!this.prez().ended)&&Le.prototype.os.call(this,t,i,s)}}),Ve=Ls(Le,{$init:function(t,i){Le.prototype.$init.call(this,t,i)}});function $e(t){return arguments.length?(this.textNode||this.Lr(),this.textNode.value=t+"",this.Aa(),this):this.textNode&&this.textNode.value||""}function We(){return[this.Da.firstCorrectValue()]}Ue(function(t,i){return i.t===s.j?new Ge(t,i):i.t===s.V?new Xe(t,i):i.t===s.B?new Ve(t,i):void 0},i.C);var je=Ls(Le,{$init:function(i,s){this.xh=!0,s.v&&(this.Na=s.v),Le.prototype.$init.call(this,i,s),this.Lr(),this.Oa();var e=this;t(this.node).on("mousedown",function(t){e.os(!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.os(!1,!0)?e.prez()&&e.prez().highlightFocus()&&t(e.node).addClass("ap-focused"):i.preventDefault()}).on("blur",function(i){e.os(!1,!0)?t(e.node).removeClass("ap-focused"):i.preventDefault()})},Rr:function(){var i,s,e=this._s.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.La(),h=this;return n===Pt?t(i).on("input",function(t){if(h.os(!1,!0)){var i=h.zn();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.os(!1,!0)&&(Js.preventDefault(t),t.stopPropagation(),h.submit())}),i},cr:function(t){isNaN(t)||(this.Lr(),-2==t?this.textNode.tabIndex=-1:-1==t?this.textNode.removeAttribute("tabIndex"):this.textNode.tabIndex=t)},html:$e,text:$e,value:$e,caseSensitive:function(){return(this._s.f&ht.lt)===ht.lt},Nr:function(){var t=Le.prototype.Nr.call(this)+"border: none; margin: 0; padding: 0; background: transparent; width: 100%; outline: none;";return this._s.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 Le.prototype.restore.call(this,t),t||(t=this.savedData()),t&&void 0!==t.a&&this.Jr(t.a),this.text(t&&t.v||"")},Ih:function(t,i){this.textNode&&(this.textNode.disabled=(i&x)==x)},La:function(){var t=this._s.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.La()===Pt)return this;t=this.zn()}return t.result===At.Mi&&(t.result=At.Si),t.result!==At._i&&this.Zr(this.savedData(!0),t.result,t.answer,t.score,!t.report,t.answer),this},zn:function(){var i=this._s.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.Fa&&(this.Aa(),t(this).triggerHandler(t.Event("ap-textenter",{value:o})));var b={result:u,answer:o,score:h?a:void 0,report:n,prevValue:this.Fa||""};return this.Fa=o,b},Aa:function(){if(this.Na&&this.prez()){var t=this.textNode.value,i=this.prez().vars;i.us(this.Na)==wi.NUMBER&&(t=Number(t)),i.set(this.Na,t)}},firstCorrectValue:function(){var t=this._s.e;return t&&t.v&&t.v.length>0&&t.v[0]?t.v[0]:""},Oa:function(){var t=this.slide,i=t.Cs.options.playMode||"",s=this._s.e.f||0;if("Demo"===i&&(s&xt)===xt){for(var e=t.ae,n=0,h=0,r=null,a=null,o=(t._s.tl[0]||null)[2],u=0,c=null!==o?o.length:0;u<c;++u)if(o[u][0]==this._s.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._s.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 oh(this,"text",{startTime:m,duration:w,tweenParams:[We],tweenType:jt.Vi});return g&&e.addChild(g),this}},ys:function(t){t=t||{};var i=(((this._s.e||{}).f||0)&xt)===xt,s=this.savedData();if(i){Le.prototype.sa.call(this);var e=s&&s.r===At.xi,n=null;if(e&&t.showCorrect||!e&&t.showIncorrect){var h=this.va(e,"middle-right");h.style.transform="translate(-100%, -50%)",h.style.paddingRight="3px",h&&(this.node.appendChild(h),e?this.na=h:this.ha=h,n=h.style)}if(t.showValues){var r=(this._s.e||{}).v||[""],a=Le.prototype.ga.call(this,n,r);a.style.transform="translate(-200%, -50%)",a.style.paddingRight="3px",a&&(this.ra=a)}if(t.showResult){var o=At.Ei;s&&void 0!==s.r&&(o=s.r);var u=this.ua(o,this.slide.prez().responseResultString(o));u&&(this.slide.node.appendChild(u),this.slide.aa=u)}}},os:function(t,i,s){return(!this.prez()||!this.prez().ended)&&Le.prototype.os.call(this,t,i,s)}});Ue(function(t,i){return new je(t,i)},i.S);var Qe=Ls(Le,{$init:function(t,i){Le.prototype.$init.call(this,t,i);var s=t.Cs.options.playMode;"Tutorial"!==s&&"Practice"!==s||this.on("ap-incorrect",function(){this.lr(!0)})},submit:function(t){if(this.prez()&&this.prez().ended)return this;if(!t)return this;var i=this._s.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.cs.flags(l),this.hasStateFlag(l)&&this.cs.flags(l),this.dropHelper.absolutePosition()&&t&&t.Vh&&(c=[t.Vh.x,t.Vh.y]),this.Zr(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._s.rs&&t.st&&(this.state(t.st),this.Cn()),void 0!==t.a&&this.Jr(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._s.rs&&e&&e.st&&(i.state(e.st),i.Cn()),this.dropHelper.drop(i,s,!1)}}return this},ys:function(t){t=t||{};var i=this._s.e||{},s=i.f||0,e=i.v||[],n=(s&xt)===xt,h=this.savedData();if(n){Le.prototype.sa.call(this);var r=h&&h.r===At.xi;if(r&&t.showCorrect||!r&&t.showIncorrect)(u=this.va(r,"middle-left"))&&(this.node.appendChild(u),r?this.na=u:this.ha=u);if(t.showCorrect)for(var a=0;a<e.length;a++){var o,u;if(o=this.slide.object(e[a]))Le.prototype.sa.call(o),(u=this.va(!0,"middle-left"))&&(o.node.appendChild(u),o.na=u)}if(t.showIncorrect)if(h&&void 0!==h.v)if(e.indexOf(h.v)<0)if(o=this.slide.object(h.v))Le.prototype.sa.call(o),(u=this.va(!1,"middle-left"))&&(o.node.appendChild(u),o.ha=u);if(t.showResult){var c=At.Ei;h&&void 0!==h.r&&(c=h.r);var f=this.ua(c,this.slide.prez().responseResultString(c));f&&(this.slide.node.appendChild(f),this.slide.aa=f)}(t.showCorrect||t.showValues)&&this.lr(!0)}},os:function(t,i,s){return(!this.prez()||!this.prez().ended)&&Le.prototype.os.call(this,t,i,s)}});Ue(function(t,i){return new Qe(t,i)},i.I);var Ke=Ls(Le,{$init:function(i,s){this.Ua=16,Le.prototype.$init.call(this,i,s);var e=this;t(this.node).on("mousedown",function(t){e.filterEvent(t)||(Qs(t,!0),e.Ra=!0,setTimeout(function(){e.Ra&&(e.os(!1,!0)&&e.cs.flags(e.cs.flags()|_),delete e.Ra)},0))}).on("mouseup",function(){e.Ra&&delete e.Ra,e.cs.flags(e.cs.flags()&~_)}),this.on("ap-rollover",function(t){this.os(!1,!0)&&this.cs.flags(this.cs.flags()|T)}).on("ap-rollout",function(){e.Ra&&delete e.Ra,this.cs.flags(this.cs.flags()&~(T|_))})},textMargin:function(t,i,s,e){if(!arguments.length){var n=Le.prototype.textMargin.call(this);if(this.isShowToggleButton()){var h=this.Ua+$i(2*Bi(7,this.Ua/4));if(n[0]+=h,this.Tr){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 Le.prototype.textMargin.call(this,t,i,s,e)},isShowToggleButton:function(){var t=this.cs,i=t._s[t.se];return i.tg&&!!i.tg[6]},check:function(t){return arguments.length||(t=!0),this.Ya(t,!1),this},Ya:function(i,s){var e=this.cs.flags(),n=!1;this.checked()!==i&&(n=!0,i?e|=S:e&=~S),this.cs.flags(e),s&&n&&t(this).triggerHandler(i?"ap-check":"ap-uncheck")},checked:function(){return(this.cs.flags()&S)===S},Ih: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.Ya(!1,!1),this)},setIconSize:function(t){this.Ua!==t&&(this.Ua=t,this.textContainer&&this.xr())},value:function(t){return arguments.length?(this.Ya(t,!1),this):this.checked()},os:function(t,i,s){return(!this.prez()||!this.prez().ended)&&Le.prototype.os.call(this,t,i,s)}}),qe=Ls(Ke,{$init:function(i,s){Ke.prototype.$init.call(this,i,s),this.node.setAttribute("role","checkbox");var e=this;this.on("ap-click",function(){this.os(!1,!0)&&this.Ya(!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.Ba():e.Ha();n&&(n.cr(s),e.cr(-2),t.stopPropagation(),t.preventDefault(),n.os(!1,!0)&&n.node.focus())}i&&(t.stopPropagation(),t.preventDefault(),i.os(!1,!0)&&(i.Ya(!i.checked(),!0),i!==e&&i.node.focus()))})},Ha: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){if(!a.disabled()&&(i||(i=a),s)){t=a;break}a===this&&(s=!0)}}return t},Ba: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){if(!r.disabled()&&(i||(i=r),s)){t=r;break}r===this&&(s=!0)}}return t}});Ue(function(t,i){return new qe(t,i)},i.N);var Je=Ls(Ke,{$init:function(i,s){Ke.prototype.$init.call(this,i,s),this.node.setAttribute("role","radio");var e=this;this.on("ap-click",function(){this.os(!1,!0)&&!this.checked()&&this.Ya(!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.za();break;case Js.RIGHT:case Js.DOWN:i=e.Xa()}i&&(t.stopPropagation(),t.preventDefault(),!i.checked()&&i.os(!1,!0)&&(i.Ya(!0,!0),i!==e&&i.node.focus()))})},radioGroup:function(t){return arguments.length?(this.br=t,this):this.br},Ya:function(t,i){if(t&&this.parent&&this.parent!==this.slide){var s,e,n,h=this.br,r=this.parent.children;for(s=0,e=r.length;s<e;++s)(n=r[s])!==this&&n instanceof Je&&n.br===h&&n.Ya(!1,i)}Ke.prototype.Ya.call(this,t,i),t&&this.parent&&-1===this.node.tabIndex&&this.parent.updateTabIndexGR(this)},za: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 Je&&r.br===this.br){if(!r.disabled()&&(i||(i=r),s)){t=r;break}r===this&&(s=!0)}}return t||i===this||(t=i),t},Xa: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 Je&&a.br===this.br){if(!a.disabled()&&(i||(i=a),s)){t=a;break}a===this&&(s=!0)}}return t||i===this||(t=i),t}});function Ze(){return arguments.length?this:""}Ue(function(t,i){return new Je(t,i)},i.O);var tn=Ls(Le,{$init:function(t,i){Le.prototype.$init.call(this,t,i);var s=this.node.style;this.Oe&&"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 Le.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:Ze});function sn(t,i){var s,e,n=i.cs.Rh(t.cs.at());n||(n=i.cs.Rh(0)),n&&(t.Ah(n[0],n[1],n[2]),s=t.node.offsetLeft||0,e=t.node.offsetTop||0,(n=t.cs.Rh(t.cs.at()))&&(t.Ah(n[0],n[1],n[2]),s-=t.node.offsetLeft||0,e-=t.node.offsetTop||0,t.translate(s,e)))}var en=Ls(tn,{$init:function(e,n){tn.prototype.$init.call(this,e,n),this.Ga=this._s.t;var h,r,a,o=this.children,u=this._s.e||{};u.v;if((this._s.e&&this._s.e.f&Ct||this.Ga==s.rt)&&(this.Va=!0,this.$a(),this.Ga!=s.rt&&this.cr(this._s.ti)),this.Ga===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.Ga===s.rt){var f={start:function(i,s){var e=this.rlControl,n=this.style;if(!e||!e.os(!1,!0)||e.prez()&&e.prez().ended)return!1;if(e.parent&&e.parent.Oe){e.er=getTransformationMatrix(this.parentNode).inverse(),e.nr=e.er.transformPoint(s.originalPosition.left,s.originalPosition.top),e.nr.x+=s.originalPosition.left-(parseFloat(this.offsetLeft)||0),e.nr.y+=s.originalPosition.top-(parseFloat(this.offsetTop)||0);var h=e.textContainer,r=h.style;Ie.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.Wa={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.ja={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.Qa=a,e.hasStateFlag(E)&&e.cs.flags(E),t(e).triggerHandler(t.Event("ap-dragstart",{originalEvent:i}))}else{e.sr={left:n.left,right:n.right,top:n.top,bottom:n.bottom},e.er=getTransformationMatrix(this.parentNode).inverse(),e.nr=e.er.transformPoint(s.originalPosition.left,s.originalPosition.top),e.nr.x+=s.originalPosition.left-(parseFloat(t(this).css("left"))||0),e.nr.y+=s.originalPosition.top-(parseFloat(t(this).css("top"))||0),Ie.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.Qa=a,e.hasStateFlag(E)&&e.cs.flags(E),t(e).triggerHandler(t.Event("ap-dragstart",{originalEvent:i}))}},stop:function(i,s){var e=this.rlControl;if(e)if(Ie.dragEffect(e,!1),e.parent&&e.parent.Oe){var n,h=e.node.style,r=e.textContainer.style,a=e.Wa,o=e.ja;h.order=e.sequentialOrder;for(n in a)h[n]=a[n];for(n in o)r[n]=o[n];delete e.Wa,delete e.ja,(u=e.Qa)&&u.parentNode&&u.parentNode.removeChild(u),delete e.Qa,e.hasStateFlag(M)&&e.cs.flags(M),delete this.Ka,delete this.qa,delete this.Ja,t(e).triggerHandler(t.Event("ap-dragend",{value:null,originalEvent:i}))}else{var u;sn(e,e.parent.children[e.sequentialOrder]),(u=e.Qa)&&u.parentNode&&u.parentNode.removeChild(u),delete e.Qa,e.hasStateFlag(M)&&e.cs.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.er.transformPoint(i.position.left,i.position.top),i.position.left=i.originalPosition.left+s.x-h.nr.x,i.position.top=i.originalPosition.top+s.y-h.nr.y,h.parent&&h.parent.Oe)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.Ka!==n.rlControl;var a=i.position.top;if(r)this.Ka=n.rlControl,delete this.qa;else if(void 0===this.Ja)r=!0;else if(void 0===this.qa)a!=this.Ja&&(this.qa=a>this.Ja);else{var o=a>this.Ja;o!=this.qa&&a!=this.Ja&&(this.qa=o,r=!0)}this.Ja=a}if(r&&n.rlControl!==h&&h.parent){var u=h.sequentialOrder,c=n.rlControl.sequentialOrder,f=h.parent.children;for(h.Qa.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.Ka}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.Qa.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,sn(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.Ga===s.it&&this.node.setAttribute("role","radiogroup"),this.Ga===s.ut&&this.cr(this._s.ti),this._s.k===i.B&&(this.Za=!1,u.h&&(this.Za=1==u.h,this.Za&&u.tl&&(this.to=u.tl)),this.slide.io.addQuestion(this))},onResized:function(t,i){Le.prototype.onResized.call(this,t,i),this.Va&&this.shuffleAnswers(null,!0),this.Qh()},onLayoutSwitched:function(){Le.prototype.onLayoutSwitched.call(this),this.Va&&this.shuffleAnswers(null,!0),this.Qh()},cr:function(t){if(!isNaN(t)){var i=this._s.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)]).cr(a._s.ti):a=o[h],a instanceof Je?(u=a.br,c.indexOf(u)<0?(t>=0&&a.cr(t),c.push(u)):a.cr(-2)):a instanceof je?a.cr(t):a instanceof qe&&(n&&t>=0?0==h?a.cr(t):a.cr(-2):a.cr(t))}else Le.prototype.cr.call(this,t)}},$a:function(){var t,i=this.savedData();if(i&&i.s)return i.s;switch(this.Ga){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]._s.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.$a()))return this;if(this.Va=!0,this.or||this.ur){var e,n,r=this.children;switch(this.Ga){case s.nt:case s.it:case s.et:for(e=0,n=r.length;e<n;++e)this.Oe?r[e].node.style.order=t[e]:sn(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.Oe?r[e].node.style.order=r[e].sequentialOrder:sn(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])._s.f&h&&o.push(a);for(e=0,n=Yi(o.length,t.length);e<n;++e)i&&o[e].dropTarget||(this.Oe?o[e].node.style.order=t[e]:sn(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._s.e||{},p=d.f,v=(p&xt)===xt,m=(p&Mt)!==Mt,b=v&&m,w=b&&(p&Et)===Et,g=0,k=!1,_=!1;if(this._s.k==i.B){for(a=d.v||[],o=[],u={},t=0,e=l.length;t<e;++t)r=l[t],this.slide.io&&this.slide.io.isAnswered(r.id(),this.id())&&(o.push(r),v&&(!k&&a.indexOf(r.id())<0&&(k=!0),w&&(g+=r._s.e.m)));this.slide.io&&this.slide.io.getSaveAnswered(u,this.id()),_=0===this.slide.io.getHotSpotEffects(this.id()).length&&(!v||a.length>0),v&&!k&&(k=!this.slide.io.isAcceptAnswers(this.id(),a)),k&&w&&this.Za&&(g=0),!v||k||_||this.Za&&a.length!==o.length&&(k=!0)}else switch(this.Ga){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&&(!k&&a.indexOf(r.id())<0&&(k=!0),w&&(g+=r._s.e.m)));_=0===o.length&&(!v||a.length>0),k&&w&&this.Ga===s.et&&(g=0),!v||k||_||a.length===o.length||(k=!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 je)if(o.push(r),S=r.value(),u[r.id()]=S,T=r._s.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}!k&&x<0&&S&&(k=!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&&!k)for(t=0,e=l.length;t<e;++t)if(l[t].sequentialOrder!==t){k=!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._s.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.Vh?L.push([P.Vh.x,P.Vh.y]):L.push([0,0])),U.push(P.id()),v&&(N=a.indexOf(P.id()),!k&&N<0&&(k=!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.cs.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=y;z=H<0?R:I,P.hasStateFlag(z)&&(P.cs.flags(z),P.savedCurrentState())}if(v&&!k&&A.length!==a.length)for(n=0,h=a.length;n<h;++n)A.indexOf(a[n])<0&&F.push(a[n])}if(v&&!k)for(t=0,e=F.length;t<e;++t)if(U.indexOf(F[t])<0){k=!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.br!==G?(G=r.br,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:k?At.Si:v?At.xi:At.Ti,b&&!w&&f===At.xi&&(g=d.m||0),this.Zr(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.Ga===s.rt&&this.shuffleAnswers(),this._s.k===i.B&&this.slide.io.clear(this),Le.prototype.clear.call(this,t,e))},disable:function(t){arguments.length||(t=!0),this._s.k===i.B&&this.slide.io.disableQuestion(this);var s,e,n=this.children;for(s=0,e=n.length;s<e;++s)n[s].disable(t);return Le.prototype.disable.call(this,t)},restore:function(t){if(!t&&!(t=this.savedData()))return Le.prototype.restore.call(this,t),this.clear(void 0,!0);void 0!==t.a&&this.Jr(t.a),!t.s||this.Ga===Le.rt&&t.v||this.shuffleAnswers(t.s);var e,n,h,r=t.v,a=this.children;switch(this.Ga){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 je&&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._s.i))>=0&&(h.sequentialOrder=o,this.Oe?h.node.style.order=o:sn(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._s.k==i.B)for(e=0,n=a.length;e<n;++e)(h=a[e]).restore();return this},cleanup:function(){if(this.Ga===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.Qa&&n.Qa.parentNode&&n.Qa.parentNode.removeChild(n.Qa)}return Le.prototype.cleanup.call(this)},ys:function(t){t=t||{};var e=this._s.e||{},n=((e.f||0)&xt)===xt,h=this.savedData();if(n){switch(this.Ga){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=(N=this.children[o]).id();if(Le.prototype.sa.call(N),t.showCorrect)if(a.indexOf(u)>=0)(D=this.va(!0,"middle-left"))&&(N.node.appendChild(D),N.na=D);if(t.showIncorrect)if(r.indexOf(u)>=0&&a.indexOf(u)<0)(D=this.va(!1,"middle-left"))&&(N.node.appendChild(D),N.ha=D)}break;case s.ht:r={};h&&(r=h.v||{});for(o=0;o<this.children.length;++o){if((N=this.children[o])instanceof je){a=(N._s.e||{}).v||[""];var c=!N.caseSensitive(),f=r[N.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;Le.prototype.sa.call(N);var v=null;if(p&&t.showCorrect||!p&&t.showIncorrect)(D=this.va(p,"middle-right"))&&(N.node.appendChild(D),D.style.transform="translate(-100%, -50%)",D.style.paddingRight="3px",p?N.na=D:N.ha=D,v=D.style);if(t.showValues){var m=Le.prototype.ga.call(N,v,a);m&&(m.style.transform="translate(-200%, -50%)",m.style.paddingRight="3px",N.ra=m)}}}break;case s.rt:var b=this.children,w=b.slice(),g=[];w.sort(function(t,i){return t.sequentialOrder-i.sequentialOrder});for(o=0;o<w.length;o++)g.push(w[o].id());for(r=h.v||g,o=0;o<b.length;o++){p=(f=r[o])===(N=b[o]).id();if(Le.prototype.sa.call(N),p&&t.showCorrect||!p&&t.showIncorrect||t.showValues){var k=t.showValues&&!(p&&t.showCorrect||!p&&t.showIncorrect);(D=this.fa(k?null:p,t.showValues?(o+1).toString():"","middle-left-inner"))&&(N.node.appendChild(D),p?N.na=D:N.ha=D)}}break;case s.ot:var y=0,_=[],T={};Le.prototype.sa.call(this);o=0;for(var x=this.children.length;o<x;o++){(R=this.children[o]).dropHelper||(y++,_.push(R.id()),T[R.id()]=y)}for(o=0;o<this.children.length;o++){r=[],a=[];if((N=this.children[o]).dropHelper){p=!0;var S=N._s.e||{},E=N.dropHelper.droppedObjects();a=S.v||[];for(d=0;d<E.length;d++)r.push(E[d].id());r.length!=a.length&&(p=!1);for(d=0;d<a.length;d++)r.indexOf(a[d])<0&&(p=!1);p=p||h&&h.r===At.xi;for(d=0;d<r.length;d++){if(R=this.childById(r[d])){var M=a.indexOf(R.id())>-1;k=t.showValues&&!(M&&t.showCorrect||!M&&t.showIncorrect);if(M&&t.showCorrect||!M&&t.showIncorrect||t.showValues)(A=this.la())||(A=this.da(),this.ea=A,this.node.appendChild(A)),(D=this.fa(k?null:M,t.showValues?T[R.id()].toString():"","top-left-inner"))&&this.pa(D,R);delete T[R.id()]}}if(p&&t.showCorrect||!p&&t.showIncorrect||t.showValues){var C,P=[];k=t.showValues&&!(p&&t.showCorrect||!p&&t.showIncorrect);for(d=0,x=a.length;d<x;++d)(C=_.indexOf(a[d]))>=0&&P.push(C+1);1==P.length&&(y=P[0]);var I=P.length>1?P:y.toString();D=this.fa(k?null:p,t.showValues?I:"","top-left-outer"),(A=this.la())||(A=this.da(),this.ea=A,this.node.appendChild(A)),D&&this.pa(D,N)}}}if(t.showCorrect||t.showIncorrect||t.showValues)for(o=0,x=this.children.length;o<x;o++){var R,A,D;if(!(R=this.children[o]).dropHelper&&T.hasOwnProperty(R.id()))(A=this.la())||(A=this.da(),this.ea=A,this.node.appendChild(A)),(D=this.fa(null,t.showValues?T[R.id()].toString():"","top-left-inner"))&&this.pa(D,R)}}if(this._s.k==i.B){r={};h&&(r=h.v||{});for(a=e.v||[],o=0;o<this.children.length;++o){var N;(N=this.children[o])instanceof Ve&&N.lr(!!t.showValues);var O=this.slide.io.getHotSpotEffects(this.id());if(O)for(d=0;d<O.length;d++){var L=O[d];if(L.correct&&t.showCorrect||!L.correct&&t.showIncorrect)L.color=L.correct?"#2fae62":"#d15327";else{var F=this._s;L.color=void 0!==F.hs[1]?gs(F.hs[1]):"green"}L.so&&(L.so.style.backgroundColor=L.color),L.eo&&(L.eo.style.backgroundColor=L.color)}}}if(Le.prototype.sa.call(this.slide),t.showResult){var U=At.Ei;h&&void 0!==h.r&&(U=h.r);var Y=this.ua(U,this.slide.prez().responseResultString(U));Y&&(this.slide.node.appendChild(Y),this.slide.aa=Y)}}},os:function(t,i,s){return(!this.prez()||!this.prez().ended)&&Le.prototype.os.call(this,t,i,s)}});Ue(function(t,s){return s.t||s.k===i.B?new en(t,s):new tn(t,s)},i.L,i.F,i.B);var nn=Ls(Ne,{$init:function(i,s){void 0===s._s.fbi?this.node=t(".ap-slides",i.container)[0]:this.node=t(".ap-feedback-slides",i.container)[0],this.slide=s}});Ue(function(t,i){return new nn(t,i)},i.X);var hn=Ls(Le,{$init:function(t,i){Le.prototype.$init.call(this,t,i)},createNode:function(){var t=Le.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},Th: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.no(t,s,i)},cursor:function(t){return Le.prototype.cursor.call(this,t),this.imageNode.style.cursor=t,this},html:Ze});function rn(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()}Ue(function(t,i){return new hn(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 an=Ls(Le,{$init:function(i,s){Le.prototype.$init.call(this,i,s),this.Lr();var e=this;if(t(this.node).on("mousedown",function(t){e.filterEvent(t)||Qs(t,!0)}),this.ho=[],this.ro=[],this.textNode){this.ho=t(this.textNode).find("input");for(var n=0,h=this.ho.length;n<h;++n){var r=this.ho[n];this.ro.push(r.parentNode),r.spellcheck=!1,t(r).on("focus",function(t){e.os(!1,!0)||t.preventDefault()}).on("blur",function(t){e.os(!1,!0)||t.preventDefault()}).on("mousedown",function(t){e.os(!1,!0)||t.preventDefault()}),rn(r,void 0,function(){e.Mh&&e.Mh()})}}this.cr(s.ti)},cr:function(t){if(!isNaN(t))if(this.Lr(),-2==t)this.textNode.tabIndex=-1;else if(-1==t)this.textNode.removeAttribute("tabIndex");else if(this.ho&&this.ho.length>0)for(var i=0,s=this.ho.length;i<s;++i){this.ho[i].tabIndex=t}},allInputValues:function(t){var i=[];if(this.ho&&0!=this.ho.length&&t)for(var s=0,e=this.ho.length;s<e;++s){var n=this.ho[s];arguments.length||i.push(n&&n.value||""),n||this.Lr();var h=t[s]?t[s]+"":"";n.value=h}else for(s=0,e=this.ho.length;s<e;++s){n=this.ho[s];arguments.length||i.push(n&&n.value||""),n||this.Lr(),n.value=""}return arguments.length?(this.ao(),this):i},Nr:function(){return Le.prototype.Nr.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 Le.prototype.restore.call(this,t),t||(t=this.savedData()),t&&void 0!==t.a&&this.Jr(t.a),this.allInputValues(t&&t.v||{})},Ih:function(t,i){if(this.ho){var s,e=(i&x)==x,n=this.ho.length;for(s=0;s<n;++s)this.ho[s].disabled=e}},La:function(){var t=this._s.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.ho,v=this._s.e||{},m=v.f,b=(m&xt)===xt,w=(m&Mt)!==Mt,g=b&&w,k=g&&(m&Et)===Et,y=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),k&&u>=0&&o.m&&(y+=o.m||0)}else T||c||(T=!0);return d=T?At.Ei:_?At.Si:b?At.xi:At.Ti,g&&!k&&d===At.xi&&(y=v.m||0),this.Zr(this.savedData(!0),d,a,g?y:void 0,!w,r,void 0),this},ys:function(t){t=t||{};var i=this._s.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.ho,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.oo&&this.oo.length>0){o=0;for(var m=this.oo.length;o<m;++o)this.ro[o].removeChild(this.oo[o]),delete this.oo[o]}if(this.oo=[],this.uo&&this.uo.length>0)for(o=0,m=this.uo.length;o<m;++o)this.ro[o].removeChild(this.uo[o]),delete this.uo[o];this.uo=[];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(rn(w=g.inputNode,b),t.showCorrect||t.showIncorrect||t.showValues){var k=this.va(v,"middle-right");if(k){this.oo.push(k),this.ro[o].appendChild(k);var y=k.style;if(y.transform="translate(-100%, -50%)",y.paddingRight="3px",y.pointerEvents="visiblePainted",(v&&!t.showCorrect||!v&&!t.showIncorrect)&&(y.visibility="hidden"),t.showValues){var _=Le.prototype.ga.call(this,y,g.arrCorrectValues.slice());this.node.removeChild(_),this.ro[o].appendChild(_),this.uo.push(_);var T=_.style;T.transform="translate(-200%, -50%)",T.paddingRight="3px"}}}}if(Le.prototype.sa.call(this.slide),t.showResult){var x=At.Ei;e&&void 0!==e.r&&(x=e.r);var S=this.ua(x,this.slide.prez().responseResultString(x));S&&(this.slide.node.appendChild(S),this.slide.aa=S)}}},os:function(t,i,s){return(!this.prez()||!this.prez().ended)&&Le.prototype.os.call(this,t,i,s)},ao:function(){for(var t=this.ho,i=this,s=0,e=t.length;s<e;++s)rn(t[s],void 0,function(){i.Mh&&i.Mh()})}});Ue(function(t,i){return new an(t,i)},i.Y);var on=Ls(Le,{$init:function(t,i){Le.prototype.$init.call(this,t,i),this.co=0},createNode:function(){var t=Le.prototype.createNode.call(this),i=Zi.createElement("div");i.style.top="50%",i.style.left="50%",i.style.width=this._s.ge.w+"px",i.style.height=this._s.ge.h+"px",i.style.position="absolute",i.style[Cs]="translate(-50%, -50%)";var s=Zi.createElement("canvas");return ws(s,{width:this._s.ge.w,height:this._s.ge.h}),this.fo=s,i.appendChild(s),t.appendChild(i),t}});Ue(function(t,i){return new on(t,i)},i.P);var un=Ls({$init:function(t,i,s,e,n){this.lo=i,this.do=s,this.answerId=e,this.questionId=n,this.po=0,this.slide=t,this.io=t.io;var h=this.io.getHotSpotQuestion(n),r=h._s;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._s.e.v||[];this.correct=a.indexOf(this.answerId)>=0},createNode:function(){var t=2*this.circleRadius,i=this.slide.prez().isReviewingMode(),s=Zi.createElement("div");s.className="ap-hotspot",s.style.top=this.do,s.style.left=this.lo;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),this.so=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),this.eo=n}return s.style.pointerEvents="auto",this.evtOnClick=this.vo.bind(this),s.addEventListener("click",this.evtOnClick),s},vo:function(t){this.io.removeHotSpotEffect(this)}}),cn=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.vo.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._s;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}}},vo:function(i){var s=t(i.target).closest(".ap-ctrl");if(s.length>0){s=s[0];var e=this.mo(s);if(null!==e){var n=this.mo(s.parentNode);null===n&&(n=e);var h=this.bo(i,this.slide.node,2*this.circleRadius,!!this.slide.prez()._s.responsive);this.removeHotSpotIfExist(h.x,h.y,n)||this.addHotSpotEffect(h.x,h.y,e,n)}}},bo: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).toFixed(2)+"%",o=((u.y-n/2+r)/i.clientHeight*100).toFixed(2)+"%"):(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.lo-t)<=h.circleRadius&&Li(h.do-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.Za){if(h.length===n.to)return this}else if(h)for(var r=0;r<h.length;r++){var a=h[r];this.removeHotSpotEffect(a)}return(a=new un(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},mo: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.lo+","+n.do+")";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}}),fn={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 Gn.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)}},ln=Ls(hn,{$init:function(t,s){this.wo=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._s&&t._s.h)for(var a=0;a<t._s.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,hn.prototype.$init.call(this,t,h),this.node.style.zIndex=$t.Ni,this.node.style.pointerEvents="none",this.imageNode.style.pointerEvents="none",this.ko=Qi({},Ne,{node:this.imageNode,slide:this.slide})},yo:function(){var t,i=this.slide,s=this.wo.cursors;if(s&&s.length){(t=new ch({startTime:0})).addChild(new oh(this,"display",{startTime:0,duration:0,tweenParams:["none","block"],tweenType:jt.Xi}));for(var e=0;e<s.length;e++)for(var n=0;n<this.slide._s.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,k=p.img.h,y=this.wo.hl_size-p.img.hpx,_=this.wo.hl_size-p.img.hpy,T=this.slide.prez().getResource(p.img.id+".png");t.addChild(new oh(this.ko,"src",{startTime:o,duration:0,tweenParams:[d,T],tweenType:jt.Xi})),t.addChild(new oh(this.ko,"width",{startTime:o,duration:0,tweenParams:[u,g],tweenType:jt.Xi})),t.addChild(new oh(this.ko,"height",{startTime:o,duration:0,tweenParams:[c,k],tweenType:jt.Xi})),t.addChild(new oh(this.ko,"left",{startTime:o,duration:0,tweenParams:[f,y],tweenType:jt.Xi})),t.addChild(new oh(this.ko,"top",{startTime:o,duration:0,tweenParams:[l,_],tweenType:jt.Xi})),u=g,c=k,f=y,l=_,d=T}else 0==e&&(t.addChild(new oh(this.ko,"width",{startTime:o,duration:0,tweenParams:[0,0],tweenType:jt.Xi})),t.addChild(new oh(this.ko,"height",{startTime:o,duration:0,tweenParams:[0,0],tweenType:jt.Xi})));var x=this.slide.prez().layoutIndex;if(void 0!=p.click&&(void 0!==p.sound||p.click_eff)&&function(t,s,e){i.ae.addChild(new ah(function(){var n=i.prez();void 0!==t.sound&&n.bs(t.sound,t.sdur,t,!0),t.click_eff&&n.ph(s,e,t.click_eff.r,t.click_eff.type,gs(t.click_eff.color),1e3)},{startTime:o+p.click}))}(p,this.wo.pos[x][0]+p.points[x][0],this.wo.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 oh(this,"position",{startTime:o+m,duration:w,tweenParams:[S[x]],tweenType:jt.Gi,easing:Gn.inOutQuad}))}m>=0?o+=m+b+w:o=-1}o>0&&t.addChild(new oh(this,"display",{startTime:o,duration:0,tweenParams:["block","none"],tweenType:jt.Xi}))}return t}});Ue(function(t,i){return new ln(t,i)},i.H);var dn=Ls({$init:function(t){this.Cs=t,this.Cs._e.Ks(this)},cs:function(t){},_o:function(t){},To:function(){},xo:function(){},So: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.Cs._e.qs(this)},Js:function(){}}),pn=Ls({$init:function(i,s,e){this.Eo="video"==s.nodeName.toLowerCase();var n=i.Mo;this.Co="",this.Eo?this.Co=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.Co=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.Po=i,this.Io=s,this.Ro=e,this.Ao=t(".ap-media-toolbar-bottom",this.Co),this.Do=t(".ap-media-play",this.Co),this.No=t(".ap-media-mute",this.Co),this.Oo=t(".ap-media-fullscreen",this.Co),this.Lo=t(".ap-media-progressbar",this.Co),this.Fo=t(".ap-media-play-progress",this.Co),this.Uo=t(".ap-media-progress-grabber",this.Co),this.Yo=t(".ap-media-time-label",this.Co),this.Eo&&(Os.fullscreenEnabled()||Os.isElementSupportFullscreen(s))||this.Oo.hide();var h=s.style.cursor;h&&(this.Co.style.cursor=h,this.Yo.css({cursor:h})),this.Bo=!0,this.Ho=!1,this.mute(s.muted),this.pause(s.paused||s.ended),this.zo()},zo:function(){var i=this,s=this.Co,e=this.Io,n=this.No,h=this.Oo,r=this.Lo,a=this.Uo,o=this.Do;this.Eo&&(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.Ho=!0}).on("mouseleave",function(){i.Ho=!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.Ro||e.webkitDisplayingFullscreen};r.on("mousedown",function(n){var h=u()?1:i.Po.je,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.Xo=!0},drag:function(n,h){var a=h.position.left,o=this.offsetWidth/2,c=u()?1:i.Po.je,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.Xo=!1;var t=u()?1:i.Po.je,s=(this.offsetLeft+6*t)/r[0].offsetWidth;e.currentTime=s*e.duration}})},getNode:function(){return this.Co},update:function(){var t=this.Lo,i=this.Fo,s=this.Uo,e=this.Yo,n=this.Io,h=t[0].offsetWidth,r=isNaN(n.duration)?0:n.currentTime/n.duration;i.css({transform:"scaleX("+r+")"}),this.Xo||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.Bo&&this.Eo&&(n.paused||this.Ho?n.currentTime>0&&this.show(!0,!0):(void 0===this.Go&&(this.Go=n.currentTime),n.currentTime-this.Go>2&&this.show(!1)))},pause:function(t){var i=this.Do,s=i.attr("data-value");(s=s?"false"===s:void 0)!==t&&i.attr("data-value",!t)},show:function(t,i){t!==this.Bo?this.Ao&&(t||this.Io.paused||this.Ho?(this.Ao.stop().fadeIn(),this.Do.stop().fadeIn(0,.5),this.Bo=!0):(this.Ao.fadeOut(500),this.Do.fadeOut(500,0),this.Bo=!1,this.Go=void 0)):i&&this.Do.stop().fadeIn(0,.5)},mute:function(t){this.No.attr("aria-pressed",t?"true":"false").attr("data-value",t)},fullscreen:function(){Os.fullscreenEnabled()?Os.fullscreenElement()==this.Ro?Os.exitFullscreen():Os.requestFullscreen(this.Ro):Os.isElementSupportFullscreen(this.Io)&&Os.requestFullscreen(this.Io)},resize:function(){var t=this.Co,i=this.Lo,s=this.Uo,e=this.Io,n=isNaN(e.duration)?0:e.currentTime/e.duration;this.Xo||s.css({left:n*i[0].offsetWidth-6+"px"}),t.offsetWidth<200?t.setAttribute("size",200):t.removeAttribute("size")}}),vn=["error","ended","loadstart","durationchange","loadedmetadata","loadeddata","canplay","waiting","playing","canplaythrough","stalled","emptied","suspend"],mn=Ls(dn,{$init:function(t,i){for(this.Eo=i,this.Vo=i?t._e.Bs.pop():t._e.Ys.pop();this.Vo.attributes.length>0;)this.Vo.removeAttribute(this.Vo.attributes[0].name);dn.prototype.$init.call(this,t),this.$o="",this.Wo=0,this.jo=void 0,this.Qo="stopped",this.Ko=!1,this.qo=!1,this.Jo=!1,this.Zo=[],this.tu=[],this.iu=!1,this.su=!1,this.eu=!1,this.nu=!1,this.hu=!0,this.ru=void 0,this.au=!1,this.ou()},vn:function(t){this.nu!=t&&(this.nu=t,t||this.jo&&prez.Ae())},createToolbar:function(t){return this.Vo?(this.uu=new pn(this.Cs.ui,this.Vo,t),this.uu.getNode()):null},getToolbar:function(){return this.uu},uh:function(t,i){this.Vo&&(this.Vo.addEventListener(t,i),this.tu.push([t,i]))},oh:function(t,i){if(this.Vo){this.Vo.removeEventListener(t,i);var s,e,n=this.tu;for(s=0,e=n.length;s<e;++s)if(n[s][0]==t&&n[s][1]==i){n.splice(s,1);break}}},ou:function(){if(this.Vo){var t,i,s=this.Zo,e=this;for(t=0,i=vn.length;t<i;++t){var n=function(t){e.cu(t)};s.push(n),this.Vo.addEventListener(vn[t],n)}var h=this;this.fu=function(){h.lu()},this.Vo.addEventListener("timeupdate",this.fu)}},du:function(){if(this.Vo){var t,i,s=this.Zo,e=this.tu;for(t=0,i=vn.length;t<i;++t)this.Vo.removeEventListener(vn[t],s[t]);for(s=[],this.Vo.removeEventListener("timeupdate",this.fu),delete this.fu,t=0,i=e.length;t<i;++t)this.Vo.removeEventListener(e[t][0],e[t][1]);e=[]}},synchronizeWithPrez:function(t){if(!arguments.length)return this.qo;this.qo=t},backgroundAudio:function(t){if(!arguments.length)return this.Jo;this.Jo=t},Zs:function(t){if(!this.qo){var i=this.Vo;if(i)if(t){if(void 0===this.pu&&(this.pu=!i.paused),this.pu)try{i.pause()}catch(t){as("MediaPlayer::_onPrezPlayPause:"+this.$o+"|exception: "+t.toString())}}else{if(this.pu)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.eu=!0)})}}catch(t){as("MediaPlayer::_onPrezPlayPause:"+this.$o+"|exception: "+t.toString())}delete this.pu}}},vu:function(t){var i=this.Cs,s=this.jo;t!=this.jo&&(this.jo=t,this.nu||(t?i.Ae():void 0!==s&&i.De()))},cu:function(t){var i=this.Vo?this.Vo.readyState:-1,s=t.type;if(as("MediaPlayer::_onPlayerEvent:"+this.$o+"|event: "+s+" | state: "+i),"loadeddata"==t.type){var e=this.Cs._e;this.volume(e.volume()),this.muted(e.muted()),this.playbackRate(e.playbackRate()),void 0!==this.ru&&this._o(this.ru||0)}if(this.au||"canplay"!=s&&"canplaythrough"!=s&&"error"!=s&&"ended"!=s&&"playing"!=s||(this.au=!0),!this.iu&&this.Vo&&this.qo){if("error"==s)return this.iu=!0,void this.vu(!1);if("ended"==s)return this.su=!0,void this.vu(!1);switch(i){case 0:case 1:case 2:this.vu(!0);break;case 3:this.vu(!(!he.browser.ie&&!he.browser.safari&&this.au));break;case 4:this.vu(!this.au);break;default:this.vu(!0)}}},lu:function(t){this.uu&&this.uu.update()},mu:function(){return this.Vo},pn:function(t){this.$o=t},Dn:function(t){this.Wo=(0|t)/1e3},bu:function(){return this.Wo},wu:function(){return this.ah},loadResource:function(t){if(this.Vo){void 0===t&&(t=-1),this.su=!0,this.vu(!1),this.iu=!1,this.su=!1,this.hu=!0,this.ru=void 0,this.au=!1;try{this.ah=t,this.Vo.src=-1!=t?this.Cs.getResource(t+"."+(this.Eo?ve.Ns:ve.Ds)):"",this.Vo.load()}catch(t){as("MediaPlayer::loadResource:"+this.$o+"|exception: "+t.toString())}}},cs:function(t){if(!arguments.length)return this.Qo;if(this.Qo=t,this.Vo)try{if(as("MediaPlayer::state |"+this.$o+"|"+t),"stopped"==t)this.Vo.pause();else if(!this.Ko){var i=this.Vo.play();if(void 0!==i){var s=this;i.catch(function(t){as("MediaPlayer::state|play error: "+t),"NotAllowedError"==t.name&&(s.eu=!0)})}this.su=!1}}catch(t){as("MediaPlayer::state Set Exception | "+this.$o+"|"+t.toString())}},_o:function(t){if(arguments.length){if(!this.hu||!this.Vo)return;var i=this.Vo.readyState,s=t*this.Wo;if(0==i)return as("MediaPlayer::_ts Media Not Ready | "+this.$o+"|"+s+"| set failed"),void(this.ru=t);this.hu=!1,this.ru=void 0;try{as("MediaPlayer::_ts |"+this.$o+"|"+s+"| set");var e=this.Vo.currentTime;e<.2&&s-e>=0&&s-e<.2?as("MediaPlayer::_ts |"+this.$o+"|"+s+"| difference too small"):this.Vo.currentTime=s}catch(t){as("MediaPlayer::_ts Set Exception | "+this.$o+"|"+t.toString())}}else try{return 0!=this.Wo&&this.Vo?this.Vo.currentTime/this.Wo:0}catch(t){return as("MediaPlayer::_ts Get Exception | "+this.$o+"|"+t.toString()),0}},To:function(){this.hu=!0},xo:function(){if(as("MediaPlayer::_timelinePlay | "+this.$o),(!this.Jo||!this.Cs.allPaused())&&this.Ko&&(this.Ko=!1,"stopped"!=this.Qo&&!this.su&&this.Vo))try{var t=this.Vo.play();if(void 0!==t){var i=this;t.catch(function(t){as("MediaPlayer::_timelinePlay|play error: "+t),"NotAllowedError"==t.name&&(i.eu=!0)})}}catch(t){as("MediaPlayer::_timelinePlay Exception | "+this.$o+"|"+t.toString())}},So:function(){if(as("MediaPlayer::_timelinePause | "+this.$o),(!this.Jo||this.Cs.allPaused())&&!this.Ko&&(this.Ko=!0,!this.su&&this.Vo))try{this.Vo.pause()}catch(t){as("MediaPlayer::_timelinePause Exception | "+this.$o+"|"+t.toString())}},nativePlayer:function(){return this.Vo},state:function(){return this.cs()},pause:function(t){this.cs("stopped"),void 0!==t&&this.seek(t)},play:function(t){void 0!==t&&this.seek(t),this.cs("playing")},position:function(){return this._o()*(1e3*this.Wo)},seek:function(t){t|=0,t=this.Wo>0?t/(1e3*this.Wo):0,this.To(),this._o(t)},playbackRate:function(t){if(!arguments.length)return this.Vo?this.Vo.playbackRate:1;try{this.Vo&&(this.Vo.playbackRate=t,this.Vo.defaultPlaybackRate=t)}catch(t){as("MediaPlayer::playbackRate Exception | "+this.$o+"|"+t.toString())}return this},volume:function(t){if(!arguments.length)return this.Vo?this.Vo.volume:1;try{t<0&&(t=0),t>1&&(t=1),this.Vo&&(this.Vo.volume=t,as("MediaPlayer::volume | "+this.$o+"| set: "+t+"| get: "+this.Vo.volume))}catch(t){as("MediaPlayer::volume Exception | "+this.$o+"|"+t.toString())}return this},muted:function(t){if(!arguments.length)return!this.Vo||this.Vo.muted;try{this.Vo&&(this.Vo.muted=t,as("MediaPlayer::muted | "+this.$o+"| set: "+t+"| get: "+this.Vo.muted))}catch(t){as("MediaPlayer::muted Exception | "+this.$o+"|"+t.toString())}return this},cleanup:function(){dn.prototype.cleanup.call(this);var t=this.Vo;if(t){this.su=!0,this.vu(!1),this.du(),this.Vo=null;try{t.paused||t.pause()}catch(t){as("MediaPlayer::cleanup Exception | "+this.$o+"|"+t.toString())}this.Eo?this.Cs._e.Bs.unshift(t):this.Cs._e.Ys.unshift(t)}},Js:function(){if(this.eu){if(this.eu=!1,this.hu=!0,this.Ko)return;if("stopped"==this.Qo)return;if(this.su||!this.Vo)return;try{var t=this.Vo.play();void 0!==t&&t.catch(function(t){as("MediaPlayer::_updateUnmute|play error: "+t)})}catch(t){as("MediaPlayer::_updateUnmute Exception | "+this.$o+"|"+t.toString())}}}}),bn=Ls(Le,{$init:function(i,s){Le.prototype.$init.call(this,i,s);var h,r,a,c=this.node,f=!0,l=this;if(this.Nn=i.Cs.mn({ctrl:s}),this.Nn||(f=!1,this.Nn=new mn(i.Cs,!1)),a=(r=(h=this.Nn).mu()).style,c.appendChild(r),this.Vo=r,void 0!==this.Or&&(a.cursor=this.Or),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.pn(s.n),h.Dn(s.md),h.synchronizeWithPrez(s.f&o),h.backgroundAudio(s.f&n),f||h.loadResource(s.mi),this.ia()},cursor:function(t){return Le.prototype.cursor.call(this,t),this.Vo&&(this.Vo.style.cursor=t),this},onResized:function(t,i){Le.prototype.onResized.call(this,t,i),this.Nn&&this.Nn.uu&&this.Nn.uu.resize()},html:Ze});Ue(function(t,i){return new bn(t,i)},i._);var wn=!1,gn=Ls(Le,{$init:function(i,s){Le.prototype.$init.call(this,i,s);var n,h,r,a=this.node,c=this,f=!0;if(this.Nn=i.Cs.mn({ctrl:s}),this.Nn||(f=!1,this.Nn=new mn(i.Cs,!0)),r=(h=(n=this.Nn).mu()).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.Cs.getImgResource(i._s.i+"."+this._s.i),l+=this._s.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.gu=d,this.ku(!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.pn(s.n),n.Dn(s.md),n.synchronizeWithPrez(s.f&o),f||n.loadResource(s.mi),this.ia(),this._s.g&&(r.width="1px",r.height="1px",r[Is]="",r[Cs]="",this.yu=function(){c._u(!0)},this.Tu=function(){c._u(!1)},h.addEventListener("play",this.yu),h.addEventListener("pause",this.Tu),h.addEventListener("ended",this.Tu)),this.xu=function(){var i=Os.fullscreenElement(),s=t(c.node);i==c.node?s.hasClass("ap-fullscreen")||(s.addClass("ap-fullscreen"),c.Cn()):s.hasClass("ap-fullscreen")&&(s.removeClass("ap-fullscreen"),c.Cn())},Os.addEventListener("fullscreenchange",this.xu,!1)}},_u:function(t){if(as("Update green screen: "+t),t){if(!this.Su){var i=this;this.Su=setInterval(function(){i.Eu()},100)}}else this.Su&&(clearInterval(this.Su),delete this.Su)},ku:function(t){var i,s=this.Nn,e=this.gu;if(s&&e&&(i=s.mu()))if(t){if(e.style.display="block",!this.Mu){var n=this;this.Mu=function(){n.ku(!1)},i.addEventListener("timeupdate",this.Mu)}}else e.style.display="none",this.Mu&&(i.removeEventListener("timeupdate",this.Mu),delete this.Mu)},createNode:function(){var t=Le.prototype.createNode.call(this),i=this._s;if(i.g){var s=Zi.createElement("canvas"),e=s.style;t.appendChild(s),this.Cu=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){Le.prototype.onResized.call(this,t,i),this.Pu()},Pu:function(){if(!this._s.g&&this.Nn){var t=this.node.offsetWidth,i=this.node.offsetHeight,s=this._s.v_w,e=this._s.v_h,n=this.Nn.mu(),h=this.Nn.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.ku(!1),Os.removeEventListener("fullscreenchange",this.xu,!1),this._s.g&&this.Nn){var t=this.Nn.mu();t&&(t.removeEventListener("play",this.yu),t.removeEventListener("pause",this.Tu),t.removeEventListener("ended",this.Tu)),this._u(!1)}return Le.prototype.cleanup.call(this)},Eu:function(){var t,i,s,e,n,h,r,a,o,u,c,f,l,d=this._s.g,p=this.Cu;if(d&&this.Nn&&(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.Nn.mu(),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){wn||(wn=!0,"file:"==window.location.protocol&&alert(this.prez().ui.Is.text("GreenScreenError")))}}},cursor:function(t){return Le.prototype.cursor.call(this,t),this.node.style.cursor=t,this},html:Ze});Ue(function(t,i){return new gn(t,i)},i.T);var kn=Ls({$init:function(t){this.Nn=new mn(t,!0),this.Nn.mu().setAttribute("playsinline",""),this.Nn.synchronizeWithPrez(!0),this.Nn.muted=function(t){var i=mn.prototype.muted;return arguments.length?((t||!t&&this.Cs.sidebarVisible())&&i.call(this,t),this):i.call(this)},this.node=null,this.Iu=0},appendTo:function(t){this.node=t,this.node.appendChild(this.Nn.mu())},cleanup:function(){this.Nn&&(this.Nn.cleanup(),this.Nn=null,this.node&&(this.node.parentNode&&this.node.parentNode.removeChild(this.node),this.node=null))},muted:function(t){if(!arguments.length)return this.Nn.muted();this.Nn.muted(t)},aspectRatio:function(t){if(!arguments.length)return this.Iu;this.Iu=t},Cn:function(){}}),yn=-1,_n=0,Tn=1,xn=2,Sn=3,En=5,Mn=Ls(dn,{$init:function(t,i,s){dn.prototype.$init.call(this,t),this.yh=i,this.$o="",this.Wo=3600,this.jo=void 0,this.Qo="stopped",this.Ko=!1,this.iu=!1,this.su=!1,this.hu=!0,this.Ru=!1,this.Au=void 0;var e,n=i.Du,h={rel:0,showinfo:0,autoplay:0,playsinline:1},r=this;this.Nu=s.auto_play,!0===s.play_range?(this.Ou=(s.start_time||0)/1e3,this.Lu=(s.stop_time||0)/1e3):(this.Ou=0,this.Lu=0),h.controls=s.hide_controls?0:1,h.iv_load_policy=s.hide_annotations?3:1,h.start=this.Ou,h.autoplay=this.Nu?1:0,this.Lu>0&&(h.end=this.Lu),e=new YT.Player(n,{height:"100%",width:"100%",videoId:s.youtube_id,playerVars:h,events:{onReady:function(){r.Fu()},onStateChange:function(){r.Uu()},onError:function(){r.Yu()}}}),this.Bu=e},pn:function(t){this.$o=t},Hu:function(t){switch(t){case yn:return"unstarted";case _n:return"ended";case Tn:return"playing";case xn:return"paused";case Sn:return"buffering";case En:return"videocued";default:return"invalid"}},Zs:function(t){if(this.Ru&&!this.Nu){var i=this.Bu;if(t){if(void 0===this.pu&&(this.pu=i.getPlayerState()==Tn),this.pu)try{i.pauseVideo()}catch(t){as("MediaPlayer::_onPrezPlayPause:"+this.$o+"|exception: "+t.toString())}}else{if(this.pu)try{i.playVideo()}catch(t){as("MediaPlayer::_onPrezPlayPause:"+this.$o+"|exception: "+t.toString())}delete this.pu}}},vu:function(t){var i=this.Cs,s=this.jo;t!=this.jo&&(this.jo=t,t?i.Ae():void 0!==s&&i.De())},cs:function(t){if(!arguments.length)return this.Qo;if(this.Qo=t,this.Ru)try{as("YouTubeMediaPlayer::state |"+this.$o+"|"+t),"stopped"==t?this.Bu.pauseVideo():this.Ko||(this.Bu.playVideo(),this.su=!1)}catch(t){as("YouTubeMediaPlayer::state Set Exception | "+this.$o+"|"+t.toString())}},_o:function(t){var i=this.Bu;if(arguments.length){if(!this.Ru)return;if(!this.hu)return;var s,e;this.hu=!1,s=t*this.Wo+this.Ou;try{(e=i.getCurrentTime())-s>-1&&e-s<1?as("YouTubeMediaPlayer::_ts |"+this.$o+"|"+e+"| too small difference"):(as("YouTubeMediaPlayer::_ts |"+this.$o+"|"+s+"| set"),s>=(this.Lu>0?this.Lu:i.getDuration())-1?(as("YouTubeMediaPlayer::_ts seek ts is larger than duration | "+this.$o+"|"+s),i.stopVideo(),this.su=!0,this.vu(!1)):i.seekTo(s,!0))}catch(t){as("YouTubeMediaPlayer::_ts Set Exception | "+this.$o+"|"+t.toString())}}else try{return 0==this.Wo?0:this.Ru?(i.getCurrentTime()-this.Ou)/this.Wo:0}catch(t){return as("YouTubeMediaPlayer::_ts Get Exception | "+this.$o+"|"+t.toString()),0}},To:function(){this.hu=!0},xo:function(){if(as("YouTubeMediaPlayer::_timelinePlay | "+this.$o),this.Ko&&(this.Ko=!1,"stopped"!=this.Qo&&this.Ru&&!this.su))try{this.Bu.playVideo()}catch(t){as("YouTubeMediaPlayer::_timelinePlay Exception | "+this.$o+"|"+t.toString())}},So:function(){if(as("YouTubeMediaPlayer::_timelinePause | "+this.$o),!this.Ko&&(this.Ko=!0,this.Ru&&!this.su))try{this.Bu.pauseVideo()}catch(t){as("YouTubeMediaPlayer::_timelinePause Exception | "+this.$o+"|"+t.toString())}},nativePlayer:function(){return this.Bu},state:function(){return this.cs()},pause:function(t){this.cs("stopped"),void 0!==t&&this.seek(t)},play:function(t){void 0!==t&&this.seek(t),this.cs("playing")},position:function(){return this._o()*(1e3*this.Wo)},seek:function(t){t|=0,t=this.Wo>0?t/(1e3*this.Wo):0,this.To(),this._o(t)},playbackRate:function(t){if(!arguments.length)return this.Ru?this.Bu.getPlaybackRate():1;try{if(!this.Ru)return;this.Bu.setPlaybackRate(t)}catch(t){as("YouTubeMediaPlayer::playbackRate Exception | "+this.$o+"|"+t.toString())}return this},volume:function(t){if(!arguments.length)return this.Ru?this.Bu.getVolume()/100:1;try{if(!this.Ru)return;t<0&&(t=0),t>1&&(t=1),this.Bu.setVolume(100*t)}catch(t){as("YouTubeMediaPlayer::volume Exception | "+this.$o+"|"+t.toString())}return this},muted:function(t){if(!arguments.length)return!!this.Ru&&this.Bu.isMuted();try{if(!this.Ru)return;t?this.Bu.mute():this.Bu.unMute()}catch(t){as("YouTubeMediaPlayer::muted Exception | "+this.$o+"|"+t.toString())}return this},Fu:function(){if(as("YouTubeMediaPlayer::_onPlayerReady | "+this.$o),this.Ru)as("YouTubeMediaPlayer::_onPlayerReady repeated state| "+this.$o);else{this.Ru=!0;var t=this.Cs._e;this.volume(t.volume()),this.muted(t.muted()),this.playbackRate(t.playbackRate()),"playing"!=this.Qo||this.Ko?this.Bu.pauseVideo():this.Bu.playVideo()}},Uu:function(){if(!this.iu&&this.Bu){var i=this.Bu.getPlayerState(),s=this.yh;if(as("YouTubeMediaPlayer::_onPlayerStateChanged | "+this.$o+"|"+this.Hu(i)),this.Nu)switch(i){case yn:case En:this.vu(!1);break;case _n:this.su=!0,this.vu(!1);break;case Tn:case xn:this.vu(!1);break;case Sn:this.su?this.vu(!1):this.vu(!0)}switch(i){case _n:this.su=!0,t(s).triggerHandler(t.Event("ap-ended"),{});break;case Tn:t(s).triggerHandler(t.Event("ap-play"),{});break;case xn:t(s).triggerHandler(t.Event("ap-pause"),{})}}},Yu:function(){this.iu=!0,this.Bu&&this.Nu&&this.vu(!1)},cleanup:function(){dn.prototype.cleanup.call(this),this.Bu&&(this.su=!0,this.Ru=!1,this.vu(!1),this.Bu=null)}}),Cn=Ls(Le,{$init:function(t,i){if(Le.prototype.$init.call(this,t,i),he.youtubeAPIState==Jt&&(this.Nn=new Mn(t.Cs,this,i.YT_params),this.Nn.pn(i.n)),i.YT_params.disable_scaling){var s,e=this.prez(),n=this;this.zu=function(){n.Xu()},e&&e.ui&&(s=e.ui.canvas())&&s.on("ap-scaleChanged",this.zu)}},createNode:function(){var t=Le.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._s.YT_params.disable_scaling){var n,h=this.prez();n=h?h.je():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.Vo=i,i.appendChild(s),this.Du=s,t},Xu:function(){if(this.Vo){var t,i=this.prez(),s=this.Vo.style;t=i?i.je():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._s.YT_params.disable_scaling){var t,i=this.prez();i&&i.ui&&(t=i.ui.canvas())&&t.off("ap-scaleChanged",this.zu),delete this.zu}return Le.prototype.cleanup.call(this)},html:Ze});Ue(function(t,i){return new Cn(t,i)},i.R);var Pn=Ls(Le,{$init:function(t,i){Le.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.Gu},n.onerror=function(){s.Vu},this.$u=setTimeout(function(){s.Wu()},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.zu=function(){o.Xu()},a&&a.ui&&(r=a.ui.canvas())&&r.on("ap-scaleChanged",this.zu)}},createNode:function(){var t=Le.prototype.createNode.call(this),i=Zi.createElement("iframe"),s=i.style,e=this._s.web_params.scrolling;if(s.pointerEvents="auto",s.position="absolute",s.left="0px",s.top="0px",this._s.web_params.disable_scaling){var n,h=this.prez();n=h?h.je():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},Gu:function(){clearTimeout(this.$u)},Vu:function(){clearTimeout(this.$u)},Wu:function(){},Xu:function(){var t,i=this.prez(),s=this.frameNode.style;t=i?i.je():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._s.web_params.disable_scaling){var t,i=this.prez();i&&i.ui&&(t=i.ui.canvas())&&t.off("ap-scaleChanged",this.zu),delete this.zu}return clearTimeout(this.$u),Le.prototype.cleanup.call(this)},html:Ze});Ue(function(t,i){return new Pn(t,i)},i.D);var In=Ls(tn,{$init:function(s,e){(e=e||{},this.Cs=s,this.Pr={0:this},this.Ir={},this.Hn=[],this.Tn=[],this.dr=1,void 0===e.hss&&(e.hss=[]),e.isBackground||(this.ae=new lh({startTime:e.st||0}),this.ms(this.ae)),this.ju=[],!e.hsm||e.isBackground||e.isTop||e.isBottom||(this.io=new cn(e.hss)),tn.prototype.$init.call(this,this,e),this.Eh)&&(this.Eh()&&this.Ne());!e.hsm||e.isBackground||e.isTop||e.isBottom||this.io.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 In(s,a)}if(e.isBackground)n.zIndex=h?$t.Bi:$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.Hi:$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.un&&(s.un.slide=this,this.ae.addChild(new oh(s.un,"display",{startTime:0,duration:0,tweenParams:["block","none"],tweenType:jt.Xi}))),this.Qu=void 0,e.cp&&void 0!==e.cp.m){var o=Qt[this.Cs.options.playMode];if((e.cp.m&o)==o){var u=new ln(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.Qu=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.Cn(),this.restore();var c=new nn(s,this);o=Qt[this.Cs.options.playMode];if(e.i>=0)(y=he.createZoomAndPan(c,e.z,s.layoutIndex,o))&&this.ae.addChild(y);if(this.Qu)(y=this.Qu.yo())&&this.ae.addChild(y);for(var f in this.Pr){var l=this.Pr[f];l._s.ta&&l.splitText&&l.splitText({chars:l._s.ta&he.TextEffectFlags.CHARS,words:l._s.ta&he.TextEffectFlags.WORDS,processStyles:"backgroundColor, textDecoration"})}var d,p,v,m,b,w,g,k,y,_,T=e.tl||[];for(v=0,w=T.length;v<w;++v){for(d=T[v],0===v?_=this.ae:(_=new lh,this.ms(_)),_.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,k=(p=p[1]||[]).length;b<k;++b)if(he.createEffect&&(y=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&&(y.startTime(y.startTime()+e.st),s.ae.addChild(y),c.ms(y));break;default:_.addChild(y)}}else as("Object not found: "+p[0]);this.ju.push(_),_.setup()}}},flexbox:function(){if(this._s.fb){var t=this._s.fb[this.Cs.layoutIndex];t.b&&Le.prototype.flexbox.call(this,t.b)}},onLayoutSwitched:function(){var t=this._s.h[this.Cs.layoutIndex];this.node.clientHeight!=t&&this.height(t);var i=this.node.clientWidth,s=this.node.clientHeight;if(i!=this.or||s!=this.ur){var e=i-this.or,n=s-this.ur;this.or=i,this.ur=s,Le.prototype.onResized.call(this,e,n)}this.flexbox&&this.flexbox(),Le.prototype.onLayoutSwitched.call(this),this.Eh&&this.Eh();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]).Sh&&(i._r||!i.Oe&&i.shape||i.textContainer)&&i.Cn(),r(i)};r(this),this.background&&this.background.onLayoutSwitched(),this.Cs.un&&this.Cs.un.onLayoutSwitched()},object:function(t){return(typeof t===Ai?this.Ir[t]:this.Pr[t])||null},timeline:function(t){if(!arguments.length)return this.ae;var i,s,e=typeof t===Ai?"name":"id";for(i=0,s=this.ju.length;i<s;++i)if(this.ju[i][e]===t)return this.ju[i];return null},timelines:function(){return this.ju},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.Qu&&(this.Qu.cleanup(),this.Qu.node.parentNode&&this.Qu.node.parentNode.removeChild(this.Qu.node)),Le.prototype.cleanup.call(this)},Cn:function(){Le.prototype.Cn.call(this),this.Sr||(this.Sr=0),this.Sr>10?as("Recursive checking resized: "+this.name()):(++this.Sr,this.Cs.un&&this.Cs.un.slide==this&&this.Cs.un.onResized(0,0),this.background&&this.background.Cn(),--this.Sr)},savedData:function(t){var i=this.Cs.ks.slides,s=i[this._s.index];return t&&!s&&(s=i[this._s.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._s,i=this.Cs,s=i.He||0,e=Qt[this.Cs.options.playMode];if((i._s.cc.modes&e)==e){if(i._s.responsive&&i.un&&i.un.slide&&i.un.slide._s.i!=this._s.i){var n=i.un;(r=i.ui.canvas())&&n.node&&n.node.remove(),delete i.un}if(!i.un){var h={};h.fill=i._s.cc.fill,h.textStyle=i._s.cc.textStyle,h.margin=i._s.cc.margin;var r;n=new Be(this,h);i.un=n,(r=i.ui.canvas())&&r.append(n.node)}i.un.slide=this,i.Ku&&(this.ae.removeChild(i.Ku),delete i.Ku);for(var a=new ch({startTime:0}),o=0;o<t.ca.n.length;o++){var u=t.ca.n[o];0==o&&u.startTime>0&&a.addChild(new oh(this.Cs.un,"display",{startTime:0,duration:0,tweenParams:["block","none"],tweenType:jt.Xi})),a.addChild(new oh(this.Cs.un,"display",{startTime:u.startTime,duration:0,tweenParams:["none","block"],tweenType:jt.Xi})),a.addChild(new oh(this.Cs.un,"ccNode",{startTime:u.startTime,duration:0,tweenParams:["",u.texts[s]],tweenType:jt.Xi})),a.addChild(new oh(this.Cs.un,"display",{startTime:u.startTime+u.duration,duration:0,tweenParams:["block","none"],tweenType:jt.Xi}))}this.ae.addChild(a),i.Ku=a}}}),Rn={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){Dn(this,t,i,s,e,n,!1)}],3:[function(t,i,s,e,n){Dn(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=On(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=On(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=On(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]}]},An=Ls({$init:function(){this.qu=""},path:function(t){return arguments.length?(this.qu=t,this):this.qu},clear:function(){return this.qu="",this},addPath:function(t){return this.qu+=" "+t,this},moveTo:function(t,i){return this.qu+=" M"+t+","+i,this},lineTo:function(t,i){return this.qu+=" L"+t+","+i,this},arcTo:function(t,i,s,e,n,h){return this.qu+=" A"+t+","+i+" 0 "+(n?1:0)+","+(h?1:0)+" "+s+","+e,this},cubicTo:function(t,i,s,e,n,h){return this.qu+=" C"+t+","+i+" "+s+","+e+" "+n+","+h,this},quadraticTo:function(t,i,s,e){return this.qu+=" Q"+t+","+i+" "+s+","+e,this},closeSubpath:function(){return this.qu+=" 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 Dn(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 Nn={};function On(t){var i=Nn[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=Nn[t]={cXs:e,cYs:n,minX:h,minY:r,maxX:a,maxY:o}}return i}function Ln(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 Fn=he.browser.ie||he.browser.edge,Un=Ls(Ne,{$init:function(t,i){this.parent=i,this.slide=i.slide,this.container=t,this.Ju=vt.dt,this.ba="none",this.wa=1,this.Zu="black",this.tc=1,this.ic="round",this.us=0,this.Ia=[]},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.sc=s,this.Ue()?this.ec():this.nc()&&this.Sn()},shape:function(t,i){this.us=t,this.Ia=i,this.Ue()?this.ec():this.nc()&&this.Sn()},lineStyle:function(t){if(typeof t!==Ai&&(t=t&at?"solid":t&ot?"dotted":t&ut?"dashed":t&ct?"dash-dotted":"none"),this.ba=t,"none"===t)this.hc?this.hc.style.display=t:this.rc&&(this.rc.style.stroke=t),this.ac();else if(this.Ue()){this.hc?this.hc.style.display="":this.rc&&(this.rc.style.stroke=this.Zu||"black");var i="none",s=this.wa||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.rc&&(this.rc.style.strokeDasharray=i),this.ac()}else this.nc()&&this.Sn()},lineJoin:function(t){typeof t!==Ai&&(t=t&dt?"round":t&pt?"bevel":"miter"),this.oc=t,this.rc&&(this.rc.style.strokeLinejoin=t)},lineCap:function(t){if(typeof t!==Ai){var i="butt";t&ft?i="square":t&lt&&(i="round"),t=i}this.ic=t,this.rc&&(this.rc.style.strokeLinecap=t)},lineWidth:function(t){this.wa=t,this.Ue()?(this.ac(),this.uc()&&this.ec(),this.rc&&(this.rc.style.strokeWidth=t),this.hasArrow()&&(this.ec(),this.fc&&(this.fc.style.strokeWidth=t),this.lc&&(this.lc.style.strokeWidth=t)),"none"!==this.ba&&this.lineStyle(this.ba)):this.nc()&&this.Sn()},ac:function(){if(this.shapeNode){var t=this.wa%2/2;t&&"none"!==this.ba?this.shapeNode.setAttribute("transform","translate("+t+", "+t+")"):this.shapeNode.removeAttribute("transform")}},lineColor:function(t,i,s,e){var n;typeof t===Ai?(this.Zu=t,e=i):this.Zu=gs(t,i,s),this.tc=void 0===e?1:e,this.hc?(this.hc.style.opacity=this.tc,this.rc.style.stroke=this.Zu,this.fc&&(n=this.fc.style,this.dc&&this.dc.type!==rt.NONE?this.dc.type===rt.OPEN?(n.stroke=this.Zu,n.fill="none"):(n.stroke="none",n.fill=this.Zu):n.stroke=n.fill="none"),this.lc&&(n=this.lc.style,this.pc&&this.pc.type!==rt.NONE?this.pc.type===rt.OPEN?(n.stroke=this.Zu,n.fill="none"):(n.stroke="none",n.fill=this.Zu):n.stroke=n.fill="none")):this.rc&&("none"!==this.ba&&(this.rc.style.stroke=this.Zu),this.rc.style.strokeOpacity=this.tc)},startArrow:function(t,i){this.dc={type:t,size:i},this.Ue()?(this.ec(),this.lineColor(this.Zu,this.tc)):this.nc()&&this.Sn()},endArrow:function(t,i){this.pc={type:t,size:i},this.Ue()?(this.ec(),this.lineColor(this.Zu,this.tc)):this.nc()&&this.Sn()},fillNone:function(){this.Ju=vt.dt,this.vc(),this.Ea&&(!this.sc||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.sc)?(this.Ea.style.fill="white",this.Ea.style.fillOpacity=0):this.Ea.style.fill="none")},fillSolid:function(t,i,s,e){this.Ju=vt.pt,this.vc(),typeof t===Ai?(this.mc=t,e=i):this.mc=gs(t,i,s),this.bc=void 0===e?1:e,this.Ue()?(this.Ea.style.fill=this.mc,this.Ea.style.fillOpacity=this.bc):this.nc()&&this.Sn()},fillLinearGradient:function(t,i,s,e){if(this.Ju=vt.bt,this.wc=i,this.gc=t,this.kc=s,this.yc=e,this.vc(),this.Ue()){if(!this._c){this._c=Zi.createElementNS(Di,"linearGradient"),this._c.id=this.container.id?this.container.id+"-lgrad":"ap-lgrad-"+ee(),this._c.setAttribute("gradientUnits",Ni);var n=this.node.querySelector("defs");n||(n=Zi.createElementNS(Di,"defs"),this.node.appendChild(n)),n.appendChild(this._c)}this.Ea.style.fill="url(#"+this._c.id+")",this.Ea.style.fillOpacity=1,this.fillAngle(i),this.fillColorStops(t),this.fillLinearGradientTransform(s,e)}else this.nc()&&this.Sn()},fillRadialGradient:function(t,i,s,e,n){if(this.Ju=vt.wt,this.gc=t,this.Tc=i,this.xc=s,this.Sc=e,this.Ec=n,this.vc(),this.Ue()){if(!this.Mc){this.Mc=Zi.createElementNS(Di,"radialGradient"),this.Mc.id=this.container.id?this.container.id+"-rgrad":"ap-rgrad-"+ee(),this.Mc.setAttribute("gradientUnits",Ni);var h=this.node.querySelector("defs");h||(h=Zi.createElementNS(Di,"defs"),this.node.appendChild(h)),h.appendChild(this.Mc)}this.Ea.style.fill="url(#"+this.Mc.id+")",this.Ea.style.fillOpacity=1;var r=Ln(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.Mc,{cx:a,cy:o,r:u}),this.fillColorStops(t),this.fillRadialGradientTransform(i,s,e,n)}else this.nc()&&this.Sn()},fillAngle:function(t){if((t%=360)<0&&(t+=360),this.wc=t,this.Ju===vt.bt&&this._c){var i,s,e,n,h=Xi(t*Oi/180),r=1+h*h,a=Ln(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._c,{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.kc,this.yc)}},fillColorStops:function(t){var i,s,e,n,h,r,a;if(this.gc=t,this.Ju===vt.bt?i=this._c:this.Ju===vt.wt&&(i=this.Mc),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.Ju===vt.bt&&this._c){this.kc=t,this.yc=i;var s,e,n,h=Ln(this.node),r=this._c,a="";0!=t&&(s=this.wc*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.Ju===vt.wt&&this.Mc){this.Tc=t,this.Sc=s,this.xc=i,this.Ec=e;var n,h,r=Ln(this.node),a=this.Mc,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.Ju=vt.u,this.Cc=t,this.Pc=i,this.Ic=e,this.Rc=n,this.Ac=h,this.vc(),this.Ue()){if(!this.Dc){this.Dc=Zi.createElementNS(Di,"pattern"),this.Nc=Zi.createElementNS(Di,"image"),this.Dc.appendChild(this.Nc),ws(this.Dc,{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.Dc)}var a=this.parent.prez().getResource(t+"."+i);if(this.Nc.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",a),e===bt)if((d=this.parent)._s.t!==s.q)ws(this.Dc,{width:"100%",height:"100%"}),ws(this.Nc,{width:"100%",height:"100%",preserveAspectRatio:"none"});else{var o=d.slide;if(o){var u=-d.node.offsetLeft,c=-d.node.offsetTop,f=o.or,l=o.ur;ws(this.Dc,{x:u+"px",y:c+"px",width:f+"px",height:l+"px"}),ws(this.Nc,{width:f+"px",height:l+"px",preserveAspectRatio:"none"})}}else if(e===mt){var d;(d=this.parent)._s.t!==s.q?(ws(this.Dc,{width:n+"px",height:h+"px"}),ws(this.Nc,{width:n+"px",height:h+"px",preserveAspectRatio:"none"})):(ws(this.Dc,{x:-d.node.offsetLeft+"px",y:-d.node.offsetTop+"px",width:n+"px",height:h+"px"}),ws(this.Nc,{width:n+"px",height:h+"px",preserveAspectRatio:"none"}))}this.Ea.style.fill="url(#"+this.Dc.id+")",this.Ea.style.fillOpacity=1}else this.nc()&&this.Sn()},Oc:function(){switch(this.Ju){case vt.dt:this.fillNone();break;case vt.pt:this.fillSolid(this.mc,this.bc);break;case vt.bt:this.fillLinearGradient(this.gc,this.wc,this.kc,this.yc);break;case vt.wt:this.fillRadialGradient(this.gc,this.Tc,this.xc,this.Sc,this.Ec);break;case vt.u:this.fillImage(this.Cc,this.Pc,this.Ic,this.Rc,this.Ac)}},applyEffectShadow:function(t,i,s,e,n,h,r){this.Lc=t,this.Fc=i,this.Uc=s,this.Yc=e,this.Bc=n,this.Hc=h,this.zc=gs(e,n,h),this.Xc=r,this.vc();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.Gc=!0,Ns(c))}if(this.Ue()){if(he.browser.useCSSShadow)return;if(this.no(this.Vc,this.$c,this.Wc),this.shapeNode.removeAttribute("filter"),this.jc)(f=this.node.querySelector("defs"))&&f.removeChild(this.jc),delete this.jc,delete this.Qc,delete this.Kc,delete this.qc,delete this.Jc,delete this.Zc;Fn&&this.tf&&(this.shapeNode.removeChild(this.tf),delete this.tf),this.jc=Zi.createElementNS(Di,"filter"),this.jc.id=this.container.id?this.container.id+"-dropshadow":"ap-dropshadow-"+ee(),this.Qc=Zi.createElementNS(Di,"feFlood"),this.Kc=Zi.createElementNS(Di,"feComposite"),this.qc=Zi.createElementNS(Di,"feOffset"),this.Jc=t>0?Zi.createElementNS(Di,"feGaussianBlur"):null,this.Zc=Zi.createElementNS(Di,"feComposite");var f,l=this.jc;l.appendChild(this.Qc),l.appendChild(this.Kc),l.appendChild(this.qc),t>0&&l.appendChild(this.Jc),l.appendChild(this.Zc),(f=this.node.querySelector("defs"))||(f=Zi.createElementNS(Di,"defs"),this.node.appendChild(f)),f.appendChild(l);var d,p,v,m,b=Ln(this.node);if(m=this.wa+("miter"==this.oc?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),Fn){this.tf=Zi.createElementNS(Di,"path");var w=new An;w.addRect(p,v,e-p,h-v),this.tf.setAttribute("d",w.path()),this.shapeNode.appendChild(this.tf)}ws(this.jc,{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.Qc,{result:"flood","flood-color":this.zc,"flood-opacity":this.Xc}),ws(this.Kc,{result:"composite1",operator:"in",in2:"SourceGraphic",in:"flood"}),ws(this.qc,{result:"offset",in:"composite1",dx:o,dy:u}),this.Jc&&ws(this.Jc,{result:"blur",in:"offset",stdDeviation:t/3}),ws(this.Zc,{result:"composite2",operator:"over",in2:t>0?"blur":"offset",in:"SourceGraphic"}),this.shapeNode.setAttribute("filter","url(#"+this.jc.id+")")}else this.nc()&&this.Sn()},clearEffectShadow:function(){if(void 0!=this.Lc){if(delete this.Lc,delete this.Fc,delete this.Uc,delete this.Yc,delete this.Bc,delete this.Hc,delete this.zc,delete this.Xc,he.browser.useCSSShadow)return this.parent.node.style.WebkitFilter="",this.parent.node.style.filter="",void delete this.parent.Gc;if(this.shapeNode.removeAttribute("filter"),this.jc){var t=this.node.querySelector("defs");t&&t.removeChild(this.jc),delete this.jc,delete this.Qc,delete this.Kc,delete this.qc,delete this.Jc,delete this.Zc}Fn&&this.tf&&(this.shapeNode.removeChild(this.tf),delete this.tf),this.no(),this.vc()}},if:function(){void 0==this.Lc?this.clearEffectShadow():this.applyEffectShadow(this.Lc,this.Fc,this.Uc,this.Yc,this.Bc,this.Hc,this.Xc)},no:function(t,i,s){if(this.Vc=t,this.$c=i,this.Wc=s,this.Ue()){if(he.browser.useCSSShadow)return;if(void 0!=this.Vc&&void 0!=this.Lc){this.sf||(this.sf=Zi.createElementNS(Di,"image"));var e=this.sf,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.sf&&(this.shapeNode.removeChild(this.sf),delete this.sf,this.parent.imageNode&&(this.parent.imageNode.style.display="block"))}else this.nc()&&this.Sn()},vc:function(){if(!he.browser.useCSSShadow){var t,i=void 0!=this.Lc&&this.Ju==vt.dt,s=this.parent.textContainer;if(s)if(t=s.style,i){var e=this.Uc*Math.cos(this.Fc/180*Math.PI),n=this.Uc*Math.sin(this.Fc/180*Math.PI),h=this.zc.substring(4,this.zc.length-1).replace(/ /g,"").split(","),r="rgba("+h[0]+", "+h[1]+", "+h[2]+", "+this.Xc+")";t.textShadow=e+"px "+n+"px "+this.Lc+"px "+r}else t.textShadow=""}},cursor:function(t){this.Or=t,this.shapeNode&&(this.shapeNode.style.cursor=t)},layout:function(){if(this.ec(),this.ef){var t=this.container.clientHeight;this.ef.translate(0,t/2)}this.Ju!==vt.bt&&this.Ju!==vt.wt&&this.Ju!=vt.u||this.Oc(),this.if()},remove:function(){this.node&&(this.container.removeChild(this.node),this.node=this.shapeNode=this.hc=this.rc=this.fc=this.lc=this.Ea=null)},textMargin:function(t,i){var s=[0,0,0,0],e=Rn[this.us];return e&&e[1]&&(s=e[1].apply(null,[t,i].concat(this.Ia))),s},shapeSizeForText:function(t,i){var s=[t,i],e=Rn[this.us];return e&&e[2]&&(s=e[2].apply(null,[t,i].concat(this.Ia))),s},createIcon:function(t,i,s,e,n,h,r){this.Ue()||this.Sn(),this.nf={checked:t,iconSize:i,iconType:s,colorCheckMark:r,colorFill:n,colorBorder:h,borderWidth:e},this.ef||(this.ef={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.ef.init(),this.ef.appendTo(this.shapeNode))},updateIcon:function(){if(this.ef&&this.nf){var t=this.parent._s.k;t==i.N?this.hf():t==i.O&&this.rf()}},hf:function(){var t=this.nf.iconSize/16,i=this.nf.iconSize-4*$i(Bi(t,1)+.5),s=$i(Yi(-7,-this.nf.iconSize/4))-2*$i(Bi(t,1)+.5),e=i/2,n=new An;0==this.nf.colorFill.indexOf("rgba")&&(this.ef.border.style.fillRule="evenodd",n.addRect(-s,-e,i,i)),n.addRect(-s-this.nf.borderWidth,-e-this.nf.borderWidth,i+2*this.nf.borderWidth,i+2*this.nf.borderWidth),this.ef.border.style.fill=this.nf.colorBorder,this.ef.border.setAttribute("d",n.path());var h=new An;if(h.addRect(-s,-e,i,i),this.ef.fill.style.fill=this.nf.colorFill,this.ef.fill.setAttribute("d",h.path()),this.nf.checked){24==this.Ua&&(this.af==st?(++e,++s):this.af==nt&&++e);var r=new An;switch(this.nf.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.ef.mark.style.fill=this.nf.colorCheckMark,this.ef.mark.setAttribute("d",r.path())}else this.ef.mark.setAttribute("d","")},rf:function(){var t,i,s,e=this.nf.iconSize/16,n=this.nf.iconSize/2,h=n+Bi($i(this.nf.iconSize/4),7);switch(this.nf.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.nf.borderWidth;var r=new An;0==this.nf.colorFill.indexOf("rgba")&&(this.ef.border.style.fillRule="evenodd",r.addEllipse(h,0,s-this.nf.borderWidth,s-this.nf.borderWidth)),r.addEllipse(h,0,s,s),this.ef.border.style.fill=this.nf.colorBorder,this.ef.border.setAttribute("d",r.path());var a=new An;if(a.addEllipse(h,0,t,t),this.ef.fill.style.fill=this.nf.colorFill,this.ef.fill.setAttribute("d",a.path()),this.nf.checked){var o=new An;o.addEllipse(h,0,i,i),this.ef.mark.style.fill=this.nf.colorCheckMark,this.ef.mark.setAttribute("d",o.path())}else this.ef.mark.setAttribute("d","")},nc:function(){return(this.sc||void 0!==this.us)&&("none"!==this.ba||this.Ju!==vt.dt||void 0!=this.Lc&&void 0!=this.Vc)},Ue:function(){var t=!1;return this.hasArrow()?this.hc&&(t=!0):this.shapeNode&&(t=!0),t},Sn: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.hc||(i=!0,this.shapeNode&&this.node.removeChild(this.shapeNode),this.shapeNode=Zi.createElementNS(Di,"g"),this.Ea=Zi.createElementNS(Di,"path"),this.Ea.style.stroke="none",this.shapeNode.appendChild(this.Ea),this.hc=Zi.createElementNS(Di,"g"),this.rc=Zi.createElementNS(Di,"path"),this.rc.style.fill="none",this.hc.appendChild(this.rc),this.fc=Zi.createElementNS(Di,"path"),(t=this.fc.style).strokeLinecap="round",t.strokeLinejoin="miter",this.hc.appendChild(this.fc),this.lc=Zi.createElementNS(Di,"path"),(t=this.lc.style).strokeLinecap="round",t.strokeLinejoin="miter",this.hc.appendChild(this.lc),this.shapeNode.appendChild(this.hc),this.node.appendChild(this.shapeNode));else if(this.sc&&this.sc.length){if(!this.hc){if(i=!0,this.shapeNode&&this.node.removeChild(this.shapeNode),this.shapeNode=Zi.createElementNS(Di,"g"),this.Ea=Zi.createElementNS(Di,"path"),this.Ea.style.stroke="none",this.shapeNode.appendChild(this.Ea),this.sc.length>2){this.uf=[];for(var n=0;n<this.sc.length;++n)if(!(n<2)){var h=this.sc[n];if(h){var r=Zi.createElementNS(Di,"path");r.style.fill=h.f,r.style.stroke="none",this.shapeNode.appendChild(r),this.uf.push(r)}}}this.rc=Zi.createElementNS(Di,"path"),this.rc.style.fill="none",this.shapeNode.appendChild(this.rc),this.node.appendChild(this.shapeNode)}}else this.shapeNode||(i=!0,this.shapeNode=Zi.createElementNS(Di,"g"),this.Ea=Zi.createElementNS(Di,"path"),this.shapeNode.appendChild(this.Ea),this.parent._s.t==s.q?(this.rc=Zi.createElementNS(Di,"path"),this.shapeNode.appendChild(this.rc)):this.rc=this.Ea,this.node.appendChild(this.shapeNode));i&&((t=this.shapeNode.style).pointerEvents="visiblePainted",t.strokeMiterlimit=10,t.fill=t.stroke="none",this.ec(),void 0!==this.oc&&this.lineJoin(this.oc),void 0!==this.ic&&this.lineCap(this.ic),this.lineWidth(this.wa),this.lineColor(this.Zu,this.tc),this.lineStyle(this.ba),this.Oc(),this.if(),void 0!==this.Or&&this.cursor(this.Or))},hasArrow:function(){return this.cf()&&(this.dc&&this.dc.type!==rt.NONE||this.pc&&this.pc.type!==rt.NONE)},cf:function(){return this.sc&&this.sc.length>0&&this.sc[1]&&this.sc[1].length>1&&this.wa},ff:function(){var t=this.container.clientWidth,i=this.container.clientHeight,e=new An,n={fill:"",line:"",startArrow:"",startArrowTransform:"",endArrow:"",endArrowTransform:""};if(!t&&!i)return n;if(he.browser.chromiums&&this.parent._s.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.sc){var a=this.sc;if(void 0===a.w){var o=function(t){var i=new An,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&&Yn(i,a)}e.setAttribute("d",i.path()),s.appendChild(e),Zi.body.appendChild(s);var o=Ln(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=Bn(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.cf()&&(this.dc&&this.dc.type!==rt.NONE&&(f=b[0].slice(),d=Gi(f[5]-f[1],f[4]-f[0]),(m=new An).addMarker(this.dc.type,this.dc.size,this.wa),n.startArrow=m.path(),n.startArrowTransform="translate("+f[0]+","+f[1]+") rotate("+180*d/Oi+")",p=Hn(this.dc.type,this.dc.size,this.wa),b[0][0]+=p*Hi(d),b[0][1]+=p*zi(d)),this.pc&&this.pc.type!==rt.NONE&&(l=b[v=b.length-1].slice(),d=Gi(l[3]-l[1],l[2]-l[0]),(m=new An).addMarker(this.pc.type,this.pc.size,this.wa),n.endArrow=m.path(),n.endArrowTransform="translate("+l[0]+","+l[1]+") rotate("+180*d/Oi+")",p=Hn(this.pc.type,this.pc.size,this.wa),b[v][0]+=p*Hi(d),b[v][1]+=p*zi(d))),Yn(e,b),f&&(b[0]=f),l&&(b[v]=l),1==u&&(n.line=e.path()),(f||l)&&(e.clear(),Yn(e,b)),0==u&&(n.fill=e.path()),u>=2&&(n.decorators||(n.decorators=[]),n.decorators.push(e.path()))}}else{var w=Rn[this.us];if(w&&w[0])if(this.uc()){var g="none"!==this.ba?this.wa:0,k=g%2==0?0:1,y=$i(g/2);w[0].apply(e,[-y-k,-y-k,t+2*y+k,i+2*y+k].concat(this.Ia))}else w[0].apply(e,[0,0,t,i].concat(this.Ia));n.fill=n.line=e.path()}return n},ec:function(){var t=this.ff();if(this.Ea){var e=this.parent;if(e._s.t===s.q){var n=this.slide;if(n){var h={x:-e.node.offsetLeft-1,y:-e.node.offsetTop-1,width:n.or+2,height:n.ur+2},r=new An;r.addRect(h.x,h.y,h.width,h.height),t.fill&&(t.fill+=r.path())}}12===this.us||this.uf&&this.uf.length||(this.Ea.style.fillRule="evenodd"),this.Ea.setAttribute("d",t.fill)}if(this.rc!==this.Ea&&this.rc.setAttribute("d",t.line),this.fc&&(this.fc.setAttribute("d",t.startArrow),t.startArrowTransform?this.fc.setAttribute("transform",t.startArrowTransform):this.fc.removeAttribute("transform")),this.lc&&(this.lc.setAttribute("d",t.endArrow),t.endArrowTransform?this.lc.setAttribute("transform",t.endArrowTransform):this.lc.removeAttribute("transform")),this.parent._s.k==i.U&&this.Ma){var a=this.Ma.querySelector("rect"),o="none"!==this.ba?this.wa: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.Ma.querySelector("path");if(d){var p=new An,v=Rn[this.us],m=this.parent._s.tmp.duration,b=(this.parent._s.tmp.countdown?m-this.parent.Ta:this.parent.Ta)/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.Ia)),d.setAttribute("d",p.path()))}}if(this.uf&&this.uf.length>0&&t.decorators&&t.decorators.length==this.uf.length)for(var w=0;w<this.uf.length;++w)this.uf[w].setAttribute("d",t.decorators[w])},uc:function(){var t=this.parent._s.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=Ln(this.node),i=(this.wa||0)/2*("miter"===this.oc?10:1);if(i&&(t.x-=i,t.y-=i,t.width+=2*i,t.height+=2*i),void 0!==this.Lc){var s=this.Uc*Hi(this.Fc/180*Oi),e=this.Uc*zi(this.Fc/180*Oi),n=this.Lc,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 Yn(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 Bn(t,i,s){var e,n,h,r,a,o=[],u=Ee.scaleNonUniform(i,s);for(n=0,h=t.length;n<h;++n)r=[],a=Ce(u,(e=t[n])[0],e[1]),r[0]=a.x,r[1]=a.y,a=Ce(u,e[2],e[3]),r[2]=a.x,r[3]=a.y,a=Ce(u,e[4],e[5]),r[4]=a.x,r[5]=a.y,r[6]=e[6],o[n]=r;return o}function Hn(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 zn={FPS:60,INTERVAL:16,time:0,syncTimes:[],timerId:null,isRunning:function(){return!!this.timerId},start:function(){this.stop(),Xn()},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 Xn(){zn.updateTime(),zn.timerId=requestAnimationFrame(Xn),he.tick(zn.time)}var Gn={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){Gn.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}},Vn={he:0,lf:1,df:2,pf:3,Hh:4,vf:5,mf:6},$n=Ls({$init:function(t,i){this.s=t,this.d=i-t},resolveRelative:function(t,i,s,e){var n,h;switch(t){case Vn.lf:n=i,h=s;break;case Vn.df:n=i,h=i+s;break;case Vn.pf:n=s,h=i;break;case Vn.Hh:n=i-s,h=i;break;case Vn.vf:n=i+s,h=i+e;break;case Vn.mf: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}}),Wn={_default:function(t,i){return new $n(t,i)}};function jn(t,i){return void 0===Wn[i]&&(Wn[i]=t,!0)}function Qn(t){return(Wn[t]||Wn._default).apply(null,Array.prototype.slice.call(arguments,1))}var Kn=Ls($n,{$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 qn(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 Jn(t,i,s,e,n){var h=$i(s[e].t),r=(s[e].t+s[e+1].t)/2-h,a=qn(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(Zn(a,{x:(o.x+u.x)/2,y:(o.y+u.y)/2})>n||Zn(o,u)>4*n)&&(a.t=h+r,s.splice(e+1,0,a),c=1+Jn(t,i,s,e+1,n),c+=Jn(t,i,s,e,n)),c}function Zn(t,i){var s=i.x-t.x,e=i.y-t.y;return Fi(s*s+e*e)}jn(function(t,i){return new Kn(t,i)},jt.Xi);var th=Ls($n,{$init:function(t,i){this.bf=i||{translateX:0,translateY:0},this.points(t)},value:function(t){var i=this.wf(t),s=$i(i),e=this.gf,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=qn(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.kf*r.x/h,p.y+=a*this.kf*r.y/h),{translateX:p.x+this.bf.translateX,translateY:p.y+this.bf.translateY}},points:function(t){t&&t.length||(t=[[0,0,0,0,0,0]]),1===t.length&&(t[1]=t[0]),this.gf=t,this.yf(),this._f()},yf:function(){this.qu=[];var t,i,s,e,n=this.gf,h=n.length-1,r=this.qu;for(t=0;t<h;++t)for(i=0;i<4;++i)s=i/4,(e=qn(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)Jn(n[t],n[t+1],r,4*t+i,2)},_f:function(){var t,i=this.qu,s=0,e=i.length-1;for(t=0;t<e;++t)i[t].l=s,s+=Zn(i[t],i[t+1]);e>=0&&(i[e].l=s),this.kf=s,this.Tf=[];var n,h,r=this.Tf,a=s;for(this.xf=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})},wf:function(t){var i,s,e,n,h=t*this.kf,r=this.Tf,a=r.length;return 0===a?i=0:1===a?i=r[0].t:(e=r[s=this.xf>0?Yi(Bi(0,$i(h/this.xf)),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}});jn(function(t,i){return new th(t,i)},jt.Gi);var ih=Ls($n,{$init:function(t){this.Sf=t||""},value:function(t){var i=this.Sf;if(t>=0||t<=1){var s=i.length,e=s*t;e>s&&(e=s),i=i.substring(0,e)}return i}});function sh(t){return us(t.translateX,0)&&us(t.translateY,0)&&us(t.rotate,0)&&us(t.scaleX,1)&&us(t.scaleY,1)}jn(function(t){return new ih(t)},jt.Vi);var eh={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(sh(i)&&!t.Gc)i="";else if(he.forceGPU||t.Gc)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.Gc?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){if(i.$r?(i.Wr=s,s=i.hideProp?i.hideProp():"none",i.Wr==s&&delete i.Wr):delete i.Wr,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();var e=Os.fullscreenElement();e&&(i.node==e||t.contains(i.node,e))&&Os.exitFullscreen()}i.Cn&&i.Cn(),i.Mh&&i.Mh()},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.ya=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.vh},set:function(t,i){t.vh=i,fn.renderMouseEffect(t.node.getContext("2d"),t.mh,t.wh,t.gh,i/100,t.bh,t.kh)}},geProgress:{get:function(t){return t.co},set:function(i,s){if(i.co=s,i.fo){var e=i.fo,n=e.getContext("2d"),h=i._s.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._s.ge.color),f=s/100;fn.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.Nn)return t.Nn.wu()},set:function(t,i){t.Nn&&t.Nn.loadResource(i)}},mediaDuration:{get:function(t){if(t.Nn)return t.Nn.bu()},set:function(t,i){t.Nn&&t.Nn.Dn(i)}},mediaState:{get:function(t){return t.Nn?t.Nn.cs():"stopped"},set:function(t,i){t.Nn&&t.Nn.cs(i)}},mediaSeek:{get:function(t){return t.Nn?t.Nn._o():0},set:function(t,i){t.Nn&&t.Nn._o(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.xa||!1},set:function(t,i){i&&!t.Sa&&(t.Sa=!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}}},nh=Ls({$init:function(t){this.Da=t,this.Ef={}},apply:function(t){this.toTarget(t,this.get(t))},toTarget:function(t,i){var s,e,n,h=eh[t];if(h)if(h.set)h.set(this.Da,i);else if(h.base&&(s=eh[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.Da,e)}},fromTarget:function(t){var i,s,e,n,h,r,a=eh[t];if(a)if(a.get)s=a.get(this.Da);else if(a.base&&(i=eh[a.base])&&i.get&&(s=i.get(this.Da)))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=eh[t];if(h&&h.children&&(n=h.children.length))for(i={},e=0;e<n;++e)i[s=h.children[e]]=this.Ef[s];else i=this.Ef[t];return i},set:function(t,i){var s,e,n,h=eh[t];if(h&&h.children&&(n=h.children.length))for(e=0;e<n;++e)s=h.children[e],this.Ef[s]=i?i[s]:i;else this.Ef[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=eh[t];if(r&&r.children&&(h=r.children.length))for(n=0;n<h;++n)e=r.children[n],(s=eh[e])&&s.add?this.Ef[e]=s.add(this.Ef[e],i?i[e]:i):this.Ef[e]=(this.Ef[e]||0)+i;else r&&r.add?this.Ef[t]=r.add(this.Ef[t],i):this.Ef[t]=(this.Ef[t]||0)+i}}),hh=Ls({$init:function(t){this.options=t=Qi({speed:1,repeat:1,alternated:!1,paused:!1,startTime:0},t),this.Yn=t.speed||1e-9,this.Mf=t.repeat||1,this.Cf=1,this.Pf=t.alternated,this.Qn=t.startTime,this.If=void 0,this.Rf=void 0,this.Af=void 0,this.qn=0,this.ke=t.paused,this.Ro=null,this.Df=null},started:function(){return void 0!==this.Af},speed:function(t){return arguments.length?(this.Yn=t||1e-9,this.ke||this.startTime((this.Ro?this.Ro.qn:zn.now())-this.qn/this.Yn),this):this.Yn},repeat:function(t){return arguments.length?(this.Mf=t||1,rh(this,!0),this):this.Mf},alternated:function(t){return arguments.length?(this.Pf=t,this):this.Pf},startTime:function(t){if(!arguments.length)return this.Qn;if(t!==this.Qn)if(this.Ro){var i=this.Ro;i.removeChild(this),this.Qn=t,i.addChild(this)}else this.Qn=t;return this},endTime:function(t){return this.Qn+(t?this.duration():this.totalDuration())/this.Yn},duration:function(t){return arguments.length?(this.If=t,rh(this,!0),this):this.If},totalDuration:function(t){return arguments.length?this.Mf>0?this.duration(t/this.Mf):this:(void 0===this.Rf&&(void 0===this.If&&this.duration(),-1===this.Mf?this.Rf=1e11:-2===this.Mf?this.Rf=this.Ro?(this.Ro.duration()-this.Qn)*this.Yn:this.If:this.Rf=this.Mf*this.If),this.Rf)},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.ke;if(t=!!t,this.ke!==t){this.ke=t;for(var i=this;i&&!i.ke;)i.startTime((i.Ro?i.Ro.qn:zn.now())-i.qn/i.Yn),i=i.Ro;t||this.update(this.qn)}return this},Nf:function(){for(var t=this;t;){if(t.ke)return!0;t=t.Ro}return!1},seek:function(t){return this.totalTime(t)},time:function(t){return arguments.length?(t=os(t,0,this.duration()),this.Pf&&this.Cf%2==0&&(t=this.If-t),this.totalTime(t+(this.Cf-1)*this.If)):this.Af||0},totalTime:function(t){if(!arguments.length)return this.qn;t<0&&(t=0),this.Of(t),this.update(t,!0);for(var i=this;i&&!i.ke;)i.startTime((i.Ro?i.Ro.qn:zn.now())-i.qn/i.Yn),i=i.Ro;return this},Of:function(t){this.Af=void 0},parent:function(t){return arguments.length?(t?t.addChild(this):this.remove(),this):this.Ro},timeline:function(){return this.Df},remove:function(){return this.Ro&&this.Ro.removeChild(this),this},setup:function(){},update:function(t,i){},Kn:function(t){var i=void 0===this.If?this.duration():this.If,s=void 0===this.Rf?this.totalDuration():this.Rf,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.Mf&&(0===(e=Wi(t/i))&&(e=1),t-=(e-1)*i,this.Pf&&e%2==0&&(t=i-t),t>i?t=i:t<0&&(t=0),e<this.Mf?this.uncapTime=t:(this.uncapTime-=(e-1)*i,this.Pf&&e%2==0&&(this.uncapTime=i-this.uncapTime)))),n.time=t,n.cycle=e,n},Lf:function(t){this.Df=t},Ff:function(t,i){return!0},Uf:function(t){}});function rh(t,i){for(;t;)t.Rf=void 0,i?i=!1:t.If=void 0,t=t.Ro}var ah=Ls(hh,{$init:function(t,i){this.isEvent=!0,this.Yf=!1,hh.prototype.$init.call(this,i),this.If=this.options.duration||0,this.Bf=t},update:function(t,i){t=this.Kn(t),this.Cf=t.cycle,this.qn=t.totalTime,this.Af=t.time,this.Yf||(this.Yf=!0,this.Bf&&this.Bf(this.Af,i))},Of:function(t){hh.prototype.Of.call(this,t),this.Yf=t>0}}),oh=Ls(hh,{$init:function(t,i,s){hh.prototype.$init.call(this,s),(s=this.options).tweenParams||(s.tweenParams=[]),void 0===s.relative&&(s.relative=Vn.he),this.Da=t,t.animProps||(t.animProps=new nh(t)),this.Hf=i,this.If=s.duration||0,this.zf=s.additive||!1,this.Xf=s.easing||Gn.linear,s.revert&&(this.Gf=!0),Ki(this.options.tweenParams[0])||(this.Vf=Qn.apply(null,[s.tweenType].concat(s.tweenParams)))},setup:function(){if(Ki(this.options.tweenParams[0]))this.Vf=Qn.apply(null,[this.options.tweenType].concat(this.options.tweenParams[0].apply(this,this.options.tweenParams.slice(1))));else if(this.options.relative!==Vn.he){var t=this.$f();this.Vf.resolveRelative.apply(this.Vf,[this.options.relative,t].concat(this.options.tweenParams))}},update:function(t,i){t=this.Kn(t);var s=this.Af!=t.time||this.Cf!=t.cycle,e=this.Xf(this.If?t.time/this.If:1);this.Gf&&t.totalTime>=this.Rf&&(e=0),this.Cf=t.cycle,this.Af=t.time,this.qn=t.totalTime,this.zf?this.Da.animProps.add(this.Hf,this.Vf.value(e)):this.Da.animProps.set(this.Hf,this.Vf.value(e)),this.Df&&s&&this.Df.Wf(this.Hf,this.Da)},Lf:function(t){t!==this.Df&&(this.Df&&this.Df.jf(this.Hf,this.Da),this.Df=t,t&&t.Qf(this.Hf,this.Da))},Ff:function(t,i){return this!==i&&(this.Da===i.Da&&(this.update(t,!0),this.Af=void 0),!0)},$f:function(t){var i;if(this.Df){for(var s=0,e=this,n=this.Df,h=Qi({},this.Da.animProps.Ef);e&&e!==n;)s=e.Qn+s/e.Yn,e=e.Ro;n.Ff(s,this),i=t?t.call(this):this.Da.animProps.get(this.Hf),this.Da.animProps.Ef=h}else i=t?t.call(this):this.Da.animProps.fromTarget(this.Hf);return i}}),uh=Ls(oh,{Uf:function(t){var i,s=this.Da.Nn;if(s){if(s.Jo){i=!1;for(var e=this,n=s.Cs,h=n?n.ae:null;e;){if(e.ke&&n&&e!=h){i=!0;break}e=e.Ro}}else i=this.Nf();i?s.So():s.xo()}},update:function(t,i){if(oh.prototype.update.call(this,t),i){var s=this.Da.Nn;s&&s.To()}}}),ch=Ls(hh,{$init:function(t){hh.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.If){var i,s=this.lastChild;for(t=0;s;)(s.Mf>0||-1===s.Mf)&&(i=s.Qn+s.totalDuration()/s.Yn)>t&&(t=i),s=s.prev;this.If=t}return this.If}return t&&(this.If||this.duration())&&this.speed(this.If/t),this},totalDuration:function(t){return arguments.length?(this.Mf>0&&t&&(this.Rf||this.totalDuration())&&this.speed(this.Rf/t),this):void 0!==this.Rf?this.Rf:hh.prototype.totalDuration.call(this)},update:function(t,i){var s=this.Kn(t);s.cycle>1&&this.qn<(s.cycle-1)*this.If&&this.started()&&(this.update((s.cycle-1)*this.If,i),this.Of(t)),this.Cf=s.cycle,this.Af=s.time,this.qn=s.totalTime;for(var e,n=this.Nf(),h=s.time,r=this.firstChild;r&&!(r.Qn>h)&&(e=r.next,r.ke||(r.update((h-r.Qn)*r.Yn,i),!r.firstChild||this.Cf===s.cycle&&this.Af===h&&this.Nf()===n));)r=e},Lf:function(t){if(t!==this.Df){for(var i=this.firstChild;i;)i.Lf(t),i=i.next;this.Df=t}},addChild:function(t,i){if(t.isEvent&&!this.isTimeline)return as("Only timeline can add timing event"),this;t.Ro&&t.remove();for(var s=this.lastChild;s&&(i?s.Qn>=t.Qn:s.Qn>t.Qn);)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.Ro=this,t.Lf(this.isTimeline?this:this.Df),void 0!==this.If&&t.endTime()>this.If&&(this.If=t.endTime(),rh(this,!0)),this},removeChild:function(t){return t.Ro===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.Ro=null,t.Df&&t.Lf(null),void 0!==this.If&&t.endTime()>=this.If&&rh(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 hh.prototype.paused.call(this);hh.prototype.paused.call(this,t);for(var i=this.firstChild;i;)i.Uf(t),i=i.next;return this},Ff:function(t,i){if(this===i)return!1;t=this.Kn(t).time;for(var s=this.firstChild;s;){if(s.Qn<=t&&!s.Ff((t-s.Qn)*s.Yn,i))return!1;s=s.next}return!0},Of:function(t){hh.prototype.Of.call(this,t),t=this.Kn(t).uncapTime;for(var i=this.firstChild;i;)i.Of((t-i.Qn)*i.Yn),i=i.next},Uf:function(t){hh.prototype.Uf.call(this,t);for(var i=this.firstChild;i;)i.Uf(t),i=i.next}});function fh(t,i){return t.active-i.active||t.order-i.order}var lh=Ls(ch,{isTimeline:!0,$init:function(t){ch.prototype.$init.call(this,t),this.Kf=[]},setup:function(){var t,i,s,e,n,h,r=this.Kf,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=Ae(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)eh[i]&&eh[i].base?e[eh[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(ch.prototype.setup.call(this),h=0,a=o.length;h<a;++h)De(o[h])},update:function(t,i){t=this.Kn(t),this.Cf=t.cycle,this.qn=t.totalTime;var s,e,n=this.Nf();if(i||this.Af!==t.time){var h,r,a,o,u,c=this.Kf;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.Af=t.time,p=!1,v=!1;if(!n)for(s=this.firstChild;s&&!(s.Qn>t.time);){if(e=s.next,s.isEvent&&!s.ke&&!s.Yf)for(this.Af=d=s.Qn,this.qn=t.totalTime+d-t.time,o=0;o<2;++o){for(1===o&&this.qf(i),f=this.firstChild,v=!0;f&&!(f.Qn>d);){if(l=f.next,!f.ke&&(0===o&&!f.isEvent||1===o&&f.isEvent)&&(f.update((d-f.Qn)*f.Yn,i),(f.isEvent||f.firstChild)&&(this.Cf!==t.cycle||this.Af!==d||this.Nf()!==n))){p=!0;break}f=l}if(p)break}if(p)break;s=e}if(!(p||this.Af===t.time&&v))for(this.Af=d=t.time,this.qn=t.totalTime,f=this.firstChild;f&&!(f.Qn>d)&&(l=f.next,f.ke||f.isEvent||(f.update((d-f.Qn)*f.Yn,i),!f.firstChild||this.Cf===t.cycle&&this.Af===d&&this.Nf()===n));)f=l;this.qf(i)}else if(!n)for(s=this.firstChild;s&&!(s.Qn>t.time)&&(e=s.next,!s.isEvent||s.Qn!==this.Af||s.ke||s.Yf||(s.update(0,i),this.Cf===t.cycle&&this.Af===t.time&&this.Nf()===n));)s=e},qf:function(t){var i,s,e,n,h,r,a,o,u,c,f=this.Kf;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},eh[n]&&(eh[n].base?(e.name=eh[n].base,e.order=eh[e.name].order||0):e.order=eh[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(fh),o=0,u=i.length;o<u;++o)c.animProps.apply(i[o].name)}},Ff:function(t,i){var s,e,n,h,r,a=this.Kf;for(h=0,r=a.length;h<r;++h)if((s=a[h].target)===i.Da){n=a[h].props;for(e in n)n[e].active=!1,s.animProps.set(e,n[e].value)}return ch.prototype.Ff.call(this,t,i)},Lf:function(t){this.Df=t},Qf:function(t,i){var s,e,n,h,r,a=this.Kf;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=eh[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)},jf:function(t,i){var s,e,n,h,r,a,o=this.Kf;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=eh[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)}},Wf:function(t,i){var s,e,n,h,r,a=this.Kf;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=eh[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:Gn,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:Le,color:gs,createClass:Ls,Locale:oe,SVGShape:Un,ShapePath:An,ClickMaxDistance:1,DoubleClickMaxTime:400,SwipeMinDistance:30,SwipeMaxDeflection:200,SwipeMinVelocity:.3,TransitionMinDuration:500,Timeline:lh,Animation:oh,MediaAnimation:uh,AnimationGroup:ch,TimingEvent:ah,RelativeTweenType:Vn,TweenType:jt,logDebug:as,ZIndex:$t,ControlKind:i,ControlType:s,TextBoxFlags:ht,ResponseResult:At,PlayModes:Qt,animatedProperties:eh,DragDrop:Ie,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,zn.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.Da.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.Da.animProps.fromTarget(this.Hf),u=this.Da.score?this.Da:this.Da.parent;if(u&&i){var c=u.transformOrigin(!0);o.translateX-=c.x,o.translateY-=c.y}if(u&&u!=this.Da){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.$f(),n=this.Da.animProps.fromTarget(this.Hf),h=this.Da.transformedContentBox(!0),r=this.Da.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.Da.parent&&this.Da.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.$f(),n=this.Da.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.Da.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.Da.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.Da.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.Da.offsetSize().height)-r,a=h-a)}return e?[a,r]:[r,a]}function k(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.he,a]):t.push(["clipRight",0,1,[g,s.RIGHT,n],l.he,a])),void 0!==r&&(r!=i?t.push(["clipTop",0,1,[g,s.TOP,n],l.he,a]):t.push(["clipBottom",0,1,[g,s.BOTTOM,n],l.he,a])),t.push(["resetClip",1,0,["",""],l.he,f,d.Xi]),i||t.push(["position",0,1,[w,e,n],l.he,a,d.Gi,n])}function y(t,i){var e=i?c:u;t.push(["clipLeft",0,1,[g,s.LEFT,i,!0],l.he,e],["clipTop",0,1,[g,s.TOP,i,!0],l.he,e],["clipRight",0,1,[g,s.RIGHT,i,!0],l.he,e],["clipBottom",0,1,[g,s.BOTTOM,i,!0],l.he,e],["resetClip",1,0,["",""],l.he,f,d.Xi])}function _(t,i){return t*=i?this.Da.slide.offsetSize().height/100:this.Da.slide.offsetSize().width/100,[this.$f(),t]}t.createZoomAndPan=function(t,i,s,e){var n=new h({startTime:0});if(p(n,t,"scale",0,0,[1],l.lf),p(n,t,"translateX",0,0,[0],l.lf),p(n,t,"translateY",0,0,[0],l.lf),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.lf),p(n,t,"translateX",a.startTime,a.duration,o,l.lf,f),p(n,t,"translateY",a.startTime,a.duration,u,l.lf,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.fs&&e.fs(!0)},{startTime:r});if(n===i.TIME_OUT)return new a(function(){e.qr&&e.qr(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.he,u]]:n==i.FLY_IN?L=[["position",0,1,[b,C],l.pf,u,d.Gi]]:n==i.PEEK_IN?k(L,!1,C,!1):n==i.FLOAT_IN?C==s.BOTTOM?L=[["translateY",0,1,[100],l.pf,u],["opacity",0,1,[0,1],l.he,u]]:C==s.TOP&&(L=[["translateY",0,1,[-100],l.pf,u],["opacity",0,1,[0,1],l.he,u]]):n==i.WIPE_IN?k(L,!0,C,!1):n==i.ZOOM_IN?(L=[["scale",0,1,[0,1],l.mf,u],["opacity",0,1,[0,1],l.he,u]],O&&L.push(["svgOpacity",0,1,[.9,1],l.he])):n==i.GROW_TURN_IN?(L=[["rotate",0,1,[90],l.pf,u],["opacity",0,1,[0,1],l.he,u],["scale",0,1,[0,1],l.mf,u]],O&&L.push(["svgOpacity",0,1,[.9,1],l.he])):n==i.SWIVEL_IN?(L=[["opacity",0,1,[0,1]],["scaleX",0,.2,[0,1],l.mf,u],["scaleX",.2,.2,[1,1e-4],l.mf,u],["scaleX",.4,.2,[1,-1e4],l.mf,u],["scaleX",.6,.2,[1,-1e-4],l.mf,u],["scaleX",.8,.2,[1,1e4],l.mf,u]],O&&L.push(["svgOpacity",0,1,[.9,1],l.he])):n==i.BOUNCE_IN?L=[["translateX",0,1,[-150],l.pf],["translateY",0,1,[-250],l.pf,o.outBounce],["opacity",0,.05,[0,1]],["scaleY",7/22,1/22,[1,.8],l.mf],["scaleY",8/22,1/22,[1,1.25],l.mf],["scaleY",15/22,1/22,[1,.9],l.mf],["scaleY",16/22,1/22,[1,1/.9],l.mf],["scaleY",19/22,1/22,[1,.95],l.mf],["scaleY",20/22,1/22,[1,1/.95],l.mf]]:n==i.EXPAND_IN?L=[["scaleX",0,1,[.8,1],l.mf,u],["opacity",0,1,[0,1],l.he,u]]:n==i.SPINNER_IN?L=[["rotate",0,1,[-360],l.df,u],["opacity",0,1,[100/255,1],l.he,u]]:n==i.STRETCH_IN?(L=[["scaleX",0,1,[0,1],l.mf,u]],O&&L.push(["svgOpacity",0,1,[.9,1],l.he])):n==i.COMPRESS_IN?L=[["scaleX",0,1,[1.5,1],l.mf,u],["opacity",0,1,[0,1],l.he,u]]:n==i.SHAPE_IN?y(L,!1):n==i.PULSE?L=[["scale",0,.5,[1,1.2],l.mf],["opacity",0,.5,[1,100/255]],["scale",.5,.5,[1,5/6],l.mf],["opacity",.5,.5,[100/255,1]]]:n==i.TEETER?L=[["rotate",0,1/8,[-10],l.df],["rotate",1/8,1/8,[10],l.df],["rotate",.25,1/8,[10],l.df],["rotate",3/8,1/8,[-10],l.df],["rotate",.5,1/8,[-10],l.df],["rotate",5/8,1/8,[10],l.df],["rotate",.75,1/8,[10],l.df],["rotate",7/8,1/8,[-10],l.df]]:n==i.SPIN?C==s.CLOCKWISE?L=[["rotate",0,1,[360],l.df]]:C==s.COUNTER_CLOCKWISE&&(L=[["rotate",0,1,[-360],l.df]]):n==i.FADE_OUT?L=[["opacity",0,1,[1,0],l.he,c],["opacity",1,0,[0,1]]]:n==i.FLY_OUT?L=[["position",0,1,[b,C,!0],l.pf,c,d.Gi,!0]]:n==i.FLOAT_OUT?C==s.BOTTOM?L=[["translateY",0,1,[100],l.df,c],["translateY",1,0,[-100],l.df],["opacity",0,1,[1,0],l.he,c],["opacity",1,0,[0,1]]]:C==s.TOP&&(L=[["translateY",0,1,[-100],l.df,c],["translateY",1,0,[100],l.df],["opacity",0,1,[1,0],l.he,c],["opacity",1,0,[0,1]]]):n==i.PEEK_OUT?k(L,!1,C,!0):n==i.WIPE_OUT?k(L,!0,C,!0):n==i.ZOOM_OUT?L=[["scale",0,1,[1,1e-4],l.mf,c],["opacity",0,1,[1,0],l.he,c],["scale",1,0,[1e4,1e4],l.mf],["opacity",1,0,[0,1]]]:n==i.SHRINK_TURN_OUT?L=[["rotate",0,1,[90],l.df,c],["opacity",0,1,[1,0],l.he,c],["scale",0,1,[1,1e-4],l.mf,c],["rotate",1,0,[-90],l.df],["opacity",1,0,[0,1]],["scale",1,0,[1e4,1e4],l.mf]]:n==i.SWIVEL_OUT?L=[["opacity",0,1,[1,0],l.he,c],["scaleX",0,.2,[1,1e-4],l.mf,c],["scaleX",.2,.2,[1,-1e4],l.mf,c],["scaleX",.4,.2,[1,-1e-4],l.mf,c],["scaleX",.6,.2,[1,1e4],l.mf,c],["scaleX",.8,.2,[1,1e-4],l.mf,c],["opacity",1,0,[0,1]],["scaleX",1,0,[1e4,1e4],l.mf]]:n==i.BOUNCE_OUT?L=[["translateX",0,1,[150],l.df],["translateY",0,1,[250],l.df,o.outBounce],["opacity",.95,1,[1,0]],["translateX",1,0,[-150],l.df],["translateY",1,0,[-250],l.df],["opacity",1,0,[0,1]],["scaleY",7/22,1/22,[1,.8],l.mf],["scaleY",8/22,1/22,[1,1.25],l.mf],["scaleY",15/22,1/22,[1,.9],l.mf],["scaleY",16/22,1/22,[1,1/.9],l.mf],["scaleY",19/22,1/22,[1,.95],l.mf],["scaleY",20/22,1/22,[1,1/.95],l.mf]]:n==i.SHAPE_OUT?y(L,!0):n==i.CONTRACT_OUT?L=[["scaleX",0,1,[1,.8],l.mf,c],["opacity",0,1,[1,0],l.he,c],["scaleX",1,0,[1.25,1.25],l.mf],["opacity",1,0,[0,1]]]:n==i.SPINNER_OUT?L=[["rotate",0,1,[360],l.df,c],["opacity",0,1,[1,100/255],l.he,c],["opacity",1,0,[100/255,1]]]:n==i.STRETCH_OUT?L=[["scaleX",0,1,[1,1.5],l.mf,c],["opacity",0,1,[1,0],l.he,c],["scaleX",1,0,[2/3,2/3],l.mf],["opacity",1,0,[0,1]]]:n==i.COLLAPSE_OUT?L=[["scaleX",0,1,[1,1e-4],l.mf,c],["scaleX",1,0,[1e4,1e4],l.mf]]:n>=i.MOTION_PATH_START&&n<=i.MOTION_PATH_END?L=[["position",0,1,[v,w.path[0],w.path[1]],l.he,f,d.Gi]]:n==i.GESTURE_PROGRESS?L=[["geProgress",0,1,[0,100]]]:n==i.TIMER_START?L=[["timerState",0,1,[!1,!0],l.he,f,d.Xi]]:n==i.MEDIA_PLAY?L=[["mediaState",0,0,["stopped","playing"],l.he,f,d.Xi]]:n==i.MEDIA_STOP?L=[["mediaState",1,0,["playing","stopped"],l.he,f,d.Xi]]:n==i.MEDIA_SEEK&&(L=[["mediaSeek",0,1,[0,1],l.he,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.he,f,d.Xi),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.he,f,d.Xi),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.he,f,d.Xi);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.he,f,d.Xi),p(W,N.listItems[T],"listStyleType",$,0,["none",X],l.he,f,d.Xi);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.he,f,d.Xi);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.he,f,d.Xi),p(W,G[T],z,$,0,["",X],l.he,f,d.Xi)}}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.he,f,d.Xi);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.he,f,d.Gi),T=0,x=P.length;T<x;++T)p(W,P[T],"resetTransform",$,0,["",""],l.he,f,d.Xi)}}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.he,u):o==s.LEFT?x(m,b,"translateX",a,0,1,[-p.width,0],l.he,u):o==s.RIGHT?x(m,b,"translateX",a,0,1,[p.width,0],l.he,u):o==s.TOP&&x(m,b,"translateY",a,0,1,[-p.height,0],l.he,u),o==s.BOTTOM?x(m,w,"translateY",a,0,1,[0,-v.height],l.he,u):o==s.LEFT?x(m,w,"translateX",a,0,1,[0,v.width],l.he,u):o==s.RIGHT?x(m,w,"translateX",a,0,1,[0,-v.width],l.he,u):o==s.TOP&&x(m,w,"translateY",a,0,1,[0,v.height],l.he,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.he,u):o==s.LEFT?x(m,b,"clipRight",a,0,1,g?[p.width,0]:[0,p.width],l.he,u):o==s.RIGHT?x(m,b,"clipLeft",a,0,1,[p.width,0],l.he,u):o==s.TOP?x(m,b,"clipBottom",a,0,1,g?[p.height,0]:[0,p.height],l.he,u):o==s.BOTTOM_LEFT?(x(m,b,"clipTop",a,0,1,[p.height,0],l.he,u),x(m,b,"clipRight",a,0,1,g?[p.width,0]:[0,p.width],l.he,u)):o==s.BOTTOM_RIGHT?(x(m,b,"clipTop",a,0,1,[p.height,0],l.he,u),x(m,b,"clipLeft",a,0,1,[p.width,0],l.he,u)):o==s.TOP_LEFT?(x(m,b,"clipBottom",a,0,1,g?[p.height,0]:[0,p.height],l.he,u),x(m,b,"clipRight",a,0,1,g?[p.width,0]:[0,p.width],l.he,u)):o==s.TOP_RIGHT&&(x(m,b,"clipBottom",a,0,1,g?[p.height,0]:[0,p.height],l.he,u),x(m,b,"clipLeft",a,0,1,[p.width,0],l.he,u)),x(m,b,"resetClip",a,1,0,["",""],l.he,f,d.Xi)}else h==T.ZOOM?o==s.IN?(x(m,b,"scale",a,0,1,[0,1],l.mf,u),x(m,b,"opacity",a,0,1,[0,1],l.he,u)):o==s.OUT&&(x(m,b,"scale",a,0,1,[2,1],l.mf,u),x(m,b,"opacity",a,0,1,[0,1],l.he,u)):h==T.COVER?o==s.BOTTOM?x(m,b,"translateY",a,0,1,[p.height],l.pf,u):o==s.LEFT?x(m,b,"translateX",a,0,1,[-p.width],l.pf,u):o==s.RIGHT?x(m,b,"translateX",a,0,1,[p.width],l.pf,u):o==s.TOP?x(m,b,"translateY",a,0,1,[-p.height],l.pf,u):o==s.BOTTOM_LEFT?(x(m,b,"translateY",a,0,1,[p.height],l.pf,u),x(m,b,"translateX",a,0,1,[-p.width],l.pf,u)):o==s.BOTTOM_RIGHT?(x(m,b,"translateY",a,0,1,[p.height],l.pf,u),x(m,b,"translateX",a,0,1,[p.width],l.pf,u)):o==s.TOP_RIGHT?(x(m,b,"translateY",a,0,1,[-p.height],l.pf,u),x(m,b,"translateX",a,0,1,[p.width],l.pf,u)):o==s.TOP_LEFT&&(x(m,b,"translateY",a,0,1,[-p.height],l.pf,u),x(m,b,"translateX",a,0,1,[-p.width],l.pf,u)):h==T.UNCOVER?(i.cn(!0),o==s.BOTTOM?x(m,w,"translateY",a,0,1,[0,-v.height],l.he,c):o==s.LEFT?x(m,w,"translateX",a,0,1,[0,v.width],l.he,c):o==s.RIGHT?x(m,w,"translateX",a,0,1,[0,-v.width],l.he,c):o==s.TOP?x(m,w,"translateY",a,0,1,[0,v.height],l.he,c):o==s.BOTTOM_LEFT?(x(m,w,"translateY",a,0,1,[0,-v.height],l.he,c),x(m,w,"translateX",a,0,1,[0,v.width],l.he,c)):o==s.BOTTOM_RIGHT?(x(m,w,"translateY",a,0,1,[0,-v.height],l.he,c),x(m,w,"translateX",a,0,1,[0,-v.width],l.he,c)):o==s.TOP_RIGHT?(x(m,w,"translateY",a,0,1,[0,v.height],l.he,c),x(m,w,"translateX",a,0,1,[0,-v.width],l.he,c)):o==s.TOP_LEFT&&(x(m,w,"translateY",a,0,1,[0,v.height],l.he,c),x(m,w,"translateX",a,0,1,[0,v.width],l.he,c))):h==T.REVEAL?(x(m,b,"opacity",a,0,1,[0,1]),x(m,b,"translateX",a,0,1,[20,0],l.he,u),x(m,b,"translateY",a,0,1,[5,0],l.he,u),x(m,w,"opacity",a,0,1,[1,0]),x(m,w,"translateX",a,0,1,[0,-20],l.he,c),x(m,w,"translateY",a,0,1,[0,-5],l.he,c)):h==T.FLY_THROUGH&&(o==s.OUT?x(m,w,"scale",a,0,1,[1,.5],l.mf):o==s.IN&&x(m,w,"scale",a,0,1,[1,1.5],l.mf),x(m,w,"opacity",a,0,1,[1,0]),o==s.OUT?x(m,b,"scale",a,0,1,[1.5,1],l.mf):o==s.IN&&x(m,b,"scale",a,0,1,[.5,1],l.mf),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.Jf={responsive:!1,slideWidth:500,slideHeight:800},this.Ue=!1,this.Zf=[],this.il=[],this.je=1,this.Ia=null,this.Is=null,this.sl=null,this.el=null,this.nl=null,this.hl=null,this.rl=null,this.al=null,this.ol="",this.ul=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.ul,e);var n=this;this.cl={mode:s.AUTOFIT,prevMode:s.AUTOFIT,register:function(){var e=this;this.fl=function(){var h=t.fullscreen.fullscreenElement();if(h){var r=i(n.ol)[0];h==r&&(i(r).addClass("ap-fullscreen"),requestAnimationFrame(function(){n.layout()}))}else i(n.ol).removeClass("ap-fullscreen"),e.mode==s.FULLSCREEN?e.changeMode(e.prevMode):n.layout()},t.fullscreen.addEventListener("fullscreenchange",this.fl,!1)},unregister:function(){t.fullscreen.removeEventListener("fullscreenchange",this.fl,!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.ol)[0]):t.fullscreen.fullscreenElement()?t.fullscreen.exitFullscreen():n.layout()}}}},container:function(){return i(this.ol)},stage:function(){return i(".ap-stage",i(this.ol))},canvas:function(){return i(".ap-canvas",i(this.ol))},contentArea:function(){return i(".ap-content-area",i(this.ol))},sidebar:function(){return i(".ap-side-bar",i(this.ol))},sidebarExpand:function(){return i(".ap-side-bar-expand",i(this.ol))},companyLogo:function(){return i(".ap-company-logo",i(this.ol))},presenterInfo:function(){return i(".ap-presenter-info",i(this.ol))},tocContainer:function(){return i(".ap-toc-container",i(this.ol))},resourcesContainer:function(){return i(".ap-resources-container",i(this.ol))},topbar:function(){return i(".ap-toolbar-top",i(this.ol))},bottombar:function(){return i(".ap-toolbar-bottom",i(this.ol))},toolbar:function(){return this.bottombar()},showToc:function(t){this.sl&&(t?(this.sl.show(),this.sl.scrollToCurrentSlide()):this.sl.hide(),2==this.Ia.TocStyle&&this.layout())},tocVisible:function(){return!(!this.sl||!this.sl.isShow())},showSidebar:function(t){t?(this.sidebar().show(),this.sidebarExpand().attr("sidebar-show",!0),this.tocVisible()&&this.sl.scrollToCurrentSlide()):(this.sidebar().hide(),this.sidebarExpand().attr("sidebar-show",!1)),this.layout(),t&&"false"===this.sidebarExpand().attr("data-value")&&this.Pn(!0,!0)},sidebarVisible:function(){var t=this.sidebar();return t&&"none"!=t.css("display")},showResources:function(t){this.al&&(t?this.al.show():this.al.hide())},resourcesVisible:function(){return this.al&&this.al.isShow()},autoHidePlayerBar:function(t){0==arguments.length?(this.nl&&this.nl.autoHide(),this.el&&this.el.autoHide()):(this.nl&&this.nl.isAutoHide()||this.el&&this.el.isAutoHide())!=t&&(this.nl&&this.nl.autoHide(t),this.el&&this.el.autoHide(t),this.layout())},showTopbar:function(t){this.nl&&(t?this.nl.show():this.nl.hide(),this.layout())},topbarVisible:function(){return this.nl&&this.nl.visible()},showBottombar:function(t){this.el&&(t?this.el.show():this.el.hide(),this.layout())},bottombarVisible:function(){return this.el&&this.el.visible()},showToolbar:function(t){this.showBottombar(t)},toolbarVisible:function(){return this.bottombarVisible()},isAutoFit:function(){return this.cl.mode==s.AUTOFIT||this.cl.mode==s.FULLSCREEN},getMaxContentSize:function(){var t,s,e,n,h,r,a=this.Ia.SideBarPos,o=this.topbar(),u=this.bottombar(),c=this.sidebar(),f=i(this.ol),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.ll&&r>this.ll&&(r=this.ll),{width:r,height:h,maxContainerWidth:n}},setMaxContentWidth:function(t){this.ll=t},setSlideSize:function(i,s){this.Jf.slideWidth===i&&this.Jf.slideHeight===s||(t.logDebug("Change slide size from "+this.Jf.slideWidth+"x"+this.Jf.slideHeight+" to "+i+"x"+s),this.Jf.slideWidth=i,this.Jf.slideHeight=s,this.layout())},getContainerFitRect:function(){var t,s,e,n,h,r,a,o,u=this.Ia.SideBarPos,c=this.topbar(),f=this.bottombar(),l=this.sidebar(),d=this.contentArea(),p=i(this.ol),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}},dl:function(){var t=i("<div>").css({visibility:"hidden",width:100,height:100,overflow:"scroll"}).appendTo(i(this.ol)),s=i("<div>").css({width:"100%"}).appendTo(t).outerWidth();return t.remove(),100-s},layout:function(){if(this.Ue){var t,e,n,h,r,a,o,u,c,f=this.Jf.slideWidth,l=this.Jf.slideHeight,d=this.Ia.SideBarPos,p=this.getMaxContentSize(),v=this.stage(),m=this.canvas(),b=this.contentArea(),w=this.sidebar(),g=this.sidebarExpand(),k=this.topbar(),y=this.bottombar(),_=i(this.ol),T=parseInt(this.contentArea().css("padding-left")),x=this.cl.mode,S=0==this.Ia.PlayerSize,E=this.dl(),M=E;if(this.Jf.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.je=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.je=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.je=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.je=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==k.length||"none"==k.css("display")?0:k.outerHeight(!0),r=0==y.length||"none"==y.css("display")?0:y.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?(k.css({left:0,top:0}).outerWidth(_.width()),y.css({left:0,top:_.height()-r}).outerWidth(_.width())):(k.css({left:o,top:0}).outerWidth(a),y.css({left:o,top:h+u}).outerWidth(a));var I=this.Ia.SideBarWidth;a=v.width()+I+(I>0?3:2)*T+E,I<=2*(t-I-16)||a<_.width()?"none"!=g.css("display")&&this.Pn(!0):I>2*t?this.Pn(!1):this.Pn(),this.pl=this.getContainerFitRect(),this.rl&&this.rl.layout(this.pl),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.Ue=!0,this.ol=s,this.Ia=r,this.Jf=o,this.Jf.responsive&&(t.fullscreen.fullscreenEnabled()||(this.Ia.ShowDisplayModeBtn=!1)),this.Mo=o.playerIcons,this.vl=o.playbackRates?o.playbackRates:[.5,1,1.5,2],this.Zf=[],this.il=[],this.ml=n,this.Is=new t.Locale(this.Jf.language,this.Jf.textDir),this.nl=""!=u?new t.RLToolbar(this,u,!0):null,this.el=""!=c?new t.RLToolbar(this,c,!1):null,this.contentArea().append(l),0==r.TocStyle||0==this.tocContainer().length?(this.sl=null,this.tocContainer().remove()):(1==r.TocStyle&&(this.tocContainer().appendTo(this.container()),this.tocContainer().hide()),this.sl=new t.RLToc(this,e,n),this.bl=function(){this.tocContainer()&&1==r.TocStyle&&this.tocVisible()&&this.sl&&this.wl()},i(this).on("ui:ap-layout",this.bl)),!h||h.length<=0||0==this.resourcesContainer().length?(this.al=null,this.resourcesContainer().remove()):(this.resourcesContainer().appendTo(this.container()),this.resourcesContainer().hide(),this.al=new a(this,h),this.gl=function(){var t=this.resourcesContainer();if(t&&this.al){var e=i(".ap-tool-resources",s);e&&this.kl(e,t,400,300)}},i(this).on("ui:ap-layout",this.gl)),!1===r.ShowTopBar&&this.showTopbar(!1),r.AutoHidePlayerBar){if(!this.yl){this.yl=new f(this.container()),this.yl.appendTo(this.container());var d=this;this.yl.onClick(function(){var t=d.nl&&d.nl.isAutoHide()||d.el&&d.el.isAutoHide();d.autoHidePlayerBar(!t)})}this.autoHidePlayerBar()}if(this._l(),this.Tl(this.ol),this.cl.register(),this.cl.changeMode(this.Ia.DisplayMode),t.browser.macOS){var p=this;setTimeout(function(){p.layout()},100)}else this.layout()},_l:function(){var t=this,e=this.Is,n=i(this.ol),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.Jf.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.Zf;for(o=0,u=c.length;o<u;++o)c[o].setValue(a);void 0!==t.xl&&Math.round(a/1e3)==Math.round(this.xl/1e3)||(t.xl=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.il;for(e=0,n=h.length;e<n;++e)h[e].setValue(s)}),h.on("ui:ap-pause",function(){t.Sl=!0}),h.on("ap-toc",function(s,h){i(".ap-tool-toc",n).each(function(s){var n=i(this);t.sl&&("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.Jf.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.Jf.playMode&&t.stage().on("click",function(){h.trigger("ui:ap-pause")})},El:function(){"Demo"==this.Jf.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")},Ml:function(t){var s=this;return function(){i(s).trigger("ui:ap-speed",[t])}},Tl:function(t){var e,n,h=this,r=this.Jf.responsive,a=i(t),o=this.Is,c=h.vl?h.vl:[];for(this.Cl(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.Pl(n),a).on("click",h.Ml(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.Jf.multipleLanCCs&&h.Jf.multipleLanCCs.length>1?(h.Il(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.cl.changeMode(s.ACTUAL_SIZE)}),i(".ap-tool-autofit",a).on("click",function(){h.cl.changeMode(s.AUTOFIT)}),i(".ap-tool-fullscreen",a).on("click",function(){h.cl.changeMode(s.FULLSCREEN)}),i(".ap-tool-toc",a).on("click",function(){return i(h).trigger("ui:ap-toc"),1!=h.Ia.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.Rl(this),!1}),i('.ap-tool-displaymode[role="button"]',a).on("click",function(){return h.Jf.responsive?(h.cl.mode==s.FULLSCREEN?h.cl.changeMode(s.ACTUAL_SIZE):h.cl.changeMode(s.FULLSCREEN),!0):(h.Al(this),!1)}),i('.ap-tool-setting[role="button"]',a).on("click",function(){return h.Dl(this),!1}),i(".ap-tool-resources",a).on("click",function(){return i(h).trigger("ui:ap-resources"),h.kl(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.Pn(!1,!0):h.Pn(!0,!0)});for(var f=0,l=0;l<this.ml.length;++l)f+=this.ml[l].duration;i(".ap-tool-progress",a).each(function(s){var e={followMouse:!1,max:f,slideInfos:h.ml};e.thumbnailPrefixPath=h.Jf.resourceLocation+h.Jf.fileNamePrefix;var n=new u(i(this),h.Ia,e);n.Nl=t,h.Zf.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.Ia,{Navigation:!0}),{followMouse:!0});e.Nl=t,h.il.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.ml.length||0)),i(".ap-tool-projectname",a).html(h.Jf.projectName),i(".ap-tool-projectdesc",a).html(h.Jf.description),i(".ap-tool-displaymode",a).attr("data-value",r?"2":h.cl.mode),i(".ap-presenter-info",a).each(function(t){if(h.Ia.ShowAuthorInfo||h.Ia.ShowAuthorImage||h.Ia.ShowCompanyLogo||h.Ia.ShowAuthorVideo){if(h.Ia.ShowCompanyLogo&&h.Jf.companyLogo){var s=h.Jf.companyLogo[0],e=h.Jf.companyLogo[1],n=h.Jf.resourceLocation+h.Jf.fileNamePrefix+"res_"+s+"."+e;i(this).append('<div class="ap-company-logo"><img src="'+n+'" /></div>')}if(h.Ia.ShowAuthorImage&&h.Jf.authorImage){s=h.Jf.authorImage[0],e=h.Jf.authorImage[1],n=h.Jf.resourceLocation+h.Jf.fileNamePrefix+"res_"+s+"."+e;i(this).append('<div class="ap-presenter-image"><img src="'+n+'" /></div>')}h.Ia.ShowAuthorVideo&&i(this).append('<div class="ap-presenter-video"></div>'),h.Ia.ShowAuthorInfo&&(h.Jf.authorName&&i(this).append('<div class="ap-presenter-name">'+h.Jf.authorName+"</div>"),h.Jf.authorDesc&&i(this).append('<div class="ap-presenter-desc">'+h.Jf.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)})},Cl:function(t){var s,e,n,h,r=i(t),a=this.Is,o=this.Ia,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.Mo){for(var c='<div class="ap-button-icon">',f=n[3],l=0;l<f.length;++l)c+=this.Mo[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")}},Ol:function(t){var s,e=i(t),n=this.vl?this.vl:[];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.Pl(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.Zf;for(this.Zf=[],h=0,r=o.length;h<r;++h)(a=o[h]).Nl==t?(i(a).off("valueChanged"),a.destroy()):this.Zf.push(a);for(o=this.il,this.il=[],h=0,r=o.length;h<r;++h)(a=o[h]).Nl==t?(i(a).off("valueChanged").off("valueChanging"),a.destroy()):this.il.push(a)},destroy:function(){this.cl.unregister(),this.El(),this.Ol(this.ol),this.sl&&(this.sl.destroy(),this.sl=null),this.el&&(this.el.destroy(),this.el=null),this.nl&&(this.nl.destroy(),this.nl=null),this.al&&(this.al.destroy(),this.al=null),this.Ll(),this.contentArea().remove(),this.Ue=!1},appendTo:function(t){i(t).append(this.ul),this.Ue||i(this.ul).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.Is;this.rl&&this.rl.close();var a=this,o=new t.RLPopup(i,a);o.setOptions({isShowClose:s,overlay:!0,navItems:h,textDirection:a.Jf.textDir,closeText:r.text("Close")}),o.onShow(function(){a.rl=o,e&&e()}),o.onClose(function(){a.rl=void 0,n&&n()}),o.show(this.ol,this.pl)},showAbout:function(t,i,s){var e=[],n="",h=this.Is;""!=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.Is;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.rl&&s.rl.close(),i(s).trigger("ui:ap-lesson-resume")}),i("#BtnLessonRestart").on("click",function(){s.rl&&s.rl.close(),i(s).trigger("ui:ap-lesson-reset")})},null,e)},showUnmuteHintMsg:function(){var t,s;s=this.stage(),i(this.ol),s.append('<div id="UnmuteHint"><span>'+this.Is.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.Sl){n.Sl=!1,n.Fl&&clearTimeout(n.Fl),n.Ul&&clearTimeout(n.Ul),i(".ap-prez-state-btn",e).remove(),s='<div class="ap-prez-state-btn" data-animating="false">'+n.Mo[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.Fl=setTimeout(function(){r.setAttribute("data-animating","true"),n.Fl=void 0},100),n.Ul=setTimeout(function(){r.parentNode.removeChild(r),n.Ul=void 0},2e3)}}},kl:function(t,s,e,n){var h,r,a,o,u,c,f,l,d=this.container(),p=this.pl,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)},wl:function(){if(this.sl&&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.pl,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:""}))}},Yl:function(t,s,e){var n=this.container(),h=this;t.appendTo(n),t.attachEventHanlders(function(t){h.Tl(t)}),t.show(s,e,function(){t.detachEventHandlers(function(t){h.Ol(t)}),i(h).off("ui:ap-layout.hideMenu")}),i(h).on("ui:ap-layout.hideMenu",function(){t.destroy()})},Bl:function(t){return t.toFixed(1)+"x"},Pl:function(t){return"ap-tool-speed_"+t.toFixed(1).replace(".","_")},Rl:function(t){var s=this.Hl("mnuspeed");if(s)s.destroy();else{var e,n,h,r=i(t).attr("data-value"),a=this.vl?this.vl:[];for(r=void 0==r?1:parseFloat(r),s=new o("mnuspeed",this.Mo,this),e=0,n=a.length;e<n;++e)h=parseFloat(a[e]),s.addRadioMenuItem(this.Pl(h),this.Bl(h),r==h);this.Yl(s,t,!0)}},Al:function(i){var e="mnudisplaymode",n=this.Hl(e);if(n)n.destroy();else{var h=this.Is;(n=new o(e,this.Mo,this)).addRadioMenuItem("ap-tool-actualsize",h.text("ActualSize"),this.cl.mode==s.ACTUAL_SIZE),n.addRadioMenuItem("ap-tool-autofit",h.text("AutoFit"),this.cl.mode==s.AUTOFIT),t.fullscreen.fullscreenEnabled()&&n.addRadioMenuItem("ap-tool-fullscreen",h.text("FullScreen"),this.cl.mode==s.FULLSCREEN),this.Yl(n,i,!0)}},Il:function(t){var s="mnumultiplelanguagecc",e=this.Hl(s);if(e)e.destroy();else{var n=this.Is,h=this.Jf,r=h.multipleLanCCs,a=h.defautlLanguageCCIndex,u=(e=new o(s,this.Mo,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.Yl(e,t,!0)}},zl:function(t){return this.Xl?this.Xl.push(t):this.Xl=[t],this},Hl:function(t){if(this.Xl)for(var i=0;i<this.Xl.length;++i)if(this.Xl[i].id()==t)return this.Xl[i];return null},Gl:function(t){if(this.Xl){var i=this.Xl.indexOf(t);i>=0&&this.Xl.splice(i,1)}return this},Ll:function(){if(this.Xl)for(;this.Xl.length;)this.Xl[this.Xl.length-1].destroy();return this},Dl:function(e){var n="mnusetting",h=this.Hl(n);if(h)h.destroy();else{var r=this.container(),a=this.Is,u=this,c=this.Jf.responsive;h=new o(n,u.Mo,this);var f=[];u.Jf.multipleLanCCs&&u.Jf.multipleLanCCs.length>1&&(f=u.Jf.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.Jf.defautlLanguageCCIndex,d=new o("mnumultiplelanguagecc",u.Mo);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"),k=u.vl?u.vl:[];g=void 0==g?1:parseFloat(g);var y=new o("mnuspeed",u.Mo);for(y.addMenuHeaderItem(a.text("PlaybackSpeed")),v=0,b=k.length;v<b;++v)w=parseFloat(k[v]),y.addRadioMenuItem(u.Pl(w),u.Bl(w),g==w);h.addSubMenuItem(n,e.attr("title"),y);break;case"ap-tool-displaymode":if(c)t.fullscreen.fullscreenEnabled()&&(u.cl.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.Mo);_.addMenuHeaderItem(a.text("DisplayMode")),_.addRadioMenuItem("ap-tool-actualsize",a.text("ActualSize"),u.cl.mode==s.ACTUAL_SIZE),_.addRadioMenuItem("ap-tool-autofit",a.text("AutoFit"),u.cl.mode==s.AUTOFIT),t.fullscreen.fullscreenEnabled()&&_.addRadioMenuItem("ap-tool-fullscreen",a.text("FullScreen"),u.cl.mode==s.FULLSCREEN),h.addSubMenuItem(n,e.attr("title"),_)}}}})}),this.Yl(h,e,!0)}},Pn:function(t,s){if(!0!==this.Vl){var e=this.sidebar(),n=this.presenterInfo(),h=this.tocContainer(),r=this.sidebarExpand();if(0==arguments.length)return 1==this.Ia.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.Ia.TocStyle&&("false"!==h.attr("toc-show")&&h.show(),h.attr("sidebar-expand",!0)),e.attr("position",1==this.Ia.SideBarPos?"left":"right"),s)e.attr("collapse",!1),1==this.Ia.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.Ia.SideBarPos?"left":"right",title:this.Is.text("HideSidebar"),"data-value":"true"}),s||r.hide(),i(this).trigger("ui:ap-expand-sidebar",[!0]),this.Vl||(this.Vl=!0)}else n.hide(),2==this.Ia.TocStyle&&(h.hide(),h.attr("sidebar-expand",!1)),r.show(),e.attr({collapse:!0,position:1==this.Ia.SideBarPos?"left":"right"}),r.css("left",""),r.attr({"icon-type":1==this.Ia.SideBarPos?"right":"left",title:this.Is.text("ShowSidebar"),"data-value":"false"}),this.Vl||(this.Vl=!0);1==this.Vl&&(this.layout(),this.Vl=void 0)}},updateTocEntries:function(t){this.sl&&this.sl.updateEntries(t)}}),n=t.createClass({$init:function(t,i){this.Jf={isShowClose:!0,overlay:!0,navItems:[],textDirection:"ltr",closeText:"Close",showCallback:void 0,closeCallback:void 0},this.$l=null,this.Wl=null,this.jl=null,this.Ql=null,this.Kl=t,this.ql=i,this.ql&&this.ql.zl(this)},Jl: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.Jf.closeText+'"> \t\t\t\t\t\t\t</a> \t\t\t\t\t\t</div> \t\t\t\t\t</div>';this.$l=i(t),this.Wl=i(".ap-popup-close",this.$l),this.jl=i(".ap-popup-content",this.$l),"rtl"==this.Jf.textDirection&&(i(".ap-popup-content",this.$l).attr("dir",this.Jf.textDirection).css("text-align","right"),i(".ap-popup-footer",this.$l).attr("dir",this.Jf.textDirection).css("text-align","left")),this.jl.append(this.Kl);for(var s=0;s<this.Jf.navItems.length;++s)this.Jf.navItems[s]=i(this.Jf.navItems[s],this.$l)},Zl:function(){0!=this.Jf.overlay&&(this.Ql=i('<div class="ap-popup-hide ap-popup-overlay"></div>'))},setOptions:function(t){i.extend(this.Jf,t)},getDom:function(){return this.$l},show:function(t,s){this.ol=t,this.td=i(this.ol).attr("tabindex"),i(this.ol).attr("tabindex",1),s||(s={x:0,y:0,width:i(t).outerWidth(),height:i(t).outerHeight()}),this.Jl(),this.Zl(),i(this.ol).append(this.$l),0==this.Jf.isShowClose&&i(".ap-popup-footer",this.$l).hide(),this.$l.attr("role","dialog"),this.showOverlay(),this.layout(s),this.Jf.showCallback&&this.Jf.showCallback();var e=this,n=this.Jf.navItems,h=-1;this.Jf.isShowClose&&(this.Wl.click(function(){e.close()}),n.push(this.Wl),h=n.length-1,this.Wl.attr("tabindex","0"),this.Wl.focus()),i(this.ol).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.ol).focus()},showOverlay:function(){0!=this.Jf.overlay&&(i(this.ol).append(this.Ql),this.Ql.hide().addClass("ap-popup-overlayBG").fadeIn(200))},hideOverlay:function(){if(0!=this.Jf.overlay){var t=this;this.Ql.fadeOut(200,function(){t.Ql.removeClass("ap-popup-overlayBG"),t.Ql.addClass("ap-popup-hide"),t.Ql.remove()})}},close:function(){this.$l.remove(),this.hideOverlay(),this.Jf.closeCallback&&this.Jf.closeCallback(),i(this.ol).unbind("keydown.popup").unbind("focus.popup").unbind("mousedown.popup"),i(this.ol).attr("tabindex",this.td),this.ql&&this.ql.Gl(this)},onClose:function(t){this.Jf.closeCallback=t},onShow:function(t){this.Jf.showCallback=t},layout:function(t){this.Ql.width(t.width).height(t.height),this.Ql.css({left:t.x,top:t.y});var s=Math.min(.5*t.width,370),e=i(".ap-popup-content",this.$l).innerHeight()+i(".ap-popup-footer",this.$l).innerHeight()+10;this.$l.css({width:s,height:e});var n=t.x+(t.width-s)/2-20,h=t.y+(t.height-e)/2-20;this.$l.css({left:n,top:h})},destroy:function(){this.close()}}),h=t.createClass({$init:function(t){this.ah="",this.sd=-1,this.ed="",this.nd="",this.hd=0,this.ad=!0,this.Ro=t,this.od=[],this.ud=!1,this.ji=!1,this.$l=null},fd:function(){var t,i,s=this.od;for(this.ud=!0,this.ji=!1,t=0,i=s.length;t<i;++t)s[t].ud||(this.ud=!1),s[t].ji&&(this.ji=!0);this.$l&&this.$l.attr("data-status",this.ji?"current":this.ud?"completed":"incomplete"),this.Ro&&this.Ro.fd()},ld:function(){this.$l&&this.$l.attr("data-status",this.ji?"current":this.ud?"completed":"incomplete"),this.Ro&&this.Ro.fd()},setCompleted:function(t){this.ud=t,this.ld()},setCurrent:function(t){this.ji=t,this.ld()},getChildIndex:function(t){var i,s,e=this.od;for(i=0,s=e.length;i<s;++i)if(e[i].ah==t.ah)return i;return-1},hasChildren:function(){return this.od.length>0},isSlide:function(){return this.sd>=0},getExpandIconDom:function(){return i(".ap-toc-entry-icon",this.$l)}}),r=t.createClass({$init:function(t,s,e){this.ql=t,this.pd=[],this.vd=null,this.bd=null,this.wd=t.tocContainer(),this.ol=t.ol,this.Is=t.Is,this.gd={},this.ml=e;for(var n=0;n<e.length;++n)e[n].thumb&&(this.gd[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.Is.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.wd.append(h),this.kd=i(".ap-toc",this.wd),this.yd=i(".ap-tool-toc-close",this.wd),this.yd.append(t.Mo.closepane),this.yd.attr("role","button").attr("title",this.Is.text("Close")),this.yd.on("click",function(){t.tocVisible()&&i(t).trigger("ui:ap-toc")}),2==t.Ia.TocStyle&&(this.yd.hide(),this.wd.attr("toc-show",!0)),this._d(s),n=0;n<this.pd.length;++n)this.Td(this.pd[n],0);this.zo(),this.xd();var r=this;this.Sd=function(t,i,s,e){i<0||s<0||r.setCurrentEntry(s)},this.Ed=function(t,i,s){r.setCompletedEntry(i,s)},i(t).on("ap-progress.toc",this.Sd),i(t).on("ap-slideCompleted.toc",this.Ed)},updateEntries:function(t){this.Md(),this.pd=[],this.vd=null,this.bd=null,this.kd.empty(),this._d(t);for(var i=0;i<this.pd.length;++i)this.Td(this.pd[i],0);if(void 0!=this.Cd){var s=this.Cd;this.Cd=void 0,this.setCurrentEntry(s)}this.zo(),this.xd()},Pd: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.Pd(t.c[s],i)},xd:function(){var t,i,s,e=this.ql;if(e)if(1==e.Ia.ShowMaxTocLevel)for(t=0,i=this.pd.length;t<i;++t)s=this.pd[t],this.Id(s);else for(t=0,i=this.pd.length;t<i;++t)s=this.pd[t],this.Rd(s)},destroy:function(){var t=i(this.ql);this.yd.off("click"),this.yd=null;var s=[];this.Ad(s,null);for(var e=0;e<s.length;++e){var n=s[e];n.isSlide()?n.$l.off("click"):n.getExpandIconDom().off("click"),n.$l.off("focusin").off("focusout")}t.off("ap-progress.toc",this.Sd).off("ap-slideCompleted.toc",this.Ed),this.pd=[],this.vd=null,this.bd=null,this.kd.off("focus").off("focusout").off("keydown"),this.wd.remove(),this.wd=null,this.kd.remove(),this.kd=null},show:function(){if(this.wd){var t=this.wd.attr("sidebar-expand");void 0!=t&&"true"!=t||this.wd.show(),2==this.ql.Ia.TocStyle&&this.wd.attr("toc-show",!0);var s=this;1==this.ql.Ia.TocStyle&&(this.ql.wl(),i(document).unbind("click.TocPane"),setTimeout(function(){i(document).bind("click.TocPane",function(t){i(t.target).closest(".ap-toc-container").is(s.wd)||(i(document).unbind("click.TocPane"),i(s.ql).trigger("ui:ap-toc"))})},100))}},hide:function(){this.wd&&(this.wd.hide(),2==this.ql.Ia.TocStyle&&this.wd.attr("toc-show",!1),1==this.ql.Ia.TocStyle&&i(document).unbind("click.TocPane"))},isShow:function(){if(this.wd&&this.wd.length>0){var t=this.wd.attr("toc-show");return 2!=this.ql.Ia.TocStyle||void 0==t?"none"!=this.wd.css("display"):"true"==t}return!1},Dd:function(t){for(var i=0;i<this.pd.length;++i)if(this.pd[i].ah==t.ah)return i;return-1},Ad:function(t,i){var s;s=null==i?this.pd:i.od;for(var e=0;e<s.length;++e)t.push(s[e]),this.Ad(t,s[e])},Nd:function(t,i){var s;s=null==i?this.pd:i.od;for(var e=0;e<s.length;++e){var n=s[e];if(n.sd==t)return n;if(n.hasChildren()){var h=this.Nd(t,n);if(null!=h)return h}}return null},Od:function(t){this.vd&&(this.vd.setCurrent(!1),this.vd=null),t&&(this.vd=t,this.vd.setCurrent(!0))},Ld:function(t){null!=this.bd&&(this.bd.$l.attr("tabindex","-1"),this.bd=null),t.$l.attr("tabindex","0"),t.$l.focus()},Fd:function(t,i){var s,e=i.od;for(s=0;s<e.length;++s)this.Fd(!1,e[s]);t||i.$l.hide()},Ud:function(t,i){t||i.$l.show();var s,e=i.od;if("true"==i.$l.attr("aria-expanded")||t)for(s=0;s<e.length;++s)this.Ud(!1,e[s])},Id:function(t){t.$l.attr("aria-expanded","true"),t.ad=!0,this.Ud(!0,t)},Rd:function(t){t.$l.attr("aria-expanded","false"),t.ad=!1,this.Fd(!0,t)},Yd:function(t){var i;return null==t.Ro?(i=this.Dd(t))>=0&&i<this.pd.length-1?this.pd[i+1]:null:(i=t.Ro.getChildIndex(t))>=t.Ro.od.length-1?this.Yd(t.Ro):t.Ro.od[i+1]},Bd:function(t){if(t.ad&&t.hasChildren()){var i=t.od[t.od.length-1];return this.Bd(i)}return t},Hd:function(){if(null!=this.bd){var t=null;null!=(t=this.bd.ad&&this.bd.hasChildren()?this.bd.od[0]:this.Yd(this.bd))&&(this.bd.$l.blur(),this.bd=null,t.$l.focus())}},zd:function(){if(null!=this.bd){var t,i=null;if(null==this.bd.Ro)(t=this.Dd(this.bd))>0&&(i=this.Bd(this.pd[t-1]));else i=(t=this.bd.Ro.getChildIndex(this.bd))>0?this.Bd(this.bd.Ro.od[t-1]):this.bd.Ro;null!=i&&(this.bd.$l.blur(),this.bd=null,i.$l.focus())}},Xd:function(t){var i=0;if(t.isSlide())i+=t.hd;else for(var s=t.od,e=0;e<s.length;++e)i+=this.Xd(s[e]);return i},Gd:function(t,i,s,e){t.ed=i.t,t.nd=i.n,t.sd=i.s,t.Vd=i.ti,i.d?t.hd=i.d:t.hd=0,t.ah=""==s?e+"":s+"-"+e;var n=i.c;if(null!=n&&n.length>0){t.od.length=0;for(var r=0;r<n.length;++r){var a=n[r],o=new h(t);this.Gd(o,a,t.ah,r+1),t.od.push(o)}}},_d:function(t){this.pd.length=0;for(var i=this.ml,s=0,e=i.length||0;s<e;++s)for(var n=0,r=t.length;n<r;++n)this.Pd(t[n],i[s]);for(s=0;s<t.length;++s){var a=t[s],o=new h(null);this.pd.push(o),this.Gd(o,a,"",s+1)}},Td:function(s,e){var n,h,r=e+1,a=10*r,o=this.ql,u=o.Mo,c=o.Ia.TocShowStateIcons,f=o.Ia.TocShowThumbnails,l=o.Ia.TocShowDuration;h='<tr class="ap-toc-entry" role="row" tabindex="-1" aria-level="'+r+'" data-status="incomplete"',s.hasChildren()?h+=' aria-expanded="'+s.ad+'">':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.gd[s.sd])&&(h+='<img class="ap-toc-entry-thumbnail" src="'+(o.Jf.resourceLocation+o.Jf.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.nd&&s.nd.length>0&&(h+='<div style="display:table-cell;">'+s.nd+"&nbsp;</div>"),h+='<div style="display:table-cell;">'+s.ed+"</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.Xd(s))+"</td>"),h+="</tr>",s.$l=i(h),this.kd.append(s.$l);for(var d=0;d<s.od.length;++d)this.Td(s.od[d],r)},zo:function(){var t=[];this.Ad(t,null);for(var s=this,e=0;e<t.length;++e){!function(t){t.isSlide()?t.$l.on("click",function(){i(s.ql).trigger("ui:ap-showSlide",[t.sd])}):t.getExpandIconDom().on("click",function(){t.ad?s.Rd(t):s.Id(t)}),t.$l.on("focusin",function(){s.kd.attr("tabindex",-1),t.$l.attr("tabindex","0"),s.bd=t}),t.$l.on("focusout",function(){t.$l.attr("tabindex","-1"),s.bd=null})}(t[e])}this.kd.on("focus",function(){var t=[];s.Ad(t),t.length>0&&(s.Ld(t[0]),s.kd.attr("tabindex",-1))}).on("focusout",function(){null==s.bd&&s.kd.attr("tabindex",0)}).on("keydown",function(t){switch(t.which){case 13:if(null!=s.bd)return i(s.ql).trigger("ui:ap-showSlide",[s.bd.sd]),!1;break;case 39:if(null!=s.bd)return 0==s.bd.ad&&s.bd.hasChildren()?s.Id(s.bd):s.bd.hasChildren()&&s.Hd(),!1;break;case 37:if(null!=s.bd)return s.bd.ad&&s.bd.hasChildren()?s.Rd(s.bd):null!=s.bd.Ro&&s.Ld(s.bd.Ro),!1;break;case 40:if(null!=s.bd)return s.Hd(),!1;break;case 38:if(null!=s.bd)return s.zd(),!1}})},Md:function(){var t=[];this.Ad(t,null);for(var i=0;i<t.length;++i){var s=t[i];s.isSlide()?s.$l.off("click"):s.getExpandIconDom().off("click"),s.$l.off("focusin").off("focusout")}this.pd=[],this.vd=null,this.bd=null,this.kd.off("focus").off("focusout").off("keydown")},setCompletedEntry:function(t,i){var s=this.Nd(t);null!=s&&s.setCompleted(i)},setCurrentEntry:function(t){if(void 0===this.Cd||this.Cd!==t){var i=this.Nd(t);null!=i&&this.Od(i);var s=this.ql;this.Cd=t,s.Ia.AutoScroll&&this.scrollToCurrentSlide()}},scrollToCurrentSlide:function(){if(null!=this.vd){var t=i(this.ol),s=i(".ap-toc-content-wrapper",t);s[0].scrollTop+s[0].offsetHeight<this.vd.$l[0].offsetTop+this.vd.$l[0].offsetHeight?s[0].scrollTop=this.vd.$l[0].offsetTop+this.vd.$l[0].offsetHeight-s[0].clientHeight:this.vd.$l[0].offsetTop<s[0].scrollTop&&(s[0].scrollTop=this.vd.$l[0].offsetTop)}}}),a=t.createClass({$init:function(t,s){this.ql=t,this.$d=-1,this.Wd=t.resourcesContainer(),this.Wd.hide(),this.ol=t.ol,this.jd=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.Wd.append(e),this.Qd=i(".ap-resources-list",this.Wd);for(var n=0;n<s.length-1;++n)this.Td(s[n]);this.pd=i("li",this.Qd).toArray(),this.zo()},destroy:function(){for(var t=0;t<this.pd.length;++t)i(this.pd[t]).off("focusin").off("focusout");this.Wd.off("keydown"),this.Wd.remove(),this.Wd=null,this.pd=[]},zo:function(){var t=this,s=this.Wd,e=this.pd;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.$d])&&i(n).attr("tabindex",-1),0==t.$d?t.$d=e.length-1:t.$d--,n=e[t.$d],i(n).focus().attr("tabindex",0),!1):40==s.which?((n=e[t.$d])&&i(n).attr("tabindex",-1),t.$d==e.length-1?t.$d=0:t.$d++,n=e[t.$d],i(n).focus().attr("tabindex",0),!1):void 0:((n=e[t.$d])&&i("a",i(n))[0].click(),!1)});for(var n=0;n<this.pd.length;++n)i(this.pd[n]).on("focusin",function(){s.attr("tabindex",-1),i(this).attr("tabindex",0)}).on("focusout",function(){i(this).attr("tabindex",-1)})},show:function(){this.Kd="click.ResourcesPane";var t=this;i(document).bind(t.Kd,function(s){i(s.target).closest(".ap-resources-container").is(t.Wd)||(t.hide(),i(document).unbind(t.Kd))}),t.Wd.show(),t.Wd.attr("tabindex",-1),this.$d<0&&(this.$d=0);var s=this.pd[this.$d];s?i(s).attr("tabindex",0).focus():t.Wd.attr("tabindex",0).focus()},hide:function(){this.Kd&&i(document).off(this.Kd),this.Wd&&this.Wd.hide()},isShow:function(){return this.Wd&&this.Wd.length>0&&"none"!=this.Wd.css("display")},Td:function(t){if(!(t.length<=1)){var i='<li><a href="';2==t.length?i+=t[1]:(i+=this.ql.Jf.resourceLocation+this.ql.Jf.fileNamePrefix+"res_"+t[1]+"."+t[2],i+='" download="'+t[0]+"."+t[2]),i+='" target="_blank">'+t[0],i+="</a></li>",this.Qd.append(i)}}}),o=t.createClass({$init:function(t,s,e){this.Mo=s,this.Ro=null,this.qd=[],this.Jd=null,this.$l=i('<div id="'+t+'" class="ap-menu" tabindex="0" role="menu"></div>'),this.$l.css("transform","translateZ(0px)"),this.$l.hide(),this.$d=-1,this.zo(),this.Kd=null,this.Zd=null,this.ql=e,this.ql&&this.ql.zl(this)},id:function(){return this.$l[0].id},destroy:function(){null!=this.Kd&&(i(document).unbind(this.Kd),this.Kd=null),this.tp&&(this.tp(),this.tp=null);for(var t=0;t<this.qd.length;++t)this.qd[t].submenu&&this.qd[t].submenu.destroy(),this.qd[t].dom.off("click").off("focusin").off("focusout").off("keydown");this.qd=[],this.$l&&(this.$l.off("keydown"),this.$l.remove(),this.$l=null),this.Mo=null,this.ql&&this.ql.Gl(this)},zo:function(){var t=this;this.$l.on("keydown",function(i){var s,e=t.qd;return 13!=i.which&&32!=i.which||i.altKey||i.shiftKey||i.ctrlKey?27==i.which?(t.Ro?(t.hide(),t.Ro.show(t.Ro.Zd,!0,t.Ro.tp)):t.destroy(),!1):9==i.which?(t.Ro?(t.hide(),t.Ro.show(t.Ro.Zd,!0,t.Ro.tp)):t.destroy(),!1):37==i.which?(t.Ro&&(t.hide(),t.Ro.show(t.Ro.Zd,!0,t.Ro.tp)),!1):39==i.which?((s=e[t.$d])&&s.submenu&&s.dom.trigger("click"),!1):38==i.which?((s=e[t.$d])&&s.dom.attr("tabindex",-1),0==t.$d?t.$d=e.length-1:t.$d--,(s=e[t.$d].dom).focus(),s.attr("tabindex",0),!1):40==i.which?((s=e[t.$d])&&s.dom.attr("tabindex",-1),t.$d==e.length-1?t.$d=0:t.$d++,(s=e[t.$d].dom).focus(),s.attr("tabindex",0),!1):void 0:((s=e[t.$d])&&s.dom.trigger("click"),!1)})},ip:function(){for(var t=this;t.Ro;)t=t.Ro;return t},ep:function(t,i,s,e){var n=this;t.focusin(function(){n.$l.attr("tabindex",-1),t.attr("tabindex",0)}).focusout(function(){t.attr("tabindex",-1)}),this.$l.append(t),this.qd.push({dom:t,id:i,state:s,submenu:e})},appendTo:function(t){this.ol=t,this.ol.append(this.$l);for(var i=0;i<this.qd.length;++i)this.qd[i].submenu&&this.qd[i].submenu.appendTo(t)},attachEventHanlders:function(t){t(this.$l.get(0));for(var i=0;i<this.qd.length;++i)this.qd[i].submenu&&t(this.qd[i].submenu.$l.get(0))},detachEventHandlers:function(t){t(this.$l.get(0));for(var i=0;i<this.qd.length;++i)this.qd[i].submenu&&t(this.qd[i].submenu.$l.get(0))},np:function(t){if(this.$l&&this.$l.has(t).length>0)return this;for(var i=0;i<this.qd.length;++i)if(this.qd[i].submenu){var s=this.qd[i].submenu.np(t);if(s)return s}return null},show:function(t,s,e){this.Zd=t;var n,h,r,a,o,u,c,f,l=i(t),d=this.$l,p=this.ol;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.Ro){var m=this;m.Kd="click.RLMenu"+this.id(),i(document).bind(m.Kd,function(e){var n=i(e.target).closest(".ap-menu-item");if("menuitemcheckbox"!=n.attr("role")){var h=m.np(e.target);if(n.hasClass("ap-tool-menu-back")&&h&&h.Ro)return h.hide(),void h.Ro.show(t,s,h.Ro.tp);if("true"==n.attr("aria-haspopup")&&h)for(var r=0;r<h.qd.length;++r)if(h.qd[r].dom.get(0)==n.get(0))return h.hide(),void h.qd[r].submenu.show(t,s);m.destroy()}})}if(-1==this.$d&&(this.$d=0),s){d.attr("tabindex",-1);var b=this.qd[this.$d];b?(b.dom.attr("tabindex",0),b.dom.focus()):(d.attr("tabindex",0),d.focus())}else d.attr("tabindex",0),d.focus();this.tp=e},hide:function(){this.$l.attr("tabindex",-1),this.$l.hide()},isShown:function(){return"none"!=this.$l.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.ep(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.ep(n,t,e),n},addRadioMenuItem:function(t,s,e){var n=this.Mo,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.ep(h),h},addSubMenuItem:function(t,s,e){var n=this.Mo,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.Ro=this,this.ep(h,t,!0,e),h},addMenuHeaderItem:function(t){var s=this.Mo,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.ep(n,e,!0),n}}),u=t.createClass({$init:function(s,e,n){this.hp=n.scale||1,this.rp=n.min||0,this.ap=n.max||100,this.op=n.value||0,this.ed=n.title||"",this.up=n.isRTL||!1,this.ml=n.slideInfos||[],this.fp=n.followMouse||!1,this.dp=n.thumbnailPrefixPath,this.pp=this.ml.length>0,this.vp=-1,this.$l=s,this.Ia=e,this.$l.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.mp=i(".ap-slider-track",this.$l),this.bp=i(".ap-slider-track-lower",this.$l),this.wp=i(".ap-slider-thumb-outer",this.$l),this.gp=i(".ap-slider-tooltip",this.$l),this.kp=i(".ap-slider-thumb-containment",this.$l),this.yp=i(".ap-slider-thumb",this.$l).outerWidth()/2,this.wp.width(2*this.yp),this.kp.css({position:"absolute",left:-this.yp+"px",top:"0px",width:"calc(100% + "+2*this.yp+"px)",height:"100%"}),this.$l.attr({"aria-valuemin":this.rp,"aria-valuemax":this.ap,"aria-valuenow":this.op,title:this.ed});for(var h=0,r=0,a=this.ml.length;r<a-1;++r)if(h+=this.ml[r].duration,e.ShowSegments){var o=i('<div class="ap-slider-marker"></div>'),u=h/(this.ap-this.rp)*100;o.css("left","calc("+u+"% - "+o.width()/2+"px)"),this.mp.append(o)}var c=this,f=t.browser.mobile;f||this.$l.mouseenter(function(t){c.pp&&c.gp.show()}).mousemove(function(t){if(c.pp){var s=t.pageX-i(this).offset().left;c._p(s)}}).mouseleave(function(t){c.pp&&c.gp.hide()}),this.wp.css("touchAction","none").draggable({containment:c.kp,axis:"x",start:function(){c.Xo=!0,f&&c.pp&&c.gp.show()},drag:function(){var t=parseInt(i(this).css("left"))+c.yp;c.Tp(t),f&&c.pp&&c._p(t)},stop:function(){c.Xo=!1;var t=parseInt(i(this).css("left"))+c.yp;c.Tp(t,!0),f&&c.pp&&c.gp.hide()}}).mousedown(function(t){return s.focus(),t.stopPropagation(),!0}),this.$l.on("mousedown",function(t){return c.Tp(t.pageX-i(this).offset().left,!0),t.stopPropagation(),!0}).on("keydown",function(t){var i=c.xp(c.op);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.Tp(i,!0),t.stopPropagation(),t.preventDefault()})},destroy:function(){this.wp.off("mouseenter").off("mouseleave").off("mousedown").draggable("destroy"),this.wp=null,this.$l.off("mousedown").off("keydown"),this.$l.empty(),this.$l=null},_p:function(t){var s,e=this.Is,n=this.Sp,h=this.Ep(t),r=0,a=0;for(a=0,s=this.ml.length||0;a<s&&!(h<=(r+=this.ml[a].duration));++a);if(!(a>=this.ml.length)){if(a!=this.vp){this.vp=a;var o=this.ml[a].title,u="";u+='<div class="ap-slider-tooltip-timestamp">'+AtomiAP.formatMSString(h)+"</div>",this.dp&&this.ml[a].thumb&&(u+='<img src="'+this.dp+"thumb_"+this.ml[a].ti+'.jpg" />'),u+="<div>"+(e?e.text("Slide"):"Slide")+" "+(a+1)+"/"+this.ml.length+"</div>",u+="<div>"+o+"</div>",this.gp.html(e?e.number(u,n):u)}else i(".ap-slider-tooltip-timestamp",this.gp).html(AtomiAP.formatMSString(h));this.gp.css({left:0,width:"auto"});var c=this.gp.width(),f=this.gp.height();this.gp.css({left:t-c/2,top:-f-40,width:c})}},Mp:function(t){var i=t/this.getWidth()*100;this.wp.css("left","calc("+i+"% - "+this.yp+"px)"),this.bp.css("width",i+"%")},Tp:function(t,s){var e=this.getWidth();t<0?t=0:t>e&&(t=e);var n=this.Ep(t),h=!1;isNaN(n)||n!=this.op&&(s?i(this).trigger("valueChanged",[n]):i(this).trigger("valueChanging",[n]),this.op=n,this.$l.attr("aria-valuenow",this.op),h=!0),this.Xo||h||(t=this.xp(this.op)||0),this.Mp(t)},Ep:function(t){var i=this.getWidth();"rtl"==this.up&&(t=i-t);var s=Math.round(this.rp+t*(this.ap-this.rp)/i);return s<this.rp?s=this.rp:s>this.ap&&(s=this.ap),s},xp:function(t){var i=this.getWidth(),s=Math.round((t-this.rp)*i/(this.ap-this.rp));return this.up&&(s=i-s),s<0?s=0:s>i&&(s=i),s},setTooltip:function(t){t!=this.Cp&&(this.Cp=t,this.gp.html(t))},showTooltip:function(t){void 0===t&&(t=!0),t?this.gp.show():this.gp.hide()},enableTooltip:function(t){this.pp=t},getValue:function(){return this.op},setValue:function(t){if(this.Xo&&!this.fp)return!1;t<this.rp?t=this.rp:t>this.ap&&(t=this.ap),this.op=t,this.$l.attr("aria-valuenow",this.op);var i=this.xp(t)||0;return this.Mp(i),!0},setTitle:function(t){this.$l.attr("title",t)},getMin:function(){return this.rp},setMin:function(t){this.rp=t,this.$l.attr("aria-valuemin",this.rp)},getMax:function(){return this.ap},setMax:function(t){this.ap=t,this.$l.attr("aria-valuemax",this.ap)},getWidth:function(){return this.$l.width()||.001},setWidth:function(t){this.$l.width(t)}}),c=t.createClass({$init:function(t,s,e){this.ql=t,this.Pp=-1,this.Ip=!1;var n=t.container();this.$l=i(s),e?this.$l.insertBefore(i(".ap-content-area",n)):this.$l.appendTo(n),this.$l.attr("unselectable","on").css("user-select","none").on("selectstart",!1),this.Rp=i(".ap-button,.ap-slider",this.$l).toArray(),this.Ap(),this.$l.show();var h=this;this.Dp=function(t){h.Np()},i(this.ql).on("ui:ap-layout",this.Dp)},destroy:function(){i(this.ql).off("ui:ap-layout",this.Dp),i.each(this.Rp,function(t,s){i(s).off("focusin").off("focusout")}),this.$l.off("mousedown").off("keydown").off("focus").off("focusout"),this.$l.remove(),this.$l=null},Op:function(t){var s=i(t);return"none"!=s.css("display")&&"false"!=s.attr("data-enabled")},Ap:function(){var t=this;this.$l.on("mousedown",function(i){for(var s=0;s<t.Rp.length;++s)i.target==t.Rp[s]&&(t.Pp=s);return i.stopPropagation(),!0}).on("keydown",function(s){if(9==s.which){var e,n=t.Rp,h=!s.shiftKey,r=!0,a=-1,o=t.Pp,u=n.length-1;do{if(h?++o:--o,o<0||o>u){a=h?0:u;break}if(t.Op(n[o])){a=o,r=!1;break}}while(o>=0&&o<=u);if(r)return t.Pp=a,!0;s.stopPropagation(),s.preventDefault(),t.Pp>=0&&t.Pp<=u&&(e=t.Rp[t.Pp],i(e).attr("tabindex","-1")),a>=0&&a<=u&&(t.Pp=a,e=t.Rp[t.Pp],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.Rp,function(i,e){if(t.Op(e))return s=i,!1}),s};this.$l.on("focus",function(e){var n=t.Pp;if((n<0||n>=t.Rp.length||!t.Op(t.Rp[n]))&&(t.Pp=s(),n=t.Pp),t.$l.attr("tabindex","-1"),n>=0&&n<t.Rp.length){var h=t.Rp[n];return i(h).attr("tabindex","0").focus(),!1}return!0}),this.$l.on("focusout",function(){t.Ip||t.$l.attr("tabindex","0")});for(var e=0;e<this.Rp.length;++e)!function(e,n){i(e).on("focusin",function(h){t.Op(e)?t.Pp=n:t.Pp=s(),t.$l.attr("tabindex","-1"),t.Ip=!0,i(this).attr("tabindex","0")}).on("focusout",function(s){t.Ip=!1,i(this).attr("tabindex","-1")})}(this.Rp[e],e)},Np:function(){var t=i("[data-priority]",this.$l),s=i(".ap-tool-setting",this.$l),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.$l.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.$l.css("display","")},hide:function(){this.$l.hide()},visible:function(){return this.$l&&"none"!==this.$l[0].style.display},isAutoHide:function(){return this.$l.hasClass("ap-auto-hide")},autoHide:function(t){0==arguments.length||t?this.$l.addClass("ap-auto-hide"):this.$l.removeClass("ap-auto-hide")}}),f=t.createClass({$init:function(t){this.$l=i('<div class="ap-floating-button"><div></div></div>');var s=this,e=!1;this.$l.css("touchAction","none").draggable({containment:t}).mousedown(function(t){e=!1}).mousemove(function(t){e=!0}).mouseup(function(){e||s.Bf&&s.Bf(),e=!1})},appendTo:function(t){t.append(this.$l)},show:function(){this.$l.css("display","")},hide:function(){this.$l.hide()},onClick:function(t){this.Bf=t}});t.RLPopup=n,t.RLToolbar=c,t.RLToc=r,t.UI=e}(window.AtomiAP=window.AtomiAP||{},window.AtomiAP.$||jQuery);