PageSourceSearch

https://duo.com/js/production.min.js?v=1788375178

js duo.com collected 2026-09-24 06:43:33 UTC 686,834 bytes, 1 lines download raw bytes

1function initFuzzySearch(){let s=document.getElementById("docs-index-content-container");if(s){var t=document.getElementById("js-docs-search");let e=s.querySelectorAll(".section--text-lockup:not(#docs-index-disclaimer-message)"),i=s.querySelectorAll(".single-tile");t.addEventListener("keypress",function(t){"Enter"===t.key&&t.preventDefault()}),t.addEventListener("keyup",function(){{var t;let a=this.value.toLowerCase();i.forEach(t=>{var e=t.querySelector(".tile-header")?.textContent.toLowerCase()||"",i=t.querySelector("p:not(.tile-header)")?.textContent.toLowerCase()||"";let s="",n=t.closest("section");for(;n&&!s&&(n=n.previousElementSibling);){var r=n.querySelector(".text-heading");if(r){s=r.textContent.toLowerCase();break}}t.style.display=e.includes(a)||i.includes(a)||s.includes(a)?"":"none"}),e.forEach(t=>{t.style.display=a?"none":""}),s.querySelectorAll(".section--tiles").forEach(t=>{var e=t.querySelectorAll(".single-tile:not([style*='display: none'])");t.style.display=0<e.length?"":"none"})}})}}function validateAndRedirect(t){var e=document.createElement("a");e.href=t,"http:"!==e.protocol&&"https:"!==e.protocol||(document.location.href=t)}((t,e)=>{"object"==typeof module&&"object"==typeof module.exports?module.exports=t.document?e(t,!0):function(t){if(t.document)return e(t);throw new Error("jQuery requires a window with a document")}:e(t)})("undefined"!=typeof window?window:this,function(C,O){function v(t){return"function"==typeof t&&"number"!=typeof t.nodeType&&"function"!=typeof t.item}function V(t){return null!=t&&t===t.window}var e=[],B=Object.getPrototypeOf,o=e.slice,N=e.flat?function(t){return e.flat.call(t)}:function(t){return e.concat.apply([],t)},z=e.push,_=e.indexOf,H={},q=H.toString,W=H.hasOwnProperty,j=W.toString,G=j.call(Object),m={},S=C.document,Y={type:!0,src:!0,nonce:!0,noModule:!0};function $(t,e,i){var s,n,r=(i=i||S).createElement("script");if(r.text=t,e)for(s in Y)(n=e[s]||e.getAttribute&&e.getAttribute(s))&&r.setAttribute(s,n);i.head.appendChild(r).parentNode.removeChild(r)}function K(t){return null==t?t+"":"object"==typeof t||"function"==typeof t?H[q.call(t)]||"object":typeof t}var t="3.7.1",X=/HTML$/i,w=function(t,e){return new w.fn.init(t,e)};function U(t){var e=!!t&&"length"in t&&t.length,i=K(t);return!v(t)&&!V(t)&&("array"===i||0===e||"number"==typeof e&&0<e&&e-1 in t)}function b(t,e){return t.nodeName&&t.nodeName.toLowerCase()===e.toLowerCase()}w.fn=w.prototype={jquery:t,constructor:w,length:0,toArray:function(){return o.call(this)},get:function(t){return null==t?o.call(this):t<0?this[t+this.length]:this[t]},pushStack:function(t){t=w.merge(this.constructor(),t);return t.prevObject=this,t},each:function(t){return w.each(this,t)},map:function(i){return this.pushStack(w.map(this,function(t,e){return i.call(t,e,t)}))},slice:function(){return this.pushStack(o.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},even:function(){return this.pushStack(w.grep(this,function(t,e){return(e+1)%2}))},odd:function(){return this.pushStack(w.grep(this,function(t,e){return e%2}))},eq:function(t){var e=this.length,t=+t+(t<0?e:0);return this.pushStack(0<=t&&t<e?[this[t]]:[])},end:function(){return this.prevObject||this.constructor()},push:z,sort:e.sort,splice:e.splice},w.extend=w.fn.extend=function(){var t,e,i,s,n,r=arguments[0]||{},a=1,o=arguments.length,l=!1;for("boolean"==typeof r&&(l=r,r=arguments[a]||{},a++),"object"==typeof r||v(r)||(r={}),a===o&&(r=this,a--);a<o;a++)if(null!=(t=arguments[a]))for(e in t)i=t[e],"__proto__"!==e&&r!==i&&(l&&i&&(w.isPlainObject(i)||(s=Array.isArray(i)))?(n=r[e],n=s&&!Array.isArray(n)?[]:s||w.isPlainObject(n)?n:{},s=!1,r[e]=w.extend(l,n,i)):void 0!==i&&(r[e]=i));return r},w.extend({expando:"jQuery"+(t+Math.random()).replace(/\D/g,""),isReady:!0,error:function(t){throw new Error(t)},noop:function(){},isPlainObject:function(t){return!(!t||"[object Object]"!==q.call(t)||(t=B(t))&&("function"!=typeof(t=W.call(t,"constructor")&&t.constructor)||j.call(t)!==G))},isEmptyObject:function(t){for(var e in t)return!1;return!0}
vendor: 10,382 bytes, line 1
1,globalEval:function(t,e,i){$(t,{nonce:e&&e.nonce},i)},each:function(t,e){var i,s=0;if(U(t))for(i=t.length;s<i&&!1!==e.call(t[s],s,t[s]);s++);else for(s in t)if(!1===e.call(t[s],s,t[s]))break;return t},text:function(t){var e,i="",s=0,n=t.nodeType;if(!n)for(;e=t[s++];)i+=w.text(e);return 1===n||11===n?t.textContent:9===n?t.documentElement.textContent:3===n||4===n?t.nodeValue:i},makeArray:function(t,e){e=e||[];return null!=t&&(U(Object(t))?w.merge(e,"string"==typeof t?[t]:t):z.call(e,t)),e},inArray:function(t,e,i){return null==e?-1:_.call(e,t,i)},isXMLDoc:function(t){var e=t&&t.namespaceURI,t=t&&(t.ownerDocument||t).documentElement;return!X.test(e||t&&t.nodeName||"HTML")},merge:function(t,e){for(var i=+e.length,s=0,n=t.length;s<i;s++)t[n++]=e[s];return t.length=n,t},grep:function(t,e,i){for(var s=[],n=0,r=t.length,a=!i;n<r;n++)!e(t[n],n)!=a&&s.push(t[n]);return s},map:function(t,e,i){var s,n,r=0,a=[];if(U(t))for(s=t.length;r<s;r++)null!=(n=e(t[r],r,i))&&a.push(n);else for(r in t)null!=(n=e(t[r],r,i))&&a.push(n);return N(a)},guid:1,support:m}),"function"==typeof Symbol&&(w.fn[Symbol.iterator]=e[Symbol.iterator]),w.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(t,e){H["[object "+e+"]"]=e.toLowerCase()});var J=e.pop,Z=e.sort,Q=e.splice,i="[\\x20\\t\\r\\n\\f]",tt=new RegExp("^"+i+"+|((?:^|[^\\\\])(?:\\\\.)*)"+i+"+$","g"),et=(w.contains=function(t,e){e=e&&e.parentNode;return t===e||!(!e||1!==e.nodeType||!(t.contains?t.contains(e):t.compareDocumentPosition&&16&t.compareDocumentPosition(e)))},/([\0-\x1f\x7f]|^-?\d)|^-$|[^\x80-\uFFFF\w-]/g);function it(t,e){return e?"\0"===t?"�":t.slice(0,-1)+"\\"+t.charCodeAt(t.length-1).toString(16)+" ":"\\"+t}w.escapeSelector=function(t){return(t+"").replace(et,it)};var st,x,nt,rt,at,k,s,E,u,ot,n=S,lt=z,P=lt,D=w.expando,T=0,ht=0,ct=Tt(),pt=Tt(),ut=Tt(),dt=Tt(),ft=function(t,e){return t===e&&(at=!0),0},mt="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",t="(?:\\\\[\\da-fA-F]{1,6}"+i+"?|\\\\[^\\r\\n\\f]|[\\w-]|[^\0-\\x7f])+",r="\\["+i+"*("+t+")(?:"+i+"*([*^$|!~]?=)"+i+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+t+"))|)"+i+"*\\]",a=":("+t+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+r+")*)|.*)\\)|)",gt=new RegExp(i+"+","g"),yt=new RegExp("^"+i+"*,"+i+"*"),vt=new RegExp("^"+i+"*([>+~]|"+i+")"+i+"*"),bt=new RegExp(i+"|>"),_t=new RegExp(a),xt=new RegExp("^"+t+"$"),Ct={ID:new RegExp("^#("+t+")"),CLASS:new RegExp("^\\.("+t+")"),TAG:new RegExp("^("+t+"|[*])"),ATTR:new RegExp("^"+r),PSEUDO:new RegExp("^"+a),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+i+"*(even|odd|(([+-]|)(\\d*)n|)"+i+"*(?:([+-]|)"+i+"*(\\d+)|))"+i+"*\\)|)","i"),bool:new RegExp("^(?:"+mt+")$","i"),needsContext:new RegExp("^"+i+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+i+"*((?:-\\d)?\\d*)"+i+"*\\)|)(?=[^-]|$)","i")},St=/^(?:input|select|textarea|button)$/i,wt=/^h\d$/i,kt=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,Et=/[+~]/,p=new RegExp("\\\\[\\da-fA-F]{1,6}"+i+"?|\\\\([^\\r\\n\\f])","g"),d=function(t,e){t="0x"+t.slice(1)-65536;return e||(t<0?String.fromCharCode(65536+t):String.fromCharCode(t>>10|55296,1023&t|56320))},Pt=function(){Lt()},Dt=Bt(function(t){return!0===t.disabled&&b(t,"fieldset")},{dir:"parentNode",next:"legend"});try{P.apply(e=o.call(n.childNodes),n.childNodes),e[n.childNodes.length].nodeType}catch(st){P={apply:function(t,e){lt.apply(t,o.call(e))},call:function(t){lt.apply(t,o.call(arguments,1))}}}function A(t,e,i,s){var n,r,a,o,l,h,c=e&&e.ownerDocument,p=e?e.nodeType:9;if(i=i||[],"string"!=typeof t||!t||1!==p&&9!==p&&11!==p)return i;if(!s&&(Lt(e),e=e||k,E)){if(11!==p&&(o=kt.exec(t)))if(n=o[1]){if(9===p){if(!(h=e.getElementById(n)))return i;if(h.id===n)return P.call(i,h),i}else if(c&&(h=c.getElementById(n))&&A.contains(e,h)&&h.id===n)return P.call(i,h),i}else{if(o[2])return P.apply(i,e.getElementsByTagName(t)),i;if((n=o[3])&&e.getElementsByClassName)return P.apply(i,e.getElementsByClassName(n)),i}if(!(dt[t+" "]||u&&u.test(t))){if(h=t,c=e,1===p&&(bt.test(t)||vt.test(t))){for((c=Et.test(t)&&Ft(e.parentNode)||e)==e&&m.scope||((a=e.getAttribute("id"))?a=w.escapeSelector(a):e.setAttribute("id",a=D)),r=(l=Ot(t)).length;r--;)l[r]=(a?"#"+a:":scope")+" "+Vt(l[r]);h=l.join(",")}try{return P.apply(i,c.querySelectorAll(h)),i}catch(e){dt(t,!0)}finally{a===D&&e.removeAttribute("id")}}}return Wt(t.replace(tt,"$1"),e,i,s)}function Tt(){var s=[];return function t(e,i){return s.push(e+" ")>x.cacheLength&&delete t[s.shift()],t[e+" "]=i}}function l(t){return t[D]=!0,t}function At(t){var e=k.createElement("fieldset");try{return!!t(e)}catch(t){return!1}finally{e.parentNode&&e.parentNode.removeChild(e)}}function Mt(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&&Dt(t)===e:t.disabled===e:"label"in t&&t.disabled===e}}function It(a){return l(function(r){return r=+r,l(function(t,e){for(var i,s=a([],t.length,r),n=s.length;n--;)t[i=s[n]]&&(t[i]=!(e[i]=t[i]))})})}function Ft(t){return t&&void 0!==t.getElementsByTagName&&t}function Lt(t){var t=t?t.ownerDocument||t:n;return t!=k&&9===t.nodeType&&t.documentElement&&(s=(k=t).documentElement,E=!w.isXMLDoc(k),ot=s.matches||s.webkitMatchesSelector||s.msMatchesSelector,s.msMatchesSelector&&n!=k&&(t=k.defaultView)&&t.top!==t&&t.addEventListener("unload",Pt),m.getById=At(function(t){return s.appendChild(t).id=w.expando,!k.getElementsByName||!k.getElementsByName(w.expando).length}),m.disconnectedMatch=At(function(t){return ot.call(t,"*")}),m.scope=At(function(){return k.querySelectorAll(":scope")}),m.cssHas=At(function(){try{return k.querySelector(":has(*,:jqfake)"),0}catch(t){return 1}}),m.getById?(x.filter.ID=function(t){var e=t.replace(p,d);return function(t){return t.getAttribute("id")===e}},x.find.ID=function(t,e){if(void 0!==e.getElementById&&E)return(e=e.getElementById(t))?[e]:[]}):(x.filter.ID=function(t){var e=t.replace(p,d);return function(t){t=void 0!==t.getAttributeNode&&t.getAttributeNode("id");return t&&t.value===e}},x.find.ID=function(t,e){if(void 0!==e.getElementById&&E){var i,s,n,r=e.getElementById(t);if(r){if((i=r.getAttributeNode("id"))&&i.value===t)return[r];for(n=e.getElementsByName(t),s=0;r=n[s++];)if((i=r.getAttributeNode("id"))&&i.value===t)return[r]}return[]}}),x.find.TAG=function(t,e){return void 0!==e.getElementsByTagName?e.getElementsByTagName(t):e.querySelectorAll(t)},x.find.CLASS=function(t,e){if(void 0!==e.getElementsByClassName&&E)return e.getElementsByClassName(t)},u=[],At(function(t){var e;s.appendChild(t).innerHTML="<a id='"+D+"' href='' disabled='disabled'></a><select id='"+D+"-\r\\' disabled='disabled'><option selected=''></option></select>",t.querySelectorAll("[selected]").length||u.push("\\["+i+"*(?:value|"+mt+")"),t.querySelectorAll("[id~="+D+"-]").length||u.push("~="),t.querySelectorAll("a#"+D+"+*").length||u.push(".#.+[+~]"),t.querySelectorAll(":checked").length||u.push(":checked"),(e=k.createElement("input")).setAttribute("type","hidden"),t.appendChild(e).setAttribute("name","D"),s.appendChild(t).disabled=!0,2!==t.querySelectorAll(":disabled").length&&u.push(":enabled",":disabled"),(e=k.createElement("input")).setAttribute("name",""),t.appendChild(e),t.querySelectorAll("[name='']").length||u.push("\\["+i+"*name"+i+"*="+i+"*(?:''|\"\")")}),m.cssHas||u.push(":has"),u=u.length&&new RegExp(u.join("|")),ft=function(t,e){var i;return t===e?(at=!0,0):!t.compareDocumentPosition-!e.compareDocumentPosition||(1&(i=(t.ownerDocument||t)==(e.ownerDocument||e)?t.compareDocumentPosition(e):1)||!m.sortDetached&&e.compareDocumentPosition(t)===i?t===k||t.ownerDocument==n&&A.contains(n,t)?-1:e===k||e.ownerDocument==n&&A.contains(n,e)?1:rt?_.call(rt,t)-_.call(rt,e):0:4&i?-1:1)}),k}for(st in A.matches=function(t,e){return A(t,null,null,e)},A.matchesSelector=function(t,e){if(Lt(t),E&&!dt[e+" "]&&(!u||!u.test(e)))try{var i=ot.call(t,e);if(i||m.disconnectedMatch||t.document&&11!==t.document.nodeType)return i}catch(t){dt(e,!0)}return 0<A(e,k,null,[t]).length},A.contains=function(t,e){return(t.ownerDocument||t)!=k&&Lt(t),w.contains(t,e)},A.attr=function(t,e){(t.ownerDocument||t)!=k&&Lt(t);var i=x.attrHandle[e.toLowerCase()],i=i&&W.call(x.attrHandle,e.toLowerCase())?i(t,e,!E):void 0;return void 0!==i?i:t.getAttribute(e)},A.error=function(t){throw new Error("Syntax error, unrecognized expression: "+t)},w.uniqueSort=function(t){var e,i=[],s=0,n=0;if(at=!m.sortStable,rt=!m.sortStable&&o.call(t,0),Z.call(t,ft),at){for(;e=t[n++];)e===t[n]&&(s=i.push(n));for(;s--;)Q.call(t,i[s],1)}return rt=null,t},w.fn.uniqueSort=function(){return this.pushStack(w.uniqueSort(o.apply(this)))},(x=w.expr={cacheLength:50,createPseudo:l,match:Ct,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(t){return t[1]=t[1].replace(p,d),t[3]=(t[3]||t[4]||t[5]||"").replace(p,d),"~="===t[2]&&(t[3]=" "+t[3]+" "),t.slice(0,4)},CHILD:function(t){return t[1]=t[1].toLowerCase(),"nth"===t[1].slice(0,3)?(t[3]||A.error(t[0]),t[4]=+(t[4]?t[5]+(t[6]||1):2*("even"===t[3]||"odd"===t[3])),t[5]=+(t[7]+t[8]||"odd"===t[3])):t[3]&&A.error(t[0]),t},PSEUDO:function(t){var e,i=!t[6]&&t[2];return Ct.CHILD.test(t[0])?null:(t[3]?t[2]=t[4]||t[5]||"":i&&_t.test(i)&&(e=(e=Ot(i,!0))&&i.indexOf(")",i.length-e)-i.length)&&(t[0]=t[0].slice(0,e),t[2]=i.slice(0,e)),t.slice(0,3))}},filter:{TAG:function(t){var e=t.replace(p,d).toLowerCase();return"*"===t?function(){return!0}:function(t){return b(t,e)}},CLASS:function(t){var e=ct[t+" "];return e||(e=new RegExp("(^|"+i+")"+t+"("+i+"|$)"))&&ct(t,function(t){return e.test("string"==typeof t.className&&t.className||void 0!==t.getAttribute&&t.getAttribute("class")||"")})},ATTR:function(e,i,s){return function(t){t=A.attr(t,e);return null==t?"!="===i:!i||(t+="","="===i?t===s:"!="===i?t!==s:"^="===i?s&&0===t.indexOf(s):"*="===i?s&&-1<t.indexOf(s):"$="===i?s&&t.slice(-s.length)===s:"~="===i?-1<(" "+t.replace(gt," ")+" ").indexOf(s):"|="===i&&(t===s||t.slice(0,s.length+1)===s+"-"))}},CHILD:function(d,t,e,f,m){var g="nth"!==d.slice(0,3),y="last"!==d.slice(-4),v="of-type"===t;return 1===f&&0===m?function(t){return!!t.parentNode}
vendor: 4,178 bytes, line 1
1:function(t,e,i){var s,n,r,a,o,l=g!=y?"nextSibling":"previousSibling",h=t.parentNode,c=v&&t.nodeName.toLowerCase(),p=!i&&!v,u=!1;if(h){if(g){for(;l;){for(r=t;r=r[l];)if(v?b(r,c):1===r.nodeType)return!1;o=l="only"===d&&!o&&"nextSibling"}return!0}if(o=[y?h.firstChild:h.lastChild],y&&p){for(u=(a=(s=(n=h[D]||(h[D]={}))[d]||[])[0]===T&&s[1])&&s[2],r=a&&h.childNodes[a];r=++a&&r&&r[l]||(u=a=0,o.pop());)if(1===r.nodeType&&++u&&r===t){n[d]=[T,a,u];break}}else if(!1===(u=p?a=(s=(n=t[D]||(t[D]={}))[d]||[])[0]===T&&s[1]:u))for(;(r=++a&&r&&r[l]||(u=a=0,o.pop()))&&((v?!b(r,c):1!==r.nodeType)||!++u||(p&&((n=r[D]||(r[D]={}))[d]=[T,u]),r!==t)););return(u-=m)===f||u%f==0&&0<=u/f}}},PSEUDO:function(t,r){var e,a=x.pseudos[t]||x.setFilters[t.toLowerCase()]||A.error("unsupported pseudo: "+t);return a[D]?a(r):1<a.length?(e=[t,t,"",r],x.setFilters.hasOwnProperty(t.toLowerCase())?l(function(t,e){for(var i,s=a(t,r),n=s.length;n--;)t[i=_.call(t,s[n])]=!(e[i]=s[n])}):function(t){return a(t,0,e)}):a}},pseudos:{not:l(function(t){var s=[],n=[],o=qt(t.replace(tt,"$1"));return o[D]?l(function(t,e,i,s){for(var n,r=o(t,null,s,[]),a=t.length;a--;)(n=r[a])&&(t[a]=!(e[a]=n))}):function(t,e,i){return s[0]=t,o(s,null,i,n),s[0]=null,!n.pop()}}),has:l(function(e){return function(t){return 0<A(e,t).length}}),contains:l(function(e){return e=e.replace(p,d),function(t){return-1<(t.textContent||w.text(t)).indexOf(e)}}),lang:l(function(i){return xt.test(i||"")||A.error("unsupported lang: "+i),i=i.replace(p,d).toLowerCase(),function(t){var e;do{if(e=E?t.lang:t.getAttribute("xml:lang")||t.getAttribute("lang"))return(e=e.toLowerCase())===i||0===e.indexOf(i+"-")}while((t=t.parentNode)&&1===t.nodeType);return!1}}),target:function(t){var e=C.location&&C.location.hash;return e&&e.slice(1)===t.id},root:function(t){return t===s},focus:function(t){return t===(()=>{try{return k.activeElement}catch(t){}})()&&k.hasFocus()&&!!(t.type||t.href||~t.tabIndex)},enabled:Mt(!1),disabled:Mt(!0),checked:function(t){return b(t,"input")&&!!t.checked||b(t,"option")&&!!t.selected},selected:function(t){return t.parentNode&&t.parentNode.selectedIndex,!0===t.selected},empty:function(t){for(t=t.firstChild;t;t=t.nextSibling)if(t.nodeType<6)return!1;return!0},parent:function(t){return!x.pseudos.empty(t)},header:function(t){return wt.test(t.nodeName)},input:function(t){return St.test(t.nodeName)},button:function(t){return b(t,"input")&&"button"===t.type||b(t,"button")},text:function(t){return b(t,"input")&&"text"===t.type&&(null==(t=t.getAttribute("type"))||"text"===t.toLowerCase())},first:It(function(){return[0]}),last:It(function(t,e){return[e-1]}),eq:It(function(t,e,i){return[i<0?i+e:i]}),even:It(function(t,e){for(var i=0;i<e;i+=2)t.push(i);return t}),odd:It(function(t,e){for(var i=1;i<e;i+=2)t.push(i);return t}),lt:It(function(t,e,i){for(var s=i<0?i+e:e<i?e:i;0<=--s;)t.push(s);return t}),gt:It(function(t,e,i){for(var s=i<0?i+e:i;++s<e;)t.push(s);return t})}}).pseudos.nth=x.pseudos.eq,{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})x.pseudos[st]=(e=>function(t){return b(t,"input")&&t.type===e})(st);for(st in{submit:!0,reset:!0})x.pseudos[st]=(e=>function(t){return(b(t,"input")||b(t,"button"))&&t.type===e})(st);function Rt(){}function Ot(t,e){var i,s,n,r,a,o,l,h=pt[t+" "];if(h)return e?0:h.slice(0);for(a=t,o=[],l=x.preFilter;a;){for(r in i&&!(s=yt.exec(a))||(s&&(a=a.slice(s[0].length)||a),o.push(n=[])),i=!1,(s=vt.exec(a))&&(i=s.shift(),n.push({value:i,type:s[0].replace(tt," ")}),a=a.slice(i.length)),x.filter)!(s=Ct[r].exec(a))||l[r]&&!(s=l[r](s))||(i=s.shift(),n.push({value:i,type:r,matches:s}),a=a.slice(i.length));if(!i)break}return e?a.length:a?A.error(t):pt(t,o).slice(0)}function Vt(t){for(var e=0,i=t.length,s="";e<i;e++)s+=t[e].value;return s}function Bt(a,t,e){var o=t.dir,l=t.next,h=l||o,c=e&&"parentNode"===h,p=ht++;return t.first?function(t,e,i){for(;t=t[o];)if(1===t.nodeType||c)return a(t,e,i);return!1}:function(t,e,i){var s,n,r=[T,p];if(i){for(;t=t[o];)if((1===t.nodeType||c)&&a(t,e,i))return!0}else for(;t=t[o];)if(1===t.nodeType||c)if(n=t[D]||(t[D]={}),l&&b(t,l))t=t[o]||t;else{if((s=n[h])&&s[0]===T&&s[1]===p)return r[2]=s[2];if((n[h]=r)[2]=a(t,e,i))return!0}return!1}}
1function Nt(n){return 1<n.length?function(t,e,i){for(var s=n.length;s--;)if(!n[s](t,e,i))return!1;return!0}:n[0]}function zt(t,e,i,s,n){for(var r,a=[],o=0,l=t.length,h=null!=e;o<l;o++)!(r=t[o])||i&&!i(r,s,n)||(a.push(r),h&&e.push(o));return a}function Ht(d,f,m,g,y,t){return g&&!g[D]&&(g=Ht(g)),y&&!y[D]&&(y=Ht(y,t)),l(function(t,e,i,s){var n,r,a,o,l=[],h=[],c=e.length,p=t||((t,e,i)=>{for(var s=0,n=e.length;s<n;s++)A(t,e[s],i);return i})(f||"*",i.nodeType?[i]:i,[]),u=!d||!t&&f?p:zt(p,l,d,i,s);if(m?m(u,o=y||(t?d:c||g)?[]:e,i,s):o=u,g)for(n=zt(o,h),g(n,[],i,s),r=n.length;r--;)(a=n[r])&&(o[h[r]]=!(u[h[r]]=a));if(t){if(y||d){if(y){for(n=[],r=o.length;r--;)(a=o[r])&&n.push(u[r]=a);y(null,o=[],n,s)}for(r=o.length;r--;)(a=o[r])&&-1<(n=y?_.call(t,a):l[r])&&(t[n]=!(e[n]=a))}}else o=zt(o===e?o.splice(c,o.length):o),y?y(null,e,o,s):P.apply(e,o)})}function qt(t,e){var i,g,y,v,b,s,n=[],r=[],a=ut[t+" "];if(!a){for(i=(e=e||Ot(t)).length;i--;)((a=function t(e){for(var s,i,n,r=e.length,a=x.relative[e[0].type],o=a||x.relative[" "],l=a?1:0,h=Bt(function(t){return t===s},o,!0),c=Bt(function(t){return-1<_.call(s,t)},o,!0),p=[function(t,e,i){return t=!a&&(i||e!=nt)||((s=e).nodeType?h:c)(t,e,i),s=null,t}];l<r;l++)if(i=x.relative[e[l].type])p=[Bt(Nt(p),i)];else{if((i=x.filter[e[l].type].apply(null,e[l].matches))[D]){for(n=++l;n<r&&!x.relative[e[n].type];n++);return Ht(1<l&&Nt(p),1<l&&Vt(e.slice(0,l-1).concat({value:" "===e[l-2].type?"*":""})).replace(tt,"$1"),i,l<n&&t(e.slice(l,n)),n<r&&t(e=e.slice(n)),n<r&&Vt(e))}p.push(i)}return Nt(p)}(e[i]))[D]?n:r).push(a);(a=ut(t,(v=0<(y=n).length,b=0<(g=r).length,s=function(t,e,i,s,n){var r,a,o,l=0,h="0",c=t&&[],p=[],u=nt,d=t||b&&x.find.TAG("*",n),f=T+=null==u?1:Math.random()||.1,m=d.length;for(n&&(nt=e==k||e||n);h!==m&&null!=(r=d[h]);h++){if(b&&r){for(a=0,e||r.ownerDocument==k||(Lt(r),i=!E);o=g[a++];)if(o(r,e||k,i)){P.call(s,r);break}n&&(T=f)}v&&((r=!o&&r)&&l--,t)&&c.push(r)}if(l+=h,v&&h!==l){for(a=0;o=y[a++];)o(c,p,e,i);if(t){if(0<l)for(;h--;)c[h]||p[h]||(p[h]=J.call(s));p=zt(p)}P.apply(s,p),n&&!t&&0<p.length&&1<l+y.length&&w.uniqueSort(s)}return n&&(T=f,nt=u),c}
vendor: 4,244 bytes, line 1
1,v?l(s):s))).selector=t}return a}function Wt(t,e,i,s){var n,r,a,o,l,h="function"==typeof t&&t,c=!s&&Ot(t=h.selector||t);if(i=i||[],1===c.length){if(2<(r=c[0]=c[0].slice(0)).length&&"ID"===(a=r[0]).type&&9===e.nodeType&&E&&x.relative[r[1].type]){if(!(e=(x.find.ID(a.matches[0].replace(p,d),e)||[])[0]))return i;h&&(e=e.parentNode),t=t.slice(r.shift().value.length)}for(n=Ct.needsContext.test(t)?0:r.length;n--&&(a=r[n],!x.relative[o=a.type]);)if((l=x.find[o])&&(s=l(a.matches[0].replace(p,d),Et.test(r[0].type)&&Ft(e.parentNode)||e))){if(r.splice(n,1),t=s.length&&Vt(r))break;return P.apply(i,s),i}}return(h||qt(t,c))(s,e,!E,i,!e||Et.test(t)&&Ft(e.parentNode)||e),i}Rt.prototype=x.filters=x.pseudos,x.setFilters=new Rt,m.sortStable=D.split("").sort(ft).join("")===D,Lt(),m.sortDetached=At(function(t){return 1&t.compareDocumentPosition(k.createElement("fieldset"))}),w.find=A,w.expr[":"]=w.expr.pseudos,w.unique=w.uniqueSort,A.compile=qt,A.select=Wt,A.setDocument=Lt,A.tokenize=Ot,A.escape=w.escapeSelector,A.getText=w.text,A.isXML=w.isXMLDoc,A.selectors=w.expr,A.support=w.support,A.uniqueSort=w.uniqueSort;function jt(t,e,i){for(var s=[],n=void 0!==i;(t=t[e])&&9!==t.nodeType;)if(1===t.nodeType){if(n&&w(t).is(i))break;s.push(t)}return s}function Gt(t,e){for(var i=[];t;t=t.nextSibling)1===t.nodeType&&t!==e&&i.push(t);return i}var Yt=w.expr.match.needsContext,$t=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function Kt(t,i,s){return v(i)?w.grep(t,function(t,e){return!!i.call(t,e,t)!==s}):i.nodeType?w.grep(t,function(t){return t===i!==s}):"string"!=typeof i?w.grep(t,function(t){return-1<_.call(i,t)!==s}):w.filter(i,t,s)}w.filter=function(t,e,i){var s=e[0];return i&&(t=":not("+t+")"),1===e.length&&1===s.nodeType?w.find.matchesSelector(s,t)?[s]:[]:w.find.matches(t,w.grep(e,function(t){return 1===t.nodeType}))},w.fn.extend({find:function(t){var e,i,s=this.length,n=this;if("string"!=typeof t)return this.pushStack(w(t).filter(function(){for(e=0;e<s;e++)if(w.contains(n[e],this))return!0}));for(i=this.pushStack([]),e=0;e<s;e++)w.find(t,n[e],i);return 1<s?w.uniqueSort(i):i},filter:function(t){return this.pushStack(Kt(this,t||[],!1))},not:function(t){return this.pushStack(Kt(this,t||[],!0))},is:function(t){return!!Kt(this,"string"==typeof t&&Yt.test(t)?w(t):t||[],!1).length}});var Xt,Ut=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/,Jt=((w.fn.init=function(t,e,i){if(t){if(i=i||Xt,"string"!=typeof t)return t.nodeType?(this[0]=t,this.length=1,this):v(t)?void 0!==i.ready?i.ready(t):t(w):w.makeArray(t,this);if(!(s="<"===t[0]&&">"===t[t.length-1]&&3<=t.length?[null,t,null]:Ut.exec(t))||!s[1]&&e)return(!e||e.jquery?e||i:this.constructor(e)).find(t);if(s[1]){if(e=e instanceof w?e[0]:e,w.merge(this,w.parseHTML(s[1],e&&e.nodeType?e.ownerDocument||e:S,!0)),$t.test(s[1])&&w.isPlainObject(e))for(var s in e)v(this[s])?this[s](e[s]):this.attr(s,e[s])}else(i=S.getElementById(s[2]))&&(this[0]=i,this.length=1)}return this}).prototype=w.fn,Xt=w(S),/^(?:parents|prev(?:Until|All))/),Zt={children:!0,contents:!0,next:!0,prev:!0};function Qt(t,e){for(;(t=t[e])&&1!==t.nodeType;);return t}w.fn.extend({has:function(t){var e=w(t,this),i=e.length;return this.filter(function(){for(var t=0;t<i;t++)if(w.contains(this,e[t]))return!0})},closest:function(t,e){var i,s=0,n=this.length,r=[],a="string"!=typeof t&&w(t);if(!Yt.test(t))for(;s<n;s++)for(i=this[s];i&&i!==e;i=i.parentNode)if(i.nodeType<11&&(a?-1<a.index(i):1===i.nodeType&&w.find.matchesSelector(i,t))){r.push(i);break}return this.pushStack(1<r.length?w.uniqueSort(r):r)},index:function(t){return t?"string"==typeof t?_.call(w(t),this[0]):_.call(this,t.jquery?t[0]:t):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(t,e){return this.pushStack(w.uniqueSort(w.merge(this.get(),w(t,e))))},addBack:function(t){return this.add(null==t?this.prevObject:this.prevObject.filter(t))}}),w.each({parent:function(t){t=t.parentNode;return t&&11!==t.nodeType?t:null},parents:function(t){return jt(t,"parentNode")},parentsUntil:function(t,e,i){return jt(t,"parentNode",i)},next:function(t){return Qt(t,"nextSibling")},prev:function(t){return Qt(t,"previousSibling")},nextAll:function(t){return jt(t,"nextSibling")},prevAll:function(t){return jt(t,"previousSibling")}
1,nextUntil:function(t,e,i){return jt(t,"nextSibling",i)},prevUntil:function(t,e,i){return jt(t,"previousSibling",i)},siblings:function(t){return Gt((t.parentNode||{}).firstChild,t)},children:function(t){return Gt(t.firstChild)},contents:function(t){return null!=t.contentDocument&&B(t.contentDocument)?t.contentDocument:(b(t,"template")&&(t=t.content||t),w.merge([],t.childNodes))}},function(s,n){w.fn[s]=function(t,e){var i=w.map(this,n,t);return(e="Until"!==s.slice(-5)?t:e)&&"string"==typeof e&&(i=w.filter(e,i)),1<this.length&&(Zt[s]||w.uniqueSort(i),Jt.test(s))&&i.reverse(),this.pushStack(i)}});var M=/[^\x20\t\r\n\f]+/g;function te(t){return t}function ee(t){throw t}function ie(t,e,i,s){var n;try{t&&v(n=t.promise)?n.call(t).done(e).fail(i):t&&v(n=t.then)?n.call(t,e,i):e.apply(void 0,[t].slice(s))}catch(t){i.apply(void 0,[t])}}w.Callbacks=function(s){var t,i;s="string"==typeof s?(t=s,i={},w.each(t.match(M)||[],function(t,e){i[e]=!0}),i):w.extend({},s);function n(){for(o=o||s.once,a=r=!0;h.length;c=-1)for(e=h.shift();++c<l.length;)!1===l[c].apply(e[0],e[1])&&s.stopOnFalse&&(c=l.length,e=!1);s.memory||(e=!1),r=!1,o&&(l=e?[]:"")}var r,e,a,o,l=[],h=[],c=-1,p={add:function(){return l&&(e&&!r&&(c=l.length-1,h.push(e)),function i(t){w.each(t,function(t,e){v(e)?s.unique&&p.has(e)||l.push(e):e&&e.length&&"string"!==K(e)&&i(e)})}(arguments),e)&&!r&&n(),this},remove:function(){return w.each(arguments,function(t,e){for(var i;-1<(i=w.inArray(e,l,i));)l.splice(i,1),i<=c&&c--}),this},has:function(t){return t?-1<w.inArray(t,l):0<l.length},empty:function(){return l=l&&[],this},disable:function(){return o=h=[],l=e="",this},disabled:function(){return!l},lock:function(){return o=h=[],e||r||(l=e=""),this},locked:function(){return!!o},fireWith:function(t,e){return o||(e=[t,(e=e||[]).slice?e.slice():e],h.push(e),r)||n(),this},fire:function(){return p.fireWith(this,arguments),this},fired:function(){return!!a}};return p},w.extend({Deferred:function(t){var r=[["notify","progress",w.Callbacks("memory"),w.Callbacks("memory"),2],["resolve","done",w.Callbacks("once memory"),w.Callbacks("once memory"),0,"resolved"],["reject","fail",w.Callbacks("once memory"),w.Callbacks("once memory"),1,"rejected"]],n="pending",a={state:function(){return n},always:function(){return o.done(arguments).fail(arguments),this},catch:function(t){return a.then(null,t)},pipe:function(){var n=arguments;return w.Deferred(function(s){w.each(r,function(t,e){var i=v(n[e[4]])&&n[e[4]];o[e[1]](function(){var t=i&&i.apply(this,arguments);t&&v(t.promise)?t.promise().progress(s.notify).done(s.resolve).fail(s.reject):s[e[0]+"With"](this,i?[t]:arguments)})}),n=null}).promise()},then:function(e,i,s){var l=0;function h(n,r,a,o){return function(){function t(){var t,e;if(!(n<l)){if((t=a.apply(i,s))===r.promise())throw new TypeError("Thenable self-resolution");e=t&&("object"==typeof t||"function"==typeof t)&&t.then,v(e)?o?e.call(t,h(l,r,te,o),h(l,r,ee,o)):(l++,e.call(t,h(l,r,te,o),h(l,r,ee,o),h(l,r,te,r.notifyWith))):(a!==te&&(i=void 0,s=[t]),(o||r.resolveWith)(i,s))}}var i=this,s=arguments,e=o?t:function(){try{t()}catch(t){w.Deferred.exceptionHook&&w.Deferred.exceptionHook(t,e.error),l<=n+1&&(a!==ee&&(i=void 0,s=[t]),r.rejectWith(i,s))}};n?e():(w.Deferred.getErrorHook?e.error=w.Deferred.getErrorHook():w.Deferred.getStackHook&&(e.error=w.Deferred.getStackHook()),C.setTimeout(e))}}return w.Deferred(function(t){r[0][3].add(h(0,t,v(s)?s:te,t.notifyWith)),r[1][3].add(h(0,t,v(e)?e:te)),r[2][3].add(h(0,t,v(i)?i:ee))}).promise()},promise:function(t){return null!=t?w.extend(t,a):a}},o={};return w.each(r,function(t,e){var i=e[2],s=e[5];a[e[1]]=i.add,s&&i.add(function(){n=s},r[3-t][2].disable,r[3-t][3].disable,r[0][2].lock,r[0][3].lock),i.add(e[3].fire),o[e[0]]=function(){return o[e[0]+"With"](this===o?void 0:this,arguments),this},o[e[0]+"With"]=i.fireWith}),a.promise(o),t&&t.call(o,o),o},when:function(t){function e(e){return function(t){n[e]=this,r[e]=1<arguments.length?o.call(arguments):t,--i||a.resolveWith(n,r)}}var i=arguments.length,s=i,n=Array(s),r=o.call(arguments),a=w.Deferred();if(i<=1&&(ie(t,a.done(e(s)).resolve,a.reject,!i),"pending"===a.state()||v(r[s]&&r[s].then)))return a.then();for(;s--;)ie(r[s],e(s),a.reject);return a.promise()}});var se=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/,ne=(w.Deferred.exceptionHook=function(t,e){C.console&&C.console.warn&&t&&se.test(t.name)&&C.console.warn("jQuery.Deferred exception: "+t.message,t.stack,e)},w.readyException=function(t){C.setTimeout(function(){throw t})},w.Deferred());function re(){S.removeEventListener("DOMContentLoaded",re),C.removeEventListener("load",re),w.ready()}
1w.fn.ready=function(t){return ne.then(t).catch(function(t){w.readyException(t)}),this},w.extend({isReady:!1,readyWait:1,ready:function(t){(!0===t?--w.readyWait:w.isReady)||(w.isReady=!0)!==t&&0<--w.readyWait||ne.resolveWith(S,[w])}}),w.ready.then=ne.then,"complete"===S.readyState||"loading"!==S.readyState&&!S.documentElement.doScroll?C.setTimeout(w.ready):(S.addEventListener("DOMContentLoaded",re),C.addEventListener("load",re));function c(t,e,i,s,n,r,a){var o=0,l=t.length,h=null==i;if("object"===K(i))for(o in n=!0,i)c(t,e,o,i[o],!0,r,a);else if(void 0!==s&&(n=!0,v(s)||(a=!0),e=h?a?(e.call(t,s),null):(h=e,function(t,e,i){return h.call(w(t),i)}):e))for(;o<l;o++)e(t[o],i,a?s:s.call(t[o],o,e(t[o],i)));return n?t:h?e.call(t):l?e(t[0],i):r}var ae=/^-ms-/,oe=/-([a-z])/g;function le(t,e){return e.toUpperCase()}function I(t){return t.replace(ae,"ms-").replace(oe,le)}function he(t){return 1===t.nodeType||9===t.nodeType||!+t.nodeType}function ce(){this.expando=w.expando+ce.uid++}ce.uid=1,ce.prototype={cache:function(t){var e=t[this.expando];return e||(e={},he(t)&&(t.nodeType?t[this.expando]=e:Object.defineProperty(t,this.expando,{value:e,configurable:!0}))),e},set:function(t,e,i){var s,n=this.cache(t);if("string"==typeof e)n[I(e)]=i;else for(s in e)n[I(s)]=e[s];return n},get:function(t,e){return void 0===e?this.cache(t):t[this.expando]&&t[this.expando][I(e)]},access:function(t,e,i){return void 0===e||e&&"string"==typeof e&&void 0===i?this.get(t,e):(this.set(t,e,i),void 0!==i?i:e)},remove:function(t,e){var i,s=t[this.expando];if(void 0!==s){if(void 0!==e){i=(e=Array.isArray(e)?e.map(I):(e=I(e))in s?[e]:e.match(M)||[]).length;for(;i--;)delete s[e[i]]}void 0!==e&&!w.isEmptyObject(s)||(t.nodeType?t[this.expando]=void 0:delete t[this.expando])}},hasData:function(t){t=t[this.expando];return void 0!==t&&!w.isEmptyObject(t)}};var y=new ce,h=new ce,pe=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,ue=/[A-Z]/g;function de(t,e,i){var s,n;if(void 0===i&&1===t.nodeType)if(s="data-"+e.replace(ue,"-$&").toLowerCase(),"string"==typeof(i=t.getAttribute(s))){try{i="true"===(n=i)||"false"!==n&&("null"===n?null:n===+n+""?+n:pe.test(n)?JSON.parse(n):n)}catch(t){}h.set(t,e,i)}else i=void 0;return i}w.extend({hasData:function(t){return h.hasData(t)||y.hasData(t)},data:function(t,e,i){return h.access(t,e,i)},removeData:function(t,e){h.remove(t,e)},_data:function(t,e,i){return y.access(t,e,i)},_removeData:function(t,e){y.remove(t,e)}}),w.fn.extend({data:function(i,t){var e,s,n,r=this[0],a=r&&r.attributes;if(void 0!==i)return"object"==typeof i?this.each(function(){h.set(this,i)}):c(this,function(t){var e;if(r&&void 0===t)return void 0!==(e=h.get(r,i))||void 0!==(e=de(r,i))?e:void 0;this.each(function(){h.set(this,i,t)})},null,t,1<arguments.length,null,!0);if(this.length&&(n=h.get(r),1===r.nodeType)&&!y.get(r,"hasDataAttrs")){for(e=a.length;e--;)a[e]&&0===(s=a[e].name).indexOf("data-")&&(s=I(s.slice(5)),de(r,s,n[s]));y.set(r,"hasDataAttrs",!0)}return n},removeData:function(t){return this.each(function(){h.remove(this,t)})}}),w.extend({queue:function(t,e,i){var s;if(t)return s=y.get(t,e=(e||"fx")+"queue"),i&&(!s||Array.isArray(i)?s=y.access(t,e,w.makeArray(i)):s.push(i)),s||[]},dequeue:function(t,e){e=e||"fx";var i=w.queue(t,e),s=i.length,n=i.shift(),r=w._queueHooks(t,e);"inprogress"===n&&(n=i.shift(),s--),n&&("fx"===e&&i.unshift("inprogress"),delete r.stop,n.call(t,function(){w.dequeue(t,e)},r)),!s&&r&&r.empty.fire()},_queueHooks:function(t,e){var i=e+"queueHooks";return y.get(t,i)||y.access(t,i,{empty:w.Callbacks("once memory").add(function(){y.remove(t,[e+"queue",i])})})}}),w.fn.extend({queue:function(e,i){var t=2;return"string"!=typeof e&&(i=e,e="fx",t--),arguments.length<t?w.queue(this[0],e):void 0===i?this:this.each(function(){var t=w.queue(this,e,i);w._queueHooks(this,e),"fx"===e&&"inprogress"!==t[0]&&w.dequeue(this,e)})},dequeue:function(t){return this.each(function(){w.dequeue(this,t)})},clearQueue:function(t){return this.queue(t||"fx",[])},promise:function(t,e){function i(){--n||r.resolveWith(a,[a])}var s,n=1,r=w.Deferred(),a=this,o=this.length;for("string"!=typeof t&&(e=t,t=void 0),t=t||"fx";o--;)(s=y.get(a[o],t+"queueHooks"))&&s.empty&&(n++,s.empty.add(i));return i(),r.promise(e)}});function fe(t,e){return"none"===(t=e||t).style.display||""===t.style.display&&ve(t)&&"none"===w.css(t,"display")}var t=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,me=new RegExp("^(?:([+-])=|)("+t+")([a-z%]*)$","i"),ge=["Top","Right","Bottom","Left"],ye=S.documentElement,ve=function(t){return w.contains(t.ownerDocument,t)},be={composed:!0};ye.getRootNode&&(ve=function(t){return w.contains(t.ownerDocument,t)||t.getRootNode(be)===t.ownerDocument});function _e(t,e,i,s){var n,r,a=20,o=s?function(){return s.cur()}:function(){return w.css(t,e,"")},l=o(),h=i&&i[3]||(w.cssNumber[e]?"":"px"),c=t.nodeType&&(w.cssNumber[e]||"px"!==h&&+l)&&me.exec(w.css(t,e));if(c&&c[3]!==h){for(h=h||c[3],c=+(l/=2)||1;a--;)w.style(t,e,c+h),(1-r)*(1-(r=o()/l||.5))<=0&&(a=0),c/=r;w.style(t,e,(c*=2)+h),i=i||[]}return i&&(c=+c||+l||0,n=i[1]?c+(i[1]+1)*i[2]:+i[2],s)&&(s.unit=h,s.start=c,s.end=n),n}var xe={};function Ce(t,e){for(var i,s,n,r,a,o,l=[],h=0,c=t.length;h<c;h++)(s=t[h]).style&&(i=s.style.display,e?("none"===i&&(l[h]=y.get(s,"display")||null,l[h]||(s.style.display="")),""===s.style.display&&fe(s)&&(l[h]=(o=r=n=void 0,r=s.ownerDocument,(o=xe[a=s.nodeName])||(n=r.body.appendChild(r.createElement(a)),o=w.css(n,"dis
vendor: 8,627 bytes, line 1
1play"),n.parentNode.removeChild(n),xe[a]=o="none"===o?"block":o)))):"none"!==i&&(l[h]="none",y.set(s,"display",i)));for(h=0;h<c;h++)null!=l[h]&&(t[h].style.display=l[h]);return t}w.fn.extend({show:function(){return Ce(this,!0)},hide:function(){return Ce(this)},toggle:function(t){return"boolean"==typeof t?t?this.show():this.hide():this.each(function(){fe(this)?w(this).show():w(this).hide()})}});var Se=/^(?:checkbox|radio)$/i,we=/<([a-z][^\/\0>\x20\t\r\n\f]*)/i,ke=/^$|^module$|\/(?:java|ecma)script/i,r=S.createDocumentFragment().appendChild(S.createElement("div")),f=((a=S.createElement("input")).setAttribute("type","radio"),a.setAttribute("checked","checked"),a.setAttribute("name","t"),r.appendChild(a),m.checkClone=r.cloneNode(!0).cloneNode(!0).lastChild.checked,r.innerHTML="<textarea>x</textarea>",m.noCloneChecked=!!r.cloneNode(!0).lastChild.defaultValue,r.innerHTML="<option></option>",m.option=!!r.lastChild,{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 g(t,e){var i=void 0!==t.getElementsByTagName?t.getElementsByTagName(e||"*"):void 0!==t.querySelectorAll?t.querySelectorAll(e||"*"):[];return void 0===e||e&&b(t,e)?w.merge([t],i):i}function Ee(t,e){for(var i=0,s=t.length;i<s;i++)y.set(t[i],"globalEval",!e||y.get(e[i],"globalEval"))}f.tbody=f.tfoot=f.colgroup=f.caption=f.thead,f.th=f.td,m.option||(f.optgroup=f.option=[1,"<select multiple='multiple'>","</select>"]);var Pe=/<|&#?\w+;/;function De(t,e,i,s,n){for(var r,a,o,l,h,c=e.createDocumentFragment(),p=[],u=0,d=t.length;u<d;u++)if((r=t[u])||0===r)if("object"===K(r))w.merge(p,r.nodeType?[r]:r);else if(Pe.test(r)){for(a=a||c.appendChild(e.createElement("div")),o=(we.exec(r)||["",""])[1].toLowerCase(),o=f[o]||f._default,a.innerHTML=o[1]+w.htmlPrefilter(r)+o[2],h=o[0];h--;)a=a.lastChild;w.merge(p,a.childNodes),(a=c.firstChild).textContent=""}else p.push(e.createTextNode(r));for(c.textContent="",u=0;r=p[u++];)if(s&&-1<w.inArray(r,s))n&&n.push(r);else if(l=ve(r),a=g(c.appendChild(r),"script"),l&&Ee(a),i)for(h=0;r=a[h++];)ke.test(r.type||"")&&i.push(r);return c}var Te=/^([^.]*)(?:\.(.+)|)/;function Ae(){return!0}function Me(){return!1}function Ie(t,e,i,s,n,r){var a,o;if("object"==typeof e){for(o in"string"!=typeof i&&(s=s||i,i=void 0),e)Ie(t,o,i,s,e[o],r);return t}if(null==s&&null==n?(n=i,s=i=void 0):null==n&&("string"==typeof i?(n=s,s=void 0):(n=s,s=i,i=void 0)),!1===n)n=Me;else if(!n)return t;return 1===r&&(a=n,(n=function(t){return w().off(t),a.apply(this,arguments)}).guid=a.guid||(a.guid=w.guid++)),t.each(function(){w.event.add(this,e,n,s,i)})}function Fe(t,s,e){e?(y.set(t,s,!1),w.event.add(t,s,{namespace:!1,handler:function(t){var e,i=y.get(this,s);if(1&t.isTrigger&&this[s]){if(i)(w.event.special[s]||{}).delegateType&&t.stopPropagation();else if(i=o.call(arguments),y.set(this,s,i),this[s](),e=y.get(this,s),y.set(this,s,!1),i!==e)return t.stopImmediatePropagation(),t.preventDefault(),e}else i&&(y.set(this,s,w.event.trigger(i[0],i.slice(1),this)),t.stopPropagation(),t.isImmediatePropagationStopped=Ae)}})):void 0===y.get(t,s)&&w.event.add(t,s,Ae)}w.event={global:{},add:function(e,t,i,s,n){var r,a,o,l,h,c,p,u,d,f=y.get(e);if(he(e))for(i.handler&&(i=(r=i).handler,n=r.selector),n&&w.find.matchesSelector(ye,n),i.guid||(i.guid=w.guid++),o=(o=f.events)||(f.events=Object.create(null)),a=(a=f.handle)||(f.handle=function(t){return void 0!==w&&w.event.triggered!==t.type?w.event.dispatch.apply(e,arguments):void 0}),l=(t=(t||"").match(M)||[""]).length;l--;)p=d=(u=Te.exec(t[l])||[])[1],u=(u[2]||"").split(".").sort(),p&&(h=w.event.special[p]||{},p=(n?h.delegateType:h.bindType)||p,h=w.event.special[p]||{},d=w.extend({type:p,origType:d,data:s,handler:i,guid:i.guid,selector:n,needsContext:n&&w.expr.match.needsContext.test(n),namespace:u.join(".")},r),(c=o[p])||((c=o[p]=[]).delegateCount=0,h.setup&&!1!==h.setup.call(e,s,u,a))||e.addEventListener&&e.addEventListener(p,a),h.add&&(h.add.call(e,d),d.handler.guid||(d.handler.guid=i.guid)),n?c.splice(c.delegateCount++,0,d):c.push(d),w.event.global[p]=!0)},remove:function(t,e,i,s,n){var r,a,o,l,h,c,p,u,d,f,m,g=y.hasData(t)&&y.get(t);if(g&&(l=g.events)){for(h=(e=(e||"").match(M)||[""]).length;h--;)if(d=m=(o=Te.exec(e[h])||[])[1],f=(o[2]||"").split(".").sort(),d){for(p=w.event.special[d]||{},u=l[d=(s?p.delegateType:p.bindType)||d]||[],o=o[2]&&new RegExp("(^|\\.)"+f.join("\\.(?:.*\\.|)")+"(\\.|$)"),a=r=u.length;r--;)c=u[r],!n&&m!==c.origType||i&&i.guid!==c.guid||o&&!o.test(c.namespace)||s&&s!==c.selector&&("**"!==s||!c.selector)||(u.splice(r,1),c.selector&&u.delegateCount--,p.remove&&p.remove.call(t,c));a&&!u.length&&(p.teardown&&!1!==p.teardown.call(t,f,g.handle)||w.removeEvent(t,d,g.handle),delete l[d])}else for(d in l)w.event.remove(t,d+e[h],i,s,!0);w.isEmptyObject(l)&&y.remove(t,"handle events")}},dispatch:function(t){var e,i,s,n,r,a=new Array(arguments.length),o=w.event.fix(t),t=(y.get(this,"events")||Object.create(null))[o.type]||[],l=w.event.special[o.type]||{};for(a[0]=o,e=1;e<arguments.length;e++)a[e]=arguments[e];if(o.delegateTarget=this,!l.preDispatch||!1!==l.preDispatch.call(this,o)){for(r=w.event.handlers.call(this,o,t),e=0;(s=r[e++])&&!o.isPropagationStopped();)for(o.currentTarget=s.elem,i=0;(n=s.handlers[i++])&&!o.isImmediatePropagationStopped();)o.rnamespace&&!1!==n.namespace&&!o.rnamespace.test(n.namespace)||(o.handleObj=n,o.data=n.data,void 0!==(n=((w.event.special[n.origType]||{}).handle||n.handler).apply(s.elem,a))&&!1===(o.result=n)&&(o.preventDefault(),o.stopPropagation()));return l.postDispatch&&l.postDispatch.call(this,o),o.result}},handlers:function(t,e){var i,s,n,r,a,o=[],l=e.delegateCount,h=t.target;if(l&&h.nodeType&&!("click"===t.type&&1<=t.button))for(;h!==this;h=h.parentNode||this)if(1===h.nodeType&&("click"!==t.type||!0!==h.disabled)){for(r=[],a={},i=0;i<l;i++)void 0===a[n=(s=e[i]).selector+" "]&&(a[n]=s.needsContext?-1<w(n,this).index(h):w.find(n,this,null,[h]).length),a[n]&&r.push(s);r.length&&o.push({elem:h,handlers:r})}return h=this,l<e.length&&o.push({elem:h,handlers:e.slice(l)}),o},addProp:function(e,t){Object.defineProperty(w.Event.prototype,e,{enumerable:!0,configurable:!0,get:v(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(t){return t[w.expando]?t:new w.Event(t)},special:{load:{noBubble:!0},click:{setup:function(t){t=this||t;return Se.test(t.type)&&t.click&&b(t,"input")&&Fe(t,"click",!0),!1},trigger:function(t){t=this||t;return Se.test(t.type)&&t.click&&b(t,"input")&&Fe(t,"click"),!0},_default:function(t){t=t.target;return Se.test(t.type)&&t.click&&b(t,"input")&&y.get(t,"click")||b(t,"a")}},beforeunload:{postDispatch:function(t){void 0!==t.result&&t.originalEvent&&(t.originalEvent.returnValue=t.result)}}}},w.removeEvent=function(t,e,i){t.removeEventListener&&t.removeEventListener(e,i)},w.Event=function(t,e){if(!(this instanceof w.Event))return new w.Event(t,e);t&&t.type?(this.originalEvent=t,this.type=t.type,this.isDefaultPrevented=t.defaultPrevented||void 0===t.defaultPrevented&&!1===t.returnValue?Ae:Me,this.target=t.target&&3===t.target.nodeType?t.target.parentNode:t.target,this.currentTarget=t.currentTarget,this.relatedTarget=t.relatedTarget):this.type=t,e&&w.extend(this,e),this.timeStamp=t&&t.timeStamp||Date.now(),this[w.expando]=!0},w.Event.prototype={constructor:w.Event,isDefaultPrevented:Me,isPropagationStopped:Me,isImmediatePropagationStopped:Me,isSimulated:!1,preventDefault:function(){var t=this.originalEvent;this.isDefaultPrevented=Ae,t&&!this.isSimulated&&t.preventDefault()},stopPropagation:function(){var t=this.originalEvent;this.isPropagationStopped=Ae,t&&!this.isSimulated&&t.stopPropagation()},stopImmediatePropagation:function(){var t=this.originalEvent;this.isImmediatePropagationStopped=Ae,t&&!this.isSimulated&&t.stopImmediatePropagation(),this.stopPropagation()}},w.each({altKey:!0,bubbles:!0,cancelable:!0,changedTouches:!0,ctrlKey:!0,detail:!0,eventPhase:!0,metaKey:!0,pageX:!0,pageY:!0,shiftKey:!0,view:!0,char:!0,code:!0,charCode:!0,key:!0,keyCode:!0,button:!0,buttons:!0,clientX:!0,clientY:!0,offsetX:!0,offsetY:!0,pointerId:!0,pointerType:!0,screenX:!0,screenY:!0,targetTouches:!0,toElement:!0,touches:!0,which:!0},w.event.addProp),w.each({focus:"focusin",blur:"focusout"},function(s,n){function r(t){var e,i;S.documentMode?(e=y.get(this,"handle"),(i=w.event.fix(t)).type="focusin"===t.type?"focu
1s":"blur",i.isSimulated=!0,e(t),i.target===i.currentTarget&&e(i)):w.event.simulate(n,t.target,w.event.fix(t))}w.event.special[s]={setup:function(){var t;if(Fe(this,s,!0),!S.documentMode)return!1;(t=y.get(this,n))||this.addEventListener(n,r),y.set(this,n,(t||0)+1)},trigger:function(){return Fe(this,s),!0},teardown:function(){var t;if(!S.documentMode)return!1;(t=y.get(this,n)-1)?y.set(this,n,t):(this.removeEventListener(n,r),y.remove(this,n))},_default:function(t){return y.get(t.target,s)},delegateType:n},w.event.special[n]={setup:function(){var t=this.ownerDocument||this.document||this,e=S.documentMode?this:t,i=y.get(e,n);i||(S.documentMode?this.addEventListener(n,r):t.addEventListener(s,r,!0)),y.set(e,n,(i||0)+1)},teardown:function(){var t=this.ownerDocument||this.document||this,e=S.documentMode?this:t,i=y.get(e,n)-1;i?y.set(e,n,i):(S.documentMode?this.removeEventListener(n,r):t.removeEventListener(s,r,!0),y.remove(e,n))}}}),w.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(t,n){w.event.special[t]={delegateType:n,bindType:n,handle:function(t){var e,i=t.relatedTarget,s=t.handleObj;return i&&(i===this||w.contains(this,i))||(t.type=s.origType,e=s.handler.apply(this,arguments),t.type=n),e}}}),w.fn.extend({on:function(t,e,i,s){return Ie(this,t,e,i,s)},one:function(t,e,i,s){return Ie(this,t,e,i,s,1)},off:function(t,e,i){var s,n;if(t&&t.preventDefault&&t.handleObj)s=t.handleObj,w(t.delegateTarget).off(s.namespace?s.origType+"."+s.namespace:s.origType,s.selector,s.handler);else{if("object"!=typeof t)return!1!==e&&"function"!=typeof e||(i=e,e=void 0),!1===i&&(i=Me),this.each(function(){w.event.remove(this,t,i,e)});for(n in t)this.off(n,e,t[n])}return this}});var Le=/<script|<style|<link/i,Re=/checked\s*(?:[^=]|=\s*.checked.)/i,Oe=/^\s*<!\[CDATA\[|\]\]>\s*$/g;function Ve(t,e){return b(t,"table")&&b(11!==e.nodeType?e:e.firstChild,"tr")&&w(t).children("tbody")[0]||t}function Be(t){return t.type=(null!==t.getAttribute("type"))+"/"+t.type,t}function Ne(t){return"true/"===(t.type||"").slice(0,5)?t.type=t.type.slice(5):t.removeAttribute("type"),t}function ze(t,e){var i,s,n,r;if(1===e.nodeType){if(y.hasData(t)&&(r=y.get(t).events))for(n in y.remove(e,"handle events"),r)for(i=0,s=r[n].length;i<s;i++)w.event.add(e,n,r[n][i]);h.hasData(t)&&(t=h.access(t),t=w.extend({},t),h.set(e,t))}}function He(i,s,n,r){s=N(s);var t,e,a,o,l,h,c=0,p=i.length,u=p-1,d=s[0],f=v(d);if(f||1<p&&"string"==typeof d&&!m.checkClone&&Re.test(d))return i.each(function(t){var e=i.eq(t);f&&(s[0]=d.call(this,t,e.html())),He(e,s,n,r)});if(p&&(e=(t=De(s,i[0].ownerDocument,!1,i,r)).firstChild,1===t.childNodes.length&&(t=e),e||r)){for(o=(a=w.map(g(t,"script"),Be)).length;c<p;c++)l=t,c!==u&&(l=w.clone(l,!0,!0),o)&&w.merge(a,g(l,"script")),n.call(i[c],l,c);if(o)for(h=a[a.length-1].ownerDocument,w.map(a,Ne),c=0;c<o;c++)l=a[c],ke.test(l.type||"")&&!y.access(l,"globalEval")&&w.contains(h,l)&&(l.src&&"module"!==(l.type||"").toLowerCase()?w._evalUrl&&!l.noModule&&w._evalUrl(l.src,{nonce:l.nonce||l.getAttribute("nonce")},h):$(l.textContent.replace(Oe,""),l,h))}return i}function qe(t,e,i){for(var s,n=e?w.filter(e,t):t,r=0;null!=(s=n[r]);r++)i||1!==s.nodeType||w.cleanData(g(s)),s.parentNode&&(i&&ve(s)&&Ee(g(s,"script")),s.parentNode.removeChild(s));return t}w.extend({htmlPrefilter:function(t){return t},clone:function(t,e,i){var s,n,r,a,o,l,h,c=t.cloneNode(!0),p=ve(t);if(!(m.noCloneChecked||1!==t.nodeType&&11!==t.nodeType||w.isXMLDoc(t)))for(a=g(c),s=0,n=(r=g(t)).length;s<n;s++)o=r[s],"input"===(h=(l=a[s]).nodeName.toLowerCase())&&Se.test(o.type)?l.checked=o.checked:"input"!==h&&"textarea"!==h||(l.defaultValue=o.defaultValue);if(e)if(i)for(r=r||g(t),a=a||g(c),s=0,n=r.length;s<n;s++)ze(r[s],a[s]);else ze(t,c);return 0<(a=g(c,"script")).length&&Ee(a,!p&&g(t,"script")),c},cleanData:function(t){for(var e,i,s,n=w.event.special,r=0;void 0!==(i=t[r]);r++)if(he(i)){if(e=i[y.expando]){if(e.events)for(s in e.events)n[s]?w.event.remove(i,s):w.removeEvent(i,s,e.handle);i[y.expando]=void 0}i[h.expando]&&(i[h.expando]=void 0)}}}),w.fn.extend({detach:function(t){return qe(this,t,!0)},remove:function(t){return qe(this,t)},text:function(t){return c(this,function(t){return void 0===t?w.text(this):this.empty().each(function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=t)})},null,t,arguments.length)},append:function(){return He(this,arguments,function(t){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||Ve(this,t).appendChild(t)})},prepend:function(){return He(this,arguments,function(t){var e;1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(e=Ve(this,t)).insertBefore(t,e.firstChild)})},before:function(){return He(this,arguments,function(t){this.parentNode&&this.parentNode.insertBefore(t,this)})},after:function(){return He(this,arguments,function(t){this.parentNode&&this.parentNode.insertBefore(t,this.nextSibling)})},empty:function(){for(var t,e=0;null!=(t=this[e]);e++)1===t.nodeType&&(w.cleanData(g(t,!1)),t.textContent="");return this},clone:function(t,e){return t=null!=t&&t,e=null==e?t:e,this.map(function(){return w.clone(this,t,e)})},html:function(t){return c(this,function(t){var e=this[0]||{},i=0,s=this.length;if(void 0===t&&1===e.nodeType)return e.innerHTML;if("string"==typeof t&&!Le.test(t)&&!f[(we.exec(t)||["",""])[1].toLowerCase()]){t=w.htmlPrefilter(t);try{for(;i<s;i++)1===(e=this[i]||{}
1).nodeType&&(w.cleanData(g(e,!1)),e.innerHTML=t);e=0}catch(t){}}e&&this.empty().append(t)},null,t,arguments.length)},replaceWith:function(){var i=[];return He(this,arguments,function(t){var e=this.parentNode;w.inArray(this,i)<0&&(w.cleanData(g(this)),e)&&e.replaceChild(t,this)},i)}}),w.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(t,a){w.fn[t]=function(t){for(var e,i=[],s=w(t),n=s.length-1,r=0;r<=n;r++)e=r===n?this:this.clone(!0),w(s[r])[a](e),z.apply(i,e.get());return this.pushStack(i)}});function We(t){var e=t.ownerDocument.defaultView;return(e=e&&e.opener?e:C).getComputedStyle(t)}function je(t,e,i){var s,n={};for(s in e)n[s]=t.style[s],t.style[s]=e[s];for(s in i=i.call(t),e)t.style[s]=n[s];return i}var Ge,Ye,$e,Ke,Xe,Ue,Je,F,Ze=new RegExp("^("+t+")(?!px)[a-z%]+$","i"),Qe=/^--/,ti=new RegExp(ge.join("|"),"i");function ei(t,e,i){var s,n=Qe.test(e),r=t.style;return(i=i||We(t))&&(s=i.getPropertyValue(e)||i[e],""!==(s=n?s&&(s.replace(tt,"$1")||void 0):s)||ve(t)||(s=w.style(t,e)),!m.pixelBoxStyles())&&Ze.test(s)&&ti.test(e)&&(n=r.width,t=r.minWidth,e=r.maxWidth,r.minWidth=r.maxWidth=r.width=s,s=i.width,r.width=n,r.minWidth=t,r.maxWidth=e),void 0!==s?s+"":s}function ii(t,e){return{get:function(){if(!t())return(this.get=e).apply(this,arguments);delete this.get}}}function si(){var t;F&&(Je.style.cssText="position:absolute;left:-11111px;width:60px;margin-top:1px;padding:0;border:0",F.style.cssText="position:relative;display:block;box-sizing:border-box;overflow:scroll;margin:auto;border:1px;padding:1px;width:60%;top:1%",ye.appendChild(Je).appendChild(F),t=C.getComputedStyle(F),Ge="1%"!==t.top,Ue=12===ni(t.marginLeft),F.style.right="60%",Ke=36===ni(t.right),Ye=36===ni(t.width),F.style.position="absolute",$e=12===ni(F.offsetWidth/3),ye.removeChild(Je),F=null)}function ni(t){return Math.round(parseFloat(t))}Je=S.createElement("div"),(F=S.createElement("div")).style&&(F.style.backgroundClip="content-box",F.cloneNode(!0).style.backgroundClip="",m.clearCloneStyle="content-box"===F.style.backgroundClip,w.extend(m,{boxSizingReliable:function(){return si(),Ye},pixelBoxStyles:function(){return si(),Ke},pixelPosition:function(){return si(),Ge},reliableMarginLeft:function(){return si(),Ue},scrollboxSize:function(){return si(),$e},reliableTrDimensions:function(){var t,e,i;return null==Xe&&(t=S.createElement("table"),e=S.createElement("tr"),i=S.createElement("div"),t.style.cssText="position:absolute;left:-11111px;border-collapse:separate",e.style.cssText="box-sizing:content-box;
1border:1px solid",e.style.height="1px",i.style.height="9px",i.style.display="block",ye.appendChild(t).appendChild(e).appendChild(i),i=C.getComputedStyle(e),Xe=parseInt(i.height,10)+parseInt(i.borderTopWidth,10)+parseInt(i.borderBottomWidth,10)===e.offsetHeight,ye.removeChild(t)),Xe}}));var ri=["Webkit","Moz","ms"],ai=S.createElement("div").style,oi={};function li(t){return w.cssProps[t]||oi[t]||(t in ai?t:oi[t]=(t=>{for(var e=t[0].toUpperCase()+t.slice(1),i=ri.length;i--;)if((t=ri[i]+e)in ai)return t})(t)||t)}var hi=/^(none|table(?!-c[ea]).+)/,ci={position:"absolute",visibility:"hidden",display:"block"},pi={letterSpacing:"0",fontWeight:"400"};function ui(t,e,i){var s=me.exec(e);return s?Math.max(0,s[2]-(i||0))+(s[3]||"px"):e}function di(t,e,i,s,n,r){var a="width"===e?1:0,o=0,l=0,h=0;if(i===(s?"border":"content"))return 0;for(;a<4;a+=2)"margin"===i&&(h+=w.css(t,i+ge[a],!0,n)),s?("content"===i&&(l-=w.css(t,"padding"+ge[a],!0,n)),"margin"!==i&&(l-=w.css(t,"border"+ge[a]+"Width",!0,n))):(l+=w.css(t,"padding"+ge[a],!0,n),"padding"!==i?l+=w.css(t,"border"+ge[a]+"Width",!0,n):o+=w.css(t,"border"+ge[a]+"Width",!0,n));return!s&&0<=r&&(l+=Math.max(0,Math.ceil(t["offset"+e[0].toUpperCase()+e.slice(1)]-r-l-o-.5))||0),l+h}function fi(t,e,i){var s=We(t),n=(!m.boxSizingReliable()||i)&&"border-box"===w.css(t,"boxSizing",!1,s),r=n,a=ei(t,e,s),o="offset"+e[0].toUpperCase()+e.slice(1);if(Ze.test(a)){if(!i)return a;a="auto"}return(!m.boxSizingReliable()&&n||!m.reliableTrDimensions()&&b(t,"tr")||"auto"===a||!parseFloat(a)&&"inline"===w.css(t,"display",!1,s))&&t.getClientRects().length&&(n="border-box"===w.css(t,"boxSizing",!1,s),r=o in t)&&(a=t[o]),(a=parseFloat(a)||0)+di(t,e,i||(n?"border":"content"),r,s,a)+"px"}function L(t,e,i,s,n){return new L.prototype.init(t,e,i,s,n)}w.extend({cssHooks:{opacity:{get:function(t,e){if(e)return""===(e=ei(t,"opacity"))?"1":e}}},cssNumber:{animationIterationCount:!0,aspectRatio:!0,borderImageSlice:!0,columnCount:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,gridArea:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnStart:!0,gridRow:!0,gridRowEnd:!0,gridRowStart:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,scale:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeMiterlimit:!0,strokeOpacity:!0},cssProps:{},style:function(t,e,i,s){if(t&&3!==t.nodeType&&8!==t.nodeType&&t.style){var n,r,a,o=I(e),l=Qe.test(e),h=t.style;if(l||(e=li(o)),a=w.cssHooks[e]||w.cssHooks[o],void 0===i)return a&&"get"in a&&void 0!==(n=a.get(t,!1,s))?n:h[e];"string"==(r=typeof i)&&(n=me.exec(i))&&n[1]&&(i=_e(t,e,n),r="number"),null!=i&&i==i&&("number"!==r||l||(i+=n&&n[3]||(w.cssNumber[o]?"":"px")),m.clearCloneStyle||""!==i||0!==e.indexOf("background")||(h[e]="inherit"),a&&"set"in a&&void 0===(i=a.set(t,i,s))||(l?h.setProperty(e,i):h[e]=i))}},css:function(t,e,i,s){var n,r=I(e);return Qe.test(e)||(e=li(r)),"normal"===(n=void 0===(n=(r=w.cssHooks[e]||w.cssHooks[r])&&"get"in r?r.get(t,!0,i):n)?ei(t,e,s):n)&&e in pi&&(n=pi[e]),(""===i||i)&&(r=parseFloat(n),!0===i||isFinite(r))?r||0:n}}),w.each(["height","width"],function(t,a){w.cssHooks[a]={get:function(t,e,i){if(e)return!hi.test(w.css(t,"display"))||t.getClientRects().length&&t.getBoundingClientRect().width?fi(t,a,i):je(t,ci,function(){return fi(t,a,i)})},set:function(t,e,i){var s=We(t),n=!m.scrollboxSize()&&"absolute"===s.position,r=(n||i)&&"border-box"===w.css(t,"boxSizing",!1,s),i=i?di(t,a,i,r,s):0;return r&&n&&(i-=Math.ceil(t["offset"+a[0].toUpperCase()+a.slice(1)]-parseFloat(s[a])-di(t,a,"border",!1,s)-.5)),i&&(r=me.exec(e))&&"px"!==(r[3]||"px")&&(t.style[a]=e,e=w.css(t,a)),ui(0,e,i)}}}),w.cssHooks.marginLeft=ii(m.reliableMarginLeft,function(t,e){if(e)return(parseFloat(ei(t,"marginLeft"))||t.getBoundingClientRect().left-je(t,{marginLeft:0},function(){return t.getBoundingClientRect().left}))+"px"}),w.each({margin:"",padding:"",border:"Width"},function(n,r){w.cssHooks[n+r]={expand:function(t){for(var e=0,i={},s="string"==typeof t?t.split(" "):[t];e<4;e++)i[n+ge[e]+r]=s[e]||s[e-2]||s[0];return i}},"margin"!==n&&(w.cssHooks[n+r].set=ui)}
vendor: 2,285 bytes, line 1
1),w.fn.extend({css:function(t,e){return c(this,function(t,e,i){var s,n,r={},a=0;if(Array.isArray(e)){for(s=We(t),n=e.length;a<n;a++)r[e[a]]=w.css(t,e[a],!1,s);return r}return void 0!==i?w.style(t,e,i):w.css(t,e)},t,e,1<arguments.length)}}),((w.Tween=L).prototype={constructor:L,init:function(t,e,i,s,n,r){this.elem=t,this.prop=i,this.easing=n||w.easing._default,this.options=e,this.start=this.now=this.cur(),this.end=s,this.unit=r||(w.cssNumber[i]?"":"px")},cur:function(){var t=L.propHooks[this.prop];return(t&&t.get?t:L.propHooks._default).get(this)},run:function(t){var e,i=L.propHooks[this.prop];return this.options.duration?this.pos=e=w.easing[this.easing](t,this.options.duration*t,0,1,this.options.duration):this.pos=e=t,this.now=(this.end-this.start)*e+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),(i&&i.set?i:L.propHooks._default).set(this),this}}).init.prototype=L.prototype,(L.propHooks={_default:{get:function(t){return 1!==t.elem.nodeType||null!=t.elem[t.prop]&&null==t.elem.style[t.prop]?t.elem[t.prop]:(t=w.css(t.elem,t.prop,""))&&"auto"!==t?t:0},set:function(t){w.fx.step[t.prop]?w.fx.step[t.prop](t):1!==t.elem.nodeType||!w.cssHooks[t.prop]&&null==t.elem.style[li(t.prop)]?t.elem[t.prop]=t.now:w.style(t.elem,t.prop,t.now+t.unit)}}}).scrollTop=L.propHooks.scrollLeft={set:function(t){t.elem.nodeType&&t.elem.parentNode&&(t.elem[t.prop]=t.now)}},w.easing={linear:function(t){return t},swing:function(t){return.5-Math.cos(t*Math.PI)/2},_default:"swing"},w.fx=L.prototype.init,w.fx.step={};var mi,gi,yi=/^(?:toggle|show|hide)$/,vi=/queueHooks$/;function bi(){gi&&(!1===S.hidden&&C.requestAnimationFrame?C.requestAnimationFrame(bi):C.setTimeout(bi,w.fx.interval),w.fx.tick())}function _i(){return C.setTimeout(function(){mi=void 0}),mi=Date.now()}function xi(t,e){var i,s=0,n={height:t};for(e=e?1:0;s<4;s+=2-e)n["margin"+(i=ge[s])]=n["padding"+i]=t;return e&&(n.opacity=n.width=t),n}function Ci(t,e,i){for(var s,n=(R.tweeners[e]||[]).concat(R.tweeners["*"]),r=0,a=n.length;r<a;r++)if(s=n[r].call(i,e,t))return s}function R(n,t,e){var i,r,s,a,o,l,h,c=0,p=R.prefilters.length,u=w.Deferred().always(function(){delete d.elem}),d=function(){if(r)return!1;for(var t=mi||_i(),t=Math.max(0,f.startTime+f.duration-t),e=1-(t/f.duration||0),i=0,s=f.t
vendor: 10,426 bytes, line 1
1weens.length;i<s;i++)f.tweens[i].run(e);return u.notifyWith(n,[f,e,t]),e<1&&s?t:(s||u.notifyWith(n,[f,1,0]),u.resolveWith(n,[f]),!1)},f=u.promise({elem:n,props:w.extend({},t),opts:w.extend(!0,{specialEasing:{},easing:w.easing._default},e),originalProperties:t,originalOptions:e,startTime:mi||_i(),duration:e.duration,tweens:[],createTween:function(t,e){e=w.Tween(n,f.opts,t,e,f.opts.specialEasing[t]||f.opts.easing);return f.tweens.push(e),e},stop:function(t){var e=0,i=t?f.tweens.length:0;if(!r){for(r=!0;e<i;e++)f.tweens[e].run(1);t?(u.notifyWith(n,[f,1,0]),u.resolveWith(n,[f,t])):u.rejectWith(n,[f,t])}return this}}),m=f.props,g=m,y=f.opts.specialEasing;for(s in g)if(o=y[a=I(s)],l=g[s],Array.isArray(l)&&(o=l[1],l=g[s]=l[0]),s!==a&&(g[a]=l,delete g[s]),(h=w.cssHooks[a])&&"expand"in h)for(s in l=h.expand(l),delete g[a],l)s in g||(g[s]=l[s],y[s]=o);else y[a]=o;for(;c<p;c++)if(i=R.prefilters[c].call(f,n,m,f.opts))return v(i.stop)&&(w._queueHooks(f.elem,f.opts.queue).stop=i.stop.bind(i)),i;return w.map(m,Ci,f),v(f.opts.start)&&f.opts.start.call(n,f),f.progress(f.opts.progress).done(f.opts.done,f.opts.complete).fail(f.opts.fail).always(f.opts.always),w.fx.timer(w.extend(d,{elem:n,anim:f,queue:f.opts.queue})),f}w.Animation=w.extend(R,{tweeners:{"*":[function(t,e){var i=this.createTween(t,e);return _e(i.elem,t,me.exec(e),i),i}]},tweener:function(t,e){for(var i,s=0,n=(t=v(t)?(e=t,["*"]):t.match(M)).length;s<n;s++)i=t[s],R.tweeners[i]=R.tweeners[i]||[],R.tweeners[i].unshift(e)},prefilters:[function(t,e,i){var s,n,r,a,o,l,h,c="width"in e||"height"in e,p=this,u={},d=t.style,f=t.nodeType&&fe(t),m=y.get(t,"fxshow");for(s in i.queue||(null==(a=w._queueHooks(t,"fx")).unqueued&&(a.unqueued=0,o=a.empty.fire,a.empty.fire=function(){a.unqueued||o()}),a.unqueued++,p.always(function(){p.always(function(){a.unqueued--,w.queue(t,"fx").length||a.empty.fire()})})),e)if(n=e[s],yi.test(n)){if(delete e[s],r=r||"toggle"===n,n===(f?"hide":"show")){if("show"!==n||!m||void 0===m[s])continue;f=!0}u[s]=m&&m[s]||w.style(t,s)}if((l=!w.isEmptyObject(e))||!w.isEmptyObject(u))for(s in c&&1===t.nodeType&&(i.overflow=[d.overflow,d.overflowX,d.overflowY],null==(h=m&&m.display)&&(h=y.get(t,"display")),"none"===(c=w.css(t,"display"))&&(h?c=h:(Ce([t],!0),h=t.style.display||h,c=w.css(t,"display"),Ce([t]))),"inline"===c||"inline-block"===c&&null!=h)&&"none"===w.css(t,"float")&&(l||(p.done(function(){d.display=h}),null==h&&(c=d.display,h="none"===c?"":c)),d.display="inline-block"),i.overflow&&(d.overflow="hidden",p.always(function(){d.overflow=i.overflow[0],d.overflowX=i.overflow[1],d.overflowY=i.overflow[2]})),l=!1,u)l||(m?"hidden"in m&&(f=m.hidden):m=y.access(t,"fxshow",{display:h}),r&&(m.hidden=!f),f&&Ce([t],!0),p.done(function(){for(s in f||Ce([t]),y.remove(t,"fxshow"),u)w.style(t,s,u[s])})),l=Ci(f?m[s]:0,s,p),s in m||(m[s]=l.start,f&&(l.end=l.start,l.start=0))}],prefilter:function(t,e){e?R.prefilters.unshift(t):R.prefilters.push(t)}}),w.speed=function(t,e,i){var s=t&&"object"==typeof t?w.extend({},t):{complete:i||!i&&e||v(t)&&t,duration:t,easing:i&&e||e&&!v(e)&&e};return w.fx.off?s.duration=0:"number"!=typeof s.duration&&(s.duration in w.fx.speeds?s.duration=w.fx.speeds[s.duration]:s.duration=w.fx.speeds._default),null!=s.queue&&!0!==s.queue||(s.queue="fx"),s.old=s.complete,s.complete=function(){v(s.old)&&s.old.call(this),s.queue&&w.dequeue(this,s.queue)},s},w.fn.extend({fadeTo:function(t,e,i,s){return this.filter(fe).css("opacity",0).show().end().animate({opacity:e},t,i,s)},animate:function(e,t,i,s){function n(){var t=R(this,w.extend({},e),a);(r||y.get(this,"finish"))&&t.stop(!0)}var r=w.isEmptyObject(e),a=w.speed(t,i,s);return n.finish=n,r||!1===a.queue?this.each(n):this.queue(a.queue,n)},stop:function(n,t,r){function a(t){var e=t.stop;delete t.stop,e(r)}return"string"!=typeof n&&(r=t,t=n,n=void 0),t&&this.queue(n||"fx",[]),this.each(function(){var t=!0,e=null!=n&&n+"queueHooks",i=w.timers,s=y.get(this);if(e)s[e]&&s[e].stop&&a(s[e]);else for(e in s)s[e]&&s[e].stop&&vi.test(e)&&a(s[e]);for(e=i.length;e--;)i[e].elem!==this||null!=n&&i[e].queue!==n||(i[e].anim.stop(r),t=!1,i.splice(e,1));!t&&r||w.dequeue(this,n)})},finish:function(a){return!1!==a&&(a=a||"fx"),this.each(function(){var t,e=y.get(this),i=e[a+"queue"],s=e[a+"queueHooks"],n=w.timers,r=i?i.length:0;for(e.finish=!0,w.queue(this,a,[]),s&&s.stop&&s.stop.call(this,!0),t=n.length;t--;)n[t].elem===this&&n[t].queue===a&&(n[t].anim.stop(!0),n.splice(t,1));for(t=0;t<r;t++)i[t]&&i[t].finish&&i[t].finish.call(this);delete e.finish})}}),w.each(["toggle","show","hide"],function(t,s){var n=w.fn[s];w.fn[s]=function(t,e,i){return null==t||"boolean"==typeof t?n.apply(this,arguments):this.animate(xi(s,!0),t,e,i)}}),w.each({slideDown:xi("show"),slideUp:xi("hide"),slideToggle:xi("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(t,s){w.fn[t]=function(t,e,i){return this.animate(s,t,e,i)}}),w.timers=[],w.fx.tick=function(){var t,e=0,i=w.timers;for(mi=Date.now();e<i.length;e++)(t=i[e])()||i[e]!==t||i.splice(e--,1);i.length||w.fx.stop(),mi=void 0},w.fx.timer=function(t){w.timers.push(t),w.fx.start()},w.fx.interval=13,w.fx.start=function(){gi||(gi=!0,bi())},w.fx.stop=function(){gi=null},w.fx.speeds={slow:600,fast:200,_default:400},w.fn.delay=function(s,t){return s=w.fx&&w.fx.speeds[s]||s,this.queue(t=t||"fx",function(t,e){var i=C.setTimeout(t,s);e.stop=function(){C.clearTimeout(i)}})},a=S.createElement("input"),r=S.createElement("select").appendChild(S.createElement("option")),a.type="checkbox",m.checkOn=""!==a.value,m.optSelected=r.selected,(a=S.createElement("input")).value="t",a.type="radio",m.radioValue="t"===a.value;var Si,wi=w.expr.attrHandle,ki=(w.fn.extend({attr:function(t,e){return c(this,w.attr,t,e,1<arguments.length)},removeAttr:function(t){return this.each(function(){w.removeAttr(this,t)})}}),w.extend({attr:function(t,e,i){var s,n,r=t.nodeType;if(3!==r&&8!==r&&2!==r)return void 0===t.getAttribute?w.prop(t,e,i):(1===r&&w.isXMLDoc(t)||(n=w.attrHooks[e.toLowerCase()]||(w.expr.match.bool.test(e)?Si:void 0)),void 0!==i?null===i?void w.removeAttr(t,e):n&&"set"in n&&void 0!==(s=n.set(t,i,e))?s:(t.setAttribute(e,i+""),i):!(n&&"get"in n&&null!==(s=n.get(t,e)))&&null==(s=w.find.attr(t,e))?void 0:s)},attrHooks:{type:{set:function(t,e){var i;if(!m.radioValue&&"radio"===e&&b(t,"input"))return i=t.value,t.setAttribute("type",e),i&&(t.value=i),e}}},removeAttr:function(t,e){var i,s=0,n=e&&e.match(M);if(n&&1===t.nodeType)for(;i=n[s++];)t.removeAttribute(i)}}),Si={set:function(t,e,i){return!1===e?w.removeAttr(t,i):t.setAttribute(i,i),i}},w.each(w.expr.match.bool.source.match(/\w+/g),function(t,e){var a=wi[e]||w.find.attr;wi[e]=function(t,e,i){var s,n,r=e.toLowerCase();return i||(n=wi[r],wi[r]=s,s=null!=a(t,e,i)?r:null,wi[r]=n),s}}),/^(?:input|select|textarea|button)$/i),Ei=/^(?:a|area)$/i;function Pi(t){return(t.match(M)||[]).join(" ")}function Di(t){return t.getAttribute&&t.getAttribute("class")||""}function Ti(t){return Array.isArray(t)?t:"string"==typeof t&&t.match(M)||[]}w.fn.extend({prop:function(t,e){return c(this,w.prop,t,e,1<arguments.length)},removeProp:function(t){return this.each(function(){delete this[w.propFix[t]||t]})}}),w.extend({prop:function(t,e,i){var s,n,r=t.nodeType;if(3!==r&&8!==r&&2!==r)return 1===r&&w.isXMLDoc(t)||(e=w.propFix[e]||e,n=w.propHooks[e]),void 0!==i?n&&"set"in n&&void 0!==(s=n.set(t,i,e))?s:t[e]=i:n&&"get"in n&&null!==(s=n.get(t,e))?s:t[e]},propHooks:{tabIndex:{get:function(t){var e=w.find.attr(t,"tabindex");return e?parseInt(e,10):ki.test(t.nodeName)||Ei.test(t.nodeName)&&t.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),m.optSelected||(w.propHooks.selected={get:function(t){t=t.parentNode;return t&&t.parentNode&&t.parentNode.selectedIndex,null},set:function(t){t=t.parentNode;t&&(t.selectedIndex,t.parentNode)&&t.parentNode.selectedIndex}}),w.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){w.propFix[this.toLowerCase()]=this}),w.fn.extend({addClass:function(e){var t,i,s,n,r,a;return v(e)?this.each(function(t){w(this).addClass(e.call(this,t,Di(this)))}):(t=Ti(e)).length?this.each(function(){if(s=Di(this),i=1===this.nodeType&&" "+Pi(s)+" "){for(r=0;r<t.length;r++)n=t[r],i.indexOf(" "+n+" ")<0&&(i+=n+" ");a=Pi(i),s!==a&&this.setAttribute("class",a)}}):this},removeClass:function(e){var t,i,s,n,r,a;return v(e)?this.each(function(t){w(this).removeClass(e.call(this,t,Di(this)))}):arguments.length?(t=Ti(e)).length?this.each(function(){if(s=Di(this),i=1===this.nodeType&&" "+Pi(s)+" "){for(r=0;r<t.length;r++)for(n=t[r];-1<i.indexOf(" "+n+" ");)i=i.replace(" "+n+" "," ");a=Pi(i),s!==a&&this.setAttribute("class",a)}}):this:this.attr("class","")},toggleClass:function(e,i){var t,s,n,r,a=typeof e,o="string"==a||Array.isArray(e);return v(e)?this.each(function(t){w(this).toggleClass(e.call(this,t,Di(this),i),i)}):"boolean"==typeof i&&o?i?this.addClass(e):this.removeClass(e):(t=Ti(e),this.each(function(){if(o)for(r=w(this),n=0;n<t.length;n++)s=t[n],r.hasClass(s)?r.removeClass(s):r.addClass(s);else void 0!==e&&"boolean"!=a||((s=Di(this))&&y.set(this,"__className__",s),this.setAttribute&&this.setAttribute("class",!s&&!1!==e&&y.get(this,"__className__")||""))}))},hasClass:function(t){for(var e,i=0,s=" "+t+" ";e=this[i++];)if(1===e.nodeType&&-1<(" "+Pi(Di(e))+" ").indexOf(s))return!0;return!1}});function Ai(t){t.stopPropagation()}var Mi=/\r/g,Ii=(w.fn.extend({val:function(e){var i,t,s,n=this[0];return arguments.length?(s=v(e),this.each(function(t){1===this.nodeType&&(null==(t=s?e.call(this,t,w(this).val()):e)?t="":"number"==typeof t?t+="":Array.isArray(t)&&(t=w.map(t,function(t){return null==t?"":t+""})),(i=w.valHooks[this.type]||w.valHooks[this.nodeName.toLowerCase()])&&"set"in i&&void 0!==i.set(this,t,"value")||(this.value=t))})):n?(i=w.valHooks[n.type]||w.valHooks[n.nodeName.toLowerCase()])&&"get"in i&&void 0!==(t=i.get(n,"value"))?t:"string"==typeof(t=n.value)?t.replace(Mi,""):null==t?"":t:void 0}}),w.extend({valHooks:{option:{get:function(t){var e=w.find.attr(t,"value");return null!=e?e:Pi(w.text(t))}},select:{get:function(t){for(var e,i=t.options,s=t.selectedIndex,n="select-one"===t.type,r=n?null:[],a=n?s+1:i.length,o=s<0?a:n?s:0;o<a;o++)if(((e=i[o]).selected||o===s)&&!e.disabled&&(!e.parentNode.disabled||!b(e.parentNode,"optgroup"))){if(e=w(e).val(),n)return e;r.push(e)}return r}
vendor: 4,999 bytes, line 1
1,set:function(t,e){for(var i,s,n=t.options,r=w.makeArray(e),a=n.length;a--;)((s=n[a]).selected=-1<w.inArray(w.valHooks.option.get(s),r))&&(i=!0);return i||(t.selectedIndex=-1),r}}}}),w.each(["radio","checkbox"],function(){w.valHooks[this]={set:function(t,e){if(Array.isArray(e))return t.checked=-1<w.inArray(w(t).val(),e)}},m.checkOn||(w.valHooks[this].get=function(t){return null===t.getAttribute("value")?"on":t.value})}),C.location),Fi={guid:Date.now()},Li=/\?/,Ri=(w.parseXML=function(t){var e,i;if(!t||"string"!=typeof t)return null;try{e=(new C.DOMParser).parseFromString(t,"text/xml")}catch(t){}return i=e&&e.getElementsByTagName("parsererror")[0],e&&!i||w.error("Invalid XML: "+(i?w.map(i.childNodes,function(t){return t.textContent}).join("\n"):t)),e},/^(?:focusinfocus|focusoutblur)$/),Oi=(w.extend(w.event,{trigger:function(t,e,i,s){var n,r,a,o,l,h,c,p=[i||S],u=W.call(t,"type")?t.type:t,d=W.call(t,"namespace")?t.namespace.split("."):[],f=c=r=i=i||S;if(3!==i.nodeType&&8!==i.nodeType&&!Ri.test(u+w.event.triggered)&&(-1<u.indexOf(".")&&(u=(d=u.split(".")).shift(),d.sort()),o=u.indexOf(":")<0&&"on"+u,(t=t[w.expando]?t:new w.Event(u,"object"==typeof t&&t)).isTrigger=s?2:3,t.namespace=d.join("."),t.rnamespace=t.namespace?new RegExp("(^|\\.)"+d.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,t.result=void 0,t.target||(t.target=i),e=null==e?[t]:w.makeArray(e,[t]),h=w.event.special[u]||{},s||!h.trigger||!1!==h.trigger.apply(i,e))){if(!s&&!h.noBubble&&!V(i)){for(a=h.delegateType||u,Ri.test(a+u)||(f=f.parentNode);f;f=f.parentNode)p.push(f),r=f;r===(i.ownerDocument||S)&&p.push(r.defaultView||r.parentWindow||C)}for(n=0;(f=p[n++])&&!t.isPropagationStopped();)c=f,t.type=1<n?a:h.bindType||u,(l=(y.get(f,"events")||Object.create(null))[t.type]&&y.get(f,"handle"))&&l.apply(f,e),(l=o&&f[o])&&l.apply&&he(f)&&(t.result=l.apply(f,e),!1===t.result)&&t.preventDefault();return t.type=u,s||t.isDefaultPrevented()||h._default&&!1!==h._default.apply(p.pop(),e)||!he(i)||o&&v(i[u])&&!V(i)&&((r=i[o])&&(i[o]=null),w.event.triggered=u,t.isPropagationStopped()&&c.addEventListener(u,Ai),i[u](),t.isPropagationStopped()&&c.removeEventListener(u,Ai),w.event.triggered=void 0,r)&&(i[o]=r),t.result}},simulate:function(t,e,i){i=w.extend(new w.Event,i,{type:t,isSimulated:!0});w.event.trigger(i,null,e)}}),w.fn.extend({trigger:function(t,e){return this.each(function(){w.event.trigger(t,e,this)})},triggerHandler:function(t,e){var i=this[0];if(i)return w.event.trigger(t,e,i,!0)}}),/\[\]$/),Vi=/\r?\n/g,Bi=/^(?:submit|button|image|reset|file)$/i,Ni=/^(?:input|select|textarea|keygen)/i;w.param=function(t,e){function i(t,e){e=v(e)?e():e,n[n.length]=encodeURIComponent(t)+"="+encodeURIComponent(null==e?"":e)}var s,n=[];if(null==t)return"";if(Array.isArray(t)||t.jquery&&!w.isPlainObject(t))w.each(t,function(){i(this.name,this.value)});else for(s in t)!function i(s,t,n,r){if(Array.isArray(t))w.each(t,function(t,e){n||Oi.test(s)?r(s,e):i(s+"["+("object"==typeof e&&null!=e?t:"")+"]",e,n,r)});else if(n||"object"!==K(t))r(s,t);else for(var e in t)i(s+"["+e+"]",t[e],n,r)}(s,t[s],e,i);return n.join("&")},w.fn.extend({serialize:function(){return w.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var t=w.prop(this,"elements");return t?w.makeArray(t):this}).filter(function(){var t=this.type;return this.name&&!w(this).is(":disabled")&&Ni.test(this.nodeName)&&!Bi.test(t)&&(this.checked||!Se.test(t))}).map(function(t,e){var i=w(this).val();return null==i?null:Array.isArray(i)?w.map(i,function(t){return{name:e.name,value:t.replace(Vi,"\r\n")}}):{name:e.name,value:i.replace(Vi,"\r\n")}}).get()}});var zi=/%20/g,Hi=/#.*$/,qi=/([?&])_=[^&]*/,Wi=/^(.*?):[ \t]*([^\r\n]*)$/gm,ji=/^(?:GET|HEAD)$/,Gi=/^\/\//,Yi={},$i={},Ki="*/".concat("*"),Xi=S.createElement("a");function Ui(r){return function(t,e){"string"!=typeof t&&(e=t,t="*");var i,s=0,n=t.toLowerCase().match(M)||[];if(v(e))for(;i=n[s++];)"+"===i[0]?(i=i.slice(1)||"*",(r[i]=r[i]||[]).unshift(e)):(r[i]=r[i]||[]).push(e)}}function Ji(e,s,n,r){var a={},o=e===$i;function l(t){var i;return a[t]=!0,w.each(e[t]||[],function(t,e){e=e(s,n,r);return"string"!=typeof e||o||a[e]?o?!(i=e):void 0:(s.dataTypes.unshift(e),l(e),!1)}),i}return l(s.dataTypes[0])||!a["*"]&&l("*")}function Zi(t,e){var i,s,n=w.ajaxSettings.flatOptions||{};for(i in e)void 0!==e[i]&&((n[i]?t:s=s||{})[i]=e[i]);return s&&w.extend(!0,t,s),t}Xi.href=Ii.href,w.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:Ii.href,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(Ii.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Ki,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":JSON.parse,"text xml":w.parseXML}
vendor: 4,551 bytes, line 1
1,flatOptions:{url:!0,context:!0}},ajaxSetup:function(t,e){return e?Zi(Zi(t,w.ajaxSettings),e):Zi(w.ajaxSettings,t)},ajaxPrefilter:Ui(Yi),ajaxTransport:Ui($i),ajax:function(t,e){"object"==typeof t&&(e=t,t=void 0);var l,h,c,i,p,u,d,s,n,f=w.ajaxSetup({},e=e||{}),m=f.context||f,g=f.context&&(m.nodeType||m.jquery)?w(m):w.event,y=w.Deferred(),v=w.Callbacks("once memory"),b=f.statusCode||{},r={},a={},o="canceled",_={readyState:0,getResponseHeader:function(t){var e;if(u){if(!i)for(i={};e=Wi.exec(c);)i[e[1].toLowerCase()+" "]=(i[e[1].toLowerCase()+" "]||[]).concat(e[2]);e=i[t.toLowerCase()+" "]}return null==e?null:e.join(", ")},getAllResponseHeaders:function(){return u?c:null},setRequestHeader:function(t,e){return null==u&&(t=a[t.toLowerCase()]=a[t.toLowerCase()]||t,r[t]=e),this},overrideMimeType:function(t){return null==u&&(f.mimeType=t),this},statusCode:function(t){if(t)if(u)_.always(t[_.status]);else for(var e in t)b[e]=[b[e],t[e]];return this},abort:function(t){t=t||o;return l&&l.abort(t),x(0,t),this}};if(y.promise(_),f.url=((t||f.url||Ii.href)+"").replace(Gi,Ii.protocol+"//"),f.type=e.method||e.type||f.method||f.type,f.dataTypes=(f.dataType||"*").toLowerCase().match(M)||[""],null==f.crossDomain){n=S.createElement("a");try{n.href=f.url,n.href=n.href,f.crossDomain=Xi.protocol+"//"+Xi.host!=n.protocol+"//"+n.host}catch(t){f.crossDomain=!0}}if(f.data&&f.processData&&"string"!=typeof f.data&&(f.data=w.param(f.data,f.traditional)),Ji(Yi,f,e,_),!u){for(s in(d=w.event&&f.global)&&0==w.active++&&w.event.trigger("ajaxStart"),f.type=f.type.toUpperCase(),f.hasContent=!ji.test(f.type),h=f.url.replace(Hi,""),f.hasContent?f.data&&f.processData&&0===(f.contentType||"").indexOf("application/x-www-form-urlencoded")&&(f.data=f.data.replace(zi,"+")):(n=f.url.slice(h.length),f.data&&(f.processData||"string"==typeof f.data)&&(h+=(Li.test(h)?"&":"?")+f.data,delete f.data),!1===f.cache&&(h=h.replace(qi,"$1"),n=(Li.test(h)?"&":"?")+"_="+Fi.guid+++n),f.url=h+n),f.ifModified&&(w.lastModified[h]&&_.setRequestHeader("If-Modified-Since",w.lastModified[h]),w.etag[h])&&_.setRequestHeader("If-None-Match",w.etag[h]),(f.data&&f.hasContent&&!1!==f.contentType||e.contentType)&&_.setRequestHeader("Content-Type",f.contentType),_.setRequestHeader("Accept",f.dataTypes[0]&&f.accepts[f.dataTypes[0]]?f.accepts[f.dataTypes[0]]+("*"!==f.dataTypes[0]?", "+Ki+"; q=0.01":""):f.accepts["*"]),f.headers)_.setRequestHeader(s,f.headers[s]);if(f.beforeSend&&(!1===f.beforeSend.call(m,_,f)||u))return _.abort();if(o="abort",v.add(f.complete),_.done(f.success),_.fail(f.error),l=Ji($i,f,e,_)){if(_.readyState=1,d&&g.trigger("ajaxSend",[_,f]),u)return _;f.async&&0<f.timeout&&(p=C.setTimeout(function(){_.abort("timeout")},f.timeout));try{u=!1,l.send(r,x)}catch(t){if(u)throw t;x(-1,t)}}else x(-1,"No Transport")}return _;function x(t,e,i,s){var n,r,a,o=e;u||(u=!0,p&&C.clearTimeout(p),l=void 0,c=s||"",_.readyState=0<t?4:0,s=200<=t&&t<300||304===t,i&&(a=((t,e,i)=>{for(var s,n,r,a,o=t.contents,l=t.dataTypes;"*"===l[0];)l.shift(),void 0===s&&(s=t.mimeType||e.getResponseHeader("Content-Type"));if(s)for(n in o)if(o[n]&&o[n].test(s)){l.unshift(n);break}if(l[0]in i)r=l[0];else{for(n in i){if(!l[0]||t.converters[n+" "+l[0]]){r=n;break}a=a||n}r=r||a}if(r)return r!==l[0]&&l.unshift(r),i[r]})(f,_,i)),!s&&-1<w.inArray("script",f.dataTypes)&&w.inArray("json",f.dataTypes)<0&&(f.converters["text script"]=function(){}),a=((t,e,i,s)=>{var n,r,a,o,l,h={},c=t.dataTypes.slice();if(c[1])for(a in t.converters)h[a.toLowerCase()]=t.converters[a];for(r=c.shift();r;)if(t.responseFields[r]&&(i[t.responseFields[r]]=e),!l&&s&&t.dataFilter&&(e=t.dataFilter(e,t.dataType)),l=r,r=c.shift())if("*"===r)r=l;else if("*"!==l&&l!==r){if(!(a=h[l+" "+r]||h["* "+r]))for(n in h)if((o=n.split(" "))[1]===r&&(a=h[l+" "+o[0]]||h["* "+o[0]])){!0===a?a=h[n]:!0!==h[n]&&(r=o[0],c.unshift(o[1]));break}if(!0!==a)if(a&&t.throws)e=a(e);else try{e=a(e)}catch(t){return{state:"parsererror",error:a?t:"No conversion from "+l+" to "+r}}}return{state:"success",data:e}})(f,a,_,s),s?(f.ifModified&&((i=_.getResponseHeader("Last-Modified"))&&(w.lastModified[h]=i),i=_.getResponseHeader("etag"))&&(w.etag[h]=i),204===t||"HEAD"===f.type?o="nocontent":304===t?o="notmodified":(o=a.state,n=a.data,s=!(r=a.error))):(r=o,!t&&o||(o="error",t<0&&(t=0))),_.status=t,_.statusText=(e||o)+"",s?y.resolveWith(m,[n,o,_]):y.rejectWith(m,[_,o,r]),_.statusCode(b),b=void 0,d&&g.trigger(s?"ajaxSuccess":"ajaxError",[_,f,s?n:r]),v.fireWith(m,[_,o]),d&&(g.trigger("ajaxComplete",[_,f]),--w.active||w.event.trigger("ajaxStop")))}}
vendor: 4,353 bytes, line 1
1,getJSON:function(t,e,i){return w.get(t,e,i,"json")},getScript:function(t,e){return w.get(t,void 0,e,"script")}}),w.each(["get","post"],function(t,n){w[n]=function(t,e,i,s){return v(e)&&(s=s||i,i=e,e=void 0),w.ajax(w.extend({url:t,type:n,dataType:s,data:e,success:i},w.isPlainObject(t)&&t))}}),w.ajaxPrefilter(function(t){for(var e in t.headers)"content-type"===e.toLowerCase()&&(t.contentType=t.headers[e]||"")}),w._evalUrl=function(t,e,i){return w.ajax({url:t,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,converters:{"text script":function(){}},dataFilter:function(t){w.globalEval(t,e,i)}})},w.fn.extend({wrapAll:function(t){return this[0]&&(v(t)&&(t=t.call(this[0])),t=w(t,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&t.insertBefore(this[0]),t.map(function(){for(var t=this;t.firstElementChild;)t=t.firstElementChild;return t}).append(this)),this},wrapInner:function(i){return v(i)?this.each(function(t){w(this).wrapInner(i.call(this,t))}):this.each(function(){var t=w(this),e=t.contents();e.length?e.wrapAll(i):t.append(i)})},wrap:function(e){var i=v(e);return this.each(function(t){w(this).wrapAll(i?e.call(this,t):e)})},unwrap:function(t){return this.parent(t).not("body").each(function(){w(this).replaceWith(this.childNodes)}),this}}),w.expr.pseudos.hidden=function(t){return!w.expr.pseudos.visible(t)},w.expr.pseudos.visible=function(t){return!!(t.offsetWidth||t.offsetHeight||t.getClientRects().length)},w.ajaxSettings.xhr=function(){try{return new C.XMLHttpRequest}catch(t){}};var Qi={0:200,1223:204},ts=w.ajaxSettings.xhr();m.cors=!!ts&&"withCredentials"in ts,m.ajax=ts=!!ts,w.ajaxTransport(function(n){var r,a;if(m.cors||ts&&!n.crossDomain)return{send:function(t,e){var i,s=n.xhr();if(s.open(n.type,n.url,n.async,n.username,n.password),n.xhrFields)for(i in n.xhrFields)s[i]=n.xhrFields[i];for(i in n.mimeType&&s.overrideMimeType&&s.overrideMimeType(n.mimeType),n.crossDomain||t["X-Requested-With"]||(t["X-Requested-With"]="XMLHttpRequest"),t)s.setRequestHeader(i,t[i]);r=function(t){return function(){r&&(r=a=s.onload=s.onerror=s.onabort=s.ontimeout=s.onreadystatechange=null,"abort"===t?s.abort():"error"===t?"number"!=typeof s.status?e(0,"error"):e(s.status,s.statusText):e(Qi[s.status]||s.status,s.statusText,"text"!==(s.responseType||"text")||"string"!=typeof s.responseText?{binary:s.response}:{text:s.responseText},s.getAllResponseHeaders()))}},s.onload=r(),a=s.onerror=s.ontimeout=r("error"),void 0!==s.onabort?s.onabort=a:s.onreadystatechange=function(){4===s.readyState&&C.setTimeout(function(){r&&a()})},r=r("abort");try{s.send(n.hasContent&&n.data||null)}catch(t){if(r)throw t}},abort:function(){r&&r()}}}),w.ajaxPrefilter(function(t){t.crossDomain&&(t.contents.script=!1)}),w.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(t){return w.globalEval(t),t}}}),w.ajaxPrefilter("script",function(t){void 0===t.cache&&(t.cache=!1),t.crossDomain&&(t.type="GET")}),w.ajaxTransport("script",function(i){var s,n;if(i.crossDomain||i.scriptAttrs)return{send:function(t,e){s=w("<script>").attr(i.scriptAttrs||{}).prop({charset:i.scriptCharset,src:i.url}).on("load error",n=function(t){s.remove(),n=null,t&&e("error"===t.type?404:200,t.type)}),S.head.appendChild(s[0])},abort:function(){n&&n()}}});var es=[],is=/(=)\?(?=&|$)|\?\?/,ss=(w.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var t=es.pop()||w.expando+"_"+Fi.guid++;return this[t]=!0,t}}),w.ajaxPrefilter("json jsonp",function(t,e,i){var s,n,r,a=!1!==t.jsonp&&(is.test(t.url)?"url":"string"==typeof t.data&&0===(t.contentType||"").indexOf("application/x-www-form-urlencoded")&&is.test(t.data)&&"data");if(a||"jsonp"===t.dataTypes[0])return s=t.jsonpCallback=v(t.jsonpCallback)?t.jsonpCallback():t.jsonpCallback,a?t[a]=t[a].replace(is,"$1"+s):!1!==t.jsonp&&(t.url+=(Li.test(t.url)?"&":"?")+t.jsonp+"="+s),t.converters["script json"]=function(){return r||w.error(s+" was not called"),r[0]},t.dataTypes[0]="json",n=C[s],C[s]=function(){r=arguments},i.always(function(){void 0===n?w(C).removeProp(s):C[s]=n,t[s]&&(t.jsonpCallback=e.jsonpCallback,es.push(s)),r&&v(n)&&n(r[0]),r=n=void 0}),"script"}),m.createHTMLDocument=((t=S.implementation.createHTMLDocument("").body).innerHTML="<form></form><form></form>
1",2===t.childNodes.length),w.parseHTML=function(t,e,i){return"string"!=typeof t?[]:("boolean"==typeof e&&(i=e,e=!1),e||(m.createHTMLDocument?((s=(e=S.implementation.createHTMLDocument("")).createElement("base")).href=S.location.href,e.head.appendChild(s)):e=S),s=!i&&[],(i=$t.exec(t))?[e.createElement(i[1])]:(i=De([t],e,s),s&&s.length&&w(s).remove(),w.merge([],i.childNodes)));var s},w.fn.load=function(t,e,i){var s,n,r,a=this,o=t.indexOf(" ");return-1<o&&(s=Pi(t.slice(o)),t=t.slice(0,o)),v(e)?(i=e,e=void 0):e&&"object"==typeof e&&(n="POST"),0<a.length&&w.ajax({url:t,type:n||"GET",dataType:"html",data:e}).done(function(t){r=arguments,a.html(s?w("<div>").append(w.parseHTML(t)).find(s):t)}).always(i&&function(t,e){a.each(function(){i.apply(this,r||[t.responseText,e,t])})}),this},w.expr.pseudos.animated=function(e){return w.grep(w.timers,function(t){return e===t.elem}).length},w.offset={setOffset:function(t,e,i){var s,n,r,a,o=w.css(t,"position"),l=w(t),h={};"static"===o&&(t.style.position="relative"),r=l.offset(),s=w.css(t,"top"),a=w.css(t,"left"),o=("absolute"===o||"fixed"===o)&&-1<(s+a).indexOf("auto")?(n=(o=l.position()).top,o.left):(n=parseFloat(s)||0,parseFloat(a)||0),null!=(e=v(e)?e.call(t,i,w.extend({},r)):e).top&&(h.top=e.top-r.top+n),null!=e.left&&(h.left=e.left-r.left+o),"using"in e?e.using.call(t,h):l.css(h)}},w.fn.extend({offset:function(e){var t,i;return arguments.length?void 0===e?this:this.each(function(t){w.offset.setOffset(this,e,t)}):(i=this[0])?i.getClientRects().length?(t=i.getBoundingClientRect(),i=i.ownerDocument.defaultView,{top:t.top+i.pageYOffset,left:t.left+i.pageXOffset}):{top:0,left:0}:void 0},position:function(){if(this[0]){var t,e,i,s=this[0],n={top:0,left:0};if("fixed"===w.css(s,"position"))e=s.getBoundingClientRect();else{for(e=this.offset(),i=s.ownerDocument,t=s.offsetParent||i.documentElement;t&&(t===i.body||t===i.documentElement)&&"static"===w.css(t,"position");)t=t.parentNode;t&&t!==s&&1===t.nodeType&&((n=w(t).offset()).top+=w.css(t,"borderTopWidth",!0),n.left+=w.css(t,"borderLeftWidth",!0))}return{top:e.top-n.top-w.css(s,"marginTop",!0),left:e.left-n.left-w.css(s,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var t=this.offsetParent;t&&"static"===w.css(t,"position");)t=t.offsetParent;return t||ye})}}),w.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(e,n){var r="pageYOffset"===n;w.fn[e]=function(t){return c(this,function(t,e,i){var s;if(V(t)?s=t:9===t.nodeType&&(s=t.defaultView),void 0===i)return s?s[n]:t[e];s?s.scrollTo(r?s.pageXOffset:i,r?i:s.pageYOffset):t[e]=i},e,t,arguments.length)}}),w.each(["top","left"],function(t,i){w.cssHooks[i]=ii(m.pixelPosition,function(t,e){if(e)return e=ei(t,i),Ze.test(e)?w(t).position()[i]+"px":e})}),w.each({Height:"height",Width:"width"},function(a,o){w.each({padding:"inner"+a,content:o,"":"outer"+a},function(s,r){w.fn[r]=function(t,e){var i=arguments.length&&(s||"boolean"!=typeof t),n=s||(!0===t||!0===e?"margin":"border");return c(this,function(t,e,i){var s;return V(t)?0===r.indexOf("outer")?t["inner"+a]:t.document.documentElement["client"+a]:9===t.nodeType?(s=t.documentElement,Math.max(t.body["scroll"+a],s["scroll"+a],t.body["offset"+a],s["offset"+a],s["client"+a])):void 0===i?w.css(t,e,n):w.style(t,e,i,n)},o,i?t:void 0,i)}})}),w.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(t,e){w.fn[e]=function(t){return this.on(e,t)}}),w.fn.extend({bind:function(t,e,i){return this.on(t,null,e,i)},unbind:function(t,e){return this.off(t,null,e)},delegate:function(t,e,i,s){return this.on(e,t,i,s)},undelegate:function(t,e,i){return 1===arguments.length?this.off(t,"**"):this.off(e,t||"**",i)},hover:function(t,e){return this.on("mouseenter",t).on("mouseleave",e||t)}}),w.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),function(t,i){w.fn[i]=function(t,e){return 0<arguments.length?this.on(i,null,t,e):this.trigger(i)}}),/^[\s\uFEFF\xA0]+|([^\s\uFEFF\xA0])[\s\uFEFF\xA0]+$/g),ns=(w.proxy=function(t,e){var i,s;if("string"==typeof e&&(s=t[e],e=t,t=s),v(t))return i=o.call(arguments,2),(s=function(){return t.apply(e||this,i.concat(o.call(arguments)))}).guid=t.guid=t.guid||w.guid++,s},w.holdReady=function(t){t?w.readyWait++:w.ready(!0)},w.isArray=Array.isArray,w.parseJSON=JSON.parse,w.nodeName=b,w.isFunction=v,w.isWindow=V,w.camel
vendor: 57,299 bytes, line 1
1Case=I,w.type=K,w.now=Date.now,w.isNumeric=function(t){var e=w.type(t);return("number"===e||"string"===e)&&!isNaN(t-parseFloat(t))},w.trim=function(t){return null==t?"":(t+"").replace(ss,"$1")},"function"==typeof define&&define.amd&&define("jquery",[],function(){return w}),C.jQuery),rs=C.$;return w.noConflict=function(t){return C.$===w&&(C.$=rs),t&&C.jQuery===w&&(C.jQuery=ns),w},void 0===O&&(C.jQuery=C.$=w),w}),(t=>{"function"==typeof define&&define.amd?define(["jquery"],t):t(jQuery)})(function($){$.ui=$.ui||{},$.ui.version="1.14.1";var n,s,C,S,r,a,o,l,h,i,R=0,O=Array.prototype.hasOwnProperty,c=Array.prototype.slice;function w(t,e,i){return[parseFloat(t[0])*(h.test(t[0])?e/100:1),parseFloat(t[1])*(h.test(t[1])?i/100:1)]}function k(t,e){return parseInt($.css(t,e),10)||0}function E(t){return null!=t&&t===t.window}$.cleanData=(n=$.cleanData,function(t){for(var e,i,s=0;null!=(i=t[s]);s++)(e=$._data(i,"events"))&&e.remove&&$(i).triggerHandler("remove");n(t)}),$.widget=function(t,i,e){var s,n,r,a,o={},l=t.split(".")[0];return"__proto__"===(t=t.split(".")[1])||"constructor"===t?$.error("Invalid widget name: "+t):(a=l+"-"+t,e||(e=i,i=$.Widget),Array.isArray(e)&&(e=$.extend.apply(null,[{}].concat(e))),$.expr.pseudos[a.toLowerCase()]=function(t){return!!$.data(t,a)},$[l]=$[l]||{},s=$[l][t],n=$[l][t]=function(t,e){if(!this||!this._createWidget)return new n(t,e);arguments.length&&this._createWidget(t,e)},$.extend(n,s,{version:e.version,_proto:$.extend({},e),_childConstructors:[]}),(r=new i).options=$.widget.extend({},r.options),$.each(e,function(e,s){function n(){return i.prototype[e].apply(this,arguments)}function r(t){return i.prototype[e].apply(this,t)}o[e]="function"!=typeof s?s:function(){var t,e=this._super,i=this._superApply;return this._super=n,this._superApply=r,t=s.apply(this,arguments),this._super=e,this._superApply=i,t}}),n.prototype=$.widget.extend(r,{widgetEventPrefix:s&&r.widgetEventPrefix||t},o,{constructor:n,namespace:l,widgetName:t,widgetFullName:a}),s?($.each(s._childConstructors,function(t,e){var i=e.prototype;$.widget(i.namespace+"."+i.widgetName,n,e._proto)}),delete s._childConstructors):i._childConstructors.push(n),$.widget.bridge(t,n),n)},$.widget.extend=function(t){for(var e,i,s=c.call(arguments,1),n=0,r=s.length;n<r;n++)for(e in s[n])i=s[n][e],O.call(s[n],e)&&void 0!==i&&($.isPlainObject(i)?t[e]=$.isPlainObject(t[e])?$.widget.extend({},t[e],i):$.widget.extend({},i):t[e]=i);return t},$.widget.bridge=function(r,e){var a=e.prototype.widgetFullName||r;$.fn[r]=function(i){var t="string"==typeof i,s=c.call(arguments,1),n=this;return t?this.length||"instance"!==i?this.each(function(){var t,e=$.data(this,a);return"instance"===i?(n=e,!1):e?"function"!=typeof e[i]||"_"===i.charAt(0)?$.error("no such method '"+i+"' for "+r+" widget instance"):(t=e[i].apply(e,s))!==e&&void 0!==t?(n=t&&t.jquery?n.pushStack(t.get()):t,!1):void 0:$.error("cannot call methods on "+r+" prior to initialization; attempted to call method '"+i+"'")}):n=void 0:(s.length&&(i=$.widget.extend.apply(null,[i].concat(s))),this.each(function(){var t=$.data(this,a);t?(t.option(i||{}),t._init&&t._init()):$.data(this,a,new e(i,this))})),n}},$.Widget=function(){},$.Widget._childConstructors=[],$.Widget.prototype={widgetName:"widget",widgetEventPrefix:"",defaultElement:"<div>",options:{classes:{},disabled:!1,create:null},_createWidget:function(t,e){e=$(e||this.defaultElement||this)[0],this.element=$(e),this.uuid=R++,this.eventNamespace="."+this.widgetName+this.uuid,this.bindings=$(),this.hoverable=$(),this.focusable=$(),this.classesElementLookup={},e!==this&&($.data(e,this.widgetFullName,this),this._on(!0,this.element,{remove:function(t){t.target===e&&this.destroy()}}),this.document=$(e.style?e.ownerDocument:e.document||e),this.window=$(this.document[0].defaultView||this.document[0].parentWindow)),this.options=$.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:$.noop,_create:$.noop,_init:$.noop,destroy:function(){var i=this;this._destroy(),$.each(this.classesElementLookup,function(t,e){i._removeClass(e,t)}),this.element.off(this.eventNamespace).removeData(this.widgetFullName),this.widget().off(this.eventNamespace).removeAttr("aria-disabled"),this.bindings.off(this.eventNamespace)},_destroy:$.noop,widget:function(){return this.element},option:function(t,e){var i,s,n,r=t;if(0===arguments.length)return $.widget.extend({},this.options);if("string"==typeof t)if(r={},t=(i=t.split(".")).shift(),i.length){for(s=r[t]=$.widget.extend({},this.options[t]),n=0;n<i.length-1;n++)s[i[n]]=s[i[n]]||{},s=s[i[n]];if(t=i.pop(),1===arguments.length)return void 0===s[t]?null:s[t];s[t]=e}else{if(1===arguments.length)return void 0===this.options[t]?null:this.options[t];r[t]=e}return this._setOptions(r),this},_setOptions:function(t){for(var e in t)this._setOption(e,t[e]);return this},_setOption:function(t,e){return"classes"===t&&this._setOptionClasses(e),this.options[t]=e,"disabled"===t&&this._setOptionDisabled(e),this},_setOptionClasses:function(t){var e,i,s;for(e in t)s=this.classesElementLookup[e],t[e]!==this.options.classes[e]&&s&&s.length&&(i=$(s.get()),this._removeClass(s,e),i.addClass(this._classes({element:i,keys:e,classes:t,add:!0})))},_setOptionDisabled:function(t){this._toggleClass(this.widget(),this.widgetFullName+"-disabled",null,!!t),t&&(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(n){var r=[],a=this;function t(t,e){for(var i,s=0;s<t.length;s++)i=a.classesElementLookup[t[s]]||$(),i=n.add?((()=>{var i=[];n.element.each(function(t,e){$.map(a.classesElementLookup,function(t){return t}).some(function(t){return t.is(e)})||i.push(e)}),a._on($(i),{remove:"_untrackClassesElement"})})(),$($.uniqueSort(i.get().concat(n.element.get())))):$(i.not(n.element).get()),a.classesElementLookup[t[s]]=i,r.push(t[s]),e&&n.classes[t[s]]&&r.push(n.classes[t[s]])}return(n=$.extend({element:this.element,classes:this.options.classes||{}},n)).keys&&t(n.keys.match(/\S+/g)||[],!0),n.extra&&t(n.extra.match(/\S+/g)||[]),r.join(" ")},_untrackClassesElement:function(i){var s=this;$.each(s.classesElementLookup,function(t,e){-1!==$.inArray(i.target,e)&&(s.classesElementLookup[t]=$(e.not(i.target).get()))}),this._off($(i.target))},_removeClass:function(t,e,i){return this._toggleClass(t,e,i,!1)},_addClass:function(t,e,i){return this._toggleClass(t,e,i,!0)},_toggleClass:function(t,e,i,s){var n="string"==typeof t||null===t;return(e={extra:n?e:i,keys:n?t:e,element:n?this.element:t,add:s="boolean"==typeof s?s:i}).element.toggleClass(this._classes(e),s),this},_on:function(n,r,t){var a,o=this;"boolean"!=typeof n&&(t=r,r=n,n=!1),t?(r=a=$(r),this.bindings=this.bindings.add(r)):(t=r,r=this.element,a=this.widget()),$.each(t,function(t,e){function i(){if(n||!0!==o.options.disabled&&!$(this).hasClass("ui-state-disabled"))return("string"==typeof e?o[e]:e).apply(o,arguments)}"string"!=typeof e&&(i.guid=e.guid=e.guid||i.guid||$.guid++);var s=(t=t.match(/^([\w:-]*)\s*(.*)$/))[1]+o.eventNamespace;(t=t[2])?a.on(s,t,i):r.on(s,i)})},_off:function(t,e){e=(e||"").split(" ").join(this.eventNamespace+" ")+this.eventNamespace,t.off(e),this.bindings=$(this.bindings.not(t).get()),this.focusable=$(this.focusable.not(t).get()),this.hoverable=$(this.hoverable.not(t).get())},_delay:function(t,e){var i=this;return setTimeout(function(){return("string"==typeof t?i[t]:t).apply(i,arguments)},e||0)},_hoverable:function(t){this.hoverable=this.hoverable.add(t),this._on(t,{mouseenter:function(t){this._addClass($(t.currentTarget),null,"ui-state-hover")},mouseleave:function(t){this._removeClass($(t.currentTarget),null,"ui-state-hover")}})},_focusable:function(t){this.focusable=this.focusable.add(t),this._on(t,{focusin:function(t){this._addClass($(t.currentTarget),null,"ui-state-focus")},focusout:function(t){this._removeClass($(t.currentTarget),null,"ui-state-focus")}})},_trigger:function(t,e,i){var s,n,r=this.options[t];if(i=i||{},(e=$.Event(e)).type=(t===this.widgetEventPrefix?t:this.widgetEventPrefix+t).toLowerCase(),e.target=this.element[0],n=e.originalEvent)for(s in n)s in e||(e[s]=n[s]);return this.element.trigger(e,i),!("function"==typeof r&&!1===r.apply(this.element[0],[e].concat(i))||e.isDefaultPrevented())}},$.each({show:"fadeIn",hide:"fadeOut"},function(r,a){$.Widget.prototype["_"+r]=function(e,t,i){var s,n=(t="string"==typeof t?{effect:t}:t)?!0!==t&&"number"!=typeof t&&t.effect||a:r;"number"==typeof(t=t||{})?t={duration:t}:!0===t&&(t={}),s=!$.isEmptyObject(t),t.complete=i,t.delay&&e.delay(t.delay),s&&$.effects&&$.effects.effect[n]?e[r](t):n!==r&&e[n]?e[n](t.duration,t.easing,i):e.queue(function(t){$(this)[r](),i&&i.call(e[0]),t()})}}),$.widget,C=Math.max,S=Math.abs,r=/left|center|right/,a=/top|center|bottom/,o=/[\+\-]\d+(\.[\d]+)?%?/,l=/^\w+/,h=/%$/,i=$.fn.position,$.position={scrollbarWidth:function(){var t,e,i;return void 0!==s?s:(i=(e=$("<div style='display:block;position:absolute;width:200px;height:200px;overflow:hidden;'><div style='height:300px;width:auto;'></div></div>")).children()[0],$("body").append(e),t=i.offsetWidth,e.css("overflow","scroll"),t===(i=i.offsetWidth)&&(i=e[0].clientWidth),e.remove(),s=t-i)},getScrollInfo:function(t){var e=t.isWindow||t.isDocument?"":t.element.css("overflow-x"),i=t.isWindow||t.isDocument?"":t.element.css("overflow-y"),e="scroll"===e||"auto"===e&&t.width<t.element[0].scrollWidth;return{width:"scroll"===i||"auto"===i&&t.height<t.element[0].scrollHeight?$.position.scrollbarWidth():0,height:e?$.position.scrollbarWidth():0}},getWithinInfo:function(t){var e=$(t||window),i=E(e[0]),s=!!e[0]&&9===e[0].nodeType;return{element:e,isWindow:i,isDocument:s,offset:i||s?{left:0,top:0}:$(t).offset(),scrollLeft:e.scrollLeft(),scrollTop:e.scrollTop(),width:e.outerWidth(),height:e.outerHeight()}}},$.fn.position=function(p){var u,d,f,m,g,y,v,b,_,x,t,e;return p&&p.of?(y="string"==typeof(p=$.extend({},p)).of?$(document).find(p.of):$(p.of),v=$.position.getWithinInfo(p.within),b=$.position.getScrollInfo(v),_=(p.collision||"flip").split(" "),x={},e=9===(e=(t=y)[0]).nodeType?{width:t.width(),height:t.height(),offset:{top:0,left:0}}:E(e)?{width:t.width(),height:t.height(),offset:{top:t.scrollTop(),left:t.scrollLeft()}}:e.preventDefault?{width:0,height:0,offset:{top:e.pageY,left:e.pageX}}:{width:t.outerWidth(),height:t.outerHeight(),offset:t.offset()},y[0].preventDefault&&(p.at="left top"),d=e.width,f=e.height,g=$.extend({},m=e.offset),$.each(["my","at"],function(){var t,e,i=(p[this]||"").split(" ");(i=1===i.length?r.test(i[0])?i.concat(["center"]):a.test(i[0])?["center"].concat(i):["center","center"]:i)[0]=r.test(i[0])?i[0]:"center",i[1]=a.test(i[1])?i[1]:"center",t=o.exec(i[0]),e=o.exec(i[1]),x[this]=[t?t[0]:0,e?e[0]:0],p[this]=[l.exec(i[0])[0],l.exec(i[1])[0]]}),1===_.length&&(_[1]=_[0]),"right"===p.at[0]?g.left+=d:"center"===p.at[0]&&(g.left+=d/2),"bottom"===p.at[1]?g.top+=f:"center"===p.at[1]&&(g.top+=f/2),u=w(x.at,d,f),g.left+=u[0],g.top+=u[1],this.each(function(){var i,t,a=$(this),o=a.outerWidth(),l=a.outerHeight(),e=k(this,"marginLeft"),s=k(this,"marginTop"),n=o+e+k(this,"marginRight")+b.width,r=l+s+k(this,"marginBottom")+b.height,h=$.extend({},g),c=w(x.my,a.outerWidth(),a.outerHeight());"right"===p.my[0]?h.left-=o:"center"===p.my[0]&&(h.left-=o/2),"bottom"===p.my[1]?h.top-=l:"center"===p.my[1]&&(h.top-=l/2),h.left+=c[0],h.top+=c[1],i={marginLeft:e,marginTop:s},$.each(["left","top"],function(t,e){$.ui.position[_[t]]&&$.ui.position[_[t]][e](h,{targetWidth:d,targetHeight:f,elemWidth:o,elemHeight:l,collisionPosition:i,collisionWidth:n,collisionHeight:r,offset:[u[0]+c[0],u[1]+c[1]],my:p.my,at:p.at,within:v,elem:a})}),p.using&&(t=function(t){var e=m.left-h.left,i=e+d-o,s=m.top-h.top,n=s+f-l,r={target:{element:y,left:m.left,top:m.top,width:d,height:f},element:{element:a,left:h.left,top:h.top,width:o,height:l},horizontal:i<0?"left":0<e?"right":"center",vertical:n<0?"top":0<s?"bottom":"middle"};d<o&&S(e+i)<d&&(r.horizontal="center"),f<l&&S(s+n)<f&&(r.vertical="middle"),C(S(e),S(i))>C(S(s),S(n))?r.important="horizontal":r.important="vertical",p.using.call(this,t,r)}),a.offset($.extend(h,{using:t}))})):i.apply(this,arguments)},$.ui.position={fit:{left:function(t,e){var i,s=e.within,n=s.isWindow?s.scrollLeft:s.offset.left,r=t.left-e.collisionPosition.marginLeft,a=n-r,o=r+e.collisionWidth-(s=s.width)-n;s<e.collisionWidth?0<a&&o<=0?(i=t.left+a+e.collisionWidth-s-n,t.left+=a-i):t.left=!(0<o&&a<=0)&&o<a?n+s-e.collisionWidth:n:0<a?t.left+=a:0<o?t.left-=o:t.left=C(t.left-r,t.left)},top:function(t,e){var i,s=(s=e.within).isWindow?s.scrollTop:s.offset.top,n=e.within.height,r=t.top-e.collisionPosition.marginTop,a=s-r,o=r+e.collisionHeight-n-s;n<e.collisionHeight?0<a&&o<=0?(i=t.top+a+e.collisionHeight-n-s,t.top+=a-i):t.top=!(0<o&&a<=0)&&o<a?s+n-e.collisionHeight:s:0<a?t.top+=a:0<o?t.top-=o:t.top=C(t.top-r,t.top)}},flip:{left:function(t,e){var i=(n=e.within).offset.left+n.scrollLeft,s=n.width,n=n.isWindow?n.scrollLeft:n.offset.left,r=(a=t.left-e.collisionPosition.marginLeft)-n,a=a+e.collisionWidth-s-n,o="left"===e.my[0]?-e.elemWidth:"right"===e.my[0]?e.elemWidth:0,l="left"===e.at[0]?e.targetWidth:"right"===e.at[0]?-e.targetWidth:0,h=-2*e.offset[0];r<0?((s=t.left+o+l+h+e.collisionWidth-s-i)<0||s<S(r))&&(t.left+=o+l+h):0<a&&(0<(i=t.left-e.collisionPosition.marginLeft+o+l+h-n)||S(i)<a)&&(t.left+=o+l+h)},top:function(t,e){var i=(n=e.within).offset.top+n.scrollTop,s=n.height,n=n.isWindow?n.scrollTop:n.offset.top,r=(a=t.top-e.collisionPosition.marginTop)-n,a=a+e.collisionHeight-s-n,o="top"===e.my[1]?-e.elemHeight:"bottom"===e.my[1]?e.elemHeight:0,l="top"===e.at[1]?e.targetHeight:"bottom"===e.at[1]?-e.targetHeight:0,h=-2*e.offset[1];r<0?((s=t.top+o+l+h+e.collisionHeight-s-i)<0||s<S(r))&&(t.top+=o+l+h):0<a&&(0<(i=t.top-e.collisionPosition.marginTop+o+l+h-n)||S(i)<a)&&(t.top+=o+l+h)}},flipfit:{left:function(){$.ui.position.flip.left.apply(this,arguments),$.ui.position.fit.left.apply(this,arguments)},top:function(){$.ui.position.flip.top.apply(this,arguments),$.ui.position.fit.top.apply(this,arguments)}}},$.ui.position,$.extend($.expr.pseudos,{data:$.expr.createPseudo(function(e){return function(t){return!!$.data(t,e)}})}),$.fn.extend({disableSelection:(t="onselectstart"in document.createElement("div")?"selectstart":"mousedown",function(){return this.on(t+".ui-disableSelection",function(t){t.preventDefault()})}),enableSelection:function(){return this.off(".ui-disableSelection")}});var t,p=$,u={},V=u.toString,B=/^([\-+])=\s*(\d+\.?\d*)/,N=[{re:/rgba?\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*(?:,\s*(\d?(?:\.\d+)?)\s*)?\)/,parse:function(t){return[t[1],t[2],t[3],t[4]]}},{re:/rgba?\(\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*(?:,\s*(\d?(?:\.\d+)?)\s*)?\)/,parse:function(t){return[2.55*t[1],2.55*t[2],2.55*t[3],t[4]]}},{re:/#([a-f0-9]{2})([a-f0-9]{2})([a-f0-9]{2})([a-f0-9]{2})?/,parse:function(t){return[parseInt(t[1],16),parseInt(t[2],16),parseInt(t[3],16),t[4]?(parseInt(t[4],16)/255).toFixed(2):1]}},{re:/#([a-f0-9])([a-f0-9])([a-f0-9])([a-f0-9])?/,parse:function(t){return[parseInt(t[1]+t[1],16),parseInt(t[2]+t[2],16),parseInt(t[3]+t[3],16),t[4]?(parseInt(t[4]+t[4],16)/255).toFixed(2):1]}},{re:/hsla?\(\s*(\d+(?:\.\d+)?)\s*,\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*(?:,\s*(\d?(?:\.\d+)?)\s*)?\)/,space:"hsla",parse:function(t){return[t[1],t[2]/100,t[3]/100,t[4]]}}],d=p.Color=function(t,e,i,s){return new p.Color.fn.parse(t,e,i,s)},f={rgba:{props:{red:{idx:0,type:"byte"},green:{idx:1,type:"byte"},blue:{idx:2,type:"byte"}}},hsla:{props:{hue:{idx:0,type:"degrees"},saturation:{idx:1,type:"percent"},lightness:{idx:2,type:"percent"}}}},z={byte:{floor:!0,max:255},percent:{max:1},degrees:{mod:360,floor:!0}},m=p.each;function g(t){return null==t?t+"":"object"==typeof t?u[V.call(t)]||"object":typeof t}function y(t,e,i){var s=z[e.type]||{};return null==t?i||!e.def?null:e.def:(t=s.floor?~~t:parseFloat(t),s.mod?(t+s.mod)%s.mod:Math.min(s.max,Math.max(0,t)))}function H(s){var n=d(),r=n._rgba=[];return s=s.toLowerCase(),m(N,function(t,e){var i=(i=e.re.exec(s))&&e.parse(i),e=e.space||"rgba";if(i)return i=n[e](i),n[f[e].cache]=i[f[e].cache],r=n._rgba=i._rgba,!1}),r.length?("0,0,0,0"===r.join()&&p.extend(r,_.transparent),n):_[s]}function v(t,e,i){return 6*(i=(i+1)%1)<1?t+(e-t)*i*6:2*i<1?e:3*i<2?t+(e-t)*(2/3-i)*6:t}m(f,function(t,e){e.cache="_"+t,e.props.alpha={idx:3,type:"percent",def:1}}),p.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(t,e){u["[object "+e+"]"]=e.toLowerCase()}),d.fn=p.extend(d.prototype,{parse:function(n,t,e,i){if(void 0===n)return this._rgba=[null,null,null,null],this;(n.jquery||n.nodeType)&&(n=p(n).css(t),t=void 0);var r=this,s=g(n),a=this._rgba=[];return void 0!==t&&(n=[n,t,e,i],s="array"),"string"===s?this.parse(H(n)||_._default):"array"===s?(m(f.rgba.props,function(t,e){a[e.idx]=y(n[e.idx],e)}),this):"object"===s?(n instanceof d?m(f,function(t,e){n[e.cache]&&(r[e.cache]=n[e.cache].slice())}):m(f,function(t,i){var s=i.cache;m(i.props,function(t,e){if(!r[s]&&i.to){if("alpha"===t||null==n[t])return;r[s]=i.to(r._rgba)}r[s][e.idx]=y(n[t],e,!0)}),r[s]&&p.inArray(null,r[s].slice(0,3))<0&&(null==r[s][3]&&(r[s][3]=1),i.from)&&(r._rgba=i.from(r[s]))}),this):void 0},is:function(t){var n=d(t),r=!0,a=this;return m(f,function(t,e){var i,s=n[e.cache];return s&&(i=a[e.cache]||e.to&&e.to(a._rgba)||[],m(e.props,function(t,e){if(null!=s[e.idx])return r=s[e.idx]===i[e.idx]})),r}),r},_space:function(){var i=[],s=this;return m(f,function(t,e){s[e.cache]&&i.push(t)}),i.pop()},transition:function(t,a){var t=(h=d(t))._space(),e=f[t],i=0===this.alpha()?d("transparent"):this,o=i[e.cache]||e.to(i._rgba),l=o.slice(),h=h[e.cache];return m(e.props,function(t,e){var i=e.idx,s=o[i],n=h[i],r=z[e.type]||{};null!==n&&(null===s?l[i]=n:(r.mod&&(n-s>r.mod/2?s+=r.mod:s-n>r.mod/2&&(s-=r.mod)),l[i]=y((n-s)*a+s,e)))}),this[t](l)},blend:function(t){var e,i,s;return 1===this._rgba[3]?this:(e=this._rgba.slice(),i=e.pop(),s=d(t)._rgba,d(p.map(e,function(t,e){return(1-i)*s[e]+i*t})))},toRgbaString:function(){var t="rgba(",e=p.map(this._rgba,function(t,e){return null!=t?t:2<e?1:0});return 1===e[3]&&(e.pop(),t="rgb("),t+e.join(", ")+")"},toHslaString:function(){var t="hsla(",e=p.map(this.hsla(),function(t,e){return null==t&&(t=2<e?1:0),e&&e<3?Math.round(100*t)+"%":t});return 1===e[3]&&(e.pop(),t="hsl("),t+e.join(", ")+")"},toHexString:function(t){var e=this._rgba.slice(),i=e.pop();return t&&e.push(~~(255*i)),"#"+p.map(e,function(t){return("0"+(t||0).toString(16)).substr(-2)}).join("")},toString:function(){return this.toRgbaString()}}),d.fn.parse.prototype=d.fn,f.hsla.to=function(t){var e,i,s,n,r,a,o,l;return null==t[0]||null==t[1]||null==t[2]?[null,null,null,t[3]]:(e=t[0]/255,i=t[1]/255,s=t[2]/255,t=t[3],n=(l=Math.max(e,i,s))-(o=Math.min(e,i,s)),a=.5*(r=l+o),o=o===l?0:e===l?60*(i-s)/n+360:i===l?60*(s-e)/n+120:60*(e-i)/n+240,l=0==n?0:a<=.5?n/r:n/(2-r),[Math.round(o)%360,l,a,null==t?1:t])},f.hsla.from=function(t){var e,i,s;return null==t[0]||null==t[1]||null==t[2]?[null,null,null,t[3]]:(e=t[0]/360,s=t[1],i=t[3],s=2*(t=t[2])-(t=t<=.5?t*(1+s):t+s-t*s),[Math.round(255*v(s,t,e+1/3)),Math.round(255*v(s,t,e)),Math.round(255*v(s,t,e-1/3)),i])},m(f,function(o,t){var e=t.props,r=t.cache,a=t.to,l=t.from;d.fn[o]=function(t){var i,s,n;return a&&!this[r]&&(this[r]=a(this._rgba)),void 0===t?this[r].slice():(i=g(t),s="array"===i||"object"===i?t:arguments,n=this[r].slice(),m(e,function(t,e){null==(t=s["object"===i?t:e.idx])&&(t=n[e.idx]),n[e.idx]=y(t,e)}),l?((t=d(l(n)))[r]=n,t):d(n))},m(e,function(r,a){d.fn[r]||(d.fn[r]=function(t){var e=g(t),i="alpha"===r?this._hsla?"hsla":"rgba":o,s=this[i](),n=s[a.idx];return"undefined"===e?n:("function"===e&&(e=g(t=t.call(this,n))),null==t&&a.empty?this:("string"===e&&(e=B.exec(t))&&(t=n+parseFloat(e[2])*("+"===e[1]?1:-1)),s[a.idx]=t,this[i](s)))})})}),d.hook=function(t){t=t.split(" "),m(t,function(t,s){p.cssHooks[s]={set:function(t,e){var i;"transparent"===e||"string"===g(e)&&!(i=H(e))||(e=(e=d(i||e)).toRgbaString()),t.style[s]=e}},p.fx.step[s]=function(t){t.colorInit||(t.start=d(t.elem,s),t.end=d(t.end),t.colorInit=!0),p.cssHooks[s].set(t.elem,t.start.transition(t.end,t.pos))}})},d.hook("backgroundColor borderBottomColor borderLeftColor borderRightColor borderTopColor color columnRuleColor outlineColor textDecorationColor textEmphasisColor"),p.cssHooks.borderColor={expand:function(i){var s={};return m(["Top","Right","Bottom","Left"],function(t,e){s["border"+e+"Color"]=i}),s}};var q,W,j,G,Y,K,X,U,J,b,_=p.Color.names={aqua:"#00ffff",black:"#000000",blue:"#0000ff",fuchsia:"#ff00ff",gray:"#808080",green:"#008000",lime:"#00ff00",maroon:"#800000",navy:"#000080",olive:"#808000",purple:"#800080",red:"#ff0000",silver:"#c0c0c0",teal:"#008080",white:"#ffffff",yellow:"#ffff00",transparent:[null,null,null,0],_default:"#ffffff"},x="ui-effects-",e="ui-effects-style",P="ui-effects-animated";function Z(t){for(var e,i=t.ownerDocument.defaultView.getComputedStyle(t),s={},n=i.length;n--;)"string"==typeof i[e=i[n]]&&(s[e.replace(/-([\da-z])/gi,function(t,e){return e.toUpperCase()})]=i[e]);return s}function D(t,e,i,s){return t={effect:t=$.isPlainObject(t)?(e=t).effect:t},"function"==typeof(e=null==e?{}:e)&&(s=e,i=null,e={}),"number"!=typeof e&&!$.fx.speeds[e]||(s=i,i=e,e={}),"function"==typeof i&&(s=i,i=null),e&&$.extend(t,e),i=i||e.duration,t.duration=$.fx.off?0:"number"==typeof i?i:i in $.fx.speeds?$.fx.speeds[i]:$.fx.speeds._default,t.complete=s||e.complete,t}function T(t){return!t||"number"==typeof t||$.fx.speeds[t]||"string"==typeof t&&!$.effects.effect[t]||"function"==typeof t||"object"==typeof t&&!t.effect}function Q(t,e){var i=e.outerWidth(),e=e.outerHeight(),t=/^rect\((-?\d*\.?\d*px|-?\d+%|auto),?\s*(-?\d*\.?\d*px|-?\d+%|auto),?\s*(-?\d*\.?\d*px|-?\d+%|auto),?\s*(-?\d*\.?\d*px|-?\d+%|auto)\)$/.exec(t)||["",0,i,e,0];return{top:parseFloat(t[1])||0,right:"auto"===t[2]?i:parseFloat(t[2]),bottom:"auto"===t[3]?e:parseFloat(t[3]),left:parseFloat(t[4])||0}}$.effects={effect:{}},G=["add","remove","toggle"],Y={border:1,borderBottom:1,borderColor:1,borderLeft:1,borderRight:1,borderTop:1,borderWidth:1,margin:1,padding:1},$.each(["borderLeftStyle","borderRightStyle","borderBottomStyle","borderTopStyle"],function(t,e){$.fx.step[e]=function(t){("none"!==t.end&&!t.setAttr||1===t.pos&&!t.setAttr)&&(p.style(t.elem,e,t.end),t.setAttr=!0)}}),$.effects.animateClass=function(n,t,e,i){var r=$.speed(t,e,i);return this.queue(function(){function t(){$.each(G,function(t,e){n[e]&&i[e+"Class"](n[e])})}var i=$(this),e=i.attr("class")||"",s=(s=r.children?i.find("*").addBack():i).map(function(){return{el:$(this),start:Z(this)}});t(),s=s.map(function(){return this.end=Z(this.el[0]),this.diff=((t,e)=>{var i,s,n={};for(i in e)s=e[i],t[i]===s||Y[i]||!$.fx.step[i]&&isNaN(parseFloat(s))||(n[i]=s);return n})(this.start,this.end),this}),i.attr("class",e),s=s.map(function(){var t=this,e=$.Deferred(),i=$.extend({},r,{queue:!1,complete:function(){e.resolve(t)}});return this.el.animate(this.diff,i),e.promise()}),$.when.apply($,s.get()).done(function(){t(),$.each(arguments,function(){var e=this.el;$.each(this.diff,function(t){e.css(t,"")})}),r.complete.call(i[0])})})},$.fn.extend({addClass:(j=$.fn.addClass,function(t,e,i,s){return e?$.effects.animateClass.call(this,{add:t},e,i,s):j.apply(this,arguments)}),removeClass:(W=$.fn.removeClass,function(t,e,i,s){return 1<arguments.length?$.effects.animateClass.call(this,{remove:t},e,i,s):W.apply(this,arguments)}),toggleClass:(q=$.fn.toggleClass,function(t,e,i,s,n){return"boolean"==typeof e||void 0===e?i?$.effects.animateClass.call(this,e?{add:t}:{remove:t},i,s,n):q.apply(this,arguments):$.effects.animateClass.call(this,{toggle:t},e,i,s)}),switchClass:function(t,e,i,s,n){return $.effects.animateClass.call(this,{add:e,remove:t},i,s,n)}}),$.expr&&$.expr.pseudos&&$.expr.pseudos.animated&&($.expr.pseudos.animated=(K=$.expr.pseudos.animated,function(t){return!!$(t).data(P)||K(t)})),!0===$.uiBackCompat&&$.extend($.effects,{save:function(t,e){for(var i=0,s=e.length;i<s;i++)null!==e[i]&&t.data(x+e[i],t[0].style[e[i]])},restore:function(t,e){for(var i,s=0,n=e.length;s<n;s++)null!==e[s]&&(i=t.data(x+e[s]),t.css(e[s],i))},setMode:function(t,e){return"toggle"===e?t.is(":hidden")?"show":"hide":e},createWrapper:function(i){if(i.parent().is(".ui-effects-wrapper"))return i.parent();var s={width:i.outerWidth(!0),height:i.outerHeight(!0),float:i.css("float")},t=$("<div></div>").addClass("ui-effects-wrapper").css({fontSize:"100%",background:"transparent",border:"none",margin:0,padding:0}),e={width:i.width(),height:i.height()},n=document.activeElement;try{n.id}catch(t){n=document.body}return i.wrap(t),i[0]!==n&&!$.contains(i[0],n)||$(n).trigger("focus"),t=i.parent(),"static"===i.css("position")?(t.css({position:"relative"}),i.css({position:"relative"})):($.extend(s,{position:i.css("position"),zIndex:i.css("z-index")}),$.each(["top","left","bottom","right"],function(t,e){s[e]=i.css(e),isNaN(parseInt(s[e],10))&&(s[e]="auto")}),i.css({position:"relative",top:0,left:0,right:"auto",bottom:"auto"})),i.css(e),t.css(s).show()},removeWrapper:function(t){var e=document.activeElement;return t.parent().is(".ui-effects-wrapper")&&(t.parent().replaceWith(t),t[0]!==e&&!$.contains(t[0],e)||$(e).trigger("focus")),t}}),$.extend($.effects,{version:"1.14.1",define:function(t,e,i){return i||(i=e,e="effect"),$.effects.effect[t]=i,$.effects.effect[t].mode=e,i},scaledDimensions:function(t,e,i){var s;return 0===e?{height:0,width:0,outerHeight:0,outerWidth:0}:(s="horizontal"!==i?(e||100)/100:1,i="vertical"!==i?(e||100)/100:1,{height:t.height()*i,width:t.width()*s,outerHeight:t.outerHeight()*i,outerWidth:t.outerWidth()*s})},clipToBox:function(t){return{width:t.clip.right-t.clip.left,height:t.clip.bottom-t.clip.top,left:t.clip.left,top:t.clip.top}},unshift:function(t,e,i){var s=t.queue();1<e&&s.splice.apply(s,[1,0].concat(s.splice(e,i))),t.dequeue()},saveStyle:function(t){t.data(e,t[0].style.cssText)},restoreStyle:function(t){t[0].style.cssText=t.data(e)||"",t.removeData(e)},mode:function(t,e){return t=t.is(":hidden"),"toggle"===e&&(e=t?"show":"hide"),(t?"hide"===e:"show"===e)?"none":e},getBaseline:function(t,e){var i,s;switch(t[0]){case"top":i=0;break;case"middle":i=.5;break;case"bottom":i=1;break;default:i=t[0]/e.height}switch(t[1]){case"left":s=0;break;case"center":s=.5;break;case"right":s=1;break;default:s=t[1]/e.width}return{x:s,y:i}},createPlaceholder:function(t){var e,i=t.css("position"),s=t.position();return t.css({marginTop:t.css("marginTop"),marginBottom:t.css("marginBottom"),marginLeft:t.css("marginLeft"),marginRight:t.css("marginRight")}).outerWidth(t.outerWidth()).outerHeight(t.outerHeight()),/^(static|relative)/.test(i)&&(i="absolute",e=$("<"+t[0].nodeName+">").insertAfter(t).css({display:/^(inline|ruby)/.test(t.css("display"))?"inline-block":"block",visibility:"hidden",marginTop:t.css("marginTop"),marginBottom:t.css("marginBottom"),marginLeft:t.css("marginLeft"),marginRight:t.css("marginRight"),float:t.css("float")}).outerWidth(t.outerWidth()).outerHeight(t.outerHeight()).addClass("ui-effects-placeholder"),t.data(x+"placeholder",e)),t.css({position:i,left:s.left,top:s.top}),e},removePlaceholder:function(t){var e=x+"placeholder",i=t.data(e);i&&(i.remove(),t.removeData(e))},cleanUp:function(t){$.effects.restoreStyle(t),$.effects.removePlaceholder(t)},setTransition:function(s,t,n,r){return r=r||{},$.each(t,function(t,e){var i=s.cssUnit(e);0<i[0]&&(r[e]=i[0]*n+i[1])}),r}}),$.fn.extend({effect:function(){function t(t){var e=$(this),i=$.effects.mode(e,o)||r;e.data(P,!0),l.push(i),r&&("show"===i||i===r&&"hide"===i)&&e.show(),r&&"none"===i||$.effects.saveStyle(e),"function"==typeof t&&t()}var s=D.apply(this,arguments),n=$.effects.effect[s.effect],r=n.mode,e=s.queue,i=e||"fx",a=s.complete,o=s.mode,l=[];return $.fx.off||!n?o?this[o](s.duration,a):this.each(function(){a&&a.call(this)}):!1===e?this.each(t).each(h):this.queue(i,t).queue(i,h);function h(t){var e=$(this);function i(){"function"==typeof a&&a.call(e[0]),"function"==typeof t&&t()}s.mode=l.shift(),!0!==$.uiBackCompat||r?"none"===s.mode?(e[o](),i()):n.call(e[0],s,function(){e.removeData(P),$.effects.cleanUp(e),"hide"===s.mode&&e.hide(),i()}):(e.is(":hidden")?"hide"===o:"show"===o)?(e[o](),i()):n.call(e[0],s,i)}},show:(J=$.fn.show,function(t){return T(t)?J.apply(this,arguments):((t=D.apply(this,arguments)).mode="show",this.effect.call(this,t))}),hide:(U=$.fn.hide,function(t){return T(t)?U.apply(this,arguments):((t=D.apply(this,arguments)).mode="hide",this.effect.call(this,t))}),toggle:(X=$.fn.toggle,function(t){return T(t)||"boolean"==typeof t?X.apply(this,arguments):((t=D.apply(this,arguments)).mode="toggle",this.effect.call(this,t))}),cssUnit:function(t){var i=this.css(t),s=[];return $.each(["em","px","%","pt"],function(t,e){0<i.indexOf(e)&&(s=[parseFloat(i),e])}),s},cssClip:function(t){return t?this.css("clip","rect("+t.top+"px "+t.right+"px "+t.bottom+"px "+t.left+"px)"):Q(this.css("clip"),this)},transfer:function(t,e){var i=$(this),s="fixed"===(o=$(t.to)).css("position"),n=$("body"),r=s?n.scrollTop():0,n=s?n.scrollLeft():0,a={top:(a=o.offset()).top-r,left:a.left-n,height:o.innerHeight(),width:o.innerWidth()},o=i.offset(),l=$("<div class='ui-effects-transfer'></div>");l.appendTo("body").addClass(t.className).css({top:o.top-r,left:o.left-n,height:i.innerHeight(),width:i.innerWidth(),position:s?"fixed":"absolute"}).animate(a,t.duration,t.easing,function(){l.remove(),"function"==typeof e&&e()})}}),$.fx.step.clip=function(t){t.clipInit||(t.start=$(t.elem).cssClip(),"string"==typeof t.end&&(t.end=Q(t.end,t.elem)),t.clipInit=!0),$(t.elem).cssClip({top:t.pos*(t.end.top-t.start.top)+t.start.top,right:t.pos*(t.end.right-t.start.right)+t.start.right,bottom:t.pos*(t.end.bottom-t.start.bottom)+t.start.bottom,left:t.pos*(t.end.left-t.start.left)+t.start.left})},b={},$.each(["Quad","Cubic","Quart","Quint","Expo"],function(e,t){b[t]=function(t){return Math.pow(t,e+2)}}),$.extend(b,{Sine:function(t){return 1-Math.cos(t*Math.PI/2)},Circ:function(t){return 1-Math.sqrt(1-t*t)},Elastic:function(t){return 0===t||1===t?t:-Math.pow(2,8*(t-1))*Math.sin((80*(t-1)-7.5)*Math.PI/15)},Back:function(t){return t*t*(3*t-2)},Bounce:function(t){for(var e,i=4;t<((e=Math.pow(2,--i))-1)/11;);return 1/Math.pow(4,3-i)-7.5625*Math.pow((3*e-2)/22-t,2)}}),$.each(b,function(t,e){$.easing["easeIn"+t]=e,$.easing["easeOut"+t]=function(t){return 1-e(1-t)},$.easing["easeInOut"+t]=function(t){return t<.5?e(2*t)/2:1-e(-2*t+2)/2}});var tt,et,A,it=$.effects,st=($.effects.define("blind","hide",function(t,e){var i={up:["bottom","top"],vertical:["bottom","top"],down:["top","bottom"],left:["right","left"],horizontal:["right","left"],right:["left","right"]},s=$(this),n=t.direction||"up",r=s.cssClip(),a={clip:$.extend({},r)},o=$.effects.createPlaceholder(s);a.clip[i[n][0]]=a.clip[i[n][1]],"show"===t.mode&&(s.cssClip(a.clip),o&&o.css($.effects.clipToBox(a)),a.clip=r),o&&o.animate($.effects.clipToBox(a),t.duration,t.easing),s.animate(a,{queue:!1,duration:t.duration,easing:t.easing,complete:e})}),$.effects.define("bounce",function(t,e){var i,s,n=$(this),r=t.mode,a="hide"===r,o=t.direction||"up",l=t.distance,h=t.times||5,c=2*h+((r="show"===r)||a?1:0),p=t.duration/c,u=t.easing,d="up"===o||"down"===o?"top":"left",f="up"===o||"left"===o,m=0,t=n.queue().length;for($.effects.createPlaceholder(n),o=n.css(d),l=l||n["top"==d?"outerHeight":"outerWidth"]()/3,r&&((s={opacity:1})[d]=o,n.css("opacity",0).css(d,f?2*-l:2*l).animate(s,p,u)),a&&(l/=Math.pow(2,h-1)),(s={})[d]=o;m<h;m++)(i={})[d]=(f?"-=":"+=")+l,n.animate(i,p,u).animate(s,p,u),l=a?2*l:l/2;a&&((i={opacity:0})[d]=(f?"-=":"+=")+l,n.animate(i,p,u)),n.queue(e),$.effects.unshift(n,t,1+c)}),$.effects.define("clip","hide",function(t,e){var i={},s=$(this),n=(r="both"===(a=t.direction||"vertical"))||"horizontal"===a,r=r||"vertical"===a,a=s.cssClip();i.clip={top:r?(a.bottom-a.top)/2:a.top,right:n?(a.right-a.left)/2:a.right,bottom:r?(a.bottom-a.top)/2:a.bottom,left:n?(a.right-a.left)/2:a.left},$.effects.createPlaceholder(s),"show"===t.mode&&(s.cssClip(i.clip),i.clip=a),s.animate(i,{queue:!1,duration:t.duration,easing:t.easing,complete:e})}),$.effects.define("drop","hide",function(t,e){var i,s=$(this),n="show"===t.mode,r=t.direction||"left",a="up"===r||"down"===r?"top":"left",o="+="==(r="up"===r||"left"===r?"-=":"+=")?"-=":"+=",l={opacity:0};$.effects.createPlaceholder(s),i=t.distance||s["top"==a?"outerHeight":"outerWidth"](!0)/2,l[a]=r+i,n&&(s.css(l),l[a]=o+i,l.opacity=1),s.animate(l,{queue:!1,duration:t.duration,easing:t.easing,complete:e})}),$.effects.define("explode","hide",function(t,e){var i,s,n,r,a,o,l=t.pieces?Math.round(Math.sqrt(t.pieces)):3,h=l,c=$(this),p="show"===t.mode,u=c.show().css("visibility","hidden").offset(),d=Math.ceil(c.outerWidth()/h),f=Math.ceil(c.outerHeight()/l),m=[];function g(){m.push(this),m.length===l*h&&(c.css({visibility:"visible"}),$(m).remove(),e())}for(i=0;i<l;i++)for(r=u.top+i*f,o=i-(l-1)/2,s=0;s<h;s++)n=u.left+s*d,a=s-(h-1)/2,c.clone().appendTo("body").wrap("<div></div>").css({position:"absolute",visibility:"visible",left:-s*d,top:-i*f}).parent().addClass("ui-effects-explode").css({position:"absolute",overflow:"hidden",width:d,height:f,left:n+(p?a*d:0),top:r+(p?o*f:0),opacity:p?0:1}).animate({left:n+(p?0:a*d),top:r+(p?0:o*f),opacity:p?1:0},t.duration||500,t.easing,g)}),$.effects.define("fade","toggle",function(t,e){var i="show"===t.mode;$(this).css("opacity",i?0:1).animate({opacity:i?1:0},{queue:!1,duration:t.duration,easing:t.easing,complete:e})}),$.effects.define("fold","hide",function(e,t){var i=$(this),s="show"===(n=e.mode),n="hide"===n,r=e.size||15,a=/([0-9]+)%/.exec(r),o=e.horizFirst?["right","bottom"]:["bottom","right"],l=e.duration/2,h=$.effects.createPlaceholder(i),c=i.cssClip(),p={clip:$.extend({},c)},u={clip:$.extend({},c)},d=[c[o[0]],c[o[1]]],f=i.queue().length;a&&(r=parseInt(a[1],10)/100*d[n?0:1]),p.clip[o[0]]=r,u.clip[o[0]]=r,u.clip[o[1]]=0,s&&(i.cssClip(u.clip),h&&h.css($.effects.clipToBox(u)),u.clip=c),i.queue(function(t){h&&h.animate($.effects.clipToBox(p),l,e.easing).animate($.effects.clipToBox(u),l,e.easing),t()}).animate(p,l,e.easing).animate(u,l,e.easing).queue(t),$.effects.unshift(i,f,4)}),$.effects.define("highlight","show",function(t,e){var i=$(this),s={backgroundColor:i.css("backgroundColor")};"hide"===t.mode&&(s.opacity=0),$.effects.saveStyle(i),i.css({backgroundImage:"none",backgroundColor:t.color||"#ffff99"}).animate(s,{queue:!1,duration:t.duration,easing:t.easing,complete:e})}),$.effects.define("size",function(s,e){var n,i=$(this),t=["fontSize"],r=["borderTopWidth","borderBottomWidth","paddingTop","paddingBottom"],a=["borderLeftWidth","borderRightWidth","paddingLeft","paddingRight"],o=s.mode,l="effect"!==o,h=s.scale||"both",c=s.origin||["middle","center"],p=i.css("position"),u=i.position(),d=$.effects.scaledDimensions(i),f=s.from||d,m=s.to||$.effects.scaledDimensions(i,0);$.effects.createPlaceholder(i),"show"===o&&(o=f,f=m,m=o),n={from:{y:f.height/d.height,x:f.width/d.width},to:{y:m.height/d.height,x:m.width/d.width}},"box"!==h&&"both"!==h||(n.from.y!==n.to.y&&(f=$.effects.setTransition(i,r,n.from.y,f),m=$.effects.setTransition(i,r,n.to.y,m)),n.from.x!==n.to.x&&(f=$.effects.setTransition(i,a,n.from.x,f),m=$.effects.setTransition(i,a,n.to.x,m))),"content"!==h&&"both"!==h||n.from.y!==n.to.y&&(f=$.effects.setTransition(i,t,n.from.y,f),m=$.effects.setTransition(i,t,n.to.y,m)),c&&(o=$.effects.getBaseline(c,d),f.top=(d.outerHeight-f.outerHeight)*o.y+u.top,f.left=(d.outerWidth-f.outerWidth)*o.x+u.left,m.top=(d.outerHeight-m.outerHeight)*o.y+u.top,m.left=(d.outerWidth-m.outerWidth)*o.x+u.left),delete f.outerHeight,delete f.outerWidth,i.css(f),"content"!==h&&"both"!==h||(r=r.concat(["marginTop","marginBottom"]).concat(t),a=a.concat(["marginLeft","marginRight"]),i.find("*[width]").each(function(){var t=$(this),e={height:(i=$.effects.scaledDimensions(t)).height*n.from.y,width:i.width*n.from.x,outerHeight:i.outerHeight*n.from.y,outerWidth:i.outerWidth*n.from.x},i={height:i.height*n.to.y,width:i.width*n.to.x,outerHeight:i.height*n.to.y,outerWidth:i.width*n.to.x};n.from.y!==n.to.y&&(e=$.effects.setTransition(t,r,n.from.y,e),i=$.effects.setTransition(t,r,n.to.y,i)),n.from.x!==n.to.x&&(e=$.effects.setTransition(t,a,n.from.x,e),i=$.effects.setTransition(t,a,n.to.x,i)),l&&$.effects.saveStyle(t),t.css(e),t.animate(i,s.duration,s.easing,function(){l&&$.effects.restoreStyle(t)})})),i.animate(m,{queue:!1,duration:s.duration,easing:s.easing,complete:function(){var t=i.offset();0===m.opacity&&i.css("opacity",f.opacity),l||(i.css("position","static"===p?"relative":p).offset(t),$.effects.saveStyle(i)),e()}})}),$.effects.define("scale",function(t,e){var i=$(this),s=t.mode,s=parseInt(t.percent,10)||(0===parseInt(t.percent,10)||"effect"!==s?0:100),i=$.extend(!0,{from:$.effects.scaledDimensions(i),to:$.effects.scaledDimensions(i,s,t.direction||"both"),origin:t.origin||["middle","center"]},t);t.fade&&(i.from.opacity=1,i.to.opacity=0),$.effects.effect.size.call(this,i,e)}),$.effects.define("puff","hide",function(t,e){t=$.extend(!0,{},t,{fade:!0,percent:parseInt(t.percent,10)||150}),$.effects.effect.scale.call(this,t,e)}),$.effects.define("pulsate","show",function(t,e){var i=$(this),s="show"===(l=t.mode),n=2*(t.times||5)+(s||"hide"===l?1:0),r=t.duration/n,a=0,o=1,l=i.queue().length;for(!s&&i.is(":visible")||(i.css("opacity",0).show(),a=1);o<n;o++)i.animate({opacity:a},r,t.easing),a=1-a;i.animate({opacity:a},r,t.easing),i.queue(e),$.effects.unshift(i,l,1+n)}),$.effects.define("shake",function(t,e){var i=1,s=$(this),n=t.direction||"left",r=t.distance||20,a=t.times||3,o=2*a+1,l=Math.round(t.duration/o),h="up"===n||"down"===n?"top":"left",n="up"===n||"left"===n,c={},p={},u={},d=s.queue().length;for($.effects.createPlaceholder(s),c[h]=(n?"-=":"+=")+r,p[h]=(n?"+=":"-=")+2*r,u[h]=(n?"-=":"+=")+2*r,s.animate(c,l,t.easing);i<a;i++)s.animate(p,l,t.easing).animate(u,l,t.easing);s.animate(p,l,t.easing).animate(c,l/2,t.easing).queue(e),$.effects.unshift(s,d,1+o)}),$.effects.define("slide","show",function(t,e){var i,s,n=$(this),r={up:["bottom","top"],down:["top","bottom"],left:["right","left"],right:["left","right"]},a=t.mode,o=t.direction||"left",l="up"===o||"down"===o?"top":"left",h="up"===o||"left"===o,c=t.distance||n["top"==l?"outerHeight":"outerWidth"](!0),p={};$.effects.createPlaceholder(n),i=n.cssClip(),s=n.position()[l],p[l]=(h?-1:1)*c+s,p.clip=n.cssClip(),p.clip[r[o][1]]=p.clip[r[o][0]],"show"===a&&(n.cssClip(p.clip),n.css(l,p[l]),p.clip=i,p[l]=s),n.animate(p,{queue:!1,duration:t.duration,easing:t.easing,complete:e})}),!0===$.uiBackCompat&&$.effects.define("transfer",function(t,e){$(this).transfer(t,e)}),$.ui.focusable=function(t,e){var i,s,n,r=t.nodeName.toLowerCase();return"area"===r?(n=(i=t.parentNode).name,!(!t.href||!n||"map"!==i.nodeName.toLowerCase())&&0<(i=$("img[usemap='#"+n+"']")).length&&i.is(":visible")):(/^(input|select|textarea|button|object)$/.test(r)?(s=!t.disabled)&&(n=$(t).closest("fieldset")[0])&&(s=!n.disabled):s="a"===r&&t.href||e,s&&$(t).is(":visible")&&"visible"===$(t).css("visibility"))},$.extend($.expr.pseudos,{focusable:function(t){return $.ui.focusable(t,null!=$.attr(t,"tabindex"))}}),$.ui.focusable,$.ui.formResetMixin={_formResetHandler:function(){var e=$(this);setTimeout(function(){var t=e.data("ui-form-reset-instances");$.each(t,function(){this.refresh()})})},_bindFormResetHandler:function(){var t;this.form=$(this.element.prop("form")),this.form.length&&((t=this.form.data("ui-form-reset-instances")||[]).length||this.form.on("reset.ui-form-reset",this._formResetHandler),t.push(this),this.form.data("ui-form-reset-instances",t))},_unbindFormResetHandler:function(){var t;this.form.length&&((t=this.form.data("ui-form-reset-instances")).splice($.inArray(this,t),1),t.length?this.form.data("ui-form-reset-instances",t):this.form.removeData("ui-form-reset-instances").off("reset.ui-form-reset"))}},$.escapeSelector||($.escapeSelector=function(t){return CSS.escape(t+"")}),$.fn.even&&$.fn.odd||$.fn.extend({even:function(){return this.filter(function(t){return t%2==0})},odd:function(){return this.filter(function(t){return t%2==1})}}),$.ui.keyCode={BACKSPACE:8,COMMA:188,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,LEFT:37,PAGE_DOWN:34,PAGE_UP:33,PERIOD:190,RIGHT:39,SPACE:32,TAB:9,UP:38},$.fn.labels=function(){var t,e,i;return this.length?this[0].labels&&this[0].labels.length?this.pushStack(this[0].labels):(e=this.eq(0).parents("label"),(t=this.attr("id"))&&(i=(i=this.eq(0).parents().last()).add((i.length?i:this).siblings()),t="label[for='"+CSS.escape(t)+"']",e=e.add(i.find(t).addBack(t))),this.pushStack(e)):this.pushStack([])},$.fn.scrollParent=function(t){var e=this.css("position"),i="absolute"===e,s=t?/(auto|scroll|hidden)/:/(auto|scroll)/,t=this.parents().filter(function(){var t=$(this);return(!i||"static"!==t.css("position"))&&s.test(t.css("overflow")+t.css("overflow-y")+t.css("overflow-x"))}).eq(0);return"fixed"!==e&&t.length?t:$(this[0].ownerDocument||document)},$.extend($.expr.pseudos,{tabbable:function(t){var e=$.attr(t,"tabindex"),i=null!=e;return(!i||0<=e)&&$.ui.focusable(t,i)}}),$.fn.extend({uniqueId:(tt=0,function(){return this.each(function(){this.id||(this.id="ui-id-"+ ++tt)})}),removeUniqueId:function(){return this.each(function(){/^ui-id-\d+$/.test(this.id)&&$(this).removeAttr("id")})}}),$.widget("ui.accordion",{version:"1.14.1",options:{active:0,animate:{},classes:{"ui-accordion-header":"ui-corner-top","ui-accordion-header-collapsed":"ui-corner-all","ui-accordion-content":"ui-corner-bottom"},collapsible:!1,event:"click",header:function(t){return t.find("> li > :first-child").add(t.find("> :not(li)").filter(function(t){return t%2==0}))},heightStyle:"auto",icons:{activeHeader:"ui-icon-triangle-1-s",header:"ui-icon-triangle-1-e"},activate:null,beforeActivate:null},hideProps:{borderTopWidth:"hide",borderBottomWidth:"hide",paddingTop:"hide",paddingBottom:"hide",height:"hide"},showProps:{borderTopWidth:"show",borderBottomWidth:"show",paddingTop:"show",paddingBottom:"show",height:"show"},_create:function(){var t=this.options;this.prevShow=this.prevHide=$(),this._addClass("ui-accordion","ui-widget ui-helper-reset"),this.element.attr("role","tablist"),t.collapsible||!1!==t.active&&null!=t.active||(t.active=0),this._processPanels(),t.active<0&&(t.active+=this.headers.length),this._refresh()},_getCreateEventData:function(){return{header:this.active,panel:this.active.length?this.active.next():$()}},_createIcons:function(){var t,e=this.options.icons;e&&(t=$("<span>"),this._addClass(t,"ui-accordion-header-icon","ui-icon "+e.header),t.prependTo(this.headers),t=this.active.children(".ui-accordion-header-icon"),this._removeClass(t,e.header)._addClass(t,null,e.activeHeader)._addClass(this.headers,"ui-accordion-icons"))},_destroyIcons:function(){this._removeClass(this.headers,"ui-accordion-icons"),this.headers.children(".ui-accordion-header-icon").remove()},_destroy:function(){var t;this.element.removeAttr("role"),this.headers.removeAttr("role aria-expanded aria-selected aria-controls tabIndex").removeUniqueId(),this._destroyIcons(),t=this.headers.next().css("display","").removeAttr("role aria-hidden aria-labelledby").removeUniqueId(),"content"!==this.options.heightStyle&&t.css("height","")},_setOption:function(t,e){"active"===t?this._activate(e):("event"===t&&(this.options.event&&this._off(this.headers,this.options.event),this._setupEvents(e)),this._super(t,e),"collapsible"!==t||e||!1!==this.options.active||this._activate(0),"icons"===t&&(this._destroyIcons(),e)&&this._createIcons())},_setOptionDisabled:function(t){this._super(t),this.element.attr("aria-disabled",t),this._toggleClass(null,"ui-state-disabled",!!t)},_keydown:function(t){if(!t.altKey&&!t.ctrlKey){var e=$.ui.keyCode,i=this.headers.length,s=this.headers.index(t.target),n=!1;switch(t.keyCode){case e.RIGHT:case e.DOWN:n=this.headers[(s+1)%i];break;case e.LEFT:case e.UP:n=this.headers[(s-1+i)%i];break;case e.SPACE:case e.ENTER:this._eventHandler(t);break;case e.HOME:n=this.headers[0];break;case e.END:n=this.headers[i-1]}n&&($(t.target).attr("tabIndex",-1),$(n).attr("tabIndex",0),$(n).trigger("focus"),t.preventDefault())}},_panelKeyDown:function(t){t.keyCode===$.ui.keyCode.UP&&t.ctrlKey&&$(t.currentTarget).prev().trigger("focus")},refresh:function(){var t=this.options;this._processPanels(),!1===t.active&&!0===t.collapsible||!this.headers.length?(t.active=!1,this.active=$()):!1===t.active?this._activate(0):this.active.length&&!$.contains(this.element[0],this.active[0])?this.headers.length===this.headers.find(".ui-state-disabled").length?(t.active=!1,this.active=$()):this._activate(Math.max(0,t.active-1)):t.active=this.headers.index(this.active),this._destroyIcons(),this._refresh()},_processPanels:function(){var t=this.headers,e=this.panels;"function"==typeof this.options.header?this.headers=this.options.header(this.element):this.headers=this.element.find(this.options.header),this._addClass(this.headers,"ui-accordion-header ui-accordion-header-collapsed","ui-state-default"),this.panels=this.headers.next().filter(":not(.ui-accordion-content-active)").hide(),this._addClass(this.panels,"ui-accordion-content","ui-helper-reset ui-widget-content"),e&&(this._off(t.not(this.headers)),this._off(e.not(this.panels)))},_refresh:function(){var i,t=this.options,e=t.heightStyle,s=this.element.parent();this.active=this._findActive(t.active),this._addClass(this.active,"ui-accordion-header-active","ui-state-active")._removeClass(this.active,"ui-accordion-header-collapsed"),this._addClass(this.active.next(),"ui-accordion-content-active"),this.active.next().show(),this.headers.attr("role","tab").each(function(){var t=$(this),e=t.uniqueId().attr("id"),i=t.next(),s=i.uniqueId().attr("id");t.attr("aria-controls",s),i.attr("aria-labelledby",e)}).next().attr("role","tabpanel"),this.headers.not(this.active).attr({"aria-selected":"false","aria-expanded":"false",tabIndex:-1}).next().attr({"aria-hidden":"true"}).hide(),this.active.length?this.active.attr({"aria-selected":"true","aria-expanded":"true",tabIndex:0}).next().attr({"aria-hidden":"false"}):this.headers.eq(0).attr("tabIndex",0),this._createIcons(),this._setupEvents(t.event),"fill"===e?(i=s.height(),this.element.siblings(":visible").each(function(){var t=$(this),e=t.css("position");"absolute"!==e&&"fixed"!==e&&(i-=t.outerHeight(!0))}),this.headers.each(function(){i-=$(this).outerHeight(!0)}),this.headers.next().each(function(){$(this).height(Math.max(0,i-$(this).innerHeight()+$(this).height()))}).css("overflow","auto")):"auto"===e&&(i=0,this.headers.next().each(function(){var t=$(this).is(":visible");t||$(this).show(),i=Math.max(i,$(this).css("height","").height()),t||$(this).hide()}).height(i))},_activate:function(t){(t=this._findActive(t)[0])!==this.active[0]&&(t=t||this.active[0],this._eventHandler({target:t,currentTarget:t,preventDefault:$.noop}))},_findActive:function(t){return"number"==typeof t?this.headers.eq(t):$()},_setupEvents:function(t){var i={keydown:"_keydown"};t&&$.each(t.split(" "),function(t,e){i[e]="_eventHandler"}),this._off(this.headers.add(this.headers.next())),this._on(this.headers,i),this._on(this.headers.next(),{keydown:"_panelKeyDown"}),this._hoverable(this.headers),this._focusable(this.headers)},_eventHandler:function(t){var e=this.options,i=this.active,s=$(t.currentTarget),n=s[0]===i[0],r=n&&e.collapsible,a=r?$():s.next(),o=i.next(),o={oldHeader:i,oldPanel:o,newHeader:r?$():s,newPanel:a};t.preventDefault(),n&&!e.collapsible||!1===this._trigger("beforeActivate",t,o)||(e.active=!r&&this.headers.index(s),this.active=n?$():s,this._toggle(o),this._removeClass(i,"ui-accordion-header-active","ui-state-active"),e.icons&&(a=i.children(".ui-accordion-header-icon"),this._removeClass(a,null,e.icons.activeHeader)._addClass(a,null,e.icons.header)),n)||(this._removeClass(s,"ui-accordion-header-collapsed")._addClass(s,"ui-accordion-header-active","ui-state-active"),e.icons&&(t=s.children(".ui-accordion-header-icon"),this._removeClass(t,null,e.icons.header)._addClass(t,null,e.icons.activeHeader)),this._addClass(s.next(),"ui-accordion-content-active"))},_toggle:function(t){var e=t.newPanel,i=this.prevShow.length?this.prevShow:t.oldPanel;this.prevShow.add(this.prevHide).stop(!0,!0),this.prevShow=e,this.prevHide=i,this.options.animate?this._animate(e,i,t):(i.hide(),e.show(),this._toggleComplete(t)),i.attr({"aria-hidden":"true"}),i.prev().attr({"aria-selected":"false","aria-expanded":"false"}),e.length&&i.length?i.prev().attr({tabIndex:-1,"aria-expanded":"false"}):e.length&&this.headers.filter(function(){return 0===parseInt($(this).attr("tabIndex"),10)}).attr("tabIndex",-1),e.attr("aria-hidden","false").prev().attr({"aria-selected":"true","aria-expanded":"true",tabIndex:0})},_animate:function(t,i,e){function s(){r._toggleComplete(e)}var n,r=this,a=0,o=t.css("box-sizing"),l=t.length&&(!i.length||t.index()<i.index()),h=this.options.animate||{},c=(c="string"==typeof(l=l&&h.down||h)?l:c)||l.easing||h.easing,p=(p="number"==typeof l?l:p)||l.duration||h.duration;return i.length?t.length?(n=t.show().outerHeight(),i.animate(this.hideProps,{duration:p,easing:c,step:function(t,e){e.now=Math.round(t)}}),void t.hide().animate(this.showProps,{duration:p,easing:c,complete:s,step:function(t,e){e.now=Math.round(t),"height"!==e.prop?"content-box"===o&&(a+=e.now):"content"!==r.options.heightStyle&&(e.now=Math.round(n-i.outerHeight()-a),a=0)}})):i.animate(this.hideProps,p,c,s):t.animate(this.showProps,p,c,s)},_toggleComplete:function(t){var e=t.oldPanel,i=e.prev();this._removeClass(e,"ui-accordion-content-active"),this._removeClass(i,"ui-accordion-header-active")._addClass(i,"ui-accordion-header-collapsed"),this._trigger("activate",null,t)}}),$.widget("ui.menu",{version:"1.14.1",defaultElement:"<ul>",delay:300,options:{icons:{submenu:"ui-icon-caret-1-e"},items:"> *",menus:"ul",position:{my:"left top",at:"right top"},role:"menu",blur:null,focus:null,select:null},_create:function(){this.activeMenu=this.element,this.mouseHandled=!1,this.lastMousePosition={x:null,y:null},this.element.uniqueId().attr({role:this.options.role,tabIndex:0}),this._addClass("ui-menu","ui-widget ui-widget-content"),this._on({"mousedown .ui-menu-item":function(t){t.preventDefault(),this._activateItem(t)},"click .ui-menu-item":function(t){var e=$(t.target),i=$(this.document[0].activeElement);!this.mouseHandled&&e.not(".ui-state-disabled").length&&(this.select(t),t.isPropagationStopped()||(this.mouseHandled=!0),e.has(".ui-menu").length?this.expand(t):!this.element.is(":focus")&&i.closest(".ui-menu").length&&(this.element.trigger("focus",[!0]),this.active)&&1===this.active.parents(".ui-menu").length&&clearTimeout(this.timer))},"mouseenter .ui-menu-item":"_activateItem","mousemove .ui-menu-item":"_activateItem",mouseleave:"collapseAll","mouseleave .ui-menu":"collapseAll",focus:function(t,e){var i=this.active||this._menuItems().first();e||this.focus(t,i)},blur:function(t){this._delay(function(){$.contains(this.element[0],this.document[0].activeElement)||this.collapseAll(t)})},keydown:"_keydown"}),this.refresh(),this._on(this.document,{click:function(t){this._closeOnDocumentClick(t)&&this.collapseAll(t,!0),this.mouseHandled=!1}})},_activateItem:function(t){var e,i;this.previousFilter||t.clientX===this.lastMousePosition.x&&t.clientY===this.lastMousePosition.y||(this.lastMousePosition={x:t.clientX,y:t.clientY},e=$(t.target).closest(".ui-menu-item"),i=$(t.currentTarget),e[0]!==i[0])||i.is(".ui-state-active")||(this._removeClass(i.siblings().children(".ui-state-active"),null,"ui-state-active"),this.focus(t,i))},_destroy:function(){var t=this.element.find(".ui-menu-item").removeAttr("role aria-disabled").children(".ui-menu-item-wrapper").removeUniqueId().removeAttr("tabIndex role aria-haspopup");this.element.removeAttr("aria-activedescendant").find(".ui-menu").addBack().removeAttr("role aria-labelledby aria-expanded aria-hidden aria-disabled tabIndex").removeUniqueId().show(),t.children().each(function(){var t=$(this);t.data("ui-menu-submenu-caret")&&t.remove()})},_keydown:function(t){var e,i,s,n=!0;switch(t.keyCode){case $.ui.keyCode.PAGE_UP:this.previousPage(t);break;case $.ui.keyCode.PAGE_DOWN:this.nextPage(t);break;case $.ui.keyCode.HOME:this._move("first","first",t);break;case $.ui.keyCode.END:this._move("last","last",t);break;case $.ui.keyCode.UP:this.previous(t);break;case $.ui.keyCode.DOWN:this.next(t);break;case $.ui.keyCode.LEFT:this.collapse(t);break;case $.ui.keyCode.RIGHT:this.active&&!this.active.is(".ui-state-disabled")&&this.expand(t);break;case $.ui.keyCode.ENTER:case $.ui.keyCode.SPACE:this._activate(t);break;case $.ui.keyCode.ESCAPE:this.collapse(t);break;default:e=this.previousFilter||"",s=n=!1,i=96<=t.keyCode&&t.keyCode<=105?(t.keyCode-96).toString():String.fromCharCode(t.keyCode),clearTimeout(this.filterTimer),i===e?s=!0:i=e+i,e=this._filterMenuItems(i),(e=s&&-1!==e.index(this.active.next())?this.active.nextAll(".ui-menu-item"):e).length||(i=String.fromCharCode(t.keyCode),e=this._filterMenuItems(i)),e.length?(this.focus(t,e),this.previousFilter=i,this.filterTimer=this._delay(function(){delete this.previousFilter},1e3)):delete this.previousFilter}n&&t.preventDefault()},_activate:function(t){this.active&&!this.active.is(".ui-state-disabled")&&(this.active.children("[aria-haspopup='true']").length?this.expand(t):this.select(t))},refresh:function(){var t,e,s=this,n=this.options.icons.submenu,i=this.element.find(this.options.menus);this._toggleClass("ui-menu-icons",null,!!this.element.find(".ui-icon").length),t=i.filter(":not(.ui-menu)").hide().attr({role:this.options.role,"aria-hidden":"true","aria-expanded":"false"}).each(function(){var t=$(this),e=t.prev(),i=$("<span>").data("ui-menu-submenu-caret",!0);s._addClass(i,"ui-menu-icon","ui-icon "+n),e.attr("aria-haspopup","true").prepend(i),t.attr("aria-labelledby",e.attr("id"))}),this._addClass(t,"ui-menu","ui-widget ui-widget-content ui-front"),(t=i.add(this.element).find(this.options.items)).not(".ui-menu-item").each(function(){var t=$(this);s._isDivider(t)&&s._addClass(t,"ui-menu-divider","ui-widget-content")}),e=(i=t.not(".ui-menu-item, .ui-menu-divider")).children().not(".ui-menu").uniqueId().attr({tabIndex:-1,role:this._itemRole()}),this._addClass(i,"ui-menu-item")._addClass(e,"ui-menu-item-wrapper"),t.filter(".ui-state-disabled").attr("aria-disabled","true"),this.active&&!$.contains(this.element[0],this.active[0])&&this.blur()},_itemRole:function(){return{menu:"menuitem",listbox:"option"}[this.options.role]},_setOption:function(t,e){var i;"icons"===t&&(i=this.element.find(".ui-menu-icon"),this._removeClass(i,null,this.options.icons.submenu)._addClass(i,null,e.submenu)),this._super(t,e)},_setOptionDisabled:function(t){this._super(t),this.element.attr("aria-disabled",String(t)),this._toggleClass(null,"ui-state-disabled",!!t)},focus:function(t,e){var i;this.blur(t,t&&"focus"===t.type),this._scrollIntoView(e),this.active=e.first(),i=this.active.children(".ui-menu-item-wrapper"),this._addClass(i,null,"ui-state-active"),this.options.role&&this.element.attr("aria-activedescendant",i.attr("id")),i=this.active.parent().closest(".ui-menu-item").children(".ui-menu-item-wrapper"),this._addClass(i,null,"ui-state-active"),t&&"keydown"===t.type?this._close():this.timer=this._delay(function(){this._close()},this.delay),(i=e.children(".ui-menu")).length&&t&&/^mouse/.test(t.type)&&this._startOpening(i),this.activeMenu=e.parent(),this._trigger("focus",t,{item:e})},_scrollIntoView:function(t){var e,i,s;this._hasScroll()&&(e=parseFloat($.css(this.activeMenu[0],"borderTopWidth"))||0,i=parseFloat($.css(this.activeMenu[0],"paddingTop"))||0,e=t.offset().top-this.activeMenu.offset().top-e-i,i=this.activeMenu.scrollTop(),s=this.activeMenu.height(),t=t.outerHeight(),e<0?this.activeMenu.scrollTop(i+e):s<e+t&&this.activeMenu.scrollTop(i+e-s+t))},blur:function(t,e){e||clearTimeout(this.timer),this.active&&(this._removeClass(this.active.children(".ui-menu-item-wrapper"),null,"ui-state-active"),this._trigger("blur",t,{item:this.active}),this.active=null)},_startOpening:function(t){clearTimeout(this.timer),"true"===t.attr("aria-hidden")&&(this.timer=this._delay(function(){this._close(),this._open(t)},this.delay))},_open:function(t){var e=$.extend({of:this.active},this.options.position);clearTimeout(this.timer),this.element.find(".ui-menu").not(t.parents(".ui-menu")).hide().attr("aria-hidden","true"),t.show().removeAttr("aria-hidden").attr("aria-expanded","true").position(e)},collapseAll:function(e,i){clearTimeout(this.timer),this.timer=this._delay(function(){var t=i?this.element:$(e&&e.target).closest(this.element.find(".ui-menu"));t.length||(t=this.element),this._close(t),this.blur(e),this._removeClass(t.find(".ui-state-active"),null,"ui-state-active"),this.activeMenu=t},i?0:this.delay)},_close:function(t){(t=t||(this.active?this.active.parent():this.element)).find(".ui-menu").hide().attr("aria-hidden","true").attr("aria-expanded","fal
1se")},_closeOnDocumentClick:function(t){return!$(t.target).closest(".ui-menu").length},_isDivider:function(t){return!/[^\-\u2014\u2013\s]/.test(t.text())},collapse:function(t){var e=this.active&&this.active.parent().closest(".ui-menu-item",this.element);e&&e.length&&(this._close(),this.focus(t,e))},expand:function(t){var e=this.active&&this._menuItems(this.active.children(".ui-menu")).first();e&&e.length&&(this._open(e.parent()),this._delay(function(){this.focus(t,e)}))},next:function(t){this._move("next","first",t)},previous:function(t){this._move("prev","last",t)},isFirstItem:function(){return this.active&&!this.active.prevAll(".ui-menu-item").length},isLastItem:function(){return this.active&&!this.active.nextAll(".ui-menu-item").length},_menuItems:function(t){return(t||this.element).find(this.options.items).filter(".ui-menu-item")},_move:function(t,e,i){var s;(s=this.active?"first"===t||"last"===t?this.active["first"===t?"prevAll":"nextAll"](".ui-menu-item").last():this.active[t+"All"](".ui-menu-item").first():s)&&s.length&&this.active||(s=this._menuItems(this.activeMenu)[e]()),this.focus(i,s)},nextPage:function(t){var e,i,s;this.active?this.isLastItem()||(this._hasScroll()?(i=this.active.offset().top,s=this.element.innerHeight(),0===$.fn.jquery.indexOf("3.2.")&&(s+=this.element[0].offsetHeight-this.element.outerHeight()),this.active.nextAll(".ui-menu-item").each(function(){return(e=$(this)).offset().top-i-s<0}),this.focus(t,e)):this.focus(t,this._menuItems(this.activeMenu)[this.active?"last":"first"]())):this.next(t)},previousPage:function(t){var e,i,s;this.active?this.isFirstItem()||(this._hasScroll()?(i=this.active.offset().top,s=this.element.innerHeight(),0===$.fn.jquery.indexOf("3.2.")&&(s+=this.element[0].offsetHeight-this.element.outerHeight()),this.active.prevAll(".ui-menu-item").each(function(){return 0<(e=$(this)).offset().top-i+s}),this.focus(t,e)):this.focus(t,this._menuItems(this.activeMenu).first())):this.next(t)},_hasScroll:function(){return this.element.outerHeight()<this.element.prop("scrollHeight")},select:function(t){this.active=this.active||$(t.target).closest(".ui-menu-item");var e={item:this.active};this.active.has(".ui-menu").length||this.collapseAll(t,!0),this._trigger("select",t,e)},_filterMenuItems:function(t){var t=t.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&"),e=new RegExp("^"+t,"i");return this.activeMenu.find(this.options.items).filter(".ui-menu-item").filter(function(){return e.test(String.prototype.trim.call($(this).children(".ui-menu-item-wrapper").text()))})}}),$.widget("ui.autocomplete",{version:"1.14.1",defaultElement:"<input>",options:{appendTo:null,autoFocus:!1,delay:300,minLength:1,position:{my:"left top",at:"left bottom",collision:"none"},source:null,change:null,close:null,focus:null,open:null,response:null,search:null,select:null},requestIndex:0,pending:0,liveRegionTimer:null,_create:function(){var i,s,n,t="textarea"===(e=this.element[0].nodeName.toLowerCase()),e="input"===e;this.isMultiLine=t||!e&&"true"===this.element.prop("contentEditable"),this.valueMethod=this.element[t||e?"val":"text"],this.isNewMenu=!0,this._addClass("ui-autocomplete-input"),this.element.attr("autocomplete","off"),this._on(this.element,{keydown:function(t){if(this.element.prop("readOnly"))s=n=i=!0;else{s=n=i=!1;var e=$.ui.keyCode;switch(t.keyCode){case e.PAGE_UP:i=!0,this._move("previousPage",t);break;case e.PAGE_DOWN:i=!0,this._move("nextPage",t);break;case e.UP:i=!0,this._keyEvent("previous",t);break;case e.DOWN:i=!0,this._keyEvent("next",t);break;case e.ENTER:this.menu.active&&(i=!0,t.preventDefault(),this.menu.select(t));break;case e.TAB:this.menu.active&&this.menu.select(t);break;case e.ESCAPE:this.menu.element.is(":visible")&&(this.isMultiLine||this._value(this.term),this.close(t),t.preventDefault());break;default:s=!0,this._searchTimeout(t)}}},keypress:function(t){if(i)i=!1,this.isMultiLine&&!this.menu.element.is(":visible")||t.preventDefault();else if(!s){var e=$.ui.keyCode;switch(t.keyCode){case e.PAGE_UP:this._move("previousPage",t);break;case e.PAGE_DOWN:this._move("nextPage",t);break;case e.UP:this._keyEvent("previous",t);break;case e.DOWN:this._keyEvent("next",t)}}},input:function(t){n?(n=!1,t.preventDefault()):this._searchTimeout(t)},focus:function(){this.selectedItem=null,this.previous=this._value(
vendor: 7,055 bytes, line 1
1)},blur:function(t){clearTimeout(this.searching),this.close(t),this._change(t)}}),this._initSource(),this.menu=$("<ul>").appendTo(this._appendTo()).menu({role:null}).hide().menu("instance"),this._addClass(this.menu.element,"ui-autocomplete","ui-front"),this._on(this.menu.element,{mousedown:function(t){t.preventDefault()},menufocus:function(t,e){var i,s;this.isNewMenu&&(this.isNewMenu=!1,t.originalEvent)&&/^mouse/.test(t.originalEvent.type)?(this.menu.blur(),this.document.one("mousemove",function(){$(t.target).trigger(t.originalEvent)})):(s=e.item.data("ui-autocomplete-item"),!1!==this._trigger("focus",t,{item:s})&&t.originalEvent&&/^key/.test(t.originalEvent.type)&&this._value(s.value),(i=e.item.attr("aria-label")||s.value)&&String.prototype.trim.call(i).length&&(clearTimeout(this.liveRegionTimer),this.liveRegionTimer=this._delay(function(){this.liveRegion.html($("<div>").text(i))},100)))},menuselect:function(t,e){var e=e.item.data("ui-autocomplete-item"),i=this.previous;this.element[0]!==this.document[0].activeElement&&(this.element.trigger("focus"),this.previous=i),!1!==this._trigger("select",t,{item:e})&&this._value(e.value),this.term=this._value(),this.close(t),this.selectedItem=e}}),this.liveRegion=$("<div>",{role:"status","aria-live":"assertive","aria-relevant":"additions"}).appendTo(this.document[0].body),this._addClass(this.liveRegion,null,"ui-helper-hidden-accessible"),this._on(this.window,{beforeunload:function(){this.element.removeAttr("autocomplete")}})},_destroy:function(){clearTimeout(this.searching),this.element.removeAttr("autocomplete"),this.menu.element.remove(),this.liveRegion.remove()},_setOption:function(t,e){this._super(t,e),"source"===t&&this._initSource(),"appendTo"===t&&this.menu.element.appendTo(this._appendTo()),"disabled"===t&&e&&this.xhr&&this.xhr.abort()},_isEventTargetInWidget:function(t){var e=this.menu.element[0];return t.target===this.element[0]||t.target===e||$.contains(e,t.target)},_closeOnClickOutside:function(t){this._isEventTargetInWidget(t)||this.close()},_appendTo:function(){var t=this.options.appendTo;return(t=(t=t&&(t.jquery||t.nodeType?$(t):this.document.find(t).eq(0)))&&t[0]?t:this.element.closest(".ui-front, dialog")).length?t:this.document[0].body},_initSource:function(){var i,s,n=this;Array.isArray(this.options.source)?(i=this.options.source,this.source=function(t,e){e($.ui.autocomplete.filter(i,t.term))}):"string"==typeof this.options.source?(s=this.options.source,this.source=function(t,e){n.xhr&&n.xhr.abort(),n.xhr=$.ajax({url:s,data:t,dataType:"json",success:function(t){e(t)},error:function(){e([])}})}):this.source=this.options.source},_searchTimeout:function(s){clearTimeout(this.searching),this.searching=this._delay(function(){var t=this.term===this._value(),e=this.menu.element.is(":visible"),i=s.altKey||s.ctrlKey||s.metaKey||s.shiftKey;t&&(e||i)||(this.selectedItem=null,this.search(null,s))},this.options.delay)},search:function(t,e){return t=null!=t?t:this._value(),this.term=this._value(),t.length<this.options.minLength?this.close(e):!1!==this._trigger("search",e)?this._search(t):void 0},_search:function(t){this.pending++,this._addClass("ui-autocomplete-loading"),this.cancelSearch=!1,this.source({term:t},this._response())},_response:function(){var e=++this.requestIndex;return function(t){e===this.requestIndex&&this.__response(t),this.pending--,this.pending||this._removeClass("ui-autocomplete-loading")}.bind(this)},__response:function(t){t=t&&this._normalize(t),this._trigger("response",null,{content:t}),!this.options.disabled&&t&&t.length&&!this.cancelSearch?(this._suggest(t),this._trigger("open")):this._close()},close:function(t){this.cancelSearch=!0,this._close(t)},_close:function(t){this._off(this.document,"mousedown"),this.menu.element.is(":visible")&&(this.menu.element.hide(),this.menu.blur(),this.isNewMenu=!0,this._trigger("close",t))},_change:function(t){this.previous!==this._value()&&this._trigger("change",t,{item:this.selectedItem})},_normalize:function(t){return t.length&&t[0].label&&t[0].value?t:$.map(t,function(t){return"string"==typeof t?{label:t,value:t}:$.extend({},t,{label:t.label||t.value,value:t.value||t.label})})},_suggest:function(t){var e=this.menu.element.empty();this._renderMenu(e,t),this.isNewMenu=!0,this.menu.refresh(),e.show(),this._resizeMenu(),e.position($.extend({of:this.element},this.options.position)),this.options.autoFocus&&this.menu.next(),this._on(this.document,{mousedown:"_closeOnClickOutside"})},_resizeMenu:function(){var t=this.menu.element;t.outerWidth(Math.max(t.width("").outerWidth()+1,this.element.outerWidth()))},_renderMenu:function(i,t){var s=this;$.each(t,function(t,e){s._renderItemData(i,e)})},_renderItemData:function(t,e){return this._renderItem(t,e).data("ui-autocomplete-item",e)},_renderItem:function(t,e){return $("<li>").append($("<div>").text(e.label)).appendTo(t)},_move:function(t,e){this.menu.element.is(":visible")?this.menu.isFirstItem()&&/^previous/.test(t)||this.menu.isLastItem()&&/^next/.test(t)?(this.isMultiLine||this._value(this.term),this.menu.blur()):this.menu[t](e):this.search(null,e)},widget:function(){return this.menu.element},_value:function(){return this.valueMethod.apply(this.element,arguments)},_keyEvent:function(t,e){this.isMultiLine&&!this.menu.element.is(":visible")||(this._move(t,e),e.preventDefault())}}),$.extend($.ui.autocomplete,{escapeRegex:function(t){return t.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")},filter:function(t,e){var i=new RegExp($.ui.autocomplete.escapeRegex(e),"i");return $.grep(t,function(t){return i.test(t.label||t.value||t)})}}),$.widget("ui.autocomplete",$.ui.autocomplete,{options:{messages:{noResults:"No search results.",results:function(t){return t+(1<t?" results are":" result is")+" available, use up and down arrow keys to navigate."}}},__response:function(t){var e;this._superApply(arguments),this.options.disabled||this.cancelSearch||(e=t&&t.length?this.options.messages.results(t.length):this.options.messages.noResults,clearTimeout(this.liveRegionTimer),this.liveRegionTimer=this._delay(function(){this.liveRegion.html($("<div>").text(e))},100))}}),$.ui.autocomplete,/ui-corner-([a-z]){2,6}/g);function nt(){this._curInst=null,this._keyEvent=!1,this._disabledInputs=[],this._datepickerShowing=!1,this._inDialog=!1,this._mainDivId="ui-datepicker-div",this._inlineClass="ui-datepicker-inline",this._appendClass="ui-datepicker-append",this._triggerClass="ui-datepicker-trigger",this._dialogClass="ui-datepicker-dialog",this._disableClass="ui-datepicker-disabled",this._unselectableClass="ui-datepicker-unselectable",this._currentClass="ui-datepicker-current-day",this._dayOverClass="ui-datepicker-days-cell-over",this.regional=[],this.regional[""]={closeText:"Done",prevText:"Prev",nextText:"Next",currentText:"Today",monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Frid
1ay","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],weekHeader:"Wk",dateFormat:"mm/dd/yy",firstDay:0,isRTL:!1,showMonthAfterYear:!1,yearSuffix:"",selectMonthLabel:"Select month",selectYearLabel:"Select year"},this._defaults={showOn:"focus",showAnim:"fadeIn",showOptions:{},defaultDate:null,appendText:"",buttonText:"...",buttonImage:"",buttonImageOnly:!1,hideIfNoPrevNext:!1,navigationAsDateFormat:!1,gotoCurrent:!1,changeMonth:!1,changeYear:!1,yearRange:"c-10:c+10",showOtherMonths:!1,selectOtherMonths:!1,showWeek:!1,calculateWeek:this.iso8601Week,shortYearCutoff:"+10",minDate:null,maxDate:null,duration:"fast",beforeShowDay:null,beforeShow:null,onSelect:null,onChangeMonthYear:null,onClose:null,onUpdateDatepicker:null,numberOfMonths:1,showCurrentAtPos:0,stepMonths:1,stepBigMonths:12,altField:"",altFormat:"",constrainInput:!0,showButtonPanel:!1,autoSize:!1,disabled:!1},$.extend(this._defaults,this.regional[""]),this.regional.en=$.extend(!0,{},this.regional[""]),this.regional["en-US"]=$.extend(!0,{},this.regional.en),this.dpDiv=rt($("<div id='"+this._mainDivId+"' class='ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all'></div>"))}function rt(t){var e="button, .ui-datepicker-prev, .ui-datepicker-next, .ui-datepicker-calendar td a";return t.on("mouseout",e,function(){$(this).removeClass("ui-state-hover"),-1!==this.className.indexOf("ui-datepicker-prev")&&$(this).removeClass("ui-datepicker-prev-hover"),-1!==this.className.indexOf("ui-datepicker-next")&&$(this).removeClass("ui-datepicker-next-hover")}).on("mouseover",e,at)}function at(){$.datepicker._isDisabledDatepicker((A.inline?A.dpDiv.parent():A.input)[0])||($(this).parents(".ui-datepicker-calendar").find("a").removeClass("ui-state-hover"),$(this).addClass("ui-state-hover"),-1!==this.className.indexOf("ui-datepicker-prev")&&$(this).addClass("ui-datepicker-prev-hover"),-1!==this.className.indexOf("ui-datepicker-next")&&$(this).addClass("ui-datepicker-next-hover"))}function M(t,e){for(var i in $.extend(t,e),e)null==e[i]&&(t[i]=e[i])}$.widget("ui.controlgroup",{version:"1.14.1",defaultElement:"<div>",options:{direction:"horizontal",disabled:null,onlyVisible:!0,items:{button:"input[type=button], input[type=submit], input[type=reset], button, a",controlgroupLabel:".ui-controlgroup-label",checkboxradio:"input[type='checkbox'], input[type='radio']",selectmenu:"select",spinner:".ui-spinner-input"}},_create:function(){this._enhance()},_enhance:function(){this.element.attr("role","toolbar"),this.refresh()},_destroy:function(){this._callChildMethod("destroy"),this.childWidgets.removeData("ui-controlgroup-data"),this.element.removeAttr("role"),this.options.items.controlgroupLabel&&this.element.find(this.options.items.controlgroupLabel).find(".ui-controlgroup-label-contents").contents().unwrap()},_initWidgets:function(){var r=this,a=[];$.each(this.options.items,function(s,t){var e,n;t&&("controlgroupLabel"===s?((e=r.element.find(t)).each(function(){var t=$(this);t.children(".ui-controlgroup-label-contents").length||t.contents().wrapAll("<span class='ui-controlgroup-label-contents'></span>")}),r._addClass(e,null,"ui-widget ui-widget-content ui-state-default"),a=a.concat(e.get())):$.fn[s]&&(n=r["_"+s+"Options"]?r["_"+s+"Options"]("middle"):{classes:{}},r.element.find(t).each(function(){var t=$(this),e=t[s]("instance"),i=$.widget.extend({},n);"button"===s&&t.parent(".ui-spinner").length||((e=e||t[s]()[s]("instance"))&&(i.classes=r._resolveClassesValues(i.classes,e)),t[s](i),i=t[s]("widget"),$.data(i[0],"ui-controlgroup-data",e||t[s]("instance")),a.push(i[0]))})))}),this.childWidgets=$($.uniqueSort(a)),this._addClass(this.childWidgets,"ui-controlgroup-item")},_callChildMethod:function(e){this.childWidgets.each(function(){var t=$(this).data("ui-controlgroup-data");t&&t[e]&&t[e]()})},_updateCornerClass:function(t,e){e=this._buildSimpleOptions(e,"label").classes.label,this._removeClass(t,null,"ui-corner-top ui-corner-bottom ui-corner-left ui-corner-right ui-corner-all"),this._addClass(t,null,e)},_buildSimpleOptions:function(t,e){var i="vertical"===this.options.direction,s={classes:{}};return s.classes[e]={middle:"",first:"ui-corner-"+(i?"top":"left"),last:"ui-corner-"+(i?"bottom":"right"),only:"ui-corner-all"}[t],s},_spinnerOptions:function(t){return(t=this._buildSimpleOptions(t,"ui-spinner")).classes["ui-spinner-up"]="",t.classes["ui-spinner-down"]="",t},_buttonOptions:function(t){return this._buildSimpleOptions(t,"ui-button")},_checkboxradioOptions:function(t){return this._buildSimpleOptions(t,"ui-checkboxradio-label")},_selectmenuOptions:function(t){var e="vertical"===this.options.direction;return{width:e&&"auto",classes:{middle:{"ui-selectmenu-button-open":"","ui-selectmenu-button-closed":""},first:{"ui-selectmenu-button-open":"ui-corner-"+(e?"top":"tl"),"ui-selectmenu-button-closed":"ui-corner-"+(e?"top":"left")},last:{"ui-selectmenu-button-open":e?"":"ui-corner-tr","ui-selectmenu-button-closed":"ui-corner-"+(e?"bottom":"right")},only:{"ui-selectmenu-button-open":"ui-corner-top","ui-selectmenu-button-closed":"ui-corner-all"}}[t]}},_resolveClassesValues:function(i,s){var n={};return $.each(i,function(t){var e=s.options.classes[t]||"",e=String.prototype.trim.call(e.replace(st,""));n[t]=(e+" "+i[t]).replace(/\s+/g," ")}),n},_setOption:function(t,e){"direction"===t&&this._removeClass("ui-controlgroup-"+this.options.direction),this._super(t,e),"disabled"===t?this._callChildMethod(e?"disable":"enable"):this.refresh()},refresh:function(){var n,r=this;this._addClass("ui-controlgroup ui-controlgroup-"+this.options.direction),"horizontal"===this.options.direction&&this._addClass(null,"ui-helper-clearfix"),this._initWidgets(),n=this.childWidgets,(n=this.options.onlyVisible?n.filter(":visible"):n).length&&($.each(["first","last"],function(t,e){var i,s=n[e]().data("ui-controlgroup-data");s&&r["_"+s.widgetName+"Options"]?((i=r["_"+s.widgetName+"Options"](1===n.length?"only":e)).classes=r._resolveClassesValues(i.classes,s),s.element[s.widgetName](i)):r._updateCornerClass(n[e](),e)}),this._callChildMethod("refresh"))}}),$.widget("ui.checkboxradio",[$.ui.formResetMixin,{version:"1.14.1",options:{disabled:null,label:null,icon:!0,classes:{"ui-checkboxradio-label":"ui-corner-all","ui-checkboxradio-icon":"ui-corner-all"}},_getCreateOptions:function(){var t,e=this._super()||{};return this._readType(),t=this.element.labels(),this.label=$(t[t.length-1]),this.label.length||$.error("No label found for checkboxradio widget"),this.originalLabel="",(t=this.label.contents().not(this.element[0])).length&&(this.originalLabel+=t.clone().wrapAll("<div></div>").parent().html()),this.originalLabel&&(e.label=this.originalLabel),null!=(t=this.element[0].disabled)&&(e.disabled=t),e},_create:function(){var t=this.element[0].checked;this._bindFormResetHandler(),null==this.options.disabled&&(this.options.disabled=this.element[0].disabled),this._setOption("disabled",this.options.disabled),this._addClass("ui-checkboxradio","ui-helper-hidden-accessible"),this._addClass(this.label,"ui-checkboxradio-label","ui-button ui-widget"),"radio"===this.type&&this._addClass(this.label,"ui-checkboxradio-radio-label"),this.options.label&&this.options.label!==this.originalLabel?this._updateLabel():this.originalLabel&&(this.options.label=this.originalLabel),this._enhance(),t&&this._addClass(this.label,"ui-checkboxradio-checked","ui-state-active"),this._on({change:"_toggleClasses",focus:function(){this._addClass(this.label,null,"ui-state-focus ui-visual-focus")},blur:function(){this._removeClass(this.label,null,"ui-state-focus ui-visual-focus")}})},_readType:function(){var t=this.element[0].nodeName.toLowerCase();
vendor: 1,413 bytes, line 1
1this.type=this.element[0].type,"input"===t&&/radio|checkbox/.test(this.type)||$.error("Can't create checkboxradio on element.nodeName="+t+" and element.type="+this.type)},_enhance:function(){this._updateIcon(this.element[0].checked)},widget:function(){return this.label},_getRadioGroup:function(){var t=this.element[0].name,e="input[name='"+CSS.escape(t)+"']";return t?(this.form.length?$(this.form[0].elements).filter(e):$(e).filter(function(){return 0===$($(this).prop("form")).length})).not(this.element):$([])},_toggleClasses:function(){var t=this.element[0].checked;this._toggleClass(this.label,"ui-checkboxradio-checked","ui-state-active",t),this.options.icon&&"checkbox"===this.type&&this._toggleClass(this.icon,null,"ui-icon-check ui-state-checked",t)._toggleClass(this.icon,null,"ui-icon-blank",!t),"radio"===this.type&&this._getRadioGroup().each(function(){var t=$(this).checkboxradio("instance");t&&t._removeClass(t.label,"ui-checkboxradio-checked","ui-state-active")})},_destroy:function(){this._unbindFormResetHandler(),this.icon&&(this.icon.remove(),this.iconSpace.remove())},_setOption:function(t,e){"label"===t&&!e||(this._super(t,e),"disabled"===t?(this._toggleClass(this.label,null,"ui-state-disabled",e),this.element[0].disabled=e):this.refresh())},_updateIcon:function(t){var e="ui-icon ui-icon-background ";this.options.icon?(this.icon||(this.icon=$("<span>"),this.iconSpace=$("<span> </span>
1"),this._addClass(this.iconSpace,"ui-checkboxradio-icon-space")),"checkbox"===this.type?(e+=t?"ui-icon-check ui-state-checked":"ui-icon-blank",this._removeClass(this.icon,null,t?"ui-icon-blank":"ui-icon-check")):e+="ui-icon-blank",this._addClass(this.icon,"ui-checkboxradio-icon",e),t||this._removeClass(this.icon,null,"ui-icon-check ui-state-checked"),this.icon.prependTo(this.label).after(this.iconSpace)):void 0!==this.icon&&(this.icon.remove(),this.iconSpace.remove(),delete this.icon)},_updateLabel:function(){var t=this.label.contents().not(this.element[0]);this.icon&&(t=t.not(this.icon[0])),(t=this.iconSpace?t.not(this.iconSpace[0]):t).remove(),this.label.append(this.options.label)},refresh:function(){var t=this.element[0].checked,e=this.element[0].disabled;this._updateIcon(t),this._toggleClass(this.label,"ui-checkboxradio-checked","ui-state-active",t),null!==this.options.label&&this._updateLabel(),e!==this.options.disabled&&this._setOptions({disabled:e})}}]),$.ui.checkboxradio,$.widget("ui.button",{version:"1.14.1",defaultElement:"<button>",options:{classes:{"ui-button":"ui-corner-all"},disabled:null,icon:null,iconPosition:"beginning",label:null,showLabel:!0},_getCreateOptions:function(){var t,e=this._super()||{};return this.isInput=this.element.is("input"),null!=(t=this.element[0].disabled)&&(e.disabled=t),this.originalLabel=this.isInput?this.element.val():this.element.html(),this.originalLabel&&(e.label=this.originalLabel),e},_create:function(){!this.option.showLabel&!this.options.icon&&(this.options.showLabel=!0),null==this.options.disabled&&(this.options.disabled=this.element[0].disabled||!1),this.hasTitle=!!this.element.attr("title"),this.options.label&&this.options.label!==this.originalLabel&&(this.isInput?this.element.val(this.options.label):this.element.html(this.options.label)),this._addClass("ui-button","ui-widget"),this._setOption("disabled",this.options.disabled),this._enhance(),this.element.is("a")&&this._on({keyup:function(t){t.keyCode===$.ui.keyCode.SPACE&&(t.preventDefault(),this.element[0].click?this.element[0].click():this.element.trigger("click"))}})},_enhance:function(){this.element.is("button")||this.element.attr("role","button"),this.options.icon&&(this._updateIcon("icon",this.options.icon),this._updateTooltip())},_updateTooltip:function(){this.title=this.element.attr("title"),this.options.showLabel||this.title||this.element.attr("title",this.options.label)},_updateIcon:function(t,e){var i=(t="iconPosition"!==t)?this.options.iconPosition:e,s="top"===i||"bottom"===i;this.icon?t&&this._removeClass(this.icon,null,this.options.icon):(this.icon=$("<span>"),this._addClass(this.icon,"ui-button-icon","ui-icon"),this.options.showLabel||this._addClass("ui-button-icon-only")),t&&this._addClass(this.icon,null,e),this._attachIcon(i),s?(this._addClass(this.icon,null,"ui-widget-icon-block"),this.iconSpace&&this.iconSpace.remove()):(this.iconS
vendor: 67,294 bytes, line 1
1pace||(this.iconSpace=$("<span> </span>"),this._addClass(this.iconSpace,"ui-button-icon-space")),this._removeClass(this.icon,null,"ui-wiget-icon-block"),this._attachIconSpace(i))},_destroy:function(){this.element.removeAttr("role"),this.icon&&this.icon.remove(),this.iconSpace&&this.iconSpace.remove(),this.hasTitle||this.element.removeAttr("title")},_attachIconSpace:function(t){this.icon[/^(?:end|bottom)/.test(t)?"before":"after"](this.iconSpace)},_attachIcon:function(t){this.element[/^(?:end|bottom)/.test(t)?"append":"prepend"](this.icon)},_setOptions:function(t){var e=(void 0===t.showLabel?this.options:t).showLabel,i=(void 0===t.icon?this.options:t).icon;e||i||(t.showLabel=!0),this._super(t)},_setOption:function(t,e){"icon"===t&&(e?this._updateIcon(t,e):this.icon&&(this.icon.remove(),this.iconSpace)&&this.iconSpace.remove()),"iconPosition"===t&&this._updateIcon(t,e),"showLabel"===t&&(this._toggleClass("ui-button-icon-only",null,!e),this._updateTooltip()),"label"===t&&(this.isInput?this.element.val(e):(this.element.html(e),this.icon&&(this._attachIcon(this.options.iconPosition),this._attachIconSpace(this.options.iconPosition)))),this._super(t,e),"disabled"===t&&(this._toggleClass(null,"ui-state-disabled",e),this.element[0].disabled=e)&&this.element.trigger("blur")},refresh:function(){var t=this.element.is("input, button")?this.element[0].disabled:this.element.hasClass("ui-button-disabled");t!==this.options.disabled&&this._setOptions({disabled:t}),this._updateTooltip()}}),!0===$.uiBackCompat&&($.widget("ui.button",$.ui.button,{options:{text:!0,icons:{primary:null,secondary:null}},_create:function(){this.options.showLabel&&!this.options.text&&(this.options.showLabel=this.options.text),!this.options.showLabel&&this.options.text&&(this.options.text=this.options.showLabel),this.options.icon||!this.options.icons.primary&&!this.options.icons.secondary?this.options.icon&&(this.options.icons.primary=this.options.icon):this.options.icons.primary?this.options.icon=this.options.icons.primary:(this.options.icon=this.options.icons.secondary,this.options.iconPosition="end"),this._super()},_setOption:function(t,e){"text"===t?this._super("showLabel",e):("showLabel"===t&&(this.options.text=e),"icon"===t&&(this.options.icons.primary=e),"icons"===t&&(e.primary?(this._super("icon",e.primary),this._super("iconPosition","beginning")):e.secondary&&(this._super("icon",e.secondary),this._super("iconPosition","end"))),this._superApply(arguments))}}),$.fn.button=(et=$.fn.button,function(i){var t="string"==typeof i,s=Array.prototype.slice.call(arguments,1),n=this;return t?this.length||"instance"!==i?this.each(function(){var t,e=$(this).attr("type"),e=$.data(this,"ui-"+("checkbox"!==e&&"radio"!==e?"button":"checkboxradio"));return"instance"===i?(n=e,!1):e?"function"!=typeof e[i]||"_"===i.charAt(0)?$.error("no such method '"+i+"' for button widget instance"):(t=e[i].apply(e,s))!==e&&void 0!==t?(n=t&&t.jquery?n.pushStack(t.get()):t,!1):void 0:$.error("cannot call methods on button prior to initialization; attempted to call method '"+i+"'")}):n=void 0:(s.length&&(i=$.widget.extend.apply(null,[i].concat(s))),this.each(function(){var t=$(this).attr("type"),e=$.data(this,"ui-"+(t="checkbox"!==t&&"radio"!==t?"button":"checkboxradio"));e?(e.option(i||{}),e._init&&e._init()):"button"==t?et.call($(this),i):$(this).checkboxradio($.extend({icon:!1},i))})),n}),$.fn.buttonset=function(){return $.ui.controlgroup||$.error("Controlgroup widget missing"),"option"===arguments[0]&&"items"===arguments[1]&&arguments[2]?this.controlgroup.apply(this,[arguments[0],"items.button",arguments[2]]):"option"===arguments[0]&&"items"===arguments[1]?this.controlgroup.apply(this,[arguments[0],"items.button"]):("object"==typeof arguments[0]&&arguments[0].items&&(arguments[0].items={button:arguments[0].items}),this.controlgroup.apply(this,arguments))}),$.ui.button,$.extend($.ui,{datepicker:{version:"1.14.1"}}),$.extend(nt.prototype,{markerClassName:"hasDatepicker",maxRows:4,_widgetDatepicker:function(){return this.dpDiv},setDefaults:function(t){return M(this._defaults,t||{}),this},_attachDatepicker:function(t,e){var i,s=t.nodeName.toLowerCase(),n="div"===s||"span"===s;t.id||(this.uuid+=1,t.id="dp"+this.uuid),(i=this._newInst($(t),n)).settings=$.extend({},e||{}),"input"===s?this._connectDatepicker(t,i):n&&this._inlineDatepicker(t,i)},_newInst:function(t,e){return{id:t[0].id.replace(/([^A-Za-z0-9_\-])/g,"\\\\$1"),input:t,selectedDay:0,selectedMonth:0,selectedYear:0,drawMonth:0,drawYear:0,inline:e,dpDiv:e?rt($("<div class='"+this._inlineClass+" ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all'></div>")):this.dpDiv}},_connectDatepicker:function(t,e){var i=$(t);e.append=$([]),e.trigger=$([]),i.hasClass(this.markerClassName)||(this._attachments(i,e),i.addClass(this.markerClassName).on("keydown",this._doKeyDown).on("keypress",this._doKeyPress).on("keyup",this._doKeyUp),this._autoSize(e),$.data(t,"datepicker",e),e.settings.disabled&&this._disableDatepicker(t))},_attachments:function(t,e){var i,s=this._get(e,"appendText"),n=this._get(e,"isRTL");e.append&&e.append.remove(),s&&(e.append=$("<span>").addClass(this._appendClass).text(s),t[n?"before":"after"](e.append)),t.off("focus",this._showDatepicker),e.trigger&&e.trigger.remove(),"focus"!==(s=this._get(e,"showOn"))&&"both"!==s||t.on("focus",this._showDatepicker),"button"!==s&&"both"!==s||(s=this._get(e,"buttonText"),i=this._get(e,"buttonImage"),this._get(e,"buttonImageOnly")?e.trigger=$("<img>").addClass(this._triggerClass).attr({src:i,alt:s,title:s}):(e.trigger=$("<button type='button'>").addClass(this._triggerClass),i?e.trigger.html($("<img>").attr({src:i,alt:s,title:s})):e.trigger.text(s)),t[n?"before":"after"](e.trigger),e.trigger.on("click",function(){return $.datepicker._datepickerShowing&&$.datepicker._lastInput===t[0]?$.datepicker._hideDatepicker():($.datepicker._datepickerShowing&&$.datepicker._lastInput!==t[0]&&$.datepicker._hideDatepicker(),$.datepicker._showDatepicker(t[0])),!1}))},_autoSize:function(t){var e,i,s,n,r,a;this._get(t,"autoSize")&&!t.inline&&(r=new Date(2009,11,20),(a=this._get(t,"dateFormat")).match(/[DM]/)&&(r.setMonth((e=function(t){for(n=s=i=0;n<t.length;n++)t[n].length>i&&(i=t[n].length,s=n);return s})(this._get(t,a.match(/MM/)?"monthNames":"monthNamesShort"))),r.setDate(e(this._get(t,a.match(/DD/)?"dayNames":"dayNamesShort"))+20-r.getDay())),t.input.attr("size",this._formatDate(t,r).length))},_inlineDatepicker:function(t,e){var i=$(t);i.hasClass(this.markerClassName)||(i.addClass(this.markerClassName).append(e.dpDiv),$.data(t,"datepicker",e),this._setDate(e,this._getDefaultDate(e),!0),this._updateDatepicker(e),this._updateAlternate(e),e.settings.disabled&&this._disableDatepicker(t),e.dpDiv.css("display","block"))},_dialogDatepicker:function(t,e,i,s,n){var r,a=this._dialogInst;return a||(this.uuid+=1,r="dp"+this.uuid,this._dialogInput=$("<input type='text' id='"+r+"' style='position: absolute; top: -100px; width: 0px;'/>"),this._dialogInput.on("keydown",this._doKeyDown),$("body").append(this._dialogInput),(a=this._dialogInst=this._newInst(this._dialogInput,!1)).settings={},$.data(this._dialogInput[0],"datepicker",a)),M(a.settings,s||{}),e=e&&e.constructor===Date?this._formatDate(a,e):e,this._dialogInput.val(e),this._pos=n?n.length?n:[n.pageX,n.pageY]:null,this._pos||(r=document.documentElement.clientWidth,s=document.documentElement.clientHeight,e=document.documentElement.scrollLeft||document.body.scrollLeft,n=document.documentElement.scrollTop||document.body.scrollTop,this._pos=[r/2-100+e,s/2-150+n]),this._dialogInput.css("left",this._pos[0]+20+"px").css("top",this._pos[1]+"px"),a.settings.onSelect=i,this._inDialog=!0,this.dpDiv.addClass(this._dialogClass),this._showDatepicker(this._dialogInput[0]),$.blockUI&&$.blockUI(this.dpDiv),$.data(this._dialogInput[0],"datepicker",a),this},_destroyDatepicker:function(t){var e,i=$(t),s=$.data(t,"datepicker");i.hasClass(this.markerClassName)&&(e=t.nodeName.toLowerCase(),$.removeData(t,"datepicker"),"input"===e?(s.append.remove(),s.trigger.remove(),i.removeClass(this.markerClassName).off("focus",this._showDatepicker).off("keydown",this._doKeyDown).off("keypress",this._doKeyPress).off("keyup",this._doKeyUp)):"div"!==e&&"span"!==e||i.removeClass(this.markerClassName).empty(),$.datepicker._hideDatepicker(),A===s)&&(A=null,this._curInst=null)},_enableDatepicker:function(e){var t,i=$(e),s=$.data(e,"datepicker");i.hasClass(this.markerClassName)&&("input"===(t=e.nodeName.toLowerCase())?(e.disabled=!1,s.trigger.filter("button").each(function(){this.disabled=!1}).end().filter("img").css({opacity:"1.0",cursor:""})):"div"!==t&&"span"!==t||((s=i.children("."+this._inlineClass)).children().removeClass("ui-state-disabled"),s.find("select.ui-datepicker-month, select.ui-datepicker-year").prop("disabled",!1)),this._disabledInputs=$.map(this._disabledInputs,function(t){return t===e?null:t}))},_disableDatepicker:function(e){var t,i=$(e),s=$.data(e,"datepicker");i.hasClass(this.markerClassName)&&("input"===(t=e.nodeName.toLowerCase())?(e.disabled=!0,s.trigger.filter("button").each(function(){this.disabled=!0}).end().filter("img").css({opacity:"0.5",cursor:"default"})):"div"!==t&&"span"!==t||((s=i.children("."+this._inlineClass)).children().addClass("ui-state-disabled"),s.find("select.ui-datepicker-month, select.ui-datepicker-year").prop("disabled",!0)),this._disabledInputs=$.map(this._disabledInputs,function(t){return t===e?null:t}),this._disabledInputs[this._disabledInputs.length]=e)},_isDisabledDatepicker:function(t){if(t)for(var e=0;e<this._disabledInputs.length;e++)if(this._disabledInputs[e]===t)return!0;return!1},_getInst:function(t){try{return $.data(t,"datepicker")}catch(t){throw"Missing instance data for this datepicker"}},_optionDatepicker:function(t,e,i){var s,n,r=this._getInst(t);if(2===arguments.length&&"string"==typeof e)return"defaults"===e?$.extend({},$.datepicker._defaults):r?"all"===e?$.extend({},r.settings):this._get(r,e):null;s=e||{},"string"==typeof e&&((s={})[e]=i),r&&(this._curInst===r&&this._hideDatepicker(),e=this._getDateDatepicker(t,!0),i=this._getMinMaxDate(r,"min"),n=this._getMinMaxDate(r,"max"),M(r.settings,s),null!==i&&void 0!==s.dateFormat&&void 0===s.minDate&&(r.settings.minDate=this._formatDate(r,i)),null!==n&&void 0!==s.dateFormat&&void 0===s.maxDate&&(r.settings.maxDate=this._formatDate(r,n)),"disabled"in s&&(s.disabled?this._disableDatepicker(t):this._enableDatepicker(t)),this._attachments($(t),r),this._autoSize(r),this._setDate(r,e),this._updateAlternate(r),this._updateDatepicker(r))},_changeDatepicker:function(t,e,i){this._optionDatepicker(t,e,i)},_refreshDatepicker:function(t){(t=this._getInst(t))&&this._updateDatepicker(t)},_setDateDatepicker:function(t,e){(t=this._getInst(t))&&(this._setDate(t,e),this._updateDatepicker(t),this._updateAlternate(t))},_getDateDatepicker:function(t,e){return(t=this._getInst(t))&&!t.inline&&this._setDateFromField(t,e),t?this._getDate(t):null},_doKeyDown:function(t){var e,i,s=$.datepicker._getInst(t.target),n=!0,r=s.dpDiv.is(".ui-datepicker-rtl");if(s._keyEvent=!0,$.datepicker._datepickerShowing)switch(t.keyCode){case 9:$.datepicker._hideDatepicker(),n=!1;break;case 13:return(i=$("td."+$.datepicker._dayOverClass+":not(."+$.datepicker._currentClass+")",s.dpDiv))[0]&&$.datepicker._selectDay(t.target,s.selectedMonth,s.selectedYear,i[0]),(i=$.datepicker._get(s,"onSelect"))?(e=$.datepicker._formatDate(s),i.apply(s.input?s.input[0]:null,[e,s])):$.datepicker._hideDatepicker(),!1;case 27:$.datepicker._hideDatepicker();break;case 33:$.datepicker._adjustDate(t.target,t.ctrlKey?-$.datepicker._get(s,"stepBigMonths"):-$.datepicker._get(s,"stepMonths"),"M");break;case 34:$.datepicker._adjustDate(t.target,t.ctrlKey?+$.datepicker._get(s,"stepBigMonths"):+$.datepicker._get(s,"stepMonths"),"M");break;case 35:(t.ctrlKey||t.metaKey)&&$.datepicker._clearDate(t.target),n=t.ctrlKey||t.metaKey;break;case 36:(t.ctrlKey||t.metaKey)&&$.datepicker._gotoToday(t.target),n=t.ctrlKey||t.metaKey;break;case 37:(t.ctrlKey||t.metaKey)&&$.datepicker._adjustDate(t.target,r?1:-1,"D"),n=t.ctrlKey||t.metaKey,t.originalEvent.altKey&&$.datepicker._adjustDate(t.target,t.ctrlKey?-$.datepicker._get(s,"stepBigMonths"):-$.datepicker._get(s,"stepMonths"),"M");break;case 38:(t.ctrlKey||t.metaKey)&&$.datepicker._adjustDate(t.target,-7,"D"),n=t.ctrlKey||t.metaKey;break;case 39:(t.ctrlKey||t.metaKey)&&$.datepicker._adjustDate(t.target,r?-1:1,"D"),n=t.ctrlKey||t.metaKey,t.originalEvent.altKey&&$.datepicker._adjustDate(t.target,t.ctrlKey?+$.datepicker._get(s,"stepBigMonths"):+$.datepicker._get(s,"stepMonths"),"M");break;case 40:(t.ctrlKey||t.metaKey)&&$.datepicker._adjustDate(t.target,7,"D"),n=t.ctrlKey||t.metaKey;break;default:n=!1}else 36===t.keyCode&&t.ctrlKey?$.datepicker._showDatepicker(this):n=!1;n&&(t.preventDefault(),t.stopPropagation())},_doKeyPress:function(t){var e,i=$.datepicker._getInst(t.target);if($.datepicker._get(i,"constrainInput"))return i=$.datepicker._possibleChars($.datepicker._get(i,"dateFormat")),e=String.fromCharCode(null==t.charCode?t.keyCode:t.charCode),t.ctrlKey||t.metaKey||e<" "||!i||-1<i.indexOf(e)},_doKeyUp:function(t){if((t=$.datepicker._getInst(t.target)).input.val()!==t.lastVal)try{$.datepicker.parseDate($.datepicker._get(t,"dateFormat"),t.input?t.input.val():null,$.datepicker._getFormatConfig(t))&&($.datepicker._setDateFromField(t),$.datepicker._updateAlternate(t),$.datepicker._updateDatepicker(t))}catch(t){}return!0},_showDatepicker:function(t){var e,i,s,n;"input"!==(t=t.target||t).nodeName.toLowerCase()&&(t=$("input",t.parentNode)[0]),$.datepicker._isDisabledDatepicker(t)||$.datepicker._lastInput===t||(n=$.datepicker._getInst(t),$.datepicker._curInst&&$.datepicker._curInst!==n&&($.datepicker._curInst.dpDiv.stop(!0,!0),n)&&$.datepicker._datepickerShowing&&$.datepicker._hideDatepicker($.datepicker._curInst.input[0]),!1===(i=(i=$.datepicker._get(n,"beforeShow"))?i.apply(t,[t,n]):{}))||(M(n.settings,i),n.lastVal=null,$.datepicker._lastInput=t,$.datepicker._setDateFromField(n),$.datepicker._inDialog&&(t.value=""),$.datepicker._pos||($.datepicker._pos=$.datepicker._findPos(t),$.datepicker._pos[1]+=t.offsetHeight),e=!1,$(t).parents().each(function(){return!(e|="fixed"===$(this).css("position"))}),i={left:$.datepicker._pos[0],top:$.datepicker._pos[1]},$.datepicker._pos=null,n.dpDiv.empty(),n.dpDiv.css({position:"absolute",display:"block",top:"-1000px"}),$.datepicker._updateDatepicker(n),i=$.datepicker._checkOffset(n,i,e),n.dpDiv.css({position:$.datepicker._inDialog&&$.blockUI?"static":e?"fixed":"absolute",display:"none",left:i.left+"px",top:i.top+"px"}),n.inline)||(i=$.datepicker._get(n,"showAnim"),s=$.datepicker._get(n,"duration"),n.dpDiv.css("z-index",(t=>{for(var e;t.length&&t[0]!==document;){if(("absolute"===(e=t.css("position"))||"relative"===e||"fixed"===e)&&(e=parseInt(t.css("zIndex"),10),!isNaN(e))&&0!==e)return e;t=t.parent()}return 0})($(t))+1),$.datepicker._datepickerShowing=!0,$.effects&&$.effects.effect[i]?n.dpDiv.show(i,$.datepicker._get(n,"showOptions"),s):n.dpDiv[i||"show"](i?s:null),$.datepicker._shouldFocusInput(n)&&n.input.trigger("focus"),$.datepicker._curInst=n)},_updateDatepicker:function(t){this.maxRows=4,(A=t).dpDiv.empty().append(this._generateHTML(t)),this._attachHandlers(t);var e,i=this._getNumberOfMonths(t),s=i[1],n=t.dpDiv.find("."+this._dayOverClass+" a"),r=$.datepicker._get(t,"onUpdateDatepicker");0<n.length&&at.apply(n.get(0)),t.dpDiv.removeClass("ui-datepicker-multi-2 ui-datepicker-multi-3 ui-datepicker-multi-4").width(""),1<s&&t.dpDiv.addClass("ui-datepicker-multi-"+s).css("width",17*s+"em"),t.dpDiv[(1!==i[0]||1!==i[1]?"add":"remove")+"Class"]("ui-datepicker-multi"),t.dpDiv[(this._get(t,"isRTL")?"add":"remove")+"Class"]("ui-datepicker-rtl"),t===$.datepicker._curInst&&$.datepicker._datepickerShowing&&$.datepicker._shouldFocusInput(t)&&t.input.trigger("focus"),t.yearshtml&&(e=t.yearshtml,setTimeout(function(){e===t.yearshtml&&t.yearshtml&&t.dpDiv.find("select.ui-datepicker-year").first().replaceWith(t.yearshtml),e=t.yearshtml=null},0)),r&&r.apply(t.input?t.input[0]:null,[t])},_shouldFocusInput:function(t){return t.input&&t.input.is(":visible")&&!t.input.is(":disabled")},_checkOffset:function(t,e,i){var s=t.dpDiv.outerWidth(),n=t.dpDiv.outerHeight(),r=t.input?t.input.outerWidth():0,a=t.input?t.input.outerHeight():0,o=document.documentElement.clientWidth+(i?0:$(document).scrollLeft()),l=document.documentElement.clientHeight+(i?0:$(document).scrollTop());return e.left-=this._get(t,"isRTL")?s-r:0,e.left-=i&&e.left===t.input.offset().left?$(document).scrollLeft():0,e.top-=i&&e.top===t.input.offset().top+a?$(document).scrollTop():0,e.left-=Math.min(e.left,o<e.left+s&&s<o?Math.abs(e.left+s-o):0),e.top-=Math.min(e.top,l<e.top+n&&n<l?Math.abs(n+a):0),e},_findPos:function(t){for(var e=this._getInst(t),i=this._get(e,"isRTL");t&&("hidden"===t.type||1!==t.nodeType||$.expr.pseudos.hidden(t));)t=t[i?"previousSibling":"nextSibling"];return[(e=$(t).offset()).left,e.top]},_hideDatepicker:function(t){var e,i,s=this._curInst;!s||t&&s!==$.data(t,"datepicker")||this._datepickerShowing&&(t=this._get(s,"showAnim"),i=this._get(s,"duration"),e=function(){$.datepicker._tidyDialog(s)},$.effects&&$.effects.effect[t]?s.dpDiv.hide(t,$.datepicker._get(s,"showOptions"),i,e):s.dpDiv["slideDown"===t?"slideUp":"fadeIn"===t?"fadeOut":"hide"](t?i:null,e),t||e(),this._datepickerShowing=!1,(i=this._get(s,"onClose"))&&i.apply(s.input?s.input[0]:null,[s.input?s.input.val():"",s]),this._lastInput=null,this._inDialog&&(this._dialogInput.css({position:"absolute",left:"0",top:"-100px"}),$.blockUI)&&($.unblockUI(),$("body").append(this.dpDiv)),this._inDialog=!1)},_tidyDialog:function(t){t.dpDiv.removeClass(this._dialogClass).off(".ui-datepicker-calendar")},_checkExternalClick:function(t){var e;$.datepicker._curInst&&(t=$(t.target),e=$.datepicker._getInst(t[0]),!(t[0].id===$.datepicker._mainDivId||0!==t.parents("#"+$.datepicker._mainDivId).length||t.hasClass($.datepicker.markerClassName)||t.closest("."+$.datepicker._triggerClass).length||!$.datepicker._datepickerShowing||$.datepicker._inDialog&&$.blockUI)||t.hasClass($.datepicker.markerClassName)&&$.datepicker._curInst!==e)&&$.datepicker._hideDatepicker()},_adjustDate:function(t,e,i){var t=$(t),s=this._getInst(t[0]);this._isDisabledDatepicker(t[0])||(this._adjustInstDate(s,e,i),this._updateDatepicker(s))},_gotoToday:function(t){var e,t=$(t),i=this._getInst(t[0]);this._get(i,"gotoCurrent")&&i.currentDay?(i.selectedDay=i.currentDay,i.drawMonth=i.selectedMonth=i.currentMonth,i.drawYear=i.selectedYear=i.currentYear):(e=new Date,i.selectedDay=e.getDate(),i.drawMonth=i.selectedMonth=e.getMonth(),i.drawYear=i.selectedYear=e.getFullYear()),this._notifyChange(i),this._adjustDate(t)},_selectMonthYear:function(t,e,i){var t=$(t),s=this._getInst(t[0]);s["selected"+("M"===i?"Month":"Year")]=s["draw"+("M"===i?"Month":"Year")]=parseInt(e.options[e.selectedIndex].value,10),this._notifyChange(s),this._adjustDate(t)},_selectDay:function(t,e,i,s){var n=$(t);$(s).hasClass(this._unselectableClass)||this._isDisabledDatepicker(n[0])||((n=this._getInst(n[0])).selectedDay=n.currentDay=parseInt($("a",s).attr("data-date")),n.selectedMonth=n.currentMonth=e,n.selectedYear=n.currentYear=i,this._selectDate(t,this._formatDate(n,n.currentDay,n.currentMonth,n.currentYear)))},_clearDate:function(t){t=$(t),this._selectDate(t,"")},_selectDate:function(t,e){var i,t=$(t),t=this._getInst(t[0]);e=null!=e?e:this._formatDate(t),t.input&&t.input.val(e),this._updateAlternate(t),(i=this._get(t,"onSelect"))?i.apply(t.input?t.input[0]:null,[e,t]):t.input&&t.input.trigger("change"),t.inline?this._updateDatepicker(t):(this._hideDatepicker(),this._lastInput=t.input[0],"object"!=typeof t.input[0]&&t.input.trigger("focus"),this._lastInput=null)},_updateAlternate:function(t){var e,i,s=this._get(t,"altField");s&&(i=this._get(t,"altFormat")||this._get(t,"dateFormat"),e=this._getDate(t),i=this.formatDate(i,e,this._getFormatConfig(t)),$(document).find(s).val(i))},noWeekends:function(t){return[0<(t=t.getDay())&&t<6,""]},iso8601Week:function(t){var e;return(t=new Date(t.getTime())).setDate(t.getDate()+4-(t.getDay()||7)),e=t.getTime(),t.setMonth(0),t.setDate(1),Math.floor(Math.round((e-t)/864e5)/7)+1},parseDate:function(e,n,t){if(null==e||null==n)throw"Invalid arguments";if(""===(n="object"==typeof n?n.toString():n+""))return null;for(var i,s,r=0,a="string"!=typeof(a=(t?t.shortYearCutoff:null)||this._defaults.shortYearCutoff)?a:(new Date).getFullYear()%100+parseInt(a,10),o=(t?t.dayNamesShort:null)||this._defaults.dayNamesShort,l=(t?t.dayNames:null)||this._defaults.dayNames,h=(t?t.monthNamesShort:null)||this._defaults.monthNamesShort,c=(t?t.monthNames:null)||this._defaults.monthNames,p=-1,u=-1,d=-1,f=-1,m=!1,g=function(t){return(t=_+1<e.length&&e.charAt(_+1)===t)&&_++,t},y=function(t){var e=g(t),e="@"===t?14:"!"===t?20:"y"===t&&e?4:"o"===t?3:2,t=new RegExp("^\\d{"+("y"===t?e:1)+","+e+"}");if(e=n.substring(r).match(t))return r+=e[0].length,parseInt(e[0],10);throw"Missing number at position "+r},v=function(t,e,i){var s=-1,t=$.map(g(t)?i:e,function(t,e){return[[e,t]]}).sort(function(t,e){return-(t[1].length-e[1].length)});if($.each(t,function(t,e){var i=e[1];if(n.substr(r,i.length).toLowerCase()===i.toLowerCase())return s=e[0],r+=i.length,!1}),-1!==s)return s+1;throw"Unknown name at position "+r},b=function(){if(n.charAt(r)!==e.charAt(_))throw"Unexpected literal at position "+r;r++},_=0;_<e.length;_++)if(m)"'"!==e.charAt(_)||g("'")?b():m=!1;else switch(e.charAt(_)){case"d":d=y("d");break;case"D":v("D",o,l);break;case"o":f=y("o");break;case"m":u=y("m");break;case"M":u=v("M",h,c);break;case"y":p=y("y");break;case"@":p=(s=new Date(y("@"))).getFullYear(),u=s.getMonth()+1,d=s.getDate();break;case"!":p=(s=new Date((y("!")-this._ticksTo1970)/1e4)).getFullYear(),u=s.getMonth()+1,d=s.getDate();break;case"'":g("'")?b():m=!0;break;default:b()}if(r<n.length&&(t=n.substr(r),!/^\s+/.test(t)))throw"Extra/unparsed characters found in date: "+t;if(-1===p?p=(new Date).getFullYear():p<100&&(p+=(new Date).getFullYear()-(new Date).getFullYear()%100+(p<=a?0:-100)),-1<f)for(u=1,d=f;!(d<=(i=this._getDaysInMonth(p,u-1)));)u++,d-=i;if((s=this._daylightSavingAdjust(new Date(p,u-1,d))).getFullYear()!==p||s.getMonth()+1!==u||s.getDate()!==d)throw"Invalid date";return s},ATOM:"yy-mm-dd",COOKIE:"D, dd M yy",ISO_8601:"yy-mm-dd",RFC_822:"D, d M y",RFC_850:"DD, dd-M-y",RFC_1036:"D, d M y",RFC_1123:"D, d M yy",RFC_2822:"D, d M yy",RSS:"D, d M y",TICKS:"!",TIMESTAMP:"@",W3C:"yy-mm-dd",_ticksTo1970:24*(718685+Math.floor(492.5)-Math.floor(19.7)+Math.floor(4.925))*60*60*1e7,formatDate:function(e,t,i){if(!t)return"";function s(t,e,i){var s=""+e;if(c(t))for(;s.length<i;)s="0"+s;return s}function n(t,e,i,s){return(c(t)?s:i)[e]}var r,a=(i?i.dayNamesShort:null)||this._defaults.dayNamesShort,o=(i?i.dayNames:null)||this._defaults.dayNames,l=(i?i.monthNamesShort:null)||this._defaults.monthNamesShort,h=(i?i.monthNames:null)||this._defaults.monthNames,c=function(t){return(t=r+1<e.length&&e.charAt(r+1)===t)&&r++,t},p="",u=!1;if(t)for(r=0;r<e.length;r++)if(u)"'"!==e.charAt(r)||c("'")?p+=e.charAt(r):u=!1;else switch(e.charAt(r)){case"d":p+=s("d",t.getDate(),2);break;case"D":p+=n("D",t.getDay(),a,o);break;case"o":p+=s("o",Math.round((new Date(t.getFullYear(),t.getMonth(),t.getDate()).getTime()-new Date(t.getFullYear(),0,0).getTime())/864e5),3);break;case"m":p+=s("m",t.getMonth()+1,2);break;case"M":p+=n("M",t.getMonth(),l,h);break;case"y":p+=c("y")?t.getFullYear():(t.getFullYear()%100<10?"0":"")+t.getFullYear()%100;break;case"@":p+=t.getTime();break;case"!":p+=1e4*t.getTime()+this._ticksTo1970;break;case"'":c("'")?p+="'":u=!0;break;default:p+=e.charAt(r)}return p},_possibleChars:function(e){for(var t="",i=!1,s=function(t){return(t=n+1<e.length&&e.charAt(n+1)===t)&&n++,t},n=0;n<e.length;n++)if(i)"'"!==e.charAt(n)||s("'")?t+=e.charAt(n):i=!1;else switch(e.charAt(n)){case"d":case"m":case"y":case"@":t+="0123456789";break;case"D":case"M":return null;case"'":s("'")?t+="'":i=!0;break;default:t+=e.charAt(n)}return t},_get:function(t,e){return(void 0!==t.settings[e]?t.settings:this._defaults)[e]},_setDateFromField:function(t,e){if(t.input.val()!==t.lastVal){var i=this._get(t,"dateFormat"),s=t.lastVal=t.input?t.input.val():null,n=this._getDefaultDate(t),r=n,a=this._getFormatConfig(t);try{r=this.parseDate(i,s,a)||n}catch(t){s=e?"":s}t.selectedDay=r.getDate(),t.drawMonth=t.selectedMonth=r.getMonth(),t.drawYear=t.selectedYear=r.getFullYear(),t.currentDay=s?r.getDate():0,t.currentMonth=s?r.getMonth():0,t.currentYear=s?r.getFullYear():0,this._adjustInstDate(t)}},_getDefaultDate:function(t){return this._restrictMinMax(t,this._determineDate(t,this._get(t,"defaultDate"),new Date))},_determineDate:function(o,t,e){var i,s=null==t||""===t?e:"string"==typeof t?(t=>{try{return $.datepicker.parseDate($.datepicker._get(o,"dateFormat"),t,$.datepicker._getFormatConfig(o))}catch(t){}for(var e=(t.toLowerCase().match(/^c/)?$.datepicker._getDate(o):null)||new Date,i=e.getFullYear(),s=e.getMonth(),n=e.getDate(),r=/([+\-]?[0-9]+)\s*(d|D|w|W|m|M|y|Y)?/g,a=r.exec(t);a;){switch(a[2]||"d"){case"d":case"D":n+=parseInt(a[1],10);break;case"w":case"W":n+=7*parseInt(a[1],10);break;case"m":case"M":s+=parseInt(a[1],10),n=Math.min(n,$.datepicker._getDaysInMonth(i,s));break;case"y":case"Y":i+=parseInt(a[1],10),n=Math.min(n,$.datepicker._getDaysInMonth(i,s))}a=r.exec(t)}return new Date(i,s,n)})(t):"number"==typeof t?isNaN(t)?e:(s=t,(i=new Date).setDate(i.getDate()+s),i):new Date(t.getTime());return(s=s&&"Invalid Date"===s.toString()?e:s)&&(s.setHours(0),s.setMinutes(0),s.setSeconds(0),s.setMilliseconds(0)),this._daylightSavingAdjust(s)},_daylightSavingAdjust:function(t){return t?(t.setHours(12<t.getHours()?t.getHours()+2:0),t):null},_setDate:function(t,e,i){var s=!e,n=t.selectedMonth,r=t.selectedYear,e=this._restrictMinMax(t,this._determineDate(t,e,new Date));t.selectedDay=t.currentDay=e.getDate(),t.drawMonth=t.selectedMonth=t.currentMonth=e.getMonth(),t.drawYear=t.selectedYear=t.currentYear=e.getFullYear(),n===t.selectedMonth&&r===t.selectedYear||i||this._notifyChange(t),this._adjustInstDate(t),t.input&&t.input.val(s?"":this._formatDate(t))},_getDate:function(t){return!t.currentYear||t.input&&""===t.input.val()?null:this._daylightSavingAdjust(new Date(t.currentYear,t.currentMonth,t.currentDay))},_attachHandlers:function(t){var e=this._get(t,"stepMonths"),i="#"+t.id.replace(/\\\\/g,"\\");t.dpDiv.find("[data-handler]").map(function(){var t={prev:function(){$.datepicker._adjustDate(i,-e,"M")},next:function(){$.datepicker._adjustDate(i,+e,"M")},hide:function(){$.datepicker._hideDatepicker()},today:function(){$.datepicker._gotoToday(i)},selectDay:function(){return $.datepicker._selectDay(i,+this.getAttribute("data-month"),+this.getAttribute("data-year"),this),!1},selectMonth:function(){return $.datepicker._selectMonthYear(i,this,"M"),!1},selectYear:function(){return $.datepicker._selectMonthYear(i,this,"Y"),!1}};$(this).on(this.getAttribute("data-event"),t[this.getAttribute("data-handler")])})},_generateHTML:function(t){var e,i,s,n,r,O,V,B,N,a,o,z,l,h,c,p,u,d,f,m,g,y,H,v,b,q,_,W,j,x,C,S,w=new Date,G=this._daylightSavingAdjust(new Date(w.getFullYear(),w.getMonth(),w.getDate())),k=this._get(t,"isRTL"),w=this._get(t,"showButtonPanel"),E=this._get(t,"hideIfNoPrevNext"),P=this._get(t,"navigationAsDateFormat"),D=this._getNumberOfMonths(t),T=this._get(t,"showCurrentAtPos"),A=this._get(t,"stepMonths"),Y=1!==D[0]||1!==D[1],M=this._daylightSavingAdjust(t.currentDay?new Date(t.currentYear,t.currentMonth,t.currentDay):new Date(9999,9,9)),I=this._getMinMaxDate(t,"min"),F=this._getMinMaxDate(t,"max"),L=t.drawMonth-T,R=t.drawYear;if(L<0&&(L+=12,R--),F)for(e=this._daylightSavingAdjust(new Date(F.getFullYear(),F.getMonth()-D[0]*D[1]+1,F.getDate())),e=I&&e<I?I:e;this._daylightSavingAdjust(new Date(R,L,1))>e;)--L<0&&(L=11,R--);for(t.drawMonth=L,t.drawYear=R,T=this._get(t,"prevText"),T=P?this.formatDate(T,this._daylightSavingAdjust(new Date(R,L-A,1)),this._getFormatConfig(t)):T,i=this._canAdjustMonth(t,-1,R,L)?$("<a>").attr({class:"ui-datepicker-prev ui-corner-all","data-handler":"prev","data-event":"click",title:T}).append($("<span>").addClass("ui-icon ui-icon-circle-triangle-"+(k?"e":"w")).text(T))[0].outerHTML:E?"":$("<a>").attr({class:"ui-datepicker-prev ui-corner-all ui-state-disabled",title:T}).append($("<span>").addClass("ui-icon ui-icon-circle-triangle-"+(k?"e":"w")).text(T))[0].outerHTML,T=this._get(t,"nextText"),T=P?this.formatDate(T,this._daylightSavingAdjust(new Date(R,L+A,1)),this._getFormatConfig(t)):T,s=this._canAdjustMonth(t,1,R,L)?$("<a>").attr({class:"ui-datepicker-next ui-corner-all","data-handler":"next","data-event":"click",title:T}).append($("<span>").addClass("ui-icon ui-icon-circle-triangle-"+(k?"w":"e")).text(T))[0].outerHTML:E?"":$("<a>").attr({class:"ui-datepicker-next ui-corner-all ui-state-disabled",title:T}).append($("<span>").attr("class","ui-icon ui-icon-circle-triangle-"+(k?"w":"e")).text(T))[0].outerHTML,A=this._get(t,"currentText"),E=this._get(t,"gotoCurrent")&&t.currentDay?M:G,A=P?this.formatDate(A,E,this._getFormatConfig(t)):A,T="",t.inline||(T=$("<button>").attr({type:"button",class:"ui-datepicker-close ui-state-default ui-priority-primary ui-corner-all","data-handler":"hide","data-event":"click"}).text(this._get(t,"closeText"))[0].outerHTML),P="",w&&(P=$("<div class='ui-datepicker-buttonpane ui-widget-content'>").append(k?T:"").append(this._isInRange(t,E)?$("<button>").attr({type:"button",class:"ui-datepicker-current ui-state-default ui-priority-secondary ui-corner-all","data-handler":"today","data-event":"click"}).text(A):"").append(k?"":T)[0].outerHTML),n=parseInt(this._get(t,"firstDay"),10),n=isNaN(n)?0:n,r=this._get(t,"showWeek"),O=this._get(t,"dayNames"),V=this._get(t,"dayNamesMin"),B=this._get(t,"monthNames"),N=this._get(t,"monthNamesShort"),a=this._get(t,"beforeShowDay"),o=this._get(t,"showOtherMonths"),z=this._get(t,"selectOtherMonths"),l=this._getDefaultDate(t),h="",p=0;p<D[0];p++){for(u="",this.maxRows=4,d=0;d<D[1];d++){if(f=this._daylightSavingAdjust(new Date(R,L,t.selectedDay)),m=" ui-corner-all",g="",Y){if(g+="<div class='ui-datepicker-group",1<D[1])switch(d){case 0:g+=" ui-datepicker-group-first",m=" ui-corner-"+(k?"right":"left");break;case D[1]-1:g+=" ui-datepicker-group-last",m=" ui-corner-"+(k?"left":"right");break;default:g+=" ui-datepicker-group-middle",m=""}g+="'>"}for(g+="<div class='ui-datepicker-header ui-widget-header ui-helper-clearfix"+m+"'>"+(/all|left/.test(m)&&0===p?k?s:i:"")+(/all|right/.test(m)&&0===p?k?i:s:"")+this._generateMonthYearHeader(t,L,R,I,F,0<p||0<d,B,N)+"</div><table class='ui-datepicker-calendar'><thead><tr>",y=r?"<th class='ui-datepicker-week-col'>"+this._get(t,"weekHeader")+"</th>":"",c=0;c<7;c++)y+="<th scope='col'"+(5<=(c+n+6)%7?" class='ui-datepicker-week-end'":"")+"><span title='"+O[H=(c+n)%7]+"'>"+V[H]+"</span></th>";for(g+=y+"</tr></thead><tbody>",b=this._getDaysInMonth(R,L),R===t.selectedYear&&L===t.selectedMonth&&(t.selectedDay=Math.min(t.selectedDay,b)),v=(this._getFirstDayOfMonth(R,L)-n+7)%7,b=Math.ceil((v+b)/7),q=Y&&this.maxRows>b?this.maxRows:b,this.maxRows=q,_=this._daylightSavingAdjust(new Date(R,L,1-v)),W=0;W<q;W++){for(g+="<tr>",j=r?"<td class='ui-datepicker-week-col'>"+this._get(t,"calculateWeek")(_)+"</td>":"",c=0;c<7;c++)x=a?a.apply(t.input?t.input[0]:null,[_]):[!0,""],S=(C=_.getMonth()!==L)&&!z||!x[0]||I&&_<I||F&&F<_,j+="<td class='"+(5<=(c+n+6)%7?" ui-datepicker-week-end":"")+(C?" ui-datepicker-other-month":"")+(_.getTime()===f.getTime()&&L===t.selectedMonth&&t._keyEvent||l.getTime()===_.getTime()&&l.getTime()===f.getTime()?" "+this._dayOverClass:"")+(S?" "+this._unselectableClass+" ui-state-disabled":"")+(C&&!o?"":" "+x[1]+(_.getTime()===M.getTime()?" "+this._currentClass:"")+(_.getTime()===G.getTime()?" ui-datepicker-today":""))+"'"+(C&&!o||!x[2]?"":" title='"+x[2].replace(/'/g,"&#39;")+"'")+(S?"":" data-handler='selectDay' data-event='click' data-month='"+_.getMonth()+"' data-year='"+_.getFullYear()+"'")+">"+(C&&!o?"&#xa0;":S?"<span class='ui-state-default'>"+_.getDate()+"</span>":"<a class='ui-state-default"+(_.getTime()===G.getTime()?" ui-state-highlight":"")+(_.getTime()===M.getTime()?" ui-state-active":"")+(C?" ui-priority-secondary":"")+"' href='#' aria-current='"+(_.getTime()===M.getTime()?"true":"false")+"' data-date='"+_.getDate()+"'>"+_.getDate()+"</a>")+"</td>",_.setDate(_.getDate()+1),_=this._daylightSavingAdjust(_);g+=j+"</tr>"}11<++L&&(L=0,R++),u+=g+="</tbody></table>"+(Y?"</div>"+(0<D[0]&&d===D[1]-1?"<div class='ui-datepicker-row-break'></div>":""):"")}h+=u}return h+=P,t._keyEvent=!1,h},_generateMonthYearHeader:function(t,e,i,s,n,r,a,o){var l,h,c,p,u,d,f=this._get(t,"changeMonth"),m=this._get(t,"changeYear"),g=this._get(t,"showMonthAfterYear"),y=this._get(t,"selectMonthLabel"),v=this._get(t,"selectYearLabel"),b="<div class='ui-datepicker-title'>",_="";if(r||!f)_+="<span class='ui-datepicker-month'>"+a[e]+"</span>";else{for(l=s&&s.getFullYear()===i,h=n&&n.getFullYear()===i,_+="<select class='ui-datepicker-month' aria-label='"+y+"' data-handler='selectMonth' data-event='change'>",c=0;c<12;c++)(!l||c>=s.getMonth())&&(!h||c<=n.getMonth())&&(_+="<option value='"+c+"'"+(c===e?" selected='selected'":"")+">"+o[c]+"</option>");_+="</select>"}if(g||(b+=_+(!r&&f&&m?"":"&#xa0;")),!t.yearshtml)if(t.yearshtml="",r||!m)b+="<span class='ui-datepicker-year'>"+i+"</span>";else{for(a=this._get(t,"yearRange").split(":"),p=(new Date).getFullYear(),u=(y=function(t){return t=t.match(/c[+\-].*/)?i+parseInt(t.substring(1),10):t.match(/[+\-].*/)?p+parseInt(t,10):parseInt(t,10),isNaN(t)?p:t})(a[0]),d=Math.max(u,y(a[1]||"")),u=s?Math.max(u,s.getFullYear()):u,d=n?Math.min(d,n.getFullYear()):d,t.yearshtml+="<select class='ui-datepicker-year' aria-label='"+v+"' data-handler='selectYear' data-event='change'>";u<=d;u++)t.yearshtml+="<option value='"+u+"'"+(u===i?" selected='selected'":"")+">"+u+"</option>";t.yearshtml+="</select>",b+=t.yearshtml,t.yearshtml=null}return b+=this._get(t,"yearSuffix"),g&&(b+=(!r&&f&&m?"":"&#xa0;")+_),b+"</div>"},_adjustInstDate:function(t,e,i){var s=t.selectedYear+("Y"===i?e:0),n=t.selectedMonth+("M"===i?e:0),e=Math.min(t.selectedDay,this._getDaysInMonth(s,n))+("D"===i?e:0),s=this._restrictMinMax(t,this._daylightSavingAdjust(new Date(s,n,e)));t.selectedDay=s.getDate(),t.drawMonth=t.selectedMonth=s.getMonth(),t.drawYear=t.selectedYear=s.getFullYear(),"M"!==i&&"Y"!==i||this._notifyChange(t)},_restrictMinMax:function(t,e){var i=(i=this._getMinMaxDate(t,"min"))&&e<i?i:e;return(t=this._getMinMaxDate(t,"max"))&&t<i?t:i},_notifyChange:function(t){var e=this._get(t,"onChangeMonthYear");e&&e.apply(t.input?t.input[0]:null,[t.selectedYear,t.selectedMonth+1,t])},_getNumberOfMonths:function(t){return null==(t=this._get(t,"numberOfMonths"))?[1,1]:"number"==typeof t?[1,t]:t},_getMinMaxDate:function(t,e){return this._determineDate(t,this._get(t,e+"Date"),null)},_getDaysInMonth:function(t,e){return 32-this._daylightSavingAdjust(new Date(t,e,32)).getDate()},_getFirstDayOfMonth:function(t,e){return new Date(t,e,1).getDay()},_canAdjustMonth:function(t,e,i,s){var n=this._getNumberOfMonths(t),i=this._daylightSavingAdjust(new Date(i,s+(e<0?e:n[0]*n[1]),1));return e<0&&i.setDate(this._getDaysInMonth(i.getFullYear(),i.getMonth())),this._isInRange(t,i)},_isInRange:function(t,e){var i,s=this._getMinMaxDate(t,"min"),n=this._getMinMaxDate(t,"max"),r=null,a=null;return(t=this._get(t,"yearRange"))&&(t=t.split(":"),i=(new Date).getFullYear(),r=parseInt(t[0],10),a=parseInt(t[1],10),t[0].match(/[+\-].*/)&&(r+=i),t[1].match(/[+\-].*/))&&(a+=i),(!s||e.getTime()>=s.getTime())&&(!n||e.getTime()<=n.getTime())&&(!r||e.getFullYear()>=r)&&(!a||e.getFullYear()<=a)},_getFormatConfig:function(t){var e=this._get(t,"shortYearCutoff");return{shortYearCutoff:"string"!=typeof e?e:(new Date).getFullYear()%100+parseInt(e,10),dayNamesShort:this._get(t,"dayNamesShort"),dayNames:this._get(t,"dayNames"),monthNamesShort:this._get(t,"monthNamesShort"),monthNames:this._get(t,"monthNames")}},_formatDate:function(t,e,i,s){return e||(t.currentDay=t.selectedDay,t.currentMonth=t.selectedMonth,t.currentYear=t.selectedYear),s=e?"object"==typeof e?e:this._daylightSavingAdjust(new Date(s,i,e)):this._daylightSavingAdjust(new Date(t.currentYear,t.currentMonth,t.currentDay)),this.formatDate(this._get(t,"dateFormat"),s,this._getFormatConfig(t))}}),$.fn.datepicker=function(t){if(!this.length)return this;$.datepicker.initialized||($(document).on("mousedown",$.datepicker._checkExternalClick),$.datepicker.initialized=!0),0===$("#"+$.datepicker._mainDivId).length&&$("body").append($.datepicker.dpDiv);var e=Array.prototype.slice.call(arguments,1);return"string"==typeof t&&("isDisabled"===t||"getDate"===t||"widget"===t)||"option"===t&&2===arguments.length&&"string"==typeof arguments[1]?$.datepicker["_"+t+"Datepicker"].apply($.datepicker,[this[0]].concat(e)):this.each(function(){"string"==typeof t?$.datepicker["_"+t+"Datepicker"].apply($.datepicker,[this].concat(e)):$.datepicker._attachDatepicker(this,t)})},$.datepicker=new nt,$.datepicker.initialized=!1,$.datepicker.uuid=(new Date).getTime();var I,F=!($.datepicker.version="1.14.1");function ot(t,e,i){return e<=t&&t<e+i}function L(e){return function(){var t=this.element.val();e.apply(this,arguments),this._refresh(),t!==this.element.val()&&this._trigger("change")}}$(document).on("mouseup",function(){F=!1}),$.widget("ui.mouse",{version:"1.14.1",options:{cancel:"input, textarea, button, select, option",distance:1,delay:0},_mouseInit:function(){var e=this;this.element.on("mousedown."+this.widgetName,function(t){return e._mouseDown(t)}).on("click."+this.widgetName,function(t){if(!0===$.data(t.target,e.widgetName+".preventClickEvent"))return $.removeData(t.target,e.widgetName+".preventClickEvent"),t.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){var e,i,s;if(!F)return this._mouseMoved=!1,this._mouseStarted&&this._mouseUp(t),i=1===(this._mouseDownEvent=t).which,s="string"==typeof(e=this).options.cancel&&$(t.target).closest(this.options.cancel).length,i&&!s&&this._mouseCapture(t)&&(this.mouseDelayMet=!this.options.delay,this.mouseDelayMet||(this._mouseDelayTimer=setTimeout(function(){e.mouseDelayMet=!0},this.options.delay)),this._mouseDistanceMet(t)&&this._mouseDelayMet(t)&&(this._mouseStarted=!1!==this._mouseStart(t),!this._mouseStarted)?t.preventDefault():(!0===$.data(t.target,this.widgetName+".preventClickEvent")&&$.removeData(t.target,this.widgetName+".preventClickEvent"),this._mouseMoveDelegate=function(t){return e._mouseMove(t)},this._mouseUpDelegate=function(t){return e._mouseUp(t)},this.document.on("mousemove."+this.widgetName,this._mouseMoveDelegate).on("mouseup."+this.widgetName,this._mouseUpDelegate),t.preventDefault(),F=!0)),!0},_mouseMove:function(t){if(this._mouseMoved&&!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&&$.data(t.target,this.widgetName+".preventClickEvent",!0),this._mouseStop(t)),this._mouseDelayTimer&&(clearTimeout(this._mouseDelayTimer),delete this._mouseDelayTimer),this.ignoreMissingWhich=!1,F=!1,t.preventDefault()},_mouseDistanceMet:function(t){return Math.max(Math.abs(this._mouseDownEvent.pageX-t.pageX),Math.abs(this._mouseDownEvent.pageY-t.pageY))>=this.options.distance},_mouseDelayMet:function(){return this.mouseDelayMet},_mouseStart:function(){},_mouseDrag:function(){},_mouseStop:function(){},_mouseCapture:function(){return!0}}),$.ui.plugin={add:function(t,e,i){var s,n=$.ui[t].prototype;for(s in i)n.plugins[s]=n.plugins[s]||[],n.plugins[s].push([e,i[s]])},call:function(t,e,i,s){var n,r=t.plugins[e];if(r&&(s||t.element[0].parentNode&&11!==t.element[0].parentNode.nodeType))for(n=0;n<r.length;n++)t.options[r[n][0]]&&r[n][1].apply(t.element,i)}},$.widget("ui.draggable",$.ui.mouse,{version:"1.14.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(t,e){this._super(t,e),"handle"===t&&(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 e=this.options;return!(this.helper||e.disabled||0<$(t.target).closest(".ui-resizable-handle").length||(this.handle=this._getHandle(t),!this.handle)||(this._blurActiveElement(t),this._blockFrames(!0===e.iframeFix?"iframe":e.iframeFix),0))},_blockFrames:function(t){this.iframeBlocks=this.document.find(t).map(function(){var t=$(this);return $("<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 e=this.document[0].activeElement;$(t.target).closest(e).length||$(e).trigger("blur")},_mouseStart:function(t){var e=this.options;return this.helper=this._createHelper(t),this._addClass(this.helper,"ui-draggable-dragging"),this._cacheHelperProportions(),$.ui.ddmanager&&($.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=0<this.helper.parents().filter(function(){return"fixed"===$(this).css("position")}).length,this.positionAbs=this.element.offset(),this._refreshOffsets(t),this.originalPosition=this.position=this._generatePosition(t,!1),this.originalPageX=t.pageX,this.originalPageY=t.pageY,e.cursorAt&&this._adjustOffsetFromHelper(e.cursorAt),this._setContainment(),!1===this._trigger("start",t)?(this._clear(),!1):(this._cacheHelperProportions(),$.ui.ddmanager&&!e.dropBehaviour&&$.ui.ddmanager.prepareOffsets(this,t),this._mouseDrag(t,!0),$.ui.ddmanager&&$.ui.ddmanager.dragStart(this,t),!0)},_refreshOffsets:function(t){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:t.pageX-this.offset.left,top:t.pageY-this.offset.top}},_mouseDrag:function(t,e){if(this.hasFixedAncestor&&(this.offset.parent=this._getParentOffset()),this.position=this._generatePosition(t,!0),this.positionAbs=this._convertPositionTo("absolute"),!e){if(e=this._uiHash(),!1===this._trigger("drag",t,e))return this._mouseUp(new $.Event("mouseup",t)),!1;this.position=e.position}return this.helper[0].style.left=this.position.left+"px",this.helper[0].style.top=this.position.top+"px",$.ui.ddmanager&&$.ui.ddmanager.drag(this,t),!1},_mouseStop:function(t){var e=this,i=!1;return $.ui.ddmanager&&!this.options.dropBehaviour&&(i=$.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||"function"==typeof this.options.revert&&this.options.revert.call(this.element,i)?$(this.helper).animate(this.originalPosition,parseInt(this.options.revertDuration,10),function(){!1!==e._trigger("stop",t)&&e._clear()}):!1!==this._trigger("stop",t)&&this._clear(),!1},_mouseUp:function(t){return this._unblockFrames(),$.ui.ddmanager&&$.ui.ddmanager.dragStop(this,t),this.handleElement.is(t.target)&&this.element.trigger("focus"),$.ui.mouse.prototype._mouseUp.call(this,t)},cancel:function(){return this.helper.is(".ui-draggable-dragging")?this._mouseUp(new $.Event("mouseup",{target:this.element[0]})):this._clear(),this},_getHandle:function(t){return!this.options.handle||!!$(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 e=this.options,i="function"==typeof e.helper;return(t=i?$(e.helper.apply(this.element[0],[t])):"clone"===e.helper?this.element.clone().removeAttr("id"):this.element).parents("body").length||t.appendTo("parent"===e.appendTo?this.element[0].parentNode:e.appendTo),i&&t[0]===this.element[0]&&this._setPositionRelative(),t[0]===this.element[0]||/(fixed|absolute)/.test(t.css("position"))||t.css("position","absolute"),t},_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(" ")),"left"in(t=Array.isArray(t)?{left:+t[0],top:+t[1]||0}: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(t){return/(html|body)/i.test(t.tagName)||t===this.document[0]},_getParentOffset:function(){var t=this.offsetParent.offset(),e=this.document[0];return"absolute"===this.cssPosition&&this.scrollParent[0]!==e&&$.contains(this.scrollParent[0],this.offsetParent[0])&&(t.left+=this.scrollParent.scrollLeft(),t.top+=this.scrollParent.scrollTop()),{top:(t=this._isRootNode(this.offsetParent[0])?{top:0,left:0}:t).top+(parseInt(this.offsetParent.css("borderTopWidth"),10)||0),left:t.left+(parseInt(this.offsetParent.css("borderLeftWidth"),10)||0)}},_getRelativeOffset:function(){var t,e;return"relative"!==this.cssPosition?{top:0,left:0}:(t=this.element.position(),e=this._isRootNode(this.scrollParent[0]),{top:t.top-(parseInt(this.helper.css("top"),10)||0)+(e?0:this.scrollParent.scrollTop()),left:t.left-(parseInt(this.helper.css("left"),10)||0)+(e?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,e=this.options,i=this.document[0];this.relativeContainer=null,e.containment?"window"===e.containment?this.containment=[$(window).scrollLeft()-this.offset.relative.left-this.offset.parent.left,$(window).scrollTop()-this.offset.relative.top-this.offset.parent.top,$(window).scrollLeft()+$(window).width()-this.helperProportions.width-this.margins.left,$(window).scrollTop()+($(window).height()||i.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top]:"document"===e.containment?this.containment=[0,0,$(i).width()-this.helperProportions.width-this.margins.left,($(i).height()||i.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top]:e.containment.constructor===Array?this.containment=e.containment:("parent"===e.containment&&(e.containment=this.helper[0].parentNode),(e=(i=$(e.containment))[0])&&(t=/(scroll|auto)/.test(i.css("overflow")),this.containment=[(parseInt(i.css("borderLeftWidth"),10)||0)+(parseInt(i.css("paddingLeft"),10)||0),(parseInt(i.css("borderTopWidth"),10)||0)+(parseInt(i.css("paddingTop"),10)||0),(t?Math.max(e.scrollWidth,e.offsetWidth):e.offsetWidth)-(parseInt(i.css("borderRightWidth"),10)||0)-(parseInt(i.css("paddingRight"),10)||0)-this.helperProportions.width-this.margins.left-this.margins.right,(t?Math.max(e.scrollHeight,e.offsetHeight):e.offsetHeight)-(parseInt(i.css("borderBottomWidth"),10)||0)-(parseInt(i.css("paddingBottom"),10)||0)-this.helperProportions.height-this.margins.top-this.margins.bottom],this.relativeContainer=i)):this.containment=null},_convertPositionTo:function(t,e){e=e||this.position;var t="absolute"===t?1:-1,i=this._isRootNode(this.scrollParent[0]);return{top:e.top+this.offset.relative.top*t+this.offset.parent.top*t-("fixed"===this.cssPosition?-this.offset.scroll.top:i?0:this.offset.scroll.top)*t,left:e.left+this.offset.relative.left*t+this.offset.parent.left*t-("fixed"===this.cssPosition?-this.offset.scroll.left:i?0:this.offset.scroll.left)*t}},_generatePosition:function(t,e){var i,s=this.options,n=this._isRootNode(this.scrollParent[0]),r=t.pageX,a=t.pageY;return n&&this.offset.scroll||(this.offset.scroll={top:this.scrollParent.scrollTop(),left:this.scrollParent.scrollLeft()}),{top:(a=e&&(this.containment&&(i=this.relativeContainer?(e=this.relativeContainer.offset(),[this.containment[0]+e.left,this.containment[1]+e.top,this.containment[2]+e.left,this.containment[3]+e.top]):this.containment,t.pageX-this.offset.click.left<i[0]&&(r=i[0]+this.offset.click.left),t.pageY-this.offset.click.top<i[1]&&(a=i[1]+this.offset.click.top),t.pageX-this.offset.click.left>i[2]&&(r=i[2]+this.offset.click.left),t.pageY-this.offset.click.top>i[3])&&(a=i[3]+this.offset.click.top),s.grid&&(e=s.grid[1]?this.originalPageY+Math.round((a-this.originalPageY)/s.grid[1])*s.grid[1]:this.originalPageY,a=!i||e-this.offset.click.top>=i[1]||e-this.offset.click.top>i[3]?e:e-this.offset.click.top>=i[1]?e-s.grid[1]:e+s.grid[1],t=s.grid[0]?this.originalPageX+Math.round((r-this.originalPageX)/s.grid[0])*s.grid[0]:this.originalPageX,r=!i||t-this.offset.click.left>=i[0]||t-this.offset.click.left>i[2]?t:t-this.offset.click.left>=i[0]?t-s.grid[0]:t+s.grid[0]),"y"===s.axis&&(r=this.originalPageX),"x"===s.axis)?this.originalPageY:a)-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+("fixed"===this.cssPosition?-this.offset.scroll.top:n?0:this.offset.scroll.top),left:r-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+("fixed"===this.cssPosition?-this.offset.scroll.left:n?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,e,i){return i=i||this._uiHash(),$.ui.plugin.call(this,t,[e,i,this],!0),/^(drag|start|stop)/.test(t)&&(this.positionAbs=this._convertPositionTo("absolute"),i.offset=this.positionAbs),$.Widget.prototype._trigger.call(this,t,e,i)},plugins:{},_uiHash:function(){return{helper:this.helper,position:this.position,originalPosition:this.originalPosition,offset:this.positionAbs}}}),$.ui.plugin.add("draggable","connectToSortable",{start:function(e,t,i){var s=$.extend({},t,{item:i.element});i.sortables=[],$(i.options.connectToSortable).each(function(){var t=$(this).sortable("instance");t&&!t.options.disabled&&(i.sortables.push(t),t.refreshPositions(),t._trigger("activate",e,s))})},stop:function(e,t,i){var s=$.extend({},t,{item:i.element});i.cancelHelperRemoval=!1,$.each(i.sortables,function(){var t=this;t.isOver?(t.isOver=0,i.cancelHelperRemoval=!0,t.cancelHelperRemoval=!1,t._storedCSS={position:t.placeholder.css("position"),top:t.placeholder.css("top"),left:t.placeholder.css("left")},t._mouseStop(e),t.options.helper=t.options._helper):(t.cancelHelperRemoval=!0,t._trigger("deactivate",e,s))})},drag:function(i,s,n){$.each(n.sortables,function(){var t=!1,e=this;e.positionAbs=n.positionAbs,e.helperProportions=n.helperProportions,e.offset.click=n.offset.click,e._intersectsWith(e.containerCache)&&(t=!0,$.each(n.sortables,function(){return this.positionAbs=n.positionAbs,this.helperProportions=n.helperProportions,this.offset.click=n.offset.click,t=(this===e||!this._intersectsWith(this.containerCache)||!$.contains(e.element[0],this.element[0]))&&t})),t?(e.isOver||(e.isOver=1,n._parent=s.helper.parent(),e.currentItem=s.helper.appendTo(e.element).data("ui-sortable-item",!0),e.options._helper=e.options.helper,e.options.helper=function(){return s.helper[0]},i.target=e.currentItem[0],e._mouseCapture(i,!0),e._mouseStart(i,!0,!0),e.offset.click.top=n.offset.click.top,e.offset.click.left=n.offset.click.left,e.offset.parent.left-=n.offset.parent.left-e.offset.parent.left,e.offset.parent.top-=n.offset.parent.top-e.offset.parent.top,n._trigger("toSortable",i),n.dropped=e.element,$.each(n.sortables,function(){this.refreshPositions()}),n.currentItem=n.element,e.fromOutside=n),e.currentItem&&(e._mouseDrag(i),s.position=e.position)):e.isOver&&(e.isOver=0,e.cancelHelperRemoval=!0,e.options._revert=e.options.revert,e.options.revert=!1,e._trigger("out",i,e._uiHash(e)),e._mouseStop(i,!0),e.options.revert=e.options._revert,e.options.helper=e.options._helper,e.placeholder&&e.placeholder.remove(),s.helper.appendTo(n._parent),n._refreshOffsets(i),s.position=n._generatePosition(i,!0),n._trigger("fromSortable",i),n.dropped=!1,$.each(n.sortables,function(){this.refreshPositions()}))})}}),$.ui.plugin.add("draggable","cursor",{start:function(t,e,i){var s=$("body"),i=i.options;s.css("cursor")&&(i._cursor=s.css("cursor")),s.css("cursor",i.cursor)},stop:function(t,e,i){(i=i.options)._cursor&&$("body").css("cursor",i._cursor)}}),$.ui.plugin.add("draggable","opacity",{start:function(t,e,i){e=$(e.helper),i=i.options,e.css("opacity")&&(i._opacity=e.css("opacity")),e.css("opacity",i.opacity)},stop:function(t,e,i){(i=i.options)._opacity&&$(e.helper).css("opacity",i._opacity)}}),$.ui.plugin.add("draggable","scroll",{start:function(t,e,i){i.scrollParentNotHidden||(i.scrollParentNotHidden=i.helper.scrollParent(!1)),i.scrollParentNotHidden[0]!==i.document[0]&&"HTML"!==i.scrollParentNotHidden[0].tagName&&(i.overflowOffset=i.scrollParentNotHidden.offset())},drag:function(t,e,i){var s=i.options,n=!1,r=i.scrollParentNotHidden[0],a=i.document[0];r!==a&&"HTML"!==r.tagName?(s.axis&&"x"===s.axis||(i.overflowOffset.top+r.offsetHeight-t.pageY<s.scrollSensitivity?r.scrollTop=n=r.scrollTop+s.scrollSpeed:t.pageY-i.overflowOffset.top<s.scrollSensitivity&&(r.scrollTop=n=r.scrollTop-s.scrollSpeed)),s.axis&&"y"===s.axis||(i.overflowOffset.left+r.offsetWidth-t.pageX<s.scrollSensitivity?r.scrollLeft=n=r.scrollLeft+s.scrollSpeed:t.pageX-i.overflowOffset.left<s.scrollSensitivity&&(r.scrollLeft=n=r.scrollLeft-s.scrollSpeed))):(s.axis&&"x"===s.axis||(t.pageY-$(a).scrollTop()<s.scrollSensitivity?n=$(a).scrollTop($(a).scrollTop()-s.scrollSpeed):$(window).height()-(t.pageY-$(a).scrollTop())<s.scrollSensitivity&&(n=$(a).scrollTop($(a).scrollTop()+s.scrollSpeed))),s.axis&&"y"===s.axis||(t.pageX-$(a).scrollLeft()<s.scrollSensitivity?n=$(a).scrollLeft($(a).scrollLeft()-s.scrollSpeed):$(window).width()-(t.pageX-$(a).scrollLeft())<s.scrollSensitivity&&(n=$(a).scrollLeft($(a).scrollLeft()+s.scrollSpeed)))),!1!==n&&$.ui.ddmanager&&!s.dropBehaviour&&$.ui.ddmanager.prepareOffsets(i,t)}}),$.ui.plugin.add("draggable","snap",{start:function(t,e,i){var s=i.options;i.snapElements=[],$(s.snap.constructor!==String?s.snap.items||":data(ui-draggable)":s.snap).each(function(){var t=$(this),e=t.offset();this!==i.element[0]&&i.snapElements.push({item:this,width:t.outerWidth(),height:t.outerHeight(),top:e.top,left:e.left})})},drag:function(t,e,i){for(var s,n,r,a,o,l,h,c,p,u=i.options,d=u.snapTolerance,f=e.offset.left,m=f+i.helperProportions.width,g=e.offset.top,y=g+i.helperProportions.height,v=i.snapElements.length-1;0<=v;v--)l=(o=i.snapElements[v].left-i.margins.left)+i.snapElements[v].width,c=(h=i.snapElements[v].top-i.margins.top)+i.snapElements[v].height,m<o-d||l+d<f||y<h-d||c+d<g||!$.contains(i.snapElements[v].item.ownerDocument,i.snapElements[v].item)?(i.snapElements[v].snapping&&i.options.snap.release&&i.options.snap.release.call(i.element,t,$.extend(i._uiHash(),{snapItem:i.snapElements[v].item})),i.snapElements[v].snapping=!1):("inner"!==u.snapMode&&(s=Math.abs(h-y)<=d,n=Math.abs(c-g)<=d,r=Math.abs(o-m)<=d,a=Math.abs(l-f)<=d,s&&(e.position.top=i._convertPositionTo("relative",{top:h-i.helperProportions.height,left:0}).top),n&&(e.position.top=i._convertPositionTo("relative",{top:c,left:0}).top),r&&(e.position.left=i._convertPositionTo("relative",{top:0,left:o-i.helperProportions.width}).left),a)&&(e.position.left=i._convertPositionTo("relative",{top:0,left:l}).left),p=s||n||r||a,"outer"!==u.snapMode&&(s=Math.abs(h-g)<=d,n=Math.abs(c-y)<=d,r=Math.abs(o-f)<=d,a=Math.abs(l-m)<=d,s&&(e.position.top=i._convertPositionTo("relative",{top:h,left:0}).top),n&&(e.position.top=i._convertPositionTo("relative",{top:c-i.helperProportions.height,left:0}).top),r&&(e.position.left=i._convertPositionTo("relative",{top:0,left:o}).left),a)&&(e.position.left=i._convertPositionTo("relative",{top:0,left:l-i.helperProportions.width}).left),!i.snapElements[v].snapping&&(s||n||r||a||p)&&i.options.snap.snap&&i.options.snap.snap.call(i.element,t,$.extend(i._uiHash(),{snapItem:i.snapElements[v].item})),i.snapElements[v].snapping=s||n||r||a||p)}}),$.ui.plugin.add("draggable","stack",{start:function(t,e,i){var s,i=i.options;(i=$.makeArray($(i.stack)).sort(function(t,e){return(parseInt($(t).css("zIndex"),10)||0)-(parseInt($(e).css("zIndex"),10)||0)})).length&&(s=parseInt($(i[0]).css("zIndex"),10)||0,$(i).each(function(t){$(this).css("zIndex",s+t)}),this.css("zIndex",s+i.length))}}),$.ui.plugin.add("draggable","zIndex",{start:function(t,e,i){e=$(e.helper),i=i.options,e.css("zIndex")&&(i._zIndex=e.css("zIndex")),e.css("zIndex",i.zIndex)},stop:function(t,e,i){(i=i.options)._zIndex&&$(e.helper).css("zIndex",i._zIndex)}}),$.ui.draggable,$.widget("ui.resizable",$.ui.mouse,{version:"1.14.1",widgetEventPrefix:"resize",options:{alsoResize:!1,animate:!1,animateDuration:"slow",animateEasing:"swing",aspectRatio:!1,autoHide:!1,classes:{"ui-resizable-se":"ui-icon ui-icon-gripsmall-diagonal-se"},containment:!1,ghost:!1,grid:!1,handles:"e,s,se",helper:!1,maxHeight:null,maxWidth:null,minHeight:10,minWidth:10,zIndex:90,resize:null,start:null,stop:null},_num:function(t){return parseFloat(t)||0},_isNumber:function(t){return!isNaN(parseFloat(t))},_hasScroll:function(t,e){var i=!1,s=$(t).css("overflow");if("hidden"===s)return!1;if("scroll"===s)return!0;if(0<t[s=e&&"left"===e?"scrollLeft":"scrollTop"])return!0;try{t[s]=1,i=0<t[s],t[s]=0}catch(t){}return i},_create:function(){var t,e=this.options,i=this;this._addClass("ui-resizable"),$.extend(this,{_aspectRatio:!!e.aspectRatio,aspectRatio:e.aspectRatio,originalElement:this.element,_proportionallyResizeElements:[],_helper:e.helper||e.ghost||e.animate?e.helper||"ui-resizable-helper":null}),this.element[0].nodeName.match(/^(canvas|textarea|input|select|button|img)$/i)&&(this.element.wrap($("<div class='ui-wrapper'></div>").css({overflow:"hidden",position:this.element.css("position"),width:this.element.outerWidth(),height:this.element.outerHeight(),top:this.element.css("top"),left:this.element.css("left")})),this.element=this.element.parent().data("ui-resizable",this.element.resizable("instance")),this.elementIsWrapper=!0,t={marginTop:this.originalElement.css("marginTop"),marginRight:this.originalElement.css("marginRight"),marginBottom:this.originalElement.css("marginBottom"),marginLeft:this.originalElement.css("marginLeft")},this.element.css(t),this.originalResizeStyle=this.originalElement.css("resize"),this.originalElement.css("resize","none"),this._proportionallyResizeElements.push(this.originalElement.css({position:"static",zoom:1,display:"block"})),this._proportionallyResize()),this._setupHandles(),e.autoHide&&$(this.element).on("mouseenter",function(){e.disabled||(i._removeClass("ui-resizable-autohide"),i._handles.show())}).on("mouseleave",function(){e.disabled||i.resizing||(i._addClass("ui-resizable-autohide"),i._handles.hide())}),this._mouseInit()},_destroy:function(){function t(t){$(t).removeData("resizable").removeData("ui-resizable").off(".resizable")}var e;return this._mouseDestroy(),this._addedHandles.remove(),this.elementIsWrapper&&(t(this.element),e=this.element,this.originalElement.css({position:e.css("position"),width:e.outerWidth(),height:e.outerHeight(),top:e.css("top"),left:e.css("left")}).insertAfter(e),e.remove()),this.originalElement.css("resize",this.originalResizeStyle),t(this.originalElement),this},_setOption:function(t,e){switch(this._super(t,e),t){case"handles":this._removeHandles(),this._setupHandles();break;case"aspectRatio":this._aspectRatio=!!e}},_setupHandles:function(){var t,e,i,s,n,r=this.options,a=this;if(this.handles=r.handles||($(".ui-resizable-handle",this.element).length?{n:".ui-resizable-n",e:".ui-resizable-e",s:".ui-resizable-s",w:".ui-resizable-w",se:".ui-resizable-se",sw:".ui-resizable-sw",ne:".ui-resizable-ne",nw:".ui-resizable-nw"}:"e,s,se"),this._handles=$(),this._addedHandles=$(),this.handles.constructor===String)for("all"===this.handles&&(this.handles="n,e,s,w,se,sw,ne,nw"),i=this.handles.split(","),this.handles={},e=0;e<i.length;e++)s="ui-resizable-"+(t=String.prototype.trim.call(i[e])),n=$("<div>"),this._addClass(n,"ui-resizable-handle "+s),n.css({zIndex:r.zIndex}),this.handles[t]=".ui-resizable-"+t,this.element.children(this.handles[t]).length||(this.element.append(n),this._addedHandles=this._addedHandles.add(n));this._renderAxis=function(t){var e,i,s;for(e in t=t||this.element,this.handles)this.handles[e].constructor===String?this.handles[e]=this.element.children(this.handles[e]).first().show():(this.handles[e].jquery||this.handles[e].nodeType)&&(this.handles[e]=$(this.handles[e]),this._on(this.handles[e],{mousedown:a._mouseDown})),this.elementIsWrapper&&this.originalElement[0].nodeName.match(/^(textarea|input|select|button)$/i)&&(s=$(this.handles[e],this.element),s=/sw|ne|nw|se|n|s/.test(e)?s.outerHeight():s.outerWidth(),i=["padding",/ne|nw|n/.test(e)?"Top":/se|sw|s/.test(e)?"Bottom":/^e$/.test(e)?"Right":"Left"].join(""),t.css(i,s),this._proportionallyResize()),this._handles=this._handles.add(this.handles[e])},this._renderAxis(this.element),this._handles=this._handles.add(this.element.find(".ui-resizable-handle")),this._handles.disableSelection(),this._handles.on("mouseover",function(){a.resizing||(this.className&&(n=this.className.match(/ui-resizable-(se|sw|ne|nw|n|e|s|w)/i)),a.axis=n&&n[1]?n[1]:"se")}),r.autoHide&&(this._handles.hide(),this._addClass("ui-resizable-autohide"))},_removeHandles:function(){this._addedHandles.remove()},_mouseCapture:function(t){var e,i,s=!1;for(e in this.handles)(i=$(this.handles[e])[0])!==t.target&&!$.contains(i,t.target)||(s=!0);return!this.options.disabled&&s},_mouseStart:function(t){var e,i,s,n=this.options,r=this.element;return this.resizing=!0,this._renderProxy(),e=this._num(this.helper.css("left")),i=this._num(this.helper.css("top")),n.containment&&(e+=$(n.containment).scrollLeft()||0,i+=$(n.containment).scrollTop()||0),this.offset=this.helper.offset(),this.position={left:e,top:i},this._helper||(s=this._calculateAdjustedElementDimensions(r)),this.size=this._helper?{width:this.helper.width(),height:this.helper.height()}:{width:s.width,height:s.height},this.originalSize=this._helper?{width:r.outerWidth(),height:r.outerHeight()}:{width:s.width,height:s.height},this.sizeDiff={width:r.outerWidth()-r.width(),height:r.outerHeight()-r.height()},this.originalPosition={left:e,top:i},this.originalMousePosition={left:t.pageX,top:t.pageY},this.aspectRatio="number"==typeof n.aspectRatio?n.aspectRatio:this.originalSize.width/this.originalSize.height||1,s=$(".ui-resizable-"+this.axis).css("cursor"),$("body").css("cursor","auto"===s?this.axis+"-resize":s),this._addClass("ui-resizable-resizing"),this._propagate("start",t),!0},_mouseDrag:function(t){var e=this.originalMousePosition,i=this.axis,s=t.pageX-e.left||0,e=t.pageY-e.top||0,i=this._change[i];return this._updatePrevProperties(),i&&(i=i.apply(this,[t,s,e]),this._updateVirtualBoundaries(t.shiftKey),(this._aspectRatio||t.shiftKey)&&(i=this._updateRatio(i,t)),i=this._respectSize(i,t),this._updateCache(i),this._propagate("resize",t),s=this._applyChanges(),!this._helper&&this._proportionallyResizeElements.length&&this._proportionallyResize(),$.isEmptyObject(s)||(this._updatePrevProperties(),this._trigger("resize",t,this.ui()),this._applyChanges())),!1},_mouseStop:function(t){this.resizing=!1;var e,i,s,n=this.options,r=this;return this._helper&&(i=(e=(i=this._proportionallyResizeElements).length&&/textarea/i.test(i[0].nodeName))&&this._hasScroll(i[0],"left")?0:r.sizeDiff.height,e=e?0:r.sizeDiff.width,e={width:r.helper.width()-e,height:r.helper.height()-i},i=parseFloat(r.element.css("left"))+(r.position.left-r.originalPosition.left)||null,s=parseFloat(r.element.css("top"))+(r.position.top-r.originalPosition.top)||null,n.animate||this.element.css($.extend(e,{top:s,left:i})),r.helper.height(r.size.height),r.helper.width(r.size.width),this._helper)&&!n.animate&&this._proportionallyResize(),$("body").css("cursor","auto"),this._removeClass("ui-resizable-resizing"),this._propagate("stop",t),this._helper&&this.helper.remove(),!1},_updatePrevProperties:function(){this.prevPosition={top:this.position.top,left:this.position.left},this.prevSize={width:this.size.width,height:this.size.height}},_applyChanges:function(){var t={};return this.position.top!==this.prevPosition.top&&(t.top=this.position.top+"px"),this.position.left!==this.prevPosition.left&&(t.left=this.position.left+"px"),this.helper.css(t),this.size.width!==this.prevSize.width&&(t.width=this.size.width+"px",this.helper.width(t.width)),this.size.height!==this.prevSize.height&&(t.height=this.size.height+"px",this.helper.height(t.height)),t},_updateVirtualBoundaries:function(t){var e,i,s,n=this.options,n={minWidth:this._isNumber(n.minWidth)?n.minWidth:0,maxWidth:this._isNumber(n.maxWidth)?n.maxWidth:1/0,minHeight:this._isNumber(n.minHeight)?n.minHeight:0,maxHeight:this._isNumber(n.maxHeight)?n.maxHeight:1/0};(this._aspectRatio||t)&&(t=n.minHeight*this.aspectRatio,i=n.minWidth/this.aspectRatio,e=n.maxHeight*this.aspectRatio,s=n.maxWidth/this.aspectRatio,n.minWidth<t&&(n.minWidth=t),n.minHeight<i&&(n.minHeight=i),e<n.maxWidth&&(n.maxWidth=e),s<n.maxHeight)&&(n.maxHeight=s),this._vBoundaries=n},_updateCache:function(t){this.offset=this.helper.offset(),this._isNumber(t.left)&&(this.position.left
vendor: 5,964 bytes, line 1
1=t.left),this._isNumber(t.top)&&(this.position.top=t.top),this._isNumber(t.height)&&(this.size.height=t.height),this._isNumber(t.width)&&(this.size.width=t.width)},_updateRatio:function(t){var e=this.position,i=this.size,s=this.axis;return this._isNumber(t.height)?t.width=t.height*this.aspectRatio:this._isNumber(t.width)&&(t.height=t.width/this.aspectRatio),"sw"===s&&(t.left=e.left+(i.width-t.width),t.top=null),"nw"===s&&(t.top=e.top+(i.height-t.height),t.left=e.left+(i.width-t.width)),t},_respectSize:function(t){var e=this._vBoundaries,i=this.axis,s=this._isNumber(t.width)&&e.maxWidth&&e.maxWidth<t.width,n=this._isNumber(t.height)&&e.maxHeight&&e.maxHeight<t.height,r=this._isNumber(t.width)&&e.minWidth&&e.minWidth>t.width,a=this._isNumber(t.height)&&e.minHeight&&e.minHeight>t.height,o=this.originalPosition.left+this.originalSize.width,l=this.originalPosition.top+this.originalSize.height,h=/sw|nw|w/.test(i),i=/nw|ne|n/.test(i);return r&&(t.width=e.minWidth),a&&(t.height=e.minHeight),s&&(t.width=e.maxWidth),n&&(t.height=e.maxHeight),r&&h&&(t.left=o-e.minWidth),s&&h&&(t.left=o-e.maxWidth),a&&i&&(t.top=l-e.minHeight),n&&i&&(t.top=l-e.maxHeight),t.width||t.height||t.left||!t.top?t.width||t.height||t.top||!t.left||(t.left=null):t.top=null,t},_getPaddingPlusBorderDimensions:function(t){for(var e=0,i=[],s=[t.css("borderTopWidth"),t.css("borderRightWidth"),t.css("borderBottomWidth"),t.css("borderLeftWidth")],n=[t.css("paddingTop"),t.css("paddingRight"),t.css("paddingBottom"),t.css("paddingLeft")];e<4;e++)i[e]=parseFloat(s[e])||0,i[e]+=parseFloat(n[e])||0;return{height:i[0]+i[2],width:i[1]+i[3]}},_calculateAdjustedElementDimensions:function(t){var e,i,s=t.get(0);return"content-box"!==t.css("box-sizing")||!this._hasScroll(s)&&!this._hasScroll(s,"left")?{height:parseFloat(t.css("height")),width:parseFloat(t.css("width"))}:(e=parseFloat(s.style.width),s=parseFloat(s.style.height),i=this._getPaddingPlusBorderDimensions(t),e=isNaN(e)?this._getElementTheoreticalSize(t,i,"width"):e,{height:isNaN(s)?this._getElementTheoreticalSize(t,i,"height"):s,width:e})},_getElementTheoreticalSize:function(t,e,i){return Math.max(0,Math.ceil(t.get(0)["offset"+i[0].toUpperCase()+i.slice(1)]-e[i]-.5))||0},_proportionallyResize:function(){if(this._proportionallyResizeElements.length)for(var t,e=0,i=this.helper||this.element;e<this._proportionallyResizeElements.length;e++)t=this._proportionallyResizeElements[e],this.outerDimensions||(this.outerDimensions=this._getPaddingPlusBorderDimensions(t)),t.css({height:i.height()-this.outerDimensions.height||0,width:i.width()-this.outerDimensions.width||0})},_renderProxy:function(){var t=this.element,e=this.options;this.elementOffset=t.offset(),this._helper?(this.helper=this.helper||$("<div></div>").css({overflow:"hidden"}),this._addClass(this.helper,this._helper),this.helper.css({width:this.element.outerWidth(),height:this.element.outerHeight(),position:"absolute",left:this.elementOffset.left+"px",top:this.elementOffset.top+"px",zIndex:++e.zIndex}),this.helper.appendTo("body").disableSelection()):this.helper=this.element},_change:{e:function(t,e){return{width:this.originalSize.width+e}},w:function(t,e){var i=this.originalSize;return{left:this.originalPosition.left+e,width:i.width-e}},n:function(t,e,i){var s=this.originalSize;return{top:this.originalPosition.top+i,height:s.height-i}},s:function(t,e,i){return{height:this.originalSize.height+i}},se:function(t,e,i){return $.extend(this._change.s.apply(this,arguments),this._change.e.apply(this,[t,e,i]))},sw:function(t,e,i){return $.extend(this._change.s.apply(this,arguments),this._change.w.apply(this,[t,e,i]))},ne:function(t,e,i){return $.extend(this._change.n.apply(this,arguments),this._change.e.apply(this,[t,e,i]))},nw:function(t,e,i){return $.extend(this._change.n.apply(this,arguments),this._change.w.apply(this,[t,e,i]))}},_propagate:function(t,e){$.ui.plugin.call(this,t,[e,this.ui()]),"resize"!==t&&this._trigger(t,e,this.ui())},plugins:{},ui:function(){return{originalElement:this.originalElement,element:this.element,helper:this.helper,position:this.position,size:this.size,originalSize:this.originalSize,originalPosition:this.originalPosition}}}),$.ui.plugin.add("resizable","animate",{stop:function(e){var i=$(this).resizable("instance"),t=i.options,s=i._proportionallyResizeElements,n=(r=s.length&&/textarea/i.test(s[0].nodeName))&&i._hasScroll(s[0],"left")?0:i.sizeDiff.height,r=r?0:i.sizeDiff.width,r={width:i.size.width-r,height:i.size.height-n},n=parseFloat(i.element.css("left"))+(i.position.left-i.originalPosition.left)||null,a=parseFloat(i.element.css("top"))+(i.position.top-i.originalPosition.top)||null;i.element.animate($.extend(r,a&&n?{top:a,left:n}:{}),{duration:t.animateDuration,easing:t.animateEasing,step:function(){var t={width:parseFloat(i.element.css("width")),height:parseFloat(i.element.css("height")),top:parseFloat(i.element.css("top")),left:parseFloat(i.element.css("left"))};s&&s.length&&$(s[0]).css({width:t.width,height:t.height}),i._updateCache(t),i._propagate("resize",e)}})}}),$.ui.plugin.add("resizable","containment",{start:function(){var i,s,t,e,n=$(this).resizable("instance"),r=n.options,a=n.element;(a=(r=r.containment)instanceof $?r.get(0):/parent/.test(r)?a.parent().get(0):r)&&(n.containerElement=$(a),/document/.test(r)||r===document?(n.containerOffset={left:0,top:0},n.containerPosition={left:0,top:0},n.parentData={element:$(document),left:0,top:0,width:$(document).width(),height:$(document).height()||document.body.parentNode.scrollHeight}):(i=$(a),s=[],$(["Top","Right","Left","Bottom"]).each(function(t,e){s[t]=n._num(i.css("padding"+e))}),n.containerOffset=i.offset(),n.containerPosition=i.position(),n.containerSize={height:i.innerHeight()-s[3],width:i.innerWidth()-s[1]},r=n.containerOffset,e=n.containerSize.height,t=n.containerSize.width,t=n._hasScroll(a,"left")?a.scrollWidth:t,e=n._hasScroll(a)?a.scrollHeight:e,n.parentData={element:a,left:r.left,top:r.top,width:t,height:e}))}
vendor: 95,984 bytes, line 1
1,resize:function(t){var e=$(this).resizable("instance"),i=e.options,s=e.containerOffset,n=e.position,t=e._aspectRatio||t.shiftKey,r={top:0,left:0},a=e.containerElement,o=!0;a[0]!==document&&/static/.test(a.css("position"))&&(r=s),n.left<(e._helper?s.left:0)&&(e.size.width=e.size.width+(e._helper?e.position.left-s.left:e.position.left-r.left),t&&(e.size.height=e.size.width/e.aspectRatio,o=!1),e.position.left=i.helper?s.left:0),n.top<(e._helper?s.top:0)&&(e.size.height=e.size.height+(e._helper?e.position.top-s.top:e.position.top),t&&(e.size.width=e.size.height*e.aspectRatio,o=!1),e.position.top=e._helper?s.top:0),a=e.containerElement.get(0)===e.element.parent().get(0),i=/relative|absolute/.test(e.containerElement.css("position")),a&&i?(e.offset.left=e.parentData.left+e.position.left,e.offset.top=e.parentData.top+e.position.top):(e.offset.left=e.element.offset().left,e.offset.top=e.element.offset().top),n=Math.abs(e.sizeDiff.width+(e._helper?e.offset.left-r.left:e.offset.left-s.left)),a=Math.abs(e.sizeDiff.height+(e._helper?e.offset.top-r.top:e.offset.top-s.top)),n+e.size.width>=e.parentData.width&&(e.size.width=e.parentData.width-n,t)&&(e.size.height=e.size.width/e.aspectRatio,o=!1),a+e.size.height>=e.parentData.height&&(e.size.height=e.parentData.height-a,t)&&(e.size.width=e.size.height*e.aspectRatio,o=!1),o||(e.position.left=e.prevPosition.left,e.position.top=e.prevPosition.top,e.size.width=e.prevSize.width,e.size.height=e.prevSize.height)},stop:function(){var t=$(this).resizable("instance"),e=t.options,i=t.containerOffset,s=t.containerPosition,n=t.containerElement,r=(o=$(t.helper)).offset(),a=o.outerWidth()-t.sizeDiff.width,o=o.outerHeight()-t.sizeDiff.height;t._helper&&!e.animate&&/relative/.test(n.css("position"))&&$(this).css({left:r.left-s.left-i.left,width:a,height:o}),t._helper&&!e.animate&&/static/.test(n.css("position"))&&$(this).css({left:r.left-s.left-i.left,width:a,height:o})}}),$.ui.plugin.add("resizable","alsoResize",{start:function(){var i=$(this).resizable("instance"),t=i.options;$(t.alsoResize).each(function(){var t=$(this),e=i._calculateAdjustedElementDimensions(t);t.data("ui-resizable-alsoresize",{width:e.width,height:e.height,left:parseFloat(t.css("left")),top:parseFloat(t.css("top"))})})},resize:function(t,i){var e=$(this).resizable("instance"),s=e.options,n=e.originalSize,r=e.originalPosition,a={height:e.size.height-n.height||0,width:e.size.width-n.width||0,top:e.position.top-r.top||0,left:e.position.left-r.left||0};$(s.alsoResize).each(function(){var t=$(this),s=$(this).data("ui-resizable-alsoresize"),n={},e=t.parents(i.originalElement[0]).length?["width","height"]:["width","height","top","left"];$.each(e,function(t,e){var i=(s[e]||0)+(a[e]||0);i&&0<=i&&(n[e]=i||null)}),t.css(n)})},stop:function(){$(this).removeData("ui-resizable-alsoresize")}}),$.ui.plugin.add("resizable","ghost",{start:function(){var t=$(this).resizable("instance"),e=t.size;t.ghost=t.originalElement.clone(),t.ghost.css({opacity:.25,display:"block",position:"relative",height:e.height,width:e.width,margin:0,left:0,top:0}),t._addClass(t.ghost,"ui-resizable-ghost"),!0===$.uiBackCompat&&"string"==typeof t.options.ghost&&t.ghost.addClass(this.options.ghost),t.ghost.appendTo(t.helper)},resize:function(){var t=$(this).resizable("instance");t.ghost&&t.ghost.css({position:"relative",height:t.size.height,width:t.size.width})},stop:function(){var t=$(this).resizable("instance");t.ghost&&t.helper&&t.helper.get(0).removeChild(t.ghost.get(0))}}),$.ui.plugin.add("resizable","grid",{resize:function(){var t,e=$(this).resizable("instance"),i=e.options,s=e.size,n=e.originalSize,r=e.originalPosition,a=e.axis,o="number"==typeof i.grid?[i.grid,i.grid]:i.grid,l=o[0]||1,h=o[1]||1,c=Math.round((s.width-n.width)/l)*l,s=Math.round((s.height-n.height)/h)*h,p=n.width+c,u=n.height+s,d=i.maxWidth&&i.maxWidth<p,f=i.maxHeight&&i.maxHeight<u,m=i.minWidth&&i.minWidth>p,g=i.minHeight&&i.minHeight>u;i.grid=o,m&&(p+=l),g&&(u+=h),d&&(p-=l),f&&(u-=h),/^(se|s|e)$/.test(a)?(e.size.width=p,e.size.height=u):/^(ne)$/.test(a)?(e.size.width=p,e.size.height=u,e.position.top=r.top-s):/^(sw)$/.test(a)?(e.size.width=p,e.size.height=u,e.position.left=r.left-c):((u-h<=0||p-l<=0)&&(t=e._getPaddingPlusBorderDimensions(this)),0<u-h?(e.size.height=u,e.position.top=r.top-s):(u=h-t.height,e.size.height=u,e.position.top=r.top+n.height-u),0<p-l?(e.size.width=p,e.position.left=r.left-c):(p=l-t.width,e.size.width=p,e.position.left=r.left+n.width-p))}}),$.ui.resizable,$.widget("ui.dialog",{version:"1.14.1",options:{appendTo:"body",autoOpen:!0,buttons:[],classes:{"ui-dialog":"ui-corner-all","ui-dialog-titlebar":"ui-corner-all"},closeOnEscape:!0,closeText:"Close",draggable:!0,hide:null,height:"auto",maxHeight:null,maxWidth:null,minHeight:150,minWidth:150,modal:!1,position:{my:"center",at:"center",of:window,collision:"fit",using:function(t){var e=$(this).css(t).offset().top;e<0&&$(this).css("top",t.top-e)}},resizable:!0,show:null,title:null,uiDialogTitleHeadingLevel:0,width:300,beforeClose:null,close:null,drag:null,dragStart:null,dragStop:null,focus:null,open:null,resize:null,resizeStart:null,resizeStop:null},sizeRelatedOptions:{buttons:!0,height:!0,maxHeight:!0,maxWidth:!0,minHeight:!0,minWidth:!0,width:!0},resizableRelatedOptions:{maxHeight:!0,maxWidth:!0,minHeight:!0,minWidth:!0},_create:function(){this.originalCss={display:this.element[0].style.display,width:this.element[0].style.width,minHeight:this.element[0].style.minHeight,maxHeight:this.element[0].style.maxHeight,height:this.element[0].style.height},this.originalPosition={parent:this.element.parent(),index:this.element.parent().children().index(this.element)},this.originalTitle=this.element.attr("title"),null==this.options.title&&null!=this.originalTitle&&(this.options.title=this.originalTitle),this.options.disabled&&(this.options.disabled=!1),this._createWrapper(),this.element.show().removeAttr("title").appendTo(this.uiDialog),this._addClass("ui-dialog-content","ui-widget-content"),this._createTitlebar(),this._createButtonPane(),this.options.draggable&&$.fn.draggable&&this._makeDraggable(),this.options.resizable&&$.fn.resizable&&this._makeResizable(),this._isOpen=!1,this._trackFocus()},_init:function(){this.options.autoOpen&&this.open()},_appendTo:function(){var t=this.options.appendTo;return t&&(t.jquery||t.nodeType)?$(t):this.document.find(t||"body").eq(0)},_destroy:function(){var t,e=this.originalPosition;this._untrackInstance(),this._destroyOverlay(),this.element.removeUniqueId().css(this.originalCss).detach(),this.uiDialog.remove(),this.originalTitle&&this.element.attr("title",this.originalTitle),(t=e.parent.children().eq(e.index)).length&&t[0]!==this.element[0]?t.before(this.element):e.parent.append(this.element)},widget:function(){return this.uiDialog},disable:$.noop,enable:$.noop,close:function(t){var e=this;this._isOpen&&!1!==this._trigger("beforeClose",t)&&(this._isOpen=!1,this._focusedElement=null,this._destroyOverlay(),this._untrackInstance(),this.opener.filter(":focusable").trigger("focus").length||$(this.document[0].activeElement).trigger("blur"),this._hide(this.uiDialog,this.options.hide,function(){e._trigger("close",t)}))},isOpen:function(){return this._isOpen},moveToTop:function(){this._moveToTop()},_moveToTop:function(t,e){var i=!1,s=this.uiDialog.siblings(".ui-front:visible").map(function(){return+$(this).css("z-index")}).get();return(s=Math.max.apply(null,s))>=+this.uiDialog.css("z-index")&&(this.uiDialog.css("z-index",s+1),i=!0),i&&!e&&this._trigger("focus",t),i},open:function(){var t=this;this._isOpen?this._moveToTop()&&this._focusTabbable():(this._isOpen=!0,this.opener=$(this.document[0].activeElement),this._size(),this._position(),this._createOverlay(),this._moveToTop(null,!0),this.overlay&&this.overlay.css("z-index",this.uiDialog.css("z-index")-1),this._show(this.uiDialog,this.options.show,function(){t._focusTabbable(),t._trigger("focus")}),this._makeFocusTarget(),this._trigger("open"))},_focusTabbable:function(){var t=this._focusedElement;(t=(t=(t=(t=(t=t||this.element.find("[autofocus]")).length?t:this.element.find(":tabbable")).length?t:this.uiDialogButtonPane.find(":tabbable")).length?t:this.uiDialogTitlebarClose.filter(":tabbable")).length?t:this.uiDialog).eq(0).trigger("focus")},_restoreTabbableFocus:function(){var t=this.document[0].activeElement;this.uiDialog[0]===t||$.contains(this.uiDialog[0],t)||this._focusTabbable()},_keepFocus:function(t){t.preventDefault(),this._restoreTabbableFocus()},_createWrapper:function(){this.uiDialog=$("<div>").hide().attr({tabIndex:-1,role:"dialog","aria-modal":this.options.modal?"true":null}).appendTo(this._appendTo()),this._addClass(this.uiDialog,"ui-dialog","ui-widget ui-widget-content ui-front"),this._on(this.uiDialog,{keydown:function(t){var e,i,s;this.options.closeOnEscape&&!t.isDefaultPrevented()&&t.keyCode&&t.keyCode===$.ui.keyCode.ESCAPE?(t.preventDefault(),this.close(t)):t.keyCode!==$.ui.keyCode.TAB||t.isDefaultPrevented()||(e=this.uiDialog.find(":tabbable"),i=e.first(),s=e.last(),t.target!==s[0]&&t.target!==this.uiDialog[0]||t.shiftKey?t.target!==i[0]&&t.target!==this.uiDialog[0]||!t.shiftKey||(this._delay(function(){s.trigger("focus")}),t.preventDefault()):(this._delay(function(){i.trigger("focus")}),t.preventDefault()))},mousedown:function(t){this._moveToTop(t)&&this._focusTabbable()}}),this.element.find("[aria-describedby]").length||this.uiDialog.attr({"aria-describedby":this.element.uniqueId().attr("id")})},_createTitlebar:function(){this.uiDialogTitlebar=$("<div>"),this._addClass(this.uiDialogTitlebar,"ui-dialog-titlebar","ui-widget-header ui-helper-clearfix"),this._on(this.uiDialogTitlebar,{mousedown:function(t){$(t.target).closest(".ui-dialog-titlebar-close")||this.uiDialog.trigger("focus")}}),this.uiDialogTitlebarClose=$("<button type='button'></button>").button({label:$("<a>").text(this.options.closeText).html(),icon:"ui-icon-closethick",showLabel:!1}).appendTo(this.uiDialogTitlebar),this._addClass(this.uiDialogTitlebarClose,"ui-dialog-titlebar-close"),this._on(this.uiDialogTitlebarClose,{click:function(t){t.preventDefault(),this.close(t)}});var t=Number.isInteger(this.options.uiDialogTitleHeadingLevel)&&0<this.options.uiDialogTitleHeadingLevel&&this.options.uiDialogTitleHeadingLevel<=6?"h"+this.options.uiDialogTitleHeadingLevel:"span",t=$("<"+t+">").uniqueId().prependTo(this.uiDialogTitlebar);this._addClass(t,"ui-dialog-title"),this._title(t),this.uiDialogTitlebar.prependTo(this.uiDialog),this.uiDialog.attr({"aria-labelledby":t.attr("id")})},_title:function(t){this.options.title?t.text(this.options.title):t.html("&#160;")},_createButtonPane:function(){this.uiDialogButtonPane=$("<div>"),this._addClass(this.uiDialogButtonPane,"ui-dialog-buttonpane","ui-widget-content ui-helper-clearfix"),this.uiButtonSet=$("<div>").appendTo(this.uiDialogButtonPane),this._addClass(this.uiButtonSet,"ui-dialog-buttonset"),this._createButtons()},_createButtons:function(){var s=this,t=this.options.buttons;this.uiDialogButtonPane.remove(),this.uiButtonSet.empty(),$.isEmptyObject(t)||Array.isArray(t)&&!t.length?this._removeClass(this.uiDialog,"ui-dialog-buttons"):($.each(t,function(t,e){var i;e=$.extend({type:"button"},e="function"==typeof e?{click:e,text:t}:e),i=e.click,t={icon:e.icon,iconPosition:e.iconPosition,showLabel:e.showLabel,icons:e.icons,text:e.text},delete e.click,delete e.icon,delete e.iconPosition,delete e.showLabel,delete e.icons,"boolean"==typeof e.text&&delete e.text,$("<button></button>",e).button(t).appendTo(s.uiButtonSet).on("click",function(){i.apply(s.element[0],arguments)})}),this._addClass(this.uiDialog,"ui-dialog-buttons"),this.uiDialogButtonPane.appendTo(this.uiDialog))},_makeDraggable:function(){var n=this,r=this.options;function a(t){return{position:t.position,offset:t.offset}}this.uiDialog.draggable({cancel:".ui-dialog-content, .ui-dialog-titlebar-close",handle:".ui-dialog-titlebar",containment:"document",start:function(t,e){n._addClass($(this),"ui-dialog-dragging"),n._blockFrames(),n._trigger("dragStart",t,a(e))},drag:function(t,e){n._trigger("drag",t,a(e))},stop:function(t,e){var i=e.offset.left-n.document.scrollLeft(),s=e.offset.top-n.document.scrollTop();r.position={my:"left top",at:"left"+(0<=i?"+":"")+i+" top"+(0<=s?"+":"")+s,of:n.window},n._removeClass($(this),"ui-dialog-dragging"),n._unblockFrames(),n._trigger("dragStop",t,a(e))}})},_makeResizable:function(){var n=this,r=this.options,t=r.resizable,e=this.uiDialog.css("position"),t="string"==typeof t?t:"n,e,s,w,se,sw,ne,nw";function a(t){return{originalPosition:t.originalPosition,originalSize:t.originalSize,position:t.position,size:t.size}}this.uiDialog.resizable({cancel:".ui-dialog-content",containment:"document",alsoResize:this.element,maxWidth:r.maxWidth,maxHeight:r.maxHeight,minWidth:r.minWidth,minHeight:this._minHeight(),handles:t,start:function(t,e){n._addClass($(this),"ui-dialog-resizing"),n._blockFrames(),n._trigger("resizeStart",t,a(e))},resize:function(t,e){n._trigger("resize",t,a(e))},stop:function(t,e){var i=(s=n.uiDialog.offset()).left-n.document.scrollLeft(),s=s.top-n.document.scrollTop();r.height=n.uiDialog.height(),r.width=n.uiDialog.width(),r.position={my:"left top",at:"left"+(0<=i?"+":"")+i+" top"+(0<=s?"+":"")+s,of:n.window},n._removeClass($(this),"ui-dialog-resizing"),n._unblockFrames(),n._trigger("resizeStop",t,a(e))}}).css("position",e)},_trackFocus:function(){this._on(this.widget(),{focusin:function(t){this._makeFocusTarget(),this._focusedElement=$(t.target)}})},_makeFocusTarget:function(){this._untrackInstance(),this._trackingInstances().unshift(this)},_untrackInstance:function(){var t=this._trackingInstances(),e=$.inArray(this,t);-1!==e&&t.splice(e,1)},_trackingInstances:function(){var t=this.document.data("ui-dialog-instances");return t||this.document.data("ui-dialog-instances",t=[]),t},_minHeight:function(){var t=this.options;return"auto"===t.height?t.minHeight:Math.min(t.minHeight,t.height)},_position:function(){var t=this.uiDialog.is(":visible");t||this.uiDialog.show(),this.uiDialog.position(this.options.position),t||this.uiDialog.hide()},_setOptions:function(t){var i=this,s=!1,n={};$.each(t,function(t,e){i._setOption(t,e),t in i.sizeRelatedOptions&&(s=!0),t in i.resizableRelatedOptions&&(n[t]=e)}),s&&(this._size(),this._position()),this.uiDialog.is(":data(ui-resizable)")&&this.uiDialog.resizable("option",n)},_setOption:function(t,e){var i,s=this.uiDialog;"disabled"!==t&&(this._super(t,e),"appendTo"===t&&this.uiDialog.appendTo(this._appendTo()),"buttons"===t&&this._createButtons(),"closeText"===t&&this.uiDialogTitlebarClose.button({label:$("<a>").text(""+this.options.closeText).html()}),"draggable"===t&&((i=s.is(":data(ui-draggable)"))&&!e&&s.draggable("destroy"),!i)&&e&&this._makeDraggable(),"position"===t&&this._position(),"resizable"===t&&((i=s.is(":data(ui-resizable)"))&&!e&&s.resizable("destroy"),i&&"string"==typeof e&&s.resizable("option","handles",e),i||!1===e||this._makeResizable()),"title"===t&&this._title(this.uiDialogTitlebar.find(".ui-dialog-title")),"modal"===t)&&s.attr("aria-modal",e?"true":null)},_size:function(){var t,e,i,s=this.options;this.element.show().css({width:"auto",minHeight:0,maxHeight:"none",height:0}),s.minWidth>s.width&&(s.width=s.minWidth),t=this.uiDialog.css({height:"auto",width:s.width}).outerHeight(),e=Math.max(0,s.minHeight-t),i="number"==typeof s.maxHeight?Math.max(0,s.maxHeight-t):"none","auto"===s.height?this.element.css({minHeight:e,maxHeight:i,height:"auto"}):this.element.height(Math.max(0,s.height-t)),this.uiDialog.is(":data(ui-resizable)")&&this.uiDialog.resizable("option","minHeight",this._minHeight())},_blockFrames:function(){this.iframeBlocks=this.document.find("iframe").map(function(){var t=$(this);return $("<div>").css({position:"absolute",width:t.outerWidth(),height:t.outerHeight()}).appendTo(t.parent()).offset(t.offset())[0]})},_unblockFrames:function(){this.iframeBlocks&&(this.iframeBlocks.remove(),delete this.iframeBlocks)},_allowInteraction:function(t){return!!$(t.target).closest(".ui-dialog").length||!!$(t.target).closest(".ui-datepicker").length},_createOverlay:function(){var i;this.options.modal&&(i=!0,this._delay(function(){i=!1}),this.document.data("ui-dialog-overlays")||this.document.on("focusin.ui-dialog",function(t){var e;i||(e=this._trackingInstances()[0])._allowInteraction(t)||(t.preventDefault(),e._focusTabbable())}.bind(this)),this.overlay=$("<div>").appendTo(this._appendTo()),this._addClass(this.overlay,null,"ui-widget-overlay ui-front"),this._on(this.overlay,{mousedown:"_keepFocus"}),this.document.data("ui-dialog-overlays",(this.document.data("ui-dialog-overlays")||0)+1))},_destroyOverlay:function(){var t;this.options.modal&&this.overlay&&((t=this.document.data("ui-dialog-overlays")-1)?this.document.data("ui-dialog-overlays",t):(this.document.off("focusin.ui-dialog"),this.document.removeData("ui-dialog-overlays")),this.overlay.remove(),this.overlay=null)}}),!0===$.uiBackCompat&&$.widget("ui.dialog",$.ui.dialog,{options:{dialogClass:""},_createWrapper:function(){this._super(),this.uiDialog.addClass(this.options.dialogClass)},_setOption:function(t,e){"dialogClass"===t&&this.uiDialog.removeClass(this.options.dialogClass).addClass(e),this._superApply(arguments)}}),$.ui.dialog,$.widget("ui.droppable",{version:"1.14.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,e=this.options,i=e.accept;this.isover=!1,this.isout=!0,this.accept="function"==typeof i?i:function(t){return t.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(e.scope),e.addClasses&&this._addClass("ui-droppable")},_addToManager:function(t){$.ui.ddmanager.droppables[t]=$.ui.ddmanager.droppables[t]||[],$.ui.ddmanager.droppables[t].push(this)},_splice:function(t){for(var e=0;e<t.length;e++)t[e]===this&&t.splice(e,1)},_destroy:function(){var t=$.ui.ddmanager.droppables[this.options.scope];this._splice(t)},_setOption:function(t,e){var i;"accept"===t?this.accept="function"==typeof e?e:function(t){return t.is(e)}:"scope"===t&&(i=$.ui.ddmanager.droppables[this.options.scope],this._splice(i),this._addToManager(e)),this._super(t,e)},_activate:function(t){var e=$.ui.ddmanager.current;this._addActiveClass(),e&&this._trigger("activate",t,this.ui(e))},_deactivate:function(t){var e=$.ui.ddmanager.current;this._removeActiveClass(),e&&this._trigger("deactivate",t,this.ui(e))},_over:function(t){var e=$.ui.ddmanager.current;e&&(e.currentItem||e.element)[0]!==this.element[0]&&this.accept.call(this.element[0],e.currentItem||e.element)&&(this._addHoverClass(),this._trigger("over",t,this.ui(e)))},_out:function(t){var e=$.ui.ddmanager.current;e&&(e.currentItem||e.element)[0]!==this.element[0]&&this.accept.call(this.element[0],e.currentItem||e.element)&&(this._removeHoverClass(),this._trigger("out",t,this.ui(e)))},_drop:function(e,t){var i=t||$.ui.ddmanager.current,s=!1;return!(!i||(i.currentItem||i.element)[0]===this.element[0]||(this.element.find(":data(ui-droppable)").not(".ui-draggable-dragging").each(function(){var t=$(this).droppable("instance");if(t.options.greedy&&!t.options.disabled&&t.options.scope===i.options.scope&&t.accept.call(t.element[0],i.currentItem||i.element)&&$.ui.intersect(i,$.extend(t,{offset:t.element.offset()}),t.options.tolerance,e))return!(s=!0)}),s)||!this.accept.call(this.element[0],i.currentItem||i.element))&&(this._removeActiveClass(),this._removeHoverClass(),this._trigger("drop",e,this.ui(i)),this.element)},ui:function(t){return{draggable:t.currentItem||t.element,helper:t.helper,position:t.position,offset:t.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")}}),$.ui.intersect=function(t,e,i,s){if(!e.offset)return!1;var n=(t.positionAbs||t.position.absolute).left+t.margins.left,r=(t.positionAbs||t.position.absolute).top+t.margins.top,a=n+t.helperProportions.width,o=r+t.helperProportions.height,l=e.offset.left,h=e.offset.top,c=l+e.proportions().width,p=h+e.proportions().height;switch(i){case"fit":return l<=n&&a<=c&&h<=r&&o<=p;case"intersect":return l<n+t.helperProportions.width/2&&a-t.helperProportions.width/2<c&&h<r+t.helperProportions.height/2&&o-t.helperProportions.height/2<p;case"pointer":return ot(s.pageY,h,e.proportions().height)&&ot(s.pageX,l,e.proportions().width);case"touch":return(h<=r&&r<=p||h<=o&&o<=p||r<h&&p<o)&&(l<=n&&n<=c||l<=a&&a<=c||n<l&&c<a);default:return!1}},$.ui.ddmanager={current:null,droppables:{default:[]},prepareOffsets:function(t,e){var i,s,n=$.ui.ddmanager.droppables[t.options.scope]||[],r=e?e.type:null,a=(t.currentItem||t.element).find(":data(ui-droppable)").addBack();t:for(i=0;i<n.length;i++)if(!(n[i].options.disabled||t&&!n[i].accept.call(n[i].element[0],t.currentItem||t.element))){for(s=0;s<a.length;s++)if(a[s]===n[i].element[0]){n[i].proportions().height=0;continue t}n[i].visible="none"!==n[i].element.css("display"),n[i].visible&&("mousedown"===r&&n[i]._activate.call(n[i],e),n[i].offset=n[i].element.offset(),n[i].proportions({width:n[i].element[0].offsetWidth,height:n[i].element[0].offsetHeight}))}},drop:function(t,e){var i=!1;return $.each(($.ui.ddmanager.droppables[t.options.scope]||[]).slice(),function(){this.options&&(!this.options.disabled&&this.visible&&$.ui.intersect(t,this,this.options.tolerance,e)&&(i=this._drop.call(this,e)||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,e))}),i},dragStart:function(t,e){t.element.parentsUntil("body").on("scroll.droppable",function(){t.options.refreshPositions||$.ui.ddmanager.prepareOffsets(t,e)})},drag:function(n,r){n.options.refreshPositions&&$.ui.ddmanager.prepareOffsets(n,r),$.each($.ui.ddmanager.droppables[n.options.scope]||[],function(){var t,e,i,s;this.options.disabled||this.greedyChild||!this.visible||(s=!(s=$.ui.intersect(n,this,this.options.tolerance,r))&&this.isover?"isout":s&&!this.isover?"isover":null)&&(this.options.greedy&&(e=this.options.scope,(i=this.element.parents(":data(ui-droppable)").filter(function(){return $(this).droppable("instance").options.scope===e})).length)&&((t=$(i[0]).droppable("instance")).greedyChild="isover"===s),t&&"isover"===s&&(t.isover=!1,t.isout=!0,t._out.call(t,r)),this[s]=!0,this["isout"===s?"isover":"isout"]=!1,this["isover"===s?"_over":"_out"].call(this,r),t)&&"isout"===s&&(t.isout=!1,t.isover=!0,t._over.call(t,r))})},dragStop:function(t,e){t.element.parentsUntil("body").off("scroll.droppable"),t.options.refreshPositions||$.ui.ddmanager.prepareOffsets(t,e)}},!0===$.uiBackCompat&&$.widget("ui.droppable",$.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)}}),$.ui.droppable,$.widget("ui.progressbar",{version:"1.14.1",options:{classes:{"ui-progressbar":"ui-corner-all","ui-progressbar-value":"ui-corner-left","ui-progressbar-complete":"ui-corner-right"},max:100,value:0,change:null,complete:null},min:0,_create:function(){this.oldValue=this.options.value=this._constrainedValue(),this.element.attr({role:"progressbar","aria-valuemin":this.min}),this._addClass("ui-progressbar","ui-widget ui-widget-content"),this.valueDiv=$("<div>").appendTo(this.element),this._addClass(this.valueDiv,"ui-progressbar-value","ui-widget-header"),this._refreshValue()},_destroy:function(){this.element.removeAttr("role aria-valuemin aria-valuemax aria-valuenow"),this.valueDiv.remove()},value:function(t){if(void 0===t)return this.options.value;this.options.value=this._constrainedValue(t),this._refreshValue()},_constrainedValue:function(t){return void 0===t&&(t=this.options.value),this.indeterminate=!1===t,"number"!=typeof t&&(t=0),!this.indeterminate&&Math.min(this.options.max,Math.max(this.min,t))},_setOptions:function(t){var e=t.value;delete t.value,this._super(t),this.options.value=this._constrainedValue(e),this._refreshValue()},_setOption:function(t,e){"max"===t&&(e=Math.max(this.min,e)),this._super(t,e)},_setOptionDisabled:function(t){this._super(t),this.element.attr("aria-disabled",t),this._toggleClass(null,"ui-state-disabled",!!t)},_percentage:function(){return this.indeterminate?100:100*(this.options.value-this.min)/(this.options.max-this.min)},_refreshValue:function(){var t=this.options.value,e=this._percentage();this.valueDiv.toggle(this.indeterminate||t>this.min).width(e.toFixed(0)+"%"),this._toggleClass(this.valueDiv,"ui-progressbar-complete",null,t===this.options.max)._toggleClass("ui-progressbar-indeterminate",null,this.indeterminate),this.indeterminate?(this.element.removeAttr("aria-valuenow"),this.overlayDiv||(this.overlayDiv=$("<div>").appendTo(this.valueDiv),this._addClass(this.overlayDiv,"ui-progressbar-overlay"))):(this.element.attr({"aria-valuemax":this.options.max,"aria-valuenow":t}),this.overlayDiv&&(this.overlayDiv.remove(),this.overlayDiv=null)),this.oldValue!==t&&(this.oldValue=t,this._trigger("change")),t===this.options.max&&this._trigger("complete")}}),$.widget("ui.selectable",$.ui.mouse,{version:"1.14.1",options:{appendTo:"body",autoRefresh:!0,distance:0,filter:"*",tolerance:"touch",selected:null,selecting:null,start:null,stop:null,unselected:null,unselecting:null},_create:function(){var i=this;this._addClass("ui-selectable"),this.dragged=!1,this.refresh=function(){i.elementPos=$(i.element[0]).offset(),i.selectees=$(i.options.filter,i.element[0]),i._addClass(i.selectees,"ui-selectee"),i.selectees.each(function(){var t=$(this),e={left:(e=t.offset()).left-i.elementPos.left,top:e.top-i.elementPos.top};$.data(this,"selectable-item",{element:this,$element:t,left:e.left,top:e.top,right:e.left+t.outerWidth(),bottom:e.top+t.outerHeight(),startselected:!1,selected:t.hasClass("ui-selected"),selecting:t.hasClass("ui-selecting"),unselecting:t.hasClass("ui-unselecting")})})},this.refresh(),this._mouseInit(),this.helper=$("<div>"),this._addClass(this.helper,"ui-selectable-helper")},_destroy:function(){this.selectees.removeData("selectable-item"),this._mouseDestroy()},_mouseStart:function(i){var s=this,t=this.options;this.opos=[i.pageX,i.pageY],this.elementPos=$(this.element[0]).offset(),this.options.disabled||(this.selectees=$(t.filter,this.element[0]),this._trigger("start",i),$(t.appendTo).append(this.helper),this.helper.css({left:i.pageX,top:i.pageY,width:0,height:0}),t.autoRefresh&&this.refresh(),this.selectees.filter(".ui-selected").each(function(){var t=$.data(this,"selectable-item");t.startselected=!0,i.metaKey||i.ctrlKey||(s._removeClass(t.$element,"ui-selected"),t.selected=!1,s._addClass(t.$element,"ui-unselecting"),t.unselecting=!0,s._trigger("unselecting",i,{unselecting:t.element}))}),$(i.target).parents().addBack().each(function(){var t,e=$.data(this,"selectable-item");if(e)return t=!i.metaKey&&!i.ctrlKey||!e.$element.hasClass("ui-selected"),s._removeClass(e.$element,t?"ui-unselecting":"ui-selected")._addClass(e.$element,t?"ui-selecting":"ui-unselecting"),e.unselecting=!t,e.selecting=t,(e.selected=t)?s._trigger("selecting",i,{selecting:e.element}):s._trigger("unselecting",i,{unselecting:e.element}),!1}))},_mouseDrag:function(s){var t,n,r,a,o,l,h;if(this.dragged=!0,!this.options.disabled)return r=(n=this).options,a=this.opos[0],o=this.opos[1],(l=s.pageX)<a&&(t=l,l=a,a=t),(h=s.pageY)<o&&(t=h,h=o,o=t),this.helper.css({left:a,top:o,width:l-a,height:h-o}),this.selectees.each(function(){var t=$.data(this,"selectable-item"),e=!1,i={};t&&t.element!==n.element[0]&&(i.left=t.left+n.elementPos.left,i.right=t.right+n.elementPos.left,i.top=t.top+n.elementPos.top,i.bottom=t.bottom+n.elementPos.top,"touch"===r.tolerance?e=!(l<i.left||i.right<a||h<i.top||i.bottom<o):"fit"===r.tolerance&&(e=a<i.left&&i.right<l&&o<i.top&&i.bottom<h),e?(t.selected&&(n._removeClass(t.$element,"ui-selected"),t.selected=!1),t.unselecting&&(n._removeClass(t.$element,"ui-unselecting"),t.unselecting=!1),t.selecting||(n._addClass(t.$element,"ui-selecting"),t.selecting=!0,n._trigger("selecting",s,{selecting:t.element}))):(t.selecting&&((s.metaKey||s.ctrlKey)&&t.startselected?(n._removeClass(t.$element,"ui-selecting"),t.selecting=!1,n._addClass(t.$element,"ui-selected"),t.selected=!0):(n._removeClass(t.$element,"ui-selecting"),t.selecting=!1,t.startselected&&(n._addClass(t.$element,"ui-unselecting"),t.unselecting=!0),n._trigger("unselecting",s,{unselecting:t.element}))),!t.selected||s.metaKey||s.ctrlKey||t.startselected||(n._removeClass(t.$element,"ui-selected"),t.selected=!1,n._addClass(t.$element,"ui-unselecting"),t.unselecting=!0,n._trigger("unselecting",s,{unselecting:t.element}))))}),!1},_mouseStop:function(e){var i=this;return this.dragged=!1,$(".ui-unselecting",this.element[0]).each(function(){var t=$.data(this,"selectable-item");i._removeClass(t.$element,"ui-unselecting"),t.unselecting=!1,t.startselected=!1,i._trigger("unselected",e,{unselected:t.element})}),$(".ui-selecting",this.element[0]).each(function(){var t=$.data(this,"selectable-item");i._removeClass(t.$element,"ui-selecting")._addClass(t.$element,"ui-selected"),t.selecting=!1,t.selected=!0,t.startselected=!0,i._trigger("selected",e,{selected:t.element})}),this._trigger("stop",e),this.helper.remove(),!1}}),$.widget("ui.selectmenu",[$.ui.formResetMixin,{version:"1.14.1",defaultElement:"<select>",options:{appendTo:null,classes:{"ui-selectmenu-button-open":"ui-corner-top","ui-selectmenu-button-closed":"ui-corner-all"},disabled:null,icons:{button:"ui-icon-triangle-1-s"},position:{my:"left top",at:"left bottom",collision:"none"},width:!1,change:null,close:null,focus:null,open:null,select:null},_create:function(){var t=this.element.uniqueId().attr("id");this.ids={element:t,button:t+"-button",menu:t+"-menu"},this._drawButton(),this._drawMenu(),this._bindFormResetHandler(),this._rendered=!1,this.menuItems=$()},_drawButton:function(){var t,e=this,i=this._parseOption(this.element.find("option:selected"),this.element[0].selectedIndex);this.labels=this.element.labels().attr("for",this.ids.button),this._on(this.labels,{click:function(t){this.button.trigger("focus"),t.preventDefault()}}),this.element.hide(),this.button=$("<span>",{tabindex:this.options.disabled?-1:0,id:this.ids.button,role:"combobox","aria-expanded":"false","aria-autocomplete":"list","aria-owns":this.ids.menu,"aria-haspopup":"true",title:this.element.attr("title")}).insertAfter(this.element),this._addClass(this.button,"ui-selectmenu-button ui-selectmenu-button-closed","ui-button ui-widget"),t=$("<span>").appendTo(this.button),this._addClass(t,"ui-selectmenu-icon","ui-icon "+this.options.icons.button),this.buttonItem=this._renderButtonItem(i).appendTo(this.button),!1!==this.options.width&&this._resizeButton(),this._on(this.button,this._buttonEvents),this.button.one("focusin",function(){e._rendered||e._refreshMenu()})},_drawMenu:function(){var i=this;this.menu=$("<ul>",{"aria-hidden":"true","aria-labelledby":this.ids.button,id:this.ids.menu}),this.menuWrap=$("<div>").append(this.menu),this._addClass(this.menuWrap,"ui-selectmenu-menu","ui-front"),this.menuWrap.appendTo(this._appendTo()),this.menuInstance=this.menu.menu({classes:{"ui-menu":"ui-corner-bottom"},role:"listbox",select:function(t,e){t.preventDefault(),i._select(e.item.data("ui-selectmenu-item"),t)},focus:function(t,e){e=e.item.data("ui-selectmenu-item"),null!=i.focusIndex&&e.index!==i.focusIndex&&(i._trigger("focus",t,{item:e}),i.isOpen||i._select(e,t)),i.focusIndex=e.index,i.button.attr("aria-activedescendant",i.menuItems.eq(e.index).attr("id"))}}).menu("instance"),this.menuInstance._off(this.menu,"mouseleave"),this.menuInstance._closeOnDocumentClick=function(){return!1},this.menuInstance._isDivider=function(){return!1}},refresh:function(){this._refreshMenu(),this.buttonItem.replaceWith(this.buttonItem=this._renderButtonItem(this._getSelectedItem().data("ui-selectmenu-item")||{})),null===this.options.width&&this._resizeButton()},_refreshMenu:function(){var t=this.element.find("option");this.menu.empty(),this._parseOptions(t),this._renderMenu(this.menu,this.items),this.menuInstance.refresh(),this.menuItems=this.menu.find("li").not(".ui-selectmenu-optgroup").find(".ui-menu-item-wrapper"),this._rendered=!0,t.length&&(t=this._getSelectedItem(),this.menuInstance.focus(null,t),this._setAria(t.data("ui-selectmenu-item")),this._setOption("disabled",this.element.prop("disabled")))},open:function(t){this.options.disabled||(this._rendered?(this._removeClass(this.menu.find(".ui-state-active"),null,"ui-state-active"),this.menuInstance.focus(null,this._getSelectedItem())):this._refreshMenu(),this.menuItems.length&&(this.isOpen=!0,this._toggleAttr(),this._resizeMenu(),this._position(),this._on(this.document,this._documentClick),this._trigger("open",t)))},_position:function(){this.menuWrap.position($.extend({of:this.button},this.options.position))},close:function(t){this.isOpen&&(this.isOpen=!1,this._toggleAttr(),this.range=null,this._off(this.document),this._trigger("close",t))},widget:function(){return this.button},menuWidget:function(){return this.menu},_renderButtonItem:function(t){var e=$("<span>");return this._setText(e,t.label),this._addClass(e,"ui-selectmenu-text"),e},_renderMenu:function(s,t){var n=this,r="";$.each(t,function(t,e){var i;e.optgroup!==r&&(i=$("<li>",{text:e.optgroup}),n._addClass(i,"ui-selectmenu-optgroup","ui-menu-divider"+(e.element.parent("optgroup").prop("disabled")?" ui-state-disabled":"")),i.appendTo(s),r=e.optgroup),n._renderItemData(s,e)})},_renderItemData:function(t,e){return this._renderItem(t,e).data("ui-selectmenu-item",e)},_renderItem:function(t,e){var i=$("<li>"),s=$("<div>",{title:e.element.attr("title")});return e.disabled&&this._addClass(i,null,"ui-state-disabled"),e.hidden?i.prop("hidden",!0):this._setText(s,e.label),i.append(s).appendTo(t)},_setText:function(t,e){e?t.text(e):t.html("&#160;")},_move:function(t,e){var i,s=".ui-menu-item";this.isOpen?i=this.menuItems.eq(this.focusIndex).parent("li"):(i=this.menuItems.eq(this.element[0].selectedIndex).parent("li"),s+=":not(.ui-state-disabled)"),(i="first"===t||"last"===t?i["first"===t?"prevAll":"nextAll"](s).eq(-1):i[t+"All"](s).eq(0)).length&&this.menuInstance.focus(e,i)},_getSelectedItem:function(){return this.menuItems.eq(this.element[0].selectedIndex).parent("li")},_toggle:function(t){this[this.isOpen?"close":"open"](t)},_setSelection:function(){var t;this.range&&((t=window.getSelection()).removeAllRanges(),t.addRange(this.range))},_documentClick:{mousedown:function(t){this.isOpen&&!$(t.target).closest(".ui-selectmenu-menu, #"+CSS.escape(this.ids.button)).length&&this.close(t)}},_buttonEvents:{mousedown:function(){var t=window.getSelection();t.rangeCount&&(this.range=t.getRangeAt(0))},click:function(t){this._setSelection(),this._toggle(t)},keydown:function(t){var e=!0;switch(t.keyCode){case $.ui.keyCode.TAB:case $.ui.keyCode.ESCAPE:this.close(t),e=!1;break;case $.ui.keyCode.ENTER:this.isOpen&&this._selectFocusedItem(t);break;case $.ui.keyCode.UP:t.altKey?this._toggle(t):this._move("prev",t);break;case $.ui.keyCode.DOWN:t.altKey?this._toggle(t):this._move("next",t);break;case $.ui.keyCode.SPACE:this.isOpen?this._selectFocusedItem(t):this._toggle(t);break;case $.ui.keyCode.LEFT:this._move("prev",t);break;case $.ui.keyCode.RIGHT:this._move("next",t);break;case $.ui.keyCode.HOME:case $.ui.keyCode.PAGE_UP:this._move("first",t);break;case $.ui.keyCode.END:case $.ui.keyCode.PAGE_DOWN:this._move("last",t);break;default:this.menu.trigger(t),e=!1}e&&t.preventDefault()}},_selectFocusedItem:function(t){var e=this.menuItems.eq(this.focusIndex).parent("li");e.hasClass("ui-state-disabled")||this._select(e.data("ui-selectmenu-item"),t)},_select:function(t,e){var i=this.element[0].selectedIndex;this.element[0].selectedIndex=t.index,this.buttonItem.replaceWith(this.buttonItem=this._renderButtonItem(t)),this._setAria(t),this._trigger("select",e,{item:t}),t.index!==i&&this._trigger("change",e,{item:t}),this.close(e)},_setAria:function(t){t=this.menuItems.eq(t.index).attr("id"),this.button.attr({"aria-labelledby":t,"aria-activedescendant":t}),this.menu.attr("aria-activedescendant",t)},_setOption:function(t,e){var i;"icons"===t&&(i=this.button.find("span.ui-icon"),this._removeClass(i,null,this.options.icons.button)._addClass(i,null,e.button)),this._super(t,e),"appendTo"===t&&this.menuWrap.appendTo(this._appendTo()),"width"===t&&this._resizeButton()},_setOptionDisabled:function(t){this._super(t),this.menuInstance.option("disabled",t),this.button.attr("aria-disabled",t),this._toggleClass(this.button,null,"ui-state-disabled",t),this.element.prop("disabled",t),t?(this.button.attr("tabindex",-1),this.close()):this.button.attr("tabindex",0)},_appendTo:function(){var t=this.options.appendTo;return(t=(t=t&&(t.jquery||t.nodeType?$(t):this.document.find(t).eq(0)))&&t[0]?t:this.element.closest(".ui-front, dialog")).length?t:this.document[0].body},_toggleAttr:function(){this.button.attr("aria-expanded",this.isOpen),this._removeClass(this.button,"ui-selectmenu-button-"+(this.isOpen?"closed":"open"))._addClass(this.button,"ui-selectmenu-button-"+(this.isOpen?"open":"closed"))._toggleClass(this.menuWrap,"ui-selectmenu-open",null,this.isOpen),this.menu.attr("aria-hidden",!this.isOpen)},_resizeButton:function(){var t=this.options.width;!1===t?this.button.css("width",""):(null===t&&(t=this.element.show().outerWidth(),this.element.hide()),this.button.outerWidth(t))},_resizeMenu:function(){this.menu.outerWidth(Math.max(this.button.outerWidth(),this.menu.width("").outerWidth()))},_getCreateOptions:function(){var t=this._super();return t.disabled=this.element.prop("disabled"),t},_parseOptions:function(t){var i=this,s=[];t.each(function(t,e){s.push(i._parseOption($(e),t))}),this.items=s},_parseOption:function(t,e){var i=t.parent("optgroup");return{element:t,index:e,value:t.val(),label:t.text(),hidden:i.prop("hidden")||t.prop("hidden"),optgroup:i.attr("label")||"",disabled:i.prop("disabled")||t.prop("disabled")}},_destroy:function(){this._unbindFormResetHandler(),this.menuWrap.remove(),this.button.remove(),this.element.show(),this.element.removeUniqueId(),this.labels.attr("for",this.ids.element)}}]),$.widget("ui.slider",$.ui.mouse,{version:"1.14.1",widgetEventPrefix:"slide",options:{animate:!1,classes:{"ui-slider":"ui-corner-all","ui-slider-handle":"ui-corner-all","ui-slider-range":"ui-corner-all ui-widget-header"},distance:0,max:100,min:0,orientation:"horizontal",range:!1,step:1,value:0,values:null,change:null,slide:null,start:null,stop:null},numPages:5,_create:function(){this._keySliding=!1,this._mouseSliding=!1,this._animateOff=!0,this._handleIndex=null,this._detectOrientation(),this._mouseInit(),this._calculateNewMax(),this._addClass("ui-slider ui-slider-"+this.orientation,"ui-widget ui-widget-content"),this._refresh(),this._animateOff=!1},_refresh:function(){this._createRange(),this._createHandles(),this._setupEvents(),this._refreshValue()},_createHandles:function(){var t,e=this.options,i=this.element.find(".ui-slider-handle"),s=[],n=e.values&&e.values.length||1;for(i.length>n&&(i.slice(n).remove(),i=i.slice(0,n)),t=i.length;t<n;t++)s.push("<span tabindex='0'></span>");this.handles=i.add($(s.join("")).appendTo(this.element)),this._addClass(this.handles,"ui-slider-handle","ui-state-default"),this.handle=this.handles.eq(0),this.handles.each(function(t){$(this).data("ui-slider-handle-index",t).attr("tabIndex",0)})},_createRange:function(){var t=this.options;t.range?(!0===t.range&&(t.values?t.values.length&&2!==t.values.length?t.values=[t.values[0],t.values[0]]:Array.isArray(t.values)&&(t.values=t.values.slice(0)):t.values=[this._valueMin(),this._valueMin()]),this.range&&this.range.length?(this._removeClass(this.range,"ui-slider-range-min ui-slider-range-max"),this.range.css({left:"",bottom:""})):(this.range=$("<div>").appendTo(this.element),this._addClass(this.range,"ui-slider-range")),"min"!==t.range&&"max"!==t.range||this._addClass(this.range,"ui-slider-range-"+t.range)):(this.range&&this.range.remove(),this.range=null)},_setupEvents:function(){this._off(this.handles),this._on(this.handles,this._handleEvents),this._hoverable(this.handles),this._focusable(this.handles)},_destroy:function(){this.handles.remove(),this.range&&this.range.remove(),this._mouseDestroy()},_mouseCapture:function(t){var i,s,n,r,e,a,o=this,l=this.options;return!l.disabled&&(this.elementSize={width:this.element.outerWidth(),height:this.element.outerHeight()},this.elementOffset=this.element.offset(),e={x:t.pageX,y:t.pageY},i=this._normValueFromMouse(e),s=this._valueMax()-this._valueMin()+1,this.handles.each(function(t){var e=Math.abs(i-o.values(t));(e<s||s===e&&(t===o._lastChangedValue||o.values(t)===l.min))&&(s=e,n=$(this),r=t)}),!1!==this._start(t,r))&&(this._mouseSliding=!0,this._handleIndex=r,this._addClass(n,null,"ui-state-active"),n.trigger("focus"),e=n.offset(),a=!$(t.target).parents().addBack().is(".ui-slider-handle"),this._clickOffset=a?{left:0,top:0}:{left:t.pageX-e.left-n.width()/2,top:t.pageY-e.top-n.height()/2-(parseInt(n.css("borderTopWidth"),10)||0)-(parseInt(n.css("borderBottomWidth"),10)||0)+(parseInt(n.css("marginTop"),10)||0)},this.handles.hasClass("ui-state-hover")||this._slide(t,r,i),this._animateOff=!0)},_mouseStart:function(){return!0},_mouseDrag:function(t){var e={x:t.pageX,y:t.pageY},e=this._normValueFromMouse(e);return this._slide(t,this._handleIndex,e),!1},_mouseStop:function(t){return this._removeClass(this.handles,null,"ui-state-active"),this._mouseSliding=!1,this._stop(t,this._handleIndex),this._change(t,this._handleIndex),this._handleIndex=null,this._clickOffset=null,this._animateOff=!1},_detectOrientation:function(){this.orientation="vertical"===this.options.orientation?"vertical":"horizontal"},_normValueFromMouse:function(t){var e;return(t=1<(t=(t="horizontal"===this.orientation?(e=this.elementSize.width,t.x-this.elementOffset.left-(this._clickOffset?this._clickOffset.left:0)):(e=this.elementSize.height,t.y-this.elementOffset.top-(this._clickOffset?this._clickOffset.top:0)))/e)?1:t)<0&&(t=0),"vertical"===this.orientation&&(t=1-t),e=this._valueMax()-this._valueMin(),t=this._valueMin()+t*e,this._trimAlignValue(t)},_uiHash:function(t,e,i){var s={handle:this.handles[t],handleIndex:t,value:void 0!==e?e:this.value()};return this._hasMultipleValues()&&(s.value=void 0!==e?e:this.values(t),s.values=i||this.values()),s},_hasMultipleValues:function(){return this.options.values&&this.options.values.length},_start:function(t,e){return this._trigger("start",t,this._uiHash(e))},_slide:function(t,e,i){var s,n=this.value(),r=this.values();this._hasMultipleValues()&&(s=this.values(e?0:1),n=this.values(e),2===this.options.values.length&&!0===this.options.range&&(i=0===e?Math.min(s,i):Math.max(s,i)),r[e]=i),i!==n&&!1!==this._trigger("slide",t,this._uiHash(e,i,r))&&(this._hasMultipleValues()?this.values(e,i):this.value(i))},_stop:function(t,e){this._trigger("stop",t,this._uiHash(e))},_change:function(t,e){this._keySliding||this._mouseSliding||(this._lastChangedValue=e,this._trigger("change",t,this._uiHash(e)))},value:function(t){if(!arguments.length)return this._value();this.options.value=this._trimAlignValue(t),this._refreshValue(),this._change(null,0)},values:function(t,e){var i,s,n;if(1<arguments.length)this.options.values[t]=this._trimAlignValue(e),this._refreshValue(),this._change(null,t);else{if(!arguments.length)return this._values();if(!Array.isArray(t))return this._hasMultipleValues()?this._values(t):this.value();for(i=this.options.values,s=t,n=0;n<i.length;n+=1)i[n]=this._trimAlignValue(s[n]),this._change(null,n);this._refreshValue()}},_setOption:function(t,e){var i,s=0;switch("range"===t&&!0===this.options.range&&("min"===e?(this.options.value=this._values(0),this.options.values=null):"max"===e&&(this.options.value=this._values(this.options.values.length-1),this.options.values=null)),Array.isArray(this.options.values)&&(s=this.options.values.length),this._super(t,e),t){case"orientation":this._detectOrientation(),this._removeClass("ui-slider-horizontal ui-slider-vertical")._addClass("ui-slider-"+this.orientation),this._refreshValue(),this.options.range&&this._refreshRange(e),this.handles.css("horizontal"===e?"bottom":"left","");break;case"value":this._animateOff=!0,this._refreshValue(),this._change(null,0),this._animateOff=!1;break;case"values":for(this._animateOff=!0,this._refreshValue(),i=s-1;0<=i;i--)this._change(null,i);this._animateOff=!1;break;case"step":case"min":case"max":this._animateOff=!0,this._calculateNewMax(),this._refreshValue(),this._animateOff=!1;break;case"range":this._animateOff=!0,this._refresh(),this._animateOff=!1}},_setOptionDisabled:function(t){this._super(t),this._toggleClass(null,"ui-state-disabled",!!t)},_value:function(){var t=this.options.value;return this._trimAlignValue(t)},_values:function(t){var e,i;if(arguments.length)return t=this.options.values[t],this._trimAlignValue(t);if(this._hasMultipleValues()){for(e=this.options.values.slice(),i=0;i<e.length;i+=1)e[i]=this._trimAlignValue(e[i]);return e}return[]},_trimAlignValue:function(t){var e,i;return t<=this._valueMin()?this._valueMin():t>=this._valueMax()?this._valueMax():(e=0<this.options.step?this.options.step:1,i=t-(t=(t-this._valueMin())%e),2*Math.abs(t)>=e&&(i+=0<t?e:-e),parseFloat(i.toFixed(5)))},_calculateNewMax:function(){var t=this.options.max,e=this._valueMin(),i=this.options.step;(t=Math.round((t-e)/i)*i+e)>this.options.max&&(t-=i),this.max=parseFloat(t.toFixed(this._precision()))},_precision:function(){var t=this._precisionOf(this.options.step);return null!==this.options.min?Math.max(t,this._precisionOf(this.options.min)):t},_precisionOf:function(t){var e=(t=t.toString()).indexOf(".");return-1===e?0:t.length-e-1},_valueMin:function(){return this.options.min},_valueMax:function(){return this.max},_refreshRange:function(t){"vertical"===t&&this.range.css({width:"",left:""}),"horizontal"===t&&this.range.css({height:"",bottom:""})},_refreshValue:function(){var e,i,t,s,n,r=this.options.range,a=this.options,o=this,l=!this._animateOff&&a.animate,h={};this._hasMultipleValues()?this.handles.each(function(t){i=(o.values(t)-o._valueMin())/(o._valueMax()-o._valueMin())*100,h["horizontal"===o.orientation?"left":"bottom"]=i+"%",$(this).stop(1,1)[l?"animate":"css"](h,a.animate),!0===o.options.range&&("horizontal"===o.orientation?(0===t&&o.range.stop(1,1)[l?"animate":"css"]({left:i+"%"},a.animate),1===t&&o.range[l?"animate":"css"]({width:i-e+"%"},{queue:!1,duration:a.animate})):(0===t&&o.range.stop(1,1)[l?"animate":"css"]({bottom:i+"%"},a.animate),1===t&&o.range[l?"animate":"css"]({height:i-e+"%"},{queue:!1,duration:a.animate}))),e=i}):(t=this.value(),s=this._valueMin(),n=this._valueMax(),i=n!==s?(t-s)/(n-s)*100:0,h["horizontal"===this.orientation?"left":"bottom"]=i+"%",this.handle.stop(1,1)[l?"animate":"css"](h,a.animate),"min"===r&&"horizontal"===this.orientation&&this.range.stop(1,1)[l?"animate":"css"]({width:i+"%"},a.animate),"max"===r&&"horizontal"===this.orientation&&this.range.stop(1,1)[l?"animate":"css"]({width:100-i+"%"},a.animate),"min"===r&&"vertical"===this.orientation&&this.range.stop(1,1)[l?"animate":"css"]({height:i+"%"},a.animate),"max"===r&&"vertical"===this.orientation&&this.range.stop(1,1)[l?"animate":"css"]({height:100-i+"%"},a.animate))},_handleEvents:{keydown:function(t){var e,i,s,n=$(t.target).data("ui-slider-handle-index");switch(t.keyCode){case $.ui.keyCode.HOME:case $.ui.keyCode.END:case $.ui.keyCode.PAGE_UP:case $.ui.keyCode.PAGE_DOWN:case $.ui.keyCode.UP:case $.ui.keyCode.RIGHT:case $.ui.keyCode.DOWN:case $.ui.keyCode.LEFT:if(t.preventDefault(),this._keySliding||(this._keySliding=!0,this._addClass($(t.target),null,"ui-state-active"),!1!==this._start(t,n)))break;return}switch(s=this.options.step,e=i=this._hasMultipleValues()?this.values(n):this.value(),t.keyCode){case $.ui.keyCode.HOME:i=this._valueMin();break;case $.ui.keyCode.END:i=this._valueMax();break;case $.ui.keyCode.PAGE_UP:i=this._trimAlignValue(e+(this._valueMax()-this._valueMin())/this.numPages);break;case $.ui.keyCode.PAGE_DOWN:i=this._trimAlignValue(e-(this._valueMax()-this._valueMin())/this.numPages);break;case $.ui.keyCode.UP:case $.ui.keyCode.RIGHT:if(e===this._valueMax())return;i=this._trimAlignValue(e+s);break;case $.ui.keyCode.DOWN:case $.ui.keyCode.LEFT:if(e===this._valueMin())return;i=this._trimAlignValue(e-s)}this._slide(t,n,i)},keyup:function(t){var e=$(t.target).data("ui-slider-handle-index");this._keySliding&&(this._keySliding=!1,this._stop(t,e),this._change(t,e),this._removeClass($(t.target),null,"ui-state-active"))}}}),$.widget("ui.sortable",$.ui.mouse,{version:"1.14.1",widgetEventPrefix:"sort",ready:!1,options:{appendTo:"parent",axis:!1,connectWith:!1,containment:!1,cursor:"auto",cursorAt:!1,dropOnEmpty:!0,forcePlaceholderSize:!1,forceHelperSize:!1,grid:!1,handle:!1,helper:"original",items:"> *",opacity:!1,placeholder:!1,revert:!1,scroll:!0,scrollSensitivity:20,scrollSpeed:20,scope:"default",tolerance:"intersect",zIndex:1e3,activate:null,beforeStop:null,change:null,deactivate:null,out:null,over:null,receive:null,remove:null,sort:null,start:null,stop:null,update:null},_isOverAxis:function(t,e,i){return e<=t&&t<e+i},_isFloating:function(t){return/left|right/.test(t.css("float"))||/inline|table-cell/.test(t.css("display"))},_create:function(){this.containerCache={},this._addClass("ui-sortable"),this.refresh(),this.offset=this.element.offset(),this._mouseInit(),this._setHandleClassName(),this.ready=!0},_setOption:function(t,e){this._super(t,e),"handle"===t&&this._setHandleClassName()},_setHandleClassName:function(){var t=this;this._removeClass(this.element.find(".ui-sortable-handle"),"ui-sortable-handle"),$.each(this.items,function(){t._addClass(this.instance.options.handle?this.item.find(this.instance.options.handle):this.item,"ui-sortable-handle")})},_destroy:function(){this._mouseDestroy();for(var t=this.items.length-1;0<=t;t--)this.items[t].item.removeData(this.widgetName+"-item");return this},_mouseCapture:function(t,e){var i=null,s=!1,n=this;return!(this.reverting||this.options.disabled||"static"===this.options.type||(this._refreshItems(t),$(t.target).parents().each(function(){if($.data(this,n.widgetName+"-item")===n)return i=$(this),!1}),!(i=$.data(t.target,n.widgetName+"-item")===n?$(t.target):i))||(this.options.handle&&!e&&($(this.options.handle,i).find("*").addBack().each(function(){this===t.target&&(s=!0)}),!s)||(this.currentItem=i,this._removeCurrentsFromItems(),0)))},_mouseStart:function(t,e,i){var s,n,r=this.options;if((this.currentContainer=this).refreshPositions(),this.appendTo=$("parent"!==r.appendTo?r.appendTo:this.currentItem.parent()),this.helper=this._createHelper(t),this._cacheHelperProportions(),this._cacheMargins(),this.offset=this.currentItem.offset(),this.offset={top:this.offset.top-this.margins.top,left:this.offset.left-this.margins.left},$.extend(this.offset,{click:{left:t.pageX-this.offset.left,top:t.pageY-this.offset.top},relative:this._getRelativeOffset()}),this.helper.css("position","absolute"),this.cssPosition=this.helper.css("position"),r.cursorAt&&this._adjustOffsetFromHelper(r.cursorAt),this.domPosition={prev:this.currentItem.prev()[0],parent:this.currentItem.parent()[0]},this.helper[0]!==this.currentItem[0]&&this.currentItem.hide(),this._createPlaceholder(),this.scrollParent=this.placeholder.scrollParent(),$.extend(this.offset,{parent:this._getParentOffset()}),r.containment&&this._setContainment(),r.cursor&&"auto"!==r.cursor&&(n=this.document.find("body"),this._storedStylesheet=$("<style>*{ cursor: "+r.cursor+" !important; }</style>").appendTo(n)),r.zIndex&&(this.helper.css("zIndex")&&(this._storedZIndex=this.helper.css("zIndex")),this.helper.css("zIndex",r.zIndex)),r.opacity&&(this.helper.css("opacity")&&(this._storedOpacity=this.helper.css("opacity")),this.helper.css("opacity",r.opacity)),this.scrollParent[0]!==this.document[0]&&"HTML"!==this.scrollParent[0].tagName&&(this.overflowOffset=this.scrollParent.offset()),this._trigger("start",t,this._uiHash()),this._preserveHelperProportions||this._cacheHelperProportions(),!i)for(s=this.containers.length-1;0<=s;s--)this.containers[s]._trigger("activate",t,this._uiHash(this));return $.ui.ddmanager&&($.ui.ddmanager.current=this),$.ui.ddmanager&&!r.dropBehaviour&&$.ui.ddmanager.prepareOffsets(this,t),this.dragging=!0,this._addClass(this.helper,"ui-sortable-helper"),this.helper.parent().is(this.appendTo)||(this.helper.detach().appendTo(this.appendTo),this.offset.parent=this._getParentOffset()),this.position=this.originalPosition=this._generatePosition(t),this.originalPageX=t.pageX,this.originalPageY=t.pageY,this.lastPositionAbs=this.positionAbs=this._convertPositionTo("absolute"),this._mouseDrag(t),!0},_scroll:function(t){var e=this.options,i=!1;return this.scrollParent[0]!==this.document[0]&&"HTML"!==this.scrollParent[0].tagName?(this.overflowOffset.top+this.scrollParent[0].offsetHeight-t.pageY<e.scrollSensitivity?this.scrollParent[0].scrollTop=i=this.scrollParent[0].scrollTop+e.scrollSpeed:t.pageY-this.overflowOffset.top<e.scrollSensitivity&&(this.scrollParent[0].scrollTop=i=this.scrollParent[0].scrollTop-e.scrollSpeed),this.overflowOffset.left+this.scrollParent[0].offsetWidth-t.pageX<e.scrollSensitivity?this.scrollParent[0].scrollLeft=i=this.scrollParent[0].scrollLeft+e.scrollSpeed:t.pageX-this.overflowOffset.left<e.scrollSensitivity&&(this.scrollParent[0].scrollLeft=i=this.scrollParent[0].scrollLeft-e.scrollSpeed)):(t.pageY-this.document.scrollTop()<e.scrollSensitivity?i=this.document.scrollTop(this.document.scrollTop()-e.scrollSpeed):this.window.height()-(t.pageY-this.document.scrollTop())<e.scrollSensitivity&&(i=this.document.scrollTop(this.document.scrollTop()+e.scrollSpeed)),t.pageX-this.document.scrollLeft()<e.scrollSensitivity?i=this.document.scrollLeft(this.document.scrollLeft()-e.scrollSpeed):this.window.width()-(t.pageX-this.document.scrollLeft())<e.scrollSensitivity&&(i=this.document.scrollLeft(this.document.scrollLeft()+e.scrollSpeed))),i},_mouseDrag:function(t){var e,i,s,n,r=this.options;for(this.position=this._generatePosition(t),this.positionAbs=this._convertPositionTo("absolute"),this.options.axis&&"y"===this.options.axis||(this.helper[0].style.left=this.position.left+"px"),this.options.axis&&"x"===this.options.axis||(this.helper[0].style.top=this.position.top+"px"),r.scroll&&!1!==this._scroll(t)&&(this._refreshItemPositions(!0),$.ui.ddmanager)&&!r.dropBehaviour&&$.ui.ddmanager.prepareOffsets(this,t),this.dragDirection={vertical:this._getDragVerticalDirection(),horizontal:this._getDragHorizontalDirection()},e=this.items.length-1;0<=e;e--)if(s=(i=this.items[e]).item[0],(n=this._intersectsWithPointer(i))&&i.instance===this.currentContainer&&!(s===this.currentItem[0]||this.placeholder[1===n?"next":"prev"]()[0]===s||$.contains(this.placeholder[0],s)||"semi-dynamic"===this.options.type&&$.contains(this.element[0],s))){if(this.direction=1===n?"down":"up","pointer"!==this.options.tolerance&&!this._intersectsWithSides(i))break;this._rearrange(t,i),this._trigger("change",t,this._uiHash());break}return this._contactContainers(t),$.ui.ddmanager&&$.ui.ddmanager.drag(this,t),this._trigger("sort",t,this._uiHash()),this.lastPositionAbs=this.positionAbs,!1},_mouseStop:function(t,e){var i,s,n,r;if(t)return $.ui.ddmanager&&!this.options.dropBehaviour&&$.ui.ddmanager.drop(this,t),this.options.revert?(s=(i=this).placeholder.offset(),r={},(n=this.options.axis)&&"x"!==n||(r.left=s.left-this.offset.parent.left-this.margins.left+(this.offsetParent[0]===this.document[0].body?0:this.offsetParent[0].scrollLeft)),n&&"y"!==n||(r.top=s.top-this.offset.parent.top-this.margins.top+(this.offsetParent[0]===this.document[0].body?0:this.offsetParent[0].scrollTop)),this.reverting=!0,$(this.helper).animate(r,parseInt(this.options.revert,10)||500,function(){i._clear(t)})):this._clear(t,e),!1},cancel:function(){if(this.dragging){this._mouseUp(new $.Event("mouseup",{target:null})),"original"===this.options.helper?(this.currentItem.css(this._storedCSS),this._removeClass(this.currentItem,"ui-sortable-helper")):this.currentItem.show();for(var t=this.containers.length-1;0<=t;t--)this.containers[t]._trigger("deactivate",null,this._uiHash(this)),this.containers[t].containerCache.over&&(this.containers[t]._trigger("out",null,this._uiHash(this)),this.containers[t].containerCache.over=0)}return this.placeholder&&(this.placeholder[0].parentNode&&this.placeholder[0].parentNode.removeChild(this.placeholder[0]),"original"!==this.options.helper&&this.helper&&this.helper[0].parentNode&&this.helper.remove(),$.extend(this,{helper:null,dragging:!1,reverting:!1,_noFinalSort:null}),this.domPosition.prev?$(this.domPosition.prev).after(this.currentItem):$(this.domPosition.parent).prepend(this.currentItem)),this},serialize:function(e){var t=this._getItemsAsjQuery(e&&e.connected),i=[];return e=e||{},$(t).each(function(){var t=($(e.item||this).attr(e.attribute||"id")||"").match(e.expression||/(.+)[\-=_](.+)/);t&&i.push((e.key||t[1]+"[]")+"="+(e.key&&e.expression?t[1]:t[2]))}),!i.length&&e.key&&i.push(e.key+"="),i.join("&")},toArray:function(t){var e=this._getItemsAsjQuery(t&&t.connected),i=[];return t=t||{},e.each(function(){i.push($(t.item||this).attr(t.attribute||"id")||"")}),i},_intersectsWith:function(t){var e=this.positionAbs.left,i=e+this.helperProportions.width,s=this.positionAbs.top,n=s+this.helperProportions.height,r=t.left,a=r+t.width,o=t.top,l=o+t.height,h=this.offset.click.top,c=this.offset.click.left,h="x"===this.options.axis||o<s+h&&s+h<l,c="y"===this.options.axis||r<e+c&&e+c<a;return"pointer"===this.options.tolerance||this.options.forcePointerForContainers||"pointer"!==this.options.tolerance&&this.helperProportions[this.floating?"width":"height"]>t[this.floating?"width":"height"]?h&&c:r<e+this.helperProportions.width/2&&i-this.helperProportions.width/2<a&&o<s+this.helperProportions.height/2&&n-this.helperProportions.height/2<l},_intersectsWithPointer:function(t){var e="x"===this.options.axis||this._isOverAxis(this.positionAbs.top+this.offset.click.top,t.top,t.height),t="y"===this.options.axis||this._isOverAxis(this.positionAbs.left+this.offset.click.left,t.left,t.width);return!(!e||!t)&&(e=this.dragDirection.vertical,t=this.dragDirection.horizontal,this.floating?"right"===t||"down"===e?2:1:e&&("down"===e?2:1))},_intersectsWithSides:function(t){var e=this._isOverAxis(this.positionAbs.top+this.offset.click.top,t.top+t.height/2,t.height),t=this._isOverAxis(this.positionAbs.left+this.offset.click.left,t.left+t.width/2,t.width),i=this.dragDirection.vertical,s=this.dragDirection.horizontal;return this.floating&&s?"right"===s&&t||"left"===s&&!t:i&&("down"===i&&e||"up"===i&&!e)},_getDragVerticalDirection:function(){var t=this.positionAbs.top-this.lastPositionAbs.top;return 0!=t&&(0<t?"down":"up")},_getDragHorizontalDirection:function(){var t=this.positionAbs.left-this.lastPositionAbs.left;return 0!=t&&(0<t?"right":"left")},refresh:function(t){return this._refreshItems(t),this._setHandleClassName(),this.refreshPositions(),this},_connectWith:function(){var t=this.options;return t.connectWith.constructor===String?[t.connectWith]:t.connectWith},_getItemsAsjQuery:function(t){var e,i,s,n,r=[],a=[],o=this._connectWith();if(o&&t)for(e=o.length-1;0<=e;e--)for(i=(s=$(o[e],this.document[0])).length-1;0<=i;i--)(n=$.data(s[i],this.widgetFullName))&&n!==this&&!n.options.disabled&&a.push(["function"==typeof n.options.items?n.options.items.call(n.element):$(n.options.items,n.element).not(".ui-sortable-helper").not(".ui-sortable-placeholder"),n]);function l(){r.push(this)}for(a.push(["function"==typeof this.options.items?this.options.items.call(this.element,null,{options:this.options,item:this.currentItem}):$(this.options.items,this.element).not(".ui-sortable-helper").not(".ui-sortable-placeholder"),this]),e=a.length-1;0<=e;e--)a[e][0].each(l);return $(r)},_removeCurrentsFromItems:function(){var i=this.currentItem.find(":data("+this.widgetName+"-item)");this.items=$.grep(this.items,function(t){for(var e=0;e<i.length;e++)if(i[e]===t.item[0])return!1;return!0})},_refreshItems:function(t){this.items=[],this.containers=[this];var e,i,s,n,r,a,o,l,h=this.items,c=[["function"==typeof this.options.items?this.options.items.call(this.element[0],t,{item:this.currentItem}):$(this.options.items,this.element),this]],p=this._connectWith();if(p&&this.ready)for(e=p.length-1;0<=e;e--)for(i=(s=$(p[e],this.document[0])).length-1;0<=i;i--)(n=$.data(s[i],this.widgetFullName))&&n!==this&&!n.options.disabled&&(c.push(["function"==typeof n.options.items?n.options.items.call(n.element[0],t,{item:this.currentItem}):$(n.options.items,n.element),n]),this.containers.push(n));for(e=c.length-1;0<=e;e--)for(r=c[e][1],l=(a=c[e][i=0]).length;i<l;i++)(o=$(a[i])).data(this.widgetName+"-item",r),h.push({item:o,instance:r,width:0,height:0,left:0,top:0})},_refreshItemPositions:function(t){for(var e,i,s=this.items.length-1;0<=s;s--)e=this.items[s],this.currentContainer&&e.instance!==this.currentContainer&&e.item[0]!==this.currentItem[0]||(i=this.options.toleranceElement?$(this.options.toleranceElement,e.item):e.item,t||(e.width=i.outerWidth(),e.height=i.outerHeight()),i=i.offset(),e.left=i.left,e.top=i.top)},refreshPositions:function(t){var e,i;if(this.floating=!!this.items.length&&("x"===this.options.axis||this._isFloating(this.items[0].item)),this.offsetParent&&this.helper&&(this.offset.parent=this._getParentOffset()),this._refreshItemPositions(t),this.options.custom&&this.options.custom.refreshContainers)this.options.custom.refreshContainers.call(this);else for(e=this.containers.length-1;0<=e;e--)i=this.containers[e].element.offset(),this.containers[e].containerCache.left=i.left,this.containers[e].containerCache.top=i.top,this.containers[e].containerCache.width=this.containers[e].element.outerWidth(),this.containers[e].containerCache.height=this.containers[e].element.outerHeight();return this},_createPlaceholder:function(i){var s,n,r=(i=i||this).options;r.placeholder&&r.placeholder.constructor!==String||(s=r.placeholder,n=i.currentItem[0].nodeName.toLowerCase(),r.placeholder={element:function(){var t=$("<"+n+">",i.document[0]);return i._addClass(t,"ui-sortable-placeholder",s||i.currentItem[0].className)._removeClass(t,"ui-sortable-helper"),"tbody"===n?i._createTrPlaceholder(i.currentItem.find("tr").eq(0),$("<tr>",i.document[0]).appendTo(t)):"tr"===n?i._createTrPlaceholder(i.currentItem,t):"img"===n&&t.attr("src",i.currentItem.attr("src")),s||t.css("visibility","hidden"),t},update:function(t,e){s&&!r.forcePlaceholderSize||(e.height()&&(!r.forcePlaceholderSize||"tbody"!==n&&"tr"!==n)||e.height(i.currentItem.innerHeight()-parseInt(i.currentItem.css("paddingTop")||0,10)-parseInt(i.currentItem.css("paddingBottom")||0,10)),e.width())||e.width(i.currentItem.innerWidth()-parseInt(i.currentItem.css("paddingLeft")||0,10)-parseInt(i.currentItem.css("paddingRight")||0,10))}}),i.placeholder=$(r.placeholder.element.call(i.element,i.currentItem)),i.currentItem.after(i.placeholder),r.placeholder.update(i,i.placeholder)},_createTrPlaceholder:function(t,e){var i=this;t.children().each(function(){$("<td>&#160;</td>",i.document[0]).attr("colspan",$(this).attr("colspan")||1).appendTo(e)})},_contactContainers:function(t){for(var e,i,s,n,r,a,o,l,h,c=null,p=null,u=this.containers.length-1;0<=u;u--)$.contains(this.currentItem[0],this.containers[u].element[0])||(this._intersectsWith(this.containers[u].containerCache)?c&&$.contains(this.containers[u].element[0],c.element[0])||(c=this.containers[u],p=u):this.containers[u].containerCache.over&&(this.containers[u]._trigger("out",t,this._uiHash(this)),this.containers[u].containerCache.over=0));if(c)if(1===this.containers.length)this.containers[p].containerCache.over||(this.containers[p]._trigger("over",t,this._uiHash(this)),this.containers[p].containerCache.over=1);else{for(i=1e4,s=null,n=(l=c.floating||this._isFloating(this.currentItem))?"left":"top",r=l?"width":"height",h=l?"pageX":"pageY",e=this.items.length-1;0<=e;e--)$.contains(this.containers[p].element[0],this.items[e].item[0])&&this.items[e].item[0]!==this.currentItem[0]&&(a=this.items[e].item.offset()[n],o=!1,t[h]-a>this.items[e][r]/2&&(o=!0),Math.abs(t[h]-a)<i)&&(i=Math.abs(t[h]-a),s=this.items[e],this.direction=o?"up":"down");(s||this.options.dropOnEmpty)&&(this.currentContainer===this.containers[p]?this.currentContainer.containerCache.over||(this.containers[p]._trigger("over",t,this._uiHash()),this.currentContainer.containerCache.over=1):(s?this._rearrange(t,s,null,!0):this._rearrange(t,null,this.containers[p].element,!0),this._trigger("change",t,this._uiHash()),this.containers[p]._trigger("change",t,this._uiHash(this)),this.currentContainer=this.containers[p],this.options.placeholder.update(this.currentContainer,this.placeholder),this.scrollParent=this.placeholder.scrollParent(),this.scrollParent[0]!==this.document[0]&&"HTML"!==this.scrollParent[0].tagName&&(this.overflowOffset=this.scrollParent.offset()),this.containers[p]._trigger("over",t,this._uiHash(this)),this.containers[p].containerCache.over=1))}},_createHelper:function(t){var e=this.options;return(t="function"==typeof e.helper?$(e.helper.apply(this.element[0],[t,this.currentItem])):"clone"===e.helper?this.currentItem.clone():this.currentItem).parents("body").length||this.appendTo[0].appendChild(t[0]),t[0]===this.currentItem[0]&&(this._storedCSS={width:this.currentItem[0].style.width,height:this.currentItem[0].style.height,position:this.currentItem.css("position"),top:this.currentItem.css("top"),left:this.currentItem.css("left")}),t[0].style.width&&!e.forceHelperSize||t.width(this.currentItem.width()),t[0].style.height&&!e.forceHelperSize||t.height(this.currentItem.height()),t},_adjustOffsetFromHelper:function(t){"string"==typeof t&&(t=t.split(" ")),"left"in(t=Array.isArray(t)?{left:+t[0],top:+t[1]||0}: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)},_getParentOffset:function(){this.offsetParent=this.helper.offsetParent();var t=this.offsetParent.offset();return"absolute"===this.cssPosition&&this.scrollParent[0]!==this.document[0]&&$.contains(this.scrollParent[0],this.offsetParent[0])&&(t.left+=this.scrollParent.scrollLeft(),t.top+=this.scrollParent.scrollTop()),{top:(t=this.offsetParent[0]===this.document[0].body?{top:0,left:0}:t).top+(parseInt(this.offsetParent.css("borderTopWidth"),10)||0),left:t.left+(parseInt(this.offsetParent.css("borderLeftWidth"),10)||0)}},_getRelativeOffset:function(){var t;return"relative"===this.cssPosition?{top:(t=this.currentItem.position()).top-(parseInt(this.helper.css("top"),10)||0)+this.scrollParent.scrollTop(),left:t.left-(parseInt(this.helper.css("left"),10)||0)+this.scrollParent.scrollLeft()}:{top:0,left:0}},_cacheMargins:function(){this.margins={left:parseInt(this.currentItem.css("marginLeft"),10)||0,top:parseInt(this.currentItem.css("marginTop"),10)||0}},_cacheHelperProportions:function(){this.helperProportions={width:this.helper.outerWidth(),height:this.helper.outerHeight()}},_setContainment:function(){var t,e,i=this.options;"parent"===i.containment&&(i.containment=this.helper[0].parentNode),"document"!==i.containment&&"window"!==i.containment||(this.containment=[0-this.offset.relative.left-this.offset.parent.left,0-this.offset.relative.top-this.offset.parent.top,"document"===i.containment?this.document.width():this.window.width()-this.helperProportions.width-this.margins.left,("document"===i.containment?this.document.height()||document.body.parentNode.scrollHeight:this.window.height()||this.document[0].body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top]),/^(document|window|parent)$/.test(i.containment)||(t=$(i.containment)[0],i=$(i.containment).offset(),e="hidden"!==$(t).css("overflow"),this.containment=[i.left+(parseInt($(t).css("borderLeftWidth"),10)||0)+(parseInt($(t).css("paddingLeft"),10)||0)-this.margins.left,i.top+(parseInt($(t).css("borderTopWidth"),10)||0)+(parseInt($(t).css("paddingTop"),10)||0)-this.margins.top,i.left+(e?Math.max(t.scrollWidth,t.offsetWidth):t.offsetWidth)-(parseInt($(t).css("borderLeftWidth"),10)||0)-(parseInt($(t).css("paddingRight"),10)||0)-this.helperProportions.width-this.margins.left,i.top+(e?Math.max(t.scrollHeight,t.offsetHeight):t.offsetHeight)-(parseInt($(t).css("borderTopWidth"),10)||0)-(parseInt($(t).css("paddingBottom"),10)||0)-this.helperProportions.height-this.margins.top])},_convertPositionTo:function(t,e){e=e||this.position;var t="absolute"===t?1:-1,i="absolute"!==this.cssPosition||this.scrollParent[0]!==this.document[0]&&$.contains(this.scrollParent[0],this.offsetParent[0])?this.scrollParent:this.offsetParent,s=/(html|body)/i.test(i[0].tagName);return{top:e.top+this.offset.relative.top*t+this.offset.parent.top*t-("fixed"===this.cssPosition?-this.scrollParent.scrollTop():s?0:i.scrollTop())*t,left:e.left+this.offset.relative.left*t+this.offset.parent.left*t-("fixed"===this.cssPosition?-this.scrollParent.scrollLeft():s?0:i.scrollLeft())*t}},_generatePosition:function(t){var e=this.options,i=t.pageX,s=t.pageY,n="absolute"!==this.cssPosition||this.scrollParent[0]!==this.document[0]&&$.contains(this.scrollParent[0],this.offsetParent[0])?this.scrollParent:this.offsetParent,r=/(html|body)/i.test(n[0].tagName);return"relative"!==this.cssPosition||this.scrollParent[0]!==this.document[0]&&this.scrollParent[0]!==this.offsetParent[0]||(this.offset.relative=this._getRelativeOffset()),this.originalPosition&&(this.containment&&(t.pageX-this.offset.click.left<this.containment[0]&&(i=this.containment[0]+this.offset.click.left),t.pageY-this.offset.click.top<this.containment[1]&&(s=this.containment[1]+this.offset.click.top),t.pageX-this.offset.click.left>this.containment[2]&&(i=this.containment[2]+this.offset.click.left),t.pageY-this.offset.click.top>this.containment[3])&&(s=this.containment[3]+this.offset.click.top),e.grid)&&(t=this.originalPageY+Math.round((s-this.originalPageY)/e.grid[1])*e.grid[1],s=!this.containment||t-this.offset.click.top>=this.containment[1]&&t-this.offset.click.top<=this.containment[3]?t:t-this.offset.click.top>=this.containment[1]?t-e.grid[1]:t+e.grid[1],t=this.originalPageX+Math.round((i-this.originalPageX)/e.grid[0])*e.grid[0],i=!this.containment||t-this.offset.click.left>=this.containment[0]&&t-this.offset.click.left<=this.containment[2]?t:t-this.offset.click.left>=this.containment[0]?t-e.grid[0]:t+e.grid[0]),{top:s-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+("fixed"===this.cssPosition?-this.scrollParent.scrollTop():r?0:n.scrollTop()),left:i-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+("fixed"===this.cssPosition?-this.scrollParent.scrollLeft():r?0:n.scrollLeft())}},_rearrange:function(t,e,i,s){i?i[0].appendChild(this.placeholder[0]):e.item[0].parentNode.insertBefore(this.placeholder[0],"down"===this.direction?e.item[0]:e.item[0].nextSibling),this.counter=this.counter?++this.counter:1;var n=this.counter;this._delay(function(){n===this.counter&&this.refreshPositions(!s)})},_clear:function(t,e){this.reverting=!1;var i,s=[];if(!this._noFinalSort&&this.currentItem.parent().length&&this.placeholder.before(this.currentItem),this._noFinalSort=null,this.helper[0]===this.currentItem[0]){for(i in this._storedCSS)"auto"!==this._storedCSS[i]&&"static"!==this._storedCSS[i]||(this._storedCSS[i]="");this.currentItem.css(this._storedCSS),this._removeClass(this.currentItem,"ui-sortable-helper")}else this.currentItem.show();function n(e,i,s){return function(t){s._trigger(e,t,i._uiHash(i))}}for(this.fromOutside&&!e&&s.push(function(t){this._trigger("receive",t,this._uiHash(this.fromOutside))}),!this.fromOutside&&this.domPosition.prev===this.currentItem.prev().not(".ui-sortable-helper")[0]&&this.domPosition.parent===this.currentItem.parent()[0]||e||s.push(function(t){this._trigger("update",t,this._uiHash())}),this===this.currentContainer||e||(s.push(function(t){this._trigger("remove",t,this._uiHash())}),s.push(function(e){return function(t){e._trigger("receive",t,this._uiHash(this))}}.call(this,this.currentContainer)),s.push(function(e){return function(t){e._trigger("update",t,this._uiHash(this))}}.call(this,this.currentContainer))),i=this.containers.length-1;0<=i;i--)e||s.push(n("deactivate",this,this.containers[i])),this.containers[i].containerCache.over&&(s.push(n("out",this,this.containers[i])),this.containers[i].containerCache.over=0);if(this._storedStylesheet&&(this._storedStylesheet.remove(),this._storedStylesheet=null),this._storedOpacity&&this.helper.css("opacity",this._storedOpacity),this._storedZIndex&&this.helper.css("zIndex","auto"===this._storedZIndex?"":this._storedZIndex),this.dragging=!1,e||this._trigger("beforeStop",t,this._uiHash()),this.placeholder[0].parentNode.removeChild(this.placeholder[0]),this.cancelHelperRemoval||(this.helper[0]!==this.currentItem[0]&&this.helper.remove(),this.helper=null),!e){for(i=0;i<s.length;i++)s[i].call(this,t);this._trigger("stop",t,this._uiHash())}return this.fromOutside=!1,!this.cancelHelperRemoval},_trigger:function(){!1===$.Widget.prototype._trigger.apply(this,arguments)&&this.cancel()},_uiHash:function(t){var e=t||this;return{helper:e.helper,placeholder:e.placeholder||$([]),position:e.position,originalPosition:e.originalPosition,offset:e.positionAbs,item:e.currentItem,sender:t?t.element:null}}}),$.widget("ui.spinner",{version:"1.14.1",defaultElement:"<input>",widgetEventPrefix:"spin",options:{classes:{"ui-spinner":"ui-corner-all","ui-spinner-down":"ui-corner-br","ui-spinner-up":"ui-corner-tr"},culture:null,icons:{down:"ui-icon-triangle-1-s",up:"ui-icon-triangle-1-n"},incremental:!0,max:null,min:null,numberFormat:null,page:10,step:1,change:null,spin:null,start:null,stop:null},_create:function(){this._setOption("max",this.options.max),this._setOption("min",this.options.min),this._setOption("step",this.options.step),""!==this.value()&&this._value(this.element.val(),!0),this._draw(),this._on(this._events),this._refresh(),this._on(this.window,{beforeunload:function(){this.element.removeAttr("autocomplete")}})},_getCreateOptions:function(){var s=this._super(),n=this.element;return $.each(["min","max","step"],function(t,e){var i=n.attr(e);null!=i&&i.length&&(s[e]=i)}),s},_events:{keydown:function(t){this._start(t)&&this._keydown(t)&&t.preventDefault()},keyup:"_stop",focus:function(){this.previous=this.element.val()},blur:function(t){this._stop(),this._refresh(),this.previous!==this.element.val()&&this._trigger("change",t)},mousewheel:function(t,e){var i=this.document[0].activeElement;if(this.element[0]===i&&e){if(!this.spinning&&!this._start(t))return!1;this._spin((0<e?1:-1)*this.options.step,t),clearTimeout(this.mousewheelTimer),this.mousewheelTimer=this._delay(function(){this.spinning&&this._stop(t)},100),t.preventDefault()}},"mousedown .ui-spinner-button":function(t){var e=this.element[0]===this.document[0].activeElement?this.previous:this.element.val();t.preventDefault(),function(){this.element[0]!==this.document[0].activeElement&&(this.element.trigger("focus"),this.previous=e)}.call(this),!1!==this._start(t)&&this._repeat(null,$(t.currentTarget).hasClass("ui-spinner-up")?1:-1,t)},"mouseup .ui-spinner-button":"_stop","mouseenter .ui-spinner-button":function(t){if($(t.currentTarget).hasClass("ui-state-active"))return!1!==this._start(t)&&void this._repeat(null,$(t.currentTarget).hasClass("ui-spinner-up")?1:-1,t)},"mouseleave .ui-spinner-button":"_stop"},_enhance:function(){this.uiSpinner=this.element.attr("autocomplete","off").wrap("<span>").parent().append("<a></a><a></a>")},_draw:function(){this._enhance(),this._addClass(this.uiSpinner,"ui-spinner","ui-widget ui-widget-content"),this._addClass("ui-spinner-input"),this.element.attr("role","spinbutton"),this.buttons=this.uiSpinner.children("a").attr("tabIndex",-1).attr("aria-hidden",!0).button({classes:{"ui-button":""}}),this._removeClass(this.buttons,"ui-corner-all"),this._addClass(this.buttons.first(),"ui-spinner-button ui-spinner-up"),this._addClass(this.buttons.last(),"ui-spinner-button ui-spinner-down"),this.buttons.first().button({icon:this.options.icons.up,showLabel:!1}),this.buttons.last().button({icon:this.options.icons.down,showLabel:!1}),this.buttons.height()>Math.ceil(.5*this.uiSpinner.height())&&0<this.uiSpinner.height()&&this.uiSpinner.height(this.uiSpinner.height())},_keydown:function(t){var e=this.options,i=$.ui.keyCode;switch(t.keyCode){case i.UP:return this._repeat(null,1,t),!0;case i.DOWN:return this._repeat(null,-1,t),!0;case i.PAGE_UP:return this._repeat(null,e.page,t),!0;case i.PAGE_DOWN:return this._repeat(null,-e.page,t),!0}return!1},_start:function(t){return!(!this.spinning&&!1===this._trigger("start",t))&&(this.counter||(this.counter=1),this.spinning=!0)},_repeat:function(t,e,i){t=t||500,clearTimeout(this.timer),this.timer=this._delay(function(){this._repeat(40,e,i)},t),this._spin(e*this.options.step,i)},_spin:function(t,e){var i=this.value()||0;this.counter||(this.counter=1),i=this._adjustValue(i+t*this._increment(this.counter)),this.spinning&&!1===this._trigger("spin",e,{value:i})||(this._value(i),this.counter++)},_increment:function(t){var e=this.options.incremental;return e?"function"==typeof e?e(t):Math.floor(t*t*t/5e4-t*t/500+17*t/200+1):1},_precision:function(){var t=this._precisionOf(this.options.step);return null!==this.options.min?Math.max(t,this._precisionOf(this.options.min)):t},_precisionOf:function(t){var e=(t=t.toString()).indexOf(".");return-1===e?0:t.length-e-1},_adjustValue:function(t){var e=this.options,i=null!==e.min?e.min:0;return t=i+Math.round((t-i)/e.step)*e.step,t=parseFloat(t.toFixed(this._precision())),null!==e.max&&t>e.max?e.max:null!==e.min&&t<e.min?e.min:t},_stop:function(t){this.spinning&&(clearTimeout(this.timer),clearTimeout(this.mousewheelTimer),this.counter=0,this.spinning=!1,this._trigger("stop",t))},_setOption:function(t,e){var i;"culture"===t||"numberFormat"===t?(i=this._parse(this.element.val()),this.options[t]=e,this.element.val(this._format(i))):("max"!==t&&"min"!==t&&"step"!==t||"string"==typeof e&&(e=this._parse(e)),"icons"===t&&(i=this.buttons.first().find(".ui-icon"),this._removeClass(i,null,this.options.icons.up),this._addClass(i,null,e.up),i=this.buttons.last().find(".ui-icon"),this._removeClass(i,null,this.options.icons.down),this._addClass(i,null,e.down)),this._super(t,e))},_setOptionDisabled:function(t){this._super(t),this._toggleClass(this.uiSpinner,null,"ui-state-disabled",!!t),this.element.prop("disabled",!!t),this.buttons.button(t?"disable":"enable")},_setOptions:L(function(t){this._super(t)}),_parse:function(t){return""===(t="string"==typeof t&&""!==t?window.Globalize&&this.options.numberFormat?Globalize.parseFloat(t,10,this.options.culture):+t:t)||isNaN(t)?null:t},_format:function(t){return""===t?"":window.Globalize&&this.options.numberFormat?Globalize.format(t,this.options.numberFormat,this.options.culture):t},_refresh:function(){this.element.attr({"aria-valuemin":this.options.min,"aria-valuemax":this.options.max,"aria-valuenow":this._parse(this.element.val())})},isValid:function(){var t=this.value();return null!==t&&t===this._adjustValue(t)},_value:function(t,e){var i;""!==t&&null!==(i=this._parse(t))&&(e||(i=this._adjustValue(i)),t=this._format(i)),this.element.val(t),this._refresh()},_destroy:function(){this.element.prop("disabled",!1).removeAttr("autocomplete role aria-valuemin aria-valuemax aria-valuenow"),this.uiSpinner.replaceWith(this.element)},stepUp:L(function(t){this._stepUp(t)}),_stepUp:function(t){this._start()&&(this._spin((t||1)*this.options.step),this._stop())},stepDown:L(function(t){this._stepDown(t)}),_stepDown:function(t){this._start()&&(this._spin((t||1)*-this.options.step),this._stop())},pageUp:L(function(t){this._stepUp((t||1)*this.options.page)}),pageDown:L(function(t){this._stepDown((t||1)*this.options.page)}),value:function(t){if(!arguments.length)return this._parse(this.element.val());L(this._value).call(this,t)},widget:function(){return this.uiSpinner}}),!0===$.uiBackCompat&&$.widget("ui.spinner",$.ui.spinner,{_enhance:function(){this.uiSpinner=this.element.attr("autocomplete","off").wrap(this._uiSpinnerHtml()).parent().append(this._buttonHtml())},_uiSpinnerHtml:function(){return"<span>"},_buttonHtml:function(){return"<a></a><a></a>"}}),$.ui.spinner,$.widget("ui.tabs",{version:"1.14.1",delay:300,options:{active:null,classes:{"ui-tabs":"ui-corner-all","ui-tabs-nav":"ui-corner-all","ui-tabs-panel":"ui-corner-bottom","ui-tabs-tab":"ui-corner-top"},collapsible:!1,event:"click",heightStyle:"content",hide:null,show:null,activate:null,beforeActivate:null,beforeLoad:null,load:null},_isLocal:(I=/#.*$/,function(t){var e=t.href.replace(I,""),i=location.href.replace(I,"");try{e=decodeURIComponent(e)}catch(t){}try{i=decodeURIComponent(i)}catch(t){}return 1<t.hash.length&&e===i}),_create:function(){var e=this,t=this.options;this.running=!1,this._addClass("ui-tabs","ui-widget ui-widget-content"),this._toggleClass("ui-tabs-collapsible",null,t.collapsible),this._processTabs(),t.active=this._initialActive(),Array.isArray(t.disabled)&&(t.disabled=$.uniqueSort(t.disabled.concat($.map(this.tabs.filter(".ui-state-disabled"),function(t){return e.tabs.index(t)}))).sort()),!1!==this.options.active&&this.anchors.length?this.active=this._findActive(t.active):this.active=$(),this._refresh(),this.active.length&&this.load(t.active)},_initialActive:function(){var i=this.options.active,t=this.options.collapsible,s=decodeURIComponent(location.hash.substring(1));return null===i&&(s&&this.tabs.each(function(t,e){if($(e).attr("aria-controls")===s)return i=t,!1}),null!==(i=null===i?this.tabs.index(this.tabs.filter(".ui-tabs-active")):i)&&-1!==i||(i=!!this.tabs.length&&0)),!1!==i&&-1===(i=this.tabs.index(this.tabs.eq(i)))&&(i=!t&&0),i=!t&&!1===i&&this.anchors.length?0:i},_getCreateEventData:function(){return{tab:this.active,panel:this.active.length?this._getPanelForTab(this.active):$()}},_tabKeydown:function(t){var e=$(this.document[0].activeElement).closest("li"),i=this.tabs.index(e),s=!0;if(!this._handlePageNav(t)){switch(t.keyCode){case $.ui.keyCode.RIGHT:case $.ui.keyCode.DOWN:i++;break;case $.ui.keyCode.UP:case $.ui.keyCode.LEFT:s=!1,i--;break;case $.ui.keyCode.END:i=this.anchors.length-1;break;case $.ui.keyCode.HOME:i=0;break;case $.ui.keyCode.SPACE:return t.preventDefault(),clearTimeout(this.activating),void this._activate(i);case $.ui.keyCode.ENTER:return t.preventDefault(),clearTimeout(this.activating),void this._activate(i!==this.options.active&&i);default:return}t.preventDefault(),clearTimeout(this.activating),i=this._focusNextTab(i,s),t.ctrlKey||t.metaKey||(e.attr("aria-selected","false"),this.tabs.eq(i).attr("aria-selected","true"),this.activating=this._delay(function(){this.option("active",i)},this.delay))}},_panelKeydown:function(t){this._handlePageNav(t)||t.ctrlKey&&t.keyCode===$.ui.keyCode.UP&&(t.preventDefault(),this.active.trigger("focus"))},_handlePageNav:function(t){return t.altKey&&t.keyCode===$.ui.keyCode.PAGE_UP?(this._activate(this._focusNextTab(this.options.active-1,!1)),!0):t.altKey&&t.keyCode===$.ui.keyCode.PAGE_DOWN?(this._activate(this._focusNextTab(this.options.active+1,!0)),!0):void 0},_findNextTab:function(t,e){for(var i=this.tabs.length-1;-1!==$.inArray(t=(t=i<t?0:t)<0?i:t,this.options.disabled);)t=e?t+1:t-1;return t},_focusNextTab:function(t,e){return t=this._findNextTab(t,e),this.tabs.eq(t).trigger("focus"),t},_setOption:function(t,e){"active"===t?this._activate(e):(this._super(t,e),"collapsible"===t&&(this._toggleClass("ui-tabs-collapsible",null,e),e||!1!==this.options.active||this._activate(0)),"event"===t&&this._setupEvents(e),"heightStyle"===t&&this._setupHeightStyle(e))},refresh:function(){var t=this.options,e=this.tablist.children(":has(a[href])");t.disabled=$.map(e.filter(".ui-state-disabled"),function(t){return e.index(t)}),this._processTabs(),!1!==t.active&&this.anchors.length?this.active.length&&!$.contains(this.tablist[0],this.active[0])?this.tabs.length===t.disabled.length?(t.active=!1,this.active=$()):this._activate(this._findNextTab(Math.max(0,t.active-1),!1)):t.active=this.tabs.index(this.active):(t.active=!1,this.active=$()),this._refresh()},_refresh:function(){this._setOptionDisabled(this.options.disabled),this._setupEvents(this.options.event),this._setupHeightStyle(this.options.heightStyle),this.tabs.not(this.active).attr({"aria-selected":"false","aria-expanded":"false",tabIndex:-1}),this.panels.not(this._getPanelForTab(this.active)).hide().attr({"aria-hidden":"true"}),this.active.length?(this.active.attr({"aria-selected":"true","aria-expanded":"true",tabIndex:0}),this._addClass(this.active,"ui-tabs-active","ui-state-active"),this._getPanelForTab(this.active).show().attr({"aria-hidden":"false"})):this.tabs.eq(0).attr("tabIndex",0)},_processTabs:function(){var o=this,t=this.tabs,e=this.anchors,i=this.panels;this.tablist=this._getList().attr("role","tablist"),this._addClass(this.tablist,"ui-tabs-nav","ui-helper-reset ui-helper-clearfix ui-widget-header"),this.tablist.on("mousedown"+this.eventNamespace,"> li",function(t){$(this).is(".ui-state-disabled")&&t.preventDefault()}),this.tabs=this.tablist.find("> li:has(a[href])").attr({role:"tab",tabIndex:-1}),this._addClass(this.tabs,"ui-tabs-tab","ui-state-default"),this.anchors=this.tabs.map(function(){return $("a",this)[0]}).attr({tabIndex:-1}),this._addClass(this.anchors,"ui-tabs-anchor"),this.panels=$(),this.anchors.each(function(t,e){var i,s,n=$(e).uniqueId().attr("id"),r=$(e).closest("li"),a=r.attr("aria-controls");o._isLocal(e)?(s=decodeURIComponent(e.hash).substring(1),i=o.element.find("#"+CSS.escape(s))):(s=r.attr("aria-controls")||$({}).uniqueId()[0].id,(i=o.element.find("#"+s)).length||(i=o._createPanel(s)).insertAfter(o.panels[t-1]||o.tablist),i.attr("aria-live","polite")),i.length&&(o.panels=o.panels.add(i)),a&&r.data("ui-tabs-aria-controls",a),r.attr({"aria-controls":s,"aria-labelledby":n}),i.attr("aria-labelledby",n)}),this.panels.attr("role","tabpanel"),this._addClass(this.panels,"ui-tabs-panel","ui-widget-content"),t&&(this._off(t.not(this.tabs)),this._off(e.not(this.anchors)),this._off(i.not(this.panels)))},_getList:function(){return this.tablist||this.element.find("ol, ul").eq(0)},_createPanel:function(t){return $("<div>").attr("id",t).data("ui-tabs-destroy",!0)},_setOptionDisabled:function(t){var e,i;for(Array.isArray(t)&&(t.length?t.length===this.anchors.length&&(t=!0):t=!1),i=0;e=this.tabs[i];i++)e=$(e),!0===t||-1!==$.inArray(i,t)?(e.attr("aria-disabled","true"),this._addClass(e,null,"ui-state-disabled")):(e.removeAttr("aria-disabled"),this._removeClass(e,null,"ui-state-disabled"));this.options.disabled=t,this._toggleClass(this.widget(),this.widgetFullName+"-disabled",null,!0===t)},_setupEvents:function(t){var i={};t&&$.each(t.split(" "),function(t,e){i[e]="_eventHandler"}),this._off(this.anchors.add(this.tabs).add(this.panels)),this._on(!0,this.anchors,{click:function(t){t.preventDefault()}}),this._on(this.anchors,i),this._on(this.tabs,{keydown:"_tabKeydown"}),this._on(this.panels,{keydown:"_panelKeydown"}),this._focusable(this.tabs),this._hoverable(this.tabs)},_setupHeightStyle:function(t){var i,e=this.element.parent();"fill"===t?(i=e.height(),i-=this.element.outerHeight()-this.element.height(),this.element.siblings(":visible").each(function(){var t=$(this),e=t.css("position");"absolute"!==e&&"fixed"!==e&&(i-=t.outerHeight(!0))}),this.element.children().not(this.panels).each(function(){i-=$(this).outerHeight(!0)}),this.panels.each(function(){$(this).height(Math.max(0,i-$(this).innerHeight()+$(this).height()))}).css("overflow","auto")):"auto"===t&&(i=0,this.panels.each(function(){i=Math.max(i,$(this).height("").height())}).height(i))},_eventHandler:function(t){var e=this.options,i=this.active,s=$(t.currentTarget).closest("li"),n=s[0]===i[0],r=n&&e.collapsible,a=r?$():this._getPanelForTab(s),o=i.length?this._getPanelForTab(i):$(),i={oldTab:i,oldPanel:o,newTab:r?$():s,newPanel:a};t.preventDefault(),s.hasClass("ui-state-disabled")||s.hasClass("ui-tabs-loading")||this.running||n&&!e.collapsible||!1===this._trigger("beforeActivate",t,i)||(e.active=!r&&this.tabs.index(s),this.active=n?$():s,this.xhr&&this.xhr.abort(),o.length||a.length||$.error("jQuery UI Tabs: Mismatching fragment identifier."),a.length&&this.load(this.tabs.index(s),t),this._toggle(t,i))},_toggle:function(t,e){var i=this,s=e.newPanel,n=e.oldPanel;function r(){i.running=!1,i._trigger("activate",t,e)}function a(){i._addClass(e.newTab.closest("li"),"ui-tabs-active","ui-state-active"),s.length&&i.options.show?i._show(s,i.options.show,r):(s.show(),r())}this.running=!0,n.length&&this.options.hide?this._hide(n,this.options.hide,function(){i._removeClass(e.oldTab.closest("li"),"ui-tabs-active","ui-state-active"),a()}):(this._removeClass(e.oldTab.closest("li"),"ui-tabs-active","ui-state-active"),n.hide(),a()),n.attr("aria-hidden","true"),e.oldTab.attr({"aria-selected":"false","aria-expanded":"false"}),s.length&&n.length?e.oldTab.attr("tabIndex",-1):s.length&&this.tabs.filter(function(){return 0===$(this).attr("tabIndex")}).attr("tabIndex",-1),s.attr("aria-hidden","false"),e.newTab.attr({"aria-selected":"true","aria-expanded":"true",tabIndex:0})},_activate:function(t){(t=this._findActive(t))[0]!==this.active[0]&&(t=(t=t.length?t:this.active).find(".ui-tabs-anchor")[0],this._eventHandler({target:t,currentTarget:t,preventDefault:$.noop}))},_findActive:function(t){return!1===t?$():this.tabs.eq(t)},_getIndex:function(t){return"string"==typeof t?this.anchors.index(this.anchors.filter("[href$='"+CSS.escape(t)+"']")):t},_destroy:function(){this.xhr&&this.xhr.abort(),this.tablist.removeAttr("role").off(this.eventNamespace),this.anchors.removeAttr("role tabIndex").removeUniqueId(),this.tabs.add(this.panels).each(function(){$.data(this,"ui-tabs-destroy")?$(this).remove():$(this).removeAttr("role tabIndex aria-live aria-busy aria-selected aria-labelledby aria-hidden aria-expanded")}),this.tabs.each(function(){var t=$(this),e=t.data("ui-tabs-aria-controls");e?t.attr("aria-controls",e).removeData("ui-tabs-aria-controls"):t.removeAttr("aria-controls")}),this.panels.show(),"content"!==this.options.heightStyle&&this.panels.css("height","")},enable:function(i){var t=this.options.disabled;!1!==t&&(t=void 0!==i&&(i=this._getIndex(i),Array.isArray(t)?$.map(t,function(t){return t!==i?t:null}):$.map(this.tabs,function(t,e){return e!==i?e:null})),this._setOptionDisabled(t))},disable:function(t){var e=this.options.disabled;if(!0!==e){if(void 0===t)e=!0;else{if(t=this._getIndex(t),-1!==$.inArray(t,e))return;e=Array.isArray(e)?$.merge([t],e).sort():[t]}this._setOptionDisabled(e)}},load:function(t,s){function n(t,e){"abort"===e&&r.panels.stop(!1,!0),r._removeClass(i,"ui-tabs-loading"),a.removeAttr("aria-busy"),t===r.xhr&&delete r.xhr}t=this._getIndex(t);var r=this,i=this.tabs.eq(t),t=i.find(".ui-tabs-anchor"),a=this._getPanelForTab(i),o={tab:i,panel:a};this._isLocal(t[0])||(this.xhr=$.ajax(this._ajaxSettings(t,s,o)),"canceled"!==this.xhr.statusText&&(this._addClass(i,"ui-tabs-loading"),a.attr("aria-busy","true"),this.xhr.done(function(t,e,i){a.html(t),r._trigger("load",s,o),n(i,e)}).fail(function(t,e){n(t,e)})))},_ajaxSettings:function(t,i,s){var n=this;return{url:t.attr("href"),beforeSend:function(t,e){return n._trigger("beforeLoad",i,$.extend({jqXHR:t,ajaxSettings:e},s))}}},_getPanelForTab:function(t){return t=$(t).attr("aria-controls"),this.element.find("#"+CSS.escape(t))}}),!0===$.uiBackCompat&&$.widget("ui.tabs",$.ui.tabs,{_processTabs:function(){this._superApply(arguments),this._addClass(this.tabs,"ui-tab")}}),$.ui.tabs,$.widget("ui.tooltip",{version:"1.14.1",options:{classes:{"ui-tooltip":"ui-corner-all ui-widget-shadow"},content:function(){var t=$(this).attr("title");return $("<a>").text(t).html()},hide:!0,items:"[title]:not([disabled])",position:{my:"left top+15",at:"left bottom",collision:"flipfit flip"},show:!0,track:!1,close:null,open:null},_addDescribedBy:function(t,e){var i=(t.attr("aria-describedby")||"").split(/\s+/);i.push(e),t.data("ui-tooltip-id",e).attr("aria-describedby",String.prototype.trim.call(i.join(" ")))},_removeDescribedBy:function(t){var e=t.data("ui-tooltip-id"),i=(t.attr("aria-describedby")||"").split(/\s+/);-1!==(e=$.inArray(e,i))&&i.splice(e,1),t.removeData("ui-tooltip-id"),(i=String.prototype.trim.call(i.join(" ")))?t.attr("aria-describedby",i):t.removeAttr("aria-describedby")},_create:function(){this._on({mouseover:"open",focusin:"open"}),this.tooltips={},this.parents={},this.liveRegion=$("<div>").attr({role:"log","aria-live":"assertive","aria-relevant":"additions"}).appendTo(this.document[0].body),this._addClass(this.liveRegion,null,"ui-helper-hidden-accessible"),this.disabledTitles=$([])},_setOption:function(t,e){var i=this;this._super(t,e),"content"===t&&$.each(this.tooltips,function(t,e){i._updateContent(e.element)})},_setOptionDisabled:function(t){this[t?"_disable":"_enable"]()},_disable:function(){var s=this;$.each(this.tooltips,function(t,e){var i=$.Event("blur");i.target=i.currentTarget=e.element[0],s.close(i,!0)}),this.disabledTitles=this.disabledTitles.add(this.element.find(this.options.items).addBack().filter(function(){var t=$(this);if(t.is("[title]"))return t.data("ui-tooltip-title",t.attr("title")).removeAttr("title")}))},_enable:function(){this.disabledTitles.each(function(){var t=$(this);t.data("ui-tooltip-title")&&t.attr("title",t.data("ui-tooltip-title"))}),this.disabledTitles=$([])},open:function(t){var i=this,e=$(t?t.target:this.element).closest(this.options.items);e.length&&!e.data("ui-tooltip-id")&&(e.attr("title")&&e.data("ui-tooltip-title",e.attr("title")),e.data("ui-tooltip-open",!0),t&&"mouseover"===t.type&&e.parents().each(function(){var t,e=$(this);e.data("ui-tooltip-open")&&((t=$.Event("blur")).target=t.currentTarget=this,i.close(t,!0)),e.attr("title")&&(e.uniqueId(),i.parents[this.id]={element:this,title:e.attr("title")},e.attr("title",""))}),this._registerCloseHandlers(t,e),this._updateContent(e,t))},_updateContent:function(e,i){var t=this.options.content,s=this,n=i?i.type:null;if("string"==typeof t||t.nodeType||t.jquery)return this._open(i,e,t);(t=t.call(e[0],function(t){e.data("ui-tooltip-open")&&(i&&(i.type=n),s._open(i,e,t))}))&&this._open(i,e,t)},_open:function(t,e,i){var s,n,r,a=$.extend({},this.options.position);function o(t){a.of=t,s.is(":hidden")||s.position(a)}i&&((r=this._find(e))?r.tooltip.find(".ui-tooltip-content").html(i):(e.is("[title]")&&(t&&"mouseover"===t.type?e.attr("title",""):e.removeAttr("title")),r=this._tooltip(e),s=r.tooltip,this._addDescribedBy(e,s.attr("id")),s.find(".ui-tooltip-content").html(i),this.liveRegion.children().hide(),(r=$("<div>").html(s.find(".ui-tooltip-content").html())).removeAttr("name").find("[name]").removeAttr("name"),r.removeAttr("id").find("[id]").removeAttr("id"),r.appendTo(this.liveRegion),this.options.track&&t&&/^mouse/.test(t.type)?(this._on(this.document,{mousemove:o}),o(t)):s.position($.extend({of:e},this.options.position)),s.hide(),this._show(s,this.options.show),this.options.track&&this.options.show&&this.options.show.delay&&(n=this.delayedShow=setInterval(function(){s.is(":visible")&&(o(a.of),clearInterval(n))},13)),this._trigger("open",t,{tooltip:s}
1)))},_registerCloseHandlers:function(t,e){var i={keyup:function(t){t.keyCode===$.ui.keyCode.ESCAPE&&((t=$.Event(t)).currentTarget=e[0],this.close(t,!0))}};e[0]!==this.element[0]&&(i.remove=function(){var t=this._find(e);t&&this._removeTooltip(t.tooltip)}),t&&"mouseover"!==t.type||(i.mouseleave="close"),t&&"focusin"!==t.type||(i.focusout="close"),this._on(!0,e,i)},close:function(t){var e,i=this,s=$(t?t.currentTarget:this.element),n=this._find(s);n?(e=n.tooltip,n.closing||(clearInterval(this.delayedShow),s.data("ui-tooltip-title")&&!s.attr("title")&&s.attr("title",s.data("ui-tooltip-title")),this._removeDescribedBy(s),n.hiding=!0,e.stop(!0),this._hide(e,this.options.hide,function(){i._removeTooltip($(this))}),s.removeData("ui-tooltip-open"),this._off(s,"mouseleave focusout keyup"),s[0]!==this.element[0]&&this._off(s,"remove"),this._off(this.document,"mousemove"),t&&"mouseleave"===t.type&&$.each(this.parents,function(t,e){$(e.element).attr("title",e.title),delete i.parents[t]}),n.closing=!0,this._trigger("close",t,{tooltip:e}),n.hiding)||(n.closing=!1)):s.removeData("ui-tooltip-open")},_tooltip:function(t){var e=$("<div>").attr("role","tooltip"),i=$("<div>").appendTo(e),s=e.uniqueId().attr("id");return this._addClass(i,"ui-tooltip-content"),this._addClass(e,"ui-tooltip","ui-widget ui-widget-content"),e.appendTo(this._appendTo(t)),this.tooltips[s]={element:t,tooltip:e}},_find:function(t){return(t=t.data("ui-tooltip-id"))?this.tooltips[t]:null},_removeTooltip:function(t){clearInterval(this.delayedShow),t.remove(),delete this.tooltips[t.attr("id")]},_appendTo:function(t){return(t=t.closest(".ui-front, dialog")).length?t:this.document[0].body},_destroy:function(){var s=this;$.each(this.tooltips,function(t,e){var i=$.Event("blur"),e=e.element;i.target=i.currentTarget=e[0],s.close(i,!0),$("#"+t).remove(),e.data("ui-tooltip-title")&&(e.attr("title")||e.attr("title",e.data("ui-tooltip-title")),e.removeData("ui-tooltip-title"))}),this.liveRegion.remove()}}),!0===$.uiBackCompat&&$.widget("ui.tooltip",$.ui.tooltip,{options:{tooltipClass:null},_tooltip:function(){var t=this._superApply(arguments);return this.options.tooltipClass&&t.tooltip.addClass(this.options.tooltipClass),t}}),$.ui.tooltip}),(()=>{var n=30,u=13,d=1e3,f=2e3;function m(n,t,r,a){var o=!1,i=(n.classList.add("is-typing"),n.innerHTML="",document.createElement("div")),l=("string"==typeof t?i.textContent=t:t.childNodes.forEach(function(t){i.appendChild(t.cloneNode(!0))}),[]),h=[];for(!function t(e){e.nodeType===Node.TEXT_NODE?0<e.textContent.length&&(h.push(e.textContent),e.textContent="",l.push(e)):e.childNodes.forEach(t)}(i),l.forEach(function(t){for(var e=t.parentNode;e&&e!==i;)e.nodeType===Node.ELEMENT_NODE&&e.setAttribute("data-typing-pending",""),e=e.parentNode});i.firstChild;)n.appendChild(i.firstChild);var c=document.createElement("span");function p(){c.parentNode&&c.parentNode.removeChild(c)}c.className="aidee-typing-cursor",c.setAttribute("aria-hidden","true");var u=0,d=0;setTimeout(function t(){if(!o)if(l.length<=u)p(),n.classList.remove("is-typing"),"function"==typeof a&&a();else{var e,i=h[u];if(d<i.length){if(0===d){for(var s=l[u].parentNode;s&&s!==n;)s.hasAttribute("data-typing-pending")&&s.removeAttribute("data-typing-pending"),s=s.parentNode;(e=l[u])&&e.parentNode&&e.parentNode.insertBefore(c,e.nextSibling)}l[u].textContent+=i.charAt(d),d++}else u++,d=0;setTimeout(t,r)}},r)}function o(t,e){var i,s,n,r=t.querySelector(".aidee-summary__toggle"),a=t.querySelector(".aidee-summary__panel-outer"),o=t.querySelector(".aidee-summary__panel"),l=t.querySelector(".aidee-summary__header"),h=t.querySelector(".aidee-summary__toggle-label--open"),c=t.querySelector(".aidee-summary__toggle-label--close"),p=t.querySelector(".aidee-summary__output");a&&r&&(t.setAttribute("data-animating",""),r.setAttribute("aria-disabled","true"),r.setAttribute("aria-expanded","true"),h&&h.setAttribute("hidden",""),c&&c.removeAttribute("hidden"),l&&l.classList.add("is-open"),p&&(p.innerHTML="",p.classList.remove("is-visible","is-typing")),a.classList.add("is-open"),i=(h=e)[Math.floor(Math.random()*h.length)],s=(c=t).querySelector(".aidee-summary__thinking"),l=c.querySelector(".aidee-summary__output"),c=c.querySelector(".aidee-summary__panel"),s&&s.classList.add("is-visible"),l&&l.classList.remove("is-visible"),c&&c.setAttribute("aria-busy","true"),n=d+Math.random()*(f-d),new Promise(function(t){setTimeout(function(){s&&s.classList.remove("is-visible"),t()},n)}).then(function(){t.removeAttribute("data-animating"),r.removeAttribute("aria-disabled"),a.classList.contains("is-open")&&p&&(p.classList.add("is-visible"),o&&o.setAttribute("aria-busy","false"),window.matchMedia("(prefers-reduced-motion: reduce)").matches?i.childNodes.forEac
1h(function(t){p.appendChild(t.cloneNode(!0))}):m(p,i,u))}))}function l(t){var e,i=t.querySelector(".aidee-summary__toggle"),s=t.querySelector(".aidee-summary__panel-outer"),n=t.querySelector(".aidee-summary__panel"),r=t.querySelector(".aidee-summary__header"),a=t.querySelector(".aidee-summary__toggle-label--open"),o=t.querySelector(".aidee-summary__toggle-label--close"),l=t.querySelector(".aidee-summary__output"),h=t.querySelector(".aidee-summary__thinking");function c(){e||(e=!0,t.removeAttribute("data-animating"),i.removeAttribute("aria-disabled"))}s&&i&&(t.setAttribute("data-animating",""),i.setAttribute("aria-disabled","true"),i.setAttribute("aria-expanded","false"),a&&a.removeAttribute("hidden"),o&&o.setAttribute("hidden",""),r&&r.classList.remove("is-open"),s.classList.remove("is-open"),e=!1,s.addEventListener("transitionend",function t(e){"grid-template-rows"===e.propertyName&&(s.removeEventListener("transitionend",t),c(),l&&(l.innerHTML="",l.classList.remove("is-visible","is-typing")),h&&h.classList.remove("is-visible"),n)&&n.setAttribute("aria-busy","false")}),setTimeout(c,700))}function h(t){var i,s=t.querySelector(".aidee-summary__initial-text");s&&(i=s.textContent.trim(),s.textContent="","IntersectionObserver"in window?new IntersectionObserver(function(t,e){t.forEach(function(t){t.isIntersecting&&(e.unobserve(t.target),window.matchMedia("(prefers-reduced-motion: reduce)").matches?s.textContent=i:m(s,i,n))})},{threshold:.1}).observe(s):s.textContent=i)}function e(t){a=(a=t).querySelectorAll(".aidee-summary__data"),e=[],a.forEach(function(t){t.hasChildNodes()&&e.push(t)});var e,i,s,n,r,a=e;0!==a.length&&((i=t.querySelector(".aidee-summary__panel-outer"))&&i.classList.remove("is-open"),n=a,(r=(s=t).querySelector(".aidee-summary__toggle"))&&r.addEventListener("click",function(){s.hasAttribute("data-animating")||("true"===r.getAttribute("aria-expanded")?l(s):o(s,n))}),h(t))}document.addEventListener("DOMContentLoaded",function(){var t=document.querySelectorAll(".aidee-summary");t.length&&t.forEach(function(t){e(t)})})})(),document.addEventListener("DOMContentLoaded",function(){document.body.classList.remove("no-js"),initFuzzySearch()}),window.displayConsentManager=function(){"undefined"!=typeof Optanon&&"function"==typeof Optanon.ToggleInfoDisplay&&Optanon.ToggleInfoDisplay()},document.addEventListener("DOMContentLoaded",function(){document.querySelectorAll(".logo-banner").forEach(t=>{let s=Array.from(t.querySelectorAll(".img-wrap")),n=0;t=window.getComputedStyle(t);let r=parseFloat(t.getPropertyValue("gap"))||80;s.forEach((t,e)=>{var i=n;n+=100+r,t.style.position="absolute",t.style.left=i+"px"}),function t(){s.forEach(t=>{var e=parseFloat(t.style.left),i=t.offsetWidth;t.style.left=e-.5+"px",e+i<-50&&(e=s[s.length-1],i=parseFloat(e.style.left)+e.offsetWidth+r,t.style.left=i+"px",s.push(s.shift()))}),requestAnimationFrame(t)}()})});let EDITION_TIERS={essentials:0,advantage:1,premier:2},EDITION_DATA={essentials:{name:"Duo Essentials",description:"Simple identity management and authentication that puts security first",cost:"3"},advantage:{name:"Duo Advantage",description:"Dynamic threat detection, oversight, and seamless authentication",cost:"6"},premier:{name:"Duo Premier",description:"Comprehensive identity security for secure zero trust access",cost:"9"}},currentDuoEdition="advantage";var roiValues={"roi-risk-reduction-value":0,"roi-productivity-recovery-value":0,"roi-operational-efficiency-value":0,"roi-license-cost-value":0,"roi-deployment-cost-value":0,"roi-maintenance-cost-value":0},BENEFIT_IDS=["roi-risk-reduction-value","roi-productivity-recovery-value","roi-operational-efficiency-value"],COST_IDS=["roi-license-cost-value","roi-deployment-cost-value","roi-maintenance-cost-value"],PCT_IDS={hiddenRiskPct:{elId:"hidden-risk-reduction-percent",roiKey:"roi-risk-reduction-value",payloadKey:"riskReductionPercent"},hiddenOpEffPct:{elId:"hidden-operational-efficiency-percent",roiKey:"roi-operational-efficiency-value",payloadKey:"operationalEfficiencyPercent"},hiddenProdPct:{elId:"hidden-productivity-recovery-percent",roiKey:"roi-productivity-recovery-value",payloadKey:"productivityRecoveryPercent"},hiddenLicensePct:{elId:"hidden-license-cost-percent",roiKey:"roi-license-cost-value",payloadKey:"licenseCostPercent"},hiddenDeployPct:{elId:"hidden-deployment-cost-percent",roiKey:"roi-deployment-cost-value",payloadKey:"deploymentCostPercent"},hiddenMaintenancePct:{elId:"hidden-maintenance-cost-percent",roiKey:"roi-maintenance-cost-value",payloadKey:"maintenanceCostPercent"}}
1,mqlMobile=window.matchMedia("(max-width: 720px)"),els={},roiValueEls={},hiddenValueEls={},costOfAttackValue=0,cyberInsuranceValue=0,complianceEfficiencyValue=0,iamConsolidationValue=0,authCostValue=0,endUserProductivityValue=0,helpDeskCostValue=0,helpDeskRecaptureValue=0,incidentResponseValue=0,maintenanceCostAnnualValue=0,duoCareSupportValue=0,roiAmountValue=0,totalBenefitsValue=0,totalCostsValue=0,maxRoiValue=0,progressPctValues={},HIDDEN_PERCENT_MIN=4,HIDDEN_PERCENT_MAX=100;function normalizeHiddenPercent(t){var t=Number(t)||0;return t<=0?0:(t=Math.round(t),Math.min(HIDDEN_PERCENT_MAX,Math.max(HIDDEN_PERCENT_MIN,t)))}function initRoiRangeSlider(){let r=document.getElementById("numberapps");if(r){let s=r.closest(".roi-range-wrap");let n=s.querySelector(".roi-range-bubble").querySelector(".roi-range-bubble__value");function t(){var t=parseFloat(r.min)||0,e=parseFloat(r.max)||100,i=parseFloat(r.value),t=(i-t)/(e-t);s.style.setProperty("--roi-range-percent",t),n.textContent=e<=i?e+"+":i}r.addEventListener("input",t),t()}}function initRoiTestimonial(){let n=document.getElementById("employees"),r=document.getElementById("roi-testimonial");if(n&&r){let i=r.querySelectorAll("[data-roi-testimonial]"),s=null;function a(){clearTimeout(s),i.forEach(function(t){t.hidden=!0,t.style.opacity=""})}function o(t){t.style.opacity="0",t.hidden=!1,requestAnimationFrame(function(){requestAnimationFrame(function(){t.style.opacity=""})})}n.addEventListener("input",function(){var t=parseInt(n.value,10),t=isNaN(t)?"default":(t=t)<11?"free":t<1e3?"smb":t<1e4?"mid":t<5e4?"large":"enterprise";let e=r.querySelector('[data-roi-testimonial="'+t+'"]');e&&(clearTimeout(s),(t=Array.prototype.find.call(i,function(t){return!t.hidden}))&&t!==e?(t.style.opacity="0",s=setTimeout(function(){a(),o(e)},250)):(a(),o(e)))})}}function initCheckboxGridDetailsToggle(){function n(){document.querySelectorAll(".checkbox-grid__tooltip.is-open").forEach(function(t){t.classList.remove("is-open"),t.classList.remove("is-below")})}document.querySelectorAll(".checkbox-grid__box").forEach(function(t){var i=t.querySelector(".checkbox-grid__details-toggle"),s=t.querySelector(".checkbox-grid__tooltip");i&&s&&i.addEventListener("click",function(t){var e;t.stopPropagation(),mqlMobile.matches&&(t=s.classList.contains("is-open"),n(),t||(t=i.getBoundingClientRect(),e=window.innerHeight-t.bottom,t.top<e&&s.classList.add("is-below"),s.classList.add("is-open")))})}),document.addEventListener("click",function(){mqlMobile.matches&&n()})}function getCheckboxMultipliers(){var e=1,i=1,s=1;return els.checkboxGridInputs.forEach(function(t){t.checked&&(t.dataset.roiRisk&&(e+=parseFloat(t.dataset.roiRisk)||0),t.dataset.roiProductivity&&(i+=parseFloat(t.dataset.roiProductivity)||0),t.dataset.roiEfficiency)&&(s+=parseFloat(t.dataset.roiEfficiency)||0)}
1),{risk:e,productivity:i,efficiency:s}}function calculateRiskReduction(t){var e=(parseInt(els.employees?.value,10)||0)+(parseInt(els.contractors?.value,10)||0);return e<=0?0:(e=.51*(Math.log(e)*(3265e3/Math.log(1e4)))*.7,(costOfAttackValue=e)*("essentials"===currentDuoEdition?.6:.85)*t.risk)}function updateRiskReductionDisplay(t){var e=roiValueEls["roi-risk-reduction-value"];e&&(t=calculateRiskReduction(t),animateCurrencyValue(e,roiValues["roi-risk-reduction-value"]=t))}function calculateProductivityRecovery(t){var e,i=parseInt(els.employees?.value,10)||0,s=parseInt(els.contractors?.value,10)||0,n=i+s;return n<=0?0:(authCostValue=s=48*(.025*(i=500*(i+.5*s))),i=.5/60*i,s="essentials"===currentDuoEdition?.5*(s-48*i):.5*(s-i*(1-.9)*48),endUserProductivityValue=s,i=Math.log(n)*(1200/Math.log(1e4)),helpDeskCostValue=.25*i*50,i="essentials"===currentDuoEdition?50*(.25*(e=.4*i)+.25*(i-e)*.25):50*(.25*(e=.6*i)+.25*(i-e)*.5),incidentResponseValue=e=.4992*n*.5*72,(s+(helpDeskRecaptureValue=i)+("essentials"!==currentDuoEdition?e:0))*t.productivity)}function updateProductivityRecoveryDisplay(t){var e=roiValueEls["roi-productivity-recovery-value"];e&&(t=calculateProductivityRecovery(t),animateCurrencyValue(e,roiValues["roi-productivity-recovery-value"]=t))}function calculateOperationalEfficiency(t){var e,i,s=parseInt(els.employees?.value,10)||0,n=parseInt(els.contractors?.value,10)||0,r=Array.prototype.some.call(els.byodRadios,function(t){return t.checked&&"yes"===t.value}),a=""!==(a=els.idTools?.value)&&null!=a?parseInt(a,10):0,n=s+n;return n<=0?0:(s=s,i=500+4500*(Math.max(0,Math.min(s,1e3))-1)/999,e=5e3+145e3*(Math.max(1e3,Math.min(s,1e4))-1e3)/9e3,i=500+(1-(s=Math.max(0,Math.min((s-1e3)/9e3,1))))*(i-500)+s*(e-500),s=r?.2*i:0,e="essentials"===currentDuoEdition?.2*(i+s):.4*(i+s),cyberInsuranceValue=e,r=Math.log(n)*(1664/Math.log(1e4)),i="essentials"===currentDuoEdition?.15*r*72*.8:.25*r*72*.8,(e+(complianceEfficiencyValue=i)+(iamConsolidationValue=.5*(n/1e4*3328*(a/5))*72*.8))*t.efficiency)}function updateOperationalEfficiencyDisplay(t){var e=roiValueEls["roi-operational-efficiency-value"];e&&(t=calculateOperationalEfficiency(t),animateCurrencyValue(e,roiValues["roi-operational-efficiency-value"]=t))}function calculateLicenseCost(){return((parseInt(els.employees?.value,10)||0)+(parseInt(els.contractors?.value,10)||0))*parseFloat(EDITION_DATA[currentDuoEdition].cost)*12}function updateLicenseCostDisplay(){var t,e=roiValueEls["roi-license-cost-value"];e&&(t=calculateLicenseCost(),animateCurrencyValue(e,roiValues["roi-license-cost-value"]=t))}function calculateDeploymentCost(){var t=parseInt(els.employees?.value,10)||0,e=parseInt(els.contractors?.value,10)||0,i=parseInt(els.numberapps?.value,10)||0;return t<=0?0:72*(.018*(t+e)+.5*i)+48*(.5*t)}function updateDeploymentCostDisplay(){var t,e=roiValueEls["roi-deployment-cost-value"];e&&(t=calculateDeploymentCost(),animateCurrencyValue(e,roiValues["roi-deployment-cost-value"]=t))}function calculateMaintenanceCost(){var t=parseInt(els.employees?.value,10)||0,e=parseInt(els.numberapps?.value,10)||0;return t<=0?0:(maintenanceCostAnnualValue=72*(.0312*(e+t)))+(duoCareSupportValue=2e3<=t?14e3:0)}function updateMaintenanceCostDisplay(){var t,e=roiValueEls["roi-maintenance-cost-value"];e&&(t=calculateMaintenanceCost(),animateCurrencyValue(e,roiValues["roi-maintenance-cost-value"]=t))}function clampNumberInput(t){var e,i,s;t&&""!==t.value&&(e=parseInt(t.value,10),isNaN(e)||(i=""!==t.min?parseInt(t.min,10):null,null!==(s=""!==t.max?parseInt(t.max,10):null)&&s<e?t.value=s:null!==i&&e<i&&(t.value=i)))}function updateAllCalculationDisplays(){[els.employees,els.contractors,els.idTools].forEach(clampNumberInput);var t=getCheckboxMultipliers();updateRiskReductionDisplay(t),updateProductivityRecoveryDisplay(t),updateOperationalEfficiencyDisplay(t),updateLicenseCostDisplay(),updateDeploymentCostDisplay(),updateMaintenanceCostDisplay(),updateProgressBars()}function initCalculationListeners(){let t=null;function e(){clearTimeout(t),t=setTimeout(updateAllCalculationDisplays,600)}function i(){clearTimeout(t),updateAllCalculationDisplays()}
1if([els.employees,els.contractors,els.idTools].forEach(function(t){t&&(t.addEventListener("input",e),t.addEventListener("blur",i))}),els.numberapps){let t=null;els.numberapps.addEventListener("input",function(){clearTimeout(t)}),els.numberapps.addEventListener("change",function(){clearTimeout(t),t=setTimeout(updateAllCalculationDisplays,400)})}els.byodRadios.forEach(function(t){t.addEventListener("change",updateAllCalculationDisplays)}),els.riskAdj&&els.riskAdj.addEventListener("change",updateSidebarTotal),updateAllCalculationDisplays()}function updateProgressBars(){var t=Object.keys(roiValues),s=t.reduce(function(t,e){return Math.max(t,Math.abs(roiValues[e]))},0);maxRoiValue=s,t.forEach(function(t){progressPctValues[t]=0;var e,i=roiValueEls[t];i&&(i=i.closest(".roi-progress-wrap").querySelector(".roi-progress-bar__fill"))&&(e=Math.abs(roiValues[t]),progressPctValues[t]=t=0<s?e/s*100:0,i.style.width=0<s?"max(10px, "+t+"%)":"10px")}),updateSidebarTotal(),syncHiddenInputs(s)}function syncHiddenInputs(t){Object.keys(roiValues).forEach(function(t){var e=hiddenValueEls[t];e&&(e.value=Math.round(roiValues[t]||0))}),Object.keys(PCT_IDS).forEach(function(t){var e=els[t];e&&(t=progressPctValues[PCT_IDS[t].roiKey]||0,e.value=normalizeHiddenPercent(t))}),[["hiddenCostOfAttack",costOfAttackValue],["hiddenCyberInsurance",cyberInsuranceValue],["hiddenComplianceEfficiency",complianceEfficiencyValue],["hiddenIamConsolidation",iamConsolidationValue],["hiddenAuthCost",authCostValue],["hiddenEndUserProductivity",endUserProductivityValue],["hiddenHelpDeskCost",helpDeskCostValue],["hiddenHelpDeskRecapture",helpDeskRecaptureValue],["hiddenIncidentResponse",incidentResponseValue],["hiddenMaintenanceCostAnnual",maintenanceCostAnnualValue],["hiddenDuoCareSupport",duoCareSupportValue]].forEach(function(t){els[t[0]]&&(els[t[0]].value=Math.round(t[1]||0))})}function updateSidebarTotal(){var t,e,i;els.calculatorTotal&&(t=(parseInt(els.riskAdj?.value,10)||0)/100,e=(i=BENEFIT_IDS.reduce(function(t,e){return t+(roiValues[e]||0)},0))*(1-t)-(t=COST_IDS.reduce(function(t,e){return t+(roiValues[e]||0)},0)),(i=0<i||0<t)?(animateCurrencyValue(els.calculatorTotal,e),els.calculatorTotal.classList.add("active")):(els.calculatorTotal.textContent="$0",els.calculatorTotal.classList.remove("active")),roiAmountValue=i?Math.round(e):0,totalBenefitsValue=i?BENEFIT_IDS.reduce(function(t,e){return t+Math.round(roiValues[e]||0)},0):0,totalCostsValue=i?COST_IDS.reduce(function(t,e){return t+Math.round(roiValues[e]||0)},0):0,els.hiddenTotal&&(els.hiddenTotal.value=roiAmountValue),els.hiddenTotalBenefits&&(els.hiddenTotalBenefits.value=totalBenefitsValue),els.hiddenTotalCosts)&&(els.hiddenTotalCosts.value=totalCostsValue)}function formatCurrency(t){return"$"+Math.round(t).toLocaleString("en-US")}document.addEventListener("DOMContentLoaded",function(){function t(){var t=document.querySelector(".top-navigation-container");document.documentElement.style.setProperty("--nav-height",t?t.offsetHeight+"px":"0px")}els.byodRadios=document.querySelectorAll('input[name="byodpolicy"]'),els.editionCheckboxes=document.querySelectorAll('.checkbox-grid input[type="checkbox"][data-duoedition]'),els.checkboxGridInputs=document.querySelectorAll('.checkbox-grid input[type="checkbox"]'),[["employees","employees"],["contractors","sizeorganizationexternal"],["idTools","numotheridapps"],["numberapps","numberapps"],["riskAdj","risk-adjustment"],["industry","industry"],["calculatorTotal","roi-calculator-total"],["hiddenTotal","hidden-roi-calculator-total"],["hiddenTotalBenefits","hidden-total-benefits"],["hiddenTotalCosts","hidden-total-costs"],["hiddenPricePerUser","hidden-price-per-user"],["hiddenSizeOrg","hidden-sizeorganizationinternal"],["hiddenCostOfAttack","hidden-cost-of-attack"],["hiddenCyberInsurance","hidden-cyber-insurance"],["hiddenComplianceEfficiency","hidden-compliance-efficiency"],["hiddenIamConsolidation","hidden-iam-consolidation"],["hiddenAuthCost","hidden-auth-cost"],["hiddenEndUserProductivity","hidden-end-user-productivity"],["hiddenHelpDeskCost","hidden-help-desk-cost"],["hiddenHelpDeskRecapture","hidden-help-desk-recapture"],["hiddenIncidentResponse","hidden-incident-response"],["hiddenMaintenanceCostAnnual","hidden-maintenance-cost-annual"],["hiddenDuoCareSupport","hidden-duo-care-support"],["hiddenDuoEdition","hidden-duo-edition"],["hiddenDuoEditionDescription","hidden-duo-edition-description"],["duoEditionBox","duoedition-box"],["resetBtn","roi-calculator-reset"],["form219","form219"]].forEac
1h(function(t){els[t[0]]=document.getElementById(t[1])}),Object.keys(roiValues).forEach(function(t){roiValueEls[t]=document.getElementById(t),hiddenValueEls[t]=document.getElementById("hidden-"+t)}),Object.keys(PCT_IDS).forEach(function(t){els[t]=document.getElementById(PCT_IDS[t].elId)}),initRoiRangeSlider(),initRoiTestimonial(),initCheckboxGridDetailsToggle(),initDuoEditionTracking(),initCalculationListeners(),initSizeOrganizationSync(),initSidebarToggle(),initResetButton(),initRoiPdfRequest(),initMarketingDescriptionPrefix(),initStatePreservation(),updateDuoEditionBox(!1),document.querySelectorAll('.roi-calculator-js-content input[type="number"]').forEach(function(t){t.addEventListener("wheel",function(){this.blur()},{passive:!0}),t.addEventListener("keydown",function(t){"."!==t.key&&","!==t.key||t.preventDefault()})}),t(),window.addEventListener("resize",t)});var _animState=new WeakMap;function animateCurrencyValue(s,n,r){r=void 0!==r?r:500;var a,o=parseFloat((s.textContent||"").replace(/[^0-9.-]/g,""))||0,t=_animState.get(s);t&&cancelAnimationFrame(t),o===n?s.textContent=formatCurrency(n):(a=null,_animState.set(s,requestAnimationFrame(function t(e){var e=e-(a=a||e),e=Math.min(e/r,1),i=1-Math.pow(1-e,3);s.textContent=formatCurrency(o+(n-o)*i),e<1?_animState.set(s,requestAnimationFrame(t)):(s.textContent=formatCurrency(n),_animState.delete(s))})))}function updateDuoEditionBox(i){if(els.duoEditionBox){let e=EDITION_DATA[currentDuoEdition];if(e){let t=els.duoEditionBox.querySelector(".duoedition-box__content");function s(){t.querySelector(".h4").textContent=e.name,t.querySelectorAll("p")[1].textContent=e.description,t.querySelectorAll("p")[2].innerHTML="<strong>$"+e.cost+"</strong> per user per month",els.hiddenPricePerUser&&(els.hiddenPricePerUser.value=e.cost),els.hiddenDuoEdition&&(els.hiddenDuoEdition.value=currentDuoEdition),els.hiddenDuoEditionDescription&&(els.hiddenDuoEditionDescription.value=e.description)}i&&t?(t.style.opacity="0",setTimeout(function(){s(),t.style.opacity=""},200)):s()}}}function initSidebarToggle(){var e,i,s,t,n,r=document.querySelector(".section--pricing-roi-calculator aside");function a(){r.classList.remove("sidebar--expanded"),e&&e.setAttribute("aria-expanded","false"),i&&(i.setAttribute("aria-expanded","false"),i.setAttribute("aria-label","Show breakdown"))}function o(){i&&(i.tabIndex=mqlMobile.matches?0:-1)}r&&(e=r.querySelector(".sidebar-toggle"),i=r.querySelector(".area-total"),s=!1,new IntersectionObserver(function(t){t.forEach(function(t){!mqlMobile.matches||r.classList.contains("sidebar--expanded")&&!s&&!t.isIntersecting&&t.boundingClientRect.bottom<0&&a()})},{threshold:0}).observe(r),i&&(o(),mqlMobile.addEventListener("change",o),i.addEventListener("click",function(){var t;mqlMobile.matches&&(t=r.classList.toggle("sidebar--expanded"),i.setAttribute("aria-expanded",t?"true":"false"),i.setAttribute("aria-label",t?"Hide breakdown":"Show breakdown"),e&&e.setAttribute("aria-expanded",t?"true":"false"),t)&&(s=!0,window.scrollTo({top:0,behavior:"smooth"}),setTimeout(function(){s=!1},800))}),i.addEventListener("keydown",function(t){!mqlMobile.matches||"Enter"!==t.key&&" "!==t.key||(t.preventDefault(),i.click())})),(t=r.querySelector(".sidebar-close"))&&t.addEventListener("click",a),n=!1,window.addEventListener("scroll",function(){mqlMobile.matches||n||(n=!0,r.scrollTo({top:0,behavior:"smooth"}),setTimeout(function(){n=!1},800))}))}function initSizeOrganizationSync(){function t(){els.hiddenSizeOrg.value=els.employees.value}els.employees&&els.hiddenSizeOrg&&(els.employees.addEventListener("input",t),t())}function initDuoEditionTracking(){function e(){let e=-1;els.editionCheckboxes.forEach(function(t){t.checked&&void 0!==(t=EDITION_TIERS[t.dataset.duoedition])&&t>e&&(e=t)});var t=currentDuoEdition;(currentDuoEdition=0<=e?Object.keys(EDITION_TIERS).find(function(t){return EDITION_TIERS[t]===e}):"essentials")!==t&&updateDuoEditionBox(!0)}els.editionCheckboxes.length&&(els.editionCheckboxes.forEach(function(t){t.addEventListener("change",function(){e(),updateAllCalculationDisplays()})}),e(),updateAllCalculationDisplays())}var ROI_PDF_ENDPOINT_STRINGS={local:"https://sbgweb-roi-pdf-generator.test/",
1staging:"https://staging-security-api-endpoint.sbgweb.duosec.org",production:"https://security-api-endpoint.marketops.umbrella.com"};function getRoiPdfEndpoint(){var t=window.location.hostname,e=new URLSearchParams(window.location.search).get("env");return e&&ROI_PDF_ENDPOINT_STRINGS[e]?ROI_PDF_ENDPOINT_STRINGS[e]:"localhost"===t||"127.0.0.1"===t||t.includes(".test")?ROI_PDF_ENDPOINT_STRINGS.local:t.includes("staging")||t.includes("stage")||t.includes("duosec")?ROI_PDF_ENDPOINT_STRINGS.staging:ROI_PDF_ENDPOINT_STRINGS.production}function initRoiPdfRequest(){els.form219&&els.form219.addEventListener("formWillSubmit",function(){updateAllCalculationDisplays();var i={},t=(Object.keys(PCT_IDS).forEach(function(t){var e=progressPctValues[PCT_IDS[t].roiKey]||0;i[PCT_IDS[t].payloadKey]=String(normalizeHiddenPercent(e))}),Object.assign({riskReduction:String(Math.round(roiValues["roi-risk-reduction-value"]||0)),productivityRecovery:String(Math.round(roiValues["roi-productivity-recovery-value"]||0)),operationalEfficiency:String(Math.round(roiValues["roi-operational-efficiency-value"]||0)),licenseCost:String(Math.round(roiValues["roi-license-cost-value"]||0)),deploymentCost:String(Math.round(roiValues["roi-deployment-cost-value"]||0)),maintenanceCost:String(Math.round(roiValues["roi-maintenance-cost-value"]||0)),roiAmount:String(roiAmountValue),totalBenefits:String(totalBenefitsValue),totalCosts:String(totalCostsValue),costOfAttack:String(Math.round(costOfAttackValue)),cyberInsurance:String(Math.round(cyberInsuranceValue)),complianceEfficiency:String(Math.round(complianceEfficiencyValue)),iamConsolidation:String(Math.round(iamConsolidationValue)),authCost:String(Math.round(authCostValue)),endUserProductivity:String(Math.round(endUserProductivityValue)),helpDeskCost:String(Math.round(helpDeskCostValue)),helpDeskRecapture:String(Math.round(helpDeskRecaptureValue)),incidentResponse:String(Math.round(incidentResponseValue)),maintenanceCostAnnual:String(Math.round(maintenanceCostAnnualValue)),duoCareSupport:String(Math.round(duoCareSupportValue))},i,{duoEdition:currentDuoEdition,duoEditionDescription:EDITION_DATA[currentDuoEdition].description,pricePerUser:EDITION_DATA[currentDuoEdition].cost,employees:String(parseInt(els.employees?.value,10)||0),sizeorganizationinternal:String(parseInt(els.employees?.value,10)||0),sizeorganizationexternal:String(parseInt(els.contractors?.value,10)||0),industry:els.industry?.value||"",byodpolicy:((t=Array.prototype.find.call(els.byodRadios,function(t){return t.checked}))?t.value:"")||"",numberapps:String(parseInt(els.numberapps?.value,10)||0),numotheridapps:String(parseInt(els.idTools?.value,10)||0),riskadjustment:String(parseInt(els.riskAdj?.value,10)||0),secpriorities:Array.from(els.checkboxGridInputs).filter(function(t){return t.checked}).map(function(t){return t.value})})),e=getRoiPdfEndpoint();try{sessionStorage.setItem("roiPdfEndpoint",e),sessionStorage.setItem("roiPdfPayload",JSON.stringify(t))}catch(t){}},{once:!0})}function initMarketingDescriptionPrefix(){var e;els.form219&&(e={contractors:document.getElementById("hidden-sizeorganizationexternal"),numberapps:document.getElementById("hidden-numberapps"),industry:document.getElementById("hidden-industry"),byodpolicy:document.getElementById("hidden-byodpolicy"),idtools:document.getElementById("hidden-numotheridapps"),riskadj:document.getElementById("hidden-risk-adjustment")},els.form219.addEventListener("formWillSubmit",function(){var t;e.contractors&&(e.contractors.value=els.contractors?.value||"",els.contractors)&&(els.contractors.disabled=!0),e.numberapps&&(e.numberapps.value=els.numberapps?.value||"0",els.numberapps)&&(els.numberapps.disabled=!0),e.industry&&(e.industry.value=els.industry?.value||"",els.industry)&&(els.industry.disabled=!0),e.byodpolicy&&(t=Array.prototype.find.call(els.byodRadios,function(t){return t.checked}),e.byodpolicy.value=t?t.value:"",els.byodRadios.forEach(function(t){"radio"===t.type&&(t.disabled=!0)})),e.idtools&&(e.idtools.value=els.idTools?.value||"",els.idTools)&&(els.idTools.disabled=!0),e.riskadj&&(e.riskadj.value=els.riskAdj?.value||"",els.riskAdj)&&(els.riskAdj.disabled=!0),document.querySelectorAll("[data-marketing-description]").forEach(function(t){var e=t.dataset.marketingDescription;e&&t.value&&("checkbox"!==t.type||t.checked)&&(t.value=e+t.value)})},{once:!0}))}function initResetButton(){els.resetBtn&&els.resetBtn.addEventListener("click",resetCalculator)}
1function resetCalculator(){Object.keys(roiValues).forEach(function(t){roiValues[t]=0;t=roiValueEls[t];t&&animateCurrencyValue(t,0)}),totalCostsValue=totalBenefitsValue=roiAmountValue=duoCareSupportValue=maintenanceCostAnnualValue=incidentResponseValue=helpDeskRecaptureValue=helpDeskCostValue=endUserProductivityValue=authCostValue=iamConsolidationValue=complianceEfficiencyValue=cyberInsuranceValue=costOfAttackValue=0,updateProgressBars(),[els.employees,els.contractors].forEach(function(t){t&&(t.value="",t.dispatchEvent(new Event("input",{bubbles:!0})))}),els.idTools&&(els.idTools.value="5",els.idTools.dispatchEvent(new Event("input",{bubbles:!0}))),els.numberapps&&(els.numberapps.value=0,els.numberapps.dispatchEvent(new Event("input",{bubbles:!0}))),els.industry&&(els.industry.value="",els.industry.dispatchEvent(new Event("change",{bubbles:!0}))),els.byodRadios.forEach(function(t){t.checked=!1}),els.riskAdj&&(els.riskAdj.value="15",els.riskAdj.dispatchEvent(new Event("change",{bubbles:!0}))),els.editionCheckboxes.forEach(function(t){t.checked=t.defaultChecked,t.dispatchEvent(new Event("change",{bubbles:!0}))});try{sessionStorage.removeItem(ROI_STATE_KEY)}catch(t){}}var ROI_STATE_KEY="roiCalculatorState";function saveCalculatorState(){var t=parseInt(els.employees?.value,10),t={headcount:isNaN(t)?"":String(t),contractors:els.contractors?.value||"",idTools:els.idTools?.value||"",numberapps:els.numberapps?.value||"0",industry:els.industry?.value||"",byodpolicy:(t=Array.prototype.find.call(els.byodRadios,function(t){return t.checked}))?t.value:"",riskAdj:els.riskAdj?.value||"15",checkboxes:Array.from(els.checkboxGridInputs).map(function(t){return t.checked})};try{sessionStorage.setItem(ROI_STATE_KEY,JSON.stringify(t))}catch(t){}}function restoreCalculatorState(){var t,i;try{t=sessionStorage.getItem(ROI_STATE_KEY)}catch(t){return}if(t){try{i=JSON.parse(t)}catch(t){return}i.headcount&&els.employees&&(els.employees.value=i.headcount),i.contractors&&els.contractors&&(els.contractors.value=i.contractors),""!==i.idTools&&null!=i.idTools&&els.idTools&&(els.idTools.value=i.idTools),i.numberapps&&els.numberapps&&(els.numberapps.value=i.numberapps,els.numberapps.dispatchEvent(new Event("input",{bubbles:!0}))),i.industry&&els.industry&&(els.industry.value=i.industry),i.riskAdj&&els.riskAdj&&(els.riskAdj.value=i.riskAdj),i.byo
1dpolicy&&els.byodRadios.forEach(function(t){t.checked=t.value===i.byodpolicy}),Array.isArray(i.checkboxes)&&els.checkboxGridInputs.forEach(function(t,e){void 0!==i.checkboxes[e]&&(t.checked=i.checkboxes[e])})}}function initStatePreservation(){function e(){saveCalculatorState()}[els.employees,els.contractors,els.idTools].forEach(function(t){t&&t.addEventListener("input",e)}),els.numberapps&&els.numberapps.addEventListener("change",e),els.industry&&els.industry.addEventListener("change",e),els.riskAdj&&els.riskAdj.addEventListener("change",e),els.byodRadios.forEach(function(t){t.addEventListener("change",e)}),els.checkboxGridInputs.forEach(function(t){t.addEventListener("change",e)}),window.addEventListener("pageshow",function(t){if(!t.persisted){t=(performance.getEntriesByType("navigation")[0]||{}).type;if("reload"===t)try{sessionStorage.removeItem(ROI_STATE_KEY)}catch(t){}else"back_forward"===t&&(restoreCalculatorState(),updateAllCalculationDisplays())}})}document.addEventListener("DOMContentLoaded",function(){let e=window.location.pathname.replace(/\/$/,"")||"/";if(["/blog","/learn","/docs"].some(t=>e===t||e.startsWith(t+"/"))){let r=document.querySelector("[data-progress-bar-target]");if(r){var t=document.querySelector("#site-container")||document.body;let s=document.createElement("div");var i=document.createElement("div");s.className="page-scroll-progress",i.className="page-scroll-progress__bar",s.appendChild(i),t.appendChild(s);let n=null;function a(){null===n&&(n=window.requestAnimationFrame(function(){var t,e,i;t=(e=r.getBoundingClientRect().top+window.scrollY)+r.offsetHeight,e-=i=.75*window.innerHeight,t=Math.max(t-i-e,1),i=(window.scrollY-e)/t,e=Math.min(Math.max(i,0),1),s.style.setProperty("--scroll-progress",e.toFixed(4)),n=null}))}"undefined"!=typeof ResizeObserver&&new ResizeObserver(a).observe(r),window.addEventListener("load",a,{once:!0}),window.addEventListener("resize",a,{passive:!0}),window.addEventListener("scroll",a,{passive:!0}),a()}}}),document.addEventListener("DOMContentLoaded",function(){let a=document.querySelector(".tabs-wrapper");if(a){let r=Array.from(document.querySelectorAll(".tabs-bar a")).map(t=>document.querySelector(t.getAttribute("href"))).filter(t=>null!==t);function e(){return window.innerWidth<1026}function i(t,e=80){var i=document.querySelector(t);i&&(i=i.getBoundingClientRect().top+window.scrollY-e,window.scrollTo({top:i,behavior:"smooth"}),history.pushState(null,"",t))}function t(){if(r.length){var e=r[r.length-1],s=document.querySelectorAll(".tabs-bar a");e.getBoundingClientRect().bottom<window.innerHeight/2?a.classList.add("unstick"):a.classList.remove("unstick");let t=null;var i,n=window.innerHeight/2;for(i of r){if(!(i.getBoundingClientRect().top<=n))break;t=i}if(t){let e=t.getAttribute("id"),i=null;
1s.forEach(t=>{t.getAttribute("href")==="#"+e&&(i=t)}),s.forEach(t=>{t.classList.remove("active"),t.setAttribute("aria-selected","false")}),i&&(i.classList.add("active"),i.setAttribute("aria-selected","true"))}}}document.querySelectorAll(".tabs-bar a").forEach(t=>{t.addEventListener("click",function(t){t.preventDefault(),window.scrollInitiatedByTabLinkClick=!0,e()?(document.querySelector(".tabs-menu-container")?.classList.toggle("show"),(t=this.querySelector("i"))&&t.classList.toggle("rotate")):i(this.getAttribute("href"))})}),document.querySelectorAll(".tabs-menu-container a").forEach(t=>{t.addEventListener("click",function(t){t.preventDefault(),e()&&(document.querySelector(".tabs-menu-container")?.classList.toggle("show"),document.querySelectorAll(".tabs-bar a").forEach(t=>{t.classList.remove("active"),t.setAttribute("aria-selected","false")}),t=this.getAttribute("href"),(t=document.querySelector(`.tabs-bar a[href="${t}"]`))&&(t.classList.add("active"),t.setAttribute("aria-selected","true")),i(this.getAttribute("href")))})}),window.addEventListener("scroll",t),t()}}),document.addEventListener("DOMContentLoaded",function(){var t=document.querySelectorAll(".testimonial-wrapper");0!==t.length&&t.forEach(t=>{let l=t.querySelector(".next-btn"),h=t.querySelector(".pause-btn"),c=t.querySelector(".controls-container"),p=t.querySelectorAll(".testimonial-card"),u=t.querySelector(".testimonial-container");if(!t)return;c.removeAttribute("tabindex"),c.classList.remove("visually-hidden");let s,d=0;function i(t){var e=p.length,i=parseInt(s.dataset.startPosition,10);p.forEach(t=>{t.classList.remove("mobile-active")}),s.classList.add("mobile-active"),t||(2===e?1===i?(p[0].style.transform="translateX(0%)",p[1].style.transform="translateX(5%)"):2===i&&(p[0].style.transform="translateX(-94%)",p[1].style.transform="translateX(-89%)"):1===i?(p[0].style.transform="translateX(0%)",p[1].style.transform="translateX(5%)",p[2].style.transform="translateX(10%)"):2===i?(p[0].style.transform="translateX(-100%)",p[1].style.transform="translateX(-95%)",p[2].style.transform="translateX(-90%)"):3===i&&(p[0].style.transform="translateX(-210%)",p[1].style.transform="translateX(-195%)",p[2].style.transform="translateX(-189%)"))}p.forEach(t=>{"1"===t.dataset.startPosition&&(s=t)}),window.addEventListener("resize",()=>{1026<=window.innerWidth?p.forEach(t=>{t.style.transform="",t.classList.remove("mobile-active"),t.style.animationPlayState="running"}):(p.forEach((t,e)=>{t.dataset.startPosition=e+1,t.classList.toggle("mobile-active",0===e),t.style.animationPlayState="paused"}),s=p[0])}),i(!0);let n=0,r=!1;function e(t){if(window.innerWidth<1026){if("mousedown"===t.type)n=t.clientX;else{if("touchstart"!==t.type)return;n=t.touches[0].clientX}r=!0}}function a(e){if(r){let t=0;"mousemove"===e.type?t=e.clientX-n:"touchmove"===e.type&&(t=e.touches[0].clientX-n),50<t?((e=[...p].find(t=>parseInt(t.dataset.startPosition)===parseInt(s.dataset.startPosition)-1))&&(s=e,i(!1)),r=!1):t<-50&&((e=[...p].find(t=>parseInt(t.dataset.startPosition)===parseInt(s.dataset.startPosition)+1))&&(s=e,i(!1)),r=!1)}}function o(){r=!1}u.addEventListener("mousedown",e),u.addEventListener("touchstart",e),u.addEventListener("mousemove",a),u.addEventListener("touchmove",a),u.addEventListener("mouseup",o),u.addEventListener("touchend",o),h.addEventListener("click",function(){{let e="paused"===c.style.animationPlayState;p.forEach(t=>{t.style.animationPlayState=e?"running":"paused"}),c.style.animationPlayState=e?"running":"paused",l.style.animationPlayState=e?"running":"paused",h.classList.toggle("icon-pause"),h.classList.toggle("icon-play")}}),l.addEventListener("click",function(){{let n=3;u.classList.contains("two-cards")&&(n=2),p.forEach(t=>{var e,i,s,t=t.getAnimations();t.length&&(i=(e=(t=t[0]).effect.getTiming().duration)/n,s=t.currentTime%e,e<=(s=Math.ceil(s/i)*i)?(t.currentTime=e,t.play()):t.currentTime=s)});var i=t.querySelector(".card-counter .icon-ellipse.active");let e=i.nextElementSibling;if(e&&e.classList.contains("icon-ellipse")||(e=t.querySelector(".card-counter .icon-ellipse")),(s=l.getAnimations()).length){var s=s[0],r=s.effect.getTiming().duration,a=r/n,o=s.currentTime%r;let t=Math.ceil(o/a)*a;t>=r&&(t=0),s.currentTime=t,i.classList.remove("active"),e.classList.add("active"),d=Array.from(f).indexOf(e),c.style.animation="none",c.offsetHeight,c.style.animation=null,p.forEach(t=>{t.style.animationPlayState="running"}),l.style.animationPlayState="running",h.classList.remove("icon-play"),h.classList.add("icon-pause")}}});let f=t.querySelectorAll(".card-counter i");c.addEventListener("animationiteration",function(t){t.target===c&&(f[d].classList.remove("active"),d=(d+1)%f.length,f[d].classList.add("active"))})})}),"undefined"!=typeof document&&"undefined"!=typeof navigator&&((t,e)=>{"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):(t="undefined"!=typeof globalThis?globalThis:t||self).lottie=e()})(this,function(){var svgNS="http://www.w3.org/2000/svg",locationHref="",_useWebWorker=!1,initialDefaultFrame=-999999,setWebWorker=function(t){_useWebWorker=!!t},getWebWorker=function(){return _useWebWorker},setLocationHref=function(t){locationHref=t},getLocationHref=function(){return locationHref};function createTag(t){return document.createElement(t)}function extendPrototype(t,e){for(var i,s=t.length,n=0;n<s;n+=1)for(var r in i=t[n].prototype)Object.prototype.hasOwnProperty.call(i,r)&&(e.prototype[r]=i[r])}function getDescriptor(t,e){return Object.getOwnPropertyDescriptor(t,e)}function createProxyFunction(t){function e(){}return e.prototype=t,e}var audioControllerFactory=(()=>{function t(t){this.audios=[],this.audioFactory=t,this._volume=1,this._isMuted=!1}return t.prototype={addAudio:function(t){this.audios.push(t)},pause:function(){for(var t=this.audios.length,e=0;e<t;e+=1)this.audios[e].pause()},resume:function(){for(var t=this.audios.length,e=0;e<t;e+=1)this.audios[e].resume()},setRate:function(t){for(var e=this.audios.length,i=0;i<e;i+=1)this.audios[i].setRate(t)},createAudio:function(t){return this.audioFactory?this.audioFactory(t):window.Howl?new window.Howl({src:[t]}):{isPlaying:!1,play:function(){this.isPlaying=!0},seek:function(){this.isPlaying=!1},playing:function(){},rate:function(){},setVolume:function(){}}},setAudioFactory:function(t){this.audioFactory=t},setVolume:function(t){this._volume=t,this._updateVolume()},mute:function(){this._isMuted=!0,this._updateVolume()},unmute:function(){this._isMuted=!1,this._updateVolume()},getVolume:function(){return this._volume},_updateVolume:function(){for(var t=this.audios.length,e=0;e<t;e+=1)this.audios[e].volume(this._volume*(this._isMuted?0:1))}},function(){return new t}})(),createTypedArray=(()=>{function i(t,e){var i,s=0,n=[];switch(t){case"int16":case"uint8c":i=1;break;default:i=1.1}for(s=0;s<e;s+=1)n.push(i);return n}return"function"==typeof Uint8ClampedArray&&"function"==typeof Float32Array?function(t,e){return"float32"===t?new Float32Array(e):"int16"===t?new Int16Array(e):"uint8c"===t?new Uint8ClampedArray(e):i(t,e)}:i})();function createSizedArray(t){return Array.apply(null,{length:t})}function _typeof$6(t){return(_typeof$6="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var subframeEnabled=!0,expressionsPlugin=null,expressionsInterfaces=null,idPrefix$1="",isSafari=/^((?!chrome|android).)*safari/i.test(navigator.userAgent),_shouldRoundValues=!1,bmPow=Math.pow,bmSqrt=Math.sqrt,bmFloor=Math.floor,bmMax=Math.max,bmMin=Math.min,BMMath={};function ProjectInterface$1(){}(()=>{for(var t=["abs","acos","acosh","asin","asinh","atan","atanh","atan2","ceil","cbrt","expm1","clz32","cos","cosh","exp","floor","fround","hypot","imul","log","log1p","log2","log10","max","min","pow","random","round","sign","sin","sinh","sqrt","tan","tanh","trunc","E","LN10","LN2","LOG10E","LOG2E","PI","SQRT1_2","SQRT2"],e=t.length,i=0;i<e;i+=1)BMMath[t[i]]=Math[t[i]]})(),BMMath.random=Math.random,BMMath.abs=function(t){if("object"===_typeof$6(t)&&t.length){for(var e=createSizedArray(t.length),i=t.length,s=0;s<i;s+=1)e[s]=Math.abs(t[s]);return e}return Math.abs(t)};var defaultCurveSegments=150,degToRads=Math.PI/180,roundCorner=.5519;function roundValues(t){_shouldRoundValues=!!t}function bmRnd(t){_shouldRoundValues&&Math.round(t)}function styleDiv(t){t.style.position="absolute",t.style.top=0,t.style.left=0,t.style.display="block",t.style.transformOrigin="0 0",t.style.webkitTransformOrigin="0 0",t.style.backfaceVisibility="visible",t.style.webkitBackfaceVisibility="visible",t.style.transformStyle="preserve-3d",t.style.webkitTransformStyle="preserve-3d",t.style.mozTransformStyle="preserve-3d"}function BMEnterFrameEvent(t,e,i,s){this.type=t,this.currentTime=e,this.totalTime=i,this.direction=s<0?-1:1}function BMCompleteEvent(t,e){this.type=t,this.direction=e<0?-1:1}function BMCompleteLoopEvent(t,e,i,s){this.type=t,this.currentLoop=i,this.totalLoops=e,this.direction=s<0?-1:1}function BMSegmentStartEvent(t,e,i){this.type=t,this.firstFrame=e,this.totalFrames=i}function BMDestroyEvent(t,e){this.type=t,this.target=e}function BMRenderFrameErrorEvent(t,e){this.type="renderFrameError",this.nativeError=t,this.currentTime=e}function BMConfigErrorEvent(t){this.type="configError",this.nativeError=t}function BMAnimationConfigErrorEvent(t,e){this.type=t,this.nativeError=e}var createElementID=(_count=0,function(){return idPrefix$1+"__lottie_element_"+(_count+=1)}),_count;function HSVtoRGB(t,e,i){var s,n,r,a,o=i*(1-e),l=i*(1-(a=6*t-(t=Math.floor(6*t)))*e),h=i*(1-(1-a)*e);
vendor: 11,813 bytes, line 1
1switch(t%6){case 0:s=i,n=h,r=o;break;case 1:s=l,n=i,r=o;break;case 2:s=o,n=i,r=h;break;case 3:s=o,n=l,r=i;break;case 4:s=h,n=o,r=i;break;case 5:s=i,n=o,r=l}return[s,n,r]}function RGBtoHSV(t,e,i){var s,n=Math.max(t,e,i),r=Math.min(t,e,i),a=n-r,o=0===n?0:a/n,l=n/255;switch(n){case r:s=0;break;case t:s=e-i+a*(e<i?6:0),s/=6*a;break;case e:s=i-t+2*a,s/=6*a;break;case i:s=t-e+4*a,s/=6*a}return[s,o,l]}function addSaturationToRGB(t,e){t=RGBtoHSV(255*t[0],255*t[1],255*t[2]);return t[1]+=e,1<t[1]?t[1]=1:t[1]<=0&&(t[1]=0),HSVtoRGB(t[0],t[1],t[2])}function addBrightnessToRGB(t,e){t=RGBtoHSV(255*t[0],255*t[1],255*t[2]);return t[2]+=e,1<t[2]?t[2]=1:t[2]<0&&(t[2]=0),HSVtoRGB(t[0],t[1],t[2])}function addHueToRGB(t,e){t=RGBtoHSV(255*t[0],255*t[1],255*t[2]);return t[0]+=e/360,1<t[0]?--t[0]:t[0]<0&&(t[0]+=1),HSVtoRGB(t[0],t[1],t[2])}var rgbToHex=(()=>{for(var t,s=[],e=0;e<256;e+=1)t=e.toString(16),s[e]=1===t.length?"0"+t:t;return function(t,e,i){return"#"+s[t=t<0?0:t]+s[e=e<0?0:e]+s[i=i<0?0:i]}})(),setSubframeEnabled=function(t){subframeEnabled=!!t},getSubframeEnabled=function(){return subframeEnabled},setExpressionsPlugin=function(t){expressionsPlugin=t},getExpressionsPlugin=function(){return expressionsPlugin},setExpressionInterfaces=function(t){expressionsInterfaces=t},getExpressionInterfaces=function(){return expressionsInterfaces},setDefaultCurveSegments=function(t){defaultCurveSegments=t},getDefaultCurveSegments=function(){return defaultCurveSegments},setIdPrefix=function(t){idPrefix$1=t},getIdPrefix=function(){return idPrefix$1};function createNS(t){return document.createElementNS(svgNS,t)}function _typeof$5(t){return(_typeof$5="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var dataManager=(()=>{var i,s,n=1,r=[],a={onmessage:function(){},postMessage:function(t){i({data:t})}},S={postMessage:function(t){a.onmessage({data:t})}};function o(){var t,e;s||(t=function(e){var n,s,r,a,o,l,h,c,p,t;function u(t){var e=t.getResponseHeader("content-type");return e&&"json"===t.responseType&&-1!==e.indexOf("json")||t.response&&"object"===_typeof$5(t.response)?t.response:t.response&&"string"==typeof t.response?JSON.parse(t.response):t.responseText?JSON.parse(t.responseText):null}function d(t,e){for(var i,s,n,r=t.length,a=0;a<r;a+=1)if("ks"in(n=t[a])&&!n.completed){if(n.completed=!0,n.hasMask)for(var o=n.masksProperties,l=o.length,h=0;h<l;h+=1)if(o[h].pt.k.i)g(o[h].pt.k);else for(s=o[h].pt.k.length,i=0;i<s;i+=1)o[h].pt.k[i].s&&g(o[h].pt.k[i].s[0]),o[h].pt.k[i].e&&g(o[h].pt.k[i].e[0]);0===n.ty?(n.layers=f(n.refId,e),d(n.layers,e)):4===n.ty?m(n.shapes):5===n.ty&&0===(n=n).t.a.length&&n.t.p}}function f(t,e){t=((t,e)=>{for(var i=0,s=e.length;i<s;){if(e[i].id===t)return e[i];i+=1}return null})(t,e);return t?t.layers.__used?JSON.parse(JSON.stringify(t.layers)):(t.layers.__used=!0,t.layers):null}function m(t){for(var e,i,s=t.length-1;0<=s;--s)if("sh"===t[s].ty)if(t[s].ks.k.i)g(t[s].ks.k);else for(i=t[s].ks.k.length,e=0;e<i;e+=1)t[s].ks.k[e].s&&g(t[s].ks.k[e].s[0]),t[s].ks.k[e].e&&g(t[s].ks.k[e].e[0]);else"gr"===t[s].ty&&m(t[s].it)}function g(t){for(var e=t.i.length,i=0;i<e;i+=1)t.i[i][0]+=t.v[i][0],t.i[i][1]+=t.v[i][1],t.o[i][0]+=t.v[i][0],t.o[i][1]+=t.v[i][1]}function y(t,e){e=e?e.split("."):[100,100,100];return t[0]>e[0]||!(e[0]>t[0])&&(t[1]>e[1]||!(e[1]>t[1])&&(t[2]>e[2]||(e[2],t[2],0)))}function v(t){if(t.chars&&!y(n,t.v))for(var e=t.chars.length,i=0;i<e;i+=1){var s=t.chars[i];s.data&&s.data.shapes&&(m(s.data.shapes),s.data.ip=0,s.data.op=99999,s.data.st=0,s.data.sr=1,s.data.ks={p:{k:[0,0],a:0},s:{k:[100,100],a:0},a:{k:[0,0],a:0},r:{k:0,a:0},o:{k:100,a:0}},t.chars[i].t||(s.data.shapes.push({ty:"no"}),s.data.shapes[0].it.push({p:{k:[0,0],a:0},s:{k:[100,100],a:0},a:{k:[0,0],a:0},r:{k:0,a:0},o:{k:100,a:0},sk:{k:0,a:0},sa:{k:0,a:0},ty:"tr"})))}}function b(t){for(var e,i,s,n=t.length,r=0;r<n;r+=1){if((e=t[r]).hasMask)for(var a=e.masksProperties,o=a.length,l=0;l<o;l+=1)if(a[l].pt.k.i)a[l].pt.k.c=a[l].cl;else for(s=a[l].pt.k.length,i=0;i<s;i+=1)a[l].pt.k[i].s&&(a[l].pt.k[i].s[0].c=a[l].cl),a[l].pt.k[i].e&&(a[l].pt.k[i].e[0].c=a[l].cl);4===e.ty&&function t(e){for(var i,s,n=e.length-1;0<=n;--n)if("sh"===e[n].ty)if(e[n].ks.k.i)e[n].ks.k.c=e[n].closed;else for(s=e[n].ks.k.length,i=0;i<s;i+=1)e[n].ks.k[i].s&&(e[n].ks.k[i].s[0].c=e[n].closed),e[n].ks.k[i].e&&(e[n].ks.k[i].e[0].c=e[n].closed);else"gr"===e[n].ty&&t(e[n].it)}(e.shapes)}}function _(t){for(var e=t.length,i=0;i<e;i+=1)4===t[i].ty&&function t(e){for(var i,s,n=e.length,r=0;r<n;r+=1)if("gr"===e[r].ty)t(e[r].it);else if("fl"===e[r].ty||"st"===e[r].ty)if(e[r].c.k&&e[r].c.k[0].i)for(s=e[r].c.k.length,i=0;i<s;i+=1)e[r].c.k[i].s&&(e[r].c.k[i].s[0]/=255,e[r].c.k[i].s[1]/=255,e[r].c.k[i].s[2]/=255,e[r].c.k[i].s[3]/=255),e[r].c.k[i].e&&(e[r].c.k[i].e[0]/=255,e[r].c.k[i].e[1]/=255,e[r].c.k[i].e[2]/=255,e[r].c.k[i].e[3]/=255);else e[r].c.k[0]/=255,e[r].c.k[1]/=255,e[r].c.k[2]/=255,e[r].c.k[3]/=255}(t[i].shapes)}function x(t){for(var e,i=t.length,s=0;s<i;s+=1)5===t[s].ty&&(e=void 0,"number"==typeof(e=t[s].t.p).a&&(e.a={a:0,k:e.a}),"number"==typeof e.p&&(e.p={a:0,k:e.p}),"number"==typeof e.r)&&(e.r={a:0,k:e.r})}function C(t){for(var e,i,s=t.length,n=0;n<s;n+=1)5===t[n].ty&&(i=(e=t[n]).t.d,e.t.d={k:[{s:i,t:0}]})}S.dataManager||(S.dataManager=(o=[4,4,14],l=function(t){if(y(o,t.v)&&(C(t.layers),t.assets))for(var e=t.assets.length,i=0;i<e;i+=1)t.assets[i].layers&&C(t.assets[i].layers)},n=[4,7,99],a=[5,7,15],h=function(t){if(y(a,t.v)&&(x(t.layers),t.assets))for(var e=t.assets.length,i=0;i<e;i+=1)t.assets[i].layers&&x(t.assets[i].layers)},r=[4,1,9],c=function(t){if(y(r,t.v)&&(_(t.layers),t.assets))for(var e=t.assets.length,i=0;i<e;i+=1)t.assets[i].layers&&_(t.assets[i].layers)},s=[4,4,18],p=function(t){if(y(s,t.v)&&(b(t.layers),t.assets))for(var e=t.assets.length,i=0;i<e;i+=1)t.assets[i].layers&&b(t.assets[i].layers)},(t={completeData:function(t){if(!t.__complete){c(t),l(t),v(t),h(t),p(t),d(t.layers,t.assets);var e=t.chars,i=t.assets;if(e)for(var s=0,n=e.length,s=0;s<n;s+=1)1===e[s].t&&(e[s].data.layers=f(e[s].data.refId,i),d(e[s].data.layers,i));t.__complete=!0}}}).checkColors=c,t.checkChars=v,t.checkPathProperties=h,t.checkShapes=p,t.completeLayers=d,t)),S.assetLoader||(S.assetLoader={load:function(e,i,t,s){var n,r=new XMLHttpRequest;try{r.responseType="json"}catch(t){}r.onreadystatechange=function(){if(4===r.readyState)if(200===r.status)n=u(r),t(n);else try{n=u(r),t(n)}catch(t){s&&s(t)}};try{r.open(["G","E","T"].join(""),e,!0)}catch(t){r.open(["G","E","T"].join(""),i+"/"+e,!0)}r.send()}}),"loadAnimation"===e.data.type?S.assetLoader.load(e.data.path,e.data.fullPath,function(t){S.dataManager.completeData(t),S.postMessage({id:e.data.id,payload:t,status:"success"})},function(){S.postMessage({id:e.data.id,status:"error"})}):"complete"===e.data.type?(t=e.data.animation,S.dataManager.completeData(t),S.postMessage({id:e.data.id,payload:t,status:"success"})):"loadData"===e.data.type&&S.assetLoader.load(e.data.path,e.data.fullPath,function(t){S.postMessage({id:e.data.id,payload:t,status:"success"})},function(){S.postMessage({id:e.data.id,status:"error"})})},(s=window.Worker&&window.Blob&&getWebWorker()?(e=new Blob(["var _workerSelf = self; self.onmessage = ",t.toString()],{type:"text/javascript"}),e=URL.createObjectURL(e),new Worker(e)):(i=t,a)).onmessage=function(t){var t=t.data,e=t.id,i=r[e];r[e]=null,"success"===t.status?i.onComplete(t.payload):i.onError&&i.onError()})}function l(t,e){var i="processId_"+(n+=1);return r[i]={onComplete:t,onError:e},i}return{loadAnimation:function(t,e,i){o();e=l(e,i);s.postMessage({type:"loadAnimation",path:t,fullPath:window.location.origin+window.location.pathname,id:e})},loadData:function(t,e,i){o();e=l(e,i);s.postMessage({type:"loadData",path:t,fullPath:window.location.origin+window.location.pathname,id:e})},completeAnimation:function(t,e,i){o();e=l(e,i);s.postMessage({type:"complete",animation:t,id:e})}}})(),ImagePreloader=(()=>{(t=createTag("canvas")).width=1,t.height=1,(e=t.getContext("2d")).fillStyle="rgba(0,0,0,0)",e.fillRect(0,0,1,1);var t,e,n=t;function i(){this.loadedAssets+=1,this.loadedAssets===this.totalImages&&this.loadedFootagesCount===this.totalFootages&&this.imagesLoadedCb&&this.imagesLoadedCb(null)}function s(){this.loadedFootagesCount+=1,this.loadedAssets===this.totalImages&&this.loadedFootagesCount===this.totalFootages&&this.imagesLoadedCb&&this.imagesLoadedCb(null)}function r(t,e,i){var s="";return s=t.e?t.p:e?e+(e=-1!==(e=t.p).indexOf("images/")?e.split("/")[1]:e):(s=i,(s+=t.u||"")+t.p)}function a(){this._imageLoaded=i.bind(this),this._footageLoaded=s.bind(this),this.testImageLoaded=function(t){var e=0,i=setInterval(function(){(t.getBBox().width||500<e)&&(this._imageLoaded(),clearInterval(i)),e+=1}.bind(this),50)}.bind(this),this.createFootageData=function(t){var e={assetData:t},t=r(t,this.assetsPath,this.path);return dataManager.loadData(t,function(t){e.img=t,this._footageLoaded()}.bind(this),function(){e.img={},this._footageLoaded()}.bind(this)),e}.bind(this),this.assetsPath="",this.path="",this.totalImages=0,this.totalFootages=0,this.loadedAssets=0,this.loadedFootagesCount=0,this.imagesLoadedCb=null,this.images=[]}return a.prototype={loadAssets:function(t,e){this.imagesLoadedCb=e;for(var i=t.length,s=0;s<i;s+=1)t[s].layers||(t[s].t&&"seq"!==t[s].t?3===t[s].t&&(this.totalFootages+=1,this.images.push(this.createFootageData(t[s]))):(this.totalImages+=1,this.images.push(this._createImageData(t[s]))))},setAssetsPath:function(t){this.assetsPath=t||""},setPath:function(t){this.path=t||""},loadedImages:function(){return this.totalImages===this.loadedAssets},loadedFootages:function(){return this.totalFootages===this.loadedFootagesCount},destroy:function(){this.imagesLoadedCb=null,this.images.length=0},getAsset:function(t){for(var e=0,i=this.images.length;e<i;){if(this.images[e].assetData===t)return this.images[e].img;e+=1}return null},createImgData:function(t){var e=r(t,this.assetsPath,this.path),i=createTag("img"),s=(i.crossOrigin="anonymous",i.addEventListener("load",this._imageLoaded,!1),i.addEventListener("error",function(){s.img=n,this._imageLoaded()}.bind(this),!1),i.src=e,{img:i,assetData:t});return s},createImageData:function(t){var e=r(t,this.assetsPath,this.path),i=createNS("image"),s=(isSafari?this.testImageLoaded(i):i.addEventListener("load",this._imageLoaded,!1),i.addEventListener("error",function(){s.img=n,this._imageLoaded()}.bind(this),!1),i.setAttributeNS("http://www.w3.org/1999/xlink","href",e),this._elementHelper.append?this._elementHelper.append(i):this._elementHelper.appendChild(i),{img:i,assetData:t});return s},imageLoaded:i,footageLoaded:s,setCacheType:function(t,e){"svg"===t?(this._elementHelper=e,this._createImageData=this.createImageData.bind(this)):this._createImageData=this.createImgData.bind(this)}},a})();function BaseEvent(){}BaseEvent.prototype={triggerEvent:function(t,e){if(this._cbs[t])for(var i=this._cbs[t],s=0;s<i.length;s+=1)i[s](e)},addEventListener:function(t,e){return this._cbs[t]||(this._cbs[t]=[]),this._cbs[t].push(e),function(){this.removeEventListener(t,e)}.bind(this)},removeEventListener:function(t,e){if(e){if(this._cbs[t]){for(var i=0,s=this._cbs[t].length;i<s;)this._cbs[t][i]===e&&(this._cbs[t].splice(i,1),--i,--s),i+=1;this._cbs[t].length||(this._cbs[t]=null)}}else this._cbs[t]=null}};var markerParser=function(e){for(var t=[],i=0;i<e.length;i+=1){var s=e[i],s={time:s.tm,duration:s.dr};try{s.payload=JSON.parse(e[i].cm)}catch(t){try{s.payload=(t=>{for(var e,i=t.split("\r\n"),s={},n=0,r=0;r<i.length;r+=1)2===(e=i[r].split(":")).length&&(s[e[0]]=e[1].trim(),n+=1);if(0===n)throw new Error;return s})(e[i].cm)}catch(t){s.payload={name:e[i].cm}}}t.push(s
vendor: 5,309 bytes, line 1
1)}return t},ProjectInterface=(()=>{function e(t){this.compositions.push(t)}return function(){function t(t){for(var e=0,i=this.compositions.length;e<i;){if(this.compositions[e].data&&this.compositions[e].data.nm===t)return this.compositions[e].prepareFrame&&this.compositions[e].data.xt&&this.compositions[e].prepareFrame(this.currentFrame),this.compositions[e].compInterface;e+=1}return null}return t.compositions=[],t.currentFrame=0,t.registerComposition=e,t}})(),renderers={},registerRenderer=function(t,e){renderers[t]=e};function getRenderer(t){return renderers[t]}function getRegisteredRenderer(){if(renderers.canvas)return"canvas";for(var t in renderers)if(renderers[t])return t;return""}function _typeof$4(t){return(_typeof$4="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var AnimationItem=function(){this._cbs=[],this.name="",this.path="",this.isLoaded=!1,this.currentFrame=0,this.currentRawFrame=0,this.firstFrame=0,this.totalFrames=0,this.frameRate=0,this.frameMult=0,this.playSpeed=1,this.playDirection=1,this.playCount=0,this.animationData={},this.assets=[],this.isPaused=!0,this.autoplay=!1,this.loop=!0,this.renderer=null,this.animationID=createElementID(),this.assetsPath="",this.timeCompleted=0,this.segmentPos=0,this.isSubframeEnabled=getSubframeEnabled(),this.segments=[],this._idle=!0,this._completedLoop=!1,this.projectInterface=ProjectInterface(),this.imagePreloader=new ImagePreloader,this.audioController=audioControllerFactory(),this.markers=[],this.configAnimation=this.configAnimation.bind(this),this.onSetupError=this.onSetupError.bind(this),this.onSegmentComplete=this.onSegmentComplete.bind(this),this.drawnFrameEvent=new BMEnterFrameEvent("drawnFrame",0,0,0),this.expressionsPlugin=getExpressionsPlugin()},animationManager=(extendPrototype([BaseEvent],AnimationItem),AnimationItem.prototype.setParams=function(t){(t.wrapper||t.container)&&(this.wrapper=t.wrapper||t.container);var e="svg",i=(t.animType?e=t.animType:t.renderer&&(e=t.renderer),getRenderer(e));this.renderer=new i(this,t.rendererSettings),this.imagePreloader.setCacheType(e,this.renderer.globalData.defs),this.renderer.setProjectInterface(this.projectInterface),this.animType=e,""===t.loop||null==t.loop||!0===t.loop?this.loop=!0:!1===t.loop?this.loop=!1:this.loop=parseInt(t.loop,10),this.autoplay=!("autoplay"in t)||t.autoplay,this.name=t.name||"",this.autoloadSegments=!Object.prototype.hasOwnProperty.call(t,"autoloadSegments")||t.autoloadSegments,this.assetsPath=t.assetsPath,this.initialSegment=t.initialSegment,t.audioFactory&&this.audioController.setAudioFactory(t.audioFactory),t.animationData?this.setupAnimation(t.animationData):t.path&&(-1!==t.path.lastIndexOf("\\")?this.path=t.path.substr(0,t.path.lastIndexOf("\\")+1):this.path=t.path.substr(0,t.path.lastIndexOf("/")+1),this.fileName=t.path.substr(t.path.lastIndexOf("/")+1),this.fileName=this.fileName.substr(0,this.fileName.lastIndexOf(".json")),dataManager.loadAnimation(t.path,this.configAnimation,this.onSetupError))},AnimationItem.prototype.onSetupError=function(){this.trigger("data_failed")},AnimationItem.prototype.setupAnimation=function(t){dataManager.completeAnimation(t,this.configAnimation)},AnimationItem.prototype.setData=function(t,e){var e={wrapper:t,animationData:e=e&&"object"!==_typeof$4(e)?JSON.parse(e):e},t=t.attributes,i=(e.path=t.getNamedItem("data-animation-path")?t.getNamedItem("data-animation-path").value:t.getNamedItem("data-bm-path")?t.getNamedItem("data-bm-path").value:t.getNamedItem("bm-path")?t.getNamedItem("bm-path").value:"",e.animType=t.getNamedItem("data-anim-type")?t.getNamedItem("data-anim-type").value:t.getNamedItem("data-bm-type")?t.getNamedItem("data-bm-type").value:t.getNamedItem("bm-type")?t.getNamedItem("bm-type").value:t.getNamedItem("data-bm-renderer")?t.getNamedItem("data-bm-renderer").value:t.getNamedItem("bm-renderer")?t.getNamedItem("bm-renderer").value:getRegisteredRenderer()||"canvas",t.getNamedItem("data-anim-loop")?t.getNamedItem("data-anim-loop").value:t.getNamedItem("data-bm-loop")?t.getNamedItem("data-bm-loop").value:t.getNamedItem("bm-loop")?t.getNamedItem("bm-loop").value:""),i=("false"===i?e.loop=!1:"true"===i?e.loop=!0:""!==i&&(e.loop=parseInt(i,10)),t.getNamedItem("data-anim-autoplay")?t.getNamedItem("data-anim-autoplay").value:t.getNamedItem("data-bm-autoplay")?t.getNamedItem("data-bm-autoplay").value:!t.getNamedItem("bm-autoplay")||t.getNamedItem("bm-autoplay").value);e.autoplay="false"!==i,e.name=t.getNamedItem("data-name")?t.getNamedItem("data-name").value:t.getNamedItem("data-bm-name")?t.getNamedItem("data-bm-name").value:t.getNamedItem("bm-name")?t.getNamedItem("bm-name").value:"","false"===(t.getNamedItem("data-anim-prerender")?t.getNamedItem("data-anim-prerender").value:t.getNamedItem("data-bm-prerender")?t.getNamedItem("data-bm-prerender").value:t.getNamedItem("bm-prerender")?t.getNamedItem("bm-prerender").value:"")&&(e.prerender=!1),e.path?this.setParams(e):this.trigger("destroy")},AnimationItem.prototype.includeLayers=function(t){t.op>this.animationData.op&&(this.animationData.op=t.op,this.totalFrames=Math.floor(t.op-this.animationData.ip));for(var e,i=this.animationData.layers,
vendor: 6,946 bytes, line 1
1s=i.length,n=t.layers,r=n.length,a=0;a<r;a+=1)for(e=0;e<s;){if(i[e].id===n[a].id){i[e]=n[a];break}e+=1}if((t.chars||t.fonts)&&(this.renderer.globalData.fontManager.addChars(t.chars),this.renderer.globalData.fontManager.addFonts(t.fonts,this.renderer.globalData.defs)),t.assets)for(s=t.assets.length,e=0;e<s;e+=1)this.animationData.assets.push(t.assets[e]);this.animationData.__complete=!1,dataManager.completeAnimation(this.animationData,this.onSegmentComplete)},AnimationItem.prototype.onSegmentComplete=function(t){this.animationData=t;t=getExpressionsPlugin();t&&t.initExpressions(this),this.loadNextSegment()},AnimationItem.prototype.loadNextSegment=function(){var t=this.animationData.segments;t&&0!==t.length&&this.autoloadSegments?(t=t.shift(),this.timeCompleted=t.time*this.frameRate,t=this.path+this.fileName+"_"+this.segmentPos+".json",this.segmentPos+=1,dataManager.loadData(t,this.includeLayers.bind(this),function(){this.trigger("data_failed")}.bind(this))):(this.trigger("data_ready"),this.timeCompleted=this.totalFrames)},AnimationItem.prototype.loadSegments=function(){this.animationData.segments||(this.timeCompleted=this.totalFrames),this.loadNextSegment()},AnimationItem.prototype.imagesLoaded=function(){this.trigger("loaded_images"),this.checkLoaded()},AnimationItem.prototype.preloadImages=function(){this.imagePreloader.setAssetsPath(this.assetsPath),this.imagePreloader.setPath(this.path),this.imagePreloader.loadAssets(this.animationData.assets,this.imagesLoaded.bind(this))},AnimationItem.prototype.configAnimation=function(t){if(this.renderer)try{this.animationData=t,this.initialSegment?(this.totalFrames=Math.floor(this.initialSegment[1]-this.initialSegment[0]),this.firstFrame=Math.round(this.initialSegment[0])):(this.totalFrames=Math.floor(this.animationData.op-this.animationData.ip),this.firstFrame=Math.round(this.animationData.ip)),this.renderer.configAnimation(t),t.assets||(t.assets=[]),this.assets=this.animationData.assets,this.frameRate=this.animationData.fr,this.frameMult=this.animationData.fr/1e3,this.renderer.searchExtraCompositions(t.assets),this.markers=markerParser(t.markers||[]),this.trigger("config_ready"),this.preloadImages(),this.loadSegments(),this.updaFrameModifier(),this.waitForFontsLoaded(),this.isPaused&&this.audioController.pause()}catch(t){this.triggerConfigError(t)}},AnimationItem.prototype.waitForFontsLoaded=function(){this.renderer&&(this.renderer.globalData.fontManager.isLoaded?this.checkLoaded():setTimeout(this.waitForFontsLoaded.bind(this),20))},AnimationItem.prototype.checkLoaded=function(){var t;!this.isLoaded&&this.renderer.globalData.fontManager.isLoaded&&(this.imagePreloader.loadedImages()||"canvas"!==this.renderer.rendererType)&&this.imagePreloader.loadedFootages()&&(this.isLoaded=!0,(t=getExpressionsPlugin())&&t.initExpressions(this),this.renderer.initItems(),setTimeout(function(){this.trigger("DOMLoaded")}.bind(this),0),this.gotoFrame(),this.autoplay)&&this.play()},AnimationItem.prototype.resize=function(t,e){this.renderer.updateContainerSize("number"==typeof t?t:void 0,"number"==typeof e?e:void 0)},AnimationItem.prototype.setSubframe=function(t){this.isSubframeEnabled=!!t},AnimationItem.prototype.gotoFrame=function(){this.currentFrame=this.isSubframeEnabled?this.currentRawFrame:~~this.currentRawFrame,this.timeCompleted!==this.totalFrames&&this.currentFrame>this.timeCompleted&&(this.currentFrame=this.timeCompleted),this.trigger("enterFrame"),this.renderFrame(),this.trigger("drawnFrame")},AnimationItem.prototype.renderFrame=function(){if(!1!==this.isLoaded&&this.renderer)try{this.expressionsPlugin&&this.expressionsPlugin.resetFrame(),this.renderer.renderFrame(this.currentFrame+this.firstFrame)}catch(t){this.triggerRenderFrameError(t)}},AnimationItem.prototype.play=function(t){t&&this.name!==t||!0===this.isPaused&&(this.isPaused=!1,this.trigger("_play"),this.audioController.resume(),this._idle)&&(this._idle=!1,this.trigger("_active"))},AnimationItem.prototype.pause=function(t){t&&this.name!==t||!1===this.isPaused&&(this.isPaused=!0,this.trigger("_pause"),this._idle=!0,this.trigger("_idle"),this.audioController.pause())},AnimationItem.prototype.togglePause=function(t){t&&this.name!==t||(!0===this.isPaused?this.play():this.pause())},AnimationItem.prototype.stop=function(t){t&&this.name!==t||(this.pause(),this.playCount=0,this._completedLoop=!1,this.setCurrentRawFrameValue(0))},AnimationItem.prototype.getMarkerData=function(t){for(var e,i=0;i<this.markers.length;i+=1)if((e=this.markers[i]).payload&&e.payload.name===t)return e;return null},AnimationItem.prototype.goToAndStop=function(t,e,i){i&&this.name!==i||(i=Number(t),isNaN(i)?(i=this.getMarkerData(t))&&this.goToAndStop(i.time,!0):e?this.setCurrentRawFrameValue(t):this.setCurrentRawFrameValue(t*this.frameModifier),this.pause())},AnimationItem.prototype.goToAndPlay=function(t,e,i){var s;i&&this.name!==i||(s=Number(t),isNaN(s)?(t=this.getMarkerData(t))&&(t.duration?this.playSegments([t.time,t.time+t.duration],!0):this.goToAndStop(t.time,!0)):this.goToAndStop(s,e,i),this.play())},AnimationItem.prototype.advanceTime=function(t){var e;!0!==this.isPaused&&!1!==this.isLoaded&&(e=!1,(t=this.currentRawFrame+t*this.frameModifier)>=this.totalFrames-1&&0<this.frameModifier?this.loop&&this.playCount!==this.loop?t>=this.totalFrames?(this.playCount+=1,this.checkSegments(t%this.totalFrames)||(this.setCurrentRawFrameValue(t%this.totalFrames),this._completedLoop=!0,this.trigger("loopComplete"))):this.setCurrentRawFrameValue(t):this.checkSegments(t>this.totalFrames?t%this.totalFrames:0)||(e=!0,t=this.totalFrames-1):t<0?this.checkSegments(t%this.totalFrames)||(!this.loop||this.playCount--<=0&&!0!==this.loop?(e=!0,t=0):(this.setCurrentRawFrameValue(this.totalFrames+t%this.totalFrames),this._completedLoop?this.trigger("loopComplete"):this._completedLoop=!0)):this.setCurrentRawFrameValue(t),e)&&(this.setCurrentRawFrameValue(t),this.pause(),this.trigger("complete"))},AnimationItem.prototype.adjustSegment=function(t,e){this.playCount=0,t[1]<t[0]?(0<this.frameModifier&&(this.playSpeed<0?this.setSpeed(-this.playSpeed):this.setDirection(-1)),this.totalFrames=t[0]-t[1],this.timeCompleted=this.totalFrames,this.firstFrame=t[1],this.setCurrentRawFrameValue(this.totalFrames-.001-e)):t[1]>t[0]&&(this.frameModifier<0&&(this.playSpeed<0?this.setSpeed(-this.playSpeed):this.setDirection(1)),this.totalFrames=t[1]-t[0],this.timeCompleted=this.totalFrames,this.firstFrame=t[0],this.setCurrentRawFrameValue(.001+e)),this.trigger("segmentStart")},AnimationItem.prototype.setSegment=function(t,e){var i=-1;this.isPaused&&(this.currentRawFrame+this.firstFrame<t?i=t:this.currentRawFrame+this.firstFrame>e&&(i=e-t)),this.firstFrame=t,this.totalFrames=e-t,this.timeCompleted=this.totalFrames,-1!==i&&this.goToAndStop(i,!0)},AnimationItem.prototype.playSegments=function(t,e){if(e&&(this.segments.length=0),"object"===_typeof$4(t[0]))for(var i=t.length,s=0;s<i;s+=1)this.segments.push(t[s
vendor: 4,264 bytes, line 1
1]);else this.segments.push(t);this.segments.length&&e&&this.adjustSegment(this.segments.shift(),0),this.isPaused&&this.play()},AnimationItem.prototype.resetSegments=function(t){this.segments.length=0,this.segments.push([this.animationData.ip,this.animationData.op]),t&&this.checkSegments(0)},AnimationItem.prototype.checkSegments=function(t){return!!this.segments.length&&(this.adjustSegment(this.segments.shift(),t),!0)},AnimationItem.prototype.destroy=function(t){t&&this.name!==t||!this.renderer||(this.renderer.destroy(),this.imagePreloader.destroy(),this.trigger("destroy"),this._cbs=null,this.onEnterFrame=null,this.onLoopComplete=null,this.onComplete=null,this.onSegmentStart=null,this.onDestroy=null,this.renderer=null,this.expressionsPlugin=null,this.imagePreloader=null,this.projectInterface=null)},AnimationItem.prototype.setCurrentRawFrameValue=function(t){this.currentRawFrame=t,this.gotoFrame()},AnimationItem.prototype.setSpeed=function(t){this.playSpeed=t,this.updaFrameModifier()},AnimationItem.prototype.setDirection=function(t){this.playDirection=t<0?-1:1,this.updaFrameModifier()},AnimationItem.prototype.setLoop=function(t){this.loop=t},AnimationItem.prototype.setVolume=function(t,e){e&&this.name!==e||this.audioController.setVolume(t)},AnimationItem.prototype.getVolume=function(){return this.audioController.getVolume()},AnimationItem.prototype.mute=function(t){t&&this.name!==t||this.audioController.mute()},AnimationItem.prototype.unmute=function(t){t&&this.name!==t||this.audioController.unmute()},AnimationItem.prototype.updaFrameModifier=function(){this.frameModifier=this.frameMult*this.playSpeed*this.playDirection,this.audioController.setRate(this.playSpeed*this.playDirection)},AnimationItem.prototype.getPath=function(){return this.path},AnimationItem.prototype.getAssetsPath=function(t){var e,i="";return i=t.e?t.p:this.assetsPath?(-1!==(e=t.p).indexOf("images/")&&(e=e.split("/")[1]),this.assetsPath+e):(i=this.path,(i+=t.u||"")+t.p)},AnimationItem.prototype.getAssetData=function(t){for(var e=0,i=this.assets.length;e<i;){if(t===this.assets[e].id)return this.assets[e];e+=1}return null},AnimationItem.prototype.hide=function(){this.renderer.hide()},AnimationItem.prototype.show=function(){this.renderer.show()},AnimationItem.prototype.getDuration=function(t){return t?this.totalFrames:this.totalFrames/this.frameRate},AnimationItem.prototype.updateDocumentData=function(t,e,i){try{this.renderer.getElementByPath(t).updateDocumentData(e,i)}catch(t){}},AnimationItem.prototype.trigger=function(t){if(this._cbs&&this._cbs[t])switch(t){case"enterFrame":this.triggerEvent(t,new BMEnterFrameEvent(t,this.currentFrame,this.totalFrames,this.frameModifier));break;case"drawnFrame":this.drawnFrameEvent.currentTime=this.currentFrame,this.drawnFrameEvent.totalTime=this.totalFrames,this.drawnFrameEvent.direction=this.frameModifier,this.triggerEvent(t,this.drawnFrameEvent);break;case"loopComplete":this.triggerEvent(t,new BMCompleteLoopEvent(t,this.loop,this.playCount,this.frameMult));break;case"complete":this.triggerEvent(t,new BMCompleteEvent(t,this.frameMult));break;case"segmentStart":this.triggerEvent(t,new BMSegmentStartEvent(t,this.firstFrame,this.totalFrames));break;case"destroy":this.triggerEvent(t,new BMDestroyEvent(t,this));break;default:this.triggerEvent(t)}"enterFrame"===t&&this.onEnterFrame&&this.onEnterFrame.call(this,new BMEnterFrameEvent(t,this.currentFrame,this.totalFrames,this.frameMult)),"loopComplete"===t&&this.onLoopComplete&&this.onLoopComplete.call(this,new BMCompleteLoopEvent(t,this.loop,this.playCount,this.frameMult)),"complete"===t&&this.onComplete&&this.onComplete.call(this,new BMCompleteEvent(t,this.frameMult)),"segmentStart"===t&&this.onSegmentStart&&this.onSegmentStart.call(this,new BMSegmentStartEvent(t,this.firstFrame,this.totalFrames)),"destroy"===t&&this.onDestroy&&this.onDestroy.call(this,new BMDestroyEvent(t,this))},AnimationItem.prototype.triggerRenderFrameError=function(t){t=new BMRenderFrameErrorEvent(t,this.currentFrame);this.triggerEvent("error",t),this.onError&&this.onError.call(this,t)},AnimationItem.prototype.triggerConfigError=function(t){t=new BMConfigErrorEvent(t,this.currentFrame);this.triggerEvent("error",t),this.onError&&this.onError.call(this,t)},(()=>{var t={},
vendor: 15,786 bytes, line 1
1n=[],s=0,r=0,a=0,o=!0,l=!1;function i(t){for(var e=0,i=t.target;e<r;)n[e].animation===i&&(n.splice(e,1),--e,--r,i.isPaused||p()),e+=1}function h(t,e){if(!t)return null;for(var i=0;i<r;){if(n[i].elem===t&&null!==n[i].elem)return n[i].animation;i+=1}var s=new AnimationItem;return u(s,t),s.setData(t,e),s}function c(){a+=1,f()}function p(){--a}function u(t,e){t.addEventListener("destroy",i),t.addEventListener("_active",c),t.addEventListener("_idle",p),n.push({elem:e,animation:t}),r+=1}function d(t){for(var e=t-s,i=0;i<r;i+=1)n[i].animation.advanceTime(e);s=t,a&&!l?window.requestAnimationFrame(d):o=!0}function e(t){s=t,window.requestAnimationFrame(d)}function f(){!l&&a&&o&&(window.requestAnimationFrame(e),o=!1)}return t.registerAnimation=h,t.loadAnimation=function(t){var e=new AnimationItem;return u(e,null),e.setParams(t),e},t.setSpeed=function(t,e){for(var i=0;i<r;i+=1)n[i].animation.setSpeed(t,e)},t.setDirection=function(t,e){for(var i=0;i<r;i+=1)n[i].animation.setDirection(t,e)},t.play=function(t){for(var e=0;e<r;e+=1)n[e].animation.play(t)},t.pause=function(t){for(var e=0;e<r;e+=1)n[e].animation.pause(t)},t.stop=function(t){for(var e=0;e<r;e+=1)n[e].animation.stop(t)},t.togglePause=function(t){for(var e=0;e<r;e+=1)n[e].animation.togglePause(t)},t.searchAnimations=function(t,e,i){for(var s,n=[].concat([].slice.call(document.getElementsByClassName("lottie")),[].slice.call(document.getElementsByClassName("bodymovin"))),r=n.length,a=0;a<r;a+=1)i&&n[a].setAttribute("data-bm-type",i),h(n[a],t);e&&0===r&&(i=i||"svg",(e=document.getElementsByTagName("body")[0]).innerText="",(s=createTag("div")).style.width="100%",s.style.height="100%",s.setAttribute("data-bm-type",i),e.appendChild(s),h(s,t))},t.resize=function(){for(var t=0;t<r;t+=1)n[t].animation.resize()},t.goToAndStop=function(t,e,i){for(var s=0;s<r;s+=1)n[s].animation.goToAndStop(t,e,i)},t.destroy=function(t){for(var e=r-1;0<=e;--e)n[e].animation.destroy(t)},t.freeze=function(){l=!0},t.unfreeze=function(){l=!1,f()},t.setVolume=function(t,e){for(var i=0;i<r;i+=1)n[i].animation.setVolume(t,e)},t.mute=function(t){for(var e=0;e<r;e+=1)n[e].animation.mute(t)},t.unmute=function(t){for(var e=0;e<r;e+=1)n[e].animation.unmute(t)},t.getRegisteredAnimations=function(){for(var t=n.length,e=[],i=0;i<t;i+=1)e.push(n[i].animation);return e},t})()),BezierFactory=(()=>{var t={getBezierEasing:function(t,e,i,s,n){n=n||("bez_"+t+"_"+e+"_"+i+"_"+s).replace(/\./g,"p");return r[n]||(t=new a([t,e,i,s]),r[n]=t)}},r={},S=11,w=1/(S-1),e="function"==typeof Float32Array;function s(t,e){return 1-3*e+3*t}function k(t,e,i){return((s(e,i)*t+(3*i-6*e))*t+3*e)*t}function E(t,e,i){return 3*s(e,i)*t*t+2*(3*i-6*e)*t+3*e}function a(t){this._p=t,this._mSampleValues=new(e?Float32Array:Array)(S),this._precomputed=!1,this.get=this.get.bind(this)}return a.prototype={get:function(t){var e=this._p[0],i=this._p[1],s=this._p[2],n=this._p[3];return this._precomputed||this._precompute(),e===i&&s===n?t:0===t?0:1===t?1:k(this._getTForX(t),i,n)},_precompute:function(){var t=this._p[0],e=this._p[1],i=this._p[2],s=this._p[3];this._precomputed=!0,t===e&&i===s||this._calcSampleValues()},_calcSampleValues:function(){for(var t=this._p[0],e=this._p[2],i=0;i<S;++i)this._mSampleValues[i]=k(i*w,t,e)},_getTForX:function(t){for(var e=this._p[0],i=this._p[2],s=this._mSampleValues,n=0,r=1,a=S-1;r!==a&&s[r]<=t;++r)n+=w;var o=n+(t-s[--r])/(s[r+1]-s[r])*w,l=E(o,e,i);if(.001<=l){for(var h=t,c=o,p=e,u=i,d=0;d<4;++d){var f=E(c,p,u);if(0===f)return c;c-=(k(c,p,u)-h)/f}return c}if(0===l)return o;for(var m,g,y=t,v=n,b=n+w,_=e,x=i,C=0;0<(m=k(g=v+(b-v)/2,_,x)-y)?b=g:v=g,1e-7<Math.abs(m)&&++C<10;);return g}},t})(),pooling={double:function(t){return t.concat(createSizedArray(t.length))}},poolFactory=function(t,e,i){var s=0,n=t,r=createSizedArray(n);return{newElement:function(){return s?r[--s]:e()},release:function(t){s===n&&(r=pooling.double(r),n*=2),i&&i(t),r[s]=t,s+=1}}},bezierLengthPool=poolFactory(8,function(){return{addedLength:0,percents:createTypedArray("float32",getDefaultCurveSegments()),lengths:createTypedArray("float32",getDefaultCurveSegments())}}),segmentsLengthPool=poolFactory(8,function(){return{lengths:[],totalLength:0}},function(t){for(var e=t.lengths.length,i=0;i<e;i+=1)bezierLengthPool.release(t.lengths[i]);t.lengths.length=0});function bezFunction(){var E=Math;function g(t,e,i,s,n,r){n=t*s+e*n+i*r-n*s-r*t-i*e;return-.001<n&&n<.001}function c(t,e,i,s){for(var n,r,a,o,l=getDefaultCurveSegments(),h=0,c=[],p=[],u=bezierLengthPool.newElement(),d=i.length,f=0;f<l;f+=1){for(a=f/(l-1),n=o=0;n<d;n+=1)r=bmPow(1-a,3)*t[n]+3*bmPow(1-a,2)*a*i[n]+3*(1-a)*bmPow(a,2)*s[n]+bmPow(a,3)*e[n],c[n]=r,null!==p[n]&&(o+=bmPow(c[n]-p[n],2)),p[n]=c[n];o&&(h+=o=bmSqrt(o)),u.percents[f]=a,u.lengths[f]=h}return u.addedLength=h,u}function y(t){this.segmentLength=0,this.points=new Array(t)}function v(t,e){this.partialLength=t,this.point=e}var b;b={};function P(t,e){var i=e.percents,s=e.lengths,n=i.length,r=bmFloor((n-1)*t),a=t*e.addedLength,o=0;if(r===n-1||0===r||a===s[r])return i[r];for(var l=s[r]>a?-1:1,h=!0;h;)if(s[r]<=a&&s[r+1]>a?(o=(a-s[r])/(s[r+1]-s[r]),h=!1):r+=l,r<0||n-1<=r){if(r===n-1)return i[r];h=!1}return i[r]+(i[r+1]-i[r])*o}var D=createTypedArray("float32",8);return{getSegmentsLength:function(t){for(var e=segmentsLengthPool.newElement(),i=t.c,s=t.v,n=t.o,r=t.i,a=t._length,o=e.lengths,l=0,h=0;h<a-1;h+=1)o[h]=c(s[h],s[h+1],n[h],r[h+1]),l+=o[h].addedLength;return i&&a&&(o[h]=c(s[h],s[0],n[h],r[0]),l+=o[h].addedLength),e.totalLength=l,e},getNewSegment:function(t,e,i,s,n,r,a){n<0?n=0:1<n&&(n=1);for(var n=P(n,a),r=P(r=1<r?1:r,a),o=t.length,a=1-n,l=1-r,h=a*a*a,c=n*a*a*3,p=n*n*a*3,u=n*n*n,d=a*a*l,f=n*a*l+a*n*l+a*a*r,m=n*n*l+a*n*r+n*a*r,g=n*n*r,y=a*l*l,v=n*l*l+a*r*l+a*l*r,b=n*r*l+a*r*r+n*l*r,_=n*r*r,x=l*l*l,C=r*l*l+l*r*l+l*l*r,S=r*r*l+l*r*r+r*l*r,w=r*r*r,k=0;k<o;k+=1)D[4*k]=E.round(1e3*(h*t[k]+c*i[k]+p*s[k]+u*e[k]))/1e3,D[4*k+1]=E.round(1e3*(d*t[k]+f*i[k]+m*s[k]+g*e[k]))/1e3,D[4*k+2]=E.round(1e3*(y*t[k]+v*i[k]+b*s[k]+_*e[k]))/1e3,D[4*k+3]=E.round(1e3*(x*t[k]+C*i[k]+S*s[k]+w*e[k]))/1e3;return D},getPointInSegment:function(t,e,i,s,n,r){n=P(n,r),r=1-n;return[E.round(1e3*(r*r*r*t[0]+(n*r*r+r*n*r+r*r*n)*i[0]+(n*n*r+r*n*n+n*r*n)*s[0]+n*n*n*e[0]))/1e3,E.round(1e3*(r*r*r*t[1]+(n*r*r+r*n*r+r*r*n)*i[1]+(n*n*r+r*n*n+n*r*n)*s[1]+n*n*n*e[1]))/1e3]},buildBezierData:function(t,e,i,s){var n=(t[0]+"_"+t[1]+"_"+e[0]+"_"+e[1]+"_"+i[0]+"_"+i[1]+"_"+s[0]+"_"+s[1]).replace(/\./g,"p");if(!b[n]){for(var r,a,o,l,h,c=getDefaultCurveSegments(),p=0,u=null,d=new y(c=2===t.length&&(t[0]!==e[0]||t[1]!==e[1])&&g(t[0],t[1],e[0],e[1],t[0]+i[0],t[1]+i[1])&&g(t[0],t[1],e[0],e[1],e[0]+s[0],e[1]+s[1])?2:c),f=i.length,m=0;m<c;m+=1){for(h=createSizedArray(f),o=m/(c-1),r=l=0;r<f;r+=1)a=bmPow(1-o,3)*t[r]+3*bmPow(1-o,2)*o*(t[r]+i[r])+3*(1-o)*bmPow(o,2)*(e[r]+s[r])+bmPow(o,3)*e[r],h[r]=a,null!==u&&(l+=bmPow(h[r]-u[r],2));p+=l=bmSqrt(l),d.points[m]=new v(l,h),u=h}d.segmentLength=p,b[n]=d}return b[n]},pointOnLine2D:g,pointOnLine3D:function(t,e,i,s,n,r,a,o,l){var h;return 0===i&&0===r&&0===l?g(t,e,s,n,a,o):(h=E.sqrt(E.pow(s-t,2)+E.pow(n-e,2)+E.pow(r-i,2)),t=E.sqrt(E.pow(a-t,2)+E.pow(o-e,2)+E.pow(l-i,2)),e=E.sqrt(E.pow(a-s,2)+E.pow(o-n,2)+E.pow(l-r,2)),-1e-4<(i=t<h?e<h?h-t-e:e-t-h:t<e?e-t-h:t-h-e)&&i<1e-4)}}}var bez=bezFunction(),initFrame=initialDefaultFrame,mathAbs=Math.abs;function interpolateValue(t,e){var i,s=this.offsetTime;"multidimensional"===this.propType&&(i=createTypedArray("float32",this.pv.length));for(var n,r,a,o=e.lastIndex,l=o,h=this.keyframes.length-1,c=!0;c;){if(n=this.keyframes[l],r=this.keyframes[l+1],l===h-1&&t>=r.t-s){n.h&&(n=r),o=0;break}if(r.t-s>t){o=l;break}l<h-1?l+=1:(o=0,c=!1)}var p=this.keyframesMetadata[l]||{},u=r.t-s,d=n.t-s;if(n.to){p.bezierData||(p.bezierData=bez.buildBezierData(n.s,r.s||n.e,n.to,n.ti));var f=p.bezierData;if(u<=t||t<d)for(var m=u<=t?f.points.length-1:0,g=f.points[m].point.length,y=0;y<g;y+=1)i[y]=f.points[m].point[y];else{p.__fnct?a=p.__fnct:(a=BezierFactory.getBezierEasing(n.o.x,n.o.y,n.i.x,n.i.y,n.n).get,p.__fnct=a);for(var v,b=a((t-d)/(u-d)),_=f.segmentLength*b,x=e.lastFrame<t&&e._lastKeyframeIndex===l?e._lastAddedLength:0,C=e.lastFrame<t&&e._lastKeyframeIndex===l?e._lastPoint:0,c=!0,S=f.points.length;c;){if(x+=f.points[C].partialLength,0==_||0===b||C===f.points.length-1){for(g=f.points[C].point.length,y=0;y<g;y+=1)i[y]=f.points[C].point[y];break}if(x<=_&&_<x+f.points[C+1].partialLength){for(v=(_-x)/f.points[C+1].partialLength,g=f.points[C].point.length,y=0;y<g;y+=1)i[y]=f.points[C].point[y]+(f.points[C+1].point[y]-f.points[C].point[y])*v;break}C<S-1?C+=1:c=!1}e._lastPoint=C,e._lastAddedLength=x-f.points[C].partialLength,e._lastKeyframeIndex=l}}else{var w,k,E,P,D,h=n.s.length,T=r.s||n.e;if(this.sh&&1!==n.h)u<=t?(i[0]=T[0],i[1]=T[1],i[2]=T[2]):t<=d?(i[0]=n.s[0],i[1]=n.s[1],i[2]=n.s[2]):quaternionToEuler(i,slerp(createQuaternion(n.s),createQuaternion(T),(t-d)/(u-d)));else for(l=0;l<h;l+=1)1!==n.h&&(b=u<=t?1:t<d?0:(n.o.x.constructor===Array?(p.__fnct||(p.__fnct=[]),p.__fnct[l]?a=p.__fnct[l]:(w=void 0===n.o.x[l]?n.o.x[0]:n.o.x[l],k=void 0===n.o.y[l]?n.o.y[0]:n.o.y[l],E=void 0===n.i.x[l]?n.i.x[0]:n.i.x[l],P=void 0===n.i.y[l]?n.i.y[0]:n.i.y[l],a=BezierFactory.getBezierEasing(w,k,E,P).get,p.__fnct[l]=a)):p.__fnct?a=p.__fnct:(w=n.o.x,k=n.o.y,E=n.i.x,P=n.i.y,a=BezierFactory.getBezierEasing(w,k,E,P).get,n.keyframeMetadata=a),a((t-d)/(u-d)))),T=r.s||n.e,D=1===n.h?n.s[l]:n.s[l]+(T[l]-n.s[l])*b,"multidimensional"===this.propType?i[l]=D:i=D}return e.lastIndex=o,i}function slerp(t,e,i){var s,n,r,a=[],o=t[0],l=t[1],h=t[2],t=t[3],c=e[0],p=e[1],u=e[2],e=e[3];return(r=o*c+l*p+h*u+t*e)<0&&(r=-r,c=-c,p=-p,u=-u,e=-e),r=1e-6<1-r?(r=Math.acos(r),s=Math.sin(r),n=Math.sin((1-i)*r)/s,Math.sin(i*r)/s):(n=1-i,i),a[0]=n*o+r*c,a[1]=n*l+r*p,a[2]=n*h+r*u,a[3]=n*t+r*e,a}function quaternionToEuler(t,e){var i=e[0],s=e[1],n=e[2],e=e[3],r=Math.atan2(2*s*e-2*i*n,1-2*s*s-2*n*n),a=Math.asin(2*i*s+2*n*e),e=Math.atan2(2*i*e-2*s*n,1-2*i*i-2*n*n);t[0]=r/degToRads,t[1]=a/degToRads,t[2]=e/degToRads}function createQuaternion(t){var e=t[0]*degToRads,i=t[1]*degToRads,t=t[2]*degToRads,s=Math.cos(e/2),n=Math.cos(i/2),r=Math.cos(t/2),e=Math.sin(e/2),i=Math.sin(i/2),t=Math.sin(t/2);return[e*i*r+s*n*t,e*n*r+s*i*t,s*i*r-e*n*t,s*n*r-e*i*t]}function getValueAtCurrentTime(){var t=this.comp.renderedFrame-this.offsetTime,e=this.keyframes[0].t-this.offsetTime,i=this.keyframes[this.keyframes.length-1].t-this.offsetTime;return t===this._caching.lastFrame||this._caching.lastFrame!==initFrame&&(this._caching.lastFrame>=i&&i<=t||this._caching.lastFrame<e&&t<e)||(this._caching.lastFrame>=t&&(this._caching._lastKeyframeIndex=-1,this._caching.lastIndex=0),i=this.interpolateValue(t,this._caching),this.pv=i),this._caching.lastFrame=t,this.pv}function setVValue(t){var e;if("unidimensional"===this.propType)e=t*this.mult,1e-5<mathAbs(this.v-e)&&(this.v=e,this._mdf=!0);else for(var i=0,s=this.v.length;i<s;)e=t[i]*this.mult,1e-5<mathAbs(this.v[i]-e)&&(this.v[i]=e,this._mdf=!0),i+=1}function processEffectsSequence(){if(this.elem.globalData.frameId!==this.frameId&&this.effectsSequence.length)if(this.lock)this.setVValue(this.pv);else{this.lock=!0,this._mdf=this._isFirstFrame;for(var t=this.effectsSequence.length,e=this.kf?this.pv:this.data.k,i=0;i<t;i+=1)e=this.effectsSequence[i](e);this.setVValue(e),this._isFirstFrame=!1,this.lock=!1,this.frameId=this.elem.globalData.frameId}}function addEffect(t){this.effectsSequence.push(t),this.container.addDynamicProperty(this)}function ValueProperty(t,e,i,s){this.propType="unidimensional",this.mult=i||1,this.data=e,this.v=i?e.k*i:e.k,this.pv=e.k,this._mdf=!1,this.elem=t,this.container=s,this.comp=t.comp,this.k=!1,this.kf=!1,this.vel=0,this.effectsSequence=[],this._isFirstFrame=!0,this.getValue=processEffectsSequence,this.setVValue=setVValue,this.addEffect=addEffect}function MultiDimensionalProperty(t,e,i,s){this.propType="multidimensional",this.mult=i||1,this.data=e,this._mdf=!1,this.elem=t,this.container=s,this.comp=t.comp,this.k=!1,this.kf=!1,this.frameId=-1;var n,r=e.k.length;for(this.v=createTypedArray("float32",r),this.pv=createTypedArray("float32",r),this.vel=createTypedArray("float32",r),n=0;n<r;n+=1)this.v[n]=e.k[n]*this.mult,this.pv[n]=e.k[n];this._isFirstFrame=!0,this.effectsSequence=[],this.getValue=processEffectsSequence,this.setVValue=setVValue,this.addEffect=addEffect}function KeyframedValueProperty(t,e,i,s){this.propType="unidimensional",this.keyframes=e.k,this.keyframesMetadata=[],this.offsetTime=t.data.st,this.frameId=-1,this._caching={lastFrame:initFrame,lastIndex:0,value:0,_lastKeyframeIndex:-1},this.k=!0,this.kf=!0,this.data=e,this.mult=i||1,this.elem=t,this.container=s,this.comp=t.comp,this.v=initFrame,this.pv=initFrame,this._isFirstFrame=!0,this.getValue=processEffectsSequence,this.setVValue=setVValue,this.interpolateValue=interpolateValue,this.effectsSequence=[getValueAtCurrentTime.bind(this)],this.addEffect=addEffect}function KeyframedMultidimensionalProperty(t,e,i,s){this.propType="multidimensional";for(var n,r,a,o,l=e.k.length,h=0;h<l-1;h+=1)e.k[h].to&&e.k[h].s&&e.k[h+1]&&e.k[h+1].s&&(n=e.k[h].s,r=e.k[h+1].s,a=e.k[h].to,o=e.k[h].ti,(2===n.length&&(n[0]!==r[0]||n[1]!==r[1])&&bez.pointOnLine2D(n[0],n[1],r[0],r[1],n[0]+a[0],n[1]+a[1])&&bez.pointOnLine2D(n[0],n[1],r[0],r[1],r[0]+o[0],r[1]+o[1])||3===n.length&&(n[0]!==r[0]||n[1]!==r[1]||n[2]!==r[2])&&bez.pointOnLine3D(n[0],n[1],n[2],r[0],r[1],r[2],n[0]+a[0],n[1]+a[1],n[2]+a[2])&&bez.pointOnLine3D(n[0],n[1],n[2],r[0],r[1],r[2],r[0]+o[0],r[1]+o[1],r[2]+o[2]))&&(e.k[h].to=null,e.k[h].ti=null),n[0]===r[0])&&n[1]===r[1]&&0===a[0]&&0===a[1]&&0===o[0]&&0===o[1]&&(2===n.length||n[2]===r[2]&&0===a[2]&&0===o[2])&&(e.k[h].to=null,e.k[h].ti=null);this.effectsSequence=[getValueAtCurrentTime.bind(this)],this.data=e,this.keyframes=e.k,this.keyframesMetadata=[],this.offsetTime=t.data.st,this.k=!0,this.kf=!0,this._isFirstFrame=!0,this.mult=i||1,this.elem=t,this.container=s,this.comp=t.comp,this.getValue=processEffectsSequence,this.setVValue=setVValue,this.interpolateValue=interpolateValue,this.frameId=-1;var c=e.k[0].s.length;for(this.v=createTypedArray("float32",c),this.pv=createTypedArray("float32",c),h=0;h<c;h+=1)this.v[h]=initFrame,this.pv[h]=initFrame;this._caching={lastFrame:initFrame,lastIndex:0,value:createTypedArray("float32",c)},this.addEffect=addEffect}var PropertyFactory={getProp:function(t,e,i,s,n){var r;if((e=e.sid?t.globalData.slotManager.getProp(e):e).k.length)if("number"==typeof e.k[0])r=new MultiDimensionalProperty(t,e,s,n);else switch(i){case 0:r=new KeyframedValueProperty(t,e,s,n);break;case 1:r=new KeyframedMultidimensionalProperty(t,e,s,n)}else r=new ValueProperty(t,e,s,n);return r.effectsSequence.length&&n.addDynamicProperty(r),r}};function DynamicPropertyContainer(){}DynamicPropertyContainer.prototype={addDynamicProperty:function(t){-1===this.dynamicProperties.indexOf(t)&&(this.dynamicProperties.push(t),this.container.addDynamicProperty(this),this._isAnimated=!0)},iterateDynamicProperties:function(){this._mdf=!1;for(var t=this.dynamicProperties.length,e=0;e<t;e+=1)this.dynamicProperties[e].getValue(),this.dynamicProperties[e]._mdf&&(this._mdf=!0)},initDynamicPropertyContainer:function(t){this.container=t,this.dynamicProperties=[],this._mdf=!1,this._isAnimated=!1}};var pointPool=poolFactory(8,function(){return createTypedArray("float32",2)});function ShapePath(){this.c=!1,this._length=0,this._maxLength=8,this.v=createSizedArray(this._maxLength),this.o=createSizedArray(this._maxLength),this.i=createSizedArray(this._maxLength)}ShapePath.prototype.setPathData=function(t,e){this.c=t,this.setLength(e);for(var i=0;i<e;)this.v[i]=pointPool.newElement(),this.o[i]=pointPool.newElement(),this.i[i]=pointPool.newElement(),i+=1},ShapePath.prototype.setLength=function(t){for(;this._maxLength<t;
1)this.doubleArrayLength();this._length=t},ShapePath.prototype.doubleArrayLength=function(){this.v=this.v.concat(createSizedArray(this._maxLength)),this.i=this.i.concat(createSizedArray(this._maxLength)),this.o=this.o.concat(createSizedArray(this._maxLength)),this._maxLength*=2},ShapePath.prototype.setXYAt=function(t,e,i,s,n){var r;switch(this._length=Math.max(this._length,s+1),this._length>=this._maxLength&&this.doubleArrayLength(),i){case"v":r=this.v;break;case"i":r=this.i;break;case"o":r=this.o;break;default:r=[]}r[s]&&(r[s],n)||(r[s]=pointPool.newElement()),r[s][0]=t,r[s][1]=e},ShapePath.prototype.setTripleAt=function(t,e,i,s,n,r,a,o){this.setXYAt(t,e,"v",a,o),this.setXYAt(i,s,"o",a,o),this.setXYAt(n,r,"i",a,o)},ShapePath.prototype.reverse=function(){var t=new ShapePath,e=(t.setPathData(this.c,this._length),this.v),i=this.o,s=this.i,n=0;this.c&&(t.setTripleAt(e[0][0],e[0][1],s[0][0],s[0][1],i[0][0],i[0][1],0,!1),n=1);for(var r=this._length-1,a=this._length,o=n;o<a;o+=1)t.setTripleAt(e[r][0],e[r][1],s[r][0],s[r][1],i[r][0],i[r][1],o,!1),--r;return t},ShapePath.prototype.length=function(){return this._length};var shapePool=(factory=poolFactory(4,function(){return new ShapePath},function(t){for(var e=t._length,i=0;i<e;i+=1)pointPool.release(t.v[i]),pointPool.release(t.i[i]),pointPool.release(t.o[i]),t.v[i]=null,t.i[i]=null,t.o[i]=null;t._length=0,t.c=!1}),factory.clone=function(t){var e,i=factory.newElement(),s=void 0===t._length?t.v.length:t._length;for(i.setLength(s),i.c=t.c,e=0;e<s;e+=1)i.setTripleAt(t.v[e][0],t.v[e][1],t.o[e][0],t.o[e][1],t.i[e][0],t.i[e][1],e);return i},factory),factory;function ShapeCollection(){this._length=0,this._maxLength=4,this.shapes=createSizedArray(this._maxLength)}ShapeCollection.prototype.addShape=function(t){this._length===this._maxLength&&(this.shapes=this.shapes.concat(createSizedArray(this._maxLength)),this._maxLength*=2),this.shapes[this._length]=t,this._length+=1},ShapeCollection.prototype.releaseShapes=function(){for(var t=0;t<this._length;t+=1)shapePool.release(this.shapes[t]);this._length=0};var shapeCollectionPool=(ob={newShapeCollection:function(){return _length?pool[--_length]:new ShapeCollection},release:function(t){for(var e=t._length,i=0;i<e;i+=1)shapePool.release(t.shapes[i]);t._length=0,_length===_maxLength&&(pool=pooling.double(pool),_maxLength*=2),pool[_length]=t,_length+=1}},_length=0,_maxLength=4,pool=createSizedArray(_maxLength),ob),ob,_length,_maxLength,pool,ShapePropertyFactory=(()=>{var n=-999999;function t(t,e,i){var s,n,r,a,o,l,h,c=i.lastIndex,p=this.keyframes;
vendor: 123,518 bytes, line 1
1if(t<p[0].t-this.offsetTime)s=p[0].s[0],n=!0,c=0;else if(t>=p[p.length-1].t-this.offsetTime)s=(p[p.length-1].s?p[p.length-1].s:p[p.length-2].e)[0],n=!0;else{for(var u,d,f=c,m=p.length-1,g=!0;g&&(u=p[f],!((d=p[f+1]).t-this.offsetTime>t));)f<m-1?f+=1:g=!1;var y,v,b,_=this.keyframesMetadata[f]||{},c=f;(n=1===u.h)||(v=t>=d.t-this.offsetTime?1:t<u.t-this.offsetTime?0:(_.__fnct?y=_.__fnct:(y=BezierFactory.getBezierEasing(u.o.x,u.o.y,u.i.x,u.i.y).get,_.__fnct=y),y((t-(u.t-this.offsetTime))/(d.t-this.offsetTime-(u.t-this.offsetTime)))),b=(d.s||u.e)[0]),s=u.s[0]}for(o=e._length,l=s.i[0].length,i.lastIndex=c,r=0;r<o;r+=1)for(a=0;a<l;a+=1)h=n?s.i[r][a]:s.i[r][a]+(b.i[r][a]-s.i[r][a])*v,e.i[r][a]=h,h=n?s.o[r][a]:s.o[r][a]+(b.o[r][a]-s.o[r][a])*v,e.o[r][a]=h,h=n?s.v[r][a]:s.v[r][a]+(b.v[r][a]-s.v[r][a])*v,e.v[r][a]=h}function s(){this.paths=this.localShapeCollection}function e(t){((t,e)=>{if(t._length===e._length&&t.c===e.c){for(var i=t._length,s=0;s<i;s+=1)if(t.v[s][0]!==e.v[s][0]||t.v[s][1]!==e.v[s][1]||t.o[s][0]!==e.o[s][0]||t.o[s][1]!==e.o[s][1]||t.i[s][0]!==e.i[s][0]||t.i[s][1]!==e.i[s][1])return;return 1}})(this.v,t)||(this.v=shapePool.clone(t),this.localShapeCollection.releaseShapes(),this.localShapeCollection.addShape(this.v),this._mdf=!0,this.paths=this.localShapeCollection)}function i(){if(this.elem.globalData.frameId!==this.frameId)if(this.effectsSequence.length)if(this.lock)this.setVValue(this.pv);else{this.lock=!0,this._mdf=!1,t=this.kf?this.pv:(this.data.ks||this.data.pt).k;for(var t,e=this.effectsSequence.length,i=0;i<e;i+=1)t=this.effectsSequence[i](t);this.setVValue(t),this.lock=!1,this.frameId=this.elem.globalData.frameId}else this._mdf=!1}function r(t,e,i){this.propType="shape",this.comp=t.comp,this.container=t,this.elem=t,this.data=e,this.k=!1,this.kf=!1,this._mdf=!1;t=(3===i?e.pt:e.ks).k;this.v=shapePool.clone(t),this.pv=shapePool.clone(this.v),this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.paths=this.localShapeCollection,this.paths.addShape(this.v),this.reset=s,this.effectsSequence=[]}function a(t){this.effectsSequence.push(t),this.container.addDynamicProperty(this)}function o(t,e,i){this.propType="shape",this.comp=t.comp,this.elem=t,this.container=t,this.offsetTime=t.data.st,this.keyframes=(3===i?e.pt:e.ks).k,this.keyframesMetadata=[],this.k=!0,this.kf=!0;t=this.keyframes[0].s[0].i.length;this.v=shapePool.newElement(),this.v.setPathData(this.keyframes[0].s[0].c,t),this.pv=shapePool.clone(this.v),this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.paths=this.localShapeCollection,this.paths.addShape(this.v),this.lastFrame=n,this.reset=s,this._caching={lastFrame:n,lastIndex:0},this.effectsSequence=[function(){var t=this.comp.renderedFrame-this.offsetTime,e=this.keyframes[0].t-this.offsetTime,i=this.keyframes[this.keyframes.length-1].t-this.offsetTime,s=this._caching.lastFrame;return s!==n&&(s<e&&t<e||i<s&&i<t)||(this._caching.lastIndex=s<t?this._caching.lastIndex:0,this.interpolateShape(t,this.pv,this._caching)),this._caching.lastFrame=t,this.pv}.bind(this)]}r.prototype.interpolateShape=t,r.prototype.getValue=i,r.prototype.setVValue=e,r.prototype.addEffect=a,o.prototype.getValue=i,o.prototype.interpolateShape=t,o.prototype.setVValue=e,o.prototype.addEffect=a,l=roundCorner,f.prototype={reset:s,getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf)&&this.convertEllToPath()},convertEllToPath:function(){var t=this.p.v[0],e=this.p.v[1],i=this.s.v[0]/2,s=this.s.v[1]/2,n=3!==this.d,r=this.v;r.v[0][0]=t,r.v[0][1]=e-s,r.v[1][0]=n?t+i:t-i,r.v[1][1]=e,r.v[2][0]=t,r.v[2][1]=e+s,r.v[3][0]=n?t-i:t+i,r.v[3][1]=e,r.i[0][0]=n?t-i*l:t+i*l,r.i[0][1]=e-s,r.i[1][0]=n?t+i:t-i,r.i[1][1]=e-s*l,r.i[2][0]=n?t+i*l:t-i*l,r.i[2][1]=e+s,r.i[3][0]=n?t-i:t+i,r.i[3][1]=e+s*l,r.o[0][0]=n?t+i*l:t-i*l,r.o[0][1]=e-s,r.o[1][0]=n?t+i:t-i,r.o[1][1]=e+s*l,r.o[2][0]=n?t-i*l:t+i*l,r.o[2][1]=e+s,r.o[3][0]=n?t-i:t+i,r.o[3][1]=e-s*l}},extendPrototype([DynamicPropertyContainer],f);var l,h=f,c=(d.prototype={reset:s,getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf)&&this.convertToPath()},convertStarToPath:function(){for(var t=2*Math.floor(this.pt.v),e=2*Math.PI/t,i=!0,s=this.or.v,n=this.ir.v,r=this.os.v,a=this.is.v,o=2*Math.PI*s/(2*t),l=2*Math.PI*n/(2*t),h=-Math.PI/2,c=(h+=this.r.v,3===this.data.d?-1:1),p=this.v._length=0;p<t;p+=1){var u=i?r:a,d=i?o:l,f=(m=i?s:n)*Math.cos(h),m=m*Math.sin(h),g=0==f&&0==m?0:m/Math.sqrt(f*f+m*m),y=0==f&&0==m?0:-f/Math.sqrt(f*f+m*m);f+=+this.p.v[0],m+=+this.p.v[1],this.v.setTripleAt(f,m,f-g*d*u*c,m-y*d*u*c,f+g*d*u*c,m+y*d*u*c,p,!0),i=!i,h+=e*c}},convertPolygonToPath:function(){var t,e=Math.floor(this.pt.v),i=2*Math.PI/e,s=this.or.v,n=this.os.v,r=2*Math.PI*s/(4*e),a=.5*-Math.PI,o=3===this.data.d?-1:1;for(a+=this.r.v,t=this.v._length=0;t<e;t+=1){var l=s*Math.cos(a),h=s*Math.sin(a),c=0==l&&0==h?0:h/Math.sqrt(l*l+h*h),p=0==l&&0==h?0:-l/Math.sqrt(l*l+h*h);l+=+this.p.v[0],h+=+this.p.v[1],this.v.setTripleAt(l,h,l-c*r*n*o,h-p*r*n*o,l+c*r*n*o,h+p*r*n*o,t,!0),a+=i*o}this.paths.length=0,this.paths[0]=this.v}},extendPrototype([DynamicPropertyContainer],d),d),p=(u.prototype={convertRectToPath:function(){var t=this.p.v[0],e=this.p.v[1],i=this.s.v[0]/2,s=this.s.v[1]/2,n=bmMin(i,s,this.r.v),r=n*(1-roundCorner);this.v._length=0,2===this.d||1===this.d?(this.v.setTripleAt(t+i,e-s+n,t+i,e-s+n,t+i,e-s+r,0,!0),this.v.setTripleAt(t+i,e+s-n,t+i,e+s-r,t+i,e+s-n,1,!0),0!==n?(this.v.setTripleAt(t+i-n,e+s,t+i-n,e+s,t+i-r,e+s,2,!0),this.v.setTripleAt(t-i+n,e+s,t-i+r,e+s,t-i+n,e+s,3,!0),this.v.setTripleAt(t-i,e+s-n,t-i,e+s-n,t-i,e+s-r,4,!0),this.v.setTripleAt(t-i,e-s+n,t-i,e-s+r,t-i,e-s+n,5,!0),this.v.setTripleAt(t-i+n,e-s,t-i+n,e-s,t-i+r,e-s,6,!0),this.v.setTripleAt(t+i-n,e-s,t+i-r,e-s,t+i-n,e-s,7,!0)):(this.v.setTripleAt(t-i,e+s,t-i+r,e+s,t-i,e+s,2),this.v.setTripleAt(t-i,e-s,t-i,e-s+r,t-i,e-s,3))):(this.v.setTripleAt(t+i,e-s+n,t+i,e-s+r,t+i,e-s+n,0,!0),0!==n?(this.v.setTripleAt(t+i-n,e-s,t+i-n,e-s,t+i-r,e-s,1,!0),this.v.setTripleAt(t-i+n,e-s,t-i+r,e-s,t-i+n,e-s,2,!0),this.v.setTripleAt(t-i,e-s+n,t-i,e-s+n,t-i,e-s+r,3,!0),this.v.setTripleAt(t-i,e+s-n,t-i,e+s-r,t-i,e+s-n,4,!0),this.v.setTripleAt(t-i+n,e+s,t-i+n,e+s,t-i+r,e+s,5,!0),this.v.setTripleAt(t+i-n,e+s,t+i-r,e+s,t+i-n,e+s,6,!0),this.v.setTripleAt(t+i,e+s-n,t+i,e+s-n,t+i,e+s-r,7,!0)):(this.v.setTripleAt(t-i,e-s,t-i+r,e-s,t-i,e-s,1,!0),this.v.setTripleAt(t-i,e+s,t-i,e+s-r,t-i,e+s,2,!0),this.v.setTripleAt(t+i,e+s,t+i-r,e+s,t+i,e+s,3,!0)))},getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf)&&this.convertRectToPath()},reset:s},extendPrototype([DynamicPropertyContainer],u),u);function u(t,e){this.v=shapePool.newElement(),this.v.c=!0,this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.localShapeCollection.addShape(this.v),this.paths=this.localShapeCollection,this.elem=t,this.comp=t.comp,this.frameId=-1,this.d=e.d,this.initDynamicPropertyContainer(t),this.p=PropertyFactory.getProp(t,e.p,1,0,this),this.s=PropertyFactory.getProp(t,e.s,1,0,this),this.r=PropertyFactory.getProp(t,e.r,0,0,this),this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertRectToPath())}function d(t,e){this.v=shapePool.newElement(),this.v.setPathData(!0,0),this.elem=t,this.comp=t.comp,this.data=e,this.frameId=-1,this.d=e.d,this.initDynamicPropertyContainer(t),1===e.sy?(this.ir=PropertyFactory.getProp(t,e.ir,0,0,this),this.is=PropertyFactory.getProp(t,e.is,0,.01,this),this.convertToPath=this.convertStarToPath):this.convertToPath=this.convertPolygonToPath,this.pt=PropertyFactory.getProp(t,e.pt,0,0,this),this.p=PropertyFactory.getProp(t,e.p,1,0,this),this.r=PropertyFactory.getProp(t,e.r,0,degToRads,this),this.or=PropertyFactory.getProp(t,e.or,0,0,this),this.os=PropertyFactory.getProp(t,e.os,0,.01,this),this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.localShapeCollection.addShape(this.v),this.paths=this.localShapeCollection,this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertToPath())}function f(t,e){this.v=shapePool.newElement(),this.v.setPathData(!0,4),this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.paths=this.localShapeCollection,this.localShapeCollection.addShape(this.v),this.d=e.d,this.elem=t,this.comp=t.comp,this.frameId=-1,this.initDynamicPropertyContainer(t),this.p=PropertyFactory.getProp(t,e.p,1,0,this),this.s=PropertyFactory.getProp(t,e.s,1,0,this),this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertEllToPath())}return{getShapeProp:function(t,e,i){var s;return 3===i||4===i?s=new((3===i?e.pt:e.ks).k.length?o:r)(t,e,i):5===i?s=new p(t,e):6===i?s=new h(t,e):7===i&&(s=new c(t,e)),s.k&&t.addDynamicProperty(s),s},getConstructorFunction:function(){return r},getKeyframedConstructorFunction:function(){return o}}})(),Matrix=(()=>{var s=Math.cos,n=Math.sin,r=Math.tan,a=Math.round;function t(){return this.props[0]=1,this.props[1]=0,this.props[2]=0,this.props[3]=0,this.props[4]=0,this.props[5]=1,this.props[6]=0,this.props[7]=0,this.props[8]=0,this.props[9]=0,this.props[10]=1,this.props[11]=0,this.props[12]=0,this.props[13]=0,this.props[14]=0,this.props[15]=1,this}function e(t){var e;return 0===t?this:(e=s(t),t=n(t),this._t(e,-t,0,0,t,e,0,0,0,0,1,0,0,0,0,1))}function i(t){var e;return 0===t?this:(e=s(t),t=n(t),this._t(1,0,0,0,0,e,-t,0,0,t,e,0,0,0,0,1))}function o(t){var e;return 0===t?this:(e=s(t),t=n(t),this._t(e,0,t,0,0,1,0,0,-t,0,e,0,0,0,0,1))}function l(t){var e;return 0===t?this:(e=s(t),t=n(t),this._t(e,-t,0,0,t,e,0,0,0,0,1,0,0,0,0,1))}function h(t,e){return this._t(1,e,t,1,0,0)}function c(t,e){return this.shear(r(t),r(e))}function p(t,e){var i=s(e),e=n(e);return this._t(i,e,0,0,-e,i,0,0,0,0,1,0,0,0,0,1)._t(1,0,0,0,r(t),1,0,0,0,0,1,0,0,0,0,1)._t(i,-e,0,0,e,i,0,0,0,0,1,0,0,0,0,1)}function u(t,e,i){return i||0===i||(i=1),1===t&&1===e&&1===i?this:this._t(t,0,0,0,0,e,0,0,0,0,i,0,0,0,0,1)}function d(t,e,i,s,n,r,a,o,l,h,c,p,u,d,f,m){return this.props[0]=t,this.props[1]=e,this.props[2]=i,this.props[3]=s,this.props[4]=n,this.props[5]=r,this.props[6]=a,this.props[7]=o,this.props[8]=l,this.props[9]=h,this.props[10]=c,this.props[11]=p,this.props[12]=u,this.props[13]=d,this.props[14]=f,this.props[15]=m,this}function f(t,e,i){return i=i||0,0!==t||0!==e||0!==i?this._t(1,0,0,0,0,1,0,0,0,0,1,0,t,e,i,1):this}function m(t,e,i,s,n,r,a,o,l,h,c,p,u,d,f,m){var g,y,v,b,_,x,C,S,w,k,E,P,D,T,A,M,I=this.props;return 1===t&&0===e&&0===i&&0===s&&0===n&&1===r&&0===a&&0===o&&0===l&&0===h&&1===c&&0===p?(I[12]=I[12]*t+I[15]*u,I[13]=I[13]*r+I[15]*d,I[14]=I[14]*c+I[15]*f,I[15]*=m,this._identityCalculated=!1):(g=I[0],_=I[4],x=I[5],C=I[6],S=I[7],w=I[8],k=I[9],E=I[10],P=I[11],D=I[12],T=I[13],A=I[14],M=I[15],I[0]=g*t+(y=I[1])*n+(v=I[2])*l+(b=I[3])*u,I[1]=g*e+y*r+v*h+b*d,I[2]=g*i+y*a+v*c+b*f,I[3]=g*s+y*o+v*p+b*m,I[4]=_*t+x*n+C*l+S*u,I[5]=_*e+x*r+C*h+S*d,I[6]=_*i+x*a+C*c+S*f,I[7]=_*s+x*o+C*p+S*m,I[8]=w*t+k*n+E*l+P*u,I[9]=w*e+k*r+E*h+P*d,I[10]=w*i+k*a+E*c+P*f,I[11]=w*s+k*o+E*p+P*m,I[12]=D*t+T*n+A*l+M*u,I[13]=D*e+T*r+A*h+M*d,I[14]=D*i+T*a+A*c+M*f,I[15]=D*s+T*o+A*p+M*m,this._identityCalculated=!1),this}function g(t){t=t.props;return this.transform(t[0],t[1],t[2],t[3],t[4],t[5],t[6],t[7],t[8],t[9],t[10],t[11],t[12],t[13],t[14],t[15])}function y(){return this._identityCalculated||(this._identity=!(1!==this.props[0]||0!==this.props[1]||0!==this.props[2]||0!==this.props[3]||0!==this.props[4]||1!==this.props[5]||0!==this.props[6]||0!==this.props[7]||0!==this.props[8]||0!==this.props[9]||1!==this.props[10]||0!==this.props[11]||0!==this.props[12]||0!==this.props[13]||0!==this.props[14]||1!==this.props[15]),this._identityCalculated=!0),this._identity}function v(t){for(var e=0;e<16;){if(t.props[e]!==this.props[e])return!1;e+=1}return!0}function b(t){for(var e=0;e<16;e+=1)t.props[e]=this.props[e];return t}function _(t){for(var e=0;e<16;e+=1)this.props[e]=t[e]}function x(t,e,i){return{x:t*this.props[0]+e*this.props[4]+i*this.props[8]+this.props[12],y:t*this.props[1]+e*this.props[5]+i*this.props[9]+this.props[13],z:t*this.props[2]+e*this.props[6]+i*this.props[10]+this.props[14]}}function C(t,e,i){return t*this.props[0]+e*this.props[4]+i*this.props[8]+this.props[12]}function S(t,e,i){return t*this.props[1]+e*this.props[5]+i*this.props[9]+this.props[13]}function w(t,e,i){return t*this.props[2]+e*this.props[6]+i*this.props[10]+this.props[14]}function k(){var t=this.props[0]*this.props[5]-this.props[1]*this.props[4],e=this.props[5]/t,i=-this.props[1]/t,s=-this.props[4]/t,n=this.props[0]/t,r=(this.props[4]*this.props[13]-this.props[5]*this.props[12])/t,t=-(this.props[0]*this.props[13]-this.props[1]*this.props[12])/t,a=new Matrix;return a.props[0]=e,a.props[1]=i,a.props[4]=s,a.props[5]=n,a.props[12]=r,a.props[13]=t,a}function E(t){return this.getInverseMatrix().applyToPointArray(t[0],t[1],t[2]||0)}function P(t){for(var e=t.length,i=[],s=0;s<e;s+=1)i[s]=E(t[s]);return i}function D(t,e,i){var s,n,r,a,o,l,h=createTypedArray("float32",6);return this.isIdentity()?(h[0]=t[0],h[1]=t[1],h[2]=e[0],h[3]=e[1],h[4]=i[0],h[5]=i[1]):(s=this.props[0],n=this.props[1],r=this.props[4],a=this.props[5],o=this.props[12],l=this.props[13],h[0]=t[0]*s+t[1]*r+o,h[1]=t[0]*n+t[1]*a+l,h[2]=e[0]*s+e[1]*r+o,h[3]=e[0]*n+e[1]*a+l,h[4]=i[0]*s+i[1]*r+o,h[5]=i[0]*n+i[1]*a+l),h}function T(t,e,i){return this.isIdentity()?[t,e,i]:[t*this.props[0]+e*this.props[4]+i*this.props[8]+this.props[12],t*this.props[1]+e*this.props[5]+i*this.props[9]+this.props[13],t*this.props[2]+e*this.props[6]+i*this.props[10]+this.props[14]]}function A(t,e){var i;return this.isIdentity()?t+","+e:(i=this.props,Math.round(100*(t*i[0]+e*i[4]+i[12]))/100+","+Math.round(100*(t*i[1]+e*i[5]+i[13]))/100)}function M(){for(var t=0,e=this.props,i="matrix3d(";t<16;)i=i+a(1e4*e[t])/1e4+(15===t?")":","),t+=1;return i}function I(t){return t<1e-6&&0<t||-1e-6<t&&t<0?a(1e4*t)/1e4:t}function F(){var t=this.props;return"matrix("+I(t[0])+","+I(t[1])+","+I(t[4])+","+I(t[5])+","+I(t[12])+","+I(t[13])+")"}return function(){this.reset=t,this.rotate=e,this.rotateX=i,this.rotateY=o,this.rotateZ=l,this.skew=c,this.skewFromAxis=p,this.shear=h,this.scale=u,this.setTransform=d,this.translate=f,this.transform=m,this.multiply=g,this.applyToPoint=x,this.applyToX=C,this.applyToY=S,this.applyToZ=w,this.applyToPointArray=T,this.applyToTriplePoints=D,this.applyToPointStringified=A,this.toCSS=M,this.to2dCSS=F,this.clone=b,this.cloneFromProps=_,this.equals=v,this.inversePoints=P,this.inversePoint=E,this.getInverseMatrix=k,this._t=this.transform,this.isIdentity=y,this._identity=!0,this._identityCalculated=!1,this.props=createTypedArray("float32",16),this.reset()}})();function _typeof$3(t){return(_typeof$3="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var lottie={},standalone="__[STANDALONE]__",animationData="__[ANIMATIONDATA]__",renderer="";function setLocation(t){setLocationHref(t)}function searchAnimations(){!0===standalone?animationManager.searchAnimations(animationData,standalone,renderer):animationManager.searchAnimations()}function setSubframeRendering(t){setSubframeEnabled(t)}function setPrefix(t){setIdPrefix(t)}function loadAnimation(t){return!0===standalone&&(t.animationData=JSON.parse(animationData)),animationManager.loadAnimation(t)}function setQuality(t){if("string"==typeof t)switch(t){case"high":setDefaultCurveSegments(200);break;default:case"medium":setDefaultCurveSegments(50);break;case"low":setDefaultCurveSegments(10)}else!isNaN(t)&&1<t&&setDefaultCurveSegments(t);50<=getDefaultCurveSegments()?roundValues(!1):roundValues(!0)}function inBrowser(){return"undefined"!=typeof navigator}function installPlugin(t,e){"expressions"===t&&setExpressionsPlugin(e)}function getFactory(t){switch(t){case"propertyFactory":return PropertyFactory;case"shapePropertyFactory":return ShapePropertyFactory;case"matrix":return Matrix;default:return null}}function checkReady(){"complete"===document.readyState&&(clearInterval(readyStateCheckInterval),searchAnimations())}function getQueryVariable(t){for(var e=queryString.split("&"),i=0;i<e.length;i+=1){var s=e[i].split("=");if(decodeURIComponent(s[0])==t)return decodeURIComponent(s[1])}return null}lottie.play=animationManager.play,lottie.pause=animationManager.pause,lottie.setLocationHref=setLocation,lottie.togglePause=animationManager.togglePause,lottie.setSpeed=animationManager.setSpeed,lottie.setDirection=animationManager.setDirection,lottie.stop=animationManager.stop,lottie.searchAnimations=searchAnimations,lottie.registerAnimation=animationManager.registerAnimation,lottie.loadAnimation=loadAnimation,lottie.setSubframeRendering=setSubframeRendering,lottie.resize=animationManager.resize,lottie.goToAndStop=animationManager.goToAndStop,lottie.destroy=animationManager.destroy,lottie.setQuality=setQuality,lottie.inBrowser=inBrowser,lottie.installPlugin=installPlugin,lottie.freeze=animationManager.freeze,lottie.unfreeze=animationManager.unfreeze,lottie.setVolume=animationManager.setVolume,lottie.mute=animationManager.mute,lottie.unmute=animationManager.unmute,lottie.getRegisteredAnimations=animationManager.getRegisteredAnimations,lottie.useWebWorker=setWebWorker,lottie.setIDPrefix=setPrefix,lottie.__getFactory=getFactory,lottie.version="5.13.0";var queryString="",scripts,index,myScript,queryString,renderer,readyStateCheckInterval=(standalone&&(scripts=document.getElementsByTagName("script"),index=scripts.length-1,myScript=scripts[index]||{src:""},queryString=myScript.src?myScript.src.replace(/^[^\?]+\??/,""):"",renderer=getQueryVariable("renderer")),setInterval(checkReady,100));try{"object"===("undefined"==typeof exports?"undefined":_typeof$3(exports))&&"undefined"!=typeof module||"function"==typeof define&&define.amd||(window.bodymovin=lottie)}catch(t){}var ShapeModifiers=(()=>{var t={},s={};return t.registerModifier=function(t,e){s[t]||(s[t]=e)},t.getModifier=function(t,e,i){return new s[t](e,i)},t})();function ShapeModifier(){}function TrimModifier(){}function PuckerAndBloatModifier(){}ShapeModifier.prototype.initModifierProperties=function(){},ShapeModifier.prototype.addShapeToModifier=function(){},ShapeModifier.prototype.addShape=function(t){var e;this.closed||(t.sh.container.addDynamicProperty(t.sh),e={shape:t.sh,data:t,localShapeCollection:shapeCollectionPool.newShapeCollection()},this.shapes.push(e),this.addShapeToModifier(e),this._isAnimated&&t.setAsAnimated())},ShapeModifier.prototype.init=function(t,e){this.shapes=[],this.elem=t,this.initDynamicPropertyContainer(t),this.initModifierProperties(t,e),this.frameId=initialDefaultFrame,this.closed=!1,this.k=!1,this.dynamicProperties.length?this.k=!0:this.getValue(!0)},ShapeModifier.prototype.processKeys=function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties())},extendPrototype([DynamicPropertyContainer],ShapeModifier),extendPrototype([ShapeModifier],TrimModifier),TrimModifier.prototype.initModifierProperties=function(t,e){this.s=PropertyFactory.getProp(t,e.s,0,.01,this),this.e=PropertyFactory.getProp(t,e.e,0,.01,this),this.o=PropertyFactory.getProp(t,e.o,0,0,this),this.sValue=0,this.eValue=0,this.getValue=this.processKeys,this.m=e.m,this._isAnimated=!!this.s.effectsSequence.length||!!this.e.effectsSequence.length||!!this.o.effectsSequence.length},TrimModifier.prototype.addShapeToModifier=function(t){t.pathsData=[]},TrimModifier.prototype.calculateShapeEdges=function(t,e,i,s,n){var r=[];e<=1?r.push({s:t,e:e}):1<=t?r.push({s:t-1,e:e-1}):(r.push({s:t,e:1}),r.push({s:0,e:e-1}));for(var a,o,l=[],h=r.length,c=0;c<h;c+=1)(o=r[c]).e*n<s||o.s*n>s+i||(a=o.s*n<=s?0:(o.s*n-s)/i,o=o.e*n>=s+i?1:(o.e*n-s)/i,l.push([a,o]));return l.length||l.push([0,0]),l},TrimModifier.prototype.releasePathsData=function(t){for(var e=t.length,i=0;i<e;i+=1)segmentsLengthPool.release(t[i]);return t.length=0,t},TrimModifier.prototype.processShapes=function(t){var e,i,s,n;this._mdf||t?((i=this.o.v%360/360)<0&&(i+=1),(s=1<this.s.v?1+i:this.s.v<0?0+i:this.s.v+i)>(n=1<this.e.v?1+i:this.e.v<0?0+i:this.e.v+i)&&(i=s,s=n,n=i),s=1e-4*Math.round(1e4*s),n=1e-4*Math.round(1e4*n),this.sValue=s,this.eValue=n):(s=this.sValue,n=this.eValue);var r,a,o,l,h,c=this.shapes.length,p=0;if(n===s)for(m=0;m<c;m+=1)this.shapes[m].localShapeCollection.releaseShapes(),this.shapes[m].shape._mdf=!0,this.shapes[m].shape.paths=this.shapes[m].localShapeCollection,this._mdf&&(this.shapes[m].pathsData.length=0);else if(1===n&&0===s||0===n&&1===s){if(this._mdf)for(m=0;m<c;m+=1)this.shapes[m].pathsData.length=0,this.shapes[m].shape._mdf=!0}else{for(var u,d,f=[],m=0;m<c;m+=1)if((u=this.shapes[m]).shape._mdf||this._mdf||t||2===this.m){if(a=(e=u.shape.paths)._length,h=0,!u.shape._mdf&&u.pathsData.length)h=u.totalShapeLength;else{for(o=this.releasePathsData(u.pathsData),r=0;r<a;r+=1)l=bez.getSegmentsLength(e.shapes[r]),o.push(l),h+=l.totalLength;u.totalShapeLength=h,u.pathsData=o}p+=h,u.shape._mdf=!0}else u.shape.paths=u.localShapeCollection;var g,y=s,v=n,b=0;for(m=c-1;0<=m;--m)if((u=this.shapes[m]).shape._mdf){for((d=u.localShapeCollection).releaseShapes(),2===this.m&&1<c?(g=this.calculateShapeEdges(s,n,u.totalShapeLength,b,p),b+=u.totalShapeLength):g=[[y,v]],a=g.length,r=0;r<a;r+=1){y=g[r][0],v=g[r][1],f.length=0,v<=1?f.push({s:u.totalShapeLength*y,e:u.totalShapeLength*v}):1<=y?f.push({s:u.totalShapeLength*(y-1),e:u.totalShapeLength*(v-1)}):(f.push({s:u.totalShapeLength*y,e:u.totalShapeLength}),f.push({s:0,e:u.totalShapeLength*(v-1)}));var _,x=this.addShapes(u,f[0]);f[0].s!==f[0].e&&(1<f.length&&(x=u.shape.paths.shapes[u.shape.paths._length-1].c?(_=x.pop(),this.addPaths(x,d),this.addShapes(u,f[1],_)):(this.addPaths(x,d),this.addShapes(u,f[1]))),this.addPaths(x,d))}u.shape.paths=d}}},TrimModifier.prototype.addPaths=function(t,e){for(var i=t.length,s=0;s<i;s+=1)e.addShape(t[s])},TrimModifier.prototype.addSegment=function(t,e,i,s,n,r,a){n.setXYAt(e[0],e[1],"o",r),n.setXYAt(i[0],i[1],"i",r+1),a&&n.setXYAt(t[0],t[1],"v",r),n.setXYAt(s[0],s[1],"v",r+1)},TrimModifier.prototype.addSegmentFromArray=function(t,e,i,s){e.setXYAt(t[1],t[5],"o",i),e.setXYAt(t[2],t[6],"i",i+1),s&&e.setXYAt(t[0],t[4],"v",i),e.setXYAt(t[3],t[7],"v",i+1)},TrimModifier.prototype.addShapes=function(t,e,i){var s,n,r,a,o,l,h,c,p=t.pathsData,u=t.shape.paths.shapes,d=t.shape.paths._length,f=0,m=[],g=!0,y=i?(a=i._length,i._length):(i=shapePool.newElement(),a=0);for(m.push(i),s=0;s<d;s+=1){for(o=p[s].lengths,i.c=u[s].c,r=u[s].c?o.length:o.length+1,n=1;n<r;n+=1)if(f+(c=o[n-1]).addedLength<e.s)f+=c.addedLength,i.c=!1;else{if(f>e.e){i.c=!1;break}e.s<=f&&e.e>=f+c.addedLength?(this.addSegment(u[s].v[n-1],u[s].o[n-1],u[s].i[n],u[s].v[n],i,a,g),g=!1):(l=bez.getNewSegment(u[s].v[n-1],u[s].v[n],u[s].o[n-1],u[s].i[n],(e.s-f)/c.addedLength,(e.e-f)/c.addedLength,o[n-1]),this.addSegmentFromArray(l,i,a,g),i.c=g=!1),f+=c.addedLength,a+=1}if(u[s].c&&o.length&&(c=o[n-1],f<=e.e?(h=o[n-1].addedLength,e.s<=f&&e.e>=f+h?(this.addSegment(u[s].v[n-1],u[s].o[n-1],u[s].i[0],u[s].v[0],i,a,g),g=!1):(l=bez.getNewSegment(u[s].v[n-1],u[s].v[0],u[s].o[n-1],u[s].i[0],(e.s-f)/h,(e.e-f)/h,o[n-1]),this.addSegmentFromArray(l,i,a,g),i.c=g=!1)):i.c=!1,f+=c.addedLength,a+=1),i._length&&(i.setXYAt(i.v[y][0],i.v[y][1],"i",y),i.setXYAt(i.v[i._length-1][0],i.v[i._length-1][1],"o",i._length-1)),f>e.e)break;s<d-1&&(i=shapePool.newElement(),g=!0,m.push(i),a=0)}return m},extendPrototype([ShapeModifier],PuckerAndBloatModifier),PuckerAndBloatModifier.prototype.initModifierProperties=function(t,e){this.getValue=this.processKeys,this.amount=PropertyFactory.getProp(t,e.a,0,null,this),this._isAnimated=!!this.amount.effectsSequence.length},PuckerAndBloatModifier.prototype.processPath=function(t,e){for(var i=e/100,s=[0,0],n=t._length,r=0,r=0;r<n;r+=1)s[0]+=t.v[r][0],s[1]+=t.v[r][1];s[0]/=n,s[1]/=n;var a,o,l,h,c,p,u=shapePool.newElement();for(u.c=t.c,r=0;r<n;r+=1)a=t.v[r][0]+(s[0]-t.v[r][0])*i,o=t.v[r][1]+(s[1]-t.v[r][1])*i,l=t.o[r][0]+(s[0]-t.o[r][0])*-i,h=t.o[r][1]+(s[1]-t.o[r][1])*-i,c=t.i[r][0]+(s[0]-t.i[r][0])*-i,p=t.i[r][1]+(s[1]-t.i[r][1])*-i,u.setTripleAt(a,o,l,h,c,p,r);return u},PuckerAndBloatModifier.prototype.processShapes=function(t){var e,i,s,n,r,a,o=this.shapes.length,l=this.amount.v;if(0!==l)for(i=0;i<o;i+=1){if(a=(r=this.shapes[i]).localShapeCollection,r.shape._mdf||this._mdf||t)for(a.releaseShapes(),r.shape._mdf=!0,e=r.shape.paths.shapes,n=r.shape.paths._length,s=0;s<n;s+=1)a.addShape(this.processPath(e[s],l));r.shape.paths=r.localShapeCollection}this.dynamicProperties.length||(this._mdf=!1)};var TransformPropertyFactory=(()=>{var r=[0,0];function s(t,e,i){if(this.elem=t,this.frameId=-1,this.propType="transform",this.data=e,this.v=new Matrix,this.pre=new Matrix,this.appliedTransformations=0,this.initDynamicPropertyContainer(i||t),e.p&&e.p.s?(this.px=PropertyFactory.getProp(t,e.p.x,0,0,this),this.py=PropertyFactory.getProp(t,e.p.y,0,0,this),e.p.z&&(this.pz=PropertyFactory.getProp(t,e.p.z,0,0,this))):this.p=PropertyFactory.getProp(t,e.p||{k:[0,0,0]},1,0,this),e.rx){if(this.rx=PropertyFactory.getProp(t,e.rx,0,degToRads,this),this.ry=PropertyFactory.getProp(t,e.ry,0,degToRads,this),this.rz=PropertyFactory.getProp(t,e.rz,0,degToRads,this),e.or.k[0].ti)for(var s=e.or.k.length,n=0;n<s;n+=1)e.or.k[n].to=null,e.or.k[n].ti=null;this.or=PropertyFactory.getProp(t,e.or,1,degToRads,this),this.or.sh=!0}else this.r=PropertyFactory.getProp(t,e.r||{k:0},0,degToRads,this);e.sk&&(this.sk=PropertyFactory.getProp(t,e.sk,0,degToRads,this),this.sa=PropertyFactory.getProp(t,e.sa,0,degToRads,this)),this.a=PropertyFactory.getProp(t,e.a||{k:[0,0,0]},1,0,this),this.s=PropertyFactory.getProp(t,e.s||{k:[100,100,100]},1,.01,this),e.o?this.o=PropertyFactory.getProp(t,e.o,0,.01,t):this.o={_mdf:!1,v:1},this._isDirty=!0,this.dynamicProperties.length||this.getValue(!0)}return s.prototype={applyToMatrix:function(t){var e=this._mdf;this.iterateDynamicProperties(),this._mdf=this._mdf||e,this.a&&t.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.s&&t.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.sk&&t.skewFromAxis(-this.sk.v,this.sa.v),this.r?t.rotate(-this.r.v):t.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.data.p.s?this.data.p.z?t.translate(this.px.v,this.py.v,-this.pz.v):t.translate(this.px.v,this.py.v,0):t.translate(this.p.v[0],this.p.v[1],-this.p.v[2])},getValue:function(t){var e,i,s,n;this.elem.globalData.frameId!==this.frameId&&(this._isDirty&&(this.precalculateMatrix(),this._isDirty=!1),this.iterateDynamicProperties(),(this._mdf||t)&&(this.v.cloneFromProps(this.pre.props),this.appliedTransformations<1&&this.v.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.appliedTransformations<2&&this.v.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.sk&&this.appliedTransformations<3&&this.v.skewFromAxis(-this.sk.v,this.sa.v),this.r&&this.appliedTransformations<4?this.v.rotate(-this.r.v):!this.r&&this.appliedTransformations<4&&this.v.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.autoOriented&&(t=this.elem.globalData.frameRate,this.p&&this.p.keyframes&&this.p.getValueAtTime?i=this.p._caching.lastFrame+this.p.offsetTime<=this.p.keyframes[0].t?(e=this.p.getValueAtTime((this.p.keyframes[0].t+.01)/t,0),this.p.getValueAtTime(this.p.keyframes[0].t/t,0)):this.p._caching.lastFrame+this.p.offsetTime>=this.p.keyframes[this.p.keyframes.length-1].t?(e=this.p.getValueAtTime(this.p.keyframes[this.p.keyframes.length-1].t/t,0),this.p.getValueAtTime((this.p.keyframes[this.p.keyframes.length-1].t-.05)/t,0)):(e=this.p.pv,this.p.getValueAtTime((this.p._caching.lastFrame+this.p.offsetTime-.01)/t,this.p.offsetTime)):this.px&&this.px.keyframes&&this.py.keyframes&&this.px.getValueAtTime&&this.py.getValueAtTime?(e=[],i=[],s=this.px,n=this.py,s._caching.lastFrame+s.offsetTime<=s.keyframes[0].t?(e[0]=s.getValueAtTime((s.keyframes[0].t+.01)/t,0),e[1]=n.getValueAtTime((n.keyframes[0].t+.01)/t,0),i[0]=s.getValueAtTime(s.keyframes[0].t/t,0),i[1]=n.getValueAtTime(n.keyframes[0].t/t,0)):s._caching.lastFrame+s.offsetTime>=s.keyframes[s.keyframes.length-1].t?(e[0]=s.getValueAtTime(s.keyframes[s.keyframes.length-1].t/t,0),e[1]=n.getValueAtTime(n.keyframes[n.keyframes.length-1].t/t,0),i[0]=s.getValueAtTime((s.keyframes[s.keyframes.length-1].t-.01)/t,0),i[1]=n.getValueAtTime((n.keyframes[n.keyframes.length-1].t-.01)/t,0)):(e=[s.pv,n.pv],i[0]=s.getValueAtTime((s._caching.lastFrame+s.offsetTime-.01)/t,s.offsetTime),i[1]=n.getValueAtTime((n._caching.lastFrame+n.offsetTime-.01)/t,n.offsetTime))):e=i=r,this.v.rotate(-Math.atan2(e[1]-i[1],e[0]-i[0]))),this.data.p&&this.data.p.s?this.data.p.z?this.v.translate(this.px.v,this.py.v,-this.pz.v):this.v.translate(this.px.v,this.py.v,0):this.v.translate(this.p.v[0],this.p.v[1],-this.p.v[2])),this.frameId=this.elem.globalData.frameId)},precalculateMatrix:function(){if(this.appliedTransformations=0,this.pre.reset(),!this.a.effectsSequence.length&&(this.pre.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.appliedTransformations=1,!this.s.effectsSequence.length)){if(this.pre.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.appliedTransformations=2,this.sk){if(this.sk.effectsSequence.length||this.sa.effectsSequence.length)return;this.pre.skewFromAxis(-this.sk.v,this.sa.v),this.appliedTransformations=3}this.r?this.r.effectsSequence.length||(this.pre.rotate(-this.r.v),this.appliedTransformations=4):this.rz.effectsSequence.length||this.ry.effectsSequence.length||this.rx.effectsSequence.length||this.or.effectsSequence.length||(this.pre.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.appliedTransformations=4)}},autoOrient:function(){}},extendPrototype([DynamicPropertyContainer],s),s.prototype.addDynamicProperty=function(t){this._addDynamicProperty(t),this.elem.addDynamicProperty(t),this._isDirty=!0},s.prototype._addDynamicProperty=DynamicPropertyContainer.prototype.addDynamicProperty,{getTransformProperty:function(t,e,i){return new s(t,e,i)}}})();function RepeaterModifier(){}function RoundCornersModifier(){}function floatEqual(t,e){return 1e5*Math.abs(t-e)<=Math.min(Math.abs(t),Math.abs(e))}function floatZero(t){return Math.abs(t)<=1e-5}function lerp(t,e,i){return t*(1-i)+e*i}function lerpPoint(t,e,i){return[lerp(t[0],e[0],i),lerp(t[1],e[1],i)]}function quadRoots(t,e,i){return 0===t||(i=e*e-4*t*i)<0?[]:(e=-e/(2*t),0==i?[e]:[e-(i=Math.sqrt(i)/(2*t)),e+i])}function polynomialCoefficients(t,e,i,s){return[3*e-t-3*i+s,3*t-6*e+3*i,-3*t+3*e,t]}function singlePoint(t){return new PolynomialBezier(t,t,t,t,!1)}function PolynomialBezier(t,e,i,s,n){n&&pointEqual(t,e)&&(e=lerpPoint(t,s,1/3)),n&&pointEqual(i,s)&&(i=lerpPoint(t,s,2/3));var n=polynomialCoefficients(t[0],e[0],i[0],s[0]),r=polynomialCoefficients(t[1],e[1],i[1],s[1]);this.a=[n[0],r[0]],this.b=[n[1],r[1]],this.c=[n[2],r[2]],this.d=[n[3],r[3]],this.points=[t,e,i,s]}function extrema(t,e){var i,s=t.points[0][e],n=t.points[t.points.length-1][e];n<s&&(i=n,n=s,s=i);for(var r,a=quadRoots(3*t.a[e],2*t.b[e],t.c[e]),o=0;o<a.length;o+=1)0<a[o]&&a[o]<1&&((r=t.point(a[o])[e])<s?s=r:n<r&&(n=r));return{min:s,max:n}}function intersectData(t,e,i){var s=t.boundingBox();return{cx:s.cx,cy:s.cy,width:s.width,height:s.height,bez:t,t:(e+i)/2,t1:e,t2:i}}function splitData(t){var e=t.bez.split(.5);return[intersectData(e[0],t.t1,t.t),intersectData(e[1],t.t,t.t2)]}function boxIntersect(t,e){return 2*Math.abs(t.cx-e.cx)<t.width+e.width&&2*Math.abs(t.cy-e.cy)<t.height+e.height}function intersectsImpl(t,e,i,s,n,r){boxIntersect(t,e)&&(r<=i||t.width<=s&&t.height<=s&&e.width<=s&&e.height<=s?n.push([t.t,e.t]):(t=splitData(t),e=splitData(e),intersectsImpl(t[0],e[0],i+1,s,n,r),intersectsImpl(t[0],e[1],i+1,s,n,r),intersectsImpl(t[1],e[0],i+1,s,n,r),intersectsImpl(t[1],e[1],i+1,s,n,r)))}function crossProduct(t,e){return[t[1]*e[2]-t[2]*e[1],t[2]*e[0]-t[0]*e[2],t[0]*e[1]-t[1]*e[0]]}function lineIntersection(t,e,i,s){t=[t[0],t[1],1],e=[e[0],e[1],1],i=[i[0],i[1],1],s=[s[0],s[1],1],t=crossProduct(crossProduct(t,e),crossProduct(i,s));return floatZero(t[2])?null:[t[0]/t[2],t[1]/t[2]]}function polarOffset(t,e,i){return[t[0]+Math.cos(e)*i,t[1]-Math.sin(e)*i]}function pointDistance(t,e){return Math.hypot(t[0]-e[0],t[1]-e[1])}function pointEqual(t,e){return floatEqual(t[0],e[0])&&floatEqual(t[1],e[1])}function ZigZagModifier(){}function setPoint(t,e,i,s,n,r,a){var o=i-Math.PI/2,l=i+Math.PI/2,h=e[0]+Math.cos(i)*s*n,e=e[1]-Math.sin(i)*s*n;t.setTripleAt(h,e,h+Math.cos(o)*r,e-Math.sin(o)*r,h+Math.cos(l)*a,e-Math.sin(l)*a,t.length())}function getPerpendicularVector(t,e){e=[e[0]-t[0],e[1]-t[1]],t=.5*-Math.PI;return[Math.cos(t)*e[0]-Math.sin(t)*e[1],Math.sin(t)*e[0]+Math.cos(t)*e[1]]}function getProjectingAngle(t,e){var i=0===e?t.length()-1:e-1,e=(e+1)%t.length(),i=getPerpendicularVector(t.v[i],t.v[e]);return Math.atan2(0,1)-Math.atan2(i[1],i[0])}function zigZagCorner(t,e,i,s,n,r,a){var o=getProjectingAngle(e,i),l=e.v[i%e._length],h=e.v[0===i?e._length-1:i-1],c=e.v[(i+1)%e._length],h=2===r?Math.sqrt(Math.pow(l[0]-h[0],2)+Math.pow(l[1]-h[1],2)):0,l=2===r?Math.sqrt(Math.pow(l[0]-c[0],2)+Math.pow(l[1]-c[1],2)):0;setPoint(t,e.v[i%e._length],o,a,s,l/(2*(n+1)),h/(2*(n+1)),r)}function zigZagSegment(t,e,i,s,n,r){for(var a=0;a<s;a+=1){var o=(a+1)/(s+1),l=2===n?Math.sqrt(Math.pow(e.points[3][0]-e.points[0][0],2)+Math.pow(e.points[3][1]-e.points[0][1],2)):0,h=e.normalAngle(o);setPoint(t,e.point(o),h,r,i,l/(2*(s+1)),l/(2*(s+1)),n),r=-r}return r}function linearOffset(t,e,i){var s=Math.atan2(e[0]-t[0],e[1]-t[1]);return[polarOffset(t,s,i),polarOffset(e,s,i)]}function offsetSegment(t,e){var i=(a=linearOffset(t.points[0],t.points[1],e))[0],s=a[1],n=(a=linearOffset(t.points[1],t.points[2],e))[0],r=a[1],t=(a=linearOffset(t.points[2],t.points[3],e))[0],e=a[1],a=lineIntersection(i,s,n,r),s=(null===a&&(a=s),lineIntersection(t,e,n,r));return new PolynomialBezier(i,a,s=null===s?t:s,e)}function joinLines(t,e,i,s,n){var r,a,o=e.points[3],l=i.points[0];return 3===s||pointEqual(o,l)?o:2===s?(s=-e.tangentAngle(1),a=-i.tangentAngle(0)+Math.PI,r=lineIntersection(o,polarOffset(o,s+Math.PI/2,100),l,polarOffset(l,s+Math.PI/2,100)),r=polarOffset(o,s,2*(s=r?pointDistance(r,o):pointDistance(o,l)/2)*roundCorner),t.setXYAt(r[0],r[1],"o",t.length()-1),r=polarOffset(l,a,2*s*roundCorner),t.setTripleAt(l[0],l[1],l[0],l[1],r[0],r[1],t.length()),l):(a=lineIntersection(pointEqual(o,e.points[2])?e.points[0]:e.points[2],o,l,pointEqual(l,i.points[1])?i.points[3]:i.points[1]))&&pointDistance(a,o)<n?(t.setTripleAt(a[0],a[1],a[0],a[1],a[0],a[1],t.length()),a):o}function getIntersection(t,e){t=t.intersections(e);return t.length&&floatEqual(t[0][0],1)&&t.shift(),t.length?t[0]:null}function pruneSegmentIntersection(t,e){var i=t.slice(),s=e.slice(),n=getIntersection(t[t.length-1],e[0]);return n&&(i[t.length-1]=t[t.length-1].split(n[0])[0],s[0]=e[0].split(n[1])[1]),1<t.length&&1<e.length&&(n=getIntersection(t[0],e[e.length-1]))?[[t[0].split(n[0])[0]],[e[e.length-1].split(n[1])[1]]]:[i,s]}function pruneIntersections(t){for(var e,i=1;i<t.length;i+=1)e=pruneSegmentIntersection(t[i-1],t[i]),t[i-1]=e[0],t[i]=e[1];return 1<t.length&&(e=pruneSegmentIntersection(t[t.length-1],t[0]),t[t.length-1]=e[0],t[0]=e[1]),t}function offsetSegmentSplit(t,e){var i,s,n,r=t.inflectionPoints();return 0===r.length?[offsetSegment(t,e)]:1===r.length||floatEqual(r[1],1)?(s=(i=t.split(r[0]))[0],n=i[1],[offsetSegment(s,e),offsetSegment(n,e)]):(s=(i=t.split(r[0]))[0],t=(r[1]-r[0])/(1-r[0]),r=(i=i[1].split(t))[0],n=i[1],[offsetSegment(s,e),offsetSegment(r,e),offsetSegment(n,e)])}function OffsetPathModifier(){}function getFontProperties(t){for(var e=t.fStyle?t.fStyle.split(" "):[],i="normal",s="normal",n=e.length,r=0;r<n;r+=1)switch(e[r].toLowerCase()){case"italic":s="italic";break;case"bold":i="700";break;case"black":i="900";break;case"medium":i="500";break;case"regular":case"normal":i="400";break;case"light":case"thin":i="200"}return{style:s,weight:t.fWeight||i}}extendPrototype([ShapeModifier],RepeaterModifier),RepeaterModifier.prototype.initModifierProperties=function(t,e){this.getValue=this.processKeys,this.c=PropertyFactory.getProp(t,e.c,0,null,this),this.o=PropertyFactory.getProp(t,e.o,0,null,this),this.tr=TransformPropertyFactory.getTransformProperty(t,e.tr,this),this.so=PropertyFactory.getProp(t,e.tr.so,0,.01,this),this.eo=PropertyFactory.getProp(t,e.tr.eo,0,.01,this),this.data=e,this.dynamicProperties.length||this.getValue(!0),this._isAnimated=!!this.dynamicProperties.length,this.pMatrix=new Matrix,this.rMatrix=new Matrix,this.sMatrix=new Matrix,this.tMatrix=new Matrix,this.matrix=new Matrix},RepeaterModifier.prototype.applyTransforms=function(t,e,i,s,n,r){var a=r?-1:1,o=s.s.v[0]+(1-s.s.v[0])*(1-n),l=s.s.v[1]+(1-s.s.v[1])*(1-n);t.translate(s.p.v[0]*a*n,s.p.v[1]*a*n,s.p.v[2]),e.translate(-s.a.v[0],-s.a.v[1],s.a.v[2]),e.rotate(-s.r.v*a*n),e.translate(s.a.v[0],s.a.v[1],s.a.v[2]),i.translate(-s.a.v[0],-s.a.v[1],s.a.v[2]),i.scale(r?1/o:o,r?1/l:l),i.translate(s.a.v[0],s.a.v[1],s.a.v[2])},RepeaterModifier.prototype.init=function(t,e,i,s){for(this.elem=t,this.arr=e,this.pos=i,this.elemsData=s,this._currentCopies=0,this._elements=[],this._groups=[],this.frameId=-1,this.initDynamicPropertyContainer(t),this.initModifierProperties(t,e[i]);0<i;)this._elements.unshift(e[--i]);this.dynamicProperties.length?this.k=!0:this.getValue(!0)},RepeaterModifier.prototype.resetElements=function(t){for(var e=t.length,i=0;i<e;i+=1)t[i]._processed=!1,"gr"===t[i].ty&&this.resetElements(t[i].it)},RepeaterModifier.prototype.cloneElements=function(t){t=JSON.parse(JSON.stringify(t));return this.resetElements(t),t},RepeaterModifier.prototype.changeGroupRender=function(t,e){for(var i=t.length,s=0;s<i;s+=1)t[s]._render=e,"gr"===t[s].ty&&this.changeGroupRender(t[s].it,e)},RepeaterModifier.prototype.processShapes=function(t){var e,i,s,n,r,a=!1;if(this._mdf||t){var o,l=Math.ceil(this.c.v);if(this._groups.length<l){for(;this._groups.length<l;){var h={it:this.cloneElements(this._elements),ty:"gr"};h.it.push({a:{a:0,ix:1,k:[0,0]},nm:"Transform",o:{a:0,ix:7,k:100},p:{a:0,ix:2,k:[0,0]},r:{a:1,ix:6,k:[{s:0,e:0,t:0},{s:0,e:0,t:1}]},s:{a:0,ix:3,k:[100,100]},sa:{a:0,ix:5,k:0},sk:{a:0,ix:4,k:0},ty:"tr"}),this.arr.splice(0,0,h),this._groups.splice(0,0,h),this._currentCopies+=1}this.elem.reloadShapes(),a=!0}for(s=r=0;s<=this._groups.length-1;s+=1)this._groups[s]._render=o=r<l,this.changeGroupRender(this._groups[s].it,o),o||(0!==(o=(o=this.elemsData[s].it)[o.length-1]).transform.op.v?(o.transform.op._mdf=!0,o.transform.op.v=0):o.transform.op._mdf=!1),r+=1;this._currentCopies=l;var t=this.o.v,c=t%1,p=0<t?Math.floor(t):Math.ceil(t),u=this.pMatrix.props,d=this.rMatrix.props,f=this.sMatrix.props;this.pMatrix.reset(),this.rMatrix.reset(),this.sMatrix.reset(),this.tMatrix.reset(),this.matrix.reset();var m,g,y=0;if(0<t){for(;y<p;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),y+=1;c&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,c,!1),y+=c)}else if(t<0){for(;p<y;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!0),--y;c&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,-c,!0),y-=c)}for(s=1===this.data.m?0:this._currentCopies-1,n=1===this.data.m?1:-1,r=this._currentCopies;r;){if(g=(i=(e=this.elemsData[s].it)[e.length-1].transform.mProps.v.props).length,e[e.length-1].transform.mProps._mdf=!0,e[e.length-1].transform.op._mdf=!0,e[e.length-1].transform.op.v=1===this._currentCopies?this.so.v:this.so.v+(this.eo.v-this.so.v)*(s/(this._currentCopies-1)),0!==y){for((0!==s&&1===n||s!==this._currentCopies-1&&-1===n)&&this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),this.matrix.transform(d[0],d[1],d[2],d[3],d[4],d[5],d[6],d[7],d[8],d[9],d[10],d[11],d[12],d[13],d[14],d[15]),this.matrix.transform(f[0],f[1],f[2],f[3],f[4],f[5],f[6],f[7],f[8],f[9],f[10],f[11],f[12],f[13],f[14],f[15]),this.matrix.transform(u[0],u[1],u[2],u[3],u[4],u[5],u[6],u[7],u[8],u[9],u[10],u[11],u[12],u[13],u[14],u[15]),m=0;m<g;m+=1)i[m]=this.matrix.props[m];this.matrix.reset()}else for(this.matrix.reset(),m=0;m<g;m+=1)i[m]=this.matrix.props[m];y+=1,--r,s+=n}}else for(r=this._currentCopies,s=0,n=1;r;)i=(e=this.elemsData[s].it)[e.length-1].transform.mProps.v.props,e[e.length-1].transform.mProps._mdf=!1,e[e.length-1].transform.op._mdf=!1,--r,s+=n;return a},RepeaterModifier.prototype.addShape=function(){},extendPrototype([ShapeModifier],RoundCornersModifier),RoundCornersModifier.prototype.initModifierProperties=function(t,e){this.getValue=this.processKeys,this.rd=PropertyFactory.getProp(t,e.r,0,null,this),this._isAnimated=!!this.rd.effectsSequence.length},RoundCornersModifier.prototype.processPath=function(t,e){var i=shapePool.newElement();i.c=t.c;for(var s,n,r,a,o,l,h,c,p,u,d=t._length,f=0,m=0;m<d;m+=1)s=t.v[m],r=t.o[m],n=t.i[m],s[0]===r[0]&&s[1]===r[1]&&s[0]===n[0]&&s[1]===n[1]?0!==m&&m!==d-1||t.c?(a=0===m?t.v[d-1]:t.v[m-1],l=(o=Math.sqrt(Math.pow(s[0]-a[0],2)+Math.pow(s[1]-a[1],2)))?Math.min(o/2,e)/o:0,p=s[0]+(a[0]-s[0])*l,u=s[1]-(s[1]-a[1])*l,h=p-(p-s[0])*roundCorner,c=u-(u-s[1])*roundCorner,i.setTripleAt(p,u,h,c,p,u,f),f+=1,a=m===d-1?t.v[0]:t.v[m+1],l=(o=Math.sqrt(Math.pow(s[0]-a[0],2)+Math.pow(s[1]-a[1],2)))?Math.min(o/2,e)/o:0,h=s[0]+(a[0]-s[0])*l,c=s[1]+(a[1]-s[1])*l,p=h-(h-s[0])*roundCorner,u=c-(c-s[1])*roundCorner,i.setTripleAt(h,c,h,c,p,u,f)):i.setTripleAt(s[0],s[1],r[0],r[1],n[0],n[1],f):i.setTripleAt(t.v[m][0],t.v[m][1],t.o[m][0],t.o[m][1],t.i[m][0],t.i[m][1],f),f+=1;return i},RoundCornersModifier.prototype.processShapes=function(t){var e,i,s,n,r,a,o=this.shapes.length,l=this.rd.v;if(0!==l)for(i=0;i<o;i+=1){if(a=(r=this.shapes[i]).localShapeCollection,r.shape._mdf||this._mdf||t)for(a.releaseShapes(),r.shape._mdf=!0,e=r.shape.paths.shapes,n=r.shape.paths._length,s=0;s<n;s+=1)a.addShape(this.processPath(e[s],l));r.shape.paths=r.localShapeCollection}this.dynamicProperties.length||(this._mdf=!1)},PolynomialBezier.prototype.point=function(t){return[((this.a[0]*t+this.b[0])*t+this.c[0])*t+this.d[0],((this.a[1]*t+this.b[1])*t+this.c[1])*t+this.d[1]]},PolynomialBezier.prototype.derivative=function(t){return[(3*t*this.a[0]+2*this.b[0])*t+this.c[0],(3*t*this.a[1]+2*this.b[1])*t+this.c[1]]},PolynomialBezier.prototype.tangentAngle=function(t){t=this.derivative(t);return Math.atan2(t[1],t[0])},PolynomialBezier.prototype.normalAngle=function(t){t=this.derivative(t);return Math.atan2(t[0],t[1])},PolynomialBezier.prototype.inflectionPoints=function(){var t,e=this.a[1]*this.b[0]-this.a[0]*this.b[1];return floatZero(e)||(e=(t=-.5*(this.a[1]*this.c[0]-this.a[0]*this.c[1])/e)*t-1/3*(this.b[1]*this.c[0]-this.b[0]*this.c[1])/e)<0?[]:floatZero(e=Math.sqrt(e))?0<e&&e<1?[t]:[]:[t-e,t+e].filter(function(t){return 0<t&&t<1})},PolynomialBezier.prototype.split=function(t){var e,i,s,n;return t<=0?[singlePoint(this.points[0]),this]:1<=t?[this,singlePoint(this.points[this.points.length-1])]:(e=lerpPoint(this.points[0],this.points[1],t),n=lerpPoint(this.points[1],this.points[2],t),i=lerpPoint(this.points[2],this.points[3],t),s=lerpPoint(e,n,t),n=lerpPoint(n,i,t),t=lerpPoint(s,n,t),[new PolynomialBezier(this.points[0],e,s,t,!0),new PolynomialBezier(t,n,i,this.points[3],!0)])},PolynomialBezier.prototype.bounds=function(){return{x:extrema(this,0),y:extrema(this,1)}},PolynomialBezier.prototype.boundingBox=function(){var t=this.bounds();return{left:t.x.min,right:t.x.max,top:t.y.min,bottom:t.y.max,width:t.x.max-t.x.min,height:t.y.max-t.y.min,cx:(t.x.max+t.x.min)/2,cy:(t.y.max+t.y.min)/2}},PolynomialBezier.prototype.intersections=function(t,e,i){void 0===e&&(e=2),void 0===i&&(i=7);var s=[];return intersectsImpl(intersectData(this,0,1),intersectData(t,0,1),0,e,s,i),s},PolynomialBezier.shapeSegment=function(t,e){var i=(e+1)%t.length();return new PolynomialBezier(t.v[e],t.o[e],t.i[i],t.v[i],!0)},PolynomialBezier.shapeSegmentInverted=function(t,e){var i=(e+1)%t.length();return new PolynomialBezier(t.v[i],t.i[i],t.o[e],t.v[e],!0)},extendPrototype([ShapeModifier],ZigZagModifier),ZigZagModifier.prototype.initModifierProperties=function(t,e){this.getValue=this.processKeys,this.amplitude=PropertyFactory.getProp(t,e.s,0,null,this),this.frequency=PropertyFactory.getProp(t,e.r,0,null,this),this.pointsType=PropertyFactory.getProp(t,e.pt,0,null,this),this._isAnimated=0!==this.amplitude.effectsSequence.length||0!==this.frequency.effectsSequence.length||0!==this.pointsType.effectsSequence.length},ZigZagModifier.prototype.processPath=function(t,e,i,s){var n=t._length,r=shapePool.newElement();if(r.c=t.c,t.c||--n,0!==n){var a=-1,o=PolynomialBezier.shapeSegment(t,0);zigZagCorner(r,t,0,e,i,s,a);for(var l=0;l<n;l+=1)a=zigZagSegment(r,o,e,i,s,-a),o=l!==n-1||t.c?PolynomialBezier.shapeSegment(t,(l+1)%n):null,zigZagCorner(r,t,l+1,e,i,s,a)}return r},ZigZagModifier.prototype.processShapes=function(t){var e,i,s,n,r,a,o=this.shapes.length,l=this.amplitude.v,h=Math.max(0,Math.round(this.frequency.v)),c=this.pointsType.v;if(0!==l)for(i=0;i<o;i+=1){if(a=(r=this.shapes[i]).localShapeCollection,r.shape._mdf||this._mdf||t)for(a.releaseShapes(),r.shape._mdf=!0,e=r.shape.paths.shapes,n=r.shape.paths._length,s=0;s<n;s+=1)a.addShape(this.processPath(e[s],l,h,c));r.shape.paths=r.localShapeCollection}this.dynamicProperties.length||(this._mdf=!1)},extendPrototype([ShapeModifier],OffsetPathModifier),OffsetPathModifier.prototype.initModifierProperties=function(t,e){this.getValue=this.processKeys,this.amount=PropertyFactory.getProp(t,e.a,0,null,this),this.miterLimit=PropertyFactory.getProp(t,e.ml,0,null,this),this.lineJoin=e.lj,this._isAnimated=0!==this.amount.effectsSequence.length},OffsetPathModifier.prototype.processPath=function(t,e,i,s){var n=shapePool.newElement();n.c=t.c;for(var r,a,o=t.length(),l=(t.c||--o,[]),h=0;h<o;h+=1)a=PolynomialBezier.shapeSegment(t,h),l.push(offsetSegmentSplit(a,e));if(!t.c)for(h=o-1;0<=h;--h)a=PolynomialBezier.shapeSegmentInverted(t,h),l.push(offsetSegmentSplit(a,e));var l=pruneIntersections(l),c=null,p=null;for(h=0;h<l.length;h+=1){var u=l[h];for(p&&(c=joinLines(n,p,u[0],i,s)),p=u[u.length-1],r=0;r<u.length;r+=1)a=u[r],c&&pointEqual(a.points[0],c)?n.setXYAt(a.points[1][0],a.points[1][1],"o",n.length()-1):n.setTripleAt(a.points[0][0],a.points[0][1],a.points[1][0],a.points[1][1],a.points[0][0],a.points[0][1],n.length()),n.setTripleAt(a.points[3][0],a.points[3][1],a.points[3][0],a.points[3][1],a.points[2][0],a.points[2][1],n.length()),c=a.points[3]}return l.length&&joinLines(n,p,l[0][0],i,s),n},OffsetPathModifier.prototype.processShapes=function(t){var e,i,s,n,r,a,o=this.shapes.length,l=this.amount.v,h=this.miterLimit.v,c=this.lineJoin;if(0!==l)for(i=0;i<o;i+=1){if(a=(r=this.shapes[i]).localShapeCollection,r.shape._mdf||this._mdf||t)for(a.releaseShapes(),r.shape._mdf=!0,e=r.shape.paths.shapes,n=r.shape.paths._length,s=0;s<n;s+=1)a.addShape(this.processPath(e[s],l,c,h));r.shape.paths=r.localShapeCollection}this.dynamicProperties.length||(this._mdf=!1)};var FontManager=(()=>{var r={w:0,size:0,shapes:[],data:{shapes:[]}},e=(e=[]).concat([2304,2305,2306,2307,2362,2363,2364,2364,2366,2367,2368,2369,2370,2371,2372,2373,2374,2375,2376,2377,2378,2379,2380,2381,2382,2383,2387,2388,2389,2390,2391,2402,2403]),i=["d83cdffb","d83cdffc","d83cdffd","d83cdffe","d83cdfff"];function p(n,t){var e=createTag("span"),i=(e.setAttribute("aria-hidden",!0),e.style.fontFamily=t,createTag("span")),s=(i.innerText="giItT1WQy@!-/#",e.style.position="absolute",e.style.left="-10000px",e.style.top="-10000px",e.style.fontSize="300px",e.style.fontVariant="normal",e.style.fontStyle="normal",e.style.fontWeight="normal",e.style.letterSpacing="0",e.appendChild(i),document.body.appendChild(e),i.offsetWidth);return i.style.fontFamily=(()=>{for(var t=n.split(","),e=t.length,i=[],s=0;s<e;s+=1)"sans-serif"!==t[s]&&"monospace"!==t[s]&&i.push(t[s]);return i.join(",")})()+", "+t,{node:i,w:s,parent:e}}function u(t,e){var i,s=document.body&&e?"svg":"canvas",n=getFontProperties(t),r="svg"==s?((i=createNS("text")).style.fontSize="100px",i.setAttribute("font-family",t.fFamily),i.setAttribute("font-style",n.style),i.setAttribute("font-weight",n.weight),i.textContent="1",t.fClass?(i.style.fontFamily="inherit",i.setAttribute("class",t.fClass)):i.style.fontFamily=t.fFamily,e.appendChild(i),i):((e=new OffscreenCanvas(500,500).getContext("2d")).font=n.style+" "+n.weight+" 100px "+t.fFamily,e);return{measureText:function(t){return"svg"==s?(r.textContent=t,r.getComputedTextLength()):r.measureText(t).width}}}function n(t){var e=0,i=t.charCodeAt(0);return e=55296<=i&&i<=56319&&56320<=(t=t.charCodeAt(1))&&t<=57343?1024*(i-55296)+t-56320+65536:e}function s(t){t=n(t);return 127462<=t&&t<=127487}function t(){this.fonts=[],this.chars=null,this.typekitLoaded=0,this.isLoaded=!1,this._warned=!1,this.initTime=Date.now(),this.setIsLoadedBinded=this.setIsLoaded.bind(this),this.checkLoadedFontsBinded=this.checkLoadedFonts.bind(this)}return t.isModifier=function(t,e){t=t.toString(16)+e.toString(16);return-1!==i.indexOf(t)},t.isZeroWidthJoiner=function(t){return 8205===t},t.isFlagEmoji=function(t){return s(t.substr(0,2))&&s(t.substr(2,2))},t.isRegionalCode=s,t.isCombinedCharacter=function(t){return-1!==e.indexOf(t)},t.isRegionalFlag=function(t,e){var i;if(127988!==n(t.substr(e,2)))return!1;var s=0;for(e+=2;s<5;){if((i=n(t.substr(e,2)))<917601||917626<i)return!1;s+=1,e+=2}return 917631===n(t.substr(e,2))},t.isVariationSelector=function(t){return 65039===t},t.BLACK_FLAG_CODE_POINT=127988,t.prototype={addChars:function(t){if(t){this.chars||(this.chars=[]);for(var e,i,s=t.length,n=this.chars.length,r=0;r<s;r+=1){for(e=0,i=!1;e<n;)this.chars[e].style===t[r].style&&this.chars[e].fFamily===t[r].fFamily&&this.chars[e].ch===t[r].ch&&(i=!0),e+=1;i||(this.chars.push(t[r]),n+=1)}}},addFonts:function(t,e){if(t)if(this.chars)this.isLoaded=!0,this.fonts=t.list;else if(document.body){for(var i=t.list,s=i.length,n=s,r=0;r<s;r+=1){var a,o,l,h,c=!0;if(i[r].loaded=!1,i[r].monoCase=p(i[r].fFamily,"monospace"),i[r].sansCase=p(i[r].fFamily,"sans-serif"),i[r].fPath){if("p"===i[r].fOrigin||3===i[r].origin)(c=!(0<(a=document.querySelectorAll('style[f-forigin="p"][f-family="'+i[r].fFamily+'"], style[f-origin="3"][f-family="'+i[r].fFamily+'"]')).length)&&c)&&((l=createTag("style")).setAttribute("f-forigin",i[r].fOrigin),l.setAttribute("f-origin",i[r].origin),l.setAttribute("f-family",i[r].fFamily),l.type="text/css",l.innerText="@font-face {font-family: "+i[r].fFamily+"; font-style: normal; src: url('"+i[r].fPath+"');}",e.appendChild(l));else if("g"===i[r].fOrigin||1===i[r].origin){for(a=document.querySelectorAll('link[f-forigin="g"], link[f-origin="1"]'),o=0;o<a.length;o+=1)-1!==a[o].href.indexOf(i[r].fPath)&&(c=!1);c&&((l=createTag("link")).setAttribute("f-forigin",i[r].fOrigin),l.setAttribute("f-origin",i[r].origin),l.type="text/css",l.rel="stylesheet",l.href=i[r].fPath,document.body.appendChild(l))}else if("t"===i[r].fOrigin||2===i[r].origin){for(a=document.querySelectorAll('script[f-forigin="t"], script[f-origin="2"]'),o=0;o<a.length;o+=1)i[r].fPath===a[o].src&&(c=!1);c&&((h=createTag("link")).setAttribute("f-forigin",i[r].fOrigin),h.setAttribute("f-origin",i[r].origin),h.setAttribute("rel","stylesheet"),h.setAttribute("href",i[r].fPath),e.appendChild(h))}}else i[r].loaded=!0,--n;i[r].helper=u(i[r],e),i[r].cache={},this.fonts.push(i[r])}0===n?this.isLoaded=!0:setTimeout(this.checkLoadedFonts.bind(this),100)}else this.isLoaded=!0,t.list.forEach(function(t){t.helper=u(t),t.cache={}}),this.fonts=t.list;else this.isLoaded=!0},getCharData:function(t,e,i){for(var s=0,n=this.chars.length;s<n;){if(this.chars[s].ch===t&&this.chars[s].style===e&&this.chars[s].fFamily===i)return this.chars[s];s+=1}return("string"==typeof t&&13!==t.charCodeAt(0)||!t)&&console&&console.warn&&!this._warned&&(this._warned=!0,console.warn("Missing character from exported characters list: ",t,e,i)),r},getFontByName:function(t){for(var e=0,i=this.fonts.length;e<i;){if(this.fonts[e].fName===t)return this.fonts[e];e+=1}return this.fonts[0]},measureText:function(t,e,i){var s,n,r,e=this.getFontByName(e),a=t;return e.cache[a]||(s=e.helper," "===t?(n=s.measureText("|"+t+"|"),r=s.measureText("||"),e.cache[a]=(n-r)/100):e.cache[a]=s.measureText(t)/100),e.cache[a]*i},checkLoadedFonts:function(){for(var t,e,i=this.fonts.length,s=i,n=0;n<i;n+=1)this.fonts[n].loaded?--s:"n"===this.fonts[n].fOrigin||0===this.fonts[n].origin?this.fonts[n].loaded=!0:(t=this.fonts[n].monoCase.node,e=this.fonts[n].monoCase.w,t.offsetWidth===e&&(t=this.fonts[n].sansCase.node,e=this.fonts[n].sansCase.w,t.offsetWidth===e)||(--s,this.fonts[n].loaded=!0),this.fonts[n].loaded&&(this.fonts[n].sansCase.parent.parentNode.removeChild(this.fonts[n].sansCase.parent),this.fonts[n].monoCase.parent.parentNode.removeChild(this.fonts[n].monoCase.parent)));0!==s&&Date.now()-this.initTime<5e3?setTimeout(this.checkLoadedFontsBinded,20):setTimeout(this.setIsLoadedBinded,10)},setIsLoaded:function(){this.isLoaded=!0}},t})();function SlotManager(t){this.animationData=t}function slotFactory(t){return new SlotManager(t)}function RenderableElement(){}SlotManager.prototype.getProp=function(t){return this.animationData.slots&&this.animationData.slots[t.sid]?Object.assign(t,this.animationData.slots[t.sid].p):t},RenderableElement.prototype={initRenderable:function(){this.isInRange=!1,this.hidden=!1,this.isTransparent=!1,this.renderableComponents=[]},addRenderableComponent:function(t){-1===this.renderableComponents.indexOf(t)&&this.renderableComponents.push(t)},removeRenderableComponent:function(t){-1!==this.renderableComponents.indexOf(t)&&this.renderableComponents.splice(this.renderableComponents.indexOf(t),1)},prepareRenderableFrame:function(t){this.checkLayerLimits(t)},checkTransparency:function(){this.finalTransform.mProp.o.v<=0?!this.isTransparent&&this.globalData.renderConfig.hideOnTransparent&&(this.isTransparent=!0,this.hide()):this.isTransparent&&(this.isTransparent=!1,this.show())},checkLayerLimits:function(t){this.data.ip-this.data.st<=t&&this.data.op-this.data.st>t?!0!==this.isInRange&&(this.globalData._mdf=!0,this._mdf=!0,this.isInRange=!0,this.show()):!1!==this.isInRange&&(this.globalData._mdf=!0,this.isInRange=!1,this.hide())},renderRenderable:function(){for(var t=this.renderableComponents.length,e=0;e<t;e+=1)this.renderableComponents[e].renderFrame(this._isFirstFrame)},sourceRectAtTime:function(){return{top:0,left:0,width:100,height:100}},getLayerSize:function(){return 5===this.data.ty?{w:this.data.textData.width,h:this.data.textData.height}:{w:this.data.width,h:this.data.height}}};var getBlendMode=(blendModeEnums={0:"source-over",1:"multiply",2:"screen",3:"overlay",4:"darken",5:"lighten",6:"color-dodge",7:"color-burn",8:"hard-light",9:"soft-light",10:"difference",11:"exclusion",12:"hue",13:"saturation",14:"color",15:"luminosity"},function(t){return blendModeEnums[t]||""}),blendModeEnums;function SliderEffect(t,e,i){this.p=PropertyFactory.getProp(e,t.v,0,0,i)}function AngleEffect(t,e,i){this.p=PropertyFactory.getProp(e,t.v,0,0,i)}function ColorEffect(t,e,i){this.p=PropertyFactory.getProp(e,t.v,1,0,i)}function PointEffect(t,e,i){this.p=PropertyFactory.getProp(e,t.v,1,0,i)}function LayerIndexEffect(t,e,i){this.p=PropertyFactory.getProp(e,t.v,0,0,i)}function MaskIndexEffect(t,e,i){this.p=PropertyFactory.getProp(e,t.v,0,0,i)}function CheckboxEffect(t,e,i){this.p=PropertyFactory.getProp(e,t.v,0,0,i)}function NoValueEffect(){this.p={}}function EffectsManager(t,e){var i=t.ef||[];this.effectElements=[];for(var s,n=i.length,r=0;r<n;r+=1)s=new GroupEffect(i[r],e),this.effectElements.push(s)}function GroupEffect(t,e){this.init(t,e)}function BaseElement(){}function FrameElement(){}function FootageElement(t,e,i){this.initFrame(),this.initRenderable(),this.assetData=e.getAssetData(t.refId),this.footageData=e.imageLoader.getAsset(this.assetData),this.initBaseData(t,e,i)}function AudioElement(t,e,i){this.initFrame(),this.initRenderable(),this.assetData=e.getAssetData(t.refId),this.initBaseData(t,e,i),this._isPlaying=!1,this._canPlay=!1;i=this.globalData.getAssetsPath(this.assetData);this.audio=this.globalData.audioController.createAudio(i),this._currentTime=0,this.globalData.audioController.addAudio(this),this._volumeMultiplier=1,this._volume=1,this._previousVolume=null,this.tm=t.tm?PropertyFactory.getProp(this,t.tm,0,e.frameRate,this):{_placeholder:!0},this.lv=PropertyFactory.getProp(this,t.au&&t.au.lv?t.au.lv:{k:[100]},1,.01,this)}function BaseRenderer(){}extendPrototype([DynamicPropertyContainer],GroupEffect),GroupEffect.prototype.getValue=GroupEffect.prototype.iterateDynamicProperties,GroupEffect.prototype.init=function(t,e){this.data=t,this.effectElements=[],this.initDynamicPropertyContainer(e);for(var i,s=this.data.ef.length,n=this.data.ef,r=0;r<s;r+=1){switch(i=null,n[r].ty){case 0:i=new SliderEffect(n[r],e,this);break;case 1:i=new AngleEffect(n[r],e,this);break;case 2:i=new ColorEffect(n[r],e,this);break;case 3:i=new PointEffect(n[r],e,this);break;case 4:case 7:i=new CheckboxEffect(n[r],e,this);break;case 10:i=new LayerIndexEffect(n[r],e,this);break;case 11:i=new MaskIndexEffect(n[r],e,this);break;case 5:i=new EffectsManager(n[r],e,this);break;default:i=new NoValueEffect(n[r],e,this)}i&&this.effectElements.push(i)}},BaseElement.prototype={checkMasks:function(){if(this.data.hasMask)for(var t=0,e=this.data.masksProperties.length;t<e;){if("n"!==this.data.masksProperties[t].mode&&!1!==this.data.masksProperties[t].cl)return!0;t+=1}return!1},initExpressions:function(){var t,e,i,s,n=getExpressionInterfaces();n&&(s=n("layer"),t=n("effects"),e=n("shape"),i=n("text"),n=n("comp"),this.layerInterface=s(this),this.data.hasMask&&this.maskManager&&this.layerInterface.registerMaskInterface(this.maskManager),s=t.createEffectsInterface(this,this.layerInterface),this.layerInterface.registerEffectsInterface(s),0===this.data.ty||this.data.xt?this.compInterface=n(this):4===this.data.ty?(this.layerInterface.shapeInterface=e(this.shapesData,this.itemsData,this.layerInterface),this.layerInterface.content=this.layerInterface.shapeInterface):5===this.data.ty&&(this.layerInterface.textInterface=i(this),this.layerInterface.text=this.layerInterface.textInterface))},setBlendMode:function(){var t=getBlendMode(this.data.bm);(this.baseElement||this.layerElement).style["mix-blend-mode"]=t},initBaseData:function(t,e,i){this.globalData=e,this.comp=i,this.data=t,this.layerId=createElementID(),this.data.sr||(this.data.sr=1),this.effectsManager=new EffectsManager(this.data,this,this.dynamicProperties)},getType:function(){return this.type},sourceRectAtTime:function(){}},FrameElement.prototype={initFrame:function(){this._isFirstFrame=!1,this.dynamicProperties=[],this._mdf=!1},prepareProperties:function(t,e){for(var i=this.dynamicProperties.length,s=0;s<i;s+=1)(e||this._isParent&&"transform"===this.dynamicProperties[s].propType)&&(this.dynamicProperties[s].getValue(),this.dynamicProperties[s]._mdf)&&(this.globalData._mdf=!0,this._mdf=!0)},addDynamicProperty:function(t){-1===this.dynamicProperties.indexOf(t)&&this.dynamicProperties.push(t)}},FootageElement.prototype.prepareFrame=function(){},extendPrototype([RenderableElement,BaseElement,FrameElement],FootageElement),FootageElement.prototype.getBaseElement=function(){return null},FootageElement.prototype.renderFrame=function(){},FootageElement.prototype.destroy=function(){},FootageElement.prototype.initExpressions=function(){var t=getExpressionInterfaces();t&&(t=t("footage"),this.layerInterface=t(this))},FootageElement.prototype.getFootageData=function(){return this.footageData},AudioElement.prototype.prepareFrame=function(t){this.prepareRenderableFrame(t,!0),this.prepareProperties(t,!0),this.tm._placeholder?this._currentTime=t/this.data.sr:(t=this.tm.v,this._currentTime=t),this._volume=this.lv.v[0];t=this._volume*this._volumeMultiplier;this._previousVolume!==t&&(this._previousVolume=t,this.audio.volume(t))},extendPrototype([RenderableElement,BaseElement,FrameElement],AudioElement),AudioElement.prototype.renderFrame=function(){this.isInRange&&this._canPlay&&(this._isPlaying?(!this.audio.playing()||.1<Math.abs(this._currentTime/this.globalData.frameRate-this.audio.seek()))&&this.audio.seek(this._currentTime/this.globalData.frameRate):(this.audio.play(),this.audio.seek(this._currentTime/this.globalData.frameRate),this._isPlaying=!0))},AudioElement.prototype.show=function(){},AudioElement.prototype.hide=function(){this.audio.pause(),this._isPlaying=!1},AudioElement.prototype.pause=function(){this.audio.pause(),this._isPlaying=!1,this._canPlay=!1},AudioElement.prototype.resume=function(){this._canPlay=!0},AudioElement.prototype.setRate=function(t){this.audio.rate(t)},AudioElement.prototype.volume=function(t){this._volumeMultiplier=t,this._previousVolume=t*this._volume,this.audio.volume(this._previousVolume)},AudioElement.prototype.getBaseElement=function(){return null},AudioElement.prototype.destroy=function(){},AudioElement.prototype.sourceRectAtTime=function(){},AudioElement.prototype.initExpressions=function(){},BaseRenderer.prototype.checkLayers=function(t){var e,i,s=this.layers.length;for(this.completeLayers=!0,e=s-1;0<=e;--e)this.elements[e]||(i=this.layers[e]).ip-i.st<=t-this.layers[e].st&&i.op-i.st>t-this.layers[e].st&&this.buildItem(e),this.completeLayers=!!this.elements[e]&&this.completeLayers;this.checkPendingElements()},BaseRenderer.prototype.createItem=function(t){switch(t.ty){case 2:return this.createImage(t);case 0:return this.createComp(t);case 1:return this.createSolid(t);case 3:default:return this.createNull(t);case 4:return this.createShape(t);case 5:return this.createText(t);case 6:return this.createAudio(t);case 13:return this.createCamera(t);case 15:return this.createFootage(t)}},BaseRenderer.prototype.createCamera=function(){throw new Error("You're using a 3d camera. Try the html renderer.")},BaseRenderer.prototype.createAudio=function(t){return new AudioElement(t,this.globalData,this)},BaseRenderer.prototype.createFootage=function(t){return new FootageElement(t,this.globalData,this)},BaseRenderer.prototype.buildAllItems=function(){for(var t=this.layers.length,e=0;e<t;e+=1)this.buildItem(e);this.checkPendingElements()},BaseRenderer.prototype.includeLayers=function(t){this.completeLayers=!1;for(var e,i=t.length,s=this.layers.length,n=0;n<i;n+=1)for(e=0;e<s;){if(this.layers[e].id===t[n].id){this.layers[e]=t[n];break}e+=1}},BaseRenderer.prototype.setProjectInterface=function(t){this.globalData.projectInterface=t},BaseRenderer.prototype.initItems=function(){this.globalData.progressiveLoad||this.buildAllItems()},BaseRenderer.prototype.buildElementParenting=function(t,e,i){for(var s=this.elements,n=this.layers,r=0,a=n.length;r<a;)n[r].ind==e&&(s[r]&&!0!==s[r]?(i.push(s[r]),s[r].setAsParent(),void 0!==n[r].parent?this.buildElementParenting(t,n[r].parent,i):t.setHierarchy(i)):(this.buildItem(r),this.addPendingElement(t))),r+=1},BaseRenderer.prototype.addPendingElement=function(t){this.pendingElements.push(t)},BaseRenderer.prototype.searchExtraCompositions=function(t){for(var e,i=t.length,s=0;s<i;s+=1)t[s].xt&&((e=this.createComp(t[s])).initExpressions(),this.globalData.projectInterface.registerComposition(e))},BaseRenderer.prototype.getElementById=function(t){for(var e=this.elements.length,i=0;i<e;i+=1)if(this.elements[i].data.ind===t)return this.elements[i];return null},BaseRenderer.prototype.getElementByPath=function(t){var e,i=t.shift();if("number"==typeof i)e=this.elements[i];else for(var s=this.elements.length,n=0;n<s;n+=1)if(this.elements[n].data.nm===i){e=this.elements[n];break}return 0===t.length?e:e.getElementByPath(t)},BaseRenderer.prototype.setupGlobalData=function(t,e){this.globalData.fontManager=new FontManager,this.globalData.slotManager=slotFactory(t),this.globalData.fontManager.addChars(t.chars),this.globalData.fontManager.addFonts(t.fonts,e),this.globalData.getAssetData=this.animationItem.getAssetData.bind(this.animationItem),this.globalData.getAssetsPath=this.animationItem.getAssetsPath.bind(this.animationItem),this.globalData.imageLoader=this.animationItem.imagePreloader,this.globalData.audioController=this.animationItem.audioController,this.globalData.frameId=0,this.globalData.frameRate=t.fr,this.globalData.nm=t.nm,this.globalData.compSize={w:t.w,h:t.h}};var effectTypes={TRANSFORM_EFFECT:"transformEFfect"};function TransformElement(){}function MaskElement(t,e,i){this.data=t,this.element=e,this.globalData=i,this.storedData=[],this.masksProperties=this.data.masksProperties||[],this.maskElement=null;var s,n=this.globalData.defs,r=this.masksProperties?this.masksProperties.length:0;this.viewData=createSizedArray(r),this.solidPath="";for(var a,o,l,h,c=this.masksProperties,p=0,u=[],d=createElementID(),f="clipPath",m="clip-path",g=0;g<r;g+=1)if(("a"!==c[g].mode&&"n"!==c[g].mode||c[g].inv||100!==c[g].o.k||c[g].o.x)&&(m=f="mask"),"s"!==c[g].mode&&"i"!==c[g].mode||0!==p?a=null:((a=createNS("rect")).setAttribute("fill","#ffffff"),a.setAttribute("width",this.element.comp.data.w||0),a.setAttribute("height",this.element.comp.data.h||0),u.push(a)),s=createNS("path"),"n"===c[g].mode)this.viewData[g]={op:PropertyFactory.getProp(this.element,c[g].o,0,.01,this.element),prop:ShapePropertyFactory.getShapeProp(this.element,c[g],3),elem:s,lastPath:""},n.appendChild(s);else{if(p+=1,s.setAttribute("fill","s"===c[g].mode?"#000000":"#ffffff"),s.setAttribute("clip-rule","nonzero"),0!==c[g].x.k?(m=f="mask",l=PropertyFactory.getProp(this.element,c[g].x,0,null,this.element),h=createElementID(),(_=createNS("filter")).setAttribute("id",h),(o=createNS("feMorphology")).setAttribute("operator","erode"),o.setAttribute("in","SourceGraphic"),o.setAttribute("radius","0"),_.appendChild(o),n.appendChild(_),s.setAttribute("stroke","s"===c[g].mode?"#000000":"#ffffff")):l=o=null,this.storedData[g]={elem:s,x:l,expan:o,lastPath:"",lastOperator:"",filterId:h,lastRadius:0},"i"===c[g].mode){for(var y=u.length,v=createNS("g"),b=0;b<y;b+=1)v.appendChild(u[b]);var _=createNS("mask");_.setAttribute("mask-type","alpha"),_.setAttribute("id",d+"_"+p),_.appendChild(s),n.appendChild(_),v.setAttribute("mask","url("+getLocationHref()+"#"+d+"_"+p+")"),u.length=0,u.push(v)}else u.push(s);c[g].inv&&!this.solidPath&&(this.solidPath=this.createLayerSolidPath()),this.viewData[g]={elem:s,lastPath:"",op:PropertyFactory.getProp(this.element,c[g].o,0,.01,this.element),prop:ShapePropertyFactory.getShapeProp(this.element,c[g],3),invRect:a},this.viewData[g].prop.k||this.drawPath(c[g],this.viewData[g].prop.v,this.viewData[g])}for(this.maskElement=createNS(f),r=u.length,g=0;g<r;g+=1)this.maskElement.appendChild(u[g]);0<p&&(this.maskElement.setAttribute("id",d),this.element.maskedElement.setAttribute(m,"url("+getLocationHref()+"#"+d+")"),n.appendChild(this.maskElement)),this.viewData.length&&this.element.addRenderableComponent(this)}TransformElement.prototype={initTransform:function(){var t=new Matrix;this.finalTransform={mProp:this.data.ks?TransformPropertyFactory.getTransformProperty(this,this.data.ks,this):{o:0},_matMdf:!1,_localMatMdf:!1,_opMdf:!1,mat:t,localMat:t,localOpacity:1},this.data.ao&&(this.finalTransform.mProp.autoOriented=!0),this.data.ty},renderTransform:function(){if(this.finalTransform._opMdf=this.finalTransform.mProp.o._mdf||this._isFirstFrame,this.finalTransform._matMdf=this.finalTransform.mProp._mdf||this._isFirstFrame,this.hierarchy){var t,e=this.finalTransform.mat,i=0,s=this.hierarchy.length;if(!this.finalTransform._matMdf)for(;i<s;){if(this.hierarchy[i].finalTransform.mProp._mdf){this.finalTransform._matMdf=!0;break}i+=1}if(this.finalTransform._matMdf)for(t=this.finalTransform.mProp.v.props,e.cloneFromProps(t),i=0;i<s;i+=1)e.multiply(this.hierarchy[i].finalTransform.mProp.v)}this.localTransforms&&!this.finalTransform._matMdf||(this.finalTransform._localMatMdf=this.finalTransform._matMdf),this.finalTransform._opMdf&&(this.finalTransform.localOpacity=this.finalTransform.mProp.o.v)},renderLocalTransform:function(){if(this.localTransforms){var t=0,e=this.localTransforms.length;if(this.finalTransform._localMatMdf=this.finalTransform._matMdf,!this.finalTransform._localMatMdf||!this.finalTransform._opMdf)for(;t<e;)this.localTransforms[t]._mdf&&(this.finalTransform._localMatMdf=!0),this.localTransforms[t]._opMdf&&!this.finalTransform._opMdf&&(this.finalTransform.localOpacity=this.finalTransform.mProp.o.v,this.finalTransform._opMdf=!0),t+=1;if(this.finalTransform._localMatMdf){var i=this.finalTransform.localMat;for(this.localTransforms[0].matrix.clone(i),t=1;t<e;t+=1){var s=this.localTransforms[t].matrix;i.multiply(s)}i.multiply(this.finalTransform.mat)}if(this.finalTransform._opMdf){for(var n=this.finalTransform.localOpacity,t=0;t<e;t+=1)n*=.01*this.localTransforms[t].opacity;this.finalTransform.localOpacity=n}}},searchEffectTransforms:function(){if(this.renderableEffectsManager){var t=this.renderableEffectsManager.getEffects(effectTypes.TRANSFORM_EFFECT);if(t.length){this.localTransforms=[],this.finalTransform.localMat=new Matrix;for(var e=0,i=t.length,e=0;e<i;e+=1)this.localTransforms.push(t[e])}}},globalToLocal:function(t){var e=[];e.push(this.finalTransform);for(var i=!0,s=this.comp;i;)s.finalTransform?(s.data.hasMask&&e.splice(0,0,s.finalTransform),s=s.comp):i=!1;for(var n,r=e.length,a=0;a<r;a+=1)n=e[a].mat.applyToPointArray(0,0,0),t=[t[0]-n[0],t[1]-n[1],0];return t},mHelper:new Matrix},MaskElement.prototype.getMaskProperty=function(t){return this.viewData[t].prop},MaskElement.prototype.renderFrame=function(t){for(var e,i=this.element.finalTransform.mat,s=this.masksProperties.length,n=0;n<s;n+=1)(this.viewData[n].prop._mdf||t)&&this.drawPath(this.masksProperties[n],this.viewData[n].prop.v,this.viewData[n]),(this.viewData[n].op._mdf||t)&&this.viewData[n].elem.setAttribute("fill-opacity",this.viewData[n].op.v),"n"!==this.masksProperties[n].mode&&(this.viewData[n].invRect&&(this.element.finalTransform.mProp._mdf||t)&&this.viewData[n].invRect.setAttribute("transform",i.getInverseMatrix().to2dCSS()),this.storedData[n].x)&&(this.storedData[n].x._mdf||t)&&(e=this.storedData[n].expan,this.storedData[n].x.v<0?("erode"!==this.storedData[n].lastOperator&&(this.storedData[n].lastOperator="erode",this.storedData[n].elem.setAttribute("filter","url("+getLocationHref()+"#"+this.storedData[n].filterId+")")),e.setAttribute("radius",-this.storedData[n].x.v)):("dilate"!==this.storedData[n].lastOperator&&(this.storedData[n].lastOperator="dilate",this.storedData[n].elem.setAttribute("filter",null)),this.storedData[n].elem.setAttribute("stroke-width",2*this.storedData[n].x.v)))},MaskElement.prototype.getMaskelement=function(){return this.maskElement},MaskElement.prototype.createLayerSolidPath=function(){var t="M0,0 ";return(t=(t=(t+=" h"+this.globalData.compSize.w)+(" v"+this.globalData.compSize.h))+(" h-"+this.globalData.compSize.w))+(" v-"+this.globalData.compSize.h)+" "},MaskElement.prototype.drawPath=function(t,e,i){for(var s,n=" M"+e.v[0][0]+","+e.v[0][1],r=e._length,a=1;a<r;a+=1)n+=" C"+e.o[a-1][0]+","+e.o[a-1][1]+" "+e.i[a][0]+","+e.i[a][1]+" "+e.v[a][0]+","+e.v[a][1];e.c&&1<r&&(n+=" C"+e.o[a-1][0]+","+e.o[a-1][1]+" "+e.i[0][0]+","+e.i[0][1]+" "+e.v[0][0]+","+e.v[0][1]),i.lastPath!==n&&(s="",i.elem&&(e.c&&(s=t.inv?this.solidPath+n:n),i.elem.setAttribute("d",s)),i.lastPath=n)},MaskElement.prototype.destroy=function(){this.element=null,this.globalData=null,this.maskElement=null,this.data=null,this.masksProperties=null};var filtersFactory=(()=>{var t={createFilter:function(t,e){var i=createNS("filter");return i.setAttribute("id",t),!0!==e&&(i.setAttribute("filterUnits","objectBoundingBox"),i.setAttribute("x","0%"),i.setAttribute("y","0%"),i.setAttribute("width","100%"),i.setAttribute("height","100%")),i},createAlphaToLuminanceFilter:function(){var t=createNS("feColorMatrix");return t.setAttribute("type","matrix"),t.setAttribute("color-interpolation-filters","sRGB"),t.setAttribute("values","0 0 0 1 0  0 0 0 1 0  0 0 0 1 0  0 0 0 1 1"),t}};return t})(),featureSupport=(()=>{var t={maskType:!0,svgLumaHidden:!0,offscreenCanvas:"undefined"!=typeof OffscreenCanvas};return(/MSIE 10/i.test(navigator.userAgent)||/MSIE 9/i.test(navigator.userAgent)||/rv:11.0/i.test(navigator.userAgent)||/Edge\/\d./i.test(navigator.userAgent))&&(t.maskType=!1),/firefox/i.test(navigator.userAgent)&&(t.svgLumaHidden=!1),t})(),registeredEffects$1={},idPrefix="filter_result_";function SVGEffects(t){var e,i="SourceGraphic",s=t.data.ef?t.data.ef.length:0,n=createElementID(),r=filtersFactory.createFilter(n,!0),a=0;for(this.filters=[],e=0;e<s;e+=1){var o=null,l=t.data.ef[e].ty;registeredEffects$1[l]&&(o=new registeredEffects$1[l].effect(r,t.effectsManager.effectElements[e],t,idPrefix+a,i),i=idPrefix+a,registeredEffects$1[l].countsAsEffect)&&(a+=1),o&&this.filters.push(o)}a&&(t.globalData.defs.appendChild(r),t.layerElement.setAttribute("filter","url("+getLocationHref()+"#"+n+")")),this.filters.length&&t.addRenderableComponent(this)}function registerEffect$1(t,e,i){registeredEffects$1[t]={effect:e,countsAsEffect:i}}function SVGBaseElement(){}function HierarchyElement(){}function RenderableDOMElement(){}function IImageElement(t,e,i){this.assetData=e.getAssetData(t.refId),this.assetData&&this.assetData.sid&&(this.assetData=e.slotManager.getProp(this.assetData)),this.initElement(t,e,i),this.sourceRect={top:0,left:0,width:this.assetData.w,height:this.assetData.h}}function ProcessedElement(t,e){this.elem=t,this.pos=e}function IShapeElement(){}SVGEffects.prototype.renderFrame=function(t){for(var e=this.filters.length,i=0;i<e;i+=1)this.filters[i].renderFrame(t)},SVGEffects.prototype.getEffects=function(t){for(var e=this.filters.length,i=[],s=0;s<e;s+=1)this.filters[s].type===t&&i.push(this.filters[s]);return i},SVGBaseElement.prototype={initRendererElement:function(){this.layerElement=createNS("g")},createContainerElements:function(){this.matteElement=createNS("g"),this.transformedElement=this.layerElement,this.maskedElement=this.layerElement,this._sizeChanged=!1;var t,e,i,s=null;this.data.td?(this.matteMasks={},(t=createNS("g")).setAttribute("id",this.layerId),t.appendChild(this.layerElement),this.globalData.defs.appendChild(s=t)):this.data.tt?(this.matteElement.appendChild(this.layerElement),s=this.matteElement,this.baseElement=this.matteElement):this.baseElement=this.layerElement,this.data.ln&&this.layerElement.setAttribute("id",this.data.ln),this.data.cl&&this.layerElement.setAttribute("class",this.data.cl),0!==this.data.ty||this.data.hd||(t=createNS("clipPath"),(i=createNS("path")).setAttribute("d","M0,0 L"+this.data.w+",0 L"+this.data.w+","+this.data.h+" L0,"+this.data.h+"z"),e=createElementID(),t.setAttribute("id",e),t.appendChild(i),this.globalData.defs.appendChild(t),this.checkMasks()?((i=createNS("g")).setAttribute("clip-path","url("+getLocationHref()+"#"+e+")"),i.appendChild(this.layerElement),this.transformedElement=i,s?s.appendChild(this.transformedElement):this.baseElement=this.transformedElement):this.layerElement.setAttribute("clip-path","url("+getLocationHref()+"#"+e+")")),0!==this.data.bm&&this.setBlendMode()},renderElement:function(){this.finalTransform._localMatMdf&&this.transformedElement.setAttribute("transform",this.finalTransform.localMat.to2dCSS()),this.finalTransform._opMdf&&this.transformedElement.setAttribute("opacity",this.finalTransform.localOpacity)},destroyBaseElement:function(){this.layerElement=null,this.matteElement=null,this.maskManager.destroy()},getBaseElement:function(){return this.data.hd?null:this.baseElement},createRenderableComponents:function(){this.maskManager=new MaskElement(this.data,this,this.globalData),this.renderableEffectsManager=new SVGEffects(this),this.searchEffectTransforms()},getMatte:function(t){var e,i,s,n,r,a,o,l,h;return this.matteMasks||(this.matteMasks={}),this.matteMasks[t]||(r=this.layerId+"_"+t,1===t||3===t?((a=createNS("mask")).setAttribute("id",r),a.setAttribute("mask-type",3===t?"luminance":"alpha"),(s=createNS("use")).setAttributeNS("http://www.w3.org/1999/xlink","href","#"+this.layerId),a.appendChild(s),this.globalData.defs.appendChild(a),featureSupport.maskType||1!==t||(a.setAttribute("mask-type","luminance"),e=createElementID(),i=filtersFactory.createFilter(e),this.globalData.defs.appendChild(i),i.appendChild(filtersFactory.createAlphaToLuminanceFilter()),(n=createNS("g")).appendChild(s),a.appendChild(n),n.setAttribute("filter","url("+getLocationHref()+"#"+e+")"))):2===t&&((a=createNS("mask")).setAttribute("id",r),a.setAttribute("mask-type","alpha"),o=createNS("g"),a.appendChild(o),e=createElementID(),i=filtersFactory.createFilter(e),(h=createNS("feComponentTransfer")).setAttribute("in","SourceGraphic"),i.appendChild(h),(l=createNS("feFuncA")).setAttribute("type","table"),l.setAttribute("tableValues","1.0 0.0"),h.appendChild(l),this.globalData.defs.appendChild(i),(h=createNS("rect")).setAttribute("width",this.comp.data.w),h.setAttribute("height",this.comp.data.h),h.setAttribute("x","0"),h.setAttribute("y","0"),h.setAttribute("fill","#ffffff"),h.setAttribute("opacity","0"),o.setAttribute("filter","url("+getLocationHref()+"#"+e+")"),o.appendChild(h),(s=createNS("use")).setAttributeNS("http://www.w3.org/1999/xlink","href","#"+this.layerId),o.appendChild(s),featureSupport.maskType||(a.setAttribute("mask-type","luminance"),i.appendChild(filtersFactory.createAlphaToLuminanceFilter()),n=createNS("g"),o.appendChild(h),n.appendChild(this.layerElement),o.appendChild(n)),this.globalData.defs.appendChild(a)),this.matteMasks[t]=r),this.matteMasks[t]},setMatte:function(t){this.matteElement&&this.matteElement.setAttribute("mask","url("+getLocationHref()+"#"+t+")")}},HierarchyElement.prototype={initHierarchy:function(){this.hierarchy=[],this._isParent=!1,this.checkParenting()},setHierarchy:function(t){this.hierarchy=t},setAsParent:function(){this._isParent=!0},checkParenting:function(){void 0!==this.data.parent&&this.comp.buildElementParenting(this,this.data.parent,[])}},extendPrototype([RenderableElement,createProxyFunction({initElement:function(t,e,i){this.initFrame(),this.initBaseData(t,e,i),this.initTransform(t,e,i),this.initHierarchy(),this.initRenderable(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),this.createContent(),this.hide()},hide:function(){this.hidden||this.isInRange&&!this.isTransparent||((this.baseElement||this.layerElement).style.display="none",this.hidden=!0)},show:function(){this.isInRange&&!this.isTransparent&&(this.data.hd||((this.baseElement||this.layerElement).style.display="block"),this.hidden=!1,this._isFirstFrame=!0)},renderFrame:function(){this.data.hd||this.hidden||(this.renderTransform(),this.renderRenderable(),this.renderLocalTransform(),this.renderElement(),this.renderInnerContent(),this._isFirstFrame&&(this._isFirstFrame=!1))},renderInnerContent:function(){},prepareFrame:function(t){this._mdf=!1,this.prepareRenderableFrame(t),this.prepareProperties(t,this.isInRange),this.checkTransparency()},destroy:function(){this.innerElem=null,this.destroyBaseElement()}})],RenderableDOMElement),extendPrototype([BaseElement,TransformElement,SVGBaseElement,HierarchyElement,FrameElement,RenderableDOMElement],IImageElement),IImageElement.prototype.createContent=function(){var t=this.globalData.getAssetsPath(this.assetData);this.innerElem=createNS("image"),this.innerElem.setAttribute("width",this.assetData.w+"px"),this.innerElem.setAttribute("height",this.assetData.h+"px"),this.innerElem.setAttribute("preserveAspectRatio",this.assetData.pr||this.globalData.renderConfig.imagePreserveAspectRatio),this.innerElem.setAttributeNS("http://www.w3.org/1999/xlink","href",t),this.layerElement.appendChild(this.innerElem)},IImageElement.prototype.sourceRectAtTime=function(){return this.sourceRect},IShapeElement.prototype={addShapeToModifiers:function(t){for(var e=this.shapeModifiers.length,i=0;i<e;i+=1)this.shapeModifiers[i].addShape(t)},isShapeInAnimatedModifiers:function(t){for(var e=this.shapeModifiers.length;0<e;)if(this.shapeModifiers[0].isAnimatedWithShape(t))return!0;return!1},renderModifiers:function(){if(this.shapeModifiers.length){for(var t=this.shapes.length,e=0;e<t;e+=1)this.shapes[e].sh.reset();for(e=(t=this.shapeModifiers.length)-1;0<=e&&!this.shapeModifiers[e].processShapes(this._isFirstFrame);--e);}},searchProcessedElement:function(t){for(var e=this.processedElements,i=0,s=e.length;i<s;){if(e[i].elem===t)return e[i].pos;i+=1}return 0},addProcessedElement:function(t,e){for(var i=this.processedElements,s=i.length;s;)if(i[--s].elem===t)return void(i[s].pos=e);i.push(new ProcessedElement(t,e))},prepareFrame:function(t){this.prepareRenderableFrame(t),this.prepareProperties(t,this.isInRange)}};var lineCapEnum={1:"butt",2:"round",3:"square"},lineJoinEnum={1:"miter",2:"round",3:"bevel"};function SVGShapeData(t,e,i){this.caches=[],this.styles=[],this.transformers=t,this.lStr="",this.sh=i,this.lvl=e,this._isAnimated=!!i.k;for(var s=0,n=t.length;s<n;){if(t[s].mProps.dynamicProperties.length){this._isAnimated=!0;break}s+=1}}function SVGStyleData(t,e){this.data=t,this.type=t.ty,this.d="",this.lvl=e,this._mdf=!1,this.closed=!0===t.hd,this.pElem=createNS("path"),this.msElem=null}function DashProperty(t,e,i,s){this.elem=t,this.frameId=-1,this.dataProps=createSizedArray(e.length),this.renderer=i,this.k=!1,this.dashStr="",this.dashArray=createTypedArray("float32",e.length?e.length-1:0),this.dashoffset=createTypedArray("float32",1),this.initDynamicPropertyContainer(s);for(var n,r=e.length||0,a=0;a<r;a+=1)n=PropertyFactory.getProp(t,e[a].v,0,0,this),this.k=n.k||this.k,this.dataProps[a]={n:e[a].n,p:n};this.k||this.getValue(!0),this._isAnimated=this.k}function SVGStrokeStyleData(t,e,i){this.initDynamicPropertyContainer(t),this.getValue=this.iterateDynamicProperties,this.o=PropertyFactory.getProp(t,e.o,0,.01,this),this.w=PropertyFactory.getProp(t,e.w,0,null,this),this.d=new DashProperty(t,e.d||{},"svg",this),this.c=PropertyFactory.getProp(t,e.c,1,255,this),this.style=i,this._isAnimated=!!this._isAnimated}function SVGFillStyleData(t,e,i){this.initDynamicPropertyContainer(t),this.getValue=this.iterateDynamicProperties,this.o=PropertyFactory.getProp(t,e.o,0,.01,this),this.c=PropertyFactory.getProp(t,e.c,1,255,this),this.style=i}function SVGNoStyleData(t,e,i){this.initDynamicPropertyContainer(t),this.getValue=this.iterateDynamicProperties,this.style=i}function GradientProperty(t,e,i){this.data=e,this.c=createTypedArray("uint8c",4*e.p);var s=e.k.k[0].s?e.k.k[0].s.length-4*e.p:e.k.k.length-4*e.p;this.o=createTypedArray("float32",s),this._cmdf=!1,this._omdf=!1,this._collapsable=this.checkCollapsable(),this._hasOpacity=s,this.initDynamicPropertyContainer(i),this.prop=PropertyFactory.getProp(t,e.k,1,null,this),this.k=this.prop.k,this.getValue(!0)}function SVGGradientFillStyleData(t,e,i){this.initDynamicPropertyContainer(t),this.getValue=this.iterateDynamicProperties,this.initGradientData(t,e,i)}function SVGGradientStrokeStyleData(t,e,i){this.initDynamicPropertyContainer(t),this.getValue=this.iterateDynamicProperties,this.w=PropertyFactory.getProp(t,e.w,0,null,this),this.d=new DashProperty(t,e.d||{},"svg",this),this.initGradientData(t,e,i),this._isAnimated=!!this._isAnimated}function ShapeGroupData(){this.it=[],this.prevViewData=[],this.gr=createNS("g")}function SVGTransformData(t,e,i){this.transform={mProps:t,op:e,container:i},this.elements=[],this._isAnimated=this.transform.mProps.dynamicProperties.length||this.transform.op.effectsSequence.length}SVGShapeData.prototype.setAsAnimated=function(){this._isAnimated=!0},SVGStyleData.prototype.reset=function(){this.d="",this._mdf=!1},DashProperty.prototype.getValue=function(t){if((this.elem.globalData.frameId!==this.frameId||t)&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf=this._mdf||t,this._mdf)){var e=0,i=this.dataProps.length;for("svg"===this.renderer&&(this.dashStr=""),e=0;e<i;e+=1)"o"!==this.dataProps[e].n?"svg"===this.renderer?this.dashStr+=" "+this.dataProps[e].p.v:this.dashArray[e]=this.dataProps[e].p.v:this.dashoffset[0]=this.dataProps[e].p.v}},extendPrototype([DynamicPropertyContainer],DashProperty),extendPrototype([DynamicPropertyContainer],SVGStrokeStyleData),extendPrototype([DynamicPropertyContainer],SVGFillStyleData),extendPrototype([DynamicPropertyContainer],SVGNoStyleData),GradientProperty.prototype.comparePoints=function(t,e){for(var i=0,s=this.o.length/2;i<s;){if(.01<Math.abs(t[4*i]-t[4*e+2*i]))return!1;i+=1}return!0},GradientProperty.prototype.checkCollapsable=function(){if(this.o.length/2!=this.c.length/4)return!1;if(this.data.k.k[0].s)for(var t=0,e=this.data.k.k.length;t<e;){if(!this.comparePoints(this.data.k.k[t].s,this.data.p))return!1;t+=1}else if(!this.comparePoints(this.data.k.k,this.data.p))return!1;return!0},GradientProperty.prototype.getValue=function(t){if(this.prop.getValue(),this._mdf=!1,this._cmdf=!1,this._omdf=!1,this.prop._mdf||t){for(var e,i,s=4*this.data.p,n=0;n<s;n+=1)e=n%4==0?100:255,i=Math.round(this.prop.v[n]*e),this.c[n]!==i&&(this.c[n]=i,this._cmdf=!t);if(this.o.length)for(s=this.prop.v.length,n=4*this.data.p;n<s;n+=1)e=n%2==0?100:1,i=n%2==0?Math.round(100*this.prop.v[n]):this.prop.v[n],this.o[n-4*this.data.p]!==i&&(this.o[n-4*this.data.p]=i,this._omdf=!t);this._mdf=!t}},extendPrototype([DynamicPropertyContainer],GradientProperty),SVGGradientFillStyleData.prototype.initGradientData=function(t,e,i){this.o=PropertyFactory.getProp(t,e.o,0,.01,this),this.s=PropertyFactory.getProp(t,e.s,1,null,this),this.e=PropertyFactory.getProp(t,e.e,1,null,this),this.h=PropertyFactory.getProp(t,e.h||{k:0},0,.01,this),this.a=PropertyFactory.getProp(t,e.a||{k:0},0,degToRads,this),this.g=new GradientProperty(t,e.g,this),this.style=i,this.stops=[],this.setGradientData(i.pElem,e),this.setGradientOpacity(e,i),this._isAnimated=!!this._isAnimated},SVGGradientFillStyleData.prototype.setGradientData=function(t,e){var i=createElementID(),s=createNS(1===e.t?"linearGradient":"radialGradient");s.setAttribute("id",i),s.setAttribute("spreadMethod","pad"),s.setAttribute("gradientUnits","userSpaceOnUse");for(var n,r=[],a=4*e.g.p,o=0;o<a;o+=4)n=createNS("stop"),s.appendChild(n),r.push(n);t.setAttribute("gf"===e.ty?"fill":"stroke","url("+getLocationHref()+"#"+i+")"),this.gf=s,this.cst=r},SVGGradientFillStyleData.prototype.setGradientOpacity=function(t,e){if(this.g._hasOpacity&&!this.g._collapsable){for(var i,s,n=createNS("mask"),r=createNS("path"),a=(n.appendChild(r),createElementID()),o=createElementID(),l=(n.setAttribute("id",o),createNS(1===t.t?"linearGradient":"radialGradient")),h=(l.setAttribute("id",a),l.setAttribute("spreadMethod","pad"),l.setAttribute("gradientUnits","userSpaceOnUse"),s=(t.g.k.k[0].s||t.g.k.k).length,this.stops),c=4*t.g.p;c<s;c+=2)(i=createNS("stop")).setAttribute("stop-color","rgb(255,255,255)"),l.appendChild(i),h.push(i);r.setAttribute("gf"===t.ty?"fill":"stroke","url("+getLocationHref()+"#"+a+")"),"gs"===t.ty&&(r.setAttribute("stroke-linecap",lineCapEnum[t.lc||2]),r.setAttribute("stroke-linejoin",lineJoinEnum[t.lj||2]),1===t.lj)&&r.setAttribute("stroke-miterlimit",t.ml),this.of=l,this.ms=n,this.ost=h,this.maskId=o,e.msElem=r}},extendPrototype([DynamicPropertyContainer],SVGGradientFillStyleData),extendPrototype([SVGGradientFillStyleData,DynamicPropertyContainer],SVGGradientStrokeStyleData);var buildShapeString=function(t,e,i,s){if(0===e)return"";for(var n=t.o,r=t.i,a=t.v,o=" M"+s.applyToPointStringified(a[0][0],a[0][1]),l=1;l<e;l+=1)o+=" C"+s.applyToPointStringified(n[l-1][0],n[l-1][1])+" "+s.applyToPointStringified(r[l][0],r[l][1])+" "+s.applyToPointStringified(a[l][0],a[l][1]);return o=i&&e?o+(" C"+s.applyToPointStringified(n[l-1][0],n[l-1][1])+" "+s.applyToPointStringified(r[0][0],r[0][1])+" "+s.applyToPointStringified(a[0][0],a[0][1]))+"z":o},SVGElementsRenderer=(()=>{var m=new Matrix,g=new Matrix;function e(t,e,i){(i||e.transform.op._mdf)&&e.transform.container.setAttribute("opacity",e.transform.op.v),(i||e.transform.mProps._mdf)&&e.transform.container.setAttribute("transform",e.transform.mProps.v.to2dCSS())}function i(){}function s(t,e,i){for(var s,n,r,a,o,l,h,c,p,u=e.styles.length,d=e.lvl,f=0;f<u;f+=1){if(a=e.sh._mdf||i,e.styles[f].lvl<d){for(h=g.reset(),c=d-e.styles[f].lvl,p=e.transformers.length-1;!a&&0<c;)a=e.transformers[p].mProps._mdf||a,--c,--p;if(a)for(c=d-e.styles[f].lvl,p=e.transformers.length-1;0<c;)h.multiply(e.transformers[p].mProps.v),--c,--p}else h=m;if(n=(l=e.sh.paths)._length,a){for(r="",s=0;s<n;s+=1)(o=l.shapes[s])&&o._length&&(r+=buildShapeString(o,o._length,o.c,h));e.caches[f]=r}else r=e.caches[f];e.styles[f].d+=!0===t.hd?"":r,e.styles[f]._mdf=a||e.styles[f]._mdf}}function n(t,e,i){var s=e.style;(e.c._mdf||i)&&s.pElem.setAttribute("fill","rgb("+bmFloor(e.c.v[0])+","+bmFloor(e.c.v[1])+","+bmFloor(e.c.v[2])+")"),(e.o._mdf||i)&&s.pElem.setAttribute("fill-opacity",e.o.v)}function r(t,e,i){a(t,e,i),o(0,e,i)}function a(t,e,i){var s,n,r,a,o=e.gf,l=e.g._hasOpacity,h=e.s.v,c=e.e.v;if((e.o._mdf||i)&&(r="gf"===t.ty?"fill-opacity":"stroke-opacity",e.style.pElem.setAttribute(r,e.o.v)),(e.s._mdf||i)&&(a="x1"==(r=1===t.t?"x1":"cx")?"y1":"cy",o.setAttribute(r,h[0]),o.setAttribute(a,h[1]),l)&&!e.g._collapsable&&(e.of.setAttribute(r,h[0]),e.of.setAttribute(a,h[1])),e.g._cmdf||i)for(var p=e.cst,u=e.g.c,d=p.length,f=0;f<d;f+=1)(s=p[f]).setAttribute("offset",u[4*f]+"%"),s.setAttribute("stop-color","rgb("+u[4*f+1]+","+u[4*f+2]+","+u[4*f+3]+")");if(l&&(e.g._omdf||i)){var m=e.g.o;for(d=(p=e.g._collapsable?e.cst:e.ost).length,f=0;f<d;f+=1)s=p[f],e.g._collapsable||s.setAttribute("offset",m[2*f]+"%"),s.setAttribute("stop-opacity",m[2*f+1])}1===t.t?(e.e._mdf||i)&&(o.setAttribute("x2",c[0]),o.setAttribute("y2",c[1]),l)&&!e.g._collapsable&&(e.of.setAttribute("x2",c[0]),e.of.setAttribute("y2",c[1])):((e.s._mdf||e.e._mdf||i)&&(n=Math.sqrt(Math.pow(h[0]-c[0],2)+Math.pow(h[1]-c[1],2)),o.setAttribute("r",n),l)&&!e.g._collapsable&&e.of.setAttribute("r",n),(e.s._mdf||e.e._mdf||e.h._mdf||e.a._mdf||i)&&(n=n||Math.sqrt(Math.pow(h[0]-c[0],2)+Math.pow(h[1]-c[1],2)),r=Math.atan2(c[1]-h[1],c[0]-h[0]),1<=(a=e.h.v)?a=.99:a<=-1&&(a=-.99),t=n*a,i=Math.cos(r+e.a.v)*t+h[0],c=Math.sin(r+e.a.v)*t+h[1],o.setAttribute("fx",i),o.setAttribute("fy",c),l)&&!e.g._collapsable&&(e.of.setAttribute("fx",i),e.of.setAttribute("fy",c)))}function o(t,e,i){var s=e.style,n=e.d;n&&(n._mdf||i)&&n.dashStr&&(s.pElem.setAttribute("stroke-dasharray",n.dashStr),s.pElem.setAttribute("stroke-dashoffset",n.dashoffset[0])),e.c&&(e.c._mdf||i)&&s.pElem.setAttribute("stroke","rgb("+bmFloor(e.c.v[0])+","+bmFloor(e.c.v[1])+","+bmFloor(e.c.v[2])+")"),(e.o._mdf||i)&&s.pElem.setAttribute("stroke-opacity",e.o.v),(e.w._mdf||i)&&(s.pElem.setAttribute("stroke-width",e.w.v),s.msElem)&&s.msElem.setAttribute("stroke-width",e.w.v)}return{createRenderFunction:function(t){switch(t.ty){case"fl":return n;case"gf":return a;case"gs":return r;case"st":return o;case"sh":case"el":case"rc":case"sr":return s;case"tr":return e;case"no":return i;default:return null}}}})();function SVGShapeElement(t,e,i){this.shapes=[],this.shapesData=t.shapes,this.stylesList=[],this.shapeModifiers=[],this.itemsData=[],this.processedElements=[],this.animatedContents=[],this.initElement(t,e,i),this.prevViewData=[]}function LetterProps(t,e,i,s,n,r){this.o=t,this.sw=e,this.sc=i,this.fc=s,this.m=n,this.p=r,this._mdf={o:!0,sw:!!e,sc:!!i,fc:!!s,m:!0,p:!0}}function TextProperty(t,e){this._frameId=initialDefaultFrame,this.pv="",this.v="",this.kf=!1,this._isFirstFrame=!0,this._mdf=!1,e.d&&e.d.sid&&(e.d=t.globalData.slotManager.getProp(e.d)),this.data=e,this.elem=t,this.comp=this.elem.comp,this.keysIndex=0,this.canResize=!1,this.minimumFontSize=1,this.effectsSequence=[],this.currentData={ascent:0,boxWidth:this.defaultBoxWidth,f:"",fStyle:"",fWeight:"",fc:"",j:"",justifyOffset:"",l:[],lh:0,lineWidths:[],ls:"",of:"",s:"",sc:"",sw:0,t:0,tr:0,sz:0,ps:null,fillColorAnim:!1,strokeColorAnim:!1,strokeWidthAnim:!1,yOffset:0,finalSize:0,finalText:[],finalLineHeight:0,__complete:!1},this.copyData(this.currentData,this.data.d.k[0].s),this.searchProperty()||this.completeTextData(this.currentData)}extendPrototype([BaseElement,TransformElement,SVGBaseElement,IShapeElement,HierarchyElement,FrameElement,RenderableDOMElement],SVGShapeElement),SVGShapeElement.prototype.initSecondaryElement=function(){},SVGShapeElement.prototype.identityMatrix=new Matrix,SVGShapeElement.prototype.buildExpressionInterface=function(){},SVGShapeElement.prototype.createContent=function(){this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.layerElement,0,[],!0),this.filterUniqueShapes()},SVGShapeElement.prototype.filterUniqueShapes=function(){for(var t,e,i,s=this.shapes.length,n=this.stylesList.length,r=[],a=!1,o=0;o<n;o+=1){for(i=this.stylesList[o],a=!1,t=r.length=0;t<s;t+=1)-1!==(e=this.shapes[t]).styles.indexOf(i)&&(r.push(e),a=e._isAnimated||a);1<r.length&&a&&this.setShapesAsAnimated(r)}},SVGShapeElement.prototype.setShapesAsAnimated=function(t){for(var e=t.length,i=0;i<e;i+=1)t[i].setAsAnimated()},SVGShapeElement.prototype.createStyleElement=function(t,e){var i,e=new SVGStyleData(t,e),s=e.pElem;return"st"===t.ty?i=new SVGStrokeStyleData(this,t,e):"fl"===t.ty?i=new SVGFillStyleData(this,t,e):"gf"===t.ty||"gs"===t.ty?(i=new("gf"===t.ty?SVGGradientFillStyleData:SVGGradientStrokeStyleData)(this,t,e),this.globalData.defs.appendChild(i.gf),i.maskId&&(this.globalData.defs.appendChild(i.ms),this.globalData.defs.appendChild(i.of),s.setAttribute("mask","url("+getLocationHref()+"#"+i.maskId+")"))):"no"===t.ty&&(i=new SVGNoStyleData(this,t,e)),"st"!==t.ty&&"gs"!==t.ty||(s.setAttribute("stroke-linecap",lineCapEnum[t.lc||2]),s.setAttribute("stroke-linejoin",lineJoinEnum[t.lj||2]),s.setAttribute("fill-opacity","0"),1===t.lj&&s.setAttribute("stroke-miterlimit",t.ml)),2===t.r&&s.setAttribute("fill-rule","evenodd"),t.ln&&s.setAttribute("id",t.ln),t.cl&&s.setAttribute("class",t.cl),t.bm&&(s.style["mix-blend-mode"]=getBlendMode(t.bm)),this.stylesList.push(e),this.addToAnimatedContents(t,i),i},SVGShapeElement.prototype.createGroupElement=function(t){var e=new ShapeGroupData;return t.ln&&e.gr.setAttribute("id",t.ln),t.cl&&e.gr.setAttribute("class",t.cl),t.bm&&(e.gr.style["mix-blend-mode"]=getBlendMode(t.bm)),e},SVGShapeElement.prototype.createTransformElement=function(t,e){var i=TransformPropertyFactory.getTransformProperty(this,t,this),i=new SVGTransformData(i,i.o,e);return this.addToAnimatedContents(t,i),i},SVGShapeElement.prototype.createShapeElement=function(t,e,i){var s=4,e=("rc"===t.ty?s=5:"el"===t.ty?s=6:"sr"===t.ty&&(s=7),new SVGShapeData(e,i,ShapePropertyFactory.getShapeProp(this,t,s,this)));return this.shapes.push(e),this.addShapeToModifiers(e),this.addToAnimatedContents(t,e),e},SVGShapeElement.prototype.addToAnimatedContents=function(t,e){for(var i=0,s=this.animatedContents.length;i<s;){if(this.animatedContents[i].element===e)return;i+=1}this.animatedContents.push({fn:SVGElementsRenderer.createRenderFunction(t),element:e,data:t})},SVGShapeElement.prototype.setElementStyles=function(t){for(var e=t.styles,i=this.stylesList.length,s=0;s<i;s+=1)-1!==e.indexOf(this.stylesList[s])||this.stylesList[s].closed||e.push(this.stylesList[s])},SVGShapeElement.prototype.reloadShapes=function(){this._isFirstFrame=!0;for(var t=this.itemsData.length,e=0;e<t;e+=1)this.prevViewData[e]=this.itemsData[e];for(this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.layerElement,0,[],!0),this.filterUniqueShapes(),t=this.dynamicProperties.length,e=0;e<t;e+=1)this.dynamicProperties[e].getValue();this.renderModifiers()},SVGShapeElement.prototype.searchShapes=function(t,e,i,s,n,r,a){for(var o,l,h,c,p,u=[].concat(r),d=t.length-1,f=[],m=[],g=d;0<=g;--g){if((p=this.searchProcessedElement(t[g]))?e[g]=i[p-1]:t[g]._render=a,"fl"===t[g].ty||"st"===t[g].ty||"gf"===t[g].ty||"gs"===t[g].ty||"no"===t[g].ty)p?e[g].style.closed=t[g].hd:e[g]=this.createStyleElement(t[g],n),t[g]._render&&e[g].style.pElem.parentNode!==s&&s.appendChild(e[g].style.pElem),f.push(e[g].style);else if("gr"===t[g].ty){if(p)for(l=e[g].it.length,o=0;o<l;o+=1)e[g].prevViewData[o]=e[g].it[o];else e[g]=this.createGroupElement(t[g]);this.searchShapes(t[g].it,e[g].it,e[g].prevViewData,e[g].gr,n+1,u,a),t[g]._render&&e[g].gr.parentNode!==s&&s.appendChild(e[g].gr)}else"tr"===t[g].ty?(p||(e[g]=this.createTransformElement(t[g],s)),h=e[g].transform,u.push(h)):"sh"===t[g].ty||"rc"===t[g].ty||"el"===t[g].ty||"sr"===t[g].ty?(p||(e[g]=this.createShapeElement(t[g],u,n)),this.setElementStyles(e[g])):"tm"===t[g].ty||"rd"===t[g].ty||"ms"===t[g].ty||"pb"===t[g].ty||"zz"===t[g].ty||"op"===t[g].ty?(p?(c=e[g]).closed=!1:((c=ShapeModifiers.getModifier(t[g].ty)).init(this,t[g]),e[g]=c,this.shapeModifiers.push(c)),m.push(c)):"rp"===t[g].ty&&(p?(c=e[g]).closed=!0:(c=ShapeModifiers.getModifier(t[g].ty),(e[g]=c).init(this,t,g,e),this.shapeModifiers.push(c),a=!1),m.push(c));this.addProcessedElement(t[g],g+1)}for(d=f.length,g=0;g<d;g+=1)f[g].closed=!0;for(d=m.length,g=0;g<d;g+=1)m[g].closed=!0},SVGShapeElement.prototype.renderInnerContent=function(){this.renderModifiers();for(var t=this.stylesList.length,e=0;e<t;e+=1)this.stylesList[e].reset();for(this.renderShape(),e=0;e<t;e+=1)(this.stylesList[e]._mdf||this._isFirstFrame)&&(this.stylesList[e].msElem&&(this.stylesList[e].msElem.setAttribute("d",this.stylesList[e].d),this.stylesList[e].d="M0 0"+this.stylesList[e].d),this.stylesList[e].pElem.setAttribute("d",this.stylesList[e].d||"M0 0"))},SVGShapeElement.prototype.renderShape=function(){for(var t,e=this.animatedContents.length,i=0;i<e;i+=1)t=this.animatedContents[i],(this._isFirstFrame||t.element._isAnimated)&&!0!==t.data&&t.fn(t.data,t.element,this._isFirstFrame)},SVGShapeElement.prototype.destroy=function(){this.destroyBaseElement(),this.shapesData=null,this.itemsData=null},LetterProps.prototype.update=function(t,e,i,s,n,r){this._mdf.o=!1,this._mdf.sw=!1,this._mdf.sc=!1,this._mdf.fc=!1,this._mdf.m=!1;var a=this._mdf.p=!1;return this.o!==t&&(this.o=t,a=this._mdf.o=!0),this.sw!==e&&(this.sw=e,a=this._mdf.sw=!0),this.sc!==i&&(this.sc=i,a=this._mdf.sc=!0),this.fc!==s&&(this.fc=s,a=this._mdf.fc=!0),this.m!==n&&(this.m=n,a=this._mdf.m=!0),!r.length||this.p[0]===r[0]&&this.p[1]===r[1]&&this.p[4]===r[4]&&this.p[5]===r[5]&&this.p[12]===r[12]&&this.p[13]===r[13]||(this.p=r,a=this._mdf.p=!0),a},TextProperty.prototype.defaultBoxWidth=[0,0],TextProperty.prototype.copyData=function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},TextProperty.prototype.setCurrentData=function(t){t.__complete||this.completeTextData(t),this.currentData=t,this.currentData.boxWidth=this.currentData.boxWidth||this.defaultBoxWidth,this._mdf=!0},TextProperty.prototype.searchProperty=function(){return this.searchKeyframes()},TextProperty.prototype.searchKeyframes=function(){return this.kf=1<this.data.d.k.length,this.kf&&this.addEffect(this.getKeyframeValue.bind(this)),this.kf},TextProperty.prototype.addEffect=function(t){this.effectsSequence.push(t),this.elem.addDynamicProperty(this)},TextProperty.prototype.getValue=function(t){if(this.elem.globalData.frameId!==this.frameId&&this.effectsSequence.length||t){this.currentData.t=this.data.d.k[this.keysIndex].s.t;var e=this.currentData,i=this.keysIndex;if(this.lock)this.setCurrentData(this.currentData);else{this.lock=!0,this._mdf=!1;for(var s=this.effectsSequence.length,n=t||this.data.d.k[this.keysIndex].s,r=0;r<s;r+=1)n=i!==this.keysIndex?this.effectsSequence[r](n,n.t):this.effectsSequence[r](this.currentData,n.t);e!==n&&this.setCurrentData(n),this.v=this.currentData,this.pv=this.v,this.lock=!1,this.frameId=this.elem.globalData.frameId}}},TextProperty.prototype.getKeyframeValue=function(){for(var t=this.data.d.k,e=this.elem.comp.renderedFrame,i=0,s=t.length;i<=s-1&&!(i===s-1||t[i+1].t>e);)i+=1;return this.keysIndex!==i&&(this.keysIndex=i),this.data.d.k[this.keysIndex].s},TextProperty.prototype.buildFinalText=function(t){for(var e,i,s=[],n=0,r=t.length,a=!1,o=!1,l="";n<r;)a=o,o=!1,e=t.charCodeAt(n),l=t.charAt(n),FontManager.isCombinedCharacter(e)?a=!0:55296<=e&&e<=56319?FontManager.isRegionalFlag(t,n)?l=t.substr(n,14):56320<=(i=t.charCodeAt(n+1))&&i<=57343&&(FontManager.isModifier(e,i)?(l=t.substr(n,2),a=!0):l=FontManager.isFlagEmoji(t.substr(n,4))?t.substr(n,4):t.substr(n,2)):56319<e?(i=t.charCodeAt(n+1),FontManager.isVariationSelector(e)&&(a=!0)):FontManager.isZeroWidthJoiner(e)&&(o=a=!0),a?(s[s.length-1]+=l,a=!1):s.push(l),n+=l.length;return s},TextProperty.prototype.completeTextData=function(t){t.__complete=!0;var e,i,s,n=this.elem.globalData.fontManager,r=this.data,a=[],o=0,l=r.m.g,h=0,c=0,p=0,u=[],d=0,f=0,m=n.getFontByName(t.f),g=0,y=getFontProperties(m);t.fWeight=y.weight,t.fStyle=y.style,t.finalSize=t.s,t.finalText=this.buildFinalText(t.t),S=t.finalText.length,t.finalLineHeight=t.lh;var v,b=t.tr/1e3*t.finalSize;if(t.sz)for(var _,x=!0,O=t.sz[0],V=t.sz[1];x;){for(var C=0,d=0,S=(_=this.buildFinalText(t.t)).length,b=t.tr/1e3*t.finalSize,w=-1,k=0;k<S;k+=1)v=_[k].charCodeAt(0),e=!1," "===_[k]?w=k:13!==v&&3!==v||(e=!(d=0),C+=t.finalLineHeight||1.2*t.finalSize),O<d+(g=n.chars?(s=n.getCharData(_[k],m.fStyle,m.fFamily),e?0:s.w*t.finalSize/100):n.measureText(_[k],t.f,t.finalSize))&&" "!==_[k]?(-1===w?S+=1:k=w,C+=t.finalLineHeight||1.2*t.finalSize,_.splice(k,w===k?1:0,"\r"),w=-1,d=0):d=d+g+b;C+=m.ascent*t.finalSize/100,this.canResize&&t.finalSize>this.minimumFontSize&&V<C?(--t.finalSize,t.finalLineHeight=t.finalSize*t.lh/t.s):(t.finalText=_,S=t.finalText.length,x=!1)}d=-b;var E,g=0,P=0;for(k=0;k<S;k+=1)if(e=!1,13===(v=(E=t.finalText[k]).charCodeAt(0))||3===v?(P=0,u.push(d),f=f<d?d:f,d=-2*b,e=!(i=""),p+=1):i=E,g=n.chars?(s=n.getCharData(E,m.fStyle,n.getFontByName(t.f).fFamily),e?0:s.w*t.finalSize/100):n.measureText(i,t.f,t.finalSize)," "===E?P+=g+b:(d+=g+b+P,P=0),a.push({l:g,an:g,add:h,n:e,anIndexes:[],val:i,line:p,animatorJustifyOffset:0}),2==l){if(h+=g,""===i||" "===i||k===S-1){for(""!==i&&" "!==i||(h-=g);c<=k;)a[c].an=h,a[c].ind=o,a[c].extra=g,c+=1;o+=1,h=0}}else if(3==l){if(h+=g,""===i||k===S-1){for(""===i&&(h-=g);c<=k;)a[c].an=h,a[c].ind=o,a[c].extra=g,c+=1;h=0,o+=1}}else a[o].ind=o,a[o].extra=0,o+=1;if(t.l=a,f=f<d?d:f,u.push(d),t.sz)t.boxWidth=t.sz[0],t.justifyOffset=0;else switch(t.boxWidth=f,t.j){case 1:t.justifyOffset=-t.boxWidth;break;case 2:t.justifyOffset=-t.boxWidth/2;break;default:t.justifyOffset=0}t.lineWidths=u;for(var D,T,A,M,I=r.a,B=I.length,F=[],L=0;L<B;L+=1){for((D=I[L]).a.sc&&(t.strokeColorAnim=!0),D.a.sw&&(t.strokeWidthAnim=!0),(D.a.fc||D.a.fh||D.a.fs||D.a.fb)&&(t.fillColorAnim=!0),A=D.s.b,k=M=0;k<S;k+=1)(T=a[k]).anIndexes[L]=M,(1==A&&""!==T.val||2==A&&""!==T.val&&" "!==T.val||3==A&&(T.n||" "==T.val||k==S-1)||4==A&&(T.n||k==S-1))&&(1===D.s.rn&&F.push(M),M+=1);r.a[L].s.totalChars=M;var R,N=-1;if(1===D.s.rn)for(k=0;k<S;k+=1)N!=(T=a[k]).anIndexes[L]&&(N=T.anIndexes[L],R=F.splice(Math.floor(Math.random()*F.length),1)[0]),T.anIndexes[L]=R}t.yOffset=t.finalLineHeight||1.2*t.finalSize,t.ls=t.ls||0,t.ascent=m.ascent*t.finalSize/100},TextProperty.prototype.updateDocumentData=function(t,e){e=void 0===e?this.keysIndex:e;var i=this.copyData({},this.data.d.k[e].s),i=this.copyData(i,t);this.data.d.k[e].s=i,this.recalculate(e),this.setCurrentData(i),this.elem.addDynamicProperty(this)},TextProperty.prototype.recalculate=function(t){t=this.data.d.k[t].s;t.__complete=!1,this.keysIndex=0,this._isFirstFrame=!0,this.getValue(t)},TextProperty.prototype.canResizeFont=function(t){this.canResize=t,this.recalculate(this.keysIndex),this.elem.addDynamicProperty(this)},TextProperty.prototype.setMinimumFontSize=function(t){this.minimumFontSize=Math.floor(t)||1,this.recalculate(this.keysIndex),this.elem.addDynamicProperty(this)};var TextSelectorProp=(()=>{var l=Math.max,h=Math.min,c=Math.floor;function s(t,e){this._currentTextLength=-1,this.k=!1,this.data=e,this.elem=t,this.comp=t.comp,this.finalS=0,this.finalE=0,this.initDynamicPropertyContainer(t),this.s=PropertyFactory.getProp(t,e.s||{k:0},0,0,this),this.e="e"in e?PropertyFactory.getProp(t,e.e,0,0,this):{v:100},this.o=PropertyFactory.getProp(t,e.o||{k:0},0,0,this),this.xe=PropertyFactory.getProp(t,e.xe||{k:0},0,0,this),this.ne=PropertyFactory.getProp(t,e.ne||{k:0},0,0,this),this.sm=PropertyFactory.getProp(t,e.sm||{k:100},0,0,this),this.a=PropertyFactory.getProp(t,e.a,0,.01,this),this.dynamicProperties.length||this.getValue()}return s.prototype={getMult:function(t){this._currentTextLength!==this.elem.textProperty.currentData.l.length&&this.getValue();var e,i,s=0,n=0,r=1,a=1,s=(0<this.ne.v?s=this.ne.v/100:n=-this.ne.v/100,0<this.xe.v?r=1-this.xe.v/100:a=1+this.xe.v/100,BezierFactory.getBezierEasing(s,n,r,a).get),n=0,r=this.finalS,a=this.finalE,o=this.data.sh;return n=2===o?s(n=a===r?a<=t?1:0:l(0,h(.5/(a-r)+(t-r)/(a-r),1))):3===o?s(n=a===r?a<=t?0:1:1-l(0,h(.5/(a-r)+(t-r)/(a-r),1))):4===o?(a===r?n=0:(n=l(0,h(.5/(a-r)+(t-r)/(a-r),1)))<.5?n*=2:n=1-2*(n-.5),s(n)):5===o?s(n=a===r?0:(e=-(i=a-r)/2+(t=h(l(0,t+.5-r),a-r)),i=i/2,Math.sqrt(1-e*e/(i*i)))):(6===o?n=a===r?0:(t=h(l(0,t+.5-r),a-r),(1+Math.cos(Math.PI+2*Math.PI*t/(a-r)))/2):t>=c(r)&&(n=l(0,h(t-r<0?h(a,1)-(r-t):a-t,1))),s(n)),100!==this.sm.v&&(n<(i=.5-.5*(e=0===(e=.01*this.sm.v)?1e-8:e))?n=0:1<(n=(n-i)/e)&&(n=1)),n*this.a.v},getValue:function(t){this.iterateDynamicProperties(),this._mdf=t||this._mdf,this._currentTextLength=this.elem.textProperty.currentData.l.length||0,t&&2===this.data.r&&(this.e.v=this._currentTextLength);var t=2===this.data.r?1:100/this.data.totalChars,e=this.o.v/t,i=this.s.v/t+e,t=this.e.v/t+e;t<i&&(e=i,i=t,t=e),this.finalS=i,this.finalE=t}},extendPrototype([DynamicPropertyContainer],s),{getTextSelectorProp:function(t,e,i){return new s(t,e)}}})();function TextAnimatorDataProperty(t,e,i){var s={propType:!1},n=PropertyFactory.getProp,r=e.a;this.a={r:r.r?n(t,r.r,0,degToRads,i):s,rx:r.rx?n(t,r.rx,0,degToRads,i):s,ry:r.ry?n(t,r.ry,0,degToRads,i):s,sk:r.sk?n(t,r.sk,0,degToRads,i):s,sa:r.sa?n(t,r.sa,0,degToRads,i):s,s:r.s?n(t,r.s,1,.01,i):s,a:r.a?n(t,r.a,1,0,i):s,o:r.o?n(t,r.o,0,.01,i):s,p:r.p?n(t,r.p,1,0,i):s,sw:r.sw?n(t,r.sw,0,0,i):s,sc:r.sc?n(t,r.sc,1,0,i):s,fc:r.fc?n(t,r.fc,1,0,i):s,fh:r.fh?n(t,r.fh,0,0,i):s,fs:r.fs?n(t,r.fs,0,.01,i):s,fb:r.fb?n(t,r.fb,0,.01,i):s,t:r.t?n(t,r.t,0,0,i):s},this.s=TextSelectorProp.getTextSelectorProp(t,e.s,i),this.s.t=e.s.t}function TextAnimatorProperty(t,e,i){this._isFirstFrame=!0,this._hasMaskedPath=!1,this._frameId=-1,this._textData=t,this._renderType=e,this._elem=i,this._animatorsData=createSizedArray(this._textData.a.length),this._pathData={},this._moreOptions={alignment:{}},this.renderedLetters=[],this.lettersChangedFlag=!1,this.initDynamicPropertyContainer(i)}function ITextElement(){}TextAnimatorProperty.prototype.searchProperties=function(){for(var t,e=this._textData.a.length,i=PropertyFactory.getProp,s=0;s<e;s+=1)t=this._textData.a[s],this._animatorsData[s]=new TextAnimatorDataProperty(this._elem,t,this);this._textData.p&&"m"in this._textData.p?(this._pathData={a:i(this._elem,this._textData.p.a,0,0,this),f:i(this._elem,this._textData.p.f,0,0,this),l:i(this._elem,this._textData.p.l,0,0,this),r:i(this._elem,this._textData.p.r,0,0,this),p:i(this._elem,this._textData.p.p,0,0,this),m:this._elem.maskManager.getMaskProperty(this._textData.p.m)},this._hasMaskedPath=!0):this._hasMaskedPath=!1,this._moreOptions.alignment=i(this._elem,this._textData.m.a,1,0,this)},TextAnimatorProperty.prototype.getMeasures=function(t,O){if(this.lettersChangedFlag=O,this._mdf||this._isFirstFrame||O||this._hasMaskedPath&&this._pathData.m._mdf){this._isFirstFrame=!1;var e,i,s,V,n,r,a,o,l,B,h,N,c,p=this._moreOptions.alignment.v,u=this._animatorsData,d=this._textData,f=this.mHelper,z=this._renderType,H=this.renderedLetters.length,m=t.l;if(this._hasMaskedPath){if(c=this._pathData.m,!this._pathData.n||this._pathData._mdf){for(var g,y=c.v,v={tLength:0,segments:[]},b=(y=this._pathData.r.v?y.reverse():y)._length-1,_=h=0;_<b;_+=1)g=bez.buildBezierData(y.v[_],y.v[_+1],[y.o[_][0]-y.v[_][0],y.o[_][1]-y.v[_][1]],[y.i[_+1][0]-y.v[_+1][0],y.i[_+1][1]-y.v[_+1][1]]),v.tLength+=g.segmentLength,v.segments.push(g),h+=g.segmentLength;_=b,c.v.c&&(g=bez.buildBezierData(y.v[_],y.v[0],[y.o[_][0]-y.v[_][0],y.o[_][1]-y.v[_][1]],[y.i[0][0]-y.v[0][0],y.i[0][1]-y.v[0][1]]),v.tLength+=g.segmentLength,v.segments.push(g),h+=g.segmentLength),this._pathData.pi=v}if(v=this._pathData.pi,e=this._pathData.f.v,n=1,V=!(s=r=0),l=v.segments,e<0&&c.v.c)for(v.tLength<Math.abs(e)&&(e=-Math.abs(e)%v.tLength),n=(o=l[r=l.length-1].points).length-1;e<0;)e+=o[n].partialLength,--n<0&&(n=(o=l[--r].points).length-1);a=(o=l[r].points)[n-1],B=(i=o[n]).partialLength}b=m.length;var x,q,C,S,W,j,w,k,E,P,D,G,Y,$,K,X,T=0,U=0,J=1.2*t.finalSize*.714,Z=!0,A=u.length,M=-1,Q=e,tt=r,et=n,it=-1,st="",nt=this.defaultPropsArray;if(2===t.j||1===t.j){var I=0,rt=0,at=2===t.j?-.5:-1,F=0,ot=!0;for(_=0;_<b;_+=1)if(m[_].n){for(I&&(I+=rt);F<_;)m[F].animatorJustifyOffset=I,F+=1;ot=!(I=0)}else{for(R=0;R<A;R+=1)(x=u[R].a).t.propType&&(ot&&2===t.j&&(rt+=x.t.v*at),(C=u[R].s.getMult(m[_].anIndexes[R],d.a[R].s.totalChars)).length?I+=x.t.v*C[0]*at:I+=x.t.v*C*at);ot=!1}for(I&&(I+=rt);F<_;)m[F].animatorJustifyOffset=I,F+=1}for(_=0;_<b;_+=1){if(f.reset(),w=1,m[_].n)T=0,U=U+t.yOffset+(Z?1:0),e=Q,Z=!1,this._hasMaskedPath&&(a=(o=l[r=tt].points)[(n=et)-1],B=(i=o[n]).partialLength,s=0),K=G=$=st="",nt=this.defaultPropsArray;else{if(this._hasMaskedPath){if(it!==m[_].line){switch(t.j){case 1:e+=h-t.lineWidths[m[_].line];break;case 2:e+=(h-t.lineWidths[m[_].line])/2}it=m[_].line}M!==m[_].ind&&(m[M]&&(e+=m[M].extra),e+=m[_].an/2,M=m[_].ind),e+=p[0]*m[_].an*.005;for(var L=0,R=0;R<A;R+=1)(x=u[R].a).p.propType&&((C=u[R].s.getMult(m[_].anIndexes[R],d.a[R].s.totalChars)).length?L+=x.p.v[0]*C[0]:L+=x.p.v[0]*C),x.a.propType&&((C=u[R].s.getMult(m[_].anIndexes[R],d.a[R].s.totalChars)).length?L+=x.a.v[0]*C[0]:L+=x.a.v[0]*C);for(V=!0,this._pathData.a.v&&(e=.5*m[0].an+(h-this._pathData.f.v-.5*m[0].an-.5*m[m.length-1].an)*M/(b-1),e+=this._pathData.f.v);V;)e+L<=s+B||!o?(N=(e+L-s)/i.partialLength,W=a.point[0]+(i.point[0]-a.point[0])*N,j=a.point[1]+(i.point[1]-a.point[1])*N,f.translate(-p[0]*m[_].an*.005,-p[1]*J*.01),V=!1):o&&(s+=i.partialLength,(n+=1)>=o.length&&(n=0,o=l[r+=1]?l[r].points:c.v.c?l[r=n=0].points:(s-=i.partialLength,null)),o)&&(a=i,B=(i=o[n]).partialLength);S=m[_].an/2-m[_].add,f.translate(-S,0,0)}else S=m[_].an/2-m[_].add,f.translate(-S,0,0),f.translate(-p[0]*m[_].an*.005,-p[1]*J*.01,0);for(R=0;R<A;R+=1)(x=u[R].a).t.propType&&(C=u[R].s.getMult(m[_].anIndexes[R],d.a[R].s.totalChars),0===T&&0===t.j||(this._hasMaskedPath?C.length?e+=x.t.v*C[0]:e+=x.t.v*C:C.length?T+=x.t.v*C[0]:T+=x.t.v*C));for(t.strokeWidthAnim&&(E=t.sw||0),t.strokeColorAnim&&(k=t.sc?[t.sc[0],t.sc[1],t.sc[2]]:[0,0,0]),t.fillColorAnim&&t.fc&&(P=[t.fc[0],t.fc[1],t.fc[2]]),R=0;R<A;R+=1)(x=u[R].a).a.propType&&((C=u[R].s.getMult(m[_].anIndexes[R],d.a[R].s.totalChars)).length?f.translate(-x.a.v[0]*C[0],-x.a.v[1]*C[1],x.a.v[2]*C[2]):f.translate(-x.a.v[0]*C,-x.a.v[1]*C,x.a.v[2]*C));for(R=0;R<A;R+=1)(x=u[R].a).s.propType&&((C=u[R].s.getMult(m[_].anIndexes[R],d.a[R].s.totalChars)).length?f.scale(1+(x.s.v[0]-1)*C[0],1+(x.s.v[1]-1)*C[1],1):f.scale(1+(x.s.v[0]-1)*C,1+(x.s.v[1]-1)*C,1));for(R=0;R<A;R+=1){if(x=u[R].a,C=u[R].s.getMult(m[_].anIndexes[R],d.a[R].s.totalChars),x.sk.propType&&(C.length?f.skewFromAxis(-x.sk.v*C[0],x.sa.v*C[1]):f.skewFromAxis(-x.sk.v*C,x.sa.v*C)),x.r.propType&&(C.length?f.rotateZ(-x.r.v*C[2]):f.rotateZ(-x.r.v*C)),x.ry.propType&&(C.length?f.rotateY(x.ry.v*C[1]):f.rotateY(x.ry.v*C)),x.rx.propType&&(C.length?f.rotateX(x.rx.v*C[0]):f.rotateX(x.rx.v*C)),x.o.propType&&(C.length?w+=(x.o.v*C[0]-w)*C[0]:w+=(x.o.v*C-w)*C),t.strokeWidthAnim&&x.sw.propType&&(C.length?E+=x.sw.v*C[0]:E+=x.sw.v*C),t.strokeColorAnim&&x.sc.propType)for(D=0;D<3;D+=1)C.length?k[D]+=(x.sc.v[D]-k[D])*C[0]:k[D]+=(x.sc.v[D]-k[D])*C;if(t.fillColorAnim&&t.fc){if(x.fc.propType)for(D=0;D<3;D+=1)C.length?P[D]+=(x.fc.v[D]-P[D])*C[0]:P[D]+=(x.fc.v[D]-P[D])*C;x.fh.propType&&(P=C.length?addHueToRGB(P,x.fh.v*C[0]):addHueToRGB(P,x.fh.v*C)),x.fs.propType&&(P=C.length?addSaturationToRGB(P,x.fs.v*C[0]):addSaturationToRGB(P,x.fs.v*C)),x.fb.propType&&(P=C.length?addBrightnessToRGB(P,x.fb.v*C[0]):addBrightnessToRGB(P,x.fb.v*C))}}for(R=0;R<A;R+=1)(x=u[R].a).p.propType&&(C=u[R].s.getMult(m[_].anIndexes[R],d.a[R].s.totalChars),this._hasMaskedPath?C.length?f.translate(0,x.p.v[1]*C[0],-x.p.v[2]*C[1]):f.translate(0,x.p.v[1]*C,-x.p.v[2]*C):C.length?f.translate(x.p.v[0]*C[0],x.p.v[1]*C[1],-x.p.v[2]*C[2]):f.translate(x.p.v[0]*C,x.p.v[1]*C,-x.p.v[2]*C));if(t.strokeWidthAnim&&(G=E<0?0:E),t.strokeColorAnim&&(Y="rgb("+Math.round(255*k[0])+","+Math.round(255*k[1])+","+Math.round(255*k[2])+")"),t.fillColorAnim&&t.fc&&($="rgb("+Math.round(255*P[0])+","+Math.round(255*P[1])+","+Math.round(255*P[2])+")"),this._hasMaskedPath)f.translate(0,-t.ls),f.translate(0,p[1]*J*.01+U,0),this._pathData.p.v&&(X=(i.point[1]-a.point[1])/(i.point[0]-a.point[0]),X=180*Math.atan(X)/Math.PI,i.point[0]<a.point[0]&&(X+=180),f.rotate(-X*Math.PI/180)),f.translate(W,j,0),e-=p[0]*m[_].an*.005,m[_+1]&&M!==m[_+1].ind&&(e=(e+=m[_].an/2)+.001*t.tr*t.finalSize);else{switch(f.translate(T,U,0),t.ps&&f.translate(t.ps[0],t.ps[1]+t.ascent,0),t.j){case 1:f.translate(m[_].animatorJustifyOffset+t.justifyOffset+(t.boxWidth-t.lineWidths[m[_].line]),0,0);break;case 2:f.translate(m[_].animatorJustifyOffset+t.justifyOffset+(t.boxWidth-t.lineWidths[m[_].line])/2,0,0)}f.translate(0,-t.ls),f.translate(S,0,0),f.translate(p[0]*m[_].an*.005,p[1]*J*.01,0),T+=m[_].l+.001*t.tr*t.finalSize}"html"===z?st=f.toCSS():"svg"===z?st=f.to2dCSS():nt=[f.props[0],f.props[1],f.props[2],f.props[3],f.props[4],f.props[5],f.props[6],f.props[7],f.props[8],f.props[9],f.props[10],f.props[11],f.props[12],f.props[13],f.props[14],f.props[15]],K=w}H<=_?(q=new LetterProps(K,G,Y,$,st,nt),this.renderedLetters.push(q),H+=1,this.lettersChangedFlag=!0):(q=this.renderedLetters[_],this.lettersChangedFlag=q.update(K,G,Y,$,st,nt)||this.lettersChangedFlag)}}},TextAnimatorProperty.prototype.getValue=function(){this._elem.globalData.frameId!==this._frameId&&(this._frameId=this._elem.globalData.frameId,this.iterateDynamicProperties())},TextAnimatorProperty.prototype.mHelper=new Matrix,TextAnimatorProperty.prototype.defaultPropsArray=[],extendPrototype([DynamicPropertyContainer],TextAnimatorProperty),ITextElement.prototype.initElement=function(t,e,i){this.lettersChangedFlag=!0,this.initFrame(),this.initBaseData(t,e,i),this.textProperty=new TextProperty(this,t.t,this.dynamicProperties),this.textAnimator=new TextAnimatorProperty(t.t,this.renderType,this),this.initTransform(t,e,i),this.initHierarchy(),this.initRenderable(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),this.createContent(),this.hide(),this.textAnimator.searchProperties(this.dynamicProperties)},ITextElement.prototype.prepareFrame=function(t){this._mdf=!1,this.prepareRenderableFrame(t),this.prepareProperties(t,this.isInRange)},ITextElement.prototype.createPathShape=function(t,e){for(var i,s=e.length,n="",r=0;r<s;r+=1)"sh"===e[r].ty&&(i=e[r].ks.k,n+=buildShapeString(i,i.i.length,!0,t));return n},ITextElement.prototype.updateDocumentData=function(t,e){this.textProperty.updateDocumentData(t,e)},ITextElement.prototype.canResizeFont=function(t){this.textProperty.canResizeFont(t)},ITextElement.prototype.setMinimumFontSize=function(t){this.textProperty.setMinimumFontSize(t)},ITextElement.prototype.applyTextPropertiesToMatrix=function(t,e,i,s,n){switch(t.ps&&e.translate(t.ps[0],t.ps[1]+t.ascent,0),e.translate(0,-t.ls,0),t.j){case 1:e.translate(t.justifyOffset+(t.boxWidth-t.lineWidths[i]),0,0);break;case 2:e.translate(t.justifyOffset+(t.boxWidth-t.lineWidths[i])/2,0,0)}e.translate(s,n,0)},ITextElement.prototype.buildColor=function(t){return"rgb("+Math.round(255*t[0])+","+Math.round(255*t[1])+","+Math.round(255*t[2])+")"},ITextElement.prototype.emptyProp=new LetterProps,ITextElement.prototype.destroy=function(){},ITextElement.prototype.validateText=function(){(this.textProperty._mdf||this.textProperty._isFirstFrame)&&(this.buildNewText(),this.textProperty._isFirstFrame=!1,this.textProperty._mdf=!1)};var emptyShapeData={shapes:[]};function SVGTextLottieElement(t,e,i){this.textSpans=[],this.renderType="svg",this.initElement(t,e,i)}function ISolidElement(t,e,i){this.initElement(t,e,i)}function NullElement(t,e,i){this.initFrame(),this.initBaseData(t,e,i),this.initFrame(),this.initTransform(t,e,i),this.initHierarchy()}function SVGRendererBase(){}function ICompElement(){}function SVGCompElement(t,e,i){this.layers=t.layers,this.supports3d=!0,this.completeLayers=!1,this.pendingElements=[],this.elements=this.layers?createSizedArray(this.layers.length):[],this.initElement(t,e,i),this.tm=t.tm?PropertyFactory.getProp(this,t.tm,0,e.frameRate,this):{_placeholder:!0}}function SVGRenderer(t,e){this.animationItem=t,this.layers=null,this.renderedFrame=-1,this.svgElement=createNS("svg");var t="",i=(e&&e.title&&(i=createNS("title"),s=createElementID(),i.setAttribute("id",s),i.textContent=e.title,this.svgElement.appendChild(i),t+=s),e&&e.description&&(i=createNS("desc"),s=createElementID(),i.setAttribute("id",s),i.textContent=e.description,this.svgElement.appendChild(i),t+=" "+s),t&&this.svgElement.setAttribute("aria-labelledby",t),createNS("defs")),s=(this.svgElement.appendChild(i),createNS("g"));this.svgElement.appendChild(s),this.layerElement=s,this.renderConfig={preserveAspectRatio:e&&e.preserveAspectRatio||"xMidYMid meet",imagePreserveAspectRatio:e&&e.imagePreserveAspectRatio||"xMidYMid slice",contentVisibility:e&&e.contentVisibility||"visible",progressiveLoad:e&&e.progressiveLoad||!1,hideOnTransparent:!(e&&!1===e.hideOnTransparent),viewBoxOnly:e&&e.viewBoxOnly||!1,viewBoxSize:e&&e.viewBoxSize||!1,className:e&&e.className||"",id:e&&e.id||"",focusable:e&&e.focusable,filterSize:{width:e&&e.filterSize&&e.filterSize.width||"100%",height:e&&e.filterSize&&e.filterSize.height||"100%",x:e&&e.filterSize&&e.filterSize.x||"0%",y:e&&e.filterSize&&e.filterSize.y||"0%"},width:e&&e.width,height:e&&e.height,runExpressions:!e||void 0===e.runExpressions||e.runExpressions},this.globalData={_mdf:!1,frameNum:-1,defs:i,renderConfig:this.renderConfig},this.elements=[],this.pendingElements=[],this.destroyed=!1,this.rendererType="svg"}function ShapeTransformManager(){this.sequences={},this.sequenceList=[],this.transform_key_count=0}extendPrototype([BaseElement,TransformElement,SVGBaseElement,HierarchyElement,FrameElement,RenderableDOMElement,ITextElement],SVGTextLottieElement),SVGTextLottieElement.prototype.createContent=function(){this.data.singleShape&&!this.globalData.fontManager.chars&&(this.textContainer=createNS("text"))},SVGTextLottieElement.prototype.buildTextContents=function(t){for(var e=0,i=t.length,s=[],n="";e<i;)t[e]===String.fromCharCode(13)||t[e]===String.fromCharCode(3)?(s.push(n),n=""):n+=t[e],e+=1;return s.push(n),s},SVGTextLottieElement.prototype.buildShapeData=function(t,e){var i;return t.shapes&&t.shapes.length&&(i=t.shapes[0]).it&&(i=i.it[i.it.length-1]).s&&(i.s.k[0]=e,i.s.k[1]=e),t},SVGTextLottieElement.prototype.buildNewText=function(){this.addDynamicProperty(this);var t,e,i=this.textProperty.currentData,s=(this.renderedLetters=createSizedArray(i?i.l.length:0),i.fc?this.layerElement.setAttribute("fill",this.buildColor(i.fc)):this.layerElement.setAttribute("fill","rgba(0,0,0,0)"),i.sc&&(this.layerElement.setAttribute("stroke",this.buildColor(i.sc)),this.layerElement.setAttribute("stroke-width",i.sw)),this.layerElement.setAttribute("font-size",i.finalSize),this.globalData.fontManager.getFontByName(i.f));s.fClass?this.layerElement.setAttribute("class",s.fClass):(this.layerElement.setAttribute("font-family",s.fFamily),t=i.fWeight,e=i.fStyle,this.layerElement.setAttribute("font-style",e),this.layerElement.setAttribute("font-weight",t)),this.layerElement.setAttribute("aria-label",i.t);var n=i.l||[],r=!!this.globalData.fontManager.chars,a=(x=n.length,this.mHelper),o=this.data.singleShape,l=0,h=0,c=!0,p=.001*i.tr*i.finalSize;if(!o||r||i.sz){for(var u,d,f,m,g=this.textSpans.length,y=0;y<x;y+=1)this.textSpans[y]||(this.textSpans[y]={span:null,childSpan:null,glyph:null}),r&&o&&0!==y||(d=y<g?this.textSpans[y].span:createNS(r?"g":"text"),g<=y&&(d.setAttribute("stroke-linecap","butt"),d.setAttribute("stroke-linejoin","round"),d.setAttribute("stroke-miterlimit","4"),this.textSpans[y].span=d,r&&(u=createNS("g"),d.appendChild(u),this.textSpans[y].childSpan=u),this.textSpans[y].span=d,this.layerElement.appendChild(d)),d.style.display="inherit"),a.reset(),o&&(n[y].n&&(l=-p,h=h+i.yOffset+(c?1:0),c=!1),this.applyTextPropertiesToMatrix(i,a,n[y].line,l,h),l=l+(n[y].l||0)+p),r?(f=1===(u=this.globalData.fontManager.getCharData(i.finalText[y],s.fStyle,this.globalData.fontManager.getFontByName(i.f).fFamily)).t?new SVGCompElement(u.data,this.globalData,this):(f=emptyShapeData,new SVGShapeElement(f=u.data&&u.data.shapes?this.buildShapeData(u.data,i.finalSize):f,this.globalData,this)),this.textSpans[y].glyph&&(m=this.textSpans[y].glyph,this.textSpans[y].childSpan.removeChild(m.layerElement),m.destroy()),(this.textSpans[y].glyph=f)._debug=!0,f.prepareFrame(0),f.renderFrame(),this.textSpans[y].childSpan.appendChild(f.layerElement),1===u.t&&this.textSpans[y].childSpan.setAttribute("transform","scale("+i.finalSize/100+","+i.finalSize/100+")")):(o&&d.setAttribute("transform","translate("+a.props[12]+","+a.props[13]+")"),d.textContent=n[y].val,d.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"));o&&d&&d.setAttribute("d","")}else{var v=this.textContainer,b="start";switch(i.j){case 1:b="end";break;case 2:b="middle";break;default:b="start"}v.setAttribute("text-anchor",b),v.setAttribute("letter-spacing",p);var _=this.buildTextContents(i.finalText),x=_.length,h=i.ps?i.ps[1]+i.ascent:0;for(y=0;y<x;y+=1)(d=this.textSpans[y].span||createNS("tspan")).textContent=_[y],d.setAttribute("x",0),d.setAttribute("y",h),d.style.display="inherit",v.appendChild(d),this.textSpans[y]||(this.textSpans[y]={span:null,glyph:null}),this.textSpans[y].span=d,h+=i.finalLineHeight;this.layerElement.appendChild(v)}for(;y<this.textSpans.length;)this.textSpans[y].span.style.display="none",y+=1;this._sizeChanged=!0},SVGTextLottieElement.prototype.sourceRectAtTime=function(){var t;return this.prepareFrame(this.comp.renderedFrame-this.data.st),this.renderInnerContent(),this._sizeChanged&&(this._sizeChanged=!1,t=this.layerElement.getBBox(),this.bbox={top:t.y,left:t.x,width:t.width,height:t.height}),this.bbox},SVGTextLottieElement.prototype.getValue=function(){var t,e,i=this.textSpans.length;for(this.renderedFrame=this.comp.renderedFrame,t=0;t<i;t+=1)(e=this.textSpans[t].glyph)&&(e.prepareFrame(this.comp.renderedFrame-this.data.st),e._mdf)&&(this._mdf=!0)},SVGTextLottieElement.prototype.renderInnerContent=function(){if(this.validateText(),(!this.data.singleShape||this._mdf)&&(this.textAnimator.getMeasures(this.textProperty.currentData,this.lettersChangedFlag),this.lettersChangedFlag||this.textAnimator.lettersChangedFlag)){this._sizeChanged=!0;for(var t,e,i,s=this.textAnimator.renderedLetters,n=this.textProperty.currentData.l,r=n.length,a=0;a<r;a+=1)n[a].n||(t=s[a],e=this.textSpans[a].span,(i=this.textSpans[a].glyph)&&i.renderFrame(),t._mdf.m&&e.setAttribute("transform",t.m),t._mdf.o&&e.setAttribute("op
1acity",t.o),t._mdf.sw&&e.setAttribute("stroke-width",t.sw),t._mdf.sc&&e.setAttribute("stroke",t.sc),t._mdf.fc&&e.setAttribute("fill",t.fc))}},extendPrototype([IImageElement],ISolidElement),ISolidElement.prototype.createContent=function(){var t=createNS("rect");t.setAttribute("width",this.data.sw),t.setAttribute("height",this.data.sh),t.setAttribute("fill",this.data.sc),this.layerElement.appendChild(t)},NullElement.prototype.prepareFrame=function(t){this.prepareProperties(t,!0)},NullElement.prototype.renderFrame=function(){},NullElement.prototype.getBaseElement=function(){return null},NullElement.prototype.destroy=function(){},NullElement.prototype.sourceRectAtTime=function(){},NullElement.prototype.hide=function(){},extendPrototype([BaseElement,TransformElement,HierarchyElement,FrameElement],NullElement),extendPrototype([BaseRenderer],SVGRendererBase),SVGRendererBase.prototype.createNull=function(t){return new NullElement(t,this.globalData,this)},SVGRendererBase.prototype.createShape=function(t){return new SVGShapeElement(t,this.globalData,this)},SVGRendererBase.prototype.createText=function(t){return new SVGTextLottieElement(t,this.globalData,this)},SVGRendererBase.prototype.createImage=function(t){return new IImageElement(t,this.globalData,this)},SVGRendererBase.prototype.createSolid=function(t){return new ISolidElement(t,this.globalData,this)},SVGRendererBase.prototype.configAnimation=function(t){this.svgElement.setAttribute("xmlns","http://www.w3.org/2000/svg"),this.svgElement.setAttribute("xmlns:xlink","http://www.w3.org/1999/xlink"),this.renderConfig.viewBoxSize?this.svgElement.setAttribute("viewBox",this.renderConfig.viewBoxSize):this.svgElement.setAttribute("viewBox","0 0 "+t.w+" "+t.h),this.renderConfig.viewBoxOnly||(this.svgElement.setAttribute("width",t.w),this.svgElement.setAttribute("height",t.h),this.svgElement.style.width="100%",this.svgElement.style.height="100%",this.svgElement.style.transform="translate3d(0,0,0)",this.svgElement.style.contentVisibility=this.renderConfig.contentVisibility),this.renderConfig.width&&this.svgElement.setAttribute("width",this.renderConfig.width),this.renderConfig.height&&this.svgElement.setAttribute("height",this.renderConfig.height),this.renderConfig.className&&this.svgElement.setAttribute("class",this.renderConfig.className),this.renderConfig.id&&this.svgElement.setAttribute("id",this.renderConfig.id),void 0!==this.renderConfig.focusable&&this.svgElement.setAttribute("focusable",this.renderConfig.focusable),this.svgElement.setAttribute("preserveAspectRatio",this.renderConfig.preserveAspectRatio),this.animationItem.wrapper.appendChild(this.svgElement);var e=this.globalData.defs,i=(this.setupGlobalData(t,e),this.globalData.progressiveLoad=this.renderConfig.progressiveLoad,this.data=t,createNS("clipPath")),s=createNS("rect"),n=(s.setAttribute("width",t.w),s.setAttribute("height",t.h),s.setAttribute("x",0),s.setAttribute("y",0),createElementID());i.setAttribute("id",n),i.appendChild(s),this.layerElement.setAttribute("clip-path","url("+getLocationHref()+"#"+n+")"),e.appendChild(i),this.layers=t.layers,this.elements=createSizedArray(t.layers.length)},SVGRendererBase.prototype.destroy=function(){this.animationItem.wrapper&&(this.animationItem.wrapper.innerText=""),this.layerElement=null,this.globalData.defs=null;for(var t=this.layers?this.layers.length:0,e=0;e<t;e+=1)this.elements[e]&&this.elements[e].destroy&&this.elements[e].destroy();this.elements.length=0,this.destroyed=!0,this.animationItem=null},SVGRendererBase.prototype.updateContainerSize=function(){},SVGRendererBase.prototype.findIndexByInd=function(t){for(var e=0,i=this.layers.length,e=0;e<i;e+=1)if(this.layers[e].ind===t)return e;return-1},SVGRendererBase.prototype.buildItem=function(t){var e,i,s=this.elements;s[t]||99===this.layers[t].ty||(s[t]=!0,e=this.createItem(this.layers[t]),s[t]=e,getExpressionsPlugin()&&(0===this.layers[t].ty&&this.globalData.projectInterface.registerComposition(e),e.initExpressions()),this.appendElementInPos(e,t),this.layers[t].tt&&-1!==(i="tp"in this.layers[t]?this.findIndexByInd(this.layers[t].tp):t-1)&&(this.elements[i]&&!0!==this.elements[i]?(s=s[i].getMatte(this.layers[t].tt),e.setMatte(s)):(this.buildItem(i),this.addPendingElement(e))))},SVGRendererBase.prototype.checkPendingElements=function(){for(;this.pendingElements.length;){var t=this.pendingElements.pop();if(t.checkParenting(),t.data.tt)for(var e=0,i=this.elements.length;e<i;){if(this.elements[e]===t){var s="tp"in t.data?this.findIndexByInd(t.data.tp):e-1,s=this.elements[s].getMatte(this.layers[e].tt);t.setMatte(s);break}e+=1}}},SVGRendererBase.prototype.renderFrame=function(t){if(this.renderedFrame!==t&&!this.destroyed){null===t?t=this.renderedFrame:this.renderedFrame=t,this.globalData.frameNum=t,this.globalData.frameId+=1,this.globalData.projectInterface.currentFrame=t,this.globalData._mdf=!1;var e,i=this.layers.length;for(this.completeLayers||this.checkLayers(t),e=i-1;0<=e;--e)(this.completeLayers||this.elements[e])&&this.elements[e].prepareFrame(t-this.layers[e].st);if(this.globalData._mdf)for(e=0;e<i;e+=1)(this.completeLayers||this.elements[e])&&this.elements[e].renderFrame()}},SVGRendererBase.prototype.appendElementInPos=function(t,e){t=t.getBaseElement();if(t){for(var i,s=0;s<e;)this.elements[s]&&!0!==this.elements[s]&&this.elements[s].getBaseElement()&&
vendor: 3,613 bytes, line 1
1(i=this.elements[s].getBaseElement()),s+=1;i?this.layerElement.insertBefore(t,i):this.layerElement.appendChild(t)}},SVGRendererBase.prototype.hide=function(){this.layerElement.style.display="none"},SVGRendererBase.prototype.show=function(){this.layerElement.style.display="block"},extendPrototype([BaseElement,TransformElement,HierarchyElement,FrameElement,RenderableDOMElement],ICompElement),ICompElement.prototype.initElement=function(t,e,i){this.initFrame(),this.initBaseData(t,e,i),this.initTransform(t,e,i),this.initRenderable(),this.initHierarchy(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),!this.data.xt&&e.progressiveLoad||this.buildAllItems(),this.hide()},ICompElement.prototype.prepareFrame=function(t){if(this._mdf=!1,this.prepareRenderableFrame(t),this.prepareProperties(t,this.isInRange),this.isInRange||this.data.xt){this.tm._placeholder?this.renderedFrame=t/this.data.sr:((t=this.tm.v)===this.data.op&&(t=this.data.op-1),this.renderedFrame=t);var e,t=this.elements.length;for(this.completeLayers||this.checkLayers(this.renderedFrame),e=t-1;0<=e;--e)(this.completeLayers||this.elements[e])&&(this.elements[e].prepareFrame(this.renderedFrame-this.layers[e].st),this.elements[e]._mdf)&&(this._mdf=!0)}},ICompElement.prototype.renderInnerContent=function(){for(var t=this.layers.length,e=0;e<t;e+=1)(this.completeLayers||this.elements[e])&&this.elements[e].renderFrame()},ICompElement.prototype.setElements=function(t){this.elements=t},ICompElement.prototype.getElements=function(){return this.elements},ICompElement.prototype.destroyElements=function(){for(var t=this.layers.length,e=0;e<t;e+=1)this.elements[e]&&this.elements[e].destroy()},ICompElement.prototype.destroy=function(){this.destroyElements(),this.destroyBaseElement()},extendPrototype([SVGRendererBase,ICompElement,SVGBaseElement],SVGCompElement),SVGCompElement.prototype.createComp=function(t){return new SVGCompElement(t,this.globalData,this)},extendPrototype([SVGRendererBase],SVGRenderer),SVGRenderer.prototype.createComp=function(t){return new SVGCompElement(t,this.globalData,this)},ShapeTransformManager.prototype={addTransformSequence:function(t){for(var e=t.length,i="_",s=0;s<e;s+=1)i+=t[s].transform.key+"_";var n=this.sequences[i];return n||(n={transforms:[].concat(t),finalTransform:new Matrix,_mdf:!1},this.sequences[i]=n,this.sequenceList.push(n)),n},processSequence:function(t,e){for(var i=0,s=t.transforms.length,n=e;i<s&&!e;){if(t.transforms[i].transform.mProps._mdf){n=!0;break}i+=1}if(n)for(t.finalTransform.reset(),i=s-1;0<=i;--i)t.finalTransform.multiply(t.transforms[i].transform.mProps.v);t._mdf=n},processSequences:function(t){for(var e=this.sequenceList.length,i=0;i<e;i+=1)this.processSequence(this.sequenceList[i],t)},getNewKey:function(){return this.transform_key_count+=1,"_"+this.transform_key_count}};var lumaLoader=function(){var s="__lottie_element_luma_buffer",n=null,r=null,a=null;function e(){var t,e,i;n||(t=createNS("svg"),e=createNS("filter"),i=createNS("feColorMatrix"),e.setAttribute("id",s),i.setAttribute("type","matrix"),i.setAttribute("color-interpolation-filters","sRGB"),i.setAttribute("values","0.3, 0.3, 0.3, 0, 0, 0.3, 0.3, 0.3, 0, 0, 0.3, 0.3, 0.3, 0, 0, 0.3, 0.3, 0.3, 0, 0"),e.appendChild(i),t.appendChild(e),t.setAttribute("id",s+"_svg"),featureSupport.svgLumaHidden&&(t.style.display="none"),a=t,document.body.appendChild(a),n=createTag("canvas"),(r=n.getContext("2d")).filter="url(#"+s+")",r.fillStyle="rgba(0,0,0,0)",r.fillRect(0,0,1,1))}return{load:e,get:function(t){return n||e(),n.width=t.width,n.height=t.height,r.filter="url
1(#"+s+")",n}}};function createCanvas(t,e){var i;return featureSupport.offscreenCanvas?new OffscreenCanvas(t,e):((i=createTag("canvas")).width=t,i.height=e,i)}var assetLoader={loadLumaCanvas:lumaLoader.load,getLumaCanvas:lumaLoader.get,createCanvas:createCanvas},registeredEffects={};function CVEffects(t){var e,i=t.data.ef?t.data.ef.length:0;for(this.filters=[],e=0;e<i;e+=1){var s=null,n=t.data.ef[e].ty;(s=registeredEffects[n]?new registeredEffects[n].effect(t.effectsManager.effectElements[e],t):s)&&this.filters.push(s)}this.filters.length&&t.addRenderableComponent(this)}function registerEffect(t,e){registeredEffects[t]={effect:e}}function CVMaskElement(t,e){this.data=t,this.element=e,this.masksProperties=this.data.masksProperties||[],this.viewData=createSizedArray(this.masksProperties.length);for(var i=this.masksProperties.length,s=!1,n=0;n<i;n+=1)"n"!==this.masksProperties[n].mode&&(s=!0),this.viewData[n]=ShapePropertyFactory.getShapeProp(this.element,this.masksProperties[n],3);(this.hasMasks=s)&&this.element.addRenderableComponent(this)}function CVBaseElement(){}CVEffects.prototype.renderFrame=function(t){for(var e=this.filters.length,i=0;i<e;i+=1)this.filters[i].renderFrame(t)},CVEffects.prototype.getEffects=function(t){for(var e=this.filters.length,i=[],s=0;s<e;s+=1)this.filters[s].type===t&&i.push(this.filters[s]);return i},CVMaskElement.prototype.renderFrame=function(){if(this.hasMasks){var t,e,i,s,n=this.element.finalTransform.mat,r=this.element.canvasContext,a=this.masksProperties.length;for(r.beginPath(),t=0;t<a;t+=1)if("n"!==this.masksProperties[t].mode){this.masksProperties[t].inv&&(r.moveTo(0,0),r.lineTo(this.element.globalData.compSize.w,0),r.lineTo(this.element.globalData.compSize.w,this.element.globalData.compSize.h),r.lineTo(0,this.element.globalData.compSize.h),r.lineTo(0,0)),s=this.viewData[t].v,e=n.applyToPointArray(s.v[0][0],s.v[0][1],0),r.moveTo(e[0],e[1]);for(var o=s._length,l=1;l<o;l+=1)i=n.applyToTriplePoints(s.o[l-1],s.i[l],s.v[l]),r.bezierCurveTo(i[0],i[1],i[2],i[3],i[4],i[5]);i=n.applyToTriplePoints(s.o[l-1],s.i[0],s.v[0]),r.bezierCurveTo(i[0],i[1],i[2],i[3],i[4],i[5])}this.element.globalData.renderer.save(!0),r.clip()}},CVMaskElement.prototype.getMaskProperty=MaskElement.prototype.getMaskProperty,CVMaskElement.prototype.destroy=function(){this.element=null};var operationsMap={1:"source-in",2:"source-out",3:"source-in",4:"source-out"};function CVShapeData(t,e,i,s){this.styledShapes=[],this.tr=[0,0,0,0,0,0];var n=4;"rc"===e.ty?n=5:"el"===e.ty?n=6:"sr"===e.ty&&(n=7),this.sh=ShapePropertyFactory.getShapeProp(t,e,n,t);for(var r,a=i.length,o=0;o<a;o+=1)i[o].closed||(r={transforms:s.addTransformSequence(i[o].transforms),trNodes:[]},this.styledShapes.push(r),i[o].elements.push(r
vendor: 4,164 bytes, line 1
1))}function CVShapeElement(t,e,i){this.shapes=[],this.shapesData=t.shapes,this.stylesList=[],this.itemsData=[],this.prevViewData=[],this.shapeModifiers=[],this.processedElements=[],this.transformsManager=new ShapeTransformManager,this.initElement(t,e,i)}function CVTextElement(t,e,i){this.textSpans=[],this.yOffset=0,this.fillColorAnim=!1,this.strokeColorAnim=!1,this.strokeWidthAnim=!1,this.stroke=!1,this.fill=!1,this.justifyOffset=0,this.currentRender=null,this.renderType="canvas",this.values={fill:"rgba(0,0,0,0)",stroke:"rgba(0,0,0,0)",sWidth:0,fValue:""},this.initElement(t,e,i)}function CVImageElement(t,e,i){this.assetData=e.getAssetData(t.refId),this.img=e.imageLoader.getAsset(this.assetData),this.initElement(t,e,i)}function CVSolidElement(t,e,i){this.initElement(t,e,i)}function CanvasRendererBase(){}function CanvasContext(){this.opacity=-1,this.transform=createTypedArray("float32",16),this.fillStyle="",this.strokeStyle="",this.lineWidth="",this.lineCap="",this.lineJoin="",this.miterLimit="",this.id=Math.random()}function CVContextData(){var t;for(this.stack=[],this.cArrPos=0,this.cTr=new Matrix,t=0;t<15;t+=1){var e=new CanvasContext;this.stack[t]=e}this._length=15,this.nativeContext=null,this.transformMat=new Matrix,this.currentOpacity=1,this.currentFillStyle="",this.appliedFillStyle="",this.currentStrokeStyle="",this.appliedStrokeStyle="",this.currentLineWidth="",this.appliedLineWidth="",this.currentLineCap="",this.appliedLineCap="",this.currentLineJoin="",this.appliedLineJoin="",this.appliedMiterLimit="",this.currentMiterLimit=""}function CVCompElement(t,e,i){this.completeLayers=!1,this.layers=t.layers,this.pendingElements=[],this.elements=createSizedArray(this.layers.length),this.initElement(t,e,i),this.tm=t.tm?PropertyFactory.getProp(this,t.tm,0,e.frameRate,this):{_placeholder:!0}}function CanvasRenderer(t,e){this.animationItem=t,this.renderConfig={clearCanvas:!e||void 0===e.clearCanvas||e.clearCanvas,context:e&&e.context||null,progressiveLoad:e&&e.progressiveLoad||!1,preserveAspectRatio:e&&e.preserveAspectRatio||"xMidYMid meet",imagePreserveAspectRatio:e&&e.imagePreserveAspectRatio||"xMidYMid slice",contentVisibility:e&&e.contentVisibility||"visible",className:e&&e.className||"",id:e&&e.id||"",runExpressions:!e||void 0===e.runExpressions||e.runExpressions},this.renderConfig.dpr=e&&e.dpr||1,this.animationItem.wrapper&&(this.renderConfig.dpr=e&&e.dpr||window.devicePixelRatio||1),this.renderedFrame=-1,this.globalData={frameNum:-1,_mdf:!1,renderConfig:this.renderConfig,currentGlobalAlpha:-1},this.contextData=new CVContextData,this.elements=[],this.pendingElements=[],this.transformMat=new Matrix,this.completeLayers=!1,this.rendererType="canvas",this.renderConfig.clearCanvas&&(this.ctxTransform=this.contextData.transform.bind(this.contextData),this.ctxOpacity=this.contextData.opacity.bind(this.contextData),this.ctxFillStyle=this.contextData.fillStyle.bind(this.contextData),this.ctxStrokeStyle=this.contextData.strokeStyle.bind(this.contextData),this.ctxLineWidth=this.contextData.lineWidth.bind(this.contextData),this.ctxLineCap=this.contextData.lineCap.bind(this.contextData),this.ctxLineJoin=this.contextData.lineJoin.bind(this.contextData),this.ctxMiterLimit=this.contextData.miterLimit.bind(this.contextData),this.ctxFill=this.contextData.fill.bind(this.contextData),this.ctxFillRect=this.contextData.fillRect.bind(this.contextData),this.ctxStroke=this.contextData.stroke.bind(this.contextData),this.save=this.contextData.save.bind(this.contextData))}function HBaseElement(){}function HSolidElement(t,e,i){this.initElement(t,e,i)}function HShapeElement(t,e,i){this.shapes=[],this.shapesData=t.shapes,this.stylesList=[],this.shapeModifiers=[],this.itemsData=[],this.processedElements=[],this.animatedContents=[],this.shapesContainer=createNS("g"),this.initElement(t,e,i),this.prevViewData=[],this.currentBBox={x:999999,y:-999999,h:0,w:0}}function HTextElement(t,e,i){this.textSpans=[],this.textPaths=[],this.currentBBox={x:999999,y:-999999,h:0,w:0},this.renderType="svg",this.isMasked=!1,this.initElement(t,e,i)}function HCameraElement(t,e,i){this.initFrame(),this.initBaseData(t,e,i),this.initHierarchy();
vendor: 111,001 bytes, line 1
1e=PropertyFactory.getProp;if(this.pe=e(this,t.pe,0,0,this),t.ks.p.s?(this.px=e(this,t.ks.p.x,1,0,this),this.py=e(this,t.ks.p.y,1,0,this),this.pz=e(this,t.ks.p.z,1,0,this)):this.p=e(this,t.ks.p,1,0,this),t.ks.a&&(this.a=e(this,t.ks.a,1,0,this)),t.ks.or.k.length&&t.ks.or.k[0].to)for(var s=t.ks.or.k.length,n=0;n<s;n+=1)t.ks.or.k[n].to=null,t.ks.or.k[n].ti=null;this.or=e(this,t.ks.or,1,degToRads,this),this.or.sh=!0,this.rx=e(this,t.ks.rx,0,degToRads,this),this.ry=e(this,t.ks.ry,0,degToRads,this),this.rz=e(this,t.ks.rz,0,degToRads,this),this.mat=new Matrix,this._prevMat=new Matrix,this._isFirstFrame=!0,this.finalTransform={mProp:this}}function HImageElement(t,e,i){this.assetData=e.getAssetData(t.refId),this.initElement(t,e,i)}function HybridRendererBase(t,e){this.animationItem=t,this.layers=null,this.renderedFrame=-1,this.renderConfig={className:e&&e.className||"",imagePreserveAspectRatio:e&&e.imagePreserveAspectRatio||"xMidYMid slice",hideOnTransparent:!(e&&!1===e.hideOnTransparent),filterSize:{width:e&&e.filterSize&&e.filterSize.width||"400%",height:e&&e.filterSize&&e.filterSize.height||"400%",x:e&&e.filterSize&&e.filterSize.x||"-100%",y:e&&e.filterSize&&e.filterSize.y||"-100%"}},this.globalData={_mdf:!1,frameNum:-1,renderConfig:this.renderConfig},this.pendingElements=[],this.elements=[],this.threeDElements=[],this.destroyed=!1,this.camera=null,this.supports3d=!0,this.rendererType="html"}function HCompElement(t,e,i){this.layers=t.layers,this.supports3d=!t.hasMask,this.completeLayers=!1,this.pendingElements=[],this.elements=this.layers?createSizedArray(this.layers.length):[],this.initElement(t,e,i),this.tm=t.tm?PropertyFactory.getProp(this,t.tm,0,e.frameRate,this):{_placeholder:!0}}function HybridRenderer(t,e){this.animationItem=t,this.layers=null,this.renderedFrame=-1,this.renderConfig={className:e&&e.className||"",imagePreserveAspectRatio:e&&e.imagePreserveAspectRatio||"xMidYMid slice",hideOnTransparent:!(e&&!1===e.hideOnTransparent),filterSize:{width:e&&e.filterSize&&e.filterSize.width||"400%",height:e&&e.filterSize&&e.filterSize.height||"400%",x:e&&e.filterSize&&e.filterSize.x||"-100%",y:e&&e.filterSize&&e.filterSize.y||"-100%"},runExpressions:!e||void 0===e.runExpressions||e.runExpressions},this.globalData={_mdf:!1,frameNum:-1,renderConfig:this.renderConfig},this.pendingElements=[],this.elements=[],this.threeDElements=[],this.destroyed=!1,this.camera=null,this.supports3d=!0,this.rendererType="html"}CVBaseElement.prototype={createElements:function(){},initRendererElement:function(){},createContainerElements:function(){var t,e;1<=this.data.tt&&(this.buffers=[],t=this.globalData.canvasContext,e=assetLoader.createCanvas(t.canvas.width,t.canvas.height),this.buffers.push(e),e=assetLoader.createCanvas(t.canvas.width,t.canvas.height),this.buffers.push(e),3<=this.data.tt)&&!document._isProxy&&assetLoader.loadLumaCanvas(),this.canvasContext=this.globalData.canvasContext,this.transformCanvas=this.globalData.transformCanvas,this.renderableEffectsManager=new CVEffects(this),this.searchEffectTransforms()},createContent:function(){},setBlendMode:function(){var t,e=this.globalData;e.blendMode!==this.data.bm&&(e.blendMode=this.data.bm,t=getBlendMode(this.data.bm),e.canvasContext.globalCompositeOperation=t)},createRenderableComponents:function(){this.maskManager=new CVMaskElement(this.data,this),this.transformEffects=this.renderableEffectsManager.getEffects(effectTypes.TRANSFORM_EFFECT)},hideElement:function(){this.hidden||this.isInRange&&!this.isTransparent||(this.hidden=!0)},showElement:function(){this.isInRange&&!this.isTransparent&&(this.hidden=!1,this._isFirstFrame=!0,this.maskManager._isFirstFrame=!0)},clearCanvas:function(t){t.clearRect(this.transformCanvas.tx,this.transformCanvas.ty,this.transformCanvas.w*this.transformCanvas.sx,this.transformCanvas.h*this.transformCanvas.sy)},prepareLayer:function(){var t;1<=this.data.tt&&(t=this.buffers[0].getContext("2d"),this.clearCanvas(t),t.drawImage(this.canvasContext.canvas,0,0),this.currentTransform=this.canvasContext.getTransform(),this.canvasContext.setTransform(1,0,0,1,0,0),this.clearCanvas(this.canvasContext),this.canvasContext.setTransform(this.currentTransform))},exitLayer:function(){var t,e;1<=this.data.tt&&(e=(t=this.buffers[1]).getContext("2d"),this.clearCanvas(e),e.drawImage(this.canvasContext.canvas,0,0),this.canvasContext.setTransform(1,0,0,1,0,0),this.clearCanvas(this.canvasContext),this.canvasContext.setTransform(this.currentTransform),this.comp.getElementById("tp"in this.data?this.data.tp:this.data.ind-1).renderFrame(!0),this.canvasContext.setTransform(1,0,0,1,0,0),3<=this.data.tt&&!document._isProxy&&((e=assetLoader.getLumaCanvas(this.canvasContext.canvas)).getContext("2d").drawImage(this.canvasContext.canvas,0,0),this.clearCanvas(this.canvasContext),this.canvasContext.drawImage(e,0,0)),this.canvasContext.globalCompositeOperation=operationsMap[this.data.tt],this.canvasContext.drawImage(t,0,0),this.canvasContext.globalCompositeOperation="destination-over",this.canvasContext.drawImage(this.buffers[0],0,0),this.canvasContext.setTransform(this.currentTransform),this.canvasContext.globalCompositeOperation="source-over")},renderFrame:function(t){this.hidden||this.data.hd||1===this.data.td&&!t||(this.renderTransform(),this.renderRenderable(),this.renderLocalTransform(),this.setBlendMode(),t=0===this.data.ty,this.prepareLayer(),this.globalData.renderer.save(t),this.globalData.renderer.ctxTransform(this.finalTransform.localMat.props),this.globalData.renderer.ctxOpacity(this.finalTransform.localOpacity),this.renderInnerContent(),this.globalData.renderer.restore(t),this.exitLayer(),this.maskManager.hasMasks&&this.globalData.renderer.restore(!0),this._isFirstFrame&&(this._isFirstFrame=!1))},destroy:function(){this.canvasContext=null,this.data=null,this.globalData=null,this.maskManager.destroy()},mHelper:new Matrix},CVBaseElement.prototype.hide=CVBaseElement.prototype.hideElement,CVBaseElement.prototype.show=CVBaseElement.prototype.showElement,CVShapeData.prototype.setAsAnimated=SVGShapeData.prototype.setAsAnimated,extendPrototype([BaseElement,TransformElement,CVBaseElement,IShapeElement,HierarchyElement,FrameElement,RenderableElement],CVShapeElement),CVShapeElement.prototype.initElement=RenderableDOMElement.prototype.initElement,CVShapeElement.prototype.transformHelper={opacity:1,_opMdf:!1},CVShapeElement.prototype.dashResetter=[],CVShapeElement.prototype.createContent=function(){this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,!0,[])},CVShapeElement.prototype.createStyleElement=function(t,e){var i,e={data:t,type:t.ty,preTransforms:this.transformsManager.addTransformSequence(e),transforms:[],elements:[],closed:!0===t.hd},s={};return"fl"===t.ty||"st"===t.ty?(s.c=PropertyFactory.getProp(this,t.c,1,255,this),s.c.k||(e.co="rgb("+bmFloor(s.c.v[0])+","+bmFloor(s.c.v[1])+","+bmFloor(s.c.v[2])+")")):"gf"!==t.ty&&"gs"!==t.ty||(s.s=PropertyFactory.getProp(this,t.s,1,null,this),s.e=PropertyFactory.getProp(this,t.e,1,null,this),s.h=PropertyFactory.getProp(this,t.h||{k:0},0,.01,this),s.a=PropertyFactory.getProp(this,t.a||{k:0},0,degToRads,this),s.g=new GradientProperty(this,t.g,this)),s.o=PropertyFactory.getProp(this,t.o,0,.01,this),"st"===t.ty||"gs"===t.ty?(e.lc=lineCapEnum[t.lc||2],e.lj=lineJoinEnum[t.lj||2],1==t.lj&&(e.ml=t.ml),s.w=PropertyFactory.getProp(this,t.w,0,null,this),s.w.k||(e.wi=s.w.v),t.d&&(i=new DashProperty(this,t.d,"canvas",this),s.d=i,s.d.k||(e.da=s.d.dashArray,e.do=s.d.dashoffset[0]))):e.r=2===t.r?"evenodd":"nonzero",this.stylesList.push(e),s.style=e,s},CVShapeElement.prototype.createGroupElement=function(){return{it:[],prevViewData:[]}},CVShapeElement.prototype.createTransformElement=function(t){return{transform:{opacity:1,_opMdf:!1,key:this.transformsManager.getNewKey(),op:PropertyFactory.getProp(this,t.o,0,.01,this),mProps:TransformPropertyFactory.getTransformProperty(this,t,this)}}},CVShapeElement.prototype.createShapeElement=function(t){t=new CVShapeData(this,t,this.stylesList,this.transformsManager);return this.shapes.push(t),this.addShapeToModifiers(t),t},CVShapeElement.prototype.reloadShapes=function(){this._isFirstFrame=!0;for(var t=this.itemsData.length,e=0;e<t;e+=1)this.prevViewData[e]=this.itemsData[e];for(this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,!0,[]),t=this.dynamicProperties.length,e=0;e<t;e+=1)this.dynamicProperties[e].getValue();this.renderModifiers(),this.transformsManager.processSequences(this._isFirstFrame)},CVShapeElement.prototype.addTransformToStyleList=function(t){for(var e=this.stylesList.length,i=0;i<e;i+=1)this.stylesList[i].closed||this.stylesList[i].transforms.push(t)},CVShapeElement.prototype.removeTransformFromStyleList=function(){for(var t=this.stylesList.length,e=0;e<t;e+=1)this.stylesList[e].closed||this.stylesList[e].transforms.pop()},CVShapeElement.prototype.closeStyles=function(t){for(var e=t.length,i=0;i<e;i+=1)t[i].closed=!0},CVShapeElement.prototype.searchShapes=function(t,e,i,s,n){for(var r,a,o,l,h,c=t.length-1,p=[],u=[],d=[].concat(n),f=c;0<=f;--f){if((o=this.searchProcessedElement(t[f]))?e[f]=i[o-1]:t[f]._shouldRender=s,"fl"===t[f].ty||"st"===t[f].ty||"gf"===t[f].ty||"gs"===t[f].ty)o?e[f].style.closed=!1:e[f]=this.createStyleElement(t[f],d),p.push(e[f].style);else if("gr"===t[f].ty){if(o)for(a=e[f].it.length,r=0;r<a;r+=1)e[f].prevViewData[r]=e[f].it[r];else e[f]=this.createGroupElement(t[f]);this.searchShapes(t[f].it,e[f].it,e[f].prevViewData,s,d)}else"tr"===t[f].ty?(o||(h=this.createTransformElement(t[f]),e[f]=h),d.push(e[f]),this.addTransformToStyleList(e[f])):"sh"===t[f].ty||"rc"===t[f].ty||"el"===t[f].ty||"sr"===t[f].ty?o||(e[f]=this.createShapeElement(t[f])):"tm"===t[f].ty||"rd"===t[f].ty||"pb"===t[f].ty||"zz"===t[f].ty||"op"===t[f].ty?(o?(l=e[f]).closed=!1:((l=ShapeModifiers.getModifier(t[f].ty)).init(this,t[f]),e[f]=l,this.shapeModifiers.push(l)),u.push(l)):"rp"===t[f].ty&&(o?(l=e[f]).closed=!0:(l=ShapeModifiers.getModifier(t[f].ty),(e[f]=l).init(this,t,f,e),this.shapeModifiers.push(l),s=!1),u.push(l));this.addProcessedElement(t[f],f+1)}for(this.removeTransformFromStyleList(),this.closeStyles(p),c=u.length,f=0;f<c;f+=1)u[f].closed=!0},CVShapeElement.prototype.renderInnerContent=function(){this.transformHelper.opacity=1,this.transformHelper._opMdf=!1,this.renderModifiers(),this.transformsManager.processSequences(this._isFirstFrame),this.renderShape(this.transformHelper,this.shapesData,this.itemsData,!0)},CVShapeElement.prototype.renderShapeTransform=function(t,e){(t._opMdf||e.op._mdf||this._isFirstFrame)&&(e.opacity=t.opacity,e.opacity*=e.op.v,e._opMdf=!0)},CVShapeElement.prototype.drawLayer=function(){for(var t,e,i,s,n,r,a,o,l=this.stylesList.length,h=this.globalData.renderer,c=this.globalData.canvasContext,p=0;p<l;p+=1)if(("st"!==(a=(o=this.stylesList[p]).type)&&"gs"!==a||0!==o.wi)&&o.data._shouldRender&&0!==o.coOp&&0!==this.globalData.currentGlobalAlpha){for(h.save(),n=o.elements,"st"===a||"gs"===a?(h.ctxStrokeStyle("st"===a?o.co:o.grd),h.ctxLineWidth(o.wi),h.ctxLineCap(o.lc),h.ctxLineJoin(o.lj),h.ctxMiterLimit(o.ml||0)):h.ctxFillStyle("fl"===a?o.co:o.grd),h.ctxOpacity(o.coOp),"st"!==a&&"gs"!==a&&c.beginPath(),h.ctxTransform(o.preTransforms.finalTransform.props),e=n.length,t=0;t<e;t+=1){for("st"!==a&&"gs"!==a||(c.beginPath(),o.da&&(c.setLineDash(o.da),c.lineDashOffset=o.do)),s=(r=n[t].trNodes).length,i=0;i<s;i+=1)"m"===r[i].t?c.moveTo(r[i].p[0],r[i].p[1]):"c"===r[i].t?c.bezierCurveTo(r[i].pts[0],r[i].pts[1],r[i].pts[2],r[i].pts[3],r[i].pts[4],r[i].pts[5]):c.closePath();"st"!==a&&"gs"!==a||(h.ctxStroke(),o.da&&c.setLineDash(this.dashResetter))}"st"!==a&&"gs"!==a&&this.globalData.renderer.ctxFill(o.r),h.restore()}},CVShapeElement.prototype.renderShape=function(t,e,i,s){for(var n=t,r=e.length-1;0<=r;--r)"tr"===e[r].ty?(n=i[r].transform,this.renderShapeTransform(t,n)):"sh"===e[r].ty||"el"===e[r].ty||"rc"===e[r].ty||"sr"===e[r].ty?this.renderPath(e[r],i[r]):"fl"===e[r].ty?this.renderFill(e[r],i[r],n):"st"===e[r].ty?this.renderStroke(e[r],i[r],n):"gf"===e[r].ty||"gs"===e[r].ty?this.renderGradientFill(e[r],i[r],n):"gr"===e[r].ty?this.renderShape(n,e[r].it,i[r].it):e[r].ty;s&&this.drawLayer()},CVShapeElement.prototype.renderStyledShape=function(t,e){if(this._isFirstFrame||e._mdf||t.transforms._mdf){for(var i,s,n=t.trNodes,r=e.paths,a=r._length,o=(n.length=0,t.transforms.finalTransform),l=0;l<a;l+=1){var h=r.shapes[l];if(h&&h.v){for(s=h._length,i=1;i<s;i+=1)1===i&&n.push({t:"m",p:o.applyToPointArray(h.v[0][0],h.v[0][1],0)}),n.push({t:"c",pts:o.applyToTriplePoints(h.o[i-1],h.i[i],h.v[i])});1===s&&n.push({t:"m",p:o.applyToPointArray(h.v[0][0],h.v[0][1],0)}),h.c&&s&&(n.push({t:"c",pts:o.applyToTriplePoints(h.o[i-1],h.i[0],h.v[0])}),n.push({t:"z"}))}}t.trNodes=n}},CVShapeElement.prototype.renderPath=function(t,e){if(!0!==t.hd&&t._shouldRender)for(var i=e.styledShapes.length,s=0;s<i;s+=1)this.renderStyledShape(e.styledShapes[s],e.sh)},CVShapeElement.prototype.renderFill=function(t,e,i){var s=e.style;(e.c._mdf||this._isFirstFrame)&&(s.co="rgb("+bmFloor(e.c.v[0])+","+bmFloor(e.c.v[1])+","+bmFloor(e.c.v[2])+")"),(e.o._mdf||i._opMdf||this._isFirstFrame)&&(s.coOp=e.o.v*i.opacity)},CVShapeElement.prototype.renderGradientFill=function(t,e,i){var s=e.style;if(!s.grd||e.g._mdf||e.s._mdf||e.e._mdf||1!==t.t&&(e.h._mdf||e.a._mdf)){for(var n,r,a,o,l=this.globalData.canvasContext,h=e.s.v,c=e.e.v,p=(o=1===t.t?l.createLinearGradient(h[0],h[1],c[0],c[1]):(n=Math.sqrt(Math.pow(h[0]-c[0],2)+Math.pow(h[1]-c[1],2)),c=Math.atan2(c[1]-h[1],c[0]-h[0]),1<=(r=e.h.v)?r=.99:r<=-1&&(r=-.99),r=n*r,a=Math.cos(c+e.a.v)*r+h[0],c=Math.sin(c+e.a.v)*r+h[1],l.createRadialGradient(a,c,0,h[0],h[1],n)),t.g.p),u=e.g.c,d=1,f=0;f<p;f+=1)e.g._hasOpacity&&e.g._collapsable&&(d=e.g.o[2*f+1]),o.addColorStop(u[4*f]/100,"rgba("+u[4*f+1]+","+u[4*f+2]+","+u[4*f+3]+","+d+")");s.grd=o}s.coOp=e.o.v*i.opacity},CVShapeElement.prototype.renderStroke=function(t,e,i){var s=e.style,n=e.d;n&&(n._mdf||this._isFirstFrame)&&(s.da=n.dashArray,s.do=n.dashoffset[0]),(e.c._mdf||this._isFirstFrame)&&(s.co="rgb("+bmFloor(e.c.v[0])+","+bmFloor(e.c.v[1])+","+bmFloor(e.c.v[2])+")"),(e.o._mdf||i._opMdf||this._isFirstFrame)&&(s.coOp=e.o.v*i.opacity),(e.w._mdf||this._isFirstFrame)&&(s.wi=e.w.v)},CVShapeElement.prototype.destroy=function(){this.shapesData=null,this.globalData=null,this.canvasContext=null,this.stylesList.length=0,this.itemsData.length=0},extendPrototype([BaseElement,TransformElement,CVBaseElement,HierarchyElement,FrameElement,RenderableElement,ITextElement],CVTextElement),CVTextElement.prototype.tHelper=createTag("canvas").getContext("2d"),CVTextElement.prototype.buildNewText=function(){var t=this.textProperty.currentData,e=(this.renderedLetters=createSizedArray(t.l?t.l.length:0),!1),e=(t.fc?(e=!0,this.values.fill=this.buildColor(t.fc)):this.values.fill="rgba(0,0,0,0)",this.fill=e,!1);t.sc&&(e=!0,this.values.stroke=this.buildColor(t.sc),this.values.sWidth=t.sw);for(var i,s,n,r,a,o,l,h,c=this.globalData.fontManager.getFontByName(t.f),p=t.l,u=this.mHelper,d=(this.stroke=e,this.values.fValue=t.finalSize+"px "+this.globalData.fontManager.getFontByName(t.f).fFamily,i=t.finalText.length,this.data.singleShape),f=.001*t.tr*t.finalSize,m=0,g=0,y=!0,v=0,b=0;b<i;b+=1){s=(s=this.globalData.fontManager.getCharData(t.finalText[b],c.fStyle,this.globalData.fontManager.getFontByName(t.f).fFamily))&&s.data||{},u.reset(),d&&p[b].n&&(m=-f,g=g+t.yOffset+(y?1:0),y=!1),o=(a=s.shapes?s.shapes[0].it:[]).length,u.scale(t.finalSize/100,t.finalSize/100),d&&this.applyTextPropertiesToMatrix(t,u,p[b].line,m,g);for(var _=createSizedArray(o-1),x=0,C=0;C<o;C+=1)if("sh"===a[C].ty){for(r=a[C].ks.k.i.length,l=a[C].ks.k,h=[],n=1;n<r;n+=1)1===n&&h.push(u.applyToX(l.v[0][0],l.v[0][1],0),u.applyToY(l.v[0][0],l.v[0][1],0)),h.push(u.applyToX(l.o[n-1][0],l.o[n-1][1],0),u.applyToY(l.o[n-1][0],l.o[n-1][1],0),u.applyToX(l.i[n][0],l.i[n][1],0),u.applyToY(l.i[n][0],l.i[n][1],0),u.applyToX(l.v[n][0],l.v[n][1],0),u.applyToY(l.v[n][0],l.v[n][1],0));h.push(u.applyToX(l.o[n-1][0],l.o[n-1][1],0),u.applyToY(l.o[n-1][0],l.o[n-1][1],0),u.applyToX(l.i[0][0],l.i[0][1],0),u.applyToY(l.i[0][0],l.i[0][1],0),u.applyToX(l.v[0][0],l.v[0][1],0),u.applyToY(l.v[0][0],l.v[0][1],0)),_[x]=h,x+=1}d&&(m=m+p[b].l+f),this.textSpans[v]?this.textSpans[v].elem=_:this.textSpans[v]={elem:_},v+=1}},CVTextElement.prototype.renderInnerContent=function(){var t,e,i,s;this.validateText(),this.canvasContext.font=this.values.fValue,this.globalData.renderer.ctxLineCap("butt"),this.globalData.renderer.ctxLineJoin("miter"),this.globalData.renderer.ctxMiterLimit(4),this.data.singleShape||this.textAnimator.getMeasures(this.textProperty.currentData,this.lettersChangedFlag);for(var n,r,a,o=this.textAnimator.renderedLetters,l=this.textProperty.currentData.l,h=l.length,c=null,p=null,u=null,d=this.globalData.renderer,f=0;f<h;f+=1)if(!l[f].n){if((n=o[f])&&(d.save(),d.ctxTransform(n.p),d.ctxOpacity(n.o)),this.fill){for(n&&n.fc?c!==n.fc&&(d.ctxFillStyle(n.fc),c=n.fc):c!==this.values.fill&&(c=this.values.fill,d.ctxFillStyle(this.values.fill)),e=(r=this.textSpans[f].elem).length,this.globalData.canvasContext.beginPath(),t=0;t<e;t+=1)for(s=(a=r[t]).length,this.globalData.canvasContext.moveTo(a[0],a[1]),i=2;i<s;i+=6)this.globalData.canvasContext.bezierCurveTo(a[i],a[i+1],a[i+2],a[i+3],a[i+4],a[i+5]);this.globalData.canvasContext.closePath(),d.ctxFill()}if(this.stroke){for(n&&n.sw?u!==n.sw&&(u=n.sw,d.ctxLineWidth(n.sw)):u!==this.values.sWidth&&(u=this.values.sWidth,d.ctxLineWidth(this.values.sWidth)),n&&n.sc?p!==n.sc&&(p=n.sc,d.ctxStrokeStyle(n.sc)):p!==this.values.stroke&&(p=this.values.stroke,d.ctxStrokeStyle(this.values.stroke)),e=(r=this.textSpans[f].elem).length,this.globalData.canvasContext.beginPath(),t=0;t<e;t+=1)for(s=(a=r[t]).length,this.globalData.canvasContext.moveTo(a[0],a[1]),i=2;i<s;i+=6)this.globalData.canvasContext.bezierCurveTo(a[i],a[i+1],a[i+2],a[i+3],a[i+4],a[i+5]);this.globalData.canvasContext.closePath(),d.ctxStroke()}n&&this.globalData.renderer.restore()}},extendPrototype([BaseElement,TransformElement,CVBaseElement,HierarchyElement,FrameElement,RenderableElement],CVImageElement),CVImageElement.prototype.initElement=SVGShapeElement.prototype.initElement,CVImageElement.prototype.prepareFrame=IImageElement.prototype.prepareFrame,CVImageElement.prototype.createContent=function(){var t,e,i,s,n,r,a,o,l;!this.img.width||this.assetData.w===this.img.width&&this.assetData.h===this.img.height||((t=createTag("canvas")).width=this.assetData.w,t.height=this.assetData.h,s=t.getContext("2d"),n=this.img.width,r=this.img.height,o=this.assetData.w/this.assetData.h,l=this.assetData.pr||this.globalData.renderConfig.imagePreserveAspectRatio,o<(a=n/r)&&"xMidYMid slice"===l||a<o&&"xMidYMid slice"!==l?e=(i=r)*o:i=(e=n)/o,s.drawImage(this.img,(n-e)/2,(r-i)/2,e,i,0,0,this.assetData.w,this.assetData.h),this.img=t)},CVImageElement.prototype.renderInnerContent=function(){this.canvasContext.drawImage(this.img,0,0)},CVImageElement.prototype.destroy=function(){this.img=null},extendPrototype([BaseElement,TransformElement,CVBaseElement,HierarchyElement,FrameElement,RenderableElement],CVSolidElement),CVSolidElement.prototype.initElement=SVGShapeElement.prototype.initElement,CVSolidElement.prototype.prepareFrame=IImageElement.prototype.prepareFrame,CVSolidElement.prototype.renderInnerContent=function(){this.globalData.renderer.ctxFillStyle(this.data.sc),this.globalData.renderer.ctxFillRect(0,0,this.data.sw,this.data.sh)},extendPrototype([BaseRenderer],CanvasRendererBase),CanvasRendererBase.prototype.createShape=function(t){return new CVShapeElement(t,this.globalData,this)},CanvasRendererBase.prototype.createText=function(t){return new CVTextElement(t,this.globalData,this)},CanvasRendererBase.prototype.createImage=function(t){return new CVImageElement(t,this.globalData,this)},CanvasRendererBase.prototype.createSolid=function(t){return new CVSolidElement(t,this.globalData,this)},CanvasRendererBase.prototype.createNull=SVGRenderer.prototype.createNull,CanvasRendererBase.prototype.ctxTransform=function(t){1===t[0]&&0===t[1]&&0===t[4]&&1===t[5]&&0===t[12]&&0===t[13]||this.canvasContext.transform(t[0],t[1],t[4],t[5],t[12],t[13])},CanvasRendererBase.prototype.ctxOpacity=function(t){this.canvasContext.globalAlpha*=t<0?0:t},CanvasRendererBase.prototype.ctxFillStyle=function(t){this.canvasContext.fillStyle=t},CanvasRendererBase.prototype.ctxStrokeStyle=function(t){this.canvasContext.strokeStyle=t},CanvasRendererBase.prototype.ctxLineWidth=function(t){this.canvasContext.lineWidth=t},CanvasRendererBase.prototype.ctxLineCap=function(t){this.canvasContext.lineCap=t},CanvasRendererBase.prototype.ctxLineJoin=function(t){this.canvasContext.lineJoin=t},CanvasRendererBase.prototype.ctxMiterLimit=function(t){this.canvasContext.miterLimit=t},CanvasRendererBase.prototype.ctxFill=function(t){this.canvasContext.fill(t)},CanvasRendererBase.prototype.ctxFillRect=function(t,e,i,s){this.canvasContext.fillRect(t,e,i,s)},CanvasRendererBase.prototype.ctxStroke=function(){this.canvasContext.stroke()},CanvasRendererBase.prototype.reset=function(){this.renderConfig.clearCanvas?this.contextData.reset():this.canvasContext.restore()},CanvasRendererBase.prototype.save=function(){this.canvasContext.save()},CanvasRendererBase.prototype.restore=function(t){this.renderConfig.clearCanvas?(t&&(this.globalData.blendMode="source-over"),this.contextData.restore(t)):this.canvasContext.restore()},CanvasRendererBase.prototype.configAnimation=function(t){var e,i;this.animationItem.wrapper?(this.animationItem.container=createTag("canvas"),(e=this.animationItem.container.style).width="100%",e.height="100%",e.transformOrigin=i="0px 0px 0px",e.mozTransformOrigin=i,e.webkitTransformOrigin=i,e["-webkit-transform"]=i,e.contentVisibility=this.renderConfig.contentVisibility,this.animationItem.wrapper.appendChild(this.animationItem.container),this.canvasContext=this.animationItem.container.getContext("2d"),this.renderConfig.className&&this.animationItem.container.setAttribute("class",this.renderConfig.className),this.renderConfig.id&&this.animationItem.container.setAttribute("id",this.renderConfig.id)):this.canvasContext=this.renderConfig.context,this.contextData.setContext(this.canvasContext),this.data=t,this.layers=t.layers,this.transformCanvas={w:t.w,h:t.h,sx:0,sy:0,tx:0,ty:0},this.setupGlobalData(t,document.body),this.globalData.canvasContext=this.canvasContext,(this.globalData.renderer=this).globalData.isDashed=!1,this.globalData.progressiveLoad=this.renderConfig.progressiveLoad,this.globalData.transformCanvas=this.transformCanvas,this.elements=createSizedArray(t.layers.length),this.updateContainerSize()},CanvasRendererBase.prototype.updateContainerSize=function(t,e){var i,s,n,r,a;this.reset(),t?(s=e,this.canvasContext.canvas.width=i=t,this.canvasContext.canvas.height=s):(s=this.animationItem.wrapper&&this.animationItem.container?(i=this.animationItem.wrapper.offsetWidth,this.animationItem.wrapper.offsetHeight):(i=this.canvasContext.canvas.width,this.canvasContext.canvas.height),this.canvasContext.canvas.width=i*this.renderConfig.dpr,this.canvasContext.canvas.height=s*this.renderConfig.dpr),-1!==this.renderConfig.preserveAspectRatio.indexOf("meet")||-1!==this.renderConfig.preserveAspectRatio.indexOf("slice")?(t=(e=this.renderConfig.preserveAspectRatio.split(" "))[1]||"meet",r=(e=e[0]||"xMidYMid").substr(0,4),e=e.substr(4),(n=this.transformCanvas.w/this.transformCanvas.h)>(a=i/s)&&"meet"===t||n<a&&"slice"===t?(this.transformCanvas.sx=i/(this.transformCanvas.w/this.renderConfig.dpr),this.transformCanvas.sy=i/(this.transformCanvas.w/this.renderConfig.dpr)):(this.transformCanvas.sx=s/(this.transformCanvas.h/this.renderConfig.dpr),this.transformCanvas.sy=s/(this.transformCanvas.h/this.renderConfig.dpr)),this.transformCanvas.tx="xMid"===r&&(n<a&&"meet"===t||a<n&&"slice"===t)?(i-this.transformCanvas.w*(s/this.transformCanvas.h))/2*this.renderConfig.dpr:"xMax"===r&&(n<a&&"meet"===t||a<n&&"slice"===t)?(i-this.transformCanvas.w*(s/this.transformCanvas.h))*this.renderConfig.dpr:0,this.transformCanvas.ty="YMid"===e&&(a<n&&"meet"===t||n<a&&"slice"===t)?(s-this.transformCanvas.h*(i/this.transformCanvas.w))/2*this.renderConfig.dpr:"YMax"===e&&(a<n&&"meet"===t||n<a&&"slice"===t)?(s-this.transformCanvas.h*(i/this.transformCanvas.w))*this.renderConfig.dpr:0):("none"===this.renderConfig.preserveAspectRatio?(this.transformCanvas.sx=i/(this.transformCanvas.w/this.renderConfig.dpr),this.transformCanvas.sy=s/(this.transformCanvas.h/this.renderConfig.dpr)):(this.transformCanvas.sx=this.renderConfig.dpr,this.transformCanvas.sy=this.renderConfig.dpr),this.transformCanvas.tx=0,this.transformCanvas.ty=0),this.transformCanvas.props=[this.transformCanvas.sx,0,0,0,0,this.transformCanvas.sy,0,0,0,0,1,0,this.transformCanvas.tx,this.transformCanvas.ty,0,1],this.ctxTransform(this.transformCanvas.props),this.canvasContext.beginPath(),this.canvasContext.rect(0,0,this.transformCanvas.w,this.transformCanvas.h),this.canvasContext.closePath(),this.canvasContext.clip(),this.renderFrame(this.renderedFrame,!0)},CanvasRendererBase.prototype.destroy=function(){var t;for(this.renderConfig.clearCanvas&&this.animationItem.wrapper&&(this.animationItem.wrapper.innerText=""),t=(this.layers?this.layers.length:0)-1;0<=t;--t)this.elements[t]&&this.elements[t].destroy&&this.elements[t].destroy();this.elements.length=0,this.globalData.canvasContext=null,this.animationItem.container=null,this.destroyed=!0},CanvasRendererBase.prototype.renderFrame=function(t,e){if((this.renderedFrame!==t||!0!==this.renderConfig.clearCanvas||e)&&!this.destroyed&&-1!==t){this.renderedFrame=t,this.globalData.frameNum=t-this.animationItem._isFirstFrame,this.globalData.frameId+=1,this.globalData._mdf=!this.renderConfig.clearCanvas||e,this.globalData.projectInterface.currentFrame=t;var i,e=this.layers.length;for(this.completeLayers||this.checkLayers(t),i=e-1;0<=i;--i)(this.completeLayers||this.elements[i])&&this.elements[i].prepareFrame(t-this.layers[i].st);if(this.globalData._mdf){for(!0===this.renderConfig.clearCanvas?this.canvasContext.clearRect(0,0,this.transformCanvas.w,this.transformCanvas.h):this.save(),i=e-1;0<=i;--i)(this.completeLayers||this.elements[i])&&this.elements[i].renderFrame();!0!==this.renderConfig.clearCanvas&&this.restore()}}},CanvasRendererBase.prototype.buildItem=function(t){var e,i=this.elements;i[t]||99===this.layers[t].ty||(e=this.createItem(this.layers[t],this,this.globalData),(i[t]=e).initExpressions())},CanvasRendererBase.prototype.checkPendingElements=function(){for(;this.pendingElements.length;)this.pendingElements.pop().checkParenting()},CanvasRendererBase.prototype.hide=function(){this.animationItem.container.style.display="none"},CanvasRendererBase.prototype.show=function(){this.animationItem.container.style.display="block"},CVContextData.prototype.duplicate=function(){for(var t=2*this._length,e=0,e=this._length;e<t;e+=1)this.stack[e]=new CanvasContext;this._length=t},CVContextData.prototype.reset=function(){this.cArrPos=0,this.cTr.reset(),this.stack[this.cArrPos].opacity=1},CVContextData.prototype.restore=function(t){--this.cArrPos;for(var e,i=this.stack[this.cArrPos],s=i.transform,n=this.cTr.props,r=0;r<16;r+=1)n[r]=s[r];t&&(this.nativeContext.restore(),e=this.stack[this.cArrPos+1],this.appliedFillStyle=e.fillStyle,this.appliedStrokeStyle=e.strokeStyle,this.appliedLineWidth=e.lineWidth,this.appliedLineCap=e.lineCap,this.appliedLineJoin=e.lineJoin,this.appliedMiterLimit=e.miterLimit),this.nativeContext.setTransform(s[0],s[1],s[4],s[5],s[12],s[13]),(t||-1!==i.opacity&&this.currentOpacity!==i.opacity)&&(this.nativeContext.globalAlpha=i.opacity,this.currentOpacity=i.opacity),this.currentFillStyle=i.fillStyle,this.currentStrokeStyle=i.strokeStyle,this.currentLineWidth=i.lineWidth,this.currentLineCap=i.lineCap,this.currentLineJoin=i.lineJoin,this.currentMiterLimit=i.miterLimit},CVContextData.prototype.save=function(t){t&&this.nativeContext.save();var e=this.cTr.props;this._length<=this.cArrPos&&this.duplicate();for(var i=this.stack[this.cArrPos],s=0;s<16;s+=1)i.transform[s]=e[s];this.cArrPos+=1;t=this.stack[this.cArrPos];t.opacity=i.opacity,t.fillStyle=i.fillStyle,t.strokeStyle=i.strokeStyle,t.lineWidth=i.lineWidth,t.lineCap=i.lineCap,t.lineJoin=i.lineJoin,t.miterLimit=i.miterLimit},CVContextData.prototype.setOpacity=function(t){this.stack[this.cArrPos].opacity=t},CVContextData.prototype.setContext=function(t){this.nativeContext=t},CVContextData.prototype.fillStyle=function(t){this.stack[this.cArrPos].fillStyle!==t&&(this.currentFillStyle=t,this.stack[this.cArrPos].fillStyle=t)},CVContextData.prototype.strokeStyle=function(t){this.stack[this.cArrPos].strokeStyle!==t&&(this.currentStrokeStyle=t,this.stack[this.cArrPos].strokeStyle=t)},CVContextData.prototype.lineWidth=function(t){this.stack[this.cArrPos].lineWidth!==t&&(this.currentLineWidth=t,this.stack[this.cArrPos].lineWidth=t)},CVContextData.prototype.lineCap=function(t){this.stack[this.cArrPos].lineCap!==t&&(this.currentLineCap=t,this.stack[this.cArrPos].lineCap=t)},CVContextData.prototype.lineJoin=function(t){this.stack[this.cArrPos].lineJoin!==t&&(this.currentLineJoin=t,this.stack[this.cArrPos].lineJoin=t)},CVContextData.prototype.miterLimit=function(t){this.stack[this.cArrPos].miterLimit!==t&&(this.currentMiterLimit=t,this.stack[this.cArrPos].miterLimit=t)},CVContextData.prototype.transform=function(t){this.transformMat.cloneFromProps(t);t=this.cTr,this.transformMat.multiply(t),t.cloneFromProps(this.transformMat.props),t=t.props;this.nativeContext.setTransform(t[0],t[1],t[4],t[5],t[12],t[13])},CVContextData.prototype.opacity=function(t){var e=this.stack[this.cArrPos].opacity;this.stack[this.cArrPos].opacity!==(e*=t<0?0:t)&&(this.currentOpacity!==t&&(this.nativeContext.globalAlpha=t,this.currentOpacity=t),this.stack[this.cArrPos].opacity=e)},CVContextData.prototype.fill=function(t){this.appliedFillStyle!==this.currentFillStyle&&(this.appliedFillStyle=this.currentFillStyle,this.nativeContext.fillStyle=this.appliedFillStyle),this.nativeContext.fill(t)},CVContextData.prototype.fillRect=function(t,e,i,s){this.appliedFillStyle!==this.currentFillStyle&&(this.appliedFillStyle=this.currentFillStyle,this.nativeContext.fillStyle=this.appliedFillStyle),this.nativeContext.fillRect(t,e,i,s)},CVContextData.prototype.stroke=function(){this.appliedStrokeStyle!==this.currentStrokeStyle&&(this.appliedStrokeStyle=this.currentStrokeStyle,this.nativeContext.strokeStyle=this.appliedStrokeStyle),this.appliedLineWidth!==this.currentLineWidth&&(this.appliedLineWidth=this.currentLineWidth,this.nativeContext.lineWidth=this.appliedLineWidth),this.appliedLineCap!==this.currentLineCap&&(this.appliedLineCap=this.currentLineCap,this.nativeContext.lineCap=this.appliedLineCap),this.appliedLineJoin!==this.currentLineJoin&&(this.appliedLineJoin=this.currentLineJoin,this.nativeContext.lineJoin=this.appliedLineJoin),this.appliedMiterLimit!==this.currentMiterLimit&&(this.appliedMiterLimit=this.currentMiterLimit,this.nativeContext.miterLimit=this.appliedMiterLimit),this.nativeContext.stroke()},extendPrototype([CanvasRendererBase,ICompElement,CVBaseElement],CVCompElement),CVCompElement.prototype.renderInnerContent=function(){var t,e=this.canvasContext;for(e.beginPath(),e.moveTo(0,0),e.lineTo(this.data.w,0),e.lineTo(this.data.w,this.data.h),e.lineTo(0,this.data.h),e.lineTo(0,0),e.clip(),t=this.layers.length-1;0<=t;--t)(this.completeLayers||this.elements[t])&&this.elements[t].renderFrame()},CVCompElement.prototype.destroy=function(){for(var t=this.layers.length-1;0<=t;--t)this.elements[t]&&this.elements[t].destroy();this.layers=null,this.elements=null},CVCompElement.prototype.createComp=function(t){return new CVCompElement(t,this.globalData,this)},extendPrototype([CanvasRendererBase],CanvasRenderer),CanvasRenderer.prototype.createComp=function(t){return new CVCompElement(t,this.globalData,this)},HBaseElement.prototype={checkBlendMode:function(){},initRendererElement:function(){this.baseElement=createTag(this.data.tg||"div"),this.data.hasMask?(this.svgElement=createNS("svg"),this.layerElement=createNS("g"),this.maskedElement=this.layerElement,this.svgElement.appendChild(this.layerElement),this.baseElement.appendChild(this.svgElement)):this.layerElement=this.baseElement,styleDiv(this.baseElement)},createContainerElements:function(){this.renderableEffectsManager=new CVEffects(this),this.transformedElement=this.baseElement,this.maskedElement=this.layerElement,this.data.ln&&this.layerElement.setAttribute("id",this.data.ln),this.data.cl&&this.layerElement.setAttribute("class",this.data.cl),0!==this.data.bm&&this.setBlendMode()},renderElement:function(){var t,e=this.transformedElement?this.transformedElement.style:{};this.finalTransform._matMdf&&(t=this.finalTransform.mat.toCSS(),e.transform=t,e.webkitTransform=t),this.finalTransform._opMdf&&(e.opacity=this.finalTransform.mProp.o.v)},renderFrame:function(){this.data.hd||this.hidden||(this.renderTransform(),this.renderRenderable(),this.renderElement(),this.renderInnerContent(),this._isFirstFrame&&(this._isFirstFrame=!1))},destroy:function(){this.layerElement=null,this.transformedElement=null,this.matteElement&&(this.matteElement=null),this.maskManager&&(this.maskManager.destroy(),this.maskManager=null)},createRenderableComponents:function(){this.maskManager=new MaskElement(this.data,this,this.globalData)},addEffects:function(){},setMatte:function(){}},HBaseElement.prototype.getBaseElement=SVGBaseElement.prototype.getBaseElement,HBaseElement.prototype.destroyBaseElement=HBaseElement.prototype.destroy,HBaseElement.prototype.buildElementParenting=BaseRenderer.prototype.buildElementParenting,extendPrototype([BaseElement,TransformElement,HBaseElement,HierarchyElement,FrameElement,RenderableDOMElement],HSolidElement),HSolidElement.prototype.createContent=function(){var t;this.data.hasMask?((t=createNS("rect")).setAttribute("width",this.data.sw),t.setAttribute("height",this.data.sh),t.setAttribute("fill",this.data.sc),this.svgElement.setAttribute("width",this.data.sw),this.svgElement.setAttribute("height",this.data.sh)):((t=createTag("div")).style.width=this.data.sw+"px",t.style.height=this.data.sh+"px",t.style.backgroundColor=this.data.sc),this.layerElement.appendChild(t)},extendPrototype([BaseElement,TransformElement,HSolidElement,SVGShapeElement,HBaseElement,HierarchyElement,FrameElement,RenderableElement],HShapeElement),HShapeElement.prototype._renderShapeFrame=HShapeElement.prototype.renderInnerContent,HShapeElement.prototype.createContent=function(){var t,e;this.baseElement.style.fontSize=0,this.data.hasMask?(this.layerElement.appendChild(this.shapesContainer),t=this.svgElement):(t=createNS("svg"),e=this.comp.data||this.globalData.compSize,t.setAttribute("width",e.w),t.setAttribute("height",e.h),t.appendChild(this.shapesContainer),this.layerElement.appendChild(t)),this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.shapesContainer,0,[],!0),this.filterUniqueShapes(),this.shapeCont=t},HShapeElement.prototype.getTransformedPoint=function(t,e){for(var i=t.length,s=0;s<i;s+=1)e=t[s].mProps.v.applyToPointArray(e[0],e[1],0);return e},HShapeElement.prototype.calculateShapeBoundingBox=function(t,e){var i,s,n,r,a,o=t.sh.v,l=t.transformers,h=o._length;if(!(h<=1)){for(i=0;i<h-1;i+=1)s=this.getTransformedPoint(l,o.v[i]),n=this.getTransformedPoint(l,o.o[i]),r=this.getTransformedPoint(l,o.i[i+1]),a=this.getTransformedPoint(l,o.v[i+1]),this.checkBounds(s,n,r,a,e);o.c&&(s=this.getTransformedPoint(l,o.v[i]),n=this.getTransformedPoint(l,o.o[i]),r=this.getTransformedPoint(l,o.i[0]),a=this.getTransformedPoint(l,o.v[0]),this.checkBounds(s,n,r,a,e))}},HShapeElement.prototype.checkBounds=function(t,e,i,s,n){this.getBoundsOfCurve(t,e,i,s);t=this.shapeBoundingBox;n.x=bmMin(t.left,n.x),n.xMax=bmMax(t.right,n.xMax),n.y=bmMin(t.top,n.y),n.yMax=bmMax(t.bottom,n.yMax)},HShapeElement.prototype.shapeBoundingBox={left:0,right:0,top:0,bottom:0},HShapeElement.prototype.tempBoundingBox={x:0,xMax:0,y:0,yMax:0,width:0,height:0},HShapeElement.prototype.getBoundsOfCurve=function(t,e,i,s){for(var n,r,a,o,l=[[t[0],s[0]],[t[1],s[1]]],h=0;h<2;++h)r=6*t[h]-12*e[h]+6*i[h],n=-3*t[h]+9*e[h]-9*i[h]+3*s[h],o=3*e[h]-3*t[h],r|=0,o|=0,0==(n|=0)&&0==r||(0==n?0<(a=-o/r)&&a<1&&l[h].push(this.calculateF(a,t,e,i,s,h)):0<=(a=r*r-4*o*n)&&(0<(o=(-r+bmSqrt(a))/(2*n))&&o<1&&l[h].push(this.calculateF(o,t,e,i,s,h)),0<(o=(-r-bmSqrt(a))/(2*n)))&&o<1&&l[h].push(this.calculateF(o,t,e,i,s,h)));this.shapeBoundingBox.left=bmMin.apply(null,l[0]),this.shapeBoundingBox.top=bmMin.apply(null,l[1]),this.shapeBoundingBox.right=bmMax.apply(null,l[0]),this.shapeBoundingBox.bottom=bmMax.apply(null,l[1])},HShapeElement.prototype.calculateF=function(t,e,i,s,n,r){return bmPow(1-t,3)*e[r]+3*bmPow(1-t,2)*t*i[r]+3*(1-t)*bmPow(t,2)*s[r]+bmPow(t,3)*n[r]},HShapeElement.prototype.calculateBoundingBox=function(t,e){for(var i=t.length,s=0;s<i;s+=1)t[s]&&t[s].sh?this.calculateShapeBoundingBox(t[s],e):t[s]&&t[s].it?this.calculateBoundingBox(t[s].it,e):t[s]&&t[s].style&&t[s].w&&this.expandStrokeBoundingBox(t[s].w,e)},HShapeElement.prototype.expandStrokeBoundingBox=function(t,e){var i=0;if(t.keyframes){for(var s=0;s<t.keyframes.length;s+=1){var n=t.keyframes[s].s;i<n&&(i=n)}i*=t.mult}else i=t.v*t.mult;e.x-=i,e.xMax+=i,e.y-=i,e.yMax+=i},HShapeElement.prototype.currentBoxContains=function(t){return this.currentBBox.x<=t.x&&this.currentBBox.y<=t.y&&this.currentBBox.width+this.currentBBox.x>=t.x+t.width&&this.currentBBox.height+this.currentBBox.y>=t.y+t.height},HShapeElement.prototype.renderInnerContent=function(){var t,e;this._renderShapeFrame(),this.hidden||!this._isFirstFrame&&!this._mdf||((e=this.tempBoundingBox).x=t=999999,e.xMax=-t,e.y=t,e.yMax=-t,this.calculateBoundingBox(this.itemsData,e),e.width=e.xMax<e.x?0:e.xMax-e.x,e.height=e.yMax<e.y?0:e.yMax-e.y,!this.currentBoxContains(e)&&(t=!1,this.currentBBox.w!==e.width&&(this.currentBBox.w=e.width,this.shapeCont.setAttribute("width",e.width),t=!0),this.currentBBox.h!==e.height&&(this.currentBBox.h=e.height,this.shapeCont.setAttribute("height",e.height),t=!0),t||this.currentBBox.x!==e.x||this.currentBBox.y!==e.y)&&(this.currentBBox.w=e.width,this.currentBBox.h=e.height,this.currentBBox.x=e.x,this.currentBBox.y=e.y,this.shapeCont.setAttribute("viewBox",this.currentBBox.x+" "+this.currentBBox.y+" "+this.currentBBox.w+" "+this.currentBBox.h),t=this.shapeCont.style,e="translate("+this.currentBBox.x+"px,"+this.currentBBox.y+"px)",t.transform=e,t.webkitTransform=e))},extendPrototype([BaseElement,TransformElement,HBaseElement,HierarchyElement,FrameElement,RenderableDOMElement,ITextElement],HTextElement),HTextElement.prototype.createContent=function(){var t;this.isMasked=this.checkMasks(),this.isMasked?(this.renderType="svg",this.compW=this.comp.data.w,this.compH=this.comp.data.h,this.svgElement.setAttribute("width",this.compW),this.svgElement.setAttribute("height",this.compH),t=createNS("g"),this.maskedElement.appendChild(t),this.innerElem=t):(this.renderType="html",this.innerElem=this.layerElement),this.checkParenting()},HTextElement.prototype.buildNewText=function(){var t=this.textProperty.currentData,e=(this.renderedLetters=createSizedArray(t.l?t.l.length:0),this.innerElem.style),i=t.fc?this.buildColor(t.fc):"rgba(0,0,0,0)";e.fill=i,e.color=i,t.sc&&(e.stroke=this.buildColor(t.sc),e.strokeWidth=t.sw+"px");var s,n=this.globalData.fontManager.getFontByName(t.f);this.globalData.fontManager.chars||(e.fontSize=t.finalSize+"px",e.lineHeight=t.finalSize+"px",n.fClass?this.innerElem.className=n.fClass:(e.fontFamily=n.fFamily,i=t.fWeight,s=t.fStyle,e.fontStyle=s,e.fontWeight=i));for(var r,a,o,l,h,c,p=t.l,u=p.length,d=this.mHelper,f=0,m=0;m<u;m+=1)this.globalData.fontManager.chars?(this.textPaths[f]?r=this.textPaths[f]:((r=createNS("path")).setAttribute("stroke-linecap",lineCapEnum[1]),r.setAttribute("stroke-linejoin",lineJoinEnum[2]),r.setAttribute("stroke-miterlimit","4")),this.isMasked||(this.textSpans[f]?o=(a=this.textSpans[f]).children[0]:((a=createTag("div")).style.lineHeight=0,(o=createNS("svg")).appendChild(r),styleDiv(a)))):this.isMasked?r=this.textPaths[f]||createNS("text"):this.textSpans[f]?(a=this.textSpans[f],r=this.textPaths[f]):(styleDiv(a=createTag("span")),styleDiv(r=createTag("span")),a.appendChild(r)),this.globalData.fontManager.chars?(h=(h=this.globalData.fontManager.getCharData(t.finalText[m],n.fStyle,this.globalData.fontManager.getFontByName(t.f).fFamily))?h.data:null,d.reset(),h&&h.shapes&&h.shapes.length&&(l=h.shapes[0].it,d.scale(t.finalSize/100,t.finalSize/100),l=this.createPathShape(d,l),r.setAttribute("d",l)),this.isMasked?this.innerElem.appendChild(r):(this.innerElem.appendChild(a),h&&h.shapes?(document.body.appendChild(o),l=o.getBBox(),o.setAttribute("width",l.width+2),o.setAttribute("height",l.height+2),o.setAttribute("viewBox",l.x-1+" "+(l.y-1)+" "+(l.width+2)+" "+(l.height+2)),h=o.style,c="translate("+(l.x-1)+"px,"+(l.y-1)+"px)",h.transform=c,h.webkitTransform=c,p[m].yOffset=l.y-1):(o.setAttribute("width",1),o.setAttribute("height",1)),a.appendChild(o))):(r.textContent=p[m].val,r.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),this.isMasked?this.innerElem.appendChild(r):(this.innerElem.appendChild(a),h=r.style,c="translate3d(0,"+-t.finalSize/1.2+"px,0)",h.transform=c,h.webkitTransform=c)),this.isMasked?this.textSpans[f]=r:this.textSpans[f]=a,this.textSpans[f].style.display="block",this.textPaths[f]=r,f+=1;for(;f<this.textSpans.length;)this.textSpans[f].style.display="none",f+=1},HTextElement.prototype.renderInnerContent=function(){var t;if(this.validateText(),this.data.singleShape){if(!this._isFirstFrame&&!this.lettersChangedFlag)return;this.isMasked&&this.finalTransform._matMdf&&(this.svgElement.setAttribute("viewBox",-this.finalTransform.mProp.p.v[0]+" "+-this.finalTransform.mProp.p.v[1]+" "+this.compW+" "+this.compH),t=this.svgElement.style,n="translate("+-this.finalTransform.mProp.p.v[0]+"px,"+-this.finalTransform.mProp.p.v[1]+"px)",t.transform=n,t.webkitTransform=n)}if(this.textAnimator.getMeasures(this.textProperty.currentData,this.lettersChangedFlag),this.lettersChangedFlag||this.textAnimator.lettersChangedFlag){for(var e,i,s,n,r=0,a=this.textAnimator.renderedLetters,o=this.textProperty.currentData.l,l=o.length,h=0;h<l;h+=1)o[h].n?r+=1:(i=this.textSpans[h],s=this.textPaths[h],e=a[r],r+=1,e._mdf.m&&(this.isMasked?i.setAttribute("transform",e.m):(i.style.webkitTransform=e.m,i.style.transform=e.m)),i.style.opacity=e.o,e.sw&&e._mdf.sw&&s.setAttribute("stroke-width",e.sw),e.sc&&e._mdf.sc&&s.setAttribute("stroke",e.sc),e.fc&&e._mdf.fc&&(s.setAttribute("fill",e.fc),s.style.color=e.fc));this.innerElem.getBBox&&!this.hidden&&(this._isFirstFrame||this._mdf)&&(n=this.innerElem.getBBox(),this.currentBBox.w!==n.width&&(this.currentBBox.w=n.width,this.svgElement.setAttribute("width",n.width)),this.currentBBox.h!==n.height&&(this.currentBBox.h=n.height,this.svgElement.setAttribute("height",n.height)),this.currentBBox.w===n.width+2&&this.currentBBox.h===n.height+2&&this.currentBBox.x===n.x-1&&this.currentBBox.y===n.y-1||(this.currentBBox.w=n.width+2,this.currentBBox.h=n.height+2,this.currentBBox.x=n.x-1,this.currentBBox.y=n.y-1,this.svgElement.setAttribute("viewBox",this.currentBBox.x+" "+this.currentBBox.y+" "+this.currentBBox.w+" "+this.currentBBox.h),t=this.svgElement.style,n="translate("+this.currentBBox.x+"px,"+this.currentBBox.y+"px)",t.transform=n,t.webkitTransform=n))}},extendPrototype([BaseElement,FrameElement,HierarchyElement],HCameraElement),HCameraElement.prototype.setup=function(){for(var t,e,i,s,n,r=this.comp.threeDElements.length,a=0;a<r;a+=1)"3d"===(e=this.comp.threeDElements[a]).type&&(t=e.perspectiveElem.style,e=e.container.style,i=this.pe.v+"px",s="0px 0px 0px",n="matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1)",t.perspective=i,t.webkitPerspective=i,e.transformOrigin=s,e.mozTransformOrigin=s,e.webkitTransformOrigin=s,t.transform=n,t.webkitTransform=n)},HCameraElement.prototype.createElements=function(){},HCameraElement.prototype.hide=function(){},HCameraElement.prototype.renderFrame=function(){var t=this._isFirstFrame;if(this.hierarchy)for(l=this.hierarchy.length,h=0;h<l;h+=1)t=this.hierarchy[h].finalTransform.mProp._mdf||t;if(t||this.pe._mdf||this.p&&this.p._mdf||this.px&&(this.px._mdf||this.py._mdf||this.pz._mdf)||this.rx._mdf||this.ry._mdf||this.rz._mdf||this.or._mdf||this.a&&this.a._mdf){if(this.mat.reset(),this.hierarchy)for(h=l=this.hierarchy.length-1;0<=h;--h){var e=this.hierarchy[h].finalTransform.mProp;this.mat.translate(-e.p.v[0],-e.p.v[1],e.p.v[2]),this.mat.rotateX(-e.or.v[0]).rotateY(-e.or.v[1]).rotateZ(e.or.v[2]),this.mat.rotateX(-e.rx.v).rotateY(-e.ry.v).rotateZ(e.rz.v),this.mat.scale(1/e.s.v[0],1/e.s.v[1],1/e.s.v[2]),this.mat.translate(e.a.v[0],e.a.v[1],e.a.v[2])}this.p?this.mat.translate(-this.p.v[0],-this.p.v[1],this.p.v[2]):this.mat.translate(-this.px.v,-this.py.v,this.pz.v),this.a&&(s=this.p?[this.p.v[0]-this.a.v[0],this.p.v[1]-this.a.v[1],this.p.v[2]-this.a.v[2]]:[this.px.v-this.a.v[0],this.py.v-this.a.v[1],this.pz.v-this.a.v[2]],i=Math.sqrt(Math.pow(s[0],2)+Math.pow(s[1],2)+Math.pow(s[2],2)),s=[s[0]/i,s[1]/i,s[2]/i],i=Math.sqrt(s[2]*s[2]+s[0]*s[0]),i=Math.atan2(s[1],i),s=Math.atan2(s[0],-s[2]),this.mat.rotateY(s).rotateX(-i)),this.mat.rotateX(-this.rx.v).rotateY(-this.ry.v).rotateZ(this.rz.v),this.mat.rotateX(-this.or.v[0]).rotateY(-this.or.v[1]).rotateZ(this.or.v[2]),this.mat.translate(this.globalData.compSize.w/2,this.globalData.compSize.h/2,0),this.mat.translate(0,0,this.pe.v);var i,s,n=!this._prevMat.equals(this.mat);if((n||this.pe._mdf)&&this.comp.threeDElements){for(var r,a,o,l=this.comp.threeDElements.length,h=0;h<l;h+=1)"3d"===(r=this.comp.threeDElements[h]).type&&(n&&(o=this.mat.toCSS(),(a=r.container.style).transform=o,a.webkitTransform=o),this.pe._mdf)&&((a=r.perspectiveElem.style).perspective=this.pe.v+"px",a.webkitPerspective=this.pe.v+"px");this.mat.clone(this._prevMat)}}this._isFirstFrame=!1},HCameraElement.prototype.prepareFrame=function(t){this.prepareProperties(t,!0)},HCameraElement.prototype.destroy=function(){},HCameraElement.prototype.getBaseElement=function(){return null},extendPrototype([BaseElement,TransformElement,HBaseElement,HSolidElement,HierarchyElement,FrameElement,RenderableElement],HImageElement),HImageElement.prototype.createContent=function(){var t=this.globalData.getAssetsPath(this.assetData),e=new Image;this.data.hasMask?(this.imageElem=createNS("image"),this.imageElem.setAttribute("width",this.assetData.w+"px"),this.imageElem.setAttribute("height",this.assetData.h+"px"),this.imageElem.setAttributeNS("http://www.w3.org/1999/xlink","href",t),this.layerElement.appendChild(this.imageElem),this.baseElement.setAttribute("width",this.assetData.w),this.baseElement.setAttribute("height",this.assetData.h)):this.layerElement.appendChild(e),e.crossOrigin="anonymous",e.src=t,this.data.ln&&this.baseElement.setAttribute("id",this.data.ln)},extendPrototype([BaseRenderer],HybridRendererBase),HybridRendererBase.prototype.buildItem=SVGRenderer.prototype.buildItem,HybridRendererBase.prototype.checkPendingElements=function(){for(;this.pendingElements.length;)this.pendingElements.pop().checkParenting()},HybridRendererBase.prototype.appendElementInPos=function(t,e){t=t.getBaseElement();if(t){var i=this.layers[e];if(i.ddd&&this.supports3d)this.addTo3dContainer(t,e);else if(this.threeDElements)this.addTo3dContainer(t,e);else{for(var s,n,r=0;r<e;)this.elements[r]&&!0!==this.elements[r]&&this.elements[r].getBaseElement&&(n=this.elements[r],s=(this.layers[r].ddd?this.getThreeDContainerByPos(r):n.getBaseElement())||s),r+=1;s?i.ddd&&this.supports3d||this.layerElement.insertBefore(t,s):i.ddd&&this.supports3d||this.layerElement.appendChild(t)}}},HybridRendererBase.prototype.createShape=function(t){return new(this.supports3d?HShapeElement:SVGShapeElement)(t,this.globalData,this)},HybridRendererBase.prototype.createText=function(t){return new(this.supports3d?HTextElement:SVGTextLottieElement)(t,this.globalData,this)},HybridRendererBase.prototype.createCamera=function(t){return this.camera=new HCameraElement(t,this.globalData,this),this.camera},HybridRendererBase.prototype.createImage=function(t){return new(this.supports3d?HImageElement:IImageElement)(t,this.globalData,this)},HybridRendererBase.prototype.createSolid=function(t){return new(this.supports3d?HSolidElement:ISolidElement)(t,this.globalData,this)},HybridRendererBase.prototype.createNull=SVGRenderer.prototype.createNull,HybridRendererBase.prototype.getThreeDContainerByPos=function(t){for(var e=0,i=this.threeDElements.length;e<i;){if(this.threeDElements[e].startPos<=t&&this.threeDElements[e].endPos>=t)return this.threeDElements[e].perspectiveElem;e+=1}return null},HybridRendererBase.prototype.createThreeDContainer=function(t,e){var i,s=createTag("div"),n=(styleDiv(s),createTag("div")),r=(styleDiv(n),"3d"===e&&((r=s.style).width=this.globalData.compSize.w+"px",r.height=this.globalData.compSize.h+"px",r.webkitTransformOrigin=i="50% 50%",r.mozTransformOrigin=i,r.transformOrigin=i,(r=n.style).transform=i="matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1)",r.webkitTransform=i),s.appendChild(n),{container:n,perspectiveElem:s,startPos:t,endPos:t,type:e});return this.threeDElements.push(r),r},HybridRendererBase.prototype.build3dContainers=function(){for(var t,e=this.layers.length,i="",s=0;s<e;s+=1)this.layers[s].ddd&&3!==this.layers[s].ty?"3d"!==i&&(t=this.createThreeDContainer(s,i="3d")):"2d"!==i&&(t=this.createThreeDContainer(s,i="2d")),t.endPos=Math.max(t.endPos,s);for(s=(e=this.threeDElements.length)-1;0<=s;--s)this.resizerElem.appendChild(this.threeDElements[s].perspectiveElem)},HybridRendererBase.prototype.addTo3dContainer=function(t,e){for(var i=0,s=this.threeDElements.length;i<s;){if(e<=this.threeDElements[i].endPos){for(var n,r=this.threeDElements[i].startPos;r<e;)this.elements[r]&&this.elements[r].getBaseElement&&(n=this.elements[r].getBaseElement()),r+=1;n?this.threeDElements[i].container.insertBefore(t,n):this.threeDElements[i].container.appendChild(t);break}i+=1}},HybridRendererBase.prototype.configAnimation=function(t){var e=createTag("div"),i=this.animationItem.wrapper,s=e.style,i=(s.width=t.w+"px",s.height=t.h+"px",styleDiv(this.resizerElem=e),s.transformStyle="flat",s.mozTransformStyle="flat",s.webkitTransformStyle="flat",this.renderConfig.className&&e.setAttribute("class",this.renderConfig.className),i.appendChild(e),s.overflow="hidden",createNS("svg")),e=(i.setAttribute("width","1"),i.setAttribute("height","1"),styleDiv(i),this.resizerElem.appendChild(i),createNS("defs"));i.appendChild(e),this.data=t,this.setupGlobalData(t,i),this.globalData.defs=e,this.layers=t.layers,this.layerElement=this.resizerElem,this.build3dContainers(),this.updateContainerSize()},HybridRendererBase.prototype.destroy=function(){this.animationItem.wrapper&&(this.animationItem.wrapper.innerText=""),this.animationItem.container=null,this.globalData.defs=null;for(var t=this.layers?this.layers.length:0,e=0;e<t;e+=1)this.elements[e]&&this.elements[e].destroy&&this.elements[e].destroy();this.elements.length=0,this.destroyed=!0,this.animationItem=null},HybridRendererBase.prototype.updateContainerSize=function(){var t,e,i,s=this.animationItem.wrapper.offsetWidth,n=this.animationItem.wrapper.offsetHeight,s=this.globalData.compSize.w/this.globalData.compSize.h>s/n?(t=s/this.globalData.compSize.w,e=s/this.globalData.compSize.w,i=0,(n-this.globalData.compSize.h*(s/this.globalData.compSize.w))/2):(t=n/this.globalData.compSize.h,e=n/this.globalData.compSize.h,i=(s-this.globalData.compSize.w*(n/this.globalData.compSize.h))/2,0),n=this.resizerElem.style;n.webkitTransform="matrix3d("+t+",0,0,0,0,"+e+",0,0,0,0,1,0,"+i+","+s+",0,1)",n.transform=n.webkitTransform},HybridRendererBase.prototype.renderFrame=SVGRenderer.prototype.renderFrame,HybridRendererBase.prototype.hide=function(){this.resizerElem.style.display="none"},HybridRendererBase.prototype.show=function(){this.resizerElem.style.display="block"},HybridRendererBase.prototype.initItems=function(){if(this.buildAllItems(),this.camera)this.camera.setup();else for(var t=this.globalData.compSize.w,e=this.globalData.compSize.h,i=this.threeDElements.length,s=0;s<i;s+=1){var n=this.threeDElements[s].perspectiveElem.style;n.webkitPerspective=Math.sqrt(Math.pow(t,2)+Math.pow(e,2))+"px",n.perspective=n.webkitPerspective}},HybridRendererBase.prototype.searchExtraCompositions=function(t){for(var e,i=t.length,s=createTag("div"),n=0;n<i;n+=1)t[n].xt&&((e=this.createComp(t[n],s,this.globalData.comp,null)).initExpressions(),this.globalData.projectInterface.registerComposition(e))},extendPrototype([HybridRendererBase,ICompElement,HBaseElement],HCompElement),HCompElement.prototype._createBaseContainerElements=HCompElement.prototype.createContainerElements,HCompElement.prototype.createContainerElements=function(){this._createBaseContainerElements(),this.data.hasMask?(this.svgElement.setAttribute("width",this.data.w),this.svgElement.setAttribute("height",this.data.h),this.transformedElement=this.baseElement):this.transformedElement=this.layerElement},HCompElement.prototype.addTo3dContainer=function(t,e){for(var i,s=0;s<e;)this.elements[s]&&this.elements[s].getBaseElement&&(i=this.elements[s].getBaseElement()),s+=1;i?this.layerElement.insertBefore(t,i):this.layerElement.appendChild(t)},HCompElement.prototype.createComp=function(t){return new(this.supports3d?HCompElement:SVGCompElement)(t,this.globalData,this)},extendPrototype([HybridRendererBase],HybridRenderer),HybridRenderer.prototype.createComp=function(t){return new(this.supports3d?HCompElement:SVGCompElement)(t,this.globalData,this)};var CompExpressionInterface=function(s){function t(t){for(var e=0,i=s.layers.length;e<i;){if(s.layers[e].nm===t||s.layers[e].ind===t)return s.elements[e].layerInterface;e+=1}return null}return Object.defineProperty(t,"_name",{value:s.data.nm}),(t.layer=t).pixelAspect=1,t.height=s.data.h||s.globalData.compSize.h,t.width=s.data.w||s.globalData.compSize.w,t.pixelAspect=1,t.frameDuration=1/s.globalData.frameRate,t.displayStartTime=0,t.numLayers=s.layers.length,t};function _typeof$2(t){return(_typeof$2="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function seedRandom(a,o){var l=this,h=256,c=o.pow(h,6),p=o.pow(2,52),u=2*p,d=255;function f(t){var e,i=t.length,a=this,s=0,n=a.i=a.j=0,r=a.S=[];for(i||(t=[i++]);s<h;)r[s]=s++;for(s=0;s<h;s++)r[s]=r[n=d&n+t[s%i]+(e=r[s])],r[n]=e;a.g=function(t){for(var e,i=0,s=a.i,n=a.j,r=a.S;t--;)e=r[s=d&s+1],i=i*h+r[d&(r[s]=r[n=d&n+e])+(r[n]=e)];return a.i=s,a.j=n,i}}function m(t,e){return e.i=t.i,e.j=t.j,e.S=t.S.slice(),e}function g(t,e){for(var i,s=t+"",n=0;n<s.length;)e[d&n]=d&(i^=19*e[d&n])+s.charCodeAt(n++);return y(e)}function y(t){return String.fromCharCode.apply(0,t)}o.seedrandom=function(t,e,i){function s(){for(var t=r.g(6),e=c,i=0;t<p;)t=(t+i)*h,e*=h,i=r.g(1);for(;u<=t;)t/=2,e/=2,i>>>=1;return(t+i)/e}var n=[],t=g(function t(e,i){var s,n=[],r=_typeof$2(e);if(i&&"object"==r)for(s in e)try{n.push(t(e[s],i-1))}catch(e){}return n.length?n:"string"==r?e:e+"\0"}((e=!0===e?{entropy:!0}:e||{}).entropy?[t,y(a)]:null===t?(()=>{try{var t=new Uint8Array(h);return(l.crypto||l.msCrypto).getRandomValues(t),y(t)}catch(t){var e=l.navigator,e=e&&e.plugins;return[+new Date,l,e,l.screen,y(a)]}})():t,3),n),r=new f(n);return s.int32=function(){return 0|r.g(4)},s.quick=function(){return r.g(4)/4294967296},s.double=s,g(y(r.S),a),(e.pass||i||function(t,e,i,s){return s&&(s.S&&m(s,r),t.state=function(){return m(r,{})}),i?(o.random=t,e):t})(s,t,"global"in e?e.global:this==o,e.state)},g(o.random(),a)}function initialize$2(t){seedRandom([],t)}var propTypes={SHAPE:"shape"};function _typeof$1(t){return(_typeof$1="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var ExpressionManager=function(){var ob={},Math=BMMath,window=null,document=null,XMLHttpRequest=null,fetch=null,frames=null,_lottieGlobal={};function resetFrame(){_lottieGlobal={}}function $bm_isInstanceOfArray(t){return t.constructor===Array||t.constructor===Float32Array}function isNumerable(t,e){return"number"===t||e instanceof Number||"boolean"===t||"string"===t}function $bm_neg(t){var e=_typeof$1(t);if("number"===e||t instanceof Number||"boolean"===e)return-t;if($bm_isInstanceOfArray(t)){for(var i=t.length,s=[],n=0;n<i;n+=1)s[n]=-t[n];return s}return t.propType?t.v:-t}initialize$2(BMMath);var easeInBez=BezierFactory.getBezierEasing(.333,0,.833,.833,"easeIn").get,easeOutBez=BezierFactory.getBezierEasing(.167,.167,.667,1,"easeOut").get,easeInOutBez=BezierFactory.getBezierEasing(.33,0,.667,1,"easeInOut").get;function sum(t,e){var i=_typeof$1(t),s=_typeof$1(e);if(isNumerable(i,t)&&isNumerable(s,e)||"string"===i||"string"===s)return t+e;if($bm_isInstanceOfArray(t)&&isNumerable(s,e))return(t=t.slice(0))[0]+=e,t;if(isNumerable(i,t)&&$bm_isInstanceOfArray(e))return(e=e.slice(0))[0]=t+e[0],e;if($bm_isInstanceOfArray(t)&&$bm_isInstanceOfArray(e)){for(var n=0,r=t.length,a=e.length,o=[];n<r||n<a;)("number"==typeof t[n]||t[n]instanceof Number)&&("number"==typeof e[n]||e[n]instanceof Number)?o[n]=t[n]+e[n]:o[n]=void 0===e[n]?t[n]:t[n]||e[n],n+=1;return o}return 0}var add=sum;function sub(t,e){var i=_typeof$1(t),s=_typeof$1(e);if(isNumerable(i,t)&&isNumerable(s,e))return(t="string"===i?parseInt(t,10):t)-(e="string"===s?parseInt(e,10):e);if($bm_isInstanceOfArray(t)&&isNumerable(s,e))return(t=t.slice(0))[0]-=e,t;if(isNumerable(i,t)&&$bm_isInstanceOfArray(e))return(e=e.slice(0))[0]=t-e[0],e;if($bm_isInstanceOfArray(t)&&$bm_isInstanceOfArray(e)){for(var n=0,r=t.length,a=e.length,o=[];n<r||n<a;)("number"==typeof t[n]||t[n]instanceof Number)&&("number"==typeof e[n]||e[n]instanceof Number)?o[n]=t[n]-e[n]:o[n]=void 0===e[n]?t[n]:t[n]||e[n],n+=1;return o}return 0}function mul(t,e){var i,s,n,r=_typeof$1(t),a=_typeof$1(e);if(isNumerable(r,t)&&isNumerable(a,e))return t*e;if($bm_isInstanceOfArray(t)&&isNumerable(a,e)){for(n=t.length,i=createTypedArray("float32",n),s=0;s<n;s+=1)i[s]=t[s]*e;return i}if(isNumerable(r,t)&&$bm_isInstanceOfArray(e)){for(n=e.length,i=createTypedArray("float32",n),s=0;s<n;s+=1)i[s]=t*e[s];return i}return 0}function div(t,e){var i,s,n,r=_typeof$1(t),a=_typeof$1(e);if(isNumerable(r,t)&&isNumerable(a,e))return t/e;if($bm_isInstanceOfArray(t)&&isNumerable(a,e)){for(n=t.length,i=createTypedArray("float32",n),s=0;s<n;s+=1)i[s]=t[s]/e;return i}if(isNumerable(r,t)&&$bm_isInstanceOfArray(e)){for(n=e.length,i=createTypedArray("float32",n),s=0;s<n;s+=1)i[s]=t/e[s];return i}return 0}function mod(t,e){return(t="string"==typeof t?parseInt(t,10):t)%(e="string"==typeof e?parseInt(e,10):e)}var $bm_sum=sum,$bm_sub=sub,$bm_mul=mul,$bm_div=div,$bm_mod=mod;function clamp(t,e,i){var s;return i<e&&(s=i,i=e,e=s),Math.min(Math.max(t,e),i)}function radiansToDegrees(t){return t/degToRads}var radians_to_degrees=radiansToDegrees;function degreesToRadians(t){return t*degToRads}var degrees_to_radians=radiansToDegrees,helperLengthArray=[0,0,0,0,0,0];function length(t,e){if("number"==typeof t||t instanceof Number)return Math.abs(t-(e=e||0));for(var i=Math.min(t.length,(e=e||helperLengthArray).length),s=0,n=0;n<i;n+=1)s+=Math.pow(e[n]-t[n],2);return Math.sqrt(s)}function normalize(t){return div(t,length(t))}function rgbToHsl(t){var e,i=t[0],s=t[1],n=t[2],r=Math.max(i,s,n),a=Math.min(i,s,n),o=(r+a)/2;if(r===a)h=e=0;else{var l=r-a,h=.5<o?l/(2-r-a):l/(r+a);switch(r){case i:e=(s-n)/l+(s<n?6:0);break;case s:e=(n-i)/l+2;break;case n:e=(i-s)/l+4}e/=6}return[e,h,o,t[3]]}function hue2rgb(t,e,i){return i<0&&(i+=1),1<i&&--i,i<1/6?t+6*(e-t)*i:i<.5?e:i<2/3?t+(e-t)*(2/3-i)*6:t}function hslToRgb(t){var e,i,s,n=t[0],r=t[1],a=t[2];return 0===r?i=s=e=a:(e=hue2rgb(r=2*a-(a=a<.5?a*(1+r):a+r-a*r),a,n+1/3),i=hue2rgb(r,a,n),s=hue2rgb(r,a,n-1/3)),[e,i,s,t[3]]}function linear(t,e,i,s,n){var r;if(void 0!==s&&void 0!==n||(s=e,n=i,e=0,i=1),i<e&&(r=i,i=e,e=r),t<=e)return s;if(i<=t)return n;var a=i===e?0:(t-e)/(i-e);if(!s.length)return s+(n-s)*a;for(var o=s.length,l=createTypedArray("float32",o),h=0;h<o;h+=1)l[h]=s[h]+(n[h]-s[h])*a;return l}function random(t,e){if(void 0===e&&(void 0===t?(t=0,e=1):(e=t,t=void 0)),e.length){for(var i=e.length,s=(t=t||createTypedArray("float32",i),createTypedArray("float32",i)),n=BMMath.random(),r=0;r<i;r+=1)s[r]=t[r]+n*(e[r]-t[r]);return s}return(t=void 0===t?0:t)+BMMath.random()*(e-t)}function createPath(t,e,i,s){var n=t.length,r=shapePool.newElement();r.setPathData(!!s,n);for(var a,o,l=[0,0],h=0;h<n;h+=1)a=e&&e[h]?e[h]:l,o=i&&i[h]?i[h]:l,r.setTripleAt(t[h][0],t[h][1],o[0]+t[h][0],o[1]+t[h][1],a[0]+t[h][0],a[1]+t[h][1],h,!0);return r}function initiateExpression(elem,data,property){function noOp(t){return t}if(!elem.globalData.renderConfig.runExpressions)return noOp;var val=data.x,needsVelocity=/velocity(?![\w\d])/.test(val),_needsRandom=-1!==val.indexOf("random"),elemType=elem.data.ty,transform,$bm_transform,content,effect,thisProperty=property,inPoint=(thisProperty._name=elem.data.nm,thisProperty.valueAtTime=thisProperty.getValueAtTime,Object.defineProperty(thisProperty,"value",{get:function(){return thisProperty.v}}),elem.comp.frameDuration=1/elem.comp.globalData.frameRate,elem.comp.displayStartTime=0,elem.data.ip/elem.comp.globalData.frameRate),outPoint=elem.data.op/elem.comp.globalData.frameRate,width=elem.data.sw||0,height=elem.data.sh||0,name=elem.data.nm,loopIn,loop_in,loopOut,loop_out,smooth,toWorld,fromWorld,fromComp,toComp,fromCompToSurface,position,rotation,anchorPoint,scale,thisLayer,thisComp,mask,valueAtTime,velocityAtTime,scoped_bm_rt,expression_function=eval("[function _expression_function(){"+val+";scoped_bm_rt=$bm_rt}]")[0],numKeys=property.kf?data.k.length:0,active=!this.data||!0!==this.data.hd,wiggle=function(t,e){for(var i=this.pv.length||1,s=createTypedArray("float32",i),n=Math.floor(5*time),r=0,a=0;r<n;){for(a=0;a<i;a+=1)s[a]+=-e+2*e*BMMath.random();r+=1}var o=5*time,l=o-Math.floor(o),h=createTypedArray("float32",i);if(1<i){for(a=0;a<i;a+=1)h[a]=this.pv[a]+s[a]+(-e+2*e*BMMath.random())*l;return h}return this.pv+s[0]+(-e+2*e*BMMath.random())*l}.bind(this);function loopInDuration(t,e){return loopIn(t,e,!0)}function loopOutDuration(t,e){return loopOut(t,e,!0)}thisProperty.loopIn&&(loopIn=thisProperty.loopIn.bind(thisProperty),loop_in=loopIn),thisProperty.loopOut&&(loopOut=thisProperty.loopOut.bind(thisProperty),loop_out=loopOut),thisProperty.smooth&&(smooth=thisProperty.smooth.bind(thisProperty)),this.getValueAtTime&&(valueAtTime=this.getValueAtTime.bind(this)),this.getVelocityAtTime&&(velocityAtTime=this.getVelocityAtTime.bind(this));var comp=elem.comp.globalData.projectInterface.bind(elem.comp.globalData.projectInterface),time,velocity,value,text,textIndex,textTotal,selectorValue;function lookAt(t,e){e=[e[0]-t[0],e[1]-t[1],e[2]-t[2]],t=Math.atan2(e[0],Math.sqrt(e[1]*e[1]+e[2]*e[2]))/degToRads;return[-Math.atan2(e[1],e[2])/degToRads,t,0]}function easeOut(t,e,i,s,n){return applyEase(easeOutBez,t,e,i,s,n)}function easeIn(t,e,i,s,n){return applyEase(easeInBez,t,e,i,s,n)}function ease(t,e,i,s,n){return applyEase(easeInOutBez,t,e,i,s,n)}function applyEase(t,e,i,s,n,r){void 0===n?(n=i,r=s):e=(e-i)/(s-i),1<e?e=1:e<0&&(e=0);var a=t(e);if($bm_isInstanceOfArray(n)){for(var o=n.length,l=createTypedArray("float32",o),h=0;h<o;h+=1)l[h]=(r[h]-n[h])*a+n[h];return l}return(r-n)*a+n}function nearestKey(t){var e,i,s,n=data.k.length;if(data.k.length&&"number"!=typeof data.k[0])if(i=-1,(t*=elem.comp.globalData.frameRate)<data.k[0].t)i=1,s=data.k[0].t;else{for(e=0;e<n-1;e+=1){if(t===data.k[e].t){i=e+1,s=data.k[e].t;break}if(t>data.k[e].t&&t<data.k[e+1].t){s=(t-data.k[e].t>data.k[e+1].t-t?(i=e+2,data.k[e+1]):(i=e+1,data.k[e])).t;break}}-1===i&&(i=e+1,s=data.k[e].t)}else s=i=0;var r={};return r.index=i,r.time=s/elem.comp.globalData.frameRate,r}function key(t){if(!data.k.length||"number"==typeof data.k[0])throw new Error("The property has no keyframe at index "+t);for(var e={time:data.k[--t].t/elem.comp.globalData.frameRate,value:[]},i=Object.prototype.hasOwnProperty.call(data.k[t],"s")?data.k[t].s:data.k[t-1].e,s=i.length,n=0;n<s;n+=1)e[n]=i[n],e.value[n]=i[n];return e}function framesToTime(t,e){return t/(e=e||elem.comp.globalData.frameRate)}function timeToFrames(t,e){return(t=t||0===t?t:time)*(e=e||elem.comp.globalData.frameRate)}function seedRandom(t){BMMath.seedrandom(randSeed+t)}function sourceRectAtTime(){return elem.sourceRectAtTime()}function substring(t,e){return"string"==typeof value?void 0===e?value.substring(t):value.substring(t,e):""}function substr(t,e){return"string"==typeof value?void 0===e?value.substr(t):value.substr(t,e):""}function posterizeTime(t){time=0===t?0:Math.floor(time*t)/t,value=valueAtTime(time)}var index=elem.data.ind,hasParent=!(!elem.hierarchy||!elem.hierarchy.length),parent,randSeed=Math.floor(1e6*Math.random()),globalData=elem.globalData;function executeExpression(t){return value=t,this.frameExpressionId===elem.globalData.frameId&&"textSelector"!==this.propType?value:("textSelector"===this.propType&&(textIndex=this.textIndex,textTotal=this.textTotal,selectorValue=this.selectorValue),thisLayer||(text=elem.layerInterface.text,thisLayer=elem.layerInterface,thisComp=elem.comp.compInterface,toWorld=thisLayer.toWorld.bind(thisLayer),fromWorld=thisLayer.fromWorld.bind(thisLayer),fromComp=thisLayer.fromComp.bind(thisLayer),toComp=thisLayer.toComp.bind(thisLayer),mask=thisLayer.mask?thisLayer.mask.bind(thisLayer):null,fromCompToSurface=fromComp),transform||(transform=elem.layerInterface("ADBE Transform Group"),($bm_transform=transform)&&(anchorPoint=transform.anchorPoint)),4===elemType&&(content=content||thisLayer("ADBE Root Vectors Group")),effect=effect||thisLayer(4),(hasParent=!(!elem.hierarchy||!elem.hierarchy.length))&&!parent&&(parent=elem.hierarchy[0].layerInterface),time=this.comp.renderedFrame/this.comp.globalData.frameRate,_needsRandom&&seedRandom(randSeed+time),needsVelocity&&(velocity=velocityAtTime(time)),expression_function(),this.frameExpressionId=elem.globalData.frameId,scoped_bm_rt=scoped_bm_rt.propType===propTypes.SHAPE?scoped_bm_rt.v:scoped_bm_rt)}return executeExpression.__preventDeadCodeRemoval=[$bm_transform,anchorPoint,time,velocity,inPoint,outPoint,width,height,name,loop_in,loop_out,smooth,toComp,fromCompToSurface,toWorld,fromWorld,mask,position,rotation,scale,thisComp,numKeys,active,wiggle,loopInDuration,loopOutDuration,comp,lookAt,easeOut,easeIn,ease,nearestKey,key,text,textIndex,textTotal,selectorValue,framesToTime,timeToFrames,sourceRectAtTime,substring,substr,posterizeTime,index,globalData],executeExpression}return ob.initiateExpression=initiateExpression,ob.__preventDeadCodeRemoval=[window,document,XMLHttpRequest,fetch,frames,$bm_neg,add,$bm_sum,$bm_sub,$bm_mul,$bm_div,$bm_mod,clamp,radians_to_degrees,degreesToRadians,degrees_to_radians,normalize,rgbToHsl,hslToRgb,linear,random,createPath,_lottieGlobal],ob.resetFrame=resetFrame,ob}(),Expressions=(()=>{var t={};return t.initExpressions=function(t){var i=0,s=[];t.renderer.compInterface=CompExpressionInterface(t.renderer),t.renderer.globalData.projectInterface.registerComposition(t.renderer),t.renderer.globalData.pushExpression=function(){i+=1},t.renderer.globalData.popExpression=function(){if(0==--i){for(var t=s.length,e=0;e<t;e+=1)s[e].release();s.length=0}},t.renderer.globalData.registerExpressionProperty=function(t){-1===s.indexOf(t)&&s.push(t)}},t.resetFrame=ExpressionManager.resetFrame,t})(),MaskManagerInterface=(()=>{function t(t,e){this._mask=t,this._data=e}return Object.defineProperty(t.prototype,"maskPath",{get:function(){return this._mask.prop.k&&this._mask.prop.getValue(),this._mask.prop}}),Object.defineProperty(t.prototype,"maskOpacity",{get:function(){return this._mask.op.k&&this._mask.op.getValue(),100*this._mask.op.v}}),function(e){for(var i=createSizedArray(e.viewData.length),s=e.viewData.length,n=0;n<s;n+=1)i[n]=new t(e.viewData[n],e.masksProperties[n]);return function(t){for(n=0;n<s;){if(e.masksProperties[n].nm===t)return i[n];n+=1}return null}}})(),ExpressionPropertyInterface=(()=>{var c={pv:0,v:0,mult:1},p={pv:[0,0,0],v:[0,0,0],mult:1};function u(s,n,r){Object.defineProperty(s,"velocity",{get:function(){return n.getVelocityAtTime(n.comp.currentFrame)}}),s.numKeys=n.keyframes?n.keyframes.length:0,s.key=function(t){var e,i;return s.numKeys?(e="",e="s"in n.keyframes[t-1]?n.keyframes[t-1].s:"e"in n.keyframes[t-2]?n.keyframes[t-2].e:n.keyframes[t-2].s,(i="unidimensional"===r?new Number(e):Object.assign({},e)).time=n.keyframes[t-1].t/n.elem.comp.globalData.frameRate,i.value="unidimensional"===r?e[0]:e,i):0},s.valueAtTime=n.getValueAtTime,s.speedAtTime=n.getSpeedAtTime,s.velocityAtTime=n.getVelocityAtTime,s.propertyGroup=n.propertyGroup}function d(){return c}return function(t){return t?"unidimensional"===t.propType?(o=1/(a=(a=t)&&"pv"in a?a:c).mult,l=a.pv*o,(h=new Number(l)).value=l,u(h,a,"unidimensional"),function(){return a.k&&a.getValue(),l=a.v*o,h.value!==l&&((h=new Number(l)).value=l,h[0]=l,u(h,a,"unidimensional")),h}):(i=1/(e=(e=t)&&"pv"in e?e:p).mult,s=e.data&&e.data.l||e.pv.length,n=createTypedArray("float32",s),r=createTypedArray("float32",s),n.value=r,u(n,e,"multidimensional"),function(){e.k&&e.getValue();for(var t=0;t<s;t+=1)r[t]=e.v[t]*i,n[t]=r[t];return n}):d;var e,i,s,n,r,a,o,l,h}})(),TransformExpressionInterface=function(t){function e(t){switch(t){case"scale":case"Scale":case"ADBE Scale":case 6:return e.scale;case"rotation":case"Rotation":case"ADBE Rotation":case"ADBE Rotate Z":case 10:return e.rotation;case"ADBE Rotate X":return e.xRotation;case"ADBE Rotate Y":return e.yRotation;case"position":case"Position":case"ADBE Position":case 2:return e.position;case"ADBE Position_0":return e.xPosition;case"ADBE Position_1":return e.yPosition;case"ADBE Position_2":return e.zPosition;case"anchorPoint":case"AnchorPoint":case"Anchor Point":case"ADBE AnchorPoint":case 1:return e.anchorPoint;case"opacity":case"Opacity":case 11:return e.opacity;default:return null}}var i,s,n,r;return Object.defineProperty(e,"rotation",{get:ExpressionPropertyInterface(t.r||t.rz)}),Object.defineProperty(e,"zRotation",{get:ExpressionPropertyInterface(t.rz||t.r)}),Object.defineProperty(e,"xRotation",{get:ExpressionPropertyInterface(t.rx)}),Object.defineProperty(e,"yRotation",{get:ExpressionPropertyInterface(t.ry)}),Object.defineProperty(e,"scale",{get:ExpressionPropertyInterface(t.s)}),t.p?r=ExpressionPropertyInterface(t.p):(i=ExpressionPropertyInterface(t.px),s=ExpressionPropertyInterface(t.py),t.pz&&(n=ExpressionPropertyInterface(t.pz))),Object.defineProperty(e,"position",{get:function(){return t.p?r():[i(),s(),n?n():0]}}),Object.defineProperty(e,"xPosition",{get:ExpressionPropertyInterface(t.px)}),Object.defineProperty(e,"yPosition",{get:ExpressionPropertyInterface(t.py)}),Object.defineProperty(e,"zPosition",{get:ExpressionPropertyInterface(t.pz)}),Object.defineProperty(e,"anchorPoint",{get:ExpressionPropertyInterface(t.a)}),Object.defineProperty(e,"opacity",{get:ExpressionPropertyInterface(t.o)}),Object.defineProperty(e,"skew",{get:ExpressionPropertyInterface(t.sk)}),Object.defineProperty(e,"skewAxis",{get:ExpressionPropertyInterface(t.sa)}),Object.defineProperty(e,"orientation",{get:ExpressionPropertyInterface(t.or)}),e},LayerExpressionInterface=(()=>{function n(t){var e=new Matrix;return void 0!==t?this._elem.finalTransform.mProp.getValueAtTime(t).clone(e):this._elem.finalTransform.mProp.applyToMatrix(e),e}function r(t,e){e=this.getMatrix(e);return e.props[12]=0,e.props[13]=0,e.props[14]=0,this.applyPoint(e,t)}function a(t,e){e=this.getMatrix(e);return this.applyPoint(e,t)}function o(t,e){e=this.getMatrix(e);return e.props[12]=0,e.props[13]=0,e.props[14]=0,this.invertPoint(e,t)}function l(t,e){e=this.getMatrix(e);return this.invertPoint(e,t)}function h(t,e){if(this._elem.hierarchy&&this._elem.hierarchy.length)for(var i=this._elem.hierarchy.length,s=0;s<i;s+=1)this._elem.hierarchy[s].finalTransform.mProp.applyToMatrix(t);return t.applyToPointArray(e[0],e[1],e[2]||0)}function c(t,e){if(this._elem.hierarchy&&this._elem.hierarchy.length)for(var i=this._elem.hierarchy.length,s=0;s<i;s+=1)this._elem.hierarchy[s].finalTransform.mProp.applyToMatrix(t);return t.inversePoint(e)}function p(t){var e=new Matrix;if(e.reset(),this._elem.finalTransform.mProp.applyToMatrix(e),this._elem.hierarchy&&this._elem.hierarchy.length)for(var i=this._elem.hierarchy.length,s=0;s<i;s+=1)this._elem.hierarchy[s].finalTransform.mProp.applyToMatrix(e);return e.inversePoint(t)}function u(){return[1,1,1,1]}return function(e){var i;function s(t){switch(t){case"ADBE Root Vectors Group":case"Contents":case 2:return s.shapeInterface;case 1:case 6:case"Transform":case"transform":case"ADBE Transform Group":return i;case 4:case"ADBE Effect Parade":case"effects":case"Effects":return s.effect;case"ADBE Text Properties":return s.textInterface;default:return null}}s.getMatrix=n,s.invertPoint=c,s.applyPoint=h,s.toWorld=a,s.toWorldVec=r,s.fromWorld=l,s.fromWorldVec=o,s.toComp=a,s.fromComp=p,s.sampleImage=u,s.sourceRectAtTime=e.sourceRectAtTime.bind(e);var t=getDescriptor(i=TransformExpressionInterface((s._elem=e).finalTransform.mProp),"anchorPoint");return Object.defineProperties(s,{hasParent:{get:function(){return e.hierarchy.length}},parent:{get:function(){return e.hierarchy[0].layerInterface}},rotation:getDescriptor(i,"rotation"),scale:getDescriptor(i,"scale"),position:getDescriptor(i,"position"),opacity:getDescriptor(i,"opacity"),anchorPoint:t,anchor_point:t,transform:{get:function(){return i}},active:{get:function(){return e.isInRange}}}),s.startTime=e.data.st,s.index=e.data.ind,s.source=e.data.refId,s.height=0===e.data.ty?e.data.h:100,s.width=0===e.data.ty?e.data.w:100,s.inPoint=e.data.ip/e.comp.globalData.frameRate,s.outPoint=e.data.op/e.comp.globalData.frameRate,s._name=e.data.nm,s.registerMaskInterface=function(t){s.mask=new MaskManagerInterface(t,e)},s.registerEffectsInterface=function(t){s.effect=t},s}})(),propertyGroupFactory=function(e,i){return function(t){return(t=void 0===t?1:t)<=0?e:i(t-1)}},PropertyInterface=function(t,e){var i={_name:t};return function(t){return(t=void 0===t?1:t)<=0?i:e(t-1)}},EffectsExpressionInterface=(()=>{function h(n,t,e,i){function s(t){for(var e=n.ef,i=0,s=e.length;i<s;){if(t===e[i].nm||t===e[i].mn||t===e[i].ix)return 5===e[i].ty?a[i]:a[i]();i+=1}throw new Error}for(var r=propertyGroupFactory(s,e),a=[],o=n.ef.length,l=0;l<o;l+=1)5===n.ef[l].ty?a.push(h(n.ef[l],t.effectElements[l],t.effectElements[l].propertyGroup,i)):a.push(((t,e,i,s)=>{var n=ExpressionPropertyInterface(t.p);return t.p.setGroupProperty&&t.p.setGroupProperty(PropertyInterface("",s)),function(){return 10===e?i.comp.compInterface(t.p.v):n()}})(t.effectElements[l],n.ef[l].ty,i,r));return"ADBE Color Control"===n.mn&&Object.defineProperty(s,"color",{get:function(){return a[0]()}}),Object.defineProperties(s,{numProperties:{get:function(){return n.np}},_name:{value:n.nm},propertyGroup:{value:r}}),s.enabled=0!==n.en,s.active=s.enabled,s}return{createEffectsInterface:function(t,e){if(t.effectsManager){for(var i=[],s=t.data.ef,n=t.effectsManager.effectElements.length,r=0;r<n;r+=1)i.push(h(s[r],t.effectsManager.effectElements[r],e,t));var a=t.data.ef||[],o=function(t){for(r=0,n=a.length;r<n;){if(t===a[r].nm||t===a[r].mn||t===a[r].ix)return i[r];r+=1}return null};return Object.defineProperty(o,"numProperties",{get:function(){return a.length}}),o}return null}}})(),ShapePathInterface=function(t,e,i){var s=e.sh;function n(t){return"Shape"===t||"shape"===t||"Path"===t||"path"===t||"ADBE Vector Shape"===t||2===t?n.path:null}e=propertyGroupFactory(n,i);return s.setGroupProperty(PropertyInterface("Path",e)),Object.defineProperties(n,{path:{get:function(){return s.k&&s.getValue(),s}},shape:{get:function(){return s.k&&s.getValue(),s}},_name:{value:t.nm},ix:{value:t.ix},propertyIndex:{value:t.ix},mn:{value:t.mn},propertyGroup:{value:i}}),n},ShapeExpressionInterface=(()=>{function a(t,e,i){for(var s=[],n=t?t.length:0,r=0;r<n;r+=1)"gr"===t[r].ty?s.push(((t,e,i)=>{function n(t){switch(t){case"ADBE Vectors Group":case"Contents":case 2:return n.content;default:return n.transform}}return n.propertyGroup=propertyGroupFactory(n,i),i=((t,e)=>{function i(t){for(var e=0,i=s.length;e<i;){if(s[e]._name===t||s[e].mn===t||s[e].propertyIndex===t||s[e].ix===t||s[e].ind===t)return s[e];e+=1}return"number"==typeof t?s[t-1]:null}i.propertyGroup=propertyGroupFactory(i,n.propertyGroup),s=a(t.it,e.it,i.propertyGroup),i.numProperties=s.length;var s,e=o(t.it[t.it.length-1],e.it[e.it.length-1],i.propertyGroup);return i.transform=e,i.propertyIndex=t.cix,i._name=t.nm,i})(t,e),e=o(t.it[t.it.length-1],e.it[e.it.length-1],n.propertyGroup),n.content=i,n.transform=e,Object.defineProperty(n,"_name",{get:function(){return t.nm}}),n.numProperties=t.np,n.propertyIndex=t.ix,n.nm=t.nm,n.mn=t.mn,n})(t[r],e[r],i)):"fl"===t[r].ty?s.push(((t,e,i)=>{function s(t){return"Color"===t||"color"===t?s.color:"Opacity"===t||"opacity"===t?s.opacity:null}return Object.defineProperties(s,{color:{get:ExpressionPropertyInterface(e.c)},opacity:{get:ExpressionPropertyInterface(e.o)},_name:{value:t.nm},mn:{value:t.mn}}),e.c.setGroupProperty(PropertyInterface("Color",i)),e.o.setGroupProperty(PropertyInterface("Opacity",i)),s})(t[r],e[r],i)):"st"===t[r].ty?s.push(((t,e,i)=>{var s,i=propertyGroupFactory(l,i),n=propertyGroupFactory(void 0,i),r=t.d?t.d.length:0,a={};for(s=0;s<r;s+=1){{o=void 0;var o=s;Object.defineProperty(a,t.d[o].nm,{get:ExpressionPropertyInterface(e.d.dataProps[o].p)})}e.d.dataProps[s].p.setGroupProperty(n)}function l(t){return"Color"===t||"color"===t?l.color:"Opacity"===t||"opacity"===t?l.opacity:"Stroke Width"===t||"stroke width"===t?l.strokeWidth:null}return Object.defineProperties(l,{color:{get:ExpressionPropertyInterface(e.c)},opacity:{get:ExpressionPropertyInterface(e.o)},strokeWidth:{get:ExpressionPropertyInterface(e.w)},dash:{get:function(){return a}},_name:{value:t.nm},mn:{value:t.mn}}),e.c.setGroupProperty(PropertyInterface("Color",i)),e.o.setGroupProperty(PropertyInterface("Opacity",i)),e.w.setGroupProperty(PropertyInterface("Stroke Width",i)),l})(t[r],e[r],i)):"tm"===t[r].ty?s.push(((e,t,i)=>{function s(t){return t===e.e.ix||"End"===t||"end"===t?s.end:t===e.s.ix?s.start:t===e.o.ix?s.offset:null}var n=propertyGroupFactory(s,i);return s.propertyIndex=e.ix,t.s.setGroupProperty(PropertyInterface("Start",n)),t.e.setGroupProperty(PropertyInterface("End",n)),t.o.setGroupProperty(PropertyInterface("Offset",n)),s.propertyIndex=e.ix,s.propertyGroup=i,Object.defineProperties(s,{start:{get:ExpressionPropertyInterface(t.s)},end:{get:ExpressionPropertyInterface(t.e)},offset:{get:ExpressionPropertyInterface(t.o)},_name:{value:e.nm}}),s.mn=e.mn,s})(t[r],e[r],i)):"tr"!==t[r].ty&&("el"===t[r].ty?s.push(((e,t,i)=>{function s(t){return e.p.ix===t?s.position:e.s.ix===t?s.size:null}return i=propertyGroupFactory(s,i),s.propertyIndex=e.ix,(t="tm"===t.sh.ty?t.sh.prop:t.sh).s.setGroupProperty(PropertyInterface("Size",i)),t.p.setGroupProperty(PropertyInterface("Position",i)),Object.defineProperties(s,{size:{get:ExpressionPropertyInterface(t.s)},position:{get:ExpressionPropertyInterface(t.p)},_name:{value:e.nm}}),s.mn=e.mn,s})(t[r],e[r],i)):"sr"===t[r].ty?s.push(((e,t,i)=>{function s(t){return e.p.ix===t?s.position:e.r.ix===t?s.rotation:e.pt.ix===t?s.points:e.or.ix===t||"ADBE Vector Star Outer Radius"===t?s.outerRadius:e.os.ix===t?s.outerRoundness:!e.ir||e.ir.ix!==t&&"ADBE Vector Star Inner Radius"!==t?e.is&&e.is.ix===t?s.innerRoundness:null:s.innerRadius}return i=propertyGroupFactory(s,i),t="tm"===t.sh.ty?t.sh.prop:t.sh,s.propertyIndex=e.ix,t.or.setGroupProperty(PropertyInterface("Outer Radius",i)),t.os.setGroupProperty(PropertyInterface("Outer Roundness",i)),t.pt.setGroupProperty(PropertyInterface("Points",i)),t.p.setGroupProperty(PropertyInterface("Position",i)),t.r.setGroupProperty(PropertyInterface("Rotation",i)),e.ir&&(t.ir.setGroupProperty(PropertyInterface("Inner Radius",i)),t.is.setGroupProperty(PropertyInterface("Inner Roundness",i))),Object.defineProperties(s,{position:{get:ExpressionPropertyInterface(t.p)},rotation:{get:ExpressionPropertyInterface(t.r)},points:{get:ExpressionPropertyInterface(t.pt)},outerRadius:{get:ExpressionPropertyInterface(t.or)},outerRoundness:{get:ExpressionPropertyInterface(t.os)},innerRadius:{get:ExpressionPropertyInterface(t.ir)},innerRoundness:{get:ExpressionPropertyInterface(t.is)},_name:{value:e.nm}}),s.mn=e.mn,s})(t[r],e[r],i)):"sh"===t[r].ty?s.push(ShapePathInterface(t[r],e[r],i)):"rc"===t[r].ty?s.push(((e,t,i)=>{function s(t){return e.p.ix===t?s.position:e.r.ix===t?s.roundness:e.s.ix===t||"Size"===t||"ADBE Vector Rect Size"===t?s.size:null}return i=propertyGroupFactory(s,i),t="tm"===t.sh.ty?t.sh.prop:t.sh,s.propertyIndex=e.ix,t.p.setGroupProperty(PropertyInterface("Position",i)),t.s.setGroupProperty(PropertyInterface("Size",i)),t.r.setGroupProperty(PropertyInterface("Rotation",i)),Object.defineProperties(s,{position:{get:ExpressionPropertyInterface(t.p)},roundness:{get:ExpressionPropertyInterface(t.r)},size:{get:ExpressionPropertyInterface(t.s)},_name:{value:e.nm}}),s.mn=e.mn,s})(t[r],e[r],i)):"rd"===t[r].ty?s.push(((e,t,i)=>{function s(t){return e.r.ix===t||"Round Corners 1"===t?s.radius:null}return i=propertyGroupFactory(s,i),s.propertyIndex=e.ix,t.rd.setGroupProperty(PropertyInterface("Radius",i)),Object.defineProperties(s,{radius:{get:ExpressionPropertyInterface(t.rd)},_name:{value:e.nm}}),s.mn=e.mn,s})(t[r],e[r],i)):"rp"===t[r].ty?s.push(((e,t,i)=>{function s(t){return e.c.ix===t||"Copies"===t?s.copies:e.o.ix===t||"Offset"===t?s.offset:null}return i=propertyGroupFactory(s,i),s.propertyIndex=e.ix,t.c.setGroupProperty(PropertyInterface("Copies",i)),t.o.setGroupProperty(PropertyInterface("Offset",i)),Object.defineProperties(s,{copies:{get:ExpressionPropertyInterface(t.c)},offset:{get:ExpressionPropertyInterface(t.o)},_name:{value:e.nm}}),s.mn=e.mn,s})(t[r],e[r],i)):"gf"===t[r].ty?s.push(((t,e,i)=>{function s(t){return"Start Point"===t||"start point"===t?s.startPoint:"End Point"===t||"end point"===t?s.endPoint:"Opacity"===t||"opacity"===t?s.opacity:null}return Object.defineProperties(s,{startPoint:{get:ExpressionPropertyInterface(e.s)},endPoint:{get:ExpressionPropertyInterface(e.e)},opacity:{get:ExpressionPropertyInterface(e.o)},type:{get:function(){return"a"}},_name:{value:t.nm},mn:{value:t.mn}}),e.s.setGroupProperty(PropertyInterface("Start Point",i)),e.e.setGroupProperty(PropertyInterface("End Point",i)),e.o.setGroupProperty(PropertyInterface("Opacity",i)),s})(t[r],e[r],i)):s.push((t[r],e[r],function(){return null})));return s}function o(e,t,i){function s(t){return e.a.ix===t||"Anchor Point"===t?s.anchorPoint:e.o.ix===t||"Opacity"===t?s.opacity:e.p.ix===t||"Position"===t?s.position:e.r.ix===t||"Rotation"===t||"ADBE Vector Rotation"===t?s.rotation:e.s.ix===t||"Scale"===t?s.scale:e.sk&&e.sk.ix===t||"Skew"===t?s.skew:e.sa&&e.sa.ix===t||"Skew Axis"===t?s.skewAxis:null}var n=propertyGroupFactory(s,i);return t.transform.mProps.o.setGroupProperty(PropertyInterface("Opacity",n)),t.transform.mProps.p.setGroupProperty(PropertyInterface("Position",n)),t.transform.mProps.a.setGroupProperty(PropertyInterface("Anchor Point",n)),t.transform.mProps.s.setGroupProperty(PropertyInterface("Scale",n)),t.transform.mProps.r.setGroupProperty(PropertyInterface("Rotation",n)),t.transform.mProps.sk&&(t.transform.mProps.sk.setGroupProperty(PropertyInterface("Skew",n)),t.transform.mProps.sa.setGroupProperty(PropertyInterface("Skew Angle",n))),t.transform.op.setGroupProperty(PropertyInterface("Opacity",n)),Object.defineProperties(s,{opacity:{get:ExpressionPropertyInterface(t.transform.mProps.o)},position:{get:ExpressionPropertyInterface(t.transform.mProps.p)},anchorPoint:{get:ExpressionPropertyInterface(t.transform.mProps.a)},scale:{get:ExpressionPropertyInterface(t.transform.mProps.s)},rotation:{get:ExpressionPropertyInterface(t.transform.mProps.r)},skew:{get:ExpressionPropertyInterface(t.transform.mProps.sk)},skewAxis:{get:ExpressionPropertyInterface(t.transform.mProps.sa)},_name:{value:e.nm}}),s.ty="tr",s.mn=e.mn,s.propertyGroup=i,s}return function(t,e,s){var n;function i(t){if("number"==typeof t)return 0===(t=void 0===t?1:t)?s:n[t-1];for(var e=0,i=n.length;e<i;){if(n[e]._name===t)return n[e];e+=1}return null}return i.propertyGroup=propertyGroupFactory(i,function(){return s}),n=a(t,e,i.propertyGroup),i.numProperties=n.length,i._name="Contents",i}})(),TextExpressionInterface=function(e){var i;function s(t){return"ADBE Text Document"===t?s.sourceText:null}return Object.defineProperty(s,"sourceText",{get:function(){e.textProperty.getValue();var t=e.textProperty.currentData.t;return i&&t===i.value||((i=new String(t)).value=t||new String(t),Object.defineProperty(i,"style",{get:function(){return{fillColor:e.textProperty.currentData.fc}}})),i}}),s};function _typeof(t){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var FootageInterface=(dataInterfaceFactory=function(t){function e(t){return"Outline"===t?e.outlineInterface():null}return e._name="Outline",e.outlineInterface=(n="",r=(s=t).getFootageData(),function(){return n="",r=s.getFootageData(),i}),e;function i(t){var e;return r[t]?"object"===_typeof(r=r[n=t])?i:r:-1!==(e=t.indexOf(n))?(t=parseInt(t.substr(e+n.length),10),"object"===_typeof(r=r[t])?i:r):""}var s,n,r},function(t){function e(t){return"Data"===t?e.dataInterface:null}return e._name="Data",e.dataInterface=dataInterfaceFactory(t),e}),dataInterfaceFactory,interfaces={layer:LayerExpressionInterface,effects:EffectsExpressionInterface,comp:CompExpressionInterface,shape:ShapeExpressionInterface,text:TextExpressionInterface,footage:FootageInterface};function getInterface(t){return interfaces[t]||null}var expressionHelpers={searchExpressions:function(t,e,i){e.x&&(i.k=!0,i.x=!0,i.initiateExpression=ExpressionManager.initiateExpression,i.effectsSequence.push(i.initiateExpression(t,e,i).bind(i)))},getSpeedAtTime:function(t){var e=this.getValueAtTime(t),i=this.getValueAtTime(t+-.01),s=0;if(e.length){for(var n=0;n<e.length;n+=1)s+=Math.pow(i[n]-e[n],2);s=100*Math.sqrt(s)}else s=0;return s},getVelocityAtTime:function(t){if(void 0!==this.vel)return this.vel;var e,i,s=this.getValueAtTime(t),n=this.getValueAtTime(t+-.001);if(s.length)for(e=createTypedArray("float32",s.length),i=0;i<s.length;i+=1)e[i]=(n[i]-s[i])/-.001;else e=(n-s)/-.001;return e},getValueAtTime:function(t){return(t=(t*=this.elem.globalData.frameRate)-this.offsetTime)!==this._cachingAtTime.lastFrame&&(this._cachingAtTime.lastIndex=this._cachingAtTime.lastFrame<t?this._cachingAtTime.lastIndex:0,this._cachingAtTime.value=this.interpolateValue(t,this._cachingAtTime),this._cachingAtTime.lastFrame=t),this._cachingAtTime.value},getStaticValueAtTime:function(){return this.pv},setGroupProperty:function(t){this.propertyGroup=t}};function addPropertyDecorator(){function a(t,e,i){if(!this.k||!this.keyframes)return this.pv;t=t?t.toLowerCase():"";var s,n,r,a,o,l=this.comp.renderedFrame,h=this.keyframes,c=h[h.length-1].t;if(l<=c)return this.pv;if(i?n=c-(s=e?Math.abs(c-this.elem.comp.globalData.frameRate*e):Math.max(0,c-this.elem.data.ip)):((!e||e>h.length-1)&&(e=h.length-1),s=c-(n=h[h.length-1-e].t)),"pingpong"===t){if(Math.floor((l-n)/s)%2!=0)return this.getValueAtTime((s-(l-n)%s+n)/this.comp.globalData.frameRate,0)}else{if("offset"===t){var p=this.getValueAtTime(n/this.comp.globalData.frameRate,0),u=this.getValueAtTime(c/this.comp.globalData.frameRate,0),d=this.getValueAtTime(((l-n)%s+n)/this.comp.globalData.frameRate,0),f=Math.floor((l-n)/s);if(this.pv.length){for(a=(o=new Array(p.length)).length,r=0;r<a;r+=1)o[r]=(u[r]-p[r])*f+d[r];return o}return(u-p)*f+d}if("continue"===t){var m=this.getValueAtTime(c/this.comp.globalData.frameRate,0),g=this.getValueAtTime((c-.001)/this.comp.globalData.frameRate,0);if(this.pv.length){for(a=(o=new Array(m.length)).length,r=0;r<a;r+=1)o[r]=m[r]+(m[r]-g[r])*((l-c)/this.comp.globalData.frameRate)/5e-4;return o}return m+(l-c)/.001*(m-g)}}return this.getValueAtTime(((l-n)%s+n)/this.comp.globalData.frameRate,0)}function o(t,e,i){if(!this.k)return this.pv;t=t?t.toLowerCase():"";var s,n,r,a,o,l=this.comp.renderedFrame,h=this.keyframes,c=h[0].t;if(c<=l)return this.pv;if(i?n=c+(s=e?Math.abs(this.elem.comp.globalData.frameRate*e):Math.max(0,this.elem.data.op-c)):s=(n=h[e=!e||e>h.length-1?h.length-1:e].t)-c,"pingpong"===t){if(Math.floor((c-l)/s)%2==0)return this.getValueAtTime(((c-l)%s+c)/this.comp.globalData.frameRate,0)}else{if("offset"===t){var p=this.getValueAtTime(c/this.comp.globalData.frameRate,0),u=this.getValueAtTime(n/this.comp.globalData.frameRate,0),d=this.getValueAtTime((s-(c-l)%s+c)/this.comp.globalData.frameRate,0),f=Math.floor((c-l)/s)+1;if(this.pv.length){for(a=(o=new Array(p.length)).length,r=0;r<a;r+=1)o[r]=d[r]-(u[r]-p[r])*f;return o}return d-(u-p)*f}if("continue"===t){var m=this.getValueAtTime(c/this.comp.globalData.frameRate,0),g=this.getValueAtTime((c+.001)/this.comp.globalData.frameRate,0);if(this.pv.length){for(a=(o=new Array(m.length)).length,r=0;r<a;r+=1)o[r]=m[r]+(m[r]-g[r])*(c-l)/.001;return o}return m+(m-g)*(c-l)/.001}}return this.getValueAtTime((s-((c-l)%s+c))/this.comp.globalData.frameRate,0)}function l(t,e){if(!this.k)return this.pv;if(t=.5*(t||.4),(e=Math.floor(e||5))<=1)return this.pv;for(var i,s=this.comp.renderedFrame/this.comp.globalData.frameRate,n=s-t,r=1<e?(s+t-n)/(e-1):1,a=0,o=0,l=this.pv.length?createTypedArray("float32",this.pv.length):0;a<e;){if(i=this.getValueAtTime(n+a*r),this.pv.length)for(o=0;o<this.pv.length;o+=1)l[o]+=i[o];else l+=i;a+=1}if(this.pv.length)for(o=0;o<this.pv.length;o+=1)l[o]/=e;else l/=e;return l}var s=TransformPropertyFactory.getTransformProperty,h=(TransformPropertyFactory.getTransformProperty=function(t,e,i){t=s(t,e,i);return t.dynamicProperties.length?t.getValueAtTime=function(t){this._transformCachingAtTime||(this._transformCachingAtTime={v:new Matrix});var e,i,s,n,r=this._transformCachingAtTime.v;return r.cloneFromProps(this.pre.props),this.appliedTransformations<1&&(i=this.a.getValueAtTime(t),r.translate(-i[0]*this.a.mult,-i[1]*this.a.mult,i[2]*this.a.mult)),this.appliedTransformations<2&&(i=this.s.getValueAtTime(t),r.scale(i[0]*this.s.mult,i[1]*this.s.mult,i[2]*this.s.mult)),this.sk&&this.appliedTransformations<3&&(i=this.sk.getValueAtTime(t),e=this.sa.getValueAtTime(t),r.skewFromAxis(-i*this.sk.mult,e*this.sa.mult)),this.r&&this.appliedTransformations<4?(i=this.r.getValueAtTime(t),r.rotate(-i*this.r.mult)):!this.r&&this.appliedTransformations<4&&(e=this.rz.getValueAtTime(t),i=this.ry.getValueAtTime(t),s=this.rx.getValueAtTime(t),n=this.or.getValueAtTime(t),r.rotateZ(-e*this.rz.mult).rotateY(i*this.ry.mult).rotateX(s*this.rx.mult).rotateZ(-n[2]*this.or.mult).rotateY(n[1]*this.or.mult).rotateX(n[0]*this.or.mult)),this.data.p&&this.data.p.s?(e=this.px.getValueAtTime(t),i=this.py.getValueAtTime(t),this.data.p.z?(s=this.pz.getValueAtTime(t),r.translate(e*this.px.mult,i*this.py.mult,-s*this.pz.mult)):r.translate(e*this.px.mult,i*this.py.mult,0)):(n=this.p.getValueAtTime(t),r.translate(n[0]*this.p.mult,n[1]*this.p.mult,-n[2]*this.p.mult)),r}.bind(t):t.getValueAtTime=function(){return this.v.clone(new Matrix)}.bind(t),t.setGroupProperty=expressionHelpers.setGroupProperty,t},PropertyFactory.getProp),t=(PropertyFactory.getProp=function(t,e,i,s,n){var s=h(t,e,i,s,n),r=(s.kf?s.getValueAtTime=expressionHelpers.getValueAtTime.bind(s):s.getValueAtTime=expressionHelpers.getStaticValueAtTime.bind(s),s.setGroupProperty=expressionHelpers.setGroupProperty,s.loopOut=a,s.loopIn=o,s.smooth=l,s.getVelocityAtTime=expressionHelpers.getVelocityAtTime.bind(s),s.getSpeedAtTime=expressionHelpers.getSpeedAtTime.bind(s),s.numKeys=1===e.a?e.k.length:0,s.propertyIndex=e.ix,0);return 0!==i&&(r=createTypedArray("float32",(1===e.a?e.k[0].s:e.k).length)),s._cachingAtTime={lastFrame:initialDefaultFrame,lastIndex:0,value:r},expressionHelpers.searchExpressions(t,e,s),s.k&&n.addDynamicProperty(s),s},ShapePropertyFactory.getConstructorFunction()),e=ShapePropertyFactory.getKeyframedConstructorFunction();function i(){}i.prototype={vertices:function(t,e){this.k&&this.getValue();for(var i=this.v,s=(i=void 0!==e?this.getValueAtTime(e,0):i)._length,n=i[t],r=i.v,a=createSizedArray(s),o=0;o<s;o+=1)a[o]="i"===t||"o"===t?[n[o][0]-r[o][0],n[o][1]-r[o][1]]:[n[o][0],n[o][1]];return a},points:function(t){return this.vertices("v",t)},inTangents:function(t){return this.vertices("i",t)},outTangents:function(t){return this.vertices("o",t)},isClosed:function(){return this.v.c},pointOnPath:function(t,e){var i=this.v;void 0!==e&&(i=this.getValueAtTime(e,0)),this._segmentsLength||(this._segmentsLength=bez.getSegmentsLength(i));for(var e=this._segmentsLength,s=e.lengths,n=e.totalLength*t,r=0,a=s.length,o=0;r<a;){if(o+s[r].addedLength>n){var l=r,h=i.c&&r===a-1?0:r+1,c=(n-o)/s[r].addedLength,p=bez.getPointInSegment(i.v[l],i.v[h],i.o[l],i.i[h],c,s[r]);break}o+=s[r].addedLength,r+=1}return p=p||(i.c?[i.v[0][0],i.v[0][1]]:[i.v[i._length-1][0],i.v[i._length-1][1]])},vectorOnPath:function(t,e,i){1==t?t=this.v.c:0==t&&(t=.999);var s=this.pointOnPath(t,e),t=this.pointOnPath(t+.001,e),e=t[0]-s[0],t=t[1]-s[1],s=Math.sqrt(Math.pow(e,2)+Math.pow(t,2));return 0===s?[0,0]:"tangent"===i?[e/s,t/s]:[-t/s,e/s]},tangentOnPath:function(t,e){return this.vectorOnPath(t,e,"tangent")},normalOnPath:function(t,e){return this.vectorOnPath(t,e,"normal")},setGroupProperty:expressionHelpers.setGroupProperty,getValueAtTime:expressionHelpers.getStaticValueAtTime},extendPrototype([i],t),extendPrototype([i],e),e.prototype.getValueAtTime=function(t){return this._cachingAtTime||(this._cachingAtTime={shapeValue:shapePool.clone(this.pv),lastIndex:0,lastTime:initialDefaultFrame}),(t=(t*=this.elem.globalData.frameRate)-this.offsetTime)!==this._cachingAtTime.lastTime&&(this._cachingAtTime.lastIndex=this._cachingAtTime.lastTime<t?this._caching.lastIndex:0,this._cachingAtTime.lastTime=t,this.interpolateShape(t,this._cachingAtTime.shapeValue,this._cachingAtTime)),this._cachingAtTime.shapeValue},e.prototype.initiateExpression=ExpressionManager.initiateExpression;var r=ShapePropertyFactory.getShapeProp;ShapePropertyFactory.getShapeProp=function(t,e,i,s,n){s=r(t,e,i,s,n);return s.propertyIndex=e.ix,s.lock=!1,3===i?expressionHelpers.searchExpressions(t,e.pt,s):4===i&&expressionHelpers.searchExpressions(t,e.ks,s),s.k&&t.addDynamicProperty(s),s}}function initialize$1(){addPropertyDecorator()}function addDecorator(){TextProperty.prototype.getExpressionValue=function(t,e){var i,e=this.calculateExpression(e);return t.t!==e?(this.copyData(i={},t),i.t=e.toString(),i.__complete=!1,i):t},TextProperty.prototype.searchProperty=function(){var t=this.searchKeyframes(),e=this.searchExpressions();return this.kf=t||e,this.kf},TextProperty.prototype.searchExpressions=function(){return this.data.d.x?(this.calculateExpression=ExpressionManager.initiateExpression.bind(this)(this.elem,this.data.d,this),this.addEffect(this.getExpressionValue.bind(this)),!0):null}}function initialize(){addDecorator()}function SVGComposableEffect(){}SVGComposableEffect.prototype={createMergeNode:function(t,e){var i,s,n=createNS("feMerge");for(n.setAttribute("result",t),s=0;s<e.length;s+=1)(i=createNS("feMergeNode")).setAttribute("in",e[s]),n.appendChild(i),n.appendChild(i);return n}};var linearFilterValue="0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0 0 0";function SVGTintFilter(t,e,i,s,n){this.filterManager=e;e=createNS("feColorMatrix"),e.setAttribute("type","matrix"),e.setAttribute("color-interpolation-filters","linearRGB"),e.setAttribute("values",linearFilterValue+" 1 0"),(this.linearFilter=e).setAttribute("result",s+"_tint_1"),t.appendChild(e),(e=createNS("feColorMatrix")).setAttribute("type","matrix"),e.setAttribute("color-interpolation-filters","sRGB"),e.setAttribute("values","1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"),e.setAttribute("result",s+"_tint_2"),t.appendChild(e),this.matrixFilter=e,e=this.createMergeNode(s,[n,s+"_tint_1",s+"_tint_2"]);t.appendChild(e)}function SVGFillFilter(t,e,i,s){this.filterManager=e;e=createNS("feColorMatrix");e.setAttribute("type","matrix"),e.setAttribute("color-interpolation-filters","sRGB"),e.setAttribute("values","1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"),e.setAttribute("result",s),t.appendChild(e),this.matrixFilter=e}function SVGStrokeEffect(t,e,i){this.initialized=!1,this.filterManager=e,this.elem=i,this.paths=[]}function SVGTritoneFilter(t,e,i,s){this.filterManager=e;e=createNS("feColorMatrix"),e.setAttribute("type","matrix"),e.setAttribute("color-interpolation-filters","linearRGB"),e.setAttribute("values","0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0 0 0 1 0"),t.appendChild(e),e=createNS("feComponentTransfer"),e.setAttribute("color-interpolation-filters","sRGB"),e.setAttribute("result",s),this.matrixFilter=e,s=createNS("feFuncR"),s.setAttribute("type","table"),e.appendChild(s),this.feFuncR=s,s=createNS("feFuncG"),s.setAttribute("type","table"),e.appendChild(s),this.feFuncG=s,s=createNS("feFuncB");s.setAttribute("type","table"),e.appendChild(s),this.feFuncB=s,t.appendChild(e)}function SVGProLevelsFilter(t,e,i,s){this.filterManager=e;var e=this.filterManager.effectElements,n=createNS("feComponentTransfer");(e[10].p.k||0!==e[10].p.v||e[11].p.k||1!==e[11].p.v||e[12].p.k||1!==e[12].p.v||e[13].p.k||0!==e[13].p.v||e[14].p.k||1!==e[14].p.v)&&(this.feFuncR=this.createFeFunc("feFuncR",n)),(e[17].p.k||0!==e[17].p.v||e[18].p.k||1!==e[18].p.v||e[19].p.k||1!==e[19].p.v||e[20].p.k||0!==e[20].p.v||e[21].p.k||1!==e[21].p.v)&&(this.feFuncG=this.createFeFunc("feFuncG",n)),(e[24].p.k||0!==e[24].p.v||e[25].p.k||1!==e[25].p.v||e[26].p.k||1!==e[26].p.v||e[27].p.k||0!==e[27].p.v||e[28].p.k||1!==e[28].p.v)&&(this.feFuncB=this.createFeFunc("feFuncB",n)),(e[31].p.k||0!==e[31].p.v||e[32].p.k||1!==e[32].p.v||e[33].p.k||1!==e[33].p.v||e[34].p.k||0!==e[34].p.v||e[35].p.k||1!==e[35].p.v)&&(this.feFuncA=this.createFeFunc("feFuncA",n)),(this.feFuncR||this.feFuncG||this.feFuncB||this.feFuncA)&&(n.setAttribute("color-interpolation-filters","sRGB"),t.appendChild(n)),(e[3].p.k||0!==e[3].p.v||e[4].p.k||1!==e[4].p.v||e[5].p.k||1!==e[5].p.v||e[6].p.k||0!==e[6].p.v||e[7].p.k||1!==e[7].p.v)&&((n=createNS("feComponentTransfer")).setAttribute("color-interpolation-filters","sRGB"),n.setAttribute("result",s),t.appendChild(n),this.feFuncRComposed=this.createFeFunc("feFuncR",n),this.feFuncGComposed=this.createFeFunc("feFuncG",n),this.feFuncBComposed=this.createFeFunc("feFuncB",n))}function SVGDropShadowEffect(t,e,i,s,n){var r=e.container.globalData.renderConfig.filterSize,a=e.data.fs||r,a=(t.setAttribute("x",a.x||r.x),t.setAttribute("y",a.y||r.y),t.setAttribute("width",a.width||r.width),t.setAttribute("height",a.height||r.height),this.filterManager=e,createNS("feGaussianBlur")),r=(a.setAttribute("in","SourceAlpha"),a.setAttribute("result",s+"_drop_shadow_1"),a.setAttribute("stdDeviation","0"),this.feGaussianBlur=a,t.appendChild(a),createNS("feOffset")),e=(r.setAttribute("dx","25"),r.setAttribute("dy","0"),r.setAttribute("in",s+"_drop_shadow_1"),r.setAttribute("result",s+"_drop_shadow_2"),this.feOffset=r,t.appendChild(r),createNS("feFlood")),a=(e.setAttribute("flood-color","#00ff00"),e.setAttribute("flood-opacity","1"),e.setAttribute("result",s+"_drop_shadow_3"),this.feFlood=e,t.appendChild(e),createNS("feComposite")),r=(a.setAttribute("in",s+"_drop_shadow_3"),a.setAttribute("in2",s+"_drop_shadow_2"),a.setAttribute("operator","in"),a.setAttribute("result",s+"_drop_shadow_4"),t.appendChild(a),this.createMergeNode(s,[s+"_drop_shadow_4",n]));t.appendChild(r)}extendPrototype([SVGComposableEffect],SVGTintFilter),SVGTintFilter.prototype.renderFrame=function(t){var e,i;(t||this.filterManager._mdf)&&(t=this.filterManager.effectElements[0].p.v,e=this.filterManager.effectElements[1].p.v,i=this.filterManager.effectElements[2].p.v/100,this.linearFilter.setAttribute("values",linearFilterValue+" "+i+" 0"),this.matrixFilter.setAttribute("values",e[0]-t[0]+" 0 0 0 "+t[0]+" "+(e[1]-t[1])+" 0 0 0 "+t[1]+" "+(e[2]-t[2])+" 0 0 0 "+t[2]+" 0 0 0 1 0"))},SVGFillFilter.prototype.renderFrame=function(t){var e;(t||this.filterManager._mdf)&&(t=this.filterManager.effectElements[2].p.v,e=this.filterManager.effectElements[6].p.v,this.matrixFilter.setAttribute("values","0 0 0 0 "+t[0]+" 0 0 0 0 "+t[1]+" 0 0 0 0 "+t[2]+" 0 0 0 "+e+" 0"))},SVGStrokeEffect.prototype.initialize=function(){var t,e,i,s,n=this.elem.layerElement.children||this.elem.layerElement.childNodes;for(1===this.filterManager.effectElements[1].p.v?(s=this.elem.maskManager.masksProperties.length,i=0):s=1+(i=this.filterManager.effectElements[0].p.v-1),(e=createNS("g")).setAttribute("fill","none"),e.setAttribute("stroke-linecap","round"),e.setAttribute("stroke-dashoffset",1);i<s;i+=1)t=createNS("path"),e.appendChild(t),this.paths.push({p:t,m:i});if(3===this.filterManager.effectElements[10].p.v){var r=createNS("mask"),a=createElementID(),o=(r.setAttribute("id",a),r.setAttribute("mask-type","alpha"),r.appendChild(e),this.elem.globalData.defs.appendChild(r),createNS("g"));for(o.setAttribute("mask","url("+getLocationHref()+"#"+a+")");n[0];)o.appendChild(n[0]);this.elem.layerElement.appendChild(o),this.masker=r,e.setAttribute("stroke","#fff")}else if(1===this.filterManager.effectElements[10].p.v||2===this.filterManager.effectElements[10].p.v){if(2===this.filterManager.effectElements[10].p.v)for(n=this.elem.layerElement.children||this.elem.layerElement.childNodes;n.length;)this.elem.layerElement.removeChild(n[0]);this.elem.layerElement.appendChild(e),this.elem.layerElement.removeAttribute("mask"),e.setAttribute("stroke","#fff")}this.initialized=!0,this.pathMasker=e},SVGStrokeEffect.prototype.renderFrame=function(t){this.initialized||this.initialize();for(var e,i,s=this.paths.length,n=0;n<s;n+=1)if(-1!==this.paths[n].m&&(r=this.elem.maskManager.viewData[this.paths[n].m],e=this.paths[n].p,(t||this.filterManager._mdf||r.prop._mdf)&&e.setAttribute("d",r.lastPath),t||this.filterManager.effectElements[9].p._mdf||this.filterManager.effectElements[4].p._mdf||this.filterManager.effectElements[7].p._mdf||this.filterManager.effectElements[8].p._mdf||r.prop._mdf)){if(0!==this.filterManager.effectElements[7].p.v||100!==this.filterManager.effectElements[8].p.v){for(var r=.01*Math.min(this.filterManager.effectElements[7].p.v,this.filterManager.effectElements[8].p.v),a=.01*Math.max(this.filterManager.effectElements[7].p.v,this.filterManager.effectElements[8].p.v),o=e.getTotalLength(),l="0 0 0 "+o*r+" ",h=1+2*this.filterManager.effectElements[4].p.v*this.filterManager.effectElements[9].p.v*.01,c=Math.floor(o*(a-r)/h),p=0;p<c;p+=1)l+="1 "+2*this.filterManager.effectElements[4].p.v*this.filterManager.effectElements[9].p.v*.01+" ";l+="0 "+10*o+" 0 0"}else l="1 "+2*this.filterManager.effectElements[4].p.v*this.filterManager.effectElements[9].p.v*.01;e.setAttribute("stroke-dasharray",l)}(t||this.filterManager.effectElements[4].p._mdf)&&this.pathMasker.setAttribute("stroke-width",2*this.filterManager.effectElements[4].p.v),(t||this.filterManager.effectElements[6].p._mdf)&&this.pathMasker.setAttribute("opacity",this.filterManager.effectElements[6].p.v),1!==this.filterManager.effectElements[10].p.v&&2!==this.filterManager.effectElements[10].p.v||!t&&!this.filterManager.effectElements[3].p._mdf||(i=this.filterManager.effectElements[3].p.v,this.pathMasker.setAttribute("stroke","rgb("+bmFloor(255*i[0])+","+bmFloor(255*i[1])+","+bmFloor(255*i[2])+")"))},SVGTritoneFilter.prototype.renderFrame=function(t){var e,i,s,n;(t||this.filterManager._mdf)&&(t=this.filterManager.effectElements[0].p.v,e=this.filterManager.effectElements[1].p.v,i=(n=this.filterManager.effectElements[2].p.v)[0]+" "+e[0]+" "+t[0],s=n[1]+" "+e[1]+" "+t[1],n=n[2]+" "+e[2]+" "+t[2],this.feFuncR.setAttribute("tableValues",i),this.feFuncG.setAttribute("tableValues",s),this.feFuncB.setAttribute("tableValues",n))},SVGProLevelsFilter.prototype.createFeFunc=function(t,e){t=createNS(t);return t.setAttribute("type","table"),e.appendChild(t),t},SVGProLevelsFilter.prototype.getTableValue=function(t,e,i,s,n){for(var r,a=0,o=Math.min(t,e),l=Math.max(t,e),h=Array.call(null,{length:256}),c=0,p=n-s,u=e-t;a<=256;)r=(r=a/256)<=o?u<0?n:s:l<=r?u<0?s:n:s+p*Math.pow((r-t)/u,1/i),h[c]=r,c+=1,a+=256/255;return h.join(" ")},SVGProLevelsFilter.prototype.renderFrame=function(t){var e,i;(t||this.filterManager._mdf)&&(i=this.filterManager.effectElements,this.feFuncRComposed&&(t||i[3].p._mdf||i[4].p._mdf||i[5].p._mdf||i[6].p._mdf||i[7].p._mdf)&&(e=this.getTableValue(i[3].p.v,i[4].p.v,i[5].p.v,i[6].p.v,i[7].p.v),this.feFuncRComposed.setAttribute("tableValues",e),this.feFuncGComposed.setAttribute("tableValues",e),this.feFuncBComposed.setAttribute("tableValues",e)),this.feFuncR&&(t||i[10].p._mdf||i[11].p._mdf||i[12].p._mdf||i[13].p._mdf||i[14].p._mdf)&&(e=this.getTableValue(i[10].p.v,i[11].p.v,i[12].p.v,i[13].p.v,i[14].p.v),this.feFuncR.setAttribute("tableValues",e)),this.feFuncG&&(t||i[17].p._mdf||i[18].p._mdf||i[19].p._mdf||i[20].p._mdf||i[21].p._mdf)&&(e=this.getTableValue(i[17].p.v,i[18].p.v,i[19].p.v,i[20].p.v,i[21].p.v),this.feFuncG.setAttribute("tableValues",e)),this.feFuncB&&(t||i[24].p._mdf||i[25].p._mdf||i[26].p._mdf||i[27].p._mdf||i[28].p._mdf)&&(e=this.getTableValue(i[24].p.v,i[25].p.v,i[26].p.v,i[27].p.v,i[28].p.v),this.feFuncB.setAttribute("tableValues",e)),this.feFuncA)&&(t||i[31].p._mdf||i[32].p._mdf||i[33].p._mdf||i[34].p._mdf||i[35].p._mdf)&&(e=this.getTableValue(i[31].p.v,i[32].p.v,i[33].p.v,i[34].p.v,i[35].p.v),this.feFuncA.setAttribute("tableValues",e))},extendPrototype([SVGComposableEffect],SVGDropShadowEffect),SVGDropShadowEffect.prototype.renderFrame=function(t){var e,i;(t||this.filterManager._mdf)&&((t||this.filterManager.effectElements[4].p._mdf)&&this.feGaussianBlur.setAttribute("stdDeviation",this.filterManager.effectElements[4].p.v/4),(t||this.filterManager.effectElements[0].p._mdf)&&(i=this.filterManager.effectElements[0].p.v,this.feFlood.setAttribute("flood-color",rgbToHex(Math.round(255*i[0]),Math.round(255*i[1]),Math.round(255*i[2])))),(t||this.filterManager.effectElements[1].p._mdf)&&this.feFlood.setAttribute("flood-opacity",this.filterManager.effectElements[1].p.v/255),t||this.filterManager.effectElements[2].p._mdf||this.filterManager.effectElements[3].p._mdf)&&(i=this.filterManager.effectElements[3].p.v,t=(this.filterManager.effectElements[2].p.v-90)*degToRads,e=i*Math.cos(t),i=i*Math.sin(t),this.feOffset.setAttribute("dx",e),this.feOffset.setAttribute("dy",i))};var _svgMatteSymbols=[];function SVGMatte3Effect(t,e,i){this.initialized=!1,this.filterManager=e,this.filterElem=t,(this.elem=i).matteElement=createNS("g"),i.matteElement.appendChild(i.layerElement),i.matteElement.appendChild(i.transformedElement),i.baseElement=i.matteElement}function SVGGaussianBlurEffect(t,e,i,s){t.setAttribute("x","-100%"),t.setAttribute("y","-100%"),t.setAttribute("width","300%"),t.setAttribute("height","300%"),this.filterManager=e;e=createNS("feGaussianBlur");e.setAttribute("result",s),t.appendChild(e),this.feGaussianBlur=e}function TransformEffect(){}function SVGTransformEffect(t,e){this.init(e)}function CVTransformEffect(t){this.init(t)}return SVGMatte3Effect.prototype.findSymbol=function(t){for(var e=0,i=_svgMatteSymbols.length;e<i;){if(_svgMatteSymbols[e]===t)return _svgMatteSymbols[e];e+=1}return null},SVGMatte3Effect.prototype.replaceInParent=function(t,e){var i=t.layerElement.parentNode;if(i){for(var s,n=i.children,r=0,a=n.length;r<a&&n[r]!==t.layerElement;)r+=1;r<=a-2&&(s=n[r+1]);var o=createNS("use");o.setAttribute("href","#"+e),s?i.insertBefore(o,s):i.appendChild(o)}},SVGMatte3Effect.prototype.setElementAsMask=function(t,e){var i,s,n,r;this.findSymbol(e)||(i=createElementID(),(s=createNS("mask")).setAttribute("id",e.layerId),s.setAttribute("mask-type","alpha"),_svgMatteSymbols.push(e),(r=t.globalData.defs).appendChild(s),(n=createNS("symbol")).setAttribute("id",i),this.replaceInParent(e,i),n.appendChild(e.layerElement),r.appendChild(n),(r=createNS("use")).setAttribute("href","#"+i),s.appendChild(r),e.data.hd=!1,e.show()),t.setMatte(e.layerId)},SVGMatte3Effect.prototype.initialize=function(){for(var t=this.filterManager.effectElements[0].p.v,e=this.elem.comp.elements,i=0,s=e.length;i<s;)e[i]&&e[i].data.ind===t&&this.setElementAsMask(this.elem,e[i]),i+=1;this.initialized=!0},SVGMatte3Effect.prototype.renderFrame=function(){this.initialized||this.initialize()},SVGGaussianBlurEffect.prototype.renderFrame=function(t){var e;(t||this.filterManager._mdf)&&(t=.3*this.filterManager.effectElements[0].p.v,e=this.filterManager.effectElements[1].p.v,this.feGaussianBlur.setAttribute("stdDeviation",(3==e?0:t)+" "+(2==e?0:t)),e=1==this.filterManager.effectElements[2].p.v?"wrap":"duplicate",this.feGaussianBlur.setAttribute("edgeMode",e))},TransformEffect.prototype.init=function(t){this.effectsManager=t,this.type=effectTypes.TRANSFORM_EFFECT,this.matrix=new Matrix,this.opacity=-1,this._mdf=!1,this._opMdf=!1},TransformEffect.prototype.renderFrame=function(t){var e,i,s,n,r,a,o;this._opMdf=!1,this._mdf=!1,(t||this.effectsManager._mdf)&&(e=(t=this.effectsManager.effectElements)[0].p.v,i=t[1].p.v,n=1===t[2].p.v,s=t[3].p.v,n=n?s:t[4].p.v,r=t[5].p.v,a=t[6].p.v,o=t[7].p.v,this.matrix.reset(),this.matrix.translate(-e[0],-e[1],e[2]),this.matrix.scale(.01*n,.01*s,1),this.matrix.rotate(-o*degToRads),this.matrix.skewFromAxis(-r*degToRads,(a+90)*degToRads),this.matrix.translate(i[0],i[1],0),this._mdf=!0,this.opacity!==t[8].p.v)&&(this.opacity=t[8].p.v,this._opMdf=!0)},extendPrototype([TransformEffect],SVGTransformEffect),extendPrototype([TransformEffect],CVTransformEffect),registerRenderer("canvas",CanvasRenderer),registerRenderer("html",HybridRenderer),registerRenderer("svg",SVGRenderer),ShapeModifiers.registerModifier("tm",TrimModifier),ShapeModifiers.registerModifier("pb",PuckerAndBloatModifier),ShapeModifiers.registerModifier("rp",RepeaterModifier),ShapeModifiers.registerModifier("rd",RoundCornersModifier),ShapeModifiers.registerModifier("zz",ZigZagModifier),ShapeModifiers.registerModifier("op",OffsetPathModifier),setExpressionsPlugin(Expressions),setExpressionInterfaces(getInterface),initialize$1(),initialize(),registerEffect$1(20,SVGTintFilter,!0),registerEffect$1(21,SVGFillFilter,!0),registerEffect$1(22,SVGStrokeEffect,!1),registerEffect$1(23,SVGTritoneFilter,!0),registerEffect$1(24,SVGProLevelsFilter,!0),registerEffect$1(25,SVGDropShadowEffect,!0),registerEffect$1(28,SVGMatte3Effect,!1),registerEffect$1(29,SVGGaussianBlurEffect,!0),registerEffect$1(35,SVGTransformEffect,!1),registerEffect(35,CVTransformEffect),lottie}),document.querySelectorAll(".accordion-heading").forEach(n=>
1{n.addEventListener("click",t=>{t.preventDefault();var t=$(n),e=t.find(".button-circular"),i=t.next(),s=t.hasClass("active");t.toggleClass("active"),i.slideToggle(300),e.attr("aria-expanded",!s),e.attr("aria-pressed",!s)})}),$(function(){$(document).on("click",".section--banner .banner-icon",function(){let t=$(this).closest(".section--banner");t.slideUp(300,function(){t.remove()})})}),document.addEventListener("DOMContentLoaded",()=>{let e=document.querySelectorAll('.content-menu-list a[href^="#"]');let i=new Set,s=null,n=new IntersectionObserver(t=>{t.forEach(t=>{t.isIntersecting?i.add(t.target.id):i.delete(t.target.id)}),0<i.size?(e.forEach(t=>t.classList.remove("active")),i.forEach(t=>{t=document.querySelector(`.content-menu-list a[href="#${t}"]`);t&&(t.classList.add("active"),s=t)})):s&&(e.forEach(t=>t.classList.remove("active")),s.classList.add("active"))},{rootMargin:"-20% 0px -70% 0px"});e.forEach(i=>{var t=document.querySelector(i.getAttribute("href"));t&&n.observe(t),i.addEventListener("click",t=>{t.preventDefault();var e,t=i.getAttribute("href"),t=document.querySelector(t);t&&(e=window.pageYOffset,e=t.offsetTop<e,t=t.offsetTop-(e?150:0),window.scrollTo({top:t,behavior:"smooth"}))})})}),document.addEventListener("DOMContentLoaded",function(){initGlideCarousels()});let initGlideCarousels=()=>{var t=document.querySelectorAll(".glide.cards-pricing-fieldset");t.length&&new Glide(t[0],{breakpoints:{1026:{perView:2},721:{perView:1}},gap:0,perView:4}).mount()},videoFileControls=(document.addEventListener("DOMContentLoaded",()=>{document.querySelectorAll(".section--lottie-two-columns, .section--media").forEach(t=>{if(t.querySelector(".lottie-container")){var n=t.querySelectorAll(".text-block");let e=t.querySelectorAll(".video-wrap");t=t.querySelectorAll(".play-toggle");let l=(t,e)=>{t&&(t.classList.toggle("playing",e),t.classList.toggle("paused",!e),t.setAttribute("aria-pressed",String(e)),t.querySelector(".icon-play")?.setAttribute("aria-hidden",String(e)),t.querySelector(".icon-pause")?.setAttribute("aria-hidden",String(!e)))},s=(e.forEach(s=>{var n=s.querySelector(".lottie-container");if(n){let i=s.querySelector(".play-toggle");s=(n.getAttribute("data-lottie")||"").trim();if(s){var r=Number.parseInt(n.getAttribute("data-loop-count")||"0",10),a=!Number.isFinite(r)||r<=0,o=window.matchMedia("(prefers-reduced-motion: reduce)").matches;let t=o||!a,e;try{e=lottie.loadAnimation({container:n,path:s,renderer:"svg",autoplay:!o,loop:!o&&(a||r)})}catch(t){return void l(i,!1)}n._animation=e,l(i,!o),e.addEventListener("complete",()=>{t&&(e.goToAndStop(0,!0),l(i,!1))})}else l(i,!1)}}),t.forEach(e=>{e.addEventListener("click",()=>{var t=e.closest(".video-wrap")?.querySelector(".lottie-container");t&&t._animation&&((t=t._animation).isPaused?(t.play(),l(e,!0)):(t.pause(),l(e,!1)))})}),null),i=new IntersectionObserver(t=>{t.forEach(t=>{if(t.isIntersecting){let i=t.target.dataset.index;s!==i&&(s=i,e.forEach(t=>{var e=t.dataset.index||"",e=e===i||e.startsWith(i+"-");t.classList.toggle("active",e)}))}})},{root:null,threshold:0,rootMargin:"-50% 0px -50% 0px"});n.forEach(t=>i.observe(t))}})}),document.addEventListener("DOMContentLoaded",()=>{document.querySelectorAll(".video-wrap").forEach(e=>{let i=e.querySelector("video");i&&i.hasAttribute("autoplay")&&i.play().catch(()=>{i.muted=!0,i.play().catch(t=>{console.warn("Autoplay failed even after muting:",t)});var t=e.querySelector(".sound-toggle");t&&(t.classList.remove("unmuted"),t.classList.add("muted"))})}),videoFileControls()}),()=>{[...document.querySelectorAll(".video-controls button")].forEach(e=>{["click","keydown"].forEach(t=>e.addEventListener(t,function(t){"keydown"===t.type&&13!==t.keyCode||(t.preventDefault(),t=document.getElementById(e.dataset.ref),e.classList.contains("sound-toggle")&&(0==t.muted?(t.muted=!0,e.classList.remove("unmuted"),e.classList.add("muted")):(t.muted=!1,e.classList.remove("muted"),e.classList.add("unmuted"))),e.classList.contains("play-toggle")&&(0==t.paused?(t.pause(),e.classList.remove("playing"),e.classList.add("paused")):(t.play(),e.classList.remove("paused"),e.classList.add("playing"))))}))})});document.addEventListener("DOMContentLoaded",function(){let t=document.querySelector(".nav-icon"),e=document.querySelector(".nav-menu"),i=document.querySelector(".top-navigation-container"),s=(window.scrollInitiatedByTabLinkClick=!1,t&&e&&(t.addEventListener("click",function(){var t="true"===this.getAttribute("aria-expanded");this.setAttribute("aria-expanded",!t),this.classList.toggle("open"),e.classList.toggle("open"),i.classList.toggle("open"),document.body.classList.toggle("no-scroll"),document.querySelector(".top-level-items").scrollIntoView({behavior:"instant"}),t&&(document.querySelectorAll(".top-level-link").forEach(function(t){t.classList.remove("open"),t.setAttribute("aria-expanded","fal
1se")}),document.querySelectorAll(".nav-dropdown").forEach(t=>t.classList.remove("open")))}),window.addEventListener("resize",function(){1120<=window.innerWidth&&(t.setAttribute("aria-expanded","false"),t.classList.remove("open"),e.classList.remove("open"),i.classList.remove("open"),document.body.classList.remove("no-scroll"))})),document.querySelectorAll(".top-level-link").forEach(function(t){t.addEventListener("click",function(t){var e=this.closest("li"),i=e.querySelector(".nav-dropdown");i&&window.innerWidth<1120&&(t.preventDefault(),t=this.classList.contains("open"),document.querySelectorAll(".top-level-link").forEach(t=>{t.classList.remove("open"),t.setAttribute("aria-expanded","false")}),document.querySelectorAll(".nav-dropdown").forEach(t=>t.classList.remove("open")),t||(this.classList.add("open"),this.setAttribute("aria-expanded","true"),i.classList.add("open"),e.scrollIntoView({behavior:"instant"})))})}),document.querySelectorAll(".top-level-link").forEach(e=>{var t=e.closest("li");1120<=window.innerWidth&&(t.addEventListener("mouseenter",()=>{e.setAttribute("aria-expanded","true")}),t.addEventListener("mouseleave",()=>{e.setAttribute("aria-expanded","false")}),t.addEventListener("focusin",()=>{e.setAttribute("aria-expanded","true")}),t.addEventListener("focusout",t=>{e.setAttribute("aria-expanded","false")}))}),0);window.addEventListener("scroll",t=>{var e;1120<=window.innerWidth&&(e=window.scrollY,s=e<=65?(i.classList.remove("nav-up"),document.body.classList.remove("nav-up"),0):(e>s?(i.classList.add("nav-up"),document.body.classList.add("nav-up")):window.scrollInitiatedByTabLinkClick||(i.classList.remove("nav-up"),document.body.classList.remove("nav-up")),e))}),window.addEventListener("scrollend",()=>{window.scrollInitiatedByTabLinkClick=!1}),window.addEventListener("resize",function(){1120<=window.innerWidth&&(document.querySelectorAll(".nav-dropdown").forEach(t=>{t.classList.remove("open")}),document.querySelectorAll(".top-level-link").forEach(t=>{t.classList.remove("open")}),document.querySelectorAll(".top-level-item").forEach(t=>{t.dispatchEvent(new Event("mouseleave"))}))})}),document.querySelectorAll(".resource-tabs label").forEach(t=>{t.addEventListener("focus",function(){var t=this.getAttribute("for"),t=(document.querySelectorAll('.resource-tabs input[type="radio"]').forEach(t=>{t.removeAttribute("checked")}),document.getElementById(t));t&&(t.checked=!0,t.setAttribute("checked","checked"))})}),(()=>{function n(t){try{window.dataLayer=window.dataLayer||[],window.dataLayer.push(t)}catch(t){}}function r(t,e,i,s){try{void 0!==globalThis.ctm&&"function"==typeof globalThis.ctm.track&&globalThis.ctm.track({event_category:t,form_id:e,form_name:i,form_type:s})}catch(t){}}function a(t){return/(request|contact)/i.test(t||"")?"contact":"registration"}"modelContext"in document&&(window.addEventListener("toolactivated",function(t){var t=t.toolName,e=document.querySelector('form[toolname="'+t+'"]'),i=e?e.id:"",e=e?e.name:"",s=a(e);n({event:"webmcp_tool_activated",webmcp_tool_name:t,form_id:i,form_name:e,form_type:s}),r("webmcp_tool_activated",i,e,s)}),window.addEventListener("toolcancel",function(t){var t=t.toolName,e=document.querySelector('form[toolname="'+t+'"]'),i=e?e.id:"",e=e?e.name:"",s=a(e);n({event:"webmcp_tool_cancelled",webmcp_tool_name:t,form_id:i,form_name:e,form_type:s}),r("webmcp_tool_cancelled",i,e,s)}),document.addEventListener("formWillSubmit",function(t){var e,i=t.detail&&t.detail.originalEvent;i&&i.agentInvoked&&(i=t.detail.elqFormInstance||t.target).matches("form.elq-form[toolname]")&&((t=i.querySelector('input[name="webmcpAgentInvoked"]'))&&(t.value="true"),n({event:"webmcp_form_submitted",webmcp_tool_name:i.getAttribute("toolname"),form_id:t=i.id,form_name:i=i.name,form_type:e=a(i)}),r("webmcp_form_submitted",t,i,e))}))})();

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.