/*!
 * ActivePresenter HTML5 Output File
 * Copyright (c) Atomi Systems, Inc. All rights reserved.
 * https://atomisystems.com/activepresenter/
 * Version: 7.5.11
 * Date: 2019.12.23
 */
/*!
 * jQuery JavaScript Library v3.2.1
 * https://jquery.com/
 *
 * Includes Sizzle.js
 * https://sizzlejs.com/
 *
 * Copyright JS Foundation and other contributors
 * Released under the MIT license
 * https://jquery.org/license
 *
 * Date: 2017-03-20T18:59Z
 */
!function(e,t){"use strict";"object"==typeof module&&"object"==typeof module.exports?module.exports=e.document?t(e,!0):function(e){if(!e.document)throw new Error("jQuery requires a window with a document");return t(e)}:t(e)}("undefined"!=typeof window?window:this,function(e,t){"use strict";var n=[],i=e.document,o=Object.getPrototypeOf,r=n.slice,s=n.concat,a=n.push,l=n.indexOf,u={},c=u.toString,p=u.hasOwnProperty,f=p.toString,h=f.call(Object),d={};function g(e,t){var n=(t=t||i).createElement("script");n.text=e,t.head.appendChild(n).parentNode.removeChild(n)}var m="3.2.1",v=function(e,t){return new v.fn.init(e,t)},y=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,b=/^-ms-/,x=/-([a-z])/g,w=function(e,t){return t.toUpperCase()};function C(e){var t=!!e&&"length"in e&&e.length,n=v.type(e);return"function"!==n&&!v.isWindow(e)&&("array"===n||0===t||"number"==typeof t&&t>0&&t-1 in e)}v.fn=v.prototype={jquery:m,constructor:v,length:0,toArray:function(){return r.call(this)},get:function(e){return null==e?r.call(this):e<0?this[e+this.length]:this[e]},pushStack:function(e){var t=v.merge(this.constructor(),e);return t.prevObject=this,t},each:function(e){return v.each(this,e)},map:function(e){return this.pushStack(v.map(this,function(t,n){return e.call(t,n,t)}))},slice:function(){return this.pushStack(r.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(e){var t=this.length,n=+e+(e<0?t:0);return this.pushStack(n>=0&&n<t?[this[n]]:[])},end:function(){return this.prevObject||this.constructor()},push:a,sort:n.sort,splice:n.splice},v.extend=v.fn.extend=function(){var e,t,n,i,o,r,s=arguments[0]||{},a=1,l=arguments.length,u=!1;for("boolean"==typeof s&&(u=s,s=arguments[a]||{},a++),"object"==typeof s||v.isFunction(s)||(s={}),a===l&&(s=this,a--);a<l;a++)if(null!=(e=arguments[a]))for(t in e)n=s[t],s!==(i=e[t])&&(u&&i&&(v.isPlainObject(i)||(o=Array.isArray(i)))?(o?(o=!1,r=n&&Array.isArray(n)?n:[]):r=n&&v.isPlainObject(n)?n:{},s[t]=v.extend(u,r,i)):void 0!==i&&(s[t]=i));return s},v.extend({expando:"jQuery"+(m+Math.random()).replace(/\D/g,""),isReady:!0,error:function(e){throw new Error(e)},noop:function(){},isFunction:function(e){return"function"===v.type(e)},isWindow:function(e){return null!=e&&e===e.window},isNumeric:function(e){var t=v.type(e);return("number"===t||"string"===t)&&!isNaN(e-parseFloat(e))},isPlainObject:function(e){var t,n;return!(!e||"[object Object]"!==c.call(e))&&(!(t=o(e))||"function"==typeof(n=p.call(t,"constructor")&&t.constructor)&&f.call(n)===h)},isEmptyObject:function(e){var t;for(t in e)return!1;return!0},type:function(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?u[c.call(e)]||"object":typeof e},globalEval:function(e){g(e)},camelCase:function(e){return e.replace(b,"ms-").replace(x,w)},each:function(e,t){var n,i=0;if(C(e))for(n=e.length;i<n&&!1!==t.call(e[i],i,e[i]);i++);else for(i in e)if(!1===t.call(e[i],i,e[i]))break;return e},trim:function(e){return null==e?"":(e+"").replace(y,"")},makeArray:function(e,t){var n=t||[];return null!=e&&(C(Object(e))?v.merge(n,"string"==typeof e?[e]:e):a.call(n,e)),n},inArray:function(e,t,n){return null==t?-1:l.call(t,e,n)},merge:function(e,t){for(var n=+t.length,i=0,o=e.length;i<n;i++)e[o++]=t[i];return e.length=o,e},grep:function(e,t,n){for(var i=[],o=0,r=e.length,s=!n;o<r;o++)!t(e[o],o)!==s&&i.push(e[o]);return i},map:function(e,t,n){var i,o,r=0,a=[];if(C(e))for(i=e.length;r<i;r++)null!=(o=t(e[r],r,n))&&a.push(o);else for(r in e)null!=(o=t(e[r],r,n))&&a.push(o);return s.apply([],a)},guid:1,proxy:function(e,t){var n,i,o;if("string"==typeof t&&(n=e[t],t=e,e=n),v.isFunction(e))return i=r.call(arguments,2),(o=function(){return e.apply(t||this,i.concat(r.call(arguments)))}).guid=e.guid=e.guid||v.guid++,o},now:Date.now,support:d}),"function"==typeof Symbol&&(v.fn[Symbol.iterator]=n[Symbol.iterator]),v.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(e,t){u["[object "+t+"]"]=t.toLowerCase()});var _=
/*!
 * Sizzle CSS Selector Engine v2.3.3
 * https://sizzlejs.com/
 *
 * Copyright jQuery Foundation and other contributors
 * Released under the MIT license
 * http://jquery.org/license
 *
 * Date: 2016-08-08
 */
function(e){var t,n,i,o,r,s,a,l,u,c,p,f,h,d,g,m,v,y,b,x="sizzle"+1*new Date,w=e.document,C=0,_=0,T=se(),E=se(),k=se(),S=function(e,t){return e===t&&(p=!0),0},P={}.hasOwnProperty,N=[],D=N.pop,A=N.push,M=N.push,j=N.slice,H=function(e,t){for(var n=0,i=e.length;n<i;n++)if(e[n]===t)return n;return-1},L="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",O="[\\x20\\t\\r\\n\\f]",I="(?:\\\\.|[\\w-]|[^\0-\\xa0])+",F="\\["+O+"*("+I+")(?:"+O+"*([*^$|!~]?=)"+O+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+I+"))|)"+O+"*\\]",q=":("+I+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+F+")*)|.*)\\)|)",R=new RegExp(O+"+","g"),W=new RegExp("^"+O+"+|((?:^|[^\\\\])(?:\\\\.)*)"+O+"+$","g"),B=new RegExp("^"+O+"*,"+O+"*"),$=new RegExp("^"+O+"*([>+~]|"+O+")"+O+"*"),z=new RegExp("="+O+"*([^\\]'\"]*?)"+O+"*\\]","g"),X=new RegExp(q),U=new RegExp("^"+I+"$"),Y={ID:new RegExp("^#("+I+")"),CLASS:new RegExp("^\\.("+I+")"),TAG:new RegExp("^("+I+"|[*])"),ATTR:new RegExp("^"+F),PSEUDO:new RegExp("^"+q),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+O+"*(even|odd|(([+-]|)(\\d*)n|)"+O+"*(?:([+-]|)"+O+"*(\\d+)|))"+O+"*\\)|)","i"),bool:new RegExp("^(?:"+L+")$","i"),needsContext:new RegExp("^"+O+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+O+"*((?:-\\d)?\\d*)"+O+"*\\)|)(?=[^-]|$)","i")},G=/^(?:input|select|textarea|button)$/i,V=/^h\d$/i,Q=/^[^{]+\{\s*\[native \w/,K=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,J=/[+~]/,Z=new RegExp("\\\\([\\da-f]{1,6}"+O+"?|("+O+")|.)","ig"),ee=function(e,t,n){var i="0x"+t-65536;return i!=i||n?t:i<0?String.fromCharCode(i+65536):String.fromCharCode(i>>10|55296,1023&i|56320)},te=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,ne=function(e,t){return t?"\0"===e?"�":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16)+" ":"\\"+e},ie=function(){f()},oe=ye(function(e){return!0===e.disabled&&("form"in e||"label"in e)},{dir:"parentNode",next:"legend"});try{M.apply(N=j.call(w.childNodes),w.childNodes),N[w.childNodes.length].nodeType}catch(e){M={apply:N.length?function(e,t){A.apply(e,j.call(t))}:function(e,t){for(var n=e.length,i=0;e[n++]=t[i++];);e.length=n-1}}}function re(e,t,i,o){var r,a,u,c,p,d,v,y=t&&t.ownerDocument,C=t?t.nodeType:9;if(i=i||[],"string"!=typeof e||!e||1!==C&&9!==C&&11!==C)return i;if(!o&&((t?t.ownerDocument||t:w)!==h&&f(t),t=t||h,g)){if(11!==C&&(p=K.exec(e)))if(r=p[1]){if(9===C){if(!(u=t.getElementById(r)))return i;if(u.id===r)return i.push(u),i}else if(y&&(u=y.getElementById(r))&&b(t,u)&&u.id===r)return i.push(u),i}else{if(p[2])return M.apply(i,t.getElementsByTagName(e)),i;if((r=p[3])&&n.getElementsByClassName&&t.getElementsByClassName)return M.apply(i,t.getElementsByClassName(r)),i}if(n.qsa&&!k[e+" "]&&(!m||!m.test(e))){if(1!==C)y=t,v=e;else if("object"!==t.nodeName.toLowerCase()){for((c=t.getAttribute("id"))?c=c.replace(te,ne):t.setAttribute("id",c=x),a=(d=s(e)).length;a--;)d[a]="#"+c+" "+ve(d[a]);v=d.join(","),y=J.test(e)&&ge(t.parentNode)||t}if(v)try{return M.apply(i,y.querySelectorAll(v)),i}catch(e){}finally{c===x&&t.removeAttribute("id")}}}return l(e.replace(W,"$1"),t,i,o)}function se(){var e=[];return function t(n,o){return e.push(n+" ")>i.cacheLength&&delete t[e.shift()],t[n+" "]=o}}function ae(e){return e[x]=!0,e}function le(e){var t=h.createElement("fieldset");try{return!!e(t)}catch(e){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function ue(e,t){for(var n=e.split("|"),o=n.length;o--;)i.attrHandle[n[o]]=t}function ce(e,t){var n=t&&e,i=n&&1===e.nodeType&&1===t.nodeType&&e.sourceIndex-t.sourceIndex;if(i)return i;if(n)for(;n=n.nextSibling;)if(n===t)return-1;return e?1:-1}function pe(e){return function(t){return"input"===t.nodeName.toLowerCase()&&t.type===e}}function fe(e){return function(t){var n=t.nodeName.toLowerCase();return("input"===n||"button"===n)&&t.type===e}}function he(e){return function(t){return"form"in t?t.parentNode&&!1===t.disabled?"label"in t?"label"in t.parentNode?t.parentNode.disabled===e:t.disabled===e:t.isDisabled===e||t.isDisabled!==!e&&oe(t)===e:t.disabled===e:"label"in t&&t.disabled===e}}function de(e){return ae(function(t){return t=+t,ae(function(n,i){for(var o,r=e([],n.length,t),s=r.length;s--;)n[o=r[s]]&&(n[o]=!(i[o]=n[o]))})})}function ge(e){return e&&void 0!==e.getElementsByTagName&&e}n=re.support={},r=re.isXML=function(e){var t=e&&(e.ownerDocument||e).documentElement;return!!t&&"HTML"!==t.nodeName},f=re.setDocument=function(e){var t,o,s=e?e.ownerDocument||e:w;return s!==h&&9===s.nodeType&&s.documentElement?(d=(h=s).documentElement,g=!r(h),w!==h&&(o=h.defaultView)&&o.top!==o&&(o.addEventListener?o.addEventListener("unload",ie,!1):o.attachEvent&&o.attachEvent("onunload",ie)),n.attributes=le(function(e){return e.className="i",!e.getAttribute("className")}),n.getElementsByTagName=le(function(e){return e.appendChild(h.createComment("")),!e.getElementsByTagName("*").length}),n.getElementsByClassName=Q.test(h.getElementsByClassName),n.getById=le(function(e){return d.appendChild(e).id=x,!h.getElementsByName||!h.getElementsByName(x).length}),n.getById?(i.filter.ID=function(e){var t=e.replace(Z,ee);return function(e){return e.getAttribute("id")===t}},i.find.ID=function(e,t){if(void 0!==t.getElementById&&g){var n=t.getElementById(e);return n?[n]:[]}}):(i.filter.ID=function(e){var t=e.replace(Z,ee);return function(e){var n=void 0!==e.getAttributeNode&&e.getAttributeNode("id");return n&&n.value===t}},i.find.ID=function(e,t){if(void 0!==t.getElementById&&g){var n,i,o,r=t.getElementById(e);if(r){if((n=r.getAttributeNode("id"))&&n.value===e)return[r];for(o=t.getElementsByName(e),i=0;r=o[i++];)if((n=r.getAttributeNode("id"))&&n.value===e)return[r]}return[]}}),i.find.TAG=n.getElementsByTagName?function(e,t){return void 0!==t.getElementsByTagName?t.getElementsByTagName(e):n.qsa?t.querySelectorAll(e):void 0}:function(e,t){var n,i=[],o=0,r=t.getElementsByTagName(e);if("*"===e){for(;n=r[o++];)1===n.nodeType&&i.push(n);return i}return r},i.find.CLASS=n.getElementsByClassName&&function(e,t){if(void 0!==t.getElementsByClassName&&g)return t.getElementsByClassName(e)},v=[],m=[],(n.qsa=Q.test(h.querySelectorAll))&&(le(function(e){d.appendChild(e).innerHTML="<a id='"+x+"'></a><select id='"+x+"-\r\\' msallowcapture=''><option selected=''></option></select>",e.querySelectorAll("[msallowcapture^='']").length&&m.push("[*^$]="+O+"*(?:''|\"\")"),e.querySelectorAll("[selected]").length||m.push("\\["+O+"*(?:value|"+L+")"),e.querySelectorAll("[id~="+x+"-]").length||m.push("~="),e.querySelectorAll(":checked").length||m.push(":checked"),e.querySelectorAll("a#"+x+"+*").length||m.push(".#.+[+~]")}),le(function(e){e.innerHTML="<a href='' disabled='disabled'></a><select disabled='disabled'><option/></select>";var t=h.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),e.querySelectorAll("[name=d]").length&&m.push("name"+O+"*[*^$|!~]?="),2!==e.querySelectorAll(":enabled").length&&m.push(":enabled",":disabled"),d.appendChild(e).disabled=!0,2!==e.querySelectorAll(":disabled").length&&m.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),m.push(",.*:")})),(n.matchesSelector=Q.test(y=d.matches||d.webkitMatchesSelector||d.mozMatchesSelector||d.oMatchesSelector||d.msMatchesSelector))&&le(function(e){n.disconnectedMatch=y.call(e,"*"),y.call(e,"[s!='']:x"),v.push("!=",q)}),m=m.length&&new RegExp(m.join("|")),v=v.length&&new RegExp(v.join("|")),t=Q.test(d.compareDocumentPosition),b=t||Q.test(d.contains)?function(e,t){var n=9===e.nodeType?e.documentElement:e,i=t&&t.parentNode;return e===i||!(!i||1!==i.nodeType||!(n.contains?n.contains(i):e.compareDocumentPosition&&16&e.compareDocumentPosition(i)))}:function(e,t){if(t)for(;t=t.parentNode;)if(t===e)return!0;return!1},S=t?function(e,t){if(e===t)return p=!0,0;var i=!e.compareDocumentPosition-!t.compareDocumentPosition;return i||(1&(i=(e.ownerDocument||e)===(t.ownerDocument||t)?e.compareDocumentPosition(t):1)||!n.sortDetached&&t.compareDocumentPosition(e)===i?e===h||e.ownerDocument===w&&b(w,e)?-1:t===h||t.ownerDocument===w&&b(w,t)?1:c?H(c,e)-H(c,t):0:4&i?-1:1)}:function(e,t){if(e===t)return p=!0,0;var n,i=0,o=e.parentNode,r=t.parentNode,s=[e],a=[t];if(!o||!r)return e===h?-1:t===h?1:o?-1:r?1:c?H(c,e)-H(c,t):0;if(o===r)return ce(e,t);for(n=e;n=n.parentNode;)s.unshift(n);for(n=t;n=n.parentNode;)a.unshift(n);for(;s[i]===a[i];)i++;return i?ce(s[i],a[i]):s[i]===w?-1:a[i]===w?1:0},h):h},re.matches=function(e,t){return re(e,null,null,t)},re.matchesSelector=function(e,t){if((e.ownerDocument||e)!==h&&f(e),t=t.replace(z,"='$1']"),n.matchesSelector&&g&&!k[t+" "]&&(!v||!v.test(t))&&(!m||!m.test(t)))try{var i=y.call(e,t);if(i||n.disconnectedMatch||e.document&&11!==e.document.nodeType)return i}catch(e){}return re(t,h,null,[e]).length>0},re.contains=function(e,t){return(e.ownerDocument||e)!==h&&f(e),b(e,t)},re.attr=function(e,t){(e.ownerDocument||e)!==h&&f(e);var o=i.attrHandle[t.toLowerCase()],r=o&&P.call(i.attrHandle,t.toLowerCase())?o(e,t,!g):void 0;return void 0!==r?r:n.attributes||!g?e.getAttribute(t):(r=e.getAttributeNode(t))&&r.specified?r.value:null},re.escape=function(e){return(e+"").replace(te,ne)},re.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},re.uniqueSort=function(e){var t,i=[],o=0,r=0;if(p=!n.detectDuplicates,c=!n.sortStable&&e.slice(0),e.sort(S),p){for(;t=e[r++];)t===e[r]&&(o=i.push(r));for(;o--;)e.splice(i[o],1)}return c=null,e},o=re.getText=function(e){var t,n="",i=0,r=e.nodeType;if(r){if(1===r||9===r||11===r){if("string"==typeof e.textContent)return e.textContent;for(e=e.firstChild;e;e=e.nextSibling)n+=o(e)}else if(3===r||4===r)return e.nodeValue}else for(;t=e[i++];)n+=o(t);return n},(i=re.selectors={cacheLength:50,createPseudo:ae,match:Y,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(Z,ee),e[3]=(e[3]||e[4]||e[5]||"").replace(Z,ee),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||re.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&re.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return Y.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&X.test(n)&&(t=s(n,!0))&&(t=n.indexOf(")",n.length-t)-n.length)&&(e[0]=e[0].slice(0,t),e[2]=n.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(Z,ee).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=T[e+" "];return t||(t=new RegExp("(^|"+O+")"+e+"("+O+"|$)"))&&T(e,function(e){return t.test("string"==typeof e.className&&e.className||void 0!==e.getAttribute&&e.getAttribute("class")||"")})},ATTR:function(e,t,n){return function(i){var o=re.attr(i,e);return null==o?"!="===t:!t||(o+="","="===t?o===n:"!="===t?o!==n:"^="===t?n&&0===o.indexOf(n):"*="===t?n&&o.indexOf(n)>-1:"$="===t?n&&o.slice(-n.length)===n:"~="===t?(" "+o.replace(R," ")+" ").indexOf(n)>-1:"|="===t&&(o===n||o.slice(0,n.length+1)===n+"-"))}},CHILD:function(e,t,n,i,o){var r="nth"!==e.slice(0,3),s="last"!==e.slice(-4),a="of-type"===t;return 1===i&&0===o?function(e){return!!e.parentNode}:function(t,n,l){var u,c,p,f,h,d,g=r!==s?"nextSibling":"previousSibling",m=t.parentNode,v=a&&t.nodeName.toLowerCase(),y=!l&&!a,b=!1;if(m){if(r){for(;g;){for(f=t;f=f[g];)if(a?f.nodeName.toLowerCase()===v:1===f.nodeType)return!1;d=g="only"===e&&!d&&"nextSibling"}return!0}if(d=[s?m.firstChild:m.lastChild],s&&y){for(b=(h=(u=(c=(p=(f=m)[x]||(f[x]={}))[f.uniqueID]||(p[f.uniqueID]={}))[e]||[])[0]===C&&u[1])&&u[2],f=h&&m.childNodes[h];f=++h&&f&&f[g]||(b=h=0)||d.pop();)if(1===f.nodeType&&++b&&f===t){c[e]=[C,h,b];break}}else if(y&&(b=h=(u=(c=(p=(f=t)[x]||(f[x]={}))[f.uniqueID]||(p[f.uniqueID]={}))[e]||[])[0]===C&&u[1]),!1===b)for(;(f=++h&&f&&f[g]||(b=h=0)||d.pop())&&((a?f.nodeName.toLowerCase()!==v:1!==f.nodeType)||!++b||(y&&((c=(p=f[x]||(f[x]={}))[f.uniqueID]||(p[f.uniqueID]={}))[e]=[C,b]),f!==t)););return(b-=o)===i||b%i==0&&b/i>=0}}},PSEUDO:function(e,t){var n,o=i.pseudos[e]||i.setFilters[e.toLowerCase()]||re.error("unsupported pseudo: "+e);return o[x]?o(t):o.length>1?(n=[e,e,"",t],i.setFilters.hasOwnProperty(e.toLowerCase())?ae(function(e,n){for(var i,r=o(e,t),s=r.length;s--;)e[i=H(e,r[s])]=!(n[i]=r[s])}):function(e){return o(e,0,n)}):o}},pseudos:{not:ae(function(e){var t=[],n=[],i=a(e.replace(W,"$1"));return i[x]?ae(function(e,t,n,o){for(var r,s=i(e,null,o,[]),a=e.length;a--;)(r=s[a])&&(e[a]=!(t[a]=r))}):function(e,o,r){return t[0]=e,i(t,null,r,n),t[0]=null,!n.pop()}}),has:ae(function(e){return function(t){return re(e,t).length>0}}),contains:ae(function(e){return e=e.replace(Z,ee),function(t){return(t.textContent||t.innerText||o(t)).indexOf(e)>-1}}),lang:ae(function(e){return U.test(e||"")||re.error("unsupported lang: "+e),e=e.replace(Z,ee).toLowerCase(),function(t){var n;do{if(n=g?t.lang:t.getAttribute("xml:lang")||t.getAttribute("lang"))return(n=n.toLowerCase())===e||0===n.indexOf(e+"-")}while((t=t.parentNode)&&1===t.nodeType);return!1}}),target:function(t){var n=e.location&&e.location.hash;return n&&n.slice(1)===t.id},root:function(e){return e===d},focus:function(e){return e===h.activeElement&&(!h.hasFocus||h.hasFocus())&&!!(e.type||e.href||~e.tabIndex)},enabled:he(!1),disabled:he(!0),checked:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&!!e.checked||"option"===t&&!!e.selected},selected:function(e){return e.parentNode&&e.parentNode.selectedIndex,!0===e.selected},empty:function(e){for(e=e.firstChild;e;e=e.nextSibling)if(e.nodeType<6)return!1;return!0},parent:function(e){return!i.pseudos.empty(e)},header:function(e){return V.test(e.nodeName)},input:function(e){return G.test(e.nodeName)},button:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&"button"===e.type||"button"===t},text:function(e){var t;return"input"===e.nodeName.toLowerCase()&&"text"===e.type&&(null==(t=e.getAttribute("type"))||"text"===t.toLowerCase())},first:de(function(){return[0]}),last:de(function(e,t){return[t-1]}),eq:de(function(e,t,n){return[n<0?n+t:n]}),even:de(function(e,t){for(var n=0;n<t;n+=2)e.push(n);return e}),odd:de(function(e,t){for(var n=1;n<t;n+=2)e.push(n);return e}),lt:de(function(e,t,n){for(var i=n<0?n+t:n;--i>=0;)e.push(i);return e}),gt:de(function(e,t,n){for(var i=n<0?n+t:n;++i<t;)e.push(i);return e})}}).pseudos.nth=i.pseudos.eq;for(t in{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})i.pseudos[t]=pe(t);for(t in{submit:!0,reset:!0})i.pseudos[t]=fe(t);function me(){}function ve(e){for(var t=0,n=e.length,i="";t<n;t++)i+=e[t].value;return i}function ye(e,t,n){var i=t.dir,o=t.next,r=o||i,s=n&&"parentNode"===r,a=_++;return t.first?function(t,n,o){for(;t=t[i];)if(1===t.nodeType||s)return e(t,n,o);return!1}:function(t,n,l){var u,c,p,f=[C,a];if(l){for(;t=t[i];)if((1===t.nodeType||s)&&e(t,n,l))return!0}else for(;t=t[i];)if(1===t.nodeType||s)if(c=(p=t[x]||(t[x]={}))[t.uniqueID]||(p[t.uniqueID]={}),o&&o===t.nodeName.toLowerCase())t=t[i]||t;else{if((u=c[r])&&u[0]===C&&u[1]===a)return f[2]=u[2];if(c[r]=f,f[2]=e(t,n,l))return!0}return!1}}function be(e){return e.length>1?function(t,n,i){for(var o=e.length;o--;)if(!e[o](t,n,i))return!1;return!0}:e[0]}function xe(e,t,n,i,o){for(var r,s=[],a=0,l=e.length,u=null!=t;a<l;a++)(r=e[a])&&(n&&!n(r,i,o)||(s.push(r),u&&t.push(a)));return s}function we(e,t,n,i,o,r){return i&&!i[x]&&(i=we(i)),o&&!o[x]&&(o=we(o,r)),ae(function(r,s,a,l){var u,c,p,f=[],h=[],d=s.length,g=r||function(e,t,n){for(var i=0,o=t.length;i<o;i++)re(e,t[i],n);return n}(t||"*",a.nodeType?[a]:a,[]),m=!e||!r&&t?g:xe(g,f,e,a,l),v=n?o||(r?e:d||i)?[]:s:m;if(n&&n(m,v,a,l),i)for(u=xe(v,h),i(u,[],a,l),c=u.length;c--;)(p=u[c])&&(v[h[c]]=!(m[h[c]]=p));if(r){if(o||e){if(o){for(u=[],c=v.length;c--;)(p=v[c])&&u.push(m[c]=p);o(null,v=[],u,l)}for(c=v.length;c--;)(p=v[c])&&(u=o?H(r,p):f[c])>-1&&(r[u]=!(s[u]=p))}}else v=xe(v===s?v.splice(d,v.length):v),o?o(null,s,v,l):M.apply(s,v)})}function Ce(e){for(var t,n,o,r=e.length,s=i.relative[e[0].type],a=s||i.relative[" "],l=s?1:0,c=ye(function(e){return e===t},a,!0),p=ye(function(e){return H(t,e)>-1},a,!0),f=[function(e,n,i){var o=!s&&(i||n!==u)||((t=n).nodeType?c(e,n,i):p(e,n,i));return t=null,o}];l<r;l++)if(n=i.relative[e[l].type])f=[ye(be(f),n)];else{if((n=i.filter[e[l].type].apply(null,e[l].matches))[x]){for(o=++l;o<r&&!i.relative[e[o].type];o++);return we(l>1&&be(f),l>1&&ve(e.slice(0,l-1).concat({value:" "===e[l-2].type?"*":""})).replace(W,"$1"),n,l<o&&Ce(e.slice(l,o)),o<r&&Ce(e=e.slice(o)),o<r&&ve(e))}f.push(n)}return be(f)}return me.prototype=i.filters=i.pseudos,i.setFilters=new me,s=re.tokenize=function(e,t){var n,o,r,s,a,l,u,c=E[e+" "];if(c)return t?0:c.slice(0);for(a=e,l=[],u=i.preFilter;a;){n&&!(o=B.exec(a))||(o&&(a=a.slice(o[0].length)||a),l.push(r=[])),n=!1,(o=$.exec(a))&&(n=o.shift(),r.push({value:n,type:o[0].replace(W," ")}),a=a.slice(n.length));for(s in i.filter)!(o=Y[s].exec(a))||u[s]&&!(o=u[s](o))||(n=o.shift(),r.push({value:n,type:s,matches:o}),a=a.slice(n.length));if(!n)break}return t?a.length:a?re.error(e):E(e,l).slice(0)},a=re.compile=function(e,t){var n,o,r,a,l,c,p=[],d=[],m=k[e+" "];if(!m){for(t||(t=s(e)),n=t.length;n--;)(m=Ce(t[n]))[x]?p.push(m):d.push(m);(m=k(e,(o=d,a=(r=p).length>0,l=o.length>0,c=function(e,t,n,s,c){var p,d,m,v=0,y="0",b=e&&[],x=[],w=u,_=e||l&&i.find.TAG("*",c),T=C+=null==w?1:Math.random()||.1,E=_.length;for(c&&(u=t===h||t||c);y!==E&&null!=(p=_[y]);y++){if(l&&p){for(d=0,t||p.ownerDocument===h||(f(p),n=!g);m=o[d++];)if(m(p,t||h,n)){s.push(p);break}c&&(C=T)}a&&((p=!m&&p)&&v--,e&&b.push(p))}if(v+=y,a&&y!==v){for(d=0;m=r[d++];)m(b,x,t,n);if(e){if(v>0)for(;y--;)b[y]||x[y]||(x[y]=D.call(s));x=xe(x)}M.apply(s,x),c&&!e&&x.length>0&&v+r.length>1&&re.uniqueSort(s)}return c&&(C=T,u=w),b},a?ae(c):c))).selector=e}return m},l=re.select=function(e,t,n,o){var r,l,u,c,p,f="function"==typeof e&&e,h=!o&&s(e=f.selector||e);if(n=n||[],1===h.length){if((l=h[0]=h[0].slice(0)).length>2&&"ID"===(u=l[0]).type&&9===t.nodeType&&g&&i.relative[l[1].type]){if(!(t=(i.find.ID(u.matches[0].replace(Z,ee),t)||[])[0]))return n;f&&(t=t.parentNode),e=e.slice(l.shift().value.length)}for(r=Y.needsContext.test(e)?0:l.length;r--&&(u=l[r],!i.relative[c=u.type]);)if((p=i.find[c])&&(o=p(u.matches[0].replace(Z,ee),J.test(l[0].type)&&ge(t.parentNode)||t))){if(l.splice(r,1),!(e=o.length&&ve(l)))return M.apply(n,o),n;break}}return(f||a(e,h))(o,t,!g,n,!t||J.test(e)&&ge(t.parentNode)||t),n},n.sortStable=x.split("").sort(S).join("")===x,n.detectDuplicates=!!p,f(),n.sortDetached=le(function(e){return 1&e.compareDocumentPosition(h.createElement("fieldset"))}),le(function(e){return e.innerHTML="<a href='#'></a>","#"===e.firstChild.getAttribute("href")})||ue("type|href|height|width",function(e,t,n){if(!n)return e.getAttribute(t,"type"===t.toLowerCase()?1:2)}),n.attributes&&le(function(e){return e.innerHTML="<input/>",e.firstChild.setAttribute("value",""),""===e.firstChild.getAttribute("value")})||ue("value",function(e,t,n){if(!n&&"input"===e.nodeName.toLowerCase())return e.defaultValue}),le(function(e){return null==e.getAttribute("disabled")})||ue(L,function(e,t,n){var i;if(!n)return!0===e[t]?t.toLowerCase():(i=e.getAttributeNode(t))&&i.specified?i.value:null}),re}(e);v.find=_,v.expr=_.selectors,v.expr[":"]=v.expr.pseudos,v.uniqueSort=v.unique=_.uniqueSort,v.text=_.getText,v.isXMLDoc=_.isXML,v.contains=_.contains,v.escapeSelector=_.escape;var T=function(e,t,n){for(var i=[],o=void 0!==n;(e=e[t])&&9!==e.nodeType;)if(1===e.nodeType){if(o&&v(e).is(n))break;i.push(e)}return i},E=function(e,t){for(var n=[];e;e=e.nextSibling)1===e.nodeType&&e!==t&&n.push(e);return n},k=v.expr.match.needsContext;function S(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()}var P=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i,N=/^.[^:#\[\.,]*$/;function D(e,t,n){return v.isFunction(t)?v.grep(e,function(e,i){return!!t.call(e,i,e)!==n}):t.nodeType?v.grep(e,function(e){return e===t!==n}):"string"!=typeof t?v.grep(e,function(e){return l.call(t,e)>-1!==n}):N.test(t)?v.filter(t,e,n):(t=v.filter(t,e),v.grep(e,function(e){return l.call(t,e)>-1!==n&&1===e.nodeType}))}v.filter=function(e,t,n){var i=t[0];return n&&(e=":not("+e+")"),1===t.length&&1===i.nodeType?v.find.matchesSelector(i,e)?[i]:[]:v.find.matches(e,v.grep(t,function(e){return 1===e.nodeType}))},v.fn.extend({find:function(e){var t,n,i=this.length,o=this;if("string"!=typeof e)return this.pushStack(v(e).filter(function(){for(t=0;t<i;t++)if(v.contains(o[t],this))return!0}));for(n=this.pushStack([]),t=0;t<i;t++)v.find(e,o[t],n);return i>1?v.uniqueSort(n):n},filter:function(e){return this.pushStack(D(this,e||[],!1))},not:function(e){return this.pushStack(D(this,e||[],!0))},is:function(e){return!!D(this,"string"==typeof e&&k.test(e)?v(e):e||[],!1).length}});var A,M=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/;(v.fn.init=function(e,t,n){var o,r;if(!e)return this;if(n=n||A,"string"==typeof e){if(!(o="<"===e[0]&&">"===e[e.length-1]&&e.length>=3?[null,e,null]:M.exec(e))||!o[1]&&t)return!t||t.jquery?(t||n).find(e):this.constructor(t).find(e);if(o[1]){if(t=t instanceof v?t[0]:t,v.merge(this,v.parseHTML(o[1],t&&t.nodeType?t.ownerDocument||t:i,!0)),P.test(o[1])&&v.isPlainObject(t))for(o in t)v.isFunction(this[o])?this[o](t[o]):this.attr(o,t[o]);return this}return(r=i.getElementById(o[2]))&&(this[0]=r,this.length=1),this}return e.nodeType?(this[0]=e,this.length=1,this):v.isFunction(e)?void 0!==n.ready?n.ready(e):e(v):v.makeArray(e,this)}).prototype=v.fn,A=v(i);var j=/^(?:parents|prev(?:Until|All))/,H={children:!0,contents:!0,next:!0,prev:!0};function L(e,t){for(;(e=e[t])&&1!==e.nodeType;);return e}v.fn.extend({has:function(e){var t=v(e,this),n=t.length;return this.filter(function(){for(var e=0;e<n;e++)if(v.contains(this,t[e]))return!0})},closest:function(e,t){var n,i=0,o=this.length,r=[],s="string"!=typeof e&&v(e);if(!k.test(e))for(;i<o;i++)for(n=this[i];n&&n!==t;n=n.parentNode)if(n.nodeType<11&&(s?s.index(n)>-1:1===n.nodeType&&v.find.matchesSelector(n,e))){r.push(n);break}return this.pushStack(r.length>1?v.uniqueSort(r):r)},index:function(e){return e?"string"==typeof e?l.call(v(e),this[0]):l.call(this,e.jquery?e[0]:e):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,t){return this.pushStack(v.uniqueSort(v.merge(this.get(),v(e,t))))},addBack:function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}}),v.each({parent:function(e){var t=e.parentNode;return t&&11!==t.nodeType?t:null},parents:function(e){return T(e,"parentNode")},parentsUntil:function(e,t,n){return T(e,"parentNode",n)},next:function(e){return L(e,"nextSibling")},prev:function(e){return L(e,"previousSibling")},nextAll:function(e){return T(e,"nextSibling")},prevAll:function(e){return T(e,"previousSibling")},nextUntil:function(e,t,n){return T(e,"nextSibling",n)},prevUntil:function(e,t,n){return T(e,"previousSibling",n)},siblings:function(e){return E((e.parentNode||{}).firstChild,e)},children:function(e){return E(e.firstChild)},contents:function(e){return S(e,"iframe")?e.contentDocument:(S(e,"template")&&(e=e.content||e),v.merge([],e.childNodes))}},function(e,t){v.fn[e]=function(n,i){var o=v.map(this,t,n);return"Until"!==e.slice(-5)&&(i=n),i&&"string"==typeof i&&(o=v.filter(i,o)),this.length>1&&(H[e]||v.uniqueSort(o),j.test(e)&&o.reverse()),this.pushStack(o)}});var O=/[^\x20\t\r\n\f]+/g;function I(e){return e}function F(e){throw e}function q(e,t,n,i){var o;try{e&&v.isFunction(o=e.promise)?o.call(e).done(t).fail(n):e&&v.isFunction(o=e.then)?o.call(e,t,n):t.apply(void 0,[e].slice(i))}catch(e){n.apply(void 0,[e])}}v.Callbacks=function(e){var t,n;e="string"==typeof e?(t=e,n={},v.each(t.match(O)||[],function(e,t){n[t]=!0}),n):v.extend({},e);var i,o,r,s,a=[],l=[],u=-1,c=function(){for(s=s||e.once,r=i=!0;l.length;u=-1)for(o=l.shift();++u<a.length;)!1===a[u].apply(o[0],o[1])&&e.stopOnFalse&&(u=a.length,o=!1);e.memory||(o=!1),i=!1,s&&(a=o?[]:"")},p={add:function(){return a&&(o&&!i&&(u=a.length-1,l.push(o)),function t(n){v.each(n,function(n,i){v.isFunction(i)?e.unique&&p.has(i)||a.push(i):i&&i.length&&"string"!==v.type(i)&&t(i)})}(arguments),o&&!i&&c()),this},remove:function(){return v.each(arguments,function(e,t){for(var n;(n=v.inArray(t,a,n))>-1;)a.splice(n,1),n<=u&&u--}),this},has:function(e){return e?v.inArray(e,a)>-1:a.length>0},empty:function(){return a&&(a=[]),this},disable:function(){return s=l=[],a=o="",this},disabled:function(){return!a},lock:function(){return s=l=[],o||i||(a=o=""),this},locked:function(){return!!s},fireWith:function(e,t){return s||(t=[e,(t=t||[]).slice?t.slice():t],l.push(t),i||c()),this},fire:function(){return p.fireWith(this,arguments),this},fired:function(){return!!r}};return p},v.extend({Deferred:function(t){var n=[["notify","progress",v.Callbacks("memory"),v.Callbacks("memory"),2],["resolve","done",v.Callbacks("once memory"),v.Callbacks("once memory"),0,"resolved"],["reject","fail",v.Callbacks("once memory"),v.Callbacks("once memory"),1,"rejected"]],i="pending",o={state:function(){return i},always:function(){return r.done(arguments).fail(arguments),this},catch:function(e){return o.then(null,e)},pipe:function(){var e=arguments;return v.Deferred(function(t){v.each(n,function(n,i){var o=v.isFunction(e[i[4]])&&e[i[4]];r[i[1]](function(){var e=o&&o.apply(this,arguments);e&&v.isFunction(e.promise)?e.promise().progress(t.notify).done(t.resolve).fail(t.reject):t[i[0]+"With"](this,o?[e]:arguments)})}),e=null}).promise()},then:function(t,i,o){var r=0;function s(t,n,i,o){return function(){var a=this,l=arguments,u=function(){var e,u;if(!(t<r)){if((e=i.apply(a,l))===n.promise())throw new TypeError("Thenable self-resolution");u=e&&("object"==typeof e||"function"==typeof e)&&e.then,v.isFunction(u)?o?u.call(e,s(r,n,I,o),s(r,n,F,o)):(r++,u.call(e,s(r,n,I,o),s(r,n,F,o),s(r,n,I,n.notifyWith))):(i!==I&&(a=void 0,l=[e]),(o||n.resolveWith)(a,l))}},c=o?u:function(){try{u()}catch(e){v.Deferred.exceptionHook&&v.Deferred.exceptionHook(e,c.stackTrace),t+1>=r&&(i!==F&&(a=void 0,l=[e]),n.rejectWith(a,l))}};t?c():(v.Deferred.getStackHook&&(c.stackTrace=v.Deferred.getStackHook()),e.setTimeout(c))}}return v.Deferred(function(e){n[0][3].add(s(0,e,v.isFunction(o)?o:I,e.notifyWith)),n[1][3].add(s(0,e,v.isFunction(t)?t:I)),n[2][3].add(s(0,e,v.isFunction(i)?i:F))}).promise()},promise:function(e){return null!=e?v.extend(e,o):o}},r={};return v.each(n,function(e,t){var s=t[2],a=t[5];o[t[1]]=s.add,a&&s.add(function(){i=a},n[3-e][2].disable,n[0][2].lock),s.add(t[3].fire),r[t[0]]=function(){return r[t[0]+"With"](this===r?void 0:this,arguments),this},r[t[0]+"With"]=s.fireWith}),o.promise(r),t&&t.call(r,r),r},when:function(e){var t=arguments.length,n=t,i=Array(n),o=r.call(arguments),s=v.Deferred(),a=function(e){return function(n){i[e]=this,o[e]=arguments.length>1?r.call(arguments):n,--t||s.resolveWith(i,o)}};if(t<=1&&(q(e,s.done(a(n)).resolve,s.reject,!t),"pending"===s.state()||v.isFunction(o[n]&&o[n].then)))return s.then();for(;n--;)q(o[n],a(n),s.reject);return s.promise()}});var R=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;v.Deferred.exceptionHook=function(t,n){e.console&&e.console.warn&&t&&R.test(t.name)&&e.console.warn("jQuery.Deferred exception: "+t.message,t.stack,n)},v.readyException=function(t){e.setTimeout(function(){throw t})};var W=v.Deferred();function B(){i.removeEventListener("DOMContentLoaded",B),e.removeEventListener("load",B),v.ready()}v.fn.ready=function(e){return W.then(e).catch(function(e){v.readyException(e)}),this},v.extend({isReady:!1,readyWait:1,ready:function(e){(!0===e?--v.readyWait:v.isReady)||(v.isReady=!0,!0!==e&&--v.readyWait>0||W.resolveWith(i,[v]))}}),v.ready.then=W.then,"complete"===i.readyState||"loading"!==i.readyState&&!i.documentElement.doScroll?e.setTimeout(v.ready):(i.addEventListener("DOMContentLoaded",B),e.addEventListener("load",B));var $=function(e,t,n,i,o,r,s){var a=0,l=e.length,u=null==n;if("object"===v.type(n)){o=!0;for(a in n)$(e,t,a,n[a],!0,r,s)}else if(void 0!==i&&(o=!0,v.isFunction(i)||(s=!0),u&&(s?(t.call(e,i),t=null):(u=t,t=function(e,t,n){return u.call(v(e),n)})),t))for(;a<l;a++)t(e[a],n,s?i:i.call(e[a],a,t(e[a],n)));return o?e:u?t.call(e):l?t(e[0],n):r},z=function(e){return 1===e.nodeType||9===e.nodeType||!+e.nodeType};function X(){this.expando=v.expando+X.uid++}X.uid=1,X.prototype={cache:function(e){var t=e[this.expando];return t||(t={},z(e)&&(e.nodeType?e[this.expando]=t:Object.defineProperty(e,this.expando,{value:t,configurable:!0}))),t},set:function(e,t,n){var i,o=this.cache(e);if("string"==typeof t)o[v.camelCase(t)]=n;else for(i in t)o[v.camelCase(i)]=t[i];return o},get:function(e,t){return void 0===t?this.cache(e):e[this.expando]&&e[this.expando][v.camelCase(t)]},access:function(e,t,n){return void 0===t||t&&"string"==typeof t&&void 0===n?this.get(e,t):(this.set(e,t,n),void 0!==n?n:t)},remove:function(e,t){var n,i=e[this.expando];if(void 0!==i){if(void 0!==t){n=(t=Array.isArray(t)?t.map(v.camelCase):(t=v.camelCase(t))in i?[t]:t.match(O)||[]).length;for(;n--;)delete i[t[n]]}(void 0===t||v.isEmptyObject(i))&&(e.nodeType?e[this.expando]=void 0:delete e[this.expando])}},hasData:function(e){var t=e[this.expando];return void 0!==t&&!v.isEmptyObject(t)}};var U=new X,Y=new X,G=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,V=/[A-Z]/g;function Q(e,t,n){var i,o;if(void 0===n&&1===e.nodeType)if(i="data-"+t.replace(V,"-$&").toLowerCase(),"string"==typeof(n=e.getAttribute(i))){try{n="true"===(o=n)||"false"!==o&&("null"===o?null:o===+o+""?+o:G.test(o)?JSON.parse(o):o)}catch(e){}Y.set(e,t,n)}else n=void 0;return n}v.extend({hasData:function(e){return Y.hasData(e)||U.hasData(e)},data:function(e,t,n){return Y.access(e,t,n)},removeData:function(e,t){Y.remove(e,t)},_data:function(e,t,n){return U.access(e,t,n)},_removeData:function(e,t){U.remove(e,t)}}),v.fn.extend({data:function(e,t){var n,i,o,r=this[0],s=r&&r.attributes;if(void 0===e){if(this.length&&(o=Y.get(r),1===r.nodeType&&!U.get(r,"hasDataAttrs"))){for(n=s.length;n--;)s[n]&&0===(i=s[n].name).indexOf("data-")&&(i=v.camelCase(i.slice(5)),Q(r,i,o[i]));U.set(r,"hasDataAttrs",!0)}return o}return"object"==typeof e?this.each(function(){Y.set(this,e)}):$(this,function(t){var n;if(r&&void 0===t)return void 0!==(n=Y.get(r,e))?n:void 0!==(n=Q(r,e))?n:void 0;this.each(function(){Y.set(this,e,t)})},null,t,arguments.length>1,null,!0)},removeData:function(e){return this.each(function(){Y.remove(this,e)})}}),v.extend({queue:function(e,t,n){var i;if(e)return t=(t||"fx")+"queue",i=U.get(e,t),n&&(!i||Array.isArray(n)?i=U.access(e,t,v.makeArray(n)):i.push(n)),i||[]},dequeue:function(e,t){t=t||"fx";var n=v.queue(e,t),i=n.length,o=n.shift(),r=v._queueHooks(e,t);"inprogress"===o&&(o=n.shift(),i--),o&&("fx"===t&&n.unshift("inprogress"),delete r.stop,o.call(e,function(){v.dequeue(e,t)},r)),!i&&r&&r.empty.fire()},_queueHooks:function(e,t){var n=t+"queueHooks";return U.get(e,n)||U.access(e,n,{empty:v.Callbacks("once memory").add(function(){U.remove(e,[t+"queue",n])})})}}),v.fn.extend({queue:function(e,t){var n=2;return"string"!=typeof e&&(t=e,e="fx",n--),arguments.length<n?v.queue(this[0],e):void 0===t?this:this.each(function(){var n=v.queue(this,e,t);v._queueHooks(this,e),"fx"===e&&"inprogress"!==n[0]&&v.dequeue(this,e)})},dequeue:function(e){return this.each(function(){v.dequeue(this,e)})},clearQueue:function(e){return this.queue(e||"fx",[])},promise:function(e,t){var n,i=1,o=v.Deferred(),r=this,s=this.length,a=function(){--i||o.resolveWith(r,[r])};for("string"!=typeof e&&(t=e,e=void 0),e=e||"fx";s--;)(n=U.get(r[s],e+"queueHooks"))&&n.empty&&(i++,n.empty.add(a));return a(),o.promise(t)}});var K=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,J=new RegExp("^(?:([+-])=|)("+K+")([a-z%]*)$","i"),Z=["Top","Right","Bottom","Left"],ee=function(e,t){return"none"===(e=t||e).style.display||""===e.style.display&&v.contains(e.ownerDocument,e)&&"none"===v.css(e,"display")},te=function(e,t,n,i){var o,r,s={};for(r in t)s[r]=e.style[r],e.style[r]=t[r];o=n.apply(e,i||[]);for(r in t)e.style[r]=s[r];return o};function ne(e,t,n,i){var o,r=1,s=20,a=i?function(){return i.cur()}:function(){return v.css(e,t,"")},l=a(),u=n&&n[3]||(v.cssNumber[t]?"":"px"),c=(v.cssNumber[t]||"px"!==u&&+l)&&J.exec(v.css(e,t));if(c&&c[3]!==u){u=u||c[3],n=n||[],c=+l||1;do{c/=r=r||".5",v.style(e,t,c+u)}while(r!==(r=a()/l)&&1!==r&&--s)}return n&&(c=+c||+l||0,o=n[1]?c+(n[1]+1)*n[2]:+n[2],i&&(i.unit=u,i.start=c,i.end=o)),o}var ie={};function oe(e,t){for(var n,i,o,r,s,a,l,u=[],c=0,p=e.length;c<p;c++)(i=e[c]).style&&(n=i.style.display,t?("none"===n&&(u[c]=U.get(i,"display")||null,u[c]||(i.style.display="")),""===i.style.display&&ee(i)&&(u[c]=(r=void 0,s=void 0,void 0,l=void 0,s=(o=i).ownerDocument,a=o.nodeName,(l=ie[a])||(r=s.body.appendChild(s.createElement(a)),l=v.css(r,"display"),r.parentNode.removeChild(r),"none"===l&&(l="block"),ie[a]=l,l)))):"none"!==n&&(u[c]="none",U.set(i,"display",n)));for(c=0;c<p;c++)null!=u[c]&&(e[c].style.display=u[c]);return e}v.fn.extend({show:function(){return oe(this,!0)},hide:function(){return oe(this)},toggle:function(e){return"boolean"==typeof e?e?this.show():this.hide():this.each(function(){ee(this)?v(this).show():v(this).hide()})}});var re=/^(?:checkbox|radio)$/i,se=/<([a-z][^\/\0>\x20\t\r\n\f]+)/i,ae=/^$|\/(?:java|ecma)script/i,le={option:[1,"<select multiple='multiple'>","</select>"],thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};function ue(e,t){var n;return n=void 0!==e.getElementsByTagName?e.getElementsByTagName(t||"*"):void 0!==e.querySelectorAll?e.querySelectorAll(t||"*"):[],void 0===t||t&&S(e,t)?v.merge([e],n):n}function ce(e,t){for(var n=0,i=e.length;n<i;n++)U.set(e[n],"globalEval",!t||U.get(t[n],"globalEval"))}le.optgroup=le.option,le.tbody=le.tfoot=le.colgroup=le.caption=le.thead,le.th=le.td;var pe,fe,he=/<|&#?\w+;/;function de(e,t,n,i,o){for(var r,s,a,l,u,c,p=t.createDocumentFragment(),f=[],h=0,d=e.length;h<d;h++)if((r=e[h])||0===r)if("object"===v.type(r))v.merge(f,r.nodeType?[r]:r);else if(he.test(r)){for(s=s||p.appendChild(t.createElement("div")),a=(se.exec(r)||["",""])[1].toLowerCase(),l=le[a]||le._default,s.innerHTML=l[1]+v.htmlPrefilter(r)+l[2],c=l[0];c--;)s=s.lastChild;v.merge(f,s.childNodes),(s=p.firstChild).textContent=""}else f.push(t.createTextNode(r));for(p.textContent="",h=0;r=f[h++];)if(i&&v.inArray(r,i)>-1)o&&o.push(r);else if(u=v.contains(r.ownerDocument,r),s=ue(p.appendChild(r),"script"),u&&ce(s),n)for(c=0;r=s[c++];)ae.test(r.type||"")&&n.push(r);return p}pe=i.createDocumentFragment().appendChild(i.createElement("div")),(fe=i.createElement("input")).setAttribute("type","radio"),fe.setAttribute("checked","checked"),fe.setAttribute("name","t"),pe.appendChild(fe),d.checkClone=pe.cloneNode(!0).cloneNode(!0).lastChild.checked,pe.innerHTML="<textarea>x</textarea>",d.noCloneChecked=!!pe.cloneNode(!0).lastChild.defaultValue;var ge=i.documentElement,me=/^key/,ve=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,ye=/^([^.]*)(?:\.(.+)|)/;function be(){return!0}function xe(){return!1}function we(){try{return i.activeElement}catch(e){}}function Ce(e,t,n,i,o,r){var s,a;if("object"==typeof t){"string"!=typeof n&&(i=i||n,n=void 0);for(a in t)Ce(e,a,n,i,t[a],r);return e}if(null==i&&null==o?(o=n,i=n=void 0):null==o&&("string"==typeof n?(o=i,i=void 0):(o=i,i=n,n=void 0)),!1===o)o=xe;else if(!o)return e;return 1===r&&(s=o,(o=function(e){return v().off(e),s.apply(this,arguments)}).guid=s.guid||(s.guid=v.guid++)),e.each(function(){v.event.add(this,t,o,i,n)})}v.event={global:{},add:function(e,t,n,i,o){var r,s,a,l,u,c,p,f,h,d,g,m=U.get(e);if(m)for(n.handler&&(n=(r=n).handler,o=r.selector),o&&v.find.matchesSelector(ge,o),n.guid||(n.guid=v.guid++),(l=m.events)||(l=m.events={}),(s=m.handle)||(s=m.handle=function(t){return void 0!==v&&v.event.triggered!==t.type?v.event.dispatch.apply(e,arguments):void 0}),u=(t=(t||"").match(O)||[""]).length;u--;)h=g=(a=ye.exec(t[u])||[])[1],d=(a[2]||"").split(".").sort(),h&&(p=v.event.special[h]||{},h=(o?p.delegateType:p.bindType)||h,p=v.event.special[h]||{},c=v.extend({type:h,origType:g,data:i,handler:n,guid:n.guid,selector:o,needsContext:o&&v.expr.match.needsContext.test(o),namespace:d.join(".")},r),(f=l[h])||((f=l[h]=[]).delegateCount=0,p.setup&&!1!==p.setup.call(e,i,d,s)||e.addEventListener&&e.addEventListener(h,s)),p.add&&(p.add.call(e,c),c.handler.guid||(c.handler.guid=n.guid)),o?f.splice(f.delegateCount++,0,c):f.push(c),v.event.global[h]=!0)},remove:function(e,t,n,i,o){var r,s,a,l,u,c,p,f,h,d,g,m=U.hasData(e)&&U.get(e);if(m&&(l=m.events)){for(u=(t=(t||"").match(O)||[""]).length;u--;)if(h=g=(a=ye.exec(t[u])||[])[1],d=(a[2]||"").split(".").sort(),h){for(p=v.event.special[h]||{},f=l[h=(i?p.delegateType:p.bindType)||h]||[],a=a[2]&&new RegExp("(^|\\.)"+d.join("\\.(?:.*\\.|)")+"(\\.|$)"),s=r=f.length;r--;)c=f[r],!o&&g!==c.origType||n&&n.guid!==c.guid||a&&!a.test(c.namespace)||i&&i!==c.selector&&("**"!==i||!c.selector)||(f.splice(r,1),c.selector&&f.delegateCount--,p.remove&&p.remove.call(e,c));s&&!f.length&&(p.teardown&&!1!==p.teardown.call(e,d,m.handle)||v.removeEvent(e,h,m.handle),delete l[h])}else for(h in l)v.event.remove(e,h+t[u],n,i,!0);v.isEmptyObject(l)&&U.remove(e,"handle events")}},dispatch:function(e){var t,n,i,o,r,s,a=v.event.fix(e),l=new Array(arguments.length),u=(U.get(this,"events")||{})[a.type]||[],c=v.event.special[a.type]||{};for(l[0]=a,t=1;t<arguments.length;t++)l[t]=arguments[t];if(a.delegateTarget=this,!c.preDispatch||!1!==c.preDispatch.call(this,a)){for(s=v.event.handlers.call(this,a,u),t=0;(o=s[t++])&&!a.isPropagationStopped();)for(a.currentTarget=o.elem,n=0;(r=o.handlers[n++])&&!a.isImmediatePropagationStopped();)a.rnamespace&&!a.rnamespace.test(r.namespace)||(a.handleObj=r,a.data=r.data,void 0!==(i=((v.event.special[r.origType]||{}).handle||r.handler).apply(o.elem,l))&&!1===(a.result=i)&&(a.preventDefault(),a.stopPropagation()));return c.postDispatch&&c.postDispatch.call(this,a),a.result}},handlers:function(e,t){var n,i,o,r,s,a=[],l=t.delegateCount,u=e.target;if(l&&u.nodeType&&!("click"===e.type&&e.button>=1))for(;u!==this;u=u.parentNode||this)if(1===u.nodeType&&("click"!==e.type||!0!==u.disabled)){for(r=[],s={},n=0;n<l;n++)void 0===s[o=(i=t[n]).selector+" "]&&(s[o]=i.needsContext?v(o,this).index(u)>-1:v.find(o,this,null,[u]).length),s[o]&&r.push(i);r.length&&a.push({elem:u,handlers:r})}return u=this,l<t.length&&a.push({elem:u,handlers:t.slice(l)}),a},addProp:function(e,t){Object.defineProperty(v.Event.prototype,e,{enumerable:!0,configurable:!0,get:v.isFunction(t)?function(){if(this.originalEvent)return t(this.originalEvent)}:function(){if(this.originalEvent)return this.originalEvent[e]},set:function(t){Object.defineProperty(this,e,{enumerable:!0,configurable:!0,writable:!0,value:t})}})},fix:function(e){return e[v.expando]?e:new v.Event(e)},special:{load:{noBubble:!0},focus:{trigger:function(){if(this!==we()&&this.focus)return this.focus(),!1},delegateType:"focusin"},blur:{trigger:function(){if(this===we()&&this.blur)return this.blur(),!1},delegateType:"focusout"},click:{trigger:function(){if("checkbox"===this.type&&this.click&&S(this,"input"))return this.click(),!1},_default:function(e){return S(e.target,"a")}},beforeunload:{postDispatch:function(e){void 0!==e.result&&e.originalEvent&&(e.originalEvent.returnValue=e.result)}}}},v.removeEvent=function(e,t,n){e.removeEventListener&&e.removeEventListener(t,n)},v.Event=function(e,t){if(!(this instanceof v.Event))return new v.Event(e,t);e&&e.type?(this.originalEvent=e,this.type=e.type,this.isDefaultPrevented=e.defaultPrevented||void 0===e.defaultPrevented&&!1===e.returnValue?be:xe,this.target=e.target&&3===e.target.nodeType?e.target.parentNode:e.target,this.currentTarget=e.currentTarget,this.relatedTarget=e.relatedTarget):this.type=e,t&&v.extend(this,t),this.timeStamp=e&&e.timeStamp||v.now(),this[v.expando]=!0},v.Event.prototype={constructor:v.Event,isDefaultPrevented:xe,isPropagationStopped:xe,isImmediatePropagationStopped:xe,isSimulated:!1,preventDefault:function(){var e=this.originalEvent;this.isDefaultPrevented=be,e&&!this.isSimulated&&e.preventDefault()},stopPropagation:function(){var e=this.originalEvent;this.isPropagationStopped=be,e&&!this.isSimulated&&e.stopPropagation()},stopImmediatePropagation:function(){var e=this.originalEvent;this.isImmediatePropagationStopped=be,e&&!this.isSimulated&&e.stopImmediatePropagation(),this.stopPropagation()}},v.each({altKey:!0,bubbles:!0,cancelable:!0,changedTouches:!0,ctrlKey:!0,detail:!0,eventPhase:!0,metaKey:!0,pageX:!0,pageY:!0,shiftKey:!0,view:!0,char:!0,charCode:!0,key:!0,keyCode:!0,button:!0,buttons:!0,clientX:!0,clientY:!0,offsetX:!0,offsetY:!0,pointerId:!0,pointerType:!0,screenX:!0,screenY:!0,targetTouches:!0,toElement:!0,touches:!0,which:function(e){var t=e.button;return null==e.which&&me.test(e.type)?null!=e.charCode?e.charCode:e.keyCode:!e.which&&void 0!==t&&ve.test(e.type)?1&t?1:2&t?3:4&t?2:0:e.which}},v.event.addProp),v.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(e,t){v.event.special[e]={delegateType:t,bindType:t,handle:function(e){var n,i=e.relatedTarget,o=e.handleObj;return i&&(i===this||v.contains(this,i))||(e.type=o.origType,n=o.handler.apply(this,arguments),e.type=t),n}}}),v.fn.extend({on:function(e,t,n,i){return Ce(this,e,t,n,i)},one:function(e,t,n,i){return Ce(this,e,t,n,i,1)},off:function(e,t,n){var i,o;if(e&&e.preventDefault&&e.handleObj)return i=e.handleObj,v(e.delegateTarget).off(i.namespace?i.origType+"."+i.namespace:i.origType,i.selector,i.handler),this;if("object"==typeof e){for(o in e)this.off(o,t,e[o]);return this}return!1!==t&&"function"!=typeof t||(n=t,t=void 0),!1===n&&(n=xe),this.each(function(){v.event.remove(this,e,n,t)})}});var _e=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([a-z][^\/\0>\x20\t\r\n\f]*)[^>]*)\/>/gi,Te=/<script|<style|<link/i,Ee=/checked\s*(?:[^=]|=\s*.checked.)/i,ke=/^true\/(.*)/,Se=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g;function Pe(e,t){return S(e,"table")&&S(11!==t.nodeType?t:t.firstChild,"tr")&&v(">tbody",e)[0]||e}function Ne(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function De(e){var t=ke.exec(e.type);return t?e.type=t[1]:e.removeAttribute("type"),e}function Ae(e,t){var n,i,o,r,s,a,l,u;if(1===t.nodeType){if(U.hasData(e)&&(r=U.access(e),s=U.set(t,r),u=r.events)){delete s.handle,s.events={};for(o in u)for(n=0,i=u[o].length;n<i;n++)v.event.add(t,o,u[o][n])}Y.hasData(e)&&(a=Y.access(e),l=v.extend({},a),Y.set(t,l))}}function Me(e,t,n,i){t=s.apply([],t);var o,r,a,l,u,c,p=0,f=e.length,h=f-1,m=t[0],y=v.isFunction(m);if(y||f>1&&"string"==typeof m&&!d.checkClone&&Ee.test(m))return e.each(function(o){var r=e.eq(o);y&&(t[0]=m.call(this,o,r.html())),Me(r,t,n,i)});if(f&&(r=(o=de(t,e[0].ownerDocument,!1,e,i)).firstChild,1===o.childNodes.length&&(o=r),r||i)){for(l=(a=v.map(ue(o,"script"),Ne)).length;p<f;p++)u=o,p!==h&&(u=v.clone(u,!0,!0),l&&v.merge(a,ue(u,"script"))),n.call(e[p],u,p);if(l)for(c=a[a.length-1].ownerDocument,v.map(a,De),p=0;p<l;p++)u=a[p],ae.test(u.type||"")&&!U.access(u,"globalEval")&&v.contains(c,u)&&(u.src?v._evalUrl&&v._evalUrl(u.src):g(u.textContent.replace(Se,""),c))}return e}function je(e,t,n){for(var i,o=t?v.filter(t,e):e,r=0;null!=(i=o[r]);r++)n||1!==i.nodeType||v.cleanData(ue(i)),i.parentNode&&(n&&v.contains(i.ownerDocument,i)&&ce(ue(i,"script")),i.parentNode.removeChild(i));return e}v.extend({htmlPrefilter:function(e){return e.replace(_e,"<$1></$2>")},clone:function(e,t,n){var i,o,r,s,a,l,u,c=e.cloneNode(!0),p=v.contains(e.ownerDocument,e);if(!(d.noCloneChecked||1!==e.nodeType&&11!==e.nodeType||v.isXMLDoc(e)))for(s=ue(c),i=0,o=(r=ue(e)).length;i<o;i++)a=r[i],l=s[i],void 0,"input"===(u=l.nodeName.toLowerCase())&&re.test(a.type)?l.checked=a.checked:"input"!==u&&"textarea"!==u||(l.defaultValue=a.defaultValue);if(t)if(n)for(r=r||ue(e),s=s||ue(c),i=0,o=r.length;i<o;i++)Ae(r[i],s[i]);else Ae(e,c);return(s=ue(c,"script")).length>0&&ce(s,!p&&ue(e,"script")),c},cleanData:function(e){for(var t,n,i,o=v.event.special,r=0;void 0!==(n=e[r]);r++)if(z(n)){if(t=n[U.expando]){if(t.events)for(i in t.events)o[i]?v.event.remove(n,i):v.removeEvent(n,i,t.handle);n[U.expando]=void 0}n[Y.expando]&&(n[Y.expando]=void 0)}}}),v.fn.extend({detach:function(e){return je(this,e,!0)},remove:function(e){return je(this,e)},text:function(e){return $(this,function(e){return void 0===e?v.text(this):this.empty().each(function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=e)})},null,e,arguments.length)},append:function(){return Me(this,arguments,function(e){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||Pe(this,e).appendChild(e)})},prepend:function(){return Me(this,arguments,function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=Pe(this,e);t.insertBefore(e,t.firstChild)}})},before:function(){return Me(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this)})},after:function(){return Me(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this.nextSibling)})},empty:function(){for(var e,t=0;null!=(e=this[t]);t++)1===e.nodeType&&(v.cleanData(ue(e,!1)),e.textContent="");return this},clone:function(e,t){return e=null!=e&&e,t=null==t?e:t,this.map(function(){return v.clone(this,e,t)})},html:function(e){return $(this,function(e){var t=this[0]||{},n=0,i=this.length;if(void 0===e&&1===t.nodeType)return t.innerHTML;if("string"==typeof e&&!Te.test(e)&&!le[(se.exec(e)||["",""])[1].toLowerCase()]){e=v.htmlPrefilter(e);try{for(;n<i;n++)1===(t=this[n]||{}).nodeType&&(v.cleanData(ue(t,!1)),t.innerHTML=e);t=0}catch(e){}}t&&this.empty().append(e)},null,e,arguments.length)},replaceWith:function(){var e=[];return Me(this,arguments,function(t){var n=this.parentNode;v.inArray(this,e)<0&&(v.cleanData(ue(this)),n&&n.replaceChild(t,this))},e)}}),v.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(e,t){v.fn[e]=function(e){for(var n,i=[],o=v(e),r=o.length-1,s=0;s<=r;s++)n=s===r?this:this.clone(!0),v(o[s])[t](n),a.apply(i,n.get());return this.pushStack(i)}});var He=/^margin/,Le=new RegExp("^("+K+")(?!px)[a-z%]+$","i"),Oe=function(t){var n=t.ownerDocument.defaultView;return n&&n.opener||(n=e),n.getComputedStyle(t)};function Ie(e,t,n){var i,o,r,s,a=e.style;return(n=n||Oe(e))&&(""!==(s=n.getPropertyValue(t)||n[t])||v.contains(e.ownerDocument,e)||(s=v.style(e,t)),!d.pixelMarginRight()&&Le.test(s)&&He.test(t)&&(i=a.width,o=a.minWidth,r=a.maxWidth,a.minWidth=a.maxWidth=a.width=s,s=n.width,a.width=i,a.minWidth=o,a.maxWidth=r)),void 0!==s?s+"":s}function Fe(e,t){return{get:function(){if(!e())return(this.get=t).apply(this,arguments);delete this.get}}}!function(){function t(){if(l){l.style.cssText="box-sizing:border-box;position:relative;display:block;margin:auto;border:1px;padding:1px;top:1%;width:50%",l.innerHTML="",ge.appendChild(a);var t=e.getComputedStyle(l);n="1%"!==t.top,s="2px"===t.marginLeft,o="4px"===t.width,l.style.marginRight="50%",r="4px"===t.marginRight,ge.removeChild(a),l=null}}var n,o,r,s,a=i.createElement("div"),l=i.createElement("div");l.style&&(l.style.backgroundClip="content-box",l.cloneNode(!0).style.backgroundClip="",d.clearCloneStyle="content-box"===l.style.backgroundClip,a.style.cssText="border:0;width:8px;height:0;top:0;left:-9999px;padding:0;margin-top:1px;position:absolute",a.appendChild(l),v.extend(d,{pixelPosition:function(){return t(),n},boxSizingReliable:function(){return t(),o},pixelMarginRight:function(){return t(),r},reliableMarginLeft:function(){return t(),s}}))}();var qe=/^(none|table(?!-c[ea]).+)/,Re=/^--/,We={position:"absolute",visibility:"hidden",display:"block"},Be={letterSpacing:"0",fontWeight:"400"},$e=["Webkit","Moz","ms"],ze=i.createElement("div").style;function Xe(e){var t=v.cssProps[e];return t||(t=v.cssProps[e]=function(e){if(e in ze)return e;for(var t=e[0].toUpperCase()+e.slice(1),n=$e.length;n--;)if((e=$e[n]+t)in ze)return e}(e)||e),t}function Ue(e,t,n){var i=J.exec(t);return i?Math.max(0,i[2]-(n||0))+(i[3]||"px"):t}function Ye(e,t,n,i,o){var r,s=0;for(r=n===(i?"border":"content")?4:"width"===t?1:0;r<4;r+=2)"margin"===n&&(s+=v.css(e,n+Z[r],!0,o)),i?("content"===n&&(s-=v.css(e,"padding"+Z[r],!0,o)),"margin"!==n&&(s-=v.css(e,"border"+Z[r]+"Width",!0,o))):(s+=v.css(e,"padding"+Z[r],!0,o),"padding"!==n&&(s+=v.css(e,"border"+Z[r]+"Width",!0,o)));return s}function Ge(e,t,n){var i,o=Oe(e),r=Ie(e,t,o),s="border-box"===v.css(e,"boxSizing",!1,o);return Le.test(r)?r:(i=s&&(d.boxSizingReliable()||r===e.style[t]),"auto"===r&&(r=e["offset"+t[0].toUpperCase()+t.slice(1)]),(r=parseFloat(r)||0)+Ye(e,t,n||(s?"border":"content"),i,o)+"px")}function Ve(e,t,n,i,o){return new Ve.prototype.init(e,t,n,i,o)}v.extend({cssHooks:{opacity:{get:function(e,t){if(t){var n=Ie(e,"opacity");return""===n?"1":n}}}},cssNumber:{animationIterationCount:!0,columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{float:"cssFloat"},style:function(e,t,n,i){if(e&&3!==e.nodeType&&8!==e.nodeType&&e.style){var o,r,s,a=v.camelCase(t),l=Re.test(t),u=e.style;if(l||(t=Xe(a)),s=v.cssHooks[t]||v.cssHooks[a],void 0===n)return s&&"get"in s&&void 0!==(o=s.get(e,!1,i))?o:u[t];"string"===(r=typeof n)&&(o=J.exec(n))&&o[1]&&(n=ne(e,t,o),r="number"),null!=n&&n==n&&("number"===r&&(n+=o&&o[3]||(v.cssNumber[a]?"":"px")),d.clearCloneStyle||""!==n||0!==t.indexOf("background")||(u[t]="inherit"),s&&"set"in s&&void 0===(n=s.set(e,n,i))||(l?u.setProperty(t,n):u[t]=n))}},css:function(e,t,n,i){var o,r,s,a=v.camelCase(t);return Re.test(t)||(t=Xe(a)),(s=v.cssHooks[t]||v.cssHooks[a])&&"get"in s&&(o=s.get(e,!0,n)),void 0===o&&(o=Ie(e,t,i)),"normal"===o&&t in Be&&(o=Be[t]),""===n||n?(r=parseFloat(o),!0===n||isFinite(r)?r||0:o):o}}),v.each(["height","width"],function(e,t){v.cssHooks[t]={get:function(e,n,i){if(n)return!qe.test(v.css(e,"display"))||e.getClientRects().length&&e.getBoundingClientRect().width?Ge(e,t,i):te(e,We,function(){return Ge(e,t,i)})},set:function(e,n,i){var o,r=i&&Oe(e),s=i&&Ye(e,t,i,"border-box"===v.css(e,"boxSizing",!1,r),r);return s&&(o=J.exec(n))&&"px"!==(o[3]||"px")&&(e.style[t]=n,n=v.css(e,t)),Ue(0,n,s)}}}),v.cssHooks.marginLeft=Fe(d.reliableMarginLeft,function(e,t){if(t)return(parseFloat(Ie(e,"marginLeft"))||e.getBoundingClientRect().left-te(e,{marginLeft:0},function(){return e.getBoundingClientRect().left}))+"px"}),v.each({margin:"",padding:"",border:"Width"},function(e,t){v.cssHooks[e+t]={expand:function(n){for(var i=0,o={},r="string"==typeof n?n.split(" "):[n];i<4;i++)o[e+Z[i]+t]=r[i]||r[i-2]||r[0];return o}},He.test(e)||(v.cssHooks[e+t].set=Ue)}),v.fn.extend({css:function(e,t){return $(this,function(e,t,n){var i,o,r={},s=0;if(Array.isArray(t)){for(i=Oe(e),o=t.length;s<o;s++)r[t[s]]=v.css(e,t[s],!1,i);return r}return void 0!==n?v.style(e,t,n):v.css(e,t)},e,t,arguments.length>1)}}),v.Tween=Ve,Ve.prototype={constructor:Ve,init:function(e,t,n,i,o,r){this.elem=e,this.prop=n,this.easing=o||v.easing._default,this.options=t,this.start=this.now=this.cur(),this.end=i,this.unit=r||(v.cssNumber[n]?"":"px")},cur:function(){var e=Ve.propHooks[this.prop];return e&&e.get?e.get(this):Ve.propHooks._default.get(this)},run:function(e){var t,n=Ve.propHooks[this.prop];return this.options.duration?this.pos=t=v.easing[this.easing](e,this.options.duration*e,0,1,this.options.duration):this.pos=t=e,this.now=(this.end-this.start)*t+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),n&&n.set?n.set(this):Ve.propHooks._default.set(this),this}},Ve.prototype.init.prototype=Ve.prototype,Ve.propHooks={_default:{get:function(e){var t;return 1!==e.elem.nodeType||null!=e.elem[e.prop]&&null==e.elem.style[e.prop]?e.elem[e.prop]:(t=v.css(e.elem,e.prop,""))&&"auto"!==t?t:0},set:function(e){v.fx.step[e.prop]?v.fx.step[e.prop](e):1!==e.elem.nodeType||null==e.elem.style[v.cssProps[e.prop]]&&!v.cssHooks[e.prop]?e.elem[e.prop]=e.now:v.style(e.elem,e.prop,e.now+e.unit)}}},Ve.propHooks.scrollTop=Ve.propHooks.scrollLeft={set:function(e){e.elem.nodeType&&e.elem.parentNode&&(e.elem[e.prop]=e.now)}},v.easing={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2},_default:"swing"},v.fx=Ve.prototype.init,v.fx.step={};var Qe,Ke,Je,Ze,et=/^(?:toggle|show|hide)$/,tt=/queueHooks$/;function nt(){Ke&&(!1===i.hidden&&e.requestAnimationFrame?e.requestAnimationFrame(nt):e.setTimeout(nt,v.fx.interval),v.fx.tick())}function it(){return e.setTimeout(function(){Qe=void 0}),Qe=v.now()}function ot(e,t){var n,i=0,o={height:e};for(t=t?1:0;i<4;i+=2-t)o["margin"+(n=Z[i])]=o["padding"+n]=e;return t&&(o.opacity=o.width=e),o}function rt(e,t,n){for(var i,o=(st.tweeners[t]||[]).concat(st.tweeners["*"]),r=0,s=o.length;r<s;r++)if(i=o[r].call(n,t,e))return i}function st(e,t,n){var i,o,r=0,s=st.prefilters.length,a=v.Deferred().always(function(){delete l.elem}),l=function(){if(o)return!1;for(var t=Qe||it(),n=Math.max(0,u.startTime+u.duration-t),i=1-(n/u.duration||0),r=0,s=u.tweens.length;r<s;r++)u.tweens[r].run(i);return a.notifyWith(e,[u,i,n]),i<1&&s?n:(s||a.notifyWith(e,[u,1,0]),a.resolveWith(e,[u]),!1)},u=a.promise({elem:e,props:v.extend({},t),opts:v.extend(!0,{specialEasing:{},easing:v.easing._default},n),originalProperties:t,originalOptions:n,startTime:Qe||it(),duration:n.duration,tweens:[],createTween:function(t,n){var i=v.Tween(e,u.opts,t,n,u.opts.specialEasing[t]||u.opts.easing);return u.tweens.push(i),i},stop:function(t){var n=0,i=t?u.tweens.length:0;if(o)return this;for(o=!0;n<i;n++)u.tweens[n].run(1);return t?(a.notifyWith(e,[u,1,0]),a.resolveWith(e,[u,t])):a.rejectWith(e,[u,t]),this}}),c=u.props;for(!function(e,t){var n,i,o,r,s;for(n in e)if(o=t[i=v.camelCase(n)],r=e[n],Array.isArray(r)&&(o=r[1],r=e[n]=r[0]),n!==i&&(e[i]=r,delete e[n]),(s=v.cssHooks[i])&&"expand"in s){r=s.expand(r),delete e[i];for(n in r)n in e||(e[n]=r[n],t[n]=o)}else t[i]=o}(c,u.opts.specialEasing);r<s;r++)if(i=st.prefilters[r].call(u,e,c,u.opts))return v.isFunction(i.stop)&&(v._queueHooks(u.elem,u.opts.queue).stop=v.proxy(i.stop,i)),i;return v.map(c,rt,u),v.isFunction(u.opts.start)&&u.opts.start.call(e,u),u.progress(u.opts.progress).done(u.opts.done,u.opts.complete).fail(u.opts.fail).always(u.opts.always),v.fx.timer(v.extend(l,{elem:e,anim:u,queue:u.opts.queue})),u}v.Animation=v.extend(st,{tweeners:{"*":[function(e,t){var n=this.createTween(e,t);return ne(n.elem,e,J.exec(t),n),n}]},tweener:function(e,t){v.isFunction(e)?(t=e,e=["*"]):e=e.match(O);for(var n,i=0,o=e.length;i<o;i++)n=e[i],st.tweeners[n]=st.tweeners[n]||[],st.tweeners[n].unshift(t)},prefilters:[function(e,t,n){var i,o,r,s,a,l,u,c,p="width"in t||"height"in t,f=this,h={},d=e.style,g=e.nodeType&&ee(e),m=U.get(e,"fxshow");n.queue||(null==(s=v._queueHooks(e,"fx")).unqueued&&(s.unqueued=0,a=s.empty.fire,s.empty.fire=function(){s.unqueued||a()}),s.unqueued++,f.always(function(){f.always(function(){s.unqueued--,v.queue(e,"fx").length||s.empty.fire()})}));for(i in t)if(o=t[i],et.test(o)){if(delete t[i],r=r||"toggle"===o,o===(g?"hide":"show")){if("show"!==o||!m||void 0===m[i])continue;g=!0}h[i]=m&&m[i]||v.style(e,i)}if((l=!v.isEmptyObject(t))||!v.isEmptyObject(h)){p&&1===e.nodeType&&(n.overflow=[d.overflow,d.overflowX,d.overflowY],null==(u=m&&m.display)&&(u=U.get(e,"display")),"none"===(c=v.css(e,"display"))&&(u?c=u:(oe([e],!0),u=e.style.display||u,c=v.css(e,"display"),oe([e]))),("inline"===c||"inline-block"===c&&null!=u)&&"none"===v.css(e,"float")&&(l||(f.done(function(){d.display=u}),null==u&&(c=d.display,u="none"===c?"":c)),d.display="inline-block")),n.overflow&&(d.overflow="hidden",f.always(function(){d.overflow=n.overflow[0],d.overflowX=n.overflow[1],d.overflowY=n.overflow[2]})),l=!1;for(i in h)l||(m?"hidden"in m&&(g=m.hidden):m=U.access(e,"fxshow",{display:u}),r&&(m.hidden=!g),g&&oe([e],!0),f.done(function(){g||oe([e]),U.remove(e,"fxshow");for(i in h)v.style(e,i,h[i])})),l=rt(g?m[i]:0,i,f),i in m||(m[i]=l.start,g&&(l.end=l.start,l.start=0))}}],prefilter:function(e,t){t?st.prefilters.unshift(e):st.prefilters.push(e)}}),v.speed=function(e,t,n){var i=e&&"object"==typeof e?v.extend({},e):{complete:n||!n&&t||v.isFunction(e)&&e,duration:e,easing:n&&t||t&&!v.isFunction(t)&&t};return v.fx.off?i.duration=0:"number"!=typeof i.duration&&(i.duration in v.fx.speeds?i.duration=v.fx.speeds[i.duration]:i.duration=v.fx.speeds._default),null!=i.queue&&!0!==i.queue||(i.queue="fx"),i.old=i.complete,i.complete=function(){v.isFunction(i.old)&&i.old.call(this),i.queue&&v.dequeue(this,i.queue)},i},v.fn.extend({fadeTo:function(e,t,n,i){return this.filter(ee).css("opacity",0).show().end().animate({opacity:t},e,n,i)},animate:function(e,t,n,i){var o=v.isEmptyObject(e),r=v.speed(t,n,i),s=function(){var t=st(this,v.extend({},e),r);(o||U.get(this,"finish"))&&t.stop(!0)};return s.finish=s,o||!1===r.queue?this.each(s):this.queue(r.queue,s)},stop:function(e,t,n){var i=function(e){var t=e.stop;delete e.stop,t(n)};return"string"!=typeof e&&(n=t,t=e,e=void 0),t&&!1!==e&&this.queue(e||"fx",[]),this.each(function(){var t=!0,o=null!=e&&e+"queueHooks",r=v.timers,s=U.get(this);if(o)s[o]&&s[o].stop&&i(s[o]);else for(o in s)s[o]&&s[o].stop&&tt.test(o)&&i(s[o]);for(o=r.length;o--;)r[o].elem!==this||null!=e&&r[o].queue!==e||(r[o].anim.stop(n),t=!1,r.splice(o,1));!t&&n||v.dequeue(this,e)})},finish:function(e){return!1!==e&&(e=e||"fx"),this.each(function(){var t,n=U.get(this),i=n[e+"queue"],o=n[e+"queueHooks"],r=v.timers,s=i?i.length:0;for(n.finish=!0,v.queue(this,e,[]),o&&o.stop&&o.stop.call(this,!0),t=r.length;t--;)r[t].elem===this&&r[t].queue===e&&(r[t].anim.stop(!0),r.splice(t,1));for(t=0;t<s;t++)i[t]&&i[t].finish&&i[t].finish.call(this);delete n.finish})}}),v.each(["toggle","show","hide"],function(e,t){var n=v.fn[t];v.fn[t]=function(e,i,o){return null==e||"boolean"==typeof e?n.apply(this,arguments):this.animate(ot(t,!0),e,i,o)}}),v.each({slideDown:ot("show"),slideUp:ot("hide"),slideToggle:ot("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(e,t){v.fn[e]=function(e,n,i){return this.animate(t,e,n,i)}}),v.timers=[],v.fx.tick=function(){var e,t=0,n=v.timers;for(Qe=v.now();t<n.length;t++)(e=n[t])()||n[t]!==e||n.splice(t--,1);n.length||v.fx.stop(),Qe=void 0},v.fx.timer=function(e){v.timers.push(e),v.fx.start()},v.fx.interval=13,v.fx.start=function(){Ke||(Ke=!0,nt())},v.fx.stop=function(){Ke=null},v.fx.speeds={slow:600,fast:200,_default:400},v.fn.delay=function(t,n){return t=v.fx&&v.fx.speeds[t]||t,n=n||"fx",this.queue(n,function(n,i){var o=e.setTimeout(n,t);i.stop=function(){e.clearTimeout(o)}})},Je=i.createElement("input"),Ze=i.createElement("select").appendChild(i.createElement("option")),Je.type="checkbox",d.checkOn=""!==Je.value,d.optSelected=Ze.selected,(Je=i.createElement("input")).value="t",Je.type="radio",d.radioValue="t"===Je.value;var at,lt=v.expr.attrHandle;v.fn.extend({attr:function(e,t){return $(this,v.attr,e,t,arguments.length>1)},removeAttr:function(e){return this.each(function(){v.removeAttr(this,e)})}}),v.extend({attr:function(e,t,n){var i,o,r=e.nodeType;if(3!==r&&8!==r&&2!==r)return void 0===e.getAttribute?v.prop(e,t,n):(1===r&&v.isXMLDoc(e)||(o=v.attrHooks[t.toLowerCase()]||(v.expr.match.bool.test(t)?at:void 0)),void 0!==n?null===n?void v.removeAttr(e,t):o&&"set"in o&&void 0!==(i=o.set(e,n,t))?i:(e.setAttribute(t,n+""),n):o&&"get"in o&&null!==(i=o.get(e,t))?i:null==(i=v.find.attr(e,t))?void 0:i)},attrHooks:{type:{set:function(e,t){if(!d.radioValue&&"radio"===t&&S(e,"input")){var n=e.value;return e.setAttribute("type",t),n&&(e.value=n),t}}}},removeAttr:function(e,t){var n,i=0,o=t&&t.match(O);if(o&&1===e.nodeType)for(;n=o[i++];)e.removeAttribute(n)}}),at={set:function(e,t,n){return!1===t?v.removeAttr(e,n):e.setAttribute(n,n),n}},v.each(v.expr.match.bool.source.match(/\w+/g),function(e,t){var n=lt[t]||v.find.attr;lt[t]=function(e,t,i){var o,r,s=t.toLowerCase();return i||(r=lt[s],lt[s]=o,o=null!=n(e,t,i)?s:null,lt[s]=r),o}});var ut=/^(?:input|select|textarea|button)$/i,ct=/^(?:a|area)$/i;function pt(e){return(e.match(O)||[]).join(" ")}function ft(e){return e.getAttribute&&e.getAttribute("class")||""}v.fn.extend({prop:function(e,t){return $(this,v.prop,e,t,arguments.length>1)},removeProp:function(e){return this.each(function(){delete this[v.propFix[e]||e]})}}),v.extend({prop:function(e,t,n){var i,o,r=e.nodeType;if(3!==r&&8!==r&&2!==r)return 1===r&&v.isXMLDoc(e)||(t=v.propFix[t]||t,o=v.propHooks[t]),void 0!==n?o&&"set"in o&&void 0!==(i=o.set(e,n,t))?i:e[t]=n:o&&"get"in o&&null!==(i=o.get(e,t))?i:e[t]},propHooks:{tabIndex:{get:function(e){var t=v.find.attr(e,"tabindex");return t?parseInt(t,10):ut.test(e.nodeName)||ct.test(e.nodeName)&&e.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),d.optSelected||(v.propHooks.selected={get:function(e){var t=e.parentNode;return t&&t.parentNode&&t.parentNode.selectedIndex,null},set:function(e){var t=e.parentNode;t&&(t.selectedIndex,t.parentNode&&t.parentNode.selectedIndex)}}),v.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){v.propFix[this.toLowerCase()]=this}),v.fn.extend({addClass:function(e){var t,n,i,o,r,s,a,l=0;if(v.isFunction(e))return this.each(function(t){v(this).addClass(e.call(this,t,ft(this)))});if("string"==typeof e&&e)for(t=e.match(O)||[];n=this[l++];)if(o=ft(n),i=1===n.nodeType&&" "+pt(o)+" "){for(s=0;r=t[s++];)i.indexOf(" "+r+" ")<0&&(i+=r+" ");o!==(a=pt(i))&&n.setAttribute("class",a)}return this},removeClass:function(e){var t,n,i,o,r,s,a,l=0;if(v.isFunction(e))return this.each(function(t){v(this).removeClass(e.call(this,t,ft(this)))});if(!arguments.length)return this.attr("class","");if("string"==typeof e&&e)for(t=e.match(O)||[];n=this[l++];)if(o=ft(n),i=1===n.nodeType&&" "+pt(o)+" "){for(s=0;r=t[s++];)for(;i.indexOf(" "+r+" ")>-1;)i=i.replace(" "+r+" "," ");o!==(a=pt(i))&&n.setAttribute("class",a)}return this},toggleClass:function(e,t){var n=typeof e;return"boolean"==typeof t&&"string"===n?t?this.addClass(e):this.removeClass(e):v.isFunction(e)?this.each(function(n){v(this).toggleClass(e.call(this,n,ft(this),t),t)}):this.each(function(){var t,i,o,r;if("string"===n)for(i=0,o=v(this),r=e.match(O)||[];t=r[i++];)o.hasClass(t)?o.removeClass(t):o.addClass(t);else void 0!==e&&"boolean"!==n||((t=ft(this))&&U.set(this,"__className__",t),this.setAttribute&&this.setAttribute("class",t||!1===e?"":U.get(this,"__className__")||""))})},hasClass:function(e){var t,n,i=0;for(t=" "+e+" ";n=this[i++];)if(1===n.nodeType&&(" "+pt(ft(n))+" ").indexOf(t)>-1)return!0;return!1}});var ht=/\r/g;v.fn.extend({val:function(e){var t,n,i,o=this[0];return arguments.length?(i=v.isFunction(e),this.each(function(n){var o;1===this.nodeType&&(null==(o=i?e.call(this,n,v(this).val()):e)?o="":"number"==typeof o?o+="":Array.isArray(o)&&(o=v.map(o,function(e){return null==e?"":e+""})),(t=v.valHooks[this.type]||v.valHooks[this.nodeName.toLowerCase()])&&"set"in t&&void 0!==t.set(this,o,"value")||(this.value=o))})):o?(t=v.valHooks[o.type]||v.valHooks[o.nodeName.toLowerCase()])&&"get"in t&&void 0!==(n=t.get(o,"value"))?n:"string"==typeof(n=o.value)?n.replace(ht,""):null==n?"":n:void 0}}),v.extend({valHooks:{option:{get:function(e){var t=v.find.attr(e,"value");return null!=t?t:pt(v.text(e))}},select:{get:function(e){var t,n,i,o=e.options,r=e.selectedIndex,s="select-one"===e.type,a=s?null:[],l=s?r+1:o.length;for(i=r<0?l:s?r:0;i<l;i++)if(((n=o[i]).selected||i===r)&&!n.disabled&&(!n.parentNode.disabled||!S(n.parentNode,"optgroup"))){if(t=v(n).val(),s)return t;a.push(t)}return a},set:function(e,t){for(var n,i,o=e.options,r=v.makeArray(t),s=o.length;s--;)((i=o[s]).selected=v.inArray(v.valHooks.option.get(i),r)>-1)&&(n=!0);return n||(e.selectedIndex=-1),r}}}}),v.each(["radio","checkbox"],function(){v.valHooks[this]={set:function(e,t){if(Array.isArray(t))return e.checked=v.inArray(v(e).val(),t)>-1}},d.checkOn||(v.valHooks[this].get=function(e){return null===e.getAttribute("value")?"on":e.value})});var dt=/^(?:focusinfocus|focusoutblur)$/;v.extend(v.event,{trigger:function(t,n,o,r){var s,a,l,u,c,f,h,d=[o||i],g=p.call(t,"type")?t.type:t,m=p.call(t,"namespace")?t.namespace.split("."):[];if(a=l=o=o||i,3!==o.nodeType&&8!==o.nodeType&&!dt.test(g+v.event.triggered)&&(g.indexOf(".")>-1&&(g=(m=g.split(".")).shift(),m.sort()),c=g.indexOf(":")<0&&"on"+g,(t=t[v.expando]?t:new v.Event(g,"object"==typeof t&&t)).isTrigger=r?2:3,t.namespace=m.join("."),t.rnamespace=t.namespace?new RegExp("(^|\\.)"+m.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,t.result=void 0,t.target||(t.target=o),n=null==n?[t]:v.makeArray(n,[t]),h=v.event.special[g]||{},r||!h.trigger||!1!==h.trigger.apply(o,n))){if(!r&&!h.noBubble&&!v.isWindow(o)){for(u=h.delegateType||g,dt.test(u+g)||(a=a.parentNode);a;a=a.parentNode)d.push(a),l=a;l===(o.ownerDocument||i)&&d.push(l.defaultView||l.parentWindow||e)}for(s=0;(a=d[s++])&&!t.isPropagationStopped();)t.type=s>1?u:h.bindType||g,(f=(U.get(a,"events")||{})[t.type]&&U.get(a,"handle"))&&f.apply(a,n),(f=c&&a[c])&&f.apply&&z(a)&&(t.result=f.apply(a,n),!1===t.result&&t.preventDefault());return t.type=g,r||t.isDefaultPrevented()||h._default&&!1!==h._default.apply(d.pop(),n)||!z(o)||c&&v.isFunction(o[g])&&!v.isWindow(o)&&((l=o[c])&&(o[c]=null),v.event.triggered=g,o[g](),v.event.triggered=void 0,l&&(o[c]=l)),t.result}},simulate:function(e,t,n){var i=v.extend(new v.Event,n,{type:e,isSimulated:!0});v.event.trigger(i,null,t)}}),v.fn.extend({trigger:function(e,t){return this.each(function(){v.event.trigger(e,t,this)})},triggerHandler:function(e,t){var n=this[0];if(n)return v.event.trigger(e,t,n,!0)}}),v.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),function(e,t){v.fn[t]=function(e,n){return arguments.length>0?this.on(t,null,e,n):this.trigger(t)}}),v.fn.extend({hover:function(e,t){return this.mouseenter(e).mouseleave(t||e)}}),d.focusin="onfocusin"in e,d.focusin||v.each({focus:"focusin",blur:"focusout"},function(e,t){var n=function(e){v.event.simulate(t,e.target,v.event.fix(e))};v.event.special[t]={setup:function(){var i=this.ownerDocument||this,o=U.access(i,t);o||i.addEventListener(e,n,!0),U.access(i,t,(o||0)+1)},teardown:function(){var i=this.ownerDocument||this,o=U.access(i,t)-1;o?U.access(i,t,o):(i.removeEventListener(e,n,!0),U.remove(i,t))}}});var gt=e.location,mt=v.now(),vt=/\?/;v.parseXML=function(t){var n;if(!t||"string"!=typeof t)return null;try{n=(new e.DOMParser).parseFromString(t,"text/xml")}catch(e){n=void 0}return n&&!n.getElementsByTagName("parsererror").length||v.error("Invalid XML: "+t),n};var yt=/\[\]$/,bt=/\r?\n/g,xt=/^(?:submit|button|image|reset|file)$/i,wt=/^(?:input|select|textarea|keygen)/i;function Ct(e,t,n,i){var o;if(Array.isArray(t))v.each(t,function(t,o){n||yt.test(e)?i(e,o):Ct(e+"["+("object"==typeof o&&null!=o?t:"")+"]",o,n,i)});else if(n||"object"!==v.type(t))i(e,t);else for(o in t)Ct(e+"["+o+"]",t[o],n,i)}v.param=function(e,t){var n,i=[],o=function(e,t){var n=v.isFunction(t)?t():t;i[i.length]=encodeURIComponent(e)+"="+encodeURIComponent(null==n?"":n)};if(Array.isArray(e)||e.jquery&&!v.isPlainObject(e))v.each(e,function(){o(this.name,this.value)});else for(n in e)Ct(n,e[n],t,o);return i.join("&")},v.fn.extend({serialize:function(){return v.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var e=v.prop(this,"elements");return e?v.makeArray(e):this}).filter(function(){var e=this.type;return this.name&&!v(this).is(":disabled")&&wt.test(this.nodeName)&&!xt.test(e)&&(this.checked||!re.test(e))}).map(function(e,t){var n=v(this).val();return null==n?null:Array.isArray(n)?v.map(n,function(e){return{name:t.name,value:e.replace(bt,"\r\n")}}):{name:t.name,value:n.replace(bt,"\r\n")}}).get()}});var _t=/%20/g,Tt=/#.*$/,Et=/([?&])_=[^&]*/,kt=/^(.*?):[ \t]*([^\r\n]*)$/gm,St=/^(?:GET|HEAD)$/,Pt=/^\/\//,Nt={},Dt={},At="*/".concat("*"),Mt=i.createElement("a");function jt(e){return function(t,n){"string"!=typeof t&&(n=t,t="*");var i,o=0,r=t.toLowerCase().match(O)||[];if(v.isFunction(n))for(;i=r[o++];)"+"===i[0]?(i=i.slice(1)||"*",(e[i]=e[i]||[]).unshift(n)):(e[i]=e[i]||[]).push(n)}}function Ht(e,t,n,i){var o={},r=e===Dt;function s(a){var l;return o[a]=!0,v.each(e[a]||[],function(e,a){var u=a(t,n,i);return"string"!=typeof u||r||o[u]?r?!(l=u):void 0:(t.dataTypes.unshift(u),s(u),!1)}),l}return s(t.dataTypes[0])||!o["*"]&&s("*")}function Lt(e,t){var n,i,o=v.ajaxSettings.flatOptions||{};for(n in t)void 0!==t[n]&&((o[n]?e:i||(i={}))[n]=t[n]);return i&&v.extend(!0,e,i),e}Mt.href=gt.href,v.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:gt.href,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(gt.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":At,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":JSON.parse,"text xml":v.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(e,t){return t?Lt(Lt(e,v.ajaxSettings),t):Lt(v.ajaxSettings,e)},ajaxPrefilter:jt(Nt),ajaxTransport:jt(Dt),ajax:function(t,n){"object"==typeof t&&(n=t,t=void 0),n=n||{};var o,r,s,a,l,u,c,p,f,h,d=v.ajaxSetup({},n),g=d.context||d,m=d.context&&(g.nodeType||g.jquery)?v(g):v.event,y=v.Deferred(),b=v.Callbacks("once memory"),x=d.statusCode||{},w={},C={},_="canceled",T={readyState:0,getResponseHeader:function(e){var t;if(c){if(!a)for(a={};t=kt.exec(s);)a[t[1].toLowerCase()]=t[2];t=a[e.toLowerCase()]}return null==t?null:t},getAllResponseHeaders:function(){return c?s:null},setRequestHeader:function(e,t){return null==c&&(e=C[e.toLowerCase()]=C[e.toLowerCase()]||e,w[e]=t),this},overrideMimeType:function(e){return null==c&&(d.mimeType=e),this},statusCode:function(e){var t;if(e)if(c)T.always(e[T.status]);else for(t in e)x[t]=[x[t],e[t]];return this},abort:function(e){var t=e||_;return o&&o.abort(t),E(0,t),this}};if(y.promise(T),d.url=((t||d.url||gt.href)+"").replace(Pt,gt.protocol+"//"),d.type=n.method||n.type||d.method||d.type,d.dataTypes=(d.dataType||"*").toLowerCase().match(O)||[""],null==d.crossDomain){u=i.createElement("a");try{u.href=d.url,u.href=u.href,d.crossDomain=Mt.protocol+"//"+Mt.host!=u.protocol+"//"+u.host}catch(e){d.crossDomain=!0}}if(d.data&&d.processData&&"string"!=typeof d.data&&(d.data=v.param(d.data,d.traditional)),Ht(Nt,d,n,T),c)return T;(p=v.event&&d.global)&&0==v.active++&&v.event.trigger("ajaxStart"),d.type=d.type.toUpperCase(),d.hasContent=!St.test(d.type),r=d.url.replace(Tt,""),d.hasContent?d.data&&d.processData&&0===(d.contentType||"").indexOf("application/x-www-form-urlencoded")&&(d.data=d.data.replace(_t,"+")):(h=d.url.slice(r.length),d.data&&(r+=(vt.test(r)?"&":"?")+d.data,delete d.data),!1===d.cache&&(r=r.replace(Et,"$1"),h=(vt.test(r)?"&":"?")+"_="+mt+++h),d.url=r+h),d.ifModified&&(v.lastModified[r]&&T.setRequestHeader("If-Modified-Since",v.lastModified[r]),v.etag[r]&&T.setRequestHeader("If-None-Match",v.etag[r])),(d.data&&d.hasContent&&!1!==d.contentType||n.contentType)&&T.setRequestHeader("Content-Type",d.contentType),T.setRequestHeader("Accept",d.dataTypes[0]&&d.accepts[d.dataTypes[0]]?d.accepts[d.dataTypes[0]]+("*"!==d.dataTypes[0]?", "+At+"; q=0.01":""):d.accepts["*"]);for(f in d.headers)T.setRequestHeader(f,d.headers[f]);if(d.beforeSend&&(!1===d.beforeSend.call(g,T,d)||c))return T.abort();if(_="abort",b.add(d.complete),T.done(d.success),T.fail(d.error),o=Ht(Dt,d,n,T)){if(T.readyState=1,p&&m.trigger("ajaxSend",[T,d]),c)return T;d.async&&d.timeout>0&&(l=e.setTimeout(function(){T.abort("timeout")},d.timeout));try{c=!1,o.send(w,E)}catch(e){if(c)throw e;E(-1,e)}}else E(-1,"No Transport");function E(t,n,i,a){var u,f,h,w,C,_=n;c||(c=!0,l&&e.clearTimeout(l),o=void 0,s=a||"",T.readyState=t>0?4:0,u=t>=200&&t<300||304===t,i&&(w=function(e,t,n){for(var i,o,r,s,a=e.contents,l=e.dataTypes;"*"===l[0];)l.shift(),void 0===i&&(i=e.mimeType||t.getResponseHeader("Content-Type"));if(i)for(o in a)if(a[o]&&a[o].test(i)){l.unshift(o);break}if(l[0]in n)r=l[0];else{for(o in n){if(!l[0]||e.converters[o+" "+l[0]]){r=o;break}s||(s=o)}r=r||s}if(r)return r!==l[0]&&l.unshift(r),n[r]}(d,T,i)),w=function(e,t,n,i){var o,r,s,a,l,u={},c=e.dataTypes.slice();if(c[1])for(s in e.converters)u[s.toLowerCase()]=e.converters[s];for(r=c.shift();r;)if(e.responseFields[r]&&(n[e.responseFields[r]]=t),!l&&i&&e.dataFilter&&(t=e.dataFilter(t,e.dataType)),l=r,r=c.shift())if("*"===r)r=l;else if("*"!==l&&l!==r){if(!(s=u[l+" "+r]||u["* "+r]))for(o in u)if((a=o.split(" "))[1]===r&&(s=u[l+" "+a[0]]||u["* "+a[0]])){!0===s?s=u[o]:!0!==u[o]&&(r=a[0],c.unshift(a[1]));break}if(!0!==s)if(s&&e.throws)t=s(t);else try{t=s(t)}catch(e){return{state:"parsererror",error:s?e:"No conversion from "+l+" to "+r}}}return{state:"success",data:t}}(d,w,T,u),u?(d.ifModified&&((C=T.getResponseHeader("Last-Modified"))&&(v.lastModified[r]=C),(C=T.getResponseHeader("etag"))&&(v.etag[r]=C)),204===t||"HEAD"===d.type?_="nocontent":304===t?_="notmodified":(_=w.state,f=w.data,u=!(h=w.error))):(h=_,!t&&_||(_="error",t<0&&(t=0))),T.status=t,T.statusText=(n||_)+"",u?y.resolveWith(g,[f,_,T]):y.rejectWith(g,[T,_,h]),T.statusCode(x),x=void 0,p&&m.trigger(u?"ajaxSuccess":"ajaxError",[T,d,u?f:h]),b.fireWith(g,[T,_]),p&&(m.trigger("ajaxComplete",[T,d]),--v.active||v.event.trigger("ajaxStop")))}return T},getJSON:function(e,t,n){return v.get(e,t,n,"json")},getScript:function(e,t){return v.get(e,void 0,t,"script")}}),v.each(["get","post"],function(e,t){v[t]=function(e,n,i,o){return v.isFunction(n)&&(o=o||i,i=n,n=void 0),v.ajax(v.extend({url:e,type:t,dataType:o,data:n,success:i},v.isPlainObject(e)&&e))}}),v._evalUrl=function(e){return v.ajax({url:e,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,throws:!0})},v.fn.extend({wrapAll:function(e){var t;return this[0]&&(v.isFunction(e)&&(e=e.call(this[0])),t=v(e,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&t.insertBefore(this[0]),t.map(function(){for(var e=this;e.firstElementChild;)e=e.firstElementChild;return e}).append(this)),this},wrapInner:function(e){return v.isFunction(e)?this.each(function(t){v(this).wrapInner(e.call(this,t))}):this.each(function(){var t=v(this),n=t.contents();n.length?n.wrapAll(e):t.append(e)})},wrap:function(e){var t=v.isFunction(e);return this.each(function(n){v(this).wrapAll(t?e.call(this,n):e)})},unwrap:function(e){return this.parent(e).not("body").each(function(){v(this).replaceWith(this.childNodes)}),this}}),v.expr.pseudos.hidden=function(e){return!v.expr.pseudos.visible(e)},v.expr.pseudos.visible=function(e){return!!(e.offsetWidth||e.offsetHeight||e.getClientRects().length)},v.ajaxSettings.xhr=function(){try{return new e.XMLHttpRequest}catch(e){}};var Ot={0:200,1223:204},It=v.ajaxSettings.xhr();d.cors=!!It&&"withCredentials"in It,d.ajax=It=!!It,v.ajaxTransport(function(t){var n,i;if(d.cors||It&&!t.crossDomain)return{send:function(o,r){var s,a=t.xhr();if(a.open(t.type,t.url,t.async,t.username,t.password),t.xhrFields)for(s in t.xhrFields)a[s]=t.xhrFields[s];t.mimeType&&a.overrideMimeType&&a.overrideMimeType(t.mimeType),t.crossDomain||o["X-Requested-With"]||(o["X-Requested-With"]="XMLHttpRequest");for(s in o)a.setRequestHeader(s,o[s]);n=function(e){return function(){n&&(n=i=a.onload=a.onerror=a.onabort=a.onreadystatechange=null,"abort"===e?a.abort():"error"===e?"number"!=typeof a.status?r(0,"error"):r(a.status,a.statusText):r(Ot[a.status]||a.status,a.statusText,"text"!==(a.responseType||"text")||"string"!=typeof a.responseText?{binary:a.response}:{text:a.responseText},a.getAllResponseHeaders()))}},a.onload=n(),i=a.onerror=n("error"),void 0!==a.onabort?a.onabort=i:a.onreadystatechange=function(){4===a.readyState&&e.setTimeout(function(){n&&i()})},n=n("abort");try{a.send(t.hasContent&&t.data||null)}catch(e){if(n)throw e}},abort:function(){n&&n()}}}),v.ajaxPrefilter(function(e){e.crossDomain&&(e.contents.script=!1)}),v.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(e){return v.globalEval(e),e}}}),v.ajaxPrefilter("script",function(e){void 0===e.cache&&(e.cache=!1),e.crossDomain&&(e.type="GET")}),v.ajaxTransport("script",function(e){var t,n;if(e.crossDomain)return{send:function(o,r){t=v("<script>").prop({charset:e.scriptCharset,src:e.url}).on("load error",n=function(e){t.remove(),n=null,e&&r("error"===e.type?404:200,e.type)}),i.head.appendChild(t[0])},abort:function(){n&&n()}}});var Ft,qt=[],Rt=/(=)\?(?=&|$)|\?\?/;v.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=qt.pop()||v.expando+"_"+mt++;return this[e]=!0,e}}),v.ajaxPrefilter("json jsonp",function(t,n,i){var o,r,s,a=!1!==t.jsonp&&(Rt.test(t.url)?"url":"string"==typeof t.data&&0===(t.contentType||"").indexOf("application/x-www-form-urlencoded")&&Rt.test(t.data)&&"data");if(a||"jsonp"===t.dataTypes[0])return o=t.jsonpCallback=v.isFunction(t.jsonpCallback)?t.jsonpCallback():t.jsonpCallback,a?t[a]=t[a].replace(Rt,"$1"+o):!1!==t.jsonp&&(t.url+=(vt.test(t.url)?"&":"?")+t.jsonp+"="+o),t.converters["script json"]=function(){return s||v.error(o+" was not called"),s[0]},t.dataTypes[0]="json",r=e[o],e[o]=function(){s=arguments},i.always(function(){void 0===r?v(e).removeProp(o):e[o]=r,t[o]&&(t.jsonpCallback=n.jsonpCallback,qt.push(o)),s&&v.isFunction(r)&&r(s[0]),s=r=void 0}),"script"}),d.createHTMLDocument=((Ft=i.implementation.createHTMLDocument("").body).innerHTML="<form></form><form></form>",2===Ft.childNodes.length),v.parseHTML=function(e,t,n){return"string"!=typeof e?[]:("boolean"==typeof t&&(n=t,t=!1),t||(d.createHTMLDocument?((o=(t=i.implementation.createHTMLDocument("")).createElement("base")).href=i.location.href,t.head.appendChild(o)):t=i),r=P.exec(e),s=!n&&[],r?[t.createElement(r[1])]:(r=de([e],t,s),s&&s.length&&v(s).remove(),v.merge([],r.childNodes)));var o,r,s},v.fn.load=function(e,t,n){var i,o,r,s=this,a=e.indexOf(" ");return a>-1&&(i=pt(e.slice(a)),e=e.slice(0,a)),v.isFunction(t)?(n=t,t=void 0):t&&"object"==typeof t&&(o="POST"),s.length>0&&v.ajax({url:e,type:o||"GET",dataType:"html",data:t}).done(function(e){r=arguments,s.html(i?v("<div>").append(v.parseHTML(e)).find(i):e)}).always(n&&function(e,t){s.each(function(){n.apply(this,r||[e.responseText,t,e])})}),this},v.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(e,t){v.fn[t]=function(e){return this.on(t,e)}}),v.expr.pseudos.animated=function(e){return v.grep(v.timers,function(t){return e===t.elem}).length},v.offset={setOffset:function(e,t,n){var i,o,r,s,a,l,u=v.css(e,"position"),c=v(e),p={};"static"===u&&(e.style.position="relative"),a=c.offset(),r=v.css(e,"top"),l=v.css(e,"left"),("absolute"===u||"fixed"===u)&&(r+l).indexOf("auto")>-1?(s=(i=c.position()).top,o=i.left):(s=parseFloat(r)||0,o=parseFloat(l)||0),v.isFunction(t)&&(t=t.call(e,n,v.extend({},a))),null!=t.top&&(p.top=t.top-a.top+s),null!=t.left&&(p.left=t.left-a.left+o),"using"in t?t.using.call(e,p):c.css(p)}},v.fn.extend({offset:function(e){if(arguments.length)return void 0===e?this:this.each(function(t){v.offset.setOffset(this,e,t)});var t,n,i,o,r=this[0];return r?r.getClientRects().length?(i=r.getBoundingClientRect(),n=(t=r.ownerDocument).documentElement,o=t.defaultView,{top:i.top+o.pageYOffset-n.clientTop,left:i.left+o.pageXOffset-n.clientLeft}):{top:0,left:0}:void 0},position:function(){if(this[0]){var e,t,n=this[0],i={top:0,left:0};return"fixed"===v.css(n,"position")?t=n.getBoundingClientRect():(e=this.offsetParent(),t=this.offset(),S(e[0],"html")||(i=e.offset()),i={top:i.top+v.css(e[0],"borderTopWidth",!0),left:i.left+v.css(e[0],"borderLeftWidth",!0)}),{top:t.top-i.top-v.css(n,"marginTop",!0),left:t.left-i.left-v.css(n,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var e=this.offsetParent;e&&"static"===v.css(e,"position");)e=e.offsetParent;return e||ge})}}),v.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(e,t){var n="pageYOffset"===t;v.fn[e]=function(i){return $(this,function(e,i,o){var r;if(v.isWindow(e)?r=e:9===e.nodeType&&(r=e.defaultView),void 0===o)return r?r[t]:e[i];r?r.scrollTo(n?r.pageXOffset:o,n?o:r.pageYOffset):e[i]=o},e,i,arguments.length)}}),v.each(["top","left"],function(e,t){v.cssHooks[t]=Fe(d.pixelPosition,function(e,n){if(n)return n=Ie(e,t),Le.test(n)?v(e).position()[t]+"px":n})}),v.each({Height:"height",Width:"width"},function(e,t){v.each({padding:"inner"+e,content:t,"":"outer"+e},function(n,i){v.fn[i]=function(o,r){var s=arguments.length&&(n||"boolean"!=typeof o),a=n||(!0===o||!0===r?"margin":"border");return $(this,function(t,n,o){var r;return v.isWindow(t)?0===i.indexOf("outer")?t["inner"+e]:t.document.documentElement["client"+e]:9===t.nodeType?(r=t.documentElement,Math.max(t.body["scroll"+e],r["scroll"+e],t.body["offset"+e],r["offset"+e],r["client"+e])):void 0===o?v.css(t,n,a):v.style(t,n,o,a)},t,s?o:void 0,s)}})}),v.fn.extend({bind:function(e,t,n){return this.on(e,null,t,n)},unbind:function(e,t){return this.off(e,null,t)},delegate:function(e,t,n,i){return this.on(t,e,n,i)},undelegate:function(e,t,n){return 1===arguments.length?this.off(e,"**"):this.off(t,e||"**",n)}}),v.holdReady=function(e){e?v.readyWait++:v.ready(!0)},v.isArray=Array.isArray,v.parseJSON=JSON.parse,v.nodeName=S,"function"==typeof define&&define.amd&&define("jquery",[],function(){return v});var Wt=e.jQuery,Bt=e.$;return v.noConflict=function(t){return e.$===v&&(e.$=Bt),t&&e.jQuery===v&&(e.jQuery=Wt),v},t||(e.jQuery=e.$=v),v}),
/*! jQuery UI - v1.12.1 - 2017-10-27
* http://jqueryui.com
* Includes: widget.js, data.js, scroll-parent.js, widgets/draggable.js, widgets/droppable.js, widgets/mouse.js
* Copyright jQuery Foundation and other contributors; Licensed MIT */
function(e){"function"==typeof define&&define.amd?define(["jquery"],e):e(jQuery)}(function(e){e.ui=e.ui||{};e.ui.version="1.12.1";
/*!
 * jQuery UI Widget 1.12.1
 * http://jqueryui.com
 *
 * Copyright jQuery Foundation and other contributors
 * Released under the MIT license.
 * http://jquery.org/license
 */var t,n=0,i=Array.prototype.slice;e.cleanData=(t=e.cleanData,function(n){var i,o,r;for(r=0;null!=(o=n[r]);r++)try{(i=e._data(o,"events"))&&i.remove&&e(o).triggerHandler("remove")}catch(e){}t(n)}),e.widget=function(t,n,i){var o,r,s,a={},l=t.split(".")[0],u=l+"-"+(t=t.split(".")[1]);return i||(i=n,n=e.Widget),e.isArray(i)&&(i=e.extend.apply(null,[{}].concat(i))),e.expr[":"][u.toLowerCase()]=function(t){return!!e.data(t,u)},e[l]=e[l]||{},o=e[l][t],r=e[l][t]=function(e,t){if(!this._createWidget)return new r(e,t);arguments.length&&this._createWidget(e,t)},e.extend(r,o,{version:i.version,_proto:e.extend({},i),_childConstructors:[]}),(s=new n).options=e.widget.extend({},s.options),e.each(i,function(t,i){e.isFunction(i)?a[t]=function(){function e(){return n.prototype[t].apply(this,arguments)}function o(e){return n.prototype[t].apply(this,e)}return function(){var t,n=this._super,r=this._superApply;return this._super=e,this._superApply=o,t=i.apply(this,arguments),this._super=n,this._superApply=r,t}}():a[t]=i}),r.prototype=e.widget.extend(s,{widgetEventPrefix:o&&s.widgetEventPrefix||t},a,{constructor:r,namespace:l,widgetName:t,widgetFullName:u}),o?(e.each(o._childConstructors,function(t,n){var i=n.prototype;e.widget(i.namespace+"."+i.widgetName,r,n._proto)}),delete o._childConstructors):n._childConstructors.push(r),e.widget.bridge(t,r),r},e.widget.extend=function(t){for(var n,o,r=i.call(arguments,1),s=0,a=r.length;s<a;s++)for(n in r[s])o=r[s][n],r[s].hasOwnProperty(n)&&void 0!==o&&(e.isPlainObject(o)?t[n]=e.isPlainObject(t[n])?e.widget.extend({},t[n],o):e.widget.extend({},o):t[n]=o);return t},e.widget.bridge=function(t,n){var o=n.prototype.widgetFullName||t;e.fn[t]=function(r){var s="string"==typeof r,a=i.call(arguments,1),l=this;return s?this.length||"instance"!==r?this.each(function(){var n,i=e.data(this,o);return"instance"===r?(l=i,!1):i?e.isFunction(i[r])&&"_"!==r.charAt(0)?(n=i[r].apply(i,a))!==i&&void 0!==n?(l=n&&n.jquery?l.pushStack(n.get()):n,!1):void 0:e.error("no such method '"+r+"' for "+t+" widget instance"):e.error("cannot call methods on "+t+" prior to initialization; attempted to call method '"+r+"'")}):l=void 0:(a.length&&(r=e.widget.extend.apply(null,[r].concat(a))),this.each(function(){var t=e.data(this,o);t?(t.option(r||{}),t._init&&t._init()):e.data(this,o,new n(r,this))})),l}},e.Widget=function(){},e.Widget._childConstructors=[],e.Widget.prototype={widgetName:"widget",widgetEventPrefix:"",defaultElement:"<div>",options:{classes:{},disabled:!1,create:null},_createWidget:function(t,i){i=e(i||this.defaultElement||this)[0],this.element=e(i),this.uuid=n++,this.eventNamespace="."+this.widgetName+this.uuid,this.bindings=e(),this.hoverable=e(),this.focusable=e(),this.classesElementLookup={},i!==this&&(e.data(i,this.widgetFullName,this),this._on(!0,this.element,{remove:function(e){e.target===i&&this.destroy()}}),this.document=e(i.style?i.ownerDocument:i.document||i),this.window=e(this.document[0].defaultView||this.document[0].parentWindow)),this.options=e.widget.extend({},this.options,this._getCreateOptions(),t),this._create(),this.options.disabled&&this._setOptionDisabled(this.options.disabled),this._trigger("create",null,this._getCreateEventData()),this._init()},_getCreateOptions:function(){return{}},_getCreateEventData:e.noop,_create:e.noop,_init:e.noop,destroy:function(){var t=this;this._destroy(),e.each(this.classesElementLookup,function(e,n){t._removeClass(n,e)}),this.element.off(this.eventNamespace).removeData(this.widgetFullName),this.widget().off(this.eventNamespace).removeAttr("aria-disabled"),this.bindings.off(this.eventNamespace)},_destroy:e.noop,widget:function(){return this.element},option:function(t,n){var i,o,r,s=t;if(0===arguments.length)return e.widget.extend({},this.options);if("string"==typeof t)if(s={},t=(i=t.split(".")).shift(),i.length){for(o=s[t]=e.widget.extend({},this.options[t]),r=0;r<i.length-1;r++)o[i[r]]=o[i[r]]||{},o=o[i[r]];if(t=i.pop(),1===arguments.length)return void 0===o[t]?null:o[t];o[t]=n}else{if(1===arguments.length)return void 0===this.options[t]?null:this.options[t];s[t]=n}return this._setOptions(s),this},_setOptions:function(e){var t;for(t in e)this._setOption(t,e[t]);return this},_setOption:function(e,t){return"classes"===e&&this._setOptionClasses(t),this.options[e]=t,"disabled"===e&&this._setOptionDisabled(t),this},_setOptionClasses:function(t){var n,i,o;for(n in t)o=this.classesElementLookup[n],t[n]!==this.options.classes[n]&&o&&o.length&&(i=e(o.get()),this._removeClass(o,n),i.addClass(this._classes({element:i,keys:n,classes:t,add:!0})))},_setOptionDisabled:function(e){this._toggleClass(this.widget(),this.widgetFullName+"-disabled",null,!!e),e&&(this._removeClass(this.hoverable,null,"ui-state-hover"),this._removeClass(this.focusable,null,"ui-state-focus"))},enable:function(){return this._setOptions({disabled:!1})},disable:function(){return this._setOptions({disabled:!0})},_classes:function(t){var n=[],i=this;function o(o,r){var s,a;for(a=0;a<o.length;a++)s=i.classesElementLookup[o[a]]||e(),s=t.add?e(e.unique(s.get().concat(t.element.get()))):e(s.not(t.element).get()),i.classesElementLookup[o[a]]=s,n.push(o[a]),r&&t.classes[o[a]]&&n.push(t.classes[o[a]])}return t=e.extend({element:this.element,classes:this.options.classes||{}},t),this._on(t.element,{remove:"_untrackClassesElement"}),t.keys&&o(t.keys.match(/\S+/g)||[],!0),t.extra&&o(t.extra.match(/\S+/g)||[]),n.join(" ")},_untrackClassesElement:function(t){var n=this;e.each(n.classesElementLookup,function(i,o){-1!==e.inArray(t.target,o)&&(n.classesElementLookup[i]=e(o.not(t.target).get()))})},_removeClass:function(e,t,n){return this._toggleClass(e,t,n,!1)},_addClass:function(e,t,n){return this._toggleClass(e,t,n,!0)},_toggleClass:function(e,t,n,i){i="boolean"==typeof i?i:n;var o="string"==typeof e||null===e,r={extra:o?t:n,keys:o?e:t,element:o?this.element:e,add:i};return r.element.toggleClass(this._classes(r),i),this},_on:function(t,n,i){var o,r=this;"boolean"!=typeof t&&(i=n,n=t,t=!1),i?(n=o=e(n),this.bindings=this.bindings.add(n)):(i=n,n=this.element,o=this.widget()),e.each(i,function(i,s){function a(){if(t||!0!==r.options.disabled&&!e(this).hasClass("ui-state-disabled"))return("string"==typeof s?r[s]:s).apply(r,arguments)}"string"!=typeof s&&(a.guid=s.guid=s.guid||a.guid||e.guid++);var l=i.match(/^([\w:-]*)\s*(.*)$/),u=l[1]+r.eventNamespace,c=l[2];c?o.on(u,c,a):n.on(u,a)})},_off:function(t,n){n=(n||"").split(" ").join(this.eventNamespace+" ")+this.eventNamespace,t.off(n).off(n),this.bindings=e(this.bindings.not(t).get()),this.focusable=e(this.focusable.not(t).get()),this.hoverable=e(this.hoverable.not(t).get())},_delay:function(e,t){var n=this;return setTimeout(function(){return("string"==typeof e?n[e]:e).apply(n,arguments)},t||0)},_hoverable:function(t){this.hoverable=this.hoverable.add(t),this._on(t,{mouseenter:function(t){this._addClass(e(t.currentTarget),null,"ui-state-hover")},mouseleave:function(t){this._removeClass(e(t.currentTarget),null,"ui-state-hover")}})},_focusable:function(t){this.focusable=this.focusable.add(t),this._on(t,{focusin:function(t){this._addClass(e(t.currentTarget),null,"ui-state-focus")},focusout:function(t){this._removeClass(e(t.currentTarget),null,"ui-state-focus")}})},_trigger:function(t,n,i){var o,r,s=this.options[t];if(i=i||{},(n=e.Event(n)).type=(t===this.widgetEventPrefix?t:this.widgetEventPrefix+t).toLowerCase(),n.target=this.element[0],r=n.originalEvent)for(o in r)o in n||(n[o]=r[o]);return this.element.trigger(n,i),!(e.isFunction(s)&&!1===s.apply(this.element[0],[n].concat(i))||n.isDefaultPrevented())}},e.each({show:"fadeIn",hide:"fadeOut"},function(t,n){e.Widget.prototype["_"+t]=function(i,o,r){var s;"string"==typeof o&&(o={effect:o});var a=o?!0===o||"number"==typeof o?n:o.effect||n:t;"number"==typeof(o=o||{})&&(o={duration:o}),s=!e.isEmptyObject(o),o.complete=r,o.delay&&i.delay(o.delay),s&&e.effects&&e.effects.effect[a]?i[t](o):a!==t&&i[a]?i[a](o.duration,o.easing,r):i.queue(function(n){e(this)[t](),r&&r.call(i[0]),n()})}});e.widget,e.extend(e.expr[":"],{data:e.expr.createPseudo?e.expr.createPseudo(function(t){return function(n){return!!e.data(n,t)}}):function(t,n,i){return!!e.data(t,i[3])}}),e.fn.scrollParent=function(t){var n=this.css("position"),i="absolute"===n,o=t?/(auto|scroll|hidden)/:/(auto|scroll)/,r=this.parents().filter(function(){var t=e(this);return(!i||"static"!==t.css("position"))&&o.test(t.css("overflow")+t.css("overflow-y")+t.css("overflow-x"))}).eq(0);return"fixed"!==n&&r.length?r:e(this[0].ownerDocument||document)},e.ui.ie=!!/msie [\w.]+/.exec(navigator.userAgent.toLowerCase());
/*!
 * jQuery UI :data 1.12.1
 * http://jqueryui.com
 *
 * Copyright jQuery Foundation and other contributors
 * Released under the MIT license.
 * http://jquery.org/license
 */var o=!1;e(document).on("mouseup",function(){o=!1});e.widget("ui.mouse",{version:"1.12.1",options:{cancel:"input, textarea, button, select, option",distance:1,delay:0},_mouseInit:function(){var t=this;this.element.on("mousedown."+this.widgetName,function(e){return t._mouseDown(e)}).on("click."+this.widgetName,function(n){if(!0===e.data(n.target,t.widgetName+".preventClickEvent"))return e.removeData(n.target,t.widgetName+".preventClickEvent"),n.stopImmediatePropagation(),!1}),this.started=!1},_mouseDestroy:function(){this.element.off("."+this.widgetName),this._mouseMoveDelegate&&this.document.off("mousemove."+this.widgetName,this._mouseMoveDelegate).off("mouseup."+this.widgetName,this._mouseUpDelegate)},_mouseDown:function(t){if(!o){this._mouseMoved=!1,this._mouseStarted&&this._mouseUp(t),this._mouseDownEvent=t;var n=this,i=1===t.which,r=!("string"!=typeof this.options.cancel||!t.target.nodeName)&&e(t.target).closest(this.options.cancel).length;return!(i&&!r&&this._mouseCapture(t))||(this.mouseDelayMet=!this.options.delay,this.mouseDelayMet||(this._mouseDelayTimer=setTimeout(function(){n.mouseDelayMet=!0},this.options.delay)),this._mouseDistanceMet(t)&&this._mouseDelayMet(t)&&(this._mouseStarted=!1!==this._mouseStart(t),!this._mouseStarted)?(t.preventDefault(),!0):(!0===e.data(t.target,this.widgetName+".preventClickEvent")&&e.removeData(t.target,this.widgetName+".preventClickEvent"),this._mouseMoveDelegate=function(e){return n._mouseMove(e)},this._mouseUpDelegate=function(e){return n._mouseUp(e)},this.document.on("mousemove."+this.widgetName,this._mouseMoveDelegate).on("mouseup."+this.widgetName,this._mouseUpDelegate),t.preventDefault(),o=!0,!0))}},_mouseMove:function(t){if(this._mouseMoved){if(e.ui.ie&&(!document.documentMode||document.documentMode<9)&&!t.button)return this._mouseUp(t);if(!t.which)if(t.originalEvent.altKey||t.originalEvent.ctrlKey||t.originalEvent.metaKey||t.originalEvent.shiftKey)this.ignoreMissingWhich=!0;else if(!this.ignoreMissingWhich)return this._mouseUp(t)}return(t.which||t.button)&&(this._mouseMoved=!0),this._mouseStarted?(this._mouseDrag(t),t.preventDefault()):(this._mouseDistanceMet(t)&&this._mouseDelayMet(t)&&(this._mouseStarted=!1!==this._mouseStart(this._mouseDownEvent,t),this._mouseStarted?this._mouseDrag(t):this._mouseUp(t)),!this._mouseStarted)},_mouseUp:function(t){this.document.off("mousemove."+this.widgetName,this._mouseMoveDelegate).off("mouseup."+this.widgetName,this._mouseUpDelegate),this._mouseStarted&&(this._mouseStarted=!1,t.target===this._mouseDownEvent.target&&e.data(t.target,this.widgetName+".preventClickEvent",!0),this._mouseStop(t)),this._mouseDelayTimer&&(clearTimeout(this._mouseDelayTimer),delete this._mouseDelayTimer),this.ignoreMissingWhich=!1,o=!1,t.preventDefault()},_mouseDistanceMet:function(e){return Math.max(Math.abs(this._mouseDownEvent.pageX-e.pageX),Math.abs(this._mouseDownEvent.pageY-e.pageY))>=this.options.distance},_mouseDelayMet:function(){return this.mouseDelayMet},_mouseStart:function(){},_mouseDrag:function(){},_mouseStop:function(){},_mouseCapture:function(){return!0}}),e.ui.plugin={add:function(t,n,i){var o,r=e.ui[t].prototype;for(o in i)r.plugins[o]=r.plugins[o]||[],r.plugins[o].push([n,i[o]])},call:function(e,t,n,i){var o,r=e.plugins[t];if(r&&(i||e.element[0].parentNode&&11!==e.element[0].parentNode.nodeType))for(o=0;o<r.length;o++)e.options[r[o][0]]&&r[o][1].apply(e.element,n)}},e.ui.safeActiveElement=function(e){var t;try{t=e.activeElement}catch(n){t=e.body}return t||(t=e.body),t.nodeName||(t=e.body),t},e.ui.safeBlur=function(t){t&&"body"!==t.nodeName.toLowerCase()&&e(t).trigger("blur")};
/*!
 * jQuery UI Draggable 1.12.1
 * http://jqueryui.com
 *
 * Copyright jQuery Foundation and other contributors
 * Released under the MIT license.
 * http://jquery.org/license
 */
e.widget("ui.draggable",e.ui.mouse,{version:"1.12.1",widgetEventPrefix:"drag",options:{addClasses:!0,appendTo:"parent",axis:!1,connectToSortable:!1,containment:!1,cursor:"auto",cursorAt:!1,grid:!1,handle:!1,helper:"original",iframeFix:!1,opacity:!1,refreshPositions:!1,revert:!1,revertDuration:500,scope:"default",scroll:!0,scrollSensitivity:20,scrollSpeed:20,snap:!1,snapMode:"both",snapTolerance:20,stack:!1,zIndex:!1,drag:null,start:null,stop:null},_create:function(){"original"===this.options.helper&&this._setPositionRelative(),this.options.addClasses&&this._addClass("ui-draggable"),this._setHandleClassName(),this._mouseInit()},_setOption:function(e,t){this._super(e,t),"handle"===e&&(this._removeHandleClassName(),this._setHandleClassName())},_destroy:function(){(this.helper||this.element).is(".ui-draggable-dragging")?this.destroyOnClear=!0:(this._removeHandleClassName(),this._mouseDestroy())},_mouseCapture:function(t){var n=this.options;return!(this.helper||n.disabled||e(t.target).closest(".ui-resizable-handle").length>0)&&(this.handle=this._getHandle(t),!!this.handle&&(this._blurActiveElement(t),this._blockFrames(!0===n.iframeFix?"iframe":n.iframeFix),!0))},_blockFrames:function(t){this.iframeBlocks=this.document.find(t).map(function(){var t=e(this);return e("<div>").css("position","absolute").appendTo(t.parent()).outerWidth(t.outerWidth()).outerHeight(t.outerHeight()).offset(t.offset())[0]})},_unblockFrames:function(){this.iframeBlocks&&(this.iframeBlocks.remove(),delete this.iframeBlocks)},_blurActiveElement:function(t){var n=e.ui.safeActiveElement(this.document[0]);e(t.target).closest(n).length||e.ui.safeBlur(n)},_mouseStart:function(t){var n=this.options;return this.helper=this._createHelper(t),this._addClass(this.helper,"ui-draggable-dragging"),this._cacheHelperProportions(),e.ui.ddmanager&&(e.ui.ddmanager.current=this),this._cacheMargins(),this.cssPosition=this.helper.css("position"),this.scrollParent=this.helper.scrollParent(!0),this.offsetParent=this.helper.offsetParent(),this.hasFixedAncestor=this.helper.parents().filter(function(){return"fixed"===e(this).css("position")}).length>0,this.positionAbs=this.element.offset(),this._refreshOffsets(t),this.originalPosition=this.position=this._generatePosition(t,!1),this.originalPageX=t.pageX,this.originalPageY=t.pageY,n.cursorAt&&this._adjustOffsetFromHelper(n.cursorAt),this._setContainment(),!1===this._trigger("start",t)?(this._clear(),!1):(this._cacheHelperProportions(),e.ui.ddmanager&&!n.dropBehaviour&&e.ui.ddmanager.prepareOffsets(this,t),this._mouseDrag(t,!0),e.ui.ddmanager&&e.ui.ddmanager.dragStart(this,t),!0)},_refreshOffsets:function(e){this.offset={top:this.positionAbs.top-this.margins.top,left:this.positionAbs.left-this.margins.left,scroll:!1,parent:this._getParentOffset(),relative:this._getRelativeOffset()},this.offset.click={left:e.pageX-this.offset.left,top:e.pageY-this.offset.top}},_mouseDrag:function(t,n){if(this.hasFixedAncestor&&(this.offset.parent=this._getParentOffset()),this.position=this._generatePosition(t,!0),this.positionAbs=this._convertPositionTo("absolute"),!n){var i=this._uiHash();if(!1===this._trigger("drag",t,i))return this._mouseUp(new e.Event("mouseup",t)),!1;this.position=i.position}return this.helper[0].style.left=this.position.left+"px",this.helper[0].style.top=this.position.top+"px",e.ui.ddmanager&&e.ui.ddmanager.drag(this,t),!1},_mouseStop:function(t){var n=this,i=!1;return e.ui.ddmanager&&!this.options.dropBehaviour&&(i=e.ui.ddmanager.drop(this,t)),this.dropped&&(i=this.dropped,this.dropped=!1),"invalid"===this.options.revert&&!i||"valid"===this.options.revert&&i||!0===this.options.revert||e.isFunction(this.options.revert)&&this.options.revert.call(this.element,i)?e(this.helper).animate(this.originalPosition,parseInt(this.options.revertDuration,10),function(){!1!==n._trigger("stop",t)&&n._clear()}):!1!==this._trigger("stop",t)&&this._clear(),!1},_mouseUp:function(t){return this._unblockFrames(),e.ui.ddmanager&&e.ui.ddmanager.dragStop(this,t),this.handleElement.is(t.target)&&this.element.trigger("focus"),e.ui.mouse.prototype._mouseUp.call(this,t)},cancel:function(){return this.helper.is(".ui-draggable-dragging")?this._mouseUp(new e.Event("mouseup",{target:this.element[0]})):this._clear(),this},_getHandle:function(t){return!this.options.handle||!!e(t.target).closest(this.element.find(this.options.handle)).length},_setHandleClassName:function(){this.handleElement=this.options.handle?this.element.find(this.options.handle):this.element,this._addClass(this.handleElement,"ui-draggable-handle")},_removeHandleClassName:function(){this._removeClass(this.handleElement,"ui-draggable-handle")},_createHelper:function(t){var n=this.options,i=e.isFunction(n.helper),o=i?e(n.helper.apply(this.element[0],[t])):"clone"===n.helper?this.element.clone().removeAttr("id"):this.element;return o.parents("body").length||o.appendTo("parent"===n.appendTo?this.element[0].parentNode:n.appendTo),i&&o[0]===this.element[0]&&this._setPositionRelative(),o[0]===this.element[0]||/(fixed|absolute)/.test(o.css("position"))||o.css("position","absolute"),o},_setPositionRelative:function(){/^(?:r|a|f)/.test(this.element.css("position"))||(this.element[0].style.position="relative")},_adjustOffsetFromHelper:function(t){"string"==typeof t&&(t=t.split(" ")),e.isArray(t)&&(t={left:+t[0],top:+t[1]||0}),"left"in t&&(this.offset.click.left=t.left+this.margins.left),"right"in t&&(this.offset.click.left=this.helperProportions.width-t.right+this.margins.left),"top"in t&&(this.offset.click.top=t.top+this.margins.top),"bottom"in t&&(this.offset.click.top=this.helperProportions.height-t.bottom+this.margins.top)},_isRootNode:function(e){return/(html|body)/i.test(e.tagName)||e===this.document[0]},_getParentOffset:function(){var t=this.offsetParent.offset(),n=this.document[0];return"absolute"===this.cssPosition&&this.scrollParent[0]!==n&&e.contains(this.scrollParent[0],this.offsetParent[0])&&(t.left+=this.scrollParent.scrollLeft(),t.top+=this.scrollParent.scrollTop()),this._isRootNode(this.offsetParent[0])&&(t={top:0,left:0}),{top:t.top+(parseInt(this.offsetParent.css("borderTopWidth"),10)||0),left:t.left+(parseInt(this.offsetParent.css("borderLeftWidth"),10)||0)}},_getRelativeOffset:function(){if("relative"!==this.cssPosition)return{top:0,left:0};var e=this.element.position(),t=this._isRootNode(this.scrollParent[0]);return{top:e.top-(parseInt(this.helper.css("top"),10)||0)+(t?0:this.scrollParent.scrollTop()),left:e.left-(parseInt(this.helper.css("left"),10)||0)+(t?0:this.scrollParent.scrollLeft())}},_cacheMargins:function(){this.margins={left:parseInt(this.element.css("marginLeft"),10)||0,top:parseInt(this.element.css("marginTop"),10)||0,right:parseInt(this.element.css("marginRight"),10)||0,bottom:parseInt(this.element.css("marginBottom"),10)||0}},_cacheHelperProportions:function(){this.helperProportions={width:this.helper.outerWidth(),height:this.helper.outerHeight()}},_setContainment:function(){var t,n,i,o=this.options,r=this.document[0];this.relativeContainer=null,o.containment?"window"!==o.containment?"document"!==o.containment?o.containment.constructor!==Array?("parent"===o.containment&&(o.containment=this.helper[0].parentNode),(i=(n=e(o.containment))[0])&&(t=/(scroll|auto)/.test(n.css("overflow")),this.containment=[(parseInt(n.css("borderLeftWidth"),10)||0)+(parseInt(n.css("paddingLeft"),10)||0),(parseInt(n.css("borderTopWidth"),10)||0)+(parseInt(n.css("paddingTop"),10)||0),(t?Math.max(i.scrollWidth,i.offsetWidth):i.offsetWidth)-(parseInt(n.css("borderRightWidth"),10)||0)-(parseInt(n.css("paddingRight"),10)||0)-this.helperProportions.width-this.margins.left-this.margins.right,(t?Math.max(i.scrollHeight,i.offsetHeight):i.offsetHeight)-(parseInt(n.css("borderBottomWidth"),10)||0)-(parseInt(n.css("paddingBottom"),10)||0)-this.helperProportions.height-this.margins.top-this.margins.bottom],this.relativeContainer=n)):this.containment=o.containment:this.containment=[0,0,e(r).width()-this.helperProportions.width-this.margins.left,(e(r).height()||r.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top]:this.containment=[e(window).scrollLeft()-this.offset.relative.left-this.offset.parent.left,e(window).scrollTop()-this.offset.relative.top-this.offset.parent.top,e(window).scrollLeft()+e(window).width()-this.helperProportions.width-this.margins.left,e(window).scrollTop()+(e(window).height()||r.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top]:this.containment=null},_convertPositionTo:function(e,t){t||(t=this.position);var n="absolute"===e?1:-1,i=this._isRootNode(this.scrollParent[0]);return{top:t.top+this.offset.relative.top*n+this.offset.parent.top*n-("fixed"===this.cssPosition?-this.offset.scroll.top:i?0:this.offset.scroll.top)*n,left:t.left+this.offset.relative.left*n+this.offset.parent.left*n-("fixed"===this.cssPosition?-this.offset.scroll.left:i?0:this.offset.scroll.left)*n}},_generatePosition:function(e,t){var n,i,o,r,s=this.options,a=this._isRootNode(this.scrollParent[0]),l=e.pageX,u=e.pageY;return a&&this.offset.scroll||(this.offset.scroll={top:this.scrollParent.scrollTop(),left:this.scrollParent.scrollLeft()}),t&&(this.containment&&(this.relativeContainer?(i=this.relativeContainer.offset(),n=[this.containment[0]+i.left,this.containment[1]+i.top,this.containment[2]+i.left,this.containment[3]+i.top]):n=this.containment,e.pageX-this.offset.click.left<n[0]&&(l=n[0]+this.offset.click.left),e.pageY-this.offset.click.top<n[1]&&(u=n[1]+this.offset.click.top),e.pageX-this.offset.click.left>n[2]&&(l=n[2]+this.offset.click.left),e.pageY-this.offset.click.top>n[3]&&(u=n[3]+this.offset.click.top)),s.grid&&(o=s.grid[1]?this.originalPageY+Math.round((u-this.originalPageY)/s.grid[1])*s.grid[1]:this.originalPageY,u=n?o-this.offset.click.top>=n[1]||o-this.offset.click.top>n[3]?o:o-this.offset.click.top>=n[1]?o-s.grid[1]:o+s.grid[1]:o,r=s.grid[0]?this.originalPageX+Math.round((l-this.originalPageX)/s.grid[0])*s.grid[0]:this.originalPageX,l=n?r-this.offset.click.left>=n[0]||r-this.offset.click.left>n[2]?r:r-this.offset.click.left>=n[0]?r-s.grid[0]:r+s.grid[0]:r),"y"===s.axis&&(l=this.originalPageX),"x"===s.axis&&(u=this.originalPageY)),{top:u-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+("fixed"===this.cssPosition?-this.offset.scroll.top:a?0:this.offset.scroll.top),left:l-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+("fixed"===this.cssPosition?-this.offset.scroll.left:a?0:this.offset.scroll.left)}},_clear:function(){this._removeClass(this.helper,"ui-draggable-dragging"),this.helper[0]===this.element[0]||this.cancelHelperRemoval||this.helper.remove(),this.helper=null,this.cancelHelperRemoval=!1,this.destroyOnClear&&this.destroy()},_trigger:function(t,n,i){return i=i||this._uiHash(),e.ui.plugin.call(this,t,[n,i,this],!0),/^(drag|start|stop)/.test(t)&&(this.positionAbs=this._convertPositionTo("absolute"),i.offset=this.positionAbs),e.Widget.prototype._trigger.call(this,t,n,i)},plugins:{},_uiHash:function(){return{helper:this.helper,position:this.position,originalPosition:this.originalPosition,offset:this.positionAbs}}}),e.ui.plugin.add("draggable","connectToSortable",{start:function(t,n,i){var o=e.extend({},n,{item:i.element});i.sortables=[],e(i.options.connectToSortable).each(function(){var n=e(this).sortable("instance");n&&!n.options.disabled&&(i.sortables.push(n),n.refreshPositions(),n._trigger("activate",t,o))})},stop:function(t,n,i){var o=e.extend({},n,{item:i.element});i.cancelHelperRemoval=!1,e.each(i.sortables,function(){var e=this;e.isOver?(e.isOver=0,i.cancelHelperRemoval=!0,e.cancelHelperRemoval=!1,e._storedCSS={position:e.placeholder.css("position"),top:e.placeholder.css("top"),left:e.placeholder.css("left")},e._mouseStop(t),e.options.helper=e.options._helper):(e.cancelHelperRemoval=!0,e._trigger("deactivate",t,o))})},drag:function(t,n,i){e.each(i.sortables,function(){var o=!1,r=this;r.positionAbs=i.positionAbs,r.helperProportions=i.helperProportions,r.offset.click=i.offset.click,r._intersectsWith(r.containerCache)&&(o=!0,e.each(i.sortables,function(){return this.positionAbs=i.positionAbs,this.helperProportions=i.helperProportions,this.offset.click=i.offset.click,this!==r&&this._intersectsWith(this.containerCache)&&e.contains(r.element[0],this.element[0])&&(o=!1),o})),o?(r.isOver||(r.isOver=1,i._parent=n.helper.parent(),r.currentItem=n.helper.appendTo(r.element).data("ui-sortable-item",!0),r.options._helper=r.options.helper,r.options.helper=function(){return n.helper[0]},t.target=r.currentItem[0],r._mouseCapture(t,!0),r._mouseStart(t,!0,!0),r.offset.click.top=i.offset.click.top,r.offset.click.left=i.offset.click.left,r.offset.parent.left-=i.offset.parent.left-r.offset.parent.left,r.offset.parent.top-=i.offset.parent.top-r.offset.parent.top,i._trigger("toSortable",t),i.dropped=r.element,e.each(i.sortables,function(){this.refreshPositions()}),i.currentItem=i.element,r.fromOutside=i),r.currentItem&&(r._mouseDrag(t),n.position=r.position)):r.isOver&&(r.isOver=0,r.cancelHelperRemoval=!0,r.options._revert=r.options.revert,r.options.revert=!1,r._trigger("out",t,r._uiHash(r)),r._mouseStop(t,!0),r.options.revert=r.options._revert,r.options.helper=r.options._helper,r.placeholder&&r.placeholder.remove(),n.helper.appendTo(i._parent),i._refreshOffsets(t),n.position=i._generatePosition(t,!0),i._trigger("fromSortable",t),i.dropped=!1,e.each(i.sortables,function(){this.refreshPositions()}))})}}),e.ui.plugin.add("draggable","cursor",{start:function(t,n,i){var o=e("body"),r=i.options;o.css("cursor")&&(r._cursor=o.css("cursor")),o.css("cursor",r.cursor)},stop:function(t,n,i){var o=i.options;o._cursor&&e("body").css("cursor",o._cursor)}}),e.ui.plugin.add("draggable","opacity",{start:function(t,n,i){var o=e(n.helper),r=i.options;o.css("opacity")&&(r._opacity=o.css("opacity")),o.css("opacity",r.opacity)},stop:function(t,n,i){var o=i.options;o._opacity&&e(n.helper).css("opacity",o._opacity)}}),e.ui.plugin.add("draggable","scroll",{start:function(e,t,n){n.scrollParentNotHidden||(n.scrollParentNotHidden=n.helper.scrollParent(!1)),n.scrollParentNotHidden[0]!==n.document[0]&&"HTML"!==n.scrollParentNotHidden[0].tagName&&(n.overflowOffset=n.scrollParentNotHidden.offset())},drag:function(t,n,i){var o=i.options,r=!1,s=i.scrollParentNotHidden[0],a=i.document[0];s!==a&&"HTML"!==s.tagName?(o.axis&&"x"===o.axis||(i.overflowOffset.top+s.offsetHeight-t.pageY<o.scrollSensitivity?s.scrollTop=r=s.scrollTop+o.scrollSpeed:t.pageY-i.overflowOffset.top<o.scrollSensitivity&&(s.scrollTop=r=s.scrollTop-o.scrollSpeed)),o.axis&&"y"===o.axis||(i.overflowOffset.left+s.offsetWidth-t.pageX<o.scrollSensitivity?s.scrollLeft=r=s.scrollLeft+o.scrollSpeed:t.pageX-i.overflowOffset.left<o.scrollSensitivity&&(s.scrollLeft=r=s.scrollLeft-o.scrollSpeed))):(o.axis&&"x"===o.axis||(t.pageY-e(a).scrollTop()<o.scrollSensitivity?r=e(a).scrollTop(e(a).scrollTop()-o.scrollSpeed):e(window).height()-(t.pageY-e(a).scrollTop())<o.scrollSensitivity&&(r=e(a).scrollTop(e(a).scrollTop()+o.scrollSpeed))),o.axis&&"y"===o.axis||(t.pageX-e(a).scrollLeft()<o.scrollSensitivity?r=e(a).scrollLeft(e(a).scrollLeft()-o.scrollSpeed):e(window).width()-(t.pageX-e(a).scrollLeft())<o.scrollSensitivity&&(r=e(a).scrollLeft(e(a).scrollLeft()+o.scrollSpeed)))),!1!==r&&e.ui.ddmanager&&!o.dropBehaviour&&e.ui.ddmanager.prepareOffsets(i,t)}}),e.ui.plugin.add("draggable","snap",{start:function(t,n,i){var o=i.options;i.snapElements=[],e(o.snap.constructor!==String?o.snap.items||":data(ui-draggable)":o.snap).each(function(){var t=e(this),n=t.offset();this!==i.element[0]&&i.snapElements.push({item:this,width:t.outerWidth(),height:t.outerHeight(),top:n.top,left:n.left})})},drag:function(t,n,i){var o,r,s,a,l,u,c,p,f,h,d=i.options,g=d.snapTolerance,m=n.offset.left,v=m+i.helperProportions.width,y=n.offset.top,b=y+i.helperProportions.height;for(f=i.snapElements.length-1;f>=0;f--)u=(l=i.snapElements[f].left-i.margins.left)+i.snapElements[f].width,p=(c=i.snapElements[f].top-i.margins.top)+i.snapElements[f].height,v<l-g||m>u+g||b<c-g||y>p+g||!e.contains(i.snapElements[f].item.ownerDocument,i.snapElements[f].item)?(i.snapElements[f].snapping&&i.options.snap.release&&i.options.snap.release.call(i.element,t,e.extend(i._uiHash(),{snapItem:i.snapElements[f].item})),i.snapElements[f].snapping=!1):("inner"!==d.snapMode&&(o=Math.abs(c-b)<=g,r=Math.abs(p-y)<=g,s=Math.abs(l-v)<=g,a=Math.abs(u-m)<=g,o&&(n.position.top=i._convertPositionTo("relative",{top:c-i.helperProportions.height,left:0}).top),r&&(n.position.top=i._convertPositionTo("relative",{top:p,left:0}).top),s&&(n.position.left=i._convertPositionTo("relative",{top:0,left:l-i.helperProportions.width}).left),a&&(n.position.left=i._convertPositionTo("relative",{top:0,left:u}).left)),h=o||r||s||a,"outer"!==d.snapMode&&(o=Math.abs(c-y)<=g,r=Math.abs(p-b)<=g,s=Math.abs(l-m)<=g,a=Math.abs(u-v)<=g,o&&(n.position.top=i._convertPositionTo("relative",{top:c,left:0}).top),r&&(n.position.top=i._convertPositionTo("relative",{top:p-i.helperProportions.height,left:0}).top),s&&(n.position.left=i._convertPositionTo("relative",{top:0,left:l}).left),a&&(n.position.left=i._convertPositionTo("relative",{top:0,left:u-i.helperProportions.width}).left)),!i.snapElements[f].snapping&&(o||r||s||a||h)&&i.options.snap.snap&&i.options.snap.snap.call(i.element,t,e.extend(i._uiHash(),{snapItem:i.snapElements[f].item})),i.snapElements[f].snapping=o||r||s||a||h)}}),e.ui.plugin.add("draggable","stack",{start:function(t,n,i){var o,r=i.options,s=e.makeArray(e(r.stack)).sort(function(t,n){return(parseInt(e(t).css("zIndex"),10)||0)-(parseInt(e(n).css("zIndex"),10)||0)});s.length&&(o=parseInt(e(s[0]).css("zIndex"),10)||0,e(s).each(function(t){e(this).css("zIndex",o+t)}),this.css("zIndex",o+s.length))}}),e.ui.plugin.add("draggable","zIndex",{start:function(t,n,i){var o=e(n.helper),r=i.options;o.css("zIndex")&&(r._zIndex=o.css("zIndex")),o.css("zIndex",r.zIndex)},stop:function(t,n,i){var o=i.options;o._zIndex&&e(n.helper).css("zIndex",o._zIndex)}});e.ui.draggable;
/*!
 * jQuery UI Droppable 1.12.1
 * http://jqueryui.com
 *
 * Copyright jQuery Foundation and other contributors
 * Released under the MIT license.
 * http://jquery.org/license
 */e.widget("ui.droppable",{version:"1.12.1",widgetEventPrefix:"drop",options:{accept:"*",addClasses:!0,greedy:!1,scope:"default",tolerance:"intersect",activate:null,deactivate:null,drop:null,out:null,over:null},_create:function(){var t,n=this.options,i=n.accept;this.isover=!1,this.isout=!0,this.accept=e.isFunction(i)?i:function(e){return e.is(i)},this.proportions=function(){if(!arguments.length)return t||(t={width:this.element[0].offsetWidth,height:this.element[0].offsetHeight});t=arguments[0]},this._addToManager(n.scope),n.addClasses&&this._addClass("ui-droppable")},_addToManager:function(t){e.ui.ddmanager.droppables[t]=e.ui.ddmanager.droppables[t]||[],e.ui.ddmanager.droppables[t].push(this)},_splice:function(e){for(var t=0;t<e.length;t++)e[t]===this&&e.splice(t,1)},_destroy:function(){var t=e.ui.ddmanager.droppables[this.options.scope];this._splice(t)},_setOption:function(t,n){if("accept"===t)this.accept=e.isFunction(n)?n:function(e){return e.is(n)};else if("scope"===t){var i=e.ui.ddmanager.droppables[this.options.scope];this._splice(i),this._addToManager(n)}this._super(t,n)},_activate:function(t){var n=e.ui.ddmanager.current;this._addActiveClass(),n&&this._trigger("activate",t,this.ui(n))},_deactivate:function(t){var n=e.ui.ddmanager.current;this._removeActiveClass(),n&&this._trigger("deactivate",t,this.ui(n))},_over:function(t){var n=e.ui.ddmanager.current;n&&(n.currentItem||n.element)[0]!==this.element[0]&&this.accept.call(this.element[0],n.currentItem||n.element)&&(this._addHoverClass(),this._trigger("over",t,this.ui(n)))},_out:function(t){var n=e.ui.ddmanager.current;n&&(n.currentItem||n.element)[0]!==this.element[0]&&this.accept.call(this.element[0],n.currentItem||n.element)&&(this._removeHoverClass(),this._trigger("out",t,this.ui(n)))},_drop:function(t,n){var i=n||e.ui.ddmanager.current,o=!1;return!(!i||(i.currentItem||i.element)[0]===this.element[0])&&(this.element.find(":data(ui-droppable)").not(".ui-draggable-dragging").each(function(){var n=e(this).droppable("instance");if(n.options.greedy&&!n.options.disabled&&n.options.scope===i.options.scope&&n.accept.call(n.element[0],i.currentItem||i.element)&&r(i,e.extend(n,{offset:n.element.offset()}),n.options.tolerance,t))return o=!0,!1}),!o&&(!!this.accept.call(this.element[0],i.currentItem||i.element)&&(this._removeActiveClass(),this._removeHoverClass(),this._trigger("drop",t,this.ui(i)),this.element)))},ui:function(e){return{draggable:e.currentItem||e.element,helper:e.helper,position:e.position,offset:e.positionAbs}},_addHoverClass:function(){this._addClass("ui-droppable-hover")},_removeHoverClass:function(){this._removeClass("ui-droppable-hover")},_addActiveClass:function(){this._addClass("ui-droppable-active")},_removeActiveClass:function(){this._removeClass("ui-droppable-active")}});var r=e.ui.intersect=function(){function e(e,t,n){return e>=t&&e<t+n}return function(t,n,i,o){if(!n.offset)return!1;var r=(t.positionAbs||t.position.absolute).left+t.margins.left,s=(t.positionAbs||t.position.absolute).top+t.margins.top,a=r+t.helperProportions.width,l=s+t.helperProportions.height,u=n.offset.left,c=n.offset.top,p=u+n.proportions().width,f=c+n.proportions().height;switch(i){case"fit":return u<=r&&a<=p&&c<=s&&l<=f;case"intersect":return u<r+t.helperProportions.width/2&&a-t.helperProportions.width/2<p&&c<s+t.helperProportions.height/2&&l-t.helperProportions.height/2<f;case"pointer":return e(o.pageY,c,n.proportions().height)&&e(o.pageX,u,n.proportions().width);case"touch":return(s>=c&&s<=f||l>=c&&l<=f||s<c&&l>f)&&(r>=u&&r<=p||a>=u&&a<=p||r<u&&a>p);default:return!1}}}();e.ui.ddmanager={current:null,droppables:{default:[]},prepareOffsets:function(t,n){var i,o,r=e.ui.ddmanager.droppables[t.options.scope]||[],s=n?n.type:null,a=(t.currentItem||t.element).find(":data(ui-droppable)").addBack();e:for(i=0;i<r.length;i++)if(!(r[i].options.disabled||t&&!r[i].accept.call(r[i].element[0],t.currentItem||t.element))){for(o=0;o<a.length;o++)if(a[o]===r[i].element[0]){r[i].proportions().height=0;continue e}r[i].visible="none"!==r[i].element.css("display"),r[i].visible&&("mousedown"===s&&r[i]._activate.call(r[i],n),r[i].offset=r[i].element.offset(),r[i].proportions({width:r[i].element[0].offsetWidth,height:r[i].element[0].offsetHeight}))}},drop:function(t,n){var i=!1;return e.each((e.ui.ddmanager.droppables[t.options.scope]||[]).slice(),function(){this.options&&(!this.options.disabled&&this.visible&&r(t,this,this.options.tolerance,n)&&(i=this._drop.call(this,n)||i),!this.options.disabled&&this.visible&&this.accept.call(this.element[0],t.currentItem||t.element)&&(this.isout=!0,this.isover=!1,this._deactivate.call(this,n)))}),i},dragStart:function(t,n){t.element.parentsUntil("body").on("scroll.droppable",function(){t.options.refreshPositions||e.ui.ddmanager.prepareOffsets(t,n)})},drag:function(t,n){t.options.refreshPositions&&e.ui.ddmanager.prepareOffsets(t,n),e.each(e.ui.ddmanager.droppables[t.options.scope]||[],function(){if(!this.options.disabled&&!this.greedyChild&&this.visible){var i,o,s,a=r(t,this,this.options.tolerance,n),l=!a&&this.isover?"isout":a&&!this.isover?"isover":null;l&&(this.options.greedy&&(o=this.options.scope,(s=this.element.parents(":data(ui-droppable)").filter(function(){return e(this).droppable("instance").options.scope===o})).length&&((i=e(s[0]).droppable("instance")).greedyChild="isover"===l)),i&&"isover"===l&&(i.isover=!1,i.isout=!0,i._out.call(i,n)),this[l]=!0,this["isout"===l?"isover":"isout"]=!1,this["isover"===l?"_over":"_out"].call(this,n),i&&"isout"===l&&(i.isout=!1,i.isover=!0,i._over.call(i,n)))}})},dragStop:function(t,n){t.element.parentsUntil("body").off("scroll.droppable"),t.options.refreshPositions||e.ui.ddmanager.prepareOffsets(t,n)}},!1!==e.uiBackCompat&&e.widget("ui.droppable",e.ui.droppable,{options:{hoverClass:!1,activeClass:!1},_addActiveClass:function(){this._super(),this.options.activeClass&&this.element.addClass(this.options.activeClass)},_removeActiveClass:function(){this._super(),this.options.activeClass&&this.element.removeClass(this.options.activeClass)},_addHoverClass:function(){this._super(),this.options.hoverClass&&this.element.addClass(this.options.hoverClass)},_removeHoverClass:function(){this._super(),this.options.hoverClass&&this.element.removeClass(this.options.hoverClass)}});e.ui.droppable}),
/*!
* jQuery Cookie Plugin
* https://github.com/carhartl/jquery-cookie
*
* Copyright Klaus Hartl
* Released under the MIT license
*/
function(e){e.cookie=function(t,n,i){if(void 0===n){var o=null;if(document.cookie&&""!=document.cookie)for(var r=document.cookie.split(";"),s=0;s<r.length;s++){var a=e.trim(r[s]);if(a.substring(0,t.length+1)==t+"="){o=decodeURIComponent(a.substring(t.length+1));break}}return o}i=i||{},null===n&&(n="",(i=e.extend({},i)).expires=-1);var l,u="";i.expires&&("number"==typeof i.expires||i.expires.toUTCString)&&("number"==typeof i.expires?(l=new Date).setTime(l.getTime()+24*i.expires*60*60*1e3):l=i.expires,u="; expires="+l.toUTCString());var c=i.path?"; path="+i.path:"",p=i.domain?"; domain="+i.domain:"",f=i.secure?"; secure":"";document.cookie=[t,"=",encodeURIComponent(n),u,c,p,f].join("")}}(jQuery),
/*!
 * jQuery UI Touch Punch Improved 0.3.1
 *
 *
 * Copyright 2013, Chris Hutchinson <chris@brushd.com>
 * Original jquery-ui-touch-punch Copyright 2011, Dave Furfero
 * Dual licensed under the MIT or GPL Version 2 licenses.
 *
 * Depends:
 * jquery.ui.widget.js
 * jquery.ui.mouse.js
 */
function(e){var t=!1,n=!1;window.PointerEvent?t=!0:window.MSPointerEvent&&(n=!0);var i=t||n;if(e.support.touch="ontouchend"in document||i,e.support.touch&&e.ui.mouse){var o,r=e.ui.mouse.prototype,s=r._mouseInit,a=r._mouseDestroy;r._touchStart=function(e){o||!i&&!this._mouseCapture(e.originalEvent.changedTouches[0])||(!i||"mouse"!=e.originalEvent.pointerType&&4!=e.originalEvent.pointerType)&&(o=!0,this._touchMoved=!1,l(e,"mouseover"),l(e,"mousemove"),l(e,"mousedown"))},r._touchMove=function(e){o&&(this._touchMoved=!0,l(e,"mousemove"))},r._touchEnd=function(e){o&&(l(e,"mouseup"),l(e,"mouseout"),this._touchMoved||l(e,"click"),o=!1)},r._mouseInit=function(){var i,o=["_touchStart","_touchMove","_touchEnd"],r={};i=t?["pointerdown","pointermove","pointerup"]:n?["MSPointerDown","MSPointerMove","MSPointerUp"]:["touchstart","touchmove","touchend"];for(var a=0;a<o.length;++a)r[i[a]]=e.proxy(this,o[a]);this.element.on(r),s.call(this)},r._mouseDestroy=function(){var i,o=["_touchStart","_touchMove","_touchEnd"],r={};i=t?["pointerdown","pointermove","pointerup"]:n?["MSPointerDown","MSPointerMove","MSPointerUp"]:["touchstart","touchmove","touchend"];for(var s=0;s<o.length;++s)r[i[s]]=e.proxy(this,o[s]);this.element.off(r),a.call(this)}}function l(t,n){if(!(!i&&t.originalEvent.touches.length>1||i&&!t.originalEvent.isPrimary)){var o,r,s,a,l,u=i?t.originalEvent:t.originalEvent.changedTouches[0],c=document.createEvent("MouseEvents"),p=(o=u,r=window.pageXOffset,s=window.pageYOffset,a=o.clientX,l=o.clientY,0===o.pageY&&Math.floor(l)>Math.floor(o.pageY)||0===o.pageX&&Math.floor(a)>Math.floor(o.pageX)?(a-=r,l-=s):(l<o.pageY-s||a<o.pageX-r)&&(a=o.pageX-r,l=o.pageY-s),{clientX:a,clientY:l});e(u.target).is("input")||e(u.target).is("textarea")?t.stopPropagation():t.preventDefault(),c.initMouseEvent(n,!0,!0,window,1,t.screenX||u.screenX,t.screenY||u.screenY,t.clientX||p.clientX,t.clientY||p.clientY,!1,!1,!1,!1,0,null),t.target.dispatchEvent(c)}}}(jQuery),function(){"use strict";function e(e,t,n){this.x=e,this.y=t,this.z=n}function t(e){this.data=e}t.fromString=function(e){var n=e.match(/matrix3?d?\(([^\)]+)\)/i)[1].split(",");return 6===n.length&&(n=[n[0],n[1],"0","0",n[2],n[3],"0","0","0","0","1","0",n[4],n[5],"0","1"]),new t([parseFloat(n[0]),parseFloat(n[4]),parseFloat(n[8]),parseFloat(n[12]),parseFloat(n[1]),parseFloat(n[5]),parseFloat(n[9]),parseFloat(n[13]),parseFloat(n[2]),parseFloat(n[6]),parseFloat(n[10]),parseFloat(n[14]),parseFloat(n[3]),parseFloat(n[7]),parseFloat(n[11]),parseFloat(n[15])])},t.prototype.multiply=function(e){var n=this.data,i=e.data;return new t([n[0]*i[0]+n[1]*i[4]+n[2]*i[8]+n[3]*i[12],n[0]*i[1]+n[1]*i[5]+n[2]*i[9]+n[3]*i[13],n[0]*i[2]+n[1]*i[6]+n[2]*i[10]+n[3]*i[14],n[0]*i[3]+n[1]*i[7]+n[2]*i[11]+n[3]*i[15],n[4]*i[0]+n[5]*i[4]+n[6]*i[8]+n[7]*i[12],n[4]*i[1]+n[5]*i[5]+n[6]*i[9]+n[7]*i[13],n[4]*i[2]+n[5]*i[6]+n[6]*i[10]+n[7]*i[14],n[4]*i[3]+n[5]*i[7]+n[6]*i[11]+n[7]*i[15],n[8]*i[0]+n[9]*i[4]+n[10]*i[8]+n[11]*i[12],n[8]*i[1]+n[9]*i[5]+n[10]*i[9]+n[11]*i[13],n[8]*i[2]+n[9]*i[6]+n[10]*i[10]+n[11]*i[14],n[8]*i[3]+n[9]*i[7]+n[10]*i[11]+n[11]*i[15],n[12]*i[0]+n[13]*i[4]+n[14]*i[8]+n[15]*i[12],n[12]*i[1]+n[13]*i[5]+n[14]*i[9]+n[15]*i[13],n[12]*i[2]+n[13]*i[6]+n[14]*i[10]+n[15]*i[14],n[12]*i[3]+n[13]*i[7]+n[14]*i[11]+n[15]*i[15]])},t.prototype.translate=function(e,n,i){var o=new t([1,0,0,e,0,1,0,n,0,0,1,i,0,0,0,1]);return this.multiply(o)},t.prototype.inverse=function(){var e=this.data,n=e[0],i=e[1],o=e[2],r=e[4],s=e[5],a=e[6],l=e[8],u=e[9],c=e[10],p=s*c-a*u,f=a*l-r*c,h=r*u-s*l,d=n*p+i*f+o*h,g=new t([p/d,(o*u-i*c)/d,(i*a-o*s)/d,0,f/d,(n*c-o*l)/d,(o*r-n*a)/d,0,h/d,(i*l-n*u)/d,(n*s-i*r)/d,0,0,0,0,1]),m=new t([1,0,0,-e[3],0,1,0,-e[7],0,0,1,-e[11],0,0,0,1]);return g.multiply(m)},t.prototype.transformPoint=function(t){arguments.length>1&&(t=new e(t,arguments[1],arguments[2]||0));var n=this.data;return new e(n[0]*t.x+n[1]*t.y+n[2]*t.z+n[3],n[4]*t.x+n[5]*t.y+n[6]*t.z+n[7],n[8]*t.x+n[9]*t.y+n[10]*t.z+n[11])};var n=!1,i=!1,o=function(e){if(i)return n;i=!0;var t=e.createElement("div");t.style.cssText="width:200px;height:200px;position:fixed;-moz-transform:scale(2);",e.body.appendChild(t);var o=t.getBoundingClientRect();return n=void 0!=getComputedStyle(t,void 0).MozTransform&&o.bottom-o.top<300,t.parentNode.removeChild(t),n};function r(n){for(var i=t.fromString("matrix(1,0,0,1,0,0)"),r=i,s=n,a=o(s.ownerDocument);void 0!=s&&s!==s.ownerDocument.documentElement;){var l=window.getComputedStyle(s,void 0),u=t.fromString((l.transform||l.OTransform||l.WebkitTransform||l.msTransform||l.MozTransform||"none").replace(/^none$/,"matrix(1,0,0,1,0,0)"));if(a){var c=s.getBoundingClientRect(),p=void 0!=s.parentNode&&void 0!=s.parentNode.getBoundingClientRect?s.parentNode.getBoundingClientRect():x,f=i.translate(c.left-p.left,c.top-p.top,0),h=l.MozTransformOrigin;h=-1!==h.indexOf("%")?"":h,h=t.fromString("matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,"+((h||"0 0")+" 0").split(" ").slice(0,3)+",1)"),r=f.multiply(h).multiply(u).multiply(h.inverse()).multiply(r)}else r=u.multiply(r);s=s.parentNode}if(!a){for(var d=n.offsetWidth,g=n.offsetHeight,m=4,v=1/0,y=1/0;--m>=0;){var b=r.transformPoint(new e(0===m||1===m?0:d,0===m||3===m?0:g,0));b.x<v&&(v=b.x),b.y<y&&(y=b.y)}var x=n.getBoundingClientRect();r=i.translate(window.pageXOffset+x.left-v,window.pageYOffset+x.top-y,0).multiply(r)}return r}window.getTransformationMatrix=r,window.convertPointFromPageToNode=function(t,n,i){return r(t).inverse().transformPoint(new e(n,i,0))},window.convertPointFromNodeToPage=function(t,n,i){return r(t).transformPoint(new e(n,i,0))}}(),
/*!
 * Heartcode CanvasLoader https://github.com/heartcode/CanvasLoader
 * Copyright (c) 2011 Róbert Pataki
 * Modified by ATOMI
 * Licensed under the MIT license.
 */
function(){"use strict";var e=function(e,t){void 0===t&&(t={}),this.init(e,t)},t=e.prototype,n=["oval","spiral","square","rect","roundRect"],i=/^\#([a-fA-F0-9]{6}|[a-fA-F0-9]{3})$/,o=function(e,t,n){var i,o=document.createElement(e);for(i in n)o[i]=n[i];return void 0!==t&&t.appendChild(o),o},r=function(e,t){for(var n in t)e.style[n]=t[n];return e},s=function(e,t){for(var n in t)e.setAttribute(n,t[n]);return e},a=function(e,t,n,i){e.save(),e.translate(t,n),e.rotate(i),e.translate(-t,-n),e.beginPath()};t.init=function(e,t){t||(t={}),"string"==typeof e&&(e=document.getElementById(e)),e||(e=document.body),this.cont=o("div",e),t.id&&(this.cont.id=t.id);var n=this.cont.style;n.position="absolute",n.margin="auto",n.left=n.right=n.top=n.bottom=0,n.pointerEvents="none",void 0!==t.zIndex&&(n.zIndex=t.zIndex),this.can=o("canvas",this.cont),this.con=this.can.getContext("2d"),this.cCan=r(o("canvas",this.cont),{display:"none"}),this.cCon=this.cCan.getContext("2d");var i,s,a=["shape","color","diameter","density","range","speed","text"],l=["oval","#2090e6",60,9,1,1,""];for(i=0;i<a.length;++i)this[s=a[i]]=void 0!==t[s]?t[s]:l[i];this.cRGB=this.getRGB(this.color),this.draw(),r(this.cont,{display:"none"})},t.cont={},t.can={},t.con={},t.cCan={},t.cCon={},t.timer=null,t.activeId=0,t.diameter=40,t.setDiameter=function(e){this.diameter=e<1?1:e,this.redraw()},t.getDiameter=function(){return this.diameter},t.cRGB={},t.color="#000000",t.setColor=function(e){this.color=i.test(e)?e:"#000000",this.cRGB=this.getRGB(this.color),this.redraw()},t.getColor=function(){return this.color},t.shape=n[0],t.setShape=function(e){var t;for(t in n)if(e===n[t]){this.shape=e,this.redraw();break}},t.getShape=function(){return this.shape},t.density=40,t.setDensity=function(e){this.density=Math.round(Math.abs(e)),this.density>360&&(this.density=360),this.density<2&&(this.density=2),this.activeId=0,this.redraw()},t.getDensity=function(){return this.density},t.range=1.3,t.setRange=function(e){this.range=Math.abs(e),this.redraw()},t.getRange=function(){return this.range},t.speed=2,t.setSpeed=function(e){this.speed=Math.round(Math.abs(e))},t.getSpeed=function(){return this.speed},t.text="",t.setText=function(e){this.text=e,this.textChanged=!0,this.timer&&this.tick(!0)},t.getText=function(){return this.text},t.getRGB=function(e){return e="#"===e.charAt(0)?e.substring(1,7):e,{r:parseInt(e.substring(0,2),16),g:parseInt(e.substring(2,4),16),b:parseInt(e.substring(4,6),16)}},t.draw=function(){var e,t,i,o,l,u,c,p,f=0,h=this.density,d=Math.round(h*this.range),g=this.cCon,m=this.diameter,v=.47;for(m<1&&(this.diameter=m=1),r(this.cont,{width:m+"px",height:m+"px"}),g.clearRect(0,0,1e3,1e3),s(this.can,{width:m,height:m}),s(this.cCan,{width:m,height:m});f<h;){switch(p=f<=d?1-1/d*f:p=0,u=(270-360/h*f)/180*Math.PI,g.fillStyle="rgba("+this.cRGB.r+","+this.cRGB.g+","+this.cRGB.b+","+p.toString()+")",this.shape){case n[0]:case n[1]:e=.07*m,o=m*v+Math.cos(u)*(m*v-e)-m*v,l=m*v+Math.sin(u)*(m*v-e)-m*v,g.beginPath(),this.shape===n[1]?g.arc(.5*m+o,.5*m+l,e*p,0,2*Math.PI,!1):g.arc(.5*m+o,.5*m+l,e,0,2*Math.PI,!1);break;case n[2]:e=.12*m,o=Math.cos(u)*(m*v-e)+.5*m,l=Math.sin(u)*(m*v-e)+.5*m,a(g,o,l,u),g.fillRect(o,l-.5*e,e,e);break;case n[3]:case n[4]:i=.27*(t=.3*m),o=Math.cos(u)*(i+.13*(m-i))+.5*m,l=Math.sin(u)*(i+.13*(m-i))+.5*m,a(g,o,l,u),this.shape===n[3]?g.fillRect(o,l-.5*i,t,i):(c=.55*i,g.moveTo(o+c,l-.5*i),g.lineTo(o+t-c,l-.5*i),g.quadraticCurveTo(o+t,l-.5*i,o+t,l-.5*i+c),g.lineTo(o+t,l-.5*i+i-c),g.quadraticCurveTo(o+t,l-.5*i+i,o+t-c,l-.5*i+i),g.lineTo(o+c,l-.5*i+i),g.quadraticCurveTo(o,l-.5*i+i,o,l-.5*i+i-c),g.lineTo(o,l-.5*i+c),g.quadraticCurveTo(o,l-.5*i,o+c,l-.5*i))}g.closePath(),g.fill(),g.restore(),++f}this.con.textAlign="center",this.con.textBaseline="middle",this.con.font="bold "+this.detectFontSize()+"px Arial",this.con.fillStyle="rgb("+this.cRGB.r+","+this.cRGB.g+","+this.cRGB.b+")",this.timer&&this.tick(!0)},t.clean=function(){this.con.clearRect(0,0,1e3,1e3)},t.redraw=function(){this.clean(),this.draw()},t.reset=function(){this.timer&&(this.hide(),this.show())},t.detectFontSize=function(){if(this.diameter<90){if(this.shape.toLowerCase().indexOf("rect")>-1){if(this.diameter<65)return 8;if(this.diameter<80)return 10}return 12}return this.diameter<120?14:this.diameter<140?18:22},t.tick=function(e){var t,n=this.con,i=this.diameter,o=Date.now();if(i<1&&(this.diameter=i=1),!e&&this.prevTime){if((t=Math.floor((o-this.prevTime)*this.speed/100))===this.density&&(t=this.density-1),!t&&!this.textChanged)return;this.activeId+=360/this.density*t,t&&(this.prevTime=100*t/this.speed+this.prevTime)}else this.prevTime=o;n.clearRect(0,0,i,i),a(n,.5*i,.5*i,this.activeId/180*Math.PI),n.drawImage(this.cCan,0,0,i,i),n.restore(),this.text&&(n.fillText(this.text,i/2,i/2),this.textChanged=!1)},t.show=function(){if(!this.timer){this.prevTime=null;var e=this,t=function(){e.tick(),e.timer=requestAnimationFrame(t)};t(),r(this.cont,{display:"block"})}},t.hide=function(){this.timer&&(cancelAnimationFrame(this.timer),delete this.timer,this.prevTime=null,r(this.cont,{display:"none"}))},t.kill=function(){this.hide(),this.cont.parentNode&&this.cont.parentNode.removeChild(this.cont)},document.createElement("canvas").getContext&&(window.CanvasLoader=e)}();/*!
 * ActivePresenter HTML5 Output File
 * Copyright (c) Atomi Systems, Inc. All rights reserved.
 * https://atomisystems.com/activepresenter/
 * Version: 7.5.11
 * Date: 2019.12.23
 */
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,P:11,I:13,C:14,R:15,N:16,D:17,O:18,L:21,Y:22,F:23,U:90,X:91,B:92},s={H:1,G:2,V:0,j:12,K:17,q:18,J:1,tt:2,it:3,et:4,nt:5,ht:6,rt:7},e={ot:1<<29,ut:1<<28,ct:1<<27,lt:1<<26,ft:1<<22,dt:1<<21,pt:1<<20,vt:1<<19,bt:1<<18,wt:65536,gt:32768},n=0,h=1,r=2,a=0,o=1,u=2,c=3,l=4,f=5,d=6,p=7,v=0,m=2,b=4,w=8,g=16,_=32,T=64,y=128,k=256,x=512,E=1024,S=2048,M=4096,P=500,I=501,C=1,R=2,A=3,N={_t:1,Tt:2,yt:8},D={NONE:0,ARROW:1,OPEN:2,STEALTH:3,DIAMOND:4,OVAL:5},O=1,L=2,Y=4,F=8,U=32,X=64,B=256,H=512,z={kt:0,xt:1,Et:2,u:3,St:8,Mt:9},G=0,V=1,W=1,$=2,j=3,Q={Pt:0,It:1,Ct:3,H:4,G:5,Rt:6,C:7},K={At:1,Nt:2,Dt:3,Ot:4,Lt:5,Yt:6,Ft:7,Ut:8},q={Xt:0,Bt:1,Ht:2,zt:3,Gt:4,Vt:5},J=1,Z=2,tt=4,it=8,st=16,et=-1,nt={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"},ht={Wt:1,$t:2,jt:3,Qt:5,Kt:6,qt:7,Jt:8,Zt:12,ii:13,si:14,ei:15,ni:16,hi:19,ri:20,ai:26,oi:27,It:28,ci:29,li:30,fi:31,di:32,Pt:33,pi:34,vi:35,bi:36,wi:37,gi:38,_i:39,Ti:40,yi:41,ki:42,xi:43,Ei:44,Si:45,Mi:46},rt={Pi:0,Ii:1,Ci:2,Ri:3,Ai:4,Ni:5},at=0,ot=1,ut=2,ct=3,lt=0,ft=2,dt=0,pt=1,vt=2,mt=3,bt=4,wt=5,gt=8,_t={Di:1,Oi:2,Li:3,Yi:4,Fi:5,Ui:6,Xi:10,Bi:11,Hi:1e3,zi:2500,Gi:3e3,Vi:4e3,Wi:4001},Tt={"-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"},yt={$i:0,ji:1,Qi:2,Ki:3,qi:4,Ji:5},kt={Demo:1,Tutorial:2,Practice:4,Test:8},xt=0,Et=1,St=2,Mt=3,Pt=1,It=2,Ct=3,Rt=4,At=5,Nt=6,Dt=7,Ot=8,Lt=9,Yt=10,Ft=11,Ut=12,Xt=13,Bt=14,Ht=1,zt=2,Gt=3,Vt={ACTUAL_SIZE:0,AUTOFIT:1,FULLSCREEN:2},Wt={BOOLEAN:0,TEXT:1,NUMBER:2,COMMAND:3},$t=0,jt=1,Qt=0,Kt=1,qt=0,Jt=1,Zt=2,ti=3,ii=-1,si=1e3,ei=1e-7,ni="string",hi="http://www.w3.org/2000/svg",ri="userSpaceOnUse",ai=Math.PI,oi=Math.abs,ui=Math.sqrt,ci=Math.pow,li=Math.min,fi=Math.max,di=Math.cos,pi=Math.sin,vi=Math.tan,mi=Math.atan2,bi=Math.round,wi=Math.floor,gi=Math.ceil,_i=t.noop,Ti=t.extend,yi=t.isFunction,ki=t.isNumeric,xi=Date.now||(Date.now=function(){return(new Date).getTime()}),Ei=window.document,Si=window.requestAnimationFrame,Mi=window.cancelAnimationFrame,Pi=["Webkit","Moz","ms","O"],Ii=["webkit","moz","ms","o"],Ci={},Ri={},Ai=Ei.createElement("div");function Ni(t){Ni.disabled||window.console&&console.log(t)}function Di(t,i,s){return li(fi(t,i),s)}function Oi(t,i,s){return arguments.length<3&&(s=ei),i-s<=t&&t<=i+s}function Li(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 Yi(t,i){Ai.textContent=t;var s=Ai.innerHTML;return i?s.replace(/\n/g,"<br />"):s}function Fi(t){return Ai.innerHTML=t,Ai.textContent||""}function Ui(t,i){return bi(t*ci(10,i))/ci(10,i)}function Xi(t){t=wi(t/1e3);var i=wi(t/3600),s=wi(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 Bi(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 Hi(t){return t*ai/180}function zi(t,i){for(var s in i)t.setAttribute(s,i[s])}function Gi(t,i,s,e){return void 0===i?typeof t===ni?t:Gi(t>>16&255,t>>8&255,255&t,(t>>24&255)/255):void 0===e||1===e?"rgb("+bi(t)+","+bi(i)+","+bi(s)+")":"rgba("+bi(t)+","+bi(i)+","+bi(s)+","+e.toFixed(6)+")"}Ni.disabled=!0;var Vi=/[a-zA-Z%]+$/;function Wi(t){var i={unit:null};return typeof t===ni?(i.value=parseFloat(t),i.unit=t.match(Vi),i.unit&&(i.unit=i.unit[0])):i.value=t,i}function $i(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 ji(t,i,s){return $i(t,i,Ii,s)}function Qi(t,i,s){return $i(t,i,Pi,s)}Si||(Si=window[ji(window,"requestAnimationFrame")],Mi=window[ji(window,"cancelAnimationFrame")]||window[ji(window,"cancelRequestAnimationFrame")],Si||(Si=function(t){var i=xi(),s=t.requestAnimationFrameTime?fi(0,16-(i-t.requestAnimationFrameTime)):0;return t.requestAnimationFrameTime=i+s,window.setTimeout(function(){t(xi())},s)},Mi=function(t){clearTimeout(t)}),window.requestAnimationFrame=Si,window.cancelAnimationFrame=Mi);var Ki=Ci.transform=Qi(Ai.style,"transform"),qi=Ci.transformOrigin=Qi(Ai.style,"transformOrigin"),Ji=ji(Ei,"hidden",!0),Zi=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 Ei){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 Ei[i.fullscreenEnabled]},fullscreenElement:function(){return Ei[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(Ei[t])return Ei[t]();element.webkitExitFullscreen&&element.webkitExitFullscreen()},addEventListener:function(t,s,e){return Ei.addEventListener(i[t]||t,s,e)},removeEventListener:function(t,s,e){return Ei.removeEventListener(i[t]||t,s,e)}}}();function ts(){var t,i=function(){this.$init.apply(this,arguments)},s=[i.prototype],e=0,n=null;for(yi(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 Ti.apply(null,s),i.prototype.$init||(i.prototype.$init=_i),i.prototype.constructor=i,i.parentClass=n,i.childClasses=[],i.extend=is,i}function is(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,l,f=this.childClasses;for(o=0,u=f.length;o<u;++o){if(c=f[o],i&&!s){l={},r=c.prototype;for(e in a)r[e]===a[e]&&(l[e]=t[e]);c.extend(l,!0,!1)}c.extend(t,s,s)}return this}var ss=ts({$init:function(){this.clear()},add:function(t){var i={n:null,p:this.Zi,d:t};this.Zi?this.Zi.n=i:(this.ss=i,this.es.front&&(this.es.n=i)),this.Zi=i,this.es.back&&(this.es.p=i)},ns:function(t,i,s){for(var e=this.ss;e;){if((i?t(e.d):e.d===t)&&(e.p?e.p.n=e.n:this.ss=e.n,e.n?e.n.p=e.p:this.Zi=e.p,this.es.n===e&&(this.es.n=e.n),this.es.p===e&&(this.es.p=e.p),!s))return;e=e.n}},remove:function(t,i){this.ns(t,!1,i)},removeIf:function(t,i){this.ns(t,!0,i)},empty:function(){return!this.ss},clear:function(){this.ss=this.Zi=null,this.toFront()},toFront:function(){this.es={n:this.ss,p:null,front:1}},toBack:function(){this.es={n:this.null,p:this.Zi,back:1}},next:function(){var t=this.es.n;return t?(this.es=t,t.d):(this.toBack(),null)},previous:function(){var t=this.es.p;return t?(this.es=t,t.d):(this.toFront(),null)},hasNext:function(){return!!this.es.n},hasPrevious:function(){return!!this.es.p}}),es={INITIAL:0,LOADING:1,LOADED:2,ERROR:3,TIMEOUT:4};function ns(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:Ei.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=es.LOADED,h.onLoad&&h.onLoad()):(h.status=es.ERROR,Ni("Error loading "+h.url+", event "+t.type+(h.node.error?", error "+h.node.error.code:"")),h.onError&&h.onError()):(h.status=es.TIMEOUT,Ni("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=es.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&&(Ei.head||Ei.getElementsByTagName("head")[0]||Ei.documentElement).insertBefore(a,null);return t}var hs=ts({$init:function(t){this.started=!1,this.paused=!1,this.hs=0,this.complete=!1,this.items=[],this.loadingItems=[],this.nextIdx=0,this.loadedCount=0,this.options=Ti({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.rs()),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=Ti({},e,{progress:0,status:es.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.rs(),!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===es.INITIAL?this.os(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===es.LOADING&&(i.status=es.INITIAL,this.nextIdx=0))},clear:function(){var t=this.paused;this.pause(),this.paused=t,this.started=this.complete=!1,this.hs=0,this.items.length=0,this.loadingItems.length=0,this.nextIdx=0,this.loadedCount=0},progress:function(){return this.hs},holdCompletion:function(t){void 0===t&&(t=!0),this.options.holdCompletion!==t&&(this.options.holdCompletion=t,t||this.rs())},rs: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.hs&&0!==t||this.options.holdCompletion&&this.loadedCount===this.items.length||(this.hs=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))}},os: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),ns(i))}});Ti(Ri,{touch:"ontouchend"in Ei,pointer:!!window.PointerEvent,msPointer:!!window.MSPointerEvent});var rs,as="mousedown",os="mouseup",us="mousemove",cs={NONE:0,LEFT:1,RIGHT:2,UP:4,DOWN:8,HORIZONTAL:3,VERTICAL:12,ALL:15};function ls(t,i){return oi(t)>=oi(i)?t<0?cs.LEFT:cs.RIGHT:i<0?cs.UP:cs.DOWN}function fs(t){var i=window.pageXOffset,s=window.pageYOffset,e=t.clientX,n=t.clientY;return 0===t.pageY&&wi(n)>wi(t.pageY)||0===t.pageX&&wi(e)>wi(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 ds(t,i){return arguments.length>1&&(t.apHandled=i,t.originalEvent&&(t.originalEvent.apHandled=i)),t.apHandled||t.originalEvent&&t.originalEvent.apHandled}Ri.pointer?(as="pointerdown",os="pointerup",us="pointermove",rs="pointercancel"):Ri.touch?(as="touchstart",os="touchend",us="touchmove",rs="touchcancel"):Ri.msPointer&&(as="MSPointerDown",os="MSPointerUp",us="MSPointerMove",rs="MSPointerCancel"),Ti(t.event.special,{"ap-click":{setup:function(){var i=this;this.us=function(s){var e=t(this).data();i.filterEvent(s)||isNaN(e.apSglClickX)||isNaN(e.apSglClickY)||oi(s.pageX-e.apSglClickX)>ks.ClickMaxDistance||oi(s.pageY-e.apSglClickY)>ks.ClickMaxDistance?i.cs.call(this,s):(i.cs.call(this,s),bs.fire("ap-click",i,s,!1))},this.cs=function(s){t(i.node).off("mouseup",i.us).removeData("apSglClickX apSglClickY"),t(Ei).off("mouseup",i.cs)},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,ds(s,!0),t(this).off("mouseup",i.us).on("mouseup",i.us),t(Ei).off("mouseup",i.cs).on("mouseup",i.cs)}})},teardown:function(){t(this.node).off(".apSglClick").removeData("apSglClickX apSglClickY"),this.us&&(t(this.node).off("mouseup",this.us),delete this.us),this.cs&&(t(Ei).off("mouseup",this.cs),delete this.cs)}},"ap-dblclick":{setup:function(){var i=this;this.ls=function(s){var e=t(this).data();if(i.filterEvent(s)||isNaN(e.apDblClickX)||isNaN(e.apDblClickY)||oi(s.pageX-e.apDblClickX)>ks.ClickMaxDistance||oi(s.pageY-e.apDblClickY)>ks.ClickMaxDistance)i.fs.call(this,s);else if(t(this).off("mouseup",i.ls).removeData("apDblClickX apDblClickY"),t(Ei).off("mouseup",i.fs),e.apDblClickTrue)t(this).removeData("apDblClickTrue"),bs.fire("ap-dblclick",i,s,!0);else{var n=xi()-(e.apDblClickStart||0);n>ks.DoubleClickMaxTime?(e.apDblClickTimer?(clearTimeout(e.apDblClickTimer),t(this).removeData("apDblClickStart apDblClickTimer"),bs.fire("ap-dblclick",i,s,!1)):t(this).removeData("apDblClickStart apDblClickTimer"),bs.fire("ap-dblclick",i,s,!1)):e.apDblClickTimer=setTimeout(function(){t(i.node).removeData("apDblClickStart apDblClickTimer"),bs.fire("ap-dblclick",i,s,!1)},ks.DoubleClickMaxTime-n)}},this.fs=function(s){t(i.node).off("mouseup",i.ls).removeData("apDblClickX apDblClickY apDblClickStart apDblClickTrue"),t(Ei).off("mouseup",i.fs)},t(this.node).on("mousedown.apDblClick",function(s){if(!i.filterEvent(s)){var e=t(this).data(),n=xi();e.apDblClickX=s.pageX,e.apDblClickY=s.pageY,isNaN(e.apDblClickStart)?e.apDblClickStart=n:(e.apDblClickTrue=n-e.apDblClickStart<=ks.DoubleClickMaxTime,e.apDblClickTrue?(e.apDblClickTimer&&clearTimeout(e.apDblClickTimer),t(this).removeData("apDblClickStart apDblClickTimer")):(e.apDblClickTimer&&(clearTimeout(e.apDblClickTimer),t(this).removeData("apDblClickTimer"),bs.fire("ap-dblclick",i,s,!1)),e.apDblClickStart=n)),ds(s,!0),t(this).off("mouseup",i.ls).on("mouseup",i.ls),t(Ei).off("mouseup",i.fs).on("mouseup",i.fs)}})},teardown:function(){t(this.node).off(".apDblClick").removeData("apDblClickX apDblClickY apDblClickStart apDblClickTimer apDblClickTrue"),this.ls&&(t(this.node).off("mouseup",this.ls),delete this.ls),this.fs&&(t(Ei).off("mouseup",this.fs),delete this.fs)}},"ap-rollover":{setup:function(){if(!ks.browser.mobile){var i=this;t(this.node).on("mouseover.apRollover",function(s){!i.filterEvent(s)&&i.ds(!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(!ks.browser.mobile){var i=this;t(this.node).on("mouseout.apRollout",function(s){!i.filterEvent(s)&&i.ds(!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)||ds(t,!0)}).on("dragstart.apSwipe",function(t){return!1}).on(as+".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:xi(),pos:e.targetTouches?fs(e.targetTouches[0]):{x:e.clientX,y:e.clientY}},r={time:h.time,pos:h.pos},a=t(this).data("apSwipeDir")||cs.ALL,o=function(t){e=t.originalEvent,r={time:xi(),pos:e.targetTouches?fs(e.targetTouches[0]):{x:e.clientX,y:e.clientY}},(n=ls(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=xi();var a=r.pos.x-h.pos.x,o=r.pos.y-h.pos.y;((n=ls(a,o))&cs.HORIZONTAL&&oi(a)>ks.SwipeMinDistance&&oi(o)<ks.SwipeMaxDeflection||n&cs.VERTICAL&&oi(o)>ks.SwipeMinDistance&&oi(a)<ks.SwipeMaxDeflection)&&ui(a*a+o*o)/(r.time-h.time)>ks.SwipeMinVelocity&&i.ds(!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 cs.LEFT:return i+"left";case cs.RIGHT:return i+"right";case cs.UP:return i+"up";case cs.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(Ei).off(us+".apSwipe",o).off(os+".apSwipe",u),rs&&t(Ei).off(rs+".apSwipe",c)};t(Ei).on(us+".apSwipe",o).on(os+".apSwipe",u),rs&&t(Ei).on(rs+".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)|cs.LEFT,this.on("ap-swipe",_i)},teardown:function(){var i=t(this.node).data();i.apSwipeDir&&(i.apSwipeDir&=~cs.LEFT),0===i.apSwipeDir&&t(this.node).removeData("apSwipeDir"),this.off("ap-swipe",_i)}},"ap-swiperight":{setup:function(){var i=t(this.node).data();i.apSwipeDir=(i.apSwipeDir||0)|cs.RIGHT,this.on("ap-swipe",_i)},teardown:function(){var i=t(this.node).data();i.apSwipeDir&&(i.apSwipeDir&=~cs.RIGHT),0===i.apSwipeDir&&t(this.node).removeData("apSwipeDir"),this.off("ap-swipe",_i)}},"ap-swipeup":{setup:function(){var i=t(this.node).data();i.apSwipeDir=(i.apSwipeDir||0)|cs.UP,this.on("ap-swipe",_i)},teardown:function(){var i=t(this.node).data();i.apSwipeDir&&(i.apSwipeDir&=~cs.UP),0===i.apSwipeDir&&t(this.node).removeData("apSwipeDir"),this.off("ap-swipe",_i)}},"ap-swipedown":{setup:function(){var i=t(this.node).data();i.apSwipeDir=(i.apSwipeDir||0)|cs.DOWN,this.on("ap-swipe",_i)},teardown:function(){var i=t(this.node).data();i.apSwipeDir&&(i.apSwipeDir&=~cs.DOWN),0===i.apSwipeDir&&t(this.node).removeData("apSwipeDir"),this.off("ap-swipe",_i)}}});var ps={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:"'"},vs={combinedCode:function(t,i,s,e,n){var h=0;return i&&(h|=ms.MOD_CTRL),s&&(h|=ms.MOD_SHIFT),e&&(h|=ms.MOD_ALT),n&&(h|=ms.MODE_META),h<<24|t},code:function(t){return 16777215&t},modifiers:function(t){return t>>24},modName:function(t){var i="";return t&ms.MOD_CTRL&&(i+="+Ctrl"),t&ms.MOD_SHIFT&&(i+="+Shift"),t&ms.MOD_ALT&&(i+="+Alt"),t&ms.MODE_META&&(i+=ks.browser.macOS?"+⌘":"+Win"),i.substr(1)},isMouse:function(t){var i=vs.code(t);return i>0&&i<=bs.MAX_CODE},name:function(t,i){return vs.isMouse(t)?bs.name(t,i):ms.name(t,i)}},ms={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 ms.CTRL:s=!0,i=0;break;case ms.SHIFT:e=!0,i=0;break;case ms.ALT:n=!0,i=0;break;case 224:case 93:if(!ks.browser.macOS)break;case 92:case 91:h=!0,i=0;break;case ms.CANCEL:i=ms.PAUSE;break;case 186:i=59;break;case 171:case 187:i=61;break;case 189:i=173}return vs.combinedCode(i,s,e,n,h)},name:function(t){var i=vs.modName(vs.modifiers(t)),s=vs.code(t),e="";return ms.NUMBER0<=s&&s<=ms.NUMBER9||ms.A<=s&&s<=ms.Z?e=String.fromCharCode(s):ms.NUMPAD0<=s&&s<=ms.NUMPAD9?e="Numpad "+(s-ms.NUMPAD0):ms.F1<=s&&s<=ms.F12?e="F"+(s-ms.F1+1):s&&(e=ps[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!=ms.TAB&&t!=ms.SHIFT_TAB;var e=vs.modifiers(t),n=vs.code(t);return n==ms.F5||n==ms.F4||n==ms.BACKSPACE&&!i||e&ms.MOD_CTRL&&n==ms.W||e&ms.MOD_ALT&&(n==ms.HOME||n==ms.LEFT||n==ms.RIGHT)},shouldIgnoreIncorrect:function(t){return 0==vs.code(t)||t==ms.TAB||t==ms.SHIFT_TAB},preventDefault:function(t){t.preventDefault();try{t.originalEvent?t.originalEvent.keyCode=0:t.keyCode=0}catch(t){}}},bs={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=bs.DBLEFT),vs.combinedCode(s,t.ctrlKey,t.shiftKey,t.altKey,t.metaKey)},name:function(t,i){var s=vs.modName(vs.modifiers(t)),e=vs.code(t),n="";switch(i=i||Es,e){case bs.LEFT:n=i.text("LeftClick");break;case bs.MIDDLE:n=i.text("MiddleClick");break;case bs.RIGHT:n=i.text("RightClick");break;case bs.DBLEFT:n=i.text("LeftDClick");break;case bs.OUTSIDE:n=i.text("ClickOutside");break;default:n=""+e}return s&&(n=n?s+"+"+n:s),n},fire:function(i,s,e,n){s.ds(!1,!0)&&t(s).triggerHandler(t.Event(i,{value:bs.combinedCode(e,n),originalEvent:e.originalEvent||e}))}};if("mousedown"!==as){var ws=function(t){"mouse"!==t.pointerType&&4!==t.pointerType&&(bs.fromTouch=!0),Ei.removeEventListener(as,ws,!0)};Ei.addEventListener(as,ws,!0)}function gs(t,s,n,h){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){if((h=t[e])[0]||0===e){if(u)break;u=!0}if(u){switch(r=h[4],a=h[3],o=!1,h[1]){case Q.Pt:r=i.vars.get(r),h[5]?a=i.vars.get(a):i.vars.ps(h[4])==Wt.NUMBER&&(a=Number(a));break;case Q.It:(r=s.currentTarget&&s.currentTarget.slide&&s.currentTarget.slide.object(r))?r=r.vs.id():(Ni("Object not found: "+h[4]),r=a=0);break;case Q.Ct:s.currentTarget&&s.currentTarget.attempts?(r=s.currentTarget.attempts(),a===ii&&(a=s.currentTarget.maxAttempts())):r=0;break;case Q.C:r=s.value&&s.value.id&&s.value.id();break;default:r=s.value}switch(h[2]){case K.At:o=r<a;break;case K.Nt:o=r>a;break;case K.Dt:o=i.vars.ps(h[4])==Wt.NUMBER?Oi(r,a):r==a;break;case K.Ot:o=r.toLowerCase&&a.toLowerCase&&r.toLowerCase()===a.toLowerCase();break;case K.Lt:o=i.vars.ps(h[4])==Wt.NUMBER?!Oi(r,a):r!=a;break;case K.Yt:o=r.toLowerCase&&a.toLowerCase&&r.toLowerCase()!==a.toLowerCase();break;case K.Ft:o=r<=a;break;case K.Ut:o=r>=a}u=u&&o}}return u}(t[2],s,n)){var r=t[0],a=t[1];switch(r){case ht.Wt:s.pause(!0);break;case ht.$t:n.currentTarget&&n.currentTarget.ms&&n.currentTarget.ms(!1),s.pause(!1);break;case ht.jt:s.end();break;case ht.Mi:s.restart();break;case ht.Qt:s.showSlideById(a);break;case ht.Kt:s.showSlide(a);break;case ht.qt:s.showSlide(s.slideIndex+a);break;case ht.Jt:s.showSlide(s.slideIndex-a);break;case ht.Zt:try{(o=window.open("mailto:"+encodeURIComponent(a),"_blank"))&&(o.focus(),setTimeout(function(){!o||o.document.hasFocus&&o.document.hasFocus()||o.close()},1e3))}catch(t){Ni(t)}break;case ht.ii:try{var o;(o=window.open(a[0],a[1]))?o.focus():Ni('Cannot open webpage "'+a[0]+'" in window "'+a[1]+'"')}catch(t){Ni(t)}break;case ht.si:var u=s.bs(a);try{u&&u.call(n.currentTarget,n,s)}catch(t){Ni(t)}break;case ht.ei:case ht.ni:case ht.pi:case ht.ci:case ht.bi:case ht.oi:var c,l;if(n.currentTarget&&n.currentTarget.slide)if(S=n.currentTarget.slide.object(a[0])){if(_=S.ws(function(t){return t.actionData===a}))_.remove(),_.started()&&_.totalTime()<_.totalDuration()&&_.pause(_.totalDuration());else{for((_=new yn).actionData=a,S.gs(_),l=1;l<a.length;++l)(c=a[l])&&(f=ks.createEffect(S,c[0],c[1],c[2],c[3]||1,c[4]))&&_.addChild(f);_.addChild(new bn(function(){setTimeout(function(){S._s(_)},0),(r===ht.ei||r===ht.pi||r===ht.bi)&&h&&h()},{startTime:_.duration(),duration:0}))}if(_.startTime(s.timeline.totalTime()),s.timeline.addChild(_),_.setup(),_.play(0),r===ht.ei||r===ht.pi||r===ht.bi)return}break;case ht.hi:if(s.ended)break;if(!a||a<=0)s.submit();else if(n.currentTarget&&n.currentTarget.slide)(S=n.currentTarget.slide.object(a))&&S.ds(!0,!0)&&S.submit();break;case ht.ri:if(s.ended)break;if(!a||a<=0)s.clear(!0);else if(n.currentTarget&&n.currentTarget.slide)(S=n.currentTarget.slide.object(a))&&S.ds(!0,!0)&&S.clear(!0);break;case ht.vi:case ht.ai:var f,d,p,v,m,b,w,g=s.bottomSlide;for(g.Ts||(g.Ts=[]),b=0,w=(m=g.Ts).length;b<w;++b)if(m[b].ys===a){d=m[b];break}if(d||m.length<s.xs.ks&&((p=g.defaultCtrlData()).k=i._,p.mi=a[0],p.md=a[1],p.f|=e.wt,d=g.createChild(p),m.push(d),d.ys=a),d&&((_=d.ws(function(t){return t.actionData===a}))?(_.remove(),_.started()&&_.totalTime()<_.totalDuration()&&_.pause(_.totalDuration())):((_=new yn).actionData=a,a[1]<5e3&&r==ht.ai&&(_.Es=!0),d.gs(_),(f=ks.createEffect(d,ks.EffectType.MEDIA_PLAY,0,0,1))&&_.addChild(f),(f=ks.createEffect(d,ks.EffectType.MEDIA_SEEK,0,a[1],1))&&_.addChild(f),v=a[1]+500,(f=ks.createEffect(d,ks.EffectType.MEDIA_STOP,v,0,1))&&_.addChild(f),_.addChild(new bn(function(){setTimeout(function(){d._s(_),d.cleanup();var t=m.indexOf(d);t>-1&&m.splice(t,1)},0),r===ht.vi&&h&&h()},{startTime:_.duration(),duration:0}))),_.startTime(s.timeline.totalTime()),s.timeline.addChild(_),_.setup(),_.play(0),r===ht.vi))return;break;case ht.It:(S=n.currentTarget&&n.currentTarget.slide&&n.currentTarget.slide.object(a[0]))&&S.state(a[1]);break;case ht.wi:var _=s.slide&&s.slide.timeline(a);return n.currentTarget&&n.currentTarget.slide&&s.Ss(n.currentTarget.slide)&&(_=n.currentTarget.slide.timeline(a)),void s.startTimeline(_,h);case ht.li:_=s.slide&&s.slide.timeline(a);n.currentTarget&&n.currentTarget.slide&&s.Ss(n.currentTarget.slide)&&(_=n.currentTarget.slide.timeline(a)),s.startTimeline(_);break;case ht.fi:_=s.slide&&s.slide.timeline(a);n.currentTarget&&n.currentTarget.slide&&s.Ss(n.currentTarget.slide)&&(_=n.currentTarget.slide.timeline(a)),s.pauseTimeline(_,!0);break;case ht.di:_=s.slide&&s.slide.timeline(a);n.currentTarget&&n.currentTarget.slide&&s.Ss(n.currentTarget.slide)&&(_=n.currentTarget.slide.timeline(a)),s.pauseTimeline(_,!1);break;case ht.Pt:var T=a[1],y=a[2];a[3]?y=s.vars.get(y):s.vars.ps(T)==Wt.NUMBER&&(y=Number(y));var k=!0;switch(a[0]){case q.Xt:s.vars.set(T,s.vars.get(T)+y);break;case q.Bt:s.vars.set(T,s.vars.get(T)-y);break;case q.Ht:s.vars.set(T,s.vars.get(T)*y);break;case q.zt:s.vars.set(T,s.vars.get(T)/y);break;case q.Gt:s.vars.set(T,y);break;case q.Vt:s.vars.set(T,!s.vars.get(T));break;default:k=!1}k&&s.vars.Ms(T)&&(s.Ps.vars[T]=s.variable(T),s.lms&&s.lms.storeSuspendData(s.Ps,!0));break;case ht.gi:if(s.showFeedbackById(a[0],a[1],a[2]?h:null),a[2])return;break;case ht._i:s.hideFeedbackById(a);break;case ht.Ti:s.reviewCourse();break;case ht.ki:var x=a[0],E={showCorrect:a[1],showIncorrect:a[2],showValues:a[3],showResult:a[4]};if(x<=0)s.slide&&s.slide.Is(E),s.bottomSlide&&s.bottomSlide.Is(E),s.topSlide&&s.topSlide.Is(E);else if(n.currentTarget&&n.currentTarget.slide)(S=n.currentTarget.slide.object(x))&&S.Is&&S.Is(E);break;case ht.xi:case ht.Ei:case ht.Si:if(s.ended)break;var S;if(n.currentTarget&&n.currentTarget.slide)(S=n.currentTarget.slide.object(a))&&S.enabled()&&S.Cs.k==i.F&&(r==ht.xi?S.startTimer():r==ht.Ei?S.pauseTimer():r==ht.Si&&S.stopTimer());break;case ht.yi:var M=-1,P=a,I=P.length,C=function(){++M<I&&gs(P[M],s,n,M===I-1?h:C)};return void C()}h&&h()}else h&&h()}var _s=0;function Ts(){return++_s}function ys(t,i){t=(""+t).split("."),i=(""+i).split(".");var s,e,n,h=li(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 ks={version:function(){return"7.5.11"},minPrezVersion:"7.5.0",presentations:[],loadedPrezs:[],unsupportedBrowser:!1,youtubeAPIState:xt,mathJaxAPIState:xt,messages:{},defaultLang:null,compatible:function(t){return ys(this.version(),t.mpv)>=0&&ys(t.v,this.minPrezVersion)>=0},open:function(i,s,e){return e=e||{},this.unsupportedBrowser?(t(function(){}),null):new Xs(i,s,e)},close:function(t){t&&t.destroy()},find:function(t){var i,s,e,n,h=this.presentations;if(typeof t===ni&&(n=t,t=Ei.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==xt){this.youtubeAPIState=Et;var t,i=Ei.createElement("script"),s=this;i.src="https://www.youtube.com/iframe_api",(t=Ei.getElementsByTagName("script")[0]).parentNode.insertBefore(i,t),setTimeout(function(){var t,i;if(s.youtubeAPIState==Et)for(s.youtubeAPIState=Mt,t=0,i=s.presentations.length;t<i;++t)s.presentations[t].Rs()},3e4)}},onYouTubeIframeAPIReady:function(){var t,i;if(this.youtubeAPIState==Et)for(this.youtubeAPIState=St,t=0,i=this.presentations.length;t<i;++t)this.presentations[t].Rs()},loadMathJaxAPI:function(t){if(this.mathJaxAPIState==xt){this.mathJaxAPIState=Et;var i,s=Ei.getElementsByTagName("head")[0];(i=Ei.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=Ei.createElement("script")).type="text/javascript",i.src=t+"MathJax.js",s.appendChild(i)}},onMathJaxAPIReady:function(){var t,i;if(this.mathJaxAPIState==Et)for(this.mathJaxAPIState=St,t=0,i=this.presentations.length;t<i;++t)this.presentations[t].Rs()},pageVisible:function(){return!Ji||!Ei[Ji]},onPageVisibilityChanged:function(){var t,i,s,e;if(this.pageVisible()){if(t=this.As){for(s=0,e=t.length;s<e;++s)(i=t[s]).allPaused()&&i.pauseAll(!1);t.length=0}}else for(this.As||(this.As=[]),s=0,e=(t=this.presentations).length;s<e;++s)(i=t[s]).allPaused()||(i.pauseAll(!0),this.As.push(i))},Ns:function(t){t.allPaused()||(t.pauseAll(!0),this.As||(this.As=[]),this.As.push(t))},fullscreen:Zi};ks.browser={init:function(){this.initiated||(this.initiated=!0,this.ie=!!Ei.documentMode,this.edge=!this.ie&&!!window.StyleMedia,this.iDevice=!!navigator.userAgent.match(/iPhone|iPad|iPod/i),this.iPhone=!!navigator.userAgent.match(/iPhone/i),this.android=!!navigator.userAgent.match(/Android/i),this.mobile=this.iDevice||this.android,this.chrome=!!window.chrome&&!!window.chrome.webstore,this.macOS=navigator.platform.indexOf("Mac")>=0,this.useCSSShadow=!this.edge&&!this.ie)}},ks.browser.init(),t(window).resize(function(){var t,i;for(t=0,i=ks.presentations.length;t<i;++t)ks.presentations[t].layout()}),t(window).bind(ks.browser.iDevice?"pagehide":"beforeunload unload",function(){for(var t=ks.presentations;t.length>0;)ks.close(t[0])}),t(Ei).on("keydown keyup",function(t){var i,s;for(i=0,s=ks.presentations.length;i<s;++i)ks.presentations[i].Ds(t)}),Ji&&t(Ei).on(Ji.replace(/[H|h]idden/,"")+"visibilitychange",function(){ks.onPageVisibilityChanged()});var xs=ts({$init:function(t){this.Os=arguments.length?t:null},text:function(t){var i,s,e,n=ks.messages[this.Os],h=arguments.length;if(e=n&&n[t]||(n=ks.messages[ks.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.Os?ks.defaultLang:this.Os,e=""+t;return"ar"!==s&&"ar"!==s.substr(0,2)||(i="۰ ۱ ۲ ۳ ۴ ۵ ۶ ۷ ۸ ۹".split(" "),e=e.replace(/[0-9]/g,function(t){return i[t]})),e}}),Es=new xs;function Ss(t){return("0"+t).slice(-2)}function Ms(t){return("0"+(i=t,i+1)).slice(-2);var i}function Ps(t){return t.toString().slice(-2)}var Is=/%[^\s%]+%/g,Cs=ts({$init:function(t){this.Ls=t,this.Ys={apVersion:{get:function(t){return t.version()}},apAuthor:{get:function(t){return Yi(t.author())}},apHomepage:{get:function(t){return Yi(t.homePage())}},apCopyright:{get:function(t){return Yi(t.copyright())}},apProjectName:{get:function(t){return Yi(t.name())}},apDescription:{get:function(t){return Yi(t.description(),!0)}},apPlayMode:{get:function(t){return Yi(t.ui.Fs.text(t.playMode()))}},apCurrentSlideLabel:{get:function(t){return t.currentSlideLabel()}},apElapsedTime:{get:function(t){return Xi(t.elapsedTime())}},apElapsedTimeMs:{get:function(t){return t.elapsedTime()}},apRemainingTime:{get:function(t){var i=t.remainingTime();return i%1e3>0&&(i+=1e3),Xi(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 Yi(t.ui.Fs.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(rt.Ci)}},apQuizIncorrectInteractions:{get:function(t){return t.takenInteractionCount(rt.Ri)}},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.Cs.language)}},apDateMMDDYYYY:{get:function(t){var i=new Date;return Ms(i.getMonth())+"/"+Ss(i.getDate())+"/"+i.getFullYear()}},apDateMMDDYY:{get:function(t){var i=new Date;return Ms(i.getMonth())+"/"+Ss(i.getDate())+"/"+Ps(i.getFullYear())}},apDateDDMMYYYY:{get:function(t){var i=new Date;return Ss(i.getDate())+"/"+Ms(i.getMonth())+"/"+i.getFullYear()}},apDateDDMMYY:{get:function(t){var i=new Date;return Ss(i.getDate())+"/"+Ms(i.getMonth())+"/"+Ps(i.getFullYear())}},apDateYYYYMMDD:{get:function(t){var i=new Date;return i.getFullYear()+"/"+Ms(i.getMonth())+"/"+Ss(i.getDate())}},apDateYYMMDD:{get:function(t){var i=new Date;return Ps(i.getFullYear())+"/"+Ms(i.getMonth())+"/"+Ss(i.getDate())}},apCurrentSlideIndex:{get:function(t){return t.currentSlideIndex()},set:function(t,i){return t.currentSlideIndex(i),!0},type:Wt.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:Wt.NUMBER},apSpeed:{get:function(t){return bi(100*t.speed())},set:function(t,i){t.speed(i/100)},type:Wt.NUMBER},apMute:{get:function(t){return t.muted()},set:function(t,i){t.muted(i)}},apVolume:{get:function(t){return bi(100*t.volume())},set:function(t,i){t.volume(i/100)},type:Wt.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()}}},this.Us="apCurrentTime apCurrentDay apCurrentHour apCurrentMinutes".split(" ")},get:function(t){var i=this.Ys[t];if(i)return i.get?i.get(this.Ls):i.val},set:function(t,i){var s=this.Ys[t],e=!1;return s||(s=this.Ys[t]={}),!(s.get&&!s.set)&&(s.set?e=s.set(this.Ls,i):s.val!==i&&(s.val=i,e=!0),e&&this.Xs(s),!0)},remove:function(t){delete this.Ys[t];var i=this.Us.indexOf(t);i>=0&&this.Us.splice(i,1)},has:function(t){return!!this.Ys[t]},ps:function(t,i){var s=this.Ys[t];if(1==arguments.length)return s?s.type:void 0;2==arguments.length&&(s||(s=this.Ys[t]={}),s.type=i)},Ms:function(t,i){var s=this.Ys[t];if(1==arguments.length)return s?s.userType:void 0;2==arguments.length&&(s||(s=this.Ys[t]={}),s.userType=i)},addObserver:function(t,i){var s,e,n;for(s=0,e=t.length;s<e;++s)(n=this.Ys[t[s]])&&(n.obs||(n.obs=new ss),n.obs.add(i))},removeObserver:function(t){var i,s,e=this.Ys;for(i in e)(s=e[i]).obs&&s.obs.remove(t,!0)},removeObserverIf:function(t){var i,s,e=this.Ys;for(i in e)(s=e[i]).obs&&s.obs.removeIf(t,!0)},notifyObservers:function(t){var i=this.Ys[t];i&&this.Xs(i)},Xs: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(Is,function(t){var e=t.substring(1,t.length-1),n=i.Ys[e];return n?(s.vars.indexOf(e)<0&&s.vars.push(e),n.get?n.get(i.Ls):n.val):t}),s},tick:function(t){var i,s,e;for(i=0,s=this.Us.length;i<s;++i)(e=this.Ys[this.Us[i]])&&t>=(e.nextUpdate||0)&&this.Xs(e)}}),Rs=new(ts({$init:function(){var t=Ei.createElement("audio"),i=Ei.createElement("video");this.Bs="",this.Hs="",t.canPlayType&&t.canPlayType('audio/mpeg; codecs="mp3"').replace(/no/,"")?this.Bs="mp3":t.canPlayType&&t.canPlayType('audio/ogg; codecs="vorbis"').replace(/no/,"")&&(this.Bs="ogg"),i.canPlayType&&i.canPlayType('video/mp4; codecs="avc1.42E01E, mp4a.40.2"').replace(/no/,"")?this.Hs="mp4":i.canPlayType&&i.canPlayType('video/webm; codecs="vp8"').replace(/no/,"")&&(this.Hs="webm"),this.zs=!!this.Bs&&!!this.Hs,this.Gs=!1,this.Vs=!1;try{t.playbackRate=2,this.Vs=2==t.playbackRate}catch(t){}try{t.volume=.51,this.Gs=.51==t.volume}catch(t){}this.Ws=!1,this.$s=!1;var s=this,e=t.play();void 0!==e&&e.catch(function(t){s.$s=!0,Ni("MediaManager:_requireInitMediaElements: "+s.$s)}),Ni("MediaManager:_canPlayMedia: "+this.zs),Ni("MediaManager:_canChangeVolume: "+this.Gs),Ni("MediaManager:_canChangePlaybackRate: "+this.Vs),Ni("MediaManager:_fixDelayedMediaPlaying: "+this.Ws),Ni("MediaManager:_requireInitMediaElements: "+this.$s)},canChangeVolume:function(){return this.Gs},canChangePlaybackRate:function(){return this.Vs}}));ks.mediaManager=Rs;var As=ts({$init:function(){this.js=[],this.Qs=[],this.Ks=[],this.qs=1,this.Js=!1,this.Zs=1,this.te=!1,this.ks=6,this.se=!1},ee: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,t[8]>0&&(e+=1),t[7]>0&&(e+=this.ks),i=0;i<e;++i)(s=Ei.createElement("audio")).muted=!0,this.js.push(s);for(i=0;i<n;++i)(s=Ei.createElement("video")).muted=!0,this.Qs.push(s);this.te=t[6]>0,this.se=e<=0&&n<=0},ne:function(t){if(this.se)t.call(null);else{this.se=!0;var i,s,e,n=this.js.concat(this.Qs),h=[];if(0!=(s=n.length))for(i=0;i<s;++i)e=n[i],h.push(!1),this.he(t,e,i,h);else t.call(null)}},he:function(t,i,s,e){var n,h,r,a,o,u=["error","ended","loadstart","durationchange","loadedmetadata","loadeddata","canplay","waiting","playing","canplaythrough","stalled","emptied","suspend"];for(o=function(c){for(Ni("Prepare Media Complete: | index: "+s+"| event: "+c.type),e[s]=!0,r=0,a=u.length;r<a;++r)i.removeEventListener(u[r],o);i.pause();var l=!0;for(n=0,h=e.length;n<h;++n)if(!e[n]){l=!1;break}l&&t.call(null)},r=0,a=u.length;r<a;++r)i.addEventListener(u[r],o);var c=i.play();void 0!==c&&c.catch(function(t){Ni("_prepareMediaElement play error: "+t)})},re:function(t){this.Ks.push(t)},ae:function(t){var i=this.Ks.indexOf(t);i>-1&&this.Ks.splice(i,1)},playbackRate:function(t){if(!arguments.length)return this.Zs;if(Rs.canChangePlaybackRate()){this.Zs=t;var i,s,e=this.Ks;for(i=0,s=e.length;i<s;++i)e[i].playbackRate(t)}else Ni("This device does not support changing playback rate")},volume:function(t){if(!arguments.length)return this.qs;if(Rs.canChangeVolume()){this.qs=t;var i,s,e=this.Ks;for(i=0,s=e.length;i<s;++i)e[i].volume(t)}else Ni("This device does not support changing volume")},muted:function(t){if(!arguments.length)return this.Js;this.Js=t;var i,s,e=this.Ks;for(i=0,s=e.length;i<s;++i)e[i].muted(t)},oe:function(){var t,i,s=this.Ks,e=this.js.concat(this.Qs);for(t=0,i=e.length;t<i;++t)e[t].muted=!1;for(t=0,i=s.length;t<i;++t)s[t].oe()},ue:function(t){var i,s,e=this.Ks;for(i=0,s=e.length;i<s;++i)e[i].ue(t)}}),Ns=ts({$init:function(t){this.Ls=t,this.ce=[],this.le=0,this.fe=!1},goBackward:function(){var t=this.ce[this.le-1],i=!1;return t&&(this.fe=!0,--this.le,i=this.Ls.showSlide(t),this.fe=!1),i},goForward:function(){var t=this.ce[this.le+1],i=!1;return t&&(this.fe=!0,++this.le,i=this.Ls.showSlide(t),this.fe=!1),i},add:function(t){t&&!this.fe&&t!=this.ce[this.le]&&(this.le>=0&&this.le<this.ce.length-1&&(this.ce.length=this.le+1),this.ce.push(t),this.le=this.ce.length-1)},clear:function(){this.ce.length=0,this.le=0,this.fe=!1}}),Ds=/^ap-(prez|slide|ctrl)-/,Os=new hs({onItemComplete:function(t){t.id&&t.id.pe&&t.id.pe(t.status)}});function Ls(t,i){return t+"."+(0==i?"png":1==i?"jpg":"gif")}function Ys(t,i,s){if(t&&(t.b&&(t.b.im?s.push(i.getResource(Ls(t.b.im[0],t.b.im[1]))):t.b.f&&t.b.f[0]===z.u&&s.push(i.getResource(Ls(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&&Fs(h,t,i,s)}}function Fs(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(Ls(a.im[0],a.im[2]))):a.f&&a.f[0]===z.u&&n.push(e.getResource(Ls(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&&Fs(o,s,e,n)}}function Us(t,i,s,e,n,h){h=h||n,t.addChild(new wn(i,"mediaDuration",{startTime:e,duration:0,tweenParams:[0,h],tweenType:yt.Qi})).addChild(new wn(i,"mediaSrc",{startTime:e,duration:0,tweenParams:[-1,s],tweenType:yt.Qi})).addChild(new wn(i,"mediaState",{startTime:e,duration:0,tweenParams:["stopped","playing"],tweenType:yt.Qi})).addChild(new gn(i,"mediaSeek",{startTime:e,duration:h,tweenParams:[0,1],tweenType:yt.ve})).addChild(new wn(i,"mediaState",{startTime:e+n,duration:0,tweenParams:["playing","stopped"],tweenType:yt.Qi}))}var Xs=ts({$init:function(i,s,e){var n;this.Ps={slides:[],fbs:[],randomMap:{},index:0,ts:0,elapsedTime:0,vars:{},s:1},this.me=new Ns(this),this.vars=new Cs(this),this.timeline=null,this.transition=null,this.be=null,this.started=!1,this.ended=!1,this.we=!1,this._e=[],this.Te=0,this.ye=0,this.ke=!1,this.xe=xt,this.Ee={},this.contentState="loading",this.destroyed=!1,this.Se=!0,this.Me=0,this.xs=new As,i&&typeof i===ni?(this.Cs=null,this.Pe=i):this.Cs=i||null,typeof s===ni?(n=s,s=Ei.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=Bi(decodeURIComponent(o[1]));break;case"slidetime":e.slideTime=Bi(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 ks.UI(c),this.nodeId="ap-prez-"+(n?n.replace(Ds,""):"")+"-"+Ts(),this.Ie=this.nodeId.replace(Ds,""),this.Ce=0;var l=this;this.Re=new hs({maxConnections:8,maxTime:120,onItemComplete:function(t){if(l._e.push(t.url),l._e.length<=l.ye){if(!l.started){var i=l._e.length/l.ye;l.ui.loadingUi.setText(wi(100*i)+"%")}}else l.Te<10?l.Te++:(l.Te=0,l.Rs())},onTimeout:function(){},onComplete:function(){l.we=!0,l.Rs()},onStart:function(){l.ui.loadingUi.show()},onProgress:function(){}}),this.slide=this.prevSlide=this.bottomSlide=this.topSlide=null,this.slideIndex=-1,this.layoutIndex=-1,s?this.Ae(s):n&&t(function(){(s=Ei.getElementById(n))&&l.Ae(s)})},Ne:function(t){if(!t)return!0;if(!this.we){var i=[];Ys(t,this,i);for(var s=0,e=i.length;s<e;++s)if(this._e.indexOf(i[s])<0)return!1}return!(this.Cs.hasEquation&&!t.De)},Oe:function(){return!this.slide||(!(!this.we||this.Cs.hasEquation&&!this.slide.Cs.De)||this.Ne(this.slide.Cs))},Le:function(t){t!=this.ke&&(this.ke=t,t?this.Ye():this.Fe())},Rs:function(){if(this.Cs.hasEquation){if(ks.mathJaxAPIState==Et||ks.mathJaxAPIState==xt)return;if(ks.mathJaxAPIState==St&&this.xe==xt)return void this.Ue()}if(!this.xs.te||ks.youtubeAPIState!=Et&&ks.youtubeAPIState!=xt)if(this.started)this.ke&&this.Oe()&&this.Le(!1);else{for(var t=0,i=this.Cs.pcs.length;t<i;++t){var s=this.Cs.pcs[t];if(!this.Ne(s))return}var e=isNaN(this.options.slide)?0:this.options.slide-1;if(this.Ne(this.Xe(e))){var n=function(){this.ui.loadingUi.hide(),isNaN(this.options.slide)?this.start():this.start(this.options.slide,this.options.slideTime)};if(ks.youtubeAPIState!=Mt)n.call(this);else{var h=this;this.ui.showMsg(this.ui.Fs.text("YouTubeError"),!0,void 0,function(){n.call(h)})}}}},Ae:function(t){this.destroyed||(this.container=t,this.ui.appendTo(t),this.ui.loadingUi.show(),this.Pe?Os.load({url:this.Pe,type:"js",id:this}):this.pe())},pe:function(t){if(!this.destroyed){if(this.Pe)if(t===es.LOADED)this.Cs=ks.loadedPrezs.shift(),this.Cs||(this.contentState="error",this.ui.loadingUi.hide(),alert("Error parsing the presentation. Check the browser console for more information."));else{if(t!==es.ERROR)return;this.contentState="error",this.ui.loadingUi.hide(),alert(Es.text("LoadPrezError"))}if(this.Cs?ks.compatible(this.Cs)||(this.contentState="incompatible",this.ui.loadingUi.hide(),alert(Es.text("IncompatiblePrez"))):this.Cs={},"loading"===this.contentState&&(this.contentState="loaded"),ks.presentations.push(this),void 0!==this.options.time&&void 0===this.options.slide){var i=this.Be(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.Cs.options.resourceLocation||"",this.fileNamePrefix=void 0!==this.options.fileNamePrefix?this.options.fileNamePrefix:this.Cs.options.fileNamePrefix||"",this.playerResource=void 0!==this.options.playerResource?this.options.playerResource:this.Cs.options.playerResource||"";this.options.playMode;var s=this.xs,e=this.Cs.params;if(void 0!==this.options.autofit&&(e.DisplayMode[0]=e.DisplayMode[1]=e.DisplayMode[2]=e.DisplayMode[3]=this.options.autofit?Vt.AUTOFIT:Vt.ACTUAL_SIZE),this.He=!0,s.ee(this.Cs.mediaStats),this.lms=this.Cs.options.lms?new ks.LMS(this):null,this.lms&&(this.lms.initialize(),this.lms.loadSuspendData(),this.ze=this.Ps.elapsedTime||0,this.Ps.fbs&&this.Ps.fbs.length&&(this.Ge=this.Ps.fbs),this.Ps.fbs=[],this.Ps.vars))for(var n in this.Ps.vars)this.Ps.vars.hasOwnProperty(n)&&this.variable(n,this.Ps.vars[n]);this.Ve(),this.Cs.hasEquation&&ks.loadMathJaxAPI(this.playerResource),s.te&&ks.loadYouTubeIframeAPI();var h=function(t){var i,s,e,n=[],h=t.cssUrl(),r=t.Cs,a=0;for(h&&n.push(h),r.authorImage&&n.push(t.getResource(Ls(r.authorImage[0],r.authorImage[1]))),r.companyLogo&&n.push(t.getResource(Ls(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])&&Ys(i,t,n);if(r.feedbacks)for(s=0,e=r.feedbacks.length;s<e;++s)(i=r.feedbacks[s])&&Ys(i,t,n);for(s=0,e=r.slides.length;s<e;++s)(i=r.slides[s])&&Ys(i,t,n),3==s&&(a=n.length);return s<=3&&(a=n.length),{preloadCount:a,allResources:n}}(this);this.ye=h.preloadCount,this.Re.load(h.allResources),this.Rs()}else this.ui.loadingUi.hide()}},version:function(){return this.Cs&&this.Cs.v||""},destroy:function(){if(!this.destroyed){if(this.destroyed=!0,this.lms){if(this.started&&!this.ended){this.slide&&this.be&&(this.Ps.ts=this.be.time()-this.slide.Cs.st),this.Ps.elapsedTime=this.elapsedTime();var t=this.vars.Ys;for(var i in t)this.vars.Ms(i)&&(this.Ps.vars[i]=this.vars.get(i));this.lms.storeSuspendData(this.Ps,!0)}this.lms.terminate()}var s=ks.presentations,e=s.indexOf(this);if(e>-1&&s.splice(e,1),this.We){for(var n=0;n<this.We.length;++n)this.We[n].cleanup();this.We.length=0}this.pauseAll(),this.ui.destroy()}},genId:function(){return++this.Ce},genDomId:function(t){return t+this.Ie+"-"+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()},$e:function(){return this.ui?this.ui.$e: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},bs:function(t){return this.Cs.f[t]},je:function(t){var i,s,e=this.Cs.slides;if(!arguments.length)return e||[];for(i=0,s=e.length;i<s;++i)if(e[i].i===t)return e[i];return null},Qe:function(t){var i,s,e=this.Cs.slides;for(i=0,s=e.length;i<s;++i)if(Fi(e[i].n).trim()===t)return e[i];return null},Xe:function(t){return this.Cs.slides[t]},Ke:function(t){var i,s,e=this.Cs.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},slideId:function(t){return t>=0&&t<this.Cs.slides.length?this.Cs.slides[t].i:-1},slideCount:function(){return this.Cs.slides.length},showSlideById:function(t){return this.showSlide(this.je(t))},showFeedbackById:function(i,s,e){var n=this.Ke(i);if(!n)return!1;var h=void 0!==s&&s>=0;if(this.qe||(this.qe=[]),this.Je(i)>=0)return!0;this.fbTransition&&(this.fbTransition.remove(),this.fbTransition.seek(this.fbTransition.totalDuration()),this.fbTransition=null);var r=new Ye(this,n),a=this;if(this.qe.push(r),h||this.Ps.fbs.push(i),this.Ze(!!r.Cs.w),!(n.ts&&n.ts[1]>0)||this.allPaused()&&this.ended||(this.fbTransition=ks.createTransition.apply(ks,[this,r,this.slide].concat(n.ts)),this.fbTransition.addChild(new bn(function(){var t=a.fbTransition;setTimeout(function(){t&&t.remove()},0)},{startTime:this.fbTransition.duration(),duration:0})),this.fbTransition.startTime(),r.be.addChild(this.fbTransition),this.fbTransition.setup()),h){var o=new bn(function(){a.hideFeedbackById(i),e&&e()},{startTime:s});r.gs(o),r.be.addChild(o)}else r.tn=e;return r.be.startTime(this.timeline.totalTime()),this.timeline.addChild(r.be),r.be.setup(),r.be.play(0),t(r).triggerHandler("ap-load"),!0},hideFeedbackById:function(t){this.sn(this.Je(t))},sn:function(i){if(this.qe&&i>=0&&i<this.qe.length){var s=this.qe[i];if(s){t(s).triggerHandler("ap-unload"),s.remove(),s.tn&&s.tn();var e=this.Ps.fbs.indexOf(s.Cs.fbi);e>=0&&this.Ps.fbs.splice(e,1)}this.qe.splice(i,1)}},hideAllFeedbacks:function(){if(this.qe)for(;this.qe.length;)this.sn(this.qe.length-1)},Ss:function(t){if(this.qe)for(var i=0,s=this.qe.length;i<s;++i)if(this.qe[i]==t)return!0;return!1},Je:function(t){if(this.qe)for(var i=0,s=this.qe.length;i<s;++i)if(this.qe[i].Cs.fbi===t)return i;return-1},firstSlide:function(){return this.showSlide(0)},lastSlide:function(){return this.showSlide(this.slideCount()-1)},currentSlide:function(){return this.slide},nextSlide:function(){return this.showSlide(this.slideIndex+1)},previousSlide:function(){return this.showSlide(this.slideIndex-1)},historyBack:function(){return this.me.goBackward()},historyForward:function(){return this.me.goForward()},en: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}},nn:function(){for(var t={},i=this.Ps.slides,s=0,e=i.length;s<e;++s)i[s]&&(t[s]=!0);return t},showClosedCaption:function(i){arguments.length||(i=!0),this.He=i,this.hn&&t(this.hn.node).css("visibility",i?"visible":"hidden"),this.vars.notifyObservers("apCCVisible"),t(this.ui).trigger("ap-cc",[i])},closedCaptionVisible:function(){return!!this.He},rn:function(t){var i,s;t?(i=this.slide,s=this.prevSlide):(i=this.prevSlide,s=this.slide),i&&(i.node.style.zIndex=_t.Oi,i.background&&(i.background.node.style.zIndex=_t.Di)),s&&(s.node.style.zIndex=_t.Fi,s.background&&(s.background.node.style.zIndex=_t.Li))},showSlideAt:function(t,i){return this.showSlide(t-1,i)},showSlide:function(i,s){var e=typeof i;if("number"===e?i=this.Xe(i):"string"===e&&(i=this.Qe(i)),!i)return this.ended||this.slideIndex!==this.slideCount()-1||this.end(),!1;if(this.Ge&&this.Ge.length){for(var n=0,h=this.Ge.length;n<h;++n)this.showFeedbackById(this.Ge[n]);delete this.Ge}else this.hideAllFeedbacks();if(!this.ended&&this.slide){var r=this.be.time()-this.slide.Cs.st>=this.slide.Cs.d;(this.slideIndex!=i.index&&r&&!this.be.Se||this.Ps.slides[this.slideIndex])&&t(this.ui).trigger("ap-slideCompleted",[this.slide.Cs.i,!0])}s=Di(s=s||0,0,i.d),this.transition&&(this.transition.remove(),this.transition.seek(this.transition.totalDuration()),this.transition=null),this.en(),this.slide&&this.slide.cleanup();var a=this.layoutIndex<0?0:this.layoutIndex;this.ui.setSlideSize(this.Cs.l[a][0],i.h[a]),this.prevSlide=this.slide,this.slideIndex=i.index,this.an=void 0==this.an?this.slideIndex:fi(this.an,this.slideIndex),this.un=void 0==this.un?this.cn(this.slideIndex,s):fi(this.un,this.cn(this.slideIndex,s)),this.ln=!1,this.slide=new Ye(this,i),this.rn(),this.Ze(!!this.slide.Cs.w),this.be.addChild(this.slide.be);var o=this,u=new bn(function(){void 0!==i.a&&1!=i.a&&"Demo"!=o.playMode()||o.isReviewingMode()?(o.ln=!0,o.pause(!0),o.isReviewingMode()&&o.slideIndex===o.slideCount()-1&&o.pauseAll()):(t(o.ui).trigger("ap-slideCompleted",[o.slide.Cs.i,!0]),o.slideIndex===o.slideCount()-1?o.end():o.nextSlide())},{startTime:this.slide.be.startTime()+(i.d||0)});if(this.slide.gs(u),this.be.addChild(u),!(!s&&i.ts&&i.ts[1]>0)||this.allPaused()&&this.ended||(this.transition=ks.createTransition.apply(ks,[this,this.slide,this.prevSlide].concat(i.ts)),this.transition.addChild(new bn(function(){var t=o.transition;o.rn(),o.en(ks.TransitionMinDuration-t.duration()),setTimeout(function(){t&&(t.remove(),o.transition===t&&(o.transition=null))},0)},{startTime:this.transition.duration(),duration:0})),this.transition.startTime(this.slide.be.startTime()),this.be.addChild(this.transition),this.transition.setup()),this.be.time()!==i.st+s){if(this.topSlide||this.bottomSlide)for(var c,l=this.timeline.firstChild;l;)c=l.next,l.slide!==o.topSlide&&l.slide!==o.bottomSlide||l.Es||(l.remove(),l.seek(l.totalDuration())),l=c;var f=this.paused();this.be.seek(i.st+s),f&&this.pause(!1)}else this.slide.be.update(0,!0),this.transition&&this.transition.update(0,!0),this.pause(!1);if(this.me.add(i),this.ended||(this.slide.savedData(!0),this.Ps.index=this.slideIndex,this.Ps.ts=s,this.lms&&(this.lms.setBookmark(Fi(i.n),Fi(i.de),this.slideIndex),this.lms.storeSuspendData(this.Ps,!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.be.time()]),this.prevSlide&&t(this.prevSlide).triggerHandler("ap-unload"),this.slide.fn.length&&this.container){var d=this.container.getBoundingClientRect(),p=(d.left+d.right)/2,v=(d.top+d.bottom)/2;p>=0&&p<=window.innerWidth&&v>=0&&v<=window.innerHeight&&setTimeout(function(){o.container.focus({preventScroll:!0})},0)}return t(this.slide).triggerHandler("ap-load"),this.transition||this.en(ks.TransitionMinDuration),this.Ne(i)?this.Le(!1):this.Le(!0),!0},Ue:function(){if(ks.mathJaxAPIState==St&&this.xe==xt){this.xe=Et;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.De=!0,t.Rs()})},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.Ee[h]){t.Ee[h]=!0;var r=Ei.createElement("div"),a=r.style;e.t[1]&&(a.cssText=e.t[1]),a.position="absolute",a.visibility="hidden",r.innerHTML=n,Ei.body.appendChild(r),MathJax.Hub.Queue(["Typeset",MathJax.Hub,r]),MathJax.Hub.Queue(function(){t.Ee[h]=r.innerHTML,Ei.body.removeChild(r)})}MathJax.Hub.Queue(function(){if(e.t[0]=t.Ee[h],t.slide&&t.slide.Cs==i){var r=t.object(s.n);r&&r.vs.id()==e.i&&(Ai.innerHTML=n,r.html()==Ai.innerHTML&&r.html(t.Ee[h]))}})};if(this.Cs.pcs&&(this.Cs.pcs[0]&&i.call(null,this.Cs.pcs[0]),this.Cs.pcs[1]&&i.call(null,this.Cs.pcs[1])),this.Cs.feedbacks){this.Cs.feedbacks.length;for(var n=0;n<this.Cs.feedbacks.length;n++)i.call(null,this.Cs.feedbacks[n])}var h,r=this.Cs.slides;for(n=0,h=r.length;n<h;++n)i.call(null,r[n]);t=this;MathJax.Hub.Queue(function(){t.xe=St,t.Rs()})}},Ve:function(){var i,s,e,n=this.Cs.slides||[],h=this.Cs.pools||[],r=[];this.dn=r;var a,o=0,u={},c={};for(s=0;s<n.length;++s){if((i=n[s]).rd)(f=h[i.lp])&&f.length>0&&(c[i.lp]||(c[i.lp]=0),c[i.lp]++)}for(s=0,e=n.length;s<e;++s){a=(i=n[s]).i;var l=!0;if(i.rd){var f,d=i.lp;if((f=h[d])&&f.length>0)if(this.Ps.randomMap&&void 0!==this.Ps.randomMap[i.i]){p=i.i;this.Cs.slides[s]=i=t.extend(!0,{},f[this.Ps.randomMap[i.i]]),a=i.i,i.i=p,i.thumbId=a}else{u[d]||(u[d]=Li(f.length,c[d]));var p=i.i;this.Cs.slides[s]=i=t.extend(!0,{},f[u[d][0]]),a=i.i,i.i=p,i.thumbId=a,this.Ps.randomMap[i.i]=u[d][0],u[d].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})}if(this.Cs.pcs&&(this.Cs.pcs[0]&&(this.Cs.pcs[0].index=n.length),this.Cs.pcs[1]&&(this.Cs.pcs[1].index=n.length+1)),this.Cs.feedbacks){var v=n.length+2;for(s=0,e=this.Cs.feedbacks.length;s<e;++s)this.Cs.feedbacks[s].index=v,++v}},pn:function(){var i=this.ui,s=this,e=this.Cs,n=s.Cs.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;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,n&&n.length>0&&(h.slideWidth=n[0][0],h.slideHeight=n[0][1]);var r,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),e.ar&&0!=e.ar.length||(a.ShowResourcesBtn=!1),e.av&&e.av.length&&0!=a.SideBarPos||(a.ShowAuthorVideo=!1),Rs.canChangePlaybackRate()||(a.ShowSpeedBtn=!1),Rs.canChangeVolume()||(a.ShowVolumeBar=!1),this.vn=a.Navigation,i.create("#"+this.containerId,e.toc,this.dn||[],e.ar,a,h),this.dn&&delete this.dn,(r=t(i)).trigger("ap-speed",[1]),r.trigger("ap-mute",[this.muted()]),r.trigger("ap-volume",[this.muted()?0:100*this.volume()]),r.trigger("ap-cc",[this.closedCaptionVisible()]),r.trigger("ap-toc",[this.tocVisible()]),r.trigger("ap-sidebar",[this.sidebarVisible()]),r.trigger("ap-resources",[!0]),this.showToolbar(a.ShowToolbar),a.ShowAuthorVideo&&(s.We=[],t(".ap-presenter-video",t("#"+this.containerId)).each(function(t){var i=new Me(s);i.appendTo(this),s.We.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.Ds(t)})),(r=t(this.ui)).on("ui:ap-layout",function(){Ni("Enter ui:ap-layout");var t,e,h,r=i.getMaxContentSize().width,a=0,o=!1;if(n)for(t=n.length-1;t>=0;--t)if(n[t][0]<=r||0===t){a=t,e=n[t][0],h=n[t][1];break}if(a!==s.layoutIndex&&(Ni("Change layout from "+s.layoutIndex+" to "+a),s.layoutIndex=a,o=!0,s.slide&&(h=s.slide.Cs.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.qe)for(t=0;t<s.qe.length;++t){(u=s.qe[t])&&u.onLayoutSwitched()}s.options.onLayoutSwitched&&s.options.onLayoutSwitched.call(s)}else if(s.slide&&s.slide.bn(),s.prevSlide&&s.prevSlide.bn(),s.topSlide&&s.topSlide.bn(),s.bottomSlide&&s.bottomSlide.bn(),s.qe)for(t=0;t<s.qe.length;++t){var u;(u=s.qe[t])&&u.bn()}Ni("Exit ui:ap-layout")}),r.on("ui:ap-showSlide",function(t,i){s.canNavigateTo(s.je(i).index,0)&&s.showSlideById(i)}),r.on("ui:ap-restart",function(){s.restart()}),r.on("ui:ap-first",function(){s.canNavigateTo(0,0)&&s.firstSlide()}),r.on("ui:ap-last",function(){if(s.slideIndex<s.slideCount()-1){if(!s.canNavigateTo(s.slideCount()-1,0))return;s.lastSlide()}}),r.on("ui:ap-next",function(){if(s.slideIndex<s.slideCount()-1){if(!s.canNavigateTo(s.slideIndex+1,0))return;s.nextSlide()}}),r.on("ui:ap-previous",function(){if(s.slideIndex>0){if(!s.canNavigateTo(s.slideIndex-1,0))return;s.previousSlide()}}),r.on("ui:ap-pause",function(){s.pauseAll(!s.allPaused())}),r.on("ui:ap-speed",function(t,i){s.speed(i)}),r.on("ui:ap-progress",function(t,i){var e=s.Be(i);if(e){if(!s.canNavigateTo(e.slideIndex,e.slideTime))return;s.showSlide(e.slideIndex,e.slideTime)}}),r.on("ui:ap-cc",function(){s.showClosedCaption(!s.closedCaptionVisible())}),r.on("ui:ap-toc",function(){s.showToc(!s.tocVisible())}),r.on("ui:ap-sidebar",function(){s.showSidebar(!s.sidebarVisible())}),r.on("ui:ap-expand-sidebar",function(t,i){s.wn(i)}),r.on("ui:ap-sound",function(){s.gn?s._n():s.muted(!s.muted())}),r.on("ui:ap-volume",function(t,i){s._n(),s.volume(i/100)}),r.on("ui:ap-about",function(){s.showAbout()}),r.on("ui:ap-resources",function(){s.showResources(!s.resourcesVisible())}),r.on("ui:ap-exit",function(){s.destroy(),window.close()}),n&&n.length>0&&this.Cs.responsive?this.setMaxContentWidth(n[n.length-1][0]):this.layout(),this.started=!0,e.e&&e.e.l&&$s(this,e.e.l,this.options.playMode),this.xs.te){var c=ks.browser;(c.ie||c.edge)&&"file:"==window.location.protocol&&i.showMsg(i.Fs.text("YouTubeIEError"),!0)}this.Tn=!0},yn:function(t){var i=this.Cs.av;if(this.We&&i&&i.length)for(var s=0,e=this.We.length;s<e;++s)for(var n=this.We[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 wn(n,"display",{startTime:0,duration:0,tweenParams:["none","none"],tweenType:yt.Qi})),n.xn.kn(a[5]||a[2]),n.xn.loadResource(a[0])),t.addChild(new wn(n,"authorVideoRatio",{startTime:a[1],duration:0,tweenParams:[o,o],tweenType:yt.Qi})).addChild(new wn(n,"display",{startTime:a[1],duration:0,tweenParams:["none","block"],tweenType:yt.Qi})),Us(t,n,a[0],a[1],a[2],a[5]),(!i[h+1]||i[h+1][1]>a[1]+a[2])&&t.addChild(new wn(n,"display",{startTime:a[1]+a[2],duration:0,tweenParams:["block","none"],tweenType:yt.Qi}))}},En:function(){if(this.We)for(var t=0,i=this.We.length;t<i;++t)this.We[t].bn()},_n:function(){this.gn&&(delete this.gn,this.muted(!1),this.xs.se=!0,this.xs.oe(),t(this.container).off("mousedown.apUnmuteOnTap"),this.Cs.options.showUnmuteMsg&&this.ui.hideUnmuteHintMsg())},start:function(i,s){this.Tn||this.pn();var e,n,h=this,r=this.Cs.slides||[],a=this.Cs.vars||[];for(e=0,n=a.length;e<n;++e){var o=a[e],u=o[0],c=o[1],l=o[2],f=o[3];this.vars.ps(u,l),this.vars.Ms(u,f),l==Wt.NUMBER&&(c=Number(c)),this.Ps.vars.hasOwnProperty(u)&&(c=this.Ps.vars[u]),this.vars.set(u,c)}if(this.me.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.qe){for(e=0;e<this.qe.length;++e)this.qe[e].cleanup(),this.qe[e].remove();this.qe.length=0}if(this.Ps.fbs.length=0,this.be&&(this.be.remove(),this.be=null),this.timeline=new _n({paused:!0}),this.be=new yn,this.timeline.addChild(this.be),r.length){var d=r[r.length-1];this.be.addChild(new bn(_i,{startTime:d.st+d.d}))}this.Sn=0;var p,v,m=this.nn();for(e=0,n=r.length;e<n;++e)t(this.ui).trigger("ap-slideCompleted",[this.slideId(e),void 0!==m[e]&&m[e]]);if(void 0!==i&&(this.Ps.index=i-1),void 0!==s&&(this.Ps.ts=s),this.Ps.index=this.Ps.index||0,this.Ps.ts=this.Ps.ts||0,Rs.$s&&!h.xs.se&&(h.muted(!0),h.gn=!0,t(h.container).on("mousedown.apUnmuteOnTap",function(){h._n()}),h.Cs.options.showUnmuteMsg&&h.ui.showUnmuteHintMsg()),this.ui.loadingUi.hide(),this.Cs.pcs){var b=this.Cs.pcs[0];b&&(b.isBottom=!0,this.bottomSlide=new Ye(this,b),this.yn(this.bottomSlide.be),this.bottomSlide.be.startTime(0),this.be.addChild(this.bottomSlide.be)),(b=this.Cs.pcs[1])&&b.cc&&b.cc.length&&(b.isTop=!0,this.topSlide=new Ye(this,b),this.topSlide.be.startTime(0),this.be.addChild(this.topSlide.be))}return this.lms&&this.lms.startLesson(),p=this.Ps.index||0,v=this.Ps.ts||0,this.Me=0,this.Mn&&(clearTimeout(this.Mn),delete this.Mn),t(this).triggerHandler("ap-load"),this.showSlide(p,v),this.Se=!1,t(this.ui).trigger("ap-pause",[!1]),this.Ps.s=this.Ps.s||1,this.speed(this.Ps.s),this.timeline.paused(!1),ks.pageVisible()||ks.Ns(this),this},restart:function(t,i){return void 0===t&&(t=1),void 0===i&&(i=0),this.Ps.index=0,this.Ps.ts=0,this.Ps.slides=[],this.Ps.elapsedTime=this.ze||0,this.Ps.vars={},this.lms&&this.lms.storeSuspendData(this.Ps),this.ended=!1,this.pauseAll(!1),this.Pn=!1,this.an=void 0,this.un=void 0,this.start(t,i)},seek:function(t,i){return this.showSlide(t,i)},Be:function(t){if(!isNaN(t)){var i,s,e,n=-1,h=0,r=this.Cs.slides;for(s=0,e=r.length;s<e;++s){if(t<(i=r[s]).d){n=s,h=fi(t,0);break}t-=i.d}return n<0&&e>0&&(h=r[n=e-1].d),{slideIndex:n,slideTime:h}}},cn:function(t,i){if(isNaN(i))return 0;var s,e,n,h=0,r=this.Cs.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.vn==$t)return!1;if(this.vn==jt){if(void 0==this.an||this.an<t)return!1;if(void 0==this.un||this.un<this.cn(t,i))return!1}return!0},time:function(t){if(!arguments.length)return this.be.time();var i=this.Be(t);return!!i&&this.showSlide(i.slideIndex,i.slideTime)},slideTime:function(t){if(!arguments.length)return this.slide?this.be.time()-this.slide.be.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.Cs.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.In;var s=[.5,1,1.5,2];if(s.indexOf(i)<0){for(var e=Number.MAX_VALUE,n=0,h=0,r=s.length;h<r;++h){var a=oi(s[h]-i);a<e&&(e=a,n=h)}i=s[n]}return Rs.canChangePlaybackRate()?(this.Ps.s=i,this.timeline.speed(i),t(this.ui).trigger("ap-speed",[i]),this.xs.playbackRate(i),this.vars.notifyObservers("apSpeed"),this):(Ni("This device doesn't support changing speed"),this)},pauseAll:function(i){return arguments.length||(i=!0),i=!!i,this.Se==i?this:(this.Se=i,i?(this.xs.ue(!0),this.timeline.paused(!0)):0==this.Me&&(this.xs.ue(!1),this.timeline.paused(!1)),t(this.ui).trigger("ap-pause",[i]),this)},allPaused:function(){return this.Se},paused:function(){return this.be.paused()},pause:function(t){return arguments.length||(t=!0),!t&&this.ln?this:(this.be.paused(t),this.vars.notifyObservers("apPause"),this.vars.notifyObservers("apResume"),this)},end:function(t){if(this.ended)return Ni("Prez.end() is called when it's already ended"),this;if(this.hideAllFeedbacks(),t){this.ui.showMsg(this.ui.Fs.text("MaxPrezTimeReached"),!0);for(var s,e,n,h,r,a=this.je(),o=a.length,u=kt[this.options.playMode];--o>=0;)if(e=a[o].cc)for(n=0,h=e.length;n<h;++n)if(e[n].k===i.Y){(void 0===(r=e[n].m)||r&u)&&(s=a[o]),o=-1;break}s&&this.showSlide(s,1)}this.ended=!0,this.pauseAll(!0),this.vars.notifyObservers("apRemainingTime"),this.vars.notifyObservers("apRemainingTimeMs"),this.vars.notifyObservers("apElapsedTime"),this.vars.notifyObservers("apElapsedTimeMs"),this.lms&&this.lms.endLesson(t);var c=this.Cs.options;return"Test"!==c.playMode&&"Practice"!==c.playMode&&"Tutorial"!==c.playMode||c.reportMethod==lt||this.sendReport(),this},mute:function(t){return arguments.length||(t=!0),this.muted(t)},muted:function(i){var s=this.xs;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.xs;return arguments.length?(i=Di(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.Cs,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},Ye:function(){if(Ni("_increaseBufferingCounter: "+(this.Me+1)),0==this.Me){this.xs.ue(!0),this.timeline.paused(!0);var t=this.ui.loadingUi;this.Mn=setTimeout(function(){t.show(),t.setText("")},3e3)}this.Me++},Fe:function(){this.Me<=0?Ni("Invalid _decreaseBufferingCounter call"):(this.Me--,Ni("_decreaseBufferingCounter: "+this.Me),0==this.Me&&(this.Mn&&(clearTimeout(this.Mn),delete this.Mn),this.ui.loadingUi.hide(),this.Se||(this.xs.ue(!1),this.timeline.paused(!1))))},mn:function(t){var i=xi();if(this.Cn&&i-this.Cn<=ks.DoubleClickMaxTime&&t.preventDefault(),this.Cn=i,!(ds(t)||!this.ds()||this.qe&&this.qe.length)){var s,e,n,h,r,a,o,u=[this.slide,this.bottomSlide,this.topSlide],c=bs.OUTSIDE,l=t.originalEvent||t;for(h=0,r=u.length;h<r;++h)if(s=u[h]){for(a=0,o=(e=s.Rn).length;a<o;++a)(n=e[a]).ds(!0,!0)&&n.submit(c,!1);for(a=0,o=(e=s.fn).length;a<o;++a)(n=e[a]).ds(!0,!0)&&n.submit(c,l)}}},Ds:function(t){if(ms.hasKeydown(t.which)===("keydown"===t.type)){var i=ms.combinedCode(t),s=t.target.nodeName.toLowerCase(),e="textarea"===s||"input"===s,n=this.slide&&this.slide.fn.length||this.bottomSlide&&this.bottomSlide.fn.length||this.topSlide&&this.topSlide.fn.length;if(!this.ds()||e||this.qe&&this.qe.length)return ms.shouldPreventDefault(i,e,n)&&ms.preventDefault(t),void t.stopPropagation();var h,r,a,o,u,c,l,f,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,l=(a=h.fn).length;c<l;++c)(r=a[c]).ds(!0,!0)&&((f=r.An(i,!0)).result===rt.Ci&&(d=!0,r.submit(i,m)),f.result!==rt.Pi&&(p=!0));if(!d)for(o=0,u=v.length;o<u;++o)if(h=v[o]){for(c=0,l=(a=h.Rn).length;c<l;++c)(r=a[c]).ds(!0,!0)&&r.submit(i,!0);for(c=0,l=(a=h.fn).length;c<l;++c)(r=a[c]).ds(!0,!0)&&r.submit(i,m)}(p||ms.shouldPreventDefault(i,e,n))&&ms.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)},Nn: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.Nn(n.cc,i)))return e}return null},correctResponses:function(n,h){var r,a,o,u,c,l,f,d,p,v,m;switch(h.k){case i.P:for(r=[],o=0,u=(c=h.e.v||[]).length;o<u;++o)h.t==s.H?r.push(bs.name(c[o],this.ui.Fs)):r.push(ms.name(c[o]));break;case i.S:for(r=[],o=0,u=(c=h.e.v||[]).length;o<u;++o)r.push(c[o]);break;case i.C:var b;for(r=[],o=0,u=(c=h.e.v||[]).length;o<u;++o)(b=this.Nn(n.cc,c[o]))&&r.push(b.r);break;case i.L:switch(l=h.cc||[],h.t){case s.it:case s.J:case s.tt:var w;for(r=[],a=[],o=0,u=(c=h.e.v||[]).length;o<u;++o)(w=this.Nn(l,c[o]))&&a.push(w.r);r.push(a);break;case s.nt:for(r=[],a=[],o=0,u=l.length;o<u;++o)a.push(l[o].r);r.push(a);break;case s.et:for(r=[],o=0,u=l.length;o<u;++o)if(l[o].k==i.S)if(f=(c=l[o].e.v||[]).length,r.length>0)for(v=r,r=[],p=0;p<v.length;++p)for(d=0;d<f;++d)(m=t.extend({},v[p]))[l[o].r]=c[d],r.push(m);else for(d=0;d<f;++d)(m={})[l[o].r]=c[d],r.push(m);break;case s.ht:var g,_,T,y,k;for(r=[],a={},T={},o=0,u=l.length;o<u;++o)if(l[o].f&e.vt)for(f=(c=(_=l[o]).e.v||[]).length,d=0;d<f;++d)(g=this.Nn(l,c[d]))&&(T[g.r]||(T[g.r]=[]),T[g.r].push(_.r));for(y in T)if(f=(k=T[y]).length,r.length>0)for(v=r,r=[],p=0;p<v.length;++p)for(d=0;d<f;++d)(m=t.extend({},v[p]))[y]=k[d],r.push(m);else for(d=0;d<f;++d)(m={})[y]=k[d],r.push(m);break;case s.rt:r=[]}}return r},learnerResponse:function(t,e,n){var h,r,a,o,u,c,l;switch(e.k){case i.P:h=vs.name(n.v,this.ui.Fs);break;case i.S:h=n.v;break;case i.C:h="",(c=this.Nn(t.cc,n.v))&&(h=c.r);break;case i.L:switch(a=e.cc,e.t){case s.it:case s.J:case s.tt:case s.nt:for(h=[],o=0,u=(r=n.v).length;o<u;++o)(c=this.Nn(a,r[o]))&&h.push(c.r);break;case s.et:h={},r=n.v;for(l in r)(c=this.Nn(a,l))&&(h[c.r]=r[l]);break;case s.ht:var f,d;h={},r=n.v;for(l in r)if(c=this.Nn(a,l))for(o=0,u=(f=r[l]).length;o<u;++o)(d=this.Nn(a,f[o]))&&(h[d.r]=c.r);break;case s.rt: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))}}return h},Dn: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.P:case i.C:h.e.f&it||r++;break;case i.L:switch(h.t){case s.it:case s.J:case s.tt:case s.et:case s.nt:case s.ht:case s.rt:h.e.f&it||r++;break;default:r+=this.Dn(h.cc)}}return r},interactionCount:function(){if(void 0!==this.On)return this.On;var t,i,s,e=this.Cs.slides,n=0;for(i=0,s=e.length;i<s;++i)t=e[i],n+=this.Dn(t.cc);return this.On=n,n},takenInteractionCount:function(t){var i,s,e,n,h,r=this.Ps.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!=rt.Pi&&(void 0===t?a++:t==h.r&&a++);return a},takenSlideCount:function(){var t,i,s=this.Ps.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.Ps.slides,r=0;for(i=0,s=h.length;i<s;++i)if(t=h[i])for(e in t)(n=t[e])&&(r+=n.p||0,r-=n.sp||0);return Ui(r,10)},scoreSubtract:function(){var t,i,s,e,n,h=this.Ps.slides,r=0;for(i=0,s=h.length;i<s;++i)if(t=h[i])for(e in t)(n=t[e])&&(r+=n.sp||0);return r},maxControlScore:function(t){var n,h,r,a,o,u,c,l,f=0,d=t.e.f&J&&!(t.e.f&it),p=t.e.f&tt;if(!d){for(h=t.cc?t.cc.length:0,n=0;n<h;++n)f+=this.maxControlScore(t.cc[n]);return f}if(!p)return t.e.m||0;switch(t.k){case i.P:case i.S:case i.C:r=t.e.m||[0],f=fi.apply(null,r);break;case i.L:switch(h=(a=t.cc||[]).length,t.t){case s.J:case s.it:if(h>0)for(f=a[0].e.m||0,n=1;n<h;++n)o=a[n],f=fi(f,o.e.m||0);break;case s.tt:for(u=t.e.v||[],n=0;n<h;++n)o=a[n],u.indexOf(o.i)<0||(f+=o.e.m||0);break;case s.et:for(n=0;n<h;++n)(o=a[n]).k===i.S&&(o.e.f&tt?(r=o.e.m||[0],f+=fi.apply(null,r)):f+=o.e.m||0);break;case s.ht:var v,m,b,w,g=[],_=[];for(n=0;n<h;++n)if((o=a[n]).f&e.vt&&(b=o.e.v,w=o.e.m,b&&w&&b.length==w.length))for(c=0,l=b.length;c<l;++c)v=b[c],(m=g.indexOf(v))<0?(g.push(v),_.push(w[c])):_[m]<w[c]&&(_[m]=w[c]);for(n=0,h=_.length;n<h;++n)f+=_[n]}}return f},maxScore:function(){if(void 0!==this.Ln)return this.Ln;var t,i,s,e,n,h,r=this.Cs.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.Ln=h,h},result:function(){var t=!0,i=this.Cs.options;switch(i.passCondition){case at:t=this.percentageScore()>=i.passConditionValue;break;case ot:t=this.score()>=i.passConditionValue;break;case ut:t=this.takenInteractionCount(rt.Ci)>=i.passConditionValue;break;case ct:t=this.takenSlideCount()>=i.passConditionValue}return t},elapsedTime:function(){return this.ended||(this.Yn=(this.ze||0)+this.timeline.totalTime()),this.Yn||0},remainingTime:function(){if(this.ended)return 0;var t=0,i=this.options.playMode;return(t="Tutorial"!==i&&"Practice"!==i&&"Test"!==i||!this.Cs.options.testMaxTime?this.duration()-this.time():60*this.Cs.options.testMaxTime*1e3-this.elapsedTime())<0?0:t},responseResultString:function(t){var i=this.ui.Fs;return t?t==rt.Ci?i.text("Correct"):t==rt.Ri?i.text("Incorrect"):t==rt.Ai?i.text("Incomplete"):t==rt.Ii?"":"Unknown":"Unknown"},requirements:function(){var t=this.Cs.options,i=this.ui.Fs;switch(t.passCondition){case at:return i.text("RequirePercent",i.number(t.passConditionValue));case ot:return i.text("RequirePoints",i.number(t.passConditionValue));case ut:return i.text("RequireAnswers",i.number(t.passConditionValue));case ct:return i.text("RequireSlidesViewed",i.number(t.passConditionValue))}return i.text("RequireNone")},interactionTypeName:function(t){var e=this.ui.Fs;switch(t.k){case i.P:return t.t==s.H?e.text("MouseClick"):t.t==s.G?e.text("KeyStroke"):"Unknown";case i.S:return e.text("TextBox");case i.C:return e.text("DropCtrl");case i.L:switch(t.t){case s.it:return e.text("TrueFalse");case s.J:return e.text("MultipleChoice");case s.tt:return e.text("MultipleResponse");case s.nt:return e.text("Sequence");case s.et:return e.text("FillMultipleBlank");case s.ht:return e.text("DragDrop");case s.rt:return e.text("Likert")}}return"Unknown"},formatResponse:function(t,e,n,h){var r,a,o="";switch(n){case i.P:case i.S:o=t;break;case i.C:o=t+"[.]"+e;break;case i.L:switch(h){case s.it:case s.J:case s.tt:case s.nt:for(o="",r=0,a=t.length||0;r<a;++r)""!=o&&(o+="[,]"),o+=t[r];break;case s.et:case s.ht:case s.rt: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]]}}return o},reportData:function(i,s){var e,n,h,r,a,o,u,c,l,f,d,p,v,m=t.cookie("userid")||"",b=this.ui.Fs,w={},g=this.Cs;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(rt.Ci),w.score=this.score(),w.maxScore=this.maxScore(),w.percentage=w.maxScore&&w.score>0?bi(100*w.score/w.maxScore):0,w.passed=this.result(),w.passCondition=g.options.passCondition,w.passValue=g.options.passConditionValue,w.interactions=[],f=0,p=(e=this.Ps.slides).length;f<p;++f)if(n=e[f])for(h in n)if((r=n[h])&&r.r&&!r.n&&(a=g.slides[f],o=this.Nn(a.cc,h))){for(l=this.learnerResponse(a,o,r),c=this.correctResponses(a,o),(u={}).type=this.interactionTypeName(o),u.slide=f,u.reportid=o.r,u.attempts=r.a||0,u.result=r.r,v=(r.p||0)-(r.sp||0),u.score=Ui(v,10),u.maxScore=this.maxControlScore(o),u.learnerResponse=this.formatResponse(l,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=gt),i!=wt?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.Fs;switch(i){case dt:case pt:case bt:break;case vt:for(r='<?xml version="1.0" encoding="UTF-8"?>\n',r+="<Content>\n",r+="\t<Report>\n",r+="\t\t<Name>"+Yi(t.prezName)+"</Name>"+u,r+="\t\t<Description>"+Yi(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>"+Yi(""+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>"+Yi(""+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 mt:case gt:var l,f={};for(f.Name=t.prezName,f.Description=t.prezDesc,f.Date=t.date,f.UserID=t.userId,f.TotalTime=t.elapsedTime,f.SlideCount=t.totalSlides,f.TakenSlide=t.takenSlides,f.TotalInteraction=t.totalInteractions,f.TakenInteraction=t.takenInteractions,f.Correct=t.correctCount,f.Score=t.score,f.MaxScore=t.maxScore,f.PassCondition=t.passCondition,f.PassValue=t.passValue,f.Percent=t.percentage,f.Result=t.passed,f.Details=[],s=0;s<o;++s)e=a[s],(l={}).SlideIndex=parseInt(e.slide)+1,l.ReportID=e.reportid,l.Attempts=e.attempts,l.Score=e.score,l.MaxScore=e.maxScore,l.Result=this.responseResultString(e.result),l.Type=e.type,l.LearnerResponse=e.learnerResponse,l.CorrectResponses=e.correctResponses,f.Details.push(l);r=i===mt?JSON.stringify(f,null,c):f}return r},detailedReportData:function(t){var i,s,e,n,h,r,a=this.reportData(wt,!1).interactions,o=a.length||0,u=this.ui.Fs;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'>"+Yi(""+n.learnerResponse)+"</td>",t){for(s="",h=0,r=n.correctResponses.length;h<r;++h)""!=s&&(s+="<br/><br/>"),s+=Yi(""+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.Cs.options,s=this.reportData(i.reportFormat,!0),e=this.ui,n=e.Fs;if(null!==s)switch(i.reportMethod){case ft:try{var h={type:"POST",url:i.reportAddress,data:"report="+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.We&&(!i||i&&!this.muted()))for(var s=0,e=this.We.length;s<e;++s)this.We[s].muted(!i);return i&&this.En(),this},sidebarVisible:function(){return this.ui.sidebarVisible()},wn:function(t){t&&this.En()},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.Cs.author},homePage:function(){return this.Cs.homepage},copyright:function(){return this.Cs.copyright},name:function(){return this.Cs.projectName},description:function(){return this.Cs.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 Oi(t,i)?100:i&&t>0?bi(100*t/i):0},authorVideoView:function(t){var i=0==arguments.length?0:t;return this.We&&this.We.length>i?this.We[i]:null},playMode:function(){return this.options.playMode},registerTimer:function(t){return this.Fn?this.Fn.push(t):this.Fn=[t],this},unregisterTimer:function(t){var i=this.Fn.indexOf(t);return i>=0&&this.Fn.splice(i,1),this},tick:function(i){if(this.timeline&&!this.timeline.Se){var s=this.timeline.Un,e=(i-s)*this.timeline.In;if(this.Fn&&this.Fn.length){var n=this.timeline.Xn(e);this.timeline.Bn=n.totalTime;for(var h=0;h<this.Fn.length;++h)if(this.Fn[h].tick(i),this.timeline.Un!=s)return}this.timeline.update(e),this.vars.tick(i),t(this.ui).trigger("ap-progress",[this.slideIndex,this.slideId(this.slideIndex),this.be.time()]);var r=this.elapsedTime();if(!this.Hn||i-this.Hn>=300){this.Hn=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.Cs.options.testMaxTime&&r>=60*this.Cs.options.testMaxTime*1e3&&this.end(!0),this.slide&&this.slide.Cs.w&&this.Ze(!0);var o=Ei.activeElement;(ks.browser.ie?o==this.container||(!o||o==Ei.body)&&this.container&&this.container.parentElement==Ei.body||this.qe&&this.qe.length&&t.contains(t(".ap-slides",this.container)[0],o):o==this.container||o==Ei.body&&this.container&&this.container.parentElement==Ei.body||this.qe&&this.qe.length&&t.contains(t(".ap-slides",this.container)[0],o))&&r>=300&&this.zn()}if(this.un=void 0==this.un?this.be.time():fi(this.un,this.be.time()),!this.ended){this.slide&&(this.Ps.ts=this.be.time()-this.slide.Cs.st),this.Ps.elapsedTime=r;var u=this.vars.Ys;for(var c in u)this.vars.Ms(c)&&(this.Ps.vars[c]=this.vars.get(c));this.lms&&this.started&&!this.ended&&this.Ps.ts-this.lms.getSuspendDataTS()>6e4&&this.lms.storeSuspendData(this.Ps,!0)}}},zn:function(){var i=this.qe&&this.qe.length?".ap-feedback-slides":".ap-slides",s=t(i+' [tabindex]:not([tabindex="-1"])',t(this.container)).filter(":visible");if(s.length>0){(s=s.toArray()).sort(function(t,i){return t.tabIndex-i.tabIndex});var e=s[0].getBoundingClientRect();if(e.right>0&&e.bottom>0){var n=this.ui.stage()[0].getBoundingClientRect(),h=Math.min(e.right,n.right)-Math.max(e.left,n.left);(h>30||Oi(h,e.right-e.left))&&((h=Math.min(e.bottom,n.bottom)-Math.max(e.top,n.top))>30||Oi(h,e.bottom-e.top))&&s[0].focus({preventScroll:!0})}}},Ze:function(i){if(i){var s,e,n,h="A"===this.Cs.generator.charAt(0),r={position:"absolute",display:"block",zIndex:_t.Bi},a=h?r:{position:"absolute",display:"block"},o=h?15:50,u="a";if(o+="px",u+="lt",(!this.Gn||!h&&this.Gn[0].childNodes.length<4)&&(this.Gn=t(h?"<img />":"<div><img /><img /><img /><img /></div>"),s="pointer",s+="Event",s+="s",this.Gn.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.Cs.wmd,s="min",e="20",e+="0px",a[s+="Width"]=e,s="min",e="50",e+="px",a[s+="Height"]=e,h)this.Gn[0].src!==n&&(this.Gn[0].src=n),this.Gn[0][u]=this.Cs.generator,r.top=r.right=o,r.left="auto";else{var c,l,f,d=this.Gn[0].childNodes;for(l=0,f=d.length;l<f;++l)(c=d[l]).src!==n&&(c.src=n),c[u]=this.Cs.generator,0==l||3==l?(a.left=o,a.right="auto"):(a.left="auto",a.right=o),l<=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.Gn.css(r);var p=t(".ap-canvas",this.container);this.Gn[0].parentNode&&this.Gn[0].parentNode===p[0]||p.append(this.Gn)}else this.Gn&&this.Gn.hide()},prez:function(){return this},on:function(t,i){return Ks.prototype.on.call(this,t,i)},off:function(t,i){return Ks.prototype.off.call(this,t,i)},ds:function(){return"Demo"!==this.options.playMode&&!this.Me&&(!this.Se||this.ended)},cssUrl:function(){return void 0!==this.options.css?this.options.css:this.Cs.options.css},highlightFocus:function(t){if(!arguments.length)return void 0!==this.options.highlightFocus?this.options.highlightFocus:this.Cs.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===ni&&(t=this.slide&&this.slide.timeline(t)),t?(t.remove(),t.Vn&&(t.Vn.remove(),t.Vn=null),t.started()&&t.totalTime()<t.totalDuration()&&t.pause(t.totalDuration()),t.startTime(this.timeline.totalTime()),i&&(t.Vn=new bn(function(){i.call(t)},{startTime:t.duration(),duration:0}),t.addChild(t.Vn)),this.timeline.addChild(t),t.setup(),t.play(0),t):null},pauseTimeline:function(t,i){return typeof t===ni&&(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.Cs.i,!0]),this.Pn=!0,this.end(),this.firstSlide(),this.pauseAll(!1)},isReviewingMode:function(){return!0===this.Pn}}),Bs=Ei.createElementNS(hi,"svg"),Hs=Bs.createSVGMatrix(),zs=Bs.createSVGPoint();function Gs(t,i,s){zs.x=i,zs.y=s;var e=zs.matrixTransform(t);return{x:e.x,y:e.y}}var Vs=ts({$init:function(t,i){this.Wn=t,this.Cs=i||[],this.$n=v,this.le=-1},useDefault:function(){var t,i,s=0;for(t=0,i=this.Cs.length;t<i;++t)if(this.Cs[t].d){s=t;break}return this.at(s)},is:function(t){var i=this.Cs[this.le];return i&&i[typeof t===ni?"n":"i"]===t},at:function(t){if(!arguments.length)return this.le;var i=this.Cs[t];if(!i)return!1;this.le=t,void 0!==i.p&&(this.$n=i.p);var s=i.at;if(i.im){var e=i.im;this.Wn.jn(e[0],e[1],e[2],s)}var n,h,r,a=this.Wn.shape,o=i.f,u=i.l,c=i.s,l=i.t;if(this.layout(),i.tg&&this.Wn.setIconSize){var f=i.tg;if(!!f[6]){var d=(this.$n&g)===g;a.createIcon(d,f[0],f[1],f[2],Gi(f[3]),Gi(f[4]),Gi(f[5])),a.updateIcon(),this.Wn.setIconSize&&this.Wn.setIconSize(f[0])}}if(i.a){if(!i.a.params){i.a.type=i.a[0],i.a.params=i.a.slice(1);var p=i.a.params[0];if(p)for(h=0,r=p.length;h<r;++h)p[h]/=si}this.Wn.shape.shape(i.a.type,i.a.params)}if(o){if(!o.normed){if(o[0]===z.Et){var v,m=o[2];for(h=0,r=m.length;h<r;++h)v=[(n=m[h])[0]],n=n[1],v.push(Gi(n>>16&255,n>>8&255,255&n)),v.push((n>>24&255)/255),m[h]=v}o.normed=!0}switch(o[0]){case z.kt:a.fillNone();break;case z.xt:n=o[1],a.fillSolid(n>>16&255,n>>8&255,255&n,(n>>24&255)/255);break;case z.Et:o[1]?a.fillRadialGradient(o[2],o[3],o[4],o[5],o[6]):a.fillLinearGradient(o[2],o[3],o[4],o[5]);break;case z.u:o.length>1?a.fillImage(o[1],o[2],o[3],o[4],o[5]):a.fillNone()}}else a.fillNone();if(u?(a.lineWidth(u[0]),n=u[1],a.lineColor(n>>16&255,n>>8&255,255&n,(n>>24&255)/255),a.lineJoin(u[2]),a.lineCap(u[2]),void 0!==u[3]?a.endArrow(u[3],u[4]):a.endArrow(D.NONE),void 0!==u[5]?a.startArrow(u[5],u[6]):a.startArrow(D.NONE),a.lineStyle(u[2])):a.lineStyle("none"),c?(n=c[3],a.applyEffectShadow(c[0],c[1],c[2],n>>16&255,n>>8&255,255&n,(n>>24&255)/255)):a.clearEffectShadow(),l){var b=this.Wn.html(l[0]||"");b&&b.textStyle(l[1]).textVerticalAlign(l[2])}else this.Wn.html("");return this.Wn.rotate(i.r||0),s||(this.Wn.textNode&&(s=(s=this.Wn.textNode.textContent.replace(/\r|\n/g," ")).replace(/ +(?= )/g,"").trim()),s||(s=this.Wn.Cs.n,this.Cs.length>1&&(s+=" "+i.n))),s?this.Wn.accText(s):this.Wn.accText(""),!0},id:function(t){if(!arguments.length){var i=this.Cs[this.le];return i?i.i:-1}return this.at(this.find("i",t))},name:function(t){if(!arguments.length){var i=this.Cs[this.le];return i?i.n:""}return this.at(this.find("n",t))},flags:function(t){if(!arguments.length)return this.$n;var s,e,n=v;return t&g&&(n|=g),t&w?n|=w:t&m?n|=m:t&b?n|=b:t&_?n|=_:t&T?n|=T:t&y?n|=y:t&k?n|=k:t&x?n|=x:t&E?n|=E:t&S?n|=S:t&M&&(n|=M),s=this.at(this.find("p",n)),this.$n=t,(e=this.Wn.Cs.k)!=i.O&&e!=i.D||this.Wn.node.setAttribute("aria-checked",t&g?"true":"false"),s},has:function(t){var i=this.Cs[this.le];return i&&(i.p&t)===t},find:function(t,i){var s,e;for(s=0,e=this.Cs.length;s<e;++s)if(this.Cs[s][t]===i)return s;return-1},Qn:function(t){var i,s=this.Cs[this.le],e=s&&s.w&&s.w[this.Wn.slide.Ls.layoutIndex];return e&&e.r&&(i=[(e=e.r)[0],e[1],e[4]]),i},layout:function(){var t=this.Cs[this.le],i=t&&t.w&&t.w[this.Wn.slide.Ls.layoutIndex];if(i){if(!i.normed){var s,e,n,h,r=i.p;if(r)for(s=0,n=r.length;s<n;++s)for(h=r[s],e=0;e<6;++e)h[e]/=si;i.normed=!0}if(i.r){var a,o,u=i.r,c=Wi(u[2]),l=Wi(u[3]);this.Wn.center(1===u[5]||3===u[5],2===u[5]||3===u[5]),this.Wn.Kn(u[0],u[1],u[4]),"%"===c.unit||"a"===c.unit?c.value/=si:c.unit||(c.unit="px"),"%"===l.unit||"a"===l.unit?l.value/=si:l.unit||(l.unit="px"),a=!(o="a"===l.unit)&&"a"===c.unit,this.Wn.autoWidth(a).autoHeight(o),(o||a)&&(this.Wn.qn=o?l.value:c.value,this.Wn.Jn=!0),a||this.Wn.width(c.value+c.unit),o||this.Wn.height(l.value+l.unit)}this.Wn.shape.path(i.p&&i.p.length?i.p:null),i.f?this.Wn.fontScale(i.f):this.Wn.fontScale(100),void 0!=i.v&&this.Wn.visibility(1==i.v)}}});function Ws(t){this.Zn=t,this.th=[],this.ih=_t.Hi;var i=t.Cs.dd;this.sh={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 $s(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=nt[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&&gs(n[e],s,i,r)};r()}}(h))}}function js(t){var i,s=[];if(!t||!t.node||!t.bn)return s;for(;t;)"none"===t.node.style.display&&(t.node.style.display="block",s.push(t)),t=t.parent;return(i=s[s.length-1])&&i.bn(),s}function Qs(t){var i,s=t.length;if(s){for(i=s;--i>=0;)t[i].node.style.display="none";t[s-1].bn()}}Ws.TileMargin=5,Ws.RevertTime=200,Ws.DropTime=200,Ws.ZoomEffectScale=1.1,Ws.dragEffect=function(i,s,e,n){var h=t(i.node),r=i.node.style;if(s){var a={zIndex:_t.zi,opacity:.8},o=i.eh={zIndex:r.zIndex,opacity:r.opacity},u=i.Cs.dd;if(u)switch(u[0]){case P:h.addClass("ap-ctrl-dragsource-hilight");break;case I: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[Ki],a.transform="translate("+e+"px, "+n+"px) scale("+Ws.ZoomEffectScale+", "+Ws.ZoomEffectScale+") translate("+-e+"px, "+-n+"px)",o.transform&&"none"!==o.transform&&(a.transform+=" "+o.transform)}h.css(a)}else i.eh&&(h.css(i.eh),delete i.eh),h.removeClass("ap-ctrl-dragsource-hilight")},Ws.dropHoverEffect=function(i,s){var e=i.Cs.dd;if(e)switch(e[0]){case P:s?t(i.node).addClass("ap-ctrl-droptarget-hilight"):t(i.node).removeClass("ap-ctrl-droptarget-hilight");break;case I:s?(i.nh=i.node.style[Ki],i.scaleBy(Ws.ZoomEffectScale)):void 0!==i.nh&&(i.node.style[Ki]=i.nh,delete i.nh)}},Ws.revert=function(t,i,s,e,n){var h=t.prez(),r=new yn({startTime:h.timeline.totalTime()}),a=t.node.style.zIndex;t.node.style.zIndex=_t.zi,t.gs(r),r.addChild(new wn(t,"translateX",{startTime:0,duration:e,easing:qe.outQuad,tweenParams:[-i],relative:Je.hh})).addChild(new wn(t,"translateY",{startTime:0,duration:e,easing:qe.outQuad,tweenParams:[-s],relative:Je.hh})).addChild(new bn(function(){t.node.style.zIndex=a,n&&n(),setTimeout(function(){t._s(r)},0)},{startTime:r.duration(),duration:0})),h.timeline.addChild(r),r.setup(),r.play(0)},Ws.prototype={constructor:Ws,droppedObjects:function(){return this.th},accepted:function(t){return this.sh.acceptAny||this.sh.acceptIds.indexOf(t.id())>=0},drop:function(s,e,a,o){void 0===a&&(a=!0);var u=this.Zn,c=this.sh,l=c.maxAccept<0||this.th.length<c.maxAccept,f=!1,d=!1;if(s.parent!==u.parent?l=!1:(l||this.th.length===c.maxAccept&&c.maxAccept>0&&(c.replace?(f=!0,l=!0):d=!0),!l&&!d||c.acceptAny||c.acceptIds.indexOf(s.Cs.i)<0&&(l=f=d=!1)),s.Cs.k==i.M&&s.vs.flags(s.vs.flags()&~(b|m)),!l)return a&&(s.hasStateFlag(M)&&s.vs.flags(M),u.hasStateFlag(M)&&u.vs.flags(M),t(u).triggerHandler(t.Event("ap-reject",{value:s})),Ws.revert(s,o.x,o.y,Ws.RevertTime)),!!d&&void 0;if(f){var p,v=this.th[this.th.length-1];v&&(p=this.startDragOut(v),a&&(s.hasStateFlag(M)&&s.vs.flags(M),v.hasStateFlag(M)&&v.vs.flags(M),t(u).triggerHandler(t.Event("ap-reject",{value:v})),Ws.revert(v,p.x,p.y,Ws.RevertTime)))}this.th.push(s),s.dropTarget=u;var w={w:s.node.clientWidth,h:s.node.clientHeight},g={t:u.node.offsetTop,l:u.node.offsetLeft,w:u.node.clientWidth,h:u.node.clientHeight},_=c.scale/100,T="",y={},k=s.rh={},x=s.node.style;switch(1!==_&&(T="translate("+-w.w/2+"px, "+-w.h/2+"px) scale("+_+", "+_+") translate("+w.w/2+"px, "+w.h/2+"px)",w.w*=_,w.h*=_),c.posType){case h:this.ah(w,g,c.posVal);break;case r:this.oh(w,g,c.posVal);break;case n:w.l=g.l+e.x,w.t=g.t+e.y,s.uh={x:e.x,y:e.y}}var E,P,I,C=t(s.node).css("transform-origin").split(" "),R=t(u.node).css("transform-origin").split(" ");return E=g.l+parseFloat(R[0])-(s.node.offsetLeft+parseFloat(C[0])),P=g.t+parseFloat(R[1])-(s.node.offsetTop+parseFloat(C[1])),"none"===(I=u.node.style.transform)&&(I=""),y.transform="translate("+E+"px, "+P+"px) "+I+" translate("+-E+"px, "+-P+"px) translate("+(w.l-s.node.offsetLeft)+"px, "+(w.t-s.node.offsetTop)+"px) "+T,k.transform=x[Ki],y.zIndex=this.ih++,k.zIndex=x.zIndex,255!=c.alpha&&(y.opacity=c.alpha/255,k.opacity=x.opacity),t(s.node).css(y),s.updateCachedTransform(),a&&(s.hasStateFlag(S)&&s.vs.flags(S),u.hasStateFlag(S)&&u.vs.flags(S),t(u).triggerHandler(t.Event("ap-accept",{value:s})),u instanceof ae&&u.submit(s)),!0},startDragOut:function(i){var s=this.th.indexOf(i),e={x:0,y:0};if(s<0)return e;if(this.th.splice(s,1),delete i.dropTarget,i.rh){var n=i.translate();t(i.node).css(i.rh),i.updateCachedTransform(),delete i.rh;var h=i.translate();e.x=n.translateX-h.translateX,e.y=n.translateY-h.translateY}if(this.sh.posType===r&&(this.lh=this.fh=this.dh=0,this.th.length)){var a,o,u,c,l=this.Zn,f={t:l.node.offsetTop,l:l.node.offsetLeft,w:l.node.clientWidth,h:l.node.clientHeight},d=t(l.node).css("transform-origin").split(" "),p=l.node.style.transform,v=this.sh.scale/100,m="";for(d[0]=parseFloat(d[0]),d[1]=parseFloat(d[1]),"none"===p&&(p=""),s=0;s<this.th.length;++s)a={w:(i=this.th[s]).node.clientWidth,h:i.node.clientHeight},1!==v&&(m="translate("+-a.w/2+"px, "+-a.h/2+"px) scale("+v+", "+v+") translate("+a.w/2+"px, "+a.h/2+"px)",a.w*=v,a.h*=v),this.oh(a,f,this.sh.posVal),o=t(i.node).css("transform-origin").split(" "),u=f.l+d[0]-(i.node.offsetLeft+parseFloat(o[0])),c=f.t+d[1]-(i.node.offsetTop+parseFloat(o[1])),t(i.node).css("transform","translate("+u+"px, "+c+"px) "+p+" translate("+-u+"px, "+-c+"px) translate("+(a.l-i.node.offsetLeft)+"px, "+(a.t-i.node.offsetTop)+"px) "+m),i.updateCachedTransform()}return e},clear:function(){for(var t=this.th;t.length;)this.startDragOut(t[t.length-1]);this.ih=_t.Hi},layout:function(){for(var t=this.Zn;t;){if("none"===t.node.style.display)return;t=t.parent}var i,s,e=this.th,n=[],h=[];if(e.length){for(;e.length;)i=e[e.length-1],n.push(i),h.push(i.uh||{x:0,y:0}),this.startDragOut(i);for(this.ih=_t.Hi,s=n.length-1;s>=0;--s)this.drop(n[s],h[s],!1)}},absolutePosition:function(){return this.sh.posType===n},ah:function(t,i,s){t.t=i.t+(i.h-t.h)*wi(s/3)/2,t.l=i.l+(i.w-t.w)*(s%3)/2},oh:function(t,i,s){var e,n,h,r,v,m,b;switch(this.lh||(this.lh=Ws.TileMargin),this.fh||(this.fh=Ws.TileMargin),this.dh||(this.dh=0),s){case a:case o:case l:case f:default:h=t.w,r=t.h,v=i.w,m=!1;break;case u:case c:case d:case p:h=t.h,r=t.w,v=i.h,m=!0}(this.lh+h>v?(this.fh+=this.dh+Ws.TileMargin,e=this.fh,n=Ws.TileMargin,this.lh=n+h+Ws.TileMargin,this.dh=r):(e=this.fh,n=this.lh,this.lh+=h+Ws.TileMargin,r>this.dh&&(this.dh=r)),m)&&(b=e,e=n,n=b);switch(s){case a:case c:default:t.t=i.t+e,t.l=i.l+n;break;case o:case u:t.t=i.t+i.h-e-t.h,t.l=i.l+n;break;case l:case p:t.t=i.t+e,t.l=i.l+i.w-n-t.w;break;case f:case d:t.t=i.t+i.h-e-t.h,t.l=i.l+i.w-n-t.w}}};var Ks=ts({$init:function(s,n){this.parent=null,this.slide=s,this.children=[],n=n||{},this.Cs=n,this.node=this.createNode();var h=this===s,r=this;if(this.node.id||(this.node.id=h?s.Ls.genSlideDomId():s.Ls.genObjectDomId()),t(this.node).addClass(h?"ap-slide":"ap-ctrl").css({position:"absolute",pointerEvents:ks.browser.android?"auto":"none"}).on("focus",function(){r.prez()&&r.prez().highlightFocus()&&t(this).addClass("ap-focused")}).on("blur",function(){t(this).removeClass("ap-focused")}),n.f&e.bt&&s.be&&s.be.addChild(new wn(this,"display",{startTime:0,duration:0,tweenParams:["block","none"],tweenType:yt.Qi})),n.f&e.pt){var a={start:function(i,s){var e=this.rlDragCtrl,n=this.style,h={x:0,y:0};if(!e||!e.ds(!1,!0)||e.prez()&&e.prez().ended)return!1;e.dropTarget&&(h=e.dropTarget.dropHelper.startDragOut(e)),e.ph=null,e.vh=null,e.mh=e.bh=0,e.wh=h.x,e.gh=h.y,e._h={left:n.left,right:n.right,top:n.top,bottom:n.bottom},e.Th=getTransformationMatrix(this.parentNode).inverse(),e.yh=e.Th.transformPoint(s.originalPosition.left,s.originalPosition.top),e.kh=parseFloat(t(this).css("left"))||0,e.xh=parseFloat(t(this).css("top"))||0,(h.x||h.y)&&(e.kh+=h.x,e.xh+=h.y,t(this).css({left:e.kh+"px",top:e.xh+"px"}));var r=e.Th.transformPoint(i.pageX,i.pageY);e.hasStateFlag(_)&&e.vs.flags(_),Ws.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.Th.transformPoint(s.position.left,s.position.top),r.mh=e.x-r.yh.x,r.bh=e.y-r.yh.y,s.position.left=r.kh+r.mh,s.position.top=r.xh+r.bh,n=this.style.zIndex,this.style.zIndex=-1,h=Ei.elementFromPoint(i.pageX,i.pageY),this.style.zIndex=n,h!==r.ph)){r.ph=h;for(var a=null;h&&h!==Ei.documentElement&&(h.rlDropCtrl?a=h.rlDropCtrl:h.rlDragCtrl&&h.rlDragCtrl.dropTarget&&(a=h.rlDragCtrl.dropTarget),!a);)h=h.parentNode;a&&!a.ds(!1,!0)&&(a=null),a!==r.vh&&(r.vh&&(r.hasStateFlag(k)&&r.vs.flags(k),Ws.dropHoverEffect(r.vh,!1),t(r.vh).triggerHandler(t.Event("ap-dragleave",{value:r,originalEvent:i}))),r.vh=a,a&&(r.hasStateFlag(y)&&r.vs.flags(y),Ws.dropHoverEffect(a,!0),t(r.vh).triggerHandler(t.Event("ap-dragenter",{value:r,originalEvent:i}))))}},stop:function(i,s){var e,n,h=this.rlDragCtrl;if(h){(e=h.vh)&&e.dropHelper.absolutePosition()&&(n=convertPointFromNodeToPage(h.node,0,0),n=convertPointFromPageToNode(e.node,n.x,n.y)),Ws.dragEffect(h,!1);var r,a=h.node.style,o=h._h;for(r in o)a[r]=o[r];if(delete h._h,h.mh+=h.wh,h.bh+=h.gh,e)h.hasStateFlag(T)&&h.vs.flags(T),Ws.dropHoverEffect(e,!1),e.dropHelper.drop(h,n,!0,{x:h.mh,y:h.bh}),t(h).triggerHandler(t.Event("ap-dragend",{value:h.dropTarget||null,originalEvent:i}));else{h.vs.flags(v);var u=function(){if(h.parent&&h.parent.children){var t,i,s,e=h.parent.children;for(i=0,s=e.length;i<s;++i)(t=e[i])instanceof ae&&t.ds(!0,!0)&&t.submit(h)}};h.Cs.dd[1]?(h.hasStateFlag(T)&&h.vs.flags(T),t(h).triggerHandler(t.Event("ap-dragend",{value:null,originalEvent:i})),Ws.revert(h,h.mh,h.bh,Ws.RevertTime,u)):(h.hasStateFlag(T)&&h.vs.flags(T),h.translateBy(h.mh,h.bh),t(h).triggerHandler(t.Event("ap-dragend",{value:null,originalEvent:i})),u())}delete h.ph,delete h.vh,delete h.yh}}};this.node.rlDragCtrl=this,t(this.node).on("mousedown",function(t){this.rlDragCtrl&&this.rlDragCtrl.filterEvent(t)||ds(t,!0)}).css("touchAction","none").draggable(a)}else n.f&e.vt&&(this.dropHelper=new Ws(this),this.node.rlDropCtrl=this);if(this.Eh=this.node.clientWidth,this.Sh=this.node.clientHeight,this.shape=new Ve(this.node,this),this.vs=new Vs(this,n.s),this.vs.useDefault(),n.tm&&this.textMargin(n.tm[0],n.tm[1],n.tm[2],n.tm[3]),void 0!==n.c&&this.cursor(Tt[n.c]),void 0!==n.mi&&n.k!=i._&&n.k!=i.T){this.xn=new ke(s.Ls,!1);var o=this.xn;o.Mh(n.n),o.kn(n.md),o.synchronizeWithPrez(!0),o.loadResource(n.mi)}n.e&&n.e.l&&$s(this,n.e.l,s.Ls.options.playMode);var u,c,l,f,d=n.cc||[];for(u=0,c=d.length;u<c;++u)(l=Zs((f=d[u]).k,s,f))&&this.insertChild(l);if(this.Ph(n.ti),void 0!==n.m){var p=kt[s.Ls.options.playMode];(n.m&p)!==p&&this.Ih(!1)}void 0!==n.ts&&this.userSelection(1==n.ts)},id:function(){return this.Cs.i},createNode:function(){return Ei.createElement("div")},prez:function(){return this.slide?this.slide.Ls:null},defaultCtrlData:function(){var t,i,s=this.prez().Cs.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.Ch++,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=Zs(t.k,this.slide,t);return i&&this.insertChild(i),i},autoWidth:function(t){return this.Rh=t,t&&(this.Ah=!1,this.qn=(this.node.clientWidth||this.Eh)/(this.node.clientHeight||this.Sh)||0),this},autoHeight:function(t){return this.Ah=t,t&&(this.Rh=!1,this.qn=(this.node.clientWidth||this.Eh)/(this.node.clientHeight||this.Sh)||0),this},left:function(t){return arguments.length?(this.node.style.left=ki(t)?t+"px":t,this):this.node.offsetLeft},top:function(t){return arguments.length?(this.node.style.top=ki(t)?t+"px":t,this):this.node.offsetTop},right:function(i){return arguments.length?(this.node.style.right=ki(i)?i+"px":i,this):parseFloat(t(this.node).css("right"))},bottom:function(i){return arguments.length?(this.node.style.bottom=ki(i)?i+"px":i,this):parseFloat(t(this.node).css("bottom"))},width:function(t){return arguments.length?(this.node.style.width=ki(t)?t+"px":t,this.Rh=!1,this.bn(),this):this.node.clientWidth},height:function(t){return arguments.length?(this.node.style.height=ki(t)?t+"px":t,this.Ah=!1,this.bn(),this):this.node.clientHeight},Kn:function(t,i,s){t=Wi(t),i=Wi(i),"%"===t.unit?t.value/=si:t.unit||(t.unit="px"),s===W||s===$?this.right(t.value+t.unit).left("auto"):this.left(t.value+t.unit).right("auto"),"%"===i.unit?i.value/=si:i.unit||(i.unit="px"),s===j||s===$?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=ki(t)?t+"px":t,this.node.style.height=ki(i)?i+"px":i,this.Rh=this.Ah=!1,this.bn(),this):{width:this.node.clientWidth,height:this.node.clientHeight}},accText:function(t){return arguments.length||(t=""),this.node.setAttribute("aria-label",t),this},Ph:function(t){isNaN(t)||this!==this.slide&&(-2==t?this.node.tabIndex=-1:-1==t?this.node.removeAttribute("tabIndex"):this.node.tabIndex=t)},Ih:function(t){if(!(this.Nh===t||void 0===this.Nh&&t)){this.Nh=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 ce){var i,s,e,n=this.children,h=this.Cs.ti>0?this.Cs.ti:0,r=t.Dh;for(i=0,s=n.length;i<s;++i)(e=n[i])instanceof ce&&e.Dh===r&&(t===e?e.node.tabIndex=h:e.node.tabIndex===h&&(e.node.tabIndex=-1))}},handleBox:function(t){var i=!!t,s=js(this),e={x:0,y:0,width:this.Eh,height:this.Sh};return i&&(e.x+=this.node.offsetLeft,e.y+=this.node.offsetTop),Qs(s),e},contentBox:function(t){var i,s,e=js(this),n=this.shape.contentBox(),h=this.textContainer;return!!t&&(n.x+=this.node.offsetLeft,n.y+=this.node.offsetTop),h&&(i=this.textNode.offsetHeight)>h.offsetHeight&&("middle"===this.Oh?(s=h.offsetTop-(i-h.offsetHeight)/2,n.height=fi(s+i,n.y+n.height)-li(n.y,s),n.y=li(n.y,s)):"bottom"===this.Oh?(s=h.offsetTop+h.offsetHeight-i)<n.y&&(n.height+=n.y-s,n.y=s):(s=h.offsetTop+i)>n.y+n.height&&(n.height=s-n.y)),Qs(e),n},transformedContentBox:function(t){var s,e,n,h,r,a,o,u,c=dn.transform.get(this).rotate,l=this.parent&&(this.parent.Cs.k===i.L||this.parent.Cs.k===i.Y)||!!t,f=this.contentBox(l),d=this.handleBox(l),p=c*ai/180,v=d.x+d.width/2,m=d.y+d.height/2,b={x:f.x,y:f.y,width:f.width,height:f.height};function w(t,i,s,e,n){var h,r,a;return h=ui((r=s-t)*r+(a=e-i)*a),n+=mi(a,r),{x:t+h*di(n),y:i+h*pi(n)}}return s=w(v,m,f.x,f.y,p),e=w(v,m,f.x+f.width,f.y,p),n=w(v,m,f.x+f.width,f.y+f.height,p),h=w(v,m,f.x,f.y+f.height,p),r=li(s.x,e.x,n.x,h.x),a=li(s.y,e.y,n.y,h.y),o=fi(s.x,e.x,n.x,h.x),u=fi(s.y,e.y,n.y,h.y),b.x=r,b.y=a,b.width=o-r,b.height=u-a,b},Lh:function(t){return t||(t={x:0,y:0},this.parent)?(this.parent&&(this.parent.Lh(t),t.x+=this.parent.node.offsetLeft,t.y+=this.parent.node.offsetTop),t):t},center:function(t,i){this.Yh=t,this.Fh=i},centerX:function(){if(this.Yh){var t=this.Lh().x,i=this.slide.node.clientWidth;this.left((i-this.Eh)/2-t)}},centerY:function(){if(this.Fh){var t=this.Lh().y,i=this.slide.node.clientHeight;this.top((i-this.Sh)/2-t)}},rotate:function(t){var i=dn.transform,s=i.get(this);return arguments.length?(s.rotate=t,i.set(this,s.isIdentity()?"":s),this.animProps&&this.animProps.set("rotate",s.rotate),this):s.rotate},rotateBy:function(t){var i=dn.transform,s=i.get(this);return s.rotate+=t,i.set(this,s.isIdentity()?"":s),this.animProps&&this.animProps.set("rotate",s.rotate),this},translate:function(t,i){var s=dn.transform,e=s.get(this);return arguments.length?(e.translateX=t||0,e.translateY=i||0,s.set(this,e.isIdentity()?"":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=dn.transform,e=s.get(this);return e.translateX+=t||0,e.translateY+=i||0,s.set(this,e.isIdentity()?"":e),this.animProps&&(this.animProps.set("translateX",e.translateX),this.animProps.set("translateY",e.translateY)),this},scale:function(t,i){var s=dn.transform,e=s.get(this);return arguments.length?(1===arguments.length&&(i=t),e.scaleX=t,e.scaleY=i,s.set(this,e.isIdentity()?"":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=dn.transform,e=s.get(this);return 1===arguments.length&&(i=t),e.scaleX*=t,e.scaleY*=i,s.set(this,e.isIdentity()?"":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=dn.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,r.isIdentity()?"":r),this.animProps&&this.animProps.set("transform",r),this):r},updateCachedTransform:function(){if(this.animProps){var t=dn.transform.get(this);this.animProps.set("transform",t)}return this},bn:function(){if(this.Uh||(this.Uh=0),this.Uh>10)Ni("Recursive checking resized: "+this.name());else{++this.Uh;var t=this.node.clientWidth,i=this.node.clientHeight;if(t===this.Eh&&i===this.Sh&&!this.Jn)return this.centerX(),this.centerY(),void--this.Uh;var s,e,n,h=t-this.Eh,r=i-this.Sh,a=this.children;this.Eh=t,this.Sh=i,this.onResized(h,r);var o=[];for(e=0,n=a.length;e<n;++e)(s=a[e]).bn(),s.dropHelper&&o.push(s);for(e=0,n=o.length;e<n;++e)o[e].dropHelper.layout();--this.Uh}},onResized:function(t,i){(this.Ah||this.Rh)&&(this.qn?this.Ah?(t||this.Jn)&&(delete this.Jn,this.height(this.Eh/this.qn),this.Ah=!0):(i||this.Jn)&&(delete this.Jn,this.width(this.qn*this.Sh),this.Rh=!0):this.qn=this.Eh/this.Sh||0),delete this.Jn,this.centerX(),this.centerY(),this.shape.layout(),this.textContainer&&this.Xh()},Bh:function(){var t,i,s=this.children;for(t=0,i=s.length;t<i;++t)s[t].Bh()},onLayoutSwitched:function(){this.vs.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);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.Hh(),t.bn()),this},Hh:function(){var t,i,s=this.slide;for(s.Ch<=this.Cs.i&&(s.Ch=this.Cs.i+1),s.zh[this.Cs.i]=this,s.Gh[this.Cs.n]=this,t=0,i=this.children.length;t<i;++t)this.children[t].Hh()},state:function(t){return arguments.length?(typeof t===ni?this.vs.name(t):this.vs.id(t),this.savedCurrentState(t),this.Cs.k==i.F&&this.Vh&&(this.Vh(),(this.vs.flags()&w)===w&&this.pauseTimer()),this):this.vs.name()},savedCurrentState:function(t){var i=this.savedData(!0);if(i)if(arguments.length)i.st=t;else{var s=(t=this.vs).Cs[t.le];i.st=s.i}return this},Wh:function(){return Ei.createElement("div")},$h:function(t){Ai.innerHTML=t,this.textNode.innerHTML!==Ai.innerHTML&&(this.textNode.innerHTML=t,this.jh&&100!=this.jh&&!this.Qh&&(this.Kh=void 0,this.qh()))},Jh:function(){var t="";return t=this.Cs.k===i.o&&this.Cs.t===s.q?"position: absolute; left: 0%; top: 0%; width: 100%; height: 100%; overflow: auto; word-wrap: break-word; pointer-events: auto;":"position: absolute; left: 0; right: 0; word-wrap: break-word; pointer-events: auto;",void 0!==this.Zh&&(t+=" cursor: "+this.Zh+";"),t},tr:function(){if(!this.textNode){this.textContainer=Ei.createElement("div");var t=this.textContainer.style;t.position="absolute",this.Xh(),this.textNode=this.Wh(),t=this.textNode.style,this.ir?t.cssText=this.ir:(t.position="absolute",t.left=t.right=0,t.wordWrap="break-word",t.pointerEvents="auto"),this.Oh&&this.textVerticalAlign(this.Oh),this.textContainer.appendChild(this.textNode),void 0!==this.Zh&&(this.textNode.style.cursor=this.Zh),!1===this.Nh&&(this.textContainer.style.opacity=0),this.node.appendChild(this.textContainer)}},html:function(t){if(!arguments.length)return this.textNode?this.textNode.innerHTML:"";if(t+="",!this.textNode&&t&&this.tr(),this.textNode){var i=this,s=this.slide.Ls.vars,e=s.replace(t);this.$h(e.text),this.sr&&(s.removeObserver(this.sr),delete this.sr),e.vars.length&&(this.sr=function(){i.$h(s.replace(t).text)},s.addObserver(e.vars,this.sr))}return this},text:function(t){return arguments.length?this.html(Yi(t,!0)):this.textNode&&this.textNode.textContent||""},textStyle:function(t){return t=(t||"")+this.Jh(),this.textNode?this.textNode.style.cssText=t:this.ir=t,this.jh&&100!=this.jh&&(this.er=void 0,this.qh()),this},textVerticalAlign:function(t){if(!arguments.length)return this.Oh||"top";if("middle"===t||"top"===t||"bottom"===t){if(this.textNode){var i=this.textNode.style;"top"===t?(i.top=0,i.bottom="auto",i[Ki]=""):"bottom"===t?(i.top="auto",i.bottom=0,i[Ki]=""):(i.top="50%",i.bottom="auto",i[Ki]="translateY(-50%)")}this.Oh=t}return this},textMargin:function(t,i,s,e){return arguments.length?(this.nr=[t,i,s,e],this.textContainer&&this.Xh(),this):(this.nr||(this.nr=[5,5,5,5]),this.nr.slice())},fontScale:function(t){if(!arguments.length)return this.jh||100;t!=(this.jh||100)&&(this.jh=t,this.qh())},visibility:function(t){var i="hidden"!==this.node.style.visibility;if(!arguments.length)return i;t!=i&&(this.node.style.visibility=t?"visible":"hidden")},qh:function(){if(this.textNode){var i=this.jh;if(this.er||(this.er=parseFloat(this.textNode.style.fontSize)||5),this.Kh||(this.Kh=this.textNode.innerHTML||""),i&&100!=i){var s={css:this.er+"px",html:this.Kh};!function(i,s){var e=t('<div><div style="'+i.css+'">'+i.html+"</div></div>");t("*",e).each(function(){if(this.style&&this.style.fontSize){var i=this.style.fontSize,e=i.match(/\D+$/);if(!(e=e&&e[0])||e.search(/inherit|%|em/i)>-1)return;var n=parseFloat(i);if(isNaN(n)){var h=t(this);h.css("font-size",parseFloat(h.css("font-size"))*s)}else n*=s,this.style.fontSize=n+e}});var n=(e=t(e.html())).attr("style");i.css=n?n.replace(/"/g,"&quot;"):"",i.html=e.html()}(s,i/100),this.Qh=!0,this.html(s.html),delete this.Qh,this.textNode.style.fontSize=this.er*i/100+"px"}else this.html(this.Kh),this.textNode.style.fontSize=this.er+"px"}},Xh:function(){var t=this.textMargin(),i=this.shape.textMargin(this.node.clientWidth,this.node.clientHeight),s=this.textContainer.style;s.left=t[0]+i[0]+"px",s.top=t[1]+i[1]+"px",s.right=t[2]+i[2]+"px",s.bottom=t[3]+i[3]+"px"},cursor:function(t){return this.shape.cursor(t),this.Zh=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.hr||(this.hr={}),this.hr[e]||(this.hr[e]=[]),this.hr[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.hr,this;var e,n=i+"-hdl",h=this.hr?this.hr[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.hr[n]}}else t(this).off(i),this.hr&&delete this.hr[n];return this},show:function(t,i,s){return this.animate(t||ks.EffectType.APPEAR,i,s)},hide:function(t,i,s){return this.animate(t||ks.EffectType.DISAPPEAR,i,s)},animate:function(t,i,s){"object"!=typeof s&&(s={direction:s});var e=new yn,n=this,h=ks.createEffect(this,t,0,i||0,s.repeat||1,s.direction);if(!h)return this;this.gs(e),e.addChild(h).addChild(new bn(function(){setTimeout(function(){n._s(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.vs.flags();return t?i|=w:i&=~w,this.vs.flags(i),this},hasStateFlag:function(t){var i=!1;if(this.vs){var s,e,n=this.vs;for(s=0,e=n.Cs.length;s<e;++s)if((n.Cs[s].p&t)==t){i=!0;break}}return i},enable:function(t){return arguments.length||(t=!0),this.disable(!t)},disabled:function(){return(this.vs.flags()&w)===w},enabled:function(){return!this.disabled()},cleanup:function(){var i,s,e=this.rr,n=this.children;if(e){for(i=0,s=e.length;i<s;++i)e[i].remove();delete this.rr}for(this.node.rlDragCtrl&&(t(this.node).draggable("destroy"),delete this.node.rlDragCtrl),this.node.rlDropCtrl&&delete this.node.rlDropCtrl,this.sr&&(this.prez().vars.removeObserver(this.sr),delete this.sr),this.xn&&this.xn.cleanup(),i=0,s=n.length;i<s;++i)n[i].cleanup();return this},gs:function(t){t&&(t.slide=this.slide,this.rr?this.rr.push(t):this.rr=[t])},_s:function(t){if(t&&(t.remove(),this.rr)){var i=this.rr.indexOf(t);i>=0&&this.rr.splice(i,1)}return this},ws:function(t){var i,s=this.rr;if(s)for(i=s.length-1;i>=0;--i)if(t(s[i]))return s[i];return null},ms:function(t){t?!1!==this.or&&(this.ds(!0,!0)||this.ur)?(this.ur&&delete this.ur,this.or=!0,this.slide.Ls.pause(!0)):!1===this.or&&delete this.or:(this.or&&this.slide.Ls.pause(!1),this.or=!1)},cr:function(i){var s,e=this.slide.Ls.timeline,n=this,h=this.prez(),r=function(){n.ds(!0,!0)&&(n.disable(),h&&!h.ended&&t(n).triggerHandler("ap-timeout"))};i>0?(s=new yn({startTime:0}),this.gs(s),s.addChild(new bn(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.Cs.i],t&&!i&&(i=s[this.Cs.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]).ds(!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.ds(!0,!1)||n.clear(t,i);return this},restore:function(t){t||(t=this.savedData()),t&&t.st&&this.vs&&(this.state(t.st),this.bn());var i,s,e=this.children;for(i=0,s=e.length;i<s;++i)e[i].restore();return this},score:function(){var t=this.savedData();return t&&t.p?t.p:0},attempts:function(){var t=this.savedData();return t&&t.a||0},lr:function(t){var i=this.maxAttempts();i>=0&&t>=i&&this.disable()},maxAttempts:function(t){var i=this.Cs.e;return arguments.length?(i||(i=this.Cs.e={}),i.a=t<0?-1:t,this.lr(this.attempts()),this):i&&void 0!==i.a?i.a:-1},dr:function(i,s,e,n,h,r,a){var o,u=!1,c=!1;switch(s){case rt.Ci:c=!0,o="ap-correct";break;case rt.Ri:c=!0,o="ap-incorrect";break;case rt.Ii:o="ap-complete";break;case rt.Ai:u=!0,o="ap-incomplete";break;default:return}var l=this.prez();if(i.r=s,i.v=e,void 0!==n){if(i.p=n,s==rt.Ri){var f=l.vars.get("apScoreSubtract");void 0!==f&&(i.sp=f)}}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.lr(i.a),this.disabled()&&(this.ur=!0))),l){if(l.lms)if(u||h)l.lms.storeSuspendData(l.Ps,!0);else{var d=this.Cs,p=l.learnerResponse(this.slide.Cs,d,i),v=l.correctResponses(this.slide.Cs,d),m={reportid:d.r,kind:d.k,type:d.t,multiline:d.f&N.Tt,name:d.n};l.lms.storeInteractionData(m,s,i.p,p,v)}var b=l.vars;b.notifyObservers("apQuizScore"),b.notifyObservers("apQuizScorePercentage"),b.notifyObservers("apQuizPassed"),b.notifyObservers("apQuizPassedBool"),b.notifyObservers("apQuizTakenInteractions"),b.notifyObservers("apQuizUnTakenInteractions"),b.notifyObservers("apQuizCorrectInteractions"),b.notifyObservers("apQuizIncorrectInteractions"),b.notifyObservers("apDetailedResult"),b.notifyObservers("apDetailedResult2")}t(this).triggerHandler(t.Event(o),{value:r})},ds:function(t,i){var s=this.prez().ds()&&(!t||this.visible())&&this.enabled();if(i&&s)for(var e=this.parent;e;){if(t&&!e.visible()||!e.enabled()){s=!1;break}e=e.parent}return s},name:function(){return this.Cs.n||""},pr:function(){this.vr&&this.node&&(this.node.removeChild(this.vr),delete this.vr),this.mr&&this.node&&(this.node.removeChild(this.mr),delete this.mr),this.br&&this.node&&(this.node.removeChild(this.br),delete this.br),this.slide.wr&&this.slide.node&&(this.slide.node.removeChild(this.slide.wr),delete this.slide.wr)},Is:function(t){var i,s,e,n=this.children;for(i=0,s=n.length;i<s;++i)(e=n[i]).Is&&e.Is(t);return this},gr:function(t,i){t&&(t.style.position="absolute","top-center"===i?(t.style.left="50%",t.style.transform="translateX(-50%) translateY(-100%)",t.style.textAlign="center"):"middle-right"===i?(t.style.left="100%",t.style.top="50%",t.style.transform="translateY(-50%)",t.style.textAlign="left"):"bottom-center"===i?(t.style.left="50%",t.style.top="100%",t.style.transform="translateX(-50%)",t.style.textAlign="center"):"middle-left"===i?(t.style.top="50%",t.style.transform="translateX(-100%) translateY(-50%)",t.style.textAlign="right"):"bottom-left"===i?(t.style.top="100%",t.style.textAlign="left"):(t.style.top="50%",t.style.left="50%",t.style.transform="translateX(-50%) translateY(-50%)",t.style.textAlign="center"))},_r:function(t,i){var s=Ei.createElement("div");s.style.position="absolute",s.style.background=t===rt.Ci?"#2fae62":t===rt.Ri?"#d15327":"#e47c30",s.style.width="100%",s.style.height="40px",s.style.top="100%",s.style.transform="translateY(-100%)";var e=Ei.createElement("div"),n=Ei.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},Tr: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=Ei.createElement("div");a.style.position="absolute",a.style.background=t?"#2fae62":"#d15327",a.style.borderRadius="32px",a.style.border="1px solid #ffffff";var o=Ei.createElement("div"),u=Ei.createTextNode(i);if(o.style.color="white",e){a.style.display="inline-flex",a.style.padding="8px";var c=Ei.createElement("div"),l=this.slide.prez();c.innerHTML=t?l.Cs.playerIcons.correct:l.Cs.playerIcons.incorrect,c.getElementsByTagName("svg")[0].style.stroke="rgba(255, 255, 255, 0.3)",a.appendChild(c)}else a.style.height=a.style.width="32px",o.style.left="50%",o.style.top="50%",o.style.position="absolute",o.style.transform="translate(-50%, -50%)";return o.appendChild(u),a.appendChild(o),this.gr(a,s),a},yr:function(t,i){var s=this.slide.prez(),e=Ei.createElement("div");return e.innerHTML=t?s.Cs.playerIcons.correct:s.Cs.playerIcons.incorrect,this.gr(e.firstChild,i),"middle-left"==i?e.firstChild.style.marginLeft="-3px":"middle-right"==i&&(e.firstChild.style.marginLeft="3px"),e.firstChild},kr:function(t,i){if(t&&t.length>0){var s=this.shape&&"none"!==this.shape.xr&&this.shape.Er?this.shape.Er:0,e=Ei.createElement("div"),n=Ei.createElement("span"),h=Ei.createTextNode(this.slide.prez().ui.Fs.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=Ei.createElement("ul"),a=0;a<t.length;a++){var o=Ei.createElement("li");o.innerText=t[a],r.appendChild(o)}e.appendChild(r)}else e.appendChild(n),(n=Ei.createElement("span")).innerText=t.join(", "),e.appendChild(n);return-1!=i.indexOf("middle")?(e.style.display="inline-table","middle-right"==i&&(e.style.marginLeft=-gi(s/2)+"px")):e.style.padding="5px",e.style.backgroundColor="rgba(255, 255, 255, 0.9)","bottom-left"==i&&(e.style.marginTop=gi(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.gr(e,i),e}},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")}}),qs={_default:function(t,i){return new Ks(t,i)}};function Js(t){for(var i=arguments.length;--i>0;)qs[arguments[i]]=t}function Zs(t,s,e){if(s&&e&&void 0!==e.m){var n=kt[s.Ls.options.playMode];if(!((e.m&n)==n)&&e.k!=i.P&&e.k!=i.C)return null}var h=qs[t]||qs._default;return h?h.apply(null,Array.prototype.slice.call(arguments,1)):null}var te=ts(Ks,{$init:function(e,n){var h=e.defaultCtrlData();h.k=i.B,h.t=s.V,h.margin=n.margin,h.ti=-1;var r=[];if(e.Cs&&e.Cs.h)for(var a=0;a<e.Cs.h.length;a++){var o={};o.r=[0,h.margin,0,0,2,1],r.push(o)}h.s=[{t:["<span></span>",n.textStyle[0],n.textStyle[1]],f:n.fill,w:r,a:0}],Ks.prototype.$init.call(this,e,h),this.node.style.zIndex=_t.Xi,t(this.node).css("visibility",e.Ls.He?"visible":"hidden")},onResized:function(t,i){if(this.Sr&&!0===this.Sr)Ks.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.Cs.margin,0)+"px",this.node.style.height=Math.max(e-2*this.Cs.margin,0)+"px";var n=this.innerTextNode(),h=n?n.width()+this.nr[0]+this.nr[2]+1:0,r=n?n.height()+this.nr[1]+this.nr[3]+1:0;this.node.style.width=h+"px",this.node.style.height=r+"px";for(var a=0;a<this.Cs.s.length;a++){var o=this.Cs.s[a].w;for(a=0;a<o.length;a++)o[a].r[2]=h,o[a].r[3]=r}this.vs&&this.vs.layout(),this.Sr=!0,Ks.prototype.onResized.call(this,t,i),this.Sr=!1}},innerTextNode:function(){return t("span",t(this.textNode)).first()}});Js(function(t,i){return new te(t,i)},i.B);var ie=ts(Ks,{$init:function(t,i){if(Ks.prototype.$init.call(this,t,i),this.Mr=0,this.Pr=0,this.Ir=!1,this.Cr=!1,this.Cs.tmp.type==Kt){var s=this.shape,e=s?s.node:void 0;s&&s.shapeNode;if(e){var n=e.querySelector("defs");n||(n=Ei.createElementNS(hi,"defs"),e.appendChild(n));var h=Ei.createElementNS(hi,"mask");h.id=s.container.id?s.container.id+"-masktimer":"ap-masktimer-"+Ts();var r=Ei.createElementNS(hi,"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=Ei.createElementNS(hi,"path"),o=Fe[s.ps];if(o&&o[0]){var u=s.container.clientWidth,c=s.container.clientHeight,l=new Ue;o[0].apply(l,[0,0,u,c]),a.setAttribute("d",l.path()),a.setAttribute("fill","black"),h.appendChild(a)}n.appendChild(h),s.Rr&&s.Rr.setAttribute("mask","url(#"+h.id+")"),s.Ar=h}}this.prez().registerTimer(this)},restore:function(t){return Ks.prototype.restore.call(this,t),t||(t=this.savedData()),t&&t.tm&&(this.Ir=t.tm.s,this.Pr=t.tm.v,this.Cr=t.tm.as,this.Mr=this.prez().elapsedTime()-this.Pr,this.Vh()),this},cleanup:function(){return this.prez().unregisterTimer(this),Ks.prototype.cleanup.call(this)},startTimer:function(){this.Ir||(this.Pr&&this.Pr!=this.Cs.tmp.duration||(this.Pr=0),this.Ir=!0,this.Mr=this.prez().elapsedTime()-this.Pr,this.tick())},pauseTimer:function(){this.Ir&&(this.Ir=!1,this.Nr())},stopTimer:function(){this.Ir=!1,this.Pr=0,this.Nr(),this.Vh()},Nr:function(){this.savedData(!0).tm={s:this.Ir,v:this.Pr,as:this.Cr}},tick:function(){this.Ir&&!this.prez().ended&&(this.Pr=this.prez().elapsedTime()-this.Mr,this.Pr>=this.Cs.tmp.duration&&(this.Pr=this.Cs.tmp.duration,this.Ir=!1),this.Nr(),this.Vh(),this.Pr==this.Cs.tmp.duration&&t(this).triggerHandler("ap-timer-complete"))},Vh:function(){var t=this.Cs.tmp.type,i=this.Cs.tmp.subType,s=this.Cs.tmp.countdown,e=this.Cs.tmp.duration,n=s?e-this.Pr:this.Pr,h=this.shape,r=n/e;if(t==Qt){var a,o,u,c="";i==qt?(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==Jt?(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==Zt?(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==ti&&(a=n%1e3,c=("00"+(o=Math.floor(n/1e3))).toString().slice(-2)+" : "+("000"+a).toString().slice(-3)),c!=this.text()&&this.html(c)}else if(t==Kt&&h&&h.Ar){var l=h.Ar.querySelector("path");if(l){var f=Fe[h.ps],d="none"!==h.xr?h.Er:0,p=d%2==0?0:1,v=wi(d/2);if(f&&f[0]){var m=h.container.clientWidth-2*v-2*p,b=h.container.clientHeight-2*v-2*p,w=new Ue;f[0].apply(w,[m*r+p+v,v+p,m-m*r,b].concat(h.Dr)),l.setAttribute("d",w.path())}}}}});Js(function(t,i){return new ie(t,i)},i.F);var se=ts(Ks,{$init:function(i,s){Ks.prototype.$init.call(this,i,s),this.node.setAttribute("role","button");var e=this;t(this.node).on("mousedown",function(t){e.filterEvent(t)||(ds(t,!0),e.Or=!0,setTimeout(function(){e.Or&&(e.ds(!1,!0)&&e.vs.flags(e.vs.flags()|m),delete e.Or)},0))}).on("mouseup",function(){e.Or&&delete e.Or,e.vs.flags(e.vs.flags()&~m)}).on("keydown",function(i){i.which!==ms.SPACE&&i.which!==ms.ENTER||!e.ds(!1,!0)||e.vs.has(m)||(i.preventDefault(),i.stopPropagation(),t(e.textNode||e.shape.shapeNode).trigger(t.Event("mousedown",{pageX:0,pageY:0})))}).on("keyup",function(i){i.which!==ms.SPACE&&i.which!==ms.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.ds(!1,!0)&&(this.vs.has(_)||this.vs.flags(this.vs.flags()|b))}).on("ap-rollout",function(){e.Or&&delete e.Or,this.vs.has(_)||this.vs.flags(this.vs.flags()&~(b|m))})}});Js(function(t,i){return new se(t,i)},i.M);var ee=ts(Ks,{$init:function(t,i){Ks.prototype.$init.call(this,t,i),this.on("ap-dblclick",function(t,i){this.ds(!1,!0)&&this.submit(t.value,!1)});var s=t.Ls.options.playMode;"Tutorial"!==s&&"Practice"!==s||this.on("ap-incorrect",function(){this.Ih(!0)})},Hh:function(){this.slide.Rn.push(this),Ks.prototype.Hh.call(this)},submit:function(t,i){if(this.prez()&&this.prez().ended)return this;if(!arguments.length)return this;var s=this.Cs.e||{},e=s.f,n=(e&it)!==it,h=n,r=h&&(e&tt)===tt,a=0,o=s.v||[],u=rt.Ri,c=-1;if(i||(o.length?c=o.indexOf(t):vs.code(t)!==bs.OUTSIDE&&(c=0)),c>=0)u=rt.Ci,h&&s.m&&(a=r?s.m[c]||0:s.m);else if(i&&ms.shouldIgnoreIncorrect(t))return this;return this.dr(this.savedData(!0),u,t,h?a:void 0,!n,t),this},restore:function(t){return Ks.prototype.restore.call(this,t),t||(t=this.savedData()),t&&void 0!==t.a&&this.lr(t.a),this},Is:function(t){t=t||{};var i=this.Cs.e||{},s=i.f||0,e=i.v||[],n=(s&J)===J,h=this.savedData();if(n){Ks.prototype.pr.call(this);var r=h&&h.r===rt.Ci;if(r&&t.showCorrect||!r&&t.showIncorrect){var a=this.yr(r,"middle-left");a&&(this.node.appendChild(a),r?this.node.vr=a:this.node.mr=a),this.Ih(!0)}if(t.showValues){if(e.length>0){for(var o=[],u=0;u<e.length;u++)o.push(bs.name(e[u],this.slide.prez().ui.Fs));var c=this.kr(o,"bottom-left");c&&(this.node.appendChild(c),this.node.br=c)}this.Ih(!0)}if(t.showResult){var l=rt.Ai;h&&void 0!==h.r&&(l=h.r);var f=this._r(l,this.slide.prez().responseResultString(l));f&&(this.slide.node.appendChild(f),this.slide.wr=f)}}}}),ne=ts(Ks,{$init:function(i,s){Ks.prototype.$init.call(this,i,s);var e=this;t(this.node).on("mousedown",function(t){e.filterEvent(t)||(ds(t,!0),bs.fromTouch&&e.ds(!1,!0)&&e.submit(bs.combinedCode(t),t.originalEvent||t))}).on("keydown keyup",function(t){if(ms.hasKeydown(t.which)===("keydown"===t.type)){var i=!0,s=ms.combinedCode(t);if(e.ds(!1,!0)){var n=e.An(s,!0);i=n.result!==rt.Pi,e.submit(n,t.originalEvent||t)}else i=ms.shouldPreventDefault(s,!1,!0);i&&ms.preventDefault(t)}t.stopPropagation()});var n=i.Ls.options.playMode;"Tutorial"!==n&&"Practice"!==n||this.on("ap-incorrect",function(){this.Ih(!0)})},Hh:function(){this.slide.fn.push(this),Ks.prototype.Hh.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.An(i,e);return e&&t(this).triggerHandler(t.Event("ap-keypress",{value:n.answer,originalEvent:s})),n.result!==rt.Pi&&this.dr(this.savedData(!0),n.result,n.answer,n.score,!n.report,n.answer),this},An:function(t,i){var s=this.Cs.e||{},e=s.f,n=(e&it)!==it,h=n,r=h&&(e&tt)===tt,a=0,o=s.v||[],u=rt.Ri,c=-1;return i?c=o.length?o.indexOf(t):0:vs.code(t)!==bs.OUTSIDE&&(c=0),c>=0?(u=rt.Ci,h&&s.m&&(a=r?s.m[c]||0:s.m)):i&&ms.shouldIgnoreIncorrect(t)&&(u=rt.Pi),{result:u,answer:t,score:h?a:void 0,report:n}},restore:function(t){return Ks.prototype.restore.call(this,t),t||(t=this.savedData()),t&&void 0!==t.a&&this.lr(t.a),this},Is:function(t){t=t||{};var i=this.Cs.e||{},s=i.f||0,e=i.v||[],n=(s&J)===J,h=this.savedData();if(n){Ks.prototype.pr.call(this);var r=h&&h.r===rt.Ci;if(r&&t.showCorrect||!r&&t.showIncorrect){var a=this.yr(r,"middle-left");a&&(this.node.appendChild(a),r?this.vr=a:this.mr=a),this.Ih(!0)}if(t.showValues){for(var o=[],u=0;u<e.length;u++)o.push(vs.name(e[u],this.slide.prez().ui.Fs));var c=this.kr(o,"bottom-left");c&&(this.node.appendChild(c),this.br=c),this.Ih(!0)}if(t.showResult){var l=rt.Ai;h&&void 0!==h.r&&(l=h.r);var f=this._r(l,this.slide.prez().responseResultString(l));f&&(this.slide.node.appendChild(f),this.slide.wr=f)}}},ds:function(t,i){return(!this.prez()||!this.prez().ended)&&Ks.prototype.ds.call(this,t,i)}});function he(t){if(!arguments.length)return this.textNode&&this.textNode.value||"";if(this.textNode||this.tr(),this.textNode.value=t+"",this.Lr&&this.prez()){var i=this.textNode.value,s=this.prez().vars;s.ps(this.Lr)==Wt.NUMBER&&(i=Number(i)),s.set(this.Lr,i)}return this}Js(function(t,i){return i.t===s.G?new ne(t,i):new ee(t,i)},i.P);var re=ts(Ks,{$init:function(i,s){s.v&&(this.Lr=s.v),Ks.prototype.$init.call(this,i,s),this.tr(),this.Yr();var e=this;t(this.node).on("mousedown",function(t){e.filterEvent(t)||(ds(t,!0),t.target!==e.textNode&&(t.preventDefault(),e.textNode.focus()))}),t(this.textNode).on("focus",function(){e.prez()&&e.prez().highlightFocus()&&t(e.node).addClass("ap-focused")}).on("blur",function(){t(e.node).removeClass("ap-focused")})},Wh:function(){var i,s,e=this.Cs.f;e&N.Tt?i=Ei.createElement("textarea"):((i=Ei.createElement("input")).type=e&N._t?"password":"text",i.autocomplete="off"),(s=i.style).border="none",s.margin=s.padding=0,s.backgroundColor="transparent",s.outline="none",this.disabled()&&(i.disabled=!0);var n=this.Fr(),h=this;return n===et?t(i).on("input",function(t){if(h.ds(!1,!0)){var i=h.An();i.answer!==i.prevValue&&(i.result===rt.Ci||i.result===rt.Ii||i.result===rt.Ri&&i.prevValue.substr(0,i.answer.length)!==i.answer)&&h.submit(i)}}):n>0&&t(i).on("keydown keyup",function(t){ms.hasKeydown(t.which)===("keydown"===t.type)&&ms.combinedCode(t)===n&&h.ds(!1,!0)&&h.submit()}),i},Ph:function(t){isNaN(t)||(this.tr(),-2==t?this.textNode.tabIndex=-1:-1==t?this.textNode.removeAttribute("tabIndex"):this.textNode.tabIndex=t)},html:he,text:he,value:he,caseSensitive:function(){return(this.Cs.f&N.yt)===N.yt},Jh:function(){var t=Ks.prototype.Jh.call(this)+"border: none; margin: 0; padding: 0; background: transparent; width: 100%; outline: none;";return this.Cs.f&N.Tt&&(t+=" height: 100%; resize: none;"),t},clear:function(t,i){return this.prez()&&this.prez().ended&&!i?this:this.text("")},restore:function(t){return Ks.prototype.restore.call(this,t),t||(t=this.savedData()),t&&void 0!==t.a&&this.lr(t.a),this.text(t&&t.v||"")},disable:function(t){return arguments.length||(t=!0),this.textNode&&(this.textNode.disabled=t),Ks.prototype.disable.call(this,t)},Fr:function(){var t=this.Cs.e||{},i=t.s||et;return t.f&(J|Z)||(i=et),i},submit:function(t){if(this.prez()&&this.prez().ended)return this;if(!t){if(this.Fr()===et)return this;t=this.An()}t.result===rt.Ni&&(t.result=rt.Ri),t.result!==rt.Pi&&this.dr(this.savedData(!0),t.result,t.answer,t.score,!t.report,t.answer);var i=this.savedData();return i&&i.v&&this.text(i.v),this},An:function(){var i=this.Cs.e||{},s=i.f,e=(s&J)===J,n=(s&it)!==it,h=e&&n,r=h&&(s&tt)===tt,a=0,o=this.value(),u=rt.Pi;if(e){var c,l,f,d=!this.caseSensitive(),p=d?o.toUpperCase():o,v=i.v||[""],m=-1;for(u=rt.Ri,l=0,f=v.length;l<f;++l){if(c=v[l],d&&(c=c.toUpperCase()),p===c){m=l,u=rt.Ci;break}c.substr(0,p.length)===p&&p.length<c.length&&(u=rt.Ni)}u===rt.Ci?h&&i.m&&(a=r?i.m[m]||0:i.m):o||(u=rt.Ai)}else s&Z&&(u=o?rt.Ii:rt.Ai);if(o!==this.Ur){if(this.Lr&&this.prez()){var b=o,w=this.prez().vars;w.ps(this.Lr)==Wt.NUMBER&&(b=Number(b)),w.set(this.Lr,b)}t(this).triggerHandler(t.Event("ap-textenter",{value:o}))}var g={result:u,answer:o,score:h?a:void 0,report:n,prevValue:this.Ur||""};return this.Ur=o,g},firstCorrectValue:function(){var t=this.Cs.e;return t&&t.v&&t.v.length>0&&t.v[0]?t.v[0]:""},Yr:function(){var t=this.slide,i=t.Ls.options.playMode||"",s=this.Cs.e.f||0;if("Demo"===i&&(s&J)===J){for(var e=t.be,n=0,h=0,r=null,a=null,o=(t.Cs.tl[0]||null)[2],u=0,c=null!==o?o.length:0;u<c;++u)if(o[u][0]==this.Cs.i){for(var l=o[u][1],f=0,d=null!==l?l.length:0;f<d;++f){var p=l[f];if(p&&p[0]>=ks.EffectType.ENTRANCE_START&&p[0]<=ks.EffectType.ENTRANCE_END&&!r?r=p:p&&p[0]>=ks.EffectType.EXIT_START&&p[0]<=ks.EffectType.EXIT_END&&!a&&(a=p,r&&r[1]>0&&a[0]===ks.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.Cs.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 wn(this,"text",{startTime:m,duration:w,tweenParams:[],tweenType:yt.Ji});return g&&e.addChild(g),this}},Is:function(t){t=t||{};var i=(((this.Cs.e||{}).f||0)&J)===J,s=this.savedData();if(i){Ks.prototype.pr.call(this);var e=s&&s.r===rt.Ci;if(e&&t.showCorrect||!e&&t.showIncorrect){var n=this.yr(e,"middle-left");n&&(this.node.appendChild(n),e?this.vr=n:this.mr=n)}if(t.showValues){var h=(this.Cs.e||{}).v||[""],r=this.kr(h,"bottom-left");r&&(this.node.appendChild(r),this.br=r)}if(t.showResult){var a=rt.Ai;s&&void 0!==s.r&&(a=s.r);var o=this._r(a,this.slide.prez().responseResultString(a));o&&(this.slide.node.appendChild(o),this.slide.wr=o)}}},ds:function(t,i){return(!this.prez()||!this.prez().ended)&&Ks.prototype.ds.call(this,t,i)}});Js(function(t,i){return new re(t,i)},i.S);var ae=ts(Ks,{$init:function(t,i){Ks.prototype.$init.call(this,t,i);var s=t.Ls.options.playMode;"Tutorial"!==s&&"Practice"!==s||this.on("ap-incorrect",function(){this.Ih(!0)})},submit:function(t){if(this.prez()&&this.prez().ended)return this;if(!t)return this;var i=this.Cs.e||{},s=i.f,e=(s&it)!==it,n=e,h=n&&(s&tt)===tt,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,l=this.savedData(!0),f=r?x:E;o&&o.hasStateFlag(f)&&o.vs.flags(f),this.hasStateFlag(f)&&this.vs.flags(f),this.dropHelper.absolutePosition()&&t&&t.uh&&(c=[t.uh.x,t.uh.y]),this.dr(l,r?rt.Ci:rt.Ri,t?t.id():0,n?a:void 0,!e,t,c);var d=this.maxAttempts();return l.a!=d&&-1!=d||(o.hasStateFlag(f)&&o.savedCurrentState(),this.hasStateFlag(f)&&this.savedCurrentState()),this},restore:function(t){if(this.clear(),!t&&!(t=this.savedData()))return this;if(t.st&&(this.state(t.st),this.bn()),void 0!==t.a&&this.lr(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();e&&e.st&&(i.state(e.st),i.bn()),this.dropHelper.drop(i,s,!1)}}return this},Is:function(t){t=t||{};var i=this.Cs.e||{},s=i.f||0,e=i.v||[],n=(s&J)===J,h=this.savedData();if(n){Ks.prototype.pr.call(this);var r=h&&h.r===rt.Ci;if(r&&t.showCorrect||!r&&t.showIncorrect)(u=this.yr(r,"middle-left"))&&(this.node.appendChild(u),r?this.vr=u:this.mr=u);if(t.showCorrect)for(var a=0;a<e.length;a++){var o,u;if(o=this.slide.object(e[a]))Ks.prototype.pr.call(o),(u=this.yr(!0,"middle-left"))&&(o.node.appendChild(u),o.vr=u)}if(t.showIncorrect)if(h&&void 0!==h.v)if(e.indexOf(h.v)<0)if(o=this.slide.object(h.v))Ks.prototype.pr.call(o),(u=this.yr(!1,"middle-left"))&&(o.node.appendChild(u),o.mr=u);if(t.showResult){var c=rt.Ai;h&&void 0!==h.r&&(c=h.r);var l=this._r(c,this.slide.prez().responseResultString(c));l&&(this.slide.node.appendChild(l),this.slide.wr=l)}(t.showCorrect||t.showValues)&&this.Ih(!0)}},ds:function(t,i){return(!this.prez()||!this.prez().ended)&&Ks.prototype.ds.call(this,t,i)}});Js(function(t,i){return new ae(t,i)},i.C);var oe=ts(Ks,{$init:function(i,s){this.Xr=16,Ks.prototype.$init.call(this,i,s),this.node.setAttribute("aria-checked",this.checked()?"true":"false");var e=this;t(this.node).on("mousedown",function(t){e.filterEvent(t)||(ds(t,!0),e.Or=!0,setTimeout(function(){e.Or&&(e.ds(!1,!0)&&e.vs.flags(e.vs.flags()|m),delete e.Or)},0))}).on("mouseup",function(){e.Or&&delete e.Or,e.vs.flags(e.vs.flags()&~m)}),this.on("ap-rollover",function(t){this.ds(!1,!0)&&this.vs.flags(this.vs.flags()|b)}).on("ap-rollout",function(){e.Or&&delete e.Or,this.vs.flags(this.vs.flags()&~(b|m))})},textMargin:function(t,i,s,e){if(!arguments.length){var n=Ks.prototype.textMargin.call(this);return this.isShowToggleButton()&&(n[0]+=this.Xr+wi(2*fi(7,this.Xr/4))),n}return Ks.prototype.textMargin.call(this,t,i,s,e)},isShowToggleButton:function(){var t=this.vs,i=t.Cs[t.le];return i.tg&&!!i.tg[6]},check:function(t){return arguments.length||(t=!0),this.Br(t,!1),this},Br:function(i,s){var e=this.vs.flags(),n=!1;this.checked()!==i&&(n=!0,i?e|=g:e&=~g),this.vs.flags(e),s&&n&&t(this).triggerHandler(i?"ap-check":"ap-uncheck")},checked:function(){return(this.vs.flags()&g)===g},clear:function(t,i){return this.prez()&&this.prez().ended&&!i?this:(this.Br(!1,!1),this)},setIconSize:function(t){this.Xr=t,this.textContainer&&this.Xh()},value:function(t){return arguments.length?(this.Br(t,!1),this):this.checked()},ds:function(t,i){return(!this.prez()||!this.prez().ended)&&Ks.prototype.ds.call(this,t,i)}}),ue=ts(oe,{$init:function(i,s){oe.prototype.$init.call(this,i,s),this.node.setAttribute("role","checkbox");var e=this;this.on("ap-click",function(){this.ds(!1,!0)&&this.Br(!this.checked(),!0)}),t(this.node).on("keydown",function(t){var i;switch(t.which){case ms.SPACE:i=e;break;case ms.TAB:var s=e.node.tabIndex;if(void 0===s||-1==s)break;var n=t.shiftKey?e.Hr():e.zr();n&&(n.Ph(s),e.Ph(-2),t.stopPropagation(),t.preventDefault(),n.ds(!1,!0)&&n.node.focus())}i&&(t.stopPropagation(),t.preventDefault(),i.ds(!1,!0)&&(i.Br(!i.checked(),!0),i!==e&&i.node.focus()))})},zr: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 ue){if(!a.disabled()&&(i||(i=a),s)){t=a;break}a===this&&(s=!0)}}return t},Hr: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 ue){if(!r.disabled()&&(i||(i=r),s)){t=r;break}r===this&&(s=!0)}}return t}});Js(function(t,i){return new ue(t,i)},i.D);var ce=ts(oe,{$init:function(i,s){oe.prototype.$init.call(this,i,s),this.node.setAttribute("role","radio");var e=this;this.on("ap-click",function(){this.ds(!1,!0)&&!this.checked()&&this.Br(!0,!0)}),t(this.node).on("keydown",function(t){var i;switch(t.which){case ms.SPACE:i=e;break;case ms.LEFT:case ms.UP:i=e.Gr();break;case ms.RIGHT:case ms.DOWN:i=e.Vr()}i&&(t.stopPropagation(),t.preventDefault(),!i.checked()&&i.ds(!1,!0)&&(i.Br(!0,!0),i!==e&&i.node.focus()))})},radioGroup:function(t){return arguments.length?(this.Dh=t,this):this.Dh},Br:function(t,i){if(t&&this.parent&&this.parent!==this.slide){var s,e,n,h=this.Dh,r=this.parent.children;for(s=0,e=r.length;s<e;++s)(n=r[s])!==this&&n instanceof ce&&n.Dh===h&&n.Br(!1,i)}oe.prototype.Br.call(this,t,i),t&&this.parent&&-1===this.node.tabIndex&&this.parent.updateTabIndexGR(this)},Gr: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 ce&&r.Dh===this.Dh){if(!r.disabled()&&(i||(i=r),s)){t=r;break}r===this&&(s=!0)}}return t||i===this||(t=i),t},Vr: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 ce&&a.Dh===this.Dh){if(!a.disabled()&&(i||(i=a),s)){t=a;break}a===this&&(s=!0)}}return t||i===this||(t=i),t}});function le(){return arguments.length?this:""}Js(function(t,i){return new ce(t,i)},i.O);var fe=ts(Ks,{$init:function(t,i){Ks.prototype.$init.call(this,t,i),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 Ks.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:le});function de(t,i){var s,e,n=i.vs.Qn(t.vs.at());n||(n=i.vs.Qn(0)),n&&(t.Kn(n[0],n[1],n[2]),s=t.node.offsetLeft||0,e=t.node.offsetTop||0,(n=t.vs.Qn(t.vs.at()))&&(t.Kn(n[0],n[1],n[2]),s-=t.node.offsetLeft||0,e-=t.node.offsetTop||0,t.translate(s,e)))}var pe=ts(fe,{$init:function(i,e){fe.prototype.$init.call(this,i,e),this.Wr=this.Cs.t;var n,h,r,a=this.children;if((this.Cs.e&&this.Cs.e.f&st||this.Wr==s.nt)&&(this.$r=!0,this.jr(),this.Wr!=s.nt&&this.Ph(this.Cs.ti)),this.Wr===s.rt){var o=0;for(n=0,h=a.length;n<h;++n)(r=a[n]).radioGroup?r.radioGroup(o):++o}else if(this.Wr===s.nt){var u={start:function(i,s){var e=this.rlControl,n=this.style;if(!e||!e.ds(!1,!0)||e.prez()&&e.prez().ended)return!1;e._h={left:n.left,right:n.right,top:n.top,bottom:n.bottom},e.Th=getTransformationMatrix(this.parentNode).inverse(),e.yh=e.Th.transformPoint(s.originalPosition.left,s.originalPosition.top),e.yh.x+=s.originalPosition.left-(parseFloat(t(this).css("left"))||0),e.yh.y+=s.originalPosition.top-(parseFloat(t(this).css("top"))||0),Ws.dragEffect(e,!0);var h=Ei.createElement("div"),r=h.style;r.position="absolute",["left","right","top","bottom","width","height",Ki].forEach(function(t){r[t]=n[t]}),t(h).addClass("ap-ctrl-drop-placeholder"),this.parentNode.appendChild(h),e.Qr=h,e.hasStateFlag(_)&&e.vs.flags(_),t(e).triggerHandler(t.Event("ap-dragstart",{originalEvent:i}))},stop:function(i,s){var e=this.rlControl;if(e){Ws.dragEffect(e,!1),de(e,e.parent.children[e.sequentialOrder]);var n=e.Qr;n&&n.parentNode&&n.parentNode.removeChild(n),delete e.Qr,e.hasStateFlag(T)&&e.vs.flags(T),t(e).triggerHandler(t.Event("ap-dragend",{value:null,originalEvent:i}))}},drag:function(t,i){var s,e,n,h=this.rlControl;if(h)for(s=h.Th.transformPoint(i.position.left,i.position.top),i.position.left=i.originalPosition.left+s.x-h.yh.x,i.position.top=i.originalPosition.top+s.y-h.yh.y,e=this.style.zIndex,this.style.zIndex=-1,n=Ei.elementFromPoint(t.pageX,t.pageY),this.style.zIndex=e;n&&n!==Ei.documentElement;){if(n.rlControl){if(n.rlControl!==h&&h.parent){var r,a,o,u,c=h.sequentialOrder,l=n.rlControl.sequentialOrder,f=h.parent.children,d=h.Qr.style,p=n.style;for(["left","right","top","bottom",Ki].forEach(function(t){d[t]=p[t]}),r=0,a=f.length;r<a;++r)(o=f[r])===h?o.sequentialOrder=l:((u=o.sequentialOrder)>c&&--u,u>=l&&++u,u!==o.sequentialOrder&&(o.sequentialOrder=u,de(o,f[u])))}break}n=n.parentNode}}};for(n=0,h=a.length;n<h;++n)(r=a[n]).node.rlControl=r,t(r.node).on("mousedown",function(t){this.rlControl&&this.rlControl.filterEvent(t)||ds(t,!0)}).css("touchAction","none").draggable(u)}this.Wr===s.J&&this.node.setAttribute("role","radiogroup"),this.Wr===s.rt&&this.Ph(this.Cs.ti)},onResized:function(t,i){Ks.prototype.onResized.call(this,t,i),this.$r&&this.shuffleAnswers(null,!0)},onLayoutSwitched:function(){Ks.prototype.onLayoutSwitched.call(this),this.$r&&this.shuffleAnswers(null,!0)},Ph:function(t){if(!isNaN(t)){var i=this.Cs.t;if(i!=s.nt&&i!=s.ht){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)]).Ph(a.Cs.ti):a=o[h],a instanceof ce?(u=a.Dh,c.indexOf(u)<0?(t>=0&&a.Ph(t),c.push(u)):a.Ph(-2)):a instanceof re?a.Ph(t):a instanceof ue&&(n&&t>=0?0==h?a.Ph(t):a.Ph(-2):a.Ph(t))}else Ks.prototype.Ph.call(this,t)}},jr:function(){var t,i=this.savedData();if(i&&i.s)return i.s;switch(this.Wr){case s.it:case s.J:case s.tt:case s.nt:t=Li(this.children.length);break;case s.ht:var n,h,r=this.children,a=0;for(n=0,h=r.length;n<h;++n)r[n].Cs.f&e.pt&&++a;t=Li(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.jr()))return this;if(this.$r=!0,this.Eh||this.Sh){var n,h,r=this.children;switch(this.Wr){case s.it:case s.J:case s.tt:for(n=0,h=r.length;n<h;++n)de(r[n],r[t[n]]);break;case s.nt:for(n=0,h=r.length;n<h;++n)i&&void 0!==r[n].sequentialOrder||(r[n].sequentialOrder=t[n]),de(r[n],r[r[n].sequentialOrder]);break;case s.ht:var a,o=[];for(n=0,h=r.length;n<h;++n)(a=r[n]).Cs.f&e.pt&&o.push(a);for(n=0,h=li(o.length,t.length);n<h;++n)i&&o[n].dropTarget||de(o[n],o[t[n]])}return this}},submit:function(){if(this.prez()&&this.prez().ended)return this;var t,i,e,n,h,r,a,o,u,c,l=this.children,f=this.Cs.e||{},d=f.f,p=(d&J)===J,m=(d&it)!==it,b=p&&m,w=b&&(d&tt)===tt,g=0,_=!1,T=!1;switch(this.Wr){case s.J:case s.it:case s.tt:for(r=f.v||[],a=[],o=[],t=0,i=l.length;t<i;++t)(h=l[t]).checked&&h.checked()&&(a.push(h),o.push(h.id()),p&&(!_&&r.indexOf(h.id())<0&&(_=!0),w&&(g+=h.Cs.e.m)));T=0===a.length&&(!p||r.length>0),_&&w&&this.Wr===s.tt&&(g=0),!p||_||T||r.length===a.length||(_=!0);break;case s.et:var y,k,S,M,P;for(a=[],o={},t=0,i=l.length;t<i;++t)if((h=l[t])instanceof re)if(a.push(h),S=h.value(),o[h.id()]=S,y=h.Cs.e||{},P=!h.caseSensitive(),p){for(P&&(S=S.toUpperCase()),k=-1,e=0,n=(r=y.v||[""]).length;e<n;++e)if(M=r[e],P&&(M=M.toUpperCase()),S===M){k=e;break}!_&&k<0&&S&&(_=!0),!T&&k<0&&!S&&(T=!0),w&&k>=0&&y.m&&(y.f&tt?g+=y.m[k]||0:g+=y.m)}else T||S||(T=!0);break;case s.nt:for(w=!1,(a=l.slice()).sort(function(t,i){return t.sequentialOrder-i.sequentialOrder}),o=[],t=0,i=a.length;t<i;++t)o.push(a[t].id());if(p&&!_)for(t=0,i=l.length;t<i;++t)if(l[t].sequentialOrder!==t){_=!0;break}break;case s.ht:var I,C,R,A,N,D,O,L=[],Y=[];for(a=[],o={},t=0,i=l.length;t<i;++t)if((h=l[t]).dropHelper){r=(D=h.Cs.e||{}).v||[],a.push(h),o[h.id()]=R=[],(A=h.dropHelper.absolutePosition())&&(u||(u={}),u[h.id()]=O=[]);var F=!1;for(e=0,n=(I=h.dropHelper.droppedObjects()).length;e<n;++e)C=I[e],R.push(C.id()),A&&(C.uh?O.push([C.uh.x,C.uh.y]):O.push([0,0])),Y.push(C.id()),p&&(N=r.indexOf(C.id()),!_&&N<0&&(_=!0,F=!1),N>=0&&!F&&(F=!0),w&&N>=0&&D.m&&(g+=D.m[N]||0));var U=F?x:E;for(p&&h.hasStateFlag(U)&&(h.vs.flags(U),h.savedCurrentState()),e=0,n=I.length;e<n;++e)if(C=I[e],Y.push(C.id()),p){var X=r.indexOf(C.id()),B=v;B=X<0?E:x,C.hasStateFlag(B)&&(C.vs.flags(B),C.savedCurrentState())}if(p&&!_&&R.length!==r.length)for(e=0,n=r.length;e<n;++e)R.indexOf(r[e])<0&&L.push(r[e])}if(p&&!_)for(t=0,i=L.length;t<i;++t)if(Y.indexOf(L[t])<0){_=!0;break}Y.length||p&&!L.length||(T=!0);break;case s.rt:a=[],o=[];var H,z=0;for(t=0,i=l.length;t<i;)(h=l[t]).radioGroup&&(h.Dh!==z?(z=h.Dh,void 0!==H&&(a.push(H),o.push(H?H.id():0)),H=h.checked()?h:null):h.checked()&&(H=h)),++t;void 0!==H&&(a.push(H),o.push(H?H.id():0)),T=a.indexOf(null)>=0;break;default:return this}return c=T?rt.Ai:_?rt.Ri:p?rt.Ci:rt.Ii,b&&!w&&c===rt.Ci&&(g=f.m||0),this.dr(this.savedData(!0),c,o,b?g:void 0,!m,a,u),this},clear:function(t,i){return this.prez()&&this.prez().ended&&!i?this:(this.Wr===s.nt&&this.shuffleAnswers(),Ks.prototype.clear.call(this,t,i))},disable:function(t){arguments.length||(t=!0);var i,s,e=this.children;for(i=0,s=e.length;i<s;++i)e[i].disable(t);return Ks.prototype.disable.call(this,t)},restore:function(t){if(!t&&!(t=this.savedData()))return this.clear(void 0,!0);void 0!==t.a&&this.lr(t.a),!t.s||this.Wr===Ks.nt&&t.v||this.shuffleAnswers(t.s);var i,e,n,h=t.v,r=this.children;switch(this.Wr){case s.it:case s.J:case s.tt:case s.rt:for(h||(h=[]),i=0,e=r.length;i<e;++i)(n=r[i]).check&&n.check(h.indexOf(n.id())>=0);break;case s.et:for(h||(h={}),i=0,e=r.length;i<e;++i)(n=r[i])instanceof re&&n.value(h[n.id()]||"");break;case s.nt:var a;if(h&&h.length)for(i=0,e=r.length;i<e;++i)n=r[i],(a=h.indexOf(n.Cs.i))>=0&&(n.sequentialOrder=a,de(n,r[a]));break;case s.ht:var o,u,c,l,f,d,p=t.d||{};for(i=0,e=r.length;i<e;++i)if((n=r[i]).restore(),n.dropHelper)for(o=h&&h[n.id()]||[],c=p[n.id()]||[],n.dropHelper.clear(),f=0,d=o.length;f<d;++f)(u=this.slide.object(o[f]))&&(l=c[f],n.dropHelper.drop(u,{x:l?l[0]:0,y:l?l[1]:0},!1))}return this},cleanup:function(){if(this.Wr===s.nt){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.Qr&&n.Qr.parentNode&&n.Qr.parentNode.removeChild(n.Qr)}return Ks.prototype.cleanup.call(this)},Is:function(t){t=t||{};var i=this.Cs.e||{},e=((i.f||0)&J)===J,n=this.savedData();if(e){switch(this.Wr){case s.it:case s.J:case s.tt:var h=[];n&&(h=n.v||[]);for(var r=i.v||[],a=0;a<this.children.length;++a){var o=(y=this.children[a]).id();if(Ks.prototype.pr.call(y),t.showCorrect)if(r.indexOf(o)>=0)(E=this.yr(!0,"middle-left"))&&(y.node.appendChild(E),y.vr=E);if(t.showIncorrect)if(h.indexOf(o)>=0&&r.indexOf(o)<0)(E=this.yr(!1,"middle-left"))&&(y.node.appendChild(E),y.mr=E)}break;case s.et:h={};n&&(h=n.v||{});for(a=0;a<this.children.length;++a){if((y=this.children[a])instanceof re){r=(y.Cs.e||{}).v||[""];var u=!y.caseSensitive(),c=h[y.id()],l=[];if(u)for(var f=0;f<r.length;f++)l.push(r[f].toLowerCase());else l=r;var d=l.indexOf(u?c.toLowerCase():c)>=0;if(Ks.prototype.pr.call(y),d&&t.showCorrect||!d&&t.showIncorrect)(E=this.yr(d,"middle-right"))&&(y.node.appendChild(E),d?y.vr=E:y.mr=E);if(t.showValues){var p=y.kr(r,"middle-right");p&&(p.style.transform+="translateX(-100%)",p.style.textAlign="right",y.node.appendChild(p),y.br=p)}}}break;case s.nt:var v=this.children,m=v.slice(),b=[];m.sort(function(t,i){return t.sequentialOrder-i.sequentialOrder});for(a=0;a<m.length;a++)b.push(m[a].id());for(h=n.v||b,a=0;a<v.length;a++){d=(c=h[a])===(y=v[a]).id();if(Ks.prototype.pr.call(y),d&&t.showCorrect||!d&&t.showIncorrect)(E=this.Tr(d,(a+1).toString(),"middle-left"))&&(y.node.appendChild(E),d?y.vr=E:y.mr=E)}break;case s.ht:for(var w=0,g=[],_=(a=0,this.children.length);a<_;a++){var T=this.children[a];if(!T.dropHelper)if(w++,g.push(T.id()),t.showValues)Ks.prototype.pr.call(T),(E=this.Tr(d,w.toString(),"middle-left"))&&(T.node.appendChild(E),T.mr=E)}for(a=0;a<this.children.length;a++){var y;h=[],r=[];if((y=this.children[a]).dropHelper){d=!0;var k=y.Cs.e||{},x=y.dropHelper.droppedObjects();r=k.v||[];for(f=0;f<x.length;f++)h.push(x[f].id());for(0==h.length&&r.length>0&&(d=!1),f=0;f<h.length;++f)r.indexOf(h[f])<0&&(d=!1);if(Ks.prototype.pr.call(y),d&&t.showCorrect||!d&&t.showIncorrect||!d&&t.showValues){var E,S,M=d&&r.length==h.length&&r.length>1,P=[];for(f=0,_=r.length;f<_;++f)(S=g.indexOf(r[f]))>=0&&P.push(S+1);if(1==P.length&&(w=P[0]),(!d||P.length>1&&!M)&&t.showValues){var I=P.length>1?P:w.toString();E=this.Tr(d,I,"middle-left")}else E=this.yr(d,"middle-left");E&&(y.node.appendChild(E),d?y.vr=E:y.mr=E)}}}}if(Ks.prototype.pr.call(this.slide),t.showResult){var C=rt.Ai;n&&void 0!==n.r&&(C=n.r);var R=this._r(C,this.slide.prez().responseResultString(C));R&&(this.slide.node.appendChild(R),this.slide.wr=R)}}},ds:function(t,i){return(!this.prez()||!this.prez().ended)&&Ks.prototype.ds.call(this,t,i)}});Js(function(t,i){return i.t?new pe(t,i):new fe(t,i)},i.L,i.Y);var ve=ts({$init:function(i,s){void 0===s.Cs.fbi?this.node=t(".ap-slides",i.container)[0]:this.node=t(".ap-feedback-slides",i.container)[0],this.slide=s}});Js(function(t,i){return new ve(t,i)},i.X);var me=ts(Ks,{$init:function(t,i){Ks.prototype.$init.call(this,t,i)},createNode:function(){var t=Ks.prototype.createNode.call(this),i=Ei.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,t},jn:function(t,i,s,e){this.imageNode.src=this.prez().getResource(t+"."+(0==s?"png":1==s?"jpg":"gif")),this.imageNode.style.opacity=i/255,e&&this.imageNode.setAttribute("alt",e),this.shape.Kr(t,s,i)},cursor:function(t){return Ks.prototype.cursor.call(this,t),this.imageNode.style.cursor=t,this},html:le});Js(function(t,i){return new me(t,i)},i.u);var be=ts(Ks,{$init:function(t,i){Ks.prototype.$init.call(this,t,i),this.qr=0},createNode:function(){var t=Ks.prototype.createNode.call(this),i=Ei.createElement("div");i.style.top="50%",i.style.left="50%",i.style.width=this.Cs.ge.w+"px",i.style.height=this.Cs.ge.h+"px",i.style.position="absolute",i.style[Ki]="translate(-50%, -50%)";var s=Ei.createElement("canvas");return zi(s,{width:this.Cs.ge.w,height:this.Cs.ge.h}),this.Jr=s,i.appendChild(s),t.appendChild(i),t}});Js(function(t,i){return new be(t,i)},i.I);var we=ts({$init:function(){this.LINEWIDTH=6,this.CIRCLE_RADIUS_MAX=40,this.RECTANGLE_HEIGHT_ARROW=160,this.RECTANGLE_WIDTH_ARROW=40,this.ARROW_HEIGHT=80,this.HOLD_CIRCLE_RADIUS=25,this.PINCH_IN_OUT_ANGLE=ai/6,this.TWO_FINGERS_TAP_ANGLE=ai/18,this.TWO_FINGERS_CIRCLE_RADIUS_DOUBLE=20,this.TWO_FINGERS_CIRCLE_RADIUS_SINGLE=15,this.TWO_FINGERS_BETA_MIN=ai/36,this.TWO_FINGERS_BETA_MAX=ai/3,this.TWO_FINGERS_DOUBLE_BETA_MIN=ai/6,this.TWO_FINGERS_DOUBLE_BETA_MAX=ai/3,this.CIRCLE_LEFT_RIGHT_RADIUS=60,this.LEFT_RIGHT_ROTATE_ARROW_WIDTH=30,this.ROTATE_ARROW_HEIGHT=50,this.INNER_CIRCLE_RADIUS=25},Motivate:function(t){return qe.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*ai+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,-ai,-ai-Math.asin(s/h),!0),t.arc(n+i/2,0,n,ai-Math.asin(s/n),ai,!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*ai),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*ai),t.stroke(),t.closePath(),a>.3*(r-this.LINEWIDTH-15)+this.LINEWIDTH+15&&(t.beginPath(),t.arc(i,s,a-15,0,2*ai),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=ai/4,c=this.fadeIn(1,e);c=this.fadeOut(c,e),t.globalAlpha=c,t.strokeStyle=h,t.fillStyle=h;var l=2*ai*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*ai),t.stroke(),t.closePath(),t.translate(i+Math.cos(u)*(r+o)+a*Math.sin(ai/4),s-Math.sin(u)*(r+o)-a*Math.cos(ai/4)),t.beginPath(),t.lineWidth=this.LINEWIDTH/2,t.arc(0,0,o,0,2*ai),t.stroke(),t.closePath(),t.setTransform(1,0,0,1,0,0),t.translate(i+Math.cos(u)*(r+o)+a*Math.sin(ai/4),s-Math.sin(u)*(r+o)-a*Math.cos(ai/4)),t.beginPath(),t.lineWidth=this.LINEWIDTH/2,t.moveTo(0,0),t.arc(0,0,o,-ai/2+l,1.5*ai,!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(ai),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(ai/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*ai),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),l=this.fadeIn(1,e);l=this.fadeOut(l,e),t.globalAlpha=l,t.fillStyle=h,t.clearRect(i-o,s-o,2*o,2*o),t.translate(i,s);var f=-Math.sin(u)*o+a*Math.sin(u)+n.call(null,e)*c,d=-f/Math.tan(u);t.translate(f,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(ai+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),l=this.fadeIn(1,e);l=this.fadeOut(l,e),t.globalAlpha=l,t.fillStyle=h,t.clearRect(i-o,s-o,2*o,2*o),t.translate(i,s);var f=a*Math.sin(u)+n.call(null,e)*c,d=-f/Math.tan(u);t.translate(f,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(ai+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 l=o+n.call(null,e)*(u-o),f=r/Math.cos(l);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/ai),t.beginPath(),t.arc(r,0,f,ai-l,-ai+l,!0),t.arc(-r,0,f,-l,-2*ai+l,!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),l=r/Math.cos(c);t.clearRect(i-4*r,s-4*r,8*r,8*r),t.translate(i,s),t.rotate(-60*a/ai),t.lineWidth=this.LINEWIDTH;var f=this.fadeIn(1,e);if(f=this.fadeOut(f,e),t.globalAlpha=f,t.strokeStyle=h,t.lineJoin="round",t.lineCap="round",t.beginPath(),t.arc(-r,0,l,-c,-2*ai+c,!0),t.arc(r,0,l,ai-c,-ai+c,!0),t.stroke(),t.closePath(),l*Math.sin(c)>15){var d=Math.atan((l*Math.sin(c)-15)/r),p=r/Math.cos(d);t.beginPath(),t.arc(-r,0,p,-d,-2*ai+d,!0),t.arc(r,0,p,+ai-d,-ai+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=ai/2,l=o-80;t.translate(i-r-o+80+n.call(null,e)*l,s),t.rotate(c),this.drawUpArrowPath(t,a,80),t.setTransform(1,0,0,1,0,0),c=ai/4,l=Math.sin(c)*(o-80),t.translate(i,s);var f=Math.sin(c)*(-o-r+80)+n.call(null,e)*l,d=f/Math.tan(c);t.translate(f,d),t.rotate(ai-c),this.drawUpArrowPath(t,a,80),t.setTransform(1,0,0,1,0,0),c=ai,l=o-80,t.translate(i,s-r-o+80+n.call(null,e)*l),t.rotate(c),this.drawUpArrowPath(t,a,80),t.setTransform(1,0,0,1,0,0),c=ai/6,l=Math.sin(c)*(o-80),t.translate(i,s);d=-(f=Math.sin(c)*(o+r-80)-n.call(null,e)*l)/Math.tan(c);t.translate(f,d),t.rotate(ai+c),this.drawUpArrowPath(t,a,80),t.setTransform(1,0,0,1,0,0),c=ai/3,l=Math.sin(c)*(o-80),t.translate(i,s),d=-(f=Math.sin(c)*(o+r-80)-n.call(null,e)*l)/Math.tan(c),t.translate(f,d),t.rotate(ai+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=Hi(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 l=Hi(200+60*n.call(null,e));t.translate(i+Math.cos(l)*o,s-Math.sin(l)*o),t.rotate(-l),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=Hi(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(ai-c),this.drawUpRightCurveArrowPath(t,r,a,o),t.setTransform(1,0,0,1,0,0);var l=Hi(60-60*n.call(null,e));t.translate(i+Math.cos(l)*o,s-Math.sin(l)*o),t.rotate(ai-l),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 Pt:this.drawSingleTap(t,s,e,n,this.Motivate,h);break;case It:this.drawDoubleTap(t,s,e,n,this.Motivate,h);break;case Ct:this.drawHold(t,s,e,n,this.Motivate,h);break;case Rt:this.drawTwoFingersTap(t,s,e,n,this.Motivate,h);break;case At:this.drawTwoFingersDoubleTap(t,s,e,n,this.Motivate,h);break;case Nt:this.drawSwipeUp(t,s,e,n,this.Motivate,h);break;case Ot:this.drawSwipeDown(t,s,e,n,this.Motivate,h);break;case Lt:this.drawSwipeLeft(t,s,e,n,this.Motivate,h);break;case Dt:this.drawSwipeRight(t,s,e,n,this.Motivate,h);break;case Lt:this.drawSwipeLeft(t,s,e,n,this.Motivate,h);break;case Yt:this.drawRotateLeft(t,s,e,n,this.Motivate,h);break;case Ft:this.drawRotateRight(t,s,e,n,this.Motivate,h);break;case Ut:this.drawPinchIn(t,s,e,n,this.Motivate,h);break;case Xt:this.drawPinchOut(t,s,e,n,this.Motivate,h);break;case Bt:this.drawFingers(t,s,e,n,this.Motivate,h)}},renderMouseEffect:function(t,i,s,e,n,h,r){t.clearRect(0,0,2*r+200,2*r+200);var a=n*r;if(t.strokeStyle=h,t.lineWidth=2,t.lineJoin="round",t.lineCap="round",i==Ht)t.beginPath(),t.arc(s,e,a,0,2*Math.PI),t.stroke();else if(i==zt)for(;a>0;)t.beginPath(),t.arc(s,e,a,0,2*Math.PI),t.stroke(),a-=9;else i==Gt&&t.strokeRect(s-a,e-a,2*a,2*a)}}),ge=ts(me,{$init:function(t,s){this.Zr=s;var n=2*s.hl_size,h=2*s.hl_size,r=t.defaultCtrlData();r.i=s.id,r.k=i.U,r.m=s.showMode,r.ti=-1;var a=[];if(t.Cs&&t.Cs.h)for(var o=0;o<t.Cs.h.length;o++){var u=s.pos[o][0]-n/2,c=s.pos[o][1]-h/2,l={};l.r=[u,c,n,h],a.push(l)}if(r.s=[{w:a}],r.ti=-1,me.prototype.$init.call(this,t,r),this.node.style.zIndex=_t.Gi,this.ta()){this.ia=new Ks(t,r),this.ia.node.style.zIndex=_t.Gi;var f=Ei.createElement("canvas");zi(f,{width:0,height:0}),this.sa=0,this.ea=0;var d=f.style;d.position="absolute",d.top="0px",d.left="0px",d[Ki]="translate(-50%, -50%) translate("+this.Zr.hl_size+"px, "+this.Zr.hl_size+"px)",this.ia.node.appendChild(f),this.na=f}if(this.ha()){var p=t.defaultCtrlData();p.k=i._,p.mi=-1,p.md=0,p.f|=e.wt,this.ra=t.createChild(p)}},ta:function(){var t=!1;return this.Zr.cursors&&this.Zr.cursors.forEach(function(i){i.click_eff&&(t=!0)},this),t},ha:function(){var t=!1;return this.Zr.cursors&&this.Zr.cursors.forEach(function(i){i.sound&&(t=!0)},this),t},aa:function(){var t,i=this.Zr.cursors;if(i&&i.length){(t=new _n({startTime:0})).addChild(new wn(this,"display",{startTime:0,duration:0,tweenParams:["none","block"],tweenType:yt.Qi}));for(var s=0;s<i.length;s++)for(var e=0;e<this.slide.Cs.h.length;e++){var n=0,h=i[s].points[e].length;2==h?n=2:4==h&&(n=1);for(var r=0;r<n;r++)i[s].points[e].push(i[s].points[e][0]),i[s].points[e].push(i[s].points[e][1]);0==s&&i[s].points[e].push(1)}var a=0;for(s=0;s<i.length;s++){var o=i[s],u=i[s+1],c=o.start,l=o.stop,f=o.move,d={};if(o.img){d.node=this.imageNode,d.slide=this.slide;var p=o.img.w,v=o.img.h,m=this.Zr.hl_size-o.img.hpx,b=this.Zr.hl_size-o.img.hpy,w=this.slide.prez().getResource(o.img.id+".png");t.addChild(new wn(d,"src",{startTime:a,duration:0,tweenParams:["",w],tweenType:yt.Qi})),t.addChild(new wn(d,"width",{startTime:a,duration:0,tweenParams:[0,p],tweenType:yt.Qi})),t.addChild(new wn(d,"height",{startTime:a,duration:0,tweenParams:[0,v],tweenType:yt.Qi})),t.addChild(new wn(d,"left",{startTime:a,duration:0,tweenParams:[0,m],tweenType:yt.Qi})),t.addChild(new wn(d,"top",{startTime:a,duration:0,tweenParams:[0,b],tweenType:yt.Qi}))}else 0==s&&(d.node=this.imageNode,d.slide=this.slide,t.addChild(new wn(d,"width",{startTime:a,duration:0,tweenParams:[0,0],tweenType:yt.Qi})),t.addChild(new wn(d,"height",{startTime:a,duration:0,tweenParams:[0,0],tweenType:yt.Qi})));var g=this.slide.prez().layoutIndex;if(void 0!=o.click&&o.click_eff){var _=this.Zr.pos[g][0]-this.Zr.hl_size,T=this.Zr.pos[g][1]-this.Zr.hl_size;t.addChild(new wn(this.ia,"left",{startTime:a+o.click,duration:0,tweenParams:[0,_+o.points[g][0]],tweenType:yt.Qi})),t.addChild(new wn(this.ia,"top",{startTime:a+o.click,duration:0,tweenParams:[0,T+o.points[g][1]],tweenType:yt.Qi})),t.addChild(new wn(this,"ceWidth",{startTime:a+o.click,duration:0,tweenParams:[0,o.click_eff.w],tweenType:yt.Qi})),t.addChild(new wn(this,"ceHeight",{startTime:a+o.click,duration:0,tweenParams:[0,o.click_eff.h],tweenType:yt.Qi})),t.addChild(new wn(this,"ceProgress",{startTime:a+o.click,duration:1e3,tweenParams:[0,100],tweenType:yt.ve})),t.addChild(new wn(this,"ceType",{startTime:a+o.click,duration:0,tweenParams:[0,o.click_eff.type],tweenType:yt.Qi})),t.addChild(new wn(this,"ceColor",{startTime:a+o.click,duration:0,tweenParams:[0,o.click_eff.color],tweenType:yt.Qi})),this.ra&&Us(t,this.ra,o.sound,a+o.click,o.sdur)}if(u){var y=[];for(e=0;e<o.points.length;e++){var k=o.points[e],x=u.points[e];y.push([k,x])}t.addChild(new wn(this,"position",{startTime:a+c,duration:f,tweenParams:[y[g],0],tweenType:yt.Ki,easing:qe.inOutQuad,relative:Je.ve}))}c>=0?a+=c+l+f:a=-1}a>0&&t.addChild(new wn(this,"display",{startTime:a,duration:0,tweenParams:["block","none"],tweenType:yt.Qi}))}return t}});Js(function(t,i){return new ge(t,i)},i.U);var _e=ts({$init:function(t){this.Ls=t,this.Ls.xs.re(this)},vs:function(t){},oa:function(t){},ua:function(){},la:function(){},fa:function(){},playbackRate:function(t){},volume:function(t){},muted:function(t){},cleanup:function(){this.Ls.xs.ae(this)},oe:function(){}}),Te=ts({$init:function(i,s,e){this.da="video"==s.nodeName.toLowerCase();var n=i.pa;this.va="",this.da?this.va=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.va=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.ma=i,this.ba=s,this.wa=e,this.ga=t(".ap-media-toolbar-bottom",this.va),this._a=t(".ap-media-play",this.va),this.Ta=t(".ap-media-mute",this.va),this.ya=t(".ap-media-fullscreen",this.va),this.ka=t(".ap-media-progressbar",this.va),this.xa=t(".ap-media-play-progress",this.va),this.Ea=t(".ap-media-progress-grabber",this.va),this.Sa=t(".ap-media-time-label",this.va),this.da&&(Zi.fullscreenEnabled()||Zi.isElementSupportFullscreen(s))||this.ya.hide();var h=s.style.cursor;h&&(this.va.style.cursor=h,this.Sa.css({cursor:h})),this.Ma=!0,this.Pa=!1,this.mute(s.muted),this.pause(s.paused||s.ended),this.Ia()},Ia:function(){var i=this,s=this.va,e=this.ba,n=this.Ta,h=this.ya,r=this.ka,a=this.Ea,o=this._a;this.da&&(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.Pa=!0}).on("mouseleave",function(){i.Pa=!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 Zi.fullscreenElement()==i.wa||e.webkitDisplayingFullscreen};r.on("mousedown",function(n){var h=u()?1:i.ma.$e,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.Ca=!0},drag:function(n,h){var a=h.position.left,o=this.offsetWidth/2,c=u()?1:i.ma.$e,l=n.pageX-r.position().left-t(s).offset().left-o*c-h.originalPosition.left*c;a=h.originalPosition.left+l/c,a=Math.max(Math.min(a,r[0].offsetWidth-o),-o),h.position.left=a;var f=(a+o)/r[0].offsetWidth;e.currentTime=f*e.duration,i.update()},stop:function(){i.Ca=!1;var t=u()?1:i.ma.$e,s=(this.offsetLeft+6*t)/r[0].offsetWidth;e.currentTime=s*e.duration}})},getNode:function(){return this.va},update:function(){var t=this.ka,i=this.xa,s=this.Ea,e=this.Sa,n=this.ba,h=t[0].offsetWidth,r=isNaN(n.duration)?0:n.currentTime/n.duration;i.css({transform:"scaleX("+r+")"}),this.Ca||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.Ma&&this.da&&(n.paused||this.Pa?n.currentTime>0&&this.show(!0,!0):(void 0===this.Ra&&(this.Ra=n.currentTime),n.currentTime-this.Ra>2&&this.show(!1)))},pause:function(t){var i=this._a,s=i.attr("data-value");(s=s?"false"===s:void 0)!==t&&i.attr("data-value",!t)},show:function(t,i){t!==this.Ma?this.ga&&(t||this.ba.paused||this.Pa?(this.ga.stop().fadeIn(),this._a.stop().fadeIn(0,.5),this.Ma=!0):(this.ga.fadeOut(500),this._a.fadeOut(500,0),this.Ma=!1,this.Ra=void 0)):i&&this._a.stop().fadeIn(0,.5)},mute:function(t){this.Ta.attr("aria-pressed",t?"true":"false").attr("data-value",t)},fullscreen:function(){Zi.fullscreenEnabled()?Zi.fullscreenElement()==this.wa?Zi.exitFullscreen():Zi.requestFullscreen(this.wa):Zi.isElementSupportFullscreen(this.ba)&&Zi.requestFullscreen(this.ba)},resize:function(){var t=this.va,i=this.ka,s=this.Ea,e=this.ba,n=isNaN(e.duration)?0:e.currentTime/e.duration;this.Ca||s.css({left:n*i[0].offsetWidth-6+"px"}),t.offsetWidth<200?t.setAttribute("size",200):t.removeAttribute("size")}}),ye=["error","ended","loadstart","durationchange","loadedmetadata","loadeddata","canplay","waiting","playing","canplaythrough","stalled","emptied","suspend"],ke=ts(_e,{$init:function(t,i){for(this.da=i,this.Aa=i?t.xs.Qs.pop():t.xs.js.pop();this.Aa.attributes.length>0;)this.Aa.removeAttribute(this.Aa.attributes[0].name);_e.prototype.$init.call(this,t),this.Na="",this.Da=0,this.Oa=void 0,this.La="stopped",this.Ya=!1,this.Fa=!1,this.Ua=!1,this.Xa=[],this.Ba=!1,this.Ha=!1,this.za=!1,this.Ga=!1,this.Va=!0,this.Wa=void 0,this.$a()},createToolbar:function(t){return this.ja=new Te(this.Ls.ui,this.Aa,t),this.ja.getNode()},getToolbar:function(){return this.ja},$a:function(){var t,i,s=this.Xa,e=this;for(t=0,i=ye.length;t<i;++t){var n=function(t){e.Qa(t)};s.push(n),this.Aa.addEventListener(ye[t],n)}var h=this;this.Ka=function(){h.qa()},this.Aa.addEventListener("timeupdate",this.Ka)},Ja:function(){var t,i,s=this.Xa;for(t=0,i=ye.length;t<i;++t)this.Aa.removeEventListener(ye[t],s[t]);s=[],this.Aa.removeEventListener("timeupdate",this.Ka),delete this.Ka},synchronizeWithPrez:function(t){if(!arguments.length)return this.Fa;this.Fa=t},backgroundAudio:function(t){if(!arguments.length)return this.Ua;this.Ua=t},ue:function(t){if(!this.Fa){var i=this.Aa;if(t){if(void 0===this.Za&&(this.Za=!i.paused),this.Za)try{i.pause()}catch(t){Ni("MediaPlayer::_onPrezPlayPause:"+this.Na+"|exception: "+t.toString())}}else{if(this.Za)try{var s=i.play();if(void 0!==s){var e=this;s.catch(function(t){Ni("MediaPlayer::_onPrezPlayPause|play error: "+t),"NotAllowedError"==t.name&&(e.za=!0)})}}catch(t){Ni("MediaPlayer::_onPrezPlayPause:"+this.Na+"|exception: "+t.toString())}delete this.Za}}},to:function(t){if(t!=this.Oa){var i=this.Ls;if(this.Oa=t,t)i.Ye();else if(Rs.Ws&&this.da&&!this.Ha){this.Ga=!0;try{var s=this.Aa.play();if(void 0!==s){var e=this;s.catch(function(t){Ni("MediaPlayer::_updateBufferingState|play error: "+t),"NotAllowedError"==t.name&&(e.za=!0)})}}catch(t){Ni("MediaPlayer::_updateBufferingState:"+this.Na+"|exception: "+t.toString())}}else i.Fe()}},Qa:function(t){if("loadeddata"==t.type){var i=this.Ls.xs;this.volume(i.volume()),this.muted(i.muted()),this.playbackRate(i.playbackRate()),void 0!==this.Wa&&this.oa(this.Wa||0)}if(!this.Ba&&this.Aa&&this.Fa){var s=this.Aa.readyState;if(Ni("MediaPlayer::_onPlayerEvent:"+this.Na+"|event: "+t.type+" | state: "+s),"error"==t.type)return this.Ba=!0,void this.to(!1);if("ended"==t.type)return this.Ha=!0,void this.to(!1);switch(s){case 0:case 1:case 2:this.to(!0);break;case 3:this.to(!!ks.browser.ie);break;case 4:this.to(!1);break;default:this.to(!0)}}},qa:function(t){if(Rs.Ws&&this.Ga){Ni("MediaPlayer::_onTimeUpdateEvent: "+this.Na),this.Ga=!1;try{this.Aa.pause()}catch(t){Ni("MediaPlayer::_onTimeUpdateEvent:"+this.Na+"|exception: "+t.toString())}this.Ls.Fe()}else this.ja&&this.ja.update()},io:function(){return this.Aa},Mh:function(t){this.Na=t},kn:function(t){this.Da=(0|t)/1e3},so:function(){return this.Da},eo:function(){return this.no},loadResource:function(t){void 0===t&&(t=-1),this.Ha=!0,this.to(!1),this.Ba=!1,this.Ha=!1,this.Ga=!1,this.Va=!0,this.Wa=void 0;try{this.no=t,this.Aa.src=-1!=t?this.Ls.getResource(t+"."+(this.da?Rs.Hs:Rs.Bs)):"",this.Aa.load()}catch(t){Ni("MediaPlayer::loadResource:"+this.Na+"|exception: "+t.toString())}},vs:function(t){if(!arguments.length)return this.La;this.La=t;try{if(Ni("MediaPlayer::state |"+this.Na+"|"+t),"stopped"==t)this.Aa.pause();else if(!this.Ya){var i=this.Aa.play();if(void 0!==i){var s=this;i.catch(function(t){Ni("MediaPlayer::state|play error: "+t),"NotAllowedError"==t.name&&(s.za=!0)})}this.Ha=!1}}catch(t){Ni("MediaPlayer::state Set Exception | "+this.Na+"|"+t.toString())}},oa:function(t){if(arguments.length){if(!this.Va)return;var i=this.Aa.readyState,s=t*this.Da;if(0==i)return Ni("MediaPlayer::_ts Media Not Ready | "+this.Na+"|"+s+"| set failed"),void(this.Wa=t);this.Va=!1,this.Wa=void 0;try{Ni("MediaPlayer::_ts |"+this.Na+"|"+s+"| set");var e=this.Aa.currentTime;e<.2&&s-e>=0&&s-e<.2?Ni("MediaPlayer::_ts |"+this.Na+"|"+s+"| difference too small"):this.Aa.currentTime=s}catch(t){Ni("MediaPlayer::_ts Set Exception | "+this.Na+"|"+t.toString())}}else try{return 0==this.Da?0:this.Aa.currentTime/this.Da}catch(t){return Ni("MediaPlayer::_ts Get Exception | "+this.Na+"|"+t.toString()),0}},ua:function(){this.Va=!0},la:function(){if(Ni("MediaPlayer::_timelinePlay | "+this.Na),(!this.Ua||!this.Ls.allPaused())&&this.Ya&&(this.Ya=!1,"stopped"!=this.La&&!this.Ha))try{var t=this.Aa.play();if(void 0!==t){var i=this;t.catch(function(t){Ni("MediaPlayer::_timelinePlay|play error: "+t),"NotAllowedError"==t.name&&(i.za=!0)})}}catch(t){Ni("MediaPlayer::_timelinePlay Exception | "+this.Na+"|"+t.toString())}},fa:function(){if(Ni("MediaPlayer::_timelinePause | "+this.Na),(!this.Ua||this.Ls.allPaused())&&!this.Ya&&(this.Ya=!0,!this.Ha))try{this.Aa.pause()}catch(t){Ni("MediaPlayer::_timelinePause Exception | "+this.Na+"|"+t.toString())}},seek:function(t){t|=0,Ni("MediaPlayer::seek |"+this.Na+"|"+t);try{var i=this.Aa.currentTime;if(i-t>=0&&i-t<.01)return void Ni("MediaPlayer::seek |"+this.Na+"|"+i+"| too small difference");this.Aa.currentTime=t}catch(t){Ni("MediaPlayer::seek Exception | "+this.Na+"|"+t.toString())}},playbackRate:function(t){if(!arguments.length)return this.Aa.playbackRate;try{this.Aa.playbackRate=t,this.Aa.defaultPlaybackRate=t}catch(t){Ni("MediaPlayer::playbackRate Exception | "+this.Na+"|"+t.toString())}return this},volume:function(t){if(!arguments.length)return this.Aa.volume;try{t<0&&(t=0),t>1&&(t=1),this.Aa.volume=t,Ni("MediaPlayer::volume | "+this.Na+"| set: "+t+"| get: "+this.Aa.volume)}catch(t){Ni("MediaPlayer::volume Exception | "+this.Na+"|"+t.toString())}return this},muted:function(t){if(!arguments.length)return this.Aa.muted;try{this.Aa.muted=t}catch(t){Ni("MediaPlayer::muted Exception | "+this.Na+"|"+t.toString())}return this},cleanup:function(){_e.prototype.cleanup.call(this);var t=this.Aa;if(t){this.Ha=!0,this.to(!1),this.Ja(),this.Aa=null;try{t.paused||t.pause()}catch(t){Ni("MediaPlayer::cleanup Exception | "+this.Na+"|"+t.toString())}this.da?this.Ls.xs.Qs.unshift(t):this.Ls.xs.js.unshift(t)}},oe:function(){if(this.za){if(this.za=!1,this.Va=!0,this.Ya)return;if("stopped"==this.La)return;var t=this.Aa;if(!t)return;try{var i=t.play();void 0!==i&&i.catch(function(t){Ni("MediaPlayer::_updateUnmute|play error: "+t)})}catch(t){Ni("MediaPlayer::_updateUnmute Exception | "+this.Na+"|"+t.toString())}}}}),xe=ts(Ks,{$init:function(i,s){Ks.prototype.$init.call(this,i,s),this.xn=new ke(i.Ls,!1);var n=this.xn,h=n.io(),r=h.style,a=this.node,o=this;a.appendChild(h),this.Aa=h,void 0!==this.Zh&&(r.cursor=this.Zh),r.width="100%",r.height="100%",r.pointerEvents="auto",s.f&e.gt&&(a.appendChild(n.createToolbar(a)),a.style.pointerEvents="auto",t(this.node).on("mousedown",function(t){o.filterEvent(t)||ds(t,!0)})),s.f&e.ot&&h.setAttribute("loop",""),n.Mh(s.n),n.kn(s.md),n.synchronizeWithPrez(s.f&e.wt),n.backgroundAudio(s.f&e.ut),n.loadResource(s.mi)},cursor:function(t){return Ks.prototype.cursor.call(this,t),this.Aa&&(this.Aa.style.cursor=t),this},onResized:function(t,i){Ks.prototype.onResized.call(this,t,i),this.xn&&this.xn.ja&&this.xn.ja.resize()},html:le});Js(function(t,i){return new xe(t,i)},i._);var Ee=!1,Se=ts(Ks,{$init:function(i,s){Ks.prototype.$init.call(this,i,s);var n,h,r,a=this.node,o=this;if(this.xn=new ke(i.Ls,!0),r=(h=(n=this.xn).io()).style,a.appendChild(h),r.pointerEvents="auto",r.position="absolute",r.top="0px",r.left="0px",s.f&e.wt&&void 0!==s.mi){var u,c=Ei.createElement("img"),l=c.style;u=i.Ls.getImgResource(i.Cs.i+"."+this.Cs.i),u+=this.Cs.g?".png":".jpg",c.src=u,l.position="absolute",l.left="0px",l.top="0px",l.width="100%",l.height="100%",l.pointerEvents="auto",a.appendChild(c),this.ho=c,this.ro(!0)}n&&(s.f&e.gt&&(a.appendChild(n.createToolbar(a)),a.style.pointerEvents="auto",t(this.node).on("mousedown",function(t){o.filterEvent(t)||ds(t,!0)})),s.f&e.ot&&h.setAttribute("loop",""),h.setAttribute("playsinline",""),n.Mh(s.n),n.kn(s.md),n.synchronizeWithPrez(s.f&e.wt),n.loadResource(s.mi),this.Cs.g&&(r.width="1px",r.height="1px",r[qi]="",r[Ki]="",this.ao=function(){o.oo(!0)},this.uo=function(){o.oo(!1)},h.addEventListener("play",this.ao),h.addEventListener("pause",this.uo),h.addEventListener("ended",this.uo)),this.co=function(){var i=Zi.fullscreenElement(),s=t(o.node);i==o.node?s.hasClass("ap-fullscreen")||(s.addClass("ap-fullscreen"),o.bn()):s.hasClass("ap-fullscreen")&&(s.removeClass("ap-fullscreen"),o.bn())},Zi.addEventListener("fullscreenchange",this.co,!1))},oo:function(t){if(Ni("Update green screen: "+t),t){if(!this.lo){var i=this;this.lo=setInterval(function(){i.fo()},100)}}else this.lo&&(clearInterval(this.lo),delete this.lo)},ro:function(t){var i,s=this.xn,e=this.ho;if(s&&e&&(i=s.io()))if(t){if(e.style.display="block",!this.do){var n=this;this.do=function(){n.ro(!1)},i.addEventListener("timeupdate",this.do)}}else e.style.display="none",this.do&&(i.removeEventListener("timeupdate",this.do),delete this.do)},createNode:function(){var t=Ks.prototype.createNode.call(this),i=this.Cs;if(i.g){var s=Ei.createElement("canvas"),e=s.style;t.appendChild(s),this.po=s,zi(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){Ks.prototype.onResized.call(this,t,i),this.vo()},vo:function(){if(!this.Cs.g&&this.xn){var t=this.node.offsetWidth,i=this.node.offsetHeight,s=this.Cs.v_w,e=this.Cs.v_h,n=this.xn.io(),h=this.xn.getToolbar(),r=n.style,a=Zi.fullscreenElement()==this.node;t<=0||i<=0||s<=0||e<=0||(oi(s/e-t/i)>.01&&!a?(r[qi]="0% 0%",r[Ki]="scaleX("+t/s+") scaleY("+i/e+")",r.width="",r.height=""):(r.width="100%",r.height="100%",ks.browser.chrome?(r[qi]="0% 0%",r[Ki]="scaleX(1) scaleY(1)"):(r[qi]="",r[Ki]="")),h&&h.resize())}},cleanup:function(){if(this.ro(!1),Zi.removeEventListener("fullscreenchange",this.co,!1),this.Cs.g&&this.xn){var t=this.xn.io();t&&(t.removeEventListener("play",this.ao),t.removeEventListener("pause",this.uo),t.removeEventListener("ended",this.uo)),this.oo(!1)}return Ks.prototype.cleanup.call(this)},fo:function(){var t,i,s,e,n,h,r,a,o,u,c,l,f,d=this.Cs.g,p=this.po;if(d&&this.xn&&(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,l=(255&h)-r,f=(255&h)+r,t.drawImage(this.xn.io(),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]>l&&s[e+2]<f&&(s[e+3]=0);t.putImageData(i,0,0)}catch(t){Ee||(Ee=!0,"file:"==window.location.protocol&&alert(this.prez().ui.Fs.text("GreenScreenError")))}}},cursor:function(t){return Ks.prototype.cursor.call(this,t),this.node.style.cursor=t,this},html:le});Js(function(t,i){return new Se(t,i)},i.T);var Me=ts({$init:function(t){this.xn=new ke(t,!0),this.xn.io().setAttribute("playsinline",""),this.xn.synchronizeWithPrez(!0),this.xn.muted=function(t){var i=ke.prototype.muted;return arguments.length?((t||!t&&this.Ls.sidebarVisible())&&i.call(this,t),this):i.call(this)},this.node=null,this.mo=0},appendTo:function(t){this.node=t,this.node.appendChild(this.xn.io())},cleanup:function(){this.xn&&(this.xn.cleanup(),this.xn=null,this.node&&(this.node.parentNode&&this.node.parentNode.removeChild(this.node),this.node=null))},muted:function(t){if(!arguments.length)return this.xn.muted();this.xn.muted(t)},aspectRatio:function(t){if(!arguments.length)return this.mo;this.mo=t},bn:function(){}}),Pe=-1,Ie=0,Ce=1,Re=2,Ae=3,Ne=5,De=ts(_e,{$init:function(t,i,s){_e.prototype.$init.call(this,t),this.Wn=i,this.Na="",this.Da=3600,this.Oa=void 0,this.La="stopped",this.Ya=!1,this.Ba=!1,this.Ha=!1,this.Va=!0,this.bo=!1,this.wo=void 0;var e,n=i._o,h={rel:0,showinfo:0,autoplay:0,playsinline:1},r=this;this.To=s.auto_play,!0===s.play_range?(this.yo=(s.start_time||0)/1e3,this.ko=(s.stop_time||0)/1e3):(this.yo=0,this.ko=0),h.controls=s.hide_controls?0:1,h.iv_load_policy=s.hide_annotations?3:1,h.start=this.yo,this.ko>0&&(h.end=this.ko),e=new YT.Player(n,{height:"100%",width:"100%",videoId:s.youtube_id,playerVars:h,events:{onReady:function(){r.xo()},onStateChange:function(){r.Eo()},onError:function(){r.So()}}}),this.Mo=e},Mh:function(t){this.Na=t},Po:function(t){switch(t){case Pe:return"unstarted";case Ie:return"ended";case Ce:return"playing";case Re:return"paused";case Ae:return"buffering";case Ne:return"videocued";default:return"invalid"}},ue:function(t){if(this.bo&&!this.To){var i=this.Mo;if(t){if(void 0===this.Za&&(this.Za=i.getPlayerState()==Ce),this.Za)try{i.pauseVideo()}catch(t){Ni("MediaPlayer::_onPrezPlayPause:"+this.Na+"|exception: "+t.toString())}}else{if(this.Za)try{i.playVideo()}catch(t){Ni("MediaPlayer::_onPrezPlayPause:"+this.Na+"|exception: "+t.toString())}delete this.Za}}},to:function(t){if(t!=this.Oa){var i=this.Ls;this.Oa=t,t?i.Ye():i.Fe()}},vs:function(t){if(!arguments.length)return this.La;if(this.La=t,this.bo)try{Ni("YouTubeMediaPlayer::state |"+this.Na+"|"+t),"stopped"==t?this.Mo.pauseVideo():this.Ya||(this.Mo.playVideo(),this.Ha=!1)}catch(t){Ni("YouTubeMediaPlayer::state Set Exception | "+this.Na+"|"+t.toString())}},oa:function(t){var i=this.Mo;if(arguments.length){if(!this.bo)return;if(!this.Va)return;var s,e;this.Va=!1,s=t/1e3*this.Da+this.yo;try{(e=i.getCurrentTime())-s>-1&&e-s<1?Ni("YouTubeMediaPlayer::_ts |"+this.Na+"|"+e+"| too small difference"):(Ni("YouTubeMediaPlayer::_ts |"+this.Na+"|"+s+"| set"),s>=(this.ko>0?this.ko:i.getDuration())-1?(Ni("YouTubeMediaPlayer::_ts seek ts is larger than duration | "+this.Na+"|"+s),i.stopVideo(),this.Ha=!0,this.to(!1)):i.seekTo(s,!0))}catch(t){Ni("YouTubeMediaPlayer::_ts Set Exception | "+this.Na+"|"+t.toString())}}else try{return 0==this.Da?0:this.bo?(i.getCurrentTime()-this.yo)/this.Da:0}catch(t){return Ni("YouTubeMediaPlayer::_ts Get Exception | "+this.Na+"|"+t.toString()),0}},ua:function(){this.Va=!0},la:function(){if(Ni("YouTubeMediaPlayer::_timelinePlay | "+this.Na),this.Ya&&(this.Ya=!1,"stopped"!=this.La&&this.bo&&!this.Ha))try{this.Mo.playVideo()}catch(t){Ni("YouTubeMediaPlayer::_timelinePlay Exception | "+this.Na+"|"+t.toString())}},fa:function(){if(Ni("YouTubeMediaPlayer::_timelinePause | "+this.Na),!this.Ya&&(this.Ya=!0,this.bo&&!this.Ha))try{this.Mo.pauseVideo()}catch(t){Ni("YouTubeMediaPlayer::_timelinePause Exception | "+this.Na+"|"+t.toString())}},playbackRate:function(t){if(!arguments.length)return this.bo?this.Mo.getPlaybackRate():1;try{if(!this.bo)return;this.Mo.setPlaybackRate(t)}catch(t){Ni("YouTubeMediaPlayer::playbackRate Exception | "+this.Na+"|"+t.toString())}return this},volume:function(t){if(!arguments.length)return this.bo?this.Mo.getVolume()/100:1;try{if(!this.bo)return;t<0&&(t=0),t>1&&(t=1),this.Mo.setVolume(100*t)}catch(t){Ni("YouTubeMediaPlayer::volume Exception | "+this.Na+"|"+t.toString())}return this},muted:function(t){if(!arguments.length)return!!this.bo&&this.Mo.isMuted();try{if(!this.bo)return;t?this.Mo.mute():this.Mo.unMute()}catch(t){Ni("YouTubeMediaPlayer::muted Exception | "+this.Na+"|"+t.toString())}return this},xo:function(){if(Ni("YouTubeMediaPlayer::_onPlayerReady | "+this.Na),this.bo)Ni("YouTubeMediaPlayer::_onPlayerReady repeated state| "+this.Na);else{this.bo=!0;var t=this.Ls.xs;this.volume(t.volume()),this.muted(t.muted()),this.playbackRate(t.playbackRate()),"playing"!=this.La||this.Ya?this.Mo.pauseVideo():this.Mo.playVideo()}},Eo:function(){if(!this.Ba&&this.Mo){var t=this.Mo.getPlayerState();if(Ni("YouTubeMediaPlayer::_onPlayerStateChanged | "+this.Na+"|"+this.Po(t)),this.To)switch(t){case Pe:case Ne:this.to(!1);break;case Ie:this.Ha=!0,this.to(!1);break;case Ce:case Re:this.to(!1);break;case Ae:this.Ha?this.to(!1):this.to(!0)}}},So:function(){this.Ba=!0,this.Mo&&this.To&&this.to(!1)},cleanup:function(){_e.prototype.cleanup.call(this),this.Mo&&(this.Ha=!0,this.bo=!1,this.to(!1),this.Mo=null)}}),Oe=ts(Ks,{$init:function(t,i){if(Ks.prototype.$init.call(this,t,i),ks.youtubeAPIState==St&&(this.xn=new De(t.Ls,this,i.YT_params),this.xn.Mh(i.n)),i.YT_params.disable_scaling){var s,e=this.prez(),n=this;this.Io=function(){n.Co()},e&&e.ui&&(s=e.ui.canvas())&&s.on("ap-scaleChanged",this.Io)}},createNode:function(){var t=Ks.prototype.createNode.call(this),i=Ei.createElement("div"),s=Ei.createElement("div"),e=i.style;return t.style.overflow="hidden",e.pointerEvents="auto",e.position="absolute",e.left="0px",e.top="0px",e.width="100%",e.height="100%",e.border="none",t.appendChild(i),this.Aa=i,i.appendChild(s),this._o=s,t},Co:function(){if(this.Aa){var t,i=this.node.offsetWidth,s=this.node.offsetHeight,e=this.prez(),n=this.Aa.style;t=e?e.$e():1,n.width=i*t+"px",n.height=s*t+"px",n[qi]=1==t?"":"0% 0%",n[Ki]=1==t?"":"scale("+1/t+", "+1/t+")"}},cleanup:function(){if(this.Cs.YT_params.disable_scaling){var t,i=this.prez();i&&i.ui&&(t=i.ui.canvas())&&t.off("ap-scaleChanged",this.Io),delete this.Io}return Ks.prototype.cleanup.call(this)},html:le});Js(function(t,i){return new Oe(t,i)},i.R);var Le=ts(Ks,{$init:function(t,i){Ks.prototype.$init.call(this,t,i);var s,e,n=this.frameNode,h=i.web_params;if(h.address?(s=this,n.onload=function(){s.Ro},n.onerror=function(){s.Ao},this.No=setTimeout(function(){s.Do()},2e4),n.src=h.address):"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)),i.web_params.disable_scaling){var r,a=this.prez(),o=this;this.Io=function(){o.Co()},a&&a.ui&&(r=a.ui.canvas())&&r.on("ap-scaleChanged",this.Io)}},createNode:function(){var t=Ks.prototype.createNode.call(this),i=Ei.createElement("iframe"),s=i.style,e=this.Cs.web_params.scrolling;return s.pointerEvents="auto",s.position="absolute",s.left="0px",s.top="0px",s.width="100%",s.height="100%",s.border="none",s.overflow=e?"auto":"hidden",zi(i,{scrolling:e?"auto":"no"}),t.appendChild(i),this.frameNode=i,t},Ro:function(){clearTimeout(this.No)},Ao:function(){clearTimeout(this.No)},Do:function(){},Co:function(){var t,i=this.node.offsetWidth,s=this.node.offsetHeight,e=this.prez(),n=this.frameNode.style;t=e?e.$e():1,n.width=i*t+"px",n.height=s*t+"px",n[qi]=1==t?"":"0% 0%",n[Ki]=1==t?"":"scale("+1/t+", "+1/t+")"},cleanup:function(){if(this.Cs.web_params.disable_scaling){var t,i=this.prez();i&&i.ui&&(t=i.ui.canvas())&&t.off("ap-scaleChanged",this.Io),delete this.Io}return clearTimeout(this.No),Ks.prototype.cleanup.call(this)},html:le});Js(function(t,i){return new Le(t,i)},i.N);var Ye=ts(fe,{$init:function(s,e){e=e||{},this.Ls=s,this.zh={0:this},this.Gh={},this.Rn=[],this.fn=[],this.Ch=1,e.isBackground||(this.be=new yn({startTime:e.st||0}),this.gs(this.be)),this.Oo=[],fe.prototype.$init.call(this,this,e);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%",n.overflow="hidden",!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:kt.Demo|kt.Tutorial|kt.Practice|kt.Test}])),this.background=new Ye(s,a)}if(e.isBackground)n.zIndex=h?_t.Vi:_t.Li,n.height=e.h[s.layoutIndex]+"px";else{if(e.isTop?n.zIndex=_t.Ui:e.isBottom?n.zIndex=_t.Yi:(n.zIndex=h?_t.Wi:_t.Fi,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.length){var o=kt[this.Ls.options.playMode];if((s.Cs.cc.modes&o)==o){if(!s.hn){var u={};u.fill=s.Cs.cc.fill,u.textStyle=s.Cs.cc.textStyle,u.margin=s.Cs.cc.margin;var c=new te(this,u);s.hn=c;var l=s.ui.canvas();l&&l.append(c.node)}s.hn.slide=this;for(var f=new _n({startTime:0}),d=0;d<e.ca.length;d++){var p=e.ca[d];0==d&&p.startTime>0&&f.addChild(new wn(this.Ls.hn,"display",{startTime:0,duration:0,tweenParams:["block","none"],tweenType:yt.Qi})),f.addChild(new wn(this.Ls.hn,"display",{startTime:p.startTime,duration:0,tweenParams:["none","block"],tweenType:yt.Qi})),f.addChild(new wn(this.Ls.hn,"ccNode",{startTime:p.startTime,duration:0,tweenParams:["",p.text],tweenType:yt.Qi})),f.addChild(new wn(this.Ls.hn,"display",{startTime:p.startTime+p.duration,duration:0,tweenParams:["block","none"],tweenType:yt.Qi}))}this.be.addChild(f)}}else r&&s.hn&&(s.hn.slide=this,this.be.addChild(new wn(s.hn,"display",{startTime:0,duration:0,tweenParams:["block","none"],tweenType:yt.Qi})));if(this.Lo=void 0,e.cp&&void 0!==e.cp.m){o=kt[this.Ls.options.playMode];if((e.cp.m&o)==o){var v=new ge(this,e.cp);this.node&&(this.node.appendChild(v.node),v.ia&&this.node.appendChild(v.ia.node)),-1!=e.cp.hl_type&&(v.node.style.borderRadius=0===e.cp.hl_type?"50%":0,v.node.style.backgroundColor=Gi(e.cp.hl_color)),this.Lo=v}}}if(h?t(".ap-feedback-slides",s.container)[0].appendChild(this.node):t(".ap-slides",s.container)[0].appendChild(this.node),!e.isBackground){this.bn(),this.restore();var m=new ve(s,this);o=kt[this.Ls.options.playMode];if(e.i>=0)(f=ks.createZoomAndPan(m,e.z,s.layoutIndex,o))&&this.be.addChild(f);if(this.Lo)(f=this.Lo.aa())&&this.be.addChild(f);var b,w,g,_,T,y,k,x,E,S=e.tl||[];for(g=0,y=S.length;g<y;++g){for(b=S[g],0===g?E=this.be:(E=new yn,this.gs(E)),E.id=b[0],E.name=b[1],_=0,k=(b=b[2]||[]).length;_<k;++_)if(w=b[_],m=this.object(w[0])){for(T=0,x=(w=w[1]||[]).length;T<x;++T)if(ks.createEffect&&(f=ks.createEffect.apply(ks,[m].concat(w[T]))))switch(w[T][0]){case ks.EffectType.PAUSE:case ks.EffectType.TIME_OUT:"Demo"!==s.options.playMode&&(f.startTime(f.startTime()+e.st),s.be.addChild(f),m.gs(f));break;default:E.addChild(f)}}else Ni("Object not found: "+w[0]);this.Oo.push(E),E.setup()}}},onLayoutSwitched:function(){var t=this.Cs.h[this.Ls.layoutIndex];this.node.clientHeight!=t&&this.height(t);var i=this.node.clientWidth,s=this.node.clientHeight;if(i!=this.Eh||s!=this.Sh){var e=i-this.Eh,n=s-this.Sh;this.children;this.Eh=i,this.Sh=s,Ks.prototype.onResized.call(this,e,n)}Ks.prototype.onLayoutSwitched.call(this),this.background&&this.background.onLayoutSwitched(),this.Ls.hn&&this.Ls.hn.onResized(0,0)},object:function(t){return(typeof t===ni?this.Gh[t]:this.zh[t])||null},timeline:function(t){if(!arguments.length)return this.be;var i,s,e=typeof t===ni?"name":"id";for(i=0,s=this.Oo.length;i<s;++i)if(this.Oo[i][e]===t)return this.Oo[i];return null},timelines:function(){return this.Oo},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(),Ks.prototype.cleanup.call(this)},bn:function(){Ks.prototype.bn.call(this),this.Uh||(this.Uh=0),this.Uh>10?Ni("Recursive checking resized: "+this.name()):(++this.Uh,this.Ls.hn&&this.Ls.hn.slide==this&&this.Ls.hn.onResized(0,0),this.background&&this.background.bn(),--this.Uh)},savedData:function(t){var i=this.Ls.Ps.slides,s=i[this.Cs.index];return t&&!s&&(s=i[this.Cs.index]={}),s},fillSolid:function(t,i,s,e){return this.background&&this.background.shape.fillSolid(t,i,s,e),this}}),Fe={0:[function(t,i,s,e){this.addRect(t,i,s,e)}],1:[function(t,i,s,e,n){var h=n[0]*li(s/2,e/2);this.addRoundedRect(t,i,s,e,h,h)},function(t,i,s){var e=s[0]*li(t/2,i/2),n=bi(e*(1-ui(2)/2));return[n,n,n,n]}],2:[function(t,i,s,e,n){Xe(this,t,i,s,e,n,!1)}],3:[function(t,i,s,e,n){Xe(this,t,i,s,e,n,!0)},function(t,i){var s=.2*li(t,i),e=bi(s*(1-ui(2)/2));return[e,e,e,e]}],4:[function(t,i,s,e,n){var h=t+Di(s-li(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=Di(t-li(t,i)*s[0],0,t),n=i/2*s[1];return[0,n,i<=0?0:bi((t-e)*(i-2*n)/i),n]}],5:[function(t,i,s,e,n){var h=t+Di(li(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=Di(li(t,i)*s[0],0,t),n=i/2*s[1];return[e-(i<=0?0:bi(e*(i-2*n)/i)),n,0,n]}],6:[function(t,i,s,e,n){var h=i+Di(li(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=Di(li(t,i)*s[0],0,i),n=t/2*s[1];return[n,e-(t<0?0:bi(e*(t-2*n)/t)),n,0]}],7:[function(t,i,s,e,n){var h=Di(e-li(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=Di(i-li(t,i)*s[0],0,i),n=t/2*s[1];return[n,0,n,t<=0?0:bi((i-e)*(t-2*n)/t)]}],8:[function(t,i,s,e,n){var h=t+s/2*(1+n[0]),r=i+e/2*(1+n[1]),a=mi(n[1],n[0]),o=a-13*ai/180,u=a+14*ai/180;this.moveTo(h,r).lineTo(t+s/2+s/2*di(o),i+e/2+e/2*pi(o)).arcTo(s/2,e/2,t+s/2+s/2*di(u),i+e/2+e/2*pi(u),!0,!1).closeSubpath()},function(t,i){var s=1-ui(2)/2,e=bi(t*s/2),n=bi(i*s/2);return[e,n,e,n]}],9:[function(t,i,s,e,n){var h=n[0]*li(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]*li(t/2,i/2);return[e,e,e,e]}],10:[function(t,i,s,e){this.addEllipse(t+s/2,i+e/2,s/2,e/2)},function(t,i){var s=1-ui(2)/2,e=bi(t*s/2),n=bi(i*s/2);return[e,n,e,n]}],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=bi(t/4),e=bi(i/4);return[s,e,s,e]}],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=bi(t/8),e=bi(i/4);return[s,e,s,e]}],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=bi(s[0]*t/2),n=bi(i*(s[1]/2));return[e,n,e,n]}],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=bi(t*(s[0]/2)),n=bi(s[1]*i/2);return[e,n,e,n]}],16:[function(t,i,s,e,n){var h=n[0]*s,r=n[1]*e,a=li(n[2],n[0])*s,o=fi(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,bi(t*(1-li(s[2],s[0]))),0]}],17:[function(t,i,s,e,n){var h=n[1]*s,r=n[2]*e,a=fi(n[0],n[1])*s,o=li(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,bi(i*(1-li(s[2],s[3])))]}],18:[function(t,i,s,e,n){var h=n[0]*s,r=n[1]*e,a=fi(n[2],n[0])*s,o=fi(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[bi(fi(s[2],s[0])*t),0,0,0]}],19:[function(t,i,s,e,n){var h=n[1]*s,r=n[2]*e,a=fi(n[0],n[1])*s,o=fi(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,bi(fi(s[2],s[3])*i),0,0]}],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[bi(t*(1-e)/2),bi(i/2*n),bi(t-t*((1-e)*n+e)),bi(i/2*n)]}],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[bi(t*(1-e)),0,bi(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[bi(t*e/2),bi(i/2),bi((1-e)*t/2),0]}],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[bi(1*t/10),bi(6*i/10),bi(4*t/10),bi(1*i/10)]}],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[bi(.2*t),0,bi(.2*t),0]}],25:[function(t,i,s,e,n){this.moveTo(t+s/2,i).lineTo(t+s,i+e/2*(1-di(2*ai/4.7))).lineTo(t+s/2+s/2/di(2*ai/20)*pi(2*ai/10),i+e).lineTo(t+s/2-s/2/di(2*ai/20)*pi(2*ai/10),i+e).lineTo(t,i+e/2*(1-di(2*ai/4.7))).closeSubpath()},function(t,i){return[bi(t/4),bi(i/4),bi(t/4),bi(i/4)]}],26:[function(t,i,s,e,n){var h=n[0]*li(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=ci(3,s[0]),n=bi(e*li(t/10,i/10));return[n,n,n,n]}],27:[function(t,i,s,e,n){var h=n[0]*li(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]*li(t/2,i/2);return[e,e,e,e]}],28:[function(t,i,s,e,n){var h=n[0]*li(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=bi(s[0]*li(t/2,i/2)*di(ai/4));return[e,e,e,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[bi(.2*t),bi(.25*i),bi(.2*t),bi(.35*i)]}],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[bi(t*s[0]/3),bi(i*(1-s[0])/2),bi(t*(1-s[0])),bi(i*(1-s[0])/2)]}],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]}],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]}],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]}],48:[function(t,i,s,e,n){var h=Di(n[0]*li(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,Di(s[0]*li(t,i),0,t)/2,0]}],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]}],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*oi(e),2.2*n,2*oi(e),2.2*n]}],52:[function(t,i,s,e,n,h){!function(t,i,s,e,n,h,r){var a,o=He(r),u=o.cXs,c=o.cYs,l=o.minX,f=o.minY,d=o.maxX,p=o.maxY,v=e/(d-l),m=n/(p-f);for(t.moveTo(i+(u[0]-l)*v,s+(c[0]-f)*m).lineTo(i+(u[1]*h-l)*v,s+(c[1]*h-f)*m),a=1;a<r;++a)t.lineTo(i+(u[2*a]-l)*v,s+(c[2*a]-f)*m).lineTo(i+(u[2*a+1]*h-l)*v,s+(c[2*a+1]*h-f)*m);t.closeSubpath()}(this,t,i,s,e,n[0],h)},function(t,i,s,e){var n=He(e),h=n.cXs,r=n.cYs,a=n.minX,o=n.minY,u=n.maxX,c=n.maxY,l=s[0],f=t/(u-a),d=i/(c-o),p=0,v=0;if(5===e)return[p=t-(h[1]*l-a)*f,v=(r[1]*l-o)*d,p,i-(r[5]*l-o)*d];switch(e){case 4:case 6:case 8:p=t-(h[1]*l-a)*f,v=(r[1]*l-o)*d;break;case 12:p=t-(h[3]*l-a)*f,v=(r[3]*l-o)*d;break;case 24:p=t-(h[5]*l-a)*f,v=(r[5]*l-o)*d}return[p,v,p,v]}]},Ue=ts({$init:function(){this.Yo=""},path:function(t){return arguments.length?(this.Yo=t,this):this.Yo},clear:function(){return this.Yo="",this},addPath:function(t){return this.Yo+=" "+t,this},moveTo:function(t,i){return this.Yo+=" M"+t+","+i,this},lineTo:function(t,i){return this.Yo+=" L"+t+","+i,this},arcTo:function(t,i,s,e,n,h){return this.Yo+=" A"+t+","+i+" 0 "+(n?1:0)+","+(h?1:0)+" "+s+","+e,this},cubicTo:function(t,i,s,e,n,h){return this.Yo+=" C"+t+","+i+" "+s+","+e+" "+n+","+h,this},quadraticTo:function(t,i,s,e){return this.Yo+=" Q"+t+","+i+" "+s+","+e,this},closeSubpath:function(){return this.Yo+=" 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=wi(i/3))?2:1==e?3:5)*s,t){case D.ARROW:this.moveTo(0,0).lineTo(n,-h/2).lineTo(n,h/2).closeSubpath();break;case D.OPEN:var r=mi(h/2,n),a=wi(s/pi(r)/2);this.moveTo(n+a,-h/2).lineTo(a,0).lineTo(n+a,h/2);break;case D.STEALTH:this.moveTo(0,0).lineTo(n,-h/2).lineTo(n/2,0).lineTo(n,h/2).closeSubpath();break;case D.DIAMOND:this.moveTo(-n/2,0).lineTo(0,-h/2).lineTo(n/2,0).lineTo(0,h/2).closeSubpath();break;case D.OVAL:this.addEllipse(0,0,n/2,h/2)}return this}});function Xe(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),l=r?.2*li(e,n):0;t.moveTo(i+l,s),a<=0&&o<=0&&oi(a)<=oi(o)?(t.lineTo(i+.2*e,s).lineTo(u,c).lineTo(i+.4*e,s).lineTo(i+e-l,s),r&&t.arcTo(l,l,i+e,s+l,!1,!0),t.lineTo(i+e,s+n-l),r&&t.arcTo(l,l,i+e-l,s+n,!1,!0),t.lineTo(i+l,s+n),r&&t.arcTo(l,l,i,s+n-l,!1,!0),t.lineTo(i,s+l),r&&t.arcTo(l,l,i+l,s,!1,!0)):a<=0&&o<=0&&oi(a)>oi(o)?(t.lineTo(i+e-l,s),r&&t.arcTo(l,l,i+e,s+l,!1,!0),t.lineTo(i+e,s+n-l),r&&t.arcTo(l,l,i+e-l,s+n,!1,!0),t.lineTo(i+l,s+n),r&&t.arcTo(l,l,i,s+n-l,!1,!0),t.lineTo(i,s+4*n/10).lineTo(u,c).lineTo(i,s+2*n/10),r&&t.arcTo(l,l,i+l,s,!1,!0)):a>0&&o<=0&&oi(a)<=oi(o)?(t.lineTo(i+6*e/10,s).lineTo(u,c).lineTo(i+8*e/10,s).lineTo(i+e-l,s),r&&t.arcTo(l,l,i+e,s+l,!1,!0),t.lineTo(i+e,s+n-l),r&&t.arcTo(l,l,i+e-l,s+n,!1,!0),t.lineTo(i+l,s+n),r&&t.arcTo(l,l,i,s+n-l,!1,!0),t.lineTo(i,s+l),r&&t.arcTo(l,l,i+l,s,!1,!0)):a>0&&o<=0&&oi(a)>oi(o)?(t.lineTo(i+e-l,s),r&&t.arcTo(l,l,i+e,s+l,!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-l),r&&t.arcTo(l,l,i+e-l,s+n,!1,!0),t.lineTo(i+l,s+n),r&&t.arcTo(l,l,i,s+n-l,!1,!0),t.lineTo(i,s+l),r&&t.arcTo(l,l,i+l,s,!1,!0)):a<=0&&o>0&&oi(a)>oi(o)?(t.lineTo(i+e-l,s),r&&t.arcTo(l,l,i+e,s+l,!1,!0),t.lineTo(i+e,s+n-l),r&&t.arcTo(l,l,i+e-l,s+n,!1,!0),t.lineTo(i+l,s+n),r&&t.arcTo(l,l,i,s+n-l,!1,!0),t.lineTo(i,s+.8*n).lineTo(u,c).lineTo(i,s+6*n/10).lineTo(i,s+l),r&&t.arcTo(l,l,i+l,s,!1,!0)):a<=0&&o>0&&oi(a)<=oi(o)?(t.lineTo(i+e-l,s),r&&t.arcTo(l,l,i+e,s+l,!1,!0),t.lineTo(i+e,s+n-l),r&&t.arcTo(l,l,i+e-l,s+n,!1,!0),t.lineTo(i+4*e/10,s+n).lineTo(u,c).lineTo(i+2*e/10,s+n).lineTo(i+l,s+n),r&&t.arcTo(l,l,i,s+n-l,!1,!0),t.lineTo(i,s+l),r&&t.arcTo(l,l,i+l,s,!1,!0)):a>0&&o>0&&oi(a)>oi(o)?(t.lineTo(i+e-l,s),r&&t.arcTo(l,l,i+e,s+l,!1,!0),t.lineTo(i+e,s+6*n/10).lineTo(u,c).lineTo(i+e,s+.8*n).lineTo(i+e,s+n-l),r&&t.arcTo(l,l,i+e-l,s+n,!1,!0),t.lineTo(i+l,s+n),r&&t.arcTo(l,l,i,s+n-l,!1,!0),t.lineTo(i,s+l),r&&t.arcTo(l,l,i+l,s,!1,!0)):a>0&&o>0&&oi(a)<=oi(o)&&(t.lineTo(i+e-l,s),r&&t.arcTo(l,l,i+e,s+l,!1,!0),t.lineTo(i+e,s+n-l),r&&t.arcTo(l,l,i+e-l,s+n,!1,!0),t.lineTo(i+.8*e,s+n).lineTo(u,c).lineTo(i+6*e/10,s+n).lineTo(i+l,s+n),r&&t.arcTo(l,l,i,s+n-l,!1,!0),t.lineTo(i,s+l),r&&t.arcTo(l,l,i+l,s,!1,!0)),t.closeSubpath()}var Be={};function He(t){var i=Be[t];if(!i){var s,e=[],n=[],h=1,r=1,a=-1,o=-1;for(s=0;s<t;s++)e[2*s]=di(2*ai*s/t-ai/2),n[2*s]=pi(2*ai*s/t-ai/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]=di(2*ai*((2*s+1)/2)/t-ai/2),n[2*s+1]=pi(2*ai*((2*s+1)/2)/t-ai/2);i=Be[t]={cXs:e,cYs:n,minX:h,minY:r,maxX:a,maxY:o}}return i}function ze(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 Ge=ks.browser.ie||ks.browser.edge,Ve=ts({$init:function(t,i){this.CTRL=i,this.container=t,this.Fo=z.kt,this.xr="none",this.Er=1,this.Uo="black",this.Xo=1,this.Bo="round",this.ps=0,this.Dr=[]},path:function(t){this.Ho=t,this.Tn()?this.zo():this.Go()&&this.pn()},shape:function(t,i){this.ps=t,this.Dr=i,this.Tn()?this.zo():this.Go()&&this.pn()},lineStyle:function(t){if(typeof t!==ni&&(t=t&O?"solid":t&L?"dotted":t&Y?"dashed":t&F?"dash-dotted":"none"),this.xr=t,"none"===t)this.Vo?this.Vo.style.display=t:this.Wo&&(this.Wo.style.stroke=t),this.$o();else if(this.Tn()){this.Vo?this.Vo.style.display="":this.Wo&&(this.Wo.style.stroke=this.Uo||"black");var i="none",s=this.Er||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.Wo&&(this.Wo.style.strokeDasharray=i),this.$o()}else this.Go()&&this.pn()},lineJoin:function(t){typeof t!==ni&&(t=t&B?"round":t&H?"bevel":"miter"),this.jo=t,this.Wo&&(this.Wo.style.strokeLinejoin=t)},lineCap:function(t){if(typeof t!==ni){var i="butt";t&U?i="square":t&X&&(i="round"),t=i}this.Bo=t,this.Wo&&(this.Wo.style.strokeLinecap=t)},lineWidth:function(t){this.Er=t,this.Tn()?(this.$o(),this.Qo()&&this.zo(),this.Wo&&(this.Wo.style.strokeWidth=t),this.hasArrow()&&(this.zo(),this.Ko&&(this.Ko.style.strokeWidth=t),this.qo&&(this.qo.style.strokeWidth=t)),"none"!==this.xr&&this.lineStyle(this.xr)):this.Go()&&this.pn()},$o:function(){if(this.shapeNode){var t=this.Er%2/2;t&&"none"!==this.xr?this.shapeNode.setAttribute("transform","translate("+t+", "+t+")"):this.shapeNode.removeAttribute("transform")}},lineColor:function(t,i,s,e){var n;typeof t===ni?(this.Uo=t,e=i):this.Uo=Gi(t,i,s),this.Xo=void 0===e?1:e,this.Vo?(this.Vo.style.opacity=this.Xo,this.Wo.style.stroke=this.Uo,n=this.Ko.style,this.Jo&&this.Jo.type!==D.NONE?this.Jo.type===D.OPEN?(n.stroke=this.Uo,n.fill="none"):(n.stroke="none",n.fill=this.Uo):n.stroke=n.fill="none",n=this.qo.style,this.Zo&&this.Zo.type!==D.NONE?this.Zo.type===D.OPEN?(n.stroke=this.Uo,n.fill="none"):(n.stroke="none",n.fill=this.Uo):n.stroke=n.fill="none"):this.Wo&&("none"!==this.xr&&(this.Wo.style.stroke=this.Uo),this.Wo.style.strokeOpacity=this.Xo)},startArrow:function(t,i){this.Jo={type:t,size:i},this.Tn()?(this.zo(),this.lineColor(this.Uo,this.Xo)):this.Go()&&this.pn()},endArrow:function(t,i){this.Zo={type:t,size:i},this.Tn()?(this.zo(),this.lineColor(this.Uo,this.Xo)):this.Go()&&this.pn()},fillNone:function(){this.Fo=z.kt,this.tu(),this.Rr&&(!this.Ho||$e(this.Ho)?(this.Rr.style.fill="white",this.Rr.style.fillOpacity=0):this.Rr.style.fill="none")},fillSolid:function(t,i,s,e){this.Fo=z.xt,this.tu(),typeof t===ni?(this.iu=t,e=i):this.iu=Gi(t,i,s),this.su=void 0===e?1:e,this.Tn()?(this.Rr.style.fill=this.iu,this.Rr.style.fillOpacity=this.su):this.Go()&&this.pn()},fillLinearGradient:function(t,i,s,e){if(this.Fo=z.St,this.eu=i,this.nu=t,this.hu=s,this.ru=e,this.tu(),this.Tn()){if(!this.au){this.au=Ei.createElementNS(hi,"linearGradient"),this.au.id=this.container.id?this.container.id+"-lgrad":"ap-lgrad-"+Ts(),this.au.setAttribute("gradientUnits",ri);var n=this.node.querySelector("defs");n||(n=Ei.createElementNS(hi,"defs"),this.node.appendChild(n)),n.appendChild(this.au)}this.Rr.style.fill="url(#"+this.au.id+")",this.Rr.style.fillOpacity=1,this.fillAngle(i),this.fillColorStops(t),this.fillLinearGradientTransform(s,e)}else this.Go()&&this.pn()},fillRadialGradient:function(t,i,s,e,n){if(this.Fo=z.Mt,this.nu=t,this.ou=i,this.uu=s,this.cu=e,this.lu=n,this.tu(),this.Tn()){if(!this.fu){this.fu=Ei.createElementNS(hi,"radialGradient"),this.fu.id=this.container.id?this.container.id+"-rgrad":"ap-rgrad-"+Ts(),this.fu.setAttribute("gradientUnits",ri);var h=this.node.querySelector("defs");h||(h=Ei.createElementNS(hi,"defs"),this.node.appendChild(h)),h.appendChild(this.fu)}this.Rr.style.fill="url(#"+this.fu.id+")",this.Rr.style.fillOpacity=1;var r=ze(this.node),a=r.x+r.width/2,o=r.y+r.height/2,u=ui(r.width*r.width/4+r.height*r.height/4);zi(this.fu,{cx:a,cy:o,r:u}),this.fillColorStops(t),this.fillRadialGradientTransform(i,s,e,n)}else this.Go()&&this.pn()},fillAngle:function(t){if((t%=360)<0&&(t+=360),this.eu=t,this.Fo===z.St&&this.au){var i,s,e,n,h=vi(t*ai/180),r=1+h*h,a=ze(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),zi(this.au,{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.hu,this.ru)}},fillColorStops:function(t){var i,s,e,n,h,r,a;if(this.nu=t,this.Fo===z.St?i=this.au:this.Fo===z.Mt&&(i=this.fu),i){for(;s=i.lastChild;)i.removeChild(s);for(n=0,h=t.length;n<h;++n)e=t[n],s=Ei.createElementNS(hi,"stop"),typeof e[1]===ni?(r=e[1],a=e[2]):(r=Gi(e[1],e[2],e[3]),a=e[4]),void 0===a&&(a=1),zi(s,{offset:e[0]+"%","stop-color":r,"stop-opacity":a}),i.appendChild(s)}},fillLinearGradientTransform:function(t,i){if(this.Fo===z.St&&this.au){this.hu=t,this.ru=i;var s,e,n,h=ze(this.node),r=this.au,a="";0!=t&&(s=this.eu*ai/180,a+="translate("+h.width*t/100*di(s)+", "+h.width*t/100*pi(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.Fo===z.Mt&&this.fu){this.ou=t,this.cu=s,this.uu=i,this.lu=e;var n,h,r=ze(this.node),a=this.fu,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.Fo=z.u,this.du=t,this.pu=i,this.vu=e,this.mu=n,this.bu=h,this.tu(),this.Tn()){if(!this.wu){this.wu=Ei.createElementNS(hi,"pattern"),this.gu=Ei.createElementNS(hi,"image"),this.wu.appendChild(this.gu),zi(this.wu,{id:this.container.id?this.container.id+"-imgfill":"ap-imgfill-"+Ts(),patternUnits:"userSpaceOnUse"});var r=this.node.querySelector("defs");r||(r=Ei.createElementNS(hi,"defs"),this.node.appendChild(r)),r.appendChild(this.wu)}var a=this.CTRL.prez().getResource(t+"."+(0==i?"png":1==i?"jpg":"gif"));if(this.gu.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",a),e===V)if((d=this.CTRL).Cs.t!==s.j)zi(this.wu,{width:"100%",height:"100%"}),zi(this.gu,{width:"100%",height:"100%",preserveAspectRatio:"none"});else{var o=d.slide;if(o){var u=-d.node.offsetLeft,c=-d.node.offsetTop,l=o.Eh,f=o.Sh;zi(this.wu,{x:u+"px",y:c+"px",width:l+"px",height:f+"px"}),zi(this.gu,{width:l+"px",height:f+"px",preserveAspectRatio:"none"})}}else if(e===G){var d;(d=this.CTRL).Cs.t!==s.j?(zi(this.wu,{width:n+"px",height:h+"px"}),zi(this.gu,{width:n+"px",height:h+"px",preserveAspectRatio:"none"})):(zi(this.wu,{x:-d.node.offsetLeft+"px",y:-d.node.offsetTop+"px",width:n+"px",height:h+"px"}),zi(this.gu,{width:n+"px",height:h+"px",preserveAspectRatio:"none"}))}this.Rr.style.fill="url(#"+this.wu.id+")",this.Rr.style.fillOpacity=1}else this.Go()&&this.pn()},_u:function(){switch(this.Fo){case z.kt:this.fillNone();break;case z.xt:this.fillSolid(this.iu,this.su);break;case z.St:this.fillLinearGradient(this.nu,this.eu,this.hu,this.ru);break;case z.Mt:this.fillRadialGradient(this.nu,this.ou,this.uu,this.cu,this.lu);break;case z.u:this.fillImage(this.du,this.pu,this.vu,this.mu,this.bu)}},applyEffectShadow:function(t,i,s,e,n,h,r){this.Tu=t,this.yu=i,this.ku=s,this.xu=e,this.Eu=n,this.Su=h,this.Mu=Gi(e,n,h),this.Pu=r,this.tu();var a,o=s*di(i/180*ai),u=s*pi(i/180*ai);if(ks.browser.useCSSShadow&&(a="drop-shadow("+o+"px "+u+"px "+t+"px "+Gi(e,n,h,r)+")",this.CTRL.node.style.filter=a,this.CTRL.node.style.WebkitFilter=a),this.Tn()){if(ks.browser.useCSSShadow)return;if(this.Kr(this.Iu,this.Cu,this.Ru),this.shapeNode.removeAttribute("filter"),this.Au)(c=this.node.querySelector("defs"))&&c.removeChild(this.Au),delete this.Au,delete this.Nu,delete this.Du,delete this.Ou,delete this.Lu,delete this.Yu;Ge&&this.Fu&&(this.shapeNode.removeChild(this.Fu),delete this.Fu),this.Au=Ei.createElementNS(hi,"filter"),this.Au.id=this.container.id?this.container.id+"-dropshadow":"ap-dropshadow-"+Ts(),this.Nu=Ei.createElementNS(hi,"feFlood"),this.Du=Ei.createElementNS(hi,"feComposite"),this.Ou=Ei.createElementNS(hi,"feOffset"),this.Lu=t>0?Ei.createElementNS(hi,"feGaussianBlur"):null,this.Yu=Ei.createElementNS(hi,"feComposite");var c,l=this.Au;l.appendChild(this.Nu),l.appendChild(this.Du),l.appendChild(this.Ou),t>0&&l.appendChild(this.Lu),l.appendChild(this.Yu),(c=this.node.querySelector("defs"))||(c=Ei.createElementNS(hi,"defs"),this.node.appendChild(c)),c.appendChild(l);var f,d,p,v,m=ze(this.node);if(v=this.Er+("miter"==this.jo?10:0),m.x-=v,m.y-=v,m.width+=2*v,m.height+=2*v,f={x:m.x-t+o,y:m.y-t+u,width:m.width+2*t,height:m.height+2*t},d=Math.min(m.x,f.x),p=Math.min(m.y,f.y),e=Math.max(m.x+m.width,f.x+f.width),h=Math.max(m.y+m.height,f.y+f.height),Ge){this.Fu=Ei.createElementNS(hi,"path");var b=new Ue;b.addRect(d,p,e-d,h-p),this.Fu.setAttribute("d",b.path()),this.shapeNode.appendChild(this.Fu)}zi(this.Au,{id:this.container.id?this.container.id+"-dropshadow":"ap-dropshadow-"+Ts(),filterUnits:ri,primitiveUnits:ri,style:"color-interpolation-filters:sRGB",x:d,y:p,width:e-d,height:h-p}),zi(this.Nu,{result:"flood","flood-color":this.Mu,"flood-opacity":this.Pu}),zi(this.Du,{result:"composite1",operator:"in",in2:"SourceGraphic",in:"flood"}),zi(this.Ou,{result:"offset",in:"composite1",dx:o,dy:u}),this.Lu&&zi(this.Lu,{result:"blur",in:"offset",stdDeviation:t/3}),zi(this.Yu,{result:"composite2",operator:"over",in2:t>0?"blur":"offset",in:"SourceGraphic"}),this.shapeNode.setAttribute("filter","url(#"+this.Au.id+")")}else this.Go()&&this.pn()},clearEffectShadow:function(){if(void 0!=this.Tu)if(delete this.Tu,delete this.yu,delete this.ku,delete this.xu,delete this.Eu,delete this.Su,delete this.Mu,delete this.Pu,ks.browser.useCSSShadow)this.CTRL.node.style.filter="";else{if(this.shapeNode.removeAttribute("filter"),this.Au){var t=this.node.querySelector("defs");t&&t.removeChild(this.Au),delete this.Au,delete this.Nu,delete this.Du,delete this.Ou,delete this.Lu,delete this.Yu}Ge&&this.Fu&&(this.shapeNode.removeChild(this.Fu),delete this.Fu),this.Kr(),this.tu()}},Uu:function(){void 0==this.Tu?this.clearEffectShadow():this.applyEffectShadow(this.Tu,this.yu,this.ku,this.xu,this.Eu,this.Su,this.Pu)},Kr:function(t,i,s){if(this.Iu=t,this.Cu=i,this.Ru=s,this.Tn()){if(ks.browser.useCSSShadow)return;if(void 0!=this.Iu&&void 0!=this.Tu){this.Xu||(this.Xu=Ei.createElementNS(hi,"image"));var e=this.Xu,n=this.CTRL.prez().getResource(t+"."+(0==i?"png":1==i?"jpg":"gif"));this.shapeNode.appendChild(e),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",n),zi(e,{x:"0",y:"0",width:"100%",height:"100%",opacity:s/255,preserveAspectRatio:"none"}),this.CTRL.imageNode&&(this.CTRL.imageNode.style.display="none")}else this.Xu&&(this.shapeNode.removeChild(this.Xu),delete this.Xu,this.CTRL.imageNode&&(this.CTRL.imageNode.style.display="block"))}else this.Go()&&this.pn()},tu:function(){if(!ks.browser.useCSSShadow){var t,i=void 0!=this.Tu&&this.Fo==z.kt,s=this.CTRL.textContainer;if(s)if(t=s.style,i){var e=this.ku*Math.cos(this.yu/180*Math.PI),n=this.ku*Math.sin(this.yu/180*Math.PI),h=this.Mu.substring(4,this.Mu.length-1).replace(/ /g,"").split(","),r="rgba("+h[0]+", "+h[1]+", "+h[2]+", "+this.Pu+")";t.textShadow=e+"px "+n+"px "+this.Tu+"px "+r}else t.textShadow=""}},cursor:function(t){this.Zh=t,this.shapeNode&&(this.shapeNode.style.cursor=t)},layout:function(){if(this.zo(),this.Bu){var t=this.container.clientHeight;this.Bu.translate(0,t/2)}this.Fo!==z.St&&this.Fo!==z.Mt&&this.Fo!=z.u||this._u(),this.Uu()},remove:function(){this.node&&(this.container.removeChild(this.node),this.node=this.shapeNode=this.Vo=this.Wo=this.Ko=this.qo=this.Rr=null)},textMargin:function(t,i){var s=[0,0,0,0],e=Fe[this.ps];return e&&e[1]&&(s=e[1].apply(null,[t,i].concat(this.Dr))),s},createIcon:function(t,i,s,e,n,h,r){this.Tn()||this.pn(),this.Hu={checked:t,iconSize:i,iconType:s,colorCheckMark:r,colorFill:n,colorBorder:h,borderWidth:e},this.Bu||(this.Bu={init:function(){this.border=Ei.createElementNS(hi,"path"),this.fill=Ei.createElementNS(hi,"path"),this.mark=Ei.createElementNS(hi,"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.Bu.init(),this.Bu.appendTo(this.shapeNode))},updateIcon:function(){if(this.Bu&&this.Hu){var t=this.CTRL.Cs.k;t==i.D?this.zu():t==i.O&&this.Gu()}},zu:function(){var t=this.Hu.iconSize/16,i=this.Hu.iconSize-4*wi(fi(t,1)+.5),s=wi(li(-7,-this.Hu.iconSize/4))-2*wi(fi(t,1)+.5),e=i/2,n=new Ue;n.addRect(-s,-e,i,i).addRect(-s-this.Hu.borderWidth,-e-this.Hu.borderWidth,i+2*this.Hu.borderWidth,i+2*this.Hu.borderWidth),this.Bu.border.style.fillRule="evenodd",this.Bu.border.style.fill=this.Hu.colorBorder,this.Bu.border.setAttribute("d",n.path());var h=new Ue;if(h.addRect(-s,-e,i,i),this.Bu.fill.style.fill=this.Hu.colorFill,this.Bu.fill.setAttribute("d",h.path()),this.Hu.checked){24==this.Xr&&(this.Vu==C?(++e,++s):this.Vu==A&&++e);var r=new Ue;switch(this.Hu.iconType){case C: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 R: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 A: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.Bu.mark.style.fill=this.Hu.colorCheckMark,this.Bu.mark.setAttribute("d",r.path())}else this.Bu.mark.setAttribute("d","")},Gu:function(){var t,i,s,e=this.Hu.iconSize/16,n=this.Hu.iconSize/2,h=n+fi(wi(this.Hu.iconSize/4),7);switch(this.Hu.iconType){case C:t=n-2*e,i=n-4*e;break;case R:t=n-2*e,i=n-3*e;break;case A:t=n-2*e,i=n-2*e}s=n-2*e+this.Hu.borderWidth;var r=new Ue;r.addEllipse(h,0,s-this.Hu.borderWidth,s-this.Hu.borderWidth).addEllipse(h,0,s,s),this.Bu.border.style.fillRule="evenodd",this.Bu.border.style.fill=this.Hu.colorBorder,this.Bu.border.setAttribute("d",r.path());var a=new Ue;if(a.addEllipse(h,0,t,t),this.Bu.fill.style.fill=this.Hu.colorFill,this.Bu.fill.setAttribute("d",a.path()),this.Hu.checked){var o=new Ue;o.addEllipse(h,0,i,i),this.Bu.mark.style.fill=this.Hu.colorCheckMark,this.Bu.mark.setAttribute("d",o.path())}else this.Bu.mark.setAttribute("d","")},Go:function(){return(this.Ho||void 0!==this.ps)&&("none"!==this.xr||this.Fo!==z.kt||void 0!=this.Tu&&void 0!=this.Iu)},Tn:function(){var t=!1;return this.hasArrow()?this.Vo&&(t=!0):this.shapeNode&&(t=!0),t},pn:function(){var t,i=!1;if(!this.node){var s=Ei.createElementNS(hi,"svg");(t=s.style).width="100%",t.height="100%",t.minWidth="1px",t.minHeight="1px",t.position="absolute",t.overflow="visible",this.container.insertBefore(s,this.container.firstChild),this.node=s}this.hasArrow()?this.Vo||(i=!0,this.shapeNode&&this.node.removeChild(this.shapeNode),this.shapeNode=Ei.createElementNS(hi,"g"),this.Rr=Ei.createElementNS(hi,"path"),this.Rr.style.stroke="none",this.shapeNode.appendChild(this.Rr),this.Vo=Ei.createElementNS(hi,"g"),this.Wo=Ei.createElementNS(hi,"path"),this.Wo.style.fill="none",this.Vo.appendChild(this.Wo),this.Ko=Ei.createElementNS(hi,"path"),(t=this.Ko.style).strokeLinecap="round",t.strokeLinejoin="miter",this.Vo.appendChild(this.Ko),this.qo=Ei.createElementNS(hi,"path"),(t=this.qo.style).strokeLinecap="round",t.strokeLinejoin="miter",this.Vo.appendChild(this.qo),this.shapeNode.appendChild(this.Vo),this.node.appendChild(this.shapeNode)):this.shapeNode||(i=!0,this.shapeNode=Ei.createElementNS(hi,"g"),this.Rr=this.Wo=Ei.createElementNS(hi,"path"),this.shapeNode.appendChild(this.Rr),this.node.appendChild(this.shapeNode)),i&&((t=this.shapeNode.style).pointerEvents="visiblePainted",t.strokeMiterlimit=10,t.fill=t.stroke="none",this.zo(),void 0!==this.jo&&this.lineJoin(this.jo),void 0!==this.Bo&&this.lineCap(this.Bo),this.lineWidth(this.Er),this.lineColor(this.Uo,this.Xo),this.lineStyle(this.xr),this._u(),this.Uu(),void 0!==this.Zh&&this.cursor(this.Zh))},hasArrow:function(){return this.Wu()&&(this.Jo&&this.Jo.type!==D.NONE||this.Zo&&this.Zo.type!==D.NONE)},Wu:function(){return this.Ho&&this.Ho.length>1&&this.Er},$u:function(){var t=this.container.clientWidth,i=this.container.clientHeight,s=new Ue,e={fill:"",line:"",startArrow:"",startArrowTransform:"",endArrow:"",endArrowTransform:""};if(!t&&!i)return e;if(this.Ho){var n,h,r,a,o,u,c=this.Ho;if(void 0===c.w){var l=function(t){var i=new Ue,s=Ei.createElementNS(hi,"svg"),e=Ei.createElementNS(hi,"path"),n=s.style;n.position="absolute",n.top=n.left="-10000px",n.visibility="hidden",We(i,t),e.setAttribute("d",i.path()),s.appendChild(e),Ei.body.appendChild(s);var h=ze(e);return Ei.body.removeChild(s),h}(c);c.w=l.width,c.h=l.height}c.w===t&&c.h===i||(c=function(t,i,s){var e,n,h,r,a,o=[],u=Hs.scaleNonUniform(i,s);for(n=0,h=t.length;n<h;++n)e=t[n],r=[],a=Gs(u,e[0],e[1]),r[0]=a.x,r[1]=a.y,a=Gs(u,e[2],e[3]),r[2]=a.x,r[3]=a.y,a=Gs(u,e[4],e[5]),r[4]=a.x,r[5]=a.y,r[6]=e[6],o[n]=r;return o}(c,c.w?t/c.w:1,c.h?i/c.h:1)),this.Wu()&&(this.Jo&&this.Jo.type!==D.NONE&&(n=c[0].slice(),r=mi(n[5]-n[1],n[4]-n[0]),(u=new Ue).addMarker(this.Jo.type,this.Jo.size,this.Er),e.startArrow=u.path(),e.startArrowTransform="translate("+n[0]+","+n[1]+") rotate("+180*r/ai+")",a=je(this.Jo.type,this.Jo.size,this.Er),c[0][0]+=a*di(r),c[0][1]+=a*pi(r)),this.Zo&&this.Zo.type!==D.NONE&&(h=c[o=c.length-1].slice(),r=mi(h[3]-h[1],h[2]-h[0]),(u=new Ue).addMarker(this.Zo.type,this.Zo.size,this.Er),e.endArrow=u.path(),e.endArrowTransform="translate("+h[0]+","+h[1]+") rotate("+180*r/ai+")",a=je(this.Zo.type,this.Zo.size,this.Er),c[o][0]+=a*di(r),c[o][1]+=a*pi(r))),We(s,c),n&&(c[0]=n),h&&(c[o]=h),e.line=s.path(),(n||h)&&(s.clear(),We(s,c)),e.fill=s.path()}else{var f=Fe[this.ps];if(f&&f[0])if(this.Qo()){var d="none"!==this.xr?this.Er:0,p=d%2==0?0:1,v=wi(d/2);f[0].apply(s,[-v-p,-v-p,t+2*v+p,i+2*v+p].concat(this.Dr))}else f[0].apply(s,[0,0,t,i].concat(this.Dr));e.fill=e.line=s.path()}return e},zo:function(){var t=this.$u();if(this.Rr){var e=this.CTRL;if(e.Cs.t===s.j){var n=this.CTRL.slide;if(n){var h={x:-e.node.offsetLeft,y:-e.node.offsetTop,width:n.Eh,height:n.Sh},r=new Ue;r.addRect(h.x,h.y,h.width,h.height),t.fill&&(t.fill+=r.path())}}12!==this.ps&&(this.Rr.style.fillRule="evenodd"),this.Rr.setAttribute("d",t.fill)}if(this.Wo!==this.Rr&&this.Wo.setAttribute("d",t.line),this.Ko&&(this.Ko.setAttribute("d",t.startArrow),t.startArrowTransform?this.Ko.setAttribute("transform",t.startArrowTransform):this.Ko.removeAttribute("transform")),this.qo&&(this.qo.setAttribute("d",t.endArrow),t.endArrowTransform?this.qo.setAttribute("transform",t.endArrowTransform):this.qo.removeAttribute("transform")),this.CTRL.Cs.k==i.F&&this.Ar){var a=this.Ar.querySelector("rect"),o="none"!==this.xr?this.Er:0,u=o%2==0?0:1,c=wi(o/2),l=this.container.clientWidth,f=this.container.clientHeight;a&&(a.setAttribute("x",-o),a.setAttribute("y",-o),a.setAttribute("width",l+2*o),a.setAttribute("height",f+2*o));var d=this.Ar.querySelector("path");if(d){var p=new Ue,v=Fe[this.ps],m=this.CTRL.Cs.tmp.duration,b=(this.CTRL.Cs.tmp.countdown?m-this.CTRL.Pr:this.CTRL.Pr)/m;l=l-2*c-2*u,f=f-2*c-2*u;v&&v[0]&&(v[0].apply(p,[l*b+u+c,c+u,l-l*b,f].concat(this.Dr)),d.setAttribute("d",p.path()))}}},Qo:function(){var t=this.CTRL.Cs.k;return t==i.u||t==i.D||t==i.O},contentBox:function(){if(!this.node){var t=this.CTRL;if(t&&(t.Cs.k===i.L||t.Cs.k===i.Y)){var s={x:0,y:0,width:0,height:0},e=t.children;if(e.length>0){for(var n=0;n<e.length;n++){for(var h=e[n],r=!1,a=h;a;){if(a.node&&"none"===a.node.style.display){r=!0;break}a=a.parent}if(!r){var o=h.transformedContentBox();if(0==o.width&&(o.width=1),0==o.height&&(o.height=1),s.width||s.height){if(o.width&&o.height){var u=li(s.x,o.x),c=li(s.y,o.y),l=fi(s.y+s.height,o.height+o.y),f=fi(s.x+s.width,o.width+o.x);s.x=u,s.y=c,s.width=f-u,s.height=l-c}}else s.x=o.x,s.y=o.y,s.width=o.width,s.height=o.height}}return s}return{x:0,y:0,width:t.Eh,height:t.Sh}}return{x:0,y:0,width:t.Eh,height:t.Sh}}var d=ze(this.node),p=(this.Er||0)/2*("miter"===this.jo?10:1);if(p&&(d.x-=p,d.y-=p,d.width+=2*p,d.height+=2*p),void 0!==this.Tu){var v=this.ku*di(this.yu/180*ai),m=this.ku*pi(this.yu/180*ai),b=this.Tu,w={x:d.x+v-b,y:d.y+m-b,width:d.width+2*b,height:d.height+2*b},g=d.x+d.width,_=d.y+d.height;d.x=li(d.x,w.x),d.y=li(d.y,w.y),d.width=fi(g,w.x+w.width)-d.x,d.height=fi(_,w.y+w.height)-d.y}return d}});function We(t,i){var s,e,n,h;for(n=0,h=i.length;n<h;++n)(s=i[n])[6]||0===n?t.moveTo(s[0],s[1]):t.cubicTo(e[4],e[5],s[2],s[3],s[0],s[1]),e=s;$e(i)&&(s=i[0],t.cubicTo(e[4],e[5],s[2],s[3],s[0],s[1]),t.closeSubpath())}function $e(t){return t.length>1&&!t[0][6]}function je(t,i,s){var e=i%3,n=(0===e?2:1===e?3:5)*s;switch(t){case D.ARROW:case D.OPEN:case D.STEALTH:return i<3?2.5*n/4:2*n/4;default:return 0}}var Qe={FPS:60,INTERVAL:16,time:0,syncTimes:[],timerId:null,isRunning:function(){return!!this.timerId},start:function(){this.stop(),Ke()},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},pushSync:function(t){this.syncTimes.push(t)},popSync:function(){this.syncTimes.pop()},adjustLag:function(){}};function Ke(){Qe.syncTimes.length=0,Qe.time=Date.now(),Qe.timerId=requestAnimationFrame(Ke),ks.tick(Qe.time)}var qe={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){qe.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}},Je={ve:0,ju:1,Qu:2,Ku:3,hh:4,qu:5,Ju:6},Ze={Zu:"vpt",tc:"vpb",ic:"vpl",sc:"vpr",ec:"nvpt",nc:"nvpb",hc:"nvpl",rc:"nvpr",ac:"cfb",oc:"cfl",uc:"cfr",lc:"cft",fc:"scth",dc:"nscth",pc:"ccth",vc:"nccth",mc:"sctw",bc:"nsctw",wc:"cctw",gc:"ncctw",_c:"sctdh",Tc:"nsctdh",yc:"cctdh",kc:"ncctdh",xc:"sctdw",Ec:"nsctdw",Sc:"cctdw",Mc:"ncctdw"},tn=ts({$init:function(t,i){this.s=t,this.d=i-t},resolveRelative:function(t,i,s,e){switch(s){case Ze.tc:s=i+this.Pc-this.Ic.y;break;case Ze.nc:s=i-(this.Pc-this.Ic.y);break;case Ze.ic:s=i-this.Ic.width-this.Ic.x;break;case Ze.hc:s=i-(-this.Ic.width-this.Ic.x);break;case Ze.sc:s=i+this.Cc-this.Ic.x;break;case Ze.rc:s=i-(this.Cc-this.Ic.x);break;case Ze.Zu:s=i-this.Ic.height-this.Ic.y;break;case Ze.ec:s=i-(-this.Ic.height-this.Ic.y);break;case Ze.ac:i=this.Rc.y+this.Rc.height,s=this.Rc.y;break;case Ze.oc:s=this.Rc.x+this.Rc.width,i=this.Rc.x;break;case Ze.uc:i=this.Rc.x+this.Rc.width,s=this.Rc.x;break;case Ze.lc:s=this.Rc.y+this.Rc.height,i=this.Rc.y}var n,h;switch(t){case Je.ju:n=i,h=s;break;case Je.Qu:n=i,h=i+s;break;case Je.Ku:n=s,h=i;break;case Je.hh:n=i-s,h=i;break;case Je.qu:n=i+s,h=i+e;break;case Je.Ju: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},setup:function(t,i,s,e,n){this.Cc=t,this.Pc=i,this.Rc=s,this.Ic=e,this.Ac=n}}),sn={_default:function(t,i){return new tn(t,i)}};function en(t,i){return void 0===sn[i]&&(sn[i]=t,!0)}var nn=ts(tn,{$init:function(t,i){this.s=t,this.e=void 0===i?t:i},resolveRelative:function(t,i,s,e){this.$init(s,e)},value:function(t){return t<1?this.s:this.e}});en(function(t,i){return new nn(t,i)},yt.Qi);var hn=ts(tn,{resolveRelative:function(t,i,s,e){var n=s?s.value:s,h=e?e.value:e;s&&"%"===s.unit&&("w"===s.dimension?n=this.Cc*s.value/100:"h"===s.dimension&&(n=this.Pc*s.value/100)),e&&"%"===e.unit&&("w"===e.dimension?h=this.Cc*e.value/100:"h"===e.dimension&&(h=this.Pc*e.value/100)),tn.prototype.resolveRelative.apply(this,[t,i,n,h])}});function rn(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 an(t,i,s,e,n){var h=wi(s[e].t),r=(s[e].t+s[e+1].t)/2-h,a=rn(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(on(a,{x:(o.x+u.x)/2,y:(o.y+u.y)/2})>n||on(o,u)>4*n)&&(a.t=h+r,s.splice(e+1,0,a),c=1+an(t,i,s,e+1,n),c+=an(t,i,s,e,n)),c}function on(t,i){var s=i.x-t.x,e=i.y-t.y;return ui(s*s+e*e)}en(function(t,i){return new hn(t,i)},yt.ji);var un=ts(tn,{$init:function(t,i){this.Nc=!!i,this.points(t)},resolveRelative:function(t,i,s,e){var n,h,r,a=[],o=i.translateX||0,u=i.translateY||0;if(s)if(t===Je.qu)for(n=0,h=s.length;n<h;++n)r=s[n],a.push([r[0]+o,r[1]+u,r[2]+o,r[3]+u,r[4]+o,r[5]+u]);else a=s;this.$init(a,e)},setup:function(t,i){this.Yh=t,this.Fh=i},value:function(t){var i=this.Dc(t),s=wi(i),e=this.Oc,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,l,f,d,p=rn(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],l=(c=v)*c,r={x:3*(d=(f=1-c)*f)*(o[4]-o[0])+6*f*c*(u[2]-o[4])+3*l*(u[0]-u[2]),y:3*d*(o[5]-o[1])+6*f*c*(u[3]-o[5])+3*l*(u[1]-u[3])},180*mi(r.y,r.x)/ai,(t<0||t>1)&&(h=ui(r.x*r.x+r.y*r.y))>0&&(a=t>1?t-1:t,p.x+=a*this.Lc*r.x/h,p.y+=a*this.Lc*r.y/h),this.Nc?{translateX:p.x-this.Yh,translateY:p.y-this.Fh}:{translateX:p.x,translateY:p.y}},points:function(t){t&&t.length||(t=[[0,0,0,0,0,0]]),1===t.length&&(t[1]=t[0]),this.Oc=t,this.Yc(),this.Fc()},Yc:function(){this.Yo=[];var t,i,s,e,n=this.Oc,h=n.length-1,r=this.Yo;for(t=0;t<h;++t)for(i=0;i<4;++i)s=i/4,(e=rn(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)an(n[t],n[t+1],r,4*t+i,2)},Fc:function(){var t,i=this.Yo,s=0,e=i.length-1;for(t=0;t<e;++t)i[t].l=s,s+=on(i[t],i[t+1]);e>=0&&(i[e].l=s),this.Lc=s,this.Uc=[];var n,h,r=this.Uc,a=s;for(this.Xc=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})},Dc:function(t){var i,s,e,n,h=t*this.Lc,r=this.Uc,a=r.length;return 0===a?i=0:1===a?i=r[0].t:(e=r[s=this.Xc>0?li(fi(0,wi(h/this.Xc)),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}});en(function(t,i){return new un(t,i)},yt.Ki);var cn=ts(tn,{$init:function(t,i){tn.prototype.$init.call(this,t,i)},resolveRelative:function(t,i,s,e){switch(s){case Ze.ac:i=this.Rc.y+this.Rc.height,s=this.Rc.y;break;case Ze.oc:s=this.Rc.x+this.Rc.width,i=this.Rc.x;break;case Ze.uc:i=this.Rc.x+this.Rc.width,s=this.Rc.x;break;case Ze.lc:s=this.Rc.y+this.Rc.height,i=this.Rc.y;break;case Ze.fc:s=i+pi(e)*(this.Rc.y+this.Rc.height);break;case Ze.dc:s=i-pi(e)*(this.Rc.y+this.Rc.height);break;case Ze.pc:s=i+di(e)*(this.Rc.y+this.Rc.height);break;case Ze.vc:s=i-di(e)*(this.Rc.y+this.Rc.height);break;case Ze.mc:s=i+pi(e)*(this.Rc.x+this.Rc.width);break;case Ze.bc:s=i-pi(e)*(this.Rc.x+this.Rc.width);break;case Ze.wc:s=i+di(e)*(this.Rc.x+this.Rc.width);break;case Ze.gc:s=i-di(e)*(this.Rc.x+this.Rc.width);break;case Ze.xc:s=i+pi(e)*(this.Rc.x+ui(ci(this.Rc.width,2)+ci(this.Rc.height,2)));break;case Ze.Ec:s=i-pi(e)*(this.Rc.x+ui(ci(this.Rc.width,2)+ci(this.Rc.height,2)));break;case Ze.Sc:s=i+di(e)*(this.Rc.x+ui(ci(this.Rc.width,2)+ci(this.Rc.height,2)));break;case Ze.Mc:s=i-di(e)*(this.Rc.x+ui(ci(this.Rc.width,2)+ci(this.Rc.height,2)));break;case Ze._c:s=i+pi(e)*(this.Rc.y+ui(ci(this.Rc.width,2)+ci(this.Rc.height,2)));break;case Ze.Tc:s=i-pi(e)*(this.Rc.y+ui(ci(this.Rc.width,2)+ci(this.Rc.height,2)));break;case Ze.yc:s=i+di(e)*(this.Rc.y+ui(ci(this.Rc.width,2)+ci(this.Rc.height,2)));break;case Ze.kc:s=i-di(e)*(this.Rc.y+ui(ci(this.Rc.width,2)+ci(this.Rc.height,2)))}var n,h;switch(t){case Je.ju:n=i,h=s;break;case Je.Qu:n=i,h=i+s;break;case Je.Ku:n=s,h=i;break;case Je.hh:n=i-s,h=i;break;case Je.qu:n=i+s,h=i+e;break;case Je.Ju:n=i*s,h=i*e;break;default:n=s,h=e}this.$init(n,h)}});en(function(t,i){return new cn(t,i)},yt.qi);var ln=ts(tn,{$init:function(t){tn.prototype.$init.call(this,t)},setup:function(t){this.Bc=t||""},value:function(t){var i=this.Bc;if(t>=0||t<=1){var s=i.length,e=s*t;e>s&&(e=s),i=i.substring(0,e)}return i}});function fn(){return Oi(this.translateX,0)&&Oi(this.translateY,0)&&Oi(this.rotate,0)&&Oi(this.scaleX,1)&&Oi(this.scaleY,1)}en(function(t){return new ln(t)},yt.Ji);var dn={transform:{children:["translateX","translateY","rotate","scaleX","scaleY"],get:function(i){var s,e,n=js(i),h={translateX:0,translateY:0,rotate:0,scaleX:1,scaleY:1,isIdentity:fn},r=t(i.node).css("transform");if("matrix("===r.substr(0,7)){for(s=0,e=(r=r.substring(7,r.length-1).split(",")).length;s<e;++s)r[s]=parseFloat(r[s]);h.translateX=r[4]||0,h.translateY=r[5]||0,h.scaleX=ui(r[0]*r[0]+r[1]*r[1]),0===h.scaleX?(h.scaleY=ui(r[2]*r[2]+r[3]*r[3]),0===h.scaleY?h.rotate=0:h.rotate=180*mi(-r[2],r[3])/ai):(h.scaleY=(r[0]*r[3]-r[1]*r[2])/h.scaleX,h.rotate=180*mi(r[1],r[0])/ai)}return Qs(n),h},set:function(t,i){if(i&&typeof i!==ni){var s=pi(i.rotate*ai/180),e=di(i.rotate*ai/180);t.node.style[Ki]="matrix("+i.scaleX*e+", "+i.scaleX*s+", "+-i.scaleY*s+", "+i.scaleY*e+", "+i.translateX+", "+i.translateY+")"}else t.node.style[Ki]=i}},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}},display:{get:function(i){return t(i.node).css("display")},set:function(t,i){t.node.style.display=i,t.bn()},add:function(t,i){return i}},visibility:{get:function(i){return t(i.node).css("visibility")},set:function(t,i){t.node.style.visibility=i,t.bn()},add:function(t,i){return i}},cssClip:{order:1e3,get:function(i){return t(i.node).css("clip")},set:function(t,i){t.node.style.clip=i}},clip:{order:1,children:["clipTop","clipRight","clipBottom","clipLeft"],get:function(i){var s,e=t(i.node).css("clip");if("rect("===e.substr(0,5)&&4===(e=e.substring(5,e.length-1).split(" ")).length&&(s={clipTop:parseFloat(e[0]),clipRight:parseFloat(e[1]),clipBottom:parseFloat(e[2]),clipLeft:parseFloat(e[3])}),!s){var n=i.contentBox();s={clipTop:n.y,clipRight:n.x+n.width,clipBottom:n.y+n.height,clipLeft:n.x}}return s},set:function(t,i){t.node.style.clip=i&&typeof i!==ni?"rect("+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){if(t(i.textNode))return t(i.textNode).html()},set:function(i,s){s=s||"",i.textNode&&(t(i.textNode).html(s),i.onResized(0,0))}},src:{get:function(i){if(t(i))return t(i.node).attr("src")},set:function(i,s){t(i)&&t(i.node).attr("src",s)}},ceWidth:{get:function(i){if(t(i))return t(i.na).attr("width")},set:function(i,s){t(i)&&t(i.na).attr("width",s)}},ceHeight:{get:function(i){if(t(i))return t(i.na).attr("height")},set:function(i,s){t(i)&&t(i.na).attr("height",s)}},ceType:{get:function(t){if(t)return t.sa},set:function(t,i){t&&(t.sa=i)}},ceColor:{get:function(i){if(t(i))return i.na.getContext("2d").strokeStyle},set:function(i,s){t(i)&&(i.na.getContext("2d").strokeStyle=Gi(s))}},ceProgress:{get:function(t){if(t)return t.ea},set:function(i,s){if(t(i)){i.ea=s;var e=i.na,n=i.sa,h=e.getContext("2d"),r=t(e).attr("width"),a=t(e).attr("height"),o=Math.round((r-2)/2*s/100),u=Math.round(r/2),c=Math.round(a/2),l=h.strokeStyle,f=s/100;(new we).renderMouseEffect(h,n,u,c,f,l,o),100==s&&h.clearRect(0,0,e.width,e.height)}}},geProgress:{get:function(t){if(t)return t.qr},set:function(i,s){i.qr=s;var e=i.Jr,n=e.getContext("2d"),h=i.Cs.ge.type,r=t(e).attr("width"),a=t(e).attr("height"),o=Math.round(r/2),u=Math.round(a/2),c=Gi(i.Cs.ge.color),l=s/100;(new we).renderGestureEffect(n,h,o,u,l,c)}},width:{get:function(i){if(i)return t(i.node).css("width")},set:function(t,i){t&&(t.node.style.width=i+"px")}},height:{get:function(i){if(i)return t(i.node).css("height")},set:function(t,i){t&&(t.node.style.height=i+"px")}},left:{get:function(i){if(i)return t(i.node).css("left")},set:function(t,i){t&&(t.node.style.left=i+"px")}},top:{get:function(i){if(i)return t(i.node).css("top")},set:function(t,i){t&&(t.node.style.top=i+"px")}},mediaSrc:{get:function(t){if(t.xn)return t.xn.eo()},set:function(t,i){t.xn&&t.xn.loadResource(i)}},mediaDuration:{get:function(t){if(t.xn)return t.xn.so()},set:function(t,i){t.xn&&t.xn.kn(i)}},mediaState:{get:function(t){return t.xn?t.xn.vs():"stopped"},set:function(t,i){t.xn&&t.xn.vs(i)}},mediaSeek:{get:function(t){return t.xn?t.xn.oa():0},set:function(t,i){t.xn&&t.xn.oa(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.Ir||!1},set:function(t,i){i&&!t.Cr&&(t.Cr=!0,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()},set:function(t,i){t.aspectRatio(i)},order:-1}};var pn=ts({$init:function(t){this.Hc=t,this.zc={}},apply:function(t){this.toTarget(t,this.get(t))},toTarget:function(t,i){var s,e,n,h=dn[t];if(h)if(h.set)h.set(this.Hc,i);else if(h.base&&(s=dn[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.Hc,e)}},fromTarget:function(t){var i,s,e,n,h,r,a=dn[t];if(a)if(a.get)s=a.get(this.Hc);else if(a.base&&(i=dn[a.base])&&i.get&&(s=i.get(this.Hc)))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=dn[t];if(h&&h.children&&(n=h.children.length))for(i={},e=0;e<n;++e)i[s=h.children[e]]=this.zc[s];else i=this.zc[t];return i},set:function(t,i){var s,e,n,h=dn[t];if(h&&h.children&&(n=h.children.length))for(e=0;e<n;++e)s=h.children[e],this.zc[s]=i?i[s]:i;else this.zc[t]=i},add:function(t,i){var s,e,n,h,r=dn[t];if(r&&r.children&&(h=r.children.length))for(n=0;n<h;++n)e=r.children[n],(s=dn[e])&&s.add?this.zc[e]=s.add(this.zc[e],i?i[e]:i):this.zc[e]=(this.zc[e]||0)+i;else r&&r.add?this.zc[t]=r.add(this.zc[t],i):this.zc[t]=(this.zc[t]||0)+i}}),vn=ts({$init:function(t){this.options=t=Ti({speed:1,repeat:1,alternated:!1,paused:!1,startTime:0},t),this.In=t.speed||1e-9,this.Gc=t.repeat||1,this.Vc=1,this.Wc=t.alternated,this.Un=t.startTime,this.$c=void 0,this.jc=void 0,this.Qc=void 0,this.Bn=0,this.Se=t.paused,this.wa=null,this.Kc=null},started:function(){return void 0!==this.Qc},speed:function(t){return arguments.length?(this.In=t||1e-9,this.Se||this.startTime((this.wa?this.wa.Bn:Qe.now())-this.Bn/this.In),this):this.In},repeat:function(t){return arguments.length?(this.Gc=t||1,mn(this,!0),this):this.Gc},alternated:function(t){return arguments.length?(this.Wc=t,this):this.Wc},startTime:function(t){if(!arguments.length)return this.Un;if(t!==this.Un)if(this.wa){var i=this.wa;i.removeChild(this),this.Un=t,i.addChild(this)}else this.Un=t;return this},endTime:function(t){return this.Un+(t?this.duration():this.totalDuration())/this.In},duration:function(t){return arguments.length?(this.$c=t,mn(this,!0),this):this.$c},totalDuration:function(t){return arguments.length?this.Gc>0?this.duration(t/this.Gc):this:(void 0===this.jc&&(void 0===this.$c&&this.duration(),-1===this.Gc?this.jc=1e11:-2===this.Gc?this.jc=this.wa?(this.wa.duration()-this.Un)*this.In:this.$c:this.jc=this.Gc*this.$c),this.jc)},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.Se;if(t=!!t,this.Se!==t){this.Se=t;for(var i=this;i&&!i.Se;)i.startTime((i.wa?i.wa.Bn:Qe.now())-i.Bn/i.In),i=i.wa;t||this.update(this.Bn)}return this},qc:function(){for(var t=this;t;){if(t.Se)return!0;t=t.wa}return!1},seek:function(t){return this.totalTime(t)},time:function(t){return arguments.length?(t=Di(t,0,this.duration()),this.Wc&&this.Vc%2==0&&(t=this.$c-t),this.totalTime(t+(this.Vc-1)*this.$c)):this.Qc||0},totalTime:function(t){if(!arguments.length)return this.Bn;t<0&&(t=0),this.Jc(t),this.update(t,!0);for(var i=this;i&&!i.Se;)i.startTime((i.wa?i.wa.Bn:Qe.now())-i.Bn/i.In),i=i.wa;return this},Jc:function(t){this.Qc=void 0},parent:function(t){return arguments.length?(t?t.addChild(this):this.remove(),this):this.wa},timeline:function(){return this.Kc},remove:function(){return this.wa&&this.wa.removeChild(this),this},setup:function(){},update:function(t,i){},Xn:function(t){var i=void 0===this.$c?this.duration():this.$c,s=void 0===this.jc?this.totalDuration():this.jc,e=1,n={totalTime:t,uncapTime:t,active:t>-ei&&t<s+ei};return t<ei||0===i?(t>-ei&&t<ei?n.totalTime=n.uncapTime=0:t<0&&(n.totalTime=0),t=0):(t>s-ei&&(t<s+ei&&(t=s,n.totalTime=n.uncapTime=t),t>s&&(t=s)),1!==this.Gc&&(0===(e=gi(t/i))&&(e=1),t-=(e-1)*i,this.Wc&&e%2==0&&(t=i-t),t>i?t=i:t<0&&(t=0),e<this.Gc?this.uncapTime=t:(this.uncapTime-=(e-1)*i,this.Wc&&e%2==0&&(this.uncapTime=i-this.uncapTime)))),n.time=t,n.cycle=e,n},Zc:function(t){this.Kc=t},il:function(t,i){return!0},sl:function(t){}});function mn(t,i){for(;t;)t.jc=void 0,i?i=!1:t.$c=void 0,t=t.wa}var bn=ts(vn,{$init:function(t,i){this.isEvent=!0,this.el=!1,vn.prototype.$init.call(this,i),this.$c=this.options.duration||0,this.nl=t},update:function(t,i){t=this.Xn(t),this.Vc=t.cycle,this.Bn=t.totalTime,this.Qc=t.time,this.el||(this.el=!0,this.nl&&this.nl(this.Qc,i))},Jc:function(t){vn.prototype.Jc.call(this,t),this.el=t>0}}),wn=ts(vn,{$init:function(t,i,s){vn.prototype.$init.call(this,s),(s=this.options).tweenParams||(s.tweenParams=[]),void 0===s.relative&&(s.relative=Je.ve),this.Hc=t,t.animProps||(t.animProps=new pn(t)),this.hl=i,this.$c=s.duration||0,this.rl=s.additive||!1,this.al=s.easing||qe.linear,this.ol=function(t){return(sn[t]||sn._default).apply(null,Array.prototype.slice.call(arguments,1))}.apply(null,[s.tweenType].concat(s.tweenParams))},setup:function(){if(this.options.relative===Je.ve||this.ol instanceof un||this.ol instanceof ln)if(this.ol&&this.ol instanceof un){var t=this.Hc.handleBox(!0),i={x:t.x+t.width/2,y:t.y+t.height/2};this.ol.setup.apply(this.ol,[i.x,i.y])}else this.ol&&this.ol instanceof ln&&this.ol.setup.apply(this.ol,[this.Hc.firstCorrectValue()]);else{var s;if(this.Kc){for(var e=0,n=this,h=this.Kc,r=Ti({},this.Hc.animProps.zc);n&&n!==h;)e=n.Un+e/n.In,n=n.wa;h.il(e,this),s=this.Hc.animProps.get(this.hl),this.Hc.animProps.zc=r}else s=this.Hc.animProps.fromTarget(this.hl);var a=this.Hc.slide.width(),o=this.Hc.slide.height(),u=this.Hc.contentBox?this.Hc.contentBox():{x:0,y:0,width:a,height:o},c=this.Hc.transformedContentBox?this.Hc.transformedContentBox(!0):u;this.ol.setup.apply(this.ol,[a,o,u,c]),this.ol.resolveRelative.apply(this.ol,[this.options.relative,s].concat(this.options.tweenParams))}},update:function(t,i){t=this.Xn(t);var s=this.Qc!==t.time,e=this.al(this.$c?t.time/this.$c:1);this.Vc=t.cycle,this.Qc=t.time,this.Bn=t.totalTime,this.rl?this.Hc.animProps.add(this.hl,this.ol.value(e)):this.Hc.animProps.set(this.hl,this.ol.value(e)),this.Kc&&s&&this.Kc.ul(this.hl,this.Hc)},Zc:function(t){t!==this.Kc&&(this.Kc&&this.Kc.cl(this.hl,this.Hc),this.Kc=t,t&&t.ll(this.hl,this.Hc))},il:function(t,i){return this!==i&&(this.Hc===i.Hc&&(this.update(t,!0),this.Qc=void 0),!0)}}),gn=ts(wn,{sl:function(t){var i=this.Hc.xn,s=this.qc();i&&(s?i.fa():i.la())},update:function(t,i){if(wn.prototype.update.call(this,t),i){var s=this.Hc.xn;s&&s.ua()}}}),_n=ts(vn,{$init:function(t){vn.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.$c){var i,s=this.lastChild;for(t=0;s;)(s.Gc>0||-1===s.Gc)&&(i=s.Un+s.totalDuration()/s.In)>t&&(t=i),s=s.prev;this.$c=t}return this.$c}return t&&(this.$c||this.duration())&&this.speed(this.$c/t),this},totalDuration:function(t){return arguments.length?(this.Gc>0&&t&&(this.jc||this.totalDuration())&&this.speed(this.jc/t),this):void 0!==this.jc?this.jc:vn.prototype.totalDuration.call(this)},update:function(t,i){t=this.Xn(t),this.Vc=t.cycle,this.Qc=t.time,this.Bn=t.totalTime;for(var s,e=this.qc(),n=t.time,h=this.firstChild;h&&!(h.Un>n)&&(s=h.next,h.Se||(h.update((n-h.Un)*h.In,i),!h.firstChild||this.Vc===t.cycle&&this.Qc===n&&this.qc()===e));)h=s},Zc:function(t){if(t!==this.Kc){for(var i=this.firstChild;i;)i.Zc(t),i=i.next;this.Kc=t}},addChild:function(t,i){if(t.isEvent&&!this.isTimeline)return Ni("Only timeline can add timing event"),this;t.wa&&t.remove();for(var s=this.lastChild;s&&(i?s.Un>=t.Un:s.Un>t.Un);)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.wa=this,t.Zc(this.isTimeline?this:this.Kc),void 0!==this.$c&&t.endTime()>this.$c&&(this.$c=t.endTime(),mn(this,!0)),this},removeChild:function(t){return t.wa===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.wa=null,t.Kc&&t.Zc(null),void 0!==this.$c&&t.endTime()>=this.$c&&mn(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 vn.prototype.paused.call(this);vn.prototype.paused.call(this,t);for(var i=this.firstChild;i;)i.sl(t),i=i.next;return this},il:function(t,i){if(this===i)return!1;t=this.Xn(t).time;for(var s=this.firstChild;s;){if(s.Un<=t&&!s.il((t-s.Un)*s.In,i))return!1;s=s.next}return!0},Jc:function(t){vn.prototype.Jc.call(this,t),t=this.Xn(t).uncapTime;for(var i=this.firstChild;i;)i.Jc((t-i.Un)*i.In),i=i.next},sl:function(t){vn.prototype.sl.call(this,t);for(var i=this.firstChild;i;)i.sl(t),i=i.next}});function Tn(t,i){return t.active-i.active||t.order-i.order}var yn=ts(_n,{isTimeline:!0,$init:function(t){_n.prototype.$init.call(this,t),this.fl=[]},setup:function(t){var i,s,e,n,h,r,a,o;for(a=0,o=(i=arguments.length?[t]:this.fl).length;a<o;++a){s=i[a].target,n=i[a].props,h={};for(e in n)dn[e]&&dn[e].base?h[dn[e].base]=1:h[e]=1;for(e in h)if(r=s.animProps.fromTarget(e),n[e])n[e].value=r;else for(e in r)n[e]?n[e].value=r[e]:n[e]={value:r[e],count:0}}_n.prototype.setup.call(this)},update:function(t,i){t=this.Xn(t),this.Vc=t.cycle,this.Bn=t.totalTime;var s,e,n=this.qc();if(i||this.Qc!==t.time){var h,r,a,o,u,c=this.fl;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 l,f,d=this.Qc=t.time,p=!1,v=!1;if(!n)for(s=this.firstChild;s&&!(s.Un>t.time);){if(e=s.next,s.isEvent&&!s.Se&&!s.el)for(this.Qc=d=s.Un,this.Bn=t.totalTime+d-t.time,o=0;o<2;++o){for(1===o&&this.dl(i),l=this.firstChild,v=!0;l&&!(l.Un>d);){if(f=l.next,!l.Se&&(0===o&&!l.isEvent||1===o&&l.isEvent)&&(l.update((d-l.Un)*l.In,i),(l.isEvent||l.firstChild)&&(this.Vc!==t.cycle||this.Qc!==d||this.qc()!==n))){p=!0;break}l=f}if(p)break}if(p)break;s=e}if(!(p||this.Qc===t.time&&v))for(this.Qc=d=t.time,this.Bn=t.totalTime,l=this.firstChild;l&&!(l.Un>d)&&(f=l.next,l.Se||l.isEvent||(l.update((d-l.Un)*l.In,i),!l.firstChild||this.Vc===t.cycle&&this.Qc===d&&this.qc()===n));)l=f;this.dl(i)}else if(!n)for(s=this.firstChild;s&&!(s.Un>t.time)&&(e=s.next,!s.isEvent||s.Un!==this.Qc||s.Se||s.el||(s.update(0,i),this.Vc===t.cycle&&this.Qc===t.time&&this.qc()===n));)s=e},dl:function(t){var i,s,e,n,h,r,a,o,u,c,l=this.fl;for(r=0,a=l.length;r<a;++r){c=l[r].target,h=l[r].props,s={};for(n in h)(t||h[n].active)&&(e={name:n,active:h[n].active?1:0,order:0},dn[n]&&(dn[n].base?(e.name=dn[n].base,e.order=dn[e.name].order||0):e.order=dn[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(Tn),o=0,u=i.length;o<u;++o)c.animProps.apply(i[o].name)}},il:function(t,i){var s,e,n,h,r,a=this.fl;for(h=0,r=a.length;h<r;++h)if((s=a[h].target)===i.Hc){n=a[h].props;for(e in n)n[e].active=!1,s.animProps.set(e,n[e].value)}return _n.prototype.il.call(this,t,i)},Zc:function(t){this.Kc=t},ll:function(t,i){var s,e,n,h,r,a=this.fl;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=dn[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)},cl:function(t,i){var s,e,n,h,r,a,o=this.fl;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=dn[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)}},ul:function(t,i){var s,e,n,h,r,a=this.fl;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=dn[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)}});Ti(ks,{$:t,jQuery:t,Easing:qe,MarkerType:D,GradientType:{LINEAR:0,RADIAL:1},GradientShape:{CIRCLE:0,ELLIPSE:1},GradientSize:{CLOSE_SIDE:0,FAR_SIDE:1,CLOSE_CORNER:2,FAR_CORNER:3},FillType:z,DisplayMode:Vt,Object:Ks,color:Gi,createClass:ts,Locale:xs,SVGShape:Ve,ShapePath:Ue,ClickMaxDistance:1,DoubleClickMaxTime:400,SwipeMinDistance:30,SwipeMaxDeflection:30,SwipeMinVelocity:.3,TransitionMinDuration:500,Timeline:yn,Animation:wn,MediaAnimation:gn,AnimationGroup:_n,TimingEvent:bn,RelativeTweenType:Je,TweenRelativeParam:Ze,TweenType:yt,logDebug:Ni,ZIndex:_t,ControlKind:i,ControlType:s,TextBoxFlags:N,ResponseResult:rt,PlayModes:kt,animatedProperties:dn,DragDrop:Ws,htmlEscape:Yi,htmlToText:Fi,Key:ms}),window.AtomiAP=ks,Qe.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};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=t.RelativeTweenType,c=t.TweenRelativeParam,l=t.TweenType;function f(t,i,s,h,r,a,o,u,c,l){var f={startTime:r*h,duration:a*h,tweenParams:o,easing:c,relative:u,tweenType:l};"scale"===s?(t.addChild(new e(i,"scaleX",f)),t.addChild(new e(i,"scaleY",f))):"mediaSeek"===s?t.addChild(new n(i,s,f)):t.addChild(new e(i,s,f))}t.createZoomAndPan=function(t,i,s,e){var n=new h({startTime:0});if(f(n,t,"scale",0,0,1,[1],u.ju),f(n,t,"translateX",0,0,1,[0],u.ju),f(n,t,"translateY",0,0,1,[0],u.ju),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 c=a.scale[s]/100,d=a.pos[s],p={};1===d.ux?(p.value=-d.x*c/1e3,p.unit="%",p.dimension="w"):p.value=-d.x*c;var v={};1===d.uy?(v.value=-d.y*c/1e3,v.unit="%",v.dimension="h"):v.value=-d.y*c,f(n,t,"scale",1,a.startTime,a.duration,[c],u.ju),f(n,t,"translateX",1,a.startTime,a.duration,[p],u.ju,o.linear,l.ji),f(n,t,"translateY",1,a.startTime,a.duration,[v],u.ju,o.linear,l.ji)}}return n};var d=t.animatedProperties;t.createEffect=function(e,n,r,p,v,m,b,w){if(p=p||0,n===i.PAUSE)return new a(function(){e.ms&&e.ms(!0)},{startTime:r});if(n===i.TIME_OUT)return new a(function(){e.cr&&e.cr(p)},{startTime:r});var g=!1;n>=i.MOTION_PATH_START&&n<=i.MOTION_PATH_END&&m&&(g=1==m);var _=new h({startTime:r,repeat:v||1,alternated:g}),T=t.browser.iDevice;if(n>=i.ENTRANCE_START&&n<=i.ENTRANCE_END?f(_,e,"display",0,0,0,["none","block"],u.ve,o.linear,l.Qi):n>=i.EXIT_START&&n<=i.EXIT_END&&f(_,e,"display",p,1,0,["block","none"],u.ve,o.linear,l.Qi),n==i.FADE_IN)f(_,e,"opacity",p,0,1,[0,1],u.ve,o.outQuad);else if(n==i.FLY_IN)m==s.BOTTOM?f(_,e,"translateY",p,0,1,[c.tc],u.Ku,o.outQuad):m==s.LEFT?f(_,e,"translateX",p,0,1,[c.ic],u.Ku,o.outQuad):m==s.RIGHT?f(_,e,"translateX",p,0,1,[c.sc],u.Ku,o.outQuad):m==s.TOP?f(_,e,"translateY",p,0,1,[c.Zu],u.Ku,o.outQuad):m==s.BOTTOM_LEFT?(f(_,e,"translateY",p,0,1,[c.tc],u.Ku,o.outQuad),f(_,e,"translateX",p,0,1,[c.ic],u.Ku,o.outQuad)):m==s.BOTTOM_RIGHT?(f(_,e,"translateY",p,0,1,[c.tc],u.Ku,o.outQuad),f(_,e,"translateX",p,0,1,[c.sc],u.Ku,o.outQuad)):m==s.TOP_RIGHT?(f(_,e,"translateY",p,0,1,[c.Zu],u.Ku,o.outQuad),f(_,e,"translateX",p,0,1,[c.sc],u.Ku,o.outQuad)):m==s.TOP_LEFT&&(f(_,e,"translateY",p,0,1,[c.Zu],u.Ku,o.outQuad),f(_,e,"translateX",p,0,1,[c.ic],u.Ku,o.outQuad));else if(n==i.PEEK_IN){k=(k=d.transform.get(e).rotate)*Math.PI/180;var y=0;if(m==s.BOTTOM_LEFT||m==s.BOTTOM_RIGHT||m==s.TOP_RIGHT||m==s.TOP_LEFT)if(e.contentBox)(x=e.contentBox()).width&&x.height&&(y=Math.atan(x.height/x.width));m==s.BOTTOM?(f(_,e,"clipBottom",p,0,1,[c.ac],u.Ku,o.outQuad,l.qi),f(_,e,"translateX",p,0,1,[c.dc,k],u.Ku,o.outQuad,l.qi),f(_,e,"translateY",p,0,1,[c.pc,k],u.Ku,o.outQuad,l.qi)):m==s.LEFT?(f(_,e,"translateX",p,0,1,[c.gc,k],u.Ku,o.outQuad,l.qi),f(_,e,"translateY",p,0,1,[c.bc,k],u.Ku,o.outQuad,l.qi),f(_,e,"clipLeft",p,0,1,[c.oc],u.Ku,o.outQuad,l.qi)):m==s.RIGHT?(f(_,e,"translateX",p,0,1,[c.wc,k],u.Ku,o.outQuad,l.qi),f(_,e,"translateY",p,0,1,[c.mc,k],u.Ku,o.outQuad,l.qi),f(_,e,"clipRight",p,0,1,[c.uc],u.Ku,o.outQuad,l.qi)):m==s.TOP?(f(_,e,"translateX",p,0,1,[c.fc,k],u.Ku,o.outQuad,l.qi),f(_,e,"translateY",p,0,1,[c.vc,k],u.Ku,o.outQuad,l.qi),f(_,e,"clipTop",p,0,1,[c.lc],u.Ku,o.outQuad,l.qi)):m==s.BOTTOM_LEFT?(k-=y,f(_,e,"translateX",p,0,1,[c.Mc,k],u.Ku,o.outQuad,l.qi),f(_,e,"translateY",p,0,1,[c.Tc,k],u.Ku,o.outQuad,l.qi),f(_,e,"clipBottom",p,0,1,[c.ac],u.Ku,o.outQuad,l.qi),f(_,e,"clipLeft",p,0,1,[c.oc],u.Ku,o.outQuad,l.qi)):m==s.BOTTOM_RIGHT?(k+=y,f(_,e,"translateX",p,0,1,[c.Sc,k],u.Ku,o.outQuad,l.qi),f(_,e,"translateY",p,0,1,[c._c,k],u.Ku,o.outQuad,l.qi),f(_,e,"clipBottom",p,0,1,[c.ac],u.Ku,o.outQuad,l.qi),f(_,e,"clipRight",p,0,1,[c.uc],u.Ku,o.outQuad,l.qi)):m==s.TOP_LEFT?(k+=y,f(_,e,"translateX",p,0,1,[c.Mc,k],u.Ku,o.outQuad,l.qi),f(_,e,"translateY",p,0,1,[c.Tc,k],u.Ku,o.outQuad,l.qi),f(_,e,"clipTop",p,0,1,[c.lc],u.Ku,o.outQuad,l.qi),f(_,e,"clipLeft",p,0,1,[c.oc],u.Ku,o.outQuad,l.qi)):m==s.TOP_RIGHT&&(k-=y,f(_,e,"translateX",p,0,1,[c.Sc,k],u.Ku,o.outQuad,l.qi),f(_,e,"translateY",p,0,1,[c._c,k],u.Ku,o.outQuad,l.qi),f(_,e,"clipTop",p,0,1,[c.lc],u.Ku,o.outQuad,l.qi),f(_,e,"clipRight",p,0,1,[c.uc],u.Ku,o.outQuad,l.qi)),f(_,e,"cssClip",p,1,0,["",""],u.ve,o.linear,l.Qi)}else if(n==i.FLOAT_IN)m==s.BOTTOM?(f(_,e,"translateY",p,0,1,[100],u.Ku,o.outQuad),f(_,e,"opacity",p,0,1,[0,1],u.ve,o.outQuad)):m==s.TOP&&(f(_,e,"translateY",p,0,1,[-100],u.Ku,o.outQuad),f(_,e,"opacity",p,0,1,[0,1],u.ve,o.outQuad));else if(n==i.WIPE_IN)m==s.BOTTOM?f(_,e,"clipTop",p,0,1,[c.lc],u.Ku,o.outQuad):m==s.LEFT?f(_,e,"clipRight",p,0,1,[c.uc],u.Ku,o.outQuad):m==s.RIGHT?f(_,e,"clipLeft",p,0,1,[c.oc],u.Ku,o.outQuad):m==s.TOP?f(_,e,"clipBottom",p,0,1,[c.ac],u.Ku,o.outQuad):m==s.BOTTOM_LEFT?(f(_,e,"clipTop",p,0,1,[c.lc],u.Ku,o.outQuad),f(_,e,"clipRight",p,0,1,[c.uc],u.Ku,o.outQuad)):m==s.BOTTOM_RIGHT?(f(_,e,"clipTop",p,0,1,[c.lc],u.Ku,o.outQuad),f(_,e,"clipLeft",p,0,1,[c.oc],u.Ku,o.outQuad)):m==s.TOP_LEFT?(f(_,e,"clipBottom",p,0,1,[c.ac],u.Ku,o.outQuad),f(_,e,"clipRight",p,0,1,[c.uc],u.Ku,o.outQuad)):m==s.TOP_RIGHT&&(f(_,e,"clipBottom",p,0,1,[c.ac],u.Ku,o.outQuad),f(_,e,"clipLeft",p,0,1,[c.oc],u.Ku,o.outQuad)),f(_,e,"cssClip",p,1,0,["",""],u.ve,o.linear,l.Qi);else if(n==i.ZOOM_IN)f(_,e,"scale",p,0,1,[0,1],u.Ju,o.outQuad),f(_,e,"opacity",p,0,1,[0,1],u.ve,o.outQuad),T&&f(_,e,"svgOpacity",p,0,1,[.9,1],u.ve);else if(n==i.GROW_TURN_IN)f(_,e,"rotate",p,0,1,[90],u.Ku,o.outQuad),f(_,e,"opacity",p,0,1,[0,1],u.ve,o.outQuad),f(_,e,"scale",p,0,1,[0,1],u.Ju,o.outQuad),T&&f(_,e,"svgOpacity",p,0,1,[.9,1],u.ve);else if(n==i.SWIVEL_IN)f(_,e,"opacity",p,0,1,[0,1]),f(_,e,"scaleX",p,0,.2,[0,1],u.Ju,o.outQuad),f(_,e,"scaleX",p,.2,.2,[1,1e-4],u.Ju,o.outQuad),f(_,e,"scaleX",p,.4,.2,[1,-1e4],u.Ju,o.outQuad),f(_,e,"scaleX",p,.6,.2,[1,-1e-4],u.Ju,o.outQuad),f(_,e,"scaleX",p,.8,.2,[1,1e4],u.Ju,o.outQuad),T&&f(_,e,"svgOpacity",p,0,1,[.9,1],u.ve);else if(n==i.BOUNCE_IN)f(_,e,"translateX",p,0,1,[-150],u.Ku),f(_,e,"translateY",p,0,1,[-250],u.Ku,o.outBounce),f(_,e,"opacity",p,0,.05,[0,1]),f(_,e,"scaleY",p,7.9/22,.1/22,[1,.5],u.Ju),f(_,e,"scaleY",p,8/22,.1/22,[1,2],u.Ju),f(_,e,"scaleY",p,15.9/22,.1/22,[1,.8],u.Ju),f(_,e,"scaleY",p,16/22,.1/22,[1,1.25],u.Ju),f(_,e,"scaleY",p,19.9/22,.1/22,[1,.9],u.Ju),f(_,e,"scaleY",p,20/22,.1/22,[1,10/9],u.Ju);else if(n==i.EXPAND_IN)f(_,e,"scaleX",p,0,1,[.8,1],u.Ju,o.outQuad),f(_,e,"opacity",p,0,1,[0,1],u.ve,o.outQuad);else if(n==i.SPINNER_IN)f(_,e,"rotate",p,0,1,[-360],u.Qu,o.outQuad),f(_,e,"opacity",p,0,1,[100/255,1],u.ve,o.outQuad);else if(n==i.STRETCH_IN)f(_,e,"scaleX",p,0,1,[0,1],u.Ju,o.outQuad),T&&f(_,e,"svgOpacity",p,0,1,[.9,1],u.ve);else if(n==i.COMPRESS_IN)f(_,e,"scaleX",p,0,1,[1.5,1],u.Ju,o.outQuad),f(_,e,"opacity",p,0,1,[0,1],u.ve,o.outQuad);else if(n==i.SHAPE_IN)f(_,e,"clipLeft",p,0,1,[c.oc],u.Ku,o.outQuad),f(_,e,"clipTop",p,0,1,[c.lc],u.Ku,o.outQuad),f(_,e,"clipRight",p,0,1,[c.uc],u.Ku,o.outQuad),f(_,e,"clipBottom",p,0,1,[c.ac],u.Ku,o.outQuad),f(_,e,"cssClip",p,1,0,["",""],u.ve,o.linear,l.Qi);else if(n==i.PULSE)f(_,e,"scale",p,0,.5,[1,1.2],u.Ju),f(_,e,"opacity",p,0,.5,[1,100/255],u.Ju),f(_,e,"scale",p,.5,.5,[1,5/6],u.Ju),f(_,e,"opacity",p,.5,.5,[1,2.55],u.Ju);else if(n==i.TEETER)f(_,e,"rotate",p,0,1/8,[-10],u.Qu),f(_,e,"rotate",p,1/8,1/8,[10],u.Qu),f(_,e,"rotate",p,.25,1/8,[10],u.Qu),f(_,e,"rotate",p,3/8,1/8,[-10],u.Qu),f(_,e,"rotate",p,.5,1/8,[-10],u.Qu),f(_,e,"rotate",p,5/8,1/8,[10],u.Qu),f(_,e,"rotate",p,.75,1/8,[10],u.Qu),f(_,e,"rotate",p,7/8,1/8,[-10],u.Qu);else if(n==i.SPIN)m==s.CLOCKWISE?f(_,e,"rotate",p,0,1,[360],u.Qu):m==s.COUNTER_CLOCKWISE&&f(_,e,"rotate",p,0,1,[-360],u.Qu);else if(n==i.FADE_OUT)f(_,e,"opacity",p,0,1,[1,0],u.ve,o.inQuad),f(_,e,"opacity",p,1,0,[0,1]);else if(n==i.FLY_OUT)m==s.BOTTOM?(f(_,e,"translateY",p,0,1,[c.tc],u.ju,o.inQuad),f(_,e,"translateY",p,1,0,[c.nc],u.ju,o.inQuad)):m==s.LEFT?(f(_,e,"translateX",p,0,1,[c.ic],u.ju,o.inQuad),f(_,e,"translateX",p,1,0,[c.hc],u.ju,o.inQuad)):m==s.RIGHT?(f(_,e,"translateX",p,0,1,[c.sc],u.ju,o.inQuad),f(_,e,"translateX",p,1,0,[c.rc],u.ju,o.inQuad)):m==s.TOP?(f(_,e,"translateY",p,0,1,[c.Zu],u.ju,o.inQuad),f(_,e,"translateY",p,1,0,[c.ec],u.ju,o.inQuad)):m==s.BOTTOM_LEFT?(f(_,e,"translateY",p,0,1,[c.tc],u.ju,o.inQuad),f(_,e,"translateY",p,1,0,[c.nc],u.ju,o.inQuad),f(_,e,"translateX",p,0,1,[c.ic],u.ju,o.inQuad),f(_,e,"translateX",p,1,0,[c.hc],u.ju,o.inQuad)):m==s.BOTTOM_RIGHT?(f(_,e,"translateY",p,0,1,[c.tc],u.ju,o.inQuad),f(_,e,"translateY",p,1,0,[c.nc],u.ju,o.inQuad),f(_,e,"translateX",p,0,1,[c.sc],u.ju,o.inQuad),f(_,e,"translateX",p,1,0,[c.rc],u.ju,o.inQuad)):m==s.TOP_RIGHT?(f(_,e,"translateY",p,0,1,[c.Zu],u.ju,o.inQuad),f(_,e,"translateY",p,1,0,[c.ec],u.ju,o.inQuad),f(_,e,"translateX",p,0,1,[c.sc],u.ju,o.inQuad),f(_,e,"translateX",p,1,0,[c.rc],u.ju,o.inQuad)):m==s.TOP_LEFT&&(f(_,e,"translateY",p,0,1,[c.Zu],u.ju,o.inQuad),f(_,e,"translateY",p,1,0,[c.ec],u.ju,o.inQuad),f(_,e,"translateX",p,0,1,[c.ic],u.ju,o.inQuad),f(_,e,"translateX",p,1,0,[c.hc],u.ju,o.inQuad));else if(n==i.FLOAT_OUT)m==s.BOTTOM?(f(_,e,"translateY",p,0,1,[100],u.Qu,o.inQuad),f(_,e,"opacity",p,0,1,[1,0],u.ve,o.inQuad),f(_,e,"translateY",p,1,0,[-100],u.Qu)):m==s.TOP&&(f(_,e,"translateY",p,0,1,[-100],u.Qu,o.inQuad),f(_,e,"opacity",p,0,1,[1,0],u.ve,o.inQuad),f(_,e,"translateY",p,1,0,[100],u.Qu)),f(_,e,"opacity",p,1,0,[0,1]);else if(n==i.PEEK_OUT){var k;k=(k=d.transform.get(e).rotate)*Math.PI/180;var x;y=0;if(m==s.BOTTOM_LEFT||m==s.BOTTOM_RIGHT||m==s.TOP_RIGHT||m==s.TOP_LEFT)if(e.contentBox)(x=e.contentBox()).width&&x.height&&(y=Math.atan(x.height/x.width));m==s.BOTTOM?(f(_,e,"translateX",p,0,1,[c.dc,k],u.ju,o.inQuad,l.qi),f(_,e,"translateX",p,1,0,[c.fc,k],u.ju,o.inQuad,l.qi),f(_,e,"translateY",p,0,1,[c.pc,k],u.ju,o.inQuad,l.qi),f(_,e,"translateY",p,1,0,[c.vc,k],u.ju,o.inQuad,l.qi),f(_,e,"clipBottom",p,0,1,[c.ac],u.ju,o.inQuad,l.qi)):m==s.LEFT?(f(_,e,"translateX",p,0,1,[c.gc,k],u.ju,o.inQuad,l.qi),f(_,e,"translateX",p,1,0,[c.wc,k],u.ju,o.inQuad,l.qi),f(_,e,"translateY",p,0,1,[c.bc,k],u.ju,o.inQuad,l.qi),f(_,e,"translateY",p,1,0,[c.mc,k],u.ju,o.inQuad,l.qi),f(_,e,"clipLeft",p,0,1,[c.oc],u.ju,o.inQuad,l.qi)):m==s.RIGHT?(f(_,e,"translateX",p,0,1,[c.wc,k],u.ju,o.inQuad,l.qi),f(_,e,"translateX",p,1,0,[c.gc,k],u.ju,o.inQuad,l.qi),f(_,e,"translateY",p,0,1,[c.mc,k],u.ju,o.inQuad,l.qi),f(_,e,"translateY",p,1,0,[c.bc,k],u.ju,o.inQuad,l.qi),f(_,e,"clipRight",p,0,1,[c.uc],u.ju,o.inQuad,l.qi)):m==s.TOP?(f(_,e,"translateX",p,0,1,[c.fc,k],u.ju,o.inQuad,l.qi),f(_,e,"translateX",p,1,0,[c.dc,k],u.ju,o.inQuad,l.qi),f(_,e,"translateY",p,0,1,[c.vc,k],u.ju,o.inQuad,l.qi),f(_,e,"translateY",p,1,0,[c.pc,k],u.ju,o.inQuad,l.qi),f(_,e,"clipTop",p,0,1,[c.lc],u.ju,o.inQuad,l.qi)):m==s.BOTTOM_LEFT?(k-=y,f(_,e,"translateX",p,0,1,[c.Mc,k],u.ju,o.inQuad,l.qi),f(_,e,"translateX",p,1,0,[c.Sc,k],u.ju,o.inQuad,l.qi),f(_,e,"translateY",p,0,1,[c.Tc,k],u.ju,o.inQuad,l.qi),f(_,e,"translateY",p,1,0,[c._c,k],u.ju,o.inQuad,l.qi),f(_,e,"clipBottom",p,0,1,[c.ac],u.ju,o.inQuad,l.qi),f(_,e,"clipLeft",p,0,1,[c.oc],u.ju,o.inQuad,l.qi)):m==s.BOTTOM_RIGHT?(k+=y,f(_,e,"translateX",p,0,1,[c.Sc,k],u.ju,o.inQuad,l.qi),f(_,e,"translateX",p,1,0,[c.Mc,k],u.ju,o.inQuad,l.qi),f(_,e,"translateY",p,0,1,[c._c,k],u.ju,o.inQuad,l.qi),f(_,e,"translateY",p,1,0,[c.Tc,k],u.ju,o.inQuad,l.qi),f(_,e,"clipBottom",p,0,1,[c.ac],u.ju,o.inQuad,l.qi),f(_,e,"clipRight",p,0,1,[c.uc],u.ju,o.inQuad,l.qi)):m==s.TOP_LEFT?(k+=y,f(_,e,"translateX",p,0,1,[c.Mc,k],u.ju,o.inQuad,l.qi),f(_,e,"translateX",p,1,0,[c.Sc,k],u.ju,o.inQuad,l.qi),f(_,e,"translateY",p,0,1,[c.Tc,k],u.ju,o.inQuad,l.qi),f(_,e,"translateY",p,1,0,[c._c,k],u.ju,o.inQuad,l.qi),f(_,e,"clipTop",p,0,1,[c.lc],u.ju,o.inQuad,l.qi),f(_,e,"clipLeft",p,0,1,[c.oc],u.ju,o.inQuad,l.qi)):m==s.TOP_RIGHT&&(k-=y,f(_,e,"translateX",p,0,1,[c.Sc,k],u.ju,o.inQuad,l.qi),f(_,e,"translateX",p,1,0,[c.Mc,k],u.ju,o.inQuad,l.qi),f(_,e,"translateY",p,0,1,[c._c,k],u.ju,o.inQuad,l.qi),f(_,e,"translateY",p,1,0,[c.Tc,k],u.ju,o.inQuad,l.qi),f(_,e,"clipTop",p,0,1,[c.lc],u.ju,o.inQuad,l.qi),f(_,e,"clipRight",p,0,1,[c.uc],u.ju,o.inQuad,l.qi)),f(_,e,"cssClip",p,1,0,["",""],u.ve,o.linear,l.Qi)}else if(n==i.WIPE_OUT)m==s.BOTTOM?f(_,e,"clipTop",p,0,1,[c.lc],u.ju,o.inQuad):m==s.LEFT?f(_,e,"clipRight",p,0,1,[c.uc],u.ju,o.inQuad):m==s.RIGHT?f(_,e,"clipLeft",p,0,1,[c.oc],u.ju,o.inQuad):m==s.TOP?f(_,e,"clipBottom",p,0,1,[c.ac],u.ju,o.inQuad):m==s.BOTTOM_LEFT?(f(_,e,"clipTop",p,0,1,[c.lc],u.ju,o.inQuad),f(_,e,"clipRight",p,0,1,[c.uc],u.ju,o.inQuad)):m==s.BOTTOM_RIGHT?(f(_,e,"clipTop",p,0,1,[c.lc],u.ju,o.inQuad),f(_,e,"clipLeft",p,0,1,[c.oc],u.ju,o.inQuad)):m==s.TOP_LEFT?(f(_,e,"clipBottom",p,0,1,[c.ac],u.ju,o.inQuad),f(_,e,"clipRight",p,0,1,[c.uc],u.ju,o.inQuad)):m==s.TOP_RIGHT&&(f(_,e,"clipBottom",p,0,1,[c.ac],u.ju,o.inQuad),f(_,e,"clipLeft",p,0,1,[c.oc],u.ju,o.inQuad)),f(_,e,"cssClip",p,1,0,["",""],u.ve,o.linear,l.Qi);else if(n==i.ZOOM_OUT)f(_,e,"scale",p,0,1,[1,1e-4],u.Ju,o.inQuad),f(_,e,"opacity",p,0,1,[1,0],u.ve,o.inQuad),f(_,e,"scale",p,1,0,[1e4,1e4],u.Ju),f(_,e,"opacity",p,1,0,[0,1]);else if(n==i.SHRINK_TURN_OUT)f(_,e,"rotate",p,0,1,[90],u.Qu,o.inQuad),f(_,e,"opacity",p,0,1,[1,0],u.ve,o.inQuad),f(_,e,"scale",p,0,1,[1,1e-4],u.Ju,o.inQuad),f(_,e,"rotate",p,1,0,[-90],u.Qu),f(_,e,"opacity",p,1,0,[0,1]),f(_,e,"scale",p,1,0,[1e4,1e4],u.Ju);else if(n==i.SWIVEL_OUT)f(_,e,"opacity",p,0,1,[1,0],u.ve,o.inQuad),f(_,e,"scaleX",p,0,.2,[1,1e-4],u.Ju,o.inQuad),f(_,e,"scaleX",p,.2,.2,[1,-1e4],u.Ju,o.inQuad),f(_,e,"scaleX",p,.4,.2,[1,-1e-4],u.Ju,o.inQuad),f(_,e,"scaleX",p,.6,.2,[1,1e4],u.Ju,o.inQuad),f(_,e,"scaleX",p,.8,.2,[1,1e-4],u.Ju,o.inQuad),f(_,e,"opacity",p,1,0,[0,1]),f(_,e,"scaleX",p,1,0,[1e4,1e4],u.Ju);else if(n==i.BOUNCE_OUT)f(_,e,"translateX",p,0,1,[150],u.Qu),f(_,e,"translateY",p,0,1,[250],u.Qu,o.outBounce),f(_,e,"opacity",p,.95,1,[1,0]),f(_,e,"translateX",p,1,0,[-150],u.Qu),f(_,e,"translateY",p,1,0,[-250],u.Qu),f(_,e,"opacity",p,1,0,[0,1]);else if(n==i.SHAPE_OUT)f(_,e,"clipLeft",p,0,1,[c.oc],u.ju,o.inQuad),f(_,e,"clipTop",p,0,1,[c.lc],u.ju,o.inQuad),f(_,e,"clipRight",p,0,1,[c.uc],u.ju,o.inQuad),f(_,e,"clipBottom",p,0,1,[c.ac],u.ju,o.inQuad),f(_,e,"cssClip",p,1,0,["",""],u.ve,o.linear,l.Qi);else if(n==i.CONTRACT_OUT)f(_,e,"scaleX",p,0,1,[1,.8],u.Ju,o.inQuad),f(_,e,"opacity",p,0,1,[1,0],u.ve,o.inQuad),f(_,e,"scaleX",p,1,0,[1.25,1.25],u.Ju),f(_,e,"opacity",p,1,0,[0,1]);else if(n==i.SPINNER_OUT)f(_,e,"rotate",p,0,1,[360],u.Qu,o.inQuad),f(_,e,"opacity",p,0,1,[1,100/255],u.ve,o.inQuad),f(_,e,"opacity",p,1,0,[100/255,1]);else if(n==i.STRETCH_OUT)f(_,e,"scaleX",p,0,1,[1,1.5],u.Ju,o.inQuad),f(_,e,"opacity",p,0,1,[1,0],u.ve,o.inQuad),f(_,e,"scaleX",p,1,0,[2/3,2/3],u.Ju),f(_,e,"opacity",p,1,0,[0,1]);else if(n==i.COLLAPSE_OUT)f(_,e,"scaleX",p,0,1,[1,1e-4],u.Ju,o.inQuad),f(_,e,"scaleX",p,1,0,[1e4,1e4],u.Ju);else if(n>=i.MOTION_PATH_START&&n<=i.MOTION_PATH_END){var E,S,M,P,I=b[e.prez().layoutIndex];if(!I.normed){for(E=0,M=I.length;E<M;++E)for(P=I[E],S=0;S<6;++S)P[S]=P[S]/1e3;(P=I[0])&&!P[6]&&I.push(P.slice()),I.normed=!0}f(_,e,"position",p,0,1,[I,w],u.ve,o.linear,l.Ki)}else n==i.GESTURE_PROGRESS?f(_,e,"geProgress",p,0,1,[0,100]):n==i.TIMER_START?f(_,e,"timerState",0,0,1,[!1,!0],u.ve,o.linear,l.Qi):n==i.MEDIA_PLAY?f(_,e,"mediaState",0,0,0,["stopped","playing"],u.ve,o.linear,l.Qi):n==i.MEDIA_STOP?f(_,e,"mediaState",0,1,0,["playing","stopped"],u.ve,o.linear,l.Qi):n==i.MEDIA_SEEK&&f(_,e,"mediaSeek",p,0,1,[0,1],u.ve,o.linear);return _};var p=1,v=2,m=3,b=4,w=5,g=6,_=7,T=8,y=9;function k(t,i,s,e,n,h,r,a,o,u){var c=i.slide,l=i.slideBG;c&&f(t,c,s,e,n,h,r,a,o,u),l&&f(t,l,s,e,n,h,r,a,o,u)}t.createTransition=function(t,i,e,n,h,a){var c={width:i.Eh,height:i.Sh},f={};if(e&&(f={width:e.Eh,height:e.Sh}),!i)return null;var d=i.background,x=null;e&&(x=e.background);var E=new r({startTime:0}),S={slide:i,slideBG:d},M={slide:e,slideBG:x};return n==p?k(E,S,"opacity",h,0,.1,[0,1]):n==v?k(E,S,"opacity",h,0,1,[0,1]):n==m?(a==s.BOTTOM?k(E,S,"translateY",h,0,1,[c.height,0],u.ve,o.outQuad):a==s.LEFT?k(E,S,"translateX",h,0,1,[-c.width,0],u.ve,o.outQuad):a==s.RIGHT?k(E,S,"translateX",h,0,1,[c.width,0],u.ve,o.outQuad):a==s.TOP&&k(E,S,"translateY",h,0,1,[-c.height,0],u.ve,o.outQuad),a==s.BOTTOM?k(E,M,"translateY",h,0,1,[0,-f.height],u.ve,o.outQuad):a==s.LEFT?k(E,M,"translateX",h,0,1,[0,f.width],u.ve,o.outQuad):a==s.RIGHT?k(E,M,"translateX",h,0,1,[0,-f.width],u.ve,o.outQuad):a==s.TOP&&k(E,M,"translateY",h,0,1,[0,f.height],u.ve,o.outQuad)):n==b?(a==s.BOTTOM?k(E,S,"clipTop",h,0,1,[c.height,0],u.ve,o.outQuad):a==s.LEFT?k(E,S,"clipRight",h,0,1,[0,c.width],u.ve,o.outQuad):a==s.RIGHT?k(E,S,"clipLeft",h,0,1,[c.width,0],u.ve,o.outQuad):a==s.TOP?k(E,S,"clipBottom",h,0,1,[0,c.height],u.ve,o.outQuad):a==s.BOTTOM_LEFT?(k(E,S,"clipTop",h,0,1,[c.height,0],u.ve,o.outQuad),k(E,S,"clipRight",h,0,1,[0,c.width],u.ve,o.outQuad)):a==s.BOTTOM_RIGHT?(k(E,S,"clipTop",h,0,1,[c.height,0],u.ve,o.outQuad),k(E,S,"clipLeft",h,0,1,[c.width,0],u.ve,o.outQuad)):a==s.TOP_LEFT?(k(E,S,"clipBottom",h,0,1,[0,c.height],u.ve,o.outQuad),k(E,S,"clipRight",h,0,1,[0,c.width],u.ve,o.outQuad)):a==s.TOP_RIGHT&&(k(E,S,"clipBottom",h,0,1,[0,c.height],u.ve,o.outQuad),k(E,S,"clipLeft",h,0,1,[c.width,0],u.ve,o.outQuad)),k(E,S,"cssClip",h,1,0,["",""],u.ve,o.linear,l.Qi)):n==w?a==s.IN?(k(E,S,"scale",h,0,1,[0,1],u.Ju,o.outQuad),k(E,S,"opacity",h,0,1,[0,1],u.ve,o.outQuad)):a==s.OUT&&(k(E,S,"scale",h,0,1,[2,1],u.Ju,o.outQuad),k(E,S,"opacity",h,0,1,[0,1],u.ve,o.outQuad)):n==g?a==s.BOTTOM?k(E,S,"translateY",h,0,1,[c.height],u.Ku,o.outQuad):a==s.LEFT?k(E,S,"translateX",h,0,1,[-c.width],u.Ku,o.outQuad):a==s.RIGHT?k(E,S,"translateX",h,0,1,[c.width],u.Ku,o.outQuad):a==s.TOP?k(E,S,"translateY",h,0,1,[-c.height],u.Ku,o.outQuad):a==s.BOTTOM_LEFT?(k(E,S,"translateY",h,0,1,[c.height],u.Ku,o.outQuad),k(E,S,"translateX",h,0,1,[-c.width],u.Ku,o.outQuad)):a==s.BOTTOM_RIGHT?(k(E,S,"translateY",h,0,1,[c.height],u.Ku,o.outQuad),k(E,S,"translateX",h,0,1,[c.width],u.Ku,o.outQuad)):a==s.TOP_RIGHT?(k(E,S,"translateY",h,0,1,[-c.height],u.Ku,o.outQuad),k(E,S,"translateX",h,0,1,[c.width],u.Ku,o.outQuad)):a==s.TOP_LEFT&&(k(E,S,"translateY",h,0,1,[-c.height],u.Ku,o.outQuad),k(E,S,"translateX",h,0,1,[-c.width],u.Ku,o.outQuad)):n==_?(t.rn(!0),a==s.BOTTOM?k(E,M,"translateY",h,0,1,[0,-f.height],u.ve,o.inQuad):a==s.LEFT?k(E,M,"translateX",h,0,1,[0,f.width],u.ve,o.inQuad):a==s.RIGHT?k(E,M,"translateX",h,0,1,[0,-f.width],u.ve,o.inQuad):a==s.TOP?k(E,M,"translateY",h,0,1,[0,f.height],u.ve,o.inQuad):a==s.BOTTOM_LEFT?(k(E,M,"translateY",h,0,1,[0,-f.height],u.ve,o.inQuad),k(E,M,"translateX",h,0,1,[0,f.width],u.ve,o.inQuad)):a==s.BOTTOM_RIGHT?(k(E,M,"translateY",h,0,1,[0,-f.height],u.ve,o.inQuad),k(E,M,"translateX",h,0,1,[0,-f.width],u.ve,o.inQuad)):a==s.TOP_RIGHT?(k(E,M,"translateY",h,0,1,[0,f.height],u.ve,o.inQuad),k(E,M,"translateX",h,0,1,[0,-f.width],u.ve,o.inQuad)):a==s.TOP_LEFT&&(k(E,M,"translateY",h,0,1,[0,f.height],u.ve,o.inQuad),k(E,M,"translateX",h,0,1,[0,f.width],u.ve,o.inQuad))):n==T?(k(E,S,"opacity",h,0,1,[0,1]),k(E,S,"translateX",h,0,1,[20,0],u.ve,o.outQuad),k(E,S,"translateY",h,0,1,[5,0],u.ve,o.outQuad),k(E,M,"opacity",h,0,1,[1,0]),k(E,M,"translateX",h,0,1,[0,-20],u.ve,o.inQuad),k(E,M,"translateY",h,0,1,[0,-5],u.ve,o.inQuad)):n==y&&(a==s.OUT?k(E,M,"scale",h,0,1,[1,.5],u.Ju):a==s.IN&&k(E,M,"scale",h,0,1,[1,1.5],u.Ju),k(E,M,"opacity",h,0,1,[1,0]),a==s.OUT?k(E,S,"scale",h,0,1,[1.5,1],u.Ju):a==s.IN&&k(E,S,"scale",h,0,1,[.5,1],u.Ju),k(E,S,"opacity",h,0,1,[0,1])),E}}(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.pl={responsive:!1,slideWidth:500,slideHeight:800},this.Tn=!1,this.vl=[],this.ml=[],this.$e=1,this.Dr=null,this.Fs=null,this.bl=null,this.wl=null,this.gl=null,this._l=null,this.Tl=null,this.yl=null,this.kl="",this.xl=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.xl,e);var n=this;this.El={mode:s.AUTOFIT,prevMode:s.AUTOFIT,register:function(){var e=this;this.Sl=function(){var h=t.fullscreen.fullscreenElement();if(h){var r=i(n.kl)[0];h==r&&(i(r).addClass("ap-fullscreen"),n.layout())}else i(n.kl).removeClass("ap-fullscreen"),e.mode==s.FULLSCREEN?e.changeMode(e.prevMode):n.layout()},t.fullscreen.addEventListener("fullscreenchange",this.Sl,!1)},unregister:function(){t.fullscreen.removeEventListener("fullscreenchange",this.Sl,!1)},changeMode:function(e){if(this.mode!=e){var h=n.stage()[0];h&&(h.scrollLeft=h.scrollTop=0),this.prevMode=this.mode,this.mode=e,i(n).trigger("ui:ap-displayModeChanged",[e]),this.mode==s.FULLSCREEN?t.fullscreen.requestFullscreen(i(n.kl)[0]):t.fullscreen.fullscreenElement()?t.fullscreen.exitFullscreen():n.layout()}}}},container:function(){return i(this.kl)},stage:function(){return i(".ap-stage",i(this.kl))},canvas:function(){return i(".ap-canvas",i(this.kl))},contentArea:function(){return i(".ap-content-area",i(this.kl))},sidebar:function(){return i(".ap-side-bar",i(this.kl))},sidebarExpand:function(){return i(".ap-side-bar-expand",i(this.kl))},companyLogo:function(){return i(".ap-company-logo",i(this.kl))},presenterInfo:function(){return i(".ap-presenter-info",i(this.kl))},tocContainer:function(){return i(".ap-toc-container",i(this.kl))},resourcesContainer:function(){return i(".ap-resources-container",i(this.kl))},topbar:function(){return i(".ap-toolbar-top",i(this.kl))},bottombar:function(){return i(".ap-toolbar-bottom",i(this.kl))},toolbar:function(){return this.bottombar()},showToc:function(t){this.bl&&(t?(this.bl.show(),this.bl.scrollToCurrentSlide()):this.bl.hide(),2==this.Dr.TocStyle&&this.layout())},tocVisible:function(){return!(!this.bl||!this.bl.isShow())},showSidebar:function(t){t?(this.sidebar().show(),this.tocVisible()&&this.bl.scrollToCurrentSlide()):this.sidebar().hide(),this.layout()},sidebarVisible:function(){var t=this.sidebar();return t&&"none"!=t.css("display")},showResources:function(t){this.yl&&(t?this.yl.show():this.yl.hide())},resourcesVisible:function(){return this.yl&&this.yl.isShow()},showTopbar:function(t){this.gl&&(t?this.gl.show():this.gl.hide(),this.layout())},topbarVisible:function(){return this.gl&&this.gl.visible()},showBottombar:function(t){this.wl&&(t?this.wl.show():this.wl.hide(),this.layout())},bottombarVisible:function(){return this.wl&&this.wl.visible()},showToolbar:function(t){this.showBottombar(t)},toolbarVisible:function(){return this.bottombarVisible()},isAutoFit:function(){return this.El.mode==s.AUTOFIT||this.El.mode==s.FULLSCREEN},getMaxContentSize:function(){var t,s,e,n,h,r,a=this.Dr.SideBarPos,o=this.topbar(),u=this.bottombar(),c=this.sidebar(),l=i(this.kl),f=parseInt(this.contentArea().css("padding-left"));return t=0==c.length||"none"==c.css("display")||0==a?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=l.width()-t-(t>0?3:2)*f,h=l.height()-s-e-2*f,n=r,void 0!==this.Ml&&r>this.Ml&&(r=this.Ml),{width:r,height:h,maxContainerWidth:n}},setMaxContentWidth:function(t){this.Ml=t},setSlideSize:function(i,s){this.pl.slideWidth===i&&this.pl.slideHeight===s||(t.logDebug("Change slide size from "+this.pl.slideWidth+"x"+this.pl.slideHeight+" to "+i+"x"+s),this.pl.slideWidth=i,this.pl.slideHeight=s,this.layout())},getContainerFitRect:function(){var t,s,e,n,h,r,a,o,u=this.Dr.SideBarPos,c=this.topbar(),l=this.bottombar(),f=this.sidebar(),d=this.contentArea(),p=i(this.kl),v=d.width(),m=d.height(),b=d.position().top,w=parseInt(d.css("padding-left")),g=0;return 0!=f.length&&"none"!=f.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==l.length||"none"==l.css("display")?(a=r=o=0,m-=w):(a=l.outerWidth(!0),r=l.outerHeight(!0),o=l.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}},Pl:function(){var t=i("<div>").css({visibility:"hidden",width:100,height:100,overflow:"scroll"}).appendTo(i(this.kl)),s=i("<div>").css({width:"100%"}).appendTo(t).outerWidth();return t.remove(),100-s},layout:function(){if(this.Tn){var t,e,n,h,r,a,o,u,c,l=this.pl.slideWidth,f=this.pl.slideHeight,d=this.Dr.SideBarPos,p=this.getMaxContentSize(),v=this.stage(),m=this.canvas(),b=this.contentArea(),w=this.sidebar(),g=this.sidebarExpand(),_=this.topbar(),T=this.bottombar(),y=i(this.kl),k=parseInt(this.contentArea().css("padding-left")),x=this.El.mode,E=0==this.Dr.PlayerSize,S=this.Pl(),M=S;if(this.pl.responsive){t=p.width,e=Math.min(p.height,f);var P=!1;if(x==s.FULLSCREEN&&p.maxContainerWidth>t){var I=p.maxContainerWidth/l;f*I>p.height&&(I=p.height/f),I>1&&(P=!0,e=f*I,t=l*I,v.css("overflow-x","hidden"),v.css("overflow-y","hidden"),v.width(t).height(e),m.width(l).height(f),m.css("transform","scale("+I+","+I+")"),m.css("transform-origin","0% 0%"),S=0,M=0)}P||(f!=e?v.css("overflow-y","auto"):v.css("overflow-y","hidden"),v.width(t).height(e),m.width("100%").height(f),m.css("transform",""),m.css("transform-origin",""),S=f>e?S:0,M=0)}else(e=f*(I=p.width/l))>p.height&&(I=p.height/f),this.isAutoFit()||I<1?(t=l*I,e=f*I):(t=l,e=f,I=1),v.width(t).height(e),this.isAutoFit()?(v.css("overflow-x","hidden"),v.css("overflow-y","hidden"),m.width(l).height(f),m.css("transform","scale("+I+","+I+")"),m.css("transform-origin","0% 0%"),S=0,M=0):(l!=t?v.css("overflow-x","auto"):v.css("overflow-x","hidden"),f!=e?v.css("overflow-y","auto"):v.css("overflow-y","hidden"),m.width(l).height(f),m.css("transform",""),m.css("transform-origin",""),M=l>t?M:0,S=f>e?S:0),this.$e=I,m.trigger("ap-scaleChanged");n=0==w.length||"none"==w.css("display")||0==d?0:w[0].offsetWidth,h=0==_.length||"none"==_.css("display")?0:_.outerHeight(!0),r=0==T.length||"none"==T.css("display")?0:T.outerHeight(!0),a=v.width()+n+(n>0?3:2)*k+S,u=v.height()+2*k+M,o=(y.width()-a)/2,c=h+(y.height()-u-h-r)/2,E?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)*k,top:k}),w.css({left:k,top:k,height:v.height()+M})):2==d?(v.css({left:k,top:k}),w.css({left:v.width()+2*k,top:k,height:v.height()+M})):(v.css({left:k,top:k}),w.hide()),E?(_.css({left:0,top:0}).outerWidth(y.width()),T.css({left:0,top:y.height()-r}).outerWidth(y.width())):(_.css({left:o,top:0}).outerWidth(a),T.css({left:o,top:h+u}).outerWidth(a));var C=this.Dr.SideBarWidth;a=v.width()+C+(C>0?3:2)*k+S,C<=2*(t-C+26)||a<y.width()?"none"!=g.css("display")&&this.wn(!0):C>2*t&&this.wn(!1),this.Il=this.getContainerFitRect(),this.Tl&&this.Tl.layout(this.Il),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.Tn=!0,this.kl=s,this.Dr=r,this.pl=o,this.pl.responsive&&(t.fullscreen.fullscreenEnabled()||(this.Dr.ShowDisplayModeBtn=!1)),this.pa=o.playerIcons,this.vl=[],this.ml=[],this.Cl=n,this.Fs=new t.Locale(this.pl.language,this.pl.textDir),this.gl=""!=u?new t.RLToolbar(this,u,!0):null,this.wl=""!=c?new t.RLToolbar(this,c,!1):null,this.contentArea().append(l),0==r.TocStyle||0==this.tocContainer().length?(this.bl=null,this.tocContainer().remove()):(1==r.TocStyle&&(this.tocContainer().appendTo(this.container()),this.tocContainer().hide()),this.bl=new t.RLToc(this,e,n),this.Rl=function(){this.tocContainer()&&(1==r.TocStyle&&this.tocVisible()&&this.bl&&i(".ap-tool-toc",s)&&this.Al())},i(this).on("ui:ap-layout",this.Rl)),!h||h.length<=0||0==this.resourcesContainer().length?(this.yl=null,this.resourcesContainer().remove()):(this.resourcesContainer().appendTo(this.container()),this.resourcesContainer().hide(),this.yl=new a(this,h),this.Nl=function(){var t=this.resourcesContainer();if(t&&this.yl){var e=i(".ap-tool-resources",s);e&&this.Dl(e,t,400,300)}},i(this).on("ui:ap-layout",this.Nl)),!1===r.ShowTopBar&&this.showTopbar(!1),this.Ol(),this.Ll(this.kl),this.El.register(),this.El.changeMode(this.Dr.DisplayMode),t.browser.macOS){var f=this;setTimeout(function(){f.layout()},100)}else this.layout()},Ol:function(){var t=this,e=this.Fs,n=i(this.kl),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)})}),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.pl.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.vl;for(o=0,u=c.length;o<u;++o)c[o].setValue(a);void 0!==t.Yl&&Math.round(a/1e3)==Math.round(this.Yl/1e3)||(t.Yl=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.ml;for(e=0,n=h.length;e<n;++e)h[e].setValue(s)}),h.on("ui:ap-pause",function(){t.Fl=!0}),h.on("ap-toc",function(s,h){i(".ap-tool-toc",n).each(function(s){var n=i(this);t.bl&&("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))})}),"Demo"==t.pl.playMode&&t.stage().on("click",function(){h.trigger("ui:ap-pause")})},Ul:function(){"Demo"==this.pl.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")},Ll:function(t){var e=this,n=this.pl.responsive,h=i(t),r=this.Fs;this.Xl(t),i(".ap-tool-restart",h).on("click",function(){i(e).trigger("ui:ap-restart")}),i(".ap-tool-first",h).on("click",function(){i(e).trigger("ui:ap-first")}),i(".ap-tool-prev",h).on("click",function(){i(e).trigger("ui:ap-previous")}),i(".ap-tool-play",h).on("click",function(){i(e).trigger("ui:ap-pause")}),i(".ap-tool-next",h).on("click",function(){i(e).trigger("ui:ap-next")}),i(".ap-tool-last",h).on("click",function(){i(e).trigger("ui:ap-last")}),i(".ap-tool-speed_0_5",h).on("click",function(){i(e).trigger("ui:ap-speed",[.5])}),i(".ap-tool-speed_1_0",h).on("click",function(){i(e).trigger("ui:ap-speed",[1])}),i(".ap-tool-speed_1_5",h).on("click",function(){i(e).trigger("ui:ap-speed",[1.5])}),i(".ap-tool-speed_2_0",h).on("click",function(){i(e).trigger("ui:ap-speed",[2])}),i(".ap-tool-sound",h).on("click",function(){i(e).trigger("ui:ap-sound")}),i(".ap-tool-cc",h).on("click",function(){i(e).trigger("ui:ap-cc")}),i(".ap-tool-about",h).on("click",function(){i(e).trigger("ui:ap-about")}),i(".ap-tool-actualsize",h).on("click",function(){e.El.changeMode(s.ACTUAL_SIZE)}),i(".ap-tool-autofit",h).on("click",function(){e.El.changeMode(s.AUTOFIT)}),i(".ap-tool-fullscreen",h).on("click",function(){e.El.changeMode(s.FULLSCREEN)}),i(".ap-tool-toc",h).on("click",function(){return i(e).trigger("ui:ap-toc"),1!=e.Dr.TocStyle||(e.Al(),!1)}),i(".ap-tool-sidebar",h).on("click",function(){i(e).trigger("ui:ap-sidebar")}),i('.ap-tool-speed[role="button"]',h).on("click",function(){return e.Bl(this),!1}),i('.ap-tool-displaymode[role="button"]',h).on("click",function(){return e.pl.responsive?(e.El.mode==s.FULLSCREEN?e.El.changeMode(s.ACTUAL_SIZE):e.El.changeMode(s.FULLSCREEN),!0):(e.Hl(this),!1)}),i('.ap-tool-setting[role="button"]',h).on("click",function(){return e.zl(this),!1}),i(".ap-tool-resources",h).on("click",function(){return i(e).trigger("ui:ap-resources"),e.Dl(this,e.resourcesContainer(),400,300),!1}),i(".ap-tool-exit",h).on("click",function(){i(e).trigger("ui:ap-exit")}),i(".ap-side-bar-expand",h).on("click",function(){"true"===e.sidebarExpand().attr("data-value")?e.wn(!1,!0):e.wn(!0,!0)});for(var a=0,o=0;o<this.Cl.length;++o)a+=this.Cl[o].duration;i(".ap-tool-progress",h).each(function(s){var n={followMouse:!1,max:a,slideInfos:e.Cl};n.thumbnailPrefixPath=e.pl.resourceLocation+e.pl.fileNamePrefix;var h=new u(i(this),e.Dr,n);h.Gl=t,e.vl.push(h),i(h).on("valueChanged",function(t,s){i(e).trigger("ui:ap-progress",[s])})}),i(".ap-tool-volume",h).each(function(s){var n=new u(i(this),i.extend({},e.Dr,{Navigation:!0}),{followMouse:!0});n.Gl=t,e.ml.push(n),i(n).on("valueChanging",function(t,s){i(e).trigger("ui:ap-volume",[s])}).on("valueChanged",function(t,s){i(e).trigger("ui:ap-volume",[s])})}),i(".ap-tool-duration",h).html(r.number(AtomiAP.formatMSString(a))),i(".ap-tool-slide-count",h).html(r.number(this.Cl.length||0)),i(".ap-tool-projectname",h).html(e.pl.projectName),i(".ap-tool-projectdesc",h).html(e.pl.description),i(".ap-tool-displaymode",h).attr("data-value",n?"2":e.El.mode),i(".ap-presenter-info",h).each(function(t){if(e.Dr.ShowAuthorInfo||e.Dr.ShowAuthorImage||e.Dr.ShowCompanyLogo||e.Dr.ShowAuthorVideo){if(e.Dr.ShowCompanyLogo&&e.pl.companyLogo){var s=e.pl.companyLogo[0],n=e.pl.companyLogo[1],h=e.pl.resourceLocation+e.pl.fileNamePrefix+"res_"+s+"."+(0==n?"png":1==n?"jpg":"gif");i(this).append('<div class="ap-company-logo"><img src="'+h+'" /></div>')}if(e.Dr.ShowAuthorImage&&e.pl.authorImage){s=e.pl.authorImage[0],n=e.pl.authorImage[1],h=e.pl.resourceLocation+e.pl.fileNamePrefix+"res_"+s+"."+(0==n?"png":1==n?"jpg":"gif");i(this).append('<div class="ap-presenter-image"><img src="'+h+'" /></div>')}e.Dr.ShowAuthorVideo&&i(this).append('<div class="ap-presenter-video"></div>'),e.Dr.ShowAuthorInfo&&(e.pl.authorName&&i(this).append('<div class="ap-presenter-name">'+e.pl.authorName+"</div>"),e.pl.authorDesc&&i(this).append('<div class="ap-presenter-desc">'+e.pl.authorDesc+"</div>")),i(this).show()}else i(this).hide()})},Xl:function(t){var s,e,n,h,r=i(t),a=this.Fs,o=this.Dr,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"]],["ap-side-bar-expand","ShowSidebar",this.sidebarVisible(),["rightarrow"]]];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.pa){for(var c='<div class="ap-button-icon">',l=n[3],f=0;f<l.length;++f)c+=this.pa[l[f]];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")}},Vl:function(t){var s=i(t);i(".ap-tool-restart",s).off("click"),i(".ap-tool-first",s).off("click"),i(".ap-tool-prev",s).off("click"),i(".ap-tool-play",s).off("click"),i(".ap-tool-next",s).off("click"),i(".ap-tool-last",s).off("click"),i(".ap-tool-speed",s).off("click"),i(".ap-tool-speed_0_5",s).off("click"),i(".ap-tool-speed_1_0",s).off("click"),i(".ap-tool-speed_1_5",s).off("click"),i(".ap-tool-speed_2_0",s).off("click"),i(".ap-tool-sound",s).off("click"),i(".ap-tool-about",s).off("click"),i(".ap-tool-cc",s).off("click"),i(".ap-tool-toc",s).off("click"),i(".ap-tool-sidebar",s).off("click"),i(".ap-tool-displaymode",s).off("click"),i(".ap-tool-actualsize",s).off("click"),i(".ap-tool-autofit",s).off("click"),i(".ap-tool-fullscreen",s).off("click"),i(".ap-tool-setting",s).off("click"),i(".ap-tool-resources",s).off("click"),i(".ap-tool-exit",s).off("click"),i(".ap-side-bar-expand",s).off("click");var e,n,h,r=this.vl;for(this.vl=[],e=0,n=r.length;e<n;++e)(h=r[e]).Gl==t?(i(h).off("valueChanged"),h.destroy()):this.vl.push(h);for(r=this.ml,this.ml=[],e=0,n=r.length;e<n;++e)(h=r[e]).Gl==t?(i(h).off("valueChanged").off("valueChanging"),h.destroy()):this.ml.push(h)},destroy:function(){this.El.unregister(),this.Ul(),this.Vl(this.kl),this.bl&&(this.bl.destroy(),this.bl=null),this.wl&&(this.wl.destroy(),this.wl=null),this.gl&&(this.gl.destroy(),this.gl=null),this.yl&&(this.yl.destroy(),this.yl=null),this.Wl(),this.contentArea().remove(),this.Tn=!1},appendTo:function(t){i(t).append(this.xl),this.Tn||i(this.xl).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.Fs;this.Tl&&this.Tl.close();var a=this,o=new t.RLPopup(i,a);o.setOptions({isShowClose:s,overlay:!0,navItems:h,textDirection:a.pl.textDir,closeText:r.text("Close")}),o.onShow(function(){a.Tl=o,e&&e()}),o.onClose(function(){a.Tl=void 0,n&&n()}),o.show(this.kl,this.Il)},showAbout:function(t,i,s){var e=[],n="",h=this.Fs;""!=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)},showUnmuteHintMsg:function(){var t,s,e;e=this.stage(),i(this.kl),t='<div id="UnmuteHint" style="position:absolute;top:20px;left:0px;width:100%;height:auto;z-index:8;pointer-events:none;text-align:right;background-color:none;"><span style="background-color:rgba(255, 255, 255, 0.8);padding:15px;font-size:16px;font-family:Arial;border: 1px solid #777777;margin:10px;">'+this.Fs.text("ClickToUnmute")+"</span></div>",e.append(t),s=i("#UnmuteHint",e),setTimeout(function(){s.fadeOut(400,function(){s.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.Fl){n.Fl=!1,n.$l&&clearTimeout(n.$l),n.jl&&clearTimeout(n.jl),i(".ap-prez-state-btn",e).remove(),s='<div class="ap-prez-state-btn" data-animating="false">'+n.pa[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.$l=setTimeout(function(){r.setAttribute("data-animating","true"),n.$l=void 0},100),n.jl=setTimeout(function(){r.parentNode.removeChild(r),n.jl=void 0},2e3)}}},Dl:function(t,s,e,n){var h,r,a,o,u,c,l,f,d=this.container(),p=this.Il,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),l=d.offset().left+d.width()-(v.offset().left+v.width()+h),f=v.offset().left-(d.offset().left+h),u<0&&c<0&&l<0&&f<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))):l>=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)},Al:function(){if(this.bl&&this.tocVisible()){var t,s,e,n,h=this.container(),r=i(".ap-toc-content-wrapper",h),a=i(".ap-tool-toc",h),o=i(".ap-toc-container",h),u=i(".ap-toc-header",h),c=i(".ap-toc",h),l=this.topbar(),f=this.bottombar(),d=a.offset().left,p=0==l.length||"none"==l.css("display")?0:l.outerHeight(!0),v=0==f.length||"none"==f.css("display")?0:f.outerHeight(!0),m=this.Il,b=o.outerHeight(!0)-o.innerHeight()+u.outerHeight(!0)-u.innerHeight(),w=o.outerWidth(!0)-o.innerWidth();t=Math.min(400,m.width-w)+w,s=Math.min(c.outerHeight(!0)+u.outerHeight(!0),m.height-v-p)+b,e=Math.min(d+a.outerWidth(!0)/2-t/2,m.x+m.width-t),n=m.y+m.height-v-s,o.css({left:e,top:n,position:"absolute"}).outerWidth(t,!0).outerHeight(s,!0),r.css({"min-height":"0"}),s-b<=u.outerHeight(!0)?(r.css({overflow:""}),o.css({overflow:"auto"})):(r.css({overflow:"auto"}),o.css({overflow:""}))}},Ql:function(t,s,e){var n=this.container(),h=this;t.appendTo(n),t.attachEventHanlders(function(t){h.Ll(t)}),t.show(s,e,function(){t.detachEventHandlers(function(t){h.Vl(t)}),i(h).off("ui:ap-layout.hideMenu")}),i(h).on("ui:ap-layout.hideMenu",function(){t.destroy()})},Bl:function(t){var s=this.Kl("mnuspeed");if(s)s.destroy();else{var e=i(t).attr("data-value");void 0==e&&(e=1),(s=new o("mnuspeed",this.pa,this)).addRadioMenuItem("ap-tool-speed_0_5","0.5x",.5==e),s.addRadioMenuItem("ap-tool-speed_1_0","1.0x",1==e),s.addRadioMenuItem("ap-tool-speed_1_5","1.5x",1.5==e),s.addRadioMenuItem("ap-tool-speed_2_0","2.0x",2==e),this.Ql(s,t,!0)}},Hl:function(i){var e="mnudisplaymode",n=this.Kl(e);if(n)n.destroy();else{var h=this.Fs;(n=new o(e,this.pa,this)).addRadioMenuItem("ap-tool-actualsize",h.text("ActualSize"),this.El.mode==s.ACTUAL_SIZE),n.addRadioMenuItem("ap-tool-autofit",h.text("AutoFit"),this.El.mode==s.AUTOFIT),t.fullscreen.fullscreenEnabled()&&n.addRadioMenuItem("ap-tool-fullscreen",h.text("FullScreen"),this.El.mode==s.FULLSCREEN),this.Ql(n,i,!0)}},ql:function(t){return this.Jl?this.Jl.push(t):this.Jl=[t],this},Kl:function(t){if(this.Jl)for(var i=0;i<this.Jl.length;++i)if(this.Jl[i].id()==t)return this.Jl[i];return null},Zl:function(t){if(this.Jl){var i=this.Jl.indexOf(t);i>=0&&this.Jl.splice(i,1)}return this},Wl:function(){if(this.Jl)for(;this.Jl.length;)this.Jl[this.Jl.length-1].destroy();return this},zl:function(e){var n="mnusetting",h=this.Kl(n);if(h)h.destroy();else{var r=this.container(),a=this.Fs,u=this,c=this.pl.responsive;h=new o(n,u.pa,this);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(i){if(e.hasClass(i)){var n="";switch(i){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(i,e.attr("title"));break;case"ap-tool-play":case"ap-tool-cc":case"ap-tool-sound":n||("ap-tool-play"==i?n="PausePrez":"ap-tool-cc"==i?n="ClosedCaption":"ap-tool-sound"==i&&(n="Mute")),h.addToggleMenuItem(i,a.text(n),"true"==e.attr("aria-pressed"));break;case"ap-tool-speed":var r=e.attr("data-value");void 0==r&&(r=1);var l=new o("mnuspeed",u.pa);l.addMenuHeaderItem(a.text("PlaybackSpeed")),l.addRadioMenuItem("ap-tool-speed_0_5","0.5x",.5==r),l.addRadioMenuItem("ap-tool-speed_1_0","1.0x",1==r),l.addRadioMenuItem("ap-tool-speed_1_5","1.5x",1.5==r),l.addRadioMenuItem("ap-tool-speed_2_0","2.0x",2==r),h.addSubMenuItem(i,e.attr("title"),l);break;case"ap-tool-displaymode":if(c)t.fullscreen.fullscreenEnabled()&&(u.El.mode==s.FULLSCREEN?h.addToggleMenuItem("ap-tool-autofit",a.text("FullScreen"),!0):h.addToggleMenuItem("ap-tool-fullscreen",a.text("FullScreen"),!1));else{var f=new o("mnudisplaymode",u.pa);f.addMenuHeaderItem(a.text("DisplayMode")),f.addRadioMenuItem("ap-tool-actualsize",a.text("ActualSize"),u.El.mode==s.ACTUAL_SIZE),f.addRadioMenuItem("ap-tool-autofit",a.text("AutoFit"),u.El.mode==s.AUTOFIT),t.fullscreen.fullscreenEnabled()&&f.addRadioMenuItem("ap-tool-fullscreen",a.text("FullScreen"),u.El.mode==s.FULLSCREEN),h.addSubMenuItem(i,e.attr("title"),f)}}}})}),this.Ql(h,e,!0)}},wn:function(t,s){if(!0!==this.tf){var e=this.sidebar(),n=this.presenterInfo(),h=this.tocContainer(),r=this.sidebarExpand();t?(n.show(),2==this.Dr.TocStyle&&("false"!==h.attr("toc-show")&&h.show(),h.attr("sidebar-expand",!0)),e.css({width:""}),r.attr({"icon-type":1==this.Dr.SideBarPos?"left":"right",title:this.Fs.text("HideSidebar"),"data-value":"true"}),s||r.hide(),i(this).trigger("ui:ap-expand-sidebar",[!0]),this.tf||(this.tf=!0)):(n.hide(),2==this.Dr.TocStyle&&(h.hide(),h.attr("sidebar-expand",!1)),r.show(),e.css({width:26}),r.attr({"icon-type":1==this.Dr.SideBarPos?"right":"left",title:this.Fs.text("ShowSidebar"),"data-value":"false"}),this.tf||(this.tf=!0)),1==this.tf&&(this.layout(),this.tf=void 0)}},updateTocEntries:function(t){this.bl&&this.bl.updateEntries(t)}}),n=t.createClass({$init:function(t,i){this.pl={isShowClose:!0,overlay:!0,navItems:[],textDirection:"ltr",closeText:"Close",showCallback:void 0,closeCallback:void 0},this.if=null,this.sf=null,this.ef=null,this.nf=null,this.hf=t,this.rf=i,this.rf&&this.rf.ql(this)},af: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.pl.closeText+'"> \t\t\t\t\t\t\t</a> \t\t\t\t\t\t</div> \t\t\t\t\t</div>';this.if=i(t),this.sf=i(".ap-popup-close",this.if),this.ef=i(".ap-popup-content",this.if),"rtl"==this.pl.textDirection&&(i(".ap-popup-content",this.if).attr("dir",this.pl.textDirection).css("text-align","right"),i(".ap-popup-footer",this.if).attr("dir",this.pl.textDirection).css("text-align","left")),this.ef.append(this.hf);for(var s=0;s<this.pl.navItems.length;++s)this.pl.navItems[s]=i(this.pl.navItems[s],this.if)},uf:function(){0!=this.pl.overlay&&(this.nf=i('<div class="ap-popup-hide ap-popup-overlay"></div>'))},setOptions:function(t){i.extend(this.pl,t)},getDom:function(){return this.if},show:function(t,s){this.kl=t,this.cf=i(this.kl).attr("tabindex"),i(this.kl).attr("tabindex",1),s||(s={x:0,y:0,width:i(t).outerWidth(),height:i(t).outerHeight()}),this.af(),this.uf(),i(this.kl).append(this.if),0==this.pl.isShowClose&&i(".ap-popup-footer",this.if).hide(),this.if.attr("role","dialog"),this.showOverlay(),this.layout(s),this.pl.showCallback&&this.pl.showCallback();var e=this,n=this.pl.navItems,h=-1;this.pl.isShowClose&&(this.sf.click(function(){e.close()}),n.push(this.sf),h=n.length-1,this.sf.attr("tabindex","0"),this.sf.focus()),i(this.kl).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.kl).focus()},showOverlay:function(){0!=this.pl.overlay&&(i(this.kl).append(this.nf),this.nf.hide().addClass("ap-popup-overlayBG").fadeIn(200))},hideOverlay:function(){if(0!=this.pl.overlay){var t=this;this.nf.fadeOut(200,function(){t.nf.removeClass("ap-popup-overlayBG"),t.nf.addClass("ap-popup-hide"),t.nf.remove()})}},close:function(){this.if.remove(),this.hideOverlay(),this.pl.closeCallback&&this.pl.closeCallback(),i(this.kl).unbind("keydown.popup").unbind("focus.popup").unbind("mousedown.popup"),i(this.kl).attr("tabindex",this.cf),this.rf&&this.rf.Zl(this)},onClose:function(t){this.pl.closeCallback=t},onShow:function(t){this.pl.showCallback=t},layout:function(t){this.nf.width(t.width).height(t.height),this.nf.css({left:t.x,top:t.y});var s=Math.min(.5*t.width,370),e=i(".ap-popup-content",this.if).innerHeight()+i(".ap-popup-footer",this.if).innerHeight()+10;this.if.css({width:s,height:e});var n=t.x+(t.width-s)/2-20,h=t.y+(t.height-e)/2-20;this.if.css({left:n,top:h})},destroy:function(){this.close()}}),h=t.createClass({$init:function(t){this.no="",this.lf=-1,this.ff="",this.df="",this.pf=0,this.vf=!0,this.wa=t,this.mf=[],this.bf=!1,this.es=!1,this.if=null},wf:function(){var t,i,s=this.mf;for(this.bf=!0,this.es=!1,t=0,i=s.length;t<i;++t)s[t].bf||(this.bf=!1),s[t].es&&(this.es=!0);this.if&&this.if.attr("data-status",this.es?"current":this.bf?"completed":"incomplete"),this.wa&&this.wa.wf()},gf:function(){this.if&&this.if.attr("data-status",this.es?"current":this.bf?"completed":"incomplete"),this.wa&&this.wa.wf()},setCompleted:function(t){this.bf=t,this.gf()},setCurrent:function(t){this.es=t,this.gf()},getChildIndex:function(t){var i,s,e=this.mf;for(i=0,s=e.length;i<s;++i)if(e[i].no==t.no)return i;return-1},hasChildren:function(){return this.mf.length>0},isSlide:function(){return this.lf>=0},getExpandIconDom:function(){return i(".ap-toc-entry-icon",this.if)}}),r=t.createClass({$init:function(t,s,e){this.rf=t,this._f=[],this.Tf=null,this.yf=null,this.kf=t.tocContainer(),this.kl=t.kl,this.Fs=t.Fs,this.xf={};for(var n=0;n<e.length;++n)e[n].thumb&&(this.xf[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.Fs.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.kf.append(h),this.Ef=i(".ap-toc",this.kf),this.Sf=i(".ap-tool-toc-close",this.kf),this.Sf.append(t.pa.closepane),this.Sf.attr("role","button").attr("title",this.Fs.text("Close")),this.Sf.on("click",function(){t.tocVisible()&&i(t).trigger("ui:ap-toc")}),2==t.Dr.TocStyle&&(this.Sf.hide(),this.kf.attr("toc-show",!0)),this.Mf(s),n=0;n<this._f.length;++n)this.Pf(this._f[n],0);this.Ia(),this.If();var r=this;this.Cf=function(t,i,s,e){i<0||s<0||r.setCurrentEntry(s)},this.Rf=function(t,i,s){r.setCompletedEntry(i,s)},i(t).on("ap-progress.toc",this.Cf),i(t).on("ap-slideCompleted.toc",this.Rf)},updateEntries:function(t){this.Af(),this._f=[],this.Tf=null,this.yf=null,this.Ef.empty(),this.Mf(t);for(var i=0;i<this._f.length;++i)this.Pf(this._f[i],0);if(void 0!=this.Nf){var s=this.Nf;this.Nf=void 0,this.setCurrentEntry(s)}this.Ia(),this.If()},If:function(){var t,i,s,e=this.rf;if(e)if(1==e.Dr.ShowMaxTocLevel)for(t=0,i=this._f.length;t<i;++t)s=this._f[t],this.Df(s);else for(t=0,i=this._f.length;t<i;++t)s=this._f[t],this.Of(s)},destroy:function(){var t=i(this.rf);this.Sf.off("click"),this.Sf=null;var s=[];this.Lf(s,null);for(var e=0;e<s.length;++e){var n=s[e];n.isSlide()?n.if.off("click"):n.getExpandIconDom().off("click"),n.if.off("focusin").off("focusout")}t.off("ap-progress.toc",this.Cf).off("ap-slideCompleted.toc",this.Rf),this._f=[],this.Tf=null,this.yf=null,this.Ef.off("focus").off("focusout").off("keydown"),this.kf.remove(),this.kf=null,this.Ef.remove(),this.Ef=null},show:function(){this.Yf="click.TocPane";var t=this;if(i(document).bind(t.Yf,function(s){1==t.rf.Dr.TocStyle&&(i(s.target).closest(".ap-toc-container").is(t.kf)||(t.hide(),i(document).unbind(t.Yf),i(t.rf).trigger("ap-toc",[!1])))}),this.kf){var s=this.kf.attr("sidebar-expand");void 0!=s&&"true"!=s||this.kf.show(),2==this.rf.Dr.TocStyle&&this.kf.attr("toc-show",!0)}},hide:function(){this.kf&&(this.kf.hide(),2==this.rf.Dr.TocStyle&&this.kf.attr("toc-show",!1))},isShow:function(){if(this.kf&&this.kf.length>0){var t=this.kf.attr("toc-show");return 2!=this.rf.Dr.TocStyle||void 0==t?"none"!=this.kf.css("display"):"true"==t}return!1},Ff:function(t){for(var i=0;i<this._f.length;++i)if(this._f[i].no==t.no)return i;return-1},Lf:function(t,i){var s;s=null==i?this._f:i.mf;for(var e=0;e<s.length;++e)t.push(s[e]),this.Lf(t,s[e])},Uf:function(t,i){var s;s=null==i?this._f:i.mf;for(var e=0;e<s.length;++e){var n=s[e];if(n.lf==t)return n;if(n.hasChildren()){var h=this.Uf(t,n);if(null!=h)return h}}return null},Xf:function(t){this.Tf&&(this.Tf.setCurrent(!1),this.Tf=null),t&&(this.Tf=t,this.Tf.setCurrent(!0))},Bf:function(t){null!=this.yf&&(this.yf.if.attr("tabindex","-1"),this.yf=null),t.if.attr("tabindex","0"),t.if.focus()},Hf:function(t,i){var s,e=i.mf;for(s=0;s<e.length;++s)this.Hf(!1,e[s]);t||i.if.hide()},zf:function(t,i){t||i.if.show();var s,e=i.mf;if("true"==i.if.attr("aria-expanded")||t)for(s=0;s<e.length;++s)this.zf(!1,e[s])},Df:function(t){t.if.attr("aria-expanded","true"),t.vf=!0,this.zf(!0,t),null!=this.Gf&&this.Gf.no==t.no&&this.Vf(this.Tf)},Of:function(t){if(t.if.attr("aria-expanded","false"),t.vf=!1,this.Hf(!0,t),t.hasChildren()&&null!=this.Tf)for(var i=this.Tf.wa;null!=i;){if(i.no==t.no){this.Vf(this.Tf);break}i=i.parent}},Wf:function(t){var i;return null==t.wa?(i=this.Ff(t))>=0&&i<this._f.length-1?this._f[i+1]:null:(i=t.wa.getChildIndex(t))>=t.wa.mf.length-1?this.Wf(t.wa):t.wa.mf[i+1]},$f:function(t){if(t.vf&&t.hasChildren()){var i=t.mf[t.mf.length-1];return this.$f(i)}return t},jf:function(){if(null!=this.yf){var t=null;null!=(t=this.yf.vf&&this.yf.hasChildren()?this.yf.mf[0]:this.Wf(this.yf))&&(this.yf.if.blur(),this.yf=null,t.if.focus())}},Qf:function(){if(null!=this.yf){var t,i=null;if(null==this.yf.wa)(t=this.Ff(this.yf))>0&&(i=this.$f(this._f[t-1]));else i=(t=this.yf.wa.getChildIndex(this.yf))>0?this.$f(this.yf.wa.mf[t-1]):this.yf.wa;null!=i&&(this.yf.if.blur(),this.yf=null,i.if.focus())}},Kf:function(t){var i=0;if(t.isSlide())i+=t.pf;else for(var s=t.mf,e=0;e<s.length;++e)i+=this.Kf(s[e]);return i},qf:function(t,i,s,e){t.ff=i.t,t.df=i.n,t.lf=i.s,t.Jf=i.ti,i.d?t.pf=i.d:t.pf=0,t.no=""==s?e+"":s+"-"+e;var n=i.c;if(null!=n&&n.length>0){t.mf.length=0;for(var r=0;r<n.length;++r){var a=n[r],o=new h(t);this.qf(o,a,t.no,r+1),t.mf.push(o)}}},Mf:function(t){this._f.length=0;for(var i=0;i<t.length;++i){var s=t[i],e=new h(null);this._f.push(e),this.qf(e,s,"",i+1)}},Pf:function(s,e){var n,h,r=e+1,a=10*r,o=this.rf,u=o.pa,c=o.Dr.TocShowStateIcons,l=o.Dr.TocShowThumbnails,f=o.Dr.TocShowDuration;h='<tr class="ap-toc-entry" role="row" tabindex="-1" aria-level="'+r+'" data-status="incomplete"',s.hasChildren()?h+=' aria-expanded="'+s.vf+'">':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()?l&&void 0!=(n=this.xf[s.lf])&&(h+='<img class="ap-toc-entry-thumbnail" src="'+(o.pl.resourceLocation+o.pl.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.df&&s.df.length>0&&(h+='<div style="display:table-cell;">'+s.df+"&nbsp;</div>"),h+='<div style="display:table-cell;">'+s.ff+"</div>",h+="</div>",h+="</div></td>",c&&(h+='<td><div class="ap-toc-entry-status-icon">'+u.current+u.completed+"</div></td>"),f&&(h+='<td class="ap-toc-entry-duration">'+t.formatMSString(this.Kf(s))+"</td>"),h+="</tr>",s.if=i(h),this.Ef.append(s.if);for(var d=0;d<s.mf.length;++d)this.Pf(s.mf[d],r)},Ia:function(){var t=[];this.Lf(t,null);for(var s=this,e=0;e<t.length;++e){!function(t){t.isSlide()?t.if.on("click",function(){i(s.rf).trigger("ui:ap-showSlide",[t.lf])}):t.getExpandIconDom().on("click",function(){t.vf?s.Of(t):s.Df(t)}),t.if.on("focusin",function(){s.Ef.attr("tabindex",-1),t.if.attr("tabindex","0"),s.yf=t}),t.if.on("focusout",function(){t.if.attr("tabindex","-1"),s.yf=null})}(t[e])}this.Ef.on("focus",function(){var t=[];s.Lf(t),t.length>0&&(s.Bf(t[0]),s.Ef.attr("tabindex",-1))}).on("focusout",function(){null==s.yf&&s.Ef.attr("tabindex",0)}).on("keydown",function(t){switch(t.which){case 13:if(null!=s.yf)return i(s.rf).trigger("ui:ap-showSlide",[s.yf.lf]),!1;break;case 39:if(null!=s.yf)return 0==s.yf.vf&&s.yf.hasChildren()?s.Df(s.yf):s.yf.hasChildren()&&s.jf(),!1;break;case 37:if(null!=s.yf)return s.yf.vf&&s.yf.hasChildren()?s.Of(s.yf):null!=s.yf.wa&&s.Bf(s.yf.wa),!1;break;case 40:if(null!=s.yf)return s.jf(),!1;break;case 38:if(null!=s.yf)return s.Qf(),!1}})},Af:function(){var t=[];this.Lf(t,null);for(var i=0;i<t.length;++i){var s=t[i];s.isSlide()?s.if.off("click"):s.getExpandIconDom().off("click"),s.if.off("focusin").off("focusout")}this._f=[],this.Tf=null,this.yf=null,this.Ef.off("focus").off("focusout").off("keydown")},setCompletedEntry:function(t,i){var s=this.Uf(t);null!=s&&s.setCompleted(i)},setCurrentEntry:function(t){if(void 0===this.Nf||this.Nf!==t){var i=this.Uf(t);null!=i&&this.Xf(i);var s=this.rf;this.Nf=t,s.Dr.AutoScroll&&this.scrollToCurrentSlide()}},scrollToCurrentSlide:function(){if(null!=this.Tf){var t=i(this.kl),s=i(".ap-toc-content-wrapper",t);s[0].scrollTop+s[0].offsetHeight<this.Tf.if[0].offsetTop+this.Tf.if[0].offsetHeight?s[0].scrollTop=this.Tf.if[0].offsetTop+this.Tf.if[0].offsetHeight-s[0].clientHeight:this.Tf.if[0].offsetTop<s[0].scrollTop&&(s[0].scrollTop=this.Tf.if[0].offsetTop)}}}),a=t.createClass({$init:function(t,s){this.rf=t,this.Zf=-1,this.td=t.resourcesContainer(),this.td.hide(),this.kl=t.kl,this.sd=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.td.append(e),this.ed=i(".ap-resources-list",this.td);for(var n=0;n<s.length-1;++n)this.Pf(s[n]);this._f=i("li",this.ed).toArray(),this.Ia()},destroy:function(){for(var t=0;t<this._f.length;++t)i(this._f[t]).off("focusin").off("focusout");this.td.off("keydown"),this.td.remove(),this.td=null,this._f=[]},Ia:function(){var t=this,s=this.td,e=this._f;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.Zf])&&i(n).attr("tabindex",-1),0==t.Zf?t.Zf=e.length-1:t.Zf--,n=e[t.Zf],i(n).focus().attr("tabindex",0),!1):40==s.which?((n=e[t.Zf])&&i(n).attr("tabindex",-1),t.Zf==e.length-1?t.Zf=0:t.Zf++,n=e[t.Zf],i(n).focus().attr("tabindex",0),!1):void 0:((n=e[t.Zf])&&i("a",i(n))[0].click(),!1)});for(var n=0;n<this._f.length;++n)i(this._f[n]).on("focusin",function(){s.attr("tabindex",-1),i(this).attr("tabindex",0)}).on("focusout",function(){i(this).attr("tabindex",-1)})},show:function(){this.Yf="click.ResourcesPane";var t=this;i(document).bind(t.Yf,function(s){i(s.target).closest(".ap-resources-container").is(t.td)||(t.hide(),i(document).unbind(t.Yf))}),t.td.show(),t.td.attr("tabindex",-1),this.Zf<0&&(this.Zf=0);var s=this._f[this.Zf];s?i(s).attr("tabindex",0).focus():t.td.attr("tabindex",0).focus()},hide:function(){this.Yf&&i(document).off(this.Yf),this.td&&this.td.hide()},isShow:function(){return this.td&&this.td.length>0&&"none"!=this.td.css("display")},Pf:function(t){if(!(t.length<=1)){var i='<li><a href="';2==t.length?i+=t[1]:(i+=this.rf.pl.resourceLocation+this.rf.pl.fileNamePrefix+"res_"+t[1]+"."+t[2],i+='" download="'+t[0]+"."+t[2]),i+='" target="_blank">'+t[0],i+="</a></li>",this.ed.append(i)}}}),o=t.createClass({$init:function(t,s,e){this.pa=s,this.wa=null,this.nd=[],this.hd=null,this.if=i('<div id="'+t+'" class="ap-menu" tabindex="0" role="menu"></div>'),this.if.hide(),this.Zf=-1,this.Ia(),this.Yf=null,this.ad=null,this.rf=e,this.rf&&this.rf.ql(this)},id:function(){return this.if[0].id},destroy:function(){null!=this.Yf&&(i(document).unbind(this.Yf),this.Yf=null),this.od&&(this.od(),this.od=null);for(var t=0;t<this.nd.length;++t)this.nd[t].submenu&&this.nd[t].submenu.destroy(),this.nd[t].dom.off("click").off("focusin").off("focusout").off("keydown");this.nd=[],this.if&&(this.if.off("keydown"),this.if.remove(),this.if=null),this.pa=null,this.rf&&this.rf.Zl(this)},Ia:function(){var t=this;this.if.on("keydown",function(i){var s,e=t.nd;return 13!=i.which&&32!=i.which||i.altKey||i.shiftKey||i.ctrlKey?27==i.which?(t.wa?(t.hide(),t.wa.show(t.wa.ad,!0,t.wa.od)):t.destroy(),!1):9==i.which?(t.wa?(t.hide(),t.wa.show(t.wa.ad,!0,t.wa.od)):t.destroy(),!1):37==i.which?(t.wa&&(t.hide(),t.wa.show(t.wa.ad,!0,t.wa.od)),!1):39==i.which?((s=e[t.Zf])&&s.submenu&&s.dom.trigger("click"),!1):38==i.which?((s=e[t.Zf])&&s.dom.attr("tabindex",-1),0==t.Zf?t.Zf=e.length-1:t.Zf--,(s=e[t.Zf].dom).focus(),s.attr("tabindex",0),!1):40==i.which?((s=e[t.Zf])&&s.dom.attr("tabindex",-1),t.Zf==e.length-1?t.Zf=0:t.Zf++,(s=e[t.Zf].dom).focus(),s.attr("tabindex",0),!1):void 0:((s=e[t.Zf])&&s.dom.trigger("click"),!1)})},ud:function(){for(var t=this;t.wa;)t=t.wa;return t},ld:function(t,i,s,e){var n=this;t.focusin(function(){n.if.attr("tabindex",-1),t.attr("tabindex",0)}).focusout(function(){t.attr("tabindex",-1)}),this.if.append(t),this.nd.push({dom:t,id:i,state:s,submenu:e})},appendTo:function(t){this.kl=t,this.kl.append(this.if);for(var i=0;i<this.nd.length;++i)this.nd[i].submenu&&this.nd[i].submenu.appendTo(t)},attachEventHanlders:function(t){t(this.if.get(0));for(var i=0;i<this.nd.length;++i)this.nd[i].submenu&&t(this.nd[i].submenu.if.get(0))},detachEventHandlers:function(t){t(this.if.get(0));for(var i=0;i<this.nd.length;++i)this.nd[i].submenu&&t(this.nd[i].submenu.if.get(0))},fd:function(t){if(this.if&&this.if.has(t).length>0)return this;for(var i=0;i<this.nd.length;++i)if(this.nd[i].submenu){var s=this.nd[i].submenu.fd(t);if(s)return s}return null},show:function(t,s,e){this.ad=t;var n,h,r,a,o,u,c,l,f=i(t),d=this.if,p=this.kl;n=d.outerWidth(!0),h=d.outerHeight(!0),r=f.offset().left+f.width()/2-n/2;for(var v=0;v<=1;++v)o=f.offset().top-(p.offset().top+h+10),u=p.offset().top+p.height()-(f.offset().top+f.height()+h+10),c=p.offset().left+p.width()-(f.offset().left+f.width()+n+10),l=f.offset().left-(p.offset().left+n+10),o<0&&u<0&&c<0&&l<0&&(h=Math.max(o,u)-10);if(o>=0?(a=f.offset().top-p.offset().top-h-10,r=Math.max(0,Math.min(r,p.width()-n-10))):u>=0?(a=f.offset().top+f.height()+10-p.offset().top,r=Math.max(0,Math.min(r,p.width()-n-10))):c>=0?(a=0,r=f.offset().left+f.width()+10-p.offset().left):(a=0,r=f.offset().left-p.offset().left-n-10),d.css({left:r,top:a}),d.show(),!this.wa){var m=this;m.Yf="click.RLMenu"+this.id(),i(document).bind(m.Yf,function(e){var n=i(e.target).closest(".ap-menu-item");if("menuitemcheckbox"!=n.attr("role")){var h=m.fd(e.target);if(n.hasClass("ap-tool-menu-back")&&h&&h.wa)return h.hide(),void h.wa.show(t,s,h.wa.od);if("true"==n.attr("aria-haspopup")&&h)for(var r=0;r<h.nd.length;++r)if(h.nd[r].dom.get(0)==n.get(0))return h.hide(),void h.nd[r].submenu.show(t,s);m.destroy()}})}if(-1==this.Zf&&(this.Zf=0),s){d.attr("tabindex",-1);var b=this.nd[this.Zf];b?(b.dom.attr("tabindex",0),b.dom.focus()):(d.attr("tabindex",0),d.focus())}else d.attr("tabindex",0),d.focus();this.od=e},hide:function(){this.if.attr("tabindex",-1),this.if.hide()},isShown:function(){return"none"!=this.if.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.ld(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.ld(n,t,e),n},addRadioMenuItem:function(t,s,e){var n=this.pa,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.ld(h),h},addSubMenuItem:function(t,s,e){var n=this.pa,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.wa=this,this.ld(h,t,!0,e),h},addMenuHeaderItem:function(t){var s=this.pa,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.ld(n,e,!0),n}}),u=t.createClass({$init:function(s,e,n){this.pd=n.scale||1,this.vd=n.min||0,this.bd=n.max||100,this.wd=n.value||0,this.ff=n.title||"",this.gd=n.isRTL||!1,this.Cl=n.slideInfos||[],this._d=n.followMouse||!1,this.Td=n.thumbnailPrefixPath,this.yd=this.Cl.length>0,this.kd=-1,this.if=s,this.Dr=e,this.if.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.xd=i(".ap-slider-track",this.if),this.Ed=i(".ap-slider-track-lower",this.if),this.Sd=i(".ap-slider-thumb-outer",this.if),this.Md=i(".ap-slider-tooltip",this.if),this.Pd=i(".ap-slider-thumb-containment",this.if),this.Id=i(".ap-slider-thumb",this.if).outerWidth()/2,this.Sd.width(2*this.Id),this.Pd.css({position:"absolute",left:-this.Id+"px",top:"0px",width:"calc(100% + "+2*this.Id+"px)",height:"100%"}),this.if.attr({"aria-valuemin":this.vd,"aria-valuemax":this.bd,"aria-valuenow":this.wd,title:this.ff});for(var h=0,r=0,a=this.Cl.length;r<a-1;++r)if(h+=this.Cl[r].duration,e.ShowSegments){var o=i('<div class="ap-slider-marker"></div>'),u=h/(this.bd-this.vd)*100;o.css("left","calc("+u+"% - "+o.width()/2+"px)"),this.xd.append(o)}var c=this,l=t.browser.mobile;l||this.if.mouseenter(function(t){c.yd&&c.Md.show()}).mousemove(function(t){if(c.yd){var s=t.pageX-i(this).offset().left;c.Cd(s)}}).mouseleave(function(t){c.yd&&c.Md.hide()}),this.Sd.css("touchAction","none").draggable({containment:c.Pd,axis:"x",start:function(){c.Ca=!0,l&&c.yd&&c.Md.show()},drag:function(){var t=parseInt(i(this).css("left"))+c.Id;c.Rd(t),l&&c.yd&&c.Cd(t)},stop:function(){c.Ca=!1;var t=parseInt(i(this).css("left"))+c.Id;c.Rd(t,!0),l&&c.yd&&c.Md.hide()}}).mousedown(function(t){return s.focus(),t.stopPropagation(),!0}),this.if.on("mousedown",function(t){return c.Rd(t.pageX-i(this).offset().left,!0),t.stopPropagation(),!0}).on("keydown",function(t){var i=c.Ad(c.wd);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.Rd(i,!0),t.stopPropagation(),t.preventDefault()})},destroy:function(){this.Sd.off("mouseenter").off("mouseleave").off("mousedown").draggable("destroy"),this.Sd=null,this.if.off("mousedown").off("keydown"),this.if.empty(),this.if=null},Cd:function(t){var s,e=this.Fs,n=this.Nd,h=this.Dd(t),r=0,a=0;for(a=0,s=this.Cl.length||0;a<s&&!(h<=(r+=this.Cl[a].duration));++a);if(!(a>=this.Cl.length)){if(a!=this.kd){this.kd=a;var o=this.Cl[a].title,u="";u+='<div class="ap-slider-tooltip-timestamp">'+AtomiAP.formatMSString(h)+"</div>",this.Td&&this.Cl[a].thumb&&(u+='<img src="'+this.Td+"thumb_"+this.Cl[a].ti+'.jpg" />'),u+="<div>"+(e?e.text("Slide"):"Slide")+" "+(a+1)+"/"+this.Cl.length+"</div>",u+="<div>"+o+"</div>",this.Md.html(e?e.number(u,n):u)}else i(".ap-slider-tooltip-timestamp",this.Md).html(AtomiAP.formatMSString(h));this.Md.css({left:0,width:"auto"});var c=this.Md.width(),l=this.Md.height();this.Md.css({left:t-c/2,top:-l-40,width:c})}},Od:function(t){var i=t/this.getWidth()*100;this.Sd.css("left","calc("+i+"% - "+this.Id+"px)"),this.Ed.css("width",i+"%")},Rd:function(t,s){var e=this.getWidth();t<0?t=0:t>e&&(t=e);var n=this.Dd(t),h=!1;isNaN(n)||n!=this.wd&&(s?i(this).trigger("valueChanged",[n]):i(this).trigger("valueChanging",[n]),this.wd=n,this.if.attr("aria-valuenow",this.wd),h=!0),this.Ca||h||(t=this.Ad(this.wd)||0),this.Od(t)},Dd:function(t){var i=this.getWidth();"rtl"==this.gd&&(t=i-t);var s=Math.round(this.vd+t*(this.bd-this.vd)/i);return s<this.vd?s=this.vd:s>this.bd&&(s=this.bd),s},Ad:function(t){var i=this.getWidth(),s=Math.round((t-this.vd)*i/(this.bd-this.vd));return this.gd&&(s=i-s),s<0?s=0:s>i&&(s=i),s},setTooltip:function(t){t!=this.Ld&&(this.Ld=t,this.Md.html(t))},showTooltip:function(t){void 0===t&&(t=!0),t?this.Md.show():this.Md.hide()},enableTooltip:function(t){this.yd=t},getValue:function(){return this.wd},setValue:function(t){if(this.Ca&&!this._d)return!1;t<this.vd?t=this.vd:t>this.bd&&(t=this.bd),this.wd=t,this.if.attr("aria-valuenow",this.wd);var i=this.Ad(t)||0;return this.Od(i),!0},setTitle:function(t){this.if.attr("title",t)},getMin:function(){return this.vd},setMin:function(t){this.vd=t,this.if.attr("aria-valuemin",this.vd)},getMax:function(){return this.bd},setMax:function(t){this.bd=t,this.if.attr("aria-valuemax",this.bd)},getWidth:function(){return this.if.width()||.001},setWidth:function(t){this.if.width(t)}}),c=t.createClass({$init:function(t,s,e){this.rf=t,this.Yd=-1,this.Fd=!1;var n=t.container();this.if=i(s),e?this.if.insertBefore(i(".ap-content-area",n)):this.if.appendTo(n),this.if.attr("unselectable","on").css("user-select","none").on("selectstart",!1),this.Ud=i(".ap-button,.ap-slider",this.if).toArray(),this.Xd(),this.if.show();var h=this;this.Bd=function(t){h.Hd()},i(this.rf).on("ui:ap-layout",this.Bd)},destroy:function(){i(this.rf).off("ui:ap-layout",this.Bd),i.each(this.Ud,function(t,s){i(s).off("focusin").off("focusout")}),this.if.off("mousedown").off("keydown").off("focus").off("focusout"),this.if.remove(),this.if=null},zd:function(t){var s=i(t);return"none"!=s.css("display")&&"false"!=s.attr("data-enabled")},Xd:function(){var t=this;this.if.on("mousedown",function(i){for(var s=0;s<t.Ud.length;++s)i.target==t.Ud[s]&&(t.Yd=s);return i.stopPropagation(),!0}).on("keydown",function(s){if(9==s.which){var e,n=t.Ud,h=!s.shiftKey,r=!0,a=-1,o=t.Yd,u=n.length-1;do{if(h?++o:--o,o<0||o>u){a=h?0:u;break}if(t.zd(n[o])){a=o,r=!1;break}}while(o>=0&&o<=u);if(r)return t.Yd=a,!0;s.stopPropagation(),s.preventDefault(),t.Yd>=0&&t.Yd<=u&&(e=t.Ud[t.Yd],i(e).attr("tabindex","-1")),a>=0&&a<=u&&(t.Yd=a,e=t.Ud[t.Yd],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.Ud,function(i,e){if(t.zd(e))return s=i,!1}),s};this.if.on("focus",function(e){var n=t.Yd;if((n<0||n>=t.Ud.length||!t.zd(t.Ud[n]))&&(t.Yd=s(),n=t.Yd),t.if.attr("tabindex","-1"),n>=0&&n<t.Ud.length){var h=t.Ud[n];return i(h).attr("tabindex","0").focus(),!1}return!0}),this.if.on("focusout",function(){t.Fd||t.if.attr("tabindex","0")});for(var e=0;e<this.Ud.length;++e)!function(e,n){i(e).on("focusin",function(h){t.zd(e)?t.Yd=n:t.Yd=s(),t.if.attr("tabindex","-1"),t.Fd=!0,i(this).attr("tabindex","0")}).on("focusout",function(s){t.Fd=!1,i(this).attr("tabindex","-1")})}(this.Ud[e],e)},Hd:function(){var t=i("[data-priority]",this.if),s=i(".ap-tool-setting",this.if),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.if.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.if.show()},hide:function(){this.if.hide()},visible:function(){return this.if&&"none"!==this.if[0].style.display}});t.RLPopup=n,t.RLToolbar=c,t.RLToc=r,t.UI=e}(window.AtomiAP=window.AtomiAP||{},window.AtomiAP.$||jQuery);